/*
 * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
/******/ (() => { // webpackBootstrap
/******/ 	"use strict";
/******/ 	var __webpack_modules__ = ({

/***/ "./node_modules/monaco-editor/esm/vs/base/common/arrays.js":
/*!*****************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/arrays.js ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ArrayQueue: () => (/* binding */ ArrayQueue),\n/* harmony export */   CallbackIterable: () => (/* binding */ CallbackIterable),\n/* harmony export */   CompareResult: () => (/* binding */ CompareResult),\n/* harmony export */   arrayInsert: () => (/* binding */ arrayInsert),\n/* harmony export */   asArray: () => (/* binding */ asArray),\n/* harmony export */   binarySearch: () => (/* binding */ binarySearch),\n/* harmony export */   binarySearch2: () => (/* binding */ binarySearch2),\n/* harmony export */   booleanComparator: () => (/* binding */ booleanComparator),\n/* harmony export */   coalesce: () => (/* binding */ coalesce),\n/* harmony export */   coalesceInPlace: () => (/* binding */ coalesceInPlace),\n/* harmony export */   compareBy: () => (/* binding */ compareBy),\n/* harmony export */   distinct: () => (/* binding */ distinct),\n/* harmony export */   equals: () => (/* binding */ equals),\n/* harmony export */   firstOrDefault: () => (/* binding */ firstOrDefault),\n/* harmony export */   forEachAdjacent: () => (/* binding */ forEachAdjacent),\n/* harmony export */   forEachWithNeighbors: () => (/* binding */ forEachWithNeighbors),\n/* harmony export */   groupAdjacentBy: () => (/* binding */ groupAdjacentBy),\n/* harmony export */   groupBy: () => (/* binding */ groupBy),\n/* harmony export */   insertInto: () => (/* binding */ insertInto),\n/* harmony export */   isFalsyOrEmpty: () => (/* binding */ isFalsyOrEmpty),\n/* harmony export */   isNonEmptyArray: () => (/* binding */ isNonEmptyArray),\n/* harmony export */   numberComparator: () => (/* binding */ numberComparator),\n/* harmony export */   pushMany: () => (/* binding */ pushMany),\n/* harmony export */   pushToEnd: () => (/* binding */ pushToEnd),\n/* harmony export */   pushToStart: () => (/* binding */ pushToStart),\n/* harmony export */   quickSelect: () => (/* binding */ quickSelect),\n/* harmony export */   range: () => (/* binding */ range),\n/* harmony export */   removeFastWithoutKeepingOrder: () => (/* binding */ removeFastWithoutKeepingOrder),\n/* harmony export */   reverseOrder: () => (/* binding */ reverseOrder),\n/* harmony export */   splice: () => (/* binding */ splice),\n/* harmony export */   tail: () => (/* binding */ tail),\n/* harmony export */   tail2: () => (/* binding */ tail2),\n/* harmony export */   tieBreakComparators: () => (/* binding */ tieBreakComparators)\n/* harmony export */ });\n/**\n * Returns the last element of an array.\n * @param array The array.\n * @param n Which element from the end (default is zero).\n */\nfunction tail(array, n = 0) {\n    return array[array.length - (1 + n)];\n}\nfunction tail2(arr) {\n    if (arr.length === 0) {\n        throw new Error('Invalid tail call');\n    }\n    return [arr.slice(0, arr.length - 1), arr[arr.length - 1]];\n}\nfunction equals(one, other, itemEquals = (a, b) => a === b) {\n    if (one === other) {\n        return true;\n    }\n    if (!one || !other) {\n        return false;\n    }\n    if (one.length !== other.length) {\n        return false;\n    }\n    for (let i = 0, len = one.length; i < len; i++) {\n        if (!itemEquals(one[i], other[i])) {\n            return false;\n        }\n    }\n    return true;\n}\n/**\n * Remove the element at `index` by replacing it with the last element. This is faster than `splice`\n * but changes the order of the array\n */\nfunction removeFastWithoutKeepingOrder(array, index) {\n    const last = array.length - 1;\n    if (index < last) {\n        array[index] = array[last];\n    }\n    array.pop();\n}\n/**\n * Performs a binary search algorithm over a sorted array.\n *\n * @param array The array being searched.\n * @param key The value we search for.\n * @param comparator A function that takes two array elements and returns zero\n *   if they are equal, a negative number if the first element precedes the\n *   second one in the sorting order, or a positive number if the second element\n *   precedes the first one.\n * @return See {@link binarySearch2}\n */\nfunction binarySearch(array, key, comparator) {\n    return binarySearch2(array.length, i => comparator(array[i], key));\n}\n/**\n * Performs a binary search algorithm over a sorted collection. Useful for cases\n * when we need to perform a binary search over something that isn't actually an\n * array, and converting data to an array would defeat the use of binary search\n * in the first place.\n *\n * @param length The collection length.\n * @param compareToKey A function that takes an index of an element in the\n *   collection and returns zero if the value at this index is equal to the\n *   search key, a negative number if the value precedes the search key in the\n *   sorting order, or a positive number if the search key precedes the value.\n * @return A non-negative index of an element, if found. If not found, the\n *   result is -(n+1) (or ~n, using bitwise notation), where n is the index\n *   where the key should be inserted to maintain the sorting order.\n */\nfunction binarySearch2(length, compareToKey) {\n    let low = 0, high = length - 1;\n    while (low <= high) {\n        const mid = ((low + high) / 2) | 0;\n        const comp = compareToKey(mid);\n        if (comp < 0) {\n            low = mid + 1;\n        }\n        else if (comp > 0) {\n            high = mid - 1;\n        }\n        else {\n            return mid;\n        }\n    }\n    return -(low + 1);\n}\nfunction quickSelect(nth, data, compare) {\n    nth = nth | 0;\n    if (nth >= data.length) {\n        throw new TypeError('invalid index');\n    }\n    const pivotValue = data[Math.floor(data.length * Math.random())];\n    const lower = [];\n    const higher = [];\n    const pivots = [];\n    for (const value of data) {\n        const val = compare(value, pivotValue);\n        if (val < 0) {\n            lower.push(value);\n        }\n        else if (val > 0) {\n            higher.push(value);\n        }\n        else {\n            pivots.push(value);\n        }\n    }\n    if (nth < lower.length) {\n        return quickSelect(nth, lower, compare);\n    }\n    else if (nth < lower.length + pivots.length) {\n        return pivots[0];\n    }\n    else {\n        return quickSelect(nth - (lower.length + pivots.length), higher, compare);\n    }\n}\nfunction groupBy(data, compare) {\n    const result = [];\n    let currentGroup = undefined;\n    for (const element of data.slice(0).sort(compare)) {\n        if (!currentGroup || compare(currentGroup[0], element) !== 0) {\n            currentGroup = [element];\n            result.push(currentGroup);\n        }\n        else {\n            currentGroup.push(element);\n        }\n    }\n    return result;\n}\n/**\n * Splits the given items into a list of (non-empty) groups.\n * `shouldBeGrouped` is used to decide if two consecutive items should be in the same group.\n * The order of the items is preserved.\n */\nfunction* groupAdjacentBy(items, shouldBeGrouped) {\n    let currentGroup;\n    let last;\n    for (const item of items) {\n        if (last !== undefined && shouldBeGrouped(last, item)) {\n            currentGroup.push(item);\n        }\n        else {\n            if (currentGroup) {\n                yield currentGroup;\n            }\n            currentGroup = [item];\n        }\n        last = item;\n    }\n    if (currentGroup) {\n        yield currentGroup;\n    }\n}\nfunction forEachAdjacent(arr, f) {\n    for (let i = 0; i <= arr.length; i++) {\n        f(i === 0 ? undefined : arr[i - 1], i === arr.length ? undefined : arr[i]);\n    }\n}\nfunction forEachWithNeighbors(arr, f) {\n    for (let i = 0; i < arr.length; i++) {\n        f(i === 0 ? undefined : arr[i - 1], arr[i], i + 1 === arr.length ? undefined : arr[i + 1]);\n    }\n}\n/**\n * @returns New array with all falsy values removed. The original array IS NOT modified.\n */\nfunction coalesce(array) {\n    return array.filter(e => !!e);\n}\n/**\n * Remove all falsy values from `array`. The original array IS modified.\n */\nfunction coalesceInPlace(array) {\n    let to = 0;\n    for (let i = 0; i < array.length; i++) {\n        if (!!array[i]) {\n            array[to] = array[i];\n            to += 1;\n        }\n    }\n    array.length = to;\n}\n/**\n * @returns false if the provided object is an array and not empty.\n */\nfunction isFalsyOrEmpty(obj) {\n    return !Array.isArray(obj) || obj.length === 0;\n}\nfunction isNonEmptyArray(obj) {\n    return Array.isArray(obj) && obj.length > 0;\n}\n/**\n * Removes duplicates from the given array. The optional keyFn allows to specify\n * how elements are checked for equality by returning an alternate value for each.\n */\nfunction distinct(array, keyFn = value => value) {\n    const seen = new Set();\n    return array.filter(element => {\n        const key = keyFn(element);\n        if (seen.has(key)) {\n            return false;\n        }\n        seen.add(key);\n        return true;\n    });\n}\nfunction firstOrDefault(array, notFoundValue) {\n    return array.length > 0 ? array[0] : notFoundValue;\n}\nfunction range(arg, to) {\n    let from = typeof to === 'number' ? arg : 0;\n    if (typeof to === 'number') {\n        from = arg;\n    }\n    else {\n        from = 0;\n        to = arg;\n    }\n    const result = [];\n    if (from <= to) {\n        for (let i = from; i < to; i++) {\n            result.push(i);\n        }\n    }\n    else {\n        for (let i = from; i > to; i--) {\n            result.push(i);\n        }\n    }\n    return result;\n}\n/**\n * Insert `insertArr` inside `target` at `insertIndex`.\n * Please don't touch unless you understand https://jsperf.com/inserting-an-array-within-an-array\n */\nfunction arrayInsert(target, insertIndex, insertArr) {\n    const before = target.slice(0, insertIndex);\n    const after = target.slice(insertIndex);\n    return before.concat(insertArr, after);\n}\n/**\n * Pushes an element to the start of the array, if found.\n */\nfunction pushToStart(arr, value) {\n    const index = arr.indexOf(value);\n    if (index > -1) {\n        arr.splice(index, 1);\n        arr.unshift(value);\n    }\n}\n/**\n * Pushes an element to the end of the array, if found.\n */\nfunction pushToEnd(arr, value) {\n    const index = arr.indexOf(value);\n    if (index > -1) {\n        arr.splice(index, 1);\n        arr.push(value);\n    }\n}\nfunction pushMany(arr, items) {\n    for (const item of items) {\n        arr.push(item);\n    }\n}\nfunction asArray(x) {\n    return Array.isArray(x) ? x : [x];\n}\n/**\n * Insert the new items in the array.\n * @param array The original array.\n * @param start The zero-based location in the array from which to start inserting elements.\n * @param newItems The items to be inserted\n */\nfunction insertInto(array, start, newItems) {\n    const startIdx = getActualStartIndex(array, start);\n    const originalLength = array.length;\n    const newItemsLength = newItems.length;\n    array.length = originalLength + newItemsLength;\n    // Move the items after the start index, start from the end so that we don't overwrite any value.\n    for (let i = originalLength - 1; i >= startIdx; i--) {\n        array[i + newItemsLength] = array[i];\n    }\n    for (let i = 0; i < newItemsLength; i++) {\n        array[i + startIdx] = newItems[i];\n    }\n}\n/**\n * Removes elements from an array and inserts new elements in their place, returning the deleted elements. Alternative to the native Array.splice method, it\n * can only support limited number of items due to the maximum call stack size limit.\n * @param array The original array.\n * @param start The zero-based location in the array from which to start removing elements.\n * @param deleteCount The number of elements to remove.\n * @returns An array containing the elements that were deleted.\n */\nfunction splice(array, start, deleteCount, newItems) {\n    const index = getActualStartIndex(array, start);\n    let result = array.splice(index, deleteCount);\n    if (result === undefined) {\n        // see https://bugs.webkit.org/show_bug.cgi?id=261140\n        result = [];\n    }\n    insertInto(array, index, newItems);\n    return result;\n}\n/**\n * Determine the actual start index (same logic as the native splice() or slice())\n * If greater than the length of the array, start will be set to the length of the array. In this case, no element will be deleted but the method will behave as an adding function, adding as many element as item[n*] provided.\n * If negative, it will begin that many elements from the end of the array. (In this case, the origin -1, meaning -n is the index of the nth last element, and is therefore equivalent to the index of array.length - n.) If array.length + start is less than 0, it will begin from index 0.\n * @param array The target array.\n * @param start The operation index.\n */\nfunction getActualStartIndex(array, start) {\n    return start < 0 ? Math.max(start + array.length, 0) : Math.min(start, array.length);\n}\nvar CompareResult;\n(function (CompareResult) {\n    function isLessThan(result) {\n        return result < 0;\n    }\n    CompareResult.isLessThan = isLessThan;\n    function isLessThanOrEqual(result) {\n        return result <= 0;\n    }\n    CompareResult.isLessThanOrEqual = isLessThanOrEqual;\n    function isGreaterThan(result) {\n        return result > 0;\n    }\n    CompareResult.isGreaterThan = isGreaterThan;\n    function isNeitherLessOrGreaterThan(result) {\n        return result === 0;\n    }\n    CompareResult.isNeitherLessOrGreaterThan = isNeitherLessOrGreaterThan;\n    CompareResult.greaterThan = 1;\n    CompareResult.lessThan = -1;\n    CompareResult.neitherLessOrGreaterThan = 0;\n})(CompareResult || (CompareResult = {}));\nfunction compareBy(selector, comparator) {\n    return (a, b) => comparator(selector(a), selector(b));\n}\nfunction tieBreakComparators(...comparators) {\n    return (item1, item2) => {\n        for (const comparator of comparators) {\n            const result = comparator(item1, item2);\n            if (!CompareResult.isNeitherLessOrGreaterThan(result)) {\n                return result;\n            }\n        }\n        return CompareResult.neitherLessOrGreaterThan;\n    };\n}\n/**\n * The natural order on numbers.\n*/\nconst numberComparator = (a, b) => a - b;\nconst booleanComparator = (a, b) => numberComparator(a ? 1 : 0, b ? 1 : 0);\nfunction reverseOrder(comparator) {\n    return (a, b) => -comparator(a, b);\n}\nclass ArrayQueue {\n    /**\n     * Constructs a queue that is backed by the given array. Runtime is O(1).\n    */\n    constructor(items) {\n        this.items = items;\n        this.firstIdx = 0;\n        this.lastIdx = this.items.length - 1;\n    }\n    get length() {\n        return this.lastIdx - this.firstIdx + 1;\n    }\n    /**\n     * Consumes elements from the beginning of the queue as long as the predicate returns true.\n     * If no elements were consumed, `null` is returned. Has a runtime of O(result.length).\n    */\n    takeWhile(predicate) {\n        // P(k) := k <= this.lastIdx && predicate(this.items[k])\n        // Find s := min { k | k >= this.firstIdx && !P(k) } and return this.data[this.firstIdx...s)\n        let startIdx = this.firstIdx;\n        while (startIdx < this.items.length && predicate(this.items[startIdx])) {\n            startIdx++;\n        }\n        const result = startIdx === this.firstIdx ? null : this.items.slice(this.firstIdx, startIdx);\n        this.firstIdx = startIdx;\n        return result;\n    }\n    /**\n     * Consumes elements from the end of the queue as long as the predicate returns true.\n     * If no elements were consumed, `null` is returned.\n     * The result has the same order as the underlying array!\n    */\n    takeFromEndWhile(predicate) {\n        // P(k) := this.firstIdx >= k && predicate(this.items[k])\n        // Find s := max { k | k <= this.lastIdx && !P(k) } and return this.data(s...this.lastIdx]\n        let endIdx = this.lastIdx;\n        while (endIdx >= 0 && predicate(this.items[endIdx])) {\n            endIdx--;\n        }\n        const result = endIdx === this.lastIdx ? null : this.items.slice(endIdx + 1, this.lastIdx + 1);\n        this.lastIdx = endIdx;\n        return result;\n    }\n    peek() {\n        if (this.length === 0) {\n            return undefined;\n        }\n        return this.items[this.firstIdx];\n    }\n    dequeue() {\n        const result = this.items[this.firstIdx];\n        this.firstIdx++;\n        return result;\n    }\n    takeCount(count) {\n        const result = this.items.slice(this.firstIdx, this.firstIdx + count);\n        this.firstIdx += count;\n        return result;\n    }\n}\n/**\n * This class is faster than an iterator and array for lazy computed data.\n*/\nclass CallbackIterable {\n    constructor(\n    /**\n     * Calls the callback for every item.\n     * Stops when the callback returns false.\n    */\n    iterate) {\n        this.iterate = iterate;\n    }\n    toArray() {\n        const result = [];\n        this.iterate(item => { result.push(item); return true; });\n        return result;\n    }\n    filter(predicate) {\n        return new CallbackIterable(cb => this.iterate(item => predicate(item) ? cb(item) : true));\n    }\n    map(mapFn) {\n        return new CallbackIterable(cb => this.iterate(item => cb(mapFn(item))));\n    }\n    findLast(predicate) {\n        let result;\n        this.iterate(item => {\n            if (predicate(item)) {\n                result = item;\n            }\n            return true;\n        });\n        return result;\n    }\n    findLastMaxBy(comparator) {\n        let result;\n        let first = true;\n        this.iterate(item => {\n            if (first || CompareResult.isGreaterThan(comparator(item, result))) {\n                first = false;\n                result = item;\n            }\n            return true;\n        });\n        return result;\n    }\n}\nCallbackIterable.empty = new CallbackIterable(_callback => { });\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/arrays.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/arraysFind.js":
/*!*********************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/arraysFind.js ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MonotonousArray: () => (/* binding */ MonotonousArray),\n/* harmony export */   findFirstIdxMonotonousOrArrLen: () => (/* binding */ findFirstIdxMonotonousOrArrLen),\n/* harmony export */   findFirstMaxBy: () => (/* binding */ findFirstMaxBy),\n/* harmony export */   findFirstMinBy: () => (/* binding */ findFirstMinBy),\n/* harmony export */   findFirstMonotonous: () => (/* binding */ findFirstMonotonous),\n/* harmony export */   findLast: () => (/* binding */ findLast),\n/* harmony export */   findLastIdx: () => (/* binding */ findLastIdx),\n/* harmony export */   findLastIdxMonotonous: () => (/* binding */ findLastIdxMonotonous),\n/* harmony export */   findLastMaxBy: () => (/* binding */ findLastMaxBy),\n/* harmony export */   findLastMonotonous: () => (/* binding */ findLastMonotonous),\n/* harmony export */   findMaxIdxBy: () => (/* binding */ findMaxIdxBy),\n/* harmony export */   mapFindFirst: () => (/* binding */ mapFindFirst)\n/* harmony export */ });\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nfunction findLast(array, predicate, fromIdx) {\n    const idx = findLastIdx(array, predicate);\n    if (idx === -1) {\n        return undefined;\n    }\n    return array[idx];\n}\nfunction findLastIdx(array, predicate, fromIndex = array.length - 1) {\n    for (let i = fromIndex; i >= 0; i--) {\n        const element = array[i];\n        if (predicate(element)) {\n            return i;\n        }\n    }\n    return -1;\n}\n/**\n * Finds the last item where predicate is true using binary search.\n * `predicate` must be monotonous, i.e. `arr.map(predicate)` must be like `[true, ..., true, false, ..., false]`!\n *\n * @returns `undefined` if no item matches, otherwise the last item that matches the predicate.\n */\nfunction findLastMonotonous(array, predicate) {\n    const idx = findLastIdxMonotonous(array, predicate);\n    return idx === -1 ? undefined : array[idx];\n}\n/**\n * Finds the last item where predicate is true using binary search.\n * `predicate` must be monotonous, i.e. `arr.map(predicate)` must be like `[true, ..., true, false, ..., false]`!\n *\n * @returns `startIdx - 1` if predicate is false for all items, otherwise the index of the last item that matches the predicate.\n */\nfunction findLastIdxMonotonous(array, predicate, startIdx = 0, endIdxEx = array.length) {\n    let i = startIdx;\n    let j = endIdxEx;\n    while (i < j) {\n        const k = Math.floor((i + j) / 2);\n        if (predicate(array[k])) {\n            i = k + 1;\n        }\n        else {\n            j = k;\n        }\n    }\n    return i - 1;\n}\n/**\n * Finds the first item where predicate is true using binary search.\n * `predicate` must be monotonous, i.e. `arr.map(predicate)` must be like `[false, ..., false, true, ..., true]`!\n *\n * @returns `undefined` if no item matches, otherwise the first item that matches the predicate.\n */\nfunction findFirstMonotonous(array, predicate) {\n    const idx = findFirstIdxMonotonousOrArrLen(array, predicate);\n    return idx === array.length ? undefined : array[idx];\n}\n/**\n * Finds the first item where predicate is true using binary search.\n * `predicate` must be monotonous, i.e. `arr.map(predicate)` must be like `[false, ..., false, true, ..., true]`!\n *\n * @returns `endIdxEx` if predicate is false for all items, otherwise the index of the first item that matches the predicate.\n */\nfunction findFirstIdxMonotonousOrArrLen(array, predicate, startIdx = 0, endIdxEx = array.length) {\n    let i = startIdx;\n    let j = endIdxEx;\n    while (i < j) {\n        const k = Math.floor((i + j) / 2);\n        if (predicate(array[k])) {\n            j = k;\n        }\n        else {\n            i = k + 1;\n        }\n    }\n    return i;\n}\n/**\n * Use this when\n * * You have a sorted array\n * * You query this array with a monotonous predicate to find the last item that has a certain property.\n * * You query this array multiple times with monotonous predicates that get weaker and weaker.\n */\nclass MonotonousArray {\n    constructor(_array) {\n        this._array = _array;\n        this._findLastMonotonousLastIdx = 0;\n    }\n    /**\n     * The predicate must be monotonous, i.e. `arr.map(predicate)` must be like `[true, ..., true, false, ..., false]`!\n     * For subsequent calls, current predicate must be weaker than (or equal to) the previous predicate, i.e. more entries must be `true`.\n     */\n    findLastMonotonous(predicate) {\n        if (MonotonousArray.assertInvariants) {\n            if (this._prevFindLastPredicate) {\n                for (const item of this._array) {\n                    if (this._prevFindLastPredicate(item) && !predicate(item)) {\n                        throw new Error('MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.');\n                    }\n                }\n            }\n            this._prevFindLastPredicate = predicate;\n        }\n        const idx = findLastIdxMonotonous(this._array, predicate, this._findLastMonotonousLastIdx);\n        this._findLastMonotonousLastIdx = idx + 1;\n        return idx === -1 ? undefined : this._array[idx];\n    }\n}\nMonotonousArray.assertInvariants = false;\n/**\n * Returns the first item that is equal to or greater than every other item.\n*/\nfunction findFirstMaxBy(array, comparator) {\n    if (array.length === 0) {\n        return undefined;\n    }\n    let max = array[0];\n    for (let i = 1; i < array.length; i++) {\n        const item = array[i];\n        if (comparator(item, max) > 0) {\n            max = item;\n        }\n    }\n    return max;\n}\n/**\n * Returns the last item that is equal to or greater than every other item.\n*/\nfunction findLastMaxBy(array, comparator) {\n    if (array.length === 0) {\n        return undefined;\n    }\n    let max = array[0];\n    for (let i = 1; i < array.length; i++) {\n        const item = array[i];\n        if (comparator(item, max) >= 0) {\n            max = item;\n        }\n    }\n    return max;\n}\n/**\n * Returns the first item that is equal to or less than every other item.\n*/\nfunction findFirstMinBy(array, comparator) {\n    return findFirstMaxBy(array, (a, b) => -comparator(a, b));\n}\nfunction findMaxIdxBy(array, comparator) {\n    if (array.length === 0) {\n        return -1;\n    }\n    let maxIdx = 0;\n    for (let i = 1; i < array.length; i++) {\n        const item = array[i];\n        if (comparator(item, array[maxIdx]) > 0) {\n            maxIdx = i;\n        }\n    }\n    return maxIdx;\n}\n/**\n * Returns the first mapped value of the array which is not undefined.\n */\nfunction mapFindFirst(items, mapFn) {\n    for (const value of items) {\n        const mapped = mapFn(value);\n        if (mapped !== undefined) {\n            return mapped;\n        }\n    }\n    return undefined;\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/arraysFind.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/assert.js":
/*!*****************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/assert.js ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   assertFn: () => (/* binding */ assertFn),\n/* harmony export */   assertNever: () => (/* binding */ assertNever),\n/* harmony export */   checkAdjacentItems: () => (/* binding */ checkAdjacentItems),\n/* harmony export */   ok: () => (/* binding */ ok)\n/* harmony export */ });\n/* harmony import */ var _errors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./errors.js */ \"./node_modules/monaco-editor/esm/vs/base/common/errors.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/**\n * Throws an error with the provided message if the provided value does not evaluate to a true Javascript value.\n *\n * @deprecated Use `assert(...)` instead.\n * This method is usually used like this:\n * ```ts\n * import * as assert from 'vs/base/common/assert';\n * assert.ok(...);\n * ```\n *\n * However, `assert` in that example is a user chosen name.\n * There is no tooling for generating such an import statement.\n * Thus, the `assert(...)` function should be used instead.\n */\nfunction ok(value, message) {\n    if (!value) {\n        throw new Error(message ? `Assertion failed (${message})` : 'Assertion Failed');\n    }\n}\nfunction assertNever(value, message = 'Unreachable') {\n    throw new Error(message);\n}\n/**\n * condition must be side-effect free!\n */\nfunction assertFn(condition) {\n    if (!condition()) {\n        // eslint-disable-next-line no-debugger\n        debugger;\n        // Reevaluate `condition` again to make debugging easier\n        condition();\n        (0,_errors_js__WEBPACK_IMPORTED_MODULE_0__.onUnexpectedError)(new _errors_js__WEBPACK_IMPORTED_MODULE_0__.BugIndicatingError('Assertion Failed'));\n    }\n}\nfunction checkAdjacentItems(items, predicate) {\n    let i = 0;\n    while (i < items.length - 1) {\n        const a = items[i];\n        const b = items[i + 1];\n        if (!predicate(a, b)) {\n            return false;\n        }\n        i++;\n    }\n    return true;\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/assert.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/cache.js":
/*!****************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/cache.js ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CachedFunction: () => (/* binding */ CachedFunction),\n/* harmony export */   LRUCachedFunction: () => (/* binding */ LRUCachedFunction)\n/* harmony export */ });\n/**\n * Uses a LRU cache to make a given parametrized function cached.\n * Caches just the last value.\n * The key must be JSON serializable.\n*/\nclass LRUCachedFunction {\n    constructor(fn) {\n        this.fn = fn;\n        this.lastCache = undefined;\n        this.lastArgKey = undefined;\n    }\n    get(arg) {\n        const key = JSON.stringify(arg);\n        if (this.lastArgKey !== key) {\n            this.lastArgKey = key;\n            this.lastCache = this.fn(arg);\n        }\n        return this.lastCache;\n    }\n}\n/**\n * Uses an unbounded cache (referential equality) to memoize the results of the given function.\n*/\nclass CachedFunction {\n    get cachedValues() {\n        return this._map;\n    }\n    constructor(fn) {\n        this.fn = fn;\n        this._map = new Map();\n    }\n    get(arg) {\n        if (this._map.has(arg)) {\n            return this._map.get(arg);\n        }\n        const value = this.fn(arg);\n        this._map.set(arg, value);\n        return value;\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/cache.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/cancellation.js":
/*!***********************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/cancellation.js ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CancellationToken: () => (/* binding */ CancellationToken),\n/* harmony export */   CancellationTokenSource: () => (/* binding */ CancellationTokenSource)\n/* harmony export */ });\n/* harmony import */ var _event_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./event.js */ \"./node_modules/monaco-editor/esm/vs/base/common/event.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nconst shortcutEvent = Object.freeze(function (callback, context) {\n    const handle = setTimeout(callback.bind(context), 0);\n    return { dispose() { clearTimeout(handle); } };\n});\nvar CancellationToken;\n(function (CancellationToken) {\n    function isCancellationToken(thing) {\n        if (thing === CancellationToken.None || thing === CancellationToken.Cancelled) {\n            return true;\n        }\n        if (thing instanceof MutableToken) {\n            return true;\n        }\n        if (!thing || typeof thing !== 'object') {\n            return false;\n        }\n        return typeof thing.isCancellationRequested === 'boolean'\n            && typeof thing.onCancellationRequested === 'function';\n    }\n    CancellationToken.isCancellationToken = isCancellationToken;\n    CancellationToken.None = Object.freeze({\n        isCancellationRequested: false,\n        onCancellationRequested: _event_js__WEBPACK_IMPORTED_MODULE_0__.Event.None\n    });\n    CancellationToken.Cancelled = Object.freeze({\n        isCancellationRequested: true,\n        onCancellationRequested: shortcutEvent\n    });\n})(CancellationToken || (CancellationToken = {}));\nclass MutableToken {\n    constructor() {\n        this._isCancelled = false;\n        this._emitter = null;\n    }\n    cancel() {\n        if (!this._isCancelled) {\n            this._isCancelled = true;\n            if (this._emitter) {\n                this._emitter.fire(undefined);\n                this.dispose();\n            }\n        }\n    }\n    get isCancellationRequested() {\n        return this._isCancelled;\n    }\n    get onCancellationRequested() {\n        if (this._isCancelled) {\n            return shortcutEvent;\n        }\n        if (!this._emitter) {\n            this._emitter = new _event_js__WEBPACK_IMPORTED_MODULE_0__.Emitter();\n        }\n        return this._emitter.event;\n    }\n    dispose() {\n        if (this._emitter) {\n            this._emitter.dispose();\n            this._emitter = null;\n        }\n    }\n}\nclass CancellationTokenSource {\n    constructor(parent) {\n        this._token = undefined;\n        this._parentListener = undefined;\n        this._parentListener = parent && parent.onCancellationRequested(this.cancel, this);\n    }\n    get token() {\n        if (!this._token) {\n            // be lazy and create the token only when\n            // actually needed\n            this._token = new MutableToken();\n        }\n        return this._token;\n    }\n    cancel() {\n        if (!this._token) {\n            // save an object by returning the default\n            // cancelled token when cancellation happens\n            // before someone asks for the token\n            this._token = CancellationToken.Cancelled;\n        }\n        else if (this._token instanceof MutableToken) {\n            // actually cancel\n            this._token.cancel();\n        }\n    }\n    dispose(cancel = false) {\n        var _a;\n        if (cancel) {\n            this.cancel();\n        }\n        (_a = this._parentListener) === null || _a === void 0 ? void 0 : _a.dispose();\n        if (!this._token) {\n            // ensure to initialize with an empty token if we had none\n            this._token = CancellationToken.None;\n        }\n        else if (this._token instanceof MutableToken) {\n            // actually dispose\n            this._token.dispose();\n        }\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/cancellation.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/codicons.js":
/*!*******************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/codicons.js ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Codicon: () => (/* binding */ Codicon),\n/* harmony export */   getCodiconFontCharacters: () => (/* binding */ getCodiconFontCharacters)\n/* harmony export */ });\n/* harmony import */ var _types_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./types.js */ \"./node_modules/monaco-editor/esm/vs/base/common/types.js\");\n\nconst _codiconFontCharacters = Object.create(null);\nfunction register(id, fontCharacter) {\n    if ((0,_types_js__WEBPACK_IMPORTED_MODULE_0__.isString)(fontCharacter)) {\n        const val = _codiconFontCharacters[fontCharacter];\n        if (val === undefined) {\n            throw new Error(`${id} references an unknown codicon: ${fontCharacter}`);\n        }\n        fontCharacter = val;\n    }\n    _codiconFontCharacters[id] = fontCharacter;\n    return { id };\n}\n/**\n * Only to be used by the iconRegistry.\n */\nfunction getCodiconFontCharacters() {\n    return _codiconFontCharacters;\n}\n/**\n * The Codicon library is a set of default icons that are built-in in VS Code.\n *\n * In the product (outside of base) Codicons should only be used as defaults. In order to have all icons in VS Code\n * themeable, component should define new, UI component specific icons using `iconRegistry.registerIcon`.\n * In that call a Codicon can be named as default.\n */\nconst Codicon = {\n    // built-in icons, with image name\n    add: register('add', 0xea60),\n    plus: register('plus', 0xea60),\n    gistNew: register('gist-new', 0xea60),\n    repoCreate: register('repo-create', 0xea60),\n    lightbulb: register('lightbulb', 0xea61),\n    lightBulb: register('light-bulb', 0xea61),\n    repo: register('repo', 0xea62),\n    repoDelete: register('repo-delete', 0xea62),\n    gistFork: register('gist-fork', 0xea63),\n    repoForked: register('repo-forked', 0xea63),\n    gitPullRequest: register('git-pull-request', 0xea64),\n    gitPullRequestAbandoned: register('git-pull-request-abandoned', 0xea64),\n    recordKeys: register('record-keys', 0xea65),\n    keyboard: register('keyboard', 0xea65),\n    tag: register('tag', 0xea66),\n    tagAdd: register('tag-add', 0xea66),\n    tagRemove: register('tag-remove', 0xea66),\n    gitPullRequestLabel: register('git-pull-request-label', 0xea66),\n    person: register('person', 0xea67),\n    personFollow: register('person-follow', 0xea67),\n    personOutline: register('person-outline', 0xea67),\n    personFilled: register('person-filled', 0xea67),\n    gitBranch: register('git-branch', 0xea68),\n    gitBranchCreate: register('git-branch-create', 0xea68),\n    gitBranchDelete: register('git-branch-delete', 0xea68),\n    sourceControl: register('source-control', 0xea68),\n    mirror: register('mirror', 0xea69),\n    mirrorPublic: register('mirror-public', 0xea69),\n    star: register('star', 0xea6a),\n    starAdd: register('star-add', 0xea6a),\n    starDelete: register('star-delete', 0xea6a),\n    starEmpty: register('star-empty', 0xea6a),\n    comment: register('comment', 0xea6b),\n    commentAdd: register('comment-add', 0xea6b),\n    alert: register('alert', 0xea6c),\n    warning: register('warning', 0xea6c),\n    search: register('search', 0xea6d),\n    searchSave: register('search-save', 0xea6d),\n    logOut: register('log-out', 0xea6e),\n    signOut: register('sign-out', 0xea6e),\n    logIn: register('log-in', 0xea6f),\n    signIn: register('sign-in', 0xea6f),\n    eye: register('eye', 0xea70),\n    eyeUnwatch: register('eye-unwatch', 0xea70),\n    eyeWatch: register('eye-watch', 0xea70),\n    circleFilled: register('circle-filled', 0xea71),\n    primitiveDot: register('primitive-dot', 0xea71),\n    closeDirty: register('close-dirty', 0xea71),\n    debugBreakpoint: register('debug-breakpoint', 0xea71),\n    debugBreakpointDisabled: register('debug-breakpoint-disabled', 0xea71),\n    debugHint: register('debug-hint', 0xea71),\n    primitiveSquare: register('primitive-square', 0xea72),\n    edit: register('edit', 0xea73),\n    pencil: register('pencil', 0xea73),\n    info: register('info', 0xea74),\n    issueOpened: register('issue-opened', 0xea74),\n    gistPrivate: register('gist-private', 0xea75),\n    gitForkPrivate: register('git-fork-private', 0xea75),\n    lock: register('lock', 0xea75),\n    mirrorPrivate: register('mirror-private', 0xea75),\n    close: register('close', 0xea76),\n    removeClose: register('remove-close', 0xea76),\n    x: register('x', 0xea76),\n    repoSync: register('repo-sync', 0xea77),\n    sync: register('sync', 0xea77),\n    clone: register('clone', 0xea78),\n    desktopDownload: register('desktop-download', 0xea78),\n    beaker: register('beaker', 0xea79),\n    microscope: register('microscope', 0xea79),\n    vm: register('vm', 0xea7a),\n    deviceDesktop: register('device-desktop', 0xea7a),\n    file: register('file', 0xea7b),\n    fileText: register('file-text', 0xea7b),\n    more: register('more', 0xea7c),\n    ellipsis: register('ellipsis', 0xea7c),\n    kebabHorizontal: register('kebab-horizontal', 0xea7c),\n    mailReply: register('mail-reply', 0xea7d),\n    reply: register('reply', 0xea7d),\n    organization: register('organization', 0xea7e),\n    organizationFilled: register('organization-filled', 0xea7e),\n    organizationOutline: register('organization-outline', 0xea7e),\n    newFile: register('new-file', 0xea7f),\n    fileAdd: register('file-add', 0xea7f),\n    newFolder: register('new-folder', 0xea80),\n    fileDirectoryCreate: register('file-directory-create', 0xea80),\n    trash: register('trash', 0xea81),\n    trashcan: register('trashcan', 0xea81),\n    history: register('history', 0xea82),\n    clock: register('clock', 0xea82),\n    folder: register('folder', 0xea83),\n    fileDirectory: register('file-directory', 0xea83),\n    symbolFolder: register('symbol-folder', 0xea83),\n    logoGithub: register('logo-github', 0xea84),\n    markGithub: register('mark-github', 0xea84),\n    github: register('github', 0xea84),\n    terminal: register('terminal', 0xea85),\n    console: register('console', 0xea85),\n    repl: register('repl', 0xea85),\n    zap: register('zap', 0xea86),\n    symbolEvent: register('symbol-event', 0xea86),\n    error: register('error', 0xea87),\n    stop: register('stop', 0xea87),\n    variable: register('variable', 0xea88),\n    symbolVariable: register('symbol-variable', 0xea88),\n    array: register('array', 0xea8a),\n    symbolArray: register('symbol-array', 0xea8a),\n    symbolModule: register('symbol-module', 0xea8b),\n    symbolPackage: register('symbol-package', 0xea8b),\n    symbolNamespace: register('symbol-namespace', 0xea8b),\n    symbolObject: register('symbol-object', 0xea8b),\n    symbolMethod: register('symbol-method', 0xea8c),\n    symbolFunction: register('symbol-function', 0xea8c),\n    symbolConstructor: register('symbol-constructor', 0xea8c),\n    symbolBoolean: register('symbol-boolean', 0xea8f),\n    symbolNull: register('symbol-null', 0xea8f),\n    symbolNumeric: register('symbol-numeric', 0xea90),\n    symbolNumber: register('symbol-number', 0xea90),\n    symbolStructure: register('symbol-structure', 0xea91),\n    symbolStruct: register('symbol-struct', 0xea91),\n    symbolParameter: register('symbol-parameter', 0xea92),\n    symbolTypeParameter: register('symbol-type-parameter', 0xea92),\n    symbolKey: register('symbol-key', 0xea93),\n    symbolText: register('symbol-text', 0xea93),\n    symbolReference: register('symbol-reference', 0xea94),\n    goToFile: register('go-to-file', 0xea94),\n    symbolEnum: register('symbol-enum', 0xea95),\n    symbolValue: register('symbol-value', 0xea95),\n    symbolRuler: register('symbol-ruler', 0xea96),\n    symbolUnit: register('symbol-unit', 0xea96),\n    activateBreakpoints: register('activate-breakpoints', 0xea97),\n    archive: register('archive', 0xea98),\n    arrowBoth: register('arrow-both', 0xea99),\n    arrowDown: register('arrow-down', 0xea9a),\n    arrowLeft: register('arrow-left', 0xea9b),\n    arrowRight: register('arrow-right', 0xea9c),\n    arrowSmallDown: register('arrow-small-down', 0xea9d),\n    arrowSmallLeft: register('arrow-small-left', 0xea9e),\n    arrowSmallRight: register('arrow-small-right', 0xea9f),\n    arrowSmallUp: register('arrow-small-up', 0xeaa0),\n    arrowUp: register('arrow-up', 0xeaa1),\n    bell: register('bell', 0xeaa2),\n    bold: register('bold', 0xeaa3),\n    book: register('book', 0xeaa4),\n    bookmark: register('bookmark', 0xeaa5),\n    debugBreakpointConditionalUnverified: register('debug-breakpoint-conditional-unverified', 0xeaa6),\n    debugBreakpointConditional: register('debug-breakpoint-conditional', 0xeaa7),\n    debugBreakpointConditionalDisabled: register('debug-breakpoint-conditional-disabled', 0xeaa7),\n    debugBreakpointDataUnverified: register('debug-breakpoint-data-unverified', 0xeaa8),\n    debugBreakpointData: register('debug-breakpoint-data', 0xeaa9),\n    debugBreakpointDataDisabled: register('debug-breakpoint-data-disabled', 0xeaa9),\n    debugBreakpointLogUnverified: register('debug-breakpoint-log-unverified', 0xeaaa),\n    debugBreakpointLog: register('debug-breakpoint-log', 0xeaab),\n    debugBreakpointLogDisabled: register('debug-breakpoint-log-disabled', 0xeaab),\n    briefcase: register('briefcase', 0xeaac),\n    broadcast: register('broadcast', 0xeaad),\n    browser: register('browser', 0xeaae),\n    bug: register('bug', 0xeaaf),\n    calendar: register('calendar', 0xeab0),\n    caseSensitive: register('case-sensitive', 0xeab1),\n    check: register('check', 0xeab2),\n    checklist: register('checklist', 0xeab3),\n    chevronDown: register('chevron-down', 0xeab4),\n    dropDownButton: register('drop-down-button', 0xeab4),\n    chevronLeft: register('chevron-left', 0xeab5),\n    chevronRight: register('chevron-right', 0xeab6),\n    chevronUp: register('chevron-up', 0xeab7),\n    chromeClose: register('chrome-close', 0xeab8),\n    chromeMaximize: register('chrome-maximize', 0xeab9),\n    chromeMinimize: register('chrome-minimize', 0xeaba),\n    chromeRestore: register('chrome-restore', 0xeabb),\n    circle: register('circle', 0xeabc),\n    circleOutline: register('circle-outline', 0xeabc),\n    debugBreakpointUnverified: register('debug-breakpoint-unverified', 0xeabc),\n    circleSlash: register('circle-slash', 0xeabd),\n    circuitBoard: register('circuit-board', 0xeabe),\n    clearAll: register('clear-all', 0xeabf),\n    clippy: register('clippy', 0xeac0),\n    closeAll: register('close-all', 0xeac1),\n    cloudDownload: register('cloud-download', 0xeac2),\n    cloudUpload: register('cloud-upload', 0xeac3),\n    code: register('code', 0xeac4),\n    collapseAll: register('collapse-all', 0xeac5),\n    colorMode: register('color-mode', 0xeac6),\n    commentDiscussion: register('comment-discussion', 0xeac7),\n    compareChanges: register('compare-changes', 0xeafd),\n    creditCard: register('credit-card', 0xeac9),\n    dash: register('dash', 0xeacc),\n    dashboard: register('dashboard', 0xeacd),\n    database: register('database', 0xeace),\n    debugContinue: register('debug-continue', 0xeacf),\n    debugDisconnect: register('debug-disconnect', 0xead0),\n    debugPause: register('debug-pause', 0xead1),\n    debugRestart: register('debug-restart', 0xead2),\n    debugStart: register('debug-start', 0xead3),\n    debugStepInto: register('debug-step-into', 0xead4),\n    debugStepOut: register('debug-step-out', 0xead5),\n    debugStepOver: register('debug-step-over', 0xead6),\n    debugStop: register('debug-stop', 0xead7),\n    debug: register('debug', 0xead8),\n    deviceCameraVideo: register('device-camera-video', 0xead9),\n    deviceCamera: register('device-camera', 0xeada),\n    deviceMobile: register('device-mobile', 0xeadb),\n    diffAdded: register('diff-added', 0xeadc),\n    diffIgnored: register('diff-ignored', 0xeadd),\n    diffModified: register('diff-modified', 0xeade),\n    diffRemoved: register('diff-removed', 0xeadf),\n    diffRenamed: register('diff-renamed', 0xeae0),\n    diff: register('diff', 0xeae1),\n    discard: register('discard', 0xeae2),\n    editorLayout: register('editor-layout', 0xeae3),\n    emptyWindow: register('empty-window', 0xeae4),\n    exclude: register('exclude', 0xeae5),\n    extensions: register('extensions', 0xeae6),\n    eyeClosed: register('eye-closed', 0xeae7),\n    fileBinary: register('file-binary', 0xeae8),\n    fileCode: register('file-code', 0xeae9),\n    fileMedia: register('file-media', 0xeaea),\n    filePdf: register('file-pdf', 0xeaeb),\n    fileSubmodule: register('file-submodule', 0xeaec),\n    fileSymlinkDirectory: register('file-symlink-directory', 0xeaed),\n    fileSymlinkFile: register('file-symlink-file', 0xeaee),\n    fileZip: register('file-zip', 0xeaef),\n    files: register('files', 0xeaf0),\n    filter: register('filter', 0xeaf1),\n    flame: register('flame', 0xeaf2),\n    foldDown: register('fold-down', 0xeaf3),\n    foldUp: register('fold-up', 0xeaf4),\n    fold: register('fold', 0xeaf5),\n    folderActive: register('folder-active', 0xeaf6),\n    folderOpened: register('folder-opened', 0xeaf7),\n    gear: register('gear', 0xeaf8),\n    gift: register('gift', 0xeaf9),\n    gistSecret: register('gist-secret', 0xeafa),\n    gist: register('gist', 0xeafb),\n    gitCommit: register('git-commit', 0xeafc),\n    gitCompare: register('git-compare', 0xeafd),\n    gitMerge: register('git-merge', 0xeafe),\n    githubAction: register('github-action', 0xeaff),\n    githubAlt: register('github-alt', 0xeb00),\n    globe: register('globe', 0xeb01),\n    grabber: register('grabber', 0xeb02),\n    graph: register('graph', 0xeb03),\n    gripper: register('gripper', 0xeb04),\n    heart: register('heart', 0xeb05),\n    home: register('home', 0xeb06),\n    horizontalRule: register('horizontal-rule', 0xeb07),\n    hubot: register('hubot', 0xeb08),\n    inbox: register('inbox', 0xeb09),\n    issueClosed: register('issue-closed', 0xeba4),\n    issueReopened: register('issue-reopened', 0xeb0b),\n    issues: register('issues', 0xeb0c),\n    italic: register('italic', 0xeb0d),\n    jersey: register('jersey', 0xeb0e),\n    json: register('json', 0xeb0f),\n    bracket: register('bracket', 0xeb0f),\n    kebabVertical: register('kebab-vertical', 0xeb10),\n    key: register('key', 0xeb11),\n    law: register('law', 0xeb12),\n    lightbulbAutofix: register('lightbulb-autofix', 0xeb13),\n    linkExternal: register('link-external', 0xeb14),\n    link: register('link', 0xeb15),\n    listOrdered: register('list-ordered', 0xeb16),\n    listUnordered: register('list-unordered', 0xeb17),\n    liveShare: register('live-share', 0xeb18),\n    loading: register('loading', 0xeb19),\n    location: register('location', 0xeb1a),\n    mailRead: register('mail-read', 0xeb1b),\n    mail: register('mail', 0xeb1c),\n    markdown: register('markdown', 0xeb1d),\n    megaphone: register('megaphone', 0xeb1e),\n    mention: register('mention', 0xeb1f),\n    milestone: register('milestone', 0xeb20),\n    gitPullRequestMilestone: register('git-pull-request-milestone', 0xeb20),\n    mortarBoard: register('mortar-board', 0xeb21),\n    move: register('move', 0xeb22),\n    multipleWindows: register('multiple-windows', 0xeb23),\n    mute: register('mute', 0xeb24),\n    noNewline: register('no-newline', 0xeb25),\n    note: register('note', 0xeb26),\n    octoface: register('octoface', 0xeb27),\n    openPreview: register('open-preview', 0xeb28),\n    package: register('package', 0xeb29),\n    paintcan: register('paintcan', 0xeb2a),\n    pin: register('pin', 0xeb2b),\n    play: register('play', 0xeb2c),\n    run: register('run', 0xeb2c),\n    plug: register('plug', 0xeb2d),\n    preserveCase: register('preserve-case', 0xeb2e),\n    preview: register('preview', 0xeb2f),\n    project: register('project', 0xeb30),\n    pulse: register('pulse', 0xeb31),\n    question: register('question', 0xeb32),\n    quote: register('quote', 0xeb33),\n    radioTower: register('radio-tower', 0xeb34),\n    reactions: register('reactions', 0xeb35),\n    references: register('references', 0xeb36),\n    refresh: register('refresh', 0xeb37),\n    regex: register('regex', 0xeb38),\n    remoteExplorer: register('remote-explorer', 0xeb39),\n    remote: register('remote', 0xeb3a),\n    remove: register('remove', 0xeb3b),\n    replaceAll: register('replace-all', 0xeb3c),\n    replace: register('replace', 0xeb3d),\n    repoClone: register('repo-clone', 0xeb3e),\n    repoForcePush: register('repo-force-push', 0xeb3f),\n    repoPull: register('repo-pull', 0xeb40),\n    repoPush: register('repo-push', 0xeb41),\n    report: register('report', 0xeb42),\n    requestChanges: register('request-changes', 0xeb43),\n    rocket: register('rocket', 0xeb44),\n    rootFolderOpened: register('root-folder-opened', 0xeb45),\n    rootFolder: register('root-folder', 0xeb46),\n    rss: register('rss', 0xeb47),\n    ruby: register('ruby', 0xeb48),\n    saveAll: register('save-all', 0xeb49),\n    saveAs: register('save-as', 0xeb4a),\n    save: register('save', 0xeb4b),\n    screenFull: register('screen-full', 0xeb4c),\n    screenNormal: register('screen-normal', 0xeb4d),\n    searchStop: register('search-stop', 0xeb4e),\n    server: register('server', 0xeb50),\n    settingsGear: register('settings-gear', 0xeb51),\n    settings: register('settings', 0xeb52),\n    shield: register('shield', 0xeb53),\n    smiley: register('smiley', 0xeb54),\n    sortPrecedence: register('sort-precedence', 0xeb55),\n    splitHorizontal: register('split-horizontal', 0xeb56),\n    splitVertical: register('split-vertical', 0xeb57),\n    squirrel: register('squirrel', 0xeb58),\n    starFull: register('star-full', 0xeb59),\n    starHalf: register('star-half', 0xeb5a),\n    symbolClass: register('symbol-class', 0xeb5b),\n    symbolColor: register('symbol-color', 0xeb5c),\n    symbolCustomColor: register('symbol-customcolor', 0xeb5c),\n    symbolConstant: register('symbol-constant', 0xeb5d),\n    symbolEnumMember: register('symbol-enum-member', 0xeb5e),\n    symbolField: register('symbol-field', 0xeb5f),\n    symbolFile: register('symbol-file', 0xeb60),\n    symbolInterface: register('symbol-interface', 0xeb61),\n    symbolKeyword: register('symbol-keyword', 0xeb62),\n    symbolMisc: register('symbol-misc', 0xeb63),\n    symbolOperator: register('symbol-operator', 0xeb64),\n    symbolProperty: register('symbol-property', 0xeb65),\n    wrench: register('wrench', 0xeb65),\n    wrenchSubaction: register('wrench-subaction', 0xeb65),\n    symbolSnippet: register('symbol-snippet', 0xeb66),\n    tasklist: register('tasklist', 0xeb67),\n    telescope: register('telescope', 0xeb68),\n    textSize: register('text-size', 0xeb69),\n    threeBars: register('three-bars', 0xeb6a),\n    thumbsdown: register('thumbsdown', 0xeb6b),\n    thumbsup: register('thumbsup', 0xeb6c),\n    tools: register('tools', 0xeb6d),\n    triangleDown: register('triangle-down', 0xeb6e),\n    triangleLeft: register('triangle-left', 0xeb6f),\n    triangleRight: register('triangle-right', 0xeb70),\n    triangleUp: register('triangle-up', 0xeb71),\n    twitter: register('twitter', 0xeb72),\n    unfold: register('unfold', 0xeb73),\n    unlock: register('unlock', 0xeb74),\n    unmute: register('unmute', 0xeb75),\n    unverified: register('unverified', 0xeb76),\n    verified: register('verified', 0xeb77),\n    versions: register('versions', 0xeb78),\n    vmActive: register('vm-active', 0xeb79),\n    vmOutline: register('vm-outline', 0xeb7a),\n    vmRunning: register('vm-running', 0xeb7b),\n    watch: register('watch', 0xeb7c),\n    whitespace: register('whitespace', 0xeb7d),\n    wholeWord: register('whole-word', 0xeb7e),\n    window: register('window', 0xeb7f),\n    wordWrap: register('word-wrap', 0xeb80),\n    zoomIn: register('zoom-in', 0xeb81),\n    zoomOut: register('zoom-out', 0xeb82),\n    listFilter: register('list-filter', 0xeb83),\n    listFlat: register('list-flat', 0xeb84),\n    listSelection: register('list-selection', 0xeb85),\n    selection: register('selection', 0xeb85),\n    listTree: register('list-tree', 0xeb86),\n    debugBreakpointFunctionUnverified: register('debug-breakpoint-function-unverified', 0xeb87),\n    debugBreakpointFunction: register('debug-breakpoint-function', 0xeb88),\n    debugBreakpointFunctionDisabled: register('debug-breakpoint-function-disabled', 0xeb88),\n    debugStackframeActive: register('debug-stackframe-active', 0xeb89),\n    circleSmallFilled: register('circle-small-filled', 0xeb8a),\n    debugStackframeDot: register('debug-stackframe-dot', 0xeb8a),\n    debugStackframe: register('debug-stackframe', 0xeb8b),\n    debugStackframeFocused: register('debug-stackframe-focused', 0xeb8b),\n    debugBreakpointUnsupported: register('debug-breakpoint-unsupported', 0xeb8c),\n    symbolString: register('symbol-string', 0xeb8d),\n    debugReverseContinue: register('debug-reverse-continue', 0xeb8e),\n    debugStepBack: register('debug-step-back', 0xeb8f),\n    debugRestartFrame: register('debug-restart-frame', 0xeb90),\n    callIncoming: register('call-incoming', 0xeb92),\n    callOutgoing: register('call-outgoing', 0xeb93),\n    menu: register('menu', 0xeb94),\n    expandAll: register('expand-all', 0xeb95),\n    feedback: register('feedback', 0xeb96),\n    gitPullRequestReviewer: register('git-pull-request-reviewer', 0xeb96),\n    groupByRefType: register('group-by-ref-type', 0xeb97),\n    ungroupByRefType: register('ungroup-by-ref-type', 0xeb98),\n    account: register('account', 0xeb99),\n    gitPullRequestAssignee: register('git-pull-request-assignee', 0xeb99),\n    bellDot: register('bell-dot', 0xeb9a),\n    debugConsole: register('debug-console', 0xeb9b),\n    library: register('library', 0xeb9c),\n    output: register('output', 0xeb9d),\n    runAll: register('run-all', 0xeb9e),\n    syncIgnored: register('sync-ignored', 0xeb9f),\n    pinned: register('pinned', 0xeba0),\n    githubInverted: register('github-inverted', 0xeba1),\n    debugAlt: register('debug-alt', 0xeb91),\n    serverProcess: register('server-process', 0xeba2),\n    serverEnvironment: register('server-environment', 0xeba3),\n    pass: register('pass', 0xeba4),\n    stopCircle: register('stop-circle', 0xeba5),\n    playCircle: register('play-circle', 0xeba6),\n    record: register('record', 0xeba7),\n    debugAltSmall: register('debug-alt-small', 0xeba8),\n    vmConnect: register('vm-connect', 0xeba9),\n    cloud: register('cloud', 0xebaa),\n    merge: register('merge', 0xebab),\n    exportIcon: register('export', 0xebac),\n    graphLeft: register('graph-left', 0xebad),\n    magnet: register('magnet', 0xebae),\n    notebook: register('notebook', 0xebaf),\n    redo: register('redo', 0xebb0),\n    checkAll: register('check-all', 0xebb1),\n    pinnedDirty: register('pinned-dirty', 0xebb2),\n    passFilled: register('pass-filled', 0xebb3),\n    circleLargeFilled: register('circle-large-filled', 0xebb4),\n    circleLarge: register('circle-large', 0xebb5),\n    circleLargeOutline: register('circle-large-outline', 0xebb5),\n    combine: register('combine', 0xebb6),\n    gather: register('gather', 0xebb6),\n    table: register('table', 0xebb7),\n    variableGroup: register('variable-group', 0xebb8),\n    typeHierarchy: register('type-hierarchy', 0xebb9),\n    typeHierarchySub: register('type-hierarchy-sub', 0xebba),\n    typeHierarchySuper: register('type-hierarchy-super', 0xebbb),\n    gitPullRequestCreate: register('git-pull-request-create', 0xebbc),\n    runAbove: register('run-above', 0xebbd),\n    runBelow: register('run-below', 0xebbe),\n    notebookTemplate: register('notebook-template', 0xebbf),\n    debugRerun: register('debug-rerun', 0xebc0),\n    workspaceTrusted: register('workspace-trusted', 0xebc1),\n    workspaceUntrusted: register('workspace-untrusted', 0xebc2),\n    workspaceUnspecified: register('workspace-unspecified', 0xebc3),\n    terminalCmd: register('terminal-cmd', 0xebc4),\n    terminalDebian: register('terminal-debian', 0xebc5),\n    terminalLinux: register('terminal-linux', 0xebc6),\n    terminalPowershell: register('terminal-powershell', 0xebc7),\n    terminalTmux: register('terminal-tmux', 0xebc8),\n    terminalUbuntu: register('terminal-ubuntu', 0xebc9),\n    terminalBash: register('terminal-bash', 0xebca),\n    arrowSwap: register('arrow-swap', 0xebcb),\n    copy: register('copy', 0xebcc),\n    personAdd: register('person-add', 0xebcd),\n    filterFilled: register('filter-filled', 0xebce),\n    wand: register('wand', 0xebcf),\n    debugLineByLine: register('debug-line-by-line', 0xebd0),\n    inspect: register('inspect', 0xebd1),\n    layers: register('layers', 0xebd2),\n    layersDot: register('layers-dot', 0xebd3),\n    layersActive: register('layers-active', 0xebd4),\n    compass: register('compass', 0xebd5),\n    compassDot: register('compass-dot', 0xebd6),\n    compassActive: register('compass-active', 0xebd7),\n    azure: register('azure', 0xebd8),\n    issueDraft: register('issue-draft', 0xebd9),\n    gitPullRequestClosed: register('git-pull-request-closed', 0xebda),\n    gitPullRequestDraft: register('git-pull-request-draft', 0xebdb),\n    debugAll: register('debug-all', 0xebdc),\n    debugCoverage: register('debug-coverage', 0xebdd),\n    runErrors: register('run-errors', 0xebde),\n    folderLibrary: register('folder-library', 0xebdf),\n    debugContinueSmall: register('debug-continue-small', 0xebe0),\n    beakerStop: register('beaker-stop', 0xebe1),\n    graphLine: register('graph-line', 0xebe2),\n    graphScatter: register('graph-scatter', 0xebe3),\n    pieChart: register('pie-chart', 0xebe4),\n    bracketDot: register('bracket-dot', 0xebe5),\n    bracketError: register('bracket-error', 0xebe6),\n    lockSmall: register('lock-small', 0xebe7),\n    azureDevops: register('azure-devops', 0xebe8),\n    verifiedFilled: register('verified-filled', 0xebe9),\n    newLine: register('newline', 0xebea),\n    layout: register('layout', 0xebeb),\n    layoutActivitybarLeft: register('layout-activitybar-left', 0xebec),\n    layoutActivitybarRight: register('layout-activitybar-right', 0xebed),\n    layoutPanelLeft: register('layout-panel-left', 0xebee),\n    layoutPanelCenter: register('layout-panel-center', 0xebef),\n    layoutPanelJustify: register('layout-panel-justify', 0xebf0),\n    layoutPanelRight: register('layout-panel-right', 0xebf1),\n    layoutPanel: register('layout-panel', 0xebf2),\n    layoutSidebarLeft: register('layout-sidebar-left', 0xebf3),\n    layoutSidebarRight: register('layout-sidebar-right', 0xebf4),\n    layoutStatusbar: register('layout-statusbar', 0xebf5),\n    layoutMenubar: register('layout-menubar', 0xebf6),\n    layoutCentered: register('layout-centered', 0xebf7),\n    layoutSidebarRightOff: register('layout-sidebar-right-off', 0xec00),\n    layoutPanelOff: register('layout-panel-off', 0xec01),\n    layoutSidebarLeftOff: register('layout-sidebar-left-off', 0xec02),\n    target: register('target', 0xebf8),\n    indent: register('indent', 0xebf9),\n    recordSmall: register('record-small', 0xebfa),\n    errorSmall: register('error-small', 0xebfb),\n    arrowCircleDown: register('arrow-circle-down', 0xebfc),\n    arrowCircleLeft: register('arrow-circle-left', 0xebfd),\n    arrowCircleRight: register('arrow-circle-right', 0xebfe),\n    arrowCircleUp: register('arrow-circle-up', 0xebff),\n    heartFilled: register('heart-filled', 0xec04),\n    map: register('map', 0xec05),\n    mapFilled: register('map-filled', 0xec06),\n    circleSmall: register('circle-small', 0xec07),\n    bellSlash: register('bell-slash', 0xec08),\n    bellSlashDot: register('bell-slash-dot', 0xec09),\n    commentUnresolved: register('comment-unresolved', 0xec0a),\n    gitPullRequestGoToChanges: register('git-pull-request-go-to-changes', 0xec0b),\n    gitPullRequestNewChanges: register('git-pull-request-new-changes', 0xec0c),\n    searchFuzzy: register('search-fuzzy', 0xec0d),\n    commentDraft: register('comment-draft', 0xec0e),\n    send: register('send', 0xec0f),\n    sparkle: register('sparkle', 0xec10),\n    insert: register('insert', 0xec11),\n    mic: register('mic', 0xec12),\n    thumbsDownFilled: register('thumbsdown-filled', 0xec13),\n    thumbsUpFilled: register('thumbsup-filled', 0xec14),\n    coffee: register('coffee', 0xec15),\n    snake: register('snake', 0xec16),\n    game: register('game', 0xec17),\n    vr: register('vr', 0xec18),\n    chip: register('chip', 0xec19),\n    piano: register('piano', 0xec1a),\n    music: register('music', 0xec1b),\n    micFilled: register('mic-filled', 0xec1c),\n    gitFetch: register('git-fetch', 0xec1d),\n    copilot: register('copilot', 0xec1e),\n    lightbulbSparkle: register('lightbulb-sparkle', 0xec1f),\n    lightbulbSparkleAutofix: register('lightbulb-sparkle-autofix', 0xec1f),\n    robot: register('robot', 0xec20),\n    sparkleFilled: register('sparkle-filled', 0xec21),\n    diffSingle: register('diff-single', 0xec22),\n    diffMultiple: register('diff-multiple', 0xec23),\n    // derived icons, that could become separate icons\n    dialogError: register('dialog-error', 'error'),\n    dialogWarning: register('dialog-warning', 'warning'),\n    dialogInfo: register('dialog-info', 'info'),\n    dialogClose: register('dialog-close', 'close'),\n    treeItemExpanded: register('tree-item-expanded', 'chevron-down'), // collapsed is done with rotation\n    treeFilterOnTypeOn: register('tree-filter-on-type-on', 'list-filter'),\n    treeFilterOnTypeOff: register('tree-filter-on-type-off', 'list-selection'),\n    treeFilterClear: register('tree-filter-clear', 'close'),\n    treeItemLoading: register('tree-item-loading', 'loading'),\n    menuSelection: register('menu-selection', 'check'),\n    menuSubmenu: register('menu-submenu', 'chevron-right'),\n    menuBarMore: register('menubar-more', 'more'),\n    scrollbarButtonLeft: register('scrollbar-button-left', 'triangle-left'),\n    scrollbarButtonRight: register('scrollbar-button-right', 'triangle-right'),\n    scrollbarButtonUp: register('scrollbar-button-up', 'triangle-up'),\n    scrollbarButtonDown: register('scrollbar-button-down', 'triangle-down'),\n    toolBarMore: register('toolbar-more', 'more'),\n    quickInputBack: register('quick-input-back', 'arrow-left')\n};\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/codicons.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/color.js":
/*!****************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/color.js ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Color: () => (/* binding */ Color),\n/* harmony export */   HSLA: () => (/* binding */ HSLA),\n/* harmony export */   HSVA: () => (/* binding */ HSVA),\n/* harmony export */   RGBA: () => (/* binding */ RGBA)\n/* harmony export */ });\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nfunction roundFloat(number, decimalPoints) {\n    const decimal = Math.pow(10, decimalPoints);\n    return Math.round(number * decimal) / decimal;\n}\nclass RGBA {\n    constructor(r, g, b, a = 1) {\n        this._rgbaBrand = undefined;\n        this.r = Math.min(255, Math.max(0, r)) | 0;\n        this.g = Math.min(255, Math.max(0, g)) | 0;\n        this.b = Math.min(255, Math.max(0, b)) | 0;\n        this.a = roundFloat(Math.max(Math.min(1, a), 0), 3);\n    }\n    static equals(a, b) {\n        return a.r === b.r && a.g === b.g && a.b === b.b && a.a === b.a;\n    }\n}\nclass HSLA {\n    constructor(h, s, l, a) {\n        this._hslaBrand = undefined;\n        this.h = Math.max(Math.min(360, h), 0) | 0;\n        this.s = roundFloat(Math.max(Math.min(1, s), 0), 3);\n        this.l = roundFloat(Math.max(Math.min(1, l), 0), 3);\n        this.a = roundFloat(Math.max(Math.min(1, a), 0), 3);\n    }\n    static equals(a, b) {\n        return a.h === b.h && a.s === b.s && a.l === b.l && a.a === b.a;\n    }\n    /**\n     * Converts an RGB color value to HSL. Conversion formula\n     * adapted from http://en.wikipedia.org/wiki/HSL_color_space.\n     * Assumes r, g, and b are contained in the set [0, 255] and\n     * returns h in the set [0, 360], s, and l in the set [0, 1].\n     */\n    static fromRGBA(rgba) {\n        const r = rgba.r / 255;\n        const g = rgba.g / 255;\n        const b = rgba.b / 255;\n        const a = rgba.a;\n        const max = Math.max(r, g, b);\n        const min = Math.min(r, g, b);\n        let h = 0;\n        let s = 0;\n        const l = (min + max) / 2;\n        const chroma = max - min;\n        if (chroma > 0) {\n            s = Math.min((l <= 0.5 ? chroma / (2 * l) : chroma / (2 - (2 * l))), 1);\n            switch (max) {\n                case r:\n                    h = (g - b) / chroma + (g < b ? 6 : 0);\n                    break;\n                case g:\n                    h = (b - r) / chroma + 2;\n                    break;\n                case b:\n                    h = (r - g) / chroma + 4;\n                    break;\n            }\n            h *= 60;\n            h = Math.round(h);\n        }\n        return new HSLA(h, s, l, a);\n    }\n    static _hue2rgb(p, q, t) {\n        if (t < 0) {\n            t += 1;\n        }\n        if (t > 1) {\n            t -= 1;\n        }\n        if (t < 1 / 6) {\n            return p + (q - p) * 6 * t;\n        }\n        if (t < 1 / 2) {\n            return q;\n        }\n        if (t < 2 / 3) {\n            return p + (q - p) * (2 / 3 - t) * 6;\n        }\n        return p;\n    }\n    /**\n     * Converts an HSL color value to RGB. Conversion formula\n     * adapted from http://en.wikipedia.org/wiki/HSL_color_space.\n     * Assumes h in the set [0, 360] s, and l are contained in the set [0, 1] and\n     * returns r, g, and b in the set [0, 255].\n     */\n    static toRGBA(hsla) {\n        const h = hsla.h / 360;\n        const { s, l, a } = hsla;\n        let r, g, b;\n        if (s === 0) {\n            r = g = b = l; // achromatic\n        }\n        else {\n            const q = l < 0.5 ? l * (1 + s) : l + s - l * s;\n            const p = 2 * l - q;\n            r = HSLA._hue2rgb(p, q, h + 1 / 3);\n            g = HSLA._hue2rgb(p, q, h);\n            b = HSLA._hue2rgb(p, q, h - 1 / 3);\n        }\n        return new RGBA(Math.round(r * 255), Math.round(g * 255), Math.round(b * 255), a);\n    }\n}\nclass HSVA {\n    constructor(h, s, v, a) {\n        this._hsvaBrand = undefined;\n        this.h = Math.max(Math.min(360, h), 0) | 0;\n        this.s = roundFloat(Math.max(Math.min(1, s), 0), 3);\n        this.v = roundFloat(Math.max(Math.min(1, v), 0), 3);\n        this.a = roundFloat(Math.max(Math.min(1, a), 0), 3);\n    }\n    static equals(a, b) {\n        return a.h === b.h && a.s === b.s && a.v === b.v && a.a === b.a;\n    }\n    // from http://www.rapidtables.com/convert/color/rgb-to-hsv.htm\n    static fromRGBA(rgba) {\n        const r = rgba.r / 255;\n        const g = rgba.g / 255;\n        const b = rgba.b / 255;\n        const cmax = Math.max(r, g, b);\n        const cmin = Math.min(r, g, b);\n        const delta = cmax - cmin;\n        const s = cmax === 0 ? 0 : (delta / cmax);\n        let m;\n        if (delta === 0) {\n            m = 0;\n        }\n        else if (cmax === r) {\n            m = ((((g - b) / delta) % 6) + 6) % 6;\n        }\n        else if (cmax === g) {\n            m = ((b - r) / delta) + 2;\n        }\n        else {\n            m = ((r - g) / delta) + 4;\n        }\n        return new HSVA(Math.round(m * 60), s, cmax, rgba.a);\n    }\n    // from http://www.rapidtables.com/convert/color/hsv-to-rgb.htm\n    static toRGBA(hsva) {\n        const { h, s, v, a } = hsva;\n        const c = v * s;\n        const x = c * (1 - Math.abs((h / 60) % 2 - 1));\n        const m = v - c;\n        let [r, g, b] = [0, 0, 0];\n        if (h < 60) {\n            r = c;\n            g = x;\n        }\n        else if (h < 120) {\n            r = x;\n            g = c;\n        }\n        else if (h < 180) {\n            g = c;\n            b = x;\n        }\n        else if (h < 240) {\n            g = x;\n            b = c;\n        }\n        else if (h < 300) {\n            r = x;\n            b = c;\n        }\n        else if (h <= 360) {\n            r = c;\n            b = x;\n        }\n        r = Math.round((r + m) * 255);\n        g = Math.round((g + m) * 255);\n        b = Math.round((b + m) * 255);\n        return new RGBA(r, g, b, a);\n    }\n}\nclass Color {\n    static fromHex(hex) {\n        return Color.Format.CSS.parseHex(hex) || Color.red;\n    }\n    static equals(a, b) {\n        if (!a && !b) {\n            return true;\n        }\n        if (!a || !b) {\n            return false;\n        }\n        return a.equals(b);\n    }\n    get hsla() {\n        if (this._hsla) {\n            return this._hsla;\n        }\n        else {\n            return HSLA.fromRGBA(this.rgba);\n        }\n    }\n    get hsva() {\n        if (this._hsva) {\n            return this._hsva;\n        }\n        return HSVA.fromRGBA(this.rgba);\n    }\n    constructor(arg) {\n        if (!arg) {\n            throw new Error('Color needs a value');\n        }\n        else if (arg instanceof RGBA) {\n            this.rgba = arg;\n        }\n        else if (arg instanceof HSLA) {\n            this._hsla = arg;\n            this.rgba = HSLA.toRGBA(arg);\n        }\n        else if (arg instanceof HSVA) {\n            this._hsva = arg;\n            this.rgba = HSVA.toRGBA(arg);\n        }\n        else {\n            throw new Error('Invalid color ctor argument');\n        }\n    }\n    equals(other) {\n        return !!other && RGBA.equals(this.rgba, other.rgba) && HSLA.equals(this.hsla, other.hsla) && HSVA.equals(this.hsva, other.hsva);\n    }\n    /**\n     * http://www.w3.org/TR/WCAG20/#relativeluminancedef\n     * Returns the number in the set [0, 1]. O => Darkest Black. 1 => Lightest white.\n     */\n    getRelativeLuminance() {\n        const R = Color._relativeLuminanceForComponent(this.rgba.r);\n        const G = Color._relativeLuminanceForComponent(this.rgba.g);\n        const B = Color._relativeLuminanceForComponent(this.rgba.b);\n        const luminance = 0.2126 * R + 0.7152 * G + 0.0722 * B;\n        return roundFloat(luminance, 4);\n    }\n    static _relativeLuminanceForComponent(color) {\n        const c = color / 255;\n        return (c <= 0.03928) ? c / 12.92 : Math.pow(((c + 0.055) / 1.055), 2.4);\n    }\n    /**\n     *\thttp://24ways.org/2010/calculating-color-contrast\n     *  Return 'true' if lighter color otherwise 'false'\n     */\n    isLighter() {\n        const yiq = (this.rgba.r * 299 + this.rgba.g * 587 + this.rgba.b * 114) / 1000;\n        return yiq >= 128;\n    }\n    isLighterThan(another) {\n        const lum1 = this.getRelativeLuminance();\n        const lum2 = another.getRelativeLuminance();\n        return lum1 > lum2;\n    }\n    isDarkerThan(another) {\n        const lum1 = this.getRelativeLuminance();\n        const lum2 = another.getRelativeLuminance();\n        return lum1 < lum2;\n    }\n    lighten(factor) {\n        return new Color(new HSLA(this.hsla.h, this.hsla.s, this.hsla.l + this.hsla.l * factor, this.hsla.a));\n    }\n    darken(factor) {\n        return new Color(new HSLA(this.hsla.h, this.hsla.s, this.hsla.l - this.hsla.l * factor, this.hsla.a));\n    }\n    transparent(factor) {\n        const { r, g, b, a } = this.rgba;\n        return new Color(new RGBA(r, g, b, a * factor));\n    }\n    isTransparent() {\n        return this.rgba.a === 0;\n    }\n    isOpaque() {\n        return this.rgba.a === 1;\n    }\n    opposite() {\n        return new Color(new RGBA(255 - this.rgba.r, 255 - this.rgba.g, 255 - this.rgba.b, this.rgba.a));\n    }\n    makeOpaque(opaqueBackground) {\n        if (this.isOpaque() || opaqueBackground.rgba.a !== 1) {\n            // only allow to blend onto a non-opaque color onto a opaque color\n            return this;\n        }\n        const { r, g, b, a } = this.rgba;\n        // https://stackoverflow.com/questions/12228548/finding-equivalent-color-with-opacity\n        return new Color(new RGBA(opaqueBackground.rgba.r - a * (opaqueBackground.rgba.r - r), opaqueBackground.rgba.g - a * (opaqueBackground.rgba.g - g), opaqueBackground.rgba.b - a * (opaqueBackground.rgba.b - b), 1));\n    }\n    toString() {\n        if (!this._toString) {\n            this._toString = Color.Format.CSS.format(this);\n        }\n        return this._toString;\n    }\n    static getLighterColor(of, relative, factor) {\n        if (of.isLighterThan(relative)) {\n            return of;\n        }\n        factor = factor ? factor : 0.5;\n        const lum1 = of.getRelativeLuminance();\n        const lum2 = relative.getRelativeLuminance();\n        factor = factor * (lum2 - lum1) / lum2;\n        return of.lighten(factor);\n    }\n    static getDarkerColor(of, relative, factor) {\n        if (of.isDarkerThan(relative)) {\n            return of;\n        }\n        factor = factor ? factor : 0.5;\n        const lum1 = of.getRelativeLuminance();\n        const lum2 = relative.getRelativeLuminance();\n        factor = factor * (lum1 - lum2) / lum1;\n        return of.darken(factor);\n    }\n}\nColor.white = new Color(new RGBA(255, 255, 255, 1));\nColor.black = new Color(new RGBA(0, 0, 0, 1));\nColor.red = new Color(new RGBA(255, 0, 0, 1));\nColor.blue = new Color(new RGBA(0, 0, 255, 1));\nColor.green = new Color(new RGBA(0, 255, 0, 1));\nColor.cyan = new Color(new RGBA(0, 255, 255, 1));\nColor.lightgrey = new Color(new RGBA(211, 211, 211, 1));\nColor.transparent = new Color(new RGBA(0, 0, 0, 0));\n(function (Color) {\n    let Format;\n    (function (Format) {\n        let CSS;\n        (function (CSS) {\n            function formatRGB(color) {\n                if (color.rgba.a === 1) {\n                    return `rgb(${color.rgba.r}, ${color.rgba.g}, ${color.rgba.b})`;\n                }\n                return Color.Format.CSS.formatRGBA(color);\n            }\n            CSS.formatRGB = formatRGB;\n            function formatRGBA(color) {\n                return `rgba(${color.rgba.r}, ${color.rgba.g}, ${color.rgba.b}, ${+(color.rgba.a).toFixed(2)})`;\n            }\n            CSS.formatRGBA = formatRGBA;\n            function formatHSL(color) {\n                if (color.hsla.a === 1) {\n                    return `hsl(${color.hsla.h}, ${(color.hsla.s * 100).toFixed(2)}%, ${(color.hsla.l * 100).toFixed(2)}%)`;\n                }\n                return Color.Format.CSS.formatHSLA(color);\n            }\n            CSS.formatHSL = formatHSL;\n            function formatHSLA(color) {\n                return `hsla(${color.hsla.h}, ${(color.hsla.s * 100).toFixed(2)}%, ${(color.hsla.l * 100).toFixed(2)}%, ${color.hsla.a.toFixed(2)})`;\n            }\n            CSS.formatHSLA = formatHSLA;\n            function _toTwoDigitHex(n) {\n                const r = n.toString(16);\n                return r.length !== 2 ? '0' + r : r;\n            }\n            /**\n             * Formats the color as #RRGGBB\n             */\n            function formatHex(color) {\n                return `#${_toTwoDigitHex(color.rgba.r)}${_toTwoDigitHex(color.rgba.g)}${_toTwoDigitHex(color.rgba.b)}`;\n            }\n            CSS.formatHex = formatHex;\n            /**\n             * Formats the color as #RRGGBBAA\n             * If 'compact' is set, colors without transparancy will be printed as #RRGGBB\n             */\n            function formatHexA(color, compact = false) {\n                if (compact && color.rgba.a === 1) {\n                    return Color.Format.CSS.formatHex(color);\n                }\n                return `#${_toTwoDigitHex(color.rgba.r)}${_toTwoDigitHex(color.rgba.g)}${_toTwoDigitHex(color.rgba.b)}${_toTwoDigitHex(Math.round(color.rgba.a * 255))}`;\n            }\n            CSS.formatHexA = formatHexA;\n            /**\n             * The default format will use HEX if opaque and RGBA otherwise.\n             */\n            function format(color) {\n                if (color.isOpaque()) {\n                    return Color.Format.CSS.formatHex(color);\n                }\n                return Color.Format.CSS.formatRGBA(color);\n            }\n            CSS.format = format;\n            /**\n             * Converts an Hex color value to a Color.\n             * returns r, g, and b are contained in the set [0, 255]\n             * @param hex string (#RGB, #RGBA, #RRGGBB or #RRGGBBAA).\n             */\n            function parseHex(hex) {\n                const length = hex.length;\n                if (length === 0) {\n                    // Invalid color\n                    return null;\n                }\n                if (hex.charCodeAt(0) !== 35 /* CharCode.Hash */) {\n                    // Does not begin with a #\n                    return null;\n                }\n                if (length === 7) {\n                    // #RRGGBB format\n                    const r = 16 * _parseHexDigit(hex.charCodeAt(1)) + _parseHexDigit(hex.charCodeAt(2));\n                    const g = 16 * _parseHexDigit(hex.charCodeAt(3)) + _parseHexDigit(hex.charCodeAt(4));\n                    const b = 16 * _parseHexDigit(hex.charCodeAt(5)) + _parseHexDigit(hex.charCodeAt(6));\n                    return new Color(new RGBA(r, g, b, 1));\n                }\n                if (length === 9) {\n                    // #RRGGBBAA format\n                    const r = 16 * _parseHexDigit(hex.charCodeAt(1)) + _parseHexDigit(hex.charCodeAt(2));\n                    const g = 16 * _parseHexDigit(hex.charCodeAt(3)) + _parseHexDigit(hex.charCodeAt(4));\n                    const b = 16 * _parseHexDigit(hex.charCodeAt(5)) + _parseHexDigit(hex.charCodeAt(6));\n                    const a = 16 * _parseHexDigit(hex.charCodeAt(7)) + _parseHexDigit(hex.charCodeAt(8));\n                    return new Color(new RGBA(r, g, b, a / 255));\n                }\n                if (length === 4) {\n                    // #RGB format\n                    const r = _parseHexDigit(hex.charCodeAt(1));\n                    const g = _parseHexDigit(hex.charCodeAt(2));\n                    const b = _parseHexDigit(hex.charCodeAt(3));\n                    return new Color(new RGBA(16 * r + r, 16 * g + g, 16 * b + b));\n                }\n                if (length === 5) {\n                    // #RGBA format\n                    const r = _parseHexDigit(hex.charCodeAt(1));\n                    const g = _parseHexDigit(hex.charCodeAt(2));\n                    const b = _parseHexDigit(hex.charCodeAt(3));\n                    const a = _parseHexDigit(hex.charCodeAt(4));\n                    return new Color(new RGBA(16 * r + r, 16 * g + g, 16 * b + b, (16 * a + a) / 255));\n                }\n                // Invalid color\n                return null;\n            }\n            CSS.parseHex = parseHex;\n            function _parseHexDigit(charCode) {\n                switch (charCode) {\n                    case 48 /* CharCode.Digit0 */: return 0;\n                    case 49 /* CharCode.Digit1 */: return 1;\n                    case 50 /* CharCode.Digit2 */: return 2;\n                    case 51 /* CharCode.Digit3 */: return 3;\n                    case 52 /* CharCode.Digit4 */: return 4;\n                    case 53 /* CharCode.Digit5 */: return 5;\n                    case 54 /* CharCode.Digit6 */: return 6;\n                    case 55 /* CharCode.Digit7 */: return 7;\n                    case 56 /* CharCode.Digit8 */: return 8;\n                    case 57 /* CharCode.Digit9 */: return 9;\n                    case 97 /* CharCode.a */: return 10;\n                    case 65 /* CharCode.A */: return 10;\n                    case 98 /* CharCode.b */: return 11;\n                    case 66 /* CharCode.B */: return 11;\n                    case 99 /* CharCode.c */: return 12;\n                    case 67 /* CharCode.C */: return 12;\n                    case 100 /* CharCode.d */: return 13;\n                    case 68 /* CharCode.D */: return 13;\n                    case 101 /* CharCode.e */: return 14;\n                    case 69 /* CharCode.E */: return 14;\n                    case 102 /* CharCode.f */: return 15;\n                    case 70 /* CharCode.F */: return 15;\n                }\n                return 0;\n            }\n        })(CSS = Format.CSS || (Format.CSS = {}));\n    })(Format = Color.Format || (Color.Format = {}));\n})(Color || (Color = {}));\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/color.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/diff/diff.js":
/*!********************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/diff/diff.js ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LcsDiff: () => (/* binding */ LcsDiff),\n/* harmony export */   StringDiffSequence: () => (/* binding */ StringDiffSequence),\n/* harmony export */   stringDiff: () => (/* binding */ stringDiff)\n/* harmony export */ });\n/* harmony import */ var _diffChange_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./diffChange.js */ \"./node_modules/monaco-editor/esm/vs/base/common/diff/diffChange.js\");\n/* harmony import */ var _hash_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../hash.js */ \"./node_modules/monaco-editor/esm/vs/base/common/hash.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n\nclass StringDiffSequence {\n    constructor(source) {\n        this.source = source;\n    }\n    getElements() {\n        const source = this.source;\n        const characters = new Int32Array(source.length);\n        for (let i = 0, len = source.length; i < len; i++) {\n            characters[i] = source.charCodeAt(i);\n        }\n        return characters;\n    }\n}\nfunction stringDiff(original, modified, pretty) {\n    return new LcsDiff(new StringDiffSequence(original), new StringDiffSequence(modified)).ComputeDiff(pretty).changes;\n}\n//\n// The code below has been ported from a C# implementation in VS\n//\nclass Debug {\n    static Assert(condition, message) {\n        if (!condition) {\n            throw new Error(message);\n        }\n    }\n}\nclass MyArray {\n    /**\n     * Copies a range of elements from an Array starting at the specified source index and pastes\n     * them to another Array starting at the specified destination index. The length and the indexes\n     * are specified as 64-bit integers.\n     * sourceArray:\n     *\t\tThe Array that contains the data to copy.\n     * sourceIndex:\n     *\t\tA 64-bit integer that represents the index in the sourceArray at which copying begins.\n     * destinationArray:\n     *\t\tThe Array that receives the data.\n     * destinationIndex:\n     *\t\tA 64-bit integer that represents the index in the destinationArray at which storing begins.\n     * length:\n     *\t\tA 64-bit integer that represents the number of elements to copy.\n     */\n    static Copy(sourceArray, sourceIndex, destinationArray, destinationIndex, length) {\n        for (let i = 0; i < length; i++) {\n            destinationArray[destinationIndex + i] = sourceArray[sourceIndex + i];\n        }\n    }\n    static Copy2(sourceArray, sourceIndex, destinationArray, destinationIndex, length) {\n        for (let i = 0; i < length; i++) {\n            destinationArray[destinationIndex + i] = sourceArray[sourceIndex + i];\n        }\n    }\n}\n/**\n * A utility class which helps to create the set of DiffChanges from\n * a difference operation. This class accepts original DiffElements and\n * modified DiffElements that are involved in a particular change. The\n * MarkNextChange() method can be called to mark the separation between\n * distinct changes. At the end, the Changes property can be called to retrieve\n * the constructed changes.\n */\nclass DiffChangeHelper {\n    /**\n     * Constructs a new DiffChangeHelper for the given DiffSequences.\n     */\n    constructor() {\n        this.m_changes = [];\n        this.m_originalStart = 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */;\n        this.m_modifiedStart = 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */;\n        this.m_originalCount = 0;\n        this.m_modifiedCount = 0;\n    }\n    /**\n     * Marks the beginning of the next change in the set of differences.\n     */\n    MarkNextChange() {\n        // Only add to the list if there is something to add\n        if (this.m_originalCount > 0 || this.m_modifiedCount > 0) {\n            // Add the new change to our list\n            this.m_changes.push(new _diffChange_js__WEBPACK_IMPORTED_MODULE_0__.DiffChange(this.m_originalStart, this.m_originalCount, this.m_modifiedStart, this.m_modifiedCount));\n        }\n        // Reset for the next change\n        this.m_originalCount = 0;\n        this.m_modifiedCount = 0;\n        this.m_originalStart = 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */;\n        this.m_modifiedStart = 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */;\n    }\n    /**\n     * Adds the original element at the given position to the elements\n     * affected by the current change. The modified index gives context\n     * to the change position with respect to the original sequence.\n     * @param originalIndex The index of the original element to add.\n     * @param modifiedIndex The index of the modified element that provides corresponding position in the modified sequence.\n     */\n    AddOriginalElement(originalIndex, modifiedIndex) {\n        // The 'true' start index is the smallest of the ones we've seen\n        this.m_originalStart = Math.min(this.m_originalStart, originalIndex);\n        this.m_modifiedStart = Math.min(this.m_modifiedStart, modifiedIndex);\n        this.m_originalCount++;\n    }\n    /**\n     * Adds the modified element at the given position to the elements\n     * affected by the current change. The original index gives context\n     * to the change position with respect to the modified sequence.\n     * @param originalIndex The index of the original element that provides corresponding position in the original sequence.\n     * @param modifiedIndex The index of the modified element to add.\n     */\n    AddModifiedElement(originalIndex, modifiedIndex) {\n        // The 'true' start index is the smallest of the ones we've seen\n        this.m_originalStart = Math.min(this.m_originalStart, originalIndex);\n        this.m_modifiedStart = Math.min(this.m_modifiedStart, modifiedIndex);\n        this.m_modifiedCount++;\n    }\n    /**\n     * Retrieves all of the changes marked by the class.\n     */\n    getChanges() {\n        if (this.m_originalCount > 0 || this.m_modifiedCount > 0) {\n            // Finish up on whatever is left\n            this.MarkNextChange();\n        }\n        return this.m_changes;\n    }\n    /**\n     * Retrieves all of the changes marked by the class in the reverse order\n     */\n    getReverseChanges() {\n        if (this.m_originalCount > 0 || this.m_modifiedCount > 0) {\n            // Finish up on whatever is left\n            this.MarkNextChange();\n        }\n        this.m_changes.reverse();\n        return this.m_changes;\n    }\n}\n/**\n * An implementation of the difference algorithm described in\n * \"An O(ND) Difference Algorithm and its variations\" by Eugene W. Myers\n */\nclass LcsDiff {\n    /**\n     * Constructs the DiffFinder\n     */\n    constructor(originalSequence, modifiedSequence, continueProcessingPredicate = null) {\n        this.ContinueProcessingPredicate = continueProcessingPredicate;\n        this._originalSequence = originalSequence;\n        this._modifiedSequence = modifiedSequence;\n        const [originalStringElements, originalElementsOrHash, originalHasStrings] = LcsDiff._getElements(originalSequence);\n        const [modifiedStringElements, modifiedElementsOrHash, modifiedHasStrings] = LcsDiff._getElements(modifiedSequence);\n        this._hasStrings = (originalHasStrings && modifiedHasStrings);\n        this._originalStringElements = originalStringElements;\n        this._originalElementsOrHash = originalElementsOrHash;\n        this._modifiedStringElements = modifiedStringElements;\n        this._modifiedElementsOrHash = modifiedElementsOrHash;\n        this.m_forwardHistory = [];\n        this.m_reverseHistory = [];\n    }\n    static _isStringArray(arr) {\n        return (arr.length > 0 && typeof arr[0] === 'string');\n    }\n    static _getElements(sequence) {\n        const elements = sequence.getElements();\n        if (LcsDiff._isStringArray(elements)) {\n            const hashes = new Int32Array(elements.length);\n            for (let i = 0, len = elements.length; i < len; i++) {\n                hashes[i] = (0,_hash_js__WEBPACK_IMPORTED_MODULE_1__.stringHash)(elements[i], 0);\n            }\n            return [elements, hashes, true];\n        }\n        if (elements instanceof Int32Array) {\n            return [[], elements, false];\n        }\n        return [[], new Int32Array(elements), false];\n    }\n    ElementsAreEqual(originalIndex, newIndex) {\n        if (this._originalElementsOrHash[originalIndex] !== this._modifiedElementsOrHash[newIndex]) {\n            return false;\n        }\n        return (this._hasStrings ? this._originalStringElements[originalIndex] === this._modifiedStringElements[newIndex] : true);\n    }\n    ElementsAreStrictEqual(originalIndex, newIndex) {\n        if (!this.ElementsAreEqual(originalIndex, newIndex)) {\n            return false;\n        }\n        const originalElement = LcsDiff._getStrictElement(this._originalSequence, originalIndex);\n        const modifiedElement = LcsDiff._getStrictElement(this._modifiedSequence, newIndex);\n        return (originalElement === modifiedElement);\n    }\n    static _getStrictElement(sequence, index) {\n        if (typeof sequence.getStrictElement === 'function') {\n            return sequence.getStrictElement(index);\n        }\n        return null;\n    }\n    OriginalElementsAreEqual(index1, index2) {\n        if (this._originalElementsOrHash[index1] !== this._originalElementsOrHash[index2]) {\n            return false;\n        }\n        return (this._hasStrings ? this._originalStringElements[index1] === this._originalStringElements[index2] : true);\n    }\n    ModifiedElementsAreEqual(index1, index2) {\n        if (this._modifiedElementsOrHash[index1] !== this._modifiedElementsOrHash[index2]) {\n            return false;\n        }\n        return (this._hasStrings ? this._modifiedStringElements[index1] === this._modifiedStringElements[index2] : true);\n    }\n    ComputeDiff(pretty) {\n        return this._ComputeDiff(0, this._originalElementsOrHash.length - 1, 0, this._modifiedElementsOrHash.length - 1, pretty);\n    }\n    /**\n     * Computes the differences between the original and modified input\n     * sequences on the bounded range.\n     * @returns An array of the differences between the two input sequences.\n     */\n    _ComputeDiff(originalStart, originalEnd, modifiedStart, modifiedEnd, pretty) {\n        const quitEarlyArr = [false];\n        let changes = this.ComputeDiffRecursive(originalStart, originalEnd, modifiedStart, modifiedEnd, quitEarlyArr);\n        if (pretty) {\n            // We have to clean up the computed diff to be more intuitive\n            // but it turns out this cannot be done correctly until the entire set\n            // of diffs have been computed\n            changes = this.PrettifyChanges(changes);\n        }\n        return {\n            quitEarly: quitEarlyArr[0],\n            changes: changes\n        };\n    }\n    /**\n     * Private helper method which computes the differences on the bounded range\n     * recursively.\n     * @returns An array of the differences between the two input sequences.\n     */\n    ComputeDiffRecursive(originalStart, originalEnd, modifiedStart, modifiedEnd, quitEarlyArr) {\n        quitEarlyArr[0] = false;\n        // Find the start of the differences\n        while (originalStart <= originalEnd && modifiedStart <= modifiedEnd && this.ElementsAreEqual(originalStart, modifiedStart)) {\n            originalStart++;\n            modifiedStart++;\n        }\n        // Find the end of the differences\n        while (originalEnd >= originalStart && modifiedEnd >= modifiedStart && this.ElementsAreEqual(originalEnd, modifiedEnd)) {\n            originalEnd--;\n            modifiedEnd--;\n        }\n        // In the special case where we either have all insertions or all deletions or the sequences are identical\n        if (originalStart > originalEnd || modifiedStart > modifiedEnd) {\n            let changes;\n            if (modifiedStart <= modifiedEnd) {\n                Debug.Assert(originalStart === originalEnd + 1, 'originalStart should only be one more than originalEnd');\n                // All insertions\n                changes = [\n                    new _diffChange_js__WEBPACK_IMPORTED_MODULE_0__.DiffChange(originalStart, 0, modifiedStart, modifiedEnd - modifiedStart + 1)\n                ];\n            }\n            else if (originalStart <= originalEnd) {\n                Debug.Assert(modifiedStart === modifiedEnd + 1, 'modifiedStart should only be one more than modifiedEnd');\n                // All deletions\n                changes = [\n                    new _diffChange_js__WEBPACK_IMPORTED_MODULE_0__.DiffChange(originalStart, originalEnd - originalStart + 1, modifiedStart, 0)\n                ];\n            }\n            else {\n                Debug.Assert(originalStart === originalEnd + 1, 'originalStart should only be one more than originalEnd');\n                Debug.Assert(modifiedStart === modifiedEnd + 1, 'modifiedStart should only be one more than modifiedEnd');\n                // Identical sequences - No differences\n                changes = [];\n            }\n            return changes;\n        }\n        // This problem can be solved using the Divide-And-Conquer technique.\n        const midOriginalArr = [0];\n        const midModifiedArr = [0];\n        const result = this.ComputeRecursionPoint(originalStart, originalEnd, modifiedStart, modifiedEnd, midOriginalArr, midModifiedArr, quitEarlyArr);\n        const midOriginal = midOriginalArr[0];\n        const midModified = midModifiedArr[0];\n        if (result !== null) {\n            // Result is not-null when there was enough memory to compute the changes while\n            // searching for the recursion point\n            return result;\n        }\n        else if (!quitEarlyArr[0]) {\n            // We can break the problem down recursively by finding the changes in the\n            // First Half:   (originalStart, modifiedStart) to (midOriginal, midModified)\n            // Second Half:  (midOriginal + 1, minModified + 1) to (originalEnd, modifiedEnd)\n            // NOTE: ComputeDiff() is inclusive, therefore the second range starts on the next point\n            const leftChanges = this.ComputeDiffRecursive(originalStart, midOriginal, modifiedStart, midModified, quitEarlyArr);\n            let rightChanges = [];\n            if (!quitEarlyArr[0]) {\n                rightChanges = this.ComputeDiffRecursive(midOriginal + 1, originalEnd, midModified + 1, modifiedEnd, quitEarlyArr);\n            }\n            else {\n                // We didn't have time to finish the first half, so we don't have time to compute this half.\n                // Consider the entire rest of the sequence different.\n                rightChanges = [\n                    new _diffChange_js__WEBPACK_IMPORTED_MODULE_0__.DiffChange(midOriginal + 1, originalEnd - (midOriginal + 1) + 1, midModified + 1, modifiedEnd - (midModified + 1) + 1)\n                ];\n            }\n            return this.ConcatenateChanges(leftChanges, rightChanges);\n        }\n        // If we hit here, we quit early, and so can't return anything meaningful\n        return [\n            new _diffChange_js__WEBPACK_IMPORTED_MODULE_0__.DiffChange(originalStart, originalEnd - originalStart + 1, modifiedStart, modifiedEnd - modifiedStart + 1)\n        ];\n    }\n    WALKTRACE(diagonalForwardBase, diagonalForwardStart, diagonalForwardEnd, diagonalForwardOffset, diagonalReverseBase, diagonalReverseStart, diagonalReverseEnd, diagonalReverseOffset, forwardPoints, reversePoints, originalIndex, originalEnd, midOriginalArr, modifiedIndex, modifiedEnd, midModifiedArr, deltaIsEven, quitEarlyArr) {\n        let forwardChanges = null;\n        let reverseChanges = null;\n        // First, walk backward through the forward diagonals history\n        let changeHelper = new DiffChangeHelper();\n        let diagonalMin = diagonalForwardStart;\n        let diagonalMax = diagonalForwardEnd;\n        let diagonalRelative = (midOriginalArr[0] - midModifiedArr[0]) - diagonalForwardOffset;\n        let lastOriginalIndex = -1073741824 /* Constants.MIN_SAFE_SMALL_INTEGER */;\n        let historyIndex = this.m_forwardHistory.length - 1;\n        do {\n            // Get the diagonal index from the relative diagonal number\n            const diagonal = diagonalRelative + diagonalForwardBase;\n            // Figure out where we came from\n            if (diagonal === diagonalMin || (diagonal < diagonalMax && forwardPoints[diagonal - 1] < forwardPoints[diagonal + 1])) {\n                // Vertical line (the element is an insert)\n                originalIndex = forwardPoints[diagonal + 1];\n                modifiedIndex = originalIndex - diagonalRelative - diagonalForwardOffset;\n                if (originalIndex < lastOriginalIndex) {\n                    changeHelper.MarkNextChange();\n                }\n                lastOriginalIndex = originalIndex;\n                changeHelper.AddModifiedElement(originalIndex + 1, modifiedIndex);\n                diagonalRelative = (diagonal + 1) - diagonalForwardBase; //Setup for the next iteration\n            }\n            else {\n                // Horizontal line (the element is a deletion)\n                originalIndex = forwardPoints[diagonal - 1] + 1;\n                modifiedIndex = originalIndex - diagonalRelative - diagonalForwardOffset;\n                if (originalIndex < lastOriginalIndex) {\n                    changeHelper.MarkNextChange();\n                }\n                lastOriginalIndex = originalIndex - 1;\n                changeHelper.AddOriginalElement(originalIndex, modifiedIndex + 1);\n                diagonalRelative = (diagonal - 1) - diagonalForwardBase; //Setup for the next iteration\n            }\n            if (historyIndex >= 0) {\n                forwardPoints = this.m_forwardHistory[historyIndex];\n                diagonalForwardBase = forwardPoints[0]; //We stored this in the first spot\n                diagonalMin = 1;\n                diagonalMax = forwardPoints.length - 1;\n            }\n        } while (--historyIndex >= -1);\n        // Ironically, we get the forward changes as the reverse of the\n        // order we added them since we technically added them backwards\n        forwardChanges = changeHelper.getReverseChanges();\n        if (quitEarlyArr[0]) {\n            // TODO: Calculate a partial from the reverse diagonals.\n            //       For now, just assume everything after the midOriginal/midModified point is a diff\n            let originalStartPoint = midOriginalArr[0] + 1;\n            let modifiedStartPoint = midModifiedArr[0] + 1;\n            if (forwardChanges !== null && forwardChanges.length > 0) {\n                const lastForwardChange = forwardChanges[forwardChanges.length - 1];\n                originalStartPoint = Math.max(originalStartPoint, lastForwardChange.getOriginalEnd());\n                modifiedStartPoint = Math.max(modifiedStartPoint, lastForwardChange.getModifiedEnd());\n            }\n            reverseChanges = [\n                new _diffChange_js__WEBPACK_IMPORTED_MODULE_0__.DiffChange(originalStartPoint, originalEnd - originalStartPoint + 1, modifiedStartPoint, modifiedEnd - modifiedStartPoint + 1)\n            ];\n        }\n        else {\n            // Now walk backward through the reverse diagonals history\n            changeHelper = new DiffChangeHelper();\n            diagonalMin = diagonalReverseStart;\n            diagonalMax = diagonalReverseEnd;\n            diagonalRelative = (midOriginalArr[0] - midModifiedArr[0]) - diagonalReverseOffset;\n            lastOriginalIndex = 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */;\n            historyIndex = (deltaIsEven) ? this.m_reverseHistory.length - 1 : this.m_reverseHistory.length - 2;\n            do {\n                // Get the diagonal index from the relative diagonal number\n                const diagonal = diagonalRelative + diagonalReverseBase;\n                // Figure out where we came from\n                if (diagonal === diagonalMin || (diagonal < diagonalMax && reversePoints[diagonal - 1] >= reversePoints[diagonal + 1])) {\n                    // Horizontal line (the element is a deletion))\n                    originalIndex = reversePoints[diagonal + 1] - 1;\n                    modifiedIndex = originalIndex - diagonalRelative - diagonalReverseOffset;\n                    if (originalIndex > lastOriginalIndex) {\n                        changeHelper.MarkNextChange();\n                    }\n                    lastOriginalIndex = originalIndex + 1;\n                    changeHelper.AddOriginalElement(originalIndex + 1, modifiedIndex + 1);\n                    diagonalRelative = (diagonal + 1) - diagonalReverseBase; //Setup for the next iteration\n                }\n                else {\n                    // Vertical line (the element is an insertion)\n                    originalIndex = reversePoints[diagonal - 1];\n                    modifiedIndex = originalIndex - diagonalRelative - diagonalReverseOffset;\n                    if (originalIndex > lastOriginalIndex) {\n                        changeHelper.MarkNextChange();\n                    }\n                    lastOriginalIndex = originalIndex;\n                    changeHelper.AddModifiedElement(originalIndex + 1, modifiedIndex + 1);\n                    diagonalRelative = (diagonal - 1) - diagonalReverseBase; //Setup for the next iteration\n                }\n                if (historyIndex >= 0) {\n                    reversePoints = this.m_reverseHistory[historyIndex];\n                    diagonalReverseBase = reversePoints[0]; //We stored this in the first spot\n                    diagonalMin = 1;\n                    diagonalMax = reversePoints.length - 1;\n                }\n            } while (--historyIndex >= -1);\n            // There are cases where the reverse history will find diffs that\n            // are correct, but not intuitive, so we need shift them.\n            reverseChanges = changeHelper.getChanges();\n        }\n        return this.ConcatenateChanges(forwardChanges, reverseChanges);\n    }\n    /**\n     * Given the range to compute the diff on, this method finds the point:\n     * (midOriginal, midModified)\n     * that exists in the middle of the LCS of the two sequences and\n     * is the point at which the LCS problem may be broken down recursively.\n     * This method will try to keep the LCS trace in memory. If the LCS recursion\n     * point is calculated and the full trace is available in memory, then this method\n     * will return the change list.\n     * @param originalStart The start bound of the original sequence range\n     * @param originalEnd The end bound of the original sequence range\n     * @param modifiedStart The start bound of the modified sequence range\n     * @param modifiedEnd The end bound of the modified sequence range\n     * @param midOriginal The middle point of the original sequence range\n     * @param midModified The middle point of the modified sequence range\n     * @returns The diff changes, if available, otherwise null\n     */\n    ComputeRecursionPoint(originalStart, originalEnd, modifiedStart, modifiedEnd, midOriginalArr, midModifiedArr, quitEarlyArr) {\n        let originalIndex = 0, modifiedIndex = 0;\n        let diagonalForwardStart = 0, diagonalForwardEnd = 0;\n        let diagonalReverseStart = 0, diagonalReverseEnd = 0;\n        // To traverse the edit graph and produce the proper LCS, our actual\n        // start position is just outside the given boundary\n        originalStart--;\n        modifiedStart--;\n        // We set these up to make the compiler happy, but they will\n        // be replaced before we return with the actual recursion point\n        midOriginalArr[0] = 0;\n        midModifiedArr[0] = 0;\n        // Clear out the history\n        this.m_forwardHistory = [];\n        this.m_reverseHistory = [];\n        // Each cell in the two arrays corresponds to a diagonal in the edit graph.\n        // The integer value in the cell represents the originalIndex of the furthest\n        // reaching point found so far that ends in that diagonal.\n        // The modifiedIndex can be computed mathematically from the originalIndex and the diagonal number.\n        const maxDifferences = (originalEnd - originalStart) + (modifiedEnd - modifiedStart);\n        const numDiagonals = maxDifferences + 1;\n        const forwardPoints = new Int32Array(numDiagonals);\n        const reversePoints = new Int32Array(numDiagonals);\n        // diagonalForwardBase: Index into forwardPoints of the diagonal which passes through (originalStart, modifiedStart)\n        // diagonalReverseBase: Index into reversePoints of the diagonal which passes through (originalEnd, modifiedEnd)\n        const diagonalForwardBase = (modifiedEnd - modifiedStart);\n        const diagonalReverseBase = (originalEnd - originalStart);\n        // diagonalForwardOffset: Geometric offset which allows modifiedIndex to be computed from originalIndex and the\n        //    diagonal number (relative to diagonalForwardBase)\n        // diagonalReverseOffset: Geometric offset which allows modifiedIndex to be computed from originalIndex and the\n        //    diagonal number (relative to diagonalReverseBase)\n        const diagonalForwardOffset = (originalStart - modifiedStart);\n        const diagonalReverseOffset = (originalEnd - modifiedEnd);\n        // delta: The difference between the end diagonal and the start diagonal. This is used to relate diagonal numbers\n        //   relative to the start diagonal with diagonal numbers relative to the end diagonal.\n        // The Even/Oddn-ness of this delta is important for determining when we should check for overlap\n        const delta = diagonalReverseBase - diagonalForwardBase;\n        const deltaIsEven = (delta % 2 === 0);\n        // Here we set up the start and end points as the furthest points found so far\n        // in both the forward and reverse directions, respectively\n        forwardPoints[diagonalForwardBase] = originalStart;\n        reversePoints[diagonalReverseBase] = originalEnd;\n        // Remember if we quit early, and thus need to do a best-effort result instead of a real result.\n        quitEarlyArr[0] = false;\n        // A couple of points:\n        // --With this method, we iterate on the number of differences between the two sequences.\n        //   The more differences there actually are, the longer this will take.\n        // --Also, as the number of differences increases, we have to search on diagonals further\n        //   away from the reference diagonal (which is diagonalForwardBase for forward, diagonalReverseBase for reverse).\n        // --We extend on even diagonals (relative to the reference diagonal) only when numDifferences\n        //   is even and odd diagonals only when numDifferences is odd.\n        for (let numDifferences = 1; numDifferences <= (maxDifferences / 2) + 1; numDifferences++) {\n            let furthestOriginalIndex = 0;\n            let furthestModifiedIndex = 0;\n            // Run the algorithm in the forward direction\n            diagonalForwardStart = this.ClipDiagonalBound(diagonalForwardBase - numDifferences, numDifferences, diagonalForwardBase, numDiagonals);\n            diagonalForwardEnd = this.ClipDiagonalBound(diagonalForwardBase + numDifferences, numDifferences, diagonalForwardBase, numDiagonals);\n            for (let diagonal = diagonalForwardStart; diagonal <= diagonalForwardEnd; diagonal += 2) {\n                // STEP 1: We extend the furthest reaching point in the present diagonal\n                // by looking at the diagonals above and below and picking the one whose point\n                // is further away from the start point (originalStart, modifiedStart)\n                if (diagonal === diagonalForwardStart || (diagonal < diagonalForwardEnd && forwardPoints[diagonal - 1] < forwardPoints[diagonal + 1])) {\n                    originalIndex = forwardPoints[diagonal + 1];\n                }\n                else {\n                    originalIndex = forwardPoints[diagonal - 1] + 1;\n                }\n                modifiedIndex = originalIndex - (diagonal - diagonalForwardBase) - diagonalForwardOffset;\n                // Save the current originalIndex so we can test for false overlap in step 3\n                const tempOriginalIndex = originalIndex;\n                // STEP 2: We can continue to extend the furthest reaching point in the present diagonal\n                // so long as the elements are equal.\n                while (originalIndex < originalEnd && modifiedIndex < modifiedEnd && this.ElementsAreEqual(originalIndex + 1, modifiedIndex + 1)) {\n                    originalIndex++;\n                    modifiedIndex++;\n                }\n                forwardPoints[diagonal] = originalIndex;\n                if (originalIndex + modifiedIndex > furthestOriginalIndex + furthestModifiedIndex) {\n                    furthestOriginalIndex = originalIndex;\n                    furthestModifiedIndex = modifiedIndex;\n                }\n                // STEP 3: If delta is odd (overlap first happens on forward when delta is odd)\n                // and diagonal is in the range of reverse diagonals computed for numDifferences-1\n                // (the previous iteration; we haven't computed reverse diagonals for numDifferences yet)\n                // then check for overlap.\n                if (!deltaIsEven && Math.abs(diagonal - diagonalReverseBase) <= (numDifferences - 1)) {\n                    if (originalIndex >= reversePoints[diagonal]) {\n                        midOriginalArr[0] = originalIndex;\n                        midModifiedArr[0] = modifiedIndex;\n                        if (tempOriginalIndex <= reversePoints[diagonal] && 1447 /* LocalConstants.MaxDifferencesHistory */ > 0 && numDifferences <= (1447 /* LocalConstants.MaxDifferencesHistory */ + 1)) {\n                            // BINGO! We overlapped, and we have the full trace in memory!\n                            return this.WALKTRACE(diagonalForwardBase, diagonalForwardStart, diagonalForwardEnd, diagonalForwardOffset, diagonalReverseBase, diagonalReverseStart, diagonalReverseEnd, diagonalReverseOffset, forwardPoints, reversePoints, originalIndex, originalEnd, midOriginalArr, modifiedIndex, modifiedEnd, midModifiedArr, deltaIsEven, quitEarlyArr);\n                        }\n                        else {\n                            // Either false overlap, or we didn't have enough memory for the full trace\n                            // Just return the recursion point\n                            return null;\n                        }\n                    }\n                }\n            }\n            // Check to see if we should be quitting early, before moving on to the next iteration.\n            const matchLengthOfLongest = ((furthestOriginalIndex - originalStart) + (furthestModifiedIndex - modifiedStart) - numDifferences) / 2;\n            if (this.ContinueProcessingPredicate !== null && !this.ContinueProcessingPredicate(furthestOriginalIndex, matchLengthOfLongest)) {\n                // We can't finish, so skip ahead to generating a result from what we have.\n                quitEarlyArr[0] = true;\n                // Use the furthest distance we got in the forward direction.\n                midOriginalArr[0] = furthestOriginalIndex;\n                midModifiedArr[0] = furthestModifiedIndex;\n                if (matchLengthOfLongest > 0 && 1447 /* LocalConstants.MaxDifferencesHistory */ > 0 && numDifferences <= (1447 /* LocalConstants.MaxDifferencesHistory */ + 1)) {\n                    // Enough of the history is in memory to walk it backwards\n                    return this.WALKTRACE(diagonalForwardBase, diagonalForwardStart, diagonalForwardEnd, diagonalForwardOffset, diagonalReverseBase, diagonalReverseStart, diagonalReverseEnd, diagonalReverseOffset, forwardPoints, reversePoints, originalIndex, originalEnd, midOriginalArr, modifiedIndex, modifiedEnd, midModifiedArr, deltaIsEven, quitEarlyArr);\n                }\n                else {\n                    // We didn't actually remember enough of the history.\n                    //Since we are quitting the diff early, we need to shift back the originalStart and modified start\n                    //back into the boundary limits since we decremented their value above beyond the boundary limit.\n                    originalStart++;\n                    modifiedStart++;\n                    return [\n                        new _diffChange_js__WEBPACK_IMPORTED_MODULE_0__.DiffChange(originalStart, originalEnd - originalStart + 1, modifiedStart, modifiedEnd - modifiedStart + 1)\n                    ];\n                }\n            }\n            // Run the algorithm in the reverse direction\n            diagonalReverseStart = this.ClipDiagonalBound(diagonalReverseBase - numDifferences, numDifferences, diagonalReverseBase, numDiagonals);\n            diagonalReverseEnd = this.ClipDiagonalBound(diagonalReverseBase + numDifferences, numDifferences, diagonalReverseBase, numDiagonals);\n            for (let diagonal = diagonalReverseStart; diagonal <= diagonalReverseEnd; diagonal += 2) {\n                // STEP 1: We extend the furthest reaching point in the present diagonal\n                // by looking at the diagonals above and below and picking the one whose point\n                // is further away from the start point (originalEnd, modifiedEnd)\n                if (diagonal === diagonalReverseStart || (diagonal < diagonalReverseEnd && reversePoints[diagonal - 1] >= reversePoints[diagonal + 1])) {\n                    originalIndex = reversePoints[diagonal + 1] - 1;\n                }\n                else {\n                    originalIndex = reversePoints[diagonal - 1];\n                }\n                modifiedIndex = originalIndex - (diagonal - diagonalReverseBase) - diagonalReverseOffset;\n                // Save the current originalIndex so we can test for false overlap\n                const tempOriginalIndex = originalIndex;\n                // STEP 2: We can continue to extend the furthest reaching point in the present diagonal\n                // as long as the elements are equal.\n                while (originalIndex > originalStart && modifiedIndex > modifiedStart && this.ElementsAreEqual(originalIndex, modifiedIndex)) {\n                    originalIndex--;\n                    modifiedIndex--;\n                }\n                reversePoints[diagonal] = originalIndex;\n                // STEP 4: If delta is even (overlap first happens on reverse when delta is even)\n                // and diagonal is in the range of forward diagonals computed for numDifferences\n                // then check for overlap.\n                if (deltaIsEven && Math.abs(diagonal - diagonalForwardBase) <= numDifferences) {\n                    if (originalIndex <= forwardPoints[diagonal]) {\n                        midOriginalArr[0] = originalIndex;\n                        midModifiedArr[0] = modifiedIndex;\n                        if (tempOriginalIndex >= forwardPoints[diagonal] && 1447 /* LocalConstants.MaxDifferencesHistory */ > 0 && numDifferences <= (1447 /* LocalConstants.MaxDifferencesHistory */ + 1)) {\n                            // BINGO! We overlapped, and we have the full trace in memory!\n                            return this.WALKTRACE(diagonalForwardBase, diagonalForwardStart, diagonalForwardEnd, diagonalForwardOffset, diagonalReverseBase, diagonalReverseStart, diagonalReverseEnd, diagonalReverseOffset, forwardPoints, reversePoints, originalIndex, originalEnd, midOriginalArr, modifiedIndex, modifiedEnd, midModifiedArr, deltaIsEven, quitEarlyArr);\n                        }\n                        else {\n                            // Either false overlap, or we didn't have enough memory for the full trace\n                            // Just return the recursion point\n                            return null;\n                        }\n                    }\n                }\n            }\n            // Save current vectors to history before the next iteration\n            if (numDifferences <= 1447 /* LocalConstants.MaxDifferencesHistory */) {\n                // We are allocating space for one extra int, which we fill with\n                // the index of the diagonal base index\n                let temp = new Int32Array(diagonalForwardEnd - diagonalForwardStart + 2);\n                temp[0] = diagonalForwardBase - diagonalForwardStart + 1;\n                MyArray.Copy2(forwardPoints, diagonalForwardStart, temp, 1, diagonalForwardEnd - diagonalForwardStart + 1);\n                this.m_forwardHistory.push(temp);\n                temp = new Int32Array(diagonalReverseEnd - diagonalReverseStart + 2);\n                temp[0] = diagonalReverseBase - diagonalReverseStart + 1;\n                MyArray.Copy2(reversePoints, diagonalReverseStart, temp, 1, diagonalReverseEnd - diagonalReverseStart + 1);\n                this.m_reverseHistory.push(temp);\n            }\n        }\n        // If we got here, then we have the full trace in history. We just have to convert it to a change list\n        // NOTE: This part is a bit messy\n        return this.WALKTRACE(diagonalForwardBase, diagonalForwardStart, diagonalForwardEnd, diagonalForwardOffset, diagonalReverseBase, diagonalReverseStart, diagonalReverseEnd, diagonalReverseOffset, forwardPoints, reversePoints, originalIndex, originalEnd, midOriginalArr, modifiedIndex, modifiedEnd, midModifiedArr, deltaIsEven, quitEarlyArr);\n    }\n    /**\n     * Shifts the given changes to provide a more intuitive diff.\n     * While the first element in a diff matches the first element after the diff,\n     * we shift the diff down.\n     *\n     * @param changes The list of changes to shift\n     * @returns The shifted changes\n     */\n    PrettifyChanges(changes) {\n        // Shift all the changes down first\n        for (let i = 0; i < changes.length; i++) {\n            const change = changes[i];\n            const originalStop = (i < changes.length - 1) ? changes[i + 1].originalStart : this._originalElementsOrHash.length;\n            const modifiedStop = (i < changes.length - 1) ? changes[i + 1].modifiedStart : this._modifiedElementsOrHash.length;\n            const checkOriginal = change.originalLength > 0;\n            const checkModified = change.modifiedLength > 0;\n            while (change.originalStart + change.originalLength < originalStop\n                && change.modifiedStart + change.modifiedLength < modifiedStop\n                && (!checkOriginal || this.OriginalElementsAreEqual(change.originalStart, change.originalStart + change.originalLength))\n                && (!checkModified || this.ModifiedElementsAreEqual(change.modifiedStart, change.modifiedStart + change.modifiedLength))) {\n                const startStrictEqual = this.ElementsAreStrictEqual(change.originalStart, change.modifiedStart);\n                const endStrictEqual = this.ElementsAreStrictEqual(change.originalStart + change.originalLength, change.modifiedStart + change.modifiedLength);\n                if (endStrictEqual && !startStrictEqual) {\n                    // moving the change down would create an equal change, but the elements are not strict equal\n                    break;\n                }\n                change.originalStart++;\n                change.modifiedStart++;\n            }\n            const mergedChangeArr = [null];\n            if (i < changes.length - 1 && this.ChangesOverlap(changes[i], changes[i + 1], mergedChangeArr)) {\n                changes[i] = mergedChangeArr[0];\n                changes.splice(i + 1, 1);\n                i--;\n                continue;\n            }\n        }\n        // Shift changes back up until we hit empty or whitespace-only lines\n        for (let i = changes.length - 1; i >= 0; i--) {\n            const change = changes[i];\n            let originalStop = 0;\n            let modifiedStop = 0;\n            if (i > 0) {\n                const prevChange = changes[i - 1];\n                originalStop = prevChange.originalStart + prevChange.originalLength;\n                modifiedStop = prevChange.modifiedStart + prevChange.modifiedLength;\n            }\n            const checkOriginal = change.originalLength > 0;\n            const checkModified = change.modifiedLength > 0;\n            let bestDelta = 0;\n            let bestScore = this._boundaryScore(change.originalStart, change.originalLength, change.modifiedStart, change.modifiedLength);\n            for (let delta = 1;; delta++) {\n                const originalStart = change.originalStart - delta;\n                const modifiedStart = change.modifiedStart - delta;\n                if (originalStart < originalStop || modifiedStart < modifiedStop) {\n                    break;\n                }\n                if (checkOriginal && !this.OriginalElementsAreEqual(originalStart, originalStart + change.originalLength)) {\n                    break;\n                }\n                if (checkModified && !this.ModifiedElementsAreEqual(modifiedStart, modifiedStart + change.modifiedLength)) {\n                    break;\n                }\n                const touchingPreviousChange = (originalStart === originalStop && modifiedStart === modifiedStop);\n                const score = ((touchingPreviousChange ? 5 : 0)\n                    + this._boundaryScore(originalStart, change.originalLength, modifiedStart, change.modifiedLength));\n                if (score > bestScore) {\n                    bestScore = score;\n                    bestDelta = delta;\n                }\n            }\n            change.originalStart -= bestDelta;\n            change.modifiedStart -= bestDelta;\n            const mergedChangeArr = [null];\n            if (i > 0 && this.ChangesOverlap(changes[i - 1], changes[i], mergedChangeArr)) {\n                changes[i - 1] = mergedChangeArr[0];\n                changes.splice(i, 1);\n                i++;\n                continue;\n            }\n        }\n        // There could be multiple longest common substrings.\n        // Give preference to the ones containing longer lines\n        if (this._hasStrings) {\n            for (let i = 1, len = changes.length; i < len; i++) {\n                const aChange = changes[i - 1];\n                const bChange = changes[i];\n                const matchedLength = bChange.originalStart - aChange.originalStart - aChange.originalLength;\n                const aOriginalStart = aChange.originalStart;\n                const bOriginalEnd = bChange.originalStart + bChange.originalLength;\n                const abOriginalLength = bOriginalEnd - aOriginalStart;\n                const aModifiedStart = aChange.modifiedStart;\n                const bModifiedEnd = bChange.modifiedStart + bChange.modifiedLength;\n                const abModifiedLength = bModifiedEnd - aModifiedStart;\n                // Avoid wasting a lot of time with these searches\n                if (matchedLength < 5 && abOriginalLength < 20 && abModifiedLength < 20) {\n                    const t = this._findBetterContiguousSequence(aOriginalStart, abOriginalLength, aModifiedStart, abModifiedLength, matchedLength);\n                    if (t) {\n                        const [originalMatchStart, modifiedMatchStart] = t;\n                        if (originalMatchStart !== aChange.originalStart + aChange.originalLength || modifiedMatchStart !== aChange.modifiedStart + aChange.modifiedLength) {\n                            // switch to another sequence that has a better score\n                            aChange.originalLength = originalMatchStart - aChange.originalStart;\n                            aChange.modifiedLength = modifiedMatchStart - aChange.modifiedStart;\n                            bChange.originalStart = originalMatchStart + matchedLength;\n                            bChange.modifiedStart = modifiedMatchStart + matchedLength;\n                            bChange.originalLength = bOriginalEnd - bChange.originalStart;\n                            bChange.modifiedLength = bModifiedEnd - bChange.modifiedStart;\n                        }\n                    }\n                }\n            }\n        }\n        return changes;\n    }\n    _findBetterContiguousSequence(originalStart, originalLength, modifiedStart, modifiedLength, desiredLength) {\n        if (originalLength < desiredLength || modifiedLength < desiredLength) {\n            return null;\n        }\n        const originalMax = originalStart + originalLength - desiredLength + 1;\n        const modifiedMax = modifiedStart + modifiedLength - desiredLength + 1;\n        let bestScore = 0;\n        let bestOriginalStart = 0;\n        let bestModifiedStart = 0;\n        for (let i = originalStart; i < originalMax; i++) {\n            for (let j = modifiedStart; j < modifiedMax; j++) {\n                const score = this._contiguousSequenceScore(i, j, desiredLength);\n                if (score > 0 && score > bestScore) {\n                    bestScore = score;\n                    bestOriginalStart = i;\n                    bestModifiedStart = j;\n                }\n            }\n        }\n        if (bestScore > 0) {\n            return [bestOriginalStart, bestModifiedStart];\n        }\n        return null;\n    }\n    _contiguousSequenceScore(originalStart, modifiedStart, length) {\n        let score = 0;\n        for (let l = 0; l < length; l++) {\n            if (!this.ElementsAreEqual(originalStart + l, modifiedStart + l)) {\n                return 0;\n            }\n            score += this._originalStringElements[originalStart + l].length;\n        }\n        return score;\n    }\n    _OriginalIsBoundary(index) {\n        if (index <= 0 || index >= this._originalElementsOrHash.length - 1) {\n            return true;\n        }\n        return (this._hasStrings && /^\\s*$/.test(this._originalStringElements[index]));\n    }\n    _OriginalRegionIsBoundary(originalStart, originalLength) {\n        if (this._OriginalIsBoundary(originalStart) || this._OriginalIsBoundary(originalStart - 1)) {\n            return true;\n        }\n        if (originalLength > 0) {\n            const originalEnd = originalStart + originalLength;\n            if (this._OriginalIsBoundary(originalEnd - 1) || this._OriginalIsBoundary(originalEnd)) {\n                return true;\n            }\n        }\n        return false;\n    }\n    _ModifiedIsBoundary(index) {\n        if (index <= 0 || index >= this._modifiedElementsOrHash.length - 1) {\n            return true;\n        }\n        return (this._hasStrings && /^\\s*$/.test(this._modifiedStringElements[index]));\n    }\n    _ModifiedRegionIsBoundary(modifiedStart, modifiedLength) {\n        if (this._ModifiedIsBoundary(modifiedStart) || this._ModifiedIsBoundary(modifiedStart - 1)) {\n            return true;\n        }\n        if (modifiedLength > 0) {\n            const modifiedEnd = modifiedStart + modifiedLength;\n            if (this._ModifiedIsBoundary(modifiedEnd - 1) || this._ModifiedIsBoundary(modifiedEnd)) {\n                return true;\n            }\n        }\n        return false;\n    }\n    _boundaryScore(originalStart, originalLength, modifiedStart, modifiedLength) {\n        const originalScore = (this._OriginalRegionIsBoundary(originalStart, originalLength) ? 1 : 0);\n        const modifiedScore = (this._ModifiedRegionIsBoundary(modifiedStart, modifiedLength) ? 1 : 0);\n        return (originalScore + modifiedScore);\n    }\n    /**\n     * Concatenates the two input DiffChange lists and returns the resulting\n     * list.\n     * @param The left changes\n     * @param The right changes\n     * @returns The concatenated list\n     */\n    ConcatenateChanges(left, right) {\n        const mergedChangeArr = [];\n        if (left.length === 0 || right.length === 0) {\n            return (right.length > 0) ? right : left;\n        }\n        else if (this.ChangesOverlap(left[left.length - 1], right[0], mergedChangeArr)) {\n            // Since we break the problem down recursively, it is possible that we\n            // might recurse in the middle of a change thereby splitting it into\n            // two changes. Here in the combining stage, we detect and fuse those\n            // changes back together\n            const result = new Array(left.length + right.length - 1);\n            MyArray.Copy(left, 0, result, 0, left.length - 1);\n            result[left.length - 1] = mergedChangeArr[0];\n            MyArray.Copy(right, 1, result, left.length, right.length - 1);\n            return result;\n        }\n        else {\n            const result = new Array(left.length + right.length);\n            MyArray.Copy(left, 0, result, 0, left.length);\n            MyArray.Copy(right, 0, result, left.length, right.length);\n            return result;\n        }\n    }\n    /**\n     * Returns true if the two changes overlap and can be merged into a single\n     * change\n     * @param left The left change\n     * @param right The right change\n     * @param mergedChange The merged change if the two overlap, null otherwise\n     * @returns True if the two changes overlap\n     */\n    ChangesOverlap(left, right, mergedChangeArr) {\n        Debug.Assert(left.originalStart <= right.originalStart, 'Left change is not less than or equal to right change');\n        Debug.Assert(left.modifiedStart <= right.modifiedStart, 'Left change is not less than or equal to right change');\n        if (left.originalStart + left.originalLength >= right.originalStart || left.modifiedStart + left.modifiedLength >= right.modifiedStart) {\n            const originalStart = left.originalStart;\n            let originalLength = left.originalLength;\n            const modifiedStart = left.modifiedStart;\n            let modifiedLength = left.modifiedLength;\n            if (left.originalStart + left.originalLength >= right.originalStart) {\n                originalLength = right.originalStart + right.originalLength - left.originalStart;\n            }\n            if (left.modifiedStart + left.modifiedLength >= right.modifiedStart) {\n                modifiedLength = right.modifiedStart + right.modifiedLength - left.modifiedStart;\n            }\n            mergedChangeArr[0] = new _diffChange_js__WEBPACK_IMPORTED_MODULE_0__.DiffChange(originalStart, originalLength, modifiedStart, modifiedLength);\n            return true;\n        }\n        else {\n            mergedChangeArr[0] = null;\n            return false;\n        }\n    }\n    /**\n     * Helper method used to clip a diagonal index to the range of valid\n     * diagonals. This also decides whether or not the diagonal index,\n     * if it exceeds the boundary, should be clipped to the boundary or clipped\n     * one inside the boundary depending on the Even/Odd status of the boundary\n     * and numDifferences.\n     * @param diagonal The index of the diagonal to clip.\n     * @param numDifferences The current number of differences being iterated upon.\n     * @param diagonalBaseIndex The base reference diagonal.\n     * @param numDiagonals The total number of diagonals.\n     * @returns The clipped diagonal index.\n     */\n    ClipDiagonalBound(diagonal, numDifferences, diagonalBaseIndex, numDiagonals) {\n        if (diagonal >= 0 && diagonal < numDiagonals) {\n            // Nothing to clip, its in range\n            return diagonal;\n        }\n        // diagonalsBelow: The number of diagonals below the reference diagonal\n        // diagonalsAbove: The number of diagonals above the reference diagonal\n        const diagonalsBelow = diagonalBaseIndex;\n        const diagonalsAbove = numDiagonals - diagonalBaseIndex - 1;\n        const diffEven = (numDifferences % 2 === 0);\n        if (diagonal < 0) {\n            const lowerBoundEven = (diagonalsBelow % 2 === 0);\n            return (diffEven === lowerBoundEven) ? 0 : 1;\n        }\n        else {\n            const upperBoundEven = (diagonalsAbove % 2 === 0);\n            return (diffEven === upperBoundEven) ? numDiagonals - 1 : numDiagonals - 2;\n        }\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/diff/diff.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/diff/diffChange.js":
/*!**************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/diff/diffChange.js ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DiffChange: () => (/* binding */ DiffChange)\n/* harmony export */ });\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n/**\n * Represents information about a specific difference between two sequences.\n */\nclass DiffChange {\n    /**\n     * Constructs a new DiffChange with the given sequence information\n     * and content.\n     */\n    constructor(originalStart, originalLength, modifiedStart, modifiedLength) {\n        //Debug.Assert(originalLength > 0 || modifiedLength > 0, \"originalLength and modifiedLength cannot both be <= 0\");\n        this.originalStart = originalStart;\n        this.originalLength = originalLength;\n        this.modifiedStart = modifiedStart;\n        this.modifiedLength = modifiedLength;\n    }\n    /**\n     * The end point (exclusive) of the change in the original sequence.\n     */\n    getOriginalEnd() {\n        return this.originalStart + this.originalLength;\n    }\n    /**\n     * The end point (exclusive) of the change in the modified sequence.\n     */\n    getModifiedEnd() {\n        return this.modifiedStart + this.modifiedLength;\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/diff/diffChange.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/errors.js":
/*!*****************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/errors.js ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BugIndicatingError: () => (/* binding */ BugIndicatingError),\n/* harmony export */   CancellationError: () => (/* binding */ CancellationError),\n/* harmony export */   ErrorHandler: () => (/* binding */ ErrorHandler),\n/* harmony export */   ErrorNoTelemetry: () => (/* binding */ ErrorNoTelemetry),\n/* harmony export */   NotSupportedError: () => (/* binding */ NotSupportedError),\n/* harmony export */   canceled: () => (/* binding */ canceled),\n/* harmony export */   errorHandler: () => (/* binding */ errorHandler),\n/* harmony export */   illegalArgument: () => (/* binding */ illegalArgument),\n/* harmony export */   illegalState: () => (/* binding */ illegalState),\n/* harmony export */   isCancellationError: () => (/* binding */ isCancellationError),\n/* harmony export */   onUnexpectedError: () => (/* binding */ onUnexpectedError),\n/* harmony export */   onUnexpectedExternalError: () => (/* binding */ onUnexpectedExternalError),\n/* harmony export */   transformErrorForSerialization: () => (/* binding */ transformErrorForSerialization)\n/* harmony export */ });\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n// Avoid circular dependency on EventEmitter by implementing a subset of the interface.\nclass ErrorHandler {\n    constructor() {\n        this.listeners = [];\n        this.unexpectedErrorHandler = function (e) {\n            setTimeout(() => {\n                if (e.stack) {\n                    if (ErrorNoTelemetry.isErrorNoTelemetry(e)) {\n                        throw new ErrorNoTelemetry(e.message + '\\n\\n' + e.stack);\n                    }\n                    throw new Error(e.message + '\\n\\n' + e.stack);\n                }\n                throw e;\n            }, 0);\n        };\n    }\n    emit(e) {\n        this.listeners.forEach((listener) => {\n            listener(e);\n        });\n    }\n    onUnexpectedError(e) {\n        this.unexpectedErrorHandler(e);\n        this.emit(e);\n    }\n    // For external errors, we don't want the listeners to be called\n    onUnexpectedExternalError(e) {\n        this.unexpectedErrorHandler(e);\n    }\n}\nconst errorHandler = new ErrorHandler();\nfunction onUnexpectedError(e) {\n    // ignore errors from cancelled promises\n    if (!isCancellationError(e)) {\n        errorHandler.onUnexpectedError(e);\n    }\n    return undefined;\n}\nfunction onUnexpectedExternalError(e) {\n    // ignore errors from cancelled promises\n    if (!isCancellationError(e)) {\n        errorHandler.onUnexpectedExternalError(e);\n    }\n    return undefined;\n}\nfunction transformErrorForSerialization(error) {\n    if (error instanceof Error) {\n        const { name, message } = error;\n        const stack = error.stacktrace || error.stack;\n        return {\n            $isError: true,\n            name,\n            message,\n            stack,\n            noTelemetry: ErrorNoTelemetry.isErrorNoTelemetry(error)\n        };\n    }\n    // return as is\n    return error;\n}\nconst canceledName = 'Canceled';\n/**\n * Checks if the given error is a promise in canceled state\n */\nfunction isCancellationError(error) {\n    if (error instanceof CancellationError) {\n        return true;\n    }\n    return error instanceof Error && error.name === canceledName && error.message === canceledName;\n}\n// !!!IMPORTANT!!!\n// Do NOT change this class because it is also used as an API-type.\nclass CancellationError extends Error {\n    constructor() {\n        super(canceledName);\n        this.name = this.message;\n    }\n}\n/**\n * @deprecated use {@link CancellationError `new CancellationError()`} instead\n */\nfunction canceled() {\n    const error = new Error(canceledName);\n    error.name = error.message;\n    return error;\n}\nfunction illegalArgument(name) {\n    if (name) {\n        return new Error(`Illegal argument: ${name}`);\n    }\n    else {\n        return new Error('Illegal argument');\n    }\n}\nfunction illegalState(name) {\n    if (name) {\n        return new Error(`Illegal state: ${name}`);\n    }\n    else {\n        return new Error('Illegal state');\n    }\n}\nclass NotSupportedError extends Error {\n    constructor(message) {\n        super('NotSupported');\n        if (message) {\n            this.message = message;\n        }\n    }\n}\n/**\n * Error that when thrown won't be logged in telemetry as an unhandled error.\n */\nclass ErrorNoTelemetry extends Error {\n    constructor(msg) {\n        super(msg);\n        this.name = 'CodeExpectedError';\n    }\n    static fromError(err) {\n        if (err instanceof ErrorNoTelemetry) {\n            return err;\n        }\n        const result = new ErrorNoTelemetry();\n        result.message = err.message;\n        result.stack = err.stack;\n        return result;\n    }\n    static isErrorNoTelemetry(err) {\n        return err.name === 'CodeExpectedError';\n    }\n}\n/**\n * This error indicates a bug.\n * Do not throw this for invalid user input.\n * Only catch this error to recover gracefully from bugs.\n */\nclass BugIndicatingError extends Error {\n    constructor(message) {\n        super(message || 'An unexpected bug occurred.');\n        Object.setPrototypeOf(this, BugIndicatingError.prototype);\n        // Because we know for sure only buggy code throws this,\n        // we definitely want to break here and fix the bug.\n        // eslint-disable-next-line no-debugger\n        // debugger;\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/errors.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/event.js":
/*!****************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/event.js ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DebounceEmitter: () => (/* binding */ DebounceEmitter),\n/* harmony export */   Emitter: () => (/* binding */ Emitter),\n/* harmony export */   Event: () => (/* binding */ Event),\n/* harmony export */   EventBufferer: () => (/* binding */ EventBufferer),\n/* harmony export */   EventMultiplexer: () => (/* binding */ EventMultiplexer),\n/* harmony export */   EventProfiling: () => (/* binding */ EventProfiling),\n/* harmony export */   MicrotaskEmitter: () => (/* binding */ MicrotaskEmitter),\n/* harmony export */   PauseableEmitter: () => (/* binding */ PauseableEmitter),\n/* harmony export */   Relay: () => (/* binding */ Relay),\n/* harmony export */   createEventDeliveryQueue: () => (/* binding */ createEventDeliveryQueue)\n/* harmony export */ });\n/* harmony import */ var _errors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./errors.js */ \"./node_modules/monaco-editor/esm/vs/base/common/errors.js\");\n/* harmony import */ var _functional_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./functional.js */ \"./node_modules/monaco-editor/esm/vs/base/common/functional.js\");\n/* harmony import */ var _lifecycle_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lifecycle.js */ \"./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js\");\n/* harmony import */ var _linkedList_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./linkedList.js */ \"./node_modules/monaco-editor/esm/vs/base/common/linkedList.js\");\n/* harmony import */ var _stopwatch_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./stopwatch.js */ \"./node_modules/monaco-editor/esm/vs/base/common/stopwatch.js\");\n\n\n\n\n\n// -----------------------------------------------------------------------------------------------------------------------\n// Uncomment the next line to print warnings whenever an emitter with listeners is disposed. That is a sign of code smell.\n// -----------------------------------------------------------------------------------------------------------------------\nconst _enableDisposeWithListenerWarning = false;\n// _enableDisposeWithListenerWarning = Boolean(\"TRUE\"); // causes a linter warning so that it cannot be pushed\n// -----------------------------------------------------------------------------------------------------------------------\n// Uncomment the next line to print warnings whenever a snapshotted event is used repeatedly without cleanup.\n// See https://github.com/microsoft/vscode/issues/142851\n// -----------------------------------------------------------------------------------------------------------------------\nconst _enableSnapshotPotentialLeakWarning = false;\nvar Event;\n(function (Event) {\n    Event.None = () => _lifecycle_js__WEBPACK_IMPORTED_MODULE_2__.Disposable.None;\n    function _addLeakageTraceLogic(options) {\n        if (_enableSnapshotPotentialLeakWarning) {\n            const { onDidAddListener: origListenerDidAdd } = options;\n            const stack = Stacktrace.create();\n            let count = 0;\n            options.onDidAddListener = () => {\n                if (++count === 2) {\n                    console.warn('snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here');\n                    stack.print();\n                }\n                origListenerDidAdd === null || origListenerDidAdd === void 0 ? void 0 : origListenerDidAdd();\n            };\n        }\n    }\n    /**\n     * Given an event, returns another event which debounces calls and defers the listeners to a later task via a shared\n     * `setTimeout`. The event is converted into a signal (`Event<void>`) to avoid additional object creation as a\n     * result of merging events and to try prevent race conditions that could arise when using related deferred and\n     * non-deferred events.\n     *\n     * This is useful for deferring non-critical work (eg. general UI updates) to ensure it does not block critical work\n     * (eg. latency of keypress to text rendered).\n     *\n     * *NOTE* that this function returns an `Event` and it MUST be called with a `DisposableStore` whenever the returned\n     * event is accessible to \"third parties\", e.g the event is a public property. Otherwise a leaked listener on the\n     * returned event causes this utility to leak a listener on the original event.\n     *\n     * @param event The event source for the new event.\n     * @param disposable A disposable store to add the new EventEmitter to.\n     */\n    function defer(event, disposable) {\n        return debounce(event, () => void 0, 0, undefined, true, undefined, disposable);\n    }\n    Event.defer = defer;\n    /**\n     * Given an event, returns another event which only fires once.\n     *\n     * @param event The event source for the new event.\n     */\n    function once(event) {\n        return (listener, thisArgs = null, disposables) => {\n            // we need this, in case the event fires during the listener call\n            let didFire = false;\n            let result = undefined;\n            result = event(e => {\n                if (didFire) {\n                    return;\n                }\n                else if (result) {\n                    result.dispose();\n                }\n                else {\n                    didFire = true;\n                }\n                return listener.call(thisArgs, e);\n            }, null, disposables);\n            if (didFire) {\n                result.dispose();\n            }\n            return result;\n        };\n    }\n    Event.once = once;\n    /**\n     * Maps an event of one type into an event of another type using a mapping function, similar to how\n     * `Array.prototype.map` works.\n     *\n     * *NOTE* that this function returns an `Event` and it MUST be called with a `DisposableStore` whenever the returned\n     * event is accessible to \"third parties\", e.g the event is a public property. Otherwise a leaked listener on the\n     * returned event causes this utility to leak a listener on the original event.\n     *\n     * @param event The event source for the new event.\n     * @param map The mapping function.\n     * @param disposable A disposable store to add the new EventEmitter to.\n     */\n    function map(event, map, disposable) {\n        return snapshot((listener, thisArgs = null, disposables) => event(i => listener.call(thisArgs, map(i)), null, disposables), disposable);\n    }\n    Event.map = map;\n    /**\n     * Wraps an event in another event that performs some function on the event object before firing.\n     *\n     * *NOTE* that this function returns an `Event` and it MUST be called with a `DisposableStore` whenever the returned\n     * event is accessible to \"third parties\", e.g the event is a public property. Otherwise a leaked listener on the\n     * returned event causes this utility to leak a listener on the original event.\n     *\n     * @param event The event source for the new event.\n     * @param each The function to perform on the event object.\n     * @param disposable A disposable store to add the new EventEmitter to.\n     */\n    function forEach(event, each, disposable) {\n        return snapshot((listener, thisArgs = null, disposables) => event(i => { each(i); listener.call(thisArgs, i); }, null, disposables), disposable);\n    }\n    Event.forEach = forEach;\n    function filter(event, filter, disposable) {\n        return snapshot((listener, thisArgs = null, disposables) => event(e => filter(e) && listener.call(thisArgs, e), null, disposables), disposable);\n    }\n    Event.filter = filter;\n    /**\n     * Given an event, returns the same event but typed as `Event<void>`.\n     */\n    function signal(event) {\n        return event;\n    }\n    Event.signal = signal;\n    function any(...events) {\n        return (listener, thisArgs = null, disposables) => {\n            const disposable = (0,_lifecycle_js__WEBPACK_IMPORTED_MODULE_2__.combinedDisposable)(...events.map(event => event(e => listener.call(thisArgs, e))));\n            return addAndReturnDisposable(disposable, disposables);\n        };\n    }\n    Event.any = any;\n    /**\n     * *NOTE* that this function returns an `Event` and it MUST be called with a `DisposableStore` whenever the returned\n     * event is accessible to \"third parties\", e.g the event is a public property. Otherwise a leaked listener on the\n     * returned event causes this utility to leak a listener on the original event.\n     */\n    function reduce(event, merge, initial, disposable) {\n        let output = initial;\n        return map(event, e => {\n            output = merge(output, e);\n            return output;\n        }, disposable);\n    }\n    Event.reduce = reduce;\n    function snapshot(event, disposable) {\n        let listener;\n        const options = {\n            onWillAddFirstListener() {\n                listener = event(emitter.fire, emitter);\n            },\n            onDidRemoveLastListener() {\n                listener === null || listener === void 0 ? void 0 : listener.dispose();\n            }\n        };\n        if (!disposable) {\n            _addLeakageTraceLogic(options);\n        }\n        const emitter = new Emitter(options);\n        disposable === null || disposable === void 0 ? void 0 : disposable.add(emitter);\n        return emitter.event;\n    }\n    /**\n     * Adds the IDisposable to the store if it's set, and returns it. Useful to\n     * Event function implementation.\n     */\n    function addAndReturnDisposable(d, store) {\n        if (store instanceof Array) {\n            store.push(d);\n        }\n        else if (store) {\n            store.add(d);\n        }\n        return d;\n    }\n    function debounce(event, merge, delay = 100, leading = false, flushOnListenerRemove = false, leakWarningThreshold, disposable) {\n        let subscription;\n        let output = undefined;\n        let handle = undefined;\n        let numDebouncedCalls = 0;\n        let doFire;\n        const options = {\n            leakWarningThreshold,\n            onWillAddFirstListener() {\n                subscription = event(cur => {\n                    numDebouncedCalls++;\n                    output = merge(output, cur);\n                    if (leading && !handle) {\n                        emitter.fire(output);\n                        output = undefined;\n                    }\n                    doFire = () => {\n                        const _output = output;\n                        output = undefined;\n                        handle = undefined;\n                        if (!leading || numDebouncedCalls > 1) {\n                            emitter.fire(_output);\n                        }\n                        numDebouncedCalls = 0;\n                    };\n                    if (typeof delay === 'number') {\n                        clearTimeout(handle);\n                        handle = setTimeout(doFire, delay);\n                    }\n                    else {\n                        if (handle === undefined) {\n                            handle = 0;\n                            queueMicrotask(doFire);\n                        }\n                    }\n                });\n            },\n            onWillRemoveListener() {\n                if (flushOnListenerRemove && numDebouncedCalls > 0) {\n                    doFire === null || doFire === void 0 ? void 0 : doFire();\n                }\n            },\n            onDidRemoveLastListener() {\n                doFire = undefined;\n                subscription.dispose();\n            }\n        };\n        if (!disposable) {\n            _addLeakageTraceLogic(options);\n        }\n        const emitter = new Emitter(options);\n        disposable === null || disposable === void 0 ? void 0 : disposable.add(emitter);\n        return emitter.event;\n    }\n    Event.debounce = debounce;\n    /**\n     * Debounces an event, firing after some delay (default=0) with an array of all event original objects.\n     *\n     * *NOTE* that this function returns an `Event` and it MUST be called with a `DisposableStore` whenever the returned\n     * event is accessible to \"third parties\", e.g the event is a public property. Otherwise a leaked listener on the\n     * returned event causes this utility to leak a listener on the original event.\n     */\n    function accumulate(event, delay = 0, disposable) {\n        return Event.debounce(event, (last, e) => {\n            if (!last) {\n                return [e];\n            }\n            last.push(e);\n            return last;\n        }, delay, undefined, true, undefined, disposable);\n    }\n    Event.accumulate = accumulate;\n    /**\n     * Filters an event such that some condition is _not_ met more than once in a row, effectively ensuring duplicate\n     * event objects from different sources do not fire the same event object.\n     *\n     * *NOTE* that this function returns an `Event` and it MUST be called with a `DisposableStore` whenever the returned\n     * event is accessible to \"third parties\", e.g the event is a public property. Otherwise a leaked listener on the\n     * returned event causes this utility to leak a listener on the original event.\n     *\n     * @param event The event source for the new event.\n     * @param equals The equality condition.\n     * @param disposable A disposable store to add the new EventEmitter to.\n     *\n     * @example\n     * ```\n     * // Fire only one time when a single window is opened or focused\n     * Event.latch(Event.any(onDidOpenWindow, onDidFocusWindow))\n     * ```\n     */\n    function latch(event, equals = (a, b) => a === b, disposable) {\n        let firstCall = true;\n        let cache;\n        return filter(event, value => {\n            const shouldEmit = firstCall || !equals(value, cache);\n            firstCall = false;\n            cache = value;\n            return shouldEmit;\n        }, disposable);\n    }\n    Event.latch = latch;\n    /**\n     * Splits an event whose parameter is a union type into 2 separate events for each type in the union.\n     *\n     * *NOTE* that this function returns an `Event` and it MUST be called with a `DisposableStore` whenever the returned\n     * event is accessible to \"third parties\", e.g the event is a public property. Otherwise a leaked listener on the\n     * returned event causes this utility to leak a listener on the original event.\n     *\n     * @example\n     * ```\n     * const event = new EventEmitter<number | undefined>().event;\n     * const [numberEvent, undefinedEvent] = Event.split(event, isUndefined);\n     * ```\n     *\n     * @param event The event source for the new event.\n     * @param isT A function that determines what event is of the first type.\n     * @param disposable A disposable store to add the new EventEmitter to.\n     */\n    function split(event, isT, disposable) {\n        return [\n            Event.filter(event, isT, disposable),\n            Event.filter(event, e => !isT(e), disposable),\n        ];\n    }\n    Event.split = split;\n    /**\n     * Buffers an event until it has a listener attached.\n     *\n     * *NOTE* that this function returns an `Event` and it MUST be called with a `DisposableStore` whenever the returned\n     * event is accessible to \"third parties\", e.g the event is a public property. Otherwise a leaked listener on the\n     * returned event causes this utility to leak a listener on the original event.\n     *\n     * @param event The event source for the new event.\n     * @param flushAfterTimeout Determines whether to flush the buffer after a timeout immediately or after a\n     * `setTimeout` when the first event listener is added.\n     * @param _buffer Internal: A source event array used for tests.\n     *\n     * @example\n     * ```\n     * // Start accumulating events, when the first listener is attached, flush\n     * // the event after a timeout such that multiple listeners attached before\n     * // the timeout would receive the event\n     * this.onInstallExtension = Event.buffer(service.onInstallExtension, true);\n     * ```\n     */\n    function buffer(event, flushAfterTimeout = false, _buffer = [], disposable) {\n        let buffer = _buffer.slice();\n        let listener = event(e => {\n            if (buffer) {\n                buffer.push(e);\n            }\n            else {\n                emitter.fire(e);\n            }\n        });\n        if (disposable) {\n            disposable.add(listener);\n        }\n        const flush = () => {\n            buffer === null || buffer === void 0 ? void 0 : buffer.forEach(e => emitter.fire(e));\n            buffer = null;\n        };\n        const emitter = new Emitter({\n            onWillAddFirstListener() {\n                if (!listener) {\n                    listener = event(e => emitter.fire(e));\n                    if (disposable) {\n                        disposable.add(listener);\n                    }\n                }\n            },\n            onDidAddFirstListener() {\n                if (buffer) {\n                    if (flushAfterTimeout) {\n                        setTimeout(flush);\n                    }\n                    else {\n                        flush();\n                    }\n                }\n            },\n            onDidRemoveLastListener() {\n                if (listener) {\n                    listener.dispose();\n                }\n                listener = null;\n            }\n        });\n        if (disposable) {\n            disposable.add(emitter);\n        }\n        return emitter.event;\n    }\n    Event.buffer = buffer;\n    /**\n     * Wraps the event in an {@link IChainableEvent}, allowing a more functional programming style.\n     *\n     * @example\n     * ```\n     * // Normal\n     * const onEnterPressNormal = Event.filter(\n     *   Event.map(onKeyPress.event, e => new StandardKeyboardEvent(e)),\n     *   e.keyCode === KeyCode.Enter\n     * ).event;\n     *\n     * // Using chain\n     * const onEnterPressChain = Event.chain(onKeyPress.event, $ => $\n     *   .map(e => new StandardKeyboardEvent(e))\n     *   .filter(e => e.keyCode === KeyCode.Enter)\n     * );\n     * ```\n     */\n    function chain(event, sythensize) {\n        const fn = (listener, thisArgs, disposables) => {\n            const cs = sythensize(new ChainableSynthesis());\n            return event(function (value) {\n                const result = cs.evaluate(value);\n                if (result !== HaltChainable) {\n                    listener.call(thisArgs, result);\n                }\n            }, undefined, disposables);\n        };\n        return fn;\n    }\n    Event.chain = chain;\n    const HaltChainable = Symbol('HaltChainable');\n    class ChainableSynthesis {\n        constructor() {\n            this.steps = [];\n        }\n        map(fn) {\n            this.steps.push(fn);\n            return this;\n        }\n        forEach(fn) {\n            this.steps.push(v => {\n                fn(v);\n                return v;\n            });\n            return this;\n        }\n        filter(fn) {\n            this.steps.push(v => fn(v) ? v : HaltChainable);\n            return this;\n        }\n        reduce(merge, initial) {\n            let last = initial;\n            this.steps.push(v => {\n                last = merge(last, v);\n                return last;\n            });\n            return this;\n        }\n        latch(equals = (a, b) => a === b) {\n            let firstCall = true;\n            let cache;\n            this.steps.push(value => {\n                const shouldEmit = firstCall || !equals(value, cache);\n                firstCall = false;\n                cache = value;\n                return shouldEmit ? value : HaltChainable;\n            });\n            return this;\n        }\n        evaluate(value) {\n            for (const step of this.steps) {\n                value = step(value);\n                if (value === HaltChainable) {\n                    break;\n                }\n            }\n            return value;\n        }\n    }\n    /**\n     * Creates an {@link Event} from a node event emitter.\n     */\n    function fromNodeEventEmitter(emitter, eventName, map = id => id) {\n        const fn = (...args) => result.fire(map(...args));\n        const onFirstListenerAdd = () => emitter.on(eventName, fn);\n        const onLastListenerRemove = () => emitter.removeListener(eventName, fn);\n        const result = new Emitter({ onWillAddFirstListener: onFirstListenerAdd, onDidRemoveLastListener: onLastListenerRemove });\n        return result.event;\n    }\n    Event.fromNodeEventEmitter = fromNodeEventEmitter;\n    /**\n     * Creates an {@link Event} from a DOM event emitter.\n     */\n    function fromDOMEventEmitter(emitter, eventName, map = id => id) {\n        const fn = (...args) => result.fire(map(...args));\n        const onFirstListenerAdd = () => emitter.addEventListener(eventName, fn);\n        const onLastListenerRemove = () => emitter.removeEventListener(eventName, fn);\n        const result = new Emitter({ onWillAddFirstListener: onFirstListenerAdd, onDidRemoveLastListener: onLastListenerRemove });\n        return result.event;\n    }\n    Event.fromDOMEventEmitter = fromDOMEventEmitter;\n    /**\n     * Creates a promise out of an event, using the {@link Event.once} helper.\n     */\n    function toPromise(event) {\n        return new Promise(resolve => once(event)(resolve));\n    }\n    Event.toPromise = toPromise;\n    /**\n     * Creates an event out of a promise that fires once when the promise is\n     * resolved with the result of the promise or `undefined`.\n     */\n    function fromPromise(promise) {\n        const result = new Emitter();\n        promise.then(res => {\n            result.fire(res);\n        }, () => {\n            result.fire(undefined);\n        }).finally(() => {\n            result.dispose();\n        });\n        return result.event;\n    }\n    Event.fromPromise = fromPromise;\n    function runAndSubscribe(event, handler, initial) {\n        handler(initial);\n        return event(e => handler(e));\n    }\n    Event.runAndSubscribe = runAndSubscribe;\n    /**\n     * Adds a listener to an event and calls the listener immediately with undefined as the event object. A new\n     * {@link DisposableStore} is passed to the listener which is disposed when the returned disposable is disposed.\n     */\n    function runAndSubscribeWithStore(event, handler) {\n        let store = null;\n        function run(e) {\n            store === null || store === void 0 ? void 0 : store.dispose();\n            store = new _lifecycle_js__WEBPACK_IMPORTED_MODULE_2__.DisposableStore();\n            handler(e, store);\n        }\n        run(undefined);\n        const disposable = event(e => run(e));\n        return (0,_lifecycle_js__WEBPACK_IMPORTED_MODULE_2__.toDisposable)(() => {\n            disposable.dispose();\n            store === null || store === void 0 ? void 0 : store.dispose();\n        });\n    }\n    Event.runAndSubscribeWithStore = runAndSubscribeWithStore;\n    class EmitterObserver {\n        constructor(_observable, store) {\n            this._observable = _observable;\n            this._counter = 0;\n            this._hasChanged = false;\n            const options = {\n                onWillAddFirstListener: () => {\n                    _observable.addObserver(this);\n                },\n                onDidRemoveLastListener: () => {\n                    _observable.removeObserver(this);\n                }\n            };\n            if (!store) {\n                _addLeakageTraceLogic(options);\n            }\n            this.emitter = new Emitter(options);\n            if (store) {\n                store.add(this.emitter);\n            }\n        }\n        beginUpdate(_observable) {\n            // assert(_observable === this.obs);\n            this._counter++;\n        }\n        handlePossibleChange(_observable) {\n            // assert(_observable === this.obs);\n        }\n        handleChange(_observable, _change) {\n            // assert(_observable === this.obs);\n            this._hasChanged = true;\n        }\n        endUpdate(_observable) {\n            // assert(_observable === this.obs);\n            this._counter--;\n            if (this._counter === 0) {\n                this._observable.reportChanges();\n                if (this._hasChanged) {\n                    this._hasChanged = false;\n                    this.emitter.fire(this._observable.get());\n                }\n            }\n        }\n    }\n    /**\n     * Creates an event emitter that is fired when the observable changes.\n     * Each listeners subscribes to the emitter.\n     */\n    function fromObservable(obs, store) {\n        const observer = new EmitterObserver(obs, store);\n        return observer.emitter.event;\n    }\n    Event.fromObservable = fromObservable;\n    /**\n     * Each listener is attached to the observable directly.\n     */\n    function fromObservableLight(observable) {\n        return (listener, thisArgs, disposables) => {\n            let count = 0;\n            let didChange = false;\n            const observer = {\n                beginUpdate() {\n                    count++;\n                },\n                endUpdate() {\n                    count--;\n                    if (count === 0) {\n                        observable.reportChanges();\n                        if (didChange) {\n                            didChange = false;\n                            listener.call(thisArgs);\n                        }\n                    }\n                },\n                handlePossibleChange() {\n                    // noop\n                },\n                handleChange() {\n                    didChange = true;\n                }\n            };\n            observable.addObserver(observer);\n            observable.reportChanges();\n            const disposable = {\n                dispose() {\n                    observable.removeObserver(observer);\n                }\n            };\n            if (disposables instanceof _lifecycle_js__WEBPACK_IMPORTED_MODULE_2__.DisposableStore) {\n                disposables.add(disposable);\n            }\n            else if (Array.isArray(disposables)) {\n                disposables.push(disposable);\n            }\n            return disposable;\n        };\n    }\n    Event.fromObservableLight = fromObservableLight;\n})(Event || (Event = {}));\nclass EventProfiling {\n    constructor(name) {\n        this.listenerCount = 0;\n        this.invocationCount = 0;\n        this.elapsedOverall = 0;\n        this.durations = [];\n        this.name = `${name}_${EventProfiling._idPool++}`;\n        EventProfiling.all.add(this);\n    }\n    start(listenerCount) {\n        this._stopWatch = new _stopwatch_js__WEBPACK_IMPORTED_MODULE_4__.StopWatch();\n        this.listenerCount = listenerCount;\n    }\n    stop() {\n        if (this._stopWatch) {\n            const elapsed = this._stopWatch.elapsed();\n            this.durations.push(elapsed);\n            this.elapsedOverall += elapsed;\n            this.invocationCount += 1;\n            this._stopWatch = undefined;\n        }\n    }\n}\nEventProfiling.all = new Set();\nEventProfiling._idPool = 0;\nlet _globalLeakWarningThreshold = -1;\nclass LeakageMonitor {\n    constructor(threshold, name = Math.random().toString(18).slice(2, 5)) {\n        this.threshold = threshold;\n        this.name = name;\n        this._warnCountdown = 0;\n    }\n    dispose() {\n        var _a;\n        (_a = this._stacks) === null || _a === void 0 ? void 0 : _a.clear();\n    }\n    check(stack, listenerCount) {\n        const threshold = this.threshold;\n        if (threshold <= 0 || listenerCount < threshold) {\n            return undefined;\n        }\n        if (!this._stacks) {\n            this._stacks = new Map();\n        }\n        const count = (this._stacks.get(stack.value) || 0);\n        this._stacks.set(stack.value, count + 1);\n        this._warnCountdown -= 1;\n        if (this._warnCountdown <= 0) {\n            // only warn on first exceed and then every time the limit\n            // is exceeded by 50% again\n            this._warnCountdown = threshold * 0.5;\n            // find most frequent listener and print warning\n            let topStack;\n            let topCount = 0;\n            for (const [stack, count] of this._stacks) {\n                if (!topStack || topCount < count) {\n                    topStack = stack;\n                    topCount = count;\n                }\n            }\n            console.warn(`[${this.name}] potential listener LEAK detected, having ${listenerCount} listeners already. MOST frequent listener (${topCount}):`);\n            console.warn(topStack);\n        }\n        return () => {\n            const count = (this._stacks.get(stack.value) || 0);\n            this._stacks.set(stack.value, count - 1);\n        };\n    }\n}\nclass Stacktrace {\n    static create() {\n        var _a;\n        return new Stacktrace((_a = new Error().stack) !== null && _a !== void 0 ? _a : '');\n    }\n    constructor(value) {\n        this.value = value;\n    }\n    print() {\n        console.warn(this.value.split('\\n').slice(2).join('\\n'));\n    }\n}\nclass UniqueContainer {\n    constructor(value) {\n        this.value = value;\n    }\n}\nconst compactionThreshold = 2;\nconst forEachListener = (listeners, fn) => {\n    if (listeners instanceof UniqueContainer) {\n        fn(listeners);\n    }\n    else {\n        for (let i = 0; i < listeners.length; i++) {\n            const l = listeners[i];\n            if (l) {\n                fn(l);\n            }\n        }\n    }\n};\n/**\n * The Emitter can be used to expose an Event to the public\n * to fire it from the insides.\n * Sample:\n    class Document {\n\n        private readonly _onDidChange = new Emitter<(value:string)=>any>();\n\n        public onDidChange = this._onDidChange.event;\n\n        // getter-style\n        // get onDidChange(): Event<(value:string)=>any> {\n        // \treturn this._onDidChange.event;\n        // }\n\n        private _doIt() {\n            //...\n            this._onDidChange.fire(value);\n        }\n    }\n */\nclass Emitter {\n    constructor(options) {\n        var _a, _b, _c, _d, _e;\n        this._size = 0;\n        this._options = options;\n        this._leakageMon = _globalLeakWarningThreshold > 0 || ((_a = this._options) === null || _a === void 0 ? void 0 : _a.leakWarningThreshold) ? new LeakageMonitor((_c = (_b = this._options) === null || _b === void 0 ? void 0 : _b.leakWarningThreshold) !== null && _c !== void 0 ? _c : _globalLeakWarningThreshold) : undefined;\n        this._perfMon = ((_d = this._options) === null || _d === void 0 ? void 0 : _d._profName) ? new EventProfiling(this._options._profName) : undefined;\n        this._deliveryQueue = (_e = this._options) === null || _e === void 0 ? void 0 : _e.deliveryQueue;\n    }\n    dispose() {\n        var _a, _b, _c, _d;\n        if (!this._disposed) {\n            this._disposed = true;\n            // It is bad to have listeners at the time of disposing an emitter, it is worst to have listeners keep the emitter\n            // alive via the reference that's embedded in their disposables. Therefore we loop over all remaining listeners and\n            // unset their subscriptions/disposables. Looping and blaming remaining listeners is done on next tick because the\n            // the following programming pattern is very popular:\n            //\n            // const someModel = this._disposables.add(new ModelObject()); // (1) create and register model\n            // this._disposables.add(someModel.onDidChange(() => { ... }); // (2) subscribe and register model-event listener\n            // ...later...\n            // this._disposables.dispose(); disposes (1) then (2): don't warn after (1) but after the \"overall dispose\" is done\n            if (((_a = this._deliveryQueue) === null || _a === void 0 ? void 0 : _a.current) === this) {\n                this._deliveryQueue.reset();\n            }\n            if (this._listeners) {\n                if (_enableDisposeWithListenerWarning) {\n                    const listeners = this._listeners;\n                    queueMicrotask(() => {\n                        forEachListener(listeners, l => { var _a; return (_a = l.stack) === null || _a === void 0 ? void 0 : _a.print(); });\n                    });\n                }\n                this._listeners = undefined;\n                this._size = 0;\n            }\n            (_c = (_b = this._options) === null || _b === void 0 ? void 0 : _b.onDidRemoveLastListener) === null || _c === void 0 ? void 0 : _c.call(_b);\n            (_d = this._leakageMon) === null || _d === void 0 ? void 0 : _d.dispose();\n        }\n    }\n    /**\n     * For the public to allow to subscribe\n     * to events from this Emitter\n     */\n    get event() {\n        var _a;\n        (_a = this._event) !== null && _a !== void 0 ? _a : (this._event = (callback, thisArgs, disposables) => {\n            var _a, _b, _c, _d, _e;\n            if (this._leakageMon && this._size > this._leakageMon.threshold * 3) {\n                console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`);\n                return _lifecycle_js__WEBPACK_IMPORTED_MODULE_2__.Disposable.None;\n            }\n            if (this._disposed) {\n                // todo: should we warn if a listener is added to a disposed emitter? This happens often\n                return _lifecycle_js__WEBPACK_IMPORTED_MODULE_2__.Disposable.None;\n            }\n            if (thisArgs) {\n                callback = callback.bind(thisArgs);\n            }\n            const contained = new UniqueContainer(callback);\n            let removeMonitor;\n            let stack;\n            if (this._leakageMon && this._size >= Math.ceil(this._leakageMon.threshold * 0.2)) {\n                // check and record this emitter for potential leakage\n                contained.stack = Stacktrace.create();\n                removeMonitor = this._leakageMon.check(contained.stack, this._size + 1);\n            }\n            if (_enableDisposeWithListenerWarning) {\n                contained.stack = stack !== null && stack !== void 0 ? stack : Stacktrace.create();\n            }\n            if (!this._listeners) {\n                (_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.onWillAddFirstListener) === null || _b === void 0 ? void 0 : _b.call(_a, this);\n                this._listeners = contained;\n                (_d = (_c = this._options) === null || _c === void 0 ? void 0 : _c.onDidAddFirstListener) === null || _d === void 0 ? void 0 : _d.call(_c, this);\n            }\n            else if (this._listeners instanceof UniqueContainer) {\n                (_e = this._deliveryQueue) !== null && _e !== void 0 ? _e : (this._deliveryQueue = new EventDeliveryQueuePrivate());\n                this._listeners = [this._listeners, contained];\n            }\n            else {\n                this._listeners.push(contained);\n            }\n            this._size++;\n            const result = (0,_lifecycle_js__WEBPACK_IMPORTED_MODULE_2__.toDisposable)(() => { removeMonitor === null || removeMonitor === void 0 ? void 0 : removeMonitor(); this._removeListener(contained); });\n            if (disposables instanceof _lifecycle_js__WEBPACK_IMPORTED_MODULE_2__.DisposableStore) {\n                disposables.add(result);\n            }\n            else if (Array.isArray(disposables)) {\n                disposables.push(result);\n            }\n            return result;\n        });\n        return this._event;\n    }\n    _removeListener(listener) {\n        var _a, _b, _c, _d;\n        (_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.onWillRemoveListener) === null || _b === void 0 ? void 0 : _b.call(_a, this);\n        if (!this._listeners) {\n            return; // expected if a listener gets disposed\n        }\n        if (this._size === 1) {\n            this._listeners = undefined;\n            (_d = (_c = this._options) === null || _c === void 0 ? void 0 : _c.onDidRemoveLastListener) === null || _d === void 0 ? void 0 : _d.call(_c, this);\n            this._size = 0;\n            return;\n        }\n        // size > 1 which requires that listeners be a list:\n        const listeners = this._listeners;\n        const index = listeners.indexOf(listener);\n        if (index === -1) {\n            console.log('disposed?', this._disposed);\n            console.log('size?', this._size);\n            console.log('arr?', JSON.stringify(this._listeners));\n            throw new Error('Attempted to dispose unknown listener');\n        }\n        this._size--;\n        listeners[index] = undefined;\n        const adjustDeliveryQueue = this._deliveryQueue.current === this;\n        if (this._size * compactionThreshold <= listeners.length) {\n            let n = 0;\n            for (let i = 0; i < listeners.length; i++) {\n                if (listeners[i]) {\n                    listeners[n++] = listeners[i];\n                }\n                else if (adjustDeliveryQueue) {\n                    this._deliveryQueue.end--;\n                    if (n < this._deliveryQueue.i) {\n                        this._deliveryQueue.i--;\n                    }\n                }\n            }\n            listeners.length = n;\n        }\n    }\n    _deliver(listener, value) {\n        var _a;\n        if (!listener) {\n            return;\n        }\n        const errorHandler = ((_a = this._options) === null || _a === void 0 ? void 0 : _a.onListenerError) || _errors_js__WEBPACK_IMPORTED_MODULE_0__.onUnexpectedError;\n        if (!errorHandler) {\n            listener.value(value);\n            return;\n        }\n        try {\n            listener.value(value);\n        }\n        catch (e) {\n            errorHandler(e);\n        }\n    }\n    /** Delivers items in the queue. Assumes the queue is ready to go. */\n    _deliverQueue(dq) {\n        const listeners = dq.current._listeners;\n        while (dq.i < dq.end) {\n            // important: dq.i is incremented before calling deliver() because it might reenter deliverQueue()\n            this._deliver(listeners[dq.i++], dq.value);\n        }\n        dq.reset();\n    }\n    /**\n     * To be kept private to fire an event to\n     * subscribers\n     */\n    fire(event) {\n        var _a, _b, _c, _d;\n        if ((_a = this._deliveryQueue) === null || _a === void 0 ? void 0 : _a.current) {\n            this._deliverQueue(this._deliveryQueue);\n            (_b = this._perfMon) === null || _b === void 0 ? void 0 : _b.stop(); // last fire() will have starting perfmon, stop it before starting the next dispatch\n        }\n        (_c = this._perfMon) === null || _c === void 0 ? void 0 : _c.start(this._size);\n        if (!this._listeners) {\n            // no-op\n        }\n        else if (this._listeners instanceof UniqueContainer) {\n            this._deliver(this._listeners, event);\n        }\n        else {\n            const dq = this._deliveryQueue;\n            dq.enqueue(this, event, this._listeners.length);\n            this._deliverQueue(dq);\n        }\n        (_d = this._perfMon) === null || _d === void 0 ? void 0 : _d.stop();\n    }\n    hasListeners() {\n        return this._size > 0;\n    }\n}\nconst createEventDeliveryQueue = () => new EventDeliveryQueuePrivate();\nclass EventDeliveryQueuePrivate {\n    constructor() {\n        /**\n         * Index in current's listener list.\n         */\n        this.i = -1;\n        /**\n         * The last index in the listener's list to deliver.\n         */\n        this.end = 0;\n    }\n    enqueue(emitter, value, end) {\n        this.i = 0;\n        this.end = end;\n        this.current = emitter;\n        this.value = value;\n    }\n    reset() {\n        this.i = this.end; // force any current emission loop to stop, mainly for during dispose\n        this.current = undefined;\n        this.value = undefined;\n    }\n}\nclass PauseableEmitter extends Emitter {\n    constructor(options) {\n        super(options);\n        this._isPaused = 0;\n        this._eventQueue = new _linkedList_js__WEBPACK_IMPORTED_MODULE_3__.LinkedList();\n        this._mergeFn = options === null || options === void 0 ? void 0 : options.merge;\n    }\n    pause() {\n        this._isPaused++;\n    }\n    resume() {\n        if (this._isPaused !== 0 && --this._isPaused === 0) {\n            if (this._mergeFn) {\n                // use the merge function to create a single composite\n                // event. make a copy in case firing pauses this emitter\n                if (this._eventQueue.size > 0) {\n                    const events = Array.from(this._eventQueue);\n                    this._eventQueue.clear();\n                    super.fire(this._mergeFn(events));\n                }\n            }\n            else {\n                // no merging, fire each event individually and test\n                // that this emitter isn't paused halfway through\n                while (!this._isPaused && this._eventQueue.size !== 0) {\n                    super.fire(this._eventQueue.shift());\n                }\n            }\n        }\n    }\n    fire(event) {\n        if (this._size) {\n            if (this._isPaused !== 0) {\n                this._eventQueue.push(event);\n            }\n            else {\n                super.fire(event);\n            }\n        }\n    }\n}\nclass DebounceEmitter extends PauseableEmitter {\n    constructor(options) {\n        var _a;\n        super(options);\n        this._delay = (_a = options.delay) !== null && _a !== void 0 ? _a : 100;\n    }\n    fire(event) {\n        if (!this._handle) {\n            this.pause();\n            this._handle = setTimeout(() => {\n                this._handle = undefined;\n                this.resume();\n            }, this._delay);\n        }\n        super.fire(event);\n    }\n}\n/**\n * An emitter which queue all events and then process them at the\n * end of the event loop.\n */\nclass MicrotaskEmitter extends Emitter {\n    constructor(options) {\n        super(options);\n        this._queuedEvents = [];\n        this._mergeFn = options === null || options === void 0 ? void 0 : options.merge;\n    }\n    fire(event) {\n        if (!this.hasListeners()) {\n            return;\n        }\n        this._queuedEvents.push(event);\n        if (this._queuedEvents.length === 1) {\n            queueMicrotask(() => {\n                if (this._mergeFn) {\n                    super.fire(this._mergeFn(this._queuedEvents));\n                }\n                else {\n                    this._queuedEvents.forEach(e => super.fire(e));\n                }\n                this._queuedEvents = [];\n            });\n        }\n    }\n}\n/**\n * An event emitter that multiplexes many events into a single event.\n *\n * @example Listen to the `onData` event of all `Thing`s, dynamically adding and removing `Thing`s\n * to the multiplexer as needed.\n *\n * ```typescript\n * const anythingDataMultiplexer = new EventMultiplexer<{ data: string }>();\n *\n * const thingListeners = DisposableMap<Thing, IDisposable>();\n *\n * thingService.onDidAddThing(thing => {\n *   thingListeners.set(thing, anythingDataMultiplexer.add(thing.onData);\n * });\n * thingService.onDidRemoveThing(thing => {\n *   thingListeners.deleteAndDispose(thing);\n * });\n *\n * anythingDataMultiplexer.event(e => {\n *   console.log('Something fired data ' + e.data)\n * });\n * ```\n */\nclass EventMultiplexer {\n    constructor() {\n        this.hasListeners = false;\n        this.events = [];\n        this.emitter = new Emitter({\n            onWillAddFirstListener: () => this.onFirstListenerAdd(),\n            onDidRemoveLastListener: () => this.onLastListenerRemove()\n        });\n    }\n    get event() {\n        return this.emitter.event;\n    }\n    add(event) {\n        const e = { event: event, listener: null };\n        this.events.push(e);\n        if (this.hasListeners) {\n            this.hook(e);\n        }\n        const dispose = () => {\n            if (this.hasListeners) {\n                this.unhook(e);\n            }\n            const idx = this.events.indexOf(e);\n            this.events.splice(idx, 1);\n        };\n        return (0,_lifecycle_js__WEBPACK_IMPORTED_MODULE_2__.toDisposable)((0,_functional_js__WEBPACK_IMPORTED_MODULE_1__.createSingleCallFunction)(dispose));\n    }\n    onFirstListenerAdd() {\n        this.hasListeners = true;\n        this.events.forEach(e => this.hook(e));\n    }\n    onLastListenerRemove() {\n        this.hasListeners = false;\n        this.events.forEach(e => this.unhook(e));\n    }\n    hook(e) {\n        e.listener = e.event(r => this.emitter.fire(r));\n    }\n    unhook(e) {\n        if (e.listener) {\n            e.listener.dispose();\n        }\n        e.listener = null;\n    }\n    dispose() {\n        this.emitter.dispose();\n    }\n}\n/**\n * The EventBufferer is useful in situations in which you want\n * to delay firing your events during some code.\n * You can wrap that code and be sure that the event will not\n * be fired during that wrap.\n *\n * ```\n * const emitter: Emitter;\n * const delayer = new EventDelayer();\n * const delayedEvent = delayer.wrapEvent(emitter.event);\n *\n * delayedEvent(console.log);\n *\n * delayer.bufferEvents(() => {\n *   emitter.fire(); // event will not be fired yet\n * });\n *\n * // event will only be fired at this point\n * ```\n */\nclass EventBufferer {\n    constructor() {\n        this.buffers = [];\n    }\n    wrapEvent(event) {\n        return (listener, thisArgs, disposables) => {\n            return event(i => {\n                const buffer = this.buffers[this.buffers.length - 1];\n                if (buffer) {\n                    buffer.push(() => listener.call(thisArgs, i));\n                }\n                else {\n                    listener.call(thisArgs, i);\n                }\n            }, undefined, disposables);\n        };\n    }\n    bufferEvents(fn) {\n        const buffer = [];\n        this.buffers.push(buffer);\n        const r = fn();\n        this.buffers.pop();\n        buffer.forEach(flush => flush());\n        return r;\n    }\n}\n/**\n * A Relay is an event forwarder which functions as a replugabble event pipe.\n * Once created, you can connect an input event to it and it will simply forward\n * events from that input event through its own `event` property. The `input`\n * can be changed at any point in time.\n */\nclass Relay {\n    constructor() {\n        this.listening = false;\n        this.inputEvent = Event.None;\n        this.inputEventListener = _lifecycle_js__WEBPACK_IMPORTED_MODULE_2__.Disposable.None;\n        this.emitter = new Emitter({\n            onDidAddFirstListener: () => {\n                this.listening = true;\n                this.inputEventListener = this.inputEvent(this.emitter.fire, this.emitter);\n            },\n            onDidRemoveLastListener: () => {\n                this.listening = false;\n                this.inputEventListener.dispose();\n            }\n        });\n        this.event = this.emitter.event;\n    }\n    set input(event) {\n        this.inputEvent = event;\n        if (this.listening) {\n            this.inputEventListener.dispose();\n            this.inputEventListener = event(this.emitter.fire, this.emitter);\n        }\n    }\n    dispose() {\n        this.inputEventListener.dispose();\n        this.emitter.dispose();\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/event.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/functional.js":
/*!*********************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/functional.js ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   createSingleCallFunction: () => (/* binding */ createSingleCallFunction)\n/* harmony export */ });\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n/**\n * Given a function, returns a function that is only calling that function once.\n */\nfunction createSingleCallFunction(fn, fnDidRunCallback) {\n    const _this = this;\n    let didCall = false;\n    let result;\n    return function () {\n        if (didCall) {\n            return result;\n        }\n        didCall = true;\n        if (fnDidRunCallback) {\n            try {\n                result = fn.apply(_this, arguments);\n            }\n            finally {\n                fnDidRunCallback();\n            }\n        }\n        else {\n            result = fn.apply(_this, arguments);\n        }\n        return result;\n    };\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/functional.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/hash.js":
/*!***************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/hash.js ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   StringSHA1: () => (/* binding */ StringSHA1),\n/* harmony export */   doHash: () => (/* binding */ doHash),\n/* harmony export */   hash: () => (/* binding */ hash),\n/* harmony export */   numberHash: () => (/* binding */ numberHash),\n/* harmony export */   stringHash: () => (/* binding */ stringHash),\n/* harmony export */   toHexString: () => (/* binding */ toHexString)\n/* harmony export */ });\n/* harmony import */ var _strings_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./strings.js */ \"./node_modules/monaco-editor/esm/vs/base/common/strings.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/**\n * Return a hash value for an object.\n */\nfunction hash(obj) {\n    return doHash(obj, 0);\n}\nfunction doHash(obj, hashVal) {\n    switch (typeof obj) {\n        case 'object':\n            if (obj === null) {\n                return numberHash(349, hashVal);\n            }\n            else if (Array.isArray(obj)) {\n                return arrayHash(obj, hashVal);\n            }\n            return objectHash(obj, hashVal);\n        case 'string':\n            return stringHash(obj, hashVal);\n        case 'boolean':\n            return booleanHash(obj, hashVal);\n        case 'number':\n            return numberHash(obj, hashVal);\n        case 'undefined':\n            return numberHash(937, hashVal);\n        default:\n            return numberHash(617, hashVal);\n    }\n}\nfunction numberHash(val, initialHashVal) {\n    return (((initialHashVal << 5) - initialHashVal) + val) | 0; // hashVal * 31 + ch, keep as int32\n}\nfunction booleanHash(b, initialHashVal) {\n    return numberHash(b ? 433 : 863, initialHashVal);\n}\nfunction stringHash(s, hashVal) {\n    hashVal = numberHash(149417, hashVal);\n    for (let i = 0, length = s.length; i < length; i++) {\n        hashVal = numberHash(s.charCodeAt(i), hashVal);\n    }\n    return hashVal;\n}\nfunction arrayHash(arr, initialHashVal) {\n    initialHashVal = numberHash(104579, initialHashVal);\n    return arr.reduce((hashVal, item) => doHash(item, hashVal), initialHashVal);\n}\nfunction objectHash(obj, initialHashVal) {\n    initialHashVal = numberHash(181387, initialHashVal);\n    return Object.keys(obj).sort().reduce((hashVal, key) => {\n        hashVal = stringHash(key, hashVal);\n        return doHash(obj[key], hashVal);\n    }, initialHashVal);\n}\nfunction leftRotate(value, bits, totalBits = 32) {\n    // delta + bits = totalBits\n    const delta = totalBits - bits;\n    // All ones, expect `delta` zeros aligned to the right\n    const mask = ~((1 << delta) - 1);\n    // Join (value left-shifted `bits` bits) with (masked value right-shifted `delta` bits)\n    return ((value << bits) | ((mask & value) >>> delta)) >>> 0;\n}\nfunction fill(dest, index = 0, count = dest.byteLength, value = 0) {\n    for (let i = 0; i < count; i++) {\n        dest[index + i] = value;\n    }\n}\nfunction leftPad(value, length, char = '0') {\n    while (value.length < length) {\n        value = char + value;\n    }\n    return value;\n}\nfunction toHexString(bufferOrValue, bitsize = 32) {\n    if (bufferOrValue instanceof ArrayBuffer) {\n        return Array.from(new Uint8Array(bufferOrValue)).map(b => b.toString(16).padStart(2, '0')).join('');\n    }\n    return leftPad((bufferOrValue >>> 0).toString(16), bitsize / 4);\n}\n/**\n * A SHA1 implementation that works with strings and does not allocate.\n */\nclass StringSHA1 {\n    constructor() {\n        this._h0 = 0x67452301;\n        this._h1 = 0xEFCDAB89;\n        this._h2 = 0x98BADCFE;\n        this._h3 = 0x10325476;\n        this._h4 = 0xC3D2E1F0;\n        this._buff = new Uint8Array(64 /* SHA1Constant.BLOCK_SIZE */ + 3 /* to fit any utf-8 */);\n        this._buffDV = new DataView(this._buff.buffer);\n        this._buffLen = 0;\n        this._totalLen = 0;\n        this._leftoverHighSurrogate = 0;\n        this._finished = false;\n    }\n    update(str) {\n        const strLen = str.length;\n        if (strLen === 0) {\n            return;\n        }\n        const buff = this._buff;\n        let buffLen = this._buffLen;\n        let leftoverHighSurrogate = this._leftoverHighSurrogate;\n        let charCode;\n        let offset;\n        if (leftoverHighSurrogate !== 0) {\n            charCode = leftoverHighSurrogate;\n            offset = -1;\n            leftoverHighSurrogate = 0;\n        }\n        else {\n            charCode = str.charCodeAt(0);\n            offset = 0;\n        }\n        while (true) {\n            let codePoint = charCode;\n            if (_strings_js__WEBPACK_IMPORTED_MODULE_0__.isHighSurrogate(charCode)) {\n                if (offset + 1 < strLen) {\n                    const nextCharCode = str.charCodeAt(offset + 1);\n                    if (_strings_js__WEBPACK_IMPORTED_MODULE_0__.isLowSurrogate(nextCharCode)) {\n                        offset++;\n                        codePoint = _strings_js__WEBPACK_IMPORTED_MODULE_0__.computeCodePoint(charCode, nextCharCode);\n                    }\n                    else {\n                        // illegal => unicode replacement character\n                        codePoint = 65533 /* SHA1Constant.UNICODE_REPLACEMENT */;\n                    }\n                }\n                else {\n                    // last character is a surrogate pair\n                    leftoverHighSurrogate = charCode;\n                    break;\n                }\n            }\n            else if (_strings_js__WEBPACK_IMPORTED_MODULE_0__.isLowSurrogate(charCode)) {\n                // illegal => unicode replacement character\n                codePoint = 65533 /* SHA1Constant.UNICODE_REPLACEMENT */;\n            }\n            buffLen = this._push(buff, buffLen, codePoint);\n            offset++;\n            if (offset < strLen) {\n                charCode = str.charCodeAt(offset);\n            }\n            else {\n                break;\n            }\n        }\n        this._buffLen = buffLen;\n        this._leftoverHighSurrogate = leftoverHighSurrogate;\n    }\n    _push(buff, buffLen, codePoint) {\n        if (codePoint < 0x0080) {\n            buff[buffLen++] = codePoint;\n        }\n        else if (codePoint < 0x0800) {\n            buff[buffLen++] = 0b11000000 | ((codePoint & 0b00000000000000000000011111000000) >>> 6);\n            buff[buffLen++] = 0b10000000 | ((codePoint & 0b00000000000000000000000000111111) >>> 0);\n        }\n        else if (codePoint < 0x10000) {\n            buff[buffLen++] = 0b11100000 | ((codePoint & 0b00000000000000001111000000000000) >>> 12);\n            buff[buffLen++] = 0b10000000 | ((codePoint & 0b00000000000000000000111111000000) >>> 6);\n            buff[buffLen++] = 0b10000000 | ((codePoint & 0b00000000000000000000000000111111) >>> 0);\n        }\n        else {\n            buff[buffLen++] = 0b11110000 | ((codePoint & 0b00000000000111000000000000000000) >>> 18);\n            buff[buffLen++] = 0b10000000 | ((codePoint & 0b00000000000000111111000000000000) >>> 12);\n            buff[buffLen++] = 0b10000000 | ((codePoint & 0b00000000000000000000111111000000) >>> 6);\n            buff[buffLen++] = 0b10000000 | ((codePoint & 0b00000000000000000000000000111111) >>> 0);\n        }\n        if (buffLen >= 64 /* SHA1Constant.BLOCK_SIZE */) {\n            this._step();\n            buffLen -= 64 /* SHA1Constant.BLOCK_SIZE */;\n            this._totalLen += 64 /* SHA1Constant.BLOCK_SIZE */;\n            // take last 3 in case of UTF8 overflow\n            buff[0] = buff[64 /* SHA1Constant.BLOCK_SIZE */ + 0];\n            buff[1] = buff[64 /* SHA1Constant.BLOCK_SIZE */ + 1];\n            buff[2] = buff[64 /* SHA1Constant.BLOCK_SIZE */ + 2];\n        }\n        return buffLen;\n    }\n    digest() {\n        if (!this._finished) {\n            this._finished = true;\n            if (this._leftoverHighSurrogate) {\n                // illegal => unicode replacement character\n                this._leftoverHighSurrogate = 0;\n                this._buffLen = this._push(this._buff, this._buffLen, 65533 /* SHA1Constant.UNICODE_REPLACEMENT */);\n            }\n            this._totalLen += this._buffLen;\n            this._wrapUp();\n        }\n        return toHexString(this._h0) + toHexString(this._h1) + toHexString(this._h2) + toHexString(this._h3) + toHexString(this._h4);\n    }\n    _wrapUp() {\n        this._buff[this._buffLen++] = 0x80;\n        fill(this._buff, this._buffLen);\n        if (this._buffLen > 56) {\n            this._step();\n            fill(this._buff);\n        }\n        // this will fit because the mantissa can cover up to 52 bits\n        const ml = 8 * this._totalLen;\n        this._buffDV.setUint32(56, Math.floor(ml / 4294967296), false);\n        this._buffDV.setUint32(60, ml % 4294967296, false);\n        this._step();\n    }\n    _step() {\n        const bigBlock32 = StringSHA1._bigBlock32;\n        const data = this._buffDV;\n        for (let j = 0; j < 64 /* 16*4 */; j += 4) {\n            bigBlock32.setUint32(j, data.getUint32(j, false), false);\n        }\n        for (let j = 64; j < 320 /* 80*4 */; j += 4) {\n            bigBlock32.setUint32(j, leftRotate((bigBlock32.getUint32(j - 12, false) ^ bigBlock32.getUint32(j - 32, false) ^ bigBlock32.getUint32(j - 56, false) ^ bigBlock32.getUint32(j - 64, false)), 1), false);\n        }\n        let a = this._h0;\n        let b = this._h1;\n        let c = this._h2;\n        let d = this._h3;\n        let e = this._h4;\n        let f, k;\n        let temp;\n        for (let j = 0; j < 80; j++) {\n            if (j < 20) {\n                f = (b & c) | ((~b) & d);\n                k = 0x5A827999;\n            }\n            else if (j < 40) {\n                f = b ^ c ^ d;\n                k = 0x6ED9EBA1;\n            }\n            else if (j < 60) {\n                f = (b & c) | (b & d) | (c & d);\n                k = 0x8F1BBCDC;\n            }\n            else {\n                f = b ^ c ^ d;\n                k = 0xCA62C1D6;\n            }\n            temp = (leftRotate(a, 5) + f + e + k + bigBlock32.getUint32(j * 4, false)) & 0xffffffff;\n            e = d;\n            d = c;\n            c = leftRotate(b, 30);\n            b = a;\n            a = temp;\n        }\n        this._h0 = (this._h0 + a) & 0xffffffff;\n        this._h1 = (this._h1 + b) & 0xffffffff;\n        this._h2 = (this._h2 + c) & 0xffffffff;\n        this._h3 = (this._h3 + d) & 0xffffffff;\n        this._h4 = (this._h4 + e) & 0xffffffff;\n    }\n}\nStringSHA1._bigBlock32 = new DataView(new ArrayBuffer(320)); // 80 * 4 = 320\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/hash.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/iterator.js":
/*!*******************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/iterator.js ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Iterable: () => (/* binding */ Iterable)\n/* harmony export */ });\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nvar Iterable;\n(function (Iterable) {\n    function is(thing) {\n        return thing && typeof thing === 'object' && typeof thing[Symbol.iterator] === 'function';\n    }\n    Iterable.is = is;\n    const _empty = Object.freeze([]);\n    function empty() {\n        return _empty;\n    }\n    Iterable.empty = empty;\n    function* single(element) {\n        yield element;\n    }\n    Iterable.single = single;\n    function wrap(iterableOrElement) {\n        if (is(iterableOrElement)) {\n            return iterableOrElement;\n        }\n        else {\n            return single(iterableOrElement);\n        }\n    }\n    Iterable.wrap = wrap;\n    function from(iterable) {\n        return iterable || _empty;\n    }\n    Iterable.from = from;\n    function* reverse(array) {\n        for (let i = array.length - 1; i >= 0; i--) {\n            yield array[i];\n        }\n    }\n    Iterable.reverse = reverse;\n    function isEmpty(iterable) {\n        return !iterable || iterable[Symbol.iterator]().next().done === true;\n    }\n    Iterable.isEmpty = isEmpty;\n    function first(iterable) {\n        return iterable[Symbol.iterator]().next().value;\n    }\n    Iterable.first = first;\n    function some(iterable, predicate) {\n        for (const element of iterable) {\n            if (predicate(element)) {\n                return true;\n            }\n        }\n        return false;\n    }\n    Iterable.some = some;\n    function find(iterable, predicate) {\n        for (const element of iterable) {\n            if (predicate(element)) {\n                return element;\n            }\n        }\n        return undefined;\n    }\n    Iterable.find = find;\n    function* filter(iterable, predicate) {\n        for (const element of iterable) {\n            if (predicate(element)) {\n                yield element;\n            }\n        }\n    }\n    Iterable.filter = filter;\n    function* map(iterable, fn) {\n        let index = 0;\n        for (const element of iterable) {\n            yield fn(element, index++);\n        }\n    }\n    Iterable.map = map;\n    function* concat(...iterables) {\n        for (const iterable of iterables) {\n            yield* iterable;\n        }\n    }\n    Iterable.concat = concat;\n    function reduce(iterable, reducer, initialValue) {\n        let value = initialValue;\n        for (const element of iterable) {\n            value = reducer(value, element);\n        }\n        return value;\n    }\n    Iterable.reduce = reduce;\n    /**\n     * Returns an iterable slice of the array, with the same semantics as `array.slice()`.\n     */\n    function* slice(arr, from, to = arr.length) {\n        if (from < 0) {\n            from += arr.length;\n        }\n        if (to < 0) {\n            to += arr.length;\n        }\n        else if (to > arr.length) {\n            to = arr.length;\n        }\n        for (; from < to; from++) {\n            yield arr[from];\n        }\n    }\n    Iterable.slice = slice;\n    /**\n     * Consumes `atMost` elements from iterable and returns the consumed elements,\n     * and an iterable for the rest of the elements.\n     */\n    function consume(iterable, atMost = Number.POSITIVE_INFINITY) {\n        const consumed = [];\n        if (atMost === 0) {\n            return [consumed, iterable];\n        }\n        const iterator = iterable[Symbol.iterator]();\n        for (let i = 0; i < atMost; i++) {\n            const next = iterator.next();\n            if (next.done) {\n                return [consumed, Iterable.empty()];\n            }\n            consumed.push(next.value);\n        }\n        return [consumed, { [Symbol.iterator]() { return iterator; } }];\n    }\n    Iterable.consume = consume;\n})(Iterable || (Iterable = {}));\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/iterator.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/keyCodes.js":
/*!*******************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/keyCodes.js ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EVENT_KEY_CODE_MAP: () => (/* binding */ EVENT_KEY_CODE_MAP),\n/* harmony export */   IMMUTABLE_CODE_TO_KEY_CODE: () => (/* binding */ IMMUTABLE_CODE_TO_KEY_CODE),\n/* harmony export */   IMMUTABLE_KEY_CODE_TO_CODE: () => (/* binding */ IMMUTABLE_KEY_CODE_TO_CODE),\n/* harmony export */   KeyChord: () => (/* binding */ KeyChord),\n/* harmony export */   KeyCodeUtils: () => (/* binding */ KeyCodeUtils),\n/* harmony export */   NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE: () => (/* binding */ NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE)\n/* harmony export */ });\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nclass KeyCodeStrMap {\n    constructor() {\n        this._keyCodeToStr = [];\n        this._strToKeyCode = Object.create(null);\n    }\n    define(keyCode, str) {\n        this._keyCodeToStr[keyCode] = str;\n        this._strToKeyCode[str.toLowerCase()] = keyCode;\n    }\n    keyCodeToStr(keyCode) {\n        return this._keyCodeToStr[keyCode];\n    }\n    strToKeyCode(str) {\n        return this._strToKeyCode[str.toLowerCase()] || 0 /* KeyCode.Unknown */;\n    }\n}\nconst uiMap = new KeyCodeStrMap();\nconst userSettingsUSMap = new KeyCodeStrMap();\nconst userSettingsGeneralMap = new KeyCodeStrMap();\nconst EVENT_KEY_CODE_MAP = new Array(230);\nconst NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE = {};\nconst scanCodeIntToStr = [];\nconst scanCodeStrToInt = Object.create(null);\nconst scanCodeLowerCaseStrToInt = Object.create(null);\n/**\n * -1 if a ScanCode => KeyCode mapping depends on kb layout.\n */\nconst IMMUTABLE_CODE_TO_KEY_CODE = [];\n/**\n * -1 if a KeyCode => ScanCode mapping depends on kb layout.\n */\nconst IMMUTABLE_KEY_CODE_TO_CODE = [];\nfor (let i = 0; i <= 193 /* ScanCode.MAX_VALUE */; i++) {\n    IMMUTABLE_CODE_TO_KEY_CODE[i] = -1 /* KeyCode.DependsOnKbLayout */;\n}\nfor (let i = 0; i <= 132 /* KeyCode.MAX_VALUE */; i++) {\n    IMMUTABLE_KEY_CODE_TO_CODE[i] = -1 /* ScanCode.DependsOnKbLayout */;\n}\n(function () {\n    // See https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx\n    // See https://github.com/microsoft/node-native-keymap/blob/88c0b0e5/deps/chromium/keyboard_codes_win.h\n    const empty = '';\n    const mappings = [\n        // immutable, scanCode, scanCodeStr, keyCode, keyCodeStr, eventKeyCode, vkey, usUserSettingsLabel, generalUserSettingsLabel\n        [1, 0 /* ScanCode.None */, 'None', 0 /* KeyCode.Unknown */, 'unknown', 0, 'VK_UNKNOWN', empty, empty],\n        [1, 1 /* ScanCode.Hyper */, 'Hyper', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 2 /* ScanCode.Super */, 'Super', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 3 /* ScanCode.Fn */, 'Fn', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 4 /* ScanCode.FnLock */, 'FnLock', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 5 /* ScanCode.Suspend */, 'Suspend', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 6 /* ScanCode.Resume */, 'Resume', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 7 /* ScanCode.Turbo */, 'Turbo', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 8 /* ScanCode.Sleep */, 'Sleep', 0 /* KeyCode.Unknown */, empty, 0, 'VK_SLEEP', empty, empty],\n        [1, 9 /* ScanCode.WakeUp */, 'WakeUp', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [0, 10 /* ScanCode.KeyA */, 'KeyA', 31 /* KeyCode.KeyA */, 'A', 65, 'VK_A', empty, empty],\n        [0, 11 /* ScanCode.KeyB */, 'KeyB', 32 /* KeyCode.KeyB */, 'B', 66, 'VK_B', empty, empty],\n        [0, 12 /* ScanCode.KeyC */, 'KeyC', 33 /* KeyCode.KeyC */, 'C', 67, 'VK_C', empty, empty],\n        [0, 13 /* ScanCode.KeyD */, 'KeyD', 34 /* KeyCode.KeyD */, 'D', 68, 'VK_D', empty, empty],\n        [0, 14 /* ScanCode.KeyE */, 'KeyE', 35 /* KeyCode.KeyE */, 'E', 69, 'VK_E', empty, empty],\n        [0, 15 /* ScanCode.KeyF */, 'KeyF', 36 /* KeyCode.KeyF */, 'F', 70, 'VK_F', empty, empty],\n        [0, 16 /* ScanCode.KeyG */, 'KeyG', 37 /* KeyCode.KeyG */, 'G', 71, 'VK_G', empty, empty],\n        [0, 17 /* ScanCode.KeyH */, 'KeyH', 38 /* KeyCode.KeyH */, 'H', 72, 'VK_H', empty, empty],\n        [0, 18 /* ScanCode.KeyI */, 'KeyI', 39 /* KeyCode.KeyI */, 'I', 73, 'VK_I', empty, empty],\n        [0, 19 /* ScanCode.KeyJ */, 'KeyJ', 40 /* KeyCode.KeyJ */, 'J', 74, 'VK_J', empty, empty],\n        [0, 20 /* ScanCode.KeyK */, 'KeyK', 41 /* KeyCode.KeyK */, 'K', 75, 'VK_K', empty, empty],\n        [0, 21 /* ScanCode.KeyL */, 'KeyL', 42 /* KeyCode.KeyL */, 'L', 76, 'VK_L', empty, empty],\n        [0, 22 /* ScanCode.KeyM */, 'KeyM', 43 /* KeyCode.KeyM */, 'M', 77, 'VK_M', empty, empty],\n        [0, 23 /* ScanCode.KeyN */, 'KeyN', 44 /* KeyCode.KeyN */, 'N', 78, 'VK_N', empty, empty],\n        [0, 24 /* ScanCode.KeyO */, 'KeyO', 45 /* KeyCode.KeyO */, 'O', 79, 'VK_O', empty, empty],\n        [0, 25 /* ScanCode.KeyP */, 'KeyP', 46 /* KeyCode.KeyP */, 'P', 80, 'VK_P', empty, empty],\n        [0, 26 /* ScanCode.KeyQ */, 'KeyQ', 47 /* KeyCode.KeyQ */, 'Q', 81, 'VK_Q', empty, empty],\n        [0, 27 /* ScanCode.KeyR */, 'KeyR', 48 /* KeyCode.KeyR */, 'R', 82, 'VK_R', empty, empty],\n        [0, 28 /* ScanCode.KeyS */, 'KeyS', 49 /* KeyCode.KeyS */, 'S', 83, 'VK_S', empty, empty],\n        [0, 29 /* ScanCode.KeyT */, 'KeyT', 50 /* KeyCode.KeyT */, 'T', 84, 'VK_T', empty, empty],\n        [0, 30 /* ScanCode.KeyU */, 'KeyU', 51 /* KeyCode.KeyU */, 'U', 85, 'VK_U', empty, empty],\n        [0, 31 /* ScanCode.KeyV */, 'KeyV', 52 /* KeyCode.KeyV */, 'V', 86, 'VK_V', empty, empty],\n        [0, 32 /* ScanCode.KeyW */, 'KeyW', 53 /* KeyCode.KeyW */, 'W', 87, 'VK_W', empty, empty],\n        [0, 33 /* ScanCode.KeyX */, 'KeyX', 54 /* KeyCode.KeyX */, 'X', 88, 'VK_X', empty, empty],\n        [0, 34 /* ScanCode.KeyY */, 'KeyY', 55 /* KeyCode.KeyY */, 'Y', 89, 'VK_Y', empty, empty],\n        [0, 35 /* ScanCode.KeyZ */, 'KeyZ', 56 /* KeyCode.KeyZ */, 'Z', 90, 'VK_Z', empty, empty],\n        [0, 36 /* ScanCode.Digit1 */, 'Digit1', 22 /* KeyCode.Digit1 */, '1', 49, 'VK_1', empty, empty],\n        [0, 37 /* ScanCode.Digit2 */, 'Digit2', 23 /* KeyCode.Digit2 */, '2', 50, 'VK_2', empty, empty],\n        [0, 38 /* ScanCode.Digit3 */, 'Digit3', 24 /* KeyCode.Digit3 */, '3', 51, 'VK_3', empty, empty],\n        [0, 39 /* ScanCode.Digit4 */, 'Digit4', 25 /* KeyCode.Digit4 */, '4', 52, 'VK_4', empty, empty],\n        [0, 40 /* ScanCode.Digit5 */, 'Digit5', 26 /* KeyCode.Digit5 */, '5', 53, 'VK_5', empty, empty],\n        [0, 41 /* ScanCode.Digit6 */, 'Digit6', 27 /* KeyCode.Digit6 */, '6', 54, 'VK_6', empty, empty],\n        [0, 42 /* ScanCode.Digit7 */, 'Digit7', 28 /* KeyCode.Digit7 */, '7', 55, 'VK_7', empty, empty],\n        [0, 43 /* ScanCode.Digit8 */, 'Digit8', 29 /* KeyCode.Digit8 */, '8', 56, 'VK_8', empty, empty],\n        [0, 44 /* ScanCode.Digit9 */, 'Digit9', 30 /* KeyCode.Digit9 */, '9', 57, 'VK_9', empty, empty],\n        [0, 45 /* ScanCode.Digit0 */, 'Digit0', 21 /* KeyCode.Digit0 */, '0', 48, 'VK_0', empty, empty],\n        [1, 46 /* ScanCode.Enter */, 'Enter', 3 /* KeyCode.Enter */, 'Enter', 13, 'VK_RETURN', empty, empty],\n        [1, 47 /* ScanCode.Escape */, 'Escape', 9 /* KeyCode.Escape */, 'Escape', 27, 'VK_ESCAPE', empty, empty],\n        [1, 48 /* ScanCode.Backspace */, 'Backspace', 1 /* KeyCode.Backspace */, 'Backspace', 8, 'VK_BACK', empty, empty],\n        [1, 49 /* ScanCode.Tab */, 'Tab', 2 /* KeyCode.Tab */, 'Tab', 9, 'VK_TAB', empty, empty],\n        [1, 50 /* ScanCode.Space */, 'Space', 10 /* KeyCode.Space */, 'Space', 32, 'VK_SPACE', empty, empty],\n        [0, 51 /* ScanCode.Minus */, 'Minus', 88 /* KeyCode.Minus */, '-', 189, 'VK_OEM_MINUS', '-', 'OEM_MINUS'],\n        [0, 52 /* ScanCode.Equal */, 'Equal', 86 /* KeyCode.Equal */, '=', 187, 'VK_OEM_PLUS', '=', 'OEM_PLUS'],\n        [0, 53 /* ScanCode.BracketLeft */, 'BracketLeft', 92 /* KeyCode.BracketLeft */, '[', 219, 'VK_OEM_4', '[', 'OEM_4'],\n        [0, 54 /* ScanCode.BracketRight */, 'BracketRight', 94 /* KeyCode.BracketRight */, ']', 221, 'VK_OEM_6', ']', 'OEM_6'],\n        [0, 55 /* ScanCode.Backslash */, 'Backslash', 93 /* KeyCode.Backslash */, '\\\\', 220, 'VK_OEM_5', '\\\\', 'OEM_5'],\n        [0, 56 /* ScanCode.IntlHash */, 'IntlHash', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty], // has been dropped from the w3c spec\n        [0, 57 /* ScanCode.Semicolon */, 'Semicolon', 85 /* KeyCode.Semicolon */, ';', 186, 'VK_OEM_1', ';', 'OEM_1'],\n        [0, 58 /* ScanCode.Quote */, 'Quote', 95 /* KeyCode.Quote */, '\\'', 222, 'VK_OEM_7', '\\'', 'OEM_7'],\n        [0, 59 /* ScanCode.Backquote */, 'Backquote', 91 /* KeyCode.Backquote */, '`', 192, 'VK_OEM_3', '`', 'OEM_3'],\n        [0, 60 /* ScanCode.Comma */, 'Comma', 87 /* KeyCode.Comma */, ',', 188, 'VK_OEM_COMMA', ',', 'OEM_COMMA'],\n        [0, 61 /* ScanCode.Period */, 'Period', 89 /* KeyCode.Period */, '.', 190, 'VK_OEM_PERIOD', '.', 'OEM_PERIOD'],\n        [0, 62 /* ScanCode.Slash */, 'Slash', 90 /* KeyCode.Slash */, '/', 191, 'VK_OEM_2', '/', 'OEM_2'],\n        [1, 63 /* ScanCode.CapsLock */, 'CapsLock', 8 /* KeyCode.CapsLock */, 'CapsLock', 20, 'VK_CAPITAL', empty, empty],\n        [1, 64 /* ScanCode.F1 */, 'F1', 59 /* KeyCode.F1 */, 'F1', 112, 'VK_F1', empty, empty],\n        [1, 65 /* ScanCode.F2 */, 'F2', 60 /* KeyCode.F2 */, 'F2', 113, 'VK_F2', empty, empty],\n        [1, 66 /* ScanCode.F3 */, 'F3', 61 /* KeyCode.F3 */, 'F3', 114, 'VK_F3', empty, empty],\n        [1, 67 /* ScanCode.F4 */, 'F4', 62 /* KeyCode.F4 */, 'F4', 115, 'VK_F4', empty, empty],\n        [1, 68 /* ScanCode.F5 */, 'F5', 63 /* KeyCode.F5 */, 'F5', 116, 'VK_F5', empty, empty],\n        [1, 69 /* ScanCode.F6 */, 'F6', 64 /* KeyCode.F6 */, 'F6', 117, 'VK_F6', empty, empty],\n        [1, 70 /* ScanCode.F7 */, 'F7', 65 /* KeyCode.F7 */, 'F7', 118, 'VK_F7', empty, empty],\n        [1, 71 /* ScanCode.F8 */, 'F8', 66 /* KeyCode.F8 */, 'F8', 119, 'VK_F8', empty, empty],\n        [1, 72 /* ScanCode.F9 */, 'F9', 67 /* KeyCode.F9 */, 'F9', 120, 'VK_F9', empty, empty],\n        [1, 73 /* ScanCode.F10 */, 'F10', 68 /* KeyCode.F10 */, 'F10', 121, 'VK_F10', empty, empty],\n        [1, 74 /* ScanCode.F11 */, 'F11', 69 /* KeyCode.F11 */, 'F11', 122, 'VK_F11', empty, empty],\n        [1, 75 /* ScanCode.F12 */, 'F12', 70 /* KeyCode.F12 */, 'F12', 123, 'VK_F12', empty, empty],\n        [1, 76 /* ScanCode.PrintScreen */, 'PrintScreen', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 77 /* ScanCode.ScrollLock */, 'ScrollLock', 84 /* KeyCode.ScrollLock */, 'ScrollLock', 145, 'VK_SCROLL', empty, empty],\n        [1, 78 /* ScanCode.Pause */, 'Pause', 7 /* KeyCode.PauseBreak */, 'PauseBreak', 19, 'VK_PAUSE', empty, empty],\n        [1, 79 /* ScanCode.Insert */, 'Insert', 19 /* KeyCode.Insert */, 'Insert', 45, 'VK_INSERT', empty, empty],\n        [1, 80 /* ScanCode.Home */, 'Home', 14 /* KeyCode.Home */, 'Home', 36, 'VK_HOME', empty, empty],\n        [1, 81 /* ScanCode.PageUp */, 'PageUp', 11 /* KeyCode.PageUp */, 'PageUp', 33, 'VK_PRIOR', empty, empty],\n        [1, 82 /* ScanCode.Delete */, 'Delete', 20 /* KeyCode.Delete */, 'Delete', 46, 'VK_DELETE', empty, empty],\n        [1, 83 /* ScanCode.End */, 'End', 13 /* KeyCode.End */, 'End', 35, 'VK_END', empty, empty],\n        [1, 84 /* ScanCode.PageDown */, 'PageDown', 12 /* KeyCode.PageDown */, 'PageDown', 34, 'VK_NEXT', empty, empty],\n        [1, 85 /* ScanCode.ArrowRight */, 'ArrowRight', 17 /* KeyCode.RightArrow */, 'RightArrow', 39, 'VK_RIGHT', 'Right', empty],\n        [1, 86 /* ScanCode.ArrowLeft */, 'ArrowLeft', 15 /* KeyCode.LeftArrow */, 'LeftArrow', 37, 'VK_LEFT', 'Left', empty],\n        [1, 87 /* ScanCode.ArrowDown */, 'ArrowDown', 18 /* KeyCode.DownArrow */, 'DownArrow', 40, 'VK_DOWN', 'Down', empty],\n        [1, 88 /* ScanCode.ArrowUp */, 'ArrowUp', 16 /* KeyCode.UpArrow */, 'UpArrow', 38, 'VK_UP', 'Up', empty],\n        [1, 89 /* ScanCode.NumLock */, 'NumLock', 83 /* KeyCode.NumLock */, 'NumLock', 144, 'VK_NUMLOCK', empty, empty],\n        [1, 90 /* ScanCode.NumpadDivide */, 'NumpadDivide', 113 /* KeyCode.NumpadDivide */, 'NumPad_Divide', 111, 'VK_DIVIDE', empty, empty],\n        [1, 91 /* ScanCode.NumpadMultiply */, 'NumpadMultiply', 108 /* KeyCode.NumpadMultiply */, 'NumPad_Multiply', 106, 'VK_MULTIPLY', empty, empty],\n        [1, 92 /* ScanCode.NumpadSubtract */, 'NumpadSubtract', 111 /* KeyCode.NumpadSubtract */, 'NumPad_Subtract', 109, 'VK_SUBTRACT', empty, empty],\n        [1, 93 /* ScanCode.NumpadAdd */, 'NumpadAdd', 109 /* KeyCode.NumpadAdd */, 'NumPad_Add', 107, 'VK_ADD', empty, empty],\n        [1, 94 /* ScanCode.NumpadEnter */, 'NumpadEnter', 3 /* KeyCode.Enter */, empty, 0, empty, empty, empty],\n        [1, 95 /* ScanCode.Numpad1 */, 'Numpad1', 99 /* KeyCode.Numpad1 */, 'NumPad1', 97, 'VK_NUMPAD1', empty, empty],\n        [1, 96 /* ScanCode.Numpad2 */, 'Numpad2', 100 /* KeyCode.Numpad2 */, 'NumPad2', 98, 'VK_NUMPAD2', empty, empty],\n        [1, 97 /* ScanCode.Numpad3 */, 'Numpad3', 101 /* KeyCode.Numpad3 */, 'NumPad3', 99, 'VK_NUMPAD3', empty, empty],\n        [1, 98 /* ScanCode.Numpad4 */, 'Numpad4', 102 /* KeyCode.Numpad4 */, 'NumPad4', 100, 'VK_NUMPAD4', empty, empty],\n        [1, 99 /* ScanCode.Numpad5 */, 'Numpad5', 103 /* KeyCode.Numpad5 */, 'NumPad5', 101, 'VK_NUMPAD5', empty, empty],\n        [1, 100 /* ScanCode.Numpad6 */, 'Numpad6', 104 /* KeyCode.Numpad6 */, 'NumPad6', 102, 'VK_NUMPAD6', empty, empty],\n        [1, 101 /* ScanCode.Numpad7 */, 'Numpad7', 105 /* KeyCode.Numpad7 */, 'NumPad7', 103, 'VK_NUMPAD7', empty, empty],\n        [1, 102 /* ScanCode.Numpad8 */, 'Numpad8', 106 /* KeyCode.Numpad8 */, 'NumPad8', 104, 'VK_NUMPAD8', empty, empty],\n        [1, 103 /* ScanCode.Numpad9 */, 'Numpad9', 107 /* KeyCode.Numpad9 */, 'NumPad9', 105, 'VK_NUMPAD9', empty, empty],\n        [1, 104 /* ScanCode.Numpad0 */, 'Numpad0', 98 /* KeyCode.Numpad0 */, 'NumPad0', 96, 'VK_NUMPAD0', empty, empty],\n        [1, 105 /* ScanCode.NumpadDecimal */, 'NumpadDecimal', 112 /* KeyCode.NumpadDecimal */, 'NumPad_Decimal', 110, 'VK_DECIMAL', empty, empty],\n        [0, 106 /* ScanCode.IntlBackslash */, 'IntlBackslash', 97 /* KeyCode.IntlBackslash */, 'OEM_102', 226, 'VK_OEM_102', empty, empty],\n        [1, 107 /* ScanCode.ContextMenu */, 'ContextMenu', 58 /* KeyCode.ContextMenu */, 'ContextMenu', 93, empty, empty, empty],\n        [1, 108 /* ScanCode.Power */, 'Power', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 109 /* ScanCode.NumpadEqual */, 'NumpadEqual', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 110 /* ScanCode.F13 */, 'F13', 71 /* KeyCode.F13 */, 'F13', 124, 'VK_F13', empty, empty],\n        [1, 111 /* ScanCode.F14 */, 'F14', 72 /* KeyCode.F14 */, 'F14', 125, 'VK_F14', empty, empty],\n        [1, 112 /* ScanCode.F15 */, 'F15', 73 /* KeyCode.F15 */, 'F15', 126, 'VK_F15', empty, empty],\n        [1, 113 /* ScanCode.F16 */, 'F16', 74 /* KeyCode.F16 */, 'F16', 127, 'VK_F16', empty, empty],\n        [1, 114 /* ScanCode.F17 */, 'F17', 75 /* KeyCode.F17 */, 'F17', 128, 'VK_F17', empty, empty],\n        [1, 115 /* ScanCode.F18 */, 'F18', 76 /* KeyCode.F18 */, 'F18', 129, 'VK_F18', empty, empty],\n        [1, 116 /* ScanCode.F19 */, 'F19', 77 /* KeyCode.F19 */, 'F19', 130, 'VK_F19', empty, empty],\n        [1, 117 /* ScanCode.F20 */, 'F20', 78 /* KeyCode.F20 */, 'F20', 131, 'VK_F20', empty, empty],\n        [1, 118 /* ScanCode.F21 */, 'F21', 79 /* KeyCode.F21 */, 'F21', 132, 'VK_F21', empty, empty],\n        [1, 119 /* ScanCode.F22 */, 'F22', 80 /* KeyCode.F22 */, 'F22', 133, 'VK_F22', empty, empty],\n        [1, 120 /* ScanCode.F23 */, 'F23', 81 /* KeyCode.F23 */, 'F23', 134, 'VK_F23', empty, empty],\n        [1, 121 /* ScanCode.F24 */, 'F24', 82 /* KeyCode.F24 */, 'F24', 135, 'VK_F24', empty, empty],\n        [1, 122 /* ScanCode.Open */, 'Open', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 123 /* ScanCode.Help */, 'Help', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 124 /* ScanCode.Select */, 'Select', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 125 /* ScanCode.Again */, 'Again', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 126 /* ScanCode.Undo */, 'Undo', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 127 /* ScanCode.Cut */, 'Cut', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 128 /* ScanCode.Copy */, 'Copy', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 129 /* ScanCode.Paste */, 'Paste', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 130 /* ScanCode.Find */, 'Find', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 131 /* ScanCode.AudioVolumeMute */, 'AudioVolumeMute', 117 /* KeyCode.AudioVolumeMute */, 'AudioVolumeMute', 173, 'VK_VOLUME_MUTE', empty, empty],\n        [1, 132 /* ScanCode.AudioVolumeUp */, 'AudioVolumeUp', 118 /* KeyCode.AudioVolumeUp */, 'AudioVolumeUp', 175, 'VK_VOLUME_UP', empty, empty],\n        [1, 133 /* ScanCode.AudioVolumeDown */, 'AudioVolumeDown', 119 /* KeyCode.AudioVolumeDown */, 'AudioVolumeDown', 174, 'VK_VOLUME_DOWN', empty, empty],\n        [1, 134 /* ScanCode.NumpadComma */, 'NumpadComma', 110 /* KeyCode.NUMPAD_SEPARATOR */, 'NumPad_Separator', 108, 'VK_SEPARATOR', empty, empty],\n        [0, 135 /* ScanCode.IntlRo */, 'IntlRo', 115 /* KeyCode.ABNT_C1 */, 'ABNT_C1', 193, 'VK_ABNT_C1', empty, empty],\n        [1, 136 /* ScanCode.KanaMode */, 'KanaMode', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [0, 137 /* ScanCode.IntlYen */, 'IntlYen', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 138 /* ScanCode.Convert */, 'Convert', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 139 /* ScanCode.NonConvert */, 'NonConvert', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 140 /* ScanCode.Lang1 */, 'Lang1', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 141 /* ScanCode.Lang2 */, 'Lang2', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 142 /* ScanCode.Lang3 */, 'Lang3', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 143 /* ScanCode.Lang4 */, 'Lang4', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 144 /* ScanCode.Lang5 */, 'Lang5', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 145 /* ScanCode.Abort */, 'Abort', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 146 /* ScanCode.Props */, 'Props', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 147 /* ScanCode.NumpadParenLeft */, 'NumpadParenLeft', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 148 /* ScanCode.NumpadParenRight */, 'NumpadParenRight', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 149 /* ScanCode.NumpadBackspace */, 'NumpadBackspace', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 150 /* ScanCode.NumpadMemoryStore */, 'NumpadMemoryStore', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 151 /* ScanCode.NumpadMemoryRecall */, 'NumpadMemoryRecall', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 152 /* ScanCode.NumpadMemoryClear */, 'NumpadMemoryClear', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 153 /* ScanCode.NumpadMemoryAdd */, 'NumpadMemoryAdd', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 154 /* ScanCode.NumpadMemorySubtract */, 'NumpadMemorySubtract', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 155 /* ScanCode.NumpadClear */, 'NumpadClear', 131 /* KeyCode.Clear */, 'Clear', 12, 'VK_CLEAR', empty, empty],\n        [1, 156 /* ScanCode.NumpadClearEntry */, 'NumpadClearEntry', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 5 /* KeyCode.Ctrl */, 'Ctrl', 17, 'VK_CONTROL', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 4 /* KeyCode.Shift */, 'Shift', 16, 'VK_SHIFT', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 6 /* KeyCode.Alt */, 'Alt', 18, 'VK_MENU', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 57 /* KeyCode.Meta */, 'Meta', 91, 'VK_COMMAND', empty, empty],\n        [1, 157 /* ScanCode.ControlLeft */, 'ControlLeft', 5 /* KeyCode.Ctrl */, empty, 0, 'VK_LCONTROL', empty, empty],\n        [1, 158 /* ScanCode.ShiftLeft */, 'ShiftLeft', 4 /* KeyCode.Shift */, empty, 0, 'VK_LSHIFT', empty, empty],\n        [1, 159 /* ScanCode.AltLeft */, 'AltLeft', 6 /* KeyCode.Alt */, empty, 0, 'VK_LMENU', empty, empty],\n        [1, 160 /* ScanCode.MetaLeft */, 'MetaLeft', 57 /* KeyCode.Meta */, empty, 0, 'VK_LWIN', empty, empty],\n        [1, 161 /* ScanCode.ControlRight */, 'ControlRight', 5 /* KeyCode.Ctrl */, empty, 0, 'VK_RCONTROL', empty, empty],\n        [1, 162 /* ScanCode.ShiftRight */, 'ShiftRight', 4 /* KeyCode.Shift */, empty, 0, 'VK_RSHIFT', empty, empty],\n        [1, 163 /* ScanCode.AltRight */, 'AltRight', 6 /* KeyCode.Alt */, empty, 0, 'VK_RMENU', empty, empty],\n        [1, 164 /* ScanCode.MetaRight */, 'MetaRight', 57 /* KeyCode.Meta */, empty, 0, 'VK_RWIN', empty, empty],\n        [1, 165 /* ScanCode.BrightnessUp */, 'BrightnessUp', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 166 /* ScanCode.BrightnessDown */, 'BrightnessDown', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 167 /* ScanCode.MediaPlay */, 'MediaPlay', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 168 /* ScanCode.MediaRecord */, 'MediaRecord', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 169 /* ScanCode.MediaFastForward */, 'MediaFastForward', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 170 /* ScanCode.MediaRewind */, 'MediaRewind', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 171 /* ScanCode.MediaTrackNext */, 'MediaTrackNext', 124 /* KeyCode.MediaTrackNext */, 'MediaTrackNext', 176, 'VK_MEDIA_NEXT_TRACK', empty, empty],\n        [1, 172 /* ScanCode.MediaTrackPrevious */, 'MediaTrackPrevious', 125 /* KeyCode.MediaTrackPrevious */, 'MediaTrackPrevious', 177, 'VK_MEDIA_PREV_TRACK', empty, empty],\n        [1, 173 /* ScanCode.MediaStop */, 'MediaStop', 126 /* KeyCode.MediaStop */, 'MediaStop', 178, 'VK_MEDIA_STOP', empty, empty],\n        [1, 174 /* ScanCode.Eject */, 'Eject', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 175 /* ScanCode.MediaPlayPause */, 'MediaPlayPause', 127 /* KeyCode.MediaPlayPause */, 'MediaPlayPause', 179, 'VK_MEDIA_PLAY_PAUSE', empty, empty],\n        [1, 176 /* ScanCode.MediaSelect */, 'MediaSelect', 128 /* KeyCode.LaunchMediaPlayer */, 'LaunchMediaPlayer', 181, 'VK_MEDIA_LAUNCH_MEDIA_SELECT', empty, empty],\n        [1, 177 /* ScanCode.LaunchMail */, 'LaunchMail', 129 /* KeyCode.LaunchMail */, 'LaunchMail', 180, 'VK_MEDIA_LAUNCH_MAIL', empty, empty],\n        [1, 178 /* ScanCode.LaunchApp2 */, 'LaunchApp2', 130 /* KeyCode.LaunchApp2 */, 'LaunchApp2', 183, 'VK_MEDIA_LAUNCH_APP2', empty, empty],\n        [1, 179 /* ScanCode.LaunchApp1 */, 'LaunchApp1', 0 /* KeyCode.Unknown */, empty, 0, 'VK_MEDIA_LAUNCH_APP1', empty, empty],\n        [1, 180 /* ScanCode.SelectTask */, 'SelectTask', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 181 /* ScanCode.LaunchScreenSaver */, 'LaunchScreenSaver', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 182 /* ScanCode.BrowserSearch */, 'BrowserSearch', 120 /* KeyCode.BrowserSearch */, 'BrowserSearch', 170, 'VK_BROWSER_SEARCH', empty, empty],\n        [1, 183 /* ScanCode.BrowserHome */, 'BrowserHome', 121 /* KeyCode.BrowserHome */, 'BrowserHome', 172, 'VK_BROWSER_HOME', empty, empty],\n        [1, 184 /* ScanCode.BrowserBack */, 'BrowserBack', 122 /* KeyCode.BrowserBack */, 'BrowserBack', 166, 'VK_BROWSER_BACK', empty, empty],\n        [1, 185 /* ScanCode.BrowserForward */, 'BrowserForward', 123 /* KeyCode.BrowserForward */, 'BrowserForward', 167, 'VK_BROWSER_FORWARD', empty, empty],\n        [1, 186 /* ScanCode.BrowserStop */, 'BrowserStop', 0 /* KeyCode.Unknown */, empty, 0, 'VK_BROWSER_STOP', empty, empty],\n        [1, 187 /* ScanCode.BrowserRefresh */, 'BrowserRefresh', 0 /* KeyCode.Unknown */, empty, 0, 'VK_BROWSER_REFRESH', empty, empty],\n        [1, 188 /* ScanCode.BrowserFavorites */, 'BrowserFavorites', 0 /* KeyCode.Unknown */, empty, 0, 'VK_BROWSER_FAVORITES', empty, empty],\n        [1, 189 /* ScanCode.ZoomToggle */, 'ZoomToggle', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 190 /* ScanCode.MailReply */, 'MailReply', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 191 /* ScanCode.MailForward */, 'MailForward', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        [1, 192 /* ScanCode.MailSend */, 'MailSend', 0 /* KeyCode.Unknown */, empty, 0, empty, empty, empty],\n        // See https://lists.w3.org/Archives/Public/www-dom/2010JulSep/att-0182/keyCode-spec.html\n        // If an Input Method Editor is processing key input and the event is keydown, return 229.\n        [1, 0 /* ScanCode.None */, empty, 114 /* KeyCode.KEY_IN_COMPOSITION */, 'KeyInComposition', 229, empty, empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 116 /* KeyCode.ABNT_C2 */, 'ABNT_C2', 194, 'VK_ABNT_C2', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 96 /* KeyCode.OEM_8 */, 'OEM_8', 223, 'VK_OEM_8', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_KANA', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_HANGUL', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_JUNJA', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_FINAL', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_HANJA', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_KANJI', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_CONVERT', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_NONCONVERT', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_ACCEPT', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_MODECHANGE', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_SELECT', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_PRINT', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_EXECUTE', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_SNAPSHOT', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_HELP', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_APPS', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_PROCESSKEY', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_PACKET', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_DBE_SBCSCHAR', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_DBE_DBCSCHAR', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_ATTN', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_CRSEL', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_EXSEL', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_EREOF', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_PLAY', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_ZOOM', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_NONAME', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_PA1', empty, empty],\n        [1, 0 /* ScanCode.None */, empty, 0 /* KeyCode.Unknown */, empty, 0, 'VK_OEM_CLEAR', empty, empty],\n    ];\n    const seenKeyCode = [];\n    const seenScanCode = [];\n    for (const mapping of mappings) {\n        const [immutable, scanCode, scanCodeStr, keyCode, keyCodeStr, eventKeyCode, vkey, usUserSettingsLabel, generalUserSettingsLabel] = mapping;\n        if (!seenScanCode[scanCode]) {\n            seenScanCode[scanCode] = true;\n            scanCodeIntToStr[scanCode] = scanCodeStr;\n            scanCodeStrToInt[scanCodeStr] = scanCode;\n            scanCodeLowerCaseStrToInt[scanCodeStr.toLowerCase()] = scanCode;\n            if (immutable) {\n                IMMUTABLE_CODE_TO_KEY_CODE[scanCode] = keyCode;\n                if ((keyCode !== 0 /* KeyCode.Unknown */)\n                    && (keyCode !== 3 /* KeyCode.Enter */)\n                    && (keyCode !== 5 /* KeyCode.Ctrl */)\n                    && (keyCode !== 4 /* KeyCode.Shift */)\n                    && (keyCode !== 6 /* KeyCode.Alt */)\n                    && (keyCode !== 57 /* KeyCode.Meta */)) {\n                    IMMUTABLE_KEY_CODE_TO_CODE[keyCode] = scanCode;\n                }\n            }\n        }\n        if (!seenKeyCode[keyCode]) {\n            seenKeyCode[keyCode] = true;\n            if (!keyCodeStr) {\n                throw new Error(`String representation missing for key code ${keyCode} around scan code ${scanCodeStr}`);\n            }\n            uiMap.define(keyCode, keyCodeStr);\n            userSettingsUSMap.define(keyCode, usUserSettingsLabel || keyCodeStr);\n            userSettingsGeneralMap.define(keyCode, generalUserSettingsLabel || usUserSettingsLabel || keyCodeStr);\n        }\n        if (eventKeyCode) {\n            EVENT_KEY_CODE_MAP[eventKeyCode] = keyCode;\n        }\n        if (vkey) {\n            NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE[vkey] = keyCode;\n        }\n    }\n    // Manually added due to the exclusion above (due to duplication with NumpadEnter)\n    IMMUTABLE_KEY_CODE_TO_CODE[3 /* KeyCode.Enter */] = 46 /* ScanCode.Enter */;\n})();\nvar KeyCodeUtils;\n(function (KeyCodeUtils) {\n    function toString(keyCode) {\n        return uiMap.keyCodeToStr(keyCode);\n    }\n    KeyCodeUtils.toString = toString;\n    function fromString(key) {\n        return uiMap.strToKeyCode(key);\n    }\n    KeyCodeUtils.fromString = fromString;\n    function toUserSettingsUS(keyCode) {\n        return userSettingsUSMap.keyCodeToStr(keyCode);\n    }\n    KeyCodeUtils.toUserSettingsUS = toUserSettingsUS;\n    function toUserSettingsGeneral(keyCode) {\n        return userSettingsGeneralMap.keyCodeToStr(keyCode);\n    }\n    KeyCodeUtils.toUserSettingsGeneral = toUserSettingsGeneral;\n    function fromUserSettings(key) {\n        return userSettingsUSMap.strToKeyCode(key) || userSettingsGeneralMap.strToKeyCode(key);\n    }\n    KeyCodeUtils.fromUserSettings = fromUserSettings;\n    function toElectronAccelerator(keyCode) {\n        if (keyCode >= 98 /* KeyCode.Numpad0 */ && keyCode <= 113 /* KeyCode.NumpadDivide */) {\n            // [Electron Accelerators] Electron is able to parse numpad keys, but unfortunately it\n            // renders them just as regular keys in menus. For example, num0 is rendered as \"0\",\n            // numdiv is rendered as \"/\", numsub is rendered as \"-\".\n            //\n            // This can lead to incredible confusion, as it makes numpad based keybindings indistinguishable\n            // from keybindings based on regular keys.\n            //\n            // We therefore need to fall back to custom rendering for numpad keys.\n            return null;\n        }\n        switch (keyCode) {\n            case 16 /* KeyCode.UpArrow */:\n                return 'Up';\n            case 18 /* KeyCode.DownArrow */:\n                return 'Down';\n            case 15 /* KeyCode.LeftArrow */:\n                return 'Left';\n            case 17 /* KeyCode.RightArrow */:\n                return 'Right';\n        }\n        return uiMap.keyCodeToStr(keyCode);\n    }\n    KeyCodeUtils.toElectronAccelerator = toElectronAccelerator;\n})(KeyCodeUtils || (KeyCodeUtils = {}));\nfunction KeyChord(firstPart, secondPart) {\n    const chordPart = ((secondPart & 0x0000FFFF) << 16) >>> 0;\n    return (firstPart | chordPart) >>> 0;\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/keyCodes.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/lazy.js":
/*!***************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/lazy.js ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Lazy: () => (/* binding */ Lazy)\n/* harmony export */ });\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nclass Lazy {\n    constructor(executor) {\n        this.executor = executor;\n        this._didRun = false;\n    }\n    /**\n     * Get the wrapped value.\n     *\n     * This will force evaluation of the lazy value if it has not been resolved yet. Lazy values are only\n     * resolved once. `getValue` will re-throw exceptions that are hit while resolving the value\n     */\n    get value() {\n        if (!this._didRun) {\n            try {\n                this._value = this.executor();\n            }\n            catch (err) {\n                this._error = err;\n            }\n            finally {\n                this._didRun = true;\n            }\n        }\n        if (this._error) {\n            throw this._error;\n        }\n        return this._value;\n    }\n    /**\n     * Get the wrapped value without forcing evaluation.\n     */\n    get rawValue() { return this._value; }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/lazy.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js":
/*!********************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Disposable: () => (/* binding */ Disposable),\n/* harmony export */   DisposableMap: () => (/* binding */ DisposableMap),\n/* harmony export */   DisposableStore: () => (/* binding */ DisposableStore),\n/* harmony export */   ImmortalReference: () => (/* binding */ ImmortalReference),\n/* harmony export */   MutableDisposable: () => (/* binding */ MutableDisposable),\n/* harmony export */   RefCountedDisposable: () => (/* binding */ RefCountedDisposable),\n/* harmony export */   combinedDisposable: () => (/* binding */ combinedDisposable),\n/* harmony export */   dispose: () => (/* binding */ dispose),\n/* harmony export */   isDisposable: () => (/* binding */ isDisposable),\n/* harmony export */   markAsDisposed: () => (/* binding */ markAsDisposed),\n/* harmony export */   markAsSingleton: () => (/* binding */ markAsSingleton),\n/* harmony export */   setDisposableTracker: () => (/* binding */ setDisposableTracker),\n/* harmony export */   toDisposable: () => (/* binding */ toDisposable),\n/* harmony export */   trackDisposable: () => (/* binding */ trackDisposable)\n/* harmony export */ });\n/* harmony import */ var _functional_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./functional.js */ \"./node_modules/monaco-editor/esm/vs/base/common/functional.js\");\n/* harmony import */ var _iterator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterator.js */ \"./node_modules/monaco-editor/esm/vs/base/common/iterator.js\");\n\n\n// #region Disposable Tracking\n/**\n * Enables logging of potentially leaked disposables.\n *\n * A disposable is considered leaked if it is not disposed or not registered as the child of\n * another disposable. This tracking is very simple an only works for classes that either\n * extend Disposable or use a DisposableStore. This means there are a lot of false positives.\n */\nconst TRACK_DISPOSABLES = false;\nlet disposableTracker = null;\nfunction setDisposableTracker(tracker) {\n    disposableTracker = tracker;\n}\nif (TRACK_DISPOSABLES) {\n    const __is_disposable_tracked__ = '__is_disposable_tracked__';\n    setDisposableTracker(new class {\n        trackDisposable(x) {\n            const stack = new Error('Potentially leaked disposable').stack;\n            setTimeout(() => {\n                if (!x[__is_disposable_tracked__]) {\n                    console.log(stack);\n                }\n            }, 3000);\n        }\n        setParent(child, parent) {\n            if (child && child !== Disposable.None) {\n                try {\n                    child[__is_disposable_tracked__] = true;\n                }\n                catch (_a) {\n                    // noop\n                }\n            }\n        }\n        markAsDisposed(disposable) {\n            if (disposable && disposable !== Disposable.None) {\n                try {\n                    disposable[__is_disposable_tracked__] = true;\n                }\n                catch (_a) {\n                    // noop\n                }\n            }\n        }\n        markAsSingleton(disposable) { }\n    });\n}\nfunction trackDisposable(x) {\n    disposableTracker === null || disposableTracker === void 0 ? void 0 : disposableTracker.trackDisposable(x);\n    return x;\n}\nfunction markAsDisposed(disposable) {\n    disposableTracker === null || disposableTracker === void 0 ? void 0 : disposableTracker.markAsDisposed(disposable);\n}\nfunction setParentOfDisposable(child, parent) {\n    disposableTracker === null || disposableTracker === void 0 ? void 0 : disposableTracker.setParent(child, parent);\n}\nfunction setParentOfDisposables(children, parent) {\n    if (!disposableTracker) {\n        return;\n    }\n    for (const child of children) {\n        disposableTracker.setParent(child, parent);\n    }\n}\n/**\n * Indicates that the given object is a singleton which does not need to be disposed.\n*/\nfunction markAsSingleton(singleton) {\n    disposableTracker === null || disposableTracker === void 0 ? void 0 : disposableTracker.markAsSingleton(singleton);\n    return singleton;\n}\n/**\n * Check if `thing` is {@link IDisposable disposable}.\n */\nfunction isDisposable(thing) {\n    return typeof thing.dispose === 'function' && thing.dispose.length === 0;\n}\nfunction dispose(arg) {\n    if (_iterator_js__WEBPACK_IMPORTED_MODULE_1__.Iterable.is(arg)) {\n        const errors = [];\n        for (const d of arg) {\n            if (d) {\n                try {\n                    d.dispose();\n                }\n                catch (e) {\n                    errors.push(e);\n                }\n            }\n        }\n        if (errors.length === 1) {\n            throw errors[0];\n        }\n        else if (errors.length > 1) {\n            throw new AggregateError(errors, 'Encountered errors while disposing of store');\n        }\n        return Array.isArray(arg) ? [] : arg;\n    }\n    else if (arg) {\n        arg.dispose();\n        return arg;\n    }\n}\n/**\n * Combine multiple disposable values into a single {@link IDisposable}.\n */\nfunction combinedDisposable(...disposables) {\n    const parent = toDisposable(() => dispose(disposables));\n    setParentOfDisposables(disposables, parent);\n    return parent;\n}\n/**\n * Turn a function that implements dispose into an {@link IDisposable}.\n *\n * @param fn Clean up function, guaranteed to be called only **once**.\n */\nfunction toDisposable(fn) {\n    const self = trackDisposable({\n        dispose: (0,_functional_js__WEBPACK_IMPORTED_MODULE_0__.createSingleCallFunction)(() => {\n            markAsDisposed(self);\n            fn();\n        })\n    });\n    return self;\n}\n/**\n * Manages a collection of disposable values.\n *\n * This is the preferred way to manage multiple disposables. A `DisposableStore` is safer to work with than an\n * `IDisposable[]` as it considers edge cases, such as registering the same value multiple times or adding an item to a\n * store that has already been disposed of.\n */\nclass DisposableStore {\n    constructor() {\n        this._toDispose = new Set();\n        this._isDisposed = false;\n        trackDisposable(this);\n    }\n    /**\n     * Dispose of all registered disposables and mark this object as disposed.\n     *\n     * Any future disposables added to this object will be disposed of on `add`.\n     */\n    dispose() {\n        if (this._isDisposed) {\n            return;\n        }\n        markAsDisposed(this);\n        this._isDisposed = true;\n        this.clear();\n    }\n    /**\n     * @return `true` if this object has been disposed of.\n     */\n    get isDisposed() {\n        return this._isDisposed;\n    }\n    /**\n     * Dispose of all registered disposables but do not mark this object as disposed.\n     */\n    clear() {\n        if (this._toDispose.size === 0) {\n            return;\n        }\n        try {\n            dispose(this._toDispose);\n        }\n        finally {\n            this._toDispose.clear();\n        }\n    }\n    /**\n     * Add a new {@link IDisposable disposable} to the collection.\n     */\n    add(o) {\n        if (!o) {\n            return o;\n        }\n        if (o === this) {\n            throw new Error('Cannot register a disposable on itself!');\n        }\n        setParentOfDisposable(o, this);\n        if (this._isDisposed) {\n            if (!DisposableStore.DISABLE_DISPOSED_WARNING) {\n                console.warn(new Error('Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!').stack);\n            }\n        }\n        else {\n            this._toDispose.add(o);\n        }\n        return o;\n    }\n    /**\n     * Deletes the value from the store, but does not dispose it.\n     */\n    deleteAndLeak(o) {\n        if (!o) {\n            return;\n        }\n        if (this._toDispose.has(o)) {\n            this._toDispose.delete(o);\n            setParentOfDisposable(o, null);\n        }\n    }\n}\nDisposableStore.DISABLE_DISPOSED_WARNING = false;\n/**\n * Abstract base class for a {@link IDisposable disposable} object.\n *\n * Subclasses can {@linkcode _register} disposables that will be automatically cleaned up when this object is disposed of.\n */\nclass Disposable {\n    constructor() {\n        this._store = new DisposableStore();\n        trackDisposable(this);\n        setParentOfDisposable(this._store, this);\n    }\n    dispose() {\n        markAsDisposed(this);\n        this._store.dispose();\n    }\n    /**\n     * Adds `o` to the collection of disposables managed by this object.\n     */\n    _register(o) {\n        if (o === this) {\n            throw new Error('Cannot register a disposable on itself!');\n        }\n        return this._store.add(o);\n    }\n}\n/**\n * A disposable that does nothing when it is disposed of.\n *\n * TODO: This should not be a static property.\n */\nDisposable.None = Object.freeze({ dispose() { } });\n/**\n * Manages the lifecycle of a disposable value that may be changed.\n *\n * This ensures that when the disposable value is changed, the previously held disposable is disposed of. You can\n * also register a `MutableDisposable` on a `Disposable` to ensure it is automatically cleaned up.\n */\nclass MutableDisposable {\n    constructor() {\n        this._isDisposed = false;\n        trackDisposable(this);\n    }\n    get value() {\n        return this._isDisposed ? undefined : this._value;\n    }\n    set value(value) {\n        var _a;\n        if (this._isDisposed || value === this._value) {\n            return;\n        }\n        (_a = this._value) === null || _a === void 0 ? void 0 : _a.dispose();\n        if (value) {\n            setParentOfDisposable(value, this);\n        }\n        this._value = value;\n    }\n    /**\n     * Resets the stored value and disposed of the previously stored value.\n     */\n    clear() {\n        this.value = undefined;\n    }\n    dispose() {\n        var _a;\n        this._isDisposed = true;\n        markAsDisposed(this);\n        (_a = this._value) === null || _a === void 0 ? void 0 : _a.dispose();\n        this._value = undefined;\n    }\n}\nclass RefCountedDisposable {\n    constructor(_disposable) {\n        this._disposable = _disposable;\n        this._counter = 1;\n    }\n    acquire() {\n        this._counter++;\n        return this;\n    }\n    release() {\n        if (--this._counter === 0) {\n            this._disposable.dispose();\n        }\n        return this;\n    }\n}\nclass ImmortalReference {\n    constructor(object) {\n        this.object = object;\n    }\n    dispose() { }\n}\n/**\n * A map the manages the lifecycle of the values that it stores.\n */\nclass DisposableMap {\n    constructor() {\n        this._store = new Map();\n        this._isDisposed = false;\n        trackDisposable(this);\n    }\n    /**\n     * Disposes of all stored values and mark this object as disposed.\n     *\n     * Trying to use this object after it has been disposed of is an error.\n     */\n    dispose() {\n        markAsDisposed(this);\n        this._isDisposed = true;\n        this.clearAndDisposeAll();\n    }\n    /**\n     * Disposes of all stored values and clear the map, but DO NOT mark this object as disposed.\n     */\n    clearAndDisposeAll() {\n        if (!this._store.size) {\n            return;\n        }\n        try {\n            dispose(this._store.values());\n        }\n        finally {\n            this._store.clear();\n        }\n    }\n    get(key) {\n        return this._store.get(key);\n    }\n    set(key, value, skipDisposeOnOverwrite = false) {\n        var _a;\n        if (this._isDisposed) {\n            console.warn(new Error('Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!').stack);\n        }\n        if (!skipDisposeOnOverwrite) {\n            (_a = this._store.get(key)) === null || _a === void 0 ? void 0 : _a.dispose();\n        }\n        this._store.set(key, value);\n    }\n    /**\n     * Delete the value stored for `key` from this map and also dispose of it.\n     */\n    deleteAndDispose(key) {\n        var _a;\n        (_a = this._store.get(key)) === null || _a === void 0 ? void 0 : _a.dispose();\n        this._store.delete(key);\n    }\n    [Symbol.iterator]() {\n        return this._store[Symbol.iterator]();\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/linkedList.js":
/*!*********************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/linkedList.js ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LinkedList: () => (/* binding */ LinkedList)\n/* harmony export */ });\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nclass Node {\n    constructor(element) {\n        this.element = element;\n        this.next = Node.Undefined;\n        this.prev = Node.Undefined;\n    }\n}\nNode.Undefined = new Node(undefined);\nclass LinkedList {\n    constructor() {\n        this._first = Node.Undefined;\n        this._last = Node.Undefined;\n        this._size = 0;\n    }\n    get size() {\n        return this._size;\n    }\n    isEmpty() {\n        return this._first === Node.Undefined;\n    }\n    clear() {\n        let node = this._first;\n        while (node !== Node.Undefined) {\n            const next = node.next;\n            node.prev = Node.Undefined;\n            node.next = Node.Undefined;\n            node = next;\n        }\n        this._first = Node.Undefined;\n        this._last = Node.Undefined;\n        this._size = 0;\n    }\n    unshift(element) {\n        return this._insert(element, false);\n    }\n    push(element) {\n        return this._insert(element, true);\n    }\n    _insert(element, atTheEnd) {\n        const newNode = new Node(element);\n        if (this._first === Node.Undefined) {\n            this._first = newNode;\n            this._last = newNode;\n        }\n        else if (atTheEnd) {\n            // push\n            const oldLast = this._last;\n            this._last = newNode;\n            newNode.prev = oldLast;\n            oldLast.next = newNode;\n        }\n        else {\n            // unshift\n            const oldFirst = this._first;\n            this._first = newNode;\n            newNode.next = oldFirst;\n            oldFirst.prev = newNode;\n        }\n        this._size += 1;\n        let didRemove = false;\n        return () => {\n            if (!didRemove) {\n                didRemove = true;\n                this._remove(newNode);\n            }\n        };\n    }\n    shift() {\n        if (this._first === Node.Undefined) {\n            return undefined;\n        }\n        else {\n            const res = this._first.element;\n            this._remove(this._first);\n            return res;\n        }\n    }\n    pop() {\n        if (this._last === Node.Undefined) {\n            return undefined;\n        }\n        else {\n            const res = this._last.element;\n            this._remove(this._last);\n            return res;\n        }\n    }\n    _remove(node) {\n        if (node.prev !== Node.Undefined && node.next !== Node.Undefined) {\n            // middle\n            const anchor = node.prev;\n            anchor.next = node.next;\n            node.next.prev = anchor;\n        }\n        else if (node.prev === Node.Undefined && node.next === Node.Undefined) {\n            // only node\n            this._first = Node.Undefined;\n            this._last = Node.Undefined;\n        }\n        else if (node.next === Node.Undefined) {\n            // last\n            this._last = this._last.prev;\n            this._last.next = Node.Undefined;\n        }\n        else if (node.prev === Node.Undefined) {\n            // first\n            this._first = this._first.next;\n            this._first.prev = Node.Undefined;\n        }\n        // done\n        this._size -= 1;\n    }\n    *[Symbol.iterator]() {\n        let node = this._first;\n        while (node !== Node.Undefined) {\n            yield node.element;\n            node = node.next;\n        }\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/linkedList.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/map.js":
/*!**************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/map.js ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BidirectionalMap: () => (/* binding */ BidirectionalMap),\n/* harmony export */   LRUCache: () => (/* binding */ LRUCache),\n/* harmony export */   LinkedMap: () => (/* binding */ LinkedMap),\n/* harmony export */   ResourceMap: () => (/* binding */ ResourceMap),\n/* harmony export */   SetMap: () => (/* binding */ SetMap)\n/* harmony export */ });\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nvar _a, _b;\nclass ResourceMapEntry {\n    constructor(uri, value) {\n        this.uri = uri;\n        this.value = value;\n    }\n}\nfunction isEntries(arg) {\n    return Array.isArray(arg);\n}\nclass ResourceMap {\n    constructor(arg, toKey) {\n        this[_a] = 'ResourceMap';\n        if (arg instanceof ResourceMap) {\n            this.map = new Map(arg.map);\n            this.toKey = toKey !== null && toKey !== void 0 ? toKey : ResourceMap.defaultToKey;\n        }\n        else if (isEntries(arg)) {\n            this.map = new Map();\n            this.toKey = toKey !== null && toKey !== void 0 ? toKey : ResourceMap.defaultToKey;\n            for (const [resource, value] of arg) {\n                this.set(resource, value);\n            }\n        }\n        else {\n            this.map = new Map();\n            this.toKey = arg !== null && arg !== void 0 ? arg : ResourceMap.defaultToKey;\n        }\n    }\n    set(resource, value) {\n        this.map.set(this.toKey(resource), new ResourceMapEntry(resource, value));\n        return this;\n    }\n    get(resource) {\n        var _c;\n        return (_c = this.map.get(this.toKey(resource))) === null || _c === void 0 ? void 0 : _c.value;\n    }\n    has(resource) {\n        return this.map.has(this.toKey(resource));\n    }\n    get size() {\n        return this.map.size;\n    }\n    clear() {\n        this.map.clear();\n    }\n    delete(resource) {\n        return this.map.delete(this.toKey(resource));\n    }\n    forEach(clb, thisArg) {\n        if (typeof thisArg !== 'undefined') {\n            clb = clb.bind(thisArg);\n        }\n        for (const [_, entry] of this.map) {\n            clb(entry.value, entry.uri, this);\n        }\n    }\n    *values() {\n        for (const entry of this.map.values()) {\n            yield entry.value;\n        }\n    }\n    *keys() {\n        for (const entry of this.map.values()) {\n            yield entry.uri;\n        }\n    }\n    *entries() {\n        for (const entry of this.map.values()) {\n            yield [entry.uri, entry.value];\n        }\n    }\n    *[(_a = Symbol.toStringTag, Symbol.iterator)]() {\n        for (const [, entry] of this.map) {\n            yield [entry.uri, entry.value];\n        }\n    }\n}\nResourceMap.defaultToKey = (resource) => resource.toString();\nclass LinkedMap {\n    constructor() {\n        this[_b] = 'LinkedMap';\n        this._map = new Map();\n        this._head = undefined;\n        this._tail = undefined;\n        this._size = 0;\n        this._state = 0;\n    }\n    clear() {\n        this._map.clear();\n        this._head = undefined;\n        this._tail = undefined;\n        this._size = 0;\n        this._state++;\n    }\n    isEmpty() {\n        return !this._head && !this._tail;\n    }\n    get size() {\n        return this._size;\n    }\n    get first() {\n        var _c;\n        return (_c = this._head) === null || _c === void 0 ? void 0 : _c.value;\n    }\n    get last() {\n        var _c;\n        return (_c = this._tail) === null || _c === void 0 ? void 0 : _c.value;\n    }\n    has(key) {\n        return this._map.has(key);\n    }\n    get(key, touch = 0 /* Touch.None */) {\n        const item = this._map.get(key);\n        if (!item) {\n            return undefined;\n        }\n        if (touch !== 0 /* Touch.None */) {\n            this.touch(item, touch);\n        }\n        return item.value;\n    }\n    set(key, value, touch = 0 /* Touch.None */) {\n        let item = this._map.get(key);\n        if (item) {\n            item.value = value;\n            if (touch !== 0 /* Touch.None */) {\n                this.touch(item, touch);\n            }\n        }\n        else {\n            item = { key, value, next: undefined, previous: undefined };\n            switch (touch) {\n                case 0 /* Touch.None */:\n                    this.addItemLast(item);\n                    break;\n                case 1 /* Touch.AsOld */:\n                    this.addItemFirst(item);\n                    break;\n                case 2 /* Touch.AsNew */:\n                    this.addItemLast(item);\n                    break;\n                default:\n                    this.addItemLast(item);\n                    break;\n            }\n            this._map.set(key, item);\n            this._size++;\n        }\n        return this;\n    }\n    delete(key) {\n        return !!this.remove(key);\n    }\n    remove(key) {\n        const item = this._map.get(key);\n        if (!item) {\n            return undefined;\n        }\n        this._map.delete(key);\n        this.removeItem(item);\n        this._size--;\n        return item.value;\n    }\n    shift() {\n        if (!this._head && !this._tail) {\n            return undefined;\n        }\n        if (!this._head || !this._tail) {\n            throw new Error('Invalid list');\n        }\n        const item = this._head;\n        this._map.delete(item.key);\n        this.removeItem(item);\n        this._size--;\n        return item.value;\n    }\n    forEach(callbackfn, thisArg) {\n        const state = this._state;\n        let current = this._head;\n        while (current) {\n            if (thisArg) {\n                callbackfn.bind(thisArg)(current.value, current.key, this);\n            }\n            else {\n                callbackfn(current.value, current.key, this);\n            }\n            if (this._state !== state) {\n                throw new Error(`LinkedMap got modified during iteration.`);\n            }\n            current = current.next;\n        }\n    }\n    keys() {\n        const map = this;\n        const state = this._state;\n        let current = this._head;\n        const iterator = {\n            [Symbol.iterator]() {\n                return iterator;\n            },\n            next() {\n                if (map._state !== state) {\n                    throw new Error(`LinkedMap got modified during iteration.`);\n                }\n                if (current) {\n                    const result = { value: current.key, done: false };\n                    current = current.next;\n                    return result;\n                }\n                else {\n                    return { value: undefined, done: true };\n                }\n            }\n        };\n        return iterator;\n    }\n    values() {\n        const map = this;\n        const state = this._state;\n        let current = this._head;\n        const iterator = {\n            [Symbol.iterator]() {\n                return iterator;\n            },\n            next() {\n                if (map._state !== state) {\n                    throw new Error(`LinkedMap got modified during iteration.`);\n                }\n                if (current) {\n                    const result = { value: current.value, done: false };\n                    current = current.next;\n                    return result;\n                }\n                else {\n                    return { value: undefined, done: true };\n                }\n            }\n        };\n        return iterator;\n    }\n    entries() {\n        const map = this;\n        const state = this._state;\n        let current = this._head;\n        const iterator = {\n            [Symbol.iterator]() {\n                return iterator;\n            },\n            next() {\n                if (map._state !== state) {\n                    throw new Error(`LinkedMap got modified during iteration.`);\n                }\n                if (current) {\n                    const result = { value: [current.key, current.value], done: false };\n                    current = current.next;\n                    return result;\n                }\n                else {\n                    return { value: undefined, done: true };\n                }\n            }\n        };\n        return iterator;\n    }\n    [(_b = Symbol.toStringTag, Symbol.iterator)]() {\n        return this.entries();\n    }\n    trimOld(newSize) {\n        if (newSize >= this.size) {\n            return;\n        }\n        if (newSize === 0) {\n            this.clear();\n            return;\n        }\n        let current = this._head;\n        let currentSize = this.size;\n        while (current && currentSize > newSize) {\n            this._map.delete(current.key);\n            current = current.next;\n            currentSize--;\n        }\n        this._head = current;\n        this._size = currentSize;\n        if (current) {\n            current.previous = undefined;\n        }\n        this._state++;\n    }\n    addItemFirst(item) {\n        // First time Insert\n        if (!this._head && !this._tail) {\n            this._tail = item;\n        }\n        else if (!this._head) {\n            throw new Error('Invalid list');\n        }\n        else {\n            item.next = this._head;\n            this._head.previous = item;\n        }\n        this._head = item;\n        this._state++;\n    }\n    addItemLast(item) {\n        // First time Insert\n        if (!this._head && !this._tail) {\n            this._head = item;\n        }\n        else if (!this._tail) {\n            throw new Error('Invalid list');\n        }\n        else {\n            item.previous = this._tail;\n            this._tail.next = item;\n        }\n        this._tail = item;\n        this._state++;\n    }\n    removeItem(item) {\n        if (item === this._head && item === this._tail) {\n            this._head = undefined;\n            this._tail = undefined;\n        }\n        else if (item === this._head) {\n            // This can only happen if size === 1 which is handled\n            // by the case above.\n            if (!item.next) {\n                throw new Error('Invalid list');\n            }\n            item.next.previous = undefined;\n            this._head = item.next;\n        }\n        else if (item === this._tail) {\n            // This can only happen if size === 1 which is handled\n            // by the case above.\n            if (!item.previous) {\n                throw new Error('Invalid list');\n            }\n            item.previous.next = undefined;\n            this._tail = item.previous;\n        }\n        else {\n            const next = item.next;\n            const previous = item.previous;\n            if (!next || !previous) {\n                throw new Error('Invalid list');\n            }\n            next.previous = previous;\n            previous.next = next;\n        }\n        item.next = undefined;\n        item.previous = undefined;\n        this._state++;\n    }\n    touch(item, touch) {\n        if (!this._head || !this._tail) {\n            throw new Error('Invalid list');\n        }\n        if ((touch !== 1 /* Touch.AsOld */ && touch !== 2 /* Touch.AsNew */)) {\n            return;\n        }\n        if (touch === 1 /* Touch.AsOld */) {\n            if (item === this._head) {\n                return;\n            }\n            const next = item.next;\n            const previous = item.previous;\n            // Unlink the item\n            if (item === this._tail) {\n                // previous must be defined since item was not head but is tail\n                // So there are more than on item in the map\n                previous.next = undefined;\n                this._tail = previous;\n            }\n            else {\n                // Both next and previous are not undefined since item was neither head nor tail.\n                next.previous = previous;\n                previous.next = next;\n            }\n            // Insert the node at head\n            item.previous = undefined;\n            item.next = this._head;\n            this._head.previous = item;\n            this._head = item;\n            this._state++;\n        }\n        else if (touch === 2 /* Touch.AsNew */) {\n            if (item === this._tail) {\n                return;\n            }\n            const next = item.next;\n            const previous = item.previous;\n            // Unlink the item.\n            if (item === this._head) {\n                // next must be defined since item was not tail but is head\n                // So there are more than on item in the map\n                next.previous = undefined;\n                this._head = next;\n            }\n            else {\n                // Both next and previous are not undefined since item was neither head nor tail.\n                next.previous = previous;\n                previous.next = next;\n            }\n            item.next = undefined;\n            item.previous = this._tail;\n            this._tail.next = item;\n            this._tail = item;\n            this._state++;\n        }\n    }\n    toJSON() {\n        const data = [];\n        this.forEach((value, key) => {\n            data.push([key, value]);\n        });\n        return data;\n    }\n    fromJSON(data) {\n        this.clear();\n        for (const [key, value] of data) {\n            this.set(key, value);\n        }\n    }\n}\nclass LRUCache extends LinkedMap {\n    constructor(limit, ratio = 1) {\n        super();\n        this._limit = limit;\n        this._ratio = Math.min(Math.max(0, ratio), 1);\n    }\n    get limit() {\n        return this._limit;\n    }\n    set limit(limit) {\n        this._limit = limit;\n        this.checkTrim();\n    }\n    get(key, touch = 2 /* Touch.AsNew */) {\n        return super.get(key, touch);\n    }\n    peek(key) {\n        return super.get(key, 0 /* Touch.None */);\n    }\n    set(key, value) {\n        super.set(key, value, 2 /* Touch.AsNew */);\n        this.checkTrim();\n        return this;\n    }\n    checkTrim() {\n        if (this.size > this._limit) {\n            this.trimOld(Math.round(this._limit * this._ratio));\n        }\n    }\n}\n/**\n * A map that allows access both by keys and values.\n * **NOTE**: values need to be unique.\n */\nclass BidirectionalMap {\n    constructor(entries) {\n        this._m1 = new Map();\n        this._m2 = new Map();\n        if (entries) {\n            for (const [key, value] of entries) {\n                this.set(key, value);\n            }\n        }\n    }\n    clear() {\n        this._m1.clear();\n        this._m2.clear();\n    }\n    set(key, value) {\n        this._m1.set(key, value);\n        this._m2.set(value, key);\n    }\n    get(key) {\n        return this._m1.get(key);\n    }\n    getKey(value) {\n        return this._m2.get(value);\n    }\n    delete(key) {\n        const value = this._m1.get(key);\n        if (value === undefined) {\n            return false;\n        }\n        this._m1.delete(key);\n        this._m2.delete(value);\n        return true;\n    }\n    keys() {\n        return this._m1.keys();\n    }\n    values() {\n        return this._m1.values();\n    }\n}\nclass SetMap {\n    constructor() {\n        this.map = new Map();\n    }\n    add(key, value) {\n        let values = this.map.get(key);\n        if (!values) {\n            values = new Set();\n            this.map.set(key, values);\n        }\n        values.add(value);\n    }\n    delete(key, value) {\n        const values = this.map.get(key);\n        if (!values) {\n            return;\n        }\n        values.delete(value);\n        if (values.size === 0) {\n            this.map.delete(key);\n        }\n    }\n    forEach(key, fn) {\n        const values = this.map.get(key);\n        if (!values) {\n            return;\n        }\n        values.forEach(fn);\n    }\n    get(key) {\n        const values = this.map.get(key);\n        if (!values) {\n            return new Set();\n        }\n        return values;\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/map.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/objects.js":
/*!******************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/objects.js ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   cloneAndChange: () => (/* binding */ cloneAndChange),\n/* harmony export */   createProxyObject: () => (/* binding */ createProxyObject),\n/* harmony export */   deepClone: () => (/* binding */ deepClone),\n/* harmony export */   deepFreeze: () => (/* binding */ deepFreeze),\n/* harmony export */   equals: () => (/* binding */ equals),\n/* harmony export */   getAllMethodNames: () => (/* binding */ getAllMethodNames),\n/* harmony export */   getAllPropertyNames: () => (/* binding */ getAllPropertyNames),\n/* harmony export */   mixin: () => (/* binding */ mixin)\n/* harmony export */ });\n/* harmony import */ var _types_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./types.js */ \"./node_modules/monaco-editor/esm/vs/base/common/types.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nfunction deepClone(obj) {\n    if (!obj || typeof obj !== 'object') {\n        return obj;\n    }\n    if (obj instanceof RegExp) {\n        return obj;\n    }\n    const result = Array.isArray(obj) ? [] : {};\n    Object.entries(obj).forEach(([key, value]) => {\n        result[key] = value && typeof value === 'object' ? deepClone(value) : value;\n    });\n    return result;\n}\nfunction deepFreeze(obj) {\n    if (!obj || typeof obj !== 'object') {\n        return obj;\n    }\n    const stack = [obj];\n    while (stack.length > 0) {\n        const obj = stack.shift();\n        Object.freeze(obj);\n        for (const key in obj) {\n            if (_hasOwnProperty.call(obj, key)) {\n                const prop = obj[key];\n                if (typeof prop === 'object' && !Object.isFrozen(prop) && !(0,_types_js__WEBPACK_IMPORTED_MODULE_0__.isTypedArray)(prop)) {\n                    stack.push(prop);\n                }\n            }\n        }\n    }\n    return obj;\n}\nconst _hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction cloneAndChange(obj, changer) {\n    return _cloneAndChange(obj, changer, new Set());\n}\nfunction _cloneAndChange(obj, changer, seen) {\n    if ((0,_types_js__WEBPACK_IMPORTED_MODULE_0__.isUndefinedOrNull)(obj)) {\n        return obj;\n    }\n    const changed = changer(obj);\n    if (typeof changed !== 'undefined') {\n        return changed;\n    }\n    if (Array.isArray(obj)) {\n        const r1 = [];\n        for (const e of obj) {\n            r1.push(_cloneAndChange(e, changer, seen));\n        }\n        return r1;\n    }\n    if ((0,_types_js__WEBPACK_IMPORTED_MODULE_0__.isObject)(obj)) {\n        if (seen.has(obj)) {\n            throw new Error('Cannot clone recursive data-structure');\n        }\n        seen.add(obj);\n        const r2 = {};\n        for (const i2 in obj) {\n            if (_hasOwnProperty.call(obj, i2)) {\n                r2[i2] = _cloneAndChange(obj[i2], changer, seen);\n            }\n        }\n        seen.delete(obj);\n        return r2;\n    }\n    return obj;\n}\n/**\n * Copies all properties of source into destination. The optional parameter \"overwrite\" allows to control\n * if existing properties on the destination should be overwritten or not. Defaults to true (overwrite).\n */\nfunction mixin(destination, source, overwrite = true) {\n    if (!(0,_types_js__WEBPACK_IMPORTED_MODULE_0__.isObject)(destination)) {\n        return source;\n    }\n    if ((0,_types_js__WEBPACK_IMPORTED_MODULE_0__.isObject)(source)) {\n        Object.keys(source).forEach(key => {\n            if (key in destination) {\n                if (overwrite) {\n                    if ((0,_types_js__WEBPACK_IMPORTED_MODULE_0__.isObject)(destination[key]) && (0,_types_js__WEBPACK_IMPORTED_MODULE_0__.isObject)(source[key])) {\n                        mixin(destination[key], source[key], overwrite);\n                    }\n                    else {\n                        destination[key] = source[key];\n                    }\n                }\n            }\n            else {\n                destination[key] = source[key];\n            }\n        });\n    }\n    return destination;\n}\nfunction equals(one, other) {\n    if (one === other) {\n        return true;\n    }\n    if (one === null || one === undefined || other === null || other === undefined) {\n        return false;\n    }\n    if (typeof one !== typeof other) {\n        return false;\n    }\n    if (typeof one !== 'object') {\n        return false;\n    }\n    if ((Array.isArray(one)) !== (Array.isArray(other))) {\n        return false;\n    }\n    let i;\n    let key;\n    if (Array.isArray(one)) {\n        if (one.length !== other.length) {\n            return false;\n        }\n        for (i = 0; i < one.length; i++) {\n            if (!equals(one[i], other[i])) {\n                return false;\n            }\n        }\n    }\n    else {\n        const oneKeys = [];\n        for (key in one) {\n            oneKeys.push(key);\n        }\n        oneKeys.sort();\n        const otherKeys = [];\n        for (key in other) {\n            otherKeys.push(key);\n        }\n        otherKeys.sort();\n        if (!equals(oneKeys, otherKeys)) {\n            return false;\n        }\n        for (i = 0; i < oneKeys.length; i++) {\n            if (!equals(one[oneKeys[i]], other[oneKeys[i]])) {\n                return false;\n            }\n        }\n    }\n    return true;\n}\nfunction getAllPropertyNames(obj) {\n    let res = [];\n    while (Object.prototype !== obj) {\n        res = res.concat(Object.getOwnPropertyNames(obj));\n        obj = Object.getPrototypeOf(obj);\n    }\n    return res;\n}\nfunction getAllMethodNames(obj) {\n    const methods = [];\n    for (const prop of getAllPropertyNames(obj)) {\n        if (typeof obj[prop] === 'function') {\n            methods.push(prop);\n        }\n    }\n    return methods;\n}\nfunction createProxyObject(methodNames, invoke) {\n    const createProxyMethod = (method) => {\n        return function () {\n            const args = Array.prototype.slice.call(arguments, 0);\n            return invoke(method, args);\n        };\n    };\n    const result = {};\n    for (const methodName of methodNames) {\n        result[methodName] = createProxyMethod(methodName);\n    }\n    return result;\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/objects.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/path.js":
/*!***************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/path.js ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   basename: () => (/* binding */ basename),\n/* harmony export */   dirname: () => (/* binding */ dirname),\n/* harmony export */   extname: () => (/* binding */ extname),\n/* harmony export */   normalize: () => (/* binding */ normalize),\n/* harmony export */   posix: () => (/* binding */ posix),\n/* harmony export */   relative: () => (/* binding */ relative),\n/* harmony export */   resolve: () => (/* binding */ resolve),\n/* harmony export */   sep: () => (/* binding */ sep),\n/* harmony export */   win32: () => (/* binding */ win32)\n/* harmony export */ });\n/* harmony import */ var _process_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./process.js */ \"./node_modules/monaco-editor/esm/vs/base/common/process.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n// NOTE: VSCode's copy of nodejs path library to be usable in common (non-node) namespace\n// Copied from: https://github.com/nodejs/node/blob/v16.14.2/lib/path.js\n/**\n * Copyright Joyent, Inc. and other Node contributors.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a\n * copy of this software and associated documentation files (the\n * \"Software\"), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modify, merge, publish,\n * distribute, sublicense, and/or sell copies of the Software, and to permit\n * persons to whom the Software is furnished to do so, subject to the\n * following conditions:\n *\n * The above copyright notice and this permission notice shall be included\n * in all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n * USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\nconst CHAR_UPPERCASE_A = 65; /* A */\nconst CHAR_LOWERCASE_A = 97; /* a */\nconst CHAR_UPPERCASE_Z = 90; /* Z */\nconst CHAR_LOWERCASE_Z = 122; /* z */\nconst CHAR_DOT = 46; /* . */\nconst CHAR_FORWARD_SLASH = 47; /* / */\nconst CHAR_BACKWARD_SLASH = 92; /* \\ */\nconst CHAR_COLON = 58; /* : */\nconst CHAR_QUESTION_MARK = 63; /* ? */\nclass ErrorInvalidArgType extends Error {\n    constructor(name, expected, actual) {\n        // determiner: 'must be' or 'must not be'\n        let determiner;\n        if (typeof expected === 'string' && expected.indexOf('not ') === 0) {\n            determiner = 'must not be';\n            expected = expected.replace(/^not /, '');\n        }\n        else {\n            determiner = 'must be';\n        }\n        const type = name.indexOf('.') !== -1 ? 'property' : 'argument';\n        let msg = `The \"${name}\" ${type} ${determiner} of type ${expected}`;\n        msg += `. Received type ${typeof actual}`;\n        super(msg);\n        this.code = 'ERR_INVALID_ARG_TYPE';\n    }\n}\nfunction validateObject(pathObject, name) {\n    if (pathObject === null || typeof pathObject !== 'object') {\n        throw new ErrorInvalidArgType(name, 'Object', pathObject);\n    }\n}\nfunction validateString(value, name) {\n    if (typeof value !== 'string') {\n        throw new ErrorInvalidArgType(name, 'string', value);\n    }\n}\nconst platformIsWin32 = (_process_js__WEBPACK_IMPORTED_MODULE_0__.platform === 'win32');\nfunction isPathSeparator(code) {\n    return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;\n}\nfunction isPosixPathSeparator(code) {\n    return code === CHAR_FORWARD_SLASH;\n}\nfunction isWindowsDeviceRoot(code) {\n    return (code >= CHAR_UPPERCASE_A && code <= CHAR_UPPERCASE_Z) ||\n        (code >= CHAR_LOWERCASE_A && code <= CHAR_LOWERCASE_Z);\n}\n// Resolves . and .. elements in a path with directory names\nfunction normalizeString(path, allowAboveRoot, separator, isPathSeparator) {\n    let res = '';\n    let lastSegmentLength = 0;\n    let lastSlash = -1;\n    let dots = 0;\n    let code = 0;\n    for (let i = 0; i <= path.length; ++i) {\n        if (i < path.length) {\n            code = path.charCodeAt(i);\n        }\n        else if (isPathSeparator(code)) {\n            break;\n        }\n        else {\n            code = CHAR_FORWARD_SLASH;\n        }\n        if (isPathSeparator(code)) {\n            if (lastSlash === i - 1 || dots === 1) {\n                // NOOP\n            }\n            else if (dots === 2) {\n                if (res.length < 2 || lastSegmentLength !== 2 ||\n                    res.charCodeAt(res.length - 1) !== CHAR_DOT ||\n                    res.charCodeAt(res.length - 2) !== CHAR_DOT) {\n                    if (res.length > 2) {\n                        const lastSlashIndex = res.lastIndexOf(separator);\n                        if (lastSlashIndex === -1) {\n                            res = '';\n                            lastSegmentLength = 0;\n                        }\n                        else {\n                            res = res.slice(0, lastSlashIndex);\n                            lastSegmentLength = res.length - 1 - res.lastIndexOf(separator);\n                        }\n                        lastSlash = i;\n                        dots = 0;\n                        continue;\n                    }\n                    else if (res.length !== 0) {\n                        res = '';\n                        lastSegmentLength = 0;\n                        lastSlash = i;\n                        dots = 0;\n                        continue;\n                    }\n                }\n                if (allowAboveRoot) {\n                    res += res.length > 0 ? `${separator}..` : '..';\n                    lastSegmentLength = 2;\n                }\n            }\n            else {\n                if (res.length > 0) {\n                    res += `${separator}${path.slice(lastSlash + 1, i)}`;\n                }\n                else {\n                    res = path.slice(lastSlash + 1, i);\n                }\n                lastSegmentLength = i - lastSlash - 1;\n            }\n            lastSlash = i;\n            dots = 0;\n        }\n        else if (code === CHAR_DOT && dots !== -1) {\n            ++dots;\n        }\n        else {\n            dots = -1;\n        }\n    }\n    return res;\n}\nfunction _format(sep, pathObject) {\n    validateObject(pathObject, 'pathObject');\n    const dir = pathObject.dir || pathObject.root;\n    const base = pathObject.base ||\n        `${pathObject.name || ''}${pathObject.ext || ''}`;\n    if (!dir) {\n        return base;\n    }\n    return dir === pathObject.root ? `${dir}${base}` : `${dir}${sep}${base}`;\n}\nconst win32 = {\n    // path.resolve([from ...], to)\n    resolve(...pathSegments) {\n        let resolvedDevice = '';\n        let resolvedTail = '';\n        let resolvedAbsolute = false;\n        for (let i = pathSegments.length - 1; i >= -1; i--) {\n            let path;\n            if (i >= 0) {\n                path = pathSegments[i];\n                validateString(path, 'path');\n                // Skip empty entries\n                if (path.length === 0) {\n                    continue;\n                }\n            }\n            else if (resolvedDevice.length === 0) {\n                path = _process_js__WEBPACK_IMPORTED_MODULE_0__.cwd();\n            }\n            else {\n                // Windows has the concept of drive-specific current working\n                // directories. If we've resolved a drive letter but not yet an\n                // absolute path, get cwd for that drive, or the process cwd if\n                // the drive cwd is not available. We're sure the device is not\n                // a UNC path at this points, because UNC paths are always absolute.\n                path = _process_js__WEBPACK_IMPORTED_MODULE_0__.env[`=${resolvedDevice}`] || _process_js__WEBPACK_IMPORTED_MODULE_0__.cwd();\n                // Verify that a cwd was found and that it actually points\n                // to our drive. If not, default to the drive's root.\n                if (path === undefined ||\n                    (path.slice(0, 2).toLowerCase() !== resolvedDevice.toLowerCase() &&\n                        path.charCodeAt(2) === CHAR_BACKWARD_SLASH)) {\n                    path = `${resolvedDevice}\\\\`;\n                }\n            }\n            const len = path.length;\n            let rootEnd = 0;\n            let device = '';\n            let isAbsolute = false;\n            const code = path.charCodeAt(0);\n            // Try to match a root\n            if (len === 1) {\n                if (isPathSeparator(code)) {\n                    // `path` contains just a path separator\n                    rootEnd = 1;\n                    isAbsolute = true;\n                }\n            }\n            else if (isPathSeparator(code)) {\n                // Possible UNC root\n                // If we started with a separator, we know we at least have an\n                // absolute path of some kind (UNC or otherwise)\n                isAbsolute = true;\n                if (isPathSeparator(path.charCodeAt(1))) {\n                    // Matched double path separator at beginning\n                    let j = 2;\n                    let last = j;\n                    // Match 1 or more non-path separators\n                    while (j < len && !isPathSeparator(path.charCodeAt(j))) {\n                        j++;\n                    }\n                    if (j < len && j !== last) {\n                        const firstPart = path.slice(last, j);\n                        // Matched!\n                        last = j;\n                        // Match 1 or more path separators\n                        while (j < len && isPathSeparator(path.charCodeAt(j))) {\n                            j++;\n                        }\n                        if (j < len && j !== last) {\n                            // Matched!\n                            last = j;\n                            // Match 1 or more non-path separators\n                            while (j < len && !isPathSeparator(path.charCodeAt(j))) {\n                                j++;\n                            }\n                            if (j === len || j !== last) {\n                                // We matched a UNC root\n                                device = `\\\\\\\\${firstPart}\\\\${path.slice(last, j)}`;\n                                rootEnd = j;\n                            }\n                        }\n                    }\n                }\n                else {\n                    rootEnd = 1;\n                }\n            }\n            else if (isWindowsDeviceRoot(code) &&\n                path.charCodeAt(1) === CHAR_COLON) {\n                // Possible device root\n                device = path.slice(0, 2);\n                rootEnd = 2;\n                if (len > 2 && isPathSeparator(path.charCodeAt(2))) {\n                    // Treat separator following drive name as an absolute path\n                    // indicator\n                    isAbsolute = true;\n                    rootEnd = 3;\n                }\n            }\n            if (device.length > 0) {\n                if (resolvedDevice.length > 0) {\n                    if (device.toLowerCase() !== resolvedDevice.toLowerCase()) {\n                        // This path points to another device so it is not applicable\n                        continue;\n                    }\n                }\n                else {\n                    resolvedDevice = device;\n                }\n            }\n            if (resolvedAbsolute) {\n                if (resolvedDevice.length > 0) {\n                    break;\n                }\n            }\n            else {\n                resolvedTail = `${path.slice(rootEnd)}\\\\${resolvedTail}`;\n                resolvedAbsolute = isAbsolute;\n                if (isAbsolute && resolvedDevice.length > 0) {\n                    break;\n                }\n            }\n        }\n        // At this point the path should be resolved to a full absolute path,\n        // but handle relative paths to be safe (might happen when process.cwd()\n        // fails)\n        // Normalize the tail path\n        resolvedTail = normalizeString(resolvedTail, !resolvedAbsolute, '\\\\', isPathSeparator);\n        return resolvedAbsolute ?\n            `${resolvedDevice}\\\\${resolvedTail}` :\n            `${resolvedDevice}${resolvedTail}` || '.';\n    },\n    normalize(path) {\n        validateString(path, 'path');\n        const len = path.length;\n        if (len === 0) {\n            return '.';\n        }\n        let rootEnd = 0;\n        let device;\n        let isAbsolute = false;\n        const code = path.charCodeAt(0);\n        // Try to match a root\n        if (len === 1) {\n            // `path` contains just a single char, exit early to avoid\n            // unnecessary work\n            return isPosixPathSeparator(code) ? '\\\\' : path;\n        }\n        if (isPathSeparator(code)) {\n            // Possible UNC root\n            // If we started with a separator, we know we at least have an absolute\n            // path of some kind (UNC or otherwise)\n            isAbsolute = true;\n            if (isPathSeparator(path.charCodeAt(1))) {\n                // Matched double path separator at beginning\n                let j = 2;\n                let last = j;\n                // Match 1 or more non-path separators\n                while (j < len && !isPathSeparator(path.charCodeAt(j))) {\n                    j++;\n                }\n                if (j < len && j !== last) {\n                    const firstPart = path.slice(last, j);\n                    // Matched!\n                    last = j;\n                    // Match 1 or more path separators\n                    while (j < len && isPathSeparator(path.charCodeAt(j))) {\n                        j++;\n                    }\n                    if (j < len && j !== last) {\n                        // Matched!\n                        last = j;\n                        // Match 1 or more non-path separators\n                        while (j < len && !isPathSeparator(path.charCodeAt(j))) {\n                            j++;\n                        }\n                        if (j === len) {\n                            // We matched a UNC root only\n                            // Return the normalized version of the UNC root since there\n                            // is nothing left to process\n                            return `\\\\\\\\${firstPart}\\\\${path.slice(last)}\\\\`;\n                        }\n                        if (j !== last) {\n                            // We matched a UNC root with leftovers\n                            device = `\\\\\\\\${firstPart}\\\\${path.slice(last, j)}`;\n                            rootEnd = j;\n                        }\n                    }\n                }\n            }\n            else {\n                rootEnd = 1;\n            }\n        }\n        else if (isWindowsDeviceRoot(code) && path.charCodeAt(1) === CHAR_COLON) {\n            // Possible device root\n            device = path.slice(0, 2);\n            rootEnd = 2;\n            if (len > 2 && isPathSeparator(path.charCodeAt(2))) {\n                // Treat separator following drive name as an absolute path\n                // indicator\n                isAbsolute = true;\n                rootEnd = 3;\n            }\n        }\n        let tail = rootEnd < len ?\n            normalizeString(path.slice(rootEnd), !isAbsolute, '\\\\', isPathSeparator) :\n            '';\n        if (tail.length === 0 && !isAbsolute) {\n            tail = '.';\n        }\n        if (tail.length > 0 && isPathSeparator(path.charCodeAt(len - 1))) {\n            tail += '\\\\';\n        }\n        if (device === undefined) {\n            return isAbsolute ? `\\\\${tail}` : tail;\n        }\n        return isAbsolute ? `${device}\\\\${tail}` : `${device}${tail}`;\n    },\n    isAbsolute(path) {\n        validateString(path, 'path');\n        const len = path.length;\n        if (len === 0) {\n            return false;\n        }\n        const code = path.charCodeAt(0);\n        return isPathSeparator(code) ||\n            // Possible device root\n            (len > 2 &&\n                isWindowsDeviceRoot(code) &&\n                path.charCodeAt(1) === CHAR_COLON &&\n                isPathSeparator(path.charCodeAt(2)));\n    },\n    join(...paths) {\n        if (paths.length === 0) {\n            return '.';\n        }\n        let joined;\n        let firstPart;\n        for (let i = 0; i < paths.length; ++i) {\n            const arg = paths[i];\n            validateString(arg, 'path');\n            if (arg.length > 0) {\n                if (joined === undefined) {\n                    joined = firstPart = arg;\n                }\n                else {\n                    joined += `\\\\${arg}`;\n                }\n            }\n        }\n        if (joined === undefined) {\n            return '.';\n        }\n        // Make sure that the joined path doesn't start with two slashes, because\n        // normalize() will mistake it for a UNC path then.\n        //\n        // This step is skipped when it is very clear that the user actually\n        // intended to point at a UNC path. This is assumed when the first\n        // non-empty string arguments starts with exactly two slashes followed by\n        // at least one more non-slash character.\n        //\n        // Note that for normalize() to treat a path as a UNC path it needs to\n        // have at least 2 components, so we don't filter for that here.\n        // This means that the user can use join to construct UNC paths from\n        // a server name and a share name; for example:\n        //   path.join('//server', 'share') -> '\\\\\\\\server\\\\share\\\\')\n        let needsReplace = true;\n        let slashCount = 0;\n        if (typeof firstPart === 'string' && isPathSeparator(firstPart.charCodeAt(0))) {\n            ++slashCount;\n            const firstLen = firstPart.length;\n            if (firstLen > 1 && isPathSeparator(firstPart.charCodeAt(1))) {\n                ++slashCount;\n                if (firstLen > 2) {\n                    if (isPathSeparator(firstPart.charCodeAt(2))) {\n                        ++slashCount;\n                    }\n                    else {\n                        // We matched a UNC path in the first part\n                        needsReplace = false;\n                    }\n                }\n            }\n        }\n        if (needsReplace) {\n            // Find any more consecutive slashes we need to replace\n            while (slashCount < joined.length &&\n                isPathSeparator(joined.charCodeAt(slashCount))) {\n                slashCount++;\n            }\n            // Replace the slashes if needed\n            if (slashCount >= 2) {\n                joined = `\\\\${joined.slice(slashCount)}`;\n            }\n        }\n        return win32.normalize(joined);\n    },\n    // It will solve the relative path from `from` to `to`, for instance:\n    //  from = 'C:\\\\orandea\\\\test\\\\aaa'\n    //  to = 'C:\\\\orandea\\\\impl\\\\bbb'\n    // The output of the function should be: '..\\\\..\\\\impl\\\\bbb'\n    relative(from, to) {\n        validateString(from, 'from');\n        validateString(to, 'to');\n        if (from === to) {\n            return '';\n        }\n        const fromOrig = win32.resolve(from);\n        const toOrig = win32.resolve(to);\n        if (fromOrig === toOrig) {\n            return '';\n        }\n        from = fromOrig.toLowerCase();\n        to = toOrig.toLowerCase();\n        if (from === to) {\n            return '';\n        }\n        // Trim any leading backslashes\n        let fromStart = 0;\n        while (fromStart < from.length &&\n            from.charCodeAt(fromStart) === CHAR_BACKWARD_SLASH) {\n            fromStart++;\n        }\n        // Trim trailing backslashes (applicable to UNC paths only)\n        let fromEnd = from.length;\n        while (fromEnd - 1 > fromStart &&\n            from.charCodeAt(fromEnd - 1) === CHAR_BACKWARD_SLASH) {\n            fromEnd--;\n        }\n        const fromLen = fromEnd - fromStart;\n        // Trim any leading backslashes\n        let toStart = 0;\n        while (toStart < to.length &&\n            to.charCodeAt(toStart) === CHAR_BACKWARD_SLASH) {\n            toStart++;\n        }\n        // Trim trailing backslashes (applicable to UNC paths only)\n        let toEnd = to.length;\n        while (toEnd - 1 > toStart &&\n            to.charCodeAt(toEnd - 1) === CHAR_BACKWARD_SLASH) {\n            toEnd--;\n        }\n        const toLen = toEnd - toStart;\n        // Compare paths to find the longest common path from root\n        const length = fromLen < toLen ? fromLen : toLen;\n        let lastCommonSep = -1;\n        let i = 0;\n        for (; i < length; i++) {\n            const fromCode = from.charCodeAt(fromStart + i);\n            if (fromCode !== to.charCodeAt(toStart + i)) {\n                break;\n            }\n            else if (fromCode === CHAR_BACKWARD_SLASH) {\n                lastCommonSep = i;\n            }\n        }\n        // We found a mismatch before the first common path separator was seen, so\n        // return the original `to`.\n        if (i !== length) {\n            if (lastCommonSep === -1) {\n                return toOrig;\n            }\n        }\n        else {\n            if (toLen > length) {\n                if (to.charCodeAt(toStart + i) === CHAR_BACKWARD_SLASH) {\n                    // We get here if `from` is the exact base path for `to`.\n                    // For example: from='C:\\\\foo\\\\bar'; to='C:\\\\foo\\\\bar\\\\baz'\n                    return toOrig.slice(toStart + i + 1);\n                }\n                if (i === 2) {\n                    // We get here if `from` is the device root.\n                    // For example: from='C:\\\\'; to='C:\\\\foo'\n                    return toOrig.slice(toStart + i);\n                }\n            }\n            if (fromLen > length) {\n                if (from.charCodeAt(fromStart + i) === CHAR_BACKWARD_SLASH) {\n                    // We get here if `to` is the exact base path for `from`.\n                    // For example: from='C:\\\\foo\\\\bar'; to='C:\\\\foo'\n                    lastCommonSep = i;\n                }\n                else if (i === 2) {\n                    // We get here if `to` is the device root.\n                    // For example: from='C:\\\\foo\\\\bar'; to='C:\\\\'\n                    lastCommonSep = 3;\n                }\n            }\n            if (lastCommonSep === -1) {\n                lastCommonSep = 0;\n            }\n        }\n        let out = '';\n        // Generate the relative path based on the path difference between `to` and\n        // `from`\n        for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {\n            if (i === fromEnd || from.charCodeAt(i) === CHAR_BACKWARD_SLASH) {\n                out += out.length === 0 ? '..' : '\\\\..';\n            }\n        }\n        toStart += lastCommonSep;\n        // Lastly, append the rest of the destination (`to`) path that comes after\n        // the common path parts\n        if (out.length > 0) {\n            return `${out}${toOrig.slice(toStart, toEnd)}`;\n        }\n        if (toOrig.charCodeAt(toStart) === CHAR_BACKWARD_SLASH) {\n            ++toStart;\n        }\n        return toOrig.slice(toStart, toEnd);\n    },\n    toNamespacedPath(path) {\n        // Note: this will *probably* throw somewhere.\n        if (typeof path !== 'string' || path.length === 0) {\n            return path;\n        }\n        const resolvedPath = win32.resolve(path);\n        if (resolvedPath.length <= 2) {\n            return path;\n        }\n        if (resolvedPath.charCodeAt(0) === CHAR_BACKWARD_SLASH) {\n            // Possible UNC root\n            if (resolvedPath.charCodeAt(1) === CHAR_BACKWARD_SLASH) {\n                const code = resolvedPath.charCodeAt(2);\n                if (code !== CHAR_QUESTION_MARK && code !== CHAR_DOT) {\n                    // Matched non-long UNC root, convert the path to a long UNC path\n                    return `\\\\\\\\?\\\\UNC\\\\${resolvedPath.slice(2)}`;\n                }\n            }\n        }\n        else if (isWindowsDeviceRoot(resolvedPath.charCodeAt(0)) &&\n            resolvedPath.charCodeAt(1) === CHAR_COLON &&\n            resolvedPath.charCodeAt(2) === CHAR_BACKWARD_SLASH) {\n            // Matched device root, convert the path to a long UNC path\n            return `\\\\\\\\?\\\\${resolvedPath}`;\n        }\n        return path;\n    },\n    dirname(path) {\n        validateString(path, 'path');\n        const len = path.length;\n        if (len === 0) {\n            return '.';\n        }\n        let rootEnd = -1;\n        let offset = 0;\n        const code = path.charCodeAt(0);\n        if (len === 1) {\n            // `path` contains just a path separator, exit early to avoid\n            // unnecessary work or a dot.\n            return isPathSeparator(code) ? path : '.';\n        }\n        // Try to match a root\n        if (isPathSeparator(code)) {\n            // Possible UNC root\n            rootEnd = offset = 1;\n            if (isPathSeparator(path.charCodeAt(1))) {\n                // Matched double path separator at beginning\n                let j = 2;\n                let last = j;\n                // Match 1 or more non-path separators\n                while (j < len && !isPathSeparator(path.charCodeAt(j))) {\n                    j++;\n                }\n                if (j < len && j !== last) {\n                    // Matched!\n                    last = j;\n                    // Match 1 or more path separators\n                    while (j < len && isPathSeparator(path.charCodeAt(j))) {\n                        j++;\n                    }\n                    if (j < len && j !== last) {\n                        // Matched!\n                        last = j;\n                        // Match 1 or more non-path separators\n                        while (j < len && !isPathSeparator(path.charCodeAt(j))) {\n                            j++;\n                        }\n                        if (j === len) {\n                            // We matched a UNC root only\n                            return path;\n                        }\n                        if (j !== last) {\n                            // We matched a UNC root with leftovers\n                            // Offset by 1 to include the separator after the UNC root to\n                            // treat it as a \"normal root\" on top of a (UNC) root\n                            rootEnd = offset = j + 1;\n                        }\n                    }\n                }\n            }\n            // Possible device root\n        }\n        else if (isWindowsDeviceRoot(code) && path.charCodeAt(1) === CHAR_COLON) {\n            rootEnd = len > 2 && isPathSeparator(path.charCodeAt(2)) ? 3 : 2;\n            offset = rootEnd;\n        }\n        let end = -1;\n        let matchedSlash = true;\n        for (let i = len - 1; i >= offset; --i) {\n            if (isPathSeparator(path.charCodeAt(i))) {\n                if (!matchedSlash) {\n                    end = i;\n                    break;\n                }\n            }\n            else {\n                // We saw the first non-path separator\n                matchedSlash = false;\n            }\n        }\n        if (end === -1) {\n            if (rootEnd === -1) {\n                return '.';\n            }\n            end = rootEnd;\n        }\n        return path.slice(0, end);\n    },\n    basename(path, ext) {\n        if (ext !== undefined) {\n            validateString(ext, 'ext');\n        }\n        validateString(path, 'path');\n        let start = 0;\n        let end = -1;\n        let matchedSlash = true;\n        let i;\n        // Check for a drive letter prefix so as not to mistake the following\n        // path separator as an extra separator at the end of the path that can be\n        // disregarded\n        if (path.length >= 2 &&\n            isWindowsDeviceRoot(path.charCodeAt(0)) &&\n            path.charCodeAt(1) === CHAR_COLON) {\n            start = 2;\n        }\n        if (ext !== undefined && ext.length > 0 && ext.length <= path.length) {\n            if (ext === path) {\n                return '';\n            }\n            let extIdx = ext.length - 1;\n            let firstNonSlashEnd = -1;\n            for (i = path.length - 1; i >= start; --i) {\n                const code = path.charCodeAt(i);\n                if (isPathSeparator(code)) {\n                    // If we reached a path separator that was not part of a set of path\n                    // separators at the end of the string, stop now\n                    if (!matchedSlash) {\n                        start = i + 1;\n                        break;\n                    }\n                }\n                else {\n                    if (firstNonSlashEnd === -1) {\n                        // We saw the first non-path separator, remember this index in case\n                        // we need it if the extension ends up not matching\n                        matchedSlash = false;\n                        firstNonSlashEnd = i + 1;\n                    }\n                    if (extIdx >= 0) {\n                        // Try to match the explicit extension\n                        if (code === ext.charCodeAt(extIdx)) {\n                            if (--extIdx === -1) {\n                                // We matched the extension, so mark this as the end of our path\n                                // component\n                                end = i;\n                            }\n                        }\n                        else {\n                            // Extension does not match, so our result is the entire path\n                            // component\n                            extIdx = -1;\n                            end = firstNonSlashEnd;\n                        }\n                    }\n                }\n            }\n            if (start === end) {\n                end = firstNonSlashEnd;\n            }\n            else if (end === -1) {\n                end = path.length;\n            }\n            return path.slice(start, end);\n        }\n        for (i = path.length - 1; i >= start; --i) {\n            if (isPathSeparator(path.charCodeAt(i))) {\n                // If we reached a path separator that was not part of a set of path\n                // separators at the end of the string, stop now\n                if (!matchedSlash) {\n                    start = i + 1;\n                    break;\n                }\n            }\n            else if (end === -1) {\n                // We saw the first non-path separator, mark this as the end of our\n                // path component\n                matchedSlash = false;\n                end = i + 1;\n            }\n        }\n        if (end === -1) {\n            return '';\n        }\n        return path.slice(start, end);\n    },\n    extname(path) {\n        validateString(path, 'path');\n        let start = 0;\n        let startDot = -1;\n        let startPart = 0;\n        let end = -1;\n        let matchedSlash = true;\n        // Track the state of characters (if any) we see before our first dot and\n        // after any path separator we find\n        let preDotState = 0;\n        // Check for a drive letter prefix so as not to mistake the following\n        // path separator as an extra separator at the end of the path that can be\n        // disregarded\n        if (path.length >= 2 &&\n            path.charCodeAt(1) === CHAR_COLON &&\n            isWindowsDeviceRoot(path.charCodeAt(0))) {\n            start = startPart = 2;\n        }\n        for (let i = path.length - 1; i >= start; --i) {\n            const code = path.charCodeAt(i);\n            if (isPathSeparator(code)) {\n                // If we reached a path separator that was not part of a set of path\n                // separators at the end of the string, stop now\n                if (!matchedSlash) {\n                    startPart = i + 1;\n                    break;\n                }\n                continue;\n            }\n            if (end === -1) {\n                // We saw the first non-path separator, mark this as the end of our\n                // extension\n                matchedSlash = false;\n                end = i + 1;\n            }\n            if (code === CHAR_DOT) {\n                // If this is our first dot, mark it as the start of our extension\n                if (startDot === -1) {\n                    startDot = i;\n                }\n                else if (preDotState !== 1) {\n                    preDotState = 1;\n                }\n            }\n            else if (startDot !== -1) {\n                // We saw a non-dot and non-path separator before our dot, so we should\n                // have a good chance at having a non-empty extension\n                preDotState = -1;\n            }\n        }\n        if (startDot === -1 ||\n            end === -1 ||\n            // We saw a non-dot character immediately before the dot\n            preDotState === 0 ||\n            // The (right-most) trimmed path component is exactly '..'\n            (preDotState === 1 &&\n                startDot === end - 1 &&\n                startDot === startPart + 1)) {\n            return '';\n        }\n        return path.slice(startDot, end);\n    },\n    format: _format.bind(null, '\\\\'),\n    parse(path) {\n        validateString(path, 'path');\n        const ret = { root: '', dir: '', base: '', ext: '', name: '' };\n        if (path.length === 0) {\n            return ret;\n        }\n        const len = path.length;\n        let rootEnd = 0;\n        let code = path.charCodeAt(0);\n        if (len === 1) {\n            if (isPathSeparator(code)) {\n                // `path` contains just a path separator, exit early to avoid\n                // unnecessary work\n                ret.root = ret.dir = path;\n                return ret;\n            }\n            ret.base = ret.name = path;\n            return ret;\n        }\n        // Try to match a root\n        if (isPathSeparator(code)) {\n            // Possible UNC root\n            rootEnd = 1;\n            if (isPathSeparator(path.charCodeAt(1))) {\n                // Matched double path separator at beginning\n                let j = 2;\n                let last = j;\n                // Match 1 or more non-path separators\n                while (j < len && !isPathSeparator(path.charCodeAt(j))) {\n                    j++;\n                }\n                if (j < len && j !== last) {\n                    // Matched!\n                    last = j;\n                    // Match 1 or more path separators\n                    while (j < len && isPathSeparator(path.charCodeAt(j))) {\n                        j++;\n                    }\n                    if (j < len && j !== last) {\n                        // Matched!\n                        last = j;\n                        // Match 1 or more non-path separators\n                        while (j < len && !isPathSeparator(path.charCodeAt(j))) {\n                            j++;\n                        }\n                        if (j === len) {\n                            // We matched a UNC root only\n                            rootEnd = j;\n                        }\n                        else if (j !== last) {\n                            // We matched a UNC root with leftovers\n                            rootEnd = j + 1;\n                        }\n                    }\n                }\n            }\n        }\n        else if (isWindowsDeviceRoot(code) && path.charCodeAt(1) === CHAR_COLON) {\n            // Possible device root\n            if (len <= 2) {\n                // `path` contains just a drive root, exit early to avoid\n                // unnecessary work\n                ret.root = ret.dir = path;\n                return ret;\n            }\n            rootEnd = 2;\n            if (isPathSeparator(path.charCodeAt(2))) {\n                if (len === 3) {\n                    // `path` contains just a drive root, exit early to avoid\n                    // unnecessary work\n                    ret.root = ret.dir = path;\n                    return ret;\n                }\n                rootEnd = 3;\n            }\n        }\n        if (rootEnd > 0) {\n            ret.root = path.slice(0, rootEnd);\n        }\n        let startDot = -1;\n        let startPart = rootEnd;\n        let end = -1;\n        let matchedSlash = true;\n        let i = path.length - 1;\n        // Track the state of characters (if any) we see before our first dot and\n        // after any path separator we find\n        let preDotState = 0;\n        // Get non-dir info\n        for (; i >= rootEnd; --i) {\n            code = path.charCodeAt(i);\n            if (isPathSeparator(code)) {\n                // If we reached a path separator that was not part of a set of path\n                // separators at the end of the string, stop now\n                if (!matchedSlash) {\n                    startPart = i + 1;\n                    break;\n                }\n                continue;\n            }\n            if (end === -1) {\n                // We saw the first non-path separator, mark this as the end of our\n                // extension\n                matchedSlash = false;\n                end = i + 1;\n            }\n            if (code === CHAR_DOT) {\n                // If this is our first dot, mark it as the start of our extension\n                if (startDot === -1) {\n                    startDot = i;\n                }\n                else if (preDotState !== 1) {\n                    preDotState = 1;\n                }\n            }\n            else if (startDot !== -1) {\n                // We saw a non-dot and non-path separator before our dot, so we should\n                // have a good chance at having a non-empty extension\n                preDotState = -1;\n            }\n        }\n        if (end !== -1) {\n            if (startDot === -1 ||\n                // We saw a non-dot character immediately before the dot\n                preDotState === 0 ||\n                // The (right-most) trimmed path component is exactly '..'\n                (preDotState === 1 &&\n                    startDot === end - 1 &&\n                    startDot === startPart + 1)) {\n                ret.base = ret.name = path.slice(startPart, end);\n            }\n            else {\n                ret.name = path.slice(startPart, startDot);\n                ret.base = path.slice(startPart, end);\n                ret.ext = path.slice(startDot, end);\n            }\n        }\n        // If the directory is the root, use the entire root as the `dir` including\n        // the trailing slash if any (`C:\\abc` -> `C:\\`). Otherwise, strip out the\n        // trailing slash (`C:\\abc\\def` -> `C:\\abc`).\n        if (startPart > 0 && startPart !== rootEnd) {\n            ret.dir = path.slice(0, startPart - 1);\n        }\n        else {\n            ret.dir = ret.root;\n        }\n        return ret;\n    },\n    sep: '\\\\',\n    delimiter: ';',\n    win32: null,\n    posix: null\n};\nconst posixCwd = (() => {\n    if (platformIsWin32) {\n        // Converts Windows' backslash path separators to POSIX forward slashes\n        // and truncates any drive indicator\n        const regexp = /\\\\/g;\n        return () => {\n            const cwd = _process_js__WEBPACK_IMPORTED_MODULE_0__.cwd().replace(regexp, '/');\n            return cwd.slice(cwd.indexOf('/'));\n        };\n    }\n    // We're already on POSIX, no need for any transformations\n    return () => _process_js__WEBPACK_IMPORTED_MODULE_0__.cwd();\n})();\nconst posix = {\n    // path.resolve([from ...], to)\n    resolve(...pathSegments) {\n        let resolvedPath = '';\n        let resolvedAbsolute = false;\n        for (let i = pathSegments.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n            const path = i >= 0 ? pathSegments[i] : posixCwd();\n            validateString(path, 'path');\n            // Skip empty entries\n            if (path.length === 0) {\n                continue;\n            }\n            resolvedPath = `${path}/${resolvedPath}`;\n            resolvedAbsolute = path.charCodeAt(0) === CHAR_FORWARD_SLASH;\n        }\n        // At this point the path should be resolved to a full absolute path, but\n        // handle relative paths to be safe (might happen when process.cwd() fails)\n        // Normalize the path\n        resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute, '/', isPosixPathSeparator);\n        if (resolvedAbsolute) {\n            return `/${resolvedPath}`;\n        }\n        return resolvedPath.length > 0 ? resolvedPath : '.';\n    },\n    normalize(path) {\n        validateString(path, 'path');\n        if (path.length === 0) {\n            return '.';\n        }\n        const isAbsolute = path.charCodeAt(0) === CHAR_FORWARD_SLASH;\n        const trailingSeparator = path.charCodeAt(path.length - 1) === CHAR_FORWARD_SLASH;\n        // Normalize the path\n        path = normalizeString(path, !isAbsolute, '/', isPosixPathSeparator);\n        if (path.length === 0) {\n            if (isAbsolute) {\n                return '/';\n            }\n            return trailingSeparator ? './' : '.';\n        }\n        if (trailingSeparator) {\n            path += '/';\n        }\n        return isAbsolute ? `/${path}` : path;\n    },\n    isAbsolute(path) {\n        validateString(path, 'path');\n        return path.length > 0 && path.charCodeAt(0) === CHAR_FORWARD_SLASH;\n    },\n    join(...paths) {\n        if (paths.length === 0) {\n            return '.';\n        }\n        let joined;\n        for (let i = 0; i < paths.length; ++i) {\n            const arg = paths[i];\n            validateString(arg, 'path');\n            if (arg.length > 0) {\n                if (joined === undefined) {\n                    joined = arg;\n                }\n                else {\n                    joined += `/${arg}`;\n                }\n            }\n        }\n        if (joined === undefined) {\n            return '.';\n        }\n        return posix.normalize(joined);\n    },\n    relative(from, to) {\n        validateString(from, 'from');\n        validateString(to, 'to');\n        if (from === to) {\n            return '';\n        }\n        // Trim leading forward slashes.\n        from = posix.resolve(from);\n        to = posix.resolve(to);\n        if (from === to) {\n            return '';\n        }\n        const fromStart = 1;\n        const fromEnd = from.length;\n        const fromLen = fromEnd - fromStart;\n        const toStart = 1;\n        const toLen = to.length - toStart;\n        // Compare paths to find the longest common path from root\n        const length = (fromLen < toLen ? fromLen : toLen);\n        let lastCommonSep = -1;\n        let i = 0;\n        for (; i < length; i++) {\n            const fromCode = from.charCodeAt(fromStart + i);\n            if (fromCode !== to.charCodeAt(toStart + i)) {\n                break;\n            }\n            else if (fromCode === CHAR_FORWARD_SLASH) {\n                lastCommonSep = i;\n            }\n        }\n        if (i === length) {\n            if (toLen > length) {\n                if (to.charCodeAt(toStart + i) === CHAR_FORWARD_SLASH) {\n                    // We get here if `from` is the exact base path for `to`.\n                    // For example: from='/foo/bar'; to='/foo/bar/baz'\n                    return to.slice(toStart + i + 1);\n                }\n                if (i === 0) {\n                    // We get here if `from` is the root\n                    // For example: from='/'; to='/foo'\n                    return to.slice(toStart + i);\n                }\n            }\n            else if (fromLen > length) {\n                if (from.charCodeAt(fromStart + i) === CHAR_FORWARD_SLASH) {\n                    // We get here if `to` is the exact base path for `from`.\n                    // For example: from='/foo/bar/baz'; to='/foo/bar'\n                    lastCommonSep = i;\n                }\n                else if (i === 0) {\n                    // We get here if `to` is the root.\n                    // For example: from='/foo/bar'; to='/'\n                    lastCommonSep = 0;\n                }\n            }\n        }\n        let out = '';\n        // Generate the relative path based on the path difference between `to`\n        // and `from`.\n        for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {\n            if (i === fromEnd || from.charCodeAt(i) === CHAR_FORWARD_SLASH) {\n                out += out.length === 0 ? '..' : '/..';\n            }\n        }\n        // Lastly, append the rest of the destination (`to`) path that comes after\n        // the common path parts.\n        return `${out}${to.slice(toStart + lastCommonSep)}`;\n    },\n    toNamespacedPath(path) {\n        // Non-op on posix systems\n        return path;\n    },\n    dirname(path) {\n        validateString(path, 'path');\n        if (path.length === 0) {\n            return '.';\n        }\n        const hasRoot = path.charCodeAt(0) === CHAR_FORWARD_SLASH;\n        let end = -1;\n        let matchedSlash = true;\n        for (let i = path.length - 1; i >= 1; --i) {\n            if (path.charCodeAt(i) === CHAR_FORWARD_SLASH) {\n                if (!matchedSlash) {\n                    end = i;\n                    break;\n                }\n            }\n            else {\n                // We saw the first non-path separator\n                matchedSlash = false;\n            }\n        }\n        if (end === -1) {\n            return hasRoot ? '/' : '.';\n        }\n        if (hasRoot && end === 1) {\n            return '//';\n        }\n        return path.slice(0, end);\n    },\n    basename(path, ext) {\n        if (ext !== undefined) {\n            validateString(ext, 'ext');\n        }\n        validateString(path, 'path');\n        let start = 0;\n        let end = -1;\n        let matchedSlash = true;\n        let i;\n        if (ext !== undefined && ext.length > 0 && ext.length <= path.length) {\n            if (ext === path) {\n                return '';\n            }\n            let extIdx = ext.length - 1;\n            let firstNonSlashEnd = -1;\n            for (i = path.length - 1; i >= 0; --i) {\n                const code = path.charCodeAt(i);\n                if (code === CHAR_FORWARD_SLASH) {\n                    // If we reached a path separator that was not part of a set of path\n                    // separators at the end of the string, stop now\n                    if (!matchedSlash) {\n                        start = i + 1;\n                        break;\n                    }\n                }\n                else {\n                    if (firstNonSlashEnd === -1) {\n                        // We saw the first non-path separator, remember this index in case\n                        // we need it if the extension ends up not matching\n                        matchedSlash = false;\n                        firstNonSlashEnd = i + 1;\n                    }\n                    if (extIdx >= 0) {\n                        // Try to match the explicit extension\n                        if (code === ext.charCodeAt(extIdx)) {\n                            if (--extIdx === -1) {\n                                // We matched the extension, so mark this as the end of our path\n                                // component\n                                end = i;\n                            }\n                        }\n                        else {\n                            // Extension does not match, so our result is the entire path\n                            // component\n                            extIdx = -1;\n                            end = firstNonSlashEnd;\n                        }\n                    }\n                }\n            }\n            if (start === end) {\n                end = firstNonSlashEnd;\n            }\n            else if (end === -1) {\n                end = path.length;\n            }\n            return path.slice(start, end);\n        }\n        for (i = path.length - 1; i >= 0; --i) {\n            if (path.charCodeAt(i) === CHAR_FORWARD_SLASH) {\n                // If we reached a path separator that was not part of a set of path\n                // separators at the end of the string, stop now\n                if (!matchedSlash) {\n                    start = i + 1;\n                    break;\n                }\n            }\n            else if (end === -1) {\n                // We saw the first non-path separator, mark this as the end of our\n                // path component\n                matchedSlash = false;\n                end = i + 1;\n            }\n        }\n        if (end === -1) {\n            return '';\n        }\n        return path.slice(start, end);\n    },\n    extname(path) {\n        validateString(path, 'path');\n        let startDot = -1;\n        let startPart = 0;\n        let end = -1;\n        let matchedSlash = true;\n        // Track the state of characters (if any) we see before our first dot and\n        // after any path separator we find\n        let preDotState = 0;\n        for (let i = path.length - 1; i >= 0; --i) {\n            const code = path.charCodeAt(i);\n            if (code === CHAR_FORWARD_SLASH) {\n                // If we reached a path separator that was not part of a set of path\n                // separators at the end of the string, stop now\n                if (!matchedSlash) {\n                    startPart = i + 1;\n                    break;\n                }\n                continue;\n            }\n            if (end === -1) {\n                // We saw the first non-path separator, mark this as the end of our\n                // extension\n                matchedSlash = false;\n                end = i + 1;\n            }\n            if (code === CHAR_DOT) {\n                // If this is our first dot, mark it as the start of our extension\n                if (startDot === -1) {\n                    startDot = i;\n                }\n                else if (preDotState !== 1) {\n                    preDotState = 1;\n                }\n            }\n            else if (startDot !== -1) {\n                // We saw a non-dot and non-path separator before our dot, so we should\n                // have a good chance at having a non-empty extension\n                preDotState = -1;\n            }\n        }\n        if (startDot === -1 ||\n            end === -1 ||\n            // We saw a non-dot character immediately before the dot\n            preDotState === 0 ||\n            // The (right-most) trimmed path component is exactly '..'\n            (preDotState === 1 &&\n                startDot === end - 1 &&\n                startDot === startPart + 1)) {\n            return '';\n        }\n        return path.slice(startDot, end);\n    },\n    format: _format.bind(null, '/'),\n    parse(path) {\n        validateString(path, 'path');\n        const ret = { root: '', dir: '', base: '', ext: '', name: '' };\n        if (path.length === 0) {\n            return ret;\n        }\n        const isAbsolute = path.charCodeAt(0) === CHAR_FORWARD_SLASH;\n        let start;\n        if (isAbsolute) {\n            ret.root = '/';\n            start = 1;\n        }\n        else {\n            start = 0;\n        }\n        let startDot = -1;\n        let startPart = 0;\n        let end = -1;\n        let matchedSlash = true;\n        let i = path.length - 1;\n        // Track the state of characters (if any) we see before our first dot and\n        // after any path separator we find\n        let preDotState = 0;\n        // Get non-dir info\n        for (; i >= start; --i) {\n            const code = path.charCodeAt(i);\n            if (code === CHAR_FORWARD_SLASH) {\n                // If we reached a path separator that was not part of a set of path\n                // separators at the end of the string, stop now\n                if (!matchedSlash) {\n                    startPart = i + 1;\n                    break;\n                }\n                continue;\n            }\n            if (end === -1) {\n                // We saw the first non-path separator, mark this as the end of our\n                // extension\n                matchedSlash = false;\n                end = i + 1;\n            }\n            if (code === CHAR_DOT) {\n                // If this is our first dot, mark it as the start of our extension\n                if (startDot === -1) {\n                    startDot = i;\n                }\n                else if (preDotState !== 1) {\n                    preDotState = 1;\n                }\n            }\n            else if (startDot !== -1) {\n                // We saw a non-dot and non-path separator before our dot, so we should\n                // have a good chance at having a non-empty extension\n                preDotState = -1;\n            }\n        }\n        if (end !== -1) {\n            const start = startPart === 0 && isAbsolute ? 1 : startPart;\n            if (startDot === -1 ||\n                // We saw a non-dot character immediately before the dot\n                preDotState === 0 ||\n                // The (right-most) trimmed path component is exactly '..'\n                (preDotState === 1 &&\n                    startDot === end - 1 &&\n                    startDot === startPart + 1)) {\n                ret.base = ret.name = path.slice(start, end);\n            }\n            else {\n                ret.name = path.slice(start, startDot);\n                ret.base = path.slice(start, end);\n                ret.ext = path.slice(startDot, end);\n            }\n        }\n        if (startPart > 0) {\n            ret.dir = path.slice(0, startPart - 1);\n        }\n        else if (isAbsolute) {\n            ret.dir = '/';\n        }\n        return ret;\n    },\n    sep: '/',\n    delimiter: ':',\n    win32: null,\n    posix: null\n};\nposix.win32 = win32.win32 = win32;\nposix.posix = win32.posix = posix;\nconst normalize = (platformIsWin32 ? win32.normalize : posix.normalize);\nconst resolve = (platformIsWin32 ? win32.resolve : posix.resolve);\nconst relative = (platformIsWin32 ? win32.relative : posix.relative);\nconst dirname = (platformIsWin32 ? win32.dirname : posix.dirname);\nconst basename = (platformIsWin32 ? win32.basename : posix.basename);\nconst extname = (platformIsWin32 ? win32.extname : posix.extname);\nconst sep = (platformIsWin32 ? win32.sep : posix.sep);\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/path.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/platform.js":
/*!*******************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/platform.js ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LANGUAGE_DEFAULT: () => (/* binding */ LANGUAGE_DEFAULT),\n/* harmony export */   OS: () => (/* binding */ OS),\n/* harmony export */   isAndroid: () => (/* binding */ isAndroid),\n/* harmony export */   isChrome: () => (/* binding */ isChrome),\n/* harmony export */   isEdge: () => (/* binding */ isEdge),\n/* harmony export */   isFirefox: () => (/* binding */ isFirefox),\n/* harmony export */   isIOS: () => (/* binding */ isIOS),\n/* harmony export */   isLinux: () => (/* binding */ isLinux),\n/* harmony export */   isLittleEndian: () => (/* binding */ isLittleEndian),\n/* harmony export */   isMacintosh: () => (/* binding */ isMacintosh),\n/* harmony export */   isMobile: () => (/* binding */ isMobile),\n/* harmony export */   isNative: () => (/* binding */ isNative),\n/* harmony export */   isSafari: () => (/* binding */ isSafari),\n/* harmony export */   isWeb: () => (/* binding */ isWeb),\n/* harmony export */   isWebWorker: () => (/* binding */ isWebWorker),\n/* harmony export */   isWindows: () => (/* binding */ isWindows),\n/* harmony export */   language: () => (/* binding */ language),\n/* harmony export */   setTimeout0: () => (/* binding */ setTimeout0),\n/* harmony export */   setTimeout0IsFaster: () => (/* binding */ setTimeout0IsFaster),\n/* harmony export */   userAgent: () => (/* binding */ userAgent),\n/* harmony export */   webWorkerOrigin: () => (/* binding */ webWorkerOrigin)\n/* harmony export */ });\n/* harmony import */ var _nls_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../nls.js */ \"./node_modules/monaco-editor/esm/vs/nls.js\");\nvar _a;\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nconst LANGUAGE_DEFAULT = 'en';\nlet _isWindows = false;\nlet _isMacintosh = false;\nlet _isLinux = false;\nlet _isLinuxSnap = false;\nlet _isNative = false;\nlet _isWeb = false;\nlet _isElectron = false;\nlet _isIOS = false;\nlet _isCI = false;\nlet _isMobile = false;\nlet _locale = undefined;\nlet _language = LANGUAGE_DEFAULT;\nlet _platformLocale = LANGUAGE_DEFAULT;\nlet _translationsConfigFile = undefined;\nlet _userAgent = undefined;\nconst $globalThis = globalThis;\nlet nodeProcess = undefined;\nif (typeof $globalThis.vscode !== 'undefined' && typeof $globalThis.vscode.process !== 'undefined') {\n    // Native environment (sandboxed)\n    nodeProcess = $globalThis.vscode.process;\n}\nelse if (typeof process !== 'undefined') {\n    // Native environment (non-sandboxed)\n    nodeProcess = process;\n}\nconst isElectronProcess = typeof ((_a = nodeProcess === null || nodeProcess === void 0 ? void 0 : nodeProcess.versions) === null || _a === void 0 ? void 0 : _a.electron) === 'string';\nconst isElectronRenderer = isElectronProcess && (nodeProcess === null || nodeProcess === void 0 ? void 0 : nodeProcess.type) === 'renderer';\n// Web environment\nif (typeof navigator === 'object' && !isElectronRenderer) {\n    _userAgent = navigator.userAgent;\n    _isWindows = _userAgent.indexOf('Windows') >= 0;\n    _isMacintosh = _userAgent.indexOf('Macintosh') >= 0;\n    _isIOS = (_userAgent.indexOf('Macintosh') >= 0 || _userAgent.indexOf('iPad') >= 0 || _userAgent.indexOf('iPhone') >= 0) && !!navigator.maxTouchPoints && navigator.maxTouchPoints > 0;\n    _isLinux = _userAgent.indexOf('Linux') >= 0;\n    _isMobile = (_userAgent === null || _userAgent === void 0 ? void 0 : _userAgent.indexOf('Mobi')) >= 0;\n    _isWeb = true;\n    const configuredLocale = _nls_js__WEBPACK_IMPORTED_MODULE_0__.getConfiguredDefaultLocale(\n    // This call _must_ be done in the file that calls `nls.getConfiguredDefaultLocale`\n    // to ensure that the NLS AMD Loader plugin has been loaded and configured.\n    // This is because the loader plugin decides what the default locale is based on\n    // how it's able to resolve the strings.\n    _nls_js__WEBPACK_IMPORTED_MODULE_0__.localize({ key: 'ensureLoaderPluginIsLoaded', comment: ['{Locked}'] }, '_'));\n    _locale = configuredLocale || LANGUAGE_DEFAULT;\n    _language = _locale;\n    _platformLocale = navigator.language;\n}\n// Native environment\nelse if (typeof nodeProcess === 'object') {\n    _isWindows = (nodeProcess.platform === 'win32');\n    _isMacintosh = (nodeProcess.platform === 'darwin');\n    _isLinux = (nodeProcess.platform === 'linux');\n    _isLinuxSnap = _isLinux && !!nodeProcess.env['SNAP'] && !!nodeProcess.env['SNAP_REVISION'];\n    _isElectron = isElectronProcess;\n    _isCI = !!nodeProcess.env['CI'] || !!nodeProcess.env['BUILD_ARTIFACTSTAGINGDIRECTORY'];\n    _locale = LANGUAGE_DEFAULT;\n    _language = LANGUAGE_DEFAULT;\n    const rawNlsConfig = nodeProcess.env['VSCODE_NLS_CONFIG'];\n    if (rawNlsConfig) {\n        try {\n            const nlsConfig = JSON.parse(rawNlsConfig);\n            const resolved = nlsConfig.availableLanguages['*'];\n            _locale = nlsConfig.locale;\n            _platformLocale = nlsConfig.osLocale;\n            // VSCode's default language is 'en'\n            _language = resolved ? resolved : LANGUAGE_DEFAULT;\n            _translationsConfigFile = nlsConfig._translationsConfigFile;\n        }\n        catch (e) {\n        }\n    }\n    _isNative = true;\n}\n// Unknown environment\nelse {\n    console.error('Unable to resolve platform.');\n}\nlet _platform = 0 /* Platform.Web */;\nif (_isMacintosh) {\n    _platform = 1 /* Platform.Mac */;\n}\nelse if (_isWindows) {\n    _platform = 3 /* Platform.Windows */;\n}\nelse if (_isLinux) {\n    _platform = 2 /* Platform.Linux */;\n}\nconst isWindows = _isWindows;\nconst isMacintosh = _isMacintosh;\nconst isLinux = _isLinux;\nconst isNative = _isNative;\nconst isWeb = _isWeb;\nconst isWebWorker = (_isWeb && typeof $globalThis.importScripts === 'function');\nconst webWorkerOrigin = isWebWorker ? $globalThis.origin : undefined;\nconst isIOS = _isIOS;\nconst isMobile = _isMobile;\nconst userAgent = _userAgent;\n/**\n * The language used for the user interface. The format of\n * the string is all lower case (e.g. zh-tw for Traditional\n * Chinese)\n */\nconst language = _language;\nconst setTimeout0IsFaster = (typeof $globalThis.postMessage === 'function' && !$globalThis.importScripts);\n/**\n * See https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#:~:text=than%204%2C%20then-,set%20timeout%20to%204,-.\n *\n * Works similarly to `setTimeout(0)` but doesn't suffer from the 4ms artificial delay\n * that browsers set when the nesting level is > 5.\n */\nconst setTimeout0 = (() => {\n    if (setTimeout0IsFaster) {\n        const pending = [];\n        $globalThis.addEventListener('message', (e) => {\n            if (e.data && e.data.vscodeScheduleAsyncWork) {\n                for (let i = 0, len = pending.length; i < len; i++) {\n                    const candidate = pending[i];\n                    if (candidate.id === e.data.vscodeScheduleAsyncWork) {\n                        pending.splice(i, 1);\n                        candidate.callback();\n                        return;\n                    }\n                }\n            }\n        });\n        let lastId = 0;\n        return (callback) => {\n            const myId = ++lastId;\n            pending.push({\n                id: myId,\n                callback: callback\n            });\n            $globalThis.postMessage({ vscodeScheduleAsyncWork: myId }, '*');\n        };\n    }\n    return (callback) => setTimeout(callback);\n})();\nconst OS = (_isMacintosh || _isIOS ? 2 /* OperatingSystem.Macintosh */ : (_isWindows ? 1 /* OperatingSystem.Windows */ : 3 /* OperatingSystem.Linux */));\nlet _isLittleEndian = true;\nlet _isLittleEndianComputed = false;\nfunction isLittleEndian() {\n    if (!_isLittleEndianComputed) {\n        _isLittleEndianComputed = true;\n        const test = new Uint8Array(2);\n        test[0] = 1;\n        test[1] = 2;\n        const view = new Uint16Array(test.buffer);\n        _isLittleEndian = (view[0] === (2 << 8) + 1);\n    }\n    return _isLittleEndian;\n}\nconst isChrome = !!(userAgent && userAgent.indexOf('Chrome') >= 0);\nconst isFirefox = !!(userAgent && userAgent.indexOf('Firefox') >= 0);\nconst isSafari = !!(!isChrome && (userAgent && userAgent.indexOf('Safari') >= 0));\nconst isEdge = !!(userAgent && userAgent.indexOf('Edg/') >= 0);\nconst isAndroid = !!(userAgent && userAgent.indexOf('Android') >= 0);\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/platform.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/process.js":
/*!******************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/process.js ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   cwd: () => (/* binding */ cwd),\n/* harmony export */   env: () => (/* binding */ env),\n/* harmony export */   platform: () => (/* binding */ platform)\n/* harmony export */ });\n/* harmony import */ var _platform_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./platform.js */ \"./node_modules/monaco-editor/esm/vs/base/common/platform.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nlet safeProcess;\n// Native sandbox environment\nconst vscodeGlobal = globalThis.vscode;\nif (typeof vscodeGlobal !== 'undefined' && typeof vscodeGlobal.process !== 'undefined') {\n    const sandboxProcess = vscodeGlobal.process;\n    safeProcess = {\n        get platform() { return sandboxProcess.platform; },\n        get arch() { return sandboxProcess.arch; },\n        get env() { return sandboxProcess.env; },\n        cwd() { return sandboxProcess.cwd(); }\n    };\n}\n// Native node.js environment\nelse if (typeof process !== 'undefined') {\n    safeProcess = {\n        get platform() { return process.platform; },\n        get arch() { return process.arch; },\n        get env() { return process.env; },\n        cwd() { return process.env['VSCODE_CWD'] || process.cwd(); }\n    };\n}\n// Web environment\nelse {\n    safeProcess = {\n        // Supported\n        get platform() { return _platform_js__WEBPACK_IMPORTED_MODULE_0__.isWindows ? 'win32' : _platform_js__WEBPACK_IMPORTED_MODULE_0__.isMacintosh ? 'darwin' : 'linux'; },\n        get arch() { return undefined; /* arch is undefined in web */ },\n        // Unsupported\n        get env() { return {}; },\n        cwd() { return '/'; }\n    };\n}\n/**\n * Provides safe access to the `cwd` property in node.js, sandboxed or web\n * environments.\n *\n * Note: in web, this property is hardcoded to be `/`.\n *\n * @skipMangle\n */\nconst cwd = safeProcess.cwd;\n/**\n * Provides safe access to the `env` property in node.js, sandboxed or web\n * environments.\n *\n * Note: in web, this property is hardcoded to be `{}`.\n */\nconst env = safeProcess.env;\n/**\n * Provides safe access to the `platform` property in node.js, sandboxed or web\n * environments.\n */\nconst platform = safeProcess.platform;\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/process.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/stopwatch.js":
/*!********************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/stopwatch.js ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   StopWatch: () => (/* binding */ StopWatch)\n/* harmony export */ });\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nconst hasPerformanceNow = (globalThis.performance && typeof globalThis.performance.now === 'function');\nclass StopWatch {\n    static create(highResolution) {\n        return new StopWatch(highResolution);\n    }\n    constructor(highResolution) {\n        this._now = hasPerformanceNow && highResolution === false ? Date.now : globalThis.performance.now.bind(globalThis.performance);\n        this._startTime = this._now();\n        this._stopTime = -1;\n    }\n    stop() {\n        this._stopTime = this._now();\n    }\n    elapsed() {\n        if (this._stopTime !== -1) {\n            return this._stopTime - this._startTime;\n        }\n        return this._now() - this._startTime;\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/stopwatch.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/strings.js":
/*!******************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/strings.js ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AmbiguousCharacters: () => (/* binding */ AmbiguousCharacters),\n/* harmony export */   CodePointIterator: () => (/* binding */ CodePointIterator),\n/* harmony export */   GraphemeIterator: () => (/* binding */ GraphemeIterator),\n/* harmony export */   InvisibleCharacters: () => (/* binding */ InvisibleCharacters),\n/* harmony export */   UNUSUAL_LINE_TERMINATORS: () => (/* binding */ UNUSUAL_LINE_TERMINATORS),\n/* harmony export */   UTF8_BOM_CHARACTER: () => (/* binding */ UTF8_BOM_CHARACTER),\n/* harmony export */   commonPrefixLength: () => (/* binding */ commonPrefixLength),\n/* harmony export */   commonSuffixLength: () => (/* binding */ commonSuffixLength),\n/* harmony export */   compare: () => (/* binding */ compare),\n/* harmony export */   compareIgnoreCase: () => (/* binding */ compareIgnoreCase),\n/* harmony export */   compareSubstring: () => (/* binding */ compareSubstring),\n/* harmony export */   compareSubstringIgnoreCase: () => (/* binding */ compareSubstringIgnoreCase),\n/* harmony export */   computeCodePoint: () => (/* binding */ computeCodePoint),\n/* harmony export */   containsRTL: () => (/* binding */ containsRTL),\n/* harmony export */   containsUnusualLineTerminators: () => (/* binding */ containsUnusualLineTerminators),\n/* harmony export */   containsUppercaseCharacter: () => (/* binding */ containsUppercaseCharacter),\n/* harmony export */   convertSimple2RegExpPattern: () => (/* binding */ convertSimple2RegExpPattern),\n/* harmony export */   createRegExp: () => (/* binding */ createRegExp),\n/* harmony export */   equalsIgnoreCase: () => (/* binding */ equalsIgnoreCase),\n/* harmony export */   escape: () => (/* binding */ escape),\n/* harmony export */   escapeRegExpCharacters: () => (/* binding */ escapeRegExpCharacters),\n/* harmony export */   firstNonWhitespaceIndex: () => (/* binding */ firstNonWhitespaceIndex),\n/* harmony export */   format: () => (/* binding */ format),\n/* harmony export */   getCharContainingOffset: () => (/* binding */ getCharContainingOffset),\n/* harmony export */   getLeadingWhitespace: () => (/* binding */ getLeadingWhitespace),\n/* harmony export */   getLeftDeleteOffset: () => (/* binding */ getLeftDeleteOffset),\n/* harmony export */   getNextCodePoint: () => (/* binding */ getNextCodePoint),\n/* harmony export */   isAsciiDigit: () => (/* binding */ isAsciiDigit),\n/* harmony export */   isBasicASCII: () => (/* binding */ isBasicASCII),\n/* harmony export */   isEmojiImprecise: () => (/* binding */ isEmojiImprecise),\n/* harmony export */   isFalsyOrWhitespace: () => (/* binding */ isFalsyOrWhitespace),\n/* harmony export */   isFullWidthCharacter: () => (/* binding */ isFullWidthCharacter),\n/* harmony export */   isHighSurrogate: () => (/* binding */ isHighSurrogate),\n/* harmony export */   isLowSurrogate: () => (/* binding */ isLowSurrogate),\n/* harmony export */   isLowerAsciiLetter: () => (/* binding */ isLowerAsciiLetter),\n/* harmony export */   isUpperAsciiLetter: () => (/* binding */ isUpperAsciiLetter),\n/* harmony export */   lastNonWhitespaceIndex: () => (/* binding */ lastNonWhitespaceIndex),\n/* harmony export */   ltrim: () => (/* binding */ ltrim),\n/* harmony export */   nextCharLength: () => (/* binding */ nextCharLength),\n/* harmony export */   noBreakWhitespace: () => (/* binding */ noBreakWhitespace),\n/* harmony export */   prevCharLength: () => (/* binding */ prevCharLength),\n/* harmony export */   regExpLeadsToEndlessLoop: () => (/* binding */ regExpLeadsToEndlessLoop),\n/* harmony export */   rtrim: () => (/* binding */ rtrim),\n/* harmony export */   singleLetterHash: () => (/* binding */ singleLetterHash),\n/* harmony export */   splitLines: () => (/* binding */ splitLines),\n/* harmony export */   startsWithIgnoreCase: () => (/* binding */ startsWithIgnoreCase),\n/* harmony export */   startsWithUTF8BOM: () => (/* binding */ startsWithUTF8BOM),\n/* harmony export */   stripWildcards: () => (/* binding */ stripWildcards),\n/* harmony export */   trim: () => (/* binding */ trim)\n/* harmony export */ });\n/* harmony import */ var _cache_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cache.js */ \"./node_modules/monaco-editor/esm/vs/base/common/cache.js\");\n/* harmony import */ var _lazy_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lazy.js */ \"./node_modules/monaco-editor/esm/vs/base/common/lazy.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nvar _a;\n\n\nfunction isFalsyOrWhitespace(str) {\n    if (!str || typeof str !== 'string') {\n        return true;\n    }\n    return str.trim().length === 0;\n}\nconst _formatRegexp = /{(\\d+)}/g;\n/**\n * Helper to produce a string with a variable number of arguments. Insert variable segments\n * into the string using the {n} notation where N is the index of the argument following the string.\n * @param value string to which formatting is applied\n * @param args replacements for {n}-entries\n */\nfunction format(value, ...args) {\n    if (args.length === 0) {\n        return value;\n    }\n    return value.replace(_formatRegexp, function (match, group) {\n        const idx = parseInt(group, 10);\n        return isNaN(idx) || idx < 0 || idx >= args.length ?\n            match :\n            args[idx];\n    });\n}\n/**\n * Converts HTML characters inside the string to use entities instead. Makes the string safe from\n * being used e.g. in HTMLElement.innerHTML.\n */\nfunction escape(html) {\n    return html.replace(/[<>&]/g, function (match) {\n        switch (match) {\n            case '<': return '&lt;';\n            case '>': return '&gt;';\n            case '&': return '&amp;';\n            default: return match;\n        }\n    });\n}\n/**\n * Escapes regular expression characters in a given string\n */\nfunction escapeRegExpCharacters(value) {\n    return value.replace(/[\\\\\\{\\}\\*\\+\\?\\|\\^\\$\\.\\[\\]\\(\\)]/g, '\\\\$&');\n}\n/**\n * Removes all occurrences of needle from the beginning and end of haystack.\n * @param haystack string to trim\n * @param needle the thing to trim (default is a blank)\n */\nfunction trim(haystack, needle = ' ') {\n    const trimmed = ltrim(haystack, needle);\n    return rtrim(trimmed, needle);\n}\n/**\n * Removes all occurrences of needle from the beginning of haystack.\n * @param haystack string to trim\n * @param needle the thing to trim\n */\nfunction ltrim(haystack, needle) {\n    if (!haystack || !needle) {\n        return haystack;\n    }\n    const needleLen = needle.length;\n    if (needleLen === 0 || haystack.length === 0) {\n        return haystack;\n    }\n    let offset = 0;\n    while (haystack.indexOf(needle, offset) === offset) {\n        offset = offset + needleLen;\n    }\n    return haystack.substring(offset);\n}\n/**\n * Removes all occurrences of needle from the end of haystack.\n * @param haystack string to trim\n * @param needle the thing to trim\n */\nfunction rtrim(haystack, needle) {\n    if (!haystack || !needle) {\n        return haystack;\n    }\n    const needleLen = needle.length, haystackLen = haystack.length;\n    if (needleLen === 0 || haystackLen === 0) {\n        return haystack;\n    }\n    let offset = haystackLen, idx = -1;\n    while (true) {\n        idx = haystack.lastIndexOf(needle, offset - 1);\n        if (idx === -1 || idx + needleLen !== offset) {\n            break;\n        }\n        if (idx === 0) {\n            return '';\n        }\n        offset = idx;\n    }\n    return haystack.substring(0, offset);\n}\nfunction convertSimple2RegExpPattern(pattern) {\n    return pattern.replace(/[\\-\\\\\\{\\}\\+\\?\\|\\^\\$\\.\\,\\[\\]\\(\\)\\#\\s]/g, '\\\\$&').replace(/[\\*]/g, '.*');\n}\nfunction stripWildcards(pattern) {\n    return pattern.replace(/\\*/g, '');\n}\nfunction createRegExp(searchString, isRegex, options = {}) {\n    if (!searchString) {\n        throw new Error('Cannot create regex from empty string');\n    }\n    if (!isRegex) {\n        searchString = escapeRegExpCharacters(searchString);\n    }\n    if (options.wholeWord) {\n        if (!/\\B/.test(searchString.charAt(0))) {\n            searchString = '\\\\b' + searchString;\n        }\n        if (!/\\B/.test(searchString.charAt(searchString.length - 1))) {\n            searchString = searchString + '\\\\b';\n        }\n    }\n    let modifiers = '';\n    if (options.global) {\n        modifiers += 'g';\n    }\n    if (!options.matchCase) {\n        modifiers += 'i';\n    }\n    if (options.multiline) {\n        modifiers += 'm';\n    }\n    if (options.unicode) {\n        modifiers += 'u';\n    }\n    return new RegExp(searchString, modifiers);\n}\nfunction regExpLeadsToEndlessLoop(regexp) {\n    // Exit early if it's one of these special cases which are meant to match\n    // against an empty string\n    if (regexp.source === '^' || regexp.source === '^$' || regexp.source === '$' || regexp.source === '^\\\\s*$') {\n        return false;\n    }\n    // We check against an empty string. If the regular expression doesn't advance\n    // (e.g. ends in an endless loop) it will match an empty string.\n    const match = regexp.exec('');\n    return !!(match && regexp.lastIndex === 0);\n}\nfunction splitLines(str) {\n    return str.split(/\\r\\n|\\r|\\n/);\n}\n/**\n * Returns first index of the string that is not whitespace.\n * If string is empty or contains only whitespaces, returns -1\n */\nfunction firstNonWhitespaceIndex(str) {\n    for (let i = 0, len = str.length; i < len; i++) {\n        const chCode = str.charCodeAt(i);\n        if (chCode !== 32 /* CharCode.Space */ && chCode !== 9 /* CharCode.Tab */) {\n            return i;\n        }\n    }\n    return -1;\n}\n/**\n * Returns the leading whitespace of the string.\n * If the string contains only whitespaces, returns entire string\n */\nfunction getLeadingWhitespace(str, start = 0, end = str.length) {\n    for (let i = start; i < end; i++) {\n        const chCode = str.charCodeAt(i);\n        if (chCode !== 32 /* CharCode.Space */ && chCode !== 9 /* CharCode.Tab */) {\n            return str.substring(start, i);\n        }\n    }\n    return str.substring(start, end);\n}\n/**\n * Returns last index of the string that is not whitespace.\n * If string is empty or contains only whitespaces, returns -1\n */\nfunction lastNonWhitespaceIndex(str, startIndex = str.length - 1) {\n    for (let i = startIndex; i >= 0; i--) {\n        const chCode = str.charCodeAt(i);\n        if (chCode !== 32 /* CharCode.Space */ && chCode !== 9 /* CharCode.Tab */) {\n            return i;\n        }\n    }\n    return -1;\n}\nfunction compare(a, b) {\n    if (a < b) {\n        return -1;\n    }\n    else if (a > b) {\n        return 1;\n    }\n    else {\n        return 0;\n    }\n}\nfunction compareSubstring(a, b, aStart = 0, aEnd = a.length, bStart = 0, bEnd = b.length) {\n    for (; aStart < aEnd && bStart < bEnd; aStart++, bStart++) {\n        const codeA = a.charCodeAt(aStart);\n        const codeB = b.charCodeAt(bStart);\n        if (codeA < codeB) {\n            return -1;\n        }\n        else if (codeA > codeB) {\n            return 1;\n        }\n    }\n    const aLen = aEnd - aStart;\n    const bLen = bEnd - bStart;\n    if (aLen < bLen) {\n        return -1;\n    }\n    else if (aLen > bLen) {\n        return 1;\n    }\n    return 0;\n}\nfunction compareIgnoreCase(a, b) {\n    return compareSubstringIgnoreCase(a, b, 0, a.length, 0, b.length);\n}\nfunction compareSubstringIgnoreCase(a, b, aStart = 0, aEnd = a.length, bStart = 0, bEnd = b.length) {\n    for (; aStart < aEnd && bStart < bEnd; aStart++, bStart++) {\n        let codeA = a.charCodeAt(aStart);\n        let codeB = b.charCodeAt(bStart);\n        if (codeA === codeB) {\n            // equal\n            continue;\n        }\n        if (codeA >= 128 || codeB >= 128) {\n            // not ASCII letters -> fallback to lower-casing strings\n            return compareSubstring(a.toLowerCase(), b.toLowerCase(), aStart, aEnd, bStart, bEnd);\n        }\n        // mapper lower-case ascii letter onto upper-case varinats\n        // [97-122] (lower ascii) --> [65-90] (upper ascii)\n        if (isLowerAsciiLetter(codeA)) {\n            codeA -= 32;\n        }\n        if (isLowerAsciiLetter(codeB)) {\n            codeB -= 32;\n        }\n        // compare both code points\n        const diff = codeA - codeB;\n        if (diff === 0) {\n            continue;\n        }\n        return diff;\n    }\n    const aLen = aEnd - aStart;\n    const bLen = bEnd - bStart;\n    if (aLen < bLen) {\n        return -1;\n    }\n    else if (aLen > bLen) {\n        return 1;\n    }\n    return 0;\n}\nfunction isAsciiDigit(code) {\n    return code >= 48 /* CharCode.Digit0 */ && code <= 57 /* CharCode.Digit9 */;\n}\nfunction isLowerAsciiLetter(code) {\n    return code >= 97 /* CharCode.a */ && code <= 122 /* CharCode.z */;\n}\nfunction isUpperAsciiLetter(code) {\n    return code >= 65 /* CharCode.A */ && code <= 90 /* CharCode.Z */;\n}\nfunction equalsIgnoreCase(a, b) {\n    return a.length === b.length && compareSubstringIgnoreCase(a, b) === 0;\n}\nfunction startsWithIgnoreCase(str, candidate) {\n    const candidateLength = candidate.length;\n    if (candidate.length > str.length) {\n        return false;\n    }\n    return compareSubstringIgnoreCase(str, candidate, 0, candidateLength) === 0;\n}\n/**\n * @returns the length of the common prefix of the two strings.\n */\nfunction commonPrefixLength(a, b) {\n    const len = Math.min(a.length, b.length);\n    let i;\n    for (i = 0; i < len; i++) {\n        if (a.charCodeAt(i) !== b.charCodeAt(i)) {\n            return i;\n        }\n    }\n    return len;\n}\n/**\n * @returns the length of the common suffix of the two strings.\n */\nfunction commonSuffixLength(a, b) {\n    const len = Math.min(a.length, b.length);\n    let i;\n    const aLastIndex = a.length - 1;\n    const bLastIndex = b.length - 1;\n    for (i = 0; i < len; i++) {\n        if (a.charCodeAt(aLastIndex - i) !== b.charCodeAt(bLastIndex - i)) {\n            return i;\n        }\n    }\n    return len;\n}\n/**\n * See http://en.wikipedia.org/wiki/Surrogate_pair\n */\nfunction isHighSurrogate(charCode) {\n    return (0xD800 <= charCode && charCode <= 0xDBFF);\n}\n/**\n * See http://en.wikipedia.org/wiki/Surrogate_pair\n */\nfunction isLowSurrogate(charCode) {\n    return (0xDC00 <= charCode && charCode <= 0xDFFF);\n}\n/**\n * See http://en.wikipedia.org/wiki/Surrogate_pair\n */\nfunction computeCodePoint(highSurrogate, lowSurrogate) {\n    return ((highSurrogate - 0xD800) << 10) + (lowSurrogate - 0xDC00) + 0x10000;\n}\n/**\n * get the code point that begins at offset `offset`\n */\nfunction getNextCodePoint(str, len, offset) {\n    const charCode = str.charCodeAt(offset);\n    if (isHighSurrogate(charCode) && offset + 1 < len) {\n        const nextCharCode = str.charCodeAt(offset + 1);\n        if (isLowSurrogate(nextCharCode)) {\n            return computeCodePoint(charCode, nextCharCode);\n        }\n    }\n    return charCode;\n}\n/**\n * get the code point that ends right before offset `offset`\n */\nfunction getPrevCodePoint(str, offset) {\n    const charCode = str.charCodeAt(offset - 1);\n    if (isLowSurrogate(charCode) && offset > 1) {\n        const prevCharCode = str.charCodeAt(offset - 2);\n        if (isHighSurrogate(prevCharCode)) {\n            return computeCodePoint(prevCharCode, charCode);\n        }\n    }\n    return charCode;\n}\nclass CodePointIterator {\n    get offset() {\n        return this._offset;\n    }\n    constructor(str, offset = 0) {\n        this._str = str;\n        this._len = str.length;\n        this._offset = offset;\n    }\n    setOffset(offset) {\n        this._offset = offset;\n    }\n    prevCodePoint() {\n        const codePoint = getPrevCodePoint(this._str, this._offset);\n        this._offset -= (codePoint >= 65536 /* Constants.UNICODE_SUPPLEMENTARY_PLANE_BEGIN */ ? 2 : 1);\n        return codePoint;\n    }\n    nextCodePoint() {\n        const codePoint = getNextCodePoint(this._str, this._len, this._offset);\n        this._offset += (codePoint >= 65536 /* Constants.UNICODE_SUPPLEMENTARY_PLANE_BEGIN */ ? 2 : 1);\n        return codePoint;\n    }\n    eol() {\n        return (this._offset >= this._len);\n    }\n}\nclass GraphemeIterator {\n    get offset() {\n        return this._iterator.offset;\n    }\n    constructor(str, offset = 0) {\n        this._iterator = new CodePointIterator(str, offset);\n    }\n    nextGraphemeLength() {\n        const graphemeBreakTree = GraphemeBreakTree.getInstance();\n        const iterator = this._iterator;\n        const initialOffset = iterator.offset;\n        let graphemeBreakType = graphemeBreakTree.getGraphemeBreakType(iterator.nextCodePoint());\n        while (!iterator.eol()) {\n            const offset = iterator.offset;\n            const nextGraphemeBreakType = graphemeBreakTree.getGraphemeBreakType(iterator.nextCodePoint());\n            if (breakBetweenGraphemeBreakType(graphemeBreakType, nextGraphemeBreakType)) {\n                // move iterator back\n                iterator.setOffset(offset);\n                break;\n            }\n            graphemeBreakType = nextGraphemeBreakType;\n        }\n        return (iterator.offset - initialOffset);\n    }\n    prevGraphemeLength() {\n        const graphemeBreakTree = GraphemeBreakTree.getInstance();\n        const iterator = this._iterator;\n        const initialOffset = iterator.offset;\n        let graphemeBreakType = graphemeBreakTree.getGraphemeBreakType(iterator.prevCodePoint());\n        while (iterator.offset > 0) {\n            const offset = iterator.offset;\n            const prevGraphemeBreakType = graphemeBreakTree.getGraphemeBreakType(iterator.prevCodePoint());\n            if (breakBetweenGraphemeBreakType(prevGraphemeBreakType, graphemeBreakType)) {\n                // move iterator back\n                iterator.setOffset(offset);\n                break;\n            }\n            graphemeBreakType = prevGraphemeBreakType;\n        }\n        return (initialOffset - iterator.offset);\n    }\n    eol() {\n        return this._iterator.eol();\n    }\n}\nfunction nextCharLength(str, initialOffset) {\n    const iterator = new GraphemeIterator(str, initialOffset);\n    return iterator.nextGraphemeLength();\n}\nfunction prevCharLength(str, initialOffset) {\n    const iterator = new GraphemeIterator(str, initialOffset);\n    return iterator.prevGraphemeLength();\n}\nfunction getCharContainingOffset(str, offset) {\n    if (offset > 0 && isLowSurrogate(str.charCodeAt(offset))) {\n        offset--;\n    }\n    const endOffset = offset + nextCharLength(str, offset);\n    const startOffset = endOffset - prevCharLength(str, endOffset);\n    return [startOffset, endOffset];\n}\nlet CONTAINS_RTL = undefined;\nfunction makeContainsRtl() {\n    // Generated using https://github.com/alexdima/unicode-utils/blob/main/rtl-test.js\n    return /(?:[\\u05BE\\u05C0\\u05C3\\u05C6\\u05D0-\\u05F4\\u0608\\u060B\\u060D\\u061B-\\u064A\\u066D-\\u066F\\u0671-\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1-\\u07EA\\u07F4\\u07F5\\u07FA\\u07FE-\\u0815\\u081A\\u0824\\u0828\\u0830-\\u0858\\u085E-\\u088E\\u08A0-\\u08C9\\u200F\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFD3D\\uFD50-\\uFDC7\\uFDF0-\\uFDFC\\uFE70-\\uFEFC]|\\uD802[\\uDC00-\\uDD1B\\uDD20-\\uDE00\\uDE10-\\uDE35\\uDE40-\\uDEE4\\uDEEB-\\uDF35\\uDF40-\\uDFFF]|\\uD803[\\uDC00-\\uDD23\\uDE80-\\uDEA9\\uDEAD-\\uDF45\\uDF51-\\uDF81\\uDF86-\\uDFF6]|\\uD83A[\\uDC00-\\uDCCF\\uDD00-\\uDD43\\uDD4B-\\uDFFF]|\\uD83B[\\uDC00-\\uDEBB])/;\n}\n/**\n * Returns true if `str` contains any Unicode character that is classified as \"R\" or \"AL\".\n */\nfunction containsRTL(str) {\n    if (!CONTAINS_RTL) {\n        CONTAINS_RTL = makeContainsRtl();\n    }\n    return CONTAINS_RTL.test(str);\n}\nconst IS_BASIC_ASCII = /^[\\t\\n\\r\\x20-\\x7E]*$/;\n/**\n * Returns true if `str` contains only basic ASCII characters in the range 32 - 126 (including 32 and 126) or \\n, \\r, \\t\n */\nfunction isBasicASCII(str) {\n    return IS_BASIC_ASCII.test(str);\n}\nconst UNUSUAL_LINE_TERMINATORS = /[\\u2028\\u2029]/; // LINE SEPARATOR (LS) or PARAGRAPH SEPARATOR (PS)\n/**\n * Returns true if `str` contains unusual line terminators, like LS or PS\n */\nfunction containsUnusualLineTerminators(str) {\n    return UNUSUAL_LINE_TERMINATORS.test(str);\n}\nfunction isFullWidthCharacter(charCode) {\n    // Do a cheap trick to better support wrapping of wide characters, treat them as 2 columns\n    // http://jrgraphix.net/research/unicode_blocks.php\n    //          2E80 - 2EFF   CJK Radicals Supplement\n    //          2F00 - 2FDF   Kangxi Radicals\n    //          2FF0 - 2FFF   Ideographic Description Characters\n    //          3000 - 303F   CJK Symbols and Punctuation\n    //          3040 - 309F   Hiragana\n    //          30A0 - 30FF   Katakana\n    //          3100 - 312F   Bopomofo\n    //          3130 - 318F   Hangul Compatibility Jamo\n    //          3190 - 319F   Kanbun\n    //          31A0 - 31BF   Bopomofo Extended\n    //          31F0 - 31FF   Katakana Phonetic Extensions\n    //          3200 - 32FF   Enclosed CJK Letters and Months\n    //          3300 - 33FF   CJK Compatibility\n    //          3400 - 4DBF   CJK Unified Ideographs Extension A\n    //          4DC0 - 4DFF   Yijing Hexagram Symbols\n    //          4E00 - 9FFF   CJK Unified Ideographs\n    //          A000 - A48F   Yi Syllables\n    //          A490 - A4CF   Yi Radicals\n    //          AC00 - D7AF   Hangul Syllables\n    // [IGNORE] D800 - DB7F   High Surrogates\n    // [IGNORE] DB80 - DBFF   High Private Use Surrogates\n    // [IGNORE] DC00 - DFFF   Low Surrogates\n    // [IGNORE] E000 - F8FF   Private Use Area\n    //          F900 - FAFF   CJK Compatibility Ideographs\n    // [IGNORE] FB00 - FB4F   Alphabetic Presentation Forms\n    // [IGNORE] FB50 - FDFF   Arabic Presentation Forms-A\n    // [IGNORE] FE00 - FE0F   Variation Selectors\n    // [IGNORE] FE20 - FE2F   Combining Half Marks\n    // [IGNORE] FE30 - FE4F   CJK Compatibility Forms\n    // [IGNORE] FE50 - FE6F   Small Form Variants\n    // [IGNORE] FE70 - FEFF   Arabic Presentation Forms-B\n    //          FF00 - FFEF   Halfwidth and Fullwidth Forms\n    //               [https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms]\n    //               of which FF01 - FF5E fullwidth ASCII of 21 to 7E\n    // [IGNORE]    and FF65 - FFDC halfwidth of Katakana and Hangul\n    // [IGNORE] FFF0 - FFFF   Specials\n    return ((charCode >= 0x2E80 && charCode <= 0xD7AF)\n        || (charCode >= 0xF900 && charCode <= 0xFAFF)\n        || (charCode >= 0xFF01 && charCode <= 0xFF5E));\n}\n/**\n * A fast function (therefore imprecise) to check if code points are emojis.\n * Generated using https://github.com/alexdima/unicode-utils/blob/main/emoji-test.js\n */\nfunction isEmojiImprecise(x) {\n    return ((x >= 0x1F1E6 && x <= 0x1F1FF) || (x === 8986) || (x === 8987) || (x === 9200)\n        || (x === 9203) || (x >= 9728 && x <= 10175) || (x === 11088) || (x === 11093)\n        || (x >= 127744 && x <= 128591) || (x >= 128640 && x <= 128764)\n        || (x >= 128992 && x <= 129008) || (x >= 129280 && x <= 129535)\n        || (x >= 129648 && x <= 129782));\n}\n// -- UTF-8 BOM\nconst UTF8_BOM_CHARACTER = String.fromCharCode(65279 /* CharCode.UTF8_BOM */);\nfunction startsWithUTF8BOM(str) {\n    return !!(str && str.length > 0 && str.charCodeAt(0) === 65279 /* CharCode.UTF8_BOM */);\n}\nfunction containsUppercaseCharacter(target, ignoreEscapedChars = false) {\n    if (!target) {\n        return false;\n    }\n    if (ignoreEscapedChars) {\n        target = target.replace(/\\\\./g, '');\n    }\n    return target.toLowerCase() !== target;\n}\n/**\n * Produces 'a'-'z', followed by 'A'-'Z'... followed by 'a'-'z', etc.\n */\nfunction singleLetterHash(n) {\n    const LETTERS_CNT = (90 /* CharCode.Z */ - 65 /* CharCode.A */ + 1);\n    n = n % (2 * LETTERS_CNT);\n    if (n < LETTERS_CNT) {\n        return String.fromCharCode(97 /* CharCode.a */ + n);\n    }\n    return String.fromCharCode(65 /* CharCode.A */ + n - LETTERS_CNT);\n}\nfunction breakBetweenGraphemeBreakType(breakTypeA, breakTypeB) {\n    // http://www.unicode.org/reports/tr29/#Grapheme_Cluster_Boundary_Rules\n    // !!! Let's make the common case a bit faster\n    if (breakTypeA === 0 /* GraphemeBreakType.Other */) {\n        // see https://www.unicode.org/Public/13.0.0/ucd/auxiliary/GraphemeBreakTest-13.0.0d10.html#table\n        return (breakTypeB !== 5 /* GraphemeBreakType.Extend */ && breakTypeB !== 7 /* GraphemeBreakType.SpacingMark */);\n    }\n    // Do not break between a CR and LF. Otherwise, break before and after controls.\n    // GB3                                        CR × LF\n    // GB4                       (Control | CR | LF) ÷\n    // GB5                                           ÷ (Control | CR | LF)\n    if (breakTypeA === 2 /* GraphemeBreakType.CR */) {\n        if (breakTypeB === 3 /* GraphemeBreakType.LF */) {\n            return false; // GB3\n        }\n    }\n    if (breakTypeA === 4 /* GraphemeBreakType.Control */ || breakTypeA === 2 /* GraphemeBreakType.CR */ || breakTypeA === 3 /* GraphemeBreakType.LF */) {\n        return true; // GB4\n    }\n    if (breakTypeB === 4 /* GraphemeBreakType.Control */ || breakTypeB === 2 /* GraphemeBreakType.CR */ || breakTypeB === 3 /* GraphemeBreakType.LF */) {\n        return true; // GB5\n    }\n    // Do not break Hangul syllable sequences.\n    // GB6                                         L × (L | V | LV | LVT)\n    // GB7                                  (LV | V) × (V | T)\n    // GB8                                 (LVT | T) × T\n    if (breakTypeA === 8 /* GraphemeBreakType.L */) {\n        if (breakTypeB === 8 /* GraphemeBreakType.L */ || breakTypeB === 9 /* GraphemeBreakType.V */ || breakTypeB === 11 /* GraphemeBreakType.LV */ || breakTypeB === 12 /* GraphemeBreakType.LVT */) {\n            return false; // GB6\n        }\n    }\n    if (breakTypeA === 11 /* GraphemeBreakType.LV */ || breakTypeA === 9 /* GraphemeBreakType.V */) {\n        if (breakTypeB === 9 /* GraphemeBreakType.V */ || breakTypeB === 10 /* GraphemeBreakType.T */) {\n            return false; // GB7\n        }\n    }\n    if (breakTypeA === 12 /* GraphemeBreakType.LVT */ || breakTypeA === 10 /* GraphemeBreakType.T */) {\n        if (breakTypeB === 10 /* GraphemeBreakType.T */) {\n            return false; // GB8\n        }\n    }\n    // Do not break before extending characters or ZWJ.\n    // GB9                                           × (Extend | ZWJ)\n    if (breakTypeB === 5 /* GraphemeBreakType.Extend */ || breakTypeB === 13 /* GraphemeBreakType.ZWJ */) {\n        return false; // GB9\n    }\n    // The GB9a and GB9b rules only apply to extended grapheme clusters:\n    // Do not break before SpacingMarks, or after Prepend characters.\n    // GB9a                                          × SpacingMark\n    // GB9b                                  Prepend ×\n    if (breakTypeB === 7 /* GraphemeBreakType.SpacingMark */) {\n        return false; // GB9a\n    }\n    if (breakTypeA === 1 /* GraphemeBreakType.Prepend */) {\n        return false; // GB9b\n    }\n    // Do not break within emoji modifier sequences or emoji zwj sequences.\n    // GB11    \\p{Extended_Pictographic} Extend* ZWJ × \\p{Extended_Pictographic}\n    if (breakTypeA === 13 /* GraphemeBreakType.ZWJ */ && breakTypeB === 14 /* GraphemeBreakType.Extended_Pictographic */) {\n        // Note: we are not implementing the rule entirely here to avoid introducing states\n        return false; // GB11\n    }\n    // GB12                          sot (RI RI)* RI × RI\n    // GB13                        [^RI] (RI RI)* RI × RI\n    if (breakTypeA === 6 /* GraphemeBreakType.Regional_Indicator */ && breakTypeB === 6 /* GraphemeBreakType.Regional_Indicator */) {\n        // Note: we are not implementing the rule entirely here to avoid introducing states\n        return false; // GB12 & GB13\n    }\n    // GB999                                     Any ÷ Any\n    return true;\n}\nclass GraphemeBreakTree {\n    static getInstance() {\n        if (!GraphemeBreakTree._INSTANCE) {\n            GraphemeBreakTree._INSTANCE = new GraphemeBreakTree();\n        }\n        return GraphemeBreakTree._INSTANCE;\n    }\n    constructor() {\n        this._data = getGraphemeBreakRawData();\n    }\n    getGraphemeBreakType(codePoint) {\n        // !!! Let's make 7bit ASCII a bit faster: 0..31\n        if (codePoint < 32) {\n            if (codePoint === 10 /* CharCode.LineFeed */) {\n                return 3 /* GraphemeBreakType.LF */;\n            }\n            if (codePoint === 13 /* CharCode.CarriageReturn */) {\n                return 2 /* GraphemeBreakType.CR */;\n            }\n            return 4 /* GraphemeBreakType.Control */;\n        }\n        // !!! Let's make 7bit ASCII a bit faster: 32..126\n        if (codePoint < 127) {\n            return 0 /* GraphemeBreakType.Other */;\n        }\n        const data = this._data;\n        const nodeCount = data.length / 3;\n        let nodeIndex = 1;\n        while (nodeIndex <= nodeCount) {\n            if (codePoint < data[3 * nodeIndex]) {\n                // go left\n                nodeIndex = 2 * nodeIndex;\n            }\n            else if (codePoint > data[3 * nodeIndex + 1]) {\n                // go right\n                nodeIndex = 2 * nodeIndex + 1;\n            }\n            else {\n                // hit\n                return data[3 * nodeIndex + 2];\n            }\n        }\n        return 0 /* GraphemeBreakType.Other */;\n    }\n}\nGraphemeBreakTree._INSTANCE = null;\nfunction getGraphemeBreakRawData() {\n    // generated using https://github.com/alexdima/unicode-utils/blob/main/grapheme-break.js\n    return JSON.parse('[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]');\n}\n//#endregion\n/**\n * Computes the offset after performing a left delete on the given string,\n * while considering unicode grapheme/emoji rules.\n*/\nfunction getLeftDeleteOffset(offset, str) {\n    if (offset === 0) {\n        return 0;\n    }\n    // Try to delete emoji part.\n    const emojiOffset = getOffsetBeforeLastEmojiComponent(offset, str);\n    if (emojiOffset !== undefined) {\n        return emojiOffset;\n    }\n    // Otherwise, just skip a single code point.\n    const iterator = new CodePointIterator(str, offset);\n    iterator.prevCodePoint();\n    return iterator.offset;\n}\nfunction getOffsetBeforeLastEmojiComponent(initialOffset, str) {\n    // See https://www.unicode.org/reports/tr51/tr51-14.html#EBNF_and_Regex for the\n    // structure of emojis.\n    const iterator = new CodePointIterator(str, initialOffset);\n    let codePoint = iterator.prevCodePoint();\n    // Skip modifiers\n    while ((isEmojiModifier(codePoint) || codePoint === 65039 /* CodePoint.emojiVariantSelector */ || codePoint === 8419 /* CodePoint.enclosingKeyCap */)) {\n        if (iterator.offset === 0) {\n            // Cannot skip modifier, no preceding emoji base.\n            return undefined;\n        }\n        codePoint = iterator.prevCodePoint();\n    }\n    // Expect base emoji\n    if (!isEmojiImprecise(codePoint)) {\n        // Unexpected code point, not a valid emoji.\n        return undefined;\n    }\n    let resultOffset = iterator.offset;\n    if (resultOffset > 0) {\n        // Skip optional ZWJ code points that combine multiple emojis.\n        // In theory, we should check if that ZWJ actually combines multiple emojis\n        // to prevent deleting ZWJs in situations we didn't account for.\n        const optionalZwjCodePoint = iterator.prevCodePoint();\n        if (optionalZwjCodePoint === 8205 /* CodePoint.zwj */) {\n            resultOffset = iterator.offset;\n        }\n    }\n    return resultOffset;\n}\nfunction isEmojiModifier(codePoint) {\n    return 0x1F3FB <= codePoint && codePoint <= 0x1F3FF;\n}\nconst noBreakWhitespace = '\\xa0';\nclass AmbiguousCharacters {\n    static getInstance(locales) {\n        return _a.cache.get(Array.from(locales));\n    }\n    static getLocales() {\n        return _a._locales.value;\n    }\n    constructor(confusableDictionary) {\n        this.confusableDictionary = confusableDictionary;\n    }\n    isAmbiguous(codePoint) {\n        return this.confusableDictionary.has(codePoint);\n    }\n    /**\n     * Returns the non basic ASCII code point that the given code point can be confused,\n     * or undefined if such code point does note exist.\n     */\n    getPrimaryConfusable(codePoint) {\n        return this.confusableDictionary.get(codePoint);\n    }\n    getConfusableCodePoints() {\n        return new Set(this.confusableDictionary.keys());\n    }\n}\n_a = AmbiguousCharacters;\nAmbiguousCharacters.ambiguousCharacterData = new _lazy_js__WEBPACK_IMPORTED_MODULE_1__.Lazy(() => {\n    // Generated using https://github.com/hediet/vscode-unicode-data\n    // Stored as key1, value1, key2, value2, ...\n    return JSON.parse('{\\\"_common\\\":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],\\\"_default\\\":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],\\\"cs\\\":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],\\\"de\\\":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],\\\"es\\\":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],\\\"fr\\\":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],\\\"it\\\":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],\\\"ja\\\":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],\\\"ko\\\":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],\\\"pl\\\":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],\\\"pt-BR\\\":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],\\\"qps-ploc\\\":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],\\\"ru\\\":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],\\\"tr\\\":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],\\\"zh-hans\\\":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],\\\"zh-hant\\\":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}');\n});\nAmbiguousCharacters.cache = new _cache_js__WEBPACK_IMPORTED_MODULE_0__.LRUCachedFunction((locales) => {\n    function arrayToMap(arr) {\n        const result = new Map();\n        for (let i = 0; i < arr.length; i += 2) {\n            result.set(arr[i], arr[i + 1]);\n        }\n        return result;\n    }\n    function mergeMaps(map1, map2) {\n        const result = new Map(map1);\n        for (const [key, value] of map2) {\n            result.set(key, value);\n        }\n        return result;\n    }\n    function intersectMaps(map1, map2) {\n        if (!map1) {\n            return map2;\n        }\n        const result = new Map();\n        for (const [key, value] of map1) {\n            if (map2.has(key)) {\n                result.set(key, value);\n            }\n        }\n        return result;\n    }\n    const data = _a.ambiguousCharacterData.value;\n    let filteredLocales = locales.filter((l) => !l.startsWith('_') && l in data);\n    if (filteredLocales.length === 0) {\n        filteredLocales = ['_default'];\n    }\n    let languageSpecificMap = undefined;\n    for (const locale of filteredLocales) {\n        const map = arrayToMap(data[locale]);\n        languageSpecificMap = intersectMaps(languageSpecificMap, map);\n    }\n    const commonMap = arrayToMap(data['_common']);\n    const map = mergeMaps(commonMap, languageSpecificMap);\n    return new _a(map);\n});\nAmbiguousCharacters._locales = new _lazy_js__WEBPACK_IMPORTED_MODULE_1__.Lazy(() => Object.keys(_a.ambiguousCharacterData.value).filter((k) => !k.startsWith('_')));\nclass InvisibleCharacters {\n    static getRawData() {\n        // Generated using https://github.com/hediet/vscode-unicode-data\n        return JSON.parse('[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]');\n    }\n    static getData() {\n        if (!this._data) {\n            this._data = new Set(InvisibleCharacters.getRawData());\n        }\n        return this._data;\n    }\n    static isInvisibleCharacter(codePoint) {\n        return InvisibleCharacters.getData().has(codePoint);\n    }\n    static get codePoints() {\n        return InvisibleCharacters.getData();\n    }\n}\nInvisibleCharacters._data = undefined;\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/strings.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/types.js":
/*!****************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/types.js ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   assertIsDefined: () => (/* binding */ assertIsDefined),\n/* harmony export */   assertType: () => (/* binding */ assertType),\n/* harmony export */   isBoolean: () => (/* binding */ isBoolean),\n/* harmony export */   isDefined: () => (/* binding */ isDefined),\n/* harmony export */   isFunction: () => (/* binding */ isFunction),\n/* harmony export */   isIterable: () => (/* binding */ isIterable),\n/* harmony export */   isNumber: () => (/* binding */ isNumber),\n/* harmony export */   isObject: () => (/* binding */ isObject),\n/* harmony export */   isString: () => (/* binding */ isString),\n/* harmony export */   isTypedArray: () => (/* binding */ isTypedArray),\n/* harmony export */   isUndefined: () => (/* binding */ isUndefined),\n/* harmony export */   isUndefinedOrNull: () => (/* binding */ isUndefinedOrNull),\n/* harmony export */   validateConstraint: () => (/* binding */ validateConstraint),\n/* harmony export */   validateConstraints: () => (/* binding */ validateConstraints)\n/* harmony export */ });\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n/**\n * @returns whether the provided parameter is a JavaScript String or not.\n */\nfunction isString(str) {\n    return (typeof str === 'string');\n}\n/**\n * @returns whether the provided parameter is of type `object` but **not**\n *\t`null`, an `array`, a `regexp`, nor a `date`.\n */\nfunction isObject(obj) {\n    // The method can't do a type cast since there are type (like strings) which\n    // are subclasses of any put not positvely matched by the function. Hence type\n    // narrowing results in wrong results.\n    return typeof obj === 'object'\n        && obj !== null\n        && !Array.isArray(obj)\n        && !(obj instanceof RegExp)\n        && !(obj instanceof Date);\n}\n/**\n * @returns whether the provided parameter is of type `Buffer` or Uint8Array dervived type\n */\nfunction isTypedArray(obj) {\n    const TypedArray = Object.getPrototypeOf(Uint8Array);\n    return typeof obj === 'object'\n        && obj instanceof TypedArray;\n}\n/**\n * In **contrast** to just checking `typeof` this will return `false` for `NaN`.\n * @returns whether the provided parameter is a JavaScript Number or not.\n */\nfunction isNumber(obj) {\n    return (typeof obj === 'number' && !isNaN(obj));\n}\n/**\n * @returns whether the provided parameter is an Iterable, casting to the given generic\n */\nfunction isIterable(obj) {\n    return !!obj && typeof obj[Symbol.iterator] === 'function';\n}\n/**\n * @returns whether the provided parameter is a JavaScript Boolean or not.\n */\nfunction isBoolean(obj) {\n    return (obj === true || obj === false);\n}\n/**\n * @returns whether the provided parameter is undefined.\n */\nfunction isUndefined(obj) {\n    return (typeof obj === 'undefined');\n}\n/**\n * @returns whether the provided parameter is defined.\n */\nfunction isDefined(arg) {\n    return !isUndefinedOrNull(arg);\n}\n/**\n * @returns whether the provided parameter is undefined or null.\n */\nfunction isUndefinedOrNull(obj) {\n    return (isUndefined(obj) || obj === null);\n}\nfunction assertType(condition, type) {\n    if (!condition) {\n        throw new Error(type ? `Unexpected type, expected '${type}'` : 'Unexpected type');\n    }\n}\n/**\n * Asserts that the argument passed in is neither undefined nor null.\n */\nfunction assertIsDefined(arg) {\n    if (isUndefinedOrNull(arg)) {\n        throw new Error('Assertion Failed: argument is undefined or null');\n    }\n    return arg;\n}\n/**\n * @returns whether the provided parameter is a JavaScript Function or not.\n */\nfunction isFunction(obj) {\n    return (typeof obj === 'function');\n}\nfunction validateConstraints(args, constraints) {\n    const len = Math.min(args.length, constraints.length);\n    for (let i = 0; i < len; i++) {\n        validateConstraint(args[i], constraints[i]);\n    }\n}\nfunction validateConstraint(arg, constraint) {\n    if (isString(constraint)) {\n        if (typeof arg !== constraint) {\n            throw new Error(`argument does not match constraint: typeof ${constraint}`);\n        }\n    }\n    else if (isFunction(constraint)) {\n        try {\n            if (arg instanceof constraint) {\n                return;\n            }\n        }\n        catch (_a) {\n            // ignore\n        }\n        if (!isUndefinedOrNull(arg) && arg.constructor === constraint) {\n            return;\n        }\n        if (constraint.length === 1 && constraint.call(undefined, arg) === true) {\n            return;\n        }\n        throw new Error(`argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true`);\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/types.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/uint.js":
/*!***************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/uint.js ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   toUint32: () => (/* binding */ toUint32),\n/* harmony export */   toUint8: () => (/* binding */ toUint8)\n/* harmony export */ });\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nfunction toUint8(v) {\n    if (v < 0) {\n        return 0;\n    }\n    if (v > 255 /* Constants.MAX_UINT_8 */) {\n        return 255 /* Constants.MAX_UINT_8 */;\n    }\n    return v | 0;\n}\nfunction toUint32(v) {\n    if (v < 0) {\n        return 0;\n    }\n    if (v > 4294967295 /* Constants.MAX_UINT_32 */) {\n        return 4294967295 /* Constants.MAX_UINT_32 */;\n    }\n    return v | 0;\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/uint.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/uri.js":
/*!**************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/uri.js ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   URI: () => (/* binding */ URI),\n/* harmony export */   uriToFsPath: () => (/* binding */ uriToFsPath)\n/* harmony export */ });\n/* harmony import */ var _path_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./path.js */ \"./node_modules/monaco-editor/esm/vs/base/common/path.js\");\n/* harmony import */ var _platform_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./platform.js */ \"./node_modules/monaco-editor/esm/vs/base/common/platform.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n\nconst _schemePattern = /^\\w[\\w\\d+.-]*$/;\nconst _singleSlashStart = /^\\//;\nconst _doubleSlashStart = /^\\/\\//;\nfunction _validateUri(ret, _strict) {\n    // scheme, must be set\n    if (!ret.scheme && _strict) {\n        throw new Error(`[UriError]: Scheme is missing: {scheme: \"\", authority: \"${ret.authority}\", path: \"${ret.path}\", query: \"${ret.query}\", fragment: \"${ret.fragment}\"}`);\n    }\n    // scheme, https://tools.ietf.org/html/rfc3986#section-3.1\n    // ALPHA *( ALPHA / DIGIT / \"+\" / \"-\" / \".\" )\n    if (ret.scheme && !_schemePattern.test(ret.scheme)) {\n        throw new Error('[UriError]: Scheme contains illegal characters.');\n    }\n    // path, http://tools.ietf.org/html/rfc3986#section-3.3\n    // If a URI contains an authority component, then the path component\n    // must either be empty or begin with a slash (\"/\") character.  If a URI\n    // does not contain an authority component, then the path cannot begin\n    // with two slash characters (\"//\").\n    if (ret.path) {\n        if (ret.authority) {\n            if (!_singleSlashStart.test(ret.path)) {\n                throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash (\"/\") character');\n            }\n        }\n        else {\n            if (_doubleSlashStart.test(ret.path)) {\n                throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters (\"//\")');\n            }\n        }\n    }\n}\n// for a while we allowed uris *without* schemes and this is the migration\n// for them, e.g. an uri without scheme and without strict-mode warns and falls\n// back to the file-scheme. that should cause the least carnage and still be a\n// clear warning\nfunction _schemeFix(scheme, _strict) {\n    if (!scheme && !_strict) {\n        return 'file';\n    }\n    return scheme;\n}\n// implements a bit of https://tools.ietf.org/html/rfc3986#section-5\nfunction _referenceResolution(scheme, path) {\n    // the slash-character is our 'default base' as we don't\n    // support constructing URIs relative to other URIs. This\n    // also means that we alter and potentially break paths.\n    // see https://tools.ietf.org/html/rfc3986#section-5.1.4\n    switch (scheme) {\n        case 'https':\n        case 'http':\n        case 'file':\n            if (!path) {\n                path = _slash;\n            }\n            else if (path[0] !== _slash) {\n                path = _slash + path;\n            }\n            break;\n    }\n    return path;\n}\nconst _empty = '';\nconst _slash = '/';\nconst _regexp = /^(([^:/?#]+?):)?(\\/\\/([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?/;\n/**\n * Uniform Resource Identifier (URI) http://tools.ietf.org/html/rfc3986.\n * This class is a simple parser which creates the basic component parts\n * (http://tools.ietf.org/html/rfc3986#section-3) with minimal validation\n * and encoding.\n *\n * ```txt\n *       foo://example.com:8042/over/there?name=ferret#nose\n *       \\_/   \\______________/\\_________/ \\_________/ \\__/\n *        |           |            |            |        |\n *     scheme     authority       path        query   fragment\n *        |   _____________________|__\n *       / \\ /                        \\\n *       urn:example:animal:ferret:nose\n * ```\n */\nclass URI {\n    static isUri(thing) {\n        if (thing instanceof URI) {\n            return true;\n        }\n        if (!thing) {\n            return false;\n        }\n        return typeof thing.authority === 'string'\n            && typeof thing.fragment === 'string'\n            && typeof thing.path === 'string'\n            && typeof thing.query === 'string'\n            && typeof thing.scheme === 'string'\n            && typeof thing.fsPath === 'string'\n            && typeof thing.with === 'function'\n            && typeof thing.toString === 'function';\n    }\n    /**\n     * @internal\n     */\n    constructor(schemeOrData, authority, path, query, fragment, _strict = false) {\n        if (typeof schemeOrData === 'object') {\n            this.scheme = schemeOrData.scheme || _empty;\n            this.authority = schemeOrData.authority || _empty;\n            this.path = schemeOrData.path || _empty;\n            this.query = schemeOrData.query || _empty;\n            this.fragment = schemeOrData.fragment || _empty;\n            // no validation because it's this URI\n            // that creates uri components.\n            // _validateUri(this);\n        }\n        else {\n            this.scheme = _schemeFix(schemeOrData, _strict);\n            this.authority = authority || _empty;\n            this.path = _referenceResolution(this.scheme, path || _empty);\n            this.query = query || _empty;\n            this.fragment = fragment || _empty;\n            _validateUri(this, _strict);\n        }\n    }\n    // ---- filesystem path -----------------------\n    /**\n     * Returns a string representing the corresponding file system path of this URI.\n     * Will handle UNC paths, normalizes windows drive letters to lower-case, and uses the\n     * platform specific path separator.\n     *\n     * * Will *not* validate the path for invalid characters and semantics.\n     * * Will *not* look at the scheme of this URI.\n     * * The result shall *not* be used for display purposes but for accessing a file on disk.\n     *\n     *\n     * The *difference* to `URI#path` is the use of the platform specific separator and the handling\n     * of UNC paths. See the below sample of a file-uri with an authority (UNC path).\n     *\n     * ```ts\n        const u = URI.parse('file://server/c$/folder/file.txt')\n        u.authority === 'server'\n        u.path === '/shares/c$/file.txt'\n        u.fsPath === '\\\\server\\c$\\folder\\file.txt'\n    ```\n     *\n     * Using `URI#path` to read a file (using fs-apis) would not be enough because parts of the path,\n     * namely the server name, would be missing. Therefore `URI#fsPath` exists - it's sugar to ease working\n     * with URIs that represent files on disk (`file` scheme).\n     */\n    get fsPath() {\n        // if (this.scheme !== 'file') {\n        // \tconsole.warn(`[UriError] calling fsPath with scheme ${this.scheme}`);\n        // }\n        return uriToFsPath(this, false);\n    }\n    // ---- modify to new -------------------------\n    with(change) {\n        if (!change) {\n            return this;\n        }\n        let { scheme, authority, path, query, fragment } = change;\n        if (scheme === undefined) {\n            scheme = this.scheme;\n        }\n        else if (scheme === null) {\n            scheme = _empty;\n        }\n        if (authority === undefined) {\n            authority = this.authority;\n        }\n        else if (authority === null) {\n            authority = _empty;\n        }\n        if (path === undefined) {\n            path = this.path;\n        }\n        else if (path === null) {\n            path = _empty;\n        }\n        if (query === undefined) {\n            query = this.query;\n        }\n        else if (query === null) {\n            query = _empty;\n        }\n        if (fragment === undefined) {\n            fragment = this.fragment;\n        }\n        else if (fragment === null) {\n            fragment = _empty;\n        }\n        if (scheme === this.scheme\n            && authority === this.authority\n            && path === this.path\n            && query === this.query\n            && fragment === this.fragment) {\n            return this;\n        }\n        return new Uri(scheme, authority, path, query, fragment);\n    }\n    // ---- parse & validate ------------------------\n    /**\n     * Creates a new URI from a string, e.g. `http://www.example.com/some/path`,\n     * `file:///usr/home`, or `scheme:with/path`.\n     *\n     * @param value A string which represents an URI (see `URI#toString`).\n     */\n    static parse(value, _strict = false) {\n        const match = _regexp.exec(value);\n        if (!match) {\n            return new Uri(_empty, _empty, _empty, _empty, _empty);\n        }\n        return new Uri(match[2] || _empty, percentDecode(match[4] || _empty), percentDecode(match[5] || _empty), percentDecode(match[7] || _empty), percentDecode(match[9] || _empty), _strict);\n    }\n    /**\n     * Creates a new URI from a file system path, e.g. `c:\\my\\files`,\n     * `/usr/home`, or `\\\\server\\share\\some\\path`.\n     *\n     * The *difference* between `URI#parse` and `URI#file` is that the latter treats the argument\n     * as path, not as stringified-uri. E.g. `URI.file(path)` is **not the same as**\n     * `URI.parse('file://' + path)` because the path might contain characters that are\n     * interpreted (# and ?). See the following sample:\n     * ```ts\n    const good = URI.file('/coding/c#/project1');\n    good.scheme === 'file';\n    good.path === '/coding/c#/project1';\n    good.fragment === '';\n    const bad = URI.parse('file://' + '/coding/c#/project1');\n    bad.scheme === 'file';\n    bad.path === '/coding/c'; // path is now broken\n    bad.fragment === '/project1';\n    ```\n     *\n     * @param path A file system path (see `URI#fsPath`)\n     */\n    static file(path) {\n        let authority = _empty;\n        // normalize to fwd-slashes on windows,\n        // on other systems bwd-slashes are valid\n        // filename character, eg /f\\oo/ba\\r.txt\n        if (_platform_js__WEBPACK_IMPORTED_MODULE_1__.isWindows) {\n            path = path.replace(/\\\\/g, _slash);\n        }\n        // check for authority as used in UNC shares\n        // or use the path as given\n        if (path[0] === _slash && path[1] === _slash) {\n            const idx = path.indexOf(_slash, 2);\n            if (idx === -1) {\n                authority = path.substring(2);\n                path = _slash;\n            }\n            else {\n                authority = path.substring(2, idx);\n                path = path.substring(idx) || _slash;\n            }\n        }\n        return new Uri('file', authority, path, _empty, _empty);\n    }\n    /**\n     * Creates new URI from uri components.\n     *\n     * Unless `strict` is `true` the scheme is defaults to be `file`. This function performs\n     * validation and should be used for untrusted uri components retrieved from storage,\n     * user input, command arguments etc\n     */\n    static from(components, strict) {\n        const result = new Uri(components.scheme, components.authority, components.path, components.query, components.fragment, strict);\n        return result;\n    }\n    /**\n     * Join a URI path with path fragments and normalizes the resulting path.\n     *\n     * @param uri The input URI.\n     * @param pathFragment The path fragment to add to the URI path.\n     * @returns The resulting URI.\n     */\n    static joinPath(uri, ...pathFragment) {\n        if (!uri.path) {\n            throw new Error(`[UriError]: cannot call joinPath on URI without path`);\n        }\n        let newPath;\n        if (_platform_js__WEBPACK_IMPORTED_MODULE_1__.isWindows && uri.scheme === 'file') {\n            newPath = URI.file(_path_js__WEBPACK_IMPORTED_MODULE_0__.win32.join(uriToFsPath(uri, true), ...pathFragment)).path;\n        }\n        else {\n            newPath = _path_js__WEBPACK_IMPORTED_MODULE_0__.posix.join(uri.path, ...pathFragment);\n        }\n        return uri.with({ path: newPath });\n    }\n    // ---- printing/externalize ---------------------------\n    /**\n     * Creates a string representation for this URI. It's guaranteed that calling\n     * `URI.parse` with the result of this function creates an URI which is equal\n     * to this URI.\n     *\n     * * The result shall *not* be used for display purposes but for externalization or transport.\n     * * The result will be encoded using the percentage encoding and encoding happens mostly\n     * ignore the scheme-specific encoding rules.\n     *\n     * @param skipEncoding Do not encode the result, default is `false`\n     */\n    toString(skipEncoding = false) {\n        return _asFormatted(this, skipEncoding);\n    }\n    toJSON() {\n        return this;\n    }\n    static revive(data) {\n        var _a, _b;\n        if (!data) {\n            return data;\n        }\n        else if (data instanceof URI) {\n            return data;\n        }\n        else {\n            const result = new Uri(data);\n            result._formatted = (_a = data.external) !== null && _a !== void 0 ? _a : null;\n            result._fsPath = data._sep === _pathSepMarker ? (_b = data.fsPath) !== null && _b !== void 0 ? _b : null : null;\n            return result;\n        }\n    }\n}\nconst _pathSepMarker = _platform_js__WEBPACK_IMPORTED_MODULE_1__.isWindows ? 1 : undefined;\n// This class exists so that URI is compatible with vscode.Uri (API).\nclass Uri extends URI {\n    constructor() {\n        super(...arguments);\n        this._formatted = null;\n        this._fsPath = null;\n    }\n    get fsPath() {\n        if (!this._fsPath) {\n            this._fsPath = uriToFsPath(this, false);\n        }\n        return this._fsPath;\n    }\n    toString(skipEncoding = false) {\n        if (!skipEncoding) {\n            if (!this._formatted) {\n                this._formatted = _asFormatted(this, false);\n            }\n            return this._formatted;\n        }\n        else {\n            // we don't cache that\n            return _asFormatted(this, true);\n        }\n    }\n    toJSON() {\n        const res = {\n            $mid: 1 /* MarshalledId.Uri */\n        };\n        // cached state\n        if (this._fsPath) {\n            res.fsPath = this._fsPath;\n            res._sep = _pathSepMarker;\n        }\n        if (this._formatted) {\n            res.external = this._formatted;\n        }\n        //--- uri components\n        if (this.path) {\n            res.path = this.path;\n        }\n        // TODO\n        // this isn't correct and can violate the UriComponents contract but\n        // this is part of the vscode.Uri API and we shouldn't change how that\n        // works anymore\n        if (this.scheme) {\n            res.scheme = this.scheme;\n        }\n        if (this.authority) {\n            res.authority = this.authority;\n        }\n        if (this.query) {\n            res.query = this.query;\n        }\n        if (this.fragment) {\n            res.fragment = this.fragment;\n        }\n        return res;\n    }\n}\n// reserved characters: https://tools.ietf.org/html/rfc3986#section-2.2\nconst encodeTable = {\n    [58 /* CharCode.Colon */]: '%3A', // gen-delims\n    [47 /* CharCode.Slash */]: '%2F',\n    [63 /* CharCode.QuestionMark */]: '%3F',\n    [35 /* CharCode.Hash */]: '%23',\n    [91 /* CharCode.OpenSquareBracket */]: '%5B',\n    [93 /* CharCode.CloseSquareBracket */]: '%5D',\n    [64 /* CharCode.AtSign */]: '%40',\n    [33 /* CharCode.ExclamationMark */]: '%21', // sub-delims\n    [36 /* CharCode.DollarSign */]: '%24',\n    [38 /* CharCode.Ampersand */]: '%26',\n    [39 /* CharCode.SingleQuote */]: '%27',\n    [40 /* CharCode.OpenParen */]: '%28',\n    [41 /* CharCode.CloseParen */]: '%29',\n    [42 /* CharCode.Asterisk */]: '%2A',\n    [43 /* CharCode.Plus */]: '%2B',\n    [44 /* CharCode.Comma */]: '%2C',\n    [59 /* CharCode.Semicolon */]: '%3B',\n    [61 /* CharCode.Equals */]: '%3D',\n    [32 /* CharCode.Space */]: '%20',\n};\nfunction encodeURIComponentFast(uriComponent, isPath, isAuthority) {\n    let res = undefined;\n    let nativeEncodePos = -1;\n    for (let pos = 0; pos < uriComponent.length; pos++) {\n        const code = uriComponent.charCodeAt(pos);\n        // unreserved characters: https://tools.ietf.org/html/rfc3986#section-2.3\n        if ((code >= 97 /* CharCode.a */ && code <= 122 /* CharCode.z */)\n            || (code >= 65 /* CharCode.A */ && code <= 90 /* CharCode.Z */)\n            || (code >= 48 /* CharCode.Digit0 */ && code <= 57 /* CharCode.Digit9 */)\n            || code === 45 /* CharCode.Dash */\n            || code === 46 /* CharCode.Period */\n            || code === 95 /* CharCode.Underline */\n            || code === 126 /* CharCode.Tilde */\n            || (isPath && code === 47 /* CharCode.Slash */)\n            || (isAuthority && code === 91 /* CharCode.OpenSquareBracket */)\n            || (isAuthority && code === 93 /* CharCode.CloseSquareBracket */)\n            || (isAuthority && code === 58 /* CharCode.Colon */)) {\n            // check if we are delaying native encode\n            if (nativeEncodePos !== -1) {\n                res += encodeURIComponent(uriComponent.substring(nativeEncodePos, pos));\n                nativeEncodePos = -1;\n            }\n            // check if we write into a new string (by default we try to return the param)\n            if (res !== undefined) {\n                res += uriComponent.charAt(pos);\n            }\n        }\n        else {\n            // encoding needed, we need to allocate a new string\n            if (res === undefined) {\n                res = uriComponent.substr(0, pos);\n            }\n            // check with default table first\n            const escaped = encodeTable[code];\n            if (escaped !== undefined) {\n                // check if we are delaying native encode\n                if (nativeEncodePos !== -1) {\n                    res += encodeURIComponent(uriComponent.substring(nativeEncodePos, pos));\n                    nativeEncodePos = -1;\n                }\n                // append escaped variant to result\n                res += escaped;\n            }\n            else if (nativeEncodePos === -1) {\n                // use native encode only when needed\n                nativeEncodePos = pos;\n            }\n        }\n    }\n    if (nativeEncodePos !== -1) {\n        res += encodeURIComponent(uriComponent.substring(nativeEncodePos));\n    }\n    return res !== undefined ? res : uriComponent;\n}\nfunction encodeURIComponentMinimal(path) {\n    let res = undefined;\n    for (let pos = 0; pos < path.length; pos++) {\n        const code = path.charCodeAt(pos);\n        if (code === 35 /* CharCode.Hash */ || code === 63 /* CharCode.QuestionMark */) {\n            if (res === undefined) {\n                res = path.substr(0, pos);\n            }\n            res += encodeTable[code];\n        }\n        else {\n            if (res !== undefined) {\n                res += path[pos];\n            }\n        }\n    }\n    return res !== undefined ? res : path;\n}\n/**\n * Compute `fsPath` for the given uri\n */\nfunction uriToFsPath(uri, keepDriveLetterCasing) {\n    let value;\n    if (uri.authority && uri.path.length > 1 && uri.scheme === 'file') {\n        // unc path: file://shares/c$/far/boo\n        value = `//${uri.authority}${uri.path}`;\n    }\n    else if (uri.path.charCodeAt(0) === 47 /* CharCode.Slash */\n        && (uri.path.charCodeAt(1) >= 65 /* CharCode.A */ && uri.path.charCodeAt(1) <= 90 /* CharCode.Z */ || uri.path.charCodeAt(1) >= 97 /* CharCode.a */ && uri.path.charCodeAt(1) <= 122 /* CharCode.z */)\n        && uri.path.charCodeAt(2) === 58 /* CharCode.Colon */) {\n        if (!keepDriveLetterCasing) {\n            // windows drive letter: file:///c:/far/boo\n            value = uri.path[1].toLowerCase() + uri.path.substr(2);\n        }\n        else {\n            value = uri.path.substr(1);\n        }\n    }\n    else {\n        // other path\n        value = uri.path;\n    }\n    if (_platform_js__WEBPACK_IMPORTED_MODULE_1__.isWindows) {\n        value = value.replace(/\\//g, '\\\\');\n    }\n    return value;\n}\n/**\n * Create the external version of a uri\n */\nfunction _asFormatted(uri, skipEncoding) {\n    const encoder = !skipEncoding\n        ? encodeURIComponentFast\n        : encodeURIComponentMinimal;\n    let res = '';\n    let { scheme, authority, path, query, fragment } = uri;\n    if (scheme) {\n        res += scheme;\n        res += ':';\n    }\n    if (authority || scheme === 'file') {\n        res += _slash;\n        res += _slash;\n    }\n    if (authority) {\n        let idx = authority.indexOf('@');\n        if (idx !== -1) {\n            // <user>@<auth>\n            const userinfo = authority.substr(0, idx);\n            authority = authority.substr(idx + 1);\n            idx = userinfo.lastIndexOf(':');\n            if (idx === -1) {\n                res += encoder(userinfo, false, false);\n            }\n            else {\n                // <user>:<pass>@<auth>\n                res += encoder(userinfo.substr(0, idx), false, false);\n                res += ':';\n                res += encoder(userinfo.substr(idx + 1), false, true);\n            }\n            res += '@';\n        }\n        authority = authority.toLowerCase();\n        idx = authority.lastIndexOf(':');\n        if (idx === -1) {\n            res += encoder(authority, false, true);\n        }\n        else {\n            // <auth>:<port>\n            res += encoder(authority.substr(0, idx), false, true);\n            res += authority.substr(idx);\n        }\n    }\n    if (path) {\n        // lower-case windows drive letters in /C:/fff or C:/fff\n        if (path.length >= 3 && path.charCodeAt(0) === 47 /* CharCode.Slash */ && path.charCodeAt(2) === 58 /* CharCode.Colon */) {\n            const code = path.charCodeAt(1);\n            if (code >= 65 /* CharCode.A */ && code <= 90 /* CharCode.Z */) {\n                path = `/${String.fromCharCode(code + 32)}:${path.substr(3)}`; // \"/c:\".length === 3\n            }\n        }\n        else if (path.length >= 2 && path.charCodeAt(1) === 58 /* CharCode.Colon */) {\n            const code = path.charCodeAt(0);\n            if (code >= 65 /* CharCode.A */ && code <= 90 /* CharCode.Z */) {\n                path = `${String.fromCharCode(code + 32)}:${path.substr(2)}`; // \"/c:\".length === 3\n            }\n        }\n        // encode the rest of the path\n        res += encoder(path, true, false);\n    }\n    if (query) {\n        res += '?';\n        res += encoder(query, false, false);\n    }\n    if (fragment) {\n        res += '#';\n        res += !skipEncoding ? encodeURIComponentFast(fragment, false, false) : fragment;\n    }\n    return res;\n}\n// --- decode\nfunction decodeURIComponentGraceful(str) {\n    try {\n        return decodeURIComponent(str);\n    }\n    catch (_a) {\n        if (str.length > 3) {\n            return str.substr(0, 3) + decodeURIComponentGraceful(str.substr(3));\n        }\n        else {\n            return str;\n        }\n    }\n}\nconst _rEncodedAsHex = /(%[0-9A-Za-z][0-9A-Za-z])+/g;\nfunction percentDecode(str) {\n    if (!str.match(_rEncodedAsHex)) {\n        return str;\n    }\n    return str.replace(_rEncodedAsHex, (match) => decodeURIComponentGraceful(match));\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/uri.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/base/common/worker/simpleWorker.js":
/*!******************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/base/common/worker/simpleWorker.js ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SimpleWorkerClient: () => (/* binding */ SimpleWorkerClient),\n/* harmony export */   SimpleWorkerServer: () => (/* binding */ SimpleWorkerServer),\n/* harmony export */   create: () => (/* binding */ create),\n/* harmony export */   logOnceWebWorkerWarning: () => (/* binding */ logOnceWebWorkerWarning)\n/* harmony export */ });\n/* harmony import */ var _errors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../errors.js */ \"./node_modules/monaco-editor/esm/vs/base/common/errors.js\");\n/* harmony import */ var _event_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../event.js */ \"./node_modules/monaco-editor/esm/vs/base/common/event.js\");\n/* harmony import */ var _lifecycle_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../lifecycle.js */ \"./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js\");\n/* harmony import */ var _objects_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../objects.js */ \"./node_modules/monaco-editor/esm/vs/base/common/objects.js\");\n/* harmony import */ var _platform_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../platform.js */ \"./node_modules/monaco-editor/esm/vs/base/common/platform.js\");\n/* harmony import */ var _strings_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../strings.js */ \"./node_modules/monaco-editor/esm/vs/base/common/strings.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n\n\n\n\n\nconst INITIALIZE = '$initialize';\nlet webWorkerWarningLogged = false;\nfunction logOnceWebWorkerWarning(err) {\n    if (!_platform_js__WEBPACK_IMPORTED_MODULE_4__.isWeb) {\n        // running tests\n        return;\n    }\n    if (!webWorkerWarningLogged) {\n        webWorkerWarningLogged = true;\n        console.warn('Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq');\n    }\n    console.warn(err.message);\n}\nclass RequestMessage {\n    constructor(vsWorker, req, method, args) {\n        this.vsWorker = vsWorker;\n        this.req = req;\n        this.method = method;\n        this.args = args;\n        this.type = 0 /* MessageType.Request */;\n    }\n}\nclass ReplyMessage {\n    constructor(vsWorker, seq, res, err) {\n        this.vsWorker = vsWorker;\n        this.seq = seq;\n        this.res = res;\n        this.err = err;\n        this.type = 1 /* MessageType.Reply */;\n    }\n}\nclass SubscribeEventMessage {\n    constructor(vsWorker, req, eventName, arg) {\n        this.vsWorker = vsWorker;\n        this.req = req;\n        this.eventName = eventName;\n        this.arg = arg;\n        this.type = 2 /* MessageType.SubscribeEvent */;\n    }\n}\nclass EventMessage {\n    constructor(vsWorker, req, event) {\n        this.vsWorker = vsWorker;\n        this.req = req;\n        this.event = event;\n        this.type = 3 /* MessageType.Event */;\n    }\n}\nclass UnsubscribeEventMessage {\n    constructor(vsWorker, req) {\n        this.vsWorker = vsWorker;\n        this.req = req;\n        this.type = 4 /* MessageType.UnsubscribeEvent */;\n    }\n}\nclass SimpleWorkerProtocol {\n    constructor(handler) {\n        this._workerId = -1;\n        this._handler = handler;\n        this._lastSentReq = 0;\n        this._pendingReplies = Object.create(null);\n        this._pendingEmitters = new Map();\n        this._pendingEvents = new Map();\n    }\n    setWorkerId(workerId) {\n        this._workerId = workerId;\n    }\n    sendMessage(method, args) {\n        const req = String(++this._lastSentReq);\n        return new Promise((resolve, reject) => {\n            this._pendingReplies[req] = {\n                resolve: resolve,\n                reject: reject\n            };\n            this._send(new RequestMessage(this._workerId, req, method, args));\n        });\n    }\n    listen(eventName, arg) {\n        let req = null;\n        const emitter = new _event_js__WEBPACK_IMPORTED_MODULE_1__.Emitter({\n            onWillAddFirstListener: () => {\n                req = String(++this._lastSentReq);\n                this._pendingEmitters.set(req, emitter);\n                this._send(new SubscribeEventMessage(this._workerId, req, eventName, arg));\n            },\n            onDidRemoveLastListener: () => {\n                this._pendingEmitters.delete(req);\n                this._send(new UnsubscribeEventMessage(this._workerId, req));\n                req = null;\n            }\n        });\n        return emitter.event;\n    }\n    handleMessage(message) {\n        if (!message || !message.vsWorker) {\n            return;\n        }\n        if (this._workerId !== -1 && message.vsWorker !== this._workerId) {\n            return;\n        }\n        this._handleMessage(message);\n    }\n    _handleMessage(msg) {\n        switch (msg.type) {\n            case 1 /* MessageType.Reply */:\n                return this._handleReplyMessage(msg);\n            case 0 /* MessageType.Request */:\n                return this._handleRequestMessage(msg);\n            case 2 /* MessageType.SubscribeEvent */:\n                return this._handleSubscribeEventMessage(msg);\n            case 3 /* MessageType.Event */:\n                return this._handleEventMessage(msg);\n            case 4 /* MessageType.UnsubscribeEvent */:\n                return this._handleUnsubscribeEventMessage(msg);\n        }\n    }\n    _handleReplyMessage(replyMessage) {\n        if (!this._pendingReplies[replyMessage.seq]) {\n            console.warn('Got reply to unknown seq');\n            return;\n        }\n        const reply = this._pendingReplies[replyMessage.seq];\n        delete this._pendingReplies[replyMessage.seq];\n        if (replyMessage.err) {\n            let err = replyMessage.err;\n            if (replyMessage.err.$isError) {\n                err = new Error();\n                err.name = replyMessage.err.name;\n                err.message = replyMessage.err.message;\n                err.stack = replyMessage.err.stack;\n            }\n            reply.reject(err);\n            return;\n        }\n        reply.resolve(replyMessage.res);\n    }\n    _handleRequestMessage(requestMessage) {\n        const req = requestMessage.req;\n        const result = this._handler.handleMessage(requestMessage.method, requestMessage.args);\n        result.then((r) => {\n            this._send(new ReplyMessage(this._workerId, req, r, undefined));\n        }, (e) => {\n            if (e.detail instanceof Error) {\n                // Loading errors have a detail property that points to the actual error\n                e.detail = (0,_errors_js__WEBPACK_IMPORTED_MODULE_0__.transformErrorForSerialization)(e.detail);\n            }\n            this._send(new ReplyMessage(this._workerId, req, undefined, (0,_errors_js__WEBPACK_IMPORTED_MODULE_0__.transformErrorForSerialization)(e)));\n        });\n    }\n    _handleSubscribeEventMessage(msg) {\n        const req = msg.req;\n        const disposable = this._handler.handleEvent(msg.eventName, msg.arg)((event) => {\n            this._send(new EventMessage(this._workerId, req, event));\n        });\n        this._pendingEvents.set(req, disposable);\n    }\n    _handleEventMessage(msg) {\n        if (!this._pendingEmitters.has(msg.req)) {\n            console.warn('Got event for unknown req');\n            return;\n        }\n        this._pendingEmitters.get(msg.req).fire(msg.event);\n    }\n    _handleUnsubscribeEventMessage(msg) {\n        if (!this._pendingEvents.has(msg.req)) {\n            console.warn('Got unsubscribe for unknown req');\n            return;\n        }\n        this._pendingEvents.get(msg.req).dispose();\n        this._pendingEvents.delete(msg.req);\n    }\n    _send(msg) {\n        const transfer = [];\n        if (msg.type === 0 /* MessageType.Request */) {\n            for (let i = 0; i < msg.args.length; i++) {\n                if (msg.args[i] instanceof ArrayBuffer) {\n                    transfer.push(msg.args[i]);\n                }\n            }\n        }\n        else if (msg.type === 1 /* MessageType.Reply */) {\n            if (msg.res instanceof ArrayBuffer) {\n                transfer.push(msg.res);\n            }\n        }\n        this._handler.sendMessage(msg, transfer);\n    }\n}\n/**\n * Main thread side\n */\nclass SimpleWorkerClient extends _lifecycle_js__WEBPACK_IMPORTED_MODULE_2__.Disposable {\n    constructor(workerFactory, moduleId, host) {\n        super();\n        let lazyProxyReject = null;\n        this._worker = this._register(workerFactory.create('vs/base/common/worker/simpleWorker', (msg) => {\n            this._protocol.handleMessage(msg);\n        }, (err) => {\n            // in Firefox, web workers fail lazily :(\n            // we will reject the proxy\n            lazyProxyReject === null || lazyProxyReject === void 0 ? void 0 : lazyProxyReject(err);\n        }));\n        this._protocol = new SimpleWorkerProtocol({\n            sendMessage: (msg, transfer) => {\n                this._worker.postMessage(msg, transfer);\n            },\n            handleMessage: (method, args) => {\n                if (typeof host[method] !== 'function') {\n                    return Promise.reject(new Error('Missing method ' + method + ' on main thread host.'));\n                }\n                try {\n                    return Promise.resolve(host[method].apply(host, args));\n                }\n                catch (e) {\n                    return Promise.reject(e);\n                }\n            },\n            handleEvent: (eventName, arg) => {\n                if (propertyIsDynamicEvent(eventName)) {\n                    const event = host[eventName].call(host, arg);\n                    if (typeof event !== 'function') {\n                        throw new Error(`Missing dynamic event ${eventName} on main thread host.`);\n                    }\n                    return event;\n                }\n                if (propertyIsEvent(eventName)) {\n                    const event = host[eventName];\n                    if (typeof event !== 'function') {\n                        throw new Error(`Missing event ${eventName} on main thread host.`);\n                    }\n                    return event;\n                }\n                throw new Error(`Malformed event name ${eventName}`);\n            }\n        });\n        this._protocol.setWorkerId(this._worker.getId());\n        // Gather loader configuration\n        let loaderConfiguration = null;\n        const globalRequire = globalThis.require;\n        if (typeof globalRequire !== 'undefined' && typeof globalRequire.getConfig === 'function') {\n            // Get the configuration from the Monaco AMD Loader\n            loaderConfiguration = globalRequire.getConfig();\n        }\n        else if (typeof globalThis.requirejs !== 'undefined') {\n            // Get the configuration from requirejs\n            loaderConfiguration = globalThis.requirejs.s.contexts._.config;\n        }\n        const hostMethods = (0,_objects_js__WEBPACK_IMPORTED_MODULE_3__.getAllMethodNames)(host);\n        // Send initialize message\n        this._onModuleLoaded = this._protocol.sendMessage(INITIALIZE, [\n            this._worker.getId(),\n            JSON.parse(JSON.stringify(loaderConfiguration)),\n            moduleId,\n            hostMethods,\n        ]);\n        // Create proxy to loaded code\n        const proxyMethodRequest = (method, args) => {\n            return this._request(method, args);\n        };\n        const proxyListen = (eventName, arg) => {\n            return this._protocol.listen(eventName, arg);\n        };\n        this._lazyProxy = new Promise((resolve, reject) => {\n            lazyProxyReject = reject;\n            this._onModuleLoaded.then((availableMethods) => {\n                resolve(createProxyObject(availableMethods, proxyMethodRequest, proxyListen));\n            }, (e) => {\n                reject(e);\n                this._onError('Worker failed to load ' + moduleId, e);\n            });\n        });\n    }\n    getProxyObject() {\n        return this._lazyProxy;\n    }\n    _request(method, args) {\n        return new Promise((resolve, reject) => {\n            this._onModuleLoaded.then(() => {\n                this._protocol.sendMessage(method, args).then(resolve, reject);\n            }, reject);\n        });\n    }\n    _onError(message, error) {\n        console.error(message);\n        console.info(error);\n    }\n}\nfunction propertyIsEvent(name) {\n    // Assume a property is an event if it has a form of \"onSomething\"\n    return name[0] === 'o' && name[1] === 'n' && _strings_js__WEBPACK_IMPORTED_MODULE_5__.isUpperAsciiLetter(name.charCodeAt(2));\n}\nfunction propertyIsDynamicEvent(name) {\n    // Assume a property is a dynamic event (a method that returns an event) if it has a form of \"onDynamicSomething\"\n    return /^onDynamic/.test(name) && _strings_js__WEBPACK_IMPORTED_MODULE_5__.isUpperAsciiLetter(name.charCodeAt(9));\n}\nfunction createProxyObject(methodNames, invoke, proxyListen) {\n    const createProxyMethod = (method) => {\n        return function () {\n            const args = Array.prototype.slice.call(arguments, 0);\n            return invoke(method, args);\n        };\n    };\n    const createProxyDynamicEvent = (eventName) => {\n        return function (arg) {\n            return proxyListen(eventName, arg);\n        };\n    };\n    const result = {};\n    for (const methodName of methodNames) {\n        if (propertyIsDynamicEvent(methodName)) {\n            result[methodName] = createProxyDynamicEvent(methodName);\n            continue;\n        }\n        if (propertyIsEvent(methodName)) {\n            result[methodName] = proxyListen(methodName, undefined);\n            continue;\n        }\n        result[methodName] = createProxyMethod(methodName);\n    }\n    return result;\n}\n/**\n * Worker side\n */\nclass SimpleWorkerServer {\n    constructor(postMessage, requestHandlerFactory) {\n        this._requestHandlerFactory = requestHandlerFactory;\n        this._requestHandler = null;\n        this._protocol = new SimpleWorkerProtocol({\n            sendMessage: (msg, transfer) => {\n                postMessage(msg, transfer);\n            },\n            handleMessage: (method, args) => this._handleMessage(method, args),\n            handleEvent: (eventName, arg) => this._handleEvent(eventName, arg)\n        });\n    }\n    onmessage(msg) {\n        this._protocol.handleMessage(msg);\n    }\n    _handleMessage(method, args) {\n        if (method === INITIALIZE) {\n            return this.initialize(args[0], args[1], args[2], args[3]);\n        }\n        if (!this._requestHandler || typeof this._requestHandler[method] !== 'function') {\n            return Promise.reject(new Error('Missing requestHandler or method: ' + method));\n        }\n        try {\n            return Promise.resolve(this._requestHandler[method].apply(this._requestHandler, args));\n        }\n        catch (e) {\n            return Promise.reject(e);\n        }\n    }\n    _handleEvent(eventName, arg) {\n        if (!this._requestHandler) {\n            throw new Error(`Missing requestHandler`);\n        }\n        if (propertyIsDynamicEvent(eventName)) {\n            const event = this._requestHandler[eventName].call(this._requestHandler, arg);\n            if (typeof event !== 'function') {\n                throw new Error(`Missing dynamic event ${eventName} on request handler.`);\n            }\n            return event;\n        }\n        if (propertyIsEvent(eventName)) {\n            const event = this._requestHandler[eventName];\n            if (typeof event !== 'function') {\n                throw new Error(`Missing event ${eventName} on request handler.`);\n            }\n            return event;\n        }\n        throw new Error(`Malformed event name ${eventName}`);\n    }\n    initialize(workerId, loaderConfig, moduleId, hostMethods) {\n        this._protocol.setWorkerId(workerId);\n        const proxyMethodRequest = (method, args) => {\n            return this._protocol.sendMessage(method, args);\n        };\n        const proxyListen = (eventName, arg) => {\n            return this._protocol.listen(eventName, arg);\n        };\n        const hostProxy = createProxyObject(hostMethods, proxyMethodRequest, proxyListen);\n        if (this._requestHandlerFactory) {\n            // static request handler\n            this._requestHandler = this._requestHandlerFactory(hostProxy);\n            return Promise.resolve((0,_objects_js__WEBPACK_IMPORTED_MODULE_3__.getAllMethodNames)(this._requestHandler));\n        }\n        if (loaderConfig) {\n            // Remove 'baseUrl', handling it is beyond scope for now\n            if (typeof loaderConfig.baseUrl !== 'undefined') {\n                delete loaderConfig['baseUrl'];\n            }\n            if (typeof loaderConfig.paths !== 'undefined') {\n                if (typeof loaderConfig.paths.vs !== 'undefined') {\n                    delete loaderConfig.paths['vs'];\n                }\n            }\n            if (typeof loaderConfig.trustedTypesPolicy !== undefined) {\n                // don't use, it has been destroyed during serialize\n                delete loaderConfig['trustedTypesPolicy'];\n            }\n            // Since this is in a web worker, enable catching errors\n            loaderConfig.catchError = true;\n            globalThis.require.config(loaderConfig);\n        }\n        return new Promise((resolve, reject) => {\n            // Use the global require to be sure to get the global config\n            // ESM-comment-begin\n            // \t\t\tconst req = (globalThis.require || require);\n            // ESM-comment-end\n            // ESM-uncomment-begin\n            const req = globalThis.require;\n            // ESM-uncomment-end\n            req([moduleId], (module) => {\n                this._requestHandler = module.create(hostProxy);\n                if (!this._requestHandler) {\n                    reject(new Error(`No RequestHandler!`));\n                    return;\n                }\n                resolve((0,_objects_js__WEBPACK_IMPORTED_MODULE_3__.getAllMethodNames)(this._requestHandler));\n            }, reject);\n        });\n    }\n}\n/**\n * Called on the worker side\n * @skipMangle\n */\nfunction create(postMessage) {\n    return new SimpleWorkerServer(postMessage, null);\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/base/common/worker/simpleWorker.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/core/characterClassifier.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/core/characterClassifier.js ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CharacterClassifier: () => (/* binding */ CharacterClassifier),\n/* harmony export */   CharacterSet: () => (/* binding */ CharacterSet)\n/* harmony export */ });\n/* harmony import */ var _base_common_uint_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../base/common/uint.js */ \"./node_modules/monaco-editor/esm/vs/base/common/uint.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/**\n * A fast character classifier that uses a compact array for ASCII values.\n */\nclass CharacterClassifier {\n    constructor(_defaultValue) {\n        const defaultValue = (0,_base_common_uint_js__WEBPACK_IMPORTED_MODULE_0__.toUint8)(_defaultValue);\n        this._defaultValue = defaultValue;\n        this._asciiMap = CharacterClassifier._createAsciiMap(defaultValue);\n        this._map = new Map();\n    }\n    static _createAsciiMap(defaultValue) {\n        const asciiMap = new Uint8Array(256);\n        asciiMap.fill(defaultValue);\n        return asciiMap;\n    }\n    set(charCode, _value) {\n        const value = (0,_base_common_uint_js__WEBPACK_IMPORTED_MODULE_0__.toUint8)(_value);\n        if (charCode >= 0 && charCode < 256) {\n            this._asciiMap[charCode] = value;\n        }\n        else {\n            this._map.set(charCode, value);\n        }\n    }\n    get(charCode) {\n        if (charCode >= 0 && charCode < 256) {\n            return this._asciiMap[charCode];\n        }\n        else {\n            return (this._map.get(charCode) || this._defaultValue);\n        }\n    }\n    clear() {\n        this._asciiMap.fill(this._defaultValue);\n        this._map.clear();\n    }\n}\nclass CharacterSet {\n    constructor() {\n        this._actual = new CharacterClassifier(0 /* Boolean.False */);\n    }\n    add(charCode) {\n        this._actual.set(charCode, 1 /* Boolean.True */);\n    }\n    has(charCode) {\n        return (this._actual.get(charCode) === 1 /* Boolean.True */);\n    }\n    clear() {\n        return this._actual.clear();\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/core/characterClassifier.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/core/lineRange.js":
/*!***************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/core/lineRange.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LineRange: () => (/* binding */ LineRange),\n/* harmony export */   LineRangeSet: () => (/* binding */ LineRangeSet)\n/* harmony export */ });\n/* harmony import */ var _base_common_errors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../base/common/errors.js */ \"./node_modules/monaco-editor/esm/vs/base/common/errors.js\");\n/* harmony import */ var _offsetRange_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./offsetRange.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/offsetRange.js\");\n/* harmony import */ var _range_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./range.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/range.js\");\n/* harmony import */ var _base_common_arraysFind_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../base/common/arraysFind.js */ \"./node_modules/monaco-editor/esm/vs/base/common/arraysFind.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n\n\n\n/**\n * A range of lines (1-based).\n */\nclass LineRange {\n    static fromRange(range) {\n        return new LineRange(range.startLineNumber, range.endLineNumber);\n    }\n    static fromRangeInclusive(range) {\n        return new LineRange(range.startLineNumber, range.endLineNumber + 1);\n    }\n    /**\n     * @param lineRanges An array of sorted line ranges.\n     */\n    static joinMany(lineRanges) {\n        if (lineRanges.length === 0) {\n            return [];\n        }\n        let result = new LineRangeSet(lineRanges[0].slice());\n        for (let i = 1; i < lineRanges.length; i++) {\n            result = result.getUnion(new LineRangeSet(lineRanges[i].slice()));\n        }\n        return result.ranges;\n    }\n    static ofLength(startLineNumber, length) {\n        return new LineRange(startLineNumber, startLineNumber + length);\n    }\n    /**\n     * @internal\n     */\n    static deserialize(lineRange) {\n        return new LineRange(lineRange[0], lineRange[1]);\n    }\n    constructor(startLineNumber, endLineNumberExclusive) {\n        if (startLineNumber > endLineNumberExclusive) {\n            throw new _base_common_errors_js__WEBPACK_IMPORTED_MODULE_0__.BugIndicatingError(`startLineNumber ${startLineNumber} cannot be after endLineNumberExclusive ${endLineNumberExclusive}`);\n        }\n        this.startLineNumber = startLineNumber;\n        this.endLineNumberExclusive = endLineNumberExclusive;\n    }\n    /**\n     * Indicates if this line range contains the given line number.\n     */\n    contains(lineNumber) {\n        return this.startLineNumber <= lineNumber && lineNumber < this.endLineNumberExclusive;\n    }\n    /**\n     * Indicates if this line range is empty.\n     */\n    get isEmpty() {\n        return this.startLineNumber === this.endLineNumberExclusive;\n    }\n    /**\n     * Moves this line range by the given offset of line numbers.\n     */\n    delta(offset) {\n        return new LineRange(this.startLineNumber + offset, this.endLineNumberExclusive + offset);\n    }\n    deltaLength(offset) {\n        return new LineRange(this.startLineNumber, this.endLineNumberExclusive + offset);\n    }\n    /**\n     * The number of lines this line range spans.\n     */\n    get length() {\n        return this.endLineNumberExclusive - this.startLineNumber;\n    }\n    /**\n     * Creates a line range that combines this and the given line range.\n     */\n    join(other) {\n        return new LineRange(Math.min(this.startLineNumber, other.startLineNumber), Math.max(this.endLineNumberExclusive, other.endLineNumberExclusive));\n    }\n    toString() {\n        return `[${this.startLineNumber},${this.endLineNumberExclusive})`;\n    }\n    /**\n     * The resulting range is empty if the ranges do not intersect, but touch.\n     * If the ranges don't even touch, the result is undefined.\n     */\n    intersect(other) {\n        const startLineNumber = Math.max(this.startLineNumber, other.startLineNumber);\n        const endLineNumberExclusive = Math.min(this.endLineNumberExclusive, other.endLineNumberExclusive);\n        if (startLineNumber <= endLineNumberExclusive) {\n            return new LineRange(startLineNumber, endLineNumberExclusive);\n        }\n        return undefined;\n    }\n    intersectsStrict(other) {\n        return this.startLineNumber < other.endLineNumberExclusive && other.startLineNumber < this.endLineNumberExclusive;\n    }\n    overlapOrTouch(other) {\n        return this.startLineNumber <= other.endLineNumberExclusive && other.startLineNumber <= this.endLineNumberExclusive;\n    }\n    equals(b) {\n        return this.startLineNumber === b.startLineNumber && this.endLineNumberExclusive === b.endLineNumberExclusive;\n    }\n    toInclusiveRange() {\n        if (this.isEmpty) {\n            return null;\n        }\n        return new _range_js__WEBPACK_IMPORTED_MODULE_2__.Range(this.startLineNumber, 1, this.endLineNumberExclusive - 1, Number.MAX_SAFE_INTEGER);\n    }\n    toExclusiveRange() {\n        return new _range_js__WEBPACK_IMPORTED_MODULE_2__.Range(this.startLineNumber, 1, this.endLineNumberExclusive, 1);\n    }\n    mapToLineArray(f) {\n        const result = [];\n        for (let lineNumber = this.startLineNumber; lineNumber < this.endLineNumberExclusive; lineNumber++) {\n            result.push(f(lineNumber));\n        }\n        return result;\n    }\n    forEach(f) {\n        for (let lineNumber = this.startLineNumber; lineNumber < this.endLineNumberExclusive; lineNumber++) {\n            f(lineNumber);\n        }\n    }\n    /**\n     * @internal\n     */\n    serialize() {\n        return [this.startLineNumber, this.endLineNumberExclusive];\n    }\n    includes(lineNumber) {\n        return this.startLineNumber <= lineNumber && lineNumber < this.endLineNumberExclusive;\n    }\n    /**\n     * Converts this 1-based line range to a 0-based offset range (subtracts 1!).\n     * @internal\n     */\n    toOffsetRange() {\n        return new _offsetRange_js__WEBPACK_IMPORTED_MODULE_1__.OffsetRange(this.startLineNumber - 1, this.endLineNumberExclusive - 1);\n    }\n}\nclass LineRangeSet {\n    constructor(\n    /**\n     * Sorted by start line number.\n     * No two line ranges are touching or intersecting.\n     */\n    _normalizedRanges = []) {\n        this._normalizedRanges = _normalizedRanges;\n    }\n    get ranges() {\n        return this._normalizedRanges;\n    }\n    addRange(range) {\n        if (range.length === 0) {\n            return;\n        }\n        // Idea: Find joinRange such that:\n        // replaceRange = _normalizedRanges.replaceRange(joinRange, range.joinAll(joinRange.map(idx => this._normalizedRanges[idx])))\n        // idx of first element that touches range or that is after range\n        const joinRangeStartIdx = (0,_base_common_arraysFind_js__WEBPACK_IMPORTED_MODULE_3__.findFirstIdxMonotonousOrArrLen)(this._normalizedRanges, r => r.endLineNumberExclusive >= range.startLineNumber);\n        // idx of element after { last element that touches range or that is before range }\n        const joinRangeEndIdxExclusive = (0,_base_common_arraysFind_js__WEBPACK_IMPORTED_MODULE_3__.findLastIdxMonotonous)(this._normalizedRanges, r => r.startLineNumber <= range.endLineNumberExclusive) + 1;\n        if (joinRangeStartIdx === joinRangeEndIdxExclusive) {\n            // If there is no element that touches range, then joinRangeStartIdx === joinRangeEndIdxExclusive and that value is the index of the element after range\n            this._normalizedRanges.splice(joinRangeStartIdx, 0, range);\n        }\n        else if (joinRangeStartIdx === joinRangeEndIdxExclusive - 1) {\n            // Else, there is an element that touches range and in this case it is both the first and last element. Thus we can replace it\n            const joinRange = this._normalizedRanges[joinRangeStartIdx];\n            this._normalizedRanges[joinRangeStartIdx] = joinRange.join(range);\n        }\n        else {\n            // First and last element are different - we need to replace the entire range\n            const joinRange = this._normalizedRanges[joinRangeStartIdx].join(this._normalizedRanges[joinRangeEndIdxExclusive - 1]).join(range);\n            this._normalizedRanges.splice(joinRangeStartIdx, joinRangeEndIdxExclusive - joinRangeStartIdx, joinRange);\n        }\n    }\n    contains(lineNumber) {\n        const rangeThatStartsBeforeEnd = (0,_base_common_arraysFind_js__WEBPACK_IMPORTED_MODULE_3__.findLastMonotonous)(this._normalizedRanges, r => r.startLineNumber <= lineNumber);\n        return !!rangeThatStartsBeforeEnd && rangeThatStartsBeforeEnd.endLineNumberExclusive > lineNumber;\n    }\n    intersects(range) {\n        const rangeThatStartsBeforeEnd = (0,_base_common_arraysFind_js__WEBPACK_IMPORTED_MODULE_3__.findLastMonotonous)(this._normalizedRanges, r => r.startLineNumber < range.endLineNumberExclusive);\n        return !!rangeThatStartsBeforeEnd && rangeThatStartsBeforeEnd.endLineNumberExclusive > range.startLineNumber;\n    }\n    getUnion(other) {\n        if (this._normalizedRanges.length === 0) {\n            return other;\n        }\n        if (other._normalizedRanges.length === 0) {\n            return this;\n        }\n        const result = [];\n        let i1 = 0;\n        let i2 = 0;\n        let current = null;\n        while (i1 < this._normalizedRanges.length || i2 < other._normalizedRanges.length) {\n            let next = null;\n            if (i1 < this._normalizedRanges.length && i2 < other._normalizedRanges.length) {\n                const lineRange1 = this._normalizedRanges[i1];\n                const lineRange2 = other._normalizedRanges[i2];\n                if (lineRange1.startLineNumber < lineRange2.startLineNumber) {\n                    next = lineRange1;\n                    i1++;\n                }\n                else {\n                    next = lineRange2;\n                    i2++;\n                }\n            }\n            else if (i1 < this._normalizedRanges.length) {\n                next = this._normalizedRanges[i1];\n                i1++;\n            }\n            else {\n                next = other._normalizedRanges[i2];\n                i2++;\n            }\n            if (current === null) {\n                current = next;\n            }\n            else {\n                if (current.endLineNumberExclusive >= next.startLineNumber) {\n                    // merge\n                    current = new LineRange(current.startLineNumber, Math.max(current.endLineNumberExclusive, next.endLineNumberExclusive));\n                }\n                else {\n                    // push\n                    result.push(current);\n                    current = next;\n                }\n            }\n        }\n        if (current !== null) {\n            result.push(current);\n        }\n        return new LineRangeSet(result);\n    }\n    /**\n     * Subtracts all ranges in this set from `range` and returns the result.\n     */\n    subtractFrom(range) {\n        // idx of first element that touches range or that is after range\n        const joinRangeStartIdx = (0,_base_common_arraysFind_js__WEBPACK_IMPORTED_MODULE_3__.findFirstIdxMonotonousOrArrLen)(this._normalizedRanges, r => r.endLineNumberExclusive >= range.startLineNumber);\n        // idx of element after { last element that touches range or that is before range }\n        const joinRangeEndIdxExclusive = (0,_base_common_arraysFind_js__WEBPACK_IMPORTED_MODULE_3__.findLastIdxMonotonous)(this._normalizedRanges, r => r.startLineNumber <= range.endLineNumberExclusive) + 1;\n        if (joinRangeStartIdx === joinRangeEndIdxExclusive) {\n            return new LineRangeSet([range]);\n        }\n        const result = [];\n        let startLineNumber = range.startLineNumber;\n        for (let i = joinRangeStartIdx; i < joinRangeEndIdxExclusive; i++) {\n            const r = this._normalizedRanges[i];\n            if (r.startLineNumber > startLineNumber) {\n                result.push(new LineRange(startLineNumber, r.startLineNumber));\n            }\n            startLineNumber = r.endLineNumberExclusive;\n        }\n        if (startLineNumber < range.endLineNumberExclusive) {\n            result.push(new LineRange(startLineNumber, range.endLineNumberExclusive));\n        }\n        return new LineRangeSet(result);\n    }\n    toString() {\n        return this._normalizedRanges.map(r => r.toString()).join(', ');\n    }\n    getIntersection(other) {\n        const result = [];\n        let i1 = 0;\n        let i2 = 0;\n        while (i1 < this._normalizedRanges.length && i2 < other._normalizedRanges.length) {\n            const r1 = this._normalizedRanges[i1];\n            const r2 = other._normalizedRanges[i2];\n            const i = r1.intersect(r2);\n            if (i && !i.isEmpty) {\n                result.push(i);\n            }\n            if (r1.endLineNumberExclusive < r2.endLineNumberExclusive) {\n                i1++;\n            }\n            else {\n                i2++;\n            }\n        }\n        return new LineRangeSet(result);\n    }\n    getWithDelta(value) {\n        return new LineRangeSet(this._normalizedRanges.map(r => r.delta(value)));\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/core/lineRange.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/core/offsetRange.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/core/offsetRange.js ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OffsetRange: () => (/* binding */ OffsetRange),\n/* harmony export */   OffsetRangeSet: () => (/* binding */ OffsetRangeSet)\n/* harmony export */ });\n/* harmony import */ var _base_common_errors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../base/common/errors.js */ \"./node_modules/monaco-editor/esm/vs/base/common/errors.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/**\n * A range of offsets (0-based).\n*/\nclass OffsetRange {\n    static addRange(range, sortedRanges) {\n        let i = 0;\n        while (i < sortedRanges.length && sortedRanges[i].endExclusive < range.start) {\n            i++;\n        }\n        let j = i;\n        while (j < sortedRanges.length && sortedRanges[j].start <= range.endExclusive) {\n            j++;\n        }\n        if (i === j) {\n            sortedRanges.splice(i, 0, range);\n        }\n        else {\n            const start = Math.min(range.start, sortedRanges[i].start);\n            const end = Math.max(range.endExclusive, sortedRanges[j - 1].endExclusive);\n            sortedRanges.splice(i, j - i, new OffsetRange(start, end));\n        }\n    }\n    static tryCreate(start, endExclusive) {\n        if (start > endExclusive) {\n            return undefined;\n        }\n        return new OffsetRange(start, endExclusive);\n    }\n    static ofLength(length) {\n        return new OffsetRange(0, length);\n    }\n    static ofStartAndLength(start, length) {\n        return new OffsetRange(start, start + length);\n    }\n    constructor(start, endExclusive) {\n        this.start = start;\n        this.endExclusive = endExclusive;\n        if (start > endExclusive) {\n            throw new _base_common_errors_js__WEBPACK_IMPORTED_MODULE_0__.BugIndicatingError(`Invalid range: ${this.toString()}`);\n        }\n    }\n    get isEmpty() {\n        return this.start === this.endExclusive;\n    }\n    delta(offset) {\n        return new OffsetRange(this.start + offset, this.endExclusive + offset);\n    }\n    deltaStart(offset) {\n        return new OffsetRange(this.start + offset, this.endExclusive);\n    }\n    deltaEnd(offset) {\n        return new OffsetRange(this.start, this.endExclusive + offset);\n    }\n    get length() {\n        return this.endExclusive - this.start;\n    }\n    toString() {\n        return `[${this.start}, ${this.endExclusive})`;\n    }\n    equals(other) {\n        return this.start === other.start && this.endExclusive === other.endExclusive;\n    }\n    containsRange(other) {\n        return this.start <= other.start && other.endExclusive <= this.endExclusive;\n    }\n    contains(offset) {\n        return this.start <= offset && offset < this.endExclusive;\n    }\n    /**\n     * for all numbers n: range1.contains(n) or range2.contains(n) => range1.join(range2).contains(n)\n     * The joined range is the smallest range that contains both ranges.\n     */\n    join(other) {\n        return new OffsetRange(Math.min(this.start, other.start), Math.max(this.endExclusive, other.endExclusive));\n    }\n    /**\n     * for all numbers n: range1.contains(n) and range2.contains(n) <=> range1.intersect(range2).contains(n)\n     *\n     * The resulting range is empty if the ranges do not intersect, but touch.\n     * If the ranges don't even touch, the result is undefined.\n     */\n    intersect(other) {\n        const start = Math.max(this.start, other.start);\n        const end = Math.min(this.endExclusive, other.endExclusive);\n        if (start <= end) {\n            return new OffsetRange(start, end);\n        }\n        return undefined;\n    }\n    isBefore(other) {\n        return this.endExclusive <= other.start;\n    }\n    isAfter(other) {\n        return this.start >= other.endExclusive;\n    }\n    slice(arr) {\n        return arr.slice(this.start, this.endExclusive);\n    }\n    /**\n     * Returns the given value if it is contained in this instance, otherwise the closest value that is contained.\n     * The range must not be empty.\n     */\n    clip(value) {\n        if (this.isEmpty) {\n            throw new _base_common_errors_js__WEBPACK_IMPORTED_MODULE_0__.BugIndicatingError(`Invalid clipping range: ${this.toString()}`);\n        }\n        return Math.max(this.start, Math.min(this.endExclusive - 1, value));\n    }\n    /**\n     * Returns `r := value + k * length` such that `r` is contained in this range.\n     * The range must not be empty.\n     *\n     * E.g. `[5, 10).clipCyclic(10) === 5`, `[5, 10).clipCyclic(11) === 6` and `[5, 10).clipCyclic(4) === 9`.\n     */\n    clipCyclic(value) {\n        if (this.isEmpty) {\n            throw new _base_common_errors_js__WEBPACK_IMPORTED_MODULE_0__.BugIndicatingError(`Invalid clipping range: ${this.toString()}`);\n        }\n        if (value < this.start) {\n            return this.endExclusive - ((this.start - value) % this.length);\n        }\n        if (value >= this.endExclusive) {\n            return this.start + ((value - this.start) % this.length);\n        }\n        return value;\n    }\n    forEach(f) {\n        for (let i = this.start; i < this.endExclusive; i++) {\n            f(i);\n        }\n    }\n}\nclass OffsetRangeSet {\n    constructor() {\n        this._sortedRanges = [];\n    }\n    addRange(range) {\n        let i = 0;\n        while (i < this._sortedRanges.length && this._sortedRanges[i].endExclusive < range.start) {\n            i++;\n        }\n        let j = i;\n        while (j < this._sortedRanges.length && this._sortedRanges[j].start <= range.endExclusive) {\n            j++;\n        }\n        if (i === j) {\n            this._sortedRanges.splice(i, 0, range);\n        }\n        else {\n            const start = Math.min(range.start, this._sortedRanges[i].start);\n            const end = Math.max(range.endExclusive, this._sortedRanges[j - 1].endExclusive);\n            this._sortedRanges.splice(i, j - i, new OffsetRange(start, end));\n        }\n    }\n    toString() {\n        return this._sortedRanges.map(r => r.toString()).join(', ');\n    }\n    /**\n     * Returns of there is a value that is contained in this instance and the given range.\n     */\n    intersectsStrict(other) {\n        // TODO use binary search\n        let i = 0;\n        while (i < this._sortedRanges.length && this._sortedRanges[i].endExclusive <= other.start) {\n            i++;\n        }\n        return i < this._sortedRanges.length && this._sortedRanges[i].start < other.endExclusive;\n    }\n    intersectWithRange(other) {\n        // TODO use binary search + slice\n        const result = new OffsetRangeSet();\n        for (const range of this._sortedRanges) {\n            const intersection = range.intersect(other);\n            if (intersection) {\n                result.addRange(intersection);\n            }\n        }\n        return result;\n    }\n    intersectWithRangeLength(other) {\n        return this.intersectWithRange(other).length;\n    }\n    get length() {\n        return this._sortedRanges.reduce((prev, cur) => prev + cur.length, 0);\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/core/offsetRange.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/core/position.js":
/*!**************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/core/position.js ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Position: () => (/* binding */ Position)\n/* harmony export */ });\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n/**\n * A position in the editor.\n */\nclass Position {\n    constructor(lineNumber, column) {\n        this.lineNumber = lineNumber;\n        this.column = column;\n    }\n    /**\n     * Create a new position from this position.\n     *\n     * @param newLineNumber new line number\n     * @param newColumn new column\n     */\n    with(newLineNumber = this.lineNumber, newColumn = this.column) {\n        if (newLineNumber === this.lineNumber && newColumn === this.column) {\n            return this;\n        }\n        else {\n            return new Position(newLineNumber, newColumn);\n        }\n    }\n    /**\n     * Derive a new position from this position.\n     *\n     * @param deltaLineNumber line number delta\n     * @param deltaColumn column delta\n     */\n    delta(deltaLineNumber = 0, deltaColumn = 0) {\n        return this.with(this.lineNumber + deltaLineNumber, this.column + deltaColumn);\n    }\n    /**\n     * Test if this position equals other position\n     */\n    equals(other) {\n        return Position.equals(this, other);\n    }\n    /**\n     * Test if position `a` equals position `b`\n     */\n    static equals(a, b) {\n        if (!a && !b) {\n            return true;\n        }\n        return (!!a &&\n            !!b &&\n            a.lineNumber === b.lineNumber &&\n            a.column === b.column);\n    }\n    /**\n     * Test if this position is before other position.\n     * If the two positions are equal, the result will be false.\n     */\n    isBefore(other) {\n        return Position.isBefore(this, other);\n    }\n    /**\n     * Test if position `a` is before position `b`.\n     * If the two positions are equal, the result will be false.\n     */\n    static isBefore(a, b) {\n        if (a.lineNumber < b.lineNumber) {\n            return true;\n        }\n        if (b.lineNumber < a.lineNumber) {\n            return false;\n        }\n        return a.column < b.column;\n    }\n    /**\n     * Test if this position is before other position.\n     * If the two positions are equal, the result will be true.\n     */\n    isBeforeOrEqual(other) {\n        return Position.isBeforeOrEqual(this, other);\n    }\n    /**\n     * Test if position `a` is before position `b`.\n     * If the two positions are equal, the result will be true.\n     */\n    static isBeforeOrEqual(a, b) {\n        if (a.lineNumber < b.lineNumber) {\n            return true;\n        }\n        if (b.lineNumber < a.lineNumber) {\n            return false;\n        }\n        return a.column <= b.column;\n    }\n    /**\n     * A function that compares positions, useful for sorting\n     */\n    static compare(a, b) {\n        const aLineNumber = a.lineNumber | 0;\n        const bLineNumber = b.lineNumber | 0;\n        if (aLineNumber === bLineNumber) {\n            const aColumn = a.column | 0;\n            const bColumn = b.column | 0;\n            return aColumn - bColumn;\n        }\n        return aLineNumber - bLineNumber;\n    }\n    /**\n     * Clone this position.\n     */\n    clone() {\n        return new Position(this.lineNumber, this.column);\n    }\n    /**\n     * Convert to a human-readable representation.\n     */\n    toString() {\n        return '(' + this.lineNumber + ',' + this.column + ')';\n    }\n    // ---\n    /**\n     * Create a `Position` from an `IPosition`.\n     */\n    static lift(pos) {\n        return new Position(pos.lineNumber, pos.column);\n    }\n    /**\n     * Test if `obj` is an `IPosition`.\n     */\n    static isIPosition(obj) {\n        return (obj\n            && (typeof obj.lineNumber === 'number')\n            && (typeof obj.column === 'number'));\n    }\n    toJSON() {\n        return {\n            lineNumber: this.lineNumber,\n            column: this.column\n        };\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/core/position.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/core/range.js":
/*!***********************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/core/range.js ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Range: () => (/* binding */ Range)\n/* harmony export */ });\n/* harmony import */ var _position_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./position.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/position.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/**\n * A range in the editor. (startLineNumber,startColumn) is <= (endLineNumber,endColumn)\n */\nclass Range {\n    constructor(startLineNumber, startColumn, endLineNumber, endColumn) {\n        if ((startLineNumber > endLineNumber) || (startLineNumber === endLineNumber && startColumn > endColumn)) {\n            this.startLineNumber = endLineNumber;\n            this.startColumn = endColumn;\n            this.endLineNumber = startLineNumber;\n            this.endColumn = startColumn;\n        }\n        else {\n            this.startLineNumber = startLineNumber;\n            this.startColumn = startColumn;\n            this.endLineNumber = endLineNumber;\n            this.endColumn = endColumn;\n        }\n    }\n    /**\n     * Test if this range is empty.\n     */\n    isEmpty() {\n        return Range.isEmpty(this);\n    }\n    /**\n     * Test if `range` is empty.\n     */\n    static isEmpty(range) {\n        return (range.startLineNumber === range.endLineNumber && range.startColumn === range.endColumn);\n    }\n    /**\n     * Test if position is in this range. If the position is at the edges, will return true.\n     */\n    containsPosition(position) {\n        return Range.containsPosition(this, position);\n    }\n    /**\n     * Test if `position` is in `range`. If the position is at the edges, will return true.\n     */\n    static containsPosition(range, position) {\n        if (position.lineNumber < range.startLineNumber || position.lineNumber > range.endLineNumber) {\n            return false;\n        }\n        if (position.lineNumber === range.startLineNumber && position.column < range.startColumn) {\n            return false;\n        }\n        if (position.lineNumber === range.endLineNumber && position.column > range.endColumn) {\n            return false;\n        }\n        return true;\n    }\n    /**\n     * Test if `position` is in `range`. If the position is at the edges, will return false.\n     * @internal\n     */\n    static strictContainsPosition(range, position) {\n        if (position.lineNumber < range.startLineNumber || position.lineNumber > range.endLineNumber) {\n            return false;\n        }\n        if (position.lineNumber === range.startLineNumber && position.column <= range.startColumn) {\n            return false;\n        }\n        if (position.lineNumber === range.endLineNumber && position.column >= range.endColumn) {\n            return false;\n        }\n        return true;\n    }\n    /**\n     * Test if range is in this range. If the range is equal to this range, will return true.\n     */\n    containsRange(range) {\n        return Range.containsRange(this, range);\n    }\n    /**\n     * Test if `otherRange` is in `range`. If the ranges are equal, will return true.\n     */\n    static containsRange(range, otherRange) {\n        if (otherRange.startLineNumber < range.startLineNumber || otherRange.endLineNumber < range.startLineNumber) {\n            return false;\n        }\n        if (otherRange.startLineNumber > range.endLineNumber || otherRange.endLineNumber > range.endLineNumber) {\n            return false;\n        }\n        if (otherRange.startLineNumber === range.startLineNumber && otherRange.startColumn < range.startColumn) {\n            return false;\n        }\n        if (otherRange.endLineNumber === range.endLineNumber && otherRange.endColumn > range.endColumn) {\n            return false;\n        }\n        return true;\n    }\n    /**\n     * Test if `range` is strictly in this range. `range` must start after and end before this range for the result to be true.\n     */\n    strictContainsRange(range) {\n        return Range.strictContainsRange(this, range);\n    }\n    /**\n     * Test if `otherRange` is strictly in `range` (must start after, and end before). If the ranges are equal, will return false.\n     */\n    static strictContainsRange(range, otherRange) {\n        if (otherRange.startLineNumber < range.startLineNumber || otherRange.endLineNumber < range.startLineNumber) {\n            return false;\n        }\n        if (otherRange.startLineNumber > range.endLineNumber || otherRange.endLineNumber > range.endLineNumber) {\n            return false;\n        }\n        if (otherRange.startLineNumber === range.startLineNumber && otherRange.startColumn <= range.startColumn) {\n            return false;\n        }\n        if (otherRange.endLineNumber === range.endLineNumber && otherRange.endColumn >= range.endColumn) {\n            return false;\n        }\n        return true;\n    }\n    /**\n     * A reunion of the two ranges.\n     * The smallest position will be used as the start point, and the largest one as the end point.\n     */\n    plusRange(range) {\n        return Range.plusRange(this, range);\n    }\n    /**\n     * A reunion of the two ranges.\n     * The smallest position will be used as the start point, and the largest one as the end point.\n     */\n    static plusRange(a, b) {\n        let startLineNumber;\n        let startColumn;\n        let endLineNumber;\n        let endColumn;\n        if (b.startLineNumber < a.startLineNumber) {\n            startLineNumber = b.startLineNumber;\n            startColumn = b.startColumn;\n        }\n        else if (b.startLineNumber === a.startLineNumber) {\n            startLineNumber = b.startLineNumber;\n            startColumn = Math.min(b.startColumn, a.startColumn);\n        }\n        else {\n            startLineNumber = a.startLineNumber;\n            startColumn = a.startColumn;\n        }\n        if (b.endLineNumber > a.endLineNumber) {\n            endLineNumber = b.endLineNumber;\n            endColumn = b.endColumn;\n        }\n        else if (b.endLineNumber === a.endLineNumber) {\n            endLineNumber = b.endLineNumber;\n            endColumn = Math.max(b.endColumn, a.endColumn);\n        }\n        else {\n            endLineNumber = a.endLineNumber;\n            endColumn = a.endColumn;\n        }\n        return new Range(startLineNumber, startColumn, endLineNumber, endColumn);\n    }\n    /**\n     * A intersection of the two ranges.\n     */\n    intersectRanges(range) {\n        return Range.intersectRanges(this, range);\n    }\n    /**\n     * A intersection of the two ranges.\n     */\n    static intersectRanges(a, b) {\n        let resultStartLineNumber = a.startLineNumber;\n        let resultStartColumn = a.startColumn;\n        let resultEndLineNumber = a.endLineNumber;\n        let resultEndColumn = a.endColumn;\n        const otherStartLineNumber = b.startLineNumber;\n        const otherStartColumn = b.startColumn;\n        const otherEndLineNumber = b.endLineNumber;\n        const otherEndColumn = b.endColumn;\n        if (resultStartLineNumber < otherStartLineNumber) {\n            resultStartLineNumber = otherStartLineNumber;\n            resultStartColumn = otherStartColumn;\n        }\n        else if (resultStartLineNumber === otherStartLineNumber) {\n            resultStartColumn = Math.max(resultStartColumn, otherStartColumn);\n        }\n        if (resultEndLineNumber > otherEndLineNumber) {\n            resultEndLineNumber = otherEndLineNumber;\n            resultEndColumn = otherEndColumn;\n        }\n        else if (resultEndLineNumber === otherEndLineNumber) {\n            resultEndColumn = Math.min(resultEndColumn, otherEndColumn);\n        }\n        // Check if selection is now empty\n        if (resultStartLineNumber > resultEndLineNumber) {\n            return null;\n        }\n        if (resultStartLineNumber === resultEndLineNumber && resultStartColumn > resultEndColumn) {\n            return null;\n        }\n        return new Range(resultStartLineNumber, resultStartColumn, resultEndLineNumber, resultEndColumn);\n    }\n    /**\n     * Test if this range equals other.\n     */\n    equalsRange(other) {\n        return Range.equalsRange(this, other);\n    }\n    /**\n     * Test if range `a` equals `b`.\n     */\n    static equalsRange(a, b) {\n        if (!a && !b) {\n            return true;\n        }\n        return (!!a &&\n            !!b &&\n            a.startLineNumber === b.startLineNumber &&\n            a.startColumn === b.startColumn &&\n            a.endLineNumber === b.endLineNumber &&\n            a.endColumn === b.endColumn);\n    }\n    /**\n     * Return the end position (which will be after or equal to the start position)\n     */\n    getEndPosition() {\n        return Range.getEndPosition(this);\n    }\n    /**\n     * Return the end position (which will be after or equal to the start position)\n     */\n    static getEndPosition(range) {\n        return new _position_js__WEBPACK_IMPORTED_MODULE_0__.Position(range.endLineNumber, range.endColumn);\n    }\n    /**\n     * Return the start position (which will be before or equal to the end position)\n     */\n    getStartPosition() {\n        return Range.getStartPosition(this);\n    }\n    /**\n     * Return the start position (which will be before or equal to the end position)\n     */\n    static getStartPosition(range) {\n        return new _position_js__WEBPACK_IMPORTED_MODULE_0__.Position(range.startLineNumber, range.startColumn);\n    }\n    /**\n     * Transform to a user presentable string representation.\n     */\n    toString() {\n        return '[' + this.startLineNumber + ',' + this.startColumn + ' -> ' + this.endLineNumber + ',' + this.endColumn + ']';\n    }\n    /**\n     * Create a new range using this range's start position, and using endLineNumber and endColumn as the end position.\n     */\n    setEndPosition(endLineNumber, endColumn) {\n        return new Range(this.startLineNumber, this.startColumn, endLineNumber, endColumn);\n    }\n    /**\n     * Create a new range using this range's end position, and using startLineNumber and startColumn as the start position.\n     */\n    setStartPosition(startLineNumber, startColumn) {\n        return new Range(startLineNumber, startColumn, this.endLineNumber, this.endColumn);\n    }\n    /**\n     * Create a new empty range using this range's start position.\n     */\n    collapseToStart() {\n        return Range.collapseToStart(this);\n    }\n    /**\n     * Create a new empty range using this range's start position.\n     */\n    static collapseToStart(range) {\n        return new Range(range.startLineNumber, range.startColumn, range.startLineNumber, range.startColumn);\n    }\n    /**\n     * Create a new empty range using this range's end position.\n     */\n    collapseToEnd() {\n        return Range.collapseToEnd(this);\n    }\n    /**\n     * Create a new empty range using this range's end position.\n     */\n    static collapseToEnd(range) {\n        return new Range(range.endLineNumber, range.endColumn, range.endLineNumber, range.endColumn);\n    }\n    /**\n     * Moves the range by the given amount of lines.\n     */\n    delta(lineCount) {\n        return new Range(this.startLineNumber + lineCount, this.startColumn, this.endLineNumber + lineCount, this.endColumn);\n    }\n    // ---\n    static fromPositions(start, end = start) {\n        return new Range(start.lineNumber, start.column, end.lineNumber, end.column);\n    }\n    static lift(range) {\n        if (!range) {\n            return null;\n        }\n        return new Range(range.startLineNumber, range.startColumn, range.endLineNumber, range.endColumn);\n    }\n    /**\n     * Test if `obj` is an `IRange`.\n     */\n    static isIRange(obj) {\n        return (obj\n            && (typeof obj.startLineNumber === 'number')\n            && (typeof obj.startColumn === 'number')\n            && (typeof obj.endLineNumber === 'number')\n            && (typeof obj.endColumn === 'number'));\n    }\n    /**\n     * Test if the two ranges are touching in any way.\n     */\n    static areIntersectingOrTouching(a, b) {\n        // Check if `a` is before `b`\n        if (a.endLineNumber < b.startLineNumber || (a.endLineNumber === b.startLineNumber && a.endColumn < b.startColumn)) {\n            return false;\n        }\n        // Check if `b` is before `a`\n        if (b.endLineNumber < a.startLineNumber || (b.endLineNumber === a.startLineNumber && b.endColumn < a.startColumn)) {\n            return false;\n        }\n        // These ranges must intersect\n        return true;\n    }\n    /**\n     * Test if the two ranges are intersecting. If the ranges are touching it returns true.\n     */\n    static areIntersecting(a, b) {\n        // Check if `a` is before `b`\n        if (a.endLineNumber < b.startLineNumber || (a.endLineNumber === b.startLineNumber && a.endColumn <= b.startColumn)) {\n            return false;\n        }\n        // Check if `b` is before `a`\n        if (b.endLineNumber < a.startLineNumber || (b.endLineNumber === a.startLineNumber && b.endColumn <= a.startColumn)) {\n            return false;\n        }\n        // These ranges must intersect\n        return true;\n    }\n    /**\n     * A function that compares ranges, useful for sorting ranges\n     * It will first compare ranges on the startPosition and then on the endPosition\n     */\n    static compareRangesUsingStarts(a, b) {\n        if (a && b) {\n            const aStartLineNumber = a.startLineNumber | 0;\n            const bStartLineNumber = b.startLineNumber | 0;\n            if (aStartLineNumber === bStartLineNumber) {\n                const aStartColumn = a.startColumn | 0;\n                const bStartColumn = b.startColumn | 0;\n                if (aStartColumn === bStartColumn) {\n                    const aEndLineNumber = a.endLineNumber | 0;\n                    const bEndLineNumber = b.endLineNumber | 0;\n                    if (aEndLineNumber === bEndLineNumber) {\n                        const aEndColumn = a.endColumn | 0;\n                        const bEndColumn = b.endColumn | 0;\n                        return aEndColumn - bEndColumn;\n                    }\n                    return aEndLineNumber - bEndLineNumber;\n                }\n                return aStartColumn - bStartColumn;\n            }\n            return aStartLineNumber - bStartLineNumber;\n        }\n        const aExists = (a ? 1 : 0);\n        const bExists = (b ? 1 : 0);\n        return aExists - bExists;\n    }\n    /**\n     * A function that compares ranges, useful for sorting ranges\n     * It will first compare ranges on the endPosition and then on the startPosition\n     */\n    static compareRangesUsingEnds(a, b) {\n        if (a.endLineNumber === b.endLineNumber) {\n            if (a.endColumn === b.endColumn) {\n                if (a.startLineNumber === b.startLineNumber) {\n                    return a.startColumn - b.startColumn;\n                }\n                return a.startLineNumber - b.startLineNumber;\n            }\n            return a.endColumn - b.endColumn;\n        }\n        return a.endLineNumber - b.endLineNumber;\n    }\n    /**\n     * Test if the range spans multiple lines.\n     */\n    static spansMultipleLines(range) {\n        return range.endLineNumber > range.startLineNumber;\n    }\n    toJSON() {\n        return this;\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/core/range.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js":
/*!***************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Selection: () => (/* binding */ Selection)\n/* harmony export */ });\n/* harmony import */ var _position_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./position.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/position.js\");\n/* harmony import */ var _range_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./range.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/range.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n\n/**\n * A selection in the editor.\n * The selection is a range that has an orientation.\n */\nclass Selection extends _range_js__WEBPACK_IMPORTED_MODULE_1__.Range {\n    constructor(selectionStartLineNumber, selectionStartColumn, positionLineNumber, positionColumn) {\n        super(selectionStartLineNumber, selectionStartColumn, positionLineNumber, positionColumn);\n        this.selectionStartLineNumber = selectionStartLineNumber;\n        this.selectionStartColumn = selectionStartColumn;\n        this.positionLineNumber = positionLineNumber;\n        this.positionColumn = positionColumn;\n    }\n    /**\n     * Transform to a human-readable representation.\n     */\n    toString() {\n        return '[' + this.selectionStartLineNumber + ',' + this.selectionStartColumn + ' -> ' + this.positionLineNumber + ',' + this.positionColumn + ']';\n    }\n    /**\n     * Test if equals other selection.\n     */\n    equalsSelection(other) {\n        return (Selection.selectionsEqual(this, other));\n    }\n    /**\n     * Test if the two selections are equal.\n     */\n    static selectionsEqual(a, b) {\n        return (a.selectionStartLineNumber === b.selectionStartLineNumber &&\n            a.selectionStartColumn === b.selectionStartColumn &&\n            a.positionLineNumber === b.positionLineNumber &&\n            a.positionColumn === b.positionColumn);\n    }\n    /**\n     * Get directions (LTR or RTL).\n     */\n    getDirection() {\n        if (this.selectionStartLineNumber === this.startLineNumber && this.selectionStartColumn === this.startColumn) {\n            return 0 /* SelectionDirection.LTR */;\n        }\n        return 1 /* SelectionDirection.RTL */;\n    }\n    /**\n     * Create a new selection with a different `positionLineNumber` and `positionColumn`.\n     */\n    setEndPosition(endLineNumber, endColumn) {\n        if (this.getDirection() === 0 /* SelectionDirection.LTR */) {\n            return new Selection(this.startLineNumber, this.startColumn, endLineNumber, endColumn);\n        }\n        return new Selection(endLineNumber, endColumn, this.startLineNumber, this.startColumn);\n    }\n    /**\n     * Get the position at `positionLineNumber` and `positionColumn`.\n     */\n    getPosition() {\n        return new _position_js__WEBPACK_IMPORTED_MODULE_0__.Position(this.positionLineNumber, this.positionColumn);\n    }\n    /**\n     * Get the position at the start of the selection.\n    */\n    getSelectionStart() {\n        return new _position_js__WEBPACK_IMPORTED_MODULE_0__.Position(this.selectionStartLineNumber, this.selectionStartColumn);\n    }\n    /**\n     * Create a new selection with a different `selectionStartLineNumber` and `selectionStartColumn`.\n     */\n    setStartPosition(startLineNumber, startColumn) {\n        if (this.getDirection() === 0 /* SelectionDirection.LTR */) {\n            return new Selection(startLineNumber, startColumn, this.endLineNumber, this.endColumn);\n        }\n        return new Selection(this.endLineNumber, this.endColumn, startLineNumber, startColumn);\n    }\n    // ----\n    /**\n     * Create a `Selection` from one or two positions\n     */\n    static fromPositions(start, end = start) {\n        return new Selection(start.lineNumber, start.column, end.lineNumber, end.column);\n    }\n    /**\n     * Creates a `Selection` from a range, given a direction.\n     */\n    static fromRange(range, direction) {\n        if (direction === 0 /* SelectionDirection.LTR */) {\n            return new Selection(range.startLineNumber, range.startColumn, range.endLineNumber, range.endColumn);\n        }\n        else {\n            return new Selection(range.endLineNumber, range.endColumn, range.startLineNumber, range.startColumn);\n        }\n    }\n    /**\n     * Create a `Selection` from an `ISelection`.\n     */\n    static liftSelection(sel) {\n        return new Selection(sel.selectionStartLineNumber, sel.selectionStartColumn, sel.positionLineNumber, sel.positionColumn);\n    }\n    /**\n     * `a` equals `b`.\n     */\n    static selectionsArrEqual(a, b) {\n        if (a && !b || !a && b) {\n            return false;\n        }\n        if (!a && !b) {\n            return true;\n        }\n        if (a.length !== b.length) {\n            return false;\n        }\n        for (let i = 0, len = a.length; i < len; i++) {\n            if (!this.selectionsEqual(a[i], b[i])) {\n                return false;\n            }\n        }\n        return true;\n    }\n    /**\n     * Test if `obj` is an `ISelection`.\n     */\n    static isISelection(obj) {\n        return (obj\n            && (typeof obj.selectionStartLineNumber === 'number')\n            && (typeof obj.selectionStartColumn === 'number')\n            && (typeof obj.positionLineNumber === 'number')\n            && (typeof obj.positionColumn === 'number'));\n    }\n    /**\n     * Create with a direction.\n     */\n    static createWithDirection(startLineNumber, startColumn, endLineNumber, endColumn, direction) {\n        if (direction === 0 /* SelectionDirection.LTR */) {\n            return new Selection(startLineNumber, startColumn, endLineNumber, endColumn);\n        }\n        return new Selection(endLineNumber, endColumn, startLineNumber, startColumn);\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/core/wordCharacterClassifier.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/core/wordCharacterClassifier.js ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   WordCharacterClassifier: () => (/* binding */ WordCharacterClassifier),\n/* harmony export */   getMapForWordSeparators: () => (/* binding */ getMapForWordSeparators)\n/* harmony export */ });\n/* harmony import */ var _characterClassifier_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./characterClassifier.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/characterClassifier.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nclass WordCharacterClassifier extends _characterClassifier_js__WEBPACK_IMPORTED_MODULE_0__.CharacterClassifier {\n    constructor(wordSeparators) {\n        super(0 /* WordCharacterClass.Regular */);\n        for (let i = 0, len = wordSeparators.length; i < len; i++) {\n            this.set(wordSeparators.charCodeAt(i), 2 /* WordCharacterClass.WordSeparator */);\n        }\n        this.set(32 /* CharCode.Space */, 1 /* WordCharacterClass.Whitespace */);\n        this.set(9 /* CharCode.Tab */, 1 /* WordCharacterClass.Whitespace */);\n    }\n}\nfunction once(computeFn) {\n    const cache = {}; // TODO@Alex unbounded cache\n    return (input) => {\n        if (!cache.hasOwnProperty(input)) {\n            cache[input] = computeFn(input);\n        }\n        return cache[input];\n    };\n}\nconst getMapForWordSeparators = once((input) => new WordCharacterClassifier(input));\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/core/wordCharacterClassifier.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/core/wordHelper.js":
/*!****************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/core/wordHelper.js ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DEFAULT_WORD_REGEXP: () => (/* binding */ DEFAULT_WORD_REGEXP),\n/* harmony export */   USUAL_WORD_SEPARATORS: () => (/* binding */ USUAL_WORD_SEPARATORS),\n/* harmony export */   ensureValidWordDefinition: () => (/* binding */ ensureValidWordDefinition),\n/* harmony export */   getWordAtText: () => (/* binding */ getWordAtText)\n/* harmony export */ });\n/* harmony import */ var _base_common_iterator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../base/common/iterator.js */ \"./node_modules/monaco-editor/esm/vs/base/common/iterator.js\");\n/* harmony import */ var _base_common_linkedList_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../base/common/linkedList.js */ \"./node_modules/monaco-editor/esm/vs/base/common/linkedList.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n\nconst USUAL_WORD_SEPARATORS = '`~!@#$%^&*()-=+[{]}\\\\|;:\\'\",.<>/?';\n/**\n * Create a word definition regular expression based on default word separators.\n * Optionally provide allowed separators that should be included in words.\n *\n * The default would look like this:\n * /(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\#\\$\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)/g\n */\nfunction createWordRegExp(allowInWords = '') {\n    let source = '(-?\\\\d*\\\\.\\\\d\\\\w*)|([^';\n    for (const sep of USUAL_WORD_SEPARATORS) {\n        if (allowInWords.indexOf(sep) >= 0) {\n            continue;\n        }\n        source += '\\\\' + sep;\n    }\n    source += '\\\\s]+)';\n    return new RegExp(source, 'g');\n}\n// catches numbers (including floating numbers) in the first group, and alphanum in the second\nconst DEFAULT_WORD_REGEXP = createWordRegExp();\nfunction ensureValidWordDefinition(wordDefinition) {\n    let result = DEFAULT_WORD_REGEXP;\n    if (wordDefinition && (wordDefinition instanceof RegExp)) {\n        if (!wordDefinition.global) {\n            let flags = 'g';\n            if (wordDefinition.ignoreCase) {\n                flags += 'i';\n            }\n            if (wordDefinition.multiline) {\n                flags += 'm';\n            }\n            if (wordDefinition.unicode) {\n                flags += 'u';\n            }\n            result = new RegExp(wordDefinition.source, flags);\n        }\n        else {\n            result = wordDefinition;\n        }\n    }\n    result.lastIndex = 0;\n    return result;\n}\nconst _defaultConfig = new _base_common_linkedList_js__WEBPACK_IMPORTED_MODULE_1__.LinkedList();\n_defaultConfig.unshift({\n    maxLen: 1000,\n    windowSize: 15,\n    timeBudget: 150\n});\nfunction getWordAtText(column, wordDefinition, text, textOffset, config) {\n    // Ensure the regex has the 'g' flag, otherwise this will loop forever\n    wordDefinition = ensureValidWordDefinition(wordDefinition);\n    if (!config) {\n        config = _base_common_iterator_js__WEBPACK_IMPORTED_MODULE_0__.Iterable.first(_defaultConfig);\n    }\n    if (text.length > config.maxLen) {\n        // don't throw strings that long at the regexp\n        // but use a sub-string in which a word must occur\n        let start = column - config.maxLen / 2;\n        if (start < 0) {\n            start = 0;\n        }\n        else {\n            textOffset += start;\n        }\n        text = text.substring(start, column + config.maxLen / 2);\n        return getWordAtText(column, wordDefinition, text, textOffset, config);\n    }\n    const t1 = Date.now();\n    const pos = column - 1 - textOffset;\n    let prevRegexIndex = -1;\n    let match = null;\n    for (let i = 1;; i++) {\n        // check time budget\n        if (Date.now() - t1 >= config.timeBudget) {\n            break;\n        }\n        // reset the index at which the regexp should start matching, also know where it\n        // should stop so that subsequent search don't repeat previous searches\n        const regexIndex = pos - config.windowSize * i;\n        wordDefinition.lastIndex = Math.max(0, regexIndex);\n        const thisMatch = _findRegexMatchEnclosingPosition(wordDefinition, text, pos, prevRegexIndex);\n        if (!thisMatch && match) {\n            // stop: we have something\n            break;\n        }\n        match = thisMatch;\n        // stop: searched at start\n        if (regexIndex <= 0) {\n            break;\n        }\n        prevRegexIndex = regexIndex;\n    }\n    if (match) {\n        const result = {\n            word: match[0],\n            startColumn: textOffset + 1 + match.index,\n            endColumn: textOffset + 1 + match.index + match[0].length\n        };\n        wordDefinition.lastIndex = 0;\n        return result;\n    }\n    return null;\n}\nfunction _findRegexMatchEnclosingPosition(wordDefinition, text, pos, stopPos) {\n    let match;\n    while (match = wordDefinition.exec(text)) {\n        const matchIndex = match.index || 0;\n        if (matchIndex <= pos && wordDefinition.lastIndex >= pos) {\n            return match;\n        }\n        else if (stopPos > 0 && matchIndex > stopPos) {\n            return null;\n        }\n    }\n    return null;\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/core/wordHelper.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js":
/*!*******************************************************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js ***!
  \*******************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DateTimeout: () => (/* binding */ DateTimeout),\n/* harmony export */   DiffAlgorithmResult: () => (/* binding */ DiffAlgorithmResult),\n/* harmony export */   InfiniteTimeout: () => (/* binding */ InfiniteTimeout),\n/* harmony export */   OffsetPair: () => (/* binding */ OffsetPair),\n/* harmony export */   SequenceDiff: () => (/* binding */ SequenceDiff)\n/* harmony export */ });\n/* harmony import */ var _base_common_arrays_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../base/common/arrays.js */ \"./node_modules/monaco-editor/esm/vs/base/common/arrays.js\");\n/* harmony import */ var _base_common_errors_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../base/common/errors.js */ \"./node_modules/monaco-editor/esm/vs/base/common/errors.js\");\n/* harmony import */ var _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../core/offsetRange.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/offsetRange.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n\n\nclass DiffAlgorithmResult {\n    static trivial(seq1, seq2) {\n        return new DiffAlgorithmResult([new SequenceDiff(_core_offsetRange_js__WEBPACK_IMPORTED_MODULE_2__.OffsetRange.ofLength(seq1.length), _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_2__.OffsetRange.ofLength(seq2.length))], false);\n    }\n    static trivialTimedOut(seq1, seq2) {\n        return new DiffAlgorithmResult([new SequenceDiff(_core_offsetRange_js__WEBPACK_IMPORTED_MODULE_2__.OffsetRange.ofLength(seq1.length), _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_2__.OffsetRange.ofLength(seq2.length))], true);\n    }\n    constructor(diffs, \n    /**\n     * Indicates if the time out was reached.\n     * In that case, the diffs might be an approximation and the user should be asked to rerun the diff with more time.\n     */\n    hitTimeout) {\n        this.diffs = diffs;\n        this.hitTimeout = hitTimeout;\n    }\n}\nclass SequenceDiff {\n    static invert(sequenceDiffs, doc1Length) {\n        const result = [];\n        (0,_base_common_arrays_js__WEBPACK_IMPORTED_MODULE_0__.forEachAdjacent)(sequenceDiffs, (a, b) => {\n            result.push(SequenceDiff.fromOffsetPairs(a ? a.getEndExclusives() : OffsetPair.zero, b ? b.getStarts() : new OffsetPair(doc1Length, (a ? a.seq2Range.endExclusive - a.seq1Range.endExclusive : 0) + doc1Length)));\n        });\n        return result;\n    }\n    static fromOffsetPairs(start, endExclusive) {\n        return new SequenceDiff(new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_2__.OffsetRange(start.offset1, endExclusive.offset1), new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_2__.OffsetRange(start.offset2, endExclusive.offset2));\n    }\n    constructor(seq1Range, seq2Range) {\n        this.seq1Range = seq1Range;\n        this.seq2Range = seq2Range;\n    }\n    swap() {\n        return new SequenceDiff(this.seq2Range, this.seq1Range);\n    }\n    toString() {\n        return `${this.seq1Range} <-> ${this.seq2Range}`;\n    }\n    join(other) {\n        return new SequenceDiff(this.seq1Range.join(other.seq1Range), this.seq2Range.join(other.seq2Range));\n    }\n    delta(offset) {\n        if (offset === 0) {\n            return this;\n        }\n        return new SequenceDiff(this.seq1Range.delta(offset), this.seq2Range.delta(offset));\n    }\n    deltaStart(offset) {\n        if (offset === 0) {\n            return this;\n        }\n        return new SequenceDiff(this.seq1Range.deltaStart(offset), this.seq2Range.deltaStart(offset));\n    }\n    deltaEnd(offset) {\n        if (offset === 0) {\n            return this;\n        }\n        return new SequenceDiff(this.seq1Range.deltaEnd(offset), this.seq2Range.deltaEnd(offset));\n    }\n    intersect(other) {\n        const i1 = this.seq1Range.intersect(other.seq1Range);\n        const i2 = this.seq2Range.intersect(other.seq2Range);\n        if (!i1 || !i2) {\n            return undefined;\n        }\n        return new SequenceDiff(i1, i2);\n    }\n    getStarts() {\n        return new OffsetPair(this.seq1Range.start, this.seq2Range.start);\n    }\n    getEndExclusives() {\n        return new OffsetPair(this.seq1Range.endExclusive, this.seq2Range.endExclusive);\n    }\n}\nclass OffsetPair {\n    constructor(offset1, offset2) {\n        this.offset1 = offset1;\n        this.offset2 = offset2;\n    }\n    toString() {\n        return `${this.offset1} <-> ${this.offset2}`;\n    }\n}\nOffsetPair.zero = new OffsetPair(0, 0);\nOffsetPair.max = new OffsetPair(Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER);\nclass InfiniteTimeout {\n    isValid() {\n        return true;\n    }\n}\nInfiniteTimeout.instance = new InfiniteTimeout();\nclass DateTimeout {\n    constructor(timeout) {\n        this.timeout = timeout;\n        this.startTime = Date.now();\n        this.valid = true;\n        if (timeout <= 0) {\n            throw new _base_common_errors_js__WEBPACK_IMPORTED_MODULE_1__.BugIndicatingError('timeout must be positive');\n        }\n    }\n    // Recommendation: Set a log-point `{this.disable()}` in the body\n    isValid() {\n        const valid = Date.now() - this.startTime < this.timeout;\n        if (!valid && this.valid) {\n            this.valid = false; // timeout reached\n            // eslint-disable-next-line no-debugger\n            debugger; // WARNING: Most likely debugging caused the timeout. Call `this.disable()` to continue without timing out.\n        }\n        return this.valid;\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.js":
/*!*******************************************************************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.js ***!
  \*******************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DynamicProgrammingDiffing: () => (/* binding */ DynamicProgrammingDiffing)\n/* harmony export */ });\n/* harmony import */ var _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../core/offsetRange.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/offsetRange.js\");\n/* harmony import */ var _diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./diffAlgorithm.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js\");\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/utils.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n\n\n/**\n * A O(MN) diffing algorithm that supports a score function.\n * The algorithm can be improved by processing the 2d array diagonally.\n*/\nclass DynamicProgrammingDiffing {\n    compute(sequence1, sequence2, timeout = _diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_1__.InfiniteTimeout.instance, equalityScore) {\n        if (sequence1.length === 0 || sequence2.length === 0) {\n            return _diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_1__.DiffAlgorithmResult.trivial(sequence1, sequence2);\n        }\n        /**\n         * lcsLengths.get(i, j): Length of the longest common subsequence of sequence1.substring(0, i + 1) and sequence2.substring(0, j + 1).\n         */\n        const lcsLengths = new _utils_js__WEBPACK_IMPORTED_MODULE_2__.Array2D(sequence1.length, sequence2.length);\n        const directions = new _utils_js__WEBPACK_IMPORTED_MODULE_2__.Array2D(sequence1.length, sequence2.length);\n        const lengths = new _utils_js__WEBPACK_IMPORTED_MODULE_2__.Array2D(sequence1.length, sequence2.length);\n        // ==== Initializing lcsLengths ====\n        for (let s1 = 0; s1 < sequence1.length; s1++) {\n            for (let s2 = 0; s2 < sequence2.length; s2++) {\n                if (!timeout.isValid()) {\n                    return _diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_1__.DiffAlgorithmResult.trivialTimedOut(sequence1, sequence2);\n                }\n                const horizontalLen = s1 === 0 ? 0 : lcsLengths.get(s1 - 1, s2);\n                const verticalLen = s2 === 0 ? 0 : lcsLengths.get(s1, s2 - 1);\n                let extendedSeqScore;\n                if (sequence1.getElement(s1) === sequence2.getElement(s2)) {\n                    if (s1 === 0 || s2 === 0) {\n                        extendedSeqScore = 0;\n                    }\n                    else {\n                        extendedSeqScore = lcsLengths.get(s1 - 1, s2 - 1);\n                    }\n                    if (s1 > 0 && s2 > 0 && directions.get(s1 - 1, s2 - 1) === 3) {\n                        // Prefer consecutive diagonals\n                        extendedSeqScore += lengths.get(s1 - 1, s2 - 1);\n                    }\n                    extendedSeqScore += (equalityScore ? equalityScore(s1, s2) : 1);\n                }\n                else {\n                    extendedSeqScore = -1;\n                }\n                const newValue = Math.max(horizontalLen, verticalLen, extendedSeqScore);\n                if (newValue === extendedSeqScore) {\n                    // Prefer diagonals\n                    const prevLen = s1 > 0 && s2 > 0 ? lengths.get(s1 - 1, s2 - 1) : 0;\n                    lengths.set(s1, s2, prevLen + 1);\n                    directions.set(s1, s2, 3);\n                }\n                else if (newValue === horizontalLen) {\n                    lengths.set(s1, s2, 0);\n                    directions.set(s1, s2, 1);\n                }\n                else if (newValue === verticalLen) {\n                    lengths.set(s1, s2, 0);\n                    directions.set(s1, s2, 2);\n                }\n                lcsLengths.set(s1, s2, newValue);\n            }\n        }\n        // ==== Backtracking ====\n        const result = [];\n        let lastAligningPosS1 = sequence1.length;\n        let lastAligningPosS2 = sequence2.length;\n        function reportDecreasingAligningPositions(s1, s2) {\n            if (s1 + 1 !== lastAligningPosS1 || s2 + 1 !== lastAligningPosS2) {\n                result.push(new _diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_1__.SequenceDiff(new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_0__.OffsetRange(s1 + 1, lastAligningPosS1), new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_0__.OffsetRange(s2 + 1, lastAligningPosS2)));\n            }\n            lastAligningPosS1 = s1;\n            lastAligningPosS2 = s2;\n        }\n        let s1 = sequence1.length - 1;\n        let s2 = sequence2.length - 1;\n        while (s1 >= 0 && s2 >= 0) {\n            if (directions.get(s1, s2) === 3) {\n                reportDecreasingAligningPositions(s1, s2);\n                s1--;\n                s2--;\n            }\n            else {\n                if (directions.get(s1, s2) === 1) {\n                    s1--;\n                }\n                else {\n                    s2--;\n                }\n            }\n        }\n        reportDecreasingAligningPositions(-1, -1);\n        result.reverse();\n        return new _diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_1__.DiffAlgorithmResult(result, false);\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.js":
/*!************************************************************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.js ***!
  \************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MyersDiffAlgorithm: () => (/* binding */ MyersDiffAlgorithm)\n/* harmony export */ });\n/* harmony import */ var _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../core/offsetRange.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/offsetRange.js\");\n/* harmony import */ var _diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./diffAlgorithm.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n\n/**\n * An O(ND) diff algorithm that has a quadratic space worst-case complexity.\n*/\nclass MyersDiffAlgorithm {\n    compute(seq1, seq2, timeout = _diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_1__.InfiniteTimeout.instance) {\n        // These are common special cases.\n        // The early return improves performance dramatically.\n        if (seq1.length === 0 || seq2.length === 0) {\n            return _diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_1__.DiffAlgorithmResult.trivial(seq1, seq2);\n        }\n        const seqX = seq1; // Text on the x axis\n        const seqY = seq2; // Text on the y axis\n        function getXAfterSnake(x, y) {\n            while (x < seqX.length && y < seqY.length && seqX.getElement(x) === seqY.getElement(y)) {\n                x++;\n                y++;\n            }\n            return x;\n        }\n        let d = 0;\n        // V[k]: X value of longest d-line that ends in diagonal k.\n        // d-line: path from (0,0) to (x,y) that uses exactly d non-diagonals.\n        // diagonal k: Set of points (x,y) with x-y = k.\n        // k=1 -> (1,0),(2,1)\n        const V = new FastInt32Array();\n        V.set(0, getXAfterSnake(0, 0));\n        const paths = new FastArrayNegativeIndices();\n        paths.set(0, V.get(0) === 0 ? null : new SnakePath(null, 0, 0, V.get(0)));\n        let k = 0;\n        loop: while (true) {\n            d++;\n            if (!timeout.isValid()) {\n                return _diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_1__.DiffAlgorithmResult.trivialTimedOut(seqX, seqY);\n            }\n            // The paper has `for (k = -d; k <= d; k += 2)`, but we can ignore diagonals that cannot influence the result.\n            const lowerBound = -Math.min(d, seqY.length + (d % 2));\n            const upperBound = Math.min(d, seqX.length + (d % 2));\n            for (k = lowerBound; k <= upperBound; k += 2) {\n                let step = 0;\n                // We can use the X values of (d-1)-lines to compute X value of the longest d-lines.\n                const maxXofDLineTop = k === upperBound ? -1 : V.get(k + 1); // We take a vertical non-diagonal (add a symbol in seqX)\n                const maxXofDLineLeft = k === lowerBound ? -1 : V.get(k - 1) + 1; // We take a horizontal non-diagonal (+1 x) (delete a symbol in seqX)\n                step++;\n                const x = Math.min(Math.max(maxXofDLineTop, maxXofDLineLeft), seqX.length);\n                const y = x - k;\n                step++;\n                if (x > seqX.length || y > seqY.length) {\n                    // This diagonal is irrelevant for the result.\n                    // TODO: Don't pay the cost for this in the next iteration.\n                    continue;\n                }\n                const newMaxX = getXAfterSnake(x, y);\n                V.set(k, newMaxX);\n                const lastPath = x === maxXofDLineTop ? paths.get(k + 1) : paths.get(k - 1);\n                paths.set(k, newMaxX !== x ? new SnakePath(lastPath, x, y, newMaxX - x) : lastPath);\n                if (V.get(k) === seqX.length && V.get(k) - k === seqY.length) {\n                    break loop;\n                }\n            }\n        }\n        let path = paths.get(k);\n        const result = [];\n        let lastAligningPosS1 = seqX.length;\n        let lastAligningPosS2 = seqY.length;\n        while (true) {\n            const endX = path ? path.x + path.length : 0;\n            const endY = path ? path.y + path.length : 0;\n            if (endX !== lastAligningPosS1 || endY !== lastAligningPosS2) {\n                result.push(new _diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_1__.SequenceDiff(new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_0__.OffsetRange(endX, lastAligningPosS1), new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_0__.OffsetRange(endY, lastAligningPosS2)));\n            }\n            if (!path) {\n                break;\n            }\n            lastAligningPosS1 = path.x;\n            lastAligningPosS2 = path.y;\n            path = path.prev;\n        }\n        result.reverse();\n        return new _diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_1__.DiffAlgorithmResult(result, false);\n    }\n}\nclass SnakePath {\n    constructor(prev, x, y, length) {\n        this.prev = prev;\n        this.x = x;\n        this.y = y;\n        this.length = length;\n    }\n}\n/**\n * An array that supports fast negative indices.\n*/\nclass FastInt32Array {\n    constructor() {\n        this.positiveArr = new Int32Array(10);\n        this.negativeArr = new Int32Array(10);\n    }\n    get(idx) {\n        if (idx < 0) {\n            idx = -idx - 1;\n            return this.negativeArr[idx];\n        }\n        else {\n            return this.positiveArr[idx];\n        }\n    }\n    set(idx, value) {\n        if (idx < 0) {\n            idx = -idx - 1;\n            if (idx >= this.negativeArr.length) {\n                const arr = this.negativeArr;\n                this.negativeArr = new Int32Array(arr.length * 2);\n                this.negativeArr.set(arr);\n            }\n            this.negativeArr[idx] = value;\n        }\n        else {\n            if (idx >= this.positiveArr.length) {\n                const arr = this.positiveArr;\n                this.positiveArr = new Int32Array(arr.length * 2);\n                this.positiveArr.set(arr);\n            }\n            this.positiveArr[idx] = value;\n        }\n    }\n}\n/**\n * An array that supports fast negative indices.\n*/\nclass FastArrayNegativeIndices {\n    constructor() {\n        this.positiveArr = [];\n        this.negativeArr = [];\n    }\n    get(idx) {\n        if (idx < 0) {\n            idx = -idx - 1;\n            return this.negativeArr[idx];\n        }\n        else {\n            return this.positiveArr[idx];\n        }\n    }\n    set(idx, value) {\n        if (idx < 0) {\n            idx = -idx - 1;\n            this.negativeArr[idx] = value;\n        }\n        else {\n            this.positiveArr[idx] = value;\n        }\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.js":
/*!************************************************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.js ***!
  \************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   computeMovedLines: () => (/* binding */ computeMovedLines)\n/* harmony export */ });\n/* harmony import */ var _algorithms_diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./algorithms/diffAlgorithm.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js\");\n/* harmony import */ var _rangeMapping_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../rangeMapping.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/diff/rangeMapping.js\");\n/* harmony import */ var _base_common_arrays_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../base/common/arrays.js */ \"./node_modules/monaco-editor/esm/vs/base/common/arrays.js\");\n/* harmony import */ var _base_common_arraysFind_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../base/common/arraysFind.js */ \"./node_modules/monaco-editor/esm/vs/base/common/arraysFind.js\");\n/* harmony import */ var _base_common_map_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../base/common/map.js */ \"./node_modules/monaco-editor/esm/vs/base/common/map.js\");\n/* harmony import */ var _core_lineRange_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../core/lineRange.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/lineRange.js\");\n/* harmony import */ var _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../core/offsetRange.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/offsetRange.js\");\n/* harmony import */ var _linesSliceCharSequence_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./linesSliceCharSequence.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js\");\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/utils.js\");\n/* harmony import */ var _algorithms_myersDiffAlgorithm_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./algorithms/myersDiffAlgorithm.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n\n\n\n\n\n\n\n\n\nfunction computeMovedLines(changes, originalLines, modifiedLines, hashedOriginalLines, hashedModifiedLines, timeout) {\n    let { moves, excludedChanges } = computeMovesFromSimpleDeletionsToSimpleInsertions(changes, originalLines, modifiedLines, timeout);\n    if (!timeout.isValid()) {\n        return [];\n    }\n    const filteredChanges = changes.filter(c => !excludedChanges.has(c));\n    const unchangedMoves = computeUnchangedMoves(filteredChanges, hashedOriginalLines, hashedModifiedLines, originalLines, modifiedLines, timeout);\n    (0,_base_common_arrays_js__WEBPACK_IMPORTED_MODULE_2__.pushMany)(moves, unchangedMoves);\n    moves = joinCloseConsecutiveMoves(moves);\n    // Ignore too short moves\n    moves = moves.filter(current => {\n        const lines = current.original.toOffsetRange().slice(originalLines).map(l => l.trim());\n        const originalText = lines.join('\\n');\n        return originalText.length >= 15 && countWhere(lines, l => l.length >= 2) >= 2;\n    });\n    moves = removeMovesInSameDiff(changes, moves);\n    return moves;\n}\nfunction countWhere(arr, predicate) {\n    let count = 0;\n    for (const t of arr) {\n        if (predicate(t)) {\n            count++;\n        }\n    }\n    return count;\n}\nfunction computeMovesFromSimpleDeletionsToSimpleInsertions(changes, originalLines, modifiedLines, timeout) {\n    const moves = [];\n    const deletions = changes\n        .filter(c => c.modified.isEmpty && c.original.length >= 3)\n        .map(d => new _utils_js__WEBPACK_IMPORTED_MODULE_8__.LineRangeFragment(d.original, originalLines, d));\n    const insertions = new Set(changes\n        .filter(c => c.original.isEmpty && c.modified.length >= 3)\n        .map(d => new _utils_js__WEBPACK_IMPORTED_MODULE_8__.LineRangeFragment(d.modified, modifiedLines, d)));\n    const excludedChanges = new Set();\n    for (const deletion of deletions) {\n        let highestSimilarity = -1;\n        let best;\n        for (const insertion of insertions) {\n            const similarity = deletion.computeSimilarity(insertion);\n            if (similarity > highestSimilarity) {\n                highestSimilarity = similarity;\n                best = insertion;\n            }\n        }\n        if (highestSimilarity > 0.90 && best) {\n            insertions.delete(best);\n            moves.push(new _rangeMapping_js__WEBPACK_IMPORTED_MODULE_1__.LineRangeMapping(deletion.range, best.range));\n            excludedChanges.add(deletion.source);\n            excludedChanges.add(best.source);\n        }\n        if (!timeout.isValid()) {\n            return { moves, excludedChanges };\n        }\n    }\n    return { moves, excludedChanges };\n}\nfunction computeUnchangedMoves(changes, hashedOriginalLines, hashedModifiedLines, originalLines, modifiedLines, timeout) {\n    const moves = [];\n    const original3LineHashes = new _base_common_map_js__WEBPACK_IMPORTED_MODULE_4__.SetMap();\n    for (const change of changes) {\n        for (let i = change.original.startLineNumber; i < change.original.endLineNumberExclusive - 2; i++) {\n            const key = `${hashedOriginalLines[i - 1]}:${hashedOriginalLines[i + 1 - 1]}:${hashedOriginalLines[i + 2 - 1]}`;\n            original3LineHashes.add(key, { range: new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_5__.LineRange(i, i + 3) });\n        }\n    }\n    const possibleMappings = [];\n    changes.sort((0,_base_common_arrays_js__WEBPACK_IMPORTED_MODULE_2__.compareBy)(c => c.modified.startLineNumber, _base_common_arrays_js__WEBPACK_IMPORTED_MODULE_2__.numberComparator));\n    for (const change of changes) {\n        let lastMappings = [];\n        for (let i = change.modified.startLineNumber; i < change.modified.endLineNumberExclusive - 2; i++) {\n            const key = `${hashedModifiedLines[i - 1]}:${hashedModifiedLines[i + 1 - 1]}:${hashedModifiedLines[i + 2 - 1]}`;\n            const currentModifiedRange = new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_5__.LineRange(i, i + 3);\n            const nextMappings = [];\n            original3LineHashes.forEach(key, ({ range }) => {\n                for (const lastMapping of lastMappings) {\n                    // does this match extend some last match?\n                    if (lastMapping.originalLineRange.endLineNumberExclusive + 1 === range.endLineNumberExclusive &&\n                        lastMapping.modifiedLineRange.endLineNumberExclusive + 1 === currentModifiedRange.endLineNumberExclusive) {\n                        lastMapping.originalLineRange = new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_5__.LineRange(lastMapping.originalLineRange.startLineNumber, range.endLineNumberExclusive);\n                        lastMapping.modifiedLineRange = new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_5__.LineRange(lastMapping.modifiedLineRange.startLineNumber, currentModifiedRange.endLineNumberExclusive);\n                        nextMappings.push(lastMapping);\n                        return;\n                    }\n                }\n                const mapping = {\n                    modifiedLineRange: currentModifiedRange,\n                    originalLineRange: range,\n                };\n                possibleMappings.push(mapping);\n                nextMappings.push(mapping);\n            });\n            lastMappings = nextMappings;\n        }\n        if (!timeout.isValid()) {\n            return [];\n        }\n    }\n    possibleMappings.sort((0,_base_common_arrays_js__WEBPACK_IMPORTED_MODULE_2__.reverseOrder)((0,_base_common_arrays_js__WEBPACK_IMPORTED_MODULE_2__.compareBy)(m => m.modifiedLineRange.length, _base_common_arrays_js__WEBPACK_IMPORTED_MODULE_2__.numberComparator)));\n    const modifiedSet = new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_5__.LineRangeSet();\n    const originalSet = new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_5__.LineRangeSet();\n    for (const mapping of possibleMappings) {\n        const diffOrigToMod = mapping.modifiedLineRange.startLineNumber - mapping.originalLineRange.startLineNumber;\n        const modifiedSections = modifiedSet.subtractFrom(mapping.modifiedLineRange);\n        const originalTranslatedSections = originalSet.subtractFrom(mapping.originalLineRange).getWithDelta(diffOrigToMod);\n        const modifiedIntersectedSections = modifiedSections.getIntersection(originalTranslatedSections);\n        for (const s of modifiedIntersectedSections.ranges) {\n            if (s.length < 3) {\n                continue;\n            }\n            const modifiedLineRange = s;\n            const originalLineRange = s.delta(-diffOrigToMod);\n            moves.push(new _rangeMapping_js__WEBPACK_IMPORTED_MODULE_1__.LineRangeMapping(originalLineRange, modifiedLineRange));\n            modifiedSet.addRange(modifiedLineRange);\n            originalSet.addRange(originalLineRange);\n        }\n    }\n    moves.sort((0,_base_common_arrays_js__WEBPACK_IMPORTED_MODULE_2__.compareBy)(m => m.original.startLineNumber, _base_common_arrays_js__WEBPACK_IMPORTED_MODULE_2__.numberComparator));\n    const monotonousChanges = new _base_common_arraysFind_js__WEBPACK_IMPORTED_MODULE_3__.MonotonousArray(changes);\n    for (let i = 0; i < moves.length; i++) {\n        const move = moves[i];\n        const firstTouchingChangeOrig = monotonousChanges.findLastMonotonous(c => c.original.startLineNumber <= move.original.startLineNumber);\n        const firstTouchingChangeMod = (0,_base_common_arraysFind_js__WEBPACK_IMPORTED_MODULE_3__.findLastMonotonous)(changes, c => c.modified.startLineNumber <= move.modified.startLineNumber);\n        const linesAbove = Math.max(move.original.startLineNumber - firstTouchingChangeOrig.original.startLineNumber, move.modified.startLineNumber - firstTouchingChangeMod.modified.startLineNumber);\n        const lastTouchingChangeOrig = monotonousChanges.findLastMonotonous(c => c.original.startLineNumber < move.original.endLineNumberExclusive);\n        const lastTouchingChangeMod = (0,_base_common_arraysFind_js__WEBPACK_IMPORTED_MODULE_3__.findLastMonotonous)(changes, c => c.modified.startLineNumber < move.modified.endLineNumberExclusive);\n        const linesBelow = Math.max(lastTouchingChangeOrig.original.endLineNumberExclusive - move.original.endLineNumberExclusive, lastTouchingChangeMod.modified.endLineNumberExclusive - move.modified.endLineNumberExclusive);\n        let extendToTop;\n        for (extendToTop = 0; extendToTop < linesAbove; extendToTop++) {\n            const origLine = move.original.startLineNumber - extendToTop - 1;\n            const modLine = move.modified.startLineNumber - extendToTop - 1;\n            if (origLine > originalLines.length || modLine > modifiedLines.length) {\n                break;\n            }\n            if (modifiedSet.contains(modLine) || originalSet.contains(origLine)) {\n                break;\n            }\n            if (!areLinesSimilar(originalLines[origLine - 1], modifiedLines[modLine - 1], timeout)) {\n                break;\n            }\n        }\n        if (extendToTop > 0) {\n            originalSet.addRange(new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_5__.LineRange(move.original.startLineNumber - extendToTop, move.original.startLineNumber));\n            modifiedSet.addRange(new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_5__.LineRange(move.modified.startLineNumber - extendToTop, move.modified.startLineNumber));\n        }\n        let extendToBottom;\n        for (extendToBottom = 0; extendToBottom < linesBelow; extendToBottom++) {\n            const origLine = move.original.endLineNumberExclusive + extendToBottom;\n            const modLine = move.modified.endLineNumberExclusive + extendToBottom;\n            if (origLine > originalLines.length || modLine > modifiedLines.length) {\n                break;\n            }\n            if (modifiedSet.contains(modLine) || originalSet.contains(origLine)) {\n                break;\n            }\n            if (!areLinesSimilar(originalLines[origLine - 1], modifiedLines[modLine - 1], timeout)) {\n                break;\n            }\n        }\n        if (extendToBottom > 0) {\n            originalSet.addRange(new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_5__.LineRange(move.original.endLineNumberExclusive, move.original.endLineNumberExclusive + extendToBottom));\n            modifiedSet.addRange(new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_5__.LineRange(move.modified.endLineNumberExclusive, move.modified.endLineNumberExclusive + extendToBottom));\n        }\n        if (extendToTop > 0 || extendToBottom > 0) {\n            moves[i] = new _rangeMapping_js__WEBPACK_IMPORTED_MODULE_1__.LineRangeMapping(new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_5__.LineRange(move.original.startLineNumber - extendToTop, move.original.endLineNumberExclusive + extendToBottom), new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_5__.LineRange(move.modified.startLineNumber - extendToTop, move.modified.endLineNumberExclusive + extendToBottom));\n        }\n    }\n    return moves;\n}\nfunction areLinesSimilar(line1, line2, timeout) {\n    if (line1.trim() === line2.trim()) {\n        return true;\n    }\n    if (line1.length > 300 && line2.length > 300) {\n        return false;\n    }\n    const myersDiffingAlgorithm = new _algorithms_myersDiffAlgorithm_js__WEBPACK_IMPORTED_MODULE_9__.MyersDiffAlgorithm();\n    const result = myersDiffingAlgorithm.compute(new _linesSliceCharSequence_js__WEBPACK_IMPORTED_MODULE_7__.LinesSliceCharSequence([line1], new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_6__.OffsetRange(0, 1), false), new _linesSliceCharSequence_js__WEBPACK_IMPORTED_MODULE_7__.LinesSliceCharSequence([line2], new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_6__.OffsetRange(0, 1), false), timeout);\n    let commonNonSpaceCharCount = 0;\n    const inverted = _algorithms_diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_0__.SequenceDiff.invert(result.diffs, line1.length);\n    for (const seq of inverted) {\n        seq.seq1Range.forEach(idx => {\n            if (!(0,_utils_js__WEBPACK_IMPORTED_MODULE_8__.isSpace)(line1.charCodeAt(idx))) {\n                commonNonSpaceCharCount++;\n            }\n        });\n    }\n    function countNonWsChars(str) {\n        let count = 0;\n        for (let i = 0; i < line1.length; i++) {\n            if (!(0,_utils_js__WEBPACK_IMPORTED_MODULE_8__.isSpace)(str.charCodeAt(i))) {\n                count++;\n            }\n        }\n        return count;\n    }\n    const longerLineLength = countNonWsChars(line1.length > line2.length ? line1 : line2);\n    const r = commonNonSpaceCharCount / longerLineLength > 0.6 && longerLineLength > 10;\n    return r;\n}\nfunction joinCloseConsecutiveMoves(moves) {\n    if (moves.length === 0) {\n        return moves;\n    }\n    moves.sort((0,_base_common_arrays_js__WEBPACK_IMPORTED_MODULE_2__.compareBy)(m => m.original.startLineNumber, _base_common_arrays_js__WEBPACK_IMPORTED_MODULE_2__.numberComparator));\n    const result = [moves[0]];\n    for (let i = 1; i < moves.length; i++) {\n        const last = result[result.length - 1];\n        const current = moves[i];\n        const originalDist = current.original.startLineNumber - last.original.endLineNumberExclusive;\n        const modifiedDist = current.modified.startLineNumber - last.modified.endLineNumberExclusive;\n        const currentMoveAfterLast = originalDist >= 0 && modifiedDist >= 0;\n        if (currentMoveAfterLast && originalDist + modifiedDist <= 2) {\n            result[result.length - 1] = last.join(current);\n            continue;\n        }\n        result.push(current);\n    }\n    return result;\n}\nfunction removeMovesInSameDiff(changes, moves) {\n    const changesMonotonous = new _base_common_arraysFind_js__WEBPACK_IMPORTED_MODULE_3__.MonotonousArray(changes);\n    moves = moves.filter(m => {\n        const diffBeforeEndOfMoveOriginal = changesMonotonous.findLastMonotonous(c => c.original.startLineNumber < m.original.endLineNumberExclusive)\n            || new _rangeMapping_js__WEBPACK_IMPORTED_MODULE_1__.LineRangeMapping(new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_5__.LineRange(1, 1), new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_5__.LineRange(1, 1));\n        const diffBeforeEndOfMoveModified = (0,_base_common_arraysFind_js__WEBPACK_IMPORTED_MODULE_3__.findLastMonotonous)(changes, c => c.modified.startLineNumber < m.modified.endLineNumberExclusive);\n        const differentDiffs = diffBeforeEndOfMoveOriginal !== diffBeforeEndOfMoveModified;\n        return differentDiffs;\n    });\n    return moves;\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js":
/*!*******************************************************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js ***!
  \*******************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultLinesDiffComputer: () => (/* binding */ DefaultLinesDiffComputer),\n/* harmony export */   getLineRangeMapping: () => (/* binding */ getLineRangeMapping),\n/* harmony export */   lineRangeMappingFromRangeMappings: () => (/* binding */ lineRangeMappingFromRangeMappings)\n/* harmony export */ });\n/* harmony import */ var _base_common_arrays_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../base/common/arrays.js */ \"./node_modules/monaco-editor/esm/vs/base/common/arrays.js\");\n/* harmony import */ var _base_common_assert_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../base/common/assert.js */ \"./node_modules/monaco-editor/esm/vs/base/common/assert.js\");\n/* harmony import */ var _core_lineRange_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../core/lineRange.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/lineRange.js\");\n/* harmony import */ var _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../core/offsetRange.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/offsetRange.js\");\n/* harmony import */ var _core_range_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../core/range.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/range.js\");\n/* harmony import */ var _algorithms_diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./algorithms/diffAlgorithm.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js\");\n/* harmony import */ var _algorithms_dynamicProgrammingDiffing_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./algorithms/dynamicProgrammingDiffing.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.js\");\n/* harmony import */ var _algorithms_myersDiffAlgorithm_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./algorithms/myersDiffAlgorithm.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.js\");\n/* harmony import */ var _computeMovedLines_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./computeMovedLines.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.js\");\n/* harmony import */ var _heuristicSequenceOptimizations_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./heuristicSequenceOptimizations.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js\");\n/* harmony import */ var _linesDiffComputer_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../linesDiffComputer.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/diff/linesDiffComputer.js\");\n/* harmony import */ var _rangeMapping_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../rangeMapping.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/diff/rangeMapping.js\");\n/* harmony import */ var _linesSliceCharSequence_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./linesSliceCharSequence.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js\");\n/* harmony import */ var _lineSequence_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./lineSequence.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nclass DefaultLinesDiffComputer {\n    constructor() {\n        this.dynamicProgrammingDiffing = new _algorithms_dynamicProgrammingDiffing_js__WEBPACK_IMPORTED_MODULE_6__.DynamicProgrammingDiffing();\n        this.myersDiffingAlgorithm = new _algorithms_myersDiffAlgorithm_js__WEBPACK_IMPORTED_MODULE_7__.MyersDiffAlgorithm();\n    }\n    computeDiff(originalLines, modifiedLines, options) {\n        if (originalLines.length <= 1 && (0,_base_common_arrays_js__WEBPACK_IMPORTED_MODULE_0__.equals)(originalLines, modifiedLines, (a, b) => a === b)) {\n            return new _linesDiffComputer_js__WEBPACK_IMPORTED_MODULE_10__.LinesDiff([], [], false);\n        }\n        if (originalLines.length === 1 && originalLines[0].length === 0 || modifiedLines.length === 1 && modifiedLines[0].length === 0) {\n            return new _linesDiffComputer_js__WEBPACK_IMPORTED_MODULE_10__.LinesDiff([\n                new _rangeMapping_js__WEBPACK_IMPORTED_MODULE_11__.DetailedLineRangeMapping(new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_2__.LineRange(1, originalLines.length + 1), new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_2__.LineRange(1, modifiedLines.length + 1), [\n                    new _rangeMapping_js__WEBPACK_IMPORTED_MODULE_11__.RangeMapping(new _core_range_js__WEBPACK_IMPORTED_MODULE_4__.Range(1, 1, originalLines.length, originalLines[0].length + 1), new _core_range_js__WEBPACK_IMPORTED_MODULE_4__.Range(1, 1, modifiedLines.length, modifiedLines[0].length + 1))\n                ])\n            ], [], false);\n        }\n        const timeout = options.maxComputationTimeMs === 0 ? _algorithms_diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_5__.InfiniteTimeout.instance : new _algorithms_diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_5__.DateTimeout(options.maxComputationTimeMs);\n        const considerWhitespaceChanges = !options.ignoreTrimWhitespace;\n        const perfectHashes = new Map();\n        function getOrCreateHash(text) {\n            let hash = perfectHashes.get(text);\n            if (hash === undefined) {\n                hash = perfectHashes.size;\n                perfectHashes.set(text, hash);\n            }\n            return hash;\n        }\n        const originalLinesHashes = originalLines.map((l) => getOrCreateHash(l.trim()));\n        const modifiedLinesHashes = modifiedLines.map((l) => getOrCreateHash(l.trim()));\n        const sequence1 = new _lineSequence_js__WEBPACK_IMPORTED_MODULE_13__.LineSequence(originalLinesHashes, originalLines);\n        const sequence2 = new _lineSequence_js__WEBPACK_IMPORTED_MODULE_13__.LineSequence(modifiedLinesHashes, modifiedLines);\n        const lineAlignmentResult = (() => {\n            if (sequence1.length + sequence2.length < 1700) {\n                // Use the improved algorithm for small files\n                return this.dynamicProgrammingDiffing.compute(sequence1, sequence2, timeout, (offset1, offset2) => originalLines[offset1] === modifiedLines[offset2]\n                    ? modifiedLines[offset2].length === 0\n                        ? 0.1\n                        : 1 + Math.log(1 + modifiedLines[offset2].length)\n                    : 0.99);\n            }\n            return this.myersDiffingAlgorithm.compute(sequence1, sequence2);\n        })();\n        let lineAlignments = lineAlignmentResult.diffs;\n        let hitTimeout = lineAlignmentResult.hitTimeout;\n        lineAlignments = (0,_heuristicSequenceOptimizations_js__WEBPACK_IMPORTED_MODULE_9__.optimizeSequenceDiffs)(sequence1, sequence2, lineAlignments);\n        lineAlignments = (0,_heuristicSequenceOptimizations_js__WEBPACK_IMPORTED_MODULE_9__.removeVeryShortMatchingLinesBetweenDiffs)(sequence1, sequence2, lineAlignments);\n        const alignments = [];\n        const scanForWhitespaceChanges = (equalLinesCount) => {\n            if (!considerWhitespaceChanges) {\n                return;\n            }\n            for (let i = 0; i < equalLinesCount; i++) {\n                const seq1Offset = seq1LastStart + i;\n                const seq2Offset = seq2LastStart + i;\n                if (originalLines[seq1Offset] !== modifiedLines[seq2Offset]) {\n                    // This is because of whitespace changes, diff these lines\n                    const characterDiffs = this.refineDiff(originalLines, modifiedLines, new _algorithms_diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_5__.SequenceDiff(new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_3__.OffsetRange(seq1Offset, seq1Offset + 1), new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_3__.OffsetRange(seq2Offset, seq2Offset + 1)), timeout, considerWhitespaceChanges);\n                    for (const a of characterDiffs.mappings) {\n                        alignments.push(a);\n                    }\n                    if (characterDiffs.hitTimeout) {\n                        hitTimeout = true;\n                    }\n                }\n            }\n        };\n        let seq1LastStart = 0;\n        let seq2LastStart = 0;\n        for (const diff of lineAlignments) {\n            (0,_base_common_assert_js__WEBPACK_IMPORTED_MODULE_1__.assertFn)(() => diff.seq1Range.start - seq1LastStart === diff.seq2Range.start - seq2LastStart);\n            const equalLinesCount = diff.seq1Range.start - seq1LastStart;\n            scanForWhitespaceChanges(equalLinesCount);\n            seq1LastStart = diff.seq1Range.endExclusive;\n            seq2LastStart = diff.seq2Range.endExclusive;\n            const characterDiffs = this.refineDiff(originalLines, modifiedLines, diff, timeout, considerWhitespaceChanges);\n            if (characterDiffs.hitTimeout) {\n                hitTimeout = true;\n            }\n            for (const a of characterDiffs.mappings) {\n                alignments.push(a);\n            }\n        }\n        scanForWhitespaceChanges(originalLines.length - seq1LastStart);\n        const changes = lineRangeMappingFromRangeMappings(alignments, originalLines, modifiedLines);\n        let moves = [];\n        if (options.computeMoves) {\n            moves = this.computeMoves(changes, originalLines, modifiedLines, originalLinesHashes, modifiedLinesHashes, timeout, considerWhitespaceChanges);\n        }\n        // Make sure all ranges are valid\n        (0,_base_common_assert_js__WEBPACK_IMPORTED_MODULE_1__.assertFn)(() => {\n            function validatePosition(pos, lines) {\n                if (pos.lineNumber < 1 || pos.lineNumber > lines.length) {\n                    return false;\n                }\n                const line = lines[pos.lineNumber - 1];\n                if (pos.column < 1 || pos.column > line.length + 1) {\n                    return false;\n                }\n                return true;\n            }\n            function validateRange(range, lines) {\n                if (range.startLineNumber < 1 || range.startLineNumber > lines.length + 1) {\n                    return false;\n                }\n                if (range.endLineNumberExclusive < 1 || range.endLineNumberExclusive > lines.length + 1) {\n                    return false;\n                }\n                return true;\n            }\n            for (const c of changes) {\n                if (!c.innerChanges) {\n                    return false;\n                }\n                for (const ic of c.innerChanges) {\n                    const valid = validatePosition(ic.modifiedRange.getStartPosition(), modifiedLines) && validatePosition(ic.modifiedRange.getEndPosition(), modifiedLines) &&\n                        validatePosition(ic.originalRange.getStartPosition(), originalLines) && validatePosition(ic.originalRange.getEndPosition(), originalLines);\n                    if (!valid) {\n                        return false;\n                    }\n                }\n                if (!validateRange(c.modified, modifiedLines) || !validateRange(c.original, originalLines)) {\n                    return false;\n                }\n            }\n            return true;\n        });\n        return new _linesDiffComputer_js__WEBPACK_IMPORTED_MODULE_10__.LinesDiff(changes, moves, hitTimeout);\n    }\n    computeMoves(changes, originalLines, modifiedLines, hashedOriginalLines, hashedModifiedLines, timeout, considerWhitespaceChanges) {\n        const moves = (0,_computeMovedLines_js__WEBPACK_IMPORTED_MODULE_8__.computeMovedLines)(changes, originalLines, modifiedLines, hashedOriginalLines, hashedModifiedLines, timeout);\n        const movesWithDiffs = moves.map(m => {\n            const moveChanges = this.refineDiff(originalLines, modifiedLines, new _algorithms_diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_5__.SequenceDiff(m.original.toOffsetRange(), m.modified.toOffsetRange()), timeout, considerWhitespaceChanges);\n            const mappings = lineRangeMappingFromRangeMappings(moveChanges.mappings, originalLines, modifiedLines, true);\n            return new _linesDiffComputer_js__WEBPACK_IMPORTED_MODULE_10__.MovedText(m, mappings);\n        });\n        return movesWithDiffs;\n    }\n    refineDiff(originalLines, modifiedLines, diff, timeout, considerWhitespaceChanges) {\n        const slice1 = new _linesSliceCharSequence_js__WEBPACK_IMPORTED_MODULE_12__.LinesSliceCharSequence(originalLines, diff.seq1Range, considerWhitespaceChanges);\n        const slice2 = new _linesSliceCharSequence_js__WEBPACK_IMPORTED_MODULE_12__.LinesSliceCharSequence(modifiedLines, diff.seq2Range, considerWhitespaceChanges);\n        const diffResult = slice1.length + slice2.length < 500\n            ? this.dynamicProgrammingDiffing.compute(slice1, slice2, timeout)\n            : this.myersDiffingAlgorithm.compute(slice1, slice2, timeout);\n        let diffs = diffResult.diffs;\n        diffs = (0,_heuristicSequenceOptimizations_js__WEBPACK_IMPORTED_MODULE_9__.optimizeSequenceDiffs)(slice1, slice2, diffs);\n        diffs = (0,_heuristicSequenceOptimizations_js__WEBPACK_IMPORTED_MODULE_9__.extendDiffsToEntireWordIfAppropriate)(slice1, slice2, diffs);\n        diffs = (0,_heuristicSequenceOptimizations_js__WEBPACK_IMPORTED_MODULE_9__.removeShortMatches)(slice1, slice2, diffs);\n        diffs = (0,_heuristicSequenceOptimizations_js__WEBPACK_IMPORTED_MODULE_9__.removeVeryShortMatchingTextBetweenLongDiffs)(slice1, slice2, diffs);\n        const result = diffs.map((d) => new _rangeMapping_js__WEBPACK_IMPORTED_MODULE_11__.RangeMapping(slice1.translateRange(d.seq1Range), slice2.translateRange(d.seq2Range)));\n        // Assert: result applied on original should be the same as diff applied to original\n        return {\n            mappings: result,\n            hitTimeout: diffResult.hitTimeout,\n        };\n    }\n}\nfunction lineRangeMappingFromRangeMappings(alignments, originalLines, modifiedLines, dontAssertStartLine = false) {\n    const changes = [];\n    for (const g of (0,_base_common_arrays_js__WEBPACK_IMPORTED_MODULE_0__.groupAdjacentBy)(alignments.map(a => getLineRangeMapping(a, originalLines, modifiedLines)), (a1, a2) => a1.original.overlapOrTouch(a2.original)\n        || a1.modified.overlapOrTouch(a2.modified))) {\n        const first = g[0];\n        const last = g[g.length - 1];\n        changes.push(new _rangeMapping_js__WEBPACK_IMPORTED_MODULE_11__.DetailedLineRangeMapping(first.original.join(last.original), first.modified.join(last.modified), g.map(a => a.innerChanges[0])));\n    }\n    (0,_base_common_assert_js__WEBPACK_IMPORTED_MODULE_1__.assertFn)(() => {\n        if (!dontAssertStartLine) {\n            if (changes.length > 0 && changes[0].original.startLineNumber !== changes[0].modified.startLineNumber) {\n                return false;\n            }\n        }\n        return (0,_base_common_assert_js__WEBPACK_IMPORTED_MODULE_1__.checkAdjacentItems)(changes, (m1, m2) => m2.original.startLineNumber - m1.original.endLineNumberExclusive === m2.modified.startLineNumber - m1.modified.endLineNumberExclusive &&\n            // There has to be an unchanged line in between (otherwise both diffs should have been joined)\n            m1.original.endLineNumberExclusive < m2.original.startLineNumber &&\n            m1.modified.endLineNumberExclusive < m2.modified.startLineNumber);\n    });\n    return changes;\n}\nfunction getLineRangeMapping(rangeMapping, originalLines, modifiedLines) {\n    let lineStartDelta = 0;\n    let lineEndDelta = 0;\n    // rangeMapping describes the edit that replaces `rangeMapping.originalRange` with `newText := getText(modifiedLines, rangeMapping.modifiedRange)`.\n    // original: ]xxx \\n <- this line is not modified\n    // modified: ]xx  \\n\n    if (rangeMapping.modifiedRange.endColumn === 1 && rangeMapping.originalRange.endColumn === 1\n        && rangeMapping.originalRange.startLineNumber + lineStartDelta <= rangeMapping.originalRange.endLineNumber\n        && rangeMapping.modifiedRange.startLineNumber + lineStartDelta <= rangeMapping.modifiedRange.endLineNumber) {\n        // We can only do this if the range is not empty yet\n        lineEndDelta = -1;\n    }\n    // original: xxx[ \\n <- this line is not modified\n    // modified: xxx[ \\n\n    if (rangeMapping.modifiedRange.startColumn - 1 >= modifiedLines[rangeMapping.modifiedRange.startLineNumber - 1].length\n        && rangeMapping.originalRange.startColumn - 1 >= originalLines[rangeMapping.originalRange.startLineNumber - 1].length\n        && rangeMapping.originalRange.startLineNumber <= rangeMapping.originalRange.endLineNumber + lineEndDelta\n        && rangeMapping.modifiedRange.startLineNumber <= rangeMapping.modifiedRange.endLineNumber + lineEndDelta) {\n        // We can only do this if the range is not empty yet\n        lineStartDelta = 1;\n    }\n    const originalLineRange = new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_2__.LineRange(rangeMapping.originalRange.startLineNumber + lineStartDelta, rangeMapping.originalRange.endLineNumber + 1 + lineEndDelta);\n    const modifiedLineRange = new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_2__.LineRange(rangeMapping.modifiedRange.startLineNumber + lineStartDelta, rangeMapping.modifiedRange.endLineNumber + 1 + lineEndDelta);\n    return new _rangeMapping_js__WEBPACK_IMPORTED_MODULE_11__.DetailedLineRangeMapping(originalLineRange, modifiedLineRange, [rangeMapping]);\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js":
/*!*************************************************************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js ***!
  \*************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   extendDiffsToEntireWordIfAppropriate: () => (/* binding */ extendDiffsToEntireWordIfAppropriate),\n/* harmony export */   optimizeSequenceDiffs: () => (/* binding */ optimizeSequenceDiffs),\n/* harmony export */   removeShortMatches: () => (/* binding */ removeShortMatches),\n/* harmony export */   removeVeryShortMatchingLinesBetweenDiffs: () => (/* binding */ removeVeryShortMatchingLinesBetweenDiffs),\n/* harmony export */   removeVeryShortMatchingTextBetweenLongDiffs: () => (/* binding */ removeVeryShortMatchingTextBetweenLongDiffs)\n/* harmony export */ });\n/* harmony import */ var _base_common_arrays_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../base/common/arrays.js */ \"./node_modules/monaco-editor/esm/vs/base/common/arrays.js\");\n/* harmony import */ var _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../core/offsetRange.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/offsetRange.js\");\n/* harmony import */ var _algorithms_diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./algorithms/diffAlgorithm.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n\n\nfunction optimizeSequenceDiffs(sequence1, sequence2, sequenceDiffs) {\n    let result = sequenceDiffs;\n    result = joinSequenceDiffsByShifting(sequence1, sequence2, result);\n    // Sometimes, calling this function twice improves the result.\n    // Uncomment the second invocation and run the tests to see the difference.\n    result = joinSequenceDiffsByShifting(sequence1, sequence2, result);\n    result = shiftSequenceDiffs(sequence1, sequence2, result);\n    return result;\n}\n/**\n * This function fixes issues like this:\n * ```\n * import { Baz, Bar } from \"foo\";\n * ```\n * <->\n * ```\n * import { Baz, Bar, Foo } from \"foo\";\n * ```\n * Computed diff: [ {Add \",\" after Bar}, {Add \"Foo \" after space} }\n * Improved diff: [{Add \", Foo\" after Bar}]\n */\nfunction joinSequenceDiffsByShifting(sequence1, sequence2, sequenceDiffs) {\n    if (sequenceDiffs.length === 0) {\n        return sequenceDiffs;\n    }\n    const result = [];\n    result.push(sequenceDiffs[0]);\n    // First move them all to the left as much as possible and join them if possible\n    for (let i = 1; i < sequenceDiffs.length; i++) {\n        const prevResult = result[result.length - 1];\n        let cur = sequenceDiffs[i];\n        if (cur.seq1Range.isEmpty || cur.seq2Range.isEmpty) {\n            const length = cur.seq1Range.start - prevResult.seq1Range.endExclusive;\n            let d;\n            for (d = 1; d <= length; d++) {\n                if (sequence1.getElement(cur.seq1Range.start - d) !== sequence1.getElement(cur.seq1Range.endExclusive - d) ||\n                    sequence2.getElement(cur.seq2Range.start - d) !== sequence2.getElement(cur.seq2Range.endExclusive - d)) {\n                    break;\n                }\n            }\n            d--;\n            if (d === length) {\n                // Merge previous and current diff\n                result[result.length - 1] = new _algorithms_diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_2__.SequenceDiff(new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_1__.OffsetRange(prevResult.seq1Range.start, cur.seq1Range.endExclusive - length), new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_1__.OffsetRange(prevResult.seq2Range.start, cur.seq2Range.endExclusive - length));\n                continue;\n            }\n            cur = cur.delta(-d);\n        }\n        result.push(cur);\n    }\n    const result2 = [];\n    // Then move them all to the right and join them again if possible\n    for (let i = 0; i < result.length - 1; i++) {\n        const nextResult = result[i + 1];\n        let cur = result[i];\n        if (cur.seq1Range.isEmpty || cur.seq2Range.isEmpty) {\n            const length = nextResult.seq1Range.start - cur.seq1Range.endExclusive;\n            let d;\n            for (d = 0; d < length; d++) {\n                if (!sequence1.isStronglyEqual(cur.seq1Range.start + d, cur.seq1Range.endExclusive + d) ||\n                    !sequence2.isStronglyEqual(cur.seq2Range.start + d, cur.seq2Range.endExclusive + d)) {\n                    break;\n                }\n            }\n            if (d === length) {\n                // Merge previous and current diff, write to result!\n                result[i + 1] = new _algorithms_diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_2__.SequenceDiff(new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_1__.OffsetRange(cur.seq1Range.start + length, nextResult.seq1Range.endExclusive), new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_1__.OffsetRange(cur.seq2Range.start + length, nextResult.seq2Range.endExclusive));\n                continue;\n            }\n            if (d > 0) {\n                cur = cur.delta(d);\n            }\n        }\n        result2.push(cur);\n    }\n    if (result.length > 0) {\n        result2.push(result[result.length - 1]);\n    }\n    return result2;\n}\n// align character level diffs at whitespace characters\n// import { IBar } from \"foo\";\n// import { I[Arr, I]Bar } from \"foo\";\n// ->\n// import { [IArr, ]IBar } from \"foo\";\n// import { ITransaction, observableValue, transaction } from 'vs/base/common/observable';\n// import { ITransaction, observable[FromEvent, observable]Value, transaction } from 'vs/base/common/observable';\n// ->\n// import { ITransaction, [observableFromEvent, ]observableValue, transaction } from 'vs/base/common/observable';\n// collectBrackets(level + 1, levelPerBracketType);\n// collectBrackets(level + 1, levelPerBracket[ + 1, levelPerBracket]Type);\n// ->\n// collectBrackets(level + 1, [levelPerBracket + 1, ]levelPerBracketType);\nfunction shiftSequenceDiffs(sequence1, sequence2, sequenceDiffs) {\n    if (!sequence1.getBoundaryScore || !sequence2.getBoundaryScore) {\n        return sequenceDiffs;\n    }\n    for (let i = 0; i < sequenceDiffs.length; i++) {\n        const prevDiff = (i > 0 ? sequenceDiffs[i - 1] : undefined);\n        const diff = sequenceDiffs[i];\n        const nextDiff = (i + 1 < sequenceDiffs.length ? sequenceDiffs[i + 1] : undefined);\n        const seq1ValidRange = new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_1__.OffsetRange(prevDiff ? prevDiff.seq1Range.start + 1 : 0, nextDiff ? nextDiff.seq1Range.endExclusive - 1 : sequence1.length);\n        const seq2ValidRange = new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_1__.OffsetRange(prevDiff ? prevDiff.seq2Range.start + 1 : 0, nextDiff ? nextDiff.seq2Range.endExclusive - 1 : sequence2.length);\n        if (diff.seq1Range.isEmpty) {\n            sequenceDiffs[i] = shiftDiffToBetterPosition(diff, sequence1, sequence2, seq1ValidRange, seq2ValidRange);\n        }\n        else if (diff.seq2Range.isEmpty) {\n            sequenceDiffs[i] = shiftDiffToBetterPosition(diff.swap(), sequence2, sequence1, seq2ValidRange, seq1ValidRange).swap();\n        }\n    }\n    return sequenceDiffs;\n}\nfunction shiftDiffToBetterPosition(diff, sequence1, sequence2, seq1ValidRange, seq2ValidRange) {\n    const maxShiftLimit = 100; // To prevent performance issues\n    // don't touch previous or next!\n    let deltaBefore = 1;\n    while (diff.seq1Range.start - deltaBefore >= seq1ValidRange.start &&\n        diff.seq2Range.start - deltaBefore >= seq2ValidRange.start &&\n        sequence2.isStronglyEqual(diff.seq2Range.start - deltaBefore, diff.seq2Range.endExclusive - deltaBefore) && deltaBefore < maxShiftLimit) {\n        deltaBefore++;\n    }\n    deltaBefore--;\n    let deltaAfter = 0;\n    while (diff.seq1Range.start + deltaAfter < seq1ValidRange.endExclusive &&\n        diff.seq2Range.endExclusive + deltaAfter < seq2ValidRange.endExclusive &&\n        sequence2.isStronglyEqual(diff.seq2Range.start + deltaAfter, diff.seq2Range.endExclusive + deltaAfter) && deltaAfter < maxShiftLimit) {\n        deltaAfter++;\n    }\n    if (deltaBefore === 0 && deltaAfter === 0) {\n        return diff;\n    }\n    // Visualize `[sequence1.text, diff.seq1Range.start + deltaAfter]`\n    // and `[sequence2.text, diff.seq2Range.start + deltaAfter, diff.seq2Range.endExclusive + deltaAfter]`\n    let bestDelta = 0;\n    let bestScore = -1;\n    // find best scored delta\n    for (let delta = -deltaBefore; delta <= deltaAfter; delta++) {\n        const seq2OffsetStart = diff.seq2Range.start + delta;\n        const seq2OffsetEndExclusive = diff.seq2Range.endExclusive + delta;\n        const seq1Offset = diff.seq1Range.start + delta;\n        const score = sequence1.getBoundaryScore(seq1Offset) + sequence2.getBoundaryScore(seq2OffsetStart) + sequence2.getBoundaryScore(seq2OffsetEndExclusive);\n        if (score > bestScore) {\n            bestScore = score;\n            bestDelta = delta;\n        }\n    }\n    return diff.delta(bestDelta);\n}\nfunction removeShortMatches(sequence1, sequence2, sequenceDiffs) {\n    const result = [];\n    for (const s of sequenceDiffs) {\n        const last = result[result.length - 1];\n        if (!last) {\n            result.push(s);\n            continue;\n        }\n        if (s.seq1Range.start - last.seq1Range.endExclusive <= 2 || s.seq2Range.start - last.seq2Range.endExclusive <= 2) {\n            result[result.length - 1] = new _algorithms_diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_2__.SequenceDiff(last.seq1Range.join(s.seq1Range), last.seq2Range.join(s.seq2Range));\n        }\n        else {\n            result.push(s);\n        }\n    }\n    return result;\n}\nfunction extendDiffsToEntireWordIfAppropriate(sequence1, sequence2, sequenceDiffs) {\n    const additional = [];\n    let lastModifiedWord = undefined;\n    function maybePushWordToAdditional() {\n        if (!lastModifiedWord) {\n            return;\n        }\n        const originalLength1 = lastModifiedWord.s1Range.length - lastModifiedWord.deleted;\n        const originalLength2 = lastModifiedWord.s2Range.length - lastModifiedWord.added;\n        if (originalLength1 !== originalLength2) {\n            // TODO figure out why this happens\n        }\n        if (Math.max(lastModifiedWord.deleted, lastModifiedWord.added) + (lastModifiedWord.count - 1) > originalLength1) {\n            additional.push(new _algorithms_diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_2__.SequenceDiff(lastModifiedWord.s1Range, lastModifiedWord.s2Range));\n        }\n        lastModifiedWord = undefined;\n    }\n    for (const s of sequenceDiffs) {\n        function processWord(s1Range, s2Range) {\n            var _a, _b, _c, _d;\n            if (!lastModifiedWord || !lastModifiedWord.s1Range.containsRange(s1Range) || !lastModifiedWord.s2Range.containsRange(s2Range)) {\n                if (lastModifiedWord && !(lastModifiedWord.s1Range.endExclusive < s1Range.start && lastModifiedWord.s2Range.endExclusive < s2Range.start)) {\n                    const s1Added = _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_1__.OffsetRange.tryCreate(lastModifiedWord.s1Range.endExclusive, s1Range.start);\n                    const s2Added = _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_1__.OffsetRange.tryCreate(lastModifiedWord.s2Range.endExclusive, s2Range.start);\n                    lastModifiedWord.deleted += (_a = s1Added === null || s1Added === void 0 ? void 0 : s1Added.length) !== null && _a !== void 0 ? _a : 0;\n                    lastModifiedWord.added += (_b = s2Added === null || s2Added === void 0 ? void 0 : s2Added.length) !== null && _b !== void 0 ? _b : 0;\n                    lastModifiedWord.s1Range = lastModifiedWord.s1Range.join(s1Range);\n                    lastModifiedWord.s2Range = lastModifiedWord.s2Range.join(s2Range);\n                }\n                else {\n                    maybePushWordToAdditional();\n                    lastModifiedWord = { added: 0, deleted: 0, count: 0, s1Range: s1Range, s2Range: s2Range };\n                }\n            }\n            const changedS1 = s1Range.intersect(s.seq1Range);\n            const changedS2 = s2Range.intersect(s.seq2Range);\n            lastModifiedWord.count++;\n            lastModifiedWord.deleted += (_c = changedS1 === null || changedS1 === void 0 ? void 0 : changedS1.length) !== null && _c !== void 0 ? _c : 0;\n            lastModifiedWord.added += (_d = changedS2 === null || changedS2 === void 0 ? void 0 : changedS2.length) !== null && _d !== void 0 ? _d : 0;\n        }\n        const w1Before = sequence1.findWordContaining(s.seq1Range.start - 1);\n        const w2Before = sequence2.findWordContaining(s.seq2Range.start - 1);\n        const w1After = sequence1.findWordContaining(s.seq1Range.endExclusive);\n        const w2After = sequence2.findWordContaining(s.seq2Range.endExclusive);\n        if (w1Before && w1After && w2Before && w2After && w1Before.equals(w1After) && w2Before.equals(w2After)) {\n            processWord(w1Before, w2Before);\n        }\n        else {\n            if (w1Before && w2Before) {\n                processWord(w1Before, w2Before);\n            }\n            if (w1After && w2After) {\n                processWord(w1After, w2After);\n            }\n        }\n    }\n    maybePushWordToAdditional();\n    const merged = mergeSequenceDiffs(sequenceDiffs, additional);\n    return merged;\n}\nfunction mergeSequenceDiffs(sequenceDiffs1, sequenceDiffs2) {\n    const result = [];\n    while (sequenceDiffs1.length > 0 || sequenceDiffs2.length > 0) {\n        const sd1 = sequenceDiffs1[0];\n        const sd2 = sequenceDiffs2[0];\n        let next;\n        if (sd1 && (!sd2 || sd1.seq1Range.start < sd2.seq1Range.start)) {\n            next = sequenceDiffs1.shift();\n        }\n        else {\n            next = sequenceDiffs2.shift();\n        }\n        if (result.length > 0 && result[result.length - 1].seq1Range.endExclusive >= next.seq1Range.start) {\n            result[result.length - 1] = result[result.length - 1].join(next);\n        }\n        else {\n            result.push(next);\n        }\n    }\n    return result;\n}\nfunction removeVeryShortMatchingLinesBetweenDiffs(sequence1, _sequence2, sequenceDiffs) {\n    let diffs = sequenceDiffs;\n    if (diffs.length === 0) {\n        return diffs;\n    }\n    let counter = 0;\n    let shouldRepeat;\n    do {\n        shouldRepeat = false;\n        const result = [\n            diffs[0]\n        ];\n        for (let i = 1; i < diffs.length; i++) {\n            const cur = diffs[i];\n            const lastResult = result[result.length - 1];\n            function shouldJoinDiffs(before, after) {\n                const unchangedRange = new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_1__.OffsetRange(lastResult.seq1Range.endExclusive, cur.seq1Range.start);\n                const unchangedText = sequence1.getText(unchangedRange);\n                const unchangedTextWithoutWs = unchangedText.replace(/\\s/g, '');\n                if (unchangedTextWithoutWs.length <= 4\n                    && (before.seq1Range.length + before.seq2Range.length > 5 || after.seq1Range.length + after.seq2Range.length > 5)) {\n                    return true;\n                }\n                return false;\n            }\n            const shouldJoin = shouldJoinDiffs(lastResult, cur);\n            if (shouldJoin) {\n                shouldRepeat = true;\n                result[result.length - 1] = result[result.length - 1].join(cur);\n            }\n            else {\n                result.push(cur);\n            }\n        }\n        diffs = result;\n    } while (counter++ < 10 && shouldRepeat);\n    return diffs;\n}\nfunction removeVeryShortMatchingTextBetweenLongDiffs(sequence1, sequence2, sequenceDiffs) {\n    let diffs = sequenceDiffs;\n    if (diffs.length === 0) {\n        return diffs;\n    }\n    let counter = 0;\n    let shouldRepeat;\n    do {\n        shouldRepeat = false;\n        const result = [\n            diffs[0]\n        ];\n        for (let i = 1; i < diffs.length; i++) {\n            const cur = diffs[i];\n            const lastResult = result[result.length - 1];\n            function shouldJoinDiffs(before, after) {\n                const unchangedRange = new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_1__.OffsetRange(lastResult.seq1Range.endExclusive, cur.seq1Range.start);\n                const unchangedLineCount = sequence1.countLinesIn(unchangedRange);\n                if (unchangedLineCount > 5 || unchangedRange.length > 500) {\n                    return false;\n                }\n                const unchangedText = sequence1.getText(unchangedRange).trim();\n                if (unchangedText.length > 20 || unchangedText.split(/\\r\\n|\\r|\\n/).length > 1) {\n                    return false;\n                }\n                const beforeLineCount1 = sequence1.countLinesIn(before.seq1Range);\n                const beforeSeq1Length = before.seq1Range.length;\n                const beforeLineCount2 = sequence2.countLinesIn(before.seq2Range);\n                const beforeSeq2Length = before.seq2Range.length;\n                const afterLineCount1 = sequence1.countLinesIn(after.seq1Range);\n                const afterSeq1Length = after.seq1Range.length;\n                const afterLineCount2 = sequence2.countLinesIn(after.seq2Range);\n                const afterSeq2Length = after.seq2Range.length;\n                // TODO: Maybe a neural net can be used to derive the result from these numbers\n                const max = 2 * 40 + 50;\n                function cap(v) {\n                    return Math.min(v, max);\n                }\n                if (Math.pow(Math.pow(cap(beforeLineCount1 * 40 + beforeSeq1Length), 1.5) + Math.pow(cap(beforeLineCount2 * 40 + beforeSeq2Length), 1.5), 1.5)\n                    + Math.pow(Math.pow(cap(afterLineCount1 * 40 + afterSeq1Length), 1.5) + Math.pow(cap(afterLineCount2 * 40 + afterSeq2Length), 1.5), 1.5) > ((max ** 1.5) ** 1.5) * 1.3) {\n                    return true;\n                }\n                return false;\n            }\n            const shouldJoin = shouldJoinDiffs(lastResult, cur);\n            if (shouldJoin) {\n                shouldRepeat = true;\n                result[result.length - 1] = result[result.length - 1].join(cur);\n            }\n            else {\n                result.push(cur);\n            }\n        }\n        diffs = result;\n    } while (counter++ < 10 && shouldRepeat);\n    const newDiffs = [];\n    // Remove short suffixes/prefixes\n    (0,_base_common_arrays_js__WEBPACK_IMPORTED_MODULE_0__.forEachWithNeighbors)(diffs, (prev, cur, next) => {\n        let newDiff = cur;\n        function shouldMarkAsChanged(text) {\n            return text.length > 0 && text.trim().length <= 3 && cur.seq1Range.length + cur.seq2Range.length > 100;\n        }\n        const fullRange1 = sequence1.extendToFullLines(cur.seq1Range);\n        const prefix = sequence1.getText(new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_1__.OffsetRange(fullRange1.start, cur.seq1Range.start));\n        if (shouldMarkAsChanged(prefix)) {\n            newDiff = newDiff.deltaStart(-prefix.length);\n        }\n        const suffix = sequence1.getText(new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_1__.OffsetRange(cur.seq1Range.endExclusive, fullRange1.endExclusive));\n        if (shouldMarkAsChanged(suffix)) {\n            newDiff = newDiff.deltaEnd(suffix.length);\n        }\n        const availableSpace = _algorithms_diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_2__.SequenceDiff.fromOffsetPairs(prev ? prev.getEndExclusives() : _algorithms_diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_2__.OffsetPair.zero, next ? next.getStarts() : _algorithms_diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_2__.OffsetPair.max);\n        const result = newDiff.intersect(availableSpace);\n        newDiffs.push(result);\n    });\n    return newDiffs;\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.js ***!
  \*******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LineSequence: () => (/* binding */ LineSequence)\n/* harmony export */ });\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nclass LineSequence {\n    constructor(trimmedHash, lines) {\n        this.trimmedHash = trimmedHash;\n        this.lines = lines;\n    }\n    getElement(offset) {\n        return this.trimmedHash[offset];\n    }\n    get length() {\n        return this.trimmedHash.length;\n    }\n    getBoundaryScore(length) {\n        const indentationBefore = length === 0 ? 0 : getIndentation(this.lines[length - 1]);\n        const indentationAfter = length === this.lines.length ? 0 : getIndentation(this.lines[length]);\n        return 1000 - (indentationBefore + indentationAfter);\n    }\n    getText(range) {\n        return this.lines.slice(range.start, range.endExclusive).join('\\n');\n    }\n    isStronglyEqual(offset1, offset2) {\n        return this.lines[offset1] === this.lines[offset2];\n    }\n}\nfunction getIndentation(str) {\n    let i = 0;\n    while (i < str.length && (str.charCodeAt(i) === 32 /* CharCode.Space */ || str.charCodeAt(i) === 9 /* CharCode.Tab */)) {\n        i++;\n    }\n    return i;\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js":
/*!*****************************************************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js ***!
  \*****************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LinesSliceCharSequence: () => (/* binding */ LinesSliceCharSequence)\n/* harmony export */ });\n/* harmony import */ var _base_common_arraysFind_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../base/common/arraysFind.js */ \"./node_modules/monaco-editor/esm/vs/base/common/arraysFind.js\");\n/* harmony import */ var _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../core/offsetRange.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/offsetRange.js\");\n/* harmony import */ var _core_position_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../core/position.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/position.js\");\n/* harmony import */ var _core_range_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../core/range.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/range.js\");\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/utils.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n\n\n\n\nclass LinesSliceCharSequence {\n    constructor(lines, lineRange, considerWhitespaceChanges) {\n        // This slice has to have lineRange.length many \\n! (otherwise diffing against an empty slice will be problematic)\n        // (Unless it covers the entire document, in that case the other slice also has to cover the entire document ands it's okay)\n        this.lines = lines;\n        this.considerWhitespaceChanges = considerWhitespaceChanges;\n        this.elements = [];\n        this.firstCharOffsetByLine = [];\n        // To account for trimming\n        this.additionalOffsetByLine = [];\n        // If the slice covers the end, but does not start at the beginning, we include just the \\n of the previous line.\n        let trimFirstLineFully = false;\n        if (lineRange.start > 0 && lineRange.endExclusive >= lines.length) {\n            lineRange = new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_1__.OffsetRange(lineRange.start - 1, lineRange.endExclusive);\n            trimFirstLineFully = true;\n        }\n        this.lineRange = lineRange;\n        this.firstCharOffsetByLine[0] = 0;\n        for (let i = this.lineRange.start; i < this.lineRange.endExclusive; i++) {\n            let line = lines[i];\n            let offset = 0;\n            if (trimFirstLineFully) {\n                offset = line.length;\n                line = '';\n                trimFirstLineFully = false;\n            }\n            else if (!considerWhitespaceChanges) {\n                const trimmedStartLine = line.trimStart();\n                offset = line.length - trimmedStartLine.length;\n                line = trimmedStartLine.trimEnd();\n            }\n            this.additionalOffsetByLine.push(offset);\n            for (let i = 0; i < line.length; i++) {\n                this.elements.push(line.charCodeAt(i));\n            }\n            // Don't add an \\n that does not exist in the document.\n            if (i < lines.length - 1) {\n                this.elements.push('\\n'.charCodeAt(0));\n                this.firstCharOffsetByLine[i - this.lineRange.start + 1] = this.elements.length;\n            }\n        }\n        // To account for the last line\n        this.additionalOffsetByLine.push(0);\n    }\n    toString() {\n        return `Slice: \"${this.text}\"`;\n    }\n    get text() {\n        return this.getText(new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_1__.OffsetRange(0, this.length));\n    }\n    getText(range) {\n        return this.elements.slice(range.start, range.endExclusive).map(e => String.fromCharCode(e)).join('');\n    }\n    getElement(offset) {\n        return this.elements[offset];\n    }\n    get length() {\n        return this.elements.length;\n    }\n    getBoundaryScore(length) {\n        //   a   b   c   ,           d   e   f\n        // 11  0   0   12  15  6   13  0   0   11\n        const prevCategory = getCategory(length > 0 ? this.elements[length - 1] : -1);\n        const nextCategory = getCategory(length < this.elements.length ? this.elements[length] : -1);\n        if (prevCategory === 7 /* CharBoundaryCategory.LineBreakCR */ && nextCategory === 8 /* CharBoundaryCategory.LineBreakLF */) {\n            // don't break between \\r and \\n\n            return 0;\n        }\n        let score = 0;\n        if (prevCategory !== nextCategory) {\n            score += 10;\n            if (prevCategory === 0 /* CharBoundaryCategory.WordLower */ && nextCategory === 1 /* CharBoundaryCategory.WordUpper */) {\n                score += 1;\n            }\n        }\n        score += getCategoryBoundaryScore(prevCategory);\n        score += getCategoryBoundaryScore(nextCategory);\n        return score;\n    }\n    translateOffset(offset) {\n        // find smallest i, so that lineBreakOffsets[i] <= offset using binary search\n        if (this.lineRange.isEmpty) {\n            return new _core_position_js__WEBPACK_IMPORTED_MODULE_2__.Position(this.lineRange.start + 1, 1);\n        }\n        const i = (0,_base_common_arraysFind_js__WEBPACK_IMPORTED_MODULE_0__.findLastIdxMonotonous)(this.firstCharOffsetByLine, (value) => value <= offset);\n        return new _core_position_js__WEBPACK_IMPORTED_MODULE_2__.Position(this.lineRange.start + i + 1, offset - this.firstCharOffsetByLine[i] + this.additionalOffsetByLine[i] + 1);\n    }\n    translateRange(range) {\n        return _core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range.fromPositions(this.translateOffset(range.start), this.translateOffset(range.endExclusive));\n    }\n    /**\n     * Finds the word that contains the character at the given offset\n     */\n    findWordContaining(offset) {\n        if (offset < 0 || offset >= this.elements.length) {\n            return undefined;\n        }\n        if (!isWordChar(this.elements[offset])) {\n            return undefined;\n        }\n        // find start\n        let start = offset;\n        while (start > 0 && isWordChar(this.elements[start - 1])) {\n            start--;\n        }\n        // find end\n        let end = offset;\n        while (end < this.elements.length && isWordChar(this.elements[end])) {\n            end++;\n        }\n        return new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_1__.OffsetRange(start, end);\n    }\n    countLinesIn(range) {\n        return this.translateOffset(range.endExclusive).lineNumber - this.translateOffset(range.start).lineNumber;\n    }\n    isStronglyEqual(offset1, offset2) {\n        return this.elements[offset1] === this.elements[offset2];\n    }\n    extendToFullLines(range) {\n        var _a, _b;\n        const start = (_a = (0,_base_common_arraysFind_js__WEBPACK_IMPORTED_MODULE_0__.findLastMonotonous)(this.firstCharOffsetByLine, x => x <= range.start)) !== null && _a !== void 0 ? _a : 0;\n        const end = (_b = (0,_base_common_arraysFind_js__WEBPACK_IMPORTED_MODULE_0__.findFirstMonotonous)(this.firstCharOffsetByLine, x => range.endExclusive <= x)) !== null && _b !== void 0 ? _b : this.elements.length;\n        return new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_1__.OffsetRange(start, end);\n    }\n}\nfunction isWordChar(charCode) {\n    return charCode >= 97 /* CharCode.a */ && charCode <= 122 /* CharCode.z */\n        || charCode >= 65 /* CharCode.A */ && charCode <= 90 /* CharCode.Z */\n        || charCode >= 48 /* CharCode.Digit0 */ && charCode <= 57 /* CharCode.Digit9 */;\n}\nconst score = {\n    [0 /* CharBoundaryCategory.WordLower */]: 0,\n    [1 /* CharBoundaryCategory.WordUpper */]: 0,\n    [2 /* CharBoundaryCategory.WordNumber */]: 0,\n    [3 /* CharBoundaryCategory.End */]: 10,\n    [4 /* CharBoundaryCategory.Other */]: 2,\n    [5 /* CharBoundaryCategory.Separator */]: 3,\n    [6 /* CharBoundaryCategory.Space */]: 3,\n    [7 /* CharBoundaryCategory.LineBreakCR */]: 10,\n    [8 /* CharBoundaryCategory.LineBreakLF */]: 10,\n};\nfunction getCategoryBoundaryScore(category) {\n    return score[category];\n}\nfunction getCategory(charCode) {\n    if (charCode === 10 /* CharCode.LineFeed */) {\n        return 8 /* CharBoundaryCategory.LineBreakLF */;\n    }\n    else if (charCode === 13 /* CharCode.CarriageReturn */) {\n        return 7 /* CharBoundaryCategory.LineBreakCR */;\n    }\n    else if ((0,_utils_js__WEBPACK_IMPORTED_MODULE_4__.isSpace)(charCode)) {\n        return 6 /* CharBoundaryCategory.Space */;\n    }\n    else if (charCode >= 97 /* CharCode.a */ && charCode <= 122 /* CharCode.z */) {\n        return 0 /* CharBoundaryCategory.WordLower */;\n    }\n    else if (charCode >= 65 /* CharCode.A */ && charCode <= 90 /* CharCode.Z */) {\n        return 1 /* CharBoundaryCategory.WordUpper */;\n    }\n    else if (charCode >= 48 /* CharCode.Digit0 */ && charCode <= 57 /* CharCode.Digit9 */) {\n        return 2 /* CharBoundaryCategory.WordNumber */;\n    }\n    else if (charCode === -1) {\n        return 3 /* CharBoundaryCategory.End */;\n    }\n    else if (charCode === 44 /* CharCode.Comma */ || charCode === 59 /* CharCode.Semicolon */) {\n        return 5 /* CharBoundaryCategory.Separator */;\n    }\n    else {\n        return 4 /* CharBoundaryCategory.Other */;\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/utils.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/utils.js ***!
  \************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Array2D: () => (/* binding */ Array2D),\n/* harmony export */   LineRangeFragment: () => (/* binding */ LineRangeFragment),\n/* harmony export */   isSpace: () => (/* binding */ isSpace)\n/* harmony export */ });\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nclass Array2D {\n    constructor(width, height) {\n        this.width = width;\n        this.height = height;\n        this.array = [];\n        this.array = new Array(width * height);\n    }\n    get(x, y) {\n        return this.array[x + y * this.width];\n    }\n    set(x, y, value) {\n        this.array[x + y * this.width] = value;\n    }\n}\nfunction isSpace(charCode) {\n    return charCode === 32 /* CharCode.Space */ || charCode === 9 /* CharCode.Tab */;\n}\nclass LineRangeFragment {\n    static getKey(chr) {\n        let key = this.chrKeys.get(chr);\n        if (key === undefined) {\n            key = this.chrKeys.size;\n            this.chrKeys.set(chr, key);\n        }\n        return key;\n    }\n    constructor(range, lines, source) {\n        this.range = range;\n        this.lines = lines;\n        this.source = source;\n        this.histogram = [];\n        let counter = 0;\n        for (let i = range.startLineNumber - 1; i < range.endLineNumberExclusive - 1; i++) {\n            const line = lines[i];\n            for (let j = 0; j < line.length; j++) {\n                counter++;\n                const chr = line[j];\n                const key = LineRangeFragment.getKey(chr);\n                this.histogram[key] = (this.histogram[key] || 0) + 1;\n            }\n            counter++;\n            const key = LineRangeFragment.getKey('\\n');\n            this.histogram[key] = (this.histogram[key] || 0) + 1;\n        }\n        this.totalCount = counter;\n    }\n    computeSimilarity(other) {\n        var _a, _b;\n        let sumDifferences = 0;\n        const maxLength = Math.max(this.histogram.length, other.histogram.length);\n        for (let i = 0; i < maxLength; i++) {\n            sumDifferences += Math.abs(((_a = this.histogram[i]) !== null && _a !== void 0 ? _a : 0) - ((_b = other.histogram[i]) !== null && _b !== void 0 ? _b : 0));\n        }\n        return 1 - (sumDifferences / (this.totalCount + other.totalCount));\n    }\n}\nLineRangeFragment.chrKeys = new Map();\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/utils.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/diff/legacyLinesDiffComputer.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/diff/legacyLinesDiffComputer.js ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DiffComputer: () => (/* binding */ DiffComputer),\n/* harmony export */   LegacyLinesDiffComputer: () => (/* binding */ LegacyLinesDiffComputer)\n/* harmony export */ });\n/* harmony import */ var _base_common_diff_diff_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../base/common/diff/diff.js */ \"./node_modules/monaco-editor/esm/vs/base/common/diff/diff.js\");\n/* harmony import */ var _linesDiffComputer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./linesDiffComputer.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/diff/linesDiffComputer.js\");\n/* harmony import */ var _rangeMapping_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./rangeMapping.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/diff/rangeMapping.js\");\n/* harmony import */ var _base_common_strings_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../base/common/strings.js */ \"./node_modules/monaco-editor/esm/vs/base/common/strings.js\");\n/* harmony import */ var _core_range_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/range.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/range.js\");\n/* harmony import */ var _base_common_assert_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../base/common/assert.js */ \"./node_modules/monaco-editor/esm/vs/base/common/assert.js\");\n/* harmony import */ var _core_lineRange_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../core/lineRange.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/lineRange.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n\n\n\n\n\n\nconst MINIMUM_MATCHING_CHARACTER_LENGTH = 3;\nclass LegacyLinesDiffComputer {\n    computeDiff(originalLines, modifiedLines, options) {\n        var _a;\n        const diffComputer = new DiffComputer(originalLines, modifiedLines, {\n            maxComputationTime: options.maxComputationTimeMs,\n            shouldIgnoreTrimWhitespace: options.ignoreTrimWhitespace,\n            shouldComputeCharChanges: true,\n            shouldMakePrettyDiff: true,\n            shouldPostProcessCharChanges: true,\n        });\n        const result = diffComputer.computeDiff();\n        const changes = [];\n        let lastChange = null;\n        for (const c of result.changes) {\n            let originalRange;\n            if (c.originalEndLineNumber === 0) {\n                // Insertion\n                originalRange = new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_6__.LineRange(c.originalStartLineNumber + 1, c.originalStartLineNumber + 1);\n            }\n            else {\n                originalRange = new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_6__.LineRange(c.originalStartLineNumber, c.originalEndLineNumber + 1);\n            }\n            let modifiedRange;\n            if (c.modifiedEndLineNumber === 0) {\n                // Deletion\n                modifiedRange = new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_6__.LineRange(c.modifiedStartLineNumber + 1, c.modifiedStartLineNumber + 1);\n            }\n            else {\n                modifiedRange = new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_6__.LineRange(c.modifiedStartLineNumber, c.modifiedEndLineNumber + 1);\n            }\n            let change = new _rangeMapping_js__WEBPACK_IMPORTED_MODULE_2__.DetailedLineRangeMapping(originalRange, modifiedRange, (_a = c.charChanges) === null || _a === void 0 ? void 0 : _a.map(c => new _rangeMapping_js__WEBPACK_IMPORTED_MODULE_2__.RangeMapping(new _core_range_js__WEBPACK_IMPORTED_MODULE_4__.Range(c.originalStartLineNumber, c.originalStartColumn, c.originalEndLineNumber, c.originalEndColumn), new _core_range_js__WEBPACK_IMPORTED_MODULE_4__.Range(c.modifiedStartLineNumber, c.modifiedStartColumn, c.modifiedEndLineNumber, c.modifiedEndColumn))));\n            if (lastChange) {\n                if (lastChange.modified.endLineNumberExclusive === change.modified.startLineNumber\n                    || lastChange.original.endLineNumberExclusive === change.original.startLineNumber) {\n                    // join touching diffs. Probably moving diffs up/down in the algorithm causes touching diffs.\n                    change = new _rangeMapping_js__WEBPACK_IMPORTED_MODULE_2__.DetailedLineRangeMapping(lastChange.original.join(change.original), lastChange.modified.join(change.modified), lastChange.innerChanges && change.innerChanges ?\n                        lastChange.innerChanges.concat(change.innerChanges) : undefined);\n                    changes.pop();\n                }\n            }\n            changes.push(change);\n            lastChange = change;\n        }\n        (0,_base_common_assert_js__WEBPACK_IMPORTED_MODULE_5__.assertFn)(() => {\n            return (0,_base_common_assert_js__WEBPACK_IMPORTED_MODULE_5__.checkAdjacentItems)(changes, (m1, m2) => m2.original.startLineNumber - m1.original.endLineNumberExclusive === m2.modified.startLineNumber - m1.modified.endLineNumberExclusive &&\n                // There has to be an unchanged line in between (otherwise both diffs should have been joined)\n                m1.original.endLineNumberExclusive < m2.original.startLineNumber &&\n                m1.modified.endLineNumberExclusive < m2.modified.startLineNumber);\n        });\n        return new _linesDiffComputer_js__WEBPACK_IMPORTED_MODULE_1__.LinesDiff(changes, [], result.quitEarly);\n    }\n}\nfunction computeDiff(originalSequence, modifiedSequence, continueProcessingPredicate, pretty) {\n    const diffAlgo = new _base_common_diff_diff_js__WEBPACK_IMPORTED_MODULE_0__.LcsDiff(originalSequence, modifiedSequence, continueProcessingPredicate);\n    return diffAlgo.ComputeDiff(pretty);\n}\nclass LineSequence {\n    constructor(lines) {\n        const startColumns = [];\n        const endColumns = [];\n        for (let i = 0, length = lines.length; i < length; i++) {\n            startColumns[i] = getFirstNonBlankColumn(lines[i], 1);\n            endColumns[i] = getLastNonBlankColumn(lines[i], 1);\n        }\n        this.lines = lines;\n        this._startColumns = startColumns;\n        this._endColumns = endColumns;\n    }\n    getElements() {\n        const elements = [];\n        for (let i = 0, len = this.lines.length; i < len; i++) {\n            elements[i] = this.lines[i].substring(this._startColumns[i] - 1, this._endColumns[i] - 1);\n        }\n        return elements;\n    }\n    getStrictElement(index) {\n        return this.lines[index];\n    }\n    getStartLineNumber(i) {\n        return i + 1;\n    }\n    getEndLineNumber(i) {\n        return i + 1;\n    }\n    createCharSequence(shouldIgnoreTrimWhitespace, startIndex, endIndex) {\n        const charCodes = [];\n        const lineNumbers = [];\n        const columns = [];\n        let len = 0;\n        for (let index = startIndex; index <= endIndex; index++) {\n            const lineContent = this.lines[index];\n            const startColumn = (shouldIgnoreTrimWhitespace ? this._startColumns[index] : 1);\n            const endColumn = (shouldIgnoreTrimWhitespace ? this._endColumns[index] : lineContent.length + 1);\n            for (let col = startColumn; col < endColumn; col++) {\n                charCodes[len] = lineContent.charCodeAt(col - 1);\n                lineNumbers[len] = index + 1;\n                columns[len] = col;\n                len++;\n            }\n            if (!shouldIgnoreTrimWhitespace && index < endIndex) {\n                // Add \\n if trim whitespace is not ignored\n                charCodes[len] = 10 /* CharCode.LineFeed */;\n                lineNumbers[len] = index + 1;\n                columns[len] = lineContent.length + 1;\n                len++;\n            }\n        }\n        return new CharSequence(charCodes, lineNumbers, columns);\n    }\n}\nclass CharSequence {\n    constructor(charCodes, lineNumbers, columns) {\n        this._charCodes = charCodes;\n        this._lineNumbers = lineNumbers;\n        this._columns = columns;\n    }\n    toString() {\n        return ('[' + this._charCodes.map((s, idx) => (s === 10 /* CharCode.LineFeed */ ? '\\\\n' : String.fromCharCode(s)) + `-(${this._lineNumbers[idx]},${this._columns[idx]})`).join(', ') + ']');\n    }\n    _assertIndex(index, arr) {\n        if (index < 0 || index >= arr.length) {\n            throw new Error(`Illegal index`);\n        }\n    }\n    getElements() {\n        return this._charCodes;\n    }\n    getStartLineNumber(i) {\n        if (i > 0 && i === this._lineNumbers.length) {\n            // the start line number of the element after the last element\n            // is the end line number of the last element\n            return this.getEndLineNumber(i - 1);\n        }\n        this._assertIndex(i, this._lineNumbers);\n        return this._lineNumbers[i];\n    }\n    getEndLineNumber(i) {\n        if (i === -1) {\n            // the end line number of the element before the first element\n            // is the start line number of the first element\n            return this.getStartLineNumber(i + 1);\n        }\n        this._assertIndex(i, this._lineNumbers);\n        if (this._charCodes[i] === 10 /* CharCode.LineFeed */) {\n            return this._lineNumbers[i] + 1;\n        }\n        return this._lineNumbers[i];\n    }\n    getStartColumn(i) {\n        if (i > 0 && i === this._columns.length) {\n            // the start column of the element after the last element\n            // is the end column of the last element\n            return this.getEndColumn(i - 1);\n        }\n        this._assertIndex(i, this._columns);\n        return this._columns[i];\n    }\n    getEndColumn(i) {\n        if (i === -1) {\n            // the end column of the element before the first element\n            // is the start column of the first element\n            return this.getStartColumn(i + 1);\n        }\n        this._assertIndex(i, this._columns);\n        if (this._charCodes[i] === 10 /* CharCode.LineFeed */) {\n            return 1;\n        }\n        return this._columns[i] + 1;\n    }\n}\nclass CharChange {\n    constructor(originalStartLineNumber, originalStartColumn, originalEndLineNumber, originalEndColumn, modifiedStartLineNumber, modifiedStartColumn, modifiedEndLineNumber, modifiedEndColumn) {\n        this.originalStartLineNumber = originalStartLineNumber;\n        this.originalStartColumn = originalStartColumn;\n        this.originalEndLineNumber = originalEndLineNumber;\n        this.originalEndColumn = originalEndColumn;\n        this.modifiedStartLineNumber = modifiedStartLineNumber;\n        this.modifiedStartColumn = modifiedStartColumn;\n        this.modifiedEndLineNumber = modifiedEndLineNumber;\n        this.modifiedEndColumn = modifiedEndColumn;\n    }\n    static createFromDiffChange(diffChange, originalCharSequence, modifiedCharSequence) {\n        const originalStartLineNumber = originalCharSequence.getStartLineNumber(diffChange.originalStart);\n        const originalStartColumn = originalCharSequence.getStartColumn(diffChange.originalStart);\n        const originalEndLineNumber = originalCharSequence.getEndLineNumber(diffChange.originalStart + diffChange.originalLength - 1);\n        const originalEndColumn = originalCharSequence.getEndColumn(diffChange.originalStart + diffChange.originalLength - 1);\n        const modifiedStartLineNumber = modifiedCharSequence.getStartLineNumber(diffChange.modifiedStart);\n        const modifiedStartColumn = modifiedCharSequence.getStartColumn(diffChange.modifiedStart);\n        const modifiedEndLineNumber = modifiedCharSequence.getEndLineNumber(diffChange.modifiedStart + diffChange.modifiedLength - 1);\n        const modifiedEndColumn = modifiedCharSequence.getEndColumn(diffChange.modifiedStart + diffChange.modifiedLength - 1);\n        return new CharChange(originalStartLineNumber, originalStartColumn, originalEndLineNumber, originalEndColumn, modifiedStartLineNumber, modifiedStartColumn, modifiedEndLineNumber, modifiedEndColumn);\n    }\n}\nfunction postProcessCharChanges(rawChanges) {\n    if (rawChanges.length <= 1) {\n        return rawChanges;\n    }\n    const result = [rawChanges[0]];\n    let prevChange = result[0];\n    for (let i = 1, len = rawChanges.length; i < len; i++) {\n        const currChange = rawChanges[i];\n        const originalMatchingLength = currChange.originalStart - (prevChange.originalStart + prevChange.originalLength);\n        const modifiedMatchingLength = currChange.modifiedStart - (prevChange.modifiedStart + prevChange.modifiedLength);\n        // Both of the above should be equal, but the continueProcessingPredicate may prevent this from being true\n        const matchingLength = Math.min(originalMatchingLength, modifiedMatchingLength);\n        if (matchingLength < MINIMUM_MATCHING_CHARACTER_LENGTH) {\n            // Merge the current change into the previous one\n            prevChange.originalLength = (currChange.originalStart + currChange.originalLength) - prevChange.originalStart;\n            prevChange.modifiedLength = (currChange.modifiedStart + currChange.modifiedLength) - prevChange.modifiedStart;\n        }\n        else {\n            // Add the current change\n            result.push(currChange);\n            prevChange = currChange;\n        }\n    }\n    return result;\n}\nclass LineChange {\n    constructor(originalStartLineNumber, originalEndLineNumber, modifiedStartLineNumber, modifiedEndLineNumber, charChanges) {\n        this.originalStartLineNumber = originalStartLineNumber;\n        this.originalEndLineNumber = originalEndLineNumber;\n        this.modifiedStartLineNumber = modifiedStartLineNumber;\n        this.modifiedEndLineNumber = modifiedEndLineNumber;\n        this.charChanges = charChanges;\n    }\n    static createFromDiffResult(shouldIgnoreTrimWhitespace, diffChange, originalLineSequence, modifiedLineSequence, continueCharDiff, shouldComputeCharChanges, shouldPostProcessCharChanges) {\n        let originalStartLineNumber;\n        let originalEndLineNumber;\n        let modifiedStartLineNumber;\n        let modifiedEndLineNumber;\n        let charChanges = undefined;\n        if (diffChange.originalLength === 0) {\n            originalStartLineNumber = originalLineSequence.getStartLineNumber(diffChange.originalStart) - 1;\n            originalEndLineNumber = 0;\n        }\n        else {\n            originalStartLineNumber = originalLineSequence.getStartLineNumber(diffChange.originalStart);\n            originalEndLineNumber = originalLineSequence.getEndLineNumber(diffChange.originalStart + diffChange.originalLength - 1);\n        }\n        if (diffChange.modifiedLength === 0) {\n            modifiedStartLineNumber = modifiedLineSequence.getStartLineNumber(diffChange.modifiedStart) - 1;\n            modifiedEndLineNumber = 0;\n        }\n        else {\n            modifiedStartLineNumber = modifiedLineSequence.getStartLineNumber(diffChange.modifiedStart);\n            modifiedEndLineNumber = modifiedLineSequence.getEndLineNumber(diffChange.modifiedStart + diffChange.modifiedLength - 1);\n        }\n        if (shouldComputeCharChanges && diffChange.originalLength > 0 && diffChange.originalLength < 20 && diffChange.modifiedLength > 0 && diffChange.modifiedLength < 20 && continueCharDiff()) {\n            // Compute character changes for diff chunks of at most 20 lines...\n            const originalCharSequence = originalLineSequence.createCharSequence(shouldIgnoreTrimWhitespace, diffChange.originalStart, diffChange.originalStart + diffChange.originalLength - 1);\n            const modifiedCharSequence = modifiedLineSequence.createCharSequence(shouldIgnoreTrimWhitespace, diffChange.modifiedStart, diffChange.modifiedStart + diffChange.modifiedLength - 1);\n            if (originalCharSequence.getElements().length > 0 && modifiedCharSequence.getElements().length > 0) {\n                let rawChanges = computeDiff(originalCharSequence, modifiedCharSequence, continueCharDiff, true).changes;\n                if (shouldPostProcessCharChanges) {\n                    rawChanges = postProcessCharChanges(rawChanges);\n                }\n                charChanges = [];\n                for (let i = 0, length = rawChanges.length; i < length; i++) {\n                    charChanges.push(CharChange.createFromDiffChange(rawChanges[i], originalCharSequence, modifiedCharSequence));\n                }\n            }\n        }\n        return new LineChange(originalStartLineNumber, originalEndLineNumber, modifiedStartLineNumber, modifiedEndLineNumber, charChanges);\n    }\n}\nclass DiffComputer {\n    constructor(originalLines, modifiedLines, opts) {\n        this.shouldComputeCharChanges = opts.shouldComputeCharChanges;\n        this.shouldPostProcessCharChanges = opts.shouldPostProcessCharChanges;\n        this.shouldIgnoreTrimWhitespace = opts.shouldIgnoreTrimWhitespace;\n        this.shouldMakePrettyDiff = opts.shouldMakePrettyDiff;\n        this.originalLines = originalLines;\n        this.modifiedLines = modifiedLines;\n        this.original = new LineSequence(originalLines);\n        this.modified = new LineSequence(modifiedLines);\n        this.continueLineDiff = createContinueProcessingPredicate(opts.maxComputationTime);\n        this.continueCharDiff = createContinueProcessingPredicate(opts.maxComputationTime === 0 ? 0 : Math.min(opts.maxComputationTime, 5000)); // never run after 5s for character changes...\n    }\n    computeDiff() {\n        if (this.original.lines.length === 1 && this.original.lines[0].length === 0) {\n            // empty original => fast path\n            if (this.modified.lines.length === 1 && this.modified.lines[0].length === 0) {\n                return {\n                    quitEarly: false,\n                    changes: []\n                };\n            }\n            return {\n                quitEarly: false,\n                changes: [{\n                        originalStartLineNumber: 1,\n                        originalEndLineNumber: 1,\n                        modifiedStartLineNumber: 1,\n                        modifiedEndLineNumber: this.modified.lines.length,\n                        charChanges: undefined\n                    }]\n            };\n        }\n        if (this.modified.lines.length === 1 && this.modified.lines[0].length === 0) {\n            // empty modified => fast path\n            return {\n                quitEarly: false,\n                changes: [{\n                        originalStartLineNumber: 1,\n                        originalEndLineNumber: this.original.lines.length,\n                        modifiedStartLineNumber: 1,\n                        modifiedEndLineNumber: 1,\n                        charChanges: undefined\n                    }]\n            };\n        }\n        const diffResult = computeDiff(this.original, this.modified, this.continueLineDiff, this.shouldMakePrettyDiff);\n        const rawChanges = diffResult.changes;\n        const quitEarly = diffResult.quitEarly;\n        // The diff is always computed with ignoring trim whitespace\n        // This ensures we get the prettiest diff\n        if (this.shouldIgnoreTrimWhitespace) {\n            const lineChanges = [];\n            for (let i = 0, length = rawChanges.length; i < length; i++) {\n                lineChanges.push(LineChange.createFromDiffResult(this.shouldIgnoreTrimWhitespace, rawChanges[i], this.original, this.modified, this.continueCharDiff, this.shouldComputeCharChanges, this.shouldPostProcessCharChanges));\n            }\n            return {\n                quitEarly: quitEarly,\n                changes: lineChanges\n            };\n        }\n        // Need to post-process and introduce changes where the trim whitespace is different\n        // Note that we are looping starting at -1 to also cover the lines before the first change\n        const result = [];\n        let originalLineIndex = 0;\n        let modifiedLineIndex = 0;\n        for (let i = -1 /* !!!! */, len = rawChanges.length; i < len; i++) {\n            const nextChange = (i + 1 < len ? rawChanges[i + 1] : null);\n            const originalStop = (nextChange ? nextChange.originalStart : this.originalLines.length);\n            const modifiedStop = (nextChange ? nextChange.modifiedStart : this.modifiedLines.length);\n            while (originalLineIndex < originalStop && modifiedLineIndex < modifiedStop) {\n                const originalLine = this.originalLines[originalLineIndex];\n                const modifiedLine = this.modifiedLines[modifiedLineIndex];\n                if (originalLine !== modifiedLine) {\n                    // These lines differ only in trim whitespace\n                    // Check the leading whitespace\n                    {\n                        let originalStartColumn = getFirstNonBlankColumn(originalLine, 1);\n                        let modifiedStartColumn = getFirstNonBlankColumn(modifiedLine, 1);\n                        while (originalStartColumn > 1 && modifiedStartColumn > 1) {\n                            const originalChar = originalLine.charCodeAt(originalStartColumn - 2);\n                            const modifiedChar = modifiedLine.charCodeAt(modifiedStartColumn - 2);\n                            if (originalChar !== modifiedChar) {\n                                break;\n                            }\n                            originalStartColumn--;\n                            modifiedStartColumn--;\n                        }\n                        if (originalStartColumn > 1 || modifiedStartColumn > 1) {\n                            this._pushTrimWhitespaceCharChange(result, originalLineIndex + 1, 1, originalStartColumn, modifiedLineIndex + 1, 1, modifiedStartColumn);\n                        }\n                    }\n                    // Check the trailing whitespace\n                    {\n                        let originalEndColumn = getLastNonBlankColumn(originalLine, 1);\n                        let modifiedEndColumn = getLastNonBlankColumn(modifiedLine, 1);\n                        const originalMaxColumn = originalLine.length + 1;\n                        const modifiedMaxColumn = modifiedLine.length + 1;\n                        while (originalEndColumn < originalMaxColumn && modifiedEndColumn < modifiedMaxColumn) {\n                            const originalChar = originalLine.charCodeAt(originalEndColumn - 1);\n                            const modifiedChar = originalLine.charCodeAt(modifiedEndColumn - 1);\n                            if (originalChar !== modifiedChar) {\n                                break;\n                            }\n                            originalEndColumn++;\n                            modifiedEndColumn++;\n                        }\n                        if (originalEndColumn < originalMaxColumn || modifiedEndColumn < modifiedMaxColumn) {\n                            this._pushTrimWhitespaceCharChange(result, originalLineIndex + 1, originalEndColumn, originalMaxColumn, modifiedLineIndex + 1, modifiedEndColumn, modifiedMaxColumn);\n                        }\n                    }\n                }\n                originalLineIndex++;\n                modifiedLineIndex++;\n            }\n            if (nextChange) {\n                // Emit the actual change\n                result.push(LineChange.createFromDiffResult(this.shouldIgnoreTrimWhitespace, nextChange, this.original, this.modified, this.continueCharDiff, this.shouldComputeCharChanges, this.shouldPostProcessCharChanges));\n                originalLineIndex += nextChange.originalLength;\n                modifiedLineIndex += nextChange.modifiedLength;\n            }\n        }\n        return {\n            quitEarly: quitEarly,\n            changes: result\n        };\n    }\n    _pushTrimWhitespaceCharChange(result, originalLineNumber, originalStartColumn, originalEndColumn, modifiedLineNumber, modifiedStartColumn, modifiedEndColumn) {\n        if (this._mergeTrimWhitespaceCharChange(result, originalLineNumber, originalStartColumn, originalEndColumn, modifiedLineNumber, modifiedStartColumn, modifiedEndColumn)) {\n            // Merged into previous\n            return;\n        }\n        let charChanges = undefined;\n        if (this.shouldComputeCharChanges) {\n            charChanges = [new CharChange(originalLineNumber, originalStartColumn, originalLineNumber, originalEndColumn, modifiedLineNumber, modifiedStartColumn, modifiedLineNumber, modifiedEndColumn)];\n        }\n        result.push(new LineChange(originalLineNumber, originalLineNumber, modifiedLineNumber, modifiedLineNumber, charChanges));\n    }\n    _mergeTrimWhitespaceCharChange(result, originalLineNumber, originalStartColumn, originalEndColumn, modifiedLineNumber, modifiedStartColumn, modifiedEndColumn) {\n        const len = result.length;\n        if (len === 0) {\n            return false;\n        }\n        const prevChange = result[len - 1];\n        if (prevChange.originalEndLineNumber === 0 || prevChange.modifiedEndLineNumber === 0) {\n            // Don't merge with inserts/deletes\n            return false;\n        }\n        if (prevChange.originalEndLineNumber === originalLineNumber && prevChange.modifiedEndLineNumber === modifiedLineNumber) {\n            if (this.shouldComputeCharChanges && prevChange.charChanges) {\n                prevChange.charChanges.push(new CharChange(originalLineNumber, originalStartColumn, originalLineNumber, originalEndColumn, modifiedLineNumber, modifiedStartColumn, modifiedLineNumber, modifiedEndColumn));\n            }\n            return true;\n        }\n        if (prevChange.originalEndLineNumber + 1 === originalLineNumber && prevChange.modifiedEndLineNumber + 1 === modifiedLineNumber) {\n            prevChange.originalEndLineNumber = originalLineNumber;\n            prevChange.modifiedEndLineNumber = modifiedLineNumber;\n            if (this.shouldComputeCharChanges && prevChange.charChanges) {\n                prevChange.charChanges.push(new CharChange(originalLineNumber, originalStartColumn, originalLineNumber, originalEndColumn, modifiedLineNumber, modifiedStartColumn, modifiedLineNumber, modifiedEndColumn));\n            }\n            return true;\n        }\n        return false;\n    }\n}\nfunction getFirstNonBlankColumn(txt, defaultValue) {\n    const r = _base_common_strings_js__WEBPACK_IMPORTED_MODULE_3__.firstNonWhitespaceIndex(txt);\n    if (r === -1) {\n        return defaultValue;\n    }\n    return r + 1;\n}\nfunction getLastNonBlankColumn(txt, defaultValue) {\n    const r = _base_common_strings_js__WEBPACK_IMPORTED_MODULE_3__.lastNonWhitespaceIndex(txt);\n    if (r === -1) {\n        return defaultValue;\n    }\n    return r + 2;\n}\nfunction createContinueProcessingPredicate(maximumRuntime) {\n    if (maximumRuntime === 0) {\n        return () => true;\n    }\n    const startTime = Date.now();\n    return () => {\n        return Date.now() - startTime < maximumRuntime;\n    };\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/diff/legacyLinesDiffComputer.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/diff/linesDiffComputer.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/diff/linesDiffComputer.js ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LinesDiff: () => (/* binding */ LinesDiff),\n/* harmony export */   MovedText: () => (/* binding */ MovedText)\n/* harmony export */ });\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nclass LinesDiff {\n    constructor(changes, \n    /**\n     * Sorted by original line ranges.\n     * The original line ranges and the modified line ranges must be disjoint (but can be touching).\n     */\n    moves, \n    /**\n     * Indicates if the time out was reached.\n     * In that case, the diffs might be an approximation and the user should be asked to rerun the diff with more time.\n     */\n    hitTimeout) {\n        this.changes = changes;\n        this.moves = moves;\n        this.hitTimeout = hitTimeout;\n    }\n}\nclass MovedText {\n    constructor(lineRangeMapping, changes) {\n        this.lineRangeMapping = lineRangeMapping;\n        this.changes = changes;\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/diff/linesDiffComputer.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/diff/linesDiffComputers.js":
/*!************************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/diff/linesDiffComputers.js ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   linesDiffComputers: () => (/* binding */ linesDiffComputers)\n/* harmony export */ });\n/* harmony import */ var _legacyLinesDiffComputer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./legacyLinesDiffComputer.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/diff/legacyLinesDiffComputer.js\");\n/* harmony import */ var _defaultLinesDiffComputer_defaultLinesDiffComputer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./defaultLinesDiffComputer/defaultLinesDiffComputer.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n\nconst linesDiffComputers = {\n    getLegacy: () => new _legacyLinesDiffComputer_js__WEBPACK_IMPORTED_MODULE_0__.LegacyLinesDiffComputer(),\n    getDefault: () => new _defaultLinesDiffComputer_defaultLinesDiffComputer_js__WEBPACK_IMPORTED_MODULE_1__.DefaultLinesDiffComputer(),\n};\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/diff/linesDiffComputers.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/diff/rangeMapping.js":
/*!******************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/diff/rangeMapping.js ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DetailedLineRangeMapping: () => (/* binding */ DetailedLineRangeMapping),\n/* harmony export */   LineRangeMapping: () => (/* binding */ LineRangeMapping),\n/* harmony export */   RangeMapping: () => (/* binding */ RangeMapping)\n/* harmony export */ });\n/* harmony import */ var _core_lineRange_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/lineRange.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/lineRange.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/**\n * Maps a line range in the original text model to a line range in the modified text model.\n */\nclass LineRangeMapping {\n    static inverse(mapping, originalLineCount, modifiedLineCount) {\n        const result = [];\n        let lastOriginalEndLineNumber = 1;\n        let lastModifiedEndLineNumber = 1;\n        for (const m of mapping) {\n            const r = new DetailedLineRangeMapping(new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_0__.LineRange(lastOriginalEndLineNumber, m.original.startLineNumber), new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_0__.LineRange(lastModifiedEndLineNumber, m.modified.startLineNumber), undefined);\n            if (!r.modified.isEmpty) {\n                result.push(r);\n            }\n            lastOriginalEndLineNumber = m.original.endLineNumberExclusive;\n            lastModifiedEndLineNumber = m.modified.endLineNumberExclusive;\n        }\n        const r = new DetailedLineRangeMapping(new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_0__.LineRange(lastOriginalEndLineNumber, originalLineCount + 1), new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_0__.LineRange(lastModifiedEndLineNumber, modifiedLineCount + 1), undefined);\n        if (!r.modified.isEmpty) {\n            result.push(r);\n        }\n        return result;\n    }\n    constructor(originalRange, modifiedRange) {\n        this.original = originalRange;\n        this.modified = modifiedRange;\n    }\n    toString() {\n        return `{${this.original.toString()}->${this.modified.toString()}}`;\n    }\n    flip() {\n        return new LineRangeMapping(this.modified, this.original);\n    }\n    join(other) {\n        return new LineRangeMapping(this.original.join(other.original), this.modified.join(other.modified));\n    }\n}\n/**\n * Maps a line range in the original text model to a line range in the modified text model.\n * Also contains inner range mappings.\n */\nclass DetailedLineRangeMapping extends LineRangeMapping {\n    constructor(originalRange, modifiedRange, innerChanges) {\n        super(originalRange, modifiedRange);\n        this.innerChanges = innerChanges;\n    }\n    flip() {\n        var _a;\n        return new DetailedLineRangeMapping(this.modified, this.original, (_a = this.innerChanges) === null || _a === void 0 ? void 0 : _a.map(c => c.flip()));\n    }\n}\n/**\n * Maps a range in the original text model to a range in the modified text model.\n */\nclass RangeMapping {\n    constructor(originalRange, modifiedRange) {\n        this.originalRange = originalRange;\n        this.modifiedRange = modifiedRange;\n    }\n    toString() {\n        return `{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`;\n    }\n    flip() {\n        return new RangeMapping(this.modifiedRange, this.originalRange);\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/diff/rangeMapping.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/languages.js":
/*!**********************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/languages.js ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Command: () => (/* binding */ Command),\n/* harmony export */   CompletionItemKinds: () => (/* binding */ CompletionItemKinds),\n/* harmony export */   DocumentHighlightKind: () => (/* binding */ DocumentHighlightKind),\n/* harmony export */   EncodedTokenizationResult: () => (/* binding */ EncodedTokenizationResult),\n/* harmony export */   FoldingRangeKind: () => (/* binding */ FoldingRangeKind),\n/* harmony export */   InlayHintKind: () => (/* binding */ InlayHintKind),\n/* harmony export */   InlineCompletionTriggerKind: () => (/* binding */ InlineCompletionTriggerKind),\n/* harmony export */   LazyTokenizationSupport: () => (/* binding */ LazyTokenizationSupport),\n/* harmony export */   SelectedSuggestionInfo: () => (/* binding */ SelectedSuggestionInfo),\n/* harmony export */   SignatureHelpTriggerKind: () => (/* binding */ SignatureHelpTriggerKind),\n/* harmony export */   SymbolKinds: () => (/* binding */ SymbolKinds),\n/* harmony export */   TextEdit: () => (/* binding */ TextEdit),\n/* harmony export */   Token: () => (/* binding */ Token),\n/* harmony export */   TokenizationRegistry: () => (/* binding */ TokenizationRegistry),\n/* harmony export */   TokenizationResult: () => (/* binding */ TokenizationResult),\n/* harmony export */   getAriaLabelForSymbol: () => (/* binding */ getAriaLabelForSymbol),\n/* harmony export */   isLocationLink: () => (/* binding */ isLocationLink),\n/* harmony export */   symbolKindNames: () => (/* binding */ symbolKindNames)\n/* harmony export */ });\n/* harmony import */ var _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../base/common/codicons.js */ \"./node_modules/monaco-editor/esm/vs/base/common/codicons.js\");\n/* harmony import */ var _base_common_uri_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../base/common/uri.js */ \"./node_modules/monaco-editor/esm/vs/base/common/uri.js\");\n/* harmony import */ var _core_range_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./core/range.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/range.js\");\n/* harmony import */ var _tokenizationRegistry_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tokenizationRegistry.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/tokenizationRegistry.js\");\n/* harmony import */ var _nls_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../nls.js */ \"./node_modules/monaco-editor/esm/vs/nls.js\");\n\n\n\n\n\nclass Token {\n    constructor(offset, type, language) {\n        this.offset = offset;\n        this.type = type;\n        this.language = language;\n        this._tokenBrand = undefined;\n    }\n    toString() {\n        return '(' + this.offset + ', ' + this.type + ')';\n    }\n}\n/**\n * @internal\n */\nclass TokenizationResult {\n    constructor(tokens, endState) {\n        this.tokens = tokens;\n        this.endState = endState;\n        this._tokenizationResultBrand = undefined;\n    }\n}\n/**\n * @internal\n */\nclass EncodedTokenizationResult {\n    constructor(\n    /**\n     * The tokens in binary format. Each token occupies two array indices. For token i:\n     *  - at offset 2*i => startIndex\n     *  - at offset 2*i + 1 => metadata\n     *\n     */\n    tokens, endState) {\n        this.tokens = tokens;\n        this.endState = endState;\n        this._encodedTokenizationResultBrand = undefined;\n    }\n}\n/**\n * @internal\n */\nvar CompletionItemKinds;\n(function (CompletionItemKinds) {\n    const byKind = new Map();\n    byKind.set(0 /* CompletionItemKind.Method */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolMethod);\n    byKind.set(1 /* CompletionItemKind.Function */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolFunction);\n    byKind.set(2 /* CompletionItemKind.Constructor */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolConstructor);\n    byKind.set(3 /* CompletionItemKind.Field */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolField);\n    byKind.set(4 /* CompletionItemKind.Variable */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolVariable);\n    byKind.set(5 /* CompletionItemKind.Class */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolClass);\n    byKind.set(6 /* CompletionItemKind.Struct */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolStruct);\n    byKind.set(7 /* CompletionItemKind.Interface */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolInterface);\n    byKind.set(8 /* CompletionItemKind.Module */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolModule);\n    byKind.set(9 /* CompletionItemKind.Property */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolProperty);\n    byKind.set(10 /* CompletionItemKind.Event */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolEvent);\n    byKind.set(11 /* CompletionItemKind.Operator */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolOperator);\n    byKind.set(12 /* CompletionItemKind.Unit */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolUnit);\n    byKind.set(13 /* CompletionItemKind.Value */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolValue);\n    byKind.set(15 /* CompletionItemKind.Enum */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolEnum);\n    byKind.set(14 /* CompletionItemKind.Constant */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolConstant);\n    byKind.set(15 /* CompletionItemKind.Enum */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolEnum);\n    byKind.set(16 /* CompletionItemKind.EnumMember */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolEnumMember);\n    byKind.set(17 /* CompletionItemKind.Keyword */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolKeyword);\n    byKind.set(27 /* CompletionItemKind.Snippet */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolSnippet);\n    byKind.set(18 /* CompletionItemKind.Text */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolText);\n    byKind.set(19 /* CompletionItemKind.Color */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolColor);\n    byKind.set(20 /* CompletionItemKind.File */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolFile);\n    byKind.set(21 /* CompletionItemKind.Reference */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolReference);\n    byKind.set(22 /* CompletionItemKind.Customcolor */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolCustomColor);\n    byKind.set(23 /* CompletionItemKind.Folder */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolFolder);\n    byKind.set(24 /* CompletionItemKind.TypeParameter */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolTypeParameter);\n    byKind.set(25 /* CompletionItemKind.User */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.account);\n    byKind.set(26 /* CompletionItemKind.Issue */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.issues);\n    /**\n     * @internal\n     */\n    function toIcon(kind) {\n        let codicon = byKind.get(kind);\n        if (!codicon) {\n            console.info('No codicon found for CompletionItemKind ' + kind);\n            codicon = _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolProperty;\n        }\n        return codicon;\n    }\n    CompletionItemKinds.toIcon = toIcon;\n    const data = new Map();\n    data.set('method', 0 /* CompletionItemKind.Method */);\n    data.set('function', 1 /* CompletionItemKind.Function */);\n    data.set('constructor', 2 /* CompletionItemKind.Constructor */);\n    data.set('field', 3 /* CompletionItemKind.Field */);\n    data.set('variable', 4 /* CompletionItemKind.Variable */);\n    data.set('class', 5 /* CompletionItemKind.Class */);\n    data.set('struct', 6 /* CompletionItemKind.Struct */);\n    data.set('interface', 7 /* CompletionItemKind.Interface */);\n    data.set('module', 8 /* CompletionItemKind.Module */);\n    data.set('property', 9 /* CompletionItemKind.Property */);\n    data.set('event', 10 /* CompletionItemKind.Event */);\n    data.set('operator', 11 /* CompletionItemKind.Operator */);\n    data.set('unit', 12 /* CompletionItemKind.Unit */);\n    data.set('value', 13 /* CompletionItemKind.Value */);\n    data.set('constant', 14 /* CompletionItemKind.Constant */);\n    data.set('enum', 15 /* CompletionItemKind.Enum */);\n    data.set('enum-member', 16 /* CompletionItemKind.EnumMember */);\n    data.set('enumMember', 16 /* CompletionItemKind.EnumMember */);\n    data.set('keyword', 17 /* CompletionItemKind.Keyword */);\n    data.set('snippet', 27 /* CompletionItemKind.Snippet */);\n    data.set('text', 18 /* CompletionItemKind.Text */);\n    data.set('color', 19 /* CompletionItemKind.Color */);\n    data.set('file', 20 /* CompletionItemKind.File */);\n    data.set('reference', 21 /* CompletionItemKind.Reference */);\n    data.set('customcolor', 22 /* CompletionItemKind.Customcolor */);\n    data.set('folder', 23 /* CompletionItemKind.Folder */);\n    data.set('type-parameter', 24 /* CompletionItemKind.TypeParameter */);\n    data.set('typeParameter', 24 /* CompletionItemKind.TypeParameter */);\n    data.set('account', 25 /* CompletionItemKind.User */);\n    data.set('issue', 26 /* CompletionItemKind.Issue */);\n    /**\n     * @internal\n     */\n    function fromString(value, strict) {\n        let res = data.get(value);\n        if (typeof res === 'undefined' && !strict) {\n            res = 9 /* CompletionItemKind.Property */;\n        }\n        return res;\n    }\n    CompletionItemKinds.fromString = fromString;\n})(CompletionItemKinds || (CompletionItemKinds = {}));\n/**\n * How an {@link InlineCompletionsProvider inline completion provider} was triggered.\n */\nvar InlineCompletionTriggerKind;\n(function (InlineCompletionTriggerKind) {\n    /**\n     * Completion was triggered automatically while editing.\n     * It is sufficient to return a single completion item in this case.\n     */\n    InlineCompletionTriggerKind[InlineCompletionTriggerKind[\"Automatic\"] = 0] = \"Automatic\";\n    /**\n     * Completion was triggered explicitly by a user gesture.\n     * Return multiple completion items to enable cycling through them.\n     */\n    InlineCompletionTriggerKind[InlineCompletionTriggerKind[\"Explicit\"] = 1] = \"Explicit\";\n})(InlineCompletionTriggerKind || (InlineCompletionTriggerKind = {}));\nclass SelectedSuggestionInfo {\n    constructor(range, text, completionKind, isSnippetText) {\n        this.range = range;\n        this.text = text;\n        this.completionKind = completionKind;\n        this.isSnippetText = isSnippetText;\n    }\n    equals(other) {\n        return _core_range_js__WEBPACK_IMPORTED_MODULE_2__.Range.lift(this.range).equalsRange(other.range)\n            && this.text === other.text\n            && this.completionKind === other.completionKind\n            && this.isSnippetText === other.isSnippetText;\n    }\n}\nvar SignatureHelpTriggerKind;\n(function (SignatureHelpTriggerKind) {\n    SignatureHelpTriggerKind[SignatureHelpTriggerKind[\"Invoke\"] = 1] = \"Invoke\";\n    SignatureHelpTriggerKind[SignatureHelpTriggerKind[\"TriggerCharacter\"] = 2] = \"TriggerCharacter\";\n    SignatureHelpTriggerKind[SignatureHelpTriggerKind[\"ContentChange\"] = 3] = \"ContentChange\";\n})(SignatureHelpTriggerKind || (SignatureHelpTriggerKind = {}));\n/**\n * A document highlight kind.\n */\nvar DocumentHighlightKind;\n(function (DocumentHighlightKind) {\n    /**\n     * A textual occurrence.\n     */\n    DocumentHighlightKind[DocumentHighlightKind[\"Text\"] = 0] = \"Text\";\n    /**\n     * Read-access of a symbol, like reading a variable.\n     */\n    DocumentHighlightKind[DocumentHighlightKind[\"Read\"] = 1] = \"Read\";\n    /**\n     * Write-access of a symbol, like writing to a variable.\n     */\n    DocumentHighlightKind[DocumentHighlightKind[\"Write\"] = 2] = \"Write\";\n})(DocumentHighlightKind || (DocumentHighlightKind = {}));\n/**\n * @internal\n */\nfunction isLocationLink(thing) {\n    return thing\n        && _base_common_uri_js__WEBPACK_IMPORTED_MODULE_1__.URI.isUri(thing.uri)\n        && _core_range_js__WEBPACK_IMPORTED_MODULE_2__.Range.isIRange(thing.range)\n        && (_core_range_js__WEBPACK_IMPORTED_MODULE_2__.Range.isIRange(thing.originSelectionRange) || _core_range_js__WEBPACK_IMPORTED_MODULE_2__.Range.isIRange(thing.targetSelectionRange));\n}\n/**\n * @internal\n */\nconst symbolKindNames = {\n    [17 /* SymbolKind.Array */]: (0,_nls_js__WEBPACK_IMPORTED_MODULE_4__.localize)('Array', \"array\"),\n    [16 /* SymbolKind.Boolean */]: (0,_nls_js__WEBPACK_IMPORTED_MODULE_4__.localize)('Boolean', \"boolean\"),\n    [4 /* SymbolKind.Class */]: (0,_nls_js__WEBPACK_IMPORTED_MODULE_4__.localize)('Class', \"class\"),\n    [13 /* SymbolKind.Constant */]: (0,_nls_js__WEBPACK_IMPORTED_MODULE_4__.localize)('Constant', \"constant\"),\n    [8 /* SymbolKind.Constructor */]: (0,_nls_js__WEBPACK_IMPORTED_MODULE_4__.localize)('Constructor', \"constructor\"),\n    [9 /* SymbolKind.Enum */]: (0,_nls_js__WEBPACK_IMPORTED_MODULE_4__.localize)('Enum', \"enumeration\"),\n    [21 /* SymbolKind.EnumMember */]: (0,_nls_js__WEBPACK_IMPORTED_MODULE_4__.localize)('EnumMember', \"enumeration member\"),\n    [23 /* SymbolKind.Event */]: (0,_nls_js__WEBPACK_IMPORTED_MODULE_4__.localize)('Event', \"event\"),\n    [7 /* SymbolKind.Field */]: (0,_nls_js__WEBPACK_IMPORTED_MODULE_4__.localize)('Field', \"field\"),\n    [0 /* SymbolKind.File */]: (0,_nls_js__WEBPACK_IMPORTED_MODULE_4__.localize)('File', \"file\"),\n    [11 /* SymbolKind.Function */]: (0,_nls_js__WEBPACK_IMPORTED_MODULE_4__.localize)('Function', \"function\"),\n    [10 /* SymbolKind.Interface */]: (0,_nls_js__WEBPACK_IMPORTED_MODULE_4__.localize)('Interface', \"interface\"),\n    [19 /* SymbolKind.Key */]: (0,_nls_js__WEBPACK_IMPORTED_MODULE_4__.localize)('Key', \"key\"),\n    [5 /* SymbolKind.Method */]: (0,_nls_js__WEBPACK_IMPORTED_MODULE_4__.localize)('Method', \"method\"),\n    [1 /* SymbolKind.Module */]: (0,_nls_js__WEBPACK_IMPORTED_MODULE_4__.localize)('Module', \"module\"),\n    [2 /* SymbolKind.Namespace */]: (0,_nls_js__WEBPACK_IMPORTED_MODULE_4__.localize)('Namespace', \"namespace\"),\n    [20 /* SymbolKind.Null */]: (0,_nls_js__WEBPACK_IMPORTED_MODULE_4__.localize)('Null', \"null\"),\n    [15 /* SymbolKind.Number */]: (0,_nls_js__WEBPACK_IMPORTED_MODULE_4__.localize)('Number', \"number\"),\n    [18 /* SymbolKind.Object */]: (0,_nls_js__WEBPACK_IMPORTED_MODULE_4__.localize)('Object', \"object\"),\n    [24 /* SymbolKind.Operator */]: (0,_nls_js__WEBPACK_IMPORTED_MODULE_4__.localize)('Operator', \"operator\"),\n    [3 /* SymbolKind.Package */]: (0,_nls_js__WEBPACK_IMPORTED_MODULE_4__.localize)('Package', \"package\"),\n    [6 /* SymbolKind.Property */]: (0,_nls_js__WEBPACK_IMPORTED_MODULE_4__.localize)('Property', \"property\"),\n    [14 /* SymbolKind.String */]: (0,_nls_js__WEBPACK_IMPORTED_MODULE_4__.localize)('String', \"string\"),\n    [22 /* SymbolKind.Struct */]: (0,_nls_js__WEBPACK_IMPORTED_MODULE_4__.localize)('Struct', \"struct\"),\n    [25 /* SymbolKind.TypeParameter */]: (0,_nls_js__WEBPACK_IMPORTED_MODULE_4__.localize)('TypeParameter', \"type parameter\"),\n    [12 /* SymbolKind.Variable */]: (0,_nls_js__WEBPACK_IMPORTED_MODULE_4__.localize)('Variable', \"variable\"),\n};\n/**\n * @internal\n */\nfunction getAriaLabelForSymbol(symbolName, kind) {\n    return (0,_nls_js__WEBPACK_IMPORTED_MODULE_4__.localize)('symbolAriaLabel', '{0} ({1})', symbolName, symbolKindNames[kind]);\n}\n/**\n * @internal\n */\nvar SymbolKinds;\n(function (SymbolKinds) {\n    const byKind = new Map();\n    byKind.set(0 /* SymbolKind.File */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolFile);\n    byKind.set(1 /* SymbolKind.Module */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolModule);\n    byKind.set(2 /* SymbolKind.Namespace */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolNamespace);\n    byKind.set(3 /* SymbolKind.Package */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolPackage);\n    byKind.set(4 /* SymbolKind.Class */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolClass);\n    byKind.set(5 /* SymbolKind.Method */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolMethod);\n    byKind.set(6 /* SymbolKind.Property */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolProperty);\n    byKind.set(7 /* SymbolKind.Field */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolField);\n    byKind.set(8 /* SymbolKind.Constructor */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolConstructor);\n    byKind.set(9 /* SymbolKind.Enum */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolEnum);\n    byKind.set(10 /* SymbolKind.Interface */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolInterface);\n    byKind.set(11 /* SymbolKind.Function */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolFunction);\n    byKind.set(12 /* SymbolKind.Variable */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolVariable);\n    byKind.set(13 /* SymbolKind.Constant */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolConstant);\n    byKind.set(14 /* SymbolKind.String */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolString);\n    byKind.set(15 /* SymbolKind.Number */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolNumber);\n    byKind.set(16 /* SymbolKind.Boolean */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolBoolean);\n    byKind.set(17 /* SymbolKind.Array */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolArray);\n    byKind.set(18 /* SymbolKind.Object */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolObject);\n    byKind.set(19 /* SymbolKind.Key */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolKey);\n    byKind.set(20 /* SymbolKind.Null */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolNull);\n    byKind.set(21 /* SymbolKind.EnumMember */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolEnumMember);\n    byKind.set(22 /* SymbolKind.Struct */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolStruct);\n    byKind.set(23 /* SymbolKind.Event */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolEvent);\n    byKind.set(24 /* SymbolKind.Operator */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolOperator);\n    byKind.set(25 /* SymbolKind.TypeParameter */, _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolTypeParameter);\n    /**\n     * @internal\n     */\n    function toIcon(kind) {\n        let icon = byKind.get(kind);\n        if (!icon) {\n            console.info('No codicon found for SymbolKind ' + kind);\n            icon = _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__.Codicon.symbolProperty;\n        }\n        return icon;\n    }\n    SymbolKinds.toIcon = toIcon;\n})(SymbolKinds || (SymbolKinds = {}));\n/** @internal */\nclass TextEdit {\n}\nclass FoldingRangeKind {\n    /**\n     * Returns a {@link FoldingRangeKind} for the given value.\n     *\n     * @param value of the kind.\n     */\n    static fromValue(value) {\n        switch (value) {\n            case 'comment': return FoldingRangeKind.Comment;\n            case 'imports': return FoldingRangeKind.Imports;\n            case 'region': return FoldingRangeKind.Region;\n        }\n        return new FoldingRangeKind(value);\n    }\n    /**\n     * Creates a new {@link FoldingRangeKind}.\n     *\n     * @param value of the kind.\n     */\n    constructor(value) {\n        this.value = value;\n    }\n}\n/**\n * Kind for folding range representing a comment. The value of the kind is 'comment'.\n */\nFoldingRangeKind.Comment = new FoldingRangeKind('comment');\n/**\n * Kind for folding range representing a import. The value of the kind is 'imports'.\n */\nFoldingRangeKind.Imports = new FoldingRangeKind('imports');\n/**\n * Kind for folding range representing regions (for example marked by `#region`, `#endregion`).\n * The value of the kind is 'region'.\n */\nFoldingRangeKind.Region = new FoldingRangeKind('region');\n/**\n * @internal\n */\nvar Command;\n(function (Command) {\n    /**\n     * @internal\n     */\n    function is(obj) {\n        if (!obj || typeof obj !== 'object') {\n            return false;\n        }\n        return typeof obj.id === 'string' &&\n            typeof obj.title === 'string';\n    }\n    Command.is = is;\n})(Command || (Command = {}));\nvar InlayHintKind;\n(function (InlayHintKind) {\n    InlayHintKind[InlayHintKind[\"Type\"] = 1] = \"Type\";\n    InlayHintKind[InlayHintKind[\"Parameter\"] = 2] = \"Parameter\";\n})(InlayHintKind || (InlayHintKind = {}));\n/**\n * @internal\n */\nclass LazyTokenizationSupport {\n    constructor(createSupport) {\n        this.createSupport = createSupport;\n        this._tokenizationSupport = null;\n    }\n    dispose() {\n        if (this._tokenizationSupport) {\n            this._tokenizationSupport.then((support) => {\n                if (support) {\n                    support.dispose();\n                }\n            });\n        }\n    }\n    get tokenizationSupport() {\n        if (!this._tokenizationSupport) {\n            this._tokenizationSupport = this.createSupport();\n        }\n        return this._tokenizationSupport;\n    }\n}\n/**\n * @internal\n */\nconst TokenizationRegistry = new _tokenizationRegistry_js__WEBPACK_IMPORTED_MODULE_3__.TokenizationRegistry();\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/languages.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/languages/defaultDocumentColorsComputer.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/languages/defaultDocumentColorsComputer.js ***!
  \****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   computeDefaultDocumentColors: () => (/* binding */ computeDefaultDocumentColors)\n/* harmony export */ });\n/* harmony import */ var _base_common_color_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../base/common/color.js */ \"./node_modules/monaco-editor/esm/vs/base/common/color.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nfunction _parseCaptureGroups(captureGroups) {\n    const values = [];\n    for (const captureGroup of captureGroups) {\n        const parsedNumber = Number(captureGroup);\n        if (parsedNumber || parsedNumber === 0 && captureGroup.replace(/\\s/g, '') !== '') {\n            values.push(parsedNumber);\n        }\n    }\n    return values;\n}\nfunction _toIColor(r, g, b, a) {\n    return {\n        red: r / 255,\n        blue: b / 255,\n        green: g / 255,\n        alpha: a\n    };\n}\nfunction _findRange(model, match) {\n    const index = match.index;\n    const length = match[0].length;\n    if (!index) {\n        return;\n    }\n    const startPosition = model.positionAt(index);\n    const range = {\n        startLineNumber: startPosition.lineNumber,\n        startColumn: startPosition.column,\n        endLineNumber: startPosition.lineNumber,\n        endColumn: startPosition.column + length\n    };\n    return range;\n}\nfunction _findHexColorInformation(range, hexValue) {\n    if (!range) {\n        return;\n    }\n    const parsedHexColor = _base_common_color_js__WEBPACK_IMPORTED_MODULE_0__.Color.Format.CSS.parseHex(hexValue);\n    if (!parsedHexColor) {\n        return;\n    }\n    return {\n        range: range,\n        color: _toIColor(parsedHexColor.rgba.r, parsedHexColor.rgba.g, parsedHexColor.rgba.b, parsedHexColor.rgba.a)\n    };\n}\nfunction _findRGBColorInformation(range, matches, isAlpha) {\n    if (!range || matches.length !== 1) {\n        return;\n    }\n    const match = matches[0];\n    const captureGroups = match.values();\n    const parsedRegex = _parseCaptureGroups(captureGroups);\n    return {\n        range: range,\n        color: _toIColor(parsedRegex[0], parsedRegex[1], parsedRegex[2], isAlpha ? parsedRegex[3] : 1)\n    };\n}\nfunction _findHSLColorInformation(range, matches, isAlpha) {\n    if (!range || matches.length !== 1) {\n        return;\n    }\n    const match = matches[0];\n    const captureGroups = match.values();\n    const parsedRegex = _parseCaptureGroups(captureGroups);\n    const colorEquivalent = new _base_common_color_js__WEBPACK_IMPORTED_MODULE_0__.Color(new _base_common_color_js__WEBPACK_IMPORTED_MODULE_0__.HSLA(parsedRegex[0], parsedRegex[1] / 100, parsedRegex[2] / 100, isAlpha ? parsedRegex[3] : 1));\n    return {\n        range: range,\n        color: _toIColor(colorEquivalent.rgba.r, colorEquivalent.rgba.g, colorEquivalent.rgba.b, colorEquivalent.rgba.a)\n    };\n}\nfunction _findMatches(model, regex) {\n    if (typeof model === 'string') {\n        return [...model.matchAll(regex)];\n    }\n    else {\n        return model.findMatches(regex);\n    }\n}\nfunction computeColors(model) {\n    const result = [];\n    // Early validation for RGB and HSL\n    const initialValidationRegex = /\\b(rgb|rgba|hsl|hsla)(\\([0-9\\s,.\\%]*\\))|(#)([A-Fa-f0-9]{3})\\b|(#)([A-Fa-f0-9]{4})\\b|(#)([A-Fa-f0-9]{6})\\b|(#)([A-Fa-f0-9]{8})\\b/gm;\n    const initialValidationMatches = _findMatches(model, initialValidationRegex);\n    // Potential colors have been found, validate the parameters\n    if (initialValidationMatches.length > 0) {\n        for (const initialMatch of initialValidationMatches) {\n            const initialCaptureGroups = initialMatch.filter(captureGroup => captureGroup !== undefined);\n            const colorScheme = initialCaptureGroups[1];\n            const colorParameters = initialCaptureGroups[2];\n            if (!colorParameters) {\n                continue;\n            }\n            let colorInformation;\n            if (colorScheme === 'rgb') {\n                const regexParameters = /^\\(\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*,\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*,\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*\\)$/gm;\n                colorInformation = _findRGBColorInformation(_findRange(model, initialMatch), _findMatches(colorParameters, regexParameters), false);\n            }\n            else if (colorScheme === 'rgba') {\n                const regexParameters = /^\\(\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*,\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*,\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*,\\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\\s*\\)$/gm;\n                colorInformation = _findRGBColorInformation(_findRange(model, initialMatch), _findMatches(colorParameters, regexParameters), true);\n            }\n            else if (colorScheme === 'hsl') {\n                const regexParameters = /^\\(\\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\\s*,\\s*(100|\\d{1,2}[.]\\d*|\\d{1,2})%\\s*,\\s*(100|\\d{1,2}[.]\\d*|\\d{1,2})%\\s*\\)$/gm;\n                colorInformation = _findHSLColorInformation(_findRange(model, initialMatch), _findMatches(colorParameters, regexParameters), false);\n            }\n            else if (colorScheme === 'hsla') {\n                const regexParameters = /^\\(\\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\\s*,\\s*(100|\\d{1,2}[.]\\d*|\\d{1,2})%\\s*,\\s*(100|\\d{1,2}[.]\\d*|\\d{1,2})%\\s*,\\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\\s*\\)$/gm;\n                colorInformation = _findHSLColorInformation(_findRange(model, initialMatch), _findMatches(colorParameters, regexParameters), true);\n            }\n            else if (colorScheme === '#') {\n                colorInformation = _findHexColorInformation(_findRange(model, initialMatch), colorScheme + colorParameters);\n            }\n            if (colorInformation) {\n                result.push(colorInformation);\n            }\n        }\n    }\n    return result;\n}\n/**\n * Returns an array of all default document colors in the provided document\n */\nfunction computeDefaultDocumentColors(model) {\n    if (!model || typeof model.getValue !== 'function' || typeof model.positionAt !== 'function') {\n        // Unknown caller!\n        return [];\n    }\n    return computeColors(model);\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/languages/defaultDocumentColorsComputer.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/languages/linkComputer.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/languages/linkComputer.js ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LinkComputer: () => (/* binding */ LinkComputer),\n/* harmony export */   StateMachine: () => (/* binding */ StateMachine),\n/* harmony export */   computeLinks: () => (/* binding */ computeLinks)\n/* harmony export */ });\n/* harmony import */ var _core_characterClassifier_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/characterClassifier.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/characterClassifier.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nclass Uint8Matrix {\n    constructor(rows, cols, defaultValue) {\n        const data = new Uint8Array(rows * cols);\n        for (let i = 0, len = rows * cols; i < len; i++) {\n            data[i] = defaultValue;\n        }\n        this._data = data;\n        this.rows = rows;\n        this.cols = cols;\n    }\n    get(row, col) {\n        return this._data[row * this.cols + col];\n    }\n    set(row, col, value) {\n        this._data[row * this.cols + col] = value;\n    }\n}\nclass StateMachine {\n    constructor(edges) {\n        let maxCharCode = 0;\n        let maxState = 0 /* State.Invalid */;\n        for (let i = 0, len = edges.length; i < len; i++) {\n            const [from, chCode, to] = edges[i];\n            if (chCode > maxCharCode) {\n                maxCharCode = chCode;\n            }\n            if (from > maxState) {\n                maxState = from;\n            }\n            if (to > maxState) {\n                maxState = to;\n            }\n        }\n        maxCharCode++;\n        maxState++;\n        const states = new Uint8Matrix(maxState, maxCharCode, 0 /* State.Invalid */);\n        for (let i = 0, len = edges.length; i < len; i++) {\n            const [from, chCode, to] = edges[i];\n            states.set(from, chCode, to);\n        }\n        this._states = states;\n        this._maxCharCode = maxCharCode;\n    }\n    nextState(currentState, chCode) {\n        if (chCode < 0 || chCode >= this._maxCharCode) {\n            return 0 /* State.Invalid */;\n        }\n        return this._states.get(currentState, chCode);\n    }\n}\n// State machine for http:// or https:// or file://\nlet _stateMachine = null;\nfunction getStateMachine() {\n    if (_stateMachine === null) {\n        _stateMachine = new StateMachine([\n            [1 /* State.Start */, 104 /* CharCode.h */, 2 /* State.H */],\n            [1 /* State.Start */, 72 /* CharCode.H */, 2 /* State.H */],\n            [1 /* State.Start */, 102 /* CharCode.f */, 6 /* State.F */],\n            [1 /* State.Start */, 70 /* CharCode.F */, 6 /* State.F */],\n            [2 /* State.H */, 116 /* CharCode.t */, 3 /* State.HT */],\n            [2 /* State.H */, 84 /* CharCode.T */, 3 /* State.HT */],\n            [3 /* State.HT */, 116 /* CharCode.t */, 4 /* State.HTT */],\n            [3 /* State.HT */, 84 /* CharCode.T */, 4 /* State.HTT */],\n            [4 /* State.HTT */, 112 /* CharCode.p */, 5 /* State.HTTP */],\n            [4 /* State.HTT */, 80 /* CharCode.P */, 5 /* State.HTTP */],\n            [5 /* State.HTTP */, 115 /* CharCode.s */, 9 /* State.BeforeColon */],\n            [5 /* State.HTTP */, 83 /* CharCode.S */, 9 /* State.BeforeColon */],\n            [5 /* State.HTTP */, 58 /* CharCode.Colon */, 10 /* State.AfterColon */],\n            [6 /* State.F */, 105 /* CharCode.i */, 7 /* State.FI */],\n            [6 /* State.F */, 73 /* CharCode.I */, 7 /* State.FI */],\n            [7 /* State.FI */, 108 /* CharCode.l */, 8 /* State.FIL */],\n            [7 /* State.FI */, 76 /* CharCode.L */, 8 /* State.FIL */],\n            [8 /* State.FIL */, 101 /* CharCode.e */, 9 /* State.BeforeColon */],\n            [8 /* State.FIL */, 69 /* CharCode.E */, 9 /* State.BeforeColon */],\n            [9 /* State.BeforeColon */, 58 /* CharCode.Colon */, 10 /* State.AfterColon */],\n            [10 /* State.AfterColon */, 47 /* CharCode.Slash */, 11 /* State.AlmostThere */],\n            [11 /* State.AlmostThere */, 47 /* CharCode.Slash */, 12 /* State.End */],\n        ]);\n    }\n    return _stateMachine;\n}\nlet _classifier = null;\nfunction getClassifier() {\n    if (_classifier === null) {\n        _classifier = new _core_characterClassifier_js__WEBPACK_IMPORTED_MODULE_0__.CharacterClassifier(0 /* CharacterClass.None */);\n        // allow-any-unicode-next-line\n        const FORCE_TERMINATION_CHARACTERS = ' \\t<>\\'\\\"、。｡､，．：；‘〈「『〔（［｛｢｣｝］）〕』」〉’｀～…';\n        for (let i = 0; i < FORCE_TERMINATION_CHARACTERS.length; i++) {\n            _classifier.set(FORCE_TERMINATION_CHARACTERS.charCodeAt(i), 1 /* CharacterClass.ForceTermination */);\n        }\n        const CANNOT_END_WITH_CHARACTERS = '.,;:';\n        for (let i = 0; i < CANNOT_END_WITH_CHARACTERS.length; i++) {\n            _classifier.set(CANNOT_END_WITH_CHARACTERS.charCodeAt(i), 2 /* CharacterClass.CannotEndIn */);\n        }\n    }\n    return _classifier;\n}\nclass LinkComputer {\n    static _createLink(classifier, line, lineNumber, linkBeginIndex, linkEndIndex) {\n        // Do not allow to end link in certain characters...\n        let lastIncludedCharIndex = linkEndIndex - 1;\n        do {\n            const chCode = line.charCodeAt(lastIncludedCharIndex);\n            const chClass = classifier.get(chCode);\n            if (chClass !== 2 /* CharacterClass.CannotEndIn */) {\n                break;\n            }\n            lastIncludedCharIndex--;\n        } while (lastIncludedCharIndex > linkBeginIndex);\n        // Handle links enclosed in parens, square brackets and curlys.\n        if (linkBeginIndex > 0) {\n            const charCodeBeforeLink = line.charCodeAt(linkBeginIndex - 1);\n            const lastCharCodeInLink = line.charCodeAt(lastIncludedCharIndex);\n            if ((charCodeBeforeLink === 40 /* CharCode.OpenParen */ && lastCharCodeInLink === 41 /* CharCode.CloseParen */)\n                || (charCodeBeforeLink === 91 /* CharCode.OpenSquareBracket */ && lastCharCodeInLink === 93 /* CharCode.CloseSquareBracket */)\n                || (charCodeBeforeLink === 123 /* CharCode.OpenCurlyBrace */ && lastCharCodeInLink === 125 /* CharCode.CloseCurlyBrace */)) {\n                // Do not end in ) if ( is before the link start\n                // Do not end in ] if [ is before the link start\n                // Do not end in } if { is before the link start\n                lastIncludedCharIndex--;\n            }\n        }\n        return {\n            range: {\n                startLineNumber: lineNumber,\n                startColumn: linkBeginIndex + 1,\n                endLineNumber: lineNumber,\n                endColumn: lastIncludedCharIndex + 2\n            },\n            url: line.substring(linkBeginIndex, lastIncludedCharIndex + 1)\n        };\n    }\n    static computeLinks(model, stateMachine = getStateMachine()) {\n        const classifier = getClassifier();\n        const result = [];\n        for (let i = 1, lineCount = model.getLineCount(); i <= lineCount; i++) {\n            const line = model.getLineContent(i);\n            const len = line.length;\n            let j = 0;\n            let linkBeginIndex = 0;\n            let linkBeginChCode = 0;\n            let state = 1 /* State.Start */;\n            let hasOpenParens = false;\n            let hasOpenSquareBracket = false;\n            let inSquareBrackets = false;\n            let hasOpenCurlyBracket = false;\n            while (j < len) {\n                let resetStateMachine = false;\n                const chCode = line.charCodeAt(j);\n                if (state === 13 /* State.Accept */) {\n                    let chClass;\n                    switch (chCode) {\n                        case 40 /* CharCode.OpenParen */:\n                            hasOpenParens = true;\n                            chClass = 0 /* CharacterClass.None */;\n                            break;\n                        case 41 /* CharCode.CloseParen */:\n                            chClass = (hasOpenParens ? 0 /* CharacterClass.None */ : 1 /* CharacterClass.ForceTermination */);\n                            break;\n                        case 91 /* CharCode.OpenSquareBracket */:\n                            inSquareBrackets = true;\n                            hasOpenSquareBracket = true;\n                            chClass = 0 /* CharacterClass.None */;\n                            break;\n                        case 93 /* CharCode.CloseSquareBracket */:\n                            inSquareBrackets = false;\n                            chClass = (hasOpenSquareBracket ? 0 /* CharacterClass.None */ : 1 /* CharacterClass.ForceTermination */);\n                            break;\n                        case 123 /* CharCode.OpenCurlyBrace */:\n                            hasOpenCurlyBracket = true;\n                            chClass = 0 /* CharacterClass.None */;\n                            break;\n                        case 125 /* CharCode.CloseCurlyBrace */:\n                            chClass = (hasOpenCurlyBracket ? 0 /* CharacterClass.None */ : 1 /* CharacterClass.ForceTermination */);\n                            break;\n                        // The following three rules make it that ' or \" or ` are allowed inside links\n                        // only if the link is wrapped by some other quote character\n                        case 39 /* CharCode.SingleQuote */:\n                        case 34 /* CharCode.DoubleQuote */:\n                        case 96 /* CharCode.BackTick */:\n                            if (linkBeginChCode === chCode) {\n                                chClass = 1 /* CharacterClass.ForceTermination */;\n                            }\n                            else if (linkBeginChCode === 39 /* CharCode.SingleQuote */ || linkBeginChCode === 34 /* CharCode.DoubleQuote */ || linkBeginChCode === 96 /* CharCode.BackTick */) {\n                                chClass = 0 /* CharacterClass.None */;\n                            }\n                            else {\n                                chClass = 1 /* CharacterClass.ForceTermination */;\n                            }\n                            break;\n                        case 42 /* CharCode.Asterisk */:\n                            // `*` terminates a link if the link began with `*`\n                            chClass = (linkBeginChCode === 42 /* CharCode.Asterisk */) ? 1 /* CharacterClass.ForceTermination */ : 0 /* CharacterClass.None */;\n                            break;\n                        case 124 /* CharCode.Pipe */:\n                            // `|` terminates a link if the link began with `|`\n                            chClass = (linkBeginChCode === 124 /* CharCode.Pipe */) ? 1 /* CharacterClass.ForceTermination */ : 0 /* CharacterClass.None */;\n                            break;\n                        case 32 /* CharCode.Space */:\n                            // ` ` allow space in between [ and ]\n                            chClass = (inSquareBrackets ? 0 /* CharacterClass.None */ : 1 /* CharacterClass.ForceTermination */);\n                            break;\n                        default:\n                            chClass = classifier.get(chCode);\n                    }\n                    // Check if character terminates link\n                    if (chClass === 1 /* CharacterClass.ForceTermination */) {\n                        result.push(LinkComputer._createLink(classifier, line, i, linkBeginIndex, j));\n                        resetStateMachine = true;\n                    }\n                }\n                else if (state === 12 /* State.End */) {\n                    let chClass;\n                    if (chCode === 91 /* CharCode.OpenSquareBracket */) {\n                        // Allow for the authority part to contain ipv6 addresses which contain [ and ]\n                        hasOpenSquareBracket = true;\n                        chClass = 0 /* CharacterClass.None */;\n                    }\n                    else {\n                        chClass = classifier.get(chCode);\n                    }\n                    // Check if character terminates link\n                    if (chClass === 1 /* CharacterClass.ForceTermination */) {\n                        resetStateMachine = true;\n                    }\n                    else {\n                        state = 13 /* State.Accept */;\n                    }\n                }\n                else {\n                    state = stateMachine.nextState(state, chCode);\n                    if (state === 0 /* State.Invalid */) {\n                        resetStateMachine = true;\n                    }\n                }\n                if (resetStateMachine) {\n                    state = 1 /* State.Start */;\n                    hasOpenParens = false;\n                    hasOpenSquareBracket = false;\n                    hasOpenCurlyBracket = false;\n                    // Record where the link started\n                    linkBeginIndex = j + 1;\n                    linkBeginChCode = chCode;\n                }\n                j++;\n            }\n            if (state === 13 /* State.Accept */) {\n                result.push(LinkComputer._createLink(classifier, line, i, linkBeginIndex, len));\n            }\n        }\n        return result;\n    }\n}\n/**\n * Returns an array of all links contains in the provided\n * document. *Note* that this operation is computational\n * expensive and should not run in the UI thread.\n */\nfunction computeLinks(model) {\n    if (!model || typeof model.getLineCount !== 'function' || typeof model.getLineContent !== 'function') {\n        // Unknown caller!\n        return [];\n    }\n    return LinkComputer.computeLinks(model);\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/languages/linkComputer.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/languages/supports/inplaceReplaceSupport.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/languages/supports/inplaceReplaceSupport.js ***!
  \*****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BasicInplaceReplace: () => (/* binding */ BasicInplaceReplace)\n/* harmony export */ });\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nclass BasicInplaceReplace {\n    constructor() {\n        this._defaultValueSet = [\n            ['true', 'false'],\n            ['True', 'False'],\n            ['Private', 'Public', 'Friend', 'ReadOnly', 'Partial', 'Protected', 'WriteOnly'],\n            ['public', 'protected', 'private'],\n        ];\n    }\n    navigateValueSet(range1, text1, range2, text2, up) {\n        if (range1 && text1) {\n            const result = this.doNavigateValueSet(text1, up);\n            if (result) {\n                return {\n                    range: range1,\n                    value: result\n                };\n            }\n        }\n        if (range2 && text2) {\n            const result = this.doNavigateValueSet(text2, up);\n            if (result) {\n                return {\n                    range: range2,\n                    value: result\n                };\n            }\n        }\n        return null;\n    }\n    doNavigateValueSet(text, up) {\n        const numberResult = this.numberReplace(text, up);\n        if (numberResult !== null) {\n            return numberResult;\n        }\n        return this.textReplace(text, up);\n    }\n    numberReplace(value, up) {\n        const precision = Math.pow(10, value.length - (value.lastIndexOf('.') + 1));\n        let n1 = Number(value);\n        const n2 = parseFloat(value);\n        if (!isNaN(n1) && !isNaN(n2) && n1 === n2) {\n            if (n1 === 0 && !up) {\n                return null; // don't do negative\n                //\t\t\t} else if(n1 === 9 && up) {\n                //\t\t\t\treturn null; // don't insert 10 into a number\n            }\n            else {\n                n1 = Math.floor(n1 * precision);\n                n1 += up ? precision : -precision;\n                return String(n1 / precision);\n            }\n        }\n        return null;\n    }\n    textReplace(value, up) {\n        return this.valueSetsReplace(this._defaultValueSet, value, up);\n    }\n    valueSetsReplace(valueSets, value, up) {\n        let result = null;\n        for (let i = 0, len = valueSets.length; result === null && i < len; i++) {\n            result = this.valueSetReplace(valueSets[i], value, up);\n        }\n        return result;\n    }\n    valueSetReplace(valueSet, value, up) {\n        let idx = valueSet.indexOf(value);\n        if (idx >= 0) {\n            idx += up ? +1 : -1;\n            if (idx < 0) {\n                idx = valueSet.length - 1;\n            }\n            else {\n                idx %= valueSet.length;\n            }\n            return valueSet[idx];\n        }\n        return null;\n    }\n}\nBasicInplaceReplace.INSTANCE = new BasicInplaceReplace();\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/languages/supports/inplaceReplaceSupport.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/model.js":
/*!******************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/model.js ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ApplyEditsResult: () => (/* binding */ ApplyEditsResult),\n/* harmony export */   FindMatch: () => (/* binding */ FindMatch),\n/* harmony export */   GlyphMarginLane: () => (/* binding */ GlyphMarginLane),\n/* harmony export */   InjectedTextCursorStops: () => (/* binding */ InjectedTextCursorStops),\n/* harmony export */   MinimapPosition: () => (/* binding */ MinimapPosition),\n/* harmony export */   OverviewRulerLane: () => (/* binding */ OverviewRulerLane),\n/* harmony export */   SearchData: () => (/* binding */ SearchData),\n/* harmony export */   TextModelResolvedOptions: () => (/* binding */ TextModelResolvedOptions),\n/* harmony export */   ValidAnnotatedEditOperation: () => (/* binding */ ValidAnnotatedEditOperation),\n/* harmony export */   isITextSnapshot: () => (/* binding */ isITextSnapshot),\n/* harmony export */   shouldSynchronizeModel: () => (/* binding */ shouldSynchronizeModel)\n/* harmony export */ });\n/* harmony import */ var _base_common_objects_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../base/common/objects.js */ \"./node_modules/monaco-editor/esm/vs/base/common/objects.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/**\n * Vertical Lane in the overview ruler of the editor.\n */\nvar OverviewRulerLane;\n(function (OverviewRulerLane) {\n    OverviewRulerLane[OverviewRulerLane[\"Left\"] = 1] = \"Left\";\n    OverviewRulerLane[OverviewRulerLane[\"Center\"] = 2] = \"Center\";\n    OverviewRulerLane[OverviewRulerLane[\"Right\"] = 4] = \"Right\";\n    OverviewRulerLane[OverviewRulerLane[\"Full\"] = 7] = \"Full\";\n})(OverviewRulerLane || (OverviewRulerLane = {}));\n/**\n * Vertical Lane in the glyph margin of the editor.\n */\nvar GlyphMarginLane;\n(function (GlyphMarginLane) {\n    GlyphMarginLane[GlyphMarginLane[\"Left\"] = 1] = \"Left\";\n    GlyphMarginLane[GlyphMarginLane[\"Right\"] = 2] = \"Right\";\n})(GlyphMarginLane || (GlyphMarginLane = {}));\n/**\n * Position in the minimap to render the decoration.\n */\nvar MinimapPosition;\n(function (MinimapPosition) {\n    MinimapPosition[MinimapPosition[\"Inline\"] = 1] = \"Inline\";\n    MinimapPosition[MinimapPosition[\"Gutter\"] = 2] = \"Gutter\";\n})(MinimapPosition || (MinimapPosition = {}));\nvar InjectedTextCursorStops;\n(function (InjectedTextCursorStops) {\n    InjectedTextCursorStops[InjectedTextCursorStops[\"Both\"] = 0] = \"Both\";\n    InjectedTextCursorStops[InjectedTextCursorStops[\"Right\"] = 1] = \"Right\";\n    InjectedTextCursorStops[InjectedTextCursorStops[\"Left\"] = 2] = \"Left\";\n    InjectedTextCursorStops[InjectedTextCursorStops[\"None\"] = 3] = \"None\";\n})(InjectedTextCursorStops || (InjectedTextCursorStops = {}));\nclass TextModelResolvedOptions {\n    get originalIndentSize() {\n        return this._indentSizeIsTabSize ? 'tabSize' : this.indentSize;\n    }\n    /**\n     * @internal\n     */\n    constructor(src) {\n        this._textModelResolvedOptionsBrand = undefined;\n        this.tabSize = Math.max(1, src.tabSize | 0);\n        if (src.indentSize === 'tabSize') {\n            this.indentSize = this.tabSize;\n            this._indentSizeIsTabSize = true;\n        }\n        else {\n            this.indentSize = Math.max(1, src.indentSize | 0);\n            this._indentSizeIsTabSize = false;\n        }\n        this.insertSpaces = Boolean(src.insertSpaces);\n        this.defaultEOL = src.defaultEOL | 0;\n        this.trimAutoWhitespace = Boolean(src.trimAutoWhitespace);\n        this.bracketPairColorizationOptions = src.bracketPairColorizationOptions;\n    }\n    /**\n     * @internal\n     */\n    equals(other) {\n        return (this.tabSize === other.tabSize\n            && this._indentSizeIsTabSize === other._indentSizeIsTabSize\n            && this.indentSize === other.indentSize\n            && this.insertSpaces === other.insertSpaces\n            && this.defaultEOL === other.defaultEOL\n            && this.trimAutoWhitespace === other.trimAutoWhitespace\n            && (0,_base_common_objects_js__WEBPACK_IMPORTED_MODULE_0__.equals)(this.bracketPairColorizationOptions, other.bracketPairColorizationOptions));\n    }\n    /**\n     * @internal\n     */\n    createChangeEvent(newOpts) {\n        return {\n            tabSize: this.tabSize !== newOpts.tabSize,\n            indentSize: this.indentSize !== newOpts.indentSize,\n            insertSpaces: this.insertSpaces !== newOpts.insertSpaces,\n            trimAutoWhitespace: this.trimAutoWhitespace !== newOpts.trimAutoWhitespace,\n        };\n    }\n}\nclass FindMatch {\n    /**\n     * @internal\n     */\n    constructor(range, matches) {\n        this._findMatchBrand = undefined;\n        this.range = range;\n        this.matches = matches;\n    }\n}\n/**\n * @internal\n */\nfunction isITextSnapshot(obj) {\n    return (obj && typeof obj.read === 'function');\n}\n/**\n * @internal\n */\nclass ValidAnnotatedEditOperation {\n    constructor(identifier, range, text, forceMoveMarkers, isAutoWhitespaceEdit, _isTracked) {\n        this.identifier = identifier;\n        this.range = range;\n        this.text = text;\n        this.forceMoveMarkers = forceMoveMarkers;\n        this.isAutoWhitespaceEdit = isAutoWhitespaceEdit;\n        this._isTracked = _isTracked;\n    }\n}\n/**\n * @internal\n */\nclass SearchData {\n    constructor(regex, wordSeparators, simpleSearch) {\n        this.regex = regex;\n        this.wordSeparators = wordSeparators;\n        this.simpleSearch = simpleSearch;\n    }\n}\n/**\n * @internal\n */\nclass ApplyEditsResult {\n    constructor(reverseEdits, changes, trimAutoWhitespaceLineNumbers) {\n        this.reverseEdits = reverseEdits;\n        this.changes = changes;\n        this.trimAutoWhitespaceLineNumbers = trimAutoWhitespaceLineNumbers;\n    }\n}\n/**\n * @internal\n */\nfunction shouldSynchronizeModel(model) {\n    return (!model.isTooLargeForSyncing() && !model.isForSimpleWidget);\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/model.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/model/mirrorTextModel.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/model/mirrorTextModel.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MirrorTextModel: () => (/* binding */ MirrorTextModel)\n/* harmony export */ });\n/* harmony import */ var _base_common_strings_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../base/common/strings.js */ \"./node_modules/monaco-editor/esm/vs/base/common/strings.js\");\n/* harmony import */ var _core_position_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/position.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/position.js\");\n/* harmony import */ var _prefixSumComputer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./prefixSumComputer.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/model/prefixSumComputer.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n\n\nclass MirrorTextModel {\n    constructor(uri, lines, eol, versionId) {\n        this._uri = uri;\n        this._lines = lines;\n        this._eol = eol;\n        this._versionId = versionId;\n        this._lineStarts = null;\n        this._cachedTextValue = null;\n    }\n    dispose() {\n        this._lines.length = 0;\n    }\n    get version() {\n        return this._versionId;\n    }\n    getText() {\n        if (this._cachedTextValue === null) {\n            this._cachedTextValue = this._lines.join(this._eol);\n        }\n        return this._cachedTextValue;\n    }\n    onEvents(e) {\n        if (e.eol && e.eol !== this._eol) {\n            this._eol = e.eol;\n            this._lineStarts = null;\n        }\n        // Update my lines\n        const changes = e.changes;\n        for (const change of changes) {\n            this._acceptDeleteRange(change.range);\n            this._acceptInsertText(new _core_position_js__WEBPACK_IMPORTED_MODULE_1__.Position(change.range.startLineNumber, change.range.startColumn), change.text);\n        }\n        this._versionId = e.versionId;\n        this._cachedTextValue = null;\n    }\n    _ensureLineStarts() {\n        if (!this._lineStarts) {\n            const eolLength = this._eol.length;\n            const linesLength = this._lines.length;\n            const lineStartValues = new Uint32Array(linesLength);\n            for (let i = 0; i < linesLength; i++) {\n                lineStartValues[i] = this._lines[i].length + eolLength;\n            }\n            this._lineStarts = new _prefixSumComputer_js__WEBPACK_IMPORTED_MODULE_2__.PrefixSumComputer(lineStartValues);\n        }\n    }\n    /**\n     * All changes to a line's text go through this method\n     */\n    _setLineText(lineIndex, newValue) {\n        this._lines[lineIndex] = newValue;\n        if (this._lineStarts) {\n            // update prefix sum\n            this._lineStarts.setValue(lineIndex, this._lines[lineIndex].length + this._eol.length);\n        }\n    }\n    _acceptDeleteRange(range) {\n        if (range.startLineNumber === range.endLineNumber) {\n            if (range.startColumn === range.endColumn) {\n                // Nothing to delete\n                return;\n            }\n            // Delete text on the affected line\n            this._setLineText(range.startLineNumber - 1, this._lines[range.startLineNumber - 1].substring(0, range.startColumn - 1)\n                + this._lines[range.startLineNumber - 1].substring(range.endColumn - 1));\n            return;\n        }\n        // Take remaining text on last line and append it to remaining text on first line\n        this._setLineText(range.startLineNumber - 1, this._lines[range.startLineNumber - 1].substring(0, range.startColumn - 1)\n            + this._lines[range.endLineNumber - 1].substring(range.endColumn - 1));\n        // Delete middle lines\n        this._lines.splice(range.startLineNumber, range.endLineNumber - range.startLineNumber);\n        if (this._lineStarts) {\n            // update prefix sum\n            this._lineStarts.removeValues(range.startLineNumber, range.endLineNumber - range.startLineNumber);\n        }\n    }\n    _acceptInsertText(position, insertText) {\n        if (insertText.length === 0) {\n            // Nothing to insert\n            return;\n        }\n        const insertLines = (0,_base_common_strings_js__WEBPACK_IMPORTED_MODULE_0__.splitLines)(insertText);\n        if (insertLines.length === 1) {\n            // Inserting text on one line\n            this._setLineText(position.lineNumber - 1, this._lines[position.lineNumber - 1].substring(0, position.column - 1)\n                + insertLines[0]\n                + this._lines[position.lineNumber - 1].substring(position.column - 1));\n            return;\n        }\n        // Append overflowing text from first line to the end of text to insert\n        insertLines[insertLines.length - 1] += this._lines[position.lineNumber - 1].substring(position.column - 1);\n        // Delete overflowing text from first line and insert text on first line\n        this._setLineText(position.lineNumber - 1, this._lines[position.lineNumber - 1].substring(0, position.column - 1)\n            + insertLines[0]);\n        // Insert new lines & store lengths\n        const newLengths = new Uint32Array(insertLines.length - 1);\n        for (let i = 1; i < insertLines.length; i++) {\n            this._lines.splice(position.lineNumber + i - 1, 0, insertLines[i]);\n            newLengths[i - 1] = insertLines[i].length + this._eol.length;\n        }\n        if (this._lineStarts) {\n            // update prefix sum\n            this._lineStarts.insertValues(position.lineNumber, newLengths);\n        }\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/model/mirrorTextModel.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/model/prefixSumComputer.js":
/*!************************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/model/prefixSumComputer.js ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ConstantTimePrefixSumComputer: () => (/* binding */ ConstantTimePrefixSumComputer),\n/* harmony export */   PrefixSumComputer: () => (/* binding */ PrefixSumComputer),\n/* harmony export */   PrefixSumIndexOfResult: () => (/* binding */ PrefixSumIndexOfResult)\n/* harmony export */ });\n/* harmony import */ var _base_common_arrays_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../base/common/arrays.js */ \"./node_modules/monaco-editor/esm/vs/base/common/arrays.js\");\n/* harmony import */ var _base_common_uint_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../base/common/uint.js */ \"./node_modules/monaco-editor/esm/vs/base/common/uint.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n\nclass PrefixSumComputer {\n    constructor(values) {\n        this.values = values;\n        this.prefixSum = new Uint32Array(values.length);\n        this.prefixSumValidIndex = new Int32Array(1);\n        this.prefixSumValidIndex[0] = -1;\n    }\n    insertValues(insertIndex, insertValues) {\n        insertIndex = (0,_base_common_uint_js__WEBPACK_IMPORTED_MODULE_1__.toUint32)(insertIndex);\n        const oldValues = this.values;\n        const oldPrefixSum = this.prefixSum;\n        const insertValuesLen = insertValues.length;\n        if (insertValuesLen === 0) {\n            return false;\n        }\n        this.values = new Uint32Array(oldValues.length + insertValuesLen);\n        this.values.set(oldValues.subarray(0, insertIndex), 0);\n        this.values.set(oldValues.subarray(insertIndex), insertIndex + insertValuesLen);\n        this.values.set(insertValues, insertIndex);\n        if (insertIndex - 1 < this.prefixSumValidIndex[0]) {\n            this.prefixSumValidIndex[0] = insertIndex - 1;\n        }\n        this.prefixSum = new Uint32Array(this.values.length);\n        if (this.prefixSumValidIndex[0] >= 0) {\n            this.prefixSum.set(oldPrefixSum.subarray(0, this.prefixSumValidIndex[0] + 1));\n        }\n        return true;\n    }\n    setValue(index, value) {\n        index = (0,_base_common_uint_js__WEBPACK_IMPORTED_MODULE_1__.toUint32)(index);\n        value = (0,_base_common_uint_js__WEBPACK_IMPORTED_MODULE_1__.toUint32)(value);\n        if (this.values[index] === value) {\n            return false;\n        }\n        this.values[index] = value;\n        if (index - 1 < this.prefixSumValidIndex[0]) {\n            this.prefixSumValidIndex[0] = index - 1;\n        }\n        return true;\n    }\n    removeValues(startIndex, count) {\n        startIndex = (0,_base_common_uint_js__WEBPACK_IMPORTED_MODULE_1__.toUint32)(startIndex);\n        count = (0,_base_common_uint_js__WEBPACK_IMPORTED_MODULE_1__.toUint32)(count);\n        const oldValues = this.values;\n        const oldPrefixSum = this.prefixSum;\n        if (startIndex >= oldValues.length) {\n            return false;\n        }\n        const maxCount = oldValues.length - startIndex;\n        if (count >= maxCount) {\n            count = maxCount;\n        }\n        if (count === 0) {\n            return false;\n        }\n        this.values = new Uint32Array(oldValues.length - count);\n        this.values.set(oldValues.subarray(0, startIndex), 0);\n        this.values.set(oldValues.subarray(startIndex + count), startIndex);\n        this.prefixSum = new Uint32Array(this.values.length);\n        if (startIndex - 1 < this.prefixSumValidIndex[0]) {\n            this.prefixSumValidIndex[0] = startIndex - 1;\n        }\n        if (this.prefixSumValidIndex[0] >= 0) {\n            this.prefixSum.set(oldPrefixSum.subarray(0, this.prefixSumValidIndex[0] + 1));\n        }\n        return true;\n    }\n    getTotalSum() {\n        if (this.values.length === 0) {\n            return 0;\n        }\n        return this._getPrefixSum(this.values.length - 1);\n    }\n    /**\n     * Returns the sum of the first `index + 1` many items.\n     * @returns `SUM(0 <= j <= index, values[j])`.\n     */\n    getPrefixSum(index) {\n        if (index < 0) {\n            return 0;\n        }\n        index = (0,_base_common_uint_js__WEBPACK_IMPORTED_MODULE_1__.toUint32)(index);\n        return this._getPrefixSum(index);\n    }\n    _getPrefixSum(index) {\n        if (index <= this.prefixSumValidIndex[0]) {\n            return this.prefixSum[index];\n        }\n        let startIndex = this.prefixSumValidIndex[0] + 1;\n        if (startIndex === 0) {\n            this.prefixSum[0] = this.values[0];\n            startIndex++;\n        }\n        if (index >= this.values.length) {\n            index = this.values.length - 1;\n        }\n        for (let i = startIndex; i <= index; i++) {\n            this.prefixSum[i] = this.prefixSum[i - 1] + this.values[i];\n        }\n        this.prefixSumValidIndex[0] = Math.max(this.prefixSumValidIndex[0], index);\n        return this.prefixSum[index];\n    }\n    getIndexOf(sum) {\n        sum = Math.floor(sum);\n        // Compute all sums (to get a fully valid prefixSum)\n        this.getTotalSum();\n        let low = 0;\n        let high = this.values.length - 1;\n        let mid = 0;\n        let midStop = 0;\n        let midStart = 0;\n        while (low <= high) {\n            mid = low + ((high - low) / 2) | 0;\n            midStop = this.prefixSum[mid];\n            midStart = midStop - this.values[mid];\n            if (sum < midStart) {\n                high = mid - 1;\n            }\n            else if (sum >= midStop) {\n                low = mid + 1;\n            }\n            else {\n                break;\n            }\n        }\n        return new PrefixSumIndexOfResult(mid, sum - midStart);\n    }\n}\n/**\n * {@link getIndexOf} has an amortized runtime complexity of O(1).\n *\n * ({@link PrefixSumComputer.getIndexOf} is just  O(log n))\n*/\nclass ConstantTimePrefixSumComputer {\n    constructor(values) {\n        this._values = values;\n        this._isValid = false;\n        this._validEndIndex = -1;\n        this._prefixSum = [];\n        this._indexBySum = [];\n    }\n    /**\n     * @returns SUM(0 <= j < values.length, values[j])\n     */\n    getTotalSum() {\n        this._ensureValid();\n        return this._indexBySum.length;\n    }\n    /**\n     * Returns the sum of the first `count` many items.\n     * @returns `SUM(0 <= j < count, values[j])`.\n     */\n    getPrefixSum(count) {\n        this._ensureValid();\n        if (count === 0) {\n            return 0;\n        }\n        return this._prefixSum[count - 1];\n    }\n    /**\n     * @returns `result`, such that `getPrefixSum(result.index) + result.remainder = sum`\n     */\n    getIndexOf(sum) {\n        this._ensureValid();\n        const idx = this._indexBySum[sum];\n        const viewLinesAbove = idx > 0 ? this._prefixSum[idx - 1] : 0;\n        return new PrefixSumIndexOfResult(idx, sum - viewLinesAbove);\n    }\n    removeValues(start, deleteCount) {\n        this._values.splice(start, deleteCount);\n        this._invalidate(start);\n    }\n    insertValues(insertIndex, insertArr) {\n        this._values = (0,_base_common_arrays_js__WEBPACK_IMPORTED_MODULE_0__.arrayInsert)(this._values, insertIndex, insertArr);\n        this._invalidate(insertIndex);\n    }\n    _invalidate(index) {\n        this._isValid = false;\n        this._validEndIndex = Math.min(this._validEndIndex, index - 1);\n    }\n    _ensureValid() {\n        if (this._isValid) {\n            return;\n        }\n        for (let i = this._validEndIndex + 1, len = this._values.length; i < len; i++) {\n            const value = this._values[i];\n            const sumAbove = i > 0 ? this._prefixSum[i - 1] : 0;\n            this._prefixSum[i] = sumAbove + value;\n            for (let j = 0; j < value; j++) {\n                this._indexBySum[sumAbove + j] = i;\n            }\n        }\n        // trim things\n        this._prefixSum.length = this._values.length;\n        this._indexBySum.length = this._prefixSum[this._prefixSum.length - 1];\n        // mark as valid\n        this._isValid = true;\n        this._validEndIndex = this._values.length - 1;\n    }\n    setValue(index, value) {\n        if (this._values[index] === value) {\n            // no change\n            return;\n        }\n        this._values[index] = value;\n        this._invalidate(index);\n    }\n}\nclass PrefixSumIndexOfResult {\n    constructor(index, remainder) {\n        this.index = index;\n        this.remainder = remainder;\n        this._prefixSumIndexOfResultBrand = undefined;\n        this.index = index;\n        this.remainder = remainder;\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/model/prefixSumComputer.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/model/textModelSearch.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/model/textModelSearch.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SearchParams: () => (/* binding */ SearchParams),\n/* harmony export */   Searcher: () => (/* binding */ Searcher),\n/* harmony export */   TextModelSearch: () => (/* binding */ TextModelSearch),\n/* harmony export */   createFindMatch: () => (/* binding */ createFindMatch),\n/* harmony export */   isMultilineRegexSource: () => (/* binding */ isMultilineRegexSource),\n/* harmony export */   isValidMatch: () => (/* binding */ isValidMatch)\n/* harmony export */ });\n/* harmony import */ var _base_common_strings_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../base/common/strings.js */ \"./node_modules/monaco-editor/esm/vs/base/common/strings.js\");\n/* harmony import */ var _core_wordCharacterClassifier_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/wordCharacterClassifier.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/wordCharacterClassifier.js\");\n/* harmony import */ var _core_position_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/position.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/position.js\");\n/* harmony import */ var _core_range_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/range.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/range.js\");\n/* harmony import */ var _model_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../model.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/model.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n\n\n\n\nconst LIMIT_FIND_COUNT = 999;\nclass SearchParams {\n    constructor(searchString, isRegex, matchCase, wordSeparators) {\n        this.searchString = searchString;\n        this.isRegex = isRegex;\n        this.matchCase = matchCase;\n        this.wordSeparators = wordSeparators;\n    }\n    parseSearchRequest() {\n        if (this.searchString === '') {\n            return null;\n        }\n        // Try to create a RegExp out of the params\n        let multiline;\n        if (this.isRegex) {\n            multiline = isMultilineRegexSource(this.searchString);\n        }\n        else {\n            multiline = (this.searchString.indexOf('\\n') >= 0);\n        }\n        let regex = null;\n        try {\n            regex = _base_common_strings_js__WEBPACK_IMPORTED_MODULE_0__.createRegExp(this.searchString, this.isRegex, {\n                matchCase: this.matchCase,\n                wholeWord: false,\n                multiline: multiline,\n                global: true,\n                unicode: true\n            });\n        }\n        catch (err) {\n            return null;\n        }\n        if (!regex) {\n            return null;\n        }\n        let canUseSimpleSearch = (!this.isRegex && !multiline);\n        if (canUseSimpleSearch && this.searchString.toLowerCase() !== this.searchString.toUpperCase()) {\n            // casing might make a difference\n            canUseSimpleSearch = this.matchCase;\n        }\n        return new _model_js__WEBPACK_IMPORTED_MODULE_4__.SearchData(regex, this.wordSeparators ? (0,_core_wordCharacterClassifier_js__WEBPACK_IMPORTED_MODULE_1__.getMapForWordSeparators)(this.wordSeparators) : null, canUseSimpleSearch ? this.searchString : null);\n    }\n}\nfunction isMultilineRegexSource(searchString) {\n    if (!searchString || searchString.length === 0) {\n        return false;\n    }\n    for (let i = 0, len = searchString.length; i < len; i++) {\n        const chCode = searchString.charCodeAt(i);\n        if (chCode === 10 /* CharCode.LineFeed */) {\n            return true;\n        }\n        if (chCode === 92 /* CharCode.Backslash */) {\n            // move to next char\n            i++;\n            if (i >= len) {\n                // string ends with a \\\n                break;\n            }\n            const nextChCode = searchString.charCodeAt(i);\n            if (nextChCode === 110 /* CharCode.n */ || nextChCode === 114 /* CharCode.r */ || nextChCode === 87 /* CharCode.W */) {\n                return true;\n            }\n        }\n    }\n    return false;\n}\nfunction createFindMatch(range, rawMatches, captureMatches) {\n    if (!captureMatches) {\n        return new _model_js__WEBPACK_IMPORTED_MODULE_4__.FindMatch(range, null);\n    }\n    const matches = [];\n    for (let i = 0, len = rawMatches.length; i < len; i++) {\n        matches[i] = rawMatches[i];\n    }\n    return new _model_js__WEBPACK_IMPORTED_MODULE_4__.FindMatch(range, matches);\n}\nclass LineFeedCounter {\n    constructor(text) {\n        const lineFeedsOffsets = [];\n        let lineFeedsOffsetsLen = 0;\n        for (let i = 0, textLen = text.length; i < textLen; i++) {\n            if (text.charCodeAt(i) === 10 /* CharCode.LineFeed */) {\n                lineFeedsOffsets[lineFeedsOffsetsLen++] = i;\n            }\n        }\n        this._lineFeedsOffsets = lineFeedsOffsets;\n    }\n    findLineFeedCountBeforeOffset(offset) {\n        const lineFeedsOffsets = this._lineFeedsOffsets;\n        let min = 0;\n        let max = lineFeedsOffsets.length - 1;\n        if (max === -1) {\n            // no line feeds\n            return 0;\n        }\n        if (offset <= lineFeedsOffsets[0]) {\n            // before first line feed\n            return 0;\n        }\n        while (min < max) {\n            const mid = min + ((max - min) / 2 >> 0);\n            if (lineFeedsOffsets[mid] >= offset) {\n                max = mid - 1;\n            }\n            else {\n                if (lineFeedsOffsets[mid + 1] >= offset) {\n                    // bingo!\n                    min = mid;\n                    max = mid;\n                }\n                else {\n                    min = mid + 1;\n                }\n            }\n        }\n        return min + 1;\n    }\n}\nclass TextModelSearch {\n    static findMatches(model, searchParams, searchRange, captureMatches, limitResultCount) {\n        const searchData = searchParams.parseSearchRequest();\n        if (!searchData) {\n            return [];\n        }\n        if (searchData.regex.multiline) {\n            return this._doFindMatchesMultiline(model, searchRange, new Searcher(searchData.wordSeparators, searchData.regex), captureMatches, limitResultCount);\n        }\n        return this._doFindMatchesLineByLine(model, searchRange, searchData, captureMatches, limitResultCount);\n    }\n    /**\n     * Multiline search always executes on the lines concatenated with \\n.\n     * We must therefore compensate for the count of \\n in case the model is CRLF\n     */\n    static _getMultilineMatchRange(model, deltaOffset, text, lfCounter, matchIndex, match0) {\n        let startOffset;\n        let lineFeedCountBeforeMatch = 0;\n        if (lfCounter) {\n            lineFeedCountBeforeMatch = lfCounter.findLineFeedCountBeforeOffset(matchIndex);\n            startOffset = deltaOffset + matchIndex + lineFeedCountBeforeMatch /* add as many \\r as there were \\n */;\n        }\n        else {\n            startOffset = deltaOffset + matchIndex;\n        }\n        let endOffset;\n        if (lfCounter) {\n            const lineFeedCountBeforeEndOfMatch = lfCounter.findLineFeedCountBeforeOffset(matchIndex + match0.length);\n            const lineFeedCountInMatch = lineFeedCountBeforeEndOfMatch - lineFeedCountBeforeMatch;\n            endOffset = startOffset + match0.length + lineFeedCountInMatch /* add as many \\r as there were \\n */;\n        }\n        else {\n            endOffset = startOffset + match0.length;\n        }\n        const startPosition = model.getPositionAt(startOffset);\n        const endPosition = model.getPositionAt(endOffset);\n        return new _core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range(startPosition.lineNumber, startPosition.column, endPosition.lineNumber, endPosition.column);\n    }\n    static _doFindMatchesMultiline(model, searchRange, searcher, captureMatches, limitResultCount) {\n        const deltaOffset = model.getOffsetAt(searchRange.getStartPosition());\n        // We always execute multiline search over the lines joined with \\n\n        // This makes it that \\n will match the EOL for both CRLF and LF models\n        // We compensate for offset errors in `_getMultilineMatchRange`\n        const text = model.getValueInRange(searchRange, 1 /* EndOfLinePreference.LF */);\n        const lfCounter = (model.getEOL() === '\\r\\n' ? new LineFeedCounter(text) : null);\n        const result = [];\n        let counter = 0;\n        let m;\n        searcher.reset(0);\n        while ((m = searcher.next(text))) {\n            result[counter++] = createFindMatch(this._getMultilineMatchRange(model, deltaOffset, text, lfCounter, m.index, m[0]), m, captureMatches);\n            if (counter >= limitResultCount) {\n                return result;\n            }\n        }\n        return result;\n    }\n    static _doFindMatchesLineByLine(model, searchRange, searchData, captureMatches, limitResultCount) {\n        const result = [];\n        let resultLen = 0;\n        // Early case for a search range that starts & stops on the same line number\n        if (searchRange.startLineNumber === searchRange.endLineNumber) {\n            const text = model.getLineContent(searchRange.startLineNumber).substring(searchRange.startColumn - 1, searchRange.endColumn - 1);\n            resultLen = this._findMatchesInLine(searchData, text, searchRange.startLineNumber, searchRange.startColumn - 1, resultLen, result, captureMatches, limitResultCount);\n            return result;\n        }\n        // Collect results from first line\n        const text = model.getLineContent(searchRange.startLineNumber).substring(searchRange.startColumn - 1);\n        resultLen = this._findMatchesInLine(searchData, text, searchRange.startLineNumber, searchRange.startColumn - 1, resultLen, result, captureMatches, limitResultCount);\n        // Collect results from middle lines\n        for (let lineNumber = searchRange.startLineNumber + 1; lineNumber < searchRange.endLineNumber && resultLen < limitResultCount; lineNumber++) {\n            resultLen = this._findMatchesInLine(searchData, model.getLineContent(lineNumber), lineNumber, 0, resultLen, result, captureMatches, limitResultCount);\n        }\n        // Collect results from last line\n        if (resultLen < limitResultCount) {\n            const text = model.getLineContent(searchRange.endLineNumber).substring(0, searchRange.endColumn - 1);\n            resultLen = this._findMatchesInLine(searchData, text, searchRange.endLineNumber, 0, resultLen, result, captureMatches, limitResultCount);\n        }\n        return result;\n    }\n    static _findMatchesInLine(searchData, text, lineNumber, deltaOffset, resultLen, result, captureMatches, limitResultCount) {\n        const wordSeparators = searchData.wordSeparators;\n        if (!captureMatches && searchData.simpleSearch) {\n            const searchString = searchData.simpleSearch;\n            const searchStringLen = searchString.length;\n            const textLength = text.length;\n            let lastMatchIndex = -searchStringLen;\n            while ((lastMatchIndex = text.indexOf(searchString, lastMatchIndex + searchStringLen)) !== -1) {\n                if (!wordSeparators || isValidMatch(wordSeparators, text, textLength, lastMatchIndex, searchStringLen)) {\n                    result[resultLen++] = new _model_js__WEBPACK_IMPORTED_MODULE_4__.FindMatch(new _core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range(lineNumber, lastMatchIndex + 1 + deltaOffset, lineNumber, lastMatchIndex + 1 + searchStringLen + deltaOffset), null);\n                    if (resultLen >= limitResultCount) {\n                        return resultLen;\n                    }\n                }\n            }\n            return resultLen;\n        }\n        const searcher = new Searcher(searchData.wordSeparators, searchData.regex);\n        let m;\n        // Reset regex to search from the beginning\n        searcher.reset(0);\n        do {\n            m = searcher.next(text);\n            if (m) {\n                result[resultLen++] = createFindMatch(new _core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range(lineNumber, m.index + 1 + deltaOffset, lineNumber, m.index + 1 + m[0].length + deltaOffset), m, captureMatches);\n                if (resultLen >= limitResultCount) {\n                    return resultLen;\n                }\n            }\n        } while (m);\n        return resultLen;\n    }\n    static findNextMatch(model, searchParams, searchStart, captureMatches) {\n        const searchData = searchParams.parseSearchRequest();\n        if (!searchData) {\n            return null;\n        }\n        const searcher = new Searcher(searchData.wordSeparators, searchData.regex);\n        if (searchData.regex.multiline) {\n            return this._doFindNextMatchMultiline(model, searchStart, searcher, captureMatches);\n        }\n        return this._doFindNextMatchLineByLine(model, searchStart, searcher, captureMatches);\n    }\n    static _doFindNextMatchMultiline(model, searchStart, searcher, captureMatches) {\n        const searchTextStart = new _core_position_js__WEBPACK_IMPORTED_MODULE_2__.Position(searchStart.lineNumber, 1);\n        const deltaOffset = model.getOffsetAt(searchTextStart);\n        const lineCount = model.getLineCount();\n        // We always execute multiline search over the lines joined with \\n\n        // This makes it that \\n will match the EOL for both CRLF and LF models\n        // We compensate for offset errors in `_getMultilineMatchRange`\n        const text = model.getValueInRange(new _core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range(searchTextStart.lineNumber, searchTextStart.column, lineCount, model.getLineMaxColumn(lineCount)), 1 /* EndOfLinePreference.LF */);\n        const lfCounter = (model.getEOL() === '\\r\\n' ? new LineFeedCounter(text) : null);\n        searcher.reset(searchStart.column - 1);\n        const m = searcher.next(text);\n        if (m) {\n            return createFindMatch(this._getMultilineMatchRange(model, deltaOffset, text, lfCounter, m.index, m[0]), m, captureMatches);\n        }\n        if (searchStart.lineNumber !== 1 || searchStart.column !== 1) {\n            // Try again from the top\n            return this._doFindNextMatchMultiline(model, new _core_position_js__WEBPACK_IMPORTED_MODULE_2__.Position(1, 1), searcher, captureMatches);\n        }\n        return null;\n    }\n    static _doFindNextMatchLineByLine(model, searchStart, searcher, captureMatches) {\n        const lineCount = model.getLineCount();\n        const startLineNumber = searchStart.lineNumber;\n        // Look in first line\n        const text = model.getLineContent(startLineNumber);\n        const r = this._findFirstMatchInLine(searcher, text, startLineNumber, searchStart.column, captureMatches);\n        if (r) {\n            return r;\n        }\n        for (let i = 1; i <= lineCount; i++) {\n            const lineIndex = (startLineNumber + i - 1) % lineCount;\n            const text = model.getLineContent(lineIndex + 1);\n            const r = this._findFirstMatchInLine(searcher, text, lineIndex + 1, 1, captureMatches);\n            if (r) {\n                return r;\n            }\n        }\n        return null;\n    }\n    static _findFirstMatchInLine(searcher, text, lineNumber, fromColumn, captureMatches) {\n        // Set regex to search from column\n        searcher.reset(fromColumn - 1);\n        const m = searcher.next(text);\n        if (m) {\n            return createFindMatch(new _core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range(lineNumber, m.index + 1, lineNumber, m.index + 1 + m[0].length), m, captureMatches);\n        }\n        return null;\n    }\n    static findPreviousMatch(model, searchParams, searchStart, captureMatches) {\n        const searchData = searchParams.parseSearchRequest();\n        if (!searchData) {\n            return null;\n        }\n        const searcher = new Searcher(searchData.wordSeparators, searchData.regex);\n        if (searchData.regex.multiline) {\n            return this._doFindPreviousMatchMultiline(model, searchStart, searcher, captureMatches);\n        }\n        return this._doFindPreviousMatchLineByLine(model, searchStart, searcher, captureMatches);\n    }\n    static _doFindPreviousMatchMultiline(model, searchStart, searcher, captureMatches) {\n        const matches = this._doFindMatchesMultiline(model, new _core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range(1, 1, searchStart.lineNumber, searchStart.column), searcher, captureMatches, 10 * LIMIT_FIND_COUNT);\n        if (matches.length > 0) {\n            return matches[matches.length - 1];\n        }\n        const lineCount = model.getLineCount();\n        if (searchStart.lineNumber !== lineCount || searchStart.column !== model.getLineMaxColumn(lineCount)) {\n            // Try again with all content\n            return this._doFindPreviousMatchMultiline(model, new _core_position_js__WEBPACK_IMPORTED_MODULE_2__.Position(lineCount, model.getLineMaxColumn(lineCount)), searcher, captureMatches);\n        }\n        return null;\n    }\n    static _doFindPreviousMatchLineByLine(model, searchStart, searcher, captureMatches) {\n        const lineCount = model.getLineCount();\n        const startLineNumber = searchStart.lineNumber;\n        // Look in first line\n        const text = model.getLineContent(startLineNumber).substring(0, searchStart.column - 1);\n        const r = this._findLastMatchInLine(searcher, text, startLineNumber, captureMatches);\n        if (r) {\n            return r;\n        }\n        for (let i = 1; i <= lineCount; i++) {\n            const lineIndex = (lineCount + startLineNumber - i - 1) % lineCount;\n            const text = model.getLineContent(lineIndex + 1);\n            const r = this._findLastMatchInLine(searcher, text, lineIndex + 1, captureMatches);\n            if (r) {\n                return r;\n            }\n        }\n        return null;\n    }\n    static _findLastMatchInLine(searcher, text, lineNumber, captureMatches) {\n        let bestResult = null;\n        let m;\n        searcher.reset(0);\n        while ((m = searcher.next(text))) {\n            bestResult = createFindMatch(new _core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range(lineNumber, m.index + 1, lineNumber, m.index + 1 + m[0].length), m, captureMatches);\n        }\n        return bestResult;\n    }\n}\nfunction leftIsWordBounday(wordSeparators, text, textLength, matchStartIndex, matchLength) {\n    if (matchStartIndex === 0) {\n        // Match starts at start of string\n        return true;\n    }\n    const charBefore = text.charCodeAt(matchStartIndex - 1);\n    if (wordSeparators.get(charBefore) !== 0 /* WordCharacterClass.Regular */) {\n        // The character before the match is a word separator\n        return true;\n    }\n    if (charBefore === 13 /* CharCode.CarriageReturn */ || charBefore === 10 /* CharCode.LineFeed */) {\n        // The character before the match is line break or carriage return.\n        return true;\n    }\n    if (matchLength > 0) {\n        const firstCharInMatch = text.charCodeAt(matchStartIndex);\n        if (wordSeparators.get(firstCharInMatch) !== 0 /* WordCharacterClass.Regular */) {\n            // The first character inside the match is a word separator\n            return true;\n        }\n    }\n    return false;\n}\nfunction rightIsWordBounday(wordSeparators, text, textLength, matchStartIndex, matchLength) {\n    if (matchStartIndex + matchLength === textLength) {\n        // Match ends at end of string\n        return true;\n    }\n    const charAfter = text.charCodeAt(matchStartIndex + matchLength);\n    if (wordSeparators.get(charAfter) !== 0 /* WordCharacterClass.Regular */) {\n        // The character after the match is a word separator\n        return true;\n    }\n    if (charAfter === 13 /* CharCode.CarriageReturn */ || charAfter === 10 /* CharCode.LineFeed */) {\n        // The character after the match is line break or carriage return.\n        return true;\n    }\n    if (matchLength > 0) {\n        const lastCharInMatch = text.charCodeAt(matchStartIndex + matchLength - 1);\n        if (wordSeparators.get(lastCharInMatch) !== 0 /* WordCharacterClass.Regular */) {\n            // The last character in the match is a word separator\n            return true;\n        }\n    }\n    return false;\n}\nfunction isValidMatch(wordSeparators, text, textLength, matchStartIndex, matchLength) {\n    return (leftIsWordBounday(wordSeparators, text, textLength, matchStartIndex, matchLength)\n        && rightIsWordBounday(wordSeparators, text, textLength, matchStartIndex, matchLength));\n}\nclass Searcher {\n    constructor(wordSeparators, searchRegex) {\n        this._wordSeparators = wordSeparators;\n        this._searchRegex = searchRegex;\n        this._prevMatchStartIndex = -1;\n        this._prevMatchLength = 0;\n    }\n    reset(lastIndex) {\n        this._searchRegex.lastIndex = lastIndex;\n        this._prevMatchStartIndex = -1;\n        this._prevMatchLength = 0;\n    }\n    next(text) {\n        const textLength = text.length;\n        let m;\n        do {\n            if (this._prevMatchStartIndex + this._prevMatchLength === textLength) {\n                // Reached the end of the line\n                return null;\n            }\n            m = this._searchRegex.exec(text);\n            if (!m) {\n                return null;\n            }\n            const matchStartIndex = m.index;\n            const matchLength = m[0].length;\n            if (matchStartIndex === this._prevMatchStartIndex && matchLength === this._prevMatchLength) {\n                if (matchLength === 0) {\n                    // the search result is an empty string and won't advance `regex.lastIndex`, so `regex.exec` will stuck here\n                    // we attempt to recover from that by advancing by two if surrogate pair found and by one otherwise\n                    if (_base_common_strings_js__WEBPACK_IMPORTED_MODULE_0__.getNextCodePoint(text, textLength, this._searchRegex.lastIndex) > 0xFFFF) {\n                        this._searchRegex.lastIndex += 2;\n                    }\n                    else {\n                        this._searchRegex.lastIndex += 1;\n                    }\n                    continue;\n                }\n                // Exit early if the regex matches the same range twice\n                return null;\n            }\n            this._prevMatchStartIndex = matchStartIndex;\n            this._prevMatchLength = matchLength;\n            if (!this._wordSeparators || isValidMatch(this._wordSeparators, text, textLength, matchStartIndex, matchLength)) {\n                return m;\n            }\n        } while (m);\n        return null;\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/model/textModelSearch.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/services/editorBaseApi.js ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   KeyMod: () => (/* binding */ KeyMod),\n/* harmony export */   createMonacoBaseAPI: () => (/* binding */ createMonacoBaseAPI)\n/* harmony export */ });\n/* harmony import */ var _base_common_cancellation_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../base/common/cancellation.js */ \"./node_modules/monaco-editor/esm/vs/base/common/cancellation.js\");\n/* harmony import */ var _base_common_event_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../base/common/event.js */ \"./node_modules/monaco-editor/esm/vs/base/common/event.js\");\n/* harmony import */ var _base_common_keyCodes_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../base/common/keyCodes.js */ \"./node_modules/monaco-editor/esm/vs/base/common/keyCodes.js\");\n/* harmony import */ var _base_common_uri_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../base/common/uri.js */ \"./node_modules/monaco-editor/esm/vs/base/common/uri.js\");\n/* harmony import */ var _core_position_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/position.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/position.js\");\n/* harmony import */ var _core_range_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../core/range.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/range.js\");\n/* harmony import */ var _core_selection_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../core/selection.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js\");\n/* harmony import */ var _languages_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../languages.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/languages.js\");\n/* harmony import */ var _standalone_standaloneEnums_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../standalone/standaloneEnums.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/standalone/standaloneEnums.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n\n\n\n\n\n\n\n\nclass KeyMod {\n    static chord(firstPart, secondPart) {\n        return (0,_base_common_keyCodes_js__WEBPACK_IMPORTED_MODULE_2__.KeyChord)(firstPart, secondPart);\n    }\n}\nKeyMod.CtrlCmd = 2048 /* ConstKeyMod.CtrlCmd */;\nKeyMod.Shift = 1024 /* ConstKeyMod.Shift */;\nKeyMod.Alt = 512 /* ConstKeyMod.Alt */;\nKeyMod.WinCtrl = 256 /* ConstKeyMod.WinCtrl */;\nfunction createMonacoBaseAPI() {\n    return {\n        editor: undefined, // undefined override expected here\n        languages: undefined, // undefined override expected here\n        CancellationTokenSource: _base_common_cancellation_js__WEBPACK_IMPORTED_MODULE_0__.CancellationTokenSource,\n        Emitter: _base_common_event_js__WEBPACK_IMPORTED_MODULE_1__.Emitter,\n        KeyCode: _standalone_standaloneEnums_js__WEBPACK_IMPORTED_MODULE_8__.KeyCode,\n        KeyMod: KeyMod,\n        Position: _core_position_js__WEBPACK_IMPORTED_MODULE_4__.Position,\n        Range: _core_range_js__WEBPACK_IMPORTED_MODULE_5__.Range,\n        Selection: _core_selection_js__WEBPACK_IMPORTED_MODULE_6__.Selection,\n        SelectionDirection: _standalone_standaloneEnums_js__WEBPACK_IMPORTED_MODULE_8__.SelectionDirection,\n        MarkerSeverity: _standalone_standaloneEnums_js__WEBPACK_IMPORTED_MODULE_8__.MarkerSeverity,\n        MarkerTag: _standalone_standaloneEnums_js__WEBPACK_IMPORTED_MODULE_8__.MarkerTag,\n        Uri: _base_common_uri_js__WEBPACK_IMPORTED_MODULE_3__.URI,\n        Token: _languages_js__WEBPACK_IMPORTED_MODULE_7__.Token\n    };\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/services/editorBaseApi.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EditorSimpleWorker: () => (/* binding */ EditorSimpleWorker),\n/* harmony export */   create: () => (/* binding */ create)\n/* harmony export */ });\n/* harmony import */ var _base_common_diff_diff_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../base/common/diff/diff.js */ \"./node_modules/monaco-editor/esm/vs/base/common/diff/diff.js\");\n/* harmony import */ var _base_common_uri_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../base/common/uri.js */ \"./node_modules/monaco-editor/esm/vs/base/common/uri.js\");\n/* harmony import */ var _core_position_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/position.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/position.js\");\n/* harmony import */ var _core_range_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/range.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/range.js\");\n/* harmony import */ var _model_mirrorTextModel_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../model/mirrorTextModel.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/model/mirrorTextModel.js\");\n/* harmony import */ var _core_wordHelper_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../core/wordHelper.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/wordHelper.js\");\n/* harmony import */ var _languages_linkComputer_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../languages/linkComputer.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/languages/linkComputer.js\");\n/* harmony import */ var _languages_supports_inplaceReplaceSupport_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../languages/supports/inplaceReplaceSupport.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/languages/supports/inplaceReplaceSupport.js\");\n/* harmony import */ var _editorBaseApi_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./editorBaseApi.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/services/editorBaseApi.js\");\n/* harmony import */ var _base_common_stopwatch_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../base/common/stopwatch.js */ \"./node_modules/monaco-editor/esm/vs/base/common/stopwatch.js\");\n/* harmony import */ var _unicodeTextModelHighlighter_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./unicodeTextModelHighlighter.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js\");\n/* harmony import */ var _diff_linesDiffComputers_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../diff/linesDiffComputers.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/diff/linesDiffComputers.js\");\n/* harmony import */ var _base_common_objects_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../base/common/objects.js */ \"./node_modules/monaco-editor/esm/vs/base/common/objects.js\");\n/* harmony import */ var _languages_defaultDocumentColorsComputer_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../languages/defaultDocumentColorsComputer.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/languages/defaultDocumentColorsComputer.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * @internal\n */\nclass MirrorModel extends _model_mirrorTextModel_js__WEBPACK_IMPORTED_MODULE_4__.MirrorTextModel {\n    get uri() {\n        return this._uri;\n    }\n    get eol() {\n        return this._eol;\n    }\n    getValue() {\n        return this.getText();\n    }\n    findMatches(regex) {\n        const matches = [];\n        for (let i = 0; i < this._lines.length; i++) {\n            const line = this._lines[i];\n            const offsetToAdd = this.offsetAt(new _core_position_js__WEBPACK_IMPORTED_MODULE_2__.Position(i + 1, 1));\n            const iteratorOverMatches = line.matchAll(regex);\n            for (const match of iteratorOverMatches) {\n                if (match.index || match.index === 0) {\n                    match.index = match.index + offsetToAdd;\n                }\n                matches.push(match);\n            }\n        }\n        return matches;\n    }\n    getLinesContent() {\n        return this._lines.slice(0);\n    }\n    getLineCount() {\n        return this._lines.length;\n    }\n    getLineContent(lineNumber) {\n        return this._lines[lineNumber - 1];\n    }\n    getWordAtPosition(position, wordDefinition) {\n        const wordAtText = (0,_core_wordHelper_js__WEBPACK_IMPORTED_MODULE_5__.getWordAtText)(position.column, (0,_core_wordHelper_js__WEBPACK_IMPORTED_MODULE_5__.ensureValidWordDefinition)(wordDefinition), this._lines[position.lineNumber - 1], 0);\n        if (wordAtText) {\n            return new _core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range(position.lineNumber, wordAtText.startColumn, position.lineNumber, wordAtText.endColumn);\n        }\n        return null;\n    }\n    words(wordDefinition) {\n        const lines = this._lines;\n        const wordenize = this._wordenize.bind(this);\n        let lineNumber = 0;\n        let lineText = '';\n        let wordRangesIdx = 0;\n        let wordRanges = [];\n        return {\n            *[Symbol.iterator]() {\n                while (true) {\n                    if (wordRangesIdx < wordRanges.length) {\n                        const value = lineText.substring(wordRanges[wordRangesIdx].start, wordRanges[wordRangesIdx].end);\n                        wordRangesIdx += 1;\n                        yield value;\n                    }\n                    else {\n                        if (lineNumber < lines.length) {\n                            lineText = lines[lineNumber];\n                            wordRanges = wordenize(lineText, wordDefinition);\n                            wordRangesIdx = 0;\n                            lineNumber += 1;\n                        }\n                        else {\n                            break;\n                        }\n                    }\n                }\n            }\n        };\n    }\n    getLineWords(lineNumber, wordDefinition) {\n        const content = this._lines[lineNumber - 1];\n        const ranges = this._wordenize(content, wordDefinition);\n        const words = [];\n        for (const range of ranges) {\n            words.push({\n                word: content.substring(range.start, range.end),\n                startColumn: range.start + 1,\n                endColumn: range.end + 1\n            });\n        }\n        return words;\n    }\n    _wordenize(content, wordDefinition) {\n        const result = [];\n        let match;\n        wordDefinition.lastIndex = 0; // reset lastIndex just to be sure\n        while (match = wordDefinition.exec(content)) {\n            if (match[0].length === 0) {\n                // it did match the empty string\n                break;\n            }\n            result.push({ start: match.index, end: match.index + match[0].length });\n        }\n        return result;\n    }\n    getValueInRange(range) {\n        range = this._validateRange(range);\n        if (range.startLineNumber === range.endLineNumber) {\n            return this._lines[range.startLineNumber - 1].substring(range.startColumn - 1, range.endColumn - 1);\n        }\n        const lineEnding = this._eol;\n        const startLineIndex = range.startLineNumber - 1;\n        const endLineIndex = range.endLineNumber - 1;\n        const resultLines = [];\n        resultLines.push(this._lines[startLineIndex].substring(range.startColumn - 1));\n        for (let i = startLineIndex + 1; i < endLineIndex; i++) {\n            resultLines.push(this._lines[i]);\n        }\n        resultLines.push(this._lines[endLineIndex].substring(0, range.endColumn - 1));\n        return resultLines.join(lineEnding);\n    }\n    offsetAt(position) {\n        position = this._validatePosition(position);\n        this._ensureLineStarts();\n        return this._lineStarts.getPrefixSum(position.lineNumber - 2) + (position.column - 1);\n    }\n    positionAt(offset) {\n        offset = Math.floor(offset);\n        offset = Math.max(0, offset);\n        this._ensureLineStarts();\n        const out = this._lineStarts.getIndexOf(offset);\n        const lineLength = this._lines[out.index].length;\n        // Ensure we return a valid position\n        return {\n            lineNumber: 1 + out.index,\n            column: 1 + Math.min(out.remainder, lineLength)\n        };\n    }\n    _validateRange(range) {\n        const start = this._validatePosition({ lineNumber: range.startLineNumber, column: range.startColumn });\n        const end = this._validatePosition({ lineNumber: range.endLineNumber, column: range.endColumn });\n        if (start.lineNumber !== range.startLineNumber\n            || start.column !== range.startColumn\n            || end.lineNumber !== range.endLineNumber\n            || end.column !== range.endColumn) {\n            return {\n                startLineNumber: start.lineNumber,\n                startColumn: start.column,\n                endLineNumber: end.lineNumber,\n                endColumn: end.column\n            };\n        }\n        return range;\n    }\n    _validatePosition(position) {\n        if (!_core_position_js__WEBPACK_IMPORTED_MODULE_2__.Position.isIPosition(position)) {\n            throw new Error('bad position');\n        }\n        let { lineNumber, column } = position;\n        let hasChanged = false;\n        if (lineNumber < 1) {\n            lineNumber = 1;\n            column = 1;\n            hasChanged = true;\n        }\n        else if (lineNumber > this._lines.length) {\n            lineNumber = this._lines.length;\n            column = this._lines[lineNumber - 1].length + 1;\n            hasChanged = true;\n        }\n        else {\n            const maxCharacter = this._lines[lineNumber - 1].length + 1;\n            if (column < 1) {\n                column = 1;\n                hasChanged = true;\n            }\n            else if (column > maxCharacter) {\n                column = maxCharacter;\n                hasChanged = true;\n            }\n        }\n        if (!hasChanged) {\n            return position;\n        }\n        else {\n            return { lineNumber, column };\n        }\n    }\n}\n/**\n * @internal\n */\nclass EditorSimpleWorker {\n    constructor(host, foreignModuleFactory) {\n        this._host = host;\n        this._models = Object.create(null);\n        this._foreignModuleFactory = foreignModuleFactory;\n        this._foreignModule = null;\n    }\n    dispose() {\n        this._models = Object.create(null);\n    }\n    _getModel(uri) {\n        return this._models[uri];\n    }\n    _getModels() {\n        const all = [];\n        Object.keys(this._models).forEach((key) => all.push(this._models[key]));\n        return all;\n    }\n    acceptNewModel(data) {\n        this._models[data.url] = new MirrorModel(_base_common_uri_js__WEBPACK_IMPORTED_MODULE_1__.URI.parse(data.url), data.lines, data.EOL, data.versionId);\n    }\n    acceptModelChanged(strURL, e) {\n        if (!this._models[strURL]) {\n            return;\n        }\n        const model = this._models[strURL];\n        model.onEvents(e);\n    }\n    acceptRemovedModel(strURL) {\n        if (!this._models[strURL]) {\n            return;\n        }\n        delete this._models[strURL];\n    }\n    async computeUnicodeHighlights(url, options, range) {\n        const model = this._getModel(url);\n        if (!model) {\n            return { ranges: [], hasMore: false, ambiguousCharacterCount: 0, invisibleCharacterCount: 0, nonBasicAsciiCharacterCount: 0 };\n        }\n        return _unicodeTextModelHighlighter_js__WEBPACK_IMPORTED_MODULE_10__.UnicodeTextModelHighlighter.computeUnicodeHighlights(model, options, range);\n    }\n    // ---- BEGIN diff --------------------------------------------------------------------------\n    async computeDiff(originalUrl, modifiedUrl, options, algorithm) {\n        const original = this._getModel(originalUrl);\n        const modified = this._getModel(modifiedUrl);\n        if (!original || !modified) {\n            return null;\n        }\n        return EditorSimpleWorker.computeDiff(original, modified, options, algorithm);\n    }\n    static computeDiff(originalTextModel, modifiedTextModel, options, algorithm) {\n        const diffAlgorithm = algorithm === 'advanced' ? _diff_linesDiffComputers_js__WEBPACK_IMPORTED_MODULE_11__.linesDiffComputers.getDefault() : _diff_linesDiffComputers_js__WEBPACK_IMPORTED_MODULE_11__.linesDiffComputers.getLegacy();\n        const originalLines = originalTextModel.getLinesContent();\n        const modifiedLines = modifiedTextModel.getLinesContent();\n        const result = diffAlgorithm.computeDiff(originalLines, modifiedLines, options);\n        const identical = (result.changes.length > 0 ? false : this._modelsAreIdentical(originalTextModel, modifiedTextModel));\n        function getLineChanges(changes) {\n            return changes.map(m => {\n                var _a;\n                return ([m.original.startLineNumber, m.original.endLineNumberExclusive, m.modified.startLineNumber, m.modified.endLineNumberExclusive, (_a = m.innerChanges) === null || _a === void 0 ? void 0 : _a.map(m => [\n                        m.originalRange.startLineNumber,\n                        m.originalRange.startColumn,\n                        m.originalRange.endLineNumber,\n                        m.originalRange.endColumn,\n                        m.modifiedRange.startLineNumber,\n                        m.modifiedRange.startColumn,\n                        m.modifiedRange.endLineNumber,\n                        m.modifiedRange.endColumn,\n                    ])]);\n            });\n        }\n        return {\n            identical,\n            quitEarly: result.hitTimeout,\n            changes: getLineChanges(result.changes),\n            moves: result.moves.map(m => ([\n                m.lineRangeMapping.original.startLineNumber,\n                m.lineRangeMapping.original.endLineNumberExclusive,\n                m.lineRangeMapping.modified.startLineNumber,\n                m.lineRangeMapping.modified.endLineNumberExclusive,\n                getLineChanges(m.changes)\n            ])),\n        };\n    }\n    static _modelsAreIdentical(original, modified) {\n        const originalLineCount = original.getLineCount();\n        const modifiedLineCount = modified.getLineCount();\n        if (originalLineCount !== modifiedLineCount) {\n            return false;\n        }\n        for (let line = 1; line <= originalLineCount; line++) {\n            const originalLine = original.getLineContent(line);\n            const modifiedLine = modified.getLineContent(line);\n            if (originalLine !== modifiedLine) {\n                return false;\n            }\n        }\n        return true;\n    }\n    async computeMoreMinimalEdits(modelUrl, edits, pretty) {\n        const model = this._getModel(modelUrl);\n        if (!model) {\n            return edits;\n        }\n        const result = [];\n        let lastEol = undefined;\n        edits = edits.slice(0).sort((a, b) => {\n            if (a.range && b.range) {\n                return _core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range.compareRangesUsingStarts(a.range, b.range);\n            }\n            // eol only changes should go to the end\n            const aRng = a.range ? 0 : 1;\n            const bRng = b.range ? 0 : 1;\n            return aRng - bRng;\n        });\n        // merge adjacent edits\n        let writeIndex = 0;\n        for (let readIndex = 1; readIndex < edits.length; readIndex++) {\n            if (_core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range.getEndPosition(edits[writeIndex].range).equals(_core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range.getStartPosition(edits[readIndex].range))) {\n                edits[writeIndex].range = _core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range.fromPositions(_core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range.getStartPosition(edits[writeIndex].range), _core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range.getEndPosition(edits[readIndex].range));\n                edits[writeIndex].text += edits[readIndex].text;\n            }\n            else {\n                writeIndex++;\n                edits[writeIndex] = edits[readIndex];\n            }\n        }\n        edits.length = writeIndex + 1;\n        for (let { range, text, eol } of edits) {\n            if (typeof eol === 'number') {\n                lastEol = eol;\n            }\n            if (_core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range.isEmpty(range) && !text) {\n                // empty change\n                continue;\n            }\n            const original = model.getValueInRange(range);\n            text = text.replace(/\\r\\n|\\n|\\r/g, model.eol);\n            if (original === text) {\n                // noop\n                continue;\n            }\n            // make sure diff won't take too long\n            if (Math.max(text.length, original.length) > EditorSimpleWorker._diffLimit) {\n                result.push({ range, text });\n                continue;\n            }\n            // compute diff between original and edit.text\n            const changes = (0,_base_common_diff_diff_js__WEBPACK_IMPORTED_MODULE_0__.stringDiff)(original, text, pretty);\n            const editOffset = model.offsetAt(_core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range.lift(range).getStartPosition());\n            for (const change of changes) {\n                const start = model.positionAt(editOffset + change.originalStart);\n                const end = model.positionAt(editOffset + change.originalStart + change.originalLength);\n                const newEdit = {\n                    text: text.substr(change.modifiedStart, change.modifiedLength),\n                    range: { startLineNumber: start.lineNumber, startColumn: start.column, endLineNumber: end.lineNumber, endColumn: end.column }\n                };\n                if (model.getValueInRange(newEdit.range) !== newEdit.text) {\n                    result.push(newEdit);\n                }\n            }\n        }\n        if (typeof lastEol === 'number') {\n            result.push({ eol: lastEol, text: '', range: { startLineNumber: 0, startColumn: 0, endLineNumber: 0, endColumn: 0 } });\n        }\n        return result;\n    }\n    // ---- END minimal edits ---------------------------------------------------------------\n    async computeLinks(modelUrl) {\n        const model = this._getModel(modelUrl);\n        if (!model) {\n            return null;\n        }\n        return (0,_languages_linkComputer_js__WEBPACK_IMPORTED_MODULE_6__.computeLinks)(model);\n    }\n    // --- BEGIN default document colors -----------------------------------------------------------\n    async computeDefaultDocumentColors(modelUrl) {\n        const model = this._getModel(modelUrl);\n        if (!model) {\n            return null;\n        }\n        return (0,_languages_defaultDocumentColorsComputer_js__WEBPACK_IMPORTED_MODULE_13__.computeDefaultDocumentColors)(model);\n    }\n    async textualSuggest(modelUrls, leadingWord, wordDef, wordDefFlags) {\n        const sw = new _base_common_stopwatch_js__WEBPACK_IMPORTED_MODULE_9__.StopWatch();\n        const wordDefRegExp = new RegExp(wordDef, wordDefFlags);\n        const seen = new Set();\n        outer: for (const url of modelUrls) {\n            const model = this._getModel(url);\n            if (!model) {\n                continue;\n            }\n            for (const word of model.words(wordDefRegExp)) {\n                if (word === leadingWord || !isNaN(Number(word))) {\n                    continue;\n                }\n                seen.add(word);\n                if (seen.size > EditorSimpleWorker._suggestionsLimit) {\n                    break outer;\n                }\n            }\n        }\n        return { words: Array.from(seen), duration: sw.elapsed() };\n    }\n    // ---- END suggest --------------------------------------------------------------------------\n    //#region -- word ranges --\n    async computeWordRanges(modelUrl, range, wordDef, wordDefFlags) {\n        const model = this._getModel(modelUrl);\n        if (!model) {\n            return Object.create(null);\n        }\n        const wordDefRegExp = new RegExp(wordDef, wordDefFlags);\n        const result = Object.create(null);\n        for (let line = range.startLineNumber; line < range.endLineNumber; line++) {\n            const words = model.getLineWords(line, wordDefRegExp);\n            for (const word of words) {\n                if (!isNaN(Number(word.word))) {\n                    continue;\n                }\n                let array = result[word.word];\n                if (!array) {\n                    array = [];\n                    result[word.word] = array;\n                }\n                array.push({\n                    startLineNumber: line,\n                    startColumn: word.startColumn,\n                    endLineNumber: line,\n                    endColumn: word.endColumn\n                });\n            }\n        }\n        return result;\n    }\n    //#endregion\n    async navigateValueSet(modelUrl, range, up, wordDef, wordDefFlags) {\n        const model = this._getModel(modelUrl);\n        if (!model) {\n            return null;\n        }\n        const wordDefRegExp = new RegExp(wordDef, wordDefFlags);\n        if (range.startColumn === range.endColumn) {\n            range = {\n                startLineNumber: range.startLineNumber,\n                startColumn: range.startColumn,\n                endLineNumber: range.endLineNumber,\n                endColumn: range.endColumn + 1\n            };\n        }\n        const selectionText = model.getValueInRange(range);\n        const wordRange = model.getWordAtPosition({ lineNumber: range.startLineNumber, column: range.startColumn }, wordDefRegExp);\n        if (!wordRange) {\n            return null;\n        }\n        const word = model.getValueInRange(wordRange);\n        const result = _languages_supports_inplaceReplaceSupport_js__WEBPACK_IMPORTED_MODULE_7__.BasicInplaceReplace.INSTANCE.navigateValueSet(range, selectionText, wordRange, word, up);\n        return result;\n    }\n    // ---- BEGIN foreign module support --------------------------------------------------------------------------\n    loadForeignModule(moduleId, createData, foreignHostMethods) {\n        const proxyMethodRequest = (method, args) => {\n            return this._host.fhr(method, args);\n        };\n        const foreignHost = (0,_base_common_objects_js__WEBPACK_IMPORTED_MODULE_12__.createProxyObject)(foreignHostMethods, proxyMethodRequest);\n        const ctx = {\n            host: foreignHost,\n            getMirrorModels: () => {\n                return this._getModels();\n            }\n        };\n        if (this._foreignModuleFactory) {\n            this._foreignModule = this._foreignModuleFactory(ctx, createData);\n            // static foreing module\n            return Promise.resolve((0,_base_common_objects_js__WEBPACK_IMPORTED_MODULE_12__.getAllMethodNames)(this._foreignModule));\n        }\n        // ESM-comment-begin\n        // \t\treturn new Promise<any>((resolve, reject) => {\n        // \t\t\trequire([moduleId], (foreignModule: { create: IForeignModuleFactory }) => {\n        // \t\t\t\tthis._foreignModule = foreignModule.create(ctx, createData);\n        // \n        // \t\t\t\tresolve(getAllMethodNames(this._foreignModule));\n        // \n        // \t\t\t}, reject);\n        // \t\t});\n        // ESM-comment-end\n        // ESM-uncomment-begin\n        return Promise.reject(new Error(`Unexpected usage`));\n        // ESM-uncomment-end\n    }\n    // foreign method request\n    fmr(method, args) {\n        if (!this._foreignModule || typeof this._foreignModule[method] !== 'function') {\n            return Promise.reject(new Error('Missing requestHandler or method: ' + method));\n        }\n        try {\n            return Promise.resolve(this._foreignModule[method].apply(this._foreignModule, args));\n        }\n        catch (e) {\n            return Promise.reject(e);\n        }\n    }\n}\n// ---- END diff --------------------------------------------------------------------------\n// ---- BEGIN minimal edits ---------------------------------------------------------------\nEditorSimpleWorker._diffLimit = 100000;\n// ---- BEGIN suggest --------------------------------------------------------------------------\nEditorSimpleWorker._suggestionsLimit = 10000;\n/**\n * Called on the worker side\n * @internal\n */\nfunction create(host) {\n    return new EditorSimpleWorker(host, null);\n}\nif (typeof importScripts === 'function') {\n    // Running in a web worker\n    globalThis.monaco = (0,_editorBaseApi_js__WEBPACK_IMPORTED_MODULE_8__.createMonacoBaseAPI)();\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js ***!
  \*************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   UnicodeTextModelHighlighter: () => (/* binding */ UnicodeTextModelHighlighter)\n/* harmony export */ });\n/* harmony import */ var _core_range_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/range.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/range.js\");\n/* harmony import */ var _model_textModelSearch_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../model/textModelSearch.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/model/textModelSearch.js\");\n/* harmony import */ var _base_common_strings_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../base/common/strings.js */ \"./node_modules/monaco-editor/esm/vs/base/common/strings.js\");\n/* harmony import */ var _base_common_assert_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../base/common/assert.js */ \"./node_modules/monaco-editor/esm/vs/base/common/assert.js\");\n/* harmony import */ var _core_wordHelper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/wordHelper.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/core/wordHelper.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n\n\n\n\nclass UnicodeTextModelHighlighter {\n    static computeUnicodeHighlights(model, options, range) {\n        const startLine = range ? range.startLineNumber : 1;\n        const endLine = range ? range.endLineNumber : model.getLineCount();\n        const codePointHighlighter = new CodePointHighlighter(options);\n        const candidates = codePointHighlighter.getCandidateCodePoints();\n        let regex;\n        if (candidates === 'allNonBasicAscii') {\n            regex = new RegExp('[^\\\\t\\\\n\\\\r\\\\x20-\\\\x7E]', 'g');\n        }\n        else {\n            regex = new RegExp(`${buildRegExpCharClassExpr(Array.from(candidates))}`, 'g');\n        }\n        const searcher = new _model_textModelSearch_js__WEBPACK_IMPORTED_MODULE_1__.Searcher(null, regex);\n        const ranges = [];\n        let hasMore = false;\n        let m;\n        let ambiguousCharacterCount = 0;\n        let invisibleCharacterCount = 0;\n        let nonBasicAsciiCharacterCount = 0;\n        forLoop: for (let lineNumber = startLine, lineCount = endLine; lineNumber <= lineCount; lineNumber++) {\n            const lineContent = model.getLineContent(lineNumber);\n            const lineLength = lineContent.length;\n            // Reset regex to search from the beginning\n            searcher.reset(0);\n            do {\n                m = searcher.next(lineContent);\n                if (m) {\n                    let startIndex = m.index;\n                    let endIndex = m.index + m[0].length;\n                    // Extend range to entire code point\n                    if (startIndex > 0) {\n                        const charCodeBefore = lineContent.charCodeAt(startIndex - 1);\n                        if (_base_common_strings_js__WEBPACK_IMPORTED_MODULE_2__.isHighSurrogate(charCodeBefore)) {\n                            startIndex--;\n                        }\n                    }\n                    if (endIndex + 1 < lineLength) {\n                        const charCodeBefore = lineContent.charCodeAt(endIndex - 1);\n                        if (_base_common_strings_js__WEBPACK_IMPORTED_MODULE_2__.isHighSurrogate(charCodeBefore)) {\n                            endIndex++;\n                        }\n                    }\n                    const str = lineContent.substring(startIndex, endIndex);\n                    let word = (0,_core_wordHelper_js__WEBPACK_IMPORTED_MODULE_4__.getWordAtText)(startIndex + 1, _core_wordHelper_js__WEBPACK_IMPORTED_MODULE_4__.DEFAULT_WORD_REGEXP, lineContent, 0);\n                    if (word && word.endColumn <= startIndex + 1) {\n                        // The word does not include the problematic character, ignore the word\n                        word = null;\n                    }\n                    const highlightReason = codePointHighlighter.shouldHighlightNonBasicASCII(str, word ? word.word : null);\n                    if (highlightReason !== 0 /* SimpleHighlightReason.None */) {\n                        if (highlightReason === 3 /* SimpleHighlightReason.Ambiguous */) {\n                            ambiguousCharacterCount++;\n                        }\n                        else if (highlightReason === 2 /* SimpleHighlightReason.Invisible */) {\n                            invisibleCharacterCount++;\n                        }\n                        else if (highlightReason === 1 /* SimpleHighlightReason.NonBasicASCII */) {\n                            nonBasicAsciiCharacterCount++;\n                        }\n                        else {\n                            (0,_base_common_assert_js__WEBPACK_IMPORTED_MODULE_3__.assertNever)(highlightReason);\n                        }\n                        const MAX_RESULT_LENGTH = 1000;\n                        if (ranges.length >= MAX_RESULT_LENGTH) {\n                            hasMore = true;\n                            break forLoop;\n                        }\n                        ranges.push(new _core_range_js__WEBPACK_IMPORTED_MODULE_0__.Range(lineNumber, startIndex + 1, lineNumber, endIndex + 1));\n                    }\n                }\n            } while (m);\n        }\n        return {\n            ranges,\n            hasMore,\n            ambiguousCharacterCount,\n            invisibleCharacterCount,\n            nonBasicAsciiCharacterCount\n        };\n    }\n    static computeUnicodeHighlightReason(char, options) {\n        const codePointHighlighter = new CodePointHighlighter(options);\n        const reason = codePointHighlighter.shouldHighlightNonBasicASCII(char, null);\n        switch (reason) {\n            case 0 /* SimpleHighlightReason.None */:\n                return null;\n            case 2 /* SimpleHighlightReason.Invisible */:\n                return { kind: 1 /* UnicodeHighlighterReasonKind.Invisible */ };\n            case 3 /* SimpleHighlightReason.Ambiguous */: {\n                const codePoint = char.codePointAt(0);\n                const primaryConfusable = codePointHighlighter.ambiguousCharacters.getPrimaryConfusable(codePoint);\n                const notAmbiguousInLocales = _base_common_strings_js__WEBPACK_IMPORTED_MODULE_2__.AmbiguousCharacters.getLocales().filter((l) => !_base_common_strings_js__WEBPACK_IMPORTED_MODULE_2__.AmbiguousCharacters.getInstance(new Set([...options.allowedLocales, l])).isAmbiguous(codePoint));\n                return { kind: 0 /* UnicodeHighlighterReasonKind.Ambiguous */, confusableWith: String.fromCodePoint(primaryConfusable), notAmbiguousInLocales };\n            }\n            case 1 /* SimpleHighlightReason.NonBasicASCII */:\n                return { kind: 2 /* UnicodeHighlighterReasonKind.NonBasicAscii */ };\n        }\n    }\n}\nfunction buildRegExpCharClassExpr(codePoints, flags) {\n    const src = `[${_base_common_strings_js__WEBPACK_IMPORTED_MODULE_2__.escapeRegExpCharacters(codePoints.map((i) => String.fromCodePoint(i)).join(''))}]`;\n    return src;\n}\nclass CodePointHighlighter {\n    constructor(options) {\n        this.options = options;\n        this.allowedCodePoints = new Set(options.allowedCodePoints);\n        this.ambiguousCharacters = _base_common_strings_js__WEBPACK_IMPORTED_MODULE_2__.AmbiguousCharacters.getInstance(new Set(options.allowedLocales));\n    }\n    getCandidateCodePoints() {\n        if (this.options.nonBasicASCII) {\n            return 'allNonBasicAscii';\n        }\n        const set = new Set();\n        if (this.options.invisibleCharacters) {\n            for (const cp of _base_common_strings_js__WEBPACK_IMPORTED_MODULE_2__.InvisibleCharacters.codePoints) {\n                if (!isAllowedInvisibleCharacter(String.fromCodePoint(cp))) {\n                    set.add(cp);\n                }\n            }\n        }\n        if (this.options.ambiguousCharacters) {\n            for (const cp of this.ambiguousCharacters.getConfusableCodePoints()) {\n                set.add(cp);\n            }\n        }\n        for (const cp of this.allowedCodePoints) {\n            set.delete(cp);\n        }\n        return set;\n    }\n    shouldHighlightNonBasicASCII(character, wordContext) {\n        const codePoint = character.codePointAt(0);\n        if (this.allowedCodePoints.has(codePoint)) {\n            return 0 /* SimpleHighlightReason.None */;\n        }\n        if (this.options.nonBasicASCII) {\n            return 1 /* SimpleHighlightReason.NonBasicASCII */;\n        }\n        let hasBasicASCIICharacters = false;\n        let hasNonConfusableNonBasicAsciiCharacter = false;\n        if (wordContext) {\n            for (const char of wordContext) {\n                const codePoint = char.codePointAt(0);\n                const isBasicASCII = _base_common_strings_js__WEBPACK_IMPORTED_MODULE_2__.isBasicASCII(char);\n                hasBasicASCIICharacters = hasBasicASCIICharacters || isBasicASCII;\n                if (!isBasicASCII &&\n                    !this.ambiguousCharacters.isAmbiguous(codePoint) &&\n                    !_base_common_strings_js__WEBPACK_IMPORTED_MODULE_2__.InvisibleCharacters.isInvisibleCharacter(codePoint)) {\n                    hasNonConfusableNonBasicAsciiCharacter = true;\n                }\n            }\n        }\n        if (\n        /* Don't allow mixing weird looking characters with ASCII */ !hasBasicASCIICharacters &&\n            /* Is there an obviously weird looking character? */ hasNonConfusableNonBasicAsciiCharacter) {\n            return 0 /* SimpleHighlightReason.None */;\n        }\n        if (this.options.invisibleCharacters) {\n            // TODO check for emojis\n            if (!isAllowedInvisibleCharacter(character) && _base_common_strings_js__WEBPACK_IMPORTED_MODULE_2__.InvisibleCharacters.isInvisibleCharacter(codePoint)) {\n                return 2 /* SimpleHighlightReason.Invisible */;\n            }\n        }\n        if (this.options.ambiguousCharacters) {\n            if (this.ambiguousCharacters.isAmbiguous(codePoint)) {\n                return 3 /* SimpleHighlightReason.Ambiguous */;\n            }\n        }\n        return 0 /* SimpleHighlightReason.None */;\n    }\n}\nfunction isAllowedInvisibleCharacter(character) {\n    return character === ' ' || character === '\\n' || character === '\\t';\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/standalone/standaloneEnums.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/standalone/standaloneEnums.js ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AccessibilitySupport: () => (/* binding */ AccessibilitySupport),\n/* harmony export */   CodeActionTriggerType: () => (/* binding */ CodeActionTriggerType),\n/* harmony export */   CompletionItemInsertTextRule: () => (/* binding */ CompletionItemInsertTextRule),\n/* harmony export */   CompletionItemKind: () => (/* binding */ CompletionItemKind),\n/* harmony export */   CompletionItemTag: () => (/* binding */ CompletionItemTag),\n/* harmony export */   CompletionTriggerKind: () => (/* binding */ CompletionTriggerKind),\n/* harmony export */   ContentWidgetPositionPreference: () => (/* binding */ ContentWidgetPositionPreference),\n/* harmony export */   CursorChangeReason: () => (/* binding */ CursorChangeReason),\n/* harmony export */   DefaultEndOfLine: () => (/* binding */ DefaultEndOfLine),\n/* harmony export */   DocumentHighlightKind: () => (/* binding */ DocumentHighlightKind),\n/* harmony export */   EditorAutoIndentStrategy: () => (/* binding */ EditorAutoIndentStrategy),\n/* harmony export */   EditorOption: () => (/* binding */ EditorOption),\n/* harmony export */   EndOfLinePreference: () => (/* binding */ EndOfLinePreference),\n/* harmony export */   EndOfLineSequence: () => (/* binding */ EndOfLineSequence),\n/* harmony export */   GlyphMarginLane: () => (/* binding */ GlyphMarginLane),\n/* harmony export */   IndentAction: () => (/* binding */ IndentAction),\n/* harmony export */   InjectedTextCursorStops: () => (/* binding */ InjectedTextCursorStops),\n/* harmony export */   InlayHintKind: () => (/* binding */ InlayHintKind),\n/* harmony export */   InlineCompletionTriggerKind: () => (/* binding */ InlineCompletionTriggerKind),\n/* harmony export */   KeyCode: () => (/* binding */ KeyCode),\n/* harmony export */   MarkerSeverity: () => (/* binding */ MarkerSeverity),\n/* harmony export */   MarkerTag: () => (/* binding */ MarkerTag),\n/* harmony export */   MinimapPosition: () => (/* binding */ MinimapPosition),\n/* harmony export */   MouseTargetType: () => (/* binding */ MouseTargetType),\n/* harmony export */   OverlayWidgetPositionPreference: () => (/* binding */ OverlayWidgetPositionPreference),\n/* harmony export */   OverviewRulerLane: () => (/* binding */ OverviewRulerLane),\n/* harmony export */   PositionAffinity: () => (/* binding */ PositionAffinity),\n/* harmony export */   RenderLineNumbersType: () => (/* binding */ RenderLineNumbersType),\n/* harmony export */   RenderMinimap: () => (/* binding */ RenderMinimap),\n/* harmony export */   ScrollType: () => (/* binding */ ScrollType),\n/* harmony export */   ScrollbarVisibility: () => (/* binding */ ScrollbarVisibility),\n/* harmony export */   SelectionDirection: () => (/* binding */ SelectionDirection),\n/* harmony export */   ShowAiIconMode: () => (/* binding */ ShowAiIconMode),\n/* harmony export */   SignatureHelpTriggerKind: () => (/* binding */ SignatureHelpTriggerKind),\n/* harmony export */   SymbolKind: () => (/* binding */ SymbolKind),\n/* harmony export */   SymbolTag: () => (/* binding */ SymbolTag),\n/* harmony export */   TextEditorCursorBlinkingStyle: () => (/* binding */ TextEditorCursorBlinkingStyle),\n/* harmony export */   TextEditorCursorStyle: () => (/* binding */ TextEditorCursorStyle),\n/* harmony export */   TrackedRangeStickiness: () => (/* binding */ TrackedRangeStickiness),\n/* harmony export */   WrappingIndent: () => (/* binding */ WrappingIndent)\n/* harmony export */ });\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n// THIS IS A GENERATED FILE. DO NOT EDIT DIRECTLY.\nvar AccessibilitySupport;\n(function (AccessibilitySupport) {\n    /**\n     * This should be the browser case where it is not known if a screen reader is attached or no.\n     */\n    AccessibilitySupport[AccessibilitySupport[\"Unknown\"] = 0] = \"Unknown\";\n    AccessibilitySupport[AccessibilitySupport[\"Disabled\"] = 1] = \"Disabled\";\n    AccessibilitySupport[AccessibilitySupport[\"Enabled\"] = 2] = \"Enabled\";\n})(AccessibilitySupport || (AccessibilitySupport = {}));\nvar CodeActionTriggerType;\n(function (CodeActionTriggerType) {\n    CodeActionTriggerType[CodeActionTriggerType[\"Invoke\"] = 1] = \"Invoke\";\n    CodeActionTriggerType[CodeActionTriggerType[\"Auto\"] = 2] = \"Auto\";\n})(CodeActionTriggerType || (CodeActionTriggerType = {}));\nvar CompletionItemInsertTextRule;\n(function (CompletionItemInsertTextRule) {\n    CompletionItemInsertTextRule[CompletionItemInsertTextRule[\"None\"] = 0] = \"None\";\n    /**\n     * Adjust whitespace/indentation of multiline insert texts to\n     * match the current line indentation.\n     */\n    CompletionItemInsertTextRule[CompletionItemInsertTextRule[\"KeepWhitespace\"] = 1] = \"KeepWhitespace\";\n    /**\n     * `insertText` is a snippet.\n     */\n    CompletionItemInsertTextRule[CompletionItemInsertTextRule[\"InsertAsSnippet\"] = 4] = \"InsertAsSnippet\";\n})(CompletionItemInsertTextRule || (CompletionItemInsertTextRule = {}));\nvar CompletionItemKind;\n(function (CompletionItemKind) {\n    CompletionItemKind[CompletionItemKind[\"Method\"] = 0] = \"Method\";\n    CompletionItemKind[CompletionItemKind[\"Function\"] = 1] = \"Function\";\n    CompletionItemKind[CompletionItemKind[\"Constructor\"] = 2] = \"Constructor\";\n    CompletionItemKind[CompletionItemKind[\"Field\"] = 3] = \"Field\";\n    CompletionItemKind[CompletionItemKind[\"Variable\"] = 4] = \"Variable\";\n    CompletionItemKind[CompletionItemKind[\"Class\"] = 5] = \"Class\";\n    CompletionItemKind[CompletionItemKind[\"Struct\"] = 6] = \"Struct\";\n    CompletionItemKind[CompletionItemKind[\"Interface\"] = 7] = \"Interface\";\n    CompletionItemKind[CompletionItemKind[\"Module\"] = 8] = \"Module\";\n    CompletionItemKind[CompletionItemKind[\"Property\"] = 9] = \"Property\";\n    CompletionItemKind[CompletionItemKind[\"Event\"] = 10] = \"Event\";\n    CompletionItemKind[CompletionItemKind[\"Operator\"] = 11] = \"Operator\";\n    CompletionItemKind[CompletionItemKind[\"Unit\"] = 12] = \"Unit\";\n    CompletionItemKind[CompletionItemKind[\"Value\"] = 13] = \"Value\";\n    CompletionItemKind[CompletionItemKind[\"Constant\"] = 14] = \"Constant\";\n    CompletionItemKind[CompletionItemKind[\"Enum\"] = 15] = \"Enum\";\n    CompletionItemKind[CompletionItemKind[\"EnumMember\"] = 16] = \"EnumMember\";\n    CompletionItemKind[CompletionItemKind[\"Keyword\"] = 17] = \"Keyword\";\n    CompletionItemKind[CompletionItemKind[\"Text\"] = 18] = \"Text\";\n    CompletionItemKind[CompletionItemKind[\"Color\"] = 19] = \"Color\";\n    CompletionItemKind[CompletionItemKind[\"File\"] = 20] = \"File\";\n    CompletionItemKind[CompletionItemKind[\"Reference\"] = 21] = \"Reference\";\n    CompletionItemKind[CompletionItemKind[\"Customcolor\"] = 22] = \"Customcolor\";\n    CompletionItemKind[CompletionItemKind[\"Folder\"] = 23] = \"Folder\";\n    CompletionItemKind[CompletionItemKind[\"TypeParameter\"] = 24] = \"TypeParameter\";\n    CompletionItemKind[CompletionItemKind[\"User\"] = 25] = \"User\";\n    CompletionItemKind[CompletionItemKind[\"Issue\"] = 26] = \"Issue\";\n    CompletionItemKind[CompletionItemKind[\"Snippet\"] = 27] = \"Snippet\";\n})(CompletionItemKind || (CompletionItemKind = {}));\nvar CompletionItemTag;\n(function (CompletionItemTag) {\n    CompletionItemTag[CompletionItemTag[\"Deprecated\"] = 1] = \"Deprecated\";\n})(CompletionItemTag || (CompletionItemTag = {}));\n/**\n * How a suggest provider was triggered.\n */\nvar CompletionTriggerKind;\n(function (CompletionTriggerKind) {\n    CompletionTriggerKind[CompletionTriggerKind[\"Invoke\"] = 0] = \"Invoke\";\n    CompletionTriggerKind[CompletionTriggerKind[\"TriggerCharacter\"] = 1] = \"TriggerCharacter\";\n    CompletionTriggerKind[CompletionTriggerKind[\"TriggerForIncompleteCompletions\"] = 2] = \"TriggerForIncompleteCompletions\";\n})(CompletionTriggerKind || (CompletionTriggerKind = {}));\n/**\n * A positioning preference for rendering content widgets.\n */\nvar ContentWidgetPositionPreference;\n(function (ContentWidgetPositionPreference) {\n    /**\n     * Place the content widget exactly at a position\n     */\n    ContentWidgetPositionPreference[ContentWidgetPositionPreference[\"EXACT\"] = 0] = \"EXACT\";\n    /**\n     * Place the content widget above a position\n     */\n    ContentWidgetPositionPreference[ContentWidgetPositionPreference[\"ABOVE\"] = 1] = \"ABOVE\";\n    /**\n     * Place the content widget below a position\n     */\n    ContentWidgetPositionPreference[ContentWidgetPositionPreference[\"BELOW\"] = 2] = \"BELOW\";\n})(ContentWidgetPositionPreference || (ContentWidgetPositionPreference = {}));\n/**\n * Describes the reason the cursor has changed its position.\n */\nvar CursorChangeReason;\n(function (CursorChangeReason) {\n    /**\n     * Unknown or not set.\n     */\n    CursorChangeReason[CursorChangeReason[\"NotSet\"] = 0] = \"NotSet\";\n    /**\n     * A `model.setValue()` was called.\n     */\n    CursorChangeReason[CursorChangeReason[\"ContentFlush\"] = 1] = \"ContentFlush\";\n    /**\n     * The `model` has been changed outside of this cursor and the cursor recovers its position from associated markers.\n     */\n    CursorChangeReason[CursorChangeReason[\"RecoverFromMarkers\"] = 2] = \"RecoverFromMarkers\";\n    /**\n     * There was an explicit user gesture.\n     */\n    CursorChangeReason[CursorChangeReason[\"Explicit\"] = 3] = \"Explicit\";\n    /**\n     * There was a Paste.\n     */\n    CursorChangeReason[CursorChangeReason[\"Paste\"] = 4] = \"Paste\";\n    /**\n     * There was an Undo.\n     */\n    CursorChangeReason[CursorChangeReason[\"Undo\"] = 5] = \"Undo\";\n    /**\n     * There was a Redo.\n     */\n    CursorChangeReason[CursorChangeReason[\"Redo\"] = 6] = \"Redo\";\n})(CursorChangeReason || (CursorChangeReason = {}));\n/**\n * The default end of line to use when instantiating models.\n */\nvar DefaultEndOfLine;\n(function (DefaultEndOfLine) {\n    /**\n     * Use line feed (\\n) as the end of line character.\n     */\n    DefaultEndOfLine[DefaultEndOfLine[\"LF\"] = 1] = \"LF\";\n    /**\n     * Use carriage return and line feed (\\r\\n) as the end of line character.\n     */\n    DefaultEndOfLine[DefaultEndOfLine[\"CRLF\"] = 2] = \"CRLF\";\n})(DefaultEndOfLine || (DefaultEndOfLine = {}));\n/**\n * A document highlight kind.\n */\nvar DocumentHighlightKind;\n(function (DocumentHighlightKind) {\n    /**\n     * A textual occurrence.\n     */\n    DocumentHighlightKind[DocumentHighlightKind[\"Text\"] = 0] = \"Text\";\n    /**\n     * Read-access of a symbol, like reading a variable.\n     */\n    DocumentHighlightKind[DocumentHighlightKind[\"Read\"] = 1] = \"Read\";\n    /**\n     * Write-access of a symbol, like writing to a variable.\n     */\n    DocumentHighlightKind[DocumentHighlightKind[\"Write\"] = 2] = \"Write\";\n})(DocumentHighlightKind || (DocumentHighlightKind = {}));\n/**\n * Configuration options for auto indentation in the editor\n */\nvar EditorAutoIndentStrategy;\n(function (EditorAutoIndentStrategy) {\n    EditorAutoIndentStrategy[EditorAutoIndentStrategy[\"None\"] = 0] = \"None\";\n    EditorAutoIndentStrategy[EditorAutoIndentStrategy[\"Keep\"] = 1] = \"Keep\";\n    EditorAutoIndentStrategy[EditorAutoIndentStrategy[\"Brackets\"] = 2] = \"Brackets\";\n    EditorAutoIndentStrategy[EditorAutoIndentStrategy[\"Advanced\"] = 3] = \"Advanced\";\n    EditorAutoIndentStrategy[EditorAutoIndentStrategy[\"Full\"] = 4] = \"Full\";\n})(EditorAutoIndentStrategy || (EditorAutoIndentStrategy = {}));\nvar EditorOption;\n(function (EditorOption) {\n    EditorOption[EditorOption[\"acceptSuggestionOnCommitCharacter\"] = 0] = \"acceptSuggestionOnCommitCharacter\";\n    EditorOption[EditorOption[\"acceptSuggestionOnEnter\"] = 1] = \"acceptSuggestionOnEnter\";\n    EditorOption[EditorOption[\"accessibilitySupport\"] = 2] = \"accessibilitySupport\";\n    EditorOption[EditorOption[\"accessibilityPageSize\"] = 3] = \"accessibilityPageSize\";\n    EditorOption[EditorOption[\"ariaLabel\"] = 4] = \"ariaLabel\";\n    EditorOption[EditorOption[\"ariaRequired\"] = 5] = \"ariaRequired\";\n    EditorOption[EditorOption[\"autoClosingBrackets\"] = 6] = \"autoClosingBrackets\";\n    EditorOption[EditorOption[\"autoClosingComments\"] = 7] = \"autoClosingComments\";\n    EditorOption[EditorOption[\"screenReaderAnnounceInlineSuggestion\"] = 8] = \"screenReaderAnnounceInlineSuggestion\";\n    EditorOption[EditorOption[\"autoClosingDelete\"] = 9] = \"autoClosingDelete\";\n    EditorOption[EditorOption[\"autoClosingOvertype\"] = 10] = \"autoClosingOvertype\";\n    EditorOption[EditorOption[\"autoClosingQuotes\"] = 11] = \"autoClosingQuotes\";\n    EditorOption[EditorOption[\"autoIndent\"] = 12] = \"autoIndent\";\n    EditorOption[EditorOption[\"automaticLayout\"] = 13] = \"automaticLayout\";\n    EditorOption[EditorOption[\"autoSurround\"] = 14] = \"autoSurround\";\n    EditorOption[EditorOption[\"bracketPairColorization\"] = 15] = \"bracketPairColorization\";\n    EditorOption[EditorOption[\"guides\"] = 16] = \"guides\";\n    EditorOption[EditorOption[\"codeLens\"] = 17] = \"codeLens\";\n    EditorOption[EditorOption[\"codeLensFontFamily\"] = 18] = \"codeLensFontFamily\";\n    EditorOption[EditorOption[\"codeLensFontSize\"] = 19] = \"codeLensFontSize\";\n    EditorOption[EditorOption[\"colorDecorators\"] = 20] = \"colorDecorators\";\n    EditorOption[EditorOption[\"colorDecoratorsLimit\"] = 21] = \"colorDecoratorsLimit\";\n    EditorOption[EditorOption[\"columnSelection\"] = 22] = \"columnSelection\";\n    EditorOption[EditorOption[\"comments\"] = 23] = \"comments\";\n    EditorOption[EditorOption[\"contextmenu\"] = 24] = \"contextmenu\";\n    EditorOption[EditorOption[\"copyWithSyntaxHighlighting\"] = 25] = \"copyWithSyntaxHighlighting\";\n    EditorOption[EditorOption[\"cursorBlinking\"] = 26] = \"cursorBlinking\";\n    EditorOption[EditorOption[\"cursorSmoothCaretAnimation\"] = 27] = \"cursorSmoothCaretAnimation\";\n    EditorOption[EditorOption[\"cursorStyle\"] = 28] = \"cursorStyle\";\n    EditorOption[EditorOption[\"cursorSurroundingLines\"] = 29] = \"cursorSurroundingLines\";\n    EditorOption[EditorOption[\"cursorSurroundingLinesStyle\"] = 30] = \"cursorSurroundingLinesStyle\";\n    EditorOption[EditorOption[\"cursorWidth\"] = 31] = \"cursorWidth\";\n    EditorOption[EditorOption[\"disableLayerHinting\"] = 32] = \"disableLayerHinting\";\n    EditorOption[EditorOption[\"disableMonospaceOptimizations\"] = 33] = \"disableMonospaceOptimizations\";\n    EditorOption[EditorOption[\"domReadOnly\"] = 34] = \"domReadOnly\";\n    EditorOption[EditorOption[\"dragAndDrop\"] = 35] = \"dragAndDrop\";\n    EditorOption[EditorOption[\"dropIntoEditor\"] = 36] = \"dropIntoEditor\";\n    EditorOption[EditorOption[\"emptySelectionClipboard\"] = 37] = \"emptySelectionClipboard\";\n    EditorOption[EditorOption[\"experimentalWhitespaceRendering\"] = 38] = \"experimentalWhitespaceRendering\";\n    EditorOption[EditorOption[\"extraEditorClassName\"] = 39] = \"extraEditorClassName\";\n    EditorOption[EditorOption[\"fastScrollSensitivity\"] = 40] = \"fastScrollSensitivity\";\n    EditorOption[EditorOption[\"find\"] = 41] = \"find\";\n    EditorOption[EditorOption[\"fixedOverflowWidgets\"] = 42] = \"fixedOverflowWidgets\";\n    EditorOption[EditorOption[\"folding\"] = 43] = \"folding\";\n    EditorOption[EditorOption[\"foldingStrategy\"] = 44] = \"foldingStrategy\";\n    EditorOption[EditorOption[\"foldingHighlight\"] = 45] = \"foldingHighlight\";\n    EditorOption[EditorOption[\"foldingImportsByDefault\"] = 46] = \"foldingImportsByDefault\";\n    EditorOption[EditorOption[\"foldingMaximumRegions\"] = 47] = \"foldingMaximumRegions\";\n    EditorOption[EditorOption[\"unfoldOnClickAfterEndOfLine\"] = 48] = \"unfoldOnClickAfterEndOfLine\";\n    EditorOption[EditorOption[\"fontFamily\"] = 49] = \"fontFamily\";\n    EditorOption[EditorOption[\"fontInfo\"] = 50] = \"fontInfo\";\n    EditorOption[EditorOption[\"fontLigatures\"] = 51] = \"fontLigatures\";\n    EditorOption[EditorOption[\"fontSize\"] = 52] = \"fontSize\";\n    EditorOption[EditorOption[\"fontWeight\"] = 53] = \"fontWeight\";\n    EditorOption[EditorOption[\"fontVariations\"] = 54] = \"fontVariations\";\n    EditorOption[EditorOption[\"formatOnPaste\"] = 55] = \"formatOnPaste\";\n    EditorOption[EditorOption[\"formatOnType\"] = 56] = \"formatOnType\";\n    EditorOption[EditorOption[\"glyphMargin\"] = 57] = \"glyphMargin\";\n    EditorOption[EditorOption[\"gotoLocation\"] = 58] = \"gotoLocation\";\n    EditorOption[EditorOption[\"hideCursorInOverviewRuler\"] = 59] = \"hideCursorInOverviewRuler\";\n    EditorOption[EditorOption[\"hover\"] = 60] = \"hover\";\n    EditorOption[EditorOption[\"inDiffEditor\"] = 61] = \"inDiffEditor\";\n    EditorOption[EditorOption[\"inlineSuggest\"] = 62] = \"inlineSuggest\";\n    EditorOption[EditorOption[\"letterSpacing\"] = 63] = \"letterSpacing\";\n    EditorOption[EditorOption[\"lightbulb\"] = 64] = \"lightbulb\";\n    EditorOption[EditorOption[\"lineDecorationsWidth\"] = 65] = \"lineDecorationsWidth\";\n    EditorOption[EditorOption[\"lineHeight\"] = 66] = \"lineHeight\";\n    EditorOption[EditorOption[\"lineNumbers\"] = 67] = \"lineNumbers\";\n    EditorOption[EditorOption[\"lineNumbersMinChars\"] = 68] = \"lineNumbersMinChars\";\n    EditorOption[EditorOption[\"linkedEditing\"] = 69] = \"linkedEditing\";\n    EditorOption[EditorOption[\"links\"] = 70] = \"links\";\n    EditorOption[EditorOption[\"matchBrackets\"] = 71] = \"matchBrackets\";\n    EditorOption[EditorOption[\"minimap\"] = 72] = \"minimap\";\n    EditorOption[EditorOption[\"mouseStyle\"] = 73] = \"mouseStyle\";\n    EditorOption[EditorOption[\"mouseWheelScrollSensitivity\"] = 74] = \"mouseWheelScrollSensitivity\";\n    EditorOption[EditorOption[\"mouseWheelZoom\"] = 75] = \"mouseWheelZoom\";\n    EditorOption[EditorOption[\"multiCursorMergeOverlapping\"] = 76] = \"multiCursorMergeOverlapping\";\n    EditorOption[EditorOption[\"multiCursorModifier\"] = 77] = \"multiCursorModifier\";\n    EditorOption[EditorOption[\"multiCursorPaste\"] = 78] = \"multiCursorPaste\";\n    EditorOption[EditorOption[\"multiCursorLimit\"] = 79] = \"multiCursorLimit\";\n    EditorOption[EditorOption[\"occurrencesHighlight\"] = 80] = \"occurrencesHighlight\";\n    EditorOption[EditorOption[\"overviewRulerBorder\"] = 81] = \"overviewRulerBorder\";\n    EditorOption[EditorOption[\"overviewRulerLanes\"] = 82] = \"overviewRulerLanes\";\n    EditorOption[EditorOption[\"padding\"] = 83] = \"padding\";\n    EditorOption[EditorOption[\"pasteAs\"] = 84] = \"pasteAs\";\n    EditorOption[EditorOption[\"parameterHints\"] = 85] = \"parameterHints\";\n    EditorOption[EditorOption[\"peekWidgetDefaultFocus\"] = 86] = \"peekWidgetDefaultFocus\";\n    EditorOption[EditorOption[\"definitionLinkOpensInPeek\"] = 87] = \"definitionLinkOpensInPeek\";\n    EditorOption[EditorOption[\"quickSuggestions\"] = 88] = \"quickSuggestions\";\n    EditorOption[EditorOption[\"quickSuggestionsDelay\"] = 89] = \"quickSuggestionsDelay\";\n    EditorOption[EditorOption[\"readOnly\"] = 90] = \"readOnly\";\n    EditorOption[EditorOption[\"readOnlyMessage\"] = 91] = \"readOnlyMessage\";\n    EditorOption[EditorOption[\"renameOnType\"] = 92] = \"renameOnType\";\n    EditorOption[EditorOption[\"renderControlCharacters\"] = 93] = \"renderControlCharacters\";\n    EditorOption[EditorOption[\"renderFinalNewline\"] = 94] = \"renderFinalNewline\";\n    EditorOption[EditorOption[\"renderLineHighlight\"] = 95] = \"renderLineHighlight\";\n    EditorOption[EditorOption[\"renderLineHighlightOnlyWhenFocus\"] = 96] = \"renderLineHighlightOnlyWhenFocus\";\n    EditorOption[EditorOption[\"renderValidationDecorations\"] = 97] = \"renderValidationDecorations\";\n    EditorOption[EditorOption[\"renderWhitespace\"] = 98] = \"renderWhitespace\";\n    EditorOption[EditorOption[\"revealHorizontalRightPadding\"] = 99] = \"revealHorizontalRightPadding\";\n    EditorOption[EditorOption[\"roundedSelection\"] = 100] = \"roundedSelection\";\n    EditorOption[EditorOption[\"rulers\"] = 101] = \"rulers\";\n    EditorOption[EditorOption[\"scrollbar\"] = 102] = \"scrollbar\";\n    EditorOption[EditorOption[\"scrollBeyondLastColumn\"] = 103] = \"scrollBeyondLastColumn\";\n    EditorOption[EditorOption[\"scrollBeyondLastLine\"] = 104] = \"scrollBeyondLastLine\";\n    EditorOption[EditorOption[\"scrollPredominantAxis\"] = 105] = \"scrollPredominantAxis\";\n    EditorOption[EditorOption[\"selectionClipboard\"] = 106] = \"selectionClipboard\";\n    EditorOption[EditorOption[\"selectionHighlight\"] = 107] = \"selectionHighlight\";\n    EditorOption[EditorOption[\"selectOnLineNumbers\"] = 108] = \"selectOnLineNumbers\";\n    EditorOption[EditorOption[\"showFoldingControls\"] = 109] = \"showFoldingControls\";\n    EditorOption[EditorOption[\"showUnused\"] = 110] = \"showUnused\";\n    EditorOption[EditorOption[\"snippetSuggestions\"] = 111] = \"snippetSuggestions\";\n    EditorOption[EditorOption[\"smartSelect\"] = 112] = \"smartSelect\";\n    EditorOption[EditorOption[\"smoothScrolling\"] = 113] = \"smoothScrolling\";\n    EditorOption[EditorOption[\"stickyScroll\"] = 114] = \"stickyScroll\";\n    EditorOption[EditorOption[\"stickyTabStops\"] = 115] = \"stickyTabStops\";\n    EditorOption[EditorOption[\"stopRenderingLineAfter\"] = 116] = \"stopRenderingLineAfter\";\n    EditorOption[EditorOption[\"suggest\"] = 117] = \"suggest\";\n    EditorOption[EditorOption[\"suggestFontSize\"] = 118] = \"suggestFontSize\";\n    EditorOption[EditorOption[\"suggestLineHeight\"] = 119] = \"suggestLineHeight\";\n    EditorOption[EditorOption[\"suggestOnTriggerCharacters\"] = 120] = \"suggestOnTriggerCharacters\";\n    EditorOption[EditorOption[\"suggestSelection\"] = 121] = \"suggestSelection\";\n    EditorOption[EditorOption[\"tabCompletion\"] = 122] = \"tabCompletion\";\n    EditorOption[EditorOption[\"tabIndex\"] = 123] = \"tabIndex\";\n    EditorOption[EditorOption[\"unicodeHighlighting\"] = 124] = \"unicodeHighlighting\";\n    EditorOption[EditorOption[\"unusualLineTerminators\"] = 125] = \"unusualLineTerminators\";\n    EditorOption[EditorOption[\"useShadowDOM\"] = 126] = \"useShadowDOM\";\n    EditorOption[EditorOption[\"useTabStops\"] = 127] = \"useTabStops\";\n    EditorOption[EditorOption[\"wordBreak\"] = 128] = \"wordBreak\";\n    EditorOption[EditorOption[\"wordSeparators\"] = 129] = \"wordSeparators\";\n    EditorOption[EditorOption[\"wordWrap\"] = 130] = \"wordWrap\";\n    EditorOption[EditorOption[\"wordWrapBreakAfterCharacters\"] = 131] = \"wordWrapBreakAfterCharacters\";\n    EditorOption[EditorOption[\"wordWrapBreakBeforeCharacters\"] = 132] = \"wordWrapBreakBeforeCharacters\";\n    EditorOption[EditorOption[\"wordWrapColumn\"] = 133] = \"wordWrapColumn\";\n    EditorOption[EditorOption[\"wordWrapOverride1\"] = 134] = \"wordWrapOverride1\";\n    EditorOption[EditorOption[\"wordWrapOverride2\"] = 135] = \"wordWrapOverride2\";\n    EditorOption[EditorOption[\"wrappingIndent\"] = 136] = \"wrappingIndent\";\n    EditorOption[EditorOption[\"wrappingStrategy\"] = 137] = \"wrappingStrategy\";\n    EditorOption[EditorOption[\"showDeprecated\"] = 138] = \"showDeprecated\";\n    EditorOption[EditorOption[\"inlayHints\"] = 139] = \"inlayHints\";\n    EditorOption[EditorOption[\"editorClassName\"] = 140] = \"editorClassName\";\n    EditorOption[EditorOption[\"pixelRatio\"] = 141] = \"pixelRatio\";\n    EditorOption[EditorOption[\"tabFocusMode\"] = 142] = \"tabFocusMode\";\n    EditorOption[EditorOption[\"layoutInfo\"] = 143] = \"layoutInfo\";\n    EditorOption[EditorOption[\"wrappingInfo\"] = 144] = \"wrappingInfo\";\n    EditorOption[EditorOption[\"defaultColorDecorators\"] = 145] = \"defaultColorDecorators\";\n    EditorOption[EditorOption[\"colorDecoratorsActivatedOn\"] = 146] = \"colorDecoratorsActivatedOn\";\n    EditorOption[EditorOption[\"inlineCompletionsAccessibilityVerbose\"] = 147] = \"inlineCompletionsAccessibilityVerbose\";\n})(EditorOption || (EditorOption = {}));\n/**\n * End of line character preference.\n */\nvar EndOfLinePreference;\n(function (EndOfLinePreference) {\n    /**\n     * Use the end of line character identified in the text buffer.\n     */\n    EndOfLinePreference[EndOfLinePreference[\"TextDefined\"] = 0] = \"TextDefined\";\n    /**\n     * Use line feed (\\n) as the end of line character.\n     */\n    EndOfLinePreference[EndOfLinePreference[\"LF\"] = 1] = \"LF\";\n    /**\n     * Use carriage return and line feed (\\r\\n) as the end of line character.\n     */\n    EndOfLinePreference[EndOfLinePreference[\"CRLF\"] = 2] = \"CRLF\";\n})(EndOfLinePreference || (EndOfLinePreference = {}));\n/**\n * End of line character preference.\n */\nvar EndOfLineSequence;\n(function (EndOfLineSequence) {\n    /**\n     * Use line feed (\\n) as the end of line character.\n     */\n    EndOfLineSequence[EndOfLineSequence[\"LF\"] = 0] = \"LF\";\n    /**\n     * Use carriage return and line feed (\\r\\n) as the end of line character.\n     */\n    EndOfLineSequence[EndOfLineSequence[\"CRLF\"] = 1] = \"CRLF\";\n})(EndOfLineSequence || (EndOfLineSequence = {}));\n/**\n * Vertical Lane in the glyph margin of the editor.\n */\nvar GlyphMarginLane;\n(function (GlyphMarginLane) {\n    GlyphMarginLane[GlyphMarginLane[\"Left\"] = 1] = \"Left\";\n    GlyphMarginLane[GlyphMarginLane[\"Right\"] = 2] = \"Right\";\n})(GlyphMarginLane || (GlyphMarginLane = {}));\n/**\n * Describes what to do with the indentation when pressing Enter.\n */\nvar IndentAction;\n(function (IndentAction) {\n    /**\n     * Insert new line and copy the previous line's indentation.\n     */\n    IndentAction[IndentAction[\"None\"] = 0] = \"None\";\n    /**\n     * Insert new line and indent once (relative to the previous line's indentation).\n     */\n    IndentAction[IndentAction[\"Indent\"] = 1] = \"Indent\";\n    /**\n     * Insert two new lines:\n     *  - the first one indented which will hold the cursor\n     *  - the second one at the same indentation level\n     */\n    IndentAction[IndentAction[\"IndentOutdent\"] = 2] = \"IndentOutdent\";\n    /**\n     * Insert new line and outdent once (relative to the previous line's indentation).\n     */\n    IndentAction[IndentAction[\"Outdent\"] = 3] = \"Outdent\";\n})(IndentAction || (IndentAction = {}));\nvar InjectedTextCursorStops;\n(function (InjectedTextCursorStops) {\n    InjectedTextCursorStops[InjectedTextCursorStops[\"Both\"] = 0] = \"Both\";\n    InjectedTextCursorStops[InjectedTextCursorStops[\"Right\"] = 1] = \"Right\";\n    InjectedTextCursorStops[InjectedTextCursorStops[\"Left\"] = 2] = \"Left\";\n    InjectedTextCursorStops[InjectedTextCursorStops[\"None\"] = 3] = \"None\";\n})(InjectedTextCursorStops || (InjectedTextCursorStops = {}));\nvar InlayHintKind;\n(function (InlayHintKind) {\n    InlayHintKind[InlayHintKind[\"Type\"] = 1] = \"Type\";\n    InlayHintKind[InlayHintKind[\"Parameter\"] = 2] = \"Parameter\";\n})(InlayHintKind || (InlayHintKind = {}));\n/**\n * How an {@link InlineCompletionsProvider inline completion provider} was triggered.\n */\nvar InlineCompletionTriggerKind;\n(function (InlineCompletionTriggerKind) {\n    /**\n     * Completion was triggered automatically while editing.\n     * It is sufficient to return a single completion item in this case.\n     */\n    InlineCompletionTriggerKind[InlineCompletionTriggerKind[\"Automatic\"] = 0] = \"Automatic\";\n    /**\n     * Completion was triggered explicitly by a user gesture.\n     * Return multiple completion items to enable cycling through them.\n     */\n    InlineCompletionTriggerKind[InlineCompletionTriggerKind[\"Explicit\"] = 1] = \"Explicit\";\n})(InlineCompletionTriggerKind || (InlineCompletionTriggerKind = {}));\n/**\n * Virtual Key Codes, the value does not hold any inherent meaning.\n * Inspired somewhat from https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx\n * But these are \"more general\", as they should work across browsers & OS`s.\n */\nvar KeyCode;\n(function (KeyCode) {\n    KeyCode[KeyCode[\"DependsOnKbLayout\"] = -1] = \"DependsOnKbLayout\";\n    /**\n     * Placed first to cover the 0 value of the enum.\n     */\n    KeyCode[KeyCode[\"Unknown\"] = 0] = \"Unknown\";\n    KeyCode[KeyCode[\"Backspace\"] = 1] = \"Backspace\";\n    KeyCode[KeyCode[\"Tab\"] = 2] = \"Tab\";\n    KeyCode[KeyCode[\"Enter\"] = 3] = \"Enter\";\n    KeyCode[KeyCode[\"Shift\"] = 4] = \"Shift\";\n    KeyCode[KeyCode[\"Ctrl\"] = 5] = \"Ctrl\";\n    KeyCode[KeyCode[\"Alt\"] = 6] = \"Alt\";\n    KeyCode[KeyCode[\"PauseBreak\"] = 7] = \"PauseBreak\";\n    KeyCode[KeyCode[\"CapsLock\"] = 8] = \"CapsLock\";\n    KeyCode[KeyCode[\"Escape\"] = 9] = \"Escape\";\n    KeyCode[KeyCode[\"Space\"] = 10] = \"Space\";\n    KeyCode[KeyCode[\"PageUp\"] = 11] = \"PageUp\";\n    KeyCode[KeyCode[\"PageDown\"] = 12] = \"PageDown\";\n    KeyCode[KeyCode[\"End\"] = 13] = \"End\";\n    KeyCode[KeyCode[\"Home\"] = 14] = \"Home\";\n    KeyCode[KeyCode[\"LeftArrow\"] = 15] = \"LeftArrow\";\n    KeyCode[KeyCode[\"UpArrow\"] = 16] = \"UpArrow\";\n    KeyCode[KeyCode[\"RightArrow\"] = 17] = \"RightArrow\";\n    KeyCode[KeyCode[\"DownArrow\"] = 18] = \"DownArrow\";\n    KeyCode[KeyCode[\"Insert\"] = 19] = \"Insert\";\n    KeyCode[KeyCode[\"Delete\"] = 20] = \"Delete\";\n    KeyCode[KeyCode[\"Digit0\"] = 21] = \"Digit0\";\n    KeyCode[KeyCode[\"Digit1\"] = 22] = \"Digit1\";\n    KeyCode[KeyCode[\"Digit2\"] = 23] = \"Digit2\";\n    KeyCode[KeyCode[\"Digit3\"] = 24] = \"Digit3\";\n    KeyCode[KeyCode[\"Digit4\"] = 25] = \"Digit4\";\n    KeyCode[KeyCode[\"Digit5\"] = 26] = \"Digit5\";\n    KeyCode[KeyCode[\"Digit6\"] = 27] = \"Digit6\";\n    KeyCode[KeyCode[\"Digit7\"] = 28] = \"Digit7\";\n    KeyCode[KeyCode[\"Digit8\"] = 29] = \"Digit8\";\n    KeyCode[KeyCode[\"Digit9\"] = 30] = \"Digit9\";\n    KeyCode[KeyCode[\"KeyA\"] = 31] = \"KeyA\";\n    KeyCode[KeyCode[\"KeyB\"] = 32] = \"KeyB\";\n    KeyCode[KeyCode[\"KeyC\"] = 33] = \"KeyC\";\n    KeyCode[KeyCode[\"KeyD\"] = 34] = \"KeyD\";\n    KeyCode[KeyCode[\"KeyE\"] = 35] = \"KeyE\";\n    KeyCode[KeyCode[\"KeyF\"] = 36] = \"KeyF\";\n    KeyCode[KeyCode[\"KeyG\"] = 37] = \"KeyG\";\n    KeyCode[KeyCode[\"KeyH\"] = 38] = \"KeyH\";\n    KeyCode[KeyCode[\"KeyI\"] = 39] = \"KeyI\";\n    KeyCode[KeyCode[\"KeyJ\"] = 40] = \"KeyJ\";\n    KeyCode[KeyCode[\"KeyK\"] = 41] = \"KeyK\";\n    KeyCode[KeyCode[\"KeyL\"] = 42] = \"KeyL\";\n    KeyCode[KeyCode[\"KeyM\"] = 43] = \"KeyM\";\n    KeyCode[KeyCode[\"KeyN\"] = 44] = \"KeyN\";\n    KeyCode[KeyCode[\"KeyO\"] = 45] = \"KeyO\";\n    KeyCode[KeyCode[\"KeyP\"] = 46] = \"KeyP\";\n    KeyCode[KeyCode[\"KeyQ\"] = 47] = \"KeyQ\";\n    KeyCode[KeyCode[\"KeyR\"] = 48] = \"KeyR\";\n    KeyCode[KeyCode[\"KeyS\"] = 49] = \"KeyS\";\n    KeyCode[KeyCode[\"KeyT\"] = 50] = \"KeyT\";\n    KeyCode[KeyCode[\"KeyU\"] = 51] = \"KeyU\";\n    KeyCode[KeyCode[\"KeyV\"] = 52] = \"KeyV\";\n    KeyCode[KeyCode[\"KeyW\"] = 53] = \"KeyW\";\n    KeyCode[KeyCode[\"KeyX\"] = 54] = \"KeyX\";\n    KeyCode[KeyCode[\"KeyY\"] = 55] = \"KeyY\";\n    KeyCode[KeyCode[\"KeyZ\"] = 56] = \"KeyZ\";\n    KeyCode[KeyCode[\"Meta\"] = 57] = \"Meta\";\n    KeyCode[KeyCode[\"ContextMenu\"] = 58] = \"ContextMenu\";\n    KeyCode[KeyCode[\"F1\"] = 59] = \"F1\";\n    KeyCode[KeyCode[\"F2\"] = 60] = \"F2\";\n    KeyCode[KeyCode[\"F3\"] = 61] = \"F3\";\n    KeyCode[KeyCode[\"F4\"] = 62] = \"F4\";\n    KeyCode[KeyCode[\"F5\"] = 63] = \"F5\";\n    KeyCode[KeyCode[\"F6\"] = 64] = \"F6\";\n    KeyCode[KeyCode[\"F7\"] = 65] = \"F7\";\n    KeyCode[KeyCode[\"F8\"] = 66] = \"F8\";\n    KeyCode[KeyCode[\"F9\"] = 67] = \"F9\";\n    KeyCode[KeyCode[\"F10\"] = 68] = \"F10\";\n    KeyCode[KeyCode[\"F11\"] = 69] = \"F11\";\n    KeyCode[KeyCode[\"F12\"] = 70] = \"F12\";\n    KeyCode[KeyCode[\"F13\"] = 71] = \"F13\";\n    KeyCode[KeyCode[\"F14\"] = 72] = \"F14\";\n    KeyCode[KeyCode[\"F15\"] = 73] = \"F15\";\n    KeyCode[KeyCode[\"F16\"] = 74] = \"F16\";\n    KeyCode[KeyCode[\"F17\"] = 75] = \"F17\";\n    KeyCode[KeyCode[\"F18\"] = 76] = \"F18\";\n    KeyCode[KeyCode[\"F19\"] = 77] = \"F19\";\n    KeyCode[KeyCode[\"F20\"] = 78] = \"F20\";\n    KeyCode[KeyCode[\"F21\"] = 79] = \"F21\";\n    KeyCode[KeyCode[\"F22\"] = 80] = \"F22\";\n    KeyCode[KeyCode[\"F23\"] = 81] = \"F23\";\n    KeyCode[KeyCode[\"F24\"] = 82] = \"F24\";\n    KeyCode[KeyCode[\"NumLock\"] = 83] = \"NumLock\";\n    KeyCode[KeyCode[\"ScrollLock\"] = 84] = \"ScrollLock\";\n    /**\n     * Used for miscellaneous characters; it can vary by keyboard.\n     * For the US standard keyboard, the ';:' key\n     */\n    KeyCode[KeyCode[\"Semicolon\"] = 85] = \"Semicolon\";\n    /**\n     * For any country/region, the '+' key\n     * For the US standard keyboard, the '=+' key\n     */\n    KeyCode[KeyCode[\"Equal\"] = 86] = \"Equal\";\n    /**\n     * For any country/region, the ',' key\n     * For the US standard keyboard, the ',<' key\n     */\n    KeyCode[KeyCode[\"Comma\"] = 87] = \"Comma\";\n    /**\n     * For any country/region, the '-' key\n     * For the US standard keyboard, the '-_' key\n     */\n    KeyCode[KeyCode[\"Minus\"] = 88] = \"Minus\";\n    /**\n     * For any country/region, the '.' key\n     * For the US standard keyboard, the '.>' key\n     */\n    KeyCode[KeyCode[\"Period\"] = 89] = \"Period\";\n    /**\n     * Used for miscellaneous characters; it can vary by keyboard.\n     * For the US standard keyboard, the '/?' key\n     */\n    KeyCode[KeyCode[\"Slash\"] = 90] = \"Slash\";\n    /**\n     * Used for miscellaneous characters; it can vary by keyboard.\n     * For the US standard keyboard, the '`~' key\n     */\n    KeyCode[KeyCode[\"Backquote\"] = 91] = \"Backquote\";\n    /**\n     * Used for miscellaneous characters; it can vary by keyboard.\n     * For the US standard keyboard, the '[{' key\n     */\n    KeyCode[KeyCode[\"BracketLeft\"] = 92] = \"BracketLeft\";\n    /**\n     * Used for miscellaneous characters; it can vary by keyboard.\n     * For the US standard keyboard, the '\\|' key\n     */\n    KeyCode[KeyCode[\"Backslash\"] = 93] = \"Backslash\";\n    /**\n     * Used for miscellaneous characters; it can vary by keyboard.\n     * For the US standard keyboard, the ']}' key\n     */\n    KeyCode[KeyCode[\"BracketRight\"] = 94] = \"BracketRight\";\n    /**\n     * Used for miscellaneous characters; it can vary by keyboard.\n     * For the US standard keyboard, the ''\"' key\n     */\n    KeyCode[KeyCode[\"Quote\"] = 95] = \"Quote\";\n    /**\n     * Used for miscellaneous characters; it can vary by keyboard.\n     */\n    KeyCode[KeyCode[\"OEM_8\"] = 96] = \"OEM_8\";\n    /**\n     * Either the angle bracket key or the backslash key on the RT 102-key keyboard.\n     */\n    KeyCode[KeyCode[\"IntlBackslash\"] = 97] = \"IntlBackslash\";\n    KeyCode[KeyCode[\"Numpad0\"] = 98] = \"Numpad0\";\n    KeyCode[KeyCode[\"Numpad1\"] = 99] = \"Numpad1\";\n    KeyCode[KeyCode[\"Numpad2\"] = 100] = \"Numpad2\";\n    KeyCode[KeyCode[\"Numpad3\"] = 101] = \"Numpad3\";\n    KeyCode[KeyCode[\"Numpad4\"] = 102] = \"Numpad4\";\n    KeyCode[KeyCode[\"Numpad5\"] = 103] = \"Numpad5\";\n    KeyCode[KeyCode[\"Numpad6\"] = 104] = \"Numpad6\";\n    KeyCode[KeyCode[\"Numpad7\"] = 105] = \"Numpad7\";\n    KeyCode[KeyCode[\"Numpad8\"] = 106] = \"Numpad8\";\n    KeyCode[KeyCode[\"Numpad9\"] = 107] = \"Numpad9\";\n    KeyCode[KeyCode[\"NumpadMultiply\"] = 108] = \"NumpadMultiply\";\n    KeyCode[KeyCode[\"NumpadAdd\"] = 109] = \"NumpadAdd\";\n    KeyCode[KeyCode[\"NUMPAD_SEPARATOR\"] = 110] = \"NUMPAD_SEPARATOR\";\n    KeyCode[KeyCode[\"NumpadSubtract\"] = 111] = \"NumpadSubtract\";\n    KeyCode[KeyCode[\"NumpadDecimal\"] = 112] = \"NumpadDecimal\";\n    KeyCode[KeyCode[\"NumpadDivide\"] = 113] = \"NumpadDivide\";\n    /**\n     * Cover all key codes when IME is processing input.\n     */\n    KeyCode[KeyCode[\"KEY_IN_COMPOSITION\"] = 114] = \"KEY_IN_COMPOSITION\";\n    KeyCode[KeyCode[\"ABNT_C1\"] = 115] = \"ABNT_C1\";\n    KeyCode[KeyCode[\"ABNT_C2\"] = 116] = \"ABNT_C2\";\n    KeyCode[KeyCode[\"AudioVolumeMute\"] = 117] = \"AudioVolumeMute\";\n    KeyCode[KeyCode[\"AudioVolumeUp\"] = 118] = \"AudioVolumeUp\";\n    KeyCode[KeyCode[\"AudioVolumeDown\"] = 119] = \"AudioVolumeDown\";\n    KeyCode[KeyCode[\"BrowserSearch\"] = 120] = \"BrowserSearch\";\n    KeyCode[KeyCode[\"BrowserHome\"] = 121] = \"BrowserHome\";\n    KeyCode[KeyCode[\"BrowserBack\"] = 122] = \"BrowserBack\";\n    KeyCode[KeyCode[\"BrowserForward\"] = 123] = \"BrowserForward\";\n    KeyCode[KeyCode[\"MediaTrackNext\"] = 124] = \"MediaTrackNext\";\n    KeyCode[KeyCode[\"MediaTrackPrevious\"] = 125] = \"MediaTrackPrevious\";\n    KeyCode[KeyCode[\"MediaStop\"] = 126] = \"MediaStop\";\n    KeyCode[KeyCode[\"MediaPlayPause\"] = 127] = \"MediaPlayPause\";\n    KeyCode[KeyCode[\"LaunchMediaPlayer\"] = 128] = \"LaunchMediaPlayer\";\n    KeyCode[KeyCode[\"LaunchMail\"] = 129] = \"LaunchMail\";\n    KeyCode[KeyCode[\"LaunchApp2\"] = 130] = \"LaunchApp2\";\n    /**\n     * VK_CLEAR, 0x0C, CLEAR key\n     */\n    KeyCode[KeyCode[\"Clear\"] = 131] = \"Clear\";\n    /**\n     * Placed last to cover the length of the enum.\n     * Please do not depend on this value!\n     */\n    KeyCode[KeyCode[\"MAX_VALUE\"] = 132] = \"MAX_VALUE\";\n})(KeyCode || (KeyCode = {}));\nvar MarkerSeverity;\n(function (MarkerSeverity) {\n    MarkerSeverity[MarkerSeverity[\"Hint\"] = 1] = \"Hint\";\n    MarkerSeverity[MarkerSeverity[\"Info\"] = 2] = \"Info\";\n    MarkerSeverity[MarkerSeverity[\"Warning\"] = 4] = \"Warning\";\n    MarkerSeverity[MarkerSeverity[\"Error\"] = 8] = \"Error\";\n})(MarkerSeverity || (MarkerSeverity = {}));\nvar MarkerTag;\n(function (MarkerTag) {\n    MarkerTag[MarkerTag[\"Unnecessary\"] = 1] = \"Unnecessary\";\n    MarkerTag[MarkerTag[\"Deprecated\"] = 2] = \"Deprecated\";\n})(MarkerTag || (MarkerTag = {}));\n/**\n * Position in the minimap to render the decoration.\n */\nvar MinimapPosition;\n(function (MinimapPosition) {\n    MinimapPosition[MinimapPosition[\"Inline\"] = 1] = \"Inline\";\n    MinimapPosition[MinimapPosition[\"Gutter\"] = 2] = \"Gutter\";\n})(MinimapPosition || (MinimapPosition = {}));\n/**\n * Type of hit element with the mouse in the editor.\n */\nvar MouseTargetType;\n(function (MouseTargetType) {\n    /**\n     * Mouse is on top of an unknown element.\n     */\n    MouseTargetType[MouseTargetType[\"UNKNOWN\"] = 0] = \"UNKNOWN\";\n    /**\n     * Mouse is on top of the textarea used for input.\n     */\n    MouseTargetType[MouseTargetType[\"TEXTAREA\"] = 1] = \"TEXTAREA\";\n    /**\n     * Mouse is on top of the glyph margin\n     */\n    MouseTargetType[MouseTargetType[\"GUTTER_GLYPH_MARGIN\"] = 2] = \"GUTTER_GLYPH_MARGIN\";\n    /**\n     * Mouse is on top of the line numbers\n     */\n    MouseTargetType[MouseTargetType[\"GUTTER_LINE_NUMBERS\"] = 3] = \"GUTTER_LINE_NUMBERS\";\n    /**\n     * Mouse is on top of the line decorations\n     */\n    MouseTargetType[MouseTargetType[\"GUTTER_LINE_DECORATIONS\"] = 4] = \"GUTTER_LINE_DECORATIONS\";\n    /**\n     * Mouse is on top of the whitespace left in the gutter by a view zone.\n     */\n    MouseTargetType[MouseTargetType[\"GUTTER_VIEW_ZONE\"] = 5] = \"GUTTER_VIEW_ZONE\";\n    /**\n     * Mouse is on top of text in the content.\n     */\n    MouseTargetType[MouseTargetType[\"CONTENT_TEXT\"] = 6] = \"CONTENT_TEXT\";\n    /**\n     * Mouse is on top of empty space in the content (e.g. after line text or below last line)\n     */\n    MouseTargetType[MouseTargetType[\"CONTENT_EMPTY\"] = 7] = \"CONTENT_EMPTY\";\n    /**\n     * Mouse is on top of a view zone in the content.\n     */\n    MouseTargetType[MouseTargetType[\"CONTENT_VIEW_ZONE\"] = 8] = \"CONTENT_VIEW_ZONE\";\n    /**\n     * Mouse is on top of a content widget.\n     */\n    MouseTargetType[MouseTargetType[\"CONTENT_WIDGET\"] = 9] = \"CONTENT_WIDGET\";\n    /**\n     * Mouse is on top of the decorations overview ruler.\n     */\n    MouseTargetType[MouseTargetType[\"OVERVIEW_RULER\"] = 10] = \"OVERVIEW_RULER\";\n    /**\n     * Mouse is on top of a scrollbar.\n     */\n    MouseTargetType[MouseTargetType[\"SCROLLBAR\"] = 11] = \"SCROLLBAR\";\n    /**\n     * Mouse is on top of an overlay widget.\n     */\n    MouseTargetType[MouseTargetType[\"OVERLAY_WIDGET\"] = 12] = \"OVERLAY_WIDGET\";\n    /**\n     * Mouse is outside of the editor.\n     */\n    MouseTargetType[MouseTargetType[\"OUTSIDE_EDITOR\"] = 13] = \"OUTSIDE_EDITOR\";\n})(MouseTargetType || (MouseTargetType = {}));\n/**\n * A positioning preference for rendering overlay widgets.\n */\nvar OverlayWidgetPositionPreference;\n(function (OverlayWidgetPositionPreference) {\n    /**\n     * Position the overlay widget in the top right corner\n     */\n    OverlayWidgetPositionPreference[OverlayWidgetPositionPreference[\"TOP_RIGHT_CORNER\"] = 0] = \"TOP_RIGHT_CORNER\";\n    /**\n     * Position the overlay widget in the bottom right corner\n     */\n    OverlayWidgetPositionPreference[OverlayWidgetPositionPreference[\"BOTTOM_RIGHT_CORNER\"] = 1] = \"BOTTOM_RIGHT_CORNER\";\n    /**\n     * Position the overlay widget in the top center\n     */\n    OverlayWidgetPositionPreference[OverlayWidgetPositionPreference[\"TOP_CENTER\"] = 2] = \"TOP_CENTER\";\n})(OverlayWidgetPositionPreference || (OverlayWidgetPositionPreference = {}));\n/**\n * Vertical Lane in the overview ruler of the editor.\n */\nvar OverviewRulerLane;\n(function (OverviewRulerLane) {\n    OverviewRulerLane[OverviewRulerLane[\"Left\"] = 1] = \"Left\";\n    OverviewRulerLane[OverviewRulerLane[\"Center\"] = 2] = \"Center\";\n    OverviewRulerLane[OverviewRulerLane[\"Right\"] = 4] = \"Right\";\n    OverviewRulerLane[OverviewRulerLane[\"Full\"] = 7] = \"Full\";\n})(OverviewRulerLane || (OverviewRulerLane = {}));\nvar PositionAffinity;\n(function (PositionAffinity) {\n    /**\n     * Prefers the left most position.\n    */\n    PositionAffinity[PositionAffinity[\"Left\"] = 0] = \"Left\";\n    /**\n     * Prefers the right most position.\n    */\n    PositionAffinity[PositionAffinity[\"Right\"] = 1] = \"Right\";\n    /**\n     * No preference.\n    */\n    PositionAffinity[PositionAffinity[\"None\"] = 2] = \"None\";\n    /**\n     * If the given position is on injected text, prefers the position left of it.\n    */\n    PositionAffinity[PositionAffinity[\"LeftOfInjectedText\"] = 3] = \"LeftOfInjectedText\";\n    /**\n     * If the given position is on injected text, prefers the position right of it.\n    */\n    PositionAffinity[PositionAffinity[\"RightOfInjectedText\"] = 4] = \"RightOfInjectedText\";\n})(PositionAffinity || (PositionAffinity = {}));\nvar RenderLineNumbersType;\n(function (RenderLineNumbersType) {\n    RenderLineNumbersType[RenderLineNumbersType[\"Off\"] = 0] = \"Off\";\n    RenderLineNumbersType[RenderLineNumbersType[\"On\"] = 1] = \"On\";\n    RenderLineNumbersType[RenderLineNumbersType[\"Relative\"] = 2] = \"Relative\";\n    RenderLineNumbersType[RenderLineNumbersType[\"Interval\"] = 3] = \"Interval\";\n    RenderLineNumbersType[RenderLineNumbersType[\"Custom\"] = 4] = \"Custom\";\n})(RenderLineNumbersType || (RenderLineNumbersType = {}));\nvar RenderMinimap;\n(function (RenderMinimap) {\n    RenderMinimap[RenderMinimap[\"None\"] = 0] = \"None\";\n    RenderMinimap[RenderMinimap[\"Text\"] = 1] = \"Text\";\n    RenderMinimap[RenderMinimap[\"Blocks\"] = 2] = \"Blocks\";\n})(RenderMinimap || (RenderMinimap = {}));\nvar ScrollType;\n(function (ScrollType) {\n    ScrollType[ScrollType[\"Smooth\"] = 0] = \"Smooth\";\n    ScrollType[ScrollType[\"Immediate\"] = 1] = \"Immediate\";\n})(ScrollType || (ScrollType = {}));\nvar ScrollbarVisibility;\n(function (ScrollbarVisibility) {\n    ScrollbarVisibility[ScrollbarVisibility[\"Auto\"] = 1] = \"Auto\";\n    ScrollbarVisibility[ScrollbarVisibility[\"Hidden\"] = 2] = \"Hidden\";\n    ScrollbarVisibility[ScrollbarVisibility[\"Visible\"] = 3] = \"Visible\";\n})(ScrollbarVisibility || (ScrollbarVisibility = {}));\n/**\n * The direction of a selection.\n */\nvar SelectionDirection;\n(function (SelectionDirection) {\n    /**\n     * The selection starts above where it ends.\n     */\n    SelectionDirection[SelectionDirection[\"LTR\"] = 0] = \"LTR\";\n    /**\n     * The selection starts below where it ends.\n     */\n    SelectionDirection[SelectionDirection[\"RTL\"] = 1] = \"RTL\";\n})(SelectionDirection || (SelectionDirection = {}));\nvar ShowAiIconMode;\n(function (ShowAiIconMode) {\n    ShowAiIconMode[\"Off\"] = \"off\";\n    ShowAiIconMode[\"OnCode\"] = \"onCode\";\n    ShowAiIconMode[\"On\"] = \"on\";\n})(ShowAiIconMode || (ShowAiIconMode = {}));\nvar SignatureHelpTriggerKind;\n(function (SignatureHelpTriggerKind) {\n    SignatureHelpTriggerKind[SignatureHelpTriggerKind[\"Invoke\"] = 1] = \"Invoke\";\n    SignatureHelpTriggerKind[SignatureHelpTriggerKind[\"TriggerCharacter\"] = 2] = \"TriggerCharacter\";\n    SignatureHelpTriggerKind[SignatureHelpTriggerKind[\"ContentChange\"] = 3] = \"ContentChange\";\n})(SignatureHelpTriggerKind || (SignatureHelpTriggerKind = {}));\n/**\n * A symbol kind.\n */\nvar SymbolKind;\n(function (SymbolKind) {\n    SymbolKind[SymbolKind[\"File\"] = 0] = \"File\";\n    SymbolKind[SymbolKind[\"Module\"] = 1] = \"Module\";\n    SymbolKind[SymbolKind[\"Namespace\"] = 2] = \"Namespace\";\n    SymbolKind[SymbolKind[\"Package\"] = 3] = \"Package\";\n    SymbolKind[SymbolKind[\"Class\"] = 4] = \"Class\";\n    SymbolKind[SymbolKind[\"Method\"] = 5] = \"Method\";\n    SymbolKind[SymbolKind[\"Property\"] = 6] = \"Property\";\n    SymbolKind[SymbolKind[\"Field\"] = 7] = \"Field\";\n    SymbolKind[SymbolKind[\"Constructor\"] = 8] = \"Constructor\";\n    SymbolKind[SymbolKind[\"Enum\"] = 9] = \"Enum\";\n    SymbolKind[SymbolKind[\"Interface\"] = 10] = \"Interface\";\n    SymbolKind[SymbolKind[\"Function\"] = 11] = \"Function\";\n    SymbolKind[SymbolKind[\"Variable\"] = 12] = \"Variable\";\n    SymbolKind[SymbolKind[\"Constant\"] = 13] = \"Constant\";\n    SymbolKind[SymbolKind[\"String\"] = 14] = \"String\";\n    SymbolKind[SymbolKind[\"Number\"] = 15] = \"Number\";\n    SymbolKind[SymbolKind[\"Boolean\"] = 16] = \"Boolean\";\n    SymbolKind[SymbolKind[\"Array\"] = 17] = \"Array\";\n    SymbolKind[SymbolKind[\"Object\"] = 18] = \"Object\";\n    SymbolKind[SymbolKind[\"Key\"] = 19] = \"Key\";\n    SymbolKind[SymbolKind[\"Null\"] = 20] = \"Null\";\n    SymbolKind[SymbolKind[\"EnumMember\"] = 21] = \"EnumMember\";\n    SymbolKind[SymbolKind[\"Struct\"] = 22] = \"Struct\";\n    SymbolKind[SymbolKind[\"Event\"] = 23] = \"Event\";\n    SymbolKind[SymbolKind[\"Operator\"] = 24] = \"Operator\";\n    SymbolKind[SymbolKind[\"TypeParameter\"] = 25] = \"TypeParameter\";\n})(SymbolKind || (SymbolKind = {}));\nvar SymbolTag;\n(function (SymbolTag) {\n    SymbolTag[SymbolTag[\"Deprecated\"] = 1] = \"Deprecated\";\n})(SymbolTag || (SymbolTag = {}));\n/**\n * The kind of animation in which the editor's cursor should be rendered.\n */\nvar TextEditorCursorBlinkingStyle;\n(function (TextEditorCursorBlinkingStyle) {\n    /**\n     * Hidden\n     */\n    TextEditorCursorBlinkingStyle[TextEditorCursorBlinkingStyle[\"Hidden\"] = 0] = \"Hidden\";\n    /**\n     * Blinking\n     */\n    TextEditorCursorBlinkingStyle[TextEditorCursorBlinkingStyle[\"Blink\"] = 1] = \"Blink\";\n    /**\n     * Blinking with smooth fading\n     */\n    TextEditorCursorBlinkingStyle[TextEditorCursorBlinkingStyle[\"Smooth\"] = 2] = \"Smooth\";\n    /**\n     * Blinking with prolonged filled state and smooth fading\n     */\n    TextEditorCursorBlinkingStyle[TextEditorCursorBlinkingStyle[\"Phase\"] = 3] = \"Phase\";\n    /**\n     * Expand collapse animation on the y axis\n     */\n    TextEditorCursorBlinkingStyle[TextEditorCursorBlinkingStyle[\"Expand\"] = 4] = \"Expand\";\n    /**\n     * No-Blinking\n     */\n    TextEditorCursorBlinkingStyle[TextEditorCursorBlinkingStyle[\"Solid\"] = 5] = \"Solid\";\n})(TextEditorCursorBlinkingStyle || (TextEditorCursorBlinkingStyle = {}));\n/**\n * The style in which the editor's cursor should be rendered.\n */\nvar TextEditorCursorStyle;\n(function (TextEditorCursorStyle) {\n    /**\n     * As a vertical line (sitting between two characters).\n     */\n    TextEditorCursorStyle[TextEditorCursorStyle[\"Line\"] = 1] = \"Line\";\n    /**\n     * As a block (sitting on top of a character).\n     */\n    TextEditorCursorStyle[TextEditorCursorStyle[\"Block\"] = 2] = \"Block\";\n    /**\n     * As a horizontal line (sitting under a character).\n     */\n    TextEditorCursorStyle[TextEditorCursorStyle[\"Underline\"] = 3] = \"Underline\";\n    /**\n     * As a thin vertical line (sitting between two characters).\n     */\n    TextEditorCursorStyle[TextEditorCursorStyle[\"LineThin\"] = 4] = \"LineThin\";\n    /**\n     * As an outlined block (sitting on top of a character).\n     */\n    TextEditorCursorStyle[TextEditorCursorStyle[\"BlockOutline\"] = 5] = \"BlockOutline\";\n    /**\n     * As a thin horizontal line (sitting under a character).\n     */\n    TextEditorCursorStyle[TextEditorCursorStyle[\"UnderlineThin\"] = 6] = \"UnderlineThin\";\n})(TextEditorCursorStyle || (TextEditorCursorStyle = {}));\n/**\n * Describes the behavior of decorations when typing/editing near their edges.\n * Note: Please do not edit the values, as they very carefully match `DecorationRangeBehavior`\n */\nvar TrackedRangeStickiness;\n(function (TrackedRangeStickiness) {\n    TrackedRangeStickiness[TrackedRangeStickiness[\"AlwaysGrowsWhenTypingAtEdges\"] = 0] = \"AlwaysGrowsWhenTypingAtEdges\";\n    TrackedRangeStickiness[TrackedRangeStickiness[\"NeverGrowsWhenTypingAtEdges\"] = 1] = \"NeverGrowsWhenTypingAtEdges\";\n    TrackedRangeStickiness[TrackedRangeStickiness[\"GrowsOnlyWhenTypingBefore\"] = 2] = \"GrowsOnlyWhenTypingBefore\";\n    TrackedRangeStickiness[TrackedRangeStickiness[\"GrowsOnlyWhenTypingAfter\"] = 3] = \"GrowsOnlyWhenTypingAfter\";\n})(TrackedRangeStickiness || (TrackedRangeStickiness = {}));\n/**\n * Describes how to indent wrapped lines.\n */\nvar WrappingIndent;\n(function (WrappingIndent) {\n    /**\n     * No indentation => wrapped lines begin at column 1.\n     */\n    WrappingIndent[WrappingIndent[\"None\"] = 0] = \"None\";\n    /**\n     * Same => wrapped lines get the same indentation as the parent.\n     */\n    WrappingIndent[WrappingIndent[\"Same\"] = 1] = \"Same\";\n    /**\n     * Indent => wrapped lines get +1 indentation toward the parent.\n     */\n    WrappingIndent[WrappingIndent[\"Indent\"] = 2] = \"Indent\";\n    /**\n     * DeepIndent => wrapped lines get +2 indentation toward the parent.\n     */\n    WrappingIndent[WrappingIndent[\"DeepIndent\"] = 3] = \"DeepIndent\";\n})(WrappingIndent || (WrappingIndent = {}));\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/standalone/standaloneEnums.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/common/tokenizationRegistry.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/common/tokenizationRegistry.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   TokenizationRegistry: () => (/* binding */ TokenizationRegistry)\n/* harmony export */ });\n/* harmony import */ var _base_common_event_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../base/common/event.js */ \"./node_modules/monaco-editor/esm/vs/base/common/event.js\");\n/* harmony import */ var _base_common_lifecycle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../base/common/lifecycle.js */ \"./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n\nclass TokenizationRegistry {\n    constructor() {\n        this._tokenizationSupports = new Map();\n        this._factories = new Map();\n        this._onDidChange = new _base_common_event_js__WEBPACK_IMPORTED_MODULE_0__.Emitter();\n        this.onDidChange = this._onDidChange.event;\n        this._colorMap = null;\n    }\n    handleChange(languageIds) {\n        this._onDidChange.fire({\n            changedLanguages: languageIds,\n            changedColorMap: false\n        });\n    }\n    register(languageId, support) {\n        this._tokenizationSupports.set(languageId, support);\n        this.handleChange([languageId]);\n        return (0,_base_common_lifecycle_js__WEBPACK_IMPORTED_MODULE_1__.toDisposable)(() => {\n            if (this._tokenizationSupports.get(languageId) !== support) {\n                return;\n            }\n            this._tokenizationSupports.delete(languageId);\n            this.handleChange([languageId]);\n        });\n    }\n    get(languageId) {\n        return this._tokenizationSupports.get(languageId) || null;\n    }\n    registerFactory(languageId, factory) {\n        var _a;\n        (_a = this._factories.get(languageId)) === null || _a === void 0 ? void 0 : _a.dispose();\n        const myData = new TokenizationSupportFactoryData(this, languageId, factory);\n        this._factories.set(languageId, myData);\n        return (0,_base_common_lifecycle_js__WEBPACK_IMPORTED_MODULE_1__.toDisposable)(() => {\n            const v = this._factories.get(languageId);\n            if (!v || v !== myData) {\n                return;\n            }\n            this._factories.delete(languageId);\n            v.dispose();\n        });\n    }\n    async getOrCreate(languageId) {\n        // check first if the support is already set\n        const tokenizationSupport = this.get(languageId);\n        if (tokenizationSupport) {\n            return tokenizationSupport;\n        }\n        const factory = this._factories.get(languageId);\n        if (!factory || factory.isResolved) {\n            // no factory or factory.resolve already finished\n            return null;\n        }\n        await factory.resolve();\n        return this.get(languageId);\n    }\n    isResolved(languageId) {\n        const tokenizationSupport = this.get(languageId);\n        if (tokenizationSupport) {\n            return true;\n        }\n        const factory = this._factories.get(languageId);\n        if (!factory || factory.isResolved) {\n            return true;\n        }\n        return false;\n    }\n    setColorMap(colorMap) {\n        this._colorMap = colorMap;\n        this._onDidChange.fire({\n            changedLanguages: Array.from(this._tokenizationSupports.keys()),\n            changedColorMap: true\n        });\n    }\n    getColorMap() {\n        return this._colorMap;\n    }\n    getDefaultBackground() {\n        if (this._colorMap && this._colorMap.length > 2 /* ColorId.DefaultBackground */) {\n            return this._colorMap[2 /* ColorId.DefaultBackground */];\n        }\n        return null;\n    }\n}\nclass TokenizationSupportFactoryData extends _base_common_lifecycle_js__WEBPACK_IMPORTED_MODULE_1__.Disposable {\n    get isResolved() {\n        return this._isResolved;\n    }\n    constructor(_registry, _languageId, _factory) {\n        super();\n        this._registry = _registry;\n        this._languageId = _languageId;\n        this._factory = _factory;\n        this._isDisposed = false;\n        this._resolvePromise = null;\n        this._isResolved = false;\n    }\n    dispose() {\n        this._isDisposed = true;\n        super.dispose();\n    }\n    async resolve() {\n        if (!this._resolvePromise) {\n            this._resolvePromise = this._create();\n        }\n        return this._resolvePromise;\n    }\n    async _create() {\n        const value = await this._factory.tokenizationSupport;\n        this._isResolved = true;\n        if (value && !this._isDisposed) {\n            this._register(this._registry.register(this._languageId, value));\n        }\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/common/tokenizationRegistry.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/editor/editor.worker.js":
/*!*******************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/editor/editor.worker.js ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   initialize: () => (/* binding */ initialize)\n/* harmony export */ });\n/* harmony import */ var _base_common_worker_simpleWorker_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../base/common/worker/simpleWorker.js */ \"./node_modules/monaco-editor/esm/vs/base/common/worker/simpleWorker.js\");\n/* harmony import */ var _common_services_editorSimpleWorker_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./common/services/editorSimpleWorker.js */ \"./node_modules/monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js\");\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n\nlet initialized = false;\nfunction initialize(foreignModule) {\n    if (initialized) {\n        return;\n    }\n    initialized = true;\n    const simpleWorker = new _base_common_worker_simpleWorker_js__WEBPACK_IMPORTED_MODULE_0__.SimpleWorkerServer((msg) => {\n        globalThis.postMessage(msg);\n    }, (host) => new _common_services_editorSimpleWorker_js__WEBPACK_IMPORTED_MODULE_1__.EditorSimpleWorker(host, foreignModule));\n    globalThis.onmessage = (e) => {\n        simpleWorker.onmessage(e.data);\n    };\n}\nglobalThis.onmessage = (e) => {\n    // Ignore first message in this case and initialize if not yet initialized\n    if (!initialized) {\n        initialize(null);\n    }\n};\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/editor/editor.worker.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/language/typescript/ts.worker.js":
/*!****************************************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/language/typescript/ts.worker.js ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("var __filename = \"/index.js\";\nvar __dirname = \"/\";\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   TypeScriptWorker: () => (/* binding */ TypeScriptWorker),\n/* harmony export */   create: () => (/* binding */ create),\n/* harmony export */   initialize: () => (/* reexport safe */ _editor_editor_worker_js__WEBPACK_IMPORTED_MODULE_0__.initialize),\n/* harmony export */   libFileMap: () => (/* binding */ libFileMap),\n/* harmony export */   ts: () => (/* binding */ typescriptServices_exports)\n/* harmony export */ });\n/* harmony import */ var _editor_editor_worker_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../editor/editor.worker.js */ \"./node_modules/monaco-editor/esm/vs/editor/editor.worker.js\");\n/*!-----------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)\n * Released under the MIT license\n * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt\n *-----------------------------------------------------------------------------*/\n\nvar __defProp = Object.defineProperty;\nvar __export = (target, all) => {\n  for (var name in all)\n    __defProp(target, name, { get: all[name], enumerable: true });\n};\n\n// src/language/typescript/ts.worker.ts\n\n\n// src/language/typescript/lib/typescriptServices.js\nvar typescriptServices_exports = {};\n__export(typescriptServices_exports, {\n  EndOfLineState: () => EndOfLineState,\n  IndentStyle: () => IndentStyle,\n  ScriptKind: () => ScriptKind,\n  ScriptTarget: () => ScriptTarget,\n  TokenClass: () => TokenClass,\n  createClassifier: () => createClassifier,\n  createLanguageService: () => createLanguageService,\n  displayPartsToString: () => displayPartsToString,\n  flattenDiagnosticMessageText: () => flattenDiagnosticMessageText,\n  typescript: () => typescript\n});\nvar require2 = void 0;\nvar module = { exports: {} };\nvar ts = (() => {\n  var __defProp2 = Object.defineProperty;\n  var __getOwnPropNames = Object.getOwnPropertyNames;\n  var __esm = (fn, res) => function __init() {\n    return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;\n  };\n  var __commonJS = (cb, mod) => function __require() {\n    return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;\n  };\n  var __export2 = (target, all) => {\n    for (var name in all)\n      __defProp2(target, name, { get: all[name], enumerable: true });\n  };\n  var versionMajorMinor, version, Comparison;\n  var init_corePublic = __esm({\n    \"src/compiler/corePublic.ts\"() {\n      \"use strict\";\n      versionMajorMinor = \"5.0\";\n      version = \"5.0.2\";\n      Comparison = /* @__PURE__ */ ((Comparison3) => {\n        Comparison3[Comparison3[\"LessThan\"] = -1] = \"LessThan\";\n        Comparison3[Comparison3[\"EqualTo\"] = 0] = \"EqualTo\";\n        Comparison3[Comparison3[\"GreaterThan\"] = 1] = \"GreaterThan\";\n        return Comparison3;\n      })(Comparison || {});\n    }\n  });\n  function length(array) {\n    return array ? array.length : 0;\n  }\n  function forEach(array, callback) {\n    if (array) {\n      for (let i = 0; i < array.length; i++) {\n        const result = callback(array[i], i);\n        if (result) {\n          return result;\n        }\n      }\n    }\n    return void 0;\n  }\n  function forEachRight(array, callback) {\n    if (array) {\n      for (let i = array.length - 1; i >= 0; i--) {\n        const result = callback(array[i], i);\n        if (result) {\n          return result;\n        }\n      }\n    }\n    return void 0;\n  }\n  function firstDefined(array, callback) {\n    if (array === void 0) {\n      return void 0;\n    }\n    for (let i = 0; i < array.length; i++) {\n      const result = callback(array[i], i);\n      if (result !== void 0) {\n        return result;\n      }\n    }\n    return void 0;\n  }\n  function firstDefinedIterator(iter, callback) {\n    for (const value of iter) {\n      const result = callback(value);\n      if (result !== void 0) {\n        return result;\n      }\n    }\n    return void 0;\n  }\n  function reduceLeftIterator(iterator, f, initial) {\n    let result = initial;\n    if (iterator) {\n      let pos = 0;\n      for (const value of iterator) {\n        result = f(result, value, pos);\n        pos++;\n      }\n    }\n    return result;\n  }\n  function zipWith(arrayA, arrayB, callback) {\n    const result = [];\n    Debug.assertEqual(arrayA.length, arrayB.length);\n    for (let i = 0; i < arrayA.length; i++) {\n      result.push(callback(arrayA[i], arrayB[i], i));\n    }\n    return result;\n  }\n  function intersperse(input, element) {\n    if (input.length <= 1) {\n      return input;\n    }\n    const result = [];\n    for (let i = 0, n = input.length; i < n; i++) {\n      if (i)\n        result.push(element);\n      result.push(input[i]);\n    }\n    return result;\n  }\n  function every(array, callback) {\n    if (array) {\n      for (let i = 0; i < array.length; i++) {\n        if (!callback(array[i], i)) {\n          return false;\n        }\n      }\n    }\n    return true;\n  }\n  function find(array, predicate, startIndex) {\n    if (array === void 0)\n      return void 0;\n    for (let i = startIndex != null ? startIndex : 0; i < array.length; i++) {\n      const value = array[i];\n      if (predicate(value, i)) {\n        return value;\n      }\n    }\n    return void 0;\n  }\n  function findLast(array, predicate, startIndex) {\n    if (array === void 0)\n      return void 0;\n    for (let i = startIndex != null ? startIndex : array.length - 1; i >= 0; i--) {\n      const value = array[i];\n      if (predicate(value, i)) {\n        return value;\n      }\n    }\n    return void 0;\n  }\n  function findIndex(array, predicate, startIndex) {\n    if (array === void 0)\n      return -1;\n    for (let i = startIndex != null ? startIndex : 0; i < array.length; i++) {\n      if (predicate(array[i], i)) {\n        return i;\n      }\n    }\n    return -1;\n  }\n  function findLastIndex(array, predicate, startIndex) {\n    if (array === void 0)\n      return -1;\n    for (let i = startIndex != null ? startIndex : array.length - 1; i >= 0; i--) {\n      if (predicate(array[i], i)) {\n        return i;\n      }\n    }\n    return -1;\n  }\n  function findMap(array, callback) {\n    for (let i = 0; i < array.length; i++) {\n      const result = callback(array[i], i);\n      if (result) {\n        return result;\n      }\n    }\n    return Debug.fail();\n  }\n  function contains(array, value, equalityComparer = equateValues) {\n    if (array) {\n      for (const v of array) {\n        if (equalityComparer(v, value)) {\n          return true;\n        }\n      }\n    }\n    return false;\n  }\n  function arraysEqual(a, b, equalityComparer = equateValues) {\n    return a.length === b.length && a.every((x, i) => equalityComparer(x, b[i]));\n  }\n  function indexOfAnyCharCode(text, charCodes, start) {\n    for (let i = start || 0; i < text.length; i++) {\n      if (contains(charCodes, text.charCodeAt(i))) {\n        return i;\n      }\n    }\n    return -1;\n  }\n  function countWhere(array, predicate) {\n    let count = 0;\n    if (array) {\n      for (let i = 0; i < array.length; i++) {\n        const v = array[i];\n        if (predicate(v, i)) {\n          count++;\n        }\n      }\n    }\n    return count;\n  }\n  function filter(array, f) {\n    if (array) {\n      const len = array.length;\n      let i = 0;\n      while (i < len && f(array[i]))\n        i++;\n      if (i < len) {\n        const result = array.slice(0, i);\n        i++;\n        while (i < len) {\n          const item = array[i];\n          if (f(item)) {\n            result.push(item);\n          }\n          i++;\n        }\n        return result;\n      }\n    }\n    return array;\n  }\n  function filterMutate(array, f) {\n    let outIndex = 0;\n    for (let i = 0; i < array.length; i++) {\n      if (f(array[i], i, array)) {\n        array[outIndex] = array[i];\n        outIndex++;\n      }\n    }\n    array.length = outIndex;\n  }\n  function clear(array) {\n    array.length = 0;\n  }\n  function map(array, f) {\n    let result;\n    if (array) {\n      result = [];\n      for (let i = 0; i < array.length; i++) {\n        result.push(f(array[i], i));\n      }\n    }\n    return result;\n  }\n  function* mapIterator(iter, mapFn) {\n    for (const x of iter) {\n      yield mapFn(x);\n    }\n  }\n  function sameMap(array, f) {\n    if (array) {\n      for (let i = 0; i < array.length; i++) {\n        const item = array[i];\n        const mapped = f(item, i);\n        if (item !== mapped) {\n          const result = array.slice(0, i);\n          result.push(mapped);\n          for (i++; i < array.length; i++) {\n            result.push(f(array[i], i));\n          }\n          return result;\n        }\n      }\n    }\n    return array;\n  }\n  function flatten(array) {\n    const result = [];\n    for (const v of array) {\n      if (v) {\n        if (isArray(v)) {\n          addRange(result, v);\n        } else {\n          result.push(v);\n        }\n      }\n    }\n    return result;\n  }\n  function flatMap(array, mapfn) {\n    let result;\n    if (array) {\n      for (let i = 0; i < array.length; i++) {\n        const v = mapfn(array[i], i);\n        if (v) {\n          if (isArray(v)) {\n            result = addRange(result, v);\n          } else {\n            result = append(result, v);\n          }\n        }\n      }\n    }\n    return result || emptyArray;\n  }\n  function flatMapToMutable(array, mapfn) {\n    const result = [];\n    if (array) {\n      for (let i = 0; i < array.length; i++) {\n        const v = mapfn(array[i], i);\n        if (v) {\n          if (isArray(v)) {\n            addRange(result, v);\n          } else {\n            result.push(v);\n          }\n        }\n      }\n    }\n    return result;\n  }\n  function* flatMapIterator(iter, mapfn) {\n    for (const x of iter) {\n      const iter2 = mapfn(x);\n      if (!iter2)\n        continue;\n      yield* iter2;\n    }\n  }\n  function sameFlatMap(array, mapfn) {\n    let result;\n    if (array) {\n      for (let i = 0; i < array.length; i++) {\n        const item = array[i];\n        const mapped = mapfn(item, i);\n        if (result || item !== mapped || isArray(mapped)) {\n          if (!result) {\n            result = array.slice(0, i);\n          }\n          if (isArray(mapped)) {\n            addRange(result, mapped);\n          } else {\n            result.push(mapped);\n          }\n        }\n      }\n    }\n    return result || array;\n  }\n  function mapAllOrFail(array, mapFn) {\n    const result = [];\n    for (let i = 0; i < array.length; i++) {\n      const mapped = mapFn(array[i], i);\n      if (mapped === void 0) {\n        return void 0;\n      }\n      result.push(mapped);\n    }\n    return result;\n  }\n  function mapDefined(array, mapFn) {\n    const result = [];\n    if (array) {\n      for (let i = 0; i < array.length; i++) {\n        const mapped = mapFn(array[i], i);\n        if (mapped !== void 0) {\n          result.push(mapped);\n        }\n      }\n    }\n    return result;\n  }\n  function* mapDefinedIterator(iter, mapFn) {\n    for (const x of iter) {\n      const value = mapFn(x);\n      if (value !== void 0) {\n        yield value;\n      }\n    }\n  }\n  function mapDefinedEntries(map2, f) {\n    if (!map2) {\n      return void 0;\n    }\n    const result = /* @__PURE__ */ new Map();\n    map2.forEach((value, key) => {\n      const entry = f(key, value);\n      if (entry !== void 0) {\n        const [newKey, newValue] = entry;\n        if (newKey !== void 0 && newValue !== void 0) {\n          result.set(newKey, newValue);\n        }\n      }\n    });\n    return result;\n  }\n  function getOrUpdate(map2, key, callback) {\n    if (map2.has(key)) {\n      return map2.get(key);\n    }\n    const value = callback();\n    map2.set(key, value);\n    return value;\n  }\n  function tryAddToSet(set, value) {\n    if (!set.has(value)) {\n      set.add(value);\n      return true;\n    }\n    return false;\n  }\n  function* singleIterator(value) {\n    yield value;\n  }\n  function spanMap(array, keyfn, mapfn) {\n    let result;\n    if (array) {\n      result = [];\n      const len = array.length;\n      let previousKey;\n      let key;\n      let start = 0;\n      let pos = 0;\n      while (start < len) {\n        while (pos < len) {\n          const value = array[pos];\n          key = keyfn(value, pos);\n          if (pos === 0) {\n            previousKey = key;\n          } else if (key !== previousKey) {\n            break;\n          }\n          pos++;\n        }\n        if (start < pos) {\n          const v = mapfn(array.slice(start, pos), previousKey, start, pos);\n          if (v) {\n            result.push(v);\n          }\n          start = pos;\n        }\n        previousKey = key;\n        pos++;\n      }\n    }\n    return result;\n  }\n  function mapEntries(map2, f) {\n    if (!map2) {\n      return void 0;\n    }\n    const result = /* @__PURE__ */ new Map();\n    map2.forEach((value, key) => {\n      const [newKey, newValue] = f(key, value);\n      result.set(newKey, newValue);\n    });\n    return result;\n  }\n  function some(array, predicate) {\n    if (array) {\n      if (predicate) {\n        for (const v of array) {\n          if (predicate(v)) {\n            return true;\n          }\n        }\n      } else {\n        return array.length > 0;\n      }\n    }\n    return false;\n  }\n  function getRangesWhere(arr, pred, cb) {\n    let start;\n    for (let i = 0; i < arr.length; i++) {\n      if (pred(arr[i])) {\n        start = start === void 0 ? i : start;\n      } else {\n        if (start !== void 0) {\n          cb(start, i);\n          start = void 0;\n        }\n      }\n    }\n    if (start !== void 0)\n      cb(start, arr.length);\n  }\n  function concatenate(array1, array2) {\n    if (!some(array2))\n      return array1;\n    if (!some(array1))\n      return array2;\n    return [...array1, ...array2];\n  }\n  function selectIndex(_, i) {\n    return i;\n  }\n  function indicesOf(array) {\n    return array.map(selectIndex);\n  }\n  function deduplicateRelational(array, equalityComparer, comparer) {\n    const indices = indicesOf(array);\n    stableSortIndices(array, indices, comparer);\n    let last2 = array[indices[0]];\n    const deduplicated = [indices[0]];\n    for (let i = 1; i < indices.length; i++) {\n      const index = indices[i];\n      const item = array[index];\n      if (!equalityComparer(last2, item)) {\n        deduplicated.push(index);\n        last2 = item;\n      }\n    }\n    deduplicated.sort();\n    return deduplicated.map((i) => array[i]);\n  }\n  function deduplicateEquality(array, equalityComparer) {\n    const result = [];\n    for (const item of array) {\n      pushIfUnique(result, item, equalityComparer);\n    }\n    return result;\n  }\n  function deduplicate(array, equalityComparer, comparer) {\n    return array.length === 0 ? [] : array.length === 1 ? array.slice() : comparer ? deduplicateRelational(array, equalityComparer, comparer) : deduplicateEquality(array, equalityComparer);\n  }\n  function deduplicateSorted(array, comparer) {\n    if (array.length === 0)\n      return emptyArray;\n    let last2 = array[0];\n    const deduplicated = [last2];\n    for (let i = 1; i < array.length; i++) {\n      const next = array[i];\n      switch (comparer(next, last2)) {\n        case true:\n        case 0:\n          continue;\n        case -1:\n          return Debug.fail(\"Array is unsorted.\");\n      }\n      deduplicated.push(last2 = next);\n    }\n    return deduplicated;\n  }\n  function createSortedArray() {\n    return [];\n  }\n  function insertSorted(array, insert, compare, allowDuplicates) {\n    if (array.length === 0) {\n      array.push(insert);\n      return true;\n    }\n    const insertIndex = binarySearch(array, insert, identity, compare);\n    if (insertIndex < 0) {\n      array.splice(~insertIndex, 0, insert);\n      return true;\n    }\n    if (allowDuplicates) {\n      array.splice(insertIndex, 0, insert);\n      return true;\n    }\n    return false;\n  }\n  function sortAndDeduplicate(array, comparer, equalityComparer) {\n    return deduplicateSorted(sort(array, comparer), equalityComparer || comparer || compareStringsCaseSensitive);\n  }\n  function arrayIsSorted(array, comparer) {\n    if (array.length < 2)\n      return true;\n    for (let i = 1, len = array.length; i < len; i++) {\n      if (comparer(array[i - 1], array[i]) === 1) {\n        return false;\n      }\n    }\n    return true;\n  }\n  function detectSortCaseSensitivity(array, getString, compareStringsCaseSensitive2, compareStringsCaseInsensitive2) {\n    let kind = 3;\n    if (array.length < 2)\n      return kind;\n    let prevElement = getString(array[0]);\n    for (let i = 1, len = array.length; i < len && kind !== 0; i++) {\n      const element = getString(array[i]);\n      if (kind & 1 && compareStringsCaseSensitive2(prevElement, element) > 0) {\n        kind &= ~1;\n      }\n      if (kind & 2 && compareStringsCaseInsensitive2(prevElement, element) > 0) {\n        kind &= ~2;\n      }\n      prevElement = element;\n    }\n    return kind;\n  }\n  function arrayIsEqualTo(array1, array2, equalityComparer = equateValues) {\n    if (!array1 || !array2) {\n      return array1 === array2;\n    }\n    if (array1.length !== array2.length) {\n      return false;\n    }\n    for (let i = 0; i < array1.length; i++) {\n      if (!equalityComparer(array1[i], array2[i], i)) {\n        return false;\n      }\n    }\n    return true;\n  }\n  function compact(array) {\n    let result;\n    if (array) {\n      for (let i = 0; i < array.length; i++) {\n        const v = array[i];\n        if (result || !v) {\n          if (!result) {\n            result = array.slice(0, i);\n          }\n          if (v) {\n            result.push(v);\n          }\n        }\n      }\n    }\n    return result || array;\n  }\n  function relativeComplement(arrayA, arrayB, comparer) {\n    if (!arrayB || !arrayA || arrayB.length === 0 || arrayA.length === 0)\n      return arrayB;\n    const result = [];\n    loopB:\n      for (let offsetA = 0, offsetB = 0; offsetB < arrayB.length; offsetB++) {\n        if (offsetB > 0) {\n          Debug.assertGreaterThanOrEqual(comparer(arrayB[offsetB], arrayB[offsetB - 1]), 0);\n        }\n        loopA:\n          for (const startA = offsetA; offsetA < arrayA.length; offsetA++) {\n            if (offsetA > startA) {\n              Debug.assertGreaterThanOrEqual(comparer(arrayA[offsetA], arrayA[offsetA - 1]), 0);\n            }\n            switch (comparer(arrayB[offsetB], arrayA[offsetA])) {\n              case -1:\n                result.push(arrayB[offsetB]);\n                continue loopB;\n              case 0:\n                continue loopB;\n              case 1:\n                continue loopA;\n            }\n          }\n      }\n    return result;\n  }\n  function append(to, value) {\n    if (value === void 0)\n      return to;\n    if (to === void 0)\n      return [value];\n    to.push(value);\n    return to;\n  }\n  function combine(xs, ys) {\n    if (xs === void 0)\n      return ys;\n    if (ys === void 0)\n      return xs;\n    if (isArray(xs))\n      return isArray(ys) ? concatenate(xs, ys) : append(xs, ys);\n    if (isArray(ys))\n      return append(ys, xs);\n    return [xs, ys];\n  }\n  function toOffset(array, offset) {\n    return offset < 0 ? array.length + offset : offset;\n  }\n  function addRange(to, from, start, end) {\n    if (from === void 0 || from.length === 0)\n      return to;\n    if (to === void 0)\n      return from.slice(start, end);\n    start = start === void 0 ? 0 : toOffset(from, start);\n    end = end === void 0 ? from.length : toOffset(from, end);\n    for (let i = start; i < end && i < from.length; i++) {\n      if (from[i] !== void 0) {\n        to.push(from[i]);\n      }\n    }\n    return to;\n  }\n  function pushIfUnique(array, toAdd, equalityComparer) {\n    if (contains(array, toAdd, equalityComparer)) {\n      return false;\n    } else {\n      array.push(toAdd);\n      return true;\n    }\n  }\n  function appendIfUnique(array, toAdd, equalityComparer) {\n    if (array) {\n      pushIfUnique(array, toAdd, equalityComparer);\n      return array;\n    } else {\n      return [toAdd];\n    }\n  }\n  function stableSortIndices(array, indices, comparer) {\n    indices.sort((x, y) => comparer(array[x], array[y]) || compareValues(x, y));\n  }\n  function sort(array, comparer) {\n    return array.length === 0 ? array : array.slice().sort(comparer);\n  }\n  function* arrayReverseIterator(array) {\n    for (let i = array.length - 1; i >= 0; i--) {\n      yield array[i];\n    }\n  }\n  function stableSort(array, comparer) {\n    const indices = indicesOf(array);\n    stableSortIndices(array, indices, comparer);\n    return indices.map((i) => array[i]);\n  }\n  function rangeEquals(array1, array2, pos, end) {\n    while (pos < end) {\n      if (array1[pos] !== array2[pos]) {\n        return false;\n      }\n      pos++;\n    }\n    return true;\n  }\n  function firstOrUndefined(array) {\n    return array === void 0 || array.length === 0 ? void 0 : array[0];\n  }\n  function firstOrUndefinedIterator(iter) {\n    if (iter) {\n      for (const value of iter) {\n        return value;\n      }\n    }\n    return void 0;\n  }\n  function first(array) {\n    Debug.assert(array.length !== 0);\n    return array[0];\n  }\n  function firstIterator(iter) {\n    for (const value of iter) {\n      return value;\n    }\n    Debug.fail(\"iterator is empty\");\n  }\n  function lastOrUndefined(array) {\n    return array === void 0 || array.length === 0 ? void 0 : array[array.length - 1];\n  }\n  function last(array) {\n    Debug.assert(array.length !== 0);\n    return array[array.length - 1];\n  }\n  function singleOrUndefined(array) {\n    return array && array.length === 1 ? array[0] : void 0;\n  }\n  function single(array) {\n    return Debug.checkDefined(singleOrUndefined(array));\n  }\n  function singleOrMany(array) {\n    return array && array.length === 1 ? array[0] : array;\n  }\n  function replaceElement(array, index, value) {\n    const result = array.slice(0);\n    result[index] = value;\n    return result;\n  }\n  function binarySearch(array, value, keySelector, keyComparer, offset) {\n    return binarySearchKey(array, keySelector(value), keySelector, keyComparer, offset);\n  }\n  function binarySearchKey(array, key, keySelector, keyComparer, offset) {\n    if (!some(array)) {\n      return -1;\n    }\n    let low = offset || 0;\n    let high = array.length - 1;\n    while (low <= high) {\n      const middle = low + (high - low >> 1);\n      const midKey = keySelector(array[middle], middle);\n      switch (keyComparer(midKey, key)) {\n        case -1:\n          low = middle + 1;\n          break;\n        case 0:\n          return middle;\n        case 1:\n          high = middle - 1;\n          break;\n      }\n    }\n    return ~low;\n  }\n  function reduceLeft(array, f, initial, start, count) {\n    if (array && array.length > 0) {\n      const size = array.length;\n      if (size > 0) {\n        let pos = start === void 0 || start < 0 ? 0 : start;\n        const end = count === void 0 || pos + count > size - 1 ? size - 1 : pos + count;\n        let result;\n        if (arguments.length <= 2) {\n          result = array[pos];\n          pos++;\n        } else {\n          result = initial;\n        }\n        while (pos <= end) {\n          result = f(result, array[pos], pos);\n          pos++;\n        }\n        return result;\n      }\n    }\n    return initial;\n  }\n  function hasProperty(map2, key) {\n    return hasOwnProperty.call(map2, key);\n  }\n  function getProperty(map2, key) {\n    return hasOwnProperty.call(map2, key) ? map2[key] : void 0;\n  }\n  function getOwnKeys(map2) {\n    const keys = [];\n    for (const key in map2) {\n      if (hasOwnProperty.call(map2, key)) {\n        keys.push(key);\n      }\n    }\n    return keys;\n  }\n  function getAllKeys(obj) {\n    const result = [];\n    do {\n      const names = Object.getOwnPropertyNames(obj);\n      for (const name of names) {\n        pushIfUnique(result, name);\n      }\n    } while (obj = Object.getPrototypeOf(obj));\n    return result;\n  }\n  function getOwnValues(collection) {\n    const values = [];\n    for (const key in collection) {\n      if (hasOwnProperty.call(collection, key)) {\n        values.push(collection[key]);\n      }\n    }\n    return values;\n  }\n  function arrayOf(count, f) {\n    const result = new Array(count);\n    for (let i = 0; i < count; i++) {\n      result[i] = f(i);\n    }\n    return result;\n  }\n  function arrayFrom(iterator, map2) {\n    const result = [];\n    for (const value of iterator) {\n      result.push(map2 ? map2(value) : value);\n    }\n    return result;\n  }\n  function assign(t, ...args) {\n    for (const arg of args) {\n      if (arg === void 0)\n        continue;\n      for (const p in arg) {\n        if (hasProperty(arg, p)) {\n          t[p] = arg[p];\n        }\n      }\n    }\n    return t;\n  }\n  function equalOwnProperties(left, right, equalityComparer = equateValues) {\n    if (left === right)\n      return true;\n    if (!left || !right)\n      return false;\n    for (const key in left) {\n      if (hasOwnProperty.call(left, key)) {\n        if (!hasOwnProperty.call(right, key))\n          return false;\n        if (!equalityComparer(left[key], right[key]))\n          return false;\n      }\n    }\n    for (const key in right) {\n      if (hasOwnProperty.call(right, key)) {\n        if (!hasOwnProperty.call(left, key))\n          return false;\n      }\n    }\n    return true;\n  }\n  function arrayToMap(array, makeKey, makeValue = identity) {\n    const result = /* @__PURE__ */ new Map();\n    for (const value of array) {\n      const key = makeKey(value);\n      if (key !== void 0)\n        result.set(key, makeValue(value));\n    }\n    return result;\n  }\n  function arrayToNumericMap(array, makeKey, makeValue = identity) {\n    const result = [];\n    for (const value of array) {\n      result[makeKey(value)] = makeValue(value);\n    }\n    return result;\n  }\n  function arrayToMultiMap(values, makeKey, makeValue = identity) {\n    const result = createMultiMap();\n    for (const value of values) {\n      result.add(makeKey(value), makeValue(value));\n    }\n    return result;\n  }\n  function group(values, getGroupId, resultSelector = identity) {\n    return arrayFrom(arrayToMultiMap(values, getGroupId).values(), resultSelector);\n  }\n  function groupBy(values, keySelector) {\n    var _a2;\n    const result = {};\n    if (values) {\n      for (const value of values) {\n        const key = `${keySelector(value)}`;\n        const array = (_a2 = result[key]) != null ? _a2 : result[key] = [];\n        array.push(value);\n      }\n    }\n    return result;\n  }\n  function clone(object) {\n    const result = {};\n    for (const id in object) {\n      if (hasOwnProperty.call(object, id)) {\n        result[id] = object[id];\n      }\n    }\n    return result;\n  }\n  function extend(first2, second) {\n    const result = {};\n    for (const id in second) {\n      if (hasOwnProperty.call(second, id)) {\n        result[id] = second[id];\n      }\n    }\n    for (const id in first2) {\n      if (hasOwnProperty.call(first2, id)) {\n        result[id] = first2[id];\n      }\n    }\n    return result;\n  }\n  function copyProperties(first2, second) {\n    for (const id in second) {\n      if (hasOwnProperty.call(second, id)) {\n        first2[id] = second[id];\n      }\n    }\n  }\n  function maybeBind(obj, fn) {\n    return fn ? fn.bind(obj) : void 0;\n  }\n  function createMultiMap() {\n    const map2 = /* @__PURE__ */ new Map();\n    map2.add = multiMapAdd;\n    map2.remove = multiMapRemove;\n    return map2;\n  }\n  function multiMapAdd(key, value) {\n    let values = this.get(key);\n    if (values) {\n      values.push(value);\n    } else {\n      this.set(key, values = [value]);\n    }\n    return values;\n  }\n  function multiMapRemove(key, value) {\n    const values = this.get(key);\n    if (values) {\n      unorderedRemoveItem(values, value);\n      if (!values.length) {\n        this.delete(key);\n      }\n    }\n  }\n  function createUnderscoreEscapedMultiMap() {\n    return createMultiMap();\n  }\n  function createQueue(items) {\n    const elements = (items == null ? void 0 : items.slice()) || [];\n    let headIndex = 0;\n    function isEmpty() {\n      return headIndex === elements.length;\n    }\n    function enqueue(...items2) {\n      elements.push(...items2);\n    }\n    function dequeue() {\n      if (isEmpty()) {\n        throw new Error(\"Queue is empty\");\n      }\n      const result = elements[headIndex];\n      elements[headIndex] = void 0;\n      headIndex++;\n      if (headIndex > 100 && headIndex > elements.length >> 1) {\n        const newLength = elements.length - headIndex;\n        elements.copyWithin(0, headIndex);\n        elements.length = newLength;\n        headIndex = 0;\n      }\n      return result;\n    }\n    return {\n      enqueue,\n      dequeue,\n      isEmpty\n    };\n  }\n  function createSet(getHashCode, equals) {\n    const multiMap = /* @__PURE__ */ new Map();\n    let size = 0;\n    function* getElementIterator() {\n      for (const value of multiMap.values()) {\n        if (isArray(value)) {\n          yield* value;\n        } else {\n          yield value;\n        }\n      }\n    }\n    const set = {\n      has(element) {\n        const hash = getHashCode(element);\n        if (!multiMap.has(hash))\n          return false;\n        const candidates = multiMap.get(hash);\n        if (!isArray(candidates))\n          return equals(candidates, element);\n        for (const candidate of candidates) {\n          if (equals(candidate, element)) {\n            return true;\n          }\n        }\n        return false;\n      },\n      add(element) {\n        const hash = getHashCode(element);\n        if (multiMap.has(hash)) {\n          const values = multiMap.get(hash);\n          if (isArray(values)) {\n            if (!contains(values, element, equals)) {\n              values.push(element);\n              size++;\n            }\n          } else {\n            const value = values;\n            if (!equals(value, element)) {\n              multiMap.set(hash, [value, element]);\n              size++;\n            }\n          }\n        } else {\n          multiMap.set(hash, element);\n          size++;\n        }\n        return this;\n      },\n      delete(element) {\n        const hash = getHashCode(element);\n        if (!multiMap.has(hash))\n          return false;\n        const candidates = multiMap.get(hash);\n        if (isArray(candidates)) {\n          for (let i = 0; i < candidates.length; i++) {\n            if (equals(candidates[i], element)) {\n              if (candidates.length === 1) {\n                multiMap.delete(hash);\n              } else if (candidates.length === 2) {\n                multiMap.set(hash, candidates[1 - i]);\n              } else {\n                unorderedRemoveItemAt(candidates, i);\n              }\n              size--;\n              return true;\n            }\n          }\n        } else {\n          const candidate = candidates;\n          if (equals(candidate, element)) {\n            multiMap.delete(hash);\n            size--;\n            return true;\n          }\n        }\n        return false;\n      },\n      clear() {\n        multiMap.clear();\n        size = 0;\n      },\n      get size() {\n        return size;\n      },\n      forEach(action) {\n        for (const elements of arrayFrom(multiMap.values())) {\n          if (isArray(elements)) {\n            for (const element of elements) {\n              action(element, element, set);\n            }\n          } else {\n            const element = elements;\n            action(element, element, set);\n          }\n        }\n      },\n      keys() {\n        return getElementIterator();\n      },\n      values() {\n        return getElementIterator();\n      },\n      *entries() {\n        for (const value of getElementIterator()) {\n          yield [value, value];\n        }\n      },\n      [Symbol.iterator]: () => {\n        return getElementIterator();\n      },\n      [Symbol.toStringTag]: multiMap[Symbol.toStringTag]\n    };\n    return set;\n  }\n  function isArray(value) {\n    return Array.isArray(value);\n  }\n  function toArray(value) {\n    return isArray(value) ? value : [value];\n  }\n  function isString(text) {\n    return typeof text === \"string\";\n  }\n  function isNumber(x) {\n    return typeof x === \"number\";\n  }\n  function tryCast(value, test) {\n    return value !== void 0 && test(value) ? value : void 0;\n  }\n  function cast(value, test) {\n    if (value !== void 0 && test(value))\n      return value;\n    return Debug.fail(`Invalid cast. The supplied value ${value} did not pass the test '${Debug.getFunctionName(test)}'.`);\n  }\n  function noop(_) {\n  }\n  function returnFalse() {\n    return false;\n  }\n  function returnTrue() {\n    return true;\n  }\n  function returnUndefined() {\n    return void 0;\n  }\n  function identity(x) {\n    return x;\n  }\n  function toLowerCase(x) {\n    return x.toLowerCase();\n  }\n  function toFileNameLowerCase(x) {\n    return fileNameLowerCaseRegExp.test(x) ? x.replace(fileNameLowerCaseRegExp, toLowerCase) : x;\n  }\n  function notImplemented() {\n    throw new Error(\"Not implemented\");\n  }\n  function memoize(callback) {\n    let value;\n    return () => {\n      if (callback) {\n        value = callback();\n        callback = void 0;\n      }\n      return value;\n    };\n  }\n  function memoizeOne(callback) {\n    const map2 = /* @__PURE__ */ new Map();\n    return (arg) => {\n      const key = `${typeof arg}:${arg}`;\n      let value = map2.get(key);\n      if (value === void 0 && !map2.has(key)) {\n        value = callback(arg);\n        map2.set(key, value);\n      }\n      return value;\n    };\n  }\n  function memoizeWeak(callback) {\n    const map2 = /* @__PURE__ */ new WeakMap();\n    return (arg) => {\n      let value = map2.get(arg);\n      if (value === void 0 && !map2.has(arg)) {\n        value = callback(arg);\n        map2.set(arg, value);\n      }\n      return value;\n    };\n  }\n  function memoizeCached(callback, cache) {\n    return (...args) => {\n      let value = cache.get(args);\n      if (value === void 0 && !cache.has(args)) {\n        value = callback(...args);\n        cache.set(args, value);\n      }\n      return value;\n    };\n  }\n  function compose(a, b, c, d, e) {\n    if (!!e) {\n      const args = [];\n      for (let i = 0; i < arguments.length; i++) {\n        args[i] = arguments[i];\n      }\n      return (t) => reduceLeft(args, (u, f) => f(u), t);\n    } else if (d) {\n      return (t) => d(c(b(a(t))));\n    } else if (c) {\n      return (t) => c(b(a(t)));\n    } else if (b) {\n      return (t) => b(a(t));\n    } else if (a) {\n      return (t) => a(t);\n    } else {\n      return (t) => t;\n    }\n  }\n  function equateValues(a, b) {\n    return a === b;\n  }\n  function equateStringsCaseInsensitive(a, b) {\n    return a === b || a !== void 0 && b !== void 0 && a.toUpperCase() === b.toUpperCase();\n  }\n  function equateStringsCaseSensitive(a, b) {\n    return equateValues(a, b);\n  }\n  function compareComparableValues(a, b) {\n    return a === b ? 0 : a === void 0 ? -1 : b === void 0 ? 1 : a < b ? -1 : 1;\n  }\n  function compareValues(a, b) {\n    return compareComparableValues(a, b);\n  }\n  function compareTextSpans(a, b) {\n    return compareValues(a == null ? void 0 : a.start, b == null ? void 0 : b.start) || compareValues(a == null ? void 0 : a.length, b == null ? void 0 : b.length);\n  }\n  function min(items, compare) {\n    return reduceLeft(items, (x, y) => compare(x, y) === -1 ? x : y);\n  }\n  function compareStringsCaseInsensitive(a, b) {\n    if (a === b)\n      return 0;\n    if (a === void 0)\n      return -1;\n    if (b === void 0)\n      return 1;\n    a = a.toUpperCase();\n    b = b.toUpperCase();\n    return a < b ? -1 : a > b ? 1 : 0;\n  }\n  function compareStringsCaseInsensitiveEslintCompatible(a, b) {\n    if (a === b)\n      return 0;\n    if (a === void 0)\n      return -1;\n    if (b === void 0)\n      return 1;\n    a = a.toLowerCase();\n    b = b.toLowerCase();\n    return a < b ? -1 : a > b ? 1 : 0;\n  }\n  function compareStringsCaseSensitive(a, b) {\n    return compareComparableValues(a, b);\n  }\n  function getStringComparer(ignoreCase) {\n    return ignoreCase ? compareStringsCaseInsensitive : compareStringsCaseSensitive;\n  }\n  function getUILocale() {\n    return uiLocale;\n  }\n  function setUILocale(value) {\n    if (uiLocale !== value) {\n      uiLocale = value;\n      uiComparerCaseSensitive = void 0;\n    }\n  }\n  function compareStringsCaseSensitiveUI(a, b) {\n    const comparer = uiComparerCaseSensitive || (uiComparerCaseSensitive = createUIStringComparer(uiLocale));\n    return comparer(a, b);\n  }\n  function compareProperties(a, b, key, comparer) {\n    return a === b ? 0 : a === void 0 ? -1 : b === void 0 ? 1 : comparer(a[key], b[key]);\n  }\n  function compareBooleans(a, b) {\n    return compareValues(a ? 1 : 0, b ? 1 : 0);\n  }\n  function getSpellingSuggestion(name, candidates, getName) {\n    const maximumLengthDifference = Math.max(2, Math.floor(name.length * 0.34));\n    let bestDistance = Math.floor(name.length * 0.4) + 1;\n    let bestCandidate;\n    for (const candidate of candidates) {\n      const candidateName = getName(candidate);\n      if (candidateName !== void 0 && Math.abs(candidateName.length - name.length) <= maximumLengthDifference) {\n        if (candidateName === name) {\n          continue;\n        }\n        if (candidateName.length < 3 && candidateName.toLowerCase() !== name.toLowerCase()) {\n          continue;\n        }\n        const distance = levenshteinWithMax(name, candidateName, bestDistance - 0.1);\n        if (distance === void 0) {\n          continue;\n        }\n        Debug.assert(distance < bestDistance);\n        bestDistance = distance;\n        bestCandidate = candidate;\n      }\n    }\n    return bestCandidate;\n  }\n  function levenshteinWithMax(s1, s2, max) {\n    let previous = new Array(s2.length + 1);\n    let current = new Array(s2.length + 1);\n    const big = max + 0.01;\n    for (let i = 0; i <= s2.length; i++) {\n      previous[i] = i;\n    }\n    for (let i = 1; i <= s1.length; i++) {\n      const c1 = s1.charCodeAt(i - 1);\n      const minJ = Math.ceil(i > max ? i - max : 1);\n      const maxJ = Math.floor(s2.length > max + i ? max + i : s2.length);\n      current[0] = i;\n      let colMin = i;\n      for (let j = 1; j < minJ; j++) {\n        current[j] = big;\n      }\n      for (let j = minJ; j <= maxJ; j++) {\n        const substitutionDistance = s1[i - 1].toLowerCase() === s2[j - 1].toLowerCase() ? previous[j - 1] + 0.1 : previous[j - 1] + 2;\n        const dist = c1 === s2.charCodeAt(j - 1) ? previous[j - 1] : Math.min(previous[j] + 1, current[j - 1] + 1, substitutionDistance);\n        current[j] = dist;\n        colMin = Math.min(colMin, dist);\n      }\n      for (let j = maxJ + 1; j <= s2.length; j++) {\n        current[j] = big;\n      }\n      if (colMin > max) {\n        return void 0;\n      }\n      const temp = previous;\n      previous = current;\n      current = temp;\n    }\n    const res = previous[s2.length];\n    return res > max ? void 0 : res;\n  }\n  function endsWith(str, suffix) {\n    const expectedPos = str.length - suffix.length;\n    return expectedPos >= 0 && str.indexOf(suffix, expectedPos) === expectedPos;\n  }\n  function removeSuffix(str, suffix) {\n    return endsWith(str, suffix) ? str.slice(0, str.length - suffix.length) : str;\n  }\n  function tryRemoveSuffix(str, suffix) {\n    return endsWith(str, suffix) ? str.slice(0, str.length - suffix.length) : void 0;\n  }\n  function stringContains(str, substring) {\n    return str.indexOf(substring) !== -1;\n  }\n  function removeMinAndVersionNumbers(fileName) {\n    let end = fileName.length;\n    for (let pos = end - 1; pos > 0; pos--) {\n      let ch = fileName.charCodeAt(pos);\n      if (ch >= 48 && ch <= 57) {\n        do {\n          --pos;\n          ch = fileName.charCodeAt(pos);\n        } while (pos > 0 && ch >= 48 && ch <= 57);\n      } else if (pos > 4 && (ch === 110 || ch === 78)) {\n        --pos;\n        ch = fileName.charCodeAt(pos);\n        if (ch !== 105 && ch !== 73) {\n          break;\n        }\n        --pos;\n        ch = fileName.charCodeAt(pos);\n        if (ch !== 109 && ch !== 77) {\n          break;\n        }\n        --pos;\n        ch = fileName.charCodeAt(pos);\n      } else {\n        break;\n      }\n      if (ch !== 45 && ch !== 46) {\n        break;\n      }\n      end = pos;\n    }\n    return end === fileName.length ? fileName : fileName.slice(0, end);\n  }\n  function orderedRemoveItem(array, item) {\n    for (let i = 0; i < array.length; i++) {\n      if (array[i] === item) {\n        orderedRemoveItemAt(array, i);\n        return true;\n      }\n    }\n    return false;\n  }\n  function orderedRemoveItemAt(array, index) {\n    for (let i = index; i < array.length - 1; i++) {\n      array[i] = array[i + 1];\n    }\n    array.pop();\n  }\n  function unorderedRemoveItemAt(array, index) {\n    array[index] = array[array.length - 1];\n    array.pop();\n  }\n  function unorderedRemoveItem(array, item) {\n    return unorderedRemoveFirstItemWhere(array, (element) => element === item);\n  }\n  function unorderedRemoveFirstItemWhere(array, predicate) {\n    for (let i = 0; i < array.length; i++) {\n      if (predicate(array[i])) {\n        unorderedRemoveItemAt(array, i);\n        return true;\n      }\n    }\n    return false;\n  }\n  function createGetCanonicalFileName(useCaseSensitiveFileNames) {\n    return useCaseSensitiveFileNames ? identity : toFileNameLowerCase;\n  }\n  function patternText({ prefix, suffix }) {\n    return `${prefix}*${suffix}`;\n  }\n  function matchedText(pattern, candidate) {\n    Debug.assert(isPatternMatch(pattern, candidate));\n    return candidate.substring(pattern.prefix.length, candidate.length - pattern.suffix.length);\n  }\n  function findBestPatternMatch(values, getPattern, candidate) {\n    let matchedValue;\n    let longestMatchPrefixLength = -1;\n    for (const v of values) {\n      const pattern = getPattern(v);\n      if (isPatternMatch(pattern, candidate) && pattern.prefix.length > longestMatchPrefixLength) {\n        longestMatchPrefixLength = pattern.prefix.length;\n        matchedValue = v;\n      }\n    }\n    return matchedValue;\n  }\n  function startsWith(str, prefix) {\n    return str.lastIndexOf(prefix, 0) === 0;\n  }\n  function removePrefix(str, prefix) {\n    return startsWith(str, prefix) ? str.substr(prefix.length) : str;\n  }\n  function tryRemovePrefix(str, prefix, getCanonicalFileName = identity) {\n    return startsWith(getCanonicalFileName(str), getCanonicalFileName(prefix)) ? str.substring(prefix.length) : void 0;\n  }\n  function isPatternMatch({ prefix, suffix }, candidate) {\n    return candidate.length >= prefix.length + suffix.length && startsWith(candidate, prefix) && endsWith(candidate, suffix);\n  }\n  function and(f, g) {\n    return (arg) => f(arg) && g(arg);\n  }\n  function or(...fs) {\n    return (...args) => {\n      let lastResult;\n      for (const f of fs) {\n        lastResult = f(...args);\n        if (lastResult) {\n          return lastResult;\n        }\n      }\n      return lastResult;\n    };\n  }\n  function not(fn) {\n    return (...args) => !fn(...args);\n  }\n  function assertType(_) {\n  }\n  function singleElementArray(t) {\n    return t === void 0 ? void 0 : [t];\n  }\n  function enumerateInsertsAndDeletes(newItems, oldItems, comparer, inserted, deleted, unchanged) {\n    unchanged = unchanged || noop;\n    let newIndex = 0;\n    let oldIndex = 0;\n    const newLen = newItems.length;\n    const oldLen = oldItems.length;\n    let hasChanges = false;\n    while (newIndex < newLen && oldIndex < oldLen) {\n      const newItem = newItems[newIndex];\n      const oldItem = oldItems[oldIndex];\n      const compareResult = comparer(newItem, oldItem);\n      if (compareResult === -1) {\n        inserted(newItem);\n        newIndex++;\n        hasChanges = true;\n      } else if (compareResult === 1) {\n        deleted(oldItem);\n        oldIndex++;\n        hasChanges = true;\n      } else {\n        unchanged(oldItem, newItem);\n        newIndex++;\n        oldIndex++;\n      }\n    }\n    while (newIndex < newLen) {\n      inserted(newItems[newIndex++]);\n      hasChanges = true;\n    }\n    while (oldIndex < oldLen) {\n      deleted(oldItems[oldIndex++]);\n      hasChanges = true;\n    }\n    return hasChanges;\n  }\n  function cartesianProduct(arrays) {\n    const result = [];\n    cartesianProductWorker(arrays, result, void 0, 0);\n    return result;\n  }\n  function cartesianProductWorker(arrays, result, outer, index) {\n    for (const element of arrays[index]) {\n      let inner;\n      if (outer) {\n        inner = outer.slice();\n        inner.push(element);\n      } else {\n        inner = [element];\n      }\n      if (index === arrays.length - 1) {\n        result.push(inner);\n      } else {\n        cartesianProductWorker(arrays, result, inner, index + 1);\n      }\n    }\n  }\n  function padLeft(s, length2, padString = \" \") {\n    return length2 <= s.length ? s : padString.repeat(length2 - s.length) + s;\n  }\n  function padRight(s, length2, padString = \" \") {\n    return length2 <= s.length ? s : s + padString.repeat(length2 - s.length);\n  }\n  function takeWhile(array, predicate) {\n    if (array) {\n      const len = array.length;\n      let index = 0;\n      while (index < len && predicate(array[index])) {\n        index++;\n      }\n      return array.slice(0, index);\n    }\n  }\n  function skipWhile(array, predicate) {\n    if (array) {\n      const len = array.length;\n      let index = 0;\n      while (index < len && predicate(array[index])) {\n        index++;\n      }\n      return array.slice(index);\n    }\n  }\n  function trimEndImpl(s) {\n    let end = s.length - 1;\n    while (end >= 0) {\n      if (!isWhiteSpaceLike(s.charCodeAt(end)))\n        break;\n      end--;\n    }\n    return s.slice(0, end + 1);\n  }\n  function isNodeLikeSystem() {\n    return typeof process !== \"undefined\" && process.nextTick && !process.browser && typeof module === \"object\";\n  }\n  var emptyArray, emptyMap, emptySet, SortKind, elementAt, hasOwnProperty, noopPush, fileNameLowerCaseRegExp, AssertionLevel, createUIStringComparer, uiComparerCaseSensitive, uiLocale, trimString, trimStringEnd, trimStringStart;\n  var init_core = __esm({\n    \"src/compiler/core.ts\"() {\n      \"use strict\";\n      init_ts2();\n      emptyArray = [];\n      emptyMap = /* @__PURE__ */ new Map();\n      emptySet = /* @__PURE__ */ new Set();\n      SortKind = /* @__PURE__ */ ((SortKind2) => {\n        SortKind2[SortKind2[\"None\"] = 0] = \"None\";\n        SortKind2[SortKind2[\"CaseSensitive\"] = 1] = \"CaseSensitive\";\n        SortKind2[SortKind2[\"CaseInsensitive\"] = 2] = \"CaseInsensitive\";\n        SortKind2[SortKind2[\"Both\"] = 3] = \"Both\";\n        return SortKind2;\n      })(SortKind || {});\n      elementAt = !!Array.prototype.at ? (array, offset) => array == null ? void 0 : array.at(offset) : (array, offset) => {\n        if (array) {\n          offset = toOffset(array, offset);\n          if (offset < array.length) {\n            return array[offset];\n          }\n        }\n        return void 0;\n      };\n      hasOwnProperty = Object.prototype.hasOwnProperty;\n      noopPush = {\n        push: noop,\n        length: 0\n      };\n      fileNameLowerCaseRegExp = /[^\\u0130\\u0131\\u00DFa-z0-9\\\\/:\\-_\\. ]+/g;\n      AssertionLevel = /* @__PURE__ */ ((AssertionLevel2) => {\n        AssertionLevel2[AssertionLevel2[\"None\"] = 0] = \"None\";\n        AssertionLevel2[AssertionLevel2[\"Normal\"] = 1] = \"Normal\";\n        AssertionLevel2[AssertionLevel2[\"Aggressive\"] = 2] = \"Aggressive\";\n        AssertionLevel2[AssertionLevel2[\"VeryAggressive\"] = 3] = \"VeryAggressive\";\n        return AssertionLevel2;\n      })(AssertionLevel || {});\n      createUIStringComparer = (() => {\n        let defaultComparer;\n        let enUSComparer;\n        const stringComparerFactory = getStringComparerFactory();\n        return createStringComparer;\n        function compareWithCallback(a, b, comparer) {\n          if (a === b)\n            return 0;\n          if (a === void 0)\n            return -1;\n          if (b === void 0)\n            return 1;\n          const value = comparer(a, b);\n          return value < 0 ? -1 : value > 0 ? 1 : 0;\n        }\n        function createIntlCollatorStringComparer(locale) {\n          const comparer = new Intl.Collator(locale, { usage: \"sort\", sensitivity: \"variant\" }).compare;\n          return (a, b) => compareWithCallback(a, b, comparer);\n        }\n        function createLocaleCompareStringComparer(locale) {\n          if (locale !== void 0)\n            return createFallbackStringComparer();\n          return (a, b) => compareWithCallback(a, b, compareStrings);\n          function compareStrings(a, b) {\n            return a.localeCompare(b);\n          }\n        }\n        function createFallbackStringComparer() {\n          return (a, b) => compareWithCallback(a, b, compareDictionaryOrder);\n          function compareDictionaryOrder(a, b) {\n            return compareStrings(a.toUpperCase(), b.toUpperCase()) || compareStrings(a, b);\n          }\n          function compareStrings(a, b) {\n            return a < b ? -1 : a > b ? 1 : 0;\n          }\n        }\n        function getStringComparerFactory() {\n          if (typeof Intl === \"object\" && typeof Intl.Collator === \"function\") {\n            return createIntlCollatorStringComparer;\n          }\n          if (typeof String.prototype.localeCompare === \"function\" && typeof String.prototype.toLocaleUpperCase === \"function\" && \"a\".localeCompare(\"B\") < 0) {\n            return createLocaleCompareStringComparer;\n          }\n          return createFallbackStringComparer;\n        }\n        function createStringComparer(locale) {\n          if (locale === void 0) {\n            return defaultComparer || (defaultComparer = stringComparerFactory(locale));\n          } else if (locale === \"en-US\") {\n            return enUSComparer || (enUSComparer = stringComparerFactory(locale));\n          } else {\n            return stringComparerFactory(locale);\n          }\n        }\n      })();\n      trimString = !!String.prototype.trim ? (s) => s.trim() : (s) => trimStringEnd(trimStringStart(s));\n      trimStringEnd = !!String.prototype.trimEnd ? (s) => s.trimEnd() : trimEndImpl;\n      trimStringStart = !!String.prototype.trimStart ? (s) => s.trimStart() : (s) => s.replace(/^\\s+/g, \"\");\n    }\n  });\n  var LogLevel, Debug;\n  var init_debug = __esm({\n    \"src/compiler/debug.ts\"() {\n      \"use strict\";\n      init_ts2();\n      init_ts2();\n      LogLevel = /* @__PURE__ */ ((LogLevel2) => {\n        LogLevel2[LogLevel2[\"Off\"] = 0] = \"Off\";\n        LogLevel2[LogLevel2[\"Error\"] = 1] = \"Error\";\n        LogLevel2[LogLevel2[\"Warning\"] = 2] = \"Warning\";\n        LogLevel2[LogLevel2[\"Info\"] = 3] = \"Info\";\n        LogLevel2[LogLevel2[\"Verbose\"] = 4] = \"Verbose\";\n        return LogLevel2;\n      })(LogLevel || {});\n      ((Debug2) => {\n        let currentAssertionLevel = 0;\n        Debug2.currentLogLevel = 2;\n        Debug2.isDebugging = false;\n        function shouldLog(level) {\n          return Debug2.currentLogLevel <= level;\n        }\n        Debug2.shouldLog = shouldLog;\n        function logMessage(level, s) {\n          if (Debug2.loggingHost && shouldLog(level)) {\n            Debug2.loggingHost.log(level, s);\n          }\n        }\n        function log(s) {\n          logMessage(3, s);\n        }\n        Debug2.log = log;\n        ((_log) => {\n          function error(s) {\n            logMessage(1, s);\n          }\n          _log.error = error;\n          function warn(s) {\n            logMessage(2, s);\n          }\n          _log.warn = warn;\n          function log2(s) {\n            logMessage(3, s);\n          }\n          _log.log = log2;\n          function trace2(s) {\n            logMessage(4, s);\n          }\n          _log.trace = trace2;\n        })(log = Debug2.log || (Debug2.log = {}));\n        const assertionCache = {};\n        function getAssertionLevel() {\n          return currentAssertionLevel;\n        }\n        Debug2.getAssertionLevel = getAssertionLevel;\n        function setAssertionLevel(level) {\n          const prevAssertionLevel = currentAssertionLevel;\n          currentAssertionLevel = level;\n          if (level > prevAssertionLevel) {\n            for (const key of getOwnKeys(assertionCache)) {\n              const cachedFunc = assertionCache[key];\n              if (cachedFunc !== void 0 && Debug2[key] !== cachedFunc.assertion && level >= cachedFunc.level) {\n                Debug2[key] = cachedFunc;\n                assertionCache[key] = void 0;\n              }\n            }\n          }\n        }\n        Debug2.setAssertionLevel = setAssertionLevel;\n        function shouldAssert(level) {\n          return currentAssertionLevel >= level;\n        }\n        Debug2.shouldAssert = shouldAssert;\n        function shouldAssertFunction(level, name) {\n          if (!shouldAssert(level)) {\n            assertionCache[name] = { level, assertion: Debug2[name] };\n            Debug2[name] = noop;\n            return false;\n          }\n          return true;\n        }\n        function fail(message, stackCrawlMark) {\n          const e = new Error(message ? `Debug Failure. ${message}` : \"Debug Failure.\");\n          if (Error.captureStackTrace) {\n            Error.captureStackTrace(e, stackCrawlMark || fail);\n          }\n          throw e;\n        }\n        Debug2.fail = fail;\n        function failBadSyntaxKind(node, message, stackCrawlMark) {\n          return fail(`${message || \"Unexpected node.\"}\\r\nNode ${formatSyntaxKind(node.kind)} was unexpected.`, stackCrawlMark || failBadSyntaxKind);\n        }\n        Debug2.failBadSyntaxKind = failBadSyntaxKind;\n        function assert(expression, message, verboseDebugInfo, stackCrawlMark) {\n          if (!expression) {\n            message = message ? `False expression: ${message}` : \"False expression.\";\n            if (verboseDebugInfo) {\n              message += \"\\r\\nVerbose Debug Information: \" + (typeof verboseDebugInfo === \"string\" ? verboseDebugInfo : verboseDebugInfo());\n            }\n            fail(message, stackCrawlMark || assert);\n          }\n        }\n        Debug2.assert = assert;\n        function assertEqual(a, b, msg, msg2, stackCrawlMark) {\n          if (a !== b) {\n            const message = msg ? msg2 ? `${msg} ${msg2}` : msg : \"\";\n            fail(`Expected ${a} === ${b}. ${message}`, stackCrawlMark || assertEqual);\n          }\n        }\n        Debug2.assertEqual = assertEqual;\n        function assertLessThan(a, b, msg, stackCrawlMark) {\n          if (a >= b) {\n            fail(`Expected ${a} < ${b}. ${msg || \"\"}`, stackCrawlMark || assertLessThan);\n          }\n        }\n        Debug2.assertLessThan = assertLessThan;\n        function assertLessThanOrEqual(a, b, stackCrawlMark) {\n          if (a > b) {\n            fail(`Expected ${a} <= ${b}`, stackCrawlMark || assertLessThanOrEqual);\n          }\n        }\n        Debug2.assertLessThanOrEqual = assertLessThanOrEqual;\n        function assertGreaterThanOrEqual(a, b, stackCrawlMark) {\n          if (a < b) {\n            fail(`Expected ${a} >= ${b}`, stackCrawlMark || assertGreaterThanOrEqual);\n          }\n        }\n        Debug2.assertGreaterThanOrEqual = assertGreaterThanOrEqual;\n        function assertIsDefined(value, message, stackCrawlMark) {\n          if (value === void 0 || value === null) {\n            fail(message, stackCrawlMark || assertIsDefined);\n          }\n        }\n        Debug2.assertIsDefined = assertIsDefined;\n        function checkDefined(value, message, stackCrawlMark) {\n          assertIsDefined(value, message, stackCrawlMark || checkDefined);\n          return value;\n        }\n        Debug2.checkDefined = checkDefined;\n        function assertEachIsDefined(value, message, stackCrawlMark) {\n          for (const v of value) {\n            assertIsDefined(v, message, stackCrawlMark || assertEachIsDefined);\n          }\n        }\n        Debug2.assertEachIsDefined = assertEachIsDefined;\n        function checkEachDefined(value, message, stackCrawlMark) {\n          assertEachIsDefined(value, message, stackCrawlMark || checkEachDefined);\n          return value;\n        }\n        Debug2.checkEachDefined = checkEachDefined;\n        function assertNever(member, message = \"Illegal value:\", stackCrawlMark) {\n          const detail = typeof member === \"object\" && hasProperty(member, \"kind\") && hasProperty(member, \"pos\") ? \"SyntaxKind: \" + formatSyntaxKind(member.kind) : JSON.stringify(member);\n          return fail(`${message} ${detail}`, stackCrawlMark || assertNever);\n        }\n        Debug2.assertNever = assertNever;\n        function assertEachNode(nodes, test, message, stackCrawlMark) {\n          if (shouldAssertFunction(1, \"assertEachNode\")) {\n            assert(test === void 0 || every(nodes, test), message || \"Unexpected node.\", () => `Node array did not pass test '${getFunctionName(test)}'.`, stackCrawlMark || assertEachNode);\n          }\n        }\n        Debug2.assertEachNode = assertEachNode;\n        function assertNode(node, test, message, stackCrawlMark) {\n          if (shouldAssertFunction(1, \"assertNode\")) {\n            assert(node !== void 0 && (test === void 0 || test(node)), message || \"Unexpected node.\", () => `Node ${formatSyntaxKind(node == null ? void 0 : node.kind)} did not pass test '${getFunctionName(test)}'.`, stackCrawlMark || assertNode);\n          }\n        }\n        Debug2.assertNode = assertNode;\n        function assertNotNode(node, test, message, stackCrawlMark) {\n          if (shouldAssertFunction(1, \"assertNotNode\")) {\n            assert(node === void 0 || test === void 0 || !test(node), message || \"Unexpected node.\", () => `Node ${formatSyntaxKind(node.kind)} should not have passed test '${getFunctionName(test)}'.`, stackCrawlMark || assertNotNode);\n          }\n        }\n        Debug2.assertNotNode = assertNotNode;\n        function assertOptionalNode(node, test, message, stackCrawlMark) {\n          if (shouldAssertFunction(1, \"assertOptionalNode\")) {\n            assert(test === void 0 || node === void 0 || test(node), message || \"Unexpected node.\", () => `Node ${formatSyntaxKind(node == null ? void 0 : node.kind)} did not pass test '${getFunctionName(test)}'.`, stackCrawlMark || assertOptionalNode);\n          }\n        }\n        Debug2.assertOptionalNode = assertOptionalNode;\n        function assertOptionalToken(node, kind, message, stackCrawlMark) {\n          if (shouldAssertFunction(1, \"assertOptionalToken\")) {\n            assert(kind === void 0 || node === void 0 || node.kind === kind, message || \"Unexpected node.\", () => `Node ${formatSyntaxKind(node == null ? void 0 : node.kind)} was not a '${formatSyntaxKind(kind)}' token.`, stackCrawlMark || assertOptionalToken);\n          }\n        }\n        Debug2.assertOptionalToken = assertOptionalToken;\n        function assertMissingNode(node, message, stackCrawlMark) {\n          if (shouldAssertFunction(1, \"assertMissingNode\")) {\n            assert(node === void 0, message || \"Unexpected node.\", () => `Node ${formatSyntaxKind(node.kind)} was unexpected'.`, stackCrawlMark || assertMissingNode);\n          }\n        }\n        Debug2.assertMissingNode = assertMissingNode;\n        function type(_value) {\n        }\n        Debug2.type = type;\n        function getFunctionName(func) {\n          if (typeof func !== \"function\") {\n            return \"\";\n          } else if (hasProperty(func, \"name\")) {\n            return func.name;\n          } else {\n            const text = Function.prototype.toString.call(func);\n            const match = /^function\\s+([\\w\\$]+)\\s*\\(/.exec(text);\n            return match ? match[1] : \"\";\n          }\n        }\n        Debug2.getFunctionName = getFunctionName;\n        function formatSymbol(symbol) {\n          return `{ name: ${unescapeLeadingUnderscores(symbol.escapedName)}; flags: ${formatSymbolFlags(symbol.flags)}; declarations: ${map(symbol.declarations, (node) => formatSyntaxKind(node.kind))} }`;\n        }\n        Debug2.formatSymbol = formatSymbol;\n        function formatEnum(value = 0, enumObject, isFlags) {\n          const members = getEnumMembers(enumObject);\n          if (value === 0) {\n            return members.length > 0 && members[0][0] === 0 ? members[0][1] : \"0\";\n          }\n          if (isFlags) {\n            const result = [];\n            let remainingFlags = value;\n            for (const [enumValue, enumName] of members) {\n              if (enumValue > value) {\n                break;\n              }\n              if (enumValue !== 0 && enumValue & value) {\n                result.push(enumName);\n                remainingFlags &= ~enumValue;\n              }\n            }\n            if (remainingFlags === 0) {\n              return result.join(\"|\");\n            }\n          } else {\n            for (const [enumValue, enumName] of members) {\n              if (enumValue === value) {\n                return enumName;\n              }\n            }\n          }\n          return value.toString();\n        }\n        Debug2.formatEnum = formatEnum;\n        const enumMemberCache = /* @__PURE__ */ new Map();\n        function getEnumMembers(enumObject) {\n          const existing = enumMemberCache.get(enumObject);\n          if (existing) {\n            return existing;\n          }\n          const result = [];\n          for (const name in enumObject) {\n            const value = enumObject[name];\n            if (typeof value === \"number\") {\n              result.push([value, name]);\n            }\n          }\n          const sorted = stableSort(result, (x, y) => compareValues(x[0], y[0]));\n          enumMemberCache.set(enumObject, sorted);\n          return sorted;\n        }\n        function formatSyntaxKind(kind) {\n          return formatEnum(kind, SyntaxKind, false);\n        }\n        Debug2.formatSyntaxKind = formatSyntaxKind;\n        function formatSnippetKind(kind) {\n          return formatEnum(kind, SnippetKind, false);\n        }\n        Debug2.formatSnippetKind = formatSnippetKind;\n        function formatNodeFlags(flags) {\n          return formatEnum(flags, NodeFlags, true);\n        }\n        Debug2.formatNodeFlags = formatNodeFlags;\n        function formatModifierFlags(flags) {\n          return formatEnum(flags, ModifierFlags, true);\n        }\n        Debug2.formatModifierFlags = formatModifierFlags;\n        function formatTransformFlags(flags) {\n          return formatEnum(flags, TransformFlags, true);\n        }\n        Debug2.formatTransformFlags = formatTransformFlags;\n        function formatEmitFlags(flags) {\n          return formatEnum(flags, EmitFlags, true);\n        }\n        Debug2.formatEmitFlags = formatEmitFlags;\n        function formatSymbolFlags(flags) {\n          return formatEnum(flags, SymbolFlags, true);\n        }\n        Debug2.formatSymbolFlags = formatSymbolFlags;\n        function formatTypeFlags(flags) {\n          return formatEnum(flags, TypeFlags, true);\n        }\n        Debug2.formatTypeFlags = formatTypeFlags;\n        function formatSignatureFlags(flags) {\n          return formatEnum(flags, SignatureFlags, true);\n        }\n        Debug2.formatSignatureFlags = formatSignatureFlags;\n        function formatObjectFlags(flags) {\n          return formatEnum(flags, ObjectFlags, true);\n        }\n        Debug2.formatObjectFlags = formatObjectFlags;\n        function formatFlowFlags(flags) {\n          return formatEnum(flags, FlowFlags, true);\n        }\n        Debug2.formatFlowFlags = formatFlowFlags;\n        function formatRelationComparisonResult(result) {\n          return formatEnum(result, RelationComparisonResult, true);\n        }\n        Debug2.formatRelationComparisonResult = formatRelationComparisonResult;\n        function formatCheckMode(mode) {\n          return formatEnum(mode, CheckMode, true);\n        }\n        Debug2.formatCheckMode = formatCheckMode;\n        function formatSignatureCheckMode(mode) {\n          return formatEnum(mode, SignatureCheckMode, true);\n        }\n        Debug2.formatSignatureCheckMode = formatSignatureCheckMode;\n        function formatTypeFacts(facts) {\n          return formatEnum(facts, TypeFacts, true);\n        }\n        Debug2.formatTypeFacts = formatTypeFacts;\n        let isDebugInfoEnabled = false;\n        let flowNodeProto;\n        function attachFlowNodeDebugInfoWorker(flowNode) {\n          if (!(\"__debugFlowFlags\" in flowNode)) {\n            Object.defineProperties(flowNode, {\n              __tsDebuggerDisplay: {\n                value() {\n                  const flowHeader = this.flags & 2 ? \"FlowStart\" : this.flags & 4 ? \"FlowBranchLabel\" : this.flags & 8 ? \"FlowLoopLabel\" : this.flags & 16 ? \"FlowAssignment\" : this.flags & 32 ? \"FlowTrueCondition\" : this.flags & 64 ? \"FlowFalseCondition\" : this.flags & 128 ? \"FlowSwitchClause\" : this.flags & 256 ? \"FlowArrayMutation\" : this.flags & 512 ? \"FlowCall\" : this.flags & 1024 ? \"FlowReduceLabel\" : this.flags & 1 ? \"FlowUnreachable\" : \"UnknownFlow\";\n                  const remainingFlags = this.flags & ~(2048 - 1);\n                  return `${flowHeader}${remainingFlags ? ` (${formatFlowFlags(remainingFlags)})` : \"\"}`;\n                }\n              },\n              __debugFlowFlags: { get() {\n                return formatEnum(this.flags, FlowFlags, true);\n              } },\n              __debugToString: { value() {\n                return formatControlFlowGraph(this);\n              } }\n            });\n          }\n        }\n        function attachFlowNodeDebugInfo(flowNode) {\n          if (isDebugInfoEnabled) {\n            if (typeof Object.setPrototypeOf === \"function\") {\n              if (!flowNodeProto) {\n                flowNodeProto = Object.create(Object.prototype);\n                attachFlowNodeDebugInfoWorker(flowNodeProto);\n              }\n              Object.setPrototypeOf(flowNode, flowNodeProto);\n            } else {\n              attachFlowNodeDebugInfoWorker(flowNode);\n            }\n          }\n        }\n        Debug2.attachFlowNodeDebugInfo = attachFlowNodeDebugInfo;\n        let nodeArrayProto;\n        function attachNodeArrayDebugInfoWorker(array) {\n          if (!(\"__tsDebuggerDisplay\" in array)) {\n            Object.defineProperties(array, {\n              __tsDebuggerDisplay: {\n                value(defaultValue) {\n                  defaultValue = String(defaultValue).replace(/(?:,[\\s\\w\\d_]+:[^,]+)+\\]$/, \"]\");\n                  return `NodeArray ${defaultValue}`;\n                }\n              }\n            });\n          }\n        }\n        function attachNodeArrayDebugInfo(array) {\n          if (isDebugInfoEnabled) {\n            if (typeof Object.setPrototypeOf === \"function\") {\n              if (!nodeArrayProto) {\n                nodeArrayProto = Object.create(Array.prototype);\n                attachNodeArrayDebugInfoWorker(nodeArrayProto);\n              }\n              Object.setPrototypeOf(array, nodeArrayProto);\n            } else {\n              attachNodeArrayDebugInfoWorker(array);\n            }\n          }\n        }\n        Debug2.attachNodeArrayDebugInfo = attachNodeArrayDebugInfo;\n        function enableDebugInfo() {\n          if (isDebugInfoEnabled)\n            return;\n          const weakTypeTextMap = /* @__PURE__ */ new WeakMap();\n          const weakNodeTextMap = /* @__PURE__ */ new WeakMap();\n          Object.defineProperties(objectAllocator.getSymbolConstructor().prototype, {\n            __tsDebuggerDisplay: {\n              value() {\n                const symbolHeader = this.flags & 33554432 ? \"TransientSymbol\" : \"Symbol\";\n                const remainingSymbolFlags = this.flags & ~33554432;\n                return `${symbolHeader} '${symbolName(this)}'${remainingSymbolFlags ? ` (${formatSymbolFlags(remainingSymbolFlags)})` : \"\"}`;\n              }\n            },\n            __debugFlags: { get() {\n              return formatSymbolFlags(this.flags);\n            } }\n          });\n          Object.defineProperties(objectAllocator.getTypeConstructor().prototype, {\n            __tsDebuggerDisplay: {\n              value() {\n                const typeHeader = this.flags & 98304 ? \"NullableType\" : this.flags & 384 ? `LiteralType ${JSON.stringify(this.value)}` : this.flags & 2048 ? `LiteralType ${this.value.negative ? \"-\" : \"\"}${this.value.base10Value}n` : this.flags & 8192 ? \"UniqueESSymbolType\" : this.flags & 32 ? \"EnumType\" : this.flags & 67359327 ? `IntrinsicType ${this.intrinsicName}` : this.flags & 1048576 ? \"UnionType\" : this.flags & 2097152 ? \"IntersectionType\" : this.flags & 4194304 ? \"IndexType\" : this.flags & 8388608 ? \"IndexedAccessType\" : this.flags & 16777216 ? \"ConditionalType\" : this.flags & 33554432 ? \"SubstitutionType\" : this.flags & 262144 ? \"TypeParameter\" : this.flags & 524288 ? this.objectFlags & 3 ? \"InterfaceType\" : this.objectFlags & 4 ? \"TypeReference\" : this.objectFlags & 8 ? \"TupleType\" : this.objectFlags & 16 ? \"AnonymousType\" : this.objectFlags & 32 ? \"MappedType\" : this.objectFlags & 1024 ? \"ReverseMappedType\" : this.objectFlags & 256 ? \"EvolvingArrayType\" : \"ObjectType\" : \"Type\";\n                const remainingObjectFlags = this.flags & 524288 ? this.objectFlags & ~1343 : 0;\n                return `${typeHeader}${this.symbol ? ` '${symbolName(this.symbol)}'` : \"\"}${remainingObjectFlags ? ` (${formatObjectFlags(remainingObjectFlags)})` : \"\"}`;\n              }\n            },\n            __debugFlags: { get() {\n              return formatTypeFlags(this.flags);\n            } },\n            __debugObjectFlags: { get() {\n              return this.flags & 524288 ? formatObjectFlags(this.objectFlags) : \"\";\n            } },\n            __debugTypeToString: {\n              value() {\n                let text = weakTypeTextMap.get(this);\n                if (text === void 0) {\n                  text = this.checker.typeToString(this);\n                  weakTypeTextMap.set(this, text);\n                }\n                return text;\n              }\n            }\n          });\n          Object.defineProperties(objectAllocator.getSignatureConstructor().prototype, {\n            __debugFlags: { get() {\n              return formatSignatureFlags(this.flags);\n            } },\n            __debugSignatureToString: { value() {\n              var _a2;\n              return (_a2 = this.checker) == null ? void 0 : _a2.signatureToString(this);\n            } }\n          });\n          const nodeConstructors = [\n            objectAllocator.getNodeConstructor(),\n            objectAllocator.getIdentifierConstructor(),\n            objectAllocator.getTokenConstructor(),\n            objectAllocator.getSourceFileConstructor()\n          ];\n          for (const ctor of nodeConstructors) {\n            if (!hasProperty(ctor.prototype, \"__debugKind\")) {\n              Object.defineProperties(ctor.prototype, {\n                __tsDebuggerDisplay: {\n                  value() {\n                    const nodeHeader = isGeneratedIdentifier(this) ? \"GeneratedIdentifier\" : isIdentifier(this) ? `Identifier '${idText(this)}'` : isPrivateIdentifier(this) ? `PrivateIdentifier '${idText(this)}'` : isStringLiteral(this) ? `StringLiteral ${JSON.stringify(this.text.length < 10 ? this.text : this.text.slice(10) + \"...\")}` : isNumericLiteral(this) ? `NumericLiteral ${this.text}` : isBigIntLiteral(this) ? `BigIntLiteral ${this.text}n` : isTypeParameterDeclaration(this) ? \"TypeParameterDeclaration\" : isParameter(this) ? \"ParameterDeclaration\" : isConstructorDeclaration(this) ? \"ConstructorDeclaration\" : isGetAccessorDeclaration(this) ? \"GetAccessorDeclaration\" : isSetAccessorDeclaration(this) ? \"SetAccessorDeclaration\" : isCallSignatureDeclaration(this) ? \"CallSignatureDeclaration\" : isConstructSignatureDeclaration(this) ? \"ConstructSignatureDeclaration\" : isIndexSignatureDeclaration(this) ? \"IndexSignatureDeclaration\" : isTypePredicateNode(this) ? \"TypePredicateNode\" : isTypeReferenceNode(this) ? \"TypeReferenceNode\" : isFunctionTypeNode(this) ? \"FunctionTypeNode\" : isConstructorTypeNode(this) ? \"ConstructorTypeNode\" : isTypeQueryNode(this) ? \"TypeQueryNode\" : isTypeLiteralNode(this) ? \"TypeLiteralNode\" : isArrayTypeNode(this) ? \"ArrayTypeNode\" : isTupleTypeNode(this) ? \"TupleTypeNode\" : isOptionalTypeNode(this) ? \"OptionalTypeNode\" : isRestTypeNode(this) ? \"RestTypeNode\" : isUnionTypeNode(this) ? \"UnionTypeNode\" : isIntersectionTypeNode(this) ? \"IntersectionTypeNode\" : isConditionalTypeNode(this) ? \"ConditionalTypeNode\" : isInferTypeNode(this) ? \"InferTypeNode\" : isParenthesizedTypeNode(this) ? \"ParenthesizedTypeNode\" : isThisTypeNode(this) ? \"ThisTypeNode\" : isTypeOperatorNode(this) ? \"TypeOperatorNode\" : isIndexedAccessTypeNode(this) ? \"IndexedAccessTypeNode\" : isMappedTypeNode(this) ? \"MappedTypeNode\" : isLiteralTypeNode(this) ? \"LiteralTypeNode\" : isNamedTupleMember(this) ? \"NamedTupleMember\" : isImportTypeNode(this) ? \"ImportTypeNode\" : formatSyntaxKind(this.kind);\n                    return `${nodeHeader}${this.flags ? ` (${formatNodeFlags(this.flags)})` : \"\"}`;\n                  }\n                },\n                __debugKind: { get() {\n                  return formatSyntaxKind(this.kind);\n                } },\n                __debugNodeFlags: { get() {\n                  return formatNodeFlags(this.flags);\n                } },\n                __debugModifierFlags: { get() {\n                  return formatModifierFlags(getEffectiveModifierFlagsNoCache(this));\n                } },\n                __debugTransformFlags: { get() {\n                  return formatTransformFlags(this.transformFlags);\n                } },\n                __debugIsParseTreeNode: { get() {\n                  return isParseTreeNode(this);\n                } },\n                __debugEmitFlags: { get() {\n                  return formatEmitFlags(getEmitFlags(this));\n                } },\n                __debugGetText: {\n                  value(includeTrivia) {\n                    if (nodeIsSynthesized(this))\n                      return \"\";\n                    let text = weakNodeTextMap.get(this);\n                    if (text === void 0) {\n                      const parseNode = getParseTreeNode(this);\n                      const sourceFile = parseNode && getSourceFileOfNode(parseNode);\n                      text = sourceFile ? getSourceTextOfNodeFromSourceFile(sourceFile, parseNode, includeTrivia) : \"\";\n                      weakNodeTextMap.set(this, text);\n                    }\n                    return text;\n                  }\n                }\n              });\n            }\n          }\n          isDebugInfoEnabled = true;\n        }\n        Debug2.enableDebugInfo = enableDebugInfo;\n        function formatVariance(varianceFlags) {\n          const variance = varianceFlags & 7;\n          let result = variance === 0 ? \"in out\" : variance === 3 ? \"[bivariant]\" : variance === 2 ? \"in\" : variance === 1 ? \"out\" : variance === 4 ? \"[independent]\" : \"\";\n          if (varianceFlags & 8) {\n            result += \" (unmeasurable)\";\n          } else if (varianceFlags & 16) {\n            result += \" (unreliable)\";\n          }\n          return result;\n        }\n        Debug2.formatVariance = formatVariance;\n        class DebugTypeMapper {\n          __debugToString() {\n            var _a2;\n            type(this);\n            switch (this.kind) {\n              case 3:\n                return ((_a2 = this.debugInfo) == null ? void 0 : _a2.call(this)) || \"(function mapper)\";\n              case 0:\n                return `${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;\n              case 1:\n                return zipWith(this.sources, this.targets || map(this.sources, () => \"any\"), (s, t) => `${s.__debugTypeToString()} -> ${typeof t === \"string\" ? t : t.__debugTypeToString()}`).join(\", \");\n              case 2:\n                return zipWith(this.sources, this.targets, (s, t) => `${s.__debugTypeToString()} -> ${t().__debugTypeToString()}`).join(\", \");\n              case 5:\n              case 4:\n                return `m1: ${this.mapper1.__debugToString().split(\"\\n\").join(\"\\n    \")}\nm2: ${this.mapper2.__debugToString().split(\"\\n\").join(\"\\n    \")}`;\n              default:\n                return assertNever(this);\n            }\n          }\n        }\n        Debug2.DebugTypeMapper = DebugTypeMapper;\n        function attachDebugPrototypeIfDebug(mapper) {\n          if (Debug2.isDebugging) {\n            return Object.setPrototypeOf(mapper, DebugTypeMapper.prototype);\n          }\n          return mapper;\n        }\n        Debug2.attachDebugPrototypeIfDebug = attachDebugPrototypeIfDebug;\n        function printControlFlowGraph(flowNode) {\n          return console.log(formatControlFlowGraph(flowNode));\n        }\n        Debug2.printControlFlowGraph = printControlFlowGraph;\n        function formatControlFlowGraph(flowNode) {\n          let nextDebugFlowId = -1;\n          function getDebugFlowNodeId(f) {\n            if (!f.id) {\n              f.id = nextDebugFlowId;\n              nextDebugFlowId--;\n            }\n            return f.id;\n          }\n          let BoxCharacter;\n          ((BoxCharacter2) => {\n            BoxCharacter2[\"lr\"] = \"\\u2500\";\n            BoxCharacter2[\"ud\"] = \"\\u2502\";\n            BoxCharacter2[\"dr\"] = \"\\u256D\";\n            BoxCharacter2[\"dl\"] = \"\\u256E\";\n            BoxCharacter2[\"ul\"] = \"\\u256F\";\n            BoxCharacter2[\"ur\"] = \"\\u2570\";\n            BoxCharacter2[\"udr\"] = \"\\u251C\";\n            BoxCharacter2[\"udl\"] = \"\\u2524\";\n            BoxCharacter2[\"dlr\"] = \"\\u252C\";\n            BoxCharacter2[\"ulr\"] = \"\\u2534\";\n            BoxCharacter2[\"udlr\"] = \"\\u256B\";\n          })(BoxCharacter || (BoxCharacter = {}));\n          let Connection;\n          ((Connection2) => {\n            Connection2[Connection2[\"None\"] = 0] = \"None\";\n            Connection2[Connection2[\"Up\"] = 1] = \"Up\";\n            Connection2[Connection2[\"Down\"] = 2] = \"Down\";\n            Connection2[Connection2[\"Left\"] = 4] = \"Left\";\n            Connection2[Connection2[\"Right\"] = 8] = \"Right\";\n            Connection2[Connection2[\"UpDown\"] = 3] = \"UpDown\";\n            Connection2[Connection2[\"LeftRight\"] = 12] = \"LeftRight\";\n            Connection2[Connection2[\"UpLeft\"] = 5] = \"UpLeft\";\n            Connection2[Connection2[\"UpRight\"] = 9] = \"UpRight\";\n            Connection2[Connection2[\"DownLeft\"] = 6] = \"DownLeft\";\n            Connection2[Connection2[\"DownRight\"] = 10] = \"DownRight\";\n            Connection2[Connection2[\"UpDownLeft\"] = 7] = \"UpDownLeft\";\n            Connection2[Connection2[\"UpDownRight\"] = 11] = \"UpDownRight\";\n            Connection2[Connection2[\"UpLeftRight\"] = 13] = \"UpLeftRight\";\n            Connection2[Connection2[\"DownLeftRight\"] = 14] = \"DownLeftRight\";\n            Connection2[Connection2[\"UpDownLeftRight\"] = 15] = \"UpDownLeftRight\";\n            Connection2[Connection2[\"NoChildren\"] = 16] = \"NoChildren\";\n          })(Connection || (Connection = {}));\n          const hasAntecedentFlags = 16 | 96 | 128 | 256 | 512 | 1024;\n          const hasNodeFlags = 2 | 16 | 512 | 96 | 256;\n          const links = /* @__PURE__ */ Object.create(null);\n          const nodes = [];\n          const edges = [];\n          const root = buildGraphNode(flowNode, /* @__PURE__ */ new Set());\n          for (const node of nodes) {\n            node.text = renderFlowNode(node.flowNode, node.circular);\n            computeLevel(node);\n          }\n          const height = computeHeight(root);\n          const columnWidths = computeColumnWidths(height);\n          computeLanes(root, 0);\n          return renderGraph();\n          function isFlowSwitchClause(f) {\n            return !!(f.flags & 128);\n          }\n          function hasAntecedents(f) {\n            return !!(f.flags & 12) && !!f.antecedents;\n          }\n          function hasAntecedent(f) {\n            return !!(f.flags & hasAntecedentFlags);\n          }\n          function hasNode(f) {\n            return !!(f.flags & hasNodeFlags);\n          }\n          function getChildren(node) {\n            const children = [];\n            for (const edge of node.edges) {\n              if (edge.source === node) {\n                children.push(edge.target);\n              }\n            }\n            return children;\n          }\n          function getParents(node) {\n            const parents = [];\n            for (const edge of node.edges) {\n              if (edge.target === node) {\n                parents.push(edge.source);\n              }\n            }\n            return parents;\n          }\n          function buildGraphNode(flowNode2, seen) {\n            const id = getDebugFlowNodeId(flowNode2);\n            let graphNode = links[id];\n            if (graphNode && seen.has(flowNode2)) {\n              graphNode.circular = true;\n              graphNode = {\n                id: -1,\n                flowNode: flowNode2,\n                edges: [],\n                text: \"\",\n                lane: -1,\n                endLane: -1,\n                level: -1,\n                circular: \"circularity\"\n              };\n              nodes.push(graphNode);\n              return graphNode;\n            }\n            seen.add(flowNode2);\n            if (!graphNode) {\n              links[id] = graphNode = { id, flowNode: flowNode2, edges: [], text: \"\", lane: -1, endLane: -1, level: -1, circular: false };\n              nodes.push(graphNode);\n              if (hasAntecedents(flowNode2)) {\n                for (const antecedent of flowNode2.antecedents) {\n                  buildGraphEdge(graphNode, antecedent, seen);\n                }\n              } else if (hasAntecedent(flowNode2)) {\n                buildGraphEdge(graphNode, flowNode2.antecedent, seen);\n              }\n            }\n            seen.delete(flowNode2);\n            return graphNode;\n          }\n          function buildGraphEdge(source, antecedent, seen) {\n            const target = buildGraphNode(antecedent, seen);\n            const edge = { source, target };\n            edges.push(edge);\n            source.edges.push(edge);\n            target.edges.push(edge);\n          }\n          function computeLevel(node) {\n            if (node.level !== -1) {\n              return node.level;\n            }\n            let level = 0;\n            for (const parent2 of getParents(node)) {\n              level = Math.max(level, computeLevel(parent2) + 1);\n            }\n            return node.level = level;\n          }\n          function computeHeight(node) {\n            let height2 = 0;\n            for (const child of getChildren(node)) {\n              height2 = Math.max(height2, computeHeight(child));\n            }\n            return height2 + 1;\n          }\n          function computeColumnWidths(height2) {\n            const columns = fill(Array(height2), 0);\n            for (const node of nodes) {\n              columns[node.level] = Math.max(columns[node.level], node.text.length);\n            }\n            return columns;\n          }\n          function computeLanes(node, lane) {\n            if (node.lane === -1) {\n              node.lane = lane;\n              node.endLane = lane;\n              const children = getChildren(node);\n              for (let i = 0; i < children.length; i++) {\n                if (i > 0)\n                  lane++;\n                const child = children[i];\n                computeLanes(child, lane);\n                if (child.endLane > node.endLane) {\n                  lane = child.endLane;\n                }\n              }\n              node.endLane = lane;\n            }\n          }\n          function getHeader(flags) {\n            if (flags & 2)\n              return \"Start\";\n            if (flags & 4)\n              return \"Branch\";\n            if (flags & 8)\n              return \"Loop\";\n            if (flags & 16)\n              return \"Assignment\";\n            if (flags & 32)\n              return \"True\";\n            if (flags & 64)\n              return \"False\";\n            if (flags & 128)\n              return \"SwitchClause\";\n            if (flags & 256)\n              return \"ArrayMutation\";\n            if (flags & 512)\n              return \"Call\";\n            if (flags & 1024)\n              return \"ReduceLabel\";\n            if (flags & 1)\n              return \"Unreachable\";\n            throw new Error();\n          }\n          function getNodeText(node) {\n            const sourceFile = getSourceFileOfNode(node);\n            return getSourceTextOfNodeFromSourceFile(sourceFile, node, false);\n          }\n          function renderFlowNode(flowNode2, circular) {\n            let text = getHeader(flowNode2.flags);\n            if (circular) {\n              text = `${text}#${getDebugFlowNodeId(flowNode2)}`;\n            }\n            if (hasNode(flowNode2)) {\n              if (flowNode2.node) {\n                text += ` (${getNodeText(flowNode2.node)})`;\n              }\n            } else if (isFlowSwitchClause(flowNode2)) {\n              const clauses = [];\n              for (let i = flowNode2.clauseStart; i < flowNode2.clauseEnd; i++) {\n                const clause = flowNode2.switchStatement.caseBlock.clauses[i];\n                if (isDefaultClause(clause)) {\n                  clauses.push(\"default\");\n                } else {\n                  clauses.push(getNodeText(clause.expression));\n                }\n              }\n              text += ` (${clauses.join(\", \")})`;\n            }\n            return circular === \"circularity\" ? `Circular(${text})` : text;\n          }\n          function renderGraph() {\n            const columnCount = columnWidths.length;\n            const laneCount = nodes.reduce((x, n) => Math.max(x, n.lane), 0) + 1;\n            const lanes = fill(Array(laneCount), \"\");\n            const grid = columnWidths.map(() => Array(laneCount));\n            const connectors = columnWidths.map(() => fill(Array(laneCount), 0));\n            for (const node of nodes) {\n              grid[node.level][node.lane] = node;\n              const children = getChildren(node);\n              for (let i = 0; i < children.length; i++) {\n                const child = children[i];\n                let connector = 8;\n                if (child.lane === node.lane)\n                  connector |= 4;\n                if (i > 0)\n                  connector |= 1;\n                if (i < children.length - 1)\n                  connector |= 2;\n                connectors[node.level][child.lane] |= connector;\n              }\n              if (children.length === 0) {\n                connectors[node.level][node.lane] |= 16;\n              }\n              const parents = getParents(node);\n              for (let i = 0; i < parents.length; i++) {\n                const parent2 = parents[i];\n                let connector = 4;\n                if (i > 0)\n                  connector |= 1;\n                if (i < parents.length - 1)\n                  connector |= 2;\n                connectors[node.level - 1][parent2.lane] |= connector;\n              }\n            }\n            for (let column = 0; column < columnCount; column++) {\n              for (let lane = 0; lane < laneCount; lane++) {\n                const left = column > 0 ? connectors[column - 1][lane] : 0;\n                const above = lane > 0 ? connectors[column][lane - 1] : 0;\n                let connector = connectors[column][lane];\n                if (!connector) {\n                  if (left & 8)\n                    connector |= 12;\n                  if (above & 2)\n                    connector |= 3;\n                  connectors[column][lane] = connector;\n                }\n              }\n            }\n            for (let column = 0; column < columnCount; column++) {\n              for (let lane = 0; lane < lanes.length; lane++) {\n                const connector = connectors[column][lane];\n                const fill2 = connector & 4 ? \"\\u2500\" : \" \";\n                const node = grid[column][lane];\n                if (!node) {\n                  if (column < columnCount - 1) {\n                    writeLane(lane, repeat(fill2, columnWidths[column] + 1));\n                  }\n                } else {\n                  writeLane(lane, node.text);\n                  if (column < columnCount - 1) {\n                    writeLane(lane, \" \");\n                    writeLane(lane, repeat(fill2, columnWidths[column] - node.text.length));\n                  }\n                }\n                writeLane(lane, getBoxCharacter(connector));\n                writeLane(lane, connector & 8 && column < columnCount - 1 && !grid[column + 1][lane] ? \"\\u2500\" : \" \");\n              }\n            }\n            return `\n${lanes.join(\"\\n\")}\n`;\n            function writeLane(lane, text) {\n              lanes[lane] += text;\n            }\n          }\n          function getBoxCharacter(connector) {\n            switch (connector) {\n              case 3:\n                return \"\\u2502\";\n              case 12:\n                return \"\\u2500\";\n              case 5:\n                return \"\\u256F\";\n              case 9:\n                return \"\\u2570\";\n              case 6:\n                return \"\\u256E\";\n              case 10:\n                return \"\\u256D\";\n              case 7:\n                return \"\\u2524\";\n              case 11:\n                return \"\\u251C\";\n              case 13:\n                return \"\\u2534\";\n              case 14:\n                return \"\\u252C\";\n              case 15:\n                return \"\\u256B\";\n            }\n            return \" \";\n          }\n          function fill(array, value) {\n            if (array.fill) {\n              array.fill(value);\n            } else {\n              for (let i = 0; i < array.length; i++) {\n                array[i] = value;\n              }\n            }\n            return array;\n          }\n          function repeat(ch, length2) {\n            if (ch.repeat) {\n              return length2 > 0 ? ch.repeat(length2) : \"\";\n            }\n            let s = \"\";\n            while (s.length < length2) {\n              s += ch;\n            }\n            return s;\n          }\n        }\n        Debug2.formatControlFlowGraph = formatControlFlowGraph;\n      })(Debug || (Debug = {}));\n    }\n  });\n  function tryParseComponents(text) {\n    const match = versionRegExp.exec(text);\n    if (!match)\n      return void 0;\n    const [, major, minor = \"0\", patch = \"0\", prerelease = \"\", build2 = \"\"] = match;\n    if (prerelease && !prereleaseRegExp.test(prerelease))\n      return void 0;\n    if (build2 && !buildRegExp.test(build2))\n      return void 0;\n    return {\n      major: parseInt(major, 10),\n      minor: parseInt(minor, 10),\n      patch: parseInt(patch, 10),\n      prerelease,\n      build: build2\n    };\n  }\n  function comparePrereleaseIdentifiers(left, right) {\n    if (left === right)\n      return 0;\n    if (left.length === 0)\n      return right.length === 0 ? 0 : 1;\n    if (right.length === 0)\n      return -1;\n    const length2 = Math.min(left.length, right.length);\n    for (let i = 0; i < length2; i++) {\n      const leftIdentifier = left[i];\n      const rightIdentifier = right[i];\n      if (leftIdentifier === rightIdentifier)\n        continue;\n      const leftIsNumeric = numericIdentifierRegExp.test(leftIdentifier);\n      const rightIsNumeric = numericIdentifierRegExp.test(rightIdentifier);\n      if (leftIsNumeric || rightIsNumeric) {\n        if (leftIsNumeric !== rightIsNumeric)\n          return leftIsNumeric ? -1 : 1;\n        const result = compareValues(+leftIdentifier, +rightIdentifier);\n        if (result)\n          return result;\n      } else {\n        const result = compareStringsCaseSensitive(leftIdentifier, rightIdentifier);\n        if (result)\n          return result;\n      }\n    }\n    return compareValues(left.length, right.length);\n  }\n  function parseRange(text) {\n    const alternatives = [];\n    for (let range of trimString(text).split(logicalOrRegExp)) {\n      if (!range)\n        continue;\n      const comparators = [];\n      range = trimString(range);\n      const match = hyphenRegExp.exec(range);\n      if (match) {\n        if (!parseHyphen(match[1], match[2], comparators))\n          return void 0;\n      } else {\n        for (const simple of range.split(whitespaceRegExp)) {\n          const match2 = rangeRegExp.exec(trimString(simple));\n          if (!match2 || !parseComparator(match2[1], match2[2], comparators))\n            return void 0;\n        }\n      }\n      alternatives.push(comparators);\n    }\n    return alternatives;\n  }\n  function parsePartial(text) {\n    const match = partialRegExp.exec(text);\n    if (!match)\n      return void 0;\n    const [, major, minor = \"*\", patch = \"*\", prerelease, build2] = match;\n    const version2 = new Version(isWildcard(major) ? 0 : parseInt(major, 10), isWildcard(major) || isWildcard(minor) ? 0 : parseInt(minor, 10), isWildcard(major) || isWildcard(minor) || isWildcard(patch) ? 0 : parseInt(patch, 10), prerelease, build2);\n    return { version: version2, major, minor, patch };\n  }\n  function parseHyphen(left, right, comparators) {\n    const leftResult = parsePartial(left);\n    if (!leftResult)\n      return false;\n    const rightResult = parsePartial(right);\n    if (!rightResult)\n      return false;\n    if (!isWildcard(leftResult.major)) {\n      comparators.push(createComparator(\">=\", leftResult.version));\n    }\n    if (!isWildcard(rightResult.major)) {\n      comparators.push(isWildcard(rightResult.minor) ? createComparator(\"<\", rightResult.version.increment(\"major\")) : isWildcard(rightResult.patch) ? createComparator(\"<\", rightResult.version.increment(\"minor\")) : createComparator(\"<=\", rightResult.version));\n    }\n    return true;\n  }\n  function parseComparator(operator, text, comparators) {\n    const result = parsePartial(text);\n    if (!result)\n      return false;\n    const { version: version2, major, minor, patch } = result;\n    if (!isWildcard(major)) {\n      switch (operator) {\n        case \"~\":\n          comparators.push(createComparator(\">=\", version2));\n          comparators.push(createComparator(\"<\", version2.increment(isWildcard(minor) ? \"major\" : \"minor\")));\n          break;\n        case \"^\":\n          comparators.push(createComparator(\">=\", version2));\n          comparators.push(createComparator(\"<\", version2.increment(version2.major > 0 || isWildcard(minor) ? \"major\" : version2.minor > 0 || isWildcard(patch) ? \"minor\" : \"patch\")));\n          break;\n        case \"<\":\n        case \">=\":\n          comparators.push(isWildcard(minor) || isWildcard(patch) ? createComparator(operator, version2.with({ prerelease: \"0\" })) : createComparator(operator, version2));\n          break;\n        case \"<=\":\n        case \">\":\n          comparators.push(isWildcard(minor) ? createComparator(operator === \"<=\" ? \"<\" : \">=\", version2.increment(\"major\").with({ prerelease: \"0\" })) : isWildcard(patch) ? createComparator(operator === \"<=\" ? \"<\" : \">=\", version2.increment(\"minor\").with({ prerelease: \"0\" })) : createComparator(operator, version2));\n          break;\n        case \"=\":\n        case void 0:\n          if (isWildcard(minor) || isWildcard(patch)) {\n            comparators.push(createComparator(\">=\", version2.with({ prerelease: \"0\" })));\n            comparators.push(createComparator(\"<\", version2.increment(isWildcard(minor) ? \"major\" : \"minor\").with({ prerelease: \"0\" })));\n          } else {\n            comparators.push(createComparator(\"=\", version2));\n          }\n          break;\n        default:\n          return false;\n      }\n    } else if (operator === \"<\" || operator === \">\") {\n      comparators.push(createComparator(\"<\", Version.zero));\n    }\n    return true;\n  }\n  function isWildcard(part) {\n    return part === \"*\" || part === \"x\" || part === \"X\";\n  }\n  function createComparator(operator, operand) {\n    return { operator, operand };\n  }\n  function testDisjunction(version2, alternatives) {\n    if (alternatives.length === 0)\n      return true;\n    for (const alternative of alternatives) {\n      if (testAlternative(version2, alternative))\n        return true;\n    }\n    return false;\n  }\n  function testAlternative(version2, comparators) {\n    for (const comparator of comparators) {\n      if (!testComparator(version2, comparator.operator, comparator.operand))\n        return false;\n    }\n    return true;\n  }\n  function testComparator(version2, operator, operand) {\n    const cmp = version2.compareTo(operand);\n    switch (operator) {\n      case \"<\":\n        return cmp < 0;\n      case \"<=\":\n        return cmp <= 0;\n      case \">\":\n        return cmp > 0;\n      case \">=\":\n        return cmp >= 0;\n      case \"=\":\n        return cmp === 0;\n      default:\n        return Debug.assertNever(operator);\n    }\n  }\n  function formatDisjunction(alternatives) {\n    return map(alternatives, formatAlternative).join(\" || \") || \"*\";\n  }\n  function formatAlternative(comparators) {\n    return map(comparators, formatComparator).join(\" \");\n  }\n  function formatComparator(comparator) {\n    return `${comparator.operator}${comparator.operand}`;\n  }\n  var versionRegExp, prereleaseRegExp, prereleasePartRegExp, buildRegExp, buildPartRegExp, numericIdentifierRegExp, _Version, Version, VersionRange, logicalOrRegExp, whitespaceRegExp, partialRegExp, hyphenRegExp, rangeRegExp;\n  var init_semver = __esm({\n    \"src/compiler/semver.ts\"() {\n      \"use strict\";\n      init_ts2();\n      versionRegExp = /^(0|[1-9]\\d*)(?:\\.(0|[1-9]\\d*)(?:\\.(0|[1-9]\\d*)(?:\\-([a-z0-9-.]+))?(?:\\+([a-z0-9-.]+))?)?)?$/i;\n      prereleaseRegExp = /^(?:0|[1-9]\\d*|[a-z-][a-z0-9-]*)(?:\\.(?:0|[1-9]\\d*|[a-z-][a-z0-9-]*))*$/i;\n      prereleasePartRegExp = /^(?:0|[1-9]\\d*|[a-z-][a-z0-9-]*)$/i;\n      buildRegExp = /^[a-z0-9-]+(?:\\.[a-z0-9-]+)*$/i;\n      buildPartRegExp = /^[a-z0-9-]+$/i;\n      numericIdentifierRegExp = /^(0|[1-9]\\d*)$/;\n      _Version = class {\n        constructor(major, minor = 0, patch = 0, prerelease = \"\", build2 = \"\") {\n          if (typeof major === \"string\") {\n            const result = Debug.checkDefined(tryParseComponents(major), \"Invalid version\");\n            ({ major, minor, patch, prerelease, build: build2 } = result);\n          }\n          Debug.assert(major >= 0, \"Invalid argument: major\");\n          Debug.assert(minor >= 0, \"Invalid argument: minor\");\n          Debug.assert(patch >= 0, \"Invalid argument: patch\");\n          const prereleaseArray = prerelease ? isArray(prerelease) ? prerelease : prerelease.split(\".\") : emptyArray;\n          const buildArray = build2 ? isArray(build2) ? build2 : build2.split(\".\") : emptyArray;\n          Debug.assert(every(prereleaseArray, (s) => prereleasePartRegExp.test(s)), \"Invalid argument: prerelease\");\n          Debug.assert(every(buildArray, (s) => buildPartRegExp.test(s)), \"Invalid argument: build\");\n          this.major = major;\n          this.minor = minor;\n          this.patch = patch;\n          this.prerelease = prereleaseArray;\n          this.build = buildArray;\n        }\n        static tryParse(text) {\n          const result = tryParseComponents(text);\n          if (!result)\n            return void 0;\n          const { major, minor, patch, prerelease, build: build2 } = result;\n          return new _Version(major, minor, patch, prerelease, build2);\n        }\n        compareTo(other) {\n          if (this === other)\n            return 0;\n          if (other === void 0)\n            return 1;\n          return compareValues(this.major, other.major) || compareValues(this.minor, other.minor) || compareValues(this.patch, other.patch) || comparePrereleaseIdentifiers(this.prerelease, other.prerelease);\n        }\n        increment(field) {\n          switch (field) {\n            case \"major\":\n              return new _Version(this.major + 1, 0, 0);\n            case \"minor\":\n              return new _Version(this.major, this.minor + 1, 0);\n            case \"patch\":\n              return new _Version(this.major, this.minor, this.patch + 1);\n            default:\n              return Debug.assertNever(field);\n          }\n        }\n        with(fields) {\n          const {\n            major = this.major,\n            minor = this.minor,\n            patch = this.patch,\n            prerelease = this.prerelease,\n            build: build2 = this.build\n          } = fields;\n          return new _Version(major, minor, patch, prerelease, build2);\n        }\n        toString() {\n          let result = `${this.major}.${this.minor}.${this.patch}`;\n          if (some(this.prerelease))\n            result += `-${this.prerelease.join(\".\")}`;\n          if (some(this.build))\n            result += `+${this.build.join(\".\")}`;\n          return result;\n        }\n      };\n      Version = _Version;\n      Version.zero = new _Version(0, 0, 0, [\"0\"]);\n      VersionRange = class {\n        constructor(spec) {\n          this._alternatives = spec ? Debug.checkDefined(parseRange(spec), \"Invalid range spec.\") : emptyArray;\n        }\n        static tryParse(text) {\n          const sets = parseRange(text);\n          if (sets) {\n            const range = new VersionRange(\"\");\n            range._alternatives = sets;\n            return range;\n          }\n          return void 0;\n        }\n        test(version2) {\n          if (typeof version2 === \"string\")\n            version2 = new Version(version2);\n          return testDisjunction(version2, this._alternatives);\n        }\n        toString() {\n          return formatDisjunction(this._alternatives);\n        }\n      };\n      logicalOrRegExp = /\\|\\|/g;\n      whitespaceRegExp = /\\s+/g;\n      partialRegExp = /^([xX*0]|[1-9]\\d*)(?:\\.([xX*0]|[1-9]\\d*)(?:\\.([xX*0]|[1-9]\\d*)(?:-([a-z0-9-.]+))?(?:\\+([a-z0-9-.]+))?)?)?$/i;\n      hyphenRegExp = /^\\s*([a-z0-9-+.*]+)\\s+-\\s+([a-z0-9-+.*]+)\\s*$/i;\n      rangeRegExp = /^(~|\\^|<|<=|>|>=|=)?\\s*([a-z0-9-+.*]+)$/i;\n    }\n  });\n  function hasRequiredAPI(performance2, PerformanceObserver2) {\n    return typeof performance2 === \"object\" && typeof performance2.timeOrigin === \"number\" && typeof performance2.mark === \"function\" && typeof performance2.measure === \"function\" && typeof performance2.now === \"function\" && typeof performance2.clearMarks === \"function\" && typeof performance2.clearMeasures === \"function\" && typeof PerformanceObserver2 === \"function\";\n  }\n  function tryGetWebPerformanceHooks() {\n    if (typeof performance === \"object\" && typeof PerformanceObserver === \"function\" && hasRequiredAPI(performance, PerformanceObserver)) {\n      return {\n        shouldWriteNativeEvents: true,\n        performance,\n        PerformanceObserver\n      };\n    }\n  }\n  function tryGetNodePerformanceHooks() {\n    if (isNodeLikeSystem()) {\n      try {\n        let performance2;\n        const { performance: nodePerformance, PerformanceObserver: PerformanceObserver2 } = require2(\"perf_hooks\");\n        if (hasRequiredAPI(nodePerformance, PerformanceObserver2)) {\n          performance2 = nodePerformance;\n          const version2 = new Version(process.versions.node);\n          const range = new VersionRange(\"<12.16.3 || 13 <13.13\");\n          if (range.test(version2)) {\n            performance2 = {\n              get timeOrigin() {\n                return nodePerformance.timeOrigin;\n              },\n              now() {\n                return nodePerformance.now();\n              },\n              mark(name) {\n                return nodePerformance.mark(name);\n              },\n              measure(name, start = \"nodeStart\", end) {\n                if (end === void 0) {\n                  end = \"__performance.measure-fix__\";\n                  nodePerformance.mark(end);\n                }\n                nodePerformance.measure(name, start, end);\n                if (end === \"__performance.measure-fix__\") {\n                  nodePerformance.clearMarks(\"__performance.measure-fix__\");\n                }\n              },\n              clearMarks(name) {\n                return nodePerformance.clearMarks(name);\n              },\n              clearMeasures(name) {\n                return nodePerformance.clearMeasures(name);\n              }\n            };\n          }\n          return {\n            shouldWriteNativeEvents: false,\n            performance: performance2,\n            PerformanceObserver: PerformanceObserver2\n          };\n        }\n      } catch (e) {\n      }\n    }\n  }\n  function tryGetNativePerformanceHooks() {\n    return nativePerformanceHooks;\n  }\n  var nativePerformanceHooks, nativePerformance, timestamp;\n  var init_performanceCore = __esm({\n    \"src/compiler/performanceCore.ts\"() {\n      \"use strict\";\n      init_ts2();\n      nativePerformanceHooks = tryGetWebPerformanceHooks() || tryGetNodePerformanceHooks();\n      nativePerformance = nativePerformanceHooks == null ? void 0 : nativePerformanceHooks.performance;\n      timestamp = nativePerformance ? () => nativePerformance.now() : Date.now ? Date.now : () => +/* @__PURE__ */ new Date();\n    }\n  });\n  var nullLogger, etwModule, _a, perfLogger;\n  var init_perfLogger = __esm({\n    \"src/compiler/perfLogger.ts\"() {\n      \"use strict\";\n      init_ts2();\n      nullLogger = {\n        logEvent: noop,\n        logErrEvent: noop,\n        logPerfEvent: noop,\n        logInfoEvent: noop,\n        logStartCommand: noop,\n        logStopCommand: noop,\n        logStartUpdateProgram: noop,\n        logStopUpdateProgram: noop,\n        logStartUpdateGraph: noop,\n        logStopUpdateGraph: noop,\n        logStartResolveModule: noop,\n        logStopResolveModule: noop,\n        logStartParseSourceFile: noop,\n        logStopParseSourceFile: noop,\n        logStartReadFile: noop,\n        logStopReadFile: noop,\n        logStartBindFile: noop,\n        logStopBindFile: noop,\n        logStartScheduledOperation: noop,\n        logStopScheduledOperation: noop\n      };\n      try {\n        const etwModulePath = (_a = process.env.TS_ETW_MODULE_PATH) != null ? _a : \"./node_modules/@microsoft/typescript-etw\";\n        etwModule = require2(etwModulePath);\n      } catch (e) {\n        etwModule = void 0;\n      }\n      perfLogger = (etwModule == null ? void 0 : etwModule.logEvent) ? etwModule : nullLogger;\n    }\n  });\n  function createTimerIf(condition, measureName, startMarkName, endMarkName) {\n    return condition ? createTimer(measureName, startMarkName, endMarkName) : nullTimer;\n  }\n  function createTimer(measureName, startMarkName, endMarkName) {\n    let enterCount = 0;\n    return {\n      enter,\n      exit\n    };\n    function enter() {\n      if (++enterCount === 1) {\n        mark(startMarkName);\n      }\n    }\n    function exit() {\n      if (--enterCount === 0) {\n        mark(endMarkName);\n        measure(measureName, startMarkName, endMarkName);\n      } else if (enterCount < 0) {\n        Debug.fail(\"enter/exit count does not match.\");\n      }\n    }\n  }\n  function mark(markName) {\n    var _a2;\n    if (enabled) {\n      const count = (_a2 = counts.get(markName)) != null ? _a2 : 0;\n      counts.set(markName, count + 1);\n      marks.set(markName, timestamp());\n      performanceImpl == null ? void 0 : performanceImpl.mark(markName);\n      if (typeof onProfilerEvent === \"function\") {\n        onProfilerEvent(markName);\n      }\n    }\n  }\n  function measure(measureName, startMarkName, endMarkName) {\n    var _a2, _b;\n    if (enabled) {\n      const end = (_a2 = endMarkName !== void 0 ? marks.get(endMarkName) : void 0) != null ? _a2 : timestamp();\n      const start = (_b = startMarkName !== void 0 ? marks.get(startMarkName) : void 0) != null ? _b : timeorigin;\n      const previousDuration = durations.get(measureName) || 0;\n      durations.set(measureName, previousDuration + (end - start));\n      performanceImpl == null ? void 0 : performanceImpl.measure(measureName, startMarkName, endMarkName);\n    }\n  }\n  function getCount(markName) {\n    return counts.get(markName) || 0;\n  }\n  function getDuration(measureName) {\n    return durations.get(measureName) || 0;\n  }\n  function forEachMeasure(cb) {\n    durations.forEach((duration, measureName) => cb(measureName, duration));\n  }\n  function forEachMark(cb) {\n    marks.forEach((_time, markName) => cb(markName));\n  }\n  function clearMeasures(name) {\n    if (name !== void 0)\n      durations.delete(name);\n    else\n      durations.clear();\n    performanceImpl == null ? void 0 : performanceImpl.clearMeasures(name);\n  }\n  function clearMarks(name) {\n    if (name !== void 0) {\n      counts.delete(name);\n      marks.delete(name);\n    } else {\n      counts.clear();\n      marks.clear();\n    }\n    performanceImpl == null ? void 0 : performanceImpl.clearMarks(name);\n  }\n  function isEnabled() {\n    return enabled;\n  }\n  function enable(system = sys) {\n    var _a2;\n    if (!enabled) {\n      enabled = true;\n      perfHooks || (perfHooks = tryGetNativePerformanceHooks());\n      if (perfHooks) {\n        timeorigin = perfHooks.performance.timeOrigin;\n        if (perfHooks.shouldWriteNativeEvents || ((_a2 = system == null ? void 0 : system.cpuProfilingEnabled) == null ? void 0 : _a2.call(system)) || (system == null ? void 0 : system.debugMode)) {\n          performanceImpl = perfHooks.performance;\n        }\n      }\n    }\n    return true;\n  }\n  function disable() {\n    if (enabled) {\n      marks.clear();\n      counts.clear();\n      durations.clear();\n      performanceImpl = void 0;\n      enabled = false;\n    }\n  }\n  var perfHooks, performanceImpl, nullTimer, enabled, timeorigin, marks, counts, durations;\n  var init_performance = __esm({\n    \"src/compiler/performance.ts\"() {\n      \"use strict\";\n      init_ts2();\n      nullTimer = { enter: noop, exit: noop };\n      enabled = false;\n      timeorigin = timestamp();\n      marks = /* @__PURE__ */ new Map();\n      counts = /* @__PURE__ */ new Map();\n      durations = /* @__PURE__ */ new Map();\n    }\n  });\n  var ts_performance_exports = {};\n  __export2(ts_performance_exports, {\n    clearMarks: () => clearMarks,\n    clearMeasures: () => clearMeasures,\n    createTimer: () => createTimer,\n    createTimerIf: () => createTimerIf,\n    disable: () => disable,\n    enable: () => enable,\n    forEachMark: () => forEachMark,\n    forEachMeasure: () => forEachMeasure,\n    getCount: () => getCount,\n    getDuration: () => getDuration,\n    isEnabled: () => isEnabled,\n    mark: () => mark,\n    measure: () => measure,\n    nullTimer: () => nullTimer\n  });\n  var init_ts_performance = __esm({\n    \"src/compiler/_namespaces/ts.performance.ts\"() {\n      \"use strict\";\n      init_performance();\n    }\n  });\n  var tracing, tracingEnabled, startTracing, dumpTracingLegend;\n  var init_tracing = __esm({\n    \"src/compiler/tracing.ts\"() {\n      \"use strict\";\n      init_ts2();\n      init_ts_performance();\n      ((tracingEnabled2) => {\n        let fs;\n        let traceCount = 0;\n        let traceFd = 0;\n        let mode;\n        const typeCatalog = [];\n        let legendPath;\n        const legend = [];\n        function startTracing2(tracingMode, traceDir, configFilePath) {\n          Debug.assert(!tracing, \"Tracing already started\");\n          if (fs === void 0) {\n            try {\n              fs = require2(\"fs\");\n            } catch (e) {\n              throw new Error(`tracing requires having fs\n(original error: ${e.message || e})`);\n            }\n          }\n          mode = tracingMode;\n          typeCatalog.length = 0;\n          if (legendPath === void 0) {\n            legendPath = combinePaths(traceDir, \"legend.json\");\n          }\n          if (!fs.existsSync(traceDir)) {\n            fs.mkdirSync(traceDir, { recursive: true });\n          }\n          const countPart = mode === \"build\" ? `.${process.pid}-${++traceCount}` : mode === \"server\" ? `.${process.pid}` : ``;\n          const tracePath = combinePaths(traceDir, `trace${countPart}.json`);\n          const typesPath = combinePaths(traceDir, `types${countPart}.json`);\n          legend.push({\n            configFilePath,\n            tracePath,\n            typesPath\n          });\n          traceFd = fs.openSync(tracePath, \"w\");\n          tracing = tracingEnabled2;\n          const meta = { cat: \"__metadata\", ph: \"M\", ts: 1e3 * timestamp(), pid: 1, tid: 1 };\n          fs.writeSync(traceFd, \"[\\n\" + [\n            { name: \"process_name\", args: { name: \"tsc\" }, ...meta },\n            { name: \"thread_name\", args: { name: \"Main\" }, ...meta },\n            { name: \"TracingStartedInBrowser\", ...meta, cat: \"disabled-by-default-devtools.timeline\" }\n          ].map((v) => JSON.stringify(v)).join(\",\\n\"));\n        }\n        tracingEnabled2.startTracing = startTracing2;\n        function stopTracing() {\n          Debug.assert(tracing, \"Tracing is not in progress\");\n          Debug.assert(!!typeCatalog.length === (mode !== \"server\"));\n          fs.writeSync(traceFd, `\n]\n`);\n          fs.closeSync(traceFd);\n          tracing = void 0;\n          if (typeCatalog.length) {\n            dumpTypes(typeCatalog);\n          } else {\n            legend[legend.length - 1].typesPath = void 0;\n          }\n        }\n        tracingEnabled2.stopTracing = stopTracing;\n        function recordType(type) {\n          if (mode !== \"server\") {\n            typeCatalog.push(type);\n          }\n        }\n        tracingEnabled2.recordType = recordType;\n        let Phase;\n        ((Phase2) => {\n          Phase2[\"Parse\"] = \"parse\";\n          Phase2[\"Program\"] = \"program\";\n          Phase2[\"Bind\"] = \"bind\";\n          Phase2[\"Check\"] = \"check\";\n          Phase2[\"CheckTypes\"] = \"checkTypes\";\n          Phase2[\"Emit\"] = \"emit\";\n          Phase2[\"Session\"] = \"session\";\n        })(Phase = tracingEnabled2.Phase || (tracingEnabled2.Phase = {}));\n        function instant(phase, name, args) {\n          writeEvent(\"I\", phase, name, args, `\"s\":\"g\"`);\n        }\n        tracingEnabled2.instant = instant;\n        const eventStack = [];\n        function push(phase, name, args, separateBeginAndEnd = false) {\n          if (separateBeginAndEnd) {\n            writeEvent(\"B\", phase, name, args);\n          }\n          eventStack.push({ phase, name, args, time: 1e3 * timestamp(), separateBeginAndEnd });\n        }\n        tracingEnabled2.push = push;\n        function pop(results) {\n          Debug.assert(eventStack.length > 0);\n          writeStackEvent(eventStack.length - 1, 1e3 * timestamp(), results);\n          eventStack.length--;\n        }\n        tracingEnabled2.pop = pop;\n        function popAll() {\n          const endTime = 1e3 * timestamp();\n          for (let i = eventStack.length - 1; i >= 0; i--) {\n            writeStackEvent(i, endTime);\n          }\n          eventStack.length = 0;\n        }\n        tracingEnabled2.popAll = popAll;\n        const sampleInterval = 1e3 * 10;\n        function writeStackEvent(index, endTime, results) {\n          const { phase, name, args, time, separateBeginAndEnd } = eventStack[index];\n          if (separateBeginAndEnd) {\n            Debug.assert(!results, \"`results` are not supported for events with `separateBeginAndEnd`\");\n            writeEvent(\"E\", phase, name, args, void 0, endTime);\n          } else if (sampleInterval - time % sampleInterval <= endTime - time) {\n            writeEvent(\"X\", phase, name, { ...args, results }, `\"dur\":${endTime - time}`, time);\n          }\n        }\n        function writeEvent(eventType, phase, name, args, extras, time = 1e3 * timestamp()) {\n          if (mode === \"server\" && phase === \"checkTypes\")\n            return;\n          mark(\"beginTracing\");\n          fs.writeSync(traceFd, `,\n{\"pid\":1,\"tid\":1,\"ph\":\"${eventType}\",\"cat\":\"${phase}\",\"ts\":${time},\"name\":\"${name}\"`);\n          if (extras)\n            fs.writeSync(traceFd, `,${extras}`);\n          if (args)\n            fs.writeSync(traceFd, `,\"args\":${JSON.stringify(args)}`);\n          fs.writeSync(traceFd, `}`);\n          mark(\"endTracing\");\n          measure(\"Tracing\", \"beginTracing\", \"endTracing\");\n        }\n        function getLocation(node) {\n          const file = getSourceFileOfNode(node);\n          return !file ? void 0 : {\n            path: file.path,\n            start: indexFromOne(getLineAndCharacterOfPosition(file, node.pos)),\n            end: indexFromOne(getLineAndCharacterOfPosition(file, node.end))\n          };\n          function indexFromOne(lc) {\n            return {\n              line: lc.line + 1,\n              character: lc.character + 1\n            };\n          }\n        }\n        function dumpTypes(types) {\n          var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;\n          mark(\"beginDumpTypes\");\n          const typesPath = legend[legend.length - 1].typesPath;\n          const typesFd = fs.openSync(typesPath, \"w\");\n          const recursionIdentityMap = /* @__PURE__ */ new Map();\n          fs.writeSync(typesFd, \"[\");\n          const numTypes = types.length;\n          for (let i = 0; i < numTypes; i++) {\n            const type = types[i];\n            const objectFlags = type.objectFlags;\n            const symbol = (_a2 = type.aliasSymbol) != null ? _a2 : type.symbol;\n            let display;\n            if (objectFlags & 16 | type.flags & 2944) {\n              try {\n                display = (_b = type.checker) == null ? void 0 : _b.typeToString(type);\n              } catch (e) {\n                display = void 0;\n              }\n            }\n            let indexedAccessProperties = {};\n            if (type.flags & 8388608) {\n              const indexedAccessType = type;\n              indexedAccessProperties = {\n                indexedAccessObjectType: (_c = indexedAccessType.objectType) == null ? void 0 : _c.id,\n                indexedAccessIndexType: (_d = indexedAccessType.indexType) == null ? void 0 : _d.id\n              };\n            }\n            let referenceProperties = {};\n            if (objectFlags & 4) {\n              const referenceType = type;\n              referenceProperties = {\n                instantiatedType: (_e = referenceType.target) == null ? void 0 : _e.id,\n                typeArguments: (_f = referenceType.resolvedTypeArguments) == null ? void 0 : _f.map((t) => t.id),\n                referenceLocation: getLocation(referenceType.node)\n              };\n            }\n            let conditionalProperties = {};\n            if (type.flags & 16777216) {\n              const conditionalType = type;\n              conditionalProperties = {\n                conditionalCheckType: (_g = conditionalType.checkType) == null ? void 0 : _g.id,\n                conditionalExtendsType: (_h = conditionalType.extendsType) == null ? void 0 : _h.id,\n                conditionalTrueType: (_j = (_i = conditionalType.resolvedTrueType) == null ? void 0 : _i.id) != null ? _j : -1,\n                conditionalFalseType: (_l = (_k = conditionalType.resolvedFalseType) == null ? void 0 : _k.id) != null ? _l : -1\n              };\n            }\n            let substitutionProperties = {};\n            if (type.flags & 33554432) {\n              const substitutionType = type;\n              substitutionProperties = {\n                substitutionBaseType: (_m = substitutionType.baseType) == null ? void 0 : _m.id,\n                constraintType: (_n = substitutionType.constraint) == null ? void 0 : _n.id\n              };\n            }\n            let reverseMappedProperties = {};\n            if (objectFlags & 1024) {\n              const reverseMappedType = type;\n              reverseMappedProperties = {\n                reverseMappedSourceType: (_o = reverseMappedType.source) == null ? void 0 : _o.id,\n                reverseMappedMappedType: (_p = reverseMappedType.mappedType) == null ? void 0 : _p.id,\n                reverseMappedConstraintType: (_q = reverseMappedType.constraintType) == null ? void 0 : _q.id\n              };\n            }\n            let evolvingArrayProperties = {};\n            if (objectFlags & 256) {\n              const evolvingArrayType = type;\n              evolvingArrayProperties = {\n                evolvingArrayElementType: evolvingArrayType.elementType.id,\n                evolvingArrayFinalType: (_r = evolvingArrayType.finalArrayType) == null ? void 0 : _r.id\n              };\n            }\n            let recursionToken;\n            const recursionIdentity = type.checker.getRecursionIdentity(type);\n            if (recursionIdentity) {\n              recursionToken = recursionIdentityMap.get(recursionIdentity);\n              if (!recursionToken) {\n                recursionToken = recursionIdentityMap.size;\n                recursionIdentityMap.set(recursionIdentity, recursionToken);\n              }\n            }\n            const descriptor = {\n              id: type.id,\n              intrinsicName: type.intrinsicName,\n              symbolName: (symbol == null ? void 0 : symbol.escapedName) && unescapeLeadingUnderscores(symbol.escapedName),\n              recursionId: recursionToken,\n              isTuple: objectFlags & 8 ? true : void 0,\n              unionTypes: type.flags & 1048576 ? (_s = type.types) == null ? void 0 : _s.map((t) => t.id) : void 0,\n              intersectionTypes: type.flags & 2097152 ? type.types.map((t) => t.id) : void 0,\n              aliasTypeArguments: (_t = type.aliasTypeArguments) == null ? void 0 : _t.map((t) => t.id),\n              keyofType: type.flags & 4194304 ? (_u = type.type) == null ? void 0 : _u.id : void 0,\n              ...indexedAccessProperties,\n              ...referenceProperties,\n              ...conditionalProperties,\n              ...substitutionProperties,\n              ...reverseMappedProperties,\n              ...evolvingArrayProperties,\n              destructuringPattern: getLocation(type.pattern),\n              firstDeclaration: getLocation((_v = symbol == null ? void 0 : symbol.declarations) == null ? void 0 : _v[0]),\n              flags: Debug.formatTypeFlags(type.flags).split(\"|\"),\n              display\n            };\n            fs.writeSync(typesFd, JSON.stringify(descriptor));\n            if (i < numTypes - 1) {\n              fs.writeSync(typesFd, \",\\n\");\n            }\n          }\n          fs.writeSync(typesFd, \"]\\n\");\n          fs.closeSync(typesFd);\n          mark(\"endDumpTypes\");\n          measure(\"Dump types\", \"beginDumpTypes\", \"endDumpTypes\");\n        }\n        function dumpLegend() {\n          if (!legendPath) {\n            return;\n          }\n          fs.writeFileSync(legendPath, JSON.stringify(legend));\n        }\n        tracingEnabled2.dumpLegend = dumpLegend;\n      })(tracingEnabled || (tracingEnabled = {}));\n      startTracing = tracingEnabled.startTracing;\n      dumpTracingLegend = tracingEnabled.dumpLegend;\n    }\n  });\n  function diagnosticCategoryName(d, lowerCase = true) {\n    const name = DiagnosticCategory[d.category];\n    return lowerCase ? name.toLowerCase() : name;\n  }\n  var SyntaxKind, NodeFlags, ModifierFlags, JsxFlags, RelationComparisonResult, GeneratedIdentifierFlags, TokenFlags, FlowFlags, CommentDirectiveType, OperationCanceledException, FileIncludeKind, FilePreprocessingDiagnosticsKind, EmitOnly, StructureIsReused, ExitStatus, MemberOverrideStatus, UnionReduction, ContextFlags, NodeBuilderFlags, TypeFormatFlags, SymbolFormatFlags, SymbolAccessibility, SyntheticSymbolKind, TypePredicateKind, TypeReferenceSerializationKind, SymbolFlags, EnumKind, CheckFlags, InternalSymbolName, NodeCheckFlags, TypeFlags, ObjectFlags, VarianceFlags, ElementFlags, AccessFlags, JsxReferenceKind, SignatureKind, SignatureFlags, IndexKind, TypeMapKind, InferencePriority, InferenceFlags, Ternary, AssignmentDeclarationKind, DiagnosticCategory, ModuleResolutionKind, ModuleDetectionKind, WatchFileKind, WatchDirectoryKind, PollingWatchKind, ModuleKind, JsxEmit, ImportsNotUsedAsValues, NewLineKind, ScriptKind2, ScriptTarget2, LanguageVariant, WatchDirectoryFlags, CharacterCodes, Extension, TransformFlags, SnippetKind, EmitFlags, InternalEmitFlags, ExternalEmitHelpers, EmitHint, OuterExpressionKinds, LexicalEnvironmentFlags, BundleFileSectionKind, ListFormat, PragmaKindFlags, commentPragmas;\n  var init_types = __esm({\n    \"src/compiler/types.ts\"() {\n      \"use strict\";\n      SyntaxKind = /* @__PURE__ */ ((SyntaxKind5) => {\n        SyntaxKind5[SyntaxKind5[\"Unknown\"] = 0] = \"Unknown\";\n        SyntaxKind5[SyntaxKind5[\"EndOfFileToken\"] = 1] = \"EndOfFileToken\";\n        SyntaxKind5[SyntaxKind5[\"SingleLineCommentTrivia\"] = 2] = \"SingleLineCommentTrivia\";\n        SyntaxKind5[SyntaxKind5[\"MultiLineCommentTrivia\"] = 3] = \"MultiLineCommentTrivia\";\n        SyntaxKind5[SyntaxKind5[\"NewLineTrivia\"] = 4] = \"NewLineTrivia\";\n        SyntaxKind5[SyntaxKind5[\"WhitespaceTrivia\"] = 5] = \"WhitespaceTrivia\";\n        SyntaxKind5[SyntaxKind5[\"ShebangTrivia\"] = 6] = \"ShebangTrivia\";\n        SyntaxKind5[SyntaxKind5[\"ConflictMarkerTrivia\"] = 7] = \"ConflictMarkerTrivia\";\n        SyntaxKind5[SyntaxKind5[\"NumericLiteral\"] = 8] = \"NumericLiteral\";\n        SyntaxKind5[SyntaxKind5[\"BigIntLiteral\"] = 9] = \"BigIntLiteral\";\n        SyntaxKind5[SyntaxKind5[\"StringLiteral\"] = 10] = \"StringLiteral\";\n        SyntaxKind5[SyntaxKind5[\"JsxText\"] = 11] = \"JsxText\";\n        SyntaxKind5[SyntaxKind5[\"JsxTextAllWhiteSpaces\"] = 12] = \"JsxTextAllWhiteSpaces\";\n        SyntaxKind5[SyntaxKind5[\"RegularExpressionLiteral\"] = 13] = \"RegularExpressionLiteral\";\n        SyntaxKind5[SyntaxKind5[\"NoSubstitutionTemplateLiteral\"] = 14] = \"NoSubstitutionTemplateLiteral\";\n        SyntaxKind5[SyntaxKind5[\"TemplateHead\"] = 15] = \"TemplateHead\";\n        SyntaxKind5[SyntaxKind5[\"TemplateMiddle\"] = 16] = \"TemplateMiddle\";\n        SyntaxKind5[SyntaxKind5[\"TemplateTail\"] = 17] = \"TemplateTail\";\n        SyntaxKind5[SyntaxKind5[\"OpenBraceToken\"] = 18] = \"OpenBraceToken\";\n        SyntaxKind5[SyntaxKind5[\"CloseBraceToken\"] = 19] = \"CloseBraceToken\";\n        SyntaxKind5[SyntaxKind5[\"OpenParenToken\"] = 20] = \"OpenParenToken\";\n        SyntaxKind5[SyntaxKind5[\"CloseParenToken\"] = 21] = \"CloseParenToken\";\n        SyntaxKind5[SyntaxKind5[\"OpenBracketToken\"] = 22] = \"OpenBracketToken\";\n        SyntaxKind5[SyntaxKind5[\"CloseBracketToken\"] = 23] = \"CloseBracketToken\";\n        SyntaxKind5[SyntaxKind5[\"DotToken\"] = 24] = \"DotToken\";\n        SyntaxKind5[SyntaxKind5[\"DotDotDotToken\"] = 25] = \"DotDotDotToken\";\n        SyntaxKind5[SyntaxKind5[\"SemicolonToken\"] = 26] = \"SemicolonToken\";\n        SyntaxKind5[SyntaxKind5[\"CommaToken\"] = 27] = \"CommaToken\";\n        SyntaxKind5[SyntaxKind5[\"QuestionDotToken\"] = 28] = \"QuestionDotToken\";\n        SyntaxKind5[SyntaxKind5[\"LessThanToken\"] = 29] = \"LessThanToken\";\n        SyntaxKind5[SyntaxKind5[\"LessThanSlashToken\"] = 30] = \"LessThanSlashToken\";\n        SyntaxKind5[SyntaxKind5[\"GreaterThanToken\"] = 31] = \"GreaterThanToken\";\n        SyntaxKind5[SyntaxKind5[\"LessThanEqualsToken\"] = 32] = \"LessThanEqualsToken\";\n        SyntaxKind5[SyntaxKind5[\"GreaterThanEqualsToken\"] = 33] = \"GreaterThanEqualsToken\";\n        SyntaxKind5[SyntaxKind5[\"EqualsEqualsToken\"] = 34] = \"EqualsEqualsToken\";\n        SyntaxKind5[SyntaxKind5[\"ExclamationEqualsToken\"] = 35] = \"ExclamationEqualsToken\";\n        SyntaxKind5[SyntaxKind5[\"EqualsEqualsEqualsToken\"] = 36] = \"EqualsEqualsEqualsToken\";\n        SyntaxKind5[SyntaxKind5[\"ExclamationEqualsEqualsToken\"] = 37] = \"ExclamationEqualsEqualsToken\";\n        SyntaxKind5[SyntaxKind5[\"EqualsGreaterThanToken\"] = 38] = \"EqualsGreaterThanToken\";\n        SyntaxKind5[SyntaxKind5[\"PlusToken\"] = 39] = \"PlusToken\";\n        SyntaxKind5[SyntaxKind5[\"MinusToken\"] = 40] = \"MinusToken\";\n        SyntaxKind5[SyntaxKind5[\"AsteriskToken\"] = 41] = \"AsteriskToken\";\n        SyntaxKind5[SyntaxKind5[\"AsteriskAsteriskToken\"] = 42] = \"AsteriskAsteriskToken\";\n        SyntaxKind5[SyntaxKind5[\"SlashToken\"] = 43] = \"SlashToken\";\n        SyntaxKind5[SyntaxKind5[\"PercentToken\"] = 44] = \"PercentToken\";\n        SyntaxKind5[SyntaxKind5[\"PlusPlusToken\"] = 45] = \"PlusPlusToken\";\n        SyntaxKind5[SyntaxKind5[\"MinusMinusToken\"] = 46] = \"MinusMinusToken\";\n        SyntaxKind5[SyntaxKind5[\"LessThanLessThanToken\"] = 47] = \"LessThanLessThanToken\";\n        SyntaxKind5[SyntaxKind5[\"GreaterThanGreaterThanToken\"] = 48] = \"GreaterThanGreaterThanToken\";\n        SyntaxKind5[SyntaxKind5[\"GreaterThanGreaterThanGreaterThanToken\"] = 49] = \"GreaterThanGreaterThanGreaterThanToken\";\n        SyntaxKind5[SyntaxKind5[\"AmpersandToken\"] = 50] = \"AmpersandToken\";\n        SyntaxKind5[SyntaxKind5[\"BarToken\"] = 51] = \"BarToken\";\n        SyntaxKind5[SyntaxKind5[\"CaretToken\"] = 52] = \"CaretToken\";\n        SyntaxKind5[SyntaxKind5[\"ExclamationToken\"] = 53] = \"ExclamationToken\";\n        SyntaxKind5[SyntaxKind5[\"TildeToken\"] = 54] = \"TildeToken\";\n        SyntaxKind5[SyntaxKind5[\"AmpersandAmpersandToken\"] = 55] = \"AmpersandAmpersandToken\";\n        SyntaxKind5[SyntaxKind5[\"BarBarToken\"] = 56] = \"BarBarToken\";\n        SyntaxKind5[SyntaxKind5[\"QuestionToken\"] = 57] = \"QuestionToken\";\n        SyntaxKind5[SyntaxKind5[\"ColonToken\"] = 58] = \"ColonToken\";\n        SyntaxKind5[SyntaxKind5[\"AtToken\"] = 59] = \"AtToken\";\n        SyntaxKind5[SyntaxKind5[\"QuestionQuestionToken\"] = 60] = \"QuestionQuestionToken\";\n        SyntaxKind5[SyntaxKind5[\"BacktickToken\"] = 61] = \"BacktickToken\";\n        SyntaxKind5[SyntaxKind5[\"HashToken\"] = 62] = \"HashToken\";\n        SyntaxKind5[SyntaxKind5[\"EqualsToken\"] = 63] = \"EqualsToken\";\n        SyntaxKind5[SyntaxKind5[\"PlusEqualsToken\"] = 64] = \"PlusEqualsToken\";\n        SyntaxKind5[SyntaxKind5[\"MinusEqualsToken\"] = 65] = \"MinusEqualsToken\";\n        SyntaxKind5[SyntaxKind5[\"AsteriskEqualsToken\"] = 66] = \"AsteriskEqualsToken\";\n        SyntaxKind5[SyntaxKind5[\"AsteriskAsteriskEqualsToken\"] = 67] = \"AsteriskAsteriskEqualsToken\";\n        SyntaxKind5[SyntaxKind5[\"SlashEqualsToken\"] = 68] = \"SlashEqualsToken\";\n        SyntaxKind5[SyntaxKind5[\"PercentEqualsToken\"] = 69] = \"PercentEqualsToken\";\n        SyntaxKind5[SyntaxKind5[\"LessThanLessThanEqualsToken\"] = 70] = \"LessThanLessThanEqualsToken\";\n        SyntaxKind5[SyntaxKind5[\"GreaterThanGreaterThanEqualsToken\"] = 71] = \"GreaterThanGreaterThanEqualsToken\";\n        SyntaxKind5[SyntaxKind5[\"GreaterThanGreaterThanGreaterThanEqualsToken\"] = 72] = \"GreaterThanGreaterThanGreaterThanEqualsToken\";\n        SyntaxKind5[SyntaxKind5[\"AmpersandEqualsToken\"] = 73] = \"AmpersandEqualsToken\";\n        SyntaxKind5[SyntaxKind5[\"BarEqualsToken\"] = 74] = \"BarEqualsToken\";\n        SyntaxKind5[SyntaxKind5[\"BarBarEqualsToken\"] = 75] = \"BarBarEqualsToken\";\n        SyntaxKind5[SyntaxKind5[\"AmpersandAmpersandEqualsToken\"] = 76] = \"AmpersandAmpersandEqualsToken\";\n        SyntaxKind5[SyntaxKind5[\"QuestionQuestionEqualsToken\"] = 77] = \"QuestionQuestionEqualsToken\";\n        SyntaxKind5[SyntaxKind5[\"CaretEqualsToken\"] = 78] = \"CaretEqualsToken\";\n        SyntaxKind5[SyntaxKind5[\"Identifier\"] = 79] = \"Identifier\";\n        SyntaxKind5[SyntaxKind5[\"PrivateIdentifier\"] = 80] = \"PrivateIdentifier\";\n        SyntaxKind5[SyntaxKind5[\"BreakKeyword\"] = 81] = \"BreakKeyword\";\n        SyntaxKind5[SyntaxKind5[\"CaseKeyword\"] = 82] = \"CaseKeyword\";\n        SyntaxKind5[SyntaxKind5[\"CatchKeyword\"] = 83] = \"CatchKeyword\";\n        SyntaxKind5[SyntaxKind5[\"ClassKeyword\"] = 84] = \"ClassKeyword\";\n        SyntaxKind5[SyntaxKind5[\"ConstKeyword\"] = 85] = \"ConstKeyword\";\n        SyntaxKind5[SyntaxKind5[\"ContinueKeyword\"] = 86] = \"ContinueKeyword\";\n        SyntaxKind5[SyntaxKind5[\"DebuggerKeyword\"] = 87] = \"DebuggerKeyword\";\n        SyntaxKind5[SyntaxKind5[\"DefaultKeyword\"] = 88] = \"DefaultKeyword\";\n        SyntaxKind5[SyntaxKind5[\"DeleteKeyword\"] = 89] = \"DeleteKeyword\";\n        SyntaxKind5[SyntaxKind5[\"DoKeyword\"] = 90] = \"DoKeyword\";\n        SyntaxKind5[SyntaxKind5[\"ElseKeyword\"] = 91] = \"ElseKeyword\";\n        SyntaxKind5[SyntaxKind5[\"EnumKeyword\"] = 92] = \"EnumKeyword\";\n        SyntaxKind5[SyntaxKind5[\"ExportKeyword\"] = 93] = \"ExportKeyword\";\n        SyntaxKind5[SyntaxKind5[\"ExtendsKeyword\"] = 94] = \"ExtendsKeyword\";\n        SyntaxKind5[SyntaxKind5[\"FalseKeyword\"] = 95] = \"FalseKeyword\";\n        SyntaxKind5[SyntaxKind5[\"FinallyKeyword\"] = 96] = \"FinallyKeyword\";\n        SyntaxKind5[SyntaxKind5[\"ForKeyword\"] = 97] = \"ForKeyword\";\n        SyntaxKind5[SyntaxKind5[\"FunctionKeyword\"] = 98] = \"FunctionKeyword\";\n        SyntaxKind5[SyntaxKind5[\"IfKeyword\"] = 99] = \"IfKeyword\";\n        SyntaxKind5[SyntaxKind5[\"ImportKeyword\"] = 100] = \"ImportKeyword\";\n        SyntaxKind5[SyntaxKind5[\"InKeyword\"] = 101] = \"InKeyword\";\n        SyntaxKind5[SyntaxKind5[\"InstanceOfKeyword\"] = 102] = \"InstanceOfKeyword\";\n        SyntaxKind5[SyntaxKind5[\"NewKeyword\"] = 103] = \"NewKeyword\";\n        SyntaxKind5[SyntaxKind5[\"NullKeyword\"] = 104] = \"NullKeyword\";\n        SyntaxKind5[SyntaxKind5[\"ReturnKeyword\"] = 105] = \"ReturnKeyword\";\n        SyntaxKind5[SyntaxKind5[\"SuperKeyword\"] = 106] = \"SuperKeyword\";\n        SyntaxKind5[SyntaxKind5[\"SwitchKeyword\"] = 107] = \"SwitchKeyword\";\n        SyntaxKind5[SyntaxKind5[\"ThisKeyword\"] = 108] = \"ThisKeyword\";\n        SyntaxKind5[SyntaxKind5[\"ThrowKeyword\"] = 109] = \"ThrowKeyword\";\n        SyntaxKind5[SyntaxKind5[\"TrueKeyword\"] = 110] = \"TrueKeyword\";\n        SyntaxKind5[SyntaxKind5[\"TryKeyword\"] = 111] = \"TryKeyword\";\n        SyntaxKind5[SyntaxKind5[\"TypeOfKeyword\"] = 112] = \"TypeOfKeyword\";\n        SyntaxKind5[SyntaxKind5[\"VarKeyword\"] = 113] = \"VarKeyword\";\n        SyntaxKind5[SyntaxKind5[\"VoidKeyword\"] = 114] = \"VoidKeyword\";\n        SyntaxKind5[SyntaxKind5[\"WhileKeyword\"] = 115] = \"WhileKeyword\";\n        SyntaxKind5[SyntaxKind5[\"WithKeyword\"] = 116] = \"WithKeyword\";\n        SyntaxKind5[SyntaxKind5[\"ImplementsKeyword\"] = 117] = \"ImplementsKeyword\";\n        SyntaxKind5[SyntaxKind5[\"InterfaceKeyword\"] = 118] = \"InterfaceKeyword\";\n        SyntaxKind5[SyntaxKind5[\"LetKeyword\"] = 119] = \"LetKeyword\";\n        SyntaxKind5[SyntaxKind5[\"PackageKeyword\"] = 120] = \"PackageKeyword\";\n        SyntaxKind5[SyntaxKind5[\"PrivateKeyword\"] = 121] = \"PrivateKeyword\";\n        SyntaxKind5[SyntaxKind5[\"ProtectedKeyword\"] = 122] = \"ProtectedKeyword\";\n        SyntaxKind5[SyntaxKind5[\"PublicKeyword\"] = 123] = \"PublicKeyword\";\n        SyntaxKind5[SyntaxKind5[\"StaticKeyword\"] = 124] = \"StaticKeyword\";\n        SyntaxKind5[SyntaxKind5[\"YieldKeyword\"] = 125] = \"YieldKeyword\";\n        SyntaxKind5[SyntaxKind5[\"AbstractKeyword\"] = 126] = \"AbstractKeyword\";\n        SyntaxKind5[SyntaxKind5[\"AccessorKeyword\"] = 127] = \"AccessorKeyword\";\n        SyntaxKind5[SyntaxKind5[\"AsKeyword\"] = 128] = \"AsKeyword\";\n        SyntaxKind5[SyntaxKind5[\"AssertsKeyword\"] = 129] = \"AssertsKeyword\";\n        SyntaxKind5[SyntaxKind5[\"AssertKeyword\"] = 130] = \"AssertKeyword\";\n        SyntaxKind5[SyntaxKind5[\"AnyKeyword\"] = 131] = \"AnyKeyword\";\n        SyntaxKind5[SyntaxKind5[\"AsyncKeyword\"] = 132] = \"AsyncKeyword\";\n        SyntaxKind5[SyntaxKind5[\"AwaitKeyword\"] = 133] = \"AwaitKeyword\";\n        SyntaxKind5[SyntaxKind5[\"BooleanKeyword\"] = 134] = \"BooleanKeyword\";\n        SyntaxKind5[SyntaxKind5[\"ConstructorKeyword\"] = 135] = \"ConstructorKeyword\";\n        SyntaxKind5[SyntaxKind5[\"DeclareKeyword\"] = 136] = \"DeclareKeyword\";\n        SyntaxKind5[SyntaxKind5[\"GetKeyword\"] = 137] = \"GetKeyword\";\n        SyntaxKind5[SyntaxKind5[\"InferKeyword\"] = 138] = \"InferKeyword\";\n        SyntaxKind5[SyntaxKind5[\"IntrinsicKeyword\"] = 139] = \"IntrinsicKeyword\";\n        SyntaxKind5[SyntaxKind5[\"IsKeyword\"] = 140] = \"IsKeyword\";\n        SyntaxKind5[SyntaxKind5[\"KeyOfKeyword\"] = 141] = \"KeyOfKeyword\";\n        SyntaxKind5[SyntaxKind5[\"ModuleKeyword\"] = 142] = \"ModuleKeyword\";\n        SyntaxKind5[SyntaxKind5[\"NamespaceKeyword\"] = 143] = \"NamespaceKeyword\";\n        SyntaxKind5[SyntaxKind5[\"NeverKeyword\"] = 144] = \"NeverKeyword\";\n        SyntaxKind5[SyntaxKind5[\"OutKeyword\"] = 145] = \"OutKeyword\";\n        SyntaxKind5[SyntaxKind5[\"ReadonlyKeyword\"] = 146] = \"ReadonlyKeyword\";\n        SyntaxKind5[SyntaxKind5[\"RequireKeyword\"] = 147] = \"RequireKeyword\";\n        SyntaxKind5[SyntaxKind5[\"NumberKeyword\"] = 148] = \"NumberKeyword\";\n        SyntaxKind5[SyntaxKind5[\"ObjectKeyword\"] = 149] = \"ObjectKeyword\";\n        SyntaxKind5[SyntaxKind5[\"SatisfiesKeyword\"] = 150] = \"SatisfiesKeyword\";\n        SyntaxKind5[SyntaxKind5[\"SetKeyword\"] = 151] = \"SetKeyword\";\n        SyntaxKind5[SyntaxKind5[\"StringKeyword\"] = 152] = \"StringKeyword\";\n        SyntaxKind5[SyntaxKind5[\"SymbolKeyword\"] = 153] = \"SymbolKeyword\";\n        SyntaxKind5[SyntaxKind5[\"TypeKeyword\"] = 154] = \"TypeKeyword\";\n        SyntaxKind5[SyntaxKind5[\"UndefinedKeyword\"] = 155] = \"UndefinedKeyword\";\n        SyntaxKind5[SyntaxKind5[\"UniqueKeyword\"] = 156] = \"UniqueKeyword\";\n        SyntaxKind5[SyntaxKind5[\"UnknownKeyword\"] = 157] = \"UnknownKeyword\";\n        SyntaxKind5[SyntaxKind5[\"FromKeyword\"] = 158] = \"FromKeyword\";\n        SyntaxKind5[SyntaxKind5[\"GlobalKeyword\"] = 159] = \"GlobalKeyword\";\n        SyntaxKind5[SyntaxKind5[\"BigIntKeyword\"] = 160] = \"BigIntKeyword\";\n        SyntaxKind5[SyntaxKind5[\"OverrideKeyword\"] = 161] = \"OverrideKeyword\";\n        SyntaxKind5[SyntaxKind5[\"OfKeyword\"] = 162] = \"OfKeyword\";\n        SyntaxKind5[SyntaxKind5[\"QualifiedName\"] = 163] = \"QualifiedName\";\n        SyntaxKind5[SyntaxKind5[\"ComputedPropertyName\"] = 164] = \"ComputedPropertyName\";\n        SyntaxKind5[SyntaxKind5[\"TypeParameter\"] = 165] = \"TypeParameter\";\n        SyntaxKind5[SyntaxKind5[\"Parameter\"] = 166] = \"Parameter\";\n        SyntaxKind5[SyntaxKind5[\"Decorator\"] = 167] = \"Decorator\";\n        SyntaxKind5[SyntaxKind5[\"PropertySignature\"] = 168] = \"PropertySignature\";\n        SyntaxKind5[SyntaxKind5[\"PropertyDeclaration\"] = 169] = \"PropertyDeclaration\";\n        SyntaxKind5[SyntaxKind5[\"MethodSignature\"] = 170] = \"MethodSignature\";\n        SyntaxKind5[SyntaxKind5[\"MethodDeclaration\"] = 171] = \"MethodDeclaration\";\n        SyntaxKind5[SyntaxKind5[\"ClassStaticBlockDeclaration\"] = 172] = \"ClassStaticBlockDeclaration\";\n        SyntaxKind5[SyntaxKind5[\"Constructor\"] = 173] = \"Constructor\";\n        SyntaxKind5[SyntaxKind5[\"GetAccessor\"] = 174] = \"GetAccessor\";\n        SyntaxKind5[SyntaxKind5[\"SetAccessor\"] = 175] = \"SetAccessor\";\n        SyntaxKind5[SyntaxKind5[\"CallSignature\"] = 176] = \"CallSignature\";\n        SyntaxKind5[SyntaxKind5[\"ConstructSignature\"] = 177] = \"ConstructSignature\";\n        SyntaxKind5[SyntaxKind5[\"IndexSignature\"] = 178] = \"IndexSignature\";\n        SyntaxKind5[SyntaxKind5[\"TypePredicate\"] = 179] = \"TypePredicate\";\n        SyntaxKind5[SyntaxKind5[\"TypeReference\"] = 180] = \"TypeReference\";\n        SyntaxKind5[SyntaxKind5[\"FunctionType\"] = 181] = \"FunctionType\";\n        SyntaxKind5[SyntaxKind5[\"ConstructorType\"] = 182] = \"ConstructorType\";\n        SyntaxKind5[SyntaxKind5[\"TypeQuery\"] = 183] = \"TypeQuery\";\n        SyntaxKind5[SyntaxKind5[\"TypeLiteral\"] = 184] = \"TypeLiteral\";\n        SyntaxKind5[SyntaxKind5[\"ArrayType\"] = 185] = \"ArrayType\";\n        SyntaxKind5[SyntaxKind5[\"TupleType\"] = 186] = \"TupleType\";\n        SyntaxKind5[SyntaxKind5[\"OptionalType\"] = 187] = \"OptionalType\";\n        SyntaxKind5[SyntaxKind5[\"RestType\"] = 188] = \"RestType\";\n        SyntaxKind5[SyntaxKind5[\"UnionType\"] = 189] = \"UnionType\";\n        SyntaxKind5[SyntaxKind5[\"IntersectionType\"] = 190] = \"IntersectionType\";\n        SyntaxKind5[SyntaxKind5[\"ConditionalType\"] = 191] = \"ConditionalType\";\n        SyntaxKind5[SyntaxKind5[\"InferType\"] = 192] = \"InferType\";\n        SyntaxKind5[SyntaxKind5[\"ParenthesizedType\"] = 193] = \"ParenthesizedType\";\n        SyntaxKind5[SyntaxKind5[\"ThisType\"] = 194] = \"ThisType\";\n        SyntaxKind5[SyntaxKind5[\"TypeOperator\"] = 195] = \"TypeOperator\";\n        SyntaxKind5[SyntaxKind5[\"IndexedAccessType\"] = 196] = \"IndexedAccessType\";\n        SyntaxKind5[SyntaxKind5[\"MappedType\"] = 197] = \"MappedType\";\n        SyntaxKind5[SyntaxKind5[\"LiteralType\"] = 198] = \"LiteralType\";\n        SyntaxKind5[SyntaxKind5[\"NamedTupleMember\"] = 199] = \"NamedTupleMember\";\n        SyntaxKind5[SyntaxKind5[\"TemplateLiteralType\"] = 200] = \"TemplateLiteralType\";\n        SyntaxKind5[SyntaxKind5[\"TemplateLiteralTypeSpan\"] = 201] = \"TemplateLiteralTypeSpan\";\n        SyntaxKind5[SyntaxKind5[\"ImportType\"] = 202] = \"ImportType\";\n        SyntaxKind5[SyntaxKind5[\"ObjectBindingPattern\"] = 203] = \"ObjectBindingPattern\";\n        SyntaxKind5[SyntaxKind5[\"ArrayBindingPattern\"] = 204] = \"ArrayBindingPattern\";\n        SyntaxKind5[SyntaxKind5[\"BindingElement\"] = 205] = \"BindingElement\";\n        SyntaxKind5[SyntaxKind5[\"ArrayLiteralExpression\"] = 206] = \"ArrayLiteralExpression\";\n        SyntaxKind5[SyntaxKind5[\"ObjectLiteralExpression\"] = 207] = \"ObjectLiteralExpression\";\n        SyntaxKind5[SyntaxKind5[\"PropertyAccessExpression\"] = 208] = \"PropertyAccessExpression\";\n        SyntaxKind5[SyntaxKind5[\"ElementAccessExpression\"] = 209] = \"ElementAccessExpression\";\n        SyntaxKind5[SyntaxKind5[\"CallExpression\"] = 210] = \"CallExpression\";\n        SyntaxKind5[SyntaxKind5[\"NewExpression\"] = 211] = \"NewExpression\";\n        SyntaxKind5[SyntaxKind5[\"TaggedTemplateExpression\"] = 212] = \"TaggedTemplateExpression\";\n        SyntaxKind5[SyntaxKind5[\"TypeAssertionExpression\"] = 213] = \"TypeAssertionExpression\";\n        SyntaxKind5[SyntaxKind5[\"ParenthesizedExpression\"] = 214] = \"ParenthesizedExpression\";\n        SyntaxKind5[SyntaxKind5[\"FunctionExpression\"] = 215] = \"FunctionExpression\";\n        SyntaxKind5[SyntaxKind5[\"ArrowFunction\"] = 216] = \"ArrowFunction\";\n        SyntaxKind5[SyntaxKind5[\"DeleteExpression\"] = 217] = \"DeleteExpression\";\n        SyntaxKind5[SyntaxKind5[\"TypeOfExpression\"] = 218] = \"TypeOfExpression\";\n        SyntaxKind5[SyntaxKind5[\"VoidExpression\"] = 219] = \"VoidExpression\";\n        SyntaxKind5[SyntaxKind5[\"AwaitExpression\"] = 220] = \"AwaitExpression\";\n        SyntaxKind5[SyntaxKind5[\"PrefixUnaryExpression\"] = 221] = \"PrefixUnaryExpression\";\n        SyntaxKind5[SyntaxKind5[\"PostfixUnaryExpression\"] = 222] = \"PostfixUnaryExpression\";\n        SyntaxKind5[SyntaxKind5[\"BinaryExpression\"] = 223] = \"BinaryExpression\";\n        SyntaxKind5[SyntaxKind5[\"ConditionalExpression\"] = 224] = \"ConditionalExpression\";\n        SyntaxKind5[SyntaxKind5[\"TemplateExpression\"] = 225] = \"TemplateExpression\";\n        SyntaxKind5[SyntaxKind5[\"YieldExpression\"] = 226] = \"YieldExpression\";\n        SyntaxKind5[SyntaxKind5[\"SpreadElement\"] = 227] = \"SpreadElement\";\n        SyntaxKind5[SyntaxKind5[\"ClassExpression\"] = 228] = \"ClassExpression\";\n        SyntaxKind5[SyntaxKind5[\"OmittedExpression\"] = 229] = \"OmittedExpression\";\n        SyntaxKind5[SyntaxKind5[\"ExpressionWithTypeArguments\"] = 230] = \"ExpressionWithTypeArguments\";\n        SyntaxKind5[SyntaxKind5[\"AsExpression\"] = 231] = \"AsExpression\";\n        SyntaxKind5[SyntaxKind5[\"NonNullExpression\"] = 232] = \"NonNullExpression\";\n        SyntaxKind5[SyntaxKind5[\"MetaProperty\"] = 233] = \"MetaProperty\";\n        SyntaxKind5[SyntaxKind5[\"SyntheticExpression\"] = 234] = \"SyntheticExpression\";\n        SyntaxKind5[SyntaxKind5[\"SatisfiesExpression\"] = 235] = \"SatisfiesExpression\";\n        SyntaxKind5[SyntaxKind5[\"TemplateSpan\"] = 236] = \"TemplateSpan\";\n        SyntaxKind5[SyntaxKind5[\"SemicolonClassElement\"] = 237] = \"SemicolonClassElement\";\n        SyntaxKind5[SyntaxKind5[\"Block\"] = 238] = \"Block\";\n        SyntaxKind5[SyntaxKind5[\"EmptyStatement\"] = 239] = \"EmptyStatement\";\n        SyntaxKind5[SyntaxKind5[\"VariableStatement\"] = 240] = \"VariableStatement\";\n        SyntaxKind5[SyntaxKind5[\"ExpressionStatement\"] = 241] = \"ExpressionStatement\";\n        SyntaxKind5[SyntaxKind5[\"IfStatement\"] = 242] = \"IfStatement\";\n        SyntaxKind5[SyntaxKind5[\"DoStatement\"] = 243] = \"DoStatement\";\n        SyntaxKind5[SyntaxKind5[\"WhileStatement\"] = 244] = \"WhileStatement\";\n        SyntaxKind5[SyntaxKind5[\"ForStatement\"] = 245] = \"ForStatement\";\n        SyntaxKind5[SyntaxKind5[\"ForInStatement\"] = 246] = \"ForInStatement\";\n        SyntaxKind5[SyntaxKind5[\"ForOfStatement\"] = 247] = \"ForOfStatement\";\n        SyntaxKind5[SyntaxKind5[\"ContinueStatement\"] = 248] = \"ContinueStatement\";\n        SyntaxKind5[SyntaxKind5[\"BreakStatement\"] = 249] = \"BreakStatement\";\n        SyntaxKind5[SyntaxKind5[\"ReturnStatement\"] = 250] = \"ReturnStatement\";\n        SyntaxKind5[SyntaxKind5[\"WithStatement\"] = 251] = \"WithStatement\";\n        SyntaxKind5[SyntaxKind5[\"SwitchStatement\"] = 252] = \"SwitchStatement\";\n        SyntaxKind5[SyntaxKind5[\"LabeledStatement\"] = 253] = \"LabeledStatement\";\n        SyntaxKind5[SyntaxKind5[\"ThrowStatement\"] = 254] = \"ThrowStatement\";\n        SyntaxKind5[SyntaxKind5[\"TryStatement\"] = 255] = \"TryStatement\";\n        SyntaxKind5[SyntaxKind5[\"DebuggerStatement\"] = 256] = \"DebuggerStatement\";\n        SyntaxKind5[SyntaxKind5[\"VariableDeclaration\"] = 257] = \"VariableDeclaration\";\n        SyntaxKind5[SyntaxKind5[\"VariableDeclarationList\"] = 258] = \"VariableDeclarationList\";\n        SyntaxKind5[SyntaxKind5[\"FunctionDeclaration\"] = 259] = \"FunctionDeclaration\";\n        SyntaxKind5[SyntaxKind5[\"ClassDeclaration\"] = 260] = \"ClassDeclaration\";\n        SyntaxKind5[SyntaxKind5[\"InterfaceDeclaration\"] = 261] = \"InterfaceDeclaration\";\n        SyntaxKind5[SyntaxKind5[\"TypeAliasDeclaration\"] = 262] = \"TypeAliasDeclaration\";\n        SyntaxKind5[SyntaxKind5[\"EnumDeclaration\"] = 263] = \"EnumDeclaration\";\n        SyntaxKind5[SyntaxKind5[\"ModuleDeclaration\"] = 264] = \"ModuleDeclaration\";\n        SyntaxKind5[SyntaxKind5[\"ModuleBlock\"] = 265] = \"ModuleBlock\";\n        SyntaxKind5[SyntaxKind5[\"CaseBlock\"] = 266] = \"CaseBlock\";\n        SyntaxKind5[SyntaxKind5[\"NamespaceExportDeclaration\"] = 267] = \"NamespaceExportDeclaration\";\n        SyntaxKind5[SyntaxKind5[\"ImportEqualsDeclaration\"] = 268] = \"ImportEqualsDeclaration\";\n        SyntaxKind5[SyntaxKind5[\"ImportDeclaration\"] = 269] = \"ImportDeclaration\";\n        SyntaxKind5[SyntaxKind5[\"ImportClause\"] = 270] = \"ImportClause\";\n        SyntaxKind5[SyntaxKind5[\"NamespaceImport\"] = 271] = \"NamespaceImport\";\n        SyntaxKind5[SyntaxKind5[\"NamedImports\"] = 272] = \"NamedImports\";\n        SyntaxKind5[SyntaxKind5[\"ImportSpecifier\"] = 273] = \"ImportSpecifier\";\n        SyntaxKind5[SyntaxKind5[\"ExportAssignment\"] = 274] = \"ExportAssignment\";\n        SyntaxKind5[SyntaxKind5[\"ExportDeclaration\"] = 275] = \"ExportDeclaration\";\n        SyntaxKind5[SyntaxKind5[\"NamedExports\"] = 276] = \"NamedExports\";\n        SyntaxKind5[SyntaxKind5[\"NamespaceExport\"] = 277] = \"NamespaceExport\";\n        SyntaxKind5[SyntaxKind5[\"ExportSpecifier\"] = 278] = \"ExportSpecifier\";\n        SyntaxKind5[SyntaxKind5[\"MissingDeclaration\"] = 279] = \"MissingDeclaration\";\n        SyntaxKind5[SyntaxKind5[\"ExternalModuleReference\"] = 280] = \"ExternalModuleReference\";\n        SyntaxKind5[SyntaxKind5[\"JsxElement\"] = 281] = \"JsxElement\";\n        SyntaxKind5[SyntaxKind5[\"JsxSelfClosingElement\"] = 282] = \"JsxSelfClosingElement\";\n        SyntaxKind5[SyntaxKind5[\"JsxOpeningElement\"] = 283] = \"JsxOpeningElement\";\n        SyntaxKind5[SyntaxKind5[\"JsxClosingElement\"] = 284] = \"JsxClosingElement\";\n        SyntaxKind5[SyntaxKind5[\"JsxFragment\"] = 285] = \"JsxFragment\";\n        SyntaxKind5[SyntaxKind5[\"JsxOpeningFragment\"] = 286] = \"JsxOpeningFragment\";\n        SyntaxKind5[SyntaxKind5[\"JsxClosingFragment\"] = 287] = \"JsxClosingFragment\";\n        SyntaxKind5[SyntaxKind5[\"JsxAttribute\"] = 288] = \"JsxAttribute\";\n        SyntaxKind5[SyntaxKind5[\"JsxAttributes\"] = 289] = \"JsxAttributes\";\n        SyntaxKind5[SyntaxKind5[\"JsxSpreadAttribute\"] = 290] = \"JsxSpreadAttribute\";\n        SyntaxKind5[SyntaxKind5[\"JsxExpression\"] = 291] = \"JsxExpression\";\n        SyntaxKind5[SyntaxKind5[\"CaseClause\"] = 292] = \"CaseClause\";\n        SyntaxKind5[SyntaxKind5[\"DefaultClause\"] = 293] = \"DefaultClause\";\n        SyntaxKind5[SyntaxKind5[\"HeritageClause\"] = 294] = \"HeritageClause\";\n        SyntaxKind5[SyntaxKind5[\"CatchClause\"] = 295] = \"CatchClause\";\n        SyntaxKind5[SyntaxKind5[\"AssertClause\"] = 296] = \"AssertClause\";\n        SyntaxKind5[SyntaxKind5[\"AssertEntry\"] = 297] = \"AssertEntry\";\n        SyntaxKind5[SyntaxKind5[\"ImportTypeAssertionContainer\"] = 298] = \"ImportTypeAssertionContainer\";\n        SyntaxKind5[SyntaxKind5[\"PropertyAssignment\"] = 299] = \"PropertyAssignment\";\n        SyntaxKind5[SyntaxKind5[\"ShorthandPropertyAssignment\"] = 300] = \"ShorthandPropertyAssignment\";\n        SyntaxKind5[SyntaxKind5[\"SpreadAssignment\"] = 301] = \"SpreadAssignment\";\n        SyntaxKind5[SyntaxKind5[\"EnumMember\"] = 302] = \"EnumMember\";\n        SyntaxKind5[SyntaxKind5[\"UnparsedPrologue\"] = 303] = \"UnparsedPrologue\";\n        SyntaxKind5[SyntaxKind5[\"UnparsedPrepend\"] = 304] = \"UnparsedPrepend\";\n        SyntaxKind5[SyntaxKind5[\"UnparsedText\"] = 305] = \"UnparsedText\";\n        SyntaxKind5[SyntaxKind5[\"UnparsedInternalText\"] = 306] = \"UnparsedInternalText\";\n        SyntaxKind5[SyntaxKind5[\"UnparsedSyntheticReference\"] = 307] = \"UnparsedSyntheticReference\";\n        SyntaxKind5[SyntaxKind5[\"SourceFile\"] = 308] = \"SourceFile\";\n        SyntaxKind5[SyntaxKind5[\"Bundle\"] = 309] = \"Bundle\";\n        SyntaxKind5[SyntaxKind5[\"UnparsedSource\"] = 310] = \"UnparsedSource\";\n        SyntaxKind5[SyntaxKind5[\"InputFiles\"] = 311] = \"InputFiles\";\n        SyntaxKind5[SyntaxKind5[\"JSDocTypeExpression\"] = 312] = \"JSDocTypeExpression\";\n        SyntaxKind5[SyntaxKind5[\"JSDocNameReference\"] = 313] = \"JSDocNameReference\";\n        SyntaxKind5[SyntaxKind5[\"JSDocMemberName\"] = 314] = \"JSDocMemberName\";\n        SyntaxKind5[SyntaxKind5[\"JSDocAllType\"] = 315] = \"JSDocAllType\";\n        SyntaxKind5[SyntaxKind5[\"JSDocUnknownType\"] = 316] = \"JSDocUnknownType\";\n        SyntaxKind5[SyntaxKind5[\"JSDocNullableType\"] = 317] = \"JSDocNullableType\";\n        SyntaxKind5[SyntaxKind5[\"JSDocNonNullableType\"] = 318] = \"JSDocNonNullableType\";\n        SyntaxKind5[SyntaxKind5[\"JSDocOptionalType\"] = 319] = \"JSDocOptionalType\";\n        SyntaxKind5[SyntaxKind5[\"JSDocFunctionType\"] = 320] = \"JSDocFunctionType\";\n        SyntaxKind5[SyntaxKind5[\"JSDocVariadicType\"] = 321] = \"JSDocVariadicType\";\n        SyntaxKind5[SyntaxKind5[\"JSDocNamepathType\"] = 322] = \"JSDocNamepathType\";\n        SyntaxKind5[SyntaxKind5[\"JSDoc\"] = 323] = \"JSDoc\";\n        SyntaxKind5[SyntaxKind5[\"JSDocComment\"] = 323] = \"JSDocComment\";\n        SyntaxKind5[SyntaxKind5[\"JSDocText\"] = 324] = \"JSDocText\";\n        SyntaxKind5[SyntaxKind5[\"JSDocTypeLiteral\"] = 325] = \"JSDocTypeLiteral\";\n        SyntaxKind5[SyntaxKind5[\"JSDocSignature\"] = 326] = \"JSDocSignature\";\n        SyntaxKind5[SyntaxKind5[\"JSDocLink\"] = 327] = \"JSDocLink\";\n        SyntaxKind5[SyntaxKind5[\"JSDocLinkCode\"] = 328] = \"JSDocLinkCode\";\n        SyntaxKind5[SyntaxKind5[\"JSDocLinkPlain\"] = 329] = \"JSDocLinkPlain\";\n        SyntaxKind5[SyntaxKind5[\"JSDocTag\"] = 330] = \"JSDocTag\";\n        SyntaxKind5[SyntaxKind5[\"JSDocAugmentsTag\"] = 331] = \"JSDocAugmentsTag\";\n        SyntaxKind5[SyntaxKind5[\"JSDocImplementsTag\"] = 332] = \"JSDocImplementsTag\";\n        SyntaxKind5[SyntaxKind5[\"JSDocAuthorTag\"] = 333] = \"JSDocAuthorTag\";\n        SyntaxKind5[SyntaxKind5[\"JSDocDeprecatedTag\"] = 334] = \"JSDocDeprecatedTag\";\n        SyntaxKind5[SyntaxKind5[\"JSDocClassTag\"] = 335] = \"JSDocClassTag\";\n        SyntaxKind5[SyntaxKind5[\"JSDocPublicTag\"] = 336] = \"JSDocPublicTag\";\n        SyntaxKind5[SyntaxKind5[\"JSDocPrivateTag\"] = 337] = \"JSDocPrivateTag\";\n        SyntaxKind5[SyntaxKind5[\"JSDocProtectedTag\"] = 338] = \"JSDocProtectedTag\";\n        SyntaxKind5[SyntaxKind5[\"JSDocReadonlyTag\"] = 339] = \"JSDocReadonlyTag\";\n        SyntaxKind5[SyntaxKind5[\"JSDocOverrideTag\"] = 340] = \"JSDocOverrideTag\";\n        SyntaxKind5[SyntaxKind5[\"JSDocCallbackTag\"] = 341] = \"JSDocCallbackTag\";\n        SyntaxKind5[SyntaxKind5[\"JSDocOverloadTag\"] = 342] = \"JSDocOverloadTag\";\n        SyntaxKind5[SyntaxKind5[\"JSDocEnumTag\"] = 343] = \"JSDocEnumTag\";\n        SyntaxKind5[SyntaxKind5[\"JSDocParameterTag\"] = 344] = \"JSDocParameterTag\";\n        SyntaxKind5[SyntaxKind5[\"JSDocReturnTag\"] = 345] = \"JSDocReturnTag\";\n        SyntaxKind5[SyntaxKind5[\"JSDocThisTag\"] = 346] = \"JSDocThisTag\";\n        SyntaxKind5[SyntaxKind5[\"JSDocTypeTag\"] = 347] = \"JSDocTypeTag\";\n        SyntaxKind5[SyntaxKind5[\"JSDocTemplateTag\"] = 348] = \"JSDocTemplateTag\";\n        SyntaxKind5[SyntaxKind5[\"JSDocTypedefTag\"] = 349] = \"JSDocTypedefTag\";\n        SyntaxKind5[SyntaxKind5[\"JSDocSeeTag\"] = 350] = \"JSDocSeeTag\";\n        SyntaxKind5[SyntaxKind5[\"JSDocPropertyTag\"] = 351] = \"JSDocPropertyTag\";\n        SyntaxKind5[SyntaxKind5[\"JSDocThrowsTag\"] = 352] = \"JSDocThrowsTag\";\n        SyntaxKind5[SyntaxKind5[\"JSDocSatisfiesTag\"] = 353] = \"JSDocSatisfiesTag\";\n        SyntaxKind5[SyntaxKind5[\"SyntaxList\"] = 354] = \"SyntaxList\";\n        SyntaxKind5[SyntaxKind5[\"NotEmittedStatement\"] = 355] = \"NotEmittedStatement\";\n        SyntaxKind5[SyntaxKind5[\"PartiallyEmittedExpression\"] = 356] = \"PartiallyEmittedExpression\";\n        SyntaxKind5[SyntaxKind5[\"CommaListExpression\"] = 357] = \"CommaListExpression\";\n        SyntaxKind5[SyntaxKind5[\"MergeDeclarationMarker\"] = 358] = \"MergeDeclarationMarker\";\n        SyntaxKind5[SyntaxKind5[\"EndOfDeclarationMarker\"] = 359] = \"EndOfDeclarationMarker\";\n        SyntaxKind5[SyntaxKind5[\"SyntheticReferenceExpression\"] = 360] = \"SyntheticReferenceExpression\";\n        SyntaxKind5[SyntaxKind5[\"Count\"] = 361] = \"Count\";\n        SyntaxKind5[SyntaxKind5[\"FirstAssignment\"] = 63] = \"FirstAssignment\";\n        SyntaxKind5[SyntaxKind5[\"LastAssignment\"] = 78] = \"LastAssignment\";\n        SyntaxKind5[SyntaxKind5[\"FirstCompoundAssignment\"] = 64] = \"FirstCompoundAssignment\";\n        SyntaxKind5[SyntaxKind5[\"LastCompoundAssignment\"] = 78] = \"LastCompoundAssignment\";\n        SyntaxKind5[SyntaxKind5[\"FirstReservedWord\"] = 81] = \"FirstReservedWord\";\n        SyntaxKind5[SyntaxKind5[\"LastReservedWord\"] = 116] = \"LastReservedWord\";\n        SyntaxKind5[SyntaxKind5[\"FirstKeyword\"] = 81] = \"FirstKeyword\";\n        SyntaxKind5[SyntaxKind5[\"LastKeyword\"] = 162] = \"LastKeyword\";\n        SyntaxKind5[SyntaxKind5[\"FirstFutureReservedWord\"] = 117] = \"FirstFutureReservedWord\";\n        SyntaxKind5[SyntaxKind5[\"LastFutureReservedWord\"] = 125] = \"LastFutureReservedWord\";\n        SyntaxKind5[SyntaxKind5[\"FirstTypeNode\"] = 179] = \"FirstTypeNode\";\n        SyntaxKind5[SyntaxKind5[\"LastTypeNode\"] = 202] = \"LastTypeNode\";\n        SyntaxKind5[SyntaxKind5[\"FirstPunctuation\"] = 18] = \"FirstPunctuation\";\n        SyntaxKind5[SyntaxKind5[\"LastPunctuation\"] = 78] = \"LastPunctuation\";\n        SyntaxKind5[SyntaxKind5[\"FirstToken\"] = 0] = \"FirstToken\";\n        SyntaxKind5[SyntaxKind5[\"LastToken\"] = 162] = \"LastToken\";\n        SyntaxKind5[SyntaxKind5[\"FirstTriviaToken\"] = 2] = \"FirstTriviaToken\";\n        SyntaxKind5[SyntaxKind5[\"LastTriviaToken\"] = 7] = \"LastTriviaToken\";\n        SyntaxKind5[SyntaxKind5[\"FirstLiteralToken\"] = 8] = \"FirstLiteralToken\";\n        SyntaxKind5[SyntaxKind5[\"LastLiteralToken\"] = 14] = \"LastLiteralToken\";\n        SyntaxKind5[SyntaxKind5[\"FirstTemplateToken\"] = 14] = \"FirstTemplateToken\";\n        SyntaxKind5[SyntaxKind5[\"LastTemplateToken\"] = 17] = \"LastTemplateToken\";\n        SyntaxKind5[SyntaxKind5[\"FirstBinaryOperator\"] = 29] = \"FirstBinaryOperator\";\n        SyntaxKind5[SyntaxKind5[\"LastBinaryOperator\"] = 78] = \"LastBinaryOperator\";\n        SyntaxKind5[SyntaxKind5[\"FirstStatement\"] = 240] = \"FirstStatement\";\n        SyntaxKind5[SyntaxKind5[\"LastStatement\"] = 256] = \"LastStatement\";\n        SyntaxKind5[SyntaxKind5[\"FirstNode\"] = 163] = \"FirstNode\";\n        SyntaxKind5[SyntaxKind5[\"FirstJSDocNode\"] = 312] = \"FirstJSDocNode\";\n        SyntaxKind5[SyntaxKind5[\"LastJSDocNode\"] = 353] = \"LastJSDocNode\";\n        SyntaxKind5[SyntaxKind5[\"FirstJSDocTagNode\"] = 330] = \"FirstJSDocTagNode\";\n        SyntaxKind5[SyntaxKind5[\"LastJSDocTagNode\"] = 353] = \"LastJSDocTagNode\";\n        SyntaxKind5[SyntaxKind5[\"FirstContextualKeyword\"] = 126] = \"FirstContextualKeyword\";\n        SyntaxKind5[SyntaxKind5[\"LastContextualKeyword\"] = 162] = \"LastContextualKeyword\";\n        return SyntaxKind5;\n      })(SyntaxKind || {});\n      NodeFlags = /* @__PURE__ */ ((NodeFlags3) => {\n        NodeFlags3[NodeFlags3[\"None\"] = 0] = \"None\";\n        NodeFlags3[NodeFlags3[\"Let\"] = 1] = \"Let\";\n        NodeFlags3[NodeFlags3[\"Const\"] = 2] = \"Const\";\n        NodeFlags3[NodeFlags3[\"NestedNamespace\"] = 4] = \"NestedNamespace\";\n        NodeFlags3[NodeFlags3[\"Synthesized\"] = 8] = \"Synthesized\";\n        NodeFlags3[NodeFlags3[\"Namespace\"] = 16] = \"Namespace\";\n        NodeFlags3[NodeFlags3[\"OptionalChain\"] = 32] = \"OptionalChain\";\n        NodeFlags3[NodeFlags3[\"ExportContext\"] = 64] = \"ExportContext\";\n        NodeFlags3[NodeFlags3[\"ContainsThis\"] = 128] = \"ContainsThis\";\n        NodeFlags3[NodeFlags3[\"HasImplicitReturn\"] = 256] = \"HasImplicitReturn\";\n        NodeFlags3[NodeFlags3[\"HasExplicitReturn\"] = 512] = \"HasExplicitReturn\";\n        NodeFlags3[NodeFlags3[\"GlobalAugmentation\"] = 1024] = \"GlobalAugmentation\";\n        NodeFlags3[NodeFlags3[\"HasAsyncFunctions\"] = 2048] = \"HasAsyncFunctions\";\n        NodeFlags3[NodeFlags3[\"DisallowInContext\"] = 4096] = \"DisallowInContext\";\n        NodeFlags3[NodeFlags3[\"YieldContext\"] = 8192] = \"YieldContext\";\n        NodeFlags3[NodeFlags3[\"DecoratorContext\"] = 16384] = \"DecoratorContext\";\n        NodeFlags3[NodeFlags3[\"AwaitContext\"] = 32768] = \"AwaitContext\";\n        NodeFlags3[NodeFlags3[\"DisallowConditionalTypesContext\"] = 65536] = \"DisallowConditionalTypesContext\";\n        NodeFlags3[NodeFlags3[\"ThisNodeHasError\"] = 131072] = \"ThisNodeHasError\";\n        NodeFlags3[NodeFlags3[\"JavaScriptFile\"] = 262144] = \"JavaScriptFile\";\n        NodeFlags3[NodeFlags3[\"ThisNodeOrAnySubNodesHasError\"] = 524288] = \"ThisNodeOrAnySubNodesHasError\";\n        NodeFlags3[NodeFlags3[\"HasAggregatedChildData\"] = 1048576] = \"HasAggregatedChildData\";\n        NodeFlags3[NodeFlags3[\"PossiblyContainsDynamicImport\"] = 2097152] = \"PossiblyContainsDynamicImport\";\n        NodeFlags3[NodeFlags3[\"PossiblyContainsImportMeta\"] = 4194304] = \"PossiblyContainsImportMeta\";\n        NodeFlags3[NodeFlags3[\"JSDoc\"] = 8388608] = \"JSDoc\";\n        NodeFlags3[NodeFlags3[\"Ambient\"] = 16777216] = \"Ambient\";\n        NodeFlags3[NodeFlags3[\"InWithStatement\"] = 33554432] = \"InWithStatement\";\n        NodeFlags3[NodeFlags3[\"JsonFile\"] = 67108864] = \"JsonFile\";\n        NodeFlags3[NodeFlags3[\"TypeCached\"] = 134217728] = \"TypeCached\";\n        NodeFlags3[NodeFlags3[\"Deprecated\"] = 268435456] = \"Deprecated\";\n        NodeFlags3[NodeFlags3[\"BlockScoped\"] = 3] = \"BlockScoped\";\n        NodeFlags3[NodeFlags3[\"ReachabilityCheckFlags\"] = 768] = \"ReachabilityCheckFlags\";\n        NodeFlags3[NodeFlags3[\"ReachabilityAndEmitFlags\"] = 2816] = \"ReachabilityAndEmitFlags\";\n        NodeFlags3[NodeFlags3[\"ContextFlags\"] = 50720768] = \"ContextFlags\";\n        NodeFlags3[NodeFlags3[\"TypeExcludesFlags\"] = 40960] = \"TypeExcludesFlags\";\n        NodeFlags3[NodeFlags3[\"PermanentlySetIncrementalFlags\"] = 6291456] = \"PermanentlySetIncrementalFlags\";\n        NodeFlags3[NodeFlags3[\"IdentifierHasExtendedUnicodeEscape\"] = 128] = \"IdentifierHasExtendedUnicodeEscape\";\n        NodeFlags3[NodeFlags3[\"IdentifierIsInJSDocNamespace\"] = 2048] = \"IdentifierIsInJSDocNamespace\";\n        return NodeFlags3;\n      })(NodeFlags || {});\n      ModifierFlags = /* @__PURE__ */ ((ModifierFlags3) => {\n        ModifierFlags3[ModifierFlags3[\"None\"] = 0] = \"None\";\n        ModifierFlags3[ModifierFlags3[\"Export\"] = 1] = \"Export\";\n        ModifierFlags3[ModifierFlags3[\"Ambient\"] = 2] = \"Ambient\";\n        ModifierFlags3[ModifierFlags3[\"Public\"] = 4] = \"Public\";\n        ModifierFlags3[ModifierFlags3[\"Private\"] = 8] = \"Private\";\n        ModifierFlags3[ModifierFlags3[\"Protected\"] = 16] = \"Protected\";\n        ModifierFlags3[ModifierFlags3[\"Static\"] = 32] = \"Static\";\n        ModifierFlags3[ModifierFlags3[\"Readonly\"] = 64] = \"Readonly\";\n        ModifierFlags3[ModifierFlags3[\"Accessor\"] = 128] = \"Accessor\";\n        ModifierFlags3[ModifierFlags3[\"Abstract\"] = 256] = \"Abstract\";\n        ModifierFlags3[ModifierFlags3[\"Async\"] = 512] = \"Async\";\n        ModifierFlags3[ModifierFlags3[\"Default\"] = 1024] = \"Default\";\n        ModifierFlags3[ModifierFlags3[\"Const\"] = 2048] = \"Const\";\n        ModifierFlags3[ModifierFlags3[\"HasComputedJSDocModifiers\"] = 4096] = \"HasComputedJSDocModifiers\";\n        ModifierFlags3[ModifierFlags3[\"Deprecated\"] = 8192] = \"Deprecated\";\n        ModifierFlags3[ModifierFlags3[\"Override\"] = 16384] = \"Override\";\n        ModifierFlags3[ModifierFlags3[\"In\"] = 32768] = \"In\";\n        ModifierFlags3[ModifierFlags3[\"Out\"] = 65536] = \"Out\";\n        ModifierFlags3[ModifierFlags3[\"Decorator\"] = 131072] = \"Decorator\";\n        ModifierFlags3[ModifierFlags3[\"HasComputedFlags\"] = 536870912] = \"HasComputedFlags\";\n        ModifierFlags3[ModifierFlags3[\"AccessibilityModifier\"] = 28] = \"AccessibilityModifier\";\n        ModifierFlags3[ModifierFlags3[\"ParameterPropertyModifier\"] = 16476] = \"ParameterPropertyModifier\";\n        ModifierFlags3[ModifierFlags3[\"NonPublicAccessibilityModifier\"] = 24] = \"NonPublicAccessibilityModifier\";\n        ModifierFlags3[ModifierFlags3[\"TypeScriptModifier\"] = 117086] = \"TypeScriptModifier\";\n        ModifierFlags3[ModifierFlags3[\"ExportDefault\"] = 1025] = \"ExportDefault\";\n        ModifierFlags3[ModifierFlags3[\"All\"] = 258047] = \"All\";\n        ModifierFlags3[ModifierFlags3[\"Modifier\"] = 126975] = \"Modifier\";\n        return ModifierFlags3;\n      })(ModifierFlags || {});\n      JsxFlags = /* @__PURE__ */ ((JsxFlags2) => {\n        JsxFlags2[JsxFlags2[\"None\"] = 0] = \"None\";\n        JsxFlags2[JsxFlags2[\"IntrinsicNamedElement\"] = 1] = \"IntrinsicNamedElement\";\n        JsxFlags2[JsxFlags2[\"IntrinsicIndexedElement\"] = 2] = \"IntrinsicIndexedElement\";\n        JsxFlags2[JsxFlags2[\"IntrinsicElement\"] = 3] = \"IntrinsicElement\";\n        return JsxFlags2;\n      })(JsxFlags || {});\n      RelationComparisonResult = /* @__PURE__ */ ((RelationComparisonResult3) => {\n        RelationComparisonResult3[RelationComparisonResult3[\"Succeeded\"] = 1] = \"Succeeded\";\n        RelationComparisonResult3[RelationComparisonResult3[\"Failed\"] = 2] = \"Failed\";\n        RelationComparisonResult3[RelationComparisonResult3[\"Reported\"] = 4] = \"Reported\";\n        RelationComparisonResult3[RelationComparisonResult3[\"ReportsUnmeasurable\"] = 8] = \"ReportsUnmeasurable\";\n        RelationComparisonResult3[RelationComparisonResult3[\"ReportsUnreliable\"] = 16] = \"ReportsUnreliable\";\n        RelationComparisonResult3[RelationComparisonResult3[\"ReportsMask\"] = 24] = \"ReportsMask\";\n        return RelationComparisonResult3;\n      })(RelationComparisonResult || {});\n      GeneratedIdentifierFlags = /* @__PURE__ */ ((GeneratedIdentifierFlags2) => {\n        GeneratedIdentifierFlags2[GeneratedIdentifierFlags2[\"None\"] = 0] = \"None\";\n        GeneratedIdentifierFlags2[GeneratedIdentifierFlags2[\"Auto\"] = 1] = \"Auto\";\n        GeneratedIdentifierFlags2[GeneratedIdentifierFlags2[\"Loop\"] = 2] = \"Loop\";\n        GeneratedIdentifierFlags2[GeneratedIdentifierFlags2[\"Unique\"] = 3] = \"Unique\";\n        GeneratedIdentifierFlags2[GeneratedIdentifierFlags2[\"Node\"] = 4] = \"Node\";\n        GeneratedIdentifierFlags2[GeneratedIdentifierFlags2[\"KindMask\"] = 7] = \"KindMask\";\n        GeneratedIdentifierFlags2[GeneratedIdentifierFlags2[\"ReservedInNestedScopes\"] = 8] = \"ReservedInNestedScopes\";\n        GeneratedIdentifierFlags2[GeneratedIdentifierFlags2[\"Optimistic\"] = 16] = \"Optimistic\";\n        GeneratedIdentifierFlags2[GeneratedIdentifierFlags2[\"FileLevel\"] = 32] = \"FileLevel\";\n        GeneratedIdentifierFlags2[GeneratedIdentifierFlags2[\"AllowNameSubstitution\"] = 64] = \"AllowNameSubstitution\";\n        return GeneratedIdentifierFlags2;\n      })(GeneratedIdentifierFlags || {});\n      TokenFlags = /* @__PURE__ */ ((TokenFlags2) => {\n        TokenFlags2[TokenFlags2[\"None\"] = 0] = \"None\";\n        TokenFlags2[TokenFlags2[\"PrecedingLineBreak\"] = 1] = \"PrecedingLineBreak\";\n        TokenFlags2[TokenFlags2[\"PrecedingJSDocComment\"] = 2] = \"PrecedingJSDocComment\";\n        TokenFlags2[TokenFlags2[\"Unterminated\"] = 4] = \"Unterminated\";\n        TokenFlags2[TokenFlags2[\"ExtendedUnicodeEscape\"] = 8] = \"ExtendedUnicodeEscape\";\n        TokenFlags2[TokenFlags2[\"Scientific\"] = 16] = \"Scientific\";\n        TokenFlags2[TokenFlags2[\"Octal\"] = 32] = \"Octal\";\n        TokenFlags2[TokenFlags2[\"HexSpecifier\"] = 64] = \"HexSpecifier\";\n        TokenFlags2[TokenFlags2[\"BinarySpecifier\"] = 128] = \"BinarySpecifier\";\n        TokenFlags2[TokenFlags2[\"OctalSpecifier\"] = 256] = \"OctalSpecifier\";\n        TokenFlags2[TokenFlags2[\"ContainsSeparator\"] = 512] = \"ContainsSeparator\";\n        TokenFlags2[TokenFlags2[\"UnicodeEscape\"] = 1024] = \"UnicodeEscape\";\n        TokenFlags2[TokenFlags2[\"ContainsInvalidEscape\"] = 2048] = \"ContainsInvalidEscape\";\n        TokenFlags2[TokenFlags2[\"BinaryOrOctalSpecifier\"] = 384] = \"BinaryOrOctalSpecifier\";\n        TokenFlags2[TokenFlags2[\"NumericLiteralFlags\"] = 1008] = \"NumericLiteralFlags\";\n        TokenFlags2[TokenFlags2[\"TemplateLiteralLikeFlags\"] = 2048] = \"TemplateLiteralLikeFlags\";\n        return TokenFlags2;\n      })(TokenFlags || {});\n      FlowFlags = /* @__PURE__ */ ((FlowFlags2) => {\n        FlowFlags2[FlowFlags2[\"Unreachable\"] = 1] = \"Unreachable\";\n        FlowFlags2[FlowFlags2[\"Start\"] = 2] = \"Start\";\n        FlowFlags2[FlowFlags2[\"BranchLabel\"] = 4] = \"BranchLabel\";\n        FlowFlags2[FlowFlags2[\"LoopLabel\"] = 8] = \"LoopLabel\";\n        FlowFlags2[FlowFlags2[\"Assignment\"] = 16] = \"Assignment\";\n        FlowFlags2[FlowFlags2[\"TrueCondition\"] = 32] = \"TrueCondition\";\n        FlowFlags2[FlowFlags2[\"FalseCondition\"] = 64] = \"FalseCondition\";\n        FlowFlags2[FlowFlags2[\"SwitchClause\"] = 128] = \"SwitchClause\";\n        FlowFlags2[FlowFlags2[\"ArrayMutation\"] = 256] = \"ArrayMutation\";\n        FlowFlags2[FlowFlags2[\"Call\"] = 512] = \"Call\";\n        FlowFlags2[FlowFlags2[\"ReduceLabel\"] = 1024] = \"ReduceLabel\";\n        FlowFlags2[FlowFlags2[\"Referenced\"] = 2048] = \"Referenced\";\n        FlowFlags2[FlowFlags2[\"Shared\"] = 4096] = \"Shared\";\n        FlowFlags2[FlowFlags2[\"Label\"] = 12] = \"Label\";\n        FlowFlags2[FlowFlags2[\"Condition\"] = 96] = \"Condition\";\n        return FlowFlags2;\n      })(FlowFlags || {});\n      CommentDirectiveType = /* @__PURE__ */ ((CommentDirectiveType2) => {\n        CommentDirectiveType2[CommentDirectiveType2[\"ExpectError\"] = 0] = \"ExpectError\";\n        CommentDirectiveType2[CommentDirectiveType2[\"Ignore\"] = 1] = \"Ignore\";\n        return CommentDirectiveType2;\n      })(CommentDirectiveType || {});\n      OperationCanceledException = class {\n      };\n      FileIncludeKind = /* @__PURE__ */ ((FileIncludeKind2) => {\n        FileIncludeKind2[FileIncludeKind2[\"RootFile\"] = 0] = \"RootFile\";\n        FileIncludeKind2[FileIncludeKind2[\"SourceFromProjectReference\"] = 1] = \"SourceFromProjectReference\";\n        FileIncludeKind2[FileIncludeKind2[\"OutputFromProjectReference\"] = 2] = \"OutputFromProjectReference\";\n        FileIncludeKind2[FileIncludeKind2[\"Import\"] = 3] = \"Import\";\n        FileIncludeKind2[FileIncludeKind2[\"ReferenceFile\"] = 4] = \"ReferenceFile\";\n        FileIncludeKind2[FileIncludeKind2[\"TypeReferenceDirective\"] = 5] = \"TypeReferenceDirective\";\n        FileIncludeKind2[FileIncludeKind2[\"LibFile\"] = 6] = \"LibFile\";\n        FileIncludeKind2[FileIncludeKind2[\"LibReferenceDirective\"] = 7] = \"LibReferenceDirective\";\n        FileIncludeKind2[FileIncludeKind2[\"AutomaticTypeDirectiveFile\"] = 8] = \"AutomaticTypeDirectiveFile\";\n        return FileIncludeKind2;\n      })(FileIncludeKind || {});\n      FilePreprocessingDiagnosticsKind = /* @__PURE__ */ ((FilePreprocessingDiagnosticsKind2) => {\n        FilePreprocessingDiagnosticsKind2[FilePreprocessingDiagnosticsKind2[\"FilePreprocessingReferencedDiagnostic\"] = 0] = \"FilePreprocessingReferencedDiagnostic\";\n        FilePreprocessingDiagnosticsKind2[FilePreprocessingDiagnosticsKind2[\"FilePreprocessingFileExplainingDiagnostic\"] = 1] = \"FilePreprocessingFileExplainingDiagnostic\";\n        FilePreprocessingDiagnosticsKind2[FilePreprocessingDiagnosticsKind2[\"ResolutionDiagnostics\"] = 2] = \"ResolutionDiagnostics\";\n        return FilePreprocessingDiagnosticsKind2;\n      })(FilePreprocessingDiagnosticsKind || {});\n      EmitOnly = /* @__PURE__ */ ((EmitOnly4) => {\n        EmitOnly4[EmitOnly4[\"Js\"] = 0] = \"Js\";\n        EmitOnly4[EmitOnly4[\"Dts\"] = 1] = \"Dts\";\n        return EmitOnly4;\n      })(EmitOnly || {});\n      StructureIsReused = /* @__PURE__ */ ((StructureIsReused2) => {\n        StructureIsReused2[StructureIsReused2[\"Not\"] = 0] = \"Not\";\n        StructureIsReused2[StructureIsReused2[\"SafeModules\"] = 1] = \"SafeModules\";\n        StructureIsReused2[StructureIsReused2[\"Completely\"] = 2] = \"Completely\";\n        return StructureIsReused2;\n      })(StructureIsReused || {});\n      ExitStatus = /* @__PURE__ */ ((ExitStatus2) => {\n        ExitStatus2[ExitStatus2[\"Success\"] = 0] = \"Success\";\n        ExitStatus2[ExitStatus2[\"DiagnosticsPresent_OutputsSkipped\"] = 1] = \"DiagnosticsPresent_OutputsSkipped\";\n        ExitStatus2[ExitStatus2[\"DiagnosticsPresent_OutputsGenerated\"] = 2] = \"DiagnosticsPresent_OutputsGenerated\";\n        ExitStatus2[ExitStatus2[\"InvalidProject_OutputsSkipped\"] = 3] = \"InvalidProject_OutputsSkipped\";\n        ExitStatus2[ExitStatus2[\"ProjectReferenceCycle_OutputsSkipped\"] = 4] = \"ProjectReferenceCycle_OutputsSkipped\";\n        return ExitStatus2;\n      })(ExitStatus || {});\n      MemberOverrideStatus = /* @__PURE__ */ ((MemberOverrideStatus2) => {\n        MemberOverrideStatus2[MemberOverrideStatus2[\"Ok\"] = 0] = \"Ok\";\n        MemberOverrideStatus2[MemberOverrideStatus2[\"NeedsOverride\"] = 1] = \"NeedsOverride\";\n        MemberOverrideStatus2[MemberOverrideStatus2[\"HasInvalidOverride\"] = 2] = \"HasInvalidOverride\";\n        return MemberOverrideStatus2;\n      })(MemberOverrideStatus || {});\n      UnionReduction = /* @__PURE__ */ ((UnionReduction2) => {\n        UnionReduction2[UnionReduction2[\"None\"] = 0] = \"None\";\n        UnionReduction2[UnionReduction2[\"Literal\"] = 1] = \"Literal\";\n        UnionReduction2[UnionReduction2[\"Subtype\"] = 2] = \"Subtype\";\n        return UnionReduction2;\n      })(UnionReduction || {});\n      ContextFlags = /* @__PURE__ */ ((ContextFlags3) => {\n        ContextFlags3[ContextFlags3[\"None\"] = 0] = \"None\";\n        ContextFlags3[ContextFlags3[\"Signature\"] = 1] = \"Signature\";\n        ContextFlags3[ContextFlags3[\"NoConstraints\"] = 2] = \"NoConstraints\";\n        ContextFlags3[ContextFlags3[\"Completions\"] = 4] = \"Completions\";\n        ContextFlags3[ContextFlags3[\"SkipBindingPatterns\"] = 8] = \"SkipBindingPatterns\";\n        return ContextFlags3;\n      })(ContextFlags || {});\n      NodeBuilderFlags = /* @__PURE__ */ ((NodeBuilderFlags2) => {\n        NodeBuilderFlags2[NodeBuilderFlags2[\"None\"] = 0] = \"None\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"NoTruncation\"] = 1] = \"NoTruncation\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"WriteArrayAsGenericType\"] = 2] = \"WriteArrayAsGenericType\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"GenerateNamesForShadowedTypeParams\"] = 4] = \"GenerateNamesForShadowedTypeParams\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"UseStructuralFallback\"] = 8] = \"UseStructuralFallback\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"ForbidIndexedAccessSymbolReferences\"] = 16] = \"ForbidIndexedAccessSymbolReferences\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"WriteTypeArgumentsOfSignature\"] = 32] = \"WriteTypeArgumentsOfSignature\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"UseFullyQualifiedType\"] = 64] = \"UseFullyQualifiedType\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"UseOnlyExternalAliasing\"] = 128] = \"UseOnlyExternalAliasing\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"SuppressAnyReturnType\"] = 256] = \"SuppressAnyReturnType\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"WriteTypeParametersInQualifiedName\"] = 512] = \"WriteTypeParametersInQualifiedName\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"MultilineObjectLiterals\"] = 1024] = \"MultilineObjectLiterals\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"WriteClassExpressionAsTypeLiteral\"] = 2048] = \"WriteClassExpressionAsTypeLiteral\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"UseTypeOfFunction\"] = 4096] = \"UseTypeOfFunction\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"OmitParameterModifiers\"] = 8192] = \"OmitParameterModifiers\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"UseAliasDefinedOutsideCurrentScope\"] = 16384] = \"UseAliasDefinedOutsideCurrentScope\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"UseSingleQuotesForStringLiteralType\"] = 268435456] = \"UseSingleQuotesForStringLiteralType\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"NoTypeReduction\"] = 536870912] = \"NoTypeReduction\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"OmitThisParameter\"] = 33554432] = \"OmitThisParameter\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"AllowThisInObjectLiteral\"] = 32768] = \"AllowThisInObjectLiteral\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"AllowQualifiedNameInPlaceOfIdentifier\"] = 65536] = \"AllowQualifiedNameInPlaceOfIdentifier\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"AllowAnonymousIdentifier\"] = 131072] = \"AllowAnonymousIdentifier\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"AllowEmptyUnionOrIntersection\"] = 262144] = \"AllowEmptyUnionOrIntersection\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"AllowEmptyTuple\"] = 524288] = \"AllowEmptyTuple\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"AllowUniqueESSymbolType\"] = 1048576] = \"AllowUniqueESSymbolType\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"AllowEmptyIndexInfoType\"] = 2097152] = \"AllowEmptyIndexInfoType\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"WriteComputedProps\"] = 1073741824] = \"WriteComputedProps\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"AllowNodeModulesRelativePaths\"] = 67108864] = \"AllowNodeModulesRelativePaths\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"DoNotIncludeSymbolChain\"] = 134217728] = \"DoNotIncludeSymbolChain\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"IgnoreErrors\"] = 70221824] = \"IgnoreErrors\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"InObjectTypeLiteral\"] = 4194304] = \"InObjectTypeLiteral\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"InTypeAlias\"] = 8388608] = \"InTypeAlias\";\n        NodeBuilderFlags2[NodeBuilderFlags2[\"InInitialEntityName\"] = 16777216] = \"InInitialEntityName\";\n        return NodeBuilderFlags2;\n      })(NodeBuilderFlags || {});\n      TypeFormatFlags = /* @__PURE__ */ ((TypeFormatFlags2) => {\n        TypeFormatFlags2[TypeFormatFlags2[\"None\"] = 0] = \"None\";\n        TypeFormatFlags2[TypeFormatFlags2[\"NoTruncation\"] = 1] = \"NoTruncation\";\n        TypeFormatFlags2[TypeFormatFlags2[\"WriteArrayAsGenericType\"] = 2] = \"WriteArrayAsGenericType\";\n        TypeFormatFlags2[TypeFormatFlags2[\"UseStructuralFallback\"] = 8] = \"UseStructuralFallback\";\n        TypeFormatFlags2[TypeFormatFlags2[\"WriteTypeArgumentsOfSignature\"] = 32] = \"WriteTypeArgumentsOfSignature\";\n        TypeFormatFlags2[TypeFormatFlags2[\"UseFullyQualifiedType\"] = 64] = \"UseFullyQualifiedType\";\n        TypeFormatFlags2[TypeFormatFlags2[\"SuppressAnyReturnType\"] = 256] = \"SuppressAnyReturnType\";\n        TypeFormatFlags2[TypeFormatFlags2[\"MultilineObjectLiterals\"] = 1024] = \"MultilineObjectLiterals\";\n        TypeFormatFlags2[TypeFormatFlags2[\"WriteClassExpressionAsTypeLiteral\"] = 2048] = \"WriteClassExpressionAsTypeLiteral\";\n        TypeFormatFlags2[TypeFormatFlags2[\"UseTypeOfFunction\"] = 4096] = \"UseTypeOfFunction\";\n        TypeFormatFlags2[TypeFormatFlags2[\"OmitParameterModifiers\"] = 8192] = \"OmitParameterModifiers\";\n        TypeFormatFlags2[TypeFormatFlags2[\"UseAliasDefinedOutsideCurrentScope\"] = 16384] = \"UseAliasDefinedOutsideCurrentScope\";\n        TypeFormatFlags2[TypeFormatFlags2[\"UseSingleQuotesForStringLiteralType\"] = 268435456] = \"UseSingleQuotesForStringLiteralType\";\n        TypeFormatFlags2[TypeFormatFlags2[\"NoTypeReduction\"] = 536870912] = \"NoTypeReduction\";\n        TypeFormatFlags2[TypeFormatFlags2[\"OmitThisParameter\"] = 33554432] = \"OmitThisParameter\";\n        TypeFormatFlags2[TypeFormatFlags2[\"AllowUniqueESSymbolType\"] = 1048576] = \"AllowUniqueESSymbolType\";\n        TypeFormatFlags2[TypeFormatFlags2[\"AddUndefined\"] = 131072] = \"AddUndefined\";\n        TypeFormatFlags2[TypeFormatFlags2[\"WriteArrowStyleSignature\"] = 262144] = \"WriteArrowStyleSignature\";\n        TypeFormatFlags2[TypeFormatFlags2[\"InArrayType\"] = 524288] = \"InArrayType\";\n        TypeFormatFlags2[TypeFormatFlags2[\"InElementType\"] = 2097152] = \"InElementType\";\n        TypeFormatFlags2[TypeFormatFlags2[\"InFirstTypeArgument\"] = 4194304] = \"InFirstTypeArgument\";\n        TypeFormatFlags2[TypeFormatFlags2[\"InTypeAlias\"] = 8388608] = \"InTypeAlias\";\n        TypeFormatFlags2[TypeFormatFlags2[\"NodeBuilderFlagsMask\"] = 848330091] = \"NodeBuilderFlagsMask\";\n        return TypeFormatFlags2;\n      })(TypeFormatFlags || {});\n      SymbolFormatFlags = /* @__PURE__ */ ((SymbolFormatFlags2) => {\n        SymbolFormatFlags2[SymbolFormatFlags2[\"None\"] = 0] = \"None\";\n        SymbolFormatFlags2[SymbolFormatFlags2[\"WriteTypeParametersOrArguments\"] = 1] = \"WriteTypeParametersOrArguments\";\n        SymbolFormatFlags2[SymbolFormatFlags2[\"UseOnlyExternalAliasing\"] = 2] = \"UseOnlyExternalAliasing\";\n        SymbolFormatFlags2[SymbolFormatFlags2[\"AllowAnyNodeKind\"] = 4] = \"AllowAnyNodeKind\";\n        SymbolFormatFlags2[SymbolFormatFlags2[\"UseAliasDefinedOutsideCurrentScope\"] = 8] = \"UseAliasDefinedOutsideCurrentScope\";\n        SymbolFormatFlags2[SymbolFormatFlags2[\"WriteComputedProps\"] = 16] = \"WriteComputedProps\";\n        SymbolFormatFlags2[SymbolFormatFlags2[\"DoNotIncludeSymbolChain\"] = 32] = \"DoNotIncludeSymbolChain\";\n        return SymbolFormatFlags2;\n      })(SymbolFormatFlags || {});\n      SymbolAccessibility = /* @__PURE__ */ ((SymbolAccessibility2) => {\n        SymbolAccessibility2[SymbolAccessibility2[\"Accessible\"] = 0] = \"Accessible\";\n        SymbolAccessibility2[SymbolAccessibility2[\"NotAccessible\"] = 1] = \"NotAccessible\";\n        SymbolAccessibility2[SymbolAccessibility2[\"CannotBeNamed\"] = 2] = \"CannotBeNamed\";\n        return SymbolAccessibility2;\n      })(SymbolAccessibility || {});\n      SyntheticSymbolKind = /* @__PURE__ */ ((SyntheticSymbolKind2) => {\n        SyntheticSymbolKind2[SyntheticSymbolKind2[\"UnionOrIntersection\"] = 0] = \"UnionOrIntersection\";\n        SyntheticSymbolKind2[SyntheticSymbolKind2[\"Spread\"] = 1] = \"Spread\";\n        return SyntheticSymbolKind2;\n      })(SyntheticSymbolKind || {});\n      TypePredicateKind = /* @__PURE__ */ ((TypePredicateKind2) => {\n        TypePredicateKind2[TypePredicateKind2[\"This\"] = 0] = \"This\";\n        TypePredicateKind2[TypePredicateKind2[\"Identifier\"] = 1] = \"Identifier\";\n        TypePredicateKind2[TypePredicateKind2[\"AssertsThis\"] = 2] = \"AssertsThis\";\n        TypePredicateKind2[TypePredicateKind2[\"AssertsIdentifier\"] = 3] = \"AssertsIdentifier\";\n        return TypePredicateKind2;\n      })(TypePredicateKind || {});\n      TypeReferenceSerializationKind = /* @__PURE__ */ ((TypeReferenceSerializationKind2) => {\n        TypeReferenceSerializationKind2[TypeReferenceSerializationKind2[\"Unknown\"] = 0] = \"Unknown\";\n        TypeReferenceSerializationKind2[TypeReferenceSerializationKind2[\"TypeWithConstructSignatureAndValue\"] = 1] = \"TypeWithConstructSignatureAndValue\";\n        TypeReferenceSerializationKind2[TypeReferenceSerializationKind2[\"VoidNullableOrNeverType\"] = 2] = \"VoidNullableOrNeverType\";\n        TypeReferenceSerializationKind2[TypeReferenceSerializationKind2[\"NumberLikeType\"] = 3] = \"NumberLikeType\";\n        TypeReferenceSerializationKind2[TypeReferenceSerializationKind2[\"BigIntLikeType\"] = 4] = \"BigIntLikeType\";\n        TypeReferenceSerializationKind2[TypeReferenceSerializationKind2[\"StringLikeType\"] = 5] = \"StringLikeType\";\n        TypeReferenceSerializationKind2[TypeReferenceSerializationKind2[\"BooleanType\"] = 6] = \"BooleanType\";\n        TypeReferenceSerializationKind2[TypeReferenceSerializationKind2[\"ArrayLikeType\"] = 7] = \"ArrayLikeType\";\n        TypeReferenceSerializationKind2[TypeReferenceSerializationKind2[\"ESSymbolType\"] = 8] = \"ESSymbolType\";\n        TypeReferenceSerializationKind2[TypeReferenceSerializationKind2[\"Promise\"] = 9] = \"Promise\";\n        TypeReferenceSerializationKind2[TypeReferenceSerializationKind2[\"TypeWithCallSignature\"] = 10] = \"TypeWithCallSignature\";\n        TypeReferenceSerializationKind2[TypeReferenceSerializationKind2[\"ObjectType\"] = 11] = \"ObjectType\";\n        return TypeReferenceSerializationKind2;\n      })(TypeReferenceSerializationKind || {});\n      SymbolFlags = /* @__PURE__ */ ((SymbolFlags3) => {\n        SymbolFlags3[SymbolFlags3[\"None\"] = 0] = \"None\";\n        SymbolFlags3[SymbolFlags3[\"FunctionScopedVariable\"] = 1] = \"FunctionScopedVariable\";\n        SymbolFlags3[SymbolFlags3[\"BlockScopedVariable\"] = 2] = \"BlockScopedVariable\";\n        SymbolFlags3[SymbolFlags3[\"Property\"] = 4] = \"Property\";\n        SymbolFlags3[SymbolFlags3[\"EnumMember\"] = 8] = \"EnumMember\";\n        SymbolFlags3[SymbolFlags3[\"Function\"] = 16] = \"Function\";\n        SymbolFlags3[SymbolFlags3[\"Class\"] = 32] = \"Class\";\n        SymbolFlags3[SymbolFlags3[\"Interface\"] = 64] = \"Interface\";\n        SymbolFlags3[SymbolFlags3[\"ConstEnum\"] = 128] = \"ConstEnum\";\n        SymbolFlags3[SymbolFlags3[\"RegularEnum\"] = 256] = \"RegularEnum\";\n        SymbolFlags3[SymbolFlags3[\"ValueModule\"] = 512] = \"ValueModule\";\n        SymbolFlags3[SymbolFlags3[\"NamespaceModule\"] = 1024] = \"NamespaceModule\";\n        SymbolFlags3[SymbolFlags3[\"TypeLiteral\"] = 2048] = \"TypeLiteral\";\n        SymbolFlags3[SymbolFlags3[\"ObjectLiteral\"] = 4096] = \"ObjectLiteral\";\n        SymbolFlags3[SymbolFlags3[\"Method\"] = 8192] = \"Method\";\n        SymbolFlags3[SymbolFlags3[\"Constructor\"] = 16384] = \"Constructor\";\n        SymbolFlags3[SymbolFlags3[\"GetAccessor\"] = 32768] = \"GetAccessor\";\n        SymbolFlags3[SymbolFlags3[\"SetAccessor\"] = 65536] = \"SetAccessor\";\n        SymbolFlags3[SymbolFlags3[\"Signature\"] = 131072] = \"Signature\";\n        SymbolFlags3[SymbolFlags3[\"TypeParameter\"] = 262144] = \"TypeParameter\";\n        SymbolFlags3[SymbolFlags3[\"TypeAlias\"] = 524288] = \"TypeAlias\";\n        SymbolFlags3[SymbolFlags3[\"ExportValue\"] = 1048576] = \"ExportValue\";\n        SymbolFlags3[SymbolFlags3[\"Alias\"] = 2097152] = \"Alias\";\n        SymbolFlags3[SymbolFlags3[\"Prototype\"] = 4194304] = \"Prototype\";\n        SymbolFlags3[SymbolFlags3[\"ExportStar\"] = 8388608] = \"ExportStar\";\n        SymbolFlags3[SymbolFlags3[\"Optional\"] = 16777216] = \"Optional\";\n        SymbolFlags3[SymbolFlags3[\"Transient\"] = 33554432] = \"Transient\";\n        SymbolFlags3[SymbolFlags3[\"Assignment\"] = 67108864] = \"Assignment\";\n        SymbolFlags3[SymbolFlags3[\"ModuleExports\"] = 134217728] = \"ModuleExports\";\n        SymbolFlags3[SymbolFlags3[\"All\"] = 67108863] = \"All\";\n        SymbolFlags3[SymbolFlags3[\"Enum\"] = 384] = \"Enum\";\n        SymbolFlags3[SymbolFlags3[\"Variable\"] = 3] = \"Variable\";\n        SymbolFlags3[SymbolFlags3[\"Value\"] = 111551] = \"Value\";\n        SymbolFlags3[SymbolFlags3[\"Type\"] = 788968] = \"Type\";\n        SymbolFlags3[SymbolFlags3[\"Namespace\"] = 1920] = \"Namespace\";\n        SymbolFlags3[SymbolFlags3[\"Module\"] = 1536] = \"Module\";\n        SymbolFlags3[SymbolFlags3[\"Accessor\"] = 98304] = \"Accessor\";\n        SymbolFlags3[SymbolFlags3[\"FunctionScopedVariableExcludes\"] = 111550] = \"FunctionScopedVariableExcludes\";\n        SymbolFlags3[SymbolFlags3[\"BlockScopedVariableExcludes\"] = 111551] = \"BlockScopedVariableExcludes\";\n        SymbolFlags3[SymbolFlags3[\"ParameterExcludes\"] = 111551] = \"ParameterExcludes\";\n        SymbolFlags3[SymbolFlags3[\"PropertyExcludes\"] = 0] = \"PropertyExcludes\";\n        SymbolFlags3[SymbolFlags3[\"EnumMemberExcludes\"] = 900095] = \"EnumMemberExcludes\";\n        SymbolFlags3[SymbolFlags3[\"FunctionExcludes\"] = 110991] = \"FunctionExcludes\";\n        SymbolFlags3[SymbolFlags3[\"ClassExcludes\"] = 899503] = \"ClassExcludes\";\n        SymbolFlags3[SymbolFlags3[\"InterfaceExcludes\"] = 788872] = \"InterfaceExcludes\";\n        SymbolFlags3[SymbolFlags3[\"RegularEnumExcludes\"] = 899327] = \"RegularEnumExcludes\";\n        SymbolFlags3[SymbolFlags3[\"ConstEnumExcludes\"] = 899967] = \"ConstEnumExcludes\";\n        SymbolFlags3[SymbolFlags3[\"ValueModuleExcludes\"] = 110735] = \"ValueModuleExcludes\";\n        SymbolFlags3[SymbolFlags3[\"NamespaceModuleExcludes\"] = 0] = \"NamespaceModuleExcludes\";\n        SymbolFlags3[SymbolFlags3[\"MethodExcludes\"] = 103359] = \"MethodExcludes\";\n        SymbolFlags3[SymbolFlags3[\"GetAccessorExcludes\"] = 46015] = \"GetAccessorExcludes\";\n        SymbolFlags3[SymbolFlags3[\"SetAccessorExcludes\"] = 78783] = \"SetAccessorExcludes\";\n        SymbolFlags3[SymbolFlags3[\"AccessorExcludes\"] = 13247] = \"AccessorExcludes\";\n        SymbolFlags3[SymbolFlags3[\"TypeParameterExcludes\"] = 526824] = \"TypeParameterExcludes\";\n        SymbolFlags3[SymbolFlags3[\"TypeAliasExcludes\"] = 788968] = \"TypeAliasExcludes\";\n        SymbolFlags3[SymbolFlags3[\"AliasExcludes\"] = 2097152] = \"AliasExcludes\";\n        SymbolFlags3[SymbolFlags3[\"ModuleMember\"] = 2623475] = \"ModuleMember\";\n        SymbolFlags3[SymbolFlags3[\"ExportHasLocal\"] = 944] = \"ExportHasLocal\";\n        SymbolFlags3[SymbolFlags3[\"BlockScoped\"] = 418] = \"BlockScoped\";\n        SymbolFlags3[SymbolFlags3[\"PropertyOrAccessor\"] = 98308] = \"PropertyOrAccessor\";\n        SymbolFlags3[SymbolFlags3[\"ClassMember\"] = 106500] = \"ClassMember\";\n        SymbolFlags3[SymbolFlags3[\"ExportSupportsDefaultModifier\"] = 112] = \"ExportSupportsDefaultModifier\";\n        SymbolFlags3[SymbolFlags3[\"ExportDoesNotSupportDefaultModifier\"] = -113] = \"ExportDoesNotSupportDefaultModifier\";\n        SymbolFlags3[SymbolFlags3[\"Classifiable\"] = 2885600] = \"Classifiable\";\n        SymbolFlags3[SymbolFlags3[\"LateBindingContainer\"] = 6256] = \"LateBindingContainer\";\n        return SymbolFlags3;\n      })(SymbolFlags || {});\n      EnumKind = /* @__PURE__ */ ((EnumKind2) => {\n        EnumKind2[EnumKind2[\"Numeric\"] = 0] = \"Numeric\";\n        EnumKind2[EnumKind2[\"Literal\"] = 1] = \"Literal\";\n        return EnumKind2;\n      })(EnumKind || {});\n      CheckFlags = /* @__PURE__ */ ((CheckFlags2) => {\n        CheckFlags2[CheckFlags2[\"None\"] = 0] = \"None\";\n        CheckFlags2[CheckFlags2[\"Instantiated\"] = 1] = \"Instantiated\";\n        CheckFlags2[CheckFlags2[\"SyntheticProperty\"] = 2] = \"SyntheticProperty\";\n        CheckFlags2[CheckFlags2[\"SyntheticMethod\"] = 4] = \"SyntheticMethod\";\n        CheckFlags2[CheckFlags2[\"Readonly\"] = 8] = \"Readonly\";\n        CheckFlags2[CheckFlags2[\"ReadPartial\"] = 16] = \"ReadPartial\";\n        CheckFlags2[CheckFlags2[\"WritePartial\"] = 32] = \"WritePartial\";\n        CheckFlags2[CheckFlags2[\"HasNonUniformType\"] = 64] = \"HasNonUniformType\";\n        CheckFlags2[CheckFlags2[\"HasLiteralType\"] = 128] = \"HasLiteralType\";\n        CheckFlags2[CheckFlags2[\"ContainsPublic\"] = 256] = \"ContainsPublic\";\n        CheckFlags2[CheckFlags2[\"ContainsProtected\"] = 512] = \"ContainsProtected\";\n        CheckFlags2[CheckFlags2[\"ContainsPrivate\"] = 1024] = \"ContainsPrivate\";\n        CheckFlags2[CheckFlags2[\"ContainsStatic\"] = 2048] = \"ContainsStatic\";\n        CheckFlags2[CheckFlags2[\"Late\"] = 4096] = \"Late\";\n        CheckFlags2[CheckFlags2[\"ReverseMapped\"] = 8192] = \"ReverseMapped\";\n        CheckFlags2[CheckFlags2[\"OptionalParameter\"] = 16384] = \"OptionalParameter\";\n        CheckFlags2[CheckFlags2[\"RestParameter\"] = 32768] = \"RestParameter\";\n        CheckFlags2[CheckFlags2[\"DeferredType\"] = 65536] = \"DeferredType\";\n        CheckFlags2[CheckFlags2[\"HasNeverType\"] = 131072] = \"HasNeverType\";\n        CheckFlags2[CheckFlags2[\"Mapped\"] = 262144] = \"Mapped\";\n        CheckFlags2[CheckFlags2[\"StripOptional\"] = 524288] = \"StripOptional\";\n        CheckFlags2[CheckFlags2[\"Unresolved\"] = 1048576] = \"Unresolved\";\n        CheckFlags2[CheckFlags2[\"Synthetic\"] = 6] = \"Synthetic\";\n        CheckFlags2[CheckFlags2[\"Discriminant\"] = 192] = \"Discriminant\";\n        CheckFlags2[CheckFlags2[\"Partial\"] = 48] = \"Partial\";\n        return CheckFlags2;\n      })(CheckFlags || {});\n      InternalSymbolName = /* @__PURE__ */ ((InternalSymbolName2) => {\n        InternalSymbolName2[\"Call\"] = \"__call\";\n        InternalSymbolName2[\"Constructor\"] = \"__constructor\";\n        InternalSymbolName2[\"New\"] = \"__new\";\n        InternalSymbolName2[\"Index\"] = \"__index\";\n        InternalSymbolName2[\"ExportStar\"] = \"__export\";\n        InternalSymbolName2[\"Global\"] = \"__global\";\n        InternalSymbolName2[\"Missing\"] = \"__missing\";\n        InternalSymbolName2[\"Type\"] = \"__type\";\n        InternalSymbolName2[\"Object\"] = \"__object\";\n        InternalSymbolName2[\"JSXAttributes\"] = \"__jsxAttributes\";\n        InternalSymbolName2[\"Class\"] = \"__class\";\n        InternalSymbolName2[\"Function\"] = \"__function\";\n        InternalSymbolName2[\"Computed\"] = \"__computed\";\n        InternalSymbolName2[\"Resolving\"] = \"__resolving__\";\n        InternalSymbolName2[\"ExportEquals\"] = \"export=\";\n        InternalSymbolName2[\"Default\"] = \"default\";\n        InternalSymbolName2[\"This\"] = \"this\";\n        return InternalSymbolName2;\n      })(InternalSymbolName || {});\n      NodeCheckFlags = /* @__PURE__ */ ((NodeCheckFlags2) => {\n        NodeCheckFlags2[NodeCheckFlags2[\"None\"] = 0] = \"None\";\n        NodeCheckFlags2[NodeCheckFlags2[\"TypeChecked\"] = 1] = \"TypeChecked\";\n        NodeCheckFlags2[NodeCheckFlags2[\"LexicalThis\"] = 2] = \"LexicalThis\";\n        NodeCheckFlags2[NodeCheckFlags2[\"CaptureThis\"] = 4] = \"CaptureThis\";\n        NodeCheckFlags2[NodeCheckFlags2[\"CaptureNewTarget\"] = 8] = \"CaptureNewTarget\";\n        NodeCheckFlags2[NodeCheckFlags2[\"SuperInstance\"] = 16] = \"SuperInstance\";\n        NodeCheckFlags2[NodeCheckFlags2[\"SuperStatic\"] = 32] = \"SuperStatic\";\n        NodeCheckFlags2[NodeCheckFlags2[\"ContextChecked\"] = 64] = \"ContextChecked\";\n        NodeCheckFlags2[NodeCheckFlags2[\"MethodWithSuperPropertyAccessInAsync\"] = 128] = \"MethodWithSuperPropertyAccessInAsync\";\n        NodeCheckFlags2[NodeCheckFlags2[\"MethodWithSuperPropertyAssignmentInAsync\"] = 256] = \"MethodWithSuperPropertyAssignmentInAsync\";\n        NodeCheckFlags2[NodeCheckFlags2[\"CaptureArguments\"] = 512] = \"CaptureArguments\";\n        NodeCheckFlags2[NodeCheckFlags2[\"EnumValuesComputed\"] = 1024] = \"EnumValuesComputed\";\n        NodeCheckFlags2[NodeCheckFlags2[\"LexicalModuleMergesWithClass\"] = 2048] = \"LexicalModuleMergesWithClass\";\n        NodeCheckFlags2[NodeCheckFlags2[\"LoopWithCapturedBlockScopedBinding\"] = 4096] = \"LoopWithCapturedBlockScopedBinding\";\n        NodeCheckFlags2[NodeCheckFlags2[\"ContainsCapturedBlockScopeBinding\"] = 8192] = \"ContainsCapturedBlockScopeBinding\";\n        NodeCheckFlags2[NodeCheckFlags2[\"CapturedBlockScopedBinding\"] = 16384] = \"CapturedBlockScopedBinding\";\n        NodeCheckFlags2[NodeCheckFlags2[\"BlockScopedBindingInLoop\"] = 32768] = \"BlockScopedBindingInLoop\";\n        NodeCheckFlags2[NodeCheckFlags2[\"ClassWithBodyScopedClassBinding\"] = 65536] = \"ClassWithBodyScopedClassBinding\";\n        NodeCheckFlags2[NodeCheckFlags2[\"BodyScopedClassBinding\"] = 131072] = \"BodyScopedClassBinding\";\n        NodeCheckFlags2[NodeCheckFlags2[\"NeedsLoopOutParameter\"] = 262144] = \"NeedsLoopOutParameter\";\n        NodeCheckFlags2[NodeCheckFlags2[\"AssignmentsMarked\"] = 524288] = \"AssignmentsMarked\";\n        NodeCheckFlags2[NodeCheckFlags2[\"ClassWithConstructorReference\"] = 1048576] = \"ClassWithConstructorReference\";\n        NodeCheckFlags2[NodeCheckFlags2[\"ConstructorReferenceInClass\"] = 2097152] = \"ConstructorReferenceInClass\";\n        NodeCheckFlags2[NodeCheckFlags2[\"ContainsClassWithPrivateIdentifiers\"] = 4194304] = \"ContainsClassWithPrivateIdentifiers\";\n        NodeCheckFlags2[NodeCheckFlags2[\"ContainsSuperPropertyInStaticInitializer\"] = 8388608] = \"ContainsSuperPropertyInStaticInitializer\";\n        NodeCheckFlags2[NodeCheckFlags2[\"InCheckIdentifier\"] = 16777216] = \"InCheckIdentifier\";\n        return NodeCheckFlags2;\n      })(NodeCheckFlags || {});\n      TypeFlags = /* @__PURE__ */ ((TypeFlags2) => {\n        TypeFlags2[TypeFlags2[\"Any\"] = 1] = \"Any\";\n        TypeFlags2[TypeFlags2[\"Unknown\"] = 2] = \"Unknown\";\n        TypeFlags2[TypeFlags2[\"String\"] = 4] = \"String\";\n        TypeFlags2[TypeFlags2[\"Number\"] = 8] = \"Number\";\n        TypeFlags2[TypeFlags2[\"Boolean\"] = 16] = \"Boolean\";\n        TypeFlags2[TypeFlags2[\"Enum\"] = 32] = \"Enum\";\n        TypeFlags2[TypeFlags2[\"BigInt\"] = 64] = \"BigInt\";\n        TypeFlags2[TypeFlags2[\"StringLiteral\"] = 128] = \"StringLiteral\";\n        TypeFlags2[TypeFlags2[\"NumberLiteral\"] = 256] = \"NumberLiteral\";\n        TypeFlags2[TypeFlags2[\"BooleanLiteral\"] = 512] = \"BooleanLiteral\";\n        TypeFlags2[TypeFlags2[\"EnumLiteral\"] = 1024] = \"EnumLiteral\";\n        TypeFlags2[TypeFlags2[\"BigIntLiteral\"] = 2048] = \"BigIntLiteral\";\n        TypeFlags2[TypeFlags2[\"ESSymbol\"] = 4096] = \"ESSymbol\";\n        TypeFlags2[TypeFlags2[\"UniqueESSymbol\"] = 8192] = \"UniqueESSymbol\";\n        TypeFlags2[TypeFlags2[\"Void\"] = 16384] = \"Void\";\n        TypeFlags2[TypeFlags2[\"Undefined\"] = 32768] = \"Undefined\";\n        TypeFlags2[TypeFlags2[\"Null\"] = 65536] = \"Null\";\n        TypeFlags2[TypeFlags2[\"Never\"] = 131072] = \"Never\";\n        TypeFlags2[TypeFlags2[\"TypeParameter\"] = 262144] = \"TypeParameter\";\n        TypeFlags2[TypeFlags2[\"Object\"] = 524288] = \"Object\";\n        TypeFlags2[TypeFlags2[\"Union\"] = 1048576] = \"Union\";\n        TypeFlags2[TypeFlags2[\"Intersection\"] = 2097152] = \"Intersection\";\n        TypeFlags2[TypeFlags2[\"Index\"] = 4194304] = \"Index\";\n        TypeFlags2[TypeFlags2[\"IndexedAccess\"] = 8388608] = \"IndexedAccess\";\n        TypeFlags2[TypeFlags2[\"Conditional\"] = 16777216] = \"Conditional\";\n        TypeFlags2[TypeFlags2[\"Substitution\"] = 33554432] = \"Substitution\";\n        TypeFlags2[TypeFlags2[\"NonPrimitive\"] = 67108864] = \"NonPrimitive\";\n        TypeFlags2[TypeFlags2[\"TemplateLiteral\"] = 134217728] = \"TemplateLiteral\";\n        TypeFlags2[TypeFlags2[\"StringMapping\"] = 268435456] = \"StringMapping\";\n        TypeFlags2[TypeFlags2[\"AnyOrUnknown\"] = 3] = \"AnyOrUnknown\";\n        TypeFlags2[TypeFlags2[\"Nullable\"] = 98304] = \"Nullable\";\n        TypeFlags2[TypeFlags2[\"Literal\"] = 2944] = \"Literal\";\n        TypeFlags2[TypeFlags2[\"Unit\"] = 109472] = \"Unit\";\n        TypeFlags2[TypeFlags2[\"Freshable\"] = 2976] = \"Freshable\";\n        TypeFlags2[TypeFlags2[\"StringOrNumberLiteral\"] = 384] = \"StringOrNumberLiteral\";\n        TypeFlags2[TypeFlags2[\"StringOrNumberLiteralOrUnique\"] = 8576] = \"StringOrNumberLiteralOrUnique\";\n        TypeFlags2[TypeFlags2[\"DefinitelyFalsy\"] = 117632] = \"DefinitelyFalsy\";\n        TypeFlags2[TypeFlags2[\"PossiblyFalsy\"] = 117724] = \"PossiblyFalsy\";\n        TypeFlags2[TypeFlags2[\"Intrinsic\"] = 67359327] = \"Intrinsic\";\n        TypeFlags2[TypeFlags2[\"Primitive\"] = 134348796] = \"Primitive\";\n        TypeFlags2[TypeFlags2[\"StringLike\"] = 402653316] = \"StringLike\";\n        TypeFlags2[TypeFlags2[\"NumberLike\"] = 296] = \"NumberLike\";\n        TypeFlags2[TypeFlags2[\"BigIntLike\"] = 2112] = \"BigIntLike\";\n        TypeFlags2[TypeFlags2[\"BooleanLike\"] = 528] = \"BooleanLike\";\n        TypeFlags2[TypeFlags2[\"EnumLike\"] = 1056] = \"EnumLike\";\n        TypeFlags2[TypeFlags2[\"ESSymbolLike\"] = 12288] = \"ESSymbolLike\";\n        TypeFlags2[TypeFlags2[\"VoidLike\"] = 49152] = \"VoidLike\";\n        TypeFlags2[TypeFlags2[\"DefinitelyNonNullable\"] = 470302716] = \"DefinitelyNonNullable\";\n        TypeFlags2[TypeFlags2[\"DisjointDomains\"] = 469892092] = \"DisjointDomains\";\n        TypeFlags2[TypeFlags2[\"UnionOrIntersection\"] = 3145728] = \"UnionOrIntersection\";\n        TypeFlags2[TypeFlags2[\"StructuredType\"] = 3670016] = \"StructuredType\";\n        TypeFlags2[TypeFlags2[\"TypeVariable\"] = 8650752] = \"TypeVariable\";\n        TypeFlags2[TypeFlags2[\"InstantiableNonPrimitive\"] = 58982400] = \"InstantiableNonPrimitive\";\n        TypeFlags2[TypeFlags2[\"InstantiablePrimitive\"] = 406847488] = \"InstantiablePrimitive\";\n        TypeFlags2[TypeFlags2[\"Instantiable\"] = 465829888] = \"Instantiable\";\n        TypeFlags2[TypeFlags2[\"StructuredOrInstantiable\"] = 469499904] = \"StructuredOrInstantiable\";\n        TypeFlags2[TypeFlags2[\"ObjectFlagsType\"] = 3899393] = \"ObjectFlagsType\";\n        TypeFlags2[TypeFlags2[\"Simplifiable\"] = 25165824] = \"Simplifiable\";\n        TypeFlags2[TypeFlags2[\"Singleton\"] = 67358815] = \"Singleton\";\n        TypeFlags2[TypeFlags2[\"Narrowable\"] = 536624127] = \"Narrowable\";\n        TypeFlags2[TypeFlags2[\"IncludesMask\"] = 205258751] = \"IncludesMask\";\n        TypeFlags2[TypeFlags2[\"IncludesMissingType\"] = 262144] = \"IncludesMissingType\";\n        TypeFlags2[TypeFlags2[\"IncludesNonWideningType\"] = 4194304] = \"IncludesNonWideningType\";\n        TypeFlags2[TypeFlags2[\"IncludesWildcard\"] = 8388608] = \"IncludesWildcard\";\n        TypeFlags2[TypeFlags2[\"IncludesEmptyObject\"] = 16777216] = \"IncludesEmptyObject\";\n        TypeFlags2[TypeFlags2[\"IncludesInstantiable\"] = 33554432] = \"IncludesInstantiable\";\n        TypeFlags2[TypeFlags2[\"NotPrimitiveUnion\"] = 36323363] = \"NotPrimitiveUnion\";\n        return TypeFlags2;\n      })(TypeFlags || {});\n      ObjectFlags = /* @__PURE__ */ ((ObjectFlags3) => {\n        ObjectFlags3[ObjectFlags3[\"None\"] = 0] = \"None\";\n        ObjectFlags3[ObjectFlags3[\"Class\"] = 1] = \"Class\";\n        ObjectFlags3[ObjectFlags3[\"Interface\"] = 2] = \"Interface\";\n        ObjectFlags3[ObjectFlags3[\"Reference\"] = 4] = \"Reference\";\n        ObjectFlags3[ObjectFlags3[\"Tuple\"] = 8] = \"Tuple\";\n        ObjectFlags3[ObjectFlags3[\"Anonymous\"] = 16] = \"Anonymous\";\n        ObjectFlags3[ObjectFlags3[\"Mapped\"] = 32] = \"Mapped\";\n        ObjectFlags3[ObjectFlags3[\"Instantiated\"] = 64] = \"Instantiated\";\n        ObjectFlags3[ObjectFlags3[\"ObjectLiteral\"] = 128] = \"ObjectLiteral\";\n        ObjectFlags3[ObjectFlags3[\"EvolvingArray\"] = 256] = \"EvolvingArray\";\n        ObjectFlags3[ObjectFlags3[\"ObjectLiteralPatternWithComputedProperties\"] = 512] = \"ObjectLiteralPatternWithComputedProperties\";\n        ObjectFlags3[ObjectFlags3[\"ReverseMapped\"] = 1024] = \"ReverseMapped\";\n        ObjectFlags3[ObjectFlags3[\"JsxAttributes\"] = 2048] = \"JsxAttributes\";\n        ObjectFlags3[ObjectFlags3[\"JSLiteral\"] = 4096] = \"JSLiteral\";\n        ObjectFlags3[ObjectFlags3[\"FreshLiteral\"] = 8192] = \"FreshLiteral\";\n        ObjectFlags3[ObjectFlags3[\"ArrayLiteral\"] = 16384] = \"ArrayLiteral\";\n        ObjectFlags3[ObjectFlags3[\"PrimitiveUnion\"] = 32768] = \"PrimitiveUnion\";\n        ObjectFlags3[ObjectFlags3[\"ContainsWideningType\"] = 65536] = \"ContainsWideningType\";\n        ObjectFlags3[ObjectFlags3[\"ContainsObjectOrArrayLiteral\"] = 131072] = \"ContainsObjectOrArrayLiteral\";\n        ObjectFlags3[ObjectFlags3[\"NonInferrableType\"] = 262144] = \"NonInferrableType\";\n        ObjectFlags3[ObjectFlags3[\"CouldContainTypeVariablesComputed\"] = 524288] = \"CouldContainTypeVariablesComputed\";\n        ObjectFlags3[ObjectFlags3[\"CouldContainTypeVariables\"] = 1048576] = \"CouldContainTypeVariables\";\n        ObjectFlags3[ObjectFlags3[\"ClassOrInterface\"] = 3] = \"ClassOrInterface\";\n        ObjectFlags3[ObjectFlags3[\"RequiresWidening\"] = 196608] = \"RequiresWidening\";\n        ObjectFlags3[ObjectFlags3[\"PropagatingFlags\"] = 458752] = \"PropagatingFlags\";\n        ObjectFlags3[ObjectFlags3[\"ObjectTypeKindMask\"] = 1343] = \"ObjectTypeKindMask\";\n        ObjectFlags3[ObjectFlags3[\"ContainsSpread\"] = 2097152] = \"ContainsSpread\";\n        ObjectFlags3[ObjectFlags3[\"ObjectRestType\"] = 4194304] = \"ObjectRestType\";\n        ObjectFlags3[ObjectFlags3[\"InstantiationExpressionType\"] = 8388608] = \"InstantiationExpressionType\";\n        ObjectFlags3[ObjectFlags3[\"IsClassInstanceClone\"] = 16777216] = \"IsClassInstanceClone\";\n        ObjectFlags3[ObjectFlags3[\"IdenticalBaseTypeCalculated\"] = 33554432] = \"IdenticalBaseTypeCalculated\";\n        ObjectFlags3[ObjectFlags3[\"IdenticalBaseTypeExists\"] = 67108864] = \"IdenticalBaseTypeExists\";\n        ObjectFlags3[ObjectFlags3[\"IsGenericTypeComputed\"] = 2097152] = \"IsGenericTypeComputed\";\n        ObjectFlags3[ObjectFlags3[\"IsGenericObjectType\"] = 4194304] = \"IsGenericObjectType\";\n        ObjectFlags3[ObjectFlags3[\"IsGenericIndexType\"] = 8388608] = \"IsGenericIndexType\";\n        ObjectFlags3[ObjectFlags3[\"IsGenericType\"] = 12582912] = \"IsGenericType\";\n        ObjectFlags3[ObjectFlags3[\"ContainsIntersections\"] = 16777216] = \"ContainsIntersections\";\n        ObjectFlags3[ObjectFlags3[\"IsUnknownLikeUnionComputed\"] = 33554432] = \"IsUnknownLikeUnionComputed\";\n        ObjectFlags3[ObjectFlags3[\"IsUnknownLikeUnion\"] = 67108864] = \"IsUnknownLikeUnion\";\n        ObjectFlags3[ObjectFlags3[\"IsNeverIntersectionComputed\"] = 16777216] = \"IsNeverIntersectionComputed\";\n        ObjectFlags3[ObjectFlags3[\"IsNeverIntersection\"] = 33554432] = \"IsNeverIntersection\";\n        return ObjectFlags3;\n      })(ObjectFlags || {});\n      VarianceFlags = /* @__PURE__ */ ((VarianceFlags2) => {\n        VarianceFlags2[VarianceFlags2[\"Invariant\"] = 0] = \"Invariant\";\n        VarianceFlags2[VarianceFlags2[\"Covariant\"] = 1] = \"Covariant\";\n        VarianceFlags2[VarianceFlags2[\"Contravariant\"] = 2] = \"Contravariant\";\n        VarianceFlags2[VarianceFlags2[\"Bivariant\"] = 3] = \"Bivariant\";\n        VarianceFlags2[VarianceFlags2[\"Independent\"] = 4] = \"Independent\";\n        VarianceFlags2[VarianceFlags2[\"VarianceMask\"] = 7] = \"VarianceMask\";\n        VarianceFlags2[VarianceFlags2[\"Unmeasurable\"] = 8] = \"Unmeasurable\";\n        VarianceFlags2[VarianceFlags2[\"Unreliable\"] = 16] = \"Unreliable\";\n        VarianceFlags2[VarianceFlags2[\"AllowsStructuralFallback\"] = 24] = \"AllowsStructuralFallback\";\n        return VarianceFlags2;\n      })(VarianceFlags || {});\n      ElementFlags = /* @__PURE__ */ ((ElementFlags2) => {\n        ElementFlags2[ElementFlags2[\"Required\"] = 1] = \"Required\";\n        ElementFlags2[ElementFlags2[\"Optional\"] = 2] = \"Optional\";\n        ElementFlags2[ElementFlags2[\"Rest\"] = 4] = \"Rest\";\n        ElementFlags2[ElementFlags2[\"Variadic\"] = 8] = \"Variadic\";\n        ElementFlags2[ElementFlags2[\"Fixed\"] = 3] = \"Fixed\";\n        ElementFlags2[ElementFlags2[\"Variable\"] = 12] = \"Variable\";\n        ElementFlags2[ElementFlags2[\"NonRequired\"] = 14] = \"NonRequired\";\n        ElementFlags2[ElementFlags2[\"NonRest\"] = 11] = \"NonRest\";\n        return ElementFlags2;\n      })(ElementFlags || {});\n      AccessFlags = /* @__PURE__ */ ((AccessFlags2) => {\n        AccessFlags2[AccessFlags2[\"None\"] = 0] = \"None\";\n        AccessFlags2[AccessFlags2[\"IncludeUndefined\"] = 1] = \"IncludeUndefined\";\n        AccessFlags2[AccessFlags2[\"NoIndexSignatures\"] = 2] = \"NoIndexSignatures\";\n        AccessFlags2[AccessFlags2[\"Writing\"] = 4] = \"Writing\";\n        AccessFlags2[AccessFlags2[\"CacheSymbol\"] = 8] = \"CacheSymbol\";\n        AccessFlags2[AccessFlags2[\"NoTupleBoundsCheck\"] = 16] = \"NoTupleBoundsCheck\";\n        AccessFlags2[AccessFlags2[\"ExpressionPosition\"] = 32] = \"ExpressionPosition\";\n        AccessFlags2[AccessFlags2[\"ReportDeprecated\"] = 64] = \"ReportDeprecated\";\n        AccessFlags2[AccessFlags2[\"SuppressNoImplicitAnyError\"] = 128] = \"SuppressNoImplicitAnyError\";\n        AccessFlags2[AccessFlags2[\"Contextual\"] = 256] = \"Contextual\";\n        AccessFlags2[AccessFlags2[\"Persistent\"] = 1] = \"Persistent\";\n        return AccessFlags2;\n      })(AccessFlags || {});\n      JsxReferenceKind = /* @__PURE__ */ ((JsxReferenceKind2) => {\n        JsxReferenceKind2[JsxReferenceKind2[\"Component\"] = 0] = \"Component\";\n        JsxReferenceKind2[JsxReferenceKind2[\"Function\"] = 1] = \"Function\";\n        JsxReferenceKind2[JsxReferenceKind2[\"Mixed\"] = 2] = \"Mixed\";\n        return JsxReferenceKind2;\n      })(JsxReferenceKind || {});\n      SignatureKind = /* @__PURE__ */ ((SignatureKind2) => {\n        SignatureKind2[SignatureKind2[\"Call\"] = 0] = \"Call\";\n        SignatureKind2[SignatureKind2[\"Construct\"] = 1] = \"Construct\";\n        return SignatureKind2;\n      })(SignatureKind || {});\n      SignatureFlags = /* @__PURE__ */ ((SignatureFlags5) => {\n        SignatureFlags5[SignatureFlags5[\"None\"] = 0] = \"None\";\n        SignatureFlags5[SignatureFlags5[\"HasRestParameter\"] = 1] = \"HasRestParameter\";\n        SignatureFlags5[SignatureFlags5[\"HasLiteralTypes\"] = 2] = \"HasLiteralTypes\";\n        SignatureFlags5[SignatureFlags5[\"Abstract\"] = 4] = \"Abstract\";\n        SignatureFlags5[SignatureFlags5[\"IsInnerCallChain\"] = 8] = \"IsInnerCallChain\";\n        SignatureFlags5[SignatureFlags5[\"IsOuterCallChain\"] = 16] = \"IsOuterCallChain\";\n        SignatureFlags5[SignatureFlags5[\"IsUntypedSignatureInJSFile\"] = 32] = \"IsUntypedSignatureInJSFile\";\n        SignatureFlags5[SignatureFlags5[\"PropagatingFlags\"] = 39] = \"PropagatingFlags\";\n        SignatureFlags5[SignatureFlags5[\"CallChainFlags\"] = 24] = \"CallChainFlags\";\n        return SignatureFlags5;\n      })(SignatureFlags || {});\n      IndexKind = /* @__PURE__ */ ((IndexKind2) => {\n        IndexKind2[IndexKind2[\"String\"] = 0] = \"String\";\n        IndexKind2[IndexKind2[\"Number\"] = 1] = \"Number\";\n        return IndexKind2;\n      })(IndexKind || {});\n      TypeMapKind = /* @__PURE__ */ ((TypeMapKind2) => {\n        TypeMapKind2[TypeMapKind2[\"Simple\"] = 0] = \"Simple\";\n        TypeMapKind2[TypeMapKind2[\"Array\"] = 1] = \"Array\";\n        TypeMapKind2[TypeMapKind2[\"Deferred\"] = 2] = \"Deferred\";\n        TypeMapKind2[TypeMapKind2[\"Function\"] = 3] = \"Function\";\n        TypeMapKind2[TypeMapKind2[\"Composite\"] = 4] = \"Composite\";\n        TypeMapKind2[TypeMapKind2[\"Merged\"] = 5] = \"Merged\";\n        return TypeMapKind2;\n      })(TypeMapKind || {});\n      InferencePriority = /* @__PURE__ */ ((InferencePriority2) => {\n        InferencePriority2[InferencePriority2[\"None\"] = 0] = \"None\";\n        InferencePriority2[InferencePriority2[\"NakedTypeVariable\"] = 1] = \"NakedTypeVariable\";\n        InferencePriority2[InferencePriority2[\"SpeculativeTuple\"] = 2] = \"SpeculativeTuple\";\n        InferencePriority2[InferencePriority2[\"SubstituteSource\"] = 4] = \"SubstituteSource\";\n        InferencePriority2[InferencePriority2[\"HomomorphicMappedType\"] = 8] = \"HomomorphicMappedType\";\n        InferencePriority2[InferencePriority2[\"PartialHomomorphicMappedType\"] = 16] = \"PartialHomomorphicMappedType\";\n        InferencePriority2[InferencePriority2[\"MappedTypeConstraint\"] = 32] = \"MappedTypeConstraint\";\n        InferencePriority2[InferencePriority2[\"ContravariantConditional\"] = 64] = \"ContravariantConditional\";\n        InferencePriority2[InferencePriority2[\"ReturnType\"] = 128] = \"ReturnType\";\n        InferencePriority2[InferencePriority2[\"LiteralKeyof\"] = 256] = \"LiteralKeyof\";\n        InferencePriority2[InferencePriority2[\"NoConstraints\"] = 512] = \"NoConstraints\";\n        InferencePriority2[InferencePriority2[\"AlwaysStrict\"] = 1024] = \"AlwaysStrict\";\n        InferencePriority2[InferencePriority2[\"MaxValue\"] = 2048] = \"MaxValue\";\n        InferencePriority2[InferencePriority2[\"PriorityImpliesCombination\"] = 416] = \"PriorityImpliesCombination\";\n        InferencePriority2[InferencePriority2[\"Circularity\"] = -1] = \"Circularity\";\n        return InferencePriority2;\n      })(InferencePriority || {});\n      InferenceFlags = /* @__PURE__ */ ((InferenceFlags2) => {\n        InferenceFlags2[InferenceFlags2[\"None\"] = 0] = \"None\";\n        InferenceFlags2[InferenceFlags2[\"NoDefault\"] = 1] = \"NoDefault\";\n        InferenceFlags2[InferenceFlags2[\"AnyDefault\"] = 2] = \"AnyDefault\";\n        InferenceFlags2[InferenceFlags2[\"SkippedGenericFunction\"] = 4] = \"SkippedGenericFunction\";\n        return InferenceFlags2;\n      })(InferenceFlags || {});\n      Ternary = /* @__PURE__ */ ((Ternary2) => {\n        Ternary2[Ternary2[\"False\"] = 0] = \"False\";\n        Ternary2[Ternary2[\"Unknown\"] = 1] = \"Unknown\";\n        Ternary2[Ternary2[\"Maybe\"] = 3] = \"Maybe\";\n        Ternary2[Ternary2[\"True\"] = -1] = \"True\";\n        return Ternary2;\n      })(Ternary || {});\n      AssignmentDeclarationKind = /* @__PURE__ */ ((AssignmentDeclarationKind2) => {\n        AssignmentDeclarationKind2[AssignmentDeclarationKind2[\"None\"] = 0] = \"None\";\n        AssignmentDeclarationKind2[AssignmentDeclarationKind2[\"ExportsProperty\"] = 1] = \"ExportsProperty\";\n        AssignmentDeclarationKind2[AssignmentDeclarationKind2[\"ModuleExports\"] = 2] = \"ModuleExports\";\n        AssignmentDeclarationKind2[AssignmentDeclarationKind2[\"PrototypeProperty\"] = 3] = \"PrototypeProperty\";\n        AssignmentDeclarationKind2[AssignmentDeclarationKind2[\"ThisProperty\"] = 4] = \"ThisProperty\";\n        AssignmentDeclarationKind2[AssignmentDeclarationKind2[\"Property\"] = 5] = \"Property\";\n        AssignmentDeclarationKind2[AssignmentDeclarationKind2[\"Prototype\"] = 6] = \"Prototype\";\n        AssignmentDeclarationKind2[AssignmentDeclarationKind2[\"ObjectDefinePropertyValue\"] = 7] = \"ObjectDefinePropertyValue\";\n        AssignmentDeclarationKind2[AssignmentDeclarationKind2[\"ObjectDefinePropertyExports\"] = 8] = \"ObjectDefinePropertyExports\";\n        AssignmentDeclarationKind2[AssignmentDeclarationKind2[\"ObjectDefinePrototypeProperty\"] = 9] = \"ObjectDefinePrototypeProperty\";\n        return AssignmentDeclarationKind2;\n      })(AssignmentDeclarationKind || {});\n      DiagnosticCategory = /* @__PURE__ */ ((DiagnosticCategory2) => {\n        DiagnosticCategory2[DiagnosticCategory2[\"Warning\"] = 0] = \"Warning\";\n        DiagnosticCategory2[DiagnosticCategory2[\"Error\"] = 1] = \"Error\";\n        DiagnosticCategory2[DiagnosticCategory2[\"Suggestion\"] = 2] = \"Suggestion\";\n        DiagnosticCategory2[DiagnosticCategory2[\"Message\"] = 3] = \"Message\";\n        return DiagnosticCategory2;\n      })(DiagnosticCategory || {});\n      ModuleResolutionKind = /* @__PURE__ */ ((ModuleResolutionKind2) => {\n        ModuleResolutionKind2[ModuleResolutionKind2[\"Classic\"] = 1] = \"Classic\";\n        ModuleResolutionKind2[ModuleResolutionKind2[\"NodeJs\"] = 2] = \"NodeJs\";\n        ModuleResolutionKind2[ModuleResolutionKind2[\"Node10\"] = 2] = \"Node10\";\n        ModuleResolutionKind2[ModuleResolutionKind2[\"Node16\"] = 3] = \"Node16\";\n        ModuleResolutionKind2[ModuleResolutionKind2[\"NodeNext\"] = 99] = \"NodeNext\";\n        ModuleResolutionKind2[ModuleResolutionKind2[\"Bundler\"] = 100] = \"Bundler\";\n        return ModuleResolutionKind2;\n      })(ModuleResolutionKind || {});\n      ModuleDetectionKind = /* @__PURE__ */ ((ModuleDetectionKind2) => {\n        ModuleDetectionKind2[ModuleDetectionKind2[\"Legacy\"] = 1] = \"Legacy\";\n        ModuleDetectionKind2[ModuleDetectionKind2[\"Auto\"] = 2] = \"Auto\";\n        ModuleDetectionKind2[ModuleDetectionKind2[\"Force\"] = 3] = \"Force\";\n        return ModuleDetectionKind2;\n      })(ModuleDetectionKind || {});\n      WatchFileKind = /* @__PURE__ */ ((WatchFileKind2) => {\n        WatchFileKind2[WatchFileKind2[\"FixedPollingInterval\"] = 0] = \"FixedPollingInterval\";\n        WatchFileKind2[WatchFileKind2[\"PriorityPollingInterval\"] = 1] = \"PriorityPollingInterval\";\n        WatchFileKind2[WatchFileKind2[\"DynamicPriorityPolling\"] = 2] = \"DynamicPriorityPolling\";\n        WatchFileKind2[WatchFileKind2[\"FixedChunkSizePolling\"] = 3] = \"FixedChunkSizePolling\";\n        WatchFileKind2[WatchFileKind2[\"UseFsEvents\"] = 4] = \"UseFsEvents\";\n        WatchFileKind2[WatchFileKind2[\"UseFsEventsOnParentDirectory\"] = 5] = \"UseFsEventsOnParentDirectory\";\n        return WatchFileKind2;\n      })(WatchFileKind || {});\n      WatchDirectoryKind = /* @__PURE__ */ ((WatchDirectoryKind2) => {\n        WatchDirectoryKind2[WatchDirectoryKind2[\"UseFsEvents\"] = 0] = \"UseFsEvents\";\n        WatchDirectoryKind2[WatchDirectoryKind2[\"FixedPollingInterval\"] = 1] = \"FixedPollingInterval\";\n        WatchDirectoryKind2[WatchDirectoryKind2[\"DynamicPriorityPolling\"] = 2] = \"DynamicPriorityPolling\";\n        WatchDirectoryKind2[WatchDirectoryKind2[\"FixedChunkSizePolling\"] = 3] = \"FixedChunkSizePolling\";\n        return WatchDirectoryKind2;\n      })(WatchDirectoryKind || {});\n      PollingWatchKind = /* @__PURE__ */ ((PollingWatchKind2) => {\n        PollingWatchKind2[PollingWatchKind2[\"FixedInterval\"] = 0] = \"FixedInterval\";\n        PollingWatchKind2[PollingWatchKind2[\"PriorityInterval\"] = 1] = \"PriorityInterval\";\n        PollingWatchKind2[PollingWatchKind2[\"DynamicPriority\"] = 2] = \"DynamicPriority\";\n        PollingWatchKind2[PollingWatchKind2[\"FixedChunkSize\"] = 3] = \"FixedChunkSize\";\n        return PollingWatchKind2;\n      })(PollingWatchKind || {});\n      ModuleKind = /* @__PURE__ */ ((ModuleKind2) => {\n        ModuleKind2[ModuleKind2[\"None\"] = 0] = \"None\";\n        ModuleKind2[ModuleKind2[\"CommonJS\"] = 1] = \"CommonJS\";\n        ModuleKind2[ModuleKind2[\"AMD\"] = 2] = \"AMD\";\n        ModuleKind2[ModuleKind2[\"UMD\"] = 3] = \"UMD\";\n        ModuleKind2[ModuleKind2[\"System\"] = 4] = \"System\";\n        ModuleKind2[ModuleKind2[\"ES2015\"] = 5] = \"ES2015\";\n        ModuleKind2[ModuleKind2[\"ES2020\"] = 6] = \"ES2020\";\n        ModuleKind2[ModuleKind2[\"ES2022\"] = 7] = \"ES2022\";\n        ModuleKind2[ModuleKind2[\"ESNext\"] = 99] = \"ESNext\";\n        ModuleKind2[ModuleKind2[\"Node16\"] = 100] = \"Node16\";\n        ModuleKind2[ModuleKind2[\"NodeNext\"] = 199] = \"NodeNext\";\n        return ModuleKind2;\n      })(ModuleKind || {});\n      JsxEmit = /* @__PURE__ */ ((JsxEmit2) => {\n        JsxEmit2[JsxEmit2[\"None\"] = 0] = \"None\";\n        JsxEmit2[JsxEmit2[\"Preserve\"] = 1] = \"Preserve\";\n        JsxEmit2[JsxEmit2[\"React\"] = 2] = \"React\";\n        JsxEmit2[JsxEmit2[\"ReactNative\"] = 3] = \"ReactNative\";\n        JsxEmit2[JsxEmit2[\"ReactJSX\"] = 4] = \"ReactJSX\";\n        JsxEmit2[JsxEmit2[\"ReactJSXDev\"] = 5] = \"ReactJSXDev\";\n        return JsxEmit2;\n      })(JsxEmit || {});\n      ImportsNotUsedAsValues = /* @__PURE__ */ ((ImportsNotUsedAsValues2) => {\n        ImportsNotUsedAsValues2[ImportsNotUsedAsValues2[\"Remove\"] = 0] = \"Remove\";\n        ImportsNotUsedAsValues2[ImportsNotUsedAsValues2[\"Preserve\"] = 1] = \"Preserve\";\n        ImportsNotUsedAsValues2[ImportsNotUsedAsValues2[\"Error\"] = 2] = \"Error\";\n        return ImportsNotUsedAsValues2;\n      })(ImportsNotUsedAsValues || {});\n      NewLineKind = /* @__PURE__ */ ((NewLineKind2) => {\n        NewLineKind2[NewLineKind2[\"CarriageReturnLineFeed\"] = 0] = \"CarriageReturnLineFeed\";\n        NewLineKind2[NewLineKind2[\"LineFeed\"] = 1] = \"LineFeed\";\n        return NewLineKind2;\n      })(NewLineKind || {});\n      ScriptKind2 = /* @__PURE__ */ ((ScriptKind5) => {\n        ScriptKind5[ScriptKind5[\"Unknown\"] = 0] = \"Unknown\";\n        ScriptKind5[ScriptKind5[\"JS\"] = 1] = \"JS\";\n        ScriptKind5[ScriptKind5[\"JSX\"] = 2] = \"JSX\";\n        ScriptKind5[ScriptKind5[\"TS\"] = 3] = \"TS\";\n        ScriptKind5[ScriptKind5[\"TSX\"] = 4] = \"TSX\";\n        ScriptKind5[ScriptKind5[\"External\"] = 5] = \"External\";\n        ScriptKind5[ScriptKind5[\"JSON\"] = 6] = \"JSON\";\n        ScriptKind5[ScriptKind5[\"Deferred\"] = 7] = \"Deferred\";\n        return ScriptKind5;\n      })(ScriptKind2 || {});\n      ScriptTarget2 = /* @__PURE__ */ ((ScriptTarget10) => {\n        ScriptTarget10[ScriptTarget10[\"ES3\"] = 0] = \"ES3\";\n        ScriptTarget10[ScriptTarget10[\"ES5\"] = 1] = \"ES5\";\n        ScriptTarget10[ScriptTarget10[\"ES2015\"] = 2] = \"ES2015\";\n        ScriptTarget10[ScriptTarget10[\"ES2016\"] = 3] = \"ES2016\";\n        ScriptTarget10[ScriptTarget10[\"ES2017\"] = 4] = \"ES2017\";\n        ScriptTarget10[ScriptTarget10[\"ES2018\"] = 5] = \"ES2018\";\n        ScriptTarget10[ScriptTarget10[\"ES2019\"] = 6] = \"ES2019\";\n        ScriptTarget10[ScriptTarget10[\"ES2020\"] = 7] = \"ES2020\";\n        ScriptTarget10[ScriptTarget10[\"ES2021\"] = 8] = \"ES2021\";\n        ScriptTarget10[ScriptTarget10[\"ES2022\"] = 9] = \"ES2022\";\n        ScriptTarget10[ScriptTarget10[\"ESNext\"] = 99] = \"ESNext\";\n        ScriptTarget10[ScriptTarget10[\"JSON\"] = 100] = \"JSON\";\n        ScriptTarget10[ScriptTarget10[\"Latest\"] = 99] = \"Latest\";\n        return ScriptTarget10;\n      })(ScriptTarget2 || {});\n      LanguageVariant = /* @__PURE__ */ ((LanguageVariant4) => {\n        LanguageVariant4[LanguageVariant4[\"Standard\"] = 0] = \"Standard\";\n        LanguageVariant4[LanguageVariant4[\"JSX\"] = 1] = \"JSX\";\n        return LanguageVariant4;\n      })(LanguageVariant || {});\n      WatchDirectoryFlags = /* @__PURE__ */ ((WatchDirectoryFlags3) => {\n        WatchDirectoryFlags3[WatchDirectoryFlags3[\"None\"] = 0] = \"None\";\n        WatchDirectoryFlags3[WatchDirectoryFlags3[\"Recursive\"] = 1] = \"Recursive\";\n        return WatchDirectoryFlags3;\n      })(WatchDirectoryFlags || {});\n      CharacterCodes = /* @__PURE__ */ ((CharacterCodes2) => {\n        CharacterCodes2[CharacterCodes2[\"nullCharacter\"] = 0] = \"nullCharacter\";\n        CharacterCodes2[CharacterCodes2[\"maxAsciiCharacter\"] = 127] = \"maxAsciiCharacter\";\n        CharacterCodes2[CharacterCodes2[\"lineFeed\"] = 10] = \"lineFeed\";\n        CharacterCodes2[CharacterCodes2[\"carriageReturn\"] = 13] = \"carriageReturn\";\n        CharacterCodes2[CharacterCodes2[\"lineSeparator\"] = 8232] = \"lineSeparator\";\n        CharacterCodes2[CharacterCodes2[\"paragraphSeparator\"] = 8233] = \"paragraphSeparator\";\n        CharacterCodes2[CharacterCodes2[\"nextLine\"] = 133] = \"nextLine\";\n        CharacterCodes2[CharacterCodes2[\"space\"] = 32] = \"space\";\n        CharacterCodes2[CharacterCodes2[\"nonBreakingSpace\"] = 160] = \"nonBreakingSpace\";\n        CharacterCodes2[CharacterCodes2[\"enQuad\"] = 8192] = \"enQuad\";\n        CharacterCodes2[CharacterCodes2[\"emQuad\"] = 8193] = \"emQuad\";\n        CharacterCodes2[CharacterCodes2[\"enSpace\"] = 8194] = \"enSpace\";\n        CharacterCodes2[CharacterCodes2[\"emSpace\"] = 8195] = \"emSpace\";\n        CharacterCodes2[CharacterCodes2[\"threePerEmSpace\"] = 8196] = \"threePerEmSpace\";\n        CharacterCodes2[CharacterCodes2[\"fourPerEmSpace\"] = 8197] = \"fourPerEmSpace\";\n        CharacterCodes2[CharacterCodes2[\"sixPerEmSpace\"] = 8198] = \"sixPerEmSpace\";\n        CharacterCodes2[CharacterCodes2[\"figureSpace\"] = 8199] = \"figureSpace\";\n        CharacterCodes2[CharacterCodes2[\"punctuationSpace\"] = 8200] = \"punctuationSpace\";\n        CharacterCodes2[CharacterCodes2[\"thinSpace\"] = 8201] = \"thinSpace\";\n        CharacterCodes2[CharacterCodes2[\"hairSpace\"] = 8202] = \"hairSpace\";\n        CharacterCodes2[CharacterCodes2[\"zeroWidthSpace\"] = 8203] = \"zeroWidthSpace\";\n        CharacterCodes2[CharacterCodes2[\"narrowNoBreakSpace\"] = 8239] = \"narrowNoBreakSpace\";\n        CharacterCodes2[CharacterCodes2[\"ideographicSpace\"] = 12288] = \"ideographicSpace\";\n        CharacterCodes2[CharacterCodes2[\"mathematicalSpace\"] = 8287] = \"mathematicalSpace\";\n        CharacterCodes2[CharacterCodes2[\"ogham\"] = 5760] = \"ogham\";\n        CharacterCodes2[CharacterCodes2[\"_\"] = 95] = \"_\";\n        CharacterCodes2[CharacterCodes2[\"$\"] = 36] = \"$\";\n        CharacterCodes2[CharacterCodes2[\"_0\"] = 48] = \"_0\";\n        CharacterCodes2[CharacterCodes2[\"_1\"] = 49] = \"_1\";\n        CharacterCodes2[CharacterCodes2[\"_2\"] = 50] = \"_2\";\n        CharacterCodes2[CharacterCodes2[\"_3\"] = 51] = \"_3\";\n        CharacterCodes2[CharacterCodes2[\"_4\"] = 52] = \"_4\";\n        CharacterCodes2[CharacterCodes2[\"_5\"] = 53] = \"_5\";\n        CharacterCodes2[CharacterCodes2[\"_6\"] = 54] = \"_6\";\n        CharacterCodes2[CharacterCodes2[\"_7\"] = 55] = \"_7\";\n        CharacterCodes2[CharacterCodes2[\"_8\"] = 56] = \"_8\";\n        CharacterCodes2[CharacterCodes2[\"_9\"] = 57] = \"_9\";\n        CharacterCodes2[CharacterCodes2[\"a\"] = 97] = \"a\";\n        CharacterCodes2[CharacterCodes2[\"b\"] = 98] = \"b\";\n        CharacterCodes2[CharacterCodes2[\"c\"] = 99] = \"c\";\n        CharacterCodes2[CharacterCodes2[\"d\"] = 100] = \"d\";\n        CharacterCodes2[CharacterCodes2[\"e\"] = 101] = \"e\";\n        CharacterCodes2[CharacterCodes2[\"f\"] = 102] = \"f\";\n        CharacterCodes2[CharacterCodes2[\"g\"] = 103] = \"g\";\n        CharacterCodes2[CharacterCodes2[\"h\"] = 104] = \"h\";\n        CharacterCodes2[CharacterCodes2[\"i\"] = 105] = \"i\";\n        CharacterCodes2[CharacterCodes2[\"j\"] = 106] = \"j\";\n        CharacterCodes2[CharacterCodes2[\"k\"] = 107] = \"k\";\n        CharacterCodes2[CharacterCodes2[\"l\"] = 108] = \"l\";\n        CharacterCodes2[CharacterCodes2[\"m\"] = 109] = \"m\";\n        CharacterCodes2[CharacterCodes2[\"n\"] = 110] = \"n\";\n        CharacterCodes2[CharacterCodes2[\"o\"] = 111] = \"o\";\n        CharacterCodes2[CharacterCodes2[\"p\"] = 112] = \"p\";\n        CharacterCodes2[CharacterCodes2[\"q\"] = 113] = \"q\";\n        CharacterCodes2[CharacterCodes2[\"r\"] = 114] = \"r\";\n        CharacterCodes2[CharacterCodes2[\"s\"] = 115] = \"s\";\n        CharacterCodes2[CharacterCodes2[\"t\"] = 116] = \"t\";\n        CharacterCodes2[CharacterCodes2[\"u\"] = 117] = \"u\";\n        CharacterCodes2[CharacterCodes2[\"v\"] = 118] = \"v\";\n        CharacterCodes2[CharacterCodes2[\"w\"] = 119] = \"w\";\n        CharacterCodes2[CharacterCodes2[\"x\"] = 120] = \"x\";\n        CharacterCodes2[CharacterCodes2[\"y\"] = 121] = \"y\";\n        CharacterCodes2[CharacterCodes2[\"z\"] = 122] = \"z\";\n        CharacterCodes2[CharacterCodes2[\"A\"] = 65] = \"A\";\n        CharacterCodes2[CharacterCodes2[\"B\"] = 66] = \"B\";\n        CharacterCodes2[CharacterCodes2[\"C\"] = 67] = \"C\";\n        CharacterCodes2[CharacterCodes2[\"D\"] = 68] = \"D\";\n        CharacterCodes2[CharacterCodes2[\"E\"] = 69] = \"E\";\n        CharacterCodes2[CharacterCodes2[\"F\"] = 70] = \"F\";\n        CharacterCodes2[CharacterCodes2[\"G\"] = 71] = \"G\";\n        CharacterCodes2[CharacterCodes2[\"H\"] = 72] = \"H\";\n        CharacterCodes2[CharacterCodes2[\"I\"] = 73] = \"I\";\n        CharacterCodes2[CharacterCodes2[\"J\"] = 74] = \"J\";\n        CharacterCodes2[CharacterCodes2[\"K\"] = 75] = \"K\";\n        CharacterCodes2[CharacterCodes2[\"L\"] = 76] = \"L\";\n        CharacterCodes2[CharacterCodes2[\"M\"] = 77] = \"M\";\n        CharacterCodes2[CharacterCodes2[\"N\"] = 78] = \"N\";\n        CharacterCodes2[CharacterCodes2[\"O\"] = 79] = \"O\";\n        CharacterCodes2[CharacterCodes2[\"P\"] = 80] = \"P\";\n        CharacterCodes2[CharacterCodes2[\"Q\"] = 81] = \"Q\";\n        CharacterCodes2[CharacterCodes2[\"R\"] = 82] = \"R\";\n        CharacterCodes2[CharacterCodes2[\"S\"] = 83] = \"S\";\n        CharacterCodes2[CharacterCodes2[\"T\"] = 84] = \"T\";\n        CharacterCodes2[CharacterCodes2[\"U\"] = 85] = \"U\";\n        CharacterCodes2[CharacterCodes2[\"V\"] = 86] = \"V\";\n        CharacterCodes2[CharacterCodes2[\"W\"] = 87] = \"W\";\n        CharacterCodes2[CharacterCodes2[\"X\"] = 88] = \"X\";\n        CharacterCodes2[CharacterCodes2[\"Y\"] = 89] = \"Y\";\n        CharacterCodes2[CharacterCodes2[\"Z\"] = 90] = \"Z\";\n        CharacterCodes2[CharacterCodes2[\"ampersand\"] = 38] = \"ampersand\";\n        CharacterCodes2[CharacterCodes2[\"asterisk\"] = 42] = \"asterisk\";\n        CharacterCodes2[CharacterCodes2[\"at\"] = 64] = \"at\";\n        CharacterCodes2[CharacterCodes2[\"backslash\"] = 92] = \"backslash\";\n        CharacterCodes2[CharacterCodes2[\"backtick\"] = 96] = \"backtick\";\n        CharacterCodes2[CharacterCodes2[\"bar\"] = 124] = \"bar\";\n        CharacterCodes2[CharacterCodes2[\"caret\"] = 94] = \"caret\";\n        CharacterCodes2[CharacterCodes2[\"closeBrace\"] = 125] = \"closeBrace\";\n        CharacterCodes2[CharacterCodes2[\"closeBracket\"] = 93] = \"closeBracket\";\n        CharacterCodes2[CharacterCodes2[\"closeParen\"] = 41] = \"closeParen\";\n        CharacterCodes2[CharacterCodes2[\"colon\"] = 58] = \"colon\";\n        CharacterCodes2[CharacterCodes2[\"comma\"] = 44] = \"comma\";\n        CharacterCodes2[CharacterCodes2[\"dot\"] = 46] = \"dot\";\n        CharacterCodes2[CharacterCodes2[\"doubleQuote\"] = 34] = \"doubleQuote\";\n        CharacterCodes2[CharacterCodes2[\"equals\"] = 61] = \"equals\";\n        CharacterCodes2[CharacterCodes2[\"exclamation\"] = 33] = \"exclamation\";\n        CharacterCodes2[CharacterCodes2[\"greaterThan\"] = 62] = \"greaterThan\";\n        CharacterCodes2[CharacterCodes2[\"hash\"] = 35] = \"hash\";\n        CharacterCodes2[CharacterCodes2[\"lessThan\"] = 60] = \"lessThan\";\n        CharacterCodes2[CharacterCodes2[\"minus\"] = 45] = \"minus\";\n        CharacterCodes2[CharacterCodes2[\"openBrace\"] = 123] = \"openBrace\";\n        CharacterCodes2[CharacterCodes2[\"openBracket\"] = 91] = \"openBracket\";\n        CharacterCodes2[CharacterCodes2[\"openParen\"] = 40] = \"openParen\";\n        CharacterCodes2[CharacterCodes2[\"percent\"] = 37] = \"percent\";\n        CharacterCodes2[CharacterCodes2[\"plus\"] = 43] = \"plus\";\n        CharacterCodes2[CharacterCodes2[\"question\"] = 63] = \"question\";\n        CharacterCodes2[CharacterCodes2[\"semicolon\"] = 59] = \"semicolon\";\n        CharacterCodes2[CharacterCodes2[\"singleQuote\"] = 39] = \"singleQuote\";\n        CharacterCodes2[CharacterCodes2[\"slash\"] = 47] = \"slash\";\n        CharacterCodes2[CharacterCodes2[\"tilde\"] = 126] = \"tilde\";\n        CharacterCodes2[CharacterCodes2[\"backspace\"] = 8] = \"backspace\";\n        CharacterCodes2[CharacterCodes2[\"formFeed\"] = 12] = \"formFeed\";\n        CharacterCodes2[CharacterCodes2[\"byteOrderMark\"] = 65279] = \"byteOrderMark\";\n        CharacterCodes2[CharacterCodes2[\"tab\"] = 9] = \"tab\";\n        CharacterCodes2[CharacterCodes2[\"verticalTab\"] = 11] = \"verticalTab\";\n        return CharacterCodes2;\n      })(CharacterCodes || {});\n      Extension = /* @__PURE__ */ ((Extension2) => {\n        Extension2[\"Ts\"] = \".ts\";\n        Extension2[\"Tsx\"] = \".tsx\";\n        Extension2[\"Dts\"] = \".d.ts\";\n        Extension2[\"Js\"] = \".js\";\n        Extension2[\"Jsx\"] = \".jsx\";\n        Extension2[\"Json\"] = \".json\";\n        Extension2[\"TsBuildInfo\"] = \".tsbuildinfo\";\n        Extension2[\"Mjs\"] = \".mjs\";\n        Extension2[\"Mts\"] = \".mts\";\n        Extension2[\"Dmts\"] = \".d.mts\";\n        Extension2[\"Cjs\"] = \".cjs\";\n        Extension2[\"Cts\"] = \".cts\";\n        Extension2[\"Dcts\"] = \".d.cts\";\n        return Extension2;\n      })(Extension || {});\n      TransformFlags = /* @__PURE__ */ ((TransformFlags3) => {\n        TransformFlags3[TransformFlags3[\"None\"] = 0] = \"None\";\n        TransformFlags3[TransformFlags3[\"ContainsTypeScript\"] = 1] = \"ContainsTypeScript\";\n        TransformFlags3[TransformFlags3[\"ContainsJsx\"] = 2] = \"ContainsJsx\";\n        TransformFlags3[TransformFlags3[\"ContainsESNext\"] = 4] = \"ContainsESNext\";\n        TransformFlags3[TransformFlags3[\"ContainsES2022\"] = 8] = \"ContainsES2022\";\n        TransformFlags3[TransformFlags3[\"ContainsES2021\"] = 16] = \"ContainsES2021\";\n        TransformFlags3[TransformFlags3[\"ContainsES2020\"] = 32] = \"ContainsES2020\";\n        TransformFlags3[TransformFlags3[\"ContainsES2019\"] = 64] = \"ContainsES2019\";\n        TransformFlags3[TransformFlags3[\"ContainsES2018\"] = 128] = \"ContainsES2018\";\n        TransformFlags3[TransformFlags3[\"ContainsES2017\"] = 256] = \"ContainsES2017\";\n        TransformFlags3[TransformFlags3[\"ContainsES2016\"] = 512] = \"ContainsES2016\";\n        TransformFlags3[TransformFlags3[\"ContainsES2015\"] = 1024] = \"ContainsES2015\";\n        TransformFlags3[TransformFlags3[\"ContainsGenerator\"] = 2048] = \"ContainsGenerator\";\n        TransformFlags3[TransformFlags3[\"ContainsDestructuringAssignment\"] = 4096] = \"ContainsDestructuringAssignment\";\n        TransformFlags3[TransformFlags3[\"ContainsTypeScriptClassSyntax\"] = 8192] = \"ContainsTypeScriptClassSyntax\";\n        TransformFlags3[TransformFlags3[\"ContainsLexicalThis\"] = 16384] = \"ContainsLexicalThis\";\n        TransformFlags3[TransformFlags3[\"ContainsRestOrSpread\"] = 32768] = \"ContainsRestOrSpread\";\n        TransformFlags3[TransformFlags3[\"ContainsObjectRestOrSpread\"] = 65536] = \"ContainsObjectRestOrSpread\";\n        TransformFlags3[TransformFlags3[\"ContainsComputedPropertyName\"] = 131072] = \"ContainsComputedPropertyName\";\n        TransformFlags3[TransformFlags3[\"ContainsBlockScopedBinding\"] = 262144] = \"ContainsBlockScopedBinding\";\n        TransformFlags3[TransformFlags3[\"ContainsBindingPattern\"] = 524288] = \"ContainsBindingPattern\";\n        TransformFlags3[TransformFlags3[\"ContainsYield\"] = 1048576] = \"ContainsYield\";\n        TransformFlags3[TransformFlags3[\"ContainsAwait\"] = 2097152] = \"ContainsAwait\";\n        TransformFlags3[TransformFlags3[\"ContainsHoistedDeclarationOrCompletion\"] = 4194304] = \"ContainsHoistedDeclarationOrCompletion\";\n        TransformFlags3[TransformFlags3[\"ContainsDynamicImport\"] = 8388608] = \"ContainsDynamicImport\";\n        TransformFlags3[TransformFlags3[\"ContainsClassFields\"] = 16777216] = \"ContainsClassFields\";\n        TransformFlags3[TransformFlags3[\"ContainsDecorators\"] = 33554432] = \"ContainsDecorators\";\n        TransformFlags3[TransformFlags3[\"ContainsPossibleTopLevelAwait\"] = 67108864] = \"ContainsPossibleTopLevelAwait\";\n        TransformFlags3[TransformFlags3[\"ContainsLexicalSuper\"] = 134217728] = \"ContainsLexicalSuper\";\n        TransformFlags3[TransformFlags3[\"ContainsUpdateExpressionForIdentifier\"] = 268435456] = \"ContainsUpdateExpressionForIdentifier\";\n        TransformFlags3[TransformFlags3[\"ContainsPrivateIdentifierInExpression\"] = 536870912] = \"ContainsPrivateIdentifierInExpression\";\n        TransformFlags3[TransformFlags3[\"HasComputedFlags\"] = -2147483648] = \"HasComputedFlags\";\n        TransformFlags3[TransformFlags3[\"AssertTypeScript\"] = 1] = \"AssertTypeScript\";\n        TransformFlags3[TransformFlags3[\"AssertJsx\"] = 2] = \"AssertJsx\";\n        TransformFlags3[TransformFlags3[\"AssertESNext\"] = 4] = \"AssertESNext\";\n        TransformFlags3[TransformFlags3[\"AssertES2022\"] = 8] = \"AssertES2022\";\n        TransformFlags3[TransformFlags3[\"AssertES2021\"] = 16] = \"AssertES2021\";\n        TransformFlags3[TransformFlags3[\"AssertES2020\"] = 32] = \"AssertES2020\";\n        TransformFlags3[TransformFlags3[\"AssertES2019\"] = 64] = \"AssertES2019\";\n        TransformFlags3[TransformFlags3[\"AssertES2018\"] = 128] = \"AssertES2018\";\n        TransformFlags3[TransformFlags3[\"AssertES2017\"] = 256] = \"AssertES2017\";\n        TransformFlags3[TransformFlags3[\"AssertES2016\"] = 512] = \"AssertES2016\";\n        TransformFlags3[TransformFlags3[\"AssertES2015\"] = 1024] = \"AssertES2015\";\n        TransformFlags3[TransformFlags3[\"AssertGenerator\"] = 2048] = \"AssertGenerator\";\n        TransformFlags3[TransformFlags3[\"AssertDestructuringAssignment\"] = 4096] = \"AssertDestructuringAssignment\";\n        TransformFlags3[TransformFlags3[\"OuterExpressionExcludes\"] = -2147483648] = \"OuterExpressionExcludes\";\n        TransformFlags3[TransformFlags3[\"PropertyAccessExcludes\"] = -2147483648] = \"PropertyAccessExcludes\";\n        TransformFlags3[TransformFlags3[\"NodeExcludes\"] = -2147483648] = \"NodeExcludes\";\n        TransformFlags3[TransformFlags3[\"ArrowFunctionExcludes\"] = -2072174592] = \"ArrowFunctionExcludes\";\n        TransformFlags3[TransformFlags3[\"FunctionExcludes\"] = -1937940480] = \"FunctionExcludes\";\n        TransformFlags3[TransformFlags3[\"ConstructorExcludes\"] = -1937948672] = \"ConstructorExcludes\";\n        TransformFlags3[TransformFlags3[\"MethodOrAccessorExcludes\"] = -2005057536] = \"MethodOrAccessorExcludes\";\n        TransformFlags3[TransformFlags3[\"PropertyExcludes\"] = -2013249536] = \"PropertyExcludes\";\n        TransformFlags3[TransformFlags3[\"ClassExcludes\"] = -2147344384] = \"ClassExcludes\";\n        TransformFlags3[TransformFlags3[\"ModuleExcludes\"] = -1941676032] = \"ModuleExcludes\";\n        TransformFlags3[TransformFlags3[\"TypeExcludes\"] = -2] = \"TypeExcludes\";\n        TransformFlags3[TransformFlags3[\"ObjectLiteralExcludes\"] = -2147278848] = \"ObjectLiteralExcludes\";\n        TransformFlags3[TransformFlags3[\"ArrayLiteralOrCallOrNewExcludes\"] = -2147450880] = \"ArrayLiteralOrCallOrNewExcludes\";\n        TransformFlags3[TransformFlags3[\"VariableDeclarationListExcludes\"] = -2146893824] = \"VariableDeclarationListExcludes\";\n        TransformFlags3[TransformFlags3[\"ParameterExcludes\"] = -2147483648] = \"ParameterExcludes\";\n        TransformFlags3[TransformFlags3[\"CatchClauseExcludes\"] = -2147418112] = \"CatchClauseExcludes\";\n        TransformFlags3[TransformFlags3[\"BindingPatternExcludes\"] = -2147450880] = \"BindingPatternExcludes\";\n        TransformFlags3[TransformFlags3[\"ContainsLexicalThisOrSuper\"] = 134234112] = \"ContainsLexicalThisOrSuper\";\n        TransformFlags3[TransformFlags3[\"PropertyNamePropagatingFlags\"] = 134234112] = \"PropertyNamePropagatingFlags\";\n        return TransformFlags3;\n      })(TransformFlags || {});\n      SnippetKind = /* @__PURE__ */ ((SnippetKind3) => {\n        SnippetKind3[SnippetKind3[\"TabStop\"] = 0] = \"TabStop\";\n        SnippetKind3[SnippetKind3[\"Placeholder\"] = 1] = \"Placeholder\";\n        SnippetKind3[SnippetKind3[\"Choice\"] = 2] = \"Choice\";\n        SnippetKind3[SnippetKind3[\"Variable\"] = 3] = \"Variable\";\n        return SnippetKind3;\n      })(SnippetKind || {});\n      EmitFlags = /* @__PURE__ */ ((EmitFlags3) => {\n        EmitFlags3[EmitFlags3[\"None\"] = 0] = \"None\";\n        EmitFlags3[EmitFlags3[\"SingleLine\"] = 1] = \"SingleLine\";\n        EmitFlags3[EmitFlags3[\"MultiLine\"] = 2] = \"MultiLine\";\n        EmitFlags3[EmitFlags3[\"AdviseOnEmitNode\"] = 4] = \"AdviseOnEmitNode\";\n        EmitFlags3[EmitFlags3[\"NoSubstitution\"] = 8] = \"NoSubstitution\";\n        EmitFlags3[EmitFlags3[\"CapturesThis\"] = 16] = \"CapturesThis\";\n        EmitFlags3[EmitFlags3[\"NoLeadingSourceMap\"] = 32] = \"NoLeadingSourceMap\";\n        EmitFlags3[EmitFlags3[\"NoTrailingSourceMap\"] = 64] = \"NoTrailingSourceMap\";\n        EmitFlags3[EmitFlags3[\"NoSourceMap\"] = 96] = \"NoSourceMap\";\n        EmitFlags3[EmitFlags3[\"NoNestedSourceMaps\"] = 128] = \"NoNestedSourceMaps\";\n        EmitFlags3[EmitFlags3[\"NoTokenLeadingSourceMaps\"] = 256] = \"NoTokenLeadingSourceMaps\";\n        EmitFlags3[EmitFlags3[\"NoTokenTrailingSourceMaps\"] = 512] = \"NoTokenTrailingSourceMaps\";\n        EmitFlags3[EmitFlags3[\"NoTokenSourceMaps\"] = 768] = \"NoTokenSourceMaps\";\n        EmitFlags3[EmitFlags3[\"NoLeadingComments\"] = 1024] = \"NoLeadingComments\";\n        EmitFlags3[EmitFlags3[\"NoTrailingComments\"] = 2048] = \"NoTrailingComments\";\n        EmitFlags3[EmitFlags3[\"NoComments\"] = 3072] = \"NoComments\";\n        EmitFlags3[EmitFlags3[\"NoNestedComments\"] = 4096] = \"NoNestedComments\";\n        EmitFlags3[EmitFlags3[\"HelperName\"] = 8192] = \"HelperName\";\n        EmitFlags3[EmitFlags3[\"ExportName\"] = 16384] = \"ExportName\";\n        EmitFlags3[EmitFlags3[\"LocalName\"] = 32768] = \"LocalName\";\n        EmitFlags3[EmitFlags3[\"InternalName\"] = 65536] = \"InternalName\";\n        EmitFlags3[EmitFlags3[\"Indented\"] = 131072] = \"Indented\";\n        EmitFlags3[EmitFlags3[\"NoIndentation\"] = 262144] = \"NoIndentation\";\n        EmitFlags3[EmitFlags3[\"AsyncFunctionBody\"] = 524288] = \"AsyncFunctionBody\";\n        EmitFlags3[EmitFlags3[\"ReuseTempVariableScope\"] = 1048576] = \"ReuseTempVariableScope\";\n        EmitFlags3[EmitFlags3[\"CustomPrologue\"] = 2097152] = \"CustomPrologue\";\n        EmitFlags3[EmitFlags3[\"NoHoisting\"] = 4194304] = \"NoHoisting\";\n        EmitFlags3[EmitFlags3[\"HasEndOfDeclarationMarker\"] = 8388608] = \"HasEndOfDeclarationMarker\";\n        EmitFlags3[EmitFlags3[\"Iterator\"] = 16777216] = \"Iterator\";\n        EmitFlags3[EmitFlags3[\"NoAsciiEscaping\"] = 33554432] = \"NoAsciiEscaping\";\n        return EmitFlags3;\n      })(EmitFlags || {});\n      InternalEmitFlags = /* @__PURE__ */ ((InternalEmitFlags3) => {\n        InternalEmitFlags3[InternalEmitFlags3[\"None\"] = 0] = \"None\";\n        InternalEmitFlags3[InternalEmitFlags3[\"TypeScriptClassWrapper\"] = 1] = \"TypeScriptClassWrapper\";\n        InternalEmitFlags3[InternalEmitFlags3[\"NeverApplyImportHelper\"] = 2] = \"NeverApplyImportHelper\";\n        InternalEmitFlags3[InternalEmitFlags3[\"IgnoreSourceNewlines\"] = 4] = \"IgnoreSourceNewlines\";\n        InternalEmitFlags3[InternalEmitFlags3[\"Immutable\"] = 8] = \"Immutable\";\n        InternalEmitFlags3[InternalEmitFlags3[\"IndirectCall\"] = 16] = \"IndirectCall\";\n        InternalEmitFlags3[InternalEmitFlags3[\"TransformPrivateStaticElements\"] = 32] = \"TransformPrivateStaticElements\";\n        return InternalEmitFlags3;\n      })(InternalEmitFlags || {});\n      ExternalEmitHelpers = /* @__PURE__ */ ((ExternalEmitHelpers2) => {\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"Extends\"] = 1] = \"Extends\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"Assign\"] = 2] = \"Assign\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"Rest\"] = 4] = \"Rest\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"Decorate\"] = 8] = \"Decorate\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"ESDecorateAndRunInitializers\"] = 8] = \"ESDecorateAndRunInitializers\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"Metadata\"] = 16] = \"Metadata\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"Param\"] = 32] = \"Param\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"Awaiter\"] = 64] = \"Awaiter\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"Generator\"] = 128] = \"Generator\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"Values\"] = 256] = \"Values\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"Read\"] = 512] = \"Read\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"SpreadArray\"] = 1024] = \"SpreadArray\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"Await\"] = 2048] = \"Await\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"AsyncGenerator\"] = 4096] = \"AsyncGenerator\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"AsyncDelegator\"] = 8192] = \"AsyncDelegator\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"AsyncValues\"] = 16384] = \"AsyncValues\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"ExportStar\"] = 32768] = \"ExportStar\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"ImportStar\"] = 65536] = \"ImportStar\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"ImportDefault\"] = 131072] = \"ImportDefault\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"MakeTemplateObject\"] = 262144] = \"MakeTemplateObject\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"ClassPrivateFieldGet\"] = 524288] = \"ClassPrivateFieldGet\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"ClassPrivateFieldSet\"] = 1048576] = \"ClassPrivateFieldSet\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"ClassPrivateFieldIn\"] = 2097152] = \"ClassPrivateFieldIn\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"CreateBinding\"] = 4194304] = \"CreateBinding\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"SetFunctionName\"] = 8388608] = \"SetFunctionName\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"PropKey\"] = 16777216] = \"PropKey\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"FirstEmitHelper\"] = 1] = \"FirstEmitHelper\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"LastEmitHelper\"] = 16777216] = \"LastEmitHelper\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"ForOfIncludes\"] = 256] = \"ForOfIncludes\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"ForAwaitOfIncludes\"] = 16384] = \"ForAwaitOfIncludes\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"AsyncGeneratorIncludes\"] = 6144] = \"AsyncGeneratorIncludes\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"AsyncDelegatorIncludes\"] = 26624] = \"AsyncDelegatorIncludes\";\n        ExternalEmitHelpers2[ExternalEmitHelpers2[\"SpreadIncludes\"] = 1536] = \"SpreadIncludes\";\n        return ExternalEmitHelpers2;\n      })(ExternalEmitHelpers || {});\n      EmitHint = /* @__PURE__ */ ((EmitHint6) => {\n        EmitHint6[EmitHint6[\"SourceFile\"] = 0] = \"SourceFile\";\n        EmitHint6[EmitHint6[\"Expression\"] = 1] = \"Expression\";\n        EmitHint6[EmitHint6[\"IdentifierName\"] = 2] = \"IdentifierName\";\n        EmitHint6[EmitHint6[\"MappedTypeParameter\"] = 3] = \"MappedTypeParameter\";\n        EmitHint6[EmitHint6[\"Unspecified\"] = 4] = \"Unspecified\";\n        EmitHint6[EmitHint6[\"EmbeddedStatement\"] = 5] = \"EmbeddedStatement\";\n        EmitHint6[EmitHint6[\"JsxAttributeValue\"] = 6] = \"JsxAttributeValue\";\n        return EmitHint6;\n      })(EmitHint || {});\n      OuterExpressionKinds = /* @__PURE__ */ ((OuterExpressionKinds2) => {\n        OuterExpressionKinds2[OuterExpressionKinds2[\"Parentheses\"] = 1] = \"Parentheses\";\n        OuterExpressionKinds2[OuterExpressionKinds2[\"TypeAssertions\"] = 2] = \"TypeAssertions\";\n        OuterExpressionKinds2[OuterExpressionKinds2[\"NonNullAssertions\"] = 4] = \"NonNullAssertions\";\n        OuterExpressionKinds2[OuterExpressionKinds2[\"PartiallyEmittedExpressions\"] = 8] = \"PartiallyEmittedExpressions\";\n        OuterExpressionKinds2[OuterExpressionKinds2[\"Assertions\"] = 6] = \"Assertions\";\n        OuterExpressionKinds2[OuterExpressionKinds2[\"All\"] = 15] = \"All\";\n        OuterExpressionKinds2[OuterExpressionKinds2[\"ExcludeJSDocTypeAssertion\"] = 16] = \"ExcludeJSDocTypeAssertion\";\n        return OuterExpressionKinds2;\n      })(OuterExpressionKinds || {});\n      LexicalEnvironmentFlags = /* @__PURE__ */ ((LexicalEnvironmentFlags2) => {\n        LexicalEnvironmentFlags2[LexicalEnvironmentFlags2[\"None\"] = 0] = \"None\";\n        LexicalEnvironmentFlags2[LexicalEnvironmentFlags2[\"InParameters\"] = 1] = \"InParameters\";\n        LexicalEnvironmentFlags2[LexicalEnvironmentFlags2[\"VariablesHoistedInParameters\"] = 2] = \"VariablesHoistedInParameters\";\n        return LexicalEnvironmentFlags2;\n      })(LexicalEnvironmentFlags || {});\n      BundleFileSectionKind = /* @__PURE__ */ ((BundleFileSectionKind2) => {\n        BundleFileSectionKind2[\"Prologue\"] = \"prologue\";\n        BundleFileSectionKind2[\"EmitHelpers\"] = \"emitHelpers\";\n        BundleFileSectionKind2[\"NoDefaultLib\"] = \"no-default-lib\";\n        BundleFileSectionKind2[\"Reference\"] = \"reference\";\n        BundleFileSectionKind2[\"Type\"] = \"type\";\n        BundleFileSectionKind2[\"TypeResolutionModeRequire\"] = \"type-require\";\n        BundleFileSectionKind2[\"TypeResolutionModeImport\"] = \"type-import\";\n        BundleFileSectionKind2[\"Lib\"] = \"lib\";\n        BundleFileSectionKind2[\"Prepend\"] = \"prepend\";\n        BundleFileSectionKind2[\"Text\"] = \"text\";\n        BundleFileSectionKind2[\"Internal\"] = \"internal\";\n        return BundleFileSectionKind2;\n      })(BundleFileSectionKind || {});\n      ListFormat = /* @__PURE__ */ ((ListFormat2) => {\n        ListFormat2[ListFormat2[\"None\"] = 0] = \"None\";\n        ListFormat2[ListFormat2[\"SingleLine\"] = 0] = \"SingleLine\";\n        ListFormat2[ListFormat2[\"MultiLine\"] = 1] = \"MultiLine\";\n        ListFormat2[ListFormat2[\"PreserveLines\"] = 2] = \"PreserveLines\";\n        ListFormat2[ListFormat2[\"LinesMask\"] = 3] = \"LinesMask\";\n        ListFormat2[ListFormat2[\"NotDelimited\"] = 0] = \"NotDelimited\";\n        ListFormat2[ListFormat2[\"BarDelimited\"] = 4] = \"BarDelimited\";\n        ListFormat2[ListFormat2[\"AmpersandDelimited\"] = 8] = \"AmpersandDelimited\";\n        ListFormat2[ListFormat2[\"CommaDelimited\"] = 16] = \"CommaDelimited\";\n        ListFormat2[ListFormat2[\"AsteriskDelimited\"] = 32] = \"AsteriskDelimited\";\n        ListFormat2[ListFormat2[\"DelimitersMask\"] = 60] = \"DelimitersMask\";\n        ListFormat2[ListFormat2[\"AllowTrailingComma\"] = 64] = \"AllowTrailingComma\";\n        ListFormat2[ListFormat2[\"Indented\"] = 128] = \"Indented\";\n        ListFormat2[ListFormat2[\"SpaceBetweenBraces\"] = 256] = \"SpaceBetweenBraces\";\n        ListFormat2[ListFormat2[\"SpaceBetweenSiblings\"] = 512] = \"SpaceBetweenSiblings\";\n        ListFormat2[ListFormat2[\"Braces\"] = 1024] = \"Braces\";\n        ListFormat2[ListFormat2[\"Parenthesis\"] = 2048] = \"Parenthesis\";\n        ListFormat2[ListFormat2[\"AngleBrackets\"] = 4096] = \"AngleBrackets\";\n        ListFormat2[ListFormat2[\"SquareBrackets\"] = 8192] = \"SquareBrackets\";\n        ListFormat2[ListFormat2[\"BracketsMask\"] = 15360] = \"BracketsMask\";\n        ListFormat2[ListFormat2[\"OptionalIfUndefined\"] = 16384] = \"OptionalIfUndefined\";\n        ListFormat2[ListFormat2[\"OptionalIfEmpty\"] = 32768] = \"OptionalIfEmpty\";\n        ListFormat2[ListFormat2[\"Optional\"] = 49152] = \"Optional\";\n        ListFormat2[ListFormat2[\"PreferNewLine\"] = 65536] = \"PreferNewLine\";\n        ListFormat2[ListFormat2[\"NoTrailingNewLine\"] = 131072] = \"NoTrailingNewLine\";\n        ListFormat2[ListFormat2[\"NoInterveningComments\"] = 262144] = \"NoInterveningComments\";\n        ListFormat2[ListFormat2[\"NoSpaceIfEmpty\"] = 524288] = \"NoSpaceIfEmpty\";\n        ListFormat2[ListFormat2[\"SingleElement\"] = 1048576] = \"SingleElement\";\n        ListFormat2[ListFormat2[\"SpaceAfterList\"] = 2097152] = \"SpaceAfterList\";\n        ListFormat2[ListFormat2[\"Modifiers\"] = 2359808] = \"Modifiers\";\n        ListFormat2[ListFormat2[\"HeritageClauses\"] = 512] = \"HeritageClauses\";\n        ListFormat2[ListFormat2[\"SingleLineTypeLiteralMembers\"] = 768] = \"SingleLineTypeLiteralMembers\";\n        ListFormat2[ListFormat2[\"MultiLineTypeLiteralMembers\"] = 32897] = \"MultiLineTypeLiteralMembers\";\n        ListFormat2[ListFormat2[\"SingleLineTupleTypeElements\"] = 528] = \"SingleLineTupleTypeElements\";\n        ListFormat2[ListFormat2[\"MultiLineTupleTypeElements\"] = 657] = \"MultiLineTupleTypeElements\";\n        ListFormat2[ListFormat2[\"UnionTypeConstituents\"] = 516] = \"UnionTypeConstituents\";\n        ListFormat2[ListFormat2[\"IntersectionTypeConstituents\"] = 520] = \"IntersectionTypeConstituents\";\n        ListFormat2[ListFormat2[\"ObjectBindingPatternElements\"] = 525136] = \"ObjectBindingPatternElements\";\n        ListFormat2[ListFormat2[\"ArrayBindingPatternElements\"] = 524880] = \"ArrayBindingPatternElements\";\n        ListFormat2[ListFormat2[\"ObjectLiteralExpressionProperties\"] = 526226] = \"ObjectLiteralExpressionProperties\";\n        ListFormat2[ListFormat2[\"ImportClauseEntries\"] = 526226] = \"ImportClauseEntries\";\n        ListFormat2[ListFormat2[\"ArrayLiteralExpressionElements\"] = 8914] = \"ArrayLiteralExpressionElements\";\n        ListFormat2[ListFormat2[\"CommaListElements\"] = 528] = \"CommaListElements\";\n        ListFormat2[ListFormat2[\"CallExpressionArguments\"] = 2576] = \"CallExpressionArguments\";\n        ListFormat2[ListFormat2[\"NewExpressionArguments\"] = 18960] = \"NewExpressionArguments\";\n        ListFormat2[ListFormat2[\"TemplateExpressionSpans\"] = 262144] = \"TemplateExpressionSpans\";\n        ListFormat2[ListFormat2[\"SingleLineBlockStatements\"] = 768] = \"SingleLineBlockStatements\";\n        ListFormat2[ListFormat2[\"MultiLineBlockStatements\"] = 129] = \"MultiLineBlockStatements\";\n        ListFormat2[ListFormat2[\"VariableDeclarationList\"] = 528] = \"VariableDeclarationList\";\n        ListFormat2[ListFormat2[\"SingleLineFunctionBodyStatements\"] = 768] = \"SingleLineFunctionBodyStatements\";\n        ListFormat2[ListFormat2[\"MultiLineFunctionBodyStatements\"] = 1] = \"MultiLineFunctionBodyStatements\";\n        ListFormat2[ListFormat2[\"ClassHeritageClauses\"] = 0] = \"ClassHeritageClauses\";\n        ListFormat2[ListFormat2[\"ClassMembers\"] = 129] = \"ClassMembers\";\n        ListFormat2[ListFormat2[\"InterfaceMembers\"] = 129] = \"InterfaceMembers\";\n        ListFormat2[ListFormat2[\"EnumMembers\"] = 145] = \"EnumMembers\";\n        ListFormat2[ListFormat2[\"CaseBlockClauses\"] = 129] = \"CaseBlockClauses\";\n        ListFormat2[ListFormat2[\"NamedImportsOrExportsElements\"] = 525136] = \"NamedImportsOrExportsElements\";\n        ListFormat2[ListFormat2[\"JsxElementOrFragmentChildren\"] = 262144] = \"JsxElementOrFragmentChildren\";\n        ListFormat2[ListFormat2[\"JsxElementAttributes\"] = 262656] = \"JsxElementAttributes\";\n        ListFormat2[ListFormat2[\"CaseOrDefaultClauseStatements\"] = 163969] = \"CaseOrDefaultClauseStatements\";\n        ListFormat2[ListFormat2[\"HeritageClauseTypes\"] = 528] = \"HeritageClauseTypes\";\n        ListFormat2[ListFormat2[\"SourceFileStatements\"] = 131073] = \"SourceFileStatements\";\n        ListFormat2[ListFormat2[\"Decorators\"] = 2146305] = \"Decorators\";\n        ListFormat2[ListFormat2[\"TypeArguments\"] = 53776] = \"TypeArguments\";\n        ListFormat2[ListFormat2[\"TypeParameters\"] = 53776] = \"TypeParameters\";\n        ListFormat2[ListFormat2[\"Parameters\"] = 2576] = \"Parameters\";\n        ListFormat2[ListFormat2[\"IndexSignatureParameters\"] = 8848] = \"IndexSignatureParameters\";\n        ListFormat2[ListFormat2[\"JSDocComment\"] = 33] = \"JSDocComment\";\n        return ListFormat2;\n      })(ListFormat || {});\n      PragmaKindFlags = /* @__PURE__ */ ((PragmaKindFlags2) => {\n        PragmaKindFlags2[PragmaKindFlags2[\"None\"] = 0] = \"None\";\n        PragmaKindFlags2[PragmaKindFlags2[\"TripleSlashXML\"] = 1] = \"TripleSlashXML\";\n        PragmaKindFlags2[PragmaKindFlags2[\"SingleLine\"] = 2] = \"SingleLine\";\n        PragmaKindFlags2[PragmaKindFlags2[\"MultiLine\"] = 4] = \"MultiLine\";\n        PragmaKindFlags2[PragmaKindFlags2[\"All\"] = 7] = \"All\";\n        PragmaKindFlags2[PragmaKindFlags2[\"Default\"] = 7] = \"Default\";\n        return PragmaKindFlags2;\n      })(PragmaKindFlags || {});\n      commentPragmas = {\n        \"reference\": {\n          args: [\n            { name: \"types\", optional: true, captureSpan: true },\n            { name: \"lib\", optional: true, captureSpan: true },\n            { name: \"path\", optional: true, captureSpan: true },\n            { name: \"no-default-lib\", optional: true },\n            { name: \"resolution-mode\", optional: true }\n          ],\n          kind: 1\n        },\n        \"amd-dependency\": {\n          args: [{ name: \"path\" }, { name: \"name\", optional: true }],\n          kind: 1\n        },\n        \"amd-module\": {\n          args: [{ name: \"name\" }],\n          kind: 1\n        },\n        \"ts-check\": {\n          kind: 2\n        },\n        \"ts-nocheck\": {\n          kind: 2\n        },\n        \"jsx\": {\n          args: [{ name: \"factory\" }],\n          kind: 4\n        },\n        \"jsxfrag\": {\n          args: [{ name: \"factory\" }],\n          kind: 4\n        },\n        \"jsximportsource\": {\n          args: [{ name: \"factory\" }],\n          kind: 4\n        },\n        \"jsxruntime\": {\n          args: [{ name: \"factory\" }],\n          kind: 4\n        }\n      };\n    }\n  });\n  function generateDjb2Hash(data) {\n    let acc = 5381;\n    for (let i = 0; i < data.length; i++) {\n      acc = (acc << 5) + acc + data.charCodeAt(i);\n    }\n    return acc.toString();\n  }\n  function setStackTraceLimit() {\n    if (Error.stackTraceLimit < 100) {\n      Error.stackTraceLimit = 100;\n    }\n  }\n  function getModifiedTime(host, fileName) {\n    return host.getModifiedTime(fileName) || missingFileModifiedTime;\n  }\n  function createPollingIntervalBasedLevels(levels) {\n    return {\n      [250]: levels.Low,\n      [500]: levels.Medium,\n      [2e3]: levels.High\n    };\n  }\n  function setCustomPollingValues(system) {\n    if (!system.getEnvironmentVariable) {\n      return;\n    }\n    const pollingIntervalChanged = setCustomLevels(\"TSC_WATCH_POLLINGINTERVAL\", PollingInterval);\n    pollingChunkSize = getCustomPollingBasedLevels(\"TSC_WATCH_POLLINGCHUNKSIZE\", defaultChunkLevels) || pollingChunkSize;\n    unchangedPollThresholds = getCustomPollingBasedLevels(\"TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS\", defaultChunkLevels) || unchangedPollThresholds;\n    function getLevel(envVar, level) {\n      return system.getEnvironmentVariable(`${envVar}_${level.toUpperCase()}`);\n    }\n    function getCustomLevels(baseVariable) {\n      let customLevels;\n      setCustomLevel(\"Low\");\n      setCustomLevel(\"Medium\");\n      setCustomLevel(\"High\");\n      return customLevels;\n      function setCustomLevel(level) {\n        const customLevel = getLevel(baseVariable, level);\n        if (customLevel) {\n          (customLevels || (customLevels = {}))[level] = Number(customLevel);\n        }\n      }\n    }\n    function setCustomLevels(baseVariable, levels) {\n      const customLevels = getCustomLevels(baseVariable);\n      if (customLevels) {\n        setLevel(\"Low\");\n        setLevel(\"Medium\");\n        setLevel(\"High\");\n        return true;\n      }\n      return false;\n      function setLevel(level) {\n        levels[level] = customLevels[level] || levels[level];\n      }\n    }\n    function getCustomPollingBasedLevels(baseVariable, defaultLevels) {\n      const customLevels = getCustomLevels(baseVariable);\n      return (pollingIntervalChanged || customLevels) && createPollingIntervalBasedLevels(customLevels ? { ...defaultLevels, ...customLevels } : defaultLevels);\n    }\n  }\n  function pollWatchedFileQueue(host, queue, pollIndex, chunkSize, callbackOnWatchFileStat) {\n    let definedValueCopyToIndex = pollIndex;\n    for (let canVisit = queue.length; chunkSize && canVisit; nextPollIndex(), canVisit--) {\n      const watchedFile = queue[pollIndex];\n      if (!watchedFile) {\n        continue;\n      } else if (watchedFile.isClosed) {\n        queue[pollIndex] = void 0;\n        continue;\n      }\n      chunkSize--;\n      const fileChanged = onWatchedFileStat(watchedFile, getModifiedTime(host, watchedFile.fileName));\n      if (watchedFile.isClosed) {\n        queue[pollIndex] = void 0;\n        continue;\n      }\n      callbackOnWatchFileStat == null ? void 0 : callbackOnWatchFileStat(watchedFile, pollIndex, fileChanged);\n      if (queue[pollIndex]) {\n        if (definedValueCopyToIndex < pollIndex) {\n          queue[definedValueCopyToIndex] = watchedFile;\n          queue[pollIndex] = void 0;\n        }\n        definedValueCopyToIndex++;\n      }\n    }\n    return pollIndex;\n    function nextPollIndex() {\n      pollIndex++;\n      if (pollIndex === queue.length) {\n        if (definedValueCopyToIndex < pollIndex) {\n          queue.length = definedValueCopyToIndex;\n        }\n        pollIndex = 0;\n        definedValueCopyToIndex = 0;\n      }\n    }\n  }\n  function createDynamicPriorityPollingWatchFile(host) {\n    const watchedFiles = [];\n    const changedFilesInLastPoll = [];\n    const lowPollingIntervalQueue = createPollingIntervalQueue(250);\n    const mediumPollingIntervalQueue = createPollingIntervalQueue(500);\n    const highPollingIntervalQueue = createPollingIntervalQueue(2e3);\n    return watchFile2;\n    function watchFile2(fileName, callback, defaultPollingInterval) {\n      const file = {\n        fileName,\n        callback,\n        unchangedPolls: 0,\n        mtime: getModifiedTime(host, fileName)\n      };\n      watchedFiles.push(file);\n      addToPollingIntervalQueue(file, defaultPollingInterval);\n      return {\n        close: () => {\n          file.isClosed = true;\n          unorderedRemoveItem(watchedFiles, file);\n        }\n      };\n    }\n    function createPollingIntervalQueue(pollingInterval) {\n      const queue = [];\n      queue.pollingInterval = pollingInterval;\n      queue.pollIndex = 0;\n      queue.pollScheduled = false;\n      return queue;\n    }\n    function pollPollingIntervalQueue(queue) {\n      queue.pollIndex = pollQueue(queue, queue.pollingInterval, queue.pollIndex, pollingChunkSize[queue.pollingInterval]);\n      if (queue.length) {\n        scheduleNextPoll(queue.pollingInterval);\n      } else {\n        Debug.assert(queue.pollIndex === 0);\n        queue.pollScheduled = false;\n      }\n    }\n    function pollLowPollingIntervalQueue(queue) {\n      pollQueue(changedFilesInLastPoll, 250, 0, changedFilesInLastPoll.length);\n      pollPollingIntervalQueue(queue);\n      if (!queue.pollScheduled && changedFilesInLastPoll.length) {\n        scheduleNextPoll(250);\n      }\n    }\n    function pollQueue(queue, pollingInterval, pollIndex, chunkSize) {\n      return pollWatchedFileQueue(host, queue, pollIndex, chunkSize, onWatchFileStat);\n      function onWatchFileStat(watchedFile, pollIndex2, fileChanged) {\n        if (fileChanged) {\n          watchedFile.unchangedPolls = 0;\n          if (queue !== changedFilesInLastPoll) {\n            queue[pollIndex2] = void 0;\n            addChangedFileToLowPollingIntervalQueue(watchedFile);\n          }\n        } else if (watchedFile.unchangedPolls !== unchangedPollThresholds[pollingInterval]) {\n          watchedFile.unchangedPolls++;\n        } else if (queue === changedFilesInLastPoll) {\n          watchedFile.unchangedPolls = 1;\n          queue[pollIndex2] = void 0;\n          addToPollingIntervalQueue(watchedFile, 250);\n        } else if (pollingInterval !== 2e3) {\n          watchedFile.unchangedPolls++;\n          queue[pollIndex2] = void 0;\n          addToPollingIntervalQueue(watchedFile, pollingInterval === 250 ? 500 : 2e3);\n        }\n      }\n    }\n    function pollingIntervalQueue(pollingInterval) {\n      switch (pollingInterval) {\n        case 250:\n          return lowPollingIntervalQueue;\n        case 500:\n          return mediumPollingIntervalQueue;\n        case 2e3:\n          return highPollingIntervalQueue;\n      }\n    }\n    function addToPollingIntervalQueue(file, pollingInterval) {\n      pollingIntervalQueue(pollingInterval).push(file);\n      scheduleNextPollIfNotAlreadyScheduled(pollingInterval);\n    }\n    function addChangedFileToLowPollingIntervalQueue(file) {\n      changedFilesInLastPoll.push(file);\n      scheduleNextPollIfNotAlreadyScheduled(250);\n    }\n    function scheduleNextPollIfNotAlreadyScheduled(pollingInterval) {\n      if (!pollingIntervalQueue(pollingInterval).pollScheduled) {\n        scheduleNextPoll(pollingInterval);\n      }\n    }\n    function scheduleNextPoll(pollingInterval) {\n      pollingIntervalQueue(pollingInterval).pollScheduled = host.setTimeout(pollingInterval === 250 ? pollLowPollingIntervalQueue : pollPollingIntervalQueue, pollingInterval, pollingIntervalQueue(pollingInterval));\n    }\n  }\n  function createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames) {\n    const fileWatcherCallbacks = createMultiMap();\n    const dirWatchers = /* @__PURE__ */ new Map();\n    const toCanonicalName = createGetCanonicalFileName(useCaseSensitiveFileNames);\n    return nonPollingWatchFile;\n    function nonPollingWatchFile(fileName, callback, _pollingInterval, fallbackOptions) {\n      const filePath = toCanonicalName(fileName);\n      fileWatcherCallbacks.add(filePath, callback);\n      const dirPath = getDirectoryPath(filePath) || \".\";\n      const watcher = dirWatchers.get(dirPath) || createDirectoryWatcher(getDirectoryPath(fileName) || \".\", dirPath, fallbackOptions);\n      watcher.referenceCount++;\n      return {\n        close: () => {\n          if (watcher.referenceCount === 1) {\n            watcher.close();\n            dirWatchers.delete(dirPath);\n          } else {\n            watcher.referenceCount--;\n          }\n          fileWatcherCallbacks.remove(filePath, callback);\n        }\n      };\n    }\n    function createDirectoryWatcher(dirName, dirPath, fallbackOptions) {\n      const watcher = fsWatch(dirName, 1, (_eventName, relativeFileName, modifiedTime) => {\n        if (!isString(relativeFileName))\n          return;\n        const fileName = getNormalizedAbsolutePath(relativeFileName, dirName);\n        const callbacks = fileName && fileWatcherCallbacks.get(toCanonicalName(fileName));\n        if (callbacks) {\n          for (const fileCallback of callbacks) {\n            fileCallback(fileName, 1, modifiedTime);\n          }\n        }\n      }, false, 500, fallbackOptions);\n      watcher.referenceCount = 0;\n      dirWatchers.set(dirPath, watcher);\n      return watcher;\n    }\n  }\n  function createFixedChunkSizePollingWatchFile(host) {\n    const watchedFiles = [];\n    let pollIndex = 0;\n    let pollScheduled;\n    return watchFile2;\n    function watchFile2(fileName, callback) {\n      const file = {\n        fileName,\n        callback,\n        mtime: getModifiedTime(host, fileName)\n      };\n      watchedFiles.push(file);\n      scheduleNextPoll();\n      return {\n        close: () => {\n          file.isClosed = true;\n          unorderedRemoveItem(watchedFiles, file);\n        }\n      };\n    }\n    function pollQueue() {\n      pollScheduled = void 0;\n      pollIndex = pollWatchedFileQueue(host, watchedFiles, pollIndex, pollingChunkSize[250]);\n      scheduleNextPoll();\n    }\n    function scheduleNextPoll() {\n      if (!watchedFiles.length || pollScheduled)\n        return;\n      pollScheduled = host.setTimeout(pollQueue, 2e3);\n    }\n  }\n  function createSingleWatcherPerName(cache, useCaseSensitiveFileNames, name, callback, createWatcher) {\n    const toCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames);\n    const path = toCanonicalFileName(name);\n    const existing = cache.get(path);\n    if (existing) {\n      existing.callbacks.push(callback);\n    } else {\n      cache.set(path, {\n        watcher: createWatcher((param1, param2, param3) => {\n          var _a2;\n          return (_a2 = cache.get(path)) == null ? void 0 : _a2.callbacks.slice().forEach((cb) => cb(param1, param2, param3));\n        }),\n        callbacks: [callback]\n      });\n    }\n    return {\n      close: () => {\n        const watcher = cache.get(path);\n        if (!watcher)\n          return;\n        if (!orderedRemoveItem(watcher.callbacks, callback) || watcher.callbacks.length)\n          return;\n        cache.delete(path);\n        closeFileWatcherOf(watcher);\n      }\n    };\n  }\n  function onWatchedFileStat(watchedFile, modifiedTime) {\n    const oldTime = watchedFile.mtime.getTime();\n    const newTime = modifiedTime.getTime();\n    if (oldTime !== newTime) {\n      watchedFile.mtime = modifiedTime;\n      watchedFile.callback(watchedFile.fileName, getFileWatcherEventKind(oldTime, newTime), modifiedTime);\n      return true;\n    }\n    return false;\n  }\n  function getFileWatcherEventKind(oldTime, newTime) {\n    return oldTime === 0 ? 0 : newTime === 0 ? 2 : 1;\n  }\n  function sysLog(s) {\n    return curSysLog(s);\n  }\n  function setSysLog(logger) {\n    curSysLog = logger;\n  }\n  function createDirectoryWatcherSupportingRecursive({\n    watchDirectory,\n    useCaseSensitiveFileNames,\n    getCurrentDirectory,\n    getAccessibleSortedChildDirectories,\n    fileSystemEntryExists,\n    realpath,\n    setTimeout: setTimeout2,\n    clearTimeout: clearTimeout2\n  }) {\n    const cache = /* @__PURE__ */ new Map();\n    const callbackCache = createMultiMap();\n    const cacheToUpdateChildWatches = /* @__PURE__ */ new Map();\n    let timerToUpdateChildWatches;\n    const filePathComparer = getStringComparer(!useCaseSensitiveFileNames);\n    const toCanonicalFilePath = createGetCanonicalFileName(useCaseSensitiveFileNames);\n    return (dirName, callback, recursive, options) => recursive ? createDirectoryWatcher(dirName, options, callback) : watchDirectory(dirName, callback, recursive, options);\n    function createDirectoryWatcher(dirName, options, callback) {\n      const dirPath = toCanonicalFilePath(dirName);\n      let directoryWatcher = cache.get(dirPath);\n      if (directoryWatcher) {\n        directoryWatcher.refCount++;\n      } else {\n        directoryWatcher = {\n          watcher: watchDirectory(dirName, (fileName) => {\n            if (isIgnoredPath(fileName, options))\n              return;\n            if (options == null ? void 0 : options.synchronousWatchDirectory) {\n              invokeCallbacks(dirPath, fileName);\n              updateChildWatches(dirName, dirPath, options);\n            } else {\n              nonSyncUpdateChildWatches(dirName, dirPath, fileName, options);\n            }\n          }, false, options),\n          refCount: 1,\n          childWatches: emptyArray\n        };\n        cache.set(dirPath, directoryWatcher);\n        updateChildWatches(dirName, dirPath, options);\n      }\n      const callbackToAdd = callback && { dirName, callback };\n      if (callbackToAdd) {\n        callbackCache.add(dirPath, callbackToAdd);\n      }\n      return {\n        dirName,\n        close: () => {\n          const directoryWatcher2 = Debug.checkDefined(cache.get(dirPath));\n          if (callbackToAdd)\n            callbackCache.remove(dirPath, callbackToAdd);\n          directoryWatcher2.refCount--;\n          if (directoryWatcher2.refCount)\n            return;\n          cache.delete(dirPath);\n          closeFileWatcherOf(directoryWatcher2);\n          directoryWatcher2.childWatches.forEach(closeFileWatcher);\n        }\n      };\n    }\n    function invokeCallbacks(dirPath, fileNameOrInvokeMap, fileNames) {\n      let fileName;\n      let invokeMap;\n      if (isString(fileNameOrInvokeMap)) {\n        fileName = fileNameOrInvokeMap;\n      } else {\n        invokeMap = fileNameOrInvokeMap;\n      }\n      callbackCache.forEach((callbacks, rootDirName) => {\n        if (invokeMap && invokeMap.get(rootDirName) === true)\n          return;\n        if (rootDirName === dirPath || startsWith(dirPath, rootDirName) && dirPath[rootDirName.length] === directorySeparator) {\n          if (invokeMap) {\n            if (fileNames) {\n              const existing = invokeMap.get(rootDirName);\n              if (existing) {\n                existing.push(...fileNames);\n              } else {\n                invokeMap.set(rootDirName, fileNames.slice());\n              }\n            } else {\n              invokeMap.set(rootDirName, true);\n            }\n          } else {\n            callbacks.forEach(({ callback }) => callback(fileName));\n          }\n        }\n      });\n    }\n    function nonSyncUpdateChildWatches(dirName, dirPath, fileName, options) {\n      const parentWatcher = cache.get(dirPath);\n      if (parentWatcher && fileSystemEntryExists(dirName, 1)) {\n        scheduleUpdateChildWatches(dirName, dirPath, fileName, options);\n        return;\n      }\n      invokeCallbacks(dirPath, fileName);\n      removeChildWatches(parentWatcher);\n    }\n    function scheduleUpdateChildWatches(dirName, dirPath, fileName, options) {\n      const existing = cacheToUpdateChildWatches.get(dirPath);\n      if (existing) {\n        existing.fileNames.push(fileName);\n      } else {\n        cacheToUpdateChildWatches.set(dirPath, { dirName, options, fileNames: [fileName] });\n      }\n      if (timerToUpdateChildWatches) {\n        clearTimeout2(timerToUpdateChildWatches);\n        timerToUpdateChildWatches = void 0;\n      }\n      timerToUpdateChildWatches = setTimeout2(onTimerToUpdateChildWatches, 1e3);\n    }\n    function onTimerToUpdateChildWatches() {\n      timerToUpdateChildWatches = void 0;\n      sysLog(`sysLog:: onTimerToUpdateChildWatches:: ${cacheToUpdateChildWatches.size}`);\n      const start = timestamp();\n      const invokeMap = /* @__PURE__ */ new Map();\n      while (!timerToUpdateChildWatches && cacheToUpdateChildWatches.size) {\n        const result = cacheToUpdateChildWatches.entries().next();\n        Debug.assert(!result.done);\n        const { value: [dirPath, { dirName, options, fileNames }] } = result;\n        cacheToUpdateChildWatches.delete(dirPath);\n        const hasChanges = updateChildWatches(dirName, dirPath, options);\n        invokeCallbacks(dirPath, invokeMap, hasChanges ? void 0 : fileNames);\n      }\n      sysLog(`sysLog:: invokingWatchers:: Elapsed:: ${timestamp() - start}ms:: ${cacheToUpdateChildWatches.size}`);\n      callbackCache.forEach((callbacks, rootDirName) => {\n        const existing = invokeMap.get(rootDirName);\n        if (existing) {\n          callbacks.forEach(({ callback, dirName }) => {\n            if (isArray(existing)) {\n              existing.forEach(callback);\n            } else {\n              callback(dirName);\n            }\n          });\n        }\n      });\n      const elapsed = timestamp() - start;\n      sysLog(`sysLog:: Elapsed:: ${elapsed}ms:: onTimerToUpdateChildWatches:: ${cacheToUpdateChildWatches.size} ${timerToUpdateChildWatches}`);\n    }\n    function removeChildWatches(parentWatcher) {\n      if (!parentWatcher)\n        return;\n      const existingChildWatches = parentWatcher.childWatches;\n      parentWatcher.childWatches = emptyArray;\n      for (const childWatcher of existingChildWatches) {\n        childWatcher.close();\n        removeChildWatches(cache.get(toCanonicalFilePath(childWatcher.dirName)));\n      }\n    }\n    function updateChildWatches(parentDir, parentDirPath, options) {\n      const parentWatcher = cache.get(parentDirPath);\n      if (!parentWatcher)\n        return false;\n      let newChildWatches;\n      const hasChanges = enumerateInsertsAndDeletes(fileSystemEntryExists(parentDir, 1) ? mapDefined(getAccessibleSortedChildDirectories(parentDir), (child) => {\n        const childFullName = getNormalizedAbsolutePath(child, parentDir);\n        return !isIgnoredPath(childFullName, options) && filePathComparer(childFullName, normalizePath(realpath(childFullName))) === 0 ? childFullName : void 0;\n      }) : emptyArray, parentWatcher.childWatches, (child, childWatcher) => filePathComparer(child, childWatcher.dirName), createAndAddChildDirectoryWatcher, closeFileWatcher, addChildDirectoryWatcher);\n      parentWatcher.childWatches = newChildWatches || emptyArray;\n      return hasChanges;\n      function createAndAddChildDirectoryWatcher(childName) {\n        const result = createDirectoryWatcher(childName, options);\n        addChildDirectoryWatcher(result);\n      }\n      function addChildDirectoryWatcher(childWatcher) {\n        (newChildWatches || (newChildWatches = [])).push(childWatcher);\n      }\n    }\n    function isIgnoredPath(path, options) {\n      return some(ignoredPaths, (searchPath) => isInPath(path, searchPath)) || isIgnoredByWatchOptions(path, options, useCaseSensitiveFileNames, getCurrentDirectory);\n    }\n    function isInPath(path, searchPath) {\n      if (stringContains(path, searchPath))\n        return true;\n      if (useCaseSensitiveFileNames)\n        return false;\n      return stringContains(toCanonicalFilePath(path), searchPath);\n    }\n  }\n  function createFileWatcherCallback(callback) {\n    return (_fileName, eventKind, modifiedTime) => callback(eventKind === 1 ? \"change\" : \"rename\", \"\", modifiedTime);\n  }\n  function createFsWatchCallbackForFileWatcherCallback(fileName, callback, getModifiedTime3) {\n    return (eventName, _relativeFileName, modifiedTime) => {\n      if (eventName === \"rename\") {\n        modifiedTime || (modifiedTime = getModifiedTime3(fileName) || missingFileModifiedTime);\n        callback(fileName, modifiedTime !== missingFileModifiedTime ? 0 : 2, modifiedTime);\n      } else {\n        callback(fileName, 1, modifiedTime);\n      }\n    };\n  }\n  function isIgnoredByWatchOptions(pathToCheck, options, useCaseSensitiveFileNames, getCurrentDirectory) {\n    return ((options == null ? void 0 : options.excludeDirectories) || (options == null ? void 0 : options.excludeFiles)) && (matchesExclude(pathToCheck, options == null ? void 0 : options.excludeFiles, useCaseSensitiveFileNames, getCurrentDirectory()) || matchesExclude(pathToCheck, options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames, getCurrentDirectory()));\n  }\n  function createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames, getCurrentDirectory) {\n    return (eventName, relativeFileName) => {\n      if (eventName === \"rename\") {\n        const fileName = !relativeFileName ? directoryName : normalizePath(combinePaths(directoryName, relativeFileName));\n        if (!relativeFileName || !isIgnoredByWatchOptions(fileName, options, useCaseSensitiveFileNames, getCurrentDirectory)) {\n          callback(fileName);\n        }\n      }\n    };\n  }\n  function createSystemWatchFunctions({\n    pollingWatchFileWorker,\n    getModifiedTime: getModifiedTime3,\n    setTimeout: setTimeout2,\n    clearTimeout: clearTimeout2,\n    fsWatchWorker,\n    fileSystemEntryExists,\n    useCaseSensitiveFileNames,\n    getCurrentDirectory,\n    fsSupportsRecursiveFsWatch,\n    getAccessibleSortedChildDirectories,\n    realpath,\n    tscWatchFile,\n    useNonPollingWatchers,\n    tscWatchDirectory,\n    inodeWatching,\n    sysLog: sysLog2\n  }) {\n    const pollingWatches = /* @__PURE__ */ new Map();\n    const fsWatches = /* @__PURE__ */ new Map();\n    const fsWatchesRecursive = /* @__PURE__ */ new Map();\n    let dynamicPollingWatchFile;\n    let fixedChunkSizePollingWatchFile;\n    let nonPollingWatchFile;\n    let hostRecursiveDirectoryWatcher;\n    let hitSystemWatcherLimit = false;\n    return {\n      watchFile: watchFile2,\n      watchDirectory\n    };\n    function watchFile2(fileName, callback, pollingInterval, options) {\n      options = updateOptionsForWatchFile(options, useNonPollingWatchers);\n      const watchFileKind = Debug.checkDefined(options.watchFile);\n      switch (watchFileKind) {\n        case 0:\n          return pollingWatchFile(fileName, callback, 250, void 0);\n        case 1:\n          return pollingWatchFile(fileName, callback, pollingInterval, void 0);\n        case 2:\n          return ensureDynamicPollingWatchFile()(fileName, callback, pollingInterval, void 0);\n        case 3:\n          return ensureFixedChunkSizePollingWatchFile()(fileName, callback, void 0, void 0);\n        case 4:\n          return fsWatch(fileName, 0, createFsWatchCallbackForFileWatcherCallback(fileName, callback, getModifiedTime3), false, pollingInterval, getFallbackOptions(options));\n        case 5:\n          if (!nonPollingWatchFile) {\n            nonPollingWatchFile = createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames);\n          }\n          return nonPollingWatchFile(fileName, callback, pollingInterval, getFallbackOptions(options));\n        default:\n          Debug.assertNever(watchFileKind);\n      }\n    }\n    function ensureDynamicPollingWatchFile() {\n      return dynamicPollingWatchFile || (dynamicPollingWatchFile = createDynamicPriorityPollingWatchFile({ getModifiedTime: getModifiedTime3, setTimeout: setTimeout2 }));\n    }\n    function ensureFixedChunkSizePollingWatchFile() {\n      return fixedChunkSizePollingWatchFile || (fixedChunkSizePollingWatchFile = createFixedChunkSizePollingWatchFile({ getModifiedTime: getModifiedTime3, setTimeout: setTimeout2 }));\n    }\n    function updateOptionsForWatchFile(options, useNonPollingWatchers2) {\n      if (options && options.watchFile !== void 0)\n        return options;\n      switch (tscWatchFile) {\n        case \"PriorityPollingInterval\":\n          return { watchFile: 1 };\n        case \"DynamicPriorityPolling\":\n          return { watchFile: 2 };\n        case \"UseFsEvents\":\n          return generateWatchFileOptions(4, 1, options);\n        case \"UseFsEventsWithFallbackDynamicPolling\":\n          return generateWatchFileOptions(4, 2, options);\n        case \"UseFsEventsOnParentDirectory\":\n          useNonPollingWatchers2 = true;\n        default:\n          return useNonPollingWatchers2 ? generateWatchFileOptions(5, 1, options) : { watchFile: 4 };\n      }\n    }\n    function generateWatchFileOptions(watchFile3, fallbackPolling, options) {\n      const defaultFallbackPolling = options == null ? void 0 : options.fallbackPolling;\n      return {\n        watchFile: watchFile3,\n        fallbackPolling: defaultFallbackPolling === void 0 ? fallbackPolling : defaultFallbackPolling\n      };\n    }\n    function watchDirectory(directoryName, callback, recursive, options) {\n      if (fsSupportsRecursiveFsWatch) {\n        return fsWatch(directoryName, 1, createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames, getCurrentDirectory), recursive, 500, getFallbackOptions(options));\n      }\n      if (!hostRecursiveDirectoryWatcher) {\n        hostRecursiveDirectoryWatcher = createDirectoryWatcherSupportingRecursive({\n          useCaseSensitiveFileNames,\n          getCurrentDirectory,\n          fileSystemEntryExists,\n          getAccessibleSortedChildDirectories,\n          watchDirectory: nonRecursiveWatchDirectory,\n          realpath,\n          setTimeout: setTimeout2,\n          clearTimeout: clearTimeout2\n        });\n      }\n      return hostRecursiveDirectoryWatcher(directoryName, callback, recursive, options);\n    }\n    function nonRecursiveWatchDirectory(directoryName, callback, recursive, options) {\n      Debug.assert(!recursive);\n      const watchDirectoryOptions = updateOptionsForWatchDirectory(options);\n      const watchDirectoryKind = Debug.checkDefined(watchDirectoryOptions.watchDirectory);\n      switch (watchDirectoryKind) {\n        case 1:\n          return pollingWatchFile(directoryName, () => callback(directoryName), 500, void 0);\n        case 2:\n          return ensureDynamicPollingWatchFile()(directoryName, () => callback(directoryName), 500, void 0);\n        case 3:\n          return ensureFixedChunkSizePollingWatchFile()(directoryName, () => callback(directoryName), void 0, void 0);\n        case 0:\n          return fsWatch(directoryName, 1, createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames, getCurrentDirectory), recursive, 500, getFallbackOptions(watchDirectoryOptions));\n        default:\n          Debug.assertNever(watchDirectoryKind);\n      }\n    }\n    function updateOptionsForWatchDirectory(options) {\n      if (options && options.watchDirectory !== void 0)\n        return options;\n      switch (tscWatchDirectory) {\n        case \"RecursiveDirectoryUsingFsWatchFile\":\n          return { watchDirectory: 1 };\n        case \"RecursiveDirectoryUsingDynamicPriorityPolling\":\n          return { watchDirectory: 2 };\n        default:\n          const defaultFallbackPolling = options == null ? void 0 : options.fallbackPolling;\n          return {\n            watchDirectory: 0,\n            fallbackPolling: defaultFallbackPolling !== void 0 ? defaultFallbackPolling : void 0\n          };\n      }\n    }\n    function pollingWatchFile(fileName, callback, pollingInterval, options) {\n      return createSingleWatcherPerName(pollingWatches, useCaseSensitiveFileNames, fileName, callback, (cb) => pollingWatchFileWorker(fileName, cb, pollingInterval, options));\n    }\n    function fsWatch(fileOrDirectory, entryKind, callback, recursive, fallbackPollingInterval, fallbackOptions) {\n      return createSingleWatcherPerName(recursive ? fsWatchesRecursive : fsWatches, useCaseSensitiveFileNames, fileOrDirectory, callback, (cb) => fsWatchHandlingExistenceOnHost(fileOrDirectory, entryKind, cb, recursive, fallbackPollingInterval, fallbackOptions));\n    }\n    function fsWatchHandlingExistenceOnHost(fileOrDirectory, entryKind, callback, recursive, fallbackPollingInterval, fallbackOptions) {\n      let lastDirectoryPartWithDirectorySeparator;\n      let lastDirectoryPart;\n      if (inodeWatching) {\n        lastDirectoryPartWithDirectorySeparator = fileOrDirectory.substring(fileOrDirectory.lastIndexOf(directorySeparator));\n        lastDirectoryPart = lastDirectoryPartWithDirectorySeparator.slice(directorySeparator.length);\n      }\n      let watcher = !fileSystemEntryExists(fileOrDirectory, entryKind) ? watchMissingFileSystemEntry() : watchPresentFileSystemEntry();\n      return {\n        close: () => {\n          if (watcher) {\n            watcher.close();\n            watcher = void 0;\n          }\n        }\n      };\n      function updateWatcher(createWatcher) {\n        if (watcher) {\n          sysLog2(`sysLog:: ${fileOrDirectory}:: Changing watcher to ${createWatcher === watchPresentFileSystemEntry ? \"Present\" : \"Missing\"}FileSystemEntryWatcher`);\n          watcher.close();\n          watcher = createWatcher();\n        }\n      }\n      function watchPresentFileSystemEntry() {\n        if (hitSystemWatcherLimit) {\n          sysLog2(`sysLog:: ${fileOrDirectory}:: Defaulting to watchFile`);\n          return watchPresentFileSystemEntryWithFsWatchFile();\n        }\n        try {\n          const presentWatcher = fsWatchWorker(fileOrDirectory, recursive, inodeWatching ? callbackChangingToMissingFileSystemEntry : callback);\n          presentWatcher.on(\"error\", () => {\n            callback(\"rename\", \"\");\n            updateWatcher(watchMissingFileSystemEntry);\n          });\n          return presentWatcher;\n        } catch (e) {\n          hitSystemWatcherLimit || (hitSystemWatcherLimit = e.code === \"ENOSPC\");\n          sysLog2(`sysLog:: ${fileOrDirectory}:: Changing to watchFile`);\n          return watchPresentFileSystemEntryWithFsWatchFile();\n        }\n      }\n      function callbackChangingToMissingFileSystemEntry(event, relativeName) {\n        let originalRelativeName;\n        if (relativeName && endsWith(relativeName, \"~\")) {\n          originalRelativeName = relativeName;\n          relativeName = relativeName.slice(0, relativeName.length - 1);\n        }\n        if (event === \"rename\" && (!relativeName || relativeName === lastDirectoryPart || endsWith(relativeName, lastDirectoryPartWithDirectorySeparator))) {\n          const modifiedTime = getModifiedTime3(fileOrDirectory) || missingFileModifiedTime;\n          if (originalRelativeName)\n            callback(event, originalRelativeName, modifiedTime);\n          callback(event, relativeName, modifiedTime);\n          if (inodeWatching) {\n            updateWatcher(modifiedTime === missingFileModifiedTime ? watchMissingFileSystemEntry : watchPresentFileSystemEntry);\n          } else if (modifiedTime === missingFileModifiedTime) {\n            updateWatcher(watchMissingFileSystemEntry);\n          }\n        } else {\n          if (originalRelativeName)\n            callback(event, originalRelativeName);\n          callback(event, relativeName);\n        }\n      }\n      function watchPresentFileSystemEntryWithFsWatchFile() {\n        return watchFile2(fileOrDirectory, createFileWatcherCallback(callback), fallbackPollingInterval, fallbackOptions);\n      }\n      function watchMissingFileSystemEntry() {\n        return watchFile2(fileOrDirectory, (_fileName, eventKind, modifiedTime) => {\n          if (eventKind === 0) {\n            modifiedTime || (modifiedTime = getModifiedTime3(fileOrDirectory) || missingFileModifiedTime);\n            if (modifiedTime !== missingFileModifiedTime) {\n              callback(\"rename\", \"\", modifiedTime);\n              updateWatcher(watchPresentFileSystemEntry);\n            }\n          }\n        }, fallbackPollingInterval, fallbackOptions);\n      }\n    }\n  }\n  function patchWriteFileEnsuringDirectory(sys2) {\n    const originalWriteFile = sys2.writeFile;\n    sys2.writeFile = (path, data, writeBom) => writeFileEnsuringDirectories(path, data, !!writeBom, (path2, data2, writeByteOrderMark) => originalWriteFile.call(sys2, path2, data2, writeByteOrderMark), (path2) => sys2.createDirectory(path2), (path2) => sys2.directoryExists(path2));\n  }\n  function setSys(s) {\n    sys = s;\n  }\n  var FileWatcherEventKind, PollingInterval, missingFileModifiedTime, defaultChunkLevels, pollingChunkSize, unchangedPollThresholds, ignoredPaths, curSysLog, FileSystemEntryKind, sys;\n  var init_sys = __esm({\n    \"src/compiler/sys.ts\"() {\n      \"use strict\";\n      init_ts2();\n      FileWatcherEventKind = /* @__PURE__ */ ((FileWatcherEventKind2) => {\n        FileWatcherEventKind2[FileWatcherEventKind2[\"Created\"] = 0] = \"Created\";\n        FileWatcherEventKind2[FileWatcherEventKind2[\"Changed\"] = 1] = \"Changed\";\n        FileWatcherEventKind2[FileWatcherEventKind2[\"Deleted\"] = 2] = \"Deleted\";\n        return FileWatcherEventKind2;\n      })(FileWatcherEventKind || {});\n      PollingInterval = /* @__PURE__ */ ((PollingInterval3) => {\n        PollingInterval3[PollingInterval3[\"High\"] = 2e3] = \"High\";\n        PollingInterval3[PollingInterval3[\"Medium\"] = 500] = \"Medium\";\n        PollingInterval3[PollingInterval3[\"Low\"] = 250] = \"Low\";\n        return PollingInterval3;\n      })(PollingInterval || {});\n      missingFileModifiedTime = /* @__PURE__ */ new Date(0);\n      defaultChunkLevels = { Low: 32, Medium: 64, High: 256 };\n      pollingChunkSize = createPollingIntervalBasedLevels(defaultChunkLevels);\n      unchangedPollThresholds = createPollingIntervalBasedLevels(defaultChunkLevels);\n      ignoredPaths = [\"/node_modules/.\", \"/.git\", \"/.#\"];\n      curSysLog = noop;\n      FileSystemEntryKind = /* @__PURE__ */ ((FileSystemEntryKind2) => {\n        FileSystemEntryKind2[FileSystemEntryKind2[\"File\"] = 0] = \"File\";\n        FileSystemEntryKind2[FileSystemEntryKind2[\"Directory\"] = 1] = \"Directory\";\n        return FileSystemEntryKind2;\n      })(FileSystemEntryKind || {});\n      sys = (() => {\n        const byteOrderMarkIndicator = \"\\uFEFF\";\n        function getNodeSystem() {\n          const nativePattern = /^native |^\\([^)]+\\)$|^(internal[\\\\/]|[a-zA-Z0-9_\\s]+(\\.js)?$)/;\n          const _fs = require2(\"fs\");\n          const _path = require2(\"path\");\n          const _os = require2(\"os\");\n          let _crypto;\n          try {\n            _crypto = require2(\"crypto\");\n          } catch (e) {\n            _crypto = void 0;\n          }\n          let activeSession;\n          let profilePath = \"./profile.cpuprofile\";\n          const Buffer2 = require2(\"buffer\").Buffer;\n          const isLinuxOrMacOs = process.platform === \"linux\" || process.platform === \"darwin\";\n          const platform = _os.platform();\n          const useCaseSensitiveFileNames = isFileSystemCaseSensitive();\n          const fsRealpath = !!_fs.realpathSync.native ? process.platform === \"win32\" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;\n          const executingFilePath = __filename.endsWith(\"sys.js\") ? _path.join(_path.dirname(__dirname), \"__fake__.js\") : __filename;\n          const fsSupportsRecursiveFsWatch = process.platform === \"win32\" || process.platform === \"darwin\";\n          const getCurrentDirectory = memoize(() => process.cwd());\n          const { watchFile: watchFile2, watchDirectory } = createSystemWatchFunctions({\n            pollingWatchFileWorker: fsWatchFileWorker,\n            getModifiedTime: getModifiedTime3,\n            setTimeout,\n            clearTimeout,\n            fsWatchWorker,\n            useCaseSensitiveFileNames,\n            getCurrentDirectory,\n            fileSystemEntryExists,\n            fsSupportsRecursiveFsWatch,\n            getAccessibleSortedChildDirectories: (path) => getAccessibleFileSystemEntries(path).directories,\n            realpath,\n            tscWatchFile: process.env.TSC_WATCHFILE,\n            useNonPollingWatchers: process.env.TSC_NONPOLLING_WATCHER,\n            tscWatchDirectory: process.env.TSC_WATCHDIRECTORY,\n            inodeWatching: isLinuxOrMacOs,\n            sysLog\n          });\n          const nodeSystem = {\n            args: process.argv.slice(2),\n            newLine: _os.EOL,\n            useCaseSensitiveFileNames,\n            write(s) {\n              process.stdout.write(s);\n            },\n            getWidthOfTerminal() {\n              return process.stdout.columns;\n            },\n            writeOutputIsTTY() {\n              return process.stdout.isTTY;\n            },\n            readFile,\n            writeFile: writeFile2,\n            watchFile: watchFile2,\n            watchDirectory,\n            resolvePath: (path) => _path.resolve(path),\n            fileExists,\n            directoryExists,\n            createDirectory(directoryName) {\n              if (!nodeSystem.directoryExists(directoryName)) {\n                try {\n                  _fs.mkdirSync(directoryName);\n                } catch (e) {\n                  if (e.code !== \"EEXIST\") {\n                    throw e;\n                  }\n                }\n              }\n            },\n            getExecutingFilePath() {\n              return executingFilePath;\n            },\n            getCurrentDirectory,\n            getDirectories,\n            getEnvironmentVariable(name) {\n              return process.env[name] || \"\";\n            },\n            readDirectory,\n            getModifiedTime: getModifiedTime3,\n            setModifiedTime,\n            deleteFile,\n            createHash: _crypto ? createSHA256Hash : generateDjb2Hash,\n            createSHA256Hash: _crypto ? createSHA256Hash : void 0,\n            getMemoryUsage() {\n              if (__webpack_require__.g.gc) {\n                __webpack_require__.g.gc();\n              }\n              return process.memoryUsage().heapUsed;\n            },\n            getFileSize(path) {\n              try {\n                const stat = statSync(path);\n                if (stat == null ? void 0 : stat.isFile()) {\n                  return stat.size;\n                }\n              } catch (e) {\n              }\n              return 0;\n            },\n            exit(exitCode) {\n              disableCPUProfiler(() => process.exit(exitCode));\n            },\n            enableCPUProfiler,\n            disableCPUProfiler,\n            cpuProfilingEnabled: () => !!activeSession || contains(process.execArgv, \"--cpu-prof\") || contains(process.execArgv, \"--prof\"),\n            realpath,\n            debugMode: !!process.env.NODE_INSPECTOR_IPC || !!process.env.VSCODE_INSPECTOR_OPTIONS || some(process.execArgv, (arg) => /^--(inspect|debug)(-brk)?(=\\d+)?$/i.test(arg)),\n            tryEnableSourceMapsForHost() {\n              try {\n                require2(\"source-map-support\").install();\n              } catch (e) {\n              }\n            },\n            setTimeout,\n            clearTimeout,\n            clearScreen: () => {\n              process.stdout.write(\"\\x1Bc\");\n            },\n            setBlocking: () => {\n              if (process.stdout && process.stdout._handle && process.stdout._handle.setBlocking) {\n                process.stdout._handle.setBlocking(true);\n              }\n            },\n            bufferFrom,\n            base64decode: (input) => bufferFrom(input, \"base64\").toString(\"utf8\"),\n            base64encode: (input) => bufferFrom(input).toString(\"base64\"),\n            require: (baseDir, moduleName) => {\n              try {\n                const modulePath = resolveJSModule(moduleName, baseDir, nodeSystem);\n                return { module: require2(modulePath), modulePath, error: void 0 };\n              } catch (error) {\n                return { module: void 0, modulePath: void 0, error };\n              }\n            }\n          };\n          return nodeSystem;\n          function statSync(path) {\n            return _fs.statSync(path, { throwIfNoEntry: false });\n          }\n          function enableCPUProfiler(path, cb) {\n            if (activeSession) {\n              cb();\n              return false;\n            }\n            const inspector = require2(\"inspector\");\n            if (!inspector || !inspector.Session) {\n              cb();\n              return false;\n            }\n            const session = new inspector.Session();\n            session.connect();\n            session.post(\"Profiler.enable\", () => {\n              session.post(\"Profiler.start\", () => {\n                activeSession = session;\n                profilePath = path;\n                cb();\n              });\n            });\n            return true;\n          }\n          function cleanupPaths(profile) {\n            let externalFileCounter = 0;\n            const remappedPaths = /* @__PURE__ */ new Map();\n            const normalizedDir = normalizeSlashes(_path.dirname(executingFilePath));\n            const fileUrlRoot = `file://${getRootLength(normalizedDir) === 1 ? \"\" : \"/\"}${normalizedDir}`;\n            for (const node of profile.nodes) {\n              if (node.callFrame.url) {\n                const url = normalizeSlashes(node.callFrame.url);\n                if (containsPath(fileUrlRoot, url, useCaseSensitiveFileNames)) {\n                  node.callFrame.url = getRelativePathToDirectoryOrUrl(fileUrlRoot, url, fileUrlRoot, createGetCanonicalFileName(useCaseSensitiveFileNames), true);\n                } else if (!nativePattern.test(url)) {\n                  node.callFrame.url = (remappedPaths.has(url) ? remappedPaths : remappedPaths.set(url, `external${externalFileCounter}.js`)).get(url);\n                  externalFileCounter++;\n                }\n              }\n            }\n            return profile;\n          }\n          function disableCPUProfiler(cb) {\n            if (activeSession && activeSession !== \"stopping\") {\n              const s = activeSession;\n              activeSession.post(\"Profiler.stop\", (err, { profile }) => {\n                var _a2;\n                if (!err) {\n                  try {\n                    if ((_a2 = statSync(profilePath)) == null ? void 0 : _a2.isDirectory()) {\n                      profilePath = _path.join(profilePath, `${(/* @__PURE__ */ new Date()).toISOString().replace(/:/g, \"-\")}+P${process.pid}.cpuprofile`);\n                    }\n                  } catch (e) {\n                  }\n                  try {\n                    _fs.mkdirSync(_path.dirname(profilePath), { recursive: true });\n                  } catch (e) {\n                  }\n                  _fs.writeFileSync(profilePath, JSON.stringify(cleanupPaths(profile)));\n                }\n                activeSession = void 0;\n                s.disconnect();\n                cb();\n              });\n              activeSession = \"stopping\";\n              return true;\n            } else {\n              cb();\n              return false;\n            }\n          }\n          function bufferFrom(input, encoding) {\n            return Buffer2.from && Buffer2.from !== Int8Array.from ? Buffer2.from(input, encoding) : new Buffer2(input, encoding);\n          }\n          function isFileSystemCaseSensitive() {\n            if (platform === \"win32\" || platform === \"win64\") {\n              return false;\n            }\n            return !fileExists(swapCase(__filename));\n          }\n          function swapCase(s) {\n            return s.replace(/\\w/g, (ch) => {\n              const up = ch.toUpperCase();\n              return ch === up ? ch.toLowerCase() : up;\n            });\n          }\n          function fsWatchFileWorker(fileName, callback, pollingInterval) {\n            _fs.watchFile(fileName, { persistent: true, interval: pollingInterval }, fileChanged);\n            let eventKind;\n            return {\n              close: () => _fs.unwatchFile(fileName, fileChanged)\n            };\n            function fileChanged(curr, prev) {\n              const isPreviouslyDeleted = +prev.mtime === 0 || eventKind === 2;\n              if (+curr.mtime === 0) {\n                if (isPreviouslyDeleted) {\n                  return;\n                }\n                eventKind = 2;\n              } else if (isPreviouslyDeleted) {\n                eventKind = 0;\n              } else if (+curr.mtime === +prev.mtime) {\n                return;\n              } else {\n                eventKind = 1;\n              }\n              callback(fileName, eventKind, curr.mtime);\n            }\n          }\n          function fsWatchWorker(fileOrDirectory, recursive, callback) {\n            return _fs.watch(fileOrDirectory, fsSupportsRecursiveFsWatch ? { persistent: true, recursive: !!recursive } : { persistent: true }, callback);\n          }\n          function readFileWorker(fileName, _encoding) {\n            let buffer;\n            try {\n              buffer = _fs.readFileSync(fileName);\n            } catch (e) {\n              return void 0;\n            }\n            let len = buffer.length;\n            if (len >= 2 && buffer[0] === 254 && buffer[1] === 255) {\n              len &= ~1;\n              for (let i = 0; i < len; i += 2) {\n                const temp = buffer[i];\n                buffer[i] = buffer[i + 1];\n                buffer[i + 1] = temp;\n              }\n              return buffer.toString(\"utf16le\", 2);\n            }\n            if (len >= 2 && buffer[0] === 255 && buffer[1] === 254) {\n              return buffer.toString(\"utf16le\", 2);\n            }\n            if (len >= 3 && buffer[0] === 239 && buffer[1] === 187 && buffer[2] === 191) {\n              return buffer.toString(\"utf8\", 3);\n            }\n            return buffer.toString(\"utf8\");\n          }\n          function readFile(fileName, _encoding) {\n            perfLogger.logStartReadFile(fileName);\n            const file = readFileWorker(fileName, _encoding);\n            perfLogger.logStopReadFile();\n            return file;\n          }\n          function writeFile2(fileName, data, writeByteOrderMark) {\n            perfLogger.logEvent(\"WriteFile: \" + fileName);\n            if (writeByteOrderMark) {\n              data = byteOrderMarkIndicator + data;\n            }\n            let fd;\n            try {\n              fd = _fs.openSync(fileName, \"w\");\n              _fs.writeSync(fd, data, void 0, \"utf8\");\n            } finally {\n              if (fd !== void 0) {\n                _fs.closeSync(fd);\n              }\n            }\n          }\n          function getAccessibleFileSystemEntries(path) {\n            perfLogger.logEvent(\"ReadDir: \" + (path || \".\"));\n            try {\n              const entries = _fs.readdirSync(path || \".\", { withFileTypes: true });\n              const files = [];\n              const directories = [];\n              for (const dirent of entries) {\n                const entry = typeof dirent === \"string\" ? dirent : dirent.name;\n                if (entry === \".\" || entry === \"..\") {\n                  continue;\n                }\n                let stat;\n                if (typeof dirent === \"string\" || dirent.isSymbolicLink()) {\n                  const name = combinePaths(path, entry);\n                  try {\n                    stat = statSync(name);\n                    if (!stat) {\n                      continue;\n                    }\n                  } catch (e) {\n                    continue;\n                  }\n                } else {\n                  stat = dirent;\n                }\n                if (stat.isFile()) {\n                  files.push(entry);\n                } else if (stat.isDirectory()) {\n                  directories.push(entry);\n                }\n              }\n              files.sort();\n              directories.sort();\n              return { files, directories };\n            } catch (e) {\n              return emptyFileSystemEntries;\n            }\n          }\n          function readDirectory(path, extensions, excludes, includes, depth) {\n            return matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, process.cwd(), depth, getAccessibleFileSystemEntries, realpath);\n          }\n          function fileSystemEntryExists(path, entryKind) {\n            const originalStackTraceLimit = Error.stackTraceLimit;\n            Error.stackTraceLimit = 0;\n            try {\n              const stat = statSync(path);\n              if (!stat) {\n                return false;\n              }\n              switch (entryKind) {\n                case 0:\n                  return stat.isFile();\n                case 1:\n                  return stat.isDirectory();\n                default:\n                  return false;\n              }\n            } catch (e) {\n              return false;\n            } finally {\n              Error.stackTraceLimit = originalStackTraceLimit;\n            }\n          }\n          function fileExists(path) {\n            return fileSystemEntryExists(path, 0);\n          }\n          function directoryExists(path) {\n            return fileSystemEntryExists(path, 1);\n          }\n          function getDirectories(path) {\n            return getAccessibleFileSystemEntries(path).directories.slice();\n          }\n          function fsRealPathHandlingLongPath(path) {\n            return path.length < 260 ? _fs.realpathSync.native(path) : _fs.realpathSync(path);\n          }\n          function realpath(path) {\n            try {\n              return fsRealpath(path);\n            } catch (e) {\n              return path;\n            }\n          }\n          function getModifiedTime3(path) {\n            var _a2;\n            const originalStackTraceLimit = Error.stackTraceLimit;\n            Error.stackTraceLimit = 0;\n            try {\n              return (_a2 = statSync(path)) == null ? void 0 : _a2.mtime;\n            } catch (e) {\n              return void 0;\n            } finally {\n              Error.stackTraceLimit = originalStackTraceLimit;\n            }\n          }\n          function setModifiedTime(path, time) {\n            try {\n              _fs.utimesSync(path, time, time);\n            } catch (e) {\n              return;\n            }\n          }\n          function deleteFile(path) {\n            try {\n              return _fs.unlinkSync(path);\n            } catch (e) {\n              return;\n            }\n          }\n          function createSHA256Hash(data) {\n            const hash = _crypto.createHash(\"sha256\");\n            hash.update(data);\n            return hash.digest(\"hex\");\n          }\n        }\n        let sys2;\n        if (isNodeLikeSystem()) {\n          sys2 = getNodeSystem();\n        }\n        if (sys2) {\n          patchWriteFileEnsuringDirectory(sys2);\n        }\n        return sys2;\n      })();\n      if (sys && sys.getEnvironmentVariable) {\n        setCustomPollingValues(sys);\n        Debug.setAssertionLevel(/^development$/i.test(sys.getEnvironmentVariable(\"NODE_ENV\")) ? 1 : 0);\n      }\n      if (sys && sys.debugMode) {\n        Debug.isDebugging = true;\n      }\n    }\n  });\n  function isAnyDirectorySeparator(charCode) {\n    return charCode === 47 || charCode === 92;\n  }\n  function isUrl(path) {\n    return getEncodedRootLength(path) < 0;\n  }\n  function isRootedDiskPath(path) {\n    return getEncodedRootLength(path) > 0;\n  }\n  function isDiskPathRoot(path) {\n    const rootLength = getEncodedRootLength(path);\n    return rootLength > 0 && rootLength === path.length;\n  }\n  function pathIsAbsolute(path) {\n    return getEncodedRootLength(path) !== 0;\n  }\n  function pathIsRelative(path) {\n    return /^\\.\\.?($|[\\\\/])/.test(path);\n  }\n  function pathIsBareSpecifier(path) {\n    return !pathIsAbsolute(path) && !pathIsRelative(path);\n  }\n  function hasExtension(fileName) {\n    return stringContains(getBaseFileName(fileName), \".\");\n  }\n  function fileExtensionIs(path, extension) {\n    return path.length > extension.length && endsWith(path, extension);\n  }\n  function fileExtensionIsOneOf(path, extensions) {\n    for (const extension of extensions) {\n      if (fileExtensionIs(path, extension)) {\n        return true;\n      }\n    }\n    return false;\n  }\n  function hasTrailingDirectorySeparator(path) {\n    return path.length > 0 && isAnyDirectorySeparator(path.charCodeAt(path.length - 1));\n  }\n  function isVolumeCharacter(charCode) {\n    return charCode >= 97 && charCode <= 122 || charCode >= 65 && charCode <= 90;\n  }\n  function getFileUrlVolumeSeparatorEnd(url, start) {\n    const ch0 = url.charCodeAt(start);\n    if (ch0 === 58)\n      return start + 1;\n    if (ch0 === 37 && url.charCodeAt(start + 1) === 51) {\n      const ch2 = url.charCodeAt(start + 2);\n      if (ch2 === 97 || ch2 === 65)\n        return start + 3;\n    }\n    return -1;\n  }\n  function getEncodedRootLength(path) {\n    if (!path)\n      return 0;\n    const ch0 = path.charCodeAt(0);\n    if (ch0 === 47 || ch0 === 92) {\n      if (path.charCodeAt(1) !== ch0)\n        return 1;\n      const p1 = path.indexOf(ch0 === 47 ? directorySeparator : altDirectorySeparator, 2);\n      if (p1 < 0)\n        return path.length;\n      return p1 + 1;\n    }\n    if (isVolumeCharacter(ch0) && path.charCodeAt(1) === 58) {\n      const ch2 = path.charCodeAt(2);\n      if (ch2 === 47 || ch2 === 92)\n        return 3;\n      if (path.length === 2)\n        return 2;\n    }\n    const schemeEnd = path.indexOf(urlSchemeSeparator);\n    if (schemeEnd !== -1) {\n      const authorityStart = schemeEnd + urlSchemeSeparator.length;\n      const authorityEnd = path.indexOf(directorySeparator, authorityStart);\n      if (authorityEnd !== -1) {\n        const scheme = path.slice(0, schemeEnd);\n        const authority = path.slice(authorityStart, authorityEnd);\n        if (scheme === \"file\" && (authority === \"\" || authority === \"localhost\") && isVolumeCharacter(path.charCodeAt(authorityEnd + 1))) {\n          const volumeSeparatorEnd = getFileUrlVolumeSeparatorEnd(path, authorityEnd + 2);\n          if (volumeSeparatorEnd !== -1) {\n            if (path.charCodeAt(volumeSeparatorEnd) === 47) {\n              return ~(volumeSeparatorEnd + 1);\n            }\n            if (volumeSeparatorEnd === path.length) {\n              return ~volumeSeparatorEnd;\n            }\n          }\n        }\n        return ~(authorityEnd + 1);\n      }\n      return ~path.length;\n    }\n    return 0;\n  }\n  function getRootLength(path) {\n    const rootLength = getEncodedRootLength(path);\n    return rootLength < 0 ? ~rootLength : rootLength;\n  }\n  function getDirectoryPath(path) {\n    path = normalizeSlashes(path);\n    const rootLength = getRootLength(path);\n    if (rootLength === path.length)\n      return path;\n    path = removeTrailingDirectorySeparator(path);\n    return path.slice(0, Math.max(rootLength, path.lastIndexOf(directorySeparator)));\n  }\n  function getBaseFileName(path, extensions, ignoreCase) {\n    path = normalizeSlashes(path);\n    const rootLength = getRootLength(path);\n    if (rootLength === path.length)\n      return \"\";\n    path = removeTrailingDirectorySeparator(path);\n    const name = path.slice(Math.max(getRootLength(path), path.lastIndexOf(directorySeparator) + 1));\n    const extension = extensions !== void 0 && ignoreCase !== void 0 ? getAnyExtensionFromPath(name, extensions, ignoreCase) : void 0;\n    return extension ? name.slice(0, name.length - extension.length) : name;\n  }\n  function tryGetExtensionFromPath(path, extension, stringEqualityComparer) {\n    if (!startsWith(extension, \".\"))\n      extension = \".\" + extension;\n    if (path.length >= extension.length && path.charCodeAt(path.length - extension.length) === 46) {\n      const pathExtension = path.slice(path.length - extension.length);\n      if (stringEqualityComparer(pathExtension, extension)) {\n        return pathExtension;\n      }\n    }\n  }\n  function getAnyExtensionFromPathWorker(path, extensions, stringEqualityComparer) {\n    if (typeof extensions === \"string\") {\n      return tryGetExtensionFromPath(path, extensions, stringEqualityComparer) || \"\";\n    }\n    for (const extension of extensions) {\n      const result = tryGetExtensionFromPath(path, extension, stringEqualityComparer);\n      if (result)\n        return result;\n    }\n    return \"\";\n  }\n  function getAnyExtensionFromPath(path, extensions, ignoreCase) {\n    if (extensions) {\n      return getAnyExtensionFromPathWorker(removeTrailingDirectorySeparator(path), extensions, ignoreCase ? equateStringsCaseInsensitive : equateStringsCaseSensitive);\n    }\n    const baseFileName = getBaseFileName(path);\n    const extensionIndex = baseFileName.lastIndexOf(\".\");\n    if (extensionIndex >= 0) {\n      return baseFileName.substring(extensionIndex);\n    }\n    return \"\";\n  }\n  function pathComponents(path, rootLength) {\n    const root = path.substring(0, rootLength);\n    const rest = path.substring(rootLength).split(directorySeparator);\n    if (rest.length && !lastOrUndefined(rest))\n      rest.pop();\n    return [root, ...rest];\n  }\n  function getPathComponents(path, currentDirectory = \"\") {\n    path = combinePaths(currentDirectory, path);\n    return pathComponents(path, getRootLength(path));\n  }\n  function getPathFromPathComponents(pathComponents2) {\n    if (pathComponents2.length === 0)\n      return \"\";\n    const root = pathComponents2[0] && ensureTrailingDirectorySeparator(pathComponents2[0]);\n    return root + pathComponents2.slice(1).join(directorySeparator);\n  }\n  function normalizeSlashes(path) {\n    return path.indexOf(\"\\\\\") !== -1 ? path.replace(backslashRegExp, directorySeparator) : path;\n  }\n  function reducePathComponents(components) {\n    if (!some(components))\n      return [];\n    const reduced = [components[0]];\n    for (let i = 1; i < components.length; i++) {\n      const component = components[i];\n      if (!component)\n        continue;\n      if (component === \".\")\n        continue;\n      if (component === \"..\") {\n        if (reduced.length > 1) {\n          if (reduced[reduced.length - 1] !== \"..\") {\n            reduced.pop();\n            continue;\n          }\n        } else if (reduced[0])\n          continue;\n      }\n      reduced.push(component);\n    }\n    return reduced;\n  }\n  function combinePaths(path, ...paths) {\n    if (path)\n      path = normalizeSlashes(path);\n    for (let relativePath of paths) {\n      if (!relativePath)\n        continue;\n      relativePath = normalizeSlashes(relativePath);\n      if (!path || getRootLength(relativePath) !== 0) {\n        path = relativePath;\n      } else {\n        path = ensureTrailingDirectorySeparator(path) + relativePath;\n      }\n    }\n    return path;\n  }\n  function resolvePath(path, ...paths) {\n    return normalizePath(some(paths) ? combinePaths(path, ...paths) : normalizeSlashes(path));\n  }\n  function getNormalizedPathComponents(path, currentDirectory) {\n    return reducePathComponents(getPathComponents(path, currentDirectory));\n  }\n  function getNormalizedAbsolutePath(fileName, currentDirectory) {\n    return getPathFromPathComponents(getNormalizedPathComponents(fileName, currentDirectory));\n  }\n  function normalizePath(path) {\n    path = normalizeSlashes(path);\n    if (!relativePathSegmentRegExp.test(path)) {\n      return path;\n    }\n    const simplified = path.replace(/\\/\\.\\//g, \"/\").replace(/^\\.\\//, \"\");\n    if (simplified !== path) {\n      path = simplified;\n      if (!relativePathSegmentRegExp.test(path)) {\n        return path;\n      }\n    }\n    const normalized = getPathFromPathComponents(reducePathComponents(getPathComponents(path)));\n    return normalized && hasTrailingDirectorySeparator(path) ? ensureTrailingDirectorySeparator(normalized) : normalized;\n  }\n  function getPathWithoutRoot(pathComponents2) {\n    if (pathComponents2.length === 0)\n      return \"\";\n    return pathComponents2.slice(1).join(directorySeparator);\n  }\n  function getNormalizedAbsolutePathWithoutRoot(fileName, currentDirectory) {\n    return getPathWithoutRoot(getNormalizedPathComponents(fileName, currentDirectory));\n  }\n  function toPath(fileName, basePath, getCanonicalFileName) {\n    const nonCanonicalizedPath = isRootedDiskPath(fileName) ? normalizePath(fileName) : getNormalizedAbsolutePath(fileName, basePath);\n    return getCanonicalFileName(nonCanonicalizedPath);\n  }\n  function removeTrailingDirectorySeparator(path) {\n    if (hasTrailingDirectorySeparator(path)) {\n      return path.substr(0, path.length - 1);\n    }\n    return path;\n  }\n  function ensureTrailingDirectorySeparator(path) {\n    if (!hasTrailingDirectorySeparator(path)) {\n      return path + directorySeparator;\n    }\n    return path;\n  }\n  function ensurePathIsNonModuleName(path) {\n    return !pathIsAbsolute(path) && !pathIsRelative(path) ? \"./\" + path : path;\n  }\n  function changeAnyExtension(path, ext, extensions, ignoreCase) {\n    const pathext = extensions !== void 0 && ignoreCase !== void 0 ? getAnyExtensionFromPath(path, extensions, ignoreCase) : getAnyExtensionFromPath(path);\n    return pathext ? path.slice(0, path.length - pathext.length) + (startsWith(ext, \".\") ? ext : \".\" + ext) : path;\n  }\n  function comparePathsWorker(a, b, componentComparer) {\n    if (a === b)\n      return 0;\n    if (a === void 0)\n      return -1;\n    if (b === void 0)\n      return 1;\n    const aRoot = a.substring(0, getRootLength(a));\n    const bRoot = b.substring(0, getRootLength(b));\n    const result = compareStringsCaseInsensitive(aRoot, bRoot);\n    if (result !== 0) {\n      return result;\n    }\n    const aRest = a.substring(aRoot.length);\n    const bRest = b.substring(bRoot.length);\n    if (!relativePathSegmentRegExp.test(aRest) && !relativePathSegmentRegExp.test(bRest)) {\n      return componentComparer(aRest, bRest);\n    }\n    const aComponents = reducePathComponents(getPathComponents(a));\n    const bComponents = reducePathComponents(getPathComponents(b));\n    const sharedLength = Math.min(aComponents.length, bComponents.length);\n    for (let i = 1; i < sharedLength; i++) {\n      const result2 = componentComparer(aComponents[i], bComponents[i]);\n      if (result2 !== 0) {\n        return result2;\n      }\n    }\n    return compareValues(aComponents.length, bComponents.length);\n  }\n  function comparePathsCaseSensitive(a, b) {\n    return comparePathsWorker(a, b, compareStringsCaseSensitive);\n  }\n  function comparePathsCaseInsensitive(a, b) {\n    return comparePathsWorker(a, b, compareStringsCaseInsensitive);\n  }\n  function comparePaths(a, b, currentDirectory, ignoreCase) {\n    if (typeof currentDirectory === \"string\") {\n      a = combinePaths(currentDirectory, a);\n      b = combinePaths(currentDirectory, b);\n    } else if (typeof currentDirectory === \"boolean\") {\n      ignoreCase = currentDirectory;\n    }\n    return comparePathsWorker(a, b, getStringComparer(ignoreCase));\n  }\n  function containsPath(parent2, child, currentDirectory, ignoreCase) {\n    if (typeof currentDirectory === \"string\") {\n      parent2 = combinePaths(currentDirectory, parent2);\n      child = combinePaths(currentDirectory, child);\n    } else if (typeof currentDirectory === \"boolean\") {\n      ignoreCase = currentDirectory;\n    }\n    if (parent2 === void 0 || child === void 0)\n      return false;\n    if (parent2 === child)\n      return true;\n    const parentComponents = reducePathComponents(getPathComponents(parent2));\n    const childComponents = reducePathComponents(getPathComponents(child));\n    if (childComponents.length < parentComponents.length) {\n      return false;\n    }\n    const componentEqualityComparer = ignoreCase ? equateStringsCaseInsensitive : equateStringsCaseSensitive;\n    for (let i = 0; i < parentComponents.length; i++) {\n      const equalityComparer = i === 0 ? equateStringsCaseInsensitive : componentEqualityComparer;\n      if (!equalityComparer(parentComponents[i], childComponents[i])) {\n        return false;\n      }\n    }\n    return true;\n  }\n  function startsWithDirectory(fileName, directoryName, getCanonicalFileName) {\n    const canonicalFileName = getCanonicalFileName(fileName);\n    const canonicalDirectoryName = getCanonicalFileName(directoryName);\n    return startsWith(canonicalFileName, canonicalDirectoryName + \"/\") || startsWith(canonicalFileName, canonicalDirectoryName + \"\\\\\");\n  }\n  function getPathComponentsRelativeTo(from, to, stringEqualityComparer, getCanonicalFileName) {\n    const fromComponents = reducePathComponents(getPathComponents(from));\n    const toComponents = reducePathComponents(getPathComponents(to));\n    let start;\n    for (start = 0; start < fromComponents.length && start < toComponents.length; start++) {\n      const fromComponent = getCanonicalFileName(fromComponents[start]);\n      const toComponent = getCanonicalFileName(toComponents[start]);\n      const comparer = start === 0 ? equateStringsCaseInsensitive : stringEqualityComparer;\n      if (!comparer(fromComponent, toComponent))\n        break;\n    }\n    if (start === 0) {\n      return toComponents;\n    }\n    const components = toComponents.slice(start);\n    const relative = [];\n    for (; start < fromComponents.length; start++) {\n      relative.push(\"..\");\n    }\n    return [\"\", ...relative, ...components];\n  }\n  function getRelativePathFromDirectory(fromDirectory, to, getCanonicalFileNameOrIgnoreCase) {\n    Debug.assert(getRootLength(fromDirectory) > 0 === getRootLength(to) > 0, \"Paths must either both be absolute or both be relative\");\n    const getCanonicalFileName = typeof getCanonicalFileNameOrIgnoreCase === \"function\" ? getCanonicalFileNameOrIgnoreCase : identity;\n    const ignoreCase = typeof getCanonicalFileNameOrIgnoreCase === \"boolean\" ? getCanonicalFileNameOrIgnoreCase : false;\n    const pathComponents2 = getPathComponentsRelativeTo(fromDirectory, to, ignoreCase ? equateStringsCaseInsensitive : equateStringsCaseSensitive, getCanonicalFileName);\n    return getPathFromPathComponents(pathComponents2);\n  }\n  function convertToRelativePath(absoluteOrRelativePath, basePath, getCanonicalFileName) {\n    return !isRootedDiskPath(absoluteOrRelativePath) ? absoluteOrRelativePath : getRelativePathToDirectoryOrUrl(basePath, absoluteOrRelativePath, basePath, getCanonicalFileName, false);\n  }\n  function getRelativePathFromFile(from, to, getCanonicalFileName) {\n    return ensurePathIsNonModuleName(getRelativePathFromDirectory(getDirectoryPath(from), to, getCanonicalFileName));\n  }\n  function getRelativePathToDirectoryOrUrl(directoryPathOrUrl, relativeOrAbsolutePath, currentDirectory, getCanonicalFileName, isAbsolutePathAnUrl) {\n    const pathComponents2 = getPathComponentsRelativeTo(resolvePath(currentDirectory, directoryPathOrUrl), resolvePath(currentDirectory, relativeOrAbsolutePath), equateStringsCaseSensitive, getCanonicalFileName);\n    const firstComponent = pathComponents2[0];\n    if (isAbsolutePathAnUrl && isRootedDiskPath(firstComponent)) {\n      const prefix = firstComponent.charAt(0) === directorySeparator ? \"file://\" : \"file:///\";\n      pathComponents2[0] = prefix + firstComponent;\n    }\n    return getPathFromPathComponents(pathComponents2);\n  }\n  function forEachAncestorDirectory(directory, callback) {\n    while (true) {\n      const result = callback(directory);\n      if (result !== void 0) {\n        return result;\n      }\n      const parentPath = getDirectoryPath(directory);\n      if (parentPath === directory) {\n        return void 0;\n      }\n      directory = parentPath;\n    }\n  }\n  function isNodeModulesDirectory(dirPath) {\n    return endsWith(dirPath, \"/node_modules\");\n  }\n  var directorySeparator, altDirectorySeparator, urlSchemeSeparator, backslashRegExp, relativePathSegmentRegExp;\n  var init_path = __esm({\n    \"src/compiler/path.ts\"() {\n      \"use strict\";\n      init_ts2();\n      directorySeparator = \"/\";\n      altDirectorySeparator = \"\\\\\";\n      urlSchemeSeparator = \"://\";\n      backslashRegExp = /\\\\/g;\n      relativePathSegmentRegExp = /(?:\\/\\/)|(?:^|\\/)\\.\\.?(?:$|\\/)/;\n    }\n  });\n  function diag(code, category, key, message, reportsUnnecessary, elidedInCompatabilityPyramid, reportsDeprecated) {\n    return { code, category, key, message, reportsUnnecessary, elidedInCompatabilityPyramid, reportsDeprecated };\n  }\n  var Diagnostics;\n  var init_diagnosticInformationMap_generated = __esm({\n    \"src/compiler/diagnosticInformationMap.generated.ts\"() {\n      \"use strict\";\n      init_types();\n      Diagnostics = {\n        Unterminated_string_literal: diag(1002, 1, \"Unterminated_string_literal_1002\", \"Unterminated string literal.\"),\n        Identifier_expected: diag(1003, 1, \"Identifier_expected_1003\", \"Identifier expected.\"),\n        _0_expected: diag(1005, 1, \"_0_expected_1005\", \"'{0}' expected.\"),\n        A_file_cannot_have_a_reference_to_itself: diag(1006, 1, \"A_file_cannot_have_a_reference_to_itself_1006\", \"A file cannot have a reference to itself.\"),\n        The_parser_expected_to_find_a_1_to_match_the_0_token_here: diag(1007, 1, \"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007\", \"The parser expected to find a '{1}' to match the '{0}' token here.\"),\n        Trailing_comma_not_allowed: diag(1009, 1, \"Trailing_comma_not_allowed_1009\", \"Trailing comma not allowed.\"),\n        Asterisk_Slash_expected: diag(1010, 1, \"Asterisk_Slash_expected_1010\", \"'*/' expected.\"),\n        An_element_access_expression_should_take_an_argument: diag(1011, 1, \"An_element_access_expression_should_take_an_argument_1011\", \"An element access expression should take an argument.\"),\n        Unexpected_token: diag(1012, 1, \"Unexpected_token_1012\", \"Unexpected token.\"),\n        A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma: diag(1013, 1, \"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013\", \"A rest parameter or binding pattern may not have a trailing comma.\"),\n        A_rest_parameter_must_be_last_in_a_parameter_list: diag(1014, 1, \"A_rest_parameter_must_be_last_in_a_parameter_list_1014\", \"A rest parameter must be last in a parameter list.\"),\n        Parameter_cannot_have_question_mark_and_initializer: diag(1015, 1, \"Parameter_cannot_have_question_mark_and_initializer_1015\", \"Parameter cannot have question mark and initializer.\"),\n        A_required_parameter_cannot_follow_an_optional_parameter: diag(1016, 1, \"A_required_parameter_cannot_follow_an_optional_parameter_1016\", \"A required parameter cannot follow an optional parameter.\"),\n        An_index_signature_cannot_have_a_rest_parameter: diag(1017, 1, \"An_index_signature_cannot_have_a_rest_parameter_1017\", \"An index signature cannot have a rest parameter.\"),\n        An_index_signature_parameter_cannot_have_an_accessibility_modifier: diag(1018, 1, \"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018\", \"An index signature parameter cannot have an accessibility modifier.\"),\n        An_index_signature_parameter_cannot_have_a_question_mark: diag(1019, 1, \"An_index_signature_parameter_cannot_have_a_question_mark_1019\", \"An index signature parameter cannot have a question mark.\"),\n        An_index_signature_parameter_cannot_have_an_initializer: diag(1020, 1, \"An_index_signature_parameter_cannot_have_an_initializer_1020\", \"An index signature parameter cannot have an initializer.\"),\n        An_index_signature_must_have_a_type_annotation: diag(1021, 1, \"An_index_signature_must_have_a_type_annotation_1021\", \"An index signature must have a type annotation.\"),\n        An_index_signature_parameter_must_have_a_type_annotation: diag(1022, 1, \"An_index_signature_parameter_must_have_a_type_annotation_1022\", \"An index signature parameter must have a type annotation.\"),\n        readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature: diag(1024, 1, \"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024\", \"'readonly' modifier can only appear on a property declaration or index signature.\"),\n        An_index_signature_cannot_have_a_trailing_comma: diag(1025, 1, \"An_index_signature_cannot_have_a_trailing_comma_1025\", \"An index signature cannot have a trailing comma.\"),\n        Accessibility_modifier_already_seen: diag(1028, 1, \"Accessibility_modifier_already_seen_1028\", \"Accessibility modifier already seen.\"),\n        _0_modifier_must_precede_1_modifier: diag(1029, 1, \"_0_modifier_must_precede_1_modifier_1029\", \"'{0}' modifier must precede '{1}' modifier.\"),\n        _0_modifier_already_seen: diag(1030, 1, \"_0_modifier_already_seen_1030\", \"'{0}' modifier already seen.\"),\n        _0_modifier_cannot_appear_on_class_elements_of_this_kind: diag(1031, 1, \"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031\", \"'{0}' modifier cannot appear on class elements of this kind.\"),\n        super_must_be_followed_by_an_argument_list_or_member_access: diag(1034, 1, \"super_must_be_followed_by_an_argument_list_or_member_access_1034\", \"'super' must be followed by an argument list or member access.\"),\n        Only_ambient_modules_can_use_quoted_names: diag(1035, 1, \"Only_ambient_modules_can_use_quoted_names_1035\", \"Only ambient modules can use quoted names.\"),\n        Statements_are_not_allowed_in_ambient_contexts: diag(1036, 1, \"Statements_are_not_allowed_in_ambient_contexts_1036\", \"Statements are not allowed in ambient contexts.\"),\n        A_declare_modifier_cannot_be_used_in_an_already_ambient_context: diag(1038, 1, \"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038\", \"A 'declare' modifier cannot be used in an already ambient context.\"),\n        Initializers_are_not_allowed_in_ambient_contexts: diag(1039, 1, \"Initializers_are_not_allowed_in_ambient_contexts_1039\", \"Initializers are not allowed in ambient contexts.\"),\n        _0_modifier_cannot_be_used_in_an_ambient_context: diag(1040, 1, \"_0_modifier_cannot_be_used_in_an_ambient_context_1040\", \"'{0}' modifier cannot be used in an ambient context.\"),\n        _0_modifier_cannot_be_used_here: diag(1042, 1, \"_0_modifier_cannot_be_used_here_1042\", \"'{0}' modifier cannot be used here.\"),\n        _0_modifier_cannot_appear_on_a_module_or_namespace_element: diag(1044, 1, \"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044\", \"'{0}' modifier cannot appear on a module or namespace element.\"),\n        Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier: diag(1046, 1, \"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046\", \"Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier.\"),\n        A_rest_parameter_cannot_be_optional: diag(1047, 1, \"A_rest_parameter_cannot_be_optional_1047\", \"A rest parameter cannot be optional.\"),\n        A_rest_parameter_cannot_have_an_initializer: diag(1048, 1, \"A_rest_parameter_cannot_have_an_initializer_1048\", \"A rest parameter cannot have an initializer.\"),\n        A_set_accessor_must_have_exactly_one_parameter: diag(1049, 1, \"A_set_accessor_must_have_exactly_one_parameter_1049\", \"A 'set' accessor must have exactly one parameter.\"),\n        A_set_accessor_cannot_have_an_optional_parameter: diag(1051, 1, \"A_set_accessor_cannot_have_an_optional_parameter_1051\", \"A 'set' accessor cannot have an optional parameter.\"),\n        A_set_accessor_parameter_cannot_have_an_initializer: diag(1052, 1, \"A_set_accessor_parameter_cannot_have_an_initializer_1052\", \"A 'set' accessor parameter cannot have an initializer.\"),\n        A_set_accessor_cannot_have_rest_parameter: diag(1053, 1, \"A_set_accessor_cannot_have_rest_parameter_1053\", \"A 'set' accessor cannot have rest parameter.\"),\n        A_get_accessor_cannot_have_parameters: diag(1054, 1, \"A_get_accessor_cannot_have_parameters_1054\", \"A 'get' accessor cannot have parameters.\"),\n        Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value: diag(1055, 1, \"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055\", \"Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value.\"),\n        Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher: diag(1056, 1, \"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056\", \"Accessors are only available when targeting ECMAScript 5 and higher.\"),\n        The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1058, 1, \"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058\", \"The return type of an async function must either be a valid promise or must not contain a callable 'then' member.\"),\n        A_promise_must_have_a_then_method: diag(1059, 1, \"A_promise_must_have_a_then_method_1059\", \"A promise must have a 'then' method.\"),\n        The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback: diag(1060, 1, \"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060\", \"The first parameter of the 'then' method of a promise must be a callback.\"),\n        Enum_member_must_have_initializer: diag(1061, 1, \"Enum_member_must_have_initializer_1061\", \"Enum member must have initializer.\"),\n        Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method: diag(1062, 1, \"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062\", \"Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method.\"),\n        An_export_assignment_cannot_be_used_in_a_namespace: diag(1063, 1, \"An_export_assignment_cannot_be_used_in_a_namespace_1063\", \"An export assignment cannot be used in a namespace.\"),\n        The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0: diag(1064, 1, \"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064\", \"The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?\"),\n        In_ambient_enum_declarations_member_initializer_must_be_constant_expression: diag(1066, 1, \"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066\", \"In ambient enum declarations member initializer must be constant expression.\"),\n        Unexpected_token_A_constructor_method_accessor_or_property_was_expected: diag(1068, 1, \"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068\", \"Unexpected token. A constructor, method, accessor, or property was expected.\"),\n        Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces: diag(1069, 1, \"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069\", \"Unexpected token. A type parameter name was expected without curly braces.\"),\n        _0_modifier_cannot_appear_on_a_type_member: diag(1070, 1, \"_0_modifier_cannot_appear_on_a_type_member_1070\", \"'{0}' modifier cannot appear on a type member.\"),\n        _0_modifier_cannot_appear_on_an_index_signature: diag(1071, 1, \"_0_modifier_cannot_appear_on_an_index_signature_1071\", \"'{0}' modifier cannot appear on an index signature.\"),\n        A_0_modifier_cannot_be_used_with_an_import_declaration: diag(1079, 1, \"A_0_modifier_cannot_be_used_with_an_import_declaration_1079\", \"A '{0}' modifier cannot be used with an import declaration.\"),\n        Invalid_reference_directive_syntax: diag(1084, 1, \"Invalid_reference_directive_syntax_1084\", \"Invalid 'reference' directive syntax.\"),\n        Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0: diag(1085, 1, \"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085\", \"Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'.\"),\n        _0_modifier_cannot_appear_on_a_constructor_declaration: diag(1089, 1, \"_0_modifier_cannot_appear_on_a_constructor_declaration_1089\", \"'{0}' modifier cannot appear on a constructor declaration.\"),\n        _0_modifier_cannot_appear_on_a_parameter: diag(1090, 1, \"_0_modifier_cannot_appear_on_a_parameter_1090\", \"'{0}' modifier cannot appear on a parameter.\"),\n        Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement: diag(1091, 1, \"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091\", \"Only a single variable declaration is allowed in a 'for...in' statement.\"),\n        Type_parameters_cannot_appear_on_a_constructor_declaration: diag(1092, 1, \"Type_parameters_cannot_appear_on_a_constructor_declaration_1092\", \"Type parameters cannot appear on a constructor declaration.\"),\n        Type_annotation_cannot_appear_on_a_constructor_declaration: diag(1093, 1, \"Type_annotation_cannot_appear_on_a_constructor_declaration_1093\", \"Type annotation cannot appear on a constructor declaration.\"),\n        An_accessor_cannot_have_type_parameters: diag(1094, 1, \"An_accessor_cannot_have_type_parameters_1094\", \"An accessor cannot have type parameters.\"),\n        A_set_accessor_cannot_have_a_return_type_annotation: diag(1095, 1, \"A_set_accessor_cannot_have_a_return_type_annotation_1095\", \"A 'set' accessor cannot have a return type annotation.\"),\n        An_index_signature_must_have_exactly_one_parameter: diag(1096, 1, \"An_index_signature_must_have_exactly_one_parameter_1096\", \"An index signature must have exactly one parameter.\"),\n        _0_list_cannot_be_empty: diag(1097, 1, \"_0_list_cannot_be_empty_1097\", \"'{0}' list cannot be empty.\"),\n        Type_parameter_list_cannot_be_empty: diag(1098, 1, \"Type_parameter_list_cannot_be_empty_1098\", \"Type parameter list cannot be empty.\"),\n        Type_argument_list_cannot_be_empty: diag(1099, 1, \"Type_argument_list_cannot_be_empty_1099\", \"Type argument list cannot be empty.\"),\n        Invalid_use_of_0_in_strict_mode: diag(1100, 1, \"Invalid_use_of_0_in_strict_mode_1100\", \"Invalid use of '{0}' in strict mode.\"),\n        with_statements_are_not_allowed_in_strict_mode: diag(1101, 1, \"with_statements_are_not_allowed_in_strict_mode_1101\", \"'with' statements are not allowed in strict mode.\"),\n        delete_cannot_be_called_on_an_identifier_in_strict_mode: diag(1102, 1, \"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102\", \"'delete' cannot be called on an identifier in strict mode.\"),\n        for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules: diag(1103, 1, \"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103\", \"'for await' loops are only allowed within async functions and at the top levels of modules.\"),\n        A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement: diag(1104, 1, \"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104\", \"A 'continue' statement can only be used within an enclosing iteration statement.\"),\n        A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement: diag(1105, 1, \"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105\", \"A 'break' statement can only be used within an enclosing iteration or switch statement.\"),\n        The_left_hand_side_of_a_for_of_statement_may_not_be_async: diag(1106, 1, \"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106\", \"The left-hand side of a 'for...of' statement may not be 'async'.\"),\n        Jump_target_cannot_cross_function_boundary: diag(1107, 1, \"Jump_target_cannot_cross_function_boundary_1107\", \"Jump target cannot cross function boundary.\"),\n        A_return_statement_can_only_be_used_within_a_function_body: diag(1108, 1, \"A_return_statement_can_only_be_used_within_a_function_body_1108\", \"A 'return' statement can only be used within a function body.\"),\n        Expression_expected: diag(1109, 1, \"Expression_expected_1109\", \"Expression expected.\"),\n        Type_expected: diag(1110, 1, \"Type_expected_1110\", \"Type expected.\"),\n        A_default_clause_cannot_appear_more_than_once_in_a_switch_statement: diag(1113, 1, \"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113\", \"A 'default' clause cannot appear more than once in a 'switch' statement.\"),\n        Duplicate_label_0: diag(1114, 1, \"Duplicate_label_0_1114\", \"Duplicate label '{0}'.\"),\n        A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement: diag(1115, 1, \"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115\", \"A 'continue' statement can only jump to a label of an enclosing iteration statement.\"),\n        A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement: diag(1116, 1, \"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116\", \"A 'break' statement can only jump to a label of an enclosing statement.\"),\n        An_object_literal_cannot_have_multiple_properties_with_the_same_name: diag(1117, 1, \"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117\", \"An object literal cannot have multiple properties with the same name.\"),\n        An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name: diag(1118, 1, \"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118\", \"An object literal cannot have multiple get/set accessors with the same name.\"),\n        An_object_literal_cannot_have_property_and_accessor_with_the_same_name: diag(1119, 1, \"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119\", \"An object literal cannot have property and accessor with the same name.\"),\n        An_export_assignment_cannot_have_modifiers: diag(1120, 1, \"An_export_assignment_cannot_have_modifiers_1120\", \"An export assignment cannot have modifiers.\"),\n        Octal_literals_are_not_allowed_in_strict_mode: diag(1121, 1, \"Octal_literals_are_not_allowed_in_strict_mode_1121\", \"Octal literals are not allowed in strict mode.\"),\n        Variable_declaration_list_cannot_be_empty: diag(1123, 1, \"Variable_declaration_list_cannot_be_empty_1123\", \"Variable declaration list cannot be empty.\"),\n        Digit_expected: diag(1124, 1, \"Digit_expected_1124\", \"Digit expected.\"),\n        Hexadecimal_digit_expected: diag(1125, 1, \"Hexadecimal_digit_expected_1125\", \"Hexadecimal digit expected.\"),\n        Unexpected_end_of_text: diag(1126, 1, \"Unexpected_end_of_text_1126\", \"Unexpected end of text.\"),\n        Invalid_character: diag(1127, 1, \"Invalid_character_1127\", \"Invalid character.\"),\n        Declaration_or_statement_expected: diag(1128, 1, \"Declaration_or_statement_expected_1128\", \"Declaration or statement expected.\"),\n        Statement_expected: diag(1129, 1, \"Statement_expected_1129\", \"Statement expected.\"),\n        case_or_default_expected: diag(1130, 1, \"case_or_default_expected_1130\", \"'case' or 'default' expected.\"),\n        Property_or_signature_expected: diag(1131, 1, \"Property_or_signature_expected_1131\", \"Property or signature expected.\"),\n        Enum_member_expected: diag(1132, 1, \"Enum_member_expected_1132\", \"Enum member expected.\"),\n        Variable_declaration_expected: diag(1134, 1, \"Variable_declaration_expected_1134\", \"Variable declaration expected.\"),\n        Argument_expression_expected: diag(1135, 1, \"Argument_expression_expected_1135\", \"Argument expression expected.\"),\n        Property_assignment_expected: diag(1136, 1, \"Property_assignment_expected_1136\", \"Property assignment expected.\"),\n        Expression_or_comma_expected: diag(1137, 1, \"Expression_or_comma_expected_1137\", \"Expression or comma expected.\"),\n        Parameter_declaration_expected: diag(1138, 1, \"Parameter_declaration_expected_1138\", \"Parameter declaration expected.\"),\n        Type_parameter_declaration_expected: diag(1139, 1, \"Type_parameter_declaration_expected_1139\", \"Type parameter declaration expected.\"),\n        Type_argument_expected: diag(1140, 1, \"Type_argument_expected_1140\", \"Type argument expected.\"),\n        String_literal_expected: diag(1141, 1, \"String_literal_expected_1141\", \"String literal expected.\"),\n        Line_break_not_permitted_here: diag(1142, 1, \"Line_break_not_permitted_here_1142\", \"Line break not permitted here.\"),\n        or_expected: diag(1144, 1, \"or_expected_1144\", \"'{' or ';' expected.\"),\n        or_JSX_element_expected: diag(1145, 1, \"or_JSX_element_expected_1145\", \"'{' or JSX element expected.\"),\n        Declaration_expected: diag(1146, 1, \"Declaration_expected_1146\", \"Declaration expected.\"),\n        Import_declarations_in_a_namespace_cannot_reference_a_module: diag(1147, 1, \"Import_declarations_in_a_namespace_cannot_reference_a_module_1147\", \"Import declarations in a namespace cannot reference a module.\"),\n        Cannot_use_imports_exports_or_module_augmentations_when_module_is_none: diag(1148, 1, \"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148\", \"Cannot use imports, exports, or module augmentations when '--module' is 'none'.\"),\n        File_name_0_differs_from_already_included_file_name_1_only_in_casing: diag(1149, 1, \"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149\", \"File name '{0}' differs from already included file name '{1}' only in casing.\"),\n        const_declarations_must_be_initialized: diag(1155, 1, \"const_declarations_must_be_initialized_1155\", \"'const' declarations must be initialized.\"),\n        const_declarations_can_only_be_declared_inside_a_block: diag(1156, 1, \"const_declarations_can_only_be_declared_inside_a_block_1156\", \"'const' declarations can only be declared inside a block.\"),\n        let_declarations_can_only_be_declared_inside_a_block: diag(1157, 1, \"let_declarations_can_only_be_declared_inside_a_block_1157\", \"'let' declarations can only be declared inside a block.\"),\n        Unterminated_template_literal: diag(1160, 1, \"Unterminated_template_literal_1160\", \"Unterminated template literal.\"),\n        Unterminated_regular_expression_literal: diag(1161, 1, \"Unterminated_regular_expression_literal_1161\", \"Unterminated regular expression literal.\"),\n        An_object_member_cannot_be_declared_optional: diag(1162, 1, \"An_object_member_cannot_be_declared_optional_1162\", \"An object member cannot be declared optional.\"),\n        A_yield_expression_is_only_allowed_in_a_generator_body: diag(1163, 1, \"A_yield_expression_is_only_allowed_in_a_generator_body_1163\", \"A 'yield' expression is only allowed in a generator body.\"),\n        Computed_property_names_are_not_allowed_in_enums: diag(1164, 1, \"Computed_property_names_are_not_allowed_in_enums_1164\", \"Computed property names are not allowed in enums.\"),\n        A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type: diag(1165, 1, \"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165\", \"A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type.\"),\n        A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type: diag(1166, 1, \"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166\", \"A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type.\"),\n        A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type: diag(1168, 1, \"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168\", \"A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type.\"),\n        A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type: diag(1169, 1, \"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169\", \"A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type.\"),\n        A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type: diag(1170, 1, \"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170\", \"A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type.\"),\n        A_comma_expression_is_not_allowed_in_a_computed_property_name: diag(1171, 1, \"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171\", \"A comma expression is not allowed in a computed property name.\"),\n        extends_clause_already_seen: diag(1172, 1, \"extends_clause_already_seen_1172\", \"'extends' clause already seen.\"),\n        extends_clause_must_precede_implements_clause: diag(1173, 1, \"extends_clause_must_precede_implements_clause_1173\", \"'extends' clause must precede 'implements' clause.\"),\n        Classes_can_only_extend_a_single_class: diag(1174, 1, \"Classes_can_only_extend_a_single_class_1174\", \"Classes can only extend a single class.\"),\n        implements_clause_already_seen: diag(1175, 1, \"implements_clause_already_seen_1175\", \"'implements' clause already seen.\"),\n        Interface_declaration_cannot_have_implements_clause: diag(1176, 1, \"Interface_declaration_cannot_have_implements_clause_1176\", \"Interface declaration cannot have 'implements' clause.\"),\n        Binary_digit_expected: diag(1177, 1, \"Binary_digit_expected_1177\", \"Binary digit expected.\"),\n        Octal_digit_expected: diag(1178, 1, \"Octal_digit_expected_1178\", \"Octal digit expected.\"),\n        Unexpected_token_expected: diag(1179, 1, \"Unexpected_token_expected_1179\", \"Unexpected token. '{' expected.\"),\n        Property_destructuring_pattern_expected: diag(1180, 1, \"Property_destructuring_pattern_expected_1180\", \"Property destructuring pattern expected.\"),\n        Array_element_destructuring_pattern_expected: diag(1181, 1, \"Array_element_destructuring_pattern_expected_1181\", \"Array element destructuring pattern expected.\"),\n        A_destructuring_declaration_must_have_an_initializer: diag(1182, 1, \"A_destructuring_declaration_must_have_an_initializer_1182\", \"A destructuring declaration must have an initializer.\"),\n        An_implementation_cannot_be_declared_in_ambient_contexts: diag(1183, 1, \"An_implementation_cannot_be_declared_in_ambient_contexts_1183\", \"An implementation cannot be declared in ambient contexts.\"),\n        Modifiers_cannot_appear_here: diag(1184, 1, \"Modifiers_cannot_appear_here_1184\", \"Modifiers cannot appear here.\"),\n        Merge_conflict_marker_encountered: diag(1185, 1, \"Merge_conflict_marker_encountered_1185\", \"Merge conflict marker encountered.\"),\n        A_rest_element_cannot_have_an_initializer: diag(1186, 1, \"A_rest_element_cannot_have_an_initializer_1186\", \"A rest element cannot have an initializer.\"),\n        A_parameter_property_may_not_be_declared_using_a_binding_pattern: diag(1187, 1, \"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187\", \"A parameter property may not be declared using a binding pattern.\"),\n        Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement: diag(1188, 1, \"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188\", \"Only a single variable declaration is allowed in a 'for...of' statement.\"),\n        The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer: diag(1189, 1, \"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189\", \"The variable declaration of a 'for...in' statement cannot have an initializer.\"),\n        The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer: diag(1190, 1, \"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190\", \"The variable declaration of a 'for...of' statement cannot have an initializer.\"),\n        An_import_declaration_cannot_have_modifiers: diag(1191, 1, \"An_import_declaration_cannot_have_modifiers_1191\", \"An import declaration cannot have modifiers.\"),\n        Module_0_has_no_default_export: diag(1192, 1, \"Module_0_has_no_default_export_1192\", \"Module '{0}' has no default export.\"),\n        An_export_declaration_cannot_have_modifiers: diag(1193, 1, \"An_export_declaration_cannot_have_modifiers_1193\", \"An export declaration cannot have modifiers.\"),\n        Export_declarations_are_not_permitted_in_a_namespace: diag(1194, 1, \"Export_declarations_are_not_permitted_in_a_namespace_1194\", \"Export declarations are not permitted in a namespace.\"),\n        export_Asterisk_does_not_re_export_a_default: diag(1195, 1, \"export_Asterisk_does_not_re_export_a_default_1195\", \"'export *' does not re-export a default.\"),\n        Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified: diag(1196, 1, \"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196\", \"Catch clause variable type annotation must be 'any' or 'unknown' if specified.\"),\n        Catch_clause_variable_cannot_have_an_initializer: diag(1197, 1, \"Catch_clause_variable_cannot_have_an_initializer_1197\", \"Catch clause variable cannot have an initializer.\"),\n        An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive: diag(1198, 1, \"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198\", \"An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive.\"),\n        Unterminated_Unicode_escape_sequence: diag(1199, 1, \"Unterminated_Unicode_escape_sequence_1199\", \"Unterminated Unicode escape sequence.\"),\n        Line_terminator_not_permitted_before_arrow: diag(1200, 1, \"Line_terminator_not_permitted_before_arrow_1200\", \"Line terminator not permitted before arrow.\"),\n        Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead: diag(1202, 1, \"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202\", `Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead.`),\n        Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead: diag(1203, 1, \"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203\", \"Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead.\"),\n        Re_exporting_a_type_when_0_is_enabled_requires_using_export_type: diag(1205, 1, \"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205\", \"Re-exporting a type when '{0}' is enabled requires using 'export type'.\"),\n        Decorators_are_not_valid_here: diag(1206, 1, \"Decorators_are_not_valid_here_1206\", \"Decorators are not valid here.\"),\n        Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name: diag(1207, 1, \"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207\", \"Decorators cannot be applied to multiple get/set accessors of the same name.\"),\n        Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0: diag(1209, 1, \"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209\", \"Invalid optional chain from new expression. Did you mean to call '{0}()'?\"),\n        Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode: diag(1210, 1, \"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210\", \"Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode.\"),\n        A_class_declaration_without_the_default_modifier_must_have_a_name: diag(1211, 1, \"A_class_declaration_without_the_default_modifier_must_have_a_name_1211\", \"A class declaration without the 'default' modifier must have a name.\"),\n        Identifier_expected_0_is_a_reserved_word_in_strict_mode: diag(1212, 1, \"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212\", \"Identifier expected. '{0}' is a reserved word in strict mode.\"),\n        Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode: diag(1213, 1, \"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213\", \"Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode.\"),\n        Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode: diag(1214, 1, \"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214\", \"Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode.\"),\n        Invalid_use_of_0_Modules_are_automatically_in_strict_mode: diag(1215, 1, \"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215\", \"Invalid use of '{0}'. Modules are automatically in strict mode.\"),\n        Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules: diag(1216, 1, \"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216\", \"Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules.\"),\n        Export_assignment_is_not_supported_when_module_flag_is_system: diag(1218, 1, \"Export_assignment_is_not_supported_when_module_flag_is_system_1218\", \"Export assignment is not supported when '--module' flag is 'system'.\"),\n        Generators_are_not_allowed_in_an_ambient_context: diag(1221, 1, \"Generators_are_not_allowed_in_an_ambient_context_1221\", \"Generators are not allowed in an ambient context.\"),\n        An_overload_signature_cannot_be_declared_as_a_generator: diag(1222, 1, \"An_overload_signature_cannot_be_declared_as_a_generator_1222\", \"An overload signature cannot be declared as a generator.\"),\n        _0_tag_already_specified: diag(1223, 1, \"_0_tag_already_specified_1223\", \"'{0}' tag already specified.\"),\n        Signature_0_must_be_a_type_predicate: diag(1224, 1, \"Signature_0_must_be_a_type_predicate_1224\", \"Signature '{0}' must be a type predicate.\"),\n        Cannot_find_parameter_0: diag(1225, 1, \"Cannot_find_parameter_0_1225\", \"Cannot find parameter '{0}'.\"),\n        Type_predicate_0_is_not_assignable_to_1: diag(1226, 1, \"Type_predicate_0_is_not_assignable_to_1_1226\", \"Type predicate '{0}' is not assignable to '{1}'.\"),\n        Parameter_0_is_not_in_the_same_position_as_parameter_1: diag(1227, 1, \"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227\", \"Parameter '{0}' is not in the same position as parameter '{1}'.\"),\n        A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods: diag(1228, 1, \"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228\", \"A type predicate is only allowed in return type position for functions and methods.\"),\n        A_type_predicate_cannot_reference_a_rest_parameter: diag(1229, 1, \"A_type_predicate_cannot_reference_a_rest_parameter_1229\", \"A type predicate cannot reference a rest parameter.\"),\n        A_type_predicate_cannot_reference_element_0_in_a_binding_pattern: diag(1230, 1, \"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230\", \"A type predicate cannot reference element '{0}' in a binding pattern.\"),\n        An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration: diag(1231, 1, \"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231\", \"An export assignment must be at the top level of a file or module declaration.\"),\n        An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module: diag(1232, 1, \"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232\", \"An import declaration can only be used at the top level of a namespace or module.\"),\n        An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module: diag(1233, 1, \"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233\", \"An export declaration can only be used at the top level of a namespace or module.\"),\n        An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file: diag(1234, 1, \"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234\", \"An ambient module declaration is only allowed at the top level in a file.\"),\n        A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module: diag(1235, 1, \"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235\", \"A namespace declaration is only allowed at the top level of a namespace or module.\"),\n        The_return_type_of_a_property_decorator_function_must_be_either_void_or_any: diag(1236, 1, \"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236\", \"The return type of a property decorator function must be either 'void' or 'any'.\"),\n        The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any: diag(1237, 1, \"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237\", \"The return type of a parameter decorator function must be either 'void' or 'any'.\"),\n        Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression: diag(1238, 1, \"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238\", \"Unable to resolve signature of class decorator when called as an expression.\"),\n        Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression: diag(1239, 1, \"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239\", \"Unable to resolve signature of parameter decorator when called as an expression.\"),\n        Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression: diag(1240, 1, \"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240\", \"Unable to resolve signature of property decorator when called as an expression.\"),\n        Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression: diag(1241, 1, \"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241\", \"Unable to resolve signature of method decorator when called as an expression.\"),\n        abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration: diag(1242, 1, \"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242\", \"'abstract' modifier can only appear on a class, method, or property declaration.\"),\n        _0_modifier_cannot_be_used_with_1_modifier: diag(1243, 1, \"_0_modifier_cannot_be_used_with_1_modifier_1243\", \"'{0}' modifier cannot be used with '{1}' modifier.\"),\n        Abstract_methods_can_only_appear_within_an_abstract_class: diag(1244, 1, \"Abstract_methods_can_only_appear_within_an_abstract_class_1244\", \"Abstract methods can only appear within an abstract class.\"),\n        Method_0_cannot_have_an_implementation_because_it_is_marked_abstract: diag(1245, 1, \"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245\", \"Method '{0}' cannot have an implementation because it is marked abstract.\"),\n        An_interface_property_cannot_have_an_initializer: diag(1246, 1, \"An_interface_property_cannot_have_an_initializer_1246\", \"An interface property cannot have an initializer.\"),\n        A_type_literal_property_cannot_have_an_initializer: diag(1247, 1, \"A_type_literal_property_cannot_have_an_initializer_1247\", \"A type literal property cannot have an initializer.\"),\n        A_class_member_cannot_have_the_0_keyword: diag(1248, 1, \"A_class_member_cannot_have_the_0_keyword_1248\", \"A class member cannot have the '{0}' keyword.\"),\n        A_decorator_can_only_decorate_a_method_implementation_not_an_overload: diag(1249, 1, \"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249\", \"A decorator can only decorate a method implementation, not an overload.\"),\n        Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5: diag(1250, 1, \"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250\", \"Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'.\"),\n        Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode: diag(1251, 1, \"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251\", \"Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode.\"),\n        Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode: diag(1252, 1, \"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252\", \"Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode.\"),\n        A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference: diag(1254, 1, \"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254\", \"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.\"),\n        A_definite_assignment_assertion_is_not_permitted_in_this_context: diag(1255, 1, \"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255\", \"A definite assignment assertion '!' is not permitted in this context.\"),\n        A_required_element_cannot_follow_an_optional_element: diag(1257, 1, \"A_required_element_cannot_follow_an_optional_element_1257\", \"A required element cannot follow an optional element.\"),\n        A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration: diag(1258, 1, \"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258\", \"A default export must be at the top level of a file or module declaration.\"),\n        Module_0_can_only_be_default_imported_using_the_1_flag: diag(1259, 1, \"Module_0_can_only_be_default_imported_using_the_1_flag_1259\", \"Module '{0}' can only be default-imported using the '{1}' flag\"),\n        Keywords_cannot_contain_escape_characters: diag(1260, 1, \"Keywords_cannot_contain_escape_characters_1260\", \"Keywords cannot contain escape characters.\"),\n        Already_included_file_name_0_differs_from_file_name_1_only_in_casing: diag(1261, 1, \"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261\", \"Already included file name '{0}' differs from file name '{1}' only in casing.\"),\n        Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module: diag(1262, 1, \"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262\", \"Identifier expected. '{0}' is a reserved word at the top-level of a module.\"),\n        Declarations_with_initializers_cannot_also_have_definite_assignment_assertions: diag(1263, 1, \"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263\", \"Declarations with initializers cannot also have definite assignment assertions.\"),\n        Declarations_with_definite_assignment_assertions_must_also_have_type_annotations: diag(1264, 1, \"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264\", \"Declarations with definite assignment assertions must also have type annotations.\"),\n        A_rest_element_cannot_follow_another_rest_element: diag(1265, 1, \"A_rest_element_cannot_follow_another_rest_element_1265\", \"A rest element cannot follow another rest element.\"),\n        An_optional_element_cannot_follow_a_rest_element: diag(1266, 1, \"An_optional_element_cannot_follow_a_rest_element_1266\", \"An optional element cannot follow a rest element.\"),\n        Property_0_cannot_have_an_initializer_because_it_is_marked_abstract: diag(1267, 1, \"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267\", \"Property '{0}' cannot have an initializer because it is marked abstract.\"),\n        An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type: diag(1268, 1, \"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268\", \"An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type.\"),\n        Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled: diag(1269, 1, \"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269\", \"Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled.\"),\n        Decorator_function_return_type_0_is_not_assignable_to_type_1: diag(1270, 1, \"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270\", \"Decorator function return type '{0}' is not assignable to type '{1}'.\"),\n        Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any: diag(1271, 1, \"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271\", \"Decorator function return type is '{0}' but is expected to be 'void' or 'any'.\"),\n        A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled: diag(1272, 1, \"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272\", \"A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled.\"),\n        _0_modifier_cannot_appear_on_a_type_parameter: diag(1273, 1, \"_0_modifier_cannot_appear_on_a_type_parameter_1273\", \"'{0}' modifier cannot appear on a type parameter\"),\n        _0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias: diag(1274, 1, \"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274\", \"'{0}' modifier can only appear on a type parameter of a class, interface or type alias\"),\n        accessor_modifier_can_only_appear_on_a_property_declaration: diag(1275, 1, \"accessor_modifier_can_only_appear_on_a_property_declaration_1275\", \"'accessor' modifier can only appear on a property declaration.\"),\n        An_accessor_property_cannot_be_declared_optional: diag(1276, 1, \"An_accessor_property_cannot_be_declared_optional_1276\", \"An 'accessor' property cannot be declared optional.\"),\n        _0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class: diag(1277, 1, \"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277\", \"'{0}' modifier can only appear on a type parameter of a function, method or class\"),\n        The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0: diag(1278, 1, \"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278\", \"The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}.\"),\n        The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0: diag(1279, 1, \"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279\", \"The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}.\"),\n        Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement: diag(1280, 1, \"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280\", \"Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement.\"),\n        Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead: diag(1281, 1, \"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281\", \"Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead.\"),\n        An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type: diag(1282, 1, \"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282\", \"An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type.\"),\n        An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration: diag(1283, 1, \"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283\", \"An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration.\"),\n        An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type: diag(1284, 1, \"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284\", \"An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type.\"),\n        An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration: diag(1285, 1, \"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285\", \"An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration.\"),\n        ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled: diag(1286, 1, \"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286\", \"ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled.\"),\n        A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled: diag(1287, 1, \"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287\", \"A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled.\"),\n        An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled: diag(1288, 1, \"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288\", \"An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled.\"),\n        with_statements_are_not_allowed_in_an_async_function_block: diag(1300, 1, \"with_statements_are_not_allowed_in_an_async_function_block_1300\", \"'with' statements are not allowed in an async function block.\"),\n        await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules: diag(1308, 1, \"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308\", \"'await' expressions are only allowed within async functions and at the top levels of modules.\"),\n        The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level: diag(1309, 1, \"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309\", \"The current file is a CommonJS module and cannot use 'await' at the top level.\"),\n        Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern: diag(1312, 1, \"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312\", \"Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern.\"),\n        The_body_of_an_if_statement_cannot_be_the_empty_statement: diag(1313, 1, \"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313\", \"The body of an 'if' statement cannot be the empty statement.\"),\n        Global_module_exports_may_only_appear_in_module_files: diag(1314, 1, \"Global_module_exports_may_only_appear_in_module_files_1314\", \"Global module exports may only appear in module files.\"),\n        Global_module_exports_may_only_appear_in_declaration_files: diag(1315, 1, \"Global_module_exports_may_only_appear_in_declaration_files_1315\", \"Global module exports may only appear in declaration files.\"),\n        Global_module_exports_may_only_appear_at_top_level: diag(1316, 1, \"Global_module_exports_may_only_appear_at_top_level_1316\", \"Global module exports may only appear at top level.\"),\n        A_parameter_property_cannot_be_declared_using_a_rest_parameter: diag(1317, 1, \"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317\", \"A parameter property cannot be declared using a rest parameter.\"),\n        An_abstract_accessor_cannot_have_an_implementation: diag(1318, 1, \"An_abstract_accessor_cannot_have_an_implementation_1318\", \"An abstract accessor cannot have an implementation.\"),\n        A_default_export_can_only_be_used_in_an_ECMAScript_style_module: diag(1319, 1, \"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319\", \"A default export can only be used in an ECMAScript-style module.\"),\n        Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1320, 1, \"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320\", \"Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member.\"),\n        Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1321, 1, \"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321\", \"Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member.\"),\n        Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1322, 1, \"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322\", \"Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member.\"),\n        Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext: diag(1323, 1, \"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323\", \"Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'.\"),\n        Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext: diag(1324, 1, \"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324\", \"Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'.\"),\n        Argument_of_dynamic_import_cannot_be_spread_element: diag(1325, 1, \"Argument_of_dynamic_import_cannot_be_spread_element_1325\", \"Argument of dynamic import cannot be spread element.\"),\n        This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments: diag(1326, 1, \"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326\", \"This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments.\"),\n        String_literal_with_double_quotes_expected: diag(1327, 1, \"String_literal_with_double_quotes_expected_1327\", \"String literal with double quotes expected.\"),\n        Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal: diag(1328, 1, \"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328\", \"Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal.\"),\n        _0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0: diag(1329, 1, \"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329\", \"'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?\"),\n        A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly: diag(1330, 1, \"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330\", \"A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'.\"),\n        A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly: diag(1331, 1, \"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331\", \"A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'.\"),\n        A_variable_whose_type_is_a_unique_symbol_type_must_be_const: diag(1332, 1, \"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332\", \"A variable whose type is a 'unique symbol' type must be 'const'.\"),\n        unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name: diag(1333, 1, \"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333\", \"'unique symbol' types may not be used on a variable declaration with a binding name.\"),\n        unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement: diag(1334, 1, \"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334\", \"'unique symbol' types are only allowed on variables in a variable statement.\"),\n        unique_symbol_types_are_not_allowed_here: diag(1335, 1, \"unique_symbol_types_are_not_allowed_here_1335\", \"'unique symbol' types are not allowed here.\"),\n        An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead: diag(1337, 1, \"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337\", \"An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead.\"),\n        infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type: diag(1338, 1, \"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338\", \"'infer' declarations are only permitted in the 'extends' clause of a conditional type.\"),\n        Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here: diag(1339, 1, \"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339\", \"Module '{0}' does not refer to a value, but is used as a value here.\"),\n        Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0: diag(1340, 1, \"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340\", \"Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?\"),\n        Class_constructor_may_not_be_an_accessor: diag(1341, 1, \"Class_constructor_may_not_be_an_accessor_1341\", \"Class constructor may not be an accessor.\"),\n        The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext: diag(1343, 1, \"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343\", \"The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'.\"),\n        A_label_is_not_allowed_here: diag(1344, 1, \"A_label_is_not_allowed_here_1344\", \"'A label is not allowed here.\"),\n        An_expression_of_type_void_cannot_be_tested_for_truthiness: diag(1345, 1, \"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345\", \"An expression of type 'void' cannot be tested for truthiness.\"),\n        This_parameter_is_not_allowed_with_use_strict_directive: diag(1346, 1, \"This_parameter_is_not_allowed_with_use_strict_directive_1346\", \"This parameter is not allowed with 'use strict' directive.\"),\n        use_strict_directive_cannot_be_used_with_non_simple_parameter_list: diag(1347, 1, \"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347\", \"'use strict' directive cannot be used with non-simple parameter list.\"),\n        Non_simple_parameter_declared_here: diag(1348, 1, \"Non_simple_parameter_declared_here_1348\", \"Non-simple parameter declared here.\"),\n        use_strict_directive_used_here: diag(1349, 1, \"use_strict_directive_used_here_1349\", \"'use strict' directive used here.\"),\n        Print_the_final_configuration_instead_of_building: diag(1350, 3, \"Print_the_final_configuration_instead_of_building_1350\", \"Print the final configuration instead of building.\"),\n        An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal: diag(1351, 1, \"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351\", \"An identifier or keyword cannot immediately follow a numeric literal.\"),\n        A_bigint_literal_cannot_use_exponential_notation: diag(1352, 1, \"A_bigint_literal_cannot_use_exponential_notation_1352\", \"A bigint literal cannot use exponential notation.\"),\n        A_bigint_literal_must_be_an_integer: diag(1353, 1, \"A_bigint_literal_must_be_an_integer_1353\", \"A bigint literal must be an integer.\"),\n        readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types: diag(1354, 1, \"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354\", \"'readonly' type modifier is only permitted on array and tuple literal types.\"),\n        A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals: diag(1355, 1, \"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355\", \"A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals.\"),\n        Did_you_mean_to_mark_this_function_as_async: diag(1356, 1, \"Did_you_mean_to_mark_this_function_as_async_1356\", \"Did you mean to mark this function as 'async'?\"),\n        An_enum_member_name_must_be_followed_by_a_or: diag(1357, 1, \"An_enum_member_name_must_be_followed_by_a_or_1357\", \"An enum member name must be followed by a ',', '=', or '}'.\"),\n        Tagged_template_expressions_are_not_permitted_in_an_optional_chain: diag(1358, 1, \"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358\", \"Tagged template expressions are not permitted in an optional chain.\"),\n        Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here: diag(1359, 1, \"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359\", \"Identifier expected. '{0}' is a reserved word that cannot be used here.\"),\n        Type_0_does_not_satisfy_the_expected_type_1: diag(1360, 1, \"Type_0_does_not_satisfy_the_expected_type_1_1360\", \"Type '{0}' does not satisfy the expected type '{1}'.\"),\n        _0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type: diag(1361, 1, \"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361\", \"'{0}' cannot be used as a value because it was imported using 'import type'.\"),\n        _0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type: diag(1362, 1, \"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362\", \"'{0}' cannot be used as a value because it was exported using 'export type'.\"),\n        A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both: diag(1363, 1, \"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363\", \"A type-only import can specify a default import or named bindings, but not both.\"),\n        Convert_to_type_only_export: diag(1364, 3, \"Convert_to_type_only_export_1364\", \"Convert to type-only export\"),\n        Convert_all_re_exported_types_to_type_only_exports: diag(1365, 3, \"Convert_all_re_exported_types_to_type_only_exports_1365\", \"Convert all re-exported types to type-only exports\"),\n        Split_into_two_separate_import_declarations: diag(1366, 3, \"Split_into_two_separate_import_declarations_1366\", \"Split into two separate import declarations\"),\n        Split_all_invalid_type_only_imports: diag(1367, 3, \"Split_all_invalid_type_only_imports_1367\", \"Split all invalid type-only imports\"),\n        Class_constructor_may_not_be_a_generator: diag(1368, 1, \"Class_constructor_may_not_be_a_generator_1368\", \"Class constructor may not be a generator.\"),\n        Did_you_mean_0: diag(1369, 3, \"Did_you_mean_0_1369\", \"Did you mean '{0}'?\"),\n        This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error: diag(1371, 1, \"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371\", \"This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'.\"),\n        Convert_to_type_only_import: diag(1373, 3, \"Convert_to_type_only_import_1373\", \"Convert to type-only import\"),\n        Convert_all_imports_not_used_as_a_value_to_type_only_imports: diag(1374, 3, \"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374\", \"Convert all imports not used as a value to type-only imports\"),\n        await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(1375, 1, \"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375\", \"'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module.\"),\n        _0_was_imported_here: diag(1376, 3, \"_0_was_imported_here_1376\", \"'{0}' was imported here.\"),\n        _0_was_exported_here: diag(1377, 3, \"_0_was_exported_here_1377\", \"'{0}' was exported here.\"),\n        Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher: diag(1378, 1, \"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378\", \"Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.\"),\n        An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type: diag(1379, 1, \"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379\", \"An import alias cannot reference a declaration that was exported using 'export type'.\"),\n        An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type: diag(1380, 1, \"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380\", \"An import alias cannot reference a declaration that was imported using 'import type'.\"),\n        Unexpected_token_Did_you_mean_or_rbrace: diag(1381, 1, \"Unexpected_token_Did_you_mean_or_rbrace_1381\", \"Unexpected token. Did you mean `{'}'}` or `&rbrace;`?\"),\n        Unexpected_token_Did_you_mean_or_gt: diag(1382, 1, \"Unexpected_token_Did_you_mean_or_gt_1382\", \"Unexpected token. Did you mean `{'>'}` or `&gt;`?\"),\n        Function_type_notation_must_be_parenthesized_when_used_in_a_union_type: diag(1385, 1, \"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385\", \"Function type notation must be parenthesized when used in a union type.\"),\n        Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type: diag(1386, 1, \"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386\", \"Constructor type notation must be parenthesized when used in a union type.\"),\n        Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type: diag(1387, 1, \"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387\", \"Function type notation must be parenthesized when used in an intersection type.\"),\n        Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type: diag(1388, 1, \"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388\", \"Constructor type notation must be parenthesized when used in an intersection type.\"),\n        _0_is_not_allowed_as_a_variable_declaration_name: diag(1389, 1, \"_0_is_not_allowed_as_a_variable_declaration_name_1389\", \"'{0}' is not allowed as a variable declaration name.\"),\n        _0_is_not_allowed_as_a_parameter_name: diag(1390, 1, \"_0_is_not_allowed_as_a_parameter_name_1390\", \"'{0}' is not allowed as a parameter name.\"),\n        An_import_alias_cannot_use_import_type: diag(1392, 1, \"An_import_alias_cannot_use_import_type_1392\", \"An import alias cannot use 'import type'\"),\n        Imported_via_0_from_file_1: diag(1393, 3, \"Imported_via_0_from_file_1_1393\", \"Imported via {0} from file '{1}'\"),\n        Imported_via_0_from_file_1_with_packageId_2: diag(1394, 3, \"Imported_via_0_from_file_1_with_packageId_2_1394\", \"Imported via {0} from file '{1}' with packageId '{2}'\"),\n        Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions: diag(1395, 3, \"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395\", \"Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions\"),\n        Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions: diag(1396, 3, \"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396\", \"Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions\"),\n        Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions: diag(1397, 3, \"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397\", \"Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions\"),\n        Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions: diag(1398, 3, \"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398\", \"Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions\"),\n        File_is_included_via_import_here: diag(1399, 3, \"File_is_included_via_import_here_1399\", \"File is included via import here.\"),\n        Referenced_via_0_from_file_1: diag(1400, 3, \"Referenced_via_0_from_file_1_1400\", \"Referenced via '{0}' from file '{1}'\"),\n        File_is_included_via_reference_here: diag(1401, 3, \"File_is_included_via_reference_here_1401\", \"File is included via reference here.\"),\n        Type_library_referenced_via_0_from_file_1: diag(1402, 3, \"Type_library_referenced_via_0_from_file_1_1402\", \"Type library referenced via '{0}' from file '{1}'\"),\n        Type_library_referenced_via_0_from_file_1_with_packageId_2: diag(1403, 3, \"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403\", \"Type library referenced via '{0}' from file '{1}' with packageId '{2}'\"),\n        File_is_included_via_type_library_reference_here: diag(1404, 3, \"File_is_included_via_type_library_reference_here_1404\", \"File is included via type library reference here.\"),\n        Library_referenced_via_0_from_file_1: diag(1405, 3, \"Library_referenced_via_0_from_file_1_1405\", \"Library referenced via '{0}' from file '{1}'\"),\n        File_is_included_via_library_reference_here: diag(1406, 3, \"File_is_included_via_library_reference_here_1406\", \"File is included via library reference here.\"),\n        Matched_by_include_pattern_0_in_1: diag(1407, 3, \"Matched_by_include_pattern_0_in_1_1407\", \"Matched by include pattern '{0}' in '{1}'\"),\n        File_is_matched_by_include_pattern_specified_here: diag(1408, 3, \"File_is_matched_by_include_pattern_specified_here_1408\", \"File is matched by include pattern specified here.\"),\n        Part_of_files_list_in_tsconfig_json: diag(1409, 3, \"Part_of_files_list_in_tsconfig_json_1409\", \"Part of 'files' list in tsconfig.json\"),\n        File_is_matched_by_files_list_specified_here: diag(1410, 3, \"File_is_matched_by_files_list_specified_here_1410\", \"File is matched by 'files' list specified here.\"),\n        Output_from_referenced_project_0_included_because_1_specified: diag(1411, 3, \"Output_from_referenced_project_0_included_because_1_specified_1411\", \"Output from referenced project '{0}' included because '{1}' specified\"),\n        Output_from_referenced_project_0_included_because_module_is_specified_as_none: diag(1412, 3, \"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412\", \"Output from referenced project '{0}' included because '--module' is specified as 'none'\"),\n        File_is_output_from_referenced_project_specified_here: diag(1413, 3, \"File_is_output_from_referenced_project_specified_here_1413\", \"File is output from referenced project specified here.\"),\n        Source_from_referenced_project_0_included_because_1_specified: diag(1414, 3, \"Source_from_referenced_project_0_included_because_1_specified_1414\", \"Source from referenced project '{0}' included because '{1}' specified\"),\n        Source_from_referenced_project_0_included_because_module_is_specified_as_none: diag(1415, 3, \"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415\", \"Source from referenced project '{0}' included because '--module' is specified as 'none'\"),\n        File_is_source_from_referenced_project_specified_here: diag(1416, 3, \"File_is_source_from_referenced_project_specified_here_1416\", \"File is source from referenced project specified here.\"),\n        Entry_point_of_type_library_0_specified_in_compilerOptions: diag(1417, 3, \"Entry_point_of_type_library_0_specified_in_compilerOptions_1417\", \"Entry point of type library '{0}' specified in compilerOptions\"),\n        Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1: diag(1418, 3, \"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418\", \"Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'\"),\n        File_is_entry_point_of_type_library_specified_here: diag(1419, 3, \"File_is_entry_point_of_type_library_specified_here_1419\", \"File is entry point of type library specified here.\"),\n        Entry_point_for_implicit_type_library_0: diag(1420, 3, \"Entry_point_for_implicit_type_library_0_1420\", \"Entry point for implicit type library '{0}'\"),\n        Entry_point_for_implicit_type_library_0_with_packageId_1: diag(1421, 3, \"Entry_point_for_implicit_type_library_0_with_packageId_1_1421\", \"Entry point for implicit type library '{0}' with packageId '{1}'\"),\n        Library_0_specified_in_compilerOptions: diag(1422, 3, \"Library_0_specified_in_compilerOptions_1422\", \"Library '{0}' specified in compilerOptions\"),\n        File_is_library_specified_here: diag(1423, 3, \"File_is_library_specified_here_1423\", \"File is library specified here.\"),\n        Default_library: diag(1424, 3, \"Default_library_1424\", \"Default library\"),\n        Default_library_for_target_0: diag(1425, 3, \"Default_library_for_target_0_1425\", \"Default library for target '{0}'\"),\n        File_is_default_library_for_target_specified_here: diag(1426, 3, \"File_is_default_library_for_target_specified_here_1426\", \"File is default library for target specified here.\"),\n        Root_file_specified_for_compilation: diag(1427, 3, \"Root_file_specified_for_compilation_1427\", \"Root file specified for compilation\"),\n        File_is_output_of_project_reference_source_0: diag(1428, 3, \"File_is_output_of_project_reference_source_0_1428\", \"File is output of project reference source '{0}'\"),\n        File_redirects_to_file_0: diag(1429, 3, \"File_redirects_to_file_0_1429\", \"File redirects to file '{0}'\"),\n        The_file_is_in_the_program_because_Colon: diag(1430, 3, \"The_file_is_in_the_program_because_Colon_1430\", \"The file is in the program because:\"),\n        for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(1431, 1, \"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431\", \"'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module.\"),\n        Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher: diag(1432, 1, \"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432\", \"Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.\"),\n        Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters: diag(1433, 1, \"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433\", \"Neither decorators nor modifiers may be applied to 'this' parameters.\"),\n        Unexpected_keyword_or_identifier: diag(1434, 1, \"Unexpected_keyword_or_identifier_1434\", \"Unexpected keyword or identifier.\"),\n        Unknown_keyword_or_identifier_Did_you_mean_0: diag(1435, 1, \"Unknown_keyword_or_identifier_Did_you_mean_0_1435\", \"Unknown keyword or identifier. Did you mean '{0}'?\"),\n        Decorators_must_precede_the_name_and_all_keywords_of_property_declarations: diag(1436, 1, \"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436\", \"Decorators must precede the name and all keywords of property declarations.\"),\n        Namespace_must_be_given_a_name: diag(1437, 1, \"Namespace_must_be_given_a_name_1437\", \"Namespace must be given a name.\"),\n        Interface_must_be_given_a_name: diag(1438, 1, \"Interface_must_be_given_a_name_1438\", \"Interface must be given a name.\"),\n        Type_alias_must_be_given_a_name: diag(1439, 1, \"Type_alias_must_be_given_a_name_1439\", \"Type alias must be given a name.\"),\n        Variable_declaration_not_allowed_at_this_location: diag(1440, 1, \"Variable_declaration_not_allowed_at_this_location_1440\", \"Variable declaration not allowed at this location.\"),\n        Cannot_start_a_function_call_in_a_type_annotation: diag(1441, 1, \"Cannot_start_a_function_call_in_a_type_annotation_1441\", \"Cannot start a function call in a type annotation.\"),\n        Expected_for_property_initializer: diag(1442, 1, \"Expected_for_property_initializer_1442\", \"Expected '=' for property initializer.\"),\n        Module_declaration_names_may_only_use_or_quoted_strings: diag(1443, 1, \"Module_declaration_names_may_only_use_or_quoted_strings_1443\", `Module declaration names may only use ' or \" quoted strings.`),\n        _0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled: diag(1444, 1, \"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444\", \"'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled.\"),\n        _0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled: diag(1446, 1, \"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446\", \"'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled.\"),\n        _0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled: diag(1448, 1, \"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448\", \"'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled.\"),\n        Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed: diag(1449, 3, \"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449\", \"Preserve unused imported values in the JavaScript output that would otherwise be removed.\"),\n        Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments: diag(1450, 3, \"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450\", \"Dynamic imports can only accept a module specifier and an optional assertion as arguments\"),\n        Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression: diag(1451, 1, \"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451\", \"Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression\"),\n        resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext: diag(1452, 1, \"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452\", \"'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`.\"),\n        resolution_mode_should_be_either_require_or_import: diag(1453, 1, \"resolution_mode_should_be_either_require_or_import_1453\", \"`resolution-mode` should be either `require` or `import`.\"),\n        resolution_mode_can_only_be_set_for_type_only_imports: diag(1454, 1, \"resolution_mode_can_only_be_set_for_type_only_imports_1454\", \"`resolution-mode` can only be set for type-only imports.\"),\n        resolution_mode_is_the_only_valid_key_for_type_import_assertions: diag(1455, 1, \"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455\", \"`resolution-mode` is the only valid key for type import assertions.\"),\n        Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require: diag(1456, 1, \"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456\", \"Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`.\"),\n        Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk: diag(1457, 3, \"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457\", \"Matched by default include pattern '**/*'\"),\n        File_is_ECMAScript_module_because_0_has_field_type_with_value_module: diag(1458, 3, \"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458\", `File is ECMAScript module because '{0}' has field \"type\" with value \"module\"`),\n        File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module: diag(1459, 3, \"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459\", `File is CommonJS module because '{0}' has field \"type\" whose value is not \"module\"`),\n        File_is_CommonJS_module_because_0_does_not_have_field_type: diag(1460, 3, \"File_is_CommonJS_module_because_0_does_not_have_field_type_1460\", `File is CommonJS module because '{0}' does not have field \"type\"`),\n        File_is_CommonJS_module_because_package_json_was_not_found: diag(1461, 3, \"File_is_CommonJS_module_because_package_json_was_not_found_1461\", \"File is CommonJS module because 'package.json' was not found\"),\n        The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output: diag(1470, 1, \"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470\", \"The 'import.meta' meta-property is not allowed in files which will build into CommonJS output.\"),\n        Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead: diag(1471, 1, \"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471\", \"Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead.\"),\n        catch_or_finally_expected: diag(1472, 1, \"catch_or_finally_expected_1472\", \"'catch' or 'finally' expected.\"),\n        An_import_declaration_can_only_be_used_at_the_top_level_of_a_module: diag(1473, 1, \"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473\", \"An import declaration can only be used at the top level of a module.\"),\n        An_export_declaration_can_only_be_used_at_the_top_level_of_a_module: diag(1474, 1, \"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474\", \"An export declaration can only be used at the top level of a module.\"),\n        Control_what_method_is_used_to_detect_module_format_JS_files: diag(1475, 3, \"Control_what_method_is_used_to_detect_module_format_JS_files_1475\", \"Control what method is used to detect module-format JS files.\"),\n        auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules: diag(1476, 3, \"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476\", '\"auto\": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),\n        An_instantiation_expression_cannot_be_followed_by_a_property_access: diag(1477, 1, \"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477\", \"An instantiation expression cannot be followed by a property access.\"),\n        Identifier_or_string_literal_expected: diag(1478, 1, \"Identifier_or_string_literal_expected_1478\", \"Identifier or string literal expected.\"),\n        The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead: diag(1479, 1, \"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479\", `The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"{0}\")' call instead.`),\n        To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module: diag(1480, 3, \"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480\", 'To convert this file to an ECMAScript module, change its file extension to \\'{0}\\' or create a local package.json file with `{ \"type\": \"module\" }`.'),\n        To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1: diag(1481, 3, \"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481\", `To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \\`\"type\": \"module\"\\` to '{1}'.`),\n        To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0: diag(1482, 3, \"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482\", 'To convert this file to an ECMAScript module, add the field `\"type\": \"module\"` to \\'{0}\\'.'),\n        To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module: diag(1483, 3, \"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483\", 'To convert this file to an ECMAScript module, create a local package.json file with `{ \"type\": \"module\" }`.'),\n        _0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled: diag(1484, 1, \"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484\", \"'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.\"),\n        _0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled: diag(1485, 1, \"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485\", \"'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.\"),\n        Decorator_used_before_export_here: diag(1486, 1, \"Decorator_used_before_export_here_1486\", \"Decorator used before 'export' here.\"),\n        The_types_of_0_are_incompatible_between_these_types: diag(2200, 1, \"The_types_of_0_are_incompatible_between_these_types_2200\", \"The types of '{0}' are incompatible between these types.\"),\n        The_types_returned_by_0_are_incompatible_between_these_types: diag(2201, 1, \"The_types_returned_by_0_are_incompatible_between_these_types_2201\", \"The types returned by '{0}' are incompatible between these types.\"),\n        Call_signature_return_types_0_and_1_are_incompatible: diag(2202, 1, \"Call_signature_return_types_0_and_1_are_incompatible_2202\", \"Call signature return types '{0}' and '{1}' are incompatible.\", void 0, true),\n        Construct_signature_return_types_0_and_1_are_incompatible: diag(2203, 1, \"Construct_signature_return_types_0_and_1_are_incompatible_2203\", \"Construct signature return types '{0}' and '{1}' are incompatible.\", void 0, true),\n        Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1: diag(2204, 1, \"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204\", \"Call signatures with no arguments have incompatible return types '{0}' and '{1}'.\", void 0, true),\n        Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1: diag(2205, 1, \"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205\", \"Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.\", void 0, true),\n        The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement: diag(2206, 1, \"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206\", \"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.\"),\n        The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement: diag(2207, 1, \"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207\", \"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.\"),\n        This_type_parameter_might_need_an_extends_0_constraint: diag(2208, 1, \"This_type_parameter_might_need_an_extends_0_constraint_2208\", \"This type parameter might need an `extends {0}` constraint.\"),\n        The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate: diag(2209, 1, \"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209\", \"The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate.\"),\n        The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate: diag(2210, 1, \"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210\", \"The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate.\"),\n        Add_extends_constraint: diag(2211, 3, \"Add_extends_constraint_2211\", \"Add `extends` constraint.\"),\n        Add_extends_constraint_to_all_type_parameters: diag(2212, 3, \"Add_extends_constraint_to_all_type_parameters_2212\", \"Add `extends` constraint to all type parameters\"),\n        Duplicate_identifier_0: diag(2300, 1, \"Duplicate_identifier_0_2300\", \"Duplicate identifier '{0}'.\"),\n        Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: diag(2301, 1, \"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301\", \"Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor.\"),\n        Static_members_cannot_reference_class_type_parameters: diag(2302, 1, \"Static_members_cannot_reference_class_type_parameters_2302\", \"Static members cannot reference class type parameters.\"),\n        Circular_definition_of_import_alias_0: diag(2303, 1, \"Circular_definition_of_import_alias_0_2303\", \"Circular definition of import alias '{0}'.\"),\n        Cannot_find_name_0: diag(2304, 1, \"Cannot_find_name_0_2304\", \"Cannot find name '{0}'.\"),\n        Module_0_has_no_exported_member_1: diag(2305, 1, \"Module_0_has_no_exported_member_1_2305\", \"Module '{0}' has no exported member '{1}'.\"),\n        File_0_is_not_a_module: diag(2306, 1, \"File_0_is_not_a_module_2306\", \"File '{0}' is not a module.\"),\n        Cannot_find_module_0_or_its_corresponding_type_declarations: diag(2307, 1, \"Cannot_find_module_0_or_its_corresponding_type_declarations_2307\", \"Cannot find module '{0}' or its corresponding type declarations.\"),\n        Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity: diag(2308, 1, \"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308\", \"Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity.\"),\n        An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements: diag(2309, 1, \"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309\", \"An export assignment cannot be used in a module with other exported elements.\"),\n        Type_0_recursively_references_itself_as_a_base_type: diag(2310, 1, \"Type_0_recursively_references_itself_as_a_base_type_2310\", \"Type '{0}' recursively references itself as a base type.\"),\n        Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function: diag(2311, 1, \"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311\", \"Cannot find name '{0}'. Did you mean to write this in an async function?\"),\n        An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members: diag(2312, 1, \"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312\", \"An interface can only extend an object type or intersection of object types with statically known members.\"),\n        Type_parameter_0_has_a_circular_constraint: diag(2313, 1, \"Type_parameter_0_has_a_circular_constraint_2313\", \"Type parameter '{0}' has a circular constraint.\"),\n        Generic_type_0_requires_1_type_argument_s: diag(2314, 1, \"Generic_type_0_requires_1_type_argument_s_2314\", \"Generic type '{0}' requires {1} type argument(s).\"),\n        Type_0_is_not_generic: diag(2315, 1, \"Type_0_is_not_generic_2315\", \"Type '{0}' is not generic.\"),\n        Global_type_0_must_be_a_class_or_interface_type: diag(2316, 1, \"Global_type_0_must_be_a_class_or_interface_type_2316\", \"Global type '{0}' must be a class or interface type.\"),\n        Global_type_0_must_have_1_type_parameter_s: diag(2317, 1, \"Global_type_0_must_have_1_type_parameter_s_2317\", \"Global type '{0}' must have {1} type parameter(s).\"),\n        Cannot_find_global_type_0: diag(2318, 1, \"Cannot_find_global_type_0_2318\", \"Cannot find global type '{0}'.\"),\n        Named_property_0_of_types_1_and_2_are_not_identical: diag(2319, 1, \"Named_property_0_of_types_1_and_2_are_not_identical_2319\", \"Named property '{0}' of types '{1}' and '{2}' are not identical.\"),\n        Interface_0_cannot_simultaneously_extend_types_1_and_2: diag(2320, 1, \"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320\", \"Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'.\"),\n        Excessive_stack_depth_comparing_types_0_and_1: diag(2321, 1, \"Excessive_stack_depth_comparing_types_0_and_1_2321\", \"Excessive stack depth comparing types '{0}' and '{1}'.\"),\n        Type_0_is_not_assignable_to_type_1: diag(2322, 1, \"Type_0_is_not_assignable_to_type_1_2322\", \"Type '{0}' is not assignable to type '{1}'.\"),\n        Cannot_redeclare_exported_variable_0: diag(2323, 1, \"Cannot_redeclare_exported_variable_0_2323\", \"Cannot redeclare exported variable '{0}'.\"),\n        Property_0_is_missing_in_type_1: diag(2324, 1, \"Property_0_is_missing_in_type_1_2324\", \"Property '{0}' is missing in type '{1}'.\"),\n        Property_0_is_private_in_type_1_but_not_in_type_2: diag(2325, 1, \"Property_0_is_private_in_type_1_but_not_in_type_2_2325\", \"Property '{0}' is private in type '{1}' but not in type '{2}'.\"),\n        Types_of_property_0_are_incompatible: diag(2326, 1, \"Types_of_property_0_are_incompatible_2326\", \"Types of property '{0}' are incompatible.\"),\n        Property_0_is_optional_in_type_1_but_required_in_type_2: diag(2327, 1, \"Property_0_is_optional_in_type_1_but_required_in_type_2_2327\", \"Property '{0}' is optional in type '{1}' but required in type '{2}'.\"),\n        Types_of_parameters_0_and_1_are_incompatible: diag(2328, 1, \"Types_of_parameters_0_and_1_are_incompatible_2328\", \"Types of parameters '{0}' and '{1}' are incompatible.\"),\n        Index_signature_for_type_0_is_missing_in_type_1: diag(2329, 1, \"Index_signature_for_type_0_is_missing_in_type_1_2329\", \"Index signature for type '{0}' is missing in type '{1}'.\"),\n        _0_and_1_index_signatures_are_incompatible: diag(2330, 1, \"_0_and_1_index_signatures_are_incompatible_2330\", \"'{0}' and '{1}' index signatures are incompatible.\"),\n        this_cannot_be_referenced_in_a_module_or_namespace_body: diag(2331, 1, \"this_cannot_be_referenced_in_a_module_or_namespace_body_2331\", \"'this' cannot be referenced in a module or namespace body.\"),\n        this_cannot_be_referenced_in_current_location: diag(2332, 1, \"this_cannot_be_referenced_in_current_location_2332\", \"'this' cannot be referenced in current location.\"),\n        this_cannot_be_referenced_in_constructor_arguments: diag(2333, 1, \"this_cannot_be_referenced_in_constructor_arguments_2333\", \"'this' cannot be referenced in constructor arguments.\"),\n        this_cannot_be_referenced_in_a_static_property_initializer: diag(2334, 1, \"this_cannot_be_referenced_in_a_static_property_initializer_2334\", \"'this' cannot be referenced in a static property initializer.\"),\n        super_can_only_be_referenced_in_a_derived_class: diag(2335, 1, \"super_can_only_be_referenced_in_a_derived_class_2335\", \"'super' can only be referenced in a derived class.\"),\n        super_cannot_be_referenced_in_constructor_arguments: diag(2336, 1, \"super_cannot_be_referenced_in_constructor_arguments_2336\", \"'super' cannot be referenced in constructor arguments.\"),\n        Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors: diag(2337, 1, \"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337\", \"Super calls are not permitted outside constructors or in nested functions inside constructors.\"),\n        super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class: diag(2338, 1, \"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338\", \"'super' property access is permitted only in a constructor, member function, or member accessor of a derived class.\"),\n        Property_0_does_not_exist_on_type_1: diag(2339, 1, \"Property_0_does_not_exist_on_type_1_2339\", \"Property '{0}' does not exist on type '{1}'.\"),\n        Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword: diag(2340, 1, \"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340\", \"Only public and protected methods of the base class are accessible via the 'super' keyword.\"),\n        Property_0_is_private_and_only_accessible_within_class_1: diag(2341, 1, \"Property_0_is_private_and_only_accessible_within_class_1_2341\", \"Property '{0}' is private and only accessible within class '{1}'.\"),\n        This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0: diag(2343, 1, \"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343\", \"This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'.\"),\n        Type_0_does_not_satisfy_the_constraint_1: diag(2344, 1, \"Type_0_does_not_satisfy_the_constraint_1_2344\", \"Type '{0}' does not satisfy the constraint '{1}'.\"),\n        Argument_of_type_0_is_not_assignable_to_parameter_of_type_1: diag(2345, 1, \"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345\", \"Argument of type '{0}' is not assignable to parameter of type '{1}'.\"),\n        Call_target_does_not_contain_any_signatures: diag(2346, 1, \"Call_target_does_not_contain_any_signatures_2346\", \"Call target does not contain any signatures.\"),\n        Untyped_function_calls_may_not_accept_type_arguments: diag(2347, 1, \"Untyped_function_calls_may_not_accept_type_arguments_2347\", \"Untyped function calls may not accept type arguments.\"),\n        Value_of_type_0_is_not_callable_Did_you_mean_to_include_new: diag(2348, 1, \"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348\", \"Value of type '{0}' is not callable. Did you mean to include 'new'?\"),\n        This_expression_is_not_callable: diag(2349, 1, \"This_expression_is_not_callable_2349\", \"This expression is not callable.\"),\n        Only_a_void_function_can_be_called_with_the_new_keyword: diag(2350, 1, \"Only_a_void_function_can_be_called_with_the_new_keyword_2350\", \"Only a void function can be called with the 'new' keyword.\"),\n        This_expression_is_not_constructable: diag(2351, 1, \"This_expression_is_not_constructable_2351\", \"This expression is not constructable.\"),\n        Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first: diag(2352, 1, \"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352\", \"Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.\"),\n        Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1: diag(2353, 1, \"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353\", \"Object literal may only specify known properties, and '{0}' does not exist in type '{1}'.\"),\n        This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found: diag(2354, 1, \"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354\", \"This syntax requires an imported helper but module '{0}' cannot be found.\"),\n        A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value: diag(2355, 1, \"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355\", \"A function whose declared type is neither 'void' nor 'any' must return a value.\"),\n        An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type: diag(2356, 1, \"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356\", \"An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type.\"),\n        The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access: diag(2357, 1, \"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357\", \"The operand of an increment or decrement operator must be a variable or a property access.\"),\n        The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter: diag(2358, 1, \"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358\", \"The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter.\"),\n        The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type: diag(2359, 1, \"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359\", \"The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type.\"),\n        The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type: diag(2362, 1, \"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362\", \"The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.\"),\n        The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type: diag(2363, 1, \"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363\", \"The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.\"),\n        The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access: diag(2364, 1, \"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364\", \"The left-hand side of an assignment expression must be a variable or a property access.\"),\n        Operator_0_cannot_be_applied_to_types_1_and_2: diag(2365, 1, \"Operator_0_cannot_be_applied_to_types_1_and_2_2365\", \"Operator '{0}' cannot be applied to types '{1}' and '{2}'.\"),\n        Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined: diag(2366, 1, \"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366\", \"Function lacks ending return statement and return type does not include 'undefined'.\"),\n        This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap: diag(2367, 1, \"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367\", \"This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap.\"),\n        Type_parameter_name_cannot_be_0: diag(2368, 1, \"Type_parameter_name_cannot_be_0_2368\", \"Type parameter name cannot be '{0}'.\"),\n        A_parameter_property_is_only_allowed_in_a_constructor_implementation: diag(2369, 1, \"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369\", \"A parameter property is only allowed in a constructor implementation.\"),\n        A_rest_parameter_must_be_of_an_array_type: diag(2370, 1, \"A_rest_parameter_must_be_of_an_array_type_2370\", \"A rest parameter must be of an array type.\"),\n        A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation: diag(2371, 1, \"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371\", \"A parameter initializer is only allowed in a function or constructor implementation.\"),\n        Parameter_0_cannot_reference_itself: diag(2372, 1, \"Parameter_0_cannot_reference_itself_2372\", \"Parameter '{0}' cannot reference itself.\"),\n        Parameter_0_cannot_reference_identifier_1_declared_after_it: diag(2373, 1, \"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373\", \"Parameter '{0}' cannot reference identifier '{1}' declared after it.\"),\n        Duplicate_index_signature_for_type_0: diag(2374, 1, \"Duplicate_index_signature_for_type_0_2374\", \"Duplicate index signature for type '{0}'.\"),\n        Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties: diag(2375, 1, \"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375\", \"Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.\"),\n        A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers: diag(2376, 1, \"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376\", \"A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers.\"),\n        Constructors_for_derived_classes_must_contain_a_super_call: diag(2377, 1, \"Constructors_for_derived_classes_must_contain_a_super_call_2377\", \"Constructors for derived classes must contain a 'super' call.\"),\n        A_get_accessor_must_return_a_value: diag(2378, 1, \"A_get_accessor_must_return_a_value_2378\", \"A 'get' accessor must return a value.\"),\n        Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties: diag(2379, 1, \"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379\", \"Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.\"),\n        The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type: diag(2380, 1, \"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380\", \"The return type of a 'get' accessor must be assignable to its 'set' accessor type\"),\n        Overload_signatures_must_all_be_exported_or_non_exported: diag(2383, 1, \"Overload_signatures_must_all_be_exported_or_non_exported_2383\", \"Overload signatures must all be exported or non-exported.\"),\n        Overload_signatures_must_all_be_ambient_or_non_ambient: diag(2384, 1, \"Overload_signatures_must_all_be_ambient_or_non_ambient_2384\", \"Overload signatures must all be ambient or non-ambient.\"),\n        Overload_signatures_must_all_be_public_private_or_protected: diag(2385, 1, \"Overload_signatures_must_all_be_public_private_or_protected_2385\", \"Overload signatures must all be public, private or protected.\"),\n        Overload_signatures_must_all_be_optional_or_required: diag(2386, 1, \"Overload_signatures_must_all_be_optional_or_required_2386\", \"Overload signatures must all be optional or required.\"),\n        Function_overload_must_be_static: diag(2387, 1, \"Function_overload_must_be_static_2387\", \"Function overload must be static.\"),\n        Function_overload_must_not_be_static: diag(2388, 1, \"Function_overload_must_not_be_static_2388\", \"Function overload must not be static.\"),\n        Function_implementation_name_must_be_0: diag(2389, 1, \"Function_implementation_name_must_be_0_2389\", \"Function implementation name must be '{0}'.\"),\n        Constructor_implementation_is_missing: diag(2390, 1, \"Constructor_implementation_is_missing_2390\", \"Constructor implementation is missing.\"),\n        Function_implementation_is_missing_or_not_immediately_following_the_declaration: diag(2391, 1, \"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391\", \"Function implementation is missing or not immediately following the declaration.\"),\n        Multiple_constructor_implementations_are_not_allowed: diag(2392, 1, \"Multiple_constructor_implementations_are_not_allowed_2392\", \"Multiple constructor implementations are not allowed.\"),\n        Duplicate_function_implementation: diag(2393, 1, \"Duplicate_function_implementation_2393\", \"Duplicate function implementation.\"),\n        This_overload_signature_is_not_compatible_with_its_implementation_signature: diag(2394, 1, \"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394\", \"This overload signature is not compatible with its implementation signature.\"),\n        Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local: diag(2395, 1, \"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395\", \"Individual declarations in merged declaration '{0}' must be all exported or all local.\"),\n        Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters: diag(2396, 1, \"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396\", \"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.\"),\n        Declaration_name_conflicts_with_built_in_global_identifier_0: diag(2397, 1, \"Declaration_name_conflicts_with_built_in_global_identifier_0_2397\", \"Declaration name conflicts with built-in global identifier '{0}'.\"),\n        constructor_cannot_be_used_as_a_parameter_property_name: diag(2398, 1, \"constructor_cannot_be_used_as_a_parameter_property_name_2398\", \"'constructor' cannot be used as a parameter property name.\"),\n        Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference: diag(2399, 1, \"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399\", \"Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference.\"),\n        Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference: diag(2400, 1, \"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400\", \"Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference.\"),\n        A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers: diag(2401, 1, \"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401\", \"A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers.\"),\n        Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference: diag(2402, 1, \"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402\", \"Expression resolves to '_super' that compiler uses to capture base class reference.\"),\n        Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2: diag(2403, 1, \"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403\", \"Subsequent variable declarations must have the same type.  Variable '{0}' must be of type '{1}', but here has type '{2}'.\"),\n        The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation: diag(2404, 1, \"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404\", \"The left-hand side of a 'for...in' statement cannot use a type annotation.\"),\n        The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any: diag(2405, 1, \"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405\", \"The left-hand side of a 'for...in' statement must be of type 'string' or 'any'.\"),\n        The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access: diag(2406, 1, \"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406\", \"The left-hand side of a 'for...in' statement must be a variable or a property access.\"),\n        The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0: diag(2407, 1, \"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407\", \"The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'.\"),\n        Setters_cannot_return_a_value: diag(2408, 1, \"Setters_cannot_return_a_value_2408\", \"Setters cannot return a value.\"),\n        Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class: diag(2409, 1, \"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409\", \"Return type of constructor signature must be assignable to the instance type of the class.\"),\n        The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any: diag(2410, 1, \"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410\", \"The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'.\"),\n        Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target: diag(2412, 1, \"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412\", \"Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target.\"),\n        Property_0_of_type_1_is_not_assignable_to_2_index_type_3: diag(2411, 1, \"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411\", \"Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'.\"),\n        _0_index_type_1_is_not_assignable_to_2_index_type_3: diag(2413, 1, \"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413\", \"'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'.\"),\n        Class_name_cannot_be_0: diag(2414, 1, \"Class_name_cannot_be_0_2414\", \"Class name cannot be '{0}'.\"),\n        Class_0_incorrectly_extends_base_class_1: diag(2415, 1, \"Class_0_incorrectly_extends_base_class_1_2415\", \"Class '{0}' incorrectly extends base class '{1}'.\"),\n        Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2: diag(2416, 1, \"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416\", \"Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'.\"),\n        Class_static_side_0_incorrectly_extends_base_class_static_side_1: diag(2417, 1, \"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417\", \"Class static side '{0}' incorrectly extends base class static side '{1}'.\"),\n        Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1: diag(2418, 1, \"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418\", \"Type of computed property's value is '{0}', which is not assignable to type '{1}'.\"),\n        Types_of_construct_signatures_are_incompatible: diag(2419, 1, \"Types_of_construct_signatures_are_incompatible_2419\", \"Types of construct signatures are incompatible.\"),\n        Class_0_incorrectly_implements_interface_1: diag(2420, 1, \"Class_0_incorrectly_implements_interface_1_2420\", \"Class '{0}' incorrectly implements interface '{1}'.\"),\n        A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members: diag(2422, 1, \"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422\", \"A class can only implement an object type or intersection of object types with statically known members.\"),\n        Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor: diag(2423, 1, \"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423\", \"Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor.\"),\n        Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function: diag(2425, 1, \"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425\", \"Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function.\"),\n        Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function: diag(2426, 1, \"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426\", \"Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function.\"),\n        Interface_name_cannot_be_0: diag(2427, 1, \"Interface_name_cannot_be_0_2427\", \"Interface name cannot be '{0}'.\"),\n        All_declarations_of_0_must_have_identical_type_parameters: diag(2428, 1, \"All_declarations_of_0_must_have_identical_type_parameters_2428\", \"All declarations of '{0}' must have identical type parameters.\"),\n        Interface_0_incorrectly_extends_interface_1: diag(2430, 1, \"Interface_0_incorrectly_extends_interface_1_2430\", \"Interface '{0}' incorrectly extends interface '{1}'.\"),\n        Enum_name_cannot_be_0: diag(2431, 1, \"Enum_name_cannot_be_0_2431\", \"Enum name cannot be '{0}'.\"),\n        In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element: diag(2432, 1, \"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432\", \"In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element.\"),\n        A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged: diag(2433, 1, \"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433\", \"A namespace declaration cannot be in a different file from a class or function with which it is merged.\"),\n        A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged: diag(2434, 1, \"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434\", \"A namespace declaration cannot be located prior to a class or function with which it is merged.\"),\n        Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces: diag(2435, 1, \"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435\", \"Ambient modules cannot be nested in other modules or namespaces.\"),\n        Ambient_module_declaration_cannot_specify_relative_module_name: diag(2436, 1, \"Ambient_module_declaration_cannot_specify_relative_module_name_2436\", \"Ambient module declaration cannot specify relative module name.\"),\n        Module_0_is_hidden_by_a_local_declaration_with_the_same_name: diag(2437, 1, \"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437\", \"Module '{0}' is hidden by a local declaration with the same name.\"),\n        Import_name_cannot_be_0: diag(2438, 1, \"Import_name_cannot_be_0_2438\", \"Import name cannot be '{0}'.\"),\n        Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name: diag(2439, 1, \"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439\", \"Import or export declaration in an ambient module declaration cannot reference module through relative module name.\"),\n        Import_declaration_conflicts_with_local_declaration_of_0: diag(2440, 1, \"Import_declaration_conflicts_with_local_declaration_of_0_2440\", \"Import declaration conflicts with local declaration of '{0}'.\"),\n        Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module: diag(2441, 1, \"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441\", \"Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module.\"),\n        Types_have_separate_declarations_of_a_private_property_0: diag(2442, 1, \"Types_have_separate_declarations_of_a_private_property_0_2442\", \"Types have separate declarations of a private property '{0}'.\"),\n        Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2: diag(2443, 1, \"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443\", \"Property '{0}' is protected but type '{1}' is not a class derived from '{2}'.\"),\n        Property_0_is_protected_in_type_1_but_public_in_type_2: diag(2444, 1, \"Property_0_is_protected_in_type_1_but_public_in_type_2_2444\", \"Property '{0}' is protected in type '{1}' but public in type '{2}'.\"),\n        Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses: diag(2445, 1, \"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445\", \"Property '{0}' is protected and only accessible within class '{1}' and its subclasses.\"),\n        Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2: diag(2446, 1, \"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446\", \"Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'.\"),\n        The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead: diag(2447, 1, \"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447\", \"The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead.\"),\n        Block_scoped_variable_0_used_before_its_declaration: diag(2448, 1, \"Block_scoped_variable_0_used_before_its_declaration_2448\", \"Block-scoped variable '{0}' used before its declaration.\"),\n        Class_0_used_before_its_declaration: diag(2449, 1, \"Class_0_used_before_its_declaration_2449\", \"Class '{0}' used before its declaration.\"),\n        Enum_0_used_before_its_declaration: diag(2450, 1, \"Enum_0_used_before_its_declaration_2450\", \"Enum '{0}' used before its declaration.\"),\n        Cannot_redeclare_block_scoped_variable_0: diag(2451, 1, \"Cannot_redeclare_block_scoped_variable_0_2451\", \"Cannot redeclare block-scoped variable '{0}'.\"),\n        An_enum_member_cannot_have_a_numeric_name: diag(2452, 1, \"An_enum_member_cannot_have_a_numeric_name_2452\", \"An enum member cannot have a numeric name.\"),\n        Variable_0_is_used_before_being_assigned: diag(2454, 1, \"Variable_0_is_used_before_being_assigned_2454\", \"Variable '{0}' is used before being assigned.\"),\n        Type_alias_0_circularly_references_itself: diag(2456, 1, \"Type_alias_0_circularly_references_itself_2456\", \"Type alias '{0}' circularly references itself.\"),\n        Type_alias_name_cannot_be_0: diag(2457, 1, \"Type_alias_name_cannot_be_0_2457\", \"Type alias name cannot be '{0}'.\"),\n        An_AMD_module_cannot_have_multiple_name_assignments: diag(2458, 1, \"An_AMD_module_cannot_have_multiple_name_assignments_2458\", \"An AMD module cannot have multiple name assignments.\"),\n        Module_0_declares_1_locally_but_it_is_not_exported: diag(2459, 1, \"Module_0_declares_1_locally_but_it_is_not_exported_2459\", \"Module '{0}' declares '{1}' locally, but it is not exported.\"),\n        Module_0_declares_1_locally_but_it_is_exported_as_2: diag(2460, 1, \"Module_0_declares_1_locally_but_it_is_exported_as_2_2460\", \"Module '{0}' declares '{1}' locally, but it is exported as '{2}'.\"),\n        Type_0_is_not_an_array_type: diag(2461, 1, \"Type_0_is_not_an_array_type_2461\", \"Type '{0}' is not an array type.\"),\n        A_rest_element_must_be_last_in_a_destructuring_pattern: diag(2462, 1, \"A_rest_element_must_be_last_in_a_destructuring_pattern_2462\", \"A rest element must be last in a destructuring pattern.\"),\n        A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature: diag(2463, 1, \"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463\", \"A binding pattern parameter cannot be optional in an implementation signature.\"),\n        A_computed_property_name_must_be_of_type_string_number_symbol_or_any: diag(2464, 1, \"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464\", \"A computed property name must be of type 'string', 'number', 'symbol', or 'any'.\"),\n        this_cannot_be_referenced_in_a_computed_property_name: diag(2465, 1, \"this_cannot_be_referenced_in_a_computed_property_name_2465\", \"'this' cannot be referenced in a computed property name.\"),\n        super_cannot_be_referenced_in_a_computed_property_name: diag(2466, 1, \"super_cannot_be_referenced_in_a_computed_property_name_2466\", \"'super' cannot be referenced in a computed property name.\"),\n        A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type: diag(2467, 1, \"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467\", \"A computed property name cannot reference a type parameter from its containing type.\"),\n        Cannot_find_global_value_0: diag(2468, 1, \"Cannot_find_global_value_0_2468\", \"Cannot find global value '{0}'.\"),\n        The_0_operator_cannot_be_applied_to_type_symbol: diag(2469, 1, \"The_0_operator_cannot_be_applied_to_type_symbol_2469\", \"The '{0}' operator cannot be applied to type 'symbol'.\"),\n        Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher: diag(2472, 1, \"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472\", \"Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher.\"),\n        Enum_declarations_must_all_be_const_or_non_const: diag(2473, 1, \"Enum_declarations_must_all_be_const_or_non_const_2473\", \"Enum declarations must all be const or non-const.\"),\n        const_enum_member_initializers_must_be_constant_expressions: diag(2474, 1, \"const_enum_member_initializers_must_be_constant_expressions_2474\", \"const enum member initializers must be constant expressions.\"),\n        const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query: diag(2475, 1, \"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475\", \"'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query.\"),\n        A_const_enum_member_can_only_be_accessed_using_a_string_literal: diag(2476, 1, \"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476\", \"A const enum member can only be accessed using a string literal.\"),\n        const_enum_member_initializer_was_evaluated_to_a_non_finite_value: diag(2477, 1, \"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477\", \"'const' enum member initializer was evaluated to a non-finite value.\"),\n        const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN: diag(2478, 1, \"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478\", \"'const' enum member initializer was evaluated to disallowed value 'NaN'.\"),\n        let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations: diag(2480, 1, \"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480\", \"'let' is not allowed to be used as a name in 'let' or 'const' declarations.\"),\n        Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1: diag(2481, 1, \"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481\", \"Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'.\"),\n        The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation: diag(2483, 1, \"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483\", \"The left-hand side of a 'for...of' statement cannot use a type annotation.\"),\n        Export_declaration_conflicts_with_exported_declaration_of_0: diag(2484, 1, \"Export_declaration_conflicts_with_exported_declaration_of_0_2484\", \"Export declaration conflicts with exported declaration of '{0}'.\"),\n        The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access: diag(2487, 1, \"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487\", \"The left-hand side of a 'for...of' statement must be a variable or a property access.\"),\n        Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator: diag(2488, 1, \"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488\", \"Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator.\"),\n        An_iterator_must_have_a_next_method: diag(2489, 1, \"An_iterator_must_have_a_next_method_2489\", \"An iterator must have a 'next()' method.\"),\n        The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property: diag(2490, 1, \"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490\", \"The type returned by the '{0}()' method of an iterator must have a 'value' property.\"),\n        The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern: diag(2491, 1, \"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491\", \"The left-hand side of a 'for...in' statement cannot be a destructuring pattern.\"),\n        Cannot_redeclare_identifier_0_in_catch_clause: diag(2492, 1, \"Cannot_redeclare_identifier_0_in_catch_clause_2492\", \"Cannot redeclare identifier '{0}' in catch clause.\"),\n        Tuple_type_0_of_length_1_has_no_element_at_index_2: diag(2493, 1, \"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493\", \"Tuple type '{0}' of length '{1}' has no element at index '{2}'.\"),\n        Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher: diag(2494, 1, \"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494\", \"Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher.\"),\n        Type_0_is_not_an_array_type_or_a_string_type: diag(2495, 1, \"Type_0_is_not_an_array_type_or_a_string_type_2495\", \"Type '{0}' is not an array type or a string type.\"),\n        The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression: diag(2496, 1, \"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496\", \"The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression.\"),\n        This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export: diag(2497, 1, \"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497\", \"This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export.\"),\n        Module_0_uses_export_and_cannot_be_used_with_export_Asterisk: diag(2498, 1, \"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498\", \"Module '{0}' uses 'export =' and cannot be used with 'export *'.\"),\n        An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments: diag(2499, 1, \"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499\", \"An interface can only extend an identifier/qualified-name with optional type arguments.\"),\n        A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments: diag(2500, 1, \"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500\", \"A class can only implement an identifier/qualified-name with optional type arguments.\"),\n        A_rest_element_cannot_contain_a_binding_pattern: diag(2501, 1, \"A_rest_element_cannot_contain_a_binding_pattern_2501\", \"A rest element cannot contain a binding pattern.\"),\n        _0_is_referenced_directly_or_indirectly_in_its_own_type_annotation: diag(2502, 1, \"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502\", \"'{0}' is referenced directly or indirectly in its own type annotation.\"),\n        Cannot_find_namespace_0: diag(2503, 1, \"Cannot_find_namespace_0_2503\", \"Cannot find namespace '{0}'.\"),\n        Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator: diag(2504, 1, \"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504\", \"Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator.\"),\n        A_generator_cannot_have_a_void_type_annotation: diag(2505, 1, \"A_generator_cannot_have_a_void_type_annotation_2505\", \"A generator cannot have a 'void' type annotation.\"),\n        _0_is_referenced_directly_or_indirectly_in_its_own_base_expression: diag(2506, 1, \"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506\", \"'{0}' is referenced directly or indirectly in its own base expression.\"),\n        Type_0_is_not_a_constructor_function_type: diag(2507, 1, \"Type_0_is_not_a_constructor_function_type_2507\", \"Type '{0}' is not a constructor function type.\"),\n        No_base_constructor_has_the_specified_number_of_type_arguments: diag(2508, 1, \"No_base_constructor_has_the_specified_number_of_type_arguments_2508\", \"No base constructor has the specified number of type arguments.\"),\n        Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members: diag(2509, 1, \"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509\", \"Base constructor return type '{0}' is not an object type or intersection of object types with statically known members.\"),\n        Base_constructors_must_all_have_the_same_return_type: diag(2510, 1, \"Base_constructors_must_all_have_the_same_return_type_2510\", \"Base constructors must all have the same return type.\"),\n        Cannot_create_an_instance_of_an_abstract_class: diag(2511, 1, \"Cannot_create_an_instance_of_an_abstract_class_2511\", \"Cannot create an instance of an abstract class.\"),\n        Overload_signatures_must_all_be_abstract_or_non_abstract: diag(2512, 1, \"Overload_signatures_must_all_be_abstract_or_non_abstract_2512\", \"Overload signatures must all be abstract or non-abstract.\"),\n        Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression: diag(2513, 1, \"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513\", \"Abstract method '{0}' in class '{1}' cannot be accessed via super expression.\"),\n        A_tuple_type_cannot_be_indexed_with_a_negative_value: diag(2514, 1, \"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514\", \"A tuple type cannot be indexed with a negative value.\"),\n        Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2: diag(2515, 1, \"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515\", \"Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'.\"),\n        All_declarations_of_an_abstract_method_must_be_consecutive: diag(2516, 1, \"All_declarations_of_an_abstract_method_must_be_consecutive_2516\", \"All declarations of an abstract method must be consecutive.\"),\n        Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type: diag(2517, 1, \"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517\", \"Cannot assign an abstract constructor type to a non-abstract constructor type.\"),\n        A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard: diag(2518, 1, \"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518\", \"A 'this'-based type guard is not compatible with a parameter-based type guard.\"),\n        An_async_iterator_must_have_a_next_method: diag(2519, 1, \"An_async_iterator_must_have_a_next_method_2519\", \"An async iterator must have a 'next()' method.\"),\n        Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions: diag(2520, 1, \"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520\", \"Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions.\"),\n        The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method: diag(2522, 1, \"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522\", \"The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method.\"),\n        yield_expressions_cannot_be_used_in_a_parameter_initializer: diag(2523, 1, \"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523\", \"'yield' expressions cannot be used in a parameter initializer.\"),\n        await_expressions_cannot_be_used_in_a_parameter_initializer: diag(2524, 1, \"await_expressions_cannot_be_used_in_a_parameter_initializer_2524\", \"'await' expressions cannot be used in a parameter initializer.\"),\n        Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value: diag(2525, 1, \"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525\", \"Initializer provides no value for this binding element and the binding element has no default value.\"),\n        A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface: diag(2526, 1, \"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526\", \"A 'this' type is available only in a non-static member of a class or interface.\"),\n        The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary: diag(2527, 1, \"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527\", \"The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary.\"),\n        A_module_cannot_have_multiple_default_exports: diag(2528, 1, \"A_module_cannot_have_multiple_default_exports_2528\", \"A module cannot have multiple default exports.\"),\n        Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions: diag(2529, 1, \"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529\", \"Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions.\"),\n        Property_0_is_incompatible_with_index_signature: diag(2530, 1, \"Property_0_is_incompatible_with_index_signature_2530\", \"Property '{0}' is incompatible with index signature.\"),\n        Object_is_possibly_null: diag(2531, 1, \"Object_is_possibly_null_2531\", \"Object is possibly 'null'.\"),\n        Object_is_possibly_undefined: diag(2532, 1, \"Object_is_possibly_undefined_2532\", \"Object is possibly 'undefined'.\"),\n        Object_is_possibly_null_or_undefined: diag(2533, 1, \"Object_is_possibly_null_or_undefined_2533\", \"Object is possibly 'null' or 'undefined'.\"),\n        A_function_returning_never_cannot_have_a_reachable_end_point: diag(2534, 1, \"A_function_returning_never_cannot_have_a_reachable_end_point_2534\", \"A function returning 'never' cannot have a reachable end point.\"),\n        Type_0_cannot_be_used_to_index_type_1: diag(2536, 1, \"Type_0_cannot_be_used_to_index_type_1_2536\", \"Type '{0}' cannot be used to index type '{1}'.\"),\n        Type_0_has_no_matching_index_signature_for_type_1: diag(2537, 1, \"Type_0_has_no_matching_index_signature_for_type_1_2537\", \"Type '{0}' has no matching index signature for type '{1}'.\"),\n        Type_0_cannot_be_used_as_an_index_type: diag(2538, 1, \"Type_0_cannot_be_used_as_an_index_type_2538\", \"Type '{0}' cannot be used as an index type.\"),\n        Cannot_assign_to_0_because_it_is_not_a_variable: diag(2539, 1, \"Cannot_assign_to_0_because_it_is_not_a_variable_2539\", \"Cannot assign to '{0}' because it is not a variable.\"),\n        Cannot_assign_to_0_because_it_is_a_read_only_property: diag(2540, 1, \"Cannot_assign_to_0_because_it_is_a_read_only_property_2540\", \"Cannot assign to '{0}' because it is a read-only property.\"),\n        Index_signature_in_type_0_only_permits_reading: diag(2542, 1, \"Index_signature_in_type_0_only_permits_reading_2542\", \"Index signature in type '{0}' only permits reading.\"),\n        Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference: diag(2543, 1, \"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543\", \"Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference.\"),\n        Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference: diag(2544, 1, \"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544\", \"Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference.\"),\n        A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any: diag(2545, 1, \"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545\", \"A mixin class must have a constructor with a single rest parameter of type 'any[]'.\"),\n        The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property: diag(2547, 1, \"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547\", \"The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property.\"),\n        Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator: diag(2548, 1, \"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548\", \"Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator.\"),\n        Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator: diag(2549, 1, \"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549\", \"Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator.\"),\n        Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later: diag(2550, 1, \"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550\", \"Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later.\"),\n        Property_0_does_not_exist_on_type_1_Did_you_mean_2: diag(2551, 1, \"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551\", \"Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?\"),\n        Cannot_find_name_0_Did_you_mean_1: diag(2552, 1, \"Cannot_find_name_0_Did_you_mean_1_2552\", \"Cannot find name '{0}'. Did you mean '{1}'?\"),\n        Computed_values_are_not_permitted_in_an_enum_with_string_valued_members: diag(2553, 1, \"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553\", \"Computed values are not permitted in an enum with string valued members.\"),\n        Expected_0_arguments_but_got_1: diag(2554, 1, \"Expected_0_arguments_but_got_1_2554\", \"Expected {0} arguments, but got {1}.\"),\n        Expected_at_least_0_arguments_but_got_1: diag(2555, 1, \"Expected_at_least_0_arguments_but_got_1_2555\", \"Expected at least {0} arguments, but got {1}.\"),\n        A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter: diag(2556, 1, \"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556\", \"A spread argument must either have a tuple type or be passed to a rest parameter.\"),\n        Expected_0_type_arguments_but_got_1: diag(2558, 1, \"Expected_0_type_arguments_but_got_1_2558\", \"Expected {0} type arguments, but got {1}.\"),\n        Type_0_has_no_properties_in_common_with_type_1: diag(2559, 1, \"Type_0_has_no_properties_in_common_with_type_1_2559\", \"Type '{0}' has no properties in common with type '{1}'.\"),\n        Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it: diag(2560, 1, \"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560\", \"Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?\"),\n        Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2: diag(2561, 1, \"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561\", \"Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?\"),\n        Base_class_expressions_cannot_reference_class_type_parameters: diag(2562, 1, \"Base_class_expressions_cannot_reference_class_type_parameters_2562\", \"Base class expressions cannot reference class type parameters.\"),\n        The_containing_function_or_module_body_is_too_large_for_control_flow_analysis: diag(2563, 1, \"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563\", \"The containing function or module body is too large for control flow analysis.\"),\n        Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor: diag(2564, 1, \"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564\", \"Property '{0}' has no initializer and is not definitely assigned in the constructor.\"),\n        Property_0_is_used_before_being_assigned: diag(2565, 1, \"Property_0_is_used_before_being_assigned_2565\", \"Property '{0}' is used before being assigned.\"),\n        A_rest_element_cannot_have_a_property_name: diag(2566, 1, \"A_rest_element_cannot_have_a_property_name_2566\", \"A rest element cannot have a property name.\"),\n        Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations: diag(2567, 1, \"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567\", \"Enum declarations can only merge with namespace or other enum declarations.\"),\n        Property_0_may_not_exist_on_type_1_Did_you_mean_2: diag(2568, 1, \"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568\", \"Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?\"),\n        Could_not_find_name_0_Did_you_mean_1: diag(2570, 1, \"Could_not_find_name_0_Did_you_mean_1_2570\", \"Could not find name '{0}'. Did you mean '{1}'?\"),\n        Object_is_of_type_unknown: diag(2571, 1, \"Object_is_of_type_unknown_2571\", \"Object is of type 'unknown'.\"),\n        A_rest_element_type_must_be_an_array_type: diag(2574, 1, \"A_rest_element_type_must_be_an_array_type_2574\", \"A rest element type must be an array type.\"),\n        No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments: diag(2575, 1, \"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575\", \"No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments.\"),\n        Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead: diag(2576, 1, \"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576\", \"Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?\"),\n        Return_type_annotation_circularly_references_itself: diag(2577, 1, \"Return_type_annotation_circularly_references_itself_2577\", \"Return type annotation circularly references itself.\"),\n        Unused_ts_expect_error_directive: diag(2578, 1, \"Unused_ts_expect_error_directive_2578\", \"Unused '@ts-expect-error' directive.\"),\n        Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode: diag(2580, 1, \"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580\", \"Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.\"),\n        Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery: diag(2581, 1, \"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581\", \"Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`.\"),\n        Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha: diag(2582, 1, \"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582\", \"Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.\"),\n        Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later: diag(2583, 1, \"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583\", \"Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later.\"),\n        Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom: diag(2584, 1, \"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584\", \"Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.\"),\n        _0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later: diag(2585, 1, \"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585\", \"'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later.\"),\n        Cannot_assign_to_0_because_it_is_a_constant: diag(2588, 1, \"Cannot_assign_to_0_because_it_is_a_constant_2588\", \"Cannot assign to '{0}' because it is a constant.\"),\n        Type_instantiation_is_excessively_deep_and_possibly_infinite: diag(2589, 1, \"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589\", \"Type instantiation is excessively deep and possibly infinite.\"),\n        Expression_produces_a_union_type_that_is_too_complex_to_represent: diag(2590, 1, \"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590\", \"Expression produces a union type that is too complex to represent.\"),\n        Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig: diag(2591, 1, \"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591\", \"Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.\"),\n        Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig: diag(2592, 1, \"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592\", \"Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig.\"),\n        Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig: diag(2593, 1, \"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593\", \"Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig.\"),\n        This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag: diag(2594, 1, \"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594\", \"This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag.\"),\n        _0_can_only_be_imported_by_using_a_default_import: diag(2595, 1, \"_0_can_only_be_imported_by_using_a_default_import_2595\", \"'{0}' can only be imported by using a default import.\"),\n        _0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import: diag(2596, 1, \"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596\", \"'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import.\"),\n        _0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import: diag(2597, 1, \"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597\", \"'{0}' can only be imported by using a 'require' call or by using a default import.\"),\n        _0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import: diag(2598, 1, \"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598\", \"'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import.\"),\n        JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist: diag(2602, 1, \"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602\", \"JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist.\"),\n        Property_0_in_type_1_is_not_assignable_to_type_2: diag(2603, 1, \"Property_0_in_type_1_is_not_assignable_to_type_2_2603\", \"Property '{0}' in type '{1}' is not assignable to type '{2}'.\"),\n        JSX_element_type_0_does_not_have_any_construct_or_call_signatures: diag(2604, 1, \"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604\", \"JSX element type '{0}' does not have any construct or call signatures.\"),\n        Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property: diag(2606, 1, \"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606\", \"Property '{0}' of JSX spread attribute is not assignable to target property.\"),\n        JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property: diag(2607, 1, \"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607\", \"JSX element class does not support attributes because it does not have a '{0}' property.\"),\n        The_global_type_JSX_0_may_not_have_more_than_one_property: diag(2608, 1, \"The_global_type_JSX_0_may_not_have_more_than_one_property_2608\", \"The global type 'JSX.{0}' may not have more than one property.\"),\n        JSX_spread_child_must_be_an_array_type: diag(2609, 1, \"JSX_spread_child_must_be_an_array_type_2609\", \"JSX spread child must be an array type.\"),\n        _0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property: diag(2610, 1, \"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610\", \"'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property.\"),\n        _0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor: diag(2611, 1, \"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611\", \"'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor.\"),\n        Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration: diag(2612, 1, \"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612\", \"Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration.\"),\n        Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead: diag(2613, 1, \"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613\", \"Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?\"),\n        Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead: diag(2614, 1, \"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614\", \"Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?\"),\n        Type_of_property_0_circularly_references_itself_in_mapped_type_1: diag(2615, 1, \"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615\", \"Type of property '{0}' circularly references itself in mapped type '{1}'.\"),\n        _0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import: diag(2616, 1, \"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616\", \"'{0}' can only be imported by using 'import {1} = require({2})' or a default import.\"),\n        _0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import: diag(2617, 1, \"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617\", \"'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import.\"),\n        Source_has_0_element_s_but_target_requires_1: diag(2618, 1, \"Source_has_0_element_s_but_target_requires_1_2618\", \"Source has {0} element(s) but target requires {1}.\"),\n        Source_has_0_element_s_but_target_allows_only_1: diag(2619, 1, \"Source_has_0_element_s_but_target_allows_only_1_2619\", \"Source has {0} element(s) but target allows only {1}.\"),\n        Target_requires_0_element_s_but_source_may_have_fewer: diag(2620, 1, \"Target_requires_0_element_s_but_source_may_have_fewer_2620\", \"Target requires {0} element(s) but source may have fewer.\"),\n        Target_allows_only_0_element_s_but_source_may_have_more: diag(2621, 1, \"Target_allows_only_0_element_s_but_source_may_have_more_2621\", \"Target allows only {0} element(s) but source may have more.\"),\n        Source_provides_no_match_for_required_element_at_position_0_in_target: diag(2623, 1, \"Source_provides_no_match_for_required_element_at_position_0_in_target_2623\", \"Source provides no match for required element at position {0} in target.\"),\n        Source_provides_no_match_for_variadic_element_at_position_0_in_target: diag(2624, 1, \"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624\", \"Source provides no match for variadic element at position {0} in target.\"),\n        Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target: diag(2625, 1, \"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625\", \"Variadic element at position {0} in source does not match element at position {1} in target.\"),\n        Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target: diag(2626, 1, \"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626\", \"Type at position {0} in source is not compatible with type at position {1} in target.\"),\n        Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target: diag(2627, 1, \"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627\", \"Type at positions {0} through {1} in source is not compatible with type at position {2} in target.\"),\n        Cannot_assign_to_0_because_it_is_an_enum: diag(2628, 1, \"Cannot_assign_to_0_because_it_is_an_enum_2628\", \"Cannot assign to '{0}' because it is an enum.\"),\n        Cannot_assign_to_0_because_it_is_a_class: diag(2629, 1, \"Cannot_assign_to_0_because_it_is_a_class_2629\", \"Cannot assign to '{0}' because it is a class.\"),\n        Cannot_assign_to_0_because_it_is_a_function: diag(2630, 1, \"Cannot_assign_to_0_because_it_is_a_function_2630\", \"Cannot assign to '{0}' because it is a function.\"),\n        Cannot_assign_to_0_because_it_is_a_namespace: diag(2631, 1, \"Cannot_assign_to_0_because_it_is_a_namespace_2631\", \"Cannot assign to '{0}' because it is a namespace.\"),\n        Cannot_assign_to_0_because_it_is_an_import: diag(2632, 1, \"Cannot_assign_to_0_because_it_is_an_import_2632\", \"Cannot assign to '{0}' because it is an import.\"),\n        JSX_property_access_expressions_cannot_include_JSX_namespace_names: diag(2633, 1, \"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633\", \"JSX property access expressions cannot include JSX namespace names\"),\n        _0_index_signatures_are_incompatible: diag(2634, 1, \"_0_index_signatures_are_incompatible_2634\", \"'{0}' index signatures are incompatible.\"),\n        Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable: diag(2635, 1, \"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635\", \"Type '{0}' has no signatures for which the type argument list is applicable.\"),\n        Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation: diag(2636, 1, \"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636\", \"Type '{0}' is not assignable to type '{1}' as implied by variance annotation.\"),\n        Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types: diag(2637, 1, \"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637\", \"Variance annotations are only supported in type aliases for object, function, constructor, and mapped types.\"),\n        Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator: diag(2638, 1, \"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638\", \"Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator.\"),\n        Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity: diag(2649, 1, \"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649\", \"Cannot augment module '{0}' with value exports because it resolves to a non-module entity.\"),\n        A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums: diag(2651, 1, \"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651\", \"A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums.\"),\n        Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead: diag(2652, 1, \"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652\", \"Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead.\"),\n        Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1: diag(2653, 1, \"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653\", \"Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'.\"),\n        JSX_expressions_must_have_one_parent_element: diag(2657, 1, \"JSX_expressions_must_have_one_parent_element_2657\", \"JSX expressions must have one parent element.\"),\n        Type_0_provides_no_match_for_the_signature_1: diag(2658, 1, \"Type_0_provides_no_match_for_the_signature_1_2658\", \"Type '{0}' provides no match for the signature '{1}'.\"),\n        super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher: diag(2659, 1, \"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659\", \"'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher.\"),\n        super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions: diag(2660, 1, \"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660\", \"'super' can only be referenced in members of derived classes or object literal expressions.\"),\n        Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module: diag(2661, 1, \"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661\", \"Cannot export '{0}'. Only local declarations can be exported from a module.\"),\n        Cannot_find_name_0_Did_you_mean_the_static_member_1_0: diag(2662, 1, \"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662\", \"Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?\"),\n        Cannot_find_name_0_Did_you_mean_the_instance_member_this_0: diag(2663, 1, \"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663\", \"Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?\"),\n        Invalid_module_name_in_augmentation_module_0_cannot_be_found: diag(2664, 1, \"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664\", \"Invalid module name in augmentation, module '{0}' cannot be found.\"),\n        Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented: diag(2665, 1, \"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665\", \"Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented.\"),\n        Exports_and_export_assignments_are_not_permitted_in_module_augmentations: diag(2666, 1, \"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666\", \"Exports and export assignments are not permitted in module augmentations.\"),\n        Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module: diag(2667, 1, \"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667\", \"Imports are not permitted in module augmentations. Consider moving them to the enclosing external module.\"),\n        export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible: diag(2668, 1, \"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668\", \"'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible.\"),\n        Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations: diag(2669, 1, \"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669\", \"Augmentations for the global scope can only be directly nested in external modules or ambient module declarations.\"),\n        Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context: diag(2670, 1, \"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670\", \"Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context.\"),\n        Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity: diag(2671, 1, \"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671\", \"Cannot augment module '{0}' because it resolves to a non-module entity.\"),\n        Cannot_assign_a_0_constructor_type_to_a_1_constructor_type: diag(2672, 1, \"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672\", \"Cannot assign a '{0}' constructor type to a '{1}' constructor type.\"),\n        Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration: diag(2673, 1, \"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673\", \"Constructor of class '{0}' is private and only accessible within the class declaration.\"),\n        Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration: diag(2674, 1, \"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674\", \"Constructor of class '{0}' is protected and only accessible within the class declaration.\"),\n        Cannot_extend_a_class_0_Class_constructor_is_marked_as_private: diag(2675, 1, \"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675\", \"Cannot extend a class '{0}'. Class constructor is marked as private.\"),\n        Accessors_must_both_be_abstract_or_non_abstract: diag(2676, 1, \"Accessors_must_both_be_abstract_or_non_abstract_2676\", \"Accessors must both be abstract or non-abstract.\"),\n        A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type: diag(2677, 1, \"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677\", \"A type predicate's type must be assignable to its parameter's type.\"),\n        Type_0_is_not_comparable_to_type_1: diag(2678, 1, \"Type_0_is_not_comparable_to_type_1_2678\", \"Type '{0}' is not comparable to type '{1}'.\"),\n        A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void: diag(2679, 1, \"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679\", \"A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'.\"),\n        A_0_parameter_must_be_the_first_parameter: diag(2680, 1, \"A_0_parameter_must_be_the_first_parameter_2680\", \"A '{0}' parameter must be the first parameter.\"),\n        A_constructor_cannot_have_a_this_parameter: diag(2681, 1, \"A_constructor_cannot_have_a_this_parameter_2681\", \"A constructor cannot have a 'this' parameter.\"),\n        this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation: diag(2683, 1, \"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683\", \"'this' implicitly has type 'any' because it does not have a type annotation.\"),\n        The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1: diag(2684, 1, \"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684\", \"The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'.\"),\n        The_this_types_of_each_signature_are_incompatible: diag(2685, 1, \"The_this_types_of_each_signature_are_incompatible_2685\", \"The 'this' types of each signature are incompatible.\"),\n        _0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead: diag(2686, 1, \"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686\", \"'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead.\"),\n        All_declarations_of_0_must_have_identical_modifiers: diag(2687, 1, \"All_declarations_of_0_must_have_identical_modifiers_2687\", \"All declarations of '{0}' must have identical modifiers.\"),\n        Cannot_find_type_definition_file_for_0: diag(2688, 1, \"Cannot_find_type_definition_file_for_0_2688\", \"Cannot find type definition file for '{0}'.\"),\n        Cannot_extend_an_interface_0_Did_you_mean_implements: diag(2689, 1, \"Cannot_extend_an_interface_0_Did_you_mean_implements_2689\", \"Cannot extend an interface '{0}'. Did you mean 'implements'?\"),\n        _0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0: diag(2690, 1, \"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690\", \"'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?\"),\n        _0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible: diag(2692, 1, \"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692\", \"'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible.\"),\n        _0_only_refers_to_a_type_but_is_being_used_as_a_value_here: diag(2693, 1, \"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693\", \"'{0}' only refers to a type, but is being used as a value here.\"),\n        Namespace_0_has_no_exported_member_1: diag(2694, 1, \"Namespace_0_has_no_exported_member_1_2694\", \"Namespace '{0}' has no exported member '{1}'.\"),\n        Left_side_of_comma_operator_is_unused_and_has_no_side_effects: diag(2695, 1, \"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695\", \"Left side of comma operator is unused and has no side effects.\", true),\n        The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead: diag(2696, 1, \"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696\", \"The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?\"),\n        An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option: diag(2697, 1, \"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697\", \"An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option.\"),\n        Spread_types_may_only_be_created_from_object_types: diag(2698, 1, \"Spread_types_may_only_be_created_from_object_types_2698\", \"Spread types may only be created from object types.\"),\n        Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1: diag(2699, 1, \"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699\", \"Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'.\"),\n        Rest_types_may_only_be_created_from_object_types: diag(2700, 1, \"Rest_types_may_only_be_created_from_object_types_2700\", \"Rest types may only be created from object types.\"),\n        The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access: diag(2701, 1, \"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701\", \"The target of an object rest assignment must be a variable or a property access.\"),\n        _0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here: diag(2702, 1, \"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702\", \"'{0}' only refers to a type, but is being used as a namespace here.\"),\n        The_operand_of_a_delete_operator_must_be_a_property_reference: diag(2703, 1, \"The_operand_of_a_delete_operator_must_be_a_property_reference_2703\", \"The operand of a 'delete' operator must be a property reference.\"),\n        The_operand_of_a_delete_operator_cannot_be_a_read_only_property: diag(2704, 1, \"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704\", \"The operand of a 'delete' operator cannot be a read-only property.\"),\n        An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option: diag(2705, 1, \"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705\", \"An async function or method in ES5/ES3 requires the 'Promise' constructor.  Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option.\"),\n        Required_type_parameters_may_not_follow_optional_type_parameters: diag(2706, 1, \"Required_type_parameters_may_not_follow_optional_type_parameters_2706\", \"Required type parameters may not follow optional type parameters.\"),\n        Generic_type_0_requires_between_1_and_2_type_arguments: diag(2707, 1, \"Generic_type_0_requires_between_1_and_2_type_arguments_2707\", \"Generic type '{0}' requires between {1} and {2} type arguments.\"),\n        Cannot_use_namespace_0_as_a_value: diag(2708, 1, \"Cannot_use_namespace_0_as_a_value_2708\", \"Cannot use namespace '{0}' as a value.\"),\n        Cannot_use_namespace_0_as_a_type: diag(2709, 1, \"Cannot_use_namespace_0_as_a_type_2709\", \"Cannot use namespace '{0}' as a type.\"),\n        _0_are_specified_twice_The_attribute_named_0_will_be_overwritten: diag(2710, 1, \"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710\", \"'{0}' are specified twice. The attribute named '{0}' will be overwritten.\"),\n        A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option: diag(2711, 1, \"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711\", \"A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option.\"),\n        A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option: diag(2712, 1, \"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712\", \"A dynamic import call in ES5/ES3 requires the 'Promise' constructor.  Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option.\"),\n        Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1: diag(2713, 1, \"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713\", `Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?`),\n        The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context: diag(2714, 1, \"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714\", \"The expression of an export assignment must be an identifier or qualified name in an ambient context.\"),\n        Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor: diag(2715, 1, \"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715\", \"Abstract property '{0}' in class '{1}' cannot be accessed in the constructor.\"),\n        Type_parameter_0_has_a_circular_default: diag(2716, 1, \"Type_parameter_0_has_a_circular_default_2716\", \"Type parameter '{0}' has a circular default.\"),\n        Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2: diag(2717, 1, \"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717\", \"Subsequent property declarations must have the same type.  Property '{0}' must be of type '{1}', but here has type '{2}'.\"),\n        Duplicate_property_0: diag(2718, 1, \"Duplicate_property_0_2718\", \"Duplicate property '{0}'.\"),\n        Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated: diag(2719, 1, \"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719\", \"Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated.\"),\n        Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass: diag(2720, 1, \"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720\", \"Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?\"),\n        Cannot_invoke_an_object_which_is_possibly_null: diag(2721, 1, \"Cannot_invoke_an_object_which_is_possibly_null_2721\", \"Cannot invoke an object which is possibly 'null'.\"),\n        Cannot_invoke_an_object_which_is_possibly_undefined: diag(2722, 1, \"Cannot_invoke_an_object_which_is_possibly_undefined_2722\", \"Cannot invoke an object which is possibly 'undefined'.\"),\n        Cannot_invoke_an_object_which_is_possibly_null_or_undefined: diag(2723, 1, \"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723\", \"Cannot invoke an object which is possibly 'null' or 'undefined'.\"),\n        _0_has_no_exported_member_named_1_Did_you_mean_2: diag(2724, 1, \"_0_has_no_exported_member_named_1_Did_you_mean_2_2724\", \"'{0}' has no exported member named '{1}'. Did you mean '{2}'?\"),\n        Class_name_cannot_be_Object_when_targeting_ES5_with_module_0: diag(2725, 1, \"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725\", \"Class name cannot be 'Object' when targeting ES5 with module {0}.\"),\n        Cannot_find_lib_definition_for_0: diag(2726, 1, \"Cannot_find_lib_definition_for_0_2726\", \"Cannot find lib definition for '{0}'.\"),\n        Cannot_find_lib_definition_for_0_Did_you_mean_1: diag(2727, 1, \"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727\", \"Cannot find lib definition for '{0}'. Did you mean '{1}'?\"),\n        _0_is_declared_here: diag(2728, 3, \"_0_is_declared_here_2728\", \"'{0}' is declared here.\"),\n        Property_0_is_used_before_its_initialization: diag(2729, 1, \"Property_0_is_used_before_its_initialization_2729\", \"Property '{0}' is used before its initialization.\"),\n        An_arrow_function_cannot_have_a_this_parameter: diag(2730, 1, \"An_arrow_function_cannot_have_a_this_parameter_2730\", \"An arrow function cannot have a 'this' parameter.\"),\n        Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String: diag(2731, 1, \"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731\", \"Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'.\"),\n        Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension: diag(2732, 1, \"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732\", \"Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension.\"),\n        Property_0_was_also_declared_here: diag(2733, 1, \"Property_0_was_also_declared_here_2733\", \"Property '{0}' was also declared here.\"),\n        Are_you_missing_a_semicolon: diag(2734, 1, \"Are_you_missing_a_semicolon_2734\", \"Are you missing a semicolon?\"),\n        Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1: diag(2735, 1, \"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735\", \"Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?\"),\n        Operator_0_cannot_be_applied_to_type_1: diag(2736, 1, \"Operator_0_cannot_be_applied_to_type_1_2736\", \"Operator '{0}' cannot be applied to type '{1}'.\"),\n        BigInt_literals_are_not_available_when_targeting_lower_than_ES2020: diag(2737, 1, \"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737\", \"BigInt literals are not available when targeting lower than ES2020.\"),\n        An_outer_value_of_this_is_shadowed_by_this_container: diag(2738, 3, \"An_outer_value_of_this_is_shadowed_by_this_container_2738\", \"An outer value of 'this' is shadowed by this container.\"),\n        Type_0_is_missing_the_following_properties_from_type_1_Colon_2: diag(2739, 1, \"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739\", \"Type '{0}' is missing the following properties from type '{1}': {2}\"),\n        Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more: diag(2740, 1, \"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740\", \"Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more.\"),\n        Property_0_is_missing_in_type_1_but_required_in_type_2: diag(2741, 1, \"Property_0_is_missing_in_type_1_but_required_in_type_2_2741\", \"Property '{0}' is missing in type '{1}' but required in type '{2}'.\"),\n        The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary: diag(2742, 1, \"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742\", \"The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary.\"),\n        No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments: diag(2743, 1, \"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743\", \"No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments.\"),\n        Type_parameter_defaults_can_only_reference_previously_declared_type_parameters: diag(2744, 1, \"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744\", \"Type parameter defaults can only reference previously declared type parameters.\"),\n        This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided: diag(2745, 1, \"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745\", \"This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided.\"),\n        This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided: diag(2746, 1, \"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746\", \"This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided.\"),\n        _0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2: diag(2747, 1, \"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747\", \"'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'.\"),\n        Cannot_access_ambient_const_enums_when_0_is_enabled: diag(2748, 1, \"Cannot_access_ambient_const_enums_when_0_is_enabled_2748\", \"Cannot access ambient const enums when '{0}' is enabled.\"),\n        _0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0: diag(2749, 1, \"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749\", \"'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?\"),\n        The_implementation_signature_is_declared_here: diag(2750, 1, \"The_implementation_signature_is_declared_here_2750\", \"The implementation signature is declared here.\"),\n        Circularity_originates_in_type_at_this_location: diag(2751, 1, \"Circularity_originates_in_type_at_this_location_2751\", \"Circularity originates in type at this location.\"),\n        The_first_export_default_is_here: diag(2752, 1, \"The_first_export_default_is_here_2752\", \"The first export default is here.\"),\n        Another_export_default_is_here: diag(2753, 1, \"Another_export_default_is_here_2753\", \"Another export default is here.\"),\n        super_may_not_use_type_arguments: diag(2754, 1, \"super_may_not_use_type_arguments_2754\", \"'super' may not use type arguments.\"),\n        No_constituent_of_type_0_is_callable: diag(2755, 1, \"No_constituent_of_type_0_is_callable_2755\", \"No constituent of type '{0}' is callable.\"),\n        Not_all_constituents_of_type_0_are_callable: diag(2756, 1, \"Not_all_constituents_of_type_0_are_callable_2756\", \"Not all constituents of type '{0}' are callable.\"),\n        Type_0_has_no_call_signatures: diag(2757, 1, \"Type_0_has_no_call_signatures_2757\", \"Type '{0}' has no call signatures.\"),\n        Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other: diag(2758, 1, \"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758\", \"Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other.\"),\n        No_constituent_of_type_0_is_constructable: diag(2759, 1, \"No_constituent_of_type_0_is_constructable_2759\", \"No constituent of type '{0}' is constructable.\"),\n        Not_all_constituents_of_type_0_are_constructable: diag(2760, 1, \"Not_all_constituents_of_type_0_are_constructable_2760\", \"Not all constituents of type '{0}' are constructable.\"),\n        Type_0_has_no_construct_signatures: diag(2761, 1, \"Type_0_has_no_construct_signatures_2761\", \"Type '{0}' has no construct signatures.\"),\n        Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other: diag(2762, 1, \"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762\", \"Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other.\"),\n        Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0: diag(2763, 1, \"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763\", \"Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'.\"),\n        Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0: diag(2764, 1, \"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764\", \"Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'.\"),\n        Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0: diag(2765, 1, \"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765\", \"Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'.\"),\n        Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0: diag(2766, 1, \"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766\", \"Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'.\"),\n        The_0_property_of_an_iterator_must_be_a_method: diag(2767, 1, \"The_0_property_of_an_iterator_must_be_a_method_2767\", \"The '{0}' property of an iterator must be a method.\"),\n        The_0_property_of_an_async_iterator_must_be_a_method: diag(2768, 1, \"The_0_property_of_an_async_iterator_must_be_a_method_2768\", \"The '{0}' property of an async iterator must be a method.\"),\n        No_overload_matches_this_call: diag(2769, 1, \"No_overload_matches_this_call_2769\", \"No overload matches this call.\"),\n        The_last_overload_gave_the_following_error: diag(2770, 1, \"The_last_overload_gave_the_following_error_2770\", \"The last overload gave the following error.\"),\n        The_last_overload_is_declared_here: diag(2771, 1, \"The_last_overload_is_declared_here_2771\", \"The last overload is declared here.\"),\n        Overload_0_of_1_2_gave_the_following_error: diag(2772, 1, \"Overload_0_of_1_2_gave_the_following_error_2772\", \"Overload {0} of {1}, '{2}', gave the following error.\"),\n        Did_you_forget_to_use_await: diag(2773, 1, \"Did_you_forget_to_use_await_2773\", \"Did you forget to use 'await'?\"),\n        This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead: diag(2774, 1, \"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774\", \"This condition will always return true since this function is always defined. Did you mean to call it instead?\"),\n        Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation: diag(2775, 1, \"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775\", \"Assertions require every name in the call target to be declared with an explicit type annotation.\"),\n        Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name: diag(2776, 1, \"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776\", \"Assertions require the call target to be an identifier or qualified name.\"),\n        The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access: diag(2777, 1, \"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777\", \"The operand of an increment or decrement operator may not be an optional property access.\"),\n        The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access: diag(2778, 1, \"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778\", \"The target of an object rest assignment may not be an optional property access.\"),\n        The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access: diag(2779, 1, \"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779\", \"The left-hand side of an assignment expression may not be an optional property access.\"),\n        The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access: diag(2780, 1, \"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780\", \"The left-hand side of a 'for...in' statement may not be an optional property access.\"),\n        The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access: diag(2781, 1, \"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781\", \"The left-hand side of a 'for...of' statement may not be an optional property access.\"),\n        _0_needs_an_explicit_type_annotation: diag(2782, 3, \"_0_needs_an_explicit_type_annotation_2782\", \"'{0}' needs an explicit type annotation.\"),\n        _0_is_specified_more_than_once_so_this_usage_will_be_overwritten: diag(2783, 1, \"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783\", \"'{0}' is specified more than once, so this usage will be overwritten.\"),\n        get_and_set_accessors_cannot_declare_this_parameters: diag(2784, 1, \"get_and_set_accessors_cannot_declare_this_parameters_2784\", \"'get' and 'set' accessors cannot declare 'this' parameters.\"),\n        This_spread_always_overwrites_this_property: diag(2785, 1, \"This_spread_always_overwrites_this_property_2785\", \"This spread always overwrites this property.\"),\n        _0_cannot_be_used_as_a_JSX_component: diag(2786, 1, \"_0_cannot_be_used_as_a_JSX_component_2786\", \"'{0}' cannot be used as a JSX component.\"),\n        Its_return_type_0_is_not_a_valid_JSX_element: diag(2787, 1, \"Its_return_type_0_is_not_a_valid_JSX_element_2787\", \"Its return type '{0}' is not a valid JSX element.\"),\n        Its_instance_type_0_is_not_a_valid_JSX_element: diag(2788, 1, \"Its_instance_type_0_is_not_a_valid_JSX_element_2788\", \"Its instance type '{0}' is not a valid JSX element.\"),\n        Its_element_type_0_is_not_a_valid_JSX_element: diag(2789, 1, \"Its_element_type_0_is_not_a_valid_JSX_element_2789\", \"Its element type '{0}' is not a valid JSX element.\"),\n        The_operand_of_a_delete_operator_must_be_optional: diag(2790, 1, \"The_operand_of_a_delete_operator_must_be_optional_2790\", \"The operand of a 'delete' operator must be optional.\"),\n        Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later: diag(2791, 1, \"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791\", \"Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later.\"),\n        Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option: diag(2792, 1, \"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792\", \"Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?\"),\n        The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible: diag(2793, 1, \"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793\", \"The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible.\"),\n        Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise: diag(2794, 1, \"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794\", \"Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?\"),\n        The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types: diag(2795, 1, \"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795\", \"The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types.\"),\n        It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked: diag(2796, 1, \"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796\", \"It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked.\"),\n        A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract: diag(2797, 1, \"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797\", \"A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'.\"),\n        The_declaration_was_marked_as_deprecated_here: diag(2798, 1, \"The_declaration_was_marked_as_deprecated_here_2798\", \"The declaration was marked as deprecated here.\"),\n        Type_produces_a_tuple_type_that_is_too_large_to_represent: diag(2799, 1, \"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799\", \"Type produces a tuple type that is too large to represent.\"),\n        Expression_produces_a_tuple_type_that_is_too_large_to_represent: diag(2800, 1, \"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800\", \"Expression produces a tuple type that is too large to represent.\"),\n        This_condition_will_always_return_true_since_this_0_is_always_defined: diag(2801, 1, \"This_condition_will_always_return_true_since_this_0_is_always_defined_2801\", \"This condition will always return true since this '{0}' is always defined.\"),\n        Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher: diag(2802, 1, \"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802\", \"Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher.\"),\n        Cannot_assign_to_private_method_0_Private_methods_are_not_writable: diag(2803, 1, \"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803\", \"Cannot assign to private method '{0}'. Private methods are not writable.\"),\n        Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name: diag(2804, 1, \"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804\", \"Duplicate identifier '{0}'. Static and instance elements cannot share the same private name.\"),\n        Private_accessor_was_defined_without_a_getter: diag(2806, 1, \"Private_accessor_was_defined_without_a_getter_2806\", \"Private accessor was defined without a getter.\"),\n        This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0: diag(2807, 1, \"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807\", \"This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'.\"),\n        A_get_accessor_must_be_at_least_as_accessible_as_the_setter: diag(2808, 1, \"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808\", \"A get accessor must be at least as accessible as the setter\"),\n        Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses: diag(2809, 1, \"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809\", \"Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses.\"),\n        Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments: diag(2810, 1, \"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810\", \"Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments.\"),\n        Initializer_for_property_0: diag(2811, 1, \"Initializer_for_property_0_2811\", \"Initializer for property '{0}'\"),\n        Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom: diag(2812, 1, \"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812\", \"Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'.\"),\n        Class_declaration_cannot_implement_overload_list_for_0: diag(2813, 1, \"Class_declaration_cannot_implement_overload_list_for_0_2813\", \"Class declaration cannot implement overload list for '{0}'.\"),\n        Function_with_bodies_can_only_merge_with_classes_that_are_ambient: diag(2814, 1, \"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814\", \"Function with bodies can only merge with classes that are ambient.\"),\n        arguments_cannot_be_referenced_in_property_initializers: diag(2815, 1, \"arguments_cannot_be_referenced_in_property_initializers_2815\", \"'arguments' cannot be referenced in property initializers.\"),\n        Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class: diag(2816, 1, \"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816\", \"Cannot use 'this' in a static property initializer of a decorated class.\"),\n        Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block: diag(2817, 1, \"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817\", \"Property '{0}' has no initializer and is not definitely assigned in a class static block.\"),\n        Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers: diag(2818, 1, \"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818\", \"Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers.\"),\n        Namespace_name_cannot_be_0: diag(2819, 1, \"Namespace_name_cannot_be_0_2819\", \"Namespace name cannot be '{0}'.\"),\n        Type_0_is_not_assignable_to_type_1_Did_you_mean_2: diag(2820, 1, \"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820\", \"Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?\"),\n        Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext: diag(2821, 1, \"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821\", \"Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.\"),\n        Import_assertions_cannot_be_used_with_type_only_imports_or_exports: diag(2822, 1, \"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822\", \"Import assertions cannot be used with type-only imports or exports.\"),\n        Cannot_find_namespace_0_Did_you_mean_1: diag(2833, 1, \"Cannot_find_namespace_0_Did_you_mean_1_2833\", \"Cannot find namespace '{0}'. Did you mean '{1}'?\"),\n        Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path: diag(2834, 1, \"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834\", \"Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path.\"),\n        Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0: diag(2835, 1, \"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835\", \"Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?\"),\n        Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls: diag(2836, 1, \"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836\", \"Import assertions are not allowed on statements that transpile to commonjs 'require' calls.\"),\n        Import_assertion_values_must_be_string_literal_expressions: diag(2837, 1, \"Import_assertion_values_must_be_string_literal_expressions_2837\", \"Import assertion values must be string literal expressions.\"),\n        All_declarations_of_0_must_have_identical_constraints: diag(2838, 1, \"All_declarations_of_0_must_have_identical_constraints_2838\", \"All declarations of '{0}' must have identical constraints.\"),\n        This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value: diag(2839, 1, \"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839\", \"This condition will always return '{0}' since JavaScript compares objects by reference, not value.\"),\n        An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes: diag(2840, 1, \"An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840\", \"An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes\"),\n        The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next: diag(2841, 1, \"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841\", \"The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.\"),\n        _0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation: diag(2842, 1, \"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842\", \"'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?\"),\n        We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here: diag(2843, 1, \"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843\", \"We can only write a type for '{0}' by adding a type for the entire parameter here.\"),\n        Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: diag(2844, 1, \"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844\", \"Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor.\"),\n        This_condition_will_always_return_0: diag(2845, 1, \"This_condition_will_always_return_0_2845\", \"This condition will always return '{0}'.\"),\n        A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead: diag(2846, 1, \"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846\", \"A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?\"),\n        Import_declaration_0_is_using_private_name_1: diag(4e3, 1, \"Import_declaration_0_is_using_private_name_1_4000\", \"Import declaration '{0}' is using private name '{1}'.\"),\n        Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, 1, \"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002\", \"Type parameter '{0}' of exported class has or is using private name '{1}'.\"),\n        Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, 1, \"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004\", \"Type parameter '{0}' of exported interface has or is using private name '{1}'.\"),\n        Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1: diag(4006, 1, \"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006\", \"Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'.\"),\n        Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1: diag(4008, 1, \"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008\", \"Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'.\"),\n        Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1: diag(4010, 1, \"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010\", \"Type parameter '{0}' of public static method from exported class has or is using private name '{1}'.\"),\n        Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1: diag(4012, 1, \"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012\", \"Type parameter '{0}' of public method from exported class has or is using private name '{1}'.\"),\n        Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1: diag(4014, 1, \"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014\", \"Type parameter '{0}' of method from exported interface has or is using private name '{1}'.\"),\n        Type_parameter_0_of_exported_function_has_or_is_using_private_name_1: diag(4016, 1, \"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016\", \"Type parameter '{0}' of exported function has or is using private name '{1}'.\"),\n        Implements_clause_of_exported_class_0_has_or_is_using_private_name_1: diag(4019, 1, \"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019\", \"Implements clause of exported class '{0}' has or is using private name '{1}'.\"),\n        extends_clause_of_exported_class_0_has_or_is_using_private_name_1: diag(4020, 1, \"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020\", \"'extends' clause of exported class '{0}' has or is using private name '{1}'.\"),\n        extends_clause_of_exported_class_has_or_is_using_private_name_0: diag(4021, 1, \"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021\", \"'extends' clause of exported class has or is using private name '{0}'.\"),\n        extends_clause_of_exported_interface_0_has_or_is_using_private_name_1: diag(4022, 1, \"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022\", \"'extends' clause of exported interface '{0}' has or is using private name '{1}'.\"),\n        Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4023, 1, \"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023\", \"Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named.\"),\n        Exported_variable_0_has_or_is_using_name_1_from_private_module_2: diag(4024, 1, \"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024\", \"Exported variable '{0}' has or is using name '{1}' from private module '{2}'.\"),\n        Exported_variable_0_has_or_is_using_private_name_1: diag(4025, 1, \"Exported_variable_0_has_or_is_using_private_name_1_4025\", \"Exported variable '{0}' has or is using private name '{1}'.\"),\n        Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4026, 1, \"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026\", \"Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named.\"),\n        Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4027, 1, \"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027\", \"Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'.\"),\n        Public_static_property_0_of_exported_class_has_or_is_using_private_name_1: diag(4028, 1, \"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028\", \"Public static property '{0}' of exported class has or is using private name '{1}'.\"),\n        Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4029, 1, \"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029\", \"Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named.\"),\n        Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4030, 1, \"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030\", \"Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'.\"),\n        Public_property_0_of_exported_class_has_or_is_using_private_name_1: diag(4031, 1, \"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031\", \"Public property '{0}' of exported class has or is using private name '{1}'.\"),\n        Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2: diag(4032, 1, \"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032\", \"Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'.\"),\n        Property_0_of_exported_interface_has_or_is_using_private_name_1: diag(4033, 1, \"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033\", \"Property '{0}' of exported interface has or is using private name '{1}'.\"),\n        Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4034, 1, \"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034\", \"Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'.\"),\n        Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1: diag(4035, 1, \"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035\", \"Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'.\"),\n        Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4036, 1, \"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036\", \"Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'.\"),\n        Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1: diag(4037, 1, \"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037\", \"Parameter type of public setter '{0}' from exported class has or is using private name '{1}'.\"),\n        Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4038, 1, \"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038\", \"Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named.\"),\n        Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4039, 1, \"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039\", \"Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'.\"),\n        Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1: diag(4040, 1, \"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040\", \"Return type of public static getter '{0}' from exported class has or is using private name '{1}'.\"),\n        Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4041, 1, \"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041\", \"Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named.\"),\n        Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4042, 1, \"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042\", \"Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'.\"),\n        Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1: diag(4043, 1, \"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043\", \"Return type of public getter '{0}' from exported class has or is using private name '{1}'.\"),\n        Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1: diag(4044, 1, \"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044\", \"Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'.\"),\n        Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0: diag(4045, 1, \"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045\", \"Return type of constructor signature from exported interface has or is using private name '{0}'.\"),\n        Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1: diag(4046, 1, \"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046\", \"Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'.\"),\n        Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0: diag(4047, 1, \"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047\", \"Return type of call signature from exported interface has or is using private name '{0}'.\"),\n        Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1: diag(4048, 1, \"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048\", \"Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'.\"),\n        Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0: diag(4049, 1, \"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049\", \"Return type of index signature from exported interface has or is using private name '{0}'.\"),\n        Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named: diag(4050, 1, \"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050\", \"Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named.\"),\n        Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1: diag(4051, 1, \"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051\", \"Return type of public static method from exported class has or is using name '{0}' from private module '{1}'.\"),\n        Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0: diag(4052, 1, \"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052\", \"Return type of public static method from exported class has or is using private name '{0}'.\"),\n        Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named: diag(4053, 1, \"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053\", \"Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named.\"),\n        Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1: diag(4054, 1, \"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054\", \"Return type of public method from exported class has or is using name '{0}' from private module '{1}'.\"),\n        Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0: diag(4055, 1, \"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055\", \"Return type of public method from exported class has or is using private name '{0}'.\"),\n        Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1: diag(4056, 1, \"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056\", \"Return type of method from exported interface has or is using name '{0}' from private module '{1}'.\"),\n        Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0: diag(4057, 1, \"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057\", \"Return type of method from exported interface has or is using private name '{0}'.\"),\n        Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named: diag(4058, 1, \"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058\", \"Return type of exported function has or is using name '{0}' from external module {1} but cannot be named.\"),\n        Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1: diag(4059, 1, \"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059\", \"Return type of exported function has or is using name '{0}' from private module '{1}'.\"),\n        Return_type_of_exported_function_has_or_is_using_private_name_0: diag(4060, 1, \"Return_type_of_exported_function_has_or_is_using_private_name_0_4060\", \"Return type of exported function has or is using private name '{0}'.\"),\n        Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4061, 1, \"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061\", \"Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named.\"),\n        Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4062, 1, \"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062\", \"Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'.\"),\n        Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1: diag(4063, 1, \"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063\", \"Parameter '{0}' of constructor from exported class has or is using private name '{1}'.\"),\n        Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2: diag(4064, 1, \"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064\", \"Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'.\"),\n        Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1: diag(4065, 1, \"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065\", \"Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'.\"),\n        Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2: diag(4066, 1, \"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066\", \"Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'.\"),\n        Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1: diag(4067, 1, \"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067\", \"Parameter '{0}' of call signature from exported interface has or is using private name '{1}'.\"),\n        Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4068, 1, \"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068\", \"Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named.\"),\n        Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4069, 1, \"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069\", \"Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'.\"),\n        Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1: diag(4070, 1, \"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070\", \"Parameter '{0}' of public static method from exported class has or is using private name '{1}'.\"),\n        Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4071, 1, \"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071\", \"Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named.\"),\n        Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4072, 1, \"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072\", \"Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'.\"),\n        Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1: diag(4073, 1, \"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073\", \"Parameter '{0}' of public method from exported class has or is using private name '{1}'.\"),\n        Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2: diag(4074, 1, \"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074\", \"Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'.\"),\n        Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1: diag(4075, 1, \"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075\", \"Parameter '{0}' of method from exported interface has or is using private name '{1}'.\"),\n        Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4076, 1, \"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076\", \"Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named.\"),\n        Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2: diag(4077, 1, \"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077\", \"Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'.\"),\n        Parameter_0_of_exported_function_has_or_is_using_private_name_1: diag(4078, 1, \"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078\", \"Parameter '{0}' of exported function has or is using private name '{1}'.\"),\n        Exported_type_alias_0_has_or_is_using_private_name_1: diag(4081, 1, \"Exported_type_alias_0_has_or_is_using_private_name_1_4081\", \"Exported type alias '{0}' has or is using private name '{1}'.\"),\n        Default_export_of_the_module_has_or_is_using_private_name_0: diag(4082, 1, \"Default_export_of_the_module_has_or_is_using_private_name_0_4082\", \"Default export of the module has or is using private name '{0}'.\"),\n        Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1: diag(4083, 1, \"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083\", \"Type parameter '{0}' of exported type alias has or is using private name '{1}'.\"),\n        Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2: diag(4084, 1, \"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084\", \"Exported type alias '{0}' has or is using private name '{1}' from module {2}.\"),\n        Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1: diag(4085, 1, \"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085\", \"Extends clause for inferred type '{0}' has or is using private name '{1}'.\"),\n        Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict: diag(4090, 1, \"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090\", \"Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict.\"),\n        Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2: diag(4091, 1, \"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091\", \"Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'.\"),\n        Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1: diag(4092, 1, \"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092\", \"Parameter '{0}' of index signature from exported interface has or is using private name '{1}'.\"),\n        Property_0_of_exported_class_expression_may_not_be_private_or_protected: diag(4094, 1, \"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094\", \"Property '{0}' of exported class expression may not be private or protected.\"),\n        Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4095, 1, \"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095\", \"Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named.\"),\n        Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4096, 1, \"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096\", \"Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'.\"),\n        Public_static_method_0_of_exported_class_has_or_is_using_private_name_1: diag(4097, 1, \"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097\", \"Public static method '{0}' of exported class has or is using private name '{1}'.\"),\n        Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4098, 1, \"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098\", \"Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named.\"),\n        Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4099, 1, \"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099\", \"Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'.\"),\n        Public_method_0_of_exported_class_has_or_is_using_private_name_1: diag(4100, 1, \"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100\", \"Public method '{0}' of exported class has or is using private name '{1}'.\"),\n        Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2: diag(4101, 1, \"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101\", \"Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'.\"),\n        Method_0_of_exported_interface_has_or_is_using_private_name_1: diag(4102, 1, \"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102\", \"Method '{0}' of exported interface has or is using private name '{1}'.\"),\n        Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1: diag(4103, 1, \"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103\", \"Type parameter '{0}' of exported mapped object type is using private name '{1}'.\"),\n        The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1: diag(4104, 1, \"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104\", \"The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'.\"),\n        Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter: diag(4105, 1, \"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105\", \"Private or protected member '{0}' cannot be accessed on a type parameter.\"),\n        Parameter_0_of_accessor_has_or_is_using_private_name_1: diag(4106, 1, \"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106\", \"Parameter '{0}' of accessor has or is using private name '{1}'.\"),\n        Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2: diag(4107, 1, \"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107\", \"Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'.\"),\n        Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4108, 1, \"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108\", \"Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named.\"),\n        Type_arguments_for_0_circularly_reference_themselves: diag(4109, 1, \"Type_arguments_for_0_circularly_reference_themselves_4109\", \"Type arguments for '{0}' circularly reference themselves.\"),\n        Tuple_type_arguments_circularly_reference_themselves: diag(4110, 1, \"Tuple_type_arguments_circularly_reference_themselves_4110\", \"Tuple type arguments circularly reference themselves.\"),\n        Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0: diag(4111, 1, \"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111\", \"Property '{0}' comes from an index signature, so it must be accessed with ['{0}'].\"),\n        This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class: diag(4112, 1, \"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112\", \"This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class.\"),\n        This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0: diag(4113, 1, \"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113\", \"This member cannot have an 'override' modifier because it is not declared in the base class '{0}'.\"),\n        This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0: diag(4114, 1, \"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114\", \"This member must have an 'override' modifier because it overrides a member in the base class '{0}'.\"),\n        This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0: diag(4115, 1, \"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115\", \"This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'.\"),\n        This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0: diag(4116, 1, \"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116\", \"This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'.\"),\n        This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1: diag(4117, 1, \"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117\", \"This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?\"),\n        The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized: diag(4118, 1, \"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118\", \"The type of this node cannot be serialized because its property '{0}' cannot be serialized.\"),\n        This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0: diag(4119, 1, \"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119\", \"This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'.\"),\n        This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0: diag(4120, 1, \"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120\", \"This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'.\"),\n        This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class: diag(4121, 1, \"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121\", \"This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class.\"),\n        This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0: diag(4122, 1, \"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122\", \"This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'.\"),\n        This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1: diag(4123, 1, \"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123\", \"This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?\"),\n        Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next: diag(4124, 1, \"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124\", \"Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.\"),\n        resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next: diag(4125, 1, \"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125\", \"'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.\"),\n        The_current_host_does_not_support_the_0_option: diag(5001, 1, \"The_current_host_does_not_support_the_0_option_5001\", \"The current host does not support the '{0}' option.\"),\n        Cannot_find_the_common_subdirectory_path_for_the_input_files: diag(5009, 1, \"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009\", \"Cannot find the common subdirectory path for the input files.\"),\n        File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5010, 1, \"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010\", \"File specification cannot end in a recursive directory wildcard ('**'): '{0}'.\"),\n        Cannot_read_file_0_Colon_1: diag(5012, 1, \"Cannot_read_file_0_Colon_1_5012\", \"Cannot read file '{0}': {1}.\"),\n        Failed_to_parse_file_0_Colon_1: diag(5014, 1, \"Failed_to_parse_file_0_Colon_1_5014\", \"Failed to parse file '{0}': {1}.\"),\n        Unknown_compiler_option_0: diag(5023, 1, \"Unknown_compiler_option_0_5023\", \"Unknown compiler option '{0}'.\"),\n        Compiler_option_0_requires_a_value_of_type_1: diag(5024, 1, \"Compiler_option_0_requires_a_value_of_type_1_5024\", \"Compiler option '{0}' requires a value of type {1}.\"),\n        Unknown_compiler_option_0_Did_you_mean_1: diag(5025, 1, \"Unknown_compiler_option_0_Did_you_mean_1_5025\", \"Unknown compiler option '{0}'. Did you mean '{1}'?\"),\n        Could_not_write_file_0_Colon_1: diag(5033, 1, \"Could_not_write_file_0_Colon_1_5033\", \"Could not write file '{0}': {1}.\"),\n        Option_project_cannot_be_mixed_with_source_files_on_a_command_line: diag(5042, 1, \"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042\", \"Option 'project' cannot be mixed with source files on a command line.\"),\n        Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher: diag(5047, 1, \"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047\", \"Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher.\"),\n        Option_0_cannot_be_specified_when_option_target_is_ES3: diag(5048, 1, \"Option_0_cannot_be_specified_when_option_target_is_ES3_5048\", \"Option '{0}' cannot be specified when option 'target' is 'ES3'.\"),\n        Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided: diag(5051, 1, \"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051\", \"Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided.\"),\n        Option_0_cannot_be_specified_without_specifying_option_1: diag(5052, 1, \"Option_0_cannot_be_specified_without_specifying_option_1_5052\", \"Option '{0}' cannot be specified without specifying option '{1}'.\"),\n        Option_0_cannot_be_specified_with_option_1: diag(5053, 1, \"Option_0_cannot_be_specified_with_option_1_5053\", \"Option '{0}' cannot be specified with option '{1}'.\"),\n        A_tsconfig_json_file_is_already_defined_at_Colon_0: diag(5054, 1, \"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054\", \"A 'tsconfig.json' file is already defined at: '{0}'.\"),\n        Cannot_write_file_0_because_it_would_overwrite_input_file: diag(5055, 1, \"Cannot_write_file_0_because_it_would_overwrite_input_file_5055\", \"Cannot write file '{0}' because it would overwrite input file.\"),\n        Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files: diag(5056, 1, \"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056\", \"Cannot write file '{0}' because it would be overwritten by multiple input files.\"),\n        Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0: diag(5057, 1, \"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057\", \"Cannot find a tsconfig.json file at the specified directory: '{0}'.\"),\n        The_specified_path_does_not_exist_Colon_0: diag(5058, 1, \"The_specified_path_does_not_exist_Colon_0_5058\", \"The specified path does not exist: '{0}'.\"),\n        Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier: diag(5059, 1, \"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059\", \"Invalid value for '--reactNamespace'. '{0}' is not a valid identifier.\"),\n        Pattern_0_can_have_at_most_one_Asterisk_character: diag(5061, 1, \"Pattern_0_can_have_at_most_one_Asterisk_character_5061\", \"Pattern '{0}' can have at most one '*' character.\"),\n        Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character: diag(5062, 1, \"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062\", \"Substitution '{0}' in pattern '{1}' can have at most one '*' character.\"),\n        Substitutions_for_pattern_0_should_be_an_array: diag(5063, 1, \"Substitutions_for_pattern_0_should_be_an_array_5063\", \"Substitutions for pattern '{0}' should be an array.\"),\n        Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2: diag(5064, 1, \"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064\", \"Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'.\"),\n        File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5065, 1, \"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065\", \"File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'.\"),\n        Substitutions_for_pattern_0_shouldn_t_be_an_empty_array: diag(5066, 1, \"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066\", \"Substitutions for pattern '{0}' shouldn't be an empty array.\"),\n        Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name: diag(5067, 1, \"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067\", \"Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name.\"),\n        Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig: diag(5068, 1, \"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068\", \"Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.\"),\n        Option_0_cannot_be_specified_without_specifying_option_1_or_option_2: diag(5069, 1, \"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069\", \"Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'.\"),\n        Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic: diag(5070, 1, \"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070\", \"Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'.\"),\n        Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext: diag(5071, 1, \"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071\", \"Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'.\"),\n        Unknown_build_option_0: diag(5072, 1, \"Unknown_build_option_0_5072\", \"Unknown build option '{0}'.\"),\n        Build_option_0_requires_a_value_of_type_1: diag(5073, 1, \"Build_option_0_requires_a_value_of_type_1_5073\", \"Build option '{0}' requires a value of type {1}.\"),\n        Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified: diag(5074, 1, \"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074\", \"Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified.\"),\n        _0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2: diag(5075, 1, \"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075\", \"'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'.\"),\n        _0_and_1_operations_cannot_be_mixed_without_parentheses: diag(5076, 1, \"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076\", \"'{0}' and '{1}' operations cannot be mixed without parentheses.\"),\n        Unknown_build_option_0_Did_you_mean_1: diag(5077, 1, \"Unknown_build_option_0_Did_you_mean_1_5077\", \"Unknown build option '{0}'. Did you mean '{1}'?\"),\n        Unknown_watch_option_0: diag(5078, 1, \"Unknown_watch_option_0_5078\", \"Unknown watch option '{0}'.\"),\n        Unknown_watch_option_0_Did_you_mean_1: diag(5079, 1, \"Unknown_watch_option_0_Did_you_mean_1_5079\", \"Unknown watch option '{0}'. Did you mean '{1}'?\"),\n        Watch_option_0_requires_a_value_of_type_1: diag(5080, 1, \"Watch_option_0_requires_a_value_of_type_1_5080\", \"Watch option '{0}' requires a value of type {1}.\"),\n        Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0: diag(5081, 1, \"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081\", \"Cannot find a tsconfig.json file at the current directory: {0}.\"),\n        _0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1: diag(5082, 1, \"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082\", \"'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'.\"),\n        Cannot_read_file_0: diag(5083, 1, \"Cannot_read_file_0_5083\", \"Cannot read file '{0}'.\"),\n        Tuple_members_must_all_have_names_or_all_not_have_names: diag(5084, 1, \"Tuple_members_must_all_have_names_or_all_not_have_names_5084\", \"Tuple members must all have names or all not have names.\"),\n        A_tuple_member_cannot_be_both_optional_and_rest: diag(5085, 1, \"A_tuple_member_cannot_be_both_optional_and_rest_5085\", \"A tuple member cannot be both optional and rest.\"),\n        A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type: diag(5086, 1, \"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086\", \"A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type.\"),\n        A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type: diag(5087, 1, \"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087\", \"A labeled tuple element is declared as rest with a '...' before the name, rather than before the type.\"),\n        The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary: diag(5088, 1, \"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088\", \"The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary.\"),\n        Option_0_cannot_be_specified_when_option_jsx_is_1: diag(5089, 1, \"Option_0_cannot_be_specified_when_option_jsx_is_1_5089\", \"Option '{0}' cannot be specified when option 'jsx' is '{1}'.\"),\n        Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash: diag(5090, 1, \"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090\", \"Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?\"),\n        Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled: diag(5091, 1, \"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091\", \"Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled.\"),\n        The_root_value_of_a_0_file_must_be_an_object: diag(5092, 1, \"The_root_value_of_a_0_file_must_be_an_object_5092\", \"The root value of a '{0}' file must be an object.\"),\n        Compiler_option_0_may_only_be_used_with_build: diag(5093, 1, \"Compiler_option_0_may_only_be_used_with_build_5093\", \"Compiler option '--{0}' may only be used with '--build'.\"),\n        Compiler_option_0_may_not_be_used_with_build: diag(5094, 1, \"Compiler_option_0_may_not_be_used_with_build_5094\", \"Compiler option '--{0}' may not be used with '--build'.\"),\n        Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later: diag(5095, 1, \"Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later_5095\", \"Option '{0}' can only be used when 'module' is set to 'es2015' or later.\"),\n        Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set: diag(5096, 1, \"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096\", \"Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set.\"),\n        An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled: diag(5097, 1, \"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097\", \"An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled.\"),\n        Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler: diag(5098, 1, \"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098\", \"Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'.\"),\n        Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error: diag(5101, 1, \"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101\", `Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '\"ignoreDeprecations\": \"{2}\"' to silence this error.`),\n        Option_0_has_been_removed_Please_remove_it_from_your_configuration: diag(5102, 1, \"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102\", \"Option '{0}' has been removed. Please remove it from your configuration.\"),\n        Invalid_value_for_ignoreDeprecations: diag(5103, 1, \"Invalid_value_for_ignoreDeprecations_5103\", \"Invalid value for '--ignoreDeprecations'.\"),\n        Option_0_is_redundant_and_cannot_be_specified_with_option_1: diag(5104, 1, \"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104\", \"Option '{0}' is redundant and cannot be specified with option '{1}'.\"),\n        Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System: diag(5105, 1, \"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105\", \"Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'.\"),\n        Use_0_instead: diag(5106, 3, \"Use_0_instead_5106\", \"Use '{0}' instead.\"),\n        Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error: diag(5107, 1, \"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107\", `Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '\"ignoreDeprecations\": \"{3}\"' to silence this error.`),\n        Option_0_1_has_been_removed_Please_remove_it_from_your_configuration: diag(5108, 1, \"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108\", \"Option '{0}={1}' has been removed. Please remove it from your configuration.\"),\n        Generates_a_sourcemap_for_each_corresponding_d_ts_file: diag(6e3, 3, \"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000\", \"Generates a sourcemap for each corresponding '.d.ts' file.\"),\n        Concatenate_and_emit_output_to_single_file: diag(6001, 3, \"Concatenate_and_emit_output_to_single_file_6001\", \"Concatenate and emit output to single file.\"),\n        Generates_corresponding_d_ts_file: diag(6002, 3, \"Generates_corresponding_d_ts_file_6002\", \"Generates corresponding '.d.ts' file.\"),\n        Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations: diag(6004, 3, \"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004\", \"Specify the location where debugger should locate TypeScript files instead of source locations.\"),\n        Watch_input_files: diag(6005, 3, \"Watch_input_files_6005\", \"Watch input files.\"),\n        Redirect_output_structure_to_the_directory: diag(6006, 3, \"Redirect_output_structure_to_the_directory_6006\", \"Redirect output structure to the directory.\"),\n        Do_not_erase_const_enum_declarations_in_generated_code: diag(6007, 3, \"Do_not_erase_const_enum_declarations_in_generated_code_6007\", \"Do not erase const enum declarations in generated code.\"),\n        Do_not_emit_outputs_if_any_errors_were_reported: diag(6008, 3, \"Do_not_emit_outputs_if_any_errors_were_reported_6008\", \"Do not emit outputs if any errors were reported.\"),\n        Do_not_emit_comments_to_output: diag(6009, 3, \"Do_not_emit_comments_to_output_6009\", \"Do not emit comments to output.\"),\n        Do_not_emit_outputs: diag(6010, 3, \"Do_not_emit_outputs_6010\", \"Do not emit outputs.\"),\n        Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking: diag(6011, 3, \"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011\", \"Allow default imports from modules with no default export. This does not affect code emit, just typechecking.\"),\n        Skip_type_checking_of_declaration_files: diag(6012, 3, \"Skip_type_checking_of_declaration_files_6012\", \"Skip type checking of declaration files.\"),\n        Do_not_resolve_the_real_path_of_symlinks: diag(6013, 3, \"Do_not_resolve_the_real_path_of_symlinks_6013\", \"Do not resolve the real path of symlinks.\"),\n        Only_emit_d_ts_declaration_files: diag(6014, 3, \"Only_emit_d_ts_declaration_files_6014\", \"Only emit '.d.ts' declaration files.\"),\n        Specify_ECMAScript_target_version: diag(6015, 3, \"Specify_ECMAScript_target_version_6015\", \"Specify ECMAScript target version.\"),\n        Specify_module_code_generation: diag(6016, 3, \"Specify_module_code_generation_6016\", \"Specify module code generation.\"),\n        Print_this_message: diag(6017, 3, \"Print_this_message_6017\", \"Print this message.\"),\n        Print_the_compiler_s_version: diag(6019, 3, \"Print_the_compiler_s_version_6019\", \"Print the compiler's version.\"),\n        Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json: diag(6020, 3, \"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020\", \"Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'.\"),\n        Syntax_Colon_0: diag(6023, 3, \"Syntax_Colon_0_6023\", \"Syntax: {0}\"),\n        options: diag(6024, 3, \"options_6024\", \"options\"),\n        file: diag(6025, 3, \"file_6025\", \"file\"),\n        Examples_Colon_0: diag(6026, 3, \"Examples_Colon_0_6026\", \"Examples: {0}\"),\n        Options_Colon: diag(6027, 3, \"Options_Colon_6027\", \"Options:\"),\n        Version_0: diag(6029, 3, \"Version_0_6029\", \"Version {0}\"),\n        Insert_command_line_options_and_files_from_a_file: diag(6030, 3, \"Insert_command_line_options_and_files_from_a_file_6030\", \"Insert command line options and files from a file.\"),\n        Starting_compilation_in_watch_mode: diag(6031, 3, \"Starting_compilation_in_watch_mode_6031\", \"Starting compilation in watch mode...\"),\n        File_change_detected_Starting_incremental_compilation: diag(6032, 3, \"File_change_detected_Starting_incremental_compilation_6032\", \"File change detected. Starting incremental compilation...\"),\n        KIND: diag(6034, 3, \"KIND_6034\", \"KIND\"),\n        FILE: diag(6035, 3, \"FILE_6035\", \"FILE\"),\n        VERSION: diag(6036, 3, \"VERSION_6036\", \"VERSION\"),\n        LOCATION: diag(6037, 3, \"LOCATION_6037\", \"LOCATION\"),\n        DIRECTORY: diag(6038, 3, \"DIRECTORY_6038\", \"DIRECTORY\"),\n        STRATEGY: diag(6039, 3, \"STRATEGY_6039\", \"STRATEGY\"),\n        FILE_OR_DIRECTORY: diag(6040, 3, \"FILE_OR_DIRECTORY_6040\", \"FILE OR DIRECTORY\"),\n        Errors_Files: diag(6041, 3, \"Errors_Files_6041\", \"Errors  Files\"),\n        Generates_corresponding_map_file: diag(6043, 3, \"Generates_corresponding_map_file_6043\", \"Generates corresponding '.map' file.\"),\n        Compiler_option_0_expects_an_argument: diag(6044, 1, \"Compiler_option_0_expects_an_argument_6044\", \"Compiler option '{0}' expects an argument.\"),\n        Unterminated_quoted_string_in_response_file_0: diag(6045, 1, \"Unterminated_quoted_string_in_response_file_0_6045\", \"Unterminated quoted string in response file '{0}'.\"),\n        Argument_for_0_option_must_be_Colon_1: diag(6046, 1, \"Argument_for_0_option_must_be_Colon_1_6046\", \"Argument for '{0}' option must be: {1}.\"),\n        Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1: diag(6048, 1, \"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048\", \"Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'.\"),\n        Unable_to_open_file_0: diag(6050, 1, \"Unable_to_open_file_0_6050\", \"Unable to open file '{0}'.\"),\n        Corrupted_locale_file_0: diag(6051, 1, \"Corrupted_locale_file_0_6051\", \"Corrupted locale file {0}.\"),\n        Raise_error_on_expressions_and_declarations_with_an_implied_any_type: diag(6052, 3, \"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052\", \"Raise error on expressions and declarations with an implied 'any' type.\"),\n        File_0_not_found: diag(6053, 1, \"File_0_not_found_6053\", \"File '{0}' not found.\"),\n        File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1: diag(6054, 1, \"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054\", \"File '{0}' has an unsupported extension. The only supported extensions are {1}.\"),\n        Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures: diag(6055, 3, \"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055\", \"Suppress noImplicitAny errors for indexing objects lacking index signatures.\"),\n        Do_not_emit_declarations_for_code_that_has_an_internal_annotation: diag(6056, 3, \"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056\", \"Do not emit declarations for code that has an '@internal' annotation.\"),\n        Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir: diag(6058, 3, \"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058\", \"Specify the root directory of input files. Use to control the output directory structure with --outDir.\"),\n        File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files: diag(6059, 1, \"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059\", \"File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files.\"),\n        Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix: diag(6060, 3, \"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060\", \"Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix).\"),\n        NEWLINE: diag(6061, 3, \"NEWLINE_6061\", \"NEWLINE\"),\n        Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line: diag(6064, 1, \"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064\", \"Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line.\"),\n        Enables_experimental_support_for_ES7_decorators: diag(6065, 3, \"Enables_experimental_support_for_ES7_decorators_6065\", \"Enables experimental support for ES7 decorators.\"),\n        Enables_experimental_support_for_emitting_type_metadata_for_decorators: diag(6066, 3, \"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066\", \"Enables experimental support for emitting type metadata for decorators.\"),\n        Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file: diag(6070, 3, \"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070\", \"Initializes a TypeScript project and creates a tsconfig.json file.\"),\n        Successfully_created_a_tsconfig_json_file: diag(6071, 3, \"Successfully_created_a_tsconfig_json_file_6071\", \"Successfully created a tsconfig.json file.\"),\n        Suppress_excess_property_checks_for_object_literals: diag(6072, 3, \"Suppress_excess_property_checks_for_object_literals_6072\", \"Suppress excess property checks for object literals.\"),\n        Stylize_errors_and_messages_using_color_and_context_experimental: diag(6073, 3, \"Stylize_errors_and_messages_using_color_and_context_experimental_6073\", \"Stylize errors and messages using color and context (experimental).\"),\n        Do_not_report_errors_on_unused_labels: diag(6074, 3, \"Do_not_report_errors_on_unused_labels_6074\", \"Do not report errors on unused labels.\"),\n        Report_error_when_not_all_code_paths_in_function_return_a_value: diag(6075, 3, \"Report_error_when_not_all_code_paths_in_function_return_a_value_6075\", \"Report error when not all code paths in function return a value.\"),\n        Report_errors_for_fallthrough_cases_in_switch_statement: diag(6076, 3, \"Report_errors_for_fallthrough_cases_in_switch_statement_6076\", \"Report errors for fallthrough cases in switch statement.\"),\n        Do_not_report_errors_on_unreachable_code: diag(6077, 3, \"Do_not_report_errors_on_unreachable_code_6077\", \"Do not report errors on unreachable code.\"),\n        Disallow_inconsistently_cased_references_to_the_same_file: diag(6078, 3, \"Disallow_inconsistently_cased_references_to_the_same_file_6078\", \"Disallow inconsistently-cased references to the same file.\"),\n        Specify_library_files_to_be_included_in_the_compilation: diag(6079, 3, \"Specify_library_files_to_be_included_in_the_compilation_6079\", \"Specify library files to be included in the compilation.\"),\n        Specify_JSX_code_generation: diag(6080, 3, \"Specify_JSX_code_generation_6080\", \"Specify JSX code generation.\"),\n        File_0_has_an_unsupported_extension_so_skipping_it: diag(6081, 3, \"File_0_has_an_unsupported_extension_so_skipping_it_6081\", \"File '{0}' has an unsupported extension, so skipping it.\"),\n        Only_amd_and_system_modules_are_supported_alongside_0: diag(6082, 1, \"Only_amd_and_system_modules_are_supported_alongside_0_6082\", \"Only 'amd' and 'system' modules are supported alongside --{0}.\"),\n        Base_directory_to_resolve_non_absolute_module_names: diag(6083, 3, \"Base_directory_to_resolve_non_absolute_module_names_6083\", \"Base directory to resolve non-absolute module names.\"),\n        Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit: diag(6084, 3, \"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084\", \"[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit\"),\n        Enable_tracing_of_the_name_resolution_process: diag(6085, 3, \"Enable_tracing_of_the_name_resolution_process_6085\", \"Enable tracing of the name resolution process.\"),\n        Resolving_module_0_from_1: diag(6086, 3, \"Resolving_module_0_from_1_6086\", \"======== Resolving module '{0}' from '{1}'. ========\"),\n        Explicitly_specified_module_resolution_kind_Colon_0: diag(6087, 3, \"Explicitly_specified_module_resolution_kind_Colon_0_6087\", \"Explicitly specified module resolution kind: '{0}'.\"),\n        Module_resolution_kind_is_not_specified_using_0: diag(6088, 3, \"Module_resolution_kind_is_not_specified_using_0_6088\", \"Module resolution kind is not specified, using '{0}'.\"),\n        Module_name_0_was_successfully_resolved_to_1: diag(6089, 3, \"Module_name_0_was_successfully_resolved_to_1_6089\", \"======== Module name '{0}' was successfully resolved to '{1}'. ========\"),\n        Module_name_0_was_not_resolved: diag(6090, 3, \"Module_name_0_was_not_resolved_6090\", \"======== Module name '{0}' was not resolved. ========\"),\n        paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0: diag(6091, 3, \"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091\", \"'paths' option is specified, looking for a pattern to match module name '{0}'.\"),\n        Module_name_0_matched_pattern_1: diag(6092, 3, \"Module_name_0_matched_pattern_1_6092\", \"Module name '{0}', matched pattern '{1}'.\"),\n        Trying_substitution_0_candidate_module_location_Colon_1: diag(6093, 3, \"Trying_substitution_0_candidate_module_location_Colon_1_6093\", \"Trying substitution '{0}', candidate module location: '{1}'.\"),\n        Resolving_module_name_0_relative_to_base_url_1_2: diag(6094, 3, \"Resolving_module_name_0_relative_to_base_url_1_2_6094\", \"Resolving module name '{0}' relative to base url '{1}' - '{2}'.\"),\n        Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1: diag(6095, 3, \"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095\", \"Loading module as file / folder, candidate module location '{0}', target file types: {1}.\"),\n        File_0_does_not_exist: diag(6096, 3, \"File_0_does_not_exist_6096\", \"File '{0}' does not exist.\"),\n        File_0_exists_use_it_as_a_name_resolution_result: diag(6097, 3, \"File_0_exists_use_it_as_a_name_resolution_result_6097\", \"File '{0}' exists - use it as a name resolution result.\"),\n        Loading_module_0_from_node_modules_folder_target_file_types_Colon_1: diag(6098, 3, \"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098\", \"Loading module '{0}' from 'node_modules' folder, target file types: {1}.\"),\n        Found_package_json_at_0: diag(6099, 3, \"Found_package_json_at_0_6099\", \"Found 'package.json' at '{0}'.\"),\n        package_json_does_not_have_a_0_field: diag(6100, 3, \"package_json_does_not_have_a_0_field_6100\", \"'package.json' does not have a '{0}' field.\"),\n        package_json_has_0_field_1_that_references_2: diag(6101, 3, \"package_json_has_0_field_1_that_references_2_6101\", \"'package.json' has '{0}' field '{1}' that references '{2}'.\"),\n        Allow_javascript_files_to_be_compiled: diag(6102, 3, \"Allow_javascript_files_to_be_compiled_6102\", \"Allow javascript files to be compiled.\"),\n        Checking_if_0_is_the_longest_matching_prefix_for_1_2: diag(6104, 3, \"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104\", \"Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'.\"),\n        Expected_type_of_0_field_in_package_json_to_be_1_got_2: diag(6105, 3, \"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105\", \"Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'.\"),\n        baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1: diag(6106, 3, \"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106\", \"'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'.\"),\n        rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0: diag(6107, 3, \"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107\", \"'rootDirs' option is set, using it to resolve relative module name '{0}'.\"),\n        Longest_matching_prefix_for_0_is_1: diag(6108, 3, \"Longest_matching_prefix_for_0_is_1_6108\", \"Longest matching prefix for '{0}' is '{1}'.\"),\n        Loading_0_from_the_root_dir_1_candidate_location_2: diag(6109, 3, \"Loading_0_from_the_root_dir_1_candidate_location_2_6109\", \"Loading '{0}' from the root dir '{1}', candidate location '{2}'.\"),\n        Trying_other_entries_in_rootDirs: diag(6110, 3, \"Trying_other_entries_in_rootDirs_6110\", \"Trying other entries in 'rootDirs'.\"),\n        Module_resolution_using_rootDirs_has_failed: diag(6111, 3, \"Module_resolution_using_rootDirs_has_failed_6111\", \"Module resolution using 'rootDirs' has failed.\"),\n        Do_not_emit_use_strict_directives_in_module_output: diag(6112, 3, \"Do_not_emit_use_strict_directives_in_module_output_6112\", \"Do not emit 'use strict' directives in module output.\"),\n        Enable_strict_null_checks: diag(6113, 3, \"Enable_strict_null_checks_6113\", \"Enable strict null checks.\"),\n        Unknown_option_excludes_Did_you_mean_exclude: diag(6114, 1, \"Unknown_option_excludes_Did_you_mean_exclude_6114\", \"Unknown option 'excludes'. Did you mean 'exclude'?\"),\n        Raise_error_on_this_expressions_with_an_implied_any_type: diag(6115, 3, \"Raise_error_on_this_expressions_with_an_implied_any_type_6115\", \"Raise error on 'this' expressions with an implied 'any' type.\"),\n        Resolving_type_reference_directive_0_containing_file_1_root_directory_2: diag(6116, 3, \"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116\", \"======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========\"),\n        Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2: diag(6119, 3, \"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119\", \"======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========\"),\n        Type_reference_directive_0_was_not_resolved: diag(6120, 3, \"Type_reference_directive_0_was_not_resolved_6120\", \"======== Type reference directive '{0}' was not resolved. ========\"),\n        Resolving_with_primary_search_path_0: diag(6121, 3, \"Resolving_with_primary_search_path_0_6121\", \"Resolving with primary search path '{0}'.\"),\n        Root_directory_cannot_be_determined_skipping_primary_search_paths: diag(6122, 3, \"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122\", \"Root directory cannot be determined, skipping primary search paths.\"),\n        Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set: diag(6123, 3, \"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123\", \"======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========\"),\n        Type_declaration_files_to_be_included_in_compilation: diag(6124, 3, \"Type_declaration_files_to_be_included_in_compilation_6124\", \"Type declaration files to be included in compilation.\"),\n        Looking_up_in_node_modules_folder_initial_location_0: diag(6125, 3, \"Looking_up_in_node_modules_folder_initial_location_0_6125\", \"Looking up in 'node_modules' folder, initial location '{0}'.\"),\n        Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder: diag(6126, 3, \"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126\", \"Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder.\"),\n        Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1: diag(6127, 3, \"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127\", \"======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========\"),\n        Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set: diag(6128, 3, \"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128\", \"======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========\"),\n        Resolving_real_path_for_0_result_1: diag(6130, 3, \"Resolving_real_path_for_0_result_1_6130\", \"Resolving real path for '{0}', result '{1}'.\"),\n        Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system: diag(6131, 1, \"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131\", \"Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'.\"),\n        File_name_0_has_a_1_extension_stripping_it: diag(6132, 3, \"File_name_0_has_a_1_extension_stripping_it_6132\", \"File name '{0}' has a '{1}' extension - stripping it.\"),\n        _0_is_declared_but_its_value_is_never_read: diag(6133, 1, \"_0_is_declared_but_its_value_is_never_read_6133\", \"'{0}' is declared but its value is never read.\", true),\n        Report_errors_on_unused_locals: diag(6134, 3, \"Report_errors_on_unused_locals_6134\", \"Report errors on unused locals.\"),\n        Report_errors_on_unused_parameters: diag(6135, 3, \"Report_errors_on_unused_parameters_6135\", \"Report errors on unused parameters.\"),\n        The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files: diag(6136, 3, \"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136\", \"The maximum dependency depth to search under node_modules and load JavaScript files.\"),\n        Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1: diag(6137, 1, \"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137\", \"Cannot import type declaration files. Consider importing '{0}' instead of '{1}'.\"),\n        Property_0_is_declared_but_its_value_is_never_read: diag(6138, 1, \"Property_0_is_declared_but_its_value_is_never_read_6138\", \"Property '{0}' is declared but its value is never read.\", true),\n        Import_emit_helpers_from_tslib: diag(6139, 3, \"Import_emit_helpers_from_tslib_6139\", \"Import emit helpers from 'tslib'.\"),\n        Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2: diag(6140, 1, \"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140\", \"Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'.\"),\n        Parse_in_strict_mode_and_emit_use_strict_for_each_source_file: diag(6141, 3, \"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141\", 'Parse in strict mode and emit \"use strict\" for each source file.'),\n        Module_0_was_resolved_to_1_but_jsx_is_not_set: diag(6142, 1, \"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142\", \"Module '{0}' was resolved to '{1}', but '--jsx' is not set.\"),\n        Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1: diag(6144, 3, \"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144\", \"Module '{0}' was resolved as locally declared ambient module in file '{1}'.\"),\n        Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified: diag(6145, 3, \"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145\", \"Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified.\"),\n        Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h: diag(6146, 3, \"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146\", \"Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'.\"),\n        Resolution_for_module_0_was_found_in_cache_from_location_1: diag(6147, 3, \"Resolution_for_module_0_was_found_in_cache_from_location_1_6147\", \"Resolution for module '{0}' was found in cache from location '{1}'.\"),\n        Directory_0_does_not_exist_skipping_all_lookups_in_it: diag(6148, 3, \"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148\", \"Directory '{0}' does not exist, skipping all lookups in it.\"),\n        Show_diagnostic_information: diag(6149, 3, \"Show_diagnostic_information_6149\", \"Show diagnostic information.\"),\n        Show_verbose_diagnostic_information: diag(6150, 3, \"Show_verbose_diagnostic_information_6150\", \"Show verbose diagnostic information.\"),\n        Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file: diag(6151, 3, \"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151\", \"Emit a single file with source maps instead of having a separate file.\"),\n        Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set: diag(6152, 3, \"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152\", \"Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set.\"),\n        Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule: diag(6153, 3, \"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153\", \"Transpile each file as a separate module (similar to 'ts.transpileModule').\"),\n        Print_names_of_generated_files_part_of_the_compilation: diag(6154, 3, \"Print_names_of_generated_files_part_of_the_compilation_6154\", \"Print names of generated files part of the compilation.\"),\n        Print_names_of_files_part_of_the_compilation: diag(6155, 3, \"Print_names_of_files_part_of_the_compilation_6155\", \"Print names of files part of the compilation.\"),\n        The_locale_used_when_displaying_messages_to_the_user_e_g_en_us: diag(6156, 3, \"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156\", \"The locale used when displaying messages to the user (e.g. 'en-us')\"),\n        Do_not_generate_custom_helper_functions_like_extends_in_compiled_output: diag(6157, 3, \"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157\", \"Do not generate custom helper functions like '__extends' in compiled output.\"),\n        Do_not_include_the_default_library_file_lib_d_ts: diag(6158, 3, \"Do_not_include_the_default_library_file_lib_d_ts_6158\", \"Do not include the default library file (lib.d.ts).\"),\n        Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files: diag(6159, 3, \"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159\", \"Do not add triple-slash references or imported modules to the list of compiled files.\"),\n        Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files: diag(6160, 3, \"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160\", \"[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files.\"),\n        List_of_folders_to_include_type_definitions_from: diag(6161, 3, \"List_of_folders_to_include_type_definitions_from_6161\", \"List of folders to include type definitions from.\"),\n        Disable_size_limitations_on_JavaScript_projects: diag(6162, 3, \"Disable_size_limitations_on_JavaScript_projects_6162\", \"Disable size limitations on JavaScript projects.\"),\n        The_character_set_of_the_input_files: diag(6163, 3, \"The_character_set_of_the_input_files_6163\", \"The character set of the input files.\"),\n        Do_not_truncate_error_messages: diag(6165, 3, \"Do_not_truncate_error_messages_6165\", \"Do not truncate error messages.\"),\n        Output_directory_for_generated_declaration_files: diag(6166, 3, \"Output_directory_for_generated_declaration_files_6166\", \"Output directory for generated declaration files.\"),\n        A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl: diag(6167, 3, \"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167\", \"A series of entries which re-map imports to lookup locations relative to the 'baseUrl'.\"),\n        List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime: diag(6168, 3, \"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168\", \"List of root folders whose combined content represents the structure of the project at runtime.\"),\n        Show_all_compiler_options: diag(6169, 3, \"Show_all_compiler_options_6169\", \"Show all compiler options.\"),\n        Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file: diag(6170, 3, \"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170\", \"[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file\"),\n        Command_line_Options: diag(6171, 3, \"Command_line_Options_6171\", \"Command-line Options\"),\n        Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3: diag(6179, 3, \"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179\", \"Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'.\"),\n        Enable_all_strict_type_checking_options: diag(6180, 3, \"Enable_all_strict_type_checking_options_6180\", \"Enable all strict type-checking options.\"),\n        Scoped_package_detected_looking_in_0: diag(6182, 3, \"Scoped_package_detected_looking_in_0_6182\", \"Scoped package detected, looking in '{0}'\"),\n        Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2: diag(6183, 3, \"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183\", \"Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'.\"),\n        Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3: diag(6184, 3, \"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184\", \"Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'.\"),\n        Enable_strict_checking_of_function_types: diag(6186, 3, \"Enable_strict_checking_of_function_types_6186\", \"Enable strict checking of function types.\"),\n        Enable_strict_checking_of_property_initialization_in_classes: diag(6187, 3, \"Enable_strict_checking_of_property_initialization_in_classes_6187\", \"Enable strict checking of property initialization in classes.\"),\n        Numeric_separators_are_not_allowed_here: diag(6188, 1, \"Numeric_separators_are_not_allowed_here_6188\", \"Numeric separators are not allowed here.\"),\n        Multiple_consecutive_numeric_separators_are_not_permitted: diag(6189, 1, \"Multiple_consecutive_numeric_separators_are_not_permitted_6189\", \"Multiple consecutive numeric separators are not permitted.\"),\n        Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen: diag(6191, 3, \"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191\", \"Whether to keep outdated console output in watch mode instead of clearing the screen.\"),\n        All_imports_in_import_declaration_are_unused: diag(6192, 1, \"All_imports_in_import_declaration_are_unused_6192\", \"All imports in import declaration are unused.\", true),\n        Found_1_error_Watching_for_file_changes: diag(6193, 3, \"Found_1_error_Watching_for_file_changes_6193\", \"Found 1 error. Watching for file changes.\"),\n        Found_0_errors_Watching_for_file_changes: diag(6194, 3, \"Found_0_errors_Watching_for_file_changes_6194\", \"Found {0} errors. Watching for file changes.\"),\n        Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols: diag(6195, 3, \"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195\", \"Resolve 'keyof' to string valued property names only (no numbers or symbols).\"),\n        _0_is_declared_but_never_used: diag(6196, 1, \"_0_is_declared_but_never_used_6196\", \"'{0}' is declared but never used.\", true),\n        Include_modules_imported_with_json_extension: diag(6197, 3, \"Include_modules_imported_with_json_extension_6197\", \"Include modules imported with '.json' extension\"),\n        All_destructured_elements_are_unused: diag(6198, 1, \"All_destructured_elements_are_unused_6198\", \"All destructured elements are unused.\", true),\n        All_variables_are_unused: diag(6199, 1, \"All_variables_are_unused_6199\", \"All variables are unused.\", true),\n        Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0: diag(6200, 1, \"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200\", \"Definitions of the following identifiers conflict with those in another file: {0}\"),\n        Conflicts_are_in_this_file: diag(6201, 3, \"Conflicts_are_in_this_file_6201\", \"Conflicts are in this file.\"),\n        Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0: diag(6202, 1, \"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202\", \"Project references may not form a circular graph. Cycle detected: {0}\"),\n        _0_was_also_declared_here: diag(6203, 3, \"_0_was_also_declared_here_6203\", \"'{0}' was also declared here.\"),\n        and_here: diag(6204, 3, \"and_here_6204\", \"and here.\"),\n        All_type_parameters_are_unused: diag(6205, 1, \"All_type_parameters_are_unused_6205\", \"All type parameters are unused.\"),\n        package_json_has_a_typesVersions_field_with_version_specific_path_mappings: diag(6206, 3, \"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206\", \"'package.json' has a 'typesVersions' field with version-specific path mappings.\"),\n        package_json_does_not_have_a_typesVersions_entry_that_matches_version_0: diag(6207, 3, \"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207\", \"'package.json' does not have a 'typesVersions' entry that matches version '{0}'.\"),\n        package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2: diag(6208, 3, \"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208\", \"'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'.\"),\n        package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range: diag(6209, 3, \"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209\", \"'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range.\"),\n        An_argument_for_0_was_not_provided: diag(6210, 3, \"An_argument_for_0_was_not_provided_6210\", \"An argument for '{0}' was not provided.\"),\n        An_argument_matching_this_binding_pattern_was_not_provided: diag(6211, 3, \"An_argument_matching_this_binding_pattern_was_not_provided_6211\", \"An argument matching this binding pattern was not provided.\"),\n        Did_you_mean_to_call_this_expression: diag(6212, 3, \"Did_you_mean_to_call_this_expression_6212\", \"Did you mean to call this expression?\"),\n        Did_you_mean_to_use_new_with_this_expression: diag(6213, 3, \"Did_you_mean_to_use_new_with_this_expression_6213\", \"Did you mean to use 'new' with this expression?\"),\n        Enable_strict_bind_call_and_apply_methods_on_functions: diag(6214, 3, \"Enable_strict_bind_call_and_apply_methods_on_functions_6214\", \"Enable strict 'bind', 'call', and 'apply' methods on functions.\"),\n        Using_compiler_options_of_project_reference_redirect_0: diag(6215, 3, \"Using_compiler_options_of_project_reference_redirect_0_6215\", \"Using compiler options of project reference redirect '{0}'.\"),\n        Found_1_error: diag(6216, 3, \"Found_1_error_6216\", \"Found 1 error.\"),\n        Found_0_errors: diag(6217, 3, \"Found_0_errors_6217\", \"Found {0} errors.\"),\n        Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2: diag(6218, 3, \"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218\", \"======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========\"),\n        Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3: diag(6219, 3, \"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219\", \"======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========\"),\n        package_json_had_a_falsy_0_field: diag(6220, 3, \"package_json_had_a_falsy_0_field_6220\", \"'package.json' had a falsy '{0}' field.\"),\n        Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects: diag(6221, 3, \"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221\", \"Disable use of source files instead of declaration files from referenced projects.\"),\n        Emit_class_fields_with_Define_instead_of_Set: diag(6222, 3, \"Emit_class_fields_with_Define_instead_of_Set_6222\", \"Emit class fields with Define instead of Set.\"),\n        Generates_a_CPU_profile: diag(6223, 3, \"Generates_a_CPU_profile_6223\", \"Generates a CPU profile.\"),\n        Disable_solution_searching_for_this_project: diag(6224, 3, \"Disable_solution_searching_for_this_project_6224\", \"Disable solution searching for this project.\"),\n        Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory: diag(6225, 3, \"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225\", \"Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'.\"),\n        Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling: diag(6226, 3, \"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226\", \"Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'.\"),\n        Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize: diag(6227, 3, \"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227\", \"Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'.\"),\n        Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3: diag(6229, 1, \"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229\", \"Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'.\"),\n        Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line: diag(6230, 1, \"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230\", \"Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line.\"),\n        Could_not_resolve_the_path_0_with_the_extensions_Colon_1: diag(6231, 1, \"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231\", \"Could not resolve the path '{0}' with the extensions: {1}.\"),\n        Declaration_augments_declaration_in_another_file_This_cannot_be_serialized: diag(6232, 1, \"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232\", \"Declaration augments declaration in another file. This cannot be serialized.\"),\n        This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file: diag(6233, 1, \"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233\", \"This is the declaration being augmented. Consider moving the augmenting declaration into the same file.\"),\n        This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without: diag(6234, 1, \"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234\", \"This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?\"),\n        Disable_loading_referenced_projects: diag(6235, 3, \"Disable_loading_referenced_projects_6235\", \"Disable loading referenced projects.\"),\n        Arguments_for_the_rest_parameter_0_were_not_provided: diag(6236, 1, \"Arguments_for_the_rest_parameter_0_were_not_provided_6236\", \"Arguments for the rest parameter '{0}' were not provided.\"),\n        Generates_an_event_trace_and_a_list_of_types: diag(6237, 3, \"Generates_an_event_trace_and_a_list_of_types_6237\", \"Generates an event trace and a list of types.\"),\n        Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react: diag(6238, 1, \"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238\", \"Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react\"),\n        File_0_exists_according_to_earlier_cached_lookups: diag(6239, 3, \"File_0_exists_according_to_earlier_cached_lookups_6239\", \"File '{0}' exists according to earlier cached lookups.\"),\n        File_0_does_not_exist_according_to_earlier_cached_lookups: diag(6240, 3, \"File_0_does_not_exist_according_to_earlier_cached_lookups_6240\", \"File '{0}' does not exist according to earlier cached lookups.\"),\n        Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1: diag(6241, 3, \"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241\", \"Resolution for type reference directive '{0}' was found in cache from location '{1}'.\"),\n        Resolving_type_reference_directive_0_containing_file_1: diag(6242, 3, \"Resolving_type_reference_directive_0_containing_file_1_6242\", \"======== Resolving type reference directive '{0}', containing file '{1}'. ========\"),\n        Interpret_optional_property_types_as_written_rather_than_adding_undefined: diag(6243, 3, \"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243\", \"Interpret optional property types as written, rather than adding 'undefined'.\"),\n        Modules: diag(6244, 3, \"Modules_6244\", \"Modules\"),\n        File_Management: diag(6245, 3, \"File_Management_6245\", \"File Management\"),\n        Emit: diag(6246, 3, \"Emit_6246\", \"Emit\"),\n        JavaScript_Support: diag(6247, 3, \"JavaScript_Support_6247\", \"JavaScript Support\"),\n        Type_Checking: diag(6248, 3, \"Type_Checking_6248\", \"Type Checking\"),\n        Editor_Support: diag(6249, 3, \"Editor_Support_6249\", \"Editor Support\"),\n        Watch_and_Build_Modes: diag(6250, 3, \"Watch_and_Build_Modes_6250\", \"Watch and Build Modes\"),\n        Compiler_Diagnostics: diag(6251, 3, \"Compiler_Diagnostics_6251\", \"Compiler Diagnostics\"),\n        Interop_Constraints: diag(6252, 3, \"Interop_Constraints_6252\", \"Interop Constraints\"),\n        Backwards_Compatibility: diag(6253, 3, \"Backwards_Compatibility_6253\", \"Backwards Compatibility\"),\n        Language_and_Environment: diag(6254, 3, \"Language_and_Environment_6254\", \"Language and Environment\"),\n        Projects: diag(6255, 3, \"Projects_6255\", \"Projects\"),\n        Output_Formatting: diag(6256, 3, \"Output_Formatting_6256\", \"Output Formatting\"),\n        Completeness: diag(6257, 3, \"Completeness_6257\", \"Completeness\"),\n        _0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file: diag(6258, 1, \"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258\", \"'{0}' should be set inside the 'compilerOptions' object of the config json file\"),\n        Found_1_error_in_1: diag(6259, 3, \"Found_1_error_in_1_6259\", \"Found 1 error in {1}\"),\n        Found_0_errors_in_the_same_file_starting_at_Colon_1: diag(6260, 3, \"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260\", \"Found {0} errors in the same file, starting at: {1}\"),\n        Found_0_errors_in_1_files: diag(6261, 3, \"Found_0_errors_in_1_files_6261\", \"Found {0} errors in {1} files.\"),\n        File_name_0_has_a_1_extension_looking_up_2_instead: diag(6262, 3, \"File_name_0_has_a_1_extension_looking_up_2_instead_6262\", \"File name '{0}' has a '{1}' extension - looking up '{2}' instead.\"),\n        Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set: diag(6263, 1, \"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263\", \"Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set.\"),\n        Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present: diag(6264, 3, \"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264\", \"Enable importing files with any extension, provided a declaration file is present.\"),\n        Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve: diag(6270, 3, \"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270\", \"Directory '{0}' has no containing package.json scope. Imports will not resolve.\"),\n        Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1: diag(6271, 3, \"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271\", \"Import specifier '{0}' does not exist in package.json scope at path '{1}'.\"),\n        Invalid_import_specifier_0_has_no_possible_resolutions: diag(6272, 3, \"Invalid_import_specifier_0_has_no_possible_resolutions_6272\", \"Invalid import specifier '{0}' has no possible resolutions.\"),\n        package_json_scope_0_has_no_imports_defined: diag(6273, 3, \"package_json_scope_0_has_no_imports_defined_6273\", \"package.json scope '{0}' has no imports defined.\"),\n        package_json_scope_0_explicitly_maps_specifier_1_to_null: diag(6274, 3, \"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274\", \"package.json scope '{0}' explicitly maps specifier '{1}' to null.\"),\n        package_json_scope_0_has_invalid_type_for_target_of_specifier_1: diag(6275, 3, \"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275\", \"package.json scope '{0}' has invalid type for target of specifier '{1}'\"),\n        Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1: diag(6276, 3, \"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276\", \"Export specifier '{0}' does not exist in package.json scope at path '{1}'.\"),\n        Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update: diag(6277, 3, \"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277\", \"Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update.\"),\n        There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings: diag(6278, 3, \"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278\", `There are types at '{0}', but this result could not be resolved when respecting package.json \"exports\". The '{1}' library may need to update its package.json or typings.`),\n        Enable_project_compilation: diag(6302, 3, \"Enable_project_compilation_6302\", \"Enable project compilation\"),\n        Composite_projects_may_not_disable_declaration_emit: diag(6304, 1, \"Composite_projects_may_not_disable_declaration_emit_6304\", \"Composite projects may not disable declaration emit.\"),\n        Output_file_0_has_not_been_built_from_source_file_1: diag(6305, 1, \"Output_file_0_has_not_been_built_from_source_file_1_6305\", \"Output file '{0}' has not been built from source file '{1}'.\"),\n        Referenced_project_0_must_have_setting_composite_Colon_true: diag(6306, 1, \"Referenced_project_0_must_have_setting_composite_Colon_true_6306\", `Referenced project '{0}' must have setting \"composite\": true.`),\n        File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern: diag(6307, 1, \"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307\", \"File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern.\"),\n        Cannot_prepend_project_0_because_it_does_not_have_outFile_set: diag(6308, 1, \"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308\", \"Cannot prepend project '{0}' because it does not have 'outFile' set\"),\n        Output_file_0_from_project_1_does_not_exist: diag(6309, 1, \"Output_file_0_from_project_1_does_not_exist_6309\", \"Output file '{0}' from project '{1}' does not exist\"),\n        Referenced_project_0_may_not_disable_emit: diag(6310, 1, \"Referenced_project_0_may_not_disable_emit_6310\", \"Referenced project '{0}' may not disable emit.\"),\n        Project_0_is_out_of_date_because_output_1_is_older_than_input_2: diag(6350, 3, \"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350\", \"Project '{0}' is out of date because output '{1}' is older than input '{2}'\"),\n        Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2: diag(6351, 3, \"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351\", \"Project '{0}' is up to date because newest input '{1}' is older than output '{2}'\"),\n        Project_0_is_out_of_date_because_output_file_1_does_not_exist: diag(6352, 3, \"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352\", \"Project '{0}' is out of date because output file '{1}' does not exist\"),\n        Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date: diag(6353, 3, \"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353\", \"Project '{0}' is out of date because its dependency '{1}' is out of date\"),\n        Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies: diag(6354, 3, \"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354\", \"Project '{0}' is up to date with .d.ts files from its dependencies\"),\n        Projects_in_this_build_Colon_0: diag(6355, 3, \"Projects_in_this_build_Colon_0_6355\", \"Projects in this build: {0}\"),\n        A_non_dry_build_would_delete_the_following_files_Colon_0: diag(6356, 3, \"A_non_dry_build_would_delete_the_following_files_Colon_0_6356\", \"A non-dry build would delete the following files: {0}\"),\n        A_non_dry_build_would_build_project_0: diag(6357, 3, \"A_non_dry_build_would_build_project_0_6357\", \"A non-dry build would build project '{0}'\"),\n        Building_project_0: diag(6358, 3, \"Building_project_0_6358\", \"Building project '{0}'...\"),\n        Updating_output_timestamps_of_project_0: diag(6359, 3, \"Updating_output_timestamps_of_project_0_6359\", \"Updating output timestamps of project '{0}'...\"),\n        Project_0_is_up_to_date: diag(6361, 3, \"Project_0_is_up_to_date_6361\", \"Project '{0}' is up to date\"),\n        Skipping_build_of_project_0_because_its_dependency_1_has_errors: diag(6362, 3, \"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362\", \"Skipping build of project '{0}' because its dependency '{1}' has errors\"),\n        Project_0_can_t_be_built_because_its_dependency_1_has_errors: diag(6363, 3, \"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363\", \"Project '{0}' can't be built because its dependency '{1}' has errors\"),\n        Build_one_or_more_projects_and_their_dependencies_if_out_of_date: diag(6364, 3, \"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364\", \"Build one or more projects and their dependencies, if out of date\"),\n        Delete_the_outputs_of_all_projects: diag(6365, 3, \"Delete_the_outputs_of_all_projects_6365\", \"Delete the outputs of all projects.\"),\n        Show_what_would_be_built_or_deleted_if_specified_with_clean: diag(6367, 3, \"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367\", \"Show what would be built (or deleted, if specified with '--clean')\"),\n        Option_build_must_be_the_first_command_line_argument: diag(6369, 1, \"Option_build_must_be_the_first_command_line_argument_6369\", \"Option '--build' must be the first command line argument.\"),\n        Options_0_and_1_cannot_be_combined: diag(6370, 1, \"Options_0_and_1_cannot_be_combined_6370\", \"Options '{0}' and '{1}' cannot be combined.\"),\n        Updating_unchanged_output_timestamps_of_project_0: diag(6371, 3, \"Updating_unchanged_output_timestamps_of_project_0_6371\", \"Updating unchanged output timestamps of project '{0}'...\"),\n        Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed: diag(6372, 3, \"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372\", \"Project '{0}' is out of date because output of its dependency '{1}' has changed\"),\n        Updating_output_of_project_0: diag(6373, 3, \"Updating_output_of_project_0_6373\", \"Updating output of project '{0}'...\"),\n        A_non_dry_build_would_update_timestamps_for_output_of_project_0: diag(6374, 3, \"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374\", \"A non-dry build would update timestamps for output of project '{0}'\"),\n        A_non_dry_build_would_update_output_of_project_0: diag(6375, 3, \"A_non_dry_build_would_update_output_of_project_0_6375\", \"A non-dry build would update output of project '{0}'\"),\n        Cannot_update_output_of_project_0_because_there_was_error_reading_file_1: diag(6376, 3, \"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376\", \"Cannot update output of project '{0}' because there was error reading file '{1}'\"),\n        Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1: diag(6377, 1, \"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377\", \"Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'\"),\n        Composite_projects_may_not_disable_incremental_compilation: diag(6379, 1, \"Composite_projects_may_not_disable_incremental_compilation_6379\", \"Composite projects may not disable incremental compilation.\"),\n        Specify_file_to_store_incremental_compilation_information: diag(6380, 3, \"Specify_file_to_store_incremental_compilation_information_6380\", \"Specify file to store incremental compilation information\"),\n        Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2: diag(6381, 3, \"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381\", \"Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'\"),\n        Skipping_build_of_project_0_because_its_dependency_1_was_not_built: diag(6382, 3, \"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382\", \"Skipping build of project '{0}' because its dependency '{1}' was not built\"),\n        Project_0_can_t_be_built_because_its_dependency_1_was_not_built: diag(6383, 3, \"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383\", \"Project '{0}' can't be built because its dependency '{1}' was not built\"),\n        Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it: diag(6384, 3, \"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384\", \"Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it.\"),\n        _0_is_deprecated: diag(6385, 2, \"_0_is_deprecated_6385\", \"'{0}' is deprecated.\", void 0, void 0, true),\n        Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found: diag(6386, 3, \"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386\", \"Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found.\"),\n        The_signature_0_of_1_is_deprecated: diag(6387, 2, \"The_signature_0_of_1_is_deprecated_6387\", \"The signature '{0}' of '{1}' is deprecated.\", void 0, void 0, true),\n        Project_0_is_being_forcibly_rebuilt: diag(6388, 3, \"Project_0_is_being_forcibly_rebuilt_6388\", \"Project '{0}' is being forcibly rebuilt\"),\n        Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved: diag(6389, 3, \"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389\", \"Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved.\"),\n        Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2: diag(6390, 3, \"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390\", \"Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'.\"),\n        Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3: diag(6391, 3, \"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391\", \"Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'.\"),\n        Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved: diag(6392, 3, \"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392\", \"Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved.\"),\n        Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3: diag(6393, 3, \"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393\", \"Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'.\"),\n        Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4: diag(6394, 3, \"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394\", \"Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'.\"),\n        Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved: diag(6395, 3, \"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395\", \"Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved.\"),\n        Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3: diag(6396, 3, \"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396\", \"Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'.\"),\n        Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4: diag(6397, 3, \"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397\", \"Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'.\"),\n        Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved: diag(6398, 3, \"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398\", \"Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved.\"),\n        Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted: diag(6399, 3, \"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399\", \"Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted\"),\n        Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files: diag(6400, 3, \"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400\", \"Project '{0}' is up to date but needs to update timestamps of output files that are older than input files\"),\n        Project_0_is_out_of_date_because_there_was_error_reading_file_1: diag(6401, 3, \"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401\", \"Project '{0}' is out of date because there was error reading file '{1}'\"),\n        Resolving_in_0_mode_with_conditions_1: diag(6402, 3, \"Resolving_in_0_mode_with_conditions_1_6402\", \"Resolving in {0} mode with conditions {1}.\"),\n        Matched_0_condition_1: diag(6403, 3, \"Matched_0_condition_1_6403\", \"Matched '{0}' condition '{1}'.\"),\n        Using_0_subpath_1_with_target_2: diag(6404, 3, \"Using_0_subpath_1_with_target_2_6404\", \"Using '{0}' subpath '{1}' with target '{2}'.\"),\n        Saw_non_matching_condition_0: diag(6405, 3, \"Saw_non_matching_condition_0_6405\", \"Saw non-matching condition '{0}'.\"),\n        Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions: diag(6406, 3, \"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406\", \"Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions\"),\n        Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set: diag(6407, 3, \"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407\", \"Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set.\"),\n        Use_the_package_json_exports_field_when_resolving_package_imports: diag(6408, 3, \"Use_the_package_json_exports_field_when_resolving_package_imports_6408\", \"Use the package.json 'exports' field when resolving package imports.\"),\n        Use_the_package_json_imports_field_when_resolving_imports: diag(6409, 3, \"Use_the_package_json_imports_field_when_resolving_imports_6409\", \"Use the package.json 'imports' field when resolving imports.\"),\n        Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports: diag(6410, 3, \"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410\", \"Conditions to set in addition to the resolver-specific defaults when resolving imports.\"),\n        true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false: diag(6411, 3, \"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411\", \"`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`.\"),\n        Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more: diag(6412, 3, \"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412\", \"Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more.\"),\n        Entering_conditional_exports: diag(6413, 3, \"Entering_conditional_exports_6413\", \"Entering conditional exports.\"),\n        Resolved_under_condition_0: diag(6414, 3, \"Resolved_under_condition_0_6414\", \"Resolved under condition '{0}'.\"),\n        Failed_to_resolve_under_condition_0: diag(6415, 3, \"Failed_to_resolve_under_condition_0_6415\", \"Failed to resolve under condition '{0}'.\"),\n        Exiting_conditional_exports: diag(6416, 3, \"Exiting_conditional_exports_6416\", \"Exiting conditional exports.\"),\n        The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1: diag(6500, 3, \"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500\", \"The expected type comes from property '{0}' which is declared here on type '{1}'\"),\n        The_expected_type_comes_from_this_index_signature: diag(6501, 3, \"The_expected_type_comes_from_this_index_signature_6501\", \"The expected type comes from this index signature.\"),\n        The_expected_type_comes_from_the_return_type_of_this_signature: diag(6502, 3, \"The_expected_type_comes_from_the_return_type_of_this_signature_6502\", \"The expected type comes from the return type of this signature.\"),\n        Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing: diag(6503, 3, \"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503\", \"Print names of files that are part of the compilation and then stop processing.\"),\n        File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option: diag(6504, 1, \"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504\", \"File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?\"),\n        Print_names_of_files_and_the_reason_they_are_part_of_the_compilation: diag(6505, 3, \"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505\", \"Print names of files and the reason they are part of the compilation.\"),\n        Consider_adding_a_declare_modifier_to_this_class: diag(6506, 3, \"Consider_adding_a_declare_modifier_to_this_class_6506\", \"Consider adding a 'declare' modifier to this class.\"),\n        Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files: diag(6600, 3, \"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600\", \"Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files.\"),\n        Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export: diag(6601, 3, \"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601\", \"Allow 'import x from y' when a module doesn't have a default export.\"),\n        Allow_accessing_UMD_globals_from_modules: diag(6602, 3, \"Allow_accessing_UMD_globals_from_modules_6602\", \"Allow accessing UMD globals from modules.\"),\n        Disable_error_reporting_for_unreachable_code: diag(6603, 3, \"Disable_error_reporting_for_unreachable_code_6603\", \"Disable error reporting for unreachable code.\"),\n        Disable_error_reporting_for_unused_labels: diag(6604, 3, \"Disable_error_reporting_for_unused_labels_6604\", \"Disable error reporting for unused labels.\"),\n        Ensure_use_strict_is_always_emitted: diag(6605, 3, \"Ensure_use_strict_is_always_emitted_6605\", \"Ensure 'use strict' is always emitted.\"),\n        Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it: diag(6606, 3, \"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606\", \"Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it.\"),\n        Specify_the_base_directory_to_resolve_non_relative_module_names: diag(6607, 3, \"Specify_the_base_directory_to_resolve_non_relative_module_names_6607\", \"Specify the base directory to resolve non-relative module names.\"),\n        No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files: diag(6608, 3, \"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608\", \"No longer supported. In early versions, manually set the text encoding for reading files.\"),\n        Enable_error_reporting_in_type_checked_JavaScript_files: diag(6609, 3, \"Enable_error_reporting_in_type_checked_JavaScript_files_6609\", \"Enable error reporting in type-checked JavaScript files.\"),\n        Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references: diag(6611, 3, \"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611\", \"Enable constraints that allow a TypeScript project to be used with project references.\"),\n        Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project: diag(6612, 3, \"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612\", \"Generate .d.ts files from TypeScript and JavaScript files in your project.\"),\n        Specify_the_output_directory_for_generated_declaration_files: diag(6613, 3, \"Specify_the_output_directory_for_generated_declaration_files_6613\", \"Specify the output directory for generated declaration files.\"),\n        Create_sourcemaps_for_d_ts_files: diag(6614, 3, \"Create_sourcemaps_for_d_ts_files_6614\", \"Create sourcemaps for d.ts files.\"),\n        Output_compiler_performance_information_after_building: diag(6615, 3, \"Output_compiler_performance_information_after_building_6615\", \"Output compiler performance information after building.\"),\n        Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project: diag(6616, 3, \"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616\", \"Disables inference for type acquisition by looking at filenames in a project.\"),\n        Reduce_the_number_of_projects_loaded_automatically_by_TypeScript: diag(6617, 3, \"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617\", \"Reduce the number of projects loaded automatically by TypeScript.\"),\n        Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server: diag(6618, 3, \"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618\", \"Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server.\"),\n        Opt_a_project_out_of_multi_project_reference_checking_when_editing: diag(6619, 3, \"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619\", \"Opt a project out of multi-project reference checking when editing.\"),\n        Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects: diag(6620, 3, \"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620\", \"Disable preferring source files instead of declaration files when referencing composite projects.\"),\n        Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration: diag(6621, 3, \"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621\", \"Emit more compliant, but verbose and less performant JavaScript for iteration.\"),\n        Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files: diag(6622, 3, \"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622\", \"Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files.\"),\n        Only_output_d_ts_files_and_not_JavaScript_files: diag(6623, 3, \"Only_output_d_ts_files_and_not_JavaScript_files_6623\", \"Only output d.ts files and not JavaScript files.\"),\n        Emit_design_type_metadata_for_decorated_declarations_in_source_files: diag(6624, 3, \"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624\", \"Emit design-type metadata for decorated declarations in source files.\"),\n        Disable_the_type_acquisition_for_JavaScript_projects: diag(6625, 3, \"Disable_the_type_acquisition_for_JavaScript_projects_6625\", \"Disable the type acquisition for JavaScript projects\"),\n        Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility: diag(6626, 3, \"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626\", \"Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility.\"),\n        Filters_results_from_the_include_option: diag(6627, 3, \"Filters_results_from_the_include_option_6627\", \"Filters results from the `include` option.\"),\n        Remove_a_list_of_directories_from_the_watch_process: diag(6628, 3, \"Remove_a_list_of_directories_from_the_watch_process_6628\", \"Remove a list of directories from the watch process.\"),\n        Remove_a_list_of_files_from_the_watch_mode_s_processing: diag(6629, 3, \"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629\", \"Remove a list of files from the watch mode's processing.\"),\n        Enable_experimental_support_for_legacy_experimental_decorators: diag(6630, 3, \"Enable_experimental_support_for_legacy_experimental_decorators_6630\", \"Enable experimental support for legacy experimental decorators.\"),\n        Print_files_read_during_the_compilation_including_why_it_was_included: diag(6631, 3, \"Print_files_read_during_the_compilation_including_why_it_was_included_6631\", \"Print files read during the compilation including why it was included.\"),\n        Output_more_detailed_compiler_performance_information_after_building: diag(6632, 3, \"Output_more_detailed_compiler_performance_information_after_building_6632\", \"Output more detailed compiler performance information after building.\"),\n        Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited: diag(6633, 3, \"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633\", \"Specify one or more path or node module references to base configuration files from which settings are inherited.\"),\n        Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers: diag(6634, 3, \"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634\", \"Specify what approach the watcher should use if the system runs out of native file watchers.\"),\n        Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include: diag(6635, 3, \"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635\", \"Include a list of files. This does not support glob patterns, as opposed to `include`.\"),\n        Build_all_projects_including_those_that_appear_to_be_up_to_date: diag(6636, 3, \"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636\", \"Build all projects, including those that appear to be up to date.\"),\n        Ensure_that_casing_is_correct_in_imports: diag(6637, 3, \"Ensure_that_casing_is_correct_in_imports_6637\", \"Ensure that casing is correct in imports.\"),\n        Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging: diag(6638, 3, \"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638\", \"Emit a v8 CPU profile of the compiler run for debugging.\"),\n        Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file: diag(6639, 3, \"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639\", \"Allow importing helper functions from tslib once per project, instead of including them per-file.\"),\n        Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation: diag(6641, 3, \"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641\", \"Specify a list of glob patterns that match files to be included in compilation.\"),\n        Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects: diag(6642, 3, \"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642\", \"Save .tsbuildinfo files to allow for incremental compilation of projects.\"),\n        Include_sourcemap_files_inside_the_emitted_JavaScript: diag(6643, 3, \"Include_sourcemap_files_inside_the_emitted_JavaScript_6643\", \"Include sourcemap files inside the emitted JavaScript.\"),\n        Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript: diag(6644, 3, \"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644\", \"Include source code in the sourcemaps inside the emitted JavaScript.\"),\n        Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports: diag(6645, 3, \"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645\", \"Ensure that each file can be safely transpiled without relying on other imports.\"),\n        Specify_what_JSX_code_is_generated: diag(6646, 3, \"Specify_what_JSX_code_is_generated_6646\", \"Specify what JSX code is generated.\"),\n        Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h: diag(6647, 3, \"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647\", \"Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'.\"),\n        Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment: diag(6648, 3, \"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648\", \"Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'.\"),\n        Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk: diag(6649, 3, \"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649\", \"Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'.\"),\n        Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option: diag(6650, 3, \"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650\", \"Make keyof only return strings instead of string, numbers or symbols. Legacy option.\"),\n        Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment: diag(6651, 3, \"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651\", \"Specify a set of bundled library declaration files that describe the target runtime environment.\"),\n        Print_the_names_of_emitted_files_after_a_compilation: diag(6652, 3, \"Print_the_names_of_emitted_files_after_a_compilation_6652\", \"Print the names of emitted files after a compilation.\"),\n        Print_all_of_the_files_read_during_the_compilation: diag(6653, 3, \"Print_all_of_the_files_read_during_the_compilation_6653\", \"Print all of the files read during the compilation.\"),\n        Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit: diag(6654, 3, \"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654\", \"Set the language of the messaging from TypeScript. This does not affect emit.\"),\n        Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations: diag(6655, 3, \"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655\", \"Specify the location where debugger should locate map files instead of generated locations.\"),\n        Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs: diag(6656, 3, \"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656\", \"Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'.\"),\n        Specify_what_module_code_is_generated: diag(6657, 3, \"Specify_what_module_code_is_generated_6657\", \"Specify what module code is generated.\"),\n        Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier: diag(6658, 3, \"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658\", \"Specify how TypeScript looks up a file from a given module specifier.\"),\n        Set_the_newline_character_for_emitting_files: diag(6659, 3, \"Set_the_newline_character_for_emitting_files_6659\", \"Set the newline character for emitting files.\"),\n        Disable_emitting_files_from_a_compilation: diag(6660, 3, \"Disable_emitting_files_from_a_compilation_6660\", \"Disable emitting files from a compilation.\"),\n        Disable_generating_custom_helper_functions_like_extends_in_compiled_output: diag(6661, 3, \"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661\", \"Disable generating custom helper functions like '__extends' in compiled output.\"),\n        Disable_emitting_files_if_any_type_checking_errors_are_reported: diag(6662, 3, \"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662\", \"Disable emitting files if any type checking errors are reported.\"),\n        Disable_truncating_types_in_error_messages: diag(6663, 3, \"Disable_truncating_types_in_error_messages_6663\", \"Disable truncating types in error messages.\"),\n        Enable_error_reporting_for_fallthrough_cases_in_switch_statements: diag(6664, 3, \"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664\", \"Enable error reporting for fallthrough cases in switch statements.\"),\n        Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type: diag(6665, 3, \"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665\", \"Enable error reporting for expressions and declarations with an implied 'any' type.\"),\n        Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier: diag(6666, 3, \"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666\", \"Ensure overriding members in derived classes are marked with an override modifier.\"),\n        Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function: diag(6667, 3, \"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667\", \"Enable error reporting for codepaths that do not explicitly return in a function.\"),\n        Enable_error_reporting_when_this_is_given_the_type_any: diag(6668, 3, \"Enable_error_reporting_when_this_is_given_the_type_any_6668\", \"Enable error reporting when 'this' is given the type 'any'.\"),\n        Disable_adding_use_strict_directives_in_emitted_JavaScript_files: diag(6669, 3, \"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669\", \"Disable adding 'use strict' directives in emitted JavaScript files.\"),\n        Disable_including_any_library_files_including_the_default_lib_d_ts: diag(6670, 3, \"Disable_including_any_library_files_including_the_default_lib_d_ts_6670\", \"Disable including any library files, including the default lib.d.ts.\"),\n        Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type: diag(6671, 3, \"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671\", \"Enforces using indexed accessors for keys declared using an indexed type.\"),\n        Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project: diag(6672, 3, \"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672\", \"Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project.\"),\n        Disable_strict_checking_of_generic_signatures_in_function_types: diag(6673, 3, \"Disable_strict_checking_of_generic_signatures_in_function_types_6673\", \"Disable strict checking of generic signatures in function types.\"),\n        Add_undefined_to_a_type_when_accessed_using_an_index: diag(6674, 3, \"Add_undefined_to_a_type_when_accessed_using_an_index_6674\", \"Add 'undefined' to a type when accessed using an index.\"),\n        Enable_error_reporting_when_local_variables_aren_t_read: diag(6675, 3, \"Enable_error_reporting_when_local_variables_aren_t_read_6675\", \"Enable error reporting when local variables aren't read.\"),\n        Raise_an_error_when_a_function_parameter_isn_t_read: diag(6676, 3, \"Raise_an_error_when_a_function_parameter_isn_t_read_6676\", \"Raise an error when a function parameter isn't read.\"),\n        Deprecated_setting_Use_outFile_instead: diag(6677, 3, \"Deprecated_setting_Use_outFile_instead_6677\", \"Deprecated setting. Use 'outFile' instead.\"),\n        Specify_an_output_folder_for_all_emitted_files: diag(6678, 3, \"Specify_an_output_folder_for_all_emitted_files_6678\", \"Specify an output folder for all emitted files.\"),\n        Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output: diag(6679, 3, \"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679\", \"Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output.\"),\n        Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations: diag(6680, 3, \"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680\", \"Specify a set of entries that re-map imports to additional lookup locations.\"),\n        Specify_a_list_of_language_service_plugins_to_include: diag(6681, 3, \"Specify_a_list_of_language_service_plugins_to_include_6681\", \"Specify a list of language service plugins to include.\"),\n        Disable_erasing_const_enum_declarations_in_generated_code: diag(6682, 3, \"Disable_erasing_const_enum_declarations_in_generated_code_6682\", \"Disable erasing 'const enum' declarations in generated code.\"),\n        Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node: diag(6683, 3, \"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683\", \"Disable resolving symlinks to their realpath. This correlates to the same flag in node.\"),\n        Disable_wiping_the_console_in_watch_mode: diag(6684, 3, \"Disable_wiping_the_console_in_watch_mode_6684\", \"Disable wiping the console in watch mode.\"),\n        Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read: diag(6685, 3, \"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685\", \"Enable color and formatting in TypeScript's output to make compiler errors easier to read.\"),\n        Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit: diag(6686, 3, \"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686\", \"Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit.\"),\n        Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references: diag(6687, 3, \"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687\", \"Specify an array of objects that specify paths for projects. Used in project references.\"),\n        Disable_emitting_comments: diag(6688, 3, \"Disable_emitting_comments_6688\", \"Disable emitting comments.\"),\n        Enable_importing_json_files: diag(6689, 3, \"Enable_importing_json_files_6689\", \"Enable importing .json files.\"),\n        Specify_the_root_folder_within_your_source_files: diag(6690, 3, \"Specify_the_root_folder_within_your_source_files_6690\", \"Specify the root folder within your source files.\"),\n        Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules: diag(6691, 3, \"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691\", \"Allow multiple folders to be treated as one when resolving modules.\"),\n        Skip_type_checking_d_ts_files_that_are_included_with_TypeScript: diag(6692, 3, \"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692\", \"Skip type checking .d.ts files that are included with TypeScript.\"),\n        Skip_type_checking_all_d_ts_files: diag(6693, 3, \"Skip_type_checking_all_d_ts_files_6693\", \"Skip type checking all .d.ts files.\"),\n        Create_source_map_files_for_emitted_JavaScript_files: diag(6694, 3, \"Create_source_map_files_for_emitted_JavaScript_files_6694\", \"Create source map files for emitted JavaScript files.\"),\n        Specify_the_root_path_for_debuggers_to_find_the_reference_source_code: diag(6695, 3, \"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695\", \"Specify the root path for debuggers to find the reference source code.\"),\n        Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function: diag(6697, 3, \"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697\", \"Check that the arguments for 'bind', 'call', and 'apply' methods match the original function.\"),\n        When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible: diag(6698, 3, \"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698\", \"When assigning functions, check to ensure parameters and the return values are subtype-compatible.\"),\n        When_type_checking_take_into_account_null_and_undefined: diag(6699, 3, \"When_type_checking_take_into_account_null_and_undefined_6699\", \"When type checking, take into account 'null' and 'undefined'.\"),\n        Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor: diag(6700, 3, \"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700\", \"Check for class properties that are declared but not set in the constructor.\"),\n        Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments: diag(6701, 3, \"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701\", \"Disable emitting declarations that have '@internal' in their JSDoc comments.\"),\n        Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals: diag(6702, 3, \"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702\", \"Disable reporting of excess property errors during the creation of object literals.\"),\n        Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures: diag(6703, 3, \"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703\", \"Suppress 'noImplicitAny' errors when indexing objects that lack index signatures.\"),\n        Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively: diag(6704, 3, \"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704\", \"Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively.\"),\n        Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations: diag(6705, 3, \"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705\", \"Set the JavaScript language version for emitted JavaScript and include compatible library declarations.\"),\n        Log_paths_used_during_the_moduleResolution_process: diag(6706, 3, \"Log_paths_used_during_the_moduleResolution_process_6706\", \"Log paths used during the 'moduleResolution' process.\"),\n        Specify_the_path_to_tsbuildinfo_incremental_compilation_file: diag(6707, 3, \"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707\", \"Specify the path to .tsbuildinfo incremental compilation file.\"),\n        Specify_options_for_automatic_acquisition_of_declaration_files: diag(6709, 3, \"Specify_options_for_automatic_acquisition_of_declaration_files_6709\", \"Specify options for automatic acquisition of declaration files.\"),\n        Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types: diag(6710, 3, \"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710\", \"Specify multiple folders that act like './node_modules/@types'.\"),\n        Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file: diag(6711, 3, \"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711\", \"Specify type package names to be included without being referenced in a source file.\"),\n        Emit_ECMAScript_standard_compliant_class_fields: diag(6712, 3, \"Emit_ECMAScript_standard_compliant_class_fields_6712\", \"Emit ECMAScript-standard-compliant class fields.\"),\n        Enable_verbose_logging: diag(6713, 3, \"Enable_verbose_logging_6713\", \"Enable verbose logging.\"),\n        Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality: diag(6714, 3, \"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714\", \"Specify how directories are watched on systems that lack recursive file-watching functionality.\"),\n        Specify_how_the_TypeScript_watch_mode_works: diag(6715, 3, \"Specify_how_the_TypeScript_watch_mode_works_6715\", \"Specify how the TypeScript watch mode works.\"),\n        Require_undeclared_properties_from_index_signatures_to_use_element_accesses: diag(6717, 3, \"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717\", \"Require undeclared properties from index signatures to use element accesses.\"),\n        Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types: diag(6718, 3, \"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718\", \"Specify emit/checking behavior for imports that are only used for types.\"),\n        Default_catch_clause_variables_as_unknown_instead_of_any: diag(6803, 3, \"Default_catch_clause_variables_as_unknown_instead_of_any_6803\", \"Default catch clause variables as 'unknown' instead of 'any'.\"),\n        Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting: diag(6804, 3, \"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804\", \"Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting.\"),\n        one_of_Colon: diag(6900, 3, \"one_of_Colon_6900\", \"one of:\"),\n        one_or_more_Colon: diag(6901, 3, \"one_or_more_Colon_6901\", \"one or more:\"),\n        type_Colon: diag(6902, 3, \"type_Colon_6902\", \"type:\"),\n        default_Colon: diag(6903, 3, \"default_Colon_6903\", \"default:\"),\n        module_system_or_esModuleInterop: diag(6904, 3, \"module_system_or_esModuleInterop_6904\", 'module === \"system\" or esModuleInterop'),\n        false_unless_strict_is_set: diag(6905, 3, \"false_unless_strict_is_set_6905\", \"`false`, unless `strict` is set\"),\n        false_unless_composite_is_set: diag(6906, 3, \"false_unless_composite_is_set_6906\", \"`false`, unless `composite` is set\"),\n        node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified: diag(6907, 3, \"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907\", '`[\"node_modules\", \"bower_components\", \"jspm_packages\"]`, plus the value of `outDir` if one is specified.'),\n        if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk: diag(6908, 3, \"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908\", '`[]` if `files` is specified, otherwise `[\"**/*\"]`'),\n        true_if_composite_false_otherwise: diag(6909, 3, \"true_if_composite_false_otherwise_6909\", \"`true` if `composite`, `false` otherwise\"),\n        module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node: diag(69010, 3, \"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010\", \"module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`\"),\n        Computed_from_the_list_of_input_files: diag(6911, 3, \"Computed_from_the_list_of_input_files_6911\", \"Computed from the list of input files\"),\n        Platform_specific: diag(6912, 3, \"Platform_specific_6912\", \"Platform specific\"),\n        You_can_learn_about_all_of_the_compiler_options_at_0: diag(6913, 3, \"You_can_learn_about_all_of_the_compiler_options_at_0_6913\", \"You can learn about all of the compiler options at {0}\"),\n        Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon: diag(6914, 3, \"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914\", \"Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:\"),\n        Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0: diag(6915, 3, \"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915\", \"Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}\"),\n        COMMON_COMMANDS: diag(6916, 3, \"COMMON_COMMANDS_6916\", \"COMMON COMMANDS\"),\n        ALL_COMPILER_OPTIONS: diag(6917, 3, \"ALL_COMPILER_OPTIONS_6917\", \"ALL COMPILER OPTIONS\"),\n        WATCH_OPTIONS: diag(6918, 3, \"WATCH_OPTIONS_6918\", \"WATCH OPTIONS\"),\n        BUILD_OPTIONS: diag(6919, 3, \"BUILD_OPTIONS_6919\", \"BUILD OPTIONS\"),\n        COMMON_COMPILER_OPTIONS: diag(6920, 3, \"COMMON_COMPILER_OPTIONS_6920\", \"COMMON COMPILER OPTIONS\"),\n        COMMAND_LINE_FLAGS: diag(6921, 3, \"COMMAND_LINE_FLAGS_6921\", \"COMMAND LINE FLAGS\"),\n        tsc_Colon_The_TypeScript_Compiler: diag(6922, 3, \"tsc_Colon_The_TypeScript_Compiler_6922\", \"tsc: The TypeScript Compiler\"),\n        Compiles_the_current_project_tsconfig_json_in_the_working_directory: diag(6923, 3, \"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923\", \"Compiles the current project (tsconfig.json in the working directory.)\"),\n        Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options: diag(6924, 3, \"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924\", \"Ignoring tsconfig.json, compiles the specified files with default compiler options.\"),\n        Build_a_composite_project_in_the_working_directory: diag(6925, 3, \"Build_a_composite_project_in_the_working_directory_6925\", \"Build a composite project in the working directory.\"),\n        Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory: diag(6926, 3, \"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926\", \"Creates a tsconfig.json with the recommended settings in the working directory.\"),\n        Compiles_the_TypeScript_project_located_at_the_specified_path: diag(6927, 3, \"Compiles_the_TypeScript_project_located_at_the_specified_path_6927\", \"Compiles the TypeScript project located at the specified path.\"),\n        An_expanded_version_of_this_information_showing_all_possible_compiler_options: diag(6928, 3, \"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928\", \"An expanded version of this information, showing all possible compiler options\"),\n        Compiles_the_current_project_with_additional_settings: diag(6929, 3, \"Compiles_the_current_project_with_additional_settings_6929\", \"Compiles the current project, with additional settings.\"),\n        true_for_ES2022_and_above_including_ESNext: diag(6930, 3, \"true_for_ES2022_and_above_including_ESNext_6930\", \"`true` for ES2022 and above, including ESNext.\"),\n        List_of_file_name_suffixes_to_search_when_resolving_a_module: diag(6931, 1, \"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931\", \"List of file name suffixes to search when resolving a module.\"),\n        Variable_0_implicitly_has_an_1_type: diag(7005, 1, \"Variable_0_implicitly_has_an_1_type_7005\", \"Variable '{0}' implicitly has an '{1}' type.\"),\n        Parameter_0_implicitly_has_an_1_type: diag(7006, 1, \"Parameter_0_implicitly_has_an_1_type_7006\", \"Parameter '{0}' implicitly has an '{1}' type.\"),\n        Member_0_implicitly_has_an_1_type: diag(7008, 1, \"Member_0_implicitly_has_an_1_type_7008\", \"Member '{0}' implicitly has an '{1}' type.\"),\n        new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type: diag(7009, 1, \"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009\", \"'new' expression, whose target lacks a construct signature, implicitly has an 'any' type.\"),\n        _0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type: diag(7010, 1, \"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010\", \"'{0}', which lacks return-type annotation, implicitly has an '{1}' return type.\"),\n        Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type: diag(7011, 1, \"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011\", \"Function expression, which lacks return-type annotation, implicitly has an '{0}' return type.\"),\n        This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation: diag(7012, 1, \"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012\", \"This overload implicitly returns the type '{0}' because it lacks a return type annotation.\"),\n        Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type: diag(7013, 1, \"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013\", \"Construct signature, which lacks return-type annotation, implicitly has an 'any' return type.\"),\n        Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type: diag(7014, 1, \"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014\", \"Function type, which lacks return-type annotation, implicitly has an '{0}' return type.\"),\n        Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number: diag(7015, 1, \"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015\", \"Element implicitly has an 'any' type because index expression is not of type 'number'.\"),\n        Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type: diag(7016, 1, \"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016\", \"Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type.\"),\n        Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature: diag(7017, 1, \"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017\", \"Element implicitly has an 'any' type because type '{0}' has no index signature.\"),\n        Object_literal_s_property_0_implicitly_has_an_1_type: diag(7018, 1, \"Object_literal_s_property_0_implicitly_has_an_1_type_7018\", \"Object literal's property '{0}' implicitly has an '{1}' type.\"),\n        Rest_parameter_0_implicitly_has_an_any_type: diag(7019, 1, \"Rest_parameter_0_implicitly_has_an_any_type_7019\", \"Rest parameter '{0}' implicitly has an 'any[]' type.\"),\n        Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type: diag(7020, 1, \"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020\", \"Call signature, which lacks return-type annotation, implicitly has an 'any' return type.\"),\n        _0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer: diag(7022, 1, \"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022\", \"'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.\"),\n        _0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions: diag(7023, 1, \"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023\", \"'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.\"),\n        Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions: diag(7024, 1, \"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024\", \"Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.\"),\n        Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation: diag(7025, 1, \"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025\", \"Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation.\"),\n        JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists: diag(7026, 1, \"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026\", \"JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists.\"),\n        Unreachable_code_detected: diag(7027, 1, \"Unreachable_code_detected_7027\", \"Unreachable code detected.\", true),\n        Unused_label: diag(7028, 1, \"Unused_label_7028\", \"Unused label.\", true),\n        Fallthrough_case_in_switch: diag(7029, 1, \"Fallthrough_case_in_switch_7029\", \"Fallthrough case in switch.\"),\n        Not_all_code_paths_return_a_value: diag(7030, 1, \"Not_all_code_paths_return_a_value_7030\", \"Not all code paths return a value.\"),\n        Binding_element_0_implicitly_has_an_1_type: diag(7031, 1, \"Binding_element_0_implicitly_has_an_1_type_7031\", \"Binding element '{0}' implicitly has an '{1}' type.\"),\n        Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation: diag(7032, 1, \"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032\", \"Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation.\"),\n        Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation: diag(7033, 1, \"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033\", \"Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation.\"),\n        Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined: diag(7034, 1, \"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034\", \"Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined.\"),\n        Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0: diag(7035, 1, \"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035\", \"Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`\"),\n        Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0: diag(7036, 1, \"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036\", \"Dynamic import's specifier must be of type 'string', but here has type '{0}'.\"),\n        Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports: diag(7037, 3, \"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037\", \"Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'.\"),\n        Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead: diag(7038, 3, \"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038\", \"Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead.\"),\n        Mapped_object_type_implicitly_has_an_any_template_type: diag(7039, 1, \"Mapped_object_type_implicitly_has_an_any_template_type_7039\", \"Mapped object type implicitly has an 'any' template type.\"),\n        If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1: diag(7040, 1, \"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040\", \"If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'\"),\n        The_containing_arrow_function_captures_the_global_value_of_this: diag(7041, 1, \"The_containing_arrow_function_captures_the_global_value_of_this_7041\", \"The containing arrow function captures the global value of 'this'.\"),\n        Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used: diag(7042, 1, \"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042\", \"Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used.\"),\n        Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage: diag(7043, 2, \"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043\", \"Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage.\"),\n        Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage: diag(7044, 2, \"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044\", \"Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage.\"),\n        Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage: diag(7045, 2, \"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045\", \"Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage.\"),\n        Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage: diag(7046, 2, \"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046\", \"Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage.\"),\n        Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage: diag(7047, 2, \"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047\", \"Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage.\"),\n        Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage: diag(7048, 2, \"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048\", \"Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage.\"),\n        Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage: diag(7049, 2, \"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049\", \"Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage.\"),\n        _0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage: diag(7050, 2, \"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050\", \"'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage.\"),\n        Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1: diag(7051, 1, \"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051\", \"Parameter has a name but no type. Did you mean '{0}: {1}'?\"),\n        Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1: diag(7052, 1, \"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052\", \"Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?\"),\n        Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1: diag(7053, 1, \"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053\", \"Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'.\"),\n        No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1: diag(7054, 1, \"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054\", \"No index signature with a parameter of type '{0}' was found on type '{1}'.\"),\n        _0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type: diag(7055, 1, \"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055\", \"'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type.\"),\n        The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed: diag(7056, 1, \"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056\", \"The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed.\"),\n        yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation: diag(7057, 1, \"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057\", \"'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation.\"),\n        If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1: diag(7058, 1, \"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058\", \"If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`\"),\n        This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead: diag(7059, 1, \"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059\", \"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.\"),\n        This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint: diag(7060, 1, \"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060\", \"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint.\"),\n        A_mapped_type_may_not_declare_properties_or_methods: diag(7061, 1, \"A_mapped_type_may_not_declare_properties_or_methods_7061\", \"A mapped type may not declare properties or methods.\"),\n        You_cannot_rename_this_element: diag(8e3, 1, \"You_cannot_rename_this_element_8000\", \"You cannot rename this element.\"),\n        You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library: diag(8001, 1, \"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001\", \"You cannot rename elements that are defined in the standard TypeScript library.\"),\n        import_can_only_be_used_in_TypeScript_files: diag(8002, 1, \"import_can_only_be_used_in_TypeScript_files_8002\", \"'import ... =' can only be used in TypeScript files.\"),\n        export_can_only_be_used_in_TypeScript_files: diag(8003, 1, \"export_can_only_be_used_in_TypeScript_files_8003\", \"'export =' can only be used in TypeScript files.\"),\n        Type_parameter_declarations_can_only_be_used_in_TypeScript_files: diag(8004, 1, \"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004\", \"Type parameter declarations can only be used in TypeScript files.\"),\n        implements_clauses_can_only_be_used_in_TypeScript_files: diag(8005, 1, \"implements_clauses_can_only_be_used_in_TypeScript_files_8005\", \"'implements' clauses can only be used in TypeScript files.\"),\n        _0_declarations_can_only_be_used_in_TypeScript_files: diag(8006, 1, \"_0_declarations_can_only_be_used_in_TypeScript_files_8006\", \"'{0}' declarations can only be used in TypeScript files.\"),\n        Type_aliases_can_only_be_used_in_TypeScript_files: diag(8008, 1, \"Type_aliases_can_only_be_used_in_TypeScript_files_8008\", \"Type aliases can only be used in TypeScript files.\"),\n        The_0_modifier_can_only_be_used_in_TypeScript_files: diag(8009, 1, \"The_0_modifier_can_only_be_used_in_TypeScript_files_8009\", \"The '{0}' modifier can only be used in TypeScript files.\"),\n        Type_annotations_can_only_be_used_in_TypeScript_files: diag(8010, 1, \"Type_annotations_can_only_be_used_in_TypeScript_files_8010\", \"Type annotations can only be used in TypeScript files.\"),\n        Type_arguments_can_only_be_used_in_TypeScript_files: diag(8011, 1, \"Type_arguments_can_only_be_used_in_TypeScript_files_8011\", \"Type arguments can only be used in TypeScript files.\"),\n        Parameter_modifiers_can_only_be_used_in_TypeScript_files: diag(8012, 1, \"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012\", \"Parameter modifiers can only be used in TypeScript files.\"),\n        Non_null_assertions_can_only_be_used_in_TypeScript_files: diag(8013, 1, \"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013\", \"Non-null assertions can only be used in TypeScript files.\"),\n        Type_assertion_expressions_can_only_be_used_in_TypeScript_files: diag(8016, 1, \"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016\", \"Type assertion expressions can only be used in TypeScript files.\"),\n        Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0: diag(8017, 1, \"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017\", \"Octal literal types must use ES2015 syntax. Use the syntax '{0}'.\"),\n        Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0: diag(8018, 1, \"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018\", \"Octal literals are not allowed in enums members initializer. Use the syntax '{0}'.\"),\n        Report_errors_in_js_files: diag(8019, 3, \"Report_errors_in_js_files_8019\", \"Report errors in .js files.\"),\n        JSDoc_types_can_only_be_used_inside_documentation_comments: diag(8020, 1, \"JSDoc_types_can_only_be_used_inside_documentation_comments_8020\", \"JSDoc types can only be used inside documentation comments.\"),\n        JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags: diag(8021, 1, \"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021\", \"JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags.\"),\n        JSDoc_0_is_not_attached_to_a_class: diag(8022, 1, \"JSDoc_0_is_not_attached_to_a_class_8022\", \"JSDoc '@{0}' is not attached to a class.\"),\n        JSDoc_0_1_does_not_match_the_extends_2_clause: diag(8023, 1, \"JSDoc_0_1_does_not_match_the_extends_2_clause_8023\", \"JSDoc '@{0} {1}' does not match the 'extends {2}' clause.\"),\n        JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name: diag(8024, 1, \"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024\", \"JSDoc '@param' tag has name '{0}', but there is no parameter with that name.\"),\n        Class_declarations_cannot_have_more_than_one_augments_or_extends_tag: diag(8025, 1, \"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025\", \"Class declarations cannot have more than one '@augments' or '@extends' tag.\"),\n        Expected_0_type_arguments_provide_these_with_an_extends_tag: diag(8026, 1, \"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026\", \"Expected {0} type arguments; provide these with an '@extends' tag.\"),\n        Expected_0_1_type_arguments_provide_these_with_an_extends_tag: diag(8027, 1, \"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027\", \"Expected {0}-{1} type arguments; provide these with an '@extends' tag.\"),\n        JSDoc_may_only_appear_in_the_last_parameter_of_a_signature: diag(8028, 1, \"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028\", \"JSDoc '...' may only appear in the last parameter of a signature.\"),\n        JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type: diag(8029, 1, \"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029\", \"JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type.\"),\n        The_type_of_a_function_declaration_must_match_the_function_s_signature: diag(8030, 1, \"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030\", \"The type of a function declaration must match the function's signature.\"),\n        You_cannot_rename_a_module_via_a_global_import: diag(8031, 1, \"You_cannot_rename_a_module_via_a_global_import_8031\", \"You cannot rename a module via a global import.\"),\n        Qualified_name_0_is_not_allowed_without_a_leading_param_object_1: diag(8032, 1, \"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032\", \"Qualified name '{0}' is not allowed without a leading '@param {object} {1}'.\"),\n        A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags: diag(8033, 1, \"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033\", \"A JSDoc '@typedef' comment may not contain multiple '@type' tags.\"),\n        The_tag_was_first_specified_here: diag(8034, 1, \"The_tag_was_first_specified_here_8034\", \"The tag was first specified here.\"),\n        You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder: diag(8035, 1, \"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035\", \"You cannot rename elements that are defined in a 'node_modules' folder.\"),\n        You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder: diag(8036, 1, \"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036\", \"You cannot rename elements that are defined in another 'node_modules' folder.\"),\n        Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files: diag(8037, 1, \"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037\", \"Type satisfaction expressions can only be used in TypeScript files.\"),\n        Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export: diag(8038, 1, \"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038\", \"Decorators may not appear after 'export' or 'export default' if they also appear before 'export'.\"),\n        Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit: diag(9005, 1, \"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005\", \"Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit.\"),\n        Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit: diag(9006, 1, \"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006\", \"Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit.\"),\n        JSX_attributes_must_only_be_assigned_a_non_empty_expression: diag(17e3, 1, \"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000\", \"JSX attributes must only be assigned a non-empty 'expression'.\"),\n        JSX_elements_cannot_have_multiple_attributes_with_the_same_name: diag(17001, 1, \"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001\", \"JSX elements cannot have multiple attributes with the same name.\"),\n        Expected_corresponding_JSX_closing_tag_for_0: diag(17002, 1, \"Expected_corresponding_JSX_closing_tag_for_0_17002\", \"Expected corresponding JSX closing tag for '{0}'.\"),\n        Cannot_use_JSX_unless_the_jsx_flag_is_provided: diag(17004, 1, \"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004\", \"Cannot use JSX unless the '--jsx' flag is provided.\"),\n        A_constructor_cannot_contain_a_super_call_when_its_class_extends_null: diag(17005, 1, \"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005\", \"A constructor cannot contain a 'super' call when its class extends 'null'.\"),\n        An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses: diag(17006, 1, \"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006\", \"An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.\"),\n        A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses: diag(17007, 1, \"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007\", \"A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.\"),\n        JSX_element_0_has_no_corresponding_closing_tag: diag(17008, 1, \"JSX_element_0_has_no_corresponding_closing_tag_17008\", \"JSX element '{0}' has no corresponding closing tag.\"),\n        super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class: diag(17009, 1, \"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009\", \"'super' must be called before accessing 'this' in the constructor of a derived class.\"),\n        Unknown_type_acquisition_option_0: diag(17010, 1, \"Unknown_type_acquisition_option_0_17010\", \"Unknown type acquisition option '{0}'.\"),\n        super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class: diag(17011, 1, \"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011\", \"'super' must be called before accessing a property of 'super' in the constructor of a derived class.\"),\n        _0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2: diag(17012, 1, \"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012\", \"'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?\"),\n        Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor: diag(17013, 1, \"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013\", \"Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor.\"),\n        JSX_fragment_has_no_corresponding_closing_tag: diag(17014, 1, \"JSX_fragment_has_no_corresponding_closing_tag_17014\", \"JSX fragment has no corresponding closing tag.\"),\n        Expected_corresponding_closing_tag_for_JSX_fragment: diag(17015, 1, \"Expected_corresponding_closing_tag_for_JSX_fragment_17015\", \"Expected corresponding closing tag for JSX fragment.\"),\n        The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option: diag(17016, 1, \"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016\", \"The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option.\"),\n        An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments: diag(17017, 1, \"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017\", \"An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments.\"),\n        Unknown_type_acquisition_option_0_Did_you_mean_1: diag(17018, 1, \"Unknown_type_acquisition_option_0_Did_you_mean_1_17018\", \"Unknown type acquisition option '{0}'. Did you mean '{1}'?\"),\n        _0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1: diag(17019, 1, \"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019\", \"'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?\"),\n        _0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1: diag(17020, 1, \"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020\", \"'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?\"),\n        Circularity_detected_while_resolving_configuration_Colon_0: diag(18e3, 1, \"Circularity_detected_while_resolving_configuration_Colon_0_18000\", \"Circularity detected while resolving configuration: {0}\"),\n        The_files_list_in_config_file_0_is_empty: diag(18002, 1, \"The_files_list_in_config_file_0_is_empty_18002\", \"The 'files' list in config file '{0}' is empty.\"),\n        No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2: diag(18003, 1, \"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003\", \"No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'.\"),\n        File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module: diag(80001, 2, \"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001\", \"File is a CommonJS module; it may be converted to an ES module.\"),\n        This_constructor_function_may_be_converted_to_a_class_declaration: diag(80002, 2, \"This_constructor_function_may_be_converted_to_a_class_declaration_80002\", \"This constructor function may be converted to a class declaration.\"),\n        Import_may_be_converted_to_a_default_import: diag(80003, 2, \"Import_may_be_converted_to_a_default_import_80003\", \"Import may be converted to a default import.\"),\n        JSDoc_types_may_be_moved_to_TypeScript_types: diag(80004, 2, \"JSDoc_types_may_be_moved_to_TypeScript_types_80004\", \"JSDoc types may be moved to TypeScript types.\"),\n        require_call_may_be_converted_to_an_import: diag(80005, 2, \"require_call_may_be_converted_to_an_import_80005\", \"'require' call may be converted to an import.\"),\n        This_may_be_converted_to_an_async_function: diag(80006, 2, \"This_may_be_converted_to_an_async_function_80006\", \"This may be converted to an async function.\"),\n        await_has_no_effect_on_the_type_of_this_expression: diag(80007, 2, \"await_has_no_effect_on_the_type_of_this_expression_80007\", \"'await' has no effect on the type of this expression.\"),\n        Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers: diag(80008, 2, \"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008\", \"Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers.\"),\n        Add_missing_super_call: diag(90001, 3, \"Add_missing_super_call_90001\", \"Add missing 'super()' call\"),\n        Make_super_call_the_first_statement_in_the_constructor: diag(90002, 3, \"Make_super_call_the_first_statement_in_the_constructor_90002\", \"Make 'super()' call the first statement in the constructor\"),\n        Change_extends_to_implements: diag(90003, 3, \"Change_extends_to_implements_90003\", \"Change 'extends' to 'implements'\"),\n        Remove_unused_declaration_for_Colon_0: diag(90004, 3, \"Remove_unused_declaration_for_Colon_0_90004\", \"Remove unused declaration for: '{0}'\"),\n        Remove_import_from_0: diag(90005, 3, \"Remove_import_from_0_90005\", \"Remove import from '{0}'\"),\n        Implement_interface_0: diag(90006, 3, \"Implement_interface_0_90006\", \"Implement interface '{0}'\"),\n        Implement_inherited_abstract_class: diag(90007, 3, \"Implement_inherited_abstract_class_90007\", \"Implement inherited abstract class\"),\n        Add_0_to_unresolved_variable: diag(90008, 3, \"Add_0_to_unresolved_variable_90008\", \"Add '{0}.' to unresolved variable\"),\n        Remove_variable_statement: diag(90010, 3, \"Remove_variable_statement_90010\", \"Remove variable statement\"),\n        Remove_template_tag: diag(90011, 3, \"Remove_template_tag_90011\", \"Remove template tag\"),\n        Remove_type_parameters: diag(90012, 3, \"Remove_type_parameters_90012\", \"Remove type parameters\"),\n        Import_0_from_1: diag(90013, 3, \"Import_0_from_1_90013\", `Import '{0}' from \"{1}\"`),\n        Change_0_to_1: diag(90014, 3, \"Change_0_to_1_90014\", \"Change '{0}' to '{1}'\"),\n        Declare_property_0: diag(90016, 3, \"Declare_property_0_90016\", \"Declare property '{0}'\"),\n        Add_index_signature_for_property_0: diag(90017, 3, \"Add_index_signature_for_property_0_90017\", \"Add index signature for property '{0}'\"),\n        Disable_checking_for_this_file: diag(90018, 3, \"Disable_checking_for_this_file_90018\", \"Disable checking for this file\"),\n        Ignore_this_error_message: diag(90019, 3, \"Ignore_this_error_message_90019\", \"Ignore this error message\"),\n        Initialize_property_0_in_the_constructor: diag(90020, 3, \"Initialize_property_0_in_the_constructor_90020\", \"Initialize property '{0}' in the constructor\"),\n        Initialize_static_property_0: diag(90021, 3, \"Initialize_static_property_0_90021\", \"Initialize static property '{0}'\"),\n        Change_spelling_to_0: diag(90022, 3, \"Change_spelling_to_0_90022\", \"Change spelling to '{0}'\"),\n        Declare_method_0: diag(90023, 3, \"Declare_method_0_90023\", \"Declare method '{0}'\"),\n        Declare_static_method_0: diag(90024, 3, \"Declare_static_method_0_90024\", \"Declare static method '{0}'\"),\n        Prefix_0_with_an_underscore: diag(90025, 3, \"Prefix_0_with_an_underscore_90025\", \"Prefix '{0}' with an underscore\"),\n        Rewrite_as_the_indexed_access_type_0: diag(90026, 3, \"Rewrite_as_the_indexed_access_type_0_90026\", \"Rewrite as the indexed access type '{0}'\"),\n        Declare_static_property_0: diag(90027, 3, \"Declare_static_property_0_90027\", \"Declare static property '{0}'\"),\n        Call_decorator_expression: diag(90028, 3, \"Call_decorator_expression_90028\", \"Call decorator expression\"),\n        Add_async_modifier_to_containing_function: diag(90029, 3, \"Add_async_modifier_to_containing_function_90029\", \"Add async modifier to containing function\"),\n        Replace_infer_0_with_unknown: diag(90030, 3, \"Replace_infer_0_with_unknown_90030\", \"Replace 'infer {0}' with 'unknown'\"),\n        Replace_all_unused_infer_with_unknown: diag(90031, 3, \"Replace_all_unused_infer_with_unknown_90031\", \"Replace all unused 'infer' with 'unknown'\"),\n        Add_parameter_name: diag(90034, 3, \"Add_parameter_name_90034\", \"Add parameter name\"),\n        Declare_private_property_0: diag(90035, 3, \"Declare_private_property_0_90035\", \"Declare private property '{0}'\"),\n        Replace_0_with_Promise_1: diag(90036, 3, \"Replace_0_with_Promise_1_90036\", \"Replace '{0}' with 'Promise<{1}>'\"),\n        Fix_all_incorrect_return_type_of_an_async_functions: diag(90037, 3, \"Fix_all_incorrect_return_type_of_an_async_functions_90037\", \"Fix all incorrect return type of an async functions\"),\n        Declare_private_method_0: diag(90038, 3, \"Declare_private_method_0_90038\", \"Declare private method '{0}'\"),\n        Remove_unused_destructuring_declaration: diag(90039, 3, \"Remove_unused_destructuring_declaration_90039\", \"Remove unused destructuring declaration\"),\n        Remove_unused_declarations_for_Colon_0: diag(90041, 3, \"Remove_unused_declarations_for_Colon_0_90041\", \"Remove unused declarations for: '{0}'\"),\n        Declare_a_private_field_named_0: diag(90053, 3, \"Declare_a_private_field_named_0_90053\", \"Declare a private field named '{0}'.\"),\n        Includes_imports_of_types_referenced_by_0: diag(90054, 3, \"Includes_imports_of_types_referenced_by_0_90054\", \"Includes imports of types referenced by '{0}'\"),\n        Remove_type_from_import_declaration_from_0: diag(90055, 3, \"Remove_type_from_import_declaration_from_0_90055\", `Remove 'type' from import declaration from \"{0}\"`),\n        Remove_type_from_import_of_0_from_1: diag(90056, 3, \"Remove_type_from_import_of_0_from_1_90056\", `Remove 'type' from import of '{0}' from \"{1}\"`),\n        Add_import_from_0: diag(90057, 3, \"Add_import_from_0_90057\", 'Add import from \"{0}\"'),\n        Update_import_from_0: diag(90058, 3, \"Update_import_from_0_90058\", 'Update import from \"{0}\"'),\n        Export_0_from_module_1: diag(90059, 3, \"Export_0_from_module_1_90059\", \"Export '{0}' from module '{1}'\"),\n        Export_all_referenced_locals: diag(90060, 3, \"Export_all_referenced_locals_90060\", \"Export all referenced locals\"),\n        Convert_function_to_an_ES2015_class: diag(95001, 3, \"Convert_function_to_an_ES2015_class_95001\", \"Convert function to an ES2015 class\"),\n        Convert_0_to_1_in_0: diag(95003, 3, \"Convert_0_to_1_in_0_95003\", \"Convert '{0}' to '{1} in {0}'\"),\n        Extract_to_0_in_1: diag(95004, 3, \"Extract_to_0_in_1_95004\", \"Extract to {0} in {1}\"),\n        Extract_function: diag(95005, 3, \"Extract_function_95005\", \"Extract function\"),\n        Extract_constant: diag(95006, 3, \"Extract_constant_95006\", \"Extract constant\"),\n        Extract_to_0_in_enclosing_scope: diag(95007, 3, \"Extract_to_0_in_enclosing_scope_95007\", \"Extract to {0} in enclosing scope\"),\n        Extract_to_0_in_1_scope: diag(95008, 3, \"Extract_to_0_in_1_scope_95008\", \"Extract to {0} in {1} scope\"),\n        Annotate_with_type_from_JSDoc: diag(95009, 3, \"Annotate_with_type_from_JSDoc_95009\", \"Annotate with type from JSDoc\"),\n        Infer_type_of_0_from_usage: diag(95011, 3, \"Infer_type_of_0_from_usage_95011\", \"Infer type of '{0}' from usage\"),\n        Infer_parameter_types_from_usage: diag(95012, 3, \"Infer_parameter_types_from_usage_95012\", \"Infer parameter types from usage\"),\n        Convert_to_default_import: diag(95013, 3, \"Convert_to_default_import_95013\", \"Convert to default import\"),\n        Install_0: diag(95014, 3, \"Install_0_95014\", \"Install '{0}'\"),\n        Replace_import_with_0: diag(95015, 3, \"Replace_import_with_0_95015\", \"Replace import with '{0}'.\"),\n        Use_synthetic_default_member: diag(95016, 3, \"Use_synthetic_default_member_95016\", \"Use synthetic 'default' member.\"),\n        Convert_to_ES_module: diag(95017, 3, \"Convert_to_ES_module_95017\", \"Convert to ES module\"),\n        Add_undefined_type_to_property_0: diag(95018, 3, \"Add_undefined_type_to_property_0_95018\", \"Add 'undefined' type to property '{0}'\"),\n        Add_initializer_to_property_0: diag(95019, 3, \"Add_initializer_to_property_0_95019\", \"Add initializer to property '{0}'\"),\n        Add_definite_assignment_assertion_to_property_0: diag(95020, 3, \"Add_definite_assignment_assertion_to_property_0_95020\", \"Add definite assignment assertion to property '{0}'\"),\n        Convert_all_type_literals_to_mapped_type: diag(95021, 3, \"Convert_all_type_literals_to_mapped_type_95021\", \"Convert all type literals to mapped type\"),\n        Add_all_missing_members: diag(95022, 3, \"Add_all_missing_members_95022\", \"Add all missing members\"),\n        Infer_all_types_from_usage: diag(95023, 3, \"Infer_all_types_from_usage_95023\", \"Infer all types from usage\"),\n        Delete_all_unused_declarations: diag(95024, 3, \"Delete_all_unused_declarations_95024\", \"Delete all unused declarations\"),\n        Prefix_all_unused_declarations_with_where_possible: diag(95025, 3, \"Prefix_all_unused_declarations_with_where_possible_95025\", \"Prefix all unused declarations with '_' where possible\"),\n        Fix_all_detected_spelling_errors: diag(95026, 3, \"Fix_all_detected_spelling_errors_95026\", \"Fix all detected spelling errors\"),\n        Add_initializers_to_all_uninitialized_properties: diag(95027, 3, \"Add_initializers_to_all_uninitialized_properties_95027\", \"Add initializers to all uninitialized properties\"),\n        Add_definite_assignment_assertions_to_all_uninitialized_properties: diag(95028, 3, \"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028\", \"Add definite assignment assertions to all uninitialized properties\"),\n        Add_undefined_type_to_all_uninitialized_properties: diag(95029, 3, \"Add_undefined_type_to_all_uninitialized_properties_95029\", \"Add undefined type to all uninitialized properties\"),\n        Change_all_jsdoc_style_types_to_TypeScript: diag(95030, 3, \"Change_all_jsdoc_style_types_to_TypeScript_95030\", \"Change all jsdoc-style types to TypeScript\"),\n        Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types: diag(95031, 3, \"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031\", \"Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)\"),\n        Implement_all_unimplemented_interfaces: diag(95032, 3, \"Implement_all_unimplemented_interfaces_95032\", \"Implement all unimplemented interfaces\"),\n        Install_all_missing_types_packages: diag(95033, 3, \"Install_all_missing_types_packages_95033\", \"Install all missing types packages\"),\n        Rewrite_all_as_indexed_access_types: diag(95034, 3, \"Rewrite_all_as_indexed_access_types_95034\", \"Rewrite all as indexed access types\"),\n        Convert_all_to_default_imports: diag(95035, 3, \"Convert_all_to_default_imports_95035\", \"Convert all to default imports\"),\n        Make_all_super_calls_the_first_statement_in_their_constructor: diag(95036, 3, \"Make_all_super_calls_the_first_statement_in_their_constructor_95036\", \"Make all 'super()' calls the first statement in their constructor\"),\n        Add_qualifier_to_all_unresolved_variables_matching_a_member_name: diag(95037, 3, \"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037\", \"Add qualifier to all unresolved variables matching a member name\"),\n        Change_all_extended_interfaces_to_implements: diag(95038, 3, \"Change_all_extended_interfaces_to_implements_95038\", \"Change all extended interfaces to 'implements'\"),\n        Add_all_missing_super_calls: diag(95039, 3, \"Add_all_missing_super_calls_95039\", \"Add all missing super calls\"),\n        Implement_all_inherited_abstract_classes: diag(95040, 3, \"Implement_all_inherited_abstract_classes_95040\", \"Implement all inherited abstract classes\"),\n        Add_all_missing_async_modifiers: diag(95041, 3, \"Add_all_missing_async_modifiers_95041\", \"Add all missing 'async' modifiers\"),\n        Add_ts_ignore_to_all_error_messages: diag(95042, 3, \"Add_ts_ignore_to_all_error_messages_95042\", \"Add '@ts-ignore' to all error messages\"),\n        Annotate_everything_with_types_from_JSDoc: diag(95043, 3, \"Annotate_everything_with_types_from_JSDoc_95043\", \"Annotate everything with types from JSDoc\"),\n        Add_to_all_uncalled_decorators: diag(95044, 3, \"Add_to_all_uncalled_decorators_95044\", \"Add '()' to all uncalled decorators\"),\n        Convert_all_constructor_functions_to_classes: diag(95045, 3, \"Convert_all_constructor_functions_to_classes_95045\", \"Convert all constructor functions to classes\"),\n        Generate_get_and_set_accessors: diag(95046, 3, \"Generate_get_and_set_accessors_95046\", \"Generate 'get' and 'set' accessors\"),\n        Convert_require_to_import: diag(95047, 3, \"Convert_require_to_import_95047\", \"Convert 'require' to 'import'\"),\n        Convert_all_require_to_import: diag(95048, 3, \"Convert_all_require_to_import_95048\", \"Convert all 'require' to 'import'\"),\n        Move_to_a_new_file: diag(95049, 3, \"Move_to_a_new_file_95049\", \"Move to a new file\"),\n        Remove_unreachable_code: diag(95050, 3, \"Remove_unreachable_code_95050\", \"Remove unreachable code\"),\n        Remove_all_unreachable_code: diag(95051, 3, \"Remove_all_unreachable_code_95051\", \"Remove all unreachable code\"),\n        Add_missing_typeof: diag(95052, 3, \"Add_missing_typeof_95052\", \"Add missing 'typeof'\"),\n        Remove_unused_label: diag(95053, 3, \"Remove_unused_label_95053\", \"Remove unused label\"),\n        Remove_all_unused_labels: diag(95054, 3, \"Remove_all_unused_labels_95054\", \"Remove all unused labels\"),\n        Convert_0_to_mapped_object_type: diag(95055, 3, \"Convert_0_to_mapped_object_type_95055\", \"Convert '{0}' to mapped object type\"),\n        Convert_namespace_import_to_named_imports: diag(95056, 3, \"Convert_namespace_import_to_named_imports_95056\", \"Convert namespace import to named imports\"),\n        Convert_named_imports_to_namespace_import: diag(95057, 3, \"Convert_named_imports_to_namespace_import_95057\", \"Convert named imports to namespace import\"),\n        Add_or_remove_braces_in_an_arrow_function: diag(95058, 3, \"Add_or_remove_braces_in_an_arrow_function_95058\", \"Add or remove braces in an arrow function\"),\n        Add_braces_to_arrow_function: diag(95059, 3, \"Add_braces_to_arrow_function_95059\", \"Add braces to arrow function\"),\n        Remove_braces_from_arrow_function: diag(95060, 3, \"Remove_braces_from_arrow_function_95060\", \"Remove braces from arrow function\"),\n        Convert_default_export_to_named_export: diag(95061, 3, \"Convert_default_export_to_named_export_95061\", \"Convert default export to named export\"),\n        Convert_named_export_to_default_export: diag(95062, 3, \"Convert_named_export_to_default_export_95062\", \"Convert named export to default export\"),\n        Add_missing_enum_member_0: diag(95063, 3, \"Add_missing_enum_member_0_95063\", \"Add missing enum member '{0}'\"),\n        Add_all_missing_imports: diag(95064, 3, \"Add_all_missing_imports_95064\", \"Add all missing imports\"),\n        Convert_to_async_function: diag(95065, 3, \"Convert_to_async_function_95065\", \"Convert to async function\"),\n        Convert_all_to_async_functions: diag(95066, 3, \"Convert_all_to_async_functions_95066\", \"Convert all to async functions\"),\n        Add_missing_call_parentheses: diag(95067, 3, \"Add_missing_call_parentheses_95067\", \"Add missing call parentheses\"),\n        Add_all_missing_call_parentheses: diag(95068, 3, \"Add_all_missing_call_parentheses_95068\", \"Add all missing call parentheses\"),\n        Add_unknown_conversion_for_non_overlapping_types: diag(95069, 3, \"Add_unknown_conversion_for_non_overlapping_types_95069\", \"Add 'unknown' conversion for non-overlapping types\"),\n        Add_unknown_to_all_conversions_of_non_overlapping_types: diag(95070, 3, \"Add_unknown_to_all_conversions_of_non_overlapping_types_95070\", \"Add 'unknown' to all conversions of non-overlapping types\"),\n        Add_missing_new_operator_to_call: diag(95071, 3, \"Add_missing_new_operator_to_call_95071\", \"Add missing 'new' operator to call\"),\n        Add_missing_new_operator_to_all_calls: diag(95072, 3, \"Add_missing_new_operator_to_all_calls_95072\", \"Add missing 'new' operator to all calls\"),\n        Add_names_to_all_parameters_without_names: diag(95073, 3, \"Add_names_to_all_parameters_without_names_95073\", \"Add names to all parameters without names\"),\n        Enable_the_experimentalDecorators_option_in_your_configuration_file: diag(95074, 3, \"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074\", \"Enable the 'experimentalDecorators' option in your configuration file\"),\n        Convert_parameters_to_destructured_object: diag(95075, 3, \"Convert_parameters_to_destructured_object_95075\", \"Convert parameters to destructured object\"),\n        Extract_type: diag(95077, 3, \"Extract_type_95077\", \"Extract type\"),\n        Extract_to_type_alias: diag(95078, 3, \"Extract_to_type_alias_95078\", \"Extract to type alias\"),\n        Extract_to_typedef: diag(95079, 3, \"Extract_to_typedef_95079\", \"Extract to typedef\"),\n        Infer_this_type_of_0_from_usage: diag(95080, 3, \"Infer_this_type_of_0_from_usage_95080\", \"Infer 'this' type of '{0}' from usage\"),\n        Add_const_to_unresolved_variable: diag(95081, 3, \"Add_const_to_unresolved_variable_95081\", \"Add 'const' to unresolved variable\"),\n        Add_const_to_all_unresolved_variables: diag(95082, 3, \"Add_const_to_all_unresolved_variables_95082\", \"Add 'const' to all unresolved variables\"),\n        Add_await: diag(95083, 3, \"Add_await_95083\", \"Add 'await'\"),\n        Add_await_to_initializer_for_0: diag(95084, 3, \"Add_await_to_initializer_for_0_95084\", \"Add 'await' to initializer for '{0}'\"),\n        Fix_all_expressions_possibly_missing_await: diag(95085, 3, \"Fix_all_expressions_possibly_missing_await_95085\", \"Fix all expressions possibly missing 'await'\"),\n        Remove_unnecessary_await: diag(95086, 3, \"Remove_unnecessary_await_95086\", \"Remove unnecessary 'await'\"),\n        Remove_all_unnecessary_uses_of_await: diag(95087, 3, \"Remove_all_unnecessary_uses_of_await_95087\", \"Remove all unnecessary uses of 'await'\"),\n        Enable_the_jsx_flag_in_your_configuration_file: diag(95088, 3, \"Enable_the_jsx_flag_in_your_configuration_file_95088\", \"Enable the '--jsx' flag in your configuration file\"),\n        Add_await_to_initializers: diag(95089, 3, \"Add_await_to_initializers_95089\", \"Add 'await' to initializers\"),\n        Extract_to_interface: diag(95090, 3, \"Extract_to_interface_95090\", \"Extract to interface\"),\n        Convert_to_a_bigint_numeric_literal: diag(95091, 3, \"Convert_to_a_bigint_numeric_literal_95091\", \"Convert to a bigint numeric literal\"),\n        Convert_all_to_bigint_numeric_literals: diag(95092, 3, \"Convert_all_to_bigint_numeric_literals_95092\", \"Convert all to bigint numeric literals\"),\n        Convert_const_to_let: diag(95093, 3, \"Convert_const_to_let_95093\", \"Convert 'const' to 'let'\"),\n        Prefix_with_declare: diag(95094, 3, \"Prefix_with_declare_95094\", \"Prefix with 'declare'\"),\n        Prefix_all_incorrect_property_declarations_with_declare: diag(95095, 3, \"Prefix_all_incorrect_property_declarations_with_declare_95095\", \"Prefix all incorrect property declarations with 'declare'\"),\n        Convert_to_template_string: diag(95096, 3, \"Convert_to_template_string_95096\", \"Convert to template string\"),\n        Add_export_to_make_this_file_into_a_module: diag(95097, 3, \"Add_export_to_make_this_file_into_a_module_95097\", \"Add 'export {}' to make this file into a module\"),\n        Set_the_target_option_in_your_configuration_file_to_0: diag(95098, 3, \"Set_the_target_option_in_your_configuration_file_to_0_95098\", \"Set the 'target' option in your configuration file to '{0}'\"),\n        Set_the_module_option_in_your_configuration_file_to_0: diag(95099, 3, \"Set_the_module_option_in_your_configuration_file_to_0_95099\", \"Set the 'module' option in your configuration file to '{0}'\"),\n        Convert_invalid_character_to_its_html_entity_code: diag(95100, 3, \"Convert_invalid_character_to_its_html_entity_code_95100\", \"Convert invalid character to its html entity code\"),\n        Convert_all_invalid_characters_to_HTML_entity_code: diag(95101, 3, \"Convert_all_invalid_characters_to_HTML_entity_code_95101\", \"Convert all invalid characters to HTML entity code\"),\n        Convert_all_const_to_let: diag(95102, 3, \"Convert_all_const_to_let_95102\", \"Convert all 'const' to 'let'\"),\n        Convert_function_expression_0_to_arrow_function: diag(95105, 3, \"Convert_function_expression_0_to_arrow_function_95105\", \"Convert function expression '{0}' to arrow function\"),\n        Convert_function_declaration_0_to_arrow_function: diag(95106, 3, \"Convert_function_declaration_0_to_arrow_function_95106\", \"Convert function declaration '{0}' to arrow function\"),\n        Fix_all_implicit_this_errors: diag(95107, 3, \"Fix_all_implicit_this_errors_95107\", \"Fix all implicit-'this' errors\"),\n        Wrap_invalid_character_in_an_expression_container: diag(95108, 3, \"Wrap_invalid_character_in_an_expression_container_95108\", \"Wrap invalid character in an expression container\"),\n        Wrap_all_invalid_characters_in_an_expression_container: diag(95109, 3, \"Wrap_all_invalid_characters_in_an_expression_container_95109\", \"Wrap all invalid characters in an expression container\"),\n        Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file: diag(95110, 3, \"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110\", \"Visit https://aka.ms/tsconfig to read more about this file\"),\n        Add_a_return_statement: diag(95111, 3, \"Add_a_return_statement_95111\", \"Add a return statement\"),\n        Remove_braces_from_arrow_function_body: diag(95112, 3, \"Remove_braces_from_arrow_function_body_95112\", \"Remove braces from arrow function body\"),\n        Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal: diag(95113, 3, \"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113\", \"Wrap the following body with parentheses which should be an object literal\"),\n        Add_all_missing_return_statement: diag(95114, 3, \"Add_all_missing_return_statement_95114\", \"Add all missing return statement\"),\n        Remove_braces_from_all_arrow_function_bodies_with_relevant_issues: diag(95115, 3, \"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115\", \"Remove braces from all arrow function bodies with relevant issues\"),\n        Wrap_all_object_literal_with_parentheses: diag(95116, 3, \"Wrap_all_object_literal_with_parentheses_95116\", \"Wrap all object literal with parentheses\"),\n        Move_labeled_tuple_element_modifiers_to_labels: diag(95117, 3, \"Move_labeled_tuple_element_modifiers_to_labels_95117\", \"Move labeled tuple element modifiers to labels\"),\n        Convert_overload_list_to_single_signature: diag(95118, 3, \"Convert_overload_list_to_single_signature_95118\", \"Convert overload list to single signature\"),\n        Generate_get_and_set_accessors_for_all_overriding_properties: diag(95119, 3, \"Generate_get_and_set_accessors_for_all_overriding_properties_95119\", \"Generate 'get' and 'set' accessors for all overriding properties\"),\n        Wrap_in_JSX_fragment: diag(95120, 3, \"Wrap_in_JSX_fragment_95120\", \"Wrap in JSX fragment\"),\n        Wrap_all_unparented_JSX_in_JSX_fragment: diag(95121, 3, \"Wrap_all_unparented_JSX_in_JSX_fragment_95121\", \"Wrap all unparented JSX in JSX fragment\"),\n        Convert_arrow_function_or_function_expression: diag(95122, 3, \"Convert_arrow_function_or_function_expression_95122\", \"Convert arrow function or function expression\"),\n        Convert_to_anonymous_function: diag(95123, 3, \"Convert_to_anonymous_function_95123\", \"Convert to anonymous function\"),\n        Convert_to_named_function: diag(95124, 3, \"Convert_to_named_function_95124\", \"Convert to named function\"),\n        Convert_to_arrow_function: diag(95125, 3, \"Convert_to_arrow_function_95125\", \"Convert to arrow function\"),\n        Remove_parentheses: diag(95126, 3, \"Remove_parentheses_95126\", \"Remove parentheses\"),\n        Could_not_find_a_containing_arrow_function: diag(95127, 3, \"Could_not_find_a_containing_arrow_function_95127\", \"Could not find a containing arrow function\"),\n        Containing_function_is_not_an_arrow_function: diag(95128, 3, \"Containing_function_is_not_an_arrow_function_95128\", \"Containing function is not an arrow function\"),\n        Could_not_find_export_statement: diag(95129, 3, \"Could_not_find_export_statement_95129\", \"Could not find export statement\"),\n        This_file_already_has_a_default_export: diag(95130, 3, \"This_file_already_has_a_default_export_95130\", \"This file already has a default export\"),\n        Could_not_find_import_clause: diag(95131, 3, \"Could_not_find_import_clause_95131\", \"Could not find import clause\"),\n        Could_not_find_namespace_import_or_named_imports: diag(95132, 3, \"Could_not_find_namespace_import_or_named_imports_95132\", \"Could not find namespace import or named imports\"),\n        Selection_is_not_a_valid_type_node: diag(95133, 3, \"Selection_is_not_a_valid_type_node_95133\", \"Selection is not a valid type node\"),\n        No_type_could_be_extracted_from_this_type_node: diag(95134, 3, \"No_type_could_be_extracted_from_this_type_node_95134\", \"No type could be extracted from this type node\"),\n        Could_not_find_property_for_which_to_generate_accessor: diag(95135, 3, \"Could_not_find_property_for_which_to_generate_accessor_95135\", \"Could not find property for which to generate accessor\"),\n        Name_is_not_valid: diag(95136, 3, \"Name_is_not_valid_95136\", \"Name is not valid\"),\n        Can_only_convert_property_with_modifier: diag(95137, 3, \"Can_only_convert_property_with_modifier_95137\", \"Can only convert property with modifier\"),\n        Switch_each_misused_0_to_1: diag(95138, 3, \"Switch_each_misused_0_to_1_95138\", \"Switch each misused '{0}' to '{1}'\"),\n        Convert_to_optional_chain_expression: diag(95139, 3, \"Convert_to_optional_chain_expression_95139\", \"Convert to optional chain expression\"),\n        Could_not_find_convertible_access_expression: diag(95140, 3, \"Could_not_find_convertible_access_expression_95140\", \"Could not find convertible access expression\"),\n        Could_not_find_matching_access_expressions: diag(95141, 3, \"Could_not_find_matching_access_expressions_95141\", \"Could not find matching access expressions\"),\n        Can_only_convert_logical_AND_access_chains: diag(95142, 3, \"Can_only_convert_logical_AND_access_chains_95142\", \"Can only convert logical AND access chains\"),\n        Add_void_to_Promise_resolved_without_a_value: diag(95143, 3, \"Add_void_to_Promise_resolved_without_a_value_95143\", \"Add 'void' to Promise resolved without a value\"),\n        Add_void_to_all_Promises_resolved_without_a_value: diag(95144, 3, \"Add_void_to_all_Promises_resolved_without_a_value_95144\", \"Add 'void' to all Promises resolved without a value\"),\n        Use_element_access_for_0: diag(95145, 3, \"Use_element_access_for_0_95145\", \"Use element access for '{0}'\"),\n        Use_element_access_for_all_undeclared_properties: diag(95146, 3, \"Use_element_access_for_all_undeclared_properties_95146\", \"Use element access for all undeclared properties.\"),\n        Delete_all_unused_imports: diag(95147, 3, \"Delete_all_unused_imports_95147\", \"Delete all unused imports\"),\n        Infer_function_return_type: diag(95148, 3, \"Infer_function_return_type_95148\", \"Infer function return type\"),\n        Return_type_must_be_inferred_from_a_function: diag(95149, 3, \"Return_type_must_be_inferred_from_a_function_95149\", \"Return type must be inferred from a function\"),\n        Could_not_determine_function_return_type: diag(95150, 3, \"Could_not_determine_function_return_type_95150\", \"Could not determine function return type\"),\n        Could_not_convert_to_arrow_function: diag(95151, 3, \"Could_not_convert_to_arrow_function_95151\", \"Could not convert to arrow function\"),\n        Could_not_convert_to_named_function: diag(95152, 3, \"Could_not_convert_to_named_function_95152\", \"Could not convert to named function\"),\n        Could_not_convert_to_anonymous_function: diag(95153, 3, \"Could_not_convert_to_anonymous_function_95153\", \"Could not convert to anonymous function\"),\n        Can_only_convert_string_concatenation: diag(95154, 3, \"Can_only_convert_string_concatenation_95154\", \"Can only convert string concatenation\"),\n        Selection_is_not_a_valid_statement_or_statements: diag(95155, 3, \"Selection_is_not_a_valid_statement_or_statements_95155\", \"Selection is not a valid statement or statements\"),\n        Add_missing_function_declaration_0: diag(95156, 3, \"Add_missing_function_declaration_0_95156\", \"Add missing function declaration '{0}'\"),\n        Add_all_missing_function_declarations: diag(95157, 3, \"Add_all_missing_function_declarations_95157\", \"Add all missing function declarations\"),\n        Method_not_implemented: diag(95158, 3, \"Method_not_implemented_95158\", \"Method not implemented.\"),\n        Function_not_implemented: diag(95159, 3, \"Function_not_implemented_95159\", \"Function not implemented.\"),\n        Add_override_modifier: diag(95160, 3, \"Add_override_modifier_95160\", \"Add 'override' modifier\"),\n        Remove_override_modifier: diag(95161, 3, \"Remove_override_modifier_95161\", \"Remove 'override' modifier\"),\n        Add_all_missing_override_modifiers: diag(95162, 3, \"Add_all_missing_override_modifiers_95162\", \"Add all missing 'override' modifiers\"),\n        Remove_all_unnecessary_override_modifiers: diag(95163, 3, \"Remove_all_unnecessary_override_modifiers_95163\", \"Remove all unnecessary 'override' modifiers\"),\n        Can_only_convert_named_export: diag(95164, 3, \"Can_only_convert_named_export_95164\", \"Can only convert named export\"),\n        Add_missing_properties: diag(95165, 3, \"Add_missing_properties_95165\", \"Add missing properties\"),\n        Add_all_missing_properties: diag(95166, 3, \"Add_all_missing_properties_95166\", \"Add all missing properties\"),\n        Add_missing_attributes: diag(95167, 3, \"Add_missing_attributes_95167\", \"Add missing attributes\"),\n        Add_all_missing_attributes: diag(95168, 3, \"Add_all_missing_attributes_95168\", \"Add all missing attributes\"),\n        Add_undefined_to_optional_property_type: diag(95169, 3, \"Add_undefined_to_optional_property_type_95169\", \"Add 'undefined' to optional property type\"),\n        Convert_named_imports_to_default_import: diag(95170, 3, \"Convert_named_imports_to_default_import_95170\", \"Convert named imports to default import\"),\n        Delete_unused_param_tag_0: diag(95171, 3, \"Delete_unused_param_tag_0_95171\", \"Delete unused '@param' tag '{0}'\"),\n        Delete_all_unused_param_tags: diag(95172, 3, \"Delete_all_unused_param_tags_95172\", \"Delete all unused '@param' tags\"),\n        Rename_param_tag_name_0_to_1: diag(95173, 3, \"Rename_param_tag_name_0_to_1_95173\", \"Rename '@param' tag name '{0}' to '{1}'\"),\n        Use_0: diag(95174, 3, \"Use_0_95174\", \"Use `{0}`.\"),\n        Use_Number_isNaN_in_all_conditions: diag(95175, 3, \"Use_Number_isNaN_in_all_conditions_95175\", \"Use `Number.isNaN` in all conditions.\"),\n        No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer: diag(18004, 1, \"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004\", \"No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer.\"),\n        Classes_may_not_have_a_field_named_constructor: diag(18006, 1, \"Classes_may_not_have_a_field_named_constructor_18006\", \"Classes may not have a field named 'constructor'.\"),\n        JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array: diag(18007, 1, \"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007\", \"JSX expressions may not use the comma operator. Did you mean to write an array?\"),\n        Private_identifiers_cannot_be_used_as_parameters: diag(18009, 1, \"Private_identifiers_cannot_be_used_as_parameters_18009\", \"Private identifiers cannot be used as parameters.\"),\n        An_accessibility_modifier_cannot_be_used_with_a_private_identifier: diag(18010, 1, \"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010\", \"An accessibility modifier cannot be used with a private identifier.\"),\n        The_operand_of_a_delete_operator_cannot_be_a_private_identifier: diag(18011, 1, \"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011\", \"The operand of a 'delete' operator cannot be a private identifier.\"),\n        constructor_is_a_reserved_word: diag(18012, 1, \"constructor_is_a_reserved_word_18012\", \"'#constructor' is a reserved word.\"),\n        Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier: diag(18013, 1, \"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013\", \"Property '{0}' is not accessible outside class '{1}' because it has a private identifier.\"),\n        The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling: diag(18014, 1, \"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014\", \"The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling.\"),\n        Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2: diag(18015, 1, \"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015\", \"Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'.\"),\n        Private_identifiers_are_not_allowed_outside_class_bodies: diag(18016, 1, \"Private_identifiers_are_not_allowed_outside_class_bodies_18016\", \"Private identifiers are not allowed outside class bodies.\"),\n        The_shadowing_declaration_of_0_is_defined_here: diag(18017, 1, \"The_shadowing_declaration_of_0_is_defined_here_18017\", \"The shadowing declaration of '{0}' is defined here\"),\n        The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here: diag(18018, 1, \"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018\", \"The declaration of '{0}' that you probably intended to use is defined here\"),\n        _0_modifier_cannot_be_used_with_a_private_identifier: diag(18019, 1, \"_0_modifier_cannot_be_used_with_a_private_identifier_18019\", \"'{0}' modifier cannot be used with a private identifier.\"),\n        An_enum_member_cannot_be_named_with_a_private_identifier: diag(18024, 1, \"An_enum_member_cannot_be_named_with_a_private_identifier_18024\", \"An enum member cannot be named with a private identifier.\"),\n        can_only_be_used_at_the_start_of_a_file: diag(18026, 1, \"can_only_be_used_at_the_start_of_a_file_18026\", \"'#!' can only be used at the start of a file.\"),\n        Compiler_reserves_name_0_when_emitting_private_identifier_downlevel: diag(18027, 1, \"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027\", \"Compiler reserves name '{0}' when emitting private identifier downlevel.\"),\n        Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher: diag(18028, 1, \"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028\", \"Private identifiers are only available when targeting ECMAScript 2015 and higher.\"),\n        Private_identifiers_are_not_allowed_in_variable_declarations: diag(18029, 1, \"Private_identifiers_are_not_allowed_in_variable_declarations_18029\", \"Private identifiers are not allowed in variable declarations.\"),\n        An_optional_chain_cannot_contain_private_identifiers: diag(18030, 1, \"An_optional_chain_cannot_contain_private_identifiers_18030\", \"An optional chain cannot contain private identifiers.\"),\n        The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents: diag(18031, 1, \"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031\", \"The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents.\"),\n        The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some: diag(18032, 1, \"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032\", \"The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some.\"),\n        Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values: diag(18033, 1, \"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033\", \"Type '{0}' is not assignable to type '{1}' as required for computed enum member values.\"),\n        Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment: diag(18034, 3, \"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034\", \"Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'.\"),\n        Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name: diag(18035, 1, \"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035\", \"Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name.\"),\n        Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator: diag(18036, 1, \"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036\", \"Class decorators can't be used with static private identifier. Consider removing the experimental decorator.\"),\n        Await_expression_cannot_be_used_inside_a_class_static_block: diag(18037, 1, \"Await_expression_cannot_be_used_inside_a_class_static_block_18037\", \"Await expression cannot be used inside a class static block.\"),\n        For_await_loops_cannot_be_used_inside_a_class_static_block: diag(18038, 1, \"For_await_loops_cannot_be_used_inside_a_class_static_block_18038\", \"'For await' loops cannot be used inside a class static block.\"),\n        Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block: diag(18039, 1, \"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039\", \"Invalid use of '{0}'. It cannot be used inside a class static block.\"),\n        A_return_statement_cannot_be_used_inside_a_class_static_block: diag(18041, 1, \"A_return_statement_cannot_be_used_inside_a_class_static_block_18041\", \"A 'return' statement cannot be used inside a class static block.\"),\n        _0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation: diag(18042, 1, \"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042\", \"'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation.\"),\n        Types_cannot_appear_in_export_declarations_in_JavaScript_files: diag(18043, 1, \"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043\", \"Types cannot appear in export declarations in JavaScript files.\"),\n        _0_is_automatically_exported_here: diag(18044, 3, \"_0_is_automatically_exported_here_18044\", \"'{0}' is automatically exported here.\"),\n        Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher: diag(18045, 1, \"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045\", \"Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.\"),\n        _0_is_of_type_unknown: diag(18046, 1, \"_0_is_of_type_unknown_18046\", \"'{0}' is of type 'unknown'.\"),\n        _0_is_possibly_null: diag(18047, 1, \"_0_is_possibly_null_18047\", \"'{0}' is possibly 'null'.\"),\n        _0_is_possibly_undefined: diag(18048, 1, \"_0_is_possibly_undefined_18048\", \"'{0}' is possibly 'undefined'.\"),\n        _0_is_possibly_null_or_undefined: diag(18049, 1, \"_0_is_possibly_null_or_undefined_18049\", \"'{0}' is possibly 'null' or 'undefined'.\"),\n        The_value_0_cannot_be_used_here: diag(18050, 1, \"The_value_0_cannot_be_used_here_18050\", \"The value '{0}' cannot be used here.\"),\n        Compiler_option_0_cannot_be_given_an_empty_string: diag(18051, 1, \"Compiler_option_0_cannot_be_given_an_empty_string_18051\", \"Compiler option '{0}' cannot be given an empty string.\")\n      };\n    }\n  });\n  function tokenIsIdentifierOrKeyword(token) {\n    return token >= 79;\n  }\n  function tokenIsIdentifierOrKeywordOrGreaterThan(token) {\n    return token === 31 || tokenIsIdentifierOrKeyword(token);\n  }\n  function lookupInUnicodeMap(code, map2) {\n    if (code < map2[0]) {\n      return false;\n    }\n    let lo = 0;\n    let hi = map2.length;\n    let mid;\n    while (lo + 1 < hi) {\n      mid = lo + (hi - lo) / 2;\n      mid -= mid % 2;\n      if (map2[mid] <= code && code <= map2[mid + 1]) {\n        return true;\n      }\n      if (code < map2[mid]) {\n        hi = mid;\n      } else {\n        lo = mid + 2;\n      }\n    }\n    return false;\n  }\n  function isUnicodeIdentifierStart(code, languageVersion) {\n    return languageVersion >= 2 ? lookupInUnicodeMap(code, unicodeESNextIdentifierStart) : languageVersion === 1 ? lookupInUnicodeMap(code, unicodeES5IdentifierStart) : lookupInUnicodeMap(code, unicodeES3IdentifierStart);\n  }\n  function isUnicodeIdentifierPart(code, languageVersion) {\n    return languageVersion >= 2 ? lookupInUnicodeMap(code, unicodeESNextIdentifierPart) : languageVersion === 1 ? lookupInUnicodeMap(code, unicodeES5IdentifierPart) : lookupInUnicodeMap(code, unicodeES3IdentifierPart);\n  }\n  function makeReverseMap(source) {\n    const result = [];\n    source.forEach((value, name) => {\n      result[value] = name;\n    });\n    return result;\n  }\n  function tokenToString(t) {\n    return tokenStrings[t];\n  }\n  function stringToToken(s) {\n    return textToToken.get(s);\n  }\n  function computeLineStarts(text) {\n    const result = [];\n    let pos = 0;\n    let lineStart = 0;\n    while (pos < text.length) {\n      const ch = text.charCodeAt(pos);\n      pos++;\n      switch (ch) {\n        case 13:\n          if (text.charCodeAt(pos) === 10) {\n            pos++;\n          }\n        case 10:\n          result.push(lineStart);\n          lineStart = pos;\n          break;\n        default:\n          if (ch > 127 && isLineBreak(ch)) {\n            result.push(lineStart);\n            lineStart = pos;\n          }\n          break;\n      }\n    }\n    result.push(lineStart);\n    return result;\n  }\n  function getPositionOfLineAndCharacter(sourceFile, line, character, allowEdits) {\n    return sourceFile.getPositionOfLineAndCharacter ? sourceFile.getPositionOfLineAndCharacter(line, character, allowEdits) : computePositionOfLineAndCharacter(getLineStarts(sourceFile), line, character, sourceFile.text, allowEdits);\n  }\n  function computePositionOfLineAndCharacter(lineStarts, line, character, debugText, allowEdits) {\n    if (line < 0 || line >= lineStarts.length) {\n      if (allowEdits) {\n        line = line < 0 ? 0 : line >= lineStarts.length ? lineStarts.length - 1 : line;\n      } else {\n        Debug.fail(`Bad line number. Line: ${line}, lineStarts.length: ${lineStarts.length} , line map is correct? ${debugText !== void 0 ? arraysEqual(lineStarts, computeLineStarts(debugText)) : \"unknown\"}`);\n      }\n    }\n    const res = lineStarts[line] + character;\n    if (allowEdits) {\n      return res > lineStarts[line + 1] ? lineStarts[line + 1] : typeof debugText === \"string\" && res > debugText.length ? debugText.length : res;\n    }\n    if (line < lineStarts.length - 1) {\n      Debug.assert(res < lineStarts[line + 1]);\n    } else if (debugText !== void 0) {\n      Debug.assert(res <= debugText.length);\n    }\n    return res;\n  }\n  function getLineStarts(sourceFile) {\n    return sourceFile.lineMap || (sourceFile.lineMap = computeLineStarts(sourceFile.text));\n  }\n  function computeLineAndCharacterOfPosition(lineStarts, position) {\n    const lineNumber = computeLineOfPosition(lineStarts, position);\n    return {\n      line: lineNumber,\n      character: position - lineStarts[lineNumber]\n    };\n  }\n  function computeLineOfPosition(lineStarts, position, lowerBound) {\n    let lineNumber = binarySearch(lineStarts, position, identity, compareValues, lowerBound);\n    if (lineNumber < 0) {\n      lineNumber = ~lineNumber - 1;\n      Debug.assert(lineNumber !== -1, \"position cannot precede the beginning of the file\");\n    }\n    return lineNumber;\n  }\n  function getLinesBetweenPositions(sourceFile, pos1, pos2) {\n    if (pos1 === pos2)\n      return 0;\n    const lineStarts = getLineStarts(sourceFile);\n    const lower = Math.min(pos1, pos2);\n    const isNegative = lower === pos2;\n    const upper = isNegative ? pos1 : pos2;\n    const lowerLine = computeLineOfPosition(lineStarts, lower);\n    const upperLine = computeLineOfPosition(lineStarts, upper, lowerLine);\n    return isNegative ? lowerLine - upperLine : upperLine - lowerLine;\n  }\n  function getLineAndCharacterOfPosition(sourceFile, position) {\n    return computeLineAndCharacterOfPosition(getLineStarts(sourceFile), position);\n  }\n  function isWhiteSpaceLike(ch) {\n    return isWhiteSpaceSingleLine(ch) || isLineBreak(ch);\n  }\n  function isWhiteSpaceSingleLine(ch) {\n    return ch === 32 || ch === 9 || ch === 11 || ch === 12 || ch === 160 || ch === 133 || ch === 5760 || ch >= 8192 && ch <= 8203 || ch === 8239 || ch === 8287 || ch === 12288 || ch === 65279;\n  }\n  function isLineBreak(ch) {\n    return ch === 10 || ch === 13 || ch === 8232 || ch === 8233;\n  }\n  function isDigit(ch) {\n    return ch >= 48 && ch <= 57;\n  }\n  function isHexDigit(ch) {\n    return isDigit(ch) || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102;\n  }\n  function isCodePoint(code) {\n    return code <= 1114111;\n  }\n  function isOctalDigit(ch) {\n    return ch >= 48 && ch <= 55;\n  }\n  function couldStartTrivia(text, pos) {\n    const ch = text.charCodeAt(pos);\n    switch (ch) {\n      case 13:\n      case 10:\n      case 9:\n      case 11:\n      case 12:\n      case 32:\n      case 47:\n      case 60:\n      case 124:\n      case 61:\n      case 62:\n        return true;\n      case 35:\n        return pos === 0;\n      default:\n        return ch > 127;\n    }\n  }\n  function skipTrivia(text, pos, stopAfterLineBreak, stopAtComments, inJSDoc) {\n    if (positionIsSynthesized(pos)) {\n      return pos;\n    }\n    let canConsumeStar = false;\n    while (true) {\n      const ch = text.charCodeAt(pos);\n      switch (ch) {\n        case 13:\n          if (text.charCodeAt(pos + 1) === 10) {\n            pos++;\n          }\n        case 10:\n          pos++;\n          if (stopAfterLineBreak) {\n            return pos;\n          }\n          canConsumeStar = !!inJSDoc;\n          continue;\n        case 9:\n        case 11:\n        case 12:\n        case 32:\n          pos++;\n          continue;\n        case 47:\n          if (stopAtComments) {\n            break;\n          }\n          if (text.charCodeAt(pos + 1) === 47) {\n            pos += 2;\n            while (pos < text.length) {\n              if (isLineBreak(text.charCodeAt(pos))) {\n                break;\n              }\n              pos++;\n            }\n            canConsumeStar = false;\n            continue;\n          }\n          if (text.charCodeAt(pos + 1) === 42) {\n            pos += 2;\n            while (pos < text.length) {\n              if (text.charCodeAt(pos) === 42 && text.charCodeAt(pos + 1) === 47) {\n                pos += 2;\n                break;\n              }\n              pos++;\n            }\n            canConsumeStar = false;\n            continue;\n          }\n          break;\n        case 60:\n        case 124:\n        case 61:\n        case 62:\n          if (isConflictMarkerTrivia(text, pos)) {\n            pos = scanConflictMarkerTrivia(text, pos);\n            canConsumeStar = false;\n            continue;\n          }\n          break;\n        case 35:\n          if (pos === 0 && isShebangTrivia(text, pos)) {\n            pos = scanShebangTrivia(text, pos);\n            canConsumeStar = false;\n            continue;\n          }\n          break;\n        case 42:\n          if (canConsumeStar) {\n            pos++;\n            canConsumeStar = false;\n            continue;\n          }\n          break;\n        default:\n          if (ch > 127 && isWhiteSpaceLike(ch)) {\n            pos++;\n            continue;\n          }\n          break;\n      }\n      return pos;\n    }\n  }\n  function isConflictMarkerTrivia(text, pos) {\n    Debug.assert(pos >= 0);\n    if (pos === 0 || isLineBreak(text.charCodeAt(pos - 1))) {\n      const ch = text.charCodeAt(pos);\n      if (pos + mergeConflictMarkerLength < text.length) {\n        for (let i = 0; i < mergeConflictMarkerLength; i++) {\n          if (text.charCodeAt(pos + i) !== ch) {\n            return false;\n          }\n        }\n        return ch === 61 || text.charCodeAt(pos + mergeConflictMarkerLength) === 32;\n      }\n    }\n    return false;\n  }\n  function scanConflictMarkerTrivia(text, pos, error) {\n    if (error) {\n      error(Diagnostics.Merge_conflict_marker_encountered, pos, mergeConflictMarkerLength);\n    }\n    const ch = text.charCodeAt(pos);\n    const len = text.length;\n    if (ch === 60 || ch === 62) {\n      while (pos < len && !isLineBreak(text.charCodeAt(pos))) {\n        pos++;\n      }\n    } else {\n      Debug.assert(ch === 124 || ch === 61);\n      while (pos < len) {\n        const currentChar = text.charCodeAt(pos);\n        if ((currentChar === 61 || currentChar === 62) && currentChar !== ch && isConflictMarkerTrivia(text, pos)) {\n          break;\n        }\n        pos++;\n      }\n    }\n    return pos;\n  }\n  function isShebangTrivia(text, pos) {\n    Debug.assert(pos === 0);\n    return shebangTriviaRegex.test(text);\n  }\n  function scanShebangTrivia(text, pos) {\n    const shebang = shebangTriviaRegex.exec(text)[0];\n    pos = pos + shebang.length;\n    return pos;\n  }\n  function iterateCommentRanges(reduce, text, pos, trailing, cb, state, initial) {\n    let pendingPos;\n    let pendingEnd;\n    let pendingKind;\n    let pendingHasTrailingNewLine;\n    let hasPendingCommentRange = false;\n    let collecting = trailing;\n    let accumulator = initial;\n    if (pos === 0) {\n      collecting = true;\n      const shebang = getShebang(text);\n      if (shebang) {\n        pos = shebang.length;\n      }\n    }\n    scan:\n      while (pos >= 0 && pos < text.length) {\n        const ch = text.charCodeAt(pos);\n        switch (ch) {\n          case 13:\n            if (text.charCodeAt(pos + 1) === 10) {\n              pos++;\n            }\n          case 10:\n            pos++;\n            if (trailing) {\n              break scan;\n            }\n            collecting = true;\n            if (hasPendingCommentRange) {\n              pendingHasTrailingNewLine = true;\n            }\n            continue;\n          case 9:\n          case 11:\n          case 12:\n          case 32:\n            pos++;\n            continue;\n          case 47:\n            const nextChar = text.charCodeAt(pos + 1);\n            let hasTrailingNewLine = false;\n            if (nextChar === 47 || nextChar === 42) {\n              const kind = nextChar === 47 ? 2 : 3;\n              const startPos = pos;\n              pos += 2;\n              if (nextChar === 47) {\n                while (pos < text.length) {\n                  if (isLineBreak(text.charCodeAt(pos))) {\n                    hasTrailingNewLine = true;\n                    break;\n                  }\n                  pos++;\n                }\n              } else {\n                while (pos < text.length) {\n                  if (text.charCodeAt(pos) === 42 && text.charCodeAt(pos + 1) === 47) {\n                    pos += 2;\n                    break;\n                  }\n                  pos++;\n                }\n              }\n              if (collecting) {\n                if (hasPendingCommentRange) {\n                  accumulator = cb(pendingPos, pendingEnd, pendingKind, pendingHasTrailingNewLine, state, accumulator);\n                  if (!reduce && accumulator) {\n                    return accumulator;\n                  }\n                }\n                pendingPos = startPos;\n                pendingEnd = pos;\n                pendingKind = kind;\n                pendingHasTrailingNewLine = hasTrailingNewLine;\n                hasPendingCommentRange = true;\n              }\n              continue;\n            }\n            break scan;\n          default:\n            if (ch > 127 && isWhiteSpaceLike(ch)) {\n              if (hasPendingCommentRange && isLineBreak(ch)) {\n                pendingHasTrailingNewLine = true;\n              }\n              pos++;\n              continue;\n            }\n            break scan;\n        }\n      }\n    if (hasPendingCommentRange) {\n      accumulator = cb(pendingPos, pendingEnd, pendingKind, pendingHasTrailingNewLine, state, accumulator);\n    }\n    return accumulator;\n  }\n  function forEachLeadingCommentRange(text, pos, cb, state) {\n    return iterateCommentRanges(false, text, pos, false, cb, state);\n  }\n  function forEachTrailingCommentRange(text, pos, cb, state) {\n    return iterateCommentRanges(false, text, pos, true, cb, state);\n  }\n  function reduceEachLeadingCommentRange(text, pos, cb, state, initial) {\n    return iterateCommentRanges(true, text, pos, false, cb, state, initial);\n  }\n  function reduceEachTrailingCommentRange(text, pos, cb, state, initial) {\n    return iterateCommentRanges(true, text, pos, true, cb, state, initial);\n  }\n  function appendCommentRange(pos, end, kind, hasTrailingNewLine, _state, comments = []) {\n    comments.push({ kind, pos, end, hasTrailingNewLine });\n    return comments;\n  }\n  function getLeadingCommentRanges(text, pos) {\n    return reduceEachLeadingCommentRange(text, pos, appendCommentRange, void 0, void 0);\n  }\n  function getTrailingCommentRanges(text, pos) {\n    return reduceEachTrailingCommentRange(text, pos, appendCommentRange, void 0, void 0);\n  }\n  function getShebang(text) {\n    const match = shebangTriviaRegex.exec(text);\n    if (match) {\n      return match[0];\n    }\n  }\n  function isIdentifierStart(ch, languageVersion) {\n    return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || ch === 36 || ch === 95 || ch > 127 && isUnicodeIdentifierStart(ch, languageVersion);\n  }\n  function isIdentifierPart(ch, languageVersion, identifierVariant) {\n    return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || ch >= 48 && ch <= 57 || ch === 36 || ch === 95 || (identifierVariant === 1 ? ch === 45 || ch === 58 : false) || ch > 127 && isUnicodeIdentifierPart(ch, languageVersion);\n  }\n  function isIdentifierText(name, languageVersion, identifierVariant) {\n    let ch = codePointAt(name, 0);\n    if (!isIdentifierStart(ch, languageVersion)) {\n      return false;\n    }\n    for (let i = charSize(ch); i < name.length; i += charSize(ch)) {\n      if (!isIdentifierPart(ch = codePointAt(name, i), languageVersion, identifierVariant)) {\n        return false;\n      }\n    }\n    return true;\n  }\n  function createScanner(languageVersion, skipTrivia2, languageVariant = 0, textInitial, onError, start, length2) {\n    var text = textInitial;\n    var pos;\n    var end;\n    var startPos;\n    var tokenPos;\n    var token;\n    var tokenValue;\n    var tokenFlags;\n    var commentDirectives;\n    var inJSDocType = 0;\n    setText(text, start, length2);\n    var scanner2 = {\n      getStartPos: () => startPos,\n      getTextPos: () => pos,\n      getToken: () => token,\n      getTokenPos: () => tokenPos,\n      getTokenText: () => text.substring(tokenPos, pos),\n      getTokenValue: () => tokenValue,\n      hasUnicodeEscape: () => (tokenFlags & 1024) !== 0,\n      hasExtendedUnicodeEscape: () => (tokenFlags & 8) !== 0,\n      hasPrecedingLineBreak: () => (tokenFlags & 1) !== 0,\n      hasPrecedingJSDocComment: () => (tokenFlags & 2) !== 0,\n      isIdentifier: () => token === 79 || token > 116,\n      isReservedWord: () => token >= 81 && token <= 116,\n      isUnterminated: () => (tokenFlags & 4) !== 0,\n      getCommentDirectives: () => commentDirectives,\n      getNumericLiteralFlags: () => tokenFlags & 1008,\n      getTokenFlags: () => tokenFlags,\n      reScanGreaterToken,\n      reScanAsteriskEqualsToken,\n      reScanSlashToken,\n      reScanTemplateToken,\n      reScanTemplateHeadOrNoSubstitutionTemplate,\n      scanJsxIdentifier,\n      scanJsxAttributeValue,\n      reScanJsxAttributeValue,\n      reScanJsxToken,\n      reScanLessThanToken,\n      reScanHashToken,\n      reScanQuestionToken,\n      reScanInvalidIdentifier,\n      scanJsxToken,\n      scanJsDocToken,\n      scan,\n      getText,\n      clearCommentDirectives,\n      setText,\n      setScriptTarget,\n      setLanguageVariant,\n      setOnError,\n      setTextPos,\n      setInJSDocType,\n      tryScan,\n      lookAhead,\n      scanRange\n    };\n    if (Debug.isDebugging) {\n      Object.defineProperty(scanner2, \"__debugShowCurrentPositionInText\", {\n        get: () => {\n          const text2 = scanner2.getText();\n          return text2.slice(0, scanner2.getStartPos()) + \"\\u2551\" + text2.slice(scanner2.getStartPos());\n        }\n      });\n    }\n    return scanner2;\n    function error(message, errPos = pos, length3) {\n      if (onError) {\n        const oldPos = pos;\n        pos = errPos;\n        onError(message, length3 || 0);\n        pos = oldPos;\n      }\n    }\n    function scanNumberFragment() {\n      let start2 = pos;\n      let allowSeparator = false;\n      let isPreviousTokenSeparator = false;\n      let result = \"\";\n      while (true) {\n        const ch = text.charCodeAt(pos);\n        if (ch === 95) {\n          tokenFlags |= 512;\n          if (allowSeparator) {\n            allowSeparator = false;\n            isPreviousTokenSeparator = true;\n            result += text.substring(start2, pos);\n          } else if (isPreviousTokenSeparator) {\n            error(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1);\n          } else {\n            error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1);\n          }\n          pos++;\n          start2 = pos;\n          continue;\n        }\n        if (isDigit(ch)) {\n          allowSeparator = true;\n          isPreviousTokenSeparator = false;\n          pos++;\n          continue;\n        }\n        break;\n      }\n      if (text.charCodeAt(pos - 1) === 95) {\n        error(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1);\n      }\n      return result + text.substring(start2, pos);\n    }\n    function scanNumber() {\n      const start2 = pos;\n      const mainFragment = scanNumberFragment();\n      let decimalFragment;\n      let scientificFragment;\n      if (text.charCodeAt(pos) === 46) {\n        pos++;\n        decimalFragment = scanNumberFragment();\n      }\n      let end2 = pos;\n      if (text.charCodeAt(pos) === 69 || text.charCodeAt(pos) === 101) {\n        pos++;\n        tokenFlags |= 16;\n        if (text.charCodeAt(pos) === 43 || text.charCodeAt(pos) === 45)\n          pos++;\n        const preNumericPart = pos;\n        const finalFragment = scanNumberFragment();\n        if (!finalFragment) {\n          error(Diagnostics.Digit_expected);\n        } else {\n          scientificFragment = text.substring(end2, preNumericPart) + finalFragment;\n          end2 = pos;\n        }\n      }\n      let result;\n      if (tokenFlags & 512) {\n        result = mainFragment;\n        if (decimalFragment) {\n          result += \".\" + decimalFragment;\n        }\n        if (scientificFragment) {\n          result += scientificFragment;\n        }\n      } else {\n        result = text.substring(start2, end2);\n      }\n      if (decimalFragment !== void 0 || tokenFlags & 16) {\n        checkForIdentifierStartAfterNumericLiteral(start2, decimalFragment === void 0 && !!(tokenFlags & 16));\n        return {\n          type: 8,\n          value: \"\" + +result\n        };\n      } else {\n        tokenValue = result;\n        const type = checkBigIntSuffix();\n        checkForIdentifierStartAfterNumericLiteral(start2);\n        return { type, value: tokenValue };\n      }\n    }\n    function checkForIdentifierStartAfterNumericLiteral(numericStart, isScientific) {\n      if (!isIdentifierStart(codePointAt(text, pos), languageVersion)) {\n        return;\n      }\n      const identifierStart = pos;\n      const { length: length3 } = scanIdentifierParts();\n      if (length3 === 1 && text[identifierStart] === \"n\") {\n        if (isScientific) {\n          error(Diagnostics.A_bigint_literal_cannot_use_exponential_notation, numericStart, identifierStart - numericStart + 1);\n        } else {\n          error(Diagnostics.A_bigint_literal_must_be_an_integer, numericStart, identifierStart - numericStart + 1);\n        }\n      } else {\n        error(Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal, identifierStart, length3);\n        pos = identifierStart;\n      }\n    }\n    function scanOctalDigits() {\n      const start2 = pos;\n      while (isOctalDigit(text.charCodeAt(pos))) {\n        pos++;\n      }\n      return +text.substring(start2, pos);\n    }\n    function scanExactNumberOfHexDigits(count, canHaveSeparators) {\n      const valueString = scanHexDigits(count, false, canHaveSeparators);\n      return valueString ? parseInt(valueString, 16) : -1;\n    }\n    function scanMinimumNumberOfHexDigits(count, canHaveSeparators) {\n      return scanHexDigits(count, true, canHaveSeparators);\n    }\n    function scanHexDigits(minCount, scanAsManyAsPossible, canHaveSeparators) {\n      let valueChars = [];\n      let allowSeparator = false;\n      let isPreviousTokenSeparator = false;\n      while (valueChars.length < minCount || scanAsManyAsPossible) {\n        let ch = text.charCodeAt(pos);\n        if (canHaveSeparators && ch === 95) {\n          tokenFlags |= 512;\n          if (allowSeparator) {\n            allowSeparator = false;\n            isPreviousTokenSeparator = true;\n          } else if (isPreviousTokenSeparator) {\n            error(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1);\n          } else {\n            error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1);\n          }\n          pos++;\n          continue;\n        }\n        allowSeparator = canHaveSeparators;\n        if (ch >= 65 && ch <= 70) {\n          ch += 97 - 65;\n        } else if (!(ch >= 48 && ch <= 57 || ch >= 97 && ch <= 102)) {\n          break;\n        }\n        valueChars.push(ch);\n        pos++;\n        isPreviousTokenSeparator = false;\n      }\n      if (valueChars.length < minCount) {\n        valueChars = [];\n      }\n      if (text.charCodeAt(pos - 1) === 95) {\n        error(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1);\n      }\n      return String.fromCharCode(...valueChars);\n    }\n    function scanString(jsxAttributeString = false) {\n      const quote2 = text.charCodeAt(pos);\n      pos++;\n      let result = \"\";\n      let start2 = pos;\n      while (true) {\n        if (pos >= end) {\n          result += text.substring(start2, pos);\n          tokenFlags |= 4;\n          error(Diagnostics.Unterminated_string_literal);\n          break;\n        }\n        const ch = text.charCodeAt(pos);\n        if (ch === quote2) {\n          result += text.substring(start2, pos);\n          pos++;\n          break;\n        }\n        if (ch === 92 && !jsxAttributeString) {\n          result += text.substring(start2, pos);\n          result += scanEscapeSequence();\n          start2 = pos;\n          continue;\n        }\n        if (isLineBreak(ch) && !jsxAttributeString) {\n          result += text.substring(start2, pos);\n          tokenFlags |= 4;\n          error(Diagnostics.Unterminated_string_literal);\n          break;\n        }\n        pos++;\n      }\n      return result;\n    }\n    function scanTemplateAndSetTokenValue(isTaggedTemplate) {\n      const startedWithBacktick = text.charCodeAt(pos) === 96;\n      pos++;\n      let start2 = pos;\n      let contents = \"\";\n      let resultingToken;\n      while (true) {\n        if (pos >= end) {\n          contents += text.substring(start2, pos);\n          tokenFlags |= 4;\n          error(Diagnostics.Unterminated_template_literal);\n          resultingToken = startedWithBacktick ? 14 : 17;\n          break;\n        }\n        const currChar = text.charCodeAt(pos);\n        if (currChar === 96) {\n          contents += text.substring(start2, pos);\n          pos++;\n          resultingToken = startedWithBacktick ? 14 : 17;\n          break;\n        }\n        if (currChar === 36 && pos + 1 < end && text.charCodeAt(pos + 1) === 123) {\n          contents += text.substring(start2, pos);\n          pos += 2;\n          resultingToken = startedWithBacktick ? 15 : 16;\n          break;\n        }\n        if (currChar === 92) {\n          contents += text.substring(start2, pos);\n          contents += scanEscapeSequence(isTaggedTemplate);\n          start2 = pos;\n          continue;\n        }\n        if (currChar === 13) {\n          contents += text.substring(start2, pos);\n          pos++;\n          if (pos < end && text.charCodeAt(pos) === 10) {\n            pos++;\n          }\n          contents += \"\\n\";\n          start2 = pos;\n          continue;\n        }\n        pos++;\n      }\n      Debug.assert(resultingToken !== void 0);\n      tokenValue = contents;\n      return resultingToken;\n    }\n    function scanEscapeSequence(isTaggedTemplate) {\n      const start2 = pos;\n      pos++;\n      if (pos >= end) {\n        error(Diagnostics.Unexpected_end_of_text);\n        return \"\";\n      }\n      const ch = text.charCodeAt(pos);\n      pos++;\n      switch (ch) {\n        case 48:\n          if (isTaggedTemplate && pos < end && isDigit(text.charCodeAt(pos))) {\n            pos++;\n            tokenFlags |= 2048;\n            return text.substring(start2, pos);\n          }\n          return \"\\0\";\n        case 98:\n          return \"\\b\";\n        case 116:\n          return \"\t\";\n        case 110:\n          return \"\\n\";\n        case 118:\n          return \"\\v\";\n        case 102:\n          return \"\\f\";\n        case 114:\n          return \"\\r\";\n        case 39:\n          return \"'\";\n        case 34:\n          return '\"';\n        case 117:\n          if (isTaggedTemplate) {\n            for (let escapePos = pos; escapePos < pos + 4; escapePos++) {\n              if (escapePos < end && !isHexDigit(text.charCodeAt(escapePos)) && text.charCodeAt(escapePos) !== 123) {\n                pos = escapePos;\n                tokenFlags |= 2048;\n                return text.substring(start2, pos);\n              }\n            }\n          }\n          if (pos < end && text.charCodeAt(pos) === 123) {\n            pos++;\n            if (isTaggedTemplate && !isHexDigit(text.charCodeAt(pos))) {\n              tokenFlags |= 2048;\n              return text.substring(start2, pos);\n            }\n            if (isTaggedTemplate) {\n              const savePos = pos;\n              const escapedValueString = scanMinimumNumberOfHexDigits(1, false);\n              const escapedValue = escapedValueString ? parseInt(escapedValueString, 16) : -1;\n              if (!isCodePoint(escapedValue) || text.charCodeAt(pos) !== 125) {\n                tokenFlags |= 2048;\n                return text.substring(start2, pos);\n              } else {\n                pos = savePos;\n              }\n            }\n            tokenFlags |= 8;\n            return scanExtendedUnicodeEscape();\n          }\n          tokenFlags |= 1024;\n          return scanHexadecimalEscape(4);\n        case 120:\n          if (isTaggedTemplate) {\n            if (!isHexDigit(text.charCodeAt(pos))) {\n              tokenFlags |= 2048;\n              return text.substring(start2, pos);\n            } else if (!isHexDigit(text.charCodeAt(pos + 1))) {\n              pos++;\n              tokenFlags |= 2048;\n              return text.substring(start2, pos);\n            }\n          }\n          return scanHexadecimalEscape(2);\n        case 13:\n          if (pos < end && text.charCodeAt(pos) === 10) {\n            pos++;\n          }\n        case 10:\n        case 8232:\n        case 8233:\n          return \"\";\n        default:\n          return String.fromCharCode(ch);\n      }\n    }\n    function scanHexadecimalEscape(numDigits) {\n      const escapedValue = scanExactNumberOfHexDigits(numDigits, false);\n      if (escapedValue >= 0) {\n        return String.fromCharCode(escapedValue);\n      } else {\n        error(Diagnostics.Hexadecimal_digit_expected);\n        return \"\";\n      }\n    }\n    function scanExtendedUnicodeEscape() {\n      const escapedValueString = scanMinimumNumberOfHexDigits(1, false);\n      const escapedValue = escapedValueString ? parseInt(escapedValueString, 16) : -1;\n      let isInvalidExtendedEscape = false;\n      if (escapedValue < 0) {\n        error(Diagnostics.Hexadecimal_digit_expected);\n        isInvalidExtendedEscape = true;\n      } else if (escapedValue > 1114111) {\n        error(Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive);\n        isInvalidExtendedEscape = true;\n      }\n      if (pos >= end) {\n        error(Diagnostics.Unexpected_end_of_text);\n        isInvalidExtendedEscape = true;\n      } else if (text.charCodeAt(pos) === 125) {\n        pos++;\n      } else {\n        error(Diagnostics.Unterminated_Unicode_escape_sequence);\n        isInvalidExtendedEscape = true;\n      }\n      if (isInvalidExtendedEscape) {\n        return \"\";\n      }\n      return utf16EncodeAsString(escapedValue);\n    }\n    function peekUnicodeEscape() {\n      if (pos + 5 < end && text.charCodeAt(pos + 1) === 117) {\n        const start2 = pos;\n        pos += 2;\n        const value = scanExactNumberOfHexDigits(4, false);\n        pos = start2;\n        return value;\n      }\n      return -1;\n    }\n    function peekExtendedUnicodeEscape() {\n      if (codePointAt(text, pos + 1) === 117 && codePointAt(text, pos + 2) === 123) {\n        const start2 = pos;\n        pos += 3;\n        const escapedValueString = scanMinimumNumberOfHexDigits(1, false);\n        const escapedValue = escapedValueString ? parseInt(escapedValueString, 16) : -1;\n        pos = start2;\n        return escapedValue;\n      }\n      return -1;\n    }\n    function scanIdentifierParts() {\n      let result = \"\";\n      let start2 = pos;\n      while (pos < end) {\n        let ch = codePointAt(text, pos);\n        if (isIdentifierPart(ch, languageVersion)) {\n          pos += charSize(ch);\n        } else if (ch === 92) {\n          ch = peekExtendedUnicodeEscape();\n          if (ch >= 0 && isIdentifierPart(ch, languageVersion)) {\n            pos += 3;\n            tokenFlags |= 8;\n            result += scanExtendedUnicodeEscape();\n            start2 = pos;\n            continue;\n          }\n          ch = peekUnicodeEscape();\n          if (!(ch >= 0 && isIdentifierPart(ch, languageVersion))) {\n            break;\n          }\n          tokenFlags |= 1024;\n          result += text.substring(start2, pos);\n          result += utf16EncodeAsString(ch);\n          pos += 6;\n          start2 = pos;\n        } else {\n          break;\n        }\n      }\n      result += text.substring(start2, pos);\n      return result;\n    }\n    function getIdentifierToken() {\n      const len = tokenValue.length;\n      if (len >= 2 && len <= 12) {\n        const ch = tokenValue.charCodeAt(0);\n        if (ch >= 97 && ch <= 122) {\n          const keyword = textToKeyword.get(tokenValue);\n          if (keyword !== void 0) {\n            return token = keyword;\n          }\n        }\n      }\n      return token = 79;\n    }\n    function scanBinaryOrOctalDigits(base) {\n      let value = \"\";\n      let separatorAllowed = false;\n      let isPreviousTokenSeparator = false;\n      while (true) {\n        const ch = text.charCodeAt(pos);\n        if (ch === 95) {\n          tokenFlags |= 512;\n          if (separatorAllowed) {\n            separatorAllowed = false;\n            isPreviousTokenSeparator = true;\n          } else if (isPreviousTokenSeparator) {\n            error(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1);\n          } else {\n            error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1);\n          }\n          pos++;\n          continue;\n        }\n        separatorAllowed = true;\n        if (!isDigit(ch) || ch - 48 >= base) {\n          break;\n        }\n        value += text[pos];\n        pos++;\n        isPreviousTokenSeparator = false;\n      }\n      if (text.charCodeAt(pos - 1) === 95) {\n        error(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1);\n      }\n      return value;\n    }\n    function checkBigIntSuffix() {\n      if (text.charCodeAt(pos) === 110) {\n        tokenValue += \"n\";\n        if (tokenFlags & 384) {\n          tokenValue = parsePseudoBigInt(tokenValue) + \"n\";\n        }\n        pos++;\n        return 9;\n      } else {\n        const numericValue = tokenFlags & 128 ? parseInt(tokenValue.slice(2), 2) : tokenFlags & 256 ? parseInt(tokenValue.slice(2), 8) : +tokenValue;\n        tokenValue = \"\" + numericValue;\n        return 8;\n      }\n    }\n    function scan() {\n      startPos = pos;\n      tokenFlags = 0;\n      let asteriskSeen = false;\n      while (true) {\n        tokenPos = pos;\n        if (pos >= end) {\n          return token = 1;\n        }\n        const ch = codePointAt(text, pos);\n        if (ch === 35 && pos === 0 && isShebangTrivia(text, pos)) {\n          pos = scanShebangTrivia(text, pos);\n          if (skipTrivia2) {\n            continue;\n          } else {\n            return token = 6;\n          }\n        }\n        switch (ch) {\n          case 10:\n          case 13:\n            tokenFlags |= 1;\n            if (skipTrivia2) {\n              pos++;\n              continue;\n            } else {\n              if (ch === 13 && pos + 1 < end && text.charCodeAt(pos + 1) === 10) {\n                pos += 2;\n              } else {\n                pos++;\n              }\n              return token = 4;\n            }\n          case 9:\n          case 11:\n          case 12:\n          case 32:\n          case 160:\n          case 5760:\n          case 8192:\n          case 8193:\n          case 8194:\n          case 8195:\n          case 8196:\n          case 8197:\n          case 8198:\n          case 8199:\n          case 8200:\n          case 8201:\n          case 8202:\n          case 8203:\n          case 8239:\n          case 8287:\n          case 12288:\n          case 65279:\n            if (skipTrivia2) {\n              pos++;\n              continue;\n            } else {\n              while (pos < end && isWhiteSpaceSingleLine(text.charCodeAt(pos))) {\n                pos++;\n              }\n              return token = 5;\n            }\n          case 33:\n            if (text.charCodeAt(pos + 1) === 61) {\n              if (text.charCodeAt(pos + 2) === 61) {\n                return pos += 3, token = 37;\n              }\n              return pos += 2, token = 35;\n            }\n            pos++;\n            return token = 53;\n          case 34:\n          case 39:\n            tokenValue = scanString();\n            return token = 10;\n          case 96:\n            return token = scanTemplateAndSetTokenValue(false);\n          case 37:\n            if (text.charCodeAt(pos + 1) === 61) {\n              return pos += 2, token = 69;\n            }\n            pos++;\n            return token = 44;\n          case 38:\n            if (text.charCodeAt(pos + 1) === 38) {\n              if (text.charCodeAt(pos + 2) === 61) {\n                return pos += 3, token = 76;\n              }\n              return pos += 2, token = 55;\n            }\n            if (text.charCodeAt(pos + 1) === 61) {\n              return pos += 2, token = 73;\n            }\n            pos++;\n            return token = 50;\n          case 40:\n            pos++;\n            return token = 20;\n          case 41:\n            pos++;\n            return token = 21;\n          case 42:\n            if (text.charCodeAt(pos + 1) === 61) {\n              return pos += 2, token = 66;\n            }\n            if (text.charCodeAt(pos + 1) === 42) {\n              if (text.charCodeAt(pos + 2) === 61) {\n                return pos += 3, token = 67;\n              }\n              return pos += 2, token = 42;\n            }\n            pos++;\n            if (inJSDocType && !asteriskSeen && tokenFlags & 1) {\n              asteriskSeen = true;\n              continue;\n            }\n            return token = 41;\n          case 43:\n            if (text.charCodeAt(pos + 1) === 43) {\n              return pos += 2, token = 45;\n            }\n            if (text.charCodeAt(pos + 1) === 61) {\n              return pos += 2, token = 64;\n            }\n            pos++;\n            return token = 39;\n          case 44:\n            pos++;\n            return token = 27;\n          case 45:\n            if (text.charCodeAt(pos + 1) === 45) {\n              return pos += 2, token = 46;\n            }\n            if (text.charCodeAt(pos + 1) === 61) {\n              return pos += 2, token = 65;\n            }\n            pos++;\n            return token = 40;\n          case 46:\n            if (isDigit(text.charCodeAt(pos + 1))) {\n              tokenValue = scanNumber().value;\n              return token = 8;\n            }\n            if (text.charCodeAt(pos + 1) === 46 && text.charCodeAt(pos + 2) === 46) {\n              return pos += 3, token = 25;\n            }\n            pos++;\n            return token = 24;\n          case 47:\n            if (text.charCodeAt(pos + 1) === 47) {\n              pos += 2;\n              while (pos < end) {\n                if (isLineBreak(text.charCodeAt(pos))) {\n                  break;\n                }\n                pos++;\n              }\n              commentDirectives = appendIfCommentDirective(commentDirectives, text.slice(tokenPos, pos), commentDirectiveRegExSingleLine, tokenPos);\n              if (skipTrivia2) {\n                continue;\n              } else {\n                return token = 2;\n              }\n            }\n            if (text.charCodeAt(pos + 1) === 42) {\n              pos += 2;\n              if (text.charCodeAt(pos) === 42 && text.charCodeAt(pos + 1) !== 47) {\n                tokenFlags |= 2;\n              }\n              let commentClosed = false;\n              let lastLineStart = tokenPos;\n              while (pos < end) {\n                const ch2 = text.charCodeAt(pos);\n                if (ch2 === 42 && text.charCodeAt(pos + 1) === 47) {\n                  pos += 2;\n                  commentClosed = true;\n                  break;\n                }\n                pos++;\n                if (isLineBreak(ch2)) {\n                  lastLineStart = pos;\n                  tokenFlags |= 1;\n                }\n              }\n              commentDirectives = appendIfCommentDirective(commentDirectives, text.slice(lastLineStart, pos), commentDirectiveRegExMultiLine, lastLineStart);\n              if (!commentClosed) {\n                error(Diagnostics.Asterisk_Slash_expected);\n              }\n              if (skipTrivia2) {\n                continue;\n              } else {\n                if (!commentClosed) {\n                  tokenFlags |= 4;\n                }\n                return token = 3;\n              }\n            }\n            if (text.charCodeAt(pos + 1) === 61) {\n              return pos += 2, token = 68;\n            }\n            pos++;\n            return token = 43;\n          case 48:\n            if (pos + 2 < end && (text.charCodeAt(pos + 1) === 88 || text.charCodeAt(pos + 1) === 120)) {\n              pos += 2;\n              tokenValue = scanMinimumNumberOfHexDigits(1, true);\n              if (!tokenValue) {\n                error(Diagnostics.Hexadecimal_digit_expected);\n                tokenValue = \"0\";\n              }\n              tokenValue = \"0x\" + tokenValue;\n              tokenFlags |= 64;\n              return token = checkBigIntSuffix();\n            } else if (pos + 2 < end && (text.charCodeAt(pos + 1) === 66 || text.charCodeAt(pos + 1) === 98)) {\n              pos += 2;\n              tokenValue = scanBinaryOrOctalDigits(2);\n              if (!tokenValue) {\n                error(Diagnostics.Binary_digit_expected);\n                tokenValue = \"0\";\n              }\n              tokenValue = \"0b\" + tokenValue;\n              tokenFlags |= 128;\n              return token = checkBigIntSuffix();\n            } else if (pos + 2 < end && (text.charCodeAt(pos + 1) === 79 || text.charCodeAt(pos + 1) === 111)) {\n              pos += 2;\n              tokenValue = scanBinaryOrOctalDigits(8);\n              if (!tokenValue) {\n                error(Diagnostics.Octal_digit_expected);\n                tokenValue = \"0\";\n              }\n              tokenValue = \"0o\" + tokenValue;\n              tokenFlags |= 256;\n              return token = checkBigIntSuffix();\n            }\n            if (pos + 1 < end && isOctalDigit(text.charCodeAt(pos + 1))) {\n              tokenValue = \"\" + scanOctalDigits();\n              tokenFlags |= 32;\n              return token = 8;\n            }\n          case 49:\n          case 50:\n          case 51:\n          case 52:\n          case 53:\n          case 54:\n          case 55:\n          case 56:\n          case 57:\n            ({ type: token, value: tokenValue } = scanNumber());\n            return token;\n          case 58:\n            pos++;\n            return token = 58;\n          case 59:\n            pos++;\n            return token = 26;\n          case 60:\n            if (isConflictMarkerTrivia(text, pos)) {\n              pos = scanConflictMarkerTrivia(text, pos, error);\n              if (skipTrivia2) {\n                continue;\n              } else {\n                return token = 7;\n              }\n            }\n            if (text.charCodeAt(pos + 1) === 60) {\n              if (text.charCodeAt(pos + 2) === 61) {\n                return pos += 3, token = 70;\n              }\n              return pos += 2, token = 47;\n            }\n            if (text.charCodeAt(pos + 1) === 61) {\n              return pos += 2, token = 32;\n            }\n            if (languageVariant === 1 && text.charCodeAt(pos + 1) === 47 && text.charCodeAt(pos + 2) !== 42) {\n              return pos += 2, token = 30;\n            }\n            pos++;\n            return token = 29;\n          case 61:\n            if (isConflictMarkerTrivia(text, pos)) {\n              pos = scanConflictMarkerTrivia(text, pos, error);\n              if (skipTrivia2) {\n                continue;\n              } else {\n                return token = 7;\n              }\n            }\n            if (text.charCodeAt(pos + 1) === 61) {\n              if (text.charCodeAt(pos + 2) === 61) {\n                return pos += 3, token = 36;\n              }\n              return pos += 2, token = 34;\n            }\n            if (text.charCodeAt(pos + 1) === 62) {\n              return pos += 2, token = 38;\n            }\n            pos++;\n            return token = 63;\n          case 62:\n            if (isConflictMarkerTrivia(text, pos)) {\n              pos = scanConflictMarkerTrivia(text, pos, error);\n              if (skipTrivia2) {\n                continue;\n              } else {\n                return token = 7;\n              }\n            }\n            pos++;\n            return token = 31;\n          case 63:\n            if (text.charCodeAt(pos + 1) === 46 && !isDigit(text.charCodeAt(pos + 2))) {\n              return pos += 2, token = 28;\n            }\n            if (text.charCodeAt(pos + 1) === 63) {\n              if (text.charCodeAt(pos + 2) === 61) {\n                return pos += 3, token = 77;\n              }\n              return pos += 2, token = 60;\n            }\n            pos++;\n            return token = 57;\n          case 91:\n            pos++;\n            return token = 22;\n          case 93:\n            pos++;\n            return token = 23;\n          case 94:\n            if (text.charCodeAt(pos + 1) === 61) {\n              return pos += 2, token = 78;\n            }\n            pos++;\n            return token = 52;\n          case 123:\n            pos++;\n            return token = 18;\n          case 124:\n            if (isConflictMarkerTrivia(text, pos)) {\n              pos = scanConflictMarkerTrivia(text, pos, error);\n              if (skipTrivia2) {\n                continue;\n              } else {\n                return token = 7;\n              }\n            }\n            if (text.charCodeAt(pos + 1) === 124) {\n              if (text.charCodeAt(pos + 2) === 61) {\n                return pos += 3, token = 75;\n              }\n              return pos += 2, token = 56;\n            }\n            if (text.charCodeAt(pos + 1) === 61) {\n              return pos += 2, token = 74;\n            }\n            pos++;\n            return token = 51;\n          case 125:\n            pos++;\n            return token = 19;\n          case 126:\n            pos++;\n            return token = 54;\n          case 64:\n            pos++;\n            return token = 59;\n          case 92:\n            const extendedCookedChar = peekExtendedUnicodeEscape();\n            if (extendedCookedChar >= 0 && isIdentifierStart(extendedCookedChar, languageVersion)) {\n              pos += 3;\n              tokenFlags |= 8;\n              tokenValue = scanExtendedUnicodeEscape() + scanIdentifierParts();\n              return token = getIdentifierToken();\n            }\n            const cookedChar = peekUnicodeEscape();\n            if (cookedChar >= 0 && isIdentifierStart(cookedChar, languageVersion)) {\n              pos += 6;\n              tokenFlags |= 1024;\n              tokenValue = String.fromCharCode(cookedChar) + scanIdentifierParts();\n              return token = getIdentifierToken();\n            }\n            error(Diagnostics.Invalid_character);\n            pos++;\n            return token = 0;\n          case 35:\n            if (pos !== 0 && text[pos + 1] === \"!\") {\n              error(Diagnostics.can_only_be_used_at_the_start_of_a_file);\n              pos++;\n              return token = 0;\n            }\n            const charAfterHash = codePointAt(text, pos + 1);\n            if (charAfterHash === 92) {\n              pos++;\n              const extendedCookedChar2 = peekExtendedUnicodeEscape();\n              if (extendedCookedChar2 >= 0 && isIdentifierStart(extendedCookedChar2, languageVersion)) {\n                pos += 3;\n                tokenFlags |= 8;\n                tokenValue = \"#\" + scanExtendedUnicodeEscape() + scanIdentifierParts();\n                return token = 80;\n              }\n              const cookedChar2 = peekUnicodeEscape();\n              if (cookedChar2 >= 0 && isIdentifierStart(cookedChar2, languageVersion)) {\n                pos += 6;\n                tokenFlags |= 1024;\n                tokenValue = \"#\" + String.fromCharCode(cookedChar2) + scanIdentifierParts();\n                return token = 80;\n              }\n              pos--;\n            }\n            if (isIdentifierStart(charAfterHash, languageVersion)) {\n              pos++;\n              scanIdentifier(charAfterHash, languageVersion);\n            } else {\n              tokenValue = \"#\";\n              error(Diagnostics.Invalid_character, pos++, charSize(ch));\n            }\n            return token = 80;\n          default:\n            const identifierKind = scanIdentifier(ch, languageVersion);\n            if (identifierKind) {\n              return token = identifierKind;\n            } else if (isWhiteSpaceSingleLine(ch)) {\n              pos += charSize(ch);\n              continue;\n            } else if (isLineBreak(ch)) {\n              tokenFlags |= 1;\n              pos += charSize(ch);\n              continue;\n            }\n            const size = charSize(ch);\n            error(Diagnostics.Invalid_character, pos, size);\n            pos += size;\n            return token = 0;\n        }\n      }\n    }\n    function reScanInvalidIdentifier() {\n      Debug.assert(token === 0, \"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'.\");\n      pos = tokenPos = startPos;\n      tokenFlags = 0;\n      const ch = codePointAt(text, pos);\n      const identifierKind = scanIdentifier(ch, 99);\n      if (identifierKind) {\n        return token = identifierKind;\n      }\n      pos += charSize(ch);\n      return token;\n    }\n    function scanIdentifier(startCharacter, languageVersion2) {\n      let ch = startCharacter;\n      if (isIdentifierStart(ch, languageVersion2)) {\n        pos += charSize(ch);\n        while (pos < end && isIdentifierPart(ch = codePointAt(text, pos), languageVersion2))\n          pos += charSize(ch);\n        tokenValue = text.substring(tokenPos, pos);\n        if (ch === 92) {\n          tokenValue += scanIdentifierParts();\n        }\n        return getIdentifierToken();\n      }\n    }\n    function reScanGreaterToken() {\n      if (token === 31) {\n        if (text.charCodeAt(pos) === 62) {\n          if (text.charCodeAt(pos + 1) === 62) {\n            if (text.charCodeAt(pos + 2) === 61) {\n              return pos += 3, token = 72;\n            }\n            return pos += 2, token = 49;\n          }\n          if (text.charCodeAt(pos + 1) === 61) {\n            return pos += 2, token = 71;\n          }\n          pos++;\n          return token = 48;\n        }\n        if (text.charCodeAt(pos) === 61) {\n          pos++;\n          return token = 33;\n        }\n      }\n      return token;\n    }\n    function reScanAsteriskEqualsToken() {\n      Debug.assert(token === 66, \"'reScanAsteriskEqualsToken' should only be called on a '*='\");\n      pos = tokenPos + 1;\n      return token = 63;\n    }\n    function reScanSlashToken() {\n      if (token === 43 || token === 68) {\n        let p = tokenPos + 1;\n        let inEscape = false;\n        let inCharacterClass = false;\n        while (true) {\n          if (p >= end) {\n            tokenFlags |= 4;\n            error(Diagnostics.Unterminated_regular_expression_literal);\n            break;\n          }\n          const ch = text.charCodeAt(p);\n          if (isLineBreak(ch)) {\n            tokenFlags |= 4;\n            error(Diagnostics.Unterminated_regular_expression_literal);\n            break;\n          }\n          if (inEscape) {\n            inEscape = false;\n          } else if (ch === 47 && !inCharacterClass) {\n            p++;\n            break;\n          } else if (ch === 91) {\n            inCharacterClass = true;\n          } else if (ch === 92) {\n            inEscape = true;\n          } else if (ch === 93) {\n            inCharacterClass = false;\n          }\n          p++;\n        }\n        while (p < end && isIdentifierPart(text.charCodeAt(p), languageVersion)) {\n          p++;\n        }\n        pos = p;\n        tokenValue = text.substring(tokenPos, pos);\n        token = 13;\n      }\n      return token;\n    }\n    function appendIfCommentDirective(commentDirectives2, text2, commentDirectiveRegEx, lineStart) {\n      const type = getDirectiveFromComment(trimStringStart(text2), commentDirectiveRegEx);\n      if (type === void 0) {\n        return commentDirectives2;\n      }\n      return append(commentDirectives2, {\n        range: { pos: lineStart, end: pos },\n        type\n      });\n    }\n    function getDirectiveFromComment(text2, commentDirectiveRegEx) {\n      const match = commentDirectiveRegEx.exec(text2);\n      if (!match) {\n        return void 0;\n      }\n      switch (match[1]) {\n        case \"ts-expect-error\":\n          return 0;\n        case \"ts-ignore\":\n          return 1;\n      }\n      return void 0;\n    }\n    function reScanTemplateToken(isTaggedTemplate) {\n      Debug.assert(token === 19, \"'reScanTemplateToken' should only be called on a '}'\");\n      pos = tokenPos;\n      return token = scanTemplateAndSetTokenValue(isTaggedTemplate);\n    }\n    function reScanTemplateHeadOrNoSubstitutionTemplate() {\n      pos = tokenPos;\n      return token = scanTemplateAndSetTokenValue(true);\n    }\n    function reScanJsxToken(allowMultilineJsxText = true) {\n      pos = tokenPos = startPos;\n      return token = scanJsxToken(allowMultilineJsxText);\n    }\n    function reScanLessThanToken() {\n      if (token === 47) {\n        pos = tokenPos + 1;\n        return token = 29;\n      }\n      return token;\n    }\n    function reScanHashToken() {\n      if (token === 80) {\n        pos = tokenPos + 1;\n        return token = 62;\n      }\n      return token;\n    }\n    function reScanQuestionToken() {\n      Debug.assert(token === 60, \"'reScanQuestionToken' should only be called on a '??'\");\n      pos = tokenPos + 1;\n      return token = 57;\n    }\n    function scanJsxToken(allowMultilineJsxText = true) {\n      startPos = tokenPos = pos;\n      if (pos >= end) {\n        return token = 1;\n      }\n      let char = text.charCodeAt(pos);\n      if (char === 60) {\n        if (text.charCodeAt(pos + 1) === 47) {\n          pos += 2;\n          return token = 30;\n        }\n        pos++;\n        return token = 29;\n      }\n      if (char === 123) {\n        pos++;\n        return token = 18;\n      }\n      let firstNonWhitespace = 0;\n      while (pos < end) {\n        char = text.charCodeAt(pos);\n        if (char === 123) {\n          break;\n        }\n        if (char === 60) {\n          if (isConflictMarkerTrivia(text, pos)) {\n            pos = scanConflictMarkerTrivia(text, pos, error);\n            return token = 7;\n          }\n          break;\n        }\n        if (char === 62) {\n          error(Diagnostics.Unexpected_token_Did_you_mean_or_gt, pos, 1);\n        }\n        if (char === 125) {\n          error(Diagnostics.Unexpected_token_Did_you_mean_or_rbrace, pos, 1);\n        }\n        if (isLineBreak(char) && firstNonWhitespace === 0) {\n          firstNonWhitespace = -1;\n        } else if (!allowMultilineJsxText && isLineBreak(char) && firstNonWhitespace > 0) {\n          break;\n        } else if (!isWhiteSpaceLike(char)) {\n          firstNonWhitespace = pos;\n        }\n        pos++;\n      }\n      tokenValue = text.substring(startPos, pos);\n      return firstNonWhitespace === -1 ? 12 : 11;\n    }\n    function scanJsxIdentifier() {\n      if (tokenIsIdentifierOrKeyword(token)) {\n        let namespaceSeparator = false;\n        while (pos < end) {\n          const ch = text.charCodeAt(pos);\n          if (ch === 45) {\n            tokenValue += \"-\";\n            pos++;\n            continue;\n          } else if (ch === 58 && !namespaceSeparator) {\n            tokenValue += \":\";\n            pos++;\n            namespaceSeparator = true;\n            token = 79;\n            continue;\n          }\n          const oldPos = pos;\n          tokenValue += scanIdentifierParts();\n          if (pos === oldPos) {\n            break;\n          }\n        }\n        if (tokenValue.slice(-1) === \":\") {\n          tokenValue = tokenValue.slice(0, -1);\n          pos--;\n        }\n        return getIdentifierToken();\n      }\n      return token;\n    }\n    function scanJsxAttributeValue() {\n      startPos = pos;\n      switch (text.charCodeAt(pos)) {\n        case 34:\n        case 39:\n          tokenValue = scanString(true);\n          return token = 10;\n        default:\n          return scan();\n      }\n    }\n    function reScanJsxAttributeValue() {\n      pos = tokenPos = startPos;\n      return scanJsxAttributeValue();\n    }\n    function scanJsDocToken() {\n      startPos = tokenPos = pos;\n      tokenFlags = 0;\n      if (pos >= end) {\n        return token = 1;\n      }\n      const ch = codePointAt(text, pos);\n      pos += charSize(ch);\n      switch (ch) {\n        case 9:\n        case 11:\n        case 12:\n        case 32:\n          while (pos < end && isWhiteSpaceSingleLine(text.charCodeAt(pos))) {\n            pos++;\n          }\n          return token = 5;\n        case 64:\n          return token = 59;\n        case 13:\n          if (text.charCodeAt(pos) === 10) {\n            pos++;\n          }\n        case 10:\n          tokenFlags |= 1;\n          return token = 4;\n        case 42:\n          return token = 41;\n        case 123:\n          return token = 18;\n        case 125:\n          return token = 19;\n        case 91:\n          return token = 22;\n        case 93:\n          return token = 23;\n        case 60:\n          return token = 29;\n        case 62:\n          return token = 31;\n        case 61:\n          return token = 63;\n        case 44:\n          return token = 27;\n        case 46:\n          return token = 24;\n        case 96:\n          return token = 61;\n        case 35:\n          return token = 62;\n        case 92:\n          pos--;\n          const extendedCookedChar = peekExtendedUnicodeEscape();\n          if (extendedCookedChar >= 0 && isIdentifierStart(extendedCookedChar, languageVersion)) {\n            pos += 3;\n            tokenFlags |= 8;\n            tokenValue = scanExtendedUnicodeEscape() + scanIdentifierParts();\n            return token = getIdentifierToken();\n          }\n          const cookedChar = peekUnicodeEscape();\n          if (cookedChar >= 0 && isIdentifierStart(cookedChar, languageVersion)) {\n            pos += 6;\n            tokenFlags |= 1024;\n            tokenValue = String.fromCharCode(cookedChar) + scanIdentifierParts();\n            return token = getIdentifierToken();\n          }\n          pos++;\n          return token = 0;\n      }\n      if (isIdentifierStart(ch, languageVersion)) {\n        let char = ch;\n        while (pos < end && isIdentifierPart(char = codePointAt(text, pos), languageVersion) || text.charCodeAt(pos) === 45)\n          pos += charSize(char);\n        tokenValue = text.substring(tokenPos, pos);\n        if (char === 92) {\n          tokenValue += scanIdentifierParts();\n        }\n        return token = getIdentifierToken();\n      } else {\n        return token = 0;\n      }\n    }\n    function speculationHelper(callback, isLookahead) {\n      const savePos = pos;\n      const saveStartPos = startPos;\n      const saveTokenPos = tokenPos;\n      const saveToken = token;\n      const saveTokenValue = tokenValue;\n      const saveTokenFlags = tokenFlags;\n      const result = callback();\n      if (!result || isLookahead) {\n        pos = savePos;\n        startPos = saveStartPos;\n        tokenPos = saveTokenPos;\n        token = saveToken;\n        tokenValue = saveTokenValue;\n        tokenFlags = saveTokenFlags;\n      }\n      return result;\n    }\n    function scanRange(start2, length3, callback) {\n      const saveEnd = end;\n      const savePos = pos;\n      const saveStartPos = startPos;\n      const saveTokenPos = tokenPos;\n      const saveToken = token;\n      const saveTokenValue = tokenValue;\n      const saveTokenFlags = tokenFlags;\n      const saveErrorExpectations = commentDirectives;\n      setText(text, start2, length3);\n      const result = callback();\n      end = saveEnd;\n      pos = savePos;\n      startPos = saveStartPos;\n      tokenPos = saveTokenPos;\n      token = saveToken;\n      tokenValue = saveTokenValue;\n      tokenFlags = saveTokenFlags;\n      commentDirectives = saveErrorExpectations;\n      return result;\n    }\n    function lookAhead(callback) {\n      return speculationHelper(callback, true);\n    }\n    function tryScan(callback) {\n      return speculationHelper(callback, false);\n    }\n    function getText() {\n      return text;\n    }\n    function clearCommentDirectives() {\n      commentDirectives = void 0;\n    }\n    function setText(newText, start2, length3) {\n      text = newText || \"\";\n      end = length3 === void 0 ? text.length : start2 + length3;\n      setTextPos(start2 || 0);\n    }\n    function setOnError(errorCallback) {\n      onError = errorCallback;\n    }\n    function setScriptTarget(scriptTarget) {\n      languageVersion = scriptTarget;\n    }\n    function setLanguageVariant(variant) {\n      languageVariant = variant;\n    }\n    function setTextPos(textPos) {\n      Debug.assert(textPos >= 0);\n      pos = textPos;\n      startPos = textPos;\n      tokenPos = textPos;\n      token = 0;\n      tokenValue = void 0;\n      tokenFlags = 0;\n    }\n    function setInJSDocType(inType) {\n      inJSDocType += inType ? 1 : -1;\n    }\n  }\n  function charSize(ch) {\n    if (ch >= 65536) {\n      return 2;\n    }\n    return 1;\n  }\n  function utf16EncodeAsStringFallback(codePoint) {\n    Debug.assert(0 <= codePoint && codePoint <= 1114111);\n    if (codePoint <= 65535) {\n      return String.fromCharCode(codePoint);\n    }\n    const codeUnit1 = Math.floor((codePoint - 65536) / 1024) + 55296;\n    const codeUnit2 = (codePoint - 65536) % 1024 + 56320;\n    return String.fromCharCode(codeUnit1, codeUnit2);\n  }\n  function utf16EncodeAsString(codePoint) {\n    return utf16EncodeAsStringWorker(codePoint);\n  }\n  var textToKeywordObj, textToKeyword, textToToken, unicodeES3IdentifierStart, unicodeES3IdentifierPart, unicodeES5IdentifierStart, unicodeES5IdentifierPart, unicodeESNextIdentifierStart, unicodeESNextIdentifierPart, commentDirectiveRegExSingleLine, commentDirectiveRegExMultiLine, tokenStrings, mergeConflictMarkerLength, shebangTriviaRegex, codePointAt, utf16EncodeAsStringWorker;\n  var init_scanner = __esm({\n    \"src/compiler/scanner.ts\"() {\n      \"use strict\";\n      init_ts2();\n      textToKeywordObj = {\n        abstract: 126,\n        accessor: 127,\n        any: 131,\n        as: 128,\n        asserts: 129,\n        assert: 130,\n        bigint: 160,\n        boolean: 134,\n        break: 81,\n        case: 82,\n        catch: 83,\n        class: 84,\n        continue: 86,\n        const: 85,\n        [\"constructor\"]: 135,\n        debugger: 87,\n        declare: 136,\n        default: 88,\n        delete: 89,\n        do: 90,\n        else: 91,\n        enum: 92,\n        export: 93,\n        extends: 94,\n        false: 95,\n        finally: 96,\n        for: 97,\n        from: 158,\n        function: 98,\n        get: 137,\n        if: 99,\n        implements: 117,\n        import: 100,\n        in: 101,\n        infer: 138,\n        instanceof: 102,\n        interface: 118,\n        intrinsic: 139,\n        is: 140,\n        keyof: 141,\n        let: 119,\n        module: 142,\n        namespace: 143,\n        never: 144,\n        new: 103,\n        null: 104,\n        number: 148,\n        object: 149,\n        package: 120,\n        private: 121,\n        protected: 122,\n        public: 123,\n        override: 161,\n        out: 145,\n        readonly: 146,\n        require: 147,\n        global: 159,\n        return: 105,\n        satisfies: 150,\n        set: 151,\n        static: 124,\n        string: 152,\n        super: 106,\n        switch: 107,\n        symbol: 153,\n        this: 108,\n        throw: 109,\n        true: 110,\n        try: 111,\n        type: 154,\n        typeof: 112,\n        undefined: 155,\n        unique: 156,\n        unknown: 157,\n        var: 113,\n        void: 114,\n        while: 115,\n        with: 116,\n        yield: 125,\n        async: 132,\n        await: 133,\n        of: 162\n      };\n      textToKeyword = new Map(Object.entries(textToKeywordObj));\n      textToToken = new Map(Object.entries({\n        ...textToKeywordObj,\n        \"{\": 18,\n        \"}\": 19,\n        \"(\": 20,\n        \")\": 21,\n        \"[\": 22,\n        \"]\": 23,\n        \".\": 24,\n        \"...\": 25,\n        \";\": 26,\n        \",\": 27,\n        \"<\": 29,\n        \">\": 31,\n        \"<=\": 32,\n        \">=\": 33,\n        \"==\": 34,\n        \"!=\": 35,\n        \"===\": 36,\n        \"!==\": 37,\n        \"=>\": 38,\n        \"+\": 39,\n        \"-\": 40,\n        \"**\": 42,\n        \"*\": 41,\n        \"/\": 43,\n        \"%\": 44,\n        \"++\": 45,\n        \"--\": 46,\n        \"<<\": 47,\n        \"</\": 30,\n        \">>\": 48,\n        \">>>\": 49,\n        \"&\": 50,\n        \"|\": 51,\n        \"^\": 52,\n        \"!\": 53,\n        \"~\": 54,\n        \"&&\": 55,\n        \"||\": 56,\n        \"?\": 57,\n        \"??\": 60,\n        \"?.\": 28,\n        \":\": 58,\n        \"=\": 63,\n        \"+=\": 64,\n        \"-=\": 65,\n        \"*=\": 66,\n        \"**=\": 67,\n        \"/=\": 68,\n        \"%=\": 69,\n        \"<<=\": 70,\n        \">>=\": 71,\n        \">>>=\": 72,\n        \"&=\": 73,\n        \"|=\": 74,\n        \"^=\": 78,\n        \"||=\": 75,\n        \"&&=\": 76,\n        \"??=\": 77,\n        \"@\": 59,\n        \"#\": 62,\n        \"`\": 61\n      }));\n      unicodeES3IdentifierStart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 543, 546, 563, 592, 685, 688, 696, 699, 705, 720, 721, 736, 740, 750, 750, 890, 890, 902, 902, 904, 906, 908, 908, 910, 929, 931, 974, 976, 983, 986, 1011, 1024, 1153, 1164, 1220, 1223, 1224, 1227, 1228, 1232, 1269, 1272, 1273, 1329, 1366, 1369, 1369, 1377, 1415, 1488, 1514, 1520, 1522, 1569, 1594, 1600, 1610, 1649, 1747, 1749, 1749, 1765, 1766, 1786, 1788, 1808, 1808, 1810, 1836, 1920, 1957, 2309, 2361, 2365, 2365, 2384, 2384, 2392, 2401, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2524, 2525, 2527, 2529, 2544, 2545, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2649, 2652, 2654, 2654, 2674, 2676, 2693, 2699, 2701, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2749, 2749, 2768, 2768, 2784, 2784, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2870, 2873, 2877, 2877, 2908, 2909, 2911, 2913, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 2997, 2999, 3001, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3168, 3169, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3294, 3294, 3296, 3297, 3333, 3340, 3342, 3344, 3346, 3368, 3370, 3385, 3424, 3425, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3585, 3632, 3634, 3635, 3648, 3654, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3760, 3762, 3763, 3773, 3773, 3776, 3780, 3782, 3782, 3804, 3805, 3840, 3840, 3904, 3911, 3913, 3946, 3976, 3979, 4096, 4129, 4131, 4135, 4137, 4138, 4176, 4181, 4256, 4293, 4304, 4342, 4352, 4441, 4447, 4514, 4520, 4601, 4608, 4614, 4616, 4678, 4680, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4742, 4744, 4744, 4746, 4749, 4752, 4782, 4784, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4814, 4816, 4822, 4824, 4846, 4848, 4878, 4880, 4880, 4882, 4885, 4888, 4894, 4896, 4934, 4936, 4954, 5024, 5108, 5121, 5740, 5743, 5750, 5761, 5786, 5792, 5866, 6016, 6067, 6176, 6263, 6272, 6312, 7680, 7835, 7840, 7929, 7936, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8319, 8319, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8497, 8499, 8505, 8544, 8579, 12293, 12295, 12321, 12329, 12337, 12341, 12344, 12346, 12353, 12436, 12445, 12446, 12449, 12538, 12540, 12542, 12549, 12588, 12593, 12686, 12704, 12727, 13312, 19893, 19968, 40869, 40960, 42124, 44032, 55203, 63744, 64045, 64256, 64262, 64275, 64279, 64285, 64285, 64287, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65136, 65138, 65140, 65140, 65142, 65276, 65313, 65338, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500];\n      unicodeES3IdentifierPart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 543, 546, 563, 592, 685, 688, 696, 699, 705, 720, 721, 736, 740, 750, 750, 768, 846, 864, 866, 890, 890, 902, 902, 904, 906, 908, 908, 910, 929, 931, 974, 976, 983, 986, 1011, 1024, 1153, 1155, 1158, 1164, 1220, 1223, 1224, 1227, 1228, 1232, 1269, 1272, 1273, 1329, 1366, 1369, 1369, 1377, 1415, 1425, 1441, 1443, 1465, 1467, 1469, 1471, 1471, 1473, 1474, 1476, 1476, 1488, 1514, 1520, 1522, 1569, 1594, 1600, 1621, 1632, 1641, 1648, 1747, 1749, 1756, 1759, 1768, 1770, 1773, 1776, 1788, 1808, 1836, 1840, 1866, 1920, 1968, 2305, 2307, 2309, 2361, 2364, 2381, 2384, 2388, 2392, 2403, 2406, 2415, 2433, 2435, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2492, 2492, 2494, 2500, 2503, 2504, 2507, 2509, 2519, 2519, 2524, 2525, 2527, 2531, 2534, 2545, 2562, 2562, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2620, 2620, 2622, 2626, 2631, 2632, 2635, 2637, 2649, 2652, 2654, 2654, 2662, 2676, 2689, 2691, 2693, 2699, 2701, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2748, 2757, 2759, 2761, 2763, 2765, 2768, 2768, 2784, 2784, 2790, 2799, 2817, 2819, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2870, 2873, 2876, 2883, 2887, 2888, 2891, 2893, 2902, 2903, 2908, 2909, 2911, 2913, 2918, 2927, 2946, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 2997, 2999, 3001, 3006, 3010, 3014, 3016, 3018, 3021, 3031, 3031, 3047, 3055, 3073, 3075, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3134, 3140, 3142, 3144, 3146, 3149, 3157, 3158, 3168, 3169, 3174, 3183, 3202, 3203, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3262, 3268, 3270, 3272, 3274, 3277, 3285, 3286, 3294, 3294, 3296, 3297, 3302, 3311, 3330, 3331, 3333, 3340, 3342, 3344, 3346, 3368, 3370, 3385, 3390, 3395, 3398, 3400, 3402, 3405, 3415, 3415, 3424, 3425, 3430, 3439, 3458, 3459, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3530, 3530, 3535, 3540, 3542, 3542, 3544, 3551, 3570, 3571, 3585, 3642, 3648, 3662, 3664, 3673, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3769, 3771, 3773, 3776, 3780, 3782, 3782, 3784, 3789, 3792, 3801, 3804, 3805, 3840, 3840, 3864, 3865, 3872, 3881, 3893, 3893, 3895, 3895, 3897, 3897, 3902, 3911, 3913, 3946, 3953, 3972, 3974, 3979, 3984, 3991, 3993, 4028, 4038, 4038, 4096, 4129, 4131, 4135, 4137, 4138, 4140, 4146, 4150, 4153, 4160, 4169, 4176, 4185, 4256, 4293, 4304, 4342, 4352, 4441, 4447, 4514, 4520, 4601, 4608, 4614, 4616, 4678, 4680, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4742, 4744, 4744, 4746, 4749, 4752, 4782, 4784, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4814, 4816, 4822, 4824, 4846, 4848, 4878, 4880, 4880, 4882, 4885, 4888, 4894, 4896, 4934, 4936, 4954, 4969, 4977, 5024, 5108, 5121, 5740, 5743, 5750, 5761, 5786, 5792, 5866, 6016, 6099, 6112, 6121, 6160, 6169, 6176, 6263, 6272, 6313, 7680, 7835, 7840, 7929, 7936, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8255, 8256, 8319, 8319, 8400, 8412, 8417, 8417, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8497, 8499, 8505, 8544, 8579, 12293, 12295, 12321, 12335, 12337, 12341, 12344, 12346, 12353, 12436, 12441, 12442, 12445, 12446, 12449, 12542, 12549, 12588, 12593, 12686, 12704, 12727, 13312, 19893, 19968, 40869, 40960, 42124, 44032, 55203, 63744, 64045, 64256, 64262, 64275, 64279, 64285, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65056, 65059, 65075, 65076, 65101, 65103, 65136, 65138, 65140, 65140, 65142, 65276, 65296, 65305, 65313, 65338, 65343, 65343, 65345, 65370, 65381, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500];\n      unicodeES5IdentifierStart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 880, 884, 886, 887, 890, 893, 902, 902, 904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1162, 1319, 1329, 1366, 1369, 1369, 1377, 1415, 1488, 1514, 1520, 1522, 1568, 1610, 1646, 1647, 1649, 1747, 1749, 1749, 1765, 1766, 1774, 1775, 1786, 1788, 1791, 1791, 1808, 1808, 1810, 1839, 1869, 1957, 1969, 1969, 1994, 2026, 2036, 2037, 2042, 2042, 2048, 2069, 2074, 2074, 2084, 2084, 2088, 2088, 2112, 2136, 2208, 2208, 2210, 2220, 2308, 2361, 2365, 2365, 2384, 2384, 2392, 2401, 2417, 2423, 2425, 2431, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2493, 2493, 2510, 2510, 2524, 2525, 2527, 2529, 2544, 2545, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2649, 2652, 2654, 2654, 2674, 2676, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2749, 2749, 2768, 2768, 2784, 2785, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2877, 2877, 2908, 2909, 2911, 2913, 2929, 2929, 2947, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3024, 3024, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3133, 3133, 3160, 3161, 3168, 3169, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3261, 3261, 3294, 3294, 3296, 3297, 3313, 3314, 3333, 3340, 3342, 3344, 3346, 3386, 3389, 3389, 3406, 3406, 3424, 3425, 3450, 3455, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3585, 3632, 3634, 3635, 3648, 3654, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3760, 3762, 3763, 3773, 3773, 3776, 3780, 3782, 3782, 3804, 3807, 3840, 3840, 3904, 3911, 3913, 3948, 3976, 3980, 4096, 4138, 4159, 4159, 4176, 4181, 4186, 4189, 4193, 4193, 4197, 4198, 4206, 4208, 4213, 4225, 4238, 4238, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4992, 5007, 5024, 5108, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5872, 5888, 5900, 5902, 5905, 5920, 5937, 5952, 5969, 5984, 5996, 5998, 6e3, 6016, 6067, 6103, 6103, 6108, 6108, 6176, 6263, 6272, 6312, 6314, 6314, 6320, 6389, 6400, 6428, 6480, 6509, 6512, 6516, 6528, 6571, 6593, 6599, 6656, 6678, 6688, 6740, 6823, 6823, 6917, 6963, 6981, 6987, 7043, 7072, 7086, 7087, 7098, 7141, 7168, 7203, 7245, 7247, 7258, 7293, 7401, 7404, 7406, 7409, 7413, 7414, 7424, 7615, 7680, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8305, 8305, 8319, 8319, 8336, 8348, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11502, 11506, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11648, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 11823, 11823, 12293, 12295, 12321, 12329, 12337, 12341, 12344, 12348, 12353, 12438, 12445, 12447, 12449, 12538, 12540, 12543, 12549, 12589, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40908, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42527, 42538, 42539, 42560, 42606, 42623, 42647, 42656, 42735, 42775, 42783, 42786, 42888, 42891, 42894, 42896, 42899, 42912, 42922, 43e3, 43009, 43011, 43013, 43015, 43018, 43020, 43042, 43072, 43123, 43138, 43187, 43250, 43255, 43259, 43259, 43274, 43301, 43312, 43334, 43360, 43388, 43396, 43442, 43471, 43471, 43520, 43560, 43584, 43586, 43588, 43595, 43616, 43638, 43642, 43642, 43648, 43695, 43697, 43697, 43701, 43702, 43705, 43709, 43712, 43712, 43714, 43714, 43739, 43741, 43744, 43754, 43762, 43764, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43968, 44002, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64285, 64287, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65136, 65140, 65142, 65276, 65313, 65338, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500];\n      unicodeES5IdentifierPart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 768, 884, 886, 887, 890, 893, 902, 902, 904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1155, 1159, 1162, 1319, 1329, 1366, 1369, 1369, 1377, 1415, 1425, 1469, 1471, 1471, 1473, 1474, 1476, 1477, 1479, 1479, 1488, 1514, 1520, 1522, 1552, 1562, 1568, 1641, 1646, 1747, 1749, 1756, 1759, 1768, 1770, 1788, 1791, 1791, 1808, 1866, 1869, 1969, 1984, 2037, 2042, 2042, 2048, 2093, 2112, 2139, 2208, 2208, 2210, 2220, 2276, 2302, 2304, 2403, 2406, 2415, 2417, 2423, 2425, 2431, 2433, 2435, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2492, 2500, 2503, 2504, 2507, 2510, 2519, 2519, 2524, 2525, 2527, 2531, 2534, 2545, 2561, 2563, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2620, 2620, 2622, 2626, 2631, 2632, 2635, 2637, 2641, 2641, 2649, 2652, 2654, 2654, 2662, 2677, 2689, 2691, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2748, 2757, 2759, 2761, 2763, 2765, 2768, 2768, 2784, 2787, 2790, 2799, 2817, 2819, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2876, 2884, 2887, 2888, 2891, 2893, 2902, 2903, 2908, 2909, 2911, 2915, 2918, 2927, 2929, 2929, 2946, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3006, 3010, 3014, 3016, 3018, 3021, 3024, 3024, 3031, 3031, 3046, 3055, 3073, 3075, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3133, 3140, 3142, 3144, 3146, 3149, 3157, 3158, 3160, 3161, 3168, 3171, 3174, 3183, 3202, 3203, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3260, 3268, 3270, 3272, 3274, 3277, 3285, 3286, 3294, 3294, 3296, 3299, 3302, 3311, 3313, 3314, 3330, 3331, 3333, 3340, 3342, 3344, 3346, 3386, 3389, 3396, 3398, 3400, 3402, 3406, 3415, 3415, 3424, 3427, 3430, 3439, 3450, 3455, 3458, 3459, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3530, 3530, 3535, 3540, 3542, 3542, 3544, 3551, 3570, 3571, 3585, 3642, 3648, 3662, 3664, 3673, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3769, 3771, 3773, 3776, 3780, 3782, 3782, 3784, 3789, 3792, 3801, 3804, 3807, 3840, 3840, 3864, 3865, 3872, 3881, 3893, 3893, 3895, 3895, 3897, 3897, 3902, 3911, 3913, 3948, 3953, 3972, 3974, 3991, 3993, 4028, 4038, 4038, 4096, 4169, 4176, 4253, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4957, 4959, 4992, 5007, 5024, 5108, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5872, 5888, 5900, 5902, 5908, 5920, 5940, 5952, 5971, 5984, 5996, 5998, 6e3, 6002, 6003, 6016, 6099, 6103, 6103, 6108, 6109, 6112, 6121, 6155, 6157, 6160, 6169, 6176, 6263, 6272, 6314, 6320, 6389, 6400, 6428, 6432, 6443, 6448, 6459, 6470, 6509, 6512, 6516, 6528, 6571, 6576, 6601, 6608, 6617, 6656, 6683, 6688, 6750, 6752, 6780, 6783, 6793, 6800, 6809, 6823, 6823, 6912, 6987, 6992, 7001, 7019, 7027, 7040, 7155, 7168, 7223, 7232, 7241, 7245, 7293, 7376, 7378, 7380, 7414, 7424, 7654, 7676, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8204, 8205, 8255, 8256, 8276, 8276, 8305, 8305, 8319, 8319, 8336, 8348, 8400, 8412, 8417, 8417, 8421, 8432, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11647, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 11744, 11775, 11823, 11823, 12293, 12295, 12321, 12335, 12337, 12341, 12344, 12348, 12353, 12438, 12441, 12442, 12445, 12447, 12449, 12538, 12540, 12543, 12549, 12589, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40908, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42539, 42560, 42607, 42612, 42621, 42623, 42647, 42655, 42737, 42775, 42783, 42786, 42888, 42891, 42894, 42896, 42899, 42912, 42922, 43e3, 43047, 43072, 43123, 43136, 43204, 43216, 43225, 43232, 43255, 43259, 43259, 43264, 43309, 43312, 43347, 43360, 43388, 43392, 43456, 43471, 43481, 43520, 43574, 43584, 43597, 43600, 43609, 43616, 43638, 43642, 43643, 43648, 43714, 43739, 43741, 43744, 43759, 43762, 43766, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43968, 44010, 44012, 44013, 44016, 44025, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65024, 65039, 65056, 65062, 65075, 65076, 65101, 65103, 65136, 65140, 65142, 65276, 65296, 65305, 65313, 65338, 65343, 65343, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500];\n      unicodeESNextIdentifierStart = [65, 90, 97, 122, 170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 880, 884, 886, 887, 890, 893, 895, 895, 902, 902, 904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1162, 1327, 1329, 1366, 1369, 1369, 1376, 1416, 1488, 1514, 1519, 1522, 1568, 1610, 1646, 1647, 1649, 1747, 1749, 1749, 1765, 1766, 1774, 1775, 1786, 1788, 1791, 1791, 1808, 1808, 1810, 1839, 1869, 1957, 1969, 1969, 1994, 2026, 2036, 2037, 2042, 2042, 2048, 2069, 2074, 2074, 2084, 2084, 2088, 2088, 2112, 2136, 2144, 2154, 2208, 2228, 2230, 2237, 2308, 2361, 2365, 2365, 2384, 2384, 2392, 2401, 2417, 2432, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2493, 2493, 2510, 2510, 2524, 2525, 2527, 2529, 2544, 2545, 2556, 2556, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2649, 2652, 2654, 2654, 2674, 2676, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2749, 2749, 2768, 2768, 2784, 2785, 2809, 2809, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2877, 2877, 2908, 2909, 2911, 2913, 2929, 2929, 2947, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3024, 3024, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3129, 3133, 3133, 3160, 3162, 3168, 3169, 3200, 3200, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3261, 3261, 3294, 3294, 3296, 3297, 3313, 3314, 3333, 3340, 3342, 3344, 3346, 3386, 3389, 3389, 3406, 3406, 3412, 3414, 3423, 3425, 3450, 3455, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3585, 3632, 3634, 3635, 3648, 3654, 3713, 3714, 3716, 3716, 3718, 3722, 3724, 3747, 3749, 3749, 3751, 3760, 3762, 3763, 3773, 3773, 3776, 3780, 3782, 3782, 3804, 3807, 3840, 3840, 3904, 3911, 3913, 3948, 3976, 3980, 4096, 4138, 4159, 4159, 4176, 4181, 4186, 4189, 4193, 4193, 4197, 4198, 4206, 4208, 4213, 4225, 4238, 4238, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4992, 5007, 5024, 5109, 5112, 5117, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5880, 5888, 5900, 5902, 5905, 5920, 5937, 5952, 5969, 5984, 5996, 5998, 6e3, 6016, 6067, 6103, 6103, 6108, 6108, 6176, 6264, 6272, 6312, 6314, 6314, 6320, 6389, 6400, 6430, 6480, 6509, 6512, 6516, 6528, 6571, 6576, 6601, 6656, 6678, 6688, 6740, 6823, 6823, 6917, 6963, 6981, 6987, 7043, 7072, 7086, 7087, 7098, 7141, 7168, 7203, 7245, 7247, 7258, 7293, 7296, 7304, 7312, 7354, 7357, 7359, 7401, 7404, 7406, 7411, 7413, 7414, 7418, 7418, 7424, 7615, 7680, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8305, 8305, 8319, 8319, 8336, 8348, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8472, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11502, 11506, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11648, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 12293, 12295, 12321, 12329, 12337, 12341, 12344, 12348, 12353, 12438, 12443, 12447, 12449, 12538, 12540, 12543, 12549, 12591, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40943, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42527, 42538, 42539, 42560, 42606, 42623, 42653, 42656, 42735, 42775, 42783, 42786, 42888, 42891, 42943, 42946, 42950, 42999, 43009, 43011, 43013, 43015, 43018, 43020, 43042, 43072, 43123, 43138, 43187, 43250, 43255, 43259, 43259, 43261, 43262, 43274, 43301, 43312, 43334, 43360, 43388, 43396, 43442, 43471, 43471, 43488, 43492, 43494, 43503, 43514, 43518, 43520, 43560, 43584, 43586, 43588, 43595, 43616, 43638, 43642, 43642, 43646, 43695, 43697, 43697, 43701, 43702, 43705, 43709, 43712, 43712, 43714, 43714, 43739, 43741, 43744, 43754, 43762, 43764, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43824, 43866, 43868, 43879, 43888, 44002, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64285, 64287, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65136, 65140, 65142, 65276, 65313, 65338, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500, 65536, 65547, 65549, 65574, 65576, 65594, 65596, 65597, 65599, 65613, 65616, 65629, 65664, 65786, 65856, 65908, 66176, 66204, 66208, 66256, 66304, 66335, 66349, 66378, 66384, 66421, 66432, 66461, 66464, 66499, 66504, 66511, 66513, 66517, 66560, 66717, 66736, 66771, 66776, 66811, 66816, 66855, 66864, 66915, 67072, 67382, 67392, 67413, 67424, 67431, 67584, 67589, 67592, 67592, 67594, 67637, 67639, 67640, 67644, 67644, 67647, 67669, 67680, 67702, 67712, 67742, 67808, 67826, 67828, 67829, 67840, 67861, 67872, 67897, 67968, 68023, 68030, 68031, 68096, 68096, 68112, 68115, 68117, 68119, 68121, 68149, 68192, 68220, 68224, 68252, 68288, 68295, 68297, 68324, 68352, 68405, 68416, 68437, 68448, 68466, 68480, 68497, 68608, 68680, 68736, 68786, 68800, 68850, 68864, 68899, 69376, 69404, 69415, 69415, 69424, 69445, 69600, 69622, 69635, 69687, 69763, 69807, 69840, 69864, 69891, 69926, 69956, 69956, 69968, 70002, 70006, 70006, 70019, 70066, 70081, 70084, 70106, 70106, 70108, 70108, 70144, 70161, 70163, 70187, 70272, 70278, 70280, 70280, 70282, 70285, 70287, 70301, 70303, 70312, 70320, 70366, 70405, 70412, 70415, 70416, 70419, 70440, 70442, 70448, 70450, 70451, 70453, 70457, 70461, 70461, 70480, 70480, 70493, 70497, 70656, 70708, 70727, 70730, 70751, 70751, 70784, 70831, 70852, 70853, 70855, 70855, 71040, 71086, 71128, 71131, 71168, 71215, 71236, 71236, 71296, 71338, 71352, 71352, 71424, 71450, 71680, 71723, 71840, 71903, 71935, 71935, 72096, 72103, 72106, 72144, 72161, 72161, 72163, 72163, 72192, 72192, 72203, 72242, 72250, 72250, 72272, 72272, 72284, 72329, 72349, 72349, 72384, 72440, 72704, 72712, 72714, 72750, 72768, 72768, 72818, 72847, 72960, 72966, 72968, 72969, 72971, 73008, 73030, 73030, 73056, 73061, 73063, 73064, 73066, 73097, 73112, 73112, 73440, 73458, 73728, 74649, 74752, 74862, 74880, 75075, 77824, 78894, 82944, 83526, 92160, 92728, 92736, 92766, 92880, 92909, 92928, 92975, 92992, 92995, 93027, 93047, 93053, 93071, 93760, 93823, 93952, 94026, 94032, 94032, 94099, 94111, 94176, 94177, 94179, 94179, 94208, 100343, 100352, 101106, 110592, 110878, 110928, 110930, 110948, 110951, 110960, 111355, 113664, 113770, 113776, 113788, 113792, 113800, 113808, 113817, 119808, 119892, 119894, 119964, 119966, 119967, 119970, 119970, 119973, 119974, 119977, 119980, 119982, 119993, 119995, 119995, 119997, 120003, 120005, 120069, 120071, 120074, 120077, 120084, 120086, 120092, 120094, 120121, 120123, 120126, 120128, 120132, 120134, 120134, 120138, 120144, 120146, 120485, 120488, 120512, 120514, 120538, 120540, 120570, 120572, 120596, 120598, 120628, 120630, 120654, 120656, 120686, 120688, 120712, 120714, 120744, 120746, 120770, 120772, 120779, 123136, 123180, 123191, 123197, 123214, 123214, 123584, 123627, 124928, 125124, 125184, 125251, 125259, 125259, 126464, 126467, 126469, 126495, 126497, 126498, 126500, 126500, 126503, 126503, 126505, 126514, 126516, 126519, 126521, 126521, 126523, 126523, 126530, 126530, 126535, 126535, 126537, 126537, 126539, 126539, 126541, 126543, 126545, 126546, 126548, 126548, 126551, 126551, 126553, 126553, 126555, 126555, 126557, 126557, 126559, 126559, 126561, 126562, 126564, 126564, 126567, 126570, 126572, 126578, 126580, 126583, 126585, 126588, 126590, 126590, 126592, 126601, 126603, 126619, 126625, 126627, 126629, 126633, 126635, 126651, 131072, 173782, 173824, 177972, 177984, 178205, 178208, 183969, 183984, 191456, 194560, 195101];\n      unicodeESNextIdentifierPart = [48, 57, 65, 90, 95, 95, 97, 122, 170, 170, 181, 181, 183, 183, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 768, 884, 886, 887, 890, 893, 895, 895, 902, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1155, 1159, 1162, 1327, 1329, 1366, 1369, 1369, 1376, 1416, 1425, 1469, 1471, 1471, 1473, 1474, 1476, 1477, 1479, 1479, 1488, 1514, 1519, 1522, 1552, 1562, 1568, 1641, 1646, 1747, 1749, 1756, 1759, 1768, 1770, 1788, 1791, 1791, 1808, 1866, 1869, 1969, 1984, 2037, 2042, 2042, 2045, 2045, 2048, 2093, 2112, 2139, 2144, 2154, 2208, 2228, 2230, 2237, 2259, 2273, 2275, 2403, 2406, 2415, 2417, 2435, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2492, 2500, 2503, 2504, 2507, 2510, 2519, 2519, 2524, 2525, 2527, 2531, 2534, 2545, 2556, 2556, 2558, 2558, 2561, 2563, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2620, 2620, 2622, 2626, 2631, 2632, 2635, 2637, 2641, 2641, 2649, 2652, 2654, 2654, 2662, 2677, 2689, 2691, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2748, 2757, 2759, 2761, 2763, 2765, 2768, 2768, 2784, 2787, 2790, 2799, 2809, 2815, 2817, 2819, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2876, 2884, 2887, 2888, 2891, 2893, 2902, 2903, 2908, 2909, 2911, 2915, 2918, 2927, 2929, 2929, 2946, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3006, 3010, 3014, 3016, 3018, 3021, 3024, 3024, 3031, 3031, 3046, 3055, 3072, 3084, 3086, 3088, 3090, 3112, 3114, 3129, 3133, 3140, 3142, 3144, 3146, 3149, 3157, 3158, 3160, 3162, 3168, 3171, 3174, 3183, 3200, 3203, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3260, 3268, 3270, 3272, 3274, 3277, 3285, 3286, 3294, 3294, 3296, 3299, 3302, 3311, 3313, 3314, 3328, 3331, 3333, 3340, 3342, 3344, 3346, 3396, 3398, 3400, 3402, 3406, 3412, 3415, 3423, 3427, 3430, 3439, 3450, 3455, 3458, 3459, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3530, 3530, 3535, 3540, 3542, 3542, 3544, 3551, 3558, 3567, 3570, 3571, 3585, 3642, 3648, 3662, 3664, 3673, 3713, 3714, 3716, 3716, 3718, 3722, 3724, 3747, 3749, 3749, 3751, 3773, 3776, 3780, 3782, 3782, 3784, 3789, 3792, 3801, 3804, 3807, 3840, 3840, 3864, 3865, 3872, 3881, 3893, 3893, 3895, 3895, 3897, 3897, 3902, 3911, 3913, 3948, 3953, 3972, 3974, 3991, 3993, 4028, 4038, 4038, 4096, 4169, 4176, 4253, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4957, 4959, 4969, 4977, 4992, 5007, 5024, 5109, 5112, 5117, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5880, 5888, 5900, 5902, 5908, 5920, 5940, 5952, 5971, 5984, 5996, 5998, 6e3, 6002, 6003, 6016, 6099, 6103, 6103, 6108, 6109, 6112, 6121, 6155, 6157, 6160, 6169, 6176, 6264, 6272, 6314, 6320, 6389, 6400, 6430, 6432, 6443, 6448, 6459, 6470, 6509, 6512, 6516, 6528, 6571, 6576, 6601, 6608, 6618, 6656, 6683, 6688, 6750, 6752, 6780, 6783, 6793, 6800, 6809, 6823, 6823, 6832, 6845, 6912, 6987, 6992, 7001, 7019, 7027, 7040, 7155, 7168, 7223, 7232, 7241, 7245, 7293, 7296, 7304, 7312, 7354, 7357, 7359, 7376, 7378, 7380, 7418, 7424, 7673, 7675, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8255, 8256, 8276, 8276, 8305, 8305, 8319, 8319, 8336, 8348, 8400, 8412, 8417, 8417, 8421, 8432, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8472, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11647, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 11744, 11775, 12293, 12295, 12321, 12335, 12337, 12341, 12344, 12348, 12353, 12438, 12441, 12447, 12449, 12538, 12540, 12543, 12549, 12591, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40943, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42539, 42560, 42607, 42612, 42621, 42623, 42737, 42775, 42783, 42786, 42888, 42891, 42943, 42946, 42950, 42999, 43047, 43072, 43123, 43136, 43205, 43216, 43225, 43232, 43255, 43259, 43259, 43261, 43309, 43312, 43347, 43360, 43388, 43392, 43456, 43471, 43481, 43488, 43518, 43520, 43574, 43584, 43597, 43600, 43609, 43616, 43638, 43642, 43714, 43739, 43741, 43744, 43759, 43762, 43766, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43824, 43866, 43868, 43879, 43888, 44010, 44012, 44013, 44016, 44025, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65024, 65039, 65056, 65071, 65075, 65076, 65101, 65103, 65136, 65140, 65142, 65276, 65296, 65305, 65313, 65338, 65343, 65343, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500, 65536, 65547, 65549, 65574, 65576, 65594, 65596, 65597, 65599, 65613, 65616, 65629, 65664, 65786, 65856, 65908, 66045, 66045, 66176, 66204, 66208, 66256, 66272, 66272, 66304, 66335, 66349, 66378, 66384, 66426, 66432, 66461, 66464, 66499, 66504, 66511, 66513, 66517, 66560, 66717, 66720, 66729, 66736, 66771, 66776, 66811, 66816, 66855, 66864, 66915, 67072, 67382, 67392, 67413, 67424, 67431, 67584, 67589, 67592, 67592, 67594, 67637, 67639, 67640, 67644, 67644, 67647, 67669, 67680, 67702, 67712, 67742, 67808, 67826, 67828, 67829, 67840, 67861, 67872, 67897, 67968, 68023, 68030, 68031, 68096, 68099, 68101, 68102, 68108, 68115, 68117, 68119, 68121, 68149, 68152, 68154, 68159, 68159, 68192, 68220, 68224, 68252, 68288, 68295, 68297, 68326, 68352, 68405, 68416, 68437, 68448, 68466, 68480, 68497, 68608, 68680, 68736, 68786, 68800, 68850, 68864, 68903, 68912, 68921, 69376, 69404, 69415, 69415, 69424, 69456, 69600, 69622, 69632, 69702, 69734, 69743, 69759, 69818, 69840, 69864, 69872, 69881, 69888, 69940, 69942, 69951, 69956, 69958, 69968, 70003, 70006, 70006, 70016, 70084, 70089, 70092, 70096, 70106, 70108, 70108, 70144, 70161, 70163, 70199, 70206, 70206, 70272, 70278, 70280, 70280, 70282, 70285, 70287, 70301, 70303, 70312, 70320, 70378, 70384, 70393, 70400, 70403, 70405, 70412, 70415, 70416, 70419, 70440, 70442, 70448, 70450, 70451, 70453, 70457, 70459, 70468, 70471, 70472, 70475, 70477, 70480, 70480, 70487, 70487, 70493, 70499, 70502, 70508, 70512, 70516, 70656, 70730, 70736, 70745, 70750, 70751, 70784, 70853, 70855, 70855, 70864, 70873, 71040, 71093, 71096, 71104, 71128, 71133, 71168, 71232, 71236, 71236, 71248, 71257, 71296, 71352, 71360, 71369, 71424, 71450, 71453, 71467, 71472, 71481, 71680, 71738, 71840, 71913, 71935, 71935, 72096, 72103, 72106, 72151, 72154, 72161, 72163, 72164, 72192, 72254, 72263, 72263, 72272, 72345, 72349, 72349, 72384, 72440, 72704, 72712, 72714, 72758, 72760, 72768, 72784, 72793, 72818, 72847, 72850, 72871, 72873, 72886, 72960, 72966, 72968, 72969, 72971, 73014, 73018, 73018, 73020, 73021, 73023, 73031, 73040, 73049, 73056, 73061, 73063, 73064, 73066, 73102, 73104, 73105, 73107, 73112, 73120, 73129, 73440, 73462, 73728, 74649, 74752, 74862, 74880, 75075, 77824, 78894, 82944, 83526, 92160, 92728, 92736, 92766, 92768, 92777, 92880, 92909, 92912, 92916, 92928, 92982, 92992, 92995, 93008, 93017, 93027, 93047, 93053, 93071, 93760, 93823, 93952, 94026, 94031, 94087, 94095, 94111, 94176, 94177, 94179, 94179, 94208, 100343, 100352, 101106, 110592, 110878, 110928, 110930, 110948, 110951, 110960, 111355, 113664, 113770, 113776, 113788, 113792, 113800, 113808, 113817, 113821, 113822, 119141, 119145, 119149, 119154, 119163, 119170, 119173, 119179, 119210, 119213, 119362, 119364, 119808, 119892, 119894, 119964, 119966, 119967, 119970, 119970, 119973, 119974, 119977, 119980, 119982, 119993, 119995, 119995, 119997, 120003, 120005, 120069, 120071, 120074, 120077, 120084, 120086, 120092, 120094, 120121, 120123, 120126, 120128, 120132, 120134, 120134, 120138, 120144, 120146, 120485, 120488, 120512, 120514, 120538, 120540, 120570, 120572, 120596, 120598, 120628, 120630, 120654, 120656, 120686, 120688, 120712, 120714, 120744, 120746, 120770, 120772, 120779, 120782, 120831, 121344, 121398, 121403, 121452, 121461, 121461, 121476, 121476, 121499, 121503, 121505, 121519, 122880, 122886, 122888, 122904, 122907, 122913, 122915, 122916, 122918, 122922, 123136, 123180, 123184, 123197, 123200, 123209, 123214, 123214, 123584, 123641, 124928, 125124, 125136, 125142, 125184, 125259, 125264, 125273, 126464, 126467, 126469, 126495, 126497, 126498, 126500, 126500, 126503, 126503, 126505, 126514, 126516, 126519, 126521, 126521, 126523, 126523, 126530, 126530, 126535, 126535, 126537, 126537, 126539, 126539, 126541, 126543, 126545, 126546, 126548, 126548, 126551, 126551, 126553, 126553, 126555, 126555, 126557, 126557, 126559, 126559, 126561, 126562, 126564, 126564, 126567, 126570, 126572, 126578, 126580, 126583, 126585, 126588, 126590, 126590, 126592, 126601, 126603, 126619, 126625, 126627, 126629, 126633, 126635, 126651, 131072, 173782, 173824, 177972, 177984, 178205, 178208, 183969, 183984, 191456, 194560, 195101, 917760, 917999];\n      commentDirectiveRegExSingleLine = /^\\/\\/\\/?\\s*@(ts-expect-error|ts-ignore)/;\n      commentDirectiveRegExMultiLine = /^(?:\\/|\\*)*\\s*@(ts-expect-error|ts-ignore)/;\n      tokenStrings = makeReverseMap(textToToken);\n      mergeConflictMarkerLength = \"<<<<<<<\".length;\n      shebangTriviaRegex = /^#!.*/;\n      codePointAt = String.prototype.codePointAt ? (s, i) => s.codePointAt(i) : function codePointAt2(str, i) {\n        const size = str.length;\n        if (i < 0 || i >= size) {\n          return void 0;\n        }\n        const first2 = str.charCodeAt(i);\n        if (first2 >= 55296 && first2 <= 56319 && size > i + 1) {\n          const second = str.charCodeAt(i + 1);\n          if (second >= 56320 && second <= 57343) {\n            return (first2 - 55296) * 1024 + second - 56320 + 65536;\n          }\n        }\n        return first2;\n      };\n      utf16EncodeAsStringWorker = String.fromCodePoint ? (codePoint) => String.fromCodePoint(codePoint) : utf16EncodeAsStringFallback;\n    }\n  });\n  function isExternalModuleNameRelative(moduleName) {\n    return pathIsRelative(moduleName) || isRootedDiskPath(moduleName);\n  }\n  function sortAndDeduplicateDiagnostics(diagnostics) {\n    return sortAndDeduplicate(diagnostics, compareDiagnostics);\n  }\n  function getDefaultLibFileName(options) {\n    switch (getEmitScriptTarget(options)) {\n      case 99:\n        return \"lib.esnext.full.d.ts\";\n      case 9:\n        return \"lib.es2022.full.d.ts\";\n      case 8:\n        return \"lib.es2021.full.d.ts\";\n      case 7:\n        return \"lib.es2020.full.d.ts\";\n      case 6:\n        return \"lib.es2019.full.d.ts\";\n      case 5:\n        return \"lib.es2018.full.d.ts\";\n      case 4:\n        return \"lib.es2017.full.d.ts\";\n      case 3:\n        return \"lib.es2016.full.d.ts\";\n      case 2:\n        return \"lib.es6.d.ts\";\n      default:\n        return \"lib.d.ts\";\n    }\n  }\n  function textSpanEnd(span) {\n    return span.start + span.length;\n  }\n  function textSpanIsEmpty(span) {\n    return span.length === 0;\n  }\n  function textSpanContainsPosition(span, position) {\n    return position >= span.start && position < textSpanEnd(span);\n  }\n  function textRangeContainsPositionInclusive(span, position) {\n    return position >= span.pos && position <= span.end;\n  }\n  function textSpanContainsTextSpan(span, other) {\n    return other.start >= span.start && textSpanEnd(other) <= textSpanEnd(span);\n  }\n  function textSpanOverlapsWith(span, other) {\n    return textSpanOverlap(span, other) !== void 0;\n  }\n  function textSpanOverlap(span1, span2) {\n    const overlap = textSpanIntersection(span1, span2);\n    return overlap && overlap.length === 0 ? void 0 : overlap;\n  }\n  function textSpanIntersectsWithTextSpan(span, other) {\n    return decodedTextSpanIntersectsWith(span.start, span.length, other.start, other.length);\n  }\n  function textSpanIntersectsWith(span, start, length2) {\n    return decodedTextSpanIntersectsWith(span.start, span.length, start, length2);\n  }\n  function decodedTextSpanIntersectsWith(start1, length1, start2, length2) {\n    const end1 = start1 + length1;\n    const end2 = start2 + length2;\n    return start2 <= end1 && end2 >= start1;\n  }\n  function textSpanIntersectsWithPosition(span, position) {\n    return position <= textSpanEnd(span) && position >= span.start;\n  }\n  function textSpanIntersection(span1, span2) {\n    const start = Math.max(span1.start, span2.start);\n    const end = Math.min(textSpanEnd(span1), textSpanEnd(span2));\n    return start <= end ? createTextSpanFromBounds(start, end) : void 0;\n  }\n  function createTextSpan(start, length2) {\n    if (start < 0) {\n      throw new Error(\"start < 0\");\n    }\n    if (length2 < 0) {\n      throw new Error(\"length < 0\");\n    }\n    return { start, length: length2 };\n  }\n  function createTextSpanFromBounds(start, end) {\n    return createTextSpan(start, end - start);\n  }\n  function textChangeRangeNewSpan(range) {\n    return createTextSpan(range.span.start, range.newLength);\n  }\n  function textChangeRangeIsUnchanged(range) {\n    return textSpanIsEmpty(range.span) && range.newLength === 0;\n  }\n  function createTextChangeRange(span, newLength) {\n    if (newLength < 0) {\n      throw new Error(\"newLength < 0\");\n    }\n    return { span, newLength };\n  }\n  function collapseTextChangeRangesAcrossMultipleVersions(changes) {\n    if (changes.length === 0) {\n      return unchangedTextChangeRange;\n    }\n    if (changes.length === 1) {\n      return changes[0];\n    }\n    const change0 = changes[0];\n    let oldStartN = change0.span.start;\n    let oldEndN = textSpanEnd(change0.span);\n    let newEndN = oldStartN + change0.newLength;\n    for (let i = 1; i < changes.length; i++) {\n      const nextChange = changes[i];\n      const oldStart1 = oldStartN;\n      const oldEnd1 = oldEndN;\n      const newEnd1 = newEndN;\n      const oldStart2 = nextChange.span.start;\n      const oldEnd2 = textSpanEnd(nextChange.span);\n      const newEnd2 = oldStart2 + nextChange.newLength;\n      oldStartN = Math.min(oldStart1, oldStart2);\n      oldEndN = Math.max(oldEnd1, oldEnd1 + (oldEnd2 - newEnd1));\n      newEndN = Math.max(newEnd2, newEnd2 + (newEnd1 - oldEnd2));\n    }\n    return createTextChangeRange(createTextSpanFromBounds(oldStartN, oldEndN), newEndN - oldStartN);\n  }\n  function getTypeParameterOwner(d) {\n    if (d && d.kind === 165) {\n      for (let current = d; current; current = current.parent) {\n        if (isFunctionLike(current) || isClassLike(current) || current.kind === 261) {\n          return current;\n        }\n      }\n    }\n  }\n  function isParameterPropertyDeclaration(node, parent2) {\n    return isParameter(node) && hasSyntacticModifier(node, 16476) && parent2.kind === 173;\n  }\n  function isEmptyBindingPattern(node) {\n    if (isBindingPattern(node)) {\n      return every(node.elements, isEmptyBindingElement);\n    }\n    return false;\n  }\n  function isEmptyBindingElement(node) {\n    if (isOmittedExpression(node)) {\n      return true;\n    }\n    return isEmptyBindingPattern(node.name);\n  }\n  function walkUpBindingElementsAndPatterns(binding) {\n    let node = binding.parent;\n    while (isBindingElement(node.parent)) {\n      node = node.parent.parent;\n    }\n    return node.parent;\n  }\n  function getCombinedFlags(node, getFlags) {\n    if (isBindingElement(node)) {\n      node = walkUpBindingElementsAndPatterns(node);\n    }\n    let flags = getFlags(node);\n    if (node.kind === 257) {\n      node = node.parent;\n    }\n    if (node && node.kind === 258) {\n      flags |= getFlags(node);\n      node = node.parent;\n    }\n    if (node && node.kind === 240) {\n      flags |= getFlags(node);\n    }\n    return flags;\n  }\n  function getCombinedModifierFlags(node) {\n    return getCombinedFlags(node, getEffectiveModifierFlags);\n  }\n  function getCombinedNodeFlagsAlwaysIncludeJSDoc(node) {\n    return getCombinedFlags(node, getEffectiveModifierFlagsAlwaysIncludeJSDoc);\n  }\n  function getCombinedNodeFlags(node) {\n    return getCombinedFlags(node, (n) => n.flags);\n  }\n  function validateLocaleAndSetLanguage(locale, sys2, errors) {\n    const lowerCaseLocale = locale.toLowerCase();\n    const matchResult = /^([a-z]+)([_\\-]([a-z]+))?$/.exec(lowerCaseLocale);\n    if (!matchResult) {\n      if (errors) {\n        errors.push(createCompilerDiagnostic(Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1, \"en\", \"ja-jp\"));\n      }\n      return;\n    }\n    const language = matchResult[1];\n    const territory = matchResult[3];\n    if (contains(supportedLocaleDirectories, lowerCaseLocale) && !trySetLanguageAndTerritory(language, territory, errors)) {\n      trySetLanguageAndTerritory(language, void 0, errors);\n    }\n    setUILocale(locale);\n    function trySetLanguageAndTerritory(language2, territory2, errors2) {\n      const compilerFilePath = normalizePath(sys2.getExecutingFilePath());\n      const containingDirectoryPath = getDirectoryPath(compilerFilePath);\n      let filePath = combinePaths(containingDirectoryPath, language2);\n      if (territory2) {\n        filePath = filePath + \"-\" + territory2;\n      }\n      filePath = sys2.resolvePath(combinePaths(filePath, \"diagnosticMessages.generated.json\"));\n      if (!sys2.fileExists(filePath)) {\n        return false;\n      }\n      let fileContents = \"\";\n      try {\n        fileContents = sys2.readFile(filePath);\n      } catch (e) {\n        if (errors2) {\n          errors2.push(createCompilerDiagnostic(Diagnostics.Unable_to_open_file_0, filePath));\n        }\n        return false;\n      }\n      try {\n        setLocalizedDiagnosticMessages(JSON.parse(fileContents));\n      } catch (e) {\n        if (errors2) {\n          errors2.push(createCompilerDiagnostic(Diagnostics.Corrupted_locale_file_0, filePath));\n        }\n        return false;\n      }\n      return true;\n    }\n  }\n  function getOriginalNode(node, nodeTest) {\n    if (node) {\n      while (node.original !== void 0) {\n        node = node.original;\n      }\n    }\n    if (!node || !nodeTest) {\n      return node;\n    }\n    return nodeTest(node) ? node : void 0;\n  }\n  function findAncestor(node, callback) {\n    while (node) {\n      const result = callback(node);\n      if (result === \"quit\") {\n        return void 0;\n      } else if (result) {\n        return node;\n      }\n      node = node.parent;\n    }\n    return void 0;\n  }\n  function isParseTreeNode(node) {\n    return (node.flags & 8) === 0;\n  }\n  function getParseTreeNode(node, nodeTest) {\n    if (node === void 0 || isParseTreeNode(node)) {\n      return node;\n    }\n    node = node.original;\n    while (node) {\n      if (isParseTreeNode(node)) {\n        return !nodeTest || nodeTest(node) ? node : void 0;\n      }\n      node = node.original;\n    }\n  }\n  function escapeLeadingUnderscores(identifier) {\n    return identifier.length >= 2 && identifier.charCodeAt(0) === 95 && identifier.charCodeAt(1) === 95 ? \"_\" + identifier : identifier;\n  }\n  function unescapeLeadingUnderscores(identifier) {\n    const id = identifier;\n    return id.length >= 3 && id.charCodeAt(0) === 95 && id.charCodeAt(1) === 95 && id.charCodeAt(2) === 95 ? id.substr(1) : id;\n  }\n  function idText(identifierOrPrivateName) {\n    return unescapeLeadingUnderscores(identifierOrPrivateName.escapedText);\n  }\n  function identifierToKeywordKind(node) {\n    const token = stringToToken(node.escapedText);\n    return token ? tryCast(token, isKeyword) : void 0;\n  }\n  function symbolName(symbol) {\n    if (symbol.valueDeclaration && isPrivateIdentifierClassElementDeclaration(symbol.valueDeclaration)) {\n      return idText(symbol.valueDeclaration.name);\n    }\n    return unescapeLeadingUnderscores(symbol.escapedName);\n  }\n  function nameForNamelessJSDocTypedef(declaration) {\n    const hostNode = declaration.parent.parent;\n    if (!hostNode) {\n      return void 0;\n    }\n    if (isDeclaration(hostNode)) {\n      return getDeclarationIdentifier(hostNode);\n    }\n    switch (hostNode.kind) {\n      case 240:\n        if (hostNode.declarationList && hostNode.declarationList.declarations[0]) {\n          return getDeclarationIdentifier(hostNode.declarationList.declarations[0]);\n        }\n        break;\n      case 241:\n        let expr = hostNode.expression;\n        if (expr.kind === 223 && expr.operatorToken.kind === 63) {\n          expr = expr.left;\n        }\n        switch (expr.kind) {\n          case 208:\n            return expr.name;\n          case 209:\n            const arg = expr.argumentExpression;\n            if (isIdentifier(arg)) {\n              return arg;\n            }\n        }\n        break;\n      case 214: {\n        return getDeclarationIdentifier(hostNode.expression);\n      }\n      case 253: {\n        if (isDeclaration(hostNode.statement) || isExpression(hostNode.statement)) {\n          return getDeclarationIdentifier(hostNode.statement);\n        }\n        break;\n      }\n    }\n  }\n  function getDeclarationIdentifier(node) {\n    const name = getNameOfDeclaration(node);\n    return name && isIdentifier(name) ? name : void 0;\n  }\n  function nodeHasName(statement, name) {\n    if (isNamedDeclaration(statement) && isIdentifier(statement.name) && idText(statement.name) === idText(name)) {\n      return true;\n    }\n    if (isVariableStatement(statement) && some(statement.declarationList.declarations, (d) => nodeHasName(d, name))) {\n      return true;\n    }\n    return false;\n  }\n  function getNameOfJSDocTypedef(declaration) {\n    return declaration.name || nameForNamelessJSDocTypedef(declaration);\n  }\n  function isNamedDeclaration(node) {\n    return !!node.name;\n  }\n  function getNonAssignedNameOfDeclaration(declaration) {\n    switch (declaration.kind) {\n      case 79:\n        return declaration;\n      case 351:\n      case 344: {\n        const { name } = declaration;\n        if (name.kind === 163) {\n          return name.right;\n        }\n        break;\n      }\n      case 210:\n      case 223: {\n        const expr2 = declaration;\n        switch (getAssignmentDeclarationKind(expr2)) {\n          case 1:\n          case 4:\n          case 5:\n          case 3:\n            return getElementOrPropertyAccessArgumentExpressionOrName(expr2.left);\n          case 7:\n          case 8:\n          case 9:\n            return expr2.arguments[1];\n          default:\n            return void 0;\n        }\n      }\n      case 349:\n        return getNameOfJSDocTypedef(declaration);\n      case 343:\n        return nameForNamelessJSDocTypedef(declaration);\n      case 274: {\n        const { expression } = declaration;\n        return isIdentifier(expression) ? expression : void 0;\n      }\n      case 209:\n        const expr = declaration;\n        if (isBindableStaticElementAccessExpression(expr)) {\n          return expr.argumentExpression;\n        }\n    }\n    return declaration.name;\n  }\n  function getNameOfDeclaration(declaration) {\n    if (declaration === void 0)\n      return void 0;\n    return getNonAssignedNameOfDeclaration(declaration) || (isFunctionExpression(declaration) || isArrowFunction(declaration) || isClassExpression(declaration) ? getAssignedName(declaration) : void 0);\n  }\n  function getAssignedName(node) {\n    if (!node.parent) {\n      return void 0;\n    } else if (isPropertyAssignment(node.parent) || isBindingElement(node.parent)) {\n      return node.parent.name;\n    } else if (isBinaryExpression(node.parent) && node === node.parent.right) {\n      if (isIdentifier(node.parent.left)) {\n        return node.parent.left;\n      } else if (isAccessExpression(node.parent.left)) {\n        return getElementOrPropertyAccessArgumentExpressionOrName(node.parent.left);\n      }\n    } else if (isVariableDeclaration(node.parent) && isIdentifier(node.parent.name)) {\n      return node.parent.name;\n    }\n  }\n  function getDecorators(node) {\n    if (hasDecorators(node)) {\n      return filter(node.modifiers, isDecorator);\n    }\n  }\n  function getModifiers(node) {\n    if (hasSyntacticModifier(node, 126975)) {\n      return filter(node.modifiers, isModifier);\n    }\n  }\n  function getJSDocParameterTagsWorker(param, noCache) {\n    if (param.name) {\n      if (isIdentifier(param.name)) {\n        const name = param.name.escapedText;\n        return getJSDocTagsWorker(param.parent, noCache).filter((tag) => isJSDocParameterTag(tag) && isIdentifier(tag.name) && tag.name.escapedText === name);\n      } else {\n        const i = param.parent.parameters.indexOf(param);\n        Debug.assert(i > -1, \"Parameters should always be in their parents' parameter list\");\n        const paramTags = getJSDocTagsWorker(param.parent, noCache).filter(isJSDocParameterTag);\n        if (i < paramTags.length) {\n          return [paramTags[i]];\n        }\n      }\n    }\n    return emptyArray;\n  }\n  function getJSDocParameterTags(param) {\n    return getJSDocParameterTagsWorker(param, false);\n  }\n  function getJSDocParameterTagsNoCache(param) {\n    return getJSDocParameterTagsWorker(param, true);\n  }\n  function getJSDocTypeParameterTagsWorker(param, noCache) {\n    const name = param.name.escapedText;\n    return getJSDocTagsWorker(param.parent, noCache).filter((tag) => isJSDocTemplateTag(tag) && tag.typeParameters.some((tp) => tp.name.escapedText === name));\n  }\n  function getJSDocTypeParameterTags(param) {\n    return getJSDocTypeParameterTagsWorker(param, false);\n  }\n  function getJSDocTypeParameterTagsNoCache(param) {\n    return getJSDocTypeParameterTagsWorker(param, true);\n  }\n  function hasJSDocParameterTags(node) {\n    return !!getFirstJSDocTag(node, isJSDocParameterTag);\n  }\n  function getJSDocAugmentsTag(node) {\n    return getFirstJSDocTag(node, isJSDocAugmentsTag);\n  }\n  function getJSDocImplementsTags(node) {\n    return getAllJSDocTags(node, isJSDocImplementsTag);\n  }\n  function getJSDocClassTag(node) {\n    return getFirstJSDocTag(node, isJSDocClassTag);\n  }\n  function getJSDocPublicTag(node) {\n    return getFirstJSDocTag(node, isJSDocPublicTag);\n  }\n  function getJSDocPublicTagNoCache(node) {\n    return getFirstJSDocTag(node, isJSDocPublicTag, true);\n  }\n  function getJSDocPrivateTag(node) {\n    return getFirstJSDocTag(node, isJSDocPrivateTag);\n  }\n  function getJSDocPrivateTagNoCache(node) {\n    return getFirstJSDocTag(node, isJSDocPrivateTag, true);\n  }\n  function getJSDocProtectedTag(node) {\n    return getFirstJSDocTag(node, isJSDocProtectedTag);\n  }\n  function getJSDocProtectedTagNoCache(node) {\n    return getFirstJSDocTag(node, isJSDocProtectedTag, true);\n  }\n  function getJSDocReadonlyTag(node) {\n    return getFirstJSDocTag(node, isJSDocReadonlyTag);\n  }\n  function getJSDocReadonlyTagNoCache(node) {\n    return getFirstJSDocTag(node, isJSDocReadonlyTag, true);\n  }\n  function getJSDocOverrideTagNoCache(node) {\n    return getFirstJSDocTag(node, isJSDocOverrideTag, true);\n  }\n  function getJSDocDeprecatedTag(node) {\n    return getFirstJSDocTag(node, isJSDocDeprecatedTag);\n  }\n  function getJSDocDeprecatedTagNoCache(node) {\n    return getFirstJSDocTag(node, isJSDocDeprecatedTag, true);\n  }\n  function getJSDocEnumTag(node) {\n    return getFirstJSDocTag(node, isJSDocEnumTag);\n  }\n  function getJSDocThisTag(node) {\n    return getFirstJSDocTag(node, isJSDocThisTag);\n  }\n  function getJSDocReturnTag(node) {\n    return getFirstJSDocTag(node, isJSDocReturnTag);\n  }\n  function getJSDocTemplateTag(node) {\n    return getFirstJSDocTag(node, isJSDocTemplateTag);\n  }\n  function getJSDocSatisfiesTag(node) {\n    return getFirstJSDocTag(node, isJSDocSatisfiesTag);\n  }\n  function getJSDocTypeTag(node) {\n    const tag = getFirstJSDocTag(node, isJSDocTypeTag);\n    if (tag && tag.typeExpression && tag.typeExpression.type) {\n      return tag;\n    }\n    return void 0;\n  }\n  function getJSDocType(node) {\n    let tag = getFirstJSDocTag(node, isJSDocTypeTag);\n    if (!tag && isParameter(node)) {\n      tag = find(getJSDocParameterTags(node), (tag2) => !!tag2.typeExpression);\n    }\n    return tag && tag.typeExpression && tag.typeExpression.type;\n  }\n  function getJSDocReturnType(node) {\n    const returnTag = getJSDocReturnTag(node);\n    if (returnTag && returnTag.typeExpression) {\n      return returnTag.typeExpression.type;\n    }\n    const typeTag = getJSDocTypeTag(node);\n    if (typeTag && typeTag.typeExpression) {\n      const type = typeTag.typeExpression.type;\n      if (isTypeLiteralNode(type)) {\n        const sig = find(type.members, isCallSignatureDeclaration);\n        return sig && sig.type;\n      }\n      if (isFunctionTypeNode(type) || isJSDocFunctionType(type)) {\n        return type.type;\n      }\n    }\n  }\n  function getJSDocTagsWorker(node, noCache) {\n    var _a2, _b;\n    if (!canHaveJSDoc(node))\n      return emptyArray;\n    let tags = (_a2 = node.jsDoc) == null ? void 0 : _a2.jsDocCache;\n    if (tags === void 0 || noCache) {\n      const comments = getJSDocCommentsAndTags(node, noCache);\n      Debug.assert(comments.length < 2 || comments[0] !== comments[1]);\n      tags = flatMap(comments, (j) => isJSDoc(j) ? j.tags : j);\n      if (!noCache) {\n        (_b = node.jsDoc) != null ? _b : node.jsDoc = [];\n        node.jsDoc.jsDocCache = tags;\n      }\n    }\n    return tags;\n  }\n  function getJSDocTags(node) {\n    return getJSDocTagsWorker(node, false);\n  }\n  function getJSDocTagsNoCache(node) {\n    return getJSDocTagsWorker(node, true);\n  }\n  function getFirstJSDocTag(node, predicate, noCache) {\n    return find(getJSDocTagsWorker(node, noCache), predicate);\n  }\n  function getAllJSDocTags(node, predicate) {\n    return getJSDocTags(node).filter(predicate);\n  }\n  function getAllJSDocTagsOfKind(node, kind) {\n    return getJSDocTags(node).filter((doc) => doc.kind === kind);\n  }\n  function getTextOfJSDocComment(comment) {\n    return typeof comment === \"string\" ? comment : comment == null ? void 0 : comment.map((c) => c.kind === 324 ? c.text : formatJSDocLink(c)).join(\"\");\n  }\n  function formatJSDocLink(link) {\n    const kind = link.kind === 327 ? \"link\" : link.kind === 328 ? \"linkcode\" : \"linkplain\";\n    const name = link.name ? entityNameToString(link.name) : \"\";\n    const space = link.name && link.text.startsWith(\"://\") ? \"\" : \" \";\n    return `{@${kind} ${name}${space}${link.text}}`;\n  }\n  function getEffectiveTypeParameterDeclarations(node) {\n    if (isJSDocSignature(node)) {\n      if (isJSDocOverloadTag(node.parent)) {\n        const jsDoc = getJSDocRoot(node.parent);\n        if (jsDoc && length(jsDoc.tags)) {\n          return flatMap(jsDoc.tags, (tag) => isJSDocTemplateTag(tag) ? tag.typeParameters : void 0);\n        }\n      }\n      return emptyArray;\n    }\n    if (isJSDocTypeAlias(node)) {\n      Debug.assert(node.parent.kind === 323);\n      return flatMap(node.parent.tags, (tag) => isJSDocTemplateTag(tag) ? tag.typeParameters : void 0);\n    }\n    if (node.typeParameters) {\n      return node.typeParameters;\n    }\n    if (canHaveIllegalTypeParameters(node) && node.typeParameters) {\n      return node.typeParameters;\n    }\n    if (isInJSFile(node)) {\n      const decls = getJSDocTypeParameterDeclarations(node);\n      if (decls.length) {\n        return decls;\n      }\n      const typeTag = getJSDocType(node);\n      if (typeTag && isFunctionTypeNode(typeTag) && typeTag.typeParameters) {\n        return typeTag.typeParameters;\n      }\n    }\n    return emptyArray;\n  }\n  function getEffectiveConstraintOfTypeParameter(node) {\n    return node.constraint ? node.constraint : isJSDocTemplateTag(node.parent) && node === node.parent.typeParameters[0] ? node.parent.constraint : void 0;\n  }\n  function isMemberName(node) {\n    return node.kind === 79 || node.kind === 80;\n  }\n  function isGetOrSetAccessorDeclaration(node) {\n    return node.kind === 175 || node.kind === 174;\n  }\n  function isPropertyAccessChain(node) {\n    return isPropertyAccessExpression(node) && !!(node.flags & 32);\n  }\n  function isElementAccessChain(node) {\n    return isElementAccessExpression(node) && !!(node.flags & 32);\n  }\n  function isCallChain(node) {\n    return isCallExpression(node) && !!(node.flags & 32);\n  }\n  function isOptionalChain(node) {\n    const kind = node.kind;\n    return !!(node.flags & 32) && (kind === 208 || kind === 209 || kind === 210 || kind === 232);\n  }\n  function isOptionalChainRoot(node) {\n    return isOptionalChain(node) && !isNonNullExpression(node) && !!node.questionDotToken;\n  }\n  function isExpressionOfOptionalChainRoot(node) {\n    return isOptionalChainRoot(node.parent) && node.parent.expression === node;\n  }\n  function isOutermostOptionalChain(node) {\n    return !isOptionalChain(node.parent) || isOptionalChainRoot(node.parent) || node !== node.parent.expression;\n  }\n  function isNullishCoalesce(node) {\n    return node.kind === 223 && node.operatorToken.kind === 60;\n  }\n  function isConstTypeReference(node) {\n    return isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === \"const\" && !node.typeArguments;\n  }\n  function skipPartiallyEmittedExpressions(node) {\n    return skipOuterExpressions(node, 8);\n  }\n  function isNonNullChain(node) {\n    return isNonNullExpression(node) && !!(node.flags & 32);\n  }\n  function isBreakOrContinueStatement(node) {\n    return node.kind === 249 || node.kind === 248;\n  }\n  function isNamedExportBindings(node) {\n    return node.kind === 277 || node.kind === 276;\n  }\n  function isUnparsedTextLike(node) {\n    switch (node.kind) {\n      case 305:\n      case 306:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function isUnparsedNode(node) {\n    return isUnparsedTextLike(node) || node.kind === 303 || node.kind === 307;\n  }\n  function isJSDocPropertyLikeTag(node) {\n    return node.kind === 351 || node.kind === 344;\n  }\n  function isNode(node) {\n    return isNodeKind(node.kind);\n  }\n  function isNodeKind(kind) {\n    return kind >= 163;\n  }\n  function isTokenKind(kind) {\n    return kind >= 0 && kind <= 162;\n  }\n  function isToken(n) {\n    return isTokenKind(n.kind);\n  }\n  function isNodeArray(array) {\n    return hasProperty(array, \"pos\") && hasProperty(array, \"end\");\n  }\n  function isLiteralKind(kind) {\n    return 8 <= kind && kind <= 14;\n  }\n  function isLiteralExpression(node) {\n    return isLiteralKind(node.kind);\n  }\n  function isLiteralExpressionOfObject(node) {\n    switch (node.kind) {\n      case 207:\n      case 206:\n      case 13:\n      case 215:\n      case 228:\n        return true;\n    }\n    return false;\n  }\n  function isTemplateLiteralKind(kind) {\n    return 14 <= kind && kind <= 17;\n  }\n  function isTemplateLiteralToken(node) {\n    return isTemplateLiteralKind(node.kind);\n  }\n  function isTemplateMiddleOrTemplateTail(node) {\n    const kind = node.kind;\n    return kind === 16 || kind === 17;\n  }\n  function isImportOrExportSpecifier(node) {\n    return isImportSpecifier(node) || isExportSpecifier(node);\n  }\n  function isTypeOnlyImportDeclaration(node) {\n    switch (node.kind) {\n      case 273:\n        return node.isTypeOnly || node.parent.parent.isTypeOnly;\n      case 271:\n        return node.parent.isTypeOnly;\n      case 270:\n      case 268:\n        return node.isTypeOnly;\n    }\n    return false;\n  }\n  function isTypeOnlyExportDeclaration(node) {\n    switch (node.kind) {\n      case 278:\n        return node.isTypeOnly || node.parent.parent.isTypeOnly;\n      case 275:\n        return node.isTypeOnly && !!node.moduleSpecifier && !node.exportClause;\n      case 277:\n        return node.parent.isTypeOnly;\n    }\n    return false;\n  }\n  function isTypeOnlyImportOrExportDeclaration(node) {\n    return isTypeOnlyImportDeclaration(node) || isTypeOnlyExportDeclaration(node);\n  }\n  function isAssertionKey(node) {\n    return isStringLiteral(node) || isIdentifier(node);\n  }\n  function isStringTextContainingNode(node) {\n    return node.kind === 10 || isTemplateLiteralKind(node.kind);\n  }\n  function isGeneratedIdentifier(node) {\n    var _a2;\n    return isIdentifier(node) && ((_a2 = node.emitNode) == null ? void 0 : _a2.autoGenerate) !== void 0;\n  }\n  function isGeneratedPrivateIdentifier(node) {\n    var _a2;\n    return isPrivateIdentifier(node) && ((_a2 = node.emitNode) == null ? void 0 : _a2.autoGenerate) !== void 0;\n  }\n  function isPrivateIdentifierClassElementDeclaration(node) {\n    return (isPropertyDeclaration(node) || isMethodOrAccessor(node)) && isPrivateIdentifier(node.name);\n  }\n  function isPrivateIdentifierPropertyAccessExpression(node) {\n    return isPropertyAccessExpression(node) && isPrivateIdentifier(node.name);\n  }\n  function isModifierKind(token) {\n    switch (token) {\n      case 126:\n      case 127:\n      case 132:\n      case 85:\n      case 136:\n      case 88:\n      case 93:\n      case 101:\n      case 123:\n      case 121:\n      case 122:\n      case 146:\n      case 124:\n      case 145:\n      case 161:\n        return true;\n    }\n    return false;\n  }\n  function isParameterPropertyModifier(kind) {\n    return !!(modifierToFlag(kind) & 16476);\n  }\n  function isClassMemberModifier(idToken) {\n    return isParameterPropertyModifier(idToken) || idToken === 124 || idToken === 161 || idToken === 127;\n  }\n  function isModifier(node) {\n    return isModifierKind(node.kind);\n  }\n  function isEntityName(node) {\n    const kind = node.kind;\n    return kind === 163 || kind === 79;\n  }\n  function isPropertyName(node) {\n    const kind = node.kind;\n    return kind === 79 || kind === 80 || kind === 10 || kind === 8 || kind === 164;\n  }\n  function isBindingName(node) {\n    const kind = node.kind;\n    return kind === 79 || kind === 203 || kind === 204;\n  }\n  function isFunctionLike(node) {\n    return !!node && isFunctionLikeKind(node.kind);\n  }\n  function isFunctionLikeOrClassStaticBlockDeclaration(node) {\n    return !!node && (isFunctionLikeKind(node.kind) || isClassStaticBlockDeclaration(node));\n  }\n  function isFunctionLikeDeclaration(node) {\n    return node && isFunctionLikeDeclarationKind(node.kind);\n  }\n  function isBooleanLiteral(node) {\n    return node.kind === 110 || node.kind === 95;\n  }\n  function isFunctionLikeDeclarationKind(kind) {\n    switch (kind) {\n      case 259:\n      case 171:\n      case 173:\n      case 174:\n      case 175:\n      case 215:\n      case 216:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function isFunctionLikeKind(kind) {\n    switch (kind) {\n      case 170:\n      case 176:\n      case 326:\n      case 177:\n      case 178:\n      case 181:\n      case 320:\n      case 182:\n        return true;\n      default:\n        return isFunctionLikeDeclarationKind(kind);\n    }\n  }\n  function isFunctionOrModuleBlock(node) {\n    return isSourceFile(node) || isModuleBlock(node) || isBlock(node) && isFunctionLike(node.parent);\n  }\n  function isClassElement(node) {\n    const kind = node.kind;\n    return kind === 173 || kind === 169 || kind === 171 || kind === 174 || kind === 175 || kind === 178 || kind === 172 || kind === 237;\n  }\n  function isClassLike(node) {\n    return node && (node.kind === 260 || node.kind === 228);\n  }\n  function isAccessor(node) {\n    return node && (node.kind === 174 || node.kind === 175);\n  }\n  function isAutoAccessorPropertyDeclaration(node) {\n    return isPropertyDeclaration(node) && hasAccessorModifier(node);\n  }\n  function isMethodOrAccessor(node) {\n    switch (node.kind) {\n      case 171:\n      case 174:\n      case 175:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function isNamedClassElement(node) {\n    switch (node.kind) {\n      case 171:\n      case 174:\n      case 175:\n      case 169:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function isModifierLike(node) {\n    return isModifier(node) || isDecorator(node);\n  }\n  function isTypeElement(node) {\n    const kind = node.kind;\n    return kind === 177 || kind === 176 || kind === 168 || kind === 170 || kind === 178 || kind === 174 || kind === 175;\n  }\n  function isClassOrTypeElement(node) {\n    return isTypeElement(node) || isClassElement(node);\n  }\n  function isObjectLiteralElementLike(node) {\n    const kind = node.kind;\n    return kind === 299 || kind === 300 || kind === 301 || kind === 171 || kind === 174 || kind === 175;\n  }\n  function isTypeNode(node) {\n    return isTypeNodeKind(node.kind);\n  }\n  function isFunctionOrConstructorTypeNode(node) {\n    switch (node.kind) {\n      case 181:\n      case 182:\n        return true;\n    }\n    return false;\n  }\n  function isBindingPattern(node) {\n    if (node) {\n      const kind = node.kind;\n      return kind === 204 || kind === 203;\n    }\n    return false;\n  }\n  function isAssignmentPattern(node) {\n    const kind = node.kind;\n    return kind === 206 || kind === 207;\n  }\n  function isArrayBindingElement(node) {\n    const kind = node.kind;\n    return kind === 205 || kind === 229;\n  }\n  function isDeclarationBindingElement(bindingElement) {\n    switch (bindingElement.kind) {\n      case 257:\n      case 166:\n      case 205:\n        return true;\n    }\n    return false;\n  }\n  function isBindingOrAssignmentElement(node) {\n    return isVariableDeclaration(node) || isParameter(node) || isObjectBindingOrAssignmentElement(node) || isArrayBindingOrAssignmentElement(node);\n  }\n  function isBindingOrAssignmentPattern(node) {\n    return isObjectBindingOrAssignmentPattern(node) || isArrayBindingOrAssignmentPattern(node);\n  }\n  function isObjectBindingOrAssignmentPattern(node) {\n    switch (node.kind) {\n      case 203:\n      case 207:\n        return true;\n    }\n    return false;\n  }\n  function isObjectBindingOrAssignmentElement(node) {\n    switch (node.kind) {\n      case 205:\n      case 299:\n      case 300:\n      case 301:\n        return true;\n    }\n    return false;\n  }\n  function isArrayBindingOrAssignmentPattern(node) {\n    switch (node.kind) {\n      case 204:\n      case 206:\n        return true;\n    }\n    return false;\n  }\n  function isArrayBindingOrAssignmentElement(node) {\n    switch (node.kind) {\n      case 205:\n      case 229:\n      case 227:\n      case 206:\n      case 207:\n      case 79:\n      case 208:\n      case 209:\n        return true;\n    }\n    return isAssignmentExpression(node, true);\n  }\n  function isPropertyAccessOrQualifiedNameOrImportTypeNode(node) {\n    const kind = node.kind;\n    return kind === 208 || kind === 163 || kind === 202;\n  }\n  function isPropertyAccessOrQualifiedName(node) {\n    const kind = node.kind;\n    return kind === 208 || kind === 163;\n  }\n  function isCallLikeExpression(node) {\n    switch (node.kind) {\n      case 283:\n      case 282:\n      case 210:\n      case 211:\n      case 212:\n      case 167:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function isCallOrNewExpression(node) {\n    return node.kind === 210 || node.kind === 211;\n  }\n  function isTemplateLiteral(node) {\n    const kind = node.kind;\n    return kind === 225 || kind === 14;\n  }\n  function isLeftHandSideExpression(node) {\n    return isLeftHandSideExpressionKind(skipPartiallyEmittedExpressions(node).kind);\n  }\n  function isLeftHandSideExpressionKind(kind) {\n    switch (kind) {\n      case 208:\n      case 209:\n      case 211:\n      case 210:\n      case 281:\n      case 282:\n      case 285:\n      case 212:\n      case 206:\n      case 214:\n      case 207:\n      case 228:\n      case 215:\n      case 79:\n      case 80:\n      case 13:\n      case 8:\n      case 9:\n      case 10:\n      case 14:\n      case 225:\n      case 95:\n      case 104:\n      case 108:\n      case 110:\n      case 106:\n      case 232:\n      case 230:\n      case 233:\n      case 100:\n      case 279:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function isUnaryExpression(node) {\n    return isUnaryExpressionKind(skipPartiallyEmittedExpressions(node).kind);\n  }\n  function isUnaryExpressionKind(kind) {\n    switch (kind) {\n      case 221:\n      case 222:\n      case 217:\n      case 218:\n      case 219:\n      case 220:\n      case 213:\n        return true;\n      default:\n        return isLeftHandSideExpressionKind(kind);\n    }\n  }\n  function isUnaryExpressionWithWrite(expr) {\n    switch (expr.kind) {\n      case 222:\n        return true;\n      case 221:\n        return expr.operator === 45 || expr.operator === 46;\n      default:\n        return false;\n    }\n  }\n  function isLiteralTypeLiteral(node) {\n    switch (node.kind) {\n      case 104:\n      case 110:\n      case 95:\n      case 221:\n        return true;\n      default:\n        return isLiteralExpression(node);\n    }\n  }\n  function isExpression(node) {\n    return isExpressionKind(skipPartiallyEmittedExpressions(node).kind);\n  }\n  function isExpressionKind(kind) {\n    switch (kind) {\n      case 224:\n      case 226:\n      case 216:\n      case 223:\n      case 227:\n      case 231:\n      case 229:\n      case 357:\n      case 356:\n      case 235:\n        return true;\n      default:\n        return isUnaryExpressionKind(kind);\n    }\n  }\n  function isAssertionExpression(node) {\n    const kind = node.kind;\n    return kind === 213 || kind === 231;\n  }\n  function isNotEmittedOrPartiallyEmittedNode(node) {\n    return isNotEmittedStatement(node) || isPartiallyEmittedExpression(node);\n  }\n  function isIterationStatement(node, lookInLabeledStatements) {\n    switch (node.kind) {\n      case 245:\n      case 246:\n      case 247:\n      case 243:\n      case 244:\n        return true;\n      case 253:\n        return lookInLabeledStatements && isIterationStatement(node.statement, lookInLabeledStatements);\n    }\n    return false;\n  }\n  function isScopeMarker(node) {\n    return isExportAssignment(node) || isExportDeclaration(node);\n  }\n  function hasScopeMarker(statements) {\n    return some(statements, isScopeMarker);\n  }\n  function needsScopeMarker(result) {\n    return !isAnyImportOrReExport(result) && !isExportAssignment(result) && !hasSyntacticModifier(result, 1) && !isAmbientModule(result);\n  }\n  function isExternalModuleIndicator(result) {\n    return isAnyImportOrReExport(result) || isExportAssignment(result) || hasSyntacticModifier(result, 1);\n  }\n  function isForInOrOfStatement(node) {\n    return node.kind === 246 || node.kind === 247;\n  }\n  function isConciseBody(node) {\n    return isBlock(node) || isExpression(node);\n  }\n  function isFunctionBody(node) {\n    return isBlock(node);\n  }\n  function isForInitializer(node) {\n    return isVariableDeclarationList(node) || isExpression(node);\n  }\n  function isModuleBody(node) {\n    const kind = node.kind;\n    return kind === 265 || kind === 264 || kind === 79;\n  }\n  function isNamespaceBody(node) {\n    const kind = node.kind;\n    return kind === 265 || kind === 264;\n  }\n  function isJSDocNamespaceBody(node) {\n    const kind = node.kind;\n    return kind === 79 || kind === 264;\n  }\n  function isNamedImportBindings(node) {\n    const kind = node.kind;\n    return kind === 272 || kind === 271;\n  }\n  function isModuleOrEnumDeclaration(node) {\n    return node.kind === 264 || node.kind === 263;\n  }\n  function canHaveSymbol(node) {\n    switch (node.kind) {\n      case 216:\n      case 223:\n      case 205:\n      case 210:\n      case 176:\n      case 260:\n      case 228:\n      case 172:\n      case 173:\n      case 182:\n      case 177:\n      case 209:\n      case 263:\n      case 302:\n      case 274:\n      case 275:\n      case 278:\n      case 259:\n      case 215:\n      case 181:\n      case 174:\n      case 79:\n      case 270:\n      case 268:\n      case 273:\n      case 178:\n      case 261:\n      case 341:\n      case 343:\n      case 320:\n      case 344:\n      case 351:\n      case 326:\n      case 349:\n      case 325:\n      case 288:\n      case 289:\n      case 290:\n      case 197:\n      case 171:\n      case 170:\n      case 264:\n      case 199:\n      case 277:\n      case 267:\n      case 271:\n      case 211:\n      case 14:\n      case 8:\n      case 207:\n      case 166:\n      case 208:\n      case 299:\n      case 169:\n      case 168:\n      case 175:\n      case 300:\n      case 308:\n      case 301:\n      case 10:\n      case 262:\n      case 184:\n      case 165:\n      case 257:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function canHaveLocals(node) {\n    switch (node.kind) {\n      case 216:\n      case 238:\n      case 176:\n      case 266:\n      case 295:\n      case 172:\n      case 191:\n      case 173:\n      case 182:\n      case 177:\n      case 245:\n      case 246:\n      case 247:\n      case 259:\n      case 215:\n      case 181:\n      case 174:\n      case 178:\n      case 341:\n      case 343:\n      case 320:\n      case 326:\n      case 349:\n      case 197:\n      case 171:\n      case 170:\n      case 264:\n      case 175:\n      case 308:\n      case 262:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function isDeclarationKind(kind) {\n    return kind === 216 || kind === 205 || kind === 260 || kind === 228 || kind === 172 || kind === 173 || kind === 263 || kind === 302 || kind === 278 || kind === 259 || kind === 215 || kind === 174 || kind === 270 || kind === 268 || kind === 273 || kind === 261 || kind === 288 || kind === 171 || kind === 170 || kind === 264 || kind === 267 || kind === 271 || kind === 277 || kind === 166 || kind === 299 || kind === 169 || kind === 168 || kind === 175 || kind === 300 || kind === 262 || kind === 165 || kind === 257 || kind === 349 || kind === 341 || kind === 351;\n  }\n  function isDeclarationStatementKind(kind) {\n    return kind === 259 || kind === 279 || kind === 260 || kind === 261 || kind === 262 || kind === 263 || kind === 264 || kind === 269 || kind === 268 || kind === 275 || kind === 274 || kind === 267;\n  }\n  function isStatementKindButNotDeclarationKind(kind) {\n    return kind === 249 || kind === 248 || kind === 256 || kind === 243 || kind === 241 || kind === 239 || kind === 246 || kind === 247 || kind === 245 || kind === 242 || kind === 253 || kind === 250 || kind === 252 || kind === 254 || kind === 255 || kind === 240 || kind === 244 || kind === 251 || kind === 355 || kind === 359 || kind === 358;\n  }\n  function isDeclaration(node) {\n    if (node.kind === 165) {\n      return node.parent && node.parent.kind !== 348 || isInJSFile(node);\n    }\n    return isDeclarationKind(node.kind);\n  }\n  function isDeclarationStatement(node) {\n    return isDeclarationStatementKind(node.kind);\n  }\n  function isStatementButNotDeclaration(node) {\n    return isStatementKindButNotDeclarationKind(node.kind);\n  }\n  function isStatement(node) {\n    const kind = node.kind;\n    return isStatementKindButNotDeclarationKind(kind) || isDeclarationStatementKind(kind) || isBlockStatement(node);\n  }\n  function isBlockStatement(node) {\n    if (node.kind !== 238)\n      return false;\n    if (node.parent !== void 0) {\n      if (node.parent.kind === 255 || node.parent.kind === 295) {\n        return false;\n      }\n    }\n    return !isFunctionBlock(node);\n  }\n  function isStatementOrBlock(node) {\n    const kind = node.kind;\n    return isStatementKindButNotDeclarationKind(kind) || isDeclarationStatementKind(kind) || kind === 238;\n  }\n  function isModuleReference(node) {\n    const kind = node.kind;\n    return kind === 280 || kind === 163 || kind === 79;\n  }\n  function isJsxTagNameExpression(node) {\n    const kind = node.kind;\n    return kind === 108 || kind === 79 || kind === 208;\n  }\n  function isJsxChild(node) {\n    const kind = node.kind;\n    return kind === 281 || kind === 291 || kind === 282 || kind === 11 || kind === 285;\n  }\n  function isJsxAttributeLike(node) {\n    const kind = node.kind;\n    return kind === 288 || kind === 290;\n  }\n  function isStringLiteralOrJsxExpression(node) {\n    const kind = node.kind;\n    return kind === 10 || kind === 291;\n  }\n  function isJsxOpeningLikeElement(node) {\n    const kind = node.kind;\n    return kind === 283 || kind === 282;\n  }\n  function isCaseOrDefaultClause(node) {\n    const kind = node.kind;\n    return kind === 292 || kind === 293;\n  }\n  function isJSDocNode(node) {\n    return node.kind >= 312 && node.kind <= 353;\n  }\n  function isJSDocCommentContainingNode(node) {\n    return node.kind === 323 || node.kind === 322 || node.kind === 324 || isJSDocLinkLike(node) || isJSDocTag(node) || isJSDocTypeLiteral(node) || isJSDocSignature(node);\n  }\n  function isJSDocTag(node) {\n    return node.kind >= 330 && node.kind <= 353;\n  }\n  function isSetAccessor(node) {\n    return node.kind === 175;\n  }\n  function isGetAccessor(node) {\n    return node.kind === 174;\n  }\n  function hasJSDocNodes(node) {\n    if (!canHaveJSDoc(node))\n      return false;\n    const { jsDoc } = node;\n    return !!jsDoc && jsDoc.length > 0;\n  }\n  function hasType(node) {\n    return !!node.type;\n  }\n  function hasInitializer(node) {\n    return !!node.initializer;\n  }\n  function hasOnlyExpressionInitializer(node) {\n    switch (node.kind) {\n      case 257:\n      case 166:\n      case 205:\n      case 169:\n      case 299:\n      case 302:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function isObjectLiteralElement(node) {\n    return node.kind === 288 || node.kind === 290 || isObjectLiteralElementLike(node);\n  }\n  function isTypeReferenceType(node) {\n    return node.kind === 180 || node.kind === 230;\n  }\n  function guessIndentation(lines) {\n    let indentation = MAX_SMI_X86;\n    for (const line of lines) {\n      if (!line.length) {\n        continue;\n      }\n      let i = 0;\n      for (; i < line.length && i < indentation; i++) {\n        if (!isWhiteSpaceLike(line.charCodeAt(i))) {\n          break;\n        }\n      }\n      if (i < indentation) {\n        indentation = i;\n      }\n      if (indentation === 0) {\n        return 0;\n      }\n    }\n    return indentation === MAX_SMI_X86 ? void 0 : indentation;\n  }\n  function isStringLiteralLike(node) {\n    return node.kind === 10 || node.kind === 14;\n  }\n  function isJSDocLinkLike(node) {\n    return node.kind === 327 || node.kind === 328 || node.kind === 329;\n  }\n  function hasRestParameter(s) {\n    const last2 = lastOrUndefined(s.parameters);\n    return !!last2 && isRestParameter(last2);\n  }\n  function isRestParameter(node) {\n    const type = isJSDocParameterTag(node) ? node.typeExpression && node.typeExpression.type : node.type;\n    return node.dotDotDotToken !== void 0 || !!type && type.kind === 321;\n  }\n  var unchangedTextChangeRange, supportedLocaleDirectories, MAX_SMI_X86;\n  var init_utilitiesPublic = __esm({\n    \"src/compiler/utilitiesPublic.ts\"() {\n      \"use strict\";\n      init_ts2();\n      unchangedTextChangeRange = createTextChangeRange(createTextSpan(0, 0), 0);\n      supportedLocaleDirectories = [\"cs\", \"de\", \"es\", \"fr\", \"it\", \"ja\", \"ko\", \"pl\", \"pt-br\", \"ru\", \"tr\", \"zh-cn\", \"zh-tw\"];\n      MAX_SMI_X86 = 1073741823;\n    }\n  });\n  function getDeclarationOfKind(symbol, kind) {\n    const declarations = symbol.declarations;\n    if (declarations) {\n      for (const declaration of declarations) {\n        if (declaration.kind === kind) {\n          return declaration;\n        }\n      }\n    }\n    return void 0;\n  }\n  function getDeclarationsOfKind(symbol, kind) {\n    return filter(symbol.declarations || emptyArray, (d) => d.kind === kind);\n  }\n  function createSymbolTable(symbols) {\n    const result = /* @__PURE__ */ new Map();\n    if (symbols) {\n      for (const symbol of symbols) {\n        result.set(symbol.escapedName, symbol);\n      }\n    }\n    return result;\n  }\n  function isTransientSymbol(symbol) {\n    return (symbol.flags & 33554432) !== 0;\n  }\n  function createSingleLineStringWriter() {\n    var str = \"\";\n    const writeText = (text) => str += text;\n    return {\n      getText: () => str,\n      write: writeText,\n      rawWrite: writeText,\n      writeKeyword: writeText,\n      writeOperator: writeText,\n      writePunctuation: writeText,\n      writeSpace: writeText,\n      writeStringLiteral: writeText,\n      writeLiteral: writeText,\n      writeParameter: writeText,\n      writeProperty: writeText,\n      writeSymbol: (s, _) => writeText(s),\n      writeTrailingSemicolon: writeText,\n      writeComment: writeText,\n      getTextPos: () => str.length,\n      getLine: () => 0,\n      getColumn: () => 0,\n      getIndent: () => 0,\n      isAtStartOfLine: () => false,\n      hasTrailingComment: () => false,\n      hasTrailingWhitespace: () => !!str.length && isWhiteSpaceLike(str.charCodeAt(str.length - 1)),\n      writeLine: () => str += \" \",\n      increaseIndent: noop,\n      decreaseIndent: noop,\n      clear: () => str = \"\"\n    };\n  }\n  function changesAffectModuleResolution(oldOptions, newOptions) {\n    return oldOptions.configFilePath !== newOptions.configFilePath || optionsHaveModuleResolutionChanges(oldOptions, newOptions);\n  }\n  function optionsHaveModuleResolutionChanges(oldOptions, newOptions) {\n    return optionsHaveChanges(oldOptions, newOptions, moduleResolutionOptionDeclarations);\n  }\n  function changesAffectingProgramStructure(oldOptions, newOptions) {\n    return optionsHaveChanges(oldOptions, newOptions, optionsAffectingProgramStructure);\n  }\n  function optionsHaveChanges(oldOptions, newOptions, optionDeclarations2) {\n    return oldOptions !== newOptions && optionDeclarations2.some((o) => !isJsonEqual(getCompilerOptionValue(oldOptions, o), getCompilerOptionValue(newOptions, o)));\n  }\n  function forEachAncestor(node, callback) {\n    while (true) {\n      const res = callback(node);\n      if (res === \"quit\")\n        return void 0;\n      if (res !== void 0)\n        return res;\n      if (isSourceFile(node))\n        return void 0;\n      node = node.parent;\n    }\n  }\n  function forEachEntry(map2, callback) {\n    const iterator = map2.entries();\n    for (const [key, value] of iterator) {\n      const result = callback(value, key);\n      if (result) {\n        return result;\n      }\n    }\n    return void 0;\n  }\n  function forEachKey(map2, callback) {\n    const iterator = map2.keys();\n    for (const key of iterator) {\n      const result = callback(key);\n      if (result) {\n        return result;\n      }\n    }\n    return void 0;\n  }\n  function copyEntries(source, target) {\n    source.forEach((value, key) => {\n      target.set(key, value);\n    });\n  }\n  function usingSingleLineStringWriter(action) {\n    const oldString = stringWriter.getText();\n    try {\n      action(stringWriter);\n      return stringWriter.getText();\n    } finally {\n      stringWriter.clear();\n      stringWriter.writeKeyword(oldString);\n    }\n  }\n  function getFullWidth(node) {\n    return node.end - node.pos;\n  }\n  function getResolvedModule(sourceFile, moduleNameText, mode) {\n    var _a2, _b;\n    return (_b = (_a2 = sourceFile == null ? void 0 : sourceFile.resolvedModules) == null ? void 0 : _a2.get(moduleNameText, mode)) == null ? void 0 : _b.resolvedModule;\n  }\n  function setResolvedModule(sourceFile, moduleNameText, resolvedModule, mode) {\n    if (!sourceFile.resolvedModules) {\n      sourceFile.resolvedModules = createModeAwareCache();\n    }\n    sourceFile.resolvedModules.set(moduleNameText, mode, resolvedModule);\n  }\n  function setResolvedTypeReferenceDirective(sourceFile, typeReferenceDirectiveName, resolvedTypeReferenceDirective, mode) {\n    if (!sourceFile.resolvedTypeReferenceDirectiveNames) {\n      sourceFile.resolvedTypeReferenceDirectiveNames = createModeAwareCache();\n    }\n    sourceFile.resolvedTypeReferenceDirectiveNames.set(typeReferenceDirectiveName, mode, resolvedTypeReferenceDirective);\n  }\n  function getResolvedTypeReferenceDirective(sourceFile, typeReferenceDirectiveName, mode) {\n    var _a2, _b;\n    return (_b = (_a2 = sourceFile == null ? void 0 : sourceFile.resolvedTypeReferenceDirectiveNames) == null ? void 0 : _a2.get(typeReferenceDirectiveName, mode)) == null ? void 0 : _b.resolvedTypeReferenceDirective;\n  }\n  function projectReferenceIsEqualTo(oldRef, newRef) {\n    return oldRef.path === newRef.path && !oldRef.prepend === !newRef.prepend && !oldRef.circular === !newRef.circular;\n  }\n  function moduleResolutionIsEqualTo(oldResolution, newResolution) {\n    return oldResolution === newResolution || oldResolution.resolvedModule === newResolution.resolvedModule || !!oldResolution.resolvedModule && !!newResolution.resolvedModule && oldResolution.resolvedModule.isExternalLibraryImport === newResolution.resolvedModule.isExternalLibraryImport && oldResolution.resolvedModule.extension === newResolution.resolvedModule.extension && oldResolution.resolvedModule.resolvedFileName === newResolution.resolvedModule.resolvedFileName && oldResolution.resolvedModule.originalPath === newResolution.resolvedModule.originalPath && packageIdIsEqual(oldResolution.resolvedModule.packageId, newResolution.resolvedModule.packageId);\n  }\n  function packageIdIsEqual(a, b) {\n    return a === b || !!a && !!b && a.name === b.name && a.subModuleName === b.subModuleName && a.version === b.version;\n  }\n  function packageIdToPackageName({ name, subModuleName }) {\n    return subModuleName ? `${name}/${subModuleName}` : name;\n  }\n  function packageIdToString(packageId) {\n    return `${packageIdToPackageName(packageId)}@${packageId.version}`;\n  }\n  function typeDirectiveIsEqualTo(oldResolution, newResolution) {\n    return oldResolution === newResolution || oldResolution.resolvedTypeReferenceDirective === newResolution.resolvedTypeReferenceDirective || !!oldResolution.resolvedTypeReferenceDirective && !!newResolution.resolvedTypeReferenceDirective && oldResolution.resolvedTypeReferenceDirective.resolvedFileName === newResolution.resolvedTypeReferenceDirective.resolvedFileName && !!oldResolution.resolvedTypeReferenceDirective.primary === !!newResolution.resolvedTypeReferenceDirective.primary && oldResolution.resolvedTypeReferenceDirective.originalPath === newResolution.resolvedTypeReferenceDirective.originalPath;\n  }\n  function hasChangesInResolutions(names, newSourceFile, newResolutions, oldResolutions, comparer, nameAndModeGetter) {\n    Debug.assert(names.length === newResolutions.length);\n    for (let i = 0; i < names.length; i++) {\n      const newResolution = newResolutions[i];\n      const entry = names[i];\n      const name = nameAndModeGetter.getName(entry);\n      const mode = nameAndModeGetter.getMode(entry, newSourceFile);\n      const oldResolution = oldResolutions && oldResolutions.get(name, mode);\n      const changed = oldResolution ? !newResolution || !comparer(oldResolution, newResolution) : newResolution;\n      if (changed) {\n        return true;\n      }\n    }\n    return false;\n  }\n  function containsParseError(node) {\n    aggregateChildData(node);\n    return (node.flags & 524288) !== 0;\n  }\n  function aggregateChildData(node) {\n    if (!(node.flags & 1048576)) {\n      const thisNodeOrAnySubNodesHasError = (node.flags & 131072) !== 0 || forEachChild(node, containsParseError);\n      if (thisNodeOrAnySubNodesHasError) {\n        node.flags |= 524288;\n      }\n      node.flags |= 1048576;\n    }\n  }\n  function getSourceFileOfNode(node) {\n    while (node && node.kind !== 308) {\n      node = node.parent;\n    }\n    return node;\n  }\n  function getSourceFileOfModule(module2) {\n    return getSourceFileOfNode(module2.valueDeclaration || getNonAugmentationDeclaration(module2));\n  }\n  function isPlainJsFile(file, checkJs) {\n    return !!file && (file.scriptKind === 1 || file.scriptKind === 2) && !file.checkJsDirective && checkJs === void 0;\n  }\n  function isStatementWithLocals(node) {\n    switch (node.kind) {\n      case 238:\n      case 266:\n      case 245:\n      case 246:\n      case 247:\n        return true;\n    }\n    return false;\n  }\n  function getStartPositionOfLine(line, sourceFile) {\n    Debug.assert(line >= 0);\n    return getLineStarts(sourceFile)[line];\n  }\n  function nodePosToString(node) {\n    const file = getSourceFileOfNode(node);\n    const loc = getLineAndCharacterOfPosition(file, node.pos);\n    return `${file.fileName}(${loc.line + 1},${loc.character + 1})`;\n  }\n  function getEndLinePosition(line, sourceFile) {\n    Debug.assert(line >= 0);\n    const lineStarts = getLineStarts(sourceFile);\n    const lineIndex = line;\n    const sourceText = sourceFile.text;\n    if (lineIndex + 1 === lineStarts.length) {\n      return sourceText.length - 1;\n    } else {\n      const start = lineStarts[lineIndex];\n      let pos = lineStarts[lineIndex + 1] - 1;\n      Debug.assert(isLineBreak(sourceText.charCodeAt(pos)));\n      while (start <= pos && isLineBreak(sourceText.charCodeAt(pos))) {\n        pos--;\n      }\n      return pos;\n    }\n  }\n  function isFileLevelUniqueName(sourceFile, name, hasGlobalName) {\n    return !(hasGlobalName && hasGlobalName(name)) && !sourceFile.identifiers.has(name);\n  }\n  function nodeIsMissing(node) {\n    if (node === void 0) {\n      return true;\n    }\n    return node.pos === node.end && node.pos >= 0 && node.kind !== 1;\n  }\n  function nodeIsPresent(node) {\n    return !nodeIsMissing(node);\n  }\n  function isGrammarError(parent2, child) {\n    if (isTypeParameterDeclaration(parent2))\n      return child === parent2.expression;\n    if (isClassStaticBlockDeclaration(parent2))\n      return child === parent2.modifiers;\n    if (isPropertySignature(parent2))\n      return child === parent2.initializer;\n    if (isPropertyDeclaration(parent2))\n      return child === parent2.questionToken && isAutoAccessorPropertyDeclaration(parent2);\n    if (isPropertyAssignment(parent2))\n      return child === parent2.modifiers || child === parent2.questionToken || child === parent2.exclamationToken || isGrammarErrorElement(parent2.modifiers, child, isModifierLike);\n    if (isShorthandPropertyAssignment(parent2))\n      return child === parent2.equalsToken || child === parent2.modifiers || child === parent2.questionToken || child === parent2.exclamationToken || isGrammarErrorElement(parent2.modifiers, child, isModifierLike);\n    if (isMethodDeclaration(parent2))\n      return child === parent2.exclamationToken;\n    if (isConstructorDeclaration(parent2))\n      return child === parent2.typeParameters || child === parent2.type || isGrammarErrorElement(parent2.typeParameters, child, isTypeParameterDeclaration);\n    if (isGetAccessorDeclaration(parent2))\n      return child === parent2.typeParameters || isGrammarErrorElement(parent2.typeParameters, child, isTypeParameterDeclaration);\n    if (isSetAccessorDeclaration(parent2))\n      return child === parent2.typeParameters || child === parent2.type || isGrammarErrorElement(parent2.typeParameters, child, isTypeParameterDeclaration);\n    if (isNamespaceExportDeclaration(parent2))\n      return child === parent2.modifiers || isGrammarErrorElement(parent2.modifiers, child, isModifierLike);\n    return false;\n  }\n  function isGrammarErrorElement(nodeArray, child, isElement) {\n    if (!nodeArray || isArray(child) || !isElement(child))\n      return false;\n    return contains(nodeArray, child);\n  }\n  function insertStatementsAfterPrologue(to, from, isPrologueDirective2) {\n    if (from === void 0 || from.length === 0)\n      return to;\n    let statementIndex = 0;\n    for (; statementIndex < to.length; ++statementIndex) {\n      if (!isPrologueDirective2(to[statementIndex])) {\n        break;\n      }\n    }\n    to.splice(statementIndex, 0, ...from);\n    return to;\n  }\n  function insertStatementAfterPrologue(to, statement, isPrologueDirective2) {\n    if (statement === void 0)\n      return to;\n    let statementIndex = 0;\n    for (; statementIndex < to.length; ++statementIndex) {\n      if (!isPrologueDirective2(to[statementIndex])) {\n        break;\n      }\n    }\n    to.splice(statementIndex, 0, statement);\n    return to;\n  }\n  function isAnyPrologueDirective(node) {\n    return isPrologueDirective(node) || !!(getEmitFlags(node) & 2097152);\n  }\n  function insertStatementsAfterStandardPrologue(to, from) {\n    return insertStatementsAfterPrologue(to, from, isPrologueDirective);\n  }\n  function insertStatementsAfterCustomPrologue(to, from) {\n    return insertStatementsAfterPrologue(to, from, isAnyPrologueDirective);\n  }\n  function insertStatementAfterStandardPrologue(to, statement) {\n    return insertStatementAfterPrologue(to, statement, isPrologueDirective);\n  }\n  function insertStatementAfterCustomPrologue(to, statement) {\n    return insertStatementAfterPrologue(to, statement, isAnyPrologueDirective);\n  }\n  function isRecognizedTripleSlashComment(text, commentPos, commentEnd) {\n    if (text.charCodeAt(commentPos + 1) === 47 && commentPos + 2 < commentEnd && text.charCodeAt(commentPos + 2) === 47) {\n      const textSubStr = text.substring(commentPos, commentEnd);\n      return fullTripleSlashReferencePathRegEx.test(textSubStr) || fullTripleSlashAMDReferencePathRegEx.test(textSubStr) || fullTripleSlashReferenceTypeReferenceDirectiveRegEx.test(textSubStr) || defaultLibReferenceRegEx.test(textSubStr) ? true : false;\n    }\n    return false;\n  }\n  function isPinnedComment(text, start) {\n    return text.charCodeAt(start + 1) === 42 && text.charCodeAt(start + 2) === 33;\n  }\n  function createCommentDirectivesMap(sourceFile, commentDirectives) {\n    const directivesByLine = new Map(commentDirectives.map((commentDirective) => [\n      `${getLineAndCharacterOfPosition(sourceFile, commentDirective.range.end).line}`,\n      commentDirective\n    ]));\n    const usedLines = /* @__PURE__ */ new Map();\n    return { getUnusedExpectations, markUsed };\n    function getUnusedExpectations() {\n      return arrayFrom(directivesByLine.entries()).filter(([line, directive]) => directive.type === 0 && !usedLines.get(line)).map(([_, directive]) => directive);\n    }\n    function markUsed(line) {\n      if (!directivesByLine.has(`${line}`)) {\n        return false;\n      }\n      usedLines.set(`${line}`, true);\n      return true;\n    }\n  }\n  function getTokenPosOfNode(node, sourceFile, includeJsDoc) {\n    if (nodeIsMissing(node)) {\n      return node.pos;\n    }\n    if (isJSDocNode(node) || node.kind === 11) {\n      return skipTrivia((sourceFile || getSourceFileOfNode(node)).text, node.pos, false, true);\n    }\n    if (includeJsDoc && hasJSDocNodes(node)) {\n      return getTokenPosOfNode(node.jsDoc[0], sourceFile);\n    }\n    if (node.kind === 354 && node._children.length > 0) {\n      return getTokenPosOfNode(node._children[0], sourceFile, includeJsDoc);\n    }\n    return skipTrivia((sourceFile || getSourceFileOfNode(node)).text, node.pos, false, false, isInJSDoc(node));\n  }\n  function getNonDecoratorTokenPosOfNode(node, sourceFile) {\n    const lastDecorator = !nodeIsMissing(node) && canHaveModifiers(node) ? findLast(node.modifiers, isDecorator) : void 0;\n    if (!lastDecorator) {\n      return getTokenPosOfNode(node, sourceFile);\n    }\n    return skipTrivia((sourceFile || getSourceFileOfNode(node)).text, lastDecorator.end);\n  }\n  function getSourceTextOfNodeFromSourceFile(sourceFile, node, includeTrivia = false) {\n    return getTextOfNodeFromSourceText(sourceFile.text, node, includeTrivia);\n  }\n  function isJSDocTypeExpressionOrChild(node) {\n    return !!findAncestor(node, isJSDocTypeExpression);\n  }\n  function isExportNamespaceAsDefaultDeclaration(node) {\n    return !!(isExportDeclaration(node) && node.exportClause && isNamespaceExport(node.exportClause) && node.exportClause.name.escapedText === \"default\");\n  }\n  function getTextOfNodeFromSourceText(sourceText, node, includeTrivia = false) {\n    if (nodeIsMissing(node)) {\n      return \"\";\n    }\n    let text = sourceText.substring(includeTrivia ? node.pos : skipTrivia(sourceText, node.pos), node.end);\n    if (isJSDocTypeExpressionOrChild(node)) {\n      text = text.split(/\\r\\n|\\n|\\r/).map((line) => trimStringStart(line.replace(/^\\s*\\*/, \"\"))).join(\"\\n\");\n    }\n    return text;\n  }\n  function getTextOfNode(node, includeTrivia = false) {\n    return getSourceTextOfNodeFromSourceFile(getSourceFileOfNode(node), node, includeTrivia);\n  }\n  function getPos(range) {\n    return range.pos;\n  }\n  function indexOfNode(nodeArray, node) {\n    return binarySearch(nodeArray, node, getPos, compareValues);\n  }\n  function getEmitFlags(node) {\n    const emitNode = node.emitNode;\n    return emitNode && emitNode.flags || 0;\n  }\n  function getInternalEmitFlags(node) {\n    const emitNode = node.emitNode;\n    return emitNode && emitNode.internalFlags || 0;\n  }\n  function getScriptTargetFeatures() {\n    return new Map(Object.entries({\n      Array: new Map(Object.entries({\n        es2015: [\n          \"find\",\n          \"findIndex\",\n          \"fill\",\n          \"copyWithin\",\n          \"entries\",\n          \"keys\",\n          \"values\"\n        ],\n        es2016: [\n          \"includes\"\n        ],\n        es2019: [\n          \"flat\",\n          \"flatMap\"\n        ],\n        es2022: [\n          \"at\"\n        ],\n        es2023: [\n          \"findLastIndex\",\n          \"findLast\"\n        ]\n      })),\n      Iterator: new Map(Object.entries({\n        es2015: emptyArray\n      })),\n      AsyncIterator: new Map(Object.entries({\n        es2015: emptyArray\n      })),\n      Atomics: new Map(Object.entries({\n        es2017: emptyArray\n      })),\n      SharedArrayBuffer: new Map(Object.entries({\n        es2017: emptyArray\n      })),\n      AsyncIterable: new Map(Object.entries({\n        es2018: emptyArray\n      })),\n      AsyncIterableIterator: new Map(Object.entries({\n        es2018: emptyArray\n      })),\n      AsyncGenerator: new Map(Object.entries({\n        es2018: emptyArray\n      })),\n      AsyncGeneratorFunction: new Map(Object.entries({\n        es2018: emptyArray\n      })),\n      RegExp: new Map(Object.entries({\n        es2015: [\n          \"flags\",\n          \"sticky\",\n          \"unicode\"\n        ],\n        es2018: [\n          \"dotAll\"\n        ]\n      })),\n      Reflect: new Map(Object.entries({\n        es2015: [\n          \"apply\",\n          \"construct\",\n          \"defineProperty\",\n          \"deleteProperty\",\n          \"get\",\n          \" getOwnPropertyDescriptor\",\n          \"getPrototypeOf\",\n          \"has\",\n          \"isExtensible\",\n          \"ownKeys\",\n          \"preventExtensions\",\n          \"set\",\n          \"setPrototypeOf\"\n        ]\n      })),\n      ArrayConstructor: new Map(Object.entries({\n        es2015: [\n          \"from\",\n          \"of\"\n        ]\n      })),\n      ObjectConstructor: new Map(Object.entries({\n        es2015: [\n          \"assign\",\n          \"getOwnPropertySymbols\",\n          \"keys\",\n          \"is\",\n          \"setPrototypeOf\"\n        ],\n        es2017: [\n          \"values\",\n          \"entries\",\n          \"getOwnPropertyDescriptors\"\n        ],\n        es2019: [\n          \"fromEntries\"\n        ],\n        es2022: [\n          \"hasOwn\"\n        ]\n      })),\n      NumberConstructor: new Map(Object.entries({\n        es2015: [\n          \"isFinite\",\n          \"isInteger\",\n          \"isNaN\",\n          \"isSafeInteger\",\n          \"parseFloat\",\n          \"parseInt\"\n        ]\n      })),\n      Math: new Map(Object.entries({\n        es2015: [\n          \"clz32\",\n          \"imul\",\n          \"sign\",\n          \"log10\",\n          \"log2\",\n          \"log1p\",\n          \"expm1\",\n          \"cosh\",\n          \"sinh\",\n          \"tanh\",\n          \"acosh\",\n          \"asinh\",\n          \"atanh\",\n          \"hypot\",\n          \"trunc\",\n          \"fround\",\n          \"cbrt\"\n        ]\n      })),\n      Map: new Map(Object.entries({\n        es2015: [\n          \"entries\",\n          \"keys\",\n          \"values\"\n        ]\n      })),\n      Set: new Map(Object.entries({\n        es2015: [\n          \"entries\",\n          \"keys\",\n          \"values\"\n        ]\n      })),\n      PromiseConstructor: new Map(Object.entries({\n        es2015: [\n          \"all\",\n          \"race\",\n          \"reject\",\n          \"resolve\"\n        ],\n        es2020: [\n          \"allSettled\"\n        ],\n        es2021: [\n          \"any\"\n        ]\n      })),\n      Symbol: new Map(Object.entries({\n        es2015: [\n          \"for\",\n          \"keyFor\"\n        ],\n        es2019: [\n          \"description\"\n        ]\n      })),\n      WeakMap: new Map(Object.entries({\n        es2015: [\n          \"entries\",\n          \"keys\",\n          \"values\"\n        ]\n      })),\n      WeakSet: new Map(Object.entries({\n        es2015: [\n          \"entries\",\n          \"keys\",\n          \"values\"\n        ]\n      })),\n      String: new Map(Object.entries({\n        es2015: [\n          \"codePointAt\",\n          \"includes\",\n          \"endsWith\",\n          \"normalize\",\n          \"repeat\",\n          \"startsWith\",\n          \"anchor\",\n          \"big\",\n          \"blink\",\n          \"bold\",\n          \"fixed\",\n          \"fontcolor\",\n          \"fontsize\",\n          \"italics\",\n          \"link\",\n          \"small\",\n          \"strike\",\n          \"sub\",\n          \"sup\"\n        ],\n        es2017: [\n          \"padStart\",\n          \"padEnd\"\n        ],\n        es2019: [\n          \"trimStart\",\n          \"trimEnd\",\n          \"trimLeft\",\n          \"trimRight\"\n        ],\n        es2020: [\n          \"matchAll\"\n        ],\n        es2021: [\n          \"replaceAll\"\n        ],\n        es2022: [\n          \"at\"\n        ]\n      })),\n      StringConstructor: new Map(Object.entries({\n        es2015: [\n          \"fromCodePoint\",\n          \"raw\"\n        ]\n      })),\n      DateTimeFormat: new Map(Object.entries({\n        es2017: [\n          \"formatToParts\"\n        ]\n      })),\n      Promise: new Map(Object.entries({\n        es2015: emptyArray,\n        es2018: [\n          \"finally\"\n        ]\n      })),\n      RegExpMatchArray: new Map(Object.entries({\n        es2018: [\n          \"groups\"\n        ]\n      })),\n      RegExpExecArray: new Map(Object.entries({\n        es2018: [\n          \"groups\"\n        ]\n      })),\n      Intl: new Map(Object.entries({\n        es2018: [\n          \"PluralRules\"\n        ]\n      })),\n      NumberFormat: new Map(Object.entries({\n        es2018: [\n          \"formatToParts\"\n        ]\n      })),\n      SymbolConstructor: new Map(Object.entries({\n        es2020: [\n          \"matchAll\"\n        ]\n      })),\n      DataView: new Map(Object.entries({\n        es2020: [\n          \"setBigInt64\",\n          \"setBigUint64\",\n          \"getBigInt64\",\n          \"getBigUint64\"\n        ]\n      })),\n      BigInt: new Map(Object.entries({\n        es2020: emptyArray\n      })),\n      RelativeTimeFormat: new Map(Object.entries({\n        es2020: [\n          \"format\",\n          \"formatToParts\",\n          \"resolvedOptions\"\n        ]\n      })),\n      Int8Array: new Map(Object.entries({\n        es2022: [\n          \"at\"\n        ],\n        es2023: [\n          \"findLastIndex\",\n          \"findLast\"\n        ]\n      })),\n      Uint8Array: new Map(Object.entries({\n        es2022: [\n          \"at\"\n        ],\n        es2023: [\n          \"findLastIndex\",\n          \"findLast\"\n        ]\n      })),\n      Uint8ClampedArray: new Map(Object.entries({\n        es2022: [\n          \"at\"\n        ],\n        es2023: [\n          \"findLastIndex\",\n          \"findLast\"\n        ]\n      })),\n      Int16Array: new Map(Object.entries({\n        es2022: [\n          \"at\"\n        ],\n        es2023: [\n          \"findLastIndex\",\n          \"findLast\"\n        ]\n      })),\n      Uint16Array: new Map(Object.entries({\n        es2022: [\n          \"at\"\n        ],\n        es2023: [\n          \"findLastIndex\",\n          \"findLast\"\n        ]\n      })),\n      Int32Array: new Map(Object.entries({\n        es2022: [\n          \"at\"\n        ],\n        es2023: [\n          \"findLastIndex\",\n          \"findLast\"\n        ]\n      })),\n      Uint32Array: new Map(Object.entries({\n        es2022: [\n          \"at\"\n        ],\n        es2023: [\n          \"findLastIndex\",\n          \"findLast\"\n        ]\n      })),\n      Float32Array: new Map(Object.entries({\n        es2022: [\n          \"at\"\n        ],\n        es2023: [\n          \"findLastIndex\",\n          \"findLast\"\n        ]\n      })),\n      Float64Array: new Map(Object.entries({\n        es2022: [\n          \"at\"\n        ],\n        es2023: [\n          \"findLastIndex\",\n          \"findLast\"\n        ]\n      })),\n      BigInt64Array: new Map(Object.entries({\n        es2020: emptyArray,\n        es2022: [\n          \"at\"\n        ],\n        es2023: [\n          \"findLastIndex\",\n          \"findLast\"\n        ]\n      })),\n      BigUint64Array: new Map(Object.entries({\n        es2020: emptyArray,\n        es2022: [\n          \"at\"\n        ],\n        es2023: [\n          \"findLastIndex\",\n          \"findLast\"\n        ]\n      })),\n      Error: new Map(Object.entries({\n        es2022: [\n          \"cause\"\n        ]\n      }))\n    }));\n  }\n  function getLiteralText(node, sourceFile, flags) {\n    var _a2;\n    if (sourceFile && canUseOriginalText(node, flags)) {\n      return getSourceTextOfNodeFromSourceFile(sourceFile, node);\n    }\n    switch (node.kind) {\n      case 10: {\n        const escapeText = flags & 2 ? escapeJsxAttributeString : flags & 1 || getEmitFlags(node) & 33554432 ? escapeString : escapeNonAsciiString;\n        if (node.singleQuote) {\n          return \"'\" + escapeText(node.text, 39) + \"'\";\n        } else {\n          return '\"' + escapeText(node.text, 34) + '\"';\n        }\n      }\n      case 14:\n      case 15:\n      case 16:\n      case 17: {\n        const escapeText = flags & 1 || getEmitFlags(node) & 33554432 ? escapeString : escapeNonAsciiString;\n        const rawText = (_a2 = node.rawText) != null ? _a2 : escapeTemplateSubstitution(escapeText(node.text, 96));\n        switch (node.kind) {\n          case 14:\n            return \"`\" + rawText + \"`\";\n          case 15:\n            return \"`\" + rawText + \"${\";\n          case 16:\n            return \"}\" + rawText + \"${\";\n          case 17:\n            return \"}\" + rawText + \"`\";\n        }\n        break;\n      }\n      case 8:\n      case 9:\n        return node.text;\n      case 13:\n        if (flags & 4 && node.isUnterminated) {\n          return node.text + (node.text.charCodeAt(node.text.length - 1) === 92 ? \" /\" : \"/\");\n        }\n        return node.text;\n    }\n    return Debug.fail(`Literal kind '${node.kind}' not accounted for.`);\n  }\n  function canUseOriginalText(node, flags) {\n    if (nodeIsSynthesized(node) || !node.parent || flags & 4 && node.isUnterminated) {\n      return false;\n    }\n    if (isNumericLiteral(node) && node.numericLiteralFlags & 512) {\n      return !!(flags & 8);\n    }\n    return !isBigIntLiteral(node);\n  }\n  function getTextOfConstantValue(value) {\n    return isString(value) ? '\"' + escapeNonAsciiString(value) + '\"' : \"\" + value;\n  }\n  function makeIdentifierFromModuleName(moduleName) {\n    return getBaseFileName(moduleName).replace(/^(\\d)/, \"_$1\").replace(/\\W/g, \"_\");\n  }\n  function isBlockOrCatchScoped(declaration) {\n    return (getCombinedNodeFlags(declaration) & 3) !== 0 || isCatchClauseVariableDeclarationOrBindingElement(declaration);\n  }\n  function isCatchClauseVariableDeclarationOrBindingElement(declaration) {\n    const node = getRootDeclaration(declaration);\n    return node.kind === 257 && node.parent.kind === 295;\n  }\n  function isAmbientModule(node) {\n    return isModuleDeclaration(node) && (node.name.kind === 10 || isGlobalScopeAugmentation(node));\n  }\n  function isModuleWithStringLiteralName(node) {\n    return isModuleDeclaration(node) && node.name.kind === 10;\n  }\n  function isNonGlobalAmbientModule(node) {\n    return isModuleDeclaration(node) && isStringLiteral(node.name);\n  }\n  function isEffectiveModuleDeclaration(node) {\n    return isModuleDeclaration(node) || isIdentifier(node);\n  }\n  function isShorthandAmbientModuleSymbol(moduleSymbol) {\n    return isShorthandAmbientModule(moduleSymbol.valueDeclaration);\n  }\n  function isShorthandAmbientModule(node) {\n    return !!node && node.kind === 264 && !node.body;\n  }\n  function isBlockScopedContainerTopLevel(node) {\n    return node.kind === 308 || node.kind === 264 || isFunctionLikeOrClassStaticBlockDeclaration(node);\n  }\n  function isGlobalScopeAugmentation(module2) {\n    return !!(module2.flags & 1024);\n  }\n  function isExternalModuleAugmentation(node) {\n    return isAmbientModule(node) && isModuleAugmentationExternal(node);\n  }\n  function isModuleAugmentationExternal(node) {\n    switch (node.parent.kind) {\n      case 308:\n        return isExternalModule(node.parent);\n      case 265:\n        return isAmbientModule(node.parent.parent) && isSourceFile(node.parent.parent.parent) && !isExternalModule(node.parent.parent.parent);\n    }\n    return false;\n  }\n  function getNonAugmentationDeclaration(symbol) {\n    var _a2;\n    return (_a2 = symbol.declarations) == null ? void 0 : _a2.find((d) => !isExternalModuleAugmentation(d) && !(isModuleDeclaration(d) && isGlobalScopeAugmentation(d)));\n  }\n  function isCommonJSContainingModuleKind(kind) {\n    return kind === 1 || kind === 100 || kind === 199;\n  }\n  function isEffectiveExternalModule(node, compilerOptions) {\n    return isExternalModule(node) || getIsolatedModules(compilerOptions) || isCommonJSContainingModuleKind(getEmitModuleKind(compilerOptions)) && !!node.commonJsModuleIndicator;\n  }\n  function isEffectiveStrictModeSourceFile(node, compilerOptions) {\n    switch (node.scriptKind) {\n      case 1:\n      case 3:\n      case 2:\n      case 4:\n        break;\n      default:\n        return false;\n    }\n    if (node.isDeclarationFile) {\n      return false;\n    }\n    if (getStrictOptionValue(compilerOptions, \"alwaysStrict\")) {\n      return true;\n    }\n    if (startsWithUseStrict(node.statements)) {\n      return true;\n    }\n    if (isExternalModule(node) || getIsolatedModules(compilerOptions)) {\n      if (getEmitModuleKind(compilerOptions) >= 5) {\n        return true;\n      }\n      return !compilerOptions.noImplicitUseStrict;\n    }\n    return false;\n  }\n  function isAmbientPropertyDeclaration(node) {\n    return !!(node.flags & 16777216) || hasSyntacticModifier(node, 2);\n  }\n  function isBlockScope(node, parentNode) {\n    switch (node.kind) {\n      case 308:\n      case 266:\n      case 295:\n      case 264:\n      case 245:\n      case 246:\n      case 247:\n      case 173:\n      case 171:\n      case 174:\n      case 175:\n      case 259:\n      case 215:\n      case 216:\n      case 169:\n      case 172:\n        return true;\n      case 238:\n        return !isFunctionLikeOrClassStaticBlockDeclaration(parentNode);\n    }\n    return false;\n  }\n  function isDeclarationWithTypeParameters(node) {\n    Debug.type(node);\n    switch (node.kind) {\n      case 341:\n      case 349:\n      case 326:\n        return true;\n      default:\n        assertType(node);\n        return isDeclarationWithTypeParameterChildren(node);\n    }\n  }\n  function isDeclarationWithTypeParameterChildren(node) {\n    Debug.type(node);\n    switch (node.kind) {\n      case 176:\n      case 177:\n      case 170:\n      case 178:\n      case 181:\n      case 182:\n      case 320:\n      case 260:\n      case 228:\n      case 261:\n      case 262:\n      case 348:\n      case 259:\n      case 171:\n      case 173:\n      case 174:\n      case 175:\n      case 215:\n      case 216:\n        return true;\n      default:\n        assertType(node);\n        return false;\n    }\n  }\n  function isAnyImportSyntax(node) {\n    switch (node.kind) {\n      case 269:\n      case 268:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function isAnyImportOrBareOrAccessedRequire(node) {\n    return isAnyImportSyntax(node) || isVariableDeclarationInitializedToBareOrAccessedRequire(node);\n  }\n  function isLateVisibilityPaintedStatement(node) {\n    switch (node.kind) {\n      case 269:\n      case 268:\n      case 240:\n      case 260:\n      case 259:\n      case 264:\n      case 262:\n      case 261:\n      case 263:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function hasPossibleExternalModuleReference(node) {\n    return isAnyImportOrReExport(node) || isModuleDeclaration(node) || isImportTypeNode(node) || isImportCall(node);\n  }\n  function isAnyImportOrReExport(node) {\n    return isAnyImportSyntax(node) || isExportDeclaration(node);\n  }\n  function getEnclosingBlockScopeContainer(node) {\n    return findAncestor(node.parent, (current) => isBlockScope(current, current.parent));\n  }\n  function forEachEnclosingBlockScopeContainer(node, cb) {\n    let container = getEnclosingBlockScopeContainer(node);\n    while (container) {\n      cb(container);\n      container = getEnclosingBlockScopeContainer(container);\n    }\n  }\n  function declarationNameToString(name) {\n    return !name || getFullWidth(name) === 0 ? \"(Missing)\" : getTextOfNode(name);\n  }\n  function getNameFromIndexInfo(info) {\n    return info.declaration ? declarationNameToString(info.declaration.parameters[0].name) : void 0;\n  }\n  function isComputedNonLiteralName(name) {\n    return name.kind === 164 && !isStringOrNumericLiteralLike(name.expression);\n  }\n  function tryGetTextOfPropertyName(name) {\n    var _a2;\n    switch (name.kind) {\n      case 79:\n      case 80:\n        return ((_a2 = name.emitNode) == null ? void 0 : _a2.autoGenerate) ? void 0 : name.escapedText;\n      case 10:\n      case 8:\n      case 14:\n        return escapeLeadingUnderscores(name.text);\n      case 164:\n        if (isStringOrNumericLiteralLike(name.expression))\n          return escapeLeadingUnderscores(name.expression.text);\n        return void 0;\n      default:\n        return Debug.assertNever(name);\n    }\n  }\n  function getTextOfPropertyName(name) {\n    return Debug.checkDefined(tryGetTextOfPropertyName(name));\n  }\n  function entityNameToString(name) {\n    switch (name.kind) {\n      case 108:\n        return \"this\";\n      case 80:\n      case 79:\n        return getFullWidth(name) === 0 ? idText(name) : getTextOfNode(name);\n      case 163:\n        return entityNameToString(name.left) + \".\" + entityNameToString(name.right);\n      case 208:\n        if (isIdentifier(name.name) || isPrivateIdentifier(name.name)) {\n          return entityNameToString(name.expression) + \".\" + entityNameToString(name.name);\n        } else {\n          return Debug.assertNever(name.name);\n        }\n      case 314:\n        return entityNameToString(name.left) + entityNameToString(name.right);\n      default:\n        return Debug.assertNever(name);\n    }\n  }\n  function createDiagnosticForNode(node, message, arg0, arg1, arg2, arg3) {\n    const sourceFile = getSourceFileOfNode(node);\n    return createDiagnosticForNodeInSourceFile(sourceFile, node, message, arg0, arg1, arg2, arg3);\n  }\n  function createDiagnosticForNodeArray(sourceFile, nodes, message, arg0, arg1, arg2, arg3) {\n    const start = skipTrivia(sourceFile.text, nodes.pos);\n    return createFileDiagnostic(sourceFile, start, nodes.end - start, message, arg0, arg1, arg2, arg3);\n  }\n  function createDiagnosticForNodeInSourceFile(sourceFile, node, message, arg0, arg1, arg2, arg3) {\n    const span = getErrorSpanForNode(sourceFile, node);\n    return createFileDiagnostic(sourceFile, span.start, span.length, message, arg0, arg1, arg2, arg3);\n  }\n  function createDiagnosticForNodeFromMessageChain(sourceFile, node, messageChain, relatedInformation) {\n    const span = getErrorSpanForNode(sourceFile, node);\n    return createFileDiagnosticFromMessageChain(sourceFile, span.start, span.length, messageChain, relatedInformation);\n  }\n  function createDiagnosticForNodeArrayFromMessageChain(sourceFile, nodes, messageChain, relatedInformation) {\n    const start = skipTrivia(sourceFile.text, nodes.pos);\n    return createFileDiagnosticFromMessageChain(sourceFile, start, nodes.end - start, messageChain, relatedInformation);\n  }\n  function assertDiagnosticLocation(file, start, length2) {\n    Debug.assertGreaterThanOrEqual(start, 0);\n    Debug.assertGreaterThanOrEqual(length2, 0);\n    if (file) {\n      Debug.assertLessThanOrEqual(start, file.text.length);\n      Debug.assertLessThanOrEqual(start + length2, file.text.length);\n    }\n  }\n  function createFileDiagnosticFromMessageChain(file, start, length2, messageChain, relatedInformation) {\n    assertDiagnosticLocation(file, start, length2);\n    return {\n      file,\n      start,\n      length: length2,\n      code: messageChain.code,\n      category: messageChain.category,\n      messageText: messageChain.next ? messageChain : messageChain.messageText,\n      relatedInformation\n    };\n  }\n  function createDiagnosticForFileFromMessageChain(sourceFile, messageChain, relatedInformation) {\n    return {\n      file: sourceFile,\n      start: 0,\n      length: 0,\n      code: messageChain.code,\n      category: messageChain.category,\n      messageText: messageChain.next ? messageChain : messageChain.messageText,\n      relatedInformation\n    };\n  }\n  function createDiagnosticMessageChainFromDiagnostic(diagnostic) {\n    return typeof diagnostic.messageText === \"string\" ? {\n      code: diagnostic.code,\n      category: diagnostic.category,\n      messageText: diagnostic.messageText,\n      next: diagnostic.next\n    } : diagnostic.messageText;\n  }\n  function createDiagnosticForRange(sourceFile, range, message) {\n    return {\n      file: sourceFile,\n      start: range.pos,\n      length: range.end - range.pos,\n      code: message.code,\n      category: message.category,\n      messageText: message.message\n    };\n  }\n  function getSpanOfTokenAtPosition(sourceFile, pos) {\n    const scanner2 = createScanner(sourceFile.languageVersion, true, sourceFile.languageVariant, sourceFile.text, void 0, pos);\n    scanner2.scan();\n    const start = scanner2.getTokenPos();\n    return createTextSpanFromBounds(start, scanner2.getTextPos());\n  }\n  function scanTokenAtPosition(sourceFile, pos) {\n    const scanner2 = createScanner(sourceFile.languageVersion, true, sourceFile.languageVariant, sourceFile.text, void 0, pos);\n    scanner2.scan();\n    return scanner2.getToken();\n  }\n  function getErrorSpanForArrowFunction(sourceFile, node) {\n    const pos = skipTrivia(sourceFile.text, node.pos);\n    if (node.body && node.body.kind === 238) {\n      const { line: startLine } = getLineAndCharacterOfPosition(sourceFile, node.body.pos);\n      const { line: endLine } = getLineAndCharacterOfPosition(sourceFile, node.body.end);\n      if (startLine < endLine) {\n        return createTextSpan(pos, getEndLinePosition(startLine, sourceFile) - pos + 1);\n      }\n    }\n    return createTextSpanFromBounds(pos, node.end);\n  }\n  function getErrorSpanForNode(sourceFile, node) {\n    let errorNode = node;\n    switch (node.kind) {\n      case 308:\n        const pos2 = skipTrivia(sourceFile.text, 0, false);\n        if (pos2 === sourceFile.text.length) {\n          return createTextSpan(0, 0);\n        }\n        return getSpanOfTokenAtPosition(sourceFile, pos2);\n      case 257:\n      case 205:\n      case 260:\n      case 228:\n      case 261:\n      case 264:\n      case 263:\n      case 302:\n      case 259:\n      case 215:\n      case 171:\n      case 174:\n      case 175:\n      case 262:\n      case 169:\n      case 168:\n      case 271:\n        errorNode = node.name;\n        break;\n      case 216:\n        return getErrorSpanForArrowFunction(sourceFile, node);\n      case 292:\n      case 293:\n        const start = skipTrivia(sourceFile.text, node.pos);\n        const end = node.statements.length > 0 ? node.statements[0].pos : node.end;\n        return createTextSpanFromBounds(start, end);\n    }\n    if (errorNode === void 0) {\n      return getSpanOfTokenAtPosition(sourceFile, node.pos);\n    }\n    Debug.assert(!isJSDoc(errorNode));\n    const isMissing = nodeIsMissing(errorNode);\n    const pos = isMissing || isJsxText(node) ? errorNode.pos : skipTrivia(sourceFile.text, errorNode.pos);\n    if (isMissing) {\n      Debug.assert(pos === errorNode.pos, \"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809\");\n      Debug.assert(pos === errorNode.end, \"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809\");\n    } else {\n      Debug.assert(pos >= errorNode.pos, \"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809\");\n      Debug.assert(pos <= errorNode.end, \"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809\");\n    }\n    return createTextSpanFromBounds(pos, errorNode.end);\n  }\n  function isExternalOrCommonJsModule(file) {\n    return (file.externalModuleIndicator || file.commonJsModuleIndicator) !== void 0;\n  }\n  function isJsonSourceFile(file) {\n    return file.scriptKind === 6;\n  }\n  function isEnumConst(node) {\n    return !!(getCombinedModifierFlags(node) & 2048);\n  }\n  function isDeclarationReadonly(declaration) {\n    return !!(getCombinedModifierFlags(declaration) & 64 && !isParameterPropertyDeclaration(declaration, declaration.parent));\n  }\n  function isVarConst(node) {\n    return !!(getCombinedNodeFlags(node) & 2);\n  }\n  function isLet(node) {\n    return !!(getCombinedNodeFlags(node) & 1);\n  }\n  function isSuperCall(n) {\n    return n.kind === 210 && n.expression.kind === 106;\n  }\n  function isImportCall(n) {\n    return n.kind === 210 && n.expression.kind === 100;\n  }\n  function isImportMeta(n) {\n    return isMetaProperty(n) && n.keywordToken === 100 && n.name.escapedText === \"meta\";\n  }\n  function isLiteralImportTypeNode(n) {\n    return isImportTypeNode(n) && isLiteralTypeNode(n.argument) && isStringLiteral(n.argument.literal);\n  }\n  function isPrologueDirective(node) {\n    return node.kind === 241 && node.expression.kind === 10;\n  }\n  function isCustomPrologue(node) {\n    return !!(getEmitFlags(node) & 2097152);\n  }\n  function isHoistedFunction(node) {\n    return isCustomPrologue(node) && isFunctionDeclaration(node);\n  }\n  function isHoistedVariable(node) {\n    return isIdentifier(node.name) && !node.initializer;\n  }\n  function isHoistedVariableStatement(node) {\n    return isCustomPrologue(node) && isVariableStatement(node) && every(node.declarationList.declarations, isHoistedVariable);\n  }\n  function getLeadingCommentRangesOfNode(node, sourceFileOfNode) {\n    return node.kind !== 11 ? getLeadingCommentRanges(sourceFileOfNode.text, node.pos) : void 0;\n  }\n  function getJSDocCommentRanges(node, text) {\n    const commentRanges = node.kind === 166 || node.kind === 165 || node.kind === 215 || node.kind === 216 || node.kind === 214 || node.kind === 257 || node.kind === 278 ? concatenate(getTrailingCommentRanges(text, node.pos), getLeadingCommentRanges(text, node.pos)) : getLeadingCommentRanges(text, node.pos);\n    return filter(commentRanges, (comment) => text.charCodeAt(comment.pos + 1) === 42 && text.charCodeAt(comment.pos + 2) === 42 && text.charCodeAt(comment.pos + 3) !== 47);\n  }\n  function isPartOfTypeNode(node) {\n    if (179 <= node.kind && node.kind <= 202) {\n      return true;\n    }\n    switch (node.kind) {\n      case 131:\n      case 157:\n      case 148:\n      case 160:\n      case 152:\n      case 134:\n      case 153:\n      case 149:\n      case 155:\n      case 144:\n        return true;\n      case 114:\n        return node.parent.kind !== 219;\n      case 230:\n        return isHeritageClause(node.parent) && !isExpressionWithTypeArgumentsInClassExtendsClause(node);\n      case 165:\n        return node.parent.kind === 197 || node.parent.kind === 192;\n      case 79:\n        if (node.parent.kind === 163 && node.parent.right === node) {\n          node = node.parent;\n        } else if (node.parent.kind === 208 && node.parent.name === node) {\n          node = node.parent;\n        }\n        Debug.assert(node.kind === 79 || node.kind === 163 || node.kind === 208, \"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.\");\n      case 163:\n      case 208:\n      case 108: {\n        const { parent: parent2 } = node;\n        if (parent2.kind === 183) {\n          return false;\n        }\n        if (parent2.kind === 202) {\n          return !parent2.isTypeOf;\n        }\n        if (179 <= parent2.kind && parent2.kind <= 202) {\n          return true;\n        }\n        switch (parent2.kind) {\n          case 230:\n            return isHeritageClause(parent2.parent) && !isExpressionWithTypeArgumentsInClassExtendsClause(parent2);\n          case 165:\n            return node === parent2.constraint;\n          case 348:\n            return node === parent2.constraint;\n          case 169:\n          case 168:\n          case 166:\n          case 257:\n            return node === parent2.type;\n          case 259:\n          case 215:\n          case 216:\n          case 173:\n          case 171:\n          case 170:\n          case 174:\n          case 175:\n            return node === parent2.type;\n          case 176:\n          case 177:\n          case 178:\n            return node === parent2.type;\n          case 213:\n            return node === parent2.type;\n          case 210:\n          case 211:\n            return contains(parent2.typeArguments, node);\n          case 212:\n            return false;\n        }\n      }\n    }\n    return false;\n  }\n  function isChildOfNodeWithKind(node, kind) {\n    while (node) {\n      if (node.kind === kind) {\n        return true;\n      }\n      node = node.parent;\n    }\n    return false;\n  }\n  function forEachReturnStatement(body, visitor) {\n    return traverse(body);\n    function traverse(node) {\n      switch (node.kind) {\n        case 250:\n          return visitor(node);\n        case 266:\n        case 238:\n        case 242:\n        case 243:\n        case 244:\n        case 245:\n        case 246:\n        case 247:\n        case 251:\n        case 252:\n        case 292:\n        case 293:\n        case 253:\n        case 255:\n        case 295:\n          return forEachChild(node, traverse);\n      }\n    }\n  }\n  function forEachYieldExpression(body, visitor) {\n    return traverse(body);\n    function traverse(node) {\n      switch (node.kind) {\n        case 226:\n          visitor(node);\n          const operand = node.expression;\n          if (operand) {\n            traverse(operand);\n          }\n          return;\n        case 263:\n        case 261:\n        case 264:\n        case 262:\n          return;\n        default:\n          if (isFunctionLike(node)) {\n            if (node.name && node.name.kind === 164) {\n              traverse(node.name.expression);\n              return;\n            }\n          } else if (!isPartOfTypeNode(node)) {\n            forEachChild(node, traverse);\n          }\n      }\n    }\n  }\n  function getRestParameterElementType(node) {\n    if (node && node.kind === 185) {\n      return node.elementType;\n    } else if (node && node.kind === 180) {\n      return singleOrUndefined(node.typeArguments);\n    } else {\n      return void 0;\n    }\n  }\n  function getMembersOfDeclaration(node) {\n    switch (node.kind) {\n      case 261:\n      case 260:\n      case 228:\n      case 184:\n        return node.members;\n      case 207:\n        return node.properties;\n    }\n  }\n  function isVariableLike(node) {\n    if (node) {\n      switch (node.kind) {\n        case 205:\n        case 302:\n        case 166:\n        case 299:\n        case 169:\n        case 168:\n        case 300:\n        case 257:\n          return true;\n      }\n    }\n    return false;\n  }\n  function isVariableLikeOrAccessor(node) {\n    return isVariableLike(node) || isAccessor(node);\n  }\n  function isVariableDeclarationInVariableStatement(node) {\n    return node.parent.kind === 258 && node.parent.parent.kind === 240;\n  }\n  function isCommonJsExportedExpression(node) {\n    if (!isInJSFile(node))\n      return false;\n    return isObjectLiteralExpression(node.parent) && isBinaryExpression(node.parent.parent) && getAssignmentDeclarationKind(node.parent.parent) === 2 || isCommonJsExportPropertyAssignment(node.parent);\n  }\n  function isCommonJsExportPropertyAssignment(node) {\n    if (!isInJSFile(node))\n      return false;\n    return isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 1;\n  }\n  function isValidESSymbolDeclaration(node) {\n    return (isVariableDeclaration(node) ? isVarConst(node) && isIdentifier(node.name) && isVariableDeclarationInVariableStatement(node) : isPropertyDeclaration(node) ? hasEffectiveReadonlyModifier(node) && hasStaticModifier(node) : isPropertySignature(node) && hasEffectiveReadonlyModifier(node)) || isCommonJsExportPropertyAssignment(node);\n  }\n  function introducesArgumentsExoticObject(node) {\n    switch (node.kind) {\n      case 171:\n      case 170:\n      case 173:\n      case 174:\n      case 175:\n      case 259:\n      case 215:\n        return true;\n    }\n    return false;\n  }\n  function unwrapInnermostStatementOfLabel(node, beforeUnwrapLabelCallback) {\n    while (true) {\n      if (beforeUnwrapLabelCallback) {\n        beforeUnwrapLabelCallback(node);\n      }\n      if (node.statement.kind !== 253) {\n        return node.statement;\n      }\n      node = node.statement;\n    }\n  }\n  function isFunctionBlock(node) {\n    return node && node.kind === 238 && isFunctionLike(node.parent);\n  }\n  function isObjectLiteralMethod(node) {\n    return node && node.kind === 171 && node.parent.kind === 207;\n  }\n  function isObjectLiteralOrClassExpressionMethodOrAccessor(node) {\n    return (node.kind === 171 || node.kind === 174 || node.kind === 175) && (node.parent.kind === 207 || node.parent.kind === 228);\n  }\n  function isIdentifierTypePredicate(predicate) {\n    return predicate && predicate.kind === 1;\n  }\n  function isThisTypePredicate(predicate) {\n    return predicate && predicate.kind === 0;\n  }\n  function getPropertyAssignment(objectLiteral, key, key2) {\n    return objectLiteral.properties.filter((property) => {\n      if (property.kind === 299) {\n        const propName = tryGetTextOfPropertyName(property.name);\n        return key === propName || !!key2 && key2 === propName;\n      }\n      return false;\n    });\n  }\n  function getPropertyArrayElementValue(objectLiteral, propKey, elementValue) {\n    return firstDefined(getPropertyAssignment(objectLiteral, propKey), (property) => isArrayLiteralExpression(property.initializer) ? find(property.initializer.elements, (element) => isStringLiteral(element) && element.text === elementValue) : void 0);\n  }\n  function getTsConfigObjectLiteralExpression(tsConfigSourceFile) {\n    if (tsConfigSourceFile && tsConfigSourceFile.statements.length) {\n      const expression = tsConfigSourceFile.statements[0].expression;\n      return tryCast(expression, isObjectLiteralExpression);\n    }\n  }\n  function getTsConfigPropArrayElementValue(tsConfigSourceFile, propKey, elementValue) {\n    return firstDefined(getTsConfigPropArray(tsConfigSourceFile, propKey), (property) => isArrayLiteralExpression(property.initializer) ? find(property.initializer.elements, (element) => isStringLiteral(element) && element.text === elementValue) : void 0);\n  }\n  function getTsConfigPropArray(tsConfigSourceFile, propKey) {\n    const jsonObjectLiteral = getTsConfigObjectLiteralExpression(tsConfigSourceFile);\n    return jsonObjectLiteral ? getPropertyAssignment(jsonObjectLiteral, propKey) : emptyArray;\n  }\n  function getContainingFunction(node) {\n    return findAncestor(node.parent, isFunctionLike);\n  }\n  function getContainingFunctionDeclaration(node) {\n    return findAncestor(node.parent, isFunctionLikeDeclaration);\n  }\n  function getContainingClass(node) {\n    return findAncestor(node.parent, isClassLike);\n  }\n  function getContainingClassStaticBlock(node) {\n    return findAncestor(node.parent, (n) => {\n      if (isClassLike(n) || isFunctionLike(n)) {\n        return \"quit\";\n      }\n      return isClassStaticBlockDeclaration(n);\n    });\n  }\n  function getContainingFunctionOrClassStaticBlock(node) {\n    return findAncestor(node.parent, isFunctionLikeOrClassStaticBlockDeclaration);\n  }\n  function getThisContainer(node, includeArrowFunctions, includeClassComputedPropertyName) {\n    Debug.assert(node.kind !== 308);\n    while (true) {\n      node = node.parent;\n      if (!node) {\n        return Debug.fail();\n      }\n      switch (node.kind) {\n        case 164:\n          if (includeClassComputedPropertyName && isClassLike(node.parent.parent)) {\n            return node;\n          }\n          node = node.parent.parent;\n          break;\n        case 167:\n          if (node.parent.kind === 166 && isClassElement(node.parent.parent)) {\n            node = node.parent.parent;\n          } else if (isClassElement(node.parent)) {\n            node = node.parent;\n          }\n          break;\n        case 216:\n          if (!includeArrowFunctions) {\n            continue;\n          }\n        case 259:\n        case 215:\n        case 264:\n        case 172:\n        case 169:\n        case 168:\n        case 171:\n        case 170:\n        case 173:\n        case 174:\n        case 175:\n        case 176:\n        case 177:\n        case 178:\n        case 263:\n        case 308:\n          return node;\n      }\n    }\n  }\n  function isThisContainerOrFunctionBlock(node) {\n    switch (node.kind) {\n      case 216:\n      case 259:\n      case 215:\n      case 169:\n        return true;\n      case 238:\n        switch (node.parent.kind) {\n          case 173:\n          case 171:\n          case 174:\n          case 175:\n            return true;\n          default:\n            return false;\n        }\n      default:\n        return false;\n    }\n  }\n  function isInTopLevelContext(node) {\n    if (isIdentifier(node) && (isClassDeclaration(node.parent) || isFunctionDeclaration(node.parent)) && node.parent.name === node) {\n      node = node.parent;\n    }\n    const container = getThisContainer(node, true, false);\n    return isSourceFile(container);\n  }\n  function getNewTargetContainer(node) {\n    const container = getThisContainer(node, false, false);\n    if (container) {\n      switch (container.kind) {\n        case 173:\n        case 259:\n        case 215:\n          return container;\n      }\n    }\n    return void 0;\n  }\n  function getSuperContainer(node, stopOnFunctions) {\n    while (true) {\n      node = node.parent;\n      if (!node) {\n        return void 0;\n      }\n      switch (node.kind) {\n        case 164:\n          node = node.parent;\n          break;\n        case 259:\n        case 215:\n        case 216:\n          if (!stopOnFunctions) {\n            continue;\n          }\n        case 169:\n        case 168:\n        case 171:\n        case 170:\n        case 173:\n        case 174:\n        case 175:\n        case 172:\n          return node;\n        case 167:\n          if (node.parent.kind === 166 && isClassElement(node.parent.parent)) {\n            node = node.parent.parent;\n          } else if (isClassElement(node.parent)) {\n            node = node.parent;\n          }\n          break;\n      }\n    }\n  }\n  function getImmediatelyInvokedFunctionExpression(func) {\n    if (func.kind === 215 || func.kind === 216) {\n      let prev = func;\n      let parent2 = func.parent;\n      while (parent2.kind === 214) {\n        prev = parent2;\n        parent2 = parent2.parent;\n      }\n      if (parent2.kind === 210 && parent2.expression === prev) {\n        return parent2;\n      }\n    }\n  }\n  function isSuperOrSuperProperty(node) {\n    return node.kind === 106 || isSuperProperty(node);\n  }\n  function isSuperProperty(node) {\n    const kind = node.kind;\n    return (kind === 208 || kind === 209) && node.expression.kind === 106;\n  }\n  function isThisProperty(node) {\n    const kind = node.kind;\n    return (kind === 208 || kind === 209) && node.expression.kind === 108;\n  }\n  function isThisInitializedDeclaration(node) {\n    var _a2;\n    return !!node && isVariableDeclaration(node) && ((_a2 = node.initializer) == null ? void 0 : _a2.kind) === 108;\n  }\n  function isThisInitializedObjectBindingExpression(node) {\n    return !!node && (isShorthandPropertyAssignment(node) || isPropertyAssignment(node)) && isBinaryExpression(node.parent.parent) && node.parent.parent.operatorToken.kind === 63 && node.parent.parent.right.kind === 108;\n  }\n  function getEntityNameFromTypeNode(node) {\n    switch (node.kind) {\n      case 180:\n        return node.typeName;\n      case 230:\n        return isEntityNameExpression(node.expression) ? node.expression : void 0;\n      case 79:\n      case 163:\n        return node;\n    }\n    return void 0;\n  }\n  function getInvokedExpression(node) {\n    switch (node.kind) {\n      case 212:\n        return node.tag;\n      case 283:\n      case 282:\n        return node.tagName;\n      default:\n        return node.expression;\n    }\n  }\n  function nodeCanBeDecorated(useLegacyDecorators, node, parent2, grandparent) {\n    if (useLegacyDecorators && isNamedDeclaration(node) && isPrivateIdentifier(node.name)) {\n      return false;\n    }\n    switch (node.kind) {\n      case 260:\n        return true;\n      case 228:\n        return !useLegacyDecorators;\n      case 169:\n        return parent2 !== void 0 && (useLegacyDecorators ? isClassDeclaration(parent2) : isClassLike(parent2) && !hasAbstractModifier(node) && !hasAmbientModifier(node));\n      case 174:\n      case 175:\n      case 171:\n        return node.body !== void 0 && parent2 !== void 0 && (useLegacyDecorators ? isClassDeclaration(parent2) : isClassLike(parent2));\n      case 166:\n        if (!useLegacyDecorators)\n          return false;\n        return parent2 !== void 0 && parent2.body !== void 0 && (parent2.kind === 173 || parent2.kind === 171 || parent2.kind === 175) && getThisParameter(parent2) !== node && grandparent !== void 0 && grandparent.kind === 260;\n    }\n    return false;\n  }\n  function nodeIsDecorated(useLegacyDecorators, node, parent2, grandparent) {\n    return hasDecorators(node) && nodeCanBeDecorated(useLegacyDecorators, node, parent2, grandparent);\n  }\n  function nodeOrChildIsDecorated(useLegacyDecorators, node, parent2, grandparent) {\n    return nodeIsDecorated(useLegacyDecorators, node, parent2, grandparent) || childIsDecorated(useLegacyDecorators, node, parent2);\n  }\n  function childIsDecorated(useLegacyDecorators, node, parent2) {\n    switch (node.kind) {\n      case 260:\n        return some(node.members, (m) => nodeOrChildIsDecorated(useLegacyDecorators, m, node, parent2));\n      case 228:\n        return !useLegacyDecorators && some(node.members, (m) => nodeOrChildIsDecorated(useLegacyDecorators, m, node, parent2));\n      case 171:\n      case 175:\n      case 173:\n        return some(node.parameters, (p) => nodeIsDecorated(useLegacyDecorators, p, node, parent2));\n      default:\n        return false;\n    }\n  }\n  function classOrConstructorParameterIsDecorated(useLegacyDecorators, node) {\n    if (nodeIsDecorated(useLegacyDecorators, node))\n      return true;\n    const constructor = getFirstConstructorWithBody(node);\n    return !!constructor && childIsDecorated(useLegacyDecorators, constructor, node);\n  }\n  function classElementOrClassElementParameterIsDecorated(useLegacyDecorators, node, parent2) {\n    let parameters;\n    if (isAccessor(node)) {\n      const { firstAccessor, secondAccessor, setAccessor } = getAllAccessorDeclarations(parent2.members, node);\n      const firstAccessorWithDecorators = hasDecorators(firstAccessor) ? firstAccessor : secondAccessor && hasDecorators(secondAccessor) ? secondAccessor : void 0;\n      if (!firstAccessorWithDecorators || node !== firstAccessorWithDecorators) {\n        return false;\n      }\n      parameters = setAccessor == null ? void 0 : setAccessor.parameters;\n    } else if (isMethodDeclaration(node)) {\n      parameters = node.parameters;\n    }\n    if (nodeIsDecorated(useLegacyDecorators, node, parent2)) {\n      return true;\n    }\n    if (parameters) {\n      for (const parameter of parameters) {\n        if (parameterIsThisKeyword(parameter))\n          continue;\n        if (nodeIsDecorated(useLegacyDecorators, parameter, node, parent2))\n          return true;\n      }\n    }\n    return false;\n  }\n  function isEmptyStringLiteral(node) {\n    if (node.textSourceNode) {\n      switch (node.textSourceNode.kind) {\n        case 10:\n          return isEmptyStringLiteral(node.textSourceNode);\n        case 14:\n          return node.text === \"\";\n      }\n      return false;\n    }\n    return node.text === \"\";\n  }\n  function isJSXTagName(node) {\n    const { parent: parent2 } = node;\n    if (parent2.kind === 283 || parent2.kind === 282 || parent2.kind === 284) {\n      return parent2.tagName === node;\n    }\n    return false;\n  }\n  function isExpressionNode(node) {\n    switch (node.kind) {\n      case 106:\n      case 104:\n      case 110:\n      case 95:\n      case 13:\n      case 206:\n      case 207:\n      case 208:\n      case 209:\n      case 210:\n      case 211:\n      case 212:\n      case 231:\n      case 213:\n      case 235:\n      case 232:\n      case 214:\n      case 215:\n      case 228:\n      case 216:\n      case 219:\n      case 217:\n      case 218:\n      case 221:\n      case 222:\n      case 223:\n      case 224:\n      case 227:\n      case 225:\n      case 229:\n      case 281:\n      case 282:\n      case 285:\n      case 226:\n      case 220:\n      case 233:\n        return true;\n      case 230:\n        return !isHeritageClause(node.parent) && !isJSDocAugmentsTag(node.parent);\n      case 163:\n        while (node.parent.kind === 163) {\n          node = node.parent;\n        }\n        return node.parent.kind === 183 || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node);\n      case 314:\n        while (isJSDocMemberName(node.parent)) {\n          node = node.parent;\n        }\n        return node.parent.kind === 183 || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node);\n      case 80:\n        return isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 101;\n      case 79:\n        if (node.parent.kind === 183 || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node)) {\n          return true;\n        }\n      case 8:\n      case 9:\n      case 10:\n      case 14:\n      case 108:\n        return isInExpressionContext(node);\n      default:\n        return false;\n    }\n  }\n  function isInExpressionContext(node) {\n    const { parent: parent2 } = node;\n    switch (parent2.kind) {\n      case 257:\n      case 166:\n      case 169:\n      case 168:\n      case 302:\n      case 299:\n      case 205:\n        return parent2.initializer === node;\n      case 241:\n      case 242:\n      case 243:\n      case 244:\n      case 250:\n      case 251:\n      case 252:\n      case 292:\n      case 254:\n        return parent2.expression === node;\n      case 245:\n        const forStatement = parent2;\n        return forStatement.initializer === node && forStatement.initializer.kind !== 258 || forStatement.condition === node || forStatement.incrementor === node;\n      case 246:\n      case 247:\n        const forInStatement = parent2;\n        return forInStatement.initializer === node && forInStatement.initializer.kind !== 258 || forInStatement.expression === node;\n      case 213:\n      case 231:\n        return node === parent2.expression;\n      case 236:\n        return node === parent2.expression;\n      case 164:\n        return node === parent2.expression;\n      case 167:\n      case 291:\n      case 290:\n      case 301:\n        return true;\n      case 230:\n        return parent2.expression === node && !isPartOfTypeNode(parent2);\n      case 300:\n        return parent2.objectAssignmentInitializer === node;\n      case 235:\n        return node === parent2.expression;\n      default:\n        return isExpressionNode(parent2);\n    }\n  }\n  function isPartOfTypeQuery(node) {\n    while (node.kind === 163 || node.kind === 79) {\n      node = node.parent;\n    }\n    return node.kind === 183;\n  }\n  function isNamespaceReexportDeclaration(node) {\n    return isNamespaceExport(node) && !!node.parent.moduleSpecifier;\n  }\n  function isExternalModuleImportEqualsDeclaration(node) {\n    return node.kind === 268 && node.moduleReference.kind === 280;\n  }\n  function getExternalModuleImportEqualsDeclarationExpression(node) {\n    Debug.assert(isExternalModuleImportEqualsDeclaration(node));\n    return node.moduleReference.expression;\n  }\n  function getExternalModuleRequireArgument(node) {\n    return isVariableDeclarationInitializedToBareOrAccessedRequire(node) && getLeftmostAccessExpression(node.initializer).arguments[0];\n  }\n  function isInternalModuleImportEqualsDeclaration(node) {\n    return node.kind === 268 && node.moduleReference.kind !== 280;\n  }\n  function isSourceFileJS(file) {\n    return isInJSFile(file);\n  }\n  function isSourceFileNotJS(file) {\n    return !isInJSFile(file);\n  }\n  function isInJSFile(node) {\n    return !!node && !!(node.flags & 262144);\n  }\n  function isInJsonFile(node) {\n    return !!node && !!(node.flags & 67108864);\n  }\n  function isSourceFileNotJson(file) {\n    return !isJsonSourceFile(file);\n  }\n  function isInJSDoc(node) {\n    return !!node && !!(node.flags & 8388608);\n  }\n  function isJSDocIndexSignature(node) {\n    return isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === \"Object\" && node.typeArguments && node.typeArguments.length === 2 && (node.typeArguments[0].kind === 152 || node.typeArguments[0].kind === 148);\n  }\n  function isRequireCall(callExpression, requireStringLiteralLikeArgument) {\n    if (callExpression.kind !== 210) {\n      return false;\n    }\n    const { expression, arguments: args } = callExpression;\n    if (expression.kind !== 79 || expression.escapedText !== \"require\") {\n      return false;\n    }\n    if (args.length !== 1) {\n      return false;\n    }\n    const arg = args[0];\n    return !requireStringLiteralLikeArgument || isStringLiteralLike(arg);\n  }\n  function isVariableDeclarationInitializedToRequire(node) {\n    return isVariableDeclarationInitializedWithRequireHelper(node, false);\n  }\n  function isVariableDeclarationInitializedToBareOrAccessedRequire(node) {\n    return isVariableDeclarationInitializedWithRequireHelper(node, true);\n  }\n  function isBindingElementOfBareOrAccessedRequire(node) {\n    return isBindingElement(node) && isVariableDeclarationInitializedToBareOrAccessedRequire(node.parent.parent);\n  }\n  function isVariableDeclarationInitializedWithRequireHelper(node, allowAccessedRequire) {\n    return isVariableDeclaration(node) && !!node.initializer && isRequireCall(allowAccessedRequire ? getLeftmostAccessExpression(node.initializer) : node.initializer, true);\n  }\n  function isRequireVariableStatement(node) {\n    return isVariableStatement(node) && node.declarationList.declarations.length > 0 && every(node.declarationList.declarations, (decl) => isVariableDeclarationInitializedToRequire(decl));\n  }\n  function isSingleOrDoubleQuote(charCode) {\n    return charCode === 39 || charCode === 34;\n  }\n  function isStringDoubleQuoted(str, sourceFile) {\n    return getSourceTextOfNodeFromSourceFile(sourceFile, str).charCodeAt(0) === 34;\n  }\n  function isAssignmentDeclaration(decl) {\n    return isBinaryExpression(decl) || isAccessExpression(decl) || isIdentifier(decl) || isCallExpression(decl);\n  }\n  function getEffectiveInitializer(node) {\n    if (isInJSFile(node) && node.initializer && isBinaryExpression(node.initializer) && (node.initializer.operatorToken.kind === 56 || node.initializer.operatorToken.kind === 60) && node.name && isEntityNameExpression(node.name) && isSameEntityName(node.name, node.initializer.left)) {\n      return node.initializer.right;\n    }\n    return node.initializer;\n  }\n  function getDeclaredExpandoInitializer(node) {\n    const init = getEffectiveInitializer(node);\n    return init && getExpandoInitializer(init, isPrototypeAccess(node.name));\n  }\n  function hasExpandoValueProperty(node, isPrototypeAssignment) {\n    return forEach(node.properties, (p) => isPropertyAssignment(p) && isIdentifier(p.name) && p.name.escapedText === \"value\" && p.initializer && getExpandoInitializer(p.initializer, isPrototypeAssignment));\n  }\n  function getAssignedExpandoInitializer(node) {\n    if (node && node.parent && isBinaryExpression(node.parent) && node.parent.operatorToken.kind === 63) {\n      const isPrototypeAssignment = isPrototypeAccess(node.parent.left);\n      return getExpandoInitializer(node.parent.right, isPrototypeAssignment) || getDefaultedExpandoInitializer(node.parent.left, node.parent.right, isPrototypeAssignment);\n    }\n    if (node && isCallExpression(node) && isBindableObjectDefinePropertyCall(node)) {\n      const result = hasExpandoValueProperty(node.arguments[2], node.arguments[1].text === \"prototype\");\n      if (result) {\n        return result;\n      }\n    }\n  }\n  function getExpandoInitializer(initializer, isPrototypeAssignment) {\n    if (isCallExpression(initializer)) {\n      const e = skipParentheses(initializer.expression);\n      return e.kind === 215 || e.kind === 216 ? initializer : void 0;\n    }\n    if (initializer.kind === 215 || initializer.kind === 228 || initializer.kind === 216) {\n      return initializer;\n    }\n    if (isObjectLiteralExpression(initializer) && (initializer.properties.length === 0 || isPrototypeAssignment)) {\n      return initializer;\n    }\n  }\n  function getDefaultedExpandoInitializer(name, initializer, isPrototypeAssignment) {\n    const e = isBinaryExpression(initializer) && (initializer.operatorToken.kind === 56 || initializer.operatorToken.kind === 60) && getExpandoInitializer(initializer.right, isPrototypeAssignment);\n    if (e && isSameEntityName(name, initializer.left)) {\n      return e;\n    }\n  }\n  function isDefaultedExpandoInitializer(node) {\n    const name = isVariableDeclaration(node.parent) ? node.parent.name : isBinaryExpression(node.parent) && node.parent.operatorToken.kind === 63 ? node.parent.left : void 0;\n    return name && getExpandoInitializer(node.right, isPrototypeAccess(name)) && isEntityNameExpression(name) && isSameEntityName(name, node.left);\n  }\n  function getNameOfExpando(node) {\n    if (isBinaryExpression(node.parent)) {\n      const parent2 = (node.parent.operatorToken.kind === 56 || node.parent.operatorToken.kind === 60) && isBinaryExpression(node.parent.parent) ? node.parent.parent : node.parent;\n      if (parent2.operatorToken.kind === 63 && isIdentifier(parent2.left)) {\n        return parent2.left;\n      }\n    } else if (isVariableDeclaration(node.parent)) {\n      return node.parent.name;\n    }\n  }\n  function isSameEntityName(name, initializer) {\n    if (isPropertyNameLiteral(name) && isPropertyNameLiteral(initializer)) {\n      return getTextOfIdentifierOrLiteral(name) === getTextOfIdentifierOrLiteral(initializer);\n    }\n    if (isMemberName(name) && isLiteralLikeAccess(initializer) && (initializer.expression.kind === 108 || isIdentifier(initializer.expression) && (initializer.expression.escapedText === \"window\" || initializer.expression.escapedText === \"self\" || initializer.expression.escapedText === \"global\"))) {\n      return isSameEntityName(name, getNameOrArgument(initializer));\n    }\n    if (isLiteralLikeAccess(name) && isLiteralLikeAccess(initializer)) {\n      return getElementOrPropertyAccessName(name) === getElementOrPropertyAccessName(initializer) && isSameEntityName(name.expression, initializer.expression);\n    }\n    return false;\n  }\n  function getRightMostAssignedExpression(node) {\n    while (isAssignmentExpression(node, true)) {\n      node = node.right;\n    }\n    return node;\n  }\n  function isExportsIdentifier(node) {\n    return isIdentifier(node) && node.escapedText === \"exports\";\n  }\n  function isModuleIdentifier(node) {\n    return isIdentifier(node) && node.escapedText === \"module\";\n  }\n  function isModuleExportsAccessExpression(node) {\n    return (isPropertyAccessExpression(node) || isLiteralLikeElementAccess(node)) && isModuleIdentifier(node.expression) && getElementOrPropertyAccessName(node) === \"exports\";\n  }\n  function getAssignmentDeclarationKind(expr) {\n    const special = getAssignmentDeclarationKindWorker(expr);\n    return special === 5 || isInJSFile(expr) ? special : 0;\n  }\n  function isBindableObjectDefinePropertyCall(expr) {\n    return length(expr.arguments) === 3 && isPropertyAccessExpression(expr.expression) && isIdentifier(expr.expression.expression) && idText(expr.expression.expression) === \"Object\" && idText(expr.expression.name) === \"defineProperty\" && isStringOrNumericLiteralLike(expr.arguments[1]) && isBindableStaticNameExpression(expr.arguments[0], true);\n  }\n  function isLiteralLikeAccess(node) {\n    return isPropertyAccessExpression(node) || isLiteralLikeElementAccess(node);\n  }\n  function isLiteralLikeElementAccess(node) {\n    return isElementAccessExpression(node) && isStringOrNumericLiteralLike(node.argumentExpression);\n  }\n  function isBindableStaticAccessExpression(node, excludeThisKeyword) {\n    return isPropertyAccessExpression(node) && (!excludeThisKeyword && node.expression.kind === 108 || isIdentifier(node.name) && isBindableStaticNameExpression(node.expression, true)) || isBindableStaticElementAccessExpression(node, excludeThisKeyword);\n  }\n  function isBindableStaticElementAccessExpression(node, excludeThisKeyword) {\n    return isLiteralLikeElementAccess(node) && (!excludeThisKeyword && node.expression.kind === 108 || isEntityNameExpression(node.expression) || isBindableStaticAccessExpression(node.expression, true));\n  }\n  function isBindableStaticNameExpression(node, excludeThisKeyword) {\n    return isEntityNameExpression(node) || isBindableStaticAccessExpression(node, excludeThisKeyword);\n  }\n  function getNameOrArgument(expr) {\n    if (isPropertyAccessExpression(expr)) {\n      return expr.name;\n    }\n    return expr.argumentExpression;\n  }\n  function getAssignmentDeclarationKindWorker(expr) {\n    if (isCallExpression(expr)) {\n      if (!isBindableObjectDefinePropertyCall(expr)) {\n        return 0;\n      }\n      const entityName = expr.arguments[0];\n      if (isExportsIdentifier(entityName) || isModuleExportsAccessExpression(entityName)) {\n        return 8;\n      }\n      if (isBindableStaticAccessExpression(entityName) && getElementOrPropertyAccessName(entityName) === \"prototype\") {\n        return 9;\n      }\n      return 7;\n    }\n    if (expr.operatorToken.kind !== 63 || !isAccessExpression(expr.left) || isVoidZero(getRightMostAssignedExpression(expr))) {\n      return 0;\n    }\n    if (isBindableStaticNameExpression(expr.left.expression, true) && getElementOrPropertyAccessName(expr.left) === \"prototype\" && isObjectLiteralExpression(getInitializerOfBinaryExpression(expr))) {\n      return 6;\n    }\n    return getAssignmentDeclarationPropertyAccessKind(expr.left);\n  }\n  function isVoidZero(node) {\n    return isVoidExpression(node) && isNumericLiteral(node.expression) && node.expression.text === \"0\";\n  }\n  function getElementOrPropertyAccessArgumentExpressionOrName(node) {\n    if (isPropertyAccessExpression(node)) {\n      return node.name;\n    }\n    const arg = skipParentheses(node.argumentExpression);\n    if (isNumericLiteral(arg) || isStringLiteralLike(arg)) {\n      return arg;\n    }\n    return node;\n  }\n  function getElementOrPropertyAccessName(node) {\n    const name = getElementOrPropertyAccessArgumentExpressionOrName(node);\n    if (name) {\n      if (isIdentifier(name)) {\n        return name.escapedText;\n      }\n      if (isStringLiteralLike(name) || isNumericLiteral(name)) {\n        return escapeLeadingUnderscores(name.text);\n      }\n    }\n    return void 0;\n  }\n  function getAssignmentDeclarationPropertyAccessKind(lhs) {\n    if (lhs.expression.kind === 108) {\n      return 4;\n    } else if (isModuleExportsAccessExpression(lhs)) {\n      return 2;\n    } else if (isBindableStaticNameExpression(lhs.expression, true)) {\n      if (isPrototypeAccess(lhs.expression)) {\n        return 3;\n      }\n      let nextToLast = lhs;\n      while (!isIdentifier(nextToLast.expression)) {\n        nextToLast = nextToLast.expression;\n      }\n      const id = nextToLast.expression;\n      if ((id.escapedText === \"exports\" || id.escapedText === \"module\" && getElementOrPropertyAccessName(nextToLast) === \"exports\") && isBindableStaticAccessExpression(lhs)) {\n        return 1;\n      }\n      if (isBindableStaticNameExpression(lhs, true) || isElementAccessExpression(lhs) && isDynamicName(lhs)) {\n        return 5;\n      }\n    }\n    return 0;\n  }\n  function getInitializerOfBinaryExpression(expr) {\n    while (isBinaryExpression(expr.right)) {\n      expr = expr.right;\n    }\n    return expr.right;\n  }\n  function isPrototypePropertyAssignment(node) {\n    return isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 3;\n  }\n  function isSpecialPropertyDeclaration(expr) {\n    return isInJSFile(expr) && expr.parent && expr.parent.kind === 241 && (!isElementAccessExpression(expr) || isLiteralLikeElementAccess(expr)) && !!getJSDocTypeTag(expr.parent);\n  }\n  function setValueDeclaration(symbol, node) {\n    const { valueDeclaration } = symbol;\n    if (!valueDeclaration || !(node.flags & 16777216 && !isInJSFile(node) && !(valueDeclaration.flags & 16777216)) && (isAssignmentDeclaration(valueDeclaration) && !isAssignmentDeclaration(node)) || valueDeclaration.kind !== node.kind && isEffectiveModuleDeclaration(valueDeclaration)) {\n      symbol.valueDeclaration = node;\n    }\n  }\n  function isFunctionSymbol(symbol) {\n    if (!symbol || !symbol.valueDeclaration) {\n      return false;\n    }\n    const decl = symbol.valueDeclaration;\n    return decl.kind === 259 || isVariableDeclaration(decl) && decl.initializer && isFunctionLike(decl.initializer);\n  }\n  function tryGetModuleSpecifierFromDeclaration(node) {\n    var _a2, _b;\n    switch (node.kind) {\n      case 257:\n      case 205:\n        return (_a2 = findAncestor(node.initializer, (node2) => isRequireCall(node2, true))) == null ? void 0 : _a2.arguments[0];\n      case 269:\n        return tryCast(node.moduleSpecifier, isStringLiteralLike);\n      case 268:\n        return tryCast((_b = tryCast(node.moduleReference, isExternalModuleReference)) == null ? void 0 : _b.expression, isStringLiteralLike);\n      case 270:\n      case 277:\n        return tryCast(node.parent.moduleSpecifier, isStringLiteralLike);\n      case 271:\n      case 278:\n        return tryCast(node.parent.parent.moduleSpecifier, isStringLiteralLike);\n      case 273:\n        return tryCast(node.parent.parent.parent.moduleSpecifier, isStringLiteralLike);\n      default:\n        Debug.assertNever(node);\n    }\n  }\n  function importFromModuleSpecifier(node) {\n    return tryGetImportFromModuleSpecifier(node) || Debug.failBadSyntaxKind(node.parent);\n  }\n  function tryGetImportFromModuleSpecifier(node) {\n    switch (node.parent.kind) {\n      case 269:\n      case 275:\n        return node.parent;\n      case 280:\n        return node.parent.parent;\n      case 210:\n        return isImportCall(node.parent) || isRequireCall(node.parent, false) ? node.parent : void 0;\n      case 198:\n        Debug.assert(isStringLiteral(node));\n        return tryCast(node.parent.parent, isImportTypeNode);\n      default:\n        return void 0;\n    }\n  }\n  function getExternalModuleName(node) {\n    switch (node.kind) {\n      case 269:\n      case 275:\n        return node.moduleSpecifier;\n      case 268:\n        return node.moduleReference.kind === 280 ? node.moduleReference.expression : void 0;\n      case 202:\n        return isLiteralImportTypeNode(node) ? node.argument.literal : void 0;\n      case 210:\n        return node.arguments[0];\n      case 264:\n        return node.name.kind === 10 ? node.name : void 0;\n      default:\n        return Debug.assertNever(node);\n    }\n  }\n  function getNamespaceDeclarationNode(node) {\n    switch (node.kind) {\n      case 269:\n        return node.importClause && tryCast(node.importClause.namedBindings, isNamespaceImport);\n      case 268:\n        return node;\n      case 275:\n        return node.exportClause && tryCast(node.exportClause, isNamespaceExport);\n      default:\n        return Debug.assertNever(node);\n    }\n  }\n  function isDefaultImport(node) {\n    return node.kind === 269 && !!node.importClause && !!node.importClause.name;\n  }\n  function forEachImportClauseDeclaration(node, action) {\n    if (node.name) {\n      const result = action(node);\n      if (result)\n        return result;\n    }\n    if (node.namedBindings) {\n      const result = isNamespaceImport(node.namedBindings) ? action(node.namedBindings) : forEach(node.namedBindings.elements, action);\n      if (result)\n        return result;\n    }\n  }\n  function hasQuestionToken(node) {\n    if (node) {\n      switch (node.kind) {\n        case 166:\n        case 171:\n        case 170:\n        case 300:\n        case 299:\n        case 169:\n        case 168:\n          return node.questionToken !== void 0;\n      }\n    }\n    return false;\n  }\n  function isJSDocConstructSignature(node) {\n    const param = isJSDocFunctionType(node) ? firstOrUndefined(node.parameters) : void 0;\n    const name = tryCast(param && param.name, isIdentifier);\n    return !!name && name.escapedText === \"new\";\n  }\n  function isJSDocTypeAlias(node) {\n    return node.kind === 349 || node.kind === 341 || node.kind === 343;\n  }\n  function isTypeAlias(node) {\n    return isJSDocTypeAlias(node) || isTypeAliasDeclaration(node);\n  }\n  function getSourceOfAssignment(node) {\n    return isExpressionStatement(node) && isBinaryExpression(node.expression) && node.expression.operatorToken.kind === 63 ? getRightMostAssignedExpression(node.expression) : void 0;\n  }\n  function getSourceOfDefaultedAssignment(node) {\n    return isExpressionStatement(node) && isBinaryExpression(node.expression) && getAssignmentDeclarationKind(node.expression) !== 0 && isBinaryExpression(node.expression.right) && (node.expression.right.operatorToken.kind === 56 || node.expression.right.operatorToken.kind === 60) ? node.expression.right.right : void 0;\n  }\n  function getSingleInitializerOfVariableStatementOrPropertyDeclaration(node) {\n    switch (node.kind) {\n      case 240:\n        const v = getSingleVariableOfVariableStatement(node);\n        return v && v.initializer;\n      case 169:\n        return node.initializer;\n      case 299:\n        return node.initializer;\n    }\n  }\n  function getSingleVariableOfVariableStatement(node) {\n    return isVariableStatement(node) ? firstOrUndefined(node.declarationList.declarations) : void 0;\n  }\n  function getNestedModuleDeclaration(node) {\n    return isModuleDeclaration(node) && node.body && node.body.kind === 264 ? node.body : void 0;\n  }\n  function canHaveFlowNode(node) {\n    if (node.kind >= 240 && node.kind <= 256) {\n      return true;\n    }\n    switch (node.kind) {\n      case 79:\n      case 108:\n      case 106:\n      case 163:\n      case 233:\n      case 209:\n      case 208:\n      case 205:\n      case 215:\n      case 216:\n      case 171:\n      case 174:\n      case 175:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function canHaveJSDoc(node) {\n    switch (node.kind) {\n      case 216:\n      case 223:\n      case 238:\n      case 249:\n      case 176:\n      case 292:\n      case 260:\n      case 228:\n      case 172:\n      case 173:\n      case 182:\n      case 177:\n      case 248:\n      case 256:\n      case 243:\n      case 209:\n      case 239:\n      case 1:\n      case 263:\n      case 302:\n      case 274:\n      case 275:\n      case 278:\n      case 241:\n      case 246:\n      case 247:\n      case 245:\n      case 259:\n      case 215:\n      case 181:\n      case 174:\n      case 79:\n      case 242:\n      case 269:\n      case 268:\n      case 178:\n      case 261:\n      case 320:\n      case 326:\n      case 253:\n      case 171:\n      case 170:\n      case 264:\n      case 199:\n      case 267:\n      case 207:\n      case 166:\n      case 214:\n      case 208:\n      case 299:\n      case 169:\n      case 168:\n      case 250:\n      case 175:\n      case 300:\n      case 301:\n      case 252:\n      case 254:\n      case 255:\n      case 262:\n      case 165:\n      case 257:\n      case 240:\n      case 244:\n      case 251:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function getJSDocCommentsAndTags(hostNode, noCache) {\n    let result;\n    if (isVariableLike(hostNode) && hasInitializer(hostNode) && hasJSDocNodes(hostNode.initializer)) {\n      result = addRange(result, filterOwnedJSDocTags(hostNode, last(hostNode.initializer.jsDoc)));\n    }\n    let node = hostNode;\n    while (node && node.parent) {\n      if (hasJSDocNodes(node)) {\n        result = addRange(result, filterOwnedJSDocTags(hostNode, last(node.jsDoc)));\n      }\n      if (node.kind === 166) {\n        result = addRange(result, (noCache ? getJSDocParameterTagsNoCache : getJSDocParameterTags)(node));\n        break;\n      }\n      if (node.kind === 165) {\n        result = addRange(result, (noCache ? getJSDocTypeParameterTagsNoCache : getJSDocTypeParameterTags)(node));\n        break;\n      }\n      node = getNextJSDocCommentLocation(node);\n    }\n    return result || emptyArray;\n  }\n  function filterOwnedJSDocTags(hostNode, jsDoc) {\n    if (isJSDoc(jsDoc)) {\n      const ownedTags = filter(jsDoc.tags, (tag) => ownsJSDocTag(hostNode, tag));\n      return jsDoc.tags === ownedTags ? [jsDoc] : ownedTags;\n    }\n    return ownsJSDocTag(hostNode, jsDoc) ? [jsDoc] : void 0;\n  }\n  function ownsJSDocTag(hostNode, tag) {\n    return !(isJSDocTypeTag(tag) || isJSDocSatisfiesTag(tag)) || !tag.parent || !isJSDoc(tag.parent) || !isParenthesizedExpression(tag.parent.parent) || tag.parent.parent === hostNode;\n  }\n  function getNextJSDocCommentLocation(node) {\n    const parent2 = node.parent;\n    if (parent2.kind === 299 || parent2.kind === 274 || parent2.kind === 169 || parent2.kind === 241 && node.kind === 208 || parent2.kind === 250 || getNestedModuleDeclaration(parent2) || isBinaryExpression(node) && node.operatorToken.kind === 63) {\n      return parent2;\n    } else if (parent2.parent && (getSingleVariableOfVariableStatement(parent2.parent) === node || isBinaryExpression(parent2) && parent2.operatorToken.kind === 63)) {\n      return parent2.parent;\n    } else if (parent2.parent && parent2.parent.parent && (getSingleVariableOfVariableStatement(parent2.parent.parent) || getSingleInitializerOfVariableStatementOrPropertyDeclaration(parent2.parent.parent) === node || getSourceOfDefaultedAssignment(parent2.parent.parent))) {\n      return parent2.parent.parent;\n    }\n  }\n  function getParameterSymbolFromJSDoc(node) {\n    if (node.symbol) {\n      return node.symbol;\n    }\n    if (!isIdentifier(node.name)) {\n      return void 0;\n    }\n    const name = node.name.escapedText;\n    const decl = getHostSignatureFromJSDoc(node);\n    if (!decl) {\n      return void 0;\n    }\n    const parameter = find(decl.parameters, (p) => p.name.kind === 79 && p.name.escapedText === name);\n    return parameter && parameter.symbol;\n  }\n  function getEffectiveContainerForJSDocTemplateTag(node) {\n    if (isJSDoc(node.parent) && node.parent.tags) {\n      const typeAlias = find(node.parent.tags, isJSDocTypeAlias);\n      if (typeAlias) {\n        return typeAlias;\n      }\n    }\n    return getHostSignatureFromJSDoc(node);\n  }\n  function getHostSignatureFromJSDoc(node) {\n    const host = getEffectiveJSDocHost(node);\n    if (host) {\n      return isPropertySignature(host) && host.type && isFunctionLike(host.type) ? host.type : isFunctionLike(host) ? host : void 0;\n    }\n    return void 0;\n  }\n  function getEffectiveJSDocHost(node) {\n    const host = getJSDocHost(node);\n    if (host) {\n      return getSourceOfDefaultedAssignment(host) || getSourceOfAssignment(host) || getSingleInitializerOfVariableStatementOrPropertyDeclaration(host) || getSingleVariableOfVariableStatement(host) || getNestedModuleDeclaration(host) || host;\n    }\n  }\n  function getJSDocHost(node) {\n    const jsDoc = getJSDocRoot(node);\n    if (!jsDoc) {\n      return void 0;\n    }\n    const host = jsDoc.parent;\n    if (host && host.jsDoc && jsDoc === lastOrUndefined(host.jsDoc)) {\n      return host;\n    }\n  }\n  function getJSDocRoot(node) {\n    return findAncestor(node.parent, isJSDoc);\n  }\n  function getTypeParameterFromJsDoc(node) {\n    const name = node.name.escapedText;\n    const { typeParameters } = node.parent.parent.parent;\n    return typeParameters && find(typeParameters, (p) => p.name.escapedText === name);\n  }\n  function hasTypeArguments(node) {\n    return !!node.typeArguments;\n  }\n  function getAssignmentTargetKind(node) {\n    let parent2 = node.parent;\n    while (true) {\n      switch (parent2.kind) {\n        case 223:\n          const binaryOperator = parent2.operatorToken.kind;\n          return isAssignmentOperator(binaryOperator) && parent2.left === node ? binaryOperator === 63 || isLogicalOrCoalescingAssignmentOperator(binaryOperator) ? 1 : 2 : 0;\n        case 221:\n        case 222:\n          const unaryOperator = parent2.operator;\n          return unaryOperator === 45 || unaryOperator === 46 ? 2 : 0;\n        case 246:\n        case 247:\n          return parent2.initializer === node ? 1 : 0;\n        case 214:\n        case 206:\n        case 227:\n        case 232:\n          node = parent2;\n          break;\n        case 301:\n          node = parent2.parent;\n          break;\n        case 300:\n          if (parent2.name !== node) {\n            return 0;\n          }\n          node = parent2.parent;\n          break;\n        case 299:\n          if (parent2.name === node) {\n            return 0;\n          }\n          node = parent2.parent;\n          break;\n        default:\n          return 0;\n      }\n      parent2 = node.parent;\n    }\n  }\n  function isAssignmentTarget(node) {\n    return getAssignmentTargetKind(node) !== 0;\n  }\n  function isNodeWithPossibleHoistedDeclaration(node) {\n    switch (node.kind) {\n      case 238:\n      case 240:\n      case 251:\n      case 242:\n      case 252:\n      case 266:\n      case 292:\n      case 293:\n      case 253:\n      case 245:\n      case 246:\n      case 247:\n      case 243:\n      case 244:\n      case 255:\n      case 295:\n        return true;\n    }\n    return false;\n  }\n  function isValueSignatureDeclaration(node) {\n    return isFunctionExpression(node) || isArrowFunction(node) || isMethodOrAccessor(node) || isFunctionDeclaration(node) || isConstructorDeclaration(node);\n  }\n  function walkUp(node, kind) {\n    while (node && node.kind === kind) {\n      node = node.parent;\n    }\n    return node;\n  }\n  function walkUpParenthesizedTypes(node) {\n    return walkUp(node, 193);\n  }\n  function walkUpParenthesizedExpressions(node) {\n    return walkUp(node, 214);\n  }\n  function walkUpParenthesizedTypesAndGetParentAndChild(node) {\n    let child;\n    while (node && node.kind === 193) {\n      child = node;\n      node = node.parent;\n    }\n    return [child, node];\n  }\n  function skipTypeParentheses(node) {\n    while (isParenthesizedTypeNode(node))\n      node = node.type;\n    return node;\n  }\n  function skipParentheses(node, excludeJSDocTypeAssertions) {\n    const flags = excludeJSDocTypeAssertions ? 1 | 16 : 1;\n    return skipOuterExpressions(node, flags);\n  }\n  function isDeleteTarget(node) {\n    if (node.kind !== 208 && node.kind !== 209) {\n      return false;\n    }\n    node = walkUpParenthesizedExpressions(node.parent);\n    return node && node.kind === 217;\n  }\n  function isNodeDescendantOf(node, ancestor) {\n    while (node) {\n      if (node === ancestor)\n        return true;\n      node = node.parent;\n    }\n    return false;\n  }\n  function isDeclarationName(name) {\n    return !isSourceFile(name) && !isBindingPattern(name) && isDeclaration(name.parent) && name.parent.name === name;\n  }\n  function getDeclarationFromName(name) {\n    const parent2 = name.parent;\n    switch (name.kind) {\n      case 10:\n      case 14:\n      case 8:\n        if (isComputedPropertyName(parent2))\n          return parent2.parent;\n      case 79:\n        if (isDeclaration(parent2)) {\n          return parent2.name === name ? parent2 : void 0;\n        } else if (isQualifiedName(parent2)) {\n          const tag = parent2.parent;\n          return isJSDocParameterTag(tag) && tag.name === parent2 ? tag : void 0;\n        } else {\n          const binExp = parent2.parent;\n          return isBinaryExpression(binExp) && getAssignmentDeclarationKind(binExp) !== 0 && (binExp.left.symbol || binExp.symbol) && getNameOfDeclaration(binExp) === name ? binExp : void 0;\n        }\n      case 80:\n        return isDeclaration(parent2) && parent2.name === name ? parent2 : void 0;\n      default:\n        return void 0;\n    }\n  }\n  function isLiteralComputedPropertyDeclarationName(node) {\n    return isStringOrNumericLiteralLike(node) && node.parent.kind === 164 && isDeclaration(node.parent.parent);\n  }\n  function isIdentifierName(node) {\n    const parent2 = node.parent;\n    switch (parent2.kind) {\n      case 169:\n      case 168:\n      case 171:\n      case 170:\n      case 174:\n      case 175:\n      case 302:\n      case 299:\n      case 208:\n        return parent2.name === node;\n      case 163:\n        return parent2.right === node;\n      case 205:\n      case 273:\n        return parent2.propertyName === node;\n      case 278:\n      case 288:\n      case 282:\n      case 283:\n      case 284:\n        return true;\n    }\n    return false;\n  }\n  function isAliasSymbolDeclaration(node) {\n    if (node.kind === 268 || node.kind === 267 || node.kind === 270 && !!node.name || node.kind === 271 || node.kind === 277 || node.kind === 273 || node.kind === 278 || node.kind === 274 && exportAssignmentIsAlias(node)) {\n      return true;\n    }\n    return isInJSFile(node) && (isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 2 && exportAssignmentIsAlias(node) || isPropertyAccessExpression(node) && isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 63 && isAliasableExpression(node.parent.right));\n  }\n  function getAliasDeclarationFromName(node) {\n    switch (node.parent.kind) {\n      case 270:\n      case 273:\n      case 271:\n      case 278:\n      case 274:\n      case 268:\n      case 277:\n        return node.parent;\n      case 163:\n        do {\n          node = node.parent;\n        } while (node.parent.kind === 163);\n        return getAliasDeclarationFromName(node);\n    }\n  }\n  function isAliasableExpression(e) {\n    return isEntityNameExpression(e) || isClassExpression(e);\n  }\n  function exportAssignmentIsAlias(node) {\n    const e = getExportAssignmentExpression(node);\n    return isAliasableExpression(e);\n  }\n  function getExportAssignmentExpression(node) {\n    return isExportAssignment(node) ? node.expression : node.right;\n  }\n  function getPropertyAssignmentAliasLikeExpression(node) {\n    return node.kind === 300 ? node.name : node.kind === 299 ? node.initializer : node.parent.right;\n  }\n  function getEffectiveBaseTypeNode(node) {\n    const baseType = getClassExtendsHeritageElement(node);\n    if (baseType && isInJSFile(node)) {\n      const tag = getJSDocAugmentsTag(node);\n      if (tag) {\n        return tag.class;\n      }\n    }\n    return baseType;\n  }\n  function getClassExtendsHeritageElement(node) {\n    const heritageClause = getHeritageClause(node.heritageClauses, 94);\n    return heritageClause && heritageClause.types.length > 0 ? heritageClause.types[0] : void 0;\n  }\n  function getEffectiveImplementsTypeNodes(node) {\n    if (isInJSFile(node)) {\n      return getJSDocImplementsTags(node).map((n) => n.class);\n    } else {\n      const heritageClause = getHeritageClause(node.heritageClauses, 117);\n      return heritageClause == null ? void 0 : heritageClause.types;\n    }\n  }\n  function getAllSuperTypeNodes(node) {\n    return isInterfaceDeclaration(node) ? getInterfaceBaseTypeNodes(node) || emptyArray : isClassLike(node) ? concatenate(singleElementArray(getEffectiveBaseTypeNode(node)), getEffectiveImplementsTypeNodes(node)) || emptyArray : emptyArray;\n  }\n  function getInterfaceBaseTypeNodes(node) {\n    const heritageClause = getHeritageClause(node.heritageClauses, 94);\n    return heritageClause ? heritageClause.types : void 0;\n  }\n  function getHeritageClause(clauses, kind) {\n    if (clauses) {\n      for (const clause of clauses) {\n        if (clause.token === kind) {\n          return clause;\n        }\n      }\n    }\n    return void 0;\n  }\n  function getAncestor(node, kind) {\n    while (node) {\n      if (node.kind === kind) {\n        return node;\n      }\n      node = node.parent;\n    }\n    return void 0;\n  }\n  function isKeyword(token) {\n    return 81 <= token && token <= 162;\n  }\n  function isContextualKeyword(token) {\n    return 126 <= token && token <= 162;\n  }\n  function isNonContextualKeyword(token) {\n    return isKeyword(token) && !isContextualKeyword(token);\n  }\n  function isFutureReservedKeyword(token) {\n    return 117 <= token && token <= 125;\n  }\n  function isStringANonContextualKeyword(name) {\n    const token = stringToToken(name);\n    return token !== void 0 && isNonContextualKeyword(token);\n  }\n  function isStringAKeyword(name) {\n    const token = stringToToken(name);\n    return token !== void 0 && isKeyword(token);\n  }\n  function isIdentifierANonContextualKeyword(node) {\n    const originalKeywordKind = identifierToKeywordKind(node);\n    return !!originalKeywordKind && !isContextualKeyword(originalKeywordKind);\n  }\n  function isTrivia(token) {\n    return 2 <= token && token <= 7;\n  }\n  function getFunctionFlags(node) {\n    if (!node) {\n      return 4;\n    }\n    let flags = 0;\n    switch (node.kind) {\n      case 259:\n      case 215:\n      case 171:\n        if (node.asteriskToken) {\n          flags |= 1;\n        }\n      case 216:\n        if (hasSyntacticModifier(node, 512)) {\n          flags |= 2;\n        }\n        break;\n    }\n    if (!node.body) {\n      flags |= 4;\n    }\n    return flags;\n  }\n  function isAsyncFunction(node) {\n    switch (node.kind) {\n      case 259:\n      case 215:\n      case 216:\n      case 171:\n        return node.body !== void 0 && node.asteriskToken === void 0 && hasSyntacticModifier(node, 512);\n    }\n    return false;\n  }\n  function isStringOrNumericLiteralLike(node) {\n    return isStringLiteralLike(node) || isNumericLiteral(node);\n  }\n  function isSignedNumericLiteral(node) {\n    return isPrefixUnaryExpression(node) && (node.operator === 39 || node.operator === 40) && isNumericLiteral(node.operand);\n  }\n  function hasDynamicName(declaration) {\n    const name = getNameOfDeclaration(declaration);\n    return !!name && isDynamicName(name);\n  }\n  function isDynamicName(name) {\n    if (!(name.kind === 164 || name.kind === 209)) {\n      return false;\n    }\n    const expr = isElementAccessExpression(name) ? skipParentheses(name.argumentExpression) : name.expression;\n    return !isStringOrNumericLiteralLike(expr) && !isSignedNumericLiteral(expr);\n  }\n  function getPropertyNameForPropertyNameNode(name) {\n    switch (name.kind) {\n      case 79:\n      case 80:\n        return name.escapedText;\n      case 10:\n      case 8:\n        return escapeLeadingUnderscores(name.text);\n      case 164:\n        const nameExpression = name.expression;\n        if (isStringOrNumericLiteralLike(nameExpression)) {\n          return escapeLeadingUnderscores(nameExpression.text);\n        } else if (isSignedNumericLiteral(nameExpression)) {\n          if (nameExpression.operator === 40) {\n            return tokenToString(nameExpression.operator) + nameExpression.operand.text;\n          }\n          return nameExpression.operand.text;\n        }\n        return void 0;\n      default:\n        return Debug.assertNever(name);\n    }\n  }\n  function isPropertyNameLiteral(node) {\n    switch (node.kind) {\n      case 79:\n      case 10:\n      case 14:\n      case 8:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function getTextOfIdentifierOrLiteral(node) {\n    return isMemberName(node) ? idText(node) : node.text;\n  }\n  function getEscapedTextOfIdentifierOrLiteral(node) {\n    return isMemberName(node) ? node.escapedText : escapeLeadingUnderscores(node.text);\n  }\n  function getPropertyNameForUniqueESSymbol(symbol) {\n    return `__@${getSymbolId(symbol)}@${symbol.escapedName}`;\n  }\n  function getSymbolNameForPrivateIdentifier(containingClassSymbol, description2) {\n    return `__#${getSymbolId(containingClassSymbol)}@${description2}`;\n  }\n  function isKnownSymbol(symbol) {\n    return startsWith(symbol.escapedName, \"__@\");\n  }\n  function isPrivateIdentifierSymbol(symbol) {\n    return startsWith(symbol.escapedName, \"__#\");\n  }\n  function isESSymbolIdentifier(node) {\n    return node.kind === 79 && node.escapedText === \"Symbol\";\n  }\n  function isProtoSetter(node) {\n    return isIdentifier(node) ? idText(node) === \"__proto__\" : isStringLiteral(node) && node.text === \"__proto__\";\n  }\n  function isAnonymousFunctionDefinition(node, cb) {\n    node = skipOuterExpressions(node);\n    switch (node.kind) {\n      case 228:\n      case 215:\n        if (node.name) {\n          return false;\n        }\n        break;\n      case 216:\n        break;\n      default:\n        return false;\n    }\n    return typeof cb === \"function\" ? cb(node) : true;\n  }\n  function isNamedEvaluationSource(node) {\n    switch (node.kind) {\n      case 299:\n        return !isProtoSetter(node.name);\n      case 300:\n        return !!node.objectAssignmentInitializer;\n      case 257:\n        return isIdentifier(node.name) && !!node.initializer;\n      case 166:\n        return isIdentifier(node.name) && !!node.initializer && !node.dotDotDotToken;\n      case 205:\n        return isIdentifier(node.name) && !!node.initializer && !node.dotDotDotToken;\n      case 169:\n        return !!node.initializer;\n      case 223:\n        switch (node.operatorToken.kind) {\n          case 63:\n          case 76:\n          case 75:\n          case 77:\n            return isIdentifier(node.left);\n        }\n        break;\n      case 274:\n        return true;\n    }\n    return false;\n  }\n  function isNamedEvaluation(node, cb) {\n    if (!isNamedEvaluationSource(node))\n      return false;\n    switch (node.kind) {\n      case 299:\n        return isAnonymousFunctionDefinition(node.initializer, cb);\n      case 300:\n        return isAnonymousFunctionDefinition(node.objectAssignmentInitializer, cb);\n      case 257:\n      case 166:\n      case 205:\n      case 169:\n        return isAnonymousFunctionDefinition(node.initializer, cb);\n      case 223:\n        return isAnonymousFunctionDefinition(node.right, cb);\n      case 274:\n        return isAnonymousFunctionDefinition(node.expression, cb);\n    }\n  }\n  function isPushOrUnshiftIdentifier(node) {\n    return node.escapedText === \"push\" || node.escapedText === \"unshift\";\n  }\n  function isParameterDeclaration(node) {\n    const root = getRootDeclaration(node);\n    return root.kind === 166;\n  }\n  function getRootDeclaration(node) {\n    while (node.kind === 205) {\n      node = node.parent.parent;\n    }\n    return node;\n  }\n  function nodeStartsNewLexicalEnvironment(node) {\n    const kind = node.kind;\n    return kind === 173 || kind === 215 || kind === 259 || kind === 216 || kind === 171 || kind === 174 || kind === 175 || kind === 264 || kind === 308;\n  }\n  function nodeIsSynthesized(range) {\n    return positionIsSynthesized(range.pos) || positionIsSynthesized(range.end);\n  }\n  function getOriginalSourceFile(sourceFile) {\n    return getParseTreeNode(sourceFile, isSourceFile) || sourceFile;\n  }\n  function getExpressionAssociativity(expression) {\n    const operator = getOperator(expression);\n    const hasArguments = expression.kind === 211 && expression.arguments !== void 0;\n    return getOperatorAssociativity(expression.kind, operator, hasArguments);\n  }\n  function getOperatorAssociativity(kind, operator, hasArguments) {\n    switch (kind) {\n      case 211:\n        return hasArguments ? 0 : 1;\n      case 221:\n      case 218:\n      case 219:\n      case 217:\n      case 220:\n      case 224:\n      case 226:\n        return 1;\n      case 223:\n        switch (operator) {\n          case 42:\n          case 63:\n          case 64:\n          case 65:\n          case 67:\n          case 66:\n          case 68:\n          case 69:\n          case 70:\n          case 71:\n          case 72:\n          case 73:\n          case 78:\n          case 74:\n          case 75:\n          case 76:\n          case 77:\n            return 1;\n        }\n    }\n    return 0;\n  }\n  function getExpressionPrecedence(expression) {\n    const operator = getOperator(expression);\n    const hasArguments = expression.kind === 211 && expression.arguments !== void 0;\n    return getOperatorPrecedence(expression.kind, operator, hasArguments);\n  }\n  function getOperator(expression) {\n    if (expression.kind === 223) {\n      return expression.operatorToken.kind;\n    } else if (expression.kind === 221 || expression.kind === 222) {\n      return expression.operator;\n    } else {\n      return expression.kind;\n    }\n  }\n  function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) {\n    switch (nodeKind) {\n      case 357:\n        return 0;\n      case 227:\n        return 1;\n      case 226:\n        return 2;\n      case 224:\n        return 4;\n      case 223:\n        switch (operatorKind) {\n          case 27:\n            return 0;\n          case 63:\n          case 64:\n          case 65:\n          case 67:\n          case 66:\n          case 68:\n          case 69:\n          case 70:\n          case 71:\n          case 72:\n          case 73:\n          case 78:\n          case 74:\n          case 75:\n          case 76:\n          case 77:\n            return 3;\n          default:\n            return getBinaryOperatorPrecedence(operatorKind);\n        }\n      case 213:\n      case 232:\n      case 221:\n      case 218:\n      case 219:\n      case 217:\n      case 220:\n        return 16;\n      case 222:\n        return 17;\n      case 210:\n        return 18;\n      case 211:\n        return hasArguments ? 19 : 18;\n      case 212:\n      case 208:\n      case 209:\n      case 233:\n        return 19;\n      case 231:\n      case 235:\n        return 11;\n      case 108:\n      case 106:\n      case 79:\n      case 80:\n      case 104:\n      case 110:\n      case 95:\n      case 8:\n      case 9:\n      case 10:\n      case 206:\n      case 207:\n      case 215:\n      case 216:\n      case 228:\n      case 13:\n      case 14:\n      case 225:\n      case 214:\n      case 229:\n      case 281:\n      case 282:\n      case 285:\n        return 20;\n      default:\n        return -1;\n    }\n  }\n  function getBinaryOperatorPrecedence(kind) {\n    switch (kind) {\n      case 60:\n        return 4;\n      case 56:\n        return 5;\n      case 55:\n        return 6;\n      case 51:\n        return 7;\n      case 52:\n        return 8;\n      case 50:\n        return 9;\n      case 34:\n      case 35:\n      case 36:\n      case 37:\n        return 10;\n      case 29:\n      case 31:\n      case 32:\n      case 33:\n      case 102:\n      case 101:\n      case 128:\n      case 150:\n        return 11;\n      case 47:\n      case 48:\n      case 49:\n        return 12;\n      case 39:\n      case 40:\n        return 13;\n      case 41:\n      case 43:\n      case 44:\n        return 14;\n      case 42:\n        return 15;\n    }\n    return -1;\n  }\n  function getSemanticJsxChildren(children) {\n    return filter(children, (i) => {\n      switch (i.kind) {\n        case 291:\n          return !!i.expression;\n        case 11:\n          return !i.containsOnlyTriviaWhiteSpaces;\n        default:\n          return true;\n      }\n    });\n  }\n  function createDiagnosticCollection() {\n    let nonFileDiagnostics = [];\n    const filesWithDiagnostics = [];\n    const fileDiagnostics = /* @__PURE__ */ new Map();\n    let hasReadNonFileDiagnostics = false;\n    return {\n      add,\n      lookup,\n      getGlobalDiagnostics,\n      getDiagnostics: getDiagnostics2\n    };\n    function lookup(diagnostic) {\n      let diagnostics;\n      if (diagnostic.file) {\n        diagnostics = fileDiagnostics.get(diagnostic.file.fileName);\n      } else {\n        diagnostics = nonFileDiagnostics;\n      }\n      if (!diagnostics) {\n        return void 0;\n      }\n      const result = binarySearch(diagnostics, diagnostic, identity, compareDiagnosticsSkipRelatedInformation);\n      if (result >= 0) {\n        return diagnostics[result];\n      }\n      return void 0;\n    }\n    function add(diagnostic) {\n      let diagnostics;\n      if (diagnostic.file) {\n        diagnostics = fileDiagnostics.get(diagnostic.file.fileName);\n        if (!diagnostics) {\n          diagnostics = [];\n          fileDiagnostics.set(diagnostic.file.fileName, diagnostics);\n          insertSorted(filesWithDiagnostics, diagnostic.file.fileName, compareStringsCaseSensitive);\n        }\n      } else {\n        if (hasReadNonFileDiagnostics) {\n          hasReadNonFileDiagnostics = false;\n          nonFileDiagnostics = nonFileDiagnostics.slice();\n        }\n        diagnostics = nonFileDiagnostics;\n      }\n      insertSorted(diagnostics, diagnostic, compareDiagnosticsSkipRelatedInformation);\n    }\n    function getGlobalDiagnostics() {\n      hasReadNonFileDiagnostics = true;\n      return nonFileDiagnostics;\n    }\n    function getDiagnostics2(fileName) {\n      if (fileName) {\n        return fileDiagnostics.get(fileName) || [];\n      }\n      const fileDiags = flatMapToMutable(filesWithDiagnostics, (f) => fileDiagnostics.get(f));\n      if (!nonFileDiagnostics.length) {\n        return fileDiags;\n      }\n      fileDiags.unshift(...nonFileDiagnostics);\n      return fileDiags;\n    }\n  }\n  function escapeTemplateSubstitution(str) {\n    return str.replace(templateSubstitutionRegExp, \"\\\\${\");\n  }\n  function hasInvalidEscape(template) {\n    return template && !!(isNoSubstitutionTemplateLiteral(template) ? template.templateFlags : template.head.templateFlags || some(template.templateSpans, (span) => !!span.literal.templateFlags));\n  }\n  function encodeUtf16EscapeSequence(charCode) {\n    const hexCharCode = charCode.toString(16).toUpperCase();\n    const paddedHexCode = (\"0000\" + hexCharCode).slice(-4);\n    return \"\\\\u\" + paddedHexCode;\n  }\n  function getReplacement(c, offset, input) {\n    if (c.charCodeAt(0) === 0) {\n      const lookAhead = input.charCodeAt(offset + c.length);\n      if (lookAhead >= 48 && lookAhead <= 57) {\n        return \"\\\\x00\";\n      }\n      return \"\\\\0\";\n    }\n    return escapedCharsMap.get(c) || encodeUtf16EscapeSequence(c.charCodeAt(0));\n  }\n  function escapeString(s, quoteChar) {\n    const escapedCharsRegExp = quoteChar === 96 ? backtickQuoteEscapedCharsRegExp : quoteChar === 39 ? singleQuoteEscapedCharsRegExp : doubleQuoteEscapedCharsRegExp;\n    return s.replace(escapedCharsRegExp, getReplacement);\n  }\n  function escapeNonAsciiString(s, quoteChar) {\n    s = escapeString(s, quoteChar);\n    return nonAsciiCharacters.test(s) ? s.replace(nonAsciiCharacters, (c) => encodeUtf16EscapeSequence(c.charCodeAt(0))) : s;\n  }\n  function encodeJsxCharacterEntity(charCode) {\n    const hexCharCode = charCode.toString(16).toUpperCase();\n    return \"&#x\" + hexCharCode + \";\";\n  }\n  function getJsxAttributeStringReplacement(c) {\n    if (c.charCodeAt(0) === 0) {\n      return \"&#0;\";\n    }\n    return jsxEscapedCharsMap.get(c) || encodeJsxCharacterEntity(c.charCodeAt(0));\n  }\n  function escapeJsxAttributeString(s, quoteChar) {\n    const escapedCharsRegExp = quoteChar === 39 ? jsxSingleQuoteEscapedCharsRegExp : jsxDoubleQuoteEscapedCharsRegExp;\n    return s.replace(escapedCharsRegExp, getJsxAttributeStringReplacement);\n  }\n  function stripQuotes(name) {\n    const length2 = name.length;\n    if (length2 >= 2 && name.charCodeAt(0) === name.charCodeAt(length2 - 1) && isQuoteOrBacktick(name.charCodeAt(0))) {\n      return name.substring(1, length2 - 1);\n    }\n    return name;\n  }\n  function isQuoteOrBacktick(charCode) {\n    return charCode === 39 || charCode === 34 || charCode === 96;\n  }\n  function isIntrinsicJsxName(name) {\n    const ch = name.charCodeAt(0);\n    return ch >= 97 && ch <= 122 || stringContains(name, \"-\") || stringContains(name, \":\");\n  }\n  function getIndentString(level) {\n    const singleLevel = indentStrings[1];\n    for (let current = indentStrings.length; current <= level; current++) {\n      indentStrings.push(indentStrings[current - 1] + singleLevel);\n    }\n    return indentStrings[level];\n  }\n  function getIndentSize() {\n    return indentStrings[1].length;\n  }\n  function isNightly() {\n    return stringContains(version, \"-dev\") || stringContains(version, \"-insiders\");\n  }\n  function createTextWriter(newLine) {\n    var output;\n    var indent2;\n    var lineStart;\n    var lineCount;\n    var linePos;\n    var hasTrailingComment = false;\n    function updateLineCountAndPosFor(s) {\n      const lineStartsOfS = computeLineStarts(s);\n      if (lineStartsOfS.length > 1) {\n        lineCount = lineCount + lineStartsOfS.length - 1;\n        linePos = output.length - s.length + last(lineStartsOfS);\n        lineStart = linePos - output.length === 0;\n      } else {\n        lineStart = false;\n      }\n    }\n    function writeText(s) {\n      if (s && s.length) {\n        if (lineStart) {\n          s = getIndentString(indent2) + s;\n          lineStart = false;\n        }\n        output += s;\n        updateLineCountAndPosFor(s);\n      }\n    }\n    function write(s) {\n      if (s)\n        hasTrailingComment = false;\n      writeText(s);\n    }\n    function writeComment(s) {\n      if (s)\n        hasTrailingComment = true;\n      writeText(s);\n    }\n    function reset2() {\n      output = \"\";\n      indent2 = 0;\n      lineStart = true;\n      lineCount = 0;\n      linePos = 0;\n      hasTrailingComment = false;\n    }\n    function rawWrite(s) {\n      if (s !== void 0) {\n        output += s;\n        updateLineCountAndPosFor(s);\n        hasTrailingComment = false;\n      }\n    }\n    function writeLiteral(s) {\n      if (s && s.length) {\n        write(s);\n      }\n    }\n    function writeLine(force) {\n      if (!lineStart || force) {\n        output += newLine;\n        lineCount++;\n        linePos = output.length;\n        lineStart = true;\n        hasTrailingComment = false;\n      }\n    }\n    function getTextPosWithWriteLine() {\n      return lineStart ? output.length : output.length + newLine.length;\n    }\n    reset2();\n    return {\n      write,\n      rawWrite,\n      writeLiteral,\n      writeLine,\n      increaseIndent: () => {\n        indent2++;\n      },\n      decreaseIndent: () => {\n        indent2--;\n      },\n      getIndent: () => indent2,\n      getTextPos: () => output.length,\n      getLine: () => lineCount,\n      getColumn: () => lineStart ? indent2 * getIndentSize() : output.length - linePos,\n      getText: () => output,\n      isAtStartOfLine: () => lineStart,\n      hasTrailingComment: () => hasTrailingComment,\n      hasTrailingWhitespace: () => !!output.length && isWhiteSpaceLike(output.charCodeAt(output.length - 1)),\n      clear: reset2,\n      writeKeyword: write,\n      writeOperator: write,\n      writeParameter: write,\n      writeProperty: write,\n      writePunctuation: write,\n      writeSpace: write,\n      writeStringLiteral: write,\n      writeSymbol: (s, _) => write(s),\n      writeTrailingSemicolon: write,\n      writeComment,\n      getTextPosWithWriteLine\n    };\n  }\n  function getTrailingSemicolonDeferringWriter(writer) {\n    let pendingTrailingSemicolon = false;\n    function commitPendingTrailingSemicolon() {\n      if (pendingTrailingSemicolon) {\n        writer.writeTrailingSemicolon(\";\");\n        pendingTrailingSemicolon = false;\n      }\n    }\n    return {\n      ...writer,\n      writeTrailingSemicolon() {\n        pendingTrailingSemicolon = true;\n      },\n      writeLiteral(s) {\n        commitPendingTrailingSemicolon();\n        writer.writeLiteral(s);\n      },\n      writeStringLiteral(s) {\n        commitPendingTrailingSemicolon();\n        writer.writeStringLiteral(s);\n      },\n      writeSymbol(s, sym) {\n        commitPendingTrailingSemicolon();\n        writer.writeSymbol(s, sym);\n      },\n      writePunctuation(s) {\n        commitPendingTrailingSemicolon();\n        writer.writePunctuation(s);\n      },\n      writeKeyword(s) {\n        commitPendingTrailingSemicolon();\n        writer.writeKeyword(s);\n      },\n      writeOperator(s) {\n        commitPendingTrailingSemicolon();\n        writer.writeOperator(s);\n      },\n      writeParameter(s) {\n        commitPendingTrailingSemicolon();\n        writer.writeParameter(s);\n      },\n      writeSpace(s) {\n        commitPendingTrailingSemicolon();\n        writer.writeSpace(s);\n      },\n      writeProperty(s) {\n        commitPendingTrailingSemicolon();\n        writer.writeProperty(s);\n      },\n      writeComment(s) {\n        commitPendingTrailingSemicolon();\n        writer.writeComment(s);\n      },\n      writeLine() {\n        commitPendingTrailingSemicolon();\n        writer.writeLine();\n      },\n      increaseIndent() {\n        commitPendingTrailingSemicolon();\n        writer.increaseIndent();\n      },\n      decreaseIndent() {\n        commitPendingTrailingSemicolon();\n        writer.decreaseIndent();\n      }\n    };\n  }\n  function hostUsesCaseSensitiveFileNames(host) {\n    return host.useCaseSensitiveFileNames ? host.useCaseSensitiveFileNames() : false;\n  }\n  function hostGetCanonicalFileName(host) {\n    return createGetCanonicalFileName(hostUsesCaseSensitiveFileNames(host));\n  }\n  function getResolvedExternalModuleName(host, file, referenceFile) {\n    return file.moduleName || getExternalModuleNameFromPath(host, file.fileName, referenceFile && referenceFile.fileName);\n  }\n  function getCanonicalAbsolutePath(host, path) {\n    return host.getCanonicalFileName(getNormalizedAbsolutePath(path, host.getCurrentDirectory()));\n  }\n  function getExternalModuleNameFromDeclaration(host, resolver, declaration) {\n    const file = resolver.getExternalModuleFileFromDeclaration(declaration);\n    if (!file || file.isDeclarationFile) {\n      return void 0;\n    }\n    const specifier = getExternalModuleName(declaration);\n    if (specifier && isStringLiteralLike(specifier) && !pathIsRelative(specifier.text) && getCanonicalAbsolutePath(host, file.path).indexOf(getCanonicalAbsolutePath(host, ensureTrailingDirectorySeparator(host.getCommonSourceDirectory()))) === -1) {\n      return void 0;\n    }\n    return getResolvedExternalModuleName(host, file);\n  }\n  function getExternalModuleNameFromPath(host, fileName, referencePath) {\n    const getCanonicalFileName = (f) => host.getCanonicalFileName(f);\n    const dir = toPath(referencePath ? getDirectoryPath(referencePath) : host.getCommonSourceDirectory(), host.getCurrentDirectory(), getCanonicalFileName);\n    const filePath = getNormalizedAbsolutePath(fileName, host.getCurrentDirectory());\n    const relativePath = getRelativePathToDirectoryOrUrl(dir, filePath, dir, getCanonicalFileName, false);\n    const extensionless = removeFileExtension(relativePath);\n    return referencePath ? ensurePathIsNonModuleName(extensionless) : extensionless;\n  }\n  function getOwnEmitOutputFilePath(fileName, host, extension) {\n    const compilerOptions = host.getCompilerOptions();\n    let emitOutputFilePathWithoutExtension;\n    if (compilerOptions.outDir) {\n      emitOutputFilePathWithoutExtension = removeFileExtension(getSourceFilePathInNewDir(fileName, host, compilerOptions.outDir));\n    } else {\n      emitOutputFilePathWithoutExtension = removeFileExtension(fileName);\n    }\n    return emitOutputFilePathWithoutExtension + extension;\n  }\n  function getDeclarationEmitOutputFilePath(fileName, host) {\n    return getDeclarationEmitOutputFilePathWorker(fileName, host.getCompilerOptions(), host.getCurrentDirectory(), host.getCommonSourceDirectory(), (f) => host.getCanonicalFileName(f));\n  }\n  function getDeclarationEmitOutputFilePathWorker(fileName, options, currentDirectory, commonSourceDirectory, getCanonicalFileName) {\n    const outputDir = options.declarationDir || options.outDir;\n    const path = outputDir ? getSourceFilePathInNewDirWorker(fileName, outputDir, currentDirectory, commonSourceDirectory, getCanonicalFileName) : fileName;\n    const declarationExtension = getDeclarationEmitExtensionForPath(path);\n    return removeFileExtension(path) + declarationExtension;\n  }\n  function getDeclarationEmitExtensionForPath(path) {\n    return fileExtensionIsOneOf(path, [\".mjs\", \".mts\"]) ? \".d.mts\" : fileExtensionIsOneOf(path, [\".cjs\", \".cts\"]) ? \".d.cts\" : fileExtensionIsOneOf(path, [\".json\"]) ? `.d.json.ts` : \".d.ts\";\n  }\n  function getPossibleOriginalInputExtensionForExtension(path) {\n    return fileExtensionIsOneOf(path, [\".d.mts\", \".mjs\", \".mts\"]) ? [\".mts\", \".mjs\"] : fileExtensionIsOneOf(path, [\".d.cts\", \".cjs\", \".cts\"]) ? [\".cts\", \".cjs\"] : fileExtensionIsOneOf(path, [`.d.json.ts`]) ? [\".json\"] : [\".tsx\", \".ts\", \".jsx\", \".js\"];\n  }\n  function outFile(options) {\n    return options.outFile || options.out;\n  }\n  function getPathsBasePath(options, host) {\n    var _a2, _b;\n    if (!options.paths)\n      return void 0;\n    return (_b = options.baseUrl) != null ? _b : Debug.checkDefined(options.pathsBasePath || ((_a2 = host.getCurrentDirectory) == null ? void 0 : _a2.call(host)), \"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.\");\n  }\n  function getSourceFilesToEmit(host, targetSourceFile, forceDtsEmit) {\n    const options = host.getCompilerOptions();\n    if (outFile(options)) {\n      const moduleKind = getEmitModuleKind(options);\n      const moduleEmitEnabled = options.emitDeclarationOnly || moduleKind === 2 || moduleKind === 4;\n      return filter(host.getSourceFiles(), (sourceFile) => (moduleEmitEnabled || !isExternalModule(sourceFile)) && sourceFileMayBeEmitted(sourceFile, host, forceDtsEmit));\n    } else {\n      const sourceFiles = targetSourceFile === void 0 ? host.getSourceFiles() : [targetSourceFile];\n      return filter(sourceFiles, (sourceFile) => sourceFileMayBeEmitted(sourceFile, host, forceDtsEmit));\n    }\n  }\n  function sourceFileMayBeEmitted(sourceFile, host, forceDtsEmit) {\n    const options = host.getCompilerOptions();\n    return !(options.noEmitForJsFiles && isSourceFileJS(sourceFile)) && !sourceFile.isDeclarationFile && !host.isSourceFileFromExternalLibrary(sourceFile) && (forceDtsEmit || !(isJsonSourceFile(sourceFile) && host.getResolvedProjectReferenceToRedirect(sourceFile.fileName)) && !host.isSourceOfProjectReferenceRedirect(sourceFile.fileName));\n  }\n  function getSourceFilePathInNewDir(fileName, host, newDirPath) {\n    return getSourceFilePathInNewDirWorker(fileName, newDirPath, host.getCurrentDirectory(), host.getCommonSourceDirectory(), (f) => host.getCanonicalFileName(f));\n  }\n  function getSourceFilePathInNewDirWorker(fileName, newDirPath, currentDirectory, commonSourceDirectory, getCanonicalFileName) {\n    let sourceFilePath = getNormalizedAbsolutePath(fileName, currentDirectory);\n    const isSourceFileInCommonSourceDirectory = getCanonicalFileName(sourceFilePath).indexOf(getCanonicalFileName(commonSourceDirectory)) === 0;\n    sourceFilePath = isSourceFileInCommonSourceDirectory ? sourceFilePath.substring(commonSourceDirectory.length) : sourceFilePath;\n    return combinePaths(newDirPath, sourceFilePath);\n  }\n  function writeFile(host, diagnostics, fileName, text, writeByteOrderMark, sourceFiles, data) {\n    host.writeFile(fileName, text, writeByteOrderMark, (hostErrorMessage) => {\n      diagnostics.add(createCompilerDiagnostic(Diagnostics.Could_not_write_file_0_Colon_1, fileName, hostErrorMessage));\n    }, sourceFiles, data);\n  }\n  function ensureDirectoriesExist(directoryPath, createDirectory, directoryExists) {\n    if (directoryPath.length > getRootLength(directoryPath) && !directoryExists(directoryPath)) {\n      const parentDirectory = getDirectoryPath(directoryPath);\n      ensureDirectoriesExist(parentDirectory, createDirectory, directoryExists);\n      createDirectory(directoryPath);\n    }\n  }\n  function writeFileEnsuringDirectories(path, data, writeByteOrderMark, writeFile2, createDirectory, directoryExists) {\n    try {\n      writeFile2(path, data, writeByteOrderMark);\n    } catch (e) {\n      ensureDirectoriesExist(getDirectoryPath(normalizePath(path)), createDirectory, directoryExists);\n      writeFile2(path, data, writeByteOrderMark);\n    }\n  }\n  function getLineOfLocalPosition(sourceFile, pos) {\n    const lineStarts = getLineStarts(sourceFile);\n    return computeLineOfPosition(lineStarts, pos);\n  }\n  function getLineOfLocalPositionFromLineMap(lineMap, pos) {\n    return computeLineOfPosition(lineMap, pos);\n  }\n  function getFirstConstructorWithBody(node) {\n    return find(node.members, (member) => isConstructorDeclaration(member) && nodeIsPresent(member.body));\n  }\n  function getSetAccessorValueParameter(accessor) {\n    if (accessor && accessor.parameters.length > 0) {\n      const hasThis = accessor.parameters.length === 2 && parameterIsThisKeyword(accessor.parameters[0]);\n      return accessor.parameters[hasThis ? 1 : 0];\n    }\n  }\n  function getSetAccessorTypeAnnotationNode(accessor) {\n    const parameter = getSetAccessorValueParameter(accessor);\n    return parameter && parameter.type;\n  }\n  function getThisParameter(signature) {\n    if (signature.parameters.length && !isJSDocSignature(signature)) {\n      const thisParameter = signature.parameters[0];\n      if (parameterIsThisKeyword(thisParameter)) {\n        return thisParameter;\n      }\n    }\n  }\n  function parameterIsThisKeyword(parameter) {\n    return isThisIdentifier(parameter.name);\n  }\n  function isThisIdentifier(node) {\n    return !!node && node.kind === 79 && identifierIsThisKeyword(node);\n  }\n  function isThisInTypeQuery(node) {\n    if (!isThisIdentifier(node)) {\n      return false;\n    }\n    while (isQualifiedName(node.parent) && node.parent.left === node) {\n      node = node.parent;\n    }\n    return node.parent.kind === 183;\n  }\n  function identifierIsThisKeyword(id) {\n    return id.escapedText === \"this\";\n  }\n  function getAllAccessorDeclarations(declarations, accessor) {\n    let firstAccessor;\n    let secondAccessor;\n    let getAccessor;\n    let setAccessor;\n    if (hasDynamicName(accessor)) {\n      firstAccessor = accessor;\n      if (accessor.kind === 174) {\n        getAccessor = accessor;\n      } else if (accessor.kind === 175) {\n        setAccessor = accessor;\n      } else {\n        Debug.fail(\"Accessor has wrong kind\");\n      }\n    } else {\n      forEach(declarations, (member) => {\n        if (isAccessor(member) && isStatic(member) === isStatic(accessor)) {\n          const memberName = getPropertyNameForPropertyNameNode(member.name);\n          const accessorName = getPropertyNameForPropertyNameNode(accessor.name);\n          if (memberName === accessorName) {\n            if (!firstAccessor) {\n              firstAccessor = member;\n            } else if (!secondAccessor) {\n              secondAccessor = member;\n            }\n            if (member.kind === 174 && !getAccessor) {\n              getAccessor = member;\n            }\n            if (member.kind === 175 && !setAccessor) {\n              setAccessor = member;\n            }\n          }\n        }\n      });\n    }\n    return {\n      firstAccessor,\n      secondAccessor,\n      getAccessor,\n      setAccessor\n    };\n  }\n  function getEffectiveTypeAnnotationNode(node) {\n    if (!isInJSFile(node) && isFunctionDeclaration(node))\n      return void 0;\n    const type = node.type;\n    if (type || !isInJSFile(node))\n      return type;\n    return isJSDocPropertyLikeTag(node) ? node.typeExpression && node.typeExpression.type : getJSDocType(node);\n  }\n  function getTypeAnnotationNode(node) {\n    return node.type;\n  }\n  function getEffectiveReturnTypeNode(node) {\n    return isJSDocSignature(node) ? node.type && node.type.typeExpression && node.type.typeExpression.type : node.type || (isInJSFile(node) ? getJSDocReturnType(node) : void 0);\n  }\n  function getJSDocTypeParameterDeclarations(node) {\n    return flatMap(getJSDocTags(node), (tag) => isNonTypeAliasTemplate(tag) ? tag.typeParameters : void 0);\n  }\n  function isNonTypeAliasTemplate(tag) {\n    return isJSDocTemplateTag(tag) && !(tag.parent.kind === 323 && (tag.parent.tags.some(isJSDocTypeAlias) || tag.parent.tags.some(isJSDocOverloadTag)));\n  }\n  function getEffectiveSetAccessorTypeAnnotationNode(node) {\n    const parameter = getSetAccessorValueParameter(node);\n    return parameter && getEffectiveTypeAnnotationNode(parameter);\n  }\n  function emitNewLineBeforeLeadingComments(lineMap, writer, node, leadingComments) {\n    emitNewLineBeforeLeadingCommentsOfPosition(lineMap, writer, node.pos, leadingComments);\n  }\n  function emitNewLineBeforeLeadingCommentsOfPosition(lineMap, writer, pos, leadingComments) {\n    if (leadingComments && leadingComments.length && pos !== leadingComments[0].pos && getLineOfLocalPositionFromLineMap(lineMap, pos) !== getLineOfLocalPositionFromLineMap(lineMap, leadingComments[0].pos)) {\n      writer.writeLine();\n    }\n  }\n  function emitNewLineBeforeLeadingCommentOfPosition(lineMap, writer, pos, commentPos) {\n    if (pos !== commentPos && getLineOfLocalPositionFromLineMap(lineMap, pos) !== getLineOfLocalPositionFromLineMap(lineMap, commentPos)) {\n      writer.writeLine();\n    }\n  }\n  function emitComments(text, lineMap, writer, comments, leadingSeparator, trailingSeparator, newLine, writeComment) {\n    if (comments && comments.length > 0) {\n      if (leadingSeparator) {\n        writer.writeSpace(\" \");\n      }\n      let emitInterveningSeparator = false;\n      for (const comment of comments) {\n        if (emitInterveningSeparator) {\n          writer.writeSpace(\" \");\n          emitInterveningSeparator = false;\n        }\n        writeComment(text, lineMap, writer, comment.pos, comment.end, newLine);\n        if (comment.hasTrailingNewLine) {\n          writer.writeLine();\n        } else {\n          emitInterveningSeparator = true;\n        }\n      }\n      if (emitInterveningSeparator && trailingSeparator) {\n        writer.writeSpace(\" \");\n      }\n    }\n  }\n  function emitDetachedComments(text, lineMap, writer, writeComment, node, newLine, removeComments) {\n    let leadingComments;\n    let currentDetachedCommentInfo;\n    if (removeComments) {\n      if (node.pos === 0) {\n        leadingComments = filter(getLeadingCommentRanges(text, node.pos), isPinnedCommentLocal);\n      }\n    } else {\n      leadingComments = getLeadingCommentRanges(text, node.pos);\n    }\n    if (leadingComments) {\n      const detachedComments = [];\n      let lastComment;\n      for (const comment of leadingComments) {\n        if (lastComment) {\n          const lastCommentLine = getLineOfLocalPositionFromLineMap(lineMap, lastComment.end);\n          const commentLine = getLineOfLocalPositionFromLineMap(lineMap, comment.pos);\n          if (commentLine >= lastCommentLine + 2) {\n            break;\n          }\n        }\n        detachedComments.push(comment);\n        lastComment = comment;\n      }\n      if (detachedComments.length) {\n        const lastCommentLine = getLineOfLocalPositionFromLineMap(lineMap, last(detachedComments).end);\n        const nodeLine = getLineOfLocalPositionFromLineMap(lineMap, skipTrivia(text, node.pos));\n        if (nodeLine >= lastCommentLine + 2) {\n          emitNewLineBeforeLeadingComments(lineMap, writer, node, leadingComments);\n          emitComments(text, lineMap, writer, detachedComments, false, true, newLine, writeComment);\n          currentDetachedCommentInfo = { nodePos: node.pos, detachedCommentEndPos: last(detachedComments).end };\n        }\n      }\n    }\n    return currentDetachedCommentInfo;\n    function isPinnedCommentLocal(comment) {\n      return isPinnedComment(text, comment.pos);\n    }\n  }\n  function writeCommentRange(text, lineMap, writer, commentPos, commentEnd, newLine) {\n    if (text.charCodeAt(commentPos + 1) === 42) {\n      const firstCommentLineAndCharacter = computeLineAndCharacterOfPosition(lineMap, commentPos);\n      const lineCount = lineMap.length;\n      let firstCommentLineIndent;\n      for (let pos = commentPos, currentLine = firstCommentLineAndCharacter.line; pos < commentEnd; currentLine++) {\n        const nextLineStart = currentLine + 1 === lineCount ? text.length + 1 : lineMap[currentLine + 1];\n        if (pos !== commentPos) {\n          if (firstCommentLineIndent === void 0) {\n            firstCommentLineIndent = calculateIndent(text, lineMap[firstCommentLineAndCharacter.line], commentPos);\n          }\n          const currentWriterIndentSpacing = writer.getIndent() * getIndentSize();\n          const spacesToEmit = currentWriterIndentSpacing - firstCommentLineIndent + calculateIndent(text, pos, nextLineStart);\n          if (spacesToEmit > 0) {\n            let numberOfSingleSpacesToEmit = spacesToEmit % getIndentSize();\n            const indentSizeSpaceString = getIndentString((spacesToEmit - numberOfSingleSpacesToEmit) / getIndentSize());\n            writer.rawWrite(indentSizeSpaceString);\n            while (numberOfSingleSpacesToEmit) {\n              writer.rawWrite(\" \");\n              numberOfSingleSpacesToEmit--;\n            }\n          } else {\n            writer.rawWrite(\"\");\n          }\n        }\n        writeTrimmedCurrentLine(text, commentEnd, writer, newLine, pos, nextLineStart);\n        pos = nextLineStart;\n      }\n    } else {\n      writer.writeComment(text.substring(commentPos, commentEnd));\n    }\n  }\n  function writeTrimmedCurrentLine(text, commentEnd, writer, newLine, pos, nextLineStart) {\n    const end = Math.min(commentEnd, nextLineStart - 1);\n    const currentLineText = trimString(text.substring(pos, end));\n    if (currentLineText) {\n      writer.writeComment(currentLineText);\n      if (end !== commentEnd) {\n        writer.writeLine();\n      }\n    } else {\n      writer.rawWrite(newLine);\n    }\n  }\n  function calculateIndent(text, pos, end) {\n    let currentLineIndent = 0;\n    for (; pos < end && isWhiteSpaceSingleLine(text.charCodeAt(pos)); pos++) {\n      if (text.charCodeAt(pos) === 9) {\n        currentLineIndent += getIndentSize() - currentLineIndent % getIndentSize();\n      } else {\n        currentLineIndent++;\n      }\n    }\n    return currentLineIndent;\n  }\n  function hasEffectiveModifiers(node) {\n    return getEffectiveModifierFlags(node) !== 0;\n  }\n  function hasSyntacticModifiers(node) {\n    return getSyntacticModifierFlags(node) !== 0;\n  }\n  function hasEffectiveModifier(node, flags) {\n    return !!getSelectedEffectiveModifierFlags(node, flags);\n  }\n  function hasSyntacticModifier(node, flags) {\n    return !!getSelectedSyntacticModifierFlags(node, flags);\n  }\n  function isStatic(node) {\n    return isClassElement(node) && hasStaticModifier(node) || isClassStaticBlockDeclaration(node);\n  }\n  function hasStaticModifier(node) {\n    return hasSyntacticModifier(node, 32);\n  }\n  function hasOverrideModifier(node) {\n    return hasEffectiveModifier(node, 16384);\n  }\n  function hasAbstractModifier(node) {\n    return hasSyntacticModifier(node, 256);\n  }\n  function hasAmbientModifier(node) {\n    return hasSyntacticModifier(node, 2);\n  }\n  function hasAccessorModifier(node) {\n    return hasSyntacticModifier(node, 128);\n  }\n  function hasEffectiveReadonlyModifier(node) {\n    return hasEffectiveModifier(node, 64);\n  }\n  function hasDecorators(node) {\n    return hasSyntacticModifier(node, 131072);\n  }\n  function getSelectedEffectiveModifierFlags(node, flags) {\n    return getEffectiveModifierFlags(node) & flags;\n  }\n  function getSelectedSyntacticModifierFlags(node, flags) {\n    return getSyntacticModifierFlags(node) & flags;\n  }\n  function getModifierFlagsWorker(node, includeJSDoc, alwaysIncludeJSDoc) {\n    if (node.kind >= 0 && node.kind <= 162) {\n      return 0;\n    }\n    if (!(node.modifierFlagsCache & 536870912)) {\n      node.modifierFlagsCache = getSyntacticModifierFlagsNoCache(node) | 536870912;\n    }\n    if (includeJSDoc && !(node.modifierFlagsCache & 4096) && (alwaysIncludeJSDoc || isInJSFile(node)) && node.parent) {\n      node.modifierFlagsCache |= getJSDocModifierFlagsNoCache(node) | 4096;\n    }\n    return node.modifierFlagsCache & ~(536870912 | 4096);\n  }\n  function getEffectiveModifierFlags(node) {\n    return getModifierFlagsWorker(node, true);\n  }\n  function getEffectiveModifierFlagsAlwaysIncludeJSDoc(node) {\n    return getModifierFlagsWorker(node, true, true);\n  }\n  function getSyntacticModifierFlags(node) {\n    return getModifierFlagsWorker(node, false);\n  }\n  function getJSDocModifierFlagsNoCache(node) {\n    let flags = 0;\n    if (!!node.parent && !isParameter(node)) {\n      if (isInJSFile(node)) {\n        if (getJSDocPublicTagNoCache(node))\n          flags |= 4;\n        if (getJSDocPrivateTagNoCache(node))\n          flags |= 8;\n        if (getJSDocProtectedTagNoCache(node))\n          flags |= 16;\n        if (getJSDocReadonlyTagNoCache(node))\n          flags |= 64;\n        if (getJSDocOverrideTagNoCache(node))\n          flags |= 16384;\n      }\n      if (getJSDocDeprecatedTagNoCache(node))\n        flags |= 8192;\n    }\n    return flags;\n  }\n  function getEffectiveModifierFlagsNoCache(node) {\n    return getSyntacticModifierFlagsNoCache(node) | getJSDocModifierFlagsNoCache(node);\n  }\n  function getSyntacticModifierFlagsNoCache(node) {\n    let flags = canHaveModifiers(node) ? modifiersToFlags(node.modifiers) : 0;\n    if (node.flags & 4 || node.kind === 79 && node.flags & 2048) {\n      flags |= 1;\n    }\n    return flags;\n  }\n  function modifiersToFlags(modifiers) {\n    let flags = 0;\n    if (modifiers) {\n      for (const modifier of modifiers) {\n        flags |= modifierToFlag(modifier.kind);\n      }\n    }\n    return flags;\n  }\n  function modifierToFlag(token) {\n    switch (token) {\n      case 124:\n        return 32;\n      case 123:\n        return 4;\n      case 122:\n        return 16;\n      case 121:\n        return 8;\n      case 126:\n        return 256;\n      case 127:\n        return 128;\n      case 93:\n        return 1;\n      case 136:\n        return 2;\n      case 85:\n        return 2048;\n      case 88:\n        return 1024;\n      case 132:\n        return 512;\n      case 146:\n        return 64;\n      case 161:\n        return 16384;\n      case 101:\n        return 32768;\n      case 145:\n        return 65536;\n      case 167:\n        return 131072;\n    }\n    return 0;\n  }\n  function isBinaryLogicalOperator(token) {\n    return token === 56 || token === 55;\n  }\n  function isLogicalOperator(token) {\n    return isBinaryLogicalOperator(token) || token === 53;\n  }\n  function isLogicalOrCoalescingAssignmentOperator(token) {\n    return token === 75 || token === 76 || token === 77;\n  }\n  function isLogicalOrCoalescingAssignmentExpression(expr) {\n    return isBinaryExpression(expr) && isLogicalOrCoalescingAssignmentOperator(expr.operatorToken.kind);\n  }\n  function isLogicalOrCoalescingBinaryOperator(token) {\n    return isBinaryLogicalOperator(token) || token === 60;\n  }\n  function isLogicalOrCoalescingBinaryExpression(expr) {\n    return isBinaryExpression(expr) && isLogicalOrCoalescingBinaryOperator(expr.operatorToken.kind);\n  }\n  function isAssignmentOperator(token) {\n    return token >= 63 && token <= 78;\n  }\n  function tryGetClassExtendingExpressionWithTypeArguments(node) {\n    const cls = tryGetClassImplementingOrExtendingExpressionWithTypeArguments(node);\n    return cls && !cls.isImplements ? cls.class : void 0;\n  }\n  function tryGetClassImplementingOrExtendingExpressionWithTypeArguments(node) {\n    if (isExpressionWithTypeArguments(node)) {\n      if (isHeritageClause(node.parent) && isClassLike(node.parent.parent)) {\n        return { class: node.parent.parent, isImplements: node.parent.token === 117 };\n      }\n      if (isJSDocAugmentsTag(node.parent)) {\n        const host = getEffectiveJSDocHost(node.parent);\n        if (host && isClassLike(host)) {\n          return { class: host, isImplements: false };\n        }\n      }\n    }\n    return void 0;\n  }\n  function isAssignmentExpression(node, excludeCompoundAssignment) {\n    return isBinaryExpression(node) && (excludeCompoundAssignment ? node.operatorToken.kind === 63 : isAssignmentOperator(node.operatorToken.kind)) && isLeftHandSideExpression(node.left);\n  }\n  function isLeftHandSideOfAssignment(node) {\n    return isAssignmentExpression(node.parent) && node.parent.left === node;\n  }\n  function isDestructuringAssignment(node) {\n    if (isAssignmentExpression(node, true)) {\n      const kind = node.left.kind;\n      return kind === 207 || kind === 206;\n    }\n    return false;\n  }\n  function isExpressionWithTypeArgumentsInClassExtendsClause(node) {\n    return tryGetClassExtendingExpressionWithTypeArguments(node) !== void 0;\n  }\n  function isEntityNameExpression(node) {\n    return node.kind === 79 || isPropertyAccessEntityNameExpression(node);\n  }\n  function getFirstIdentifier(node) {\n    switch (node.kind) {\n      case 79:\n        return node;\n      case 163:\n        do {\n          node = node.left;\n        } while (node.kind !== 79);\n        return node;\n      case 208:\n        do {\n          node = node.expression;\n        } while (node.kind !== 79);\n        return node;\n    }\n  }\n  function isDottedName(node) {\n    return node.kind === 79 || node.kind === 108 || node.kind === 106 || node.kind === 233 || node.kind === 208 && isDottedName(node.expression) || node.kind === 214 && isDottedName(node.expression);\n  }\n  function isPropertyAccessEntityNameExpression(node) {\n    return isPropertyAccessExpression(node) && isIdentifier(node.name) && isEntityNameExpression(node.expression);\n  }\n  function tryGetPropertyAccessOrIdentifierToString(expr) {\n    if (isPropertyAccessExpression(expr)) {\n      const baseStr = tryGetPropertyAccessOrIdentifierToString(expr.expression);\n      if (baseStr !== void 0) {\n        return baseStr + \".\" + entityNameToString(expr.name);\n      }\n    } else if (isElementAccessExpression(expr)) {\n      const baseStr = tryGetPropertyAccessOrIdentifierToString(expr.expression);\n      if (baseStr !== void 0 && isPropertyName(expr.argumentExpression)) {\n        return baseStr + \".\" + getPropertyNameForPropertyNameNode(expr.argumentExpression);\n      }\n    } else if (isIdentifier(expr)) {\n      return unescapeLeadingUnderscores(expr.escapedText);\n    }\n    return void 0;\n  }\n  function isPrototypeAccess(node) {\n    return isBindableStaticAccessExpression(node) && getElementOrPropertyAccessName(node) === \"prototype\";\n  }\n  function isRightSideOfQualifiedNameOrPropertyAccess(node) {\n    return node.parent.kind === 163 && node.parent.right === node || node.parent.kind === 208 && node.parent.name === node;\n  }\n  function isRightSideOfAccessExpression(node) {\n    return isPropertyAccessExpression(node.parent) && node.parent.name === node || isElementAccessExpression(node.parent) && node.parent.argumentExpression === node;\n  }\n  function isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(node) {\n    return isQualifiedName(node.parent) && node.parent.right === node || isPropertyAccessExpression(node.parent) && node.parent.name === node || isJSDocMemberName(node.parent) && node.parent.right === node;\n  }\n  function isEmptyObjectLiteral(expression) {\n    return expression.kind === 207 && expression.properties.length === 0;\n  }\n  function isEmptyArrayLiteral(expression) {\n    return expression.kind === 206 && expression.elements.length === 0;\n  }\n  function getLocalSymbolForExportDefault(symbol) {\n    if (!isExportDefaultSymbol(symbol) || !symbol.declarations)\n      return void 0;\n    for (const decl of symbol.declarations) {\n      if (decl.localSymbol)\n        return decl.localSymbol;\n    }\n    return void 0;\n  }\n  function isExportDefaultSymbol(symbol) {\n    return symbol && length(symbol.declarations) > 0 && hasSyntacticModifier(symbol.declarations[0], 1024);\n  }\n  function tryExtractTSExtension(fileName) {\n    return find(supportedTSExtensionsForExtractExtension, (extension) => fileExtensionIs(fileName, extension));\n  }\n  function getExpandedCharCodes(input) {\n    const output = [];\n    const length2 = input.length;\n    for (let i = 0; i < length2; i++) {\n      const charCode = input.charCodeAt(i);\n      if (charCode < 128) {\n        output.push(charCode);\n      } else if (charCode < 2048) {\n        output.push(charCode >> 6 | 192);\n        output.push(charCode & 63 | 128);\n      } else if (charCode < 65536) {\n        output.push(charCode >> 12 | 224);\n        output.push(charCode >> 6 & 63 | 128);\n        output.push(charCode & 63 | 128);\n      } else if (charCode < 131072) {\n        output.push(charCode >> 18 | 240);\n        output.push(charCode >> 12 & 63 | 128);\n        output.push(charCode >> 6 & 63 | 128);\n        output.push(charCode & 63 | 128);\n      } else {\n        Debug.assert(false, \"Unexpected code point\");\n      }\n    }\n    return output;\n  }\n  function convertToBase64(input) {\n    let result = \"\";\n    const charCodes = getExpandedCharCodes(input);\n    let i = 0;\n    const length2 = charCodes.length;\n    let byte1, byte2, byte3, byte4;\n    while (i < length2) {\n      byte1 = charCodes[i] >> 2;\n      byte2 = (charCodes[i] & 3) << 4 | charCodes[i + 1] >> 4;\n      byte3 = (charCodes[i + 1] & 15) << 2 | charCodes[i + 2] >> 6;\n      byte4 = charCodes[i + 2] & 63;\n      if (i + 1 >= length2) {\n        byte3 = byte4 = 64;\n      } else if (i + 2 >= length2) {\n        byte4 = 64;\n      }\n      result += base64Digits.charAt(byte1) + base64Digits.charAt(byte2) + base64Digits.charAt(byte3) + base64Digits.charAt(byte4);\n      i += 3;\n    }\n    return result;\n  }\n  function getStringFromExpandedCharCodes(codes) {\n    let output = \"\";\n    let i = 0;\n    const length2 = codes.length;\n    while (i < length2) {\n      const charCode = codes[i];\n      if (charCode < 128) {\n        output += String.fromCharCode(charCode);\n        i++;\n      } else if ((charCode & 192) === 192) {\n        let value = charCode & 63;\n        i++;\n        let nextCode = codes[i];\n        while ((nextCode & 192) === 128) {\n          value = value << 6 | nextCode & 63;\n          i++;\n          nextCode = codes[i];\n        }\n        output += String.fromCharCode(value);\n      } else {\n        output += String.fromCharCode(charCode);\n        i++;\n      }\n    }\n    return output;\n  }\n  function base64encode(host, input) {\n    if (host && host.base64encode) {\n      return host.base64encode(input);\n    }\n    return convertToBase64(input);\n  }\n  function base64decode(host, input) {\n    if (host && host.base64decode) {\n      return host.base64decode(input);\n    }\n    const length2 = input.length;\n    const expandedCharCodes = [];\n    let i = 0;\n    while (i < length2) {\n      if (input.charCodeAt(i) === base64Digits.charCodeAt(64)) {\n        break;\n      }\n      const ch1 = base64Digits.indexOf(input[i]);\n      const ch2 = base64Digits.indexOf(input[i + 1]);\n      const ch3 = base64Digits.indexOf(input[i + 2]);\n      const ch4 = base64Digits.indexOf(input[i + 3]);\n      const code1 = (ch1 & 63) << 2 | ch2 >> 4 & 3;\n      const code2 = (ch2 & 15) << 4 | ch3 >> 2 & 15;\n      const code3 = (ch3 & 3) << 6 | ch4 & 63;\n      if (code2 === 0 && ch3 !== 0) {\n        expandedCharCodes.push(code1);\n      } else if (code3 === 0 && ch4 !== 0) {\n        expandedCharCodes.push(code1, code2);\n      } else {\n        expandedCharCodes.push(code1, code2, code3);\n      }\n      i += 4;\n    }\n    return getStringFromExpandedCharCodes(expandedCharCodes);\n  }\n  function readJsonOrUndefined(path, hostOrText) {\n    const jsonText = isString(hostOrText) ? hostOrText : hostOrText.readFile(path);\n    if (!jsonText)\n      return void 0;\n    const result = parseConfigFileTextToJson(path, jsonText);\n    return !result.error ? result.config : void 0;\n  }\n  function readJson(path, host) {\n    return readJsonOrUndefined(path, host) || {};\n  }\n  function directoryProbablyExists(directoryName, host) {\n    return !host.directoryExists || host.directoryExists(directoryName);\n  }\n  function getNewLineCharacter(options) {\n    switch (options.newLine) {\n      case 0:\n        return carriageReturnLineFeed;\n      case 1:\n      case void 0:\n        return lineFeed;\n    }\n  }\n  function createRange(pos, end = pos) {\n    Debug.assert(end >= pos || end === -1);\n    return { pos, end };\n  }\n  function moveRangeEnd(range, end) {\n    return createRange(range.pos, end);\n  }\n  function moveRangePos(range, pos) {\n    return createRange(pos, range.end);\n  }\n  function moveRangePastDecorators(node) {\n    const lastDecorator = canHaveModifiers(node) ? findLast(node.modifiers, isDecorator) : void 0;\n    return lastDecorator && !positionIsSynthesized(lastDecorator.end) ? moveRangePos(node, lastDecorator.end) : node;\n  }\n  function moveRangePastModifiers(node) {\n    if (isPropertyDeclaration(node) || isMethodDeclaration(node)) {\n      return moveRangePos(node, node.name.pos);\n    }\n    const lastModifier = canHaveModifiers(node) ? lastOrUndefined(node.modifiers) : void 0;\n    return lastModifier && !positionIsSynthesized(lastModifier.end) ? moveRangePos(node, lastModifier.end) : moveRangePastDecorators(node);\n  }\n  function isCollapsedRange(range) {\n    return range.pos === range.end;\n  }\n  function createTokenRange(pos, token) {\n    return createRange(pos, pos + tokenToString(token).length);\n  }\n  function rangeIsOnSingleLine(range, sourceFile) {\n    return rangeStartIsOnSameLineAsRangeEnd(range, range, sourceFile);\n  }\n  function rangeStartPositionsAreOnSameLine(range1, range2, sourceFile) {\n    return positionsAreOnSameLine(getStartPositionOfRange(range1, sourceFile, false), getStartPositionOfRange(range2, sourceFile, false), sourceFile);\n  }\n  function rangeEndPositionsAreOnSameLine(range1, range2, sourceFile) {\n    return positionsAreOnSameLine(range1.end, range2.end, sourceFile);\n  }\n  function rangeStartIsOnSameLineAsRangeEnd(range1, range2, sourceFile) {\n    return positionsAreOnSameLine(getStartPositionOfRange(range1, sourceFile, false), range2.end, sourceFile);\n  }\n  function rangeEndIsOnSameLineAsRangeStart(range1, range2, sourceFile) {\n    return positionsAreOnSameLine(range1.end, getStartPositionOfRange(range2, sourceFile, false), sourceFile);\n  }\n  function getLinesBetweenRangeEndAndRangeStart(range1, range2, sourceFile, includeSecondRangeComments) {\n    const range2Start = getStartPositionOfRange(range2, sourceFile, includeSecondRangeComments);\n    return getLinesBetweenPositions(sourceFile, range1.end, range2Start);\n  }\n  function getLinesBetweenRangeEndPositions(range1, range2, sourceFile) {\n    return getLinesBetweenPositions(sourceFile, range1.end, range2.end);\n  }\n  function isNodeArrayMultiLine(list, sourceFile) {\n    return !positionsAreOnSameLine(list.pos, list.end, sourceFile);\n  }\n  function positionsAreOnSameLine(pos1, pos2, sourceFile) {\n    return getLinesBetweenPositions(sourceFile, pos1, pos2) === 0;\n  }\n  function getStartPositionOfRange(range, sourceFile, includeComments) {\n    return positionIsSynthesized(range.pos) ? -1 : skipTrivia(sourceFile.text, range.pos, false, includeComments);\n  }\n  function getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(pos, stopPos, sourceFile, includeComments) {\n    const startPos = skipTrivia(sourceFile.text, pos, false, includeComments);\n    const prevPos = getPreviousNonWhitespacePosition(startPos, stopPos, sourceFile);\n    return getLinesBetweenPositions(sourceFile, prevPos != null ? prevPos : stopPos, startPos);\n  }\n  function getLinesBetweenPositionAndNextNonWhitespaceCharacter(pos, stopPos, sourceFile, includeComments) {\n    const nextPos = skipTrivia(sourceFile.text, pos, false, includeComments);\n    return getLinesBetweenPositions(sourceFile, pos, Math.min(stopPos, nextPos));\n  }\n  function getPreviousNonWhitespacePosition(pos, stopPos = 0, sourceFile) {\n    while (pos-- > stopPos) {\n      if (!isWhiteSpaceLike(sourceFile.text.charCodeAt(pos))) {\n        return pos;\n      }\n    }\n  }\n  function isDeclarationNameOfEnumOrNamespace(node) {\n    const parseNode = getParseTreeNode(node);\n    if (parseNode) {\n      switch (parseNode.parent.kind) {\n        case 263:\n        case 264:\n          return parseNode === parseNode.parent.name;\n      }\n    }\n    return false;\n  }\n  function getInitializedVariables(node) {\n    return filter(node.declarations, isInitializedVariable);\n  }\n  function isInitializedVariable(node) {\n    return isVariableDeclaration(node) && node.initializer !== void 0;\n  }\n  function isWatchSet(options) {\n    return options.watch && hasProperty(options, \"watch\");\n  }\n  function closeFileWatcher(watcher) {\n    watcher.close();\n  }\n  function getCheckFlags(symbol) {\n    return symbol.flags & 33554432 ? symbol.links.checkFlags : 0;\n  }\n  function getDeclarationModifierFlagsFromSymbol(s, isWrite = false) {\n    if (s.valueDeclaration) {\n      const declaration = isWrite && s.declarations && find(s.declarations, isSetAccessorDeclaration) || s.flags & 32768 && find(s.declarations, isGetAccessorDeclaration) || s.valueDeclaration;\n      const flags = getCombinedModifierFlags(declaration);\n      return s.parent && s.parent.flags & 32 ? flags : flags & ~28;\n    }\n    if (getCheckFlags(s) & 6) {\n      const checkFlags = s.links.checkFlags;\n      const accessModifier = checkFlags & 1024 ? 8 : checkFlags & 256 ? 4 : 16;\n      const staticModifier = checkFlags & 2048 ? 32 : 0;\n      return accessModifier | staticModifier;\n    }\n    if (s.flags & 4194304) {\n      return 4 | 32;\n    }\n    return 0;\n  }\n  function skipAlias(symbol, checker) {\n    return symbol.flags & 2097152 ? checker.getAliasedSymbol(symbol) : symbol;\n  }\n  function getCombinedLocalAndExportSymbolFlags(symbol) {\n    return symbol.exportSymbol ? symbol.exportSymbol.flags | symbol.flags : symbol.flags;\n  }\n  function isWriteOnlyAccess(node) {\n    return accessKind(node) === 1;\n  }\n  function isWriteAccess(node) {\n    return accessKind(node) !== 0;\n  }\n  function accessKind(node) {\n    const { parent: parent2 } = node;\n    if (!parent2)\n      return 0;\n    switch (parent2.kind) {\n      case 214:\n        return accessKind(parent2);\n      case 222:\n      case 221:\n        const { operator } = parent2;\n        return operator === 45 || operator === 46 ? writeOrReadWrite() : 0;\n      case 223:\n        const { left, operatorToken } = parent2;\n        return left === node && isAssignmentOperator(operatorToken.kind) ? operatorToken.kind === 63 ? 1 : writeOrReadWrite() : 0;\n      case 208:\n        return parent2.name !== node ? 0 : accessKind(parent2);\n      case 299: {\n        const parentAccess = accessKind(parent2.parent);\n        return node === parent2.name ? reverseAccessKind(parentAccess) : parentAccess;\n      }\n      case 300:\n        return node === parent2.objectAssignmentInitializer ? 0 : accessKind(parent2.parent);\n      case 206:\n        return accessKind(parent2);\n      default:\n        return 0;\n    }\n    function writeOrReadWrite() {\n      return parent2.parent && walkUpParenthesizedExpressions(parent2.parent).kind === 241 ? 1 : 2;\n    }\n  }\n  function reverseAccessKind(a) {\n    switch (a) {\n      case 0:\n        return 1;\n      case 1:\n        return 0;\n      case 2:\n        return 2;\n      default:\n        return Debug.assertNever(a);\n    }\n  }\n  function compareDataObjects(dst, src) {\n    if (!dst || !src || Object.keys(dst).length !== Object.keys(src).length) {\n      return false;\n    }\n    for (const e in dst) {\n      if (typeof dst[e] === \"object\") {\n        if (!compareDataObjects(dst[e], src[e])) {\n          return false;\n        }\n      } else if (typeof dst[e] !== \"function\") {\n        if (dst[e] !== src[e]) {\n          return false;\n        }\n      }\n    }\n    return true;\n  }\n  function clearMap(map2, onDeleteValue) {\n    map2.forEach(onDeleteValue);\n    map2.clear();\n  }\n  function mutateMapSkippingNewValues(map2, newMap, options) {\n    const { onDeleteValue, onExistingValue } = options;\n    map2.forEach((existingValue, key) => {\n      const valueInNewMap = newMap.get(key);\n      if (valueInNewMap === void 0) {\n        map2.delete(key);\n        onDeleteValue(existingValue, key);\n      } else if (onExistingValue) {\n        onExistingValue(existingValue, valueInNewMap, key);\n      }\n    });\n  }\n  function mutateMap(map2, newMap, options) {\n    mutateMapSkippingNewValues(map2, newMap, options);\n    const { createNewValue } = options;\n    newMap.forEach((valueInNewMap, key) => {\n      if (!map2.has(key)) {\n        map2.set(key, createNewValue(key, valueInNewMap));\n      }\n    });\n  }\n  function isAbstractConstructorSymbol(symbol) {\n    if (symbol.flags & 32) {\n      const declaration = getClassLikeDeclarationOfSymbol(symbol);\n      return !!declaration && hasSyntacticModifier(declaration, 256);\n    }\n    return false;\n  }\n  function getClassLikeDeclarationOfSymbol(symbol) {\n    var _a2;\n    return (_a2 = symbol.declarations) == null ? void 0 : _a2.find(isClassLike);\n  }\n  function getObjectFlags(type) {\n    return type.flags & 3899393 ? type.objectFlags : 0;\n  }\n  function forSomeAncestorDirectory(directory, callback) {\n    return !!forEachAncestorDirectory(directory, (d) => callback(d) ? true : void 0);\n  }\n  function isUMDExportSymbol(symbol) {\n    return !!symbol && !!symbol.declarations && !!symbol.declarations[0] && isNamespaceExportDeclaration(symbol.declarations[0]);\n  }\n  function showModuleSpecifier({ moduleSpecifier }) {\n    return isStringLiteral(moduleSpecifier) ? moduleSpecifier.text : getTextOfNode(moduleSpecifier);\n  }\n  function getLastChild(node) {\n    let lastChild;\n    forEachChild(node, (child) => {\n      if (nodeIsPresent(child))\n        lastChild = child;\n    }, (children) => {\n      for (let i = children.length - 1; i >= 0; i--) {\n        if (nodeIsPresent(children[i])) {\n          lastChild = children[i];\n          break;\n        }\n      }\n    });\n    return lastChild;\n  }\n  function addToSeen(seen, key, value = true) {\n    if (seen.has(key)) {\n      return false;\n    }\n    seen.set(key, value);\n    return true;\n  }\n  function isObjectTypeDeclaration(node) {\n    return isClassLike(node) || isInterfaceDeclaration(node) || isTypeLiteralNode(node);\n  }\n  function isTypeNodeKind(kind) {\n    return kind >= 179 && kind <= 202 || kind === 131 || kind === 157 || kind === 148 || kind === 160 || kind === 149 || kind === 134 || kind === 152 || kind === 153 || kind === 114 || kind === 155 || kind === 144 || kind === 139 || kind === 230 || kind === 315 || kind === 316 || kind === 317 || kind === 318 || kind === 319 || kind === 320 || kind === 321;\n  }\n  function isAccessExpression(node) {\n    return node.kind === 208 || node.kind === 209;\n  }\n  function getNameOfAccessExpression(node) {\n    if (node.kind === 208) {\n      return node.name;\n    }\n    Debug.assert(node.kind === 209);\n    return node.argumentExpression;\n  }\n  function isBundleFileTextLike(section) {\n    switch (section.kind) {\n      case \"text\":\n      case \"internal\":\n        return true;\n      default:\n        return false;\n    }\n  }\n  function isNamedImportsOrExports(node) {\n    return node.kind === 272 || node.kind === 276;\n  }\n  function getLeftmostAccessExpression(expr) {\n    while (isAccessExpression(expr)) {\n      expr = expr.expression;\n    }\n    return expr;\n  }\n  function forEachNameInAccessChainWalkingLeft(name, action) {\n    if (isAccessExpression(name.parent) && isRightSideOfAccessExpression(name)) {\n      return walkAccessExpression(name.parent);\n    }\n    function walkAccessExpression(access) {\n      if (access.kind === 208) {\n        const res = action(access.name);\n        if (res !== void 0) {\n          return res;\n        }\n      } else if (access.kind === 209) {\n        if (isIdentifier(access.argumentExpression) || isStringLiteralLike(access.argumentExpression)) {\n          const res = action(access.argumentExpression);\n          if (res !== void 0) {\n            return res;\n          }\n        } else {\n          return void 0;\n        }\n      }\n      if (isAccessExpression(access.expression)) {\n        return walkAccessExpression(access.expression);\n      }\n      if (isIdentifier(access.expression)) {\n        return action(access.expression);\n      }\n      return void 0;\n    }\n  }\n  function getLeftmostExpression(node, stopAtCallExpressions) {\n    while (true) {\n      switch (node.kind) {\n        case 222:\n          node = node.operand;\n          continue;\n        case 223:\n          node = node.left;\n          continue;\n        case 224:\n          node = node.condition;\n          continue;\n        case 212:\n          node = node.tag;\n          continue;\n        case 210:\n          if (stopAtCallExpressions) {\n            return node;\n          }\n        case 231:\n        case 209:\n        case 208:\n        case 232:\n        case 356:\n        case 235:\n          node = node.expression;\n          continue;\n      }\n      return node;\n    }\n  }\n  function Symbol4(flags, name) {\n    this.flags = flags;\n    this.escapedName = name;\n    this.declarations = void 0;\n    this.valueDeclaration = void 0;\n    this.id = 0;\n    this.mergeId = 0;\n    this.parent = void 0;\n    this.members = void 0;\n    this.exports = void 0;\n    this.exportSymbol = void 0;\n    this.constEnumOnlyModule = void 0;\n    this.isReferenced = void 0;\n    this.isAssigned = void 0;\n    this.links = void 0;\n  }\n  function Type3(checker, flags) {\n    this.flags = flags;\n    if (Debug.isDebugging || tracing) {\n      this.checker = checker;\n    }\n  }\n  function Signature2(checker, flags) {\n    this.flags = flags;\n    if (Debug.isDebugging) {\n      this.checker = checker;\n    }\n  }\n  function Node4(kind, pos, end) {\n    this.pos = pos;\n    this.end = end;\n    this.kind = kind;\n    this.id = 0;\n    this.flags = 0;\n    this.modifierFlagsCache = 0;\n    this.transformFlags = 0;\n    this.parent = void 0;\n    this.original = void 0;\n    this.emitNode = void 0;\n  }\n  function Token(kind, pos, end) {\n    this.pos = pos;\n    this.end = end;\n    this.kind = kind;\n    this.id = 0;\n    this.flags = 0;\n    this.transformFlags = 0;\n    this.parent = void 0;\n    this.emitNode = void 0;\n  }\n  function Identifier2(kind, pos, end) {\n    this.pos = pos;\n    this.end = end;\n    this.kind = kind;\n    this.id = 0;\n    this.flags = 0;\n    this.transformFlags = 0;\n    this.parent = void 0;\n    this.original = void 0;\n    this.emitNode = void 0;\n  }\n  function SourceMapSource(fileName, text, skipTrivia2) {\n    this.fileName = fileName;\n    this.text = text;\n    this.skipTrivia = skipTrivia2 || ((pos) => pos);\n  }\n  function addObjectAllocatorPatcher(fn) {\n    objectAllocatorPatchers.push(fn);\n    fn(objectAllocator);\n  }\n  function setObjectAllocator(alloc) {\n    Object.assign(objectAllocator, alloc);\n    forEach(objectAllocatorPatchers, (fn) => fn(objectAllocator));\n  }\n  function formatStringFromArgs(text, args, baseIndex = 0) {\n    return text.replace(/{(\\d+)}/g, (_match, index) => \"\" + Debug.checkDefined(args[+index + baseIndex]));\n  }\n  function setLocalizedDiagnosticMessages(messages) {\n    localizedDiagnosticMessages = messages;\n  }\n  function maybeSetLocalizedDiagnosticMessages(getMessages) {\n    if (!localizedDiagnosticMessages && getMessages) {\n      localizedDiagnosticMessages = getMessages();\n    }\n  }\n  function getLocaleSpecificMessage(message) {\n    return localizedDiagnosticMessages && localizedDiagnosticMessages[message.key] || message.message;\n  }\n  function createDetachedDiagnostic(fileName, start, length2, message) {\n    assertDiagnosticLocation(void 0, start, length2);\n    let text = getLocaleSpecificMessage(message);\n    if (arguments.length > 4) {\n      text = formatStringFromArgs(text, arguments, 4);\n    }\n    return {\n      file: void 0,\n      start,\n      length: length2,\n      messageText: text,\n      category: message.category,\n      code: message.code,\n      reportsUnnecessary: message.reportsUnnecessary,\n      fileName\n    };\n  }\n  function isDiagnosticWithDetachedLocation(diagnostic) {\n    return diagnostic.file === void 0 && diagnostic.start !== void 0 && diagnostic.length !== void 0 && typeof diagnostic.fileName === \"string\";\n  }\n  function attachFileToDiagnostic(diagnostic, file) {\n    const fileName = file.fileName || \"\";\n    const length2 = file.text.length;\n    Debug.assertEqual(diagnostic.fileName, fileName);\n    Debug.assertLessThanOrEqual(diagnostic.start, length2);\n    Debug.assertLessThanOrEqual(diagnostic.start + diagnostic.length, length2);\n    const diagnosticWithLocation = {\n      file,\n      start: diagnostic.start,\n      length: diagnostic.length,\n      messageText: diagnostic.messageText,\n      category: diagnostic.category,\n      code: diagnostic.code,\n      reportsUnnecessary: diagnostic.reportsUnnecessary\n    };\n    if (diagnostic.relatedInformation) {\n      diagnosticWithLocation.relatedInformation = [];\n      for (const related of diagnostic.relatedInformation) {\n        if (isDiagnosticWithDetachedLocation(related) && related.fileName === fileName) {\n          Debug.assertLessThanOrEqual(related.start, length2);\n          Debug.assertLessThanOrEqual(related.start + related.length, length2);\n          diagnosticWithLocation.relatedInformation.push(attachFileToDiagnostic(related, file));\n        } else {\n          diagnosticWithLocation.relatedInformation.push(related);\n        }\n      }\n    }\n    return diagnosticWithLocation;\n  }\n  function attachFileToDiagnostics(diagnostics, file) {\n    const diagnosticsWithLocation = [];\n    for (const diagnostic of diagnostics) {\n      diagnosticsWithLocation.push(attachFileToDiagnostic(diagnostic, file));\n    }\n    return diagnosticsWithLocation;\n  }\n  function createFileDiagnostic(file, start, length2, message) {\n    assertDiagnosticLocation(file, start, length2);\n    let text = getLocaleSpecificMessage(message);\n    if (arguments.length > 4) {\n      text = formatStringFromArgs(text, arguments, 4);\n    }\n    return {\n      file,\n      start,\n      length: length2,\n      messageText: text,\n      category: message.category,\n      code: message.code,\n      reportsUnnecessary: message.reportsUnnecessary,\n      reportsDeprecated: message.reportsDeprecated\n    };\n  }\n  function formatMessage(_dummy, message) {\n    let text = getLocaleSpecificMessage(message);\n    if (arguments.length > 2) {\n      text = formatStringFromArgs(text, arguments, 2);\n    }\n    return text;\n  }\n  function createCompilerDiagnostic(message) {\n    let text = getLocaleSpecificMessage(message);\n    if (arguments.length > 1) {\n      text = formatStringFromArgs(text, arguments, 1);\n    }\n    return {\n      file: void 0,\n      start: void 0,\n      length: void 0,\n      messageText: text,\n      category: message.category,\n      code: message.code,\n      reportsUnnecessary: message.reportsUnnecessary,\n      reportsDeprecated: message.reportsDeprecated\n    };\n  }\n  function createCompilerDiagnosticFromMessageChain(chain, relatedInformation) {\n    return {\n      file: void 0,\n      start: void 0,\n      length: void 0,\n      code: chain.code,\n      category: chain.category,\n      messageText: chain.next ? chain : chain.messageText,\n      relatedInformation\n    };\n  }\n  function chainDiagnosticMessages(details, message) {\n    let text = getLocaleSpecificMessage(message);\n    if (arguments.length > 2) {\n      text = formatStringFromArgs(text, arguments, 2);\n    }\n    return {\n      messageText: text,\n      category: message.category,\n      code: message.code,\n      next: details === void 0 || Array.isArray(details) ? details : [details]\n    };\n  }\n  function concatenateDiagnosticMessageChains(headChain, tailChain) {\n    let lastChain = headChain;\n    while (lastChain.next) {\n      lastChain = lastChain.next[0];\n    }\n    lastChain.next = [tailChain];\n  }\n  function getDiagnosticFilePath(diagnostic) {\n    return diagnostic.file ? diagnostic.file.path : void 0;\n  }\n  function compareDiagnostics(d1, d2) {\n    return compareDiagnosticsSkipRelatedInformation(d1, d2) || compareRelatedInformation(d1, d2) || 0;\n  }\n  function compareDiagnosticsSkipRelatedInformation(d1, d2) {\n    return compareStringsCaseSensitive(getDiagnosticFilePath(d1), getDiagnosticFilePath(d2)) || compareValues(d1.start, d2.start) || compareValues(d1.length, d2.length) || compareValues(d1.code, d2.code) || compareMessageText(d1.messageText, d2.messageText) || 0;\n  }\n  function compareRelatedInformation(d1, d2) {\n    if (!d1.relatedInformation && !d2.relatedInformation) {\n      return 0;\n    }\n    if (d1.relatedInformation && d2.relatedInformation) {\n      return compareValues(d1.relatedInformation.length, d2.relatedInformation.length) || forEach(d1.relatedInformation, (d1i, index) => {\n        const d2i = d2.relatedInformation[index];\n        return compareDiagnostics(d1i, d2i);\n      }) || 0;\n    }\n    return d1.relatedInformation ? -1 : 1;\n  }\n  function compareMessageText(t1, t2) {\n    if (typeof t1 === \"string\" && typeof t2 === \"string\") {\n      return compareStringsCaseSensitive(t1, t2);\n    } else if (typeof t1 === \"string\") {\n      return -1;\n    } else if (typeof t2 === \"string\") {\n      return 1;\n    }\n    let res = compareStringsCaseSensitive(t1.messageText, t2.messageText);\n    if (res) {\n      return res;\n    }\n    if (!t1.next && !t2.next) {\n      return 0;\n    }\n    if (!t1.next) {\n      return -1;\n    }\n    if (!t2.next) {\n      return 1;\n    }\n    const len = Math.min(t1.next.length, t2.next.length);\n    for (let i = 0; i < len; i++) {\n      res = compareMessageText(t1.next[i], t2.next[i]);\n      if (res) {\n        return res;\n      }\n    }\n    if (t1.next.length < t2.next.length) {\n      return -1;\n    } else if (t1.next.length > t2.next.length) {\n      return 1;\n    }\n    return 0;\n  }\n  function getLanguageVariant(scriptKind) {\n    return scriptKind === 4 || scriptKind === 2 || scriptKind === 1 || scriptKind === 6 ? 1 : 0;\n  }\n  function walkTreeForJSXTags(node) {\n    if (!(node.transformFlags & 2))\n      return void 0;\n    return isJsxOpeningLikeElement(node) || isJsxFragment(node) ? node : forEachChild(node, walkTreeForJSXTags);\n  }\n  function isFileModuleFromUsingJSXTag(file) {\n    return !file.isDeclarationFile ? walkTreeForJSXTags(file) : void 0;\n  }\n  function isFileForcedToBeModuleByFormat(file) {\n    return (file.impliedNodeFormat === 99 || fileExtensionIsOneOf(file.fileName, [\".cjs\", \".cts\", \".mjs\", \".mts\"])) && !file.isDeclarationFile ? true : void 0;\n  }\n  function getSetExternalModuleIndicator(options) {\n    switch (getEmitModuleDetectionKind(options)) {\n      case 3:\n        return (file) => {\n          file.externalModuleIndicator = isFileProbablyExternalModule(file) || !file.isDeclarationFile || void 0;\n        };\n      case 1:\n        return (file) => {\n          file.externalModuleIndicator = isFileProbablyExternalModule(file);\n        };\n      case 2:\n        const checks = [isFileProbablyExternalModule];\n        if (options.jsx === 4 || options.jsx === 5) {\n          checks.push(isFileModuleFromUsingJSXTag);\n        }\n        checks.push(isFileForcedToBeModuleByFormat);\n        const combined = or(...checks);\n        const callback = (file) => void (file.externalModuleIndicator = combined(file));\n        return callback;\n    }\n  }\n  function getEmitScriptTarget(compilerOptions) {\n    var _a2;\n    return (_a2 = compilerOptions.target) != null ? _a2 : compilerOptions.module === 100 && 9 || compilerOptions.module === 199 && 99 || 1;\n  }\n  function getEmitModuleKind(compilerOptions) {\n    return typeof compilerOptions.module === \"number\" ? compilerOptions.module : getEmitScriptTarget(compilerOptions) >= 2 ? 5 : 1;\n  }\n  function emitModuleKindIsNonNodeESM(moduleKind) {\n    return moduleKind >= 5 && moduleKind <= 99;\n  }\n  function getEmitModuleResolutionKind(compilerOptions) {\n    let moduleResolution = compilerOptions.moduleResolution;\n    if (moduleResolution === void 0) {\n      switch (getEmitModuleKind(compilerOptions)) {\n        case 1:\n          moduleResolution = 2;\n          break;\n        case 100:\n          moduleResolution = 3;\n          break;\n        case 199:\n          moduleResolution = 99;\n          break;\n        default:\n          moduleResolution = 1;\n          break;\n      }\n    }\n    return moduleResolution;\n  }\n  function getEmitModuleDetectionKind(options) {\n    return options.moduleDetection || (getEmitModuleKind(options) === 100 || getEmitModuleKind(options) === 199 ? 3 : 2);\n  }\n  function hasJsonModuleEmitEnabled(options) {\n    switch (getEmitModuleKind(options)) {\n      case 1:\n      case 2:\n      case 5:\n      case 6:\n      case 7:\n      case 99:\n      case 100:\n      case 199:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function getIsolatedModules(options) {\n    return !!(options.isolatedModules || options.verbatimModuleSyntax);\n  }\n  function importNameElisionDisabled(options) {\n    return options.verbatimModuleSyntax || options.isolatedModules && options.preserveValueImports;\n  }\n  function unreachableCodeIsError(options) {\n    return options.allowUnreachableCode === false;\n  }\n  function unusedLabelIsError(options) {\n    return options.allowUnusedLabels === false;\n  }\n  function getAreDeclarationMapsEnabled(options) {\n    return !!(getEmitDeclarations(options) && options.declarationMap);\n  }\n  function getESModuleInterop(compilerOptions) {\n    if (compilerOptions.esModuleInterop !== void 0) {\n      return compilerOptions.esModuleInterop;\n    }\n    switch (getEmitModuleKind(compilerOptions)) {\n      case 100:\n      case 199:\n        return true;\n    }\n    return void 0;\n  }\n  function getAllowSyntheticDefaultImports(compilerOptions) {\n    if (compilerOptions.allowSyntheticDefaultImports !== void 0) {\n      return compilerOptions.allowSyntheticDefaultImports;\n    }\n    return getESModuleInterop(compilerOptions) || getEmitModuleKind(compilerOptions) === 4 || getEmitModuleResolutionKind(compilerOptions) === 100;\n  }\n  function moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution) {\n    return moduleResolution >= 3 && moduleResolution <= 99 || moduleResolution === 100;\n  }\n  function getResolvePackageJsonExports(compilerOptions) {\n    const moduleResolution = getEmitModuleResolutionKind(compilerOptions);\n    if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {\n      return false;\n    }\n    if (compilerOptions.resolvePackageJsonExports !== void 0) {\n      return compilerOptions.resolvePackageJsonExports;\n    }\n    switch (moduleResolution) {\n      case 3:\n      case 99:\n      case 100:\n        return true;\n    }\n    return false;\n  }\n  function getResolvePackageJsonImports(compilerOptions) {\n    const moduleResolution = getEmitModuleResolutionKind(compilerOptions);\n    if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {\n      return false;\n    }\n    if (compilerOptions.resolvePackageJsonExports !== void 0) {\n      return compilerOptions.resolvePackageJsonExports;\n    }\n    switch (moduleResolution) {\n      case 3:\n      case 99:\n      case 100:\n        return true;\n    }\n    return false;\n  }\n  function getResolveJsonModule(compilerOptions) {\n    if (compilerOptions.resolveJsonModule !== void 0) {\n      return compilerOptions.resolveJsonModule;\n    }\n    return getEmitModuleResolutionKind(compilerOptions) === 100;\n  }\n  function getEmitDeclarations(compilerOptions) {\n    return !!(compilerOptions.declaration || compilerOptions.composite);\n  }\n  function shouldPreserveConstEnums(compilerOptions) {\n    return !!(compilerOptions.preserveConstEnums || getIsolatedModules(compilerOptions));\n  }\n  function isIncrementalCompilation(options) {\n    return !!(options.incremental || options.composite);\n  }\n  function getStrictOptionValue(compilerOptions, flag) {\n    return compilerOptions[flag] === void 0 ? !!compilerOptions.strict : !!compilerOptions[flag];\n  }\n  function getAllowJSCompilerOption(compilerOptions) {\n    return compilerOptions.allowJs === void 0 ? !!compilerOptions.checkJs : compilerOptions.allowJs;\n  }\n  function getUseDefineForClassFields(compilerOptions) {\n    return compilerOptions.useDefineForClassFields === void 0 ? getEmitScriptTarget(compilerOptions) >= 9 : compilerOptions.useDefineForClassFields;\n  }\n  function compilerOptionsAffectSemanticDiagnostics(newOptions, oldOptions) {\n    return optionsHaveChanges(oldOptions, newOptions, semanticDiagnosticsOptionDeclarations);\n  }\n  function compilerOptionsAffectEmit(newOptions, oldOptions) {\n    return optionsHaveChanges(oldOptions, newOptions, affectsEmitOptionDeclarations);\n  }\n  function compilerOptionsAffectDeclarationPath(newOptions, oldOptions) {\n    return optionsHaveChanges(oldOptions, newOptions, affectsDeclarationPathOptionDeclarations);\n  }\n  function getCompilerOptionValue(options, option) {\n    return option.strictFlag ? getStrictOptionValue(options, option.name) : options[option.name];\n  }\n  function getJSXTransformEnabled(options) {\n    const jsx = options.jsx;\n    return jsx === 2 || jsx === 4 || jsx === 5;\n  }\n  function getJSXImplicitImportBase(compilerOptions, file) {\n    const jsxImportSourcePragmas = file == null ? void 0 : file.pragmas.get(\"jsximportsource\");\n    const jsxImportSourcePragma = isArray(jsxImportSourcePragmas) ? jsxImportSourcePragmas[jsxImportSourcePragmas.length - 1] : jsxImportSourcePragmas;\n    return compilerOptions.jsx === 4 || compilerOptions.jsx === 5 || compilerOptions.jsxImportSource || jsxImportSourcePragma ? (jsxImportSourcePragma == null ? void 0 : jsxImportSourcePragma.arguments.factory) || compilerOptions.jsxImportSource || \"react\" : void 0;\n  }\n  function getJSXRuntimeImport(base, options) {\n    return base ? `${base}/${options.jsx === 5 ? \"jsx-dev-runtime\" : \"jsx-runtime\"}` : void 0;\n  }\n  function hasZeroOrOneAsteriskCharacter(str) {\n    let seenAsterisk = false;\n    for (let i = 0; i < str.length; i++) {\n      if (str.charCodeAt(i) === 42) {\n        if (!seenAsterisk) {\n          seenAsterisk = true;\n        } else {\n          return false;\n        }\n      }\n    }\n    return true;\n  }\n  function createSymlinkCache(cwd, getCanonicalFileName) {\n    let symlinkedDirectories;\n    let symlinkedDirectoriesByRealpath;\n    let symlinkedFiles;\n    let hasProcessedResolutions = false;\n    return {\n      getSymlinkedFiles: () => symlinkedFiles,\n      getSymlinkedDirectories: () => symlinkedDirectories,\n      getSymlinkedDirectoriesByRealpath: () => symlinkedDirectoriesByRealpath,\n      setSymlinkedFile: (path, real) => (symlinkedFiles || (symlinkedFiles = /* @__PURE__ */ new Map())).set(path, real),\n      setSymlinkedDirectory: (symlink, real) => {\n        let symlinkPath = toPath(symlink, cwd, getCanonicalFileName);\n        if (!containsIgnoredPath(symlinkPath)) {\n          symlinkPath = ensureTrailingDirectorySeparator(symlinkPath);\n          if (real !== false && !(symlinkedDirectories == null ? void 0 : symlinkedDirectories.has(symlinkPath))) {\n            (symlinkedDirectoriesByRealpath || (symlinkedDirectoriesByRealpath = createMultiMap())).add(ensureTrailingDirectorySeparator(real.realPath), symlink);\n          }\n          (symlinkedDirectories || (symlinkedDirectories = /* @__PURE__ */ new Map())).set(symlinkPath, real);\n        }\n      },\n      setSymlinksFromResolutions(files, typeReferenceDirectives) {\n        var _a2, _b;\n        Debug.assert(!hasProcessedResolutions);\n        hasProcessedResolutions = true;\n        for (const file of files) {\n          (_a2 = file.resolvedModules) == null ? void 0 : _a2.forEach((resolution) => processResolution(this, resolution.resolvedModule));\n          (_b = file.resolvedTypeReferenceDirectiveNames) == null ? void 0 : _b.forEach((resolution) => processResolution(this, resolution.resolvedTypeReferenceDirective));\n        }\n        typeReferenceDirectives.forEach((resolution) => processResolution(this, resolution.resolvedTypeReferenceDirective));\n      },\n      hasProcessedResolutions: () => hasProcessedResolutions\n    };\n    function processResolution(cache, resolution) {\n      if (!resolution || !resolution.originalPath || !resolution.resolvedFileName)\n        return;\n      const { resolvedFileName, originalPath } = resolution;\n      cache.setSymlinkedFile(toPath(originalPath, cwd, getCanonicalFileName), resolvedFileName);\n      const [commonResolved, commonOriginal] = guessDirectorySymlink(resolvedFileName, originalPath, cwd, getCanonicalFileName) || emptyArray;\n      if (commonResolved && commonOriginal) {\n        cache.setSymlinkedDirectory(commonOriginal, { real: commonResolved, realPath: toPath(commonResolved, cwd, getCanonicalFileName) });\n      }\n    }\n  }\n  function guessDirectorySymlink(a, b, cwd, getCanonicalFileName) {\n    const aParts = getPathComponents(getNormalizedAbsolutePath(a, cwd));\n    const bParts = getPathComponents(getNormalizedAbsolutePath(b, cwd));\n    let isDirectory = false;\n    while (aParts.length >= 2 && bParts.length >= 2 && !isNodeModulesOrScopedPackageDirectory(aParts[aParts.length - 2], getCanonicalFileName) && !isNodeModulesOrScopedPackageDirectory(bParts[bParts.length - 2], getCanonicalFileName) && getCanonicalFileName(aParts[aParts.length - 1]) === getCanonicalFileName(bParts[bParts.length - 1])) {\n      aParts.pop();\n      bParts.pop();\n      isDirectory = true;\n    }\n    return isDirectory ? [getPathFromPathComponents(aParts), getPathFromPathComponents(bParts)] : void 0;\n  }\n  function isNodeModulesOrScopedPackageDirectory(s, getCanonicalFileName) {\n    return s !== void 0 && (getCanonicalFileName(s) === \"node_modules\" || startsWith(s, \"@\"));\n  }\n  function stripLeadingDirectorySeparator(s) {\n    return isAnyDirectorySeparator(s.charCodeAt(0)) ? s.slice(1) : void 0;\n  }\n  function tryRemoveDirectoryPrefix(path, dirPath, getCanonicalFileName) {\n    const withoutPrefix = tryRemovePrefix(path, dirPath, getCanonicalFileName);\n    return withoutPrefix === void 0 ? void 0 : stripLeadingDirectorySeparator(withoutPrefix);\n  }\n  function regExpEscape(text) {\n    return text.replace(reservedCharacterPattern, escapeRegExpCharacter);\n  }\n  function escapeRegExpCharacter(match) {\n    return \"\\\\\" + match;\n  }\n  function getRegularExpressionForWildcard(specs, basePath, usage) {\n    const patterns = getRegularExpressionsForWildcards(specs, basePath, usage);\n    if (!patterns || !patterns.length) {\n      return void 0;\n    }\n    const pattern = patterns.map((pattern2) => `(${pattern2})`).join(\"|\");\n    const terminator = usage === \"exclude\" ? \"($|/)\" : \"$\";\n    return `^(${pattern})${terminator}`;\n  }\n  function getRegularExpressionsForWildcards(specs, basePath, usage) {\n    if (specs === void 0 || specs.length === 0) {\n      return void 0;\n    }\n    return flatMap(specs, (spec) => spec && getSubPatternFromSpec(spec, basePath, usage, wildcardMatchers[usage]));\n  }\n  function isImplicitGlob(lastPathComponent) {\n    return !/[.*?]/.test(lastPathComponent);\n  }\n  function getPatternFromSpec(spec, basePath, usage) {\n    const pattern = spec && getSubPatternFromSpec(spec, basePath, usage, wildcardMatchers[usage]);\n    return pattern && `^(${pattern})${usage === \"exclude\" ? \"($|/)\" : \"$\"}`;\n  }\n  function getSubPatternFromSpec(spec, basePath, usage, { singleAsteriskRegexFragment, doubleAsteriskRegexFragment, replaceWildcardCharacter: replaceWildcardCharacter2 }) {\n    let subpattern = \"\";\n    let hasWrittenComponent = false;\n    const components = getNormalizedPathComponents(spec, basePath);\n    const lastComponent = last(components);\n    if (usage !== \"exclude\" && lastComponent === \"**\") {\n      return void 0;\n    }\n    components[0] = removeTrailingDirectorySeparator(components[0]);\n    if (isImplicitGlob(lastComponent)) {\n      components.push(\"**\", \"*\");\n    }\n    let optionalCount = 0;\n    for (let component of components) {\n      if (component === \"**\") {\n        subpattern += doubleAsteriskRegexFragment;\n      } else {\n        if (usage === \"directories\") {\n          subpattern += \"(\";\n          optionalCount++;\n        }\n        if (hasWrittenComponent) {\n          subpattern += directorySeparator;\n        }\n        if (usage !== \"exclude\") {\n          let componentPattern = \"\";\n          if (component.charCodeAt(0) === 42) {\n            componentPattern += \"([^./]\" + singleAsteriskRegexFragment + \")?\";\n            component = component.substr(1);\n          } else if (component.charCodeAt(0) === 63) {\n            componentPattern += \"[^./]\";\n            component = component.substr(1);\n          }\n          componentPattern += component.replace(reservedCharacterPattern, replaceWildcardCharacter2);\n          if (componentPattern !== component) {\n            subpattern += implicitExcludePathRegexPattern;\n          }\n          subpattern += componentPattern;\n        } else {\n          subpattern += component.replace(reservedCharacterPattern, replaceWildcardCharacter2);\n        }\n      }\n      hasWrittenComponent = true;\n    }\n    while (optionalCount > 0) {\n      subpattern += \")?\";\n      optionalCount--;\n    }\n    return subpattern;\n  }\n  function replaceWildcardCharacter(match, singleAsteriskRegexFragment) {\n    return match === \"*\" ? singleAsteriskRegexFragment : match === \"?\" ? \"[^/]\" : \"\\\\\" + match;\n  }\n  function getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames, currentDirectory) {\n    path = normalizePath(path);\n    currentDirectory = normalizePath(currentDirectory);\n    const absolutePath = combinePaths(currentDirectory, path);\n    return {\n      includeFilePatterns: map(getRegularExpressionsForWildcards(includes, absolutePath, \"files\"), (pattern) => `^${pattern}$`),\n      includeFilePattern: getRegularExpressionForWildcard(includes, absolutePath, \"files\"),\n      includeDirectoryPattern: getRegularExpressionForWildcard(includes, absolutePath, \"directories\"),\n      excludePattern: getRegularExpressionForWildcard(excludes, absolutePath, \"exclude\"),\n      basePaths: getBasePaths(path, includes, useCaseSensitiveFileNames)\n    };\n  }\n  function getRegexFromPattern(pattern, useCaseSensitiveFileNames) {\n    return new RegExp(pattern, useCaseSensitiveFileNames ? \"\" : \"i\");\n  }\n  function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath) {\n    path = normalizePath(path);\n    currentDirectory = normalizePath(currentDirectory);\n    const patterns = getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames, currentDirectory);\n    const includeFileRegexes = patterns.includeFilePatterns && patterns.includeFilePatterns.map((pattern) => getRegexFromPattern(pattern, useCaseSensitiveFileNames));\n    const includeDirectoryRegex = patterns.includeDirectoryPattern && getRegexFromPattern(patterns.includeDirectoryPattern, useCaseSensitiveFileNames);\n    const excludeRegex = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, useCaseSensitiveFileNames);\n    const results = includeFileRegexes ? includeFileRegexes.map(() => []) : [[]];\n    const visited = /* @__PURE__ */ new Map();\n    const toCanonical = createGetCanonicalFileName(useCaseSensitiveFileNames);\n    for (const basePath of patterns.basePaths) {\n      visitDirectory(basePath, combinePaths(currentDirectory, basePath), depth);\n    }\n    return flatten(results);\n    function visitDirectory(path2, absolutePath, depth2) {\n      const canonicalPath = toCanonical(realpath(absolutePath));\n      if (visited.has(canonicalPath))\n        return;\n      visited.set(canonicalPath, true);\n      const { files, directories } = getFileSystemEntries(path2);\n      for (const current of sort(files, compareStringsCaseSensitive)) {\n        const name = combinePaths(path2, current);\n        const absoluteName = combinePaths(absolutePath, current);\n        if (extensions && !fileExtensionIsOneOf(name, extensions))\n          continue;\n        if (excludeRegex && excludeRegex.test(absoluteName))\n          continue;\n        if (!includeFileRegexes) {\n          results[0].push(name);\n        } else {\n          const includeIndex = findIndex(includeFileRegexes, (re) => re.test(absoluteName));\n          if (includeIndex !== -1) {\n            results[includeIndex].push(name);\n          }\n        }\n      }\n      if (depth2 !== void 0) {\n        depth2--;\n        if (depth2 === 0) {\n          return;\n        }\n      }\n      for (const current of sort(directories, compareStringsCaseSensitive)) {\n        const name = combinePaths(path2, current);\n        const absoluteName = combinePaths(absolutePath, current);\n        if ((!includeDirectoryRegex || includeDirectoryRegex.test(absoluteName)) && (!excludeRegex || !excludeRegex.test(absoluteName))) {\n          visitDirectory(name, absoluteName, depth2);\n        }\n      }\n    }\n  }\n  function getBasePaths(path, includes, useCaseSensitiveFileNames) {\n    const basePaths = [path];\n    if (includes) {\n      const includeBasePaths = [];\n      for (const include of includes) {\n        const absolute = isRootedDiskPath(include) ? include : normalizePath(combinePaths(path, include));\n        includeBasePaths.push(getIncludeBasePath(absolute));\n      }\n      includeBasePaths.sort(getStringComparer(!useCaseSensitiveFileNames));\n      for (const includeBasePath of includeBasePaths) {\n        if (every(basePaths, (basePath) => !containsPath(basePath, includeBasePath, path, !useCaseSensitiveFileNames))) {\n          basePaths.push(includeBasePath);\n        }\n      }\n    }\n    return basePaths;\n  }\n  function getIncludeBasePath(absolute) {\n    const wildcardOffset = indexOfAnyCharCode(absolute, wildcardCharCodes);\n    if (wildcardOffset < 0) {\n      return !hasExtension(absolute) ? absolute : removeTrailingDirectorySeparator(getDirectoryPath(absolute));\n    }\n    return absolute.substring(0, absolute.lastIndexOf(directorySeparator, wildcardOffset));\n  }\n  function ensureScriptKind(fileName, scriptKind) {\n    return scriptKind || getScriptKindFromFileName(fileName) || 3;\n  }\n  function getScriptKindFromFileName(fileName) {\n    const ext = fileName.substr(fileName.lastIndexOf(\".\"));\n    switch (ext.toLowerCase()) {\n      case \".js\":\n      case \".cjs\":\n      case \".mjs\":\n        return 1;\n      case \".jsx\":\n        return 2;\n      case \".ts\":\n      case \".cts\":\n      case \".mts\":\n        return 3;\n      case \".tsx\":\n        return 4;\n      case \".json\":\n        return 6;\n      default:\n        return 0;\n    }\n  }\n  function getSupportedExtensions(options, extraFileExtensions) {\n    const needJsExtensions = options && getAllowJSCompilerOption(options);\n    if (!extraFileExtensions || extraFileExtensions.length === 0) {\n      return needJsExtensions ? allSupportedExtensions : supportedTSExtensions;\n    }\n    const builtins = needJsExtensions ? allSupportedExtensions : supportedTSExtensions;\n    const flatBuiltins = flatten(builtins);\n    const extensions = [\n      ...builtins,\n      ...mapDefined(extraFileExtensions, (x) => x.scriptKind === 7 || needJsExtensions && isJSLike(x.scriptKind) && flatBuiltins.indexOf(x.extension) === -1 ? [x.extension] : void 0)\n    ];\n    return extensions;\n  }\n  function getSupportedExtensionsWithJsonIfResolveJsonModule(options, supportedExtensions) {\n    if (!options || !getResolveJsonModule(options))\n      return supportedExtensions;\n    if (supportedExtensions === allSupportedExtensions)\n      return allSupportedExtensionsWithJson;\n    if (supportedExtensions === supportedTSExtensions)\n      return supportedTSExtensionsWithJson;\n    return [...supportedExtensions, [\".json\"]];\n  }\n  function isJSLike(scriptKind) {\n    return scriptKind === 1 || scriptKind === 2;\n  }\n  function hasJSFileExtension(fileName) {\n    return some(supportedJSExtensionsFlat, (extension) => fileExtensionIs(fileName, extension));\n  }\n  function hasTSFileExtension(fileName) {\n    return some(supportedTSExtensionsFlat, (extension) => fileExtensionIs(fileName, extension));\n  }\n  function usesExtensionsOnImports({ imports }, hasExtension2 = or(hasJSFileExtension, hasTSFileExtension)) {\n    return firstDefined(imports, ({ text }) => pathIsRelative(text) ? hasExtension2(text) : void 0) || false;\n  }\n  function getModuleSpecifierEndingPreference(preference, resolutionMode, compilerOptions, sourceFile) {\n    if (preference === \"js\" || resolutionMode === 99) {\n      if (!shouldAllowImportingTsExtension(compilerOptions)) {\n        return 2;\n      }\n      return inferPreference() !== 2 ? 3 : 2;\n    }\n    if (preference === \"minimal\") {\n      return 0;\n    }\n    if (preference === \"index\") {\n      return 1;\n    }\n    if (!shouldAllowImportingTsExtension(compilerOptions)) {\n      return usesExtensionsOnImports(sourceFile) ? 2 : 0;\n    }\n    return inferPreference();\n    function inferPreference() {\n      let usesJsExtensions = false;\n      const specifiers = sourceFile.imports.length ? sourceFile.imports.map((i) => i.text) : isSourceFileJS(sourceFile) ? getRequiresAtTopOfFile(sourceFile).map((r) => r.arguments[0].text) : emptyArray;\n      for (const specifier of specifiers) {\n        if (pathIsRelative(specifier)) {\n          if (hasTSFileExtension(specifier)) {\n            return 3;\n          }\n          if (hasJSFileExtension(specifier)) {\n            usesJsExtensions = true;\n          }\n        }\n      }\n      return usesJsExtensions ? 2 : 0;\n    }\n  }\n  function getRequiresAtTopOfFile(sourceFile) {\n    let nonRequireStatementCount = 0;\n    let requires;\n    for (const statement of sourceFile.statements) {\n      if (nonRequireStatementCount > 3) {\n        break;\n      }\n      if (isRequireVariableStatement(statement)) {\n        requires = concatenate(requires, statement.declarationList.declarations.map((d) => d.initializer));\n      } else if (isExpressionStatement(statement) && isRequireCall(statement.expression, true)) {\n        requires = append(requires, statement.expression);\n      } else {\n        nonRequireStatementCount++;\n      }\n    }\n    return requires || emptyArray;\n  }\n  function isSupportedSourceFileName(fileName, compilerOptions, extraFileExtensions) {\n    if (!fileName)\n      return false;\n    const supportedExtensions = getSupportedExtensions(compilerOptions, extraFileExtensions);\n    for (const extension of flatten(getSupportedExtensionsWithJsonIfResolveJsonModule(compilerOptions, supportedExtensions))) {\n      if (fileExtensionIs(fileName, extension)) {\n        return true;\n      }\n    }\n    return false;\n  }\n  function numberOfDirectorySeparators(str) {\n    const match = str.match(/\\//g);\n    return match ? match.length : 0;\n  }\n  function compareNumberOfDirectorySeparators(path1, path2) {\n    return compareValues(numberOfDirectorySeparators(path1), numberOfDirectorySeparators(path2));\n  }\n  function removeFileExtension(path) {\n    for (const ext of extensionsToRemove) {\n      const extensionless = tryRemoveExtension(path, ext);\n      if (extensionless !== void 0) {\n        return extensionless;\n      }\n    }\n    return path;\n  }\n  function tryRemoveExtension(path, extension) {\n    return fileExtensionIs(path, extension) ? removeExtension(path, extension) : void 0;\n  }\n  function removeExtension(path, extension) {\n    return path.substring(0, path.length - extension.length);\n  }\n  function changeExtension(path, newExtension) {\n    return changeAnyExtension(path, newExtension, extensionsToRemove, false);\n  }\n  function tryParsePattern(pattern) {\n    const indexOfStar = pattern.indexOf(\"*\");\n    if (indexOfStar === -1) {\n      return pattern;\n    }\n    return pattern.indexOf(\"*\", indexOfStar + 1) !== -1 ? void 0 : {\n      prefix: pattern.substr(0, indexOfStar),\n      suffix: pattern.substr(indexOfStar + 1)\n    };\n  }\n  function tryParsePatterns(paths) {\n    return mapDefined(getOwnKeys(paths), (path) => tryParsePattern(path));\n  }\n  function positionIsSynthesized(pos) {\n    return !(pos >= 0);\n  }\n  function extensionIsTS(ext) {\n    return ext === \".ts\" || ext === \".tsx\" || ext === \".d.ts\" || ext === \".cts\" || ext === \".mts\" || ext === \".d.mts\" || ext === \".d.cts\" || startsWith(ext, \".d.\") && endsWith(ext, \".ts\");\n  }\n  function resolutionExtensionIsTSOrJson(ext) {\n    return extensionIsTS(ext) || ext === \".json\";\n  }\n  function extensionFromPath(path) {\n    const ext = tryGetExtensionFromPath2(path);\n    return ext !== void 0 ? ext : Debug.fail(`File ${path} has unknown extension.`);\n  }\n  function isAnySupportedFileExtension(path) {\n    return tryGetExtensionFromPath2(path) !== void 0;\n  }\n  function tryGetExtensionFromPath2(path) {\n    return find(extensionsToRemove, (e) => fileExtensionIs(path, e));\n  }\n  function isCheckJsEnabledForFile(sourceFile, compilerOptions) {\n    return sourceFile.checkJsDirective ? sourceFile.checkJsDirective.enabled : compilerOptions.checkJs;\n  }\n  function matchPatternOrExact(patternOrStrings, candidate) {\n    const patterns = [];\n    for (const patternOrString of patternOrStrings) {\n      if (patternOrString === candidate) {\n        return candidate;\n      }\n      if (!isString(patternOrString)) {\n        patterns.push(patternOrString);\n      }\n    }\n    return findBestPatternMatch(patterns, (_) => _, candidate);\n  }\n  function sliceAfter(arr, value) {\n    const index = arr.indexOf(value);\n    Debug.assert(index !== -1);\n    return arr.slice(index);\n  }\n  function addRelatedInfo(diagnostic, ...relatedInformation) {\n    if (!relatedInformation.length) {\n      return diagnostic;\n    }\n    if (!diagnostic.relatedInformation) {\n      diagnostic.relatedInformation = [];\n    }\n    Debug.assert(diagnostic.relatedInformation !== emptyArray, \"Diagnostic had empty array singleton for related info, but is still being constructed!\");\n    diagnostic.relatedInformation.push(...relatedInformation);\n    return diagnostic;\n  }\n  function minAndMax(arr, getValue) {\n    Debug.assert(arr.length !== 0);\n    let min2 = getValue(arr[0]);\n    let max = min2;\n    for (let i = 1; i < arr.length; i++) {\n      const value = getValue(arr[i]);\n      if (value < min2) {\n        min2 = value;\n      } else if (value > max) {\n        max = value;\n      }\n    }\n    return { min: min2, max };\n  }\n  function rangeOfNode(node) {\n    return { pos: getTokenPosOfNode(node), end: node.end };\n  }\n  function rangeOfTypeParameters(sourceFile, typeParameters) {\n    const pos = typeParameters.pos - 1;\n    const end = Math.min(sourceFile.text.length, skipTrivia(sourceFile.text, typeParameters.end) + 1);\n    return { pos, end };\n  }\n  function skipTypeChecking(sourceFile, options, host) {\n    return options.skipLibCheck && sourceFile.isDeclarationFile || options.skipDefaultLibCheck && sourceFile.hasNoDefaultLib || host.isSourceOfProjectReferenceRedirect(sourceFile.fileName);\n  }\n  function isJsonEqual(a, b) {\n    return a === b || typeof a === \"object\" && a !== null && typeof b === \"object\" && b !== null && equalOwnProperties(a, b, isJsonEqual);\n  }\n  function parsePseudoBigInt(stringValue) {\n    let log2Base;\n    switch (stringValue.charCodeAt(1)) {\n      case 98:\n      case 66:\n        log2Base = 1;\n        break;\n      case 111:\n      case 79:\n        log2Base = 3;\n        break;\n      case 120:\n      case 88:\n        log2Base = 4;\n        break;\n      default:\n        const nIndex = stringValue.length - 1;\n        let nonZeroStart = 0;\n        while (stringValue.charCodeAt(nonZeroStart) === 48) {\n          nonZeroStart++;\n        }\n        return stringValue.slice(nonZeroStart, nIndex) || \"0\";\n    }\n    const startIndex = 2, endIndex = stringValue.length - 1;\n    const bitsNeeded = (endIndex - startIndex) * log2Base;\n    const segments = new Uint16Array((bitsNeeded >>> 4) + (bitsNeeded & 15 ? 1 : 0));\n    for (let i = endIndex - 1, bitOffset = 0; i >= startIndex; i--, bitOffset += log2Base) {\n      const segment = bitOffset >>> 4;\n      const digitChar = stringValue.charCodeAt(i);\n      const digit = digitChar <= 57 ? digitChar - 48 : 10 + digitChar - (digitChar <= 70 ? 65 : 97);\n      const shiftedDigit = digit << (bitOffset & 15);\n      segments[segment] |= shiftedDigit;\n      const residual = shiftedDigit >>> 16;\n      if (residual)\n        segments[segment + 1] |= residual;\n    }\n    let base10Value = \"\";\n    let firstNonzeroSegment = segments.length - 1;\n    let segmentsRemaining = true;\n    while (segmentsRemaining) {\n      let mod10 = 0;\n      segmentsRemaining = false;\n      for (let segment = firstNonzeroSegment; segment >= 0; segment--) {\n        const newSegment = mod10 << 16 | segments[segment];\n        const segmentValue = newSegment / 10 | 0;\n        segments[segment] = segmentValue;\n        mod10 = newSegment - segmentValue * 10;\n        if (segmentValue && !segmentsRemaining) {\n          firstNonzeroSegment = segment;\n          segmentsRemaining = true;\n        }\n      }\n      base10Value = mod10 + base10Value;\n    }\n    return base10Value;\n  }\n  function pseudoBigIntToString({ negative, base10Value }) {\n    return (negative && base10Value !== \"0\" ? \"-\" : \"\") + base10Value;\n  }\n  function parseBigInt(text) {\n    if (!isValidBigIntString(text, false)) {\n      return void 0;\n    }\n    return parseValidBigInt(text);\n  }\n  function parseValidBigInt(text) {\n    const negative = text.startsWith(\"-\");\n    const base10Value = parsePseudoBigInt(`${negative ? text.slice(1) : text}n`);\n    return { negative, base10Value };\n  }\n  function isValidBigIntString(s, roundTripOnly) {\n    if (s === \"\")\n      return false;\n    const scanner2 = createScanner(99, false);\n    let success = true;\n    scanner2.setOnError(() => success = false);\n    scanner2.setText(s + \"n\");\n    let result = scanner2.scan();\n    const negative = result === 40;\n    if (negative) {\n      result = scanner2.scan();\n    }\n    const flags = scanner2.getTokenFlags();\n    return success && result === 9 && scanner2.getTextPos() === s.length + 1 && !(flags & 512) && (!roundTripOnly || s === pseudoBigIntToString({ negative, base10Value: parsePseudoBigInt(scanner2.getTokenValue()) }));\n  }\n  function isValidTypeOnlyAliasUseSite(useSite) {\n    return !!(useSite.flags & 16777216) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite));\n  }\n  function isShorthandPropertyNameUseSite(useSite) {\n    return isIdentifier(useSite) && isShorthandPropertyAssignment(useSite.parent) && useSite.parent.name === useSite;\n  }\n  function isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(node) {\n    while (node.kind === 79 || node.kind === 208) {\n      node = node.parent;\n    }\n    if (node.kind !== 164) {\n      return false;\n    }\n    if (hasSyntacticModifier(node.parent, 256)) {\n      return true;\n    }\n    const containerKind = node.parent.parent.kind;\n    return containerKind === 261 || containerKind === 184;\n  }\n  function isIdentifierInNonEmittingHeritageClause(node) {\n    if (node.kind !== 79)\n      return false;\n    const heritageClause = findAncestor(node.parent, (parent2) => {\n      switch (parent2.kind) {\n        case 294:\n          return true;\n        case 208:\n        case 230:\n          return false;\n        default:\n          return \"quit\";\n      }\n    });\n    return (heritageClause == null ? void 0 : heritageClause.token) === 117 || (heritageClause == null ? void 0 : heritageClause.parent.kind) === 261;\n  }\n  function isIdentifierTypeReference(node) {\n    return isTypeReferenceNode(node) && isIdentifier(node.typeName);\n  }\n  function arrayIsHomogeneous(array, comparer = equateValues) {\n    if (array.length < 2)\n      return true;\n    const first2 = array[0];\n    for (let i = 1, length2 = array.length; i < length2; i++) {\n      const target = array[i];\n      if (!comparer(first2, target))\n        return false;\n    }\n    return true;\n  }\n  function setTextRangePos(range, pos) {\n    range.pos = pos;\n    return range;\n  }\n  function setTextRangeEnd(range, end) {\n    range.end = end;\n    return range;\n  }\n  function setTextRangePosEnd(range, pos, end) {\n    return setTextRangeEnd(setTextRangePos(range, pos), end);\n  }\n  function setTextRangePosWidth(range, pos, width) {\n    return setTextRangePosEnd(range, pos, pos + width);\n  }\n  function setNodeFlags(node, newFlags) {\n    if (node) {\n      node.flags = newFlags;\n    }\n    return node;\n  }\n  function setParent(child, parent2) {\n    if (child && parent2) {\n      child.parent = parent2;\n    }\n    return child;\n  }\n  function setEachParent(children, parent2) {\n    if (children) {\n      for (const child of children) {\n        setParent(child, parent2);\n      }\n    }\n    return children;\n  }\n  function setParentRecursive(rootNode, incremental) {\n    if (!rootNode)\n      return rootNode;\n    forEachChildRecursively(rootNode, isJSDocNode(rootNode) ? bindParentToChildIgnoringJSDoc : bindParentToChild);\n    return rootNode;\n    function bindParentToChildIgnoringJSDoc(child, parent2) {\n      if (incremental && child.parent === parent2) {\n        return \"skip\";\n      }\n      setParent(child, parent2);\n    }\n    function bindJSDoc(child) {\n      if (hasJSDocNodes(child)) {\n        for (const doc of child.jsDoc) {\n          bindParentToChildIgnoringJSDoc(doc, child);\n          forEachChildRecursively(doc, bindParentToChildIgnoringJSDoc);\n        }\n      }\n    }\n    function bindParentToChild(child, parent2) {\n      return bindParentToChildIgnoringJSDoc(child, parent2) || bindJSDoc(child);\n    }\n  }\n  function isPackedElement(node) {\n    return !isOmittedExpression(node);\n  }\n  function isPackedArrayLiteral(node) {\n    return isArrayLiteralExpression(node) && every(node.elements, isPackedElement);\n  }\n  function expressionResultIsUnused(node) {\n    Debug.assertIsDefined(node.parent);\n    while (true) {\n      const parent2 = node.parent;\n      if (isParenthesizedExpression(parent2)) {\n        node = parent2;\n        continue;\n      }\n      if (isExpressionStatement(parent2) || isVoidExpression(parent2) || isForStatement(parent2) && (parent2.initializer === node || parent2.incrementor === node)) {\n        return true;\n      }\n      if (isCommaListExpression(parent2)) {\n        if (node !== last(parent2.elements))\n          return true;\n        node = parent2;\n        continue;\n      }\n      if (isBinaryExpression(parent2) && parent2.operatorToken.kind === 27) {\n        if (node === parent2.left)\n          return true;\n        node = parent2;\n        continue;\n      }\n      return false;\n    }\n  }\n  function containsIgnoredPath(path) {\n    return some(ignoredPaths, (p) => stringContains(path, p));\n  }\n  function getContainingNodeArray(node) {\n    if (!node.parent)\n      return void 0;\n    switch (node.kind) {\n      case 165:\n        const { parent: parent3 } = node;\n        return parent3.kind === 192 ? void 0 : parent3.typeParameters;\n      case 166:\n        return node.parent.parameters;\n      case 201:\n        return node.parent.templateSpans;\n      case 236:\n        return node.parent.templateSpans;\n      case 167: {\n        const { parent: parent4 } = node;\n        return canHaveDecorators(parent4) ? parent4.modifiers : void 0;\n      }\n      case 294:\n        return node.parent.heritageClauses;\n    }\n    const { parent: parent2 } = node;\n    if (isJSDocTag(node)) {\n      return isJSDocTypeLiteral(node.parent) ? void 0 : node.parent.tags;\n    }\n    switch (parent2.kind) {\n      case 184:\n      case 261:\n        return isTypeElement(node) ? parent2.members : void 0;\n      case 189:\n      case 190:\n        return parent2.types;\n      case 186:\n      case 206:\n      case 357:\n      case 272:\n      case 276:\n        return parent2.elements;\n      case 207:\n      case 289:\n        return parent2.properties;\n      case 210:\n      case 211:\n        return isTypeNode(node) ? parent2.typeArguments : parent2.expression === node ? void 0 : parent2.arguments;\n      case 281:\n      case 285:\n        return isJsxChild(node) ? parent2.children : void 0;\n      case 283:\n      case 282:\n        return isTypeNode(node) ? parent2.typeArguments : void 0;\n      case 238:\n      case 292:\n      case 293:\n      case 265:\n        return parent2.statements;\n      case 266:\n        return parent2.clauses;\n      case 260:\n      case 228:\n        return isClassElement(node) ? parent2.members : void 0;\n      case 263:\n        return isEnumMember(node) ? parent2.members : void 0;\n      case 308:\n        return parent2.statements;\n    }\n  }\n  function hasContextSensitiveParameters(node) {\n    if (!node.typeParameters) {\n      if (some(node.parameters, (p) => !getEffectiveTypeAnnotationNode(p))) {\n        return true;\n      }\n      if (node.kind !== 216) {\n        const parameter = firstOrUndefined(node.parameters);\n        if (!(parameter && parameterIsThisKeyword(parameter))) {\n          return true;\n        }\n      }\n    }\n    return false;\n  }\n  function isInfinityOrNaNString(name) {\n    return name === \"Infinity\" || name === \"-Infinity\" || name === \"NaN\";\n  }\n  function isCatchClauseVariableDeclaration(node) {\n    return node.kind === 257 && node.parent.kind === 295;\n  }\n  function isParameterOrCatchClauseVariable(symbol) {\n    const declaration = symbol.valueDeclaration && getRootDeclaration(symbol.valueDeclaration);\n    return !!declaration && (isParameter(declaration) || isCatchClauseVariableDeclaration(declaration));\n  }\n  function isFunctionExpressionOrArrowFunction(node) {\n    return node.kind === 215 || node.kind === 216;\n  }\n  function escapeSnippetText(text) {\n    return text.replace(/\\$/gm, () => \"\\\\$\");\n  }\n  function isNumericLiteralName(name) {\n    return (+name).toString() === name;\n  }\n  function createPropertyNameNodeForIdentifierOrLiteral(name, target, singleQuote, stringNamed) {\n    return isIdentifierText(name, target) ? factory.createIdentifier(name) : !stringNamed && isNumericLiteralName(name) && +name >= 0 ? factory.createNumericLiteral(+name) : factory.createStringLiteral(name, !!singleQuote);\n  }\n  function isThisTypeParameter(type) {\n    return !!(type.flags & 262144 && type.isThisType);\n  }\n  function getNodeModulePathParts(fullPath) {\n    let topLevelNodeModulesIndex = 0;\n    let topLevelPackageNameIndex = 0;\n    let packageRootIndex = 0;\n    let fileNameIndex = 0;\n    let States;\n    ((States2) => {\n      States2[States2[\"BeforeNodeModules\"] = 0] = \"BeforeNodeModules\";\n      States2[States2[\"NodeModules\"] = 1] = \"NodeModules\";\n      States2[States2[\"Scope\"] = 2] = \"Scope\";\n      States2[States2[\"PackageContent\"] = 3] = \"PackageContent\";\n    })(States || (States = {}));\n    let partStart = 0;\n    let partEnd = 0;\n    let state = 0;\n    while (partEnd >= 0) {\n      partStart = partEnd;\n      partEnd = fullPath.indexOf(\"/\", partStart + 1);\n      switch (state) {\n        case 0:\n          if (fullPath.indexOf(nodeModulesPathPart, partStart) === partStart) {\n            topLevelNodeModulesIndex = partStart;\n            topLevelPackageNameIndex = partEnd;\n            state = 1;\n          }\n          break;\n        case 1:\n        case 2:\n          if (state === 1 && fullPath.charAt(partStart + 1) === \"@\") {\n            state = 2;\n          } else {\n            packageRootIndex = partEnd;\n            state = 3;\n          }\n          break;\n        case 3:\n          if (fullPath.indexOf(nodeModulesPathPart, partStart) === partStart) {\n            state = 1;\n          } else {\n            state = 3;\n          }\n          break;\n      }\n    }\n    fileNameIndex = partStart;\n    return state > 1 ? { topLevelNodeModulesIndex, topLevelPackageNameIndex, packageRootIndex, fileNameIndex } : void 0;\n  }\n  function getParameterTypeNode(parameter) {\n    var _a2;\n    return parameter.kind === 344 ? (_a2 = parameter.typeExpression) == null ? void 0 : _a2.type : parameter.type;\n  }\n  function isTypeDeclaration(node) {\n    switch (node.kind) {\n      case 165:\n      case 260:\n      case 261:\n      case 262:\n      case 263:\n      case 349:\n      case 341:\n      case 343:\n        return true;\n      case 270:\n        return node.isTypeOnly;\n      case 273:\n      case 278:\n        return node.parent.parent.isTypeOnly;\n      default:\n        return false;\n    }\n  }\n  function canHaveExportModifier(node) {\n    return isEnumDeclaration(node) || isVariableStatement(node) || isFunctionDeclaration(node) || isClassDeclaration(node) || isInterfaceDeclaration(node) || isTypeDeclaration(node) || isModuleDeclaration(node) && !isExternalModuleAugmentation(node) && !isGlobalScopeAugmentation(node);\n  }\n  function isOptionalJSDocPropertyLikeTag(node) {\n    if (!isJSDocPropertyLikeTag(node)) {\n      return false;\n    }\n    const { isBracketed, typeExpression } = node;\n    return isBracketed || !!typeExpression && typeExpression.type.kind === 319;\n  }\n  function canUsePropertyAccess(name, languageVersion) {\n    if (name.length === 0) {\n      return false;\n    }\n    const firstChar = name.charCodeAt(0);\n    return firstChar === 35 ? name.length > 1 && isIdentifierStart(name.charCodeAt(1), languageVersion) : isIdentifierStart(firstChar, languageVersion);\n  }\n  function hasTabstop(node) {\n    var _a2;\n    return ((_a2 = getSnippetElement(node)) == null ? void 0 : _a2.kind) === 0;\n  }\n  function isJSDocOptionalParameter(node) {\n    return isInJSFile(node) && (node.type && node.type.kind === 319 || getJSDocParameterTags(node).some(({ isBracketed, typeExpression }) => isBracketed || !!typeExpression && typeExpression.type.kind === 319));\n  }\n  function isOptionalDeclaration(declaration) {\n    switch (declaration.kind) {\n      case 169:\n      case 168:\n        return !!declaration.questionToken;\n      case 166:\n        return !!declaration.questionToken || isJSDocOptionalParameter(declaration);\n      case 351:\n      case 344:\n        return isOptionalJSDocPropertyLikeTag(declaration);\n      default:\n        return false;\n    }\n  }\n  function isNonNullAccess(node) {\n    const kind = node.kind;\n    return (kind === 208 || kind === 209) && isNonNullExpression(node.expression);\n  }\n  function isJSDocSatisfiesExpression(node) {\n    return isInJSFile(node) && isParenthesizedExpression(node) && hasJSDocNodes(node) && !!getJSDocSatisfiesTag(node);\n  }\n  function getJSDocSatisfiesExpressionType(node) {\n    return Debug.checkDefined(tryGetJSDocSatisfiesTypeNode(node));\n  }\n  function tryGetJSDocSatisfiesTypeNode(node) {\n    const tag = getJSDocSatisfiesTag(node);\n    return tag && tag.typeExpression && tag.typeExpression.type;\n  }\n  var resolvingEmptyArray, externalHelpersModuleNameText, defaultMaximumTruncationLength, noTruncationMaximumTruncationLength, stringWriter, GetLiteralTextFlags, fullTripleSlashReferencePathRegEx, fullTripleSlashReferenceTypeReferenceDirectiveRegEx, fullTripleSlashAMDReferencePathRegEx, defaultLibReferenceRegEx, AssignmentKind, FunctionFlags, Associativity, OperatorPrecedence, templateSubstitutionRegExp, doubleQuoteEscapedCharsRegExp, singleQuoteEscapedCharsRegExp, backtickQuoteEscapedCharsRegExp, escapedCharsMap, nonAsciiCharacters, jsxDoubleQuoteEscapedCharsRegExp, jsxSingleQuoteEscapedCharsRegExp, jsxEscapedCharsMap, indentStrings, base64Digits, carriageReturnLineFeed, lineFeed, objectAllocator, objectAllocatorPatchers, localizedDiagnosticMessages, reservedCharacterPattern, wildcardCharCodes, commonPackageFolders, implicitExcludePathRegexPattern, filesMatcher, directoriesMatcher, excludeMatcher, wildcardMatchers, supportedTSExtensions, supportedTSExtensionsFlat, supportedTSExtensionsWithJson, supportedTSExtensionsForExtractExtension, supportedJSExtensions, supportedJSExtensionsFlat, allSupportedExtensions, allSupportedExtensionsWithJson, supportedDeclarationExtensions, supportedTSImplementationExtensions, ModuleSpecifierEnding, extensionsToRemove, emptyFileSystemEntries;\n  var init_utilities = __esm({\n    \"src/compiler/utilities.ts\"() {\n      \"use strict\";\n      init_ts2();\n      resolvingEmptyArray = [];\n      externalHelpersModuleNameText = \"tslib\";\n      defaultMaximumTruncationLength = 160;\n      noTruncationMaximumTruncationLength = 1e6;\n      stringWriter = createSingleLineStringWriter();\n      GetLiteralTextFlags = /* @__PURE__ */ ((GetLiteralTextFlags2) => {\n        GetLiteralTextFlags2[GetLiteralTextFlags2[\"None\"] = 0] = \"None\";\n        GetLiteralTextFlags2[GetLiteralTextFlags2[\"NeverAsciiEscape\"] = 1] = \"NeverAsciiEscape\";\n        GetLiteralTextFlags2[GetLiteralTextFlags2[\"JsxAttributeEscape\"] = 2] = \"JsxAttributeEscape\";\n        GetLiteralTextFlags2[GetLiteralTextFlags2[\"TerminateUnterminatedLiterals\"] = 4] = \"TerminateUnterminatedLiterals\";\n        GetLiteralTextFlags2[GetLiteralTextFlags2[\"AllowNumericSeparator\"] = 8] = \"AllowNumericSeparator\";\n        return GetLiteralTextFlags2;\n      })(GetLiteralTextFlags || {});\n      fullTripleSlashReferencePathRegEx = /^(\\/\\/\\/\\s*<reference\\s+path\\s*=\\s*)(('[^']*')|(\"[^\"]*\")).*?\\/>/;\n      fullTripleSlashReferenceTypeReferenceDirectiveRegEx = /^(\\/\\/\\/\\s*<reference\\s+types\\s*=\\s*)(('[^']*')|(\"[^\"]*\")).*?\\/>/;\n      fullTripleSlashAMDReferencePathRegEx = /^(\\/\\/\\/\\s*<amd-dependency\\s+path\\s*=\\s*)(('[^']*')|(\"[^\"]*\")).*?\\/>/;\n      defaultLibReferenceRegEx = /^(\\/\\/\\/\\s*<reference\\s+no-default-lib\\s*=\\s*)(('[^']*')|(\"[^\"]*\"))\\s*\\/>/;\n      AssignmentKind = /* @__PURE__ */ ((AssignmentKind2) => {\n        AssignmentKind2[AssignmentKind2[\"None\"] = 0] = \"None\";\n        AssignmentKind2[AssignmentKind2[\"Definite\"] = 1] = \"Definite\";\n        AssignmentKind2[AssignmentKind2[\"Compound\"] = 2] = \"Compound\";\n        return AssignmentKind2;\n      })(AssignmentKind || {});\n      FunctionFlags = /* @__PURE__ */ ((FunctionFlags2) => {\n        FunctionFlags2[FunctionFlags2[\"Normal\"] = 0] = \"Normal\";\n        FunctionFlags2[FunctionFlags2[\"Generator\"] = 1] = \"Generator\";\n        FunctionFlags2[FunctionFlags2[\"Async\"] = 2] = \"Async\";\n        FunctionFlags2[FunctionFlags2[\"Invalid\"] = 4] = \"Invalid\";\n        FunctionFlags2[FunctionFlags2[\"AsyncGenerator\"] = 3] = \"AsyncGenerator\";\n        return FunctionFlags2;\n      })(FunctionFlags || {});\n      Associativity = /* @__PURE__ */ ((Associativity2) => {\n        Associativity2[Associativity2[\"Left\"] = 0] = \"Left\";\n        Associativity2[Associativity2[\"Right\"] = 1] = \"Right\";\n        return Associativity2;\n      })(Associativity || {});\n      OperatorPrecedence = /* @__PURE__ */ ((OperatorPrecedence2) => {\n        OperatorPrecedence2[OperatorPrecedence2[\"Comma\"] = 0] = \"Comma\";\n        OperatorPrecedence2[OperatorPrecedence2[\"Spread\"] = 1] = \"Spread\";\n        OperatorPrecedence2[OperatorPrecedence2[\"Yield\"] = 2] = \"Yield\";\n        OperatorPrecedence2[OperatorPrecedence2[\"Assignment\"] = 3] = \"Assignment\";\n        OperatorPrecedence2[OperatorPrecedence2[\"Conditional\"] = 4] = \"Conditional\";\n        OperatorPrecedence2[OperatorPrecedence2[\"Coalesce\"] = 4] = \"Coalesce\";\n        OperatorPrecedence2[OperatorPrecedence2[\"LogicalOR\"] = 5] = \"LogicalOR\";\n        OperatorPrecedence2[OperatorPrecedence2[\"LogicalAND\"] = 6] = \"LogicalAND\";\n        OperatorPrecedence2[OperatorPrecedence2[\"BitwiseOR\"] = 7] = \"BitwiseOR\";\n        OperatorPrecedence2[OperatorPrecedence2[\"BitwiseXOR\"] = 8] = \"BitwiseXOR\";\n        OperatorPrecedence2[OperatorPrecedence2[\"BitwiseAND\"] = 9] = \"BitwiseAND\";\n        OperatorPrecedence2[OperatorPrecedence2[\"Equality\"] = 10] = \"Equality\";\n        OperatorPrecedence2[OperatorPrecedence2[\"Relational\"] = 11] = \"Relational\";\n        OperatorPrecedence2[OperatorPrecedence2[\"Shift\"] = 12] = \"Shift\";\n        OperatorPrecedence2[OperatorPrecedence2[\"Additive\"] = 13] = \"Additive\";\n        OperatorPrecedence2[OperatorPrecedence2[\"Multiplicative\"] = 14] = \"Multiplicative\";\n        OperatorPrecedence2[OperatorPrecedence2[\"Exponentiation\"] = 15] = \"Exponentiation\";\n        OperatorPrecedence2[OperatorPrecedence2[\"Unary\"] = 16] = \"Unary\";\n        OperatorPrecedence2[OperatorPrecedence2[\"Update\"] = 17] = \"Update\";\n        OperatorPrecedence2[OperatorPrecedence2[\"LeftHandSide\"] = 18] = \"LeftHandSide\";\n        OperatorPrecedence2[OperatorPrecedence2[\"Member\"] = 19] = \"Member\";\n        OperatorPrecedence2[OperatorPrecedence2[\"Primary\"] = 20] = \"Primary\";\n        OperatorPrecedence2[OperatorPrecedence2[\"Highest\"] = 20] = \"Highest\";\n        OperatorPrecedence2[OperatorPrecedence2[\"Lowest\"] = 0] = \"Lowest\";\n        OperatorPrecedence2[OperatorPrecedence2[\"Invalid\"] = -1] = \"Invalid\";\n        return OperatorPrecedence2;\n      })(OperatorPrecedence || {});\n      templateSubstitutionRegExp = /\\$\\{/g;\n      doubleQuoteEscapedCharsRegExp = /[\\\\\\\"\\u0000-\\u001f\\t\\v\\f\\b\\r\\n\\u2028\\u2029\\u0085]/g;\n      singleQuoteEscapedCharsRegExp = /[\\\\\\'\\u0000-\\u001f\\t\\v\\f\\b\\r\\n\\u2028\\u2029\\u0085]/g;\n      backtickQuoteEscapedCharsRegExp = /\\r\\n|[\\\\\\`\\u0000-\\u001f\\t\\v\\f\\b\\r\\u2028\\u2029\\u0085]/g;\n      escapedCharsMap = new Map(Object.entries({\n        \"\t\": \"\\\\t\",\n        \"\\v\": \"\\\\v\",\n        \"\\f\": \"\\\\f\",\n        \"\\b\": \"\\\\b\",\n        \"\\r\": \"\\\\r\",\n        \"\\n\": \"\\\\n\",\n        \"\\\\\": \"\\\\\\\\\",\n        '\"': '\\\\\"',\n        \"'\": \"\\\\'\",\n        \"`\": \"\\\\`\",\n        \"\\u2028\": \"\\\\u2028\",\n        \"\\u2029\": \"\\\\u2029\",\n        \"\\x85\": \"\\\\u0085\",\n        \"\\r\\n\": \"\\\\r\\\\n\"\n      }));\n      nonAsciiCharacters = /[^\\u0000-\\u007F]/g;\n      jsxDoubleQuoteEscapedCharsRegExp = /[\\\"\\u0000-\\u001f\\u2028\\u2029\\u0085]/g;\n      jsxSingleQuoteEscapedCharsRegExp = /[\\'\\u0000-\\u001f\\u2028\\u2029\\u0085]/g;\n      jsxEscapedCharsMap = new Map(Object.entries({\n        '\"': \"&quot;\",\n        \"'\": \"&apos;\"\n      }));\n      indentStrings = [\"\", \"    \"];\n      base64Digits = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";\n      carriageReturnLineFeed = \"\\r\\n\";\n      lineFeed = \"\\n\";\n      objectAllocator = {\n        getNodeConstructor: () => Node4,\n        getTokenConstructor: () => Token,\n        getIdentifierConstructor: () => Identifier2,\n        getPrivateIdentifierConstructor: () => Node4,\n        getSourceFileConstructor: () => Node4,\n        getSymbolConstructor: () => Symbol4,\n        getTypeConstructor: () => Type3,\n        getSignatureConstructor: () => Signature2,\n        getSourceMapSourceConstructor: () => SourceMapSource\n      };\n      objectAllocatorPatchers = [];\n      reservedCharacterPattern = /[^\\w\\s\\/]/g;\n      wildcardCharCodes = [42, 63];\n      commonPackageFolders = [\"node_modules\", \"bower_components\", \"jspm_packages\"];\n      implicitExcludePathRegexPattern = `(?!(${commonPackageFolders.join(\"|\")})(/|$))`;\n      filesMatcher = {\n        singleAsteriskRegexFragment: \"([^./]|(\\\\.(?!min\\\\.js$))?)*\",\n        doubleAsteriskRegexFragment: `(/${implicitExcludePathRegexPattern}[^/.][^/]*)*?`,\n        replaceWildcardCharacter: (match) => replaceWildcardCharacter(match, filesMatcher.singleAsteriskRegexFragment)\n      };\n      directoriesMatcher = {\n        singleAsteriskRegexFragment: \"[^/]*\",\n        doubleAsteriskRegexFragment: `(/${implicitExcludePathRegexPattern}[^/.][^/]*)*?`,\n        replaceWildcardCharacter: (match) => replaceWildcardCharacter(match, directoriesMatcher.singleAsteriskRegexFragment)\n      };\n      excludeMatcher = {\n        singleAsteriskRegexFragment: \"[^/]*\",\n        doubleAsteriskRegexFragment: \"(/.+?)?\",\n        replaceWildcardCharacter: (match) => replaceWildcardCharacter(match, excludeMatcher.singleAsteriskRegexFragment)\n      };\n      wildcardMatchers = {\n        files: filesMatcher,\n        directories: directoriesMatcher,\n        exclude: excludeMatcher\n      };\n      supportedTSExtensions = [[\".ts\", \".tsx\", \".d.ts\"], [\".cts\", \".d.cts\"], [\".mts\", \".d.mts\"]];\n      supportedTSExtensionsFlat = flatten(supportedTSExtensions);\n      supportedTSExtensionsWithJson = [...supportedTSExtensions, [\".json\"]];\n      supportedTSExtensionsForExtractExtension = [\".d.ts\", \".d.cts\", \".d.mts\", \".cts\", \".mts\", \".ts\", \".tsx\", \".cts\", \".mts\"];\n      supportedJSExtensions = [[\".js\", \".jsx\"], [\".mjs\"], [\".cjs\"]];\n      supportedJSExtensionsFlat = flatten(supportedJSExtensions);\n      allSupportedExtensions = [[\".ts\", \".tsx\", \".d.ts\", \".js\", \".jsx\"], [\".cts\", \".d.cts\", \".cjs\"], [\".mts\", \".d.mts\", \".mjs\"]];\n      allSupportedExtensionsWithJson = [...allSupportedExtensions, [\".json\"]];\n      supportedDeclarationExtensions = [\".d.ts\", \".d.cts\", \".d.mts\"];\n      supportedTSImplementationExtensions = [\".ts\", \".cts\", \".mts\", \".tsx\"];\n      ModuleSpecifierEnding = /* @__PURE__ */ ((ModuleSpecifierEnding2) => {\n        ModuleSpecifierEnding2[ModuleSpecifierEnding2[\"Minimal\"] = 0] = \"Minimal\";\n        ModuleSpecifierEnding2[ModuleSpecifierEnding2[\"Index\"] = 1] = \"Index\";\n        ModuleSpecifierEnding2[ModuleSpecifierEnding2[\"JsExtension\"] = 2] = \"JsExtension\";\n        ModuleSpecifierEnding2[ModuleSpecifierEnding2[\"TsExtension\"] = 3] = \"TsExtension\";\n        return ModuleSpecifierEnding2;\n      })(ModuleSpecifierEnding || {});\n      extensionsToRemove = [\".d.ts\", \".d.mts\", \".d.cts\", \".mjs\", \".mts\", \".cjs\", \".cts\", \".ts\", \".js\", \".tsx\", \".jsx\", \".json\"];\n      emptyFileSystemEntries = {\n        files: emptyArray,\n        directories: emptyArray\n      };\n    }\n  });\n  function createBaseNodeFactory() {\n    let NodeConstructor2;\n    let TokenConstructor2;\n    let IdentifierConstructor2;\n    let PrivateIdentifierConstructor2;\n    let SourceFileConstructor2;\n    return {\n      createBaseSourceFileNode,\n      createBaseIdentifierNode,\n      createBasePrivateIdentifierNode,\n      createBaseTokenNode,\n      createBaseNode\n    };\n    function createBaseSourceFileNode(kind) {\n      return new (SourceFileConstructor2 || (SourceFileConstructor2 = objectAllocator.getSourceFileConstructor()))(kind, -1, -1);\n    }\n    function createBaseIdentifierNode(kind) {\n      return new (IdentifierConstructor2 || (IdentifierConstructor2 = objectAllocator.getIdentifierConstructor()))(kind, -1, -1);\n    }\n    function createBasePrivateIdentifierNode(kind) {\n      return new (PrivateIdentifierConstructor2 || (PrivateIdentifierConstructor2 = objectAllocator.getPrivateIdentifierConstructor()))(kind, -1, -1);\n    }\n    function createBaseTokenNode(kind) {\n      return new (TokenConstructor2 || (TokenConstructor2 = objectAllocator.getTokenConstructor()))(kind, -1, -1);\n    }\n    function createBaseNode(kind) {\n      return new (NodeConstructor2 || (NodeConstructor2 = objectAllocator.getNodeConstructor()))(kind, -1, -1);\n    }\n  }\n  var init_baseNodeFactory = __esm({\n    \"src/compiler/factory/baseNodeFactory.ts\"() {\n      \"use strict\";\n      init_ts2();\n    }\n  });\n  function createParenthesizerRules(factory2) {\n    let binaryLeftOperandParenthesizerCache;\n    let binaryRightOperandParenthesizerCache;\n    return {\n      getParenthesizeLeftSideOfBinaryForOperator,\n      getParenthesizeRightSideOfBinaryForOperator,\n      parenthesizeLeftSideOfBinary,\n      parenthesizeRightSideOfBinary,\n      parenthesizeExpressionOfComputedPropertyName,\n      parenthesizeConditionOfConditionalExpression,\n      parenthesizeBranchOfConditionalExpression,\n      parenthesizeExpressionOfExportDefault,\n      parenthesizeExpressionOfNew,\n      parenthesizeLeftSideOfAccess,\n      parenthesizeOperandOfPostfixUnary,\n      parenthesizeOperandOfPrefixUnary,\n      parenthesizeExpressionsOfCommaDelimitedList,\n      parenthesizeExpressionForDisallowedComma,\n      parenthesizeExpressionOfExpressionStatement,\n      parenthesizeConciseBodyOfArrowFunction,\n      parenthesizeCheckTypeOfConditionalType,\n      parenthesizeExtendsTypeOfConditionalType,\n      parenthesizeConstituentTypesOfUnionType,\n      parenthesizeConstituentTypeOfUnionType,\n      parenthesizeConstituentTypesOfIntersectionType,\n      parenthesizeConstituentTypeOfIntersectionType,\n      parenthesizeOperandOfTypeOperator,\n      parenthesizeOperandOfReadonlyTypeOperator,\n      parenthesizeNonArrayTypeOfPostfixType,\n      parenthesizeElementTypesOfTupleType,\n      parenthesizeElementTypeOfTupleType,\n      parenthesizeTypeOfOptionalType,\n      parenthesizeTypeArguments,\n      parenthesizeLeadingTypeArgument\n    };\n    function getParenthesizeLeftSideOfBinaryForOperator(operatorKind) {\n      binaryLeftOperandParenthesizerCache || (binaryLeftOperandParenthesizerCache = /* @__PURE__ */ new Map());\n      let parenthesizerRule = binaryLeftOperandParenthesizerCache.get(operatorKind);\n      if (!parenthesizerRule) {\n        parenthesizerRule = (node) => parenthesizeLeftSideOfBinary(operatorKind, node);\n        binaryLeftOperandParenthesizerCache.set(operatorKind, parenthesizerRule);\n      }\n      return parenthesizerRule;\n    }\n    function getParenthesizeRightSideOfBinaryForOperator(operatorKind) {\n      binaryRightOperandParenthesizerCache || (binaryRightOperandParenthesizerCache = /* @__PURE__ */ new Map());\n      let parenthesizerRule = binaryRightOperandParenthesizerCache.get(operatorKind);\n      if (!parenthesizerRule) {\n        parenthesizerRule = (node) => parenthesizeRightSideOfBinary(operatorKind, void 0, node);\n        binaryRightOperandParenthesizerCache.set(operatorKind, parenthesizerRule);\n      }\n      return parenthesizerRule;\n    }\n    function binaryOperandNeedsParentheses(binaryOperator, operand, isLeftSideOfBinary, leftOperand) {\n      const binaryOperatorPrecedence = getOperatorPrecedence(223, binaryOperator);\n      const binaryOperatorAssociativity = getOperatorAssociativity(223, binaryOperator);\n      const emittedOperand = skipPartiallyEmittedExpressions(operand);\n      if (!isLeftSideOfBinary && operand.kind === 216 && binaryOperatorPrecedence > 3) {\n        return true;\n      }\n      const operandPrecedence = getExpressionPrecedence(emittedOperand);\n      switch (compareValues(operandPrecedence, binaryOperatorPrecedence)) {\n        case -1:\n          if (!isLeftSideOfBinary && binaryOperatorAssociativity === 1 && operand.kind === 226) {\n            return false;\n          }\n          return true;\n        case 1:\n          return false;\n        case 0:\n          if (isLeftSideOfBinary) {\n            return binaryOperatorAssociativity === 1;\n          } else {\n            if (isBinaryExpression(emittedOperand) && emittedOperand.operatorToken.kind === binaryOperator) {\n              if (operatorHasAssociativeProperty(binaryOperator)) {\n                return false;\n              }\n              if (binaryOperator === 39) {\n                const leftKind = leftOperand ? getLiteralKindOfBinaryPlusOperand(leftOperand) : 0;\n                if (isLiteralKind(leftKind) && leftKind === getLiteralKindOfBinaryPlusOperand(emittedOperand)) {\n                  return false;\n                }\n              }\n            }\n            const operandAssociativity = getExpressionAssociativity(emittedOperand);\n            return operandAssociativity === 0;\n          }\n      }\n    }\n    function operatorHasAssociativeProperty(binaryOperator) {\n      return binaryOperator === 41 || binaryOperator === 51 || binaryOperator === 50 || binaryOperator === 52 || binaryOperator === 27;\n    }\n    function getLiteralKindOfBinaryPlusOperand(node) {\n      node = skipPartiallyEmittedExpressions(node);\n      if (isLiteralKind(node.kind)) {\n        return node.kind;\n      }\n      if (node.kind === 223 && node.operatorToken.kind === 39) {\n        if (node.cachedLiteralKind !== void 0) {\n          return node.cachedLiteralKind;\n        }\n        const leftKind = getLiteralKindOfBinaryPlusOperand(node.left);\n        const literalKind = isLiteralKind(leftKind) && leftKind === getLiteralKindOfBinaryPlusOperand(node.right) ? leftKind : 0;\n        node.cachedLiteralKind = literalKind;\n        return literalKind;\n      }\n      return 0;\n    }\n    function parenthesizeBinaryOperand(binaryOperator, operand, isLeftSideOfBinary, leftOperand) {\n      const skipped = skipPartiallyEmittedExpressions(operand);\n      if (skipped.kind === 214) {\n        return operand;\n      }\n      return binaryOperandNeedsParentheses(binaryOperator, operand, isLeftSideOfBinary, leftOperand) ? factory2.createParenthesizedExpression(operand) : operand;\n    }\n    function parenthesizeLeftSideOfBinary(binaryOperator, leftSide) {\n      return parenthesizeBinaryOperand(binaryOperator, leftSide, true);\n    }\n    function parenthesizeRightSideOfBinary(binaryOperator, leftSide, rightSide) {\n      return parenthesizeBinaryOperand(binaryOperator, rightSide, false, leftSide);\n    }\n    function parenthesizeExpressionOfComputedPropertyName(expression) {\n      return isCommaSequence(expression) ? factory2.createParenthesizedExpression(expression) : expression;\n    }\n    function parenthesizeConditionOfConditionalExpression(condition) {\n      const conditionalPrecedence = getOperatorPrecedence(224, 57);\n      const emittedCondition = skipPartiallyEmittedExpressions(condition);\n      const conditionPrecedence = getExpressionPrecedence(emittedCondition);\n      if (compareValues(conditionPrecedence, conditionalPrecedence) !== 1) {\n        return factory2.createParenthesizedExpression(condition);\n      }\n      return condition;\n    }\n    function parenthesizeBranchOfConditionalExpression(branch) {\n      const emittedExpression = skipPartiallyEmittedExpressions(branch);\n      return isCommaSequence(emittedExpression) ? factory2.createParenthesizedExpression(branch) : branch;\n    }\n    function parenthesizeExpressionOfExportDefault(expression) {\n      const check = skipPartiallyEmittedExpressions(expression);\n      let needsParens = isCommaSequence(check);\n      if (!needsParens) {\n        switch (getLeftmostExpression(check, false).kind) {\n          case 228:\n          case 215:\n            needsParens = true;\n        }\n      }\n      return needsParens ? factory2.createParenthesizedExpression(expression) : expression;\n    }\n    function parenthesizeExpressionOfNew(expression) {\n      const leftmostExpr = getLeftmostExpression(expression, true);\n      switch (leftmostExpr.kind) {\n        case 210:\n          return factory2.createParenthesizedExpression(expression);\n        case 211:\n          return !leftmostExpr.arguments ? factory2.createParenthesizedExpression(expression) : expression;\n      }\n      return parenthesizeLeftSideOfAccess(expression);\n    }\n    function parenthesizeLeftSideOfAccess(expression, optionalChain) {\n      const emittedExpression = skipPartiallyEmittedExpressions(expression);\n      if (isLeftHandSideExpression(emittedExpression) && (emittedExpression.kind !== 211 || emittedExpression.arguments) && (optionalChain || !isOptionalChain(emittedExpression))) {\n        return expression;\n      }\n      return setTextRange(factory2.createParenthesizedExpression(expression), expression);\n    }\n    function parenthesizeOperandOfPostfixUnary(operand) {\n      return isLeftHandSideExpression(operand) ? operand : setTextRange(factory2.createParenthesizedExpression(operand), operand);\n    }\n    function parenthesizeOperandOfPrefixUnary(operand) {\n      return isUnaryExpression(operand) ? operand : setTextRange(factory2.createParenthesizedExpression(operand), operand);\n    }\n    function parenthesizeExpressionsOfCommaDelimitedList(elements) {\n      const result = sameMap(elements, parenthesizeExpressionForDisallowedComma);\n      return setTextRange(factory2.createNodeArray(result, elements.hasTrailingComma), elements);\n    }\n    function parenthesizeExpressionForDisallowedComma(expression) {\n      const emittedExpression = skipPartiallyEmittedExpressions(expression);\n      const expressionPrecedence = getExpressionPrecedence(emittedExpression);\n      const commaPrecedence = getOperatorPrecedence(223, 27);\n      return expressionPrecedence > commaPrecedence ? expression : setTextRange(factory2.createParenthesizedExpression(expression), expression);\n    }\n    function parenthesizeExpressionOfExpressionStatement(expression) {\n      const emittedExpression = skipPartiallyEmittedExpressions(expression);\n      if (isCallExpression(emittedExpression)) {\n        const callee = emittedExpression.expression;\n        const kind = skipPartiallyEmittedExpressions(callee).kind;\n        if (kind === 215 || kind === 216) {\n          const updated = factory2.updateCallExpression(emittedExpression, setTextRange(factory2.createParenthesizedExpression(callee), callee), emittedExpression.typeArguments, emittedExpression.arguments);\n          return factory2.restoreOuterExpressions(expression, updated, 8);\n        }\n      }\n      const leftmostExpressionKind = getLeftmostExpression(emittedExpression, false).kind;\n      if (leftmostExpressionKind === 207 || leftmostExpressionKind === 215) {\n        return setTextRange(factory2.createParenthesizedExpression(expression), expression);\n      }\n      return expression;\n    }\n    function parenthesizeConciseBodyOfArrowFunction(body) {\n      if (!isBlock(body) && (isCommaSequence(body) || getLeftmostExpression(body, false).kind === 207)) {\n        return setTextRange(factory2.createParenthesizedExpression(body), body);\n      }\n      return body;\n    }\n    function parenthesizeCheckTypeOfConditionalType(checkType) {\n      switch (checkType.kind) {\n        case 181:\n        case 182:\n        case 191:\n          return factory2.createParenthesizedType(checkType);\n      }\n      return checkType;\n    }\n    function parenthesizeExtendsTypeOfConditionalType(extendsType) {\n      switch (extendsType.kind) {\n        case 191:\n          return factory2.createParenthesizedType(extendsType);\n      }\n      return extendsType;\n    }\n    function parenthesizeConstituentTypeOfUnionType(type) {\n      switch (type.kind) {\n        case 189:\n        case 190:\n          return factory2.createParenthesizedType(type);\n      }\n      return parenthesizeCheckTypeOfConditionalType(type);\n    }\n    function parenthesizeConstituentTypesOfUnionType(members) {\n      return factory2.createNodeArray(sameMap(members, parenthesizeConstituentTypeOfUnionType));\n    }\n    function parenthesizeConstituentTypeOfIntersectionType(type) {\n      switch (type.kind) {\n        case 189:\n        case 190:\n          return factory2.createParenthesizedType(type);\n      }\n      return parenthesizeConstituentTypeOfUnionType(type);\n    }\n    function parenthesizeConstituentTypesOfIntersectionType(members) {\n      return factory2.createNodeArray(sameMap(members, parenthesizeConstituentTypeOfIntersectionType));\n    }\n    function parenthesizeOperandOfTypeOperator(type) {\n      switch (type.kind) {\n        case 190:\n          return factory2.createParenthesizedType(type);\n      }\n      return parenthesizeConstituentTypeOfIntersectionType(type);\n    }\n    function parenthesizeOperandOfReadonlyTypeOperator(type) {\n      switch (type.kind) {\n        case 195:\n          return factory2.createParenthesizedType(type);\n      }\n      return parenthesizeOperandOfTypeOperator(type);\n    }\n    function parenthesizeNonArrayTypeOfPostfixType(type) {\n      switch (type.kind) {\n        case 192:\n        case 195:\n        case 183:\n          return factory2.createParenthesizedType(type);\n      }\n      return parenthesizeOperandOfTypeOperator(type);\n    }\n    function parenthesizeElementTypesOfTupleType(types) {\n      return factory2.createNodeArray(sameMap(types, parenthesizeElementTypeOfTupleType));\n    }\n    function parenthesizeElementTypeOfTupleType(type) {\n      if (hasJSDocPostfixQuestion(type))\n        return factory2.createParenthesizedType(type);\n      return type;\n    }\n    function hasJSDocPostfixQuestion(type) {\n      if (isJSDocNullableType(type))\n        return type.postfix;\n      if (isNamedTupleMember(type))\n        return hasJSDocPostfixQuestion(type.type);\n      if (isFunctionTypeNode(type) || isConstructorTypeNode(type) || isTypeOperatorNode(type))\n        return hasJSDocPostfixQuestion(type.type);\n      if (isConditionalTypeNode(type))\n        return hasJSDocPostfixQuestion(type.falseType);\n      if (isUnionTypeNode(type))\n        return hasJSDocPostfixQuestion(last(type.types));\n      if (isIntersectionTypeNode(type))\n        return hasJSDocPostfixQuestion(last(type.types));\n      if (isInferTypeNode(type))\n        return !!type.typeParameter.constraint && hasJSDocPostfixQuestion(type.typeParameter.constraint);\n      return false;\n    }\n    function parenthesizeTypeOfOptionalType(type) {\n      if (hasJSDocPostfixQuestion(type))\n        return factory2.createParenthesizedType(type);\n      return parenthesizeNonArrayTypeOfPostfixType(type);\n    }\n    function parenthesizeLeadingTypeArgument(node) {\n      return isFunctionOrConstructorTypeNode(node) && node.typeParameters ? factory2.createParenthesizedType(node) : node;\n    }\n    function parenthesizeOrdinalTypeArgument(node, i) {\n      return i === 0 ? parenthesizeLeadingTypeArgument(node) : node;\n    }\n    function parenthesizeTypeArguments(typeArguments) {\n      if (some(typeArguments)) {\n        return factory2.createNodeArray(sameMap(typeArguments, parenthesizeOrdinalTypeArgument));\n      }\n    }\n  }\n  var nullParenthesizerRules;\n  var init_parenthesizerRules = __esm({\n    \"src/compiler/factory/parenthesizerRules.ts\"() {\n      \"use strict\";\n      init_ts2();\n      nullParenthesizerRules = {\n        getParenthesizeLeftSideOfBinaryForOperator: (_) => identity,\n        getParenthesizeRightSideOfBinaryForOperator: (_) => identity,\n        parenthesizeLeftSideOfBinary: (_binaryOperator, leftSide) => leftSide,\n        parenthesizeRightSideOfBinary: (_binaryOperator, _leftSide, rightSide) => rightSide,\n        parenthesizeExpressionOfComputedPropertyName: identity,\n        parenthesizeConditionOfConditionalExpression: identity,\n        parenthesizeBranchOfConditionalExpression: identity,\n        parenthesizeExpressionOfExportDefault: identity,\n        parenthesizeExpressionOfNew: (expression) => cast(expression, isLeftHandSideExpression),\n        parenthesizeLeftSideOfAccess: (expression) => cast(expression, isLeftHandSideExpression),\n        parenthesizeOperandOfPostfixUnary: (operand) => cast(operand, isLeftHandSideExpression),\n        parenthesizeOperandOfPrefixUnary: (operand) => cast(operand, isUnaryExpression),\n        parenthesizeExpressionsOfCommaDelimitedList: (nodes) => cast(nodes, isNodeArray),\n        parenthesizeExpressionForDisallowedComma: identity,\n        parenthesizeExpressionOfExpressionStatement: identity,\n        parenthesizeConciseBodyOfArrowFunction: identity,\n        parenthesizeCheckTypeOfConditionalType: identity,\n        parenthesizeExtendsTypeOfConditionalType: identity,\n        parenthesizeConstituentTypesOfUnionType: (nodes) => cast(nodes, isNodeArray),\n        parenthesizeConstituentTypeOfUnionType: identity,\n        parenthesizeConstituentTypesOfIntersectionType: (nodes) => cast(nodes, isNodeArray),\n        parenthesizeConstituentTypeOfIntersectionType: identity,\n        parenthesizeOperandOfTypeOperator: identity,\n        parenthesizeOperandOfReadonlyTypeOperator: identity,\n        parenthesizeNonArrayTypeOfPostfixType: identity,\n        parenthesizeElementTypesOfTupleType: (nodes) => cast(nodes, isNodeArray),\n        parenthesizeElementTypeOfTupleType: identity,\n        parenthesizeTypeOfOptionalType: identity,\n        parenthesizeTypeArguments: (nodes) => nodes && cast(nodes, isNodeArray),\n        parenthesizeLeadingTypeArgument: identity\n      };\n    }\n  });\n  function createNodeConverters(factory2) {\n    return {\n      convertToFunctionBlock,\n      convertToFunctionExpression,\n      convertToArrayAssignmentElement,\n      convertToObjectAssignmentElement,\n      convertToAssignmentPattern,\n      convertToObjectAssignmentPattern,\n      convertToArrayAssignmentPattern,\n      convertToAssignmentElementTarget\n    };\n    function convertToFunctionBlock(node, multiLine) {\n      if (isBlock(node))\n        return node;\n      const returnStatement = factory2.createReturnStatement(node);\n      setTextRange(returnStatement, node);\n      const body = factory2.createBlock([returnStatement], multiLine);\n      setTextRange(body, node);\n      return body;\n    }\n    function convertToFunctionExpression(node) {\n      if (!node.body)\n        return Debug.fail(`Cannot convert a FunctionDeclaration without a body`);\n      const updated = factory2.createFunctionExpression(getModifiers(node), node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body);\n      setOriginalNode(updated, node);\n      setTextRange(updated, node);\n      if (getStartsOnNewLine(node)) {\n        setStartsOnNewLine(updated, true);\n      }\n      return updated;\n    }\n    function convertToArrayAssignmentElement(element) {\n      if (isBindingElement(element)) {\n        if (element.dotDotDotToken) {\n          Debug.assertNode(element.name, isIdentifier);\n          return setOriginalNode(setTextRange(factory2.createSpreadElement(element.name), element), element);\n        }\n        const expression = convertToAssignmentElementTarget(element.name);\n        return element.initializer ? setOriginalNode(setTextRange(factory2.createAssignment(expression, element.initializer), element), element) : expression;\n      }\n      return cast(element, isExpression);\n    }\n    function convertToObjectAssignmentElement(element) {\n      if (isBindingElement(element)) {\n        if (element.dotDotDotToken) {\n          Debug.assertNode(element.name, isIdentifier);\n          return setOriginalNode(setTextRange(factory2.createSpreadAssignment(element.name), element), element);\n        }\n        if (element.propertyName) {\n          const expression = convertToAssignmentElementTarget(element.name);\n          return setOriginalNode(setTextRange(factory2.createPropertyAssignment(element.propertyName, element.initializer ? factory2.createAssignment(expression, element.initializer) : expression), element), element);\n        }\n        Debug.assertNode(element.name, isIdentifier);\n        return setOriginalNode(setTextRange(factory2.createShorthandPropertyAssignment(element.name, element.initializer), element), element);\n      }\n      return cast(element, isObjectLiteralElementLike);\n    }\n    function convertToAssignmentPattern(node) {\n      switch (node.kind) {\n        case 204:\n        case 206:\n          return convertToArrayAssignmentPattern(node);\n        case 203:\n        case 207:\n          return convertToObjectAssignmentPattern(node);\n      }\n    }\n    function convertToObjectAssignmentPattern(node) {\n      if (isObjectBindingPattern(node)) {\n        return setOriginalNode(setTextRange(factory2.createObjectLiteralExpression(map(node.elements, convertToObjectAssignmentElement)), node), node);\n      }\n      return cast(node, isObjectLiteralExpression);\n    }\n    function convertToArrayAssignmentPattern(node) {\n      if (isArrayBindingPattern(node)) {\n        return setOriginalNode(setTextRange(factory2.createArrayLiteralExpression(map(node.elements, convertToArrayAssignmentElement)), node), node);\n      }\n      return cast(node, isArrayLiteralExpression);\n    }\n    function convertToAssignmentElementTarget(node) {\n      if (isBindingPattern(node)) {\n        return convertToAssignmentPattern(node);\n      }\n      return cast(node, isExpression);\n    }\n  }\n  var nullNodeConverters;\n  var init_nodeConverters = __esm({\n    \"src/compiler/factory/nodeConverters.ts\"() {\n      \"use strict\";\n      init_ts2();\n      nullNodeConverters = {\n        convertToFunctionBlock: notImplemented,\n        convertToFunctionExpression: notImplemented,\n        convertToArrayAssignmentElement: notImplemented,\n        convertToObjectAssignmentElement: notImplemented,\n        convertToAssignmentPattern: notImplemented,\n        convertToObjectAssignmentPattern: notImplemented,\n        convertToArrayAssignmentPattern: notImplemented,\n        convertToAssignmentElementTarget: notImplemented\n      };\n    }\n  });\n  function addNodeFactoryPatcher(fn) {\n    nodeFactoryPatchers.push(fn);\n  }\n  function createNodeFactory(flags, baseFactory2) {\n    const update = flags & 8 ? updateWithoutOriginal : updateWithOriginal;\n    const parenthesizerRules = memoize(() => flags & 1 ? nullParenthesizerRules : createParenthesizerRules(factory2));\n    const converters = memoize(() => flags & 2 ? nullNodeConverters : createNodeConverters(factory2));\n    const getBinaryCreateFunction = memoizeOne((operator) => (left, right) => createBinaryExpression(left, operator, right));\n    const getPrefixUnaryCreateFunction = memoizeOne((operator) => (operand) => createPrefixUnaryExpression(operator, operand));\n    const getPostfixUnaryCreateFunction = memoizeOne((operator) => (operand) => createPostfixUnaryExpression(operand, operator));\n    const getJSDocPrimaryTypeCreateFunction = memoizeOne((kind) => () => createJSDocPrimaryTypeWorker(kind));\n    const getJSDocUnaryTypeCreateFunction = memoizeOne((kind) => (type) => createJSDocUnaryTypeWorker(kind, type));\n    const getJSDocUnaryTypeUpdateFunction = memoizeOne((kind) => (node, type) => updateJSDocUnaryTypeWorker(kind, node, type));\n    const getJSDocPrePostfixUnaryTypeCreateFunction = memoizeOne((kind) => (type, postfix) => createJSDocPrePostfixUnaryTypeWorker(kind, type, postfix));\n    const getJSDocPrePostfixUnaryTypeUpdateFunction = memoizeOne((kind) => (node, type) => updateJSDocPrePostfixUnaryTypeWorker(kind, node, type));\n    const getJSDocSimpleTagCreateFunction = memoizeOne((kind) => (tagName, comment) => createJSDocSimpleTagWorker(kind, tagName, comment));\n    const getJSDocSimpleTagUpdateFunction = memoizeOne((kind) => (node, tagName, comment) => updateJSDocSimpleTagWorker(kind, node, tagName, comment));\n    const getJSDocTypeLikeTagCreateFunction = memoizeOne((kind) => (tagName, typeExpression, comment) => createJSDocTypeLikeTagWorker(kind, tagName, typeExpression, comment));\n    const getJSDocTypeLikeTagUpdateFunction = memoizeOne((kind) => (node, tagName, typeExpression, comment) => updateJSDocTypeLikeTagWorker(kind, node, tagName, typeExpression, comment));\n    const factory2 = {\n      get parenthesizer() {\n        return parenthesizerRules();\n      },\n      get converters() {\n        return converters();\n      },\n      baseFactory: baseFactory2,\n      flags,\n      createNodeArray,\n      createNumericLiteral,\n      createBigIntLiteral,\n      createStringLiteral,\n      createStringLiteralFromNode,\n      createRegularExpressionLiteral,\n      createLiteralLikeNode,\n      createIdentifier,\n      createTempVariable,\n      createLoopVariable,\n      createUniqueName,\n      getGeneratedNameForNode,\n      createPrivateIdentifier,\n      createUniquePrivateName,\n      getGeneratedPrivateNameForNode,\n      createToken,\n      createSuper,\n      createThis,\n      createNull,\n      createTrue,\n      createFalse,\n      createModifier,\n      createModifiersFromModifierFlags,\n      createQualifiedName,\n      updateQualifiedName,\n      createComputedPropertyName,\n      updateComputedPropertyName,\n      createTypeParameterDeclaration,\n      updateTypeParameterDeclaration,\n      createParameterDeclaration,\n      updateParameterDeclaration,\n      createDecorator,\n      updateDecorator,\n      createPropertySignature,\n      updatePropertySignature,\n      createPropertyDeclaration,\n      updatePropertyDeclaration: updatePropertyDeclaration2,\n      createMethodSignature,\n      updateMethodSignature,\n      createMethodDeclaration,\n      updateMethodDeclaration,\n      createConstructorDeclaration,\n      updateConstructorDeclaration,\n      createGetAccessorDeclaration,\n      updateGetAccessorDeclaration,\n      createSetAccessorDeclaration,\n      updateSetAccessorDeclaration,\n      createCallSignature,\n      updateCallSignature,\n      createConstructSignature,\n      updateConstructSignature,\n      createIndexSignature,\n      updateIndexSignature,\n      createClassStaticBlockDeclaration,\n      updateClassStaticBlockDeclaration,\n      createTemplateLiteralTypeSpan,\n      updateTemplateLiteralTypeSpan,\n      createKeywordTypeNode,\n      createTypePredicateNode,\n      updateTypePredicateNode,\n      createTypeReferenceNode,\n      updateTypeReferenceNode,\n      createFunctionTypeNode,\n      updateFunctionTypeNode,\n      createConstructorTypeNode,\n      updateConstructorTypeNode,\n      createTypeQueryNode,\n      updateTypeQueryNode,\n      createTypeLiteralNode,\n      updateTypeLiteralNode,\n      createArrayTypeNode,\n      updateArrayTypeNode,\n      createTupleTypeNode,\n      updateTupleTypeNode,\n      createNamedTupleMember,\n      updateNamedTupleMember,\n      createOptionalTypeNode,\n      updateOptionalTypeNode,\n      createRestTypeNode,\n      updateRestTypeNode,\n      createUnionTypeNode,\n      updateUnionTypeNode,\n      createIntersectionTypeNode,\n      updateIntersectionTypeNode,\n      createConditionalTypeNode,\n      updateConditionalTypeNode,\n      createInferTypeNode,\n      updateInferTypeNode,\n      createImportTypeNode,\n      updateImportTypeNode,\n      createParenthesizedType,\n      updateParenthesizedType,\n      createThisTypeNode,\n      createTypeOperatorNode,\n      updateTypeOperatorNode,\n      createIndexedAccessTypeNode,\n      updateIndexedAccessTypeNode,\n      createMappedTypeNode,\n      updateMappedTypeNode,\n      createLiteralTypeNode,\n      updateLiteralTypeNode,\n      createTemplateLiteralType,\n      updateTemplateLiteralType,\n      createObjectBindingPattern,\n      updateObjectBindingPattern,\n      createArrayBindingPattern,\n      updateArrayBindingPattern,\n      createBindingElement,\n      updateBindingElement,\n      createArrayLiteralExpression,\n      updateArrayLiteralExpression,\n      createObjectLiteralExpression,\n      updateObjectLiteralExpression,\n      createPropertyAccessExpression: flags & 4 ? (expression, name) => setEmitFlags(createPropertyAccessExpression(expression, name), 262144) : createPropertyAccessExpression,\n      updatePropertyAccessExpression,\n      createPropertyAccessChain: flags & 4 ? (expression, questionDotToken, name) => setEmitFlags(createPropertyAccessChain(expression, questionDotToken, name), 262144) : createPropertyAccessChain,\n      updatePropertyAccessChain,\n      createElementAccessExpression,\n      updateElementAccessExpression,\n      createElementAccessChain,\n      updateElementAccessChain,\n      createCallExpression,\n      updateCallExpression,\n      createCallChain,\n      updateCallChain,\n      createNewExpression,\n      updateNewExpression,\n      createTaggedTemplateExpression,\n      updateTaggedTemplateExpression,\n      createTypeAssertion,\n      updateTypeAssertion,\n      createParenthesizedExpression,\n      updateParenthesizedExpression,\n      createFunctionExpression,\n      updateFunctionExpression,\n      createArrowFunction,\n      updateArrowFunction,\n      createDeleteExpression,\n      updateDeleteExpression,\n      createTypeOfExpression,\n      updateTypeOfExpression,\n      createVoidExpression,\n      updateVoidExpression,\n      createAwaitExpression,\n      updateAwaitExpression,\n      createPrefixUnaryExpression,\n      updatePrefixUnaryExpression,\n      createPostfixUnaryExpression,\n      updatePostfixUnaryExpression,\n      createBinaryExpression,\n      updateBinaryExpression,\n      createConditionalExpression,\n      updateConditionalExpression,\n      createTemplateExpression,\n      updateTemplateExpression,\n      createTemplateHead,\n      createTemplateMiddle,\n      createTemplateTail,\n      createNoSubstitutionTemplateLiteral,\n      createTemplateLiteralLikeNode,\n      createYieldExpression,\n      updateYieldExpression,\n      createSpreadElement,\n      updateSpreadElement,\n      createClassExpression,\n      updateClassExpression,\n      createOmittedExpression,\n      createExpressionWithTypeArguments,\n      updateExpressionWithTypeArguments,\n      createAsExpression,\n      updateAsExpression,\n      createNonNullExpression,\n      updateNonNullExpression,\n      createSatisfiesExpression,\n      updateSatisfiesExpression,\n      createNonNullChain,\n      updateNonNullChain,\n      createMetaProperty,\n      updateMetaProperty,\n      createTemplateSpan,\n      updateTemplateSpan,\n      createSemicolonClassElement,\n      createBlock,\n      updateBlock,\n      createVariableStatement,\n      updateVariableStatement,\n      createEmptyStatement,\n      createExpressionStatement,\n      updateExpressionStatement,\n      createIfStatement,\n      updateIfStatement,\n      createDoStatement,\n      updateDoStatement,\n      createWhileStatement,\n      updateWhileStatement,\n      createForStatement,\n      updateForStatement,\n      createForInStatement,\n      updateForInStatement,\n      createForOfStatement,\n      updateForOfStatement,\n      createContinueStatement,\n      updateContinueStatement,\n      createBreakStatement,\n      updateBreakStatement,\n      createReturnStatement,\n      updateReturnStatement,\n      createWithStatement,\n      updateWithStatement,\n      createSwitchStatement,\n      updateSwitchStatement,\n      createLabeledStatement,\n      updateLabeledStatement,\n      createThrowStatement,\n      updateThrowStatement,\n      createTryStatement,\n      updateTryStatement,\n      createDebuggerStatement,\n      createVariableDeclaration,\n      updateVariableDeclaration,\n      createVariableDeclarationList,\n      updateVariableDeclarationList,\n      createFunctionDeclaration,\n      updateFunctionDeclaration,\n      createClassDeclaration,\n      updateClassDeclaration,\n      createInterfaceDeclaration,\n      updateInterfaceDeclaration,\n      createTypeAliasDeclaration,\n      updateTypeAliasDeclaration,\n      createEnumDeclaration,\n      updateEnumDeclaration,\n      createModuleDeclaration,\n      updateModuleDeclaration,\n      createModuleBlock,\n      updateModuleBlock,\n      createCaseBlock,\n      updateCaseBlock,\n      createNamespaceExportDeclaration,\n      updateNamespaceExportDeclaration,\n      createImportEqualsDeclaration,\n      updateImportEqualsDeclaration,\n      createImportDeclaration,\n      updateImportDeclaration,\n      createImportClause,\n      updateImportClause,\n      createAssertClause,\n      updateAssertClause,\n      createAssertEntry,\n      updateAssertEntry,\n      createImportTypeAssertionContainer,\n      updateImportTypeAssertionContainer,\n      createNamespaceImport,\n      updateNamespaceImport,\n      createNamespaceExport,\n      updateNamespaceExport,\n      createNamedImports,\n      updateNamedImports,\n      createImportSpecifier,\n      updateImportSpecifier,\n      createExportAssignment: createExportAssignment2,\n      updateExportAssignment,\n      createExportDeclaration,\n      updateExportDeclaration,\n      createNamedExports,\n      updateNamedExports,\n      createExportSpecifier,\n      updateExportSpecifier,\n      createMissingDeclaration,\n      createExternalModuleReference,\n      updateExternalModuleReference,\n      get createJSDocAllType() {\n        return getJSDocPrimaryTypeCreateFunction(315);\n      },\n      get createJSDocUnknownType() {\n        return getJSDocPrimaryTypeCreateFunction(316);\n      },\n      get createJSDocNonNullableType() {\n        return getJSDocPrePostfixUnaryTypeCreateFunction(318);\n      },\n      get updateJSDocNonNullableType() {\n        return getJSDocPrePostfixUnaryTypeUpdateFunction(318);\n      },\n      get createJSDocNullableType() {\n        return getJSDocPrePostfixUnaryTypeCreateFunction(317);\n      },\n      get updateJSDocNullableType() {\n        return getJSDocPrePostfixUnaryTypeUpdateFunction(317);\n      },\n      get createJSDocOptionalType() {\n        return getJSDocUnaryTypeCreateFunction(319);\n      },\n      get updateJSDocOptionalType() {\n        return getJSDocUnaryTypeUpdateFunction(319);\n      },\n      get createJSDocVariadicType() {\n        return getJSDocUnaryTypeCreateFunction(321);\n      },\n      get updateJSDocVariadicType() {\n        return getJSDocUnaryTypeUpdateFunction(321);\n      },\n      get createJSDocNamepathType() {\n        return getJSDocUnaryTypeCreateFunction(322);\n      },\n      get updateJSDocNamepathType() {\n        return getJSDocUnaryTypeUpdateFunction(322);\n      },\n      createJSDocFunctionType,\n      updateJSDocFunctionType,\n      createJSDocTypeLiteral,\n      updateJSDocTypeLiteral,\n      createJSDocTypeExpression,\n      updateJSDocTypeExpression,\n      createJSDocSignature,\n      updateJSDocSignature,\n      createJSDocTemplateTag,\n      updateJSDocTemplateTag,\n      createJSDocTypedefTag,\n      updateJSDocTypedefTag,\n      createJSDocParameterTag,\n      updateJSDocParameterTag,\n      createJSDocPropertyTag,\n      updateJSDocPropertyTag,\n      createJSDocCallbackTag,\n      updateJSDocCallbackTag,\n      createJSDocOverloadTag,\n      updateJSDocOverloadTag,\n      createJSDocAugmentsTag,\n      updateJSDocAugmentsTag,\n      createJSDocImplementsTag,\n      updateJSDocImplementsTag,\n      createJSDocSeeTag,\n      updateJSDocSeeTag,\n      createJSDocNameReference,\n      updateJSDocNameReference,\n      createJSDocMemberName,\n      updateJSDocMemberName,\n      createJSDocLink,\n      updateJSDocLink,\n      createJSDocLinkCode,\n      updateJSDocLinkCode,\n      createJSDocLinkPlain,\n      updateJSDocLinkPlain,\n      get createJSDocTypeTag() {\n        return getJSDocTypeLikeTagCreateFunction(347);\n      },\n      get updateJSDocTypeTag() {\n        return getJSDocTypeLikeTagUpdateFunction(347);\n      },\n      get createJSDocReturnTag() {\n        return getJSDocTypeLikeTagCreateFunction(345);\n      },\n      get updateJSDocReturnTag() {\n        return getJSDocTypeLikeTagUpdateFunction(345);\n      },\n      get createJSDocThisTag() {\n        return getJSDocTypeLikeTagCreateFunction(346);\n      },\n      get updateJSDocThisTag() {\n        return getJSDocTypeLikeTagUpdateFunction(346);\n      },\n      get createJSDocAuthorTag() {\n        return getJSDocSimpleTagCreateFunction(333);\n      },\n      get updateJSDocAuthorTag() {\n        return getJSDocSimpleTagUpdateFunction(333);\n      },\n      get createJSDocClassTag() {\n        return getJSDocSimpleTagCreateFunction(335);\n      },\n      get updateJSDocClassTag() {\n        return getJSDocSimpleTagUpdateFunction(335);\n      },\n      get createJSDocPublicTag() {\n        return getJSDocSimpleTagCreateFunction(336);\n      },\n      get updateJSDocPublicTag() {\n        return getJSDocSimpleTagUpdateFunction(336);\n      },\n      get createJSDocPrivateTag() {\n        return getJSDocSimpleTagCreateFunction(337);\n      },\n      get updateJSDocPrivateTag() {\n        return getJSDocSimpleTagUpdateFunction(337);\n      },\n      get createJSDocProtectedTag() {\n        return getJSDocSimpleTagCreateFunction(338);\n      },\n      get updateJSDocProtectedTag() {\n        return getJSDocSimpleTagUpdateFunction(338);\n      },\n      get createJSDocReadonlyTag() {\n        return getJSDocSimpleTagCreateFunction(339);\n      },\n      get updateJSDocReadonlyTag() {\n        return getJSDocSimpleTagUpdateFunction(339);\n      },\n      get createJSDocOverrideTag() {\n        return getJSDocSimpleTagCreateFunction(340);\n      },\n      get updateJSDocOverrideTag() {\n        return getJSDocSimpleTagUpdateFunction(340);\n      },\n      get createJSDocDeprecatedTag() {\n        return getJSDocSimpleTagCreateFunction(334);\n      },\n      get updateJSDocDeprecatedTag() {\n        return getJSDocSimpleTagUpdateFunction(334);\n      },\n      get createJSDocThrowsTag() {\n        return getJSDocTypeLikeTagCreateFunction(352);\n      },\n      get updateJSDocThrowsTag() {\n        return getJSDocTypeLikeTagUpdateFunction(352);\n      },\n      get createJSDocSatisfiesTag() {\n        return getJSDocTypeLikeTagCreateFunction(353);\n      },\n      get updateJSDocSatisfiesTag() {\n        return getJSDocTypeLikeTagUpdateFunction(353);\n      },\n      createJSDocEnumTag,\n      updateJSDocEnumTag,\n      createJSDocUnknownTag,\n      updateJSDocUnknownTag,\n      createJSDocText,\n      updateJSDocText,\n      createJSDocComment,\n      updateJSDocComment,\n      createJsxElement,\n      updateJsxElement,\n      createJsxSelfClosingElement,\n      updateJsxSelfClosingElement,\n      createJsxOpeningElement,\n      updateJsxOpeningElement,\n      createJsxClosingElement,\n      updateJsxClosingElement,\n      createJsxFragment,\n      createJsxText,\n      updateJsxText,\n      createJsxOpeningFragment,\n      createJsxJsxClosingFragment,\n      updateJsxFragment,\n      createJsxAttribute,\n      updateJsxAttribute,\n      createJsxAttributes,\n      updateJsxAttributes,\n      createJsxSpreadAttribute,\n      updateJsxSpreadAttribute,\n      createJsxExpression,\n      updateJsxExpression,\n      createCaseClause,\n      updateCaseClause,\n      createDefaultClause,\n      updateDefaultClause,\n      createHeritageClause,\n      updateHeritageClause,\n      createCatchClause,\n      updateCatchClause,\n      createPropertyAssignment,\n      updatePropertyAssignment,\n      createShorthandPropertyAssignment,\n      updateShorthandPropertyAssignment,\n      createSpreadAssignment,\n      updateSpreadAssignment,\n      createEnumMember,\n      updateEnumMember,\n      createSourceFile: createSourceFile2,\n      updateSourceFile: updateSourceFile2,\n      createRedirectedSourceFile,\n      createBundle,\n      updateBundle,\n      createUnparsedSource,\n      createUnparsedPrologue,\n      createUnparsedPrepend,\n      createUnparsedTextLike,\n      createUnparsedSyntheticReference,\n      createInputFiles: createInputFiles2,\n      createSyntheticExpression,\n      createSyntaxList: createSyntaxList3,\n      createNotEmittedStatement,\n      createPartiallyEmittedExpression,\n      updatePartiallyEmittedExpression,\n      createCommaListExpression,\n      updateCommaListExpression,\n      createEndOfDeclarationMarker,\n      createMergeDeclarationMarker,\n      createSyntheticReferenceExpression,\n      updateSyntheticReferenceExpression,\n      cloneNode,\n      get createComma() {\n        return getBinaryCreateFunction(27);\n      },\n      get createAssignment() {\n        return getBinaryCreateFunction(63);\n      },\n      get createLogicalOr() {\n        return getBinaryCreateFunction(56);\n      },\n      get createLogicalAnd() {\n        return getBinaryCreateFunction(55);\n      },\n      get createBitwiseOr() {\n        return getBinaryCreateFunction(51);\n      },\n      get createBitwiseXor() {\n        return getBinaryCreateFunction(52);\n      },\n      get createBitwiseAnd() {\n        return getBinaryCreateFunction(50);\n      },\n      get createStrictEquality() {\n        return getBinaryCreateFunction(36);\n      },\n      get createStrictInequality() {\n        return getBinaryCreateFunction(37);\n      },\n      get createEquality() {\n        return getBinaryCreateFunction(34);\n      },\n      get createInequality() {\n        return getBinaryCreateFunction(35);\n      },\n      get createLessThan() {\n        return getBinaryCreateFunction(29);\n      },\n      get createLessThanEquals() {\n        return getBinaryCreateFunction(32);\n      },\n      get createGreaterThan() {\n        return getBinaryCreateFunction(31);\n      },\n      get createGreaterThanEquals() {\n        return getBinaryCreateFunction(33);\n      },\n      get createLeftShift() {\n        return getBinaryCreateFunction(47);\n      },\n      get createRightShift() {\n        return getBinaryCreateFunction(48);\n      },\n      get createUnsignedRightShift() {\n        return getBinaryCreateFunction(49);\n      },\n      get createAdd() {\n        return getBinaryCreateFunction(39);\n      },\n      get createSubtract() {\n        return getBinaryCreateFunction(40);\n      },\n      get createMultiply() {\n        return getBinaryCreateFunction(41);\n      },\n      get createDivide() {\n        return getBinaryCreateFunction(43);\n      },\n      get createModulo() {\n        return getBinaryCreateFunction(44);\n      },\n      get createExponent() {\n        return getBinaryCreateFunction(42);\n      },\n      get createPrefixPlus() {\n        return getPrefixUnaryCreateFunction(39);\n      },\n      get createPrefixMinus() {\n        return getPrefixUnaryCreateFunction(40);\n      },\n      get createPrefixIncrement() {\n        return getPrefixUnaryCreateFunction(45);\n      },\n      get createPrefixDecrement() {\n        return getPrefixUnaryCreateFunction(46);\n      },\n      get createBitwiseNot() {\n        return getPrefixUnaryCreateFunction(54);\n      },\n      get createLogicalNot() {\n        return getPrefixUnaryCreateFunction(53);\n      },\n      get createPostfixIncrement() {\n        return getPostfixUnaryCreateFunction(45);\n      },\n      get createPostfixDecrement() {\n        return getPostfixUnaryCreateFunction(46);\n      },\n      createImmediatelyInvokedFunctionExpression,\n      createImmediatelyInvokedArrowFunction,\n      createVoidZero,\n      createExportDefault,\n      createExternalModuleExport,\n      createTypeCheck,\n      createMethodCall,\n      createGlobalMethodCall,\n      createFunctionBindCall,\n      createFunctionCallCall,\n      createFunctionApplyCall,\n      createArraySliceCall,\n      createArrayConcatCall,\n      createObjectDefinePropertyCall,\n      createObjectGetOwnPropertyDescriptorCall,\n      createReflectGetCall,\n      createReflectSetCall,\n      createPropertyDescriptor,\n      createCallBinding,\n      createAssignmentTargetWrapper,\n      inlineExpressions,\n      getInternalName,\n      getLocalName,\n      getExportName,\n      getDeclarationName,\n      getNamespaceMemberName,\n      getExternalModuleOrNamespaceExportName,\n      restoreOuterExpressions,\n      restoreEnclosingLabel,\n      createUseStrictPrologue,\n      copyPrologue,\n      copyStandardPrologue,\n      copyCustomPrologue,\n      ensureUseStrict,\n      liftToBlock,\n      mergeLexicalEnvironment,\n      updateModifiers\n    };\n    forEach(nodeFactoryPatchers, (fn) => fn(factory2));\n    return factory2;\n    function createNodeArray(elements, hasTrailingComma) {\n      if (elements === void 0 || elements === emptyArray) {\n        elements = [];\n      } else if (isNodeArray(elements)) {\n        if (hasTrailingComma === void 0 || elements.hasTrailingComma === hasTrailingComma) {\n          if (elements.transformFlags === void 0) {\n            aggregateChildrenFlags(elements);\n          }\n          Debug.attachNodeArrayDebugInfo(elements);\n          return elements;\n        }\n        const array2 = elements.slice();\n        array2.pos = elements.pos;\n        array2.end = elements.end;\n        array2.hasTrailingComma = hasTrailingComma;\n        array2.transformFlags = elements.transformFlags;\n        Debug.attachNodeArrayDebugInfo(array2);\n        return array2;\n      }\n      const length2 = elements.length;\n      const array = length2 >= 1 && length2 <= 4 ? elements.slice() : elements;\n      array.pos = -1;\n      array.end = -1;\n      array.hasTrailingComma = !!hasTrailingComma;\n      array.transformFlags = 0;\n      aggregateChildrenFlags(array);\n      Debug.attachNodeArrayDebugInfo(array);\n      return array;\n    }\n    function createBaseNode(kind) {\n      return baseFactory2.createBaseNode(kind);\n    }\n    function createBaseDeclaration(kind) {\n      const node = createBaseNode(kind);\n      node.symbol = void 0;\n      node.localSymbol = void 0;\n      return node;\n    }\n    function finishUpdateBaseSignatureDeclaration(updated, original) {\n      if (updated !== original) {\n        updated.typeArguments = original.typeArguments;\n      }\n      return update(updated, original);\n    }\n    function createNumericLiteral(value, numericLiteralFlags = 0) {\n      const node = createBaseDeclaration(8);\n      node.text = typeof value === \"number\" ? value + \"\" : value;\n      node.numericLiteralFlags = numericLiteralFlags;\n      if (numericLiteralFlags & 384)\n        node.transformFlags |= 1024;\n      return node;\n    }\n    function createBigIntLiteral(value) {\n      const node = createBaseToken(9);\n      node.text = typeof value === \"string\" ? value : pseudoBigIntToString(value) + \"n\";\n      node.transformFlags |= 4;\n      return node;\n    }\n    function createBaseStringLiteral(text, isSingleQuote) {\n      const node = createBaseDeclaration(10);\n      node.text = text;\n      node.singleQuote = isSingleQuote;\n      return node;\n    }\n    function createStringLiteral(text, isSingleQuote, hasExtendedUnicodeEscape) {\n      const node = createBaseStringLiteral(text, isSingleQuote);\n      node.hasExtendedUnicodeEscape = hasExtendedUnicodeEscape;\n      if (hasExtendedUnicodeEscape)\n        node.transformFlags |= 1024;\n      return node;\n    }\n    function createStringLiteralFromNode(sourceNode) {\n      const node = createBaseStringLiteral(getTextOfIdentifierOrLiteral(sourceNode), void 0);\n      node.textSourceNode = sourceNode;\n      return node;\n    }\n    function createRegularExpressionLiteral(text) {\n      const node = createBaseToken(13);\n      node.text = text;\n      return node;\n    }\n    function createLiteralLikeNode(kind, text) {\n      switch (kind) {\n        case 8:\n          return createNumericLiteral(text, 0);\n        case 9:\n          return createBigIntLiteral(text);\n        case 10:\n          return createStringLiteral(text, void 0);\n        case 11:\n          return createJsxText(text, false);\n        case 12:\n          return createJsxText(text, true);\n        case 13:\n          return createRegularExpressionLiteral(text);\n        case 14:\n          return createTemplateLiteralLikeNode(kind, text, void 0, 0);\n      }\n    }\n    function createBaseIdentifier(escapedText) {\n      const node = baseFactory2.createBaseIdentifierNode(79);\n      node.escapedText = escapedText;\n      node.jsDoc = void 0;\n      node.flowNode = void 0;\n      node.symbol = void 0;\n      return node;\n    }\n    function createBaseGeneratedIdentifier(text, autoGenerateFlags, prefix, suffix) {\n      const node = createBaseIdentifier(escapeLeadingUnderscores(text));\n      setIdentifierAutoGenerate(node, {\n        flags: autoGenerateFlags,\n        id: nextAutoGenerateId,\n        prefix,\n        suffix\n      });\n      nextAutoGenerateId++;\n      return node;\n    }\n    function createIdentifier(text, originalKeywordKind, hasExtendedUnicodeEscape) {\n      if (originalKeywordKind === void 0 && text) {\n        originalKeywordKind = stringToToken(text);\n      }\n      if (originalKeywordKind === 79) {\n        originalKeywordKind = void 0;\n      }\n      const node = createBaseIdentifier(escapeLeadingUnderscores(text));\n      if (hasExtendedUnicodeEscape)\n        node.flags |= 128;\n      if (node.escapedText === \"await\") {\n        node.transformFlags |= 67108864;\n      }\n      if (node.flags & 128) {\n        node.transformFlags |= 1024;\n      }\n      return node;\n    }\n    function createTempVariable(recordTempVariable, reservedInNestedScopes, prefix, suffix) {\n      let flags2 = 1;\n      if (reservedInNestedScopes)\n        flags2 |= 8;\n      const name = createBaseGeneratedIdentifier(\"\", flags2, prefix, suffix);\n      if (recordTempVariable) {\n        recordTempVariable(name);\n      }\n      return name;\n    }\n    function createLoopVariable(reservedInNestedScopes) {\n      let flags2 = 2;\n      if (reservedInNestedScopes)\n        flags2 |= 8;\n      return createBaseGeneratedIdentifier(\"\", flags2, void 0, void 0);\n    }\n    function createUniqueName(text, flags2 = 0, prefix, suffix) {\n      Debug.assert(!(flags2 & 7), \"Argument out of range: flags\");\n      Debug.assert((flags2 & (16 | 32)) !== 32, \"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic\");\n      return createBaseGeneratedIdentifier(text, 3 | flags2, prefix, suffix);\n    }\n    function getGeneratedNameForNode(node, flags2 = 0, prefix, suffix) {\n      Debug.assert(!(flags2 & 7), \"Argument out of range: flags\");\n      const text = !node ? \"\" : isMemberName(node) ? formatGeneratedName(false, prefix, node, suffix, idText) : `generated@${getNodeId(node)}`;\n      if (prefix || suffix)\n        flags2 |= 16;\n      const name = createBaseGeneratedIdentifier(text, 4 | flags2, prefix, suffix);\n      name.original = node;\n      return name;\n    }\n    function createBasePrivateIdentifier(escapedText) {\n      const node = baseFactory2.createBasePrivateIdentifierNode(80);\n      node.escapedText = escapedText;\n      node.transformFlags |= 16777216;\n      return node;\n    }\n    function createPrivateIdentifier(text) {\n      if (!startsWith(text, \"#\"))\n        Debug.fail(\"First character of private identifier must be #: \" + text);\n      return createBasePrivateIdentifier(escapeLeadingUnderscores(text));\n    }\n    function createBaseGeneratedPrivateIdentifier(text, autoGenerateFlags, prefix, suffix) {\n      const node = createBasePrivateIdentifier(escapeLeadingUnderscores(text));\n      setIdentifierAutoGenerate(node, {\n        flags: autoGenerateFlags,\n        id: nextAutoGenerateId,\n        prefix,\n        suffix\n      });\n      nextAutoGenerateId++;\n      return node;\n    }\n    function createUniquePrivateName(text, prefix, suffix) {\n      if (text && !startsWith(text, \"#\"))\n        Debug.fail(\"First character of private identifier must be #: \" + text);\n      const autoGenerateFlags = 8 | (text ? 3 : 1);\n      return createBaseGeneratedPrivateIdentifier(text != null ? text : \"\", autoGenerateFlags, prefix, suffix);\n    }\n    function getGeneratedPrivateNameForNode(node, prefix, suffix) {\n      const text = isMemberName(node) ? formatGeneratedName(true, prefix, node, suffix, idText) : `#generated@${getNodeId(node)}`;\n      const flags2 = prefix || suffix ? 16 : 0;\n      const name = createBaseGeneratedPrivateIdentifier(text, 4 | flags2, prefix, suffix);\n      name.original = node;\n      return name;\n    }\n    function createBaseToken(kind) {\n      return baseFactory2.createBaseTokenNode(kind);\n    }\n    function createToken(token) {\n      Debug.assert(token >= 0 && token <= 162, \"Invalid token\");\n      Debug.assert(token <= 14 || token >= 17, \"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals.\");\n      Debug.assert(token <= 8 || token >= 14, \"Invalid token. Use 'createLiteralLikeNode' to create literals.\");\n      Debug.assert(token !== 79, \"Invalid token. Use 'createIdentifier' to create identifiers\");\n      const node = createBaseToken(token);\n      let transformFlags = 0;\n      switch (token) {\n        case 132:\n          transformFlags = 256 | 128;\n          break;\n        case 123:\n        case 121:\n        case 122:\n        case 146:\n        case 126:\n        case 136:\n        case 85:\n        case 131:\n        case 148:\n        case 160:\n        case 144:\n        case 149:\n        case 101:\n        case 145:\n        case 161:\n        case 152:\n        case 134:\n        case 153:\n        case 114:\n        case 157:\n        case 155:\n          transformFlags = 1;\n          break;\n        case 106:\n          transformFlags = 1024 | 134217728;\n          node.flowNode = void 0;\n          break;\n        case 124:\n          transformFlags = 1024;\n          break;\n        case 127:\n          transformFlags = 16777216;\n          break;\n        case 108:\n          transformFlags = 16384;\n          node.flowNode = void 0;\n          break;\n      }\n      if (transformFlags) {\n        node.transformFlags |= transformFlags;\n      }\n      return node;\n    }\n    function createSuper() {\n      return createToken(106);\n    }\n    function createThis() {\n      return createToken(108);\n    }\n    function createNull() {\n      return createToken(104);\n    }\n    function createTrue() {\n      return createToken(110);\n    }\n    function createFalse() {\n      return createToken(95);\n    }\n    function createModifier(kind) {\n      return createToken(kind);\n    }\n    function createModifiersFromModifierFlags(flags2) {\n      const result = [];\n      if (flags2 & 1)\n        result.push(createModifier(93));\n      if (flags2 & 2)\n        result.push(createModifier(136));\n      if (flags2 & 1024)\n        result.push(createModifier(88));\n      if (flags2 & 2048)\n        result.push(createModifier(85));\n      if (flags2 & 4)\n        result.push(createModifier(123));\n      if (flags2 & 8)\n        result.push(createModifier(121));\n      if (flags2 & 16)\n        result.push(createModifier(122));\n      if (flags2 & 256)\n        result.push(createModifier(126));\n      if (flags2 & 32)\n        result.push(createModifier(124));\n      if (flags2 & 16384)\n        result.push(createModifier(161));\n      if (flags2 & 64)\n        result.push(createModifier(146));\n      if (flags2 & 128)\n        result.push(createModifier(127));\n      if (flags2 & 512)\n        result.push(createModifier(132));\n      if (flags2 & 32768)\n        result.push(createModifier(101));\n      if (flags2 & 65536)\n        result.push(createModifier(145));\n      return result.length ? result : void 0;\n    }\n    function createQualifiedName(left, right) {\n      const node = createBaseNode(163);\n      node.left = left;\n      node.right = asName(right);\n      node.transformFlags |= propagateChildFlags(node.left) | propagateIdentifierNameFlags(node.right);\n      node.flowNode = void 0;\n      return node;\n    }\n    function updateQualifiedName(node, left, right) {\n      return node.left !== left || node.right !== right ? update(createQualifiedName(left, right), node) : node;\n    }\n    function createComputedPropertyName(expression) {\n      const node = createBaseNode(164);\n      node.expression = parenthesizerRules().parenthesizeExpressionOfComputedPropertyName(expression);\n      node.transformFlags |= propagateChildFlags(node.expression) | 1024 | 131072;\n      return node;\n    }\n    function updateComputedPropertyName(node, expression) {\n      return node.expression !== expression ? update(createComputedPropertyName(expression), node) : node;\n    }\n    function createTypeParameterDeclaration(modifiers, name, constraint, defaultType) {\n      const node = createBaseDeclaration(165);\n      node.modifiers = asNodeArray(modifiers);\n      node.name = asName(name);\n      node.constraint = constraint;\n      node.default = defaultType;\n      node.transformFlags = 1;\n      node.expression = void 0;\n      node.jsDoc = void 0;\n      return node;\n    }\n    function updateTypeParameterDeclaration(node, modifiers, name, constraint, defaultType) {\n      return node.modifiers !== modifiers || node.name !== name || node.constraint !== constraint || node.default !== defaultType ? update(createTypeParameterDeclaration(modifiers, name, constraint, defaultType), node) : node;\n    }\n    function createParameterDeclaration(modifiers, dotDotDotToken, name, questionToken, type, initializer) {\n      var _a2, _b;\n      const node = createBaseDeclaration(166);\n      node.modifiers = asNodeArray(modifiers);\n      node.dotDotDotToken = dotDotDotToken;\n      node.name = asName(name);\n      node.questionToken = questionToken;\n      node.type = type;\n      node.initializer = asInitializer(initializer);\n      if (isThisIdentifier(node.name)) {\n        node.transformFlags = 1;\n      } else {\n        node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.dotDotDotToken) | propagateNameFlags(node.name) | propagateChildFlags(node.questionToken) | propagateChildFlags(node.initializer) | (((_a2 = node.questionToken) != null ? _a2 : node.type) ? 1 : 0) | (((_b = node.dotDotDotToken) != null ? _b : node.initializer) ? 1024 : 0) | (modifiersToFlags(node.modifiers) & 16476 ? 8192 : 0);\n      }\n      node.jsDoc = void 0;\n      return node;\n    }\n    function updateParameterDeclaration(node, modifiers, dotDotDotToken, name, questionToken, type, initializer) {\n      return node.modifiers !== modifiers || node.dotDotDotToken !== dotDotDotToken || node.name !== name || node.questionToken !== questionToken || node.type !== type || node.initializer !== initializer ? update(createParameterDeclaration(modifiers, dotDotDotToken, name, questionToken, type, initializer), node) : node;\n    }\n    function createDecorator(expression) {\n      const node = createBaseNode(167);\n      node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression, false);\n      node.transformFlags |= propagateChildFlags(node.expression) | 1 | 8192 | 33554432;\n      return node;\n    }\n    function updateDecorator(node, expression) {\n      return node.expression !== expression ? update(createDecorator(expression), node) : node;\n    }\n    function createPropertySignature(modifiers, name, questionToken, type) {\n      const node = createBaseDeclaration(168);\n      node.modifiers = asNodeArray(modifiers);\n      node.name = asName(name);\n      node.type = type;\n      node.questionToken = questionToken;\n      node.transformFlags = 1;\n      node.initializer = void 0;\n      node.jsDoc = void 0;\n      return node;\n    }\n    function updatePropertySignature(node, modifiers, name, questionToken, type) {\n      return node.modifiers !== modifiers || node.name !== name || node.questionToken !== questionToken || node.type !== type ? finishUpdatePropertySignature(createPropertySignature(modifiers, name, questionToken, type), node) : node;\n    }\n    function finishUpdatePropertySignature(updated, original) {\n      if (updated !== original) {\n        updated.initializer = original.initializer;\n      }\n      return update(updated, original);\n    }\n    function createPropertyDeclaration(modifiers, name, questionOrExclamationToken, type, initializer) {\n      const node = createBaseDeclaration(169);\n      node.modifiers = asNodeArray(modifiers);\n      node.name = asName(name);\n      node.questionToken = questionOrExclamationToken && isQuestionToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0;\n      node.exclamationToken = questionOrExclamationToken && isExclamationToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0;\n      node.type = type;\n      node.initializer = asInitializer(initializer);\n      const isAmbient = node.flags & 16777216 || modifiersToFlags(node.modifiers) & 2;\n      node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateNameFlags(node.name) | propagateChildFlags(node.initializer) | (isAmbient || node.questionToken || node.exclamationToken || node.type ? 1 : 0) | (isComputedPropertyName(node.name) || modifiersToFlags(node.modifiers) & 32 && node.initializer ? 8192 : 0) | 16777216;\n      node.jsDoc = void 0;\n      return node;\n    }\n    function updatePropertyDeclaration2(node, modifiers, name, questionOrExclamationToken, type, initializer) {\n      return node.modifiers !== modifiers || node.name !== name || node.questionToken !== (questionOrExclamationToken !== void 0 && isQuestionToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0) || node.exclamationToken !== (questionOrExclamationToken !== void 0 && isExclamationToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0) || node.type !== type || node.initializer !== initializer ? update(createPropertyDeclaration(modifiers, name, questionOrExclamationToken, type, initializer), node) : node;\n    }\n    function createMethodSignature(modifiers, name, questionToken, typeParameters, parameters, type) {\n      const node = createBaseDeclaration(170);\n      node.modifiers = asNodeArray(modifiers);\n      node.name = asName(name);\n      node.questionToken = questionToken;\n      node.typeParameters = asNodeArray(typeParameters);\n      node.parameters = asNodeArray(parameters);\n      node.type = type;\n      node.transformFlags = 1;\n      node.jsDoc = void 0;\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      node.typeArguments = void 0;\n      return node;\n    }\n    function updateMethodSignature(node, modifiers, name, questionToken, typeParameters, parameters, type) {\n      return node.modifiers !== modifiers || node.name !== name || node.questionToken !== questionToken || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateBaseSignatureDeclaration(createMethodSignature(modifiers, name, questionToken, typeParameters, parameters, type), node) : node;\n    }\n    function createMethodDeclaration(modifiers, asteriskToken, name, questionToken, typeParameters, parameters, type, body) {\n      const node = createBaseDeclaration(171);\n      node.modifiers = asNodeArray(modifiers);\n      node.asteriskToken = asteriskToken;\n      node.name = asName(name);\n      node.questionToken = questionToken;\n      node.exclamationToken = void 0;\n      node.typeParameters = asNodeArray(typeParameters);\n      node.parameters = createNodeArray(parameters);\n      node.type = type;\n      node.body = body;\n      if (!node.body) {\n        node.transformFlags = 1;\n      } else {\n        const isAsync = modifiersToFlags(node.modifiers) & 512;\n        const isGenerator = !!node.asteriskToken;\n        const isAsyncGenerator = isAsync && isGenerator;\n        node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.asteriskToken) | propagateNameFlags(node.name) | propagateChildFlags(node.questionToken) | propagateChildrenFlags(node.typeParameters) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.type) | propagateChildFlags(node.body) & ~67108864 | (isAsyncGenerator ? 128 : isAsync ? 256 : isGenerator ? 2048 : 0) | (node.questionToken || node.typeParameters || node.type ? 1 : 0) | 1024;\n      }\n      node.typeArguments = void 0;\n      node.jsDoc = void 0;\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      node.flowNode = void 0;\n      node.endFlowNode = void 0;\n      node.returnFlowNode = void 0;\n      return node;\n    }\n    function updateMethodDeclaration(node, modifiers, asteriskToken, name, questionToken, typeParameters, parameters, type, body) {\n      return node.modifiers !== modifiers || node.asteriskToken !== asteriskToken || node.name !== name || node.questionToken !== questionToken || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type || node.body !== body ? finishUpdateMethodDeclaration(createMethodDeclaration(modifiers, asteriskToken, name, questionToken, typeParameters, parameters, type, body), node) : node;\n    }\n    function finishUpdateMethodDeclaration(updated, original) {\n      if (updated !== original) {\n        updated.exclamationToken = original.exclamationToken;\n      }\n      return update(updated, original);\n    }\n    function createClassStaticBlockDeclaration(body) {\n      const node = createBaseDeclaration(172);\n      node.body = body;\n      node.transformFlags = propagateChildFlags(body) | 16777216;\n      node.modifiers = void 0;\n      node.jsDoc = void 0;\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      node.endFlowNode = void 0;\n      node.returnFlowNode = void 0;\n      return node;\n    }\n    function updateClassStaticBlockDeclaration(node, body) {\n      return node.body !== body ? finishUpdateClassStaticBlockDeclaration(createClassStaticBlockDeclaration(body), node) : node;\n    }\n    function finishUpdateClassStaticBlockDeclaration(updated, original) {\n      if (updated !== original) {\n        updated.modifiers = original.modifiers;\n      }\n      return update(updated, original);\n    }\n    function createConstructorDeclaration(modifiers, parameters, body) {\n      const node = createBaseDeclaration(173);\n      node.modifiers = asNodeArray(modifiers);\n      node.parameters = createNodeArray(parameters);\n      node.body = body;\n      node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.body) & ~67108864 | 1024;\n      node.typeParameters = void 0;\n      node.type = void 0;\n      node.typeArguments = void 0;\n      node.jsDoc = void 0;\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      node.endFlowNode = void 0;\n      node.returnFlowNode = void 0;\n      return node;\n    }\n    function updateConstructorDeclaration(node, modifiers, parameters, body) {\n      return node.modifiers !== modifiers || node.parameters !== parameters || node.body !== body ? finishUpdateConstructorDeclaration(createConstructorDeclaration(modifiers, parameters, body), node) : node;\n    }\n    function finishUpdateConstructorDeclaration(updated, original) {\n      if (updated !== original) {\n        updated.typeParameters = original.typeParameters;\n        updated.type = original.type;\n      }\n      return finishUpdateBaseSignatureDeclaration(updated, original);\n    }\n    function createGetAccessorDeclaration(modifiers, name, parameters, type, body) {\n      const node = createBaseDeclaration(174);\n      node.modifiers = asNodeArray(modifiers);\n      node.name = asName(name);\n      node.parameters = createNodeArray(parameters);\n      node.type = type;\n      node.body = body;\n      if (!node.body) {\n        node.transformFlags = 1;\n      } else {\n        node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateNameFlags(node.name) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.type) | propagateChildFlags(node.body) & ~67108864 | (node.type ? 1 : 0);\n      }\n      node.typeArguments = void 0;\n      node.typeParameters = void 0;\n      node.jsDoc = void 0;\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      node.flowNode = void 0;\n      node.endFlowNode = void 0;\n      node.returnFlowNode = void 0;\n      return node;\n    }\n    function updateGetAccessorDeclaration(node, modifiers, name, parameters, type, body) {\n      return node.modifiers !== modifiers || node.name !== name || node.parameters !== parameters || node.type !== type || node.body !== body ? finishUpdateGetAccessorDeclaration(createGetAccessorDeclaration(modifiers, name, parameters, type, body), node) : node;\n    }\n    function finishUpdateGetAccessorDeclaration(updated, original) {\n      if (updated !== original) {\n        updated.typeParameters = original.typeParameters;\n      }\n      return finishUpdateBaseSignatureDeclaration(updated, original);\n    }\n    function createSetAccessorDeclaration(modifiers, name, parameters, body) {\n      const node = createBaseDeclaration(175);\n      node.modifiers = asNodeArray(modifiers);\n      node.name = asName(name);\n      node.parameters = createNodeArray(parameters);\n      node.body = body;\n      if (!node.body) {\n        node.transformFlags = 1;\n      } else {\n        node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateNameFlags(node.name) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.body) & ~67108864 | (node.type ? 1 : 0);\n      }\n      node.typeArguments = void 0;\n      node.typeParameters = void 0;\n      node.type = void 0;\n      node.jsDoc = void 0;\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      node.flowNode = void 0;\n      node.endFlowNode = void 0;\n      node.returnFlowNode = void 0;\n      return node;\n    }\n    function updateSetAccessorDeclaration(node, modifiers, name, parameters, body) {\n      return node.modifiers !== modifiers || node.name !== name || node.parameters !== parameters || node.body !== body ? finishUpdateSetAccessorDeclaration(createSetAccessorDeclaration(modifiers, name, parameters, body), node) : node;\n    }\n    function finishUpdateSetAccessorDeclaration(updated, original) {\n      if (updated !== original) {\n        updated.typeParameters = original.typeParameters;\n        updated.type = original.type;\n      }\n      return finishUpdateBaseSignatureDeclaration(updated, original);\n    }\n    function createCallSignature(typeParameters, parameters, type) {\n      const node = createBaseDeclaration(176);\n      node.typeParameters = asNodeArray(typeParameters);\n      node.parameters = asNodeArray(parameters);\n      node.type = type;\n      node.transformFlags = 1;\n      node.jsDoc = void 0;\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      node.typeArguments = void 0;\n      return node;\n    }\n    function updateCallSignature(node, typeParameters, parameters, type) {\n      return node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateBaseSignatureDeclaration(createCallSignature(typeParameters, parameters, type), node) : node;\n    }\n    function createConstructSignature(typeParameters, parameters, type) {\n      const node = createBaseDeclaration(177);\n      node.typeParameters = asNodeArray(typeParameters);\n      node.parameters = asNodeArray(parameters);\n      node.type = type;\n      node.transformFlags = 1;\n      node.jsDoc = void 0;\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      node.typeArguments = void 0;\n      return node;\n    }\n    function updateConstructSignature(node, typeParameters, parameters, type) {\n      return node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateBaseSignatureDeclaration(createConstructSignature(typeParameters, parameters, type), node) : node;\n    }\n    function createIndexSignature(modifiers, parameters, type) {\n      const node = createBaseDeclaration(178);\n      node.modifiers = asNodeArray(modifiers);\n      node.parameters = asNodeArray(parameters);\n      node.type = type;\n      node.transformFlags = 1;\n      node.jsDoc = void 0;\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      node.typeArguments = void 0;\n      return node;\n    }\n    function updateIndexSignature(node, modifiers, parameters, type) {\n      return node.parameters !== parameters || node.type !== type || node.modifiers !== modifiers ? finishUpdateBaseSignatureDeclaration(createIndexSignature(modifiers, parameters, type), node) : node;\n    }\n    function createTemplateLiteralTypeSpan(type, literal) {\n      const node = createBaseNode(201);\n      node.type = type;\n      node.literal = literal;\n      node.transformFlags = 1;\n      return node;\n    }\n    function updateTemplateLiteralTypeSpan(node, type, literal) {\n      return node.type !== type || node.literal !== literal ? update(createTemplateLiteralTypeSpan(type, literal), node) : node;\n    }\n    function createKeywordTypeNode(kind) {\n      return createToken(kind);\n    }\n    function createTypePredicateNode(assertsModifier, parameterName, type) {\n      const node = createBaseNode(179);\n      node.assertsModifier = assertsModifier;\n      node.parameterName = asName(parameterName);\n      node.type = type;\n      node.transformFlags = 1;\n      return node;\n    }\n    function updateTypePredicateNode(node, assertsModifier, parameterName, type) {\n      return node.assertsModifier !== assertsModifier || node.parameterName !== parameterName || node.type !== type ? update(createTypePredicateNode(assertsModifier, parameterName, type), node) : node;\n    }\n    function createTypeReferenceNode(typeName, typeArguments) {\n      const node = createBaseNode(180);\n      node.typeName = asName(typeName);\n      node.typeArguments = typeArguments && parenthesizerRules().parenthesizeTypeArguments(createNodeArray(typeArguments));\n      node.transformFlags = 1;\n      return node;\n    }\n    function updateTypeReferenceNode(node, typeName, typeArguments) {\n      return node.typeName !== typeName || node.typeArguments !== typeArguments ? update(createTypeReferenceNode(typeName, typeArguments), node) : node;\n    }\n    function createFunctionTypeNode(typeParameters, parameters, type) {\n      const node = createBaseDeclaration(181);\n      node.typeParameters = asNodeArray(typeParameters);\n      node.parameters = asNodeArray(parameters);\n      node.type = type;\n      node.transformFlags = 1;\n      node.modifiers = void 0;\n      node.jsDoc = void 0;\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      node.typeArguments = void 0;\n      return node;\n    }\n    function updateFunctionTypeNode(node, typeParameters, parameters, type) {\n      return node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateFunctionTypeNode(createFunctionTypeNode(typeParameters, parameters, type), node) : node;\n    }\n    function finishUpdateFunctionTypeNode(updated, original) {\n      if (updated !== original) {\n        updated.modifiers = original.modifiers;\n      }\n      return finishUpdateBaseSignatureDeclaration(updated, original);\n    }\n    function createConstructorTypeNode(...args) {\n      return args.length === 4 ? createConstructorTypeNode1(...args) : args.length === 3 ? createConstructorTypeNode2(...args) : Debug.fail(\"Incorrect number of arguments specified.\");\n    }\n    function createConstructorTypeNode1(modifiers, typeParameters, parameters, type) {\n      const node = createBaseDeclaration(182);\n      node.modifiers = asNodeArray(modifiers);\n      node.typeParameters = asNodeArray(typeParameters);\n      node.parameters = asNodeArray(parameters);\n      node.type = type;\n      node.transformFlags = 1;\n      node.jsDoc = void 0;\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      node.typeArguments = void 0;\n      return node;\n    }\n    function createConstructorTypeNode2(typeParameters, parameters, type) {\n      return createConstructorTypeNode1(void 0, typeParameters, parameters, type);\n    }\n    function updateConstructorTypeNode(...args) {\n      return args.length === 5 ? updateConstructorTypeNode1(...args) : args.length === 4 ? updateConstructorTypeNode2(...args) : Debug.fail(\"Incorrect number of arguments specified.\");\n    }\n    function updateConstructorTypeNode1(node, modifiers, typeParameters, parameters, type) {\n      return node.modifiers !== modifiers || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateBaseSignatureDeclaration(createConstructorTypeNode(modifiers, typeParameters, parameters, type), node) : node;\n    }\n    function updateConstructorTypeNode2(node, typeParameters, parameters, type) {\n      return updateConstructorTypeNode1(node, node.modifiers, typeParameters, parameters, type);\n    }\n    function createTypeQueryNode(exprName, typeArguments) {\n      const node = createBaseNode(183);\n      node.exprName = exprName;\n      node.typeArguments = typeArguments && parenthesizerRules().parenthesizeTypeArguments(typeArguments);\n      node.transformFlags = 1;\n      return node;\n    }\n    function updateTypeQueryNode(node, exprName, typeArguments) {\n      return node.exprName !== exprName || node.typeArguments !== typeArguments ? update(createTypeQueryNode(exprName, typeArguments), node) : node;\n    }\n    function createTypeLiteralNode(members) {\n      const node = createBaseDeclaration(184);\n      node.members = createNodeArray(members);\n      node.transformFlags = 1;\n      return node;\n    }\n    function updateTypeLiteralNode(node, members) {\n      return node.members !== members ? update(createTypeLiteralNode(members), node) : node;\n    }\n    function createArrayTypeNode(elementType) {\n      const node = createBaseNode(185);\n      node.elementType = parenthesizerRules().parenthesizeNonArrayTypeOfPostfixType(elementType);\n      node.transformFlags = 1;\n      return node;\n    }\n    function updateArrayTypeNode(node, elementType) {\n      return node.elementType !== elementType ? update(createArrayTypeNode(elementType), node) : node;\n    }\n    function createTupleTypeNode(elements) {\n      const node = createBaseNode(186);\n      node.elements = createNodeArray(parenthesizerRules().parenthesizeElementTypesOfTupleType(elements));\n      node.transformFlags = 1;\n      return node;\n    }\n    function updateTupleTypeNode(node, elements) {\n      return node.elements !== elements ? update(createTupleTypeNode(elements), node) : node;\n    }\n    function createNamedTupleMember(dotDotDotToken, name, questionToken, type) {\n      const node = createBaseDeclaration(199);\n      node.dotDotDotToken = dotDotDotToken;\n      node.name = name;\n      node.questionToken = questionToken;\n      node.type = type;\n      node.transformFlags = 1;\n      node.jsDoc = void 0;\n      return node;\n    }\n    function updateNamedTupleMember(node, dotDotDotToken, name, questionToken, type) {\n      return node.dotDotDotToken !== dotDotDotToken || node.name !== name || node.questionToken !== questionToken || node.type !== type ? update(createNamedTupleMember(dotDotDotToken, name, questionToken, type), node) : node;\n    }\n    function createOptionalTypeNode(type) {\n      const node = createBaseNode(187);\n      node.type = parenthesizerRules().parenthesizeTypeOfOptionalType(type);\n      node.transformFlags = 1;\n      return node;\n    }\n    function updateOptionalTypeNode(node, type) {\n      return node.type !== type ? update(createOptionalTypeNode(type), node) : node;\n    }\n    function createRestTypeNode(type) {\n      const node = createBaseNode(188);\n      node.type = type;\n      node.transformFlags = 1;\n      return node;\n    }\n    function updateRestTypeNode(node, type) {\n      return node.type !== type ? update(createRestTypeNode(type), node) : node;\n    }\n    function createUnionOrIntersectionTypeNode(kind, types, parenthesize) {\n      const node = createBaseNode(kind);\n      node.types = factory2.createNodeArray(parenthesize(types));\n      node.transformFlags = 1;\n      return node;\n    }\n    function updateUnionOrIntersectionTypeNode(node, types, parenthesize) {\n      return node.types !== types ? update(createUnionOrIntersectionTypeNode(node.kind, types, parenthesize), node) : node;\n    }\n    function createUnionTypeNode(types) {\n      return createUnionOrIntersectionTypeNode(189, types, parenthesizerRules().parenthesizeConstituentTypesOfUnionType);\n    }\n    function updateUnionTypeNode(node, types) {\n      return updateUnionOrIntersectionTypeNode(node, types, parenthesizerRules().parenthesizeConstituentTypesOfUnionType);\n    }\n    function createIntersectionTypeNode(types) {\n      return createUnionOrIntersectionTypeNode(190, types, parenthesizerRules().parenthesizeConstituentTypesOfIntersectionType);\n    }\n    function updateIntersectionTypeNode(node, types) {\n      return updateUnionOrIntersectionTypeNode(node, types, parenthesizerRules().parenthesizeConstituentTypesOfIntersectionType);\n    }\n    function createConditionalTypeNode(checkType, extendsType, trueType, falseType) {\n      const node = createBaseNode(191);\n      node.checkType = parenthesizerRules().parenthesizeCheckTypeOfConditionalType(checkType);\n      node.extendsType = parenthesizerRules().parenthesizeExtendsTypeOfConditionalType(extendsType);\n      node.trueType = trueType;\n      node.falseType = falseType;\n      node.transformFlags = 1;\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      return node;\n    }\n    function updateConditionalTypeNode(node, checkType, extendsType, trueType, falseType) {\n      return node.checkType !== checkType || node.extendsType !== extendsType || node.trueType !== trueType || node.falseType !== falseType ? update(createConditionalTypeNode(checkType, extendsType, trueType, falseType), node) : node;\n    }\n    function createInferTypeNode(typeParameter) {\n      const node = createBaseNode(192);\n      node.typeParameter = typeParameter;\n      node.transformFlags = 1;\n      return node;\n    }\n    function updateInferTypeNode(node, typeParameter) {\n      return node.typeParameter !== typeParameter ? update(createInferTypeNode(typeParameter), node) : node;\n    }\n    function createTemplateLiteralType(head, templateSpans) {\n      const node = createBaseNode(200);\n      node.head = head;\n      node.templateSpans = createNodeArray(templateSpans);\n      node.transformFlags = 1;\n      return node;\n    }\n    function updateTemplateLiteralType(node, head, templateSpans) {\n      return node.head !== head || node.templateSpans !== templateSpans ? update(createTemplateLiteralType(head, templateSpans), node) : node;\n    }\n    function createImportTypeNode(argument, assertions, qualifier, typeArguments, isTypeOf = false) {\n      const node = createBaseNode(202);\n      node.argument = argument;\n      node.assertions = assertions;\n      node.qualifier = qualifier;\n      node.typeArguments = typeArguments && parenthesizerRules().parenthesizeTypeArguments(typeArguments);\n      node.isTypeOf = isTypeOf;\n      node.transformFlags = 1;\n      return node;\n    }\n    function updateImportTypeNode(node, argument, assertions, qualifier, typeArguments, isTypeOf = node.isTypeOf) {\n      return node.argument !== argument || node.assertions !== assertions || node.qualifier !== qualifier || node.typeArguments !== typeArguments || node.isTypeOf !== isTypeOf ? update(createImportTypeNode(argument, assertions, qualifier, typeArguments, isTypeOf), node) : node;\n    }\n    function createParenthesizedType(type) {\n      const node = createBaseNode(193);\n      node.type = type;\n      node.transformFlags = 1;\n      return node;\n    }\n    function updateParenthesizedType(node, type) {\n      return node.type !== type ? update(createParenthesizedType(type), node) : node;\n    }\n    function createThisTypeNode() {\n      const node = createBaseNode(194);\n      node.transformFlags = 1;\n      return node;\n    }\n    function createTypeOperatorNode(operator, type) {\n      const node = createBaseNode(195);\n      node.operator = operator;\n      node.type = operator === 146 ? parenthesizerRules().parenthesizeOperandOfReadonlyTypeOperator(type) : parenthesizerRules().parenthesizeOperandOfTypeOperator(type);\n      node.transformFlags = 1;\n      return node;\n    }\n    function updateTypeOperatorNode(node, type) {\n      return node.type !== type ? update(createTypeOperatorNode(node.operator, type), node) : node;\n    }\n    function createIndexedAccessTypeNode(objectType, indexType) {\n      const node = createBaseNode(196);\n      node.objectType = parenthesizerRules().parenthesizeNonArrayTypeOfPostfixType(objectType);\n      node.indexType = indexType;\n      node.transformFlags = 1;\n      return node;\n    }\n    function updateIndexedAccessTypeNode(node, objectType, indexType) {\n      return node.objectType !== objectType || node.indexType !== indexType ? update(createIndexedAccessTypeNode(objectType, indexType), node) : node;\n    }\n    function createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type, members) {\n      const node = createBaseDeclaration(197);\n      node.readonlyToken = readonlyToken;\n      node.typeParameter = typeParameter;\n      node.nameType = nameType;\n      node.questionToken = questionToken;\n      node.type = type;\n      node.members = members && createNodeArray(members);\n      node.transformFlags = 1;\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      return node;\n    }\n    function updateMappedTypeNode(node, readonlyToken, typeParameter, nameType, questionToken, type, members) {\n      return node.readonlyToken !== readonlyToken || node.typeParameter !== typeParameter || node.nameType !== nameType || node.questionToken !== questionToken || node.type !== type || node.members !== members ? update(createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type, members), node) : node;\n    }\n    function createLiteralTypeNode(literal) {\n      const node = createBaseNode(198);\n      node.literal = literal;\n      node.transformFlags = 1;\n      return node;\n    }\n    function updateLiteralTypeNode(node, literal) {\n      return node.literal !== literal ? update(createLiteralTypeNode(literal), node) : node;\n    }\n    function createObjectBindingPattern(elements) {\n      const node = createBaseNode(203);\n      node.elements = createNodeArray(elements);\n      node.transformFlags |= propagateChildrenFlags(node.elements) | 1024 | 524288;\n      if (node.transformFlags & 32768) {\n        node.transformFlags |= 128 | 65536;\n      }\n      return node;\n    }\n    function updateObjectBindingPattern(node, elements) {\n      return node.elements !== elements ? update(createObjectBindingPattern(elements), node) : node;\n    }\n    function createArrayBindingPattern(elements) {\n      const node = createBaseNode(204);\n      node.elements = createNodeArray(elements);\n      node.transformFlags |= propagateChildrenFlags(node.elements) | 1024 | 524288;\n      return node;\n    }\n    function updateArrayBindingPattern(node, elements) {\n      return node.elements !== elements ? update(createArrayBindingPattern(elements), node) : node;\n    }\n    function createBindingElement(dotDotDotToken, propertyName, name, initializer) {\n      const node = createBaseDeclaration(205);\n      node.dotDotDotToken = dotDotDotToken;\n      node.propertyName = asName(propertyName);\n      node.name = asName(name);\n      node.initializer = asInitializer(initializer);\n      node.transformFlags |= propagateChildFlags(node.dotDotDotToken) | propagateNameFlags(node.propertyName) | propagateNameFlags(node.name) | propagateChildFlags(node.initializer) | (node.dotDotDotToken ? 32768 : 0) | 1024;\n      node.flowNode = void 0;\n      return node;\n    }\n    function updateBindingElement(node, dotDotDotToken, propertyName, name, initializer) {\n      return node.propertyName !== propertyName || node.dotDotDotToken !== dotDotDotToken || node.name !== name || node.initializer !== initializer ? update(createBindingElement(dotDotDotToken, propertyName, name, initializer), node) : node;\n    }\n    function createArrayLiteralExpression(elements, multiLine) {\n      const node = createBaseNode(206);\n      const lastElement = elements && lastOrUndefined(elements);\n      const elementsArray = createNodeArray(elements, lastElement && isOmittedExpression(lastElement) ? true : void 0);\n      node.elements = parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(elementsArray);\n      node.multiLine = multiLine;\n      node.transformFlags |= propagateChildrenFlags(node.elements);\n      return node;\n    }\n    function updateArrayLiteralExpression(node, elements) {\n      return node.elements !== elements ? update(createArrayLiteralExpression(elements, node.multiLine), node) : node;\n    }\n    function createObjectLiteralExpression(properties, multiLine) {\n      const node = createBaseDeclaration(207);\n      node.properties = createNodeArray(properties);\n      node.multiLine = multiLine;\n      node.transformFlags |= propagateChildrenFlags(node.properties);\n      node.jsDoc = void 0;\n      return node;\n    }\n    function updateObjectLiteralExpression(node, properties) {\n      return node.properties !== properties ? update(createObjectLiteralExpression(properties, node.multiLine), node) : node;\n    }\n    function createBasePropertyAccessExpression(expression, questionDotToken, name) {\n      const node = createBaseDeclaration(208);\n      node.expression = expression;\n      node.questionDotToken = questionDotToken;\n      node.name = name;\n      node.transformFlags = propagateChildFlags(node.expression) | propagateChildFlags(node.questionDotToken) | (isIdentifier(node.name) ? propagateIdentifierNameFlags(node.name) : propagateChildFlags(node.name) | 536870912);\n      node.jsDoc = void 0;\n      node.flowNode = void 0;\n      return node;\n    }\n    function createPropertyAccessExpression(expression, name) {\n      const node = createBasePropertyAccessExpression(parenthesizerRules().parenthesizeLeftSideOfAccess(expression, false), void 0, asName(name));\n      if (isSuperKeyword(expression)) {\n        node.transformFlags |= 256 | 128;\n      }\n      return node;\n    }\n    function updatePropertyAccessExpression(node, expression, name) {\n      if (isPropertyAccessChain(node)) {\n        return updatePropertyAccessChain(node, expression, node.questionDotToken, cast(name, isIdentifier));\n      }\n      return node.expression !== expression || node.name !== name ? update(createPropertyAccessExpression(expression, name), node) : node;\n    }\n    function createPropertyAccessChain(expression, questionDotToken, name) {\n      const node = createBasePropertyAccessExpression(parenthesizerRules().parenthesizeLeftSideOfAccess(expression, true), questionDotToken, asName(name));\n      node.flags |= 32;\n      node.transformFlags |= 32;\n      return node;\n    }\n    function updatePropertyAccessChain(node, expression, questionDotToken, name) {\n      Debug.assert(!!(node.flags & 32), \"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead.\");\n      return node.expression !== expression || node.questionDotToken !== questionDotToken || node.name !== name ? update(createPropertyAccessChain(expression, questionDotToken, name), node) : node;\n    }\n    function createBaseElementAccessExpression(expression, questionDotToken, argumentExpression) {\n      const node = createBaseDeclaration(209);\n      node.expression = expression;\n      node.questionDotToken = questionDotToken;\n      node.argumentExpression = argumentExpression;\n      node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.questionDotToken) | propagateChildFlags(node.argumentExpression);\n      node.jsDoc = void 0;\n      node.flowNode = void 0;\n      return node;\n    }\n    function createElementAccessExpression(expression, index) {\n      const node = createBaseElementAccessExpression(parenthesizerRules().parenthesizeLeftSideOfAccess(expression, false), void 0, asExpression(index));\n      if (isSuperKeyword(expression)) {\n        node.transformFlags |= 256 | 128;\n      }\n      return node;\n    }\n    function updateElementAccessExpression(node, expression, argumentExpression) {\n      if (isElementAccessChain(node)) {\n        return updateElementAccessChain(node, expression, node.questionDotToken, argumentExpression);\n      }\n      return node.expression !== expression || node.argumentExpression !== argumentExpression ? update(createElementAccessExpression(expression, argumentExpression), node) : node;\n    }\n    function createElementAccessChain(expression, questionDotToken, index) {\n      const node = createBaseElementAccessExpression(parenthesizerRules().parenthesizeLeftSideOfAccess(expression, true), questionDotToken, asExpression(index));\n      node.flags |= 32;\n      node.transformFlags |= 32;\n      return node;\n    }\n    function updateElementAccessChain(node, expression, questionDotToken, argumentExpression) {\n      Debug.assert(!!(node.flags & 32), \"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead.\");\n      return node.expression !== expression || node.questionDotToken !== questionDotToken || node.argumentExpression !== argumentExpression ? update(createElementAccessChain(expression, questionDotToken, argumentExpression), node) : node;\n    }\n    function createBaseCallExpression(expression, questionDotToken, typeArguments, argumentsArray) {\n      const node = createBaseDeclaration(210);\n      node.expression = expression;\n      node.questionDotToken = questionDotToken;\n      node.typeArguments = typeArguments;\n      node.arguments = argumentsArray;\n      node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.questionDotToken) | propagateChildrenFlags(node.typeArguments) | propagateChildrenFlags(node.arguments);\n      if (node.typeArguments) {\n        node.transformFlags |= 1;\n      }\n      if (isSuperProperty(node.expression)) {\n        node.transformFlags |= 16384;\n      }\n      return node;\n    }\n    function createCallExpression(expression, typeArguments, argumentsArray) {\n      const node = createBaseCallExpression(parenthesizerRules().parenthesizeLeftSideOfAccess(expression, false), void 0, asNodeArray(typeArguments), parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(createNodeArray(argumentsArray)));\n      if (isImportKeyword(node.expression)) {\n        node.transformFlags |= 8388608;\n      }\n      return node;\n    }\n    function updateCallExpression(node, expression, typeArguments, argumentsArray) {\n      if (isCallChain(node)) {\n        return updateCallChain(node, expression, node.questionDotToken, typeArguments, argumentsArray);\n      }\n      return node.expression !== expression || node.typeArguments !== typeArguments || node.arguments !== argumentsArray ? update(createCallExpression(expression, typeArguments, argumentsArray), node) : node;\n    }\n    function createCallChain(expression, questionDotToken, typeArguments, argumentsArray) {\n      const node = createBaseCallExpression(parenthesizerRules().parenthesizeLeftSideOfAccess(expression, true), questionDotToken, asNodeArray(typeArguments), parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(createNodeArray(argumentsArray)));\n      node.flags |= 32;\n      node.transformFlags |= 32;\n      return node;\n    }\n    function updateCallChain(node, expression, questionDotToken, typeArguments, argumentsArray) {\n      Debug.assert(!!(node.flags & 32), \"Cannot update a CallExpression using updateCallChain. Use updateCall instead.\");\n      return node.expression !== expression || node.questionDotToken !== questionDotToken || node.typeArguments !== typeArguments || node.arguments !== argumentsArray ? update(createCallChain(expression, questionDotToken, typeArguments, argumentsArray), node) : node;\n    }\n    function createNewExpression(expression, typeArguments, argumentsArray) {\n      const node = createBaseDeclaration(211);\n      node.expression = parenthesizerRules().parenthesizeExpressionOfNew(expression);\n      node.typeArguments = asNodeArray(typeArguments);\n      node.arguments = argumentsArray ? parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(argumentsArray) : void 0;\n      node.transformFlags |= propagateChildFlags(node.expression) | propagateChildrenFlags(node.typeArguments) | propagateChildrenFlags(node.arguments) | 32;\n      if (node.typeArguments) {\n        node.transformFlags |= 1;\n      }\n      return node;\n    }\n    function updateNewExpression(node, expression, typeArguments, argumentsArray) {\n      return node.expression !== expression || node.typeArguments !== typeArguments || node.arguments !== argumentsArray ? update(createNewExpression(expression, typeArguments, argumentsArray), node) : node;\n    }\n    function createTaggedTemplateExpression(tag, typeArguments, template) {\n      const node = createBaseNode(212);\n      node.tag = parenthesizerRules().parenthesizeLeftSideOfAccess(tag, false);\n      node.typeArguments = asNodeArray(typeArguments);\n      node.template = template;\n      node.transformFlags |= propagateChildFlags(node.tag) | propagateChildrenFlags(node.typeArguments) | propagateChildFlags(node.template) | 1024;\n      if (node.typeArguments) {\n        node.transformFlags |= 1;\n      }\n      if (hasInvalidEscape(node.template)) {\n        node.transformFlags |= 128;\n      }\n      return node;\n    }\n    function updateTaggedTemplateExpression(node, tag, typeArguments, template) {\n      return node.tag !== tag || node.typeArguments !== typeArguments || node.template !== template ? update(createTaggedTemplateExpression(tag, typeArguments, template), node) : node;\n    }\n    function createTypeAssertion(type, expression) {\n      const node = createBaseNode(213);\n      node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression);\n      node.type = type;\n      node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.type) | 1;\n      return node;\n    }\n    function updateTypeAssertion(node, type, expression) {\n      return node.type !== type || node.expression !== expression ? update(createTypeAssertion(type, expression), node) : node;\n    }\n    function createParenthesizedExpression(expression) {\n      const node = createBaseNode(214);\n      node.expression = expression;\n      node.transformFlags = propagateChildFlags(node.expression);\n      node.jsDoc = void 0;\n      return node;\n    }\n    function updateParenthesizedExpression(node, expression) {\n      return node.expression !== expression ? update(createParenthesizedExpression(expression), node) : node;\n    }\n    function createFunctionExpression(modifiers, asteriskToken, name, typeParameters, parameters, type, body) {\n      const node = createBaseDeclaration(215);\n      node.modifiers = asNodeArray(modifiers);\n      node.asteriskToken = asteriskToken;\n      node.name = asName(name);\n      node.typeParameters = asNodeArray(typeParameters);\n      node.parameters = createNodeArray(parameters);\n      node.type = type;\n      node.body = body;\n      const isAsync = modifiersToFlags(node.modifiers) & 512;\n      const isGenerator = !!node.asteriskToken;\n      const isAsyncGenerator = isAsync && isGenerator;\n      node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.asteriskToken) | propagateNameFlags(node.name) | propagateChildrenFlags(node.typeParameters) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.type) | propagateChildFlags(node.body) & ~67108864 | (isAsyncGenerator ? 128 : isAsync ? 256 : isGenerator ? 2048 : 0) | (node.typeParameters || node.type ? 1 : 0) | 4194304;\n      node.typeArguments = void 0;\n      node.jsDoc = void 0;\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      node.flowNode = void 0;\n      node.endFlowNode = void 0;\n      node.returnFlowNode = void 0;\n      return node;\n    }\n    function updateFunctionExpression(node, modifiers, asteriskToken, name, typeParameters, parameters, type, body) {\n      return node.name !== name || node.modifiers !== modifiers || node.asteriskToken !== asteriskToken || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type || node.body !== body ? finishUpdateBaseSignatureDeclaration(createFunctionExpression(modifiers, asteriskToken, name, typeParameters, parameters, type, body), node) : node;\n    }\n    function createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body) {\n      const node = createBaseDeclaration(216);\n      node.modifiers = asNodeArray(modifiers);\n      node.typeParameters = asNodeArray(typeParameters);\n      node.parameters = createNodeArray(parameters);\n      node.type = type;\n      node.equalsGreaterThanToken = equalsGreaterThanToken != null ? equalsGreaterThanToken : createToken(38);\n      node.body = parenthesizerRules().parenthesizeConciseBodyOfArrowFunction(body);\n      const isAsync = modifiersToFlags(node.modifiers) & 512;\n      node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildrenFlags(node.typeParameters) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.type) | propagateChildFlags(node.equalsGreaterThanToken) | propagateChildFlags(node.body) & ~67108864 | (node.typeParameters || node.type ? 1 : 0) | (isAsync ? 256 | 16384 : 0) | 1024;\n      node.typeArguments = void 0;\n      node.jsDoc = void 0;\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      node.flowNode = void 0;\n      node.endFlowNode = void 0;\n      node.returnFlowNode = void 0;\n      return node;\n    }\n    function updateArrowFunction(node, modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body) {\n      return node.modifiers !== modifiers || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type || node.equalsGreaterThanToken !== equalsGreaterThanToken || node.body !== body ? finishUpdateBaseSignatureDeclaration(createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body), node) : node;\n    }\n    function createDeleteExpression(expression) {\n      const node = createBaseNode(217);\n      node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression);\n      node.transformFlags |= propagateChildFlags(node.expression);\n      return node;\n    }\n    function updateDeleteExpression(node, expression) {\n      return node.expression !== expression ? update(createDeleteExpression(expression), node) : node;\n    }\n    function createTypeOfExpression(expression) {\n      const node = createBaseNode(218);\n      node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression);\n      node.transformFlags |= propagateChildFlags(node.expression);\n      return node;\n    }\n    function updateTypeOfExpression(node, expression) {\n      return node.expression !== expression ? update(createTypeOfExpression(expression), node) : node;\n    }\n    function createVoidExpression(expression) {\n      const node = createBaseNode(219);\n      node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression);\n      node.transformFlags |= propagateChildFlags(node.expression);\n      return node;\n    }\n    function updateVoidExpression(node, expression) {\n      return node.expression !== expression ? update(createVoidExpression(expression), node) : node;\n    }\n    function createAwaitExpression(expression) {\n      const node = createBaseNode(220);\n      node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression);\n      node.transformFlags |= propagateChildFlags(node.expression) | 256 | 128 | 2097152;\n      return node;\n    }\n    function updateAwaitExpression(node, expression) {\n      return node.expression !== expression ? update(createAwaitExpression(expression), node) : node;\n    }\n    function createPrefixUnaryExpression(operator, operand) {\n      const node = createBaseNode(221);\n      node.operator = operator;\n      node.operand = parenthesizerRules().parenthesizeOperandOfPrefixUnary(operand);\n      node.transformFlags |= propagateChildFlags(node.operand);\n      if ((operator === 45 || operator === 46) && isIdentifier(node.operand) && !isGeneratedIdentifier(node.operand) && !isLocalName(node.operand)) {\n        node.transformFlags |= 268435456;\n      }\n      return node;\n    }\n    function updatePrefixUnaryExpression(node, operand) {\n      return node.operand !== operand ? update(createPrefixUnaryExpression(node.operator, operand), node) : node;\n    }\n    function createPostfixUnaryExpression(operand, operator) {\n      const node = createBaseNode(222);\n      node.operator = operator;\n      node.operand = parenthesizerRules().parenthesizeOperandOfPostfixUnary(operand);\n      node.transformFlags |= propagateChildFlags(node.operand);\n      if (isIdentifier(node.operand) && !isGeneratedIdentifier(node.operand) && !isLocalName(node.operand)) {\n        node.transformFlags |= 268435456;\n      }\n      return node;\n    }\n    function updatePostfixUnaryExpression(node, operand) {\n      return node.operand !== operand ? update(createPostfixUnaryExpression(operand, node.operator), node) : node;\n    }\n    function createBinaryExpression(left, operator, right) {\n      const node = createBaseDeclaration(223);\n      const operatorToken = asToken(operator);\n      const operatorKind = operatorToken.kind;\n      node.left = parenthesizerRules().parenthesizeLeftSideOfBinary(operatorKind, left);\n      node.operatorToken = operatorToken;\n      node.right = parenthesizerRules().parenthesizeRightSideOfBinary(operatorKind, node.left, right);\n      node.transformFlags |= propagateChildFlags(node.left) | propagateChildFlags(node.operatorToken) | propagateChildFlags(node.right);\n      if (operatorKind === 60) {\n        node.transformFlags |= 32;\n      } else if (operatorKind === 63) {\n        if (isObjectLiteralExpression(node.left)) {\n          node.transformFlags |= 1024 | 128 | 4096 | propagateAssignmentPatternFlags(node.left);\n        } else if (isArrayLiteralExpression(node.left)) {\n          node.transformFlags |= 1024 | 4096 | propagateAssignmentPatternFlags(node.left);\n        }\n      } else if (operatorKind === 42 || operatorKind === 67) {\n        node.transformFlags |= 512;\n      } else if (isLogicalOrCoalescingAssignmentOperator(operatorKind)) {\n        node.transformFlags |= 16;\n      }\n      if (operatorKind === 101 && isPrivateIdentifier(node.left)) {\n        node.transformFlags |= 536870912;\n      }\n      node.jsDoc = void 0;\n      return node;\n    }\n    function propagateAssignmentPatternFlags(node) {\n      return containsObjectRestOrSpread(node) ? 65536 : 0;\n    }\n    function updateBinaryExpression(node, left, operator, right) {\n      return node.left !== left || node.operatorToken !== operator || node.right !== right ? update(createBinaryExpression(left, operator, right), node) : node;\n    }\n    function createConditionalExpression(condition, questionToken, whenTrue, colonToken, whenFalse) {\n      const node = createBaseNode(224);\n      node.condition = parenthesizerRules().parenthesizeConditionOfConditionalExpression(condition);\n      node.questionToken = questionToken != null ? questionToken : createToken(57);\n      node.whenTrue = parenthesizerRules().parenthesizeBranchOfConditionalExpression(whenTrue);\n      node.colonToken = colonToken != null ? colonToken : createToken(58);\n      node.whenFalse = parenthesizerRules().parenthesizeBranchOfConditionalExpression(whenFalse);\n      node.transformFlags |= propagateChildFlags(node.condition) | propagateChildFlags(node.questionToken) | propagateChildFlags(node.whenTrue) | propagateChildFlags(node.colonToken) | propagateChildFlags(node.whenFalse);\n      return node;\n    }\n    function updateConditionalExpression(node, condition, questionToken, whenTrue, colonToken, whenFalse) {\n      return node.condition !== condition || node.questionToken !== questionToken || node.whenTrue !== whenTrue || node.colonToken !== colonToken || node.whenFalse !== whenFalse ? update(createConditionalExpression(condition, questionToken, whenTrue, colonToken, whenFalse), node) : node;\n    }\n    function createTemplateExpression(head, templateSpans) {\n      const node = createBaseNode(225);\n      node.head = head;\n      node.templateSpans = createNodeArray(templateSpans);\n      node.transformFlags |= propagateChildFlags(node.head) | propagateChildrenFlags(node.templateSpans) | 1024;\n      return node;\n    }\n    function updateTemplateExpression(node, head, templateSpans) {\n      return node.head !== head || node.templateSpans !== templateSpans ? update(createTemplateExpression(head, templateSpans), node) : node;\n    }\n    function checkTemplateLiteralLikeNode(kind, text, rawText, templateFlags = 0) {\n      Debug.assert(!(templateFlags & ~2048), \"Unsupported template flags.\");\n      let cooked = void 0;\n      if (rawText !== void 0 && rawText !== text) {\n        cooked = getCookedText(kind, rawText);\n        if (typeof cooked === \"object\") {\n          return Debug.fail(\"Invalid raw text\");\n        }\n      }\n      if (text === void 0) {\n        if (cooked === void 0) {\n          return Debug.fail(\"Arguments 'text' and 'rawText' may not both be undefined.\");\n        }\n        text = cooked;\n      } else if (cooked !== void 0) {\n        Debug.assert(text === cooked, \"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.\");\n      }\n      return text;\n    }\n    function getTransformFlagsOfTemplateLiteralLike(templateFlags) {\n      let transformFlags = 1024;\n      if (templateFlags) {\n        transformFlags |= 128;\n      }\n      return transformFlags;\n    }\n    function createTemplateLiteralLikeToken(kind, text, rawText, templateFlags) {\n      const node = createBaseToken(kind);\n      node.text = text;\n      node.rawText = rawText;\n      node.templateFlags = templateFlags & 2048;\n      node.transformFlags = getTransformFlagsOfTemplateLiteralLike(node.templateFlags);\n      return node;\n    }\n    function createTemplateLiteralLikeDeclaration(kind, text, rawText, templateFlags) {\n      const node = createBaseDeclaration(kind);\n      node.text = text;\n      node.rawText = rawText;\n      node.templateFlags = templateFlags & 2048;\n      node.transformFlags = getTransformFlagsOfTemplateLiteralLike(node.templateFlags);\n      return node;\n    }\n    function createTemplateLiteralLikeNode(kind, text, rawText, templateFlags) {\n      if (kind === 14) {\n        return createTemplateLiteralLikeDeclaration(kind, text, rawText, templateFlags);\n      }\n      return createTemplateLiteralLikeToken(kind, text, rawText, templateFlags);\n    }\n    function createTemplateHead(text, rawText, templateFlags) {\n      text = checkTemplateLiteralLikeNode(15, text, rawText, templateFlags);\n      return createTemplateLiteralLikeNode(15, text, rawText, templateFlags);\n    }\n    function createTemplateMiddle(text, rawText, templateFlags) {\n      text = checkTemplateLiteralLikeNode(15, text, rawText, templateFlags);\n      return createTemplateLiteralLikeNode(16, text, rawText, templateFlags);\n    }\n    function createTemplateTail(text, rawText, templateFlags) {\n      text = checkTemplateLiteralLikeNode(15, text, rawText, templateFlags);\n      return createTemplateLiteralLikeNode(17, text, rawText, templateFlags);\n    }\n    function createNoSubstitutionTemplateLiteral(text, rawText, templateFlags) {\n      text = checkTemplateLiteralLikeNode(15, text, rawText, templateFlags);\n      return createTemplateLiteralLikeDeclaration(14, text, rawText, templateFlags);\n    }\n    function createYieldExpression(asteriskToken, expression) {\n      Debug.assert(!asteriskToken || !!expression, \"A `YieldExpression` with an asteriskToken must have an expression.\");\n      const node = createBaseNode(226);\n      node.expression = expression && parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression);\n      node.asteriskToken = asteriskToken;\n      node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.asteriskToken) | 1024 | 128 | 1048576;\n      return node;\n    }\n    function updateYieldExpression(node, asteriskToken, expression) {\n      return node.expression !== expression || node.asteriskToken !== asteriskToken ? update(createYieldExpression(asteriskToken, expression), node) : node;\n    }\n    function createSpreadElement(expression) {\n      const node = createBaseNode(227);\n      node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression);\n      node.transformFlags |= propagateChildFlags(node.expression) | 1024 | 32768;\n      return node;\n    }\n    function updateSpreadElement(node, expression) {\n      return node.expression !== expression ? update(createSpreadElement(expression), node) : node;\n    }\n    function createClassExpression(modifiers, name, typeParameters, heritageClauses, members) {\n      const node = createBaseDeclaration(228);\n      node.modifiers = asNodeArray(modifiers);\n      node.name = asName(name);\n      node.typeParameters = asNodeArray(typeParameters);\n      node.heritageClauses = asNodeArray(heritageClauses);\n      node.members = createNodeArray(members);\n      node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateNameFlags(node.name) | propagateChildrenFlags(node.typeParameters) | propagateChildrenFlags(node.heritageClauses) | propagateChildrenFlags(node.members) | (node.typeParameters ? 1 : 0) | 1024;\n      node.jsDoc = void 0;\n      return node;\n    }\n    function updateClassExpression(node, modifiers, name, typeParameters, heritageClauses, members) {\n      return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.heritageClauses !== heritageClauses || node.members !== members ? update(createClassExpression(modifiers, name, typeParameters, heritageClauses, members), node) : node;\n    }\n    function createOmittedExpression() {\n      return createBaseNode(229);\n    }\n    function createExpressionWithTypeArguments(expression, typeArguments) {\n      const node = createBaseNode(230);\n      node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression, false);\n      node.typeArguments = typeArguments && parenthesizerRules().parenthesizeTypeArguments(typeArguments);\n      node.transformFlags |= propagateChildFlags(node.expression) | propagateChildrenFlags(node.typeArguments) | 1024;\n      return node;\n    }\n    function updateExpressionWithTypeArguments(node, expression, typeArguments) {\n      return node.expression !== expression || node.typeArguments !== typeArguments ? update(createExpressionWithTypeArguments(expression, typeArguments), node) : node;\n    }\n    function createAsExpression(expression, type) {\n      const node = createBaseNode(231);\n      node.expression = expression;\n      node.type = type;\n      node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.type) | 1;\n      return node;\n    }\n    function updateAsExpression(node, expression, type) {\n      return node.expression !== expression || node.type !== type ? update(createAsExpression(expression, type), node) : node;\n    }\n    function createNonNullExpression(expression) {\n      const node = createBaseNode(232);\n      node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression, false);\n      node.transformFlags |= propagateChildFlags(node.expression) | 1;\n      return node;\n    }\n    function updateNonNullExpression(node, expression) {\n      if (isNonNullChain(node)) {\n        return updateNonNullChain(node, expression);\n      }\n      return node.expression !== expression ? update(createNonNullExpression(expression), node) : node;\n    }\n    function createSatisfiesExpression(expression, type) {\n      const node = createBaseNode(235);\n      node.expression = expression;\n      node.type = type;\n      node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.type) | 1;\n      return node;\n    }\n    function updateSatisfiesExpression(node, expression, type) {\n      return node.expression !== expression || node.type !== type ? update(createSatisfiesExpression(expression, type), node) : node;\n    }\n    function createNonNullChain(expression) {\n      const node = createBaseNode(232);\n      node.flags |= 32;\n      node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression, true);\n      node.transformFlags |= propagateChildFlags(node.expression) | 1;\n      return node;\n    }\n    function updateNonNullChain(node, expression) {\n      Debug.assert(!!(node.flags & 32), \"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead.\");\n      return node.expression !== expression ? update(createNonNullChain(expression), node) : node;\n    }\n    function createMetaProperty(keywordToken, name) {\n      const node = createBaseNode(233);\n      node.keywordToken = keywordToken;\n      node.name = name;\n      node.transformFlags |= propagateChildFlags(node.name);\n      switch (keywordToken) {\n        case 103:\n          node.transformFlags |= 1024;\n          break;\n        case 100:\n          node.transformFlags |= 4;\n          break;\n        default:\n          return Debug.assertNever(keywordToken);\n      }\n      node.flowNode = void 0;\n      return node;\n    }\n    function updateMetaProperty(node, name) {\n      return node.name !== name ? update(createMetaProperty(node.keywordToken, name), node) : node;\n    }\n    function createTemplateSpan(expression, literal) {\n      const node = createBaseNode(236);\n      node.expression = expression;\n      node.literal = literal;\n      node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.literal) | 1024;\n      return node;\n    }\n    function updateTemplateSpan(node, expression, literal) {\n      return node.expression !== expression || node.literal !== literal ? update(createTemplateSpan(expression, literal), node) : node;\n    }\n    function createSemicolonClassElement() {\n      const node = createBaseNode(237);\n      node.transformFlags |= 1024;\n      return node;\n    }\n    function createBlock(statements, multiLine) {\n      const node = createBaseNode(238);\n      node.statements = createNodeArray(statements);\n      node.multiLine = multiLine;\n      node.transformFlags |= propagateChildrenFlags(node.statements);\n      node.jsDoc = void 0;\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      return node;\n    }\n    function updateBlock(node, statements) {\n      return node.statements !== statements ? update(createBlock(statements, node.multiLine), node) : node;\n    }\n    function createVariableStatement(modifiers, declarationList) {\n      const node = createBaseNode(240);\n      node.modifiers = asNodeArray(modifiers);\n      node.declarationList = isArray(declarationList) ? createVariableDeclarationList(declarationList) : declarationList;\n      node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.declarationList);\n      if (modifiersToFlags(node.modifiers) & 2) {\n        node.transformFlags = 1;\n      }\n      node.jsDoc = void 0;\n      node.flowNode = void 0;\n      return node;\n    }\n    function updateVariableStatement(node, modifiers, declarationList) {\n      return node.modifiers !== modifiers || node.declarationList !== declarationList ? update(createVariableStatement(modifiers, declarationList), node) : node;\n    }\n    function createEmptyStatement() {\n      const node = createBaseNode(239);\n      node.jsDoc = void 0;\n      return node;\n    }\n    function createExpressionStatement(expression) {\n      const node = createBaseNode(241);\n      node.expression = parenthesizerRules().parenthesizeExpressionOfExpressionStatement(expression);\n      node.transformFlags |= propagateChildFlags(node.expression);\n      node.jsDoc = void 0;\n      node.flowNode = void 0;\n      return node;\n    }\n    function updateExpressionStatement(node, expression) {\n      return node.expression !== expression ? update(createExpressionStatement(expression), node) : node;\n    }\n    function createIfStatement(expression, thenStatement, elseStatement) {\n      const node = createBaseNode(242);\n      node.expression = expression;\n      node.thenStatement = asEmbeddedStatement(thenStatement);\n      node.elseStatement = asEmbeddedStatement(elseStatement);\n      node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.thenStatement) | propagateChildFlags(node.elseStatement);\n      node.jsDoc = void 0;\n      node.flowNode = void 0;\n      return node;\n    }\n    function updateIfStatement(node, expression, thenStatement, elseStatement) {\n      return node.expression !== expression || node.thenStatement !== thenStatement || node.elseStatement !== elseStatement ? update(createIfStatement(expression, thenStatement, elseStatement), node) : node;\n    }\n    function createDoStatement(statement, expression) {\n      const node = createBaseNode(243);\n      node.statement = asEmbeddedStatement(statement);\n      node.expression = expression;\n      node.transformFlags |= propagateChildFlags(node.statement) | propagateChildFlags(node.expression);\n      node.jsDoc = void 0;\n      node.flowNode = void 0;\n      return node;\n    }\n    function updateDoStatement(node, statement, expression) {\n      return node.statement !== statement || node.expression !== expression ? update(createDoStatement(statement, expression), node) : node;\n    }\n    function createWhileStatement(expression, statement) {\n      const node = createBaseNode(244);\n      node.expression = expression;\n      node.statement = asEmbeddedStatement(statement);\n      node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.statement);\n      node.jsDoc = void 0;\n      node.flowNode = void 0;\n      return node;\n    }\n    function updateWhileStatement(node, expression, statement) {\n      return node.expression !== expression || node.statement !== statement ? update(createWhileStatement(expression, statement), node) : node;\n    }\n    function createForStatement(initializer, condition, incrementor, statement) {\n      const node = createBaseNode(245);\n      node.initializer = initializer;\n      node.condition = condition;\n      node.incrementor = incrementor;\n      node.statement = asEmbeddedStatement(statement);\n      node.transformFlags |= propagateChildFlags(node.initializer) | propagateChildFlags(node.condition) | propagateChildFlags(node.incrementor) | propagateChildFlags(node.statement);\n      node.jsDoc = void 0;\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      node.flowNode = void 0;\n      return node;\n    }\n    function updateForStatement(node, initializer, condition, incrementor, statement) {\n      return node.initializer !== initializer || node.condition !== condition || node.incrementor !== incrementor || node.statement !== statement ? update(createForStatement(initializer, condition, incrementor, statement), node) : node;\n    }\n    function createForInStatement(initializer, expression, statement) {\n      const node = createBaseNode(246);\n      node.initializer = initializer;\n      node.expression = expression;\n      node.statement = asEmbeddedStatement(statement);\n      node.transformFlags |= propagateChildFlags(node.initializer) | propagateChildFlags(node.expression) | propagateChildFlags(node.statement);\n      node.jsDoc = void 0;\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      node.flowNode = void 0;\n      return node;\n    }\n    function updateForInStatement(node, initializer, expression, statement) {\n      return node.initializer !== initializer || node.expression !== expression || node.statement !== statement ? update(createForInStatement(initializer, expression, statement), node) : node;\n    }\n    function createForOfStatement(awaitModifier, initializer, expression, statement) {\n      const node = createBaseNode(247);\n      node.awaitModifier = awaitModifier;\n      node.initializer = initializer;\n      node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression);\n      node.statement = asEmbeddedStatement(statement);\n      node.transformFlags |= propagateChildFlags(node.awaitModifier) | propagateChildFlags(node.initializer) | propagateChildFlags(node.expression) | propagateChildFlags(node.statement) | 1024;\n      if (awaitModifier)\n        node.transformFlags |= 128;\n      node.jsDoc = void 0;\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      node.flowNode = void 0;\n      return node;\n    }\n    function updateForOfStatement(node, awaitModifier, initializer, expression, statement) {\n      return node.awaitModifier !== awaitModifier || node.initializer !== initializer || node.expression !== expression || node.statement !== statement ? update(createForOfStatement(awaitModifier, initializer, expression, statement), node) : node;\n    }\n    function createContinueStatement(label) {\n      const node = createBaseNode(248);\n      node.label = asName(label);\n      node.transformFlags |= propagateChildFlags(node.label) | 4194304;\n      node.jsDoc = void 0;\n      node.flowNode = void 0;\n      return node;\n    }\n    function updateContinueStatement(node, label) {\n      return node.label !== label ? update(createContinueStatement(label), node) : node;\n    }\n    function createBreakStatement(label) {\n      const node = createBaseNode(249);\n      node.label = asName(label);\n      node.transformFlags |= propagateChildFlags(node.label) | 4194304;\n      node.jsDoc = void 0;\n      node.flowNode = void 0;\n      return node;\n    }\n    function updateBreakStatement(node, label) {\n      return node.label !== label ? update(createBreakStatement(label), node) : node;\n    }\n    function createReturnStatement(expression) {\n      const node = createBaseNode(250);\n      node.expression = expression;\n      node.transformFlags |= propagateChildFlags(node.expression) | 128 | 4194304;\n      node.jsDoc = void 0;\n      node.flowNode = void 0;\n      return node;\n    }\n    function updateReturnStatement(node, expression) {\n      return node.expression !== expression ? update(createReturnStatement(expression), node) : node;\n    }\n    function createWithStatement(expression, statement) {\n      const node = createBaseNode(251);\n      node.expression = expression;\n      node.statement = asEmbeddedStatement(statement);\n      node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.statement);\n      node.jsDoc = void 0;\n      node.flowNode = void 0;\n      return node;\n    }\n    function updateWithStatement(node, expression, statement) {\n      return node.expression !== expression || node.statement !== statement ? update(createWithStatement(expression, statement), node) : node;\n    }\n    function createSwitchStatement(expression, caseBlock) {\n      const node = createBaseNode(252);\n      node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression);\n      node.caseBlock = caseBlock;\n      node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.caseBlock);\n      node.jsDoc = void 0;\n      node.flowNode = void 0;\n      node.possiblyExhaustive = false;\n      return node;\n    }\n    function updateSwitchStatement(node, expression, caseBlock) {\n      return node.expression !== expression || node.caseBlock !== caseBlock ? update(createSwitchStatement(expression, caseBlock), node) : node;\n    }\n    function createLabeledStatement(label, statement) {\n      const node = createBaseNode(253);\n      node.label = asName(label);\n      node.statement = asEmbeddedStatement(statement);\n      node.transformFlags |= propagateChildFlags(node.label) | propagateChildFlags(node.statement);\n      node.jsDoc = void 0;\n      node.flowNode = void 0;\n      return node;\n    }\n    function updateLabeledStatement(node, label, statement) {\n      return node.label !== label || node.statement !== statement ? update(createLabeledStatement(label, statement), node) : node;\n    }\n    function createThrowStatement(expression) {\n      const node = createBaseNode(254);\n      node.expression = expression;\n      node.transformFlags |= propagateChildFlags(node.expression);\n      node.jsDoc = void 0;\n      node.flowNode = void 0;\n      return node;\n    }\n    function updateThrowStatement(node, expression) {\n      return node.expression !== expression ? update(createThrowStatement(expression), node) : node;\n    }\n    function createTryStatement(tryBlock, catchClause, finallyBlock) {\n      const node = createBaseNode(255);\n      node.tryBlock = tryBlock;\n      node.catchClause = catchClause;\n      node.finallyBlock = finallyBlock;\n      node.transformFlags |= propagateChildFlags(node.tryBlock) | propagateChildFlags(node.catchClause) | propagateChildFlags(node.finallyBlock);\n      node.jsDoc = void 0;\n      node.flowNode = void 0;\n      return node;\n    }\n    function updateTryStatement(node, tryBlock, catchClause, finallyBlock) {\n      return node.tryBlock !== tryBlock || node.catchClause !== catchClause || node.finallyBlock !== finallyBlock ? update(createTryStatement(tryBlock, catchClause, finallyBlock), node) : node;\n    }\n    function createDebuggerStatement() {\n      const node = createBaseNode(256);\n      node.jsDoc = void 0;\n      node.flowNode = void 0;\n      return node;\n    }\n    function createVariableDeclaration(name, exclamationToken, type, initializer) {\n      var _a2;\n      const node = createBaseDeclaration(257);\n      node.name = asName(name);\n      node.exclamationToken = exclamationToken;\n      node.type = type;\n      node.initializer = asInitializer(initializer);\n      node.transformFlags |= propagateNameFlags(node.name) | propagateChildFlags(node.initializer) | (((_a2 = node.exclamationToken) != null ? _a2 : node.type) ? 1 : 0);\n      node.jsDoc = void 0;\n      return node;\n    }\n    function updateVariableDeclaration(node, name, exclamationToken, type, initializer) {\n      return node.name !== name || node.type !== type || node.exclamationToken !== exclamationToken || node.initializer !== initializer ? update(createVariableDeclaration(name, exclamationToken, type, initializer), node) : node;\n    }\n    function createVariableDeclarationList(declarations, flags2 = 0) {\n      const node = createBaseNode(258);\n      node.flags |= flags2 & 3;\n      node.declarations = createNodeArray(declarations);\n      node.transformFlags |= propagateChildrenFlags(node.declarations) | 4194304;\n      if (flags2 & 3) {\n        node.transformFlags |= 1024 | 262144;\n      }\n      return node;\n    }\n    function updateVariableDeclarationList(node, declarations) {\n      return node.declarations !== declarations ? update(createVariableDeclarationList(declarations, node.flags), node) : node;\n    }\n    function createFunctionDeclaration(modifiers, asteriskToken, name, typeParameters, parameters, type, body) {\n      const node = createBaseDeclaration(259);\n      node.modifiers = asNodeArray(modifiers);\n      node.asteriskToken = asteriskToken;\n      node.name = asName(name);\n      node.typeParameters = asNodeArray(typeParameters);\n      node.parameters = createNodeArray(parameters);\n      node.type = type;\n      node.body = body;\n      if (!node.body || modifiersToFlags(node.modifiers) & 2) {\n        node.transformFlags = 1;\n      } else {\n        const isAsync = modifiersToFlags(node.modifiers) & 512;\n        const isGenerator = !!node.asteriskToken;\n        const isAsyncGenerator = isAsync && isGenerator;\n        node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.asteriskToken) | propagateNameFlags(node.name) | propagateChildrenFlags(node.typeParameters) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.type) | propagateChildFlags(node.body) & ~67108864 | (isAsyncGenerator ? 128 : isAsync ? 256 : isGenerator ? 2048 : 0) | (node.typeParameters || node.type ? 1 : 0) | 4194304;\n      }\n      node.typeArguments = void 0;\n      node.jsDoc = void 0;\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      node.endFlowNode = void 0;\n      node.returnFlowNode = void 0;\n      return node;\n    }\n    function updateFunctionDeclaration(node, modifiers, asteriskToken, name, typeParameters, parameters, type, body) {\n      return node.modifiers !== modifiers || node.asteriskToken !== asteriskToken || node.name !== name || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type || node.body !== body ? finishUpdateFunctionDeclaration(createFunctionDeclaration(modifiers, asteriskToken, name, typeParameters, parameters, type, body), node) : node;\n    }\n    function finishUpdateFunctionDeclaration(updated, original) {\n      if (updated !== original) {\n        if (updated.modifiers === original.modifiers) {\n          updated.modifiers = original.modifiers;\n        }\n      }\n      return finishUpdateBaseSignatureDeclaration(updated, original);\n    }\n    function createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members) {\n      const node = createBaseDeclaration(260);\n      node.modifiers = asNodeArray(modifiers);\n      node.name = asName(name);\n      node.typeParameters = asNodeArray(typeParameters);\n      node.heritageClauses = asNodeArray(heritageClauses);\n      node.members = createNodeArray(members);\n      if (modifiersToFlags(node.modifiers) & 2) {\n        node.transformFlags = 1;\n      } else {\n        node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateNameFlags(node.name) | propagateChildrenFlags(node.typeParameters) | propagateChildrenFlags(node.heritageClauses) | propagateChildrenFlags(node.members) | (node.typeParameters ? 1 : 0) | 1024;\n        if (node.transformFlags & 8192) {\n          node.transformFlags |= 1;\n        }\n      }\n      node.jsDoc = void 0;\n      return node;\n    }\n    function updateClassDeclaration(node, modifiers, name, typeParameters, heritageClauses, members) {\n      return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.heritageClauses !== heritageClauses || node.members !== members ? update(createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members), node) : node;\n    }\n    function createInterfaceDeclaration(modifiers, name, typeParameters, heritageClauses, members) {\n      const node = createBaseDeclaration(261);\n      node.modifiers = asNodeArray(modifiers);\n      node.name = asName(name);\n      node.typeParameters = asNodeArray(typeParameters);\n      node.heritageClauses = asNodeArray(heritageClauses);\n      node.members = createNodeArray(members);\n      node.transformFlags = 1;\n      node.jsDoc = void 0;\n      return node;\n    }\n    function updateInterfaceDeclaration(node, modifiers, name, typeParameters, heritageClauses, members) {\n      return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.heritageClauses !== heritageClauses || node.members !== members ? update(createInterfaceDeclaration(modifiers, name, typeParameters, heritageClauses, members), node) : node;\n    }\n    function createTypeAliasDeclaration(modifiers, name, typeParameters, type) {\n      const node = createBaseDeclaration(262);\n      node.modifiers = asNodeArray(modifiers);\n      node.name = asName(name);\n      node.typeParameters = asNodeArray(typeParameters);\n      node.type = type;\n      node.transformFlags = 1;\n      node.jsDoc = void 0;\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      return node;\n    }\n    function updateTypeAliasDeclaration(node, modifiers, name, typeParameters, type) {\n      return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.type !== type ? update(createTypeAliasDeclaration(modifiers, name, typeParameters, type), node) : node;\n    }\n    function createEnumDeclaration(modifiers, name, members) {\n      const node = createBaseDeclaration(263);\n      node.modifiers = asNodeArray(modifiers);\n      node.name = asName(name);\n      node.members = createNodeArray(members);\n      node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.name) | propagateChildrenFlags(node.members) | 1;\n      node.transformFlags &= ~67108864;\n      node.jsDoc = void 0;\n      return node;\n    }\n    function updateEnumDeclaration(node, modifiers, name, members) {\n      return node.modifiers !== modifiers || node.name !== name || node.members !== members ? update(createEnumDeclaration(modifiers, name, members), node) : node;\n    }\n    function createModuleDeclaration(modifiers, name, body, flags2 = 0) {\n      const node = createBaseDeclaration(264);\n      node.modifiers = asNodeArray(modifiers);\n      node.flags |= flags2 & (16 | 4 | 1024);\n      node.name = name;\n      node.body = body;\n      if (modifiersToFlags(node.modifiers) & 2) {\n        node.transformFlags = 1;\n      } else {\n        node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.name) | propagateChildFlags(node.body) | 1;\n      }\n      node.transformFlags &= ~67108864;\n      node.jsDoc = void 0;\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      return node;\n    }\n    function updateModuleDeclaration(node, modifiers, name, body) {\n      return node.modifiers !== modifiers || node.name !== name || node.body !== body ? update(createModuleDeclaration(modifiers, name, body, node.flags), node) : node;\n    }\n    function createModuleBlock(statements) {\n      const node = createBaseNode(265);\n      node.statements = createNodeArray(statements);\n      node.transformFlags |= propagateChildrenFlags(node.statements);\n      node.jsDoc = void 0;\n      return node;\n    }\n    function updateModuleBlock(node, statements) {\n      return node.statements !== statements ? update(createModuleBlock(statements), node) : node;\n    }\n    function createCaseBlock(clauses) {\n      const node = createBaseNode(266);\n      node.clauses = createNodeArray(clauses);\n      node.transformFlags |= propagateChildrenFlags(node.clauses);\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      return node;\n    }\n    function updateCaseBlock(node, clauses) {\n      return node.clauses !== clauses ? update(createCaseBlock(clauses), node) : node;\n    }\n    function createNamespaceExportDeclaration(name) {\n      const node = createBaseDeclaration(267);\n      node.name = asName(name);\n      node.transformFlags |= propagateIdentifierNameFlags(node.name) | 1;\n      node.modifiers = void 0;\n      node.jsDoc = void 0;\n      return node;\n    }\n    function updateNamespaceExportDeclaration(node, name) {\n      return node.name !== name ? finishUpdateNamespaceExportDeclaration(createNamespaceExportDeclaration(name), node) : node;\n    }\n    function finishUpdateNamespaceExportDeclaration(updated, original) {\n      if (updated !== original) {\n        updated.modifiers = original.modifiers;\n      }\n      return update(updated, original);\n    }\n    function createImportEqualsDeclaration(modifiers, isTypeOnly, name, moduleReference) {\n      const node = createBaseDeclaration(268);\n      node.modifiers = asNodeArray(modifiers);\n      node.name = asName(name);\n      node.isTypeOnly = isTypeOnly;\n      node.moduleReference = moduleReference;\n      node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateIdentifierNameFlags(node.name) | propagateChildFlags(node.moduleReference);\n      if (!isExternalModuleReference(node.moduleReference)) {\n        node.transformFlags |= 1;\n      }\n      node.transformFlags &= ~67108864;\n      node.jsDoc = void 0;\n      return node;\n    }\n    function updateImportEqualsDeclaration(node, modifiers, isTypeOnly, name, moduleReference) {\n      return node.modifiers !== modifiers || node.isTypeOnly !== isTypeOnly || node.name !== name || node.moduleReference !== moduleReference ? update(createImportEqualsDeclaration(modifiers, isTypeOnly, name, moduleReference), node) : node;\n    }\n    function createImportDeclaration(modifiers, importClause, moduleSpecifier, assertClause) {\n      const node = createBaseNode(269);\n      node.modifiers = asNodeArray(modifiers);\n      node.importClause = importClause;\n      node.moduleSpecifier = moduleSpecifier;\n      node.assertClause = assertClause;\n      node.transformFlags |= propagateChildFlags(node.importClause) | propagateChildFlags(node.moduleSpecifier);\n      node.transformFlags &= ~67108864;\n      node.jsDoc = void 0;\n      return node;\n    }\n    function updateImportDeclaration(node, modifiers, importClause, moduleSpecifier, assertClause) {\n      return node.modifiers !== modifiers || node.importClause !== importClause || node.moduleSpecifier !== moduleSpecifier || node.assertClause !== assertClause ? update(createImportDeclaration(modifiers, importClause, moduleSpecifier, assertClause), node) : node;\n    }\n    function createImportClause(isTypeOnly, name, namedBindings) {\n      const node = createBaseDeclaration(270);\n      node.isTypeOnly = isTypeOnly;\n      node.name = name;\n      node.namedBindings = namedBindings;\n      node.transformFlags |= propagateChildFlags(node.name) | propagateChildFlags(node.namedBindings);\n      if (isTypeOnly) {\n        node.transformFlags |= 1;\n      }\n      node.transformFlags &= ~67108864;\n      return node;\n    }\n    function updateImportClause(node, isTypeOnly, name, namedBindings) {\n      return node.isTypeOnly !== isTypeOnly || node.name !== name || node.namedBindings !== namedBindings ? update(createImportClause(isTypeOnly, name, namedBindings), node) : node;\n    }\n    function createAssertClause(elements, multiLine) {\n      const node = createBaseNode(296);\n      node.elements = createNodeArray(elements);\n      node.multiLine = multiLine;\n      node.transformFlags |= 4;\n      return node;\n    }\n    function updateAssertClause(node, elements, multiLine) {\n      return node.elements !== elements || node.multiLine !== multiLine ? update(createAssertClause(elements, multiLine), node) : node;\n    }\n    function createAssertEntry(name, value) {\n      const node = createBaseNode(297);\n      node.name = name;\n      node.value = value;\n      node.transformFlags |= 4;\n      return node;\n    }\n    function updateAssertEntry(node, name, value) {\n      return node.name !== name || node.value !== value ? update(createAssertEntry(name, value), node) : node;\n    }\n    function createImportTypeAssertionContainer(clause, multiLine) {\n      const node = createBaseNode(298);\n      node.assertClause = clause;\n      node.multiLine = multiLine;\n      return node;\n    }\n    function updateImportTypeAssertionContainer(node, clause, multiLine) {\n      return node.assertClause !== clause || node.multiLine !== multiLine ? update(createImportTypeAssertionContainer(clause, multiLine), node) : node;\n    }\n    function createNamespaceImport(name) {\n      const node = createBaseDeclaration(271);\n      node.name = name;\n      node.transformFlags |= propagateChildFlags(node.name);\n      node.transformFlags &= ~67108864;\n      return node;\n    }\n    function updateNamespaceImport(node, name) {\n      return node.name !== name ? update(createNamespaceImport(name), node) : node;\n    }\n    function createNamespaceExport(name) {\n      const node = createBaseDeclaration(277);\n      node.name = name;\n      node.transformFlags |= propagateChildFlags(node.name) | 4;\n      node.transformFlags &= ~67108864;\n      return node;\n    }\n    function updateNamespaceExport(node, name) {\n      return node.name !== name ? update(createNamespaceExport(name), node) : node;\n    }\n    function createNamedImports(elements) {\n      const node = createBaseNode(272);\n      node.elements = createNodeArray(elements);\n      node.transformFlags |= propagateChildrenFlags(node.elements);\n      node.transformFlags &= ~67108864;\n      return node;\n    }\n    function updateNamedImports(node, elements) {\n      return node.elements !== elements ? update(createNamedImports(elements), node) : node;\n    }\n    function createImportSpecifier(isTypeOnly, propertyName, name) {\n      const node = createBaseDeclaration(273);\n      node.isTypeOnly = isTypeOnly;\n      node.propertyName = propertyName;\n      node.name = name;\n      node.transformFlags |= propagateChildFlags(node.propertyName) | propagateChildFlags(node.name);\n      node.transformFlags &= ~67108864;\n      return node;\n    }\n    function updateImportSpecifier(node, isTypeOnly, propertyName, name) {\n      return node.isTypeOnly !== isTypeOnly || node.propertyName !== propertyName || node.name !== name ? update(createImportSpecifier(isTypeOnly, propertyName, name), node) : node;\n    }\n    function createExportAssignment2(modifiers, isExportEquals, expression) {\n      const node = createBaseDeclaration(274);\n      node.modifiers = asNodeArray(modifiers);\n      node.isExportEquals = isExportEquals;\n      node.expression = isExportEquals ? parenthesizerRules().parenthesizeRightSideOfBinary(63, void 0, expression) : parenthesizerRules().parenthesizeExpressionOfExportDefault(expression);\n      node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.expression);\n      node.transformFlags &= ~67108864;\n      node.jsDoc = void 0;\n      return node;\n    }\n    function updateExportAssignment(node, modifiers, expression) {\n      return node.modifiers !== modifiers || node.expression !== expression ? update(createExportAssignment2(modifiers, node.isExportEquals, expression), node) : node;\n    }\n    function createExportDeclaration(modifiers, isTypeOnly, exportClause, moduleSpecifier, assertClause) {\n      const node = createBaseDeclaration(275);\n      node.modifiers = asNodeArray(modifiers);\n      node.isTypeOnly = isTypeOnly;\n      node.exportClause = exportClause;\n      node.moduleSpecifier = moduleSpecifier;\n      node.assertClause = assertClause;\n      node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.exportClause) | propagateChildFlags(node.moduleSpecifier);\n      node.transformFlags &= ~67108864;\n      node.jsDoc = void 0;\n      return node;\n    }\n    function updateExportDeclaration(node, modifiers, isTypeOnly, exportClause, moduleSpecifier, assertClause) {\n      return node.modifiers !== modifiers || node.isTypeOnly !== isTypeOnly || node.exportClause !== exportClause || node.moduleSpecifier !== moduleSpecifier || node.assertClause !== assertClause ? finishUpdateExportDeclaration(createExportDeclaration(modifiers, isTypeOnly, exportClause, moduleSpecifier, assertClause), node) : node;\n    }\n    function finishUpdateExportDeclaration(updated, original) {\n      if (updated !== original) {\n        if (updated.modifiers === original.modifiers) {\n          updated.modifiers = original.modifiers;\n        }\n      }\n      return update(updated, original);\n    }\n    function createNamedExports(elements) {\n      const node = createBaseNode(276);\n      node.elements = createNodeArray(elements);\n      node.transformFlags |= propagateChildrenFlags(node.elements);\n      node.transformFlags &= ~67108864;\n      return node;\n    }\n    function updateNamedExports(node, elements) {\n      return node.elements !== elements ? update(createNamedExports(elements), node) : node;\n    }\n    function createExportSpecifier(isTypeOnly, propertyName, name) {\n      const node = createBaseNode(278);\n      node.isTypeOnly = isTypeOnly;\n      node.propertyName = asName(propertyName);\n      node.name = asName(name);\n      node.transformFlags |= propagateChildFlags(node.propertyName) | propagateChildFlags(node.name);\n      node.transformFlags &= ~67108864;\n      node.jsDoc = void 0;\n      return node;\n    }\n    function updateExportSpecifier(node, isTypeOnly, propertyName, name) {\n      return node.isTypeOnly !== isTypeOnly || node.propertyName !== propertyName || node.name !== name ? update(createExportSpecifier(isTypeOnly, propertyName, name), node) : node;\n    }\n    function createMissingDeclaration() {\n      const node = createBaseDeclaration(279);\n      node.jsDoc = void 0;\n      return node;\n    }\n    function createExternalModuleReference(expression) {\n      const node = createBaseNode(280);\n      node.expression = expression;\n      node.transformFlags |= propagateChildFlags(node.expression);\n      node.transformFlags &= ~67108864;\n      return node;\n    }\n    function updateExternalModuleReference(node, expression) {\n      return node.expression !== expression ? update(createExternalModuleReference(expression), node) : node;\n    }\n    function createJSDocPrimaryTypeWorker(kind) {\n      return createBaseNode(kind);\n    }\n    function createJSDocPrePostfixUnaryTypeWorker(kind, type, postfix = false) {\n      const node = createJSDocUnaryTypeWorker(kind, postfix ? type && parenthesizerRules().parenthesizeNonArrayTypeOfPostfixType(type) : type);\n      node.postfix = postfix;\n      return node;\n    }\n    function createJSDocUnaryTypeWorker(kind, type) {\n      const node = createBaseNode(kind);\n      node.type = type;\n      return node;\n    }\n    function updateJSDocPrePostfixUnaryTypeWorker(kind, node, type) {\n      return node.type !== type ? update(createJSDocPrePostfixUnaryTypeWorker(kind, type, node.postfix), node) : node;\n    }\n    function updateJSDocUnaryTypeWorker(kind, node, type) {\n      return node.type !== type ? update(createJSDocUnaryTypeWorker(kind, type), node) : node;\n    }\n    function createJSDocFunctionType(parameters, type) {\n      const node = createBaseDeclaration(320);\n      node.parameters = asNodeArray(parameters);\n      node.type = type;\n      node.transformFlags = propagateChildrenFlags(node.parameters) | (node.type ? 1 : 0);\n      node.jsDoc = void 0;\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      node.typeArguments = void 0;\n      return node;\n    }\n    function updateJSDocFunctionType(node, parameters, type) {\n      return node.parameters !== parameters || node.type !== type ? update(createJSDocFunctionType(parameters, type), node) : node;\n    }\n    function createJSDocTypeLiteral(propertyTags, isArrayType = false) {\n      const node = createBaseDeclaration(325);\n      node.jsDocPropertyTags = asNodeArray(propertyTags);\n      node.isArrayType = isArrayType;\n      return node;\n    }\n    function updateJSDocTypeLiteral(node, propertyTags, isArrayType) {\n      return node.jsDocPropertyTags !== propertyTags || node.isArrayType !== isArrayType ? update(createJSDocTypeLiteral(propertyTags, isArrayType), node) : node;\n    }\n    function createJSDocTypeExpression(type) {\n      const node = createBaseNode(312);\n      node.type = type;\n      return node;\n    }\n    function updateJSDocTypeExpression(node, type) {\n      return node.type !== type ? update(createJSDocTypeExpression(type), node) : node;\n    }\n    function createJSDocSignature(typeParameters, parameters, type) {\n      const node = createBaseDeclaration(326);\n      node.typeParameters = asNodeArray(typeParameters);\n      node.parameters = createNodeArray(parameters);\n      node.type = type;\n      node.jsDoc = void 0;\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      return node;\n    }\n    function updateJSDocSignature(node, typeParameters, parameters, type) {\n      return node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? update(createJSDocSignature(typeParameters, parameters, type), node) : node;\n    }\n    function getDefaultTagName(node) {\n      const defaultTagName = getDefaultTagNameForKind(node.kind);\n      return node.tagName.escapedText === escapeLeadingUnderscores(defaultTagName) ? node.tagName : createIdentifier(defaultTagName);\n    }\n    function createBaseJSDocTag(kind, tagName, comment) {\n      const node = createBaseNode(kind);\n      node.tagName = tagName;\n      node.comment = comment;\n      return node;\n    }\n    function createBaseJSDocTagDeclaration(kind, tagName, comment) {\n      const node = createBaseDeclaration(kind);\n      node.tagName = tagName;\n      node.comment = comment;\n      return node;\n    }\n    function createJSDocTemplateTag(tagName, constraint, typeParameters, comment) {\n      const node = createBaseJSDocTag(348, tagName != null ? tagName : createIdentifier(\"template\"), comment);\n      node.constraint = constraint;\n      node.typeParameters = createNodeArray(typeParameters);\n      return node;\n    }\n    function updateJSDocTemplateTag(node, tagName = getDefaultTagName(node), constraint, typeParameters, comment) {\n      return node.tagName !== tagName || node.constraint !== constraint || node.typeParameters !== typeParameters || node.comment !== comment ? update(createJSDocTemplateTag(tagName, constraint, typeParameters, comment), node) : node;\n    }\n    function createJSDocTypedefTag(tagName, typeExpression, fullName, comment) {\n      const node = createBaseJSDocTagDeclaration(349, tagName != null ? tagName : createIdentifier(\"typedef\"), comment);\n      node.typeExpression = typeExpression;\n      node.fullName = fullName;\n      node.name = getJSDocTypeAliasName(fullName);\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      return node;\n    }\n    function updateJSDocTypedefTag(node, tagName = getDefaultTagName(node), typeExpression, fullName, comment) {\n      return node.tagName !== tagName || node.typeExpression !== typeExpression || node.fullName !== fullName || node.comment !== comment ? update(createJSDocTypedefTag(tagName, typeExpression, fullName, comment), node) : node;\n    }\n    function createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) {\n      const node = createBaseJSDocTagDeclaration(344, tagName != null ? tagName : createIdentifier(\"param\"), comment);\n      node.typeExpression = typeExpression;\n      node.name = name;\n      node.isNameFirst = !!isNameFirst;\n      node.isBracketed = isBracketed;\n      return node;\n    }\n    function updateJSDocParameterTag(node, tagName = getDefaultTagName(node), name, isBracketed, typeExpression, isNameFirst, comment) {\n      return node.tagName !== tagName || node.name !== name || node.isBracketed !== isBracketed || node.typeExpression !== typeExpression || node.isNameFirst !== isNameFirst || node.comment !== comment ? update(createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment), node) : node;\n    }\n    function createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) {\n      const node = createBaseJSDocTagDeclaration(351, tagName != null ? tagName : createIdentifier(\"prop\"), comment);\n      node.typeExpression = typeExpression;\n      node.name = name;\n      node.isNameFirst = !!isNameFirst;\n      node.isBracketed = isBracketed;\n      return node;\n    }\n    function updateJSDocPropertyTag(node, tagName = getDefaultTagName(node), name, isBracketed, typeExpression, isNameFirst, comment) {\n      return node.tagName !== tagName || node.name !== name || node.isBracketed !== isBracketed || node.typeExpression !== typeExpression || node.isNameFirst !== isNameFirst || node.comment !== comment ? update(createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment), node) : node;\n    }\n    function createJSDocCallbackTag(tagName, typeExpression, fullName, comment) {\n      const node = createBaseJSDocTagDeclaration(341, tagName != null ? tagName : createIdentifier(\"callback\"), comment);\n      node.typeExpression = typeExpression;\n      node.fullName = fullName;\n      node.name = getJSDocTypeAliasName(fullName);\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      return node;\n    }\n    function updateJSDocCallbackTag(node, tagName = getDefaultTagName(node), typeExpression, fullName, comment) {\n      return node.tagName !== tagName || node.typeExpression !== typeExpression || node.fullName !== fullName || node.comment !== comment ? update(createJSDocCallbackTag(tagName, typeExpression, fullName, comment), node) : node;\n    }\n    function createJSDocOverloadTag(tagName, typeExpression, comment) {\n      const node = createBaseJSDocTag(342, tagName != null ? tagName : createIdentifier(\"overload\"), comment);\n      node.typeExpression = typeExpression;\n      return node;\n    }\n    function updateJSDocOverloadTag(node, tagName = getDefaultTagName(node), typeExpression, comment) {\n      return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocOverloadTag(tagName, typeExpression, comment), node) : node;\n    }\n    function createJSDocAugmentsTag(tagName, className, comment) {\n      const node = createBaseJSDocTag(331, tagName != null ? tagName : createIdentifier(\"augments\"), comment);\n      node.class = className;\n      return node;\n    }\n    function updateJSDocAugmentsTag(node, tagName = getDefaultTagName(node), className, comment) {\n      return node.tagName !== tagName || node.class !== className || node.comment !== comment ? update(createJSDocAugmentsTag(tagName, className, comment), node) : node;\n    }\n    function createJSDocImplementsTag(tagName, className, comment) {\n      const node = createBaseJSDocTag(332, tagName != null ? tagName : createIdentifier(\"implements\"), comment);\n      node.class = className;\n      return node;\n    }\n    function createJSDocSeeTag(tagName, name, comment) {\n      const node = createBaseJSDocTag(350, tagName != null ? tagName : createIdentifier(\"see\"), comment);\n      node.name = name;\n      return node;\n    }\n    function updateJSDocSeeTag(node, tagName, name, comment) {\n      return node.tagName !== tagName || node.name !== name || node.comment !== comment ? update(createJSDocSeeTag(tagName, name, comment), node) : node;\n    }\n    function createJSDocNameReference(name) {\n      const node = createBaseNode(313);\n      node.name = name;\n      return node;\n    }\n    function updateJSDocNameReference(node, name) {\n      return node.name !== name ? update(createJSDocNameReference(name), node) : node;\n    }\n    function createJSDocMemberName(left, right) {\n      const node = createBaseNode(314);\n      node.left = left;\n      node.right = right;\n      node.transformFlags |= propagateChildFlags(node.left) | propagateChildFlags(node.right);\n      return node;\n    }\n    function updateJSDocMemberName(node, left, right) {\n      return node.left !== left || node.right !== right ? update(createJSDocMemberName(left, right), node) : node;\n    }\n    function createJSDocLink(name, text) {\n      const node = createBaseNode(327);\n      node.name = name;\n      node.text = text;\n      return node;\n    }\n    function updateJSDocLink(node, name, text) {\n      return node.name !== name ? update(createJSDocLink(name, text), node) : node;\n    }\n    function createJSDocLinkCode(name, text) {\n      const node = createBaseNode(328);\n      node.name = name;\n      node.text = text;\n      return node;\n    }\n    function updateJSDocLinkCode(node, name, text) {\n      return node.name !== name ? update(createJSDocLinkCode(name, text), node) : node;\n    }\n    function createJSDocLinkPlain(name, text) {\n      const node = createBaseNode(329);\n      node.name = name;\n      node.text = text;\n      return node;\n    }\n    function updateJSDocLinkPlain(node, name, text) {\n      return node.name !== name ? update(createJSDocLinkPlain(name, text), node) : node;\n    }\n    function updateJSDocImplementsTag(node, tagName = getDefaultTagName(node), className, comment) {\n      return node.tagName !== tagName || node.class !== className || node.comment !== comment ? update(createJSDocImplementsTag(tagName, className, comment), node) : node;\n    }\n    function createJSDocSimpleTagWorker(kind, tagName, comment) {\n      const node = createBaseJSDocTag(kind, tagName != null ? tagName : createIdentifier(getDefaultTagNameForKind(kind)), comment);\n      return node;\n    }\n    function updateJSDocSimpleTagWorker(kind, node, tagName = getDefaultTagName(node), comment) {\n      return node.tagName !== tagName || node.comment !== comment ? update(createJSDocSimpleTagWorker(kind, tagName, comment), node) : node;\n    }\n    function createJSDocTypeLikeTagWorker(kind, tagName, typeExpression, comment) {\n      const node = createBaseJSDocTag(kind, tagName != null ? tagName : createIdentifier(getDefaultTagNameForKind(kind)), comment);\n      node.typeExpression = typeExpression;\n      return node;\n    }\n    function updateJSDocTypeLikeTagWorker(kind, node, tagName = getDefaultTagName(node), typeExpression, comment) {\n      return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocTypeLikeTagWorker(kind, tagName, typeExpression, comment), node) : node;\n    }\n    function createJSDocUnknownTag(tagName, comment) {\n      const node = createBaseJSDocTag(330, tagName, comment);\n      return node;\n    }\n    function updateJSDocUnknownTag(node, tagName, comment) {\n      return node.tagName !== tagName || node.comment !== comment ? update(createJSDocUnknownTag(tagName, comment), node) : node;\n    }\n    function createJSDocEnumTag(tagName, typeExpression, comment) {\n      const node = createBaseJSDocTagDeclaration(343, tagName != null ? tagName : createIdentifier(getDefaultTagNameForKind(343)), comment);\n      node.typeExpression = typeExpression;\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      return node;\n    }\n    function updateJSDocEnumTag(node, tagName = getDefaultTagName(node), typeExpression, comment) {\n      return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocEnumTag(tagName, typeExpression, comment), node) : node;\n    }\n    function createJSDocText(text) {\n      const node = createBaseNode(324);\n      node.text = text;\n      return node;\n    }\n    function updateJSDocText(node, text) {\n      return node.text !== text ? update(createJSDocText(text), node) : node;\n    }\n    function createJSDocComment(comment, tags) {\n      const node = createBaseNode(323);\n      node.comment = comment;\n      node.tags = asNodeArray(tags);\n      return node;\n    }\n    function updateJSDocComment(node, comment, tags) {\n      return node.comment !== comment || node.tags !== tags ? update(createJSDocComment(comment, tags), node) : node;\n    }\n    function createJsxElement(openingElement, children, closingElement) {\n      const node = createBaseNode(281);\n      node.openingElement = openingElement;\n      node.children = createNodeArray(children);\n      node.closingElement = closingElement;\n      node.transformFlags |= propagateChildFlags(node.openingElement) | propagateChildrenFlags(node.children) | propagateChildFlags(node.closingElement) | 2;\n      return node;\n    }\n    function updateJsxElement(node, openingElement, children, closingElement) {\n      return node.openingElement !== openingElement || node.children !== children || node.closingElement !== closingElement ? update(createJsxElement(openingElement, children, closingElement), node) : node;\n    }\n    function createJsxSelfClosingElement(tagName, typeArguments, attributes) {\n      const node = createBaseNode(282);\n      node.tagName = tagName;\n      node.typeArguments = asNodeArray(typeArguments);\n      node.attributes = attributes;\n      node.transformFlags |= propagateChildFlags(node.tagName) | propagateChildrenFlags(node.typeArguments) | propagateChildFlags(node.attributes) | 2;\n      if (node.typeArguments) {\n        node.transformFlags |= 1;\n      }\n      return node;\n    }\n    function updateJsxSelfClosingElement(node, tagName, typeArguments, attributes) {\n      return node.tagName !== tagName || node.typeArguments !== typeArguments || node.attributes !== attributes ? update(createJsxSelfClosingElement(tagName, typeArguments, attributes), node) : node;\n    }\n    function createJsxOpeningElement(tagName, typeArguments, attributes) {\n      const node = createBaseNode(283);\n      node.tagName = tagName;\n      node.typeArguments = asNodeArray(typeArguments);\n      node.attributes = attributes;\n      node.transformFlags |= propagateChildFlags(node.tagName) | propagateChildrenFlags(node.typeArguments) | propagateChildFlags(node.attributes) | 2;\n      if (typeArguments) {\n        node.transformFlags |= 1;\n      }\n      return node;\n    }\n    function updateJsxOpeningElement(node, tagName, typeArguments, attributes) {\n      return node.tagName !== tagName || node.typeArguments !== typeArguments || node.attributes !== attributes ? update(createJsxOpeningElement(tagName, typeArguments, attributes), node) : node;\n    }\n    function createJsxClosingElement(tagName) {\n      const node = createBaseNode(284);\n      node.tagName = tagName;\n      node.transformFlags |= propagateChildFlags(node.tagName) | 2;\n      return node;\n    }\n    function updateJsxClosingElement(node, tagName) {\n      return node.tagName !== tagName ? update(createJsxClosingElement(tagName), node) : node;\n    }\n    function createJsxFragment(openingFragment, children, closingFragment) {\n      const node = createBaseNode(285);\n      node.openingFragment = openingFragment;\n      node.children = createNodeArray(children);\n      node.closingFragment = closingFragment;\n      node.transformFlags |= propagateChildFlags(node.openingFragment) | propagateChildrenFlags(node.children) | propagateChildFlags(node.closingFragment) | 2;\n      return node;\n    }\n    function updateJsxFragment(node, openingFragment, children, closingFragment) {\n      return node.openingFragment !== openingFragment || node.children !== children || node.closingFragment !== closingFragment ? update(createJsxFragment(openingFragment, children, closingFragment), node) : node;\n    }\n    function createJsxText(text, containsOnlyTriviaWhiteSpaces) {\n      const node = createBaseNode(11);\n      node.text = text;\n      node.containsOnlyTriviaWhiteSpaces = !!containsOnlyTriviaWhiteSpaces;\n      node.transformFlags |= 2;\n      return node;\n    }\n    function updateJsxText(node, text, containsOnlyTriviaWhiteSpaces) {\n      return node.text !== text || node.containsOnlyTriviaWhiteSpaces !== containsOnlyTriviaWhiteSpaces ? update(createJsxText(text, containsOnlyTriviaWhiteSpaces), node) : node;\n    }\n    function createJsxOpeningFragment() {\n      const node = createBaseNode(286);\n      node.transformFlags |= 2;\n      return node;\n    }\n    function createJsxJsxClosingFragment() {\n      const node = createBaseNode(287);\n      node.transformFlags |= 2;\n      return node;\n    }\n    function createJsxAttribute(name, initializer) {\n      const node = createBaseDeclaration(288);\n      node.name = name;\n      node.initializer = initializer;\n      node.transformFlags |= propagateChildFlags(node.name) | propagateChildFlags(node.initializer) | 2;\n      return node;\n    }\n    function updateJsxAttribute(node, name, initializer) {\n      return node.name !== name || node.initializer !== initializer ? update(createJsxAttribute(name, initializer), node) : node;\n    }\n    function createJsxAttributes(properties) {\n      const node = createBaseDeclaration(289);\n      node.properties = createNodeArray(properties);\n      node.transformFlags |= propagateChildrenFlags(node.properties) | 2;\n      return node;\n    }\n    function updateJsxAttributes(node, properties) {\n      return node.properties !== properties ? update(createJsxAttributes(properties), node) : node;\n    }\n    function createJsxSpreadAttribute(expression) {\n      const node = createBaseNode(290);\n      node.expression = expression;\n      node.transformFlags |= propagateChildFlags(node.expression) | 2;\n      return node;\n    }\n    function updateJsxSpreadAttribute(node, expression) {\n      return node.expression !== expression ? update(createJsxSpreadAttribute(expression), node) : node;\n    }\n    function createJsxExpression(dotDotDotToken, expression) {\n      const node = createBaseNode(291);\n      node.dotDotDotToken = dotDotDotToken;\n      node.expression = expression;\n      node.transformFlags |= propagateChildFlags(node.dotDotDotToken) | propagateChildFlags(node.expression) | 2;\n      return node;\n    }\n    function updateJsxExpression(node, expression) {\n      return node.expression !== expression ? update(createJsxExpression(node.dotDotDotToken, expression), node) : node;\n    }\n    function createCaseClause(expression, statements) {\n      const node = createBaseNode(292);\n      node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression);\n      node.statements = createNodeArray(statements);\n      node.transformFlags |= propagateChildFlags(node.expression) | propagateChildrenFlags(node.statements);\n      node.jsDoc = void 0;\n      return node;\n    }\n    function updateCaseClause(node, expression, statements) {\n      return node.expression !== expression || node.statements !== statements ? update(createCaseClause(expression, statements), node) : node;\n    }\n    function createDefaultClause(statements) {\n      const node = createBaseNode(293);\n      node.statements = createNodeArray(statements);\n      node.transformFlags = propagateChildrenFlags(node.statements);\n      return node;\n    }\n    function updateDefaultClause(node, statements) {\n      return node.statements !== statements ? update(createDefaultClause(statements), node) : node;\n    }\n    function createHeritageClause(token, types) {\n      const node = createBaseNode(294);\n      node.token = token;\n      node.types = createNodeArray(types);\n      node.transformFlags |= propagateChildrenFlags(node.types);\n      switch (token) {\n        case 94:\n          node.transformFlags |= 1024;\n          break;\n        case 117:\n          node.transformFlags |= 1;\n          break;\n        default:\n          return Debug.assertNever(token);\n      }\n      return node;\n    }\n    function updateHeritageClause(node, types) {\n      return node.types !== types ? update(createHeritageClause(node.token, types), node) : node;\n    }\n    function createCatchClause(variableDeclaration, block) {\n      const node = createBaseNode(295);\n      node.variableDeclaration = asVariableDeclaration(variableDeclaration);\n      node.block = block;\n      node.transformFlags |= propagateChildFlags(node.variableDeclaration) | propagateChildFlags(node.block) | (!variableDeclaration ? 64 : 0);\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      return node;\n    }\n    function updateCatchClause(node, variableDeclaration, block) {\n      return node.variableDeclaration !== variableDeclaration || node.block !== block ? update(createCatchClause(variableDeclaration, block), node) : node;\n    }\n    function createPropertyAssignment(name, initializer) {\n      const node = createBaseDeclaration(299);\n      node.name = asName(name);\n      node.initializer = parenthesizerRules().parenthesizeExpressionForDisallowedComma(initializer);\n      node.transformFlags |= propagateNameFlags(node.name) | propagateChildFlags(node.initializer);\n      node.modifiers = void 0;\n      node.questionToken = void 0;\n      node.exclamationToken = void 0;\n      node.jsDoc = void 0;\n      return node;\n    }\n    function updatePropertyAssignment(node, name, initializer) {\n      return node.name !== name || node.initializer !== initializer ? finishUpdatePropertyAssignment(createPropertyAssignment(name, initializer), node) : node;\n    }\n    function finishUpdatePropertyAssignment(updated, original) {\n      if (updated !== original) {\n        updated.modifiers = original.modifiers;\n        updated.questionToken = original.questionToken;\n        updated.exclamationToken = original.exclamationToken;\n      }\n      return update(updated, original);\n    }\n    function createShorthandPropertyAssignment(name, objectAssignmentInitializer) {\n      const node = createBaseDeclaration(300);\n      node.name = asName(name);\n      node.objectAssignmentInitializer = objectAssignmentInitializer && parenthesizerRules().parenthesizeExpressionForDisallowedComma(objectAssignmentInitializer);\n      node.transformFlags |= propagateIdentifierNameFlags(node.name) | propagateChildFlags(node.objectAssignmentInitializer) | 1024;\n      node.equalsToken = void 0;\n      node.modifiers = void 0;\n      node.questionToken = void 0;\n      node.exclamationToken = void 0;\n      node.jsDoc = void 0;\n      return node;\n    }\n    function updateShorthandPropertyAssignment(node, name, objectAssignmentInitializer) {\n      return node.name !== name || node.objectAssignmentInitializer !== objectAssignmentInitializer ? finishUpdateShorthandPropertyAssignment(createShorthandPropertyAssignment(name, objectAssignmentInitializer), node) : node;\n    }\n    function finishUpdateShorthandPropertyAssignment(updated, original) {\n      if (updated !== original) {\n        updated.modifiers = original.modifiers;\n        updated.questionToken = original.questionToken;\n        updated.exclamationToken = original.exclamationToken;\n        updated.equalsToken = original.equalsToken;\n      }\n      return update(updated, original);\n    }\n    function createSpreadAssignment(expression) {\n      const node = createBaseDeclaration(301);\n      node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression);\n      node.transformFlags |= propagateChildFlags(node.expression) | 128 | 65536;\n      node.jsDoc = void 0;\n      return node;\n    }\n    function updateSpreadAssignment(node, expression) {\n      return node.expression !== expression ? update(createSpreadAssignment(expression), node) : node;\n    }\n    function createEnumMember(name, initializer) {\n      const node = createBaseDeclaration(302);\n      node.name = asName(name);\n      node.initializer = initializer && parenthesizerRules().parenthesizeExpressionForDisallowedComma(initializer);\n      node.transformFlags |= propagateChildFlags(node.name) | propagateChildFlags(node.initializer) | 1;\n      node.jsDoc = void 0;\n      return node;\n    }\n    function updateEnumMember(node, name, initializer) {\n      return node.name !== name || node.initializer !== initializer ? update(createEnumMember(name, initializer), node) : node;\n    }\n    function createSourceFile2(statements, endOfFileToken, flags2) {\n      const node = baseFactory2.createBaseSourceFileNode(308);\n      node.statements = createNodeArray(statements);\n      node.endOfFileToken = endOfFileToken;\n      node.flags |= flags2;\n      node.text = \"\";\n      node.fileName = \"\";\n      node.path = \"\";\n      node.resolvedPath = \"\";\n      node.originalFileName = \"\";\n      node.languageVersion = 0;\n      node.languageVariant = 0;\n      node.scriptKind = 0;\n      node.isDeclarationFile = false;\n      node.hasNoDefaultLib = false;\n      node.transformFlags |= propagateChildrenFlags(node.statements) | propagateChildFlags(node.endOfFileToken);\n      node.locals = void 0;\n      node.nextContainer = void 0;\n      node.endFlowNode = void 0;\n      node.nodeCount = 0;\n      node.identifierCount = 0;\n      node.symbolCount = 0;\n      node.parseDiagnostics = void 0;\n      node.bindDiagnostics = void 0;\n      node.bindSuggestionDiagnostics = void 0;\n      node.lineMap = void 0;\n      node.externalModuleIndicator = void 0;\n      node.setExternalModuleIndicator = void 0;\n      node.pragmas = void 0;\n      node.checkJsDirective = void 0;\n      node.referencedFiles = void 0;\n      node.typeReferenceDirectives = void 0;\n      node.libReferenceDirectives = void 0;\n      node.amdDependencies = void 0;\n      node.commentDirectives = void 0;\n      node.identifiers = void 0;\n      node.packageJsonLocations = void 0;\n      node.packageJsonScope = void 0;\n      node.imports = void 0;\n      node.moduleAugmentations = void 0;\n      node.ambientModuleNames = void 0;\n      node.resolvedModules = void 0;\n      node.classifiableNames = void 0;\n      node.impliedNodeFormat = void 0;\n      return node;\n    }\n    function createRedirectedSourceFile(redirectInfo) {\n      const node = Object.create(redirectInfo.redirectTarget);\n      Object.defineProperties(node, {\n        id: {\n          get() {\n            return this.redirectInfo.redirectTarget.id;\n          },\n          set(value) {\n            this.redirectInfo.redirectTarget.id = value;\n          }\n        },\n        symbol: {\n          get() {\n            return this.redirectInfo.redirectTarget.symbol;\n          },\n          set(value) {\n            this.redirectInfo.redirectTarget.symbol = value;\n          }\n        }\n      });\n      node.redirectInfo = redirectInfo;\n      return node;\n    }\n    function cloneRedirectedSourceFile(source) {\n      const node = createRedirectedSourceFile(source.redirectInfo);\n      node.flags |= source.flags & ~8;\n      node.fileName = source.fileName;\n      node.path = source.path;\n      node.resolvedPath = source.resolvedPath;\n      node.originalFileName = source.originalFileName;\n      node.packageJsonLocations = source.packageJsonLocations;\n      node.packageJsonScope = source.packageJsonScope;\n      node.emitNode = void 0;\n      return node;\n    }\n    function cloneSourceFileWorker(source) {\n      const node = baseFactory2.createBaseSourceFileNode(308);\n      node.flags |= source.flags & ~8;\n      for (const p in source) {\n        if (hasProperty(node, p) || !hasProperty(source, p)) {\n          continue;\n        }\n        if (p === \"emitNode\") {\n          node.emitNode = void 0;\n          continue;\n        }\n        node[p] = source[p];\n      }\n      return node;\n    }\n    function cloneSourceFile(source) {\n      const node = source.redirectInfo ? cloneRedirectedSourceFile(source) : cloneSourceFileWorker(source);\n      setOriginalNode(node, source);\n      return node;\n    }\n    function cloneSourceFileWithChanges(source, statements, isDeclarationFile, referencedFiles, typeReferences, hasNoDefaultLib, libReferences) {\n      const node = cloneSourceFile(source);\n      node.statements = createNodeArray(statements);\n      node.isDeclarationFile = isDeclarationFile;\n      node.referencedFiles = referencedFiles;\n      node.typeReferenceDirectives = typeReferences;\n      node.hasNoDefaultLib = hasNoDefaultLib;\n      node.libReferenceDirectives = libReferences;\n      node.transformFlags = propagateChildrenFlags(node.statements) | propagateChildFlags(node.endOfFileToken);\n      return node;\n    }\n    function updateSourceFile2(node, statements, isDeclarationFile = node.isDeclarationFile, referencedFiles = node.referencedFiles, typeReferenceDirectives = node.typeReferenceDirectives, hasNoDefaultLib = node.hasNoDefaultLib, libReferenceDirectives = node.libReferenceDirectives) {\n      return node.statements !== statements || node.isDeclarationFile !== isDeclarationFile || node.referencedFiles !== referencedFiles || node.typeReferenceDirectives !== typeReferenceDirectives || node.hasNoDefaultLib !== hasNoDefaultLib || node.libReferenceDirectives !== libReferenceDirectives ? update(cloneSourceFileWithChanges(node, statements, isDeclarationFile, referencedFiles, typeReferenceDirectives, hasNoDefaultLib, libReferenceDirectives), node) : node;\n    }\n    function createBundle(sourceFiles, prepends = emptyArray) {\n      const node = createBaseNode(309);\n      node.prepends = prepends;\n      node.sourceFiles = sourceFiles;\n      node.syntheticFileReferences = void 0;\n      node.syntheticTypeReferences = void 0;\n      node.syntheticLibReferences = void 0;\n      node.hasNoDefaultLib = void 0;\n      return node;\n    }\n    function updateBundle(node, sourceFiles, prepends = emptyArray) {\n      return node.sourceFiles !== sourceFiles || node.prepends !== prepends ? update(createBundle(sourceFiles, prepends), node) : node;\n    }\n    function createUnparsedSource(prologues, syntheticReferences, texts) {\n      const node = createBaseNode(310);\n      node.prologues = prologues;\n      node.syntheticReferences = syntheticReferences;\n      node.texts = texts;\n      node.fileName = \"\";\n      node.text = \"\";\n      node.referencedFiles = emptyArray;\n      node.libReferenceDirectives = emptyArray;\n      node.getLineAndCharacterOfPosition = (pos) => getLineAndCharacterOfPosition(node, pos);\n      return node;\n    }\n    function createBaseUnparsedNode(kind, data) {\n      const node = createBaseNode(kind);\n      node.data = data;\n      return node;\n    }\n    function createUnparsedPrologue(data) {\n      return createBaseUnparsedNode(303, data);\n    }\n    function createUnparsedPrepend(data, texts) {\n      const node = createBaseUnparsedNode(304, data);\n      node.texts = texts;\n      return node;\n    }\n    function createUnparsedTextLike(data, internal) {\n      return createBaseUnparsedNode(internal ? 306 : 305, data);\n    }\n    function createUnparsedSyntheticReference(section) {\n      const node = createBaseNode(307);\n      node.data = section.data;\n      node.section = section;\n      return node;\n    }\n    function createInputFiles2() {\n      const node = createBaseNode(311);\n      node.javascriptText = \"\";\n      node.declarationText = \"\";\n      return node;\n    }\n    function createSyntheticExpression(type, isSpread = false, tupleNameSource) {\n      const node = createBaseNode(234);\n      node.type = type;\n      node.isSpread = isSpread;\n      node.tupleNameSource = tupleNameSource;\n      return node;\n    }\n    function createSyntaxList3(children) {\n      const node = createBaseNode(354);\n      node._children = children;\n      return node;\n    }\n    function createNotEmittedStatement(original) {\n      const node = createBaseNode(355);\n      node.original = original;\n      setTextRange(node, original);\n      return node;\n    }\n    function createPartiallyEmittedExpression(expression, original) {\n      const node = createBaseNode(356);\n      node.expression = expression;\n      node.original = original;\n      node.transformFlags |= propagateChildFlags(node.expression) | 1;\n      setTextRange(node, original);\n      return node;\n    }\n    function updatePartiallyEmittedExpression(node, expression) {\n      return node.expression !== expression ? update(createPartiallyEmittedExpression(expression, node.original), node) : node;\n    }\n    function flattenCommaElements(node) {\n      if (nodeIsSynthesized(node) && !isParseTreeNode(node) && !node.original && !node.emitNode && !node.id) {\n        if (isCommaListExpression(node)) {\n          return node.elements;\n        }\n        if (isBinaryExpression(node) && isCommaToken(node.operatorToken)) {\n          return [node.left, node.right];\n        }\n      }\n      return node;\n    }\n    function createCommaListExpression(elements) {\n      const node = createBaseNode(357);\n      node.elements = createNodeArray(sameFlatMap(elements, flattenCommaElements));\n      node.transformFlags |= propagateChildrenFlags(node.elements);\n      return node;\n    }\n    function updateCommaListExpression(node, elements) {\n      return node.elements !== elements ? update(createCommaListExpression(elements), node) : node;\n    }\n    function createEndOfDeclarationMarker(original) {\n      const node = createBaseNode(359);\n      node.emitNode = {};\n      node.original = original;\n      return node;\n    }\n    function createMergeDeclarationMarker(original) {\n      const node = createBaseNode(358);\n      node.emitNode = {};\n      node.original = original;\n      return node;\n    }\n    function createSyntheticReferenceExpression(expression, thisArg) {\n      const node = createBaseNode(360);\n      node.expression = expression;\n      node.thisArg = thisArg;\n      node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.thisArg);\n      return node;\n    }\n    function updateSyntheticReferenceExpression(node, expression, thisArg) {\n      return node.expression !== expression || node.thisArg !== thisArg ? update(createSyntheticReferenceExpression(expression, thisArg), node) : node;\n    }\n    function cloneGeneratedIdentifier(node) {\n      const clone2 = createBaseIdentifier(node.escapedText);\n      clone2.flags |= node.flags & ~8;\n      clone2.transformFlags = node.transformFlags;\n      setOriginalNode(clone2, node);\n      setIdentifierAutoGenerate(clone2, { ...node.emitNode.autoGenerate });\n      return clone2;\n    }\n    function cloneIdentifier(node) {\n      const clone2 = createBaseIdentifier(node.escapedText);\n      clone2.flags |= node.flags & ~8;\n      clone2.jsDoc = node.jsDoc;\n      clone2.flowNode = node.flowNode;\n      clone2.symbol = node.symbol;\n      clone2.transformFlags = node.transformFlags;\n      setOriginalNode(clone2, node);\n      const typeArguments = getIdentifierTypeArguments(node);\n      if (typeArguments)\n        setIdentifierTypeArguments(clone2, typeArguments);\n      return clone2;\n    }\n    function cloneGeneratedPrivateIdentifier(node) {\n      const clone2 = createBasePrivateIdentifier(node.escapedText);\n      clone2.flags |= node.flags & ~8;\n      clone2.transformFlags = node.transformFlags;\n      setOriginalNode(clone2, node);\n      setIdentifierAutoGenerate(clone2, { ...node.emitNode.autoGenerate });\n      return clone2;\n    }\n    function clonePrivateIdentifier(node) {\n      const clone2 = createBasePrivateIdentifier(node.escapedText);\n      clone2.flags |= node.flags & ~8;\n      clone2.transformFlags = node.transformFlags;\n      setOriginalNode(clone2, node);\n      return clone2;\n    }\n    function cloneNode(node) {\n      if (node === void 0) {\n        return node;\n      }\n      if (isSourceFile(node)) {\n        return cloneSourceFile(node);\n      }\n      if (isGeneratedIdentifier(node)) {\n        return cloneGeneratedIdentifier(node);\n      }\n      if (isIdentifier(node)) {\n        return cloneIdentifier(node);\n      }\n      if (isGeneratedPrivateIdentifier(node)) {\n        return cloneGeneratedPrivateIdentifier(node);\n      }\n      if (isPrivateIdentifier(node)) {\n        return clonePrivateIdentifier(node);\n      }\n      const clone2 = !isNodeKind(node.kind) ? baseFactory2.createBaseTokenNode(node.kind) : baseFactory2.createBaseNode(node.kind);\n      clone2.flags |= node.flags & ~8;\n      clone2.transformFlags = node.transformFlags;\n      setOriginalNode(clone2, node);\n      for (const key in node) {\n        if (hasProperty(clone2, key) || !hasProperty(node, key)) {\n          continue;\n        }\n        clone2[key] = node[key];\n      }\n      return clone2;\n    }\n    function createImmediatelyInvokedFunctionExpression(statements, param, paramValue) {\n      return createCallExpression(createFunctionExpression(void 0, void 0, void 0, void 0, param ? [param] : [], void 0, createBlock(statements, true)), void 0, paramValue ? [paramValue] : []);\n    }\n    function createImmediatelyInvokedArrowFunction(statements, param, paramValue) {\n      return createCallExpression(createArrowFunction(void 0, void 0, param ? [param] : [], void 0, void 0, createBlock(statements, true)), void 0, paramValue ? [paramValue] : []);\n    }\n    function createVoidZero() {\n      return createVoidExpression(createNumericLiteral(\"0\"));\n    }\n    function createExportDefault(expression) {\n      return createExportAssignment2(void 0, false, expression);\n    }\n    function createExternalModuleExport(exportName) {\n      return createExportDeclaration(void 0, false, createNamedExports([\n        createExportSpecifier(false, void 0, exportName)\n      ]));\n    }\n    function createTypeCheck(value, tag) {\n      return tag === \"undefined\" ? factory2.createStrictEquality(value, createVoidZero()) : factory2.createStrictEquality(createTypeOfExpression(value), createStringLiteral(tag));\n    }\n    function createMethodCall(object, methodName, argumentsList) {\n      if (isCallChain(object)) {\n        return createCallChain(createPropertyAccessChain(object, void 0, methodName), void 0, void 0, argumentsList);\n      }\n      return createCallExpression(createPropertyAccessExpression(object, methodName), void 0, argumentsList);\n    }\n    function createFunctionBindCall(target, thisArg, argumentsList) {\n      return createMethodCall(target, \"bind\", [thisArg, ...argumentsList]);\n    }\n    function createFunctionCallCall(target, thisArg, argumentsList) {\n      return createMethodCall(target, \"call\", [thisArg, ...argumentsList]);\n    }\n    function createFunctionApplyCall(target, thisArg, argumentsExpression) {\n      return createMethodCall(target, \"apply\", [thisArg, argumentsExpression]);\n    }\n    function createGlobalMethodCall(globalObjectName, methodName, argumentsList) {\n      return createMethodCall(createIdentifier(globalObjectName), methodName, argumentsList);\n    }\n    function createArraySliceCall(array, start) {\n      return createMethodCall(array, \"slice\", start === void 0 ? [] : [asExpression(start)]);\n    }\n    function createArrayConcatCall(array, argumentsList) {\n      return createMethodCall(array, \"concat\", argumentsList);\n    }\n    function createObjectDefinePropertyCall(target, propertyName, attributes) {\n      return createGlobalMethodCall(\"Object\", \"defineProperty\", [target, asExpression(propertyName), attributes]);\n    }\n    function createObjectGetOwnPropertyDescriptorCall(target, propertyName) {\n      return createGlobalMethodCall(\"Object\", \"getOwnPropertyDescriptor\", [target, asExpression(propertyName)]);\n    }\n    function createReflectGetCall(target, propertyKey, receiver) {\n      return createGlobalMethodCall(\"Reflect\", \"get\", receiver ? [target, propertyKey, receiver] : [target, propertyKey]);\n    }\n    function createReflectSetCall(target, propertyKey, value, receiver) {\n      return createGlobalMethodCall(\"Reflect\", \"set\", receiver ? [target, propertyKey, value, receiver] : [target, propertyKey, value]);\n    }\n    function tryAddPropertyAssignment(properties, propertyName, expression) {\n      if (expression) {\n        properties.push(createPropertyAssignment(propertyName, expression));\n        return true;\n      }\n      return false;\n    }\n    function createPropertyDescriptor(attributes, singleLine) {\n      const properties = [];\n      tryAddPropertyAssignment(properties, \"enumerable\", asExpression(attributes.enumerable));\n      tryAddPropertyAssignment(properties, \"configurable\", asExpression(attributes.configurable));\n      let isData = tryAddPropertyAssignment(properties, \"writable\", asExpression(attributes.writable));\n      isData = tryAddPropertyAssignment(properties, \"value\", attributes.value) || isData;\n      let isAccessor2 = tryAddPropertyAssignment(properties, \"get\", attributes.get);\n      isAccessor2 = tryAddPropertyAssignment(properties, \"set\", attributes.set) || isAccessor2;\n      Debug.assert(!(isData && isAccessor2), \"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor.\");\n      return createObjectLiteralExpression(properties, !singleLine);\n    }\n    function updateOuterExpression(outerExpression, expression) {\n      switch (outerExpression.kind) {\n        case 214:\n          return updateParenthesizedExpression(outerExpression, expression);\n        case 213:\n          return updateTypeAssertion(outerExpression, outerExpression.type, expression);\n        case 231:\n          return updateAsExpression(outerExpression, expression, outerExpression.type);\n        case 235:\n          return updateSatisfiesExpression(outerExpression, expression, outerExpression.type);\n        case 232:\n          return updateNonNullExpression(outerExpression, expression);\n        case 356:\n          return updatePartiallyEmittedExpression(outerExpression, expression);\n      }\n    }\n    function isIgnorableParen(node) {\n      return isParenthesizedExpression(node) && nodeIsSynthesized(node) && nodeIsSynthesized(getSourceMapRange(node)) && nodeIsSynthesized(getCommentRange(node)) && !some(getSyntheticLeadingComments(node)) && !some(getSyntheticTrailingComments(node));\n    }\n    function restoreOuterExpressions(outerExpression, innerExpression, kinds = 15) {\n      if (outerExpression && isOuterExpression(outerExpression, kinds) && !isIgnorableParen(outerExpression)) {\n        return updateOuterExpression(outerExpression, restoreOuterExpressions(outerExpression.expression, innerExpression));\n      }\n      return innerExpression;\n    }\n    function restoreEnclosingLabel(node, outermostLabeledStatement, afterRestoreLabelCallback) {\n      if (!outermostLabeledStatement) {\n        return node;\n      }\n      const updated = updateLabeledStatement(outermostLabeledStatement, outermostLabeledStatement.label, isLabeledStatement(outermostLabeledStatement.statement) ? restoreEnclosingLabel(node, outermostLabeledStatement.statement) : node);\n      if (afterRestoreLabelCallback) {\n        afterRestoreLabelCallback(outermostLabeledStatement);\n      }\n      return updated;\n    }\n    function shouldBeCapturedInTempVariable(node, cacheIdentifiers) {\n      const target = skipParentheses(node);\n      switch (target.kind) {\n        case 79:\n          return cacheIdentifiers;\n        case 108:\n        case 8:\n        case 9:\n        case 10:\n          return false;\n        case 206:\n          const elements = target.elements;\n          if (elements.length === 0) {\n            return false;\n          }\n          return true;\n        case 207:\n          return target.properties.length > 0;\n        default:\n          return true;\n      }\n    }\n    function createCallBinding(expression, recordTempVariable, languageVersion, cacheIdentifiers = false) {\n      const callee = skipOuterExpressions(expression, 15);\n      let thisArg;\n      let target;\n      if (isSuperProperty(callee)) {\n        thisArg = createThis();\n        target = callee;\n      } else if (isSuperKeyword(callee)) {\n        thisArg = createThis();\n        target = languageVersion !== void 0 && languageVersion < 2 ? setTextRange(createIdentifier(\"_super\"), callee) : callee;\n      } else if (getEmitFlags(callee) & 8192) {\n        thisArg = createVoidZero();\n        target = parenthesizerRules().parenthesizeLeftSideOfAccess(callee, false);\n      } else if (isPropertyAccessExpression(callee)) {\n        if (shouldBeCapturedInTempVariable(callee.expression, cacheIdentifiers)) {\n          thisArg = createTempVariable(recordTempVariable);\n          target = createPropertyAccessExpression(setTextRange(factory2.createAssignment(thisArg, callee.expression), callee.expression), callee.name);\n          setTextRange(target, callee);\n        } else {\n          thisArg = callee.expression;\n          target = callee;\n        }\n      } else if (isElementAccessExpression(callee)) {\n        if (shouldBeCapturedInTempVariable(callee.expression, cacheIdentifiers)) {\n          thisArg = createTempVariable(recordTempVariable);\n          target = createElementAccessExpression(setTextRange(factory2.createAssignment(thisArg, callee.expression), callee.expression), callee.argumentExpression);\n          setTextRange(target, callee);\n        } else {\n          thisArg = callee.expression;\n          target = callee;\n        }\n      } else {\n        thisArg = createVoidZero();\n        target = parenthesizerRules().parenthesizeLeftSideOfAccess(expression, false);\n      }\n      return { target, thisArg };\n    }\n    function createAssignmentTargetWrapper(paramName, expression) {\n      return createPropertyAccessExpression(createParenthesizedExpression(createObjectLiteralExpression([\n        createSetAccessorDeclaration(void 0, \"value\", [createParameterDeclaration(void 0, void 0, paramName, void 0, void 0, void 0)], createBlock([\n          createExpressionStatement(expression)\n        ]))\n      ])), \"value\");\n    }\n    function inlineExpressions(expressions) {\n      return expressions.length > 10 ? createCommaListExpression(expressions) : reduceLeft(expressions, factory2.createComma);\n    }\n    function getName(node, allowComments, allowSourceMaps, emitFlags = 0) {\n      const nodeName = getNameOfDeclaration(node);\n      if (nodeName && isIdentifier(nodeName) && !isGeneratedIdentifier(nodeName)) {\n        const name = setParent(setTextRange(cloneNode(nodeName), nodeName), nodeName.parent);\n        emitFlags |= getEmitFlags(nodeName);\n        if (!allowSourceMaps)\n          emitFlags |= 96;\n        if (!allowComments)\n          emitFlags |= 3072;\n        if (emitFlags)\n          setEmitFlags(name, emitFlags);\n        return name;\n      }\n      return getGeneratedNameForNode(node);\n    }\n    function getInternalName(node, allowComments, allowSourceMaps) {\n      return getName(node, allowComments, allowSourceMaps, 32768 | 65536);\n    }\n    function getLocalName(node, allowComments, allowSourceMaps) {\n      return getName(node, allowComments, allowSourceMaps, 32768);\n    }\n    function getExportName(node, allowComments, allowSourceMaps) {\n      return getName(node, allowComments, allowSourceMaps, 16384);\n    }\n    function getDeclarationName(node, allowComments, allowSourceMaps) {\n      return getName(node, allowComments, allowSourceMaps);\n    }\n    function getNamespaceMemberName(ns, name, allowComments, allowSourceMaps) {\n      const qualifiedName = createPropertyAccessExpression(ns, nodeIsSynthesized(name) ? name : cloneNode(name));\n      setTextRange(qualifiedName, name);\n      let emitFlags = 0;\n      if (!allowSourceMaps)\n        emitFlags |= 96;\n      if (!allowComments)\n        emitFlags |= 3072;\n      if (emitFlags)\n        setEmitFlags(qualifiedName, emitFlags);\n      return qualifiedName;\n    }\n    function getExternalModuleOrNamespaceExportName(ns, node, allowComments, allowSourceMaps) {\n      if (ns && hasSyntacticModifier(node, 1)) {\n        return getNamespaceMemberName(ns, getName(node), allowComments, allowSourceMaps);\n      }\n      return getExportName(node, allowComments, allowSourceMaps);\n    }\n    function copyPrologue(source, target, ensureUseStrict2, visitor) {\n      const offset = copyStandardPrologue(source, target, 0, ensureUseStrict2);\n      return copyCustomPrologue(source, target, offset, visitor);\n    }\n    function isUseStrictPrologue2(node) {\n      return isStringLiteral(node.expression) && node.expression.text === \"use strict\";\n    }\n    function createUseStrictPrologue() {\n      return startOnNewLine(createExpressionStatement(createStringLiteral(\"use strict\")));\n    }\n    function copyStandardPrologue(source, target, statementOffset = 0, ensureUseStrict2) {\n      Debug.assert(target.length === 0, \"Prologue directives should be at the first statement in the target statements array\");\n      let foundUseStrict = false;\n      const numStatements = source.length;\n      while (statementOffset < numStatements) {\n        const statement = source[statementOffset];\n        if (isPrologueDirective(statement)) {\n          if (isUseStrictPrologue2(statement)) {\n            foundUseStrict = true;\n          }\n          target.push(statement);\n        } else {\n          break;\n        }\n        statementOffset++;\n      }\n      if (ensureUseStrict2 && !foundUseStrict) {\n        target.push(createUseStrictPrologue());\n      }\n      return statementOffset;\n    }\n    function copyCustomPrologue(source, target, statementOffset, visitor, filter2 = returnTrue) {\n      const numStatements = source.length;\n      while (statementOffset !== void 0 && statementOffset < numStatements) {\n        const statement = source[statementOffset];\n        if (getEmitFlags(statement) & 2097152 && filter2(statement)) {\n          append(target, visitor ? visitNode(statement, visitor, isStatement) : statement);\n        } else {\n          break;\n        }\n        statementOffset++;\n      }\n      return statementOffset;\n    }\n    function ensureUseStrict(statements) {\n      const foundUseStrict = findUseStrictPrologue(statements);\n      if (!foundUseStrict) {\n        return setTextRange(createNodeArray([createUseStrictPrologue(), ...statements]), statements);\n      }\n      return statements;\n    }\n    function liftToBlock(nodes) {\n      Debug.assert(every(nodes, isStatementOrBlock), \"Cannot lift nodes to a Block.\");\n      return singleOrUndefined(nodes) || createBlock(nodes);\n    }\n    function findSpanEnd(array, test, start) {\n      let i = start;\n      while (i < array.length && test(array[i])) {\n        i++;\n      }\n      return i;\n    }\n    function mergeLexicalEnvironment(statements, declarations) {\n      if (!some(declarations)) {\n        return statements;\n      }\n      const leftStandardPrologueEnd = findSpanEnd(statements, isPrologueDirective, 0);\n      const leftHoistedFunctionsEnd = findSpanEnd(statements, isHoistedFunction, leftStandardPrologueEnd);\n      const leftHoistedVariablesEnd = findSpanEnd(statements, isHoistedVariableStatement, leftHoistedFunctionsEnd);\n      const rightStandardPrologueEnd = findSpanEnd(declarations, isPrologueDirective, 0);\n      const rightHoistedFunctionsEnd = findSpanEnd(declarations, isHoistedFunction, rightStandardPrologueEnd);\n      const rightHoistedVariablesEnd = findSpanEnd(declarations, isHoistedVariableStatement, rightHoistedFunctionsEnd);\n      const rightCustomPrologueEnd = findSpanEnd(declarations, isCustomPrologue, rightHoistedVariablesEnd);\n      Debug.assert(rightCustomPrologueEnd === declarations.length, \"Expected declarations to be valid standard or custom prologues\");\n      const left = isNodeArray(statements) ? statements.slice() : statements;\n      if (rightCustomPrologueEnd > rightHoistedVariablesEnd) {\n        left.splice(leftHoistedVariablesEnd, 0, ...declarations.slice(rightHoistedVariablesEnd, rightCustomPrologueEnd));\n      }\n      if (rightHoistedVariablesEnd > rightHoistedFunctionsEnd) {\n        left.splice(leftHoistedFunctionsEnd, 0, ...declarations.slice(rightHoistedFunctionsEnd, rightHoistedVariablesEnd));\n      }\n      if (rightHoistedFunctionsEnd > rightStandardPrologueEnd) {\n        left.splice(leftStandardPrologueEnd, 0, ...declarations.slice(rightStandardPrologueEnd, rightHoistedFunctionsEnd));\n      }\n      if (rightStandardPrologueEnd > 0) {\n        if (leftStandardPrologueEnd === 0) {\n          left.splice(0, 0, ...declarations.slice(0, rightStandardPrologueEnd));\n        } else {\n          const leftPrologues = /* @__PURE__ */ new Map();\n          for (let i = 0; i < leftStandardPrologueEnd; i++) {\n            const leftPrologue = statements[i];\n            leftPrologues.set(leftPrologue.expression.text, true);\n          }\n          for (let i = rightStandardPrologueEnd - 1; i >= 0; i--) {\n            const rightPrologue = declarations[i];\n            if (!leftPrologues.has(rightPrologue.expression.text)) {\n              left.unshift(rightPrologue);\n            }\n          }\n        }\n      }\n      if (isNodeArray(statements)) {\n        return setTextRange(createNodeArray(left, statements.hasTrailingComma), statements);\n      }\n      return statements;\n    }\n    function updateModifiers(node, modifiers) {\n      var _a2;\n      let modifierArray;\n      if (typeof modifiers === \"number\") {\n        modifierArray = createModifiersFromModifierFlags(modifiers);\n      } else {\n        modifierArray = modifiers;\n      }\n      return isTypeParameterDeclaration(node) ? updateTypeParameterDeclaration(node, modifierArray, node.name, node.constraint, node.default) : isParameter(node) ? updateParameterDeclaration(node, modifierArray, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer) : isConstructorTypeNode(node) ? updateConstructorTypeNode1(node, modifierArray, node.typeParameters, node.parameters, node.type) : isPropertySignature(node) ? updatePropertySignature(node, modifierArray, node.name, node.questionToken, node.type) : isPropertyDeclaration(node) ? updatePropertyDeclaration2(node, modifierArray, node.name, (_a2 = node.questionToken) != null ? _a2 : node.exclamationToken, node.type, node.initializer) : isMethodSignature(node) ? updateMethodSignature(node, modifierArray, node.name, node.questionToken, node.typeParameters, node.parameters, node.type) : isMethodDeclaration(node) ? updateMethodDeclaration(node, modifierArray, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body) : isConstructorDeclaration(node) ? updateConstructorDeclaration(node, modifierArray, node.parameters, node.body) : isGetAccessorDeclaration(node) ? updateGetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.type, node.body) : isSetAccessorDeclaration(node) ? updateSetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.body) : isIndexSignatureDeclaration(node) ? updateIndexSignature(node, modifierArray, node.parameters, node.type) : isFunctionExpression(node) ? updateFunctionExpression(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isArrowFunction(node) ? updateArrowFunction(node, modifierArray, node.typeParameters, node.parameters, node.type, node.equalsGreaterThanToken, node.body) : isClassExpression(node) ? updateClassExpression(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isVariableStatement(node) ? updateVariableStatement(node, modifierArray, node.declarationList) : isFunctionDeclaration(node) ? updateFunctionDeclaration(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isClassDeclaration(node) ? updateClassDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isInterfaceDeclaration(node) ? updateInterfaceDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isTypeAliasDeclaration(node) ? updateTypeAliasDeclaration(node, modifierArray, node.name, node.typeParameters, node.type) : isEnumDeclaration(node) ? updateEnumDeclaration(node, modifierArray, node.name, node.members) : isModuleDeclaration(node) ? updateModuleDeclaration(node, modifierArray, node.name, node.body) : isImportEqualsDeclaration(node) ? updateImportEqualsDeclaration(node, modifierArray, node.isTypeOnly, node.name, node.moduleReference) : isImportDeclaration(node) ? updateImportDeclaration(node, modifierArray, node.importClause, node.moduleSpecifier, node.assertClause) : isExportAssignment(node) ? updateExportAssignment(node, modifierArray, node.expression) : isExportDeclaration(node) ? updateExportDeclaration(node, modifierArray, node.isTypeOnly, node.exportClause, node.moduleSpecifier, node.assertClause) : Debug.assertNever(node);\n    }\n    function asNodeArray(array) {\n      return array ? createNodeArray(array) : void 0;\n    }\n    function asName(name) {\n      return typeof name === \"string\" ? createIdentifier(name) : name;\n    }\n    function asExpression(value) {\n      return typeof value === \"string\" ? createStringLiteral(value) : typeof value === \"number\" ? createNumericLiteral(value) : typeof value === \"boolean\" ? value ? createTrue() : createFalse() : value;\n    }\n    function asInitializer(node) {\n      return node && parenthesizerRules().parenthesizeExpressionForDisallowedComma(node);\n    }\n    function asToken(value) {\n      return typeof value === \"number\" ? createToken(value) : value;\n    }\n    function asEmbeddedStatement(statement) {\n      return statement && isNotEmittedStatement(statement) ? setTextRange(setOriginalNode(createEmptyStatement(), statement), statement) : statement;\n    }\n    function asVariableDeclaration(variableDeclaration) {\n      if (typeof variableDeclaration === \"string\" || variableDeclaration && !isVariableDeclaration(variableDeclaration)) {\n        return createVariableDeclaration(variableDeclaration, void 0, void 0, void 0);\n      }\n      return variableDeclaration;\n    }\n  }\n  function updateWithoutOriginal(updated, original) {\n    if (updated !== original) {\n      setTextRange(updated, original);\n    }\n    return updated;\n  }\n  function updateWithOriginal(updated, original) {\n    if (updated !== original) {\n      setOriginalNode(updated, original);\n      setTextRange(updated, original);\n    }\n    return updated;\n  }\n  function getDefaultTagNameForKind(kind) {\n    switch (kind) {\n      case 347:\n        return \"type\";\n      case 345:\n        return \"returns\";\n      case 346:\n        return \"this\";\n      case 343:\n        return \"enum\";\n      case 333:\n        return \"author\";\n      case 335:\n        return \"class\";\n      case 336:\n        return \"public\";\n      case 337:\n        return \"private\";\n      case 338:\n        return \"protected\";\n      case 339:\n        return \"readonly\";\n      case 340:\n        return \"override\";\n      case 348:\n        return \"template\";\n      case 349:\n        return \"typedef\";\n      case 344:\n        return \"param\";\n      case 351:\n        return \"prop\";\n      case 341:\n        return \"callback\";\n      case 342:\n        return \"overload\";\n      case 331:\n        return \"augments\";\n      case 332:\n        return \"implements\";\n      default:\n        return Debug.fail(`Unsupported kind: ${Debug.formatSyntaxKind(kind)}`);\n    }\n  }\n  function getCookedText(kind, rawText) {\n    if (!rawTextScanner) {\n      rawTextScanner = createScanner(99, false, 0);\n    }\n    switch (kind) {\n      case 14:\n        rawTextScanner.setText(\"`\" + rawText + \"`\");\n        break;\n      case 15:\n        rawTextScanner.setText(\"`\" + rawText + \"${\");\n        break;\n      case 16:\n        rawTextScanner.setText(\"}\" + rawText + \"${\");\n        break;\n      case 17:\n        rawTextScanner.setText(\"}\" + rawText + \"`\");\n        break;\n    }\n    let token = rawTextScanner.scan();\n    if (token === 19) {\n      token = rawTextScanner.reScanTemplateToken(false);\n    }\n    if (rawTextScanner.isUnterminated()) {\n      rawTextScanner.setText(void 0);\n      return invalidValueSentinel;\n    }\n    let tokenValue;\n    switch (token) {\n      case 14:\n      case 15:\n      case 16:\n      case 17:\n        tokenValue = rawTextScanner.getTokenValue();\n        break;\n    }\n    if (tokenValue === void 0 || rawTextScanner.scan() !== 1) {\n      rawTextScanner.setText(void 0);\n      return invalidValueSentinel;\n    }\n    rawTextScanner.setText(void 0);\n    return tokenValue;\n  }\n  function propagateNameFlags(node) {\n    return node && isIdentifier(node) ? propagateIdentifierNameFlags(node) : propagateChildFlags(node);\n  }\n  function propagateIdentifierNameFlags(node) {\n    return propagateChildFlags(node) & ~67108864;\n  }\n  function propagatePropertyNameFlagsOfChild(node, transformFlags) {\n    return transformFlags | node.transformFlags & 134234112;\n  }\n  function propagateChildFlags(child) {\n    if (!child)\n      return 0;\n    const childFlags = child.transformFlags & ~getTransformFlagsSubtreeExclusions(child.kind);\n    return isNamedDeclaration(child) && isPropertyName(child.name) ? propagatePropertyNameFlagsOfChild(child.name, childFlags) : childFlags;\n  }\n  function propagateChildrenFlags(children) {\n    return children ? children.transformFlags : 0;\n  }\n  function aggregateChildrenFlags(children) {\n    let subtreeFlags = 0;\n    for (const child of children) {\n      subtreeFlags |= propagateChildFlags(child);\n    }\n    children.transformFlags = subtreeFlags;\n  }\n  function getTransformFlagsSubtreeExclusions(kind) {\n    if (kind >= 179 && kind <= 202) {\n      return -2;\n    }\n    switch (kind) {\n      case 210:\n      case 211:\n      case 206:\n        return -2147450880;\n      case 264:\n        return -1941676032;\n      case 166:\n        return -2147483648;\n      case 216:\n        return -2072174592;\n      case 215:\n      case 259:\n        return -1937940480;\n      case 258:\n        return -2146893824;\n      case 260:\n      case 228:\n        return -2147344384;\n      case 173:\n        return -1937948672;\n      case 169:\n        return -2013249536;\n      case 171:\n      case 174:\n      case 175:\n        return -2005057536;\n      case 131:\n      case 148:\n      case 160:\n      case 144:\n      case 152:\n      case 149:\n      case 134:\n      case 153:\n      case 114:\n      case 165:\n      case 168:\n      case 170:\n      case 176:\n      case 177:\n      case 178:\n      case 261:\n      case 262:\n        return -2;\n      case 207:\n        return -2147278848;\n      case 295:\n        return -2147418112;\n      case 203:\n      case 204:\n        return -2147450880;\n      case 213:\n      case 235:\n      case 231:\n      case 356:\n      case 214:\n      case 106:\n        return -2147483648;\n      case 208:\n      case 209:\n        return -2147483648;\n      default:\n        return -2147483648;\n    }\n  }\n  function makeSynthetic(node) {\n    node.flags |= 8;\n    return node;\n  }\n  function createUnparsedSourceFile(textOrInputFiles, mapPathOrType, mapTextOrStripInternal) {\n    let stripInternal;\n    let bundleFileInfo;\n    let fileName;\n    let text;\n    let length2;\n    let sourceMapPath;\n    let sourceMapText;\n    let getText;\n    let getSourceMapText;\n    let oldFileOfCurrentEmit;\n    if (!isString(textOrInputFiles)) {\n      Debug.assert(mapPathOrType === \"js\" || mapPathOrType === \"dts\");\n      fileName = (mapPathOrType === \"js\" ? textOrInputFiles.javascriptPath : textOrInputFiles.declarationPath) || \"\";\n      sourceMapPath = mapPathOrType === \"js\" ? textOrInputFiles.javascriptMapPath : textOrInputFiles.declarationMapPath;\n      getText = () => mapPathOrType === \"js\" ? textOrInputFiles.javascriptText : textOrInputFiles.declarationText;\n      getSourceMapText = () => mapPathOrType === \"js\" ? textOrInputFiles.javascriptMapText : textOrInputFiles.declarationMapText;\n      length2 = () => getText().length;\n      if (textOrInputFiles.buildInfo && textOrInputFiles.buildInfo.bundle) {\n        Debug.assert(mapTextOrStripInternal === void 0 || typeof mapTextOrStripInternal === \"boolean\");\n        stripInternal = mapTextOrStripInternal;\n        bundleFileInfo = mapPathOrType === \"js\" ? textOrInputFiles.buildInfo.bundle.js : textOrInputFiles.buildInfo.bundle.dts;\n        oldFileOfCurrentEmit = textOrInputFiles.oldFileOfCurrentEmit;\n      }\n    } else {\n      fileName = \"\";\n      text = textOrInputFiles;\n      length2 = textOrInputFiles.length;\n      sourceMapPath = mapPathOrType;\n      sourceMapText = mapTextOrStripInternal;\n    }\n    const node = oldFileOfCurrentEmit ? parseOldFileOfCurrentEmit(Debug.checkDefined(bundleFileInfo)) : parseUnparsedSourceFile(bundleFileInfo, stripInternal, length2);\n    node.fileName = fileName;\n    node.sourceMapPath = sourceMapPath;\n    node.oldFileOfCurrentEmit = oldFileOfCurrentEmit;\n    if (getText && getSourceMapText) {\n      Object.defineProperty(node, \"text\", { get: getText });\n      Object.defineProperty(node, \"sourceMapText\", { get: getSourceMapText });\n    } else {\n      Debug.assert(!oldFileOfCurrentEmit);\n      node.text = text != null ? text : \"\";\n      node.sourceMapText = sourceMapText;\n    }\n    return node;\n  }\n  function parseUnparsedSourceFile(bundleFileInfo, stripInternal, length2) {\n    let prologues;\n    let helpers;\n    let referencedFiles;\n    let typeReferenceDirectives;\n    let libReferenceDirectives;\n    let prependChildren;\n    let texts;\n    let hasNoDefaultLib;\n    for (const section of bundleFileInfo ? bundleFileInfo.sections : emptyArray) {\n      switch (section.kind) {\n        case \"prologue\":\n          prologues = append(prologues, setTextRange(factory.createUnparsedPrologue(section.data), section));\n          break;\n        case \"emitHelpers\":\n          helpers = append(helpers, getAllUnscopedEmitHelpers().get(section.data));\n          break;\n        case \"no-default-lib\":\n          hasNoDefaultLib = true;\n          break;\n        case \"reference\":\n          referencedFiles = append(referencedFiles, { pos: -1, end: -1, fileName: section.data });\n          break;\n        case \"type\":\n          typeReferenceDirectives = append(typeReferenceDirectives, { pos: -1, end: -1, fileName: section.data });\n          break;\n        case \"type-import\":\n          typeReferenceDirectives = append(typeReferenceDirectives, { pos: -1, end: -1, fileName: section.data, resolutionMode: 99 });\n          break;\n        case \"type-require\":\n          typeReferenceDirectives = append(typeReferenceDirectives, { pos: -1, end: -1, fileName: section.data, resolutionMode: 1 });\n          break;\n        case \"lib\":\n          libReferenceDirectives = append(libReferenceDirectives, { pos: -1, end: -1, fileName: section.data });\n          break;\n        case \"prepend\":\n          let prependTexts;\n          for (const text of section.texts) {\n            if (!stripInternal || text.kind !== \"internal\") {\n              prependTexts = append(prependTexts, setTextRange(factory.createUnparsedTextLike(text.data, text.kind === \"internal\"), text));\n            }\n          }\n          prependChildren = addRange(prependChildren, prependTexts);\n          texts = append(texts, factory.createUnparsedPrepend(section.data, prependTexts != null ? prependTexts : emptyArray));\n          break;\n        case \"internal\":\n          if (stripInternal) {\n            if (!texts)\n              texts = [];\n            break;\n          }\n        case \"text\":\n          texts = append(texts, setTextRange(factory.createUnparsedTextLike(section.data, section.kind === \"internal\"), section));\n          break;\n        default:\n          Debug.assertNever(section);\n      }\n    }\n    if (!texts) {\n      const textNode = factory.createUnparsedTextLike(void 0, false);\n      setTextRangePosWidth(textNode, 0, typeof length2 === \"function\" ? length2() : length2);\n      texts = [textNode];\n    }\n    const node = parseNodeFactory.createUnparsedSource(prologues != null ? prologues : emptyArray, void 0, texts);\n    setEachParent(prologues, node);\n    setEachParent(texts, node);\n    setEachParent(prependChildren, node);\n    node.hasNoDefaultLib = hasNoDefaultLib;\n    node.helpers = helpers;\n    node.referencedFiles = referencedFiles || emptyArray;\n    node.typeReferenceDirectives = typeReferenceDirectives;\n    node.libReferenceDirectives = libReferenceDirectives || emptyArray;\n    return node;\n  }\n  function parseOldFileOfCurrentEmit(bundleFileInfo) {\n    let texts;\n    let syntheticReferences;\n    for (const section of bundleFileInfo.sections) {\n      switch (section.kind) {\n        case \"internal\":\n        case \"text\":\n          texts = append(texts, setTextRange(factory.createUnparsedTextLike(section.data, section.kind === \"internal\"), section));\n          break;\n        case \"no-default-lib\":\n        case \"reference\":\n        case \"type\":\n        case \"type-import\":\n        case \"type-require\":\n        case \"lib\":\n          syntheticReferences = append(syntheticReferences, setTextRange(factory.createUnparsedSyntheticReference(section), section));\n          break;\n        case \"prologue\":\n        case \"emitHelpers\":\n        case \"prepend\":\n          break;\n        default:\n          Debug.assertNever(section);\n      }\n    }\n    const node = factory.createUnparsedSource(emptyArray, syntheticReferences, texts != null ? texts : emptyArray);\n    setEachParent(syntheticReferences, node);\n    setEachParent(texts, node);\n    node.helpers = map(bundleFileInfo.sources && bundleFileInfo.sources.helpers, (name) => getAllUnscopedEmitHelpers().get(name));\n    return node;\n  }\n  function createInputFiles(javascriptTextOrReadFileText, declarationTextOrJavascriptPath, javascriptMapPath, javascriptMapTextOrDeclarationPath, declarationMapPath, declarationMapTextOrBuildInfoPath) {\n    return !isString(javascriptTextOrReadFileText) ? createInputFilesWithFilePaths(javascriptTextOrReadFileText, declarationTextOrJavascriptPath, javascriptMapPath, javascriptMapTextOrDeclarationPath, declarationMapPath, declarationMapTextOrBuildInfoPath) : createInputFilesWithFileTexts(void 0, javascriptTextOrReadFileText, javascriptMapPath, javascriptMapTextOrDeclarationPath, void 0, declarationTextOrJavascriptPath, declarationMapPath, declarationMapTextOrBuildInfoPath);\n  }\n  function createInputFilesWithFilePaths(readFileText, javascriptPath, javascriptMapPath, declarationPath, declarationMapPath, buildInfoPath, host, options) {\n    const node = parseNodeFactory.createInputFiles();\n    node.javascriptPath = javascriptPath;\n    node.javascriptMapPath = javascriptMapPath;\n    node.declarationPath = declarationPath;\n    node.declarationMapPath = declarationMapPath;\n    node.buildInfoPath = buildInfoPath;\n    const cache = /* @__PURE__ */ new Map();\n    const textGetter = (path) => {\n      if (path === void 0)\n        return void 0;\n      let value = cache.get(path);\n      if (value === void 0) {\n        value = readFileText(path);\n        cache.set(path, value !== void 0 ? value : false);\n      }\n      return value !== false ? value : void 0;\n    };\n    const definedTextGetter = (path) => {\n      const result = textGetter(path);\n      return result !== void 0 ? result : `/* Input file ${path} was missing */\\r\n`;\n    };\n    let buildInfo;\n    const getAndCacheBuildInfo = () => {\n      var _a2, _b;\n      if (buildInfo === void 0 && buildInfoPath) {\n        if (host == null ? void 0 : host.getBuildInfo) {\n          buildInfo = (_a2 = host.getBuildInfo(buildInfoPath, options.configFilePath)) != null ? _a2 : false;\n        } else {\n          const result = textGetter(buildInfoPath);\n          buildInfo = result !== void 0 ? (_b = getBuildInfo(buildInfoPath, result)) != null ? _b : false : false;\n        }\n      }\n      return buildInfo || void 0;\n    };\n    Object.defineProperties(node, {\n      javascriptText: { get: () => definedTextGetter(javascriptPath) },\n      javascriptMapText: { get: () => textGetter(javascriptMapPath) },\n      declarationText: { get: () => definedTextGetter(Debug.checkDefined(declarationPath)) },\n      declarationMapText: { get: () => textGetter(declarationMapPath) },\n      buildInfo: { get: getAndCacheBuildInfo }\n    });\n    return node;\n  }\n  function createInputFilesWithFileTexts(javascriptPath, javascriptText, javascriptMapPath, javascriptMapText, declarationPath, declarationText, declarationMapPath, declarationMapText, buildInfoPath, buildInfo, oldFileOfCurrentEmit) {\n    const node = parseNodeFactory.createInputFiles();\n    node.javascriptPath = javascriptPath;\n    node.javascriptText = javascriptText;\n    node.javascriptMapPath = javascriptMapPath;\n    node.javascriptMapText = javascriptMapText;\n    node.declarationPath = declarationPath;\n    node.declarationText = declarationText;\n    node.declarationMapPath = declarationMapPath;\n    node.declarationMapText = declarationMapText;\n    node.buildInfoPath = buildInfoPath;\n    node.buildInfo = buildInfo;\n    node.oldFileOfCurrentEmit = oldFileOfCurrentEmit;\n    return node;\n  }\n  function createSourceMapSource(fileName, text, skipTrivia2) {\n    return new (SourceMapSource2 || (SourceMapSource2 = objectAllocator.getSourceMapSourceConstructor()))(fileName, text, skipTrivia2);\n  }\n  function setOriginalNode(node, original) {\n    node.original = original;\n    if (original) {\n      const emitNode = original.emitNode;\n      if (emitNode)\n        node.emitNode = mergeEmitNode(emitNode, node.emitNode);\n    }\n    return node;\n  }\n  function mergeEmitNode(sourceEmitNode, destEmitNode) {\n    const {\n      flags,\n      internalFlags,\n      leadingComments,\n      trailingComments,\n      commentRange,\n      sourceMapRange,\n      tokenSourceMapRanges,\n      constantValue,\n      helpers,\n      startsOnNewLine,\n      snippetElement\n    } = sourceEmitNode;\n    if (!destEmitNode)\n      destEmitNode = {};\n    if (leadingComments)\n      destEmitNode.leadingComments = addRange(leadingComments.slice(), destEmitNode.leadingComments);\n    if (trailingComments)\n      destEmitNode.trailingComments = addRange(trailingComments.slice(), destEmitNode.trailingComments);\n    if (flags)\n      destEmitNode.flags = flags;\n    if (internalFlags)\n      destEmitNode.internalFlags = internalFlags & ~8;\n    if (commentRange)\n      destEmitNode.commentRange = commentRange;\n    if (sourceMapRange)\n      destEmitNode.sourceMapRange = sourceMapRange;\n    if (tokenSourceMapRanges)\n      destEmitNode.tokenSourceMapRanges = mergeTokenSourceMapRanges(tokenSourceMapRanges, destEmitNode.tokenSourceMapRanges);\n    if (constantValue !== void 0)\n      destEmitNode.constantValue = constantValue;\n    if (helpers) {\n      for (const helper of helpers) {\n        destEmitNode.helpers = appendIfUnique(destEmitNode.helpers, helper);\n      }\n    }\n    if (startsOnNewLine !== void 0)\n      destEmitNode.startsOnNewLine = startsOnNewLine;\n    if (snippetElement !== void 0)\n      destEmitNode.snippetElement = snippetElement;\n    return destEmitNode;\n  }\n  function mergeTokenSourceMapRanges(sourceRanges, destRanges) {\n    if (!destRanges)\n      destRanges = [];\n    for (const key in sourceRanges) {\n      destRanges[key] = sourceRanges[key];\n    }\n    return destRanges;\n  }\n  var nextAutoGenerateId, NodeFactoryFlags, nodeFactoryPatchers, rawTextScanner, invalidValueSentinel, baseFactory, syntheticFactory, factory, SourceMapSource2;\n  var init_nodeFactory = __esm({\n    \"src/compiler/factory/nodeFactory.ts\"() {\n      \"use strict\";\n      init_ts2();\n      nextAutoGenerateId = 0;\n      NodeFactoryFlags = /* @__PURE__ */ ((NodeFactoryFlags2) => {\n        NodeFactoryFlags2[NodeFactoryFlags2[\"None\"] = 0] = \"None\";\n        NodeFactoryFlags2[NodeFactoryFlags2[\"NoParenthesizerRules\"] = 1] = \"NoParenthesizerRules\";\n        NodeFactoryFlags2[NodeFactoryFlags2[\"NoNodeConverters\"] = 2] = \"NoNodeConverters\";\n        NodeFactoryFlags2[NodeFactoryFlags2[\"NoIndentationOnFreshPropertyAccess\"] = 4] = \"NoIndentationOnFreshPropertyAccess\";\n        NodeFactoryFlags2[NodeFactoryFlags2[\"NoOriginalNode\"] = 8] = \"NoOriginalNode\";\n        return NodeFactoryFlags2;\n      })(NodeFactoryFlags || {});\n      nodeFactoryPatchers = [];\n      invalidValueSentinel = {};\n      baseFactory = createBaseNodeFactory();\n      syntheticFactory = {\n        createBaseSourceFileNode: (kind) => makeSynthetic(baseFactory.createBaseSourceFileNode(kind)),\n        createBaseIdentifierNode: (kind) => makeSynthetic(baseFactory.createBaseIdentifierNode(kind)),\n        createBasePrivateIdentifierNode: (kind) => makeSynthetic(baseFactory.createBasePrivateIdentifierNode(kind)),\n        createBaseTokenNode: (kind) => makeSynthetic(baseFactory.createBaseTokenNode(kind)),\n        createBaseNode: (kind) => makeSynthetic(baseFactory.createBaseNode(kind))\n      };\n      factory = createNodeFactory(4, syntheticFactory);\n    }\n  });\n  function getOrCreateEmitNode(node) {\n    var _a2;\n    if (!node.emitNode) {\n      if (isParseTreeNode(node)) {\n        if (node.kind === 308) {\n          return node.emitNode = { annotatedNodes: [node] };\n        }\n        const sourceFile = (_a2 = getSourceFileOfNode(getParseTreeNode(getSourceFileOfNode(node)))) != null ? _a2 : Debug.fail(\"Could not determine parsed source file.\");\n        getOrCreateEmitNode(sourceFile).annotatedNodes.push(node);\n      }\n      node.emitNode = {};\n    } else {\n      Debug.assert(!(node.emitNode.internalFlags & 8), \"Invalid attempt to mutate an immutable node.\");\n    }\n    return node.emitNode;\n  }\n  function disposeEmitNodes(sourceFile) {\n    var _a2, _b;\n    const annotatedNodes = (_b = (_a2 = getSourceFileOfNode(getParseTreeNode(sourceFile))) == null ? void 0 : _a2.emitNode) == null ? void 0 : _b.annotatedNodes;\n    if (annotatedNodes) {\n      for (const node of annotatedNodes) {\n        node.emitNode = void 0;\n      }\n    }\n  }\n  function removeAllComments(node) {\n    const emitNode = getOrCreateEmitNode(node);\n    emitNode.flags |= 3072;\n    emitNode.leadingComments = void 0;\n    emitNode.trailingComments = void 0;\n    return node;\n  }\n  function setEmitFlags(node, emitFlags) {\n    getOrCreateEmitNode(node).flags = emitFlags;\n    return node;\n  }\n  function addEmitFlags(node, emitFlags) {\n    const emitNode = getOrCreateEmitNode(node);\n    emitNode.flags = emitNode.flags | emitFlags;\n    return node;\n  }\n  function setInternalEmitFlags(node, emitFlags) {\n    getOrCreateEmitNode(node).internalFlags = emitFlags;\n    return node;\n  }\n  function addInternalEmitFlags(node, emitFlags) {\n    const emitNode = getOrCreateEmitNode(node);\n    emitNode.internalFlags = emitNode.internalFlags | emitFlags;\n    return node;\n  }\n  function getSourceMapRange(node) {\n    var _a2, _b;\n    return (_b = (_a2 = node.emitNode) == null ? void 0 : _a2.sourceMapRange) != null ? _b : node;\n  }\n  function setSourceMapRange(node, range) {\n    getOrCreateEmitNode(node).sourceMapRange = range;\n    return node;\n  }\n  function getTokenSourceMapRange(node, token) {\n    var _a2, _b;\n    return (_b = (_a2 = node.emitNode) == null ? void 0 : _a2.tokenSourceMapRanges) == null ? void 0 : _b[token];\n  }\n  function setTokenSourceMapRange(node, token, range) {\n    var _a2;\n    const emitNode = getOrCreateEmitNode(node);\n    const tokenSourceMapRanges = (_a2 = emitNode.tokenSourceMapRanges) != null ? _a2 : emitNode.tokenSourceMapRanges = [];\n    tokenSourceMapRanges[token] = range;\n    return node;\n  }\n  function getStartsOnNewLine(node) {\n    var _a2;\n    return (_a2 = node.emitNode) == null ? void 0 : _a2.startsOnNewLine;\n  }\n  function setStartsOnNewLine(node, newLine) {\n    getOrCreateEmitNode(node).startsOnNewLine = newLine;\n    return node;\n  }\n  function getCommentRange(node) {\n    var _a2, _b;\n    return (_b = (_a2 = node.emitNode) == null ? void 0 : _a2.commentRange) != null ? _b : node;\n  }\n  function setCommentRange(node, range) {\n    getOrCreateEmitNode(node).commentRange = range;\n    return node;\n  }\n  function getSyntheticLeadingComments(node) {\n    var _a2;\n    return (_a2 = node.emitNode) == null ? void 0 : _a2.leadingComments;\n  }\n  function setSyntheticLeadingComments(node, comments) {\n    getOrCreateEmitNode(node).leadingComments = comments;\n    return node;\n  }\n  function addSyntheticLeadingComment(node, kind, text, hasTrailingNewLine) {\n    return setSyntheticLeadingComments(node, append(getSyntheticLeadingComments(node), { kind, pos: -1, end: -1, hasTrailingNewLine, text }));\n  }\n  function getSyntheticTrailingComments(node) {\n    var _a2;\n    return (_a2 = node.emitNode) == null ? void 0 : _a2.trailingComments;\n  }\n  function setSyntheticTrailingComments(node, comments) {\n    getOrCreateEmitNode(node).trailingComments = comments;\n    return node;\n  }\n  function addSyntheticTrailingComment(node, kind, text, hasTrailingNewLine) {\n    return setSyntheticTrailingComments(node, append(getSyntheticTrailingComments(node), { kind, pos: -1, end: -1, hasTrailingNewLine, text }));\n  }\n  function moveSyntheticComments(node, original) {\n    setSyntheticLeadingComments(node, getSyntheticLeadingComments(original));\n    setSyntheticTrailingComments(node, getSyntheticTrailingComments(original));\n    const emit = getOrCreateEmitNode(original);\n    emit.leadingComments = void 0;\n    emit.trailingComments = void 0;\n    return node;\n  }\n  function getConstantValue(node) {\n    var _a2;\n    return (_a2 = node.emitNode) == null ? void 0 : _a2.constantValue;\n  }\n  function setConstantValue(node, value) {\n    const emitNode = getOrCreateEmitNode(node);\n    emitNode.constantValue = value;\n    return node;\n  }\n  function addEmitHelper(node, helper) {\n    const emitNode = getOrCreateEmitNode(node);\n    emitNode.helpers = append(emitNode.helpers, helper);\n    return node;\n  }\n  function addEmitHelpers(node, helpers) {\n    if (some(helpers)) {\n      const emitNode = getOrCreateEmitNode(node);\n      for (const helper of helpers) {\n        emitNode.helpers = appendIfUnique(emitNode.helpers, helper);\n      }\n    }\n    return node;\n  }\n  function removeEmitHelper(node, helper) {\n    var _a2;\n    const helpers = (_a2 = node.emitNode) == null ? void 0 : _a2.helpers;\n    if (helpers) {\n      return orderedRemoveItem(helpers, helper);\n    }\n    return false;\n  }\n  function getEmitHelpers(node) {\n    var _a2;\n    return (_a2 = node.emitNode) == null ? void 0 : _a2.helpers;\n  }\n  function moveEmitHelpers(source, target, predicate) {\n    const sourceEmitNode = source.emitNode;\n    const sourceEmitHelpers = sourceEmitNode && sourceEmitNode.helpers;\n    if (!some(sourceEmitHelpers))\n      return;\n    const targetEmitNode = getOrCreateEmitNode(target);\n    let helpersRemoved = 0;\n    for (let i = 0; i < sourceEmitHelpers.length; i++) {\n      const helper = sourceEmitHelpers[i];\n      if (predicate(helper)) {\n        helpersRemoved++;\n        targetEmitNode.helpers = appendIfUnique(targetEmitNode.helpers, helper);\n      } else if (helpersRemoved > 0) {\n        sourceEmitHelpers[i - helpersRemoved] = helper;\n      }\n    }\n    if (helpersRemoved > 0) {\n      sourceEmitHelpers.length -= helpersRemoved;\n    }\n  }\n  function getSnippetElement(node) {\n    var _a2;\n    return (_a2 = node.emitNode) == null ? void 0 : _a2.snippetElement;\n  }\n  function setSnippetElement(node, snippet) {\n    const emitNode = getOrCreateEmitNode(node);\n    emitNode.snippetElement = snippet;\n    return node;\n  }\n  function ignoreSourceNewlines(node) {\n    getOrCreateEmitNode(node).internalFlags |= 4;\n    return node;\n  }\n  function setTypeNode(node, type) {\n    const emitNode = getOrCreateEmitNode(node);\n    emitNode.typeNode = type;\n    return node;\n  }\n  function getTypeNode(node) {\n    var _a2;\n    return (_a2 = node.emitNode) == null ? void 0 : _a2.typeNode;\n  }\n  function setIdentifierTypeArguments(node, typeArguments) {\n    getOrCreateEmitNode(node).identifierTypeArguments = typeArguments;\n    return node;\n  }\n  function getIdentifierTypeArguments(node) {\n    var _a2;\n    return (_a2 = node.emitNode) == null ? void 0 : _a2.identifierTypeArguments;\n  }\n  function setIdentifierAutoGenerate(node, autoGenerate) {\n    getOrCreateEmitNode(node).autoGenerate = autoGenerate;\n    return node;\n  }\n  function getIdentifierAutoGenerate(node) {\n    var _a2;\n    return (_a2 = node.emitNode) == null ? void 0 : _a2.autoGenerate;\n  }\n  function setIdentifierGeneratedImportReference(node, value) {\n    getOrCreateEmitNode(node).generatedImportReference = value;\n    return node;\n  }\n  function getIdentifierGeneratedImportReference(node) {\n    var _a2;\n    return (_a2 = node.emitNode) == null ? void 0 : _a2.generatedImportReference;\n  }\n  var init_emitNode = __esm({\n    \"src/compiler/factory/emitNode.ts\"() {\n      \"use strict\";\n      init_ts2();\n    }\n  });\n  function createEmitHelperFactory(context) {\n    const factory2 = context.factory;\n    const immutableTrue = memoize(() => setInternalEmitFlags(factory2.createTrue(), 8));\n    const immutableFalse = memoize(() => setInternalEmitFlags(factory2.createFalse(), 8));\n    return {\n      getUnscopedHelperName,\n      createDecorateHelper,\n      createMetadataHelper,\n      createParamHelper,\n      createESDecorateHelper,\n      createRunInitializersHelper,\n      createAssignHelper,\n      createAwaitHelper,\n      createAsyncGeneratorHelper,\n      createAsyncDelegatorHelper,\n      createAsyncValuesHelper,\n      createRestHelper,\n      createAwaiterHelper,\n      createExtendsHelper,\n      createTemplateObjectHelper,\n      createSpreadArrayHelper,\n      createPropKeyHelper,\n      createSetFunctionNameHelper,\n      createValuesHelper,\n      createReadHelper,\n      createGeneratorHelper,\n      createCreateBindingHelper,\n      createImportStarHelper,\n      createImportStarCallbackHelper,\n      createImportDefaultHelper,\n      createExportStarHelper,\n      createClassPrivateFieldGetHelper,\n      createClassPrivateFieldSetHelper,\n      createClassPrivateFieldInHelper\n    };\n    function getUnscopedHelperName(name) {\n      return setEmitFlags(factory2.createIdentifier(name), 8192 | 4);\n    }\n    function createDecorateHelper(decoratorExpressions, target, memberName, descriptor) {\n      context.requestEmitHelper(decorateHelper);\n      const argumentsArray = [];\n      argumentsArray.push(factory2.createArrayLiteralExpression(decoratorExpressions, true));\n      argumentsArray.push(target);\n      if (memberName) {\n        argumentsArray.push(memberName);\n        if (descriptor) {\n          argumentsArray.push(descriptor);\n        }\n      }\n      return factory2.createCallExpression(getUnscopedHelperName(\"__decorate\"), void 0, argumentsArray);\n    }\n    function createMetadataHelper(metadataKey, metadataValue) {\n      context.requestEmitHelper(metadataHelper);\n      return factory2.createCallExpression(getUnscopedHelperName(\"__metadata\"), void 0, [\n        factory2.createStringLiteral(metadataKey),\n        metadataValue\n      ]);\n    }\n    function createParamHelper(expression, parameterOffset, location) {\n      context.requestEmitHelper(paramHelper);\n      return setTextRange(factory2.createCallExpression(getUnscopedHelperName(\"__param\"), void 0, [\n        factory2.createNumericLiteral(parameterOffset + \"\"),\n        expression\n      ]), location);\n    }\n    function createESDecorateClassContextObject(contextIn) {\n      return factory2.createObjectLiteralExpression([\n        factory2.createPropertyAssignment(factory2.createIdentifier(\"kind\"), factory2.createStringLiteral(\"class\")),\n        factory2.createPropertyAssignment(factory2.createIdentifier(\"name\"), contextIn.name)\n      ]);\n    }\n    function createESDecorateClassElementAccessGetMethod(elementName) {\n      const accessor = elementName.computed ? factory2.createElementAccessExpression(factory2.createIdentifier(\"obj\"), elementName.name) : factory2.createPropertyAccessExpression(factory2.createIdentifier(\"obj\"), elementName.name);\n      return factory2.createPropertyAssignment(\"get\", factory2.createArrowFunction(void 0, void 0, [factory2.createParameterDeclaration(void 0, void 0, factory2.createIdentifier(\"obj\"))], void 0, void 0, accessor));\n    }\n    function createESDecorateClassElementAccessSetMethod(elementName) {\n      const accessor = elementName.computed ? factory2.createElementAccessExpression(factory2.createIdentifier(\"obj\"), elementName.name) : factory2.createPropertyAccessExpression(factory2.createIdentifier(\"obj\"), elementName.name);\n      return factory2.createPropertyAssignment(\"set\", factory2.createArrowFunction(void 0, void 0, [\n        factory2.createParameterDeclaration(void 0, void 0, factory2.createIdentifier(\"obj\")),\n        factory2.createParameterDeclaration(void 0, void 0, factory2.createIdentifier(\"value\"))\n      ], void 0, void 0, factory2.createBlock([\n        factory2.createExpressionStatement(factory2.createAssignment(accessor, factory2.createIdentifier(\"value\")))\n      ])));\n    }\n    function createESDecorateClassElementAccessHasMethod(elementName) {\n      const propertyName = elementName.computed ? elementName.name : isIdentifier(elementName.name) ? factory2.createStringLiteralFromNode(elementName.name) : elementName.name;\n      return factory2.createPropertyAssignment(\"has\", factory2.createArrowFunction(void 0, void 0, [factory2.createParameterDeclaration(void 0, void 0, factory2.createIdentifier(\"obj\"))], void 0, void 0, factory2.createBinaryExpression(propertyName, 101, factory2.createIdentifier(\"obj\"))));\n    }\n    function createESDecorateClassElementAccessObject(name, access) {\n      const properties = [];\n      properties.push(createESDecorateClassElementAccessHasMethod(name));\n      if (access.get)\n        properties.push(createESDecorateClassElementAccessGetMethod(name));\n      if (access.set)\n        properties.push(createESDecorateClassElementAccessSetMethod(name));\n      return factory2.createObjectLiteralExpression(properties);\n    }\n    function createESDecorateClassElementContextObject(contextIn) {\n      return factory2.createObjectLiteralExpression([\n        factory2.createPropertyAssignment(factory2.createIdentifier(\"kind\"), factory2.createStringLiteral(contextIn.kind)),\n        factory2.createPropertyAssignment(factory2.createIdentifier(\"name\"), contextIn.name.computed ? contextIn.name.name : factory2.createStringLiteralFromNode(contextIn.name.name)),\n        factory2.createPropertyAssignment(factory2.createIdentifier(\"static\"), contextIn.static ? factory2.createTrue() : factory2.createFalse()),\n        factory2.createPropertyAssignment(factory2.createIdentifier(\"private\"), contextIn.private ? factory2.createTrue() : factory2.createFalse()),\n        factory2.createPropertyAssignment(factory2.createIdentifier(\"access\"), createESDecorateClassElementAccessObject(contextIn.name, contextIn.access))\n      ]);\n    }\n    function createESDecorateContextObject(contextIn) {\n      return contextIn.kind === \"class\" ? createESDecorateClassContextObject(contextIn) : createESDecorateClassElementContextObject(contextIn);\n    }\n    function createESDecorateHelper(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n      context.requestEmitHelper(esDecorateHelper);\n      return factory2.createCallExpression(getUnscopedHelperName(\"__esDecorate\"), void 0, [\n        ctor != null ? ctor : factory2.createNull(),\n        descriptorIn != null ? descriptorIn : factory2.createNull(),\n        decorators,\n        createESDecorateContextObject(contextIn),\n        initializers,\n        extraInitializers\n      ]);\n    }\n    function createRunInitializersHelper(thisArg, initializers, value) {\n      context.requestEmitHelper(runInitializersHelper);\n      return factory2.createCallExpression(getUnscopedHelperName(\"__runInitializers\"), void 0, value ? [thisArg, initializers, value] : [thisArg, initializers]);\n    }\n    function createAssignHelper(attributesSegments) {\n      if (getEmitScriptTarget(context.getCompilerOptions()) >= 2) {\n        return factory2.createCallExpression(factory2.createPropertyAccessExpression(factory2.createIdentifier(\"Object\"), \"assign\"), void 0, attributesSegments);\n      }\n      context.requestEmitHelper(assignHelper);\n      return factory2.createCallExpression(getUnscopedHelperName(\"__assign\"), void 0, attributesSegments);\n    }\n    function createAwaitHelper(expression) {\n      context.requestEmitHelper(awaitHelper);\n      return factory2.createCallExpression(getUnscopedHelperName(\"__await\"), void 0, [expression]);\n    }\n    function createAsyncGeneratorHelper(generatorFunc, hasLexicalThis) {\n      context.requestEmitHelper(awaitHelper);\n      context.requestEmitHelper(asyncGeneratorHelper);\n      (generatorFunc.emitNode || (generatorFunc.emitNode = {})).flags |= 524288 | 1048576;\n      return factory2.createCallExpression(getUnscopedHelperName(\"__asyncGenerator\"), void 0, [\n        hasLexicalThis ? factory2.createThis() : factory2.createVoidZero(),\n        factory2.createIdentifier(\"arguments\"),\n        generatorFunc\n      ]);\n    }\n    function createAsyncDelegatorHelper(expression) {\n      context.requestEmitHelper(awaitHelper);\n      context.requestEmitHelper(asyncDelegator);\n      return factory2.createCallExpression(getUnscopedHelperName(\"__asyncDelegator\"), void 0, [expression]);\n    }\n    function createAsyncValuesHelper(expression) {\n      context.requestEmitHelper(asyncValues);\n      return factory2.createCallExpression(getUnscopedHelperName(\"__asyncValues\"), void 0, [expression]);\n    }\n    function createRestHelper(value, elements, computedTempVariables, location) {\n      context.requestEmitHelper(restHelper);\n      const propertyNames = [];\n      let computedTempVariableOffset = 0;\n      for (let i = 0; i < elements.length - 1; i++) {\n        const propertyName = getPropertyNameOfBindingOrAssignmentElement(elements[i]);\n        if (propertyName) {\n          if (isComputedPropertyName(propertyName)) {\n            Debug.assertIsDefined(computedTempVariables, \"Encountered computed property name but 'computedTempVariables' argument was not provided.\");\n            const temp = computedTempVariables[computedTempVariableOffset];\n            computedTempVariableOffset++;\n            propertyNames.push(factory2.createConditionalExpression(factory2.createTypeCheck(temp, \"symbol\"), void 0, temp, void 0, factory2.createAdd(temp, factory2.createStringLiteral(\"\"))));\n          } else {\n            propertyNames.push(factory2.createStringLiteralFromNode(propertyName));\n          }\n        }\n      }\n      return factory2.createCallExpression(getUnscopedHelperName(\"__rest\"), void 0, [\n        value,\n        setTextRange(factory2.createArrayLiteralExpression(propertyNames), location)\n      ]);\n    }\n    function createAwaiterHelper(hasLexicalThis, hasLexicalArguments, promiseConstructor, body) {\n      context.requestEmitHelper(awaiterHelper);\n      const generatorFunc = factory2.createFunctionExpression(void 0, factory2.createToken(41), void 0, void 0, [], void 0, body);\n      (generatorFunc.emitNode || (generatorFunc.emitNode = {})).flags |= 524288 | 1048576;\n      return factory2.createCallExpression(getUnscopedHelperName(\"__awaiter\"), void 0, [\n        hasLexicalThis ? factory2.createThis() : factory2.createVoidZero(),\n        hasLexicalArguments ? factory2.createIdentifier(\"arguments\") : factory2.createVoidZero(),\n        promiseConstructor ? createExpressionFromEntityName(factory2, promiseConstructor) : factory2.createVoidZero(),\n        generatorFunc\n      ]);\n    }\n    function createExtendsHelper(name) {\n      context.requestEmitHelper(extendsHelper);\n      return factory2.createCallExpression(getUnscopedHelperName(\"__extends\"), void 0, [name, factory2.createUniqueName(\"_super\", 16 | 32)]);\n    }\n    function createTemplateObjectHelper(cooked, raw) {\n      context.requestEmitHelper(templateObjectHelper);\n      return factory2.createCallExpression(getUnscopedHelperName(\"__makeTemplateObject\"), void 0, [cooked, raw]);\n    }\n    function createSpreadArrayHelper(to, from, packFrom) {\n      context.requestEmitHelper(spreadArrayHelper);\n      return factory2.createCallExpression(getUnscopedHelperName(\"__spreadArray\"), void 0, [to, from, packFrom ? immutableTrue() : immutableFalse()]);\n    }\n    function createPropKeyHelper(expr) {\n      context.requestEmitHelper(propKeyHelper);\n      return factory2.createCallExpression(getUnscopedHelperName(\"__propKey\"), void 0, [expr]);\n    }\n    function createSetFunctionNameHelper(f, name, prefix) {\n      context.requestEmitHelper(setFunctionNameHelper);\n      return context.factory.createCallExpression(getUnscopedHelperName(\"__setFunctionName\"), void 0, prefix ? [f, name, context.factory.createStringLiteral(prefix)] : [f, name]);\n    }\n    function createValuesHelper(expression) {\n      context.requestEmitHelper(valuesHelper);\n      return factory2.createCallExpression(getUnscopedHelperName(\"__values\"), void 0, [expression]);\n    }\n    function createReadHelper(iteratorRecord, count) {\n      context.requestEmitHelper(readHelper);\n      return factory2.createCallExpression(getUnscopedHelperName(\"__read\"), void 0, count !== void 0 ? [iteratorRecord, factory2.createNumericLiteral(count + \"\")] : [iteratorRecord]);\n    }\n    function createGeneratorHelper(body) {\n      context.requestEmitHelper(generatorHelper);\n      return factory2.createCallExpression(getUnscopedHelperName(\"__generator\"), void 0, [factory2.createThis(), body]);\n    }\n    function createCreateBindingHelper(module2, inputName, outputName) {\n      context.requestEmitHelper(createBindingHelper);\n      return factory2.createCallExpression(getUnscopedHelperName(\"__createBinding\"), void 0, [factory2.createIdentifier(\"exports\"), module2, inputName, ...outputName ? [outputName] : []]);\n    }\n    function createImportStarHelper(expression) {\n      context.requestEmitHelper(importStarHelper);\n      return factory2.createCallExpression(getUnscopedHelperName(\"__importStar\"), void 0, [expression]);\n    }\n    function createImportStarCallbackHelper() {\n      context.requestEmitHelper(importStarHelper);\n      return getUnscopedHelperName(\"__importStar\");\n    }\n    function createImportDefaultHelper(expression) {\n      context.requestEmitHelper(importDefaultHelper);\n      return factory2.createCallExpression(getUnscopedHelperName(\"__importDefault\"), void 0, [expression]);\n    }\n    function createExportStarHelper(moduleExpression, exportsExpression = factory2.createIdentifier(\"exports\")) {\n      context.requestEmitHelper(exportStarHelper);\n      context.requestEmitHelper(createBindingHelper);\n      return factory2.createCallExpression(getUnscopedHelperName(\"__exportStar\"), void 0, [moduleExpression, exportsExpression]);\n    }\n    function createClassPrivateFieldGetHelper(receiver, state, kind, f) {\n      context.requestEmitHelper(classPrivateFieldGetHelper);\n      let args;\n      if (!f) {\n        args = [receiver, state, factory2.createStringLiteral(kind)];\n      } else {\n        args = [receiver, state, factory2.createStringLiteral(kind), f];\n      }\n      return factory2.createCallExpression(getUnscopedHelperName(\"__classPrivateFieldGet\"), void 0, args);\n    }\n    function createClassPrivateFieldSetHelper(receiver, state, value, kind, f) {\n      context.requestEmitHelper(classPrivateFieldSetHelper);\n      let args;\n      if (!f) {\n        args = [receiver, state, value, factory2.createStringLiteral(kind)];\n      } else {\n        args = [receiver, state, value, factory2.createStringLiteral(kind), f];\n      }\n      return factory2.createCallExpression(getUnscopedHelperName(\"__classPrivateFieldSet\"), void 0, args);\n    }\n    function createClassPrivateFieldInHelper(state, receiver) {\n      context.requestEmitHelper(classPrivateFieldInHelper);\n      return factory2.createCallExpression(getUnscopedHelperName(\"__classPrivateFieldIn\"), void 0, [state, receiver]);\n    }\n  }\n  function compareEmitHelpers(x, y) {\n    if (x === y)\n      return 0;\n    if (x.priority === y.priority)\n      return 0;\n    if (x.priority === void 0)\n      return 1;\n    if (y.priority === void 0)\n      return -1;\n    return compareValues(x.priority, y.priority);\n  }\n  function helperString(input, ...args) {\n    return (uniqueName) => {\n      let result = \"\";\n      for (let i = 0; i < args.length; i++) {\n        result += input[i];\n        result += uniqueName(args[i]);\n      }\n      result += input[input.length - 1];\n      return result;\n    };\n  }\n  function getAllUnscopedEmitHelpers() {\n    return allUnscopedEmitHelpers || (allUnscopedEmitHelpers = arrayToMap([\n      decorateHelper,\n      metadataHelper,\n      paramHelper,\n      esDecorateHelper,\n      runInitializersHelper,\n      assignHelper,\n      awaitHelper,\n      asyncGeneratorHelper,\n      asyncDelegator,\n      asyncValues,\n      restHelper,\n      awaiterHelper,\n      extendsHelper,\n      templateObjectHelper,\n      spreadArrayHelper,\n      valuesHelper,\n      readHelper,\n      propKeyHelper,\n      setFunctionNameHelper,\n      generatorHelper,\n      importStarHelper,\n      importDefaultHelper,\n      exportStarHelper,\n      classPrivateFieldGetHelper,\n      classPrivateFieldSetHelper,\n      classPrivateFieldInHelper,\n      createBindingHelper,\n      setModuleDefaultHelper\n    ], (helper) => helper.name));\n  }\n  function isCallToHelper(firstSegment, helperName) {\n    return isCallExpression(firstSegment) && isIdentifier(firstSegment.expression) && (getEmitFlags(firstSegment.expression) & 8192) !== 0 && firstSegment.expression.escapedText === helperName;\n  }\n  var PrivateIdentifierKind, decorateHelper, metadataHelper, paramHelper, esDecorateHelper, runInitializersHelper, assignHelper, awaitHelper, asyncGeneratorHelper, asyncDelegator, asyncValues, restHelper, awaiterHelper, extendsHelper, templateObjectHelper, readHelper, spreadArrayHelper, propKeyHelper, setFunctionNameHelper, valuesHelper, generatorHelper, createBindingHelper, setModuleDefaultHelper, importStarHelper, importDefaultHelper, exportStarHelper, classPrivateFieldGetHelper, classPrivateFieldSetHelper, classPrivateFieldInHelper, allUnscopedEmitHelpers, asyncSuperHelper, advancedAsyncSuperHelper;\n  var init_emitHelpers = __esm({\n    \"src/compiler/factory/emitHelpers.ts\"() {\n      \"use strict\";\n      init_ts2();\n      PrivateIdentifierKind = /* @__PURE__ */ ((PrivateIdentifierKind2) => {\n        PrivateIdentifierKind2[\"Field\"] = \"f\";\n        PrivateIdentifierKind2[\"Method\"] = \"m\";\n        PrivateIdentifierKind2[\"Accessor\"] = \"a\";\n        return PrivateIdentifierKind2;\n      })(PrivateIdentifierKind || {});\n      decorateHelper = {\n        name: \"typescript:decorate\",\n        importName: \"__decorate\",\n        scoped: false,\n        priority: 2,\n        text: `\n            var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n                var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n                if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n                else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n                return c > 3 && r && Object.defineProperty(target, key, r), r;\n            };`\n      };\n      metadataHelper = {\n        name: \"typescript:metadata\",\n        importName: \"__metadata\",\n        scoped: false,\n        priority: 3,\n        text: `\n            var __metadata = (this && this.__metadata) || function (k, v) {\n                if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n            };`\n      };\n      paramHelper = {\n        name: \"typescript:param\",\n        importName: \"__param\",\n        scoped: false,\n        priority: 4,\n        text: `\n            var __param = (this && this.__param) || function (paramIndex, decorator) {\n                return function (target, key) { decorator(target, key, paramIndex); }\n            };`\n      };\n      esDecorateHelper = {\n        name: \"typescript:esDecorate\",\n        importName: \"__esDecorate\",\n        scoped: false,\n        priority: 2,\n        text: `\n        var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n            function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n            var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n            var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n            var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n            var _, done = false;\n            for (var i = decorators.length - 1; i >= 0; i--) {\n                var context = {};\n                for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n                for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n                context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n                var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n                if (kind === \"accessor\") {\n                    if (result === void 0) continue;\n                    if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n                    if (_ = accept(result.get)) descriptor.get = _;\n                    if (_ = accept(result.set)) descriptor.set = _;\n                    if (_ = accept(result.init)) initializers.push(_);\n                }\n                else if (_ = accept(result)) {\n                    if (kind === \"field\") initializers.push(_);\n                    else descriptor[key] = _;\n                }\n            }\n            if (target) Object.defineProperty(target, contextIn.name, descriptor);\n            done = true;\n        };`\n      };\n      runInitializersHelper = {\n        name: \"typescript:runInitializers\",\n        importName: \"__runInitializers\",\n        scoped: false,\n        priority: 2,\n        text: `\n        var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {\n            var useValue = arguments.length > 2;\n            for (var i = 0; i < initializers.length; i++) {\n                value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n            }\n            return useValue ? value : void 0;\n        };`\n      };\n      assignHelper = {\n        name: \"typescript:assign\",\n        importName: \"__assign\",\n        scoped: false,\n        priority: 1,\n        text: `\n            var __assign = (this && this.__assign) || function () {\n                __assign = Object.assign || function(t) {\n                    for (var s, i = 1, n = arguments.length; i < n; i++) {\n                        s = arguments[i];\n                        for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                            t[p] = s[p];\n                    }\n                    return t;\n                };\n                return __assign.apply(this, arguments);\n            };`\n      };\n      awaitHelper = {\n        name: \"typescript:await\",\n        importName: \"__await\",\n        scoped: false,\n        text: `\n            var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`\n      };\n      asyncGeneratorHelper = {\n        name: \"typescript:asyncGenerator\",\n        importName: \"__asyncGenerator\",\n        scoped: false,\n        dependencies: [awaitHelper],\n        text: `\n            var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n                if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n                var g = generator.apply(thisArg, _arguments || []), i, q = [];\n                return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\n                function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n                function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n                function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n                function fulfill(value) { resume(\"next\", value); }\n                function reject(value) { resume(\"throw\", value); }\n                function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n            };`\n      };\n      asyncDelegator = {\n        name: \"typescript:asyncDelegator\",\n        importName: \"__asyncDelegator\",\n        scoped: false,\n        dependencies: [awaitHelper],\n        text: `\n            var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n                var i, p;\n                return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n                function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n            };`\n      };\n      asyncValues = {\n        name: \"typescript:asyncValues\",\n        importName: \"__asyncValues\",\n        scoped: false,\n        text: `\n            var __asyncValues = (this && this.__asyncValues) || function (o) {\n                if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n                var m = o[Symbol.asyncIterator], i;\n                return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n                function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n                function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n            };`\n      };\n      restHelper = {\n        name: \"typescript:rest\",\n        importName: \"__rest\",\n        scoped: false,\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++) {\n                        if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n                            t[p[i]] = s[p[i]];\n                    }\n                return t;\n            };`\n      };\n      awaiterHelper = {\n        name: \"typescript:awaiter\",\n        importName: \"__awaiter\",\n        scoped: false,\n        priority: 5,\n        text: `\n            var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n                function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\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 ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n                    step((generator = generator.apply(thisArg, _arguments || [])).next());\n                });\n            };`\n      };\n      extendsHelper = {\n        name: \"typescript:extends\",\n        importName: \"__extends\",\n        scoped: false,\n        priority: 0,\n        text: `\n            var __extends = (this && this.__extends) || (function () {\n                var extendStatics = function (d, b) {\n                    extendStatics = Object.setPrototypeOf ||\n                        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n                        function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n                    return extendStatics(d, b);\n                };\n\n                return function (d, b) {\n                    if (typeof b !== \"function\" && b !== null)\n                        throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n                    extendStatics(d, b);\n                    function __() { this.constructor = d; }\n                    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n                };\n            })();`\n      };\n      templateObjectHelper = {\n        name: \"typescript:makeTemplateObject\",\n        importName: \"__makeTemplateObject\",\n        scoped: false,\n        priority: 0,\n        text: `\n            var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n                if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n                return cooked;\n            };`\n      };\n      readHelper = {\n        name: \"typescript:read\",\n        importName: \"__read\",\n        scoped: false,\n        text: `\n            var __read = (this && this.__read) || function (o, n) {\n                var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n                if (!m) return o;\n                var i = m.call(o), r, ar = [], e;\n                try {\n                    while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n                }\n                catch (error) { e = { error: error }; }\n                finally {\n                    try {\n                        if (r && !r.done && (m = i[\"return\"])) m.call(i);\n                    }\n                    finally { if (e) throw e.error; }\n                }\n                return ar;\n            };`\n      };\n      spreadArrayHelper = {\n        name: \"typescript:spreadArray\",\n        importName: \"__spreadArray\",\n        scoped: false,\n        text: `\n            var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n                if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n                    if (ar || !(i in from)) {\n                        if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n                        ar[i] = from[i];\n                    }\n                }\n                return to.concat(ar || Array.prototype.slice.call(from));\n            };`\n      };\n      propKeyHelper = {\n        name: \"typescript:propKey\",\n        importName: \"__propKey\",\n        scoped: false,\n        text: `\n        var __propKey = (this && this.__propKey) || function (x) {\n            return typeof x === \"symbol\" ? x : \"\".concat(x);\n        };`\n      };\n      setFunctionNameHelper = {\n        name: \"typescript:setFunctionName\",\n        importName: \"__setFunctionName\",\n        scoped: false,\n        text: `\n        var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {\n            if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n            return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n        };`\n      };\n      valuesHelper = {\n        name: \"typescript:values\",\n        importName: \"__values\",\n        scoped: false,\n        text: `\n            var __values = (this && this.__values) || function(o) {\n                var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n                if (m) return m.call(o);\n                if (o && typeof o.length === \"number\") return {\n                    next: function () {\n                        if (o && i >= o.length) o = void 0;\n                        return { value: o && o[i++], done: !o };\n                    }\n                };\n                throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n            };`\n      };\n      generatorHelper = {\n        name: \"typescript:generator\",\n        importName: \"__generator\",\n        scoped: false,\n        priority: 6,\n        text: `\n            var __generator = (this && this.__generator) || function (thisArg, body) {\n                var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n                return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n                function verb(n) { return function (v) { return step([n, v]); }; }\n                function step(op) {\n                    if (f) throw new TypeError(\"Generator is already executing.\");\n                    while (g && (g = 0, op[0] && (_ = 0)), _) try {\n                        if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n                        if (y = 0, t) op = [op[0] & 2, t.value];\n                        switch (op[0]) {\n                            case 0: case 1: t = op; break;\n                            case 4: _.label++; return { value: op[1], done: false };\n                            case 5: _.label++; y = op[1]; op = [0]; continue;\n                            case 7: op = _.ops.pop(); _.trys.pop(); continue;\n                            default:\n                                if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n                                if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n                                if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n                                if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n                                if (t[2]) _.ops.pop();\n                                _.trys.pop(); continue;\n                        }\n                        op = body.call(thisArg, _);\n                    } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n                    if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n                }\n            };`\n      };\n      createBindingHelper = {\n        name: \"typescript:commonjscreatebinding\",\n        importName: \"__createBinding\",\n        scoped: false,\n        priority: 1,\n        text: `\n            var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n                if (k2 === undefined) k2 = k;\n                var desc = Object.getOwnPropertyDescriptor(m, k);\n                if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n                  desc = { enumerable: true, get: function() { return m[k]; } };\n                }\n                Object.defineProperty(o, k2, desc);\n            }) : (function(o, m, k, k2) {\n                if (k2 === undefined) k2 = k;\n                o[k2] = m[k];\n            }));`\n      };\n      setModuleDefaultHelper = {\n        name: \"typescript:commonjscreatevalue\",\n        importName: \"__setModuleDefault\",\n        scoped: false,\n        priority: 1,\n        text: `\n            var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n                Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n            }) : function(o, v) {\n                o[\"default\"] = v;\n            });`\n      };\n      importStarHelper = {\n        name: \"typescript:commonjsimportstar\",\n        importName: \"__importStar\",\n        scoped: false,\n        dependencies: [createBindingHelper, setModuleDefaultHelper],\n        priority: 2,\n        text: `\n            var __importStar = (this && this.__importStar) || function (mod) {\n                if (mod && mod.__esModule) return mod;\n                var result = {};\n                if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n                __setModuleDefault(result, mod);\n                return result;\n            };`\n      };\n      importDefaultHelper = {\n        name: \"typescript:commonjsimportdefault\",\n        importName: \"__importDefault\",\n        scoped: false,\n        text: `\n            var __importDefault = (this && this.__importDefault) || function (mod) {\n                return (mod && mod.__esModule) ? mod : { \"default\": mod };\n            };`\n      };\n      exportStarHelper = {\n        name: \"typescript:export-star\",\n        importName: \"__exportStar\",\n        scoped: false,\n        dependencies: [createBindingHelper],\n        priority: 2,\n        text: `\n            var __exportStar = (this && this.__exportStar) || function(m, exports) {\n                for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n            };`\n      };\n      classPrivateFieldGetHelper = {\n        name: \"typescript:classPrivateFieldGet\",\n        importName: \"__classPrivateFieldGet\",\n        scoped: false,\n        text: `\n            var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n                if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n                if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n                return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n            };`\n      };\n      classPrivateFieldSetHelper = {\n        name: \"typescript:classPrivateFieldSet\",\n        importName: \"__classPrivateFieldSet\",\n        scoped: false,\n        text: `\n            var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n                if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n                if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n                if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n                return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n            };`\n      };\n      classPrivateFieldInHelper = {\n        name: \"typescript:classPrivateFieldIn\",\n        importName: \"__classPrivateFieldIn\",\n        scoped: false,\n        text: `\n            var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n                if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n                return typeof state === \"function\" ? receiver === state : state.has(receiver);\n            };`\n      };\n      asyncSuperHelper = {\n        name: \"typescript:async-super\",\n        scoped: true,\n        text: helperString`\n            const ${\"_superIndex\"} = name => super[name];`\n      };\n      advancedAsyncSuperHelper = {\n        name: \"typescript:advanced-async-super\",\n        scoped: true,\n        text: helperString`\n            const ${\"_superIndex\"} = (function (geti, seti) {\n                const cache = Object.create(null);\n                return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n            })(name => super[name], (name, value) => super[name] = value);`\n      };\n    }\n  });\n  function isNumericLiteral(node) {\n    return node.kind === 8;\n  }\n  function isBigIntLiteral(node) {\n    return node.kind === 9;\n  }\n  function isStringLiteral(node) {\n    return node.kind === 10;\n  }\n  function isJsxText(node) {\n    return node.kind === 11;\n  }\n  function isRegularExpressionLiteral(node) {\n    return node.kind === 13;\n  }\n  function isNoSubstitutionTemplateLiteral(node) {\n    return node.kind === 14;\n  }\n  function isTemplateHead(node) {\n    return node.kind === 15;\n  }\n  function isTemplateMiddle(node) {\n    return node.kind === 16;\n  }\n  function isTemplateTail(node) {\n    return node.kind === 17;\n  }\n  function isDotDotDotToken(node) {\n    return node.kind === 25;\n  }\n  function isCommaToken(node) {\n    return node.kind === 27;\n  }\n  function isPlusToken(node) {\n    return node.kind === 39;\n  }\n  function isMinusToken(node) {\n    return node.kind === 40;\n  }\n  function isAsteriskToken(node) {\n    return node.kind === 41;\n  }\n  function isExclamationToken(node) {\n    return node.kind === 53;\n  }\n  function isQuestionToken(node) {\n    return node.kind === 57;\n  }\n  function isColonToken(node) {\n    return node.kind === 58;\n  }\n  function isQuestionDotToken(node) {\n    return node.kind === 28;\n  }\n  function isEqualsGreaterThanToken(node) {\n    return node.kind === 38;\n  }\n  function isIdentifier(node) {\n    return node.kind === 79;\n  }\n  function isPrivateIdentifier(node) {\n    return node.kind === 80;\n  }\n  function isExportModifier(node) {\n    return node.kind === 93;\n  }\n  function isDefaultModifier(node) {\n    return node.kind === 88;\n  }\n  function isAsyncModifier(node) {\n    return node.kind === 132;\n  }\n  function isAssertsKeyword(node) {\n    return node.kind === 129;\n  }\n  function isAwaitKeyword(node) {\n    return node.kind === 133;\n  }\n  function isReadonlyKeyword(node) {\n    return node.kind === 146;\n  }\n  function isStaticModifier(node) {\n    return node.kind === 124;\n  }\n  function isAbstractModifier(node) {\n    return node.kind === 126;\n  }\n  function isOverrideModifier(node) {\n    return node.kind === 161;\n  }\n  function isAccessorModifier(node) {\n    return node.kind === 127;\n  }\n  function isSuperKeyword(node) {\n    return node.kind === 106;\n  }\n  function isImportKeyword(node) {\n    return node.kind === 100;\n  }\n  function isCaseKeyword(node) {\n    return node.kind === 82;\n  }\n  function isQualifiedName(node) {\n    return node.kind === 163;\n  }\n  function isComputedPropertyName(node) {\n    return node.kind === 164;\n  }\n  function isTypeParameterDeclaration(node) {\n    return node.kind === 165;\n  }\n  function isParameter(node) {\n    return node.kind === 166;\n  }\n  function isDecorator(node) {\n    return node.kind === 167;\n  }\n  function isPropertySignature(node) {\n    return node.kind === 168;\n  }\n  function isPropertyDeclaration(node) {\n    return node.kind === 169;\n  }\n  function isMethodSignature(node) {\n    return node.kind === 170;\n  }\n  function isMethodDeclaration(node) {\n    return node.kind === 171;\n  }\n  function isClassStaticBlockDeclaration(node) {\n    return node.kind === 172;\n  }\n  function isConstructorDeclaration(node) {\n    return node.kind === 173;\n  }\n  function isGetAccessorDeclaration(node) {\n    return node.kind === 174;\n  }\n  function isSetAccessorDeclaration(node) {\n    return node.kind === 175;\n  }\n  function isCallSignatureDeclaration(node) {\n    return node.kind === 176;\n  }\n  function isConstructSignatureDeclaration(node) {\n    return node.kind === 177;\n  }\n  function isIndexSignatureDeclaration(node) {\n    return node.kind === 178;\n  }\n  function isTypePredicateNode(node) {\n    return node.kind === 179;\n  }\n  function isTypeReferenceNode(node) {\n    return node.kind === 180;\n  }\n  function isFunctionTypeNode(node) {\n    return node.kind === 181;\n  }\n  function isConstructorTypeNode(node) {\n    return node.kind === 182;\n  }\n  function isTypeQueryNode(node) {\n    return node.kind === 183;\n  }\n  function isTypeLiteralNode(node) {\n    return node.kind === 184;\n  }\n  function isArrayTypeNode(node) {\n    return node.kind === 185;\n  }\n  function isTupleTypeNode(node) {\n    return node.kind === 186;\n  }\n  function isNamedTupleMember(node) {\n    return node.kind === 199;\n  }\n  function isOptionalTypeNode(node) {\n    return node.kind === 187;\n  }\n  function isRestTypeNode(node) {\n    return node.kind === 188;\n  }\n  function isUnionTypeNode(node) {\n    return node.kind === 189;\n  }\n  function isIntersectionTypeNode(node) {\n    return node.kind === 190;\n  }\n  function isConditionalTypeNode(node) {\n    return node.kind === 191;\n  }\n  function isInferTypeNode(node) {\n    return node.kind === 192;\n  }\n  function isParenthesizedTypeNode(node) {\n    return node.kind === 193;\n  }\n  function isThisTypeNode(node) {\n    return node.kind === 194;\n  }\n  function isTypeOperatorNode(node) {\n    return node.kind === 195;\n  }\n  function isIndexedAccessTypeNode(node) {\n    return node.kind === 196;\n  }\n  function isMappedTypeNode(node) {\n    return node.kind === 197;\n  }\n  function isLiteralTypeNode(node) {\n    return node.kind === 198;\n  }\n  function isImportTypeNode(node) {\n    return node.kind === 202;\n  }\n  function isTemplateLiteralTypeSpan(node) {\n    return node.kind === 201;\n  }\n  function isTemplateLiteralTypeNode(node) {\n    return node.kind === 200;\n  }\n  function isObjectBindingPattern(node) {\n    return node.kind === 203;\n  }\n  function isArrayBindingPattern(node) {\n    return node.kind === 204;\n  }\n  function isBindingElement(node) {\n    return node.kind === 205;\n  }\n  function isArrayLiteralExpression(node) {\n    return node.kind === 206;\n  }\n  function isObjectLiteralExpression(node) {\n    return node.kind === 207;\n  }\n  function isPropertyAccessExpression(node) {\n    return node.kind === 208;\n  }\n  function isElementAccessExpression(node) {\n    return node.kind === 209;\n  }\n  function isCallExpression(node) {\n    return node.kind === 210;\n  }\n  function isNewExpression(node) {\n    return node.kind === 211;\n  }\n  function isTaggedTemplateExpression(node) {\n    return node.kind === 212;\n  }\n  function isTypeAssertionExpression(node) {\n    return node.kind === 213;\n  }\n  function isParenthesizedExpression(node) {\n    return node.kind === 214;\n  }\n  function isFunctionExpression(node) {\n    return node.kind === 215;\n  }\n  function isArrowFunction(node) {\n    return node.kind === 216;\n  }\n  function isDeleteExpression(node) {\n    return node.kind === 217;\n  }\n  function isTypeOfExpression(node) {\n    return node.kind === 218;\n  }\n  function isVoidExpression(node) {\n    return node.kind === 219;\n  }\n  function isAwaitExpression(node) {\n    return node.kind === 220;\n  }\n  function isPrefixUnaryExpression(node) {\n    return node.kind === 221;\n  }\n  function isPostfixUnaryExpression(node) {\n    return node.kind === 222;\n  }\n  function isBinaryExpression(node) {\n    return node.kind === 223;\n  }\n  function isConditionalExpression(node) {\n    return node.kind === 224;\n  }\n  function isTemplateExpression(node) {\n    return node.kind === 225;\n  }\n  function isYieldExpression(node) {\n    return node.kind === 226;\n  }\n  function isSpreadElement(node) {\n    return node.kind === 227;\n  }\n  function isClassExpression(node) {\n    return node.kind === 228;\n  }\n  function isOmittedExpression(node) {\n    return node.kind === 229;\n  }\n  function isExpressionWithTypeArguments(node) {\n    return node.kind === 230;\n  }\n  function isAsExpression(node) {\n    return node.kind === 231;\n  }\n  function isSatisfiesExpression(node) {\n    return node.kind === 235;\n  }\n  function isNonNullExpression(node) {\n    return node.kind === 232;\n  }\n  function isMetaProperty(node) {\n    return node.kind === 233;\n  }\n  function isSyntheticExpression(node) {\n    return node.kind === 234;\n  }\n  function isPartiallyEmittedExpression(node) {\n    return node.kind === 356;\n  }\n  function isCommaListExpression(node) {\n    return node.kind === 357;\n  }\n  function isTemplateSpan(node) {\n    return node.kind === 236;\n  }\n  function isSemicolonClassElement(node) {\n    return node.kind === 237;\n  }\n  function isBlock(node) {\n    return node.kind === 238;\n  }\n  function isVariableStatement(node) {\n    return node.kind === 240;\n  }\n  function isEmptyStatement(node) {\n    return node.kind === 239;\n  }\n  function isExpressionStatement(node) {\n    return node.kind === 241;\n  }\n  function isIfStatement(node) {\n    return node.kind === 242;\n  }\n  function isDoStatement(node) {\n    return node.kind === 243;\n  }\n  function isWhileStatement(node) {\n    return node.kind === 244;\n  }\n  function isForStatement(node) {\n    return node.kind === 245;\n  }\n  function isForInStatement(node) {\n    return node.kind === 246;\n  }\n  function isForOfStatement(node) {\n    return node.kind === 247;\n  }\n  function isContinueStatement(node) {\n    return node.kind === 248;\n  }\n  function isBreakStatement(node) {\n    return node.kind === 249;\n  }\n  function isReturnStatement(node) {\n    return node.kind === 250;\n  }\n  function isWithStatement(node) {\n    return node.kind === 251;\n  }\n  function isSwitchStatement(node) {\n    return node.kind === 252;\n  }\n  function isLabeledStatement(node) {\n    return node.kind === 253;\n  }\n  function isThrowStatement(node) {\n    return node.kind === 254;\n  }\n  function isTryStatement(node) {\n    return node.kind === 255;\n  }\n  function isDebuggerStatement(node) {\n    return node.kind === 256;\n  }\n  function isVariableDeclaration(node) {\n    return node.kind === 257;\n  }\n  function isVariableDeclarationList(node) {\n    return node.kind === 258;\n  }\n  function isFunctionDeclaration(node) {\n    return node.kind === 259;\n  }\n  function isClassDeclaration(node) {\n    return node.kind === 260;\n  }\n  function isInterfaceDeclaration(node) {\n    return node.kind === 261;\n  }\n  function isTypeAliasDeclaration(node) {\n    return node.kind === 262;\n  }\n  function isEnumDeclaration(node) {\n    return node.kind === 263;\n  }\n  function isModuleDeclaration(node) {\n    return node.kind === 264;\n  }\n  function isModuleBlock(node) {\n    return node.kind === 265;\n  }\n  function isCaseBlock(node) {\n    return node.kind === 266;\n  }\n  function isNamespaceExportDeclaration(node) {\n    return node.kind === 267;\n  }\n  function isImportEqualsDeclaration(node) {\n    return node.kind === 268;\n  }\n  function isImportDeclaration(node) {\n    return node.kind === 269;\n  }\n  function isImportClause(node) {\n    return node.kind === 270;\n  }\n  function isImportTypeAssertionContainer(node) {\n    return node.kind === 298;\n  }\n  function isAssertClause(node) {\n    return node.kind === 296;\n  }\n  function isAssertEntry(node) {\n    return node.kind === 297;\n  }\n  function isNamespaceImport(node) {\n    return node.kind === 271;\n  }\n  function isNamespaceExport(node) {\n    return node.kind === 277;\n  }\n  function isNamedImports(node) {\n    return node.kind === 272;\n  }\n  function isImportSpecifier(node) {\n    return node.kind === 273;\n  }\n  function isExportAssignment(node) {\n    return node.kind === 274;\n  }\n  function isExportDeclaration(node) {\n    return node.kind === 275;\n  }\n  function isNamedExports(node) {\n    return node.kind === 276;\n  }\n  function isExportSpecifier(node) {\n    return node.kind === 278;\n  }\n  function isMissingDeclaration(node) {\n    return node.kind === 279;\n  }\n  function isNotEmittedStatement(node) {\n    return node.kind === 355;\n  }\n  function isSyntheticReference(node) {\n    return node.kind === 360;\n  }\n  function isMergeDeclarationMarker(node) {\n    return node.kind === 358;\n  }\n  function isEndOfDeclarationMarker(node) {\n    return node.kind === 359;\n  }\n  function isExternalModuleReference(node) {\n    return node.kind === 280;\n  }\n  function isJsxElement(node) {\n    return node.kind === 281;\n  }\n  function isJsxSelfClosingElement(node) {\n    return node.kind === 282;\n  }\n  function isJsxOpeningElement(node) {\n    return node.kind === 283;\n  }\n  function isJsxClosingElement(node) {\n    return node.kind === 284;\n  }\n  function isJsxFragment(node) {\n    return node.kind === 285;\n  }\n  function isJsxOpeningFragment(node) {\n    return node.kind === 286;\n  }\n  function isJsxClosingFragment(node) {\n    return node.kind === 287;\n  }\n  function isJsxAttribute(node) {\n    return node.kind === 288;\n  }\n  function isJsxAttributes(node) {\n    return node.kind === 289;\n  }\n  function isJsxSpreadAttribute(node) {\n    return node.kind === 290;\n  }\n  function isJsxExpression(node) {\n    return node.kind === 291;\n  }\n  function isCaseClause(node) {\n    return node.kind === 292;\n  }\n  function isDefaultClause(node) {\n    return node.kind === 293;\n  }\n  function isHeritageClause(node) {\n    return node.kind === 294;\n  }\n  function isCatchClause(node) {\n    return node.kind === 295;\n  }\n  function isPropertyAssignment(node) {\n    return node.kind === 299;\n  }\n  function isShorthandPropertyAssignment(node) {\n    return node.kind === 300;\n  }\n  function isSpreadAssignment(node) {\n    return node.kind === 301;\n  }\n  function isEnumMember(node) {\n    return node.kind === 302;\n  }\n  function isUnparsedPrepend(node) {\n    return node.kind === 304;\n  }\n  function isSourceFile(node) {\n    return node.kind === 308;\n  }\n  function isBundle(node) {\n    return node.kind === 309;\n  }\n  function isUnparsedSource(node) {\n    return node.kind === 310;\n  }\n  function isJSDocTypeExpression(node) {\n    return node.kind === 312;\n  }\n  function isJSDocNameReference(node) {\n    return node.kind === 313;\n  }\n  function isJSDocMemberName(node) {\n    return node.kind === 314;\n  }\n  function isJSDocLink(node) {\n    return node.kind === 327;\n  }\n  function isJSDocLinkCode(node) {\n    return node.kind === 328;\n  }\n  function isJSDocLinkPlain(node) {\n    return node.kind === 329;\n  }\n  function isJSDocAllType(node) {\n    return node.kind === 315;\n  }\n  function isJSDocUnknownType(node) {\n    return node.kind === 316;\n  }\n  function isJSDocNullableType(node) {\n    return node.kind === 317;\n  }\n  function isJSDocNonNullableType(node) {\n    return node.kind === 318;\n  }\n  function isJSDocOptionalType(node) {\n    return node.kind === 319;\n  }\n  function isJSDocFunctionType(node) {\n    return node.kind === 320;\n  }\n  function isJSDocVariadicType(node) {\n    return node.kind === 321;\n  }\n  function isJSDocNamepathType(node) {\n    return node.kind === 322;\n  }\n  function isJSDoc(node) {\n    return node.kind === 323;\n  }\n  function isJSDocTypeLiteral(node) {\n    return node.kind === 325;\n  }\n  function isJSDocSignature(node) {\n    return node.kind === 326;\n  }\n  function isJSDocAugmentsTag(node) {\n    return node.kind === 331;\n  }\n  function isJSDocAuthorTag(node) {\n    return node.kind === 333;\n  }\n  function isJSDocClassTag(node) {\n    return node.kind === 335;\n  }\n  function isJSDocCallbackTag(node) {\n    return node.kind === 341;\n  }\n  function isJSDocPublicTag(node) {\n    return node.kind === 336;\n  }\n  function isJSDocPrivateTag(node) {\n    return node.kind === 337;\n  }\n  function isJSDocProtectedTag(node) {\n    return node.kind === 338;\n  }\n  function isJSDocReadonlyTag(node) {\n    return node.kind === 339;\n  }\n  function isJSDocOverrideTag(node) {\n    return node.kind === 340;\n  }\n  function isJSDocOverloadTag(node) {\n    return node.kind === 342;\n  }\n  function isJSDocDeprecatedTag(node) {\n    return node.kind === 334;\n  }\n  function isJSDocSeeTag(node) {\n    return node.kind === 350;\n  }\n  function isJSDocEnumTag(node) {\n    return node.kind === 343;\n  }\n  function isJSDocParameterTag(node) {\n    return node.kind === 344;\n  }\n  function isJSDocReturnTag(node) {\n    return node.kind === 345;\n  }\n  function isJSDocThisTag(node) {\n    return node.kind === 346;\n  }\n  function isJSDocTypeTag(node) {\n    return node.kind === 347;\n  }\n  function isJSDocTemplateTag(node) {\n    return node.kind === 348;\n  }\n  function isJSDocTypedefTag(node) {\n    return node.kind === 349;\n  }\n  function isJSDocUnknownTag(node) {\n    return node.kind === 330;\n  }\n  function isJSDocPropertyTag(node) {\n    return node.kind === 351;\n  }\n  function isJSDocImplementsTag(node) {\n    return node.kind === 332;\n  }\n  function isJSDocSatisfiesTag(node) {\n    return node.kind === 353;\n  }\n  function isJSDocThrowsTag(node) {\n    return node.kind === 352;\n  }\n  function isSyntaxList(n) {\n    return n.kind === 354;\n  }\n  var init_nodeTests = __esm({\n    \"src/compiler/factory/nodeTests.ts\"() {\n      \"use strict\";\n      init_ts2();\n    }\n  });\n  function createEmptyExports(factory2) {\n    return factory2.createExportDeclaration(void 0, false, factory2.createNamedExports([]), void 0);\n  }\n  function createMemberAccessForPropertyName(factory2, target, memberName, location) {\n    if (isComputedPropertyName(memberName)) {\n      return setTextRange(factory2.createElementAccessExpression(target, memberName.expression), location);\n    } else {\n      const expression = setTextRange(isMemberName(memberName) ? factory2.createPropertyAccessExpression(target, memberName) : factory2.createElementAccessExpression(target, memberName), memberName);\n      addEmitFlags(expression, 128);\n      return expression;\n    }\n  }\n  function createReactNamespace(reactNamespace, parent2) {\n    const react = parseNodeFactory.createIdentifier(reactNamespace || \"React\");\n    setParent(react, getParseTreeNode(parent2));\n    return react;\n  }\n  function createJsxFactoryExpressionFromEntityName(factory2, jsxFactory, parent2) {\n    if (isQualifiedName(jsxFactory)) {\n      const left = createJsxFactoryExpressionFromEntityName(factory2, jsxFactory.left, parent2);\n      const right = factory2.createIdentifier(idText(jsxFactory.right));\n      right.escapedText = jsxFactory.right.escapedText;\n      return factory2.createPropertyAccessExpression(left, right);\n    } else {\n      return createReactNamespace(idText(jsxFactory), parent2);\n    }\n  }\n  function createJsxFactoryExpression(factory2, jsxFactoryEntity, reactNamespace, parent2) {\n    return jsxFactoryEntity ? createJsxFactoryExpressionFromEntityName(factory2, jsxFactoryEntity, parent2) : factory2.createPropertyAccessExpression(createReactNamespace(reactNamespace, parent2), \"createElement\");\n  }\n  function createJsxFragmentFactoryExpression(factory2, jsxFragmentFactoryEntity, reactNamespace, parent2) {\n    return jsxFragmentFactoryEntity ? createJsxFactoryExpressionFromEntityName(factory2, jsxFragmentFactoryEntity, parent2) : factory2.createPropertyAccessExpression(createReactNamespace(reactNamespace, parent2), \"Fragment\");\n  }\n  function createExpressionForJsxElement(factory2, callee, tagName, props, children, location) {\n    const argumentsList = [tagName];\n    if (props) {\n      argumentsList.push(props);\n    }\n    if (children && children.length > 0) {\n      if (!props) {\n        argumentsList.push(factory2.createNull());\n      }\n      if (children.length > 1) {\n        for (const child of children) {\n          startOnNewLine(child);\n          argumentsList.push(child);\n        }\n      } else {\n        argumentsList.push(children[0]);\n      }\n    }\n    return setTextRange(factory2.createCallExpression(callee, void 0, argumentsList), location);\n  }\n  function createExpressionForJsxFragment(factory2, jsxFactoryEntity, jsxFragmentFactoryEntity, reactNamespace, children, parentElement, location) {\n    const tagName = createJsxFragmentFactoryExpression(factory2, jsxFragmentFactoryEntity, reactNamespace, parentElement);\n    const argumentsList = [tagName, factory2.createNull()];\n    if (children && children.length > 0) {\n      if (children.length > 1) {\n        for (const child of children) {\n          startOnNewLine(child);\n          argumentsList.push(child);\n        }\n      } else {\n        argumentsList.push(children[0]);\n      }\n    }\n    return setTextRange(factory2.createCallExpression(createJsxFactoryExpression(factory2, jsxFactoryEntity, reactNamespace, parentElement), void 0, argumentsList), location);\n  }\n  function createForOfBindingStatement(factory2, node, boundValue) {\n    if (isVariableDeclarationList(node)) {\n      const firstDeclaration = first(node.declarations);\n      const updatedDeclaration = factory2.updateVariableDeclaration(firstDeclaration, firstDeclaration.name, void 0, void 0, boundValue);\n      return setTextRange(factory2.createVariableStatement(void 0, factory2.updateVariableDeclarationList(node, [updatedDeclaration])), node);\n    } else {\n      const updatedExpression = setTextRange(factory2.createAssignment(node, boundValue), node);\n      return setTextRange(factory2.createExpressionStatement(updatedExpression), node);\n    }\n  }\n  function insertLeadingStatement(factory2, dest, source) {\n    if (isBlock(dest)) {\n      return factory2.updateBlock(dest, setTextRange(factory2.createNodeArray([source, ...dest.statements]), dest.statements));\n    } else {\n      return factory2.createBlock(factory2.createNodeArray([dest, source]), true);\n    }\n  }\n  function createExpressionFromEntityName(factory2, node) {\n    if (isQualifiedName(node)) {\n      const left = createExpressionFromEntityName(factory2, node.left);\n      const right = setParent(setTextRange(factory2.cloneNode(node.right), node.right), node.right.parent);\n      return setTextRange(factory2.createPropertyAccessExpression(left, right), node);\n    } else {\n      return setParent(setTextRange(factory2.cloneNode(node), node), node.parent);\n    }\n  }\n  function createExpressionForPropertyName(factory2, memberName) {\n    if (isIdentifier(memberName)) {\n      return factory2.createStringLiteralFromNode(memberName);\n    } else if (isComputedPropertyName(memberName)) {\n      return setParent(setTextRange(factory2.cloneNode(memberName.expression), memberName.expression), memberName.expression.parent);\n    } else {\n      return setParent(setTextRange(factory2.cloneNode(memberName), memberName), memberName.parent);\n    }\n  }\n  function createExpressionForAccessorDeclaration(factory2, properties, property, receiver, multiLine) {\n    const { firstAccessor, getAccessor, setAccessor } = getAllAccessorDeclarations(properties, property);\n    if (property === firstAccessor) {\n      return setTextRange(factory2.createObjectDefinePropertyCall(receiver, createExpressionForPropertyName(factory2, property.name), factory2.createPropertyDescriptor({\n        enumerable: factory2.createFalse(),\n        configurable: true,\n        get: getAccessor && setTextRange(setOriginalNode(factory2.createFunctionExpression(getModifiers(getAccessor), void 0, void 0, void 0, getAccessor.parameters, void 0, getAccessor.body), getAccessor), getAccessor),\n        set: setAccessor && setTextRange(setOriginalNode(factory2.createFunctionExpression(getModifiers(setAccessor), void 0, void 0, void 0, setAccessor.parameters, void 0, setAccessor.body), setAccessor), setAccessor)\n      }, !multiLine)), firstAccessor);\n    }\n    return void 0;\n  }\n  function createExpressionForPropertyAssignment(factory2, property, receiver) {\n    return setOriginalNode(setTextRange(factory2.createAssignment(createMemberAccessForPropertyName(factory2, receiver, property.name, property.name), property.initializer), property), property);\n  }\n  function createExpressionForShorthandPropertyAssignment(factory2, property, receiver) {\n    return setOriginalNode(setTextRange(factory2.createAssignment(createMemberAccessForPropertyName(factory2, receiver, property.name, property.name), factory2.cloneNode(property.name)), property), property);\n  }\n  function createExpressionForMethodDeclaration(factory2, method, receiver) {\n    return setOriginalNode(setTextRange(factory2.createAssignment(createMemberAccessForPropertyName(factory2, receiver, method.name, method.name), setOriginalNode(setTextRange(factory2.createFunctionExpression(getModifiers(method), method.asteriskToken, void 0, void 0, method.parameters, void 0, method.body), method), method)), method), method);\n  }\n  function createExpressionForObjectLiteralElementLike(factory2, node, property, receiver) {\n    if (property.name && isPrivateIdentifier(property.name)) {\n      Debug.failBadSyntaxKind(property.name, \"Private identifiers are not allowed in object literals.\");\n    }\n    switch (property.kind) {\n      case 174:\n      case 175:\n        return createExpressionForAccessorDeclaration(factory2, node.properties, property, receiver, !!node.multiLine);\n      case 299:\n        return createExpressionForPropertyAssignment(factory2, property, receiver);\n      case 300:\n        return createExpressionForShorthandPropertyAssignment(factory2, property, receiver);\n      case 171:\n        return createExpressionForMethodDeclaration(factory2, property, receiver);\n    }\n  }\n  function expandPreOrPostfixIncrementOrDecrementExpression(factory2, node, expression, recordTempVariable, resultVariable) {\n    const operator = node.operator;\n    Debug.assert(operator === 45 || operator === 46, \"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression\");\n    const temp = factory2.createTempVariable(recordTempVariable);\n    expression = factory2.createAssignment(temp, expression);\n    setTextRange(expression, node.operand);\n    let operation = isPrefixUnaryExpression(node) ? factory2.createPrefixUnaryExpression(operator, temp) : factory2.createPostfixUnaryExpression(temp, operator);\n    setTextRange(operation, node);\n    if (resultVariable) {\n      operation = factory2.createAssignment(resultVariable, operation);\n      setTextRange(operation, node);\n    }\n    expression = factory2.createComma(expression, operation);\n    setTextRange(expression, node);\n    if (isPostfixUnaryExpression(node)) {\n      expression = factory2.createComma(expression, temp);\n      setTextRange(expression, node);\n    }\n    return expression;\n  }\n  function isInternalName(node) {\n    return (getEmitFlags(node) & 65536) !== 0;\n  }\n  function isLocalName(node) {\n    return (getEmitFlags(node) & 32768) !== 0;\n  }\n  function isExportName(node) {\n    return (getEmitFlags(node) & 16384) !== 0;\n  }\n  function isUseStrictPrologue(node) {\n    return isStringLiteral(node.expression) && node.expression.text === \"use strict\";\n  }\n  function findUseStrictPrologue(statements) {\n    for (const statement of statements) {\n      if (isPrologueDirective(statement)) {\n        if (isUseStrictPrologue(statement)) {\n          return statement;\n        }\n      } else {\n        break;\n      }\n    }\n    return void 0;\n  }\n  function startsWithUseStrict(statements) {\n    const firstStatement = firstOrUndefined(statements);\n    return firstStatement !== void 0 && isPrologueDirective(firstStatement) && isUseStrictPrologue(firstStatement);\n  }\n  function isCommaExpression(node) {\n    return node.kind === 223 && node.operatorToken.kind === 27;\n  }\n  function isCommaSequence(node) {\n    return isCommaExpression(node) || isCommaListExpression(node);\n  }\n  function isJSDocTypeAssertion(node) {\n    return isParenthesizedExpression(node) && isInJSFile(node) && !!getJSDocTypeTag(node);\n  }\n  function getJSDocTypeAssertionType(node) {\n    const type = getJSDocType(node);\n    Debug.assertIsDefined(type);\n    return type;\n  }\n  function isOuterExpression(node, kinds = 15) {\n    switch (node.kind) {\n      case 214:\n        if (kinds & 16 && isJSDocTypeAssertion(node)) {\n          return false;\n        }\n        return (kinds & 1) !== 0;\n      case 213:\n      case 231:\n      case 230:\n      case 235:\n        return (kinds & 2) !== 0;\n      case 232:\n        return (kinds & 4) !== 0;\n      case 356:\n        return (kinds & 8) !== 0;\n    }\n    return false;\n  }\n  function skipOuterExpressions(node, kinds = 15) {\n    while (isOuterExpression(node, kinds)) {\n      node = node.expression;\n    }\n    return node;\n  }\n  function walkUpOuterExpressions(node, kinds = 15) {\n    let parent2 = node.parent;\n    while (isOuterExpression(parent2, kinds)) {\n      parent2 = parent2.parent;\n      Debug.assert(parent2);\n    }\n    return parent2;\n  }\n  function skipAssertions(node) {\n    return skipOuterExpressions(node, 6);\n  }\n  function startOnNewLine(node) {\n    return setStartsOnNewLine(node, true);\n  }\n  function getExternalHelpersModuleName(node) {\n    const parseNode = getOriginalNode(node, isSourceFile);\n    const emitNode = parseNode && parseNode.emitNode;\n    return emitNode && emitNode.externalHelpersModuleName;\n  }\n  function hasRecordedExternalHelpers(sourceFile) {\n    const parseNode = getOriginalNode(sourceFile, isSourceFile);\n    const emitNode = parseNode && parseNode.emitNode;\n    return !!emitNode && (!!emitNode.externalHelpersModuleName || !!emitNode.externalHelpers);\n  }\n  function createExternalHelpersImportDeclarationIfNeeded(nodeFactory, helperFactory, sourceFile, compilerOptions, hasExportStarsToExportValues, hasImportStar, hasImportDefault) {\n    if (compilerOptions.importHelpers && isEffectiveExternalModule(sourceFile, compilerOptions)) {\n      let namedBindings;\n      const moduleKind = getEmitModuleKind(compilerOptions);\n      if (moduleKind >= 5 && moduleKind <= 99 || sourceFile.impliedNodeFormat === 99) {\n        const helpers = getEmitHelpers(sourceFile);\n        if (helpers) {\n          const helperNames = [];\n          for (const helper of helpers) {\n            if (!helper.scoped) {\n              const importName = helper.importName;\n              if (importName) {\n                pushIfUnique(helperNames, importName);\n              }\n            }\n          }\n          if (some(helperNames)) {\n            helperNames.sort(compareStringsCaseSensitive);\n            namedBindings = nodeFactory.createNamedImports(map(helperNames, (name) => isFileLevelUniqueName(sourceFile, name) ? nodeFactory.createImportSpecifier(false, void 0, nodeFactory.createIdentifier(name)) : nodeFactory.createImportSpecifier(false, nodeFactory.createIdentifier(name), helperFactory.getUnscopedHelperName(name))));\n            const parseNode = getOriginalNode(sourceFile, isSourceFile);\n            const emitNode = getOrCreateEmitNode(parseNode);\n            emitNode.externalHelpers = true;\n          }\n        }\n      } else {\n        const externalHelpersModuleName = getOrCreateExternalHelpersModuleNameIfNeeded(nodeFactory, sourceFile, compilerOptions, hasExportStarsToExportValues, hasImportStar || hasImportDefault);\n        if (externalHelpersModuleName) {\n          namedBindings = nodeFactory.createNamespaceImport(externalHelpersModuleName);\n        }\n      }\n      if (namedBindings) {\n        const externalHelpersImportDeclaration = nodeFactory.createImportDeclaration(void 0, nodeFactory.createImportClause(false, void 0, namedBindings), nodeFactory.createStringLiteral(externalHelpersModuleNameText), void 0);\n        addInternalEmitFlags(externalHelpersImportDeclaration, 2);\n        return externalHelpersImportDeclaration;\n      }\n    }\n  }\n  function getOrCreateExternalHelpersModuleNameIfNeeded(factory2, node, compilerOptions, hasExportStarsToExportValues, hasImportStarOrImportDefault) {\n    if (compilerOptions.importHelpers && isEffectiveExternalModule(node, compilerOptions)) {\n      const externalHelpersModuleName = getExternalHelpersModuleName(node);\n      if (externalHelpersModuleName) {\n        return externalHelpersModuleName;\n      }\n      const moduleKind = getEmitModuleKind(compilerOptions);\n      let create2 = (hasExportStarsToExportValues || getESModuleInterop(compilerOptions) && hasImportStarOrImportDefault) && moduleKind !== 4 && (moduleKind < 5 || node.impliedNodeFormat === 1);\n      if (!create2) {\n        const helpers = getEmitHelpers(node);\n        if (helpers) {\n          for (const helper of helpers) {\n            if (!helper.scoped) {\n              create2 = true;\n              break;\n            }\n          }\n        }\n      }\n      if (create2) {\n        const parseNode = getOriginalNode(node, isSourceFile);\n        const emitNode = getOrCreateEmitNode(parseNode);\n        return emitNode.externalHelpersModuleName || (emitNode.externalHelpersModuleName = factory2.createUniqueName(externalHelpersModuleNameText));\n      }\n    }\n  }\n  function getLocalNameForExternalImport(factory2, node, sourceFile) {\n    const namespaceDeclaration = getNamespaceDeclarationNode(node);\n    if (namespaceDeclaration && !isDefaultImport(node) && !isExportNamespaceAsDefaultDeclaration(node)) {\n      const name = namespaceDeclaration.name;\n      return isGeneratedIdentifier(name) ? name : factory2.createIdentifier(getSourceTextOfNodeFromSourceFile(sourceFile, name) || idText(name));\n    }\n    if (node.kind === 269 && node.importClause) {\n      return factory2.getGeneratedNameForNode(node);\n    }\n    if (node.kind === 275 && node.moduleSpecifier) {\n      return factory2.getGeneratedNameForNode(node);\n    }\n    return void 0;\n  }\n  function getExternalModuleNameLiteral(factory2, importNode, sourceFile, host, resolver, compilerOptions) {\n    const moduleName = getExternalModuleName(importNode);\n    if (moduleName && isStringLiteral(moduleName)) {\n      return tryGetModuleNameFromDeclaration(importNode, host, factory2, resolver, compilerOptions) || tryRenameExternalModule(factory2, moduleName, sourceFile) || factory2.cloneNode(moduleName);\n    }\n    return void 0;\n  }\n  function tryRenameExternalModule(factory2, moduleName, sourceFile) {\n    const rename = sourceFile.renamedDependencies && sourceFile.renamedDependencies.get(moduleName.text);\n    return rename ? factory2.createStringLiteral(rename) : void 0;\n  }\n  function tryGetModuleNameFromFile(factory2, file, host, options) {\n    if (!file) {\n      return void 0;\n    }\n    if (file.moduleName) {\n      return factory2.createStringLiteral(file.moduleName);\n    }\n    if (!file.isDeclarationFile && outFile(options)) {\n      return factory2.createStringLiteral(getExternalModuleNameFromPath(host, file.fileName));\n    }\n    return void 0;\n  }\n  function tryGetModuleNameFromDeclaration(declaration, host, factory2, resolver, compilerOptions) {\n    return tryGetModuleNameFromFile(factory2, resolver.getExternalModuleFileFromDeclaration(declaration), host, compilerOptions);\n  }\n  function getInitializerOfBindingOrAssignmentElement(bindingElement) {\n    if (isDeclarationBindingElement(bindingElement)) {\n      return bindingElement.initializer;\n    }\n    if (isPropertyAssignment(bindingElement)) {\n      const initializer = bindingElement.initializer;\n      return isAssignmentExpression(initializer, true) ? initializer.right : void 0;\n    }\n    if (isShorthandPropertyAssignment(bindingElement)) {\n      return bindingElement.objectAssignmentInitializer;\n    }\n    if (isAssignmentExpression(bindingElement, true)) {\n      return bindingElement.right;\n    }\n    if (isSpreadElement(bindingElement)) {\n      return getInitializerOfBindingOrAssignmentElement(bindingElement.expression);\n    }\n  }\n  function getTargetOfBindingOrAssignmentElement(bindingElement) {\n    if (isDeclarationBindingElement(bindingElement)) {\n      return bindingElement.name;\n    }\n    if (isObjectLiteralElementLike(bindingElement)) {\n      switch (bindingElement.kind) {\n        case 299:\n          return getTargetOfBindingOrAssignmentElement(bindingElement.initializer);\n        case 300:\n          return bindingElement.name;\n        case 301:\n          return getTargetOfBindingOrAssignmentElement(bindingElement.expression);\n      }\n      return void 0;\n    }\n    if (isAssignmentExpression(bindingElement, true)) {\n      return getTargetOfBindingOrAssignmentElement(bindingElement.left);\n    }\n    if (isSpreadElement(bindingElement)) {\n      return getTargetOfBindingOrAssignmentElement(bindingElement.expression);\n    }\n    return bindingElement;\n  }\n  function getRestIndicatorOfBindingOrAssignmentElement(bindingElement) {\n    switch (bindingElement.kind) {\n      case 166:\n      case 205:\n        return bindingElement.dotDotDotToken;\n      case 227:\n      case 301:\n        return bindingElement;\n    }\n    return void 0;\n  }\n  function getPropertyNameOfBindingOrAssignmentElement(bindingElement) {\n    const propertyName = tryGetPropertyNameOfBindingOrAssignmentElement(bindingElement);\n    Debug.assert(!!propertyName || isSpreadAssignment(bindingElement), \"Invalid property name for binding element.\");\n    return propertyName;\n  }\n  function tryGetPropertyNameOfBindingOrAssignmentElement(bindingElement) {\n    switch (bindingElement.kind) {\n      case 205:\n        if (bindingElement.propertyName) {\n          const propertyName = bindingElement.propertyName;\n          if (isPrivateIdentifier(propertyName)) {\n            return Debug.failBadSyntaxKind(propertyName);\n          }\n          return isComputedPropertyName(propertyName) && isStringOrNumericLiteral(propertyName.expression) ? propertyName.expression : propertyName;\n        }\n        break;\n      case 299:\n        if (bindingElement.name) {\n          const propertyName = bindingElement.name;\n          if (isPrivateIdentifier(propertyName)) {\n            return Debug.failBadSyntaxKind(propertyName);\n          }\n          return isComputedPropertyName(propertyName) && isStringOrNumericLiteral(propertyName.expression) ? propertyName.expression : propertyName;\n        }\n        break;\n      case 301:\n        if (bindingElement.name && isPrivateIdentifier(bindingElement.name)) {\n          return Debug.failBadSyntaxKind(bindingElement.name);\n        }\n        return bindingElement.name;\n    }\n    const target = getTargetOfBindingOrAssignmentElement(bindingElement);\n    if (target && isPropertyName(target)) {\n      return target;\n    }\n  }\n  function isStringOrNumericLiteral(node) {\n    const kind = node.kind;\n    return kind === 10 || kind === 8;\n  }\n  function getElementsOfBindingOrAssignmentPattern(name) {\n    switch (name.kind) {\n      case 203:\n      case 204:\n      case 206:\n        return name.elements;\n      case 207:\n        return name.properties;\n    }\n  }\n  function getJSDocTypeAliasName(fullName) {\n    if (fullName) {\n      let rightNode = fullName;\n      while (true) {\n        if (isIdentifier(rightNode) || !rightNode.body) {\n          return isIdentifier(rightNode) ? rightNode : rightNode.name;\n        }\n        rightNode = rightNode.body;\n      }\n    }\n  }\n  function canHaveIllegalType(node) {\n    const kind = node.kind;\n    return kind === 173 || kind === 175;\n  }\n  function canHaveIllegalTypeParameters(node) {\n    const kind = node.kind;\n    return kind === 173 || kind === 174 || kind === 175;\n  }\n  function canHaveIllegalDecorators(node) {\n    const kind = node.kind;\n    return kind === 299 || kind === 300 || kind === 259 || kind === 173 || kind === 178 || kind === 172 || kind === 279 || kind === 240 || kind === 261 || kind === 262 || kind === 263 || kind === 264 || kind === 268 || kind === 269 || kind === 267 || kind === 275 || kind === 274;\n  }\n  function canHaveIllegalModifiers(node) {\n    const kind = node.kind;\n    return kind === 172 || kind === 299 || kind === 300 || kind === 279 || kind === 267;\n  }\n  function isQuestionOrExclamationToken(node) {\n    return isQuestionToken(node) || isExclamationToken(node);\n  }\n  function isIdentifierOrThisTypeNode(node) {\n    return isIdentifier(node) || isThisTypeNode(node);\n  }\n  function isReadonlyKeywordOrPlusOrMinusToken(node) {\n    return isReadonlyKeyword(node) || isPlusToken(node) || isMinusToken(node);\n  }\n  function isQuestionOrPlusOrMinusToken(node) {\n    return isQuestionToken(node) || isPlusToken(node) || isMinusToken(node);\n  }\n  function isModuleName(node) {\n    return isIdentifier(node) || isStringLiteral(node);\n  }\n  function isLiteralTypeLikeExpression(node) {\n    const kind = node.kind;\n    return kind === 104 || kind === 110 || kind === 95 || isLiteralExpression(node) || isPrefixUnaryExpression(node);\n  }\n  function isExponentiationOperator(kind) {\n    return kind === 42;\n  }\n  function isMultiplicativeOperator(kind) {\n    return kind === 41 || kind === 43 || kind === 44;\n  }\n  function isMultiplicativeOperatorOrHigher(kind) {\n    return isExponentiationOperator(kind) || isMultiplicativeOperator(kind);\n  }\n  function isAdditiveOperator(kind) {\n    return kind === 39 || kind === 40;\n  }\n  function isAdditiveOperatorOrHigher(kind) {\n    return isAdditiveOperator(kind) || isMultiplicativeOperatorOrHigher(kind);\n  }\n  function isShiftOperator(kind) {\n    return kind === 47 || kind === 48 || kind === 49;\n  }\n  function isShiftOperatorOrHigher(kind) {\n    return isShiftOperator(kind) || isAdditiveOperatorOrHigher(kind);\n  }\n  function isRelationalOperator(kind) {\n    return kind === 29 || kind === 32 || kind === 31 || kind === 33 || kind === 102 || kind === 101;\n  }\n  function isRelationalOperatorOrHigher(kind) {\n    return isRelationalOperator(kind) || isShiftOperatorOrHigher(kind);\n  }\n  function isEqualityOperator(kind) {\n    return kind === 34 || kind === 36 || kind === 35 || kind === 37;\n  }\n  function isEqualityOperatorOrHigher(kind) {\n    return isEqualityOperator(kind) || isRelationalOperatorOrHigher(kind);\n  }\n  function isBitwiseOperator(kind) {\n    return kind === 50 || kind === 51 || kind === 52;\n  }\n  function isBitwiseOperatorOrHigher(kind) {\n    return isBitwiseOperator(kind) || isEqualityOperatorOrHigher(kind);\n  }\n  function isLogicalOperator2(kind) {\n    return kind === 55 || kind === 56;\n  }\n  function isLogicalOperatorOrHigher(kind) {\n    return isLogicalOperator2(kind) || isBitwiseOperatorOrHigher(kind);\n  }\n  function isAssignmentOperatorOrHigher(kind) {\n    return kind === 60 || isLogicalOperatorOrHigher(kind) || isAssignmentOperator(kind);\n  }\n  function isBinaryOperator(kind) {\n    return isAssignmentOperatorOrHigher(kind) || kind === 27;\n  }\n  function isBinaryOperatorToken(node) {\n    return isBinaryOperator(node.kind);\n  }\n  function createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight, onExit, foldState) {\n    const machine = new BinaryExpressionStateMachine(onEnter, onLeft, onOperator, onRight, onExit, foldState);\n    return trampoline;\n    function trampoline(node, outerState) {\n      const resultHolder = { value: void 0 };\n      const stateStack = [BinaryExpressionState.enter];\n      const nodeStack = [node];\n      const userStateStack = [void 0];\n      let stackIndex = 0;\n      while (stateStack[stackIndex] !== BinaryExpressionState.done) {\n        stackIndex = stateStack[stackIndex](machine, stackIndex, stateStack, nodeStack, userStateStack, resultHolder, outerState);\n      }\n      Debug.assertEqual(stackIndex, 0);\n      return resultHolder.value;\n    }\n  }\n  function isExportOrDefaultKeywordKind(kind) {\n    return kind === 93 || kind === 88;\n  }\n  function isExportOrDefaultModifier(node) {\n    const kind = node.kind;\n    return isExportOrDefaultKeywordKind(kind);\n  }\n  function isNonExportDefaultModifier(node) {\n    const kind = node.kind;\n    return isModifierKind(kind) && !isExportOrDefaultKeywordKind(kind);\n  }\n  function elideNodes(factory2, nodes) {\n    if (nodes === void 0)\n      return void 0;\n    if (nodes.length === 0)\n      return nodes;\n    return setTextRange(factory2.createNodeArray([], nodes.hasTrailingComma), nodes);\n  }\n  function getNodeForGeneratedName(name) {\n    var _a2;\n    const autoGenerate = name.emitNode.autoGenerate;\n    if (autoGenerate.flags & 4) {\n      const autoGenerateId = autoGenerate.id;\n      let node = name;\n      let original = node.original;\n      while (original) {\n        node = original;\n        const autoGenerate2 = (_a2 = node.emitNode) == null ? void 0 : _a2.autoGenerate;\n        if (isMemberName(node) && (autoGenerate2 === void 0 || !!(autoGenerate2.flags & 4) && autoGenerate2.id !== autoGenerateId)) {\n          break;\n        }\n        original = node.original;\n      }\n      return node;\n    }\n    return name;\n  }\n  function formatGeneratedNamePart(part, generateName) {\n    return typeof part === \"object\" ? formatGeneratedName(false, part.prefix, part.node, part.suffix, generateName) : typeof part === \"string\" ? part.length > 0 && part.charCodeAt(0) === 35 ? part.slice(1) : part : \"\";\n  }\n  function formatIdentifier(name, generateName) {\n    return typeof name === \"string\" ? name : formatIdentifierWorker(name, Debug.checkDefined(generateName));\n  }\n  function formatIdentifierWorker(node, generateName) {\n    return isGeneratedPrivateIdentifier(node) ? generateName(node).slice(1) : isGeneratedIdentifier(node) ? generateName(node) : isPrivateIdentifier(node) ? node.escapedText.slice(1) : idText(node);\n  }\n  function formatGeneratedName(privateName, prefix, baseName, suffix, generateName) {\n    prefix = formatGeneratedNamePart(prefix, generateName);\n    suffix = formatGeneratedNamePart(suffix, generateName);\n    baseName = formatIdentifier(baseName, generateName);\n    return `${privateName ? \"#\" : \"\"}${prefix}${baseName}${suffix}`;\n  }\n  function createAccessorPropertyBackingField(factory2, node, modifiers, initializer) {\n    return factory2.updatePropertyDeclaration(node, modifiers, factory2.getGeneratedPrivateNameForNode(node.name, void 0, \"_accessor_storage\"), void 0, void 0, initializer);\n  }\n  function createAccessorPropertyGetRedirector(factory2, node, modifiers, name) {\n    return factory2.createGetAccessorDeclaration(modifiers, name, [], void 0, factory2.createBlock([\n      factory2.createReturnStatement(factory2.createPropertyAccessExpression(factory2.createThis(), factory2.getGeneratedPrivateNameForNode(node.name, void 0, \"_accessor_storage\")))\n    ]));\n  }\n  function createAccessorPropertySetRedirector(factory2, node, modifiers, name) {\n    return factory2.createSetAccessorDeclaration(modifiers, name, [factory2.createParameterDeclaration(void 0, void 0, \"value\")], factory2.createBlock([\n      factory2.createExpressionStatement(factory2.createAssignment(factory2.createPropertyAccessExpression(factory2.createThis(), factory2.getGeneratedPrivateNameForNode(node.name, void 0, \"_accessor_storage\")), factory2.createIdentifier(\"value\")))\n    ]));\n  }\n  function findComputedPropertyNameCacheAssignment(name) {\n    let node = name.expression;\n    while (true) {\n      node = skipOuterExpressions(node);\n      if (isCommaListExpression(node)) {\n        node = last(node.elements);\n        continue;\n      }\n      if (isCommaExpression(node)) {\n        node = node.right;\n        continue;\n      }\n      if (isAssignmentExpression(node, true) && isGeneratedIdentifier(node.left)) {\n        return node;\n      }\n      break;\n    }\n  }\n  function isSyntheticParenthesizedExpression(node) {\n    return isParenthesizedExpression(node) && nodeIsSynthesized(node) && !node.emitNode;\n  }\n  function flattenCommaListWorker(node, expressions) {\n    if (isSyntheticParenthesizedExpression(node)) {\n      flattenCommaListWorker(node.expression, expressions);\n    } else if (isCommaExpression(node)) {\n      flattenCommaListWorker(node.left, expressions);\n      flattenCommaListWorker(node.right, expressions);\n    } else if (isCommaListExpression(node)) {\n      for (const child of node.elements) {\n        flattenCommaListWorker(child, expressions);\n      }\n    } else {\n      expressions.push(node);\n    }\n  }\n  function flattenCommaList(node) {\n    const expressions = [];\n    flattenCommaListWorker(node, expressions);\n    return expressions;\n  }\n  function containsObjectRestOrSpread(node) {\n    if (node.transformFlags & 65536)\n      return true;\n    if (node.transformFlags & 128) {\n      for (const element of getElementsOfBindingOrAssignmentPattern(node)) {\n        const target = getTargetOfBindingOrAssignmentElement(element);\n        if (target && isAssignmentPattern(target)) {\n          if (target.transformFlags & 65536) {\n            return true;\n          }\n          if (target.transformFlags & 128) {\n            if (containsObjectRestOrSpread(target))\n              return true;\n          }\n        }\n      }\n    }\n    return false;\n  }\n  var BinaryExpressionState, BinaryExpressionStateMachine;\n  var init_utilities2 = __esm({\n    \"src/compiler/factory/utilities.ts\"() {\n      \"use strict\";\n      init_ts2();\n      ((BinaryExpressionState2) => {\n        function enter(machine, stackIndex, stateStack, nodeStack, userStateStack, _resultHolder, outerState) {\n          const prevUserState = stackIndex > 0 ? userStateStack[stackIndex - 1] : void 0;\n          Debug.assertEqual(stateStack[stackIndex], enter);\n          userStateStack[stackIndex] = machine.onEnter(nodeStack[stackIndex], prevUserState, outerState);\n          stateStack[stackIndex] = nextState(machine, enter);\n          return stackIndex;\n        }\n        BinaryExpressionState2.enter = enter;\n        function left(machine, stackIndex, stateStack, nodeStack, userStateStack, _resultHolder, _outerState) {\n          Debug.assertEqual(stateStack[stackIndex], left);\n          Debug.assertIsDefined(machine.onLeft);\n          stateStack[stackIndex] = nextState(machine, left);\n          const nextNode = machine.onLeft(nodeStack[stackIndex].left, userStateStack[stackIndex], nodeStack[stackIndex]);\n          if (nextNode) {\n            checkCircularity(stackIndex, nodeStack, nextNode);\n            return pushStack(stackIndex, stateStack, nodeStack, userStateStack, nextNode);\n          }\n          return stackIndex;\n        }\n        BinaryExpressionState2.left = left;\n        function operator(machine, stackIndex, stateStack, nodeStack, userStateStack, _resultHolder, _outerState) {\n          Debug.assertEqual(stateStack[stackIndex], operator);\n          Debug.assertIsDefined(machine.onOperator);\n          stateStack[stackIndex] = nextState(machine, operator);\n          machine.onOperator(nodeStack[stackIndex].operatorToken, userStateStack[stackIndex], nodeStack[stackIndex]);\n          return stackIndex;\n        }\n        BinaryExpressionState2.operator = operator;\n        function right(machine, stackIndex, stateStack, nodeStack, userStateStack, _resultHolder, _outerState) {\n          Debug.assertEqual(stateStack[stackIndex], right);\n          Debug.assertIsDefined(machine.onRight);\n          stateStack[stackIndex] = nextState(machine, right);\n          const nextNode = machine.onRight(nodeStack[stackIndex].right, userStateStack[stackIndex], nodeStack[stackIndex]);\n          if (nextNode) {\n            checkCircularity(stackIndex, nodeStack, nextNode);\n            return pushStack(stackIndex, stateStack, nodeStack, userStateStack, nextNode);\n          }\n          return stackIndex;\n        }\n        BinaryExpressionState2.right = right;\n        function exit(machine, stackIndex, stateStack, nodeStack, userStateStack, resultHolder, _outerState) {\n          Debug.assertEqual(stateStack[stackIndex], exit);\n          stateStack[stackIndex] = nextState(machine, exit);\n          const result = machine.onExit(nodeStack[stackIndex], userStateStack[stackIndex]);\n          if (stackIndex > 0) {\n            stackIndex--;\n            if (machine.foldState) {\n              const side = stateStack[stackIndex] === exit ? \"right\" : \"left\";\n              userStateStack[stackIndex] = machine.foldState(userStateStack[stackIndex], result, side);\n            }\n          } else {\n            resultHolder.value = result;\n          }\n          return stackIndex;\n        }\n        BinaryExpressionState2.exit = exit;\n        function done(_machine, stackIndex, stateStack, _nodeStack, _userStateStack, _resultHolder, _outerState) {\n          Debug.assertEqual(stateStack[stackIndex], done);\n          return stackIndex;\n        }\n        BinaryExpressionState2.done = done;\n        function nextState(machine, currentState) {\n          switch (currentState) {\n            case enter:\n              if (machine.onLeft)\n                return left;\n            case left:\n              if (machine.onOperator)\n                return operator;\n            case operator:\n              if (machine.onRight)\n                return right;\n            case right:\n              return exit;\n            case exit:\n              return done;\n            case done:\n              return done;\n            default:\n              Debug.fail(\"Invalid state\");\n          }\n        }\n        BinaryExpressionState2.nextState = nextState;\n        function pushStack(stackIndex, stateStack, nodeStack, userStateStack, node) {\n          stackIndex++;\n          stateStack[stackIndex] = enter;\n          nodeStack[stackIndex] = node;\n          userStateStack[stackIndex] = void 0;\n          return stackIndex;\n        }\n        function checkCircularity(stackIndex, nodeStack, node) {\n          if (Debug.shouldAssert(2)) {\n            while (stackIndex >= 0) {\n              Debug.assert(nodeStack[stackIndex] !== node, \"Circular traversal detected.\");\n              stackIndex--;\n            }\n          }\n        }\n      })(BinaryExpressionState || (BinaryExpressionState = {}));\n      BinaryExpressionStateMachine = class {\n        constructor(onEnter, onLeft, onOperator, onRight, onExit, foldState) {\n          this.onEnter = onEnter;\n          this.onLeft = onLeft;\n          this.onOperator = onOperator;\n          this.onRight = onRight;\n          this.onExit = onExit;\n          this.foldState = foldState;\n        }\n      };\n    }\n  });\n  function setTextRange(range, location) {\n    return location ? setTextRangePosEnd(range, location.pos, location.end) : range;\n  }\n  function canHaveModifiers(node) {\n    const kind = node.kind;\n    return kind === 165 || kind === 166 || kind === 168 || kind === 169 || kind === 170 || kind === 171 || kind === 173 || kind === 174 || kind === 175 || kind === 178 || kind === 182 || kind === 215 || kind === 216 || kind === 228 || kind === 240 || kind === 259 || kind === 260 || kind === 261 || kind === 262 || kind === 263 || kind === 264 || kind === 268 || kind === 269 || kind === 274 || kind === 275;\n  }\n  function canHaveDecorators(node) {\n    const kind = node.kind;\n    return kind === 166 || kind === 169 || kind === 171 || kind === 174 || kind === 175 || kind === 228 || kind === 260;\n  }\n  var init_utilitiesPublic2 = __esm({\n    \"src/compiler/factory/utilitiesPublic.ts\"() {\n      \"use strict\";\n      init_ts2();\n    }\n  });\n  function visitNode2(cbNode, node) {\n    return node && cbNode(node);\n  }\n  function visitNodes(cbNode, cbNodes, nodes) {\n    if (nodes) {\n      if (cbNodes) {\n        return cbNodes(nodes);\n      }\n      for (const node of nodes) {\n        const result = cbNode(node);\n        if (result) {\n          return result;\n        }\n      }\n    }\n  }\n  function isJSDocLikeText(text, start) {\n    return text.charCodeAt(start + 1) === 42 && text.charCodeAt(start + 2) === 42 && text.charCodeAt(start + 3) !== 47;\n  }\n  function isFileProbablyExternalModule(sourceFile) {\n    return forEach(sourceFile.statements, isAnExternalModuleIndicatorNode) || getImportMetaIfNecessary(sourceFile);\n  }\n  function isAnExternalModuleIndicatorNode(node) {\n    return canHaveModifiers(node) && hasModifierOfKind(node, 93) || isImportEqualsDeclaration(node) && isExternalModuleReference(node.moduleReference) || isImportDeclaration(node) || isExportAssignment(node) || isExportDeclaration(node) ? node : void 0;\n  }\n  function getImportMetaIfNecessary(sourceFile) {\n    return sourceFile.flags & 4194304 ? walkTreeForImportMeta(sourceFile) : void 0;\n  }\n  function walkTreeForImportMeta(node) {\n    return isImportMeta2(node) ? node : forEachChild(node, walkTreeForImportMeta);\n  }\n  function hasModifierOfKind(node, kind) {\n    return some(node.modifiers, (m) => m.kind === kind);\n  }\n  function isImportMeta2(node) {\n    return isMetaProperty(node) && node.keywordToken === 100 && node.name.escapedText === \"meta\";\n  }\n  function forEachChildInCallOrConstructSignature(node, cbNode, cbNodes) {\n    return visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type);\n  }\n  function forEachChildInUnionOrIntersectionType(node, cbNode, cbNodes) {\n    return visitNodes(cbNode, cbNodes, node.types);\n  }\n  function forEachChildInParenthesizedTypeOrTypeOperator(node, cbNode, _cbNodes) {\n    return visitNode2(cbNode, node.type);\n  }\n  function forEachChildInObjectOrArrayBindingPattern(node, cbNode, cbNodes) {\n    return visitNodes(cbNode, cbNodes, node.elements);\n  }\n  function forEachChildInCallOrNewExpression(node, cbNode, cbNodes) {\n    return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.questionDotToken) || visitNodes(cbNode, cbNodes, node.typeArguments) || visitNodes(cbNode, cbNodes, node.arguments);\n  }\n  function forEachChildInBlock(node, cbNode, cbNodes) {\n    return visitNodes(cbNode, cbNodes, node.statements);\n  }\n  function forEachChildInContinueOrBreakStatement(node, cbNode, _cbNodes) {\n    return visitNode2(cbNode, node.label);\n  }\n  function forEachChildInClassDeclarationOrExpression(node, cbNode, cbNodes) {\n    return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.heritageClauses) || visitNodes(cbNode, cbNodes, node.members);\n  }\n  function forEachChildInNamedImportsOrExports(node, cbNode, cbNodes) {\n    return visitNodes(cbNode, cbNodes, node.elements);\n  }\n  function forEachChildInImportOrExportSpecifier(node, cbNode, _cbNodes) {\n    return visitNode2(cbNode, node.propertyName) || visitNode2(cbNode, node.name);\n  }\n  function forEachChildInJsxOpeningOrSelfClosingElement(node, cbNode, cbNodes) {\n    return visitNode2(cbNode, node.tagName) || visitNodes(cbNode, cbNodes, node.typeArguments) || visitNode2(cbNode, node.attributes);\n  }\n  function forEachChildInOptionalRestOrJSDocParameterModifier(node, cbNode, _cbNodes) {\n    return visitNode2(cbNode, node.type);\n  }\n  function forEachChildInJSDocParameterOrPropertyTag(node, cbNode, cbNodes) {\n    return visitNode2(cbNode, node.tagName) || (node.isNameFirst ? visitNode2(cbNode, node.name) || visitNode2(cbNode, node.typeExpression) : visitNode2(cbNode, node.typeExpression) || visitNode2(cbNode, node.name)) || (typeof node.comment === \"string\" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));\n  }\n  function forEachChildInJSDocTypeLikeTag(node, cbNode, cbNodes) {\n    return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === \"string\" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));\n  }\n  function forEachChildInJSDocLinkCodeOrPlain(node, cbNode, _cbNodes) {\n    return visitNode2(cbNode, node.name);\n  }\n  function forEachChildInJSDocTag(node, cbNode, cbNodes) {\n    return visitNode2(cbNode, node.tagName) || (typeof node.comment === \"string\" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));\n  }\n  function forEachChildInPartiallyEmittedExpression(node, cbNode, _cbNodes) {\n    return visitNode2(cbNode, node.expression);\n  }\n  function forEachChild(node, cbNode, cbNodes) {\n    if (node === void 0 || node.kind <= 162) {\n      return;\n    }\n    const fn = forEachChildTable[node.kind];\n    return fn === void 0 ? void 0 : fn(node, cbNode, cbNodes);\n  }\n  function forEachChildRecursively(rootNode, cbNode, cbNodes) {\n    const queue = gatherPossibleChildren(rootNode);\n    const parents = [];\n    while (parents.length < queue.length) {\n      parents.push(rootNode);\n    }\n    while (queue.length !== 0) {\n      const current = queue.pop();\n      const parent2 = parents.pop();\n      if (isArray(current)) {\n        if (cbNodes) {\n          const res = cbNodes(current, parent2);\n          if (res) {\n            if (res === \"skip\")\n              continue;\n            return res;\n          }\n        }\n        for (let i = current.length - 1; i >= 0; --i) {\n          queue.push(current[i]);\n          parents.push(parent2);\n        }\n      } else {\n        const res = cbNode(current, parent2);\n        if (res) {\n          if (res === \"skip\")\n            continue;\n          return res;\n        }\n        if (current.kind >= 163) {\n          for (const child of gatherPossibleChildren(current)) {\n            queue.push(child);\n            parents.push(current);\n          }\n        }\n      }\n    }\n  }\n  function gatherPossibleChildren(node) {\n    const children = [];\n    forEachChild(node, addWorkItem, addWorkItem);\n    return children;\n    function addWorkItem(n) {\n      children.unshift(n);\n    }\n  }\n  function setExternalModuleIndicator(sourceFile) {\n    sourceFile.externalModuleIndicator = isFileProbablyExternalModule(sourceFile);\n  }\n  function createSourceFile(fileName, sourceText, languageVersionOrOptions, setParentNodes = false, scriptKind) {\n    var _a2, _b;\n    (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Parse, \"createSourceFile\", { path: fileName }, true);\n    mark(\"beforeParse\");\n    let result;\n    perfLogger.logStartParseSourceFile(fileName);\n    const {\n      languageVersion,\n      setExternalModuleIndicator: overrideSetExternalModuleIndicator,\n      impliedNodeFormat: format\n    } = typeof languageVersionOrOptions === \"object\" ? languageVersionOrOptions : { languageVersion: languageVersionOrOptions };\n    if (languageVersion === 100) {\n      result = Parser.parseSourceFile(fileName, sourceText, languageVersion, void 0, setParentNodes, 6, noop);\n    } else {\n      const setIndicator = format === void 0 ? overrideSetExternalModuleIndicator : (file) => {\n        file.impliedNodeFormat = format;\n        return (overrideSetExternalModuleIndicator || setExternalModuleIndicator)(file);\n      };\n      result = Parser.parseSourceFile(fileName, sourceText, languageVersion, void 0, setParentNodes, scriptKind, setIndicator);\n    }\n    perfLogger.logStopParseSourceFile();\n    mark(\"afterParse\");\n    measure(\"Parse\", \"beforeParse\", \"afterParse\");\n    (_b = tracing) == null ? void 0 : _b.pop();\n    return result;\n  }\n  function parseIsolatedEntityName(text, languageVersion) {\n    return Parser.parseIsolatedEntityName(text, languageVersion);\n  }\n  function parseJsonText(fileName, sourceText) {\n    return Parser.parseJsonText(fileName, sourceText);\n  }\n  function isExternalModule(file) {\n    return file.externalModuleIndicator !== void 0;\n  }\n  function updateSourceFile(sourceFile, newText, textChangeRange, aggressiveChecks = false) {\n    const newSourceFile = IncrementalParser.updateSourceFile(sourceFile, newText, textChangeRange, aggressiveChecks);\n    newSourceFile.flags |= sourceFile.flags & 6291456;\n    return newSourceFile;\n  }\n  function parseIsolatedJSDocComment(content, start, length2) {\n    const result = Parser.JSDocParser.parseIsolatedJSDocComment(content, start, length2);\n    if (result && result.jsDoc) {\n      Parser.fixupParentReferences(result.jsDoc);\n    }\n    return result;\n  }\n  function parseJSDocTypeExpressionForTests(content, start, length2) {\n    return Parser.JSDocParser.parseJSDocTypeExpressionForTests(content, start, length2);\n  }\n  function isDeclarationFileName(fileName) {\n    return fileExtensionIsOneOf(fileName, supportedDeclarationExtensions) || fileExtensionIs(fileName, \".ts\") && stringContains(getBaseFileName(fileName), \".d.\");\n  }\n  function parseResolutionMode(mode, pos, end, reportDiagnostic) {\n    if (!mode) {\n      return void 0;\n    }\n    if (mode === \"import\") {\n      return 99;\n    }\n    if (mode === \"require\") {\n      return 1;\n    }\n    reportDiagnostic(pos, end - pos, Diagnostics.resolution_mode_should_be_either_require_or_import);\n    return void 0;\n  }\n  function processCommentPragmas(context, sourceText) {\n    const pragmas = [];\n    for (const range of getLeadingCommentRanges(sourceText, 0) || emptyArray) {\n      const comment = sourceText.substring(range.pos, range.end);\n      extractPragmas(pragmas, range, comment);\n    }\n    context.pragmas = /* @__PURE__ */ new Map();\n    for (const pragma of pragmas) {\n      if (context.pragmas.has(pragma.name)) {\n        const currentValue = context.pragmas.get(pragma.name);\n        if (currentValue instanceof Array) {\n          currentValue.push(pragma.args);\n        } else {\n          context.pragmas.set(pragma.name, [currentValue, pragma.args]);\n        }\n        continue;\n      }\n      context.pragmas.set(pragma.name, pragma.args);\n    }\n  }\n  function processPragmasIntoFields(context, reportDiagnostic) {\n    context.checkJsDirective = void 0;\n    context.referencedFiles = [];\n    context.typeReferenceDirectives = [];\n    context.libReferenceDirectives = [];\n    context.amdDependencies = [];\n    context.hasNoDefaultLib = false;\n    context.pragmas.forEach((entryOrList, key) => {\n      switch (key) {\n        case \"reference\": {\n          const referencedFiles = context.referencedFiles;\n          const typeReferenceDirectives = context.typeReferenceDirectives;\n          const libReferenceDirectives = context.libReferenceDirectives;\n          forEach(toArray(entryOrList), (arg) => {\n            const { types, lib, path, [\"resolution-mode\"]: res } = arg.arguments;\n            if (arg.arguments[\"no-default-lib\"]) {\n              context.hasNoDefaultLib = true;\n            } else if (types) {\n              const parsed = parseResolutionMode(res, types.pos, types.end, reportDiagnostic);\n              typeReferenceDirectives.push({ pos: types.pos, end: types.end, fileName: types.value, ...parsed ? { resolutionMode: parsed } : {} });\n            } else if (lib) {\n              libReferenceDirectives.push({ pos: lib.pos, end: lib.end, fileName: lib.value });\n            } else if (path) {\n              referencedFiles.push({ pos: path.pos, end: path.end, fileName: path.value });\n            } else {\n              reportDiagnostic(arg.range.pos, arg.range.end - arg.range.pos, Diagnostics.Invalid_reference_directive_syntax);\n            }\n          });\n          break;\n        }\n        case \"amd-dependency\": {\n          context.amdDependencies = map(toArray(entryOrList), (x) => ({ name: x.arguments.name, path: x.arguments.path }));\n          break;\n        }\n        case \"amd-module\": {\n          if (entryOrList instanceof Array) {\n            for (const entry of entryOrList) {\n              if (context.moduleName) {\n                reportDiagnostic(entry.range.pos, entry.range.end - entry.range.pos, Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments);\n              }\n              context.moduleName = entry.arguments.name;\n            }\n          } else {\n            context.moduleName = entryOrList.arguments.name;\n          }\n          break;\n        }\n        case \"ts-nocheck\":\n        case \"ts-check\": {\n          forEach(toArray(entryOrList), (entry) => {\n            if (!context.checkJsDirective || entry.range.pos > context.checkJsDirective.pos) {\n              context.checkJsDirective = {\n                enabled: key === \"ts-check\",\n                end: entry.range.end,\n                pos: entry.range.pos\n              };\n            }\n          });\n          break;\n        }\n        case \"jsx\":\n        case \"jsxfrag\":\n        case \"jsximportsource\":\n        case \"jsxruntime\":\n          return;\n        default:\n          Debug.fail(\"Unhandled pragma kind\");\n      }\n    });\n  }\n  function getNamedArgRegEx(name) {\n    if (namedArgRegExCache.has(name)) {\n      return namedArgRegExCache.get(name);\n    }\n    const result = new RegExp(`(\\\\s${name}\\\\s*=\\\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))`, \"im\");\n    namedArgRegExCache.set(name, result);\n    return result;\n  }\n  function extractPragmas(pragmas, range, text) {\n    const tripleSlash = range.kind === 2 && tripleSlashXMLCommentStartRegEx.exec(text);\n    if (tripleSlash) {\n      const name = tripleSlash[1].toLowerCase();\n      const pragma = commentPragmas[name];\n      if (!pragma || !(pragma.kind & 1)) {\n        return;\n      }\n      if (pragma.args) {\n        const argument = {};\n        for (const arg of pragma.args) {\n          const matcher = getNamedArgRegEx(arg.name);\n          const matchResult = matcher.exec(text);\n          if (!matchResult && !arg.optional) {\n            return;\n          } else if (matchResult) {\n            const value = matchResult[2] || matchResult[3];\n            if (arg.captureSpan) {\n              const startPos = range.pos + matchResult.index + matchResult[1].length + 1;\n              argument[arg.name] = {\n                value,\n                pos: startPos,\n                end: startPos + value.length\n              };\n            } else {\n              argument[arg.name] = value;\n            }\n          }\n        }\n        pragmas.push({ name, args: { arguments: argument, range } });\n      } else {\n        pragmas.push({ name, args: { arguments: {}, range } });\n      }\n      return;\n    }\n    const singleLine = range.kind === 2 && singleLinePragmaRegEx.exec(text);\n    if (singleLine) {\n      return addPragmaForMatch(pragmas, range, 2, singleLine);\n    }\n    if (range.kind === 3) {\n      const multiLinePragmaRegEx = /@(\\S+)(\\s+.*)?$/gim;\n      let multiLineMatch;\n      while (multiLineMatch = multiLinePragmaRegEx.exec(text)) {\n        addPragmaForMatch(pragmas, range, 4, multiLineMatch);\n      }\n    }\n  }\n  function addPragmaForMatch(pragmas, range, kind, match) {\n    if (!match)\n      return;\n    const name = match[1].toLowerCase();\n    const pragma = commentPragmas[name];\n    if (!pragma || !(pragma.kind & kind)) {\n      return;\n    }\n    const args = match[2];\n    const argument = getNamedPragmaArguments(pragma, args);\n    if (argument === \"fail\")\n      return;\n    pragmas.push({ name, args: { arguments: argument, range } });\n    return;\n  }\n  function getNamedPragmaArguments(pragma, text) {\n    if (!text)\n      return {};\n    if (!pragma.args)\n      return {};\n    const args = trimString(text).split(/\\s+/);\n    const argMap = {};\n    for (let i = 0; i < pragma.args.length; i++) {\n      const argument = pragma.args[i];\n      if (!args[i] && !argument.optional) {\n        return \"fail\";\n      }\n      if (argument.captureSpan) {\n        return Debug.fail(\"Capture spans not yet implemented for non-xml pragmas\");\n      }\n      argMap[argument.name] = args[i];\n    }\n    return argMap;\n  }\n  function tagNamesAreEquivalent(lhs, rhs) {\n    if (lhs.kind !== rhs.kind) {\n      return false;\n    }\n    if (lhs.kind === 79) {\n      return lhs.escapedText === rhs.escapedText;\n    }\n    if (lhs.kind === 108) {\n      return true;\n    }\n    return lhs.name.escapedText === rhs.name.escapedText && tagNamesAreEquivalent(lhs.expression, rhs.expression);\n  }\n  var NodeConstructor, TokenConstructor, IdentifierConstructor, PrivateIdentifierConstructor, SourceFileConstructor, parseBaseNodeFactory, parseNodeFactory, forEachChildTable, Parser, IncrementalParser, namedArgRegExCache, tripleSlashXMLCommentStartRegEx, singleLinePragmaRegEx;\n  var init_parser = __esm({\n    \"src/compiler/parser.ts\"() {\n      \"use strict\";\n      init_ts2();\n      init_ts2();\n      init_ts_performance();\n      parseBaseNodeFactory = {\n        createBaseSourceFileNode: (kind) => new (SourceFileConstructor || (SourceFileConstructor = objectAllocator.getSourceFileConstructor()))(kind, -1, -1),\n        createBaseIdentifierNode: (kind) => new (IdentifierConstructor || (IdentifierConstructor = objectAllocator.getIdentifierConstructor()))(kind, -1, -1),\n        createBasePrivateIdentifierNode: (kind) => new (PrivateIdentifierConstructor || (PrivateIdentifierConstructor = objectAllocator.getPrivateIdentifierConstructor()))(kind, -1, -1),\n        createBaseTokenNode: (kind) => new (TokenConstructor || (TokenConstructor = objectAllocator.getTokenConstructor()))(kind, -1, -1),\n        createBaseNode: (kind) => new (NodeConstructor || (NodeConstructor = objectAllocator.getNodeConstructor()))(kind, -1, -1)\n      };\n      parseNodeFactory = createNodeFactory(1, parseBaseNodeFactory);\n      forEachChildTable = {\n        [163]: function forEachChildInQualifiedName(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.left) || visitNode2(cbNode, node.right);\n        },\n        [165]: function forEachChildInTypeParameter(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.constraint) || visitNode2(cbNode, node.default) || visitNode2(cbNode, node.expression);\n        },\n        [300]: function forEachChildInShorthandPropertyAssignment(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.equalsToken) || visitNode2(cbNode, node.objectAssignmentInitializer);\n        },\n        [301]: function forEachChildInSpreadAssignment(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.expression);\n        },\n        [166]: function forEachChildInParameter(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer);\n        },\n        [169]: function forEachChildInPropertyDeclaration(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer);\n        },\n        [168]: function forEachChildInPropertySignature(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer);\n        },\n        [299]: function forEachChildInPropertyAssignment(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.initializer);\n        },\n        [257]: function forEachChildInVariableDeclaration(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer);\n        },\n        [205]: function forEachChildInBindingElement(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.propertyName) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.initializer);\n        },\n        [178]: function forEachChildInIndexSignature(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type);\n        },\n        [182]: function forEachChildInConstructorType(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type);\n        },\n        [181]: function forEachChildInFunctionType(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type);\n        },\n        [176]: forEachChildInCallOrConstructSignature,\n        [177]: forEachChildInCallOrConstructSignature,\n        [171]: function forEachChildInMethodDeclaration(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body);\n        },\n        [170]: function forEachChildInMethodSignature(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type);\n        },\n        [173]: function forEachChildInConstructor(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body);\n        },\n        [174]: function forEachChildInGetAccessor(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body);\n        },\n        [175]: function forEachChildInSetAccessor(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body);\n        },\n        [259]: function forEachChildInFunctionDeclaration(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body);\n        },\n        [215]: function forEachChildInFunctionExpression(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body);\n        },\n        [216]: function forEachChildInArrowFunction(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.equalsGreaterThanToken) || visitNode2(cbNode, node.body);\n        },\n        [172]: function forEachChildInClassStaticBlockDeclaration(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.body);\n        },\n        [180]: function forEachChildInTypeReference(node, cbNode, cbNodes) {\n          return visitNode2(cbNode, node.typeName) || visitNodes(cbNode, cbNodes, node.typeArguments);\n        },\n        [179]: function forEachChildInTypePredicate(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.assertsModifier) || visitNode2(cbNode, node.parameterName) || visitNode2(cbNode, node.type);\n        },\n        [183]: function forEachChildInTypeQuery(node, cbNode, cbNodes) {\n          return visitNode2(cbNode, node.exprName) || visitNodes(cbNode, cbNodes, node.typeArguments);\n        },\n        [184]: function forEachChildInTypeLiteral(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.members);\n        },\n        [185]: function forEachChildInArrayType(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.elementType);\n        },\n        [186]: function forEachChildInTupleType(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.elements);\n        },\n        [189]: forEachChildInUnionOrIntersectionType,\n        [190]: forEachChildInUnionOrIntersectionType,\n        [191]: function forEachChildInConditionalType(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.checkType) || visitNode2(cbNode, node.extendsType) || visitNode2(cbNode, node.trueType) || visitNode2(cbNode, node.falseType);\n        },\n        [192]: function forEachChildInInferType(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.typeParameter);\n        },\n        [202]: function forEachChildInImportType(node, cbNode, cbNodes) {\n          return visitNode2(cbNode, node.argument) || visitNode2(cbNode, node.assertions) || visitNode2(cbNode, node.qualifier) || visitNodes(cbNode, cbNodes, node.typeArguments);\n        },\n        [298]: function forEachChildInImportTypeAssertionContainer(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.assertClause);\n        },\n        [193]: forEachChildInParenthesizedTypeOrTypeOperator,\n        [195]: forEachChildInParenthesizedTypeOrTypeOperator,\n        [196]: function forEachChildInIndexedAccessType(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.objectType) || visitNode2(cbNode, node.indexType);\n        },\n        [197]: function forEachChildInMappedType(node, cbNode, cbNodes) {\n          return visitNode2(cbNode, node.readonlyToken) || visitNode2(cbNode, node.typeParameter) || visitNode2(cbNode, node.nameType) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type) || visitNodes(cbNode, cbNodes, node.members);\n        },\n        [198]: function forEachChildInLiteralType(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.literal);\n        },\n        [199]: function forEachChildInNamedTupleMember(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type);\n        },\n        [203]: forEachChildInObjectOrArrayBindingPattern,\n        [204]: forEachChildInObjectOrArrayBindingPattern,\n        [206]: function forEachChildInArrayLiteralExpression(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.elements);\n        },\n        [207]: function forEachChildInObjectLiteralExpression(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.properties);\n        },\n        [208]: function forEachChildInPropertyAccessExpression(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.questionDotToken) || visitNode2(cbNode, node.name);\n        },\n        [209]: function forEachChildInElementAccessExpression(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.questionDotToken) || visitNode2(cbNode, node.argumentExpression);\n        },\n        [210]: forEachChildInCallOrNewExpression,\n        [211]: forEachChildInCallOrNewExpression,\n        [212]: function forEachChildInTaggedTemplateExpression(node, cbNode, cbNodes) {\n          return visitNode2(cbNode, node.tag) || visitNode2(cbNode, node.questionDotToken) || visitNodes(cbNode, cbNodes, node.typeArguments) || visitNode2(cbNode, node.template);\n        },\n        [213]: function forEachChildInTypeAssertionExpression(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.type) || visitNode2(cbNode, node.expression);\n        },\n        [214]: function forEachChildInParenthesizedExpression(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.expression);\n        },\n        [217]: function forEachChildInDeleteExpression(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.expression);\n        },\n        [218]: function forEachChildInTypeOfExpression(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.expression);\n        },\n        [219]: function forEachChildInVoidExpression(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.expression);\n        },\n        [221]: function forEachChildInPrefixUnaryExpression(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.operand);\n        },\n        [226]: function forEachChildInYieldExpression(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.expression);\n        },\n        [220]: function forEachChildInAwaitExpression(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.expression);\n        },\n        [222]: function forEachChildInPostfixUnaryExpression(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.operand);\n        },\n        [223]: function forEachChildInBinaryExpression(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.left) || visitNode2(cbNode, node.operatorToken) || visitNode2(cbNode, node.right);\n        },\n        [231]: function forEachChildInAsExpression(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.type);\n        },\n        [232]: function forEachChildInNonNullExpression(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.expression);\n        },\n        [235]: function forEachChildInSatisfiesExpression(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.type);\n        },\n        [233]: function forEachChildInMetaProperty(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.name);\n        },\n        [224]: function forEachChildInConditionalExpression(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.condition) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.whenTrue) || visitNode2(cbNode, node.colonToken) || visitNode2(cbNode, node.whenFalse);\n        },\n        [227]: function forEachChildInSpreadElement(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.expression);\n        },\n        [238]: forEachChildInBlock,\n        [265]: forEachChildInBlock,\n        [308]: function forEachChildInSourceFile(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.statements) || visitNode2(cbNode, node.endOfFileToken);\n        },\n        [240]: function forEachChildInVariableStatement(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.declarationList);\n        },\n        [258]: function forEachChildInVariableDeclarationList(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.declarations);\n        },\n        [241]: function forEachChildInExpressionStatement(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.expression);\n        },\n        [242]: function forEachChildInIfStatement(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.thenStatement) || visitNode2(cbNode, node.elseStatement);\n        },\n        [243]: function forEachChildInDoStatement(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.statement) || visitNode2(cbNode, node.expression);\n        },\n        [244]: function forEachChildInWhileStatement(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement);\n        },\n        [245]: function forEachChildInForStatement(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.initializer) || visitNode2(cbNode, node.condition) || visitNode2(cbNode, node.incrementor) || visitNode2(cbNode, node.statement);\n        },\n        [246]: function forEachChildInForInStatement(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.initializer) || visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement);\n        },\n        [247]: function forEachChildInForOfStatement(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.awaitModifier) || visitNode2(cbNode, node.initializer) || visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement);\n        },\n        [248]: forEachChildInContinueOrBreakStatement,\n        [249]: forEachChildInContinueOrBreakStatement,\n        [250]: function forEachChildInReturnStatement(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.expression);\n        },\n        [251]: function forEachChildInWithStatement(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement);\n        },\n        [252]: function forEachChildInSwitchStatement(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.caseBlock);\n        },\n        [266]: function forEachChildInCaseBlock(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.clauses);\n        },\n        [292]: function forEachChildInCaseClause(node, cbNode, cbNodes) {\n          return visitNode2(cbNode, node.expression) || visitNodes(cbNode, cbNodes, node.statements);\n        },\n        [293]: function forEachChildInDefaultClause(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.statements);\n        },\n        [253]: function forEachChildInLabeledStatement(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.label) || visitNode2(cbNode, node.statement);\n        },\n        [254]: function forEachChildInThrowStatement(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.expression);\n        },\n        [255]: function forEachChildInTryStatement(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.tryBlock) || visitNode2(cbNode, node.catchClause) || visitNode2(cbNode, node.finallyBlock);\n        },\n        [295]: function forEachChildInCatchClause(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.variableDeclaration) || visitNode2(cbNode, node.block);\n        },\n        [167]: function forEachChildInDecorator(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.expression);\n        },\n        [260]: forEachChildInClassDeclarationOrExpression,\n        [228]: forEachChildInClassDeclarationOrExpression,\n        [261]: function forEachChildInInterfaceDeclaration(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.heritageClauses) || visitNodes(cbNode, cbNodes, node.members);\n        },\n        [262]: function forEachChildInTypeAliasDeclaration(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNode2(cbNode, node.type);\n        },\n        [263]: function forEachChildInEnumDeclaration(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.members);\n        },\n        [302]: function forEachChildInEnumMember(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.initializer);\n        },\n        [264]: function forEachChildInModuleDeclaration(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.body);\n        },\n        [268]: function forEachChildInImportEqualsDeclaration(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.moduleReference);\n        },\n        [269]: function forEachChildInImportDeclaration(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.importClause) || visitNode2(cbNode, node.moduleSpecifier) || visitNode2(cbNode, node.assertClause);\n        },\n        [270]: function forEachChildInImportClause(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.namedBindings);\n        },\n        [296]: function forEachChildInAssertClause(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.elements);\n        },\n        [297]: function forEachChildInAssertEntry(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.value);\n        },\n        [267]: function forEachChildInNamespaceExportDeclaration(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name);\n        },\n        [271]: function forEachChildInNamespaceImport(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.name);\n        },\n        [277]: function forEachChildInNamespaceExport(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.name);\n        },\n        [272]: forEachChildInNamedImportsOrExports,\n        [276]: forEachChildInNamedImportsOrExports,\n        [275]: function forEachChildInExportDeclaration(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.exportClause) || visitNode2(cbNode, node.moduleSpecifier) || visitNode2(cbNode, node.assertClause);\n        },\n        [273]: forEachChildInImportOrExportSpecifier,\n        [278]: forEachChildInImportOrExportSpecifier,\n        [274]: function forEachChildInExportAssignment(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.expression);\n        },\n        [225]: function forEachChildInTemplateExpression(node, cbNode, cbNodes) {\n          return visitNode2(cbNode, node.head) || visitNodes(cbNode, cbNodes, node.templateSpans);\n        },\n        [236]: function forEachChildInTemplateSpan(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.literal);\n        },\n        [200]: function forEachChildInTemplateLiteralType(node, cbNode, cbNodes) {\n          return visitNode2(cbNode, node.head) || visitNodes(cbNode, cbNodes, node.templateSpans);\n        },\n        [201]: function forEachChildInTemplateLiteralTypeSpan(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.type) || visitNode2(cbNode, node.literal);\n        },\n        [164]: function forEachChildInComputedPropertyName(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.expression);\n        },\n        [294]: function forEachChildInHeritageClause(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.types);\n        },\n        [230]: function forEachChildInExpressionWithTypeArguments(node, cbNode, cbNodes) {\n          return visitNode2(cbNode, node.expression) || visitNodes(cbNode, cbNodes, node.typeArguments);\n        },\n        [280]: function forEachChildInExternalModuleReference(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.expression);\n        },\n        [279]: function forEachChildInMissingDeclaration(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.modifiers);\n        },\n        [357]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.elements);\n        },\n        [281]: function forEachChildInJsxElement(node, cbNode, cbNodes) {\n          return visitNode2(cbNode, node.openingElement) || visitNodes(cbNode, cbNodes, node.children) || visitNode2(cbNode, node.closingElement);\n        },\n        [285]: function forEachChildInJsxFragment(node, cbNode, cbNodes) {\n          return visitNode2(cbNode, node.openingFragment) || visitNodes(cbNode, cbNodes, node.children) || visitNode2(cbNode, node.closingFragment);\n        },\n        [282]: forEachChildInJsxOpeningOrSelfClosingElement,\n        [283]: forEachChildInJsxOpeningOrSelfClosingElement,\n        [289]: function forEachChildInJsxAttributes(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.properties);\n        },\n        [288]: function forEachChildInJsxAttribute(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.initializer);\n        },\n        [290]: function forEachChildInJsxSpreadAttribute(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.expression);\n        },\n        [291]: function forEachChildInJsxExpression(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.expression);\n        },\n        [284]: function forEachChildInJsxClosingElement(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.tagName);\n        },\n        [187]: forEachChildInOptionalRestOrJSDocParameterModifier,\n        [188]: forEachChildInOptionalRestOrJSDocParameterModifier,\n        [312]: forEachChildInOptionalRestOrJSDocParameterModifier,\n        [318]: forEachChildInOptionalRestOrJSDocParameterModifier,\n        [317]: forEachChildInOptionalRestOrJSDocParameterModifier,\n        [319]: forEachChildInOptionalRestOrJSDocParameterModifier,\n        [321]: forEachChildInOptionalRestOrJSDocParameterModifier,\n        [320]: function forEachChildInJSDocFunctionType(node, cbNode, cbNodes) {\n          return visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type);\n        },\n        [323]: function forEachChildInJSDoc(node, cbNode, cbNodes) {\n          return (typeof node.comment === \"string\" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) || visitNodes(cbNode, cbNodes, node.tags);\n        },\n        [350]: function forEachChildInJSDocSeeTag(node, cbNode, cbNodes) {\n          return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.name) || (typeof node.comment === \"string\" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));\n        },\n        [313]: function forEachChildInJSDocNameReference(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.name);\n        },\n        [314]: function forEachChildInJSDocMemberName(node, cbNode, _cbNodes) {\n          return visitNode2(cbNode, node.left) || visitNode2(cbNode, node.right);\n        },\n        [344]: forEachChildInJSDocParameterOrPropertyTag,\n        [351]: forEachChildInJSDocParameterOrPropertyTag,\n        [333]: function forEachChildInJSDocAuthorTag(node, cbNode, cbNodes) {\n          return visitNode2(cbNode, node.tagName) || (typeof node.comment === \"string\" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));\n        },\n        [332]: function forEachChildInJSDocImplementsTag(node, cbNode, cbNodes) {\n          return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.class) || (typeof node.comment === \"string\" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));\n        },\n        [331]: function forEachChildInJSDocAugmentsTag(node, cbNode, cbNodes) {\n          return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.class) || (typeof node.comment === \"string\" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));\n        },\n        [348]: function forEachChildInJSDocTemplateTag(node, cbNode, cbNodes) {\n          return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.constraint) || visitNodes(cbNode, cbNodes, node.typeParameters) || (typeof node.comment === \"string\" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));\n        },\n        [349]: function forEachChildInJSDocTypedefTag(node, cbNode, cbNodes) {\n          return visitNode2(cbNode, node.tagName) || (node.typeExpression && node.typeExpression.kind === 312 ? visitNode2(cbNode, node.typeExpression) || visitNode2(cbNode, node.fullName) || (typeof node.comment === \"string\" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) : visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === \"string\" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)));\n        },\n        [341]: function forEachChildInJSDocCallbackTag(node, cbNode, cbNodes) {\n          return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === \"string\" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));\n        },\n        [345]: forEachChildInJSDocTypeLikeTag,\n        [347]: forEachChildInJSDocTypeLikeTag,\n        [346]: forEachChildInJSDocTypeLikeTag,\n        [343]: forEachChildInJSDocTypeLikeTag,\n        [353]: forEachChildInJSDocTypeLikeTag,\n        [352]: forEachChildInJSDocTypeLikeTag,\n        [342]: forEachChildInJSDocTypeLikeTag,\n        [326]: function forEachChildInJSDocSignature(node, cbNode, _cbNodes) {\n          return forEach(node.typeParameters, cbNode) || forEach(node.parameters, cbNode) || visitNode2(cbNode, node.type);\n        },\n        [327]: forEachChildInJSDocLinkCodeOrPlain,\n        [328]: forEachChildInJSDocLinkCodeOrPlain,\n        [329]: forEachChildInJSDocLinkCodeOrPlain,\n        [325]: function forEachChildInJSDocTypeLiteral(node, cbNode, _cbNodes) {\n          return forEach(node.jsDocPropertyTags, cbNode);\n        },\n        [330]: forEachChildInJSDocTag,\n        [335]: forEachChildInJSDocTag,\n        [336]: forEachChildInJSDocTag,\n        [337]: forEachChildInJSDocTag,\n        [338]: forEachChildInJSDocTag,\n        [339]: forEachChildInJSDocTag,\n        [334]: forEachChildInJSDocTag,\n        [340]: forEachChildInJSDocTag,\n        [356]: forEachChildInPartiallyEmittedExpression\n      };\n      ((Parser2) => {\n        var scanner2 = createScanner(99, true);\n        var disallowInAndDecoratorContext = 4096 | 16384;\n        var NodeConstructor2;\n        var TokenConstructor2;\n        var IdentifierConstructor2;\n        var PrivateIdentifierConstructor2;\n        var SourceFileConstructor2;\n        function countNode(node) {\n          nodeCount++;\n          return node;\n        }\n        var baseNodeFactory = {\n          createBaseSourceFileNode: (kind) => countNode(new SourceFileConstructor2(kind, 0, 0)),\n          createBaseIdentifierNode: (kind) => countNode(new IdentifierConstructor2(kind, 0, 0)),\n          createBasePrivateIdentifierNode: (kind) => countNode(new PrivateIdentifierConstructor2(kind, 0, 0)),\n          createBaseTokenNode: (kind) => countNode(new TokenConstructor2(kind, 0, 0)),\n          createBaseNode: (kind) => countNode(new NodeConstructor2(kind, 0, 0))\n        };\n        var factory2 = createNodeFactory(1 | 2 | 8, baseNodeFactory);\n        var {\n          createNodeArray: factoryCreateNodeArray,\n          createNumericLiteral: factoryCreateNumericLiteral,\n          createStringLiteral: factoryCreateStringLiteral,\n          createLiteralLikeNode: factoryCreateLiteralLikeNode,\n          createIdentifier: factoryCreateIdentifier,\n          createPrivateIdentifier: factoryCreatePrivateIdentifier,\n          createToken: factoryCreateToken,\n          createArrayLiteralExpression: factoryCreateArrayLiteralExpression,\n          createObjectLiteralExpression: factoryCreateObjectLiteralExpression,\n          createPropertyAccessExpression: factoryCreatePropertyAccessExpression,\n          createPropertyAccessChain: factoryCreatePropertyAccessChain,\n          createElementAccessExpression: factoryCreateElementAccessExpression,\n          createElementAccessChain: factoryCreateElementAccessChain,\n          createCallExpression: factoryCreateCallExpression,\n          createCallChain: factoryCreateCallChain,\n          createNewExpression: factoryCreateNewExpression,\n          createParenthesizedExpression: factoryCreateParenthesizedExpression,\n          createBlock: factoryCreateBlock,\n          createVariableStatement: factoryCreateVariableStatement,\n          createExpressionStatement: factoryCreateExpressionStatement,\n          createIfStatement: factoryCreateIfStatement,\n          createWhileStatement: factoryCreateWhileStatement,\n          createForStatement: factoryCreateForStatement,\n          createForOfStatement: factoryCreateForOfStatement,\n          createVariableDeclaration: factoryCreateVariableDeclaration,\n          createVariableDeclarationList: factoryCreateVariableDeclarationList\n        } = factory2;\n        var fileName;\n        var sourceFlags;\n        var sourceText;\n        var languageVersion;\n        var scriptKind;\n        var languageVariant;\n        var parseDiagnostics;\n        var jsDocDiagnostics;\n        var syntaxCursor;\n        var currentToken;\n        var nodeCount;\n        var identifiers;\n        var identifierCount;\n        var parsingContext;\n        var notParenthesizedArrow;\n        var contextFlags;\n        var topLevel = true;\n        var parseErrorBeforeNextFinishedNode = false;\n        function parseSourceFile(fileName2, sourceText2, languageVersion2, syntaxCursor2, setParentNodes = false, scriptKind2, setExternalModuleIndicatorOverride) {\n          var _a2;\n          scriptKind2 = ensureScriptKind(fileName2, scriptKind2);\n          if (scriptKind2 === 6) {\n            const result2 = parseJsonText2(fileName2, sourceText2, languageVersion2, syntaxCursor2, setParentNodes);\n            convertToObjectWorker(result2, (_a2 = result2.statements[0]) == null ? void 0 : _a2.expression, result2.parseDiagnostics, false, void 0, void 0);\n            result2.referencedFiles = emptyArray;\n            result2.typeReferenceDirectives = emptyArray;\n            result2.libReferenceDirectives = emptyArray;\n            result2.amdDependencies = emptyArray;\n            result2.hasNoDefaultLib = false;\n            result2.pragmas = emptyMap;\n            return result2;\n          }\n          initializeState(fileName2, sourceText2, languageVersion2, syntaxCursor2, scriptKind2);\n          const result = parseSourceFileWorker(languageVersion2, setParentNodes, scriptKind2, setExternalModuleIndicatorOverride || setExternalModuleIndicator);\n          clearState();\n          return result;\n        }\n        Parser2.parseSourceFile = parseSourceFile;\n        function parseIsolatedEntityName2(content, languageVersion2) {\n          initializeState(\"\", content, languageVersion2, void 0, 1);\n          nextToken();\n          const entityName = parseEntityName(true);\n          const isInvalid = token() === 1 && !parseDiagnostics.length;\n          clearState();\n          return isInvalid ? entityName : void 0;\n        }\n        Parser2.parseIsolatedEntityName = parseIsolatedEntityName2;\n        function parseJsonText2(fileName2, sourceText2, languageVersion2 = 2, syntaxCursor2, setParentNodes = false) {\n          initializeState(fileName2, sourceText2, languageVersion2, syntaxCursor2, 6);\n          sourceFlags = contextFlags;\n          nextToken();\n          const pos = getNodePos();\n          let statements, endOfFileToken;\n          if (token() === 1) {\n            statements = createNodeArray([], pos, pos);\n            endOfFileToken = parseTokenNode();\n          } else {\n            let expressions;\n            while (token() !== 1) {\n              let expression2;\n              switch (token()) {\n                case 22:\n                  expression2 = parseArrayLiteralExpression();\n                  break;\n                case 110:\n                case 95:\n                case 104:\n                  expression2 = parseTokenNode();\n                  break;\n                case 40:\n                  if (lookAhead(() => nextToken() === 8 && nextToken() !== 58)) {\n                    expression2 = parsePrefixUnaryExpression();\n                  } else {\n                    expression2 = parseObjectLiteralExpression();\n                  }\n                  break;\n                case 8:\n                case 10:\n                  if (lookAhead(() => nextToken() !== 58)) {\n                    expression2 = parseLiteralNode();\n                    break;\n                  }\n                default:\n                  expression2 = parseObjectLiteralExpression();\n                  break;\n              }\n              if (expressions && isArray(expressions)) {\n                expressions.push(expression2);\n              } else if (expressions) {\n                expressions = [expressions, expression2];\n              } else {\n                expressions = expression2;\n                if (token() !== 1) {\n                  parseErrorAtCurrentToken(Diagnostics.Unexpected_token);\n                }\n              }\n            }\n            const expression = isArray(expressions) ? finishNode(factoryCreateArrayLiteralExpression(expressions), pos) : Debug.checkDefined(expressions);\n            const statement = factoryCreateExpressionStatement(expression);\n            finishNode(statement, pos);\n            statements = createNodeArray([statement], pos);\n            endOfFileToken = parseExpectedToken(1, Diagnostics.Unexpected_token);\n          }\n          const sourceFile = createSourceFile2(fileName2, 2, 6, false, statements, endOfFileToken, sourceFlags, noop);\n          if (setParentNodes) {\n            fixupParentReferences(sourceFile);\n          }\n          sourceFile.nodeCount = nodeCount;\n          sourceFile.identifierCount = identifierCount;\n          sourceFile.identifiers = identifiers;\n          sourceFile.parseDiagnostics = attachFileToDiagnostics(parseDiagnostics, sourceFile);\n          if (jsDocDiagnostics) {\n            sourceFile.jsDocDiagnostics = attachFileToDiagnostics(jsDocDiagnostics, sourceFile);\n          }\n          const result = sourceFile;\n          clearState();\n          return result;\n        }\n        Parser2.parseJsonText = parseJsonText2;\n        function initializeState(_fileName, _sourceText, _languageVersion, _syntaxCursor, _scriptKind) {\n          NodeConstructor2 = objectAllocator.getNodeConstructor();\n          TokenConstructor2 = objectAllocator.getTokenConstructor();\n          IdentifierConstructor2 = objectAllocator.getIdentifierConstructor();\n          PrivateIdentifierConstructor2 = objectAllocator.getPrivateIdentifierConstructor();\n          SourceFileConstructor2 = objectAllocator.getSourceFileConstructor();\n          fileName = normalizePath(_fileName);\n          sourceText = _sourceText;\n          languageVersion = _languageVersion;\n          syntaxCursor = _syntaxCursor;\n          scriptKind = _scriptKind;\n          languageVariant = getLanguageVariant(_scriptKind);\n          parseDiagnostics = [];\n          parsingContext = 0;\n          identifiers = /* @__PURE__ */ new Map();\n          identifierCount = 0;\n          nodeCount = 0;\n          sourceFlags = 0;\n          topLevel = true;\n          switch (scriptKind) {\n            case 1:\n            case 2:\n              contextFlags = 262144;\n              break;\n            case 6:\n              contextFlags = 262144 | 67108864;\n              break;\n            default:\n              contextFlags = 0;\n              break;\n          }\n          parseErrorBeforeNextFinishedNode = false;\n          scanner2.setText(sourceText);\n          scanner2.setOnError(scanError);\n          scanner2.setScriptTarget(languageVersion);\n          scanner2.setLanguageVariant(languageVariant);\n        }\n        function clearState() {\n          scanner2.clearCommentDirectives();\n          scanner2.setText(\"\");\n          scanner2.setOnError(void 0);\n          sourceText = void 0;\n          languageVersion = void 0;\n          syntaxCursor = void 0;\n          scriptKind = void 0;\n          languageVariant = void 0;\n          sourceFlags = 0;\n          parseDiagnostics = void 0;\n          jsDocDiagnostics = void 0;\n          parsingContext = 0;\n          identifiers = void 0;\n          notParenthesizedArrow = void 0;\n          topLevel = true;\n        }\n        function parseSourceFileWorker(languageVersion2, setParentNodes, scriptKind2, setExternalModuleIndicator2) {\n          const isDeclarationFile = isDeclarationFileName(fileName);\n          if (isDeclarationFile) {\n            contextFlags |= 16777216;\n          }\n          sourceFlags = contextFlags;\n          nextToken();\n          const statements = parseList(0, parseStatement);\n          Debug.assert(token() === 1);\n          const endOfFileToken = addJSDocComment(parseTokenNode());\n          const sourceFile = createSourceFile2(fileName, languageVersion2, scriptKind2, isDeclarationFile, statements, endOfFileToken, sourceFlags, setExternalModuleIndicator2);\n          processCommentPragmas(sourceFile, sourceText);\n          processPragmasIntoFields(sourceFile, reportPragmaDiagnostic);\n          sourceFile.commentDirectives = scanner2.getCommentDirectives();\n          sourceFile.nodeCount = nodeCount;\n          sourceFile.identifierCount = identifierCount;\n          sourceFile.identifiers = identifiers;\n          sourceFile.parseDiagnostics = attachFileToDiagnostics(parseDiagnostics, sourceFile);\n          if (jsDocDiagnostics) {\n            sourceFile.jsDocDiagnostics = attachFileToDiagnostics(jsDocDiagnostics, sourceFile);\n          }\n          if (setParentNodes) {\n            fixupParentReferences(sourceFile);\n          }\n          return sourceFile;\n          function reportPragmaDiagnostic(pos, end, diagnostic) {\n            parseDiagnostics.push(createDetachedDiagnostic(fileName, pos, end, diagnostic));\n          }\n        }\n        function withJSDoc(node, hasJSDoc) {\n          return hasJSDoc ? addJSDocComment(node) : node;\n        }\n        let hasDeprecatedTag = false;\n        function addJSDocComment(node) {\n          Debug.assert(!node.jsDoc);\n          const jsDoc = mapDefined(getJSDocCommentRanges(node, sourceText), (comment) => JSDocParser.parseJSDocComment(node, comment.pos, comment.end - comment.pos));\n          if (jsDoc.length)\n            node.jsDoc = jsDoc;\n          if (hasDeprecatedTag) {\n            hasDeprecatedTag = false;\n            node.flags |= 268435456;\n          }\n          return node;\n        }\n        function reparseTopLevelAwait(sourceFile) {\n          const savedSyntaxCursor = syntaxCursor;\n          const baseSyntaxCursor = IncrementalParser.createSyntaxCursor(sourceFile);\n          syntaxCursor = { currentNode: currentNode2 };\n          const statements = [];\n          const savedParseDiagnostics = parseDiagnostics;\n          parseDiagnostics = [];\n          let pos = 0;\n          let start = findNextStatementWithAwait(sourceFile.statements, 0);\n          while (start !== -1) {\n            const prevStatement = sourceFile.statements[pos];\n            const nextStatement = sourceFile.statements[start];\n            addRange(statements, sourceFile.statements, pos, start);\n            pos = findNextStatementWithoutAwait(sourceFile.statements, start);\n            const diagnosticStart = findIndex(savedParseDiagnostics, (diagnostic) => diagnostic.start >= prevStatement.pos);\n            const diagnosticEnd = diagnosticStart >= 0 ? findIndex(savedParseDiagnostics, (diagnostic) => diagnostic.start >= nextStatement.pos, diagnosticStart) : -1;\n            if (diagnosticStart >= 0) {\n              addRange(parseDiagnostics, savedParseDiagnostics, diagnosticStart, diagnosticEnd >= 0 ? diagnosticEnd : void 0);\n            }\n            speculationHelper(() => {\n              const savedContextFlags = contextFlags;\n              contextFlags |= 32768;\n              scanner2.setTextPos(nextStatement.pos);\n              nextToken();\n              while (token() !== 1) {\n                const startPos = scanner2.getStartPos();\n                const statement = parseListElement(0, parseStatement);\n                statements.push(statement);\n                if (startPos === scanner2.getStartPos()) {\n                  nextToken();\n                }\n                if (pos >= 0) {\n                  const nonAwaitStatement = sourceFile.statements[pos];\n                  if (statement.end === nonAwaitStatement.pos) {\n                    break;\n                  }\n                  if (statement.end > nonAwaitStatement.pos) {\n                    pos = findNextStatementWithoutAwait(sourceFile.statements, pos + 1);\n                  }\n                }\n              }\n              contextFlags = savedContextFlags;\n            }, 2);\n            start = pos >= 0 ? findNextStatementWithAwait(sourceFile.statements, pos) : -1;\n          }\n          if (pos >= 0) {\n            const prevStatement = sourceFile.statements[pos];\n            addRange(statements, sourceFile.statements, pos);\n            const diagnosticStart = findIndex(savedParseDiagnostics, (diagnostic) => diagnostic.start >= prevStatement.pos);\n            if (diagnosticStart >= 0) {\n              addRange(parseDiagnostics, savedParseDiagnostics, diagnosticStart);\n            }\n          }\n          syntaxCursor = savedSyntaxCursor;\n          return factory2.updateSourceFile(sourceFile, setTextRange(factoryCreateNodeArray(statements), sourceFile.statements));\n          function containsPossibleTopLevelAwait(node) {\n            return !(node.flags & 32768) && !!(node.transformFlags & 67108864);\n          }\n          function findNextStatementWithAwait(statements2, start2) {\n            for (let i = start2; i < statements2.length; i++) {\n              if (containsPossibleTopLevelAwait(statements2[i])) {\n                return i;\n              }\n            }\n            return -1;\n          }\n          function findNextStatementWithoutAwait(statements2, start2) {\n            for (let i = start2; i < statements2.length; i++) {\n              if (!containsPossibleTopLevelAwait(statements2[i])) {\n                return i;\n              }\n            }\n            return -1;\n          }\n          function currentNode2(position) {\n            const node = baseSyntaxCursor.currentNode(position);\n            if (topLevel && node && containsPossibleTopLevelAwait(node)) {\n              node.intersectsChange = true;\n            }\n            return node;\n          }\n        }\n        function fixupParentReferences(rootNode) {\n          setParentRecursive(rootNode, true);\n        }\n        Parser2.fixupParentReferences = fixupParentReferences;\n        function createSourceFile2(fileName2, languageVersion2, scriptKind2, isDeclarationFile, statements, endOfFileToken, flags, setExternalModuleIndicator2) {\n          let sourceFile = factory2.createSourceFile(statements, endOfFileToken, flags);\n          setTextRangePosWidth(sourceFile, 0, sourceText.length);\n          setFields(sourceFile);\n          if (!isDeclarationFile && isExternalModule(sourceFile) && sourceFile.transformFlags & 67108864) {\n            sourceFile = reparseTopLevelAwait(sourceFile);\n            setFields(sourceFile);\n          }\n          return sourceFile;\n          function setFields(sourceFile2) {\n            sourceFile2.text = sourceText;\n            sourceFile2.bindDiagnostics = [];\n            sourceFile2.bindSuggestionDiagnostics = void 0;\n            sourceFile2.languageVersion = languageVersion2;\n            sourceFile2.fileName = fileName2;\n            sourceFile2.languageVariant = getLanguageVariant(scriptKind2);\n            sourceFile2.isDeclarationFile = isDeclarationFile;\n            sourceFile2.scriptKind = scriptKind2;\n            setExternalModuleIndicator2(sourceFile2);\n            sourceFile2.setExternalModuleIndicator = setExternalModuleIndicator2;\n          }\n        }\n        function setContextFlag(val, flag) {\n          if (val) {\n            contextFlags |= flag;\n          } else {\n            contextFlags &= ~flag;\n          }\n        }\n        function setDisallowInContext(val) {\n          setContextFlag(val, 4096);\n        }\n        function setYieldContext(val) {\n          setContextFlag(val, 8192);\n        }\n        function setDecoratorContext(val) {\n          setContextFlag(val, 16384);\n        }\n        function setAwaitContext(val) {\n          setContextFlag(val, 32768);\n        }\n        function doOutsideOfContext(context, func) {\n          const contextFlagsToClear = context & contextFlags;\n          if (contextFlagsToClear) {\n            setContextFlag(false, contextFlagsToClear);\n            const result = func();\n            setContextFlag(true, contextFlagsToClear);\n            return result;\n          }\n          return func();\n        }\n        function doInsideOfContext(context, func) {\n          const contextFlagsToSet = context & ~contextFlags;\n          if (contextFlagsToSet) {\n            setContextFlag(true, contextFlagsToSet);\n            const result = func();\n            setContextFlag(false, contextFlagsToSet);\n            return result;\n          }\n          return func();\n        }\n        function allowInAnd(func) {\n          return doOutsideOfContext(4096, func);\n        }\n        function disallowInAnd(func) {\n          return doInsideOfContext(4096, func);\n        }\n        function allowConditionalTypesAnd(func) {\n          return doOutsideOfContext(65536, func);\n        }\n        function disallowConditionalTypesAnd(func) {\n          return doInsideOfContext(65536, func);\n        }\n        function doInYieldContext(func) {\n          return doInsideOfContext(8192, func);\n        }\n        function doInDecoratorContext(func) {\n          return doInsideOfContext(16384, func);\n        }\n        function doInAwaitContext(func) {\n          return doInsideOfContext(32768, func);\n        }\n        function doOutsideOfAwaitContext(func) {\n          return doOutsideOfContext(32768, func);\n        }\n        function doInYieldAndAwaitContext(func) {\n          return doInsideOfContext(8192 | 32768, func);\n        }\n        function doOutsideOfYieldAndAwaitContext(func) {\n          return doOutsideOfContext(8192 | 32768, func);\n        }\n        function inContext(flags) {\n          return (contextFlags & flags) !== 0;\n        }\n        function inYieldContext() {\n          return inContext(8192);\n        }\n        function inDisallowInContext() {\n          return inContext(4096);\n        }\n        function inDisallowConditionalTypesContext() {\n          return inContext(65536);\n        }\n        function inDecoratorContext() {\n          return inContext(16384);\n        }\n        function inAwaitContext() {\n          return inContext(32768);\n        }\n        function parseErrorAtCurrentToken(message, arg0) {\n          return parseErrorAt(scanner2.getTokenPos(), scanner2.getTextPos(), message, arg0);\n        }\n        function parseErrorAtPosition(start, length2, message, arg0) {\n          const lastError = lastOrUndefined(parseDiagnostics);\n          let result;\n          if (!lastError || start !== lastError.start) {\n            result = createDetachedDiagnostic(fileName, start, length2, message, arg0);\n            parseDiagnostics.push(result);\n          }\n          parseErrorBeforeNextFinishedNode = true;\n          return result;\n        }\n        function parseErrorAt(start, end, message, arg0) {\n          return parseErrorAtPosition(start, end - start, message, arg0);\n        }\n        function parseErrorAtRange(range, message, arg0) {\n          parseErrorAt(range.pos, range.end, message, arg0);\n        }\n        function scanError(message, length2) {\n          parseErrorAtPosition(scanner2.getTextPos(), length2, message);\n        }\n        function getNodePos() {\n          return scanner2.getStartPos();\n        }\n        function hasPrecedingJSDocComment() {\n          return scanner2.hasPrecedingJSDocComment();\n        }\n        function token() {\n          return currentToken;\n        }\n        function nextTokenWithoutCheck() {\n          return currentToken = scanner2.scan();\n        }\n        function nextTokenAnd(func) {\n          nextToken();\n          return func();\n        }\n        function nextToken() {\n          if (isKeyword(currentToken) && (scanner2.hasUnicodeEscape() || scanner2.hasExtendedUnicodeEscape())) {\n            parseErrorAt(scanner2.getTokenPos(), scanner2.getTextPos(), Diagnostics.Keywords_cannot_contain_escape_characters);\n          }\n          return nextTokenWithoutCheck();\n        }\n        function nextTokenJSDoc() {\n          return currentToken = scanner2.scanJsDocToken();\n        }\n        function reScanGreaterToken() {\n          return currentToken = scanner2.reScanGreaterToken();\n        }\n        function reScanSlashToken() {\n          return currentToken = scanner2.reScanSlashToken();\n        }\n        function reScanTemplateToken(isTaggedTemplate) {\n          return currentToken = scanner2.reScanTemplateToken(isTaggedTemplate);\n        }\n        function reScanTemplateHeadOrNoSubstitutionTemplate() {\n          return currentToken = scanner2.reScanTemplateHeadOrNoSubstitutionTemplate();\n        }\n        function reScanLessThanToken() {\n          return currentToken = scanner2.reScanLessThanToken();\n        }\n        function reScanHashToken() {\n          return currentToken = scanner2.reScanHashToken();\n        }\n        function scanJsxIdentifier() {\n          return currentToken = scanner2.scanJsxIdentifier();\n        }\n        function scanJsxText() {\n          return currentToken = scanner2.scanJsxToken();\n        }\n        function scanJsxAttributeValue() {\n          return currentToken = scanner2.scanJsxAttributeValue();\n        }\n        function speculationHelper(callback, speculationKind) {\n          const saveToken = currentToken;\n          const saveParseDiagnosticsLength = parseDiagnostics.length;\n          const saveParseErrorBeforeNextFinishedNode = parseErrorBeforeNextFinishedNode;\n          const saveContextFlags = contextFlags;\n          const result = speculationKind !== 0 ? scanner2.lookAhead(callback) : scanner2.tryScan(callback);\n          Debug.assert(saveContextFlags === contextFlags);\n          if (!result || speculationKind !== 0) {\n            currentToken = saveToken;\n            if (speculationKind !== 2) {\n              parseDiagnostics.length = saveParseDiagnosticsLength;\n            }\n            parseErrorBeforeNextFinishedNode = saveParseErrorBeforeNextFinishedNode;\n          }\n          return result;\n        }\n        function lookAhead(callback) {\n          return speculationHelper(callback, 1);\n        }\n        function tryParse(callback) {\n          return speculationHelper(callback, 0);\n        }\n        function isBindingIdentifier() {\n          if (token() === 79) {\n            return true;\n          }\n          return token() > 116;\n        }\n        function isIdentifier2() {\n          if (token() === 79) {\n            return true;\n          }\n          if (token() === 125 && inYieldContext()) {\n            return false;\n          }\n          if (token() === 133 && inAwaitContext()) {\n            return false;\n          }\n          return token() > 116;\n        }\n        function parseExpected(kind, diagnosticMessage, shouldAdvance = true) {\n          if (token() === kind) {\n            if (shouldAdvance) {\n              nextToken();\n            }\n            return true;\n          }\n          if (diagnosticMessage) {\n            parseErrorAtCurrentToken(diagnosticMessage);\n          } else {\n            parseErrorAtCurrentToken(Diagnostics._0_expected, tokenToString(kind));\n          }\n          return false;\n        }\n        const viableKeywordSuggestions = Object.keys(textToKeywordObj).filter((keyword) => keyword.length > 2);\n        function parseErrorForMissingSemicolonAfter(node) {\n          var _a2;\n          if (isTaggedTemplateExpression(node)) {\n            parseErrorAt(skipTrivia(sourceText, node.template.pos), node.template.end, Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);\n            return;\n          }\n          const expressionText = isIdentifier(node) ? idText(node) : void 0;\n          if (!expressionText || !isIdentifierText(expressionText, languageVersion)) {\n            parseErrorAtCurrentToken(Diagnostics._0_expected, tokenToString(26));\n            return;\n          }\n          const pos = skipTrivia(sourceText, node.pos);\n          switch (expressionText) {\n            case \"const\":\n            case \"let\":\n            case \"var\":\n              parseErrorAt(pos, node.end, Diagnostics.Variable_declaration_not_allowed_at_this_location);\n              return;\n            case \"declare\":\n              return;\n            case \"interface\":\n              parseErrorForInvalidName(Diagnostics.Interface_name_cannot_be_0, Diagnostics.Interface_must_be_given_a_name, 18);\n              return;\n            case \"is\":\n              parseErrorAt(pos, scanner2.getTextPos(), Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);\n              return;\n            case \"module\":\n            case \"namespace\":\n              parseErrorForInvalidName(Diagnostics.Namespace_name_cannot_be_0, Diagnostics.Namespace_must_be_given_a_name, 18);\n              return;\n            case \"type\":\n              parseErrorForInvalidName(Diagnostics.Type_alias_name_cannot_be_0, Diagnostics.Type_alias_must_be_given_a_name, 63);\n              return;\n          }\n          const suggestion = (_a2 = getSpellingSuggestion(expressionText, viableKeywordSuggestions, (n) => n)) != null ? _a2 : getSpaceSuggestion(expressionText);\n          if (suggestion) {\n            parseErrorAt(pos, node.end, Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0, suggestion);\n            return;\n          }\n          if (token() === 0) {\n            return;\n          }\n          parseErrorAt(pos, node.end, Diagnostics.Unexpected_keyword_or_identifier);\n        }\n        function parseErrorForInvalidName(nameDiagnostic, blankDiagnostic, tokenIfBlankName) {\n          if (token() === tokenIfBlankName) {\n            parseErrorAtCurrentToken(blankDiagnostic);\n          } else {\n            parseErrorAtCurrentToken(nameDiagnostic, scanner2.getTokenValue());\n          }\n        }\n        function getSpaceSuggestion(expressionText) {\n          for (const keyword of viableKeywordSuggestions) {\n            if (expressionText.length > keyword.length + 2 && startsWith(expressionText, keyword)) {\n              return `${keyword} ${expressionText.slice(keyword.length)}`;\n            }\n          }\n          return void 0;\n        }\n        function parseSemicolonAfterPropertyName(name, type, initializer) {\n          if (token() === 59 && !scanner2.hasPrecedingLineBreak()) {\n            parseErrorAtCurrentToken(Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);\n            return;\n          }\n          if (token() === 20) {\n            parseErrorAtCurrentToken(Diagnostics.Cannot_start_a_function_call_in_a_type_annotation);\n            nextToken();\n            return;\n          }\n          if (type && !canParseSemicolon()) {\n            if (initializer) {\n              parseErrorAtCurrentToken(Diagnostics._0_expected, tokenToString(26));\n            } else {\n              parseErrorAtCurrentToken(Diagnostics.Expected_for_property_initializer);\n            }\n            return;\n          }\n          if (tryParseSemicolon()) {\n            return;\n          }\n          if (initializer) {\n            parseErrorAtCurrentToken(Diagnostics._0_expected, tokenToString(26));\n            return;\n          }\n          parseErrorForMissingSemicolonAfter(name);\n        }\n        function parseExpectedJSDoc(kind) {\n          if (token() === kind) {\n            nextTokenJSDoc();\n            return true;\n          }\n          parseErrorAtCurrentToken(Diagnostics._0_expected, tokenToString(kind));\n          return false;\n        }\n        function parseExpectedMatchingBrackets(openKind, closeKind, openParsed, openPosition) {\n          if (token() === closeKind) {\n            nextToken();\n            return;\n          }\n          const lastError = parseErrorAtCurrentToken(Diagnostics._0_expected, tokenToString(closeKind));\n          if (!openParsed) {\n            return;\n          }\n          if (lastError) {\n            addRelatedInfo(lastError, createDetachedDiagnostic(fileName, openPosition, 1, Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here, tokenToString(openKind), tokenToString(closeKind)));\n          }\n        }\n        function parseOptional(t) {\n          if (token() === t) {\n            nextToken();\n            return true;\n          }\n          return false;\n        }\n        function parseOptionalToken(t) {\n          if (token() === t) {\n            return parseTokenNode();\n          }\n          return void 0;\n        }\n        function parseOptionalTokenJSDoc(t) {\n          if (token() === t) {\n            return parseTokenNodeJSDoc();\n          }\n          return void 0;\n        }\n        function parseExpectedToken(t, diagnosticMessage, arg0) {\n          return parseOptionalToken(t) || createMissingNode(t, false, diagnosticMessage || Diagnostics._0_expected, arg0 || tokenToString(t));\n        }\n        function parseExpectedTokenJSDoc(t) {\n          return parseOptionalTokenJSDoc(t) || createMissingNode(t, false, Diagnostics._0_expected, tokenToString(t));\n        }\n        function parseTokenNode() {\n          const pos = getNodePos();\n          const kind = token();\n          nextToken();\n          return finishNode(factoryCreateToken(kind), pos);\n        }\n        function parseTokenNodeJSDoc() {\n          const pos = getNodePos();\n          const kind = token();\n          nextTokenJSDoc();\n          return finishNode(factoryCreateToken(kind), pos);\n        }\n        function canParseSemicolon() {\n          if (token() === 26) {\n            return true;\n          }\n          return token() === 19 || token() === 1 || scanner2.hasPrecedingLineBreak();\n        }\n        function tryParseSemicolon() {\n          if (!canParseSemicolon()) {\n            return false;\n          }\n          if (token() === 26) {\n            nextToken();\n          }\n          return true;\n        }\n        function parseSemicolon() {\n          return tryParseSemicolon() || parseExpected(26);\n        }\n        function createNodeArray(elements, pos, end, hasTrailingComma) {\n          const array = factoryCreateNodeArray(elements, hasTrailingComma);\n          setTextRangePosEnd(array, pos, end != null ? end : scanner2.getStartPos());\n          return array;\n        }\n        function finishNode(node, pos, end) {\n          setTextRangePosEnd(node, pos, end != null ? end : scanner2.getStartPos());\n          if (contextFlags) {\n            node.flags |= contextFlags;\n          }\n          if (parseErrorBeforeNextFinishedNode) {\n            parseErrorBeforeNextFinishedNode = false;\n            node.flags |= 131072;\n          }\n          return node;\n        }\n        function createMissingNode(kind, reportAtCurrentPosition, diagnosticMessage, arg0) {\n          if (reportAtCurrentPosition) {\n            parseErrorAtPosition(scanner2.getStartPos(), 0, diagnosticMessage, arg0);\n          } else if (diagnosticMessage) {\n            parseErrorAtCurrentToken(diagnosticMessage, arg0);\n          }\n          const pos = getNodePos();\n          const result = kind === 79 ? factoryCreateIdentifier(\"\", void 0) : isTemplateLiteralKind(kind) ? factory2.createTemplateLiteralLikeNode(kind, \"\", \"\", void 0) : kind === 8 ? factoryCreateNumericLiteral(\"\", void 0) : kind === 10 ? factoryCreateStringLiteral(\"\", void 0) : kind === 279 ? factory2.createMissingDeclaration() : factoryCreateToken(kind);\n          return finishNode(result, pos);\n        }\n        function internIdentifier(text) {\n          let identifier = identifiers.get(text);\n          if (identifier === void 0) {\n            identifiers.set(text, identifier = text);\n          }\n          return identifier;\n        }\n        function createIdentifier(isIdentifier3, diagnosticMessage, privateIdentifierDiagnosticMessage) {\n          if (isIdentifier3) {\n            identifierCount++;\n            const pos = getNodePos();\n            const originalKeywordKind = token();\n            const text = internIdentifier(scanner2.getTokenValue());\n            const hasExtendedUnicodeEscape = scanner2.hasExtendedUnicodeEscape();\n            nextTokenWithoutCheck();\n            return finishNode(factoryCreateIdentifier(text, originalKeywordKind, hasExtendedUnicodeEscape), pos);\n          }\n          if (token() === 80) {\n            parseErrorAtCurrentToken(privateIdentifierDiagnosticMessage || Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);\n            return createIdentifier(true);\n          }\n          if (token() === 0 && scanner2.tryScan(() => scanner2.reScanInvalidIdentifier() === 79)) {\n            return createIdentifier(true);\n          }\n          identifierCount++;\n          const reportAtCurrentPosition = token() === 1;\n          const isReservedWord = scanner2.isReservedWord();\n          const msgArg = scanner2.getTokenText();\n          const defaultMessage = isReservedWord ? Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here : Diagnostics.Identifier_expected;\n          return createMissingNode(79, reportAtCurrentPosition, diagnosticMessage || defaultMessage, msgArg);\n        }\n        function parseBindingIdentifier(privateIdentifierDiagnosticMessage) {\n          return createIdentifier(isBindingIdentifier(), void 0, privateIdentifierDiagnosticMessage);\n        }\n        function parseIdentifier(diagnosticMessage, privateIdentifierDiagnosticMessage) {\n          return createIdentifier(isIdentifier2(), diagnosticMessage, privateIdentifierDiagnosticMessage);\n        }\n        function parseIdentifierName(diagnosticMessage) {\n          return createIdentifier(tokenIsIdentifierOrKeyword(token()), diagnosticMessage);\n        }\n        function isLiteralPropertyName() {\n          return tokenIsIdentifierOrKeyword(token()) || token() === 10 || token() === 8;\n        }\n        function isAssertionKey2() {\n          return tokenIsIdentifierOrKeyword(token()) || token() === 10;\n        }\n        function parsePropertyNameWorker(allowComputedPropertyNames) {\n          if (token() === 10 || token() === 8) {\n            const node = parseLiteralNode();\n            node.text = internIdentifier(node.text);\n            return node;\n          }\n          if (allowComputedPropertyNames && token() === 22) {\n            return parseComputedPropertyName();\n          }\n          if (token() === 80) {\n            return parsePrivateIdentifier();\n          }\n          return parseIdentifierName();\n        }\n        function parsePropertyName() {\n          return parsePropertyNameWorker(true);\n        }\n        function parseComputedPropertyName() {\n          const pos = getNodePos();\n          parseExpected(22);\n          const expression = allowInAnd(parseExpression);\n          parseExpected(23);\n          return finishNode(factory2.createComputedPropertyName(expression), pos);\n        }\n        function parsePrivateIdentifier() {\n          const pos = getNodePos();\n          const node = factoryCreatePrivateIdentifier(internIdentifier(scanner2.getTokenValue()));\n          nextToken();\n          return finishNode(node, pos);\n        }\n        function parseContextualModifier(t) {\n          return token() === t && tryParse(nextTokenCanFollowModifier);\n        }\n        function nextTokenIsOnSameLineAndCanFollowModifier() {\n          nextToken();\n          if (scanner2.hasPrecedingLineBreak()) {\n            return false;\n          }\n          return canFollowModifier();\n        }\n        function nextTokenCanFollowModifier() {\n          switch (token()) {\n            case 85:\n              return nextToken() === 92;\n            case 93:\n              nextToken();\n              if (token() === 88) {\n                return lookAhead(nextTokenCanFollowDefaultKeyword);\n              }\n              if (token() === 154) {\n                return lookAhead(nextTokenCanFollowExportModifier);\n              }\n              return canFollowExportModifier();\n            case 88:\n              return nextTokenCanFollowDefaultKeyword();\n            case 124:\n            case 137:\n            case 151:\n              nextToken();\n              return canFollowModifier();\n            default:\n              return nextTokenIsOnSameLineAndCanFollowModifier();\n          }\n        }\n        function canFollowExportModifier() {\n          return token() === 59 || token() !== 41 && token() !== 128 && token() !== 18 && canFollowModifier();\n        }\n        function nextTokenCanFollowExportModifier() {\n          nextToken();\n          return canFollowExportModifier();\n        }\n        function parseAnyContextualModifier() {\n          return isModifierKind(token()) && tryParse(nextTokenCanFollowModifier);\n        }\n        function canFollowModifier() {\n          return token() === 22 || token() === 18 || token() === 41 || token() === 25 || isLiteralPropertyName();\n        }\n        function nextTokenCanFollowDefaultKeyword() {\n          nextToken();\n          return token() === 84 || token() === 98 || token() === 118 || token() === 59 || token() === 126 && lookAhead(nextTokenIsClassKeywordOnSameLine) || token() === 132 && lookAhead(nextTokenIsFunctionKeywordOnSameLine);\n        }\n        function isListElement2(parsingContext2, inErrorRecovery) {\n          const node = currentNode(parsingContext2);\n          if (node) {\n            return true;\n          }\n          switch (parsingContext2) {\n            case 0:\n            case 1:\n            case 3:\n              return !(token() === 26 && inErrorRecovery) && isStartOfStatement();\n            case 2:\n              return token() === 82 || token() === 88;\n            case 4:\n              return lookAhead(isTypeMemberStart);\n            case 5:\n              return lookAhead(isClassMemberStart) || token() === 26 && !inErrorRecovery;\n            case 6:\n              return token() === 22 || isLiteralPropertyName();\n            case 12:\n              switch (token()) {\n                case 22:\n                case 41:\n                case 25:\n                case 24:\n                  return true;\n                default:\n                  return isLiteralPropertyName();\n              }\n            case 18:\n              return isLiteralPropertyName();\n            case 9:\n              return token() === 22 || token() === 25 || isLiteralPropertyName();\n            case 24:\n              return isAssertionKey2();\n            case 7:\n              if (token() === 18) {\n                return lookAhead(isValidHeritageClauseObjectLiteral);\n              }\n              if (!inErrorRecovery) {\n                return isStartOfLeftHandSideExpression() && !isHeritageClauseExtendsOrImplementsKeyword();\n              } else {\n                return isIdentifier2() && !isHeritageClauseExtendsOrImplementsKeyword();\n              }\n            case 8:\n              return isBindingIdentifierOrPrivateIdentifierOrPattern();\n            case 10:\n              return token() === 27 || token() === 25 || isBindingIdentifierOrPrivateIdentifierOrPattern();\n            case 19:\n              return token() === 101 || token() === 85 || isIdentifier2();\n            case 15:\n              switch (token()) {\n                case 27:\n                case 24:\n                  return true;\n              }\n            case 11:\n              return token() === 25 || isStartOfExpression();\n            case 16:\n              return isStartOfParameter(false);\n            case 17:\n              return isStartOfParameter(true);\n            case 20:\n            case 21:\n              return token() === 27 || isStartOfType();\n            case 22:\n              return isHeritageClause2();\n            case 23:\n              return tokenIsIdentifierOrKeyword(token());\n            case 13:\n              return tokenIsIdentifierOrKeyword(token()) || token() === 18;\n            case 14:\n              return true;\n          }\n          return Debug.fail(\"Non-exhaustive case in 'isListElement'.\");\n        }\n        function isValidHeritageClauseObjectLiteral() {\n          Debug.assert(token() === 18);\n          if (nextToken() === 19) {\n            const next = nextToken();\n            return next === 27 || next === 18 || next === 94 || next === 117;\n          }\n          return true;\n        }\n        function nextTokenIsIdentifier() {\n          nextToken();\n          return isIdentifier2();\n        }\n        function nextTokenIsIdentifierOrKeyword() {\n          nextToken();\n          return tokenIsIdentifierOrKeyword(token());\n        }\n        function nextTokenIsIdentifierOrKeywordOrGreaterThan() {\n          nextToken();\n          return tokenIsIdentifierOrKeywordOrGreaterThan(token());\n        }\n        function isHeritageClauseExtendsOrImplementsKeyword() {\n          if (token() === 117 || token() === 94) {\n            return lookAhead(nextTokenIsStartOfExpression);\n          }\n          return false;\n        }\n        function nextTokenIsStartOfExpression() {\n          nextToken();\n          return isStartOfExpression();\n        }\n        function nextTokenIsStartOfType() {\n          nextToken();\n          return isStartOfType();\n        }\n        function isListTerminator(kind) {\n          if (token() === 1) {\n            return true;\n          }\n          switch (kind) {\n            case 1:\n            case 2:\n            case 4:\n            case 5:\n            case 6:\n            case 12:\n            case 9:\n            case 23:\n            case 24:\n              return token() === 19;\n            case 3:\n              return token() === 19 || token() === 82 || token() === 88;\n            case 7:\n              return token() === 18 || token() === 94 || token() === 117;\n            case 8:\n              return isVariableDeclaratorListTerminator();\n            case 19:\n              return token() === 31 || token() === 20 || token() === 18 || token() === 94 || token() === 117;\n            case 11:\n              return token() === 21 || token() === 26;\n            case 15:\n            case 21:\n            case 10:\n              return token() === 23;\n            case 17:\n            case 16:\n            case 18:\n              return token() === 21 || token() === 23;\n            case 20:\n              return token() !== 27;\n            case 22:\n              return token() === 18 || token() === 19;\n            case 13:\n              return token() === 31 || token() === 43;\n            case 14:\n              return token() === 29 && lookAhead(nextTokenIsSlash);\n            default:\n              return false;\n          }\n        }\n        function isVariableDeclaratorListTerminator() {\n          if (canParseSemicolon()) {\n            return true;\n          }\n          if (isInOrOfKeyword(token())) {\n            return true;\n          }\n          if (token() === 38) {\n            return true;\n          }\n          return false;\n        }\n        function isInSomeParsingContext() {\n          for (let kind = 0; kind < 25; kind++) {\n            if (parsingContext & 1 << kind) {\n              if (isListElement2(kind, true) || isListTerminator(kind)) {\n                return true;\n              }\n            }\n          }\n          return false;\n        }\n        function parseList(kind, parseElement) {\n          const saveParsingContext = parsingContext;\n          parsingContext |= 1 << kind;\n          const list = [];\n          const listPos = getNodePos();\n          while (!isListTerminator(kind)) {\n            if (isListElement2(kind, false)) {\n              list.push(parseListElement(kind, parseElement));\n              continue;\n            }\n            if (abortParsingListOrMoveToNextToken(kind)) {\n              break;\n            }\n          }\n          parsingContext = saveParsingContext;\n          return createNodeArray(list, listPos);\n        }\n        function parseListElement(parsingContext2, parseElement) {\n          const node = currentNode(parsingContext2);\n          if (node) {\n            return consumeNode(node);\n          }\n          return parseElement();\n        }\n        function currentNode(parsingContext2, pos) {\n          var _a2;\n          if (!syntaxCursor || !isReusableParsingContext(parsingContext2) || parseErrorBeforeNextFinishedNode) {\n            return void 0;\n          }\n          const node = syntaxCursor.currentNode(pos != null ? pos : scanner2.getStartPos());\n          if (nodeIsMissing(node) || node.intersectsChange || containsParseError(node)) {\n            return void 0;\n          }\n          const nodeContextFlags = node.flags & 50720768;\n          if (nodeContextFlags !== contextFlags) {\n            return void 0;\n          }\n          if (!canReuseNode(node, parsingContext2)) {\n            return void 0;\n          }\n          if (canHaveJSDoc(node) && ((_a2 = node.jsDoc) == null ? void 0 : _a2.jsDocCache)) {\n            node.jsDoc.jsDocCache = void 0;\n          }\n          return node;\n        }\n        function consumeNode(node) {\n          scanner2.setTextPos(node.end);\n          nextToken();\n          return node;\n        }\n        function isReusableParsingContext(parsingContext2) {\n          switch (parsingContext2) {\n            case 5:\n            case 2:\n            case 0:\n            case 1:\n            case 3:\n            case 6:\n            case 4:\n            case 8:\n            case 17:\n            case 16:\n              return true;\n          }\n          return false;\n        }\n        function canReuseNode(node, parsingContext2) {\n          switch (parsingContext2) {\n            case 5:\n              return isReusableClassMember(node);\n            case 2:\n              return isReusableSwitchClause(node);\n            case 0:\n            case 1:\n            case 3:\n              return isReusableStatement(node);\n            case 6:\n              return isReusableEnumMember(node);\n            case 4:\n              return isReusableTypeMember(node);\n            case 8:\n              return isReusableVariableDeclaration(node);\n            case 17:\n            case 16:\n              return isReusableParameter(node);\n          }\n          return false;\n        }\n        function isReusableClassMember(node) {\n          if (node) {\n            switch (node.kind) {\n              case 173:\n              case 178:\n              case 174:\n              case 175:\n              case 169:\n              case 237:\n                return true;\n              case 171:\n                const methodDeclaration = node;\n                const nameIsConstructor = methodDeclaration.name.kind === 79 && methodDeclaration.name.escapedText === \"constructor\";\n                return !nameIsConstructor;\n            }\n          }\n          return false;\n        }\n        function isReusableSwitchClause(node) {\n          if (node) {\n            switch (node.kind) {\n              case 292:\n              case 293:\n                return true;\n            }\n          }\n          return false;\n        }\n        function isReusableStatement(node) {\n          if (node) {\n            switch (node.kind) {\n              case 259:\n              case 240:\n              case 238:\n              case 242:\n              case 241:\n              case 254:\n              case 250:\n              case 252:\n              case 249:\n              case 248:\n              case 246:\n              case 247:\n              case 245:\n              case 244:\n              case 251:\n              case 239:\n              case 255:\n              case 253:\n              case 243:\n              case 256:\n              case 269:\n              case 268:\n              case 275:\n              case 274:\n              case 264:\n              case 260:\n              case 261:\n              case 263:\n              case 262:\n                return true;\n            }\n          }\n          return false;\n        }\n        function isReusableEnumMember(node) {\n          return node.kind === 302;\n        }\n        function isReusableTypeMember(node) {\n          if (node) {\n            switch (node.kind) {\n              case 177:\n              case 170:\n              case 178:\n              case 168:\n              case 176:\n                return true;\n            }\n          }\n          return false;\n        }\n        function isReusableVariableDeclaration(node) {\n          if (node.kind !== 257) {\n            return false;\n          }\n          const variableDeclarator = node;\n          return variableDeclarator.initializer === void 0;\n        }\n        function isReusableParameter(node) {\n          if (node.kind !== 166) {\n            return false;\n          }\n          const parameter = node;\n          return parameter.initializer === void 0;\n        }\n        function abortParsingListOrMoveToNextToken(kind) {\n          parsingContextErrors(kind);\n          if (isInSomeParsingContext()) {\n            return true;\n          }\n          nextToken();\n          return false;\n        }\n        function parsingContextErrors(context) {\n          switch (context) {\n            case 0:\n              return token() === 88 ? parseErrorAtCurrentToken(Diagnostics._0_expected, tokenToString(93)) : parseErrorAtCurrentToken(Diagnostics.Declaration_or_statement_expected);\n            case 1:\n              return parseErrorAtCurrentToken(Diagnostics.Declaration_or_statement_expected);\n            case 2:\n              return parseErrorAtCurrentToken(Diagnostics.case_or_default_expected);\n            case 3:\n              return parseErrorAtCurrentToken(Diagnostics.Statement_expected);\n            case 18:\n            case 4:\n              return parseErrorAtCurrentToken(Diagnostics.Property_or_signature_expected);\n            case 5:\n              return parseErrorAtCurrentToken(Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);\n            case 6:\n              return parseErrorAtCurrentToken(Diagnostics.Enum_member_expected);\n            case 7:\n              return parseErrorAtCurrentToken(Diagnostics.Expression_expected);\n            case 8:\n              return isKeyword(token()) ? parseErrorAtCurrentToken(Diagnostics._0_is_not_allowed_as_a_variable_declaration_name, tokenToString(token())) : parseErrorAtCurrentToken(Diagnostics.Variable_declaration_expected);\n            case 9:\n              return parseErrorAtCurrentToken(Diagnostics.Property_destructuring_pattern_expected);\n            case 10:\n              return parseErrorAtCurrentToken(Diagnostics.Array_element_destructuring_pattern_expected);\n            case 11:\n              return parseErrorAtCurrentToken(Diagnostics.Argument_expression_expected);\n            case 12:\n              return parseErrorAtCurrentToken(Diagnostics.Property_assignment_expected);\n            case 15:\n              return parseErrorAtCurrentToken(Diagnostics.Expression_or_comma_expected);\n            case 17:\n              return parseErrorAtCurrentToken(Diagnostics.Parameter_declaration_expected);\n            case 16:\n              return isKeyword(token()) ? parseErrorAtCurrentToken(Diagnostics._0_is_not_allowed_as_a_parameter_name, tokenToString(token())) : parseErrorAtCurrentToken(Diagnostics.Parameter_declaration_expected);\n            case 19:\n              return parseErrorAtCurrentToken(Diagnostics.Type_parameter_declaration_expected);\n            case 20:\n              return parseErrorAtCurrentToken(Diagnostics.Type_argument_expected);\n            case 21:\n              return parseErrorAtCurrentToken(Diagnostics.Type_expected);\n            case 22:\n              return parseErrorAtCurrentToken(Diagnostics.Unexpected_token_expected);\n            case 23:\n              return parseErrorAtCurrentToken(Diagnostics.Identifier_expected);\n            case 13:\n              return parseErrorAtCurrentToken(Diagnostics.Identifier_expected);\n            case 14:\n              return parseErrorAtCurrentToken(Diagnostics.Identifier_expected);\n            case 24:\n              return parseErrorAtCurrentToken(Diagnostics.Identifier_or_string_literal_expected);\n            case 25:\n              return Debug.fail(\"ParsingContext.Count used as a context\");\n            default:\n              Debug.assertNever(context);\n          }\n        }\n        function parseDelimitedList(kind, parseElement, considerSemicolonAsDelimiter) {\n          const saveParsingContext = parsingContext;\n          parsingContext |= 1 << kind;\n          const list = [];\n          const listPos = getNodePos();\n          let commaStart = -1;\n          while (true) {\n            if (isListElement2(kind, false)) {\n              const startPos = scanner2.getStartPos();\n              const result = parseListElement(kind, parseElement);\n              if (!result) {\n                parsingContext = saveParsingContext;\n                return void 0;\n              }\n              list.push(result);\n              commaStart = scanner2.getTokenPos();\n              if (parseOptional(27)) {\n                continue;\n              }\n              commaStart = -1;\n              if (isListTerminator(kind)) {\n                break;\n              }\n              parseExpected(27, getExpectedCommaDiagnostic(kind));\n              if (considerSemicolonAsDelimiter && token() === 26 && !scanner2.hasPrecedingLineBreak()) {\n                nextToken();\n              }\n              if (startPos === scanner2.getStartPos()) {\n                nextToken();\n              }\n              continue;\n            }\n            if (isListTerminator(kind)) {\n              break;\n            }\n            if (abortParsingListOrMoveToNextToken(kind)) {\n              break;\n            }\n          }\n          parsingContext = saveParsingContext;\n          return createNodeArray(list, listPos, void 0, commaStart >= 0);\n        }\n        function getExpectedCommaDiagnostic(kind) {\n          return kind === 6 ? Diagnostics.An_enum_member_name_must_be_followed_by_a_or : void 0;\n        }\n        function createMissingList() {\n          const list = createNodeArray([], getNodePos());\n          list.isMissingList = true;\n          return list;\n        }\n        function isMissingList(arr) {\n          return !!arr.isMissingList;\n        }\n        function parseBracketedList(kind, parseElement, open, close) {\n          if (parseExpected(open)) {\n            const result = parseDelimitedList(kind, parseElement);\n            parseExpected(close);\n            return result;\n          }\n          return createMissingList();\n        }\n        function parseEntityName(allowReservedWords, diagnosticMessage) {\n          const pos = getNodePos();\n          let entity = allowReservedWords ? parseIdentifierName(diagnosticMessage) : parseIdentifier(diagnosticMessage);\n          while (parseOptional(24)) {\n            if (token() === 29) {\n              break;\n            }\n            entity = finishNode(factory2.createQualifiedName(entity, parseRightSideOfDot(allowReservedWords, false)), pos);\n          }\n          return entity;\n        }\n        function createQualifiedName(entity, name) {\n          return finishNode(factory2.createQualifiedName(entity, name), entity.pos);\n        }\n        function parseRightSideOfDot(allowIdentifierNames, allowPrivateIdentifiers) {\n          if (scanner2.hasPrecedingLineBreak() && tokenIsIdentifierOrKeyword(token())) {\n            const matchesPattern = lookAhead(nextTokenIsIdentifierOrKeywordOnSameLine);\n            if (matchesPattern) {\n              return createMissingNode(79, true, Diagnostics.Identifier_expected);\n            }\n          }\n          if (token() === 80) {\n            const node = parsePrivateIdentifier();\n            return allowPrivateIdentifiers ? node : createMissingNode(79, true, Diagnostics.Identifier_expected);\n          }\n          return allowIdentifierNames ? parseIdentifierName() : parseIdentifier();\n        }\n        function parseTemplateSpans(isTaggedTemplate) {\n          const pos = getNodePos();\n          const list = [];\n          let node;\n          do {\n            node = parseTemplateSpan(isTaggedTemplate);\n            list.push(node);\n          } while (node.literal.kind === 16);\n          return createNodeArray(list, pos);\n        }\n        function parseTemplateExpression(isTaggedTemplate) {\n          const pos = getNodePos();\n          return finishNode(factory2.createTemplateExpression(parseTemplateHead(isTaggedTemplate), parseTemplateSpans(isTaggedTemplate)), pos);\n        }\n        function parseTemplateType() {\n          const pos = getNodePos();\n          return finishNode(factory2.createTemplateLiteralType(parseTemplateHead(false), parseTemplateTypeSpans()), pos);\n        }\n        function parseTemplateTypeSpans() {\n          const pos = getNodePos();\n          const list = [];\n          let node;\n          do {\n            node = parseTemplateTypeSpan();\n            list.push(node);\n          } while (node.literal.kind === 16);\n          return createNodeArray(list, pos);\n        }\n        function parseTemplateTypeSpan() {\n          const pos = getNodePos();\n          return finishNode(factory2.createTemplateLiteralTypeSpan(parseType(), parseLiteralOfTemplateSpan(false)), pos);\n        }\n        function parseLiteralOfTemplateSpan(isTaggedTemplate) {\n          if (token() === 19) {\n            reScanTemplateToken(isTaggedTemplate);\n            return parseTemplateMiddleOrTemplateTail();\n          } else {\n            return parseExpectedToken(17, Diagnostics._0_expected, tokenToString(19));\n          }\n        }\n        function parseTemplateSpan(isTaggedTemplate) {\n          const pos = getNodePos();\n          return finishNode(factory2.createTemplateSpan(allowInAnd(parseExpression), parseLiteralOfTemplateSpan(isTaggedTemplate)), pos);\n        }\n        function parseLiteralNode() {\n          return parseLiteralLikeNode(token());\n        }\n        function parseTemplateHead(isTaggedTemplate) {\n          if (isTaggedTemplate) {\n            reScanTemplateHeadOrNoSubstitutionTemplate();\n          }\n          const fragment = parseLiteralLikeNode(token());\n          Debug.assert(fragment.kind === 15, \"Template head has wrong token kind\");\n          return fragment;\n        }\n        function parseTemplateMiddleOrTemplateTail() {\n          const fragment = parseLiteralLikeNode(token());\n          Debug.assert(fragment.kind === 16 || fragment.kind === 17, \"Template fragment has wrong token kind\");\n          return fragment;\n        }\n        function getTemplateLiteralRawText(kind) {\n          const isLast = kind === 14 || kind === 17;\n          const tokenText = scanner2.getTokenText();\n          return tokenText.substring(1, tokenText.length - (scanner2.isUnterminated() ? 0 : isLast ? 1 : 2));\n        }\n        function parseLiteralLikeNode(kind) {\n          const pos = getNodePos();\n          const node = isTemplateLiteralKind(kind) ? factory2.createTemplateLiteralLikeNode(kind, scanner2.getTokenValue(), getTemplateLiteralRawText(kind), scanner2.getTokenFlags() & 2048) : kind === 8 ? factoryCreateNumericLiteral(scanner2.getTokenValue(), scanner2.getNumericLiteralFlags()) : kind === 10 ? factoryCreateStringLiteral(scanner2.getTokenValue(), void 0, scanner2.hasExtendedUnicodeEscape()) : isLiteralKind(kind) ? factoryCreateLiteralLikeNode(kind, scanner2.getTokenValue()) : Debug.fail();\n          if (scanner2.hasExtendedUnicodeEscape()) {\n            node.hasExtendedUnicodeEscape = true;\n          }\n          if (scanner2.isUnterminated()) {\n            node.isUnterminated = true;\n          }\n          nextToken();\n          return finishNode(node, pos);\n        }\n        function parseEntityNameOfTypeReference() {\n          return parseEntityName(true, Diagnostics.Type_expected);\n        }\n        function parseTypeArgumentsOfTypeReference() {\n          if (!scanner2.hasPrecedingLineBreak() && reScanLessThanToken() === 29) {\n            return parseBracketedList(20, parseType, 29, 31);\n          }\n        }\n        function parseTypeReference() {\n          const pos = getNodePos();\n          return finishNode(factory2.createTypeReferenceNode(parseEntityNameOfTypeReference(), parseTypeArgumentsOfTypeReference()), pos);\n        }\n        function typeHasArrowFunctionBlockingParseError(node) {\n          switch (node.kind) {\n            case 180:\n              return nodeIsMissing(node.typeName);\n            case 181:\n            case 182: {\n              const { parameters, type } = node;\n              return isMissingList(parameters) || typeHasArrowFunctionBlockingParseError(type);\n            }\n            case 193:\n              return typeHasArrowFunctionBlockingParseError(node.type);\n            default:\n              return false;\n          }\n        }\n        function parseThisTypePredicate(lhs) {\n          nextToken();\n          return finishNode(factory2.createTypePredicateNode(void 0, lhs, parseType()), lhs.pos);\n        }\n        function parseThisTypeNode() {\n          const pos = getNodePos();\n          nextToken();\n          return finishNode(factory2.createThisTypeNode(), pos);\n        }\n        function parseJSDocAllType() {\n          const pos = getNodePos();\n          nextToken();\n          return finishNode(factory2.createJSDocAllType(), pos);\n        }\n        function parseJSDocNonNullableType() {\n          const pos = getNodePos();\n          nextToken();\n          return finishNode(factory2.createJSDocNonNullableType(parseNonArrayType(), false), pos);\n        }\n        function parseJSDocUnknownOrNullableType() {\n          const pos = getNodePos();\n          nextToken();\n          if (token() === 27 || token() === 19 || token() === 21 || token() === 31 || token() === 63 || token() === 51) {\n            return finishNode(factory2.createJSDocUnknownType(), pos);\n          } else {\n            return finishNode(factory2.createJSDocNullableType(parseType(), false), pos);\n          }\n        }\n        function parseJSDocFunctionType() {\n          const pos = getNodePos();\n          const hasJSDoc = hasPrecedingJSDocComment();\n          if (lookAhead(nextTokenIsOpenParen)) {\n            nextToken();\n            const parameters = parseParameters(4 | 32);\n            const type = parseReturnType(58, false);\n            return withJSDoc(finishNode(factory2.createJSDocFunctionType(parameters, type), pos), hasJSDoc);\n          }\n          return finishNode(factory2.createTypeReferenceNode(parseIdentifierName(), void 0), pos);\n        }\n        function parseJSDocParameter() {\n          const pos = getNodePos();\n          let name;\n          if (token() === 108 || token() === 103) {\n            name = parseIdentifierName();\n            parseExpected(58);\n          }\n          return finishNode(factory2.createParameterDeclaration(void 0, void 0, name, void 0, parseJSDocType(), void 0), pos);\n        }\n        function parseJSDocType() {\n          scanner2.setInJSDocType(true);\n          const pos = getNodePos();\n          if (parseOptional(142)) {\n            const moduleTag = factory2.createJSDocNamepathType(void 0);\n            terminate:\n              while (true) {\n                switch (token()) {\n                  case 19:\n                  case 1:\n                  case 27:\n                  case 5:\n                    break terminate;\n                  default:\n                    nextTokenJSDoc();\n                }\n              }\n            scanner2.setInJSDocType(false);\n            return finishNode(moduleTag, pos);\n          }\n          const hasDotDotDot = parseOptional(25);\n          let type = parseTypeOrTypePredicate();\n          scanner2.setInJSDocType(false);\n          if (hasDotDotDot) {\n            type = finishNode(factory2.createJSDocVariadicType(type), pos);\n          }\n          if (token() === 63) {\n            nextToken();\n            return finishNode(factory2.createJSDocOptionalType(type), pos);\n          }\n          return type;\n        }\n        function parseTypeQuery() {\n          const pos = getNodePos();\n          parseExpected(112);\n          const entityName = parseEntityName(true);\n          const typeArguments = !scanner2.hasPrecedingLineBreak() ? tryParseTypeArguments() : void 0;\n          return finishNode(factory2.createTypeQueryNode(entityName, typeArguments), pos);\n        }\n        function parseTypeParameter() {\n          const pos = getNodePos();\n          const modifiers = parseModifiers(false, true);\n          const name = parseIdentifier();\n          let constraint;\n          let expression;\n          if (parseOptional(94)) {\n            if (isStartOfType() || !isStartOfExpression()) {\n              constraint = parseType();\n            } else {\n              expression = parseUnaryExpressionOrHigher();\n            }\n          }\n          const defaultType = parseOptional(63) ? parseType() : void 0;\n          const node = factory2.createTypeParameterDeclaration(modifiers, name, constraint, defaultType);\n          node.expression = expression;\n          return finishNode(node, pos);\n        }\n        function parseTypeParameters() {\n          if (token() === 29) {\n            return parseBracketedList(19, parseTypeParameter, 29, 31);\n          }\n        }\n        function isStartOfParameter(isJSDocParameter) {\n          return token() === 25 || isBindingIdentifierOrPrivateIdentifierOrPattern() || isModifierKind(token()) || token() === 59 || isStartOfType(!isJSDocParameter);\n        }\n        function parseNameOfParameter(modifiers) {\n          const name = parseIdentifierOrPattern(Diagnostics.Private_identifiers_cannot_be_used_as_parameters);\n          if (getFullWidth(name) === 0 && !some(modifiers) && isModifierKind(token())) {\n            nextToken();\n          }\n          return name;\n        }\n        function isParameterNameStart() {\n          return isBindingIdentifier() || token() === 22 || token() === 18;\n        }\n        function parseParameter(inOuterAwaitContext) {\n          return parseParameterWorker(inOuterAwaitContext);\n        }\n        function parseParameterForSpeculation(inOuterAwaitContext) {\n          return parseParameterWorker(inOuterAwaitContext, false);\n        }\n        function parseParameterWorker(inOuterAwaitContext, allowAmbiguity = true) {\n          const pos = getNodePos();\n          const hasJSDoc = hasPrecedingJSDocComment();\n          const modifiers = inOuterAwaitContext ? doInAwaitContext(() => parseModifiers(true)) : doOutsideOfAwaitContext(() => parseModifiers(true));\n          if (token() === 108) {\n            const node2 = factory2.createParameterDeclaration(modifiers, void 0, createIdentifier(true), void 0, parseTypeAnnotation(), void 0);\n            const modifier = firstOrUndefined(modifiers);\n            if (modifier) {\n              parseErrorAtRange(modifier, Diagnostics.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);\n            }\n            return withJSDoc(finishNode(node2, pos), hasJSDoc);\n          }\n          const savedTopLevel = topLevel;\n          topLevel = false;\n          const dotDotDotToken = parseOptionalToken(25);\n          if (!allowAmbiguity && !isParameterNameStart()) {\n            return void 0;\n          }\n          const node = withJSDoc(finishNode(factory2.createParameterDeclaration(modifiers, dotDotDotToken, parseNameOfParameter(modifiers), parseOptionalToken(57), parseTypeAnnotation(), parseInitializer()), pos), hasJSDoc);\n          topLevel = savedTopLevel;\n          return node;\n        }\n        function parseReturnType(returnToken, isType) {\n          if (shouldParseReturnType(returnToken, isType)) {\n            return allowConditionalTypesAnd(parseTypeOrTypePredicate);\n          }\n        }\n        function shouldParseReturnType(returnToken, isType) {\n          if (returnToken === 38) {\n            parseExpected(returnToken);\n            return true;\n          } else if (parseOptional(58)) {\n            return true;\n          } else if (isType && token() === 38) {\n            parseErrorAtCurrentToken(Diagnostics._0_expected, tokenToString(58));\n            nextToken();\n            return true;\n          }\n          return false;\n        }\n        function parseParametersWorker(flags, allowAmbiguity) {\n          const savedYieldContext = inYieldContext();\n          const savedAwaitContext = inAwaitContext();\n          setYieldContext(!!(flags & 1));\n          setAwaitContext(!!(flags & 2));\n          const parameters = flags & 32 ? parseDelimitedList(17, parseJSDocParameter) : parseDelimitedList(16, () => allowAmbiguity ? parseParameter(savedAwaitContext) : parseParameterForSpeculation(savedAwaitContext));\n          setYieldContext(savedYieldContext);\n          setAwaitContext(savedAwaitContext);\n          return parameters;\n        }\n        function parseParameters(flags) {\n          if (!parseExpected(20)) {\n            return createMissingList();\n          }\n          const parameters = parseParametersWorker(flags, true);\n          parseExpected(21);\n          return parameters;\n        }\n        function parseTypeMemberSemicolon() {\n          if (parseOptional(27)) {\n            return;\n          }\n          parseSemicolon();\n        }\n        function parseSignatureMember(kind) {\n          const pos = getNodePos();\n          const hasJSDoc = hasPrecedingJSDocComment();\n          if (kind === 177) {\n            parseExpected(103);\n          }\n          const typeParameters = parseTypeParameters();\n          const parameters = parseParameters(4);\n          const type = parseReturnType(58, true);\n          parseTypeMemberSemicolon();\n          const node = kind === 176 ? factory2.createCallSignature(typeParameters, parameters, type) : factory2.createConstructSignature(typeParameters, parameters, type);\n          return withJSDoc(finishNode(node, pos), hasJSDoc);\n        }\n        function isIndexSignature() {\n          return token() === 22 && lookAhead(isUnambiguouslyIndexSignature);\n        }\n        function isUnambiguouslyIndexSignature() {\n          nextToken();\n          if (token() === 25 || token() === 23) {\n            return true;\n          }\n          if (isModifierKind(token())) {\n            nextToken();\n            if (isIdentifier2()) {\n              return true;\n            }\n          } else if (!isIdentifier2()) {\n            return false;\n          } else {\n            nextToken();\n          }\n          if (token() === 58 || token() === 27) {\n            return true;\n          }\n          if (token() !== 57) {\n            return false;\n          }\n          nextToken();\n          return token() === 58 || token() === 27 || token() === 23;\n        }\n        function parseIndexSignatureDeclaration(pos, hasJSDoc, modifiers) {\n          const parameters = parseBracketedList(16, () => parseParameter(false), 22, 23);\n          const type = parseTypeAnnotation();\n          parseTypeMemberSemicolon();\n          const node = factory2.createIndexSignature(modifiers, parameters, type);\n          return withJSDoc(finishNode(node, pos), hasJSDoc);\n        }\n        function parsePropertyOrMethodSignature(pos, hasJSDoc, modifiers) {\n          const name = parsePropertyName();\n          const questionToken = parseOptionalToken(57);\n          let node;\n          if (token() === 20 || token() === 29) {\n            const typeParameters = parseTypeParameters();\n            const parameters = parseParameters(4);\n            const type = parseReturnType(58, true);\n            node = factory2.createMethodSignature(modifiers, name, questionToken, typeParameters, parameters, type);\n          } else {\n            const type = parseTypeAnnotation();\n            node = factory2.createPropertySignature(modifiers, name, questionToken, type);\n            if (token() === 63)\n              node.initializer = parseInitializer();\n          }\n          parseTypeMemberSemicolon();\n          return withJSDoc(finishNode(node, pos), hasJSDoc);\n        }\n        function isTypeMemberStart() {\n          if (token() === 20 || token() === 29 || token() === 137 || token() === 151) {\n            return true;\n          }\n          let idToken = false;\n          while (isModifierKind(token())) {\n            idToken = true;\n            nextToken();\n          }\n          if (token() === 22) {\n            return true;\n          }\n          if (isLiteralPropertyName()) {\n            idToken = true;\n            nextToken();\n          }\n          if (idToken) {\n            return token() === 20 || token() === 29 || token() === 57 || token() === 58 || token() === 27 || canParseSemicolon();\n          }\n          return false;\n        }\n        function parseTypeMember() {\n          if (token() === 20 || token() === 29) {\n            return parseSignatureMember(176);\n          }\n          if (token() === 103 && lookAhead(nextTokenIsOpenParenOrLessThan)) {\n            return parseSignatureMember(177);\n          }\n          const pos = getNodePos();\n          const hasJSDoc = hasPrecedingJSDocComment();\n          const modifiers = parseModifiers(false);\n          if (parseContextualModifier(137)) {\n            return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 174, 4);\n          }\n          if (parseContextualModifier(151)) {\n            return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 175, 4);\n          }\n          if (isIndexSignature()) {\n            return parseIndexSignatureDeclaration(pos, hasJSDoc, modifiers);\n          }\n          return parsePropertyOrMethodSignature(pos, hasJSDoc, modifiers);\n        }\n        function nextTokenIsOpenParenOrLessThan() {\n          nextToken();\n          return token() === 20 || token() === 29;\n        }\n        function nextTokenIsDot() {\n          return nextToken() === 24;\n        }\n        function nextTokenIsOpenParenOrLessThanOrDot() {\n          switch (nextToken()) {\n            case 20:\n            case 29:\n            case 24:\n              return true;\n          }\n          return false;\n        }\n        function parseTypeLiteral() {\n          const pos = getNodePos();\n          return finishNode(factory2.createTypeLiteralNode(parseObjectTypeMembers()), pos);\n        }\n        function parseObjectTypeMembers() {\n          let members;\n          if (parseExpected(18)) {\n            members = parseList(4, parseTypeMember);\n            parseExpected(19);\n          } else {\n            members = createMissingList();\n          }\n          return members;\n        }\n        function isStartOfMappedType() {\n          nextToken();\n          if (token() === 39 || token() === 40) {\n            return nextToken() === 146;\n          }\n          if (token() === 146) {\n            nextToken();\n          }\n          return token() === 22 && nextTokenIsIdentifier() && nextToken() === 101;\n        }\n        function parseMappedTypeParameter() {\n          const pos = getNodePos();\n          const name = parseIdentifierName();\n          parseExpected(101);\n          const type = parseType();\n          return finishNode(factory2.createTypeParameterDeclaration(void 0, name, type, void 0), pos);\n        }\n        function parseMappedType() {\n          const pos = getNodePos();\n          parseExpected(18);\n          let readonlyToken;\n          if (token() === 146 || token() === 39 || token() === 40) {\n            readonlyToken = parseTokenNode();\n            if (readonlyToken.kind !== 146) {\n              parseExpected(146);\n            }\n          }\n          parseExpected(22);\n          const typeParameter = parseMappedTypeParameter();\n          const nameType = parseOptional(128) ? parseType() : void 0;\n          parseExpected(23);\n          let questionToken;\n          if (token() === 57 || token() === 39 || token() === 40) {\n            questionToken = parseTokenNode();\n            if (questionToken.kind !== 57) {\n              parseExpected(57);\n            }\n          }\n          const type = parseTypeAnnotation();\n          parseSemicolon();\n          const members = parseList(4, parseTypeMember);\n          parseExpected(19);\n          return finishNode(factory2.createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type, members), pos);\n        }\n        function parseTupleElementType() {\n          const pos = getNodePos();\n          if (parseOptional(25)) {\n            return finishNode(factory2.createRestTypeNode(parseType()), pos);\n          }\n          const type = parseType();\n          if (isJSDocNullableType(type) && type.pos === type.type.pos) {\n            const node = factory2.createOptionalTypeNode(type.type);\n            setTextRange(node, type);\n            node.flags = type.flags;\n            return node;\n          }\n          return type;\n        }\n        function isNextTokenColonOrQuestionColon() {\n          return nextToken() === 58 || token() === 57 && nextToken() === 58;\n        }\n        function isTupleElementName() {\n          if (token() === 25) {\n            return tokenIsIdentifierOrKeyword(nextToken()) && isNextTokenColonOrQuestionColon();\n          }\n          return tokenIsIdentifierOrKeyword(token()) && isNextTokenColonOrQuestionColon();\n        }\n        function parseTupleElementNameOrTupleElementType() {\n          if (lookAhead(isTupleElementName)) {\n            const pos = getNodePos();\n            const hasJSDoc = hasPrecedingJSDocComment();\n            const dotDotDotToken = parseOptionalToken(25);\n            const name = parseIdentifierName();\n            const questionToken = parseOptionalToken(57);\n            parseExpected(58);\n            const type = parseTupleElementType();\n            const node = factory2.createNamedTupleMember(dotDotDotToken, name, questionToken, type);\n            return withJSDoc(finishNode(node, pos), hasJSDoc);\n          }\n          return parseTupleElementType();\n        }\n        function parseTupleType() {\n          const pos = getNodePos();\n          return finishNode(factory2.createTupleTypeNode(parseBracketedList(21, parseTupleElementNameOrTupleElementType, 22, 23)), pos);\n        }\n        function parseParenthesizedType() {\n          const pos = getNodePos();\n          parseExpected(20);\n          const type = parseType();\n          parseExpected(21);\n          return finishNode(factory2.createParenthesizedType(type), pos);\n        }\n        function parseModifiersForConstructorType() {\n          let modifiers;\n          if (token() === 126) {\n            const pos = getNodePos();\n            nextToken();\n            const modifier = finishNode(factoryCreateToken(126), pos);\n            modifiers = createNodeArray([modifier], pos);\n          }\n          return modifiers;\n        }\n        function parseFunctionOrConstructorType() {\n          const pos = getNodePos();\n          const hasJSDoc = hasPrecedingJSDocComment();\n          const modifiers = parseModifiersForConstructorType();\n          const isConstructorType = parseOptional(103);\n          Debug.assert(!modifiers || isConstructorType, \"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.\");\n          const typeParameters = parseTypeParameters();\n          const parameters = parseParameters(4);\n          const type = parseReturnType(38, false);\n          const node = isConstructorType ? factory2.createConstructorTypeNode(modifiers, typeParameters, parameters, type) : factory2.createFunctionTypeNode(typeParameters, parameters, type);\n          return withJSDoc(finishNode(node, pos), hasJSDoc);\n        }\n        function parseKeywordAndNoDot() {\n          const node = parseTokenNode();\n          return token() === 24 ? void 0 : node;\n        }\n        function parseLiteralTypeNode(negative) {\n          const pos = getNodePos();\n          if (negative) {\n            nextToken();\n          }\n          let expression = token() === 110 || token() === 95 || token() === 104 ? parseTokenNode() : parseLiteralLikeNode(token());\n          if (negative) {\n            expression = finishNode(factory2.createPrefixUnaryExpression(40, expression), pos);\n          }\n          return finishNode(factory2.createLiteralTypeNode(expression), pos);\n        }\n        function isStartOfTypeOfImportType() {\n          nextToken();\n          return token() === 100;\n        }\n        function parseImportTypeAssertions() {\n          const pos = getNodePos();\n          const openBracePosition = scanner2.getTokenPos();\n          parseExpected(18);\n          const multiLine = scanner2.hasPrecedingLineBreak();\n          parseExpected(130);\n          parseExpected(58);\n          const clause = parseAssertClause(true);\n          if (!parseExpected(19)) {\n            const lastError = lastOrUndefined(parseDiagnostics);\n            if (lastError && lastError.code === Diagnostics._0_expected.code) {\n              addRelatedInfo(lastError, createDetachedDiagnostic(fileName, openBracePosition, 1, Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here, \"{\", \"}\"));\n            }\n          }\n          return finishNode(factory2.createImportTypeAssertionContainer(clause, multiLine), pos);\n        }\n        function parseImportType() {\n          sourceFlags |= 2097152;\n          const pos = getNodePos();\n          const isTypeOf = parseOptional(112);\n          parseExpected(100);\n          parseExpected(20);\n          const type = parseType();\n          let assertions;\n          if (parseOptional(27)) {\n            assertions = parseImportTypeAssertions();\n          }\n          parseExpected(21);\n          const qualifier = parseOptional(24) ? parseEntityNameOfTypeReference() : void 0;\n          const typeArguments = parseTypeArgumentsOfTypeReference();\n          return finishNode(factory2.createImportTypeNode(type, assertions, qualifier, typeArguments, isTypeOf), pos);\n        }\n        function nextTokenIsNumericOrBigIntLiteral() {\n          nextToken();\n          return token() === 8 || token() === 9;\n        }\n        function parseNonArrayType() {\n          switch (token()) {\n            case 131:\n            case 157:\n            case 152:\n            case 148:\n            case 160:\n            case 153:\n            case 134:\n            case 155:\n            case 144:\n            case 149:\n              return tryParse(parseKeywordAndNoDot) || parseTypeReference();\n            case 66:\n              scanner2.reScanAsteriskEqualsToken();\n            case 41:\n              return parseJSDocAllType();\n            case 60:\n              scanner2.reScanQuestionToken();\n            case 57:\n              return parseJSDocUnknownOrNullableType();\n            case 98:\n              return parseJSDocFunctionType();\n            case 53:\n              return parseJSDocNonNullableType();\n            case 14:\n            case 10:\n            case 8:\n            case 9:\n            case 110:\n            case 95:\n            case 104:\n              return parseLiteralTypeNode();\n            case 40:\n              return lookAhead(nextTokenIsNumericOrBigIntLiteral) ? parseLiteralTypeNode(true) : parseTypeReference();\n            case 114:\n              return parseTokenNode();\n            case 108: {\n              const thisKeyword = parseThisTypeNode();\n              if (token() === 140 && !scanner2.hasPrecedingLineBreak()) {\n                return parseThisTypePredicate(thisKeyword);\n              } else {\n                return thisKeyword;\n              }\n            }\n            case 112:\n              return lookAhead(isStartOfTypeOfImportType) ? parseImportType() : parseTypeQuery();\n            case 18:\n              return lookAhead(isStartOfMappedType) ? parseMappedType() : parseTypeLiteral();\n            case 22:\n              return parseTupleType();\n            case 20:\n              return parseParenthesizedType();\n            case 100:\n              return parseImportType();\n            case 129:\n              return lookAhead(nextTokenIsIdentifierOrKeywordOnSameLine) ? parseAssertsTypePredicate() : parseTypeReference();\n            case 15:\n              return parseTemplateType();\n            default:\n              return parseTypeReference();\n          }\n        }\n        function isStartOfType(inStartOfParameter) {\n          switch (token()) {\n            case 131:\n            case 157:\n            case 152:\n            case 148:\n            case 160:\n            case 134:\n            case 146:\n            case 153:\n            case 156:\n            case 114:\n            case 155:\n            case 104:\n            case 108:\n            case 112:\n            case 144:\n            case 18:\n            case 22:\n            case 29:\n            case 51:\n            case 50:\n            case 103:\n            case 10:\n            case 8:\n            case 9:\n            case 110:\n            case 95:\n            case 149:\n            case 41:\n            case 57:\n            case 53:\n            case 25:\n            case 138:\n            case 100:\n            case 129:\n            case 14:\n            case 15:\n              return true;\n            case 98:\n              return !inStartOfParameter;\n            case 40:\n              return !inStartOfParameter && lookAhead(nextTokenIsNumericOrBigIntLiteral);\n            case 20:\n              return !inStartOfParameter && lookAhead(isStartOfParenthesizedOrFunctionType);\n            default:\n              return isIdentifier2();\n          }\n        }\n        function isStartOfParenthesizedOrFunctionType() {\n          nextToken();\n          return token() === 21 || isStartOfParameter(false) || isStartOfType();\n        }\n        function parsePostfixTypeOrHigher() {\n          const pos = getNodePos();\n          let type = parseNonArrayType();\n          while (!scanner2.hasPrecedingLineBreak()) {\n            switch (token()) {\n              case 53:\n                nextToken();\n                type = finishNode(factory2.createJSDocNonNullableType(type, true), pos);\n                break;\n              case 57:\n                if (lookAhead(nextTokenIsStartOfType)) {\n                  return type;\n                }\n                nextToken();\n                type = finishNode(factory2.createJSDocNullableType(type, true), pos);\n                break;\n              case 22:\n                parseExpected(22);\n                if (isStartOfType()) {\n                  const indexType = parseType();\n                  parseExpected(23);\n                  type = finishNode(factory2.createIndexedAccessTypeNode(type, indexType), pos);\n                } else {\n                  parseExpected(23);\n                  type = finishNode(factory2.createArrayTypeNode(type), pos);\n                }\n                break;\n              default:\n                return type;\n            }\n          }\n          return type;\n        }\n        function parseTypeOperator(operator) {\n          const pos = getNodePos();\n          parseExpected(operator);\n          return finishNode(factory2.createTypeOperatorNode(operator, parseTypeOperatorOrHigher()), pos);\n        }\n        function tryParseConstraintOfInferType() {\n          if (parseOptional(94)) {\n            const constraint = disallowConditionalTypesAnd(parseType);\n            if (inDisallowConditionalTypesContext() || token() !== 57) {\n              return constraint;\n            }\n          }\n        }\n        function parseTypeParameterOfInferType() {\n          const pos = getNodePos();\n          const name = parseIdentifier();\n          const constraint = tryParse(tryParseConstraintOfInferType);\n          const node = factory2.createTypeParameterDeclaration(void 0, name, constraint);\n          return finishNode(node, pos);\n        }\n        function parseInferType() {\n          const pos = getNodePos();\n          parseExpected(138);\n          return finishNode(factory2.createInferTypeNode(parseTypeParameterOfInferType()), pos);\n        }\n        function parseTypeOperatorOrHigher() {\n          const operator = token();\n          switch (operator) {\n            case 141:\n            case 156:\n            case 146:\n              return parseTypeOperator(operator);\n            case 138:\n              return parseInferType();\n          }\n          return allowConditionalTypesAnd(parsePostfixTypeOrHigher);\n        }\n        function parseFunctionOrConstructorTypeToError(isInUnionType) {\n          if (isStartOfFunctionTypeOrConstructorType()) {\n            const type = parseFunctionOrConstructorType();\n            let diagnostic;\n            if (isFunctionTypeNode(type)) {\n              diagnostic = isInUnionType ? Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type : Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type;\n            } else {\n              diagnostic = isInUnionType ? Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type : Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type;\n            }\n            parseErrorAtRange(type, diagnostic);\n            return type;\n          }\n          return void 0;\n        }\n        function parseUnionOrIntersectionType(operator, parseConstituentType, createTypeNode) {\n          const pos = getNodePos();\n          const isUnionType = operator === 51;\n          const hasLeadingOperator = parseOptional(operator);\n          let type = hasLeadingOperator && parseFunctionOrConstructorTypeToError(isUnionType) || parseConstituentType();\n          if (token() === operator || hasLeadingOperator) {\n            const types = [type];\n            while (parseOptional(operator)) {\n              types.push(parseFunctionOrConstructorTypeToError(isUnionType) || parseConstituentType());\n            }\n            type = finishNode(createTypeNode(createNodeArray(types, pos)), pos);\n          }\n          return type;\n        }\n        function parseIntersectionTypeOrHigher() {\n          return parseUnionOrIntersectionType(50, parseTypeOperatorOrHigher, factory2.createIntersectionTypeNode);\n        }\n        function parseUnionTypeOrHigher() {\n          return parseUnionOrIntersectionType(51, parseIntersectionTypeOrHigher, factory2.createUnionTypeNode);\n        }\n        function nextTokenIsNewKeyword() {\n          nextToken();\n          return token() === 103;\n        }\n        function isStartOfFunctionTypeOrConstructorType() {\n          if (token() === 29) {\n            return true;\n          }\n          if (token() === 20 && lookAhead(isUnambiguouslyStartOfFunctionType)) {\n            return true;\n          }\n          return token() === 103 || token() === 126 && lookAhead(nextTokenIsNewKeyword);\n        }\n        function skipParameterStart() {\n          if (isModifierKind(token())) {\n            parseModifiers(false);\n          }\n          if (isIdentifier2() || token() === 108) {\n            nextToken();\n            return true;\n          }\n          if (token() === 22 || token() === 18) {\n            const previousErrorCount = parseDiagnostics.length;\n            parseIdentifierOrPattern();\n            return previousErrorCount === parseDiagnostics.length;\n          }\n          return false;\n        }\n        function isUnambiguouslyStartOfFunctionType() {\n          nextToken();\n          if (token() === 21 || token() === 25) {\n            return true;\n          }\n          if (skipParameterStart()) {\n            if (token() === 58 || token() === 27 || token() === 57 || token() === 63) {\n              return true;\n            }\n            if (token() === 21) {\n              nextToken();\n              if (token() === 38) {\n                return true;\n              }\n            }\n          }\n          return false;\n        }\n        function parseTypeOrTypePredicate() {\n          const pos = getNodePos();\n          const typePredicateVariable = isIdentifier2() && tryParse(parseTypePredicatePrefix);\n          const type = parseType();\n          if (typePredicateVariable) {\n            return finishNode(factory2.createTypePredicateNode(void 0, typePredicateVariable, type), pos);\n          } else {\n            return type;\n          }\n        }\n        function parseTypePredicatePrefix() {\n          const id = parseIdentifier();\n          if (token() === 140 && !scanner2.hasPrecedingLineBreak()) {\n            nextToken();\n            return id;\n          }\n        }\n        function parseAssertsTypePredicate() {\n          const pos = getNodePos();\n          const assertsModifier = parseExpectedToken(129);\n          const parameterName = token() === 108 ? parseThisTypeNode() : parseIdentifier();\n          const type = parseOptional(140) ? parseType() : void 0;\n          return finishNode(factory2.createTypePredicateNode(assertsModifier, parameterName, type), pos);\n        }\n        function parseType() {\n          if (contextFlags & 40960) {\n            return doOutsideOfContext(40960, parseType);\n          }\n          if (isStartOfFunctionTypeOrConstructorType()) {\n            return parseFunctionOrConstructorType();\n          }\n          const pos = getNodePos();\n          const type = parseUnionTypeOrHigher();\n          if (!inDisallowConditionalTypesContext() && !scanner2.hasPrecedingLineBreak() && parseOptional(94)) {\n            const extendsType = disallowConditionalTypesAnd(parseType);\n            parseExpected(57);\n            const trueType = allowConditionalTypesAnd(parseType);\n            parseExpected(58);\n            const falseType = allowConditionalTypesAnd(parseType);\n            return finishNode(factory2.createConditionalTypeNode(type, extendsType, trueType, falseType), pos);\n          }\n          return type;\n        }\n        function parseTypeAnnotation() {\n          return parseOptional(58) ? parseType() : void 0;\n        }\n        function isStartOfLeftHandSideExpression() {\n          switch (token()) {\n            case 108:\n            case 106:\n            case 104:\n            case 110:\n            case 95:\n            case 8:\n            case 9:\n            case 10:\n            case 14:\n            case 15:\n            case 20:\n            case 22:\n            case 18:\n            case 98:\n            case 84:\n            case 103:\n            case 43:\n            case 68:\n            case 79:\n              return true;\n            case 100:\n              return lookAhead(nextTokenIsOpenParenOrLessThanOrDot);\n            default:\n              return isIdentifier2();\n          }\n        }\n        function isStartOfExpression() {\n          if (isStartOfLeftHandSideExpression()) {\n            return true;\n          }\n          switch (token()) {\n            case 39:\n            case 40:\n            case 54:\n            case 53:\n            case 89:\n            case 112:\n            case 114:\n            case 45:\n            case 46:\n            case 29:\n            case 133:\n            case 125:\n            case 80:\n            case 59:\n              return true;\n            default:\n              if (isBinaryOperator2()) {\n                return true;\n              }\n              return isIdentifier2();\n          }\n        }\n        function isStartOfExpressionStatement() {\n          return token() !== 18 && token() !== 98 && token() !== 84 && token() !== 59 && isStartOfExpression();\n        }\n        function parseExpression() {\n          const saveDecoratorContext = inDecoratorContext();\n          if (saveDecoratorContext) {\n            setDecoratorContext(false);\n          }\n          const pos = getNodePos();\n          let expr = parseAssignmentExpressionOrHigher(true);\n          let operatorToken;\n          while (operatorToken = parseOptionalToken(27)) {\n            expr = makeBinaryExpression(expr, operatorToken, parseAssignmentExpressionOrHigher(true), pos);\n          }\n          if (saveDecoratorContext) {\n            setDecoratorContext(true);\n          }\n          return expr;\n        }\n        function parseInitializer() {\n          return parseOptional(63) ? parseAssignmentExpressionOrHigher(true) : void 0;\n        }\n        function parseAssignmentExpressionOrHigher(allowReturnTypeInArrowFunction) {\n          if (isYieldExpression2()) {\n            return parseYieldExpression();\n          }\n          const arrowExpression = tryParseParenthesizedArrowFunctionExpression(allowReturnTypeInArrowFunction) || tryParseAsyncSimpleArrowFunctionExpression(allowReturnTypeInArrowFunction);\n          if (arrowExpression) {\n            return arrowExpression;\n          }\n          const pos = getNodePos();\n          const expr = parseBinaryExpressionOrHigher(0);\n          if (expr.kind === 79 && token() === 38) {\n            return parseSimpleArrowFunctionExpression(pos, expr, allowReturnTypeInArrowFunction, void 0);\n          }\n          if (isLeftHandSideExpression(expr) && isAssignmentOperator(reScanGreaterToken())) {\n            return makeBinaryExpression(expr, parseTokenNode(), parseAssignmentExpressionOrHigher(allowReturnTypeInArrowFunction), pos);\n          }\n          return parseConditionalExpressionRest(expr, pos, allowReturnTypeInArrowFunction);\n        }\n        function isYieldExpression2() {\n          if (token() === 125) {\n            if (inYieldContext()) {\n              return true;\n            }\n            return lookAhead(nextTokenIsIdentifierOrKeywordOrLiteralOnSameLine);\n          }\n          return false;\n        }\n        function nextTokenIsIdentifierOnSameLine() {\n          nextToken();\n          return !scanner2.hasPrecedingLineBreak() && isIdentifier2();\n        }\n        function parseYieldExpression() {\n          const pos = getNodePos();\n          nextToken();\n          if (!scanner2.hasPrecedingLineBreak() && (token() === 41 || isStartOfExpression())) {\n            return finishNode(factory2.createYieldExpression(parseOptionalToken(41), parseAssignmentExpressionOrHigher(true)), pos);\n          } else {\n            return finishNode(factory2.createYieldExpression(void 0, void 0), pos);\n          }\n        }\n        function parseSimpleArrowFunctionExpression(pos, identifier, allowReturnTypeInArrowFunction, asyncModifier) {\n          Debug.assert(token() === 38, \"parseSimpleArrowFunctionExpression should only have been called if we had a =>\");\n          const parameter = factory2.createParameterDeclaration(void 0, void 0, identifier, void 0, void 0, void 0);\n          finishNode(parameter, identifier.pos);\n          const parameters = createNodeArray([parameter], parameter.pos, parameter.end);\n          const equalsGreaterThanToken = parseExpectedToken(38);\n          const body = parseArrowFunctionExpressionBody(!!asyncModifier, allowReturnTypeInArrowFunction);\n          const node = factory2.createArrowFunction(asyncModifier, void 0, parameters, void 0, equalsGreaterThanToken, body);\n          return addJSDocComment(finishNode(node, pos));\n        }\n        function tryParseParenthesizedArrowFunctionExpression(allowReturnTypeInArrowFunction) {\n          const triState = isParenthesizedArrowFunctionExpression();\n          if (triState === 0) {\n            return void 0;\n          }\n          return triState === 1 ? parseParenthesizedArrowFunctionExpression(true, true) : tryParse(() => parsePossibleParenthesizedArrowFunctionExpression(allowReturnTypeInArrowFunction));\n        }\n        function isParenthesizedArrowFunctionExpression() {\n          if (token() === 20 || token() === 29 || token() === 132) {\n            return lookAhead(isParenthesizedArrowFunctionExpressionWorker);\n          }\n          if (token() === 38) {\n            return 1;\n          }\n          return 0;\n        }\n        function isParenthesizedArrowFunctionExpressionWorker() {\n          if (token() === 132) {\n            nextToken();\n            if (scanner2.hasPrecedingLineBreak()) {\n              return 0;\n            }\n            if (token() !== 20 && token() !== 29) {\n              return 0;\n            }\n          }\n          const first2 = token();\n          const second = nextToken();\n          if (first2 === 20) {\n            if (second === 21) {\n              const third = nextToken();\n              switch (third) {\n                case 38:\n                case 58:\n                case 18:\n                  return 1;\n                default:\n                  return 0;\n              }\n            }\n            if (second === 22 || second === 18) {\n              return 2;\n            }\n            if (second === 25) {\n              return 1;\n            }\n            if (isModifierKind(second) && second !== 132 && lookAhead(nextTokenIsIdentifier)) {\n              if (nextToken() === 128) {\n                return 0;\n              }\n              return 1;\n            }\n            if (!isIdentifier2() && second !== 108) {\n              return 0;\n            }\n            switch (nextToken()) {\n              case 58:\n                return 1;\n              case 57:\n                nextToken();\n                if (token() === 58 || token() === 27 || token() === 63 || token() === 21) {\n                  return 1;\n                }\n                return 0;\n              case 27:\n              case 63:\n              case 21:\n                return 2;\n            }\n            return 0;\n          } else {\n            Debug.assert(first2 === 29);\n            if (!isIdentifier2() && token() !== 85) {\n              return 0;\n            }\n            if (languageVariant === 1) {\n              const isArrowFunctionInJsx = lookAhead(() => {\n                parseOptional(85);\n                const third = nextToken();\n                if (third === 94) {\n                  const fourth = nextToken();\n                  switch (fourth) {\n                    case 63:\n                    case 31:\n                    case 43:\n                      return false;\n                    default:\n                      return true;\n                  }\n                } else if (third === 27 || third === 63) {\n                  return true;\n                }\n                return false;\n              });\n              if (isArrowFunctionInJsx) {\n                return 1;\n              }\n              return 0;\n            }\n            return 2;\n          }\n        }\n        function parsePossibleParenthesizedArrowFunctionExpression(allowReturnTypeInArrowFunction) {\n          const tokenPos = scanner2.getTokenPos();\n          if (notParenthesizedArrow == null ? void 0 : notParenthesizedArrow.has(tokenPos)) {\n            return void 0;\n          }\n          const result = parseParenthesizedArrowFunctionExpression(false, allowReturnTypeInArrowFunction);\n          if (!result) {\n            (notParenthesizedArrow || (notParenthesizedArrow = /* @__PURE__ */ new Set())).add(tokenPos);\n          }\n          return result;\n        }\n        function tryParseAsyncSimpleArrowFunctionExpression(allowReturnTypeInArrowFunction) {\n          if (token() === 132) {\n            if (lookAhead(isUnParenthesizedAsyncArrowFunctionWorker) === 1) {\n              const pos = getNodePos();\n              const asyncModifier = parseModifiersForArrowFunction();\n              const expr = parseBinaryExpressionOrHigher(0);\n              return parseSimpleArrowFunctionExpression(pos, expr, allowReturnTypeInArrowFunction, asyncModifier);\n            }\n          }\n          return void 0;\n        }\n        function isUnParenthesizedAsyncArrowFunctionWorker() {\n          if (token() === 132) {\n            nextToken();\n            if (scanner2.hasPrecedingLineBreak() || token() === 38) {\n              return 0;\n            }\n            const expr = parseBinaryExpressionOrHigher(0);\n            if (!scanner2.hasPrecedingLineBreak() && expr.kind === 79 && token() === 38) {\n              return 1;\n            }\n          }\n          return 0;\n        }\n        function parseParenthesizedArrowFunctionExpression(allowAmbiguity, allowReturnTypeInArrowFunction) {\n          const pos = getNodePos();\n          const hasJSDoc = hasPrecedingJSDocComment();\n          const modifiers = parseModifiersForArrowFunction();\n          const isAsync = some(modifiers, isAsyncModifier) ? 2 : 0;\n          const typeParameters = parseTypeParameters();\n          let parameters;\n          if (!parseExpected(20)) {\n            if (!allowAmbiguity) {\n              return void 0;\n            }\n            parameters = createMissingList();\n          } else {\n            if (!allowAmbiguity) {\n              const maybeParameters = parseParametersWorker(isAsync, allowAmbiguity);\n              if (!maybeParameters) {\n                return void 0;\n              }\n              parameters = maybeParameters;\n            } else {\n              parameters = parseParametersWorker(isAsync, allowAmbiguity);\n            }\n            if (!parseExpected(21) && !allowAmbiguity) {\n              return void 0;\n            }\n          }\n          const hasReturnColon = token() === 58;\n          const type = parseReturnType(58, false);\n          if (type && !allowAmbiguity && typeHasArrowFunctionBlockingParseError(type)) {\n            return void 0;\n          }\n          let unwrappedType = type;\n          while ((unwrappedType == null ? void 0 : unwrappedType.kind) === 193) {\n            unwrappedType = unwrappedType.type;\n          }\n          const hasJSDocFunctionType = unwrappedType && isJSDocFunctionType(unwrappedType);\n          if (!allowAmbiguity && token() !== 38 && (hasJSDocFunctionType || token() !== 18)) {\n            return void 0;\n          }\n          const lastToken = token();\n          const equalsGreaterThanToken = parseExpectedToken(38);\n          const body = lastToken === 38 || lastToken === 18 ? parseArrowFunctionExpressionBody(some(modifiers, isAsyncModifier), allowReturnTypeInArrowFunction) : parseIdentifier();\n          if (!allowReturnTypeInArrowFunction && hasReturnColon) {\n            if (token() !== 58) {\n              return void 0;\n            }\n          }\n          const node = factory2.createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body);\n          return withJSDoc(finishNode(node, pos), hasJSDoc);\n        }\n        function parseArrowFunctionExpressionBody(isAsync, allowReturnTypeInArrowFunction) {\n          if (token() === 18) {\n            return parseFunctionBlock(isAsync ? 2 : 0);\n          }\n          if (token() !== 26 && token() !== 98 && token() !== 84 && isStartOfStatement() && !isStartOfExpressionStatement()) {\n            return parseFunctionBlock(16 | (isAsync ? 2 : 0));\n          }\n          const savedTopLevel = topLevel;\n          topLevel = false;\n          const node = isAsync ? doInAwaitContext(() => parseAssignmentExpressionOrHigher(allowReturnTypeInArrowFunction)) : doOutsideOfAwaitContext(() => parseAssignmentExpressionOrHigher(allowReturnTypeInArrowFunction));\n          topLevel = savedTopLevel;\n          return node;\n        }\n        function parseConditionalExpressionRest(leftOperand, pos, allowReturnTypeInArrowFunction) {\n          const questionToken = parseOptionalToken(57);\n          if (!questionToken) {\n            return leftOperand;\n          }\n          let colonToken;\n          return finishNode(factory2.createConditionalExpression(leftOperand, questionToken, doOutsideOfContext(disallowInAndDecoratorContext, () => parseAssignmentExpressionOrHigher(false)), colonToken = parseExpectedToken(58), nodeIsPresent(colonToken) ? parseAssignmentExpressionOrHigher(allowReturnTypeInArrowFunction) : createMissingNode(79, false, Diagnostics._0_expected, tokenToString(58))), pos);\n        }\n        function parseBinaryExpressionOrHigher(precedence) {\n          const pos = getNodePos();\n          const leftOperand = parseUnaryExpressionOrHigher();\n          return parseBinaryExpressionRest(precedence, leftOperand, pos);\n        }\n        function isInOrOfKeyword(t) {\n          return t === 101 || t === 162;\n        }\n        function parseBinaryExpressionRest(precedence, leftOperand, pos) {\n          while (true) {\n            reScanGreaterToken();\n            const newPrecedence = getBinaryOperatorPrecedence(token());\n            const consumeCurrentOperator = token() === 42 ? newPrecedence >= precedence : newPrecedence > precedence;\n            if (!consumeCurrentOperator) {\n              break;\n            }\n            if (token() === 101 && inDisallowInContext()) {\n              break;\n            }\n            if (token() === 128 || token() === 150) {\n              if (scanner2.hasPrecedingLineBreak()) {\n                break;\n              } else {\n                const keywordKind = token();\n                nextToken();\n                leftOperand = keywordKind === 150 ? makeSatisfiesExpression(leftOperand, parseType()) : makeAsExpression(leftOperand, parseType());\n              }\n            } else {\n              leftOperand = makeBinaryExpression(leftOperand, parseTokenNode(), parseBinaryExpressionOrHigher(newPrecedence), pos);\n            }\n          }\n          return leftOperand;\n        }\n        function isBinaryOperator2() {\n          if (inDisallowInContext() && token() === 101) {\n            return false;\n          }\n          return getBinaryOperatorPrecedence(token()) > 0;\n        }\n        function makeSatisfiesExpression(left, right) {\n          return finishNode(factory2.createSatisfiesExpression(left, right), left.pos);\n        }\n        function makeBinaryExpression(left, operatorToken, right, pos) {\n          return finishNode(factory2.createBinaryExpression(left, operatorToken, right), pos);\n        }\n        function makeAsExpression(left, right) {\n          return finishNode(factory2.createAsExpression(left, right), left.pos);\n        }\n        function parsePrefixUnaryExpression() {\n          const pos = getNodePos();\n          return finishNode(factory2.createPrefixUnaryExpression(token(), nextTokenAnd(parseSimpleUnaryExpression)), pos);\n        }\n        function parseDeleteExpression() {\n          const pos = getNodePos();\n          return finishNode(factory2.createDeleteExpression(nextTokenAnd(parseSimpleUnaryExpression)), pos);\n        }\n        function parseTypeOfExpression() {\n          const pos = getNodePos();\n          return finishNode(factory2.createTypeOfExpression(nextTokenAnd(parseSimpleUnaryExpression)), pos);\n        }\n        function parseVoidExpression() {\n          const pos = getNodePos();\n          return finishNode(factory2.createVoidExpression(nextTokenAnd(parseSimpleUnaryExpression)), pos);\n        }\n        function isAwaitExpression2() {\n          if (token() === 133) {\n            if (inAwaitContext()) {\n              return true;\n            }\n            return lookAhead(nextTokenIsIdentifierOrKeywordOrLiteralOnSameLine);\n          }\n          return false;\n        }\n        function parseAwaitExpression() {\n          const pos = getNodePos();\n          return finishNode(factory2.createAwaitExpression(nextTokenAnd(parseSimpleUnaryExpression)), pos);\n        }\n        function parseUnaryExpressionOrHigher() {\n          if (isUpdateExpression()) {\n            const pos = getNodePos();\n            const updateExpression = parseUpdateExpression();\n            return token() === 42 ? parseBinaryExpressionRest(getBinaryOperatorPrecedence(token()), updateExpression, pos) : updateExpression;\n          }\n          const unaryOperator = token();\n          const simpleUnaryExpression = parseSimpleUnaryExpression();\n          if (token() === 42) {\n            const pos = skipTrivia(sourceText, simpleUnaryExpression.pos);\n            const { end } = simpleUnaryExpression;\n            if (simpleUnaryExpression.kind === 213) {\n              parseErrorAt(pos, end, Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses);\n            } else {\n              parseErrorAt(pos, end, Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses, tokenToString(unaryOperator));\n            }\n          }\n          return simpleUnaryExpression;\n        }\n        function parseSimpleUnaryExpression() {\n          switch (token()) {\n            case 39:\n            case 40:\n            case 54:\n            case 53:\n              return parsePrefixUnaryExpression();\n            case 89:\n              return parseDeleteExpression();\n            case 112:\n              return parseTypeOfExpression();\n            case 114:\n              return parseVoidExpression();\n            case 29:\n              if (languageVariant === 1) {\n                return parseJsxElementOrSelfClosingElementOrFragment(true);\n              }\n              return parseTypeAssertion();\n            case 133:\n              if (isAwaitExpression2()) {\n                return parseAwaitExpression();\n              }\n            default:\n              return parseUpdateExpression();\n          }\n        }\n        function isUpdateExpression() {\n          switch (token()) {\n            case 39:\n            case 40:\n            case 54:\n            case 53:\n            case 89:\n            case 112:\n            case 114:\n            case 133:\n              return false;\n            case 29:\n              if (languageVariant !== 1) {\n                return false;\n              }\n            default:\n              return true;\n          }\n        }\n        function parseUpdateExpression() {\n          if (token() === 45 || token() === 46) {\n            const pos = getNodePos();\n            return finishNode(factory2.createPrefixUnaryExpression(token(), nextTokenAnd(parseLeftHandSideExpressionOrHigher)), pos);\n          } else if (languageVariant === 1 && token() === 29 && lookAhead(nextTokenIsIdentifierOrKeywordOrGreaterThan)) {\n            return parseJsxElementOrSelfClosingElementOrFragment(true);\n          }\n          const expression = parseLeftHandSideExpressionOrHigher();\n          Debug.assert(isLeftHandSideExpression(expression));\n          if ((token() === 45 || token() === 46) && !scanner2.hasPrecedingLineBreak()) {\n            const operator = token();\n            nextToken();\n            return finishNode(factory2.createPostfixUnaryExpression(expression, operator), expression.pos);\n          }\n          return expression;\n        }\n        function parseLeftHandSideExpressionOrHigher() {\n          const pos = getNodePos();\n          let expression;\n          if (token() === 100) {\n            if (lookAhead(nextTokenIsOpenParenOrLessThan)) {\n              sourceFlags |= 2097152;\n              expression = parseTokenNode();\n            } else if (lookAhead(nextTokenIsDot)) {\n              nextToken();\n              nextToken();\n              expression = finishNode(factory2.createMetaProperty(100, parseIdentifierName()), pos);\n              sourceFlags |= 4194304;\n            } else {\n              expression = parseMemberExpressionOrHigher();\n            }\n          } else {\n            expression = token() === 106 ? parseSuperExpression() : parseMemberExpressionOrHigher();\n          }\n          return parseCallExpressionRest(pos, expression);\n        }\n        function parseMemberExpressionOrHigher() {\n          const pos = getNodePos();\n          const expression = parsePrimaryExpression();\n          return parseMemberExpressionRest(pos, expression, true);\n        }\n        function parseSuperExpression() {\n          const pos = getNodePos();\n          let expression = parseTokenNode();\n          if (token() === 29) {\n            const startPos = getNodePos();\n            const typeArguments = tryParse(parseTypeArgumentsInExpression);\n            if (typeArguments !== void 0) {\n              parseErrorAt(startPos, getNodePos(), Diagnostics.super_may_not_use_type_arguments);\n              if (!isTemplateStartOfTaggedTemplate()) {\n                expression = factory2.createExpressionWithTypeArguments(expression, typeArguments);\n              }\n            }\n          }\n          if (token() === 20 || token() === 24 || token() === 22) {\n            return expression;\n          }\n          parseExpectedToken(24, Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access);\n          return finishNode(factoryCreatePropertyAccessExpression(expression, parseRightSideOfDot(true, true)), pos);\n        }\n        function parseJsxElementOrSelfClosingElementOrFragment(inExpressionContext, topInvalidNodePosition, openingTag) {\n          const pos = getNodePos();\n          const opening = parseJsxOpeningOrSelfClosingElementOrOpeningFragment(inExpressionContext);\n          let result;\n          if (opening.kind === 283) {\n            let children = parseJsxChildren(opening);\n            let closingElement;\n            const lastChild = children[children.length - 1];\n            if ((lastChild == null ? void 0 : lastChild.kind) === 281 && !tagNamesAreEquivalent(lastChild.openingElement.tagName, lastChild.closingElement.tagName) && tagNamesAreEquivalent(opening.tagName, lastChild.closingElement.tagName)) {\n              const end = lastChild.children.end;\n              const newLast = finishNode(factory2.createJsxElement(lastChild.openingElement, lastChild.children, finishNode(factory2.createJsxClosingElement(finishNode(factoryCreateIdentifier(\"\"), end, end)), end, end)), lastChild.openingElement.pos, end);\n              children = createNodeArray([...children.slice(0, children.length - 1), newLast], children.pos, end);\n              closingElement = lastChild.closingElement;\n            } else {\n              closingElement = parseJsxClosingElement(opening, inExpressionContext);\n              if (!tagNamesAreEquivalent(opening.tagName, closingElement.tagName)) {\n                if (openingTag && isJsxOpeningElement(openingTag) && tagNamesAreEquivalent(closingElement.tagName, openingTag.tagName)) {\n                  parseErrorAtRange(opening.tagName, Diagnostics.JSX_element_0_has_no_corresponding_closing_tag, getTextOfNodeFromSourceText(sourceText, opening.tagName));\n                } else {\n                  parseErrorAtRange(closingElement.tagName, Diagnostics.Expected_corresponding_JSX_closing_tag_for_0, getTextOfNodeFromSourceText(sourceText, opening.tagName));\n                }\n              }\n            }\n            result = finishNode(factory2.createJsxElement(opening, children, closingElement), pos);\n          } else if (opening.kind === 286) {\n            result = finishNode(factory2.createJsxFragment(opening, parseJsxChildren(opening), parseJsxClosingFragment(inExpressionContext)), pos);\n          } else {\n            Debug.assert(opening.kind === 282);\n            result = opening;\n          }\n          if (inExpressionContext && token() === 29) {\n            const topBadPos = typeof topInvalidNodePosition === \"undefined\" ? result.pos : topInvalidNodePosition;\n            const invalidElement = tryParse(() => parseJsxElementOrSelfClosingElementOrFragment(true, topBadPos));\n            if (invalidElement) {\n              const operatorToken = createMissingNode(27, false);\n              setTextRangePosWidth(operatorToken, invalidElement.pos, 0);\n              parseErrorAt(skipTrivia(sourceText, topBadPos), invalidElement.end, Diagnostics.JSX_expressions_must_have_one_parent_element);\n              return finishNode(factory2.createBinaryExpression(result, operatorToken, invalidElement), pos);\n            }\n          }\n          return result;\n        }\n        function parseJsxText() {\n          const pos = getNodePos();\n          const node = factory2.createJsxText(scanner2.getTokenValue(), currentToken === 12);\n          currentToken = scanner2.scanJsxToken();\n          return finishNode(node, pos);\n        }\n        function parseJsxChild(openingTag, token2) {\n          switch (token2) {\n            case 1:\n              if (isJsxOpeningFragment(openingTag)) {\n                parseErrorAtRange(openingTag, Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);\n              } else {\n                const tag = openingTag.tagName;\n                const start = skipTrivia(sourceText, tag.pos);\n                parseErrorAt(start, tag.end, Diagnostics.JSX_element_0_has_no_corresponding_closing_tag, getTextOfNodeFromSourceText(sourceText, openingTag.tagName));\n              }\n              return void 0;\n            case 30:\n            case 7:\n              return void 0;\n            case 11:\n            case 12:\n              return parseJsxText();\n            case 18:\n              return parseJsxExpression(false);\n            case 29:\n              return parseJsxElementOrSelfClosingElementOrFragment(false, void 0, openingTag);\n            default:\n              return Debug.assertNever(token2);\n          }\n        }\n        function parseJsxChildren(openingTag) {\n          const list = [];\n          const listPos = getNodePos();\n          const saveParsingContext = parsingContext;\n          parsingContext |= 1 << 14;\n          while (true) {\n            const child = parseJsxChild(openingTag, currentToken = scanner2.reScanJsxToken());\n            if (!child)\n              break;\n            list.push(child);\n            if (isJsxOpeningElement(openingTag) && (child == null ? void 0 : child.kind) === 281 && !tagNamesAreEquivalent(child.openingElement.tagName, child.closingElement.tagName) && tagNamesAreEquivalent(openingTag.tagName, child.closingElement.tagName)) {\n              break;\n            }\n          }\n          parsingContext = saveParsingContext;\n          return createNodeArray(list, listPos);\n        }\n        function parseJsxAttributes() {\n          const pos = getNodePos();\n          return finishNode(factory2.createJsxAttributes(parseList(13, parseJsxAttribute)), pos);\n        }\n        function parseJsxOpeningOrSelfClosingElementOrOpeningFragment(inExpressionContext) {\n          const pos = getNodePos();\n          parseExpected(29);\n          if (token() === 31) {\n            scanJsxText();\n            return finishNode(factory2.createJsxOpeningFragment(), pos);\n          }\n          const tagName = parseJsxElementName();\n          const typeArguments = (contextFlags & 262144) === 0 ? tryParseTypeArguments() : void 0;\n          const attributes = parseJsxAttributes();\n          let node;\n          if (token() === 31) {\n            scanJsxText();\n            node = factory2.createJsxOpeningElement(tagName, typeArguments, attributes);\n          } else {\n            parseExpected(43);\n            if (parseExpected(31, void 0, false)) {\n              if (inExpressionContext) {\n                nextToken();\n              } else {\n                scanJsxText();\n              }\n            }\n            node = factory2.createJsxSelfClosingElement(tagName, typeArguments, attributes);\n          }\n          return finishNode(node, pos);\n        }\n        function parseJsxElementName() {\n          const pos = getNodePos();\n          scanJsxIdentifier();\n          let expression = token() === 108 ? parseTokenNode() : parseIdentifierName();\n          while (parseOptional(24)) {\n            expression = finishNode(factoryCreatePropertyAccessExpression(expression, parseRightSideOfDot(true, false)), pos);\n          }\n          return expression;\n        }\n        function parseJsxExpression(inExpressionContext) {\n          const pos = getNodePos();\n          if (!parseExpected(18)) {\n            return void 0;\n          }\n          let dotDotDotToken;\n          let expression;\n          if (token() !== 19) {\n            dotDotDotToken = parseOptionalToken(25);\n            expression = parseExpression();\n          }\n          if (inExpressionContext) {\n            parseExpected(19);\n          } else {\n            if (parseExpected(19, void 0, false)) {\n              scanJsxText();\n            }\n          }\n          return finishNode(factory2.createJsxExpression(dotDotDotToken, expression), pos);\n        }\n        function parseJsxAttribute() {\n          if (token() === 18) {\n            return parseJsxSpreadAttribute();\n          }\n          scanJsxIdentifier();\n          const pos = getNodePos();\n          return finishNode(factory2.createJsxAttribute(parseIdentifierName(), parseJsxAttributeValue()), pos);\n        }\n        function parseJsxAttributeValue() {\n          if (token() === 63) {\n            if (scanJsxAttributeValue() === 10) {\n              return parseLiteralNode();\n            }\n            if (token() === 18) {\n              return parseJsxExpression(true);\n            }\n            if (token() === 29) {\n              return parseJsxElementOrSelfClosingElementOrFragment(true);\n            }\n            parseErrorAtCurrentToken(Diagnostics.or_JSX_element_expected);\n          }\n          return void 0;\n        }\n        function parseJsxSpreadAttribute() {\n          const pos = getNodePos();\n          parseExpected(18);\n          parseExpected(25);\n          const expression = parseExpression();\n          parseExpected(19);\n          return finishNode(factory2.createJsxSpreadAttribute(expression), pos);\n        }\n        function parseJsxClosingElement(open, inExpressionContext) {\n          const pos = getNodePos();\n          parseExpected(30);\n          const tagName = parseJsxElementName();\n          if (parseExpected(31, void 0, false)) {\n            if (inExpressionContext || !tagNamesAreEquivalent(open.tagName, tagName)) {\n              nextToken();\n            } else {\n              scanJsxText();\n            }\n          }\n          return finishNode(factory2.createJsxClosingElement(tagName), pos);\n        }\n        function parseJsxClosingFragment(inExpressionContext) {\n          const pos = getNodePos();\n          parseExpected(30);\n          if (parseExpected(31, Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment, false)) {\n            if (inExpressionContext) {\n              nextToken();\n            } else {\n              scanJsxText();\n            }\n          }\n          return finishNode(factory2.createJsxJsxClosingFragment(), pos);\n        }\n        function parseTypeAssertion() {\n          Debug.assert(languageVariant !== 1, \"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.\");\n          const pos = getNodePos();\n          parseExpected(29);\n          const type = parseType();\n          parseExpected(31);\n          const expression = parseSimpleUnaryExpression();\n          return finishNode(factory2.createTypeAssertion(type, expression), pos);\n        }\n        function nextTokenIsIdentifierOrKeywordOrOpenBracketOrTemplate() {\n          nextToken();\n          return tokenIsIdentifierOrKeyword(token()) || token() === 22 || isTemplateStartOfTaggedTemplate();\n        }\n        function isStartOfOptionalPropertyOrElementAccessChain() {\n          return token() === 28 && lookAhead(nextTokenIsIdentifierOrKeywordOrOpenBracketOrTemplate);\n        }\n        function tryReparseOptionalChain(node) {\n          if (node.flags & 32) {\n            return true;\n          }\n          if (isNonNullExpression(node)) {\n            let expr = node.expression;\n            while (isNonNullExpression(expr) && !(expr.flags & 32)) {\n              expr = expr.expression;\n            }\n            if (expr.flags & 32) {\n              while (isNonNullExpression(node)) {\n                node.flags |= 32;\n                node = node.expression;\n              }\n              return true;\n            }\n          }\n          return false;\n        }\n        function parsePropertyAccessExpressionRest(pos, expression, questionDotToken) {\n          const name = parseRightSideOfDot(true, true);\n          const isOptionalChain2 = questionDotToken || tryReparseOptionalChain(expression);\n          const propertyAccess = isOptionalChain2 ? factoryCreatePropertyAccessChain(expression, questionDotToken, name) : factoryCreatePropertyAccessExpression(expression, name);\n          if (isOptionalChain2 && isPrivateIdentifier(propertyAccess.name)) {\n            parseErrorAtRange(propertyAccess.name, Diagnostics.An_optional_chain_cannot_contain_private_identifiers);\n          }\n          if (isExpressionWithTypeArguments(expression) && expression.typeArguments) {\n            const pos2 = expression.typeArguments.pos - 1;\n            const end = skipTrivia(sourceText, expression.typeArguments.end) + 1;\n            parseErrorAt(pos2, end, Diagnostics.An_instantiation_expression_cannot_be_followed_by_a_property_access);\n          }\n          return finishNode(propertyAccess, pos);\n        }\n        function parseElementAccessExpressionRest(pos, expression, questionDotToken) {\n          let argumentExpression;\n          if (token() === 23) {\n            argumentExpression = createMissingNode(79, true, Diagnostics.An_element_access_expression_should_take_an_argument);\n          } else {\n            const argument = allowInAnd(parseExpression);\n            if (isStringOrNumericLiteralLike(argument)) {\n              argument.text = internIdentifier(argument.text);\n            }\n            argumentExpression = argument;\n          }\n          parseExpected(23);\n          const indexedAccess = questionDotToken || tryReparseOptionalChain(expression) ? factoryCreateElementAccessChain(expression, questionDotToken, argumentExpression) : factoryCreateElementAccessExpression(expression, argumentExpression);\n          return finishNode(indexedAccess, pos);\n        }\n        function parseMemberExpressionRest(pos, expression, allowOptionalChain) {\n          while (true) {\n            let questionDotToken;\n            let isPropertyAccess = false;\n            if (allowOptionalChain && isStartOfOptionalPropertyOrElementAccessChain()) {\n              questionDotToken = parseExpectedToken(28);\n              isPropertyAccess = tokenIsIdentifierOrKeyword(token());\n            } else {\n              isPropertyAccess = parseOptional(24);\n            }\n            if (isPropertyAccess) {\n              expression = parsePropertyAccessExpressionRest(pos, expression, questionDotToken);\n              continue;\n            }\n            if ((questionDotToken || !inDecoratorContext()) && parseOptional(22)) {\n              expression = parseElementAccessExpressionRest(pos, expression, questionDotToken);\n              continue;\n            }\n            if (isTemplateStartOfTaggedTemplate()) {\n              expression = !questionDotToken && expression.kind === 230 ? parseTaggedTemplateRest(pos, expression.expression, questionDotToken, expression.typeArguments) : parseTaggedTemplateRest(pos, expression, questionDotToken, void 0);\n              continue;\n            }\n            if (!questionDotToken) {\n              if (token() === 53 && !scanner2.hasPrecedingLineBreak()) {\n                nextToken();\n                expression = finishNode(factory2.createNonNullExpression(expression), pos);\n                continue;\n              }\n              const typeArguments = tryParse(parseTypeArgumentsInExpression);\n              if (typeArguments) {\n                expression = finishNode(factory2.createExpressionWithTypeArguments(expression, typeArguments), pos);\n                continue;\n              }\n            }\n            return expression;\n          }\n        }\n        function isTemplateStartOfTaggedTemplate() {\n          return token() === 14 || token() === 15;\n        }\n        function parseTaggedTemplateRest(pos, tag, questionDotToken, typeArguments) {\n          const tagExpression = factory2.createTaggedTemplateExpression(tag, typeArguments, token() === 14 ? (reScanTemplateHeadOrNoSubstitutionTemplate(), parseLiteralNode()) : parseTemplateExpression(true));\n          if (questionDotToken || tag.flags & 32) {\n            tagExpression.flags |= 32;\n          }\n          tagExpression.questionDotToken = questionDotToken;\n          return finishNode(tagExpression, pos);\n        }\n        function parseCallExpressionRest(pos, expression) {\n          while (true) {\n            expression = parseMemberExpressionRest(pos, expression, true);\n            let typeArguments;\n            const questionDotToken = parseOptionalToken(28);\n            if (questionDotToken) {\n              typeArguments = tryParse(parseTypeArgumentsInExpression);\n              if (isTemplateStartOfTaggedTemplate()) {\n                expression = parseTaggedTemplateRest(pos, expression, questionDotToken, typeArguments);\n                continue;\n              }\n            }\n            if (typeArguments || token() === 20) {\n              if (!questionDotToken && expression.kind === 230) {\n                typeArguments = expression.typeArguments;\n                expression = expression.expression;\n              }\n              const argumentList = parseArgumentList();\n              const callExpr = questionDotToken || tryReparseOptionalChain(expression) ? factoryCreateCallChain(expression, questionDotToken, typeArguments, argumentList) : factoryCreateCallExpression(expression, typeArguments, argumentList);\n              expression = finishNode(callExpr, pos);\n              continue;\n            }\n            if (questionDotToken) {\n              const name = createMissingNode(79, false, Diagnostics.Identifier_expected);\n              expression = finishNode(factoryCreatePropertyAccessChain(expression, questionDotToken, name), pos);\n            }\n            break;\n          }\n          return expression;\n        }\n        function parseArgumentList() {\n          parseExpected(20);\n          const result = parseDelimitedList(11, parseArgumentExpression);\n          parseExpected(21);\n          return result;\n        }\n        function parseTypeArgumentsInExpression() {\n          if ((contextFlags & 262144) !== 0) {\n            return void 0;\n          }\n          if (reScanLessThanToken() !== 29) {\n            return void 0;\n          }\n          nextToken();\n          const typeArguments = parseDelimitedList(20, parseType);\n          if (reScanGreaterToken() !== 31) {\n            return void 0;\n          }\n          nextToken();\n          return typeArguments && canFollowTypeArgumentsInExpression() ? typeArguments : void 0;\n        }\n        function canFollowTypeArgumentsInExpression() {\n          switch (token()) {\n            case 20:\n            case 14:\n            case 15:\n              return true;\n            case 29:\n            case 31:\n            case 39:\n            case 40:\n              return false;\n          }\n          return scanner2.hasPrecedingLineBreak() || isBinaryOperator2() || !isStartOfExpression();\n        }\n        function parsePrimaryExpression() {\n          switch (token()) {\n            case 8:\n            case 9:\n            case 10:\n            case 14:\n              return parseLiteralNode();\n            case 108:\n            case 106:\n            case 104:\n            case 110:\n            case 95:\n              return parseTokenNode();\n            case 20:\n              return parseParenthesizedExpression();\n            case 22:\n              return parseArrayLiteralExpression();\n            case 18:\n              return parseObjectLiteralExpression();\n            case 132:\n              if (!lookAhead(nextTokenIsFunctionKeywordOnSameLine)) {\n                break;\n              }\n              return parseFunctionExpression();\n            case 59:\n              return parseDecoratedExpression();\n            case 84:\n              return parseClassExpression();\n            case 98:\n              return parseFunctionExpression();\n            case 103:\n              return parseNewExpressionOrNewDotTarget();\n            case 43:\n            case 68:\n              if (reScanSlashToken() === 13) {\n                return parseLiteralNode();\n              }\n              break;\n            case 15:\n              return parseTemplateExpression(false);\n            case 80:\n              return parsePrivateIdentifier();\n          }\n          return parseIdentifier(Diagnostics.Expression_expected);\n        }\n        function parseParenthesizedExpression() {\n          const pos = getNodePos();\n          const hasJSDoc = hasPrecedingJSDocComment();\n          parseExpected(20);\n          const expression = allowInAnd(parseExpression);\n          parseExpected(21);\n          return withJSDoc(finishNode(factoryCreateParenthesizedExpression(expression), pos), hasJSDoc);\n        }\n        function parseSpreadElement() {\n          const pos = getNodePos();\n          parseExpected(25);\n          const expression = parseAssignmentExpressionOrHigher(true);\n          return finishNode(factory2.createSpreadElement(expression), pos);\n        }\n        function parseArgumentOrArrayLiteralElement() {\n          return token() === 25 ? parseSpreadElement() : token() === 27 ? finishNode(factory2.createOmittedExpression(), getNodePos()) : parseAssignmentExpressionOrHigher(true);\n        }\n        function parseArgumentExpression() {\n          return doOutsideOfContext(disallowInAndDecoratorContext, parseArgumentOrArrayLiteralElement);\n        }\n        function parseArrayLiteralExpression() {\n          const pos = getNodePos();\n          const openBracketPosition = scanner2.getTokenPos();\n          const openBracketParsed = parseExpected(22);\n          const multiLine = scanner2.hasPrecedingLineBreak();\n          const elements = parseDelimitedList(15, parseArgumentOrArrayLiteralElement);\n          parseExpectedMatchingBrackets(22, 23, openBracketParsed, openBracketPosition);\n          return finishNode(factoryCreateArrayLiteralExpression(elements, multiLine), pos);\n        }\n        function parseObjectLiteralElement() {\n          const pos = getNodePos();\n          const hasJSDoc = hasPrecedingJSDocComment();\n          if (parseOptionalToken(25)) {\n            const expression = parseAssignmentExpressionOrHigher(true);\n            return withJSDoc(finishNode(factory2.createSpreadAssignment(expression), pos), hasJSDoc);\n          }\n          const modifiers = parseModifiers(true);\n          if (parseContextualModifier(137)) {\n            return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 174, 0);\n          }\n          if (parseContextualModifier(151)) {\n            return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 175, 0);\n          }\n          const asteriskToken = parseOptionalToken(41);\n          const tokenIsIdentifier = isIdentifier2();\n          const name = parsePropertyName();\n          const questionToken = parseOptionalToken(57);\n          const exclamationToken = parseOptionalToken(53);\n          if (asteriskToken || token() === 20 || token() === 29) {\n            return parseMethodDeclaration(pos, hasJSDoc, modifiers, asteriskToken, name, questionToken, exclamationToken);\n          }\n          let node;\n          const isShorthandPropertyAssignment2 = tokenIsIdentifier && token() !== 58;\n          if (isShorthandPropertyAssignment2) {\n            const equalsToken = parseOptionalToken(63);\n            const objectAssignmentInitializer = equalsToken ? allowInAnd(() => parseAssignmentExpressionOrHigher(true)) : void 0;\n            node = factory2.createShorthandPropertyAssignment(name, objectAssignmentInitializer);\n            node.equalsToken = equalsToken;\n          } else {\n            parseExpected(58);\n            const initializer = allowInAnd(() => parseAssignmentExpressionOrHigher(true));\n            node = factory2.createPropertyAssignment(name, initializer);\n          }\n          node.modifiers = modifiers;\n          node.questionToken = questionToken;\n          node.exclamationToken = exclamationToken;\n          return withJSDoc(finishNode(node, pos), hasJSDoc);\n        }\n        function parseObjectLiteralExpression() {\n          const pos = getNodePos();\n          const openBracePosition = scanner2.getTokenPos();\n          const openBraceParsed = parseExpected(18);\n          const multiLine = scanner2.hasPrecedingLineBreak();\n          const properties = parseDelimitedList(12, parseObjectLiteralElement, true);\n          parseExpectedMatchingBrackets(18, 19, openBraceParsed, openBracePosition);\n          return finishNode(factoryCreateObjectLiteralExpression(properties, multiLine), pos);\n        }\n        function parseFunctionExpression() {\n          const savedDecoratorContext = inDecoratorContext();\n          setDecoratorContext(false);\n          const pos = getNodePos();\n          const hasJSDoc = hasPrecedingJSDocComment();\n          const modifiers = parseModifiers(false);\n          parseExpected(98);\n          const asteriskToken = parseOptionalToken(41);\n          const isGenerator = asteriskToken ? 1 : 0;\n          const isAsync = some(modifiers, isAsyncModifier) ? 2 : 0;\n          const name = isGenerator && isAsync ? doInYieldAndAwaitContext(parseOptionalBindingIdentifier) : isGenerator ? doInYieldContext(parseOptionalBindingIdentifier) : isAsync ? doInAwaitContext(parseOptionalBindingIdentifier) : parseOptionalBindingIdentifier();\n          const typeParameters = parseTypeParameters();\n          const parameters = parseParameters(isGenerator | isAsync);\n          const type = parseReturnType(58, false);\n          const body = parseFunctionBlock(isGenerator | isAsync);\n          setDecoratorContext(savedDecoratorContext);\n          const node = factory2.createFunctionExpression(modifiers, asteriskToken, name, typeParameters, parameters, type, body);\n          return withJSDoc(finishNode(node, pos), hasJSDoc);\n        }\n        function parseOptionalBindingIdentifier() {\n          return isBindingIdentifier() ? parseBindingIdentifier() : void 0;\n        }\n        function parseNewExpressionOrNewDotTarget() {\n          const pos = getNodePos();\n          parseExpected(103);\n          if (parseOptional(24)) {\n            const name = parseIdentifierName();\n            return finishNode(factory2.createMetaProperty(103, name), pos);\n          }\n          const expressionPos = getNodePos();\n          let expression = parseMemberExpressionRest(expressionPos, parsePrimaryExpression(), false);\n          let typeArguments;\n          if (expression.kind === 230) {\n            typeArguments = expression.typeArguments;\n            expression = expression.expression;\n          }\n          if (token() === 28) {\n            parseErrorAtCurrentToken(Diagnostics.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0, getTextOfNodeFromSourceText(sourceText, expression));\n          }\n          const argumentList = token() === 20 ? parseArgumentList() : void 0;\n          return finishNode(factoryCreateNewExpression(expression, typeArguments, argumentList), pos);\n        }\n        function parseBlock(ignoreMissingOpenBrace, diagnosticMessage) {\n          const pos = getNodePos();\n          const hasJSDoc = hasPrecedingJSDocComment();\n          const openBracePosition = scanner2.getTokenPos();\n          const openBraceParsed = parseExpected(18, diagnosticMessage);\n          if (openBraceParsed || ignoreMissingOpenBrace) {\n            const multiLine = scanner2.hasPrecedingLineBreak();\n            const statements = parseList(1, parseStatement);\n            parseExpectedMatchingBrackets(18, 19, openBraceParsed, openBracePosition);\n            const result = withJSDoc(finishNode(factoryCreateBlock(statements, multiLine), pos), hasJSDoc);\n            if (token() === 63) {\n              parseErrorAtCurrentToken(Diagnostics.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses);\n              nextToken();\n            }\n            return result;\n          } else {\n            const statements = createMissingList();\n            return withJSDoc(finishNode(factoryCreateBlock(statements, void 0), pos), hasJSDoc);\n          }\n        }\n        function parseFunctionBlock(flags, diagnosticMessage) {\n          const savedYieldContext = inYieldContext();\n          setYieldContext(!!(flags & 1));\n          const savedAwaitContext = inAwaitContext();\n          setAwaitContext(!!(flags & 2));\n          const savedTopLevel = topLevel;\n          topLevel = false;\n          const saveDecoratorContext = inDecoratorContext();\n          if (saveDecoratorContext) {\n            setDecoratorContext(false);\n          }\n          const block = parseBlock(!!(flags & 16), diagnosticMessage);\n          if (saveDecoratorContext) {\n            setDecoratorContext(true);\n          }\n          topLevel = savedTopLevel;\n          setYieldContext(savedYieldContext);\n          setAwaitContext(savedAwaitContext);\n          return block;\n        }\n        function parseEmptyStatement() {\n          const pos = getNodePos();\n          const hasJSDoc = hasPrecedingJSDocComment();\n          parseExpected(26);\n          return withJSDoc(finishNode(factory2.createEmptyStatement(), pos), hasJSDoc);\n        }\n        function parseIfStatement() {\n          const pos = getNodePos();\n          const hasJSDoc = hasPrecedingJSDocComment();\n          parseExpected(99);\n          const openParenPosition = scanner2.getTokenPos();\n          const openParenParsed = parseExpected(20);\n          const expression = allowInAnd(parseExpression);\n          parseExpectedMatchingBrackets(20, 21, openParenParsed, openParenPosition);\n          const thenStatement = parseStatement();\n          const elseStatement = parseOptional(91) ? parseStatement() : void 0;\n          return withJSDoc(finishNode(factoryCreateIfStatement(expression, thenStatement, elseStatement), pos), hasJSDoc);\n        }\n        function parseDoStatement() {\n          const pos = getNodePos();\n          const hasJSDoc = hasPrecedingJSDocComment();\n          parseExpected(90);\n          const statement = parseStatement();\n          parseExpected(115);\n          const openParenPosition = scanner2.getTokenPos();\n          const openParenParsed = parseExpected(20);\n          const expression = allowInAnd(parseExpression);\n          parseExpectedMatchingBrackets(20, 21, openParenParsed, openParenPosition);\n          parseOptional(26);\n          return withJSDoc(finishNode(factory2.createDoStatement(statement, expression), pos), hasJSDoc);\n        }\n        function parseWhileStatement() {\n          const pos = getNodePos();\n          const hasJSDoc = hasPrecedingJSDocComment();\n          parseExpected(115);\n          const openParenPosition = scanner2.getTokenPos();\n          const openParenParsed = parseExpected(20);\n          const expression = allowInAnd(parseExpression);\n          parseExpectedMatchingBrackets(20, 21, openParenParsed, openParenPosition);\n          const statement = parseStatement();\n          return withJSDoc(finishNode(factoryCreateWhileStatement(expression, statement), pos), hasJSDoc);\n        }\n        function parseForOrForInOrForOfStatement() {\n          const pos = getNodePos();\n          const hasJSDoc = hasPrecedingJSDocComment();\n          parseExpected(97);\n          const awaitToken = parseOptionalToken(133);\n          parseExpected(20);\n          let initializer;\n          if (token() !== 26) {\n            if (token() === 113 || token() === 119 || token() === 85) {\n              initializer = parseVariableDeclarationList(true);\n            } else {\n              initializer = disallowInAnd(parseExpression);\n            }\n          }\n          let node;\n          if (awaitToken ? parseExpected(162) : parseOptional(162)) {\n            const expression = allowInAnd(() => parseAssignmentExpressionOrHigher(true));\n            parseExpected(21);\n            node = factoryCreateForOfStatement(awaitToken, initializer, expression, parseStatement());\n          } else if (parseOptional(101)) {\n            const expression = allowInAnd(parseExpression);\n            parseExpected(21);\n            node = factory2.createForInStatement(initializer, expression, parseStatement());\n          } else {\n            parseExpected(26);\n            const condition = token() !== 26 && token() !== 21 ? allowInAnd(parseExpression) : void 0;\n            parseExpected(26);\n            const incrementor = token() !== 21 ? allowInAnd(parseExpression) : void 0;\n            parseExpected(21);\n            node = factoryCreateForStatement(initializer, condition, incrementor, parseStatement());\n          }\n          return withJSDoc(finishNode(node, pos), hasJSDoc);\n        }\n        function parseBreakOrContinueStatement(kind) {\n          const pos = getNodePos();\n          const hasJSDoc = hasPrecedingJSDocComment();\n          parseExpected(kind === 249 ? 81 : 86);\n          const label = canParseSemicolon() ? void 0 : parseIdentifier();\n          parseSemicolon();\n          const node = kind === 249 ? factory2.createBreakStatement(label) : factory2.createContinueStatement(label);\n          return withJSDoc(finishNode(node, pos), hasJSDoc);\n        }\n        function parseReturnStatement() {\n          const pos = getNodePos();\n          const hasJSDoc = hasPrecedingJSDocComment();\n          parseExpected(105);\n          const expression = canParseSemicolon() ? void 0 : allowInAnd(parseExpression);\n          parseSemicolon();\n          return withJSDoc(finishNode(factory2.createReturnStatement(expression), pos), hasJSDoc);\n        }\n        function parseWithStatement() {\n          const pos = getNodePos();\n          const hasJSDoc = hasPrecedingJSDocComment();\n          parseExpected(116);\n          const openParenPosition = scanner2.getTokenPos();\n          const openParenParsed = parseExpected(20);\n          const expression = allowInAnd(parseExpression);\n          parseExpectedMatchingBrackets(20, 21, openParenParsed, openParenPosition);\n          const statement = doInsideOfContext(33554432, parseStatement);\n          return withJSDoc(finishNode(factory2.createWithStatement(expression, statement), pos), hasJSDoc);\n        }\n        function parseCaseClause() {\n          const pos = getNodePos();\n          const hasJSDoc = hasPrecedingJSDocComment();\n          parseExpected(82);\n          const expression = allowInAnd(parseExpression);\n          parseExpected(58);\n          const statements = parseList(3, parseStatement);\n          return withJSDoc(finishNode(factory2.createCaseClause(expression, statements), pos), hasJSDoc);\n        }\n        function parseDefaultClause() {\n          const pos = getNodePos();\n          parseExpected(88);\n          parseExpected(58);\n          const statements = parseList(3, parseStatement);\n          return finishNode(factory2.createDefaultClause(statements), pos);\n        }\n        function parseCaseOrDefaultClause() {\n          return token() === 82 ? parseCaseClause() : parseDefaultClause();\n        }\n        function parseCaseBlock() {\n          const pos = getNodePos();\n          parseExpected(18);\n          const clauses = parseList(2, parseCaseOrDefaultClause);\n          parseExpected(19);\n          return finishNode(factory2.createCaseBlock(clauses), pos);\n        }\n        function parseSwitchStatement() {\n          const pos = getNodePos();\n          const hasJSDoc = hasPrecedingJSDocComment();\n          parseExpected(107);\n          parseExpected(20);\n          const expression = allowInAnd(parseExpression);\n          parseExpected(21);\n          const caseBlock = parseCaseBlock();\n          return withJSDoc(finishNode(factory2.createSwitchStatement(expression, caseBlock), pos), hasJSDoc);\n        }\n        function parseThrowStatement() {\n          const pos = getNodePos();\n          const hasJSDoc = hasPrecedingJSDocComment();\n          parseExpected(109);\n          let expression = scanner2.hasPrecedingLineBreak() ? void 0 : allowInAnd(parseExpression);\n          if (expression === void 0) {\n            identifierCount++;\n            expression = finishNode(factoryCreateIdentifier(\"\"), getNodePos());\n          }\n          if (!tryParseSemicolon()) {\n            parseErrorForMissingSemicolonAfter(expression);\n          }\n          return withJSDoc(finishNode(factory2.createThrowStatement(expression), pos), hasJSDoc);\n        }\n        function parseTryStatement() {\n          const pos = getNodePos();\n          const hasJSDoc = hasPrecedingJSDocComment();\n          parseExpected(111);\n          const tryBlock = parseBlock(false);\n          const catchClause = token() === 83 ? parseCatchClause() : void 0;\n          let finallyBlock;\n          if (!catchClause || token() === 96) {\n            parseExpected(96, Diagnostics.catch_or_finally_expected);\n            finallyBlock = parseBlock(false);\n          }\n          return withJSDoc(finishNode(factory2.createTryStatement(tryBlock, catchClause, finallyBlock), pos), hasJSDoc);\n        }\n        function parseCatchClause() {\n          const pos = getNodePos();\n          parseExpected(83);\n          let variableDeclaration;\n          if (parseOptional(20)) {\n            variableDeclaration = parseVariableDeclaration();\n            parseExpected(21);\n          } else {\n            variableDeclaration = void 0;\n          }\n          const block = parseBlock(false);\n          return finishNode(factory2.createCatchClause(variableDeclaration, block), pos);\n        }\n        function parseDebuggerStatement() {\n          const pos = getNodePos();\n          const hasJSDoc = hasPrecedingJSDocComment();\n          parseExpected(87);\n          parseSemicolon();\n          return withJSDoc(finishNode(factory2.createDebuggerStatement(), pos), hasJSDoc);\n        }\n        function parseExpressionOrLabeledStatement() {\n          const pos = getNodePos();\n          let hasJSDoc = hasPrecedingJSDocComment();\n          let node;\n          const hasParen = token() === 20;\n          const expression = allowInAnd(parseExpression);\n          if (isIdentifier(expression) && parseOptional(58)) {\n            node = factory2.createLabeledStatement(expression, parseStatement());\n          } else {\n            if (!tryParseSemicolon()) {\n              parseErrorForMissingSemicolonAfter(expression);\n            }\n            node = factoryCreateExpressionStatement(expression);\n            if (hasParen) {\n              hasJSDoc = false;\n            }\n          }\n          return withJSDoc(finishNode(node, pos), hasJSDoc);\n        }\n        function nextTokenIsIdentifierOrKeywordOnSameLine() {\n          nextToken();\n          return tokenIsIdentifierOrKeyword(token()) && !scanner2.hasPrecedingLineBreak();\n        }\n        function nextTokenIsClassKeywordOnSameLine() {\n          nextToken();\n          return token() === 84 && !scanner2.hasPrecedingLineBreak();\n        }\n        function nextTokenIsFunctionKeywordOnSameLine() {\n          nextToken();\n          return token() === 98 && !scanner2.hasPrecedingLineBreak();\n        }\n        function nextTokenIsIdentifierOrKeywordOrLiteralOnSameLine() {\n          nextToken();\n          return (tokenIsIdentifierOrKeyword(token()) || token() === 8 || token() === 9 || token() === 10) && !scanner2.hasPrecedingLineBreak();\n        }\n        function isDeclaration2() {\n          while (true) {\n            switch (token()) {\n              case 113:\n              case 119:\n              case 85:\n              case 98:\n              case 84:\n              case 92:\n                return true;\n              case 118:\n              case 154:\n                return nextTokenIsIdentifierOnSameLine();\n              case 142:\n              case 143:\n                return nextTokenIsIdentifierOrStringLiteralOnSameLine();\n              case 126:\n              case 127:\n              case 132:\n              case 136:\n              case 121:\n              case 122:\n              case 123:\n              case 146:\n                nextToken();\n                if (scanner2.hasPrecedingLineBreak()) {\n                  return false;\n                }\n                continue;\n              case 159:\n                nextToken();\n                return token() === 18 || token() === 79 || token() === 93;\n              case 100:\n                nextToken();\n                return token() === 10 || token() === 41 || token() === 18 || tokenIsIdentifierOrKeyword(token());\n              case 93:\n                let currentToken2 = nextToken();\n                if (currentToken2 === 154) {\n                  currentToken2 = lookAhead(nextToken);\n                }\n                if (currentToken2 === 63 || currentToken2 === 41 || currentToken2 === 18 || currentToken2 === 88 || currentToken2 === 128 || currentToken2 === 59) {\n                  return true;\n                }\n                continue;\n              case 124:\n                nextToken();\n                continue;\n              default:\n                return false;\n            }\n          }\n        }\n        function isStartOfDeclaration() {\n          return lookAhead(isDeclaration2);\n        }\n        function isStartOfStatement() {\n          switch (token()) {\n            case 59:\n            case 26:\n            case 18:\n            case 113:\n            case 119:\n            case 98:\n            case 84:\n            case 92:\n            case 99:\n            case 90:\n            case 115:\n            case 97:\n            case 86:\n            case 81:\n            case 105:\n            case 116:\n            case 107:\n            case 109:\n            case 111:\n            case 87:\n            case 83:\n            case 96:\n              return true;\n            case 100:\n              return isStartOfDeclaration() || lookAhead(nextTokenIsOpenParenOrLessThanOrDot);\n            case 85:\n            case 93:\n              return isStartOfDeclaration();\n            case 132:\n            case 136:\n            case 118:\n            case 142:\n            case 143:\n            case 154:\n            case 159:\n              return true;\n            case 127:\n            case 123:\n            case 121:\n            case 122:\n            case 124:\n            case 146:\n              return isStartOfDeclaration() || !lookAhead(nextTokenIsIdentifierOrKeywordOnSameLine);\n            default:\n              return isStartOfExpression();\n          }\n        }\n        function nextTokenIsBindingIdentifierOrStartOfDestructuring() {\n          nextToken();\n          return isBindingIdentifier() || token() === 18 || token() === 22;\n        }\n        function isLetDeclaration() {\n          return lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuring);\n        }\n        function parseStatement() {\n          switch (token()) {\n            case 26:\n              return parseEmptyStatement();\n            case 18:\n              return parseBlock(false);\n            case 113:\n              return parseVariableStatement(getNodePos(), hasPrecedingJSDocComment(), void 0);\n            case 119:\n              if (isLetDeclaration()) {\n                return parseVariableStatement(getNodePos(), hasPrecedingJSDocComment(), void 0);\n              }\n              break;\n            case 98:\n              return parseFunctionDeclaration(getNodePos(), hasPrecedingJSDocComment(), void 0);\n            case 84:\n              return parseClassDeclaration(getNodePos(), hasPrecedingJSDocComment(), void 0);\n            case 99:\n              return parseIfStatement();\n            case 90:\n              return parseDoStatement();\n            case 115:\n              return parseWhileStatement();\n            case 97:\n              return parseForOrForInOrForOfStatement();\n            case 86:\n              return parseBreakOrContinueStatement(248);\n            case 81:\n              return parseBreakOrContinueStatement(249);\n            case 105:\n              return parseReturnStatement();\n            case 116:\n              return parseWithStatement();\n            case 107:\n              return parseSwitchStatement();\n            case 109:\n              return parseThrowStatement();\n            case 111:\n            case 83:\n            case 96:\n              return parseTryStatement();\n            case 87:\n              return parseDebuggerStatement();\n            case 59:\n              return parseDeclaration();\n            case 132:\n            case 118:\n            case 154:\n            case 142:\n            case 143:\n            case 136:\n            case 85:\n            case 92:\n            case 93:\n            case 100:\n            case 121:\n            case 122:\n            case 123:\n            case 126:\n            case 127:\n            case 124:\n            case 146:\n            case 159:\n              if (isStartOfDeclaration()) {\n                return parseDeclaration();\n              }\n              break;\n          }\n          return parseExpressionOrLabeledStatement();\n        }\n        function isDeclareModifier(modifier) {\n          return modifier.kind === 136;\n        }\n        function parseDeclaration() {\n          const pos = getNodePos();\n          const hasJSDoc = hasPrecedingJSDocComment();\n          const modifiers = parseModifiers(true);\n          const isAmbient = some(modifiers, isDeclareModifier);\n          if (isAmbient) {\n            const node = tryReuseAmbientDeclaration(pos);\n            if (node) {\n              return node;\n            }\n            for (const m of modifiers) {\n              m.flags |= 16777216;\n            }\n            return doInsideOfContext(16777216, () => parseDeclarationWorker(pos, hasJSDoc, modifiers));\n          } else {\n            return parseDeclarationWorker(pos, hasJSDoc, modifiers);\n          }\n        }\n        function tryReuseAmbientDeclaration(pos) {\n          return doInsideOfContext(16777216, () => {\n            const node = currentNode(parsingContext, pos);\n            if (node) {\n              return consumeNode(node);\n            }\n          });\n        }\n        function parseDeclarationWorker(pos, hasJSDoc, modifiersIn) {\n          switch (token()) {\n            case 113:\n            case 119:\n            case 85:\n              return parseVariableStatement(pos, hasJSDoc, modifiersIn);\n            case 98:\n              return parseFunctionDeclaration(pos, hasJSDoc, modifiersIn);\n            case 84:\n              return parseClassDeclaration(pos, hasJSDoc, modifiersIn);\n            case 118:\n              return parseInterfaceDeclaration(pos, hasJSDoc, modifiersIn);\n            case 154:\n              return parseTypeAliasDeclaration(pos, hasJSDoc, modifiersIn);\n            case 92:\n              return parseEnumDeclaration(pos, hasJSDoc, modifiersIn);\n            case 159:\n            case 142:\n            case 143:\n              return parseModuleDeclaration(pos, hasJSDoc, modifiersIn);\n            case 100:\n              return parseImportDeclarationOrImportEqualsDeclaration(pos, hasJSDoc, modifiersIn);\n            case 93:\n              nextToken();\n              switch (token()) {\n                case 88:\n                case 63:\n                  return parseExportAssignment(pos, hasJSDoc, modifiersIn);\n                case 128:\n                  return parseNamespaceExportDeclaration(pos, hasJSDoc, modifiersIn);\n                default:\n                  return parseExportDeclaration(pos, hasJSDoc, modifiersIn);\n              }\n            default:\n              if (modifiersIn) {\n                const missing = createMissingNode(279, true, Diagnostics.Declaration_expected);\n                setTextRangePos(missing, pos);\n                missing.modifiers = modifiersIn;\n                return missing;\n              }\n              return void 0;\n          }\n        }\n        function nextTokenIsIdentifierOrStringLiteralOnSameLine() {\n          nextToken();\n          return !scanner2.hasPrecedingLineBreak() && (isIdentifier2() || token() === 10);\n        }\n        function parseFunctionBlockOrSemicolon(flags, diagnosticMessage) {\n          if (token() !== 18) {\n            if (flags & 4) {\n              parseTypeMemberSemicolon();\n              return;\n            }\n            if (canParseSemicolon()) {\n              parseSemicolon();\n              return;\n            }\n          }\n          return parseFunctionBlock(flags, diagnosticMessage);\n        }\n        function parseArrayBindingElement() {\n          const pos = getNodePos();\n          if (token() === 27) {\n            return finishNode(factory2.createOmittedExpression(), pos);\n          }\n          const dotDotDotToken = parseOptionalToken(25);\n          const name = parseIdentifierOrPattern();\n          const initializer = parseInitializer();\n          return finishNode(factory2.createBindingElement(dotDotDotToken, void 0, name, initializer), pos);\n        }\n        function parseObjectBindingElement() {\n          const pos = getNodePos();\n          const dotDotDotToken = parseOptionalToken(25);\n          const tokenIsIdentifier = isBindingIdentifier();\n          let propertyName = parsePropertyName();\n          let name;\n          if (tokenIsIdentifier && token() !== 58) {\n            name = propertyName;\n            propertyName = void 0;\n          } else {\n            parseExpected(58);\n            name = parseIdentifierOrPattern();\n          }\n          const initializer = parseInitializer();\n          return finishNode(factory2.createBindingElement(dotDotDotToken, propertyName, name, initializer), pos);\n        }\n        function parseObjectBindingPattern() {\n          const pos = getNodePos();\n          parseExpected(18);\n          const elements = parseDelimitedList(9, parseObjectBindingElement);\n          parseExpected(19);\n          return finishNode(factory2.createObjectBindingPattern(elements), pos);\n        }\n        function parseArrayBindingPattern() {\n          const pos = getNodePos();\n          parseExpected(22);\n          const elements = parseDelimitedList(10, parseArrayBindingElement);\n          parseExpected(23);\n          return finishNode(factory2.createArrayBindingPattern(elements), pos);\n        }\n        function isBindingIdentifierOrPrivateIdentifierOrPattern() {\n          return token() === 18 || token() === 22 || token() === 80 || isBindingIdentifier();\n        }\n        function parseIdentifierOrPattern(privateIdentifierDiagnosticMessage) {\n          if (token() === 22) {\n            return parseArrayBindingPattern();\n          }\n          if (token() === 18) {\n            return parseObjectBindingPattern();\n          }\n          return parseBindingIdentifier(privateIdentifierDiagnosticMessage);\n        }\n        function parseVariableDeclarationAllowExclamation() {\n          return parseVariableDeclaration(true);\n        }\n        function parseVariableDeclaration(allowExclamation) {\n          const pos = getNodePos();\n          const hasJSDoc = hasPrecedingJSDocComment();\n          const name = parseIdentifierOrPattern(Diagnostics.Private_identifiers_are_not_allowed_in_variable_declarations);\n          let exclamationToken;\n          if (allowExclamation && name.kind === 79 && token() === 53 && !scanner2.hasPrecedingLineBreak()) {\n            exclamationToken = parseTokenNode();\n          }\n          const type = parseTypeAnnotation();\n          const initializer = isInOrOfKeyword(token()) ? void 0 : parseInitializer();\n          const node = factoryCreateVariableDeclaration(name, exclamationToken, type, initializer);\n          return withJSDoc(finishNode(node, pos), hasJSDoc);\n        }\n        function parseVariableDeclarationList(inForStatementInitializer) {\n          const pos = getNodePos();\n          let flags = 0;\n          switch (token()) {\n            case 113:\n              break;\n            case 119:\n              flags |= 1;\n              break;\n            case 85:\n              flags |= 2;\n              break;\n            default:\n              Debug.fail();\n          }\n          nextToken();\n          let declarations;\n          if (token() === 162 && lookAhead(canFollowContextualOfKeyword)) {\n            declarations = createMissingList();\n          } else {\n            const savedDisallowIn = inDisallowInContext();\n            setDisallowInContext(inForStatementInitializer);\n            declarations = parseDelimitedList(8, inForStatementInitializer ? parseVariableDeclaration : parseVariableDeclarationAllowExclamation);\n            setDisallowInContext(savedDisallowIn);\n          }\n          return finishNode(factoryCreateVariableDeclarationList(declarations, flags), pos);\n        }\n        function canFollowContextualOfKeyword() {\n          return nextTokenIsIdentifier() && nextToken() === 21;\n        }\n        function parseVariableStatement(pos, hasJSDoc, modifiers) {\n          const declarationList = parseVariableDeclarationList(false);\n          parseSemicolon();\n          const node = factoryCreateVariableStatement(modifiers, declarationList);\n          return withJSDoc(finishNode(node, pos), hasJSDoc);\n        }\n        function parseFunctionDeclaration(pos, hasJSDoc, modifiers) {\n          const savedAwaitContext = inAwaitContext();\n          const modifierFlags = modifiersToFlags(modifiers);\n          parseExpected(98);\n          const asteriskToken = parseOptionalToken(41);\n          const name = modifierFlags & 1024 ? parseOptionalBindingIdentifier() : parseBindingIdentifier();\n          const isGenerator = asteriskToken ? 1 : 0;\n          const isAsync = modifierFlags & 512 ? 2 : 0;\n          const typeParameters = parseTypeParameters();\n          if (modifierFlags & 1)\n            setAwaitContext(true);\n          const parameters = parseParameters(isGenerator | isAsync);\n          const type = parseReturnType(58, false);\n          const body = parseFunctionBlockOrSemicolon(isGenerator | isAsync, Diagnostics.or_expected);\n          setAwaitContext(savedAwaitContext);\n          const node = factory2.createFunctionDeclaration(modifiers, asteriskToken, name, typeParameters, parameters, type, body);\n          return withJSDoc(finishNode(node, pos), hasJSDoc);\n        }\n        function parseConstructorName() {\n          if (token() === 135) {\n            return parseExpected(135);\n          }\n          if (token() === 10 && lookAhead(nextToken) === 20) {\n            return tryParse(() => {\n              const literalNode = parseLiteralNode();\n              return literalNode.text === \"constructor\" ? literalNode : void 0;\n            });\n          }\n        }\n        function tryParseConstructorDeclaration(pos, hasJSDoc, modifiers) {\n          return tryParse(() => {\n            if (parseConstructorName()) {\n              const typeParameters = parseTypeParameters();\n              const parameters = parseParameters(0);\n              const type = parseReturnType(58, false);\n              const body = parseFunctionBlockOrSemicolon(0, Diagnostics.or_expected);\n              const node = factory2.createConstructorDeclaration(modifiers, parameters, body);\n              node.typeParameters = typeParameters;\n              node.type = type;\n              return withJSDoc(finishNode(node, pos), hasJSDoc);\n            }\n          });\n        }\n        function parseMethodDeclaration(pos, hasJSDoc, modifiers, asteriskToken, name, questionToken, exclamationToken, diagnosticMessage) {\n          const isGenerator = asteriskToken ? 1 : 0;\n          const isAsync = some(modifiers, isAsyncModifier) ? 2 : 0;\n          const typeParameters = parseTypeParameters();\n          const parameters = parseParameters(isGenerator | isAsync);\n          const type = parseReturnType(58, false);\n          const body = parseFunctionBlockOrSemicolon(isGenerator | isAsync, diagnosticMessage);\n          const node = factory2.createMethodDeclaration(modifiers, asteriskToken, name, questionToken, typeParameters, parameters, type, body);\n          node.exclamationToken = exclamationToken;\n          return withJSDoc(finishNode(node, pos), hasJSDoc);\n        }\n        function parsePropertyDeclaration(pos, hasJSDoc, modifiers, name, questionToken) {\n          const exclamationToken = !questionToken && !scanner2.hasPrecedingLineBreak() ? parseOptionalToken(53) : void 0;\n          const type = parseTypeAnnotation();\n          const initializer = doOutsideOfContext(8192 | 32768 | 4096, parseInitializer);\n          parseSemicolonAfterPropertyName(name, type, initializer);\n          const node = factory2.createPropertyDeclaration(modifiers, name, questionToken || exclamationToken, type, initializer);\n          return withJSDoc(finishNode(node, pos), hasJSDoc);\n        }\n        function parsePropertyOrMethodDeclaration(pos, hasJSDoc, modifiers) {\n          const asteriskToken = parseOptionalToken(41);\n          const name = parsePropertyName();\n          const questionToken = parseOptionalToken(57);\n          if (asteriskToken || token() === 20 || token() === 29) {\n            return parseMethodDeclaration(pos, hasJSDoc, modifiers, asteriskToken, name, questionToken, void 0, Diagnostics.or_expected);\n          }\n          return parsePropertyDeclaration(pos, hasJSDoc, modifiers, name, questionToken);\n        }\n        function parseAccessorDeclaration(pos, hasJSDoc, modifiers, kind, flags) {\n          const name = parsePropertyName();\n          const typeParameters = parseTypeParameters();\n          const parameters = parseParameters(0);\n          const type = parseReturnType(58, false);\n          const body = parseFunctionBlockOrSemicolon(flags);\n          const node = kind === 174 ? factory2.createGetAccessorDeclaration(modifiers, name, parameters, type, body) : factory2.createSetAccessorDeclaration(modifiers, name, parameters, body);\n          node.typeParameters = typeParameters;\n          if (isSetAccessorDeclaration(node))\n            node.type = type;\n          return withJSDoc(finishNode(node, pos), hasJSDoc);\n        }\n        function isClassMemberStart() {\n          let idToken;\n          if (token() === 59) {\n            return true;\n          }\n          while (isModifierKind(token())) {\n            idToken = token();\n            if (isClassMemberModifier(idToken)) {\n              return true;\n            }\n            nextToken();\n          }\n          if (token() === 41) {\n            return true;\n          }\n          if (isLiteralPropertyName()) {\n            idToken = token();\n            nextToken();\n          }\n          if (token() === 22) {\n            return true;\n          }\n          if (idToken !== void 0) {\n            if (!isKeyword(idToken) || idToken === 151 || idToken === 137) {\n              return true;\n            }\n            switch (token()) {\n              case 20:\n              case 29:\n              case 53:\n              case 58:\n              case 63:\n              case 57:\n                return true;\n              default:\n                return canParseSemicolon();\n            }\n          }\n          return false;\n        }\n        function parseClassStaticBlockDeclaration(pos, hasJSDoc, modifiers) {\n          parseExpectedToken(124);\n          const body = parseClassStaticBlockBody();\n          const node = withJSDoc(finishNode(factory2.createClassStaticBlockDeclaration(body), pos), hasJSDoc);\n          node.modifiers = modifiers;\n          return node;\n        }\n        function parseClassStaticBlockBody() {\n          const savedYieldContext = inYieldContext();\n          const savedAwaitContext = inAwaitContext();\n          setYieldContext(false);\n          setAwaitContext(true);\n          const body = parseBlock(false);\n          setYieldContext(savedYieldContext);\n          setAwaitContext(savedAwaitContext);\n          return body;\n        }\n        function parseDecoratorExpression() {\n          if (inAwaitContext() && token() === 133) {\n            const pos = getNodePos();\n            const awaitExpression = parseIdentifier(Diagnostics.Expression_expected);\n            nextToken();\n            const memberExpression = parseMemberExpressionRest(pos, awaitExpression, true);\n            return parseCallExpressionRest(pos, memberExpression);\n          }\n          return parseLeftHandSideExpressionOrHigher();\n        }\n        function tryParseDecorator() {\n          const pos = getNodePos();\n          if (!parseOptional(59)) {\n            return void 0;\n          }\n          const expression = doInDecoratorContext(parseDecoratorExpression);\n          return finishNode(factory2.createDecorator(expression), pos);\n        }\n        function tryParseModifier(hasSeenStaticModifier, permitConstAsModifier, stopOnStartOfClassStaticBlock) {\n          const pos = getNodePos();\n          const kind = token();\n          if (token() === 85 && permitConstAsModifier) {\n            if (!tryParse(nextTokenIsOnSameLineAndCanFollowModifier)) {\n              return void 0;\n            }\n          } else if (stopOnStartOfClassStaticBlock && token() === 124 && lookAhead(nextTokenIsOpenBrace)) {\n            return void 0;\n          } else if (hasSeenStaticModifier && token() === 124) {\n            return void 0;\n          } else {\n            if (!parseAnyContextualModifier()) {\n              return void 0;\n            }\n          }\n          return finishNode(factoryCreateToken(kind), pos);\n        }\n        function parseModifiers(allowDecorators, permitConstAsModifier, stopOnStartOfClassStaticBlock) {\n          const pos = getNodePos();\n          let list;\n          let decorator, modifier, hasSeenStaticModifier = false, hasLeadingModifier = false, hasTrailingDecorator = false;\n          if (allowDecorators && token() === 59) {\n            while (decorator = tryParseDecorator()) {\n              list = append(list, decorator);\n            }\n          }\n          while (modifier = tryParseModifier(hasSeenStaticModifier, permitConstAsModifier, stopOnStartOfClassStaticBlock)) {\n            if (modifier.kind === 124)\n              hasSeenStaticModifier = true;\n            list = append(list, modifier);\n            hasLeadingModifier = true;\n          }\n          if (hasLeadingModifier && allowDecorators && token() === 59) {\n            while (decorator = tryParseDecorator()) {\n              list = append(list, decorator);\n              hasTrailingDecorator = true;\n            }\n          }\n          if (hasTrailingDecorator) {\n            while (modifier = tryParseModifier(hasSeenStaticModifier, permitConstAsModifier, stopOnStartOfClassStaticBlock)) {\n              if (modifier.kind === 124)\n                hasSeenStaticModifier = true;\n              list = append(list, modifier);\n            }\n          }\n          return list && createNodeArray(list, pos);\n        }\n        function parseModifiersForArrowFunction() {\n          let modifiers;\n          if (token() === 132) {\n            const pos = getNodePos();\n            nextToken();\n            const modifier = finishNode(factoryCreateToken(132), pos);\n            modifiers = createNodeArray([modifier], pos);\n          }\n          return modifiers;\n        }\n        function parseClassElement() {\n          const pos = getNodePos();\n          if (token() === 26) {\n            nextToken();\n            return finishNode(factory2.createSemicolonClassElement(), pos);\n          }\n          const hasJSDoc = hasPrecedingJSDocComment();\n          const modifiers = parseModifiers(true, true, true);\n          if (token() === 124 && lookAhead(nextTokenIsOpenBrace)) {\n            return parseClassStaticBlockDeclaration(pos, hasJSDoc, modifiers);\n          }\n          if (parseContextualModifier(137)) {\n            return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 174, 0);\n          }\n          if (parseContextualModifier(151)) {\n            return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 175, 0);\n          }\n          if (token() === 135 || token() === 10) {\n            const constructorDeclaration = tryParseConstructorDeclaration(pos, hasJSDoc, modifiers);\n            if (constructorDeclaration) {\n              return constructorDeclaration;\n            }\n          }\n          if (isIndexSignature()) {\n            return parseIndexSignatureDeclaration(pos, hasJSDoc, modifiers);\n          }\n          if (tokenIsIdentifierOrKeyword(token()) || token() === 10 || token() === 8 || token() === 41 || token() === 22) {\n            const isAmbient = some(modifiers, isDeclareModifier);\n            if (isAmbient) {\n              for (const m of modifiers) {\n                m.flags |= 16777216;\n              }\n              return doInsideOfContext(16777216, () => parsePropertyOrMethodDeclaration(pos, hasJSDoc, modifiers));\n            } else {\n              return parsePropertyOrMethodDeclaration(pos, hasJSDoc, modifiers);\n            }\n          }\n          if (modifiers) {\n            const name = createMissingNode(79, true, Diagnostics.Declaration_expected);\n            return parsePropertyDeclaration(pos, hasJSDoc, modifiers, name, void 0);\n          }\n          return Debug.fail(\"Should not have attempted to parse class member declaration.\");\n        }\n        function parseDecoratedExpression() {\n          const pos = getNodePos();\n          const hasJSDoc = hasPrecedingJSDocComment();\n          const modifiers = parseModifiers(true);\n          if (token() === 84) {\n            return parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, 228);\n          }\n          const missing = createMissingNode(279, true, Diagnostics.Expression_expected);\n          setTextRangePos(missing, pos);\n          missing.modifiers = modifiers;\n          return missing;\n        }\n        function parseClassExpression() {\n          return parseClassDeclarationOrExpression(getNodePos(), hasPrecedingJSDocComment(), void 0, 228);\n        }\n        function parseClassDeclaration(pos, hasJSDoc, modifiers) {\n          return parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, 260);\n        }\n        function parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, kind) {\n          const savedAwaitContext = inAwaitContext();\n          parseExpected(84);\n          const name = parseNameOfClassDeclarationOrExpression();\n          const typeParameters = parseTypeParameters();\n          if (some(modifiers, isExportModifier))\n            setAwaitContext(true);\n          const heritageClauses = parseHeritageClauses();\n          let members;\n          if (parseExpected(18)) {\n            members = parseClassMembers();\n            parseExpected(19);\n          } else {\n            members = createMissingList();\n          }\n          setAwaitContext(savedAwaitContext);\n          const node = kind === 260 ? factory2.createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members) : factory2.createClassExpression(modifiers, name, typeParameters, heritageClauses, members);\n          return withJSDoc(finishNode(node, pos), hasJSDoc);\n        }\n        function parseNameOfClassDeclarationOrExpression() {\n          return isBindingIdentifier() && !isImplementsClause() ? createIdentifier(isBindingIdentifier()) : void 0;\n        }\n        function isImplementsClause() {\n          return token() === 117 && lookAhead(nextTokenIsIdentifierOrKeyword);\n        }\n        function parseHeritageClauses() {\n          if (isHeritageClause2()) {\n            return parseList(22, parseHeritageClause);\n          }\n          return void 0;\n        }\n        function parseHeritageClause() {\n          const pos = getNodePos();\n          const tok = token();\n          Debug.assert(tok === 94 || tok === 117);\n          nextToken();\n          const types = parseDelimitedList(7, parseExpressionWithTypeArguments);\n          return finishNode(factory2.createHeritageClause(tok, types), pos);\n        }\n        function parseExpressionWithTypeArguments() {\n          const pos = getNodePos();\n          const expression = parseLeftHandSideExpressionOrHigher();\n          if (expression.kind === 230) {\n            return expression;\n          }\n          const typeArguments = tryParseTypeArguments();\n          return finishNode(factory2.createExpressionWithTypeArguments(expression, typeArguments), pos);\n        }\n        function tryParseTypeArguments() {\n          return token() === 29 ? parseBracketedList(20, parseType, 29, 31) : void 0;\n        }\n        function isHeritageClause2() {\n          return token() === 94 || token() === 117;\n        }\n        function parseClassMembers() {\n          return parseList(5, parseClassElement);\n        }\n        function parseInterfaceDeclaration(pos, hasJSDoc, modifiers) {\n          parseExpected(118);\n          const name = parseIdentifier();\n          const typeParameters = parseTypeParameters();\n          const heritageClauses = parseHeritageClauses();\n          const members = parseObjectTypeMembers();\n          const node = factory2.createInterfaceDeclaration(modifiers, name, typeParameters, heritageClauses, members);\n          return withJSDoc(finishNode(node, pos), hasJSDoc);\n        }\n        function parseTypeAliasDeclaration(pos, hasJSDoc, modifiers) {\n          parseExpected(154);\n          const name = parseIdentifier();\n          const typeParameters = parseTypeParameters();\n          parseExpected(63);\n          const type = token() === 139 && tryParse(parseKeywordAndNoDot) || parseType();\n          parseSemicolon();\n          const node = factory2.createTypeAliasDeclaration(modifiers, name, typeParameters, type);\n          return withJSDoc(finishNode(node, pos), hasJSDoc);\n        }\n        function parseEnumMember() {\n          const pos = getNodePos();\n          const hasJSDoc = hasPrecedingJSDocComment();\n          const name = parsePropertyName();\n          const initializer = allowInAnd(parseInitializer);\n          return withJSDoc(finishNode(factory2.createEnumMember(name, initializer), pos), hasJSDoc);\n        }\n        function parseEnumDeclaration(pos, hasJSDoc, modifiers) {\n          parseExpected(92);\n          const name = parseIdentifier();\n          let members;\n          if (parseExpected(18)) {\n            members = doOutsideOfYieldAndAwaitContext(() => parseDelimitedList(6, parseEnumMember));\n            parseExpected(19);\n          } else {\n            members = createMissingList();\n          }\n          const node = factory2.createEnumDeclaration(modifiers, name, members);\n          return withJSDoc(finishNode(node, pos), hasJSDoc);\n        }\n        function parseModuleBlock() {\n          const pos = getNodePos();\n          let statements;\n          if (parseExpected(18)) {\n            statements = parseList(1, parseStatement);\n            parseExpected(19);\n          } else {\n            statements = createMissingList();\n          }\n          return finishNode(factory2.createModuleBlock(statements), pos);\n        }\n        function parseModuleOrNamespaceDeclaration(pos, hasJSDoc, modifiers, flags) {\n          const namespaceFlag = flags & 16;\n          const name = parseIdentifier();\n          const body = parseOptional(24) ? parseModuleOrNamespaceDeclaration(getNodePos(), false, void 0, 4 | namespaceFlag) : parseModuleBlock();\n          const node = factory2.createModuleDeclaration(modifiers, name, body, flags);\n          return withJSDoc(finishNode(node, pos), hasJSDoc);\n        }\n        function parseAmbientExternalModuleDeclaration(pos, hasJSDoc, modifiersIn) {\n          let flags = 0;\n          let name;\n          if (token() === 159) {\n            name = parseIdentifier();\n            flags |= 1024;\n          } else {\n            name = parseLiteralNode();\n            name.text = internIdentifier(name.text);\n          }\n          let body;\n          if (token() === 18) {\n            body = parseModuleBlock();\n          } else {\n            parseSemicolon();\n          }\n          const node = factory2.createModuleDeclaration(modifiersIn, name, body, flags);\n          return withJSDoc(finishNode(node, pos), hasJSDoc);\n        }\n        function parseModuleDeclaration(pos, hasJSDoc, modifiersIn) {\n          let flags = 0;\n          if (token() === 159) {\n            return parseAmbientExternalModuleDeclaration(pos, hasJSDoc, modifiersIn);\n          } else if (parseOptional(143)) {\n            flags |= 16;\n          } else {\n            parseExpected(142);\n            if (token() === 10) {\n              return parseAmbientExternalModuleDeclaration(pos, hasJSDoc, modifiersIn);\n            }\n          }\n          return parseModuleOrNamespaceDeclaration(pos, hasJSDoc, modifiersIn, flags);\n        }\n        function isExternalModuleReference2() {\n          return token() === 147 && lookAhead(nextTokenIsOpenParen);\n        }\n        function nextTokenIsOpenParen() {\n          return nextToken() === 20;\n        }\n        function nextTokenIsOpenBrace() {\n          return nextToken() === 18;\n        }\n        function nextTokenIsSlash() {\n          return nextToken() === 43;\n        }\n        function parseNamespaceExportDeclaration(pos, hasJSDoc, modifiers) {\n          parseExpected(128);\n          parseExpected(143);\n          const name = parseIdentifier();\n          parseSemicolon();\n          const node = factory2.createNamespaceExportDeclaration(name);\n          node.modifiers = modifiers;\n          return withJSDoc(finishNode(node, pos), hasJSDoc);\n        }\n        function parseImportDeclarationOrImportEqualsDeclaration(pos, hasJSDoc, modifiers) {\n          parseExpected(100);\n          const afterImportPos = scanner2.getStartPos();\n          let identifier;\n          if (isIdentifier2()) {\n            identifier = parseIdentifier();\n          }\n          let isTypeOnly = false;\n          if (token() !== 158 && (identifier == null ? void 0 : identifier.escapedText) === \"type\" && (isIdentifier2() || tokenAfterImportDefinitelyProducesImportDeclaration())) {\n            isTypeOnly = true;\n            identifier = isIdentifier2() ? parseIdentifier() : void 0;\n          }\n          if (identifier && !tokenAfterImportedIdentifierDefinitelyProducesImportDeclaration()) {\n            return parseImportEqualsDeclaration(pos, hasJSDoc, modifiers, identifier, isTypeOnly);\n          }\n          let importClause;\n          if (identifier || token() === 41 || token() === 18) {\n            importClause = parseImportClause(identifier, afterImportPos, isTypeOnly);\n            parseExpected(158);\n          }\n          const moduleSpecifier = parseModuleSpecifier();\n          let assertClause;\n          if (token() === 130 && !scanner2.hasPrecedingLineBreak()) {\n            assertClause = parseAssertClause();\n          }\n          parseSemicolon();\n          const node = factory2.createImportDeclaration(modifiers, importClause, moduleSpecifier, assertClause);\n          return withJSDoc(finishNode(node, pos), hasJSDoc);\n        }\n        function parseAssertEntry() {\n          const pos = getNodePos();\n          const name = tokenIsIdentifierOrKeyword(token()) ? parseIdentifierName() : parseLiteralLikeNode(10);\n          parseExpected(58);\n          const value = parseAssignmentExpressionOrHigher(true);\n          return finishNode(factory2.createAssertEntry(name, value), pos);\n        }\n        function parseAssertClause(skipAssertKeyword) {\n          const pos = getNodePos();\n          if (!skipAssertKeyword) {\n            parseExpected(130);\n          }\n          const openBracePosition = scanner2.getTokenPos();\n          if (parseExpected(18)) {\n            const multiLine = scanner2.hasPrecedingLineBreak();\n            const elements = parseDelimitedList(24, parseAssertEntry, true);\n            if (!parseExpected(19)) {\n              const lastError = lastOrUndefined(parseDiagnostics);\n              if (lastError && lastError.code === Diagnostics._0_expected.code) {\n                addRelatedInfo(lastError, createDetachedDiagnostic(fileName, openBracePosition, 1, Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here, \"{\", \"}\"));\n              }\n            }\n            return finishNode(factory2.createAssertClause(elements, multiLine), pos);\n          } else {\n            const elements = createNodeArray([], getNodePos(), void 0, false);\n            return finishNode(factory2.createAssertClause(elements, false), pos);\n          }\n        }\n        function tokenAfterImportDefinitelyProducesImportDeclaration() {\n          return token() === 41 || token() === 18;\n        }\n        function tokenAfterImportedIdentifierDefinitelyProducesImportDeclaration() {\n          return token() === 27 || token() === 158;\n        }\n        function parseImportEqualsDeclaration(pos, hasJSDoc, modifiers, identifier, isTypeOnly) {\n          parseExpected(63);\n          const moduleReference = parseModuleReference();\n          parseSemicolon();\n          const node = factory2.createImportEqualsDeclaration(modifiers, isTypeOnly, identifier, moduleReference);\n          const finished = withJSDoc(finishNode(node, pos), hasJSDoc);\n          return finished;\n        }\n        function parseImportClause(identifier, pos, isTypeOnly) {\n          let namedBindings;\n          if (!identifier || parseOptional(27)) {\n            namedBindings = token() === 41 ? parseNamespaceImport() : parseNamedImportsOrExports(272);\n          }\n          return finishNode(factory2.createImportClause(isTypeOnly, identifier, namedBindings), pos);\n        }\n        function parseModuleReference() {\n          return isExternalModuleReference2() ? parseExternalModuleReference() : parseEntityName(false);\n        }\n        function parseExternalModuleReference() {\n          const pos = getNodePos();\n          parseExpected(147);\n          parseExpected(20);\n          const expression = parseModuleSpecifier();\n          parseExpected(21);\n          return finishNode(factory2.createExternalModuleReference(expression), pos);\n        }\n        function parseModuleSpecifier() {\n          if (token() === 10) {\n            const result = parseLiteralNode();\n            result.text = internIdentifier(result.text);\n            return result;\n          } else {\n            return parseExpression();\n          }\n        }\n        function parseNamespaceImport() {\n          const pos = getNodePos();\n          parseExpected(41);\n          parseExpected(128);\n          const name = parseIdentifier();\n          return finishNode(factory2.createNamespaceImport(name), pos);\n        }\n        function parseNamedImportsOrExports(kind) {\n          const pos = getNodePos();\n          const node = kind === 272 ? factory2.createNamedImports(parseBracketedList(23, parseImportSpecifier, 18, 19)) : factory2.createNamedExports(parseBracketedList(23, parseExportSpecifier, 18, 19));\n          return finishNode(node, pos);\n        }\n        function parseExportSpecifier() {\n          const hasJSDoc = hasPrecedingJSDocComment();\n          return withJSDoc(parseImportOrExportSpecifier(278), hasJSDoc);\n        }\n        function parseImportSpecifier() {\n          return parseImportOrExportSpecifier(273);\n        }\n        function parseImportOrExportSpecifier(kind) {\n          const pos = getNodePos();\n          let checkIdentifierIsKeyword = isKeyword(token()) && !isIdentifier2();\n          let checkIdentifierStart = scanner2.getTokenPos();\n          let checkIdentifierEnd = scanner2.getTextPos();\n          let isTypeOnly = false;\n          let propertyName;\n          let canParseAsKeyword = true;\n          let name = parseIdentifierName();\n          if (name.escapedText === \"type\") {\n            if (token() === 128) {\n              const firstAs = parseIdentifierName();\n              if (token() === 128) {\n                const secondAs = parseIdentifierName();\n                if (tokenIsIdentifierOrKeyword(token())) {\n                  isTypeOnly = true;\n                  propertyName = firstAs;\n                  name = parseNameWithKeywordCheck();\n                  canParseAsKeyword = false;\n                } else {\n                  propertyName = name;\n                  name = secondAs;\n                  canParseAsKeyword = false;\n                }\n              } else if (tokenIsIdentifierOrKeyword(token())) {\n                propertyName = name;\n                canParseAsKeyword = false;\n                name = parseNameWithKeywordCheck();\n              } else {\n                isTypeOnly = true;\n                name = firstAs;\n              }\n            } else if (tokenIsIdentifierOrKeyword(token())) {\n              isTypeOnly = true;\n              name = parseNameWithKeywordCheck();\n            }\n          }\n          if (canParseAsKeyword && token() === 128) {\n            propertyName = name;\n            parseExpected(128);\n            name = parseNameWithKeywordCheck();\n          }\n          if (kind === 273 && checkIdentifierIsKeyword) {\n            parseErrorAt(checkIdentifierStart, checkIdentifierEnd, Diagnostics.Identifier_expected);\n          }\n          const node = kind === 273 ? factory2.createImportSpecifier(isTypeOnly, propertyName, name) : factory2.createExportSpecifier(isTypeOnly, propertyName, name);\n          return finishNode(node, pos);\n          function parseNameWithKeywordCheck() {\n            checkIdentifierIsKeyword = isKeyword(token()) && !isIdentifier2();\n            checkIdentifierStart = scanner2.getTokenPos();\n            checkIdentifierEnd = scanner2.getTextPos();\n            return parseIdentifierName();\n          }\n        }\n        function parseNamespaceExport(pos) {\n          return finishNode(factory2.createNamespaceExport(parseIdentifierName()), pos);\n        }\n        function parseExportDeclaration(pos, hasJSDoc, modifiers) {\n          const savedAwaitContext = inAwaitContext();\n          setAwaitContext(true);\n          let exportClause;\n          let moduleSpecifier;\n          let assertClause;\n          const isTypeOnly = parseOptional(154);\n          const namespaceExportPos = getNodePos();\n          if (parseOptional(41)) {\n            if (parseOptional(128)) {\n              exportClause = parseNamespaceExport(namespaceExportPos);\n            }\n            parseExpected(158);\n            moduleSpecifier = parseModuleSpecifier();\n          } else {\n            exportClause = parseNamedImportsOrExports(276);\n            if (token() === 158 || token() === 10 && !scanner2.hasPrecedingLineBreak()) {\n              parseExpected(158);\n              moduleSpecifier = parseModuleSpecifier();\n            }\n          }\n          if (moduleSpecifier && token() === 130 && !scanner2.hasPrecedingLineBreak()) {\n            assertClause = parseAssertClause();\n          }\n          parseSemicolon();\n          setAwaitContext(savedAwaitContext);\n          const node = factory2.createExportDeclaration(modifiers, isTypeOnly, exportClause, moduleSpecifier, assertClause);\n          return withJSDoc(finishNode(node, pos), hasJSDoc);\n        }\n        function parseExportAssignment(pos, hasJSDoc, modifiers) {\n          const savedAwaitContext = inAwaitContext();\n          setAwaitContext(true);\n          let isExportEquals;\n          if (parseOptional(63)) {\n            isExportEquals = true;\n          } else {\n            parseExpected(88);\n          }\n          const expression = parseAssignmentExpressionOrHigher(true);\n          parseSemicolon();\n          setAwaitContext(savedAwaitContext);\n          const node = factory2.createExportAssignment(modifiers, isExportEquals, expression);\n          return withJSDoc(finishNode(node, pos), hasJSDoc);\n        }\n        let ParsingContext;\n        ((ParsingContext2) => {\n          ParsingContext2[ParsingContext2[\"SourceElements\"] = 0] = \"SourceElements\";\n          ParsingContext2[ParsingContext2[\"BlockStatements\"] = 1] = \"BlockStatements\";\n          ParsingContext2[ParsingContext2[\"SwitchClauses\"] = 2] = \"SwitchClauses\";\n          ParsingContext2[ParsingContext2[\"SwitchClauseStatements\"] = 3] = \"SwitchClauseStatements\";\n          ParsingContext2[ParsingContext2[\"TypeMembers\"] = 4] = \"TypeMembers\";\n          ParsingContext2[ParsingContext2[\"ClassMembers\"] = 5] = \"ClassMembers\";\n          ParsingContext2[ParsingContext2[\"EnumMembers\"] = 6] = \"EnumMembers\";\n          ParsingContext2[ParsingContext2[\"HeritageClauseElement\"] = 7] = \"HeritageClauseElement\";\n          ParsingContext2[ParsingContext2[\"VariableDeclarations\"] = 8] = \"VariableDeclarations\";\n          ParsingContext2[ParsingContext2[\"ObjectBindingElements\"] = 9] = \"ObjectBindingElements\";\n          ParsingContext2[ParsingContext2[\"ArrayBindingElements\"] = 10] = \"ArrayBindingElements\";\n          ParsingContext2[ParsingContext2[\"ArgumentExpressions\"] = 11] = \"ArgumentExpressions\";\n          ParsingContext2[ParsingContext2[\"ObjectLiteralMembers\"] = 12] = \"ObjectLiteralMembers\";\n          ParsingContext2[ParsingContext2[\"JsxAttributes\"] = 13] = \"JsxAttributes\";\n          ParsingContext2[ParsingContext2[\"JsxChildren\"] = 14] = \"JsxChildren\";\n          ParsingContext2[ParsingContext2[\"ArrayLiteralMembers\"] = 15] = \"ArrayLiteralMembers\";\n          ParsingContext2[ParsingContext2[\"Parameters\"] = 16] = \"Parameters\";\n          ParsingContext2[ParsingContext2[\"JSDocParameters\"] = 17] = \"JSDocParameters\";\n          ParsingContext2[ParsingContext2[\"RestProperties\"] = 18] = \"RestProperties\";\n          ParsingContext2[ParsingContext2[\"TypeParameters\"] = 19] = \"TypeParameters\";\n          ParsingContext2[ParsingContext2[\"TypeArguments\"] = 20] = \"TypeArguments\";\n          ParsingContext2[ParsingContext2[\"TupleElementTypes\"] = 21] = \"TupleElementTypes\";\n          ParsingContext2[ParsingContext2[\"HeritageClauses\"] = 22] = \"HeritageClauses\";\n          ParsingContext2[ParsingContext2[\"ImportOrExportSpecifiers\"] = 23] = \"ImportOrExportSpecifiers\";\n          ParsingContext2[ParsingContext2[\"AssertEntries\"] = 24] = \"AssertEntries\";\n          ParsingContext2[ParsingContext2[\"Count\"] = 25] = \"Count\";\n        })(ParsingContext || (ParsingContext = {}));\n        let Tristate;\n        ((Tristate2) => {\n          Tristate2[Tristate2[\"False\"] = 0] = \"False\";\n          Tristate2[Tristate2[\"True\"] = 1] = \"True\";\n          Tristate2[Tristate2[\"Unknown\"] = 2] = \"Unknown\";\n        })(Tristate || (Tristate = {}));\n        let JSDocParser;\n        ((JSDocParser2) => {\n          function parseJSDocTypeExpressionForTests2(content, start, length2) {\n            initializeState(\"file.js\", content, 99, void 0, 1);\n            scanner2.setText(content, start, length2);\n            currentToken = scanner2.scan();\n            const jsDocTypeExpression = parseJSDocTypeExpression();\n            const sourceFile = createSourceFile2(\"file.js\", 99, 1, false, [], factoryCreateToken(1), 0, noop);\n            const diagnostics = attachFileToDiagnostics(parseDiagnostics, sourceFile);\n            if (jsDocDiagnostics) {\n              sourceFile.jsDocDiagnostics = attachFileToDiagnostics(jsDocDiagnostics, sourceFile);\n            }\n            clearState();\n            return jsDocTypeExpression ? { jsDocTypeExpression, diagnostics } : void 0;\n          }\n          JSDocParser2.parseJSDocTypeExpressionForTests = parseJSDocTypeExpressionForTests2;\n          function parseJSDocTypeExpression(mayOmitBraces) {\n            const pos = getNodePos();\n            const hasBrace = (mayOmitBraces ? parseOptional : parseExpected)(18);\n            const type = doInsideOfContext(8388608, parseJSDocType);\n            if (!mayOmitBraces || hasBrace) {\n              parseExpectedJSDoc(19);\n            }\n            const result = factory2.createJSDocTypeExpression(type);\n            fixupParentReferences(result);\n            return finishNode(result, pos);\n          }\n          JSDocParser2.parseJSDocTypeExpression = parseJSDocTypeExpression;\n          function parseJSDocNameReference() {\n            const pos = getNodePos();\n            const hasBrace = parseOptional(18);\n            const p2 = getNodePos();\n            let entityName = parseEntityName(false);\n            while (token() === 80) {\n              reScanHashToken();\n              nextTokenJSDoc();\n              entityName = finishNode(factory2.createJSDocMemberName(entityName, parseIdentifier()), p2);\n            }\n            if (hasBrace) {\n              parseExpectedJSDoc(19);\n            }\n            const result = factory2.createJSDocNameReference(entityName);\n            fixupParentReferences(result);\n            return finishNode(result, pos);\n          }\n          JSDocParser2.parseJSDocNameReference = parseJSDocNameReference;\n          function parseIsolatedJSDocComment2(content, start, length2) {\n            initializeState(\"\", content, 99, void 0, 1);\n            const jsDoc = doInsideOfContext(8388608, () => parseJSDocCommentWorker(start, length2));\n            const sourceFile = { languageVariant: 0, text: content };\n            const diagnostics = attachFileToDiagnostics(parseDiagnostics, sourceFile);\n            clearState();\n            return jsDoc ? { jsDoc, diagnostics } : void 0;\n          }\n          JSDocParser2.parseIsolatedJSDocComment = parseIsolatedJSDocComment2;\n          function parseJSDocComment(parent2, start, length2) {\n            const saveToken = currentToken;\n            const saveParseDiagnosticsLength = parseDiagnostics.length;\n            const saveParseErrorBeforeNextFinishedNode = parseErrorBeforeNextFinishedNode;\n            const comment = doInsideOfContext(8388608, () => parseJSDocCommentWorker(start, length2));\n            setParent(comment, parent2);\n            if (contextFlags & 262144) {\n              if (!jsDocDiagnostics) {\n                jsDocDiagnostics = [];\n              }\n              jsDocDiagnostics.push(...parseDiagnostics);\n            }\n            currentToken = saveToken;\n            parseDiagnostics.length = saveParseDiagnosticsLength;\n            parseErrorBeforeNextFinishedNode = saveParseErrorBeforeNextFinishedNode;\n            return comment;\n          }\n          JSDocParser2.parseJSDocComment = parseJSDocComment;\n          let JSDocState;\n          ((JSDocState2) => {\n            JSDocState2[JSDocState2[\"BeginningOfLine\"] = 0] = \"BeginningOfLine\";\n            JSDocState2[JSDocState2[\"SawAsterisk\"] = 1] = \"SawAsterisk\";\n            JSDocState2[JSDocState2[\"SavingComments\"] = 2] = \"SavingComments\";\n            JSDocState2[JSDocState2[\"SavingBackticks\"] = 3] = \"SavingBackticks\";\n          })(JSDocState || (JSDocState = {}));\n          let PropertyLikeParse;\n          ((PropertyLikeParse2) => {\n            PropertyLikeParse2[PropertyLikeParse2[\"Property\"] = 1] = \"Property\";\n            PropertyLikeParse2[PropertyLikeParse2[\"Parameter\"] = 2] = \"Parameter\";\n            PropertyLikeParse2[PropertyLikeParse2[\"CallbackParameter\"] = 4] = \"CallbackParameter\";\n          })(PropertyLikeParse || (PropertyLikeParse = {}));\n          function parseJSDocCommentWorker(start = 0, length2) {\n            const content = sourceText;\n            const end = length2 === void 0 ? content.length : start + length2;\n            length2 = end - start;\n            Debug.assert(start >= 0);\n            Debug.assert(start <= end);\n            Debug.assert(end <= content.length);\n            if (!isJSDocLikeText(content, start)) {\n              return void 0;\n            }\n            let tags;\n            let tagsPos;\n            let tagsEnd;\n            let linkEnd;\n            let commentsPos;\n            let comments = [];\n            const parts = [];\n            return scanner2.scanRange(start + 3, length2 - 5, () => {\n              let state = 1;\n              let margin;\n              let indent2 = start - (content.lastIndexOf(\"\\n\", start) + 1) + 4;\n              function pushComment(text) {\n                if (!margin) {\n                  margin = indent2;\n                }\n                comments.push(text);\n                indent2 += text.length;\n              }\n              nextTokenJSDoc();\n              while (parseOptionalJsdoc(5))\n                ;\n              if (parseOptionalJsdoc(4)) {\n                state = 0;\n                indent2 = 0;\n              }\n              loop:\n                while (true) {\n                  switch (token()) {\n                    case 59:\n                      if (state === 0 || state === 1) {\n                        removeTrailingWhitespace(comments);\n                        if (!commentsPos)\n                          commentsPos = getNodePos();\n                        addTag(parseTag(indent2));\n                        state = 0;\n                        margin = void 0;\n                      } else {\n                        pushComment(scanner2.getTokenText());\n                      }\n                      break;\n                    case 4:\n                      comments.push(scanner2.getTokenText());\n                      state = 0;\n                      indent2 = 0;\n                      break;\n                    case 41:\n                      const asterisk = scanner2.getTokenText();\n                      if (state === 1 || state === 2) {\n                        state = 2;\n                        pushComment(asterisk);\n                      } else {\n                        state = 1;\n                        indent2 += asterisk.length;\n                      }\n                      break;\n                    case 5:\n                      const whitespace = scanner2.getTokenText();\n                      if (state === 2) {\n                        comments.push(whitespace);\n                      } else if (margin !== void 0 && indent2 + whitespace.length > margin) {\n                        comments.push(whitespace.slice(margin - indent2));\n                      }\n                      indent2 += whitespace.length;\n                      break;\n                    case 1:\n                      break loop;\n                    case 18:\n                      state = 2;\n                      const commentEnd = scanner2.getStartPos();\n                      const linkStart = scanner2.getTextPos() - 1;\n                      const link = parseJSDocLink(linkStart);\n                      if (link) {\n                        if (!linkEnd) {\n                          removeLeadingNewlines(comments);\n                        }\n                        parts.push(finishNode(factory2.createJSDocText(comments.join(\"\")), linkEnd != null ? linkEnd : start, commentEnd));\n                        parts.push(link);\n                        comments = [];\n                        linkEnd = scanner2.getTextPos();\n                        break;\n                      }\n                    default:\n                      state = 2;\n                      pushComment(scanner2.getTokenText());\n                      break;\n                  }\n                  nextTokenJSDoc();\n                }\n              removeTrailingWhitespace(comments);\n              if (parts.length && comments.length) {\n                parts.push(finishNode(factory2.createJSDocText(comments.join(\"\")), linkEnd != null ? linkEnd : start, commentsPos));\n              }\n              if (parts.length && tags)\n                Debug.assertIsDefined(commentsPos, \"having parsed tags implies that the end of the comment span should be set\");\n              const tagsArray = tags && createNodeArray(tags, tagsPos, tagsEnd);\n              return finishNode(factory2.createJSDocComment(parts.length ? createNodeArray(parts, start, commentsPos) : comments.length ? comments.join(\"\") : void 0, tagsArray), start, end);\n            });\n            function removeLeadingNewlines(comments2) {\n              while (comments2.length && (comments2[0] === \"\\n\" || comments2[0] === \"\\r\")) {\n                comments2.shift();\n              }\n            }\n            function removeTrailingWhitespace(comments2) {\n              while (comments2.length && comments2[comments2.length - 1].trim() === \"\") {\n                comments2.pop();\n              }\n            }\n            function isNextNonwhitespaceTokenEndOfFile() {\n              while (true) {\n                nextTokenJSDoc();\n                if (token() === 1) {\n                  return true;\n                }\n                if (!(token() === 5 || token() === 4)) {\n                  return false;\n                }\n              }\n            }\n            function skipWhitespace() {\n              if (token() === 5 || token() === 4) {\n                if (lookAhead(isNextNonwhitespaceTokenEndOfFile)) {\n                  return;\n                }\n              }\n              while (token() === 5 || token() === 4) {\n                nextTokenJSDoc();\n              }\n            }\n            function skipWhitespaceOrAsterisk() {\n              if (token() === 5 || token() === 4) {\n                if (lookAhead(isNextNonwhitespaceTokenEndOfFile)) {\n                  return \"\";\n                }\n              }\n              let precedingLineBreak = scanner2.hasPrecedingLineBreak();\n              let seenLineBreak = false;\n              let indentText = \"\";\n              while (precedingLineBreak && token() === 41 || token() === 5 || token() === 4) {\n                indentText += scanner2.getTokenText();\n                if (token() === 4) {\n                  precedingLineBreak = true;\n                  seenLineBreak = true;\n                  indentText = \"\";\n                } else if (token() === 41) {\n                  precedingLineBreak = false;\n                }\n                nextTokenJSDoc();\n              }\n              return seenLineBreak ? indentText : \"\";\n            }\n            function parseTag(margin) {\n              Debug.assert(token() === 59);\n              const start2 = scanner2.getTokenPos();\n              nextTokenJSDoc();\n              const tagName = parseJSDocIdentifierName(void 0);\n              const indentText = skipWhitespaceOrAsterisk();\n              let tag;\n              switch (tagName.escapedText) {\n                case \"author\":\n                  tag = parseAuthorTag(start2, tagName, margin, indentText);\n                  break;\n                case \"implements\":\n                  tag = parseImplementsTag(start2, tagName, margin, indentText);\n                  break;\n                case \"augments\":\n                case \"extends\":\n                  tag = parseAugmentsTag(start2, tagName, margin, indentText);\n                  break;\n                case \"class\":\n                case \"constructor\":\n                  tag = parseSimpleTag(start2, factory2.createJSDocClassTag, tagName, margin, indentText);\n                  break;\n                case \"public\":\n                  tag = parseSimpleTag(start2, factory2.createJSDocPublicTag, tagName, margin, indentText);\n                  break;\n                case \"private\":\n                  tag = parseSimpleTag(start2, factory2.createJSDocPrivateTag, tagName, margin, indentText);\n                  break;\n                case \"protected\":\n                  tag = parseSimpleTag(start2, factory2.createJSDocProtectedTag, tagName, margin, indentText);\n                  break;\n                case \"readonly\":\n                  tag = parseSimpleTag(start2, factory2.createJSDocReadonlyTag, tagName, margin, indentText);\n                  break;\n                case \"override\":\n                  tag = parseSimpleTag(start2, factory2.createJSDocOverrideTag, tagName, margin, indentText);\n                  break;\n                case \"deprecated\":\n                  hasDeprecatedTag = true;\n                  tag = parseSimpleTag(start2, factory2.createJSDocDeprecatedTag, tagName, margin, indentText);\n                  break;\n                case \"this\":\n                  tag = parseThisTag(start2, tagName, margin, indentText);\n                  break;\n                case \"enum\":\n                  tag = parseEnumTag(start2, tagName, margin, indentText);\n                  break;\n                case \"arg\":\n                case \"argument\":\n                case \"param\":\n                  return parseParameterOrPropertyTag(start2, tagName, 2, margin);\n                case \"return\":\n                case \"returns\":\n                  tag = parseReturnTag(start2, tagName, margin, indentText);\n                  break;\n                case \"template\":\n                  tag = parseTemplateTag(start2, tagName, margin, indentText);\n                  break;\n                case \"type\":\n                  tag = parseTypeTag(start2, tagName, margin, indentText);\n                  break;\n                case \"typedef\":\n                  tag = parseTypedefTag(start2, tagName, margin, indentText);\n                  break;\n                case \"callback\":\n                  tag = parseCallbackTag(start2, tagName, margin, indentText);\n                  break;\n                case \"overload\":\n                  tag = parseOverloadTag(start2, tagName, margin, indentText);\n                  break;\n                case \"satisfies\":\n                  tag = parseSatisfiesTag(start2, tagName, margin, indentText);\n                  break;\n                case \"see\":\n                  tag = parseSeeTag(start2, tagName, margin, indentText);\n                  break;\n                case \"exception\":\n                case \"throws\":\n                  tag = parseThrowsTag(start2, tagName, margin, indentText);\n                  break;\n                default:\n                  tag = parseUnknownTag(start2, tagName, margin, indentText);\n                  break;\n              }\n              return tag;\n            }\n            function parseTrailingTagComments(pos, end2, margin, indentText) {\n              if (!indentText) {\n                margin += end2 - pos;\n              }\n              return parseTagComments(margin, indentText.slice(margin));\n            }\n            function parseTagComments(indent2, initialMargin) {\n              const commentsPos2 = getNodePos();\n              let comments2 = [];\n              const parts2 = [];\n              let linkEnd2;\n              let state = 0;\n              let previousWhitespace = true;\n              let margin;\n              function pushComment(text) {\n                if (!margin) {\n                  margin = indent2;\n                }\n                comments2.push(text);\n                indent2 += text.length;\n              }\n              if (initialMargin !== void 0) {\n                if (initialMargin !== \"\") {\n                  pushComment(initialMargin);\n                }\n                state = 1;\n              }\n              let tok = token();\n              loop:\n                while (true) {\n                  switch (tok) {\n                    case 4:\n                      state = 0;\n                      comments2.push(scanner2.getTokenText());\n                      indent2 = 0;\n                      break;\n                    case 59:\n                      if (state === 3 || state === 2 && (!previousWhitespace || lookAhead(isNextJSDocTokenWhitespace))) {\n                        comments2.push(scanner2.getTokenText());\n                        break;\n                      }\n                      scanner2.setTextPos(scanner2.getTextPos() - 1);\n                    case 1:\n                      break loop;\n                    case 5:\n                      if (state === 2 || state === 3) {\n                        pushComment(scanner2.getTokenText());\n                      } else {\n                        const whitespace = scanner2.getTokenText();\n                        if (margin !== void 0 && indent2 + whitespace.length > margin) {\n                          comments2.push(whitespace.slice(margin - indent2));\n                        }\n                        indent2 += whitespace.length;\n                      }\n                      break;\n                    case 18:\n                      state = 2;\n                      const commentEnd = scanner2.getStartPos();\n                      const linkStart = scanner2.getTextPos() - 1;\n                      const link = parseJSDocLink(linkStart);\n                      if (link) {\n                        parts2.push(finishNode(factory2.createJSDocText(comments2.join(\"\")), linkEnd2 != null ? linkEnd2 : commentsPos2, commentEnd));\n                        parts2.push(link);\n                        comments2 = [];\n                        linkEnd2 = scanner2.getTextPos();\n                      } else {\n                        pushComment(scanner2.getTokenText());\n                      }\n                      break;\n                    case 61:\n                      if (state === 3) {\n                        state = 2;\n                      } else {\n                        state = 3;\n                      }\n                      pushComment(scanner2.getTokenText());\n                      break;\n                    case 41:\n                      if (state === 0) {\n                        state = 1;\n                        indent2 += 1;\n                        break;\n                      }\n                    default:\n                      if (state !== 3) {\n                        state = 2;\n                      }\n                      pushComment(scanner2.getTokenText());\n                      break;\n                  }\n                  previousWhitespace = token() === 5;\n                  tok = nextTokenJSDoc();\n                }\n              removeLeadingNewlines(comments2);\n              removeTrailingWhitespace(comments2);\n              if (parts2.length) {\n                if (comments2.length) {\n                  parts2.push(finishNode(factory2.createJSDocText(comments2.join(\"\")), linkEnd2 != null ? linkEnd2 : commentsPos2));\n                }\n                return createNodeArray(parts2, commentsPos2, scanner2.getTextPos());\n              } else if (comments2.length) {\n                return comments2.join(\"\");\n              }\n            }\n            function isNextJSDocTokenWhitespace() {\n              const next = nextTokenJSDoc();\n              return next === 5 || next === 4;\n            }\n            function parseJSDocLink(start2) {\n              const linkType = tryParse(parseJSDocLinkPrefix);\n              if (!linkType) {\n                return void 0;\n              }\n              nextTokenJSDoc();\n              skipWhitespace();\n              const p2 = getNodePos();\n              let name = tokenIsIdentifierOrKeyword(token()) ? parseEntityName(true) : void 0;\n              if (name) {\n                while (token() === 80) {\n                  reScanHashToken();\n                  nextTokenJSDoc();\n                  name = finishNode(factory2.createJSDocMemberName(name, parseIdentifier()), p2);\n                }\n              }\n              const text = [];\n              while (token() !== 19 && token() !== 4 && token() !== 1) {\n                text.push(scanner2.getTokenText());\n                nextTokenJSDoc();\n              }\n              const create2 = linkType === \"link\" ? factory2.createJSDocLink : linkType === \"linkcode\" ? factory2.createJSDocLinkCode : factory2.createJSDocLinkPlain;\n              return finishNode(create2(name, text.join(\"\")), start2, scanner2.getTextPos());\n            }\n            function parseJSDocLinkPrefix() {\n              skipWhitespaceOrAsterisk();\n              if (token() === 18 && nextTokenJSDoc() === 59 && tokenIsIdentifierOrKeyword(nextTokenJSDoc())) {\n                const kind = scanner2.getTokenValue();\n                if (isJSDocLinkTag(kind))\n                  return kind;\n              }\n            }\n            function isJSDocLinkTag(kind) {\n              return kind === \"link\" || kind === \"linkcode\" || kind === \"linkplain\";\n            }\n            function parseUnknownTag(start2, tagName, indent2, indentText) {\n              return finishNode(factory2.createJSDocUnknownTag(tagName, parseTrailingTagComments(start2, getNodePos(), indent2, indentText)), start2);\n            }\n            function addTag(tag) {\n              if (!tag) {\n                return;\n              }\n              if (!tags) {\n                tags = [tag];\n                tagsPos = tag.pos;\n              } else {\n                tags.push(tag);\n              }\n              tagsEnd = tag.end;\n            }\n            function tryParseTypeExpression() {\n              skipWhitespaceOrAsterisk();\n              return token() === 18 ? parseJSDocTypeExpression() : void 0;\n            }\n            function parseBracketNameInPropertyAndParamTag() {\n              const isBracketed = parseOptionalJsdoc(22);\n              if (isBracketed) {\n                skipWhitespace();\n              }\n              const isBackquoted = parseOptionalJsdoc(61);\n              const name = parseJSDocEntityName();\n              if (isBackquoted) {\n                parseExpectedTokenJSDoc(61);\n              }\n              if (isBracketed) {\n                skipWhitespace();\n                if (parseOptionalToken(63)) {\n                  parseExpression();\n                }\n                parseExpected(23);\n              }\n              return { name, isBracketed };\n            }\n            function isObjectOrObjectArrayTypeReference(node) {\n              switch (node.kind) {\n                case 149:\n                  return true;\n                case 185:\n                  return isObjectOrObjectArrayTypeReference(node.elementType);\n                default:\n                  return isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === \"Object\" && !node.typeArguments;\n              }\n            }\n            function parseParameterOrPropertyTag(start2, tagName, target, indent2) {\n              let typeExpression = tryParseTypeExpression();\n              let isNameFirst = !typeExpression;\n              skipWhitespaceOrAsterisk();\n              const { name, isBracketed } = parseBracketNameInPropertyAndParamTag();\n              const indentText = skipWhitespaceOrAsterisk();\n              if (isNameFirst && !lookAhead(parseJSDocLinkPrefix)) {\n                typeExpression = tryParseTypeExpression();\n              }\n              const comment = parseTrailingTagComments(start2, getNodePos(), indent2, indentText);\n              const nestedTypeLiteral = target !== 4 && parseNestedTypeLiteral(typeExpression, name, target, indent2);\n              if (nestedTypeLiteral) {\n                typeExpression = nestedTypeLiteral;\n                isNameFirst = true;\n              }\n              const result = target === 1 ? factory2.createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) : factory2.createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment);\n              return finishNode(result, start2);\n            }\n            function parseNestedTypeLiteral(typeExpression, name, target, indent2) {\n              if (typeExpression && isObjectOrObjectArrayTypeReference(typeExpression.type)) {\n                const pos = getNodePos();\n                let child;\n                let children;\n                while (child = tryParse(() => parseChildParameterOrPropertyTag(target, indent2, name))) {\n                  if (child.kind === 344 || child.kind === 351) {\n                    children = append(children, child);\n                  }\n                }\n                if (children) {\n                  const literal = finishNode(factory2.createJSDocTypeLiteral(children, typeExpression.type.kind === 185), pos);\n                  return finishNode(factory2.createJSDocTypeExpression(literal), pos);\n                }\n              }\n            }\n            function parseReturnTag(start2, tagName, indent2, indentText) {\n              if (some(tags, isJSDocReturnTag)) {\n                parseErrorAt(tagName.pos, scanner2.getTokenPos(), Diagnostics._0_tag_already_specified, tagName.escapedText);\n              }\n              const typeExpression = tryParseTypeExpression();\n              return finishNode(factory2.createJSDocReturnTag(tagName, typeExpression, parseTrailingTagComments(start2, getNodePos(), indent2, indentText)), start2);\n            }\n            function parseTypeTag(start2, tagName, indent2, indentText) {\n              if (some(tags, isJSDocTypeTag)) {\n                parseErrorAt(tagName.pos, scanner2.getTokenPos(), Diagnostics._0_tag_already_specified, tagName.escapedText);\n              }\n              const typeExpression = parseJSDocTypeExpression(true);\n              const comments2 = indent2 !== void 0 && indentText !== void 0 ? parseTrailingTagComments(start2, getNodePos(), indent2, indentText) : void 0;\n              return finishNode(factory2.createJSDocTypeTag(tagName, typeExpression, comments2), start2);\n            }\n            function parseSeeTag(start2, tagName, indent2, indentText) {\n              const isMarkdownOrJSDocLink = token() === 22 || lookAhead(() => nextTokenJSDoc() === 59 && tokenIsIdentifierOrKeyword(nextTokenJSDoc()) && isJSDocLinkTag(scanner2.getTokenValue()));\n              const nameExpression = isMarkdownOrJSDocLink ? void 0 : parseJSDocNameReference();\n              const comments2 = indent2 !== void 0 && indentText !== void 0 ? parseTrailingTagComments(start2, getNodePos(), indent2, indentText) : void 0;\n              return finishNode(factory2.createJSDocSeeTag(tagName, nameExpression, comments2), start2);\n            }\n            function parseThrowsTag(start2, tagName, indent2, indentText) {\n              const typeExpression = tryParseTypeExpression();\n              const comment = parseTrailingTagComments(start2, getNodePos(), indent2, indentText);\n              return finishNode(factory2.createJSDocThrowsTag(tagName, typeExpression, comment), start2);\n            }\n            function parseAuthorTag(start2, tagName, indent2, indentText) {\n              const commentStart = getNodePos();\n              const textOnly = parseAuthorNameAndEmail();\n              let commentEnd = scanner2.getStartPos();\n              const comments2 = parseTrailingTagComments(start2, commentEnd, indent2, indentText);\n              if (!comments2) {\n                commentEnd = scanner2.getStartPos();\n              }\n              const allParts = typeof comments2 !== \"string\" ? createNodeArray(concatenate([finishNode(textOnly, commentStart, commentEnd)], comments2), commentStart) : textOnly.text + comments2;\n              return finishNode(factory2.createJSDocAuthorTag(tagName, allParts), start2);\n            }\n            function parseAuthorNameAndEmail() {\n              const comments2 = [];\n              let inEmail = false;\n              let token2 = scanner2.getToken();\n              while (token2 !== 1 && token2 !== 4) {\n                if (token2 === 29) {\n                  inEmail = true;\n                } else if (token2 === 59 && !inEmail) {\n                  break;\n                } else if (token2 === 31 && inEmail) {\n                  comments2.push(scanner2.getTokenText());\n                  scanner2.setTextPos(scanner2.getTokenPos() + 1);\n                  break;\n                }\n                comments2.push(scanner2.getTokenText());\n                token2 = nextTokenJSDoc();\n              }\n              return factory2.createJSDocText(comments2.join(\"\"));\n            }\n            function parseImplementsTag(start2, tagName, margin, indentText) {\n              const className = parseExpressionWithTypeArgumentsForAugments();\n              return finishNode(factory2.createJSDocImplementsTag(tagName, className, parseTrailingTagComments(start2, getNodePos(), margin, indentText)), start2);\n            }\n            function parseAugmentsTag(start2, tagName, margin, indentText) {\n              const className = parseExpressionWithTypeArgumentsForAugments();\n              return finishNode(factory2.createJSDocAugmentsTag(tagName, className, parseTrailingTagComments(start2, getNodePos(), margin, indentText)), start2);\n            }\n            function parseSatisfiesTag(start2, tagName, margin, indentText) {\n              const typeExpression = parseJSDocTypeExpression(false);\n              const comments2 = margin !== void 0 && indentText !== void 0 ? parseTrailingTagComments(start2, getNodePos(), margin, indentText) : void 0;\n              return finishNode(factory2.createJSDocSatisfiesTag(tagName, typeExpression, comments2), start2);\n            }\n            function parseExpressionWithTypeArgumentsForAugments() {\n              const usedBrace = parseOptional(18);\n              const pos = getNodePos();\n              const expression = parsePropertyAccessEntityNameExpression();\n              const typeArguments = tryParseTypeArguments();\n              const node = factory2.createExpressionWithTypeArguments(expression, typeArguments);\n              const res = finishNode(node, pos);\n              if (usedBrace) {\n                parseExpected(19);\n              }\n              return res;\n            }\n            function parsePropertyAccessEntityNameExpression() {\n              const pos = getNodePos();\n              let node = parseJSDocIdentifierName();\n              while (parseOptional(24)) {\n                const name = parseJSDocIdentifierName();\n                node = finishNode(factoryCreatePropertyAccessExpression(node, name), pos);\n              }\n              return node;\n            }\n            function parseSimpleTag(start2, createTag, tagName, margin, indentText) {\n              return finishNode(createTag(tagName, parseTrailingTagComments(start2, getNodePos(), margin, indentText)), start2);\n            }\n            function parseThisTag(start2, tagName, margin, indentText) {\n              const typeExpression = parseJSDocTypeExpression(true);\n              skipWhitespace();\n              return finishNode(factory2.createJSDocThisTag(tagName, typeExpression, parseTrailingTagComments(start2, getNodePos(), margin, indentText)), start2);\n            }\n            function parseEnumTag(start2, tagName, margin, indentText) {\n              const typeExpression = parseJSDocTypeExpression(true);\n              skipWhitespace();\n              return finishNode(factory2.createJSDocEnumTag(tagName, typeExpression, parseTrailingTagComments(start2, getNodePos(), margin, indentText)), start2);\n            }\n            function parseTypedefTag(start2, tagName, indent2, indentText) {\n              var _a2;\n              let typeExpression = tryParseTypeExpression();\n              skipWhitespaceOrAsterisk();\n              const fullName = parseJSDocTypeNameWithNamespace();\n              skipWhitespace();\n              let comment = parseTagComments(indent2);\n              let end2;\n              if (!typeExpression || isObjectOrObjectArrayTypeReference(typeExpression.type)) {\n                let child;\n                let childTypeTag;\n                let jsDocPropertyTags;\n                let hasChildren = false;\n                while (child = tryParse(() => parseChildPropertyTag(indent2))) {\n                  hasChildren = true;\n                  if (child.kind === 347) {\n                    if (childTypeTag) {\n                      const lastError = parseErrorAtCurrentToken(Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);\n                      if (lastError) {\n                        addRelatedInfo(lastError, createDetachedDiagnostic(fileName, 0, 0, Diagnostics.The_tag_was_first_specified_here));\n                      }\n                      break;\n                    } else {\n                      childTypeTag = child;\n                    }\n                  } else {\n                    jsDocPropertyTags = append(jsDocPropertyTags, child);\n                  }\n                }\n                if (hasChildren) {\n                  const isArrayType = typeExpression && typeExpression.type.kind === 185;\n                  const jsdocTypeLiteral = factory2.createJSDocTypeLiteral(jsDocPropertyTags, isArrayType);\n                  typeExpression = childTypeTag && childTypeTag.typeExpression && !isObjectOrObjectArrayTypeReference(childTypeTag.typeExpression.type) ? childTypeTag.typeExpression : finishNode(jsdocTypeLiteral, start2);\n                  end2 = typeExpression.end;\n                }\n              }\n              end2 = end2 || comment !== void 0 ? getNodePos() : ((_a2 = fullName != null ? fullName : typeExpression) != null ? _a2 : tagName).end;\n              if (!comment) {\n                comment = parseTrailingTagComments(start2, end2, indent2, indentText);\n              }\n              const typedefTag = factory2.createJSDocTypedefTag(tagName, typeExpression, fullName, comment);\n              return finishNode(typedefTag, start2, end2);\n            }\n            function parseJSDocTypeNameWithNamespace(nested) {\n              const pos = scanner2.getTokenPos();\n              if (!tokenIsIdentifierOrKeyword(token())) {\n                return void 0;\n              }\n              const typeNameOrNamespaceName = parseJSDocIdentifierName();\n              if (parseOptional(24)) {\n                const body = parseJSDocTypeNameWithNamespace(true);\n                const jsDocNamespaceNode = factory2.createModuleDeclaration(void 0, typeNameOrNamespaceName, body, nested ? 4 : void 0);\n                return finishNode(jsDocNamespaceNode, pos);\n              }\n              if (nested) {\n                typeNameOrNamespaceName.flags |= 2048;\n              }\n              return typeNameOrNamespaceName;\n            }\n            function parseCallbackTagParameters(indent2) {\n              const pos = getNodePos();\n              let child;\n              let parameters;\n              while (child = tryParse(() => parseChildParameterOrPropertyTag(4, indent2))) {\n                parameters = append(parameters, child);\n              }\n              return createNodeArray(parameters || [], pos);\n            }\n            function parseJSDocSignature(start2, indent2) {\n              const parameters = parseCallbackTagParameters(indent2);\n              const returnTag = tryParse(() => {\n                if (parseOptionalJsdoc(59)) {\n                  const tag = parseTag(indent2);\n                  if (tag && tag.kind === 345) {\n                    return tag;\n                  }\n                }\n              });\n              return finishNode(factory2.createJSDocSignature(void 0, parameters, returnTag), start2);\n            }\n            function parseCallbackTag(start2, tagName, indent2, indentText) {\n              const fullName = parseJSDocTypeNameWithNamespace();\n              skipWhitespace();\n              let comment = parseTagComments(indent2);\n              const typeExpression = parseJSDocSignature(start2, indent2);\n              if (!comment) {\n                comment = parseTrailingTagComments(start2, getNodePos(), indent2, indentText);\n              }\n              const end2 = comment !== void 0 ? getNodePos() : typeExpression.end;\n              return finishNode(factory2.createJSDocCallbackTag(tagName, typeExpression, fullName, comment), start2, end2);\n            }\n            function parseOverloadTag(start2, tagName, indent2, indentText) {\n              skipWhitespace();\n              let comment = parseTagComments(indent2);\n              const typeExpression = parseJSDocSignature(start2, indent2);\n              if (!comment) {\n                comment = parseTrailingTagComments(start2, getNodePos(), indent2, indentText);\n              }\n              const end2 = comment !== void 0 ? getNodePos() : typeExpression.end;\n              return finishNode(factory2.createJSDocOverloadTag(tagName, typeExpression, comment), start2, end2);\n            }\n            function escapedTextsEqual(a, b) {\n              while (!isIdentifier(a) || !isIdentifier(b)) {\n                if (!isIdentifier(a) && !isIdentifier(b) && a.right.escapedText === b.right.escapedText) {\n                  a = a.left;\n                  b = b.left;\n                } else {\n                  return false;\n                }\n              }\n              return a.escapedText === b.escapedText;\n            }\n            function parseChildPropertyTag(indent2) {\n              return parseChildParameterOrPropertyTag(1, indent2);\n            }\n            function parseChildParameterOrPropertyTag(target, indent2, name) {\n              let canParseTag = true;\n              let seenAsterisk = false;\n              while (true) {\n                switch (nextTokenJSDoc()) {\n                  case 59:\n                    if (canParseTag) {\n                      const child = tryParseChildTag(target, indent2);\n                      if (child && (child.kind === 344 || child.kind === 351) && target !== 4 && name && (isIdentifier(child.name) || !escapedTextsEqual(name, child.name.left))) {\n                        return false;\n                      }\n                      return child;\n                    }\n                    seenAsterisk = false;\n                    break;\n                  case 4:\n                    canParseTag = true;\n                    seenAsterisk = false;\n                    break;\n                  case 41:\n                    if (seenAsterisk) {\n                      canParseTag = false;\n                    }\n                    seenAsterisk = true;\n                    break;\n                  case 79:\n                    canParseTag = false;\n                    break;\n                  case 1:\n                    return false;\n                }\n              }\n            }\n            function tryParseChildTag(target, indent2) {\n              Debug.assert(token() === 59);\n              const start2 = scanner2.getStartPos();\n              nextTokenJSDoc();\n              const tagName = parseJSDocIdentifierName();\n              skipWhitespace();\n              let t;\n              switch (tagName.escapedText) {\n                case \"type\":\n                  return target === 1 && parseTypeTag(start2, tagName);\n                case \"prop\":\n                case \"property\":\n                  t = 1;\n                  break;\n                case \"arg\":\n                case \"argument\":\n                case \"param\":\n                  t = 2 | 4;\n                  break;\n                default:\n                  return false;\n              }\n              if (!(target & t)) {\n                return false;\n              }\n              return parseParameterOrPropertyTag(start2, tagName, target, indent2);\n            }\n            function parseTemplateTagTypeParameter() {\n              const typeParameterPos = getNodePos();\n              const isBracketed = parseOptionalJsdoc(22);\n              if (isBracketed) {\n                skipWhitespace();\n              }\n              const name = parseJSDocIdentifierName(Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);\n              let defaultType;\n              if (isBracketed) {\n                skipWhitespace();\n                parseExpected(63);\n                defaultType = doInsideOfContext(8388608, parseJSDocType);\n                parseExpected(23);\n              }\n              if (nodeIsMissing(name)) {\n                return void 0;\n              }\n              return finishNode(factory2.createTypeParameterDeclaration(void 0, name, void 0, defaultType), typeParameterPos);\n            }\n            function parseTemplateTagTypeParameters() {\n              const pos = getNodePos();\n              const typeParameters = [];\n              do {\n                skipWhitespace();\n                const node = parseTemplateTagTypeParameter();\n                if (node !== void 0) {\n                  typeParameters.push(node);\n                }\n                skipWhitespaceOrAsterisk();\n              } while (parseOptionalJsdoc(27));\n              return createNodeArray(typeParameters, pos);\n            }\n            function parseTemplateTag(start2, tagName, indent2, indentText) {\n              const constraint = token() === 18 ? parseJSDocTypeExpression() : void 0;\n              const typeParameters = parseTemplateTagTypeParameters();\n              return finishNode(factory2.createJSDocTemplateTag(tagName, constraint, typeParameters, parseTrailingTagComments(start2, getNodePos(), indent2, indentText)), start2);\n            }\n            function parseOptionalJsdoc(t) {\n              if (token() === t) {\n                nextTokenJSDoc();\n                return true;\n              }\n              return false;\n            }\n            function parseJSDocEntityName() {\n              let entity = parseJSDocIdentifierName();\n              if (parseOptional(22)) {\n                parseExpected(23);\n              }\n              while (parseOptional(24)) {\n                const name = parseJSDocIdentifierName();\n                if (parseOptional(22)) {\n                  parseExpected(23);\n                }\n                entity = createQualifiedName(entity, name);\n              }\n              return entity;\n            }\n            function parseJSDocIdentifierName(message) {\n              if (!tokenIsIdentifierOrKeyword(token())) {\n                return createMissingNode(79, !message, message || Diagnostics.Identifier_expected);\n              }\n              identifierCount++;\n              const pos = scanner2.getTokenPos();\n              const end2 = scanner2.getTextPos();\n              const originalKeywordKind = token();\n              const text = internIdentifier(scanner2.getTokenValue());\n              const result = finishNode(factoryCreateIdentifier(text, originalKeywordKind), pos, end2);\n              nextTokenJSDoc();\n              return result;\n            }\n          }\n        })(JSDocParser = Parser2.JSDocParser || (Parser2.JSDocParser = {}));\n      })(Parser || (Parser = {}));\n      ((IncrementalParser2) => {\n        function updateSourceFile2(sourceFile, newText, textChangeRange, aggressiveChecks) {\n          aggressiveChecks = aggressiveChecks || Debug.shouldAssert(2);\n          checkChangeRange(sourceFile, newText, textChangeRange, aggressiveChecks);\n          if (textChangeRangeIsUnchanged(textChangeRange)) {\n            return sourceFile;\n          }\n          if (sourceFile.statements.length === 0) {\n            return Parser.parseSourceFile(sourceFile.fileName, newText, sourceFile.languageVersion, void 0, true, sourceFile.scriptKind, sourceFile.setExternalModuleIndicator);\n          }\n          const incrementalSourceFile = sourceFile;\n          Debug.assert(!incrementalSourceFile.hasBeenIncrementallyParsed);\n          incrementalSourceFile.hasBeenIncrementallyParsed = true;\n          Parser.fixupParentReferences(incrementalSourceFile);\n          const oldText = sourceFile.text;\n          const syntaxCursor = createSyntaxCursor(sourceFile);\n          const changeRange = extendToAffectedRange(sourceFile, textChangeRange);\n          checkChangeRange(sourceFile, newText, changeRange, aggressiveChecks);\n          Debug.assert(changeRange.span.start <= textChangeRange.span.start);\n          Debug.assert(textSpanEnd(changeRange.span) === textSpanEnd(textChangeRange.span));\n          Debug.assert(textSpanEnd(textChangeRangeNewSpan(changeRange)) === textSpanEnd(textChangeRangeNewSpan(textChangeRange)));\n          const delta = textChangeRangeNewSpan(changeRange).length - changeRange.span.length;\n          updateTokenPositionsAndMarkElements(incrementalSourceFile, changeRange.span.start, textSpanEnd(changeRange.span), textSpanEnd(textChangeRangeNewSpan(changeRange)), delta, oldText, newText, aggressiveChecks);\n          const result = Parser.parseSourceFile(sourceFile.fileName, newText, sourceFile.languageVersion, syntaxCursor, true, sourceFile.scriptKind, sourceFile.setExternalModuleIndicator);\n          result.commentDirectives = getNewCommentDirectives(sourceFile.commentDirectives, result.commentDirectives, changeRange.span.start, textSpanEnd(changeRange.span), delta, oldText, newText, aggressiveChecks);\n          result.impliedNodeFormat = sourceFile.impliedNodeFormat;\n          return result;\n        }\n        IncrementalParser2.updateSourceFile = updateSourceFile2;\n        function getNewCommentDirectives(oldDirectives, newDirectives, changeStart, changeRangeOldEnd, delta, oldText, newText, aggressiveChecks) {\n          if (!oldDirectives)\n            return newDirectives;\n          let commentDirectives;\n          let addedNewlyScannedDirectives = false;\n          for (const directive of oldDirectives) {\n            const { range, type } = directive;\n            if (range.end < changeStart) {\n              commentDirectives = append(commentDirectives, directive);\n            } else if (range.pos > changeRangeOldEnd) {\n              addNewlyScannedDirectives();\n              const updatedDirective = {\n                range: { pos: range.pos + delta, end: range.end + delta },\n                type\n              };\n              commentDirectives = append(commentDirectives, updatedDirective);\n              if (aggressiveChecks) {\n                Debug.assert(oldText.substring(range.pos, range.end) === newText.substring(updatedDirective.range.pos, updatedDirective.range.end));\n              }\n            }\n          }\n          addNewlyScannedDirectives();\n          return commentDirectives;\n          function addNewlyScannedDirectives() {\n            if (addedNewlyScannedDirectives)\n              return;\n            addedNewlyScannedDirectives = true;\n            if (!commentDirectives) {\n              commentDirectives = newDirectives;\n            } else if (newDirectives) {\n              commentDirectives.push(...newDirectives);\n            }\n          }\n        }\n        function moveElementEntirelyPastChangeRange(element, isArray2, delta, oldText, newText, aggressiveChecks) {\n          if (isArray2) {\n            visitArray2(element);\n          } else {\n            visitNode3(element);\n          }\n          return;\n          function visitNode3(node) {\n            let text = \"\";\n            if (aggressiveChecks && shouldCheckNode(node)) {\n              text = oldText.substring(node.pos, node.end);\n            }\n            if (node._children) {\n              node._children = void 0;\n            }\n            setTextRangePosEnd(node, node.pos + delta, node.end + delta);\n            if (aggressiveChecks && shouldCheckNode(node)) {\n              Debug.assert(text === newText.substring(node.pos, node.end));\n            }\n            forEachChild(node, visitNode3, visitArray2);\n            if (hasJSDocNodes(node)) {\n              for (const jsDocComment of node.jsDoc) {\n                visitNode3(jsDocComment);\n              }\n            }\n            checkNodePositions(node, aggressiveChecks);\n          }\n          function visitArray2(array) {\n            array._children = void 0;\n            setTextRangePosEnd(array, array.pos + delta, array.end + delta);\n            for (const node of array) {\n              visitNode3(node);\n            }\n          }\n        }\n        function shouldCheckNode(node) {\n          switch (node.kind) {\n            case 10:\n            case 8:\n            case 79:\n              return true;\n          }\n          return false;\n        }\n        function adjustIntersectingElement(element, changeStart, changeRangeOldEnd, changeRangeNewEnd, delta) {\n          Debug.assert(element.end >= changeStart, \"Adjusting an element that was entirely before the change range\");\n          Debug.assert(element.pos <= changeRangeOldEnd, \"Adjusting an element that was entirely after the change range\");\n          Debug.assert(element.pos <= element.end);\n          const pos = Math.min(element.pos, changeRangeNewEnd);\n          const end = element.end >= changeRangeOldEnd ? element.end + delta : Math.min(element.end, changeRangeNewEnd);\n          Debug.assert(pos <= end);\n          if (element.parent) {\n            Debug.assertGreaterThanOrEqual(pos, element.parent.pos);\n            Debug.assertLessThanOrEqual(end, element.parent.end);\n          }\n          setTextRangePosEnd(element, pos, end);\n        }\n        function checkNodePositions(node, aggressiveChecks) {\n          if (aggressiveChecks) {\n            let pos = node.pos;\n            const visitNode3 = (child) => {\n              Debug.assert(child.pos >= pos);\n              pos = child.end;\n            };\n            if (hasJSDocNodes(node)) {\n              for (const jsDocComment of node.jsDoc) {\n                visitNode3(jsDocComment);\n              }\n            }\n            forEachChild(node, visitNode3);\n            Debug.assert(pos <= node.end);\n          }\n        }\n        function updateTokenPositionsAndMarkElements(sourceFile, changeStart, changeRangeOldEnd, changeRangeNewEnd, delta, oldText, newText, aggressiveChecks) {\n          visitNode3(sourceFile);\n          return;\n          function visitNode3(child) {\n            Debug.assert(child.pos <= child.end);\n            if (child.pos > changeRangeOldEnd) {\n              moveElementEntirelyPastChangeRange(child, false, delta, oldText, newText, aggressiveChecks);\n              return;\n            }\n            const fullEnd = child.end;\n            if (fullEnd >= changeStart) {\n              child.intersectsChange = true;\n              child._children = void 0;\n              adjustIntersectingElement(child, changeStart, changeRangeOldEnd, changeRangeNewEnd, delta);\n              forEachChild(child, visitNode3, visitArray2);\n              if (hasJSDocNodes(child)) {\n                for (const jsDocComment of child.jsDoc) {\n                  visitNode3(jsDocComment);\n                }\n              }\n              checkNodePositions(child, aggressiveChecks);\n              return;\n            }\n            Debug.assert(fullEnd < changeStart);\n          }\n          function visitArray2(array) {\n            Debug.assert(array.pos <= array.end);\n            if (array.pos > changeRangeOldEnd) {\n              moveElementEntirelyPastChangeRange(array, true, delta, oldText, newText, aggressiveChecks);\n              return;\n            }\n            const fullEnd = array.end;\n            if (fullEnd >= changeStart) {\n              array.intersectsChange = true;\n              array._children = void 0;\n              adjustIntersectingElement(array, changeStart, changeRangeOldEnd, changeRangeNewEnd, delta);\n              for (const node of array) {\n                visitNode3(node);\n              }\n              return;\n            }\n            Debug.assert(fullEnd < changeStart);\n          }\n        }\n        function extendToAffectedRange(sourceFile, changeRange) {\n          const maxLookahead = 1;\n          let start = changeRange.span.start;\n          for (let i = 0; start > 0 && i <= maxLookahead; i++) {\n            const nearestNode = findNearestNodeStartingBeforeOrAtPosition(sourceFile, start);\n            Debug.assert(nearestNode.pos <= start);\n            const position = nearestNode.pos;\n            start = Math.max(0, position - 1);\n          }\n          const finalSpan = createTextSpanFromBounds(start, textSpanEnd(changeRange.span));\n          const finalLength = changeRange.newLength + (changeRange.span.start - start);\n          return createTextChangeRange(finalSpan, finalLength);\n        }\n        function findNearestNodeStartingBeforeOrAtPosition(sourceFile, position) {\n          let bestResult = sourceFile;\n          let lastNodeEntirelyBeforePosition;\n          forEachChild(sourceFile, visit);\n          if (lastNodeEntirelyBeforePosition) {\n            const lastChildOfLastEntireNodeBeforePosition = getLastDescendant(lastNodeEntirelyBeforePosition);\n            if (lastChildOfLastEntireNodeBeforePosition.pos > bestResult.pos) {\n              bestResult = lastChildOfLastEntireNodeBeforePosition;\n            }\n          }\n          return bestResult;\n          function getLastDescendant(node) {\n            while (true) {\n              const lastChild = getLastChild(node);\n              if (lastChild) {\n                node = lastChild;\n              } else {\n                return node;\n              }\n            }\n          }\n          function visit(child) {\n            if (nodeIsMissing(child)) {\n              return;\n            }\n            if (child.pos <= position) {\n              if (child.pos >= bestResult.pos) {\n                bestResult = child;\n              }\n              if (position < child.end) {\n                forEachChild(child, visit);\n                return true;\n              } else {\n                Debug.assert(child.end <= position);\n                lastNodeEntirelyBeforePosition = child;\n              }\n            } else {\n              Debug.assert(child.pos > position);\n              return true;\n            }\n          }\n        }\n        function checkChangeRange(sourceFile, newText, textChangeRange, aggressiveChecks) {\n          const oldText = sourceFile.text;\n          if (textChangeRange) {\n            Debug.assert(oldText.length - textChangeRange.span.length + textChangeRange.newLength === newText.length);\n            if (aggressiveChecks || Debug.shouldAssert(3)) {\n              const oldTextPrefix = oldText.substr(0, textChangeRange.span.start);\n              const newTextPrefix = newText.substr(0, textChangeRange.span.start);\n              Debug.assert(oldTextPrefix === newTextPrefix);\n              const oldTextSuffix = oldText.substring(textSpanEnd(textChangeRange.span), oldText.length);\n              const newTextSuffix = newText.substring(textSpanEnd(textChangeRangeNewSpan(textChangeRange)), newText.length);\n              Debug.assert(oldTextSuffix === newTextSuffix);\n            }\n          }\n        }\n        function createSyntaxCursor(sourceFile) {\n          let currentArray = sourceFile.statements;\n          let currentArrayIndex = 0;\n          Debug.assert(currentArrayIndex < currentArray.length);\n          let current = currentArray[currentArrayIndex];\n          let lastQueriedPosition = -1;\n          return {\n            currentNode(position) {\n              if (position !== lastQueriedPosition) {\n                if (current && current.end === position && currentArrayIndex < currentArray.length - 1) {\n                  currentArrayIndex++;\n                  current = currentArray[currentArrayIndex];\n                }\n                if (!current || current.pos !== position) {\n                  findHighestListElementThatStartsAtPosition(position);\n                }\n              }\n              lastQueriedPosition = position;\n              Debug.assert(!current || current.pos === position);\n              return current;\n            }\n          };\n          function findHighestListElementThatStartsAtPosition(position) {\n            currentArray = void 0;\n            currentArrayIndex = -1;\n            current = void 0;\n            forEachChild(sourceFile, visitNode3, visitArray2);\n            return;\n            function visitNode3(node) {\n              if (position >= node.pos && position < node.end) {\n                forEachChild(node, visitNode3, visitArray2);\n                return true;\n              }\n              return false;\n            }\n            function visitArray2(array) {\n              if (position >= array.pos && position < array.end) {\n                for (let i = 0; i < array.length; i++) {\n                  const child = array[i];\n                  if (child) {\n                    if (child.pos === position) {\n                      currentArray = array;\n                      currentArrayIndex = i;\n                      current = child;\n                      return true;\n                    } else {\n                      if (child.pos < position && position < child.end) {\n                        forEachChild(child, visitNode3, visitArray2);\n                        return true;\n                      }\n                    }\n                  }\n                }\n              }\n              return false;\n            }\n          }\n        }\n        IncrementalParser2.createSyntaxCursor = createSyntaxCursor;\n        let InvalidPosition;\n        ((InvalidPosition2) => {\n          InvalidPosition2[InvalidPosition2[\"Value\"] = -1] = \"Value\";\n        })(InvalidPosition || (InvalidPosition = {}));\n      })(IncrementalParser || (IncrementalParser = {}));\n      namedArgRegExCache = /* @__PURE__ */ new Map();\n      tripleSlashXMLCommentStartRegEx = /^\\/\\/\\/\\s*<(\\S+)\\s.*?\\/>/im;\n      singleLinePragmaRegEx = /^\\/\\/\\/?\\s*@(\\S+)\\s*(.*)\\s*$/im;\n    }\n  });\n  function createOptionNameMap(optionDeclarations2) {\n    const optionsNameMap = /* @__PURE__ */ new Map();\n    const shortOptionNames = /* @__PURE__ */ new Map();\n    forEach(optionDeclarations2, (option) => {\n      optionsNameMap.set(option.name.toLowerCase(), option);\n      if (option.shortName) {\n        shortOptionNames.set(option.shortName, option.name);\n      }\n    });\n    return { optionsNameMap, shortOptionNames };\n  }\n  function getOptionsNameMap() {\n    return optionsNameMapCache || (optionsNameMapCache = createOptionNameMap(optionDeclarations));\n  }\n  function createCompilerDiagnosticForInvalidCustomType(opt) {\n    return createDiagnosticForInvalidCustomType(opt, createCompilerDiagnostic);\n  }\n  function createDiagnosticForInvalidCustomType(opt, createDiagnostic) {\n    const namesOfType = arrayFrom(opt.type.keys());\n    const stringNames = (opt.deprecatedKeys ? namesOfType.filter((k) => !opt.deprecatedKeys.has(k)) : namesOfType).map((key) => `'${key}'`).join(\", \");\n    return createDiagnostic(Diagnostics.Argument_for_0_option_must_be_Colon_1, `--${opt.name}`, stringNames);\n  }\n  function parseCustomTypeOption(opt, value, errors) {\n    return convertJsonOptionOfCustomType(opt, trimString(value || \"\"), errors);\n  }\n  function parseListTypeOption(opt, value = \"\", errors) {\n    value = trimString(value);\n    if (startsWith(value, \"-\")) {\n      return void 0;\n    }\n    if (opt.type === \"listOrElement\" && !stringContains(value, \",\")) {\n      return validateJsonOptionValue(opt, value, errors);\n    }\n    if (value === \"\") {\n      return [];\n    }\n    const values = value.split(\",\");\n    switch (opt.element.type) {\n      case \"number\":\n        return mapDefined(values, (v) => validateJsonOptionValue(opt.element, parseInt(v), errors));\n      case \"string\":\n        return mapDefined(values, (v) => validateJsonOptionValue(opt.element, v || \"\", errors));\n      case \"boolean\":\n      case \"object\":\n        return Debug.fail(`List of ${opt.element.type} is not yet supported.`);\n      default:\n        return mapDefined(values, (v) => parseCustomTypeOption(opt.element, v, errors));\n    }\n  }\n  function getOptionName(option) {\n    return option.name;\n  }\n  function createUnknownOptionError(unknownOption, diagnostics, createDiagnostics, unknownOptionErrorText) {\n    var _a2;\n    if ((_a2 = diagnostics.alternateMode) == null ? void 0 : _a2.getOptionsNameMap().optionsNameMap.has(unknownOption.toLowerCase())) {\n      return createDiagnostics(diagnostics.alternateMode.diagnostic, unknownOption);\n    }\n    const possibleOption = getSpellingSuggestion(unknownOption, diagnostics.optionDeclarations, getOptionName);\n    return possibleOption ? createDiagnostics(diagnostics.unknownDidYouMeanDiagnostic, unknownOptionErrorText || unknownOption, possibleOption.name) : createDiagnostics(diagnostics.unknownOptionDiagnostic, unknownOptionErrorText || unknownOption);\n  }\n  function parseCommandLineWorker(diagnostics, commandLine, readFile) {\n    const options = {};\n    let watchOptions;\n    const fileNames = [];\n    const errors = [];\n    parseStrings(commandLine);\n    return {\n      options,\n      watchOptions,\n      fileNames,\n      errors\n    };\n    function parseStrings(args) {\n      let i = 0;\n      while (i < args.length) {\n        const s = args[i];\n        i++;\n        if (s.charCodeAt(0) === 64) {\n          parseResponseFile(s.slice(1));\n        } else if (s.charCodeAt(0) === 45) {\n          const inputOptionName = s.slice(s.charCodeAt(1) === 45 ? 2 : 1);\n          const opt = getOptionDeclarationFromName(diagnostics.getOptionsNameMap, inputOptionName, true);\n          if (opt) {\n            i = parseOptionValue(args, i, diagnostics, opt, options, errors);\n          } else {\n            const watchOpt = getOptionDeclarationFromName(watchOptionsDidYouMeanDiagnostics.getOptionsNameMap, inputOptionName, true);\n            if (watchOpt) {\n              i = parseOptionValue(args, i, watchOptionsDidYouMeanDiagnostics, watchOpt, watchOptions || (watchOptions = {}), errors);\n            } else {\n              errors.push(createUnknownOptionError(inputOptionName, diagnostics, createCompilerDiagnostic, s));\n            }\n          }\n        } else {\n          fileNames.push(s);\n        }\n      }\n    }\n    function parseResponseFile(fileName) {\n      const text = tryReadFile(fileName, readFile || ((fileName2) => sys.readFile(fileName2)));\n      if (!isString(text)) {\n        errors.push(text);\n        return;\n      }\n      const args = [];\n      let pos = 0;\n      while (true) {\n        while (pos < text.length && text.charCodeAt(pos) <= 32)\n          pos++;\n        if (pos >= text.length)\n          break;\n        const start = pos;\n        if (text.charCodeAt(start) === 34) {\n          pos++;\n          while (pos < text.length && text.charCodeAt(pos) !== 34)\n            pos++;\n          if (pos < text.length) {\n            args.push(text.substring(start + 1, pos));\n            pos++;\n          } else {\n            errors.push(createCompilerDiagnostic(Diagnostics.Unterminated_quoted_string_in_response_file_0, fileName));\n          }\n        } else {\n          while (text.charCodeAt(pos) > 32)\n            pos++;\n          args.push(text.substring(start, pos));\n        }\n      }\n      parseStrings(args);\n    }\n  }\n  function parseOptionValue(args, i, diagnostics, opt, options, errors) {\n    if (opt.isTSConfigOnly) {\n      const optValue = args[i];\n      if (optValue === \"null\") {\n        options[opt.name] = void 0;\n        i++;\n      } else if (opt.type === \"boolean\") {\n        if (optValue === \"false\") {\n          options[opt.name] = validateJsonOptionValue(opt, false, errors);\n          i++;\n        } else {\n          if (optValue === \"true\")\n            i++;\n          errors.push(createCompilerDiagnostic(Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line, opt.name));\n        }\n      } else {\n        errors.push(createCompilerDiagnostic(Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line, opt.name));\n        if (optValue && !startsWith(optValue, \"-\"))\n          i++;\n      }\n    } else {\n      if (!args[i] && opt.type !== \"boolean\") {\n        errors.push(createCompilerDiagnostic(diagnostics.optionTypeMismatchDiagnostic, opt.name, getCompilerOptionValueTypeString(opt)));\n      }\n      if (args[i] !== \"null\") {\n        switch (opt.type) {\n          case \"number\":\n            options[opt.name] = validateJsonOptionValue(opt, parseInt(args[i]), errors);\n            i++;\n            break;\n          case \"boolean\":\n            const optValue = args[i];\n            options[opt.name] = validateJsonOptionValue(opt, optValue !== \"false\", errors);\n            if (optValue === \"false\" || optValue === \"true\") {\n              i++;\n            }\n            break;\n          case \"string\":\n            options[opt.name] = validateJsonOptionValue(opt, args[i] || \"\", errors);\n            i++;\n            break;\n          case \"list\":\n            const result = parseListTypeOption(opt, args[i], errors);\n            options[opt.name] = result || [];\n            if (result) {\n              i++;\n            }\n            break;\n          case \"listOrElement\":\n            Debug.fail(\"listOrElement not supported here\");\n            break;\n          default:\n            options[opt.name] = parseCustomTypeOption(opt, args[i], errors);\n            i++;\n            break;\n        }\n      } else {\n        options[opt.name] = void 0;\n        i++;\n      }\n    }\n    return i;\n  }\n  function parseCommandLine(commandLine, readFile) {\n    return parseCommandLineWorker(compilerOptionsDidYouMeanDiagnostics, commandLine, readFile);\n  }\n  function getOptionFromName(optionName, allowShort) {\n    return getOptionDeclarationFromName(getOptionsNameMap, optionName, allowShort);\n  }\n  function getOptionDeclarationFromName(getOptionNameMap, optionName, allowShort = false) {\n    optionName = optionName.toLowerCase();\n    const { optionsNameMap, shortOptionNames } = getOptionNameMap();\n    if (allowShort) {\n      const short = shortOptionNames.get(optionName);\n      if (short !== void 0) {\n        optionName = short;\n      }\n    }\n    return optionsNameMap.get(optionName);\n  }\n  function getBuildOptionsNameMap() {\n    return buildOptionsNameMapCache || (buildOptionsNameMapCache = createOptionNameMap(buildOpts));\n  }\n  function parseBuildCommand(args) {\n    const { options, watchOptions, fileNames: projects, errors } = parseCommandLineWorker(buildOptionsDidYouMeanDiagnostics, args);\n    const buildOptions = options;\n    if (projects.length === 0) {\n      projects.push(\".\");\n    }\n    if (buildOptions.clean && buildOptions.force) {\n      errors.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, \"clean\", \"force\"));\n    }\n    if (buildOptions.clean && buildOptions.verbose) {\n      errors.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, \"clean\", \"verbose\"));\n    }\n    if (buildOptions.clean && buildOptions.watch) {\n      errors.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, \"clean\", \"watch\"));\n    }\n    if (buildOptions.watch && buildOptions.dry) {\n      errors.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, \"watch\", \"dry\"));\n    }\n    return { buildOptions, watchOptions, projects, errors };\n  }\n  function getDiagnosticText(_message, ..._args) {\n    const diagnostic = createCompilerDiagnostic.apply(void 0, arguments);\n    return diagnostic.messageText;\n  }\n  function getParsedCommandLineOfConfigFile(configFileName, optionsToExtend, host, extendedConfigCache, watchOptionsToExtend, extraFileExtensions) {\n    const configFileText = tryReadFile(configFileName, (fileName) => host.readFile(fileName));\n    if (!isString(configFileText)) {\n      host.onUnRecoverableConfigFileDiagnostic(configFileText);\n      return void 0;\n    }\n    const result = parseJsonText(configFileName, configFileText);\n    const cwd = host.getCurrentDirectory();\n    result.path = toPath(configFileName, cwd, createGetCanonicalFileName(host.useCaseSensitiveFileNames));\n    result.resolvedPath = result.path;\n    result.originalFileName = result.fileName;\n    return parseJsonSourceFileConfigFileContent(result, host, getNormalizedAbsolutePath(getDirectoryPath(configFileName), cwd), optionsToExtend, getNormalizedAbsolutePath(configFileName, cwd), void 0, extraFileExtensions, extendedConfigCache, watchOptionsToExtend);\n  }\n  function readConfigFile(fileName, readFile) {\n    const textOrDiagnostic = tryReadFile(fileName, readFile);\n    return isString(textOrDiagnostic) ? parseConfigFileTextToJson(fileName, textOrDiagnostic) : { config: {}, error: textOrDiagnostic };\n  }\n  function parseConfigFileTextToJson(fileName, jsonText) {\n    const jsonSourceFile = parseJsonText(fileName, jsonText);\n    return {\n      config: convertConfigFileToObject(jsonSourceFile, jsonSourceFile.parseDiagnostics, false, void 0),\n      error: jsonSourceFile.parseDiagnostics.length ? jsonSourceFile.parseDiagnostics[0] : void 0\n    };\n  }\n  function readJsonConfigFile(fileName, readFile) {\n    const textOrDiagnostic = tryReadFile(fileName, readFile);\n    return isString(textOrDiagnostic) ? parseJsonText(fileName, textOrDiagnostic) : { fileName, parseDiagnostics: [textOrDiagnostic] };\n  }\n  function tryReadFile(fileName, readFile) {\n    let text;\n    try {\n      text = readFile(fileName);\n    } catch (e) {\n      return createCompilerDiagnostic(Diagnostics.Cannot_read_file_0_Colon_1, fileName, e.message);\n    }\n    return text === void 0 ? createCompilerDiagnostic(Diagnostics.Cannot_read_file_0, fileName) : text;\n  }\n  function commandLineOptionsToMap(options) {\n    return arrayToMap(options, getOptionName);\n  }\n  function getWatchOptionsNameMap() {\n    return watchOptionsNameMapCache || (watchOptionsNameMapCache = createOptionNameMap(optionsForWatch));\n  }\n  function getCommandLineCompilerOptionsMap() {\n    return commandLineCompilerOptionsMapCache || (commandLineCompilerOptionsMapCache = commandLineOptionsToMap(optionDeclarations));\n  }\n  function getCommandLineWatchOptionsMap() {\n    return commandLineWatchOptionsMapCache || (commandLineWatchOptionsMapCache = commandLineOptionsToMap(optionsForWatch));\n  }\n  function getCommandLineTypeAcquisitionMap() {\n    return commandLineTypeAcquisitionMapCache || (commandLineTypeAcquisitionMapCache = commandLineOptionsToMap(typeAcquisitionDeclarations));\n  }\n  function getTsconfigRootOptionsMap() {\n    if (_tsconfigRootOptions === void 0) {\n      _tsconfigRootOptions = {\n        name: void 0,\n        type: \"object\",\n        elementOptions: commandLineOptionsToMap([\n          {\n            name: \"compilerOptions\",\n            type: \"object\",\n            elementOptions: getCommandLineCompilerOptionsMap(),\n            extraKeyDiagnostics: compilerOptionsDidYouMeanDiagnostics\n          },\n          {\n            name: \"watchOptions\",\n            type: \"object\",\n            elementOptions: getCommandLineWatchOptionsMap(),\n            extraKeyDiagnostics: watchOptionsDidYouMeanDiagnostics\n          },\n          {\n            name: \"typeAcquisition\",\n            type: \"object\",\n            elementOptions: getCommandLineTypeAcquisitionMap(),\n            extraKeyDiagnostics: typeAcquisitionDidYouMeanDiagnostics\n          },\n          extendsOptionDeclaration,\n          {\n            name: \"references\",\n            type: \"list\",\n            element: {\n              name: \"references\",\n              type: \"object\"\n            },\n            category: Diagnostics.Projects\n          },\n          {\n            name: \"files\",\n            type: \"list\",\n            element: {\n              name: \"files\",\n              type: \"string\"\n            },\n            category: Diagnostics.File_Management\n          },\n          {\n            name: \"include\",\n            type: \"list\",\n            element: {\n              name: \"include\",\n              type: \"string\"\n            },\n            category: Diagnostics.File_Management,\n            defaultValueDescription: Diagnostics.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk\n          },\n          {\n            name: \"exclude\",\n            type: \"list\",\n            element: {\n              name: \"exclude\",\n              type: \"string\"\n            },\n            category: Diagnostics.File_Management,\n            defaultValueDescription: Diagnostics.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified\n          },\n          compileOnSaveCommandLineOption\n        ])\n      };\n    }\n    return _tsconfigRootOptions;\n  }\n  function convertConfigFileToObject(sourceFile, errors, reportOptionsErrors, optionsIterator) {\n    var _a2;\n    const rootExpression = (_a2 = sourceFile.statements[0]) == null ? void 0 : _a2.expression;\n    const knownRootOptions = reportOptionsErrors ? getTsconfigRootOptionsMap() : void 0;\n    if (rootExpression && rootExpression.kind !== 207) {\n      errors.push(createDiagnosticForNodeInSourceFile(sourceFile, rootExpression, Diagnostics.The_root_value_of_a_0_file_must_be_an_object, getBaseFileName(sourceFile.fileName) === \"jsconfig.json\" ? \"jsconfig.json\" : \"tsconfig.json\"));\n      if (isArrayLiteralExpression(rootExpression)) {\n        const firstObject = find(rootExpression.elements, isObjectLiteralExpression);\n        if (firstObject) {\n          return convertToObjectWorker(sourceFile, firstObject, errors, true, knownRootOptions, optionsIterator);\n        }\n      }\n      return {};\n    }\n    return convertToObjectWorker(sourceFile, rootExpression, errors, true, knownRootOptions, optionsIterator);\n  }\n  function convertToObject(sourceFile, errors) {\n    var _a2;\n    return convertToObjectWorker(sourceFile, (_a2 = sourceFile.statements[0]) == null ? void 0 : _a2.expression, errors, true, void 0, void 0);\n  }\n  function convertToObjectWorker(sourceFile, rootExpression, errors, returnValue, knownRootOptions, jsonConversionNotifier) {\n    if (!rootExpression) {\n      return returnValue ? {} : void 0;\n    }\n    return convertPropertyValueToJson(rootExpression, knownRootOptions);\n    function isRootOptionMap(knownOptions) {\n      return knownRootOptions && knownRootOptions.elementOptions === knownOptions;\n    }\n    function convertObjectLiteralExpressionToJson(node, knownOptions, extraKeyDiagnostics, parentOption) {\n      const result = returnValue ? {} : void 0;\n      for (const element of node.properties) {\n        if (element.kind !== 299) {\n          errors.push(createDiagnosticForNodeInSourceFile(sourceFile, element, Diagnostics.Property_assignment_expected));\n          continue;\n        }\n        if (element.questionToken) {\n          errors.push(createDiagnosticForNodeInSourceFile(sourceFile, element.questionToken, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, \"?\"));\n        }\n        if (!isDoubleQuotedString(element.name)) {\n          errors.push(createDiagnosticForNodeInSourceFile(sourceFile, element.name, Diagnostics.String_literal_with_double_quotes_expected));\n        }\n        const textOfKey = isComputedNonLiteralName(element.name) ? void 0 : getTextOfPropertyName(element.name);\n        const keyText = textOfKey && unescapeLeadingUnderscores(textOfKey);\n        const option = keyText && knownOptions ? knownOptions.get(keyText) : void 0;\n        if (keyText && extraKeyDiagnostics && !option) {\n          if (knownOptions) {\n            errors.push(createUnknownOptionError(keyText, extraKeyDiagnostics, (message, arg0, arg1) => createDiagnosticForNodeInSourceFile(sourceFile, element.name, message, arg0, arg1)));\n          } else {\n            errors.push(createDiagnosticForNodeInSourceFile(sourceFile, element.name, extraKeyDiagnostics.unknownOptionDiagnostic, keyText));\n          }\n        }\n        const value = convertPropertyValueToJson(element.initializer, option);\n        if (typeof keyText !== \"undefined\") {\n          if (returnValue) {\n            result[keyText] = value;\n          }\n          if (jsonConversionNotifier && (parentOption || isRootOptionMap(knownOptions))) {\n            const isValidOptionValue = isCompilerOptionsValue(option, value);\n            if (parentOption) {\n              if (isValidOptionValue) {\n                jsonConversionNotifier.onSetValidOptionKeyValueInParent(parentOption, option, value);\n              }\n            } else if (isRootOptionMap(knownOptions)) {\n              if (isValidOptionValue) {\n                jsonConversionNotifier.onSetValidOptionKeyValueInRoot(keyText, element.name, value, element.initializer);\n              } else if (!option) {\n                jsonConversionNotifier.onSetUnknownOptionKeyValueInRoot(keyText, element.name, value, element.initializer);\n              }\n            }\n          }\n        }\n      }\n      return result;\n    }\n    function convertArrayLiteralExpressionToJson(elements, elementOption) {\n      if (!returnValue) {\n        elements.forEach((element) => convertPropertyValueToJson(element, elementOption));\n        return void 0;\n      }\n      return filter(elements.map((element) => convertPropertyValueToJson(element, elementOption)), (v) => v !== void 0);\n    }\n    function convertPropertyValueToJson(valueExpression, option) {\n      let invalidReported;\n      switch (valueExpression.kind) {\n        case 110:\n          reportInvalidOptionValue(option && option.type !== \"boolean\" && (option.type !== \"listOrElement\" || option.element.type !== \"boolean\"));\n          return validateValue(true);\n        case 95:\n          reportInvalidOptionValue(option && option.type !== \"boolean\" && (option.type !== \"listOrElement\" || option.element.type !== \"boolean\"));\n          return validateValue(false);\n        case 104:\n          reportInvalidOptionValue(option && option.name === \"extends\");\n          return validateValue(null);\n        case 10:\n          if (!isDoubleQuotedString(valueExpression)) {\n            errors.push(createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, Diagnostics.String_literal_with_double_quotes_expected));\n          }\n          reportInvalidOptionValue(option && isString(option.type) && option.type !== \"string\" && (option.type !== \"listOrElement\" || isString(option.element.type) && option.element.type !== \"string\"));\n          const text = valueExpression.text;\n          if (option) {\n            Debug.assert(option.type !== \"listOrElement\" || option.element.type === \"string\", \"Only string or array of string is handled for now\");\n          }\n          if (option && !isString(option.type)) {\n            const customOption = option;\n            if (!customOption.type.has(text.toLowerCase())) {\n              errors.push(createDiagnosticForInvalidCustomType(customOption, (message, arg0, arg1) => createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, message, arg0, arg1)));\n              invalidReported = true;\n            }\n          }\n          return validateValue(text);\n        case 8:\n          reportInvalidOptionValue(option && option.type !== \"number\" && (option.type !== \"listOrElement\" || option.element.type !== \"number\"));\n          return validateValue(Number(valueExpression.text));\n        case 221:\n          if (valueExpression.operator !== 40 || valueExpression.operand.kind !== 8) {\n            break;\n          }\n          reportInvalidOptionValue(option && option.type !== \"number\" && (option.type !== \"listOrElement\" || option.element.type !== \"number\"));\n          return validateValue(-Number(valueExpression.operand.text));\n        case 207:\n          reportInvalidOptionValue(option && option.type !== \"object\" && (option.type !== \"listOrElement\" || option.element.type !== \"object\"));\n          const objectLiteralExpression = valueExpression;\n          if (option) {\n            const { elementOptions, extraKeyDiagnostics, name: optionName } = option;\n            return validateValue(convertObjectLiteralExpressionToJson(objectLiteralExpression, elementOptions, extraKeyDiagnostics, optionName));\n          } else {\n            return validateValue(convertObjectLiteralExpressionToJson(objectLiteralExpression, void 0, void 0, void 0));\n          }\n        case 206:\n          reportInvalidOptionValue(option && option.type !== \"list\" && option.type !== \"listOrElement\");\n          return validateValue(convertArrayLiteralExpressionToJson(valueExpression.elements, option && option.element));\n      }\n      if (option) {\n        reportInvalidOptionValue(true);\n      } else {\n        errors.push(createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal));\n      }\n      return void 0;\n      function validateValue(value) {\n        var _a2;\n        if (!invalidReported) {\n          const diagnostic = (_a2 = option == null ? void 0 : option.extraValidation) == null ? void 0 : _a2.call(option, value);\n          if (diagnostic) {\n            errors.push(createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, ...diagnostic));\n            return void 0;\n          }\n        }\n        return value;\n      }\n      function reportInvalidOptionValue(isError) {\n        if (isError) {\n          errors.push(createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, Diagnostics.Compiler_option_0_requires_a_value_of_type_1, option.name, getCompilerOptionValueTypeString(option)));\n          invalidReported = true;\n        }\n      }\n    }\n    function isDoubleQuotedString(node) {\n      return isStringLiteral(node) && isStringDoubleQuoted(node, sourceFile);\n    }\n  }\n  function getCompilerOptionValueTypeString(option) {\n    return option.type === \"listOrElement\" ? `${getCompilerOptionValueTypeString(option.element)} or Array` : option.type === \"list\" ? \"Array\" : isString(option.type) ? option.type : \"string\";\n  }\n  function isCompilerOptionsValue(option, value) {\n    if (option) {\n      if (isNullOrUndefined(value))\n        return true;\n      if (option.type === \"list\") {\n        return isArray(value);\n      }\n      if (option.type === \"listOrElement\") {\n        return isArray(value) || isCompilerOptionsValue(option.element, value);\n      }\n      const expectedType = isString(option.type) ? option.type : \"string\";\n      return typeof value === expectedType;\n    }\n    return false;\n  }\n  function convertToTSConfig(configParseResult, configFileName, host) {\n    var _a2, _b, _c;\n    const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames);\n    const files = map(filter(configParseResult.fileNames, !((_b = (_a2 = configParseResult.options.configFile) == null ? void 0 : _a2.configFileSpecs) == null ? void 0 : _b.validatedIncludeSpecs) ? returnTrue : matchesSpecs(configFileName, configParseResult.options.configFile.configFileSpecs.validatedIncludeSpecs, configParseResult.options.configFile.configFileSpecs.validatedExcludeSpecs, host)), (f) => getRelativePathFromFile(getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), getNormalizedAbsolutePath(f, host.getCurrentDirectory()), getCanonicalFileName));\n    const optionMap = serializeCompilerOptions(configParseResult.options, { configFilePath: getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), useCaseSensitiveFileNames: host.useCaseSensitiveFileNames });\n    const watchOptionMap = configParseResult.watchOptions && serializeWatchOptions(configParseResult.watchOptions);\n    const config = {\n      compilerOptions: {\n        ...optionMapToObject(optionMap),\n        showConfig: void 0,\n        configFile: void 0,\n        configFilePath: void 0,\n        help: void 0,\n        init: void 0,\n        listFiles: void 0,\n        listEmittedFiles: void 0,\n        project: void 0,\n        build: void 0,\n        version: void 0\n      },\n      watchOptions: watchOptionMap && optionMapToObject(watchOptionMap),\n      references: map(configParseResult.projectReferences, (r) => ({ ...r, path: r.originalPath ? r.originalPath : \"\", originalPath: void 0 })),\n      files: length(files) ? files : void 0,\n      ...((_c = configParseResult.options.configFile) == null ? void 0 : _c.configFileSpecs) ? {\n        include: filterSameAsDefaultInclude(configParseResult.options.configFile.configFileSpecs.validatedIncludeSpecs),\n        exclude: configParseResult.options.configFile.configFileSpecs.validatedExcludeSpecs\n      } : {},\n      compileOnSave: !!configParseResult.compileOnSave ? true : void 0\n    };\n    return config;\n  }\n  function optionMapToObject(optionMap) {\n    return {\n      ...arrayFrom(optionMap.entries()).reduce((prev, cur) => ({ ...prev, [cur[0]]: cur[1] }), {})\n    };\n  }\n  function filterSameAsDefaultInclude(specs) {\n    if (!length(specs))\n      return void 0;\n    if (length(specs) !== 1)\n      return specs;\n    if (specs[0] === defaultIncludeSpec)\n      return void 0;\n    return specs;\n  }\n  function matchesSpecs(path, includeSpecs, excludeSpecs, host) {\n    if (!includeSpecs)\n      return returnTrue;\n    const patterns = getFileMatcherPatterns(path, excludeSpecs, includeSpecs, host.useCaseSensitiveFileNames, host.getCurrentDirectory());\n    const excludeRe = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, host.useCaseSensitiveFileNames);\n    const includeRe = patterns.includeFilePattern && getRegexFromPattern(patterns.includeFilePattern, host.useCaseSensitiveFileNames);\n    if (includeRe) {\n      if (excludeRe) {\n        return (path2) => !(includeRe.test(path2) && !excludeRe.test(path2));\n      }\n      return (path2) => !includeRe.test(path2);\n    }\n    if (excludeRe) {\n      return (path2) => excludeRe.test(path2);\n    }\n    return returnTrue;\n  }\n  function getCustomTypeMapOfCommandLineOption(optionDefinition) {\n    switch (optionDefinition.type) {\n      case \"string\":\n      case \"number\":\n      case \"boolean\":\n      case \"object\":\n        return void 0;\n      case \"list\":\n      case \"listOrElement\":\n        return getCustomTypeMapOfCommandLineOption(optionDefinition.element);\n      default:\n        return optionDefinition.type;\n    }\n  }\n  function getNameOfCompilerOptionValue(value, customTypeMap) {\n    return forEachEntry(customTypeMap, (mapValue, key) => {\n      if (mapValue === value) {\n        return key;\n      }\n    });\n  }\n  function serializeCompilerOptions(options, pathOptions) {\n    return serializeOptionBaseObject(options, getOptionsNameMap(), pathOptions);\n  }\n  function serializeWatchOptions(options) {\n    return serializeOptionBaseObject(options, getWatchOptionsNameMap());\n  }\n  function serializeOptionBaseObject(options, { optionsNameMap }, pathOptions) {\n    const result = /* @__PURE__ */ new Map();\n    const getCanonicalFileName = pathOptions && createGetCanonicalFileName(pathOptions.useCaseSensitiveFileNames);\n    for (const name in options) {\n      if (hasProperty(options, name)) {\n        if (optionsNameMap.has(name) && (optionsNameMap.get(name).category === Diagnostics.Command_line_Options || optionsNameMap.get(name).category === Diagnostics.Output_Formatting)) {\n          continue;\n        }\n        const value = options[name];\n        const optionDefinition = optionsNameMap.get(name.toLowerCase());\n        if (optionDefinition) {\n          Debug.assert(optionDefinition.type !== \"listOrElement\");\n          const customTypeMap = getCustomTypeMapOfCommandLineOption(optionDefinition);\n          if (!customTypeMap) {\n            if (pathOptions && optionDefinition.isFilePath) {\n              result.set(name, getRelativePathFromFile(pathOptions.configFilePath, getNormalizedAbsolutePath(value, getDirectoryPath(pathOptions.configFilePath)), getCanonicalFileName));\n            } else {\n              result.set(name, value);\n            }\n          } else {\n            if (optionDefinition.type === \"list\") {\n              result.set(name, value.map((element) => getNameOfCompilerOptionValue(element, customTypeMap)));\n            } else {\n              result.set(name, getNameOfCompilerOptionValue(value, customTypeMap));\n            }\n          }\n        }\n      }\n    }\n    return result;\n  }\n  function getCompilerOptionsDiffValue(options, newLine) {\n    const compilerOptionsMap = getSerializedCompilerOption(options);\n    return getOverwrittenDefaultOptions();\n    function makePadding(paddingLength) {\n      return Array(paddingLength + 1).join(\" \");\n    }\n    function getOverwrittenDefaultOptions() {\n      const result = [];\n      const tab = makePadding(2);\n      commandOptionsWithoutBuild.forEach((cmd) => {\n        if (!compilerOptionsMap.has(cmd.name)) {\n          return;\n        }\n        const newValue = compilerOptionsMap.get(cmd.name);\n        const defaultValue = getDefaultValueForOption(cmd);\n        if (newValue !== defaultValue) {\n          result.push(`${tab}${cmd.name}: ${newValue}`);\n        } else if (hasProperty(defaultInitCompilerOptions, cmd.name)) {\n          result.push(`${tab}${cmd.name}: ${defaultValue}`);\n        }\n      });\n      return result.join(newLine) + newLine;\n    }\n  }\n  function getSerializedCompilerOption(options) {\n    const compilerOptions = extend(options, defaultInitCompilerOptions);\n    return serializeCompilerOptions(compilerOptions);\n  }\n  function generateTSConfig(options, fileNames, newLine) {\n    const compilerOptionsMap = getSerializedCompilerOption(options);\n    return writeConfigurations();\n    function makePadding(paddingLength) {\n      return Array(paddingLength + 1).join(\" \");\n    }\n    function isAllowedOptionForOutput({ category, name, isCommandLineOnly }) {\n      const categoriesToSkip = [Diagnostics.Command_line_Options, Diagnostics.Editor_Support, Diagnostics.Compiler_Diagnostics, Diagnostics.Backwards_Compatibility, Diagnostics.Watch_and_Build_Modes, Diagnostics.Output_Formatting];\n      return !isCommandLineOnly && category !== void 0 && (!categoriesToSkip.includes(category) || compilerOptionsMap.has(name));\n    }\n    function writeConfigurations() {\n      const categorizedOptions = /* @__PURE__ */ new Map();\n      categorizedOptions.set(Diagnostics.Projects, []);\n      categorizedOptions.set(Diagnostics.Language_and_Environment, []);\n      categorizedOptions.set(Diagnostics.Modules, []);\n      categorizedOptions.set(Diagnostics.JavaScript_Support, []);\n      categorizedOptions.set(Diagnostics.Emit, []);\n      categorizedOptions.set(Diagnostics.Interop_Constraints, []);\n      categorizedOptions.set(Diagnostics.Type_Checking, []);\n      categorizedOptions.set(Diagnostics.Completeness, []);\n      for (const option of optionDeclarations) {\n        if (isAllowedOptionForOutput(option)) {\n          let listForCategory = categorizedOptions.get(option.category);\n          if (!listForCategory)\n            categorizedOptions.set(option.category, listForCategory = []);\n          listForCategory.push(option);\n        }\n      }\n      let marginLength = 0;\n      let seenKnownKeys = 0;\n      const entries = [];\n      categorizedOptions.forEach((options2, category) => {\n        if (entries.length !== 0) {\n          entries.push({ value: \"\" });\n        }\n        entries.push({ value: `/* ${getLocaleSpecificMessage(category)} */` });\n        for (const option of options2) {\n          let optionName;\n          if (compilerOptionsMap.has(option.name)) {\n            optionName = `\"${option.name}\": ${JSON.stringify(compilerOptionsMap.get(option.name))}${(seenKnownKeys += 1) === compilerOptionsMap.size ? \"\" : \",\"}`;\n          } else {\n            optionName = `// \"${option.name}\": ${JSON.stringify(getDefaultValueForOption(option))},`;\n          }\n          entries.push({\n            value: optionName,\n            description: `/* ${option.description && getLocaleSpecificMessage(option.description) || option.name} */`\n          });\n          marginLength = Math.max(optionName.length, marginLength);\n        }\n      });\n      const tab = makePadding(2);\n      const result = [];\n      result.push(`{`);\n      result.push(`${tab}\"compilerOptions\": {`);\n      result.push(`${tab}${tab}/* ${getLocaleSpecificMessage(Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`);\n      result.push(\"\");\n      for (const entry of entries) {\n        const { value, description: description2 = \"\" } = entry;\n        result.push(value && `${tab}${tab}${value}${description2 && makePadding(marginLength - value.length + 2) + description2}`);\n      }\n      if (fileNames.length) {\n        result.push(`${tab}},`);\n        result.push(`${tab}\"files\": [`);\n        for (let i = 0; i < fileNames.length; i++) {\n          result.push(`${tab}${tab}${JSON.stringify(fileNames[i])}${i === fileNames.length - 1 ? \"\" : \",\"}`);\n        }\n        result.push(`${tab}]`);\n      } else {\n        result.push(`${tab}}`);\n      }\n      result.push(`}`);\n      return result.join(newLine) + newLine;\n    }\n  }\n  function convertToOptionsWithAbsolutePaths(options, toAbsolutePath) {\n    const result = {};\n    const optionsNameMap = getOptionsNameMap().optionsNameMap;\n    for (const name in options) {\n      if (hasProperty(options, name)) {\n        result[name] = convertToOptionValueWithAbsolutePaths(optionsNameMap.get(name.toLowerCase()), options[name], toAbsolutePath);\n      }\n    }\n    if (result.configFilePath) {\n      result.configFilePath = toAbsolutePath(result.configFilePath);\n    }\n    return result;\n  }\n  function convertToOptionValueWithAbsolutePaths(option, value, toAbsolutePath) {\n    if (option && !isNullOrUndefined(value)) {\n      if (option.type === \"list\") {\n        const values = value;\n        if (option.element.isFilePath && values.length) {\n          return values.map(toAbsolutePath);\n        }\n      } else if (option.isFilePath) {\n        return toAbsolutePath(value);\n      }\n      Debug.assert(option.type !== \"listOrElement\");\n    }\n    return value;\n  }\n  function parseJsonConfigFileContent(json, host, basePath, existingOptions, configFileName, resolutionStack, extraFileExtensions, extendedConfigCache, existingWatchOptions) {\n    return parseJsonConfigFileContentWorker(json, void 0, host, basePath, existingOptions, existingWatchOptions, configFileName, resolutionStack, extraFileExtensions, extendedConfigCache);\n  }\n  function parseJsonSourceFileConfigFileContent(sourceFile, host, basePath, existingOptions, configFileName, resolutionStack, extraFileExtensions, extendedConfigCache, existingWatchOptions) {\n    var _a2, _b;\n    (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Parse, \"parseJsonSourceFileConfigFileContent\", { path: sourceFile.fileName });\n    const result = parseJsonConfigFileContentWorker(void 0, sourceFile, host, basePath, existingOptions, existingWatchOptions, configFileName, resolutionStack, extraFileExtensions, extendedConfigCache);\n    (_b = tracing) == null ? void 0 : _b.pop();\n    return result;\n  }\n  function setConfigFileInOptions(options, configFile) {\n    if (configFile) {\n      Object.defineProperty(options, \"configFile\", { enumerable: false, writable: false, value: configFile });\n    }\n  }\n  function isNullOrUndefined(x) {\n    return x === void 0 || x === null;\n  }\n  function directoryOfCombinedPath(fileName, basePath) {\n    return getDirectoryPath(getNormalizedAbsolutePath(fileName, basePath));\n  }\n  function parseJsonConfigFileContentWorker(json, sourceFile, host, basePath, existingOptions = {}, existingWatchOptions, configFileName, resolutionStack = [], extraFileExtensions = [], extendedConfigCache) {\n    Debug.assert(json === void 0 && sourceFile !== void 0 || json !== void 0 && sourceFile === void 0);\n    const errors = [];\n    const parsedConfig = parseConfig(json, sourceFile, host, basePath, configFileName, resolutionStack, errors, extendedConfigCache);\n    const { raw } = parsedConfig;\n    const options = extend(existingOptions, parsedConfig.options || {});\n    const watchOptions = existingWatchOptions && parsedConfig.watchOptions ? extend(existingWatchOptions, parsedConfig.watchOptions) : parsedConfig.watchOptions || existingWatchOptions;\n    options.configFilePath = configFileName && normalizeSlashes(configFileName);\n    const configFileSpecs = getConfigFileSpecs();\n    if (sourceFile)\n      sourceFile.configFileSpecs = configFileSpecs;\n    setConfigFileInOptions(options, sourceFile);\n    const basePathForFileNames = normalizePath(configFileName ? directoryOfCombinedPath(configFileName, basePath) : basePath);\n    return {\n      options,\n      watchOptions,\n      fileNames: getFileNames(basePathForFileNames),\n      projectReferences: getProjectReferences(basePathForFileNames),\n      typeAcquisition: parsedConfig.typeAcquisition || getDefaultTypeAcquisition(),\n      raw,\n      errors,\n      wildcardDirectories: getWildcardDirectories(configFileSpecs, basePathForFileNames, host.useCaseSensitiveFileNames),\n      compileOnSave: !!raw.compileOnSave\n    };\n    function getConfigFileSpecs() {\n      const referencesOfRaw = getPropFromRaw(\"references\", (element) => typeof element === \"object\", \"object\");\n      const filesSpecs = toPropValue(getSpecsFromRaw(\"files\"));\n      if (filesSpecs) {\n        const hasZeroOrNoReferences = referencesOfRaw === \"no-prop\" || isArray(referencesOfRaw) && referencesOfRaw.length === 0;\n        const hasExtends = hasProperty(raw, \"extends\");\n        if (filesSpecs.length === 0 && hasZeroOrNoReferences && !hasExtends) {\n          if (sourceFile) {\n            const fileName = configFileName || \"tsconfig.json\";\n            const diagnosticMessage = Diagnostics.The_files_list_in_config_file_0_is_empty;\n            const nodeValue = firstDefined(getTsConfigPropArray(sourceFile, \"files\"), (property) => property.initializer);\n            const error = nodeValue ? createDiagnosticForNodeInSourceFile(sourceFile, nodeValue, diagnosticMessage, fileName) : createCompilerDiagnostic(diagnosticMessage, fileName);\n            errors.push(error);\n          } else {\n            createCompilerDiagnosticOnlyIfJson(Diagnostics.The_files_list_in_config_file_0_is_empty, configFileName || \"tsconfig.json\");\n          }\n        }\n      }\n      let includeSpecs = toPropValue(getSpecsFromRaw(\"include\"));\n      const excludeOfRaw = getSpecsFromRaw(\"exclude\");\n      let isDefaultIncludeSpec = false;\n      let excludeSpecs = toPropValue(excludeOfRaw);\n      if (excludeOfRaw === \"no-prop\" && raw.compilerOptions) {\n        const outDir = raw.compilerOptions.outDir;\n        const declarationDir = raw.compilerOptions.declarationDir;\n        if (outDir || declarationDir) {\n          excludeSpecs = [outDir, declarationDir].filter((d) => !!d);\n        }\n      }\n      if (filesSpecs === void 0 && includeSpecs === void 0) {\n        includeSpecs = [defaultIncludeSpec];\n        isDefaultIncludeSpec = true;\n      }\n      let validatedIncludeSpecs, validatedExcludeSpecs;\n      if (includeSpecs) {\n        validatedIncludeSpecs = validateSpecs(includeSpecs, errors, true, sourceFile, \"include\");\n      }\n      if (excludeSpecs) {\n        validatedExcludeSpecs = validateSpecs(excludeSpecs, errors, false, sourceFile, \"exclude\");\n      }\n      return {\n        filesSpecs,\n        includeSpecs,\n        excludeSpecs,\n        validatedFilesSpec: filter(filesSpecs, isString),\n        validatedIncludeSpecs,\n        validatedExcludeSpecs,\n        pathPatterns: void 0,\n        isDefaultIncludeSpec\n      };\n    }\n    function getFileNames(basePath2) {\n      const fileNames = getFileNamesFromConfigSpecs(configFileSpecs, basePath2, options, host, extraFileExtensions);\n      if (shouldReportNoInputFiles(fileNames, canJsonReportNoInputFiles(raw), resolutionStack)) {\n        errors.push(getErrorForNoInputFiles(configFileSpecs, configFileName));\n      }\n      return fileNames;\n    }\n    function getProjectReferences(basePath2) {\n      let projectReferences;\n      const referencesOfRaw = getPropFromRaw(\"references\", (element) => typeof element === \"object\", \"object\");\n      if (isArray(referencesOfRaw)) {\n        for (const ref of referencesOfRaw) {\n          if (typeof ref.path !== \"string\") {\n            createCompilerDiagnosticOnlyIfJson(Diagnostics.Compiler_option_0_requires_a_value_of_type_1, \"reference.path\", \"string\");\n          } else {\n            (projectReferences || (projectReferences = [])).push({\n              path: getNormalizedAbsolutePath(ref.path, basePath2),\n              originalPath: ref.path,\n              prepend: ref.prepend,\n              circular: ref.circular\n            });\n          }\n        }\n      }\n      return projectReferences;\n    }\n    function toPropValue(specResult) {\n      return isArray(specResult) ? specResult : void 0;\n    }\n    function getSpecsFromRaw(prop) {\n      return getPropFromRaw(prop, isString, \"string\");\n    }\n    function getPropFromRaw(prop, validateElement, elementTypeName) {\n      if (hasProperty(raw, prop) && !isNullOrUndefined(raw[prop])) {\n        if (isArray(raw[prop])) {\n          const result = raw[prop];\n          if (!sourceFile && !every(result, validateElement)) {\n            errors.push(createCompilerDiagnostic(Diagnostics.Compiler_option_0_requires_a_value_of_type_1, prop, elementTypeName));\n          }\n          return result;\n        } else {\n          createCompilerDiagnosticOnlyIfJson(Diagnostics.Compiler_option_0_requires_a_value_of_type_1, prop, \"Array\");\n          return \"not-array\";\n        }\n      }\n      return \"no-prop\";\n    }\n    function createCompilerDiagnosticOnlyIfJson(message, arg0, arg1) {\n      if (!sourceFile) {\n        errors.push(createCompilerDiagnostic(message, arg0, arg1));\n      }\n    }\n  }\n  function isErrorNoInputFiles(error) {\n    return error.code === Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code;\n  }\n  function getErrorForNoInputFiles({ includeSpecs, excludeSpecs }, configFileName) {\n    return createCompilerDiagnostic(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 || []));\n  }\n  function shouldReportNoInputFiles(fileNames, canJsonReportNoInutFiles, resolutionStack) {\n    return fileNames.length === 0 && canJsonReportNoInutFiles && (!resolutionStack || resolutionStack.length === 0);\n  }\n  function canJsonReportNoInputFiles(raw) {\n    return !hasProperty(raw, \"files\") && !hasProperty(raw, \"references\");\n  }\n  function updateErrorForNoInputFiles(fileNames, configFileName, configFileSpecs, configParseDiagnostics, canJsonReportNoInutFiles) {\n    const existingErrors = configParseDiagnostics.length;\n    if (shouldReportNoInputFiles(fileNames, canJsonReportNoInutFiles)) {\n      configParseDiagnostics.push(getErrorForNoInputFiles(configFileSpecs, configFileName));\n    } else {\n      filterMutate(configParseDiagnostics, (error) => !isErrorNoInputFiles(error));\n    }\n    return existingErrors !== configParseDiagnostics.length;\n  }\n  function isSuccessfulParsedTsconfig(value) {\n    return !!value.options;\n  }\n  function parseConfig(json, sourceFile, host, basePath, configFileName, resolutionStack, errors, extendedConfigCache) {\n    var _a2;\n    basePath = normalizeSlashes(basePath);\n    const resolvedPath = getNormalizedAbsolutePath(configFileName || \"\", basePath);\n    if (resolutionStack.indexOf(resolvedPath) >= 0) {\n      errors.push(createCompilerDiagnostic(Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0, [...resolutionStack, resolvedPath].join(\" -> \")));\n      return { raw: json || convertToObject(sourceFile, errors) };\n    }\n    const ownConfig = json ? parseOwnConfigOfJson(json, host, basePath, configFileName, errors) : parseOwnConfigOfJsonSourceFile(sourceFile, host, basePath, configFileName, errors);\n    if ((_a2 = ownConfig.options) == null ? void 0 : _a2.paths) {\n      ownConfig.options.pathsBasePath = basePath;\n    }\n    if (ownConfig.extendedConfigPath) {\n      resolutionStack = resolutionStack.concat([resolvedPath]);\n      const result = { options: {} };\n      if (isString(ownConfig.extendedConfigPath)) {\n        applyExtendedConfig(result, ownConfig.extendedConfigPath);\n      } else {\n        ownConfig.extendedConfigPath.forEach((extendedConfigPath) => applyExtendedConfig(result, extendedConfigPath));\n      }\n      if (!ownConfig.raw.include && result.include)\n        ownConfig.raw.include = result.include;\n      if (!ownConfig.raw.exclude && result.exclude)\n        ownConfig.raw.exclude = result.exclude;\n      if (!ownConfig.raw.files && result.files)\n        ownConfig.raw.files = result.files;\n      if (ownConfig.raw.compileOnSave === void 0 && result.compileOnSave)\n        ownConfig.raw.compileOnSave = result.compileOnSave;\n      if (sourceFile && result.extendedSourceFiles)\n        sourceFile.extendedSourceFiles = arrayFrom(result.extendedSourceFiles.keys());\n      ownConfig.options = assign(result.options, ownConfig.options);\n      ownConfig.watchOptions = ownConfig.watchOptions && result.watchOptions ? assign(result.watchOptions, ownConfig.watchOptions) : ownConfig.watchOptions || result.watchOptions;\n    }\n    return ownConfig;\n    function applyExtendedConfig(result, extendedConfigPath) {\n      const extendedConfig = getExtendedConfig(sourceFile, extendedConfigPath, host, resolutionStack, errors, extendedConfigCache, result);\n      if (extendedConfig && isSuccessfulParsedTsconfig(extendedConfig)) {\n        const extendsRaw = extendedConfig.raw;\n        let relativeDifference;\n        const setPropertyInResultIfNotUndefined = (propertyName) => {\n          if (extendsRaw[propertyName]) {\n            result[propertyName] = map(extendsRaw[propertyName], (path) => isRootedDiskPath(path) ? path : combinePaths(relativeDifference || (relativeDifference = convertToRelativePath(getDirectoryPath(extendedConfigPath), basePath, createGetCanonicalFileName(host.useCaseSensitiveFileNames))), path));\n          }\n        };\n        setPropertyInResultIfNotUndefined(\"include\");\n        setPropertyInResultIfNotUndefined(\"exclude\");\n        setPropertyInResultIfNotUndefined(\"files\");\n        if (extendsRaw.compileOnSave !== void 0) {\n          result.compileOnSave = extendsRaw.compileOnSave;\n        }\n        assign(result.options, extendedConfig.options);\n        result.watchOptions = result.watchOptions && extendedConfig.watchOptions ? assign({}, result.watchOptions, extendedConfig.watchOptions) : result.watchOptions || extendedConfig.watchOptions;\n      }\n    }\n  }\n  function parseOwnConfigOfJson(json, host, basePath, configFileName, errors) {\n    if (hasProperty(json, \"excludes\")) {\n      errors.push(createCompilerDiagnostic(Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));\n    }\n    const options = convertCompilerOptionsFromJsonWorker(json.compilerOptions, basePath, errors, configFileName);\n    const typeAcquisition = convertTypeAcquisitionFromJsonWorker(json.typeAcquisition, basePath, errors, configFileName);\n    const watchOptions = convertWatchOptionsFromJsonWorker(json.watchOptions, basePath, errors);\n    json.compileOnSave = convertCompileOnSaveOptionFromJson(json, basePath, errors);\n    let extendedConfigPath;\n    if (json.extends || json.extends === \"\") {\n      if (!isCompilerOptionsValue(extendsOptionDeclaration, json.extends)) {\n        errors.push(createCompilerDiagnostic(Diagnostics.Compiler_option_0_requires_a_value_of_type_1, \"extends\", getCompilerOptionValueTypeString(extendsOptionDeclaration)));\n      } else {\n        const newBase = configFileName ? directoryOfCombinedPath(configFileName, basePath) : basePath;\n        if (isString(json.extends)) {\n          extendedConfigPath = getExtendsConfigPath(json.extends, host, newBase, errors, createCompilerDiagnostic);\n        } else {\n          extendedConfigPath = [];\n          for (const fileName of json.extends) {\n            if (isString(fileName)) {\n              extendedConfigPath = append(extendedConfigPath, getExtendsConfigPath(fileName, host, newBase, errors, createCompilerDiagnostic));\n            } else {\n              errors.push(createCompilerDiagnostic(Diagnostics.Compiler_option_0_requires_a_value_of_type_1, \"extends\", getCompilerOptionValueTypeString(extendsOptionDeclaration.element)));\n            }\n          }\n        }\n      }\n    }\n    return { raw: json, options, watchOptions, typeAcquisition, extendedConfigPath };\n  }\n  function parseOwnConfigOfJsonSourceFile(sourceFile, host, basePath, configFileName, errors) {\n    const options = getDefaultCompilerOptions(configFileName);\n    let typeAcquisition;\n    let watchOptions;\n    let extendedConfigPath;\n    let rootCompilerOptions;\n    const optionsIterator = {\n      onSetValidOptionKeyValueInParent(parentOption, option, value) {\n        let currentOption;\n        switch (parentOption) {\n          case \"compilerOptions\":\n            currentOption = options;\n            break;\n          case \"watchOptions\":\n            currentOption = watchOptions || (watchOptions = {});\n            break;\n          case \"typeAcquisition\":\n            currentOption = typeAcquisition || (typeAcquisition = getDefaultTypeAcquisition(configFileName));\n            break;\n          default:\n            Debug.fail(\"Unknown option\");\n        }\n        currentOption[option.name] = normalizeOptionValue(option, basePath, value);\n      },\n      onSetValidOptionKeyValueInRoot(key, _keyNode, value, valueNode) {\n        switch (key) {\n          case \"extends\":\n            const newBase = configFileName ? directoryOfCombinedPath(configFileName, basePath) : basePath;\n            if (isString(value)) {\n              extendedConfigPath = getExtendsConfigPath(value, host, newBase, errors, (message, arg0) => createDiagnosticForNodeInSourceFile(sourceFile, valueNode, message, arg0));\n            } else {\n              extendedConfigPath = [];\n              for (let index = 0; index < value.length; index++) {\n                const fileName = value[index];\n                if (isString(fileName)) {\n                  extendedConfigPath = append(extendedConfigPath, getExtendsConfigPath(fileName, host, newBase, errors, (message, arg0) => createDiagnosticForNodeInSourceFile(sourceFile, valueNode.elements[index], message, arg0)));\n                }\n              }\n            }\n            return;\n        }\n      },\n      onSetUnknownOptionKeyValueInRoot(key, keyNode, _value, _valueNode) {\n        if (key === \"excludes\") {\n          errors.push(createDiagnosticForNodeInSourceFile(sourceFile, keyNode, Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));\n        }\n        if (find(commandOptionsWithoutBuild, (opt) => opt.name === key)) {\n          rootCompilerOptions = append(rootCompilerOptions, keyNode);\n        }\n      }\n    };\n    const json = convertConfigFileToObject(sourceFile, errors, true, optionsIterator);\n    if (!typeAcquisition) {\n      typeAcquisition = getDefaultTypeAcquisition(configFileName);\n    }\n    if (rootCompilerOptions && json && json.compilerOptions === void 0) {\n      errors.push(createDiagnosticForNodeInSourceFile(sourceFile, rootCompilerOptions[0], Diagnostics._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file, getTextOfPropertyName(rootCompilerOptions[0])));\n    }\n    return { raw: json, options, watchOptions, typeAcquisition, extendedConfigPath };\n  }\n  function getExtendsConfigPath(extendedConfig, host, basePath, errors, createDiagnostic) {\n    extendedConfig = normalizeSlashes(extendedConfig);\n    if (isRootedDiskPath(extendedConfig) || startsWith(extendedConfig, \"./\") || startsWith(extendedConfig, \"../\")) {\n      let extendedConfigPath = getNormalizedAbsolutePath(extendedConfig, basePath);\n      if (!host.fileExists(extendedConfigPath) && !endsWith(extendedConfigPath, \".json\")) {\n        extendedConfigPath = `${extendedConfigPath}.json`;\n        if (!host.fileExists(extendedConfigPath)) {\n          errors.push(createDiagnostic(Diagnostics.File_0_not_found, extendedConfig));\n          return void 0;\n        }\n      }\n      return extendedConfigPath;\n    }\n    const resolved = nodeNextJsonConfigResolver(extendedConfig, combinePaths(basePath, \"tsconfig.json\"), host);\n    if (resolved.resolvedModule) {\n      return resolved.resolvedModule.resolvedFileName;\n    }\n    if (extendedConfig === \"\") {\n      errors.push(createDiagnostic(Diagnostics.Compiler_option_0_cannot_be_given_an_empty_string, \"extends\"));\n    } else {\n      errors.push(createDiagnostic(Diagnostics.File_0_not_found, extendedConfig));\n    }\n    return void 0;\n  }\n  function getExtendedConfig(sourceFile, extendedConfigPath, host, resolutionStack, errors, extendedConfigCache, result) {\n    var _a2;\n    const path = host.useCaseSensitiveFileNames ? extendedConfigPath : toFileNameLowerCase(extendedConfigPath);\n    let value;\n    let extendedResult;\n    let extendedConfig;\n    if (extendedConfigCache && (value = extendedConfigCache.get(path))) {\n      ({ extendedResult, extendedConfig } = value);\n    } else {\n      extendedResult = readJsonConfigFile(extendedConfigPath, (path2) => host.readFile(path2));\n      if (!extendedResult.parseDiagnostics.length) {\n        extendedConfig = parseConfig(void 0, extendedResult, host, getDirectoryPath(extendedConfigPath), getBaseFileName(extendedConfigPath), resolutionStack, errors, extendedConfigCache);\n      }\n      if (extendedConfigCache) {\n        extendedConfigCache.set(path, { extendedResult, extendedConfig });\n      }\n    }\n    if (sourceFile) {\n      ((_a2 = result.extendedSourceFiles) != null ? _a2 : result.extendedSourceFiles = /* @__PURE__ */ new Set()).add(extendedResult.fileName);\n      if (extendedResult.extendedSourceFiles) {\n        for (const extenedSourceFile of extendedResult.extendedSourceFiles) {\n          result.extendedSourceFiles.add(extenedSourceFile);\n        }\n      }\n    }\n    if (extendedResult.parseDiagnostics.length) {\n      errors.push(...extendedResult.parseDiagnostics);\n      return void 0;\n    }\n    return extendedConfig;\n  }\n  function convertCompileOnSaveOptionFromJson(jsonOption, basePath, errors) {\n    if (!hasProperty(jsonOption, compileOnSaveCommandLineOption.name)) {\n      return false;\n    }\n    const result = convertJsonOption(compileOnSaveCommandLineOption, jsonOption.compileOnSave, basePath, errors);\n    return typeof result === \"boolean\" && result;\n  }\n  function convertCompilerOptionsFromJson(jsonOptions, basePath, configFileName) {\n    const errors = [];\n    const options = convertCompilerOptionsFromJsonWorker(jsonOptions, basePath, errors, configFileName);\n    return { options, errors };\n  }\n  function convertTypeAcquisitionFromJson(jsonOptions, basePath, configFileName) {\n    const errors = [];\n    const options = convertTypeAcquisitionFromJsonWorker(jsonOptions, basePath, errors, configFileName);\n    return { options, errors };\n  }\n  function getDefaultCompilerOptions(configFileName) {\n    const options = configFileName && getBaseFileName(configFileName) === \"jsconfig.json\" ? { allowJs: true, maxNodeModuleJsDepth: 2, allowSyntheticDefaultImports: true, skipLibCheck: true, noEmit: true } : {};\n    return options;\n  }\n  function convertCompilerOptionsFromJsonWorker(jsonOptions, basePath, errors, configFileName) {\n    const options = getDefaultCompilerOptions(configFileName);\n    convertOptionsFromJson(getCommandLineCompilerOptionsMap(), jsonOptions, basePath, options, compilerOptionsDidYouMeanDiagnostics, errors);\n    if (configFileName) {\n      options.configFilePath = normalizeSlashes(configFileName);\n    }\n    return options;\n  }\n  function getDefaultTypeAcquisition(configFileName) {\n    return { enable: !!configFileName && getBaseFileName(configFileName) === \"jsconfig.json\", include: [], exclude: [] };\n  }\n  function convertTypeAcquisitionFromJsonWorker(jsonOptions, basePath, errors, configFileName) {\n    const options = getDefaultTypeAcquisition(configFileName);\n    convertOptionsFromJson(getCommandLineTypeAcquisitionMap(), jsonOptions, basePath, options, typeAcquisitionDidYouMeanDiagnostics, errors);\n    return options;\n  }\n  function convertWatchOptionsFromJsonWorker(jsonOptions, basePath, errors) {\n    return convertOptionsFromJson(getCommandLineWatchOptionsMap(), jsonOptions, basePath, void 0, watchOptionsDidYouMeanDiagnostics, errors);\n  }\n  function convertOptionsFromJson(optionsNameMap, jsonOptions, basePath, defaultOptions, diagnostics, errors) {\n    if (!jsonOptions) {\n      return;\n    }\n    for (const id in jsonOptions) {\n      const opt = optionsNameMap.get(id);\n      if (opt) {\n        (defaultOptions || (defaultOptions = {}))[opt.name] = convertJsonOption(opt, jsonOptions[id], basePath, errors);\n      } else {\n        errors.push(createUnknownOptionError(id, diagnostics, createCompilerDiagnostic));\n      }\n    }\n    return defaultOptions;\n  }\n  function convertJsonOption(opt, value, basePath, errors) {\n    if (isCompilerOptionsValue(opt, value)) {\n      const optType = opt.type;\n      if (optType === \"list\" && isArray(value)) {\n        return convertJsonOptionOfListType(opt, value, basePath, errors);\n      } else if (optType === \"listOrElement\") {\n        return isArray(value) ? convertJsonOptionOfListType(opt, value, basePath, errors) : convertJsonOption(opt.element, value, basePath, errors);\n      } else if (!isString(opt.type)) {\n        return convertJsonOptionOfCustomType(opt, value, errors);\n      }\n      const validatedValue = validateJsonOptionValue(opt, value, errors);\n      return isNullOrUndefined(validatedValue) ? validatedValue : normalizeNonListOptionValue(opt, basePath, validatedValue);\n    } else {\n      errors.push(createCompilerDiagnostic(Diagnostics.Compiler_option_0_requires_a_value_of_type_1, opt.name, getCompilerOptionValueTypeString(opt)));\n    }\n  }\n  function normalizeOptionValue(option, basePath, value) {\n    if (isNullOrUndefined(value))\n      return void 0;\n    if (option.type === \"listOrElement\" && !isArray(value))\n      return normalizeOptionValue(option.element, basePath, value);\n    else if (option.type === \"list\" || option.type === \"listOrElement\") {\n      const listOption = option;\n      if (listOption.element.isFilePath || !isString(listOption.element.type)) {\n        return filter(map(value, (v) => normalizeOptionValue(listOption.element, basePath, v)), (v) => listOption.listPreserveFalsyValues ? true : !!v);\n      }\n      return value;\n    } else if (!isString(option.type)) {\n      return option.type.get(isString(value) ? value.toLowerCase() : value);\n    }\n    return normalizeNonListOptionValue(option, basePath, value);\n  }\n  function normalizeNonListOptionValue(option, basePath, value) {\n    if (option.isFilePath) {\n      value = getNormalizedAbsolutePath(value, basePath);\n      if (value === \"\") {\n        value = \".\";\n      }\n    }\n    return value;\n  }\n  function validateJsonOptionValue(opt, value, errors) {\n    var _a2;\n    if (isNullOrUndefined(value))\n      return void 0;\n    const d = (_a2 = opt.extraValidation) == null ? void 0 : _a2.call(opt, value);\n    if (!d)\n      return value;\n    errors.push(createCompilerDiagnostic(...d));\n    return void 0;\n  }\n  function convertJsonOptionOfCustomType(opt, value, errors) {\n    if (isNullOrUndefined(value))\n      return void 0;\n    const key = value.toLowerCase();\n    const val = opt.type.get(key);\n    if (val !== void 0) {\n      return validateJsonOptionValue(opt, val, errors);\n    } else {\n      errors.push(createCompilerDiagnosticForInvalidCustomType(opt));\n    }\n  }\n  function convertJsonOptionOfListType(option, values, basePath, errors) {\n    return filter(map(values, (v) => convertJsonOption(option.element, v, basePath, errors)), (v) => option.listPreserveFalsyValues ? true : !!v);\n  }\n  function getFileNamesFromConfigSpecs(configFileSpecs, basePath, options, host, extraFileExtensions = emptyArray) {\n    basePath = normalizePath(basePath);\n    const keyMapper = createGetCanonicalFileName(host.useCaseSensitiveFileNames);\n    const literalFileMap = /* @__PURE__ */ new Map();\n    const wildcardFileMap = /* @__PURE__ */ new Map();\n    const wildCardJsonFileMap = /* @__PURE__ */ new Map();\n    const { validatedFilesSpec, validatedIncludeSpecs, validatedExcludeSpecs } = configFileSpecs;\n    const supportedExtensions = getSupportedExtensions(options, extraFileExtensions);\n    const supportedExtensionsWithJsonIfResolveJsonModule = getSupportedExtensionsWithJsonIfResolveJsonModule(options, supportedExtensions);\n    if (validatedFilesSpec) {\n      for (const fileName of validatedFilesSpec) {\n        const file = getNormalizedAbsolutePath(fileName, basePath);\n        literalFileMap.set(keyMapper(file), file);\n      }\n    }\n    let jsonOnlyIncludeRegexes;\n    if (validatedIncludeSpecs && validatedIncludeSpecs.length > 0) {\n      for (const file of host.readDirectory(basePath, flatten(supportedExtensionsWithJsonIfResolveJsonModule), validatedExcludeSpecs, validatedIncludeSpecs, void 0)) {\n        if (fileExtensionIs(file, \".json\")) {\n          if (!jsonOnlyIncludeRegexes) {\n            const includes = validatedIncludeSpecs.filter((s) => endsWith(s, \".json\"));\n            const includeFilePatterns = map(getRegularExpressionsForWildcards(includes, basePath, \"files\"), (pattern) => `^${pattern}$`);\n            jsonOnlyIncludeRegexes = includeFilePatterns ? includeFilePatterns.map((pattern) => getRegexFromPattern(pattern, host.useCaseSensitiveFileNames)) : emptyArray;\n          }\n          const includeIndex = findIndex(jsonOnlyIncludeRegexes, (re) => re.test(file));\n          if (includeIndex !== -1) {\n            const key2 = keyMapper(file);\n            if (!literalFileMap.has(key2) && !wildCardJsonFileMap.has(key2)) {\n              wildCardJsonFileMap.set(key2, file);\n            }\n          }\n          continue;\n        }\n        if (hasFileWithHigherPriorityExtension(file, literalFileMap, wildcardFileMap, supportedExtensions, keyMapper)) {\n          continue;\n        }\n        removeWildcardFilesWithLowerPriorityExtension(file, wildcardFileMap, supportedExtensions, keyMapper);\n        const key = keyMapper(file);\n        if (!literalFileMap.has(key) && !wildcardFileMap.has(key)) {\n          wildcardFileMap.set(key, file);\n        }\n      }\n    }\n    const literalFiles = arrayFrom(literalFileMap.values());\n    const wildcardFiles = arrayFrom(wildcardFileMap.values());\n    return literalFiles.concat(wildcardFiles, arrayFrom(wildCardJsonFileMap.values()));\n  }\n  function isExcludedFile(pathToCheck, spec, basePath, useCaseSensitiveFileNames, currentDirectory) {\n    const { validatedFilesSpec, validatedIncludeSpecs, validatedExcludeSpecs } = spec;\n    if (!length(validatedIncludeSpecs) || !length(validatedExcludeSpecs))\n      return false;\n    basePath = normalizePath(basePath);\n    const keyMapper = createGetCanonicalFileName(useCaseSensitiveFileNames);\n    if (validatedFilesSpec) {\n      for (const fileName of validatedFilesSpec) {\n        if (keyMapper(getNormalizedAbsolutePath(fileName, basePath)) === pathToCheck)\n          return false;\n      }\n    }\n    return matchesExcludeWorker(pathToCheck, validatedExcludeSpecs, useCaseSensitiveFileNames, currentDirectory, basePath);\n  }\n  function invalidDotDotAfterRecursiveWildcard(s) {\n    const wildcardIndex = startsWith(s, \"**/\") ? 0 : s.indexOf(\"/**/\");\n    if (wildcardIndex === -1) {\n      return false;\n    }\n    const lastDotIndex = endsWith(s, \"/..\") ? s.length : s.lastIndexOf(\"/../\");\n    return lastDotIndex > wildcardIndex;\n  }\n  function matchesExclude(pathToCheck, excludeSpecs, useCaseSensitiveFileNames, currentDirectory) {\n    return matchesExcludeWorker(pathToCheck, filter(excludeSpecs, (spec) => !invalidDotDotAfterRecursiveWildcard(spec)), useCaseSensitiveFileNames, currentDirectory);\n  }\n  function matchesExcludeWorker(pathToCheck, excludeSpecs, useCaseSensitiveFileNames, currentDirectory, basePath) {\n    const excludePattern = getRegularExpressionForWildcard(excludeSpecs, combinePaths(normalizePath(currentDirectory), basePath), \"exclude\");\n    const excludeRegex = excludePattern && getRegexFromPattern(excludePattern, useCaseSensitiveFileNames);\n    if (!excludeRegex)\n      return false;\n    if (excludeRegex.test(pathToCheck))\n      return true;\n    return !hasExtension(pathToCheck) && excludeRegex.test(ensureTrailingDirectorySeparator(pathToCheck));\n  }\n  function validateSpecs(specs, errors, disallowTrailingRecursion, jsonSourceFile, specKey) {\n    return specs.filter((spec) => {\n      if (!isString(spec))\n        return false;\n      const diag2 = specToDiagnostic(spec, disallowTrailingRecursion);\n      if (diag2 !== void 0) {\n        errors.push(createDiagnostic(...diag2));\n      }\n      return diag2 === void 0;\n    });\n    function createDiagnostic(message, spec) {\n      const element = getTsConfigPropArrayElementValue(jsonSourceFile, specKey, spec);\n      return element ? createDiagnosticForNodeInSourceFile(jsonSourceFile, element, message, spec) : createCompilerDiagnostic(message, spec);\n    }\n  }\n  function specToDiagnostic(spec, disallowTrailingRecursion) {\n    Debug.assert(typeof spec === \"string\");\n    if (disallowTrailingRecursion && invalidTrailingRecursionPattern.test(spec)) {\n      return [Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0, spec];\n    } else if (invalidDotDotAfterRecursiveWildcard(spec)) {\n      return [Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0, spec];\n    }\n  }\n  function getWildcardDirectories({ validatedIncludeSpecs: include, validatedExcludeSpecs: exclude }, path, useCaseSensitiveFileNames) {\n    const rawExcludeRegex = getRegularExpressionForWildcard(exclude, path, \"exclude\");\n    const excludeRegex = rawExcludeRegex && new RegExp(rawExcludeRegex, useCaseSensitiveFileNames ? \"\" : \"i\");\n    const wildcardDirectories = {};\n    if (include !== void 0) {\n      const recursiveKeys = [];\n      for (const file of include) {\n        const spec = normalizePath(combinePaths(path, file));\n        if (excludeRegex && excludeRegex.test(spec)) {\n          continue;\n        }\n        const match = getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames);\n        if (match) {\n          const { key, flags } = match;\n          const existingFlags = wildcardDirectories[key];\n          if (existingFlags === void 0 || existingFlags < flags) {\n            wildcardDirectories[key] = flags;\n            if (flags === 1) {\n              recursiveKeys.push(key);\n            }\n          }\n        }\n      }\n      for (const key in wildcardDirectories) {\n        if (hasProperty(wildcardDirectories, key)) {\n          for (const recursiveKey of recursiveKeys) {\n            if (key !== recursiveKey && containsPath(recursiveKey, key, path, !useCaseSensitiveFileNames)) {\n              delete wildcardDirectories[key];\n            }\n          }\n        }\n      }\n    }\n    return wildcardDirectories;\n  }\n  function getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames) {\n    const match = wildcardDirectoryPattern.exec(spec);\n    if (match) {\n      const questionWildcardIndex = spec.indexOf(\"?\");\n      const starWildcardIndex = spec.indexOf(\"*\");\n      const lastDirectorySeperatorIndex = spec.lastIndexOf(directorySeparator);\n      return {\n        key: useCaseSensitiveFileNames ? match[0] : toFileNameLowerCase(match[0]),\n        flags: questionWildcardIndex !== -1 && questionWildcardIndex < lastDirectorySeperatorIndex || starWildcardIndex !== -1 && starWildcardIndex < lastDirectorySeperatorIndex ? 1 : 0\n      };\n    }\n    if (isImplicitGlob(spec.substring(spec.lastIndexOf(directorySeparator) + 1))) {\n      return {\n        key: removeTrailingDirectorySeparator(useCaseSensitiveFileNames ? spec : toFileNameLowerCase(spec)),\n        flags: 1\n      };\n    }\n    return void 0;\n  }\n  function hasFileWithHigherPriorityExtension(file, literalFiles, wildcardFiles, extensions, keyMapper) {\n    const extensionGroup = forEach(extensions, (group2) => fileExtensionIsOneOf(file, group2) ? group2 : void 0);\n    if (!extensionGroup) {\n      return false;\n    }\n    for (const ext of extensionGroup) {\n      if (fileExtensionIs(file, ext)) {\n        return false;\n      }\n      const higherPriorityPath = keyMapper(changeExtension(file, ext));\n      if (literalFiles.has(higherPriorityPath) || wildcardFiles.has(higherPriorityPath)) {\n        if (ext === \".d.ts\" && (fileExtensionIs(file, \".js\") || fileExtensionIs(file, \".jsx\"))) {\n          continue;\n        }\n        return true;\n      }\n    }\n    return false;\n  }\n  function removeWildcardFilesWithLowerPriorityExtension(file, wildcardFiles, extensions, keyMapper) {\n    const extensionGroup = forEach(extensions, (group2) => fileExtensionIsOneOf(file, group2) ? group2 : void 0);\n    if (!extensionGroup) {\n      return;\n    }\n    for (let i = extensionGroup.length - 1; i >= 0; i--) {\n      const ext = extensionGroup[i];\n      if (fileExtensionIs(file, ext)) {\n        return;\n      }\n      const lowerPriorityPath = keyMapper(changeExtension(file, ext));\n      wildcardFiles.delete(lowerPriorityPath);\n    }\n  }\n  function convertCompilerOptionsForTelemetry(opts) {\n    const out = {};\n    for (const key in opts) {\n      if (hasProperty(opts, key)) {\n        const type = getOptionFromName(key);\n        if (type !== void 0) {\n          out[key] = getOptionValueWithEmptyStrings(opts[key], type);\n        }\n      }\n    }\n    return out;\n  }\n  function getOptionValueWithEmptyStrings(value, option) {\n    switch (option.type) {\n      case \"object\":\n        return \"\";\n      case \"string\":\n        return \"\";\n      case \"number\":\n        return typeof value === \"number\" ? value : \"\";\n      case \"boolean\":\n        return typeof value === \"boolean\" ? value : \"\";\n      case \"listOrElement\":\n        if (!isArray(value))\n          return getOptionValueWithEmptyStrings(value, option.element);\n      case \"list\":\n        const elementType = option.element;\n        return isArray(value) ? value.map((v) => getOptionValueWithEmptyStrings(v, elementType)) : \"\";\n      default:\n        return forEachEntry(option.type, (optionEnumValue, optionStringValue) => {\n          if (optionEnumValue === value) {\n            return optionStringValue;\n          }\n        });\n    }\n  }\n  function getDefaultValueForOption(option) {\n    switch (option.type) {\n      case \"number\":\n        return 1;\n      case \"boolean\":\n        return true;\n      case \"string\":\n        const defaultValue = option.defaultValueDescription;\n        return option.isFilePath ? `./${defaultValue && typeof defaultValue === \"string\" ? defaultValue : \"\"}` : \"\";\n      case \"list\":\n        return [];\n      case \"listOrElement\":\n        return getDefaultValueForOption(option.element);\n      case \"object\":\n        return {};\n      default:\n        const value = firstOrUndefinedIterator(option.type.keys());\n        if (value !== void 0)\n          return value;\n        return Debug.fail(\"Expected 'option.type' to have entries.\");\n    }\n  }\n  var compileOnSaveCommandLineOption, jsxOptionMap, inverseJsxOptionMap, libEntries, libs, libMap, optionsForWatch, commonOptionsWithBuild, targetOptionDeclaration, moduleOptionDeclaration, commandOptionsWithoutBuild, optionDeclarations, semanticDiagnosticsOptionDeclarations, affectsEmitOptionDeclarations, affectsDeclarationPathOptionDeclarations, moduleResolutionOptionDeclarations, sourceFileAffectingCompilerOptions, optionsAffectingProgramStructure, transpileOptionValueCompilerOptions, optionsForBuild, buildOpts, typeAcquisitionDeclarations, optionsNameMapCache, compilerOptionsAlternateMode, defaultInitCompilerOptions, compilerOptionsDidYouMeanDiagnostics, buildOptionsNameMapCache, buildOptionsAlternateMode, buildOptionsDidYouMeanDiagnostics, typeAcquisitionDidYouMeanDiagnostics, watchOptionsNameMapCache, watchOptionsDidYouMeanDiagnostics, commandLineCompilerOptionsMapCache, commandLineWatchOptionsMapCache, commandLineTypeAcquisitionMapCache, extendsOptionDeclaration, _tsconfigRootOptions, defaultIncludeSpec, invalidTrailingRecursionPattern, wildcardDirectoryPattern;\n  var init_commandLineParser = __esm({\n    \"src/compiler/commandLineParser.ts\"() {\n      \"use strict\";\n      init_ts2();\n      compileOnSaveCommandLineOption = {\n        name: \"compileOnSave\",\n        type: \"boolean\",\n        defaultValueDescription: false\n      };\n      jsxOptionMap = new Map(Object.entries({\n        \"preserve\": 1,\n        \"react-native\": 3,\n        \"react\": 2,\n        \"react-jsx\": 4,\n        \"react-jsxdev\": 5\n      }));\n      inverseJsxOptionMap = new Map(mapIterator(jsxOptionMap.entries(), ([key, value]) => [\"\" + value, key]));\n      libEntries = [\n        [\"es5\", \"lib.es5.d.ts\"],\n        [\"es6\", \"lib.es2015.d.ts\"],\n        [\"es2015\", \"lib.es2015.d.ts\"],\n        [\"es7\", \"lib.es2016.d.ts\"],\n        [\"es2016\", \"lib.es2016.d.ts\"],\n        [\"es2017\", \"lib.es2017.d.ts\"],\n        [\"es2018\", \"lib.es2018.d.ts\"],\n        [\"es2019\", \"lib.es2019.d.ts\"],\n        [\"es2020\", \"lib.es2020.d.ts\"],\n        [\"es2021\", \"lib.es2021.d.ts\"],\n        [\"es2022\", \"lib.es2022.d.ts\"],\n        [\"es2023\", \"lib.es2023.d.ts\"],\n        [\"esnext\", \"lib.esnext.d.ts\"],\n        [\"dom\", \"lib.dom.d.ts\"],\n        [\"dom.iterable\", \"lib.dom.iterable.d.ts\"],\n        [\"webworker\", \"lib.webworker.d.ts\"],\n        [\"webworker.importscripts\", \"lib.webworker.importscripts.d.ts\"],\n        [\"webworker.iterable\", \"lib.webworker.iterable.d.ts\"],\n        [\"scripthost\", \"lib.scripthost.d.ts\"],\n        [\"es2015.core\", \"lib.es2015.core.d.ts\"],\n        [\"es2015.collection\", \"lib.es2015.collection.d.ts\"],\n        [\"es2015.generator\", \"lib.es2015.generator.d.ts\"],\n        [\"es2015.iterable\", \"lib.es2015.iterable.d.ts\"],\n        [\"es2015.promise\", \"lib.es2015.promise.d.ts\"],\n        [\"es2015.proxy\", \"lib.es2015.proxy.d.ts\"],\n        [\"es2015.reflect\", \"lib.es2015.reflect.d.ts\"],\n        [\"es2015.symbol\", \"lib.es2015.symbol.d.ts\"],\n        [\"es2015.symbol.wellknown\", \"lib.es2015.symbol.wellknown.d.ts\"],\n        [\"es2016.array.include\", \"lib.es2016.array.include.d.ts\"],\n        [\"es2017.object\", \"lib.es2017.object.d.ts\"],\n        [\"es2017.sharedmemory\", \"lib.es2017.sharedmemory.d.ts\"],\n        [\"es2017.string\", \"lib.es2017.string.d.ts\"],\n        [\"es2017.intl\", \"lib.es2017.intl.d.ts\"],\n        [\"es2017.typedarrays\", \"lib.es2017.typedarrays.d.ts\"],\n        [\"es2018.asyncgenerator\", \"lib.es2018.asyncgenerator.d.ts\"],\n        [\"es2018.asynciterable\", \"lib.es2018.asynciterable.d.ts\"],\n        [\"es2018.intl\", \"lib.es2018.intl.d.ts\"],\n        [\"es2018.promise\", \"lib.es2018.promise.d.ts\"],\n        [\"es2018.regexp\", \"lib.es2018.regexp.d.ts\"],\n        [\"es2019.array\", \"lib.es2019.array.d.ts\"],\n        [\"es2019.object\", \"lib.es2019.object.d.ts\"],\n        [\"es2019.string\", \"lib.es2019.string.d.ts\"],\n        [\"es2019.symbol\", \"lib.es2019.symbol.d.ts\"],\n        [\"es2019.intl\", \"lib.es2019.intl.d.ts\"],\n        [\"es2020.bigint\", \"lib.es2020.bigint.d.ts\"],\n        [\"es2020.date\", \"lib.es2020.date.d.ts\"],\n        [\"es2020.promise\", \"lib.es2020.promise.d.ts\"],\n        [\"es2020.sharedmemory\", \"lib.es2020.sharedmemory.d.ts\"],\n        [\"es2020.string\", \"lib.es2020.string.d.ts\"],\n        [\"es2020.symbol.wellknown\", \"lib.es2020.symbol.wellknown.d.ts\"],\n        [\"es2020.intl\", \"lib.es2020.intl.d.ts\"],\n        [\"es2020.number\", \"lib.es2020.number.d.ts\"],\n        [\"es2021.promise\", \"lib.es2021.promise.d.ts\"],\n        [\"es2021.string\", \"lib.es2021.string.d.ts\"],\n        [\"es2021.weakref\", \"lib.es2021.weakref.d.ts\"],\n        [\"es2021.intl\", \"lib.es2021.intl.d.ts\"],\n        [\"es2022.array\", \"lib.es2022.array.d.ts\"],\n        [\"es2022.error\", \"lib.es2022.error.d.ts\"],\n        [\"es2022.intl\", \"lib.es2022.intl.d.ts\"],\n        [\"es2022.object\", \"lib.es2022.object.d.ts\"],\n        [\"es2022.sharedmemory\", \"lib.es2022.sharedmemory.d.ts\"],\n        [\"es2022.string\", \"lib.es2022.string.d.ts\"],\n        [\"es2022.regexp\", \"lib.es2022.regexp.d.ts\"],\n        [\"es2023.array\", \"lib.es2023.array.d.ts\"],\n        [\"esnext.array\", \"lib.es2023.array.d.ts\"],\n        [\"esnext.symbol\", \"lib.es2019.symbol.d.ts\"],\n        [\"esnext.asynciterable\", \"lib.es2018.asynciterable.d.ts\"],\n        [\"esnext.intl\", \"lib.esnext.intl.d.ts\"],\n        [\"esnext.bigint\", \"lib.es2020.bigint.d.ts\"],\n        [\"esnext.string\", \"lib.es2022.string.d.ts\"],\n        [\"esnext.promise\", \"lib.es2021.promise.d.ts\"],\n        [\"esnext.weakref\", \"lib.es2021.weakref.d.ts\"],\n        [\"decorators\", \"lib.decorators.d.ts\"],\n        [\"decorators.legacy\", \"lib.decorators.legacy.d.ts\"]\n      ];\n      libs = libEntries.map((entry) => entry[0]);\n      libMap = new Map(libEntries);\n      optionsForWatch = [\n        {\n          name: \"watchFile\",\n          type: new Map(Object.entries({\n            fixedpollinginterval: 0,\n            prioritypollinginterval: 1,\n            dynamicprioritypolling: 2,\n            fixedchunksizepolling: 3,\n            usefsevents: 4,\n            usefseventsonparentdirectory: 5\n          })),\n          category: Diagnostics.Watch_and_Build_Modes,\n          description: Diagnostics.Specify_how_the_TypeScript_watch_mode_works,\n          defaultValueDescription: 4\n        },\n        {\n          name: \"watchDirectory\",\n          type: new Map(Object.entries({\n            usefsevents: 0,\n            fixedpollinginterval: 1,\n            dynamicprioritypolling: 2,\n            fixedchunksizepolling: 3\n          })),\n          category: Diagnostics.Watch_and_Build_Modes,\n          description: Diagnostics.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,\n          defaultValueDescription: 0\n        },\n        {\n          name: \"fallbackPolling\",\n          type: new Map(Object.entries({\n            fixedinterval: 0,\n            priorityinterval: 1,\n            dynamicpriority: 2,\n            fixedchunksize: 3\n          })),\n          category: Diagnostics.Watch_and_Build_Modes,\n          description: Diagnostics.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,\n          defaultValueDescription: 1\n        },\n        {\n          name: \"synchronousWatchDirectory\",\n          type: \"boolean\",\n          category: Diagnostics.Watch_and_Build_Modes,\n          description: Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,\n          defaultValueDescription: false\n        },\n        {\n          name: \"excludeDirectories\",\n          type: \"list\",\n          element: {\n            name: \"excludeDirectory\",\n            type: \"string\",\n            isFilePath: true,\n            extraValidation: specToDiagnostic\n          },\n          category: Diagnostics.Watch_and_Build_Modes,\n          description: Diagnostics.Remove_a_list_of_directories_from_the_watch_process\n        },\n        {\n          name: \"excludeFiles\",\n          type: \"list\",\n          element: {\n            name: \"excludeFile\",\n            type: \"string\",\n            isFilePath: true,\n            extraValidation: specToDiagnostic\n          },\n          category: Diagnostics.Watch_and_Build_Modes,\n          description: Diagnostics.Remove_a_list_of_files_from_the_watch_mode_s_processing\n        }\n      ];\n      commonOptionsWithBuild = [\n        {\n          name: \"help\",\n          shortName: \"h\",\n          type: \"boolean\",\n          showInSimplifiedHelpView: true,\n          isCommandLineOnly: true,\n          category: Diagnostics.Command_line_Options,\n          description: Diagnostics.Print_this_message,\n          defaultValueDescription: false\n        },\n        {\n          name: \"help\",\n          shortName: \"?\",\n          type: \"boolean\",\n          isCommandLineOnly: true,\n          category: Diagnostics.Command_line_Options,\n          defaultValueDescription: false\n        },\n        {\n          name: \"watch\",\n          shortName: \"w\",\n          type: \"boolean\",\n          showInSimplifiedHelpView: true,\n          isCommandLineOnly: true,\n          category: Diagnostics.Command_line_Options,\n          description: Diagnostics.Watch_input_files,\n          defaultValueDescription: false\n        },\n        {\n          name: \"preserveWatchOutput\",\n          type: \"boolean\",\n          showInSimplifiedHelpView: false,\n          category: Diagnostics.Output_Formatting,\n          description: Diagnostics.Disable_wiping_the_console_in_watch_mode,\n          defaultValueDescription: false\n        },\n        {\n          name: \"listFiles\",\n          type: \"boolean\",\n          category: Diagnostics.Compiler_Diagnostics,\n          description: Diagnostics.Print_all_of_the_files_read_during_the_compilation,\n          defaultValueDescription: false\n        },\n        {\n          name: \"explainFiles\",\n          type: \"boolean\",\n          category: Diagnostics.Compiler_Diagnostics,\n          description: Diagnostics.Print_files_read_during_the_compilation_including_why_it_was_included,\n          defaultValueDescription: false\n        },\n        {\n          name: \"listEmittedFiles\",\n          type: \"boolean\",\n          category: Diagnostics.Compiler_Diagnostics,\n          description: Diagnostics.Print_the_names_of_emitted_files_after_a_compilation,\n          defaultValueDescription: false\n        },\n        {\n          name: \"pretty\",\n          type: \"boolean\",\n          showInSimplifiedHelpView: true,\n          category: Diagnostics.Output_Formatting,\n          description: Diagnostics.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,\n          defaultValueDescription: true\n        },\n        {\n          name: \"traceResolution\",\n          type: \"boolean\",\n          category: Diagnostics.Compiler_Diagnostics,\n          description: Diagnostics.Log_paths_used_during_the_moduleResolution_process,\n          defaultValueDescription: false\n        },\n        {\n          name: \"diagnostics\",\n          type: \"boolean\",\n          category: Diagnostics.Compiler_Diagnostics,\n          description: Diagnostics.Output_compiler_performance_information_after_building,\n          defaultValueDescription: false\n        },\n        {\n          name: \"extendedDiagnostics\",\n          type: \"boolean\",\n          category: Diagnostics.Compiler_Diagnostics,\n          description: Diagnostics.Output_more_detailed_compiler_performance_information_after_building,\n          defaultValueDescription: false\n        },\n        {\n          name: \"generateCpuProfile\",\n          type: \"string\",\n          isFilePath: true,\n          paramType: Diagnostics.FILE_OR_DIRECTORY,\n          category: Diagnostics.Compiler_Diagnostics,\n          description: Diagnostics.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,\n          defaultValueDescription: \"profile.cpuprofile\"\n        },\n        {\n          name: \"generateTrace\",\n          type: \"string\",\n          isFilePath: true,\n          isCommandLineOnly: true,\n          paramType: Diagnostics.DIRECTORY,\n          category: Diagnostics.Compiler_Diagnostics,\n          description: Diagnostics.Generates_an_event_trace_and_a_list_of_types\n        },\n        {\n          name: \"incremental\",\n          shortName: \"i\",\n          type: \"boolean\",\n          category: Diagnostics.Projects,\n          description: Diagnostics.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,\n          transpileOptionValue: void 0,\n          defaultValueDescription: Diagnostics.false_unless_composite_is_set\n        },\n        {\n          name: \"declaration\",\n          shortName: \"d\",\n          type: \"boolean\",\n          affectsBuildInfo: true,\n          showInSimplifiedHelpView: true,\n          category: Diagnostics.Emit,\n          transpileOptionValue: void 0,\n          description: Diagnostics.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,\n          defaultValueDescription: Diagnostics.false_unless_composite_is_set\n        },\n        {\n          name: \"declarationMap\",\n          type: \"boolean\",\n          affectsBuildInfo: true,\n          showInSimplifiedHelpView: true,\n          category: Diagnostics.Emit,\n          transpileOptionValue: void 0,\n          defaultValueDescription: false,\n          description: Diagnostics.Create_sourcemaps_for_d_ts_files\n        },\n        {\n          name: \"emitDeclarationOnly\",\n          type: \"boolean\",\n          affectsBuildInfo: true,\n          showInSimplifiedHelpView: true,\n          category: Diagnostics.Emit,\n          description: Diagnostics.Only_output_d_ts_files_and_not_JavaScript_files,\n          transpileOptionValue: void 0,\n          defaultValueDescription: false\n        },\n        {\n          name: \"sourceMap\",\n          type: \"boolean\",\n          affectsBuildInfo: true,\n          showInSimplifiedHelpView: true,\n          category: Diagnostics.Emit,\n          defaultValueDescription: false,\n          description: Diagnostics.Create_source_map_files_for_emitted_JavaScript_files\n        },\n        {\n          name: \"inlineSourceMap\",\n          type: \"boolean\",\n          affectsBuildInfo: true,\n          category: Diagnostics.Emit,\n          description: Diagnostics.Include_sourcemap_files_inside_the_emitted_JavaScript,\n          defaultValueDescription: false\n        },\n        {\n          name: \"assumeChangesOnlyAffectDirectDependencies\",\n          type: \"boolean\",\n          affectsSemanticDiagnostics: true,\n          affectsEmit: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Watch_and_Build_Modes,\n          description: Diagnostics.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,\n          defaultValueDescription: false\n        },\n        {\n          name: \"locale\",\n          type: \"string\",\n          category: Diagnostics.Command_line_Options,\n          isCommandLineOnly: true,\n          description: Diagnostics.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,\n          defaultValueDescription: Diagnostics.Platform_specific\n        }\n      ];\n      targetOptionDeclaration = {\n        name: \"target\",\n        shortName: \"t\",\n        type: new Map(Object.entries({\n          es3: 0,\n          es5: 1,\n          es6: 2,\n          es2015: 2,\n          es2016: 3,\n          es2017: 4,\n          es2018: 5,\n          es2019: 6,\n          es2020: 7,\n          es2021: 8,\n          es2022: 9,\n          esnext: 99\n        })),\n        affectsSourceFile: true,\n        affectsModuleResolution: true,\n        affectsEmit: true,\n        affectsBuildInfo: true,\n        paramType: Diagnostics.VERSION,\n        showInSimplifiedHelpView: true,\n        category: Diagnostics.Language_and_Environment,\n        description: Diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,\n        defaultValueDescription: 1\n      };\n      moduleOptionDeclaration = {\n        name: \"module\",\n        shortName: \"m\",\n        type: new Map(Object.entries({\n          none: 0,\n          commonjs: 1,\n          amd: 2,\n          system: 4,\n          umd: 3,\n          es6: 5,\n          es2015: 5,\n          es2020: 6,\n          es2022: 7,\n          esnext: 99,\n          node16: 100,\n          nodenext: 199\n        })),\n        affectsModuleResolution: true,\n        affectsEmit: true,\n        affectsBuildInfo: true,\n        paramType: Diagnostics.KIND,\n        showInSimplifiedHelpView: true,\n        category: Diagnostics.Modules,\n        description: Diagnostics.Specify_what_module_code_is_generated,\n        defaultValueDescription: void 0\n      };\n      commandOptionsWithoutBuild = [\n        {\n          name: \"all\",\n          type: \"boolean\",\n          showInSimplifiedHelpView: true,\n          category: Diagnostics.Command_line_Options,\n          description: Diagnostics.Show_all_compiler_options,\n          defaultValueDescription: false\n        },\n        {\n          name: \"version\",\n          shortName: \"v\",\n          type: \"boolean\",\n          showInSimplifiedHelpView: true,\n          category: Diagnostics.Command_line_Options,\n          description: Diagnostics.Print_the_compiler_s_version,\n          defaultValueDescription: false\n        },\n        {\n          name: \"init\",\n          type: \"boolean\",\n          showInSimplifiedHelpView: true,\n          category: Diagnostics.Command_line_Options,\n          description: Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,\n          defaultValueDescription: false\n        },\n        {\n          name: \"project\",\n          shortName: \"p\",\n          type: \"string\",\n          isFilePath: true,\n          showInSimplifiedHelpView: true,\n          category: Diagnostics.Command_line_Options,\n          paramType: Diagnostics.FILE_OR_DIRECTORY,\n          description: Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json\n        },\n        {\n          name: \"build\",\n          type: \"boolean\",\n          shortName: \"b\",\n          showInSimplifiedHelpView: true,\n          category: Diagnostics.Command_line_Options,\n          description: Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,\n          defaultValueDescription: false\n        },\n        {\n          name: \"showConfig\",\n          type: \"boolean\",\n          showInSimplifiedHelpView: true,\n          category: Diagnostics.Command_line_Options,\n          isCommandLineOnly: true,\n          description: Diagnostics.Print_the_final_configuration_instead_of_building,\n          defaultValueDescription: false\n        },\n        {\n          name: \"listFilesOnly\",\n          type: \"boolean\",\n          category: Diagnostics.Command_line_Options,\n          isCommandLineOnly: true,\n          description: Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,\n          defaultValueDescription: false\n        },\n        targetOptionDeclaration,\n        moduleOptionDeclaration,\n        {\n          name: \"lib\",\n          type: \"list\",\n          element: {\n            name: \"lib\",\n            type: libMap,\n            defaultValueDescription: void 0\n          },\n          affectsProgramStructure: true,\n          showInSimplifiedHelpView: true,\n          category: Diagnostics.Language_and_Environment,\n          description: Diagnostics.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,\n          transpileOptionValue: void 0\n        },\n        {\n          name: \"allowJs\",\n          type: \"boolean\",\n          affectsModuleResolution: true,\n          showInSimplifiedHelpView: true,\n          category: Diagnostics.JavaScript_Support,\n          description: Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,\n          defaultValueDescription: false\n        },\n        {\n          name: \"checkJs\",\n          type: \"boolean\",\n          showInSimplifiedHelpView: true,\n          category: Diagnostics.JavaScript_Support,\n          description: Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files,\n          defaultValueDescription: false\n        },\n        {\n          name: \"jsx\",\n          type: jsxOptionMap,\n          affectsSourceFile: true,\n          affectsEmit: true,\n          affectsBuildInfo: true,\n          affectsModuleResolution: true,\n          paramType: Diagnostics.KIND,\n          showInSimplifiedHelpView: true,\n          category: Diagnostics.Language_and_Environment,\n          description: Diagnostics.Specify_what_JSX_code_is_generated,\n          defaultValueDescription: void 0\n        },\n        {\n          name: \"outFile\",\n          type: \"string\",\n          affectsEmit: true,\n          affectsBuildInfo: true,\n          affectsDeclarationPath: true,\n          isFilePath: true,\n          paramType: Diagnostics.FILE,\n          showInSimplifiedHelpView: true,\n          category: Diagnostics.Emit,\n          description: Diagnostics.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,\n          transpileOptionValue: void 0\n        },\n        {\n          name: \"outDir\",\n          type: \"string\",\n          affectsEmit: true,\n          affectsBuildInfo: true,\n          affectsDeclarationPath: true,\n          isFilePath: true,\n          paramType: Diagnostics.DIRECTORY,\n          showInSimplifiedHelpView: true,\n          category: Diagnostics.Emit,\n          description: Diagnostics.Specify_an_output_folder_for_all_emitted_files\n        },\n        {\n          name: \"rootDir\",\n          type: \"string\",\n          affectsEmit: true,\n          affectsBuildInfo: true,\n          affectsDeclarationPath: true,\n          isFilePath: true,\n          paramType: Diagnostics.LOCATION,\n          category: Diagnostics.Modules,\n          description: Diagnostics.Specify_the_root_folder_within_your_source_files,\n          defaultValueDescription: Diagnostics.Computed_from_the_list_of_input_files\n        },\n        {\n          name: \"composite\",\n          type: \"boolean\",\n          affectsBuildInfo: true,\n          isTSConfigOnly: true,\n          category: Diagnostics.Projects,\n          transpileOptionValue: void 0,\n          defaultValueDescription: false,\n          description: Diagnostics.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references\n        },\n        {\n          name: \"tsBuildInfoFile\",\n          type: \"string\",\n          affectsEmit: true,\n          affectsBuildInfo: true,\n          isFilePath: true,\n          paramType: Diagnostics.FILE,\n          category: Diagnostics.Projects,\n          transpileOptionValue: void 0,\n          defaultValueDescription: \".tsbuildinfo\",\n          description: Diagnostics.Specify_the_path_to_tsbuildinfo_incremental_compilation_file\n        },\n        {\n          name: \"removeComments\",\n          type: \"boolean\",\n          affectsEmit: true,\n          affectsBuildInfo: true,\n          showInSimplifiedHelpView: true,\n          category: Diagnostics.Emit,\n          defaultValueDescription: false,\n          description: Diagnostics.Disable_emitting_comments\n        },\n        {\n          name: \"noEmit\",\n          type: \"boolean\",\n          showInSimplifiedHelpView: true,\n          category: Diagnostics.Emit,\n          description: Diagnostics.Disable_emitting_files_from_a_compilation,\n          transpileOptionValue: void 0,\n          defaultValueDescription: false\n        },\n        {\n          name: \"importHelpers\",\n          type: \"boolean\",\n          affectsEmit: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Emit,\n          description: Diagnostics.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,\n          defaultValueDescription: false\n        },\n        {\n          name: \"importsNotUsedAsValues\",\n          type: new Map(Object.entries({\n            remove: 0,\n            preserve: 1,\n            error: 2\n          })),\n          affectsEmit: true,\n          affectsSemanticDiagnostics: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Emit,\n          description: Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,\n          defaultValueDescription: 0\n        },\n        {\n          name: \"downlevelIteration\",\n          type: \"boolean\",\n          affectsEmit: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Emit,\n          description: Diagnostics.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,\n          defaultValueDescription: false\n        },\n        {\n          name: \"isolatedModules\",\n          type: \"boolean\",\n          category: Diagnostics.Interop_Constraints,\n          description: Diagnostics.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,\n          transpileOptionValue: true,\n          defaultValueDescription: false\n        },\n        {\n          name: \"verbatimModuleSyntax\",\n          type: \"boolean\",\n          category: Diagnostics.Interop_Constraints,\n          description: Diagnostics.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,\n          defaultValueDescription: false\n        },\n        {\n          name: \"strict\",\n          type: \"boolean\",\n          affectsBuildInfo: true,\n          showInSimplifiedHelpView: true,\n          category: Diagnostics.Type_Checking,\n          description: Diagnostics.Enable_all_strict_type_checking_options,\n          defaultValueDescription: false\n        },\n        {\n          name: \"noImplicitAny\",\n          type: \"boolean\",\n          affectsSemanticDiagnostics: true,\n          affectsBuildInfo: true,\n          strictFlag: true,\n          category: Diagnostics.Type_Checking,\n          description: Diagnostics.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,\n          defaultValueDescription: Diagnostics.false_unless_strict_is_set\n        },\n        {\n          name: \"strictNullChecks\",\n          type: \"boolean\",\n          affectsSemanticDiagnostics: true,\n          affectsBuildInfo: true,\n          strictFlag: true,\n          category: Diagnostics.Type_Checking,\n          description: Diagnostics.When_type_checking_take_into_account_null_and_undefined,\n          defaultValueDescription: Diagnostics.false_unless_strict_is_set\n        },\n        {\n          name: \"strictFunctionTypes\",\n          type: \"boolean\",\n          affectsSemanticDiagnostics: true,\n          affectsBuildInfo: true,\n          strictFlag: true,\n          category: Diagnostics.Type_Checking,\n          description: Diagnostics.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,\n          defaultValueDescription: Diagnostics.false_unless_strict_is_set\n        },\n        {\n          name: \"strictBindCallApply\",\n          type: \"boolean\",\n          affectsSemanticDiagnostics: true,\n          affectsBuildInfo: true,\n          strictFlag: true,\n          category: Diagnostics.Type_Checking,\n          description: Diagnostics.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,\n          defaultValueDescription: Diagnostics.false_unless_strict_is_set\n        },\n        {\n          name: \"strictPropertyInitialization\",\n          type: \"boolean\",\n          affectsSemanticDiagnostics: true,\n          affectsBuildInfo: true,\n          strictFlag: true,\n          category: Diagnostics.Type_Checking,\n          description: Diagnostics.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,\n          defaultValueDescription: Diagnostics.false_unless_strict_is_set\n        },\n        {\n          name: \"noImplicitThis\",\n          type: \"boolean\",\n          affectsSemanticDiagnostics: true,\n          affectsBuildInfo: true,\n          strictFlag: true,\n          category: Diagnostics.Type_Checking,\n          description: Diagnostics.Enable_error_reporting_when_this_is_given_the_type_any,\n          defaultValueDescription: Diagnostics.false_unless_strict_is_set\n        },\n        {\n          name: \"useUnknownInCatchVariables\",\n          type: \"boolean\",\n          affectsSemanticDiagnostics: true,\n          affectsBuildInfo: true,\n          strictFlag: true,\n          category: Diagnostics.Type_Checking,\n          description: Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any,\n          defaultValueDescription: false\n        },\n        {\n          name: \"alwaysStrict\",\n          type: \"boolean\",\n          affectsSourceFile: true,\n          affectsEmit: true,\n          affectsBuildInfo: true,\n          strictFlag: true,\n          category: Diagnostics.Type_Checking,\n          description: Diagnostics.Ensure_use_strict_is_always_emitted,\n          defaultValueDescription: Diagnostics.false_unless_strict_is_set\n        },\n        {\n          name: \"noUnusedLocals\",\n          type: \"boolean\",\n          affectsSemanticDiagnostics: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Type_Checking,\n          description: Diagnostics.Enable_error_reporting_when_local_variables_aren_t_read,\n          defaultValueDescription: false\n        },\n        {\n          name: \"noUnusedParameters\",\n          type: \"boolean\",\n          affectsSemanticDiagnostics: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Type_Checking,\n          description: Diagnostics.Raise_an_error_when_a_function_parameter_isn_t_read,\n          defaultValueDescription: false\n        },\n        {\n          name: \"exactOptionalPropertyTypes\",\n          type: \"boolean\",\n          affectsSemanticDiagnostics: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Type_Checking,\n          description: Diagnostics.Interpret_optional_property_types_as_written_rather_than_adding_undefined,\n          defaultValueDescription: false\n        },\n        {\n          name: \"noImplicitReturns\",\n          type: \"boolean\",\n          affectsSemanticDiagnostics: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Type_Checking,\n          description: Diagnostics.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,\n          defaultValueDescription: false\n        },\n        {\n          name: \"noFallthroughCasesInSwitch\",\n          type: \"boolean\",\n          affectsBindDiagnostics: true,\n          affectsSemanticDiagnostics: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Type_Checking,\n          description: Diagnostics.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,\n          defaultValueDescription: false\n        },\n        {\n          name: \"noUncheckedIndexedAccess\",\n          type: \"boolean\",\n          affectsSemanticDiagnostics: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Type_Checking,\n          description: Diagnostics.Add_undefined_to_a_type_when_accessed_using_an_index,\n          defaultValueDescription: false\n        },\n        {\n          name: \"noImplicitOverride\",\n          type: \"boolean\",\n          affectsSemanticDiagnostics: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Type_Checking,\n          description: Diagnostics.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,\n          defaultValueDescription: false\n        },\n        {\n          name: \"noPropertyAccessFromIndexSignature\",\n          type: \"boolean\",\n          affectsSemanticDiagnostics: true,\n          affectsBuildInfo: true,\n          showInSimplifiedHelpView: false,\n          category: Diagnostics.Type_Checking,\n          description: Diagnostics.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,\n          defaultValueDescription: false\n        },\n        {\n          name: \"moduleResolution\",\n          type: new Map(Object.entries({\n            node10: 2,\n            node: 2,\n            classic: 1,\n            node16: 3,\n            nodenext: 99,\n            bundler: 100\n          })),\n          deprecatedKeys: /* @__PURE__ */ new Set([\"node\"]),\n          affectsModuleResolution: true,\n          paramType: Diagnostics.STRATEGY,\n          category: Diagnostics.Modules,\n          description: Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,\n          defaultValueDescription: Diagnostics.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node\n        },\n        {\n          name: \"baseUrl\",\n          type: \"string\",\n          affectsModuleResolution: true,\n          isFilePath: true,\n          category: Diagnostics.Modules,\n          description: Diagnostics.Specify_the_base_directory_to_resolve_non_relative_module_names\n        },\n        {\n          name: \"paths\",\n          type: \"object\",\n          affectsModuleResolution: true,\n          isTSConfigOnly: true,\n          category: Diagnostics.Modules,\n          description: Diagnostics.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,\n          transpileOptionValue: void 0\n        },\n        {\n          name: \"rootDirs\",\n          type: \"list\",\n          isTSConfigOnly: true,\n          element: {\n            name: \"rootDirs\",\n            type: \"string\",\n            isFilePath: true\n          },\n          affectsModuleResolution: true,\n          category: Diagnostics.Modules,\n          description: Diagnostics.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,\n          transpileOptionValue: void 0,\n          defaultValueDescription: Diagnostics.Computed_from_the_list_of_input_files\n        },\n        {\n          name: \"typeRoots\",\n          type: \"list\",\n          element: {\n            name: \"typeRoots\",\n            type: \"string\",\n            isFilePath: true\n          },\n          affectsModuleResolution: true,\n          category: Diagnostics.Modules,\n          description: Diagnostics.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types\n        },\n        {\n          name: \"types\",\n          type: \"list\",\n          element: {\n            name: \"types\",\n            type: \"string\"\n          },\n          affectsProgramStructure: true,\n          showInSimplifiedHelpView: true,\n          category: Diagnostics.Modules,\n          description: Diagnostics.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,\n          transpileOptionValue: void 0\n        },\n        {\n          name: \"allowSyntheticDefaultImports\",\n          type: \"boolean\",\n          affectsSemanticDiagnostics: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Interop_Constraints,\n          description: Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,\n          defaultValueDescription: Diagnostics.module_system_or_esModuleInterop\n        },\n        {\n          name: \"esModuleInterop\",\n          type: \"boolean\",\n          affectsSemanticDiagnostics: true,\n          affectsEmit: true,\n          affectsBuildInfo: true,\n          showInSimplifiedHelpView: true,\n          category: Diagnostics.Interop_Constraints,\n          description: Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,\n          defaultValueDescription: false\n        },\n        {\n          name: \"preserveSymlinks\",\n          type: \"boolean\",\n          category: Diagnostics.Interop_Constraints,\n          description: Diagnostics.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,\n          defaultValueDescription: false\n        },\n        {\n          name: \"allowUmdGlobalAccess\",\n          type: \"boolean\",\n          affectsSemanticDiagnostics: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Modules,\n          description: Diagnostics.Allow_accessing_UMD_globals_from_modules,\n          defaultValueDescription: false\n        },\n        {\n          name: \"moduleSuffixes\",\n          type: \"list\",\n          element: {\n            name: \"suffix\",\n            type: \"string\"\n          },\n          listPreserveFalsyValues: true,\n          affectsModuleResolution: true,\n          category: Diagnostics.Modules,\n          description: Diagnostics.List_of_file_name_suffixes_to_search_when_resolving_a_module\n        },\n        {\n          name: \"allowImportingTsExtensions\",\n          type: \"boolean\",\n          affectsSemanticDiagnostics: true,\n          category: Diagnostics.Modules,\n          description: Diagnostics.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,\n          defaultValueDescription: false\n        },\n        {\n          name: \"resolvePackageJsonExports\",\n          type: \"boolean\",\n          affectsModuleResolution: true,\n          category: Diagnostics.Modules,\n          description: Diagnostics.Use_the_package_json_exports_field_when_resolving_package_imports,\n          defaultValueDescription: Diagnostics.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false\n        },\n        {\n          name: \"resolvePackageJsonImports\",\n          type: \"boolean\",\n          affectsModuleResolution: true,\n          category: Diagnostics.Modules,\n          description: Diagnostics.Use_the_package_json_imports_field_when_resolving_imports,\n          defaultValueDescription: Diagnostics.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false\n        },\n        {\n          name: \"customConditions\",\n          type: \"list\",\n          element: {\n            name: \"condition\",\n            type: \"string\"\n          },\n          affectsModuleResolution: true,\n          category: Diagnostics.Modules,\n          description: Diagnostics.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports\n        },\n        {\n          name: \"sourceRoot\",\n          type: \"string\",\n          affectsEmit: true,\n          affectsBuildInfo: true,\n          paramType: Diagnostics.LOCATION,\n          category: Diagnostics.Emit,\n          description: Diagnostics.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code\n        },\n        {\n          name: \"mapRoot\",\n          type: \"string\",\n          affectsEmit: true,\n          affectsBuildInfo: true,\n          paramType: Diagnostics.LOCATION,\n          category: Diagnostics.Emit,\n          description: Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations\n        },\n        {\n          name: \"inlineSources\",\n          type: \"boolean\",\n          affectsEmit: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Emit,\n          description: Diagnostics.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,\n          defaultValueDescription: false\n        },\n        {\n          name: \"experimentalDecorators\",\n          type: \"boolean\",\n          affectsEmit: true,\n          affectsSemanticDiagnostics: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Language_and_Environment,\n          description: Diagnostics.Enable_experimental_support_for_legacy_experimental_decorators,\n          defaultValueDescription: false\n        },\n        {\n          name: \"emitDecoratorMetadata\",\n          type: \"boolean\",\n          affectsSemanticDiagnostics: true,\n          affectsEmit: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Language_and_Environment,\n          description: Diagnostics.Emit_design_type_metadata_for_decorated_declarations_in_source_files,\n          defaultValueDescription: false\n        },\n        {\n          name: \"jsxFactory\",\n          type: \"string\",\n          category: Diagnostics.Language_and_Environment,\n          description: Diagnostics.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,\n          defaultValueDescription: \"`React.createElement`\"\n        },\n        {\n          name: \"jsxFragmentFactory\",\n          type: \"string\",\n          category: Diagnostics.Language_and_Environment,\n          description: Diagnostics.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,\n          defaultValueDescription: \"React.Fragment\"\n        },\n        {\n          name: \"jsxImportSource\",\n          type: \"string\",\n          affectsSemanticDiagnostics: true,\n          affectsEmit: true,\n          affectsBuildInfo: true,\n          affectsModuleResolution: true,\n          category: Diagnostics.Language_and_Environment,\n          description: Diagnostics.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,\n          defaultValueDescription: \"react\"\n        },\n        {\n          name: \"resolveJsonModule\",\n          type: \"boolean\",\n          affectsModuleResolution: true,\n          category: Diagnostics.Modules,\n          description: Diagnostics.Enable_importing_json_files,\n          defaultValueDescription: false\n        },\n        {\n          name: \"allowArbitraryExtensions\",\n          type: \"boolean\",\n          affectsProgramStructure: true,\n          category: Diagnostics.Modules,\n          description: Diagnostics.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,\n          defaultValueDescription: false\n        },\n        {\n          name: \"out\",\n          type: \"string\",\n          affectsEmit: true,\n          affectsBuildInfo: true,\n          affectsDeclarationPath: true,\n          isFilePath: false,\n          category: Diagnostics.Backwards_Compatibility,\n          paramType: Diagnostics.FILE,\n          transpileOptionValue: void 0,\n          description: Diagnostics.Deprecated_setting_Use_outFile_instead\n        },\n        {\n          name: \"reactNamespace\",\n          type: \"string\",\n          affectsEmit: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Language_and_Environment,\n          description: Diagnostics.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,\n          defaultValueDescription: \"`React`\"\n        },\n        {\n          name: \"skipDefaultLibCheck\",\n          type: \"boolean\",\n          affectsBuildInfo: true,\n          category: Diagnostics.Completeness,\n          description: Diagnostics.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,\n          defaultValueDescription: false\n        },\n        {\n          name: \"charset\",\n          type: \"string\",\n          category: Diagnostics.Backwards_Compatibility,\n          description: Diagnostics.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,\n          defaultValueDescription: \"utf8\"\n        },\n        {\n          name: \"emitBOM\",\n          type: \"boolean\",\n          affectsEmit: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Emit,\n          description: Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,\n          defaultValueDescription: false\n        },\n        {\n          name: \"newLine\",\n          type: new Map(Object.entries({\n            crlf: 0,\n            lf: 1\n          })),\n          affectsEmit: true,\n          affectsBuildInfo: true,\n          paramType: Diagnostics.NEWLINE,\n          category: Diagnostics.Emit,\n          description: Diagnostics.Set_the_newline_character_for_emitting_files,\n          defaultValueDescription: \"lf\"\n        },\n        {\n          name: \"noErrorTruncation\",\n          type: \"boolean\",\n          affectsSemanticDiagnostics: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Output_Formatting,\n          description: Diagnostics.Disable_truncating_types_in_error_messages,\n          defaultValueDescription: false\n        },\n        {\n          name: \"noLib\",\n          type: \"boolean\",\n          category: Diagnostics.Language_and_Environment,\n          affectsProgramStructure: true,\n          description: Diagnostics.Disable_including_any_library_files_including_the_default_lib_d_ts,\n          transpileOptionValue: true,\n          defaultValueDescription: false\n        },\n        {\n          name: \"noResolve\",\n          type: \"boolean\",\n          affectsModuleResolution: true,\n          category: Diagnostics.Modules,\n          description: Diagnostics.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,\n          transpileOptionValue: true,\n          defaultValueDescription: false\n        },\n        {\n          name: \"stripInternal\",\n          type: \"boolean\",\n          affectsEmit: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Emit,\n          description: Diagnostics.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,\n          defaultValueDescription: false\n        },\n        {\n          name: \"disableSizeLimit\",\n          type: \"boolean\",\n          affectsProgramStructure: true,\n          category: Diagnostics.Editor_Support,\n          description: Diagnostics.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,\n          defaultValueDescription: false\n        },\n        {\n          name: \"disableSourceOfProjectReferenceRedirect\",\n          type: \"boolean\",\n          isTSConfigOnly: true,\n          category: Diagnostics.Projects,\n          description: Diagnostics.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,\n          defaultValueDescription: false\n        },\n        {\n          name: \"disableSolutionSearching\",\n          type: \"boolean\",\n          isTSConfigOnly: true,\n          category: Diagnostics.Projects,\n          description: Diagnostics.Opt_a_project_out_of_multi_project_reference_checking_when_editing,\n          defaultValueDescription: false\n        },\n        {\n          name: \"disableReferencedProjectLoad\",\n          type: \"boolean\",\n          isTSConfigOnly: true,\n          category: Diagnostics.Projects,\n          description: Diagnostics.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,\n          defaultValueDescription: false\n        },\n        {\n          name: \"noImplicitUseStrict\",\n          type: \"boolean\",\n          affectsSemanticDiagnostics: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Backwards_Compatibility,\n          description: Diagnostics.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,\n          defaultValueDescription: false\n        },\n        {\n          name: \"noEmitHelpers\",\n          type: \"boolean\",\n          affectsEmit: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Emit,\n          description: Diagnostics.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,\n          defaultValueDescription: false\n        },\n        {\n          name: \"noEmitOnError\",\n          type: \"boolean\",\n          affectsEmit: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Emit,\n          transpileOptionValue: void 0,\n          description: Diagnostics.Disable_emitting_files_if_any_type_checking_errors_are_reported,\n          defaultValueDescription: false\n        },\n        {\n          name: \"preserveConstEnums\",\n          type: \"boolean\",\n          affectsEmit: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Emit,\n          description: Diagnostics.Disable_erasing_const_enum_declarations_in_generated_code,\n          defaultValueDescription: false\n        },\n        {\n          name: \"declarationDir\",\n          type: \"string\",\n          affectsEmit: true,\n          affectsBuildInfo: true,\n          affectsDeclarationPath: true,\n          isFilePath: true,\n          paramType: Diagnostics.DIRECTORY,\n          category: Diagnostics.Emit,\n          transpileOptionValue: void 0,\n          description: Diagnostics.Specify_the_output_directory_for_generated_declaration_files\n        },\n        {\n          name: \"skipLibCheck\",\n          type: \"boolean\",\n          affectsBuildInfo: true,\n          category: Diagnostics.Completeness,\n          description: Diagnostics.Skip_type_checking_all_d_ts_files,\n          defaultValueDescription: false\n        },\n        {\n          name: \"allowUnusedLabels\",\n          type: \"boolean\",\n          affectsBindDiagnostics: true,\n          affectsSemanticDiagnostics: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Type_Checking,\n          description: Diagnostics.Disable_error_reporting_for_unused_labels,\n          defaultValueDescription: void 0\n        },\n        {\n          name: \"allowUnreachableCode\",\n          type: \"boolean\",\n          affectsBindDiagnostics: true,\n          affectsSemanticDiagnostics: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Type_Checking,\n          description: Diagnostics.Disable_error_reporting_for_unreachable_code,\n          defaultValueDescription: void 0\n        },\n        {\n          name: \"suppressExcessPropertyErrors\",\n          type: \"boolean\",\n          affectsSemanticDiagnostics: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Backwards_Compatibility,\n          description: Diagnostics.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,\n          defaultValueDescription: false\n        },\n        {\n          name: \"suppressImplicitAnyIndexErrors\",\n          type: \"boolean\",\n          affectsSemanticDiagnostics: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Backwards_Compatibility,\n          description: Diagnostics.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,\n          defaultValueDescription: false\n        },\n        {\n          name: \"forceConsistentCasingInFileNames\",\n          type: \"boolean\",\n          affectsModuleResolution: true,\n          category: Diagnostics.Interop_Constraints,\n          description: Diagnostics.Ensure_that_casing_is_correct_in_imports,\n          defaultValueDescription: true\n        },\n        {\n          name: \"maxNodeModuleJsDepth\",\n          type: \"number\",\n          affectsModuleResolution: true,\n          category: Diagnostics.JavaScript_Support,\n          description: Diagnostics.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,\n          defaultValueDescription: 0\n        },\n        {\n          name: \"noStrictGenericChecks\",\n          type: \"boolean\",\n          affectsSemanticDiagnostics: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Backwards_Compatibility,\n          description: Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types,\n          defaultValueDescription: false\n        },\n        {\n          name: \"useDefineForClassFields\",\n          type: \"boolean\",\n          affectsSemanticDiagnostics: true,\n          affectsEmit: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Language_and_Environment,\n          description: Diagnostics.Emit_ECMAScript_standard_compliant_class_fields,\n          defaultValueDescription: Diagnostics.true_for_ES2022_and_above_including_ESNext\n        },\n        {\n          name: \"preserveValueImports\",\n          type: \"boolean\",\n          affectsEmit: true,\n          affectsBuildInfo: true,\n          category: Diagnostics.Emit,\n          description: Diagnostics.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,\n          defaultValueDescription: false\n        },\n        {\n          name: \"keyofStringsOnly\",\n          type: \"boolean\",\n          category: Diagnostics.Backwards_Compatibility,\n          description: Diagnostics.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,\n          defaultValueDescription: false\n        },\n        {\n          name: \"plugins\",\n          type: \"list\",\n          isTSConfigOnly: true,\n          element: {\n            name: \"plugin\",\n            type: \"object\"\n          },\n          description: Diagnostics.Specify_a_list_of_language_service_plugins_to_include,\n          category: Diagnostics.Editor_Support\n        },\n        {\n          name: \"moduleDetection\",\n          type: new Map(Object.entries({\n            auto: 2,\n            legacy: 1,\n            force: 3\n          })),\n          affectsModuleResolution: true,\n          description: Diagnostics.Control_what_method_is_used_to_detect_module_format_JS_files,\n          category: Diagnostics.Language_and_Environment,\n          defaultValueDescription: Diagnostics.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules\n        },\n        {\n          name: \"ignoreDeprecations\",\n          type: \"string\",\n          defaultValueDescription: void 0\n        }\n      ];\n      optionDeclarations = [\n        ...commonOptionsWithBuild,\n        ...commandOptionsWithoutBuild\n      ];\n      semanticDiagnosticsOptionDeclarations = optionDeclarations.filter((option) => !!option.affectsSemanticDiagnostics);\n      affectsEmitOptionDeclarations = optionDeclarations.filter((option) => !!option.affectsEmit);\n      affectsDeclarationPathOptionDeclarations = optionDeclarations.filter((option) => !!option.affectsDeclarationPath);\n      moduleResolutionOptionDeclarations = optionDeclarations.filter((option) => !!option.affectsModuleResolution);\n      sourceFileAffectingCompilerOptions = optionDeclarations.filter((option) => !!option.affectsSourceFile || !!option.affectsModuleResolution || !!option.affectsBindDiagnostics);\n      optionsAffectingProgramStructure = optionDeclarations.filter((option) => !!option.affectsProgramStructure);\n      transpileOptionValueCompilerOptions = optionDeclarations.filter((option) => hasProperty(option, \"transpileOptionValue\"));\n      optionsForBuild = [\n        {\n          name: \"verbose\",\n          shortName: \"v\",\n          category: Diagnostics.Command_line_Options,\n          description: Diagnostics.Enable_verbose_logging,\n          type: \"boolean\",\n          defaultValueDescription: false\n        },\n        {\n          name: \"dry\",\n          shortName: \"d\",\n          category: Diagnostics.Command_line_Options,\n          description: Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,\n          type: \"boolean\",\n          defaultValueDescription: false\n        },\n        {\n          name: \"force\",\n          shortName: \"f\",\n          category: Diagnostics.Command_line_Options,\n          description: Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,\n          type: \"boolean\",\n          defaultValueDescription: false\n        },\n        {\n          name: \"clean\",\n          category: Diagnostics.Command_line_Options,\n          description: Diagnostics.Delete_the_outputs_of_all_projects,\n          type: \"boolean\",\n          defaultValueDescription: false\n        }\n      ];\n      buildOpts = [\n        ...commonOptionsWithBuild,\n        ...optionsForBuild\n      ];\n      typeAcquisitionDeclarations = [\n        {\n          name: \"enable\",\n          type: \"boolean\",\n          defaultValueDescription: false\n        },\n        {\n          name: \"include\",\n          type: \"list\",\n          element: {\n            name: \"include\",\n            type: \"string\"\n          }\n        },\n        {\n          name: \"exclude\",\n          type: \"list\",\n          element: {\n            name: \"exclude\",\n            type: \"string\"\n          }\n        },\n        {\n          name: \"disableFilenameBasedTypeAcquisition\",\n          type: \"boolean\",\n          defaultValueDescription: false\n        }\n      ];\n      compilerOptionsAlternateMode = {\n        diagnostic: Diagnostics.Compiler_option_0_may_only_be_used_with_build,\n        getOptionsNameMap: getBuildOptionsNameMap\n      };\n      defaultInitCompilerOptions = {\n        module: 1,\n        target: 3,\n        strict: true,\n        esModuleInterop: true,\n        forceConsistentCasingInFileNames: true,\n        skipLibCheck: true\n      };\n      compilerOptionsDidYouMeanDiagnostics = {\n        alternateMode: compilerOptionsAlternateMode,\n        getOptionsNameMap,\n        optionDeclarations,\n        unknownOptionDiagnostic: Diagnostics.Unknown_compiler_option_0,\n        unknownDidYouMeanDiagnostic: Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,\n        optionTypeMismatchDiagnostic: Diagnostics.Compiler_option_0_expects_an_argument\n      };\n      buildOptionsAlternateMode = {\n        diagnostic: Diagnostics.Compiler_option_0_may_not_be_used_with_build,\n        getOptionsNameMap\n      };\n      buildOptionsDidYouMeanDiagnostics = {\n        alternateMode: buildOptionsAlternateMode,\n        getOptionsNameMap: getBuildOptionsNameMap,\n        optionDeclarations: buildOpts,\n        unknownOptionDiagnostic: Diagnostics.Unknown_build_option_0,\n        unknownDidYouMeanDiagnostic: Diagnostics.Unknown_build_option_0_Did_you_mean_1,\n        optionTypeMismatchDiagnostic: Diagnostics.Build_option_0_requires_a_value_of_type_1\n      };\n      typeAcquisitionDidYouMeanDiagnostics = {\n        optionDeclarations: typeAcquisitionDeclarations,\n        unknownOptionDiagnostic: Diagnostics.Unknown_type_acquisition_option_0,\n        unknownDidYouMeanDiagnostic: Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1\n      };\n      watchOptionsDidYouMeanDiagnostics = {\n        getOptionsNameMap: getWatchOptionsNameMap,\n        optionDeclarations: optionsForWatch,\n        unknownOptionDiagnostic: Diagnostics.Unknown_watch_option_0,\n        unknownDidYouMeanDiagnostic: Diagnostics.Unknown_watch_option_0_Did_you_mean_1,\n        optionTypeMismatchDiagnostic: Diagnostics.Watch_option_0_requires_a_value_of_type_1\n      };\n      extendsOptionDeclaration = {\n        name: \"extends\",\n        type: \"listOrElement\",\n        element: {\n          name: \"extends\",\n          type: \"string\"\n        },\n        category: Diagnostics.File_Management\n      };\n      defaultIncludeSpec = \"**/*\";\n      invalidTrailingRecursionPattern = /(^|\\/)\\*\\*\\/?$/;\n      wildcardDirectoryPattern = /^[^*?]*(?=\\/[^/]*[*?])/;\n    }\n  });\n  function trace(host) {\n    host.trace(formatMessage.apply(void 0, arguments));\n  }\n  function isTraceEnabled(compilerOptions, host) {\n    return !!compilerOptions.traceResolution && host.trace !== void 0;\n  }\n  function withPackageId(packageInfo, r) {\n    let packageId;\n    if (r && packageInfo) {\n      const packageJsonContent = packageInfo.contents.packageJsonContent;\n      if (typeof packageJsonContent.name === \"string\" && typeof packageJsonContent.version === \"string\") {\n        packageId = {\n          name: packageJsonContent.name,\n          subModuleName: r.path.slice(packageInfo.packageDirectory.length + directorySeparator.length),\n          version: packageJsonContent.version\n        };\n      }\n    }\n    return r && { path: r.path, extension: r.ext, packageId, resolvedUsingTsExtension: r.resolvedUsingTsExtension };\n  }\n  function noPackageId(r) {\n    return withPackageId(void 0, r);\n  }\n  function removeIgnoredPackageId(r) {\n    if (r) {\n      Debug.assert(r.packageId === void 0);\n      return { path: r.path, ext: r.extension, resolvedUsingTsExtension: r.resolvedUsingTsExtension };\n    }\n  }\n  function formatExtensions(extensions) {\n    const result = [];\n    if (extensions & 1)\n      result.push(\"TypeScript\");\n    if (extensions & 2)\n      result.push(\"JavaScript\");\n    if (extensions & 4)\n      result.push(\"Declaration\");\n    if (extensions & 8)\n      result.push(\"JSON\");\n    return result.join(\", \");\n  }\n  function resolvedTypeScriptOnly(resolved) {\n    if (!resolved) {\n      return void 0;\n    }\n    Debug.assert(extensionIsTS(resolved.extension));\n    return { fileName: resolved.path, packageId: resolved.packageId };\n  }\n  function createResolvedModuleWithFailedLookupLocationsHandlingSymlink(moduleName, resolved, isExternalLibraryImport, failedLookupLocations, affectingLocations, diagnostics, state, legacyResult) {\n    if (!state.resultFromCache && !state.compilerOptions.preserveSymlinks && resolved && isExternalLibraryImport && !resolved.originalPath && !isExternalModuleNameRelative(moduleName)) {\n      const { resolvedFileName, originalPath } = getOriginalAndResolvedFileName(resolved.path, state.host, state.traceEnabled);\n      if (originalPath)\n        resolved = { ...resolved, path: resolvedFileName, originalPath };\n    }\n    return createResolvedModuleWithFailedLookupLocations(resolved, isExternalLibraryImport, failedLookupLocations, affectingLocations, diagnostics, state.resultFromCache, legacyResult);\n  }\n  function createResolvedModuleWithFailedLookupLocations(resolved, isExternalLibraryImport, failedLookupLocations, affectingLocations, diagnostics, resultFromCache, legacyResult) {\n    if (resultFromCache) {\n      resultFromCache.failedLookupLocations = updateResolutionField(resultFromCache.failedLookupLocations, failedLookupLocations);\n      resultFromCache.affectingLocations = updateResolutionField(resultFromCache.affectingLocations, affectingLocations);\n      resultFromCache.resolutionDiagnostics = updateResolutionField(resultFromCache.resolutionDiagnostics, diagnostics);\n      return resultFromCache;\n    }\n    return {\n      resolvedModule: resolved && {\n        resolvedFileName: resolved.path,\n        originalPath: resolved.originalPath === true ? void 0 : resolved.originalPath,\n        extension: resolved.extension,\n        isExternalLibraryImport,\n        packageId: resolved.packageId,\n        resolvedUsingTsExtension: !!resolved.resolvedUsingTsExtension\n      },\n      failedLookupLocations: initializeResolutionField(failedLookupLocations),\n      affectingLocations: initializeResolutionField(affectingLocations),\n      resolutionDiagnostics: initializeResolutionField(diagnostics),\n      node10Result: legacyResult\n    };\n  }\n  function initializeResolutionField(value) {\n    return value.length ? value : void 0;\n  }\n  function updateResolutionField(to, value) {\n    if (!(value == null ? void 0 : value.length))\n      return to;\n    if (!(to == null ? void 0 : to.length))\n      return value;\n    to.push(...value);\n    return to;\n  }\n  function readPackageJsonField(jsonContent, fieldName, typeOfTag, state) {\n    if (!hasProperty(jsonContent, fieldName)) {\n      if (state.traceEnabled) {\n        trace(state.host, Diagnostics.package_json_does_not_have_a_0_field, fieldName);\n      }\n      return;\n    }\n    const value = jsonContent[fieldName];\n    if (typeof value !== typeOfTag || value === null) {\n      if (state.traceEnabled) {\n        trace(state.host, Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2, fieldName, typeOfTag, value === null ? \"null\" : typeof value);\n      }\n      return;\n    }\n    return value;\n  }\n  function readPackageJsonPathField(jsonContent, fieldName, baseDirectory, state) {\n    const fileName = readPackageJsonField(jsonContent, fieldName, \"string\", state);\n    if (fileName === void 0) {\n      return;\n    }\n    if (!fileName) {\n      if (state.traceEnabled) {\n        trace(state.host, Diagnostics.package_json_had_a_falsy_0_field, fieldName);\n      }\n      return;\n    }\n    const path = normalizePath(combinePaths(baseDirectory, fileName));\n    if (state.traceEnabled) {\n      trace(state.host, Diagnostics.package_json_has_0_field_1_that_references_2, fieldName, fileName, path);\n    }\n    return path;\n  }\n  function readPackageJsonTypesFields(jsonContent, baseDirectory, state) {\n    return readPackageJsonPathField(jsonContent, \"typings\", baseDirectory, state) || readPackageJsonPathField(jsonContent, \"types\", baseDirectory, state);\n  }\n  function readPackageJsonTSConfigField(jsonContent, baseDirectory, state) {\n    return readPackageJsonPathField(jsonContent, \"tsconfig\", baseDirectory, state);\n  }\n  function readPackageJsonMainField(jsonContent, baseDirectory, state) {\n    return readPackageJsonPathField(jsonContent, \"main\", baseDirectory, state);\n  }\n  function readPackageJsonTypesVersionsField(jsonContent, state) {\n    const typesVersions = readPackageJsonField(jsonContent, \"typesVersions\", \"object\", state);\n    if (typesVersions === void 0)\n      return;\n    if (state.traceEnabled) {\n      trace(state.host, Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings);\n    }\n    return typesVersions;\n  }\n  function readPackageJsonTypesVersionPaths(jsonContent, state) {\n    const typesVersions = readPackageJsonTypesVersionsField(jsonContent, state);\n    if (typesVersions === void 0)\n      return;\n    if (state.traceEnabled) {\n      for (const key in typesVersions) {\n        if (hasProperty(typesVersions, key) && !VersionRange.tryParse(key)) {\n          trace(state.host, Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range, key);\n        }\n      }\n    }\n    const result = getPackageJsonTypesVersionsPaths(typesVersions);\n    if (!result) {\n      if (state.traceEnabled) {\n        trace(state.host, Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0, versionMajorMinor);\n      }\n      return;\n    }\n    const { version: bestVersionKey, paths: bestVersionPaths } = result;\n    if (typeof bestVersionPaths !== \"object\") {\n      if (state.traceEnabled) {\n        trace(state.host, Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2, `typesVersions['${bestVersionKey}']`, \"object\", typeof bestVersionPaths);\n      }\n      return;\n    }\n    return result;\n  }\n  function getPackageJsonTypesVersionsPaths(typesVersions) {\n    if (!typeScriptVersion)\n      typeScriptVersion = new Version(version);\n    for (const key in typesVersions) {\n      if (!hasProperty(typesVersions, key))\n        continue;\n      const keyRange = VersionRange.tryParse(key);\n      if (keyRange === void 0) {\n        continue;\n      }\n      if (keyRange.test(typeScriptVersion)) {\n        return { version: key, paths: typesVersions[key] };\n      }\n    }\n  }\n  function getEffectiveTypeRoots(options, host) {\n    if (options.typeRoots) {\n      return options.typeRoots;\n    }\n    let currentDirectory;\n    if (options.configFilePath) {\n      currentDirectory = getDirectoryPath(options.configFilePath);\n    } else if (host.getCurrentDirectory) {\n      currentDirectory = host.getCurrentDirectory();\n    }\n    if (currentDirectory !== void 0) {\n      return getDefaultTypeRoots(currentDirectory, host);\n    }\n  }\n  function getDefaultTypeRoots(currentDirectory, host) {\n    if (!host.directoryExists) {\n      return [combinePaths(currentDirectory, nodeModulesAtTypes)];\n    }\n    let typeRoots;\n    forEachAncestorDirectory(normalizePath(currentDirectory), (directory) => {\n      const atTypes = combinePaths(directory, nodeModulesAtTypes);\n      if (host.directoryExists(atTypes)) {\n        (typeRoots || (typeRoots = [])).push(atTypes);\n      }\n      return void 0;\n    });\n    return typeRoots;\n  }\n  function arePathsEqual(path1, path2, host) {\n    const useCaseSensitiveFileNames = typeof host.useCaseSensitiveFileNames === \"function\" ? host.useCaseSensitiveFileNames() : host.useCaseSensitiveFileNames;\n    return comparePaths(path1, path2, !useCaseSensitiveFileNames) === 0;\n  }\n  function getOriginalAndResolvedFileName(fileName, host, traceEnabled) {\n    const resolvedFileName = realPath(fileName, host, traceEnabled);\n    const pathsAreEqual = arePathsEqual(fileName, resolvedFileName, host);\n    return {\n      resolvedFileName: pathsAreEqual ? fileName : resolvedFileName,\n      originalPath: pathsAreEqual ? void 0 : fileName\n    };\n  }\n  function resolveTypeReferenceDirective(typeReferenceDirectiveName, containingFile, options, host, redirectedReference, cache, resolutionMode) {\n    Debug.assert(typeof typeReferenceDirectiveName === \"string\", \"Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.\");\n    const traceEnabled = isTraceEnabled(options, host);\n    if (redirectedReference) {\n      options = redirectedReference.commandLine.options;\n    }\n    const containingDirectory = containingFile ? getDirectoryPath(containingFile) : void 0;\n    let result = containingDirectory ? cache == null ? void 0 : cache.getFromDirectoryCache(typeReferenceDirectiveName, resolutionMode, containingDirectory, redirectedReference) : void 0;\n    if (!result && containingDirectory && !isExternalModuleNameRelative(typeReferenceDirectiveName)) {\n      result = cache == null ? void 0 : cache.getFromNonRelativeNameCache(typeReferenceDirectiveName, resolutionMode, containingDirectory, redirectedReference);\n    }\n    if (result) {\n      if (traceEnabled) {\n        trace(host, Diagnostics.Resolving_type_reference_directive_0_containing_file_1, typeReferenceDirectiveName, containingFile);\n        if (redirectedReference)\n          trace(host, Diagnostics.Using_compiler_options_of_project_reference_redirect_0, redirectedReference.sourceFile.fileName);\n        trace(host, Diagnostics.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1, typeReferenceDirectiveName, containingDirectory);\n        traceResult(result);\n      }\n      return result;\n    }\n    const typeRoots = getEffectiveTypeRoots(options, host);\n    if (traceEnabled) {\n      if (containingFile === void 0) {\n        if (typeRoots === void 0) {\n          trace(host, Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set, typeReferenceDirectiveName);\n        } else {\n          trace(host, Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1, typeReferenceDirectiveName, typeRoots);\n        }\n      } else {\n        if (typeRoots === void 0) {\n          trace(host, Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set, typeReferenceDirectiveName, containingFile);\n        } else {\n          trace(host, Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2, typeReferenceDirectiveName, containingFile, typeRoots);\n        }\n      }\n      if (redirectedReference) {\n        trace(host, Diagnostics.Using_compiler_options_of_project_reference_redirect_0, redirectedReference.sourceFile.fileName);\n      }\n    }\n    const failedLookupLocations = [];\n    const affectingLocations = [];\n    let features = getNodeResolutionFeatures(options);\n    if (resolutionMode === 99 && (getEmitModuleResolutionKind(options) === 3 || getEmitModuleResolutionKind(options) === 99)) {\n      features |= 32;\n    }\n    const conditions = features & 8 ? getConditions(options, !!(features & 32)) : [];\n    const diagnostics = [];\n    const moduleResolutionState = {\n      compilerOptions: options,\n      host,\n      traceEnabled,\n      failedLookupLocations,\n      affectingLocations,\n      packageJsonInfoCache: cache,\n      features,\n      conditions,\n      requestContainingDirectory: containingDirectory,\n      reportDiagnostic: (diag2) => void diagnostics.push(diag2),\n      isConfigLookup: false,\n      candidateIsFromPackageJsonField: false\n    };\n    let resolved = primaryLookup();\n    let primary = true;\n    if (!resolved) {\n      resolved = secondaryLookup();\n      primary = false;\n    }\n    let resolvedTypeReferenceDirective;\n    if (resolved) {\n      const { fileName, packageId } = resolved;\n      let resolvedFileName = fileName, originalPath;\n      if (!options.preserveSymlinks)\n        ({ resolvedFileName, originalPath } = getOriginalAndResolvedFileName(fileName, host, traceEnabled));\n      resolvedTypeReferenceDirective = {\n        primary,\n        resolvedFileName,\n        originalPath,\n        packageId,\n        isExternalLibraryImport: pathContainsNodeModules(fileName)\n      };\n    }\n    result = {\n      resolvedTypeReferenceDirective,\n      failedLookupLocations: initializeResolutionField(failedLookupLocations),\n      affectingLocations: initializeResolutionField(affectingLocations),\n      resolutionDiagnostics: initializeResolutionField(diagnostics)\n    };\n    if (containingDirectory) {\n      cache == null ? void 0 : cache.getOrCreateCacheForDirectory(containingDirectory, redirectedReference).set(typeReferenceDirectiveName, resolutionMode, result);\n      if (!isExternalModuleNameRelative(typeReferenceDirectiveName)) {\n        cache == null ? void 0 : cache.getOrCreateCacheForNonRelativeName(typeReferenceDirectiveName, resolutionMode, redirectedReference).set(containingDirectory, result);\n      }\n    }\n    if (traceEnabled)\n      traceResult(result);\n    return result;\n    function traceResult(result2) {\n      var _a2;\n      if (!((_a2 = result2.resolvedTypeReferenceDirective) == null ? void 0 : _a2.resolvedFileName)) {\n        trace(host, Diagnostics.Type_reference_directive_0_was_not_resolved, typeReferenceDirectiveName);\n      } else if (result2.resolvedTypeReferenceDirective.packageId) {\n        trace(host, Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3, typeReferenceDirectiveName, result2.resolvedTypeReferenceDirective.resolvedFileName, packageIdToString(result2.resolvedTypeReferenceDirective.packageId), result2.resolvedTypeReferenceDirective.primary);\n      } else {\n        trace(host, Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2, typeReferenceDirectiveName, result2.resolvedTypeReferenceDirective.resolvedFileName, result2.resolvedTypeReferenceDirective.primary);\n      }\n    }\n    function primaryLookup() {\n      if (typeRoots && typeRoots.length) {\n        if (traceEnabled) {\n          trace(host, Diagnostics.Resolving_with_primary_search_path_0, typeRoots.join(\", \"));\n        }\n        return firstDefined(typeRoots, (typeRoot) => {\n          const candidate = combinePaths(typeRoot, typeReferenceDirectiveName);\n          const candidateDirectory = getDirectoryPath(candidate);\n          const directoryExists = directoryProbablyExists(candidateDirectory, host);\n          if (!directoryExists && traceEnabled) {\n            trace(host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, candidateDirectory);\n          }\n          return resolvedTypeScriptOnly(loadNodeModuleFromDirectory(4, candidate, !directoryExists, moduleResolutionState));\n        });\n      } else {\n        if (traceEnabled) {\n          trace(host, Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths);\n        }\n      }\n    }\n    function secondaryLookup() {\n      const initialLocationForSecondaryLookup = containingFile && getDirectoryPath(containingFile);\n      if (initialLocationForSecondaryLookup !== void 0) {\n        if (traceEnabled) {\n          trace(host, Diagnostics.Looking_up_in_node_modules_folder_initial_location_0, initialLocationForSecondaryLookup);\n        }\n        let result2;\n        if (!isExternalModuleNameRelative(typeReferenceDirectiveName)) {\n          const searchResult = loadModuleFromNearestNodeModulesDirectory(4, typeReferenceDirectiveName, initialLocationForSecondaryLookup, moduleResolutionState, void 0, void 0);\n          result2 = searchResult && searchResult.value;\n        } else {\n          const { path: candidate } = normalizePathForCJSResolution(initialLocationForSecondaryLookup, typeReferenceDirectiveName);\n          result2 = nodeLoadModuleByRelativeName(4, candidate, false, moduleResolutionState, true);\n        }\n        return resolvedTypeScriptOnly(result2);\n      } else {\n        if (traceEnabled) {\n          trace(host, Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder);\n        }\n      }\n    }\n  }\n  function getNodeResolutionFeatures(options) {\n    let features = 0;\n    switch (getEmitModuleResolutionKind(options)) {\n      case 3:\n        features = 30;\n        break;\n      case 99:\n        features = 30;\n        break;\n      case 100:\n        features = 30;\n        break;\n    }\n    if (options.resolvePackageJsonExports) {\n      features |= 8;\n    } else if (options.resolvePackageJsonExports === false) {\n      features &= ~8;\n    }\n    if (options.resolvePackageJsonImports) {\n      features |= 2;\n    } else if (options.resolvePackageJsonImports === false) {\n      features &= ~2;\n    }\n    return features;\n  }\n  function getConditions(options, esmMode) {\n    const conditions = esmMode || getEmitModuleResolutionKind(options) === 100 ? [\"import\"] : [\"require\"];\n    if (!options.noDtsResolution) {\n      conditions.push(\"types\");\n    }\n    if (getEmitModuleResolutionKind(options) !== 100) {\n      conditions.push(\"node\");\n    }\n    return concatenate(conditions, options.customConditions);\n  }\n  function resolvePackageNameToPackageJson(packageName, containingDirectory, options, host, cache) {\n    const moduleResolutionState = getTemporaryModuleResolutionState(cache == null ? void 0 : cache.getPackageJsonInfoCache(), host, options);\n    return forEachAncestorDirectory(containingDirectory, (ancestorDirectory) => {\n      if (getBaseFileName(ancestorDirectory) !== \"node_modules\") {\n        const nodeModulesFolder = combinePaths(ancestorDirectory, \"node_modules\");\n        const candidate = combinePaths(nodeModulesFolder, packageName);\n        return getPackageJsonInfo(candidate, false, moduleResolutionState);\n      }\n    });\n  }\n  function getAutomaticTypeDirectiveNames(options, host) {\n    if (options.types) {\n      return options.types;\n    }\n    const result = [];\n    if (host.directoryExists && host.getDirectories) {\n      const typeRoots = getEffectiveTypeRoots(options, host);\n      if (typeRoots) {\n        for (const root of typeRoots) {\n          if (host.directoryExists(root)) {\n            for (const typeDirectivePath of host.getDirectories(root)) {\n              const normalized = normalizePath(typeDirectivePath);\n              const packageJsonPath = combinePaths(root, normalized, \"package.json\");\n              const isNotNeededPackage = host.fileExists(packageJsonPath) && readJson(packageJsonPath, host).typings === null;\n              if (!isNotNeededPackage) {\n                const baseFileName = getBaseFileName(normalized);\n                if (baseFileName.charCodeAt(0) !== 46) {\n                  result.push(baseFileName);\n                }\n              }\n            }\n          }\n        }\n      }\n    }\n    return result;\n  }\n  function compilerOptionValueToString(value) {\n    var _a2;\n    if (value === null || typeof value !== \"object\") {\n      return \"\" + value;\n    }\n    if (isArray(value)) {\n      return `[${(_a2 = value.map((e) => compilerOptionValueToString(e))) == null ? void 0 : _a2.join(\",\")}]`;\n    }\n    let str = \"{\";\n    for (const key in value) {\n      if (hasProperty(value, key)) {\n        str += `${key}: ${compilerOptionValueToString(value[key])}`;\n      }\n    }\n    return str + \"}\";\n  }\n  function getKeyForCompilerOptions(options, affectingOptionDeclarations) {\n    return affectingOptionDeclarations.map((option) => compilerOptionValueToString(getCompilerOptionValue(options, option))).join(\"|\") + (options.pathsBasePath ? `|${options.pathsBasePath}` : void 0);\n  }\n  function createCacheWithRedirects(ownOptions) {\n    const redirectsMap = /* @__PURE__ */ new Map();\n    const optionsToRedirectsKey = /* @__PURE__ */ new Map();\n    const redirectsKeyToMap = /* @__PURE__ */ new Map();\n    let ownMap = /* @__PURE__ */ new Map();\n    if (ownOptions)\n      redirectsMap.set(ownOptions, ownMap);\n    return {\n      getMapOfCacheRedirects,\n      getOrCreateMapOfCacheRedirects,\n      update,\n      clear: clear2\n    };\n    function getMapOfCacheRedirects(redirectedReference) {\n      return redirectedReference ? getOrCreateMap(redirectedReference.commandLine.options, false) : ownMap;\n    }\n    function getOrCreateMapOfCacheRedirects(redirectedReference) {\n      return redirectedReference ? getOrCreateMap(redirectedReference.commandLine.options, true) : ownMap;\n    }\n    function update(newOptions) {\n      if (ownOptions !== newOptions) {\n        if (ownOptions)\n          ownMap = getOrCreateMap(newOptions, true);\n        else\n          redirectsMap.set(newOptions, ownMap);\n        ownOptions = newOptions;\n      }\n    }\n    function getOrCreateMap(redirectOptions, create2) {\n      let result = redirectsMap.get(redirectOptions);\n      if (result)\n        return result;\n      const key = getRedirectsCacheKey(redirectOptions);\n      result = redirectsKeyToMap.get(key);\n      if (!result) {\n        if (ownOptions) {\n          const ownKey = getRedirectsCacheKey(ownOptions);\n          if (ownKey === key)\n            result = ownMap;\n          else if (!redirectsKeyToMap.has(ownKey))\n            redirectsKeyToMap.set(ownKey, ownMap);\n        }\n        if (create2)\n          result != null ? result : result = /* @__PURE__ */ new Map();\n        if (result)\n          redirectsKeyToMap.set(key, result);\n      }\n      if (result)\n        redirectsMap.set(redirectOptions, result);\n      return result;\n    }\n    function clear2() {\n      const ownKey = ownOptions && optionsToRedirectsKey.get(ownOptions);\n      ownMap.clear();\n      redirectsMap.clear();\n      optionsToRedirectsKey.clear();\n      redirectsKeyToMap.clear();\n      if (ownOptions) {\n        if (ownKey)\n          optionsToRedirectsKey.set(ownOptions, ownKey);\n        redirectsMap.set(ownOptions, ownMap);\n      }\n    }\n    function getRedirectsCacheKey(options) {\n      let result = optionsToRedirectsKey.get(options);\n      if (!result) {\n        optionsToRedirectsKey.set(options, result = getKeyForCompilerOptions(options, moduleResolutionOptionDeclarations));\n      }\n      return result;\n    }\n  }\n  function createPackageJsonInfoCache(currentDirectory, getCanonicalFileName) {\n    let cache;\n    return { getPackageJsonInfo: getPackageJsonInfo2, setPackageJsonInfo, clear: clear2, entries, getInternalMap };\n    function getPackageJsonInfo2(packageJsonPath) {\n      return cache == null ? void 0 : cache.get(toPath(packageJsonPath, currentDirectory, getCanonicalFileName));\n    }\n    function setPackageJsonInfo(packageJsonPath, info) {\n      (cache || (cache = /* @__PURE__ */ new Map())).set(toPath(packageJsonPath, currentDirectory, getCanonicalFileName), info);\n    }\n    function clear2() {\n      cache = void 0;\n    }\n    function entries() {\n      const iter = cache == null ? void 0 : cache.entries();\n      return iter ? arrayFrom(iter) : [];\n    }\n    function getInternalMap() {\n      return cache;\n    }\n  }\n  function getOrCreateCache(cacheWithRedirects, redirectedReference, key, create2) {\n    const cache = cacheWithRedirects.getOrCreateMapOfCacheRedirects(redirectedReference);\n    let result = cache.get(key);\n    if (!result) {\n      result = create2();\n      cache.set(key, result);\n    }\n    return result;\n  }\n  function createPerDirectoryResolutionCache(currentDirectory, getCanonicalFileName, options) {\n    const directoryToModuleNameMap = createCacheWithRedirects(options);\n    return {\n      getFromDirectoryCache,\n      getOrCreateCacheForDirectory,\n      clear: clear2,\n      update\n    };\n    function clear2() {\n      directoryToModuleNameMap.clear();\n    }\n    function update(options2) {\n      directoryToModuleNameMap.update(options2);\n    }\n    function getOrCreateCacheForDirectory(directoryName, redirectedReference) {\n      const path = toPath(directoryName, currentDirectory, getCanonicalFileName);\n      return getOrCreateCache(directoryToModuleNameMap, redirectedReference, path, () => createModeAwareCache());\n    }\n    function getFromDirectoryCache(name, mode, directoryName, redirectedReference) {\n      var _a2, _b;\n      const path = toPath(directoryName, currentDirectory, getCanonicalFileName);\n      return (_b = (_a2 = directoryToModuleNameMap.getMapOfCacheRedirects(redirectedReference)) == null ? void 0 : _a2.get(path)) == null ? void 0 : _b.get(name, mode);\n    }\n  }\n  function createModeAwareCacheKey(specifier, mode) {\n    return mode === void 0 ? specifier : `${mode}|${specifier}`;\n  }\n  function createModeAwareCache() {\n    const underlying = /* @__PURE__ */ new Map();\n    const memoizedReverseKeys = /* @__PURE__ */ new Map();\n    const cache = {\n      get(specifier, mode) {\n        return underlying.get(getUnderlyingCacheKey(specifier, mode));\n      },\n      set(specifier, mode, value) {\n        underlying.set(getUnderlyingCacheKey(specifier, mode), value);\n        return cache;\n      },\n      delete(specifier, mode) {\n        underlying.delete(getUnderlyingCacheKey(specifier, mode));\n        return cache;\n      },\n      has(specifier, mode) {\n        return underlying.has(getUnderlyingCacheKey(specifier, mode));\n      },\n      forEach(cb) {\n        return underlying.forEach((elem, key) => {\n          const [specifier, mode] = memoizedReverseKeys.get(key);\n          return cb(elem, specifier, mode);\n        });\n      },\n      size() {\n        return underlying.size;\n      }\n    };\n    return cache;\n    function getUnderlyingCacheKey(specifier, mode) {\n      const result = createModeAwareCacheKey(specifier, mode);\n      memoizedReverseKeys.set(result, [specifier, mode]);\n      return result;\n    }\n  }\n  function zipToModeAwareCache(file, keys, values, nameAndModeGetter) {\n    Debug.assert(keys.length === values.length);\n    const map2 = createModeAwareCache();\n    for (let i = 0; i < keys.length; ++i) {\n      const entry = keys[i];\n      map2.set(nameAndModeGetter.getName(entry), nameAndModeGetter.getMode(entry, file), values[i]);\n    }\n    return map2;\n  }\n  function getOriginalOrResolvedModuleFileName(result) {\n    return result.resolvedModule && (result.resolvedModule.originalPath || result.resolvedModule.resolvedFileName);\n  }\n  function getOriginalOrResolvedTypeReferenceFileName(result) {\n    return result.resolvedTypeReferenceDirective && (result.resolvedTypeReferenceDirective.originalPath || result.resolvedTypeReferenceDirective.resolvedFileName);\n  }\n  function createNonRelativeNameResolutionCache(currentDirectory, getCanonicalFileName, options, getResolvedFileName) {\n    const moduleNameToDirectoryMap = createCacheWithRedirects(options);\n    return {\n      getFromNonRelativeNameCache,\n      getOrCreateCacheForNonRelativeName,\n      clear: clear2,\n      update\n    };\n    function clear2() {\n      moduleNameToDirectoryMap.clear();\n    }\n    function update(options2) {\n      moduleNameToDirectoryMap.update(options2);\n    }\n    function getFromNonRelativeNameCache(nonRelativeModuleName, mode, directoryName, redirectedReference) {\n      var _a2, _b;\n      Debug.assert(!isExternalModuleNameRelative(nonRelativeModuleName));\n      return (_b = (_a2 = moduleNameToDirectoryMap.getMapOfCacheRedirects(redirectedReference)) == null ? void 0 : _a2.get(createModeAwareCacheKey(nonRelativeModuleName, mode))) == null ? void 0 : _b.get(directoryName);\n    }\n    function getOrCreateCacheForNonRelativeName(nonRelativeModuleName, mode, redirectedReference) {\n      Debug.assert(!isExternalModuleNameRelative(nonRelativeModuleName));\n      return getOrCreateCache(moduleNameToDirectoryMap, redirectedReference, createModeAwareCacheKey(nonRelativeModuleName, mode), createPerModuleNameCache);\n    }\n    function createPerModuleNameCache() {\n      const directoryPathMap = /* @__PURE__ */ new Map();\n      return { get, set };\n      function get(directory) {\n        return directoryPathMap.get(toPath(directory, currentDirectory, getCanonicalFileName));\n      }\n      function set(directory, result) {\n        const path = toPath(directory, currentDirectory, getCanonicalFileName);\n        if (directoryPathMap.has(path)) {\n          return;\n        }\n        directoryPathMap.set(path, result);\n        const resolvedFileName = getResolvedFileName(result);\n        const commonPrefix = resolvedFileName && getCommonPrefix(path, resolvedFileName);\n        let current = path;\n        while (current !== commonPrefix) {\n          const parent2 = getDirectoryPath(current);\n          if (parent2 === current || directoryPathMap.has(parent2)) {\n            break;\n          }\n          directoryPathMap.set(parent2, result);\n          current = parent2;\n        }\n      }\n      function getCommonPrefix(directory, resolution) {\n        const resolutionDirectory = toPath(getDirectoryPath(resolution), currentDirectory, getCanonicalFileName);\n        let i = 0;\n        const limit = Math.min(directory.length, resolutionDirectory.length);\n        while (i < limit && directory.charCodeAt(i) === resolutionDirectory.charCodeAt(i)) {\n          i++;\n        }\n        if (i === directory.length && (resolutionDirectory.length === i || resolutionDirectory[i] === directorySeparator)) {\n          return directory;\n        }\n        const rootLength = getRootLength(directory);\n        if (i < rootLength) {\n          return void 0;\n        }\n        const sep = directory.lastIndexOf(directorySeparator, i - 1);\n        if (sep === -1) {\n          return void 0;\n        }\n        return directory.substr(0, Math.max(sep, rootLength));\n      }\n    }\n  }\n  function createModuleOrTypeReferenceResolutionCache(currentDirectory, getCanonicalFileName, options, packageJsonInfoCache, getResolvedFileName) {\n    const perDirectoryResolutionCache = createPerDirectoryResolutionCache(currentDirectory, getCanonicalFileName, options);\n    const nonRelativeNameResolutionCache = createNonRelativeNameResolutionCache(currentDirectory, getCanonicalFileName, options, getResolvedFileName);\n    packageJsonInfoCache != null ? packageJsonInfoCache : packageJsonInfoCache = createPackageJsonInfoCache(currentDirectory, getCanonicalFileName);\n    return {\n      ...packageJsonInfoCache,\n      ...perDirectoryResolutionCache,\n      ...nonRelativeNameResolutionCache,\n      clear: clear2,\n      update,\n      getPackageJsonInfoCache: () => packageJsonInfoCache,\n      clearAllExceptPackageJsonInfoCache\n    };\n    function clear2() {\n      clearAllExceptPackageJsonInfoCache();\n      packageJsonInfoCache.clear();\n    }\n    function clearAllExceptPackageJsonInfoCache() {\n      perDirectoryResolutionCache.clear();\n      nonRelativeNameResolutionCache.clear();\n    }\n    function update(options2) {\n      perDirectoryResolutionCache.update(options2);\n      nonRelativeNameResolutionCache.update(options2);\n    }\n  }\n  function createModuleResolutionCache(currentDirectory, getCanonicalFileName, options) {\n    const result = createModuleOrTypeReferenceResolutionCache(currentDirectory, getCanonicalFileName, options, void 0, getOriginalOrResolvedModuleFileName);\n    result.getOrCreateCacheForModuleName = (nonRelativeName, mode, redirectedReference) => result.getOrCreateCacheForNonRelativeName(nonRelativeName, mode, redirectedReference);\n    return result;\n  }\n  function createTypeReferenceDirectiveResolutionCache(currentDirectory, getCanonicalFileName, options, packageJsonInfoCache) {\n    return createModuleOrTypeReferenceResolutionCache(currentDirectory, getCanonicalFileName, options, packageJsonInfoCache, getOriginalOrResolvedTypeReferenceFileName);\n  }\n  function resolveModuleNameFromCache(moduleName, containingFile, cache, mode) {\n    const containingDirectory = getDirectoryPath(containingFile);\n    return cache.getFromDirectoryCache(moduleName, mode, containingDirectory, void 0);\n  }\n  function resolveModuleName(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode) {\n    const traceEnabled = isTraceEnabled(compilerOptions, host);\n    if (redirectedReference) {\n      compilerOptions = redirectedReference.commandLine.options;\n    }\n    if (traceEnabled) {\n      trace(host, Diagnostics.Resolving_module_0_from_1, moduleName, containingFile);\n      if (redirectedReference) {\n        trace(host, Diagnostics.Using_compiler_options_of_project_reference_redirect_0, redirectedReference.sourceFile.fileName);\n      }\n    }\n    const containingDirectory = getDirectoryPath(containingFile);\n    let result = cache == null ? void 0 : cache.getFromDirectoryCache(moduleName, resolutionMode, containingDirectory, redirectedReference);\n    if (result) {\n      if (traceEnabled) {\n        trace(host, Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1, moduleName, containingDirectory);\n      }\n    } else {\n      let moduleResolution = compilerOptions.moduleResolution;\n      if (moduleResolution === void 0) {\n        switch (getEmitModuleKind(compilerOptions)) {\n          case 1:\n            moduleResolution = 2;\n            break;\n          case 100:\n            moduleResolution = 3;\n            break;\n          case 199:\n            moduleResolution = 99;\n            break;\n          default:\n            moduleResolution = 1;\n            break;\n        }\n        if (traceEnabled) {\n          trace(host, Diagnostics.Module_resolution_kind_is_not_specified_using_0, ModuleResolutionKind[moduleResolution]);\n        }\n      } else {\n        if (traceEnabled) {\n          trace(host, Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0, ModuleResolutionKind[moduleResolution]);\n        }\n      }\n      perfLogger.logStartResolveModule(moduleName);\n      switch (moduleResolution) {\n        case 3:\n          result = node16ModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode);\n          break;\n        case 99:\n          result = nodeNextModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode);\n          break;\n        case 2:\n          result = nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference);\n          break;\n        case 1:\n          result = classicNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference);\n          break;\n        case 100:\n          result = bundlerModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference);\n          break;\n        default:\n          return Debug.fail(`Unexpected moduleResolution: ${moduleResolution}`);\n      }\n      if (result && result.resolvedModule)\n        perfLogger.logInfoEvent(`Module \"${moduleName}\" resolved to \"${result.resolvedModule.resolvedFileName}\"`);\n      perfLogger.logStopResolveModule(result && result.resolvedModule ? \"\" + result.resolvedModule.resolvedFileName : \"null\");\n      cache == null ? void 0 : cache.getOrCreateCacheForDirectory(containingDirectory, redirectedReference).set(moduleName, resolutionMode, result);\n      if (!isExternalModuleNameRelative(moduleName)) {\n        cache == null ? void 0 : cache.getOrCreateCacheForNonRelativeName(moduleName, resolutionMode, redirectedReference).set(containingDirectory, result);\n      }\n    }\n    if (traceEnabled) {\n      if (result.resolvedModule) {\n        if (result.resolvedModule.packageId) {\n          trace(host, Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2, moduleName, result.resolvedModule.resolvedFileName, packageIdToString(result.resolvedModule.packageId));\n        } else {\n          trace(host, Diagnostics.Module_name_0_was_successfully_resolved_to_1, moduleName, result.resolvedModule.resolvedFileName);\n        }\n      } else {\n        trace(host, Diagnostics.Module_name_0_was_not_resolved, moduleName);\n      }\n    }\n    return result;\n  }\n  function tryLoadModuleUsingOptionalResolutionSettings(extensions, moduleName, containingDirectory, loader, state) {\n    const resolved = tryLoadModuleUsingPathsIfEligible(extensions, moduleName, loader, state);\n    if (resolved)\n      return resolved.value;\n    if (!isExternalModuleNameRelative(moduleName)) {\n      return tryLoadModuleUsingBaseUrl(extensions, moduleName, loader, state);\n    } else {\n      return tryLoadModuleUsingRootDirs(extensions, moduleName, containingDirectory, loader, state);\n    }\n  }\n  function tryLoadModuleUsingPathsIfEligible(extensions, moduleName, loader, state) {\n    var _a2;\n    const { baseUrl, paths, configFile } = state.compilerOptions;\n    if (paths && !pathIsRelative(moduleName)) {\n      if (state.traceEnabled) {\n        if (baseUrl) {\n          trace(state.host, Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1, baseUrl, moduleName);\n        }\n        trace(state.host, Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0, moduleName);\n      }\n      const baseDirectory = getPathsBasePath(state.compilerOptions, state.host);\n      const pathPatterns = (configFile == null ? void 0 : configFile.configFileSpecs) ? (_a2 = configFile.configFileSpecs).pathPatterns || (_a2.pathPatterns = tryParsePatterns(paths)) : void 0;\n      return tryLoadModuleUsingPaths(extensions, moduleName, baseDirectory, paths, pathPatterns, loader, false, state);\n    }\n  }\n  function tryLoadModuleUsingRootDirs(extensions, moduleName, containingDirectory, loader, state) {\n    if (!state.compilerOptions.rootDirs) {\n      return void 0;\n    }\n    if (state.traceEnabled) {\n      trace(state.host, Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0, moduleName);\n    }\n    const candidate = normalizePath(combinePaths(containingDirectory, moduleName));\n    let matchedRootDir;\n    let matchedNormalizedPrefix;\n    for (const rootDir of state.compilerOptions.rootDirs) {\n      let normalizedRoot = normalizePath(rootDir);\n      if (!endsWith(normalizedRoot, directorySeparator)) {\n        normalizedRoot += directorySeparator;\n      }\n      const isLongestMatchingPrefix = startsWith(candidate, normalizedRoot) && (matchedNormalizedPrefix === void 0 || matchedNormalizedPrefix.length < normalizedRoot.length);\n      if (state.traceEnabled) {\n        trace(state.host, Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2, normalizedRoot, candidate, isLongestMatchingPrefix);\n      }\n      if (isLongestMatchingPrefix) {\n        matchedNormalizedPrefix = normalizedRoot;\n        matchedRootDir = rootDir;\n      }\n    }\n    if (matchedNormalizedPrefix) {\n      if (state.traceEnabled) {\n        trace(state.host, Diagnostics.Longest_matching_prefix_for_0_is_1, candidate, matchedNormalizedPrefix);\n      }\n      const suffix = candidate.substr(matchedNormalizedPrefix.length);\n      if (state.traceEnabled) {\n        trace(state.host, Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2, suffix, matchedNormalizedPrefix, candidate);\n      }\n      const resolvedFileName = loader(extensions, candidate, !directoryProbablyExists(containingDirectory, state.host), state);\n      if (resolvedFileName) {\n        return resolvedFileName;\n      }\n      if (state.traceEnabled) {\n        trace(state.host, Diagnostics.Trying_other_entries_in_rootDirs);\n      }\n      for (const rootDir of state.compilerOptions.rootDirs) {\n        if (rootDir === matchedRootDir) {\n          continue;\n        }\n        const candidate2 = combinePaths(normalizePath(rootDir), suffix);\n        if (state.traceEnabled) {\n          trace(state.host, Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2, suffix, rootDir, candidate2);\n        }\n        const baseDirectory = getDirectoryPath(candidate2);\n        const resolvedFileName2 = loader(extensions, candidate2, !directoryProbablyExists(baseDirectory, state.host), state);\n        if (resolvedFileName2) {\n          return resolvedFileName2;\n        }\n      }\n      if (state.traceEnabled) {\n        trace(state.host, Diagnostics.Module_resolution_using_rootDirs_has_failed);\n      }\n    }\n    return void 0;\n  }\n  function tryLoadModuleUsingBaseUrl(extensions, moduleName, loader, state) {\n    const { baseUrl } = state.compilerOptions;\n    if (!baseUrl) {\n      return void 0;\n    }\n    if (state.traceEnabled) {\n      trace(state.host, Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1, baseUrl, moduleName);\n    }\n    const candidate = normalizePath(combinePaths(baseUrl, moduleName));\n    if (state.traceEnabled) {\n      trace(state.host, Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2, moduleName, baseUrl, candidate);\n    }\n    return loader(extensions, candidate, !directoryProbablyExists(getDirectoryPath(candidate), state.host), state);\n  }\n  function resolveJSModule(moduleName, initialDir, host) {\n    const { resolvedModule, failedLookupLocations } = tryResolveJSModuleWorker(moduleName, initialDir, host);\n    if (!resolvedModule) {\n      throw new Error(`Could not resolve JS module '${moduleName}' starting at '${initialDir}'. Looked in: ${failedLookupLocations == null ? void 0 : failedLookupLocations.join(\", \")}`);\n    }\n    return resolvedModule.resolvedFileName;\n  }\n  function node16ModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode) {\n    return nodeNextModuleNameResolverWorker(30, moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode);\n  }\n  function nodeNextModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode) {\n    return nodeNextModuleNameResolverWorker(30, moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode);\n  }\n  function nodeNextModuleNameResolverWorker(features, moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode) {\n    const containingDirectory = getDirectoryPath(containingFile);\n    const esmMode = resolutionMode === 99 ? 32 : 0;\n    let extensions = compilerOptions.noDtsResolution ? 3 : 1 | 2 | 4;\n    if (getResolveJsonModule(compilerOptions)) {\n      extensions |= 8;\n    }\n    return nodeModuleNameResolverWorker(features | esmMode, moduleName, containingDirectory, compilerOptions, host, cache, extensions, false, redirectedReference);\n  }\n  function tryResolveJSModuleWorker(moduleName, initialDir, host) {\n    return nodeModuleNameResolverWorker(0, moduleName, initialDir, { moduleResolution: 2, allowJs: true }, host, void 0, 2, false, void 0);\n  }\n  function bundlerModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference) {\n    const containingDirectory = getDirectoryPath(containingFile);\n    let extensions = compilerOptions.noDtsResolution ? 3 : 1 | 2 | 4;\n    if (getResolveJsonModule(compilerOptions)) {\n      extensions |= 8;\n    }\n    return nodeModuleNameResolverWorker(getNodeResolutionFeatures(compilerOptions), moduleName, containingDirectory, compilerOptions, host, cache, extensions, false, redirectedReference);\n  }\n  function nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, isConfigLookup) {\n    let extensions;\n    if (isConfigLookup) {\n      extensions = 8;\n    } else if (compilerOptions.noDtsResolution) {\n      extensions = 3;\n      if (getResolveJsonModule(compilerOptions))\n        extensions |= 8;\n    } else {\n      extensions = getResolveJsonModule(compilerOptions) ? 1 | 2 | 4 | 8 : 1 | 2 | 4;\n    }\n    return nodeModuleNameResolverWorker(0, moduleName, getDirectoryPath(containingFile), compilerOptions, host, cache, extensions, !!isConfigLookup, redirectedReference);\n  }\n  function nodeNextJsonConfigResolver(moduleName, containingFile, host) {\n    return nodeModuleNameResolverWorker(8, moduleName, getDirectoryPath(containingFile), { moduleResolution: 99 }, host, void 0, 8, true, void 0);\n  }\n  function nodeModuleNameResolverWorker(features, moduleName, containingDirectory, compilerOptions, host, cache, extensions, isConfigLookup, redirectedReference) {\n    var _a2, _b, _c, _d;\n    const traceEnabled = isTraceEnabled(compilerOptions, host);\n    const failedLookupLocations = [];\n    const affectingLocations = [];\n    const conditions = getConditions(compilerOptions, !!(features & 32));\n    const diagnostics = [];\n    const state = {\n      compilerOptions,\n      host,\n      traceEnabled,\n      failedLookupLocations,\n      affectingLocations,\n      packageJsonInfoCache: cache,\n      features,\n      conditions,\n      requestContainingDirectory: containingDirectory,\n      reportDiagnostic: (diag2) => void diagnostics.push(diag2),\n      isConfigLookup,\n      candidateIsFromPackageJsonField: false\n    };\n    if (traceEnabled && moduleResolutionSupportsPackageJsonExportsAndImports(getEmitModuleResolutionKind(compilerOptions))) {\n      trace(host, Diagnostics.Resolving_in_0_mode_with_conditions_1, features & 32 ? \"ESM\" : \"CJS\", conditions.map((c) => `'${c}'`).join(\", \"));\n    }\n    let result;\n    if (getEmitModuleResolutionKind(compilerOptions) === 2) {\n      const priorityExtensions = extensions & (1 | 4);\n      const secondaryExtensions = extensions & ~(1 | 4);\n      result = priorityExtensions && tryResolve(priorityExtensions, state) || secondaryExtensions && tryResolve(secondaryExtensions, state) || void 0;\n    } else {\n      result = tryResolve(extensions, state);\n    }\n    let legacyResult;\n    if (((_a2 = result == null ? void 0 : result.value) == null ? void 0 : _a2.isExternalLibraryImport) && !isConfigLookup && extensions & (1 | 4) && features & 8 && !isExternalModuleNameRelative(moduleName) && !extensionIsOk(1 | 4, result.value.resolved.extension) && conditions.indexOf(\"import\") > -1) {\n      traceIfEnabled(state, Diagnostics.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);\n      const diagnosticState = {\n        ...state,\n        features: state.features & ~8,\n        failedLookupLocations: [],\n        affectingLocations: [],\n        reportDiagnostic: noop\n      };\n      const diagnosticResult = tryResolve(extensions & (1 | 4), diagnosticState);\n      if ((_b = diagnosticResult == null ? void 0 : diagnosticResult.value) == null ? void 0 : _b.isExternalLibraryImport) {\n        legacyResult = diagnosticResult.value.resolved.path;\n      }\n    }\n    return createResolvedModuleWithFailedLookupLocationsHandlingSymlink(moduleName, (_c = result == null ? void 0 : result.value) == null ? void 0 : _c.resolved, (_d = result == null ? void 0 : result.value) == null ? void 0 : _d.isExternalLibraryImport, failedLookupLocations, affectingLocations, diagnostics, state, legacyResult);\n    function tryResolve(extensions2, state2) {\n      const loader = (extensions3, candidate, onlyRecordFailures, state3) => nodeLoadModuleByRelativeName(extensions3, candidate, onlyRecordFailures, state3, true);\n      const resolved = tryLoadModuleUsingOptionalResolutionSettings(extensions2, moduleName, containingDirectory, loader, state2);\n      if (resolved) {\n        return toSearchResult({ resolved, isExternalLibraryImport: pathContainsNodeModules(resolved.path) });\n      }\n      if (!isExternalModuleNameRelative(moduleName)) {\n        let resolved2;\n        if (features & 2 && startsWith(moduleName, \"#\")) {\n          resolved2 = loadModuleFromImports(extensions2, moduleName, containingDirectory, state2, cache, redirectedReference);\n        }\n        if (!resolved2 && features & 4) {\n          resolved2 = loadModuleFromSelfNameReference(extensions2, moduleName, containingDirectory, state2, cache, redirectedReference);\n        }\n        if (!resolved2) {\n          if (traceEnabled) {\n            trace(host, Diagnostics.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1, moduleName, formatExtensions(extensions2));\n          }\n          resolved2 = loadModuleFromNearestNodeModulesDirectory(extensions2, moduleName, containingDirectory, state2, cache, redirectedReference);\n        }\n        return resolved2 && { value: resolved2.value && { resolved: resolved2.value, isExternalLibraryImport: true } };\n      } else {\n        const { path: candidate, parts } = normalizePathForCJSResolution(containingDirectory, moduleName);\n        const resolved2 = nodeLoadModuleByRelativeName(extensions2, candidate, false, state2, true);\n        return resolved2 && toSearchResult({ resolved: resolved2, isExternalLibraryImport: contains(parts, \"node_modules\") });\n      }\n    }\n  }\n  function normalizePathForCJSResolution(containingDirectory, moduleName) {\n    const combined = combinePaths(containingDirectory, moduleName);\n    const parts = getPathComponents(combined);\n    const lastPart = lastOrUndefined(parts);\n    const path = lastPart === \".\" || lastPart === \"..\" ? ensureTrailingDirectorySeparator(normalizePath(combined)) : normalizePath(combined);\n    return { path, parts };\n  }\n  function realPath(path, host, traceEnabled) {\n    if (!host.realpath) {\n      return path;\n    }\n    const real = normalizePath(host.realpath(path));\n    if (traceEnabled) {\n      trace(host, Diagnostics.Resolving_real_path_for_0_result_1, path, real);\n    }\n    Debug.assert(host.fileExists(real), `${path} linked to nonexistent file ${real}`);\n    return real;\n  }\n  function nodeLoadModuleByRelativeName(extensions, candidate, onlyRecordFailures, state, considerPackageJson) {\n    if (state.traceEnabled) {\n      trace(state.host, Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1, candidate, formatExtensions(extensions));\n    }\n    if (!hasTrailingDirectorySeparator(candidate)) {\n      if (!onlyRecordFailures) {\n        const parentOfCandidate = getDirectoryPath(candidate);\n        if (!directoryProbablyExists(parentOfCandidate, state.host)) {\n          if (state.traceEnabled) {\n            trace(state.host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, parentOfCandidate);\n          }\n          onlyRecordFailures = true;\n        }\n      }\n      const resolvedFromFile = loadModuleFromFile(extensions, candidate, onlyRecordFailures, state);\n      if (resolvedFromFile) {\n        const packageDirectory = considerPackageJson ? parseNodeModuleFromPath(resolvedFromFile.path) : void 0;\n        const packageInfo = packageDirectory ? getPackageJsonInfo(packageDirectory, false, state) : void 0;\n        return withPackageId(packageInfo, resolvedFromFile);\n      }\n    }\n    if (!onlyRecordFailures) {\n      const candidateExists = directoryProbablyExists(candidate, state.host);\n      if (!candidateExists) {\n        if (state.traceEnabled) {\n          trace(state.host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, candidate);\n        }\n        onlyRecordFailures = true;\n      }\n    }\n    if (!(state.features & 32)) {\n      return loadNodeModuleFromDirectory(extensions, candidate, onlyRecordFailures, state, considerPackageJson);\n    }\n    return void 0;\n  }\n  function pathContainsNodeModules(path) {\n    return stringContains(path, nodeModulesPathPart);\n  }\n  function parseNodeModuleFromPath(resolved) {\n    const path = normalizePath(resolved);\n    const idx = path.lastIndexOf(nodeModulesPathPart);\n    if (idx === -1) {\n      return void 0;\n    }\n    const indexAfterNodeModules = idx + nodeModulesPathPart.length;\n    let indexAfterPackageName = moveToNextDirectorySeparatorIfAvailable(path, indexAfterNodeModules);\n    if (path.charCodeAt(indexAfterNodeModules) === 64) {\n      indexAfterPackageName = moveToNextDirectorySeparatorIfAvailable(path, indexAfterPackageName);\n    }\n    return path.slice(0, indexAfterPackageName);\n  }\n  function moveToNextDirectorySeparatorIfAvailable(path, prevSeparatorIndex) {\n    const nextSeparatorIndex = path.indexOf(directorySeparator, prevSeparatorIndex + 1);\n    return nextSeparatorIndex === -1 ? prevSeparatorIndex : nextSeparatorIndex;\n  }\n  function loadModuleFromFileNoPackageId(extensions, candidate, onlyRecordFailures, state) {\n    return noPackageId(loadModuleFromFile(extensions, candidate, onlyRecordFailures, state));\n  }\n  function loadModuleFromFile(extensions, candidate, onlyRecordFailures, state) {\n    const resolvedByReplacingExtension = loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state);\n    if (resolvedByReplacingExtension) {\n      return resolvedByReplacingExtension;\n    }\n    if (!(state.features & 32)) {\n      const resolvedByAddingExtension = tryAddingExtensions(candidate, extensions, \"\", onlyRecordFailures, state);\n      if (resolvedByAddingExtension) {\n        return resolvedByAddingExtension;\n      }\n    }\n  }\n  function loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state) {\n    const filename = getBaseFileName(candidate);\n    if (filename.indexOf(\".\") === -1) {\n      return void 0;\n    }\n    let extensionless = removeFileExtension(candidate);\n    if (extensionless === candidate) {\n      extensionless = candidate.substring(0, candidate.lastIndexOf(\".\"));\n    }\n    const extension = candidate.substring(extensionless.length);\n    if (state.traceEnabled) {\n      trace(state.host, Diagnostics.File_name_0_has_a_1_extension_stripping_it, candidate, extension);\n    }\n    return tryAddingExtensions(extensionless, extensions, extension, onlyRecordFailures, state);\n  }\n  function loadFileNameFromPackageJsonField(extensions, candidate, onlyRecordFailures, state) {\n    if (extensions & 1 && fileExtensionIsOneOf(candidate, supportedTSImplementationExtensions) || extensions & 4 && fileExtensionIsOneOf(candidate, supportedDeclarationExtensions)) {\n      const result = tryFile(candidate, onlyRecordFailures, state);\n      return result !== void 0 ? { path: candidate, ext: tryExtractTSExtension(candidate), resolvedUsingTsExtension: void 0 } : void 0;\n    }\n    if (state.isConfigLookup && extensions === 8 && fileExtensionIs(candidate, \".json\")) {\n      const result = tryFile(candidate, onlyRecordFailures, state);\n      return result !== void 0 ? { path: candidate, ext: \".json\", resolvedUsingTsExtension: void 0 } : void 0;\n    }\n    return loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state);\n  }\n  function tryAddingExtensions(candidate, extensions, originalExtension, onlyRecordFailures, state) {\n    if (!onlyRecordFailures) {\n      const directory = getDirectoryPath(candidate);\n      if (directory) {\n        onlyRecordFailures = !directoryProbablyExists(directory, state.host);\n      }\n    }\n    switch (originalExtension) {\n      case \".mjs\":\n      case \".mts\":\n      case \".d.mts\":\n        return extensions & 1 && tryExtension(\".mts\", originalExtension === \".mts\" || originalExtension === \".d.mts\") || extensions & 4 && tryExtension(\".d.mts\", originalExtension === \".mts\" || originalExtension === \".d.mts\") || extensions & 2 && tryExtension(\".mjs\") || void 0;\n      case \".cjs\":\n      case \".cts\":\n      case \".d.cts\":\n        return extensions & 1 && tryExtension(\".cts\", originalExtension === \".cts\" || originalExtension === \".d.cts\") || extensions & 4 && tryExtension(\".d.cts\", originalExtension === \".cts\" || originalExtension === \".d.cts\") || extensions & 2 && tryExtension(\".cjs\") || void 0;\n      case \".json\":\n        return extensions & 4 && tryExtension(\".d.json.ts\") || extensions & 8 && tryExtension(\".json\") || void 0;\n      case \".tsx\":\n      case \".jsx\":\n        return extensions & 1 && (tryExtension(\".tsx\", originalExtension === \".tsx\") || tryExtension(\".ts\", originalExtension === \".tsx\")) || extensions & 4 && tryExtension(\".d.ts\", originalExtension === \".tsx\") || extensions & 2 && (tryExtension(\".jsx\") || tryExtension(\".js\")) || void 0;\n      case \".ts\":\n      case \".d.ts\":\n      case \".js\":\n      case \"\":\n        return extensions & 1 && (tryExtension(\".ts\", originalExtension === \".ts\" || originalExtension === \".d.ts\") || tryExtension(\".tsx\", originalExtension === \".ts\" || originalExtension === \".d.ts\")) || extensions & 4 && tryExtension(\".d.ts\", originalExtension === \".ts\" || originalExtension === \".d.ts\") || extensions & 2 && (tryExtension(\".js\") || tryExtension(\".jsx\")) || state.isConfigLookup && tryExtension(\".json\") || void 0;\n      default:\n        return extensions & 4 && !isDeclarationFileName(candidate + originalExtension) && tryExtension(`.d${originalExtension}.ts`) || void 0;\n    }\n    function tryExtension(ext, resolvedUsingTsExtension) {\n      const path = tryFile(candidate + ext, onlyRecordFailures, state);\n      return path === void 0 ? void 0 : { path, ext, resolvedUsingTsExtension: !state.candidateIsFromPackageJsonField && resolvedUsingTsExtension };\n    }\n  }\n  function tryFile(fileName, onlyRecordFailures, state) {\n    var _a2, _b;\n    if (!((_a2 = state.compilerOptions.moduleSuffixes) == null ? void 0 : _a2.length)) {\n      return tryFileLookup(fileName, onlyRecordFailures, state);\n    }\n    const ext = (_b = tryGetExtensionFromPath2(fileName)) != null ? _b : \"\";\n    const fileNameNoExtension = ext ? removeExtension(fileName, ext) : fileName;\n    return forEach(state.compilerOptions.moduleSuffixes, (suffix) => tryFileLookup(fileNameNoExtension + suffix + ext, onlyRecordFailures, state));\n  }\n  function tryFileLookup(fileName, onlyRecordFailures, state) {\n    if (!onlyRecordFailures) {\n      if (state.host.fileExists(fileName)) {\n        if (state.traceEnabled) {\n          trace(state.host, Diagnostics.File_0_exists_use_it_as_a_name_resolution_result, fileName);\n        }\n        return fileName;\n      } else {\n        if (state.traceEnabled) {\n          trace(state.host, Diagnostics.File_0_does_not_exist, fileName);\n        }\n      }\n    }\n    state.failedLookupLocations.push(fileName);\n    return void 0;\n  }\n  function loadNodeModuleFromDirectory(extensions, candidate, onlyRecordFailures, state, considerPackageJson = true) {\n    const packageInfo = considerPackageJson ? getPackageJsonInfo(candidate, onlyRecordFailures, state) : void 0;\n    const packageJsonContent = packageInfo && packageInfo.contents.packageJsonContent;\n    const versionPaths = packageInfo && getVersionPathsOfPackageJsonInfo(packageInfo, state);\n    return withPackageId(packageInfo, loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, packageJsonContent, versionPaths));\n  }\n  function getEntrypointsFromPackageJsonInfo(packageJsonInfo, options, host, cache, resolveJs) {\n    if (!resolveJs && packageJsonInfo.contents.resolvedEntrypoints !== void 0) {\n      return packageJsonInfo.contents.resolvedEntrypoints;\n    }\n    let entrypoints;\n    const extensions = 1 | 4 | (resolveJs ? 2 : 0);\n    const features = getNodeResolutionFeatures(options);\n    const loadPackageJsonMainState = getTemporaryModuleResolutionState(cache == null ? void 0 : cache.getPackageJsonInfoCache(), host, options);\n    loadPackageJsonMainState.conditions = getConditions(options);\n    loadPackageJsonMainState.requestContainingDirectory = packageJsonInfo.packageDirectory;\n    const mainResolution = loadNodeModuleFromDirectoryWorker(extensions, packageJsonInfo.packageDirectory, false, loadPackageJsonMainState, packageJsonInfo.contents.packageJsonContent, getVersionPathsOfPackageJsonInfo(packageJsonInfo, loadPackageJsonMainState));\n    entrypoints = append(entrypoints, mainResolution == null ? void 0 : mainResolution.path);\n    if (features & 8 && packageJsonInfo.contents.packageJsonContent.exports) {\n      const conditionSets = deduplicate([getConditions(options, true), getConditions(options, false)], arrayIsEqualTo);\n      for (const conditions of conditionSets) {\n        const loadPackageJsonExportsState = { ...loadPackageJsonMainState, failedLookupLocations: [], conditions };\n        const exportResolutions = loadEntrypointsFromExportMap(packageJsonInfo, packageJsonInfo.contents.packageJsonContent.exports, loadPackageJsonExportsState, extensions);\n        if (exportResolutions) {\n          for (const resolution of exportResolutions) {\n            entrypoints = appendIfUnique(entrypoints, resolution.path);\n          }\n        }\n      }\n    }\n    return packageJsonInfo.contents.resolvedEntrypoints = entrypoints || false;\n  }\n  function loadEntrypointsFromExportMap(scope, exports, state, extensions) {\n    let entrypoints;\n    if (isArray(exports)) {\n      for (const target of exports) {\n        loadEntrypointsFromTargetExports(target);\n      }\n    } else if (typeof exports === \"object\" && exports !== null && allKeysStartWithDot(exports)) {\n      for (const key in exports) {\n        loadEntrypointsFromTargetExports(exports[key]);\n      }\n    } else {\n      loadEntrypointsFromTargetExports(exports);\n    }\n    return entrypoints;\n    function loadEntrypointsFromTargetExports(target) {\n      var _a2, _b;\n      if (typeof target === \"string\" && startsWith(target, \"./\") && target.indexOf(\"*\") === -1) {\n        const partsAfterFirst = getPathComponents(target).slice(2);\n        if (partsAfterFirst.indexOf(\"..\") >= 0 || partsAfterFirst.indexOf(\".\") >= 0 || partsAfterFirst.indexOf(\"node_modules\") >= 0) {\n          return false;\n        }\n        const resolvedTarget = combinePaths(scope.packageDirectory, target);\n        const finalPath = getNormalizedAbsolutePath(resolvedTarget, (_b = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a2));\n        const result = loadFileNameFromPackageJsonField(extensions, finalPath, false, state);\n        if (result) {\n          entrypoints = appendIfUnique(entrypoints, result, (a, b) => a.path === b.path);\n          return true;\n        }\n      } else if (Array.isArray(target)) {\n        for (const t of target) {\n          const success = loadEntrypointsFromTargetExports(t);\n          if (success) {\n            return true;\n          }\n        }\n      } else if (typeof target === \"object\" && target !== null) {\n        return forEach(getOwnKeys(target), (key) => {\n          if (key === \"default\" || contains(state.conditions, key) || isApplicableVersionedTypesKey(state.conditions, key)) {\n            loadEntrypointsFromTargetExports(target[key]);\n            return true;\n          }\n        });\n      }\n    }\n  }\n  function getTemporaryModuleResolutionState(packageJsonInfoCache, host, options) {\n    return {\n      host,\n      compilerOptions: options,\n      traceEnabled: isTraceEnabled(options, host),\n      failedLookupLocations: noopPush,\n      affectingLocations: noopPush,\n      packageJsonInfoCache,\n      features: 0,\n      conditions: emptyArray,\n      requestContainingDirectory: void 0,\n      reportDiagnostic: noop,\n      isConfigLookup: false,\n      candidateIsFromPackageJsonField: false\n    };\n  }\n  function getPackageScopeForPath(fileName, state) {\n    const parts = getPathComponents(fileName);\n    parts.pop();\n    while (parts.length > 0) {\n      const pkg = getPackageJsonInfo(getPathFromPathComponents(parts), false, state);\n      if (pkg) {\n        return pkg;\n      }\n      parts.pop();\n    }\n    return void 0;\n  }\n  function getVersionPathsOfPackageJsonInfo(packageJsonInfo, state) {\n    if (packageJsonInfo.contents.versionPaths === void 0) {\n      packageJsonInfo.contents.versionPaths = readPackageJsonTypesVersionPaths(packageJsonInfo.contents.packageJsonContent, state) || false;\n    }\n    return packageJsonInfo.contents.versionPaths || void 0;\n  }\n  function getPackageJsonInfo(packageDirectory, onlyRecordFailures, state) {\n    var _a2, _b, _c;\n    const { host, traceEnabled } = state;\n    const packageJsonPath = combinePaths(packageDirectory, \"package.json\");\n    if (onlyRecordFailures) {\n      state.failedLookupLocations.push(packageJsonPath);\n      return void 0;\n    }\n    const existing = (_a2 = state.packageJsonInfoCache) == null ? void 0 : _a2.getPackageJsonInfo(packageJsonPath);\n    if (existing !== void 0) {\n      if (typeof existing !== \"boolean\") {\n        if (traceEnabled)\n          trace(host, Diagnostics.File_0_exists_according_to_earlier_cached_lookups, packageJsonPath);\n        state.affectingLocations.push(packageJsonPath);\n        return existing.packageDirectory === packageDirectory ? existing : { packageDirectory, contents: existing.contents };\n      } else {\n        if (existing && traceEnabled)\n          trace(host, Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups, packageJsonPath);\n        state.failedLookupLocations.push(packageJsonPath);\n        return void 0;\n      }\n    }\n    const directoryExists = directoryProbablyExists(packageDirectory, host);\n    if (directoryExists && host.fileExists(packageJsonPath)) {\n      const packageJsonContent = readJson(packageJsonPath, host);\n      if (traceEnabled) {\n        trace(host, Diagnostics.Found_package_json_at_0, packageJsonPath);\n      }\n      const result = { packageDirectory, contents: { packageJsonContent, versionPaths: void 0, resolvedEntrypoints: void 0 } };\n      (_b = state.packageJsonInfoCache) == null ? void 0 : _b.setPackageJsonInfo(packageJsonPath, result);\n      state.affectingLocations.push(packageJsonPath);\n      return result;\n    } else {\n      if (directoryExists && traceEnabled) {\n        trace(host, Diagnostics.File_0_does_not_exist, packageJsonPath);\n      }\n      (_c = state.packageJsonInfoCache) == null ? void 0 : _c.setPackageJsonInfo(packageJsonPath, directoryExists);\n      state.failedLookupLocations.push(packageJsonPath);\n    }\n  }\n  function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, jsonContent, versionPaths) {\n    let packageFile;\n    if (jsonContent) {\n      if (state.isConfigLookup) {\n        packageFile = readPackageJsonTSConfigField(jsonContent, candidate, state);\n      } else {\n        packageFile = extensions & 4 && readPackageJsonTypesFields(jsonContent, candidate, state) || extensions & (3 | 4) && readPackageJsonMainField(jsonContent, candidate, state) || void 0;\n      }\n    }\n    const loader = (extensions2, candidate2, onlyRecordFailures2, state2) => {\n      const fromFile = tryFile(candidate2, onlyRecordFailures2, state2);\n      if (fromFile) {\n        const resolved = resolvedIfExtensionMatches(extensions2, fromFile);\n        if (resolved) {\n          return noPackageId(resolved);\n        }\n        if (state2.traceEnabled) {\n          trace(state2.host, Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it, fromFile);\n        }\n      }\n      const expandedExtensions = extensions2 === 4 ? 1 | 4 : extensions2;\n      const features = state2.features;\n      const candidateIsFromPackageJsonField = state2.candidateIsFromPackageJsonField;\n      state2.candidateIsFromPackageJsonField = true;\n      if ((jsonContent == null ? void 0 : jsonContent.type) !== \"module\") {\n        state2.features &= ~32;\n      }\n      const result = nodeLoadModuleByRelativeName(expandedExtensions, candidate2, onlyRecordFailures2, state2, false);\n      state2.features = features;\n      state2.candidateIsFromPackageJsonField = candidateIsFromPackageJsonField;\n      return result;\n    };\n    const onlyRecordFailuresForPackageFile = packageFile ? !directoryProbablyExists(getDirectoryPath(packageFile), state.host) : void 0;\n    const onlyRecordFailuresForIndex = onlyRecordFailures || !directoryProbablyExists(candidate, state.host);\n    const indexPath = combinePaths(candidate, state.isConfigLookup ? \"tsconfig\" : \"index\");\n    if (versionPaths && (!packageFile || containsPath(candidate, packageFile))) {\n      const moduleName = getRelativePathFromDirectory(candidate, packageFile || indexPath, false);\n      if (state.traceEnabled) {\n        trace(state.host, Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, versionPaths.version, version, moduleName);\n      }\n      const result = tryLoadModuleUsingPaths(extensions, moduleName, candidate, versionPaths.paths, void 0, loader, onlyRecordFailuresForPackageFile || onlyRecordFailuresForIndex, state);\n      if (result) {\n        return removeIgnoredPackageId(result.value);\n      }\n    }\n    const packageFileResult = packageFile && removeIgnoredPackageId(loader(extensions, packageFile, onlyRecordFailuresForPackageFile, state));\n    if (packageFileResult)\n      return packageFileResult;\n    if (!(state.features & 32)) {\n      return loadModuleFromFile(extensions, indexPath, onlyRecordFailuresForIndex, state);\n    }\n  }\n  function resolvedIfExtensionMatches(extensions, path, resolvedUsingTsExtension) {\n    const ext = tryGetExtensionFromPath2(path);\n    return ext !== void 0 && extensionIsOk(extensions, ext) ? { path, ext, resolvedUsingTsExtension } : void 0;\n  }\n  function extensionIsOk(extensions, extension) {\n    return extensions & 2 && (extension === \".js\" || extension === \".jsx\" || extension === \".mjs\" || extension === \".cjs\") || extensions & 1 && (extension === \".ts\" || extension === \".tsx\" || extension === \".mts\" || extension === \".cts\") || extensions & 4 && (extension === \".d.ts\" || extension === \".d.mts\" || extension === \".d.cts\") || extensions & 8 && extension === \".json\" || false;\n  }\n  function parsePackageName(moduleName) {\n    let idx = moduleName.indexOf(directorySeparator);\n    if (moduleName[0] === \"@\") {\n      idx = moduleName.indexOf(directorySeparator, idx + 1);\n    }\n    return idx === -1 ? { packageName: moduleName, rest: \"\" } : { packageName: moduleName.slice(0, idx), rest: moduleName.slice(idx + 1) };\n  }\n  function allKeysStartWithDot(obj) {\n    return every(getOwnKeys(obj), (k) => startsWith(k, \".\"));\n  }\n  function noKeyStartsWithDot(obj) {\n    return !some(getOwnKeys(obj), (k) => startsWith(k, \".\"));\n  }\n  function loadModuleFromSelfNameReference(extensions, moduleName, directory, state, cache, redirectedReference) {\n    var _a2, _b;\n    const directoryPath = getNormalizedAbsolutePath(combinePaths(directory, \"dummy\"), (_b = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a2));\n    const scope = getPackageScopeForPath(directoryPath, state);\n    if (!scope || !scope.contents.packageJsonContent.exports) {\n      return void 0;\n    }\n    if (typeof scope.contents.packageJsonContent.name !== \"string\") {\n      return void 0;\n    }\n    const parts = getPathComponents(moduleName);\n    const nameParts = getPathComponents(scope.contents.packageJsonContent.name);\n    if (!every(nameParts, (p, i) => parts[i] === p)) {\n      return void 0;\n    }\n    const trailingParts = parts.slice(nameParts.length);\n    const subpath = !length(trailingParts) ? \".\" : `.${directorySeparator}${trailingParts.join(directorySeparator)}`;\n    const priorityExtensions = extensions & (1 | 4);\n    const secondaryExtensions = extensions & ~(1 | 4);\n    return loadModuleFromExports(scope, priorityExtensions, subpath, state, cache, redirectedReference) || loadModuleFromExports(scope, secondaryExtensions, subpath, state, cache, redirectedReference);\n  }\n  function loadModuleFromExports(scope, extensions, subpath, state, cache, redirectedReference) {\n    if (!scope.contents.packageJsonContent.exports) {\n      return void 0;\n    }\n    if (subpath === \".\") {\n      let mainExport;\n      if (typeof scope.contents.packageJsonContent.exports === \"string\" || Array.isArray(scope.contents.packageJsonContent.exports) || typeof scope.contents.packageJsonContent.exports === \"object\" && noKeyStartsWithDot(scope.contents.packageJsonContent.exports)) {\n        mainExport = scope.contents.packageJsonContent.exports;\n      } else if (hasProperty(scope.contents.packageJsonContent.exports, \".\")) {\n        mainExport = scope.contents.packageJsonContent.exports[\".\"];\n      }\n      if (mainExport) {\n        const loadModuleFromTargetImportOrExport = getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirectedReference, subpath, scope, false);\n        return loadModuleFromTargetImportOrExport(mainExport, \"\", false, \".\");\n      }\n    } else if (allKeysStartWithDot(scope.contents.packageJsonContent.exports)) {\n      if (typeof scope.contents.packageJsonContent.exports !== \"object\") {\n        if (state.traceEnabled) {\n          trace(state.host, Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1, subpath, scope.packageDirectory);\n        }\n        return toSearchResult(void 0);\n      }\n      const result = loadModuleFromImportsOrExports(extensions, state, cache, redirectedReference, subpath, scope.contents.packageJsonContent.exports, scope, false);\n      if (result) {\n        return result;\n      }\n    }\n    if (state.traceEnabled) {\n      trace(state.host, Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1, subpath, scope.packageDirectory);\n    }\n    return toSearchResult(void 0);\n  }\n  function loadModuleFromImports(extensions, moduleName, directory, state, cache, redirectedReference) {\n    var _a2, _b;\n    if (moduleName === \"#\" || startsWith(moduleName, \"#/\")) {\n      if (state.traceEnabled) {\n        trace(state.host, Diagnostics.Invalid_import_specifier_0_has_no_possible_resolutions, moduleName);\n      }\n      return toSearchResult(void 0);\n    }\n    const directoryPath = getNormalizedAbsolutePath(combinePaths(directory, \"dummy\"), (_b = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a2));\n    const scope = getPackageScopeForPath(directoryPath, state);\n    if (!scope) {\n      if (state.traceEnabled) {\n        trace(state.host, Diagnostics.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve, directoryPath);\n      }\n      return toSearchResult(void 0);\n    }\n    if (!scope.contents.packageJsonContent.imports) {\n      if (state.traceEnabled) {\n        trace(state.host, Diagnostics.package_json_scope_0_has_no_imports_defined, scope.packageDirectory);\n      }\n      return toSearchResult(void 0);\n    }\n    const result = loadModuleFromImportsOrExports(extensions, state, cache, redirectedReference, moduleName, scope.contents.packageJsonContent.imports, scope, true);\n    if (result) {\n      return result;\n    }\n    if (state.traceEnabled) {\n      trace(state.host, Diagnostics.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1, moduleName, scope.packageDirectory);\n    }\n    return toSearchResult(void 0);\n  }\n  function comparePatternKeys(a, b) {\n    const aPatternIndex = a.indexOf(\"*\");\n    const bPatternIndex = b.indexOf(\"*\");\n    const baseLenA = aPatternIndex === -1 ? a.length : aPatternIndex + 1;\n    const baseLenB = bPatternIndex === -1 ? b.length : bPatternIndex + 1;\n    if (baseLenA > baseLenB)\n      return -1;\n    if (baseLenB > baseLenA)\n      return 1;\n    if (aPatternIndex === -1)\n      return 1;\n    if (bPatternIndex === -1)\n      return -1;\n    if (a.length > b.length)\n      return -1;\n    if (b.length > a.length)\n      return 1;\n    return 0;\n  }\n  function loadModuleFromImportsOrExports(extensions, state, cache, redirectedReference, moduleName, lookupTable, scope, isImports) {\n    const loadModuleFromTargetImportOrExport = getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirectedReference, moduleName, scope, isImports);\n    if (!endsWith(moduleName, directorySeparator) && moduleName.indexOf(\"*\") === -1 && hasProperty(lookupTable, moduleName)) {\n      const target = lookupTable[moduleName];\n      return loadModuleFromTargetImportOrExport(target, \"\", false, moduleName);\n    }\n    const expandingKeys = sort(filter(getOwnKeys(lookupTable), (k) => k.indexOf(\"*\") !== -1 || endsWith(k, \"/\")), comparePatternKeys);\n    for (const potentialTarget of expandingKeys) {\n      if (state.features & 16 && matchesPatternWithTrailer(potentialTarget, moduleName)) {\n        const target = lookupTable[potentialTarget];\n        const starPos = potentialTarget.indexOf(\"*\");\n        const subpath = moduleName.substring(potentialTarget.substring(0, starPos).length, moduleName.length - (potentialTarget.length - 1 - starPos));\n        return loadModuleFromTargetImportOrExport(target, subpath, true, potentialTarget);\n      } else if (endsWith(potentialTarget, \"*\") && startsWith(moduleName, potentialTarget.substring(0, potentialTarget.length - 1))) {\n        const target = lookupTable[potentialTarget];\n        const subpath = moduleName.substring(potentialTarget.length - 1);\n        return loadModuleFromTargetImportOrExport(target, subpath, true, potentialTarget);\n      } else if (startsWith(moduleName, potentialTarget)) {\n        const target = lookupTable[potentialTarget];\n        const subpath = moduleName.substring(potentialTarget.length);\n        return loadModuleFromTargetImportOrExport(target, subpath, false, potentialTarget);\n      }\n    }\n    function matchesPatternWithTrailer(target, name) {\n      if (endsWith(target, \"*\"))\n        return false;\n      const starPos = target.indexOf(\"*\");\n      if (starPos === -1)\n        return false;\n      return startsWith(name, target.substring(0, starPos)) && endsWith(name, target.substring(starPos + 1));\n    }\n  }\n  function getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirectedReference, moduleName, scope, isImports) {\n    return loadModuleFromTargetImportOrExport;\n    function loadModuleFromTargetImportOrExport(target, subpath, pattern, key) {\n      if (typeof target === \"string\") {\n        if (!pattern && subpath.length > 0 && !endsWith(target, \"/\")) {\n          if (state.traceEnabled) {\n            trace(state.host, Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, scope.packageDirectory, moduleName);\n          }\n          return toSearchResult(void 0);\n        }\n        if (!startsWith(target, \"./\")) {\n          if (isImports && !startsWith(target, \"../\") && !startsWith(target, \"/\") && !isRootedDiskPath(target)) {\n            const combinedLookup = pattern ? target.replace(/\\*/g, subpath) : target + subpath;\n            traceIfEnabled(state, Diagnostics.Using_0_subpath_1_with_target_2, \"imports\", key, combinedLookup);\n            traceIfEnabled(state, Diagnostics.Resolving_module_0_from_1, combinedLookup, scope.packageDirectory + \"/\");\n            const result = nodeModuleNameResolverWorker(state.features, combinedLookup, scope.packageDirectory + \"/\", state.compilerOptions, state.host, cache, extensions, false, redirectedReference);\n            return toSearchResult(result.resolvedModule ? {\n              path: result.resolvedModule.resolvedFileName,\n              extension: result.resolvedModule.extension,\n              packageId: result.resolvedModule.packageId,\n              originalPath: result.resolvedModule.originalPath,\n              resolvedUsingTsExtension: result.resolvedModule.resolvedUsingTsExtension\n            } : void 0);\n          }\n          if (state.traceEnabled) {\n            trace(state.host, Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, scope.packageDirectory, moduleName);\n          }\n          return toSearchResult(void 0);\n        }\n        const parts = pathIsRelative(target) ? getPathComponents(target).slice(1) : getPathComponents(target);\n        const partsAfterFirst = parts.slice(1);\n        if (partsAfterFirst.indexOf(\"..\") >= 0 || partsAfterFirst.indexOf(\".\") >= 0 || partsAfterFirst.indexOf(\"node_modules\") >= 0) {\n          if (state.traceEnabled) {\n            trace(state.host, Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, scope.packageDirectory, moduleName);\n          }\n          return toSearchResult(void 0);\n        }\n        const resolvedTarget = combinePaths(scope.packageDirectory, target);\n        const subpathParts = getPathComponents(subpath);\n        if (subpathParts.indexOf(\"..\") >= 0 || subpathParts.indexOf(\".\") >= 0 || subpathParts.indexOf(\"node_modules\") >= 0) {\n          if (state.traceEnabled) {\n            trace(state.host, Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, scope.packageDirectory, moduleName);\n          }\n          return toSearchResult(void 0);\n        }\n        if (state.traceEnabled) {\n          trace(state.host, Diagnostics.Using_0_subpath_1_with_target_2, isImports ? \"imports\" : \"exports\", key, pattern ? target.replace(/\\*/g, subpath) : target + subpath);\n        }\n        const finalPath = toAbsolutePath(pattern ? resolvedTarget.replace(/\\*/g, subpath) : resolvedTarget + subpath);\n        const inputLink = tryLoadInputFileForPath(finalPath, subpath, combinePaths(scope.packageDirectory, \"package.json\"), isImports);\n        if (inputLink)\n          return inputLink;\n        return toSearchResult(withPackageId(scope, loadFileNameFromPackageJsonField(extensions, finalPath, false, state)));\n      } else if (typeof target === \"object\" && target !== null) {\n        if (!Array.isArray(target)) {\n          traceIfEnabled(state, Diagnostics.Entering_conditional_exports);\n          for (const condition of getOwnKeys(target)) {\n            if (condition === \"default\" || state.conditions.indexOf(condition) >= 0 || isApplicableVersionedTypesKey(state.conditions, condition)) {\n              traceIfEnabled(state, Diagnostics.Matched_0_condition_1, isImports ? \"imports\" : \"exports\", condition);\n              const subTarget = target[condition];\n              const result = loadModuleFromTargetImportOrExport(subTarget, subpath, pattern, key);\n              if (result) {\n                traceIfEnabled(state, Diagnostics.Resolved_under_condition_0, condition);\n                traceIfEnabled(state, Diagnostics.Exiting_conditional_exports);\n                return result;\n              } else {\n                traceIfEnabled(state, Diagnostics.Failed_to_resolve_under_condition_0, condition);\n              }\n            } else {\n              traceIfEnabled(state, Diagnostics.Saw_non_matching_condition_0, condition);\n            }\n          }\n          traceIfEnabled(state, Diagnostics.Exiting_conditional_exports);\n          return void 0;\n        } else {\n          if (!length(target)) {\n            if (state.traceEnabled) {\n              trace(state.host, Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, scope.packageDirectory, moduleName);\n            }\n            return toSearchResult(void 0);\n          }\n          for (const elem of target) {\n            const result = loadModuleFromTargetImportOrExport(elem, subpath, pattern, key);\n            if (result) {\n              return result;\n            }\n          }\n        }\n      } else if (target === null) {\n        if (state.traceEnabled) {\n          trace(state.host, Diagnostics.package_json_scope_0_explicitly_maps_specifier_1_to_null, scope.packageDirectory, moduleName);\n        }\n        return toSearchResult(void 0);\n      }\n      if (state.traceEnabled) {\n        trace(state.host, Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, scope.packageDirectory, moduleName);\n      }\n      return toSearchResult(void 0);\n      function toAbsolutePath(path) {\n        var _a2, _b;\n        if (path === void 0)\n          return path;\n        return getNormalizedAbsolutePath(path, (_b = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a2));\n      }\n      function combineDirectoryPath(root, dir) {\n        return ensureTrailingDirectorySeparator(combinePaths(root, dir));\n      }\n      function useCaseSensitiveFileNames() {\n        return !state.host.useCaseSensitiveFileNames ? true : typeof state.host.useCaseSensitiveFileNames === \"boolean\" ? state.host.useCaseSensitiveFileNames : state.host.useCaseSensitiveFileNames();\n      }\n      function tryLoadInputFileForPath(finalPath, entry, packagePath, isImports2) {\n        var _a2, _b, _c, _d;\n        if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && finalPath.indexOf(\"/node_modules/\") === -1 && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames()) : true)) {\n          const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames });\n          const commonSourceDirGuesses = [];\n          if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) {\n            const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((_b = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a2)) || \"\", getCanonicalFileName));\n            commonSourceDirGuesses.push(commonDir);\n          } else if (state.requestContainingDirectory) {\n            const requestingFile = toAbsolutePath(combinePaths(state.requestContainingDirectory, \"index.ts\"));\n            const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [requestingFile, toAbsolutePath(packagePath)], ((_d = (_c = state.host).getCurrentDirectory) == null ? void 0 : _d.call(_c)) || \"\", getCanonicalFileName));\n            commonSourceDirGuesses.push(commonDir);\n            let fragment = ensureTrailingDirectorySeparator(commonDir);\n            while (fragment && fragment.length > 1) {\n              const parts = getPathComponents(fragment);\n              parts.pop();\n              const commonDir2 = getPathFromPathComponents(parts);\n              commonSourceDirGuesses.unshift(commonDir2);\n              fragment = ensureTrailingDirectorySeparator(commonDir2);\n            }\n          }\n          if (commonSourceDirGuesses.length > 1) {\n            state.reportDiagnostic(createCompilerDiagnostic(isImports2 ? Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate : Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate, entry === \"\" ? \".\" : entry, packagePath));\n          }\n          for (const commonSourceDirGuess of commonSourceDirGuesses) {\n            const candidateDirectories = getOutputDirectoriesForBaseDirectory(commonSourceDirGuess);\n            for (const candidateDir of candidateDirectories) {\n              if (containsPath(candidateDir, finalPath, !useCaseSensitiveFileNames())) {\n                const pathFragment = finalPath.slice(candidateDir.length + 1);\n                const possibleInputBase = combinePaths(commonSourceDirGuess, pathFragment);\n                const jsAndDtsExtensions = [\".mjs\", \".cjs\", \".js\", \".json\", \".d.mts\", \".d.cts\", \".d.ts\"];\n                for (const ext of jsAndDtsExtensions) {\n                  if (fileExtensionIs(possibleInputBase, ext)) {\n                    const inputExts = getPossibleOriginalInputExtensionForExtension(possibleInputBase);\n                    for (const possibleExt of inputExts) {\n                      if (!extensionIsOk(extensions, possibleExt))\n                        continue;\n                      const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames());\n                      if (state.host.fileExists(possibleInputWithInputExtension)) {\n                        return toSearchResult(withPackageId(scope, loadFileNameFromPackageJsonField(extensions, possibleInputWithInputExtension, false, state)));\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          }\n        }\n        return void 0;\n        function getOutputDirectoriesForBaseDirectory(commonSourceDirGuess) {\n          var _a3, _b2;\n          const currentDir = state.compilerOptions.configFile ? ((_b2 = (_a3 = state.host).getCurrentDirectory) == null ? void 0 : _b2.call(_a3)) || \"\" : commonSourceDirGuess;\n          const candidateDirectories = [];\n          if (state.compilerOptions.declarationDir) {\n            candidateDirectories.push(toAbsolutePath(combineDirectoryPath(currentDir, state.compilerOptions.declarationDir)));\n          }\n          if (state.compilerOptions.outDir && state.compilerOptions.outDir !== state.compilerOptions.declarationDir) {\n            candidateDirectories.push(toAbsolutePath(combineDirectoryPath(currentDir, state.compilerOptions.outDir)));\n          }\n          return candidateDirectories;\n        }\n      }\n    }\n  }\n  function isApplicableVersionedTypesKey(conditions, key) {\n    if (conditions.indexOf(\"types\") === -1)\n      return false;\n    if (!startsWith(key, \"types@\"))\n      return false;\n    const range = VersionRange.tryParse(key.substring(\"types@\".length));\n    if (!range)\n      return false;\n    return range.test(version);\n  }\n  function loadModuleFromNearestNodeModulesDirectory(extensions, moduleName, directory, state, cache, redirectedReference) {\n    return loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, directory, state, false, cache, redirectedReference);\n  }\n  function loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, directory, state) {\n    return loadModuleFromNearestNodeModulesDirectoryWorker(4, moduleName, directory, state, true, void 0, void 0);\n  }\n  function loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) {\n    const mode = state.features === 0 ? void 0 : state.features & 32 ? 99 : 1;\n    const priorityExtensions = extensions & (1 | 4);\n    const secondaryExtensions = extensions & ~(1 | 4);\n    if (priorityExtensions) {\n      const result = lookup(priorityExtensions);\n      if (result)\n        return result;\n    }\n    if (secondaryExtensions && !typesScopeOnly) {\n      return lookup(secondaryExtensions);\n    }\n    function lookup(extensions2) {\n      return forEachAncestorDirectory(normalizeSlashes(directory), (ancestorDirectory) => {\n        if (getBaseFileName(ancestorDirectory) !== \"node_modules\") {\n          const resolutionFromCache = tryFindNonRelativeModuleNameInCache(cache, moduleName, mode, ancestorDirectory, redirectedReference, state);\n          if (resolutionFromCache) {\n            return resolutionFromCache;\n          }\n          return toSearchResult(loadModuleFromImmediateNodeModulesDirectory(extensions2, moduleName, ancestorDirectory, state, typesScopeOnly, cache, redirectedReference));\n        }\n      });\n    }\n  }\n  function loadModuleFromImmediateNodeModulesDirectory(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) {\n    const nodeModulesFolder = combinePaths(directory, \"node_modules\");\n    const nodeModulesFolderExists = directoryProbablyExists(nodeModulesFolder, state.host);\n    if (!nodeModulesFolderExists && state.traceEnabled) {\n      trace(state.host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, nodeModulesFolder);\n    }\n    if (!typesScopeOnly) {\n      const packageResult = loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesFolder, nodeModulesFolderExists, state, cache, redirectedReference);\n      if (packageResult) {\n        return packageResult;\n      }\n    }\n    if (extensions & 4) {\n      const nodeModulesAtTypes2 = combinePaths(nodeModulesFolder, \"@types\");\n      let nodeModulesAtTypesExists = nodeModulesFolderExists;\n      if (nodeModulesFolderExists && !directoryProbablyExists(nodeModulesAtTypes2, state.host)) {\n        if (state.traceEnabled) {\n          trace(state.host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, nodeModulesAtTypes2);\n        }\n        nodeModulesAtTypesExists = false;\n      }\n      return loadModuleFromSpecificNodeModulesDirectory(4, mangleScopedPackageNameWithTrace(moduleName, state), nodeModulesAtTypes2, nodeModulesAtTypesExists, state, cache, redirectedReference);\n    }\n  }\n  function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesDirectory, nodeModulesDirectoryExists, state, cache, redirectedReference) {\n    var _a2, _b, _c;\n    const candidate = normalizePath(combinePaths(nodeModulesDirectory, moduleName));\n    const { packageName, rest } = parsePackageName(moduleName);\n    const packageDirectory = combinePaths(nodeModulesDirectory, packageName);\n    let rootPackageInfo;\n    let packageInfo = getPackageJsonInfo(candidate, !nodeModulesDirectoryExists, state);\n    if (rest !== \"\" && packageInfo && (!(state.features & 8) || !hasProperty((_b = (_a2 = rootPackageInfo = getPackageJsonInfo(packageDirectory, !nodeModulesDirectoryExists, state)) == null ? void 0 : _a2.contents.packageJsonContent) != null ? _b : emptyArray, \"exports\"))) {\n      const fromFile = loadModuleFromFile(extensions, candidate, !nodeModulesDirectoryExists, state);\n      if (fromFile) {\n        return noPackageId(fromFile);\n      }\n      const fromDirectory = loadNodeModuleFromDirectoryWorker(extensions, candidate, !nodeModulesDirectoryExists, state, packageInfo.contents.packageJsonContent, getVersionPathsOfPackageJsonInfo(packageInfo, state));\n      return withPackageId(packageInfo, fromDirectory);\n    }\n    const loader = (extensions2, candidate2, onlyRecordFailures, state2) => {\n      let pathAndExtension = loadModuleFromFile(extensions2, candidate2, onlyRecordFailures, state2) || loadNodeModuleFromDirectoryWorker(extensions2, candidate2, onlyRecordFailures, state2, packageInfo && packageInfo.contents.packageJsonContent, packageInfo && getVersionPathsOfPackageJsonInfo(packageInfo, state2));\n      if (!pathAndExtension && packageInfo && (packageInfo.contents.packageJsonContent.exports === void 0 || packageInfo.contents.packageJsonContent.exports === null) && state2.features & 32) {\n        pathAndExtension = loadModuleFromFile(extensions2, combinePaths(candidate2, \"index.js\"), onlyRecordFailures, state2);\n      }\n      return withPackageId(packageInfo, pathAndExtension);\n    };\n    if (rest !== \"\") {\n      packageInfo = rootPackageInfo != null ? rootPackageInfo : getPackageJsonInfo(packageDirectory, !nodeModulesDirectoryExists, state);\n    }\n    if (packageInfo && packageInfo.contents.packageJsonContent.exports && state.features & 8) {\n      return (_c = loadModuleFromExports(packageInfo, extensions, combinePaths(\".\", rest), state, cache, redirectedReference)) == null ? void 0 : _c.value;\n    }\n    const versionPaths = rest !== \"\" && packageInfo ? getVersionPathsOfPackageJsonInfo(packageInfo, state) : void 0;\n    if (versionPaths) {\n      if (state.traceEnabled) {\n        trace(state.host, Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, versionPaths.version, version, rest);\n      }\n      const packageDirectoryExists = nodeModulesDirectoryExists && directoryProbablyExists(packageDirectory, state.host);\n      const fromPaths = tryLoadModuleUsingPaths(extensions, rest, packageDirectory, versionPaths.paths, void 0, loader, !packageDirectoryExists, state);\n      if (fromPaths) {\n        return fromPaths.value;\n      }\n    }\n    return loader(extensions, candidate, !nodeModulesDirectoryExists, state);\n  }\n  function tryLoadModuleUsingPaths(extensions, moduleName, baseDirectory, paths, pathPatterns, loader, onlyRecordFailures, state) {\n    pathPatterns || (pathPatterns = tryParsePatterns(paths));\n    const matchedPattern = matchPatternOrExact(pathPatterns, moduleName);\n    if (matchedPattern) {\n      const matchedStar = isString(matchedPattern) ? void 0 : matchedText(matchedPattern, moduleName);\n      const matchedPatternText = isString(matchedPattern) ? matchedPattern : patternText(matchedPattern);\n      if (state.traceEnabled) {\n        trace(state.host, Diagnostics.Module_name_0_matched_pattern_1, moduleName, matchedPatternText);\n      }\n      const resolved = forEach(paths[matchedPatternText], (subst) => {\n        const path = matchedStar ? subst.replace(\"*\", matchedStar) : subst;\n        const candidate = normalizePath(combinePaths(baseDirectory, path));\n        if (state.traceEnabled) {\n          trace(state.host, Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1, subst, path);\n        }\n        const extension = tryGetExtensionFromPath2(subst);\n        if (extension !== void 0) {\n          const path2 = tryFile(candidate, onlyRecordFailures, state);\n          if (path2 !== void 0) {\n            return noPackageId({ path: path2, ext: extension, resolvedUsingTsExtension: void 0 });\n          }\n        }\n        return loader(extensions, candidate, onlyRecordFailures || !directoryProbablyExists(getDirectoryPath(candidate), state.host), state);\n      });\n      return { value: resolved };\n    }\n  }\n  function mangleScopedPackageNameWithTrace(packageName, state) {\n    const mangled = mangleScopedPackageName(packageName);\n    if (state.traceEnabled && mangled !== packageName) {\n      trace(state.host, Diagnostics.Scoped_package_detected_looking_in_0, mangled);\n    }\n    return mangled;\n  }\n  function getTypesPackageName(packageName) {\n    return `@types/${mangleScopedPackageName(packageName)}`;\n  }\n  function mangleScopedPackageName(packageName) {\n    if (startsWith(packageName, \"@\")) {\n      const replaceSlash = packageName.replace(directorySeparator, mangledScopedPackageSeparator);\n      if (replaceSlash !== packageName) {\n        return replaceSlash.slice(1);\n      }\n    }\n    return packageName;\n  }\n  function getPackageNameFromTypesPackageName(mangledName) {\n    const withoutAtTypePrefix = removePrefix(mangledName, \"@types/\");\n    if (withoutAtTypePrefix !== mangledName) {\n      return unmangleScopedPackageName(withoutAtTypePrefix);\n    }\n    return mangledName;\n  }\n  function unmangleScopedPackageName(typesPackageName) {\n    return stringContains(typesPackageName, mangledScopedPackageSeparator) ? \"@\" + typesPackageName.replace(mangledScopedPackageSeparator, directorySeparator) : typesPackageName;\n  }\n  function tryFindNonRelativeModuleNameInCache(cache, moduleName, mode, containingDirectory, redirectedReference, state) {\n    const result = cache && cache.getFromNonRelativeNameCache(moduleName, mode, containingDirectory, redirectedReference);\n    if (result) {\n      if (state.traceEnabled) {\n        trace(state.host, Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1, moduleName, containingDirectory);\n      }\n      state.resultFromCache = result;\n      return {\n        value: result.resolvedModule && {\n          path: result.resolvedModule.resolvedFileName,\n          originalPath: result.resolvedModule.originalPath || true,\n          extension: result.resolvedModule.extension,\n          packageId: result.resolvedModule.packageId,\n          resolvedUsingTsExtension: result.resolvedModule.resolvedUsingTsExtension\n        }\n      };\n    }\n  }\n  function classicNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference) {\n    const traceEnabled = isTraceEnabled(compilerOptions, host);\n    const failedLookupLocations = [];\n    const affectingLocations = [];\n    const containingDirectory = getDirectoryPath(containingFile);\n    const diagnostics = [];\n    const state = {\n      compilerOptions,\n      host,\n      traceEnabled,\n      failedLookupLocations,\n      affectingLocations,\n      packageJsonInfoCache: cache,\n      features: 0,\n      conditions: [],\n      requestContainingDirectory: containingDirectory,\n      reportDiagnostic: (diag2) => void diagnostics.push(diag2),\n      isConfigLookup: false,\n      candidateIsFromPackageJsonField: false\n    };\n    const resolved = tryResolve(1 | 4) || tryResolve(2 | (compilerOptions.resolveJsonModule ? 8 : 0));\n    return createResolvedModuleWithFailedLookupLocationsHandlingSymlink(moduleName, resolved && resolved.value, (resolved == null ? void 0 : resolved.value) && pathContainsNodeModules(resolved.value.path), failedLookupLocations, affectingLocations, diagnostics, state);\n    function tryResolve(extensions) {\n      const resolvedUsingSettings = tryLoadModuleUsingOptionalResolutionSettings(extensions, moduleName, containingDirectory, loadModuleFromFileNoPackageId, state);\n      if (resolvedUsingSettings) {\n        return { value: resolvedUsingSettings };\n      }\n      if (!isExternalModuleNameRelative(moduleName)) {\n        const resolved2 = forEachAncestorDirectory(containingDirectory, (directory) => {\n          const resolutionFromCache = tryFindNonRelativeModuleNameInCache(cache, moduleName, void 0, directory, redirectedReference, state);\n          if (resolutionFromCache) {\n            return resolutionFromCache;\n          }\n          const searchName = normalizePath(combinePaths(directory, moduleName));\n          return toSearchResult(loadModuleFromFileNoPackageId(extensions, searchName, false, state));\n        });\n        if (resolved2) {\n          return resolved2;\n        }\n        if (extensions & (1 | 4)) {\n          return loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, containingDirectory, state);\n        }\n      } else {\n        const candidate = normalizePath(combinePaths(containingDirectory, moduleName));\n        return toSearchResult(loadModuleFromFileNoPackageId(extensions, candidate, false, state));\n      }\n    }\n  }\n  function shouldAllowImportingTsExtension(compilerOptions, fromFileName) {\n    return !!compilerOptions.allowImportingTsExtensions || fromFileName && isDeclarationFileName(fromFileName);\n  }\n  function loadModuleFromGlobalCache(moduleName, projectName, compilerOptions, host, globalCache, packageJsonInfoCache) {\n    const traceEnabled = isTraceEnabled(compilerOptions, host);\n    if (traceEnabled) {\n      trace(host, Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2, projectName, moduleName, globalCache);\n    }\n    const failedLookupLocations = [];\n    const affectingLocations = [];\n    const diagnostics = [];\n    const state = {\n      compilerOptions,\n      host,\n      traceEnabled,\n      failedLookupLocations,\n      affectingLocations,\n      packageJsonInfoCache,\n      features: 0,\n      conditions: [],\n      requestContainingDirectory: void 0,\n      reportDiagnostic: (diag2) => void diagnostics.push(diag2),\n      isConfigLookup: false,\n      candidateIsFromPackageJsonField: false\n    };\n    const resolved = loadModuleFromImmediateNodeModulesDirectory(4, moduleName, globalCache, state, false, void 0, void 0);\n    return createResolvedModuleWithFailedLookupLocations(resolved, true, failedLookupLocations, affectingLocations, diagnostics, state.resultFromCache);\n  }\n  function toSearchResult(value) {\n    return value !== void 0 ? { value } : void 0;\n  }\n  function traceIfEnabled(state, diagnostic, ...args) {\n    if (state.traceEnabled) {\n      trace(state.host, diagnostic, ...args);\n    }\n  }\n  var typeScriptVersion, nodeModulesAtTypes, NodeResolutionFeatures, nodeModulesPathPart, mangledScopedPackageSeparator;\n  var init_moduleNameResolver = __esm({\n    \"src/compiler/moduleNameResolver.ts\"() {\n      \"use strict\";\n      init_ts2();\n      nodeModulesAtTypes = combinePaths(\"node_modules\", \"@types\");\n      NodeResolutionFeatures = /* @__PURE__ */ ((NodeResolutionFeatures2) => {\n        NodeResolutionFeatures2[NodeResolutionFeatures2[\"None\"] = 0] = \"None\";\n        NodeResolutionFeatures2[NodeResolutionFeatures2[\"Imports\"] = 2] = \"Imports\";\n        NodeResolutionFeatures2[NodeResolutionFeatures2[\"SelfName\"] = 4] = \"SelfName\";\n        NodeResolutionFeatures2[NodeResolutionFeatures2[\"Exports\"] = 8] = \"Exports\";\n        NodeResolutionFeatures2[NodeResolutionFeatures2[\"ExportsPatternTrailers\"] = 16] = \"ExportsPatternTrailers\";\n        NodeResolutionFeatures2[NodeResolutionFeatures2[\"AllFeatures\"] = 30] = \"AllFeatures\";\n        NodeResolutionFeatures2[NodeResolutionFeatures2[\"Node16Default\"] = 30] = \"Node16Default\";\n        NodeResolutionFeatures2[NodeResolutionFeatures2[\"NodeNextDefault\"] = 30] = \"NodeNextDefault\";\n        NodeResolutionFeatures2[NodeResolutionFeatures2[\"BundlerDefault\"] = 30] = \"BundlerDefault\";\n        NodeResolutionFeatures2[NodeResolutionFeatures2[\"EsmMode\"] = 32] = \"EsmMode\";\n        return NodeResolutionFeatures2;\n      })(NodeResolutionFeatures || {});\n      nodeModulesPathPart = \"/node_modules/\";\n      mangledScopedPackageSeparator = \"__\";\n    }\n  });\n  function getModuleInstanceState(node, visited) {\n    if (node.body && !node.body.parent) {\n      setParent(node.body, node);\n      setParentRecursive(node.body, false);\n    }\n    return node.body ? getModuleInstanceStateCached(node.body, visited) : 1;\n  }\n  function getModuleInstanceStateCached(node, visited = /* @__PURE__ */ new Map()) {\n    const nodeId = getNodeId(node);\n    if (visited.has(nodeId)) {\n      return visited.get(nodeId) || 0;\n    }\n    visited.set(nodeId, void 0);\n    const result = getModuleInstanceStateWorker(node, visited);\n    visited.set(nodeId, result);\n    return result;\n  }\n  function getModuleInstanceStateWorker(node, visited) {\n    switch (node.kind) {\n      case 261:\n      case 262:\n        return 0;\n      case 263:\n        if (isEnumConst(node)) {\n          return 2;\n        }\n        break;\n      case 269:\n      case 268:\n        if (!hasSyntacticModifier(node, 1)) {\n          return 0;\n        }\n        break;\n      case 275:\n        const exportDeclaration = node;\n        if (!exportDeclaration.moduleSpecifier && exportDeclaration.exportClause && exportDeclaration.exportClause.kind === 276) {\n          let state = 0;\n          for (const specifier of exportDeclaration.exportClause.elements) {\n            const specifierState = getModuleInstanceStateForAliasTarget(specifier, visited);\n            if (specifierState > state) {\n              state = specifierState;\n            }\n            if (state === 1) {\n              return state;\n            }\n          }\n          return state;\n        }\n        break;\n      case 265: {\n        let state = 0;\n        forEachChild(node, (n) => {\n          const childState = getModuleInstanceStateCached(n, visited);\n          switch (childState) {\n            case 0:\n              return;\n            case 2:\n              state = 2;\n              return;\n            case 1:\n              state = 1;\n              return true;\n            default:\n              Debug.assertNever(childState);\n          }\n        });\n        return state;\n      }\n      case 264:\n        return getModuleInstanceState(node, visited);\n      case 79:\n        if (node.flags & 2048) {\n          return 0;\n        }\n    }\n    return 1;\n  }\n  function getModuleInstanceStateForAliasTarget(specifier, visited) {\n    const name = specifier.propertyName || specifier.name;\n    let p = specifier.parent;\n    while (p) {\n      if (isBlock(p) || isModuleBlock(p) || isSourceFile(p)) {\n        const statements = p.statements;\n        let found;\n        for (const statement of statements) {\n          if (nodeHasName(statement, name)) {\n            if (!statement.parent) {\n              setParent(statement, p);\n              setParentRecursive(statement, false);\n            }\n            const state = getModuleInstanceStateCached(statement, visited);\n            if (found === void 0 || state > found) {\n              found = state;\n            }\n            if (found === 1) {\n              return found;\n            }\n          }\n        }\n        if (found !== void 0) {\n          return found;\n        }\n      }\n      p = p.parent;\n    }\n    return 1;\n  }\n  function initFlowNode(node) {\n    Debug.attachFlowNodeDebugInfo(node);\n    return node;\n  }\n  function bindSourceFile(file, options) {\n    mark(\"beforeBind\");\n    perfLogger.logStartBindFile(\"\" + file.fileName);\n    binder(file, options);\n    perfLogger.logStopBindFile();\n    mark(\"afterBind\");\n    measure(\"Bind\", \"beforeBind\", \"afterBind\");\n  }\n  function createBinder() {\n    var file;\n    var options;\n    var languageVersion;\n    var parent2;\n    var container;\n    var thisParentContainer;\n    var blockScopeContainer;\n    var lastContainer;\n    var delayedTypeAliases;\n    var seenThisKeyword;\n    var currentFlow;\n    var currentBreakTarget;\n    var currentContinueTarget;\n    var currentReturnTarget;\n    var currentTrueTarget;\n    var currentFalseTarget;\n    var currentExceptionTarget;\n    var preSwitchCaseFlow;\n    var activeLabelList;\n    var hasExplicitReturn;\n    var emitFlags;\n    var inStrictMode;\n    var inAssignmentPattern = false;\n    var symbolCount = 0;\n    var Symbol46;\n    var classifiableNames;\n    var unreachableFlow = { flags: 1 };\n    var reportedUnreachableFlow = { flags: 1 };\n    var bindBinaryExpressionFlow = createBindBinaryExpressionFlow();\n    return bindSourceFile2;\n    function createDiagnosticForNode2(node, message, arg0, arg1, arg2) {\n      return createDiagnosticForNodeInSourceFile(getSourceFileOfNode(node) || file, node, message, arg0, arg1, arg2);\n    }\n    function bindSourceFile2(f, opts) {\n      var _a2, _b;\n      file = f;\n      options = opts;\n      languageVersion = getEmitScriptTarget(options);\n      inStrictMode = bindInStrictMode(file, opts);\n      classifiableNames = /* @__PURE__ */ new Set();\n      symbolCount = 0;\n      Symbol46 = objectAllocator.getSymbolConstructor();\n      Debug.attachFlowNodeDebugInfo(unreachableFlow);\n      Debug.attachFlowNodeDebugInfo(reportedUnreachableFlow);\n      if (!file.locals) {\n        (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Bind, \"bindSourceFile\", { path: file.path }, true);\n        bind(file);\n        (_b = tracing) == null ? void 0 : _b.pop();\n        file.symbolCount = symbolCount;\n        file.classifiableNames = classifiableNames;\n        delayedBindJSDocTypedefTag();\n      }\n      file = void 0;\n      options = void 0;\n      languageVersion = void 0;\n      parent2 = void 0;\n      container = void 0;\n      thisParentContainer = void 0;\n      blockScopeContainer = void 0;\n      lastContainer = void 0;\n      delayedTypeAliases = void 0;\n      seenThisKeyword = false;\n      currentFlow = void 0;\n      currentBreakTarget = void 0;\n      currentContinueTarget = void 0;\n      currentReturnTarget = void 0;\n      currentTrueTarget = void 0;\n      currentFalseTarget = void 0;\n      currentExceptionTarget = void 0;\n      activeLabelList = void 0;\n      hasExplicitReturn = false;\n      inAssignmentPattern = false;\n      emitFlags = 0;\n    }\n    function bindInStrictMode(file2, opts) {\n      if (getStrictOptionValue(opts, \"alwaysStrict\") && !file2.isDeclarationFile) {\n        return true;\n      } else {\n        return !!file2.externalModuleIndicator;\n      }\n    }\n    function createSymbol(flags, name) {\n      symbolCount++;\n      return new Symbol46(flags, name);\n    }\n    function addDeclarationToSymbol(symbol, node, symbolFlags) {\n      symbol.flags |= symbolFlags;\n      node.symbol = symbol;\n      symbol.declarations = appendIfUnique(symbol.declarations, node);\n      if (symbolFlags & (32 | 384 | 1536 | 3) && !symbol.exports) {\n        symbol.exports = createSymbolTable();\n      }\n      if (symbolFlags & (32 | 64 | 2048 | 4096) && !symbol.members) {\n        symbol.members = createSymbolTable();\n      }\n      if (symbol.constEnumOnlyModule && symbol.flags & (16 | 32 | 256)) {\n        symbol.constEnumOnlyModule = false;\n      }\n      if (symbolFlags & 111551) {\n        setValueDeclaration(symbol, node);\n      }\n    }\n    function getDeclarationName(node) {\n      if (node.kind === 274) {\n        return node.isExportEquals ? \"export=\" : \"default\";\n      }\n      const name = getNameOfDeclaration(node);\n      if (name) {\n        if (isAmbientModule(node)) {\n          const moduleName = getTextOfIdentifierOrLiteral(name);\n          return isGlobalScopeAugmentation(node) ? \"__global\" : `\"${moduleName}\"`;\n        }\n        if (name.kind === 164) {\n          const nameExpression = name.expression;\n          if (isStringOrNumericLiteralLike(nameExpression)) {\n            return escapeLeadingUnderscores(nameExpression.text);\n          }\n          if (isSignedNumericLiteral(nameExpression)) {\n            return tokenToString(nameExpression.operator) + nameExpression.operand.text;\n          } else {\n            Debug.fail(\"Only computed properties with literal names have declaration names\");\n          }\n        }\n        if (isPrivateIdentifier(name)) {\n          const containingClass = getContainingClass(node);\n          if (!containingClass) {\n            return void 0;\n          }\n          const containingClassSymbol = containingClass.symbol;\n          return getSymbolNameForPrivateIdentifier(containingClassSymbol, name.escapedText);\n        }\n        return isPropertyNameLiteral(name) ? getEscapedTextOfIdentifierOrLiteral(name) : void 0;\n      }\n      switch (node.kind) {\n        case 173:\n          return \"__constructor\";\n        case 181:\n        case 176:\n        case 326:\n          return \"__call\";\n        case 182:\n        case 177:\n          return \"__new\";\n        case 178:\n          return \"__index\";\n        case 275:\n          return \"__export\";\n        case 308:\n          return \"export=\";\n        case 223:\n          if (getAssignmentDeclarationKind(node) === 2) {\n            return \"export=\";\n          }\n          Debug.fail(\"Unknown binary declaration kind\");\n          break;\n        case 320:\n          return isJSDocConstructSignature(node) ? \"__new\" : \"__call\";\n        case 166:\n          Debug.assert(node.parent.kind === 320, \"Impossible parameter parent kind\", () => `parent is: ${Debug.formatSyntaxKind(node.parent.kind)}, expected JSDocFunctionType`);\n          const functionType = node.parent;\n          const index = functionType.parameters.indexOf(node);\n          return \"arg\" + index;\n      }\n    }\n    function getDisplayName(node) {\n      return isNamedDeclaration(node) ? declarationNameToString(node.name) : unescapeLeadingUnderscores(Debug.checkDefined(getDeclarationName(node)));\n    }\n    function declareSymbol(symbolTable, parent3, node, includes, excludes, isReplaceableByMethod, isComputedName) {\n      Debug.assert(isComputedName || !hasDynamicName(node));\n      const isDefaultExport = hasSyntacticModifier(node, 1024) || isExportSpecifier(node) && node.name.escapedText === \"default\";\n      const name = isComputedName ? \"__computed\" : isDefaultExport && parent3 ? \"default\" : getDeclarationName(node);\n      let symbol;\n      if (name === void 0) {\n        symbol = createSymbol(0, \"__missing\");\n      } else {\n        symbol = symbolTable.get(name);\n        if (includes & 2885600) {\n          classifiableNames.add(name);\n        }\n        if (!symbol) {\n          symbolTable.set(name, symbol = createSymbol(0, name));\n          if (isReplaceableByMethod)\n            symbol.isReplaceableByMethod = true;\n        } else if (isReplaceableByMethod && !symbol.isReplaceableByMethod) {\n          return symbol;\n        } else if (symbol.flags & excludes) {\n          if (symbol.isReplaceableByMethod) {\n            symbolTable.set(name, symbol = createSymbol(0, name));\n          } else if (!(includes & 3 && symbol.flags & 67108864)) {\n            if (isNamedDeclaration(node)) {\n              setParent(node.name, node);\n            }\n            let message = symbol.flags & 2 ? Diagnostics.Cannot_redeclare_block_scoped_variable_0 : Diagnostics.Duplicate_identifier_0;\n            let messageNeedsName = true;\n            if (symbol.flags & 384 || includes & 384) {\n              message = Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations;\n              messageNeedsName = false;\n            }\n            let multipleDefaultExports = false;\n            if (length(symbol.declarations)) {\n              if (isDefaultExport) {\n                message = Diagnostics.A_module_cannot_have_multiple_default_exports;\n                messageNeedsName = false;\n                multipleDefaultExports = true;\n              } else {\n                if (symbol.declarations && symbol.declarations.length && (node.kind === 274 && !node.isExportEquals)) {\n                  message = Diagnostics.A_module_cannot_have_multiple_default_exports;\n                  messageNeedsName = false;\n                  multipleDefaultExports = true;\n                }\n              }\n            }\n            const relatedInformation = [];\n            if (isTypeAliasDeclaration(node) && nodeIsMissing(node.type) && hasSyntacticModifier(node, 1) && symbol.flags & (2097152 | 788968 | 1920)) {\n              relatedInformation.push(createDiagnosticForNode2(node, Diagnostics.Did_you_mean_0, `export type { ${unescapeLeadingUnderscores(node.name.escapedText)} }`));\n            }\n            const declarationName = getNameOfDeclaration(node) || node;\n            forEach(symbol.declarations, (declaration, index) => {\n              const decl = getNameOfDeclaration(declaration) || declaration;\n              const diag3 = createDiagnosticForNode2(decl, message, messageNeedsName ? getDisplayName(declaration) : void 0);\n              file.bindDiagnostics.push(multipleDefaultExports ? addRelatedInfo(diag3, createDiagnosticForNode2(declarationName, index === 0 ? Diagnostics.Another_export_default_is_here : Diagnostics.and_here)) : diag3);\n              if (multipleDefaultExports) {\n                relatedInformation.push(createDiagnosticForNode2(decl, Diagnostics.The_first_export_default_is_here));\n              }\n            });\n            const diag2 = createDiagnosticForNode2(declarationName, message, messageNeedsName ? getDisplayName(node) : void 0);\n            file.bindDiagnostics.push(addRelatedInfo(diag2, ...relatedInformation));\n            symbol = createSymbol(0, name);\n          }\n        }\n      }\n      addDeclarationToSymbol(symbol, node, includes);\n      if (symbol.parent) {\n        Debug.assert(symbol.parent === parent3, \"Existing symbol parent should match new one\");\n      } else {\n        symbol.parent = parent3;\n      }\n      return symbol;\n    }\n    function declareModuleMember(node, symbolFlags, symbolExcludes) {\n      const hasExportModifier = !!(getCombinedModifierFlags(node) & 1) || jsdocTreatAsExported(node);\n      if (symbolFlags & 2097152) {\n        if (node.kind === 278 || node.kind === 268 && hasExportModifier) {\n          return declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes);\n        } else {\n          Debug.assertNode(container, canHaveLocals);\n          return declareSymbol(container.locals, void 0, node, symbolFlags, symbolExcludes);\n        }\n      } else {\n        if (isJSDocTypeAlias(node))\n          Debug.assert(isInJSFile(node));\n        if (!isAmbientModule(node) && (hasExportModifier || container.flags & 64)) {\n          if (!canHaveLocals(container) || !container.locals || hasSyntacticModifier(node, 1024) && !getDeclarationName(node)) {\n            return declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes);\n          }\n          const exportKind = symbolFlags & 111551 ? 1048576 : 0;\n          const local = declareSymbol(container.locals, void 0, node, exportKind, symbolExcludes);\n          local.exportSymbol = declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes);\n          node.localSymbol = local;\n          return local;\n        } else {\n          Debug.assertNode(container, canHaveLocals);\n          return declareSymbol(container.locals, void 0, node, symbolFlags, symbolExcludes);\n        }\n      }\n    }\n    function jsdocTreatAsExported(node) {\n      if (node.parent && isModuleDeclaration(node)) {\n        node = node.parent;\n      }\n      if (!isJSDocTypeAlias(node))\n        return false;\n      if (!isJSDocEnumTag(node) && !!node.fullName)\n        return true;\n      const declName = getNameOfDeclaration(node);\n      if (!declName)\n        return false;\n      if (isPropertyAccessEntityNameExpression(declName.parent) && isTopLevelNamespaceAssignment(declName.parent))\n        return true;\n      if (isDeclaration(declName.parent) && getCombinedModifierFlags(declName.parent) & 1)\n        return true;\n      return false;\n    }\n    function bindContainer(node, containerFlags) {\n      const saveContainer = container;\n      const saveThisParentContainer = thisParentContainer;\n      const savedBlockScopeContainer = blockScopeContainer;\n      if (containerFlags & 1) {\n        if (node.kind !== 216) {\n          thisParentContainer = container;\n        }\n        container = blockScopeContainer = node;\n        if (containerFlags & 32) {\n          container.locals = createSymbolTable();\n          addToContainerChain(container);\n        }\n      } else if (containerFlags & 2) {\n        blockScopeContainer = node;\n        if (containerFlags & 32) {\n          blockScopeContainer.locals = void 0;\n        }\n      }\n      if (containerFlags & 4) {\n        const saveCurrentFlow = currentFlow;\n        const saveBreakTarget = currentBreakTarget;\n        const saveContinueTarget = currentContinueTarget;\n        const saveReturnTarget = currentReturnTarget;\n        const saveExceptionTarget = currentExceptionTarget;\n        const saveActiveLabelList = activeLabelList;\n        const saveHasExplicitReturn = hasExplicitReturn;\n        const isImmediatelyInvoked = containerFlags & 16 && !hasSyntacticModifier(node, 512) && !node.asteriskToken && !!getImmediatelyInvokedFunctionExpression(node) || node.kind === 172;\n        if (!isImmediatelyInvoked) {\n          currentFlow = initFlowNode({ flags: 2 });\n          if (containerFlags & (16 | 128)) {\n            currentFlow.node = node;\n          }\n        }\n        currentReturnTarget = isImmediatelyInvoked || node.kind === 173 || isInJSFile(node) && (node.kind === 259 || node.kind === 215) ? createBranchLabel() : void 0;\n        currentExceptionTarget = void 0;\n        currentBreakTarget = void 0;\n        currentContinueTarget = void 0;\n        activeLabelList = void 0;\n        hasExplicitReturn = false;\n        bindChildren(node);\n        node.flags &= ~2816;\n        if (!(currentFlow.flags & 1) && containerFlags & 8 && nodeIsPresent(node.body)) {\n          node.flags |= 256;\n          if (hasExplicitReturn)\n            node.flags |= 512;\n          node.endFlowNode = currentFlow;\n        }\n        if (node.kind === 308) {\n          node.flags |= emitFlags;\n          node.endFlowNode = currentFlow;\n        }\n        if (currentReturnTarget) {\n          addAntecedent(currentReturnTarget, currentFlow);\n          currentFlow = finishFlowLabel(currentReturnTarget);\n          if (node.kind === 173 || node.kind === 172 || isInJSFile(node) && (node.kind === 259 || node.kind === 215)) {\n            node.returnFlowNode = currentFlow;\n          }\n        }\n        if (!isImmediatelyInvoked) {\n          currentFlow = saveCurrentFlow;\n        }\n        currentBreakTarget = saveBreakTarget;\n        currentContinueTarget = saveContinueTarget;\n        currentReturnTarget = saveReturnTarget;\n        currentExceptionTarget = saveExceptionTarget;\n        activeLabelList = saveActiveLabelList;\n        hasExplicitReturn = saveHasExplicitReturn;\n      } else if (containerFlags & 64) {\n        seenThisKeyword = false;\n        bindChildren(node);\n        Debug.assertNotNode(node, isIdentifier);\n        node.flags = seenThisKeyword ? node.flags | 128 : node.flags & ~128;\n      } else {\n        bindChildren(node);\n      }\n      container = saveContainer;\n      thisParentContainer = saveThisParentContainer;\n      blockScopeContainer = savedBlockScopeContainer;\n    }\n    function bindEachFunctionsFirst(nodes) {\n      bindEach(nodes, (n) => n.kind === 259 ? bind(n) : void 0);\n      bindEach(nodes, (n) => n.kind !== 259 ? bind(n) : void 0);\n    }\n    function bindEach(nodes, bindFunction = bind) {\n      if (nodes === void 0) {\n        return;\n      }\n      forEach(nodes, bindFunction);\n    }\n    function bindEachChild(node) {\n      forEachChild(node, bind, bindEach);\n    }\n    function bindChildren(node) {\n      const saveInAssignmentPattern = inAssignmentPattern;\n      inAssignmentPattern = false;\n      if (checkUnreachable(node)) {\n        bindEachChild(node);\n        bindJSDoc(node);\n        inAssignmentPattern = saveInAssignmentPattern;\n        return;\n      }\n      if (node.kind >= 240 && node.kind <= 256 && !options.allowUnreachableCode) {\n        node.flowNode = currentFlow;\n      }\n      switch (node.kind) {\n        case 244:\n          bindWhileStatement(node);\n          break;\n        case 243:\n          bindDoStatement(node);\n          break;\n        case 245:\n          bindForStatement(node);\n          break;\n        case 246:\n        case 247:\n          bindForInOrForOfStatement(node);\n          break;\n        case 242:\n          bindIfStatement(node);\n          break;\n        case 250:\n        case 254:\n          bindReturnOrThrow(node);\n          break;\n        case 249:\n        case 248:\n          bindBreakOrContinueStatement(node);\n          break;\n        case 255:\n          bindTryStatement(node);\n          break;\n        case 252:\n          bindSwitchStatement(node);\n          break;\n        case 266:\n          bindCaseBlock(node);\n          break;\n        case 292:\n          bindCaseClause(node);\n          break;\n        case 241:\n          bindExpressionStatement(node);\n          break;\n        case 253:\n          bindLabeledStatement(node);\n          break;\n        case 221:\n          bindPrefixUnaryExpressionFlow(node);\n          break;\n        case 222:\n          bindPostfixUnaryExpressionFlow(node);\n          break;\n        case 223:\n          if (isDestructuringAssignment(node)) {\n            inAssignmentPattern = saveInAssignmentPattern;\n            bindDestructuringAssignmentFlow(node);\n            return;\n          }\n          bindBinaryExpressionFlow(node);\n          break;\n        case 217:\n          bindDeleteExpressionFlow(node);\n          break;\n        case 224:\n          bindConditionalExpressionFlow(node);\n          break;\n        case 257:\n          bindVariableDeclarationFlow(node);\n          break;\n        case 208:\n        case 209:\n          bindAccessExpressionFlow(node);\n          break;\n        case 210:\n          bindCallExpressionFlow(node);\n          break;\n        case 232:\n          bindNonNullExpressionFlow(node);\n          break;\n        case 349:\n        case 341:\n        case 343:\n          bindJSDocTypeAlias(node);\n          break;\n        case 308: {\n          bindEachFunctionsFirst(node.statements);\n          bind(node.endOfFileToken);\n          break;\n        }\n        case 238:\n        case 265:\n          bindEachFunctionsFirst(node.statements);\n          break;\n        case 205:\n          bindBindingElementFlow(node);\n          break;\n        case 166:\n          bindParameterFlow(node);\n          break;\n        case 207:\n        case 206:\n        case 299:\n        case 227:\n          inAssignmentPattern = saveInAssignmentPattern;\n        default:\n          bindEachChild(node);\n          break;\n      }\n      bindJSDoc(node);\n      inAssignmentPattern = saveInAssignmentPattern;\n    }\n    function isNarrowingExpression(expr) {\n      switch (expr.kind) {\n        case 79:\n        case 80:\n        case 108:\n        case 208:\n        case 209:\n          return containsNarrowableReference(expr);\n        case 210:\n          return hasNarrowableArgument(expr);\n        case 214:\n        case 232:\n          return isNarrowingExpression(expr.expression);\n        case 223:\n          return isNarrowingBinaryExpression(expr);\n        case 221:\n          return expr.operator === 53 && isNarrowingExpression(expr.operand);\n        case 218:\n          return isNarrowingExpression(expr.expression);\n      }\n      return false;\n    }\n    function isNarrowableReference(expr) {\n      return isDottedName(expr) || (isPropertyAccessExpression(expr) || isNonNullExpression(expr) || isParenthesizedExpression(expr)) && isNarrowableReference(expr.expression) || isBinaryExpression(expr) && expr.operatorToken.kind === 27 && isNarrowableReference(expr.right) || isElementAccessExpression(expr) && (isStringOrNumericLiteralLike(expr.argumentExpression) || isEntityNameExpression(expr.argumentExpression)) && isNarrowableReference(expr.expression) || isAssignmentExpression(expr) && isNarrowableReference(expr.left);\n    }\n    function containsNarrowableReference(expr) {\n      return isNarrowableReference(expr) || isOptionalChain(expr) && containsNarrowableReference(expr.expression);\n    }\n    function hasNarrowableArgument(expr) {\n      if (expr.arguments) {\n        for (const argument of expr.arguments) {\n          if (containsNarrowableReference(argument)) {\n            return true;\n          }\n        }\n      }\n      if (expr.expression.kind === 208 && containsNarrowableReference(expr.expression.expression)) {\n        return true;\n      }\n      return false;\n    }\n    function isNarrowingTypeofOperands(expr1, expr2) {\n      return isTypeOfExpression(expr1) && isNarrowableOperand(expr1.expression) && isStringLiteralLike(expr2);\n    }\n    function isNarrowingBinaryExpression(expr) {\n      switch (expr.operatorToken.kind) {\n        case 63:\n        case 75:\n        case 76:\n        case 77:\n          return containsNarrowableReference(expr.left);\n        case 34:\n        case 35:\n        case 36:\n        case 37:\n          return isNarrowableOperand(expr.left) || isNarrowableOperand(expr.right) || isNarrowingTypeofOperands(expr.right, expr.left) || isNarrowingTypeofOperands(expr.left, expr.right);\n        case 102:\n          return isNarrowableOperand(expr.left);\n        case 101:\n          return isNarrowingExpression(expr.right);\n        case 27:\n          return isNarrowingExpression(expr.right);\n      }\n      return false;\n    }\n    function isNarrowableOperand(expr) {\n      switch (expr.kind) {\n        case 214:\n          return isNarrowableOperand(expr.expression);\n        case 223:\n          switch (expr.operatorToken.kind) {\n            case 63:\n              return isNarrowableOperand(expr.left);\n            case 27:\n              return isNarrowableOperand(expr.right);\n          }\n      }\n      return containsNarrowableReference(expr);\n    }\n    function createBranchLabel() {\n      return initFlowNode({ flags: 4, antecedents: void 0 });\n    }\n    function createLoopLabel() {\n      return initFlowNode({ flags: 8, antecedents: void 0 });\n    }\n    function createReduceLabel(target, antecedents, antecedent) {\n      return initFlowNode({ flags: 1024, target, antecedents, antecedent });\n    }\n    function setFlowNodeReferenced(flow) {\n      flow.flags |= flow.flags & 2048 ? 4096 : 2048;\n    }\n    function addAntecedent(label, antecedent) {\n      if (!(antecedent.flags & 1) && !contains(label.antecedents, antecedent)) {\n        (label.antecedents || (label.antecedents = [])).push(antecedent);\n        setFlowNodeReferenced(antecedent);\n      }\n    }\n    function createFlowCondition(flags, antecedent, expression) {\n      if (antecedent.flags & 1) {\n        return antecedent;\n      }\n      if (!expression) {\n        return flags & 32 ? antecedent : unreachableFlow;\n      }\n      if ((expression.kind === 110 && flags & 64 || expression.kind === 95 && flags & 32) && !isExpressionOfOptionalChainRoot(expression) && !isNullishCoalesce(expression.parent)) {\n        return unreachableFlow;\n      }\n      if (!isNarrowingExpression(expression)) {\n        return antecedent;\n      }\n      setFlowNodeReferenced(antecedent);\n      return initFlowNode({ flags, antecedent, node: expression });\n    }\n    function createFlowSwitchClause(antecedent, switchStatement, clauseStart, clauseEnd) {\n      setFlowNodeReferenced(antecedent);\n      return initFlowNode({ flags: 128, antecedent, switchStatement, clauseStart, clauseEnd });\n    }\n    function createFlowMutation(flags, antecedent, node) {\n      setFlowNodeReferenced(antecedent);\n      const result = initFlowNode({ flags, antecedent, node });\n      if (currentExceptionTarget) {\n        addAntecedent(currentExceptionTarget, result);\n      }\n      return result;\n    }\n    function createFlowCall(antecedent, node) {\n      setFlowNodeReferenced(antecedent);\n      return initFlowNode({ flags: 512, antecedent, node });\n    }\n    function finishFlowLabel(flow) {\n      const antecedents = flow.antecedents;\n      if (!antecedents) {\n        return unreachableFlow;\n      }\n      if (antecedents.length === 1) {\n        return antecedents[0];\n      }\n      return flow;\n    }\n    function isStatementCondition(node) {\n      const parent3 = node.parent;\n      switch (parent3.kind) {\n        case 242:\n        case 244:\n        case 243:\n          return parent3.expression === node;\n        case 245:\n        case 224:\n          return parent3.condition === node;\n      }\n      return false;\n    }\n    function isLogicalExpression(node) {\n      while (true) {\n        if (node.kind === 214) {\n          node = node.expression;\n        } else if (node.kind === 221 && node.operator === 53) {\n          node = node.operand;\n        } else {\n          return isLogicalOrCoalescingBinaryExpression(node);\n        }\n      }\n    }\n    function isLogicalAssignmentExpression(node) {\n      return isLogicalOrCoalescingAssignmentExpression(skipParentheses(node));\n    }\n    function isTopLevelLogicalExpression(node) {\n      while (isParenthesizedExpression(node.parent) || isPrefixUnaryExpression(node.parent) && node.parent.operator === 53) {\n        node = node.parent;\n      }\n      return !isStatementCondition(node) && !isLogicalExpression(node.parent) && !(isOptionalChain(node.parent) && node.parent.expression === node);\n    }\n    function doWithConditionalBranches(action, value, trueTarget, falseTarget) {\n      const savedTrueTarget = currentTrueTarget;\n      const savedFalseTarget = currentFalseTarget;\n      currentTrueTarget = trueTarget;\n      currentFalseTarget = falseTarget;\n      action(value);\n      currentTrueTarget = savedTrueTarget;\n      currentFalseTarget = savedFalseTarget;\n    }\n    function bindCondition(node, trueTarget, falseTarget) {\n      doWithConditionalBranches(bind, node, trueTarget, falseTarget);\n      if (!node || !isLogicalAssignmentExpression(node) && !isLogicalExpression(node) && !(isOptionalChain(node) && isOutermostOptionalChain(node))) {\n        addAntecedent(trueTarget, createFlowCondition(32, currentFlow, node));\n        addAntecedent(falseTarget, createFlowCondition(64, currentFlow, node));\n      }\n    }\n    function bindIterativeStatement(node, breakTarget, continueTarget) {\n      const saveBreakTarget = currentBreakTarget;\n      const saveContinueTarget = currentContinueTarget;\n      currentBreakTarget = breakTarget;\n      currentContinueTarget = continueTarget;\n      bind(node);\n      currentBreakTarget = saveBreakTarget;\n      currentContinueTarget = saveContinueTarget;\n    }\n    function setContinueTarget(node, target) {\n      let label = activeLabelList;\n      while (label && node.parent.kind === 253) {\n        label.continueTarget = target;\n        label = label.next;\n        node = node.parent;\n      }\n      return target;\n    }\n    function bindWhileStatement(node) {\n      const preWhileLabel = setContinueTarget(node, createLoopLabel());\n      const preBodyLabel = createBranchLabel();\n      const postWhileLabel = createBranchLabel();\n      addAntecedent(preWhileLabel, currentFlow);\n      currentFlow = preWhileLabel;\n      bindCondition(node.expression, preBodyLabel, postWhileLabel);\n      currentFlow = finishFlowLabel(preBodyLabel);\n      bindIterativeStatement(node.statement, postWhileLabel, preWhileLabel);\n      addAntecedent(preWhileLabel, currentFlow);\n      currentFlow = finishFlowLabel(postWhileLabel);\n    }\n    function bindDoStatement(node) {\n      const preDoLabel = createLoopLabel();\n      const preConditionLabel = setContinueTarget(node, createBranchLabel());\n      const postDoLabel = createBranchLabel();\n      addAntecedent(preDoLabel, currentFlow);\n      currentFlow = preDoLabel;\n      bindIterativeStatement(node.statement, postDoLabel, preConditionLabel);\n      addAntecedent(preConditionLabel, currentFlow);\n      currentFlow = finishFlowLabel(preConditionLabel);\n      bindCondition(node.expression, preDoLabel, postDoLabel);\n      currentFlow = finishFlowLabel(postDoLabel);\n    }\n    function bindForStatement(node) {\n      const preLoopLabel = setContinueTarget(node, createLoopLabel());\n      const preBodyLabel = createBranchLabel();\n      const postLoopLabel = createBranchLabel();\n      bind(node.initializer);\n      addAntecedent(preLoopLabel, currentFlow);\n      currentFlow = preLoopLabel;\n      bindCondition(node.condition, preBodyLabel, postLoopLabel);\n      currentFlow = finishFlowLabel(preBodyLabel);\n      bindIterativeStatement(node.statement, postLoopLabel, preLoopLabel);\n      bind(node.incrementor);\n      addAntecedent(preLoopLabel, currentFlow);\n      currentFlow = finishFlowLabel(postLoopLabel);\n    }\n    function bindForInOrForOfStatement(node) {\n      const preLoopLabel = setContinueTarget(node, createLoopLabel());\n      const postLoopLabel = createBranchLabel();\n      bind(node.expression);\n      addAntecedent(preLoopLabel, currentFlow);\n      currentFlow = preLoopLabel;\n      if (node.kind === 247) {\n        bind(node.awaitModifier);\n      }\n      addAntecedent(postLoopLabel, currentFlow);\n      bind(node.initializer);\n      if (node.initializer.kind !== 258) {\n        bindAssignmentTargetFlow(node.initializer);\n      }\n      bindIterativeStatement(node.statement, postLoopLabel, preLoopLabel);\n      addAntecedent(preLoopLabel, currentFlow);\n      currentFlow = finishFlowLabel(postLoopLabel);\n    }\n    function bindIfStatement(node) {\n      const thenLabel = createBranchLabel();\n      const elseLabel = createBranchLabel();\n      const postIfLabel = createBranchLabel();\n      bindCondition(node.expression, thenLabel, elseLabel);\n      currentFlow = finishFlowLabel(thenLabel);\n      bind(node.thenStatement);\n      addAntecedent(postIfLabel, currentFlow);\n      currentFlow = finishFlowLabel(elseLabel);\n      bind(node.elseStatement);\n      addAntecedent(postIfLabel, currentFlow);\n      currentFlow = finishFlowLabel(postIfLabel);\n    }\n    function bindReturnOrThrow(node) {\n      bind(node.expression);\n      if (node.kind === 250) {\n        hasExplicitReturn = true;\n        if (currentReturnTarget) {\n          addAntecedent(currentReturnTarget, currentFlow);\n        }\n      }\n      currentFlow = unreachableFlow;\n    }\n    function findActiveLabel(name) {\n      for (let label = activeLabelList; label; label = label.next) {\n        if (label.name === name) {\n          return label;\n        }\n      }\n      return void 0;\n    }\n    function bindBreakOrContinueFlow(node, breakTarget, continueTarget) {\n      const flowLabel = node.kind === 249 ? breakTarget : continueTarget;\n      if (flowLabel) {\n        addAntecedent(flowLabel, currentFlow);\n        currentFlow = unreachableFlow;\n      }\n    }\n    function bindBreakOrContinueStatement(node) {\n      bind(node.label);\n      if (node.label) {\n        const activeLabel = findActiveLabel(node.label.escapedText);\n        if (activeLabel) {\n          activeLabel.referenced = true;\n          bindBreakOrContinueFlow(node, activeLabel.breakTarget, activeLabel.continueTarget);\n        }\n      } else {\n        bindBreakOrContinueFlow(node, currentBreakTarget, currentContinueTarget);\n      }\n    }\n    function bindTryStatement(node) {\n      const saveReturnTarget = currentReturnTarget;\n      const saveExceptionTarget = currentExceptionTarget;\n      const normalExitLabel = createBranchLabel();\n      const returnLabel = createBranchLabel();\n      let exceptionLabel = createBranchLabel();\n      if (node.finallyBlock) {\n        currentReturnTarget = returnLabel;\n      }\n      addAntecedent(exceptionLabel, currentFlow);\n      currentExceptionTarget = exceptionLabel;\n      bind(node.tryBlock);\n      addAntecedent(normalExitLabel, currentFlow);\n      if (node.catchClause) {\n        currentFlow = finishFlowLabel(exceptionLabel);\n        exceptionLabel = createBranchLabel();\n        addAntecedent(exceptionLabel, currentFlow);\n        currentExceptionTarget = exceptionLabel;\n        bind(node.catchClause);\n        addAntecedent(normalExitLabel, currentFlow);\n      }\n      currentReturnTarget = saveReturnTarget;\n      currentExceptionTarget = saveExceptionTarget;\n      if (node.finallyBlock) {\n        const finallyLabel = createBranchLabel();\n        finallyLabel.antecedents = concatenate(concatenate(normalExitLabel.antecedents, exceptionLabel.antecedents), returnLabel.antecedents);\n        currentFlow = finallyLabel;\n        bind(node.finallyBlock);\n        if (currentFlow.flags & 1) {\n          currentFlow = unreachableFlow;\n        } else {\n          if (currentReturnTarget && returnLabel.antecedents) {\n            addAntecedent(currentReturnTarget, createReduceLabel(finallyLabel, returnLabel.antecedents, currentFlow));\n          }\n          if (currentExceptionTarget && exceptionLabel.antecedents) {\n            addAntecedent(currentExceptionTarget, createReduceLabel(finallyLabel, exceptionLabel.antecedents, currentFlow));\n          }\n          currentFlow = normalExitLabel.antecedents ? createReduceLabel(finallyLabel, normalExitLabel.antecedents, currentFlow) : unreachableFlow;\n        }\n      } else {\n        currentFlow = finishFlowLabel(normalExitLabel);\n      }\n    }\n    function bindSwitchStatement(node) {\n      const postSwitchLabel = createBranchLabel();\n      bind(node.expression);\n      const saveBreakTarget = currentBreakTarget;\n      const savePreSwitchCaseFlow = preSwitchCaseFlow;\n      currentBreakTarget = postSwitchLabel;\n      preSwitchCaseFlow = currentFlow;\n      bind(node.caseBlock);\n      addAntecedent(postSwitchLabel, currentFlow);\n      const hasDefault = forEach(node.caseBlock.clauses, (c) => c.kind === 293);\n      node.possiblyExhaustive = !hasDefault && !postSwitchLabel.antecedents;\n      if (!hasDefault) {\n        addAntecedent(postSwitchLabel, createFlowSwitchClause(preSwitchCaseFlow, node, 0, 0));\n      }\n      currentBreakTarget = saveBreakTarget;\n      preSwitchCaseFlow = savePreSwitchCaseFlow;\n      currentFlow = finishFlowLabel(postSwitchLabel);\n    }\n    function bindCaseBlock(node) {\n      const clauses = node.clauses;\n      const isNarrowingSwitch = isNarrowingExpression(node.parent.expression);\n      let fallthroughFlow = unreachableFlow;\n      for (let i = 0; i < clauses.length; i++) {\n        const clauseStart = i;\n        while (!clauses[i].statements.length && i + 1 < clauses.length) {\n          bind(clauses[i]);\n          i++;\n        }\n        const preCaseLabel = createBranchLabel();\n        addAntecedent(preCaseLabel, isNarrowingSwitch ? createFlowSwitchClause(preSwitchCaseFlow, node.parent, clauseStart, i + 1) : preSwitchCaseFlow);\n        addAntecedent(preCaseLabel, fallthroughFlow);\n        currentFlow = finishFlowLabel(preCaseLabel);\n        const clause = clauses[i];\n        bind(clause);\n        fallthroughFlow = currentFlow;\n        if (!(currentFlow.flags & 1) && i !== clauses.length - 1 && options.noFallthroughCasesInSwitch) {\n          clause.fallthroughFlowNode = currentFlow;\n        }\n      }\n    }\n    function bindCaseClause(node) {\n      const saveCurrentFlow = currentFlow;\n      currentFlow = preSwitchCaseFlow;\n      bind(node.expression);\n      currentFlow = saveCurrentFlow;\n      bindEach(node.statements);\n    }\n    function bindExpressionStatement(node) {\n      bind(node.expression);\n      maybeBindExpressionFlowIfCall(node.expression);\n    }\n    function maybeBindExpressionFlowIfCall(node) {\n      if (node.kind === 210) {\n        const call = node;\n        if (call.expression.kind !== 106 && isDottedName(call.expression)) {\n          currentFlow = createFlowCall(currentFlow, call);\n        }\n      }\n    }\n    function bindLabeledStatement(node) {\n      const postStatementLabel = createBranchLabel();\n      activeLabelList = {\n        next: activeLabelList,\n        name: node.label.escapedText,\n        breakTarget: postStatementLabel,\n        continueTarget: void 0,\n        referenced: false\n      };\n      bind(node.label);\n      bind(node.statement);\n      if (!activeLabelList.referenced && !options.allowUnusedLabels) {\n        errorOrSuggestionOnNode(unusedLabelIsError(options), node.label, Diagnostics.Unused_label);\n      }\n      activeLabelList = activeLabelList.next;\n      addAntecedent(postStatementLabel, currentFlow);\n      currentFlow = finishFlowLabel(postStatementLabel);\n    }\n    function bindDestructuringTargetFlow(node) {\n      if (node.kind === 223 && node.operatorToken.kind === 63) {\n        bindAssignmentTargetFlow(node.left);\n      } else {\n        bindAssignmentTargetFlow(node);\n      }\n    }\n    function bindAssignmentTargetFlow(node) {\n      if (isNarrowableReference(node)) {\n        currentFlow = createFlowMutation(16, currentFlow, node);\n      } else if (node.kind === 206) {\n        for (const e of node.elements) {\n          if (e.kind === 227) {\n            bindAssignmentTargetFlow(e.expression);\n          } else {\n            bindDestructuringTargetFlow(e);\n          }\n        }\n      } else if (node.kind === 207) {\n        for (const p of node.properties) {\n          if (p.kind === 299) {\n            bindDestructuringTargetFlow(p.initializer);\n          } else if (p.kind === 300) {\n            bindAssignmentTargetFlow(p.name);\n          } else if (p.kind === 301) {\n            bindAssignmentTargetFlow(p.expression);\n          }\n        }\n      }\n    }\n    function bindLogicalLikeExpression(node, trueTarget, falseTarget) {\n      const preRightLabel = createBranchLabel();\n      if (node.operatorToken.kind === 55 || node.operatorToken.kind === 76) {\n        bindCondition(node.left, preRightLabel, falseTarget);\n      } else {\n        bindCondition(node.left, trueTarget, preRightLabel);\n      }\n      currentFlow = finishFlowLabel(preRightLabel);\n      bind(node.operatorToken);\n      if (isLogicalOrCoalescingAssignmentOperator(node.operatorToken.kind)) {\n        doWithConditionalBranches(bind, node.right, trueTarget, falseTarget);\n        bindAssignmentTargetFlow(node.left);\n        addAntecedent(trueTarget, createFlowCondition(32, currentFlow, node));\n        addAntecedent(falseTarget, createFlowCondition(64, currentFlow, node));\n      } else {\n        bindCondition(node.right, trueTarget, falseTarget);\n      }\n    }\n    function bindPrefixUnaryExpressionFlow(node) {\n      if (node.operator === 53) {\n        const saveTrueTarget = currentTrueTarget;\n        currentTrueTarget = currentFalseTarget;\n        currentFalseTarget = saveTrueTarget;\n        bindEachChild(node);\n        currentFalseTarget = currentTrueTarget;\n        currentTrueTarget = saveTrueTarget;\n      } else {\n        bindEachChild(node);\n        if (node.operator === 45 || node.operator === 46) {\n          bindAssignmentTargetFlow(node.operand);\n        }\n      }\n    }\n    function bindPostfixUnaryExpressionFlow(node) {\n      bindEachChild(node);\n      if (node.operator === 45 || node.operator === 46) {\n        bindAssignmentTargetFlow(node.operand);\n      }\n    }\n    function bindDestructuringAssignmentFlow(node) {\n      if (inAssignmentPattern) {\n        inAssignmentPattern = false;\n        bind(node.operatorToken);\n        bind(node.right);\n        inAssignmentPattern = true;\n        bind(node.left);\n      } else {\n        inAssignmentPattern = true;\n        bind(node.left);\n        inAssignmentPattern = false;\n        bind(node.operatorToken);\n        bind(node.right);\n      }\n      bindAssignmentTargetFlow(node.left);\n    }\n    function createBindBinaryExpressionFlow() {\n      return createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight, onExit, void 0);\n      function onEnter(node, state) {\n        if (state) {\n          state.stackIndex++;\n          setParent(node, parent2);\n          const saveInStrictMode = inStrictMode;\n          bindWorker(node);\n          const saveParent = parent2;\n          parent2 = node;\n          state.skip = false;\n          state.inStrictModeStack[state.stackIndex] = saveInStrictMode;\n          state.parentStack[state.stackIndex] = saveParent;\n        } else {\n          state = {\n            stackIndex: 0,\n            skip: false,\n            inStrictModeStack: [void 0],\n            parentStack: [void 0]\n          };\n        }\n        const operator = node.operatorToken.kind;\n        if (isLogicalOrCoalescingBinaryOperator(operator) || isLogicalOrCoalescingAssignmentOperator(operator)) {\n          if (isTopLevelLogicalExpression(node)) {\n            const postExpressionLabel = createBranchLabel();\n            bindLogicalLikeExpression(node, postExpressionLabel, postExpressionLabel);\n            currentFlow = finishFlowLabel(postExpressionLabel);\n          } else {\n            bindLogicalLikeExpression(node, currentTrueTarget, currentFalseTarget);\n          }\n          state.skip = true;\n        }\n        return state;\n      }\n      function onLeft(left, state, node) {\n        if (!state.skip) {\n          const maybeBound = maybeBind2(left);\n          if (node.operatorToken.kind === 27) {\n            maybeBindExpressionFlowIfCall(left);\n          }\n          return maybeBound;\n        }\n      }\n      function onOperator(operatorToken, state, _node) {\n        if (!state.skip) {\n          bind(operatorToken);\n        }\n      }\n      function onRight(right, state, node) {\n        if (!state.skip) {\n          const maybeBound = maybeBind2(right);\n          if (node.operatorToken.kind === 27) {\n            maybeBindExpressionFlowIfCall(right);\n          }\n          return maybeBound;\n        }\n      }\n      function onExit(node, state) {\n        if (!state.skip) {\n          const operator = node.operatorToken.kind;\n          if (isAssignmentOperator(operator) && !isAssignmentTarget(node)) {\n            bindAssignmentTargetFlow(node.left);\n            if (operator === 63 && node.left.kind === 209) {\n              const elementAccess = node.left;\n              if (isNarrowableOperand(elementAccess.expression)) {\n                currentFlow = createFlowMutation(256, currentFlow, node);\n              }\n            }\n          }\n        }\n        const savedInStrictMode = state.inStrictModeStack[state.stackIndex];\n        const savedParent = state.parentStack[state.stackIndex];\n        if (savedInStrictMode !== void 0) {\n          inStrictMode = savedInStrictMode;\n        }\n        if (savedParent !== void 0) {\n          parent2 = savedParent;\n        }\n        state.skip = false;\n        state.stackIndex--;\n      }\n      function maybeBind2(node) {\n        if (node && isBinaryExpression(node) && !isDestructuringAssignment(node)) {\n          return node;\n        }\n        bind(node);\n      }\n    }\n    function bindDeleteExpressionFlow(node) {\n      bindEachChild(node);\n      if (node.expression.kind === 208) {\n        bindAssignmentTargetFlow(node.expression);\n      }\n    }\n    function bindConditionalExpressionFlow(node) {\n      const trueLabel = createBranchLabel();\n      const falseLabel = createBranchLabel();\n      const postExpressionLabel = createBranchLabel();\n      bindCondition(node.condition, trueLabel, falseLabel);\n      currentFlow = finishFlowLabel(trueLabel);\n      bind(node.questionToken);\n      bind(node.whenTrue);\n      addAntecedent(postExpressionLabel, currentFlow);\n      currentFlow = finishFlowLabel(falseLabel);\n      bind(node.colonToken);\n      bind(node.whenFalse);\n      addAntecedent(postExpressionLabel, currentFlow);\n      currentFlow = finishFlowLabel(postExpressionLabel);\n    }\n    function bindInitializedVariableFlow(node) {\n      const name = !isOmittedExpression(node) ? node.name : void 0;\n      if (isBindingPattern(name)) {\n        for (const child of name.elements) {\n          bindInitializedVariableFlow(child);\n        }\n      } else {\n        currentFlow = createFlowMutation(16, currentFlow, node);\n      }\n    }\n    function bindVariableDeclarationFlow(node) {\n      bindEachChild(node);\n      if (node.initializer || isForInOrOfStatement(node.parent.parent)) {\n        bindInitializedVariableFlow(node);\n      }\n    }\n    function bindBindingElementFlow(node) {\n      bind(node.dotDotDotToken);\n      bind(node.propertyName);\n      bindInitializer(node.initializer);\n      bind(node.name);\n    }\n    function bindParameterFlow(node) {\n      bindEach(node.modifiers);\n      bind(node.dotDotDotToken);\n      bind(node.questionToken);\n      bind(node.type);\n      bindInitializer(node.initializer);\n      bind(node.name);\n    }\n    function bindInitializer(node) {\n      if (!node) {\n        return;\n      }\n      const entryFlow = currentFlow;\n      bind(node);\n      if (entryFlow === unreachableFlow || entryFlow === currentFlow) {\n        return;\n      }\n      const exitFlow = createBranchLabel();\n      addAntecedent(exitFlow, entryFlow);\n      addAntecedent(exitFlow, currentFlow);\n      currentFlow = finishFlowLabel(exitFlow);\n    }\n    function bindJSDocTypeAlias(node) {\n      bind(node.tagName);\n      if (node.kind !== 343 && node.fullName) {\n        setParent(node.fullName, node);\n        setParentRecursive(node.fullName, false);\n      }\n      if (typeof node.comment !== \"string\") {\n        bindEach(node.comment);\n      }\n    }\n    function bindJSDocClassTag(node) {\n      bindEachChild(node);\n      const host = getHostSignatureFromJSDoc(node);\n      if (host && host.kind !== 171) {\n        addDeclarationToSymbol(host.symbol, host, 32);\n      }\n    }\n    function bindOptionalExpression(node, trueTarget, falseTarget) {\n      doWithConditionalBranches(bind, node, trueTarget, falseTarget);\n      if (!isOptionalChain(node) || isOutermostOptionalChain(node)) {\n        addAntecedent(trueTarget, createFlowCondition(32, currentFlow, node));\n        addAntecedent(falseTarget, createFlowCondition(64, currentFlow, node));\n      }\n    }\n    function bindOptionalChainRest(node) {\n      switch (node.kind) {\n        case 208:\n          bind(node.questionDotToken);\n          bind(node.name);\n          break;\n        case 209:\n          bind(node.questionDotToken);\n          bind(node.argumentExpression);\n          break;\n        case 210:\n          bind(node.questionDotToken);\n          bindEach(node.typeArguments);\n          bindEach(node.arguments);\n          break;\n      }\n    }\n    function bindOptionalChain(node, trueTarget, falseTarget) {\n      const preChainLabel = isOptionalChainRoot(node) ? createBranchLabel() : void 0;\n      bindOptionalExpression(node.expression, preChainLabel || trueTarget, falseTarget);\n      if (preChainLabel) {\n        currentFlow = finishFlowLabel(preChainLabel);\n      }\n      doWithConditionalBranches(bindOptionalChainRest, node, trueTarget, falseTarget);\n      if (isOutermostOptionalChain(node)) {\n        addAntecedent(trueTarget, createFlowCondition(32, currentFlow, node));\n        addAntecedent(falseTarget, createFlowCondition(64, currentFlow, node));\n      }\n    }\n    function bindOptionalChainFlow(node) {\n      if (isTopLevelLogicalExpression(node)) {\n        const postExpressionLabel = createBranchLabel();\n        bindOptionalChain(node, postExpressionLabel, postExpressionLabel);\n        currentFlow = finishFlowLabel(postExpressionLabel);\n      } else {\n        bindOptionalChain(node, currentTrueTarget, currentFalseTarget);\n      }\n    }\n    function bindNonNullExpressionFlow(node) {\n      if (isOptionalChain(node)) {\n        bindOptionalChainFlow(node);\n      } else {\n        bindEachChild(node);\n      }\n    }\n    function bindAccessExpressionFlow(node) {\n      if (isOptionalChain(node)) {\n        bindOptionalChainFlow(node);\n      } else {\n        bindEachChild(node);\n      }\n    }\n    function bindCallExpressionFlow(node) {\n      if (isOptionalChain(node)) {\n        bindOptionalChainFlow(node);\n      } else {\n        const expr = skipParentheses(node.expression);\n        if (expr.kind === 215 || expr.kind === 216) {\n          bindEach(node.typeArguments);\n          bindEach(node.arguments);\n          bind(node.expression);\n        } else {\n          bindEachChild(node);\n          if (node.expression.kind === 106) {\n            currentFlow = createFlowCall(currentFlow, node);\n          }\n        }\n      }\n      if (node.expression.kind === 208) {\n        const propertyAccess = node.expression;\n        if (isIdentifier(propertyAccess.name) && isNarrowableOperand(propertyAccess.expression) && isPushOrUnshiftIdentifier(propertyAccess.name)) {\n          currentFlow = createFlowMutation(256, currentFlow, node);\n        }\n      }\n    }\n    function addToContainerChain(next) {\n      if (lastContainer) {\n        lastContainer.nextContainer = next;\n      }\n      lastContainer = next;\n    }\n    function declareSymbolAndAddToSymbolTable(node, symbolFlags, symbolExcludes) {\n      switch (container.kind) {\n        case 264:\n          return declareModuleMember(node, symbolFlags, symbolExcludes);\n        case 308:\n          return declareSourceFileMember(node, symbolFlags, symbolExcludes);\n        case 228:\n        case 260:\n          return declareClassMember(node, symbolFlags, symbolExcludes);\n        case 263:\n          return declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes);\n        case 184:\n        case 325:\n        case 207:\n        case 261:\n        case 289:\n          return declareSymbol(container.symbol.members, container.symbol, node, symbolFlags, symbolExcludes);\n        case 181:\n        case 182:\n        case 176:\n        case 177:\n        case 326:\n        case 178:\n        case 171:\n        case 170:\n        case 173:\n        case 174:\n        case 175:\n        case 259:\n        case 215:\n        case 216:\n        case 320:\n        case 172:\n        case 262:\n        case 197:\n          if (container.locals)\n            Debug.assertNode(container, canHaveLocals);\n          return declareSymbol(container.locals, void 0, node, symbolFlags, symbolExcludes);\n      }\n    }\n    function declareClassMember(node, symbolFlags, symbolExcludes) {\n      return isStatic(node) ? declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes) : declareSymbol(container.symbol.members, container.symbol, node, symbolFlags, symbolExcludes);\n    }\n    function declareSourceFileMember(node, symbolFlags, symbolExcludes) {\n      return isExternalModule(file) ? declareModuleMember(node, symbolFlags, symbolExcludes) : declareSymbol(file.locals, void 0, node, symbolFlags, symbolExcludes);\n    }\n    function hasExportDeclarations(node) {\n      const body = isSourceFile(node) ? node : tryCast(node.body, isModuleBlock);\n      return !!body && body.statements.some((s) => isExportDeclaration(s) || isExportAssignment(s));\n    }\n    function setExportContextFlag(node) {\n      if (node.flags & 16777216 && !hasExportDeclarations(node)) {\n        node.flags |= 64;\n      } else {\n        node.flags &= ~64;\n      }\n    }\n    function bindModuleDeclaration(node) {\n      setExportContextFlag(node);\n      if (isAmbientModule(node)) {\n        if (hasSyntacticModifier(node, 1)) {\n          errorOnFirstToken(node, Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible);\n        }\n        if (isModuleAugmentationExternal(node)) {\n          declareModuleSymbol(node);\n        } else {\n          let pattern;\n          if (node.name.kind === 10) {\n            const { text } = node.name;\n            pattern = tryParsePattern(text);\n            if (pattern === void 0) {\n              errorOnFirstToken(node.name, Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character, text);\n            }\n          }\n          const symbol = declareSymbolAndAddToSymbolTable(node, 512, 110735);\n          file.patternAmbientModules = append(file.patternAmbientModules, pattern && !isString(pattern) ? { pattern, symbol } : void 0);\n        }\n      } else {\n        const state = declareModuleSymbol(node);\n        if (state !== 0) {\n          const { symbol } = node;\n          symbol.constEnumOnlyModule = !(symbol.flags & (16 | 32 | 256)) && state === 2 && symbol.constEnumOnlyModule !== false;\n        }\n      }\n    }\n    function declareModuleSymbol(node) {\n      const state = getModuleInstanceState(node);\n      const instantiated = state !== 0;\n      declareSymbolAndAddToSymbolTable(node, instantiated ? 512 : 1024, instantiated ? 110735 : 0);\n      return state;\n    }\n    function bindFunctionOrConstructorType(node) {\n      const symbol = createSymbol(131072, getDeclarationName(node));\n      addDeclarationToSymbol(symbol, node, 131072);\n      const typeLiteralSymbol = createSymbol(2048, \"__type\");\n      addDeclarationToSymbol(typeLiteralSymbol, node, 2048);\n      typeLiteralSymbol.members = createSymbolTable();\n      typeLiteralSymbol.members.set(symbol.escapedName, symbol);\n    }\n    function bindObjectLiteralExpression(node) {\n      return bindAnonymousDeclaration(node, 4096, \"__object\");\n    }\n    function bindJsxAttributes(node) {\n      return bindAnonymousDeclaration(node, 4096, \"__jsxAttributes\");\n    }\n    function bindJsxAttribute(node, symbolFlags, symbolExcludes) {\n      return declareSymbolAndAddToSymbolTable(node, symbolFlags, symbolExcludes);\n    }\n    function bindAnonymousDeclaration(node, symbolFlags, name) {\n      const symbol = createSymbol(symbolFlags, name);\n      if (symbolFlags & (8 | 106500)) {\n        symbol.parent = container.symbol;\n      }\n      addDeclarationToSymbol(symbol, node, symbolFlags);\n      return symbol;\n    }\n    function bindBlockScopedDeclaration(node, symbolFlags, symbolExcludes) {\n      switch (blockScopeContainer.kind) {\n        case 264:\n          declareModuleMember(node, symbolFlags, symbolExcludes);\n          break;\n        case 308:\n          if (isExternalOrCommonJsModule(container)) {\n            declareModuleMember(node, symbolFlags, symbolExcludes);\n            break;\n          }\n        default:\n          Debug.assertNode(blockScopeContainer, canHaveLocals);\n          if (!blockScopeContainer.locals) {\n            blockScopeContainer.locals = createSymbolTable();\n            addToContainerChain(blockScopeContainer);\n          }\n          declareSymbol(blockScopeContainer.locals, void 0, node, symbolFlags, symbolExcludes);\n      }\n    }\n    function delayedBindJSDocTypedefTag() {\n      if (!delayedTypeAliases) {\n        return;\n      }\n      const saveContainer = container;\n      const saveLastContainer = lastContainer;\n      const saveBlockScopeContainer = blockScopeContainer;\n      const saveParent = parent2;\n      const saveCurrentFlow = currentFlow;\n      for (const typeAlias of delayedTypeAliases) {\n        const host = typeAlias.parent.parent;\n        container = findAncestor(host.parent, (n) => !!(getContainerFlags(n) & 1)) || file;\n        blockScopeContainer = getEnclosingBlockScopeContainer(host) || file;\n        currentFlow = initFlowNode({ flags: 2 });\n        parent2 = typeAlias;\n        bind(typeAlias.typeExpression);\n        const declName = getNameOfDeclaration(typeAlias);\n        if ((isJSDocEnumTag(typeAlias) || !typeAlias.fullName) && declName && isPropertyAccessEntityNameExpression(declName.parent)) {\n          const isTopLevel = isTopLevelNamespaceAssignment(declName.parent);\n          if (isTopLevel) {\n            bindPotentiallyMissingNamespaces(file.symbol, declName.parent, isTopLevel, !!findAncestor(declName, (d) => isPropertyAccessExpression(d) && d.name.escapedText === \"prototype\"), false);\n            const oldContainer = container;\n            switch (getAssignmentDeclarationPropertyAccessKind(declName.parent)) {\n              case 1:\n              case 2:\n                if (!isExternalOrCommonJsModule(file)) {\n                  container = void 0;\n                } else {\n                  container = file;\n                }\n                break;\n              case 4:\n                container = declName.parent.expression;\n                break;\n              case 3:\n                container = declName.parent.expression.name;\n                break;\n              case 5:\n                container = isExportsOrModuleExportsOrAlias(file, declName.parent.expression) ? file : isPropertyAccessExpression(declName.parent.expression) ? declName.parent.expression.name : declName.parent.expression;\n                break;\n              case 0:\n                return Debug.fail(\"Shouldn't have detected typedef or enum on non-assignment declaration\");\n            }\n            if (container) {\n              declareModuleMember(typeAlias, 524288, 788968);\n            }\n            container = oldContainer;\n          }\n        } else if (isJSDocEnumTag(typeAlias) || !typeAlias.fullName || typeAlias.fullName.kind === 79) {\n          parent2 = typeAlias.parent;\n          bindBlockScopedDeclaration(typeAlias, 524288, 788968);\n        } else {\n          bind(typeAlias.fullName);\n        }\n      }\n      container = saveContainer;\n      lastContainer = saveLastContainer;\n      blockScopeContainer = saveBlockScopeContainer;\n      parent2 = saveParent;\n      currentFlow = saveCurrentFlow;\n    }\n    function checkContextualIdentifier(node) {\n      if (!file.parseDiagnostics.length && !(node.flags & 16777216) && !(node.flags & 8388608) && !isIdentifierName(node)) {\n        const originalKeywordKind = identifierToKeywordKind(node);\n        if (originalKeywordKind === void 0) {\n          return;\n        }\n        if (inStrictMode && originalKeywordKind >= 117 && originalKeywordKind <= 125) {\n          file.bindDiagnostics.push(createDiagnosticForNode2(node, getStrictModeIdentifierMessage(node), declarationNameToString(node)));\n        } else if (originalKeywordKind === 133) {\n          if (isExternalModule(file) && isInTopLevelContext(node)) {\n            file.bindDiagnostics.push(createDiagnosticForNode2(node, Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module, declarationNameToString(node)));\n          } else if (node.flags & 32768) {\n            file.bindDiagnostics.push(createDiagnosticForNode2(node, Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here, declarationNameToString(node)));\n          }\n        } else if (originalKeywordKind === 125 && node.flags & 8192) {\n          file.bindDiagnostics.push(createDiagnosticForNode2(node, Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here, declarationNameToString(node)));\n        }\n      }\n    }\n    function getStrictModeIdentifierMessage(node) {\n      if (getContainingClass(node)) {\n        return Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;\n      }\n      if (file.externalModuleIndicator) {\n        return Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;\n      }\n      return Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode;\n    }\n    function checkPrivateIdentifier(node) {\n      if (node.escapedText === \"#constructor\") {\n        if (!file.parseDiagnostics.length) {\n          file.bindDiagnostics.push(createDiagnosticForNode2(node, Diagnostics.constructor_is_a_reserved_word, declarationNameToString(node)));\n        }\n      }\n    }\n    function checkStrictModeBinaryExpression(node) {\n      if (inStrictMode && isLeftHandSideExpression(node.left) && isAssignmentOperator(node.operatorToken.kind)) {\n        checkStrictModeEvalOrArguments(node, node.left);\n      }\n    }\n    function checkStrictModeCatchClause(node) {\n      if (inStrictMode && node.variableDeclaration) {\n        checkStrictModeEvalOrArguments(node, node.variableDeclaration.name);\n      }\n    }\n    function checkStrictModeDeleteExpression(node) {\n      if (inStrictMode && node.expression.kind === 79) {\n        const span = getErrorSpanForNode(file, node.expression);\n        file.bindDiagnostics.push(createFileDiagnostic(file, span.start, span.length, Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode));\n      }\n    }\n    function isEvalOrArgumentsIdentifier(node) {\n      return isIdentifier(node) && (node.escapedText === \"eval\" || node.escapedText === \"arguments\");\n    }\n    function checkStrictModeEvalOrArguments(contextNode, name) {\n      if (name && name.kind === 79) {\n        const identifier = name;\n        if (isEvalOrArgumentsIdentifier(identifier)) {\n          const span = getErrorSpanForNode(file, name);\n          file.bindDiagnostics.push(createFileDiagnostic(file, span.start, span.length, getStrictModeEvalOrArgumentsMessage(contextNode), idText(identifier)));\n        }\n      }\n    }\n    function getStrictModeEvalOrArgumentsMessage(node) {\n      if (getContainingClass(node)) {\n        return Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode;\n      }\n      if (file.externalModuleIndicator) {\n        return Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;\n      }\n      return Diagnostics.Invalid_use_of_0_in_strict_mode;\n    }\n    function checkStrictModeFunctionName(node) {\n      if (inStrictMode) {\n        checkStrictModeEvalOrArguments(node, node.name);\n      }\n    }\n    function getStrictModeBlockScopeFunctionDeclarationMessage(node) {\n      if (getContainingClass(node)) {\n        return Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode;\n      }\n      if (file.externalModuleIndicator) {\n        return Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode;\n      }\n      return Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5;\n    }\n    function checkStrictModeFunctionDeclaration(node) {\n      if (languageVersion < 2) {\n        if (blockScopeContainer.kind !== 308 && blockScopeContainer.kind !== 264 && !isFunctionLikeOrClassStaticBlockDeclaration(blockScopeContainer)) {\n          const errorSpan = getErrorSpanForNode(file, node);\n          file.bindDiagnostics.push(createFileDiagnostic(file, errorSpan.start, errorSpan.length, getStrictModeBlockScopeFunctionDeclarationMessage(node)));\n        }\n      }\n    }\n    function checkStrictModeNumericLiteral(node) {\n      if (languageVersion < 1 && inStrictMode && node.numericLiteralFlags & 32) {\n        file.bindDiagnostics.push(createDiagnosticForNode2(node, Diagnostics.Octal_literals_are_not_allowed_in_strict_mode));\n      }\n    }\n    function checkStrictModePostfixUnaryExpression(node) {\n      if (inStrictMode) {\n        checkStrictModeEvalOrArguments(node, node.operand);\n      }\n    }\n    function checkStrictModePrefixUnaryExpression(node) {\n      if (inStrictMode) {\n        if (node.operator === 45 || node.operator === 46) {\n          checkStrictModeEvalOrArguments(node, node.operand);\n        }\n      }\n    }\n    function checkStrictModeWithStatement(node) {\n      if (inStrictMode) {\n        errorOnFirstToken(node, Diagnostics.with_statements_are_not_allowed_in_strict_mode);\n      }\n    }\n    function checkStrictModeLabeledStatement(node) {\n      if (inStrictMode && getEmitScriptTarget(options) >= 2) {\n        if (isDeclarationStatement(node.statement) || isVariableStatement(node.statement)) {\n          errorOnFirstToken(node.label, Diagnostics.A_label_is_not_allowed_here);\n        }\n      }\n    }\n    function errorOnFirstToken(node, message, arg0, arg1, arg2) {\n      const span = getSpanOfTokenAtPosition(file, node.pos);\n      file.bindDiagnostics.push(createFileDiagnostic(file, span.start, span.length, message, arg0, arg1, arg2));\n    }\n    function errorOrSuggestionOnNode(isError, node, message) {\n      errorOrSuggestionOnRange(isError, node, node, message);\n    }\n    function errorOrSuggestionOnRange(isError, startNode2, endNode2, message) {\n      addErrorOrSuggestionDiagnostic(isError, { pos: getTokenPosOfNode(startNode2, file), end: endNode2.end }, message);\n    }\n    function addErrorOrSuggestionDiagnostic(isError, range, message) {\n      const diag2 = createFileDiagnostic(file, range.pos, range.end - range.pos, message);\n      if (isError) {\n        file.bindDiagnostics.push(diag2);\n      } else {\n        file.bindSuggestionDiagnostics = append(file.bindSuggestionDiagnostics, { ...diag2, category: 2 });\n      }\n    }\n    function bind(node) {\n      if (!node) {\n        return;\n      }\n      setParent(node, parent2);\n      if (tracing)\n        node.tracingPath = file.path;\n      const saveInStrictMode = inStrictMode;\n      bindWorker(node);\n      if (node.kind > 162) {\n        const saveParent = parent2;\n        parent2 = node;\n        const containerFlags = getContainerFlags(node);\n        if (containerFlags === 0) {\n          bindChildren(node);\n        } else {\n          bindContainer(node, containerFlags);\n        }\n        parent2 = saveParent;\n      } else {\n        const saveParent = parent2;\n        if (node.kind === 1)\n          parent2 = node;\n        bindJSDoc(node);\n        parent2 = saveParent;\n      }\n      inStrictMode = saveInStrictMode;\n    }\n    function bindJSDoc(node) {\n      if (hasJSDocNodes(node)) {\n        if (isInJSFile(node)) {\n          for (const j of node.jsDoc) {\n            bind(j);\n          }\n        } else {\n          for (const j of node.jsDoc) {\n            setParent(j, node);\n            setParentRecursive(j, false);\n          }\n        }\n      }\n    }\n    function updateStrictModeStatementList(statements) {\n      if (!inStrictMode) {\n        for (const statement of statements) {\n          if (!isPrologueDirective(statement)) {\n            return;\n          }\n          if (isUseStrictPrologueDirective(statement)) {\n            inStrictMode = true;\n            return;\n          }\n        }\n      }\n    }\n    function isUseStrictPrologueDirective(node) {\n      const nodeText2 = getSourceTextOfNodeFromSourceFile(file, node.expression);\n      return nodeText2 === '\"use strict\"' || nodeText2 === \"'use strict'\";\n    }\n    function bindWorker(node) {\n      switch (node.kind) {\n        case 79:\n          if (node.flags & 2048) {\n            let parentNode = node.parent;\n            while (parentNode && !isJSDocTypeAlias(parentNode)) {\n              parentNode = parentNode.parent;\n            }\n            bindBlockScopedDeclaration(parentNode, 524288, 788968);\n            break;\n          }\n        case 108:\n          if (currentFlow && (isExpression(node) || parent2.kind === 300)) {\n            node.flowNode = currentFlow;\n          }\n          return checkContextualIdentifier(node);\n        case 163:\n          if (currentFlow && isPartOfTypeQuery(node)) {\n            node.flowNode = currentFlow;\n          }\n          break;\n        case 233:\n        case 106:\n          node.flowNode = currentFlow;\n          break;\n        case 80:\n          return checkPrivateIdentifier(node);\n        case 208:\n        case 209:\n          const expr = node;\n          if (currentFlow && isNarrowableReference(expr)) {\n            expr.flowNode = currentFlow;\n          }\n          if (isSpecialPropertyDeclaration(expr)) {\n            bindSpecialPropertyDeclaration(expr);\n          }\n          if (isInJSFile(expr) && file.commonJsModuleIndicator && isModuleExportsAccessExpression(expr) && !lookupSymbolForName(blockScopeContainer, \"module\")) {\n            declareSymbol(file.locals, void 0, expr.expression, 1 | 134217728, 111550);\n          }\n          break;\n        case 223:\n          const specialKind = getAssignmentDeclarationKind(node);\n          switch (specialKind) {\n            case 1:\n              bindExportsPropertyAssignment(node);\n              break;\n            case 2:\n              bindModuleExportsAssignment(node);\n              break;\n            case 3:\n              bindPrototypePropertyAssignment(node.left, node);\n              break;\n            case 6:\n              bindPrototypeAssignment(node);\n              break;\n            case 4:\n              bindThisPropertyAssignment(node);\n              break;\n            case 5:\n              const expression = node.left.expression;\n              if (isInJSFile(node) && isIdentifier(expression)) {\n                const symbol = lookupSymbolForName(blockScopeContainer, expression.escapedText);\n                if (isThisInitializedDeclaration(symbol == null ? void 0 : symbol.valueDeclaration)) {\n                  bindThisPropertyAssignment(node);\n                  break;\n                }\n              }\n              bindSpecialPropertyAssignment(node);\n              break;\n            case 0:\n              break;\n            default:\n              Debug.fail(\"Unknown binary expression special property assignment kind\");\n          }\n          return checkStrictModeBinaryExpression(node);\n        case 295:\n          return checkStrictModeCatchClause(node);\n        case 217:\n          return checkStrictModeDeleteExpression(node);\n        case 8:\n          return checkStrictModeNumericLiteral(node);\n        case 222:\n          return checkStrictModePostfixUnaryExpression(node);\n        case 221:\n          return checkStrictModePrefixUnaryExpression(node);\n        case 251:\n          return checkStrictModeWithStatement(node);\n        case 253:\n          return checkStrictModeLabeledStatement(node);\n        case 194:\n          seenThisKeyword = true;\n          return;\n        case 179:\n          break;\n        case 165:\n          return bindTypeParameter(node);\n        case 166:\n          return bindParameter(node);\n        case 257:\n          return bindVariableDeclarationOrBindingElement(node);\n        case 205:\n          node.flowNode = currentFlow;\n          return bindVariableDeclarationOrBindingElement(node);\n        case 169:\n        case 168:\n          return bindPropertyWorker(node);\n        case 299:\n        case 300:\n          return bindPropertyOrMethodOrAccessor(node, 4, 0);\n        case 302:\n          return bindPropertyOrMethodOrAccessor(node, 8, 900095);\n        case 176:\n        case 177:\n        case 178:\n          return declareSymbolAndAddToSymbolTable(node, 131072, 0);\n        case 171:\n        case 170:\n          return bindPropertyOrMethodOrAccessor(node, 8192 | (node.questionToken ? 16777216 : 0), isObjectLiteralMethod(node) ? 0 : 103359);\n        case 259:\n          return bindFunctionDeclaration(node);\n        case 173:\n          return declareSymbolAndAddToSymbolTable(node, 16384, 0);\n        case 174:\n          return bindPropertyOrMethodOrAccessor(node, 32768, 46015);\n        case 175:\n          return bindPropertyOrMethodOrAccessor(node, 65536, 78783);\n        case 181:\n        case 320:\n        case 326:\n        case 182:\n          return bindFunctionOrConstructorType(node);\n        case 184:\n        case 325:\n        case 197:\n          return bindAnonymousTypeWorker(node);\n        case 335:\n          return bindJSDocClassTag(node);\n        case 207:\n          return bindObjectLiteralExpression(node);\n        case 215:\n        case 216:\n          return bindFunctionExpression(node);\n        case 210:\n          const assignmentKind = getAssignmentDeclarationKind(node);\n          switch (assignmentKind) {\n            case 7:\n              return bindObjectDefinePropertyAssignment(node);\n            case 8:\n              return bindObjectDefinePropertyExport(node);\n            case 9:\n              return bindObjectDefinePrototypeProperty(node);\n            case 0:\n              break;\n            default:\n              return Debug.fail(\"Unknown call expression assignment declaration kind\");\n          }\n          if (isInJSFile(node)) {\n            bindCallExpression(node);\n          }\n          break;\n        case 228:\n        case 260:\n          inStrictMode = true;\n          return bindClassLikeDeclaration(node);\n        case 261:\n          return bindBlockScopedDeclaration(node, 64, 788872);\n        case 262:\n          return bindBlockScopedDeclaration(node, 524288, 788968);\n        case 263:\n          return bindEnumDeclaration(node);\n        case 264:\n          return bindModuleDeclaration(node);\n        case 289:\n          return bindJsxAttributes(node);\n        case 288:\n          return bindJsxAttribute(node, 4, 0);\n        case 268:\n        case 271:\n        case 273:\n        case 278:\n          return declareSymbolAndAddToSymbolTable(node, 2097152, 2097152);\n        case 267:\n          return bindNamespaceExportDeclaration(node);\n        case 270:\n          return bindImportClause(node);\n        case 275:\n          return bindExportDeclaration(node);\n        case 274:\n          return bindExportAssignment(node);\n        case 308:\n          updateStrictModeStatementList(node.statements);\n          return bindSourceFileIfExternalModule();\n        case 238:\n          if (!isFunctionLikeOrClassStaticBlockDeclaration(node.parent)) {\n            return;\n          }\n        case 265:\n          return updateStrictModeStatementList(node.statements);\n        case 344:\n          if (node.parent.kind === 326) {\n            return bindParameter(node);\n          }\n          if (node.parent.kind !== 325) {\n            break;\n          }\n        case 351:\n          const propTag = node;\n          const flags = propTag.isBracketed || propTag.typeExpression && propTag.typeExpression.type.kind === 319 ? 4 | 16777216 : 4;\n          return declareSymbolAndAddToSymbolTable(propTag, flags, 0);\n        case 349:\n        case 341:\n        case 343:\n          return (delayedTypeAliases || (delayedTypeAliases = [])).push(node);\n        case 342:\n          return bind(node.typeExpression);\n      }\n    }\n    function bindPropertyWorker(node) {\n      const isAutoAccessor = isAutoAccessorPropertyDeclaration(node);\n      const includes = isAutoAccessor ? 98304 : 4;\n      const excludes = isAutoAccessor ? 13247 : 0;\n      return bindPropertyOrMethodOrAccessor(node, includes | (node.questionToken ? 16777216 : 0), excludes);\n    }\n    function bindAnonymousTypeWorker(node) {\n      return bindAnonymousDeclaration(node, 2048, \"__type\");\n    }\n    function bindSourceFileIfExternalModule() {\n      setExportContextFlag(file);\n      if (isExternalModule(file)) {\n        bindSourceFileAsExternalModule();\n      } else if (isJsonSourceFile(file)) {\n        bindSourceFileAsExternalModule();\n        const originalSymbol = file.symbol;\n        declareSymbol(file.symbol.exports, file.symbol, file, 4, 67108863);\n        file.symbol = originalSymbol;\n      }\n    }\n    function bindSourceFileAsExternalModule() {\n      bindAnonymousDeclaration(file, 512, `\"${removeFileExtension(file.fileName)}\"`);\n    }\n    function bindExportAssignment(node) {\n      if (!container.symbol || !container.symbol.exports) {\n        bindAnonymousDeclaration(node, 111551, getDeclarationName(node));\n      } else {\n        const flags = exportAssignmentIsAlias(node) ? 2097152 : 4;\n        const symbol = declareSymbol(container.symbol.exports, container.symbol, node, flags, 67108863);\n        if (node.isExportEquals) {\n          setValueDeclaration(symbol, node);\n        }\n      }\n    }\n    function bindNamespaceExportDeclaration(node) {\n      if (some(node.modifiers)) {\n        file.bindDiagnostics.push(createDiagnosticForNode2(node, Diagnostics.Modifiers_cannot_appear_here));\n      }\n      const diag2 = !isSourceFile(node.parent) ? Diagnostics.Global_module_exports_may_only_appear_at_top_level : !isExternalModule(node.parent) ? Diagnostics.Global_module_exports_may_only_appear_in_module_files : !node.parent.isDeclarationFile ? Diagnostics.Global_module_exports_may_only_appear_in_declaration_files : void 0;\n      if (diag2) {\n        file.bindDiagnostics.push(createDiagnosticForNode2(node, diag2));\n      } else {\n        file.symbol.globalExports = file.symbol.globalExports || createSymbolTable();\n        declareSymbol(file.symbol.globalExports, file.symbol, node, 2097152, 2097152);\n      }\n    }\n    function bindExportDeclaration(node) {\n      if (!container.symbol || !container.symbol.exports) {\n        bindAnonymousDeclaration(node, 8388608, getDeclarationName(node));\n      } else if (!node.exportClause) {\n        declareSymbol(container.symbol.exports, container.symbol, node, 8388608, 0);\n      } else if (isNamespaceExport(node.exportClause)) {\n        setParent(node.exportClause, node);\n        declareSymbol(container.symbol.exports, container.symbol, node.exportClause, 2097152, 2097152);\n      }\n    }\n    function bindImportClause(node) {\n      if (node.name) {\n        declareSymbolAndAddToSymbolTable(node, 2097152, 2097152);\n      }\n    }\n    function setCommonJsModuleIndicator(node) {\n      if (file.externalModuleIndicator && file.externalModuleIndicator !== true) {\n        return false;\n      }\n      if (!file.commonJsModuleIndicator) {\n        file.commonJsModuleIndicator = node;\n        if (!file.externalModuleIndicator) {\n          bindSourceFileAsExternalModule();\n        }\n      }\n      return true;\n    }\n    function bindObjectDefinePropertyExport(node) {\n      if (!setCommonJsModuleIndicator(node)) {\n        return;\n      }\n      const symbol = forEachIdentifierInEntityName(node.arguments[0], void 0, (id, symbol2) => {\n        if (symbol2) {\n          addDeclarationToSymbol(symbol2, id, 1536 | 67108864);\n        }\n        return symbol2;\n      });\n      if (symbol) {\n        const flags = 4 | 1048576;\n        declareSymbol(symbol.exports, symbol, node, flags, 0);\n      }\n    }\n    function bindExportsPropertyAssignment(node) {\n      if (!setCommonJsModuleIndicator(node)) {\n        return;\n      }\n      const symbol = forEachIdentifierInEntityName(node.left.expression, void 0, (id, symbol2) => {\n        if (symbol2) {\n          addDeclarationToSymbol(symbol2, id, 1536 | 67108864);\n        }\n        return symbol2;\n      });\n      if (symbol) {\n        const isAlias = isAliasableExpression(node.right) && (isExportsIdentifier(node.left.expression) || isModuleExportsAccessExpression(node.left.expression));\n        const flags = isAlias ? 2097152 : 4 | 1048576;\n        setParent(node.left, node);\n        declareSymbol(symbol.exports, symbol, node.left, flags, 0);\n      }\n    }\n    function bindModuleExportsAssignment(node) {\n      if (!setCommonJsModuleIndicator(node)) {\n        return;\n      }\n      const assignedExpression = getRightMostAssignedExpression(node.right);\n      if (isEmptyObjectLiteral(assignedExpression) || container === file && isExportsOrModuleExportsOrAlias(file, assignedExpression)) {\n        return;\n      }\n      if (isObjectLiteralExpression(assignedExpression) && every(assignedExpression.properties, isShorthandPropertyAssignment)) {\n        forEach(assignedExpression.properties, bindExportAssignedObjectMemberAlias);\n        return;\n      }\n      const flags = exportAssignmentIsAlias(node) ? 2097152 : 4 | 1048576 | 512;\n      const symbol = declareSymbol(file.symbol.exports, file.symbol, node, flags | 67108864, 0);\n      setValueDeclaration(symbol, node);\n    }\n    function bindExportAssignedObjectMemberAlias(node) {\n      declareSymbol(file.symbol.exports, file.symbol, node, 2097152 | 67108864, 0);\n    }\n    function bindThisPropertyAssignment(node) {\n      Debug.assert(isInJSFile(node));\n      const hasPrivateIdentifier = isBinaryExpression(node) && isPropertyAccessExpression(node.left) && isPrivateIdentifier(node.left.name) || isPropertyAccessExpression(node) && isPrivateIdentifier(node.name);\n      if (hasPrivateIdentifier) {\n        return;\n      }\n      const thisContainer = getThisContainer(node, false, false);\n      switch (thisContainer.kind) {\n        case 259:\n        case 215:\n          let constructorSymbol = thisContainer.symbol;\n          if (isBinaryExpression(thisContainer.parent) && thisContainer.parent.operatorToken.kind === 63) {\n            const l = thisContainer.parent.left;\n            if (isBindableStaticAccessExpression(l) && isPrototypeAccess(l.expression)) {\n              constructorSymbol = lookupSymbolForPropertyAccess(l.expression.expression, thisParentContainer);\n            }\n          }\n          if (constructorSymbol && constructorSymbol.valueDeclaration) {\n            constructorSymbol.members = constructorSymbol.members || createSymbolTable();\n            if (hasDynamicName(node)) {\n              bindDynamicallyNamedThisPropertyAssignment(node, constructorSymbol, constructorSymbol.members);\n            } else {\n              declareSymbol(constructorSymbol.members, constructorSymbol, node, 4 | 67108864, 0 & ~4);\n            }\n            addDeclarationToSymbol(constructorSymbol, constructorSymbol.valueDeclaration, 32);\n          }\n          break;\n        case 173:\n        case 169:\n        case 171:\n        case 174:\n        case 175:\n        case 172:\n          const containingClass = thisContainer.parent;\n          const symbolTable = isStatic(thisContainer) ? containingClass.symbol.exports : containingClass.symbol.members;\n          if (hasDynamicName(node)) {\n            bindDynamicallyNamedThisPropertyAssignment(node, containingClass.symbol, symbolTable);\n          } else {\n            declareSymbol(symbolTable, containingClass.symbol, node, 4 | 67108864, 0, true);\n          }\n          break;\n        case 308:\n          if (hasDynamicName(node)) {\n            break;\n          } else if (thisContainer.commonJsModuleIndicator) {\n            declareSymbol(thisContainer.symbol.exports, thisContainer.symbol, node, 4 | 1048576, 0);\n          } else {\n            declareSymbolAndAddToSymbolTable(node, 1, 111550);\n          }\n          break;\n        default:\n          Debug.failBadSyntaxKind(thisContainer);\n      }\n    }\n    function bindDynamicallyNamedThisPropertyAssignment(node, symbol, symbolTable) {\n      declareSymbol(symbolTable, symbol, node, 4, 0, true, true);\n      addLateBoundAssignmentDeclarationToSymbol(node, symbol);\n    }\n    function addLateBoundAssignmentDeclarationToSymbol(node, symbol) {\n      if (symbol) {\n        (symbol.assignmentDeclarationMembers || (symbol.assignmentDeclarationMembers = /* @__PURE__ */ new Map())).set(getNodeId(node), node);\n      }\n    }\n    function bindSpecialPropertyDeclaration(node) {\n      if (node.expression.kind === 108) {\n        bindThisPropertyAssignment(node);\n      } else if (isBindableStaticAccessExpression(node) && node.parent.parent.kind === 308) {\n        if (isPrototypeAccess(node.expression)) {\n          bindPrototypePropertyAssignment(node, node.parent);\n        } else {\n          bindStaticPropertyAssignment(node);\n        }\n      }\n    }\n    function bindPrototypeAssignment(node) {\n      setParent(node.left, node);\n      setParent(node.right, node);\n      bindPropertyAssignment(node.left.expression, node.left, false, true);\n    }\n    function bindObjectDefinePrototypeProperty(node) {\n      const namespaceSymbol = lookupSymbolForPropertyAccess(node.arguments[0].expression);\n      if (namespaceSymbol && namespaceSymbol.valueDeclaration) {\n        addDeclarationToSymbol(namespaceSymbol, namespaceSymbol.valueDeclaration, 32);\n      }\n      bindPotentiallyNewExpandoMemberToNamespace(node, namespaceSymbol, true);\n    }\n    function bindPrototypePropertyAssignment(lhs, parent3) {\n      const classPrototype = lhs.expression;\n      const constructorFunction = classPrototype.expression;\n      setParent(constructorFunction, classPrototype);\n      setParent(classPrototype, lhs);\n      setParent(lhs, parent3);\n      bindPropertyAssignment(constructorFunction, lhs, true, true);\n    }\n    function bindObjectDefinePropertyAssignment(node) {\n      let namespaceSymbol = lookupSymbolForPropertyAccess(node.arguments[0]);\n      const isToplevel = node.parent.parent.kind === 308;\n      namespaceSymbol = bindPotentiallyMissingNamespaces(namespaceSymbol, node.arguments[0], isToplevel, false, false);\n      bindPotentiallyNewExpandoMemberToNamespace(node, namespaceSymbol, false);\n    }\n    function bindSpecialPropertyAssignment(node) {\n      var _a2;\n      const parentSymbol = lookupSymbolForPropertyAccess(node.left.expression, container) || lookupSymbolForPropertyAccess(node.left.expression, blockScopeContainer);\n      if (!isInJSFile(node) && !isFunctionSymbol(parentSymbol)) {\n        return;\n      }\n      const rootExpr = getLeftmostAccessExpression(node.left);\n      if (isIdentifier(rootExpr) && ((_a2 = lookupSymbolForName(container, rootExpr.escapedText)) == null ? void 0 : _a2.flags) & 2097152) {\n        return;\n      }\n      setParent(node.left, node);\n      setParent(node.right, node);\n      if (isIdentifier(node.left.expression) && container === file && isExportsOrModuleExportsOrAlias(file, node.left.expression)) {\n        bindExportsPropertyAssignment(node);\n      } else if (hasDynamicName(node)) {\n        bindAnonymousDeclaration(node, 4 | 67108864, \"__computed\");\n        const sym = bindPotentiallyMissingNamespaces(parentSymbol, node.left.expression, isTopLevelNamespaceAssignment(node.left), false, false);\n        addLateBoundAssignmentDeclarationToSymbol(node, sym);\n      } else {\n        bindStaticPropertyAssignment(cast(node.left, isBindableStaticNameExpression));\n      }\n    }\n    function bindStaticPropertyAssignment(node) {\n      Debug.assert(!isIdentifier(node));\n      setParent(node.expression, node);\n      bindPropertyAssignment(node.expression, node, false, false);\n    }\n    function bindPotentiallyMissingNamespaces(namespaceSymbol, entityName, isToplevel, isPrototypeProperty, containerIsClass) {\n      if ((namespaceSymbol == null ? void 0 : namespaceSymbol.flags) & 2097152) {\n        return namespaceSymbol;\n      }\n      if (isToplevel && !isPrototypeProperty) {\n        const flags = 1536 | 67108864;\n        const excludeFlags = 110735 & ~67108864;\n        namespaceSymbol = forEachIdentifierInEntityName(entityName, namespaceSymbol, (id, symbol, parent3) => {\n          if (symbol) {\n            addDeclarationToSymbol(symbol, id, flags);\n            return symbol;\n          } else {\n            const table = parent3 ? parent3.exports : file.jsGlobalAugmentations || (file.jsGlobalAugmentations = createSymbolTable());\n            return declareSymbol(table, parent3, id, flags, excludeFlags);\n          }\n        });\n      }\n      if (containerIsClass && namespaceSymbol && namespaceSymbol.valueDeclaration) {\n        addDeclarationToSymbol(namespaceSymbol, namespaceSymbol.valueDeclaration, 32);\n      }\n      return namespaceSymbol;\n    }\n    function bindPotentiallyNewExpandoMemberToNamespace(declaration, namespaceSymbol, isPrototypeProperty) {\n      if (!namespaceSymbol || !isExpandoSymbol(namespaceSymbol)) {\n        return;\n      }\n      const symbolTable = isPrototypeProperty ? namespaceSymbol.members || (namespaceSymbol.members = createSymbolTable()) : namespaceSymbol.exports || (namespaceSymbol.exports = createSymbolTable());\n      let includes = 0;\n      let excludes = 0;\n      if (isFunctionLikeDeclaration(getAssignedExpandoInitializer(declaration))) {\n        includes = 8192;\n        excludes = 103359;\n      } else if (isCallExpression(declaration) && isBindableObjectDefinePropertyCall(declaration)) {\n        if (some(declaration.arguments[2].properties, (p) => {\n          const id = getNameOfDeclaration(p);\n          return !!id && isIdentifier(id) && idText(id) === \"set\";\n        })) {\n          includes |= 65536 | 4;\n          excludes |= 78783;\n        }\n        if (some(declaration.arguments[2].properties, (p) => {\n          const id = getNameOfDeclaration(p);\n          return !!id && isIdentifier(id) && idText(id) === \"get\";\n        })) {\n          includes |= 32768 | 4;\n          excludes |= 46015;\n        }\n      }\n      if (includes === 0) {\n        includes = 4;\n        excludes = 0;\n      }\n      declareSymbol(symbolTable, namespaceSymbol, declaration, includes | 67108864, excludes & ~67108864);\n    }\n    function isTopLevelNamespaceAssignment(propertyAccess) {\n      return isBinaryExpression(propertyAccess.parent) ? getParentOfBinaryExpression(propertyAccess.parent).parent.kind === 308 : propertyAccess.parent.parent.kind === 308;\n    }\n    function bindPropertyAssignment(name, propertyAccess, isPrototypeProperty, containerIsClass) {\n      let namespaceSymbol = lookupSymbolForPropertyAccess(name, container) || lookupSymbolForPropertyAccess(name, blockScopeContainer);\n      const isToplevel = isTopLevelNamespaceAssignment(propertyAccess);\n      namespaceSymbol = bindPotentiallyMissingNamespaces(namespaceSymbol, propertyAccess.expression, isToplevel, isPrototypeProperty, containerIsClass);\n      bindPotentiallyNewExpandoMemberToNamespace(propertyAccess, namespaceSymbol, isPrototypeProperty);\n    }\n    function isExpandoSymbol(symbol) {\n      if (symbol.flags & (16 | 32 | 1024)) {\n        return true;\n      }\n      const node = symbol.valueDeclaration;\n      if (node && isCallExpression(node)) {\n        return !!getAssignedExpandoInitializer(node);\n      }\n      let init = !node ? void 0 : isVariableDeclaration(node) ? node.initializer : isBinaryExpression(node) ? node.right : isPropertyAccessExpression(node) && isBinaryExpression(node.parent) ? node.parent.right : void 0;\n      init = init && getRightMostAssignedExpression(init);\n      if (init) {\n        const isPrototypeAssignment = isPrototypeAccess(isVariableDeclaration(node) ? node.name : isBinaryExpression(node) ? node.left : node);\n        return !!getExpandoInitializer(isBinaryExpression(init) && (init.operatorToken.kind === 56 || init.operatorToken.kind === 60) ? init.right : init, isPrototypeAssignment);\n      }\n      return false;\n    }\n    function getParentOfBinaryExpression(expr) {\n      while (isBinaryExpression(expr.parent)) {\n        expr = expr.parent;\n      }\n      return expr.parent;\n    }\n    function lookupSymbolForPropertyAccess(node, lookupContainer = container) {\n      if (isIdentifier(node)) {\n        return lookupSymbolForName(lookupContainer, node.escapedText);\n      } else {\n        const symbol = lookupSymbolForPropertyAccess(node.expression);\n        return symbol && symbol.exports && symbol.exports.get(getElementOrPropertyAccessName(node));\n      }\n    }\n    function forEachIdentifierInEntityName(e, parent3, action) {\n      if (isExportsOrModuleExportsOrAlias(file, e)) {\n        return file.symbol;\n      } else if (isIdentifier(e)) {\n        return action(e, lookupSymbolForPropertyAccess(e), parent3);\n      } else {\n        const s = forEachIdentifierInEntityName(e.expression, parent3, action);\n        const name = getNameOrArgument(e);\n        if (isPrivateIdentifier(name)) {\n          Debug.fail(\"unexpected PrivateIdentifier\");\n        }\n        return action(name, s && s.exports && s.exports.get(getElementOrPropertyAccessName(e)), s);\n      }\n    }\n    function bindCallExpression(node) {\n      if (!file.commonJsModuleIndicator && isRequireCall(node, false)) {\n        setCommonJsModuleIndicator(node);\n      }\n    }\n    function bindClassLikeDeclaration(node) {\n      if (node.kind === 260) {\n        bindBlockScopedDeclaration(node, 32, 899503);\n      } else {\n        const bindingName = node.name ? node.name.escapedText : \"__class\";\n        bindAnonymousDeclaration(node, 32, bindingName);\n        if (node.name) {\n          classifiableNames.add(node.name.escapedText);\n        }\n      }\n      const { symbol } = node;\n      const prototypeSymbol = createSymbol(4 | 4194304, \"prototype\");\n      const symbolExport = symbol.exports.get(prototypeSymbol.escapedName);\n      if (symbolExport) {\n        if (node.name) {\n          setParent(node.name, node);\n        }\n        file.bindDiagnostics.push(createDiagnosticForNode2(symbolExport.declarations[0], Diagnostics.Duplicate_identifier_0, symbolName(prototypeSymbol)));\n      }\n      symbol.exports.set(prototypeSymbol.escapedName, prototypeSymbol);\n      prototypeSymbol.parent = symbol;\n    }\n    function bindEnumDeclaration(node) {\n      return isEnumConst(node) ? bindBlockScopedDeclaration(node, 128, 899967) : bindBlockScopedDeclaration(node, 256, 899327);\n    }\n    function bindVariableDeclarationOrBindingElement(node) {\n      if (inStrictMode) {\n        checkStrictModeEvalOrArguments(node, node.name);\n      }\n      if (!isBindingPattern(node.name)) {\n        const possibleVariableDecl = node.kind === 257 ? node : node.parent.parent;\n        if (isInJSFile(node) && getEmitModuleResolutionKind(options) !== 100 && isVariableDeclarationInitializedToBareOrAccessedRequire(possibleVariableDecl) && !getJSDocTypeTag(node) && !(getCombinedModifierFlags(node) & 1)) {\n          declareSymbolAndAddToSymbolTable(node, 2097152, 2097152);\n        } else if (isBlockOrCatchScoped(node)) {\n          bindBlockScopedDeclaration(node, 2, 111551);\n        } else if (isParameterDeclaration(node)) {\n          declareSymbolAndAddToSymbolTable(node, 1, 111551);\n        } else {\n          declareSymbolAndAddToSymbolTable(node, 1, 111550);\n        }\n      }\n    }\n    function bindParameter(node) {\n      if (node.kind === 344 && container.kind !== 326) {\n        return;\n      }\n      if (inStrictMode && !(node.flags & 16777216)) {\n        checkStrictModeEvalOrArguments(node, node.name);\n      }\n      if (isBindingPattern(node.name)) {\n        bindAnonymousDeclaration(node, 1, \"__\" + node.parent.parameters.indexOf(node));\n      } else {\n        declareSymbolAndAddToSymbolTable(node, 1, 111551);\n      }\n      if (isParameterPropertyDeclaration(node, node.parent)) {\n        const classDeclaration = node.parent.parent;\n        declareSymbol(classDeclaration.symbol.members, classDeclaration.symbol, node, 4 | (node.questionToken ? 16777216 : 0), 0);\n      }\n    }\n    function bindFunctionDeclaration(node) {\n      if (!file.isDeclarationFile && !(node.flags & 16777216)) {\n        if (isAsyncFunction(node)) {\n          emitFlags |= 2048;\n        }\n      }\n      checkStrictModeFunctionName(node);\n      if (inStrictMode) {\n        checkStrictModeFunctionDeclaration(node);\n        bindBlockScopedDeclaration(node, 16, 110991);\n      } else {\n        declareSymbolAndAddToSymbolTable(node, 16, 110991);\n      }\n    }\n    function bindFunctionExpression(node) {\n      if (!file.isDeclarationFile && !(node.flags & 16777216)) {\n        if (isAsyncFunction(node)) {\n          emitFlags |= 2048;\n        }\n      }\n      if (currentFlow) {\n        node.flowNode = currentFlow;\n      }\n      checkStrictModeFunctionName(node);\n      const bindingName = node.name ? node.name.escapedText : \"__function\";\n      return bindAnonymousDeclaration(node, 16, bindingName);\n    }\n    function bindPropertyOrMethodOrAccessor(node, symbolFlags, symbolExcludes) {\n      if (!file.isDeclarationFile && !(node.flags & 16777216) && isAsyncFunction(node)) {\n        emitFlags |= 2048;\n      }\n      if (currentFlow && isObjectLiteralOrClassExpressionMethodOrAccessor(node)) {\n        node.flowNode = currentFlow;\n      }\n      return hasDynamicName(node) ? bindAnonymousDeclaration(node, symbolFlags, \"__computed\") : declareSymbolAndAddToSymbolTable(node, symbolFlags, symbolExcludes);\n    }\n    function getInferTypeContainer(node) {\n      const extendsType = findAncestor(node, (n) => n.parent && isConditionalTypeNode(n.parent) && n.parent.extendsType === n);\n      return extendsType && extendsType.parent;\n    }\n    function bindTypeParameter(node) {\n      var _a2, _b;\n      if (isJSDocTemplateTag(node.parent)) {\n        const container2 = getEffectiveContainerForJSDocTemplateTag(node.parent);\n        if (container2) {\n          Debug.assertNode(container2, canHaveLocals);\n          (_a2 = container2.locals) != null ? _a2 : container2.locals = createSymbolTable();\n          declareSymbol(container2.locals, void 0, node, 262144, 526824);\n        } else {\n          declareSymbolAndAddToSymbolTable(node, 262144, 526824);\n        }\n      } else if (node.parent.kind === 192) {\n        const container2 = getInferTypeContainer(node.parent);\n        if (container2) {\n          Debug.assertNode(container2, canHaveLocals);\n          (_b = container2.locals) != null ? _b : container2.locals = createSymbolTable();\n          declareSymbol(container2.locals, void 0, node, 262144, 526824);\n        } else {\n          bindAnonymousDeclaration(node, 262144, getDeclarationName(node));\n        }\n      } else {\n        declareSymbolAndAddToSymbolTable(node, 262144, 526824);\n      }\n    }\n    function shouldReportErrorOnModuleDeclaration(node) {\n      const instanceState = getModuleInstanceState(node);\n      return instanceState === 1 || instanceState === 2 && shouldPreserveConstEnums(options);\n    }\n    function checkUnreachable(node) {\n      if (!(currentFlow.flags & 1)) {\n        return false;\n      }\n      if (currentFlow === unreachableFlow) {\n        const reportError = isStatementButNotDeclaration(node) && node.kind !== 239 || node.kind === 260 || node.kind === 264 && shouldReportErrorOnModuleDeclaration(node);\n        if (reportError) {\n          currentFlow = reportedUnreachableFlow;\n          if (!options.allowUnreachableCode) {\n            const isError = unreachableCodeIsError(options) && !(node.flags & 16777216) && (!isVariableStatement(node) || !!(getCombinedNodeFlags(node.declarationList) & 3) || node.declarationList.declarations.some((d) => !!d.initializer));\n            eachUnreachableRange(node, (start, end) => errorOrSuggestionOnRange(isError, start, end, Diagnostics.Unreachable_code_detected));\n          }\n        }\n      }\n      return true;\n    }\n  }\n  function eachUnreachableRange(node, cb) {\n    if (isStatement(node) && isExecutableStatement(node) && isBlock(node.parent)) {\n      const { statements } = node.parent;\n      const slice = sliceAfter(statements, node);\n      getRangesWhere(slice, isExecutableStatement, (start, afterEnd) => cb(slice[start], slice[afterEnd - 1]));\n    } else {\n      cb(node, node);\n    }\n  }\n  function isExecutableStatement(s) {\n    return !isFunctionDeclaration(s) && !isPurelyTypeDeclaration(s) && !isEnumDeclaration(s) && !(isVariableStatement(s) && !(getCombinedNodeFlags(s) & (1 | 2)) && s.declarationList.declarations.some((d) => !d.initializer));\n  }\n  function isPurelyTypeDeclaration(s) {\n    switch (s.kind) {\n      case 261:\n      case 262:\n        return true;\n      case 264:\n        return getModuleInstanceState(s) !== 1;\n      case 263:\n        return hasSyntacticModifier(s, 2048);\n      default:\n        return false;\n    }\n  }\n  function isExportsOrModuleExportsOrAlias(sourceFile, node) {\n    let i = 0;\n    const q = createQueue();\n    q.enqueue(node);\n    while (!q.isEmpty() && i < 100) {\n      i++;\n      node = q.dequeue();\n      if (isExportsIdentifier(node) || isModuleExportsAccessExpression(node)) {\n        return true;\n      } else if (isIdentifier(node)) {\n        const symbol = lookupSymbolForName(sourceFile, node.escapedText);\n        if (!!symbol && !!symbol.valueDeclaration && isVariableDeclaration(symbol.valueDeclaration) && !!symbol.valueDeclaration.initializer) {\n          const init = symbol.valueDeclaration.initializer;\n          q.enqueue(init);\n          if (isAssignmentExpression(init, true)) {\n            q.enqueue(init.left);\n            q.enqueue(init.right);\n          }\n        }\n      }\n    }\n    return false;\n  }\n  function getContainerFlags(node) {\n    switch (node.kind) {\n      case 228:\n      case 260:\n      case 263:\n      case 207:\n      case 184:\n      case 325:\n      case 289:\n        return 1;\n      case 261:\n        return 1 | 64;\n      case 264:\n      case 262:\n      case 197:\n      case 178:\n        return 1 | 32;\n      case 308:\n        return 1 | 4 | 32;\n      case 174:\n      case 175:\n      case 171:\n        if (isObjectLiteralOrClassExpressionMethodOrAccessor(node)) {\n          return 1 | 4 | 32 | 8 | 128;\n        }\n      case 173:\n      case 259:\n      case 170:\n      case 176:\n      case 326:\n      case 320:\n      case 181:\n      case 177:\n      case 182:\n      case 172:\n        return 1 | 4 | 32 | 8;\n      case 215:\n      case 216:\n        return 1 | 4 | 32 | 8 | 16;\n      case 265:\n        return 4;\n      case 169:\n        return node.initializer ? 4 : 0;\n      case 295:\n      case 245:\n      case 246:\n      case 247:\n      case 266:\n        return 2 | 32;\n      case 238:\n        return isFunctionLike(node.parent) || isClassStaticBlockDeclaration(node.parent) ? 0 : 2 | 32;\n    }\n    return 0;\n  }\n  function lookupSymbolForName(container, name) {\n    var _a2, _b, _c, _d, _e;\n    const local = (_b = (_a2 = tryCast(container, canHaveLocals)) == null ? void 0 : _a2.locals) == null ? void 0 : _b.get(name);\n    if (local) {\n      return (_c = local.exportSymbol) != null ? _c : local;\n    }\n    if (isSourceFile(container) && container.jsGlobalAugmentations && container.jsGlobalAugmentations.has(name)) {\n      return container.jsGlobalAugmentations.get(name);\n    }\n    if (canHaveSymbol(container)) {\n      return (_e = (_d = container.symbol) == null ? void 0 : _d.exports) == null ? void 0 : _e.get(name);\n    }\n  }\n  var ModuleInstanceState, binder;\n  var init_binder = __esm({\n    \"src/compiler/binder.ts\"() {\n      \"use strict\";\n      init_ts2();\n      init_ts_performance();\n      ModuleInstanceState = /* @__PURE__ */ ((ModuleInstanceState2) => {\n        ModuleInstanceState2[ModuleInstanceState2[\"NonInstantiated\"] = 0] = \"NonInstantiated\";\n        ModuleInstanceState2[ModuleInstanceState2[\"Instantiated\"] = 1] = \"Instantiated\";\n        ModuleInstanceState2[ModuleInstanceState2[\"ConstEnumOnly\"] = 2] = \"ConstEnumOnly\";\n        return ModuleInstanceState2;\n      })(ModuleInstanceState || {});\n      binder = createBinder();\n    }\n  });\n  function createGetSymbolWalker(getRestTypeOfSignature, getTypePredicateOfSignature, getReturnTypeOfSignature, getBaseTypes, resolveStructuredTypeMembers, getTypeOfSymbol, getResolvedSymbol, getConstraintOfTypeParameter, getFirstIdentifier2, getTypeArguments) {\n    return getSymbolWalker;\n    function getSymbolWalker(accept = () => true) {\n      const visitedTypes = [];\n      const visitedSymbols = [];\n      return {\n        walkType: (type) => {\n          try {\n            visitType(type);\n            return { visitedTypes: getOwnValues(visitedTypes), visitedSymbols: getOwnValues(visitedSymbols) };\n          } finally {\n            clear(visitedTypes);\n            clear(visitedSymbols);\n          }\n        },\n        walkSymbol: (symbol) => {\n          try {\n            visitSymbol(symbol);\n            return { visitedTypes: getOwnValues(visitedTypes), visitedSymbols: getOwnValues(visitedSymbols) };\n          } finally {\n            clear(visitedTypes);\n            clear(visitedSymbols);\n          }\n        }\n      };\n      function visitType(type) {\n        if (!type) {\n          return;\n        }\n        if (visitedTypes[type.id]) {\n          return;\n        }\n        visitedTypes[type.id] = type;\n        const shouldBail = visitSymbol(type.symbol);\n        if (shouldBail)\n          return;\n        if (type.flags & 524288) {\n          const objectType = type;\n          const objectFlags = objectType.objectFlags;\n          if (objectFlags & 4) {\n            visitTypeReference(type);\n          }\n          if (objectFlags & 32) {\n            visitMappedType(type);\n          }\n          if (objectFlags & (1 | 2)) {\n            visitInterfaceType(type);\n          }\n          if (objectFlags & (8 | 16)) {\n            visitObjectType(objectType);\n          }\n        }\n        if (type.flags & 262144) {\n          visitTypeParameter(type);\n        }\n        if (type.flags & 3145728) {\n          visitUnionOrIntersectionType(type);\n        }\n        if (type.flags & 4194304) {\n          visitIndexType(type);\n        }\n        if (type.flags & 8388608) {\n          visitIndexedAccessType(type);\n        }\n      }\n      function visitTypeReference(type) {\n        visitType(type.target);\n        forEach(getTypeArguments(type), visitType);\n      }\n      function visitTypeParameter(type) {\n        visitType(getConstraintOfTypeParameter(type));\n      }\n      function visitUnionOrIntersectionType(type) {\n        forEach(type.types, visitType);\n      }\n      function visitIndexType(type) {\n        visitType(type.type);\n      }\n      function visitIndexedAccessType(type) {\n        visitType(type.objectType);\n        visitType(type.indexType);\n        visitType(type.constraint);\n      }\n      function visitMappedType(type) {\n        visitType(type.typeParameter);\n        visitType(type.constraintType);\n        visitType(type.templateType);\n        visitType(type.modifiersType);\n      }\n      function visitSignature(signature) {\n        const typePredicate = getTypePredicateOfSignature(signature);\n        if (typePredicate) {\n          visitType(typePredicate.type);\n        }\n        forEach(signature.typeParameters, visitType);\n        for (const parameter of signature.parameters) {\n          visitSymbol(parameter);\n        }\n        visitType(getRestTypeOfSignature(signature));\n        visitType(getReturnTypeOfSignature(signature));\n      }\n      function visitInterfaceType(interfaceT) {\n        visitObjectType(interfaceT);\n        forEach(interfaceT.typeParameters, visitType);\n        forEach(getBaseTypes(interfaceT), visitType);\n        visitType(interfaceT.thisType);\n      }\n      function visitObjectType(type) {\n        const resolved = resolveStructuredTypeMembers(type);\n        for (const info of resolved.indexInfos) {\n          visitType(info.keyType);\n          visitType(info.type);\n        }\n        for (const signature of resolved.callSignatures) {\n          visitSignature(signature);\n        }\n        for (const signature of resolved.constructSignatures) {\n          visitSignature(signature);\n        }\n        for (const p of resolved.properties) {\n          visitSymbol(p);\n        }\n      }\n      function visitSymbol(symbol) {\n        if (!symbol) {\n          return false;\n        }\n        const symbolId = getSymbolId(symbol);\n        if (visitedSymbols[symbolId]) {\n          return false;\n        }\n        visitedSymbols[symbolId] = symbol;\n        if (!accept(symbol)) {\n          return true;\n        }\n        const t = getTypeOfSymbol(symbol);\n        visitType(t);\n        if (symbol.exports) {\n          symbol.exports.forEach(visitSymbol);\n        }\n        forEach(symbol.declarations, (d) => {\n          if (d.type && d.type.kind === 183) {\n            const query = d.type;\n            const entity = getResolvedSymbol(getFirstIdentifier2(query.exprName));\n            visitSymbol(entity);\n          }\n        });\n        return false;\n      }\n    }\n  }\n  var init_symbolWalker = __esm({\n    \"src/compiler/symbolWalker.ts\"() {\n      \"use strict\";\n      init_ts2();\n    }\n  });\n  function getPreferences({ importModuleSpecifierPreference, importModuleSpecifierEnding }, compilerOptions, importingSourceFile, oldImportSpecifier) {\n    const preferredEnding = getPreferredEnding();\n    return {\n      relativePreference: oldImportSpecifier !== void 0 ? isExternalModuleNameRelative(oldImportSpecifier) ? 0 : 1 : importModuleSpecifierPreference === \"relative\" ? 0 : importModuleSpecifierPreference === \"non-relative\" ? 1 : importModuleSpecifierPreference === \"project-relative\" ? 3 : 2,\n      getAllowedEndingsInPreferredOrder: (syntaxImpliedNodeFormat) => {\n        if ((syntaxImpliedNodeFormat != null ? syntaxImpliedNodeFormat : importingSourceFile.impliedNodeFormat) === 99) {\n          if (shouldAllowImportingTsExtension(compilerOptions, importingSourceFile.fileName)) {\n            return [3, 2];\n          }\n          return [2];\n        }\n        if (getEmitModuleResolutionKind(compilerOptions) === 1) {\n          return [1, 2];\n        }\n        switch (preferredEnding) {\n          case 2:\n            return [2, 0, 1];\n          case 3:\n            return [3, 0, 2, 1];\n          case 1:\n            return [1, 0, 2];\n          case 0:\n            return [0, 1, 2];\n          default:\n            Debug.assertNever(preferredEnding);\n        }\n      }\n    };\n    function getPreferredEnding() {\n      if (oldImportSpecifier !== void 0) {\n        if (hasJSFileExtension(oldImportSpecifier))\n          return 2;\n        if (endsWith(oldImportSpecifier, \"/index\"))\n          return 1;\n      }\n      return getModuleSpecifierEndingPreference(importModuleSpecifierEnding, importingSourceFile.impliedNodeFormat, compilerOptions, importingSourceFile);\n    }\n  }\n  function updateModuleSpecifier(compilerOptions, importingSourceFile, importingSourceFileName, toFileName2, host, oldImportSpecifier, options = {}) {\n    const res = getModuleSpecifierWorker(compilerOptions, importingSourceFile, importingSourceFileName, toFileName2, host, getPreferences({}, compilerOptions, importingSourceFile, oldImportSpecifier), {}, options);\n    if (res === oldImportSpecifier)\n      return void 0;\n    return res;\n  }\n  function getModuleSpecifier(compilerOptions, importingSourceFile, importingSourceFileName, toFileName2, host, options = {}) {\n    return getModuleSpecifierWorker(compilerOptions, importingSourceFile, importingSourceFileName, toFileName2, host, getPreferences({}, compilerOptions, importingSourceFile), {}, options);\n  }\n  function getNodeModulesPackageName(compilerOptions, importingSourceFile, nodeModulesFileName, host, preferences, options = {}) {\n    const info = getInfo(importingSourceFile.path, host);\n    const modulePaths = getAllModulePaths(importingSourceFile.path, nodeModulesFileName, host, preferences, options);\n    return firstDefined(modulePaths, (modulePath) => tryGetModuleNameAsNodeModule(modulePath, info, importingSourceFile, host, compilerOptions, preferences, true, options.overrideImportMode));\n  }\n  function getModuleSpecifierWorker(compilerOptions, importingSourceFile, importingSourceFileName, toFileName2, host, preferences, userPreferences, options = {}) {\n    const info = getInfo(importingSourceFileName, host);\n    const modulePaths = getAllModulePaths(importingSourceFileName, toFileName2, host, userPreferences, options);\n    return firstDefined(modulePaths, (modulePath) => tryGetModuleNameAsNodeModule(modulePath, info, importingSourceFile, host, compilerOptions, userPreferences, void 0, options.overrideImportMode)) || getLocalModuleSpecifier(toFileName2, info, compilerOptions, host, options.overrideImportMode || importingSourceFile.impliedNodeFormat, preferences);\n  }\n  function tryGetModuleSpecifiersFromCache(moduleSymbol, importingSourceFile, host, userPreferences, options = {}) {\n    return tryGetModuleSpecifiersFromCacheWorker(moduleSymbol, importingSourceFile, host, userPreferences, options)[0];\n  }\n  function tryGetModuleSpecifiersFromCacheWorker(moduleSymbol, importingSourceFile, host, userPreferences, options = {}) {\n    var _a2;\n    const moduleSourceFile = getSourceFileOfModule(moduleSymbol);\n    if (!moduleSourceFile) {\n      return emptyArray;\n    }\n    const cache = (_a2 = host.getModuleSpecifierCache) == null ? void 0 : _a2.call(host);\n    const cached = cache == null ? void 0 : cache.get(importingSourceFile.path, moduleSourceFile.path, userPreferences, options);\n    return [cached == null ? void 0 : cached.moduleSpecifiers, moduleSourceFile, cached == null ? void 0 : cached.modulePaths, cache];\n  }\n  function getModuleSpecifiers(moduleSymbol, checker, compilerOptions, importingSourceFile, host, userPreferences, options = {}) {\n    return getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions, importingSourceFile, host, userPreferences, options).moduleSpecifiers;\n  }\n  function getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions, importingSourceFile, host, userPreferences, options = {}) {\n    let computedWithoutCache = false;\n    const ambient = tryGetModuleNameFromAmbientModule(moduleSymbol, checker);\n    if (ambient)\n      return { moduleSpecifiers: [ambient], computedWithoutCache };\n    let [specifiers, moduleSourceFile, modulePaths, cache] = tryGetModuleSpecifiersFromCacheWorker(moduleSymbol, importingSourceFile, host, userPreferences, options);\n    if (specifiers)\n      return { moduleSpecifiers: specifiers, computedWithoutCache };\n    if (!moduleSourceFile)\n      return { moduleSpecifiers: emptyArray, computedWithoutCache };\n    computedWithoutCache = true;\n    modulePaths || (modulePaths = getAllModulePathsWorker(importingSourceFile.path, moduleSourceFile.originalFileName, host));\n    const result = computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFile, host, userPreferences, options);\n    cache == null ? void 0 : cache.set(importingSourceFile.path, moduleSourceFile.path, userPreferences, options, modulePaths, result);\n    return { moduleSpecifiers: result, computedWithoutCache };\n  }\n  function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFile, host, userPreferences, options = {}) {\n    const info = getInfo(importingSourceFile.path, host);\n    const preferences = getPreferences(userPreferences, compilerOptions, importingSourceFile);\n    const existingSpecifier = forEach(modulePaths, (modulePath) => forEach(host.getFileIncludeReasons().get(toPath(modulePath.path, host.getCurrentDirectory(), info.getCanonicalFileName)), (reason) => {\n      if (reason.kind !== 3 || reason.file !== importingSourceFile.path)\n        return void 0;\n      if (importingSourceFile.impliedNodeFormat && importingSourceFile.impliedNodeFormat !== getModeForResolutionAtIndex(importingSourceFile, reason.index))\n        return void 0;\n      const specifier = getModuleNameStringLiteralAt(importingSourceFile, reason.index).text;\n      return preferences.relativePreference !== 1 || !pathIsRelative(specifier) ? specifier : void 0;\n    }));\n    if (existingSpecifier) {\n      const moduleSpecifiers = [existingSpecifier];\n      return moduleSpecifiers;\n    }\n    const importedFileIsInNodeModules = some(modulePaths, (p) => p.isInNodeModules);\n    let nodeModulesSpecifiers;\n    let pathsSpecifiers;\n    let redirectPathsSpecifiers;\n    let relativeSpecifiers;\n    for (const modulePath of modulePaths) {\n      const specifier = modulePath.isInNodeModules ? tryGetModuleNameAsNodeModule(modulePath, info, importingSourceFile, host, compilerOptions, userPreferences, void 0, options.overrideImportMode) : void 0;\n      nodeModulesSpecifiers = append(nodeModulesSpecifiers, specifier);\n      if (specifier && modulePath.isRedirect) {\n        return nodeModulesSpecifiers;\n      }\n      if (!specifier) {\n        const local = getLocalModuleSpecifier(modulePath.path, info, compilerOptions, host, options.overrideImportMode || importingSourceFile.impliedNodeFormat, preferences, modulePath.isRedirect);\n        if (!local) {\n          continue;\n        }\n        if (modulePath.isRedirect) {\n          redirectPathsSpecifiers = append(redirectPathsSpecifiers, local);\n        } else if (pathIsBareSpecifier(local)) {\n          pathsSpecifiers = append(pathsSpecifiers, local);\n        } else if (!importedFileIsInNodeModules || modulePath.isInNodeModules) {\n          relativeSpecifiers = append(relativeSpecifiers, local);\n        }\n      }\n    }\n    return (pathsSpecifiers == null ? void 0 : pathsSpecifiers.length) ? pathsSpecifiers : (redirectPathsSpecifiers == null ? void 0 : redirectPathsSpecifiers.length) ? redirectPathsSpecifiers : (nodeModulesSpecifiers == null ? void 0 : nodeModulesSpecifiers.length) ? nodeModulesSpecifiers : Debug.checkDefined(relativeSpecifiers);\n  }\n  function getInfo(importingSourceFileName, host) {\n    const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames ? host.useCaseSensitiveFileNames() : true);\n    const sourceDirectory = getDirectoryPath(importingSourceFileName);\n    return { getCanonicalFileName, importingSourceFileName, sourceDirectory };\n  }\n  function getLocalModuleSpecifier(moduleFileName, info, compilerOptions, host, importMode, { getAllowedEndingsInPreferredOrder: getAllowedEndingsInPrefererredOrder, relativePreference }, pathsOnly) {\n    const { baseUrl, paths, rootDirs } = compilerOptions;\n    if (pathsOnly && !paths) {\n      return void 0;\n    }\n    const { sourceDirectory, getCanonicalFileName } = info;\n    const allowedEndings = getAllowedEndingsInPrefererredOrder(importMode);\n    const relativePath = rootDirs && tryGetModuleNameFromRootDirs(rootDirs, moduleFileName, sourceDirectory, getCanonicalFileName, allowedEndings, compilerOptions) || processEnding(ensurePathIsNonModuleName(getRelativePathFromDirectory(sourceDirectory, moduleFileName, getCanonicalFileName)), allowedEndings, compilerOptions);\n    if (!baseUrl && !paths || relativePreference === 0) {\n      return pathsOnly ? void 0 : relativePath;\n    }\n    const baseDirectory = getNormalizedAbsolutePath(getPathsBasePath(compilerOptions, host) || baseUrl, host.getCurrentDirectory());\n    const relativeToBaseUrl = getRelativePathIfInDirectory(moduleFileName, baseDirectory, getCanonicalFileName);\n    if (!relativeToBaseUrl) {\n      return pathsOnly ? void 0 : relativePath;\n    }\n    const fromPaths = paths && tryGetModuleNameFromPaths(relativeToBaseUrl, paths, allowedEndings, host, compilerOptions);\n    if (pathsOnly) {\n      return fromPaths;\n    }\n    const maybeNonRelative = fromPaths === void 0 && baseUrl !== void 0 ? processEnding(relativeToBaseUrl, allowedEndings, compilerOptions) : fromPaths;\n    if (!maybeNonRelative) {\n      return relativePath;\n    }\n    if (relativePreference === 1 && !pathIsRelative(maybeNonRelative)) {\n      return maybeNonRelative;\n    }\n    if (relativePreference === 3 && !pathIsRelative(maybeNonRelative)) {\n      const projectDirectory = compilerOptions.configFilePath ? toPath(getDirectoryPath(compilerOptions.configFilePath), host.getCurrentDirectory(), info.getCanonicalFileName) : info.getCanonicalFileName(host.getCurrentDirectory());\n      const modulePath = toPath(moduleFileName, projectDirectory, getCanonicalFileName);\n      const sourceIsInternal = startsWith(sourceDirectory, projectDirectory);\n      const targetIsInternal = startsWith(modulePath, projectDirectory);\n      if (sourceIsInternal && !targetIsInternal || !sourceIsInternal && targetIsInternal) {\n        return maybeNonRelative;\n      }\n      const nearestTargetPackageJson = getNearestAncestorDirectoryWithPackageJson(host, getDirectoryPath(modulePath));\n      const nearestSourcePackageJson = getNearestAncestorDirectoryWithPackageJson(host, sourceDirectory);\n      if (nearestSourcePackageJson !== nearestTargetPackageJson) {\n        return maybeNonRelative;\n      }\n      return relativePath;\n    }\n    return isPathRelativeToParent(maybeNonRelative) || countPathComponents(relativePath) < countPathComponents(maybeNonRelative) ? relativePath : maybeNonRelative;\n  }\n  function countPathComponents(path) {\n    let count = 0;\n    for (let i = startsWith(path, \"./\") ? 2 : 0; i < path.length; i++) {\n      if (path.charCodeAt(i) === 47)\n        count++;\n    }\n    return count;\n  }\n  function comparePathsByRedirectAndNumberOfDirectorySeparators(a, b) {\n    return compareBooleans(b.isRedirect, a.isRedirect) || compareNumberOfDirectorySeparators(a.path, b.path);\n  }\n  function getNearestAncestorDirectoryWithPackageJson(host, fileName) {\n    if (host.getNearestAncestorDirectoryWithPackageJson) {\n      return host.getNearestAncestorDirectoryWithPackageJson(fileName);\n    }\n    return !!forEachAncestorDirectory(fileName, (directory) => {\n      return host.fileExists(combinePaths(directory, \"package.json\")) ? true : void 0;\n    });\n  }\n  function forEachFileNameOfModule(importingFileName, importedFileName, host, preferSymlinks, cb) {\n    var _a2;\n    const getCanonicalFileName = hostGetCanonicalFileName(host);\n    const cwd = host.getCurrentDirectory();\n    const referenceRedirect = host.isSourceOfProjectReferenceRedirect(importedFileName) ? host.getProjectReferenceRedirect(importedFileName) : void 0;\n    const importedPath = toPath(importedFileName, cwd, getCanonicalFileName);\n    const redirects = host.redirectTargetsMap.get(importedPath) || emptyArray;\n    const importedFileNames = [...referenceRedirect ? [referenceRedirect] : emptyArray, importedFileName, ...redirects];\n    const targets = importedFileNames.map((f) => getNormalizedAbsolutePath(f, cwd));\n    let shouldFilterIgnoredPaths = !every(targets, containsIgnoredPath);\n    if (!preferSymlinks) {\n      const result2 = forEach(targets, (p) => !(shouldFilterIgnoredPaths && containsIgnoredPath(p)) && cb(p, referenceRedirect === p));\n      if (result2)\n        return result2;\n    }\n    const symlinkedDirectories = (_a2 = host.getSymlinkCache) == null ? void 0 : _a2.call(host).getSymlinkedDirectoriesByRealpath();\n    const fullImportedFileName = getNormalizedAbsolutePath(importedFileName, cwd);\n    const result = symlinkedDirectories && forEachAncestorDirectory(getDirectoryPath(fullImportedFileName), (realPathDirectory) => {\n      const symlinkDirectories = symlinkedDirectories.get(ensureTrailingDirectorySeparator(toPath(realPathDirectory, cwd, getCanonicalFileName)));\n      if (!symlinkDirectories)\n        return void 0;\n      if (startsWithDirectory(importingFileName, realPathDirectory, getCanonicalFileName)) {\n        return false;\n      }\n      return forEach(targets, (target) => {\n        if (!startsWithDirectory(target, realPathDirectory, getCanonicalFileName)) {\n          return;\n        }\n        const relative = getRelativePathFromDirectory(realPathDirectory, target, getCanonicalFileName);\n        for (const symlinkDirectory of symlinkDirectories) {\n          const option = resolvePath(symlinkDirectory, relative);\n          const result2 = cb(option, target === referenceRedirect);\n          shouldFilterIgnoredPaths = true;\n          if (result2)\n            return result2;\n        }\n      });\n    });\n    return result || (preferSymlinks ? forEach(targets, (p) => shouldFilterIgnoredPaths && containsIgnoredPath(p) ? void 0 : cb(p, p === referenceRedirect)) : void 0);\n  }\n  function getAllModulePaths(importingFilePath, importedFileName, host, preferences, options = {}) {\n    var _a2;\n    const importedFilePath = toPath(importedFileName, host.getCurrentDirectory(), hostGetCanonicalFileName(host));\n    const cache = (_a2 = host.getModuleSpecifierCache) == null ? void 0 : _a2.call(host);\n    if (cache) {\n      const cached = cache.get(importingFilePath, importedFilePath, preferences, options);\n      if (cached == null ? void 0 : cached.modulePaths)\n        return cached.modulePaths;\n    }\n    const modulePaths = getAllModulePathsWorker(importingFilePath, importedFileName, host);\n    if (cache) {\n      cache.setModulePaths(importingFilePath, importedFilePath, preferences, options, modulePaths);\n    }\n    return modulePaths;\n  }\n  function getAllModulePathsWorker(importingFileName, importedFileName, host) {\n    const getCanonicalFileName = hostGetCanonicalFileName(host);\n    const allFileNames = /* @__PURE__ */ new Map();\n    let importedFileFromNodeModules = false;\n    forEachFileNameOfModule(importingFileName, importedFileName, host, true, (path, isRedirect) => {\n      const isInNodeModules = pathContainsNodeModules(path);\n      allFileNames.set(path, { path: getCanonicalFileName(path), isRedirect, isInNodeModules });\n      importedFileFromNodeModules = importedFileFromNodeModules || isInNodeModules;\n    });\n    const sortedPaths = [];\n    for (let directory = getDirectoryPath(importingFileName); allFileNames.size !== 0; ) {\n      const directoryStart = ensureTrailingDirectorySeparator(directory);\n      let pathsInDirectory;\n      allFileNames.forEach(({ path, isRedirect, isInNodeModules }, fileName) => {\n        if (startsWith(path, directoryStart)) {\n          (pathsInDirectory || (pathsInDirectory = [])).push({ path: fileName, isRedirect, isInNodeModules });\n          allFileNames.delete(fileName);\n        }\n      });\n      if (pathsInDirectory) {\n        if (pathsInDirectory.length > 1) {\n          pathsInDirectory.sort(comparePathsByRedirectAndNumberOfDirectorySeparators);\n        }\n        sortedPaths.push(...pathsInDirectory);\n      }\n      const newDirectory = getDirectoryPath(directory);\n      if (newDirectory === directory)\n        break;\n      directory = newDirectory;\n    }\n    if (allFileNames.size) {\n      const remainingPaths = arrayFrom(allFileNames.values());\n      if (remainingPaths.length > 1)\n        remainingPaths.sort(comparePathsByRedirectAndNumberOfDirectorySeparators);\n      sortedPaths.push(...remainingPaths);\n    }\n    return sortedPaths;\n  }\n  function tryGetModuleNameFromAmbientModule(moduleSymbol, checker) {\n    var _a2;\n    const decl = (_a2 = moduleSymbol.declarations) == null ? void 0 : _a2.find((d) => isNonGlobalAmbientModule(d) && (!isExternalModuleAugmentation(d) || !isExternalModuleNameRelative(getTextOfIdentifierOrLiteral(d.name))));\n    if (decl) {\n      return decl.name.text;\n    }\n    const ambientModuleDeclareCandidates = mapDefined(moduleSymbol.declarations, (d) => {\n      var _a3, _b, _c, _d;\n      if (!isModuleDeclaration(d))\n        return;\n      const topNamespace = getTopNamespace(d);\n      if (!(((_a3 = topNamespace == null ? void 0 : topNamespace.parent) == null ? void 0 : _a3.parent) && isModuleBlock(topNamespace.parent) && isAmbientModule(topNamespace.parent.parent) && isSourceFile(topNamespace.parent.parent.parent)))\n        return;\n      const exportAssignment = (_d = (_c = (_b = topNamespace.parent.parent.symbol.exports) == null ? void 0 : _b.get(\"export=\")) == null ? void 0 : _c.valueDeclaration) == null ? void 0 : _d.expression;\n      if (!exportAssignment)\n        return;\n      const exportSymbol = checker.getSymbolAtLocation(exportAssignment);\n      if (!exportSymbol)\n        return;\n      const originalExportSymbol = (exportSymbol == null ? void 0 : exportSymbol.flags) & 2097152 ? checker.getAliasedSymbol(exportSymbol) : exportSymbol;\n      if (originalExportSymbol === d.symbol)\n        return topNamespace.parent.parent;\n      function getTopNamespace(namespaceDeclaration) {\n        while (namespaceDeclaration.flags & 4) {\n          namespaceDeclaration = namespaceDeclaration.parent;\n        }\n        return namespaceDeclaration;\n      }\n    });\n    const ambientModuleDeclare = ambientModuleDeclareCandidates[0];\n    if (ambientModuleDeclare) {\n      return ambientModuleDeclare.name.text;\n    }\n  }\n  function tryGetModuleNameFromPaths(relativeToBaseUrl, paths, allowedEndings, host, compilerOptions) {\n    for (const key in paths) {\n      for (const patternText2 of paths[key]) {\n        const pattern = normalizePath(patternText2);\n        const indexOfStar = pattern.indexOf(\"*\");\n        const candidates = allowedEndings.map((ending) => ({\n          ending,\n          value: processEnding(relativeToBaseUrl, [ending], compilerOptions)\n        }));\n        if (tryGetExtensionFromPath2(pattern)) {\n          candidates.push({ ending: void 0, value: relativeToBaseUrl });\n        }\n        if (indexOfStar !== -1) {\n          const prefix = pattern.substring(0, indexOfStar);\n          const suffix = pattern.substring(indexOfStar + 1);\n          for (const { ending, value } of candidates) {\n            if (value.length >= prefix.length + suffix.length && startsWith(value, prefix) && endsWith(value, suffix) && validateEnding({ ending, value })) {\n              const matchedStar = value.substring(prefix.length, value.length - suffix.length);\n              return key.replace(\"*\", matchedStar);\n            }\n          }\n        } else if (some(candidates, (c) => c.ending !== 0 && pattern === c.value) || some(candidates, (c) => c.ending === 0 && pattern === c.value && validateEnding(c))) {\n          return key;\n        }\n      }\n    }\n    function validateEnding({ ending, value }) {\n      return ending !== 0 || value === processEnding(relativeToBaseUrl, [ending], compilerOptions, host);\n    }\n  }\n  function tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, packageName, exports, conditions, mode = 0) {\n    if (typeof exports === \"string\") {\n      const pathOrPattern = getNormalizedAbsolutePath(combinePaths(packageDirectory, exports), void 0);\n      const extensionSwappedTarget = hasTSFileExtension(targetFilePath) ? removeFileExtension(targetFilePath) + tryGetJSExtensionForFile(targetFilePath, options) : void 0;\n      switch (mode) {\n        case 0:\n          if (comparePaths(targetFilePath, pathOrPattern) === 0 || extensionSwappedTarget && comparePaths(extensionSwappedTarget, pathOrPattern) === 0) {\n            return { moduleFileToTry: packageName };\n          }\n          break;\n        case 1:\n          if (containsPath(pathOrPattern, targetFilePath)) {\n            const fragment = getRelativePathFromDirectory(pathOrPattern, targetFilePath, false);\n            return { moduleFileToTry: getNormalizedAbsolutePath(combinePaths(combinePaths(packageName, exports), fragment), void 0) };\n          }\n          break;\n        case 2:\n          const starPos = pathOrPattern.indexOf(\"*\");\n          const leadingSlice = pathOrPattern.slice(0, starPos);\n          const trailingSlice = pathOrPattern.slice(starPos + 1);\n          if (startsWith(targetFilePath, leadingSlice) && endsWith(targetFilePath, trailingSlice)) {\n            const starReplacement = targetFilePath.slice(leadingSlice.length, targetFilePath.length - trailingSlice.length);\n            return { moduleFileToTry: packageName.replace(\"*\", starReplacement) };\n          }\n          if (extensionSwappedTarget && startsWith(extensionSwappedTarget, leadingSlice) && endsWith(extensionSwappedTarget, trailingSlice)) {\n            const starReplacement = extensionSwappedTarget.slice(leadingSlice.length, extensionSwappedTarget.length - trailingSlice.length);\n            return { moduleFileToTry: packageName.replace(\"*\", starReplacement) };\n          }\n          break;\n      }\n    } else if (Array.isArray(exports)) {\n      return forEach(exports, (e) => tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, packageName, e, conditions));\n    } else if (typeof exports === \"object\" && exports !== null) {\n      if (allKeysStartWithDot(exports)) {\n        return forEach(getOwnKeys(exports), (k) => {\n          const subPackageName = getNormalizedAbsolutePath(combinePaths(packageName, k), void 0);\n          const mode2 = endsWith(k, \"/\") ? 1 : stringContains(k, \"*\") ? 2 : 0;\n          return tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, subPackageName, exports[k], conditions, mode2);\n        });\n      } else {\n        for (const key of getOwnKeys(exports)) {\n          if (key === \"default\" || conditions.indexOf(key) >= 0 || isApplicableVersionedTypesKey(conditions, key)) {\n            const subTarget = exports[key];\n            const result = tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, packageName, subTarget, conditions);\n            if (result) {\n              return result;\n            }\n          }\n        }\n      }\n    }\n    return void 0;\n  }\n  function tryGetModuleNameFromRootDirs(rootDirs, moduleFileName, sourceDirectory, getCanonicalFileName, allowedEndings, compilerOptions) {\n    const normalizedTargetPaths = getPathsRelativeToRootDirs(moduleFileName, rootDirs, getCanonicalFileName);\n    if (normalizedTargetPaths === void 0) {\n      return void 0;\n    }\n    const normalizedSourcePaths = getPathsRelativeToRootDirs(sourceDirectory, rootDirs, getCanonicalFileName);\n    const relativePaths = flatMap(normalizedSourcePaths, (sourcePath) => {\n      return map(normalizedTargetPaths, (targetPath) => ensurePathIsNonModuleName(getRelativePathFromDirectory(sourcePath, targetPath, getCanonicalFileName)));\n    });\n    const shortest = min(relativePaths, compareNumberOfDirectorySeparators);\n    if (!shortest) {\n      return void 0;\n    }\n    return processEnding(shortest, allowedEndings, compilerOptions);\n  }\n  function tryGetModuleNameAsNodeModule({ path, isRedirect }, { getCanonicalFileName, sourceDirectory }, importingSourceFile, host, options, userPreferences, packageNameOnly, overrideMode) {\n    if (!host.fileExists || !host.readFile) {\n      return void 0;\n    }\n    const parts = getNodeModulePathParts(path);\n    if (!parts) {\n      return void 0;\n    }\n    const preferences = getPreferences(userPreferences, options, importingSourceFile);\n    const allowedEndings = preferences.getAllowedEndingsInPreferredOrder();\n    let moduleSpecifier = path;\n    let isPackageRootPath = false;\n    if (!packageNameOnly) {\n      let packageRootIndex = parts.packageRootIndex;\n      let moduleFileName;\n      while (true) {\n        const { moduleFileToTry, packageRootPath, blockedByExports, verbatimFromExports } = tryDirectoryWithPackageJson(packageRootIndex);\n        if (getEmitModuleResolutionKind(options) !== 1) {\n          if (blockedByExports) {\n            return void 0;\n          }\n          if (verbatimFromExports) {\n            return moduleFileToTry;\n          }\n        }\n        if (packageRootPath) {\n          moduleSpecifier = packageRootPath;\n          isPackageRootPath = true;\n          break;\n        }\n        if (!moduleFileName)\n          moduleFileName = moduleFileToTry;\n        packageRootIndex = path.indexOf(directorySeparator, packageRootIndex + 1);\n        if (packageRootIndex === -1) {\n          moduleSpecifier = processEnding(moduleFileName, allowedEndings, options, host);\n          break;\n        }\n      }\n    }\n    if (isRedirect && !isPackageRootPath) {\n      return void 0;\n    }\n    const globalTypingsCacheLocation = host.getGlobalTypingsCacheLocation && host.getGlobalTypingsCacheLocation();\n    const pathToTopLevelNodeModules = getCanonicalFileName(moduleSpecifier.substring(0, parts.topLevelNodeModulesIndex));\n    if (!(startsWith(sourceDirectory, pathToTopLevelNodeModules) || globalTypingsCacheLocation && startsWith(getCanonicalFileName(globalTypingsCacheLocation), pathToTopLevelNodeModules))) {\n      return void 0;\n    }\n    const nodeModulesDirectoryName = moduleSpecifier.substring(parts.topLevelPackageNameIndex + 1);\n    const packageName = getPackageNameFromTypesPackageName(nodeModulesDirectoryName);\n    return getEmitModuleResolutionKind(options) === 1 && packageName === nodeModulesDirectoryName ? void 0 : packageName;\n    function tryDirectoryWithPackageJson(packageRootIndex) {\n      var _a2, _b;\n      const packageRootPath = path.substring(0, packageRootIndex);\n      const packageJsonPath = combinePaths(packageRootPath, \"package.json\");\n      let moduleFileToTry = path;\n      let maybeBlockedByTypesVersions = false;\n      const cachedPackageJson = (_b = (_a2 = host.getPackageJsonInfoCache) == null ? void 0 : _a2.call(host)) == null ? void 0 : _b.getPackageJsonInfo(packageJsonPath);\n      if (typeof cachedPackageJson === \"object\" || cachedPackageJson === void 0 && host.fileExists(packageJsonPath)) {\n        const packageJsonContent = (cachedPackageJson == null ? void 0 : cachedPackageJson.contents.packageJsonContent) || JSON.parse(host.readFile(packageJsonPath));\n        const importMode = overrideMode || importingSourceFile.impliedNodeFormat;\n        if (getResolvePackageJsonExports(options)) {\n          const nodeModulesDirectoryName2 = packageRootPath.substring(parts.topLevelPackageNameIndex + 1);\n          const packageName2 = getPackageNameFromTypesPackageName(nodeModulesDirectoryName2);\n          const conditions = getConditions(options, importMode === 99);\n          const fromExports = packageJsonContent.exports ? tryGetModuleNameFromExports(options, path, packageRootPath, packageName2, packageJsonContent.exports, conditions) : void 0;\n          if (fromExports) {\n            const withJsExtension = !hasTSFileExtension(fromExports.moduleFileToTry) ? fromExports : { moduleFileToTry: removeFileExtension(fromExports.moduleFileToTry) + tryGetJSExtensionForFile(fromExports.moduleFileToTry, options) };\n            return { ...withJsExtension, verbatimFromExports: true };\n          }\n          if (packageJsonContent.exports) {\n            return { moduleFileToTry: path, blockedByExports: true };\n          }\n        }\n        const versionPaths = packageJsonContent.typesVersions ? getPackageJsonTypesVersionsPaths(packageJsonContent.typesVersions) : void 0;\n        if (versionPaths) {\n          const subModuleName = path.slice(packageRootPath.length + 1);\n          const fromPaths = tryGetModuleNameFromPaths(subModuleName, versionPaths.paths, allowedEndings, host, options);\n          if (fromPaths === void 0) {\n            maybeBlockedByTypesVersions = true;\n          } else {\n            moduleFileToTry = combinePaths(packageRootPath, fromPaths);\n          }\n        }\n        const mainFileRelative = packageJsonContent.typings || packageJsonContent.types || packageJsonContent.main || \"index.js\";\n        if (isString(mainFileRelative) && !(maybeBlockedByTypesVersions && matchPatternOrExact(tryParsePatterns(versionPaths.paths), mainFileRelative))) {\n          const mainExportFile = toPath(mainFileRelative, packageRootPath, getCanonicalFileName);\n          if (removeFileExtension(mainExportFile) === removeFileExtension(getCanonicalFileName(moduleFileToTry))) {\n            return { packageRootPath, moduleFileToTry };\n          }\n        }\n      } else {\n        const fileName = getCanonicalFileName(moduleFileToTry.substring(parts.packageRootIndex + 1));\n        if (fileName === \"index.d.ts\" || fileName === \"index.js\" || fileName === \"index.ts\" || fileName === \"index.tsx\") {\n          return { moduleFileToTry, packageRootPath };\n        }\n      }\n      return { moduleFileToTry };\n    }\n  }\n  function tryGetAnyFileFromPath(host, path) {\n    if (!host.fileExists)\n      return;\n    const extensions = flatten(getSupportedExtensions({ allowJs: true }, [{ extension: \"node\", isMixedContent: false }, { extension: \"json\", isMixedContent: false, scriptKind: 6 }]));\n    for (const e of extensions) {\n      const fullPath = path + e;\n      if (host.fileExists(fullPath)) {\n        return fullPath;\n      }\n    }\n  }\n  function getPathsRelativeToRootDirs(path, rootDirs, getCanonicalFileName) {\n    return mapDefined(rootDirs, (rootDir) => {\n      const relativePath = getRelativePathIfInDirectory(path, rootDir, getCanonicalFileName);\n      return relativePath !== void 0 && isPathRelativeToParent(relativePath) ? void 0 : relativePath;\n    });\n  }\n  function processEnding(fileName, allowedEndings, options, host) {\n    if (fileExtensionIsOneOf(fileName, [\".json\", \".mjs\", \".cjs\"])) {\n      return fileName;\n    }\n    const noExtension = removeFileExtension(fileName);\n    if (fileName === noExtension) {\n      return fileName;\n    }\n    if (fileExtensionIsOneOf(fileName, [\".d.mts\", \".mts\", \".d.cts\", \".cts\"])) {\n      return noExtension + getJSExtensionForFile(fileName, options);\n    } else if (!fileExtensionIsOneOf(fileName, [\".d.ts\"]) && fileExtensionIsOneOf(fileName, [\".ts\"]) && stringContains(fileName, \".d.\")) {\n      return tryGetRealFileNameForNonJsDeclarationFileName(fileName);\n    }\n    switch (allowedEndings[0]) {\n      case 0:\n        const withoutIndex = removeSuffix(noExtension, \"/index\");\n        if (host && withoutIndex !== noExtension && tryGetAnyFileFromPath(host, withoutIndex)) {\n          return noExtension;\n        }\n        return withoutIndex;\n      case 1:\n        return noExtension;\n      case 2:\n        return noExtension + getJSExtensionForFile(fileName, options);\n      case 3:\n        if (isDeclarationFileName(fileName)) {\n          const extensionlessPriority = allowedEndings.findIndex((e) => e === 0 || e === 1);\n          const jsPriority = allowedEndings.indexOf(2);\n          return extensionlessPriority !== -1 && extensionlessPriority < jsPriority ? noExtension : noExtension + getJSExtensionForFile(fileName, options);\n        }\n        return fileName;\n      default:\n        return Debug.assertNever(allowedEndings[0]);\n    }\n  }\n  function tryGetRealFileNameForNonJsDeclarationFileName(fileName) {\n    const baseName = getBaseFileName(fileName);\n    if (!endsWith(fileName, \".ts\") || !stringContains(baseName, \".d.\") || fileExtensionIsOneOf(baseName, [\".d.ts\"]))\n      return void 0;\n    const noExtension = removeExtension(fileName, \".ts\");\n    const ext = noExtension.substring(noExtension.lastIndexOf(\".\"));\n    return noExtension.substring(0, noExtension.indexOf(\".d.\")) + ext;\n  }\n  function getJSExtensionForFile(fileName, options) {\n    var _a2;\n    return (_a2 = tryGetJSExtensionForFile(fileName, options)) != null ? _a2 : Debug.fail(`Extension ${extensionFromPath(fileName)} is unsupported:: FileName:: ${fileName}`);\n  }\n  function tryGetJSExtensionForFile(fileName, options) {\n    const ext = tryGetExtensionFromPath2(fileName);\n    switch (ext) {\n      case \".ts\":\n      case \".d.ts\":\n        return \".js\";\n      case \".tsx\":\n        return options.jsx === 1 ? \".jsx\" : \".js\";\n      case \".js\":\n      case \".jsx\":\n      case \".json\":\n        return ext;\n      case \".d.mts\":\n      case \".mts\":\n      case \".mjs\":\n        return \".mjs\";\n      case \".d.cts\":\n      case \".cts\":\n      case \".cjs\":\n        return \".cjs\";\n      default:\n        return void 0;\n    }\n  }\n  function getRelativePathIfInDirectory(path, directoryPath, getCanonicalFileName) {\n    const relativePath = getRelativePathToDirectoryOrUrl(directoryPath, path, directoryPath, getCanonicalFileName, false);\n    return isRootedDiskPath(relativePath) ? void 0 : relativePath;\n  }\n  function isPathRelativeToParent(path) {\n    return startsWith(path, \"..\");\n  }\n  var init_moduleSpecifiers = __esm({\n    \"src/compiler/moduleSpecifiers.ts\"() {\n      \"use strict\";\n      init_ts2();\n    }\n  });\n  var ts_moduleSpecifiers_exports = {};\n  __export2(ts_moduleSpecifiers_exports, {\n    countPathComponents: () => countPathComponents,\n    forEachFileNameOfModule: () => forEachFileNameOfModule,\n    getModuleSpecifier: () => getModuleSpecifier,\n    getModuleSpecifiers: () => getModuleSpecifiers,\n    getModuleSpecifiersWithCacheInfo: () => getModuleSpecifiersWithCacheInfo,\n    getNodeModulesPackageName: () => getNodeModulesPackageName,\n    tryGetJSExtensionForFile: () => tryGetJSExtensionForFile,\n    tryGetModuleSpecifiersFromCache: () => tryGetModuleSpecifiersFromCache,\n    tryGetRealFileNameForNonJsDeclarationFileName: () => tryGetRealFileNameForNonJsDeclarationFileName,\n    updateModuleSpecifier: () => updateModuleSpecifier\n  });\n  var init_ts_moduleSpecifiers = __esm({\n    \"src/compiler/_namespaces/ts.moduleSpecifiers.ts\"() {\n      \"use strict\";\n      init_moduleSpecifiers();\n    }\n  });\n  function NodeLinks() {\n    this.flags = 0;\n  }\n  function getNodeId(node) {\n    if (!node.id) {\n      node.id = nextNodeId;\n      nextNodeId++;\n    }\n    return node.id;\n  }\n  function getSymbolId(symbol) {\n    if (!symbol.id) {\n      symbol.id = nextSymbolId;\n      nextSymbolId++;\n    }\n    return symbol.id;\n  }\n  function isInstantiatedModule(node, preserveConstEnums) {\n    const moduleState = getModuleInstanceState(node);\n    return moduleState === 1 || preserveConstEnums && moduleState === 2;\n  }\n  function createTypeChecker(host) {\n    var getPackagesMap = memoize(() => {\n      var map2 = /* @__PURE__ */ new Map();\n      host.getSourceFiles().forEach((sf) => {\n        if (!sf.resolvedModules)\n          return;\n        sf.resolvedModules.forEach(({ resolvedModule }) => {\n          if (resolvedModule == null ? void 0 : resolvedModule.packageId)\n            map2.set(resolvedModule.packageId.name, resolvedModule.extension === \".d.ts\" || !!map2.get(resolvedModule.packageId.name));\n        });\n      });\n      return map2;\n    });\n    var deferredDiagnosticsCallbacks = [];\n    var addLazyDiagnostic = (arg) => {\n      deferredDiagnosticsCallbacks.push(arg);\n    };\n    var cancellationToken;\n    var requestedExternalEmitHelperNames = /* @__PURE__ */ new Set();\n    var requestedExternalEmitHelpers;\n    var externalHelpersModule;\n    var Symbol46 = objectAllocator.getSymbolConstructor();\n    var Type27 = objectAllocator.getTypeConstructor();\n    var Signature15 = objectAllocator.getSignatureConstructor();\n    var typeCount = 0;\n    var symbolCount = 0;\n    var totalInstantiationCount = 0;\n    var instantiationCount = 0;\n    var instantiationDepth = 0;\n    var inlineLevel = 0;\n    var currentNode;\n    var varianceTypeParameter;\n    var isInferencePartiallyBlocked = false;\n    var emptySymbols = createSymbolTable();\n    var arrayVariances = [1];\n    var compilerOptions = host.getCompilerOptions();\n    var languageVersion = getEmitScriptTarget(compilerOptions);\n    var moduleKind = getEmitModuleKind(compilerOptions);\n    var legacyDecorators = !!compilerOptions.experimentalDecorators;\n    var useDefineForClassFields = getUseDefineForClassFields(compilerOptions);\n    var allowSyntheticDefaultImports = getAllowSyntheticDefaultImports(compilerOptions);\n    var strictNullChecks = getStrictOptionValue(compilerOptions, \"strictNullChecks\");\n    var strictFunctionTypes = getStrictOptionValue(compilerOptions, \"strictFunctionTypes\");\n    var strictBindCallApply = getStrictOptionValue(compilerOptions, \"strictBindCallApply\");\n    var strictPropertyInitialization = getStrictOptionValue(compilerOptions, \"strictPropertyInitialization\");\n    var noImplicitAny = getStrictOptionValue(compilerOptions, \"noImplicitAny\");\n    var noImplicitThis = getStrictOptionValue(compilerOptions, \"noImplicitThis\");\n    var useUnknownInCatchVariables = getStrictOptionValue(compilerOptions, \"useUnknownInCatchVariables\");\n    var keyofStringsOnly = !!compilerOptions.keyofStringsOnly;\n    var freshObjectLiteralFlag = compilerOptions.suppressExcessPropertyErrors ? 0 : 8192;\n    var exactOptionalPropertyTypes = compilerOptions.exactOptionalPropertyTypes;\n    var checkBinaryExpression = createCheckBinaryExpression();\n    var emitResolver = createResolver();\n    var nodeBuilder = createNodeBuilder();\n    var globals = createSymbolTable();\n    var undefinedSymbol = createSymbol(4, \"undefined\");\n    undefinedSymbol.declarations = [];\n    var globalThisSymbol = createSymbol(1536, \"globalThis\", 8);\n    globalThisSymbol.exports = globals;\n    globalThisSymbol.declarations = [];\n    globals.set(globalThisSymbol.escapedName, globalThisSymbol);\n    var argumentsSymbol = createSymbol(4, \"arguments\");\n    var requireSymbol = createSymbol(4, \"require\");\n    var isolatedModulesLikeFlagName = compilerOptions.verbatimModuleSyntax ? \"verbatimModuleSyntax\" : \"isolatedModules\";\n    var apparentArgumentCount;\n    const checker = {\n      getNodeCount: () => reduceLeft(host.getSourceFiles(), (n, s) => n + s.nodeCount, 0),\n      getIdentifierCount: () => reduceLeft(host.getSourceFiles(), (n, s) => n + s.identifierCount, 0),\n      getSymbolCount: () => reduceLeft(host.getSourceFiles(), (n, s) => n + s.symbolCount, symbolCount),\n      getTypeCount: () => typeCount,\n      getInstantiationCount: () => totalInstantiationCount,\n      getRelationCacheSizes: () => ({\n        assignable: assignableRelation.size,\n        identity: identityRelation.size,\n        subtype: subtypeRelation.size,\n        strictSubtype: strictSubtypeRelation.size\n      }),\n      isUndefinedSymbol: (symbol) => symbol === undefinedSymbol,\n      isArgumentsSymbol: (symbol) => symbol === argumentsSymbol,\n      isUnknownSymbol: (symbol) => symbol === unknownSymbol,\n      getMergedSymbol,\n      getDiagnostics: getDiagnostics2,\n      getGlobalDiagnostics,\n      getRecursionIdentity,\n      getUnmatchedProperties,\n      getTypeOfSymbolAtLocation: (symbol, locationIn) => {\n        const location = getParseTreeNode(locationIn);\n        return location ? getTypeOfSymbolAtLocation(symbol, location) : errorType;\n      },\n      getTypeOfSymbol,\n      getSymbolsOfParameterPropertyDeclaration: (parameterIn, parameterName) => {\n        const parameter = getParseTreeNode(parameterIn, isParameter);\n        if (parameter === void 0)\n          return Debug.fail(\"Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node.\");\n        Debug.assert(isParameterPropertyDeclaration(parameter, parameter.parent));\n        return getSymbolsOfParameterPropertyDeclaration(parameter, escapeLeadingUnderscores(parameterName));\n      },\n      getDeclaredTypeOfSymbol,\n      getPropertiesOfType,\n      getPropertyOfType: (type, name) => getPropertyOfType(type, escapeLeadingUnderscores(name)),\n      getPrivateIdentifierPropertyOfType: (leftType, name, location) => {\n        const node = getParseTreeNode(location);\n        if (!node) {\n          return void 0;\n        }\n        const propName = escapeLeadingUnderscores(name);\n        const lexicallyScopedIdentifier = lookupSymbolForPrivateIdentifierDeclaration(propName, node);\n        return lexicallyScopedIdentifier ? getPrivateIdentifierPropertyOfType(leftType, lexicallyScopedIdentifier) : void 0;\n      },\n      getTypeOfPropertyOfType: (type, name) => getTypeOfPropertyOfType(type, escapeLeadingUnderscores(name)),\n      getIndexInfoOfType: (type, kind) => getIndexInfoOfType(type, kind === 0 ? stringType : numberType),\n      getIndexInfosOfType,\n      getIndexInfosOfIndexSymbol,\n      getSignaturesOfType,\n      getIndexTypeOfType: (type, kind) => getIndexTypeOfType(type, kind === 0 ? stringType : numberType),\n      getIndexType: (type) => getIndexType(type),\n      getBaseTypes,\n      getBaseTypeOfLiteralType,\n      getWidenedType,\n      getTypeFromTypeNode: (nodeIn) => {\n        const node = getParseTreeNode(nodeIn, isTypeNode);\n        return node ? getTypeFromTypeNode(node) : errorType;\n      },\n      getParameterType: getTypeAtPosition,\n      getParameterIdentifierNameAtPosition,\n      getPromisedTypeOfPromise,\n      getAwaitedType: (type) => getAwaitedType(type),\n      getReturnTypeOfSignature,\n      isNullableType,\n      getNullableType,\n      getNonNullableType,\n      getNonOptionalType: removeOptionalTypeMarker,\n      getTypeArguments,\n      typeToTypeNode: nodeBuilder.typeToTypeNode,\n      indexInfoToIndexSignatureDeclaration: nodeBuilder.indexInfoToIndexSignatureDeclaration,\n      signatureToSignatureDeclaration: nodeBuilder.signatureToSignatureDeclaration,\n      symbolToEntityName: nodeBuilder.symbolToEntityName,\n      symbolToExpression: nodeBuilder.symbolToExpression,\n      symbolToNode: nodeBuilder.symbolToNode,\n      symbolToTypeParameterDeclarations: nodeBuilder.symbolToTypeParameterDeclarations,\n      symbolToParameterDeclaration: nodeBuilder.symbolToParameterDeclaration,\n      typeParameterToDeclaration: nodeBuilder.typeParameterToDeclaration,\n      getSymbolsInScope: (locationIn, meaning) => {\n        const location = getParseTreeNode(locationIn);\n        return location ? getSymbolsInScope(location, meaning) : [];\n      },\n      getSymbolAtLocation: (nodeIn) => {\n        const node = getParseTreeNode(nodeIn);\n        return node ? getSymbolAtLocation(node, true) : void 0;\n      },\n      getIndexInfosAtLocation: (nodeIn) => {\n        const node = getParseTreeNode(nodeIn);\n        return node ? getIndexInfosAtLocation(node) : void 0;\n      },\n      getShorthandAssignmentValueSymbol: (nodeIn) => {\n        const node = getParseTreeNode(nodeIn);\n        return node ? getShorthandAssignmentValueSymbol(node) : void 0;\n      },\n      getExportSpecifierLocalTargetSymbol: (nodeIn) => {\n        const node = getParseTreeNode(nodeIn, isExportSpecifier);\n        return node ? getExportSpecifierLocalTargetSymbol(node) : void 0;\n      },\n      getExportSymbolOfSymbol(symbol) {\n        return getMergedSymbol(symbol.exportSymbol || symbol);\n      },\n      getTypeAtLocation: (nodeIn) => {\n        const node = getParseTreeNode(nodeIn);\n        return node ? getTypeOfNode(node) : errorType;\n      },\n      getTypeOfAssignmentPattern: (nodeIn) => {\n        const node = getParseTreeNode(nodeIn, isAssignmentPattern);\n        return node && getTypeOfAssignmentPattern(node) || errorType;\n      },\n      getPropertySymbolOfDestructuringAssignment: (locationIn) => {\n        const location = getParseTreeNode(locationIn, isIdentifier);\n        return location ? getPropertySymbolOfDestructuringAssignment(location) : void 0;\n      },\n      signatureToString: (signature, enclosingDeclaration, flags, kind) => {\n        return signatureToString(signature, getParseTreeNode(enclosingDeclaration), flags, kind);\n      },\n      typeToString: (type, enclosingDeclaration, flags) => {\n        return typeToString(type, getParseTreeNode(enclosingDeclaration), flags);\n      },\n      symbolToString: (symbol, enclosingDeclaration, meaning, flags) => {\n        return symbolToString(symbol, getParseTreeNode(enclosingDeclaration), meaning, flags);\n      },\n      typePredicateToString: (predicate, enclosingDeclaration, flags) => {\n        return typePredicateToString(predicate, getParseTreeNode(enclosingDeclaration), flags);\n      },\n      writeSignature: (signature, enclosingDeclaration, flags, kind, writer) => {\n        return signatureToString(signature, getParseTreeNode(enclosingDeclaration), flags, kind, writer);\n      },\n      writeType: (type, enclosingDeclaration, flags, writer) => {\n        return typeToString(type, getParseTreeNode(enclosingDeclaration), flags, writer);\n      },\n      writeSymbol: (symbol, enclosingDeclaration, meaning, flags, writer) => {\n        return symbolToString(symbol, getParseTreeNode(enclosingDeclaration), meaning, flags, writer);\n      },\n      writeTypePredicate: (predicate, enclosingDeclaration, flags, writer) => {\n        return typePredicateToString(predicate, getParseTreeNode(enclosingDeclaration), flags, writer);\n      },\n      getAugmentedPropertiesOfType,\n      getRootSymbols,\n      getSymbolOfExpando,\n      getContextualType: (nodeIn, contextFlags) => {\n        const node = getParseTreeNode(nodeIn, isExpression);\n        if (!node) {\n          return void 0;\n        }\n        if (contextFlags & 4) {\n          return runWithInferenceBlockedFromSourceNode(node, () => getContextualType2(node, contextFlags));\n        }\n        return getContextualType2(node, contextFlags);\n      },\n      getContextualTypeForObjectLiteralElement: (nodeIn) => {\n        const node = getParseTreeNode(nodeIn, isObjectLiteralElementLike);\n        return node ? getContextualTypeForObjectLiteralElement(node, void 0) : void 0;\n      },\n      getContextualTypeForArgumentAtIndex: (nodeIn, argIndex) => {\n        const node = getParseTreeNode(nodeIn, isCallLikeExpression);\n        return node && getContextualTypeForArgumentAtIndex(node, argIndex);\n      },\n      getContextualTypeForJsxAttribute: (nodeIn) => {\n        const node = getParseTreeNode(nodeIn, isJsxAttributeLike);\n        return node && getContextualTypeForJsxAttribute(node, void 0);\n      },\n      isContextSensitive,\n      getTypeOfPropertyOfContextualType,\n      getFullyQualifiedName,\n      getResolvedSignature: (node, candidatesOutArray, argumentCount) => getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 0),\n      getResolvedSignatureForStringLiteralCompletions: (call, editingArgument, candidatesOutArray) => runWithInferenceBlockedFromSourceNode(editingArgument, () => getResolvedSignatureWorker(call, candidatesOutArray, void 0, 32)),\n      getResolvedSignatureForSignatureHelp: (node, candidatesOutArray, argumentCount) => runWithoutResolvedSignatureCaching(node, () => getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 16)),\n      getExpandedParameters,\n      hasEffectiveRestParameter,\n      containsArgumentsReference,\n      getConstantValue: (nodeIn) => {\n        const node = getParseTreeNode(nodeIn, canHaveConstantValue);\n        return node ? getConstantValue2(node) : void 0;\n      },\n      isValidPropertyAccess: (nodeIn, propertyName) => {\n        const node = getParseTreeNode(nodeIn, isPropertyAccessOrQualifiedNameOrImportTypeNode);\n        return !!node && isValidPropertyAccess(node, escapeLeadingUnderscores(propertyName));\n      },\n      isValidPropertyAccessForCompletions: (nodeIn, type, property) => {\n        const node = getParseTreeNode(nodeIn, isPropertyAccessExpression);\n        return !!node && isValidPropertyAccessForCompletions(node, type, property);\n      },\n      getSignatureFromDeclaration: (declarationIn) => {\n        const declaration = getParseTreeNode(declarationIn, isFunctionLike);\n        return declaration ? getSignatureFromDeclaration(declaration) : void 0;\n      },\n      isImplementationOfOverload: (nodeIn) => {\n        const node = getParseTreeNode(nodeIn, isFunctionLike);\n        return node ? isImplementationOfOverload(node) : void 0;\n      },\n      getImmediateAliasedSymbol,\n      getAliasedSymbol: resolveAlias,\n      getEmitResolver,\n      getExportsOfModule: getExportsOfModuleAsArray,\n      getExportsAndPropertiesOfModule,\n      forEachExportAndPropertyOfModule,\n      getSymbolWalker: createGetSymbolWalker(getRestTypeOfSignature, getTypePredicateOfSignature, getReturnTypeOfSignature, getBaseTypes, resolveStructuredTypeMembers, getTypeOfSymbol, getResolvedSymbol, getConstraintOfTypeParameter, getFirstIdentifier, getTypeArguments),\n      getAmbientModules,\n      getJsxIntrinsicTagNamesAt,\n      isOptionalParameter: (nodeIn) => {\n        const node = getParseTreeNode(nodeIn, isParameter);\n        return node ? isOptionalParameter(node) : false;\n      },\n      tryGetMemberInModuleExports: (name, symbol) => tryGetMemberInModuleExports(escapeLeadingUnderscores(name), symbol),\n      tryGetMemberInModuleExportsAndProperties: (name, symbol) => tryGetMemberInModuleExportsAndProperties(escapeLeadingUnderscores(name), symbol),\n      tryFindAmbientModule: (moduleName) => tryFindAmbientModule(moduleName, true),\n      tryFindAmbientModuleWithoutAugmentations: (moduleName) => {\n        return tryFindAmbientModule(moduleName, false);\n      },\n      getApparentType,\n      getUnionType,\n      isTypeAssignableTo,\n      createAnonymousType,\n      createSignature,\n      createSymbol,\n      createIndexInfo,\n      getAnyType: () => anyType,\n      getStringType: () => stringType,\n      getNumberType: () => numberType,\n      createPromiseType,\n      createArrayType,\n      getElementTypeOfArrayType,\n      getBooleanType: () => booleanType,\n      getFalseType: (fresh) => fresh ? falseType : regularFalseType,\n      getTrueType: (fresh) => fresh ? trueType : regularTrueType,\n      getVoidType: () => voidType,\n      getUndefinedType: () => undefinedType,\n      getNullType: () => nullType,\n      getESSymbolType: () => esSymbolType,\n      getNeverType: () => neverType,\n      getOptionalType: () => optionalType,\n      getPromiseType: () => getGlobalPromiseType(false),\n      getPromiseLikeType: () => getGlobalPromiseLikeType(false),\n      getAsyncIterableType: () => {\n        const type = getGlobalAsyncIterableType(false);\n        if (type === emptyGenericType)\n          return void 0;\n        return type;\n      },\n      isSymbolAccessible,\n      isArrayType,\n      isTupleType,\n      isArrayLikeType,\n      isEmptyAnonymousObjectType,\n      isTypeInvalidDueToUnionDiscriminant,\n      getExactOptionalProperties,\n      getAllPossiblePropertiesOfTypes,\n      getSuggestedSymbolForNonexistentProperty,\n      getSuggestionForNonexistentProperty,\n      getSuggestedSymbolForNonexistentJSXAttribute,\n      getSuggestedSymbolForNonexistentSymbol: (location, name, meaning) => getSuggestedSymbolForNonexistentSymbol(location, escapeLeadingUnderscores(name), meaning),\n      getSuggestionForNonexistentSymbol: (location, name, meaning) => getSuggestionForNonexistentSymbol(location, escapeLeadingUnderscores(name), meaning),\n      getSuggestedSymbolForNonexistentModule,\n      getSuggestionForNonexistentExport,\n      getSuggestedSymbolForNonexistentClassMember,\n      getBaseConstraintOfType,\n      getDefaultFromTypeParameter: (type) => type && type.flags & 262144 ? getDefaultFromTypeParameter(type) : void 0,\n      resolveName(name, location, meaning, excludeGlobals) {\n        return resolveName(location, escapeLeadingUnderscores(name), meaning, void 0, void 0, false, excludeGlobals);\n      },\n      getJsxNamespace: (n) => unescapeLeadingUnderscores(getJsxNamespace(n)),\n      getJsxFragmentFactory: (n) => {\n        const jsxFragmentFactory = getJsxFragmentFactoryEntity(n);\n        return jsxFragmentFactory && unescapeLeadingUnderscores(getFirstIdentifier(jsxFragmentFactory).escapedText);\n      },\n      getAccessibleSymbolChain,\n      getTypePredicateOfSignature,\n      resolveExternalModuleName: (moduleSpecifierIn) => {\n        const moduleSpecifier = getParseTreeNode(moduleSpecifierIn, isExpression);\n        return moduleSpecifier && resolveExternalModuleName(moduleSpecifier, moduleSpecifier, true);\n      },\n      resolveExternalModuleSymbol,\n      tryGetThisTypeAt: (nodeIn, includeGlobalThis, container) => {\n        const node = getParseTreeNode(nodeIn);\n        return node && tryGetThisTypeAt(node, includeGlobalThis, container);\n      },\n      getTypeArgumentConstraint: (nodeIn) => {\n        const node = getParseTreeNode(nodeIn, isTypeNode);\n        return node && getTypeArgumentConstraint(node);\n      },\n      getSuggestionDiagnostics: (fileIn, ct) => {\n        const file = getParseTreeNode(fileIn, isSourceFile) || Debug.fail(\"Could not determine parsed source file.\");\n        if (skipTypeChecking(file, compilerOptions, host)) {\n          return emptyArray;\n        }\n        let diagnostics2;\n        try {\n          cancellationToken = ct;\n          checkSourceFileWithEagerDiagnostics(file);\n          Debug.assert(!!(getNodeLinks(file).flags & 1));\n          diagnostics2 = addRange(diagnostics2, suggestionDiagnostics.getDiagnostics(file.fileName));\n          checkUnusedIdentifiers(getPotentiallyUnusedIdentifiers(file), (containingNode, kind, diag2) => {\n            if (!containsParseError(containingNode) && !unusedIsError(kind, !!(containingNode.flags & 16777216))) {\n              (diagnostics2 || (diagnostics2 = [])).push({ ...diag2, category: 2 });\n            }\n          });\n          return diagnostics2 || emptyArray;\n        } finally {\n          cancellationToken = void 0;\n        }\n      },\n      runWithCancellationToken: (token, callback) => {\n        try {\n          cancellationToken = token;\n          return callback(checker);\n        } finally {\n          cancellationToken = void 0;\n        }\n      },\n      getLocalTypeParametersOfClassOrInterfaceOrTypeAlias,\n      isDeclarationVisible,\n      isPropertyAccessible,\n      getTypeOnlyAliasDeclaration,\n      getMemberOverrideModifierStatus,\n      isTypeParameterPossiblyReferenced,\n      typeHasCallOrConstructSignatures\n    };\n    function runWithoutResolvedSignatureCaching(node, fn) {\n      const containingCall = findAncestor(node, isCallLikeExpression);\n      const containingCallResolvedSignature = containingCall && getNodeLinks(containingCall).resolvedSignature;\n      if (containingCall) {\n        getNodeLinks(containingCall).resolvedSignature = void 0;\n      }\n      const result = fn();\n      if (containingCall) {\n        getNodeLinks(containingCall).resolvedSignature = containingCallResolvedSignature;\n      }\n      return result;\n    }\n    function runWithInferenceBlockedFromSourceNode(node, fn) {\n      const containingCall = findAncestor(node, isCallLikeExpression);\n      if (containingCall) {\n        let toMarkSkip = node;\n        do {\n          getNodeLinks(toMarkSkip).skipDirectInference = true;\n          toMarkSkip = toMarkSkip.parent;\n        } while (toMarkSkip && toMarkSkip !== containingCall);\n      }\n      isInferencePartiallyBlocked = true;\n      const result = runWithoutResolvedSignatureCaching(node, fn);\n      isInferencePartiallyBlocked = false;\n      if (containingCall) {\n        let toMarkSkip = node;\n        do {\n          getNodeLinks(toMarkSkip).skipDirectInference = void 0;\n          toMarkSkip = toMarkSkip.parent;\n        } while (toMarkSkip && toMarkSkip !== containingCall);\n      }\n      return result;\n    }\n    function getResolvedSignatureWorker(nodeIn, candidatesOutArray, argumentCount, checkMode) {\n      const node = getParseTreeNode(nodeIn, isCallLikeExpression);\n      apparentArgumentCount = argumentCount;\n      const res = !node ? void 0 : getResolvedSignature(node, candidatesOutArray, checkMode);\n      apparentArgumentCount = void 0;\n      return res;\n    }\n    var tupleTypes = /* @__PURE__ */ new Map();\n    var unionTypes = /* @__PURE__ */ new Map();\n    var intersectionTypes = /* @__PURE__ */ new Map();\n    var stringLiteralTypes = /* @__PURE__ */ new Map();\n    var numberLiteralTypes = /* @__PURE__ */ new Map();\n    var bigIntLiteralTypes = /* @__PURE__ */ new Map();\n    var enumLiteralTypes = /* @__PURE__ */ new Map();\n    var indexedAccessTypes = /* @__PURE__ */ new Map();\n    var templateLiteralTypes = /* @__PURE__ */ new Map();\n    var stringMappingTypes = /* @__PURE__ */ new Map();\n    var substitutionTypes = /* @__PURE__ */ new Map();\n    var subtypeReductionCache = /* @__PURE__ */ new Map();\n    var decoratorContextOverrideTypeCache = /* @__PURE__ */ new Map();\n    var cachedTypes = /* @__PURE__ */ new Map();\n    var evolvingArrayTypes = [];\n    var undefinedProperties = /* @__PURE__ */ new Map();\n    var markerTypes = /* @__PURE__ */ new Set();\n    var unknownSymbol = createSymbol(4, \"unknown\");\n    var resolvingSymbol = createSymbol(0, \"__resolving__\");\n    var unresolvedSymbols = /* @__PURE__ */ new Map();\n    var errorTypes = /* @__PURE__ */ new Map();\n    var anyType = createIntrinsicType(1, \"any\");\n    var autoType = createIntrinsicType(1, \"any\", 262144);\n    var wildcardType = createIntrinsicType(1, \"any\");\n    var errorType = createIntrinsicType(1, \"error\");\n    var unresolvedType = createIntrinsicType(1, \"unresolved\");\n    var nonInferrableAnyType = createIntrinsicType(1, \"any\", 65536);\n    var intrinsicMarkerType = createIntrinsicType(1, \"intrinsic\");\n    var unknownType = createIntrinsicType(2, \"unknown\");\n    var nonNullUnknownType = createIntrinsicType(2, \"unknown\");\n    var undefinedType = createIntrinsicType(32768, \"undefined\");\n    var undefinedWideningType = strictNullChecks ? undefinedType : createIntrinsicType(32768, \"undefined\", 65536);\n    var missingType = createIntrinsicType(32768, \"undefined\");\n    var undefinedOrMissingType = exactOptionalPropertyTypes ? missingType : undefinedType;\n    var optionalType = createIntrinsicType(32768, \"undefined\");\n    var nullType = createIntrinsicType(65536, \"null\");\n    var nullWideningType = strictNullChecks ? nullType : createIntrinsicType(65536, \"null\", 65536);\n    var stringType = createIntrinsicType(4, \"string\");\n    var numberType = createIntrinsicType(8, \"number\");\n    var bigintType = createIntrinsicType(64, \"bigint\");\n    var falseType = createIntrinsicType(512, \"false\");\n    var regularFalseType = createIntrinsicType(512, \"false\");\n    var trueType = createIntrinsicType(512, \"true\");\n    var regularTrueType = createIntrinsicType(512, \"true\");\n    trueType.regularType = regularTrueType;\n    trueType.freshType = trueType;\n    regularTrueType.regularType = regularTrueType;\n    regularTrueType.freshType = trueType;\n    falseType.regularType = regularFalseType;\n    falseType.freshType = falseType;\n    regularFalseType.regularType = regularFalseType;\n    regularFalseType.freshType = falseType;\n    var booleanType = getUnionType([regularFalseType, regularTrueType]);\n    var esSymbolType = createIntrinsicType(4096, \"symbol\");\n    var voidType = createIntrinsicType(16384, \"void\");\n    var neverType = createIntrinsicType(131072, \"never\");\n    var silentNeverType = createIntrinsicType(131072, \"never\", 262144);\n    var implicitNeverType = createIntrinsicType(131072, \"never\");\n    var unreachableNeverType = createIntrinsicType(131072, \"never\");\n    var nonPrimitiveType = createIntrinsicType(67108864, \"object\");\n    var stringOrNumberType = getUnionType([stringType, numberType]);\n    var stringNumberSymbolType = getUnionType([stringType, numberType, esSymbolType]);\n    var keyofConstraintType = keyofStringsOnly ? stringType : stringNumberSymbolType;\n    var numberOrBigIntType = getUnionType([numberType, bigintType]);\n    var templateConstraintType = getUnionType([stringType, numberType, booleanType, bigintType, nullType, undefinedType]);\n    var numericStringType = getTemplateLiteralType([\"\", \"\"], [numberType]);\n    var restrictiveMapper = makeFunctionTypeMapper((t) => t.flags & 262144 ? getRestrictiveTypeParameter(t) : t, () => \"(restrictive mapper)\");\n    var permissiveMapper = makeFunctionTypeMapper((t) => t.flags & 262144 ? wildcardType : t, () => \"(permissive mapper)\");\n    var uniqueLiteralType = createIntrinsicType(131072, \"never\");\n    var uniqueLiteralMapper = makeFunctionTypeMapper((t) => t.flags & 262144 ? uniqueLiteralType : t, () => \"(unique literal mapper)\");\n    var outofbandVarianceMarkerHandler;\n    var reportUnreliableMapper = makeFunctionTypeMapper((t) => {\n      if (outofbandVarianceMarkerHandler && (t === markerSuperType || t === markerSubType || t === markerOtherType)) {\n        outofbandVarianceMarkerHandler(true);\n      }\n      return t;\n    }, () => \"(unmeasurable reporter)\");\n    var reportUnmeasurableMapper = makeFunctionTypeMapper((t) => {\n      if (outofbandVarianceMarkerHandler && (t === markerSuperType || t === markerSubType || t === markerOtherType)) {\n        outofbandVarianceMarkerHandler(false);\n      }\n      return t;\n    }, () => \"(unreliable reporter)\");\n    var emptyObjectType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);\n    var emptyJsxObjectType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);\n    emptyJsxObjectType.objectFlags |= 2048;\n    var emptyTypeLiteralSymbol = createSymbol(2048, \"__type\");\n    emptyTypeLiteralSymbol.members = createSymbolTable();\n    var emptyTypeLiteralType = createAnonymousType(emptyTypeLiteralSymbol, emptySymbols, emptyArray, emptyArray, emptyArray);\n    var unknownEmptyObjectType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);\n    var unknownUnionType = strictNullChecks ? getUnionType([undefinedType, nullType, unknownEmptyObjectType]) : unknownType;\n    var emptyGenericType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);\n    emptyGenericType.instantiations = /* @__PURE__ */ new Map();\n    var anyFunctionType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);\n    anyFunctionType.objectFlags |= 262144;\n    var noConstraintType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);\n    var circularConstraintType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);\n    var resolvingDefaultType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);\n    var markerSuperType = createTypeParameter();\n    var markerSubType = createTypeParameter();\n    markerSubType.constraint = markerSuperType;\n    var markerOtherType = createTypeParameter();\n    var markerSuperTypeForCheck = createTypeParameter();\n    var markerSubTypeForCheck = createTypeParameter();\n    markerSubTypeForCheck.constraint = markerSuperTypeForCheck;\n    var noTypePredicate = createTypePredicate(1, \"<<unresolved>>\", 0, anyType);\n    var anySignature = createSignature(void 0, void 0, void 0, emptyArray, anyType, void 0, 0, 0);\n    var unknownSignature = createSignature(void 0, void 0, void 0, emptyArray, errorType, void 0, 0, 0);\n    var resolvingSignature = createSignature(void 0, void 0, void 0, emptyArray, anyType, void 0, 0, 0);\n    var silentNeverSignature = createSignature(void 0, void 0, void 0, emptyArray, silentNeverType, void 0, 0, 0);\n    var enumNumberIndexInfo = createIndexInfo(numberType, stringType, true);\n    var iterationTypesCache = /* @__PURE__ */ new Map();\n    var noIterationTypes = {\n      get yieldType() {\n        return Debug.fail(\"Not supported\");\n      },\n      get returnType() {\n        return Debug.fail(\"Not supported\");\n      },\n      get nextType() {\n        return Debug.fail(\"Not supported\");\n      }\n    };\n    var anyIterationTypes = createIterationTypes(anyType, anyType, anyType);\n    var anyIterationTypesExceptNext = createIterationTypes(anyType, anyType, unknownType);\n    var defaultIterationTypes = createIterationTypes(neverType, anyType, undefinedType);\n    var asyncIterationTypesResolver = {\n      iterableCacheKey: \"iterationTypesOfAsyncIterable\",\n      iteratorCacheKey: \"iterationTypesOfAsyncIterator\",\n      iteratorSymbolName: \"asyncIterator\",\n      getGlobalIteratorType: getGlobalAsyncIteratorType,\n      getGlobalIterableType: getGlobalAsyncIterableType,\n      getGlobalIterableIteratorType: getGlobalAsyncIterableIteratorType,\n      getGlobalGeneratorType: getGlobalAsyncGeneratorType,\n      resolveIterationType: getAwaitedType,\n      mustHaveANextMethodDiagnostic: Diagnostics.An_async_iterator_must_have_a_next_method,\n      mustBeAMethodDiagnostic: Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method,\n      mustHaveAValueDiagnostic: Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property\n    };\n    var syncIterationTypesResolver = {\n      iterableCacheKey: \"iterationTypesOfIterable\",\n      iteratorCacheKey: \"iterationTypesOfIterator\",\n      iteratorSymbolName: \"iterator\",\n      getGlobalIteratorType,\n      getGlobalIterableType,\n      getGlobalIterableIteratorType,\n      getGlobalGeneratorType,\n      resolveIterationType: (type, _errorNode) => type,\n      mustHaveANextMethodDiagnostic: Diagnostics.An_iterator_must_have_a_next_method,\n      mustBeAMethodDiagnostic: Diagnostics.The_0_property_of_an_iterator_must_be_a_method,\n      mustHaveAValueDiagnostic: Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property\n    };\n    var amalgamatedDuplicates;\n    var reverseMappedCache = /* @__PURE__ */ new Map();\n    var inInferTypeForHomomorphicMappedType = false;\n    var ambientModulesCache;\n    var patternAmbientModules;\n    var patternAmbientModuleAugmentations;\n    var globalObjectType;\n    var globalFunctionType;\n    var globalCallableFunctionType;\n    var globalNewableFunctionType;\n    var globalArrayType;\n    var globalReadonlyArrayType;\n    var globalStringType;\n    var globalNumberType;\n    var globalBooleanType;\n    var globalRegExpType;\n    var globalThisType;\n    var anyArrayType;\n    var autoArrayType;\n    var anyReadonlyArrayType;\n    var deferredGlobalNonNullableTypeAlias;\n    var deferredGlobalESSymbolConstructorSymbol;\n    var deferredGlobalESSymbolConstructorTypeSymbol;\n    var deferredGlobalESSymbolType;\n    var deferredGlobalTypedPropertyDescriptorType;\n    var deferredGlobalPromiseType;\n    var deferredGlobalPromiseLikeType;\n    var deferredGlobalPromiseConstructorSymbol;\n    var deferredGlobalPromiseConstructorLikeType;\n    var deferredGlobalIterableType;\n    var deferredGlobalIteratorType;\n    var deferredGlobalIterableIteratorType;\n    var deferredGlobalGeneratorType;\n    var deferredGlobalIteratorYieldResultType;\n    var deferredGlobalIteratorReturnResultType;\n    var deferredGlobalAsyncIterableType;\n    var deferredGlobalAsyncIteratorType;\n    var deferredGlobalAsyncIterableIteratorType;\n    var deferredGlobalAsyncGeneratorType;\n    var deferredGlobalTemplateStringsArrayType;\n    var deferredGlobalImportMetaType;\n    var deferredGlobalImportMetaExpressionType;\n    var deferredGlobalImportCallOptionsType;\n    var deferredGlobalExtractSymbol;\n    var deferredGlobalOmitSymbol;\n    var deferredGlobalAwaitedSymbol;\n    var deferredGlobalBigIntType;\n    var deferredGlobalNaNSymbol;\n    var deferredGlobalRecordSymbol;\n    var deferredGlobalClassDecoratorContextType;\n    var deferredGlobalClassMethodDecoratorContextType;\n    var deferredGlobalClassGetterDecoratorContextType;\n    var deferredGlobalClassSetterDecoratorContextType;\n    var deferredGlobalClassAccessorDecoratorContextType;\n    var deferredGlobalClassAccessorDecoratorTargetType;\n    var deferredGlobalClassAccessorDecoratorResultType;\n    var deferredGlobalClassFieldDecoratorContextType;\n    var allPotentiallyUnusedIdentifiers = /* @__PURE__ */ new Map();\n    var flowLoopStart = 0;\n    var flowLoopCount = 0;\n    var sharedFlowCount = 0;\n    var flowAnalysisDisabled = false;\n    var flowInvocationCount = 0;\n    var lastFlowNode;\n    var lastFlowNodeReachable;\n    var flowTypeCache;\n    var contextualTypeNodes = [];\n    var contextualTypes = [];\n    var contextualIsCache = [];\n    var contextualTypeCount = 0;\n    var inferenceContextNodes = [];\n    var inferenceContexts = [];\n    var inferenceContextCount = 0;\n    var emptyStringType = getStringLiteralType(\"\");\n    var zeroType = getNumberLiteralType(0);\n    var zeroBigIntType = getBigIntLiteralType({ negative: false, base10Value: \"0\" });\n    var resolutionTargets = [];\n    var resolutionResults = [];\n    var resolutionPropertyNames = [];\n    var suggestionCount = 0;\n    var maximumSuggestionCount = 10;\n    var mergedSymbols = [];\n    var symbolLinks = [];\n    var nodeLinks = [];\n    var flowLoopCaches = [];\n    var flowLoopNodes = [];\n    var flowLoopKeys = [];\n    var flowLoopTypes = [];\n    var sharedFlowNodes = [];\n    var sharedFlowTypes = [];\n    var flowNodeReachable = [];\n    var flowNodePostSuper = [];\n    var potentialThisCollisions = [];\n    var potentialNewTargetCollisions = [];\n    var potentialWeakMapSetCollisions = [];\n    var potentialReflectCollisions = [];\n    var potentialUnusedRenamedBindingElementsInTypes = [];\n    var awaitedTypeStack = [];\n    var diagnostics = createDiagnosticCollection();\n    var suggestionDiagnostics = createDiagnosticCollection();\n    var typeofType = createTypeofType();\n    var _jsxNamespace;\n    var _jsxFactoryEntity;\n    var subtypeRelation = /* @__PURE__ */ new Map();\n    var strictSubtypeRelation = /* @__PURE__ */ new Map();\n    var assignableRelation = /* @__PURE__ */ new Map();\n    var comparableRelation = /* @__PURE__ */ new Map();\n    var identityRelation = /* @__PURE__ */ new Map();\n    var enumRelation = /* @__PURE__ */ new Map();\n    var builtinGlobals = createSymbolTable();\n    builtinGlobals.set(undefinedSymbol.escapedName, undefinedSymbol);\n    var suggestedExtensions = [\n      [\".mts\", \".mjs\"],\n      [\".ts\", \".js\"],\n      [\".cts\", \".cjs\"],\n      [\".mjs\", \".mjs\"],\n      [\".js\", \".js\"],\n      [\".cjs\", \".cjs\"],\n      [\".tsx\", compilerOptions.jsx === 1 ? \".jsx\" : \".js\"],\n      [\".jsx\", \".jsx\"],\n      [\".json\", \".json\"]\n    ];\n    initializeTypeChecker();\n    return checker;\n    function getCachedType(key) {\n      return key ? cachedTypes.get(key) : void 0;\n    }\n    function setCachedType(key, type) {\n      if (key)\n        cachedTypes.set(key, type);\n      return type;\n    }\n    function getJsxNamespace(location) {\n      if (location) {\n        const file = getSourceFileOfNode(location);\n        if (file) {\n          if (isJsxOpeningFragment(location)) {\n            if (file.localJsxFragmentNamespace) {\n              return file.localJsxFragmentNamespace;\n            }\n            const jsxFragmentPragma = file.pragmas.get(\"jsxfrag\");\n            if (jsxFragmentPragma) {\n              const chosenPragma = isArray(jsxFragmentPragma) ? jsxFragmentPragma[0] : jsxFragmentPragma;\n              file.localJsxFragmentFactory = parseIsolatedEntityName(chosenPragma.arguments.factory, languageVersion);\n              visitNode(file.localJsxFragmentFactory, markAsSynthetic, isEntityName);\n              if (file.localJsxFragmentFactory) {\n                return file.localJsxFragmentNamespace = getFirstIdentifier(file.localJsxFragmentFactory).escapedText;\n              }\n            }\n            const entity = getJsxFragmentFactoryEntity(location);\n            if (entity) {\n              file.localJsxFragmentFactory = entity;\n              return file.localJsxFragmentNamespace = getFirstIdentifier(entity).escapedText;\n            }\n          } else {\n            const localJsxNamespace = getLocalJsxNamespace(file);\n            if (localJsxNamespace) {\n              return file.localJsxNamespace = localJsxNamespace;\n            }\n          }\n        }\n      }\n      if (!_jsxNamespace) {\n        _jsxNamespace = \"React\";\n        if (compilerOptions.jsxFactory) {\n          _jsxFactoryEntity = parseIsolatedEntityName(compilerOptions.jsxFactory, languageVersion);\n          visitNode(_jsxFactoryEntity, markAsSynthetic);\n          if (_jsxFactoryEntity) {\n            _jsxNamespace = getFirstIdentifier(_jsxFactoryEntity).escapedText;\n          }\n        } else if (compilerOptions.reactNamespace) {\n          _jsxNamespace = escapeLeadingUnderscores(compilerOptions.reactNamespace);\n        }\n      }\n      if (!_jsxFactoryEntity) {\n        _jsxFactoryEntity = factory.createQualifiedName(factory.createIdentifier(unescapeLeadingUnderscores(_jsxNamespace)), \"createElement\");\n      }\n      return _jsxNamespace;\n    }\n    function getLocalJsxNamespace(file) {\n      if (file.localJsxNamespace) {\n        return file.localJsxNamespace;\n      }\n      const jsxPragma = file.pragmas.get(\"jsx\");\n      if (jsxPragma) {\n        const chosenPragma = isArray(jsxPragma) ? jsxPragma[0] : jsxPragma;\n        file.localJsxFactory = parseIsolatedEntityName(chosenPragma.arguments.factory, languageVersion);\n        visitNode(file.localJsxFactory, markAsSynthetic, isEntityName);\n        if (file.localJsxFactory) {\n          return file.localJsxNamespace = getFirstIdentifier(file.localJsxFactory).escapedText;\n        }\n      }\n    }\n    function markAsSynthetic(node) {\n      setTextRangePosEnd(node, -1, -1);\n      return visitEachChild(node, markAsSynthetic, nullTransformationContext);\n    }\n    function getEmitResolver(sourceFile, cancellationToken2) {\n      getDiagnostics2(sourceFile, cancellationToken2);\n      return emitResolver;\n    }\n    function lookupOrIssueError(location, message, arg0, arg1, arg2, arg3) {\n      const diagnostic = location ? createDiagnosticForNode(location, message, arg0, arg1, arg2, arg3) : createCompilerDiagnostic(message, arg0, arg1, arg2, arg3);\n      const existing = diagnostics.lookup(diagnostic);\n      if (existing) {\n        return existing;\n      } else {\n        diagnostics.add(diagnostic);\n        return diagnostic;\n      }\n    }\n    function errorSkippedOn(key, location, message, arg0, arg1, arg2, arg3) {\n      const diagnostic = error(location, message, arg0, arg1, arg2, arg3);\n      diagnostic.skippedOn = key;\n      return diagnostic;\n    }\n    function createError(location, message, arg0, arg1, arg2, arg3) {\n      return location ? createDiagnosticForNode(location, message, arg0, arg1, arg2, arg3) : createCompilerDiagnostic(message, arg0, arg1, arg2, arg3);\n    }\n    function error(location, message, arg0, arg1, arg2, arg3) {\n      const diagnostic = createError(location, message, arg0, arg1, arg2, arg3);\n      diagnostics.add(diagnostic);\n      return diagnostic;\n    }\n    function addErrorOrSuggestion(isError, diagnostic) {\n      if (isError) {\n        diagnostics.add(diagnostic);\n      } else {\n        suggestionDiagnostics.add({ ...diagnostic, category: 2 });\n      }\n    }\n    function errorOrSuggestion(isError, location, message, arg0, arg1, arg2, arg3) {\n      if (location.pos < 0 || location.end < 0) {\n        if (!isError) {\n          return;\n        }\n        const file = getSourceFileOfNode(location);\n        addErrorOrSuggestion(isError, \"message\" in message ? createFileDiagnostic(file, 0, 0, message, arg0, arg1, arg2, arg3) : createDiagnosticForFileFromMessageChain(file, message));\n        return;\n      }\n      addErrorOrSuggestion(isError, \"message\" in message ? createDiagnosticForNode(location, message, arg0, arg1, arg2, arg3) : createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(location), location, message));\n    }\n    function errorAndMaybeSuggestAwait(location, maybeMissingAwait, message, arg0, arg1, arg2, arg3) {\n      const diagnostic = error(location, message, arg0, arg1, arg2, arg3);\n      if (maybeMissingAwait) {\n        const related = createDiagnosticForNode(location, Diagnostics.Did_you_forget_to_use_await);\n        addRelatedInfo(diagnostic, related);\n      }\n      return diagnostic;\n    }\n    function addDeprecatedSuggestionWorker(declarations, diagnostic) {\n      const deprecatedTag = Array.isArray(declarations) ? forEach(declarations, getJSDocDeprecatedTag) : getJSDocDeprecatedTag(declarations);\n      if (deprecatedTag) {\n        addRelatedInfo(diagnostic, createDiagnosticForNode(deprecatedTag, Diagnostics.The_declaration_was_marked_as_deprecated_here));\n      }\n      suggestionDiagnostics.add(diagnostic);\n      return diagnostic;\n    }\n    function isDeprecatedSymbol(symbol) {\n      if (length(symbol.declarations) > 1) {\n        const parentSymbol = getParentOfSymbol(symbol);\n        if (parentSymbol && parentSymbol.flags & 64) {\n          return some(symbol.declarations, (d) => !!(getCombinedNodeFlags(d) & 268435456));\n        }\n      }\n      return !!(getDeclarationNodeFlagsFromSymbol(symbol) & 268435456);\n    }\n    function addDeprecatedSuggestion(location, declarations, deprecatedEntity) {\n      const diagnostic = createDiagnosticForNode(location, Diagnostics._0_is_deprecated, deprecatedEntity);\n      return addDeprecatedSuggestionWorker(declarations, diagnostic);\n    }\n    function addDeprecatedSuggestionWithSignature(location, declaration, deprecatedEntity, signatureString) {\n      const diagnostic = deprecatedEntity ? createDiagnosticForNode(location, Diagnostics.The_signature_0_of_1_is_deprecated, signatureString, deprecatedEntity) : createDiagnosticForNode(location, Diagnostics._0_is_deprecated, signatureString);\n      return addDeprecatedSuggestionWorker(declaration, diagnostic);\n    }\n    function createSymbol(flags, name, checkFlags) {\n      symbolCount++;\n      const symbol = new Symbol46(flags | 33554432, name);\n      symbol.links = new SymbolLinks();\n      symbol.links.checkFlags = checkFlags || 0;\n      return symbol;\n    }\n    function createParameter(name, type) {\n      const symbol = createSymbol(1, name);\n      symbol.links.type = type;\n      return symbol;\n    }\n    function createProperty(name, type) {\n      const symbol = createSymbol(4, name);\n      symbol.links.type = type;\n      return symbol;\n    }\n    function getExcludedSymbolFlags(flags) {\n      let result = 0;\n      if (flags & 2)\n        result |= 111551;\n      if (flags & 1)\n        result |= 111550;\n      if (flags & 4)\n        result |= 0;\n      if (flags & 8)\n        result |= 900095;\n      if (flags & 16)\n        result |= 110991;\n      if (flags & 32)\n        result |= 899503;\n      if (flags & 64)\n        result |= 788872;\n      if (flags & 256)\n        result |= 899327;\n      if (flags & 128)\n        result |= 899967;\n      if (flags & 512)\n        result |= 110735;\n      if (flags & 8192)\n        result |= 103359;\n      if (flags & 32768)\n        result |= 46015;\n      if (flags & 65536)\n        result |= 78783;\n      if (flags & 262144)\n        result |= 526824;\n      if (flags & 524288)\n        result |= 788968;\n      if (flags & 2097152)\n        result |= 2097152;\n      return result;\n    }\n    function recordMergedSymbol(target, source) {\n      if (!source.mergeId) {\n        source.mergeId = nextMergeId;\n        nextMergeId++;\n      }\n      mergedSymbols[source.mergeId] = target;\n    }\n    function cloneSymbol(symbol) {\n      const result = createSymbol(symbol.flags, symbol.escapedName);\n      result.declarations = symbol.declarations ? symbol.declarations.slice() : [];\n      result.parent = symbol.parent;\n      if (symbol.valueDeclaration)\n        result.valueDeclaration = symbol.valueDeclaration;\n      if (symbol.constEnumOnlyModule)\n        result.constEnumOnlyModule = true;\n      if (symbol.members)\n        result.members = new Map(symbol.members);\n      if (symbol.exports)\n        result.exports = new Map(symbol.exports);\n      recordMergedSymbol(result, symbol);\n      return result;\n    }\n    function mergeSymbol(target, source, unidirectional = false) {\n      if (!(target.flags & getExcludedSymbolFlags(source.flags)) || (source.flags | target.flags) & 67108864) {\n        if (source === target) {\n          return target;\n        }\n        if (!(target.flags & 33554432)) {\n          const resolvedTarget = resolveSymbol(target);\n          if (resolvedTarget === unknownSymbol) {\n            return source;\n          }\n          target = cloneSymbol(resolvedTarget);\n        }\n        if (source.flags & 512 && target.flags & 512 && target.constEnumOnlyModule && !source.constEnumOnlyModule) {\n          target.constEnumOnlyModule = false;\n        }\n        target.flags |= source.flags;\n        if (source.valueDeclaration) {\n          setValueDeclaration(target, source.valueDeclaration);\n        }\n        addRange(target.declarations, source.declarations);\n        if (source.members) {\n          if (!target.members)\n            target.members = createSymbolTable();\n          mergeSymbolTable(target.members, source.members, unidirectional);\n        }\n        if (source.exports) {\n          if (!target.exports)\n            target.exports = createSymbolTable();\n          mergeSymbolTable(target.exports, source.exports, unidirectional);\n        }\n        if (!unidirectional) {\n          recordMergedSymbol(target, source);\n        }\n      } else if (target.flags & 1024) {\n        if (target !== globalThisSymbol) {\n          error(source.declarations && getNameOfDeclaration(source.declarations[0]), Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity, symbolToString(target));\n        }\n      } else {\n        const isEitherEnum = !!(target.flags & 384 || source.flags & 384);\n        const isEitherBlockScoped = !!(target.flags & 2 || source.flags & 2);\n        const message = isEitherEnum ? Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations : isEitherBlockScoped ? Diagnostics.Cannot_redeclare_block_scoped_variable_0 : Diagnostics.Duplicate_identifier_0;\n        const sourceSymbolFile = source.declarations && getSourceFileOfNode(source.declarations[0]);\n        const targetSymbolFile = target.declarations && getSourceFileOfNode(target.declarations[0]);\n        const isSourcePlainJs = isPlainJsFile(sourceSymbolFile, compilerOptions.checkJs);\n        const isTargetPlainJs = isPlainJsFile(targetSymbolFile, compilerOptions.checkJs);\n        const symbolName2 = symbolToString(source);\n        if (sourceSymbolFile && targetSymbolFile && amalgamatedDuplicates && !isEitherEnum && sourceSymbolFile !== targetSymbolFile) {\n          const firstFile = comparePaths(sourceSymbolFile.path, targetSymbolFile.path) === -1 ? sourceSymbolFile : targetSymbolFile;\n          const secondFile = firstFile === sourceSymbolFile ? targetSymbolFile : sourceSymbolFile;\n          const filesDuplicates = getOrUpdate(amalgamatedDuplicates, `${firstFile.path}|${secondFile.path}`, () => ({ firstFile, secondFile, conflictingSymbols: /* @__PURE__ */ new Map() }));\n          const conflictingSymbolInfo = getOrUpdate(filesDuplicates.conflictingSymbols, symbolName2, () => ({ isBlockScoped: isEitherBlockScoped, firstFileLocations: [], secondFileLocations: [] }));\n          if (!isSourcePlainJs)\n            addDuplicateLocations(conflictingSymbolInfo.firstFileLocations, source);\n          if (!isTargetPlainJs)\n            addDuplicateLocations(conflictingSymbolInfo.secondFileLocations, target);\n        } else {\n          if (!isSourcePlainJs)\n            addDuplicateDeclarationErrorsForSymbols(source, message, symbolName2, target);\n          if (!isTargetPlainJs)\n            addDuplicateDeclarationErrorsForSymbols(target, message, symbolName2, source);\n        }\n      }\n      return target;\n      function addDuplicateLocations(locs, symbol) {\n        if (symbol.declarations) {\n          for (const decl of symbol.declarations) {\n            pushIfUnique(locs, decl);\n          }\n        }\n      }\n    }\n    function addDuplicateDeclarationErrorsForSymbols(target, message, symbolName2, source) {\n      forEach(target.declarations, (node) => {\n        addDuplicateDeclarationError(node, message, symbolName2, source.declarations);\n      });\n    }\n    function addDuplicateDeclarationError(node, message, symbolName2, relatedNodes) {\n      const errorNode = (getExpandoInitializer(node, false) ? getNameOfExpando(node) : getNameOfDeclaration(node)) || node;\n      const err = lookupOrIssueError(errorNode, message, symbolName2);\n      for (const relatedNode of relatedNodes || emptyArray) {\n        const adjustedNode = (getExpandoInitializer(relatedNode, false) ? getNameOfExpando(relatedNode) : getNameOfDeclaration(relatedNode)) || relatedNode;\n        if (adjustedNode === errorNode)\n          continue;\n        err.relatedInformation = err.relatedInformation || [];\n        const leadingMessage = createDiagnosticForNode(adjustedNode, Diagnostics._0_was_also_declared_here, symbolName2);\n        const followOnMessage = createDiagnosticForNode(adjustedNode, Diagnostics.and_here);\n        if (length(err.relatedInformation) >= 5 || some(err.relatedInformation, (r) => compareDiagnostics(r, followOnMessage) === 0 || compareDiagnostics(r, leadingMessage) === 0))\n          continue;\n        addRelatedInfo(err, !length(err.relatedInformation) ? leadingMessage : followOnMessage);\n      }\n    }\n    function combineSymbolTables(first2, second) {\n      if (!(first2 == null ? void 0 : first2.size))\n        return second;\n      if (!(second == null ? void 0 : second.size))\n        return first2;\n      const combined = createSymbolTable();\n      mergeSymbolTable(combined, first2);\n      mergeSymbolTable(combined, second);\n      return combined;\n    }\n    function mergeSymbolTable(target, source, unidirectional = false) {\n      source.forEach((sourceSymbol, id) => {\n        const targetSymbol = target.get(id);\n        target.set(id, targetSymbol ? mergeSymbol(targetSymbol, sourceSymbol, unidirectional) : getMergedSymbol(sourceSymbol));\n      });\n    }\n    function mergeModuleAugmentation(moduleName) {\n      var _a2, _b, _c;\n      const moduleAugmentation = moduleName.parent;\n      if (((_a2 = moduleAugmentation.symbol.declarations) == null ? void 0 : _a2[0]) !== moduleAugmentation) {\n        Debug.assert(moduleAugmentation.symbol.declarations.length > 1);\n        return;\n      }\n      if (isGlobalScopeAugmentation(moduleAugmentation)) {\n        mergeSymbolTable(globals, moduleAugmentation.symbol.exports);\n      } else {\n        const moduleNotFoundError = !(moduleName.parent.parent.flags & 16777216) ? Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found : void 0;\n        let mainModule = resolveExternalModuleNameWorker(moduleName, moduleName, moduleNotFoundError, true);\n        if (!mainModule) {\n          return;\n        }\n        mainModule = resolveExternalModuleSymbol(mainModule);\n        if (mainModule.flags & 1920) {\n          if (some(patternAmbientModules, (module2) => mainModule === module2.symbol)) {\n            const merged = mergeSymbol(moduleAugmentation.symbol, mainModule, true);\n            if (!patternAmbientModuleAugmentations) {\n              patternAmbientModuleAugmentations = /* @__PURE__ */ new Map();\n            }\n            patternAmbientModuleAugmentations.set(moduleName.text, merged);\n          } else {\n            if (((_b = mainModule.exports) == null ? void 0 : _b.get(\"__export\")) && ((_c = moduleAugmentation.symbol.exports) == null ? void 0 : _c.size)) {\n              const resolvedExports = getResolvedMembersOrExportsOfSymbol(mainModule, \"resolvedExports\");\n              for (const [key, value] of arrayFrom(moduleAugmentation.symbol.exports.entries())) {\n                if (resolvedExports.has(key) && !mainModule.exports.has(key)) {\n                  mergeSymbol(resolvedExports.get(key), value);\n                }\n              }\n            }\n            mergeSymbol(mainModule, moduleAugmentation.symbol);\n          }\n        } else {\n          error(moduleName, Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity, moduleName.text);\n        }\n      }\n    }\n    function addToSymbolTable(target, source, message) {\n      source.forEach((sourceSymbol, id) => {\n        const targetSymbol = target.get(id);\n        if (targetSymbol) {\n          forEach(targetSymbol.declarations, addDeclarationDiagnostic(unescapeLeadingUnderscores(id), message));\n        } else {\n          target.set(id, sourceSymbol);\n        }\n      });\n      function addDeclarationDiagnostic(id, message2) {\n        return (declaration) => diagnostics.add(createDiagnosticForNode(declaration, message2, id));\n      }\n    }\n    function getSymbolLinks(symbol) {\n      var _a2;\n      if (symbol.flags & 33554432)\n        return symbol.links;\n      const id = getSymbolId(symbol);\n      return (_a2 = symbolLinks[id]) != null ? _a2 : symbolLinks[id] = new SymbolLinks();\n    }\n    function getNodeLinks(node) {\n      const nodeId = getNodeId(node);\n      return nodeLinks[nodeId] || (nodeLinks[nodeId] = new NodeLinks());\n    }\n    function isGlobalSourceFile(node) {\n      return node.kind === 308 && !isExternalOrCommonJsModule(node);\n    }\n    function getSymbol2(symbols, name, meaning) {\n      if (meaning) {\n        const symbol = getMergedSymbol(symbols.get(name));\n        if (symbol) {\n          Debug.assert((getCheckFlags(symbol) & 1) === 0, \"Should never get an instantiated symbol here.\");\n          if (symbol.flags & meaning) {\n            return symbol;\n          }\n          if (symbol.flags & 2097152) {\n            const targetFlags = getAllSymbolFlags(symbol);\n            if (targetFlags & meaning) {\n              return symbol;\n            }\n          }\n        }\n      }\n    }\n    function getSymbolsOfParameterPropertyDeclaration(parameter, parameterName) {\n      const constructorDeclaration = parameter.parent;\n      const classDeclaration = parameter.parent.parent;\n      const parameterSymbol = getSymbol2(constructorDeclaration.locals, parameterName, 111551);\n      const propertySymbol = getSymbol2(getMembersOfSymbol(classDeclaration.symbol), parameterName, 111551);\n      if (parameterSymbol && propertySymbol) {\n        return [parameterSymbol, propertySymbol];\n      }\n      return Debug.fail(\"There should exist two symbols, one as property declaration and one as parameter declaration\");\n    }\n    function isBlockScopedNameDeclaredBeforeUse(declaration, usage) {\n      const declarationFile = getSourceFileOfNode(declaration);\n      const useFile = getSourceFileOfNode(usage);\n      const declContainer = getEnclosingBlockScopeContainer(declaration);\n      if (declarationFile !== useFile) {\n        if (moduleKind && (declarationFile.externalModuleIndicator || useFile.externalModuleIndicator) || !outFile(compilerOptions) || isInTypeQuery(usage) || declaration.flags & 16777216) {\n          return true;\n        }\n        if (isUsedInFunctionOrInstanceProperty(usage, declaration)) {\n          return true;\n        }\n        const sourceFiles = host.getSourceFiles();\n        return sourceFiles.indexOf(declarationFile) <= sourceFiles.indexOf(useFile);\n      }\n      if (declaration.pos <= usage.pos && !(isPropertyDeclaration(declaration) && isThisProperty(usage.parent) && !declaration.initializer && !declaration.exclamationToken)) {\n        if (declaration.kind === 205) {\n          const errorBindingElement = getAncestor(usage, 205);\n          if (errorBindingElement) {\n            return findAncestor(errorBindingElement, isBindingElement) !== findAncestor(declaration, isBindingElement) || declaration.pos < errorBindingElement.pos;\n          }\n          return isBlockScopedNameDeclaredBeforeUse(getAncestor(declaration, 257), usage);\n        } else if (declaration.kind === 257) {\n          return !isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration, usage);\n        } else if (isClassDeclaration(declaration)) {\n          return !findAncestor(usage, (n) => isComputedPropertyName(n) && n.parent.parent === declaration);\n        } else if (isPropertyDeclaration(declaration)) {\n          return !isPropertyImmediatelyReferencedWithinDeclaration(declaration, usage, false);\n        } else if (isParameterPropertyDeclaration(declaration, declaration.parent)) {\n          return !(getEmitScriptTarget(compilerOptions) === 99 && useDefineForClassFields && getContainingClass(declaration) === getContainingClass(usage) && isUsedInFunctionOrInstanceProperty(usage, declaration));\n        }\n        return true;\n      }\n      if (usage.parent.kind === 278 || usage.parent.kind === 274 && usage.parent.isExportEquals) {\n        return true;\n      }\n      if (usage.kind === 274 && usage.isExportEquals) {\n        return true;\n      }\n      if (!!(usage.flags & 8388608) || isInTypeQuery(usage) || isInAmbientOrTypeNode(usage)) {\n        return true;\n      }\n      if (isUsedInFunctionOrInstanceProperty(usage, declaration)) {\n        if (getEmitScriptTarget(compilerOptions) === 99 && useDefineForClassFields && getContainingClass(declaration) && (isPropertyDeclaration(declaration) || isParameterPropertyDeclaration(declaration, declaration.parent))) {\n          return !isPropertyImmediatelyReferencedWithinDeclaration(declaration, usage, true);\n        } else {\n          return true;\n        }\n      }\n      return false;\n      function isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration2, usage2) {\n        switch (declaration2.parent.parent.kind) {\n          case 240:\n          case 245:\n          case 247:\n            if (isSameScopeDescendentOf(usage2, declaration2, declContainer)) {\n              return true;\n            }\n            break;\n        }\n        const grandparent = declaration2.parent.parent;\n        return isForInOrOfStatement(grandparent) && isSameScopeDescendentOf(usage2, grandparent.expression, declContainer);\n      }\n      function isUsedInFunctionOrInstanceProperty(usage2, declaration2) {\n        return !!findAncestor(usage2, (current) => {\n          if (current === declContainer) {\n            return \"quit\";\n          }\n          if (isFunctionLike(current)) {\n            return true;\n          }\n          if (isClassStaticBlockDeclaration(current)) {\n            return declaration2.pos < usage2.pos;\n          }\n          const propertyDeclaration = tryCast(current.parent, isPropertyDeclaration);\n          if (propertyDeclaration) {\n            const initializerOfProperty = propertyDeclaration.initializer === current;\n            if (initializerOfProperty) {\n              if (isStatic(current.parent)) {\n                if (declaration2.kind === 171) {\n                  return true;\n                }\n                if (isPropertyDeclaration(declaration2) && getContainingClass(usage2) === getContainingClass(declaration2)) {\n                  const propName = declaration2.name;\n                  if (isIdentifier(propName) || isPrivateIdentifier(propName)) {\n                    const type = getTypeOfSymbol(getSymbolOfDeclaration(declaration2));\n                    const staticBlocks = filter(declaration2.parent.members, isClassStaticBlockDeclaration);\n                    if (isPropertyInitializedInStaticBlocks(propName, type, staticBlocks, declaration2.parent.pos, current.pos)) {\n                      return true;\n                    }\n                  }\n                }\n              } else {\n                const isDeclarationInstanceProperty = declaration2.kind === 169 && !isStatic(declaration2);\n                if (!isDeclarationInstanceProperty || getContainingClass(usage2) !== getContainingClass(declaration2)) {\n                  return true;\n                }\n              }\n            }\n          }\n          return false;\n        });\n      }\n      function isPropertyImmediatelyReferencedWithinDeclaration(declaration2, usage2, stopAtAnyPropertyDeclaration) {\n        if (usage2.end > declaration2.end) {\n          return false;\n        }\n        const ancestorChangingReferenceScope = findAncestor(usage2, (node) => {\n          if (node === declaration2) {\n            return \"quit\";\n          }\n          switch (node.kind) {\n            case 216:\n              return true;\n            case 169:\n              return stopAtAnyPropertyDeclaration && (isPropertyDeclaration(declaration2) && node.parent === declaration2.parent || isParameterPropertyDeclaration(declaration2, declaration2.parent) && node.parent === declaration2.parent.parent) ? \"quit\" : true;\n            case 238:\n              switch (node.parent.kind) {\n                case 174:\n                case 171:\n                case 175:\n                  return true;\n                default:\n                  return false;\n              }\n            default:\n              return false;\n          }\n        });\n        return ancestorChangingReferenceScope === void 0;\n      }\n    }\n    function useOuterVariableScopeInParameter(result, location, lastLocation) {\n      const target = getEmitScriptTarget(compilerOptions);\n      const functionLocation = location;\n      if (isParameter(lastLocation) && functionLocation.body && result.valueDeclaration && result.valueDeclaration.pos >= functionLocation.body.pos && result.valueDeclaration.end <= functionLocation.body.end) {\n        if (target >= 2) {\n          const links = getNodeLinks(functionLocation);\n          if (links.declarationRequiresScopeChange === void 0) {\n            links.declarationRequiresScopeChange = forEach(functionLocation.parameters, requiresScopeChange) || false;\n          }\n          return !links.declarationRequiresScopeChange;\n        }\n      }\n      return false;\n      function requiresScopeChange(node) {\n        return requiresScopeChangeWorker(node.name) || !!node.initializer && requiresScopeChangeWorker(node.initializer);\n      }\n      function requiresScopeChangeWorker(node) {\n        switch (node.kind) {\n          case 216:\n          case 215:\n          case 259:\n          case 173:\n            return false;\n          case 171:\n          case 174:\n          case 175:\n          case 299:\n            return requiresScopeChangeWorker(node.name);\n          case 169:\n            if (hasStaticModifier(node)) {\n              return target < 99 || !useDefineForClassFields;\n            }\n            return requiresScopeChangeWorker(node.name);\n          default:\n            if (isNullishCoalesce(node) || isOptionalChain(node)) {\n              return target < 7;\n            }\n            if (isBindingElement(node) && node.dotDotDotToken && isObjectBindingPattern(node.parent)) {\n              return target < 4;\n            }\n            if (isTypeNode(node))\n              return false;\n            return forEachChild(node, requiresScopeChangeWorker) || false;\n        }\n      }\n    }\n    function isConstAssertion(location) {\n      return isAssertionExpression(location) && isConstTypeReference(location.type) || isJSDocTypeTag(location) && isConstTypeReference(location.typeExpression);\n    }\n    function resolveName(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals = false, getSpellingSuggestions = true) {\n      return resolveNameHelper(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSpellingSuggestions, getSymbol2);\n    }\n    function resolveNameHelper(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSpellingSuggestions, lookup) {\n      var _a2, _b, _c;\n      const originalLocation = location;\n      let result;\n      let lastLocation;\n      let lastSelfReferenceLocation;\n      let propertyWithInvalidInitializer;\n      let associatedDeclarationForContainingInitializerOrBindingName;\n      let withinDeferredContext = false;\n      const errorLocation = location;\n      let grandparent;\n      let isInExternalModule = false;\n      loop:\n        while (location) {\n          if (name === \"const\" && isConstAssertion(location)) {\n            return void 0;\n          }\n          if (canHaveLocals(location) && location.locals && !isGlobalSourceFile(location)) {\n            if (result = lookup(location.locals, name, meaning)) {\n              let useResult = true;\n              if (isFunctionLike(location) && lastLocation && lastLocation !== location.body) {\n                if (meaning & result.flags & 788968 && lastLocation.kind !== 323) {\n                  useResult = result.flags & 262144 ? lastLocation === location.type || lastLocation.kind === 166 || lastLocation.kind === 344 || lastLocation.kind === 345 || lastLocation.kind === 165 : false;\n                }\n                if (meaning & result.flags & 3) {\n                  if (useOuterVariableScopeInParameter(result, location, lastLocation)) {\n                    useResult = false;\n                  } else if (result.flags & 1) {\n                    useResult = lastLocation.kind === 166 || lastLocation === location.type && !!findAncestor(result.valueDeclaration, isParameter);\n                  }\n                }\n              } else if (location.kind === 191) {\n                useResult = lastLocation === location.trueType;\n              }\n              if (useResult) {\n                break loop;\n              } else {\n                result = void 0;\n              }\n            }\n          }\n          withinDeferredContext = withinDeferredContext || getIsDeferredContext(location, lastLocation);\n          switch (location.kind) {\n            case 308:\n              if (!isExternalOrCommonJsModule(location))\n                break;\n              isInExternalModule = true;\n            case 264:\n              const moduleExports = ((_a2 = getSymbolOfDeclaration(location)) == null ? void 0 : _a2.exports) || emptySymbols;\n              if (location.kind === 308 || isModuleDeclaration(location) && location.flags & 16777216 && !isGlobalScopeAugmentation(location)) {\n                if (result = moduleExports.get(\"default\")) {\n                  const localSymbol = getLocalSymbolForExportDefault(result);\n                  if (localSymbol && result.flags & meaning && localSymbol.escapedName === name) {\n                    break loop;\n                  }\n                  result = void 0;\n                }\n                const moduleExport = moduleExports.get(name);\n                if (moduleExport && moduleExport.flags === 2097152 && (getDeclarationOfKind(moduleExport, 278) || getDeclarationOfKind(moduleExport, 277))) {\n                  break;\n                }\n              }\n              if (name !== \"default\" && (result = lookup(moduleExports, name, meaning & 2623475))) {\n                if (isSourceFile(location) && location.commonJsModuleIndicator && !((_b = result.declarations) == null ? void 0 : _b.some(isJSDocTypeAlias))) {\n                  result = void 0;\n                } else {\n                  break loop;\n                }\n              }\n              break;\n            case 263:\n              if (result = lookup(((_c = getSymbolOfDeclaration(location)) == null ? void 0 : _c.exports) || emptySymbols, name, meaning & 8)) {\n                if (nameNotFoundMessage && getIsolatedModules(compilerOptions) && !(location.flags & 16777216) && getSourceFileOfNode(location) !== getSourceFileOfNode(result.valueDeclaration)) {\n                  error(errorLocation, Diagnostics.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead, unescapeLeadingUnderscores(name), isolatedModulesLikeFlagName, `${unescapeLeadingUnderscores(getSymbolOfNode(location).escapedName)}.${unescapeLeadingUnderscores(name)}`);\n                }\n                break loop;\n              }\n              break;\n            case 169:\n              if (!isStatic(location)) {\n                const ctor = findConstructorDeclaration(location.parent);\n                if (ctor && ctor.locals) {\n                  if (lookup(ctor.locals, name, meaning & 111551)) {\n                    Debug.assertNode(location, isPropertyDeclaration);\n                    propertyWithInvalidInitializer = location;\n                  }\n                }\n              }\n              break;\n            case 260:\n            case 228:\n            case 261:\n              if (result = lookup(getSymbolOfDeclaration(location).members || emptySymbols, name, meaning & 788968)) {\n                if (!isTypeParameterSymbolDeclaredInContainer(result, location)) {\n                  result = void 0;\n                  break;\n                }\n                if (lastLocation && isStatic(lastLocation)) {\n                  if (nameNotFoundMessage) {\n                    error(errorLocation, Diagnostics.Static_members_cannot_reference_class_type_parameters);\n                  }\n                  return void 0;\n                }\n                break loop;\n              }\n              if (isClassExpression(location) && meaning & 32) {\n                const className = location.name;\n                if (className && name === className.escapedText) {\n                  result = location.symbol;\n                  break loop;\n                }\n              }\n              break;\n            case 230:\n              if (lastLocation === location.expression && location.parent.token === 94) {\n                const container = location.parent.parent;\n                if (isClassLike(container) && (result = lookup(getSymbolOfDeclaration(container).members, name, meaning & 788968))) {\n                  if (nameNotFoundMessage) {\n                    error(errorLocation, Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters);\n                  }\n                  return void 0;\n                }\n              }\n              break;\n            case 164:\n              grandparent = location.parent.parent;\n              if (isClassLike(grandparent) || grandparent.kind === 261) {\n                if (result = lookup(getSymbolOfDeclaration(grandparent).members, name, meaning & 788968)) {\n                  if (nameNotFoundMessage) {\n                    error(errorLocation, Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);\n                  }\n                  return void 0;\n                }\n              }\n              break;\n            case 216:\n              if (getEmitScriptTarget(compilerOptions) >= 2) {\n                break;\n              }\n            case 171:\n            case 173:\n            case 174:\n            case 175:\n            case 259:\n              if (meaning & 3 && name === \"arguments\") {\n                result = argumentsSymbol;\n                break loop;\n              }\n              break;\n            case 215:\n              if (meaning & 3 && name === \"arguments\") {\n                result = argumentsSymbol;\n                break loop;\n              }\n              if (meaning & 16) {\n                const functionName = location.name;\n                if (functionName && name === functionName.escapedText) {\n                  result = location.symbol;\n                  break loop;\n                }\n              }\n              break;\n            case 167:\n              if (location.parent && location.parent.kind === 166) {\n                location = location.parent;\n              }\n              if (location.parent && (isClassElement(location.parent) || location.parent.kind === 260)) {\n                location = location.parent;\n              }\n              break;\n            case 349:\n            case 341:\n            case 343:\n              const root = getJSDocRoot(location);\n              if (root) {\n                location = root.parent;\n              }\n              break;\n            case 166:\n              if (lastLocation && (lastLocation === location.initializer || lastLocation === location.name && isBindingPattern(lastLocation))) {\n                if (!associatedDeclarationForContainingInitializerOrBindingName) {\n                  associatedDeclarationForContainingInitializerOrBindingName = location;\n                }\n              }\n              break;\n            case 205:\n              if (lastLocation && (lastLocation === location.initializer || lastLocation === location.name && isBindingPattern(lastLocation))) {\n                if (isParameterDeclaration(location) && !associatedDeclarationForContainingInitializerOrBindingName) {\n                  associatedDeclarationForContainingInitializerOrBindingName = location;\n                }\n              }\n              break;\n            case 192:\n              if (meaning & 262144) {\n                const parameterName = location.typeParameter.name;\n                if (parameterName && name === parameterName.escapedText) {\n                  result = location.typeParameter.symbol;\n                  break loop;\n                }\n              }\n              break;\n          }\n          if (isSelfReferenceLocation(location)) {\n            lastSelfReferenceLocation = location;\n          }\n          lastLocation = location;\n          location = isJSDocTemplateTag(location) ? getEffectiveContainerForJSDocTemplateTag(location) || location.parent : isJSDocParameterTag(location) || isJSDocReturnTag(location) ? getHostSignatureFromJSDoc(location) || location.parent : location.parent;\n        }\n      if (isUse && result && (!lastSelfReferenceLocation || result !== lastSelfReferenceLocation.symbol)) {\n        result.isReferenced |= meaning;\n      }\n      if (!result) {\n        if (lastLocation) {\n          Debug.assertNode(lastLocation, isSourceFile);\n          if (lastLocation.commonJsModuleIndicator && name === \"exports\" && meaning & lastLocation.symbol.flags) {\n            return lastLocation.symbol;\n          }\n        }\n        if (!excludeGlobals) {\n          result = lookup(globals, name, meaning);\n        }\n      }\n      if (!result) {\n        if (originalLocation && isInJSFile(originalLocation) && originalLocation.parent) {\n          if (isRequireCall(originalLocation.parent, false)) {\n            return requireSymbol;\n          }\n        }\n      }\n      function checkAndReportErrorForInvalidInitializer() {\n        if (propertyWithInvalidInitializer && !(useDefineForClassFields && getEmitScriptTarget(compilerOptions) >= 9)) {\n          error(errorLocation, errorLocation && propertyWithInvalidInitializer.type && textRangeContainsPositionInclusive(propertyWithInvalidInitializer.type, errorLocation.pos) ? Diagnostics.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor : Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor, declarationNameToString(propertyWithInvalidInitializer.name), diagnosticName(nameArg));\n          return true;\n        }\n        return false;\n      }\n      if (!result) {\n        if (nameNotFoundMessage) {\n          addLazyDiagnostic(() => {\n            if (!errorLocation || !checkAndReportErrorForMissingPrefix(errorLocation, name, nameArg) && !checkAndReportErrorForInvalidInitializer() && !checkAndReportErrorForExtendingInterface(errorLocation) && !checkAndReportErrorForUsingTypeAsNamespace(errorLocation, name, meaning) && !checkAndReportErrorForExportingPrimitiveType(errorLocation, name) && !checkAndReportErrorForUsingNamespaceAsTypeOrValue(errorLocation, name, meaning) && !checkAndReportErrorForUsingTypeAsValue(errorLocation, name, meaning) && !checkAndReportErrorForUsingValueAsType(errorLocation, name, meaning)) {\n              let suggestion;\n              let suggestedLib;\n              if (nameArg) {\n                suggestedLib = getSuggestedLibForNonExistentName(nameArg);\n                if (suggestedLib) {\n                  error(errorLocation, nameNotFoundMessage, diagnosticName(nameArg), suggestedLib);\n                }\n              }\n              if (!suggestedLib && getSpellingSuggestions && suggestionCount < maximumSuggestionCount) {\n                suggestion = getSuggestedSymbolForNonexistentSymbol(originalLocation, name, meaning);\n                const isGlobalScopeAugmentationDeclaration = (suggestion == null ? void 0 : suggestion.valueDeclaration) && isAmbientModule(suggestion.valueDeclaration) && isGlobalScopeAugmentation(suggestion.valueDeclaration);\n                if (isGlobalScopeAugmentationDeclaration) {\n                  suggestion = void 0;\n                }\n                if (suggestion) {\n                  const suggestionName = symbolToString(suggestion);\n                  const isUncheckedJS = isUncheckedJSSuggestion(originalLocation, suggestion, false);\n                  const message = meaning === 1920 || nameArg && typeof nameArg !== \"string\" && nodeIsSynthesized(nameArg) ? Diagnostics.Cannot_find_namespace_0_Did_you_mean_1 : isUncheckedJS ? Diagnostics.Could_not_find_name_0_Did_you_mean_1 : Diagnostics.Cannot_find_name_0_Did_you_mean_1;\n                  const diagnostic = createError(errorLocation, message, diagnosticName(nameArg), suggestionName);\n                  addErrorOrSuggestion(!isUncheckedJS, diagnostic);\n                  if (suggestion.valueDeclaration) {\n                    addRelatedInfo(diagnostic, createDiagnosticForNode(suggestion.valueDeclaration, Diagnostics._0_is_declared_here, suggestionName));\n                  }\n                }\n              }\n              if (!suggestion && !suggestedLib && nameArg) {\n                error(errorLocation, nameNotFoundMessage, diagnosticName(nameArg));\n              }\n              suggestionCount++;\n            }\n          });\n        }\n        return void 0;\n      } else if (nameNotFoundMessage && checkAndReportErrorForInvalidInitializer()) {\n        return void 0;\n      }\n      if (nameNotFoundMessage) {\n        addLazyDiagnostic(() => {\n          if (errorLocation && (meaning & 2 || (meaning & 32 || meaning & 384) && (meaning & 111551) === 111551)) {\n            const exportOrLocalSymbol = getExportSymbolOfValueSymbolIfExported(result);\n            if (exportOrLocalSymbol.flags & 2 || exportOrLocalSymbol.flags & 32 || exportOrLocalSymbol.flags & 384) {\n              checkResolvedBlockScopedVariable(exportOrLocalSymbol, errorLocation);\n            }\n          }\n          if (result && isInExternalModule && (meaning & 111551) === 111551 && !(originalLocation.flags & 8388608)) {\n            const merged = getMergedSymbol(result);\n            if (length(merged.declarations) && every(merged.declarations, (d) => isNamespaceExportDeclaration(d) || isSourceFile(d) && !!d.symbol.globalExports)) {\n              errorOrSuggestion(!compilerOptions.allowUmdGlobalAccess, errorLocation, Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead, unescapeLeadingUnderscores(name));\n            }\n          }\n          if (result && associatedDeclarationForContainingInitializerOrBindingName && !withinDeferredContext && (meaning & 111551) === 111551) {\n            const candidate = getMergedSymbol(getLateBoundSymbol(result));\n            const root = getRootDeclaration(associatedDeclarationForContainingInitializerOrBindingName);\n            if (candidate === getSymbolOfDeclaration(associatedDeclarationForContainingInitializerOrBindingName)) {\n              error(errorLocation, Diagnostics.Parameter_0_cannot_reference_itself, declarationNameToString(associatedDeclarationForContainingInitializerOrBindingName.name));\n            } else if (candidate.valueDeclaration && candidate.valueDeclaration.pos > associatedDeclarationForContainingInitializerOrBindingName.pos && root.parent.locals && lookup(root.parent.locals, candidate.escapedName, meaning) === candidate) {\n              error(errorLocation, Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it, declarationNameToString(associatedDeclarationForContainingInitializerOrBindingName.name), declarationNameToString(errorLocation));\n            }\n          }\n          if (result && errorLocation && meaning & 111551 && result.flags & 2097152 && !(result.flags & 111551) && !isValidTypeOnlyAliasUseSite(errorLocation)) {\n            const typeOnlyDeclaration = getTypeOnlyAliasDeclaration(result, 111551);\n            if (typeOnlyDeclaration) {\n              const message = typeOnlyDeclaration.kind === 278 || typeOnlyDeclaration.kind === 275 || typeOnlyDeclaration.kind === 277 ? Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type : Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type;\n              const unescapedName = unescapeLeadingUnderscores(name);\n              addTypeOnlyDeclarationRelatedInfo(error(errorLocation, message, unescapedName), typeOnlyDeclaration, unescapedName);\n            }\n          }\n        });\n      }\n      return result;\n    }\n    function addTypeOnlyDeclarationRelatedInfo(diagnostic, typeOnlyDeclaration, unescapedName) {\n      if (!typeOnlyDeclaration)\n        return diagnostic;\n      return addRelatedInfo(diagnostic, createDiagnosticForNode(typeOnlyDeclaration, typeOnlyDeclaration.kind === 278 || typeOnlyDeclaration.kind === 275 || typeOnlyDeclaration.kind === 277 ? Diagnostics._0_was_exported_here : Diagnostics._0_was_imported_here, unescapedName));\n    }\n    function getIsDeferredContext(location, lastLocation) {\n      if (location.kind !== 216 && location.kind !== 215) {\n        return isTypeQueryNode(location) || (isFunctionLikeDeclaration(location) || location.kind === 169 && !isStatic(location)) && (!lastLocation || lastLocation !== location.name);\n      }\n      if (lastLocation && lastLocation === location.name) {\n        return false;\n      }\n      if (location.asteriskToken || hasSyntacticModifier(location, 512)) {\n        return true;\n      }\n      return !getImmediatelyInvokedFunctionExpression(location);\n    }\n    function isSelfReferenceLocation(node) {\n      switch (node.kind) {\n        case 259:\n        case 260:\n        case 261:\n        case 263:\n        case 262:\n        case 264:\n          return true;\n        default:\n          return false;\n      }\n    }\n    function diagnosticName(nameArg) {\n      return isString(nameArg) ? unescapeLeadingUnderscores(nameArg) : declarationNameToString(nameArg);\n    }\n    function isTypeParameterSymbolDeclaredInContainer(symbol, container) {\n      if (symbol.declarations) {\n        for (const decl of symbol.declarations) {\n          if (decl.kind === 165) {\n            const parent2 = isJSDocTemplateTag(decl.parent) ? getJSDocHost(decl.parent) : decl.parent;\n            if (parent2 === container) {\n              return !(isJSDocTemplateTag(decl.parent) && find(decl.parent.parent.tags, isJSDocTypeAlias));\n            }\n          }\n        }\n      }\n      return false;\n    }\n    function checkAndReportErrorForMissingPrefix(errorLocation, name, nameArg) {\n      if (!isIdentifier(errorLocation) || errorLocation.escapedText !== name || isTypeReferenceIdentifier(errorLocation) || isInTypeQuery(errorLocation)) {\n        return false;\n      }\n      const container = getThisContainer(errorLocation, false, false);\n      let location = container;\n      while (location) {\n        if (isClassLike(location.parent)) {\n          const classSymbol = getSymbolOfDeclaration(location.parent);\n          if (!classSymbol) {\n            break;\n          }\n          const constructorType = getTypeOfSymbol(classSymbol);\n          if (getPropertyOfType(constructorType, name)) {\n            error(errorLocation, Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0, diagnosticName(nameArg), symbolToString(classSymbol));\n            return true;\n          }\n          if (location === container && !isStatic(location)) {\n            const instanceType = getDeclaredTypeOfSymbol(classSymbol).thisType;\n            if (getPropertyOfType(instanceType, name)) {\n              error(errorLocation, Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0, diagnosticName(nameArg));\n              return true;\n            }\n          }\n        }\n        location = location.parent;\n      }\n      return false;\n    }\n    function checkAndReportErrorForExtendingInterface(errorLocation) {\n      const expression = getEntityNameForExtendingInterface(errorLocation);\n      if (expression && resolveEntityName(expression, 64, true)) {\n        error(errorLocation, Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements, getTextOfNode(expression));\n        return true;\n      }\n      return false;\n    }\n    function getEntityNameForExtendingInterface(node) {\n      switch (node.kind) {\n        case 79:\n        case 208:\n          return node.parent ? getEntityNameForExtendingInterface(node.parent) : void 0;\n        case 230:\n          if (isEntityNameExpression(node.expression)) {\n            return node.expression;\n          }\n        default:\n          return void 0;\n      }\n    }\n    function checkAndReportErrorForUsingTypeAsNamespace(errorLocation, name, meaning) {\n      const namespaceMeaning = 1920 | (isInJSFile(errorLocation) ? 111551 : 0);\n      if (meaning === namespaceMeaning) {\n        const symbol = resolveSymbol(resolveName(errorLocation, name, 788968 & ~namespaceMeaning, void 0, void 0, false));\n        const parent2 = errorLocation.parent;\n        if (symbol) {\n          if (isQualifiedName(parent2)) {\n            Debug.assert(parent2.left === errorLocation, \"Should only be resolving left side of qualified name as a namespace\");\n            const propName = parent2.right.escapedText;\n            const propType = getPropertyOfType(getDeclaredTypeOfSymbol(symbol), propName);\n            if (propType) {\n              error(parent2, Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1, unescapeLeadingUnderscores(name), unescapeLeadingUnderscores(propName));\n              return true;\n            }\n          }\n          error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here, unescapeLeadingUnderscores(name));\n          return true;\n        }\n      }\n      return false;\n    }\n    function checkAndReportErrorForUsingValueAsType(errorLocation, name, meaning) {\n      if (meaning & (788968 & ~1920)) {\n        const symbol = resolveSymbol(resolveName(errorLocation, name, ~788968 & 111551, void 0, void 0, false));\n        if (symbol && !(symbol.flags & 1920)) {\n          error(errorLocation, Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0, unescapeLeadingUnderscores(name));\n          return true;\n        }\n      }\n      return false;\n    }\n    function isPrimitiveTypeName(name) {\n      return name === \"any\" || name === \"string\" || name === \"number\" || name === \"boolean\" || name === \"never\" || name === \"unknown\";\n    }\n    function checkAndReportErrorForExportingPrimitiveType(errorLocation, name) {\n      if (isPrimitiveTypeName(name) && errorLocation.parent.kind === 278) {\n        error(errorLocation, Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module, name);\n        return true;\n      }\n      return false;\n    }\n    function checkAndReportErrorForUsingTypeAsValue(errorLocation, name, meaning) {\n      if (meaning & 111551) {\n        if (isPrimitiveTypeName(name)) {\n          if (isExtendedByInterface(errorLocation)) {\n            error(errorLocation, Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes, unescapeLeadingUnderscores(name));\n          } else {\n            error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, unescapeLeadingUnderscores(name));\n          }\n          return true;\n        }\n        const symbol = resolveSymbol(resolveName(errorLocation, name, 788968 & ~111551, void 0, void 0, false));\n        const allFlags = symbol && getAllSymbolFlags(symbol);\n        if (symbol && allFlags !== void 0 && !(allFlags & 111551)) {\n          const rawName = unescapeLeadingUnderscores(name);\n          if (isES2015OrLaterConstructorName(name)) {\n            error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later, rawName);\n          } else if (maybeMappedType(errorLocation, symbol)) {\n            error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0, rawName, rawName === \"K\" ? \"P\" : \"K\");\n          } else {\n            error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, rawName);\n          }\n          return true;\n        }\n      }\n      return false;\n    }\n    function isExtendedByInterface(node) {\n      const grandparent = node.parent.parent;\n      const parentOfGrandparent = grandparent.parent;\n      if (grandparent && parentOfGrandparent) {\n        const isExtending = isHeritageClause(grandparent) && grandparent.token === 94;\n        const isInterface = isInterfaceDeclaration(parentOfGrandparent);\n        return isExtending && isInterface;\n      }\n      return false;\n    }\n    function maybeMappedType(node, symbol) {\n      const container = findAncestor(node.parent, (n) => isComputedPropertyName(n) || isPropertySignature(n) ? false : isTypeLiteralNode(n) || \"quit\");\n      if (container && container.members.length === 1) {\n        const type = getDeclaredTypeOfSymbol(symbol);\n        return !!(type.flags & 1048576) && allTypesAssignableToKind(type, 384, true);\n      }\n      return false;\n    }\n    function isES2015OrLaterConstructorName(n) {\n      switch (n) {\n        case \"Promise\":\n        case \"Symbol\":\n        case \"Map\":\n        case \"WeakMap\":\n        case \"Set\":\n        case \"WeakSet\":\n          return true;\n      }\n      return false;\n    }\n    function checkAndReportErrorForUsingNamespaceAsTypeOrValue(errorLocation, name, meaning) {\n      if (meaning & (111551 & ~788968)) {\n        const symbol = resolveSymbol(resolveName(errorLocation, name, 1024, void 0, void 0, false));\n        if (symbol) {\n          error(errorLocation, Diagnostics.Cannot_use_namespace_0_as_a_value, unescapeLeadingUnderscores(name));\n          return true;\n        }\n      } else if (meaning & (788968 & ~111551)) {\n        const symbol = resolveSymbol(resolveName(errorLocation, name, 1536, void 0, void 0, false));\n        if (symbol) {\n          error(errorLocation, Diagnostics.Cannot_use_namespace_0_as_a_type, unescapeLeadingUnderscores(name));\n          return true;\n        }\n      }\n      return false;\n    }\n    function checkResolvedBlockScopedVariable(result, errorLocation) {\n      var _a2;\n      Debug.assert(!!(result.flags & 2 || result.flags & 32 || result.flags & 384));\n      if (result.flags & (16 | 1 | 67108864) && result.flags & 32) {\n        return;\n      }\n      const declaration = (_a2 = result.declarations) == null ? void 0 : _a2.find((d) => isBlockOrCatchScoped(d) || isClassLike(d) || d.kind === 263);\n      if (declaration === void 0)\n        return Debug.fail(\"checkResolvedBlockScopedVariable could not find block-scoped declaration\");\n      if (!(declaration.flags & 16777216) && !isBlockScopedNameDeclaredBeforeUse(declaration, errorLocation)) {\n        let diagnosticMessage;\n        const declarationName = declarationNameToString(getNameOfDeclaration(declaration));\n        if (result.flags & 2) {\n          diagnosticMessage = error(errorLocation, Diagnostics.Block_scoped_variable_0_used_before_its_declaration, declarationName);\n        } else if (result.flags & 32) {\n          diagnosticMessage = error(errorLocation, Diagnostics.Class_0_used_before_its_declaration, declarationName);\n        } else if (result.flags & 256) {\n          diagnosticMessage = error(errorLocation, Diagnostics.Enum_0_used_before_its_declaration, declarationName);\n        } else {\n          Debug.assert(!!(result.flags & 128));\n          if (shouldPreserveConstEnums(compilerOptions)) {\n            diagnosticMessage = error(errorLocation, Diagnostics.Enum_0_used_before_its_declaration, declarationName);\n          }\n        }\n        if (diagnosticMessage) {\n          addRelatedInfo(diagnosticMessage, createDiagnosticForNode(declaration, Diagnostics._0_is_declared_here, declarationName));\n        }\n      }\n    }\n    function isSameScopeDescendentOf(initial, parent2, stopAt) {\n      return !!parent2 && !!findAncestor(initial, (n) => n === parent2 || (n === stopAt || isFunctionLike(n) && (!getImmediatelyInvokedFunctionExpression(n) || isAsyncFunction(n)) ? \"quit\" : false));\n    }\n    function getAnyImportSyntax(node) {\n      switch (node.kind) {\n        case 268:\n          return node;\n        case 270:\n          return node.parent;\n        case 271:\n          return node.parent.parent;\n        case 273:\n          return node.parent.parent.parent;\n        default:\n          return void 0;\n      }\n    }\n    function getDeclarationOfAliasSymbol(symbol) {\n      return symbol.declarations && findLast(symbol.declarations, isAliasSymbolDeclaration2);\n    }\n    function isAliasSymbolDeclaration2(node) {\n      return node.kind === 268 || node.kind === 267 || node.kind === 270 && !!node.name || node.kind === 271 || node.kind === 277 || node.kind === 273 || node.kind === 278 || node.kind === 274 && exportAssignmentIsAlias(node) || isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 2 && exportAssignmentIsAlias(node) || isAccessExpression(node) && isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 63 && isAliasableOrJsExpression(node.parent.right) || node.kind === 300 || node.kind === 299 && isAliasableOrJsExpression(node.initializer) || node.kind === 257 && isVariableDeclarationInitializedToBareOrAccessedRequire(node) || node.kind === 205 && isVariableDeclarationInitializedToBareOrAccessedRequire(node.parent.parent);\n    }\n    function isAliasableOrJsExpression(e) {\n      return isAliasableExpression(e) || isFunctionExpression(e) && isJSConstructor(e);\n    }\n    function getTargetOfImportEqualsDeclaration(node, dontResolveAlias) {\n      const commonJSPropertyAccess = getCommonJSPropertyAccess(node);\n      if (commonJSPropertyAccess) {\n        const name = getLeftmostAccessExpression(commonJSPropertyAccess.expression).arguments[0];\n        return isIdentifier(commonJSPropertyAccess.name) ? resolveSymbol(getPropertyOfType(resolveExternalModuleTypeByLiteral(name), commonJSPropertyAccess.name.escapedText)) : void 0;\n      }\n      if (isVariableDeclaration(node) || node.moduleReference.kind === 280) {\n        const immediate = resolveExternalModuleName(node, getExternalModuleRequireArgument(node) || getExternalModuleImportEqualsDeclarationExpression(node));\n        const resolved2 = resolveExternalModuleSymbol(immediate);\n        markSymbolOfAliasDeclarationIfTypeOnly(node, immediate, resolved2, false);\n        return resolved2;\n      }\n      const resolved = getSymbolOfPartOfRightHandSideOfImportEquals(node.moduleReference, dontResolveAlias);\n      checkAndReportErrorForResolvingImportAliasToTypeOnlySymbol(node, resolved);\n      return resolved;\n    }\n    function checkAndReportErrorForResolvingImportAliasToTypeOnlySymbol(node, resolved) {\n      if (markSymbolOfAliasDeclarationIfTypeOnly(node, void 0, resolved, false) && !node.isTypeOnly) {\n        const typeOnlyDeclaration = getTypeOnlyAliasDeclaration(getSymbolOfDeclaration(node));\n        const isExport = typeOnlyDeclaration.kind === 278 || typeOnlyDeclaration.kind === 275;\n        const message = isExport ? Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type : Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type;\n        const relatedMessage = isExport ? Diagnostics._0_was_exported_here : Diagnostics._0_was_imported_here;\n        const name = typeOnlyDeclaration.kind === 275 ? \"*\" : unescapeLeadingUnderscores(typeOnlyDeclaration.name.escapedText);\n        addRelatedInfo(error(node.moduleReference, message), createDiagnosticForNode(typeOnlyDeclaration, relatedMessage, name));\n      }\n    }\n    function resolveExportByName(moduleSymbol, name, sourceNode, dontResolveAlias) {\n      const exportValue = moduleSymbol.exports.get(\"export=\");\n      const exportSymbol = exportValue ? getPropertyOfType(getTypeOfSymbol(exportValue), name, true) : moduleSymbol.exports.get(name);\n      const resolved = resolveSymbol(exportSymbol, dontResolveAlias);\n      markSymbolOfAliasDeclarationIfTypeOnly(sourceNode, exportSymbol, resolved, false);\n      return resolved;\n    }\n    function isSyntacticDefault(node) {\n      return isExportAssignment(node) && !node.isExportEquals || hasSyntacticModifier(node, 1024) || isExportSpecifier(node);\n    }\n    function getUsageModeForExpression(usage) {\n      return isStringLiteralLike(usage) ? getModeForUsageLocation(getSourceFileOfNode(usage), usage) : void 0;\n    }\n    function isESMFormatImportImportingCommonjsFormatFile(usageMode, targetMode) {\n      return usageMode === 99 && targetMode === 1;\n    }\n    function isOnlyImportedAsDefault(usage) {\n      const usageMode = getUsageModeForExpression(usage);\n      return usageMode === 99 && endsWith(usage.text, \".json\");\n    }\n    function canHaveSyntheticDefault(file, moduleSymbol, dontResolveAlias, usage) {\n      const usageMode = file && getUsageModeForExpression(usage);\n      if (file && usageMode !== void 0) {\n        const result = isESMFormatImportImportingCommonjsFormatFile(usageMode, file.impliedNodeFormat);\n        if (usageMode === 99 || result) {\n          return result;\n        }\n      }\n      if (!allowSyntheticDefaultImports) {\n        return false;\n      }\n      if (!file || file.isDeclarationFile) {\n        const defaultExportSymbol = resolveExportByName(moduleSymbol, \"default\", void 0, true);\n        if (defaultExportSymbol && some(defaultExportSymbol.declarations, isSyntacticDefault)) {\n          return false;\n        }\n        if (resolveExportByName(moduleSymbol, escapeLeadingUnderscores(\"__esModule\"), void 0, dontResolveAlias)) {\n          return false;\n        }\n        return true;\n      }\n      if (!isSourceFileJS(file)) {\n        return hasExportAssignmentSymbol(moduleSymbol);\n      }\n      return typeof file.externalModuleIndicator !== \"object\" && !resolveExportByName(moduleSymbol, escapeLeadingUnderscores(\"__esModule\"), void 0, dontResolveAlias);\n    }\n    function getTargetOfImportClause(node, dontResolveAlias) {\n      const moduleSymbol = resolveExternalModuleName(node, node.parent.moduleSpecifier);\n      if (moduleSymbol) {\n        return getTargetofModuleDefault(moduleSymbol, node, dontResolveAlias);\n      }\n    }\n    function getTargetofModuleDefault(moduleSymbol, node, dontResolveAlias) {\n      var _a2;\n      let exportDefaultSymbol;\n      if (isShorthandAmbientModuleSymbol(moduleSymbol)) {\n        exportDefaultSymbol = moduleSymbol;\n      } else {\n        exportDefaultSymbol = resolveExportByName(moduleSymbol, \"default\", node, dontResolveAlias);\n      }\n      const file = (_a2 = moduleSymbol.declarations) == null ? void 0 : _a2.find(isSourceFile);\n      const specifier = getModuleSpecifierForImportOrExport(node);\n      if (!specifier) {\n        return exportDefaultSymbol;\n      }\n      const hasDefaultOnly = isOnlyImportedAsDefault(specifier);\n      const hasSyntheticDefault = canHaveSyntheticDefault(file, moduleSymbol, dontResolveAlias, specifier);\n      if (!exportDefaultSymbol && !hasSyntheticDefault && !hasDefaultOnly) {\n        if (hasExportAssignmentSymbol(moduleSymbol) && !(getAllowSyntheticDefaultImports(compilerOptions) || getESModuleInterop(compilerOptions))) {\n          const compilerOptionName = moduleKind >= 5 ? \"allowSyntheticDefaultImports\" : \"esModuleInterop\";\n          const exportEqualsSymbol = moduleSymbol.exports.get(\"export=\");\n          const exportAssignment = exportEqualsSymbol.valueDeclaration;\n          const err = error(node.name, Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag, symbolToString(moduleSymbol), compilerOptionName);\n          if (exportAssignment) {\n            addRelatedInfo(err, createDiagnosticForNode(exportAssignment, Diagnostics.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag, compilerOptionName));\n          }\n        } else if (isImportClause(node)) {\n          reportNonDefaultExport(moduleSymbol, node);\n        } else {\n          errorNoModuleMemberSymbol(moduleSymbol, moduleSymbol, node, isImportOrExportSpecifier(node) && node.propertyName || node.name);\n        }\n      } else if (hasSyntheticDefault || hasDefaultOnly) {\n        const resolved = resolveExternalModuleSymbol(moduleSymbol, dontResolveAlias) || resolveSymbol(moduleSymbol, dontResolveAlias);\n        markSymbolOfAliasDeclarationIfTypeOnly(node, moduleSymbol, resolved, false);\n        return resolved;\n      }\n      markSymbolOfAliasDeclarationIfTypeOnly(node, exportDefaultSymbol, void 0, false);\n      return exportDefaultSymbol;\n    }\n    function getModuleSpecifierForImportOrExport(node) {\n      switch (node.kind) {\n        case 270:\n          return node.parent.moduleSpecifier;\n        case 268:\n          return isExternalModuleReference(node.moduleReference) ? node.moduleReference.expression : void 0;\n        case 271:\n          return node.parent.parent.moduleSpecifier;\n        case 273:\n          return node.parent.parent.parent.moduleSpecifier;\n        case 278:\n          return node.parent.parent.moduleSpecifier;\n        default:\n          return Debug.assertNever(node);\n      }\n    }\n    function reportNonDefaultExport(moduleSymbol, node) {\n      var _a2, _b, _c;\n      if ((_a2 = moduleSymbol.exports) == null ? void 0 : _a2.has(node.symbol.escapedName)) {\n        error(node.name, Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead, symbolToString(moduleSymbol), symbolToString(node.symbol));\n      } else {\n        const diagnostic = error(node.name, Diagnostics.Module_0_has_no_default_export, symbolToString(moduleSymbol));\n        const exportStar = (_b = moduleSymbol.exports) == null ? void 0 : _b.get(\"__export\");\n        if (exportStar) {\n          const defaultExport = (_c = exportStar.declarations) == null ? void 0 : _c.find((decl) => {\n            var _a3, _b2;\n            return !!(isExportDeclaration(decl) && decl.moduleSpecifier && ((_b2 = (_a3 = resolveExternalModuleName(decl, decl.moduleSpecifier)) == null ? void 0 : _a3.exports) == null ? void 0 : _b2.has(\"default\")));\n          });\n          if (defaultExport) {\n            addRelatedInfo(diagnostic, createDiagnosticForNode(defaultExport, Diagnostics.export_Asterisk_does_not_re_export_a_default));\n          }\n        }\n      }\n    }\n    function getTargetOfNamespaceImport(node, dontResolveAlias) {\n      const moduleSpecifier = node.parent.parent.moduleSpecifier;\n      const immediate = resolveExternalModuleName(node, moduleSpecifier);\n      const resolved = resolveESModuleSymbol(immediate, moduleSpecifier, dontResolveAlias, false);\n      markSymbolOfAliasDeclarationIfTypeOnly(node, immediate, resolved, false);\n      return resolved;\n    }\n    function getTargetOfNamespaceExport(node, dontResolveAlias) {\n      const moduleSpecifier = node.parent.moduleSpecifier;\n      const immediate = moduleSpecifier && resolveExternalModuleName(node, moduleSpecifier);\n      const resolved = moduleSpecifier && resolveESModuleSymbol(immediate, moduleSpecifier, dontResolveAlias, false);\n      markSymbolOfAliasDeclarationIfTypeOnly(node, immediate, resolved, false);\n      return resolved;\n    }\n    function combineValueAndTypeSymbols(valueSymbol, typeSymbol) {\n      if (valueSymbol === unknownSymbol && typeSymbol === unknownSymbol) {\n        return unknownSymbol;\n      }\n      if (valueSymbol.flags & (788968 | 1920)) {\n        return valueSymbol;\n      }\n      const result = createSymbol(valueSymbol.flags | typeSymbol.flags, valueSymbol.escapedName);\n      Debug.assert(valueSymbol.declarations || typeSymbol.declarations);\n      result.declarations = deduplicate(concatenate(valueSymbol.declarations, typeSymbol.declarations), equateValues);\n      result.parent = valueSymbol.parent || typeSymbol.parent;\n      if (valueSymbol.valueDeclaration)\n        result.valueDeclaration = valueSymbol.valueDeclaration;\n      if (typeSymbol.members)\n        result.members = new Map(typeSymbol.members);\n      if (valueSymbol.exports)\n        result.exports = new Map(valueSymbol.exports);\n      return result;\n    }\n    function getExportOfModule(symbol, name, specifier, dontResolveAlias) {\n      var _a2;\n      if (symbol.flags & 1536) {\n        const exportSymbol = getExportsOfSymbol(symbol).get(name.escapedText);\n        const resolved = resolveSymbol(exportSymbol, dontResolveAlias);\n        const exportStarDeclaration = (_a2 = getSymbolLinks(symbol).typeOnlyExportStarMap) == null ? void 0 : _a2.get(name.escapedText);\n        markSymbolOfAliasDeclarationIfTypeOnly(specifier, exportSymbol, resolved, false, exportStarDeclaration, name.escapedText);\n        return resolved;\n      }\n    }\n    function getPropertyOfVariable(symbol, name) {\n      if (symbol.flags & 3) {\n        const typeAnnotation = symbol.valueDeclaration.type;\n        if (typeAnnotation) {\n          return resolveSymbol(getPropertyOfType(getTypeFromTypeNode(typeAnnotation), name));\n        }\n      }\n    }\n    function getExternalModuleMember(node, specifier, dontResolveAlias = false) {\n      var _a2;\n      const moduleSpecifier = getExternalModuleRequireArgument(node) || node.moduleSpecifier;\n      const moduleSymbol = resolveExternalModuleName(node, moduleSpecifier);\n      const name = !isPropertyAccessExpression(specifier) && specifier.propertyName || specifier.name;\n      if (!isIdentifier(name)) {\n        return void 0;\n      }\n      const suppressInteropError = name.escapedText === \"default\" && !!(compilerOptions.allowSyntheticDefaultImports || getESModuleInterop(compilerOptions));\n      const targetSymbol = resolveESModuleSymbol(moduleSymbol, moduleSpecifier, false, suppressInteropError);\n      if (targetSymbol) {\n        if (name.escapedText) {\n          if (isShorthandAmbientModuleSymbol(moduleSymbol)) {\n            return moduleSymbol;\n          }\n          let symbolFromVariable;\n          if (moduleSymbol && moduleSymbol.exports && moduleSymbol.exports.get(\"export=\")) {\n            symbolFromVariable = getPropertyOfType(getTypeOfSymbol(targetSymbol), name.escapedText, true);\n          } else {\n            symbolFromVariable = getPropertyOfVariable(targetSymbol, name.escapedText);\n          }\n          symbolFromVariable = resolveSymbol(symbolFromVariable, dontResolveAlias);\n          let symbolFromModule = getExportOfModule(targetSymbol, name, specifier, dontResolveAlias);\n          if (symbolFromModule === void 0 && name.escapedText === \"default\") {\n            const file = (_a2 = moduleSymbol.declarations) == null ? void 0 : _a2.find(isSourceFile);\n            if (isOnlyImportedAsDefault(moduleSpecifier) || canHaveSyntheticDefault(file, moduleSymbol, dontResolveAlias, moduleSpecifier)) {\n              symbolFromModule = resolveExternalModuleSymbol(moduleSymbol, dontResolveAlias) || resolveSymbol(moduleSymbol, dontResolveAlias);\n            }\n          }\n          const symbol = symbolFromModule && symbolFromVariable && symbolFromModule !== symbolFromVariable ? combineValueAndTypeSymbols(symbolFromVariable, symbolFromModule) : symbolFromModule || symbolFromVariable;\n          if (!symbol) {\n            errorNoModuleMemberSymbol(moduleSymbol, targetSymbol, node, name);\n          }\n          return symbol;\n        }\n      }\n    }\n    function errorNoModuleMemberSymbol(moduleSymbol, targetSymbol, node, name) {\n      var _a2;\n      const moduleName = getFullyQualifiedName(moduleSymbol, node);\n      const declarationName = declarationNameToString(name);\n      const suggestion = getSuggestedSymbolForNonexistentModule(name, targetSymbol);\n      if (suggestion !== void 0) {\n        const suggestionName = symbolToString(suggestion);\n        const diagnostic = error(name, Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, moduleName, declarationName, suggestionName);\n        if (suggestion.valueDeclaration) {\n          addRelatedInfo(diagnostic, createDiagnosticForNode(suggestion.valueDeclaration, Diagnostics._0_is_declared_here, suggestionName));\n        }\n      } else {\n        if ((_a2 = moduleSymbol.exports) == null ? void 0 : _a2.has(\"default\")) {\n          error(name, Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead, moduleName, declarationName);\n        } else {\n          reportNonExportedMember(node, name, declarationName, moduleSymbol, moduleName);\n        }\n      }\n    }\n    function reportNonExportedMember(node, name, declarationName, moduleSymbol, moduleName) {\n      var _a2, _b;\n      const localSymbol = (_b = (_a2 = tryCast(moduleSymbol.valueDeclaration, canHaveLocals)) == null ? void 0 : _a2.locals) == null ? void 0 : _b.get(name.escapedText);\n      const exports = moduleSymbol.exports;\n      if (localSymbol) {\n        const exportedEqualsSymbol = exports == null ? void 0 : exports.get(\"export=\");\n        if (exportedEqualsSymbol) {\n          getSymbolIfSameReference(exportedEqualsSymbol, localSymbol) ? reportInvalidImportEqualsExportMember(node, name, declarationName, moduleName) : error(name, Diagnostics.Module_0_has_no_exported_member_1, moduleName, declarationName);\n        } else {\n          const exportedSymbol = exports ? find(symbolsToArray(exports), (symbol) => !!getSymbolIfSameReference(symbol, localSymbol)) : void 0;\n          const diagnostic = exportedSymbol ? error(name, Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2, moduleName, declarationName, symbolToString(exportedSymbol)) : error(name, Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported, moduleName, declarationName);\n          if (localSymbol.declarations) {\n            addRelatedInfo(diagnostic, ...map(localSymbol.declarations, (decl, index) => createDiagnosticForNode(decl, index === 0 ? Diagnostics._0_is_declared_here : Diagnostics.and_here, declarationName)));\n          }\n        }\n      } else {\n        error(name, Diagnostics.Module_0_has_no_exported_member_1, moduleName, declarationName);\n      }\n    }\n    function reportInvalidImportEqualsExportMember(node, name, declarationName, moduleName) {\n      if (moduleKind >= 5) {\n        const message = getESModuleInterop(compilerOptions) ? Diagnostics._0_can_only_be_imported_by_using_a_default_import : Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;\n        error(name, message, declarationName);\n      } else {\n        if (isInJSFile(node)) {\n          const message = getESModuleInterop(compilerOptions) ? Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import : Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;\n          error(name, message, declarationName);\n        } else {\n          const message = getESModuleInterop(compilerOptions) ? Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import : Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;\n          error(name, message, declarationName, declarationName, moduleName);\n        }\n      }\n    }\n    function getTargetOfImportSpecifier(node, dontResolveAlias) {\n      if (isImportSpecifier(node) && idText(node.propertyName || node.name) === \"default\") {\n        const specifier = getModuleSpecifierForImportOrExport(node);\n        const moduleSymbol = specifier && resolveExternalModuleName(node, specifier);\n        if (moduleSymbol) {\n          return getTargetofModuleDefault(moduleSymbol, node, dontResolveAlias);\n        }\n      }\n      const root = isBindingElement(node) ? getRootDeclaration(node) : node.parent.parent.parent;\n      const commonJSPropertyAccess = getCommonJSPropertyAccess(root);\n      const resolved = getExternalModuleMember(root, commonJSPropertyAccess || node, dontResolveAlias);\n      const name = node.propertyName || node.name;\n      if (commonJSPropertyAccess && resolved && isIdentifier(name)) {\n        return resolveSymbol(getPropertyOfType(getTypeOfSymbol(resolved), name.escapedText), dontResolveAlias);\n      }\n      markSymbolOfAliasDeclarationIfTypeOnly(node, void 0, resolved, false);\n      return resolved;\n    }\n    function getCommonJSPropertyAccess(node) {\n      if (isVariableDeclaration(node) && node.initializer && isPropertyAccessExpression(node.initializer)) {\n        return node.initializer;\n      }\n    }\n    function getTargetOfNamespaceExportDeclaration(node, dontResolveAlias) {\n      if (canHaveSymbol(node.parent)) {\n        const resolved = resolveExternalModuleSymbol(node.parent.symbol, dontResolveAlias);\n        markSymbolOfAliasDeclarationIfTypeOnly(node, void 0, resolved, false);\n        return resolved;\n      }\n    }\n    function getTargetOfExportSpecifier(node, meaning, dontResolveAlias) {\n      if (idText(node.propertyName || node.name) === \"default\") {\n        const specifier = getModuleSpecifierForImportOrExport(node);\n        const moduleSymbol = specifier && resolveExternalModuleName(node, specifier);\n        if (moduleSymbol) {\n          return getTargetofModuleDefault(moduleSymbol, node, !!dontResolveAlias);\n        }\n      }\n      const resolved = node.parent.parent.moduleSpecifier ? getExternalModuleMember(node.parent.parent, node, dontResolveAlias) : resolveEntityName(node.propertyName || node.name, meaning, false, dontResolveAlias);\n      markSymbolOfAliasDeclarationIfTypeOnly(node, void 0, resolved, false);\n      return resolved;\n    }\n    function getTargetOfExportAssignment(node, dontResolveAlias) {\n      const expression = isExportAssignment(node) ? node.expression : node.right;\n      const resolved = getTargetOfAliasLikeExpression(expression, dontResolveAlias);\n      markSymbolOfAliasDeclarationIfTypeOnly(node, void 0, resolved, false);\n      return resolved;\n    }\n    function getTargetOfAliasLikeExpression(expression, dontResolveAlias) {\n      if (isClassExpression(expression)) {\n        return checkExpressionCached(expression).symbol;\n      }\n      if (!isEntityName(expression) && !isEntityNameExpression(expression)) {\n        return void 0;\n      }\n      const aliasLike = resolveEntityName(expression, 111551 | 788968 | 1920, true, dontResolveAlias);\n      if (aliasLike) {\n        return aliasLike;\n      }\n      checkExpressionCached(expression);\n      return getNodeLinks(expression).resolvedSymbol;\n    }\n    function getTargetOfAccessExpression(node, dontRecursivelyResolve) {\n      if (!(isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 63)) {\n        return void 0;\n      }\n      return getTargetOfAliasLikeExpression(node.parent.right, dontRecursivelyResolve);\n    }\n    function getTargetOfAliasDeclaration(node, dontRecursivelyResolve = false) {\n      switch (node.kind) {\n        case 268:\n        case 257:\n          return getTargetOfImportEqualsDeclaration(node, dontRecursivelyResolve);\n        case 270:\n          return getTargetOfImportClause(node, dontRecursivelyResolve);\n        case 271:\n          return getTargetOfNamespaceImport(node, dontRecursivelyResolve);\n        case 277:\n          return getTargetOfNamespaceExport(node, dontRecursivelyResolve);\n        case 273:\n        case 205:\n          return getTargetOfImportSpecifier(node, dontRecursivelyResolve);\n        case 278:\n          return getTargetOfExportSpecifier(node, 111551 | 788968 | 1920, dontRecursivelyResolve);\n        case 274:\n        case 223:\n          return getTargetOfExportAssignment(node, dontRecursivelyResolve);\n        case 267:\n          return getTargetOfNamespaceExportDeclaration(node, dontRecursivelyResolve);\n        case 300:\n          return resolveEntityName(node.name, 111551 | 788968 | 1920, true, dontRecursivelyResolve);\n        case 299:\n          return getTargetOfAliasLikeExpression(node.initializer, dontRecursivelyResolve);\n        case 209:\n        case 208:\n          return getTargetOfAccessExpression(node, dontRecursivelyResolve);\n        default:\n          return Debug.fail();\n      }\n    }\n    function isNonLocalAlias(symbol, excludes = 111551 | 788968 | 1920) {\n      if (!symbol)\n        return false;\n      return (symbol.flags & (2097152 | excludes)) === 2097152 || !!(symbol.flags & 2097152 && symbol.flags & 67108864);\n    }\n    function resolveSymbol(symbol, dontResolveAlias) {\n      return !dontResolveAlias && isNonLocalAlias(symbol) ? resolveAlias(symbol) : symbol;\n    }\n    function resolveAlias(symbol) {\n      Debug.assert((symbol.flags & 2097152) !== 0, \"Should only get Alias here.\");\n      const links = getSymbolLinks(symbol);\n      if (!links.aliasTarget) {\n        links.aliasTarget = resolvingSymbol;\n        const node = getDeclarationOfAliasSymbol(symbol);\n        if (!node)\n          return Debug.fail();\n        const target = getTargetOfAliasDeclaration(node);\n        if (links.aliasTarget === resolvingSymbol) {\n          links.aliasTarget = target || unknownSymbol;\n        } else {\n          error(node, Diagnostics.Circular_definition_of_import_alias_0, symbolToString(symbol));\n        }\n      } else if (links.aliasTarget === resolvingSymbol) {\n        links.aliasTarget = unknownSymbol;\n      }\n      return links.aliasTarget;\n    }\n    function tryResolveAlias(symbol) {\n      const links = getSymbolLinks(symbol);\n      if (links.aliasTarget !== resolvingSymbol) {\n        return resolveAlias(symbol);\n      }\n      return void 0;\n    }\n    function getAllSymbolFlags(symbol) {\n      let flags = symbol.flags;\n      let seenSymbols;\n      while (symbol.flags & 2097152) {\n        const target = resolveAlias(symbol);\n        if (target === unknownSymbol) {\n          return 67108863;\n        }\n        if (target === symbol || (seenSymbols == null ? void 0 : seenSymbols.has(target))) {\n          break;\n        }\n        if (target.flags & 2097152) {\n          if (seenSymbols) {\n            seenSymbols.add(target);\n          } else {\n            seenSymbols = /* @__PURE__ */ new Set([symbol, target]);\n          }\n        }\n        flags |= target.flags;\n        symbol = target;\n      }\n      return flags;\n    }\n    function markSymbolOfAliasDeclarationIfTypeOnly(aliasDeclaration, immediateTarget, finalTarget, overwriteEmpty, exportStarDeclaration, exportStarName) {\n      if (!aliasDeclaration || isPropertyAccessExpression(aliasDeclaration))\n        return false;\n      const sourceSymbol = getSymbolOfDeclaration(aliasDeclaration);\n      if (isTypeOnlyImportOrExportDeclaration(aliasDeclaration)) {\n        const links2 = getSymbolLinks(sourceSymbol);\n        links2.typeOnlyDeclaration = aliasDeclaration;\n        return true;\n      }\n      if (exportStarDeclaration) {\n        const links2 = getSymbolLinks(sourceSymbol);\n        links2.typeOnlyDeclaration = exportStarDeclaration;\n        if (sourceSymbol.escapedName !== exportStarName) {\n          links2.typeOnlyExportStarName = exportStarName;\n        }\n        return true;\n      }\n      const links = getSymbolLinks(sourceSymbol);\n      return markSymbolOfAliasDeclarationIfTypeOnlyWorker(links, immediateTarget, overwriteEmpty) || markSymbolOfAliasDeclarationIfTypeOnlyWorker(links, finalTarget, overwriteEmpty);\n    }\n    function markSymbolOfAliasDeclarationIfTypeOnlyWorker(aliasDeclarationLinks, target, overwriteEmpty) {\n      var _a2, _b, _c;\n      if (target && (aliasDeclarationLinks.typeOnlyDeclaration === void 0 || overwriteEmpty && aliasDeclarationLinks.typeOnlyDeclaration === false)) {\n        const exportSymbol = (_b = (_a2 = target.exports) == null ? void 0 : _a2.get(\"export=\")) != null ? _b : target;\n        const typeOnly = exportSymbol.declarations && find(exportSymbol.declarations, isTypeOnlyImportOrExportDeclaration);\n        aliasDeclarationLinks.typeOnlyDeclaration = (_c = typeOnly != null ? typeOnly : getSymbolLinks(exportSymbol).typeOnlyDeclaration) != null ? _c : false;\n      }\n      return !!aliasDeclarationLinks.typeOnlyDeclaration;\n    }\n    function getTypeOnlyAliasDeclaration(symbol, include) {\n      if (!(symbol.flags & 2097152)) {\n        return void 0;\n      }\n      const links = getSymbolLinks(symbol);\n      if (include === void 0) {\n        return links.typeOnlyDeclaration || void 0;\n      }\n      if (links.typeOnlyDeclaration) {\n        const resolved = links.typeOnlyDeclaration.kind === 275 ? resolveSymbol(getExportsOfModule(links.typeOnlyDeclaration.symbol.parent).get(links.typeOnlyExportStarName || symbol.escapedName)) : resolveAlias(links.typeOnlyDeclaration.symbol);\n        return getAllSymbolFlags(resolved) & include ? links.typeOnlyDeclaration : void 0;\n      }\n      return void 0;\n    }\n    function markExportAsReferenced(node) {\n      if (compilerOptions.verbatimModuleSyntax) {\n        return;\n      }\n      const symbol = getSymbolOfDeclaration(node);\n      const target = resolveAlias(symbol);\n      if (target) {\n        const markAlias = target === unknownSymbol || getAllSymbolFlags(target) & 111551 && !isConstEnumOrConstEnumOnlyModule(target) && !getTypeOnlyAliasDeclaration(symbol, 111551);\n        if (markAlias) {\n          markAliasSymbolAsReferenced(symbol);\n        }\n      }\n    }\n    function markAliasSymbolAsReferenced(symbol) {\n      Debug.assert(!compilerOptions.verbatimModuleSyntax);\n      const links = getSymbolLinks(symbol);\n      if (!links.referenced) {\n        links.referenced = true;\n        const node = getDeclarationOfAliasSymbol(symbol);\n        if (!node)\n          return Debug.fail();\n        if (isInternalModuleImportEqualsDeclaration(node)) {\n          if (getAllSymbolFlags(resolveSymbol(symbol)) & 111551) {\n            checkExpressionCached(node.moduleReference);\n          }\n        }\n      }\n    }\n    function markConstEnumAliasAsReferenced(symbol) {\n      const links = getSymbolLinks(symbol);\n      if (!links.constEnumReferenced) {\n        links.constEnumReferenced = true;\n      }\n    }\n    function getSymbolOfPartOfRightHandSideOfImportEquals(entityName, dontResolveAlias) {\n      if (entityName.kind === 79 && isRightSideOfQualifiedNameOrPropertyAccess(entityName)) {\n        entityName = entityName.parent;\n      }\n      if (entityName.kind === 79 || entityName.parent.kind === 163) {\n        return resolveEntityName(entityName, 1920, false, dontResolveAlias);\n      } else {\n        Debug.assert(entityName.parent.kind === 268);\n        return resolveEntityName(entityName, 111551 | 788968 | 1920, false, dontResolveAlias);\n      }\n    }\n    function getFullyQualifiedName(symbol, containingLocation) {\n      return symbol.parent ? getFullyQualifiedName(symbol.parent, containingLocation) + \".\" + symbolToString(symbol) : symbolToString(symbol, containingLocation, void 0, 32 | 4);\n    }\n    function getContainingQualifiedNameNode(node) {\n      while (isQualifiedName(node.parent)) {\n        node = node.parent;\n      }\n      return node;\n    }\n    function tryGetQualifiedNameAsValue(node) {\n      let left = getFirstIdentifier(node);\n      let symbol = resolveName(left, left.escapedText, 111551, void 0, left, true);\n      if (!symbol) {\n        return void 0;\n      }\n      while (isQualifiedName(left.parent)) {\n        const type = getTypeOfSymbol(symbol);\n        symbol = getPropertyOfType(type, left.parent.right.escapedText);\n        if (!symbol) {\n          return void 0;\n        }\n        left = left.parent;\n      }\n      return symbol;\n    }\n    function resolveEntityName(name, meaning, ignoreErrors, dontResolveAlias, location) {\n      if (nodeIsMissing(name)) {\n        return void 0;\n      }\n      const namespaceMeaning = 1920 | (isInJSFile(name) ? meaning & 111551 : 0);\n      let symbol;\n      if (name.kind === 79) {\n        const message = meaning === namespaceMeaning || nodeIsSynthesized(name) ? Diagnostics.Cannot_find_namespace_0 : getCannotFindNameDiagnosticForName(getFirstIdentifier(name));\n        const symbolFromJSPrototype = isInJSFile(name) && !nodeIsSynthesized(name) ? resolveEntityNameFromAssignmentDeclaration(name, meaning) : void 0;\n        symbol = getMergedSymbol(resolveName(location || name, name.escapedText, meaning, ignoreErrors || symbolFromJSPrototype ? void 0 : message, name, true, false));\n        if (!symbol) {\n          return getMergedSymbol(symbolFromJSPrototype);\n        }\n      } else if (name.kind === 163 || name.kind === 208) {\n        const left = name.kind === 163 ? name.left : name.expression;\n        const right = name.kind === 163 ? name.right : name.name;\n        let namespace = resolveEntityName(left, namespaceMeaning, ignoreErrors, false, location);\n        if (!namespace || nodeIsMissing(right)) {\n          return void 0;\n        } else if (namespace === unknownSymbol) {\n          return namespace;\n        }\n        if (namespace.valueDeclaration && isInJSFile(namespace.valueDeclaration) && getEmitModuleResolutionKind(compilerOptions) !== 100 && isVariableDeclaration(namespace.valueDeclaration) && namespace.valueDeclaration.initializer && isCommonJsRequire(namespace.valueDeclaration.initializer)) {\n          const moduleName = namespace.valueDeclaration.initializer.arguments[0];\n          const moduleSym = resolveExternalModuleName(moduleName, moduleName);\n          if (moduleSym) {\n            const resolvedModuleSymbol = resolveExternalModuleSymbol(moduleSym);\n            if (resolvedModuleSymbol) {\n              namespace = resolvedModuleSymbol;\n            }\n          }\n        }\n        symbol = getMergedSymbol(getSymbol2(getExportsOfSymbol(namespace), right.escapedText, meaning));\n        if (!symbol) {\n          if (!ignoreErrors) {\n            const namespaceName = getFullyQualifiedName(namespace);\n            const declarationName = declarationNameToString(right);\n            const suggestionForNonexistentModule = getSuggestedSymbolForNonexistentModule(right, namespace);\n            if (suggestionForNonexistentModule) {\n              error(right, Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, namespaceName, declarationName, symbolToString(suggestionForNonexistentModule));\n              return void 0;\n            }\n            const containingQualifiedName = isQualifiedName(name) && getContainingQualifiedNameNode(name);\n            const canSuggestTypeof = globalObjectType && meaning & 788968 && containingQualifiedName && !isTypeOfExpression(containingQualifiedName.parent) && tryGetQualifiedNameAsValue(containingQualifiedName);\n            if (canSuggestTypeof) {\n              error(containingQualifiedName, Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0, entityNameToString(containingQualifiedName));\n              return void 0;\n            }\n            if (meaning & 1920 && isQualifiedName(name.parent)) {\n              const exportedTypeSymbol = getMergedSymbol(getSymbol2(getExportsOfSymbol(namespace), right.escapedText, 788968));\n              if (exportedTypeSymbol) {\n                error(name.parent.right, Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1, symbolToString(exportedTypeSymbol), unescapeLeadingUnderscores(name.parent.right.escapedText));\n                return void 0;\n              }\n            }\n            error(right, Diagnostics.Namespace_0_has_no_exported_member_1, namespaceName, declarationName);\n          }\n          return void 0;\n        }\n      } else {\n        throw Debug.assertNever(name, \"Unknown entity name kind.\");\n      }\n      Debug.assert((getCheckFlags(symbol) & 1) === 0, \"Should never get an instantiated symbol here.\");\n      if (!nodeIsSynthesized(name) && isEntityName(name) && (symbol.flags & 2097152 || name.parent.kind === 274)) {\n        markSymbolOfAliasDeclarationIfTypeOnly(getAliasDeclarationFromName(name), symbol, void 0, true);\n      }\n      return symbol.flags & meaning || dontResolveAlias ? symbol : resolveAlias(symbol);\n    }\n    function resolveEntityNameFromAssignmentDeclaration(name, meaning) {\n      if (isJSDocTypeReference(name.parent)) {\n        const secondaryLocation = getAssignmentDeclarationLocation(name.parent);\n        if (secondaryLocation) {\n          return resolveName(secondaryLocation, name.escapedText, meaning, void 0, name, true);\n        }\n      }\n    }\n    function getAssignmentDeclarationLocation(node) {\n      const typeAlias = findAncestor(node, (node2) => !(isJSDocNode(node2) || node2.flags & 8388608) ? \"quit\" : isJSDocTypeAlias(node2));\n      if (typeAlias) {\n        return;\n      }\n      const host2 = getJSDocHost(node);\n      if (host2 && isExpressionStatement(host2) && isPrototypePropertyAssignment(host2.expression)) {\n        const symbol = getSymbolOfDeclaration(host2.expression.left);\n        if (symbol) {\n          return getDeclarationOfJSPrototypeContainer(symbol);\n        }\n      }\n      if (host2 && isFunctionExpression(host2) && isPrototypePropertyAssignment(host2.parent) && isExpressionStatement(host2.parent.parent)) {\n        const symbol = getSymbolOfDeclaration(host2.parent.left);\n        if (symbol) {\n          return getDeclarationOfJSPrototypeContainer(symbol);\n        }\n      }\n      if (host2 && (isObjectLiteralMethod(host2) || isPropertyAssignment(host2)) && isBinaryExpression(host2.parent.parent) && getAssignmentDeclarationKind(host2.parent.parent) === 6) {\n        const symbol = getSymbolOfDeclaration(host2.parent.parent.left);\n        if (symbol) {\n          return getDeclarationOfJSPrototypeContainer(symbol);\n        }\n      }\n      const sig = getEffectiveJSDocHost(node);\n      if (sig && isFunctionLike(sig)) {\n        const symbol = getSymbolOfDeclaration(sig);\n        return symbol && symbol.valueDeclaration;\n      }\n    }\n    function getDeclarationOfJSPrototypeContainer(symbol) {\n      const decl = symbol.parent.valueDeclaration;\n      if (!decl) {\n        return void 0;\n      }\n      const initializer = isAssignmentDeclaration(decl) ? getAssignedExpandoInitializer(decl) : hasOnlyExpressionInitializer(decl) ? getDeclaredExpandoInitializer(decl) : void 0;\n      return initializer || decl;\n    }\n    function getExpandoSymbol(symbol) {\n      const decl = symbol.valueDeclaration;\n      if (!decl || !isInJSFile(decl) || symbol.flags & 524288 || getExpandoInitializer(decl, false)) {\n        return void 0;\n      }\n      const init = isVariableDeclaration(decl) ? getDeclaredExpandoInitializer(decl) : getAssignedExpandoInitializer(decl);\n      if (init) {\n        const initSymbol = getSymbolOfNode(init);\n        if (initSymbol) {\n          return mergeJSSymbols(initSymbol, symbol);\n        }\n      }\n    }\n    function resolveExternalModuleName(location, moduleReferenceExpression, ignoreErrors) {\n      const isClassic = getEmitModuleResolutionKind(compilerOptions) === 1;\n      const errorMessage = isClassic ? Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option : Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;\n      return resolveExternalModuleNameWorker(location, moduleReferenceExpression, ignoreErrors ? void 0 : errorMessage);\n    }\n    function resolveExternalModuleNameWorker(location, moduleReferenceExpression, moduleNotFoundError, isForAugmentation = false) {\n      return isStringLiteralLike(moduleReferenceExpression) ? resolveExternalModule(location, moduleReferenceExpression.text, moduleNotFoundError, moduleReferenceExpression, isForAugmentation) : void 0;\n    }\n    function resolveExternalModule(location, moduleReference, moduleNotFoundError, errorNode, isForAugmentation = false) {\n      var _a2, _b, _c, _d, _e, _f, _g, _h, _i;\n      if (startsWith(moduleReference, \"@types/\")) {\n        const diag2 = Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1;\n        const withoutAtTypePrefix = removePrefix(moduleReference, \"@types/\");\n        error(errorNode, diag2, withoutAtTypePrefix, moduleReference);\n      }\n      const ambientModule = tryFindAmbientModule(moduleReference, true);\n      if (ambientModule) {\n        return ambientModule;\n      }\n      const currentSourceFile = getSourceFileOfNode(location);\n      const contextSpecifier = isStringLiteralLike(location) ? location : ((_a2 = findAncestor(location, isImportCall)) == null ? void 0 : _a2.arguments[0]) || ((_b = findAncestor(location, isImportDeclaration)) == null ? void 0 : _b.moduleSpecifier) || ((_c = findAncestor(location, isExternalModuleImportEqualsDeclaration)) == null ? void 0 : _c.moduleReference.expression) || ((_d = findAncestor(location, isExportDeclaration)) == null ? void 0 : _d.moduleSpecifier) || ((_e = isModuleDeclaration(location) ? location : location.parent && isModuleDeclaration(location.parent) && location.parent.name === location ? location.parent : void 0) == null ? void 0 : _e.name) || ((_f = isLiteralImportTypeNode(location) ? location : void 0) == null ? void 0 : _f.argument.literal);\n      const mode = contextSpecifier && isStringLiteralLike(contextSpecifier) ? getModeForUsageLocation(currentSourceFile, contextSpecifier) : currentSourceFile.impliedNodeFormat;\n      const moduleResolutionKind = getEmitModuleResolutionKind(compilerOptions);\n      const resolvedModule = getResolvedModule(currentSourceFile, moduleReference, mode);\n      const resolutionDiagnostic = resolvedModule && getResolutionDiagnostic(compilerOptions, resolvedModule, currentSourceFile);\n      const sourceFile = resolvedModule && (!resolutionDiagnostic || resolutionDiagnostic === Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set) && host.getSourceFile(resolvedModule.resolvedFileName);\n      if (sourceFile) {\n        if (resolutionDiagnostic) {\n          error(errorNode, resolutionDiagnostic, moduleReference, resolvedModule.resolvedFileName);\n        }\n        if (resolvedModule.resolvedUsingTsExtension && isDeclarationFileName(moduleReference)) {\n          const importOrExport = ((_g = findAncestor(location, isImportDeclaration)) == null ? void 0 : _g.importClause) || findAncestor(location, or(isImportEqualsDeclaration, isExportDeclaration));\n          if (importOrExport && !importOrExport.isTypeOnly || findAncestor(location, isImportCall)) {\n            error(errorNode, Diagnostics.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead, getSuggestedImportSource(Debug.checkDefined(tryExtractTSExtension(moduleReference))));\n          }\n        } else if (resolvedModule.resolvedUsingTsExtension && !shouldAllowImportingTsExtension(compilerOptions, currentSourceFile.fileName)) {\n          const tsExtension = Debug.checkDefined(tryExtractTSExtension(moduleReference));\n          error(errorNode, Diagnostics.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled, tsExtension);\n        }\n        if (sourceFile.symbol) {\n          if (resolvedModule.isExternalLibraryImport && !resolutionExtensionIsTSOrJson(resolvedModule.extension)) {\n            errorOnImplicitAnyModule(false, errorNode, currentSourceFile, mode, resolvedModule, moduleReference);\n          }\n          if (moduleResolutionKind === 3 || moduleResolutionKind === 99) {\n            const isSyncImport = currentSourceFile.impliedNodeFormat === 1 && !findAncestor(location, isImportCall) || !!findAncestor(location, isImportEqualsDeclaration);\n            const overrideClauseHost = findAncestor(location, (l) => isImportTypeNode(l) || isExportDeclaration(l) || isImportDeclaration(l));\n            const overrideClause = overrideClauseHost && isImportTypeNode(overrideClauseHost) ? (_h = overrideClauseHost.assertions) == null ? void 0 : _h.assertClause : overrideClauseHost == null ? void 0 : overrideClauseHost.assertClause;\n            if (isSyncImport && sourceFile.impliedNodeFormat === 99 && !getResolutionModeOverrideForClause(overrideClause)) {\n              if (findAncestor(location, isImportEqualsDeclaration)) {\n                error(errorNode, Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead, moduleReference);\n              } else {\n                let diagnosticDetails;\n                const ext = tryGetExtensionFromPath2(currentSourceFile.fileName);\n                if (ext === \".ts\" || ext === \".js\" || ext === \".tsx\" || ext === \".jsx\") {\n                  const scope = currentSourceFile.packageJsonScope;\n                  const targetExt = ext === \".ts\" ? \".mts\" : ext === \".js\" ? \".mjs\" : void 0;\n                  if (scope && !scope.contents.packageJsonContent.type) {\n                    if (targetExt) {\n                      diagnosticDetails = chainDiagnosticMessages(void 0, Diagnostics.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1, targetExt, combinePaths(scope.packageDirectory, \"package.json\"));\n                    } else {\n                      diagnosticDetails = chainDiagnosticMessages(void 0, Diagnostics.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0, combinePaths(scope.packageDirectory, \"package.json\"));\n                    }\n                  } else {\n                    if (targetExt) {\n                      diagnosticDetails = chainDiagnosticMessages(void 0, Diagnostics.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module, targetExt);\n                    } else {\n                      diagnosticDetails = chainDiagnosticMessages(void 0, Diagnostics.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module);\n                    }\n                  }\n                }\n                diagnostics.add(createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(errorNode), errorNode, chainDiagnosticMessages(diagnosticDetails, Diagnostics.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead, moduleReference)));\n              }\n            }\n          }\n          return getMergedSymbol(sourceFile.symbol);\n        }\n        if (moduleNotFoundError) {\n          error(errorNode, Diagnostics.File_0_is_not_a_module, sourceFile.fileName);\n        }\n        return void 0;\n      }\n      if (patternAmbientModules) {\n        const pattern = findBestPatternMatch(patternAmbientModules, (_) => _.pattern, moduleReference);\n        if (pattern) {\n          const augmentation = patternAmbientModuleAugmentations && patternAmbientModuleAugmentations.get(moduleReference);\n          if (augmentation) {\n            return getMergedSymbol(augmentation);\n          }\n          return getMergedSymbol(pattern.symbol);\n        }\n      }\n      if (resolvedModule && !resolutionExtensionIsTSOrJson(resolvedModule.extension) && resolutionDiagnostic === void 0 || resolutionDiagnostic === Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type) {\n        if (isForAugmentation) {\n          const diag2 = Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;\n          error(errorNode, diag2, moduleReference, resolvedModule.resolvedFileName);\n        } else {\n          errorOnImplicitAnyModule(noImplicitAny && !!moduleNotFoundError, errorNode, currentSourceFile, mode, resolvedModule, moduleReference);\n        }\n        return void 0;\n      }\n      if (moduleNotFoundError) {\n        if (resolvedModule) {\n          const redirect = host.getProjectReferenceRedirect(resolvedModule.resolvedFileName);\n          if (redirect) {\n            error(errorNode, Diagnostics.Output_file_0_has_not_been_built_from_source_file_1, redirect, resolvedModule.resolvedFileName);\n            return void 0;\n          }\n        }\n        if (resolutionDiagnostic) {\n          error(errorNode, resolutionDiagnostic, moduleReference, resolvedModule.resolvedFileName);\n        } else {\n          const isExtensionlessRelativePathImport = pathIsRelative(moduleReference) && !hasExtension(moduleReference);\n          const resolutionIsNode16OrNext = moduleResolutionKind === 3 || moduleResolutionKind === 99;\n          if (!getResolveJsonModule(compilerOptions) && fileExtensionIs(moduleReference, \".json\") && moduleResolutionKind !== 1 && hasJsonModuleEmitEnabled(compilerOptions)) {\n            error(errorNode, Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension, moduleReference);\n          } else if (mode === 99 && resolutionIsNode16OrNext && isExtensionlessRelativePathImport) {\n            const absoluteRef = getNormalizedAbsolutePath(moduleReference, getDirectoryPath(currentSourceFile.path));\n            const suggestedExt = (_i = suggestedExtensions.find(([actualExt, _importExt]) => host.fileExists(absoluteRef + actualExt))) == null ? void 0 : _i[1];\n            if (suggestedExt) {\n              error(errorNode, Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0, moduleReference + suggestedExt);\n            } else {\n              error(errorNode, Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path);\n            }\n          } else {\n            error(errorNode, moduleNotFoundError, moduleReference);\n          }\n        }\n      }\n      return void 0;\n      function getSuggestedImportSource(tsExtension) {\n        const importSourceWithoutExtension = removeExtension(moduleReference, tsExtension);\n        if (emitModuleKindIsNonNodeESM(moduleKind) || mode === 99) {\n          const preferTs = isDeclarationFileName(moduleReference) && shouldAllowImportingTsExtension(compilerOptions);\n          const ext = tsExtension === \".mts\" || tsExtension === \".d.mts\" ? preferTs ? \".mts\" : \".mjs\" : tsExtension === \".cts\" || tsExtension === \".d.mts\" ? preferTs ? \".cts\" : \".cjs\" : preferTs ? \".ts\" : \".js\";\n          return importSourceWithoutExtension + ext;\n        }\n        return importSourceWithoutExtension;\n      }\n    }\n    function errorOnImplicitAnyModule(isError, errorNode, sourceFile, mode, { packageId, resolvedFileName }, moduleReference) {\n      var _a2, _b;\n      let errorInfo;\n      if (!isExternalModuleNameRelative(moduleReference) && packageId) {\n        const node10Result = (_b = (_a2 = sourceFile.resolvedModules) == null ? void 0 : _a2.get(moduleReference, mode)) == null ? void 0 : _b.node10Result;\n        errorInfo = node10Result ? chainDiagnosticMessages(void 0, Diagnostics.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings, node10Result, node10Result.indexOf(nodeModulesPathPart + \"@types/\") > -1 ? `@types/${mangleScopedPackageName(packageId.name)}` : packageId.name) : typesPackageExists(packageId.name) ? chainDiagnosticMessages(void 0, Diagnostics.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1, packageId.name, mangleScopedPackageName(packageId.name)) : packageBundlesTypes(packageId.name) ? chainDiagnosticMessages(void 0, Diagnostics.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1, packageId.name, moduleReference) : chainDiagnosticMessages(void 0, Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0, moduleReference, mangleScopedPackageName(packageId.name));\n      }\n      errorOrSuggestion(isError, errorNode, chainDiagnosticMessages(errorInfo, Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type, moduleReference, resolvedFileName));\n    }\n    function typesPackageExists(packageName) {\n      return getPackagesMap().has(getTypesPackageName(packageName));\n    }\n    function packageBundlesTypes(packageName) {\n      return !!getPackagesMap().get(packageName);\n    }\n    function resolveExternalModuleSymbol(moduleSymbol, dontResolveAlias) {\n      if (moduleSymbol == null ? void 0 : moduleSymbol.exports) {\n        const exportEquals = resolveSymbol(moduleSymbol.exports.get(\"export=\"), dontResolveAlias);\n        const exported = getCommonJsExportEquals(getMergedSymbol(exportEquals), getMergedSymbol(moduleSymbol));\n        return getMergedSymbol(exported) || moduleSymbol;\n      }\n      return void 0;\n    }\n    function getCommonJsExportEquals(exported, moduleSymbol) {\n      if (!exported || exported === unknownSymbol || exported === moduleSymbol || moduleSymbol.exports.size === 1 || exported.flags & 2097152) {\n        return exported;\n      }\n      const links = getSymbolLinks(exported);\n      if (links.cjsExportMerged) {\n        return links.cjsExportMerged;\n      }\n      const merged = exported.flags & 33554432 ? exported : cloneSymbol(exported);\n      merged.flags = merged.flags | 512;\n      if (merged.exports === void 0) {\n        merged.exports = createSymbolTable();\n      }\n      moduleSymbol.exports.forEach((s, name) => {\n        if (name === \"export=\")\n          return;\n        merged.exports.set(name, merged.exports.has(name) ? mergeSymbol(merged.exports.get(name), s) : s);\n      });\n      getSymbolLinks(merged).cjsExportMerged = merged;\n      return links.cjsExportMerged = merged;\n    }\n    function resolveESModuleSymbol(moduleSymbol, referencingLocation, dontResolveAlias, suppressInteropError) {\n      var _a2;\n      const symbol = resolveExternalModuleSymbol(moduleSymbol, dontResolveAlias);\n      if (!dontResolveAlias && symbol) {\n        if (!suppressInteropError && !(symbol.flags & (1536 | 3)) && !getDeclarationOfKind(symbol, 308)) {\n          const compilerOptionName = moduleKind >= 5 ? \"allowSyntheticDefaultImports\" : \"esModuleInterop\";\n          error(referencingLocation, Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export, compilerOptionName);\n          return symbol;\n        }\n        const referenceParent = referencingLocation.parent;\n        if (isImportDeclaration(referenceParent) && getNamespaceDeclarationNode(referenceParent) || isImportCall(referenceParent)) {\n          const reference = isImportCall(referenceParent) ? referenceParent.arguments[0] : referenceParent.moduleSpecifier;\n          const type = getTypeOfSymbol(symbol);\n          const defaultOnlyType = getTypeWithSyntheticDefaultOnly(type, symbol, moduleSymbol, reference);\n          if (defaultOnlyType) {\n            return cloneTypeAsModuleType(symbol, defaultOnlyType, referenceParent);\n          }\n          const targetFile = (_a2 = moduleSymbol == null ? void 0 : moduleSymbol.declarations) == null ? void 0 : _a2.find(isSourceFile);\n          const isEsmCjsRef = targetFile && isESMFormatImportImportingCommonjsFormatFile(getUsageModeForExpression(reference), targetFile.impliedNodeFormat);\n          if (getESModuleInterop(compilerOptions) || isEsmCjsRef) {\n            let sigs = getSignaturesOfStructuredType(type, 0);\n            if (!sigs || !sigs.length) {\n              sigs = getSignaturesOfStructuredType(type, 1);\n            }\n            if (sigs && sigs.length || getPropertyOfType(type, \"default\", true) || isEsmCjsRef) {\n              const moduleType = getTypeWithSyntheticDefaultImportType(type, symbol, moduleSymbol, reference);\n              return cloneTypeAsModuleType(symbol, moduleType, referenceParent);\n            }\n          }\n        }\n      }\n      return symbol;\n    }\n    function cloneTypeAsModuleType(symbol, moduleType, referenceParent) {\n      const result = createSymbol(symbol.flags, symbol.escapedName);\n      result.declarations = symbol.declarations ? symbol.declarations.slice() : [];\n      result.parent = symbol.parent;\n      result.links.target = symbol;\n      result.links.originatingImport = referenceParent;\n      if (symbol.valueDeclaration)\n        result.valueDeclaration = symbol.valueDeclaration;\n      if (symbol.constEnumOnlyModule)\n        result.constEnumOnlyModule = true;\n      if (symbol.members)\n        result.members = new Map(symbol.members);\n      if (symbol.exports)\n        result.exports = new Map(symbol.exports);\n      const resolvedModuleType = resolveStructuredTypeMembers(moduleType);\n      result.links.type = createAnonymousType(result, resolvedModuleType.members, emptyArray, emptyArray, resolvedModuleType.indexInfos);\n      return result;\n    }\n    function hasExportAssignmentSymbol(moduleSymbol) {\n      return moduleSymbol.exports.get(\"export=\") !== void 0;\n    }\n    function getExportsOfModuleAsArray(moduleSymbol) {\n      return symbolsToArray(getExportsOfModule(moduleSymbol));\n    }\n    function getExportsAndPropertiesOfModule(moduleSymbol) {\n      const exports = getExportsOfModuleAsArray(moduleSymbol);\n      const exportEquals = resolveExternalModuleSymbol(moduleSymbol);\n      if (exportEquals !== moduleSymbol) {\n        const type = getTypeOfSymbol(exportEquals);\n        if (shouldTreatPropertiesOfExternalModuleAsExports(type)) {\n          addRange(exports, getPropertiesOfType(type));\n        }\n      }\n      return exports;\n    }\n    function forEachExportAndPropertyOfModule(moduleSymbol, cb) {\n      const exports = getExportsOfModule(moduleSymbol);\n      exports.forEach((symbol, key) => {\n        if (!isReservedMemberName(key)) {\n          cb(symbol, key);\n        }\n      });\n      const exportEquals = resolveExternalModuleSymbol(moduleSymbol);\n      if (exportEquals !== moduleSymbol) {\n        const type = getTypeOfSymbol(exportEquals);\n        if (shouldTreatPropertiesOfExternalModuleAsExports(type)) {\n          forEachPropertyOfType(type, (symbol, escapedName) => {\n            cb(symbol, escapedName);\n          });\n        }\n      }\n    }\n    function tryGetMemberInModuleExports(memberName, moduleSymbol) {\n      const symbolTable = getExportsOfModule(moduleSymbol);\n      if (symbolTable) {\n        return symbolTable.get(memberName);\n      }\n    }\n    function tryGetMemberInModuleExportsAndProperties(memberName, moduleSymbol) {\n      const symbol = tryGetMemberInModuleExports(memberName, moduleSymbol);\n      if (symbol) {\n        return symbol;\n      }\n      const exportEquals = resolveExternalModuleSymbol(moduleSymbol);\n      if (exportEquals === moduleSymbol) {\n        return void 0;\n      }\n      const type = getTypeOfSymbol(exportEquals);\n      return shouldTreatPropertiesOfExternalModuleAsExports(type) ? getPropertyOfType(type, memberName) : void 0;\n    }\n    function shouldTreatPropertiesOfExternalModuleAsExports(resolvedExternalModuleType) {\n      return !(resolvedExternalModuleType.flags & 134348796 || getObjectFlags(resolvedExternalModuleType) & 1 || isArrayType(resolvedExternalModuleType) || isTupleType(resolvedExternalModuleType));\n    }\n    function getExportsOfSymbol(symbol) {\n      return symbol.flags & 6256 ? getResolvedMembersOrExportsOfSymbol(symbol, \"resolvedExports\") : symbol.flags & 1536 ? getExportsOfModule(symbol) : symbol.exports || emptySymbols;\n    }\n    function getExportsOfModule(moduleSymbol) {\n      const links = getSymbolLinks(moduleSymbol);\n      if (!links.resolvedExports) {\n        const { exports, typeOnlyExportStarMap } = getExportsOfModuleWorker(moduleSymbol);\n        links.resolvedExports = exports;\n        links.typeOnlyExportStarMap = typeOnlyExportStarMap;\n      }\n      return links.resolvedExports;\n    }\n    function extendExportSymbols(target, source, lookupTable, exportNode) {\n      if (!source)\n        return;\n      source.forEach((sourceSymbol, id) => {\n        if (id === \"default\")\n          return;\n        const targetSymbol = target.get(id);\n        if (!targetSymbol) {\n          target.set(id, sourceSymbol);\n          if (lookupTable && exportNode) {\n            lookupTable.set(id, {\n              specifierText: getTextOfNode(exportNode.moduleSpecifier)\n            });\n          }\n        } else if (lookupTable && exportNode && targetSymbol && resolveSymbol(targetSymbol) !== resolveSymbol(sourceSymbol)) {\n          const collisionTracker = lookupTable.get(id);\n          if (!collisionTracker.exportsWithDuplicate) {\n            collisionTracker.exportsWithDuplicate = [exportNode];\n          } else {\n            collisionTracker.exportsWithDuplicate.push(exportNode);\n          }\n        }\n      });\n    }\n    function getExportsOfModuleWorker(moduleSymbol) {\n      const visitedSymbols = [];\n      let typeOnlyExportStarMap;\n      const nonTypeOnlyNames = /* @__PURE__ */ new Set();\n      moduleSymbol = resolveExternalModuleSymbol(moduleSymbol);\n      const exports = visit(moduleSymbol) || emptySymbols;\n      if (typeOnlyExportStarMap) {\n        nonTypeOnlyNames.forEach((name) => typeOnlyExportStarMap.delete(name));\n      }\n      return {\n        exports,\n        typeOnlyExportStarMap\n      };\n      function visit(symbol, exportStar, isTypeOnly) {\n        if (!isTypeOnly && (symbol == null ? void 0 : symbol.exports)) {\n          symbol.exports.forEach((_, name) => nonTypeOnlyNames.add(name));\n        }\n        if (!(symbol && symbol.exports && pushIfUnique(visitedSymbols, symbol))) {\n          return;\n        }\n        const symbols = new Map(symbol.exports);\n        const exportStars = symbol.exports.get(\"__export\");\n        if (exportStars) {\n          const nestedSymbols = createSymbolTable();\n          const lookupTable = /* @__PURE__ */ new Map();\n          if (exportStars.declarations) {\n            for (const node of exportStars.declarations) {\n              const resolvedModule = resolveExternalModuleName(node, node.moduleSpecifier);\n              const exportedSymbols = visit(resolvedModule, node, isTypeOnly || node.isTypeOnly);\n              extendExportSymbols(nestedSymbols, exportedSymbols, lookupTable, node);\n            }\n          }\n          lookupTable.forEach(({ exportsWithDuplicate }, id) => {\n            if (id === \"export=\" || !(exportsWithDuplicate && exportsWithDuplicate.length) || symbols.has(id)) {\n              return;\n            }\n            for (const node of exportsWithDuplicate) {\n              diagnostics.add(createDiagnosticForNode(node, Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity, lookupTable.get(id).specifierText, unescapeLeadingUnderscores(id)));\n            }\n          });\n          extendExportSymbols(symbols, nestedSymbols);\n        }\n        if (exportStar == null ? void 0 : exportStar.isTypeOnly) {\n          typeOnlyExportStarMap != null ? typeOnlyExportStarMap : typeOnlyExportStarMap = /* @__PURE__ */ new Map();\n          symbols.forEach((_, escapedName) => typeOnlyExportStarMap.set(escapedName, exportStar));\n        }\n        return symbols;\n      }\n    }\n    function getMergedSymbol(symbol) {\n      let merged;\n      return symbol && symbol.mergeId && (merged = mergedSymbols[symbol.mergeId]) ? merged : symbol;\n    }\n    function getSymbolOfDeclaration(node) {\n      return getMergedSymbol(node.symbol && getLateBoundSymbol(node.symbol));\n    }\n    function getSymbolOfNode(node) {\n      return canHaveSymbol(node) ? getSymbolOfDeclaration(node) : void 0;\n    }\n    function getParentOfSymbol(symbol) {\n      return getMergedSymbol(symbol.parent && getLateBoundSymbol(symbol.parent));\n    }\n    function getAlternativeContainingModules(symbol, enclosingDeclaration) {\n      const containingFile = getSourceFileOfNode(enclosingDeclaration);\n      const id = getNodeId(containingFile);\n      const links = getSymbolLinks(symbol);\n      let results;\n      if (links.extendedContainersByFile && (results = links.extendedContainersByFile.get(id))) {\n        return results;\n      }\n      if (containingFile && containingFile.imports) {\n        for (const importRef of containingFile.imports) {\n          if (nodeIsSynthesized(importRef))\n            continue;\n          const resolvedModule = resolveExternalModuleName(enclosingDeclaration, importRef, true);\n          if (!resolvedModule)\n            continue;\n          const ref = getAliasForSymbolInContainer(resolvedModule, symbol);\n          if (!ref)\n            continue;\n          results = append(results, resolvedModule);\n        }\n        if (length(results)) {\n          (links.extendedContainersByFile || (links.extendedContainersByFile = /* @__PURE__ */ new Map())).set(id, results);\n          return results;\n        }\n      }\n      if (links.extendedContainers) {\n        return links.extendedContainers;\n      }\n      const otherFiles = host.getSourceFiles();\n      for (const file of otherFiles) {\n        if (!isExternalModule(file))\n          continue;\n        const sym = getSymbolOfDeclaration(file);\n        const ref = getAliasForSymbolInContainer(sym, symbol);\n        if (!ref)\n          continue;\n        results = append(results, sym);\n      }\n      return links.extendedContainers = results || emptyArray;\n    }\n    function getContainersOfSymbol(symbol, enclosingDeclaration, meaning) {\n      const container = getParentOfSymbol(symbol);\n      if (container && !(symbol.flags & 262144)) {\n        const additionalContainers = mapDefined(container.declarations, fileSymbolIfFileSymbolExportEqualsContainer);\n        const reexportContainers = enclosingDeclaration && getAlternativeContainingModules(symbol, enclosingDeclaration);\n        const objectLiteralContainer = getVariableDeclarationOfObjectLiteral(container, meaning);\n        if (enclosingDeclaration && container.flags & getQualifiedLeftMeaning(meaning) && getAccessibleSymbolChain(container, enclosingDeclaration, 1920, false)) {\n          return append(concatenate(concatenate([container], additionalContainers), reexportContainers), objectLiteralContainer);\n        }\n        const firstVariableMatch = !(container.flags & getQualifiedLeftMeaning(meaning)) && container.flags & 788968 && getDeclaredTypeOfSymbol(container).flags & 524288 && meaning === 111551 ? forEachSymbolTableInScope(enclosingDeclaration, (t) => {\n          return forEachEntry(t, (s) => {\n            if (s.flags & getQualifiedLeftMeaning(meaning) && getTypeOfSymbol(s) === getDeclaredTypeOfSymbol(container)) {\n              return s;\n            }\n          });\n        }) : void 0;\n        let res = firstVariableMatch ? [firstVariableMatch, ...additionalContainers, container] : [...additionalContainers, container];\n        res = append(res, objectLiteralContainer);\n        res = addRange(res, reexportContainers);\n        return res;\n      }\n      const candidates = mapDefined(symbol.declarations, (d) => {\n        if (!isAmbientModule(d) && d.parent) {\n          if (hasNonGlobalAugmentationExternalModuleSymbol(d.parent)) {\n            return getSymbolOfDeclaration(d.parent);\n          }\n          if (isModuleBlock(d.parent) && d.parent.parent && resolveExternalModuleSymbol(getSymbolOfDeclaration(d.parent.parent)) === symbol) {\n            return getSymbolOfDeclaration(d.parent.parent);\n          }\n        }\n        if (isClassExpression(d) && isBinaryExpression(d.parent) && d.parent.operatorToken.kind === 63 && isAccessExpression(d.parent.left) && isEntityNameExpression(d.parent.left.expression)) {\n          if (isModuleExportsAccessExpression(d.parent.left) || isExportsIdentifier(d.parent.left.expression)) {\n            return getSymbolOfDeclaration(getSourceFileOfNode(d));\n          }\n          checkExpressionCached(d.parent.left.expression);\n          return getNodeLinks(d.parent.left.expression).resolvedSymbol;\n        }\n      });\n      if (!length(candidates)) {\n        return void 0;\n      }\n      return mapDefined(candidates, (candidate) => getAliasForSymbolInContainer(candidate, symbol) ? candidate : void 0);\n      function fileSymbolIfFileSymbolExportEqualsContainer(d) {\n        return container && getFileSymbolIfFileSymbolExportEqualsContainer(d, container);\n      }\n    }\n    function getVariableDeclarationOfObjectLiteral(symbol, meaning) {\n      const firstDecl = !!length(symbol.declarations) && first(symbol.declarations);\n      if (meaning & 111551 && firstDecl && firstDecl.parent && isVariableDeclaration(firstDecl.parent)) {\n        if (isObjectLiteralExpression(firstDecl) && firstDecl === firstDecl.parent.initializer || isTypeLiteralNode(firstDecl) && firstDecl === firstDecl.parent.type) {\n          return getSymbolOfDeclaration(firstDecl.parent);\n        }\n      }\n    }\n    function getFileSymbolIfFileSymbolExportEqualsContainer(d, container) {\n      const fileSymbol = getExternalModuleContainer(d);\n      const exported = fileSymbol && fileSymbol.exports && fileSymbol.exports.get(\"export=\");\n      return exported && getSymbolIfSameReference(exported, container) ? fileSymbol : void 0;\n    }\n    function getAliasForSymbolInContainer(container, symbol) {\n      if (container === getParentOfSymbol(symbol)) {\n        return symbol;\n      }\n      const exportEquals = container.exports && container.exports.get(\"export=\");\n      if (exportEquals && getSymbolIfSameReference(exportEquals, symbol)) {\n        return container;\n      }\n      const exports = getExportsOfSymbol(container);\n      const quick = exports.get(symbol.escapedName);\n      if (quick && getSymbolIfSameReference(quick, symbol)) {\n        return quick;\n      }\n      return forEachEntry(exports, (exported) => {\n        if (getSymbolIfSameReference(exported, symbol)) {\n          return exported;\n        }\n      });\n    }\n    function getSymbolIfSameReference(s1, s2) {\n      if (getMergedSymbol(resolveSymbol(getMergedSymbol(s1))) === getMergedSymbol(resolveSymbol(getMergedSymbol(s2)))) {\n        return s1;\n      }\n    }\n    function getExportSymbolOfValueSymbolIfExported(symbol) {\n      return getMergedSymbol(symbol && (symbol.flags & 1048576) !== 0 && symbol.exportSymbol || symbol);\n    }\n    function symbolIsValue(symbol, includeTypeOnlyMembers) {\n      return !!(symbol.flags & 111551 || symbol.flags & 2097152 && getAllSymbolFlags(symbol) & 111551 && (includeTypeOnlyMembers || !getTypeOnlyAliasDeclaration(symbol)));\n    }\n    function findConstructorDeclaration(node) {\n      const members = node.members;\n      for (const member of members) {\n        if (member.kind === 173 && nodeIsPresent(member.body)) {\n          return member;\n        }\n      }\n    }\n    function createType(flags) {\n      var _a2;\n      const result = new Type27(checker, flags);\n      typeCount++;\n      result.id = typeCount;\n      (_a2 = tracing) == null ? void 0 : _a2.recordType(result);\n      return result;\n    }\n    function createTypeWithSymbol(flags, symbol) {\n      const result = createType(flags);\n      result.symbol = symbol;\n      return result;\n    }\n    function createOriginType(flags) {\n      return new Type27(checker, flags);\n    }\n    function createIntrinsicType(kind, intrinsicName, objectFlags = 0) {\n      const type = createType(kind);\n      type.intrinsicName = intrinsicName;\n      type.objectFlags = objectFlags;\n      return type;\n    }\n    function createObjectType(objectFlags, symbol) {\n      const type = createTypeWithSymbol(524288, symbol);\n      type.objectFlags = objectFlags;\n      type.members = void 0;\n      type.properties = void 0;\n      type.callSignatures = void 0;\n      type.constructSignatures = void 0;\n      type.indexInfos = void 0;\n      return type;\n    }\n    function createTypeofType() {\n      return getUnionType(arrayFrom(typeofNEFacts.keys(), getStringLiteralType));\n    }\n    function createTypeParameter(symbol) {\n      return createTypeWithSymbol(262144, symbol);\n    }\n    function isReservedMemberName(name) {\n      return name.charCodeAt(0) === 95 && name.charCodeAt(1) === 95 && name.charCodeAt(2) !== 95 && name.charCodeAt(2) !== 64 && name.charCodeAt(2) !== 35;\n    }\n    function getNamedMembers(members) {\n      let result;\n      members.forEach((symbol, id) => {\n        if (isNamedMember(symbol, id)) {\n          (result || (result = [])).push(symbol);\n        }\n      });\n      return result || emptyArray;\n    }\n    function isNamedMember(member, escapedName) {\n      return !isReservedMemberName(escapedName) && symbolIsValue(member);\n    }\n    function getNamedOrIndexSignatureMembers(members) {\n      const result = getNamedMembers(members);\n      const index = getIndexSymbolFromSymbolTable(members);\n      return index ? concatenate(result, [index]) : result;\n    }\n    function setStructuredTypeMembers(type, members, callSignatures, constructSignatures, indexInfos) {\n      const resolved = type;\n      resolved.members = members;\n      resolved.properties = emptyArray;\n      resolved.callSignatures = callSignatures;\n      resolved.constructSignatures = constructSignatures;\n      resolved.indexInfos = indexInfos;\n      if (members !== emptySymbols)\n        resolved.properties = getNamedMembers(members);\n      return resolved;\n    }\n    function createAnonymousType(symbol, members, callSignatures, constructSignatures, indexInfos) {\n      return setStructuredTypeMembers(createObjectType(16, symbol), members, callSignatures, constructSignatures, indexInfos);\n    }\n    function getResolvedTypeWithoutAbstractConstructSignatures(type) {\n      if (type.constructSignatures.length === 0)\n        return type;\n      if (type.objectTypeWithoutAbstractConstructSignatures)\n        return type.objectTypeWithoutAbstractConstructSignatures;\n      const constructSignatures = filter(type.constructSignatures, (signature) => !(signature.flags & 4));\n      if (type.constructSignatures === constructSignatures)\n        return type;\n      const typeCopy = createAnonymousType(type.symbol, type.members, type.callSignatures, some(constructSignatures) ? constructSignatures : emptyArray, type.indexInfos);\n      type.objectTypeWithoutAbstractConstructSignatures = typeCopy;\n      typeCopy.objectTypeWithoutAbstractConstructSignatures = typeCopy;\n      return typeCopy;\n    }\n    function forEachSymbolTableInScope(enclosingDeclaration, callback) {\n      let result;\n      for (let location = enclosingDeclaration; location; location = location.parent) {\n        if (canHaveLocals(location) && location.locals && !isGlobalSourceFile(location)) {\n          if (result = callback(location.locals, void 0, true, location)) {\n            return result;\n          }\n        }\n        switch (location.kind) {\n          case 308:\n            if (!isExternalOrCommonJsModule(location)) {\n              break;\n            }\n          case 264:\n            const sym = getSymbolOfDeclaration(location);\n            if (result = callback((sym == null ? void 0 : sym.exports) || emptySymbols, void 0, true, location)) {\n              return result;\n            }\n            break;\n          case 260:\n          case 228:\n          case 261:\n            let table;\n            (getSymbolOfDeclaration(location).members || emptySymbols).forEach((memberSymbol, key) => {\n              if (memberSymbol.flags & (788968 & ~67108864)) {\n                (table || (table = createSymbolTable())).set(key, memberSymbol);\n              }\n            });\n            if (table && (result = callback(table, void 0, false, location))) {\n              return result;\n            }\n            break;\n        }\n      }\n      return callback(globals, void 0, true);\n    }\n    function getQualifiedLeftMeaning(rightMeaning) {\n      return rightMeaning === 111551 ? 111551 : 1920;\n    }\n    function getAccessibleSymbolChain(symbol, enclosingDeclaration, meaning, useOnlyExternalAliasing, visitedSymbolTablesMap = /* @__PURE__ */ new Map()) {\n      if (!(symbol && !isPropertyOrMethodDeclarationSymbol(symbol))) {\n        return void 0;\n      }\n      const links = getSymbolLinks(symbol);\n      const cache = links.accessibleChainCache || (links.accessibleChainCache = /* @__PURE__ */ new Map());\n      const firstRelevantLocation = forEachSymbolTableInScope(enclosingDeclaration, (_, __, ___, node) => node);\n      const key = `${useOnlyExternalAliasing ? 0 : 1}|${firstRelevantLocation && getNodeId(firstRelevantLocation)}|${meaning}`;\n      if (cache.has(key)) {\n        return cache.get(key);\n      }\n      const id = getSymbolId(symbol);\n      let visitedSymbolTables = visitedSymbolTablesMap.get(id);\n      if (!visitedSymbolTables) {\n        visitedSymbolTablesMap.set(id, visitedSymbolTables = []);\n      }\n      const result = forEachSymbolTableInScope(enclosingDeclaration, getAccessibleSymbolChainFromSymbolTable);\n      cache.set(key, result);\n      return result;\n      function getAccessibleSymbolChainFromSymbolTable(symbols, ignoreQualification, isLocalNameLookup) {\n        if (!pushIfUnique(visitedSymbolTables, symbols)) {\n          return void 0;\n        }\n        const result2 = trySymbolTable(symbols, ignoreQualification, isLocalNameLookup);\n        visitedSymbolTables.pop();\n        return result2;\n      }\n      function canQualifySymbol(symbolFromSymbolTable, meaning2) {\n        return !needsQualification(symbolFromSymbolTable, enclosingDeclaration, meaning2) || !!getAccessibleSymbolChain(symbolFromSymbolTable.parent, enclosingDeclaration, getQualifiedLeftMeaning(meaning2), useOnlyExternalAliasing, visitedSymbolTablesMap);\n      }\n      function isAccessible(symbolFromSymbolTable, resolvedAliasSymbol, ignoreQualification) {\n        return (symbol === (resolvedAliasSymbol || symbolFromSymbolTable) || getMergedSymbol(symbol) === getMergedSymbol(resolvedAliasSymbol || symbolFromSymbolTable)) && !some(symbolFromSymbolTable.declarations, hasNonGlobalAugmentationExternalModuleSymbol) && (ignoreQualification || canQualifySymbol(getMergedSymbol(symbolFromSymbolTable), meaning));\n      }\n      function trySymbolTable(symbols, ignoreQualification, isLocalNameLookup) {\n        if (isAccessible(symbols.get(symbol.escapedName), void 0, ignoreQualification)) {\n          return [symbol];\n        }\n        const result2 = forEachEntry(symbols, (symbolFromSymbolTable) => {\n          if (symbolFromSymbolTable.flags & 2097152 && symbolFromSymbolTable.escapedName !== \"export=\" && symbolFromSymbolTable.escapedName !== \"default\" && !(isUMDExportSymbol(symbolFromSymbolTable) && enclosingDeclaration && isExternalModule(getSourceFileOfNode(enclosingDeclaration))) && (!useOnlyExternalAliasing || some(symbolFromSymbolTable.declarations, isExternalModuleImportEqualsDeclaration)) && (isLocalNameLookup ? !some(symbolFromSymbolTable.declarations, isNamespaceReexportDeclaration) : true) && (ignoreQualification || !getDeclarationOfKind(symbolFromSymbolTable, 278))) {\n            const resolvedImportedSymbol = resolveAlias(symbolFromSymbolTable);\n            const candidate = getCandidateListForSymbol(symbolFromSymbolTable, resolvedImportedSymbol, ignoreQualification);\n            if (candidate) {\n              return candidate;\n            }\n          }\n          if (symbolFromSymbolTable.escapedName === symbol.escapedName && symbolFromSymbolTable.exportSymbol) {\n            if (isAccessible(getMergedSymbol(symbolFromSymbolTable.exportSymbol), void 0, ignoreQualification)) {\n              return [symbol];\n            }\n          }\n        });\n        return result2 || (symbols === globals ? getCandidateListForSymbol(globalThisSymbol, globalThisSymbol, ignoreQualification) : void 0);\n      }\n      function getCandidateListForSymbol(symbolFromSymbolTable, resolvedImportedSymbol, ignoreQualification) {\n        if (isAccessible(symbolFromSymbolTable, resolvedImportedSymbol, ignoreQualification)) {\n          return [symbolFromSymbolTable];\n        }\n        const candidateTable = getExportsOfSymbol(resolvedImportedSymbol);\n        const accessibleSymbolsFromExports = candidateTable && getAccessibleSymbolChainFromSymbolTable(candidateTable, true);\n        if (accessibleSymbolsFromExports && canQualifySymbol(symbolFromSymbolTable, getQualifiedLeftMeaning(meaning))) {\n          return [symbolFromSymbolTable].concat(accessibleSymbolsFromExports);\n        }\n      }\n    }\n    function needsQualification(symbol, enclosingDeclaration, meaning) {\n      let qualify = false;\n      forEachSymbolTableInScope(enclosingDeclaration, (symbolTable) => {\n        let symbolFromSymbolTable = getMergedSymbol(symbolTable.get(symbol.escapedName));\n        if (!symbolFromSymbolTable) {\n          return false;\n        }\n        if (symbolFromSymbolTable === symbol) {\n          return true;\n        }\n        const shouldResolveAlias = symbolFromSymbolTable.flags & 2097152 && !getDeclarationOfKind(symbolFromSymbolTable, 278);\n        symbolFromSymbolTable = shouldResolveAlias ? resolveAlias(symbolFromSymbolTable) : symbolFromSymbolTable;\n        const flags = shouldResolveAlias ? getAllSymbolFlags(symbolFromSymbolTable) : symbolFromSymbolTable.flags;\n        if (flags & meaning) {\n          qualify = true;\n          return true;\n        }\n        return false;\n      });\n      return qualify;\n    }\n    function isPropertyOrMethodDeclarationSymbol(symbol) {\n      if (symbol.declarations && symbol.declarations.length) {\n        for (const declaration of symbol.declarations) {\n          switch (declaration.kind) {\n            case 169:\n            case 171:\n            case 174:\n            case 175:\n              continue;\n            default:\n              return false;\n          }\n        }\n        return true;\n      }\n      return false;\n    }\n    function isTypeSymbolAccessible(typeSymbol, enclosingDeclaration) {\n      const access = isSymbolAccessibleWorker(typeSymbol, enclosingDeclaration, 788968, false, true);\n      return access.accessibility === 0;\n    }\n    function isValueSymbolAccessible(typeSymbol, enclosingDeclaration) {\n      const access = isSymbolAccessibleWorker(typeSymbol, enclosingDeclaration, 111551, false, true);\n      return access.accessibility === 0;\n    }\n    function isSymbolAccessibleByFlags(typeSymbol, enclosingDeclaration, flags) {\n      const access = isSymbolAccessibleWorker(typeSymbol, enclosingDeclaration, flags, false, false);\n      return access.accessibility === 0;\n    }\n    function isAnySymbolAccessible(symbols, enclosingDeclaration, initialSymbol, meaning, shouldComputeAliasesToMakeVisible, allowModules) {\n      if (!length(symbols))\n        return;\n      let hadAccessibleChain;\n      let earlyModuleBail = false;\n      for (const symbol of symbols) {\n        const accessibleSymbolChain = getAccessibleSymbolChain(symbol, enclosingDeclaration, meaning, false);\n        if (accessibleSymbolChain) {\n          hadAccessibleChain = symbol;\n          const hasAccessibleDeclarations = hasVisibleDeclarations(accessibleSymbolChain[0], shouldComputeAliasesToMakeVisible);\n          if (hasAccessibleDeclarations) {\n            return hasAccessibleDeclarations;\n          }\n        }\n        if (allowModules) {\n          if (some(symbol.declarations, hasNonGlobalAugmentationExternalModuleSymbol)) {\n            if (shouldComputeAliasesToMakeVisible) {\n              earlyModuleBail = true;\n              continue;\n            }\n            return {\n              accessibility: 0\n            };\n          }\n        }\n        const containers = getContainersOfSymbol(symbol, enclosingDeclaration, meaning);\n        const parentResult = isAnySymbolAccessible(containers, enclosingDeclaration, initialSymbol, initialSymbol === symbol ? getQualifiedLeftMeaning(meaning) : meaning, shouldComputeAliasesToMakeVisible, allowModules);\n        if (parentResult) {\n          return parentResult;\n        }\n      }\n      if (earlyModuleBail) {\n        return {\n          accessibility: 0\n        };\n      }\n      if (hadAccessibleChain) {\n        return {\n          accessibility: 1,\n          errorSymbolName: symbolToString(initialSymbol, enclosingDeclaration, meaning),\n          errorModuleName: hadAccessibleChain !== initialSymbol ? symbolToString(hadAccessibleChain, enclosingDeclaration, 1920) : void 0\n        };\n      }\n    }\n    function isSymbolAccessible(symbol, enclosingDeclaration, meaning, shouldComputeAliasesToMakeVisible) {\n      return isSymbolAccessibleWorker(symbol, enclosingDeclaration, meaning, shouldComputeAliasesToMakeVisible, true);\n    }\n    function isSymbolAccessibleWorker(symbol, enclosingDeclaration, meaning, shouldComputeAliasesToMakeVisible, allowModules) {\n      if (symbol && enclosingDeclaration) {\n        const result = isAnySymbolAccessible([symbol], enclosingDeclaration, symbol, meaning, shouldComputeAliasesToMakeVisible, allowModules);\n        if (result) {\n          return result;\n        }\n        const symbolExternalModule = forEach(symbol.declarations, getExternalModuleContainer);\n        if (symbolExternalModule) {\n          const enclosingExternalModule = getExternalModuleContainer(enclosingDeclaration);\n          if (symbolExternalModule !== enclosingExternalModule) {\n            return {\n              accessibility: 2,\n              errorSymbolName: symbolToString(symbol, enclosingDeclaration, meaning),\n              errorModuleName: symbolToString(symbolExternalModule),\n              errorNode: isInJSFile(enclosingDeclaration) ? enclosingDeclaration : void 0\n            };\n          }\n        }\n        return {\n          accessibility: 1,\n          errorSymbolName: symbolToString(symbol, enclosingDeclaration, meaning)\n        };\n      }\n      return { accessibility: 0 };\n    }\n    function getExternalModuleContainer(declaration) {\n      const node = findAncestor(declaration, hasExternalModuleSymbol);\n      return node && getSymbolOfDeclaration(node);\n    }\n    function hasExternalModuleSymbol(declaration) {\n      return isAmbientModule(declaration) || declaration.kind === 308 && isExternalOrCommonJsModule(declaration);\n    }\n    function hasNonGlobalAugmentationExternalModuleSymbol(declaration) {\n      return isModuleWithStringLiteralName(declaration) || declaration.kind === 308 && isExternalOrCommonJsModule(declaration);\n    }\n    function hasVisibleDeclarations(symbol, shouldComputeAliasToMakeVisible) {\n      let aliasesToMakeVisible;\n      if (!every(filter(symbol.declarations, (d) => d.kind !== 79), getIsDeclarationVisible)) {\n        return void 0;\n      }\n      return { accessibility: 0, aliasesToMakeVisible };\n      function getIsDeclarationVisible(declaration) {\n        var _a2, _b;\n        if (!isDeclarationVisible(declaration)) {\n          const anyImportSyntax = getAnyImportSyntax(declaration);\n          if (anyImportSyntax && !hasSyntacticModifier(anyImportSyntax, 1) && isDeclarationVisible(anyImportSyntax.parent)) {\n            return addVisibleAlias(declaration, anyImportSyntax);\n          } else if (isVariableDeclaration(declaration) && isVariableStatement(declaration.parent.parent) && !hasSyntacticModifier(declaration.parent.parent, 1) && isDeclarationVisible(declaration.parent.parent.parent)) {\n            return addVisibleAlias(declaration, declaration.parent.parent);\n          } else if (isLateVisibilityPaintedStatement(declaration) && !hasSyntacticModifier(declaration, 1) && isDeclarationVisible(declaration.parent)) {\n            return addVisibleAlias(declaration, declaration);\n          } else if (isBindingElement(declaration)) {\n            if (symbol.flags & 2097152 && isInJSFile(declaration) && ((_a2 = declaration.parent) == null ? void 0 : _a2.parent) && isVariableDeclaration(declaration.parent.parent) && ((_b = declaration.parent.parent.parent) == null ? void 0 : _b.parent) && isVariableStatement(declaration.parent.parent.parent.parent) && !hasSyntacticModifier(declaration.parent.parent.parent.parent, 1) && declaration.parent.parent.parent.parent.parent && isDeclarationVisible(declaration.parent.parent.parent.parent.parent)) {\n              return addVisibleAlias(declaration, declaration.parent.parent.parent.parent);\n            } else if (symbol.flags & 2) {\n              const variableStatement = findAncestor(declaration, isVariableStatement);\n              if (hasSyntacticModifier(variableStatement, 1)) {\n                return true;\n              }\n              if (!isDeclarationVisible(variableStatement.parent)) {\n                return false;\n              }\n              return addVisibleAlias(declaration, variableStatement);\n            }\n          }\n          return false;\n        }\n        return true;\n      }\n      function addVisibleAlias(declaration, aliasingStatement) {\n        if (shouldComputeAliasToMakeVisible) {\n          getNodeLinks(declaration).isVisible = true;\n          aliasesToMakeVisible = appendIfUnique(aliasesToMakeVisible, aliasingStatement);\n        }\n        return true;\n      }\n    }\n    function isEntityNameVisible(entityName, enclosingDeclaration) {\n      let meaning;\n      if (entityName.parent.kind === 183 || entityName.parent.kind === 230 && !isPartOfTypeNode(entityName.parent) || entityName.parent.kind === 164) {\n        meaning = 111551 | 1048576;\n      } else if (entityName.kind === 163 || entityName.kind === 208 || entityName.parent.kind === 268) {\n        meaning = 1920;\n      } else {\n        meaning = 788968;\n      }\n      const firstIdentifier = getFirstIdentifier(entityName);\n      const symbol = resolveName(enclosingDeclaration, firstIdentifier.escapedText, meaning, void 0, void 0, false);\n      if (symbol && symbol.flags & 262144 && meaning & 788968) {\n        return { accessibility: 0 };\n      }\n      if (!symbol && isThisIdentifier(firstIdentifier) && isSymbolAccessible(getSymbolOfDeclaration(getThisContainer(firstIdentifier, false, false)), firstIdentifier, meaning, false).accessibility === 0) {\n        return { accessibility: 0 };\n      }\n      return symbol && hasVisibleDeclarations(symbol, true) || {\n        accessibility: 1,\n        errorSymbolName: getTextOfNode(firstIdentifier),\n        errorNode: firstIdentifier\n      };\n    }\n    function symbolToString(symbol, enclosingDeclaration, meaning, flags = 4, writer) {\n      let nodeFlags = 70221824;\n      if (flags & 2) {\n        nodeFlags |= 128;\n      }\n      if (flags & 1) {\n        nodeFlags |= 512;\n      }\n      if (flags & 8) {\n        nodeFlags |= 16384;\n      }\n      if (flags & 32) {\n        nodeFlags |= 134217728;\n      }\n      if (flags & 16) {\n        nodeFlags |= 1073741824;\n      }\n      const builder = flags & 4 ? nodeBuilder.symbolToNode : nodeBuilder.symbolToEntityName;\n      return writer ? symbolToStringWorker(writer).getText() : usingSingleLineStringWriter(symbolToStringWorker);\n      function symbolToStringWorker(writer2) {\n        const entity = builder(symbol, meaning, enclosingDeclaration, nodeFlags);\n        const printer = (enclosingDeclaration == null ? void 0 : enclosingDeclaration.kind) === 308 ? createPrinterWithRemoveCommentsNeverAsciiEscape() : createPrinterWithRemoveComments();\n        const sourceFile = enclosingDeclaration && getSourceFileOfNode(enclosingDeclaration);\n        printer.writeNode(4, entity, sourceFile, writer2);\n        return writer2;\n      }\n    }\n    function signatureToString(signature, enclosingDeclaration, flags = 0, kind, writer) {\n      return writer ? signatureToStringWorker(writer).getText() : usingSingleLineStringWriter(signatureToStringWorker);\n      function signatureToStringWorker(writer2) {\n        let sigOutput;\n        if (flags & 262144) {\n          sigOutput = kind === 1 ? 182 : 181;\n        } else {\n          sigOutput = kind === 1 ? 177 : 176;\n        }\n        const sig = nodeBuilder.signatureToSignatureDeclaration(signature, sigOutput, enclosingDeclaration, toNodeBuilderFlags(flags) | 70221824 | 512);\n        const printer = createPrinterWithRemoveCommentsOmitTrailingSemicolon();\n        const sourceFile = enclosingDeclaration && getSourceFileOfNode(enclosingDeclaration);\n        printer.writeNode(4, sig, sourceFile, getTrailingSemicolonDeferringWriter(writer2));\n        return writer2;\n      }\n    }\n    function typeToString(type, enclosingDeclaration, flags = 1048576 | 16384, writer = createTextWriter(\"\")) {\n      const noTruncation = compilerOptions.noErrorTruncation || flags & 1;\n      const typeNode = nodeBuilder.typeToTypeNode(type, enclosingDeclaration, toNodeBuilderFlags(flags) | 70221824 | (noTruncation ? 1 : 0));\n      if (typeNode === void 0)\n        return Debug.fail(\"should always get typenode\");\n      const printer = type !== unresolvedType ? createPrinterWithRemoveComments() : createPrinterWithDefaults();\n      const sourceFile = enclosingDeclaration && getSourceFileOfNode(enclosingDeclaration);\n      printer.writeNode(4, typeNode, sourceFile, writer);\n      const result = writer.getText();\n      const maxLength2 = noTruncation ? noTruncationMaximumTruncationLength * 2 : defaultMaximumTruncationLength * 2;\n      if (maxLength2 && result && result.length >= maxLength2) {\n        return result.substr(0, maxLength2 - \"...\".length) + \"...\";\n      }\n      return result;\n    }\n    function getTypeNamesForErrorDisplay(left, right) {\n      let leftStr = symbolValueDeclarationIsContextSensitive(left.symbol) ? typeToString(left, left.symbol.valueDeclaration) : typeToString(left);\n      let rightStr = symbolValueDeclarationIsContextSensitive(right.symbol) ? typeToString(right, right.symbol.valueDeclaration) : typeToString(right);\n      if (leftStr === rightStr) {\n        leftStr = getTypeNameForErrorDisplay(left);\n        rightStr = getTypeNameForErrorDisplay(right);\n      }\n      return [leftStr, rightStr];\n    }\n    function getTypeNameForErrorDisplay(type) {\n      return typeToString(type, void 0, 64);\n    }\n    function symbolValueDeclarationIsContextSensitive(symbol) {\n      return symbol && !!symbol.valueDeclaration && isExpression(symbol.valueDeclaration) && !isContextSensitive(symbol.valueDeclaration);\n    }\n    function toNodeBuilderFlags(flags = 0) {\n      return flags & 848330091;\n    }\n    function isClassInstanceSide(type) {\n      return !!type.symbol && !!(type.symbol.flags & 32) && (type === getDeclaredTypeOfClassOrInterface(type.symbol) || !!(type.flags & 524288) && !!(getObjectFlags(type) & 16777216));\n    }\n    function createNodeBuilder() {\n      return {\n        typeToTypeNode: (type, enclosingDeclaration, flags, tracker) => withContext(enclosingDeclaration, flags, tracker, (context) => typeToTypeNodeHelper(type, context)),\n        indexInfoToIndexSignatureDeclaration: (indexInfo, enclosingDeclaration, flags, tracker) => withContext(enclosingDeclaration, flags, tracker, (context) => indexInfoToIndexSignatureDeclarationHelper(indexInfo, context, void 0)),\n        signatureToSignatureDeclaration: (signature, kind, enclosingDeclaration, flags, tracker) => withContext(enclosingDeclaration, flags, tracker, (context) => signatureToSignatureDeclarationHelper(signature, kind, context)),\n        symbolToEntityName: (symbol, meaning, enclosingDeclaration, flags, tracker) => withContext(enclosingDeclaration, flags, tracker, (context) => symbolToName(symbol, context, meaning, false)),\n        symbolToExpression: (symbol, meaning, enclosingDeclaration, flags, tracker) => withContext(enclosingDeclaration, flags, tracker, (context) => symbolToExpression(symbol, context, meaning)),\n        symbolToTypeParameterDeclarations: (symbol, enclosingDeclaration, flags, tracker) => withContext(enclosingDeclaration, flags, tracker, (context) => typeParametersToTypeParameterDeclarations(symbol, context)),\n        symbolToParameterDeclaration: (symbol, enclosingDeclaration, flags, tracker) => withContext(enclosingDeclaration, flags, tracker, (context) => symbolToParameterDeclaration(symbol, context)),\n        typeParameterToDeclaration: (parameter, enclosingDeclaration, flags, tracker) => withContext(enclosingDeclaration, flags, tracker, (context) => typeParameterToDeclaration(parameter, context)),\n        symbolTableToDeclarationStatements: (symbolTable, enclosingDeclaration, flags, tracker, bundled) => withContext(enclosingDeclaration, flags, tracker, (context) => symbolTableToDeclarationStatements(symbolTable, context, bundled)),\n        symbolToNode: (symbol, meaning, enclosingDeclaration, flags, tracker) => withContext(enclosingDeclaration, flags, tracker, (context) => symbolToNode(symbol, context, meaning))\n      };\n      function symbolToNode(symbol, context, meaning) {\n        if (context.flags & 1073741824) {\n          if (symbol.valueDeclaration) {\n            const name = getNameOfDeclaration(symbol.valueDeclaration);\n            if (name && isComputedPropertyName(name))\n              return name;\n          }\n          const nameType = getSymbolLinks(symbol).nameType;\n          if (nameType && nameType.flags & (1024 | 8192)) {\n            context.enclosingDeclaration = nameType.symbol.valueDeclaration;\n            return factory.createComputedPropertyName(symbolToExpression(nameType.symbol, context, meaning));\n          }\n        }\n        return symbolToExpression(symbol, context, meaning);\n      }\n      function withContext(enclosingDeclaration, flags, tracker, cb) {\n        Debug.assert(enclosingDeclaration === void 0 || (enclosingDeclaration.flags & 8) === 0);\n        const moduleResolverHost = (tracker == null ? void 0 : tracker.trackSymbol) ? tracker.moduleResolverHost : flags & 134217728 ? createBasicNodeBuilderModuleSpecifierResolutionHost(host) : void 0;\n        const context = {\n          enclosingDeclaration,\n          flags: flags || 0,\n          tracker: void 0,\n          encounteredError: false,\n          reportedDiagnostic: false,\n          visitedTypes: void 0,\n          symbolDepth: void 0,\n          inferTypeParameters: void 0,\n          approximateLength: 0\n        };\n        context.tracker = new SymbolTrackerImpl(context, tracker, moduleResolverHost);\n        const resultingNode = cb(context);\n        if (context.truncating && context.flags & 1) {\n          context.tracker.reportTruncationError();\n        }\n        return context.encounteredError ? void 0 : resultingNode;\n      }\n      function checkTruncationLength(context) {\n        if (context.truncating)\n          return context.truncating;\n        return context.truncating = context.approximateLength > (context.flags & 1 ? noTruncationMaximumTruncationLength : defaultMaximumTruncationLength);\n      }\n      function typeToTypeNodeHelper(type, context) {\n        const savedFlags = context.flags;\n        const typeNode = typeToTypeNodeWorker(type, context);\n        context.flags = savedFlags;\n        return typeNode;\n      }\n      function typeToTypeNodeWorker(type, context) {\n        var _a2, _b;\n        if (cancellationToken && cancellationToken.throwIfCancellationRequested) {\n          cancellationToken.throwIfCancellationRequested();\n        }\n        const inTypeAlias = context.flags & 8388608;\n        context.flags &= ~8388608;\n        if (!type) {\n          if (!(context.flags & 262144)) {\n            context.encounteredError = true;\n            return void 0;\n          }\n          context.approximateLength += 3;\n          return factory.createKeywordTypeNode(131);\n        }\n        if (!(context.flags & 536870912)) {\n          type = getReducedType(type);\n        }\n        if (type.flags & 1) {\n          if (type.aliasSymbol) {\n            return factory.createTypeReferenceNode(symbolToEntityNameNode(type.aliasSymbol), mapToTypeNodes(type.aliasTypeArguments, context));\n          }\n          if (type === unresolvedType) {\n            return addSyntheticLeadingComment(factory.createKeywordTypeNode(131), 3, \"unresolved\");\n          }\n          context.approximateLength += 3;\n          return factory.createKeywordTypeNode(type === intrinsicMarkerType ? 139 : 131);\n        }\n        if (type.flags & 2) {\n          return factory.createKeywordTypeNode(157);\n        }\n        if (type.flags & 4) {\n          context.approximateLength += 6;\n          return factory.createKeywordTypeNode(152);\n        }\n        if (type.flags & 8) {\n          context.approximateLength += 6;\n          return factory.createKeywordTypeNode(148);\n        }\n        if (type.flags & 64) {\n          context.approximateLength += 6;\n          return factory.createKeywordTypeNode(160);\n        }\n        if (type.flags & 16 && !type.aliasSymbol) {\n          context.approximateLength += 7;\n          return factory.createKeywordTypeNode(134);\n        }\n        if (type.flags & 1056) {\n          if (type.symbol.flags & 8) {\n            const parentSymbol = getParentOfSymbol(type.symbol);\n            const parentName = symbolToTypeNode(parentSymbol, context, 788968);\n            if (getDeclaredTypeOfSymbol(parentSymbol) === type) {\n              return parentName;\n            }\n            const memberName = symbolName(type.symbol);\n            if (isIdentifierText(memberName, 0)) {\n              return appendReferenceToType(parentName, factory.createTypeReferenceNode(memberName, void 0));\n            }\n            if (isImportTypeNode(parentName)) {\n              parentName.isTypeOf = true;\n              return factory.createIndexedAccessTypeNode(parentName, factory.createLiteralTypeNode(factory.createStringLiteral(memberName)));\n            } else if (isTypeReferenceNode(parentName)) {\n              return factory.createIndexedAccessTypeNode(factory.createTypeQueryNode(parentName.typeName), factory.createLiteralTypeNode(factory.createStringLiteral(memberName)));\n            } else {\n              return Debug.fail(\"Unhandled type node kind returned from `symbolToTypeNode`.\");\n            }\n          }\n          return symbolToTypeNode(type.symbol, context, 788968);\n        }\n        if (type.flags & 128) {\n          context.approximateLength += type.value.length + 2;\n          return factory.createLiteralTypeNode(setEmitFlags(factory.createStringLiteral(type.value, !!(context.flags & 268435456)), 33554432));\n        }\n        if (type.flags & 256) {\n          const value = type.value;\n          context.approximateLength += (\"\" + value).length;\n          return factory.createLiteralTypeNode(value < 0 ? factory.createPrefixUnaryExpression(40, factory.createNumericLiteral(-value)) : factory.createNumericLiteral(value));\n        }\n        if (type.flags & 2048) {\n          context.approximateLength += pseudoBigIntToString(type.value).length + 1;\n          return factory.createLiteralTypeNode(factory.createBigIntLiteral(type.value));\n        }\n        if (type.flags & 512) {\n          context.approximateLength += type.intrinsicName.length;\n          return factory.createLiteralTypeNode(type.intrinsicName === \"true\" ? factory.createTrue() : factory.createFalse());\n        }\n        if (type.flags & 8192) {\n          if (!(context.flags & 1048576)) {\n            if (isValueSymbolAccessible(type.symbol, context.enclosingDeclaration)) {\n              context.approximateLength += 6;\n              return symbolToTypeNode(type.symbol, context, 111551);\n            }\n            if (context.tracker.reportInaccessibleUniqueSymbolError) {\n              context.tracker.reportInaccessibleUniqueSymbolError();\n            }\n          }\n          context.approximateLength += 13;\n          return factory.createTypeOperatorNode(156, factory.createKeywordTypeNode(153));\n        }\n        if (type.flags & 16384) {\n          context.approximateLength += 4;\n          return factory.createKeywordTypeNode(114);\n        }\n        if (type.flags & 32768) {\n          context.approximateLength += 9;\n          return factory.createKeywordTypeNode(155);\n        }\n        if (type.flags & 65536) {\n          context.approximateLength += 4;\n          return factory.createLiteralTypeNode(factory.createNull());\n        }\n        if (type.flags & 131072) {\n          context.approximateLength += 5;\n          return factory.createKeywordTypeNode(144);\n        }\n        if (type.flags & 4096) {\n          context.approximateLength += 6;\n          return factory.createKeywordTypeNode(153);\n        }\n        if (type.flags & 67108864) {\n          context.approximateLength += 6;\n          return factory.createKeywordTypeNode(149);\n        }\n        if (isThisTypeParameter(type)) {\n          if (context.flags & 4194304) {\n            if (!context.encounteredError && !(context.flags & 32768)) {\n              context.encounteredError = true;\n            }\n            (_b = (_a2 = context.tracker).reportInaccessibleThisError) == null ? void 0 : _b.call(_a2);\n          }\n          context.approximateLength += 4;\n          return factory.createThisTypeNode();\n        }\n        if (!inTypeAlias && type.aliasSymbol && (context.flags & 16384 || isTypeSymbolAccessible(type.aliasSymbol, context.enclosingDeclaration))) {\n          const typeArgumentNodes = mapToTypeNodes(type.aliasTypeArguments, context);\n          if (isReservedMemberName(type.aliasSymbol.escapedName) && !(type.aliasSymbol.flags & 32))\n            return factory.createTypeReferenceNode(factory.createIdentifier(\"\"), typeArgumentNodes);\n          if (length(typeArgumentNodes) === 1 && type.aliasSymbol === globalArrayType.symbol) {\n            return factory.createArrayTypeNode(typeArgumentNodes[0]);\n          }\n          return symbolToTypeNode(type.aliasSymbol, context, 788968, typeArgumentNodes);\n        }\n        const objectFlags = getObjectFlags(type);\n        if (objectFlags & 4) {\n          Debug.assert(!!(type.flags & 524288));\n          return type.node ? visitAndTransformType(type, typeReferenceToTypeNode) : typeReferenceToTypeNode(type);\n        }\n        if (type.flags & 262144 || objectFlags & 3) {\n          if (type.flags & 262144 && contains(context.inferTypeParameters, type)) {\n            context.approximateLength += symbolName(type.symbol).length + 6;\n            let constraintNode;\n            const constraint = getConstraintOfTypeParameter(type);\n            if (constraint) {\n              const inferredConstraint = getInferredTypeParameterConstraint(type, true);\n              if (!(inferredConstraint && isTypeIdenticalTo(constraint, inferredConstraint))) {\n                context.approximateLength += 9;\n                constraintNode = constraint && typeToTypeNodeHelper(constraint, context);\n              }\n            }\n            return factory.createInferTypeNode(typeParameterToDeclarationWithConstraint(type, context, constraintNode));\n          }\n          if (context.flags & 4 && type.flags & 262144 && !isTypeSymbolAccessible(type.symbol, context.enclosingDeclaration)) {\n            const name2 = typeParameterToName(type, context);\n            context.approximateLength += idText(name2).length;\n            return factory.createTypeReferenceNode(factory.createIdentifier(idText(name2)), void 0);\n          }\n          if (type.symbol) {\n            return symbolToTypeNode(type.symbol, context, 788968);\n          }\n          const name = (type === markerSuperTypeForCheck || type === markerSubTypeForCheck) && varianceTypeParameter && varianceTypeParameter.symbol ? (type === markerSubTypeForCheck ? \"sub-\" : \"super-\") + symbolName(varianceTypeParameter.symbol) : \"?\";\n          return factory.createTypeReferenceNode(factory.createIdentifier(name), void 0);\n        }\n        if (type.flags & 1048576 && type.origin) {\n          type = type.origin;\n        }\n        if (type.flags & (1048576 | 2097152)) {\n          const types = type.flags & 1048576 ? formatUnionTypes(type.types) : type.types;\n          if (length(types) === 1) {\n            return typeToTypeNodeHelper(types[0], context);\n          }\n          const typeNodes = mapToTypeNodes(types, context, true);\n          if (typeNodes && typeNodes.length > 0) {\n            return type.flags & 1048576 ? factory.createUnionTypeNode(typeNodes) : factory.createIntersectionTypeNode(typeNodes);\n          } else {\n            if (!context.encounteredError && !(context.flags & 262144)) {\n              context.encounteredError = true;\n            }\n            return void 0;\n          }\n        }\n        if (objectFlags & (16 | 32)) {\n          Debug.assert(!!(type.flags & 524288));\n          return createAnonymousTypeNode(type);\n        }\n        if (type.flags & 4194304) {\n          const indexedType = type.type;\n          context.approximateLength += 6;\n          const indexTypeNode = typeToTypeNodeHelper(indexedType, context);\n          return factory.createTypeOperatorNode(141, indexTypeNode);\n        }\n        if (type.flags & 134217728) {\n          const texts = type.texts;\n          const types = type.types;\n          const templateHead = factory.createTemplateHead(texts[0]);\n          const templateSpans = factory.createNodeArray(map(types, (t, i) => factory.createTemplateLiteralTypeSpan(typeToTypeNodeHelper(t, context), (i < types.length - 1 ? factory.createTemplateMiddle : factory.createTemplateTail)(texts[i + 1]))));\n          context.approximateLength += 2;\n          return factory.createTemplateLiteralType(templateHead, templateSpans);\n        }\n        if (type.flags & 268435456) {\n          const typeNode = typeToTypeNodeHelper(type.type, context);\n          return symbolToTypeNode(type.symbol, context, 788968, [typeNode]);\n        }\n        if (type.flags & 8388608) {\n          const objectTypeNode = typeToTypeNodeHelper(type.objectType, context);\n          const indexTypeNode = typeToTypeNodeHelper(type.indexType, context);\n          context.approximateLength += 2;\n          return factory.createIndexedAccessTypeNode(objectTypeNode, indexTypeNode);\n        }\n        if (type.flags & 16777216) {\n          return visitAndTransformType(type, (type2) => conditionalTypeToTypeNode(type2));\n        }\n        if (type.flags & 33554432) {\n          return typeToTypeNodeHelper(type.baseType, context);\n        }\n        return Debug.fail(\"Should be unreachable.\");\n        function conditionalTypeToTypeNode(type2) {\n          const checkTypeNode = typeToTypeNodeHelper(type2.checkType, context);\n          context.approximateLength += 15;\n          if (context.flags & 4 && type2.root.isDistributive && !(type2.checkType.flags & 262144)) {\n            const newParam = createTypeParameter(createSymbol(262144, \"T\"));\n            const name = typeParameterToName(newParam, context);\n            const newTypeVariable = factory.createTypeReferenceNode(name);\n            context.approximateLength += 37;\n            const newMapper = prependTypeMapping(type2.root.checkType, newParam, type2.mapper);\n            const saveInferTypeParameters2 = context.inferTypeParameters;\n            context.inferTypeParameters = type2.root.inferTypeParameters;\n            const extendsTypeNode2 = typeToTypeNodeHelper(instantiateType(type2.root.extendsType, newMapper), context);\n            context.inferTypeParameters = saveInferTypeParameters2;\n            const trueTypeNode2 = typeToTypeNodeOrCircularityElision(instantiateType(getTypeFromTypeNode(type2.root.node.trueType), newMapper));\n            const falseTypeNode2 = typeToTypeNodeOrCircularityElision(instantiateType(getTypeFromTypeNode(type2.root.node.falseType), newMapper));\n            return factory.createConditionalTypeNode(checkTypeNode, factory.createInferTypeNode(factory.createTypeParameterDeclaration(void 0, factory.cloneNode(newTypeVariable.typeName))), factory.createConditionalTypeNode(factory.createTypeReferenceNode(factory.cloneNode(name)), typeToTypeNodeHelper(type2.checkType, context), factory.createConditionalTypeNode(newTypeVariable, extendsTypeNode2, trueTypeNode2, falseTypeNode2), factory.createKeywordTypeNode(144)), factory.createKeywordTypeNode(144));\n          }\n          const saveInferTypeParameters = context.inferTypeParameters;\n          context.inferTypeParameters = type2.root.inferTypeParameters;\n          const extendsTypeNode = typeToTypeNodeHelper(type2.extendsType, context);\n          context.inferTypeParameters = saveInferTypeParameters;\n          const trueTypeNode = typeToTypeNodeOrCircularityElision(getTrueTypeFromConditionalType(type2));\n          const falseTypeNode = typeToTypeNodeOrCircularityElision(getFalseTypeFromConditionalType(type2));\n          return factory.createConditionalTypeNode(checkTypeNode, extendsTypeNode, trueTypeNode, falseTypeNode);\n        }\n        function typeToTypeNodeOrCircularityElision(type2) {\n          var _a3, _b2, _c;\n          if (type2.flags & 1048576) {\n            if ((_a3 = context.visitedTypes) == null ? void 0 : _a3.has(getTypeId(type2))) {\n              if (!(context.flags & 131072)) {\n                context.encounteredError = true;\n                (_c = (_b2 = context.tracker) == null ? void 0 : _b2.reportCyclicStructureError) == null ? void 0 : _c.call(_b2);\n              }\n              return createElidedInformationPlaceholder(context);\n            }\n            return visitAndTransformType(type2, (type3) => typeToTypeNodeHelper(type3, context));\n          }\n          return typeToTypeNodeHelper(type2, context);\n        }\n        function isHomomorphicMappedTypeWithNonHomomorphicInstantiation(type2) {\n          return isMappedTypeWithKeyofConstraintDeclaration(type2) && !(getModifiersTypeFromMappedType(type2).flags & 262144);\n        }\n        function createMappedTypeNodeFromType(type2) {\n          Debug.assert(!!(type2.flags & 524288));\n          const readonlyToken = type2.declaration.readonlyToken ? factory.createToken(type2.declaration.readonlyToken.kind) : void 0;\n          const questionToken = type2.declaration.questionToken ? factory.createToken(type2.declaration.questionToken.kind) : void 0;\n          let appropriateConstraintTypeNode;\n          let newTypeVariable;\n          if (isMappedTypeWithKeyofConstraintDeclaration(type2)) {\n            if (isHomomorphicMappedTypeWithNonHomomorphicInstantiation(type2) && context.flags & 4) {\n              const newParam = createTypeParameter(createSymbol(262144, \"T\"));\n              const name = typeParameterToName(newParam, context);\n              newTypeVariable = factory.createTypeReferenceNode(name);\n            }\n            appropriateConstraintTypeNode = factory.createTypeOperatorNode(141, newTypeVariable || typeToTypeNodeHelper(getModifiersTypeFromMappedType(type2), context));\n          } else {\n            appropriateConstraintTypeNode = typeToTypeNodeHelper(getConstraintTypeFromMappedType(type2), context);\n          }\n          const typeParameterNode = typeParameterToDeclarationWithConstraint(getTypeParameterFromMappedType(type2), context, appropriateConstraintTypeNode);\n          const nameTypeNode = type2.declaration.nameType ? typeToTypeNodeHelper(getNameTypeFromMappedType(type2), context) : void 0;\n          const templateTypeNode = typeToTypeNodeHelper(removeMissingType(getTemplateTypeFromMappedType(type2), !!(getMappedTypeModifiers(type2) & 4)), context);\n          const mappedTypeNode = factory.createMappedTypeNode(readonlyToken, typeParameterNode, nameTypeNode, questionToken, templateTypeNode, void 0);\n          context.approximateLength += 10;\n          const result = setEmitFlags(mappedTypeNode, 1);\n          if (isHomomorphicMappedTypeWithNonHomomorphicInstantiation(type2) && context.flags & 4) {\n            const originalConstraint = instantiateType(getConstraintOfTypeParameter(getTypeFromTypeNode(type2.declaration.typeParameter.constraint.type)) || unknownType, type2.mapper);\n            return factory.createConditionalTypeNode(typeToTypeNodeHelper(getModifiersTypeFromMappedType(type2), context), factory.createInferTypeNode(factory.createTypeParameterDeclaration(void 0, factory.cloneNode(newTypeVariable.typeName), originalConstraint.flags & 2 ? void 0 : typeToTypeNodeHelper(originalConstraint, context))), result, factory.createKeywordTypeNode(144));\n          }\n          return result;\n        }\n        function createAnonymousTypeNode(type2) {\n          var _a3, _b2;\n          const typeId = type2.id;\n          const symbol = type2.symbol;\n          if (symbol) {\n            const isInstanceType = isClassInstanceSide(type2) ? 788968 : 111551;\n            if (isJSConstructor(symbol.valueDeclaration)) {\n              return symbolToTypeNode(symbol, context, isInstanceType);\n            } else if (symbol.flags & 32 && !getBaseTypeVariableOfClass(symbol) && !(symbol.valueDeclaration && isClassLike(symbol.valueDeclaration) && context.flags & 2048 && (!isClassDeclaration(symbol.valueDeclaration) || isSymbolAccessible(symbol, context.enclosingDeclaration, isInstanceType, false).accessibility !== 0)) || symbol.flags & (384 | 512) || shouldWriteTypeOfFunctionSymbol()) {\n              return symbolToTypeNode(symbol, context, isInstanceType);\n            } else if ((_a3 = context.visitedTypes) == null ? void 0 : _a3.has(typeId)) {\n              const typeAlias = getTypeAliasForTypeLiteral(type2);\n              if (typeAlias) {\n                return symbolToTypeNode(typeAlias, context, 788968);\n              } else {\n                return createElidedInformationPlaceholder(context);\n              }\n            } else {\n              return visitAndTransformType(type2, createTypeNodeFromObjectType);\n            }\n          } else {\n            const isInstantiationExpressionType = !!(getObjectFlags(type2) & 8388608);\n            if (isInstantiationExpressionType) {\n              const instantiationExpressionType = type2;\n              if (isTypeQueryNode(instantiationExpressionType.node)) {\n                const typeNode = serializeExistingTypeNode(context, instantiationExpressionType.node);\n                if (typeNode) {\n                  return typeNode;\n                }\n              }\n              if ((_b2 = context.visitedTypes) == null ? void 0 : _b2.has(typeId)) {\n                return createElidedInformationPlaceholder(context);\n              }\n              return visitAndTransformType(type2, createTypeNodeFromObjectType);\n            }\n            return createTypeNodeFromObjectType(type2);\n          }\n          function shouldWriteTypeOfFunctionSymbol() {\n            var _a4;\n            const isStaticMethodSymbol = !!(symbol.flags & 8192) && some(symbol.declarations, (declaration) => isStatic(declaration));\n            const isNonLocalFunctionSymbol = !!(symbol.flags & 16) && (symbol.parent || forEach(symbol.declarations, (declaration) => declaration.parent.kind === 308 || declaration.parent.kind === 265));\n            if (isStaticMethodSymbol || isNonLocalFunctionSymbol) {\n              return (!!(context.flags & 4096) || ((_a4 = context.visitedTypes) == null ? void 0 : _a4.has(typeId))) && (!(context.flags & 8) || isValueSymbolAccessible(symbol, context.enclosingDeclaration));\n            }\n          }\n        }\n        function visitAndTransformType(type2, transform2) {\n          var _a3, _b2;\n          const typeId = type2.id;\n          const isConstructorObject = getObjectFlags(type2) & 16 && type2.symbol && type2.symbol.flags & 32;\n          const id = getObjectFlags(type2) & 4 && type2.node ? \"N\" + getNodeId(type2.node) : type2.flags & 16777216 ? \"N\" + getNodeId(type2.root.node) : type2.symbol ? (isConstructorObject ? \"+\" : \"\") + getSymbolId(type2.symbol) : void 0;\n          if (!context.visitedTypes) {\n            context.visitedTypes = /* @__PURE__ */ new Set();\n          }\n          if (id && !context.symbolDepth) {\n            context.symbolDepth = /* @__PURE__ */ new Map();\n          }\n          const links = context.enclosingDeclaration && getNodeLinks(context.enclosingDeclaration);\n          const key = `${getTypeId(type2)}|${context.flags}`;\n          if (links) {\n            links.serializedTypes || (links.serializedTypes = /* @__PURE__ */ new Map());\n          }\n          const cachedResult = (_a3 = links == null ? void 0 : links.serializedTypes) == null ? void 0 : _a3.get(key);\n          if (cachedResult) {\n            if (cachedResult.truncating) {\n              context.truncating = true;\n            }\n            context.approximateLength += cachedResult.addedLength;\n            return deepCloneOrReuseNode(cachedResult.node);\n          }\n          let depth;\n          if (id) {\n            depth = context.symbolDepth.get(id) || 0;\n            if (depth > 10) {\n              return createElidedInformationPlaceholder(context);\n            }\n            context.symbolDepth.set(id, depth + 1);\n          }\n          context.visitedTypes.add(typeId);\n          const startLength = context.approximateLength;\n          const result = transform2(type2);\n          const addedLength = context.approximateLength - startLength;\n          if (!context.reportedDiagnostic && !context.encounteredError) {\n            (_b2 = links == null ? void 0 : links.serializedTypes) == null ? void 0 : _b2.set(key, { node: result, truncating: context.truncating, addedLength });\n          }\n          context.visitedTypes.delete(typeId);\n          if (id) {\n            context.symbolDepth.set(id, depth);\n          }\n          return result;\n          function deepCloneOrReuseNode(node) {\n            if (!nodeIsSynthesized(node) && getParseTreeNode(node) === node) {\n              return node;\n            }\n            return setTextRange(factory.cloneNode(visitEachChild(node, deepCloneOrReuseNode, nullTransformationContext, deepCloneOrReuseNodes)), node);\n          }\n          function deepCloneOrReuseNodes(nodes, visitor, test, start, count) {\n            if (nodes && nodes.length === 0) {\n              return setTextRange(factory.createNodeArray(void 0, nodes.hasTrailingComma), nodes);\n            }\n            return visitNodes2(nodes, visitor, test, start, count);\n          }\n        }\n        function createTypeNodeFromObjectType(type2) {\n          if (isGenericMappedType(type2) || type2.containsError) {\n            return createMappedTypeNodeFromType(type2);\n          }\n          const resolved = resolveStructuredTypeMembers(type2);\n          if (!resolved.properties.length && !resolved.indexInfos.length) {\n            if (!resolved.callSignatures.length && !resolved.constructSignatures.length) {\n              context.approximateLength += 2;\n              return setEmitFlags(factory.createTypeLiteralNode(void 0), 1);\n            }\n            if (resolved.callSignatures.length === 1 && !resolved.constructSignatures.length) {\n              const signature = resolved.callSignatures[0];\n              const signatureNode = signatureToSignatureDeclarationHelper(signature, 181, context);\n              return signatureNode;\n            }\n            if (resolved.constructSignatures.length === 1 && !resolved.callSignatures.length) {\n              const signature = resolved.constructSignatures[0];\n              const signatureNode = signatureToSignatureDeclarationHelper(signature, 182, context);\n              return signatureNode;\n            }\n          }\n          const abstractSignatures = filter(resolved.constructSignatures, (signature) => !!(signature.flags & 4));\n          if (some(abstractSignatures)) {\n            const types = map(abstractSignatures, getOrCreateTypeFromSignature);\n            const typeElementCount = resolved.callSignatures.length + (resolved.constructSignatures.length - abstractSignatures.length) + resolved.indexInfos.length + (context.flags & 2048 ? countWhere(resolved.properties, (p) => !(p.flags & 4194304)) : length(resolved.properties));\n            if (typeElementCount) {\n              types.push(getResolvedTypeWithoutAbstractConstructSignatures(resolved));\n            }\n            return typeToTypeNodeHelper(getIntersectionType(types), context);\n          }\n          const savedFlags = context.flags;\n          context.flags |= 4194304;\n          const members = createTypeNodesFromResolvedType(resolved);\n          context.flags = savedFlags;\n          const typeLiteralNode = factory.createTypeLiteralNode(members);\n          context.approximateLength += 2;\n          setEmitFlags(typeLiteralNode, context.flags & 1024 ? 0 : 1);\n          return typeLiteralNode;\n        }\n        function typeReferenceToTypeNode(type2) {\n          let typeArguments = getTypeArguments(type2);\n          if (type2.target === globalArrayType || type2.target === globalReadonlyArrayType) {\n            if (context.flags & 2) {\n              const typeArgumentNode = typeToTypeNodeHelper(typeArguments[0], context);\n              return factory.createTypeReferenceNode(type2.target === globalArrayType ? \"Array\" : \"ReadonlyArray\", [typeArgumentNode]);\n            }\n            const elementType = typeToTypeNodeHelper(typeArguments[0], context);\n            const arrayType = factory.createArrayTypeNode(elementType);\n            return type2.target === globalArrayType ? arrayType : factory.createTypeOperatorNode(146, arrayType);\n          } else if (type2.target.objectFlags & 8) {\n            typeArguments = sameMap(typeArguments, (t, i) => removeMissingType(t, !!(type2.target.elementFlags[i] & 2)));\n            if (typeArguments.length > 0) {\n              const arity = getTypeReferenceArity(type2);\n              const tupleConstituentNodes = mapToTypeNodes(typeArguments.slice(0, arity), context);\n              if (tupleConstituentNodes) {\n                if (type2.target.labeledElementDeclarations) {\n                  for (let i = 0; i < tupleConstituentNodes.length; i++) {\n                    const flags = type2.target.elementFlags[i];\n                    tupleConstituentNodes[i] = factory.createNamedTupleMember(flags & 12 ? factory.createToken(25) : void 0, factory.createIdentifier(unescapeLeadingUnderscores(getTupleElementLabel(type2.target.labeledElementDeclarations[i]))), flags & 2 ? factory.createToken(57) : void 0, flags & 4 ? factory.createArrayTypeNode(tupleConstituentNodes[i]) : tupleConstituentNodes[i]);\n                  }\n                } else {\n                  for (let i = 0; i < Math.min(arity, tupleConstituentNodes.length); i++) {\n                    const flags = type2.target.elementFlags[i];\n                    tupleConstituentNodes[i] = flags & 12 ? factory.createRestTypeNode(flags & 4 ? factory.createArrayTypeNode(tupleConstituentNodes[i]) : tupleConstituentNodes[i]) : flags & 2 ? factory.createOptionalTypeNode(tupleConstituentNodes[i]) : tupleConstituentNodes[i];\n                  }\n                }\n                const tupleTypeNode = setEmitFlags(factory.createTupleTypeNode(tupleConstituentNodes), 1);\n                return type2.target.readonly ? factory.createTypeOperatorNode(146, tupleTypeNode) : tupleTypeNode;\n              }\n            }\n            if (context.encounteredError || context.flags & 524288) {\n              const tupleTypeNode = setEmitFlags(factory.createTupleTypeNode([]), 1);\n              return type2.target.readonly ? factory.createTypeOperatorNode(146, tupleTypeNode) : tupleTypeNode;\n            }\n            context.encounteredError = true;\n            return void 0;\n          } else if (context.flags & 2048 && type2.symbol.valueDeclaration && isClassLike(type2.symbol.valueDeclaration) && !isValueSymbolAccessible(type2.symbol, context.enclosingDeclaration)) {\n            return createAnonymousTypeNode(type2);\n          } else {\n            const outerTypeParameters = type2.target.outerTypeParameters;\n            let i = 0;\n            let resultType;\n            if (outerTypeParameters) {\n              const length2 = outerTypeParameters.length;\n              while (i < length2) {\n                const start = i;\n                const parent2 = getParentSymbolOfTypeParameter(outerTypeParameters[i]);\n                do {\n                  i++;\n                } while (i < length2 && getParentSymbolOfTypeParameter(outerTypeParameters[i]) === parent2);\n                if (!rangeEquals(outerTypeParameters, typeArguments, start, i)) {\n                  const typeArgumentSlice = mapToTypeNodes(typeArguments.slice(start, i), context);\n                  const flags2 = context.flags;\n                  context.flags |= 16;\n                  const ref = symbolToTypeNode(parent2, context, 788968, typeArgumentSlice);\n                  context.flags = flags2;\n                  resultType = !resultType ? ref : appendReferenceToType(resultType, ref);\n                }\n              }\n            }\n            let typeArgumentNodes;\n            if (typeArguments.length > 0) {\n              const typeParameterCount = (type2.target.typeParameters || emptyArray).length;\n              typeArgumentNodes = mapToTypeNodes(typeArguments.slice(i, typeParameterCount), context);\n            }\n            const flags = context.flags;\n            context.flags |= 16;\n            const finalRef = symbolToTypeNode(type2.symbol, context, 788968, typeArgumentNodes);\n            context.flags = flags;\n            return !resultType ? finalRef : appendReferenceToType(resultType, finalRef);\n          }\n        }\n        function appendReferenceToType(root, ref) {\n          if (isImportTypeNode(root)) {\n            let typeArguments = root.typeArguments;\n            let qualifier = root.qualifier;\n            if (qualifier) {\n              if (isIdentifier(qualifier)) {\n                if (typeArguments !== getIdentifierTypeArguments(qualifier)) {\n                  qualifier = setIdentifierTypeArguments(factory.cloneNode(qualifier), typeArguments);\n                }\n              } else {\n                if (typeArguments !== getIdentifierTypeArguments(qualifier.right)) {\n                  qualifier = factory.updateQualifiedName(qualifier, qualifier.left, setIdentifierTypeArguments(factory.cloneNode(qualifier.right), typeArguments));\n                }\n              }\n            }\n            typeArguments = ref.typeArguments;\n            const ids = getAccessStack(ref);\n            for (const id of ids) {\n              qualifier = qualifier ? factory.createQualifiedName(qualifier, id) : id;\n            }\n            return factory.updateImportTypeNode(root, root.argument, root.assertions, qualifier, typeArguments, root.isTypeOf);\n          } else {\n            let typeArguments = root.typeArguments;\n            let typeName = root.typeName;\n            if (isIdentifier(typeName)) {\n              if (typeArguments !== getIdentifierTypeArguments(typeName)) {\n                typeName = setIdentifierTypeArguments(factory.cloneNode(typeName), typeArguments);\n              }\n            } else {\n              if (typeArguments !== getIdentifierTypeArguments(typeName.right)) {\n                typeName = factory.updateQualifiedName(typeName, typeName.left, setIdentifierTypeArguments(factory.cloneNode(typeName.right), typeArguments));\n              }\n            }\n            typeArguments = ref.typeArguments;\n            const ids = getAccessStack(ref);\n            for (const id of ids) {\n              typeName = factory.createQualifiedName(typeName, id);\n            }\n            return factory.updateTypeReferenceNode(root, typeName, typeArguments);\n          }\n        }\n        function getAccessStack(ref) {\n          let state = ref.typeName;\n          const ids = [];\n          while (!isIdentifier(state)) {\n            ids.unshift(state.right);\n            state = state.left;\n          }\n          ids.unshift(state);\n          return ids;\n        }\n        function createTypeNodesFromResolvedType(resolvedType) {\n          if (checkTruncationLength(context)) {\n            return [factory.createPropertySignature(void 0, \"...\", void 0, void 0)];\n          }\n          const typeElements = [];\n          for (const signature of resolvedType.callSignatures) {\n            typeElements.push(signatureToSignatureDeclarationHelper(signature, 176, context));\n          }\n          for (const signature of resolvedType.constructSignatures) {\n            if (signature.flags & 4)\n              continue;\n            typeElements.push(signatureToSignatureDeclarationHelper(signature, 177, context));\n          }\n          for (const info of resolvedType.indexInfos) {\n            typeElements.push(indexInfoToIndexSignatureDeclarationHelper(info, context, resolvedType.objectFlags & 1024 ? createElidedInformationPlaceholder(context) : void 0));\n          }\n          const properties = resolvedType.properties;\n          if (!properties) {\n            return typeElements;\n          }\n          let i = 0;\n          for (const propertySymbol of properties) {\n            i++;\n            if (context.flags & 2048) {\n              if (propertySymbol.flags & 4194304) {\n                continue;\n              }\n              if (getDeclarationModifierFlagsFromSymbol(propertySymbol) & (8 | 16) && context.tracker.reportPrivateInBaseOfClassExpression) {\n                context.tracker.reportPrivateInBaseOfClassExpression(unescapeLeadingUnderscores(propertySymbol.escapedName));\n              }\n            }\n            if (checkTruncationLength(context) && i + 2 < properties.length - 1) {\n              typeElements.push(factory.createPropertySignature(void 0, `... ${properties.length - i} more ...`, void 0, void 0));\n              addPropertyToElementList(properties[properties.length - 1], context, typeElements);\n              break;\n            }\n            addPropertyToElementList(propertySymbol, context, typeElements);\n          }\n          return typeElements.length ? typeElements : void 0;\n        }\n      }\n      function createElidedInformationPlaceholder(context) {\n        context.approximateLength += 3;\n        if (!(context.flags & 1)) {\n          return factory.createTypeReferenceNode(factory.createIdentifier(\"...\"), void 0);\n        }\n        return factory.createKeywordTypeNode(131);\n      }\n      function shouldUsePlaceholderForProperty(propertySymbol, context) {\n        var _a2;\n        return !!(getCheckFlags(propertySymbol) & 8192) && (contains(context.reverseMappedStack, propertySymbol) || ((_a2 = context.reverseMappedStack) == null ? void 0 : _a2[0]) && !(getObjectFlags(last(context.reverseMappedStack).links.propertyType) & 16));\n      }\n      function addPropertyToElementList(propertySymbol, context, typeElements) {\n        var _a2;\n        const propertyIsReverseMapped = !!(getCheckFlags(propertySymbol) & 8192);\n        const propertyType = shouldUsePlaceholderForProperty(propertySymbol, context) ? anyType : getNonMissingTypeOfSymbol(propertySymbol);\n        const saveEnclosingDeclaration = context.enclosingDeclaration;\n        context.enclosingDeclaration = void 0;\n        if (context.tracker.canTrackSymbol && isLateBoundName(propertySymbol.escapedName)) {\n          if (propertySymbol.declarations) {\n            const decl = first(propertySymbol.declarations);\n            if (hasLateBindableName(decl)) {\n              if (isBinaryExpression(decl)) {\n                const name = getNameOfDeclaration(decl);\n                if (name && isElementAccessExpression(name) && isPropertyAccessEntityNameExpression(name.argumentExpression)) {\n                  trackComputedName(name.argumentExpression, saveEnclosingDeclaration, context);\n                }\n              } else {\n                trackComputedName(decl.name.expression, saveEnclosingDeclaration, context);\n              }\n            }\n          } else {\n            context.tracker.reportNonSerializableProperty(symbolToString(propertySymbol));\n          }\n        }\n        context.enclosingDeclaration = propertySymbol.valueDeclaration || ((_a2 = propertySymbol.declarations) == null ? void 0 : _a2[0]) || saveEnclosingDeclaration;\n        const propertyName = getPropertyNameNodeForSymbol(propertySymbol, context);\n        context.enclosingDeclaration = saveEnclosingDeclaration;\n        context.approximateLength += symbolName(propertySymbol).length + 1;\n        const optionalToken = propertySymbol.flags & 16777216 ? factory.createToken(57) : void 0;\n        if (propertySymbol.flags & (16 | 8192) && !getPropertiesOfObjectType(propertyType).length && !isReadonlySymbol(propertySymbol)) {\n          const signatures = getSignaturesOfType(filterType(propertyType, (t) => !(t.flags & 32768)), 0);\n          for (const signature of signatures) {\n            const methodDeclaration = signatureToSignatureDeclarationHelper(signature, 170, context, { name: propertyName, questionToken: optionalToken });\n            typeElements.push(preserveCommentsOn(methodDeclaration));\n          }\n        } else {\n          let propertyTypeNode;\n          if (shouldUsePlaceholderForProperty(propertySymbol, context)) {\n            propertyTypeNode = createElidedInformationPlaceholder(context);\n          } else {\n            if (propertyIsReverseMapped) {\n              context.reverseMappedStack || (context.reverseMappedStack = []);\n              context.reverseMappedStack.push(propertySymbol);\n            }\n            propertyTypeNode = propertyType ? serializeTypeForDeclaration(context, propertyType, propertySymbol, saveEnclosingDeclaration) : factory.createKeywordTypeNode(131);\n            if (propertyIsReverseMapped) {\n              context.reverseMappedStack.pop();\n            }\n          }\n          const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(146)] : void 0;\n          if (modifiers) {\n            context.approximateLength += 9;\n          }\n          const propertySignature = factory.createPropertySignature(modifiers, propertyName, optionalToken, propertyTypeNode);\n          typeElements.push(preserveCommentsOn(propertySignature));\n        }\n        function preserveCommentsOn(node) {\n          var _a3;\n          if (some(propertySymbol.declarations, (d) => d.kind === 351)) {\n            const d = (_a3 = propertySymbol.declarations) == null ? void 0 : _a3.find((d2) => d2.kind === 351);\n            const commentText = getTextOfJSDocComment(d.comment);\n            if (commentText) {\n              setSyntheticLeadingComments(node, [{ kind: 3, text: \"*\\n * \" + commentText.replace(/\\n/g, \"\\n * \") + \"\\n \", pos: -1, end: -1, hasTrailingNewLine: true }]);\n            }\n          } else if (propertySymbol.valueDeclaration) {\n            setCommentRange(node, propertySymbol.valueDeclaration);\n          }\n          return node;\n        }\n      }\n      function mapToTypeNodes(types, context, isBareList) {\n        if (some(types)) {\n          if (checkTruncationLength(context)) {\n            if (!isBareList) {\n              return [factory.createTypeReferenceNode(\"...\", void 0)];\n            } else if (types.length > 2) {\n              return [\n                typeToTypeNodeHelper(types[0], context),\n                factory.createTypeReferenceNode(`... ${types.length - 2} more ...`, void 0),\n                typeToTypeNodeHelper(types[types.length - 1], context)\n              ];\n            }\n          }\n          const mayHaveNameCollisions = !(context.flags & 64);\n          const seenNames = mayHaveNameCollisions ? createUnderscoreEscapedMultiMap() : void 0;\n          const result = [];\n          let i = 0;\n          for (const type of types) {\n            i++;\n            if (checkTruncationLength(context) && i + 2 < types.length - 1) {\n              result.push(factory.createTypeReferenceNode(`... ${types.length - i} more ...`, void 0));\n              const typeNode2 = typeToTypeNodeHelper(types[types.length - 1], context);\n              if (typeNode2) {\n                result.push(typeNode2);\n              }\n              break;\n            }\n            context.approximateLength += 2;\n            const typeNode = typeToTypeNodeHelper(type, context);\n            if (typeNode) {\n              result.push(typeNode);\n              if (seenNames && isIdentifierTypeReference(typeNode)) {\n                seenNames.add(typeNode.typeName.escapedText, [type, result.length - 1]);\n              }\n            }\n          }\n          if (seenNames) {\n            const saveContextFlags = context.flags;\n            context.flags |= 64;\n            seenNames.forEach((types2) => {\n              if (!arrayIsHomogeneous(types2, ([a], [b]) => typesAreSameReference(a, b))) {\n                for (const [type, resultIndex] of types2) {\n                  result[resultIndex] = typeToTypeNodeHelper(type, context);\n                }\n              }\n            });\n            context.flags = saveContextFlags;\n          }\n          return result;\n        }\n      }\n      function typesAreSameReference(a, b) {\n        return a === b || !!a.symbol && a.symbol === b.symbol || !!a.aliasSymbol && a.aliasSymbol === b.aliasSymbol;\n      }\n      function indexInfoToIndexSignatureDeclarationHelper(indexInfo, context, typeNode) {\n        const name = getNameFromIndexInfo(indexInfo) || \"x\";\n        const indexerTypeNode = typeToTypeNodeHelper(indexInfo.keyType, context);\n        const indexingParameter = factory.createParameterDeclaration(void 0, void 0, name, void 0, indexerTypeNode, void 0);\n        if (!typeNode) {\n          typeNode = typeToTypeNodeHelper(indexInfo.type || anyType, context);\n        }\n        if (!indexInfo.type && !(context.flags & 2097152)) {\n          context.encounteredError = true;\n        }\n        context.approximateLength += name.length + 4;\n        return factory.createIndexSignature(indexInfo.isReadonly ? [factory.createToken(146)] : void 0, [indexingParameter], typeNode);\n      }\n      function signatureToSignatureDeclarationHelper(signature, kind, context, options) {\n        var _a2, _b, _c, _d, _e;\n        const suppressAny = context.flags & 256;\n        if (suppressAny)\n          context.flags &= ~256;\n        context.approximateLength += 3;\n        let typeParameters;\n        let typeArguments;\n        if (context.flags & 32 && signature.target && signature.mapper && signature.target.typeParameters) {\n          typeArguments = signature.target.typeParameters.map((parameter) => typeToTypeNodeHelper(instantiateType(parameter, signature.mapper), context));\n        } else {\n          typeParameters = signature.typeParameters && signature.typeParameters.map((parameter) => typeParameterToDeclaration(parameter, context));\n        }\n        const expandedParams = getExpandedParameters(signature, true)[0];\n        let cleanup;\n        if (context.enclosingDeclaration && signature.declaration && signature.declaration !== context.enclosingDeclaration && !isInJSFile(signature.declaration) && some(expandedParams)) {\n          const existingFakeScope = getNodeLinks(context.enclosingDeclaration).fakeScopeForSignatureDeclaration ? context.enclosingDeclaration : void 0;\n          Debug.assertOptionalNode(existingFakeScope, isBlock);\n          const locals = (_a2 = existingFakeScope == null ? void 0 : existingFakeScope.locals) != null ? _a2 : createSymbolTable();\n          let newLocals;\n          for (const param of expandedParams) {\n            if (!locals.has(param.escapedName)) {\n              newLocals = append(newLocals, param.escapedName);\n              locals.set(param.escapedName, param);\n            }\n          }\n          if (newLocals) {\n            let removeNewLocals2 = function() {\n              forEach(newLocals, (s) => locals.delete(s));\n            };\n            var removeNewLocals = removeNewLocals2;\n            if (existingFakeScope) {\n              cleanup = removeNewLocals2;\n            } else {\n              const fakeScope = parseNodeFactory.createBlock(emptyArray);\n              getNodeLinks(fakeScope).fakeScopeForSignatureDeclaration = true;\n              fakeScope.locals = locals;\n              const saveEnclosingDeclaration = context.enclosingDeclaration;\n              setParent(fakeScope, saveEnclosingDeclaration);\n              context.enclosingDeclaration = fakeScope;\n              cleanup = () => {\n                context.enclosingDeclaration = saveEnclosingDeclaration;\n                removeNewLocals2();\n              };\n            }\n          }\n        }\n        const parameters = (some(expandedParams, (p) => p !== expandedParams[expandedParams.length - 1] && !!(getCheckFlags(p) & 32768)) ? signature.parameters : expandedParams).map((parameter) => symbolToParameterDeclaration(parameter, context, kind === 173, options == null ? void 0 : options.privateSymbolVisitor, options == null ? void 0 : options.bundledImports));\n        const thisParameter = context.flags & 33554432 ? void 0 : tryGetThisParameterDeclaration(signature, context);\n        if (thisParameter) {\n          parameters.unshift(thisParameter);\n        }\n        let returnTypeNode;\n        const typePredicate = getTypePredicateOfSignature(signature);\n        if (typePredicate) {\n          const assertsModifier = typePredicate.kind === 2 || typePredicate.kind === 3 ? factory.createToken(129) : void 0;\n          const parameterName = typePredicate.kind === 1 || typePredicate.kind === 3 ? setEmitFlags(factory.createIdentifier(typePredicate.parameterName), 33554432) : factory.createThisTypeNode();\n          const typeNode = typePredicate.type && typeToTypeNodeHelper(typePredicate.type, context);\n          returnTypeNode = factory.createTypePredicateNode(assertsModifier, parameterName, typeNode);\n        } else {\n          const returnType = getReturnTypeOfSignature(signature);\n          if (returnType && !(suppressAny && isTypeAny(returnType))) {\n            returnTypeNode = serializeReturnTypeForSignature(context, returnType, signature, options == null ? void 0 : options.privateSymbolVisitor, options == null ? void 0 : options.bundledImports);\n          } else if (!suppressAny) {\n            returnTypeNode = factory.createKeywordTypeNode(131);\n          }\n        }\n        let modifiers = options == null ? void 0 : options.modifiers;\n        if (kind === 182 && signature.flags & 4) {\n          const flags = modifiersToFlags(modifiers);\n          modifiers = factory.createModifiersFromModifierFlags(flags | 256);\n        }\n        const node = kind === 176 ? factory.createCallSignature(typeParameters, parameters, returnTypeNode) : kind === 177 ? factory.createConstructSignature(typeParameters, parameters, returnTypeNode) : kind === 170 ? factory.createMethodSignature(modifiers, (_b = options == null ? void 0 : options.name) != null ? _b : factory.createIdentifier(\"\"), options == null ? void 0 : options.questionToken, typeParameters, parameters, returnTypeNode) : kind === 171 ? factory.createMethodDeclaration(modifiers, void 0, (_c = options == null ? void 0 : options.name) != null ? _c : factory.createIdentifier(\"\"), void 0, typeParameters, parameters, returnTypeNode, void 0) : kind === 173 ? factory.createConstructorDeclaration(modifiers, parameters, void 0) : kind === 174 ? factory.createGetAccessorDeclaration(modifiers, (_d = options == null ? void 0 : options.name) != null ? _d : factory.createIdentifier(\"\"), parameters, returnTypeNode, void 0) : kind === 175 ? factory.createSetAccessorDeclaration(modifiers, (_e = options == null ? void 0 : options.name) != null ? _e : factory.createIdentifier(\"\"), parameters, void 0) : kind === 178 ? factory.createIndexSignature(modifiers, parameters, returnTypeNode) : kind === 320 ? factory.createJSDocFunctionType(parameters, returnTypeNode) : kind === 181 ? factory.createFunctionTypeNode(typeParameters, parameters, returnTypeNode != null ? returnTypeNode : factory.createTypeReferenceNode(factory.createIdentifier(\"\"))) : kind === 182 ? factory.createConstructorTypeNode(modifiers, typeParameters, parameters, returnTypeNode != null ? returnTypeNode : factory.createTypeReferenceNode(factory.createIdentifier(\"\"))) : kind === 259 ? factory.createFunctionDeclaration(modifiers, void 0, (options == null ? void 0 : options.name) ? cast(options.name, isIdentifier) : factory.createIdentifier(\"\"), typeParameters, parameters, returnTypeNode, void 0) : kind === 215 ? factory.createFunctionExpression(modifiers, void 0, (options == null ? void 0 : options.name) ? cast(options.name, isIdentifier) : factory.createIdentifier(\"\"), typeParameters, parameters, returnTypeNode, factory.createBlock([])) : kind === 216 ? factory.createArrowFunction(modifiers, typeParameters, parameters, returnTypeNode, void 0, factory.createBlock([])) : Debug.assertNever(kind);\n        if (typeArguments) {\n          node.typeArguments = factory.createNodeArray(typeArguments);\n        }\n        cleanup == null ? void 0 : cleanup();\n        return node;\n      }\n      function tryGetThisParameterDeclaration(signature, context) {\n        if (signature.thisParameter) {\n          return symbolToParameterDeclaration(signature.thisParameter, context);\n        }\n        if (signature.declaration && isInJSFile(signature.declaration)) {\n          const thisTag = getJSDocThisTag(signature.declaration);\n          if (thisTag && thisTag.typeExpression) {\n            return factory.createParameterDeclaration(void 0, void 0, \"this\", void 0, typeToTypeNodeHelper(getTypeFromTypeNode(thisTag.typeExpression), context));\n          }\n        }\n      }\n      function typeParameterToDeclarationWithConstraint(type, context, constraintNode) {\n        const savedContextFlags = context.flags;\n        context.flags &= ~512;\n        const modifiers = factory.createModifiersFromModifierFlags(getTypeParameterModifiers(type));\n        const name = typeParameterToName(type, context);\n        const defaultParameter = getDefaultFromTypeParameter(type);\n        const defaultParameterNode = defaultParameter && typeToTypeNodeHelper(defaultParameter, context);\n        context.flags = savedContextFlags;\n        return factory.createTypeParameterDeclaration(modifiers, name, constraintNode, defaultParameterNode);\n      }\n      function typeParameterToDeclaration(type, context, constraint = getConstraintOfTypeParameter(type)) {\n        const constraintNode = constraint && typeToTypeNodeHelper(constraint, context);\n        return typeParameterToDeclarationWithConstraint(type, context, constraintNode);\n      }\n      function symbolToParameterDeclaration(parameterSymbol, context, preserveModifierFlags, privateSymbolVisitor, bundledImports) {\n        let parameterDeclaration = getDeclarationOfKind(parameterSymbol, 166);\n        if (!parameterDeclaration && !isTransientSymbol(parameterSymbol)) {\n          parameterDeclaration = getDeclarationOfKind(parameterSymbol, 344);\n        }\n        let parameterType = getTypeOfSymbol(parameterSymbol);\n        if (parameterDeclaration && isRequiredInitializedParameter(parameterDeclaration)) {\n          parameterType = getOptionalType(parameterType);\n        }\n        const parameterTypeNode = serializeTypeForDeclaration(context, parameterType, parameterSymbol, context.enclosingDeclaration, privateSymbolVisitor, bundledImports);\n        const modifiers = !(context.flags & 8192) && preserveModifierFlags && parameterDeclaration && canHaveModifiers(parameterDeclaration) ? map(getModifiers(parameterDeclaration), factory.cloneNode) : void 0;\n        const isRest = parameterDeclaration && isRestParameter(parameterDeclaration) || getCheckFlags(parameterSymbol) & 32768;\n        const dotDotDotToken = isRest ? factory.createToken(25) : void 0;\n        const name = parameterDeclaration ? parameterDeclaration.name ? parameterDeclaration.name.kind === 79 ? setEmitFlags(factory.cloneNode(parameterDeclaration.name), 33554432) : parameterDeclaration.name.kind === 163 ? setEmitFlags(factory.cloneNode(parameterDeclaration.name.right), 33554432) : cloneBindingName(parameterDeclaration.name) : symbolName(parameterSymbol) : symbolName(parameterSymbol);\n        const isOptional = parameterDeclaration && isOptionalParameter(parameterDeclaration) || getCheckFlags(parameterSymbol) & 16384;\n        const questionToken = isOptional ? factory.createToken(57) : void 0;\n        const parameterNode = factory.createParameterDeclaration(modifiers, dotDotDotToken, name, questionToken, parameterTypeNode, void 0);\n        context.approximateLength += symbolName(parameterSymbol).length + 3;\n        return parameterNode;\n        function cloneBindingName(node) {\n          return elideInitializerAndSetEmitFlags(node);\n          function elideInitializerAndSetEmitFlags(node2) {\n            if (context.tracker.canTrackSymbol && isComputedPropertyName(node2) && isLateBindableName(node2)) {\n              trackComputedName(node2.expression, context.enclosingDeclaration, context);\n            }\n            let visited = visitEachChild(node2, elideInitializerAndSetEmitFlags, nullTransformationContext, void 0, elideInitializerAndSetEmitFlags);\n            if (isBindingElement(visited)) {\n              visited = factory.updateBindingElement(visited, visited.dotDotDotToken, visited.propertyName, visited.name, void 0);\n            }\n            if (!nodeIsSynthesized(visited)) {\n              visited = factory.cloneNode(visited);\n            }\n            return setEmitFlags(visited, 1 | 33554432);\n          }\n        }\n      }\n      function trackComputedName(accessExpression, enclosingDeclaration, context) {\n        if (!context.tracker.canTrackSymbol)\n          return;\n        const firstIdentifier = getFirstIdentifier(accessExpression);\n        const name = resolveName(firstIdentifier, firstIdentifier.escapedText, 111551 | 1048576, void 0, void 0, true);\n        if (name) {\n          context.tracker.trackSymbol(name, enclosingDeclaration, 111551);\n        }\n      }\n      function lookupSymbolChain(symbol, context, meaning, yieldModuleSymbol) {\n        context.tracker.trackSymbol(symbol, context.enclosingDeclaration, meaning);\n        return lookupSymbolChainWorker(symbol, context, meaning, yieldModuleSymbol);\n      }\n      function lookupSymbolChainWorker(symbol, context, meaning, yieldModuleSymbol) {\n        let chain;\n        const isTypeParameter = symbol.flags & 262144;\n        if (!isTypeParameter && (context.enclosingDeclaration || context.flags & 64) && !(context.flags & 134217728)) {\n          chain = Debug.checkDefined(getSymbolChain(symbol, meaning, true));\n          Debug.assert(chain && chain.length > 0);\n        } else {\n          chain = [symbol];\n        }\n        return chain;\n        function getSymbolChain(symbol2, meaning2, endOfChain) {\n          let accessibleSymbolChain = getAccessibleSymbolChain(symbol2, context.enclosingDeclaration, meaning2, !!(context.flags & 128));\n          let parentSpecifiers;\n          if (!accessibleSymbolChain || needsQualification(accessibleSymbolChain[0], context.enclosingDeclaration, accessibleSymbolChain.length === 1 ? meaning2 : getQualifiedLeftMeaning(meaning2))) {\n            const parents = getContainersOfSymbol(accessibleSymbolChain ? accessibleSymbolChain[0] : symbol2, context.enclosingDeclaration, meaning2);\n            if (length(parents)) {\n              parentSpecifiers = parents.map((symbol3) => some(symbol3.declarations, hasNonGlobalAugmentationExternalModuleSymbol) ? getSpecifierForModuleSymbol(symbol3, context) : void 0);\n              const indices = parents.map((_, i) => i);\n              indices.sort(sortByBestName);\n              const sortedParents = indices.map((i) => parents[i]);\n              for (const parent2 of sortedParents) {\n                const parentChain = getSymbolChain(parent2, getQualifiedLeftMeaning(meaning2), false);\n                if (parentChain) {\n                  if (parent2.exports && parent2.exports.get(\"export=\") && getSymbolIfSameReference(parent2.exports.get(\"export=\"), symbol2)) {\n                    accessibleSymbolChain = parentChain;\n                    break;\n                  }\n                  accessibleSymbolChain = parentChain.concat(accessibleSymbolChain || [getAliasForSymbolInContainer(parent2, symbol2) || symbol2]);\n                  break;\n                }\n              }\n            }\n          }\n          if (accessibleSymbolChain) {\n            return accessibleSymbolChain;\n          }\n          if (endOfChain || !(symbol2.flags & (2048 | 4096))) {\n            if (!endOfChain && !yieldModuleSymbol && !!forEach(symbol2.declarations, hasNonGlobalAugmentationExternalModuleSymbol)) {\n              return;\n            }\n            return [symbol2];\n          }\n          function sortByBestName(a, b) {\n            const specifierA = parentSpecifiers[a];\n            const specifierB = parentSpecifiers[b];\n            if (specifierA && specifierB) {\n              const isBRelative = pathIsRelative(specifierB);\n              if (pathIsRelative(specifierA) === isBRelative) {\n                return countPathComponents(specifierA) - countPathComponents(specifierB);\n              }\n              if (isBRelative) {\n                return -1;\n              }\n              return 1;\n            }\n            return 0;\n          }\n        }\n      }\n      function typeParametersToTypeParameterDeclarations(symbol, context) {\n        let typeParameterNodes;\n        const targetSymbol = getTargetSymbol(symbol);\n        if (targetSymbol.flags & (32 | 64 | 524288)) {\n          typeParameterNodes = factory.createNodeArray(map(getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol), (tp) => typeParameterToDeclaration(tp, context)));\n        }\n        return typeParameterNodes;\n      }\n      function lookupTypeParameterNodes(chain, index, context) {\n        var _a2;\n        Debug.assert(chain && 0 <= index && index < chain.length);\n        const symbol = chain[index];\n        const symbolId = getSymbolId(symbol);\n        if ((_a2 = context.typeParameterSymbolList) == null ? void 0 : _a2.has(symbolId)) {\n          return void 0;\n        }\n        (context.typeParameterSymbolList || (context.typeParameterSymbolList = /* @__PURE__ */ new Set())).add(symbolId);\n        let typeParameterNodes;\n        if (context.flags & 512 && index < chain.length - 1) {\n          const parentSymbol = symbol;\n          const nextSymbol = chain[index + 1];\n          if (getCheckFlags(nextSymbol) & 1) {\n            const params = getTypeParametersOfClassOrInterface(parentSymbol.flags & 2097152 ? resolveAlias(parentSymbol) : parentSymbol);\n            typeParameterNodes = mapToTypeNodes(map(params, (t) => getMappedType(t, nextSymbol.links.mapper)), context);\n          } else {\n            typeParameterNodes = typeParametersToTypeParameterDeclarations(symbol, context);\n          }\n        }\n        return typeParameterNodes;\n      }\n      function getTopmostIndexedAccessType(top) {\n        if (isIndexedAccessTypeNode(top.objectType)) {\n          return getTopmostIndexedAccessType(top.objectType);\n        }\n        return top;\n      }\n      function getSpecifierForModuleSymbol(symbol, context, overrideImportMode) {\n        var _a2;\n        let file = getDeclarationOfKind(symbol, 308);\n        if (!file) {\n          const equivalentFileSymbol = firstDefined(symbol.declarations, (d) => getFileSymbolIfFileSymbolExportEqualsContainer(d, symbol));\n          if (equivalentFileSymbol) {\n            file = getDeclarationOfKind(equivalentFileSymbol, 308);\n          }\n        }\n        if (file && file.moduleName !== void 0) {\n          return file.moduleName;\n        }\n        if (!file) {\n          if (context.tracker.trackReferencedAmbientModule) {\n            const ambientDecls = filter(symbol.declarations, isAmbientModule);\n            if (length(ambientDecls)) {\n              for (const decl of ambientDecls) {\n                context.tracker.trackReferencedAmbientModule(decl, symbol);\n              }\n            }\n          }\n          if (ambientModuleSymbolRegex.test(symbol.escapedName)) {\n            return symbol.escapedName.substring(1, symbol.escapedName.length - 1);\n          }\n        }\n        if (!context.enclosingDeclaration || !context.tracker.moduleResolverHost) {\n          if (ambientModuleSymbolRegex.test(symbol.escapedName)) {\n            return symbol.escapedName.substring(1, symbol.escapedName.length - 1);\n          }\n          return getSourceFileOfNode(getNonAugmentationDeclaration(symbol)).fileName;\n        }\n        const contextFile = getSourceFileOfNode(getOriginalNode(context.enclosingDeclaration));\n        const resolutionMode = overrideImportMode || (contextFile == null ? void 0 : contextFile.impliedNodeFormat);\n        const cacheKey = createModeAwareCacheKey(contextFile.path, resolutionMode);\n        const links = getSymbolLinks(symbol);\n        let specifier = links.specifierCache && links.specifierCache.get(cacheKey);\n        if (!specifier) {\n          const isBundle2 = !!outFile(compilerOptions);\n          const { moduleResolverHost } = context.tracker;\n          const specifierCompilerOptions = isBundle2 ? { ...compilerOptions, baseUrl: moduleResolverHost.getCommonSourceDirectory() } : compilerOptions;\n          specifier = first(getModuleSpecifiers(symbol, checker, specifierCompilerOptions, contextFile, moduleResolverHost, {\n            importModuleSpecifierPreference: isBundle2 ? \"non-relative\" : \"project-relative\",\n            importModuleSpecifierEnding: isBundle2 ? \"minimal\" : resolutionMode === 99 ? \"js\" : void 0\n          }, { overrideImportMode }));\n          (_a2 = links.specifierCache) != null ? _a2 : links.specifierCache = /* @__PURE__ */ new Map();\n          links.specifierCache.set(cacheKey, specifier);\n        }\n        return specifier;\n      }\n      function symbolToEntityNameNode(symbol) {\n        const identifier = factory.createIdentifier(unescapeLeadingUnderscores(symbol.escapedName));\n        return symbol.parent ? factory.createQualifiedName(symbolToEntityNameNode(symbol.parent), identifier) : identifier;\n      }\n      function symbolToTypeNode(symbol, context, meaning, overrideTypeArguments) {\n        var _a2, _b, _c, _d;\n        const chain = lookupSymbolChain(symbol, context, meaning, !(context.flags & 16384));\n        const isTypeOf = meaning === 111551;\n        if (some(chain[0].declarations, hasNonGlobalAugmentationExternalModuleSymbol)) {\n          const nonRootParts = chain.length > 1 ? createAccessFromSymbolChain(chain, chain.length - 1, 1) : void 0;\n          const typeParameterNodes = overrideTypeArguments || lookupTypeParameterNodes(chain, 0, context);\n          const contextFile = getSourceFileOfNode(getOriginalNode(context.enclosingDeclaration));\n          const targetFile = getSourceFileOfModule(chain[0]);\n          let specifier;\n          let assertion;\n          if (getEmitModuleResolutionKind(compilerOptions) === 3 || getEmitModuleResolutionKind(compilerOptions) === 99) {\n            if ((targetFile == null ? void 0 : targetFile.impliedNodeFormat) === 99 && targetFile.impliedNodeFormat !== (contextFile == null ? void 0 : contextFile.impliedNodeFormat)) {\n              specifier = getSpecifierForModuleSymbol(chain[0], context, 99);\n              assertion = factory.createImportTypeAssertionContainer(factory.createAssertClause(factory.createNodeArray([\n                factory.createAssertEntry(factory.createStringLiteral(\"resolution-mode\"), factory.createStringLiteral(\"import\"))\n              ])));\n              (_b = (_a2 = context.tracker).reportImportTypeNodeResolutionModeOverride) == null ? void 0 : _b.call(_a2);\n            }\n          }\n          if (!specifier) {\n            specifier = getSpecifierForModuleSymbol(chain[0], context);\n          }\n          if (!(context.flags & 67108864) && getEmitModuleResolutionKind(compilerOptions) !== 1 && specifier.indexOf(\"/node_modules/\") >= 0) {\n            const oldSpecifier = specifier;\n            if (getEmitModuleResolutionKind(compilerOptions) === 3 || getEmitModuleResolutionKind(compilerOptions) === 99) {\n              const swappedMode = (contextFile == null ? void 0 : contextFile.impliedNodeFormat) === 99 ? 1 : 99;\n              specifier = getSpecifierForModuleSymbol(chain[0], context, swappedMode);\n              if (specifier.indexOf(\"/node_modules/\") >= 0) {\n                specifier = oldSpecifier;\n              } else {\n                assertion = factory.createImportTypeAssertionContainer(factory.createAssertClause(factory.createNodeArray([\n                  factory.createAssertEntry(factory.createStringLiteral(\"resolution-mode\"), factory.createStringLiteral(swappedMode === 99 ? \"import\" : \"require\"))\n                ])));\n                (_d = (_c = context.tracker).reportImportTypeNodeResolutionModeOverride) == null ? void 0 : _d.call(_c);\n              }\n            }\n            if (!assertion) {\n              context.encounteredError = true;\n              if (context.tracker.reportLikelyUnsafeImportRequiredError) {\n                context.tracker.reportLikelyUnsafeImportRequiredError(oldSpecifier);\n              }\n            }\n          }\n          const lit = factory.createLiteralTypeNode(factory.createStringLiteral(specifier));\n          if (context.tracker.trackExternalModuleSymbolOfImportTypeNode)\n            context.tracker.trackExternalModuleSymbolOfImportTypeNode(chain[0]);\n          context.approximateLength += specifier.length + 10;\n          if (!nonRootParts || isEntityName(nonRootParts)) {\n            if (nonRootParts) {\n              const lastId = isIdentifier(nonRootParts) ? nonRootParts : nonRootParts.right;\n              setIdentifierTypeArguments(lastId, void 0);\n            }\n            return factory.createImportTypeNode(lit, assertion, nonRootParts, typeParameterNodes, isTypeOf);\n          } else {\n            const splitNode = getTopmostIndexedAccessType(nonRootParts);\n            const qualifier = splitNode.objectType.typeName;\n            return factory.createIndexedAccessTypeNode(factory.createImportTypeNode(lit, assertion, qualifier, typeParameterNodes, isTypeOf), splitNode.indexType);\n          }\n        }\n        const entityName = createAccessFromSymbolChain(chain, chain.length - 1, 0);\n        if (isIndexedAccessTypeNode(entityName)) {\n          return entityName;\n        }\n        if (isTypeOf) {\n          return factory.createTypeQueryNode(entityName);\n        } else {\n          const lastId = isIdentifier(entityName) ? entityName : entityName.right;\n          const lastTypeArgs = getIdentifierTypeArguments(lastId);\n          setIdentifierTypeArguments(lastId, void 0);\n          return factory.createTypeReferenceNode(entityName, lastTypeArgs);\n        }\n        function createAccessFromSymbolChain(chain2, index, stopper) {\n          const typeParameterNodes = index === chain2.length - 1 ? overrideTypeArguments : lookupTypeParameterNodes(chain2, index, context);\n          const symbol2 = chain2[index];\n          const parent2 = chain2[index - 1];\n          let symbolName2;\n          if (index === 0) {\n            context.flags |= 16777216;\n            symbolName2 = getNameOfSymbolAsWritten(symbol2, context);\n            context.approximateLength += (symbolName2 ? symbolName2.length : 0) + 1;\n            context.flags ^= 16777216;\n          } else {\n            if (parent2 && getExportsOfSymbol(parent2)) {\n              const exports = getExportsOfSymbol(parent2);\n              forEachEntry(exports, (ex, name) => {\n                if (getSymbolIfSameReference(ex, symbol2) && !isLateBoundName(name) && name !== \"export=\") {\n                  symbolName2 = unescapeLeadingUnderscores(name);\n                  return true;\n                }\n              });\n            }\n          }\n          if (symbolName2 === void 0) {\n            const name = firstDefined(symbol2.declarations, getNameOfDeclaration);\n            if (name && isComputedPropertyName(name) && isEntityName(name.expression)) {\n              const LHS = createAccessFromSymbolChain(chain2, index - 1, stopper);\n              if (isEntityName(LHS)) {\n                return factory.createIndexedAccessTypeNode(factory.createParenthesizedType(factory.createTypeQueryNode(LHS)), factory.createTypeQueryNode(name.expression));\n              }\n              return LHS;\n            }\n            symbolName2 = getNameOfSymbolAsWritten(symbol2, context);\n          }\n          context.approximateLength += symbolName2.length + 1;\n          if (!(context.flags & 16) && parent2 && getMembersOfSymbol(parent2) && getMembersOfSymbol(parent2).get(symbol2.escapedName) && getSymbolIfSameReference(getMembersOfSymbol(parent2).get(symbol2.escapedName), symbol2)) {\n            const LHS = createAccessFromSymbolChain(chain2, index - 1, stopper);\n            if (isIndexedAccessTypeNode(LHS)) {\n              return factory.createIndexedAccessTypeNode(LHS, factory.createLiteralTypeNode(factory.createStringLiteral(symbolName2)));\n            } else {\n              return factory.createIndexedAccessTypeNode(factory.createTypeReferenceNode(LHS, typeParameterNodes), factory.createLiteralTypeNode(factory.createStringLiteral(symbolName2)));\n            }\n          }\n          const identifier = setEmitFlags(factory.createIdentifier(symbolName2), 33554432);\n          if (typeParameterNodes)\n            setIdentifierTypeArguments(identifier, factory.createNodeArray(typeParameterNodes));\n          identifier.symbol = symbol2;\n          if (index > stopper) {\n            const LHS = createAccessFromSymbolChain(chain2, index - 1, stopper);\n            if (!isEntityName(LHS)) {\n              return Debug.fail(\"Impossible construct - an export of an indexed access cannot be reachable\");\n            }\n            return factory.createQualifiedName(LHS, identifier);\n          }\n          return identifier;\n        }\n      }\n      function typeParameterShadowsNameInScope(escapedName, context, type) {\n        const result = resolveName(context.enclosingDeclaration, escapedName, 788968, void 0, escapedName, false);\n        if (result) {\n          if (result.flags & 262144 && result === type.symbol) {\n            return false;\n          }\n          return true;\n        }\n        return false;\n      }\n      function typeParameterToName(type, context) {\n        var _a2, _b;\n        if (context.flags & 4 && context.typeParameterNames) {\n          const cached = context.typeParameterNames.get(getTypeId(type));\n          if (cached) {\n            return cached;\n          }\n        }\n        let result = symbolToName(type.symbol, context, 788968, true);\n        if (!(result.kind & 79)) {\n          return factory.createIdentifier(\"(Missing type parameter)\");\n        }\n        if (context.flags & 4) {\n          const rawtext = result.escapedText;\n          let i = ((_a2 = context.typeParameterNamesByTextNextNameCount) == null ? void 0 : _a2.get(rawtext)) || 0;\n          let text = rawtext;\n          while (((_b = context.typeParameterNamesByText) == null ? void 0 : _b.has(text)) || typeParameterShadowsNameInScope(text, context, type)) {\n            i++;\n            text = `${rawtext}_${i}`;\n          }\n          if (text !== rawtext) {\n            const typeArguments = getIdentifierTypeArguments(result);\n            result = factory.createIdentifier(text);\n            setIdentifierTypeArguments(result, typeArguments);\n          }\n          (context.typeParameterNamesByTextNextNameCount || (context.typeParameterNamesByTextNextNameCount = /* @__PURE__ */ new Map())).set(rawtext, i);\n          (context.typeParameterNames || (context.typeParameterNames = /* @__PURE__ */ new Map())).set(getTypeId(type), result);\n          (context.typeParameterNamesByText || (context.typeParameterNamesByText = /* @__PURE__ */ new Set())).add(rawtext);\n        }\n        return result;\n      }\n      function symbolToName(symbol, context, meaning, expectsIdentifier) {\n        const chain = lookupSymbolChain(symbol, context, meaning);\n        if (expectsIdentifier && chain.length !== 1 && !context.encounteredError && !(context.flags & 65536)) {\n          context.encounteredError = true;\n        }\n        return createEntityNameFromSymbolChain(chain, chain.length - 1);\n        function createEntityNameFromSymbolChain(chain2, index) {\n          const typeParameterNodes = lookupTypeParameterNodes(chain2, index, context);\n          const symbol2 = chain2[index];\n          if (index === 0) {\n            context.flags |= 16777216;\n          }\n          const symbolName2 = getNameOfSymbolAsWritten(symbol2, context);\n          if (index === 0) {\n            context.flags ^= 16777216;\n          }\n          const identifier = setEmitFlags(factory.createIdentifier(symbolName2), 33554432);\n          if (typeParameterNodes)\n            setIdentifierTypeArguments(identifier, factory.createNodeArray(typeParameterNodes));\n          identifier.symbol = symbol2;\n          return index > 0 ? factory.createQualifiedName(createEntityNameFromSymbolChain(chain2, index - 1), identifier) : identifier;\n        }\n      }\n      function symbolToExpression(symbol, context, meaning) {\n        const chain = lookupSymbolChain(symbol, context, meaning);\n        return createExpressionFromSymbolChain(chain, chain.length - 1);\n        function createExpressionFromSymbolChain(chain2, index) {\n          const typeParameterNodes = lookupTypeParameterNodes(chain2, index, context);\n          const symbol2 = chain2[index];\n          if (index === 0) {\n            context.flags |= 16777216;\n          }\n          let symbolName2 = getNameOfSymbolAsWritten(symbol2, context);\n          if (index === 0) {\n            context.flags ^= 16777216;\n          }\n          let firstChar = symbolName2.charCodeAt(0);\n          if (isSingleOrDoubleQuote(firstChar) && some(symbol2.declarations, hasNonGlobalAugmentationExternalModuleSymbol)) {\n            return factory.createStringLiteral(getSpecifierForModuleSymbol(symbol2, context));\n          }\n          if (index === 0 || canUsePropertyAccess(symbolName2, languageVersion)) {\n            const identifier = setEmitFlags(factory.createIdentifier(symbolName2), 33554432);\n            if (typeParameterNodes)\n              setIdentifierTypeArguments(identifier, factory.createNodeArray(typeParameterNodes));\n            identifier.symbol = symbol2;\n            return index > 0 ? factory.createPropertyAccessExpression(createExpressionFromSymbolChain(chain2, index - 1), identifier) : identifier;\n          } else {\n            if (firstChar === 91) {\n              symbolName2 = symbolName2.substring(1, symbolName2.length - 1);\n              firstChar = symbolName2.charCodeAt(0);\n            }\n            let expression;\n            if (isSingleOrDoubleQuote(firstChar) && !(symbol2.flags & 8)) {\n              expression = factory.createStringLiteral(stripQuotes(symbolName2).replace(/\\\\./g, (s) => s.substring(1)), firstChar === 39);\n            } else if (\"\" + +symbolName2 === symbolName2) {\n              expression = factory.createNumericLiteral(+symbolName2);\n            }\n            if (!expression) {\n              const identifier = setEmitFlags(factory.createIdentifier(symbolName2), 33554432);\n              if (typeParameterNodes)\n                setIdentifierTypeArguments(identifier, factory.createNodeArray(typeParameterNodes));\n              identifier.symbol = symbol2;\n              expression = identifier;\n            }\n            return factory.createElementAccessExpression(createExpressionFromSymbolChain(chain2, index - 1), expression);\n          }\n        }\n      }\n      function isStringNamed(d) {\n        const name = getNameOfDeclaration(d);\n        return !!name && isStringLiteral(name);\n      }\n      function isSingleQuotedStringNamed(d) {\n        const name = getNameOfDeclaration(d);\n        return !!(name && isStringLiteral(name) && (name.singleQuote || !nodeIsSynthesized(name) && startsWith(getTextOfNode(name, false), \"'\")));\n      }\n      function getPropertyNameNodeForSymbol(symbol, context) {\n        const stringNamed = !!length(symbol.declarations) && every(symbol.declarations, isStringNamed);\n        const singleQuote = !!length(symbol.declarations) && every(symbol.declarations, isSingleQuotedStringNamed);\n        const fromNameType = getPropertyNameNodeForSymbolFromNameType(symbol, context, singleQuote, stringNamed);\n        if (fromNameType) {\n          return fromNameType;\n        }\n        const rawName = unescapeLeadingUnderscores(symbol.escapedName);\n        return createPropertyNameNodeForIdentifierOrLiteral(rawName, getEmitScriptTarget(compilerOptions), singleQuote, stringNamed);\n      }\n      function getPropertyNameNodeForSymbolFromNameType(symbol, context, singleQuote, stringNamed) {\n        const nameType = getSymbolLinks(symbol).nameType;\n        if (nameType) {\n          if (nameType.flags & 384) {\n            const name = \"\" + nameType.value;\n            if (!isIdentifierText(name, getEmitScriptTarget(compilerOptions)) && (stringNamed || !isNumericLiteralName(name))) {\n              return factory.createStringLiteral(name, !!singleQuote);\n            }\n            if (isNumericLiteralName(name) && startsWith(name, \"-\")) {\n              return factory.createComputedPropertyName(factory.createNumericLiteral(+name));\n            }\n            return createPropertyNameNodeForIdentifierOrLiteral(name, getEmitScriptTarget(compilerOptions));\n          }\n          if (nameType.flags & 8192) {\n            return factory.createComputedPropertyName(symbolToExpression(nameType.symbol, context, 111551));\n          }\n        }\n      }\n      function cloneNodeBuilderContext(context) {\n        const initial = { ...context };\n        if (initial.typeParameterNames) {\n          initial.typeParameterNames = new Map(initial.typeParameterNames);\n        }\n        if (initial.typeParameterNamesByText) {\n          initial.typeParameterNamesByText = new Set(initial.typeParameterNamesByText);\n        }\n        if (initial.typeParameterSymbolList) {\n          initial.typeParameterSymbolList = new Set(initial.typeParameterSymbolList);\n        }\n        initial.tracker = new SymbolTrackerImpl(initial, initial.tracker.inner, initial.tracker.moduleResolverHost);\n        return initial;\n      }\n      function getDeclarationWithTypeAnnotation(symbol, enclosingDeclaration) {\n        return symbol.declarations && find(symbol.declarations, (s) => !!getEffectiveTypeAnnotationNode(s) && (!enclosingDeclaration || !!findAncestor(s, (n) => n === enclosingDeclaration)));\n      }\n      function existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(existing, type) {\n        return !(getObjectFlags(type) & 4) || !isTypeReferenceNode(existing) || length(existing.typeArguments) >= getMinTypeArgumentCount(type.target.typeParameters);\n      }\n      function getEnclosingDeclarationIgnoringFakeScope(enclosingDeclaration) {\n        return getNodeLinks(enclosingDeclaration).fakeScopeForSignatureDeclaration ? enclosingDeclaration.parent : enclosingDeclaration;\n      }\n      function serializeTypeForDeclaration(context, type, symbol, enclosingDeclaration, includePrivateSymbol, bundled) {\n        if (!isErrorType(type) && enclosingDeclaration) {\n          const declWithExistingAnnotation = getDeclarationWithTypeAnnotation(symbol, getEnclosingDeclarationIgnoringFakeScope(enclosingDeclaration));\n          if (declWithExistingAnnotation && !isFunctionLikeDeclaration(declWithExistingAnnotation) && !isGetAccessorDeclaration(declWithExistingAnnotation)) {\n            const existing = getEffectiveTypeAnnotationNode(declWithExistingAnnotation);\n            if (typeNodeIsEquivalentToType(existing, declWithExistingAnnotation, type) && existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(existing, type)) {\n              const result2 = serializeExistingTypeNode(context, existing, includePrivateSymbol, bundled);\n              if (result2) {\n                return result2;\n              }\n            }\n          }\n        }\n        const oldFlags = context.flags;\n        if (type.flags & 8192 && type.symbol === symbol && (!context.enclosingDeclaration || some(symbol.declarations, (d) => getSourceFileOfNode(d) === getSourceFileOfNode(context.enclosingDeclaration)))) {\n          context.flags |= 1048576;\n        }\n        const result = typeToTypeNodeHelper(type, context);\n        context.flags = oldFlags;\n        return result;\n      }\n      function typeNodeIsEquivalentToType(typeNode, annotatedDeclaration, type) {\n        const typeFromTypeNode = getTypeFromTypeNode(typeNode);\n        if (typeFromTypeNode === type) {\n          return true;\n        }\n        if (isParameter(annotatedDeclaration) && annotatedDeclaration.questionToken) {\n          return getTypeWithFacts(type, 524288) === typeFromTypeNode;\n        }\n        return false;\n      }\n      function serializeReturnTypeForSignature(context, type, signature, includePrivateSymbol, bundled) {\n        if (!isErrorType(type) && context.enclosingDeclaration) {\n          const annotation = signature.declaration && getEffectiveReturnTypeNode(signature.declaration);\n          const enclosingDeclarationIgnoringFakeScope = getEnclosingDeclarationIgnoringFakeScope(context.enclosingDeclaration);\n          if (!!findAncestor(annotation, (n) => n === enclosingDeclarationIgnoringFakeScope) && annotation) {\n            const annotated = getTypeFromTypeNode(annotation);\n            const thisInstantiated = annotated.flags & 262144 && annotated.isThisType ? instantiateType(annotated, signature.mapper) : annotated;\n            if (thisInstantiated === type && existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(annotation, type)) {\n              const result = serializeExistingTypeNode(context, annotation, includePrivateSymbol, bundled);\n              if (result) {\n                return result;\n              }\n            }\n          }\n        }\n        return typeToTypeNodeHelper(type, context);\n      }\n      function trackExistingEntityName(node, context, includePrivateSymbol) {\n        let introducesError = false;\n        const leftmost = getFirstIdentifier(node);\n        if (isInJSFile(node) && (isExportsIdentifier(leftmost) || isModuleExportsAccessExpression(leftmost.parent) || isQualifiedName(leftmost.parent) && isModuleIdentifier(leftmost.parent.left) && isExportsIdentifier(leftmost.parent.right))) {\n          introducesError = true;\n          return { introducesError, node };\n        }\n        const sym = resolveEntityName(leftmost, 67108863, true, true);\n        if (sym) {\n          if (isSymbolAccessible(sym, context.enclosingDeclaration, 67108863, false).accessibility !== 0) {\n            introducesError = true;\n          } else {\n            context.tracker.trackSymbol(sym, context.enclosingDeclaration, 67108863);\n            includePrivateSymbol == null ? void 0 : includePrivateSymbol(sym);\n          }\n          if (isIdentifier(node)) {\n            const type = getDeclaredTypeOfSymbol(sym);\n            const name = sym.flags & 262144 && !isTypeSymbolAccessible(type.symbol, context.enclosingDeclaration) ? typeParameterToName(type, context) : factory.cloneNode(node);\n            name.symbol = sym;\n            return { introducesError, node: setEmitFlags(setOriginalNode(name, node), 33554432) };\n          }\n        }\n        return { introducesError, node };\n      }\n      function serializeExistingTypeNode(context, existing, includePrivateSymbol, bundled) {\n        if (cancellationToken && cancellationToken.throwIfCancellationRequested) {\n          cancellationToken.throwIfCancellationRequested();\n        }\n        let hadError = false;\n        const file = getSourceFileOfNode(existing);\n        const transformed = visitNode(existing, visitExistingNodeTreeSymbols, isTypeNode);\n        if (hadError) {\n          return void 0;\n        }\n        return transformed === existing ? setTextRange(factory.cloneNode(existing), existing) : transformed;\n        function visitExistingNodeTreeSymbols(node) {\n          if (isJSDocAllType(node) || node.kind === 322) {\n            return factory.createKeywordTypeNode(131);\n          }\n          if (isJSDocUnknownType(node)) {\n            return factory.createKeywordTypeNode(157);\n          }\n          if (isJSDocNullableType(node)) {\n            return factory.createUnionTypeNode([visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode), factory.createLiteralTypeNode(factory.createNull())]);\n          }\n          if (isJSDocOptionalType(node)) {\n            return factory.createUnionTypeNode([visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode), factory.createKeywordTypeNode(155)]);\n          }\n          if (isJSDocNonNullableType(node)) {\n            return visitNode(node.type, visitExistingNodeTreeSymbols);\n          }\n          if (isJSDocVariadicType(node)) {\n            return factory.createArrayTypeNode(visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode));\n          }\n          if (isJSDocTypeLiteral(node)) {\n            return factory.createTypeLiteralNode(map(node.jsDocPropertyTags, (t) => {\n              const name = isIdentifier(t.name) ? t.name : t.name.right;\n              const typeViaParent = getTypeOfPropertyOfType(getTypeFromTypeNode(node), name.escapedText);\n              const overrideTypeNode = typeViaParent && t.typeExpression && getTypeFromTypeNode(t.typeExpression.type) !== typeViaParent ? typeToTypeNodeHelper(typeViaParent, context) : void 0;\n              return factory.createPropertySignature(void 0, name, t.isBracketed || t.typeExpression && isJSDocOptionalType(t.typeExpression.type) ? factory.createToken(57) : void 0, overrideTypeNode || t.typeExpression && visitNode(t.typeExpression.type, visitExistingNodeTreeSymbols, isTypeNode) || factory.createKeywordTypeNode(131));\n            }));\n          }\n          if (isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === \"\") {\n            return setOriginalNode(factory.createKeywordTypeNode(131), node);\n          }\n          if ((isExpressionWithTypeArguments(node) || isTypeReferenceNode(node)) && isJSDocIndexSignature(node)) {\n            return factory.createTypeLiteralNode([factory.createIndexSignature(void 0, [factory.createParameterDeclaration(void 0, void 0, \"x\", void 0, visitNode(node.typeArguments[0], visitExistingNodeTreeSymbols, isTypeNode))], visitNode(node.typeArguments[1], visitExistingNodeTreeSymbols, isTypeNode))]);\n          }\n          if (isJSDocFunctionType(node)) {\n            if (isJSDocConstructSignature(node)) {\n              let newTypeNode;\n              return factory.createConstructorTypeNode(void 0, visitNodes2(node.typeParameters, visitExistingNodeTreeSymbols, isTypeParameterDeclaration), mapDefined(node.parameters, (p, i) => p.name && isIdentifier(p.name) && p.name.escapedText === \"new\" ? (newTypeNode = p.type, void 0) : factory.createParameterDeclaration(void 0, getEffectiveDotDotDotForParameter(p), getNameForJSDocFunctionParameter(p, i), p.questionToken, visitNode(p.type, visitExistingNodeTreeSymbols, isTypeNode), void 0)), visitNode(newTypeNode || node.type, visitExistingNodeTreeSymbols, isTypeNode) || factory.createKeywordTypeNode(131));\n            } else {\n              return factory.createFunctionTypeNode(visitNodes2(node.typeParameters, visitExistingNodeTreeSymbols, isTypeParameterDeclaration), map(node.parameters, (p, i) => factory.createParameterDeclaration(void 0, getEffectiveDotDotDotForParameter(p), getNameForJSDocFunctionParameter(p, i), p.questionToken, visitNode(p.type, visitExistingNodeTreeSymbols, isTypeNode), void 0)), visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode) || factory.createKeywordTypeNode(131));\n            }\n          }\n          if (isTypeReferenceNode(node) && isInJSDoc(node) && (!existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(node, getTypeFromTypeNode(node)) || getIntendedTypeFromJSDocTypeReference(node) || unknownSymbol === resolveTypeReferenceName(node, 788968, true))) {\n            return setOriginalNode(typeToTypeNodeHelper(getTypeFromTypeNode(node), context), node);\n          }\n          if (isLiteralImportTypeNode(node)) {\n            const nodeSymbol = getNodeLinks(node).resolvedSymbol;\n            if (isInJSDoc(node) && nodeSymbol && (!node.isTypeOf && !(nodeSymbol.flags & 788968) || !(length(node.typeArguments) >= getMinTypeArgumentCount(getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(nodeSymbol))))) {\n              return setOriginalNode(typeToTypeNodeHelper(getTypeFromTypeNode(node), context), node);\n            }\n            return factory.updateImportTypeNode(node, factory.updateLiteralTypeNode(node.argument, rewriteModuleSpecifier(node, node.argument.literal)), node.assertions, node.qualifier, visitNodes2(node.typeArguments, visitExistingNodeTreeSymbols, isTypeNode), node.isTypeOf);\n          }\n          if (isEntityName(node) || isEntityNameExpression(node)) {\n            const { introducesError, node: result } = trackExistingEntityName(node, context, includePrivateSymbol);\n            hadError = hadError || introducesError;\n            if (result !== node) {\n              return result;\n            }\n          }\n          if (file && isTupleTypeNode(node) && getLineAndCharacterOfPosition(file, node.pos).line === getLineAndCharacterOfPosition(file, node.end).line) {\n            setEmitFlags(node, 1);\n          }\n          return visitEachChild(node, visitExistingNodeTreeSymbols, nullTransformationContext);\n          function getEffectiveDotDotDotForParameter(p) {\n            return p.dotDotDotToken || (p.type && isJSDocVariadicType(p.type) ? factory.createToken(25) : void 0);\n          }\n          function getNameForJSDocFunctionParameter(p, index) {\n            return p.name && isIdentifier(p.name) && p.name.escapedText === \"this\" ? \"this\" : getEffectiveDotDotDotForParameter(p) ? `args` : `arg${index}`;\n          }\n          function rewriteModuleSpecifier(parent2, lit) {\n            if (bundled) {\n              if (context.tracker && context.tracker.moduleResolverHost) {\n                const targetFile = getExternalModuleFileFromDeclaration(parent2);\n                if (targetFile) {\n                  const getCanonicalFileName = createGetCanonicalFileName(!!host.useCaseSensitiveFileNames);\n                  const resolverHost = {\n                    getCanonicalFileName,\n                    getCurrentDirectory: () => context.tracker.moduleResolverHost.getCurrentDirectory(),\n                    getCommonSourceDirectory: () => context.tracker.moduleResolverHost.getCommonSourceDirectory()\n                  };\n                  const newName = getResolvedExternalModuleName(resolverHost, targetFile);\n                  return factory.createStringLiteral(newName);\n                }\n              }\n            } else {\n              if (context.tracker && context.tracker.trackExternalModuleSymbolOfImportTypeNode) {\n                const moduleSym = resolveExternalModuleNameWorker(lit, lit, void 0);\n                if (moduleSym) {\n                  context.tracker.trackExternalModuleSymbolOfImportTypeNode(moduleSym);\n                }\n              }\n            }\n            return lit;\n          }\n        }\n      }\n      function symbolTableToDeclarationStatements(symbolTable, context, bundled) {\n        const serializePropertySymbolForClass = makeSerializePropertySymbol(factory.createPropertyDeclaration, 171, true);\n        const serializePropertySymbolForInterfaceWorker = makeSerializePropertySymbol((mods, name, question, type) => factory.createPropertySignature(mods, name, question, type), 170, false);\n        const enclosingDeclaration = context.enclosingDeclaration;\n        let results = [];\n        const visitedSymbols = /* @__PURE__ */ new Set();\n        const deferredPrivatesStack = [];\n        const oldcontext = context;\n        context = {\n          ...oldcontext,\n          usedSymbolNames: new Set(oldcontext.usedSymbolNames),\n          remappedSymbolNames: /* @__PURE__ */ new Map(),\n          tracker: void 0\n        };\n        const tracker = {\n          ...oldcontext.tracker.inner,\n          trackSymbol: (sym, decl, meaning) => {\n            var _a2;\n            const accessibleResult = isSymbolAccessible(sym, decl, meaning, false);\n            if (accessibleResult.accessibility === 0) {\n              const chain = lookupSymbolChainWorker(sym, context, meaning);\n              if (!(sym.flags & 4)) {\n                includePrivateSymbol(chain[0]);\n              }\n            } else if ((_a2 = oldcontext.tracker.inner) == null ? void 0 : _a2.trackSymbol) {\n              return oldcontext.tracker.inner.trackSymbol(sym, decl, meaning);\n            }\n            return false;\n          }\n        };\n        context.tracker = new SymbolTrackerImpl(context, tracker, oldcontext.tracker.moduleResolverHost);\n        forEachEntry(symbolTable, (symbol, name) => {\n          const baseName = unescapeLeadingUnderscores(name);\n          void getInternalSymbolName(symbol, baseName);\n        });\n        let addingDeclare = !bundled;\n        const exportEquals = symbolTable.get(\"export=\");\n        if (exportEquals && symbolTable.size > 1 && exportEquals.flags & 2097152) {\n          symbolTable = createSymbolTable();\n          symbolTable.set(\"export=\", exportEquals);\n        }\n        visitSymbolTable(symbolTable);\n        return mergeRedundantStatements(results);\n        function isIdentifierAndNotUndefined(node) {\n          return !!node && node.kind === 79;\n        }\n        function getNamesOfDeclaration(statement) {\n          if (isVariableStatement(statement)) {\n            return filter(map(statement.declarationList.declarations, getNameOfDeclaration), isIdentifierAndNotUndefined);\n          }\n          return filter([getNameOfDeclaration(statement)], isIdentifierAndNotUndefined);\n        }\n        function flattenExportAssignedNamespace(statements) {\n          const exportAssignment = find(statements, isExportAssignment);\n          const nsIndex = findIndex(statements, isModuleDeclaration);\n          let ns = nsIndex !== -1 ? statements[nsIndex] : void 0;\n          if (ns && exportAssignment && exportAssignment.isExportEquals && isIdentifier(exportAssignment.expression) && isIdentifier(ns.name) && idText(ns.name) === idText(exportAssignment.expression) && ns.body && isModuleBlock(ns.body)) {\n            const excessExports = filter(statements, (s) => !!(getEffectiveModifierFlags(s) & 1));\n            const name = ns.name;\n            let body = ns.body;\n            if (length(excessExports)) {\n              ns = factory.updateModuleDeclaration(ns, ns.modifiers, ns.name, body = factory.updateModuleBlock(body, factory.createNodeArray([...ns.body.statements, factory.createExportDeclaration(void 0, false, factory.createNamedExports(map(flatMap(excessExports, (e) => getNamesOfDeclaration(e)), (id) => factory.createExportSpecifier(false, void 0, id))), void 0)])));\n              statements = [...statements.slice(0, nsIndex), ns, ...statements.slice(nsIndex + 1)];\n            }\n            if (!find(statements, (s) => s !== ns && nodeHasName(s, name))) {\n              results = [];\n              const mixinExportFlag = !some(body.statements, (s) => hasSyntacticModifier(s, 1) || isExportAssignment(s) || isExportDeclaration(s));\n              forEach(body.statements, (s) => {\n                addResult(s, mixinExportFlag ? 1 : 0);\n              });\n              statements = [...filter(statements, (s) => s !== ns && s !== exportAssignment), ...results];\n            }\n          }\n          return statements;\n        }\n        function mergeExportDeclarations(statements) {\n          const exports = filter(statements, (d) => isExportDeclaration(d) && !d.moduleSpecifier && !!d.exportClause && isNamedExports(d.exportClause));\n          if (length(exports) > 1) {\n            const nonExports = filter(statements, (d) => !isExportDeclaration(d) || !!d.moduleSpecifier || !d.exportClause);\n            statements = [...nonExports, factory.createExportDeclaration(void 0, false, factory.createNamedExports(flatMap(exports, (e) => cast(e.exportClause, isNamedExports).elements)), void 0)];\n          }\n          const reexports = filter(statements, (d) => isExportDeclaration(d) && !!d.moduleSpecifier && !!d.exportClause && isNamedExports(d.exportClause));\n          if (length(reexports) > 1) {\n            const groups = group(reexports, (decl) => isStringLiteral(decl.moduleSpecifier) ? \">\" + decl.moduleSpecifier.text : \">\");\n            if (groups.length !== reexports.length) {\n              for (const group2 of groups) {\n                if (group2.length > 1) {\n                  statements = [\n                    ...filter(statements, (s) => group2.indexOf(s) === -1),\n                    factory.createExportDeclaration(void 0, false, factory.createNamedExports(flatMap(group2, (e) => cast(e.exportClause, isNamedExports).elements)), group2[0].moduleSpecifier)\n                  ];\n                }\n              }\n            }\n          }\n          return statements;\n        }\n        function inlineExportModifiers(statements) {\n          const index = findIndex(statements, (d) => isExportDeclaration(d) && !d.moduleSpecifier && !d.assertClause && !!d.exportClause && isNamedExports(d.exportClause));\n          if (index >= 0) {\n            const exportDecl = statements[index];\n            const replacements = mapDefined(exportDecl.exportClause.elements, (e) => {\n              if (!e.propertyName) {\n                const indices = indicesOf(statements);\n                const associatedIndices = filter(indices, (i) => nodeHasName(statements[i], e.name));\n                if (length(associatedIndices) && every(associatedIndices, (i) => canHaveExportModifier(statements[i]))) {\n                  for (const index2 of associatedIndices) {\n                    statements[index2] = addExportModifier(statements[index2]);\n                  }\n                  return void 0;\n                }\n              }\n              return e;\n            });\n            if (!length(replacements)) {\n              orderedRemoveItemAt(statements, index);\n            } else {\n              statements[index] = factory.updateExportDeclaration(exportDecl, exportDecl.modifiers, exportDecl.isTypeOnly, factory.updateNamedExports(exportDecl.exportClause, replacements), exportDecl.moduleSpecifier, exportDecl.assertClause);\n            }\n          }\n          return statements;\n        }\n        function mergeRedundantStatements(statements) {\n          statements = flattenExportAssignedNamespace(statements);\n          statements = mergeExportDeclarations(statements);\n          statements = inlineExportModifiers(statements);\n          if (enclosingDeclaration && (isSourceFile(enclosingDeclaration) && isExternalOrCommonJsModule(enclosingDeclaration) || isModuleDeclaration(enclosingDeclaration)) && (!some(statements, isExternalModuleIndicator) || !hasScopeMarker(statements) && some(statements, needsScopeMarker))) {\n            statements.push(createEmptyExports(factory));\n          }\n          return statements;\n        }\n        function addExportModifier(node) {\n          const flags = (getEffectiveModifierFlags(node) | 1) & ~2;\n          return factory.updateModifiers(node, flags);\n        }\n        function removeExportModifier(node) {\n          const flags = getEffectiveModifierFlags(node) & ~1;\n          return factory.updateModifiers(node, flags);\n        }\n        function visitSymbolTable(symbolTable2, suppressNewPrivateContext, propertyAsAlias) {\n          if (!suppressNewPrivateContext) {\n            deferredPrivatesStack.push(/* @__PURE__ */ new Map());\n          }\n          symbolTable2.forEach((symbol) => {\n            serializeSymbol(symbol, false, !!propertyAsAlias);\n          });\n          if (!suppressNewPrivateContext) {\n            deferredPrivatesStack[deferredPrivatesStack.length - 1].forEach((symbol) => {\n              serializeSymbol(symbol, true, !!propertyAsAlias);\n            });\n            deferredPrivatesStack.pop();\n          }\n        }\n        function serializeSymbol(symbol, isPrivate, propertyAsAlias) {\n          const visitedSym = getMergedSymbol(symbol);\n          if (visitedSymbols.has(getSymbolId(visitedSym))) {\n            return;\n          }\n          visitedSymbols.add(getSymbolId(visitedSym));\n          const skipMembershipCheck = !isPrivate;\n          if (skipMembershipCheck || !!length(symbol.declarations) && some(symbol.declarations, (d) => !!findAncestor(d, (n) => n === enclosingDeclaration))) {\n            const oldContext = context;\n            context = cloneNodeBuilderContext(context);\n            serializeSymbolWorker(symbol, isPrivate, propertyAsAlias);\n            if (context.reportedDiagnostic) {\n              oldcontext.reportedDiagnostic = context.reportedDiagnostic;\n            }\n            context = oldContext;\n          }\n        }\n        function serializeSymbolWorker(symbol, isPrivate, propertyAsAlias) {\n          var _a2, _b, _c, _d;\n          const symbolName2 = unescapeLeadingUnderscores(symbol.escapedName);\n          const isDefault = symbol.escapedName === \"default\";\n          if (isPrivate && !(context.flags & 131072) && isStringANonContextualKeyword(symbolName2) && !isDefault) {\n            context.encounteredError = true;\n            return;\n          }\n          let needsPostExportDefault = isDefault && !!(symbol.flags & -113 || symbol.flags & 16 && length(getPropertiesOfType(getTypeOfSymbol(symbol)))) && !(symbol.flags & 2097152);\n          let needsExportDeclaration = !needsPostExportDefault && !isPrivate && isStringANonContextualKeyword(symbolName2) && !isDefault;\n          if (needsPostExportDefault || needsExportDeclaration) {\n            isPrivate = true;\n          }\n          const modifierFlags = (!isPrivate ? 1 : 0) | (isDefault && !needsPostExportDefault ? 1024 : 0);\n          const isConstMergedWithNS = symbol.flags & 1536 && symbol.flags & (2 | 1 | 4) && symbol.escapedName !== \"export=\";\n          const isConstMergedWithNSPrintableAsSignatureMerge = isConstMergedWithNS && isTypeRepresentableAsFunctionNamespaceMerge(getTypeOfSymbol(symbol), symbol);\n          if (symbol.flags & (16 | 8192) || isConstMergedWithNSPrintableAsSignatureMerge) {\n            serializeAsFunctionNamespaceMerge(getTypeOfSymbol(symbol), symbol, getInternalSymbolName(symbol, symbolName2), modifierFlags);\n          }\n          if (symbol.flags & 524288) {\n            serializeTypeAlias(symbol, symbolName2, modifierFlags);\n          }\n          if (symbol.flags & (2 | 1 | 4) && symbol.escapedName !== \"export=\" && !(symbol.flags & 4194304) && !(symbol.flags & 32) && !(symbol.flags & 8192) && !isConstMergedWithNSPrintableAsSignatureMerge) {\n            if (propertyAsAlias) {\n              const createdExport = serializeMaybeAliasAssignment(symbol);\n              if (createdExport) {\n                needsExportDeclaration = false;\n                needsPostExportDefault = false;\n              }\n            } else {\n              const type = getTypeOfSymbol(symbol);\n              const localName = getInternalSymbolName(symbol, symbolName2);\n              if (!(symbol.flags & 16) && isTypeRepresentableAsFunctionNamespaceMerge(type, symbol)) {\n                serializeAsFunctionNamespaceMerge(type, symbol, localName, modifierFlags);\n              } else {\n                const flags = !(symbol.flags & 2) ? ((_a2 = symbol.parent) == null ? void 0 : _a2.valueDeclaration) && isSourceFile((_b = symbol.parent) == null ? void 0 : _b.valueDeclaration) ? 2 : void 0 : isConstVariable(symbol) ? 2 : 1;\n                const name = needsPostExportDefault || !(symbol.flags & 4) ? localName : getUnusedName(localName, symbol);\n                let textRange = symbol.declarations && find(symbol.declarations, (d) => isVariableDeclaration(d));\n                if (textRange && isVariableDeclarationList(textRange.parent) && textRange.parent.declarations.length === 1) {\n                  textRange = textRange.parent.parent;\n                }\n                const propertyAccessRequire = (_c = symbol.declarations) == null ? void 0 : _c.find(isPropertyAccessExpression);\n                if (propertyAccessRequire && isBinaryExpression(propertyAccessRequire.parent) && isIdentifier(propertyAccessRequire.parent.right) && ((_d = type.symbol) == null ? void 0 : _d.valueDeclaration) && isSourceFile(type.symbol.valueDeclaration)) {\n                  const alias = localName === propertyAccessRequire.parent.right.escapedText ? void 0 : propertyAccessRequire.parent.right;\n                  addResult(factory.createExportDeclaration(void 0, false, factory.createNamedExports([factory.createExportSpecifier(false, alias, localName)])), 0);\n                  context.tracker.trackSymbol(type.symbol, context.enclosingDeclaration, 111551);\n                } else {\n                  const statement = setTextRange(factory.createVariableStatement(void 0, factory.createVariableDeclarationList([\n                    factory.createVariableDeclaration(name, void 0, serializeTypeForDeclaration(context, type, symbol, enclosingDeclaration, includePrivateSymbol, bundled))\n                  ], flags)), textRange);\n                  addResult(statement, name !== localName ? modifierFlags & ~1 : modifierFlags);\n                  if (name !== localName && !isPrivate) {\n                    addResult(factory.createExportDeclaration(void 0, false, factory.createNamedExports([factory.createExportSpecifier(false, name, localName)])), 0);\n                    needsExportDeclaration = false;\n                    needsPostExportDefault = false;\n                  }\n                }\n              }\n            }\n          }\n          if (symbol.flags & 384) {\n            serializeEnum(symbol, symbolName2, modifierFlags);\n          }\n          if (symbol.flags & 32) {\n            if (symbol.flags & 4 && symbol.valueDeclaration && isBinaryExpression(symbol.valueDeclaration.parent) && isClassExpression(symbol.valueDeclaration.parent.right)) {\n              serializeAsAlias(symbol, getInternalSymbolName(symbol, symbolName2), modifierFlags);\n            } else {\n              serializeAsClass(symbol, getInternalSymbolName(symbol, symbolName2), modifierFlags);\n            }\n          }\n          if (symbol.flags & (512 | 1024) && (!isConstMergedWithNS || isTypeOnlyNamespace(symbol)) || isConstMergedWithNSPrintableAsSignatureMerge) {\n            serializeModule(symbol, symbolName2, modifierFlags);\n          }\n          if (symbol.flags & 64 && !(symbol.flags & 32)) {\n            serializeInterface(symbol, symbolName2, modifierFlags);\n          }\n          if (symbol.flags & 2097152) {\n            serializeAsAlias(symbol, getInternalSymbolName(symbol, symbolName2), modifierFlags);\n          }\n          if (symbol.flags & 4 && symbol.escapedName === \"export=\") {\n            serializeMaybeAliasAssignment(symbol);\n          }\n          if (symbol.flags & 8388608) {\n            if (symbol.declarations) {\n              for (const node of symbol.declarations) {\n                const resolvedModule = resolveExternalModuleName(node, node.moduleSpecifier);\n                if (!resolvedModule)\n                  continue;\n                addResult(factory.createExportDeclaration(void 0, node.isTypeOnly, void 0, factory.createStringLiteral(getSpecifierForModuleSymbol(resolvedModule, context))), 0);\n              }\n            }\n          }\n          if (needsPostExportDefault) {\n            addResult(factory.createExportAssignment(void 0, false, factory.createIdentifier(getInternalSymbolName(symbol, symbolName2))), 0);\n          } else if (needsExportDeclaration) {\n            addResult(factory.createExportDeclaration(void 0, false, factory.createNamedExports([factory.createExportSpecifier(false, getInternalSymbolName(symbol, symbolName2), symbolName2)])), 0);\n          }\n        }\n        function includePrivateSymbol(symbol) {\n          if (some(symbol.declarations, isParameterDeclaration))\n            return;\n          Debug.assertIsDefined(deferredPrivatesStack[deferredPrivatesStack.length - 1]);\n          getUnusedName(unescapeLeadingUnderscores(symbol.escapedName), symbol);\n          const isExternalImportAlias = !!(symbol.flags & 2097152) && !some(symbol.declarations, (d) => !!findAncestor(d, isExportDeclaration) || isNamespaceExport(d) || isImportEqualsDeclaration(d) && !isExternalModuleReference(d.moduleReference));\n          deferredPrivatesStack[isExternalImportAlias ? 0 : deferredPrivatesStack.length - 1].set(getSymbolId(symbol), symbol);\n        }\n        function isExportingScope(enclosingDeclaration2) {\n          return isSourceFile(enclosingDeclaration2) && (isExternalOrCommonJsModule(enclosingDeclaration2) || isJsonSourceFile(enclosingDeclaration2)) || isAmbientModule(enclosingDeclaration2) && !isGlobalScopeAugmentation(enclosingDeclaration2);\n        }\n        function addResult(node, additionalModifierFlags) {\n          if (canHaveModifiers(node)) {\n            let newModifierFlags = 0;\n            const enclosingDeclaration2 = context.enclosingDeclaration && (isJSDocTypeAlias(context.enclosingDeclaration) ? getSourceFileOfNode(context.enclosingDeclaration) : context.enclosingDeclaration);\n            if (additionalModifierFlags & 1 && enclosingDeclaration2 && (isExportingScope(enclosingDeclaration2) || isModuleDeclaration(enclosingDeclaration2)) && canHaveExportModifier(node)) {\n              newModifierFlags |= 1;\n            }\n            if (addingDeclare && !(newModifierFlags & 1) && (!enclosingDeclaration2 || !(enclosingDeclaration2.flags & 16777216)) && (isEnumDeclaration(node) || isVariableStatement(node) || isFunctionDeclaration(node) || isClassDeclaration(node) || isModuleDeclaration(node))) {\n              newModifierFlags |= 2;\n            }\n            if (additionalModifierFlags & 1024 && (isClassDeclaration(node) || isInterfaceDeclaration(node) || isFunctionDeclaration(node))) {\n              newModifierFlags |= 1024;\n            }\n            if (newModifierFlags) {\n              node = factory.updateModifiers(node, newModifierFlags | getEffectiveModifierFlags(node));\n            }\n          }\n          results.push(node);\n        }\n        function serializeTypeAlias(symbol, symbolName2, modifierFlags) {\n          var _a2;\n          const aliasType = getDeclaredTypeOfTypeAlias(symbol);\n          const typeParams = getSymbolLinks(symbol).typeParameters;\n          const typeParamDecls = map(typeParams, (p) => typeParameterToDeclaration(p, context));\n          const jsdocAliasDecl = (_a2 = symbol.declarations) == null ? void 0 : _a2.find(isJSDocTypeAlias);\n          const commentText = getTextOfJSDocComment(jsdocAliasDecl ? jsdocAliasDecl.comment || jsdocAliasDecl.parent.comment : void 0);\n          const oldFlags = context.flags;\n          context.flags |= 8388608;\n          const oldEnclosingDecl = context.enclosingDeclaration;\n          context.enclosingDeclaration = jsdocAliasDecl;\n          const typeNode = jsdocAliasDecl && jsdocAliasDecl.typeExpression && isJSDocTypeExpression(jsdocAliasDecl.typeExpression) && serializeExistingTypeNode(context, jsdocAliasDecl.typeExpression.type, includePrivateSymbol, bundled) || typeToTypeNodeHelper(aliasType, context);\n          addResult(setSyntheticLeadingComments(factory.createTypeAliasDeclaration(void 0, getInternalSymbolName(symbol, symbolName2), typeParamDecls, typeNode), !commentText ? [] : [{ kind: 3, text: \"*\\n * \" + commentText.replace(/\\n/g, \"\\n * \") + \"\\n \", pos: -1, end: -1, hasTrailingNewLine: true }]), modifierFlags);\n          context.flags = oldFlags;\n          context.enclosingDeclaration = oldEnclosingDecl;\n        }\n        function serializeInterface(symbol, symbolName2, modifierFlags) {\n          const interfaceType = getDeclaredTypeOfClassOrInterface(symbol);\n          const localParams = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol);\n          const typeParamDecls = map(localParams, (p) => typeParameterToDeclaration(p, context));\n          const baseTypes = getBaseTypes(interfaceType);\n          const baseType = length(baseTypes) ? getIntersectionType(baseTypes) : void 0;\n          const members = flatMap(getPropertiesOfType(interfaceType), (p) => serializePropertySymbolForInterface(p, baseType));\n          const callSignatures = serializeSignatures(0, interfaceType, baseType, 176);\n          const constructSignatures = serializeSignatures(1, interfaceType, baseType, 177);\n          const indexSignatures = serializeIndexSignatures(interfaceType, baseType);\n          const heritageClauses = !length(baseTypes) ? void 0 : [factory.createHeritageClause(94, mapDefined(baseTypes, (b) => trySerializeAsTypeReference(b, 111551)))];\n          addResult(factory.createInterfaceDeclaration(void 0, getInternalSymbolName(symbol, symbolName2), typeParamDecls, heritageClauses, [...indexSignatures, ...constructSignatures, ...callSignatures, ...members]), modifierFlags);\n        }\n        function getNamespaceMembersForSerialization(symbol) {\n          return !symbol.exports ? [] : filter(arrayFrom(symbol.exports.values()), isNamespaceMember);\n        }\n        function isTypeOnlyNamespace(symbol) {\n          return every(getNamespaceMembersForSerialization(symbol), (m) => !(getAllSymbolFlags(resolveSymbol(m)) & 111551));\n        }\n        function serializeModule(symbol, symbolName2, modifierFlags) {\n          const members = getNamespaceMembersForSerialization(symbol);\n          const locationMap = arrayToMultiMap(members, (m) => m.parent && m.parent === symbol ? \"real\" : \"merged\");\n          const realMembers = locationMap.get(\"real\") || emptyArray;\n          const mergedMembers = locationMap.get(\"merged\") || emptyArray;\n          if (length(realMembers)) {\n            const localName = getInternalSymbolName(symbol, symbolName2);\n            serializeAsNamespaceDeclaration(realMembers, localName, modifierFlags, !!(symbol.flags & (16 | 67108864)));\n          }\n          if (length(mergedMembers)) {\n            const containingFile = getSourceFileOfNode(context.enclosingDeclaration);\n            const localName = getInternalSymbolName(symbol, symbolName2);\n            const nsBody = factory.createModuleBlock([factory.createExportDeclaration(void 0, false, factory.createNamedExports(mapDefined(filter(mergedMembers, (n) => n.escapedName !== \"export=\"), (s) => {\n              var _a2, _b;\n              const name = unescapeLeadingUnderscores(s.escapedName);\n              const localName2 = getInternalSymbolName(s, name);\n              const aliasDecl = s.declarations && getDeclarationOfAliasSymbol(s);\n              if (containingFile && (aliasDecl ? containingFile !== getSourceFileOfNode(aliasDecl) : !some(s.declarations, (d) => getSourceFileOfNode(d) === containingFile))) {\n                (_b = (_a2 = context.tracker) == null ? void 0 : _a2.reportNonlocalAugmentation) == null ? void 0 : _b.call(_a2, containingFile, symbol, s);\n                return void 0;\n              }\n              const target = aliasDecl && getTargetOfAliasDeclaration(aliasDecl, true);\n              includePrivateSymbol(target || s);\n              const targetName = target ? getInternalSymbolName(target, unescapeLeadingUnderscores(target.escapedName)) : localName2;\n              return factory.createExportSpecifier(false, name === targetName ? void 0 : targetName, name);\n            })))]);\n            addResult(factory.createModuleDeclaration(void 0, factory.createIdentifier(localName), nsBody, 16), 0);\n          }\n        }\n        function serializeEnum(symbol, symbolName2, modifierFlags) {\n          addResult(factory.createEnumDeclaration(factory.createModifiersFromModifierFlags(isConstEnumSymbol(symbol) ? 2048 : 0), getInternalSymbolName(symbol, symbolName2), map(filter(getPropertiesOfType(getTypeOfSymbol(symbol)), (p) => !!(p.flags & 8)), (p) => {\n            const initializedValue = p.declarations && p.declarations[0] && isEnumMember(p.declarations[0]) ? getConstantValue2(p.declarations[0]) : void 0;\n            return factory.createEnumMember(unescapeLeadingUnderscores(p.escapedName), initializedValue === void 0 ? void 0 : typeof initializedValue === \"string\" ? factory.createStringLiteral(initializedValue) : factory.createNumericLiteral(initializedValue));\n          })), modifierFlags);\n        }\n        function serializeAsFunctionNamespaceMerge(type, symbol, localName, modifierFlags) {\n          const signatures = getSignaturesOfType(type, 0);\n          for (const sig of signatures) {\n            const decl = signatureToSignatureDeclarationHelper(sig, 259, context, { name: factory.createIdentifier(localName), privateSymbolVisitor: includePrivateSymbol, bundledImports: bundled });\n            addResult(setTextRange(decl, getSignatureTextRangeLocation(sig)), modifierFlags);\n          }\n          if (!(symbol.flags & (512 | 1024) && !!symbol.exports && !!symbol.exports.size)) {\n            const props = filter(getPropertiesOfType(type), isNamespaceMember);\n            serializeAsNamespaceDeclaration(props, localName, modifierFlags, true);\n          }\n        }\n        function getSignatureTextRangeLocation(signature) {\n          if (signature.declaration && signature.declaration.parent) {\n            if (isBinaryExpression(signature.declaration.parent) && getAssignmentDeclarationKind(signature.declaration.parent) === 5) {\n              return signature.declaration.parent;\n            }\n            if (isVariableDeclaration(signature.declaration.parent) && signature.declaration.parent.parent) {\n              return signature.declaration.parent.parent;\n            }\n          }\n          return signature.declaration;\n        }\n        function serializeAsNamespaceDeclaration(props, localName, modifierFlags, suppressNewPrivateContext) {\n          if (length(props)) {\n            const localVsRemoteMap = arrayToMultiMap(props, (p) => !length(p.declarations) || some(p.declarations, (d) => getSourceFileOfNode(d) === getSourceFileOfNode(context.enclosingDeclaration)) ? \"local\" : \"remote\");\n            const localProps = localVsRemoteMap.get(\"local\") || emptyArray;\n            let fakespace = parseNodeFactory.createModuleDeclaration(void 0, factory.createIdentifier(localName), factory.createModuleBlock([]), 16);\n            setParent(fakespace, enclosingDeclaration);\n            fakespace.locals = createSymbolTable(props);\n            fakespace.symbol = props[0].parent;\n            const oldResults = results;\n            results = [];\n            const oldAddingDeclare = addingDeclare;\n            addingDeclare = false;\n            const subcontext = { ...context, enclosingDeclaration: fakespace };\n            const oldContext = context;\n            context = subcontext;\n            visitSymbolTable(createSymbolTable(localProps), suppressNewPrivateContext, true);\n            context = oldContext;\n            addingDeclare = oldAddingDeclare;\n            const declarations = results;\n            results = oldResults;\n            const defaultReplaced = map(declarations, (d) => isExportAssignment(d) && !d.isExportEquals && isIdentifier(d.expression) ? factory.createExportDeclaration(void 0, false, factory.createNamedExports([factory.createExportSpecifier(false, d.expression, factory.createIdentifier(\"default\"))])) : d);\n            const exportModifierStripped = every(defaultReplaced, (d) => hasSyntacticModifier(d, 1)) ? map(defaultReplaced, removeExportModifier) : defaultReplaced;\n            fakespace = factory.updateModuleDeclaration(fakespace, fakespace.modifiers, fakespace.name, factory.createModuleBlock(exportModifierStripped));\n            addResult(fakespace, modifierFlags);\n          }\n        }\n        function isNamespaceMember(p) {\n          return !!(p.flags & (788968 | 1920 | 2097152)) || !(p.flags & 4194304 || p.escapedName === \"prototype\" || p.valueDeclaration && isStatic(p.valueDeclaration) && isClassLike(p.valueDeclaration.parent));\n        }\n        function sanitizeJSDocImplements(clauses) {\n          const result = mapDefined(clauses, (e) => {\n            const oldEnclosing = context.enclosingDeclaration;\n            context.enclosingDeclaration = e;\n            let expr = e.expression;\n            if (isEntityNameExpression(expr)) {\n              if (isIdentifier(expr) && idText(expr) === \"\") {\n                return cleanup(void 0);\n              }\n              let introducesError;\n              ({ introducesError, node: expr } = trackExistingEntityName(expr, context, includePrivateSymbol));\n              if (introducesError) {\n                return cleanup(void 0);\n              }\n            }\n            return cleanup(factory.createExpressionWithTypeArguments(expr, map(e.typeArguments, (a) => serializeExistingTypeNode(context, a, includePrivateSymbol, bundled) || typeToTypeNodeHelper(getTypeFromTypeNode(a), context))));\n            function cleanup(result2) {\n              context.enclosingDeclaration = oldEnclosing;\n              return result2;\n            }\n          });\n          if (result.length === clauses.length) {\n            return result;\n          }\n          return void 0;\n        }\n        function serializeAsClass(symbol, localName, modifierFlags) {\n          var _a2, _b;\n          const originalDecl = (_a2 = symbol.declarations) == null ? void 0 : _a2.find(isClassLike);\n          const oldEnclosing = context.enclosingDeclaration;\n          context.enclosingDeclaration = originalDecl || oldEnclosing;\n          const localParams = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol);\n          const typeParamDecls = map(localParams, (p) => typeParameterToDeclaration(p, context));\n          const classType = getDeclaredTypeOfClassOrInterface(symbol);\n          const baseTypes = getBaseTypes(classType);\n          const originalImplements = originalDecl && getEffectiveImplementsTypeNodes(originalDecl);\n          const implementsExpressions = originalImplements && sanitizeJSDocImplements(originalImplements) || mapDefined(getImplementsTypes(classType), serializeImplementedType);\n          const staticType = getTypeOfSymbol(symbol);\n          const isClass = !!((_b = staticType.symbol) == null ? void 0 : _b.valueDeclaration) && isClassLike(staticType.symbol.valueDeclaration);\n          const staticBaseType = isClass ? getBaseConstructorTypeOfClass(staticType) : anyType;\n          const heritageClauses = [\n            ...!length(baseTypes) ? [] : [factory.createHeritageClause(94, map(baseTypes, (b) => serializeBaseType(b, staticBaseType, localName)))],\n            ...!length(implementsExpressions) ? [] : [factory.createHeritageClause(117, implementsExpressions)]\n          ];\n          const symbolProps = getNonInheritedProperties(classType, baseTypes, getPropertiesOfType(classType));\n          const publicSymbolProps = filter(symbolProps, (s) => {\n            const valueDecl = s.valueDeclaration;\n            return !!valueDecl && !(isNamedDeclaration(valueDecl) && isPrivateIdentifier(valueDecl.name));\n          });\n          const hasPrivateIdentifier = some(symbolProps, (s) => {\n            const valueDecl = s.valueDeclaration;\n            return !!valueDecl && isNamedDeclaration(valueDecl) && isPrivateIdentifier(valueDecl.name);\n          });\n          const privateProperties = hasPrivateIdentifier ? [factory.createPropertyDeclaration(void 0, factory.createPrivateIdentifier(\"#private\"), void 0, void 0, void 0)] : emptyArray;\n          const publicProperties = flatMap(publicSymbolProps, (p) => serializePropertySymbolForClass(p, false, baseTypes[0]));\n          const staticMembers = flatMap(filter(getPropertiesOfType(staticType), (p) => !(p.flags & 4194304) && p.escapedName !== \"prototype\" && !isNamespaceMember(p)), (p) => serializePropertySymbolForClass(p, true, staticBaseType));\n          const isNonConstructableClassLikeInJsFile = !isClass && !!symbol.valueDeclaration && isInJSFile(symbol.valueDeclaration) && !some(getSignaturesOfType(staticType, 1));\n          const constructors = isNonConstructableClassLikeInJsFile ? [factory.createConstructorDeclaration(factory.createModifiersFromModifierFlags(8), [], void 0)] : serializeSignatures(1, staticType, staticBaseType, 173);\n          const indexSignatures = serializeIndexSignatures(classType, baseTypes[0]);\n          context.enclosingDeclaration = oldEnclosing;\n          addResult(setTextRange(factory.createClassDeclaration(void 0, localName, typeParamDecls, heritageClauses, [...indexSignatures, ...staticMembers, ...constructors, ...publicProperties, ...privateProperties]), symbol.declarations && filter(symbol.declarations, (d) => isClassDeclaration(d) || isClassExpression(d))[0]), modifierFlags);\n        }\n        function getSomeTargetNameFromDeclarations(declarations) {\n          return firstDefined(declarations, (d) => {\n            if (isImportSpecifier(d) || isExportSpecifier(d)) {\n              return idText(d.propertyName || d.name);\n            }\n            if (isBinaryExpression(d) || isExportAssignment(d)) {\n              const expression = isExportAssignment(d) ? d.expression : d.right;\n              if (isPropertyAccessExpression(expression)) {\n                return idText(expression.name);\n              }\n            }\n            if (isAliasSymbolDeclaration2(d)) {\n              const name = getNameOfDeclaration(d);\n              if (name && isIdentifier(name)) {\n                return idText(name);\n              }\n            }\n            return void 0;\n          });\n        }\n        function serializeAsAlias(symbol, localName, modifierFlags) {\n          var _a2, _b, _c, _d, _e;\n          const node = getDeclarationOfAliasSymbol(symbol);\n          if (!node)\n            return Debug.fail();\n          const target = getMergedSymbol(getTargetOfAliasDeclaration(node, true));\n          if (!target) {\n            return;\n          }\n          let verbatimTargetName = isShorthandAmbientModuleSymbol(target) && getSomeTargetNameFromDeclarations(symbol.declarations) || unescapeLeadingUnderscores(target.escapedName);\n          if (verbatimTargetName === \"export=\" && (getESModuleInterop(compilerOptions) || compilerOptions.allowSyntheticDefaultImports)) {\n            verbatimTargetName = \"default\";\n          }\n          const targetName = getInternalSymbolName(target, verbatimTargetName);\n          includePrivateSymbol(target);\n          switch (node.kind) {\n            case 205:\n              if (((_b = (_a2 = node.parent) == null ? void 0 : _a2.parent) == null ? void 0 : _b.kind) === 257) {\n                const specifier2 = getSpecifierForModuleSymbol(target.parent || target, context);\n                const { propertyName } = node;\n                addResult(factory.createImportDeclaration(void 0, factory.createImportClause(false, void 0, factory.createNamedImports([factory.createImportSpecifier(false, propertyName && isIdentifier(propertyName) ? factory.createIdentifier(idText(propertyName)) : void 0, factory.createIdentifier(localName))])), factory.createStringLiteral(specifier2), void 0), 0);\n                break;\n              }\n              Debug.failBadSyntaxKind(((_c = node.parent) == null ? void 0 : _c.parent) || node, \"Unhandled binding element grandparent kind in declaration serialization\");\n              break;\n            case 300:\n              if (((_e = (_d = node.parent) == null ? void 0 : _d.parent) == null ? void 0 : _e.kind) === 223) {\n                serializeExportSpecifier(unescapeLeadingUnderscores(symbol.escapedName), targetName);\n              }\n              break;\n            case 257:\n              if (isPropertyAccessExpression(node.initializer)) {\n                const initializer = node.initializer;\n                const uniqueName = factory.createUniqueName(localName);\n                const specifier2 = getSpecifierForModuleSymbol(target.parent || target, context);\n                addResult(factory.createImportEqualsDeclaration(void 0, false, uniqueName, factory.createExternalModuleReference(factory.createStringLiteral(specifier2))), 0);\n                addResult(factory.createImportEqualsDeclaration(void 0, false, factory.createIdentifier(localName), factory.createQualifiedName(uniqueName, initializer.name)), modifierFlags);\n                break;\n              }\n            case 268:\n              if (target.escapedName === \"export=\" && some(target.declarations, (d) => isSourceFile(d) && isJsonSourceFile(d))) {\n                serializeMaybeAliasAssignment(symbol);\n                break;\n              }\n              const isLocalImport = !(target.flags & 512) && !isVariableDeclaration(node);\n              addResult(factory.createImportEqualsDeclaration(void 0, false, factory.createIdentifier(localName), isLocalImport ? symbolToName(target, context, 67108863, false) : factory.createExternalModuleReference(factory.createStringLiteral(getSpecifierForModuleSymbol(target, context)))), isLocalImport ? modifierFlags : 0);\n              break;\n            case 267:\n              addResult(factory.createNamespaceExportDeclaration(idText(node.name)), 0);\n              break;\n            case 270: {\n              const generatedSpecifier = getSpecifierForModuleSymbol(target.parent || target, context);\n              const specifier2 = bundled ? factory.createStringLiteral(generatedSpecifier) : node.parent.moduleSpecifier;\n              addResult(factory.createImportDeclaration(void 0, factory.createImportClause(false, factory.createIdentifier(localName), void 0), specifier2, node.parent.assertClause), 0);\n              break;\n            }\n            case 271: {\n              const generatedSpecifier = getSpecifierForModuleSymbol(target.parent || target, context);\n              const specifier2 = bundled ? factory.createStringLiteral(generatedSpecifier) : node.parent.parent.moduleSpecifier;\n              addResult(factory.createImportDeclaration(void 0, factory.createImportClause(false, void 0, factory.createNamespaceImport(factory.createIdentifier(localName))), specifier2, node.parent.parent.assertClause), 0);\n              break;\n            }\n            case 277:\n              addResult(factory.createExportDeclaration(void 0, false, factory.createNamespaceExport(factory.createIdentifier(localName)), factory.createStringLiteral(getSpecifierForModuleSymbol(target, context))), 0);\n              break;\n            case 273: {\n              const generatedSpecifier = getSpecifierForModuleSymbol(target.parent || target, context);\n              const specifier2 = bundled ? factory.createStringLiteral(generatedSpecifier) : node.parent.parent.parent.moduleSpecifier;\n              addResult(factory.createImportDeclaration(void 0, factory.createImportClause(false, void 0, factory.createNamedImports([\n                factory.createImportSpecifier(false, localName !== verbatimTargetName ? factory.createIdentifier(verbatimTargetName) : void 0, factory.createIdentifier(localName))\n              ])), specifier2, node.parent.parent.parent.assertClause), 0);\n              break;\n            }\n            case 278:\n              const specifier = node.parent.parent.moduleSpecifier;\n              serializeExportSpecifier(unescapeLeadingUnderscores(symbol.escapedName), specifier ? verbatimTargetName : targetName, specifier && isStringLiteralLike(specifier) ? factory.createStringLiteral(specifier.text) : void 0);\n              break;\n            case 274:\n              serializeMaybeAliasAssignment(symbol);\n              break;\n            case 223:\n            case 208:\n            case 209:\n              if (symbol.escapedName === \"default\" || symbol.escapedName === \"export=\") {\n                serializeMaybeAliasAssignment(symbol);\n              } else {\n                serializeExportSpecifier(localName, targetName);\n              }\n              break;\n            default:\n              return Debug.failBadSyntaxKind(node, \"Unhandled alias declaration kind in symbol serializer!\");\n          }\n        }\n        function serializeExportSpecifier(localName, targetName, specifier) {\n          addResult(factory.createExportDeclaration(void 0, false, factory.createNamedExports([factory.createExportSpecifier(false, localName !== targetName ? targetName : void 0, localName)]), specifier), 0);\n        }\n        function serializeMaybeAliasAssignment(symbol) {\n          if (symbol.flags & 4194304) {\n            return false;\n          }\n          const name = unescapeLeadingUnderscores(symbol.escapedName);\n          const isExportEquals = name === \"export=\";\n          const isDefault = name === \"default\";\n          const isExportAssignmentCompatibleSymbolName = isExportEquals || isDefault;\n          const aliasDecl = symbol.declarations && getDeclarationOfAliasSymbol(symbol);\n          const target = aliasDecl && getTargetOfAliasDeclaration(aliasDecl, true);\n          if (target && length(target.declarations) && some(target.declarations, (d) => getSourceFileOfNode(d) === getSourceFileOfNode(enclosingDeclaration))) {\n            const expr = aliasDecl && (isExportAssignment(aliasDecl) || isBinaryExpression(aliasDecl) ? getExportAssignmentExpression(aliasDecl) : getPropertyAssignmentAliasLikeExpression(aliasDecl));\n            const first2 = expr && isEntityNameExpression(expr) ? getFirstNonModuleExportsIdentifier(expr) : void 0;\n            const referenced = first2 && resolveEntityName(first2, 67108863, true, true, enclosingDeclaration);\n            if (referenced || target) {\n              includePrivateSymbol(referenced || target);\n            }\n            const prevDisableTrackSymbol = context.tracker.disableTrackSymbol;\n            context.tracker.disableTrackSymbol = true;\n            if (isExportAssignmentCompatibleSymbolName) {\n              results.push(factory.createExportAssignment(void 0, isExportEquals, symbolToExpression(target, context, 67108863)));\n            } else {\n              if (first2 === expr && first2) {\n                serializeExportSpecifier(name, idText(first2));\n              } else if (expr && isClassExpression(expr)) {\n                serializeExportSpecifier(name, getInternalSymbolName(target, symbolName(target)));\n              } else {\n                const varName = getUnusedName(name, symbol);\n                addResult(factory.createImportEqualsDeclaration(void 0, false, factory.createIdentifier(varName), symbolToName(target, context, 67108863, false)), 0);\n                serializeExportSpecifier(name, varName);\n              }\n            }\n            context.tracker.disableTrackSymbol = prevDisableTrackSymbol;\n            return true;\n          } else {\n            const varName = getUnusedName(name, symbol);\n            const typeToSerialize = getWidenedType(getTypeOfSymbol(getMergedSymbol(symbol)));\n            if (isTypeRepresentableAsFunctionNamespaceMerge(typeToSerialize, symbol)) {\n              serializeAsFunctionNamespaceMerge(typeToSerialize, symbol, varName, isExportAssignmentCompatibleSymbolName ? 0 : 1);\n            } else {\n              const statement = factory.createVariableStatement(void 0, factory.createVariableDeclarationList([\n                factory.createVariableDeclaration(varName, void 0, serializeTypeForDeclaration(context, typeToSerialize, symbol, enclosingDeclaration, includePrivateSymbol, bundled))\n              ], 2));\n              addResult(statement, target && target.flags & 4 && target.escapedName === \"export=\" ? 2 : name === varName ? 1 : 0);\n            }\n            if (isExportAssignmentCompatibleSymbolName) {\n              results.push(factory.createExportAssignment(void 0, isExportEquals, factory.createIdentifier(varName)));\n              return true;\n            } else if (name !== varName) {\n              serializeExportSpecifier(name, varName);\n              return true;\n            }\n            return false;\n          }\n        }\n        function isTypeRepresentableAsFunctionNamespaceMerge(typeToSerialize, hostSymbol) {\n          const ctxSrc = getSourceFileOfNode(context.enclosingDeclaration);\n          return getObjectFlags(typeToSerialize) & (16 | 32) && !length(getIndexInfosOfType(typeToSerialize)) && !isClassInstanceSide(typeToSerialize) && !!(length(filter(getPropertiesOfType(typeToSerialize), isNamespaceMember)) || length(getSignaturesOfType(typeToSerialize, 0))) && !length(getSignaturesOfType(typeToSerialize, 1)) && !getDeclarationWithTypeAnnotation(hostSymbol, enclosingDeclaration) && !(typeToSerialize.symbol && some(typeToSerialize.symbol.declarations, (d) => getSourceFileOfNode(d) !== ctxSrc)) && !some(getPropertiesOfType(typeToSerialize), (p) => isLateBoundName(p.escapedName)) && !some(getPropertiesOfType(typeToSerialize), (p) => some(p.declarations, (d) => getSourceFileOfNode(d) !== ctxSrc)) && every(getPropertiesOfType(typeToSerialize), (p) => isIdentifierText(symbolName(p), languageVersion));\n        }\n        function makeSerializePropertySymbol(createProperty2, methodKind, useAccessors) {\n          return function serializePropertySymbol(p, isStatic2, baseType) {\n            var _a2, _b, _c, _d, _e;\n            const modifierFlags = getDeclarationModifierFlagsFromSymbol(p);\n            const isPrivate = !!(modifierFlags & 8);\n            if (isStatic2 && p.flags & (788968 | 1920 | 2097152)) {\n              return [];\n            }\n            if (p.flags & 4194304 || baseType && getPropertyOfType(baseType, p.escapedName) && isReadonlySymbol(getPropertyOfType(baseType, p.escapedName)) === isReadonlySymbol(p) && (p.flags & 16777216) === (getPropertyOfType(baseType, p.escapedName).flags & 16777216) && isTypeIdenticalTo(getTypeOfSymbol(p), getTypeOfPropertyOfType(baseType, p.escapedName))) {\n              return [];\n            }\n            const flag = modifierFlags & ~512 | (isStatic2 ? 32 : 0);\n            const name = getPropertyNameNodeForSymbol(p, context);\n            const firstPropertyLikeDecl = (_a2 = p.declarations) == null ? void 0 : _a2.find(or(isPropertyDeclaration, isAccessor, isVariableDeclaration, isPropertySignature, isBinaryExpression, isPropertyAccessExpression));\n            if (p.flags & 98304 && useAccessors) {\n              const result = [];\n              if (p.flags & 65536) {\n                result.push(setTextRange(factory.createSetAccessorDeclaration(factory.createModifiersFromModifierFlags(flag), name, [factory.createParameterDeclaration(void 0, void 0, \"arg\", void 0, isPrivate ? void 0 : serializeTypeForDeclaration(context, getTypeOfSymbol(p), p, enclosingDeclaration, includePrivateSymbol, bundled))], void 0), ((_b = p.declarations) == null ? void 0 : _b.find(isSetAccessor)) || firstPropertyLikeDecl));\n              }\n              if (p.flags & 32768) {\n                const isPrivate2 = modifierFlags & 8;\n                result.push(setTextRange(factory.createGetAccessorDeclaration(factory.createModifiersFromModifierFlags(flag), name, [], isPrivate2 ? void 0 : serializeTypeForDeclaration(context, getTypeOfSymbol(p), p, enclosingDeclaration, includePrivateSymbol, bundled), void 0), ((_c = p.declarations) == null ? void 0 : _c.find(isGetAccessor)) || firstPropertyLikeDecl));\n              }\n              return result;\n            } else if (p.flags & (4 | 3 | 98304)) {\n              return setTextRange(createProperty2(factory.createModifiersFromModifierFlags((isReadonlySymbol(p) ? 64 : 0) | flag), name, p.flags & 16777216 ? factory.createToken(57) : void 0, isPrivate ? void 0 : serializeTypeForDeclaration(context, getWriteTypeOfSymbol(p), p, enclosingDeclaration, includePrivateSymbol, bundled), void 0), ((_d = p.declarations) == null ? void 0 : _d.find(or(isPropertyDeclaration, isVariableDeclaration))) || firstPropertyLikeDecl);\n            }\n            if (p.flags & (8192 | 16)) {\n              const type = getTypeOfSymbol(p);\n              const signatures = getSignaturesOfType(type, 0);\n              if (flag & 8) {\n                return setTextRange(createProperty2(factory.createModifiersFromModifierFlags((isReadonlySymbol(p) ? 64 : 0) | flag), name, p.flags & 16777216 ? factory.createToken(57) : void 0, void 0, void 0), ((_e = p.declarations) == null ? void 0 : _e.find(isFunctionLikeDeclaration)) || signatures[0] && signatures[0].declaration || p.declarations && p.declarations[0]);\n              }\n              const results2 = [];\n              for (const sig of signatures) {\n                const decl = signatureToSignatureDeclarationHelper(sig, methodKind, context, {\n                  name,\n                  questionToken: p.flags & 16777216 ? factory.createToken(57) : void 0,\n                  modifiers: flag ? factory.createModifiersFromModifierFlags(flag) : void 0\n                });\n                const location = sig.declaration && isPrototypePropertyAssignment(sig.declaration.parent) ? sig.declaration.parent : sig.declaration;\n                results2.push(setTextRange(decl, location));\n              }\n              return results2;\n            }\n            return Debug.fail(`Unhandled class member kind! ${p.__debugFlags || p.flags}`);\n          };\n        }\n        function serializePropertySymbolForInterface(p, baseType) {\n          return serializePropertySymbolForInterfaceWorker(p, false, baseType);\n        }\n        function serializeSignatures(kind, input, baseType, outputKind) {\n          const signatures = getSignaturesOfType(input, kind);\n          if (kind === 1) {\n            if (!baseType && every(signatures, (s) => length(s.parameters) === 0)) {\n              return [];\n            }\n            if (baseType) {\n              const baseSigs = getSignaturesOfType(baseType, 1);\n              if (!length(baseSigs) && every(signatures, (s) => length(s.parameters) === 0)) {\n                return [];\n              }\n              if (baseSigs.length === signatures.length) {\n                let failed = false;\n                for (let i = 0; i < baseSigs.length; i++) {\n                  if (!compareSignaturesIdentical(signatures[i], baseSigs[i], false, false, true, compareTypesIdentical)) {\n                    failed = true;\n                    break;\n                  }\n                }\n                if (!failed) {\n                  return [];\n                }\n              }\n            }\n            let privateProtected = 0;\n            for (const s of signatures) {\n              if (s.declaration) {\n                privateProtected |= getSelectedEffectiveModifierFlags(s.declaration, 8 | 16);\n              }\n            }\n            if (privateProtected) {\n              return [setTextRange(factory.createConstructorDeclaration(factory.createModifiersFromModifierFlags(privateProtected), [], void 0), signatures[0].declaration)];\n            }\n          }\n          const results2 = [];\n          for (const sig of signatures) {\n            const decl = signatureToSignatureDeclarationHelper(sig, outputKind, context);\n            results2.push(setTextRange(decl, sig.declaration));\n          }\n          return results2;\n        }\n        function serializeIndexSignatures(input, baseType) {\n          const results2 = [];\n          for (const info of getIndexInfosOfType(input)) {\n            if (baseType) {\n              const baseInfo = getIndexInfoOfType(baseType, info.keyType);\n              if (baseInfo) {\n                if (isTypeIdenticalTo(info.type, baseInfo.type)) {\n                  continue;\n                }\n              }\n            }\n            results2.push(indexInfoToIndexSignatureDeclarationHelper(info, context, void 0));\n          }\n          return results2;\n        }\n        function serializeBaseType(t, staticType, rootName) {\n          const ref = trySerializeAsTypeReference(t, 111551);\n          if (ref) {\n            return ref;\n          }\n          const tempName = getUnusedName(`${rootName}_base`);\n          const statement = factory.createVariableStatement(void 0, factory.createVariableDeclarationList([\n            factory.createVariableDeclaration(tempName, void 0, typeToTypeNodeHelper(staticType, context))\n          ], 2));\n          addResult(statement, 0);\n          return factory.createExpressionWithTypeArguments(factory.createIdentifier(tempName), void 0);\n        }\n        function trySerializeAsTypeReference(t, flags) {\n          let typeArgs;\n          let reference;\n          if (t.target && isSymbolAccessibleByFlags(t.target.symbol, enclosingDeclaration, flags)) {\n            typeArgs = map(getTypeArguments(t), (t2) => typeToTypeNodeHelper(t2, context));\n            reference = symbolToExpression(t.target.symbol, context, 788968);\n          } else if (t.symbol && isSymbolAccessibleByFlags(t.symbol, enclosingDeclaration, flags)) {\n            reference = symbolToExpression(t.symbol, context, 788968);\n          }\n          if (reference) {\n            return factory.createExpressionWithTypeArguments(reference, typeArgs);\n          }\n        }\n        function serializeImplementedType(t) {\n          const ref = trySerializeAsTypeReference(t, 788968);\n          if (ref) {\n            return ref;\n          }\n          if (t.symbol) {\n            return factory.createExpressionWithTypeArguments(symbolToExpression(t.symbol, context, 788968), void 0);\n          }\n        }\n        function getUnusedName(input, symbol) {\n          var _a2, _b;\n          const id = symbol ? getSymbolId(symbol) : void 0;\n          if (id) {\n            if (context.remappedSymbolNames.has(id)) {\n              return context.remappedSymbolNames.get(id);\n            }\n          }\n          if (symbol) {\n            input = getNameCandidateWorker(symbol, input);\n          }\n          let i = 0;\n          const original = input;\n          while ((_a2 = context.usedSymbolNames) == null ? void 0 : _a2.has(input)) {\n            i++;\n            input = `${original}_${i}`;\n          }\n          (_b = context.usedSymbolNames) == null ? void 0 : _b.add(input);\n          if (id) {\n            context.remappedSymbolNames.set(id, input);\n          }\n          return input;\n        }\n        function getNameCandidateWorker(symbol, localName) {\n          if (localName === \"default\" || localName === \"__class\" || localName === \"__function\") {\n            const flags = context.flags;\n            context.flags |= 16777216;\n            const nameCandidate = getNameOfSymbolAsWritten(symbol, context);\n            context.flags = flags;\n            localName = nameCandidate.length > 0 && isSingleOrDoubleQuote(nameCandidate.charCodeAt(0)) ? stripQuotes(nameCandidate) : nameCandidate;\n          }\n          if (localName === \"default\") {\n            localName = \"_default\";\n          } else if (localName === \"export=\") {\n            localName = \"_exports\";\n          }\n          localName = isIdentifierText(localName, languageVersion) && !isStringANonContextualKeyword(localName) ? localName : \"_\" + localName.replace(/[^a-zA-Z0-9]/g, \"_\");\n          return localName;\n        }\n        function getInternalSymbolName(symbol, localName) {\n          const id = getSymbolId(symbol);\n          if (context.remappedSymbolNames.has(id)) {\n            return context.remappedSymbolNames.get(id);\n          }\n          localName = getNameCandidateWorker(symbol, localName);\n          context.remappedSymbolNames.set(id, localName);\n          return localName;\n        }\n      }\n    }\n    function typePredicateToString(typePredicate, enclosingDeclaration, flags = 16384, writer) {\n      return writer ? typePredicateToStringWorker(writer).getText() : usingSingleLineStringWriter(typePredicateToStringWorker);\n      function typePredicateToStringWorker(writer2) {\n        const predicate = factory.createTypePredicateNode(typePredicate.kind === 2 || typePredicate.kind === 3 ? factory.createToken(129) : void 0, typePredicate.kind === 1 || typePredicate.kind === 3 ? factory.createIdentifier(typePredicate.parameterName) : factory.createThisTypeNode(), typePredicate.type && nodeBuilder.typeToTypeNode(typePredicate.type, enclosingDeclaration, toNodeBuilderFlags(flags) | 70221824 | 512));\n        const printer = createPrinterWithRemoveComments();\n        const sourceFile = enclosingDeclaration && getSourceFileOfNode(enclosingDeclaration);\n        printer.writeNode(4, predicate, sourceFile, writer2);\n        return writer2;\n      }\n    }\n    function formatUnionTypes(types) {\n      const result = [];\n      let flags = 0;\n      for (let i = 0; i < types.length; i++) {\n        const t = types[i];\n        flags |= t.flags;\n        if (!(t.flags & 98304)) {\n          if (t.flags & (512 | 1056)) {\n            const baseType = t.flags & 512 ? booleanType : getBaseTypeOfEnumLikeType(t);\n            if (baseType.flags & 1048576) {\n              const count = baseType.types.length;\n              if (i + count <= types.length && getRegularTypeOfLiteralType(types[i + count - 1]) === getRegularTypeOfLiteralType(baseType.types[count - 1])) {\n                result.push(baseType);\n                i += count - 1;\n                continue;\n              }\n            }\n          }\n          result.push(t);\n        }\n      }\n      if (flags & 65536)\n        result.push(nullType);\n      if (flags & 32768)\n        result.push(undefinedType);\n      return result || types;\n    }\n    function visibilityToString(flags) {\n      if (flags === 8) {\n        return \"private\";\n      }\n      if (flags === 16) {\n        return \"protected\";\n      }\n      return \"public\";\n    }\n    function getTypeAliasForTypeLiteral(type) {\n      if (type.symbol && type.symbol.flags & 2048 && type.symbol.declarations) {\n        const node = walkUpParenthesizedTypes(type.symbol.declarations[0].parent);\n        if (isTypeAliasDeclaration(node)) {\n          return getSymbolOfDeclaration(node);\n        }\n      }\n      return void 0;\n    }\n    function isTopLevelInExternalModuleAugmentation(node) {\n      return node && node.parent && node.parent.kind === 265 && isExternalModuleAugmentation(node.parent.parent);\n    }\n    function isDefaultBindingContext(location) {\n      return location.kind === 308 || isAmbientModule(location);\n    }\n    function getNameOfSymbolFromNameType(symbol, context) {\n      const nameType = getSymbolLinks(symbol).nameType;\n      if (nameType) {\n        if (nameType.flags & 384) {\n          const name = \"\" + nameType.value;\n          if (!isIdentifierText(name, getEmitScriptTarget(compilerOptions)) && !isNumericLiteralName(name)) {\n            return `\"${escapeString(name, 34)}\"`;\n          }\n          if (isNumericLiteralName(name) && startsWith(name, \"-\")) {\n            return `[${name}]`;\n          }\n          return name;\n        }\n        if (nameType.flags & 8192) {\n          return `[${getNameOfSymbolAsWritten(nameType.symbol, context)}]`;\n        }\n      }\n    }\n    function getNameOfSymbolAsWritten(symbol, context) {\n      if (context && symbol.escapedName === \"default\" && !(context.flags & 16384) && (!(context.flags & 16777216) || !symbol.declarations || context.enclosingDeclaration && findAncestor(symbol.declarations[0], isDefaultBindingContext) !== findAncestor(context.enclosingDeclaration, isDefaultBindingContext))) {\n        return \"default\";\n      }\n      if (symbol.declarations && symbol.declarations.length) {\n        let declaration = firstDefined(symbol.declarations, (d) => getNameOfDeclaration(d) ? d : void 0);\n        const name2 = declaration && getNameOfDeclaration(declaration);\n        if (declaration && name2) {\n          if (isCallExpression(declaration) && isBindableObjectDefinePropertyCall(declaration)) {\n            return symbolName(symbol);\n          }\n          if (isComputedPropertyName(name2) && !(getCheckFlags(symbol) & 4096)) {\n            const nameType = getSymbolLinks(symbol).nameType;\n            if (nameType && nameType.flags & 384) {\n              const result = getNameOfSymbolFromNameType(symbol, context);\n              if (result !== void 0) {\n                return result;\n              }\n            }\n          }\n          return declarationNameToString(name2);\n        }\n        if (!declaration) {\n          declaration = symbol.declarations[0];\n        }\n        if (declaration.parent && declaration.parent.kind === 257) {\n          return declarationNameToString(declaration.parent.name);\n        }\n        switch (declaration.kind) {\n          case 228:\n          case 215:\n          case 216:\n            if (context && !context.encounteredError && !(context.flags & 131072)) {\n              context.encounteredError = true;\n            }\n            return declaration.kind === 228 ? \"(Anonymous class)\" : \"(Anonymous function)\";\n        }\n      }\n      const name = getNameOfSymbolFromNameType(symbol, context);\n      return name !== void 0 ? name : symbolName(symbol);\n    }\n    function isDeclarationVisible(node) {\n      if (node) {\n        const links = getNodeLinks(node);\n        if (links.isVisible === void 0) {\n          links.isVisible = !!determineIfDeclarationIsVisible();\n        }\n        return links.isVisible;\n      }\n      return false;\n      function determineIfDeclarationIsVisible() {\n        switch (node.kind) {\n          case 341:\n          case 349:\n          case 343:\n            return !!(node.parent && node.parent.parent && node.parent.parent.parent && isSourceFile(node.parent.parent.parent));\n          case 205:\n            return isDeclarationVisible(node.parent.parent);\n          case 257:\n            if (isBindingPattern(node.name) && !node.name.elements.length) {\n              return false;\n            }\n          case 264:\n          case 260:\n          case 261:\n          case 262:\n          case 259:\n          case 263:\n          case 268:\n            if (isExternalModuleAugmentation(node)) {\n              return true;\n            }\n            const parent2 = getDeclarationContainer(node);\n            if (!(getCombinedModifierFlags(node) & 1) && !(node.kind !== 268 && parent2.kind !== 308 && parent2.flags & 16777216)) {\n              return isGlobalSourceFile(parent2);\n            }\n            return isDeclarationVisible(parent2);\n          case 169:\n          case 168:\n          case 174:\n          case 175:\n          case 171:\n          case 170:\n            if (hasEffectiveModifier(node, 8 | 16)) {\n              return false;\n            }\n          case 173:\n          case 177:\n          case 176:\n          case 178:\n          case 166:\n          case 265:\n          case 181:\n          case 182:\n          case 184:\n          case 180:\n          case 185:\n          case 186:\n          case 189:\n          case 190:\n          case 193:\n          case 199:\n            return isDeclarationVisible(node.parent);\n          case 270:\n          case 271:\n          case 273:\n            return false;\n          case 165:\n          case 308:\n          case 267:\n            return true;\n          case 274:\n            return false;\n          default:\n            return false;\n        }\n      }\n    }\n    function collectLinkedAliases(node, setVisibility) {\n      let exportSymbol;\n      if (node.parent && node.parent.kind === 274) {\n        exportSymbol = resolveName(node, node.escapedText, 111551 | 788968 | 1920 | 2097152, void 0, node, false);\n      } else if (node.parent.kind === 278) {\n        exportSymbol = getTargetOfExportSpecifier(node.parent, 111551 | 788968 | 1920 | 2097152);\n      }\n      let result;\n      let visited;\n      if (exportSymbol) {\n        visited = /* @__PURE__ */ new Set();\n        visited.add(getSymbolId(exportSymbol));\n        buildVisibleNodeList(exportSymbol.declarations);\n      }\n      return result;\n      function buildVisibleNodeList(declarations) {\n        forEach(declarations, (declaration) => {\n          const resultNode = getAnyImportSyntax(declaration) || declaration;\n          if (setVisibility) {\n            getNodeLinks(declaration).isVisible = true;\n          } else {\n            result = result || [];\n            pushIfUnique(result, resultNode);\n          }\n          if (isInternalModuleImportEqualsDeclaration(declaration)) {\n            const internalModuleReference = declaration.moduleReference;\n            const firstIdentifier = getFirstIdentifier(internalModuleReference);\n            const importSymbol = resolveName(declaration, firstIdentifier.escapedText, 111551 | 788968 | 1920, void 0, void 0, false);\n            if (importSymbol && visited) {\n              if (tryAddToSet(visited, getSymbolId(importSymbol))) {\n                buildVisibleNodeList(importSymbol.declarations);\n              }\n            }\n          }\n        });\n      }\n    }\n    function pushTypeResolution(target, propertyName) {\n      const resolutionCycleStartIndex = findResolutionCycleStartIndex(target, propertyName);\n      if (resolutionCycleStartIndex >= 0) {\n        const { length: length2 } = resolutionTargets;\n        for (let i = resolutionCycleStartIndex; i < length2; i++) {\n          resolutionResults[i] = false;\n        }\n        return false;\n      }\n      resolutionTargets.push(target);\n      resolutionResults.push(true);\n      resolutionPropertyNames.push(propertyName);\n      return true;\n    }\n    function findResolutionCycleStartIndex(target, propertyName) {\n      for (let i = resolutionTargets.length - 1; i >= 0; i--) {\n        if (resolutionTargetHasProperty(resolutionTargets[i], resolutionPropertyNames[i])) {\n          return -1;\n        }\n        if (resolutionTargets[i] === target && resolutionPropertyNames[i] === propertyName) {\n          return i;\n        }\n      }\n      return -1;\n    }\n    function resolutionTargetHasProperty(target, propertyName) {\n      switch (propertyName) {\n        case 0:\n          return !!getSymbolLinks(target).type;\n        case 5:\n          return !!getNodeLinks(target).resolvedEnumType;\n        case 2:\n          return !!getSymbolLinks(target).declaredType;\n        case 1:\n          return !!target.resolvedBaseConstructorType;\n        case 3:\n          return !!target.resolvedReturnType;\n        case 4:\n          return !!target.immediateBaseConstraint;\n        case 6:\n          return !!target.resolvedTypeArguments;\n        case 7:\n          return !!target.baseTypesResolved;\n        case 8:\n          return !!getSymbolLinks(target).writeType;\n        case 9:\n          return getNodeLinks(target).parameterInitializerContainsUndefined !== void 0;\n      }\n      return Debug.assertNever(propertyName);\n    }\n    function popTypeResolution() {\n      resolutionTargets.pop();\n      resolutionPropertyNames.pop();\n      return resolutionResults.pop();\n    }\n    function getDeclarationContainer(node) {\n      return findAncestor(getRootDeclaration(node), (node2) => {\n        switch (node2.kind) {\n          case 257:\n          case 258:\n          case 273:\n          case 272:\n          case 271:\n          case 270:\n            return false;\n          default:\n            return true;\n        }\n      }).parent;\n    }\n    function getTypeOfPrototypeProperty(prototype) {\n      const classType = getDeclaredTypeOfSymbol(getParentOfSymbol(prototype));\n      return classType.typeParameters ? createTypeReference(classType, map(classType.typeParameters, (_) => anyType)) : classType;\n    }\n    function getTypeOfPropertyOfType(type, name) {\n      const prop = getPropertyOfType(type, name);\n      return prop ? getTypeOfSymbol(prop) : void 0;\n    }\n    function getTypeOfPropertyOrIndexSignature(type, name) {\n      var _a2;\n      return getTypeOfPropertyOfType(type, name) || ((_a2 = getApplicableIndexInfoForName(type, name)) == null ? void 0 : _a2.type) || unknownType;\n    }\n    function isTypeAny(type) {\n      return type && (type.flags & 1) !== 0;\n    }\n    function isErrorType(type) {\n      return type === errorType || !!(type.flags & 1 && type.aliasSymbol);\n    }\n    function getTypeForBindingElementParent(node, checkMode) {\n      if (checkMode !== 0) {\n        return getTypeForVariableLikeDeclaration(node, false, checkMode);\n      }\n      const symbol = getSymbolOfDeclaration(node);\n      return symbol && getSymbolLinks(symbol).type || getTypeForVariableLikeDeclaration(node, false, checkMode);\n    }\n    function getRestType(source, properties, symbol) {\n      source = filterType(source, (t) => !(t.flags & 98304));\n      if (source.flags & 131072) {\n        return emptyObjectType;\n      }\n      if (source.flags & 1048576) {\n        return mapType(source, (t) => getRestType(t, properties, symbol));\n      }\n      let omitKeyType = getUnionType(map(properties, getLiteralTypeFromPropertyName));\n      const spreadableProperties = [];\n      const unspreadableToRestKeys = [];\n      for (const prop of getPropertiesOfType(source)) {\n        const literalTypeFromProperty = getLiteralTypeFromProperty(prop, 8576);\n        if (!isTypeAssignableTo(literalTypeFromProperty, omitKeyType) && !(getDeclarationModifierFlagsFromSymbol(prop) & (8 | 16)) && isSpreadableProperty(prop)) {\n          spreadableProperties.push(prop);\n        } else {\n          unspreadableToRestKeys.push(literalTypeFromProperty);\n        }\n      }\n      if (isGenericObjectType(source) || isGenericIndexType(omitKeyType)) {\n        if (unspreadableToRestKeys.length) {\n          omitKeyType = getUnionType([omitKeyType, ...unspreadableToRestKeys]);\n        }\n        if (omitKeyType.flags & 131072) {\n          return source;\n        }\n        const omitTypeAlias = getGlobalOmitSymbol();\n        if (!omitTypeAlias) {\n          return errorType;\n        }\n        return getTypeAliasInstantiation(omitTypeAlias, [source, omitKeyType]);\n      }\n      const members = createSymbolTable();\n      for (const prop of spreadableProperties) {\n        members.set(prop.escapedName, getSpreadSymbol(prop, false));\n      }\n      const result = createAnonymousType(symbol, members, emptyArray, emptyArray, getIndexInfosOfType(source));\n      result.objectFlags |= 4194304;\n      return result;\n    }\n    function isGenericTypeWithUndefinedConstraint(type) {\n      return !!(type.flags & 465829888) && maybeTypeOfKind(getBaseConstraintOfType(type) || unknownType, 32768);\n    }\n    function getNonUndefinedType(type) {\n      const typeOrConstraint = someType(type, isGenericTypeWithUndefinedConstraint) ? mapType(type, (t) => t.flags & 465829888 ? getBaseConstraintOrType(t) : t) : type;\n      return getTypeWithFacts(typeOrConstraint, 524288);\n    }\n    function getFlowTypeOfDestructuring(node, declaredType) {\n      const reference = getSyntheticElementAccess(node);\n      return reference ? getFlowTypeOfReference(reference, declaredType) : declaredType;\n    }\n    function getSyntheticElementAccess(node) {\n      const parentAccess = getParentElementAccess(node);\n      if (parentAccess && canHaveFlowNode(parentAccess) && parentAccess.flowNode) {\n        const propName = getDestructuringPropertyName(node);\n        if (propName) {\n          const literal = setTextRange(parseNodeFactory.createStringLiteral(propName), node);\n          const lhsExpr = isLeftHandSideExpression(parentAccess) ? parentAccess : parseNodeFactory.createParenthesizedExpression(parentAccess);\n          const result = setTextRange(parseNodeFactory.createElementAccessExpression(lhsExpr, literal), node);\n          setParent(literal, result);\n          setParent(result, node);\n          if (lhsExpr !== parentAccess) {\n            setParent(lhsExpr, result);\n          }\n          result.flowNode = parentAccess.flowNode;\n          return result;\n        }\n      }\n    }\n    function getParentElementAccess(node) {\n      const ancestor = node.parent.parent;\n      switch (ancestor.kind) {\n        case 205:\n        case 299:\n          return getSyntheticElementAccess(ancestor);\n        case 206:\n          return getSyntheticElementAccess(node.parent);\n        case 257:\n          return ancestor.initializer;\n        case 223:\n          return ancestor.right;\n      }\n    }\n    function getDestructuringPropertyName(node) {\n      const parent2 = node.parent;\n      if (node.kind === 205 && parent2.kind === 203) {\n        return getLiteralPropertyNameText(node.propertyName || node.name);\n      }\n      if (node.kind === 299 || node.kind === 300) {\n        return getLiteralPropertyNameText(node.name);\n      }\n      return \"\" + parent2.elements.indexOf(node);\n    }\n    function getLiteralPropertyNameText(name) {\n      const type = getLiteralTypeFromPropertyName(name);\n      return type.flags & (128 | 256) ? \"\" + type.value : void 0;\n    }\n    function getTypeForBindingElement(declaration) {\n      const checkMode = declaration.dotDotDotToken ? 64 : 0;\n      const parentType = getTypeForBindingElementParent(declaration.parent.parent, checkMode);\n      return parentType && getBindingElementTypeFromParentType(declaration, parentType);\n    }\n    function getBindingElementTypeFromParentType(declaration, parentType) {\n      if (isTypeAny(parentType)) {\n        return parentType;\n      }\n      const pattern = declaration.parent;\n      if (strictNullChecks && declaration.flags & 16777216 && isParameterDeclaration(declaration)) {\n        parentType = getNonNullableType(parentType);\n      } else if (strictNullChecks && pattern.parent.initializer && !(getTypeFacts(getTypeOfInitializer(pattern.parent.initializer)) & 65536)) {\n        parentType = getTypeWithFacts(parentType, 524288);\n      }\n      let type;\n      if (pattern.kind === 203) {\n        if (declaration.dotDotDotToken) {\n          parentType = getReducedType(parentType);\n          if (parentType.flags & 2 || !isValidSpreadType(parentType)) {\n            error(declaration, Diagnostics.Rest_types_may_only_be_created_from_object_types);\n            return errorType;\n          }\n          const literalMembers = [];\n          for (const element of pattern.elements) {\n            if (!element.dotDotDotToken) {\n              literalMembers.push(element.propertyName || element.name);\n            }\n          }\n          type = getRestType(parentType, literalMembers, declaration.symbol);\n        } else {\n          const name = declaration.propertyName || declaration.name;\n          const indexType = getLiteralTypeFromPropertyName(name);\n          const declaredType = getIndexedAccessType(parentType, indexType, 32, name);\n          type = getFlowTypeOfDestructuring(declaration, declaredType);\n        }\n      } else {\n        const elementType = checkIteratedTypeOrElementType(65 | (declaration.dotDotDotToken ? 0 : 128), parentType, undefinedType, pattern);\n        const index = pattern.elements.indexOf(declaration);\n        if (declaration.dotDotDotToken) {\n          const baseConstraint = getBaseConstraintOrType(parentType);\n          type = everyType(baseConstraint, isTupleType) ? mapType(baseConstraint, (t) => sliceTupleType(t, index)) : createArrayType(elementType);\n        } else if (isArrayLikeType(parentType)) {\n          const indexType = getNumberLiteralType(index);\n          const accessFlags = 32 | (hasDefaultValue(declaration) ? 16 : 0);\n          const declaredType = getIndexedAccessTypeOrUndefined(parentType, indexType, accessFlags, declaration.name) || errorType;\n          type = getFlowTypeOfDestructuring(declaration, declaredType);\n        } else {\n          type = elementType;\n        }\n      }\n      if (!declaration.initializer) {\n        return type;\n      }\n      if (getEffectiveTypeAnnotationNode(walkUpBindingElementsAndPatterns(declaration))) {\n        return strictNullChecks && !(getTypeFacts(checkDeclarationInitializer(declaration, 0)) & 16777216) ? getNonUndefinedType(type) : type;\n      }\n      return widenTypeInferredFromInitializer(declaration, getUnionType([getNonUndefinedType(type), checkDeclarationInitializer(declaration, 0)], 2));\n    }\n    function getTypeForDeclarationFromJSDocComment(declaration) {\n      const jsdocType = getJSDocType(declaration);\n      if (jsdocType) {\n        return getTypeFromTypeNode(jsdocType);\n      }\n      return void 0;\n    }\n    function isNullOrUndefined3(node) {\n      const expr = skipParentheses(node, true);\n      return expr.kind === 104 || expr.kind === 79 && getResolvedSymbol(expr) === undefinedSymbol;\n    }\n    function isEmptyArrayLiteral2(node) {\n      const expr = skipParentheses(node, true);\n      return expr.kind === 206 && expr.elements.length === 0;\n    }\n    function addOptionality(type, isProperty = false, isOptional = true) {\n      return strictNullChecks && isOptional ? getOptionalType(type, isProperty) : type;\n    }\n    function getTypeForVariableLikeDeclaration(declaration, includeOptionality, checkMode) {\n      if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 246) {\n        const indexType = getIndexType(getNonNullableTypeIfNeeded(checkExpression(declaration.parent.parent.expression, checkMode)));\n        return indexType.flags & (262144 | 4194304) ? getExtractStringType(indexType) : stringType;\n      }\n      if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 247) {\n        const forOfStatement = declaration.parent.parent;\n        return checkRightHandSideOfForOf(forOfStatement) || anyType;\n      }\n      if (isBindingPattern(declaration.parent)) {\n        return getTypeForBindingElement(declaration);\n      }\n      const isProperty = isPropertyDeclaration(declaration) && !hasAccessorModifier(declaration) || isPropertySignature(declaration) || isJSDocPropertyTag(declaration);\n      const isOptional = includeOptionality && isOptionalDeclaration(declaration);\n      const declaredType = tryGetTypeFromEffectiveTypeNode(declaration);\n      if (isCatchClauseVariableDeclarationOrBindingElement(declaration)) {\n        if (declaredType) {\n          return isTypeAny(declaredType) || declaredType === unknownType ? declaredType : errorType;\n        }\n        return useUnknownInCatchVariables ? unknownType : anyType;\n      }\n      if (declaredType) {\n        return addOptionality(declaredType, isProperty, isOptional);\n      }\n      if ((noImplicitAny || isInJSFile(declaration)) && isVariableDeclaration(declaration) && !isBindingPattern(declaration.name) && !(getCombinedModifierFlags(declaration) & 1) && !(declaration.flags & 16777216)) {\n        if (!(getCombinedNodeFlags(declaration) & 2) && (!declaration.initializer || isNullOrUndefined3(declaration.initializer))) {\n          return autoType;\n        }\n        if (declaration.initializer && isEmptyArrayLiteral2(declaration.initializer)) {\n          return autoArrayType;\n        }\n      }\n      if (isParameter(declaration)) {\n        const func = declaration.parent;\n        if (func.kind === 175 && hasBindableName(func)) {\n          const getter = getDeclarationOfKind(getSymbolOfDeclaration(declaration.parent), 174);\n          if (getter) {\n            const getterSignature = getSignatureFromDeclaration(getter);\n            const thisParameter = getAccessorThisParameter(func);\n            if (thisParameter && declaration === thisParameter) {\n              Debug.assert(!thisParameter.type);\n              return getTypeOfSymbol(getterSignature.thisParameter);\n            }\n            return getReturnTypeOfSignature(getterSignature);\n          }\n        }\n        const parameterTypeOfTypeTag = getParameterTypeOfTypeTag(func, declaration);\n        if (parameterTypeOfTypeTag)\n          return parameterTypeOfTypeTag;\n        const type = declaration.symbol.escapedName === \"this\" ? getContextualThisParameterType(func) : getContextuallyTypedParameterType(declaration);\n        if (type) {\n          return addOptionality(type, false, isOptional);\n        }\n      }\n      if (hasOnlyExpressionInitializer(declaration) && !!declaration.initializer) {\n        if (isInJSFile(declaration) && !isParameter(declaration)) {\n          const containerObjectType = getJSContainerObjectType(declaration, getSymbolOfDeclaration(declaration), getDeclaredExpandoInitializer(declaration));\n          if (containerObjectType) {\n            return containerObjectType;\n          }\n        }\n        const type = widenTypeInferredFromInitializer(declaration, checkDeclarationInitializer(declaration, checkMode));\n        return addOptionality(type, isProperty, isOptional);\n      }\n      if (isPropertyDeclaration(declaration) && (noImplicitAny || isInJSFile(declaration))) {\n        if (!hasStaticModifier(declaration)) {\n          const constructor = findConstructorDeclaration(declaration.parent);\n          const type = constructor ? getFlowTypeInConstructor(declaration.symbol, constructor) : getEffectiveModifierFlags(declaration) & 2 ? getTypeOfPropertyInBaseClass(declaration.symbol) : void 0;\n          return type && addOptionality(type, true, isOptional);\n        } else {\n          const staticBlocks = filter(declaration.parent.members, isClassStaticBlockDeclaration);\n          const type = staticBlocks.length ? getFlowTypeInStaticBlocks(declaration.symbol, staticBlocks) : getEffectiveModifierFlags(declaration) & 2 ? getTypeOfPropertyInBaseClass(declaration.symbol) : void 0;\n          return type && addOptionality(type, true, isOptional);\n        }\n      }\n      if (isJsxAttribute(declaration)) {\n        return trueType;\n      }\n      if (isBindingPattern(declaration.name)) {\n        return getTypeFromBindingPattern(declaration.name, false, true);\n      }\n      return void 0;\n    }\n    function isConstructorDeclaredProperty(symbol) {\n      if (symbol.valueDeclaration && isBinaryExpression(symbol.valueDeclaration)) {\n        const links = getSymbolLinks(symbol);\n        if (links.isConstructorDeclaredProperty === void 0) {\n          links.isConstructorDeclaredProperty = false;\n          links.isConstructorDeclaredProperty = !!getDeclaringConstructor(symbol) && every(symbol.declarations, (declaration) => isBinaryExpression(declaration) && isPossiblyAliasedThisProperty(declaration) && (declaration.left.kind !== 209 || isStringOrNumericLiteralLike(declaration.left.argumentExpression)) && !getAnnotatedTypeForAssignmentDeclaration(void 0, declaration, symbol, declaration));\n        }\n        return links.isConstructorDeclaredProperty;\n      }\n      return false;\n    }\n    function isAutoTypedProperty(symbol) {\n      const declaration = symbol.valueDeclaration;\n      return declaration && isPropertyDeclaration(declaration) && !getEffectiveTypeAnnotationNode(declaration) && !declaration.initializer && (noImplicitAny || isInJSFile(declaration));\n    }\n    function getDeclaringConstructor(symbol) {\n      if (!symbol.declarations) {\n        return;\n      }\n      for (const declaration of symbol.declarations) {\n        const container = getThisContainer(declaration, false, false);\n        if (container && (container.kind === 173 || isJSConstructor(container))) {\n          return container;\n        }\n      }\n    }\n    function getFlowTypeFromCommonJSExport(symbol) {\n      const file = getSourceFileOfNode(symbol.declarations[0]);\n      const accessName = unescapeLeadingUnderscores(symbol.escapedName);\n      const areAllModuleExports = symbol.declarations.every((d) => isInJSFile(d) && isAccessExpression(d) && isModuleExportsAccessExpression(d.expression));\n      const reference = areAllModuleExports ? factory.createPropertyAccessExpression(factory.createPropertyAccessExpression(factory.createIdentifier(\"module\"), factory.createIdentifier(\"exports\")), accessName) : factory.createPropertyAccessExpression(factory.createIdentifier(\"exports\"), accessName);\n      if (areAllModuleExports) {\n        setParent(reference.expression.expression, reference.expression);\n      }\n      setParent(reference.expression, reference);\n      setParent(reference, file);\n      reference.flowNode = file.endFlowNode;\n      return getFlowTypeOfReference(reference, autoType, undefinedType);\n    }\n    function getFlowTypeInStaticBlocks(symbol, staticBlocks) {\n      const accessName = startsWith(symbol.escapedName, \"__#\") ? factory.createPrivateIdentifier(symbol.escapedName.split(\"@\")[1]) : unescapeLeadingUnderscores(symbol.escapedName);\n      for (const staticBlock of staticBlocks) {\n        const reference = factory.createPropertyAccessExpression(factory.createThis(), accessName);\n        setParent(reference.expression, reference);\n        setParent(reference, staticBlock);\n        reference.flowNode = staticBlock.returnFlowNode;\n        const flowType = getFlowTypeOfProperty(reference, symbol);\n        if (noImplicitAny && (flowType === autoType || flowType === autoArrayType)) {\n          error(symbol.valueDeclaration, Diagnostics.Member_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType));\n        }\n        if (everyType(flowType, isNullableType)) {\n          continue;\n        }\n        return convertAutoToAny(flowType);\n      }\n    }\n    function getFlowTypeInConstructor(symbol, constructor) {\n      const accessName = startsWith(symbol.escapedName, \"__#\") ? factory.createPrivateIdentifier(symbol.escapedName.split(\"@\")[1]) : unescapeLeadingUnderscores(symbol.escapedName);\n      const reference = factory.createPropertyAccessExpression(factory.createThis(), accessName);\n      setParent(reference.expression, reference);\n      setParent(reference, constructor);\n      reference.flowNode = constructor.returnFlowNode;\n      const flowType = getFlowTypeOfProperty(reference, symbol);\n      if (noImplicitAny && (flowType === autoType || flowType === autoArrayType)) {\n        error(symbol.valueDeclaration, Diagnostics.Member_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType));\n      }\n      return everyType(flowType, isNullableType) ? void 0 : convertAutoToAny(flowType);\n    }\n    function getFlowTypeOfProperty(reference, prop) {\n      const initialType = (prop == null ? void 0 : prop.valueDeclaration) && (!isAutoTypedProperty(prop) || getEffectiveModifierFlags(prop.valueDeclaration) & 2) && getTypeOfPropertyInBaseClass(prop) || undefinedType;\n      return getFlowTypeOfReference(reference, autoType, initialType);\n    }\n    function getWidenedTypeForAssignmentDeclaration(symbol, resolvedSymbol) {\n      const container = getAssignedExpandoInitializer(symbol.valueDeclaration);\n      if (container) {\n        const tag = isInJSFile(container) ? getJSDocTypeTag(container) : void 0;\n        if (tag && tag.typeExpression) {\n          return getTypeFromTypeNode(tag.typeExpression);\n        }\n        const containerObjectType = symbol.valueDeclaration && getJSContainerObjectType(symbol.valueDeclaration, symbol, container);\n        return containerObjectType || getWidenedLiteralType(checkExpressionCached(container));\n      }\n      let type;\n      let definedInConstructor = false;\n      let definedInMethod = false;\n      if (isConstructorDeclaredProperty(symbol)) {\n        type = getFlowTypeInConstructor(symbol, getDeclaringConstructor(symbol));\n      }\n      if (!type) {\n        let types;\n        if (symbol.declarations) {\n          let jsdocType;\n          for (const declaration of symbol.declarations) {\n            const expression = isBinaryExpression(declaration) || isCallExpression(declaration) ? declaration : isAccessExpression(declaration) ? isBinaryExpression(declaration.parent) ? declaration.parent : declaration : void 0;\n            if (!expression) {\n              continue;\n            }\n            const kind = isAccessExpression(expression) ? getAssignmentDeclarationPropertyAccessKind(expression) : getAssignmentDeclarationKind(expression);\n            if (kind === 4 || isBinaryExpression(expression) && isPossiblyAliasedThisProperty(expression, kind)) {\n              if (isDeclarationInConstructor(expression)) {\n                definedInConstructor = true;\n              } else {\n                definedInMethod = true;\n              }\n            }\n            if (!isCallExpression(expression)) {\n              jsdocType = getAnnotatedTypeForAssignmentDeclaration(jsdocType, expression, symbol, declaration);\n            }\n            if (!jsdocType) {\n              (types || (types = [])).push(isBinaryExpression(expression) || isCallExpression(expression) ? getInitializerTypeFromAssignmentDeclaration(symbol, resolvedSymbol, expression, kind) : neverType);\n            }\n          }\n          type = jsdocType;\n        }\n        if (!type) {\n          if (!length(types)) {\n            return errorType;\n          }\n          let constructorTypes = definedInConstructor && symbol.declarations ? getConstructorDefinedThisAssignmentTypes(types, symbol.declarations) : void 0;\n          if (definedInMethod) {\n            const propType = getTypeOfPropertyInBaseClass(symbol);\n            if (propType) {\n              (constructorTypes || (constructorTypes = [])).push(propType);\n              definedInConstructor = true;\n            }\n          }\n          const sourceTypes = some(constructorTypes, (t) => !!(t.flags & ~98304)) ? constructorTypes : types;\n          type = getUnionType(sourceTypes);\n        }\n      }\n      const widened = getWidenedType(addOptionality(type, false, definedInMethod && !definedInConstructor));\n      if (symbol.valueDeclaration && filterType(widened, (t) => !!(t.flags & ~98304)) === neverType) {\n        reportImplicitAny(symbol.valueDeclaration, anyType);\n        return anyType;\n      }\n      return widened;\n    }\n    function getJSContainerObjectType(decl, symbol, init) {\n      var _a2, _b;\n      if (!isInJSFile(decl) || !init || !isObjectLiteralExpression(init) || init.properties.length) {\n        return void 0;\n      }\n      const exports = createSymbolTable();\n      while (isBinaryExpression(decl) || isPropertyAccessExpression(decl)) {\n        const s2 = getSymbolOfNode(decl);\n        if ((_a2 = s2 == null ? void 0 : s2.exports) == null ? void 0 : _a2.size) {\n          mergeSymbolTable(exports, s2.exports);\n        }\n        decl = isBinaryExpression(decl) ? decl.parent : decl.parent.parent;\n      }\n      const s = getSymbolOfNode(decl);\n      if ((_b = s == null ? void 0 : s.exports) == null ? void 0 : _b.size) {\n        mergeSymbolTable(exports, s.exports);\n      }\n      const type = createAnonymousType(symbol, exports, emptyArray, emptyArray, emptyArray);\n      type.objectFlags |= 4096;\n      return type;\n    }\n    function getAnnotatedTypeForAssignmentDeclaration(declaredType, expression, symbol, declaration) {\n      var _a2;\n      const typeNode = getEffectiveTypeAnnotationNode(expression.parent);\n      if (typeNode) {\n        const type = getWidenedType(getTypeFromTypeNode(typeNode));\n        if (!declaredType) {\n          return type;\n        } else if (!isErrorType(declaredType) && !isErrorType(type) && !isTypeIdenticalTo(declaredType, type)) {\n          errorNextVariableOrPropertyDeclarationMustHaveSameType(void 0, declaredType, declaration, type);\n        }\n      }\n      if ((_a2 = symbol.parent) == null ? void 0 : _a2.valueDeclaration) {\n        const typeNode2 = getEffectiveTypeAnnotationNode(symbol.parent.valueDeclaration);\n        if (typeNode2) {\n          const annotationSymbol = getPropertyOfType(getTypeFromTypeNode(typeNode2), symbol.escapedName);\n          if (annotationSymbol) {\n            return getNonMissingTypeOfSymbol(annotationSymbol);\n          }\n        }\n      }\n      return declaredType;\n    }\n    function getInitializerTypeFromAssignmentDeclaration(symbol, resolvedSymbol, expression, kind) {\n      if (isCallExpression(expression)) {\n        if (resolvedSymbol) {\n          return getTypeOfSymbol(resolvedSymbol);\n        }\n        const objectLitType = checkExpressionCached(expression.arguments[2]);\n        const valueType = getTypeOfPropertyOfType(objectLitType, \"value\");\n        if (valueType) {\n          return valueType;\n        }\n        const getFunc = getTypeOfPropertyOfType(objectLitType, \"get\");\n        if (getFunc) {\n          const getSig = getSingleCallSignature(getFunc);\n          if (getSig) {\n            return getReturnTypeOfSignature(getSig);\n          }\n        }\n        const setFunc = getTypeOfPropertyOfType(objectLitType, \"set\");\n        if (setFunc) {\n          const setSig = getSingleCallSignature(setFunc);\n          if (setSig) {\n            return getTypeOfFirstParameterOfSignature(setSig);\n          }\n        }\n        return anyType;\n      }\n      if (containsSameNamedThisProperty(expression.left, expression.right)) {\n        return anyType;\n      }\n      const isDirectExport = kind === 1 && (isPropertyAccessExpression(expression.left) || isElementAccessExpression(expression.left)) && (isModuleExportsAccessExpression(expression.left.expression) || isIdentifier(expression.left.expression) && isExportsIdentifier(expression.left.expression));\n      const type = resolvedSymbol ? getTypeOfSymbol(resolvedSymbol) : isDirectExport ? getRegularTypeOfLiteralType(checkExpressionCached(expression.right)) : getWidenedLiteralType(checkExpressionCached(expression.right));\n      if (type.flags & 524288 && kind === 2 && symbol.escapedName === \"export=\") {\n        const exportedType = resolveStructuredTypeMembers(type);\n        const members = createSymbolTable();\n        copyEntries(exportedType.members, members);\n        const initialSize = members.size;\n        if (resolvedSymbol && !resolvedSymbol.exports) {\n          resolvedSymbol.exports = createSymbolTable();\n        }\n        (resolvedSymbol || symbol).exports.forEach((s, name) => {\n          var _a2;\n          const exportedMember = members.get(name);\n          if (exportedMember && exportedMember !== s && !(s.flags & 2097152)) {\n            if (s.flags & 111551 && exportedMember.flags & 111551) {\n              if (s.valueDeclaration && exportedMember.valueDeclaration && getSourceFileOfNode(s.valueDeclaration) !== getSourceFileOfNode(exportedMember.valueDeclaration)) {\n                const unescapedName = unescapeLeadingUnderscores(s.escapedName);\n                const exportedMemberName = ((_a2 = tryCast(exportedMember.valueDeclaration, isNamedDeclaration)) == null ? void 0 : _a2.name) || exportedMember.valueDeclaration;\n                addRelatedInfo(error(s.valueDeclaration, Diagnostics.Duplicate_identifier_0, unescapedName), createDiagnosticForNode(exportedMemberName, Diagnostics._0_was_also_declared_here, unescapedName));\n                addRelatedInfo(error(exportedMemberName, Diagnostics.Duplicate_identifier_0, unescapedName), createDiagnosticForNode(s.valueDeclaration, Diagnostics._0_was_also_declared_here, unescapedName));\n              }\n              const union = createSymbol(s.flags | exportedMember.flags, name);\n              union.links.type = getUnionType([getTypeOfSymbol(s), getTypeOfSymbol(exportedMember)]);\n              union.valueDeclaration = exportedMember.valueDeclaration;\n              union.declarations = concatenate(exportedMember.declarations, s.declarations);\n              members.set(name, union);\n            } else {\n              members.set(name, mergeSymbol(s, exportedMember));\n            }\n          } else {\n            members.set(name, s);\n          }\n        });\n        const result = createAnonymousType(initialSize !== members.size ? void 0 : exportedType.symbol, members, exportedType.callSignatures, exportedType.constructSignatures, exportedType.indexInfos);\n        if (initialSize === members.size) {\n          if (type.aliasSymbol) {\n            result.aliasSymbol = type.aliasSymbol;\n            result.aliasTypeArguments = type.aliasTypeArguments;\n          }\n          if (getObjectFlags(type) & 4) {\n            result.aliasSymbol = type.symbol;\n            const args = getTypeArguments(type);\n            result.aliasTypeArguments = length(args) ? args : void 0;\n          }\n        }\n        result.objectFlags |= getObjectFlags(type) & 4096;\n        if (result.symbol && result.symbol.flags & 32 && type === getDeclaredTypeOfClassOrInterface(result.symbol)) {\n          result.objectFlags |= 16777216;\n        }\n        return result;\n      }\n      if (isEmptyArrayLiteralType(type)) {\n        reportImplicitAny(expression, anyArrayType);\n        return anyArrayType;\n      }\n      return type;\n    }\n    function containsSameNamedThisProperty(thisProperty, expression) {\n      return isPropertyAccessExpression(thisProperty) && thisProperty.expression.kind === 108 && forEachChildRecursively(expression, (n) => isMatchingReference(thisProperty, n));\n    }\n    function isDeclarationInConstructor(expression) {\n      const thisContainer = getThisContainer(expression, false, false);\n      return thisContainer.kind === 173 || thisContainer.kind === 259 || thisContainer.kind === 215 && !isPrototypePropertyAssignment(thisContainer.parent);\n    }\n    function getConstructorDefinedThisAssignmentTypes(types, declarations) {\n      Debug.assert(types.length === declarations.length);\n      return types.filter((_, i) => {\n        const declaration = declarations[i];\n        const expression = isBinaryExpression(declaration) ? declaration : isBinaryExpression(declaration.parent) ? declaration.parent : void 0;\n        return expression && isDeclarationInConstructor(expression);\n      });\n    }\n    function getTypeFromBindingElement(element, includePatternInType, reportErrors2) {\n      if (element.initializer) {\n        const contextualType = isBindingPattern(element.name) ? getTypeFromBindingPattern(element.name, true, false) : unknownType;\n        return addOptionality(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, 0, contextualType)));\n      }\n      if (isBindingPattern(element.name)) {\n        return getTypeFromBindingPattern(element.name, includePatternInType, reportErrors2);\n      }\n      if (reportErrors2 && !declarationBelongsToPrivateAmbientMember(element)) {\n        reportImplicitAny(element, anyType);\n      }\n      return includePatternInType ? nonInferrableAnyType : anyType;\n    }\n    function getTypeFromObjectBindingPattern(pattern, includePatternInType, reportErrors2) {\n      const members = createSymbolTable();\n      let stringIndexInfo;\n      let objectFlags = 128 | 131072;\n      forEach(pattern.elements, (e) => {\n        const name = e.propertyName || e.name;\n        if (e.dotDotDotToken) {\n          stringIndexInfo = createIndexInfo(stringType, anyType, false);\n          return;\n        }\n        const exprType = getLiteralTypeFromPropertyName(name);\n        if (!isTypeUsableAsPropertyName(exprType)) {\n          objectFlags |= 512;\n          return;\n        }\n        const text = getPropertyNameFromType(exprType);\n        const flags = 4 | (e.initializer ? 16777216 : 0);\n        const symbol = createSymbol(flags, text);\n        symbol.links.type = getTypeFromBindingElement(e, includePatternInType, reportErrors2);\n        symbol.links.bindingElement = e;\n        members.set(symbol.escapedName, symbol);\n      });\n      const result = createAnonymousType(void 0, members, emptyArray, emptyArray, stringIndexInfo ? [stringIndexInfo] : emptyArray);\n      result.objectFlags |= objectFlags;\n      if (includePatternInType) {\n        result.pattern = pattern;\n        result.objectFlags |= 131072;\n      }\n      return result;\n    }\n    function getTypeFromArrayBindingPattern(pattern, includePatternInType, reportErrors2) {\n      const elements = pattern.elements;\n      const lastElement = lastOrUndefined(elements);\n      const restElement = lastElement && lastElement.kind === 205 && lastElement.dotDotDotToken ? lastElement : void 0;\n      if (elements.length === 0 || elements.length === 1 && restElement) {\n        return languageVersion >= 2 ? createIterableType(anyType) : anyArrayType;\n      }\n      const elementTypes = map(elements, (e) => isOmittedExpression(e) ? anyType : getTypeFromBindingElement(e, includePatternInType, reportErrors2));\n      const minLength = findLastIndex(elements, (e) => !(e === restElement || isOmittedExpression(e) || hasDefaultValue(e)), elements.length - 1) + 1;\n      const elementFlags = map(elements, (e, i) => e === restElement ? 4 : i >= minLength ? 2 : 1);\n      let result = createTupleType(elementTypes, elementFlags);\n      if (includePatternInType) {\n        result = cloneTypeReference(result);\n        result.pattern = pattern;\n        result.objectFlags |= 131072;\n      }\n      return result;\n    }\n    function getTypeFromBindingPattern(pattern, includePatternInType = false, reportErrors2 = false) {\n      return pattern.kind === 203 ? getTypeFromObjectBindingPattern(pattern, includePatternInType, reportErrors2) : getTypeFromArrayBindingPattern(pattern, includePatternInType, reportErrors2);\n    }\n    function getWidenedTypeForVariableLikeDeclaration(declaration, reportErrors2) {\n      return widenTypeForVariableLikeDeclaration(getTypeForVariableLikeDeclaration(declaration, true, 0), declaration, reportErrors2);\n    }\n    function isGlobalSymbolConstructor(node) {\n      const symbol = getSymbolOfNode(node);\n      const globalSymbol = getGlobalESSymbolConstructorTypeSymbol(false);\n      return globalSymbol && symbol && symbol === globalSymbol;\n    }\n    function widenTypeForVariableLikeDeclaration(type, declaration, reportErrors2) {\n      if (type) {\n        if (type.flags & 4096 && isGlobalSymbolConstructor(declaration.parent)) {\n          type = getESSymbolLikeTypeForNode(declaration);\n        }\n        if (reportErrors2) {\n          reportErrorsFromWidening(declaration, type);\n        }\n        if (type.flags & 8192 && (isBindingElement(declaration) || !declaration.type) && type.symbol !== getSymbolOfDeclaration(declaration)) {\n          type = esSymbolType;\n        }\n        return getWidenedType(type);\n      }\n      type = isParameter(declaration) && declaration.dotDotDotToken ? anyArrayType : anyType;\n      if (reportErrors2) {\n        if (!declarationBelongsToPrivateAmbientMember(declaration)) {\n          reportImplicitAny(declaration, type);\n        }\n      }\n      return type;\n    }\n    function declarationBelongsToPrivateAmbientMember(declaration) {\n      const root = getRootDeclaration(declaration);\n      const memberDeclaration = root.kind === 166 ? root.parent : root;\n      return isPrivateWithinAmbient(memberDeclaration);\n    }\n    function tryGetTypeFromEffectiveTypeNode(node) {\n      const typeNode = getEffectiveTypeAnnotationNode(node);\n      if (typeNode) {\n        return getTypeFromTypeNode(typeNode);\n      }\n    }\n    function isParameterOfContextSensitiveSignature(symbol) {\n      let decl = symbol.valueDeclaration;\n      if (!decl) {\n        return false;\n      }\n      if (isBindingElement(decl)) {\n        decl = walkUpBindingElementsAndPatterns(decl);\n      }\n      if (isParameter(decl)) {\n        return isContextSensitiveFunctionOrObjectLiteralMethod(decl.parent);\n      }\n      return false;\n    }\n    function getTypeOfVariableOrParameterOrProperty(symbol) {\n      const links = getSymbolLinks(symbol);\n      if (!links.type) {\n        const type = getTypeOfVariableOrParameterOrPropertyWorker(symbol);\n        if (!links.type && !isParameterOfContextSensitiveSignature(symbol)) {\n          links.type = type;\n        }\n        return type;\n      }\n      return links.type;\n    }\n    function getTypeOfVariableOrParameterOrPropertyWorker(symbol) {\n      if (symbol.flags & 4194304) {\n        return getTypeOfPrototypeProperty(symbol);\n      }\n      if (symbol === requireSymbol) {\n        return anyType;\n      }\n      if (symbol.flags & 134217728 && symbol.valueDeclaration) {\n        const fileSymbol = getSymbolOfDeclaration(getSourceFileOfNode(symbol.valueDeclaration));\n        const result = createSymbol(fileSymbol.flags, \"exports\");\n        result.declarations = fileSymbol.declarations ? fileSymbol.declarations.slice() : [];\n        result.parent = symbol;\n        result.links.target = fileSymbol;\n        if (fileSymbol.valueDeclaration)\n          result.valueDeclaration = fileSymbol.valueDeclaration;\n        if (fileSymbol.members)\n          result.members = new Map(fileSymbol.members);\n        if (fileSymbol.exports)\n          result.exports = new Map(fileSymbol.exports);\n        const members = createSymbolTable();\n        members.set(\"exports\", result);\n        return createAnonymousType(symbol, members, emptyArray, emptyArray, emptyArray);\n      }\n      Debug.assertIsDefined(symbol.valueDeclaration);\n      const declaration = symbol.valueDeclaration;\n      if (isSourceFile(declaration) && isJsonSourceFile(declaration)) {\n        if (!declaration.statements.length) {\n          return emptyObjectType;\n        }\n        return getWidenedType(getWidenedLiteralType(checkExpression(declaration.statements[0].expression)));\n      }\n      if (isAccessor(declaration)) {\n        return getTypeOfAccessors(symbol);\n      }\n      if (!pushTypeResolution(symbol, 0)) {\n        if (symbol.flags & 512 && !(symbol.flags & 67108864)) {\n          return getTypeOfFuncClassEnumModule(symbol);\n        }\n        return reportCircularityError(symbol);\n      }\n      let type;\n      if (declaration.kind === 274) {\n        type = widenTypeForVariableLikeDeclaration(tryGetTypeFromEffectiveTypeNode(declaration) || checkExpressionCached(declaration.expression), declaration);\n      } else if (isBinaryExpression(declaration) || isInJSFile(declaration) && (isCallExpression(declaration) || (isPropertyAccessExpression(declaration) || isBindableStaticElementAccessExpression(declaration)) && isBinaryExpression(declaration.parent))) {\n        type = getWidenedTypeForAssignmentDeclaration(symbol);\n      } else if (isPropertyAccessExpression(declaration) || isElementAccessExpression(declaration) || isIdentifier(declaration) || isStringLiteralLike(declaration) || isNumericLiteral(declaration) || isClassDeclaration(declaration) || isFunctionDeclaration(declaration) || isMethodDeclaration(declaration) && !isObjectLiteralMethod(declaration) || isMethodSignature(declaration) || isSourceFile(declaration)) {\n        if (symbol.flags & (16 | 8192 | 32 | 384 | 512)) {\n          return getTypeOfFuncClassEnumModule(symbol);\n        }\n        type = isBinaryExpression(declaration.parent) ? getWidenedTypeForAssignmentDeclaration(symbol) : tryGetTypeFromEffectiveTypeNode(declaration) || anyType;\n      } else if (isPropertyAssignment(declaration)) {\n        type = tryGetTypeFromEffectiveTypeNode(declaration) || checkPropertyAssignment(declaration);\n      } else if (isJsxAttribute(declaration)) {\n        type = tryGetTypeFromEffectiveTypeNode(declaration) || checkJsxAttribute(declaration);\n      } else if (isShorthandPropertyAssignment(declaration)) {\n        type = tryGetTypeFromEffectiveTypeNode(declaration) || checkExpressionForMutableLocation(declaration.name, 0);\n      } else if (isObjectLiteralMethod(declaration)) {\n        type = tryGetTypeFromEffectiveTypeNode(declaration) || checkObjectLiteralMethod(declaration, 0);\n      } else if (isParameter(declaration) || isPropertyDeclaration(declaration) || isPropertySignature(declaration) || isVariableDeclaration(declaration) || isBindingElement(declaration) || isJSDocPropertyLikeTag(declaration)) {\n        type = getWidenedTypeForVariableLikeDeclaration(declaration, true);\n      } else if (isEnumDeclaration(declaration)) {\n        type = getTypeOfFuncClassEnumModule(symbol);\n      } else if (isEnumMember(declaration)) {\n        type = getTypeOfEnumMember(symbol);\n      } else {\n        return Debug.fail(\"Unhandled declaration kind! \" + Debug.formatSyntaxKind(declaration.kind) + \" for \" + Debug.formatSymbol(symbol));\n      }\n      if (!popTypeResolution()) {\n        if (symbol.flags & 512 && !(symbol.flags & 67108864)) {\n          return getTypeOfFuncClassEnumModule(symbol);\n        }\n        return reportCircularityError(symbol);\n      }\n      return type;\n    }\n    function getAnnotatedAccessorTypeNode(accessor) {\n      if (accessor) {\n        switch (accessor.kind) {\n          case 174:\n            const getterTypeAnnotation = getEffectiveReturnTypeNode(accessor);\n            return getterTypeAnnotation;\n          case 175:\n            const setterTypeAnnotation = getEffectiveSetAccessorTypeAnnotationNode(accessor);\n            return setterTypeAnnotation;\n          case 169:\n            Debug.assert(hasAccessorModifier(accessor));\n            const accessorTypeAnnotation = getEffectiveTypeAnnotationNode(accessor);\n            return accessorTypeAnnotation;\n        }\n      }\n      return void 0;\n    }\n    function getAnnotatedAccessorType(accessor) {\n      const node = getAnnotatedAccessorTypeNode(accessor);\n      return node && getTypeFromTypeNode(node);\n    }\n    function getAnnotatedAccessorThisParameter(accessor) {\n      const parameter = getAccessorThisParameter(accessor);\n      return parameter && parameter.symbol;\n    }\n    function getThisTypeOfDeclaration(declaration) {\n      return getThisTypeOfSignature(getSignatureFromDeclaration(declaration));\n    }\n    function getTypeOfAccessors(symbol) {\n      const links = getSymbolLinks(symbol);\n      if (!links.type) {\n        if (!pushTypeResolution(symbol, 0)) {\n          return errorType;\n        }\n        const getter = getDeclarationOfKind(symbol, 174);\n        const setter = getDeclarationOfKind(symbol, 175);\n        const accessor = tryCast(getDeclarationOfKind(symbol, 169), isAutoAccessorPropertyDeclaration);\n        let type = getter && isInJSFile(getter) && getTypeForDeclarationFromJSDocComment(getter) || getAnnotatedAccessorType(getter) || getAnnotatedAccessorType(setter) || getAnnotatedAccessorType(accessor) || getter && getter.body && getReturnTypeFromBody(getter) || accessor && accessor.initializer && getWidenedTypeForVariableLikeDeclaration(accessor, true);\n        if (!type) {\n          if (setter && !isPrivateWithinAmbient(setter)) {\n            errorOrSuggestion(noImplicitAny, setter, Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation, symbolToString(symbol));\n          } else if (getter && !isPrivateWithinAmbient(getter)) {\n            errorOrSuggestion(noImplicitAny, getter, Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation, symbolToString(symbol));\n          } else if (accessor && !isPrivateWithinAmbient(accessor)) {\n            errorOrSuggestion(noImplicitAny, accessor, Diagnostics.Member_0_implicitly_has_an_1_type, symbolToString(symbol), \"any\");\n          }\n          type = anyType;\n        }\n        if (!popTypeResolution()) {\n          if (getAnnotatedAccessorTypeNode(getter)) {\n            error(getter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol));\n          } else if (getAnnotatedAccessorTypeNode(setter)) {\n            error(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol));\n          } else if (getAnnotatedAccessorTypeNode(accessor)) {\n            error(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol));\n          } else if (getter && noImplicitAny) {\n            error(getter, Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, symbolToString(symbol));\n          }\n          type = anyType;\n        }\n        links.type = type;\n      }\n      return links.type;\n    }\n    function getWriteTypeOfAccessors(symbol) {\n      var _a2;\n      const links = getSymbolLinks(symbol);\n      if (!links.writeType) {\n        if (!pushTypeResolution(symbol, 8)) {\n          return errorType;\n        }\n        const setter = (_a2 = getDeclarationOfKind(symbol, 175)) != null ? _a2 : tryCast(getDeclarationOfKind(symbol, 169), isAutoAccessorPropertyDeclaration);\n        let writeType = getAnnotatedAccessorType(setter);\n        if (!popTypeResolution()) {\n          if (getAnnotatedAccessorTypeNode(setter)) {\n            error(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol));\n          }\n          writeType = anyType;\n        }\n        links.writeType = writeType || getTypeOfAccessors(symbol);\n      }\n      return links.writeType;\n    }\n    function getBaseTypeVariableOfClass(symbol) {\n      const baseConstructorType = getBaseConstructorTypeOfClass(getDeclaredTypeOfClassOrInterface(symbol));\n      return baseConstructorType.flags & 8650752 ? baseConstructorType : baseConstructorType.flags & 2097152 ? find(baseConstructorType.types, (t) => !!(t.flags & 8650752)) : void 0;\n    }\n    function getTypeOfFuncClassEnumModule(symbol) {\n      let links = getSymbolLinks(symbol);\n      const originalLinks = links;\n      if (!links.type) {\n        const expando = symbol.valueDeclaration && getSymbolOfExpando(symbol.valueDeclaration, false);\n        if (expando) {\n          const merged = mergeJSSymbols(symbol, expando);\n          if (merged) {\n            symbol = merged;\n            links = merged.links;\n          }\n        }\n        originalLinks.type = links.type = getTypeOfFuncClassEnumModuleWorker(symbol);\n      }\n      return links.type;\n    }\n    function getTypeOfFuncClassEnumModuleWorker(symbol) {\n      const declaration = symbol.valueDeclaration;\n      if (symbol.flags & 1536 && isShorthandAmbientModuleSymbol(symbol)) {\n        return anyType;\n      } else if (declaration && (declaration.kind === 223 || isAccessExpression(declaration) && declaration.parent.kind === 223)) {\n        return getWidenedTypeForAssignmentDeclaration(symbol);\n      } else if (symbol.flags & 512 && declaration && isSourceFile(declaration) && declaration.commonJsModuleIndicator) {\n        const resolvedModule = resolveExternalModuleSymbol(symbol);\n        if (resolvedModule !== symbol) {\n          if (!pushTypeResolution(symbol, 0)) {\n            return errorType;\n          }\n          const exportEquals = getMergedSymbol(symbol.exports.get(\"export=\"));\n          const type2 = getWidenedTypeForAssignmentDeclaration(exportEquals, exportEquals === resolvedModule ? void 0 : resolvedModule);\n          if (!popTypeResolution()) {\n            return reportCircularityError(symbol);\n          }\n          return type2;\n        }\n      }\n      const type = createObjectType(16, symbol);\n      if (symbol.flags & 32) {\n        const baseTypeVariable = getBaseTypeVariableOfClass(symbol);\n        return baseTypeVariable ? getIntersectionType([type, baseTypeVariable]) : type;\n      } else {\n        return strictNullChecks && symbol.flags & 16777216 ? getOptionalType(type) : type;\n      }\n    }\n    function getTypeOfEnumMember(symbol) {\n      const links = getSymbolLinks(symbol);\n      return links.type || (links.type = getDeclaredTypeOfEnumMember(symbol));\n    }\n    function getTypeOfAlias(symbol) {\n      const links = getSymbolLinks(symbol);\n      if (!links.type) {\n        const targetSymbol = resolveAlias(symbol);\n        const exportSymbol = symbol.declarations && getTargetOfAliasDeclaration(getDeclarationOfAliasSymbol(symbol), true);\n        const declaredType = firstDefined(exportSymbol == null ? void 0 : exportSymbol.declarations, (d) => isExportAssignment(d) ? tryGetTypeFromEffectiveTypeNode(d) : void 0);\n        links.type = (exportSymbol == null ? void 0 : exportSymbol.declarations) && isDuplicatedCommonJSExport(exportSymbol.declarations) && symbol.declarations.length ? getFlowTypeFromCommonJSExport(exportSymbol) : isDuplicatedCommonJSExport(symbol.declarations) ? autoType : declaredType ? declaredType : getAllSymbolFlags(targetSymbol) & 111551 ? getTypeOfSymbol(targetSymbol) : errorType;\n      }\n      return links.type;\n    }\n    function getTypeOfInstantiatedSymbol(symbol) {\n      const links = getSymbolLinks(symbol);\n      return links.type || (links.type = instantiateType(getTypeOfSymbol(links.target), links.mapper));\n    }\n    function getWriteTypeOfInstantiatedSymbol(symbol) {\n      const links = getSymbolLinks(symbol);\n      return links.writeType || (links.writeType = instantiateType(getWriteTypeOfSymbol(links.target), links.mapper));\n    }\n    function reportCircularityError(symbol) {\n      const declaration = symbol.valueDeclaration;\n      if (getEffectiveTypeAnnotationNode(declaration)) {\n        error(symbol.valueDeclaration, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol));\n        return errorType;\n      }\n      if (noImplicitAny && (declaration.kind !== 166 || declaration.initializer)) {\n        error(symbol.valueDeclaration, 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));\n      }\n      return anyType;\n    }\n    function getTypeOfSymbolWithDeferredType(symbol) {\n      const links = getSymbolLinks(symbol);\n      if (!links.type) {\n        Debug.assertIsDefined(links.deferralParent);\n        Debug.assertIsDefined(links.deferralConstituents);\n        links.type = links.deferralParent.flags & 1048576 ? getUnionType(links.deferralConstituents) : getIntersectionType(links.deferralConstituents);\n      }\n      return links.type;\n    }\n    function getWriteTypeOfSymbolWithDeferredType(symbol) {\n      const links = getSymbolLinks(symbol);\n      if (!links.writeType && links.deferralWriteConstituents) {\n        Debug.assertIsDefined(links.deferralParent);\n        Debug.assertIsDefined(links.deferralConstituents);\n        links.writeType = links.deferralParent.flags & 1048576 ? getUnionType(links.deferralWriteConstituents) : getIntersectionType(links.deferralWriteConstituents);\n      }\n      return links.writeType;\n    }\n    function getWriteTypeOfSymbol(symbol) {\n      const checkFlags = getCheckFlags(symbol);\n      if (symbol.flags & 4) {\n        return checkFlags & 2 ? checkFlags & 65536 ? getWriteTypeOfSymbolWithDeferredType(symbol) || getTypeOfSymbolWithDeferredType(symbol) : symbol.links.writeType || symbol.links.type : getTypeOfSymbol(symbol);\n      }\n      if (symbol.flags & 98304) {\n        return checkFlags & 1 ? getWriteTypeOfInstantiatedSymbol(symbol) : getWriteTypeOfAccessors(symbol);\n      }\n      return getTypeOfSymbol(symbol);\n    }\n    function getTypeOfSymbol(symbol) {\n      const checkFlags = getCheckFlags(symbol);\n      if (checkFlags & 65536) {\n        return getTypeOfSymbolWithDeferredType(symbol);\n      }\n      if (checkFlags & 1) {\n        return getTypeOfInstantiatedSymbol(symbol);\n      }\n      if (checkFlags & 262144) {\n        return getTypeOfMappedSymbol(symbol);\n      }\n      if (checkFlags & 8192) {\n        return getTypeOfReverseMappedSymbol(symbol);\n      }\n      if (symbol.flags & (3 | 4)) {\n        return getTypeOfVariableOrParameterOrProperty(symbol);\n      }\n      if (symbol.flags & (16 | 8192 | 32 | 384 | 512)) {\n        return getTypeOfFuncClassEnumModule(symbol);\n      }\n      if (symbol.flags & 8) {\n        return getTypeOfEnumMember(symbol);\n      }\n      if (symbol.flags & 98304) {\n        return getTypeOfAccessors(symbol);\n      }\n      if (symbol.flags & 2097152) {\n        return getTypeOfAlias(symbol);\n      }\n      return errorType;\n    }\n    function getNonMissingTypeOfSymbol(symbol) {\n      return removeMissingType(getTypeOfSymbol(symbol), !!(symbol.flags & 16777216));\n    }\n    function isReferenceToType2(type, target) {\n      return type !== void 0 && target !== void 0 && (getObjectFlags(type) & 4) !== 0 && type.target === target;\n    }\n    function getTargetType(type) {\n      return getObjectFlags(type) & 4 ? type.target : type;\n    }\n    function hasBaseType(type, checkBase) {\n      return check(type);\n      function check(type2) {\n        if (getObjectFlags(type2) & (3 | 4)) {\n          const target = getTargetType(type2);\n          return target === checkBase || some(getBaseTypes(target), check);\n        } else if (type2.flags & 2097152) {\n          return some(type2.types, check);\n        }\n        return false;\n      }\n    }\n    function appendTypeParameters(typeParameters, declarations) {\n      for (const declaration of declarations) {\n        typeParameters = appendIfUnique(typeParameters, getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(declaration)));\n      }\n      return typeParameters;\n    }\n    function getOuterTypeParameters(node, includeThisTypes) {\n      while (true) {\n        node = node.parent;\n        if (node && isBinaryExpression(node)) {\n          const assignmentKind = getAssignmentDeclarationKind(node);\n          if (assignmentKind === 6 || assignmentKind === 3) {\n            const symbol = getSymbolOfDeclaration(node.left);\n            if (symbol && symbol.parent && !findAncestor(symbol.parent.valueDeclaration, (d) => node === d)) {\n              node = symbol.parent.valueDeclaration;\n            }\n          }\n        }\n        if (!node) {\n          return void 0;\n        }\n        switch (node.kind) {\n          case 260:\n          case 228:\n          case 261:\n          case 176:\n          case 177:\n          case 170:\n          case 181:\n          case 182:\n          case 320:\n          case 259:\n          case 171:\n          case 215:\n          case 216:\n          case 262:\n          case 348:\n          case 349:\n          case 343:\n          case 341:\n          case 197:\n          case 191: {\n            const outerTypeParameters = getOuterTypeParameters(node, includeThisTypes);\n            if (node.kind === 197) {\n              return append(outerTypeParameters, getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node.typeParameter)));\n            } else if (node.kind === 191) {\n              return concatenate(outerTypeParameters, getInferTypeParameters(node));\n            }\n            const outerAndOwnTypeParameters = appendTypeParameters(outerTypeParameters, getEffectiveTypeParameterDeclarations(node));\n            const thisType = includeThisTypes && (node.kind === 260 || node.kind === 228 || node.kind === 261 || isJSConstructor(node)) && getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(node)).thisType;\n            return thisType ? append(outerAndOwnTypeParameters, thisType) : outerAndOwnTypeParameters;\n          }\n          case 344:\n            const paramSymbol = getParameterSymbolFromJSDoc(node);\n            if (paramSymbol) {\n              node = paramSymbol.valueDeclaration;\n            }\n            break;\n          case 323: {\n            const outerTypeParameters = getOuterTypeParameters(node, includeThisTypes);\n            return node.tags ? appendTypeParameters(outerTypeParameters, flatMap(node.tags, (t) => isJSDocTemplateTag(t) ? t.typeParameters : void 0)) : outerTypeParameters;\n          }\n        }\n      }\n    }\n    function getOuterTypeParametersOfClassOrInterface(symbol) {\n      var _a2;\n      const declaration = symbol.flags & 32 || symbol.flags & 16 ? symbol.valueDeclaration : (_a2 = symbol.declarations) == null ? void 0 : _a2.find((decl) => {\n        if (decl.kind === 261) {\n          return true;\n        }\n        if (decl.kind !== 257) {\n          return false;\n        }\n        const initializer = decl.initializer;\n        return !!initializer && (initializer.kind === 215 || initializer.kind === 216);\n      });\n      Debug.assert(!!declaration, \"Class was missing valueDeclaration -OR- non-class had no interface declarations\");\n      return getOuterTypeParameters(declaration);\n    }\n    function getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol) {\n      if (!symbol.declarations) {\n        return;\n      }\n      let result;\n      for (const node of symbol.declarations) {\n        if (node.kind === 261 || node.kind === 260 || node.kind === 228 || isJSConstructor(node) || isTypeAlias(node)) {\n          const declaration = node;\n          result = appendTypeParameters(result, getEffectiveTypeParameterDeclarations(declaration));\n        }\n      }\n      return result;\n    }\n    function getTypeParametersOfClassOrInterface(symbol) {\n      return concatenate(getOuterTypeParametersOfClassOrInterface(symbol), getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol));\n    }\n    function isMixinConstructorType(type) {\n      const signatures = getSignaturesOfType(type, 1);\n      if (signatures.length === 1) {\n        const s = signatures[0];\n        if (!s.typeParameters && s.parameters.length === 1 && signatureHasRestParameter(s)) {\n          const paramType = getTypeOfParameter(s.parameters[0]);\n          return isTypeAny(paramType) || getElementTypeOfArrayType(paramType) === anyType;\n        }\n      }\n      return false;\n    }\n    function isConstructorType(type) {\n      if (getSignaturesOfType(type, 1).length > 0) {\n        return true;\n      }\n      if (type.flags & 8650752) {\n        const constraint = getBaseConstraintOfType(type);\n        return !!constraint && isMixinConstructorType(constraint);\n      }\n      return false;\n    }\n    function getBaseTypeNodeOfClass(type) {\n      const decl = getClassLikeDeclarationOfSymbol(type.symbol);\n      return decl && getEffectiveBaseTypeNode(decl);\n    }\n    function getConstructorsForTypeArguments(type, typeArgumentNodes, location) {\n      const typeArgCount = length(typeArgumentNodes);\n      const isJavascript = isInJSFile(location);\n      return filter(getSignaturesOfType(type, 1), (sig) => (isJavascript || typeArgCount >= getMinTypeArgumentCount(sig.typeParameters)) && typeArgCount <= length(sig.typeParameters));\n    }\n    function getInstantiatedConstructorsForTypeArguments(type, typeArgumentNodes, location) {\n      const signatures = getConstructorsForTypeArguments(type, typeArgumentNodes, location);\n      const typeArguments = map(typeArgumentNodes, getTypeFromTypeNode);\n      return sameMap(signatures, (sig) => some(sig.typeParameters) ? getSignatureInstantiation(sig, typeArguments, isInJSFile(location)) : sig);\n    }\n    function getBaseConstructorTypeOfClass(type) {\n      if (!type.resolvedBaseConstructorType) {\n        const decl = getClassLikeDeclarationOfSymbol(type.symbol);\n        const extended = decl && getEffectiveBaseTypeNode(decl);\n        const baseTypeNode = getBaseTypeNodeOfClass(type);\n        if (!baseTypeNode) {\n          return type.resolvedBaseConstructorType = undefinedType;\n        }\n        if (!pushTypeResolution(type, 1)) {\n          return errorType;\n        }\n        const baseConstructorType = checkExpression(baseTypeNode.expression);\n        if (extended && baseTypeNode !== extended) {\n          Debug.assert(!extended.typeArguments);\n          checkExpression(extended.expression);\n        }\n        if (baseConstructorType.flags & (524288 | 2097152)) {\n          resolveStructuredTypeMembers(baseConstructorType);\n        }\n        if (!popTypeResolution()) {\n          error(type.symbol.valueDeclaration, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression, symbolToString(type.symbol));\n          return type.resolvedBaseConstructorType = errorType;\n        }\n        if (!(baseConstructorType.flags & 1) && baseConstructorType !== nullWideningType && !isConstructorType(baseConstructorType)) {\n          const err = error(baseTypeNode.expression, Diagnostics.Type_0_is_not_a_constructor_function_type, typeToString(baseConstructorType));\n          if (baseConstructorType.flags & 262144) {\n            const constraint = getConstraintFromTypeParameter(baseConstructorType);\n            let ctorReturn = unknownType;\n            if (constraint) {\n              const ctorSig = getSignaturesOfType(constraint, 1);\n              if (ctorSig[0]) {\n                ctorReturn = getReturnTypeOfSignature(ctorSig[0]);\n              }\n            }\n            if (baseConstructorType.symbol.declarations) {\n              addRelatedInfo(err, createDiagnosticForNode(baseConstructorType.symbol.declarations[0], Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1, symbolToString(baseConstructorType.symbol), typeToString(ctorReturn)));\n            }\n          }\n          return type.resolvedBaseConstructorType = errorType;\n        }\n        type.resolvedBaseConstructorType = baseConstructorType;\n      }\n      return type.resolvedBaseConstructorType;\n    }\n    function getImplementsTypes(type) {\n      let resolvedImplementsTypes = emptyArray;\n      if (type.symbol.declarations) {\n        for (const declaration of type.symbol.declarations) {\n          const implementsTypeNodes = getEffectiveImplementsTypeNodes(declaration);\n          if (!implementsTypeNodes)\n            continue;\n          for (const node of implementsTypeNodes) {\n            const implementsType = getTypeFromTypeNode(node);\n            if (!isErrorType(implementsType)) {\n              if (resolvedImplementsTypes === emptyArray) {\n                resolvedImplementsTypes = [implementsType];\n              } else {\n                resolvedImplementsTypes.push(implementsType);\n              }\n            }\n          }\n        }\n      }\n      return resolvedImplementsTypes;\n    }\n    function reportCircularBaseType(node, type) {\n      error(node, Diagnostics.Type_0_recursively_references_itself_as_a_base_type, typeToString(type, void 0, 2));\n    }\n    function getBaseTypes(type) {\n      if (!type.baseTypesResolved) {\n        if (pushTypeResolution(type, 7)) {\n          if (type.objectFlags & 8) {\n            type.resolvedBaseTypes = [getTupleBaseType(type)];\n          } else if (type.symbol.flags & (32 | 64)) {\n            if (type.symbol.flags & 32) {\n              resolveBaseTypesOfClass(type);\n            }\n            if (type.symbol.flags & 64) {\n              resolveBaseTypesOfInterface(type);\n            }\n          } else {\n            Debug.fail(\"type must be class or interface\");\n          }\n          if (!popTypeResolution() && type.symbol.declarations) {\n            for (const declaration of type.symbol.declarations) {\n              if (declaration.kind === 260 || declaration.kind === 261) {\n                reportCircularBaseType(declaration, type);\n              }\n            }\n          }\n        }\n        type.baseTypesResolved = true;\n      }\n      return type.resolvedBaseTypes;\n    }\n    function getTupleBaseType(type) {\n      const elementTypes = sameMap(type.typeParameters, (t, i) => type.elementFlags[i] & 8 ? getIndexedAccessType(t, numberType) : t);\n      return createArrayType(getUnionType(elementTypes || emptyArray), type.readonly);\n    }\n    function resolveBaseTypesOfClass(type) {\n      type.resolvedBaseTypes = resolvingEmptyArray;\n      const baseConstructorType = getApparentType(getBaseConstructorTypeOfClass(type));\n      if (!(baseConstructorType.flags & (524288 | 2097152 | 1))) {\n        return type.resolvedBaseTypes = emptyArray;\n      }\n      const baseTypeNode = getBaseTypeNodeOfClass(type);\n      let baseType;\n      const originalBaseType = baseConstructorType.symbol ? getDeclaredTypeOfSymbol(baseConstructorType.symbol) : void 0;\n      if (baseConstructorType.symbol && baseConstructorType.symbol.flags & 32 && areAllOuterTypeParametersApplied(originalBaseType)) {\n        baseType = getTypeFromClassOrInterfaceReference(baseTypeNode, baseConstructorType.symbol);\n      } else if (baseConstructorType.flags & 1) {\n        baseType = baseConstructorType;\n      } else {\n        const constructors = getInstantiatedConstructorsForTypeArguments(baseConstructorType, baseTypeNode.typeArguments, baseTypeNode);\n        if (!constructors.length) {\n          error(baseTypeNode.expression, Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments);\n          return type.resolvedBaseTypes = emptyArray;\n        }\n        baseType = getReturnTypeOfSignature(constructors[0]);\n      }\n      if (isErrorType(baseType)) {\n        return type.resolvedBaseTypes = emptyArray;\n      }\n      const reducedBaseType = getReducedType(baseType);\n      if (!isValidBaseType(reducedBaseType)) {\n        const elaboration = elaborateNeverIntersection(void 0, baseType);\n        const diagnostic = chainDiagnosticMessages(elaboration, Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members, typeToString(reducedBaseType));\n        diagnostics.add(createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(baseTypeNode.expression), baseTypeNode.expression, diagnostic));\n        return type.resolvedBaseTypes = emptyArray;\n      }\n      if (type === reducedBaseType || hasBaseType(reducedBaseType, type)) {\n        error(type.symbol.valueDeclaration, Diagnostics.Type_0_recursively_references_itself_as_a_base_type, typeToString(type, void 0, 2));\n        return type.resolvedBaseTypes = emptyArray;\n      }\n      if (type.resolvedBaseTypes === resolvingEmptyArray) {\n        type.members = void 0;\n      }\n      return type.resolvedBaseTypes = [reducedBaseType];\n    }\n    function areAllOuterTypeParametersApplied(type) {\n      const outerTypeParameters = type.outerTypeParameters;\n      if (outerTypeParameters) {\n        const last2 = outerTypeParameters.length - 1;\n        const typeArguments = getTypeArguments(type);\n        return outerTypeParameters[last2].symbol !== typeArguments[last2].symbol;\n      }\n      return true;\n    }\n    function isValidBaseType(type) {\n      if (type.flags & 262144) {\n        const constraint = getBaseConstraintOfType(type);\n        if (constraint) {\n          return isValidBaseType(constraint);\n        }\n      }\n      return !!(type.flags & (524288 | 67108864 | 1) && !isGenericMappedType(type) || type.flags & 2097152 && every(type.types, isValidBaseType));\n    }\n    function resolveBaseTypesOfInterface(type) {\n      type.resolvedBaseTypes = type.resolvedBaseTypes || emptyArray;\n      if (type.symbol.declarations) {\n        for (const declaration of type.symbol.declarations) {\n          if (declaration.kind === 261 && getInterfaceBaseTypeNodes(declaration)) {\n            for (const node of getInterfaceBaseTypeNodes(declaration)) {\n              const baseType = getReducedType(getTypeFromTypeNode(node));\n              if (!isErrorType(baseType)) {\n                if (isValidBaseType(baseType)) {\n                  if (type !== baseType && !hasBaseType(baseType, type)) {\n                    if (type.resolvedBaseTypes === emptyArray) {\n                      type.resolvedBaseTypes = [baseType];\n                    } else {\n                      type.resolvedBaseTypes.push(baseType);\n                    }\n                  } else {\n                    reportCircularBaseType(declaration, type);\n                  }\n                } else {\n                  error(node, Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members);\n                }\n              }\n            }\n          }\n        }\n      }\n    }\n    function isThislessInterface(symbol) {\n      if (!symbol.declarations) {\n        return true;\n      }\n      for (const declaration of symbol.declarations) {\n        if (declaration.kind === 261) {\n          if (declaration.flags & 128) {\n            return false;\n          }\n          const baseTypeNodes = getInterfaceBaseTypeNodes(declaration);\n          if (baseTypeNodes) {\n            for (const node of baseTypeNodes) {\n              if (isEntityNameExpression(node.expression)) {\n                const baseSymbol = resolveEntityName(node.expression, 788968, true);\n                if (!baseSymbol || !(baseSymbol.flags & 64) || getDeclaredTypeOfClassOrInterface(baseSymbol).thisType) {\n                  return false;\n                }\n              }\n            }\n          }\n        }\n      }\n      return true;\n    }\n    function getDeclaredTypeOfClassOrInterface(symbol) {\n      let links = getSymbolLinks(symbol);\n      const originalLinks = links;\n      if (!links.declaredType) {\n        const kind = symbol.flags & 32 ? 1 : 2;\n        const merged = mergeJSSymbols(symbol, symbol.valueDeclaration && getAssignedClassSymbol(symbol.valueDeclaration));\n        if (merged) {\n          symbol = merged;\n          links = merged.links;\n        }\n        const type = originalLinks.declaredType = links.declaredType = createObjectType(kind, symbol);\n        const outerTypeParameters = getOuterTypeParametersOfClassOrInterface(symbol);\n        const localTypeParameters = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol);\n        if (outerTypeParameters || localTypeParameters || kind === 1 || !isThislessInterface(symbol)) {\n          type.objectFlags |= 4;\n          type.typeParameters = concatenate(outerTypeParameters, localTypeParameters);\n          type.outerTypeParameters = outerTypeParameters;\n          type.localTypeParameters = localTypeParameters;\n          type.instantiations = /* @__PURE__ */ new Map();\n          type.instantiations.set(getTypeListId(type.typeParameters), type);\n          type.target = type;\n          type.resolvedTypeArguments = type.typeParameters;\n          type.thisType = createTypeParameter(symbol);\n          type.thisType.isThisType = true;\n          type.thisType.constraint = type;\n        }\n      }\n      return links.declaredType;\n    }\n    function getDeclaredTypeOfTypeAlias(symbol) {\n      var _a2;\n      const links = getSymbolLinks(symbol);\n      if (!links.declaredType) {\n        if (!pushTypeResolution(symbol, 2)) {\n          return errorType;\n        }\n        const declaration = Debug.checkDefined((_a2 = symbol.declarations) == null ? void 0 : _a2.find(isTypeAlias), \"Type alias symbol with no valid declaration found\");\n        const typeNode = isJSDocTypeAlias(declaration) ? declaration.typeExpression : declaration.type;\n        let type = typeNode ? getTypeFromTypeNode(typeNode) : errorType;\n        if (popTypeResolution()) {\n          const typeParameters = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol);\n          if (typeParameters) {\n            links.typeParameters = typeParameters;\n            links.instantiations = /* @__PURE__ */ new Map();\n            links.instantiations.set(getTypeListId(typeParameters), type);\n          }\n        } else {\n          type = errorType;\n          if (declaration.kind === 343) {\n            error(declaration.typeExpression.type, Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol));\n          } else {\n            error(isNamedDeclaration(declaration) ? declaration.name || declaration : declaration, Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol));\n          }\n        }\n        links.declaredType = type;\n      }\n      return links.declaredType;\n    }\n    function getBaseTypeOfEnumLikeType(type) {\n      return type.flags & 1056 && type.symbol.flags & 8 ? getDeclaredTypeOfSymbol(getParentOfSymbol(type.symbol)) : type;\n    }\n    function getDeclaredTypeOfEnum(symbol) {\n      const links = getSymbolLinks(symbol);\n      if (!links.declaredType) {\n        const memberTypeList = [];\n        if (symbol.declarations) {\n          for (const declaration of symbol.declarations) {\n            if (declaration.kind === 263) {\n              for (const member of declaration.members) {\n                if (hasBindableName(member)) {\n                  const memberSymbol = getSymbolOfDeclaration(member);\n                  const value = getEnumMemberValue(member);\n                  const memberType = getFreshTypeOfLiteralType(value !== void 0 ? getEnumLiteralType(value, getSymbolId(symbol), memberSymbol) : createComputedEnumType(memberSymbol));\n                  getSymbolLinks(memberSymbol).declaredType = memberType;\n                  memberTypeList.push(getRegularTypeOfLiteralType(memberType));\n                }\n              }\n            }\n          }\n        }\n        const enumType = memberTypeList.length ? getUnionType(memberTypeList, 1, symbol, void 0) : createComputedEnumType(symbol);\n        if (enumType.flags & 1048576) {\n          enumType.flags |= 1024;\n          enumType.symbol = symbol;\n        }\n        links.declaredType = enumType;\n      }\n      return links.declaredType;\n    }\n    function createComputedEnumType(symbol) {\n      const regularType = createTypeWithSymbol(32, symbol);\n      const freshType = createTypeWithSymbol(32, symbol);\n      regularType.regularType = regularType;\n      regularType.freshType = freshType;\n      freshType.regularType = regularType;\n      freshType.freshType = freshType;\n      return regularType;\n    }\n    function getDeclaredTypeOfEnumMember(symbol) {\n      const links = getSymbolLinks(symbol);\n      if (!links.declaredType) {\n        const enumType = getDeclaredTypeOfEnum(getParentOfSymbol(symbol));\n        if (!links.declaredType) {\n          links.declaredType = enumType;\n        }\n      }\n      return links.declaredType;\n    }\n    function getDeclaredTypeOfTypeParameter(symbol) {\n      const links = getSymbolLinks(symbol);\n      return links.declaredType || (links.declaredType = createTypeParameter(symbol));\n    }\n    function getDeclaredTypeOfAlias(symbol) {\n      const links = getSymbolLinks(symbol);\n      return links.declaredType || (links.declaredType = getDeclaredTypeOfSymbol(resolveAlias(symbol)));\n    }\n    function getDeclaredTypeOfSymbol(symbol) {\n      return tryGetDeclaredTypeOfSymbol(symbol) || errorType;\n    }\n    function tryGetDeclaredTypeOfSymbol(symbol) {\n      if (symbol.flags & (32 | 64)) {\n        return getDeclaredTypeOfClassOrInterface(symbol);\n      }\n      if (symbol.flags & 524288) {\n        return getDeclaredTypeOfTypeAlias(symbol);\n      }\n      if (symbol.flags & 262144) {\n        return getDeclaredTypeOfTypeParameter(symbol);\n      }\n      if (symbol.flags & 384) {\n        return getDeclaredTypeOfEnum(symbol);\n      }\n      if (symbol.flags & 8) {\n        return getDeclaredTypeOfEnumMember(symbol);\n      }\n      if (symbol.flags & 2097152) {\n        return getDeclaredTypeOfAlias(symbol);\n      }\n      return void 0;\n    }\n    function isThislessType(node) {\n      switch (node.kind) {\n        case 131:\n        case 157:\n        case 152:\n        case 148:\n        case 160:\n        case 134:\n        case 153:\n        case 149:\n        case 114:\n        case 155:\n        case 144:\n        case 198:\n          return true;\n        case 185:\n          return isThislessType(node.elementType);\n        case 180:\n          return !node.typeArguments || node.typeArguments.every(isThislessType);\n      }\n      return false;\n    }\n    function isThislessTypeParameter(node) {\n      const constraint = getEffectiveConstraintOfTypeParameter(node);\n      return !constraint || isThislessType(constraint);\n    }\n    function isThislessVariableLikeDeclaration(node) {\n      const typeNode = getEffectiveTypeAnnotationNode(node);\n      return typeNode ? isThislessType(typeNode) : !hasInitializer(node);\n    }\n    function isThislessFunctionLikeDeclaration(node) {\n      const returnType = getEffectiveReturnTypeNode(node);\n      const typeParameters = getEffectiveTypeParameterDeclarations(node);\n      return (node.kind === 173 || !!returnType && isThislessType(returnType)) && node.parameters.every(isThislessVariableLikeDeclaration) && typeParameters.every(isThislessTypeParameter);\n    }\n    function isThisless(symbol) {\n      if (symbol.declarations && symbol.declarations.length === 1) {\n        const declaration = symbol.declarations[0];\n        if (declaration) {\n          switch (declaration.kind) {\n            case 169:\n            case 168:\n              return isThislessVariableLikeDeclaration(declaration);\n            case 171:\n            case 170:\n            case 173:\n            case 174:\n            case 175:\n              return isThislessFunctionLikeDeclaration(declaration);\n          }\n        }\n      }\n      return false;\n    }\n    function createInstantiatedSymbolTable(symbols, mapper, mappingThisOnly) {\n      const result = createSymbolTable();\n      for (const symbol of symbols) {\n        result.set(symbol.escapedName, mappingThisOnly && isThisless(symbol) ? symbol : instantiateSymbol(symbol, mapper));\n      }\n      return result;\n    }\n    function addInheritedMembers(symbols, baseSymbols) {\n      for (const s of baseSymbols) {\n        if (!symbols.has(s.escapedName) && !isStaticPrivateIdentifierProperty(s)) {\n          symbols.set(s.escapedName, s);\n        }\n      }\n    }\n    function isStaticPrivateIdentifierProperty(s) {\n      return !!s.valueDeclaration && isPrivateIdentifierClassElementDeclaration(s.valueDeclaration) && isStatic(s.valueDeclaration);\n    }\n    function resolveDeclaredMembers(type) {\n      if (!type.declaredProperties) {\n        const symbol = type.symbol;\n        const members = getMembersOfSymbol(symbol);\n        type.declaredProperties = getNamedMembers(members);\n        type.declaredCallSignatures = emptyArray;\n        type.declaredConstructSignatures = emptyArray;\n        type.declaredIndexInfos = emptyArray;\n        type.declaredCallSignatures = getSignaturesOfSymbol(members.get(\"__call\"));\n        type.declaredConstructSignatures = getSignaturesOfSymbol(members.get(\"__new\"));\n        type.declaredIndexInfos = getIndexInfosOfSymbol(symbol);\n      }\n      return type;\n    }\n    function isTypeUsableAsPropertyName(type) {\n      return !!(type.flags & 8576);\n    }\n    function isLateBindableName(node) {\n      if (!isComputedPropertyName(node) && !isElementAccessExpression(node)) {\n        return false;\n      }\n      const expr = isComputedPropertyName(node) ? node.expression : node.argumentExpression;\n      return isEntityNameExpression(expr) && isTypeUsableAsPropertyName(isComputedPropertyName(node) ? checkComputedPropertyName(node) : checkExpressionCached(expr));\n    }\n    function isLateBoundName(name) {\n      return name.charCodeAt(0) === 95 && name.charCodeAt(1) === 95 && name.charCodeAt(2) === 64;\n    }\n    function hasLateBindableName(node) {\n      const name = getNameOfDeclaration(node);\n      return !!name && isLateBindableName(name);\n    }\n    function hasBindableName(node) {\n      return !hasDynamicName(node) || hasLateBindableName(node);\n    }\n    function isNonBindableDynamicName(node) {\n      return isDynamicName(node) && !isLateBindableName(node);\n    }\n    function getPropertyNameFromType(type) {\n      if (type.flags & 8192) {\n        return type.escapedName;\n      }\n      if (type.flags & (128 | 256)) {\n        return escapeLeadingUnderscores(\"\" + type.value);\n      }\n      return Debug.fail();\n    }\n    function addDeclarationToLateBoundSymbol(symbol, member, symbolFlags) {\n      Debug.assert(!!(getCheckFlags(symbol) & 4096), \"Expected a late-bound symbol.\");\n      symbol.flags |= symbolFlags;\n      getSymbolLinks(member.symbol).lateSymbol = symbol;\n      if (!symbol.declarations) {\n        symbol.declarations = [member];\n      } else if (!member.symbol.isReplaceableByMethod) {\n        symbol.declarations.push(member);\n      }\n      if (symbolFlags & 111551) {\n        if (!symbol.valueDeclaration || symbol.valueDeclaration.kind !== member.kind) {\n          symbol.valueDeclaration = member;\n        }\n      }\n    }\n    function lateBindMember(parent2, earlySymbols, lateSymbols, decl) {\n      Debug.assert(!!decl.symbol, \"The member is expected to have a symbol.\");\n      const links = getNodeLinks(decl);\n      if (!links.resolvedSymbol) {\n        links.resolvedSymbol = decl.symbol;\n        const declName = isBinaryExpression(decl) ? decl.left : decl.name;\n        const type = isElementAccessExpression(declName) ? checkExpressionCached(declName.argumentExpression) : checkComputedPropertyName(declName);\n        if (isTypeUsableAsPropertyName(type)) {\n          const memberName = getPropertyNameFromType(type);\n          const symbolFlags = decl.symbol.flags;\n          let lateSymbol = lateSymbols.get(memberName);\n          if (!lateSymbol)\n            lateSymbols.set(memberName, lateSymbol = createSymbol(0, memberName, 4096));\n          const earlySymbol = earlySymbols && earlySymbols.get(memberName);\n          if (lateSymbol.flags & getExcludedSymbolFlags(symbolFlags) || earlySymbol) {\n            const declarations = earlySymbol ? concatenate(earlySymbol.declarations, lateSymbol.declarations) : lateSymbol.declarations;\n            const name = !(type.flags & 8192) && unescapeLeadingUnderscores(memberName) || declarationNameToString(declName);\n            forEach(declarations, (declaration) => error(getNameOfDeclaration(declaration) || declaration, Diagnostics.Property_0_was_also_declared_here, name));\n            error(declName || decl, Diagnostics.Duplicate_property_0, name);\n            lateSymbol = createSymbol(0, memberName, 4096);\n          }\n          lateSymbol.links.nameType = type;\n          addDeclarationToLateBoundSymbol(lateSymbol, decl, symbolFlags);\n          if (lateSymbol.parent) {\n            Debug.assert(lateSymbol.parent === parent2, \"Existing symbol parent should match new one\");\n          } else {\n            lateSymbol.parent = parent2;\n          }\n          return links.resolvedSymbol = lateSymbol;\n        }\n      }\n      return links.resolvedSymbol;\n    }\n    function getResolvedMembersOrExportsOfSymbol(symbol, resolutionKind) {\n      const links = getSymbolLinks(symbol);\n      if (!links[resolutionKind]) {\n        const isStatic2 = resolutionKind === \"resolvedExports\";\n        const earlySymbols = !isStatic2 ? symbol.members : symbol.flags & 1536 ? getExportsOfModuleWorker(symbol).exports : symbol.exports;\n        links[resolutionKind] = earlySymbols || emptySymbols;\n        const lateSymbols = createSymbolTable();\n        for (const decl of symbol.declarations || emptyArray) {\n          const members = getMembersOfDeclaration(decl);\n          if (members) {\n            for (const member of members) {\n              if (isStatic2 === hasStaticModifier(member)) {\n                if (hasLateBindableName(member)) {\n                  lateBindMember(symbol, earlySymbols, lateSymbols, member);\n                }\n              }\n            }\n          }\n        }\n        const assignments = symbol.assignmentDeclarationMembers;\n        if (assignments) {\n          const decls = arrayFrom(assignments.values());\n          for (const member of decls) {\n            const assignmentKind = getAssignmentDeclarationKind(member);\n            const isInstanceMember = assignmentKind === 3 || isBinaryExpression(member) && isPossiblyAliasedThisProperty(member, assignmentKind) || assignmentKind === 9 || assignmentKind === 6;\n            if (isStatic2 === !isInstanceMember) {\n              if (hasLateBindableName(member)) {\n                lateBindMember(symbol, earlySymbols, lateSymbols, member);\n              }\n            }\n          }\n        }\n        links[resolutionKind] = combineSymbolTables(earlySymbols, lateSymbols) || emptySymbols;\n      }\n      return links[resolutionKind];\n    }\n    function getMembersOfSymbol(symbol) {\n      return symbol.flags & 6256 ? getResolvedMembersOrExportsOfSymbol(symbol, \"resolvedMembers\") : symbol.members || emptySymbols;\n    }\n    function getLateBoundSymbol(symbol) {\n      if (symbol.flags & 106500 && symbol.escapedName === \"__computed\") {\n        const links = getSymbolLinks(symbol);\n        if (!links.lateSymbol && some(symbol.declarations, hasLateBindableName)) {\n          const parent2 = getMergedSymbol(symbol.parent);\n          if (some(symbol.declarations, hasStaticModifier)) {\n            getExportsOfSymbol(parent2);\n          } else {\n            getMembersOfSymbol(parent2);\n          }\n        }\n        return links.lateSymbol || (links.lateSymbol = symbol);\n      }\n      return symbol;\n    }\n    function getTypeWithThisArgument(type, thisArgument, needApparentType) {\n      if (getObjectFlags(type) & 4) {\n        const target = type.target;\n        const typeArguments = getTypeArguments(type);\n        if (length(target.typeParameters) === length(typeArguments)) {\n          const ref = createTypeReference(target, concatenate(typeArguments, [thisArgument || target.thisType]));\n          return needApparentType ? getApparentType(ref) : ref;\n        }\n      } else if (type.flags & 2097152) {\n        const types = sameMap(type.types, (t) => getTypeWithThisArgument(t, thisArgument, needApparentType));\n        return types !== type.types ? getIntersectionType(types) : type;\n      }\n      return needApparentType ? getApparentType(type) : type;\n    }\n    function resolveObjectTypeMembers(type, source, typeParameters, typeArguments) {\n      let mapper;\n      let members;\n      let callSignatures;\n      let constructSignatures;\n      let indexInfos;\n      if (rangeEquals(typeParameters, typeArguments, 0, typeParameters.length)) {\n        members = source.symbol ? getMembersOfSymbol(source.symbol) : createSymbolTable(source.declaredProperties);\n        callSignatures = source.declaredCallSignatures;\n        constructSignatures = source.declaredConstructSignatures;\n        indexInfos = source.declaredIndexInfos;\n      } else {\n        mapper = createTypeMapper(typeParameters, typeArguments);\n        members = createInstantiatedSymbolTable(source.declaredProperties, mapper, typeParameters.length === 1);\n        callSignatures = instantiateSignatures(source.declaredCallSignatures, mapper);\n        constructSignatures = instantiateSignatures(source.declaredConstructSignatures, mapper);\n        indexInfos = instantiateIndexInfos(source.declaredIndexInfos, mapper);\n      }\n      const baseTypes = getBaseTypes(source);\n      if (baseTypes.length) {\n        if (source.symbol && members === getMembersOfSymbol(source.symbol)) {\n          members = createSymbolTable(source.declaredProperties);\n        }\n        setStructuredTypeMembers(type, members, callSignatures, constructSignatures, indexInfos);\n        const thisArgument = lastOrUndefined(typeArguments);\n        for (const baseType of baseTypes) {\n          const instantiatedBaseType = thisArgument ? getTypeWithThisArgument(instantiateType(baseType, mapper), thisArgument) : baseType;\n          addInheritedMembers(members, getPropertiesOfType(instantiatedBaseType));\n          callSignatures = concatenate(callSignatures, getSignaturesOfType(instantiatedBaseType, 0));\n          constructSignatures = concatenate(constructSignatures, getSignaturesOfType(instantiatedBaseType, 1));\n          const inheritedIndexInfos = instantiatedBaseType !== anyType ? getIndexInfosOfType(instantiatedBaseType) : [createIndexInfo(stringType, anyType, false)];\n          indexInfos = concatenate(indexInfos, filter(inheritedIndexInfos, (info) => !findIndexInfo(indexInfos, info.keyType)));\n        }\n      }\n      setStructuredTypeMembers(type, members, callSignatures, constructSignatures, indexInfos);\n    }\n    function resolveClassOrInterfaceMembers(type) {\n      resolveObjectTypeMembers(type, resolveDeclaredMembers(type), emptyArray, emptyArray);\n    }\n    function resolveTypeReferenceMembers(type) {\n      const source = resolveDeclaredMembers(type.target);\n      const typeParameters = concatenate(source.typeParameters, [source.thisType]);\n      const typeArguments = getTypeArguments(type);\n      const paddedTypeArguments = typeArguments.length === typeParameters.length ? typeArguments : concatenate(typeArguments, [type]);\n      resolveObjectTypeMembers(type, source, typeParameters, paddedTypeArguments);\n    }\n    function createSignature(declaration, typeParameters, thisParameter, parameters, resolvedReturnType, resolvedTypePredicate, minArgumentCount, flags) {\n      const sig = new Signature15(checker, flags);\n      sig.declaration = declaration;\n      sig.typeParameters = typeParameters;\n      sig.parameters = parameters;\n      sig.thisParameter = thisParameter;\n      sig.resolvedReturnType = resolvedReturnType;\n      sig.resolvedTypePredicate = resolvedTypePredicate;\n      sig.minArgumentCount = minArgumentCount;\n      sig.resolvedMinArgumentCount = void 0;\n      sig.target = void 0;\n      sig.mapper = void 0;\n      sig.compositeSignatures = void 0;\n      sig.compositeKind = void 0;\n      return sig;\n    }\n    function cloneSignature(sig) {\n      const result = createSignature(sig.declaration, sig.typeParameters, sig.thisParameter, sig.parameters, void 0, void 0, sig.minArgumentCount, sig.flags & 39);\n      result.target = sig.target;\n      result.mapper = sig.mapper;\n      result.compositeSignatures = sig.compositeSignatures;\n      result.compositeKind = sig.compositeKind;\n      return result;\n    }\n    function createUnionSignature(signature, unionSignatures) {\n      const result = cloneSignature(signature);\n      result.compositeSignatures = unionSignatures;\n      result.compositeKind = 1048576;\n      result.target = void 0;\n      result.mapper = void 0;\n      return result;\n    }\n    function getOptionalCallSignature(signature, callChainFlags) {\n      if ((signature.flags & 24) === callChainFlags) {\n        return signature;\n      }\n      if (!signature.optionalCallSignatureCache) {\n        signature.optionalCallSignatureCache = {};\n      }\n      const key = callChainFlags === 8 ? \"inner\" : \"outer\";\n      return signature.optionalCallSignatureCache[key] || (signature.optionalCallSignatureCache[key] = createOptionalCallSignature(signature, callChainFlags));\n    }\n    function createOptionalCallSignature(signature, callChainFlags) {\n      Debug.assert(callChainFlags === 8 || callChainFlags === 16, \"An optional call signature can either be for an inner call chain or an outer call chain, but not both.\");\n      const result = cloneSignature(signature);\n      result.flags |= callChainFlags;\n      return result;\n    }\n    function getExpandedParameters(sig, skipUnionExpanding) {\n      if (signatureHasRestParameter(sig)) {\n        const restIndex = sig.parameters.length - 1;\n        const restType = getTypeOfSymbol(sig.parameters[restIndex]);\n        if (isTupleType(restType)) {\n          return [expandSignatureParametersWithTupleMembers(restType, restIndex)];\n        } else if (!skipUnionExpanding && restType.flags & 1048576 && every(restType.types, isTupleType)) {\n          return map(restType.types, (t) => expandSignatureParametersWithTupleMembers(t, restIndex));\n        }\n      }\n      return [sig.parameters];\n      function expandSignatureParametersWithTupleMembers(restType, restIndex) {\n        const elementTypes = getTypeArguments(restType);\n        const associatedNames = restType.target.labeledElementDeclarations;\n        const restParams = map(elementTypes, (t, i) => {\n          const tupleLabelName = !!associatedNames && getTupleElementLabel(associatedNames[i]);\n          const name = tupleLabelName || getParameterNameAtPosition(sig, restIndex + i, restType);\n          const flags = restType.target.elementFlags[i];\n          const checkFlags = flags & 12 ? 32768 : flags & 2 ? 16384 : 0;\n          const symbol = createSymbol(1, name, checkFlags);\n          symbol.links.type = flags & 4 ? createArrayType(t) : t;\n          return symbol;\n        });\n        return concatenate(sig.parameters.slice(0, restIndex), restParams);\n      }\n    }\n    function getDefaultConstructSignatures(classType) {\n      const baseConstructorType = getBaseConstructorTypeOfClass(classType);\n      const baseSignatures = getSignaturesOfType(baseConstructorType, 1);\n      const declaration = getClassLikeDeclarationOfSymbol(classType.symbol);\n      const isAbstract = !!declaration && hasSyntacticModifier(declaration, 256);\n      if (baseSignatures.length === 0) {\n        return [createSignature(void 0, classType.localTypeParameters, void 0, emptyArray, classType, void 0, 0, isAbstract ? 4 : 0)];\n      }\n      const baseTypeNode = getBaseTypeNodeOfClass(classType);\n      const isJavaScript = isInJSFile(baseTypeNode);\n      const typeArguments = typeArgumentsFromTypeReferenceNode(baseTypeNode);\n      const typeArgCount = length(typeArguments);\n      const result = [];\n      for (const baseSig of baseSignatures) {\n        const minTypeArgumentCount = getMinTypeArgumentCount(baseSig.typeParameters);\n        const typeParamCount = length(baseSig.typeParameters);\n        if (isJavaScript || typeArgCount >= minTypeArgumentCount && typeArgCount <= typeParamCount) {\n          const sig = typeParamCount ? createSignatureInstantiation(baseSig, fillMissingTypeArguments(typeArguments, baseSig.typeParameters, minTypeArgumentCount, isJavaScript)) : cloneSignature(baseSig);\n          sig.typeParameters = classType.localTypeParameters;\n          sig.resolvedReturnType = classType;\n          sig.flags = isAbstract ? sig.flags | 4 : sig.flags & ~4;\n          result.push(sig);\n        }\n      }\n      return result;\n    }\n    function findMatchingSignature(signatureList, signature, partialMatch, ignoreThisTypes, ignoreReturnTypes) {\n      for (const s of signatureList) {\n        if (compareSignaturesIdentical(s, signature, partialMatch, ignoreThisTypes, ignoreReturnTypes, partialMatch ? compareTypesSubtypeOf : compareTypesIdentical)) {\n          return s;\n        }\n      }\n    }\n    function findMatchingSignatures(signatureLists, signature, listIndex) {\n      if (signature.typeParameters) {\n        if (listIndex > 0) {\n          return void 0;\n        }\n        for (let i = 1; i < signatureLists.length; i++) {\n          if (!findMatchingSignature(signatureLists[i], signature, false, false, false)) {\n            return void 0;\n          }\n        }\n        return [signature];\n      }\n      let result;\n      for (let i = 0; i < signatureLists.length; i++) {\n        const match = i === listIndex ? signature : findMatchingSignature(signatureLists[i], signature, true, false, true);\n        if (!match) {\n          return void 0;\n        }\n        result = appendIfUnique(result, match);\n      }\n      return result;\n    }\n    function getUnionSignatures(signatureLists) {\n      let result;\n      let indexWithLengthOverOne;\n      for (let i = 0; i < signatureLists.length; i++) {\n        if (signatureLists[i].length === 0)\n          return emptyArray;\n        if (signatureLists[i].length > 1) {\n          indexWithLengthOverOne = indexWithLengthOverOne === void 0 ? i : -1;\n        }\n        for (const signature of signatureLists[i]) {\n          if (!result || !findMatchingSignature(result, signature, false, false, true)) {\n            const unionSignatures = findMatchingSignatures(signatureLists, signature, i);\n            if (unionSignatures) {\n              let s = signature;\n              if (unionSignatures.length > 1) {\n                let thisParameter = signature.thisParameter;\n                const firstThisParameterOfUnionSignatures = forEach(unionSignatures, (sig) => sig.thisParameter);\n                if (firstThisParameterOfUnionSignatures) {\n                  const thisType = getIntersectionType(mapDefined(unionSignatures, (sig) => sig.thisParameter && getTypeOfSymbol(sig.thisParameter)));\n                  thisParameter = createSymbolWithType(firstThisParameterOfUnionSignatures, thisType);\n                }\n                s = createUnionSignature(signature, unionSignatures);\n                s.thisParameter = thisParameter;\n              }\n              (result || (result = [])).push(s);\n            }\n          }\n        }\n      }\n      if (!length(result) && indexWithLengthOverOne !== -1) {\n        const masterList = signatureLists[indexWithLengthOverOne !== void 0 ? indexWithLengthOverOne : 0];\n        let results = masterList.slice();\n        for (const signatures of signatureLists) {\n          if (signatures !== masterList) {\n            const signature = signatures[0];\n            Debug.assert(!!signature, \"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass\");\n            results = !!signature.typeParameters && some(results, (s) => !!s.typeParameters && !compareTypeParametersIdentical(signature.typeParameters, s.typeParameters)) ? void 0 : map(results, (sig) => combineSignaturesOfUnionMembers(sig, signature));\n            if (!results) {\n              break;\n            }\n          }\n        }\n        result = results;\n      }\n      return result || emptyArray;\n    }\n    function compareTypeParametersIdentical(sourceParams, targetParams) {\n      if (length(sourceParams) !== length(targetParams)) {\n        return false;\n      }\n      if (!sourceParams || !targetParams) {\n        return true;\n      }\n      const mapper = createTypeMapper(targetParams, sourceParams);\n      for (let i = 0; i < sourceParams.length; i++) {\n        const source = sourceParams[i];\n        const target = targetParams[i];\n        if (source === target)\n          continue;\n        if (!isTypeIdenticalTo(getConstraintFromTypeParameter(source) || unknownType, instantiateType(getConstraintFromTypeParameter(target) || unknownType, mapper)))\n          return false;\n      }\n      return true;\n    }\n    function combineUnionThisParam(left, right, mapper) {\n      if (!left || !right) {\n        return left || right;\n      }\n      const thisType = getIntersectionType([getTypeOfSymbol(left), instantiateType(getTypeOfSymbol(right), mapper)]);\n      return createSymbolWithType(left, thisType);\n    }\n    function combineUnionParameters(left, right, mapper) {\n      const leftCount = getParameterCount(left);\n      const rightCount = getParameterCount(right);\n      const longest = leftCount >= rightCount ? left : right;\n      const shorter = longest === left ? right : left;\n      const longestCount = longest === left ? leftCount : rightCount;\n      const eitherHasEffectiveRest = hasEffectiveRestParameter(left) || hasEffectiveRestParameter(right);\n      const needsExtraRestElement = eitherHasEffectiveRest && !hasEffectiveRestParameter(longest);\n      const params = new Array(longestCount + (needsExtraRestElement ? 1 : 0));\n      for (let i = 0; i < longestCount; i++) {\n        let longestParamType = tryGetTypeAtPosition(longest, i);\n        if (longest === right) {\n          longestParamType = instantiateType(longestParamType, mapper);\n        }\n        let shorterParamType = tryGetTypeAtPosition(shorter, i) || unknownType;\n        if (shorter === right) {\n          shorterParamType = instantiateType(shorterParamType, mapper);\n        }\n        const unionParamType = getIntersectionType([longestParamType, shorterParamType]);\n        const isRestParam = eitherHasEffectiveRest && !needsExtraRestElement && i === longestCount - 1;\n        const isOptional = i >= getMinArgumentCount(longest) && i >= getMinArgumentCount(shorter);\n        const leftName = i >= leftCount ? void 0 : getParameterNameAtPosition(left, i);\n        const rightName = i >= rightCount ? void 0 : getParameterNameAtPosition(right, i);\n        const paramName = leftName === rightName ? leftName : !leftName ? rightName : !rightName ? leftName : void 0;\n        const paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || `arg${i}`);\n        paramSymbol.links.type = isRestParam ? createArrayType(unionParamType) : unionParamType;\n        params[i] = paramSymbol;\n      }\n      if (needsExtraRestElement) {\n        const restParamSymbol = createSymbol(1, \"args\");\n        restParamSymbol.links.type = createArrayType(getTypeAtPosition(shorter, longestCount));\n        if (shorter === right) {\n          restParamSymbol.links.type = instantiateType(restParamSymbol.links.type, mapper);\n        }\n        params[longestCount] = restParamSymbol;\n      }\n      return params;\n    }\n    function combineSignaturesOfUnionMembers(left, right) {\n      const typeParams = left.typeParameters || right.typeParameters;\n      let paramMapper;\n      if (left.typeParameters && right.typeParameters) {\n        paramMapper = createTypeMapper(right.typeParameters, left.typeParameters);\n      }\n      const declaration = left.declaration;\n      const params = combineUnionParameters(left, right, paramMapper);\n      const thisParam = combineUnionThisParam(left.thisParameter, right.thisParameter, paramMapper);\n      const minArgCount = Math.max(left.minArgumentCount, right.minArgumentCount);\n      const result = createSignature(declaration, typeParams, thisParam, params, void 0, void 0, minArgCount, (left.flags | right.flags) & 39);\n      result.compositeKind = 1048576;\n      result.compositeSignatures = concatenate(left.compositeKind !== 2097152 && left.compositeSignatures || [left], [right]);\n      if (paramMapper) {\n        result.mapper = left.compositeKind !== 2097152 && left.mapper && left.compositeSignatures ? combineTypeMappers(left.mapper, paramMapper) : paramMapper;\n      }\n      return result;\n    }\n    function getUnionIndexInfos(types) {\n      const sourceInfos = getIndexInfosOfType(types[0]);\n      if (sourceInfos) {\n        const result = [];\n        for (const info of sourceInfos) {\n          const indexType = info.keyType;\n          if (every(types, (t) => !!getIndexInfoOfType(t, indexType))) {\n            result.push(createIndexInfo(indexType, getUnionType(map(types, (t) => getIndexTypeOfType(t, indexType))), some(types, (t) => getIndexInfoOfType(t, indexType).isReadonly)));\n          }\n        }\n        return result;\n      }\n      return emptyArray;\n    }\n    function resolveUnionTypeMembers(type) {\n      const callSignatures = getUnionSignatures(map(type.types, (t) => t === globalFunctionType ? [unknownSignature] : getSignaturesOfType(t, 0)));\n      const constructSignatures = getUnionSignatures(map(type.types, (t) => getSignaturesOfType(t, 1)));\n      const indexInfos = getUnionIndexInfos(type.types);\n      setStructuredTypeMembers(type, emptySymbols, callSignatures, constructSignatures, indexInfos);\n    }\n    function intersectTypes(type1, type2) {\n      return !type1 ? type2 : !type2 ? type1 : getIntersectionType([type1, type2]);\n    }\n    function findMixins(types) {\n      const constructorTypeCount = countWhere(types, (t) => getSignaturesOfType(t, 1).length > 0);\n      const mixinFlags = map(types, isMixinConstructorType);\n      if (constructorTypeCount > 0 && constructorTypeCount === countWhere(mixinFlags, (b) => b)) {\n        const firstMixinIndex = mixinFlags.indexOf(true);\n        mixinFlags[firstMixinIndex] = false;\n      }\n      return mixinFlags;\n    }\n    function includeMixinType(type, types, mixinFlags, index) {\n      const mixedTypes = [];\n      for (let i = 0; i < types.length; i++) {\n        if (i === index) {\n          mixedTypes.push(type);\n        } else if (mixinFlags[i]) {\n          mixedTypes.push(getReturnTypeOfSignature(getSignaturesOfType(types[i], 1)[0]));\n        }\n      }\n      return getIntersectionType(mixedTypes);\n    }\n    function resolveIntersectionTypeMembers(type) {\n      let callSignatures;\n      let constructSignatures;\n      let indexInfos;\n      const types = type.types;\n      const mixinFlags = findMixins(types);\n      const mixinCount = countWhere(mixinFlags, (b) => b);\n      for (let i = 0; i < types.length; i++) {\n        const t = type.types[i];\n        if (!mixinFlags[i]) {\n          let signatures = getSignaturesOfType(t, 1);\n          if (signatures.length && mixinCount > 0) {\n            signatures = map(signatures, (s) => {\n              const clone2 = cloneSignature(s);\n              clone2.resolvedReturnType = includeMixinType(getReturnTypeOfSignature(s), types, mixinFlags, i);\n              return clone2;\n            });\n          }\n          constructSignatures = appendSignatures(constructSignatures, signatures);\n        }\n        callSignatures = appendSignatures(callSignatures, getSignaturesOfType(t, 0));\n        indexInfos = reduceLeft(getIndexInfosOfType(t), (infos, newInfo) => appendIndexInfo(infos, newInfo, false), indexInfos);\n      }\n      setStructuredTypeMembers(type, emptySymbols, callSignatures || emptyArray, constructSignatures || emptyArray, indexInfos || emptyArray);\n    }\n    function appendSignatures(signatures, newSignatures) {\n      for (const sig of newSignatures) {\n        if (!signatures || every(signatures, (s) => !compareSignaturesIdentical(s, sig, false, false, false, compareTypesIdentical))) {\n          signatures = append(signatures, sig);\n        }\n      }\n      return signatures;\n    }\n    function appendIndexInfo(indexInfos, newInfo, union) {\n      if (indexInfos) {\n        for (let i = 0; i < indexInfos.length; i++) {\n          const info = indexInfos[i];\n          if (info.keyType === newInfo.keyType) {\n            indexInfos[i] = createIndexInfo(info.keyType, union ? getUnionType([info.type, newInfo.type]) : getIntersectionType([info.type, newInfo.type]), union ? info.isReadonly || newInfo.isReadonly : info.isReadonly && newInfo.isReadonly);\n            return indexInfos;\n          }\n        }\n      }\n      return append(indexInfos, newInfo);\n    }\n    function resolveAnonymousTypeMembers(type) {\n      if (type.target) {\n        setStructuredTypeMembers(type, emptySymbols, emptyArray, emptyArray, emptyArray);\n        const members2 = createInstantiatedSymbolTable(getPropertiesOfObjectType(type.target), type.mapper, false);\n        const callSignatures = instantiateSignatures(getSignaturesOfType(type.target, 0), type.mapper);\n        const constructSignatures = instantiateSignatures(getSignaturesOfType(type.target, 1), type.mapper);\n        const indexInfos2 = instantiateIndexInfos(getIndexInfosOfType(type.target), type.mapper);\n        setStructuredTypeMembers(type, members2, callSignatures, constructSignatures, indexInfos2);\n        return;\n      }\n      const symbol = getMergedSymbol(type.symbol);\n      if (symbol.flags & 2048) {\n        setStructuredTypeMembers(type, emptySymbols, emptyArray, emptyArray, emptyArray);\n        const members2 = getMembersOfSymbol(symbol);\n        const callSignatures = getSignaturesOfSymbol(members2.get(\"__call\"));\n        const constructSignatures = getSignaturesOfSymbol(members2.get(\"__new\"));\n        const indexInfos2 = getIndexInfosOfSymbol(symbol);\n        setStructuredTypeMembers(type, members2, callSignatures, constructSignatures, indexInfos2);\n        return;\n      }\n      let members = emptySymbols;\n      let indexInfos;\n      if (symbol.exports) {\n        members = getExportsOfSymbol(symbol);\n        if (symbol === globalThisSymbol) {\n          const varsOnly = /* @__PURE__ */ new Map();\n          members.forEach((p) => {\n            var _a2;\n            if (!(p.flags & 418) && !(p.flags & 512 && ((_a2 = p.declarations) == null ? void 0 : _a2.length) && every(p.declarations, isAmbientModule))) {\n              varsOnly.set(p.escapedName, p);\n            }\n          });\n          members = varsOnly;\n        }\n      }\n      let baseConstructorIndexInfo;\n      setStructuredTypeMembers(type, members, emptyArray, emptyArray, emptyArray);\n      if (symbol.flags & 32) {\n        const classType = getDeclaredTypeOfClassOrInterface(symbol);\n        const baseConstructorType = getBaseConstructorTypeOfClass(classType);\n        if (baseConstructorType.flags & (524288 | 2097152 | 8650752)) {\n          members = createSymbolTable(getNamedOrIndexSignatureMembers(members));\n          addInheritedMembers(members, getPropertiesOfType(baseConstructorType));\n        } else if (baseConstructorType === anyType) {\n          baseConstructorIndexInfo = createIndexInfo(stringType, anyType, false);\n        }\n      }\n      const indexSymbol = getIndexSymbolFromSymbolTable(members);\n      if (indexSymbol) {\n        indexInfos = getIndexInfosOfIndexSymbol(indexSymbol);\n      } else {\n        if (baseConstructorIndexInfo) {\n          indexInfos = append(indexInfos, baseConstructorIndexInfo);\n        }\n        if (symbol.flags & 384 && (getDeclaredTypeOfSymbol(symbol).flags & 32 || some(type.properties, (prop) => !!(getTypeOfSymbol(prop).flags & 296)))) {\n          indexInfos = append(indexInfos, enumNumberIndexInfo);\n        }\n      }\n      setStructuredTypeMembers(type, members, emptyArray, emptyArray, indexInfos || emptyArray);\n      if (symbol.flags & (16 | 8192)) {\n        type.callSignatures = getSignaturesOfSymbol(symbol);\n      }\n      if (symbol.flags & 32) {\n        const classType = getDeclaredTypeOfClassOrInterface(symbol);\n        let constructSignatures = symbol.members ? getSignaturesOfSymbol(symbol.members.get(\"__constructor\")) : emptyArray;\n        if (symbol.flags & 16) {\n          constructSignatures = addRange(constructSignatures.slice(), mapDefined(type.callSignatures, (sig) => isJSConstructor(sig.declaration) ? createSignature(sig.declaration, sig.typeParameters, sig.thisParameter, sig.parameters, classType, void 0, sig.minArgumentCount, sig.flags & 39) : void 0));\n        }\n        if (!constructSignatures.length) {\n          constructSignatures = getDefaultConstructSignatures(classType);\n        }\n        type.constructSignatures = constructSignatures;\n      }\n    }\n    function replaceIndexedAccess(instantiable, type, replacement) {\n      return instantiateType(instantiable, createTypeMapper([type.indexType, type.objectType], [getNumberLiteralType(0), createTupleType([replacement])]));\n    }\n    function resolveReverseMappedTypeMembers(type) {\n      const indexInfo = getIndexInfoOfType(type.source, stringType);\n      const modifiers = getMappedTypeModifiers(type.mappedType);\n      const readonlyMask = modifiers & 1 ? false : true;\n      const optionalMask = modifiers & 4 ? 0 : 16777216;\n      const indexInfos = indexInfo ? [createIndexInfo(stringType, inferReverseMappedType(indexInfo.type, type.mappedType, type.constraintType), readonlyMask && indexInfo.isReadonly)] : emptyArray;\n      const members = createSymbolTable();\n      for (const prop of getPropertiesOfType(type.source)) {\n        const checkFlags = 8192 | (readonlyMask && isReadonlySymbol(prop) ? 8 : 0);\n        const inferredProp = createSymbol(4 | prop.flags & optionalMask, prop.escapedName, checkFlags);\n        inferredProp.declarations = prop.declarations;\n        inferredProp.links.nameType = getSymbolLinks(prop).nameType;\n        inferredProp.links.propertyType = getTypeOfSymbol(prop);\n        if (type.constraintType.type.flags & 8388608 && type.constraintType.type.objectType.flags & 262144 && type.constraintType.type.indexType.flags & 262144) {\n          const newTypeParam = type.constraintType.type.objectType;\n          const newMappedType = replaceIndexedAccess(type.mappedType, type.constraintType.type, newTypeParam);\n          inferredProp.links.mappedType = newMappedType;\n          inferredProp.links.constraintType = getIndexType(newTypeParam);\n        } else {\n          inferredProp.links.mappedType = type.mappedType;\n          inferredProp.links.constraintType = type.constraintType;\n        }\n        members.set(prop.escapedName, inferredProp);\n      }\n      setStructuredTypeMembers(type, members, emptyArray, emptyArray, indexInfos);\n    }\n    function getLowerBoundOfKeyType(type) {\n      if (type.flags & 4194304) {\n        const t = getApparentType(type.type);\n        return isGenericTupleType(t) ? getKnownKeysOfTupleType(t) : getIndexType(t);\n      }\n      if (type.flags & 16777216) {\n        if (type.root.isDistributive) {\n          const checkType = type.checkType;\n          const constraint = getLowerBoundOfKeyType(checkType);\n          if (constraint !== checkType) {\n            return getConditionalTypeInstantiation(type, prependTypeMapping(type.root.checkType, constraint, type.mapper));\n          }\n        }\n        return type;\n      }\n      if (type.flags & 1048576) {\n        return mapType(type, getLowerBoundOfKeyType, true);\n      }\n      if (type.flags & 2097152) {\n        const types = type.types;\n        if (types.length === 2 && !!(types[0].flags & (4 | 8 | 64)) && types[1] === emptyTypeLiteralType) {\n          return type;\n        }\n        return getIntersectionType(sameMap(type.types, getLowerBoundOfKeyType));\n      }\n      return type;\n    }\n    function getIsLateCheckFlag(s) {\n      return getCheckFlags(s) & 4096;\n    }\n    function forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(type, include, stringsOnly, cb) {\n      for (const prop of getPropertiesOfType(type)) {\n        cb(getLiteralTypeFromProperty(prop, include));\n      }\n      if (type.flags & 1) {\n        cb(stringType);\n      } else {\n        for (const info of getIndexInfosOfType(type)) {\n          if (!stringsOnly || info.keyType.flags & (4 | 134217728)) {\n            cb(info.keyType);\n          }\n        }\n      }\n    }\n    function resolveMappedTypeMembers(type) {\n      const members = createSymbolTable();\n      let indexInfos;\n      setStructuredTypeMembers(type, emptySymbols, emptyArray, emptyArray, emptyArray);\n      const typeParameter = getTypeParameterFromMappedType(type);\n      const constraintType = getConstraintTypeFromMappedType(type);\n      const nameType = getNameTypeFromMappedType(type.target || type);\n      const isFilteringMappedType = nameType && isTypeAssignableTo(nameType, typeParameter);\n      const templateType = getTemplateTypeFromMappedType(type.target || type);\n      const modifiersType = getApparentType(getModifiersTypeFromMappedType(type));\n      const templateModifiers = getMappedTypeModifiers(type);\n      const include = keyofStringsOnly ? 128 : 8576;\n      if (isMappedTypeWithKeyofConstraintDeclaration(type)) {\n        forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(modifiersType, include, keyofStringsOnly, addMemberForKeyType);\n      } else {\n        forEachType(getLowerBoundOfKeyType(constraintType), addMemberForKeyType);\n      }\n      setStructuredTypeMembers(type, members, emptyArray, emptyArray, indexInfos || emptyArray);\n      function addMemberForKeyType(keyType) {\n        const propNameType = nameType ? instantiateType(nameType, appendTypeMapping(type.mapper, typeParameter, keyType)) : keyType;\n        forEachType(propNameType, (t) => addMemberForKeyTypeWorker(keyType, t));\n      }\n      function addMemberForKeyTypeWorker(keyType, propNameType) {\n        if (isTypeUsableAsPropertyName(propNameType)) {\n          const propName = getPropertyNameFromType(propNameType);\n          const existingProp = members.get(propName);\n          if (existingProp) {\n            existingProp.links.nameType = getUnionType([existingProp.links.nameType, propNameType]);\n            existingProp.links.keyType = getUnionType([existingProp.links.keyType, keyType]);\n          } else {\n            const modifiersProp = isTypeUsableAsPropertyName(keyType) ? getPropertyOfType(modifiersType, getPropertyNameFromType(keyType)) : void 0;\n            const isOptional = !!(templateModifiers & 4 || !(templateModifiers & 8) && modifiersProp && modifiersProp.flags & 16777216);\n            const isReadonly = !!(templateModifiers & 1 || !(templateModifiers & 2) && modifiersProp && isReadonlySymbol(modifiersProp));\n            const stripOptional = strictNullChecks && !isOptional && modifiersProp && modifiersProp.flags & 16777216;\n            const lateFlag = modifiersProp ? getIsLateCheckFlag(modifiersProp) : 0;\n            const prop = createSymbol(4 | (isOptional ? 16777216 : 0), propName, lateFlag | 262144 | (isReadonly ? 8 : 0) | (stripOptional ? 524288 : 0));\n            prop.links.mappedType = type;\n            prop.links.nameType = propNameType;\n            prop.links.keyType = keyType;\n            if (modifiersProp) {\n              prop.links.syntheticOrigin = modifiersProp;\n              prop.declarations = !nameType || isFilteringMappedType ? modifiersProp.declarations : void 0;\n            }\n            members.set(propName, prop);\n          }\n        } else if (isValidIndexKeyType(propNameType) || propNameType.flags & (1 | 32)) {\n          const indexKeyType = propNameType.flags & (1 | 4) ? stringType : propNameType.flags & (8 | 32) ? numberType : propNameType;\n          const propType = instantiateType(templateType, appendTypeMapping(type.mapper, typeParameter, keyType));\n          const indexInfo = createIndexInfo(indexKeyType, propType, !!(templateModifiers & 1));\n          indexInfos = appendIndexInfo(indexInfos, indexInfo, true);\n        }\n      }\n    }\n    function getTypeOfMappedSymbol(symbol) {\n      if (!symbol.links.type) {\n        const mappedType = symbol.links.mappedType;\n        if (!pushTypeResolution(symbol, 0)) {\n          mappedType.containsError = true;\n          return errorType;\n        }\n        const templateType = getTemplateTypeFromMappedType(mappedType.target || mappedType);\n        const mapper = appendTypeMapping(mappedType.mapper, getTypeParameterFromMappedType(mappedType), symbol.links.keyType);\n        const propType = instantiateType(templateType, mapper);\n        let type = strictNullChecks && symbol.flags & 16777216 && !maybeTypeOfKind(propType, 32768 | 16384) ? getOptionalType(propType, true) : symbol.links.checkFlags & 524288 ? removeMissingOrUndefinedType(propType) : propType;\n        if (!popTypeResolution()) {\n          error(currentNode, Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1, symbolToString(symbol), typeToString(mappedType));\n          type = errorType;\n        }\n        symbol.links.type = type;\n      }\n      return symbol.links.type;\n    }\n    function getTypeParameterFromMappedType(type) {\n      return type.typeParameter || (type.typeParameter = getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(type.declaration.typeParameter)));\n    }\n    function getConstraintTypeFromMappedType(type) {\n      return type.constraintType || (type.constraintType = getConstraintOfTypeParameter(getTypeParameterFromMappedType(type)) || errorType);\n    }\n    function getNameTypeFromMappedType(type) {\n      return type.declaration.nameType ? type.nameType || (type.nameType = instantiateType(getTypeFromTypeNode(type.declaration.nameType), type.mapper)) : void 0;\n    }\n    function getTemplateTypeFromMappedType(type) {\n      return type.templateType || (type.templateType = type.declaration.type ? instantiateType(addOptionality(getTypeFromTypeNode(type.declaration.type), true, !!(getMappedTypeModifiers(type) & 4)), type.mapper) : errorType);\n    }\n    function getConstraintDeclarationForMappedType(type) {\n      return getEffectiveConstraintOfTypeParameter(type.declaration.typeParameter);\n    }\n    function isMappedTypeWithKeyofConstraintDeclaration(type) {\n      const constraintDeclaration = getConstraintDeclarationForMappedType(type);\n      return constraintDeclaration.kind === 195 && constraintDeclaration.operator === 141;\n    }\n    function getModifiersTypeFromMappedType(type) {\n      if (!type.modifiersType) {\n        if (isMappedTypeWithKeyofConstraintDeclaration(type)) {\n          type.modifiersType = instantiateType(getTypeFromTypeNode(getConstraintDeclarationForMappedType(type).type), type.mapper);\n        } else {\n          const declaredType = getTypeFromMappedTypeNode(type.declaration);\n          const constraint = getConstraintTypeFromMappedType(declaredType);\n          const extendedConstraint = constraint && constraint.flags & 262144 ? getConstraintOfTypeParameter(constraint) : constraint;\n          type.modifiersType = extendedConstraint && extendedConstraint.flags & 4194304 ? instantiateType(extendedConstraint.type, type.mapper) : unknownType;\n        }\n      }\n      return type.modifiersType;\n    }\n    function getMappedTypeModifiers(type) {\n      const declaration = type.declaration;\n      return (declaration.readonlyToken ? declaration.readonlyToken.kind === 40 ? 2 : 1 : 0) | (declaration.questionToken ? declaration.questionToken.kind === 40 ? 8 : 4 : 0);\n    }\n    function getMappedTypeOptionality(type) {\n      const modifiers = getMappedTypeModifiers(type);\n      return modifiers & 8 ? -1 : modifiers & 4 ? 1 : 0;\n    }\n    function getCombinedMappedTypeOptionality(type) {\n      const optionality = getMappedTypeOptionality(type);\n      const modifiersType = getModifiersTypeFromMappedType(type);\n      return optionality || (isGenericMappedType(modifiersType) ? getMappedTypeOptionality(modifiersType) : 0);\n    }\n    function isPartialMappedType(type) {\n      return !!(getObjectFlags(type) & 32 && getMappedTypeModifiers(type) & 4);\n    }\n    function isGenericMappedType(type) {\n      if (getObjectFlags(type) & 32) {\n        const constraint = getConstraintTypeFromMappedType(type);\n        if (isGenericIndexType(constraint)) {\n          return true;\n        }\n        const nameType = getNameTypeFromMappedType(type);\n        if (nameType && isGenericIndexType(instantiateType(nameType, makeUnaryTypeMapper(getTypeParameterFromMappedType(type), constraint)))) {\n          return true;\n        }\n      }\n      return false;\n    }\n    function resolveStructuredTypeMembers(type) {\n      if (!type.members) {\n        if (type.flags & 524288) {\n          if (type.objectFlags & 4) {\n            resolveTypeReferenceMembers(type);\n          } else if (type.objectFlags & 3) {\n            resolveClassOrInterfaceMembers(type);\n          } else if (type.objectFlags & 1024) {\n            resolveReverseMappedTypeMembers(type);\n          } else if (type.objectFlags & 16) {\n            resolveAnonymousTypeMembers(type);\n          } else if (type.objectFlags & 32) {\n            resolveMappedTypeMembers(type);\n          } else {\n            Debug.fail(\"Unhandled object type \" + Debug.formatObjectFlags(type.objectFlags));\n          }\n        } else if (type.flags & 1048576) {\n          resolveUnionTypeMembers(type);\n        } else if (type.flags & 2097152) {\n          resolveIntersectionTypeMembers(type);\n        } else {\n          Debug.fail(\"Unhandled type \" + Debug.formatTypeFlags(type.flags));\n        }\n      }\n      return type;\n    }\n    function getPropertiesOfObjectType(type) {\n      if (type.flags & 524288) {\n        return resolveStructuredTypeMembers(type).properties;\n      }\n      return emptyArray;\n    }\n    function getPropertyOfObjectType(type, name) {\n      if (type.flags & 524288) {\n        const resolved = resolveStructuredTypeMembers(type);\n        const symbol = resolved.members.get(name);\n        if (symbol && symbolIsValue(symbol)) {\n          return symbol;\n        }\n      }\n    }\n    function getPropertiesOfUnionOrIntersectionType(type) {\n      if (!type.resolvedProperties) {\n        const members = createSymbolTable();\n        for (const current of type.types) {\n          for (const prop of getPropertiesOfType(current)) {\n            if (!members.has(prop.escapedName)) {\n              const combinedProp = getPropertyOfUnionOrIntersectionType(type, prop.escapedName);\n              if (combinedProp) {\n                members.set(prop.escapedName, combinedProp);\n              }\n            }\n          }\n          if (type.flags & 1048576 && getIndexInfosOfType(current).length === 0) {\n            break;\n          }\n        }\n        type.resolvedProperties = getNamedMembers(members);\n      }\n      return type.resolvedProperties;\n    }\n    function getPropertiesOfType(type) {\n      type = getReducedApparentType(type);\n      return type.flags & 3145728 ? getPropertiesOfUnionOrIntersectionType(type) : getPropertiesOfObjectType(type);\n    }\n    function forEachPropertyOfType(type, action) {\n      type = getReducedApparentType(type);\n      if (type.flags & 3670016) {\n        resolveStructuredTypeMembers(type).members.forEach((symbol, escapedName) => {\n          if (isNamedMember(symbol, escapedName)) {\n            action(symbol, escapedName);\n          }\n        });\n      }\n    }\n    function isTypeInvalidDueToUnionDiscriminant(contextualType, obj) {\n      const list = obj.properties;\n      return list.some((property) => {\n        const nameType = property.name && getLiteralTypeFromPropertyName(property.name);\n        const name = nameType && isTypeUsableAsPropertyName(nameType) ? getPropertyNameFromType(nameType) : void 0;\n        const expected = name === void 0 ? void 0 : getTypeOfPropertyOfType(contextualType, name);\n        return !!expected && isLiteralType(expected) && !isTypeAssignableTo(getTypeOfNode(property), expected);\n      });\n    }\n    function getAllPossiblePropertiesOfTypes(types) {\n      const unionType = getUnionType(types);\n      if (!(unionType.flags & 1048576)) {\n        return getAugmentedPropertiesOfType(unionType);\n      }\n      const props = createSymbolTable();\n      for (const memberType of types) {\n        for (const { escapedName } of getAugmentedPropertiesOfType(memberType)) {\n          if (!props.has(escapedName)) {\n            const prop = createUnionOrIntersectionProperty(unionType, escapedName);\n            if (prop)\n              props.set(escapedName, prop);\n          }\n        }\n      }\n      return arrayFrom(props.values());\n    }\n    function getConstraintOfType(type) {\n      return type.flags & 262144 ? getConstraintOfTypeParameter(type) : type.flags & 8388608 ? getConstraintOfIndexedAccess(type) : type.flags & 16777216 ? getConstraintOfConditionalType(type) : getBaseConstraintOfType(type);\n    }\n    function getConstraintOfTypeParameter(typeParameter) {\n      return hasNonCircularBaseConstraint(typeParameter) ? getConstraintFromTypeParameter(typeParameter) : void 0;\n    }\n    function isConstTypeVariable(type) {\n      var _a2;\n      return !!(type.flags & 262144 && some((_a2 = type.symbol) == null ? void 0 : _a2.declarations, (d) => hasSyntacticModifier(d, 2048)) || isGenericTupleType(type) && findIndex(getTypeArguments(type), (t, i) => !!(type.target.elementFlags[i] & 8) && isConstTypeVariable(t)) >= 0 || type.flags & 8388608 && isConstTypeVariable(type.objectType));\n    }\n    function getConstraintOfIndexedAccess(type) {\n      return hasNonCircularBaseConstraint(type) ? getConstraintFromIndexedAccess(type) : void 0;\n    }\n    function getSimplifiedTypeOrConstraint(type) {\n      const simplified = getSimplifiedType(type, false);\n      return simplified !== type ? simplified : getConstraintOfType(type);\n    }\n    function getConstraintFromIndexedAccess(type) {\n      if (isMappedTypeGenericIndexedAccess(type)) {\n        return substituteIndexedMappedType(type.objectType, type.indexType);\n      }\n      const indexConstraint = getSimplifiedTypeOrConstraint(type.indexType);\n      if (indexConstraint && indexConstraint !== type.indexType) {\n        const indexedAccess = getIndexedAccessTypeOrUndefined(type.objectType, indexConstraint, type.accessFlags);\n        if (indexedAccess) {\n          return indexedAccess;\n        }\n      }\n      const objectConstraint = getSimplifiedTypeOrConstraint(type.objectType);\n      if (objectConstraint && objectConstraint !== type.objectType) {\n        return getIndexedAccessTypeOrUndefined(objectConstraint, type.indexType, type.accessFlags);\n      }\n      return void 0;\n    }\n    function getDefaultConstraintOfConditionalType(type) {\n      if (!type.resolvedDefaultConstraint) {\n        const trueConstraint = getInferredTrueTypeFromConditionalType(type);\n        const falseConstraint = getFalseTypeFromConditionalType(type);\n        type.resolvedDefaultConstraint = isTypeAny(trueConstraint) ? falseConstraint : isTypeAny(falseConstraint) ? trueConstraint : getUnionType([trueConstraint, falseConstraint]);\n      }\n      return type.resolvedDefaultConstraint;\n    }\n    function getConstraintOfDistributiveConditionalType(type) {\n      if (type.root.isDistributive && type.restrictiveInstantiation !== type) {\n        const simplified = getSimplifiedType(type.checkType, false);\n        const constraint = simplified === type.checkType ? getConstraintOfType(simplified) : simplified;\n        if (constraint && constraint !== type.checkType) {\n          const instantiated = getConditionalTypeInstantiation(type, prependTypeMapping(type.root.checkType, constraint, type.mapper));\n          if (!(instantiated.flags & 131072)) {\n            return instantiated;\n          }\n        }\n      }\n      return void 0;\n    }\n    function getConstraintFromConditionalType(type) {\n      return getConstraintOfDistributiveConditionalType(type) || getDefaultConstraintOfConditionalType(type);\n    }\n    function getConstraintOfConditionalType(type) {\n      return hasNonCircularBaseConstraint(type) ? getConstraintFromConditionalType(type) : void 0;\n    }\n    function getEffectiveConstraintOfIntersection(types, targetIsUnion) {\n      let constraints;\n      let hasDisjointDomainType = false;\n      for (const t of types) {\n        if (t.flags & 465829888) {\n          let constraint = getConstraintOfType(t);\n          while (constraint && constraint.flags & (262144 | 4194304 | 16777216)) {\n            constraint = getConstraintOfType(constraint);\n          }\n          if (constraint) {\n            constraints = append(constraints, constraint);\n            if (targetIsUnion) {\n              constraints = append(constraints, t);\n            }\n          }\n        } else if (t.flags & 469892092 || isEmptyAnonymousObjectType(t)) {\n          hasDisjointDomainType = true;\n        }\n      }\n      if (constraints && (targetIsUnion || hasDisjointDomainType)) {\n        if (hasDisjointDomainType) {\n          for (const t of types) {\n            if (t.flags & 469892092 || isEmptyAnonymousObjectType(t)) {\n              constraints = append(constraints, t);\n            }\n          }\n        }\n        return getNormalizedType(getIntersectionType(constraints), false);\n      }\n      return void 0;\n    }\n    function getBaseConstraintOfType(type) {\n      if (type.flags & (58982400 | 3145728 | 134217728 | 268435456)) {\n        const constraint = getResolvedBaseConstraint(type);\n        return constraint !== noConstraintType && constraint !== circularConstraintType ? constraint : void 0;\n      }\n      return type.flags & 4194304 ? keyofConstraintType : void 0;\n    }\n    function getBaseConstraintOrType(type) {\n      return getBaseConstraintOfType(type) || type;\n    }\n    function hasNonCircularBaseConstraint(type) {\n      return getResolvedBaseConstraint(type) !== circularConstraintType;\n    }\n    function getResolvedBaseConstraint(type) {\n      if (type.resolvedBaseConstraint) {\n        return type.resolvedBaseConstraint;\n      }\n      const stack = [];\n      return type.resolvedBaseConstraint = getTypeWithThisArgument(getImmediateBaseConstraint(type), type);\n      function getImmediateBaseConstraint(t) {\n        if (!t.immediateBaseConstraint) {\n          if (!pushTypeResolution(t, 4)) {\n            return circularConstraintType;\n          }\n          let result;\n          const identity2 = getRecursionIdentity(t);\n          if (stack.length < 10 || stack.length < 50 && !contains(stack, identity2)) {\n            stack.push(identity2);\n            result = computeBaseConstraint(getSimplifiedType(t, false));\n            stack.pop();\n          }\n          if (!popTypeResolution()) {\n            if (t.flags & 262144) {\n              const errorNode = getConstraintDeclaration(t);\n              if (errorNode) {\n                const diagnostic = error(errorNode, Diagnostics.Type_parameter_0_has_a_circular_constraint, typeToString(t));\n                if (currentNode && !isNodeDescendantOf(errorNode, currentNode) && !isNodeDescendantOf(currentNode, errorNode)) {\n                  addRelatedInfo(diagnostic, createDiagnosticForNode(currentNode, Diagnostics.Circularity_originates_in_type_at_this_location));\n                }\n              }\n            }\n            result = circularConstraintType;\n          }\n          t.immediateBaseConstraint = result || noConstraintType;\n        }\n        return t.immediateBaseConstraint;\n      }\n      function getBaseConstraint(t) {\n        const c = getImmediateBaseConstraint(t);\n        return c !== noConstraintType && c !== circularConstraintType ? c : void 0;\n      }\n      function computeBaseConstraint(t) {\n        if (t.flags & 262144) {\n          const constraint = getConstraintFromTypeParameter(t);\n          return t.isThisType || !constraint ? constraint : getBaseConstraint(constraint);\n        }\n        if (t.flags & 3145728) {\n          const types = t.types;\n          const baseTypes = [];\n          let different = false;\n          for (const type2 of types) {\n            const baseType = getBaseConstraint(type2);\n            if (baseType) {\n              if (baseType !== type2) {\n                different = true;\n              }\n              baseTypes.push(baseType);\n            } else {\n              different = true;\n            }\n          }\n          if (!different) {\n            return t;\n          }\n          return t.flags & 1048576 && baseTypes.length === types.length ? getUnionType(baseTypes) : t.flags & 2097152 && baseTypes.length ? getIntersectionType(baseTypes) : void 0;\n        }\n        if (t.flags & 4194304) {\n          return keyofConstraintType;\n        }\n        if (t.flags & 134217728) {\n          const types = t.types;\n          const constraints = mapDefined(types, getBaseConstraint);\n          return constraints.length === types.length ? getTemplateLiteralType(t.texts, constraints) : stringType;\n        }\n        if (t.flags & 268435456) {\n          const constraint = getBaseConstraint(t.type);\n          return constraint && constraint !== t.type ? getStringMappingType(t.symbol, constraint) : stringType;\n        }\n        if (t.flags & 8388608) {\n          if (isMappedTypeGenericIndexedAccess(t)) {\n            return getBaseConstraint(substituteIndexedMappedType(t.objectType, t.indexType));\n          }\n          const baseObjectType = getBaseConstraint(t.objectType);\n          const baseIndexType = getBaseConstraint(t.indexType);\n          const baseIndexedAccess = baseObjectType && baseIndexType && getIndexedAccessTypeOrUndefined(baseObjectType, baseIndexType, t.accessFlags);\n          return baseIndexedAccess && getBaseConstraint(baseIndexedAccess);\n        }\n        if (t.flags & 16777216) {\n          const constraint = getConstraintFromConditionalType(t);\n          return constraint && getBaseConstraint(constraint);\n        }\n        if (t.flags & 33554432) {\n          return getBaseConstraint(getSubstitutionIntersection(t));\n        }\n        return t;\n      }\n    }\n    function getApparentTypeOfIntersectionType(type) {\n      return type.resolvedApparentType || (type.resolvedApparentType = getTypeWithThisArgument(type, type, true));\n    }\n    function getResolvedTypeParameterDefault(typeParameter) {\n      if (!typeParameter.default) {\n        if (typeParameter.target) {\n          const targetDefault = getResolvedTypeParameterDefault(typeParameter.target);\n          typeParameter.default = targetDefault ? instantiateType(targetDefault, typeParameter.mapper) : noConstraintType;\n        } else {\n          typeParameter.default = resolvingDefaultType;\n          const defaultDeclaration = typeParameter.symbol && forEach(typeParameter.symbol.declarations, (decl) => isTypeParameterDeclaration(decl) && decl.default);\n          const defaultType = defaultDeclaration ? getTypeFromTypeNode(defaultDeclaration) : noConstraintType;\n          if (typeParameter.default === resolvingDefaultType) {\n            typeParameter.default = defaultType;\n          }\n        }\n      } else if (typeParameter.default === resolvingDefaultType) {\n        typeParameter.default = circularConstraintType;\n      }\n      return typeParameter.default;\n    }\n    function getDefaultFromTypeParameter(typeParameter) {\n      const defaultType = getResolvedTypeParameterDefault(typeParameter);\n      return defaultType !== noConstraintType && defaultType !== circularConstraintType ? defaultType : void 0;\n    }\n    function hasNonCircularTypeParameterDefault(typeParameter) {\n      return getResolvedTypeParameterDefault(typeParameter) !== circularConstraintType;\n    }\n    function hasTypeParameterDefault(typeParameter) {\n      return !!(typeParameter.symbol && forEach(typeParameter.symbol.declarations, (decl) => isTypeParameterDeclaration(decl) && decl.default));\n    }\n    function getApparentTypeOfMappedType(type) {\n      return type.resolvedApparentType || (type.resolvedApparentType = getResolvedApparentTypeOfMappedType(type));\n    }\n    function getResolvedApparentTypeOfMappedType(type) {\n      const typeVariable = getHomomorphicTypeVariable(type);\n      if (typeVariable && !type.declaration.nameType) {\n        const constraint = getConstraintOfTypeParameter(typeVariable);\n        if (constraint && isArrayOrTupleType(constraint)) {\n          return instantiateType(type, prependTypeMapping(typeVariable, constraint, type.mapper));\n        }\n      }\n      return type;\n    }\n    function isMappedTypeGenericIndexedAccess(type) {\n      let objectType;\n      return !!(type.flags & 8388608 && getObjectFlags(objectType = type.objectType) & 32 && !isGenericMappedType(objectType) && isGenericIndexType(type.indexType) && !(getMappedTypeModifiers(objectType) & 8) && !objectType.declaration.nameType);\n    }\n    function getApparentType(type) {\n      const t = !(type.flags & 465829888) ? type : getBaseConstraintOfType(type) || unknownType;\n      return getObjectFlags(t) & 32 ? getApparentTypeOfMappedType(t) : t.flags & 2097152 ? getApparentTypeOfIntersectionType(t) : t.flags & 402653316 ? globalStringType : t.flags & 296 ? globalNumberType : t.flags & 2112 ? getGlobalBigIntType() : t.flags & 528 ? globalBooleanType : t.flags & 12288 ? getGlobalESSymbolType() : t.flags & 67108864 ? emptyObjectType : t.flags & 4194304 ? keyofConstraintType : t.flags & 2 && !strictNullChecks ? emptyObjectType : t;\n    }\n    function getReducedApparentType(type) {\n      return getReducedType(getApparentType(getReducedType(type)));\n    }\n    function createUnionOrIntersectionProperty(containingType, name, skipObjectFunctionPropertyAugment) {\n      var _a2, _b, _c;\n      let singleProp;\n      let propSet;\n      let indexTypes;\n      const isUnion = containingType.flags & 1048576;\n      let optionalFlag;\n      let syntheticFlag = 4;\n      let checkFlags = isUnion ? 0 : 8;\n      let mergedInstantiations = false;\n      for (const current of containingType.types) {\n        const type = getApparentType(current);\n        if (!(isErrorType(type) || type.flags & 131072)) {\n          const prop = getPropertyOfType(type, name, skipObjectFunctionPropertyAugment);\n          const modifiers = prop ? getDeclarationModifierFlagsFromSymbol(prop) : 0;\n          if (prop) {\n            if (prop.flags & 106500) {\n              optionalFlag != null ? optionalFlag : optionalFlag = isUnion ? 0 : 16777216;\n              if (isUnion) {\n                optionalFlag |= prop.flags & 16777216;\n              } else {\n                optionalFlag &= prop.flags;\n              }\n            }\n            if (!singleProp) {\n              singleProp = prop;\n            } else if (prop !== singleProp) {\n              const isInstantiation = (getTargetSymbol(prop) || prop) === (getTargetSymbol(singleProp) || singleProp);\n              if (isInstantiation && compareProperties2(singleProp, prop, (a, b) => a === b ? -1 : 0) === -1) {\n                mergedInstantiations = !!singleProp.parent && !!length(getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(singleProp.parent));\n              } else {\n                if (!propSet) {\n                  propSet = /* @__PURE__ */ new Map();\n                  propSet.set(getSymbolId(singleProp), singleProp);\n                }\n                const id = getSymbolId(prop);\n                if (!propSet.has(id)) {\n                  propSet.set(id, prop);\n                }\n              }\n            }\n            if (isUnion && isReadonlySymbol(prop)) {\n              checkFlags |= 8;\n            } else if (!isUnion && !isReadonlySymbol(prop)) {\n              checkFlags &= ~8;\n            }\n            checkFlags |= (!(modifiers & 24) ? 256 : 0) | (modifiers & 16 ? 512 : 0) | (modifiers & 8 ? 1024 : 0) | (modifiers & 32 ? 2048 : 0);\n            if (!isPrototypeProperty(prop)) {\n              syntheticFlag = 2;\n            }\n          } else if (isUnion) {\n            const indexInfo = !isLateBoundName(name) && getApplicableIndexInfoForName(type, name);\n            if (indexInfo) {\n              checkFlags |= 32 | (indexInfo.isReadonly ? 8 : 0);\n              indexTypes = append(indexTypes, isTupleType(type) ? getRestTypeOfTupleType(type) || undefinedType : indexInfo.type);\n            } else if (isObjectLiteralType2(type) && !(getObjectFlags(type) & 2097152)) {\n              checkFlags |= 32;\n              indexTypes = append(indexTypes, undefinedType);\n            } else {\n              checkFlags |= 16;\n            }\n          }\n        }\n      }\n      if (!singleProp || isUnion && (propSet || checkFlags & 48) && checkFlags & (1024 | 512) && !(propSet && getCommonDeclarationsOfSymbols(propSet.values()))) {\n        return void 0;\n      }\n      if (!propSet && !(checkFlags & 16) && !indexTypes) {\n        if (mergedInstantiations) {\n          const links = (_a2 = tryCast(singleProp, isTransientSymbol)) == null ? void 0 : _a2.links;\n          const clone2 = createSymbolWithType(singleProp, links == null ? void 0 : links.type);\n          clone2.parent = (_c = (_b = singleProp.valueDeclaration) == null ? void 0 : _b.symbol) == null ? void 0 : _c.parent;\n          clone2.links.containingType = containingType;\n          clone2.links.mapper = links == null ? void 0 : links.mapper;\n          return clone2;\n        } else {\n          return singleProp;\n        }\n      }\n      const props = propSet ? arrayFrom(propSet.values()) : [singleProp];\n      let declarations;\n      let firstType;\n      let nameType;\n      const propTypes = [];\n      let writeTypes;\n      let firstValueDeclaration;\n      let hasNonUniformValueDeclaration = false;\n      for (const prop of props) {\n        if (!firstValueDeclaration) {\n          firstValueDeclaration = prop.valueDeclaration;\n        } else if (prop.valueDeclaration && prop.valueDeclaration !== firstValueDeclaration) {\n          hasNonUniformValueDeclaration = true;\n        }\n        declarations = addRange(declarations, prop.declarations);\n        const type = getTypeOfSymbol(prop);\n        if (!firstType) {\n          firstType = type;\n          nameType = getSymbolLinks(prop).nameType;\n        }\n        const writeType = getWriteTypeOfSymbol(prop);\n        if (writeTypes || writeType !== type) {\n          writeTypes = append(!writeTypes ? propTypes.slice() : writeTypes, writeType);\n        } else if (type !== firstType) {\n          checkFlags |= 64;\n        }\n        if (isLiteralType(type) || isPatternLiteralType(type) || type === uniqueLiteralType) {\n          checkFlags |= 128;\n        }\n        if (type.flags & 131072 && type !== uniqueLiteralType) {\n          checkFlags |= 131072;\n        }\n        propTypes.push(type);\n      }\n      addRange(propTypes, indexTypes);\n      const result = createSymbol(4 | (optionalFlag != null ? optionalFlag : 0), name, syntheticFlag | checkFlags);\n      result.links.containingType = containingType;\n      if (!hasNonUniformValueDeclaration && firstValueDeclaration) {\n        result.valueDeclaration = firstValueDeclaration;\n        if (firstValueDeclaration.symbol.parent) {\n          result.parent = firstValueDeclaration.symbol.parent;\n        }\n      }\n      result.declarations = declarations;\n      result.links.nameType = nameType;\n      if (propTypes.length > 2) {\n        result.links.checkFlags |= 65536;\n        result.links.deferralParent = containingType;\n        result.links.deferralConstituents = propTypes;\n        result.links.deferralWriteConstituents = writeTypes;\n      } else {\n        result.links.type = isUnion ? getUnionType(propTypes) : getIntersectionType(propTypes);\n        if (writeTypes) {\n          result.links.writeType = isUnion ? getUnionType(writeTypes) : getIntersectionType(writeTypes);\n        }\n      }\n      return result;\n    }\n    function getUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment) {\n      var _a2, _b;\n      let property = ((_a2 = type.propertyCacheWithoutObjectFunctionPropertyAugment) == null ? void 0 : _a2.get(name)) || !skipObjectFunctionPropertyAugment ? (_b = type.propertyCache) == null ? void 0 : _b.get(name) : void 0;\n      if (!property) {\n        property = createUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment);\n        if (property) {\n          const properties = skipObjectFunctionPropertyAugment ? type.propertyCacheWithoutObjectFunctionPropertyAugment || (type.propertyCacheWithoutObjectFunctionPropertyAugment = createSymbolTable()) : type.propertyCache || (type.propertyCache = createSymbolTable());\n          properties.set(name, property);\n        }\n      }\n      return property;\n    }\n    function getCommonDeclarationsOfSymbols(symbols) {\n      let commonDeclarations;\n      for (const symbol of symbols) {\n        if (!symbol.declarations) {\n          return void 0;\n        }\n        if (!commonDeclarations) {\n          commonDeclarations = new Set(symbol.declarations);\n          continue;\n        }\n        commonDeclarations.forEach((declaration) => {\n          if (!contains(symbol.declarations, declaration)) {\n            commonDeclarations.delete(declaration);\n          }\n        });\n        if (commonDeclarations.size === 0) {\n          return void 0;\n        }\n      }\n      return commonDeclarations;\n    }\n    function getPropertyOfUnionOrIntersectionType(type, name, skipObjectFunctionPropertyAugment) {\n      const property = getUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment);\n      return property && !(getCheckFlags(property) & 16) ? property : void 0;\n    }\n    function getReducedType(type) {\n      if (type.flags & 1048576 && type.objectFlags & 16777216) {\n        return type.resolvedReducedType || (type.resolvedReducedType = getReducedUnionType(type));\n      } else if (type.flags & 2097152) {\n        if (!(type.objectFlags & 16777216)) {\n          type.objectFlags |= 16777216 | (some(getPropertiesOfUnionOrIntersectionType(type), isNeverReducedProperty) ? 33554432 : 0);\n        }\n        return type.objectFlags & 33554432 ? neverType : type;\n      }\n      return type;\n    }\n    function getReducedUnionType(unionType) {\n      const reducedTypes = sameMap(unionType.types, getReducedType);\n      if (reducedTypes === unionType.types) {\n        return unionType;\n      }\n      const reduced = getUnionType(reducedTypes);\n      if (reduced.flags & 1048576) {\n        reduced.resolvedReducedType = reduced;\n      }\n      return reduced;\n    }\n    function isNeverReducedProperty(prop) {\n      return isDiscriminantWithNeverType(prop) || isConflictingPrivateProperty(prop);\n    }\n    function isDiscriminantWithNeverType(prop) {\n      return !(prop.flags & 16777216) && (getCheckFlags(prop) & (192 | 131072)) === 192 && !!(getTypeOfSymbol(prop).flags & 131072);\n    }\n    function isConflictingPrivateProperty(prop) {\n      return !prop.valueDeclaration && !!(getCheckFlags(prop) & 1024);\n    }\n    function elaborateNeverIntersection(errorInfo, type) {\n      if (type.flags & 2097152 && getObjectFlags(type) & 33554432) {\n        const neverProp = find(getPropertiesOfUnionOrIntersectionType(type), isDiscriminantWithNeverType);\n        if (neverProp) {\n          return chainDiagnosticMessages(errorInfo, Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents, typeToString(type, void 0, 536870912), symbolToString(neverProp));\n        }\n        const privateProp = find(getPropertiesOfUnionOrIntersectionType(type), isConflictingPrivateProperty);\n        if (privateProp) {\n          return chainDiagnosticMessages(errorInfo, Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some, typeToString(type, void 0, 536870912), symbolToString(privateProp));\n        }\n      }\n      return errorInfo;\n    }\n    function getPropertyOfType(type, name, skipObjectFunctionPropertyAugment, includeTypeOnlyMembers) {\n      type = getReducedApparentType(type);\n      if (type.flags & 524288) {\n        const resolved = resolveStructuredTypeMembers(type);\n        const symbol = resolved.members.get(name);\n        if (symbol && symbolIsValue(symbol, includeTypeOnlyMembers)) {\n          return symbol;\n        }\n        if (skipObjectFunctionPropertyAugment)\n          return void 0;\n        const functionType = resolved === anyFunctionType ? globalFunctionType : resolved.callSignatures.length ? globalCallableFunctionType : resolved.constructSignatures.length ? globalNewableFunctionType : void 0;\n        if (functionType) {\n          const symbol2 = getPropertyOfObjectType(functionType, name);\n          if (symbol2) {\n            return symbol2;\n          }\n        }\n        return getPropertyOfObjectType(globalObjectType, name);\n      }\n      if (type.flags & 3145728) {\n        return getPropertyOfUnionOrIntersectionType(type, name, skipObjectFunctionPropertyAugment);\n      }\n      return void 0;\n    }\n    function getSignaturesOfStructuredType(type, kind) {\n      if (type.flags & 3670016) {\n        const resolved = resolveStructuredTypeMembers(type);\n        return kind === 0 ? resolved.callSignatures : resolved.constructSignatures;\n      }\n      return emptyArray;\n    }\n    function getSignaturesOfType(type, kind) {\n      return getSignaturesOfStructuredType(getReducedApparentType(type), kind);\n    }\n    function findIndexInfo(indexInfos, keyType) {\n      return find(indexInfos, (info) => info.keyType === keyType);\n    }\n    function findApplicableIndexInfo(indexInfos, keyType) {\n      let stringIndexInfo;\n      let applicableInfo;\n      let applicableInfos;\n      for (const info of indexInfos) {\n        if (info.keyType === stringType) {\n          stringIndexInfo = info;\n        } else if (isApplicableIndexType(keyType, info.keyType)) {\n          if (!applicableInfo) {\n            applicableInfo = info;\n          } else {\n            (applicableInfos || (applicableInfos = [applicableInfo])).push(info);\n          }\n        }\n      }\n      return applicableInfos ? createIndexInfo(unknownType, getIntersectionType(map(applicableInfos, (info) => info.type)), reduceLeft(applicableInfos, (isReadonly, info) => isReadonly && info.isReadonly, true)) : applicableInfo ? applicableInfo : stringIndexInfo && isApplicableIndexType(keyType, stringType) ? stringIndexInfo : void 0;\n    }\n    function isApplicableIndexType(source, target) {\n      return isTypeAssignableTo(source, target) || target === stringType && isTypeAssignableTo(source, numberType) || target === numberType && (source === numericStringType || !!(source.flags & 128) && isNumericLiteralName(source.value));\n    }\n    function getIndexInfosOfStructuredType(type) {\n      if (type.flags & 3670016) {\n        const resolved = resolveStructuredTypeMembers(type);\n        return resolved.indexInfos;\n      }\n      return emptyArray;\n    }\n    function getIndexInfosOfType(type) {\n      return getIndexInfosOfStructuredType(getReducedApparentType(type));\n    }\n    function getIndexInfoOfType(type, keyType) {\n      return findIndexInfo(getIndexInfosOfType(type), keyType);\n    }\n    function getIndexTypeOfType(type, keyType) {\n      var _a2;\n      return (_a2 = getIndexInfoOfType(type, keyType)) == null ? void 0 : _a2.type;\n    }\n    function getApplicableIndexInfos(type, keyType) {\n      return getIndexInfosOfType(type).filter((info) => isApplicableIndexType(keyType, info.keyType));\n    }\n    function getApplicableIndexInfo(type, keyType) {\n      return findApplicableIndexInfo(getIndexInfosOfType(type), keyType);\n    }\n    function getApplicableIndexInfoForName(type, name) {\n      return getApplicableIndexInfo(type, isLateBoundName(name) ? esSymbolType : getStringLiteralType(unescapeLeadingUnderscores(name)));\n    }\n    function getTypeParametersFromDeclaration(declaration) {\n      var _a2;\n      let result;\n      for (const node of getEffectiveTypeParameterDeclarations(declaration)) {\n        result = appendIfUnique(result, getDeclaredTypeOfTypeParameter(node.symbol));\n      }\n      return (result == null ? void 0 : result.length) ? result : isFunctionDeclaration(declaration) ? (_a2 = getSignatureOfTypeTag(declaration)) == null ? void 0 : _a2.typeParameters : void 0;\n    }\n    function symbolsToArray(symbols) {\n      const result = [];\n      symbols.forEach((symbol, id) => {\n        if (!isReservedMemberName(id)) {\n          result.push(symbol);\n        }\n      });\n      return result;\n    }\n    function tryFindAmbientModule(moduleName, withAugmentations) {\n      if (isExternalModuleNameRelative(moduleName)) {\n        return void 0;\n      }\n      const symbol = getSymbol2(globals, '\"' + moduleName + '\"', 512);\n      return symbol && withAugmentations ? getMergedSymbol(symbol) : symbol;\n    }\n    function isOptionalParameter(node) {\n      if (hasQuestionToken(node) || isOptionalJSDocPropertyLikeTag(node) || isJSDocOptionalParameter(node)) {\n        return true;\n      }\n      if (node.initializer) {\n        const signature = getSignatureFromDeclaration(node.parent);\n        const parameterIndex = node.parent.parameters.indexOf(node);\n        Debug.assert(parameterIndex >= 0);\n        return parameterIndex >= getMinArgumentCount(signature, 1 | 2);\n      }\n      const iife = getImmediatelyInvokedFunctionExpression(node.parent);\n      if (iife) {\n        return !node.type && !node.dotDotDotToken && node.parent.parameters.indexOf(node) >= iife.arguments.length;\n      }\n      return false;\n    }\n    function isOptionalPropertyDeclaration(node) {\n      return isPropertyDeclaration(node) && !hasAccessorModifier(node) && node.questionToken;\n    }\n    function createTypePredicate(kind, parameterName, parameterIndex, type) {\n      return { kind, parameterName, parameterIndex, type };\n    }\n    function getMinTypeArgumentCount(typeParameters) {\n      let minTypeArgumentCount = 0;\n      if (typeParameters) {\n        for (let i = 0; i < typeParameters.length; i++) {\n          if (!hasTypeParameterDefault(typeParameters[i])) {\n            minTypeArgumentCount = i + 1;\n          }\n        }\n      }\n      return minTypeArgumentCount;\n    }\n    function fillMissingTypeArguments(typeArguments, typeParameters, minTypeArgumentCount, isJavaScriptImplicitAny) {\n      const numTypeParameters = length(typeParameters);\n      if (!numTypeParameters) {\n        return [];\n      }\n      const numTypeArguments = length(typeArguments);\n      if (isJavaScriptImplicitAny || numTypeArguments >= minTypeArgumentCount && numTypeArguments <= numTypeParameters) {\n        const result = typeArguments ? typeArguments.slice() : [];\n        for (let i = numTypeArguments; i < numTypeParameters; i++) {\n          result[i] = errorType;\n        }\n        const baseDefaultType = getDefaultTypeArgumentType(isJavaScriptImplicitAny);\n        for (let i = numTypeArguments; i < numTypeParameters; i++) {\n          let defaultType = getDefaultFromTypeParameter(typeParameters[i]);\n          if (isJavaScriptImplicitAny && defaultType && (isTypeIdenticalTo(defaultType, unknownType) || isTypeIdenticalTo(defaultType, emptyObjectType))) {\n            defaultType = anyType;\n          }\n          result[i] = defaultType ? instantiateType(defaultType, createTypeMapper(typeParameters, result)) : baseDefaultType;\n        }\n        result.length = typeParameters.length;\n        return result;\n      }\n      return typeArguments && typeArguments.slice();\n    }\n    function getSignatureFromDeclaration(declaration) {\n      const links = getNodeLinks(declaration);\n      if (!links.resolvedSignature) {\n        const parameters = [];\n        let flags = 0;\n        let minArgumentCount = 0;\n        let thisParameter;\n        let hasThisParameter2 = false;\n        const iife = getImmediatelyInvokedFunctionExpression(declaration);\n        const isJSConstructSignature = isJSDocConstructSignature(declaration);\n        const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration);\n        if (isUntypedSignatureInJSFile) {\n          flags |= 32;\n        }\n        for (let i = isJSConstructSignature ? 1 : 0; i < declaration.parameters.length; i++) {\n          const param = declaration.parameters[i];\n          let paramSymbol = param.symbol;\n          const type = isJSDocParameterTag(param) ? param.typeExpression && param.typeExpression.type : param.type;\n          if (paramSymbol && !!(paramSymbol.flags & 4) && !isBindingPattern(param.name)) {\n            const resolvedSymbol = resolveName(param, paramSymbol.escapedName, 111551, void 0, void 0, false);\n            paramSymbol = resolvedSymbol;\n          }\n          if (i === 0 && paramSymbol.escapedName === \"this\") {\n            hasThisParameter2 = true;\n            thisParameter = param.symbol;\n          } else {\n            parameters.push(paramSymbol);\n          }\n          if (type && type.kind === 198) {\n            flags |= 2;\n          }\n          const isOptionalParameter2 = isOptionalJSDocPropertyLikeTag(param) || param.initializer || param.questionToken || isRestParameter(param) || iife && parameters.length > iife.arguments.length && !type || isJSDocOptionalParameter(param);\n          if (!isOptionalParameter2) {\n            minArgumentCount = parameters.length;\n          }\n        }\n        if ((declaration.kind === 174 || declaration.kind === 175) && hasBindableName(declaration) && (!hasThisParameter2 || !thisParameter)) {\n          const otherKind = declaration.kind === 174 ? 175 : 174;\n          const other = getDeclarationOfKind(getSymbolOfDeclaration(declaration), otherKind);\n          if (other) {\n            thisParameter = getAnnotatedAccessorThisParameter(other);\n          }\n        }\n        if (isInJSFile(declaration)) {\n          const thisTag = getJSDocThisTag(declaration);\n          if (thisTag && thisTag.typeExpression) {\n            thisParameter = createSymbolWithType(createSymbol(1, \"this\"), getTypeFromTypeNode(thisTag.typeExpression));\n          }\n        }\n        const classType = declaration.kind === 173 ? getDeclaredTypeOfClassOrInterface(getMergedSymbol(declaration.parent.symbol)) : void 0;\n        const typeParameters = classType ? classType.localTypeParameters : getTypeParametersFromDeclaration(declaration);\n        if (hasRestParameter(declaration) || isInJSFile(declaration) && maybeAddJsSyntheticRestParameter(declaration, parameters)) {\n          flags |= 1;\n        }\n        if (isConstructorTypeNode(declaration) && hasSyntacticModifier(declaration, 256) || isConstructorDeclaration(declaration) && hasSyntacticModifier(declaration.parent, 256)) {\n          flags |= 4;\n        }\n        links.resolvedSignature = createSignature(declaration, typeParameters, thisParameter, parameters, void 0, void 0, minArgumentCount, flags);\n      }\n      return links.resolvedSignature;\n    }\n    function maybeAddJsSyntheticRestParameter(declaration, parameters) {\n      if (isJSDocSignature(declaration) || !containsArgumentsReference(declaration)) {\n        return false;\n      }\n      const lastParam = lastOrUndefined(declaration.parameters);\n      const lastParamTags = lastParam ? getJSDocParameterTags(lastParam) : getJSDocTags(declaration).filter(isJSDocParameterTag);\n      const lastParamVariadicType = firstDefined(lastParamTags, (p) => p.typeExpression && isJSDocVariadicType(p.typeExpression.type) ? p.typeExpression.type : void 0);\n      const syntheticArgsSymbol = createSymbol(3, \"args\", 32768);\n      if (lastParamVariadicType) {\n        syntheticArgsSymbol.links.type = createArrayType(getTypeFromTypeNode(lastParamVariadicType.type));\n      } else {\n        syntheticArgsSymbol.links.checkFlags |= 65536;\n        syntheticArgsSymbol.links.deferralParent = neverType;\n        syntheticArgsSymbol.links.deferralConstituents = [anyArrayType];\n        syntheticArgsSymbol.links.deferralWriteConstituents = [anyArrayType];\n      }\n      if (lastParamVariadicType) {\n        parameters.pop();\n      }\n      parameters.push(syntheticArgsSymbol);\n      return true;\n    }\n    function getSignatureOfTypeTag(node) {\n      if (!(isInJSFile(node) && isFunctionLikeDeclaration(node)))\n        return void 0;\n      const typeTag = getJSDocTypeTag(node);\n      return (typeTag == null ? void 0 : typeTag.typeExpression) && getSingleCallSignature(getTypeFromTypeNode(typeTag.typeExpression));\n    }\n    function getParameterTypeOfTypeTag(func, parameter) {\n      const signature = getSignatureOfTypeTag(func);\n      if (!signature)\n        return void 0;\n      const pos = func.parameters.indexOf(parameter);\n      return parameter.dotDotDotToken ? getRestTypeAtPosition(signature, pos) : getTypeAtPosition(signature, pos);\n    }\n    function getReturnTypeOfTypeTag(node) {\n      const signature = getSignatureOfTypeTag(node);\n      return signature && getReturnTypeOfSignature(signature);\n    }\n    function containsArgumentsReference(declaration) {\n      const links = getNodeLinks(declaration);\n      if (links.containsArgumentsReference === void 0) {\n        if (links.flags & 512) {\n          links.containsArgumentsReference = true;\n        } else {\n          links.containsArgumentsReference = traverse(declaration.body);\n        }\n      }\n      return links.containsArgumentsReference;\n      function traverse(node) {\n        if (!node)\n          return false;\n        switch (node.kind) {\n          case 79:\n            return node.escapedText === argumentsSymbol.escapedName && getReferencedValueSymbol(node) === argumentsSymbol;\n          case 169:\n          case 171:\n          case 174:\n          case 175:\n            return node.name.kind === 164 && traverse(node.name);\n          case 208:\n          case 209:\n            return traverse(node.expression);\n          case 299:\n            return traverse(node.initializer);\n          default:\n            return !nodeStartsNewLexicalEnvironment(node) && !isPartOfTypeNode(node) && !!forEachChild(node, traverse);\n        }\n      }\n    }\n    function getSignaturesOfSymbol(symbol) {\n      if (!symbol || !symbol.declarations)\n        return emptyArray;\n      const result = [];\n      for (let i = 0; i < symbol.declarations.length; i++) {\n        const decl = symbol.declarations[i];\n        if (!isFunctionLike(decl))\n          continue;\n        if (i > 0 && decl.body) {\n          const previous = symbol.declarations[i - 1];\n          if (decl.parent === previous.parent && decl.kind === previous.kind && decl.pos === previous.end) {\n            continue;\n          }\n        }\n        if (isInJSFile(decl) && decl.jsDoc) {\n          let hasJSDocOverloads = false;\n          for (const node of decl.jsDoc) {\n            if (node.tags) {\n              for (const tag of node.tags) {\n                if (isJSDocOverloadTag(tag)) {\n                  const jsDocSignature = tag.typeExpression;\n                  if (jsDocSignature.type === void 0 && !isConstructorDeclaration(decl)) {\n                    reportImplicitAny(jsDocSignature, anyType);\n                  }\n                  result.push(getSignatureFromDeclaration(jsDocSignature));\n                  hasJSDocOverloads = true;\n                }\n              }\n            }\n          }\n          if (hasJSDocOverloads) {\n            continue;\n          }\n        }\n        result.push(!isFunctionExpressionOrArrowFunction(decl) && !isObjectLiteralMethod(decl) && getSignatureOfTypeTag(decl) || getSignatureFromDeclaration(decl));\n      }\n      return result;\n    }\n    function resolveExternalModuleTypeByLiteral(name) {\n      const moduleSym = resolveExternalModuleName(name, name);\n      if (moduleSym) {\n        const resolvedModuleSymbol = resolveExternalModuleSymbol(moduleSym);\n        if (resolvedModuleSymbol) {\n          return getTypeOfSymbol(resolvedModuleSymbol);\n        }\n      }\n      return anyType;\n    }\n    function getThisTypeOfSignature(signature) {\n      if (signature.thisParameter) {\n        return getTypeOfSymbol(signature.thisParameter);\n      }\n    }\n    function getTypePredicateOfSignature(signature) {\n      if (!signature.resolvedTypePredicate) {\n        if (signature.target) {\n          const targetTypePredicate = getTypePredicateOfSignature(signature.target);\n          signature.resolvedTypePredicate = targetTypePredicate ? instantiateTypePredicate(targetTypePredicate, signature.mapper) : noTypePredicate;\n        } else if (signature.compositeSignatures) {\n          signature.resolvedTypePredicate = getUnionOrIntersectionTypePredicate(signature.compositeSignatures, signature.compositeKind) || noTypePredicate;\n        } else {\n          const type = signature.declaration && getEffectiveReturnTypeNode(signature.declaration);\n          let jsdocPredicate;\n          if (!type) {\n            const jsdocSignature = getSignatureOfTypeTag(signature.declaration);\n            if (jsdocSignature && signature !== jsdocSignature) {\n              jsdocPredicate = getTypePredicateOfSignature(jsdocSignature);\n            }\n          }\n          signature.resolvedTypePredicate = type && isTypePredicateNode(type) ? createTypePredicateFromTypePredicateNode(type, signature) : jsdocPredicate || noTypePredicate;\n        }\n        Debug.assert(!!signature.resolvedTypePredicate);\n      }\n      return signature.resolvedTypePredicate === noTypePredicate ? void 0 : signature.resolvedTypePredicate;\n    }\n    function createTypePredicateFromTypePredicateNode(node, signature) {\n      const parameterName = node.parameterName;\n      const type = node.type && getTypeFromTypeNode(node.type);\n      return parameterName.kind === 194 ? createTypePredicate(node.assertsModifier ? 2 : 0, void 0, void 0, type) : createTypePredicate(node.assertsModifier ? 3 : 1, parameterName.escapedText, findIndex(signature.parameters, (p) => p.escapedName === parameterName.escapedText), type);\n    }\n    function getUnionOrIntersectionType(types, kind, unionReduction) {\n      return kind !== 2097152 ? getUnionType(types, unionReduction) : getIntersectionType(types);\n    }\n    function getReturnTypeOfSignature(signature) {\n      if (!signature.resolvedReturnType) {\n        if (!pushTypeResolution(signature, 3)) {\n          return errorType;\n        }\n        let type = signature.target ? instantiateType(getReturnTypeOfSignature(signature.target), signature.mapper) : signature.compositeSignatures ? instantiateType(getUnionOrIntersectionType(map(signature.compositeSignatures, getReturnTypeOfSignature), signature.compositeKind, 2), signature.mapper) : getReturnTypeFromAnnotation(signature.declaration) || (nodeIsMissing(signature.declaration.body) ? anyType : getReturnTypeFromBody(signature.declaration));\n        if (signature.flags & 8) {\n          type = addOptionalTypeMarker(type);\n        } else if (signature.flags & 16) {\n          type = getOptionalType(type);\n        }\n        if (!popTypeResolution()) {\n          if (signature.declaration) {\n            const typeNode = getEffectiveReturnTypeNode(signature.declaration);\n            if (typeNode) {\n              error(typeNode, Diagnostics.Return_type_annotation_circularly_references_itself);\n            } else if (noImplicitAny) {\n              const declaration = signature.declaration;\n              const name = getNameOfDeclaration(declaration);\n              if (name) {\n                error(name, Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, declarationNameToString(name));\n              } else {\n                error(declaration, Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions);\n              }\n            }\n          }\n          type = anyType;\n        }\n        signature.resolvedReturnType = type;\n      }\n      return signature.resolvedReturnType;\n    }\n    function getReturnTypeFromAnnotation(declaration) {\n      if (declaration.kind === 173) {\n        return getDeclaredTypeOfClassOrInterface(getMergedSymbol(declaration.parent.symbol));\n      }\n      if (isJSDocSignature(declaration)) {\n        const root = getJSDocRoot(declaration);\n        if (root && isConstructorDeclaration(root.parent)) {\n          return getDeclaredTypeOfClassOrInterface(getMergedSymbol(root.parent.parent.symbol));\n        }\n      }\n      if (isJSDocConstructSignature(declaration)) {\n        return getTypeFromTypeNode(declaration.parameters[0].type);\n      }\n      const typeNode = getEffectiveReturnTypeNode(declaration);\n      if (typeNode) {\n        return getTypeFromTypeNode(typeNode);\n      }\n      if (declaration.kind === 174 && hasBindableName(declaration)) {\n        const jsDocType = isInJSFile(declaration) && getTypeForDeclarationFromJSDocComment(declaration);\n        if (jsDocType) {\n          return jsDocType;\n        }\n        const setter = getDeclarationOfKind(getSymbolOfDeclaration(declaration), 175);\n        const setterType = getAnnotatedAccessorType(setter);\n        if (setterType) {\n          return setterType;\n        }\n      }\n      return getReturnTypeOfTypeTag(declaration);\n    }\n    function isResolvingReturnTypeOfSignature(signature) {\n      return !signature.resolvedReturnType && findResolutionCycleStartIndex(signature, 3) >= 0;\n    }\n    function getRestTypeOfSignature(signature) {\n      return tryGetRestTypeOfSignature(signature) || anyType;\n    }\n    function tryGetRestTypeOfSignature(signature) {\n      if (signatureHasRestParameter(signature)) {\n        const sigRestType = getTypeOfSymbol(signature.parameters[signature.parameters.length - 1]);\n        const restType = isTupleType(sigRestType) ? getRestTypeOfTupleType(sigRestType) : sigRestType;\n        return restType && getIndexTypeOfType(restType, numberType);\n      }\n      return void 0;\n    }\n    function getSignatureInstantiation(signature, typeArguments, isJavascript, inferredTypeParameters) {\n      const instantiatedSignature = getSignatureInstantiationWithoutFillingInTypeArguments(signature, fillMissingTypeArguments(typeArguments, signature.typeParameters, getMinTypeArgumentCount(signature.typeParameters), isJavascript));\n      if (inferredTypeParameters) {\n        const returnSignature = getSingleCallOrConstructSignature(getReturnTypeOfSignature(instantiatedSignature));\n        if (returnSignature) {\n          const newReturnSignature = cloneSignature(returnSignature);\n          newReturnSignature.typeParameters = inferredTypeParameters;\n          const newInstantiatedSignature = cloneSignature(instantiatedSignature);\n          newInstantiatedSignature.resolvedReturnType = getOrCreateTypeFromSignature(newReturnSignature);\n          return newInstantiatedSignature;\n        }\n      }\n      return instantiatedSignature;\n    }\n    function getSignatureInstantiationWithoutFillingInTypeArguments(signature, typeArguments) {\n      const instantiations = signature.instantiations || (signature.instantiations = /* @__PURE__ */ new Map());\n      const id = getTypeListId(typeArguments);\n      let instantiation = instantiations.get(id);\n      if (!instantiation) {\n        instantiations.set(id, instantiation = createSignatureInstantiation(signature, typeArguments));\n      }\n      return instantiation;\n    }\n    function createSignatureInstantiation(signature, typeArguments) {\n      return instantiateSignature(signature, createSignatureTypeMapper(signature, typeArguments), true);\n    }\n    function createSignatureTypeMapper(signature, typeArguments) {\n      return createTypeMapper(signature.typeParameters, typeArguments);\n    }\n    function getErasedSignature(signature) {\n      return signature.typeParameters ? signature.erasedSignatureCache || (signature.erasedSignatureCache = createErasedSignature(signature)) : signature;\n    }\n    function createErasedSignature(signature) {\n      return instantiateSignature(signature, createTypeEraser(signature.typeParameters), true);\n    }\n    function getCanonicalSignature(signature) {\n      return signature.typeParameters ? signature.canonicalSignatureCache || (signature.canonicalSignatureCache = createCanonicalSignature(signature)) : signature;\n    }\n    function createCanonicalSignature(signature) {\n      return getSignatureInstantiation(signature, map(signature.typeParameters, (tp) => tp.target && !getConstraintOfTypeParameter(tp.target) ? tp.target : tp), isInJSFile(signature.declaration));\n    }\n    function getBaseSignature(signature) {\n      const typeParameters = signature.typeParameters;\n      if (typeParameters) {\n        if (signature.baseSignatureCache) {\n          return signature.baseSignatureCache;\n        }\n        const typeEraser = createTypeEraser(typeParameters);\n        const baseConstraintMapper = createTypeMapper(typeParameters, map(typeParameters, (tp) => getConstraintOfTypeParameter(tp) || unknownType));\n        let baseConstraints = map(typeParameters, (tp) => instantiateType(tp, baseConstraintMapper) || unknownType);\n        for (let i = 0; i < typeParameters.length - 1; i++) {\n          baseConstraints = instantiateTypes(baseConstraints, baseConstraintMapper);\n        }\n        baseConstraints = instantiateTypes(baseConstraints, typeEraser);\n        return signature.baseSignatureCache = instantiateSignature(signature, createTypeMapper(typeParameters, baseConstraints), true);\n      }\n      return signature;\n    }\n    function getOrCreateTypeFromSignature(signature) {\n      var _a2;\n      if (!signature.isolatedSignatureType) {\n        const kind = (_a2 = signature.declaration) == null ? void 0 : _a2.kind;\n        const isConstructor = kind === void 0 || kind === 173 || kind === 177 || kind === 182;\n        const type = createObjectType(16);\n        type.members = emptySymbols;\n        type.properties = emptyArray;\n        type.callSignatures = !isConstructor ? [signature] : emptyArray;\n        type.constructSignatures = isConstructor ? [signature] : emptyArray;\n        type.indexInfos = emptyArray;\n        signature.isolatedSignatureType = type;\n      }\n      return signature.isolatedSignatureType;\n    }\n    function getIndexSymbol(symbol) {\n      return symbol.members ? getIndexSymbolFromSymbolTable(symbol.members) : void 0;\n    }\n    function getIndexSymbolFromSymbolTable(symbolTable) {\n      return symbolTable.get(\"__index\");\n    }\n    function createIndexInfo(keyType, type, isReadonly, declaration) {\n      return { keyType, type, isReadonly, declaration };\n    }\n    function getIndexInfosOfSymbol(symbol) {\n      const indexSymbol = getIndexSymbol(symbol);\n      return indexSymbol ? getIndexInfosOfIndexSymbol(indexSymbol) : emptyArray;\n    }\n    function getIndexInfosOfIndexSymbol(indexSymbol) {\n      if (indexSymbol.declarations) {\n        const indexInfos = [];\n        for (const declaration of indexSymbol.declarations) {\n          if (declaration.parameters.length === 1) {\n            const parameter = declaration.parameters[0];\n            if (parameter.type) {\n              forEachType(getTypeFromTypeNode(parameter.type), (keyType) => {\n                if (isValidIndexKeyType(keyType) && !findIndexInfo(indexInfos, keyType)) {\n                  indexInfos.push(createIndexInfo(keyType, declaration.type ? getTypeFromTypeNode(declaration.type) : anyType, hasEffectiveModifier(declaration, 64), declaration));\n                }\n              });\n            }\n          }\n        }\n        return indexInfos;\n      }\n      return emptyArray;\n    }\n    function isValidIndexKeyType(type) {\n      return !!(type.flags & (4 | 8 | 4096)) || isPatternLiteralType(type) || !!(type.flags & 2097152) && !isGenericType(type) && some(type.types, isValidIndexKeyType);\n    }\n    function getConstraintDeclaration(type) {\n      return mapDefined(filter(type.symbol && type.symbol.declarations, isTypeParameterDeclaration), getEffectiveConstraintOfTypeParameter)[0];\n    }\n    function getInferredTypeParameterConstraint(typeParameter, omitTypeReferences) {\n      var _a2;\n      let inferences;\n      if ((_a2 = typeParameter.symbol) == null ? void 0 : _a2.declarations) {\n        for (const declaration of typeParameter.symbol.declarations) {\n          if (declaration.parent.kind === 192) {\n            const [childTypeParameter = declaration.parent, grandParent] = walkUpParenthesizedTypesAndGetParentAndChild(declaration.parent.parent);\n            if (grandParent.kind === 180 && !omitTypeReferences) {\n              const typeReference = grandParent;\n              const typeParameters = getTypeParametersForTypeReferenceOrImport(typeReference);\n              if (typeParameters) {\n                const index = typeReference.typeArguments.indexOf(childTypeParameter);\n                if (index < typeParameters.length) {\n                  const declaredConstraint = getConstraintOfTypeParameter(typeParameters[index]);\n                  if (declaredConstraint) {\n                    const mapper = makeDeferredTypeMapper(typeParameters, typeParameters.map((_, index2) => () => {\n                      return getEffectiveTypeArgumentAtIndex(typeReference, typeParameters, index2);\n                    }));\n                    const constraint = instantiateType(declaredConstraint, mapper);\n                    if (constraint !== typeParameter) {\n                      inferences = append(inferences, constraint);\n                    }\n                  }\n                }\n              }\n            } else if (grandParent.kind === 166 && grandParent.dotDotDotToken || grandParent.kind === 188 || grandParent.kind === 199 && grandParent.dotDotDotToken) {\n              inferences = append(inferences, createArrayType(unknownType));\n            } else if (grandParent.kind === 201) {\n              inferences = append(inferences, stringType);\n            } else if (grandParent.kind === 165 && grandParent.parent.kind === 197) {\n              inferences = append(inferences, keyofConstraintType);\n            } else if (grandParent.kind === 197 && grandParent.type && skipParentheses(grandParent.type) === declaration.parent && grandParent.parent.kind === 191 && grandParent.parent.extendsType === grandParent && grandParent.parent.checkType.kind === 197 && grandParent.parent.checkType.type) {\n              const checkMappedType2 = grandParent.parent.checkType;\n              const nodeType = getTypeFromTypeNode(checkMappedType2.type);\n              inferences = append(inferences, instantiateType(nodeType, makeUnaryTypeMapper(getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(checkMappedType2.typeParameter)), checkMappedType2.typeParameter.constraint ? getTypeFromTypeNode(checkMappedType2.typeParameter.constraint) : keyofConstraintType)));\n            }\n          }\n        }\n      }\n      return inferences && getIntersectionType(inferences);\n    }\n    function getConstraintFromTypeParameter(typeParameter) {\n      if (!typeParameter.constraint) {\n        if (typeParameter.target) {\n          const targetConstraint = getConstraintOfTypeParameter(typeParameter.target);\n          typeParameter.constraint = targetConstraint ? instantiateType(targetConstraint, typeParameter.mapper) : noConstraintType;\n        } else {\n          const constraintDeclaration = getConstraintDeclaration(typeParameter);\n          if (!constraintDeclaration) {\n            typeParameter.constraint = getInferredTypeParameterConstraint(typeParameter) || noConstraintType;\n          } else {\n            let type = getTypeFromTypeNode(constraintDeclaration);\n            if (type.flags & 1 && !isErrorType(type)) {\n              type = constraintDeclaration.parent.parent.kind === 197 ? keyofConstraintType : unknownType;\n            }\n            typeParameter.constraint = type;\n          }\n        }\n      }\n      return typeParameter.constraint === noConstraintType ? void 0 : typeParameter.constraint;\n    }\n    function getParentSymbolOfTypeParameter(typeParameter) {\n      const tp = getDeclarationOfKind(typeParameter.symbol, 165);\n      const host2 = isJSDocTemplateTag(tp.parent) ? getEffectiveContainerForJSDocTemplateTag(tp.parent) : tp.parent;\n      return host2 && getSymbolOfNode(host2);\n    }\n    function getTypeListId(types) {\n      let result = \"\";\n      if (types) {\n        const length2 = types.length;\n        let i = 0;\n        while (i < length2) {\n          const startId = types[i].id;\n          let count = 1;\n          while (i + count < length2 && types[i + count].id === startId + count) {\n            count++;\n          }\n          if (result.length) {\n            result += \",\";\n          }\n          result += startId;\n          if (count > 1) {\n            result += \":\" + count;\n          }\n          i += count;\n        }\n      }\n      return result;\n    }\n    function getAliasId(aliasSymbol, aliasTypeArguments) {\n      return aliasSymbol ? `@${getSymbolId(aliasSymbol)}` + (aliasTypeArguments ? `:${getTypeListId(aliasTypeArguments)}` : \"\") : \"\";\n    }\n    function getPropagatingFlagsOfTypes(types, excludeKinds) {\n      let result = 0;\n      for (const type of types) {\n        if (excludeKinds === void 0 || !(type.flags & excludeKinds)) {\n          result |= getObjectFlags(type);\n        }\n      }\n      return result & 458752;\n    }\n    function tryCreateTypeReference(target, typeArguments) {\n      if (some(typeArguments) && target === emptyGenericType) {\n        return unknownType;\n      }\n      return createTypeReference(target, typeArguments);\n    }\n    function createTypeReference(target, typeArguments) {\n      const id = getTypeListId(typeArguments);\n      let type = target.instantiations.get(id);\n      if (!type) {\n        type = createObjectType(4, target.symbol);\n        target.instantiations.set(id, type);\n        type.objectFlags |= typeArguments ? getPropagatingFlagsOfTypes(typeArguments) : 0;\n        type.target = target;\n        type.resolvedTypeArguments = typeArguments;\n      }\n      return type;\n    }\n    function cloneTypeReference(source) {\n      const type = createTypeWithSymbol(source.flags, source.symbol);\n      type.objectFlags = source.objectFlags;\n      type.target = source.target;\n      type.resolvedTypeArguments = source.resolvedTypeArguments;\n      return type;\n    }\n    function createDeferredTypeReference(target, node, mapper, aliasSymbol, aliasTypeArguments) {\n      if (!aliasSymbol) {\n        aliasSymbol = getAliasSymbolForTypeNode(node);\n        const localAliasTypeArguments = getTypeArgumentsForAliasSymbol(aliasSymbol);\n        aliasTypeArguments = mapper ? instantiateTypes(localAliasTypeArguments, mapper) : localAliasTypeArguments;\n      }\n      const type = createObjectType(4, target.symbol);\n      type.target = target;\n      type.node = node;\n      type.mapper = mapper;\n      type.aliasSymbol = aliasSymbol;\n      type.aliasTypeArguments = aliasTypeArguments;\n      return type;\n    }\n    function getTypeArguments(type) {\n      var _a2, _b;\n      if (!type.resolvedTypeArguments) {\n        if (!pushTypeResolution(type, 6)) {\n          return ((_a2 = type.target.localTypeParameters) == null ? void 0 : _a2.map(() => errorType)) || emptyArray;\n        }\n        const node = type.node;\n        const typeArguments = !node ? emptyArray : node.kind === 180 ? concatenate(type.target.outerTypeParameters, getEffectiveTypeArguments2(node, type.target.localTypeParameters)) : node.kind === 185 ? [getTypeFromTypeNode(node.elementType)] : map(node.elements, getTypeFromTypeNode);\n        if (popTypeResolution()) {\n          type.resolvedTypeArguments = type.mapper ? instantiateTypes(typeArguments, type.mapper) : typeArguments;\n        } else {\n          type.resolvedTypeArguments = ((_b = type.target.localTypeParameters) == null ? void 0 : _b.map(() => errorType)) || emptyArray;\n          error(type.node || currentNode, type.target.symbol ? Diagnostics.Type_arguments_for_0_circularly_reference_themselves : Diagnostics.Tuple_type_arguments_circularly_reference_themselves, type.target.symbol && symbolToString(type.target.symbol));\n        }\n      }\n      return type.resolvedTypeArguments;\n    }\n    function getTypeReferenceArity(type) {\n      return length(type.target.typeParameters);\n    }\n    function getTypeFromClassOrInterfaceReference(node, symbol) {\n      const type = getDeclaredTypeOfSymbol(getMergedSymbol(symbol));\n      const typeParameters = type.localTypeParameters;\n      if (typeParameters) {\n        const numTypeArguments = length(node.typeArguments);\n        const minTypeArgumentCount = getMinTypeArgumentCount(typeParameters);\n        const isJs = isInJSFile(node);\n        const isJsImplicitAny = !noImplicitAny && isJs;\n        if (!isJsImplicitAny && (numTypeArguments < minTypeArgumentCount || numTypeArguments > typeParameters.length)) {\n          const missingAugmentsTag = isJs && isExpressionWithTypeArguments(node) && !isJSDocAugmentsTag(node.parent);\n          const diag2 = minTypeArgumentCount === typeParameters.length ? missingAugmentsTag ? Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag : Diagnostics.Generic_type_0_requires_1_type_argument_s : missingAugmentsTag ? Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag : Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments;\n          const typeStr = typeToString(type, void 0, 2);\n          error(node, diag2, typeStr, minTypeArgumentCount, typeParameters.length);\n          if (!isJs) {\n            return errorType;\n          }\n        }\n        if (node.kind === 180 && isDeferredTypeReferenceNode(node, length(node.typeArguments) !== typeParameters.length)) {\n          return createDeferredTypeReference(type, node, void 0);\n        }\n        const typeArguments = concatenate(type.outerTypeParameters, fillMissingTypeArguments(typeArgumentsFromTypeReferenceNode(node), typeParameters, minTypeArgumentCount, isJs));\n        return createTypeReference(type, typeArguments);\n      }\n      return checkNoTypeArguments(node, symbol) ? type : errorType;\n    }\n    function getTypeAliasInstantiation(symbol, typeArguments, aliasSymbol, aliasTypeArguments) {\n      const type = getDeclaredTypeOfSymbol(symbol);\n      if (type === intrinsicMarkerType && intrinsicTypeKinds.has(symbol.escapedName) && typeArguments && typeArguments.length === 1) {\n        return getStringMappingType(symbol, typeArguments[0]);\n      }\n      const links = getSymbolLinks(symbol);\n      const typeParameters = links.typeParameters;\n      const id = getTypeListId(typeArguments) + getAliasId(aliasSymbol, aliasTypeArguments);\n      let instantiation = links.instantiations.get(id);\n      if (!instantiation) {\n        links.instantiations.set(id, instantiation = instantiateTypeWithAlias(type, createTypeMapper(typeParameters, fillMissingTypeArguments(typeArguments, typeParameters, getMinTypeArgumentCount(typeParameters), isInJSFile(symbol.valueDeclaration))), aliasSymbol, aliasTypeArguments));\n      }\n      return instantiation;\n    }\n    function getTypeFromTypeAliasReference(node, symbol) {\n      if (getCheckFlags(symbol) & 1048576) {\n        const typeArguments = typeArgumentsFromTypeReferenceNode(node);\n        const id = getAliasId(symbol, typeArguments);\n        let errorType2 = errorTypes.get(id);\n        if (!errorType2) {\n          errorType2 = createIntrinsicType(1, \"error\");\n          errorType2.aliasSymbol = symbol;\n          errorType2.aliasTypeArguments = typeArguments;\n          errorTypes.set(id, errorType2);\n        }\n        return errorType2;\n      }\n      const type = getDeclaredTypeOfSymbol(symbol);\n      const typeParameters = getSymbolLinks(symbol).typeParameters;\n      if (typeParameters) {\n        const numTypeArguments = length(node.typeArguments);\n        const minTypeArgumentCount = getMinTypeArgumentCount(typeParameters);\n        if (numTypeArguments < minTypeArgumentCount || numTypeArguments > typeParameters.length) {\n          error(node, minTypeArgumentCount === typeParameters.length ? Diagnostics.Generic_type_0_requires_1_type_argument_s : Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments, symbolToString(symbol), minTypeArgumentCount, typeParameters.length);\n          return errorType;\n        }\n        const aliasSymbol = getAliasSymbolForTypeNode(node);\n        let newAliasSymbol = aliasSymbol && (isLocalTypeAlias(symbol) || !isLocalTypeAlias(aliasSymbol)) ? aliasSymbol : void 0;\n        let aliasTypeArguments;\n        if (newAliasSymbol) {\n          aliasTypeArguments = getTypeArgumentsForAliasSymbol(newAliasSymbol);\n        } else if (isTypeReferenceType(node)) {\n          const aliasSymbol2 = resolveTypeReferenceName(node, 2097152, true);\n          if (aliasSymbol2 && aliasSymbol2 !== unknownSymbol) {\n            const resolved = resolveAlias(aliasSymbol2);\n            if (resolved && resolved.flags & 524288) {\n              newAliasSymbol = resolved;\n              aliasTypeArguments = typeArgumentsFromTypeReferenceNode(node) || (typeParameters ? [] : void 0);\n            }\n          }\n        }\n        return getTypeAliasInstantiation(symbol, typeArgumentsFromTypeReferenceNode(node), newAliasSymbol, aliasTypeArguments);\n      }\n      return checkNoTypeArguments(node, symbol) ? type : errorType;\n    }\n    function isLocalTypeAlias(symbol) {\n      var _a2;\n      const declaration = (_a2 = symbol.declarations) == null ? void 0 : _a2.find(isTypeAlias);\n      return !!(declaration && getContainingFunction(declaration));\n    }\n    function getTypeReferenceName(node) {\n      switch (node.kind) {\n        case 180:\n          return node.typeName;\n        case 230:\n          const expr = node.expression;\n          if (isEntityNameExpression(expr)) {\n            return expr;\n          }\n      }\n      return void 0;\n    }\n    function getSymbolPath(symbol) {\n      return symbol.parent ? `${getSymbolPath(symbol.parent)}.${symbol.escapedName}` : symbol.escapedName;\n    }\n    function getUnresolvedSymbolForEntityName(name) {\n      const identifier = name.kind === 163 ? name.right : name.kind === 208 ? name.name : name;\n      const text = identifier.escapedText;\n      if (text) {\n        const parentSymbol = name.kind === 163 ? getUnresolvedSymbolForEntityName(name.left) : name.kind === 208 ? getUnresolvedSymbolForEntityName(name.expression) : void 0;\n        const path = parentSymbol ? `${getSymbolPath(parentSymbol)}.${text}` : text;\n        let result = unresolvedSymbols.get(path);\n        if (!result) {\n          unresolvedSymbols.set(path, result = createSymbol(524288, text, 1048576));\n          result.parent = parentSymbol;\n          result.links.declaredType = unresolvedType;\n        }\n        return result;\n      }\n      return unknownSymbol;\n    }\n    function resolveTypeReferenceName(typeReference, meaning, ignoreErrors) {\n      const name = getTypeReferenceName(typeReference);\n      if (!name) {\n        return unknownSymbol;\n      }\n      const symbol = resolveEntityName(name, meaning, ignoreErrors);\n      return symbol && symbol !== unknownSymbol ? symbol : ignoreErrors ? unknownSymbol : getUnresolvedSymbolForEntityName(name);\n    }\n    function getTypeReferenceType(node, symbol) {\n      if (symbol === unknownSymbol) {\n        return errorType;\n      }\n      symbol = getExpandoSymbol(symbol) || symbol;\n      if (symbol.flags & (32 | 64)) {\n        return getTypeFromClassOrInterfaceReference(node, symbol);\n      }\n      if (symbol.flags & 524288) {\n        return getTypeFromTypeAliasReference(node, symbol);\n      }\n      const res = tryGetDeclaredTypeOfSymbol(symbol);\n      if (res) {\n        return checkNoTypeArguments(node, symbol) ? getRegularTypeOfLiteralType(res) : errorType;\n      }\n      if (symbol.flags & 111551 && isJSDocTypeReference(node)) {\n        const jsdocType = getTypeFromJSDocValueReference(node, symbol);\n        if (jsdocType) {\n          return jsdocType;\n        } else {\n          resolveTypeReferenceName(node, 788968);\n          return getTypeOfSymbol(symbol);\n        }\n      }\n      return errorType;\n    }\n    function getTypeFromJSDocValueReference(node, symbol) {\n      const links = getNodeLinks(node);\n      if (!links.resolvedJSDocType) {\n        const valueType = getTypeOfSymbol(symbol);\n        let typeType = valueType;\n        if (symbol.valueDeclaration) {\n          const isImportTypeWithQualifier = node.kind === 202 && node.qualifier;\n          if (valueType.symbol && valueType.symbol !== symbol && isImportTypeWithQualifier) {\n            typeType = getTypeReferenceType(node, valueType.symbol);\n          }\n        }\n        links.resolvedJSDocType = typeType;\n      }\n      return links.resolvedJSDocType;\n    }\n    function getSubstitutionType(baseType, constraint) {\n      if (constraint.flags & 3 || constraint === baseType || baseType.flags & 1) {\n        return baseType;\n      }\n      const id = `${getTypeId(baseType)}>${getTypeId(constraint)}`;\n      const cached = substitutionTypes.get(id);\n      if (cached) {\n        return cached;\n      }\n      const result = createType(33554432);\n      result.baseType = baseType;\n      result.constraint = constraint;\n      substitutionTypes.set(id, result);\n      return result;\n    }\n    function getSubstitutionIntersection(substitutionType) {\n      return getIntersectionType([substitutionType.constraint, substitutionType.baseType]);\n    }\n    function isUnaryTupleTypeNode(node) {\n      return node.kind === 186 && node.elements.length === 1;\n    }\n    function getImpliedConstraint(type, checkNode, extendsNode) {\n      return isUnaryTupleTypeNode(checkNode) && isUnaryTupleTypeNode(extendsNode) ? getImpliedConstraint(type, checkNode.elements[0], extendsNode.elements[0]) : getActualTypeVariable(getTypeFromTypeNode(checkNode)) === getActualTypeVariable(type) ? getTypeFromTypeNode(extendsNode) : void 0;\n    }\n    function getConditionalFlowTypeOfType(type, node) {\n      let constraints;\n      let covariant = true;\n      while (node && !isStatement(node) && node.kind !== 323) {\n        const parent2 = node.parent;\n        if (parent2.kind === 166) {\n          covariant = !covariant;\n        }\n        if ((covariant || type.flags & 8650752) && parent2.kind === 191 && node === parent2.trueType) {\n          const constraint = getImpliedConstraint(type, parent2.checkType, parent2.extendsType);\n          if (constraint) {\n            constraints = append(constraints, constraint);\n          }\n        } else if (type.flags & 262144 && parent2.kind === 197 && node === parent2.type) {\n          const mappedType = getTypeFromTypeNode(parent2);\n          if (getTypeParameterFromMappedType(mappedType) === getActualTypeVariable(type)) {\n            const typeParameter = getHomomorphicTypeVariable(mappedType);\n            if (typeParameter) {\n              const constraint = getConstraintOfTypeParameter(typeParameter);\n              if (constraint && everyType(constraint, isArrayOrTupleType)) {\n                constraints = append(constraints, getUnionType([numberType, numericStringType]));\n              }\n            }\n          }\n        }\n        node = parent2;\n      }\n      return constraints ? getSubstitutionType(type, getIntersectionType(constraints)) : type;\n    }\n    function isJSDocTypeReference(node) {\n      return !!(node.flags & 8388608) && (node.kind === 180 || node.kind === 202);\n    }\n    function checkNoTypeArguments(node, symbol) {\n      if (node.typeArguments) {\n        error(node, Diagnostics.Type_0_is_not_generic, symbol ? symbolToString(symbol) : node.typeName ? declarationNameToString(node.typeName) : anon);\n        return false;\n      }\n      return true;\n    }\n    function getIntendedTypeFromJSDocTypeReference(node) {\n      if (isIdentifier(node.typeName)) {\n        const typeArgs = node.typeArguments;\n        switch (node.typeName.escapedText) {\n          case \"String\":\n            checkNoTypeArguments(node);\n            return stringType;\n          case \"Number\":\n            checkNoTypeArguments(node);\n            return numberType;\n          case \"Boolean\":\n            checkNoTypeArguments(node);\n            return booleanType;\n          case \"Void\":\n            checkNoTypeArguments(node);\n            return voidType;\n          case \"Undefined\":\n            checkNoTypeArguments(node);\n            return undefinedType;\n          case \"Null\":\n            checkNoTypeArguments(node);\n            return nullType;\n          case \"Function\":\n          case \"function\":\n            checkNoTypeArguments(node);\n            return globalFunctionType;\n          case \"array\":\n            return (!typeArgs || !typeArgs.length) && !noImplicitAny ? anyArrayType : void 0;\n          case \"promise\":\n            return (!typeArgs || !typeArgs.length) && !noImplicitAny ? createPromiseType(anyType) : void 0;\n          case \"Object\":\n            if (typeArgs && typeArgs.length === 2) {\n              if (isJSDocIndexSignature(node)) {\n                const indexed = getTypeFromTypeNode(typeArgs[0]);\n                const target = getTypeFromTypeNode(typeArgs[1]);\n                const indexInfo = indexed === stringType || indexed === numberType ? [createIndexInfo(indexed, target, false)] : emptyArray;\n                return createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, indexInfo);\n              }\n              return anyType;\n            }\n            checkNoTypeArguments(node);\n            return !noImplicitAny ? anyType : void 0;\n        }\n      }\n    }\n    function getTypeFromJSDocNullableTypeNode(node) {\n      const type = getTypeFromTypeNode(node.type);\n      return strictNullChecks ? getNullableType(type, 65536) : type;\n    }\n    function getTypeFromTypeReference(node) {\n      const links = getNodeLinks(node);\n      if (!links.resolvedType) {\n        if (isConstTypeReference(node) && isAssertionExpression(node.parent)) {\n          links.resolvedSymbol = unknownSymbol;\n          return links.resolvedType = checkExpressionCached(node.parent.expression);\n        }\n        let symbol;\n        let type;\n        const meaning = 788968;\n        if (isJSDocTypeReference(node)) {\n          type = getIntendedTypeFromJSDocTypeReference(node);\n          if (!type) {\n            symbol = resolveTypeReferenceName(node, meaning, true);\n            if (symbol === unknownSymbol) {\n              symbol = resolveTypeReferenceName(node, meaning | 111551);\n            } else {\n              resolveTypeReferenceName(node, meaning);\n            }\n            type = getTypeReferenceType(node, symbol);\n          }\n        }\n        if (!type) {\n          symbol = resolveTypeReferenceName(node, meaning);\n          type = getTypeReferenceType(node, symbol);\n        }\n        links.resolvedSymbol = symbol;\n        links.resolvedType = type;\n      }\n      return links.resolvedType;\n    }\n    function typeArgumentsFromTypeReferenceNode(node) {\n      return map(node.typeArguments, getTypeFromTypeNode);\n    }\n    function getTypeFromTypeQueryNode(node) {\n      const links = getNodeLinks(node);\n      if (!links.resolvedType) {\n        const type = checkExpressionWithTypeArguments(node);\n        links.resolvedType = getRegularTypeOfLiteralType(getWidenedType(type));\n      }\n      return links.resolvedType;\n    }\n    function getTypeOfGlobalSymbol(symbol, arity) {\n      function getTypeDeclaration(symbol2) {\n        const declarations = symbol2.declarations;\n        if (declarations) {\n          for (const declaration of declarations) {\n            switch (declaration.kind) {\n              case 260:\n              case 261:\n              case 263:\n                return declaration;\n            }\n          }\n        }\n      }\n      if (!symbol) {\n        return arity ? emptyGenericType : emptyObjectType;\n      }\n      const type = getDeclaredTypeOfSymbol(symbol);\n      if (!(type.flags & 524288)) {\n        error(getTypeDeclaration(symbol), Diagnostics.Global_type_0_must_be_a_class_or_interface_type, symbolName(symbol));\n        return arity ? emptyGenericType : emptyObjectType;\n      }\n      if (length(type.typeParameters) !== arity) {\n        error(getTypeDeclaration(symbol), Diagnostics.Global_type_0_must_have_1_type_parameter_s, symbolName(symbol), arity);\n        return arity ? emptyGenericType : emptyObjectType;\n      }\n      return type;\n    }\n    function getGlobalValueSymbol(name, reportErrors2) {\n      return getGlobalSymbol(name, 111551, reportErrors2 ? Diagnostics.Cannot_find_global_value_0 : void 0);\n    }\n    function getGlobalTypeSymbol(name, reportErrors2) {\n      return getGlobalSymbol(name, 788968, reportErrors2 ? Diagnostics.Cannot_find_global_type_0 : void 0);\n    }\n    function getGlobalTypeAliasSymbol(name, arity, reportErrors2) {\n      const symbol = getGlobalSymbol(name, 788968, reportErrors2 ? Diagnostics.Cannot_find_global_type_0 : void 0);\n      if (symbol) {\n        getDeclaredTypeOfSymbol(symbol);\n        if (length(getSymbolLinks(symbol).typeParameters) !== arity) {\n          const decl = symbol.declarations && find(symbol.declarations, isTypeAliasDeclaration);\n          error(decl, Diagnostics.Global_type_0_must_have_1_type_parameter_s, symbolName(symbol), arity);\n          return void 0;\n        }\n      }\n      return symbol;\n    }\n    function getGlobalSymbol(name, meaning, diagnostic) {\n      return resolveName(void 0, name, meaning, diagnostic, name, false, false, false);\n    }\n    function getGlobalType(name, arity, reportErrors2) {\n      const symbol = getGlobalTypeSymbol(name, reportErrors2);\n      return symbol || reportErrors2 ? getTypeOfGlobalSymbol(symbol, arity) : void 0;\n    }\n    function getGlobalTypedPropertyDescriptorType() {\n      return deferredGlobalTypedPropertyDescriptorType || (deferredGlobalTypedPropertyDescriptorType = getGlobalType(\"TypedPropertyDescriptor\", 1, true) || emptyGenericType);\n    }\n    function getGlobalTemplateStringsArrayType() {\n      return deferredGlobalTemplateStringsArrayType || (deferredGlobalTemplateStringsArrayType = getGlobalType(\"TemplateStringsArray\", 0, true) || emptyObjectType);\n    }\n    function getGlobalImportMetaType() {\n      return deferredGlobalImportMetaType || (deferredGlobalImportMetaType = getGlobalType(\"ImportMeta\", 0, true) || emptyObjectType);\n    }\n    function getGlobalImportMetaExpressionType() {\n      if (!deferredGlobalImportMetaExpressionType) {\n        const symbol = createSymbol(0, \"ImportMetaExpression\");\n        const importMetaType = getGlobalImportMetaType();\n        const metaPropertySymbol = createSymbol(4, \"meta\", 8);\n        metaPropertySymbol.parent = symbol;\n        metaPropertySymbol.links.type = importMetaType;\n        const members = createSymbolTable([metaPropertySymbol]);\n        symbol.members = members;\n        deferredGlobalImportMetaExpressionType = createAnonymousType(symbol, members, emptyArray, emptyArray, emptyArray);\n      }\n      return deferredGlobalImportMetaExpressionType;\n    }\n    function getGlobalImportCallOptionsType(reportErrors2) {\n      return deferredGlobalImportCallOptionsType || (deferredGlobalImportCallOptionsType = getGlobalType(\"ImportCallOptions\", 0, reportErrors2)) || emptyObjectType;\n    }\n    function getGlobalESSymbolConstructorSymbol(reportErrors2) {\n      return deferredGlobalESSymbolConstructorSymbol || (deferredGlobalESSymbolConstructorSymbol = getGlobalValueSymbol(\"Symbol\", reportErrors2));\n    }\n    function getGlobalESSymbolConstructorTypeSymbol(reportErrors2) {\n      return deferredGlobalESSymbolConstructorTypeSymbol || (deferredGlobalESSymbolConstructorTypeSymbol = getGlobalTypeSymbol(\"SymbolConstructor\", reportErrors2));\n    }\n    function getGlobalESSymbolType() {\n      return deferredGlobalESSymbolType || (deferredGlobalESSymbolType = getGlobalType(\"Symbol\", 0, false)) || emptyObjectType;\n    }\n    function getGlobalPromiseType(reportErrors2) {\n      return deferredGlobalPromiseType || (deferredGlobalPromiseType = getGlobalType(\"Promise\", 1, reportErrors2)) || emptyGenericType;\n    }\n    function getGlobalPromiseLikeType(reportErrors2) {\n      return deferredGlobalPromiseLikeType || (deferredGlobalPromiseLikeType = getGlobalType(\"PromiseLike\", 1, reportErrors2)) || emptyGenericType;\n    }\n    function getGlobalPromiseConstructorSymbol(reportErrors2) {\n      return deferredGlobalPromiseConstructorSymbol || (deferredGlobalPromiseConstructorSymbol = getGlobalValueSymbol(\"Promise\", reportErrors2));\n    }\n    function getGlobalPromiseConstructorLikeType(reportErrors2) {\n      return deferredGlobalPromiseConstructorLikeType || (deferredGlobalPromiseConstructorLikeType = getGlobalType(\"PromiseConstructorLike\", 0, reportErrors2)) || emptyObjectType;\n    }\n    function getGlobalAsyncIterableType(reportErrors2) {\n      return deferredGlobalAsyncIterableType || (deferredGlobalAsyncIterableType = getGlobalType(\"AsyncIterable\", 1, reportErrors2)) || emptyGenericType;\n    }\n    function getGlobalAsyncIteratorType(reportErrors2) {\n      return deferredGlobalAsyncIteratorType || (deferredGlobalAsyncIteratorType = getGlobalType(\"AsyncIterator\", 3, reportErrors2)) || emptyGenericType;\n    }\n    function getGlobalAsyncIterableIteratorType(reportErrors2) {\n      return deferredGlobalAsyncIterableIteratorType || (deferredGlobalAsyncIterableIteratorType = getGlobalType(\"AsyncIterableIterator\", 1, reportErrors2)) || emptyGenericType;\n    }\n    function getGlobalAsyncGeneratorType(reportErrors2) {\n      return deferredGlobalAsyncGeneratorType || (deferredGlobalAsyncGeneratorType = getGlobalType(\"AsyncGenerator\", 3, reportErrors2)) || emptyGenericType;\n    }\n    function getGlobalIterableType(reportErrors2) {\n      return deferredGlobalIterableType || (deferredGlobalIterableType = getGlobalType(\"Iterable\", 1, reportErrors2)) || emptyGenericType;\n    }\n    function getGlobalIteratorType(reportErrors2) {\n      return deferredGlobalIteratorType || (deferredGlobalIteratorType = getGlobalType(\"Iterator\", 3, reportErrors2)) || emptyGenericType;\n    }\n    function getGlobalIterableIteratorType(reportErrors2) {\n      return deferredGlobalIterableIteratorType || (deferredGlobalIterableIteratorType = getGlobalType(\"IterableIterator\", 1, reportErrors2)) || emptyGenericType;\n    }\n    function getGlobalGeneratorType(reportErrors2) {\n      return deferredGlobalGeneratorType || (deferredGlobalGeneratorType = getGlobalType(\"Generator\", 3, reportErrors2)) || emptyGenericType;\n    }\n    function getGlobalIteratorYieldResultType(reportErrors2) {\n      return deferredGlobalIteratorYieldResultType || (deferredGlobalIteratorYieldResultType = getGlobalType(\"IteratorYieldResult\", 1, reportErrors2)) || emptyGenericType;\n    }\n    function getGlobalIteratorReturnResultType(reportErrors2) {\n      return deferredGlobalIteratorReturnResultType || (deferredGlobalIteratorReturnResultType = getGlobalType(\"IteratorReturnResult\", 1, reportErrors2)) || emptyGenericType;\n    }\n    function getGlobalTypeOrUndefined(name, arity = 0) {\n      const symbol = getGlobalSymbol(name, 788968, void 0);\n      return symbol && getTypeOfGlobalSymbol(symbol, arity);\n    }\n    function getGlobalExtractSymbol() {\n      deferredGlobalExtractSymbol || (deferredGlobalExtractSymbol = getGlobalTypeAliasSymbol(\"Extract\", 2, true) || unknownSymbol);\n      return deferredGlobalExtractSymbol === unknownSymbol ? void 0 : deferredGlobalExtractSymbol;\n    }\n    function getGlobalOmitSymbol() {\n      deferredGlobalOmitSymbol || (deferredGlobalOmitSymbol = getGlobalTypeAliasSymbol(\"Omit\", 2, true) || unknownSymbol);\n      return deferredGlobalOmitSymbol === unknownSymbol ? void 0 : deferredGlobalOmitSymbol;\n    }\n    function getGlobalAwaitedSymbol(reportErrors2) {\n      deferredGlobalAwaitedSymbol || (deferredGlobalAwaitedSymbol = getGlobalTypeAliasSymbol(\"Awaited\", 1, reportErrors2) || (reportErrors2 ? unknownSymbol : void 0));\n      return deferredGlobalAwaitedSymbol === unknownSymbol ? void 0 : deferredGlobalAwaitedSymbol;\n    }\n    function getGlobalBigIntType() {\n      return deferredGlobalBigIntType || (deferredGlobalBigIntType = getGlobalType(\"BigInt\", 0, false)) || emptyObjectType;\n    }\n    function getGlobalClassDecoratorContextType(reportErrors2) {\n      var _a2;\n      return (_a2 = deferredGlobalClassDecoratorContextType != null ? deferredGlobalClassDecoratorContextType : deferredGlobalClassDecoratorContextType = getGlobalType(\"ClassDecoratorContext\", 1, reportErrors2)) != null ? _a2 : emptyGenericType;\n    }\n    function getGlobalClassMethodDecoratorContextType(reportErrors2) {\n      var _a2;\n      return (_a2 = deferredGlobalClassMethodDecoratorContextType != null ? deferredGlobalClassMethodDecoratorContextType : deferredGlobalClassMethodDecoratorContextType = getGlobalType(\"ClassMethodDecoratorContext\", 2, reportErrors2)) != null ? _a2 : emptyGenericType;\n    }\n    function getGlobalClassGetterDecoratorContextType(reportErrors2) {\n      var _a2;\n      return (_a2 = deferredGlobalClassGetterDecoratorContextType != null ? deferredGlobalClassGetterDecoratorContextType : deferredGlobalClassGetterDecoratorContextType = getGlobalType(\"ClassGetterDecoratorContext\", 2, reportErrors2)) != null ? _a2 : emptyGenericType;\n    }\n    function getGlobalClassSetterDecoratorContextType(reportErrors2) {\n      var _a2;\n      return (_a2 = deferredGlobalClassSetterDecoratorContextType != null ? deferredGlobalClassSetterDecoratorContextType : deferredGlobalClassSetterDecoratorContextType = getGlobalType(\"ClassSetterDecoratorContext\", 2, reportErrors2)) != null ? _a2 : emptyGenericType;\n    }\n    function getGlobalClassAccessorDecoratorContextType(reportErrors2) {\n      var _a2;\n      return (_a2 = deferredGlobalClassAccessorDecoratorContextType != null ? deferredGlobalClassAccessorDecoratorContextType : deferredGlobalClassAccessorDecoratorContextType = getGlobalType(\"ClassAccessorDecoratorContext\", 2, reportErrors2)) != null ? _a2 : emptyGenericType;\n    }\n    function getGlobalClassAccessorDecoratorTargetType(reportErrors2) {\n      var _a2;\n      return (_a2 = deferredGlobalClassAccessorDecoratorTargetType != null ? deferredGlobalClassAccessorDecoratorTargetType : deferredGlobalClassAccessorDecoratorTargetType = getGlobalType(\"ClassAccessorDecoratorTarget\", 2, reportErrors2)) != null ? _a2 : emptyGenericType;\n    }\n    function getGlobalClassAccessorDecoratorResultType(reportErrors2) {\n      var _a2;\n      return (_a2 = deferredGlobalClassAccessorDecoratorResultType != null ? deferredGlobalClassAccessorDecoratorResultType : deferredGlobalClassAccessorDecoratorResultType = getGlobalType(\"ClassAccessorDecoratorResult\", 2, reportErrors2)) != null ? _a2 : emptyGenericType;\n    }\n    function getGlobalClassFieldDecoratorContextType(reportErrors2) {\n      var _a2;\n      return (_a2 = deferredGlobalClassFieldDecoratorContextType != null ? deferredGlobalClassFieldDecoratorContextType : deferredGlobalClassFieldDecoratorContextType = getGlobalType(\"ClassFieldDecoratorContext\", 2, reportErrors2)) != null ? _a2 : emptyGenericType;\n    }\n    function getGlobalNaNSymbol() {\n      return deferredGlobalNaNSymbol || (deferredGlobalNaNSymbol = getGlobalValueSymbol(\"NaN\", false));\n    }\n    function getGlobalRecordSymbol() {\n      deferredGlobalRecordSymbol || (deferredGlobalRecordSymbol = getGlobalTypeAliasSymbol(\"Record\", 2, true) || unknownSymbol);\n      return deferredGlobalRecordSymbol === unknownSymbol ? void 0 : deferredGlobalRecordSymbol;\n    }\n    function createTypeFromGenericGlobalType(genericGlobalType, typeArguments) {\n      return genericGlobalType !== emptyGenericType ? createTypeReference(genericGlobalType, typeArguments) : emptyObjectType;\n    }\n    function createTypedPropertyDescriptorType(propertyType) {\n      return createTypeFromGenericGlobalType(getGlobalTypedPropertyDescriptorType(), [propertyType]);\n    }\n    function createIterableType(iteratedType) {\n      return createTypeFromGenericGlobalType(getGlobalIterableType(true), [iteratedType]);\n    }\n    function createArrayType(elementType, readonly) {\n      return createTypeFromGenericGlobalType(readonly ? globalReadonlyArrayType : globalArrayType, [elementType]);\n    }\n    function getTupleElementFlags(node) {\n      switch (node.kind) {\n        case 187:\n          return 2;\n        case 188:\n          return getRestTypeElementFlags(node);\n        case 199:\n          return node.questionToken ? 2 : node.dotDotDotToken ? getRestTypeElementFlags(node) : 1;\n        default:\n          return 1;\n      }\n    }\n    function getRestTypeElementFlags(node) {\n      return getArrayElementTypeNode(node.type) ? 4 : 8;\n    }\n    function getArrayOrTupleTargetType(node) {\n      const readonly = isReadonlyTypeOperator(node.parent);\n      const elementType = getArrayElementTypeNode(node);\n      if (elementType) {\n        return readonly ? globalReadonlyArrayType : globalArrayType;\n      }\n      const elementFlags = map(node.elements, getTupleElementFlags);\n      const missingName = some(node.elements, (e) => e.kind !== 199);\n      return getTupleTargetType(elementFlags, readonly, missingName ? void 0 : node.elements);\n    }\n    function isDeferredTypeReferenceNode(node, hasDefaultTypeArguments) {\n      return !!getAliasSymbolForTypeNode(node) || isResolvedByTypeAlias(node) && (node.kind === 185 ? mayResolveTypeAlias(node.elementType) : node.kind === 186 ? some(node.elements, mayResolveTypeAlias) : hasDefaultTypeArguments || some(node.typeArguments, mayResolveTypeAlias));\n    }\n    function isResolvedByTypeAlias(node) {\n      const parent2 = node.parent;\n      switch (parent2.kind) {\n        case 193:\n        case 199:\n        case 180:\n        case 189:\n        case 190:\n        case 196:\n        case 191:\n        case 195:\n        case 185:\n        case 186:\n          return isResolvedByTypeAlias(parent2);\n        case 262:\n          return true;\n      }\n      return false;\n    }\n    function mayResolveTypeAlias(node) {\n      switch (node.kind) {\n        case 180:\n          return isJSDocTypeReference(node) || !!(resolveTypeReferenceName(node, 788968).flags & 524288);\n        case 183:\n          return true;\n        case 195:\n          return node.operator !== 156 && mayResolveTypeAlias(node.type);\n        case 193:\n        case 187:\n        case 199:\n        case 319:\n        case 317:\n        case 318:\n        case 312:\n          return mayResolveTypeAlias(node.type);\n        case 188:\n          return node.type.kind !== 185 || mayResolveTypeAlias(node.type.elementType);\n        case 189:\n        case 190:\n          return some(node.types, mayResolveTypeAlias);\n        case 196:\n          return mayResolveTypeAlias(node.objectType) || mayResolveTypeAlias(node.indexType);\n        case 191:\n          return mayResolveTypeAlias(node.checkType) || mayResolveTypeAlias(node.extendsType) || mayResolveTypeAlias(node.trueType) || mayResolveTypeAlias(node.falseType);\n      }\n      return false;\n    }\n    function getTypeFromArrayOrTupleTypeNode(node) {\n      const links = getNodeLinks(node);\n      if (!links.resolvedType) {\n        const target = getArrayOrTupleTargetType(node);\n        if (target === emptyGenericType) {\n          links.resolvedType = emptyObjectType;\n        } else if (!(node.kind === 186 && some(node.elements, (e) => !!(getTupleElementFlags(e) & 8))) && isDeferredTypeReferenceNode(node)) {\n          links.resolvedType = node.kind === 186 && node.elements.length === 0 ? target : createDeferredTypeReference(target, node, void 0);\n        } else {\n          const elementTypes = node.kind === 185 ? [getTypeFromTypeNode(node.elementType)] : map(node.elements, getTypeFromTypeNode);\n          links.resolvedType = createNormalizedTypeReference(target, elementTypes);\n        }\n      }\n      return links.resolvedType;\n    }\n    function isReadonlyTypeOperator(node) {\n      return isTypeOperatorNode(node) && node.operator === 146;\n    }\n    function createTupleType(elementTypes, elementFlags, readonly = false, namedMemberDeclarations) {\n      const tupleTarget = getTupleTargetType(elementFlags || map(elementTypes, (_) => 1), readonly, namedMemberDeclarations);\n      return tupleTarget === emptyGenericType ? emptyObjectType : elementTypes.length ? createNormalizedTypeReference(tupleTarget, elementTypes) : tupleTarget;\n    }\n    function getTupleTargetType(elementFlags, readonly, namedMemberDeclarations) {\n      if (elementFlags.length === 1 && elementFlags[0] & 4) {\n        return readonly ? globalReadonlyArrayType : globalArrayType;\n      }\n      const key = map(elementFlags, (f) => f & 1 ? \"#\" : f & 2 ? \"?\" : f & 4 ? \".\" : \"*\").join() + (readonly ? \"R\" : \"\") + (namedMemberDeclarations && namedMemberDeclarations.length ? \",\" + map(namedMemberDeclarations, getNodeId).join(\",\") : \"\");\n      let type = tupleTypes.get(key);\n      if (!type) {\n        tupleTypes.set(key, type = createTupleTargetType(elementFlags, readonly, namedMemberDeclarations));\n      }\n      return type;\n    }\n    function createTupleTargetType(elementFlags, readonly, namedMemberDeclarations) {\n      const arity = elementFlags.length;\n      const minLength = countWhere(elementFlags, (f) => !!(f & (1 | 8)));\n      let typeParameters;\n      const properties = [];\n      let combinedFlags = 0;\n      if (arity) {\n        typeParameters = new Array(arity);\n        for (let i = 0; i < arity; i++) {\n          const typeParameter = typeParameters[i] = createTypeParameter();\n          const flags = elementFlags[i];\n          combinedFlags |= flags;\n          if (!(combinedFlags & 12)) {\n            const property = createSymbol(4 | (flags & 2 ? 16777216 : 0), \"\" + i, readonly ? 8 : 0);\n            property.links.tupleLabelDeclaration = namedMemberDeclarations == null ? void 0 : namedMemberDeclarations[i];\n            property.links.type = typeParameter;\n            properties.push(property);\n          }\n        }\n      }\n      const fixedLength = properties.length;\n      const lengthSymbol = createSymbol(4, \"length\", readonly ? 8 : 0);\n      if (combinedFlags & 12) {\n        lengthSymbol.links.type = numberType;\n      } else {\n        const literalTypes = [];\n        for (let i = minLength; i <= arity; i++)\n          literalTypes.push(getNumberLiteralType(i));\n        lengthSymbol.links.type = getUnionType(literalTypes);\n      }\n      properties.push(lengthSymbol);\n      const type = createObjectType(8 | 4);\n      type.typeParameters = typeParameters;\n      type.outerTypeParameters = void 0;\n      type.localTypeParameters = typeParameters;\n      type.instantiations = /* @__PURE__ */ new Map();\n      type.instantiations.set(getTypeListId(type.typeParameters), type);\n      type.target = type;\n      type.resolvedTypeArguments = type.typeParameters;\n      type.thisType = createTypeParameter();\n      type.thisType.isThisType = true;\n      type.thisType.constraint = type;\n      type.declaredProperties = properties;\n      type.declaredCallSignatures = emptyArray;\n      type.declaredConstructSignatures = emptyArray;\n      type.declaredIndexInfos = emptyArray;\n      type.elementFlags = elementFlags;\n      type.minLength = minLength;\n      type.fixedLength = fixedLength;\n      type.hasRestElement = !!(combinedFlags & 12);\n      type.combinedFlags = combinedFlags;\n      type.readonly = readonly;\n      type.labeledElementDeclarations = namedMemberDeclarations;\n      return type;\n    }\n    function createNormalizedTypeReference(target, typeArguments) {\n      return target.objectFlags & 8 ? createNormalizedTupleType(target, typeArguments) : createTypeReference(target, typeArguments);\n    }\n    function createNormalizedTupleType(target, elementTypes) {\n      var _a2, _b, _c;\n      if (!(target.combinedFlags & 14)) {\n        return createTypeReference(target, elementTypes);\n      }\n      if (target.combinedFlags & 8) {\n        const unionIndex = findIndex(elementTypes, (t, i) => !!(target.elementFlags[i] & 8 && t.flags & (131072 | 1048576)));\n        if (unionIndex >= 0) {\n          return checkCrossProductUnion(map(elementTypes, (t, i) => target.elementFlags[i] & 8 ? t : unknownType)) ? mapType(elementTypes[unionIndex], (t) => createNormalizedTupleType(target, replaceElement(elementTypes, unionIndex, t))) : errorType;\n        }\n      }\n      const expandedTypes = [];\n      const expandedFlags = [];\n      let expandedDeclarations = [];\n      let lastRequiredIndex = -1;\n      let firstRestIndex = -1;\n      let lastOptionalOrRestIndex = -1;\n      for (let i = 0; i < elementTypes.length; i++) {\n        const type = elementTypes[i];\n        const flags = target.elementFlags[i];\n        if (flags & 8) {\n          if (type.flags & 58982400 || isGenericMappedType(type)) {\n            addElement(type, 8, (_a2 = target.labeledElementDeclarations) == null ? void 0 : _a2[i]);\n          } else if (isTupleType(type)) {\n            const elements = getTypeArguments(type);\n            if (elements.length + expandedTypes.length >= 1e4) {\n              error(currentNode, isPartOfTypeNode(currentNode) ? Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent : Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent);\n              return errorType;\n            }\n            forEach(elements, (t, n) => {\n              var _a3;\n              return addElement(t, type.target.elementFlags[n], (_a3 = type.target.labeledElementDeclarations) == null ? void 0 : _a3[n]);\n            });\n          } else {\n            addElement(isArrayLikeType(type) && getIndexTypeOfType(type, numberType) || errorType, 4, (_b = target.labeledElementDeclarations) == null ? void 0 : _b[i]);\n          }\n        } else {\n          addElement(type, flags, (_c = target.labeledElementDeclarations) == null ? void 0 : _c[i]);\n        }\n      }\n      for (let i = 0; i < lastRequiredIndex; i++) {\n        if (expandedFlags[i] & 2)\n          expandedFlags[i] = 1;\n      }\n      if (firstRestIndex >= 0 && firstRestIndex < lastOptionalOrRestIndex) {\n        expandedTypes[firstRestIndex] = getUnionType(sameMap(expandedTypes.slice(firstRestIndex, lastOptionalOrRestIndex + 1), (t, i) => expandedFlags[firstRestIndex + i] & 8 ? getIndexedAccessType(t, numberType) : t));\n        expandedTypes.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex);\n        expandedFlags.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex);\n        expandedDeclarations == null ? void 0 : expandedDeclarations.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex);\n      }\n      const tupleTarget = getTupleTargetType(expandedFlags, target.readonly, expandedDeclarations);\n      return tupleTarget === emptyGenericType ? emptyObjectType : expandedFlags.length ? createTypeReference(tupleTarget, expandedTypes) : tupleTarget;\n      function addElement(type, flags, declaration) {\n        if (flags & 1) {\n          lastRequiredIndex = expandedFlags.length;\n        }\n        if (flags & 4 && firstRestIndex < 0) {\n          firstRestIndex = expandedFlags.length;\n        }\n        if (flags & (2 | 4)) {\n          lastOptionalOrRestIndex = expandedFlags.length;\n        }\n        expandedTypes.push(flags & 2 ? addOptionality(type, true) : type);\n        expandedFlags.push(flags);\n        if (expandedDeclarations && declaration) {\n          expandedDeclarations.push(declaration);\n        } else {\n          expandedDeclarations = void 0;\n        }\n      }\n    }\n    function sliceTupleType(type, index, endSkipCount = 0) {\n      const target = type.target;\n      const endIndex = getTypeReferenceArity(type) - endSkipCount;\n      return index > target.fixedLength ? getRestArrayTypeOfTupleType(type) || createTupleType(emptyArray) : createTupleType(getTypeArguments(type).slice(index, endIndex), target.elementFlags.slice(index, endIndex), false, target.labeledElementDeclarations && target.labeledElementDeclarations.slice(index, endIndex));\n    }\n    function getKnownKeysOfTupleType(type) {\n      return getUnionType(append(arrayOf(type.target.fixedLength, (i) => getStringLiteralType(\"\" + i)), getIndexType(type.target.readonly ? globalReadonlyArrayType : globalArrayType)));\n    }\n    function getStartElementCount(type, flags) {\n      const index = findIndex(type.elementFlags, (f) => !(f & flags));\n      return index >= 0 ? index : type.elementFlags.length;\n    }\n    function getEndElementCount(type, flags) {\n      return type.elementFlags.length - findLastIndex(type.elementFlags, (f) => !(f & flags)) - 1;\n    }\n    function getTypeFromOptionalTypeNode(node) {\n      return addOptionality(getTypeFromTypeNode(node.type), true);\n    }\n    function getTypeId(type) {\n      return type.id;\n    }\n    function containsType(types, type) {\n      return binarySearch(types, type, getTypeId, compareValues) >= 0;\n    }\n    function insertType(types, type) {\n      const index = binarySearch(types, type, getTypeId, compareValues);\n      if (index < 0) {\n        types.splice(~index, 0, type);\n        return true;\n      }\n      return false;\n    }\n    function addTypeToUnion(typeSet, includes, type) {\n      const flags = type.flags;\n      if (flags & 1048576) {\n        return addTypesToUnion(typeSet, includes | (isNamedUnionType(type) ? 1048576 : 0), type.types);\n      }\n      if (!(flags & 131072)) {\n        includes |= flags & 205258751;\n        if (flags & 465829888)\n          includes |= 33554432;\n        if (type === wildcardType)\n          includes |= 8388608;\n        if (!strictNullChecks && flags & 98304) {\n          if (!(getObjectFlags(type) & 65536))\n            includes |= 4194304;\n        } else {\n          const len = typeSet.length;\n          const index = len && type.id > typeSet[len - 1].id ? ~len : binarySearch(typeSet, type, getTypeId, compareValues);\n          if (index < 0) {\n            typeSet.splice(~index, 0, type);\n          }\n        }\n      }\n      return includes;\n    }\n    function addTypesToUnion(typeSet, includes, types) {\n      for (const type of types) {\n        includes = addTypeToUnion(typeSet, includes, type);\n      }\n      return includes;\n    }\n    function removeSubtypes(types, hasObjectTypes) {\n      var _a2;\n      if (types.length < 2) {\n        return types;\n      }\n      const id = getTypeListId(types);\n      const match = subtypeReductionCache.get(id);\n      if (match) {\n        return match;\n      }\n      const hasEmptyObject = hasObjectTypes && some(types, (t) => !!(t.flags & 524288) && !isGenericMappedType(t) && isEmptyResolvedType(resolveStructuredTypeMembers(t)));\n      const len = types.length;\n      let i = len;\n      let count = 0;\n      while (i > 0) {\n        i--;\n        const source = types[i];\n        if (hasEmptyObject || source.flags & 469499904) {\n          const keyProperty = source.flags & (524288 | 2097152 | 58982400) ? find(getPropertiesOfType(source), (p) => isUnitType(getTypeOfSymbol(p))) : void 0;\n          const keyPropertyType = keyProperty && getRegularTypeOfLiteralType(getTypeOfSymbol(keyProperty));\n          for (const target of types) {\n            if (source !== target) {\n              if (count === 1e5) {\n                const estimatedCount = count / (len - i) * len;\n                if (estimatedCount > 1e6) {\n                  (_a2 = tracing) == null ? void 0 : _a2.instant(tracing.Phase.CheckTypes, \"removeSubtypes_DepthLimit\", { typeIds: types.map((t) => t.id) });\n                  error(currentNode, Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);\n                  return void 0;\n                }\n              }\n              count++;\n              if (keyProperty && target.flags & (524288 | 2097152 | 58982400)) {\n                const t = getTypeOfPropertyOfType(target, keyProperty.escapedName);\n                if (t && isUnitType(t) && getRegularTypeOfLiteralType(t) !== keyPropertyType) {\n                  continue;\n                }\n              }\n              if (isTypeRelatedTo(source, target, strictSubtypeRelation) && (!(getObjectFlags(getTargetType(source)) & 1) || !(getObjectFlags(getTargetType(target)) & 1) || isTypeDerivedFrom(source, target))) {\n                orderedRemoveItemAt(types, i);\n                break;\n              }\n            }\n          }\n        }\n      }\n      subtypeReductionCache.set(id, types);\n      return types;\n    }\n    function removeRedundantLiteralTypes(types, includes, reduceVoidUndefined) {\n      let i = types.length;\n      while (i > 0) {\n        i--;\n        const t = types[i];\n        const flags = t.flags;\n        const remove = flags & (128 | 134217728 | 268435456) && includes & 4 || flags & 256 && includes & 8 || flags & 2048 && includes & 64 || flags & 8192 && includes & 4096 || reduceVoidUndefined && flags & 32768 && includes & 16384 || isFreshLiteralType(t) && containsType(types, t.regularType);\n        if (remove) {\n          orderedRemoveItemAt(types, i);\n        }\n      }\n    }\n    function removeStringLiteralsMatchedByTemplateLiterals(types) {\n      const templates = filter(types, (t) => !!(t.flags & 134217728) && isPatternLiteralType(t));\n      if (templates.length) {\n        let i = types.length;\n        while (i > 0) {\n          i--;\n          const t = types[i];\n          if (t.flags & 128 && some(templates, (template) => isTypeMatchedByTemplateLiteralType(t, template))) {\n            orderedRemoveItemAt(types, i);\n          }\n        }\n      }\n    }\n    function isNamedUnionType(type) {\n      return !!(type.flags & 1048576 && (type.aliasSymbol || type.origin));\n    }\n    function addNamedUnions(namedUnions, types) {\n      for (const t of types) {\n        if (t.flags & 1048576) {\n          const origin = t.origin;\n          if (t.aliasSymbol || origin && !(origin.flags & 1048576)) {\n            pushIfUnique(namedUnions, t);\n          } else if (origin && origin.flags & 1048576) {\n            addNamedUnions(namedUnions, origin.types);\n          }\n        }\n      }\n    }\n    function createOriginUnionOrIntersectionType(flags, types) {\n      const result = createOriginType(flags);\n      result.types = types;\n      return result;\n    }\n    function getUnionType(types, unionReduction = 1, aliasSymbol, aliasTypeArguments, origin) {\n      if (types.length === 0) {\n        return neverType;\n      }\n      if (types.length === 1) {\n        return types[0];\n      }\n      let typeSet = [];\n      const includes = addTypesToUnion(typeSet, 0, types);\n      if (unionReduction !== 0) {\n        if (includes & 3) {\n          return includes & 1 ? includes & 8388608 ? wildcardType : anyType : includes & 65536 || containsType(typeSet, unknownType) ? unknownType : nonNullUnknownType;\n        }\n        if (includes & 32768) {\n          if (typeSet.length >= 2 && typeSet[0] === undefinedType && typeSet[1] === missingType) {\n            orderedRemoveItemAt(typeSet, 1);\n          }\n        }\n        if (includes & (32 | 2944 | 8192 | 134217728 | 268435456) || includes & 16384 && includes & 32768) {\n          removeRedundantLiteralTypes(typeSet, includes, !!(unionReduction & 2));\n        }\n        if (includes & 128 && includes & 134217728) {\n          removeStringLiteralsMatchedByTemplateLiterals(typeSet);\n        }\n        if (unionReduction === 2) {\n          typeSet = removeSubtypes(typeSet, !!(includes & 524288));\n          if (!typeSet) {\n            return errorType;\n          }\n        }\n        if (typeSet.length === 0) {\n          return includes & 65536 ? includes & 4194304 ? nullType : nullWideningType : includes & 32768 ? includes & 4194304 ? undefinedType : undefinedWideningType : neverType;\n        }\n      }\n      if (!origin && includes & 1048576) {\n        const namedUnions = [];\n        addNamedUnions(namedUnions, types);\n        const reducedTypes = [];\n        for (const t of typeSet) {\n          if (!some(namedUnions, (union) => containsType(union.types, t))) {\n            reducedTypes.push(t);\n          }\n        }\n        if (!aliasSymbol && namedUnions.length === 1 && reducedTypes.length === 0) {\n          return namedUnions[0];\n        }\n        const namedTypesCount = reduceLeft(namedUnions, (sum, union) => sum + union.types.length, 0);\n        if (namedTypesCount + reducedTypes.length === typeSet.length) {\n          for (const t of namedUnions) {\n            insertType(reducedTypes, t);\n          }\n          origin = createOriginUnionOrIntersectionType(1048576, reducedTypes);\n        }\n      }\n      const objectFlags = (includes & 36323363 ? 0 : 32768) | (includes & 2097152 ? 16777216 : 0);\n      return getUnionTypeFromSortedList(typeSet, objectFlags, aliasSymbol, aliasTypeArguments, origin);\n    }\n    function getUnionOrIntersectionTypePredicate(signatures, kind) {\n      let first2;\n      const types = [];\n      for (const sig of signatures) {\n        const pred = getTypePredicateOfSignature(sig);\n        if (!pred || pred.kind === 2 || pred.kind === 3) {\n          if (kind !== 2097152) {\n            continue;\n          } else {\n            return;\n          }\n        }\n        if (first2) {\n          if (!typePredicateKindsMatch(first2, pred)) {\n            return void 0;\n          }\n        } else {\n          first2 = pred;\n        }\n        types.push(pred.type);\n      }\n      if (!first2) {\n        return void 0;\n      }\n      const compositeType = getUnionOrIntersectionType(types, kind);\n      return createTypePredicate(first2.kind, first2.parameterName, first2.parameterIndex, compositeType);\n    }\n    function typePredicateKindsMatch(a, b) {\n      return a.kind === b.kind && a.parameterIndex === b.parameterIndex;\n    }\n    function getUnionTypeFromSortedList(types, precomputedObjectFlags, aliasSymbol, aliasTypeArguments, origin) {\n      if (types.length === 0) {\n        return neverType;\n      }\n      if (types.length === 1) {\n        return types[0];\n      }\n      const typeKey = !origin ? getTypeListId(types) : origin.flags & 1048576 ? `|${getTypeListId(origin.types)}` : origin.flags & 2097152 ? `&${getTypeListId(origin.types)}` : `#${origin.type.id}|${getTypeListId(types)}`;\n      const id = typeKey + getAliasId(aliasSymbol, aliasTypeArguments);\n      let type = unionTypes.get(id);\n      if (!type) {\n        type = createType(1048576);\n        type.objectFlags = precomputedObjectFlags | getPropagatingFlagsOfTypes(types, 98304);\n        type.types = types;\n        type.origin = origin;\n        type.aliasSymbol = aliasSymbol;\n        type.aliasTypeArguments = aliasTypeArguments;\n        if (types.length === 2 && types[0].flags & 512 && types[1].flags & 512) {\n          type.flags |= 16;\n          type.intrinsicName = \"boolean\";\n        }\n        unionTypes.set(id, type);\n      }\n      return type;\n    }\n    function getTypeFromUnionTypeNode(node) {\n      const links = getNodeLinks(node);\n      if (!links.resolvedType) {\n        const aliasSymbol = getAliasSymbolForTypeNode(node);\n        links.resolvedType = getUnionType(map(node.types, getTypeFromTypeNode), 1, aliasSymbol, getTypeArgumentsForAliasSymbol(aliasSymbol));\n      }\n      return links.resolvedType;\n    }\n    function addTypeToIntersection(typeSet, includes, type) {\n      const flags = type.flags;\n      if (flags & 2097152) {\n        return addTypesToIntersection(typeSet, includes, type.types);\n      }\n      if (isEmptyAnonymousObjectType(type)) {\n        if (!(includes & 16777216)) {\n          includes |= 16777216;\n          typeSet.set(type.id.toString(), type);\n        }\n      } else {\n        if (flags & 3) {\n          if (type === wildcardType)\n            includes |= 8388608;\n        } else if (strictNullChecks || !(flags & 98304)) {\n          if (type === missingType) {\n            includes |= 262144;\n            type = undefinedType;\n          }\n          if (!typeSet.has(type.id.toString())) {\n            if (type.flags & 109472 && includes & 109472) {\n              includes |= 67108864;\n            }\n            typeSet.set(type.id.toString(), type);\n          }\n        }\n        includes |= flags & 205258751;\n      }\n      return includes;\n    }\n    function addTypesToIntersection(typeSet, includes, types) {\n      for (const type of types) {\n        includes = addTypeToIntersection(typeSet, includes, getRegularTypeOfLiteralType(type));\n      }\n      return includes;\n    }\n    function removeRedundantSupertypes(types, includes) {\n      let i = types.length;\n      while (i > 0) {\n        i--;\n        const t = types[i];\n        const remove = t.flags & 4 && includes & (128 | 134217728 | 268435456) || t.flags & 8 && includes & 256 || t.flags & 64 && includes & 2048 || t.flags & 4096 && includes & 8192 || t.flags & 16384 && includes & 32768 || isEmptyAnonymousObjectType(t) && includes & 470302716;\n        if (remove) {\n          orderedRemoveItemAt(types, i);\n        }\n      }\n    }\n    function eachUnionContains(unionTypes2, type) {\n      for (const u of unionTypes2) {\n        if (!containsType(u.types, type)) {\n          const primitive = type.flags & 128 ? stringType : type.flags & 256 ? numberType : type.flags & 2048 ? bigintType : type.flags & 8192 ? esSymbolType : void 0;\n          if (!primitive || !containsType(u.types, primitive)) {\n            return false;\n          }\n        }\n      }\n      return true;\n    }\n    function extractRedundantTemplateLiterals(types) {\n      let i = types.length;\n      const literals = filter(types, (t) => !!(t.flags & 128));\n      while (i > 0) {\n        i--;\n        const t = types[i];\n        if (!(t.flags & 134217728))\n          continue;\n        for (const t2 of literals) {\n          if (isTypeSubtypeOf(t2, t)) {\n            orderedRemoveItemAt(types, i);\n            break;\n          } else if (isPatternLiteralType(t)) {\n            return true;\n          }\n        }\n      }\n      return false;\n    }\n    function eachIsUnionContaining(types, flag) {\n      return every(types, (t) => !!(t.flags & 1048576) && some(t.types, (tt) => !!(tt.flags & flag)));\n    }\n    function removeFromEach(types, flag) {\n      for (let i = 0; i < types.length; i++) {\n        types[i] = filterType(types[i], (t) => !(t.flags & flag));\n      }\n    }\n    function intersectUnionsOfPrimitiveTypes(types) {\n      let unionTypes2;\n      const index = findIndex(types, (t) => !!(getObjectFlags(t) & 32768));\n      if (index < 0) {\n        return false;\n      }\n      let i = index + 1;\n      while (i < types.length) {\n        const t = types[i];\n        if (getObjectFlags(t) & 32768) {\n          (unionTypes2 || (unionTypes2 = [types[index]])).push(t);\n          orderedRemoveItemAt(types, i);\n        } else {\n          i++;\n        }\n      }\n      if (!unionTypes2) {\n        return false;\n      }\n      const checked = [];\n      const result = [];\n      for (const u of unionTypes2) {\n        for (const t of u.types) {\n          if (insertType(checked, t)) {\n            if (eachUnionContains(unionTypes2, t)) {\n              insertType(result, t);\n            }\n          }\n        }\n      }\n      types[index] = getUnionTypeFromSortedList(result, 32768);\n      return true;\n    }\n    function createIntersectionType(types, aliasSymbol, aliasTypeArguments) {\n      const result = createType(2097152);\n      result.objectFlags = getPropagatingFlagsOfTypes(types, 98304);\n      result.types = types;\n      result.aliasSymbol = aliasSymbol;\n      result.aliasTypeArguments = aliasTypeArguments;\n      return result;\n    }\n    function getIntersectionType(types, aliasSymbol, aliasTypeArguments, noSupertypeReduction) {\n      const typeMembershipMap = /* @__PURE__ */ new Map();\n      const includes = addTypesToIntersection(typeMembershipMap, 0, types);\n      const typeSet = arrayFrom(typeMembershipMap.values());\n      if (includes & 131072) {\n        return contains(typeSet, silentNeverType) ? silentNeverType : neverType;\n      }\n      if (strictNullChecks && includes & 98304 && includes & (524288 | 67108864 | 16777216) || includes & 67108864 && includes & (469892092 & ~67108864) || includes & 402653316 && includes & (469892092 & ~402653316) || includes & 296 && includes & (469892092 & ~296) || includes & 2112 && includes & (469892092 & ~2112) || includes & 12288 && includes & (469892092 & ~12288) || includes & 49152 && includes & (469892092 & ~49152)) {\n        return neverType;\n      }\n      if (includes & 134217728 && includes & 128 && extractRedundantTemplateLiterals(typeSet)) {\n        return neverType;\n      }\n      if (includes & 1) {\n        return includes & 8388608 ? wildcardType : anyType;\n      }\n      if (!strictNullChecks && includes & 98304) {\n        return includes & 16777216 ? neverType : includes & 32768 ? undefinedType : nullType;\n      }\n      if (includes & 4 && includes & (128 | 134217728 | 268435456) || includes & 8 && includes & 256 || includes & 64 && includes & 2048 || includes & 4096 && includes & 8192 || includes & 16384 && includes & 32768 || includes & 16777216 && includes & 470302716) {\n        if (!noSupertypeReduction)\n          removeRedundantSupertypes(typeSet, includes);\n      }\n      if (includes & 262144) {\n        typeSet[typeSet.indexOf(undefinedType)] = missingType;\n      }\n      if (typeSet.length === 0) {\n        return unknownType;\n      }\n      if (typeSet.length === 1) {\n        return typeSet[0];\n      }\n      const id = getTypeListId(typeSet) + getAliasId(aliasSymbol, aliasTypeArguments);\n      let result = intersectionTypes.get(id);\n      if (!result) {\n        if (includes & 1048576) {\n          if (intersectUnionsOfPrimitiveTypes(typeSet)) {\n            result = getIntersectionType(typeSet, aliasSymbol, aliasTypeArguments);\n          } else if (eachIsUnionContaining(typeSet, 32768)) {\n            const containedUndefinedType = some(typeSet, containsMissingType) ? missingType : undefinedType;\n            removeFromEach(typeSet, 32768);\n            result = getUnionType([getIntersectionType(typeSet), containedUndefinedType], 1, aliasSymbol, aliasTypeArguments);\n          } else if (eachIsUnionContaining(typeSet, 65536)) {\n            removeFromEach(typeSet, 65536);\n            result = getUnionType([getIntersectionType(typeSet), nullType], 1, aliasSymbol, aliasTypeArguments);\n          } else {\n            if (!checkCrossProductUnion(typeSet)) {\n              return errorType;\n            }\n            const constituents = getCrossProductIntersections(typeSet);\n            const origin = some(constituents, (t) => !!(t.flags & 2097152)) && getConstituentCountOfTypes(constituents) > getConstituentCountOfTypes(typeSet) ? createOriginUnionOrIntersectionType(2097152, typeSet) : void 0;\n            result = getUnionType(constituents, 1, aliasSymbol, aliasTypeArguments, origin);\n          }\n        } else {\n          result = createIntersectionType(typeSet, aliasSymbol, aliasTypeArguments);\n        }\n        intersectionTypes.set(id, result);\n      }\n      return result;\n    }\n    function getCrossProductUnionSize(types) {\n      return reduceLeft(types, (n, t) => t.flags & 1048576 ? n * t.types.length : t.flags & 131072 ? 0 : n, 1);\n    }\n    function checkCrossProductUnion(types) {\n      var _a2;\n      const size = getCrossProductUnionSize(types);\n      if (size >= 1e5) {\n        (_a2 = tracing) == null ? void 0 : _a2.instant(tracing.Phase.CheckTypes, \"checkCrossProductUnion_DepthLimit\", { typeIds: types.map((t) => t.id), size });\n        error(currentNode, Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);\n        return false;\n      }\n      return true;\n    }\n    function getCrossProductIntersections(types) {\n      const count = getCrossProductUnionSize(types);\n      const intersections = [];\n      for (let i = 0; i < count; i++) {\n        const constituents = types.slice();\n        let n = i;\n        for (let j = types.length - 1; j >= 0; j--) {\n          if (types[j].flags & 1048576) {\n            const sourceTypes = types[j].types;\n            const length2 = sourceTypes.length;\n            constituents[j] = sourceTypes[n % length2];\n            n = Math.floor(n / length2);\n          }\n        }\n        const t = getIntersectionType(constituents);\n        if (!(t.flags & 131072))\n          intersections.push(t);\n      }\n      return intersections;\n    }\n    function getConstituentCount(type) {\n      return !(type.flags & 3145728) || type.aliasSymbol ? 1 : type.flags & 1048576 && type.origin ? getConstituentCount(type.origin) : getConstituentCountOfTypes(type.types);\n    }\n    function getConstituentCountOfTypes(types) {\n      return reduceLeft(types, (n, t) => n + getConstituentCount(t), 0);\n    }\n    function getTypeFromIntersectionTypeNode(node) {\n      const links = getNodeLinks(node);\n      if (!links.resolvedType) {\n        const aliasSymbol = getAliasSymbolForTypeNode(node);\n        const types = map(node.types, getTypeFromTypeNode);\n        const noSupertypeReduction = types.length === 2 && !!(types[0].flags & (4 | 8 | 64)) && types[1] === emptyTypeLiteralType;\n        links.resolvedType = getIntersectionType(types, aliasSymbol, getTypeArgumentsForAliasSymbol(aliasSymbol), noSupertypeReduction);\n      }\n      return links.resolvedType;\n    }\n    function createIndexType(type, stringsOnly) {\n      const result = createType(4194304);\n      result.type = type;\n      result.stringsOnly = stringsOnly;\n      return result;\n    }\n    function createOriginIndexType(type) {\n      const result = createOriginType(4194304);\n      result.type = type;\n      return result;\n    }\n    function getIndexTypeForGenericType(type, stringsOnly) {\n      return stringsOnly ? type.resolvedStringIndexType || (type.resolvedStringIndexType = createIndexType(type, true)) : type.resolvedIndexType || (type.resolvedIndexType = createIndexType(type, false));\n    }\n    function getIndexTypeForMappedType(type, stringsOnly, noIndexSignatures) {\n      const typeParameter = getTypeParameterFromMappedType(type);\n      const constraintType = getConstraintTypeFromMappedType(type);\n      const nameType = getNameTypeFromMappedType(type.target || type);\n      if (!nameType && !noIndexSignatures) {\n        return constraintType;\n      }\n      const keyTypes = [];\n      if (isMappedTypeWithKeyofConstraintDeclaration(type)) {\n        if (!isGenericIndexType(constraintType)) {\n          const modifiersType = getApparentType(getModifiersTypeFromMappedType(type));\n          forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(modifiersType, 8576, stringsOnly, addMemberForKeyType);\n        } else {\n          return getIndexTypeForGenericType(type, stringsOnly);\n        }\n      } else {\n        forEachType(getLowerBoundOfKeyType(constraintType), addMemberForKeyType);\n      }\n      if (isGenericIndexType(constraintType)) {\n        forEachType(constraintType, addMemberForKeyType);\n      }\n      const result = noIndexSignatures ? filterType(getUnionType(keyTypes), (t) => !(t.flags & (1 | 4))) : getUnionType(keyTypes);\n      if (result.flags & 1048576 && constraintType.flags & 1048576 && getTypeListId(result.types) === getTypeListId(constraintType.types)) {\n        return constraintType;\n      }\n      return result;\n      function addMemberForKeyType(keyType) {\n        const propNameType = nameType ? instantiateType(nameType, appendTypeMapping(type.mapper, typeParameter, keyType)) : keyType;\n        keyTypes.push(propNameType === stringType ? stringOrNumberType : propNameType);\n      }\n    }\n    function hasDistributiveNameType(mappedType) {\n      const typeVariable = getTypeParameterFromMappedType(mappedType);\n      return isDistributive(getNameTypeFromMappedType(mappedType) || typeVariable);\n      function isDistributive(type) {\n        return type.flags & (3 | 134348796 | 131072 | 262144 | 524288 | 67108864) ? true : type.flags & 16777216 ? type.root.isDistributive && type.checkType === typeVariable : type.flags & (3145728 | 134217728) ? every(type.types, isDistributive) : type.flags & 8388608 ? isDistributive(type.objectType) && isDistributive(type.indexType) : type.flags & 33554432 ? isDistributive(type.baseType) && isDistributive(type.constraint) : type.flags & 268435456 ? isDistributive(type.type) : false;\n      }\n    }\n    function getLiteralTypeFromPropertyName(name) {\n      if (isPrivateIdentifier(name)) {\n        return neverType;\n      }\n      return isIdentifier(name) ? getStringLiteralType(unescapeLeadingUnderscores(name.escapedText)) : getRegularTypeOfLiteralType(isComputedPropertyName(name) ? checkComputedPropertyName(name) : checkExpression(name));\n    }\n    function getLiteralTypeFromProperty(prop, include, includeNonPublic) {\n      if (includeNonPublic || !(getDeclarationModifierFlagsFromSymbol(prop) & 24)) {\n        let type = getSymbolLinks(getLateBoundSymbol(prop)).nameType;\n        if (!type) {\n          const name = getNameOfDeclaration(prop.valueDeclaration);\n          type = prop.escapedName === \"default\" ? getStringLiteralType(\"default\") : name && getLiteralTypeFromPropertyName(name) || (!isKnownSymbol(prop) ? getStringLiteralType(symbolName(prop)) : void 0);\n        }\n        if (type && type.flags & include) {\n          return type;\n        }\n      }\n      return neverType;\n    }\n    function isKeyTypeIncluded(keyType, include) {\n      return !!(keyType.flags & include || keyType.flags & 2097152 && some(keyType.types, (t) => isKeyTypeIncluded(t, include)));\n    }\n    function getLiteralTypeFromProperties(type, include, includeOrigin) {\n      const origin = includeOrigin && (getObjectFlags(type) & (3 | 4) || type.aliasSymbol) ? createOriginIndexType(type) : void 0;\n      const propertyTypes = map(getPropertiesOfType(type), (prop) => getLiteralTypeFromProperty(prop, include));\n      const indexKeyTypes = map(getIndexInfosOfType(type), (info) => info !== enumNumberIndexInfo && isKeyTypeIncluded(info.keyType, include) ? info.keyType === stringType && include & 8 ? stringOrNumberType : info.keyType : neverType);\n      return getUnionType(concatenate(propertyTypes, indexKeyTypes), 1, void 0, void 0, origin);\n    }\n    function isPossiblyReducibleByInstantiation(type) {\n      const uniqueFilled = getUniqueLiteralFilledInstantiation(type);\n      return getReducedType(uniqueFilled) !== uniqueFilled;\n    }\n    function shouldDeferIndexType(type) {\n      return !!(type.flags & 58982400 || isGenericTupleType(type) || isGenericMappedType(type) && !hasDistributiveNameType(type) || type.flags & 1048576 && some(type.types, isPossiblyReducibleByInstantiation) || type.flags & 2097152 && maybeTypeOfKind(type, 465829888) && some(type.types, isEmptyAnonymousObjectType));\n    }\n    function getIndexType(type, stringsOnly = keyofStringsOnly, noIndexSignatures) {\n      type = getReducedType(type);\n      return shouldDeferIndexType(type) ? getIndexTypeForGenericType(type, stringsOnly) : type.flags & 1048576 ? getIntersectionType(map(type.types, (t) => getIndexType(t, stringsOnly, noIndexSignatures))) : type.flags & 2097152 ? getUnionType(map(type.types, (t) => getIndexType(t, stringsOnly, noIndexSignatures))) : getObjectFlags(type) & 32 ? getIndexTypeForMappedType(type, stringsOnly, noIndexSignatures) : type === wildcardType ? wildcardType : type.flags & 2 ? neverType : type.flags & (1 | 131072) ? keyofConstraintType : getLiteralTypeFromProperties(type, (noIndexSignatures ? 128 : 402653316) | (stringsOnly ? 0 : 296 | 12288), stringsOnly === keyofStringsOnly && !noIndexSignatures);\n    }\n    function getExtractStringType(type) {\n      if (keyofStringsOnly) {\n        return type;\n      }\n      const extractTypeAlias = getGlobalExtractSymbol();\n      return extractTypeAlias ? getTypeAliasInstantiation(extractTypeAlias, [type, stringType]) : stringType;\n    }\n    function getIndexTypeOrString(type) {\n      const indexType = getExtractStringType(getIndexType(type));\n      return indexType.flags & 131072 ? stringType : indexType;\n    }\n    function getTypeFromTypeOperatorNode(node) {\n      const links = getNodeLinks(node);\n      if (!links.resolvedType) {\n        switch (node.operator) {\n          case 141:\n            links.resolvedType = getIndexType(getTypeFromTypeNode(node.type));\n            break;\n          case 156:\n            links.resolvedType = node.type.kind === 153 ? getESSymbolLikeTypeForNode(walkUpParenthesizedTypes(node.parent)) : errorType;\n            break;\n          case 146:\n            links.resolvedType = getTypeFromTypeNode(node.type);\n            break;\n          default:\n            throw Debug.assertNever(node.operator);\n        }\n      }\n      return links.resolvedType;\n    }\n    function getTypeFromTemplateTypeNode(node) {\n      const links = getNodeLinks(node);\n      if (!links.resolvedType) {\n        links.resolvedType = getTemplateLiteralType([node.head.text, ...map(node.templateSpans, (span) => span.literal.text)], map(node.templateSpans, (span) => getTypeFromTypeNode(span.type)));\n      }\n      return links.resolvedType;\n    }\n    function getTemplateLiteralType(texts, types) {\n      const unionIndex = findIndex(types, (t) => !!(t.flags & (131072 | 1048576)));\n      if (unionIndex >= 0) {\n        return checkCrossProductUnion(types) ? mapType(types[unionIndex], (t) => getTemplateLiteralType(texts, replaceElement(types, unionIndex, t))) : errorType;\n      }\n      if (contains(types, wildcardType)) {\n        return wildcardType;\n      }\n      const newTypes = [];\n      const newTexts = [];\n      let text = texts[0];\n      if (!addSpans(texts, types)) {\n        return stringType;\n      }\n      if (newTypes.length === 0) {\n        return getStringLiteralType(text);\n      }\n      newTexts.push(text);\n      if (every(newTexts, (t) => t === \"\")) {\n        if (every(newTypes, (t) => !!(t.flags & 4))) {\n          return stringType;\n        }\n        if (newTypes.length === 1 && isPatternLiteralType(newTypes[0])) {\n          return newTypes[0];\n        }\n      }\n      const id = `${getTypeListId(newTypes)}|${map(newTexts, (t) => t.length).join(\",\")}|${newTexts.join(\"\")}`;\n      let type = templateLiteralTypes.get(id);\n      if (!type) {\n        templateLiteralTypes.set(id, type = createTemplateLiteralType(newTexts, newTypes));\n      }\n      return type;\n      function addSpans(texts2, types2) {\n        const isTextsArray = isArray(texts2);\n        for (let i = 0; i < types2.length; i++) {\n          const t = types2[i];\n          const addText = isTextsArray ? texts2[i + 1] : texts2;\n          if (t.flags & (2944 | 65536 | 32768)) {\n            text += getTemplateStringForType(t) || \"\";\n            text += addText;\n            if (!isTextsArray)\n              return true;\n          } else if (t.flags & 134217728) {\n            text += t.texts[0];\n            if (!addSpans(t.texts, t.types))\n              return false;\n            text += addText;\n            if (!isTextsArray)\n              return true;\n          } else if (isGenericIndexType(t) || isPatternLiteralPlaceholderType(t)) {\n            newTypes.push(t);\n            newTexts.push(text);\n            text = addText;\n          } else if (t.flags & 2097152) {\n            const added = addSpans(texts2[i + 1], t.types);\n            if (!added)\n              return false;\n          } else if (isTextsArray) {\n            return false;\n          }\n        }\n        return true;\n      }\n    }\n    function getTemplateStringForType(type) {\n      return type.flags & 128 ? type.value : type.flags & 256 ? \"\" + type.value : type.flags & 2048 ? pseudoBigIntToString(type.value) : type.flags & (512 | 98304) ? type.intrinsicName : void 0;\n    }\n    function createTemplateLiteralType(texts, types) {\n      const type = createType(134217728);\n      type.texts = texts;\n      type.types = types;\n      return type;\n    }\n    function getStringMappingType(symbol, type) {\n      return type.flags & (1048576 | 131072) ? mapType(type, (t) => getStringMappingType(symbol, t)) : type.flags & 128 ? getStringLiteralType(applyStringMapping(symbol, type.value)) : type.flags & 134217728 ? getTemplateLiteralType(...applyTemplateStringMapping(symbol, type.texts, type.types)) : type.flags & 268435456 && symbol === type.symbol ? type : type.flags & (1 | 4 | 268435456) || isGenericIndexType(type) ? getStringMappingTypeForGenericType(symbol, type) : isPatternLiteralPlaceholderType(type) ? getStringMappingTypeForGenericType(symbol, getTemplateLiteralType([\"\", \"\"], [type])) : type;\n    }\n    function applyStringMapping(symbol, str) {\n      switch (intrinsicTypeKinds.get(symbol.escapedName)) {\n        case 0:\n          return str.toUpperCase();\n        case 1:\n          return str.toLowerCase();\n        case 2:\n          return str.charAt(0).toUpperCase() + str.slice(1);\n        case 3:\n          return str.charAt(0).toLowerCase() + str.slice(1);\n      }\n      return str;\n    }\n    function applyTemplateStringMapping(symbol, texts, types) {\n      switch (intrinsicTypeKinds.get(symbol.escapedName)) {\n        case 0:\n          return [texts.map((t) => t.toUpperCase()), types.map((t) => getStringMappingType(symbol, t))];\n        case 1:\n          return [texts.map((t) => t.toLowerCase()), types.map((t) => getStringMappingType(symbol, t))];\n        case 2:\n          return [texts[0] === \"\" ? texts : [texts[0].charAt(0).toUpperCase() + texts[0].slice(1), ...texts.slice(1)], texts[0] === \"\" ? [getStringMappingType(symbol, types[0]), ...types.slice(1)] : types];\n        case 3:\n          return [texts[0] === \"\" ? texts : [texts[0].charAt(0).toLowerCase() + texts[0].slice(1), ...texts.slice(1)], texts[0] === \"\" ? [getStringMappingType(symbol, types[0]), ...types.slice(1)] : types];\n      }\n      return [texts, types];\n    }\n    function getStringMappingTypeForGenericType(symbol, type) {\n      const id = `${getSymbolId(symbol)},${getTypeId(type)}`;\n      let result = stringMappingTypes.get(id);\n      if (!result) {\n        stringMappingTypes.set(id, result = createStringMappingType(symbol, type));\n      }\n      return result;\n    }\n    function createStringMappingType(symbol, type) {\n      const result = createTypeWithSymbol(268435456, symbol);\n      result.type = type;\n      return result;\n    }\n    function createIndexedAccessType(objectType, indexType, accessFlags, aliasSymbol, aliasTypeArguments) {\n      const type = createType(8388608);\n      type.objectType = objectType;\n      type.indexType = indexType;\n      type.accessFlags = accessFlags;\n      type.aliasSymbol = aliasSymbol;\n      type.aliasTypeArguments = aliasTypeArguments;\n      return type;\n    }\n    function isJSLiteralType(type) {\n      if (noImplicitAny) {\n        return false;\n      }\n      if (getObjectFlags(type) & 4096) {\n        return true;\n      }\n      if (type.flags & 1048576) {\n        return every(type.types, isJSLiteralType);\n      }\n      if (type.flags & 2097152) {\n        return some(type.types, isJSLiteralType);\n      }\n      if (type.flags & 465829888) {\n        const constraint = getResolvedBaseConstraint(type);\n        return constraint !== type && isJSLiteralType(constraint);\n      }\n      return false;\n    }\n    function getPropertyNameFromIndex(indexType, accessNode) {\n      return isTypeUsableAsPropertyName(indexType) ? getPropertyNameFromType(indexType) : accessNode && isPropertyName(accessNode) ? getPropertyNameForPropertyNameNode(accessNode) : void 0;\n    }\n    function isUncalledFunctionReference(node, symbol) {\n      if (symbol.flags & (16 | 8192)) {\n        const parent2 = findAncestor(node.parent, (n) => !isAccessExpression(n)) || node.parent;\n        if (isCallLikeExpression(parent2)) {\n          return isCallOrNewExpression(parent2) && isIdentifier(node) && hasMatchingArgument(parent2, node);\n        }\n        return every(symbol.declarations, (d) => !isFunctionLike(d) || !!(getCombinedNodeFlags(d) & 268435456));\n      }\n      return true;\n    }\n    function getPropertyTypeForIndexType(originalObjectType, objectType, indexType, fullIndexType, accessNode, accessFlags) {\n      var _a2;\n      const accessExpression = accessNode && accessNode.kind === 209 ? accessNode : void 0;\n      const propName = accessNode && isPrivateIdentifier(accessNode) ? void 0 : getPropertyNameFromIndex(indexType, accessNode);\n      if (propName !== void 0) {\n        if (accessFlags & 256) {\n          return getTypeOfPropertyOfContextualType(objectType, propName) || anyType;\n        }\n        const prop = getPropertyOfType(objectType, propName);\n        if (prop) {\n          if (accessFlags & 64 && accessNode && prop.declarations && isDeprecatedSymbol(prop) && isUncalledFunctionReference(accessNode, prop)) {\n            const deprecatedNode = (_a2 = accessExpression == null ? void 0 : accessExpression.argumentExpression) != null ? _a2 : isIndexedAccessTypeNode(accessNode) ? accessNode.indexType : accessNode;\n            addDeprecatedSuggestion(deprecatedNode, prop.declarations, propName);\n          }\n          if (accessExpression) {\n            markPropertyAsReferenced(prop, accessExpression, isSelfTypeAccess(accessExpression.expression, objectType.symbol));\n            if (isAssignmentToReadonlyEntity(accessExpression, prop, getAssignmentTargetKind(accessExpression))) {\n              error(accessExpression.argumentExpression, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, symbolToString(prop));\n              return void 0;\n            }\n            if (accessFlags & 8) {\n              getNodeLinks(accessNode).resolvedSymbol = prop;\n            }\n            if (isThisPropertyAccessInConstructor(accessExpression, prop)) {\n              return autoType;\n            }\n          }\n          const propType = getTypeOfSymbol(prop);\n          return accessExpression && getAssignmentTargetKind(accessExpression) !== 1 ? getFlowTypeOfReference(accessExpression, propType) : accessNode && isIndexedAccessTypeNode(accessNode) && containsMissingType(propType) ? getUnionType([propType, undefinedType]) : propType;\n        }\n        if (everyType(objectType, isTupleType) && isNumericLiteralName(propName)) {\n          const index = +propName;\n          if (accessNode && everyType(objectType, (t) => !t.target.hasRestElement) && !(accessFlags & 16)) {\n            const indexNode = getIndexNodeForAccessExpression(accessNode);\n            if (isTupleType(objectType)) {\n              if (index < 0) {\n                error(indexNode, Diagnostics.A_tuple_type_cannot_be_indexed_with_a_negative_value);\n                return undefinedType;\n              }\n              error(indexNode, Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2, typeToString(objectType), getTypeReferenceArity(objectType), unescapeLeadingUnderscores(propName));\n            } else {\n              error(indexNode, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(propName), typeToString(objectType));\n            }\n          }\n          if (index >= 0) {\n            errorIfWritingToReadonlyIndex(getIndexInfoOfType(objectType, numberType));\n            return mapType(objectType, (t) => {\n              const restType = getRestTypeOfTupleType(t) || undefinedType;\n              return accessFlags & 1 ? getUnionType([restType, missingType]) : restType;\n            });\n          }\n        }\n      }\n      if (!(indexType.flags & 98304) && isTypeAssignableToKind(indexType, 402653316 | 296 | 12288)) {\n        if (objectType.flags & (1 | 131072)) {\n          return objectType;\n        }\n        const indexInfo = getApplicableIndexInfo(objectType, indexType) || getIndexInfoOfType(objectType, stringType);\n        if (indexInfo) {\n          if (accessFlags & 2 && indexInfo.keyType !== numberType) {\n            if (accessExpression) {\n              error(accessExpression, Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(originalObjectType));\n            }\n            return void 0;\n          }\n          if (accessNode && indexInfo.keyType === stringType && !isTypeAssignableToKind(indexType, 4 | 8)) {\n            const indexNode = getIndexNodeForAccessExpression(accessNode);\n            error(indexNode, Diagnostics.Type_0_cannot_be_used_as_an_index_type, typeToString(indexType));\n            return accessFlags & 1 ? getUnionType([indexInfo.type, missingType]) : indexInfo.type;\n          }\n          errorIfWritingToReadonlyIndex(indexInfo);\n          if (accessFlags & 1 && !(objectType.symbol && objectType.symbol.flags & (256 | 128) && (indexType.symbol && indexType.flags & 1024 && getParentOfSymbol(indexType.symbol) === objectType.symbol))) {\n            return getUnionType([indexInfo.type, missingType]);\n          }\n          return indexInfo.type;\n        }\n        if (indexType.flags & 131072) {\n          return neverType;\n        }\n        if (isJSLiteralType(objectType)) {\n          return anyType;\n        }\n        if (accessExpression && !isConstEnumObjectType(objectType)) {\n          if (isObjectLiteralType2(objectType)) {\n            if (noImplicitAny && indexType.flags & (128 | 256)) {\n              diagnostics.add(createDiagnosticForNode(accessExpression, Diagnostics.Property_0_does_not_exist_on_type_1, indexType.value, typeToString(objectType)));\n              return undefinedType;\n            } else if (indexType.flags & (8 | 4)) {\n              const types = map(objectType.properties, (property) => {\n                return getTypeOfSymbol(property);\n              });\n              return getUnionType(append(types, undefinedType));\n            }\n          }\n          if (objectType.symbol === globalThisSymbol && propName !== void 0 && globalThisSymbol.exports.has(propName) && globalThisSymbol.exports.get(propName).flags & 418) {\n            error(accessExpression, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(propName), typeToString(objectType));\n          } else if (noImplicitAny && !compilerOptions.suppressImplicitAnyIndexErrors && !(accessFlags & 128)) {\n            if (propName !== void 0 && typeHasStaticProperty(propName, objectType)) {\n              const typeName = typeToString(objectType);\n              error(accessExpression, Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead, propName, typeName, typeName + \"[\" + getTextOfNode(accessExpression.argumentExpression) + \"]\");\n            } else if (getIndexTypeOfType(objectType, numberType)) {\n              error(accessExpression.argumentExpression, Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);\n            } else {\n              let suggestion;\n              if (propName !== void 0 && (suggestion = getSuggestionForNonexistentProperty(propName, objectType))) {\n                if (suggestion !== void 0) {\n                  error(accessExpression.argumentExpression, Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2, propName, typeToString(objectType), suggestion);\n                }\n              } else {\n                const suggestion2 = getSuggestionForNonexistentIndexSignature(objectType, accessExpression, indexType);\n                if (suggestion2 !== void 0) {\n                  error(accessExpression, Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1, typeToString(objectType), suggestion2);\n                } else {\n                  let errorInfo;\n                  if (indexType.flags & 1024) {\n                    errorInfo = chainDiagnosticMessages(void 0, Diagnostics.Property_0_does_not_exist_on_type_1, \"[\" + typeToString(indexType) + \"]\", typeToString(objectType));\n                  } else if (indexType.flags & 8192) {\n                    const symbolName2 = getFullyQualifiedName(indexType.symbol, accessExpression);\n                    errorInfo = chainDiagnosticMessages(void 0, Diagnostics.Property_0_does_not_exist_on_type_1, \"[\" + symbolName2 + \"]\", typeToString(objectType));\n                  } else if (indexType.flags & 128) {\n                    errorInfo = chainDiagnosticMessages(void 0, Diagnostics.Property_0_does_not_exist_on_type_1, indexType.value, typeToString(objectType));\n                  } else if (indexType.flags & 256) {\n                    errorInfo = chainDiagnosticMessages(void 0, Diagnostics.Property_0_does_not_exist_on_type_1, indexType.value, typeToString(objectType));\n                  } else if (indexType.flags & (8 | 4)) {\n                    errorInfo = chainDiagnosticMessages(void 0, Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1, typeToString(indexType), typeToString(objectType));\n                  }\n                  errorInfo = chainDiagnosticMessages(errorInfo, Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1, typeToString(fullIndexType), typeToString(objectType));\n                  diagnostics.add(createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(accessExpression), accessExpression, errorInfo));\n                }\n              }\n            }\n          }\n          return void 0;\n        }\n      }\n      if (isJSLiteralType(objectType)) {\n        return anyType;\n      }\n      if (accessNode) {\n        const indexNode = getIndexNodeForAccessExpression(accessNode);\n        if (indexType.flags & (128 | 256)) {\n          error(indexNode, Diagnostics.Property_0_does_not_exist_on_type_1, \"\" + indexType.value, typeToString(objectType));\n        } else if (indexType.flags & (4 | 8)) {\n          error(indexNode, Diagnostics.Type_0_has_no_matching_index_signature_for_type_1, typeToString(objectType), typeToString(indexType));\n        } else {\n          error(indexNode, Diagnostics.Type_0_cannot_be_used_as_an_index_type, typeToString(indexType));\n        }\n      }\n      if (isTypeAny(indexType)) {\n        return indexType;\n      }\n      return void 0;\n      function errorIfWritingToReadonlyIndex(indexInfo) {\n        if (indexInfo && indexInfo.isReadonly && accessExpression && (isAssignmentTarget(accessExpression) || isDeleteTarget(accessExpression))) {\n          error(accessExpression, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(objectType));\n        }\n      }\n    }\n    function getIndexNodeForAccessExpression(accessNode) {\n      return accessNode.kind === 209 ? accessNode.argumentExpression : accessNode.kind === 196 ? accessNode.indexType : accessNode.kind === 164 ? accessNode.expression : accessNode;\n    }\n    function isPatternLiteralPlaceholderType(type) {\n      return !!(type.flags & (1 | 4 | 8 | 64)) || isPatternLiteralType(type);\n    }\n    function isPatternLiteralType(type) {\n      return !!(type.flags & 134217728) && every(type.types, isPatternLiteralPlaceholderType) || !!(type.flags & 268435456) && isPatternLiteralPlaceholderType(type.type);\n    }\n    function isGenericType(type) {\n      return !!getGenericObjectFlags(type);\n    }\n    function isGenericObjectType(type) {\n      return !!(getGenericObjectFlags(type) & 4194304);\n    }\n    function isGenericIndexType(type) {\n      return !!(getGenericObjectFlags(type) & 8388608);\n    }\n    function getGenericObjectFlags(type) {\n      if (type.flags & 3145728) {\n        if (!(type.objectFlags & 2097152)) {\n          type.objectFlags |= 2097152 | reduceLeft(type.types, (flags, t) => flags | getGenericObjectFlags(t), 0);\n        }\n        return type.objectFlags & 12582912;\n      }\n      if (type.flags & 33554432) {\n        if (!(type.objectFlags & 2097152)) {\n          type.objectFlags |= 2097152 | getGenericObjectFlags(type.baseType) | getGenericObjectFlags(type.constraint);\n        }\n        return type.objectFlags & 12582912;\n      }\n      return (type.flags & 58982400 || isGenericMappedType(type) || isGenericTupleType(type) ? 4194304 : 0) | (type.flags & (58982400 | 4194304 | 134217728 | 268435456) && !isPatternLiteralType(type) ? 8388608 : 0);\n    }\n    function getSimplifiedType(type, writing) {\n      return type.flags & 8388608 ? getSimplifiedIndexedAccessType(type, writing) : type.flags & 16777216 ? getSimplifiedConditionalType(type, writing) : type;\n    }\n    function distributeIndexOverObjectType(objectType, indexType, writing) {\n      if (objectType.flags & 1048576 || objectType.flags & 2097152 && !shouldDeferIndexType(objectType)) {\n        const types = map(objectType.types, (t) => getSimplifiedType(getIndexedAccessType(t, indexType), writing));\n        return objectType.flags & 2097152 || writing ? getIntersectionType(types) : getUnionType(types);\n      }\n    }\n    function distributeObjectOverIndexType(objectType, indexType, writing) {\n      if (indexType.flags & 1048576) {\n        const types = map(indexType.types, (t) => getSimplifiedType(getIndexedAccessType(objectType, t), writing));\n        return writing ? getIntersectionType(types) : getUnionType(types);\n      }\n    }\n    function getSimplifiedIndexedAccessType(type, writing) {\n      const cache = writing ? \"simplifiedForWriting\" : \"simplifiedForReading\";\n      if (type[cache]) {\n        return type[cache] === circularConstraintType ? type : type[cache];\n      }\n      type[cache] = circularConstraintType;\n      const objectType = getSimplifiedType(type.objectType, writing);\n      const indexType = getSimplifiedType(type.indexType, writing);\n      const distributedOverIndex = distributeObjectOverIndexType(objectType, indexType, writing);\n      if (distributedOverIndex) {\n        return type[cache] = distributedOverIndex;\n      }\n      if (!(indexType.flags & 465829888)) {\n        const distributedOverObject = distributeIndexOverObjectType(objectType, indexType, writing);\n        if (distributedOverObject) {\n          return type[cache] = distributedOverObject;\n        }\n      }\n      if (isGenericTupleType(objectType) && indexType.flags & 296) {\n        const elementType = getElementTypeOfSliceOfTupleType(objectType, indexType.flags & 8 ? 0 : objectType.target.fixedLength, 0, writing);\n        if (elementType) {\n          return type[cache] = elementType;\n        }\n      }\n      if (isGenericMappedType(objectType)) {\n        const nameType = getNameTypeFromMappedType(objectType);\n        if (!nameType || isTypeAssignableTo(nameType, getTypeParameterFromMappedType(objectType))) {\n          return type[cache] = mapType(substituteIndexedMappedType(objectType, type.indexType), (t) => getSimplifiedType(t, writing));\n        }\n      }\n      return type[cache] = type;\n    }\n    function getSimplifiedConditionalType(type, writing) {\n      const checkType = type.checkType;\n      const extendsType = type.extendsType;\n      const trueType2 = getTrueTypeFromConditionalType(type);\n      const falseType2 = getFalseTypeFromConditionalType(type);\n      if (falseType2.flags & 131072 && getActualTypeVariable(trueType2) === getActualTypeVariable(checkType)) {\n        if (checkType.flags & 1 || isTypeAssignableTo(getRestrictiveInstantiation(checkType), getRestrictiveInstantiation(extendsType))) {\n          return getSimplifiedType(trueType2, writing);\n        } else if (isIntersectionEmpty(checkType, extendsType)) {\n          return neverType;\n        }\n      } else if (trueType2.flags & 131072 && getActualTypeVariable(falseType2) === getActualTypeVariable(checkType)) {\n        if (!(checkType.flags & 1) && isTypeAssignableTo(getRestrictiveInstantiation(checkType), getRestrictiveInstantiation(extendsType))) {\n          return neverType;\n        } else if (checkType.flags & 1 || isIntersectionEmpty(checkType, extendsType)) {\n          return getSimplifiedType(falseType2, writing);\n        }\n      }\n      return type;\n    }\n    function isIntersectionEmpty(type1, type2) {\n      return !!(getUnionType([intersectTypes(type1, type2), neverType]).flags & 131072);\n    }\n    function substituteIndexedMappedType(objectType, index) {\n      const mapper = createTypeMapper([getTypeParameterFromMappedType(objectType)], [index]);\n      const templateMapper = combineTypeMappers(objectType.mapper, mapper);\n      return instantiateType(getTemplateTypeFromMappedType(objectType.target || objectType), templateMapper);\n    }\n    function getIndexedAccessType(objectType, indexType, accessFlags = 0, accessNode, aliasSymbol, aliasTypeArguments) {\n      return getIndexedAccessTypeOrUndefined(objectType, indexType, accessFlags, accessNode, aliasSymbol, aliasTypeArguments) || (accessNode ? errorType : unknownType);\n    }\n    function indexTypeLessThan(indexType, limit) {\n      return everyType(indexType, (t) => {\n        if (t.flags & 384) {\n          const propName = getPropertyNameFromType(t);\n          if (isNumericLiteralName(propName)) {\n            const index = +propName;\n            return index >= 0 && index < limit;\n          }\n        }\n        return false;\n      });\n    }\n    function getIndexedAccessTypeOrUndefined(objectType, indexType, accessFlags = 0, accessNode, aliasSymbol, aliasTypeArguments) {\n      if (objectType === wildcardType || indexType === wildcardType) {\n        return wildcardType;\n      }\n      if (isStringIndexSignatureOnlyType(objectType) && !(indexType.flags & 98304) && isTypeAssignableToKind(indexType, 4 | 8)) {\n        indexType = stringType;\n      }\n      if (compilerOptions.noUncheckedIndexedAccess && accessFlags & 32)\n        accessFlags |= 1;\n      if (isGenericIndexType(indexType) || (accessNode && accessNode.kind !== 196 ? isGenericTupleType(objectType) && !indexTypeLessThan(indexType, objectType.target.fixedLength) : isGenericObjectType(objectType) && !(isTupleType(objectType) && indexTypeLessThan(indexType, objectType.target.fixedLength)))) {\n        if (objectType.flags & 3) {\n          return objectType;\n        }\n        const persistentAccessFlags = accessFlags & 1;\n        const id = objectType.id + \",\" + indexType.id + \",\" + persistentAccessFlags + getAliasId(aliasSymbol, aliasTypeArguments);\n        let type = indexedAccessTypes.get(id);\n        if (!type) {\n          indexedAccessTypes.set(id, type = createIndexedAccessType(objectType, indexType, persistentAccessFlags, aliasSymbol, aliasTypeArguments));\n        }\n        return type;\n      }\n      const apparentObjectType = getReducedApparentType(objectType);\n      if (indexType.flags & 1048576 && !(indexType.flags & 16)) {\n        const propTypes = [];\n        let wasMissingProp = false;\n        for (const t of indexType.types) {\n          const propType = getPropertyTypeForIndexType(objectType, apparentObjectType, t, indexType, accessNode, accessFlags | (wasMissingProp ? 128 : 0));\n          if (propType) {\n            propTypes.push(propType);\n          } else if (!accessNode) {\n            return void 0;\n          } else {\n            wasMissingProp = true;\n          }\n        }\n        if (wasMissingProp) {\n          return void 0;\n        }\n        return accessFlags & 4 ? getIntersectionType(propTypes, aliasSymbol, aliasTypeArguments) : getUnionType(propTypes, 1, aliasSymbol, aliasTypeArguments);\n      }\n      return getPropertyTypeForIndexType(objectType, apparentObjectType, indexType, indexType, accessNode, accessFlags | 8 | 64);\n    }\n    function getTypeFromIndexedAccessTypeNode(node) {\n      const links = getNodeLinks(node);\n      if (!links.resolvedType) {\n        const objectType = getTypeFromTypeNode(node.objectType);\n        const indexType = getTypeFromTypeNode(node.indexType);\n        const potentialAlias = getAliasSymbolForTypeNode(node);\n        links.resolvedType = getIndexedAccessType(objectType, indexType, 0, node, potentialAlias, getTypeArgumentsForAliasSymbol(potentialAlias));\n      }\n      return links.resolvedType;\n    }\n    function getTypeFromMappedTypeNode(node) {\n      const links = getNodeLinks(node);\n      if (!links.resolvedType) {\n        const type = createObjectType(32, node.symbol);\n        type.declaration = node;\n        type.aliasSymbol = getAliasSymbolForTypeNode(node);\n        type.aliasTypeArguments = getTypeArgumentsForAliasSymbol(type.aliasSymbol);\n        links.resolvedType = type;\n        getConstraintTypeFromMappedType(type);\n      }\n      return links.resolvedType;\n    }\n    function getActualTypeVariable(type) {\n      if (type.flags & 33554432) {\n        return getActualTypeVariable(type.baseType);\n      }\n      if (type.flags & 8388608 && (type.objectType.flags & 33554432 || type.indexType.flags & 33554432)) {\n        return getIndexedAccessType(getActualTypeVariable(type.objectType), getActualTypeVariable(type.indexType));\n      }\n      return type;\n    }\n    function maybeCloneTypeParameter(p) {\n      const constraint = getConstraintOfTypeParameter(p);\n      return constraint && (isGenericObjectType(constraint) || isGenericIndexType(constraint)) ? cloneTypeParameter(p) : p;\n    }\n    function isSimpleTupleType(node) {\n      return isTupleTypeNode(node) && length(node.elements) > 0 && !some(node.elements, (e) => isOptionalTypeNode(e) || isRestTypeNode(e) || isNamedTupleMember(e) && !!(e.questionToken || e.dotDotDotToken));\n    }\n    function isDeferredType(type, checkTuples) {\n      return isGenericType(type) || checkTuples && isTupleType(type) && some(getTypeArguments(type), isGenericType);\n    }\n    function getConditionalType(root, mapper, aliasSymbol, aliasTypeArguments) {\n      let result;\n      let extraTypes;\n      let tailCount = 0;\n      while (true) {\n        if (tailCount === 1e3) {\n          error(currentNode, Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite);\n          result = errorType;\n          break;\n        }\n        const checkTuples = isSimpleTupleType(root.node.checkType) && isSimpleTupleType(root.node.extendsType) && length(root.node.checkType.elements) === length(root.node.extendsType.elements);\n        const checkType = instantiateType(getActualTypeVariable(root.checkType), mapper);\n        const checkTypeDeferred = isDeferredType(checkType, checkTuples);\n        const extendsType = instantiateType(root.extendsType, mapper);\n        if (checkType === wildcardType || extendsType === wildcardType) {\n          return wildcardType;\n        }\n        let combinedMapper;\n        if (root.inferTypeParameters) {\n          const freshParams = sameMap(root.inferTypeParameters, maybeCloneTypeParameter);\n          const freshMapper = freshParams !== root.inferTypeParameters ? createTypeMapper(root.inferTypeParameters, freshParams) : void 0;\n          const context = createInferenceContext(freshParams, void 0, 0);\n          if (freshMapper) {\n            const freshCombinedMapper = combineTypeMappers(mapper, freshMapper);\n            for (const p of freshParams) {\n              if (root.inferTypeParameters.indexOf(p) === -1) {\n                p.mapper = freshCombinedMapper;\n              }\n            }\n          }\n          if (!checkTypeDeferred) {\n            inferTypes(context.inferences, checkType, instantiateType(extendsType, freshMapper), 512 | 1024);\n          }\n          const innerMapper = combineTypeMappers(freshMapper, context.mapper);\n          combinedMapper = mapper ? combineTypeMappers(innerMapper, mapper) : innerMapper;\n        }\n        const inferredExtendsType = combinedMapper ? instantiateType(root.extendsType, combinedMapper) : extendsType;\n        if (!checkTypeDeferred && !isDeferredType(inferredExtendsType, checkTuples)) {\n          if (!(inferredExtendsType.flags & 3) && (checkType.flags & 1 || !isTypeAssignableTo(getPermissiveInstantiation(checkType), getPermissiveInstantiation(inferredExtendsType)))) {\n            if (checkType.flags & 1) {\n              (extraTypes || (extraTypes = [])).push(instantiateType(getTypeFromTypeNode(root.node.trueType), combinedMapper || mapper));\n            }\n            const falseType2 = getTypeFromTypeNode(root.node.falseType);\n            if (falseType2.flags & 16777216) {\n              const newRoot = falseType2.root;\n              if (newRoot.node.parent === root.node && (!newRoot.isDistributive || newRoot.checkType === root.checkType)) {\n                root = newRoot;\n                continue;\n              }\n              if (canTailRecurse(falseType2, mapper)) {\n                continue;\n              }\n            }\n            result = instantiateType(falseType2, mapper);\n            break;\n          }\n          if (inferredExtendsType.flags & 3 || isTypeAssignableTo(getRestrictiveInstantiation(checkType), getRestrictiveInstantiation(inferredExtendsType))) {\n            const trueType2 = getTypeFromTypeNode(root.node.trueType);\n            const trueMapper = combinedMapper || mapper;\n            if (canTailRecurse(trueType2, trueMapper)) {\n              continue;\n            }\n            result = instantiateType(trueType2, trueMapper);\n            break;\n          }\n        }\n        result = createType(16777216);\n        result.root = root;\n        result.checkType = instantiateType(root.checkType, mapper);\n        result.extendsType = instantiateType(root.extendsType, mapper);\n        result.mapper = mapper;\n        result.combinedMapper = combinedMapper;\n        result.aliasSymbol = aliasSymbol || root.aliasSymbol;\n        result.aliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(root.aliasTypeArguments, mapper);\n        break;\n      }\n      return extraTypes ? getUnionType(append(extraTypes, result)) : result;\n      function canTailRecurse(newType, newMapper) {\n        if (newType.flags & 16777216 && newMapper) {\n          const newRoot = newType.root;\n          if (newRoot.outerTypeParameters) {\n            const typeParamMapper = combineTypeMappers(newType.mapper, newMapper);\n            const typeArguments = map(newRoot.outerTypeParameters, (t) => getMappedType(t, typeParamMapper));\n            const newRootMapper = createTypeMapper(newRoot.outerTypeParameters, typeArguments);\n            const newCheckType = newRoot.isDistributive ? getMappedType(newRoot.checkType, newRootMapper) : void 0;\n            if (!newCheckType || newCheckType === newRoot.checkType || !(newCheckType.flags & (1048576 | 131072))) {\n              root = newRoot;\n              mapper = newRootMapper;\n              aliasSymbol = void 0;\n              aliasTypeArguments = void 0;\n              if (newRoot.aliasSymbol) {\n                tailCount++;\n              }\n              return true;\n            }\n          }\n        }\n        return false;\n      }\n    }\n    function getTrueTypeFromConditionalType(type) {\n      return type.resolvedTrueType || (type.resolvedTrueType = instantiateType(getTypeFromTypeNode(type.root.node.trueType), type.mapper));\n    }\n    function getFalseTypeFromConditionalType(type) {\n      return type.resolvedFalseType || (type.resolvedFalseType = instantiateType(getTypeFromTypeNode(type.root.node.falseType), type.mapper));\n    }\n    function getInferredTrueTypeFromConditionalType(type) {\n      return type.resolvedInferredTrueType || (type.resolvedInferredTrueType = type.combinedMapper ? instantiateType(getTypeFromTypeNode(type.root.node.trueType), type.combinedMapper) : getTrueTypeFromConditionalType(type));\n    }\n    function getInferTypeParameters(node) {\n      let result;\n      if (node.locals) {\n        node.locals.forEach((symbol) => {\n          if (symbol.flags & 262144) {\n            result = append(result, getDeclaredTypeOfSymbol(symbol));\n          }\n        });\n      }\n      return result;\n    }\n    function isDistributionDependent(root) {\n      return root.isDistributive && (isTypeParameterPossiblyReferenced(root.checkType, root.node.trueType) || isTypeParameterPossiblyReferenced(root.checkType, root.node.falseType));\n    }\n    function getTypeFromConditionalTypeNode(node) {\n      const links = getNodeLinks(node);\n      if (!links.resolvedType) {\n        const checkType = getTypeFromTypeNode(node.checkType);\n        const aliasSymbol = getAliasSymbolForTypeNode(node);\n        const aliasTypeArguments = getTypeArgumentsForAliasSymbol(aliasSymbol);\n        const allOuterTypeParameters = getOuterTypeParameters(node, true);\n        const outerTypeParameters = aliasTypeArguments ? allOuterTypeParameters : filter(allOuterTypeParameters, (tp) => isTypeParameterPossiblyReferenced(tp, node));\n        const root = {\n          node,\n          checkType,\n          extendsType: getTypeFromTypeNode(node.extendsType),\n          isDistributive: !!(checkType.flags & 262144),\n          inferTypeParameters: getInferTypeParameters(node),\n          outerTypeParameters,\n          instantiations: void 0,\n          aliasSymbol,\n          aliasTypeArguments\n        };\n        links.resolvedType = getConditionalType(root, void 0);\n        if (outerTypeParameters) {\n          root.instantiations = /* @__PURE__ */ new Map();\n          root.instantiations.set(getTypeListId(outerTypeParameters), links.resolvedType);\n        }\n      }\n      return links.resolvedType;\n    }\n    function getTypeFromInferTypeNode(node) {\n      const links = getNodeLinks(node);\n      if (!links.resolvedType) {\n        links.resolvedType = getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node.typeParameter));\n      }\n      return links.resolvedType;\n    }\n    function getIdentifierChain(node) {\n      if (isIdentifier(node)) {\n        return [node];\n      } else {\n        return append(getIdentifierChain(node.left), node.right);\n      }\n    }\n    function getTypeFromImportTypeNode(node) {\n      var _a2;\n      const links = getNodeLinks(node);\n      if (!links.resolvedType) {\n        if (!isLiteralImportTypeNode(node)) {\n          error(node.argument, Diagnostics.String_literal_expected);\n          links.resolvedSymbol = unknownSymbol;\n          return links.resolvedType = errorType;\n        }\n        const targetMeaning = node.isTypeOf ? 111551 : node.flags & 8388608 ? 111551 | 788968 : 788968;\n        const innerModuleSymbol = resolveExternalModuleName(node, node.argument.literal);\n        if (!innerModuleSymbol) {\n          links.resolvedSymbol = unknownSymbol;\n          return links.resolvedType = errorType;\n        }\n        const isExportEquals = !!((_a2 = innerModuleSymbol.exports) == null ? void 0 : _a2.get(\"export=\"));\n        const moduleSymbol = resolveExternalModuleSymbol(innerModuleSymbol, false);\n        if (!nodeIsMissing(node.qualifier)) {\n          const nameStack = getIdentifierChain(node.qualifier);\n          let currentNamespace = moduleSymbol;\n          let current;\n          while (current = nameStack.shift()) {\n            const meaning = nameStack.length ? 1920 : targetMeaning;\n            const mergedResolvedSymbol = getMergedSymbol(resolveSymbol(currentNamespace));\n            const symbolFromVariable = node.isTypeOf || isInJSFile(node) && isExportEquals ? getPropertyOfType(getTypeOfSymbol(mergedResolvedSymbol), current.escapedText, false, true) : void 0;\n            const symbolFromModule = node.isTypeOf ? void 0 : getSymbol2(getExportsOfSymbol(mergedResolvedSymbol), current.escapedText, meaning);\n            const next = symbolFromModule != null ? symbolFromModule : symbolFromVariable;\n            if (!next) {\n              error(current, Diagnostics.Namespace_0_has_no_exported_member_1, getFullyQualifiedName(currentNamespace), declarationNameToString(current));\n              return links.resolvedType = errorType;\n            }\n            getNodeLinks(current).resolvedSymbol = next;\n            getNodeLinks(current.parent).resolvedSymbol = next;\n            currentNamespace = next;\n          }\n          links.resolvedType = resolveImportSymbolType(node, links, currentNamespace, targetMeaning);\n        } else {\n          if (moduleSymbol.flags & targetMeaning) {\n            links.resolvedType = resolveImportSymbolType(node, links, moduleSymbol, targetMeaning);\n          } else {\n            const errorMessage = targetMeaning === 111551 ? Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here : Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;\n            error(node, errorMessage, node.argument.literal.text);\n            links.resolvedSymbol = unknownSymbol;\n            links.resolvedType = errorType;\n          }\n        }\n      }\n      return links.resolvedType;\n    }\n    function resolveImportSymbolType(node, links, symbol, meaning) {\n      const resolvedSymbol = resolveSymbol(symbol);\n      links.resolvedSymbol = resolvedSymbol;\n      if (meaning === 111551) {\n        return getInstantiationExpressionType(getTypeOfSymbol(symbol), node);\n      } else {\n        return getTypeReferenceType(node, resolvedSymbol);\n      }\n    }\n    function getTypeFromTypeLiteralOrFunctionOrConstructorTypeNode(node) {\n      const links = getNodeLinks(node);\n      if (!links.resolvedType) {\n        const aliasSymbol = getAliasSymbolForTypeNode(node);\n        if (getMembersOfSymbol(node.symbol).size === 0 && !aliasSymbol) {\n          links.resolvedType = emptyTypeLiteralType;\n        } else {\n          let type = createObjectType(16, node.symbol);\n          type.aliasSymbol = aliasSymbol;\n          type.aliasTypeArguments = getTypeArgumentsForAliasSymbol(aliasSymbol);\n          if (isJSDocTypeLiteral(node) && node.isArrayType) {\n            type = createArrayType(type);\n          }\n          links.resolvedType = type;\n        }\n      }\n      return links.resolvedType;\n    }\n    function getAliasSymbolForTypeNode(node) {\n      let host2 = node.parent;\n      while (isParenthesizedTypeNode(host2) || isJSDocTypeExpression(host2) || isTypeOperatorNode(host2) && host2.operator === 146) {\n        host2 = host2.parent;\n      }\n      return isTypeAlias(host2) ? getSymbolOfDeclaration(host2) : void 0;\n    }\n    function getTypeArgumentsForAliasSymbol(symbol) {\n      return symbol ? getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol) : void 0;\n    }\n    function isNonGenericObjectType(type) {\n      return !!(type.flags & 524288) && !isGenericMappedType(type);\n    }\n    function isEmptyObjectTypeOrSpreadsIntoEmptyObject(type) {\n      return isEmptyObjectType(type) || !!(type.flags & (65536 | 32768 | 528 | 296 | 2112 | 402653316 | 1056 | 67108864 | 4194304));\n    }\n    function tryMergeUnionOfObjectTypeAndEmptyObject(type, readonly) {\n      if (!(type.flags & 1048576)) {\n        return type;\n      }\n      if (every(type.types, isEmptyObjectTypeOrSpreadsIntoEmptyObject)) {\n        return find(type.types, isEmptyObjectType) || emptyObjectType;\n      }\n      const firstType = find(type.types, (t) => !isEmptyObjectTypeOrSpreadsIntoEmptyObject(t));\n      if (!firstType) {\n        return type;\n      }\n      const secondType = find(type.types, (t) => t !== firstType && !isEmptyObjectTypeOrSpreadsIntoEmptyObject(t));\n      if (secondType) {\n        return type;\n      }\n      return getAnonymousPartialType(firstType);\n      function getAnonymousPartialType(type2) {\n        const members = createSymbolTable();\n        for (const prop of getPropertiesOfType(type2)) {\n          if (getDeclarationModifierFlagsFromSymbol(prop) & (8 | 16)) {\n          } else if (isSpreadableProperty(prop)) {\n            const isSetonlyAccessor = prop.flags & 65536 && !(prop.flags & 32768);\n            const flags = 4 | 16777216;\n            const result = createSymbol(flags, prop.escapedName, getIsLateCheckFlag(prop) | (readonly ? 8 : 0));\n            result.links.type = isSetonlyAccessor ? undefinedType : addOptionality(getTypeOfSymbol(prop), true);\n            result.declarations = prop.declarations;\n            result.links.nameType = getSymbolLinks(prop).nameType;\n            result.links.syntheticOrigin = prop;\n            members.set(prop.escapedName, result);\n          }\n        }\n        const spread = createAnonymousType(type2.symbol, members, emptyArray, emptyArray, getIndexInfosOfType(type2));\n        spread.objectFlags |= 128 | 131072;\n        return spread;\n      }\n    }\n    function getSpreadType(left, right, symbol, objectFlags, readonly) {\n      if (left.flags & 1 || right.flags & 1) {\n        return anyType;\n      }\n      if (left.flags & 2 || right.flags & 2) {\n        return unknownType;\n      }\n      if (left.flags & 131072) {\n        return right;\n      }\n      if (right.flags & 131072) {\n        return left;\n      }\n      left = tryMergeUnionOfObjectTypeAndEmptyObject(left, readonly);\n      if (left.flags & 1048576) {\n        return checkCrossProductUnion([left, right]) ? mapType(left, (t) => getSpreadType(t, right, symbol, objectFlags, readonly)) : errorType;\n      }\n      right = tryMergeUnionOfObjectTypeAndEmptyObject(right, readonly);\n      if (right.flags & 1048576) {\n        return checkCrossProductUnion([left, right]) ? mapType(right, (t) => getSpreadType(left, t, symbol, objectFlags, readonly)) : errorType;\n      }\n      if (right.flags & (528 | 296 | 2112 | 402653316 | 1056 | 67108864 | 4194304)) {\n        return left;\n      }\n      if (isGenericObjectType(left) || isGenericObjectType(right)) {\n        if (isEmptyObjectType(left)) {\n          return right;\n        }\n        if (left.flags & 2097152) {\n          const types = left.types;\n          const lastLeft = types[types.length - 1];\n          if (isNonGenericObjectType(lastLeft) && isNonGenericObjectType(right)) {\n            return getIntersectionType(concatenate(types.slice(0, types.length - 1), [getSpreadType(lastLeft, right, symbol, objectFlags, readonly)]));\n          }\n        }\n        return getIntersectionType([left, right]);\n      }\n      const members = createSymbolTable();\n      const skippedPrivateMembers = /* @__PURE__ */ new Set();\n      const indexInfos = left === emptyObjectType ? getIndexInfosOfType(right) : getUnionIndexInfos([left, right]);\n      for (const rightProp of getPropertiesOfType(right)) {\n        if (getDeclarationModifierFlagsFromSymbol(rightProp) & (8 | 16)) {\n          skippedPrivateMembers.add(rightProp.escapedName);\n        } else if (isSpreadableProperty(rightProp)) {\n          members.set(rightProp.escapedName, getSpreadSymbol(rightProp, readonly));\n        }\n      }\n      for (const leftProp of getPropertiesOfType(left)) {\n        if (skippedPrivateMembers.has(leftProp.escapedName) || !isSpreadableProperty(leftProp)) {\n          continue;\n        }\n        if (members.has(leftProp.escapedName)) {\n          const rightProp = members.get(leftProp.escapedName);\n          const rightType = getTypeOfSymbol(rightProp);\n          if (rightProp.flags & 16777216) {\n            const declarations = concatenate(leftProp.declarations, rightProp.declarations);\n            const flags = 4 | leftProp.flags & 16777216;\n            const result = createSymbol(flags, leftProp.escapedName);\n            result.links.type = getUnionType([getTypeOfSymbol(leftProp), removeMissingOrUndefinedType(rightType)], 2);\n            result.links.leftSpread = leftProp;\n            result.links.rightSpread = rightProp;\n            result.declarations = declarations;\n            result.links.nameType = getSymbolLinks(leftProp).nameType;\n            members.set(leftProp.escapedName, result);\n          }\n        } else {\n          members.set(leftProp.escapedName, getSpreadSymbol(leftProp, readonly));\n        }\n      }\n      const spread = createAnonymousType(symbol, members, emptyArray, emptyArray, sameMap(indexInfos, (info) => getIndexInfoWithReadonly(info, readonly)));\n      spread.objectFlags |= 128 | 131072 | 2097152 | objectFlags;\n      return spread;\n    }\n    function isSpreadableProperty(prop) {\n      var _a2;\n      return !some(prop.declarations, isPrivateIdentifierClassElementDeclaration) && (!(prop.flags & (8192 | 32768 | 65536)) || !((_a2 = prop.declarations) == null ? void 0 : _a2.some((decl) => isClassLike(decl.parent))));\n    }\n    function getSpreadSymbol(prop, readonly) {\n      const isSetonlyAccessor = prop.flags & 65536 && !(prop.flags & 32768);\n      if (!isSetonlyAccessor && readonly === isReadonlySymbol(prop)) {\n        return prop;\n      }\n      const flags = 4 | prop.flags & 16777216;\n      const result = createSymbol(flags, prop.escapedName, getIsLateCheckFlag(prop) | (readonly ? 8 : 0));\n      result.links.type = isSetonlyAccessor ? undefinedType : getTypeOfSymbol(prop);\n      result.declarations = prop.declarations;\n      result.links.nameType = getSymbolLinks(prop).nameType;\n      result.links.syntheticOrigin = prop;\n      return result;\n    }\n    function getIndexInfoWithReadonly(info, readonly) {\n      return info.isReadonly !== readonly ? createIndexInfo(info.keyType, info.type, readonly, info.declaration) : info;\n    }\n    function createLiteralType(flags, value, symbol, regularType) {\n      const type = createTypeWithSymbol(flags, symbol);\n      type.value = value;\n      type.regularType = regularType || type;\n      return type;\n    }\n    function getFreshTypeOfLiteralType(type) {\n      if (type.flags & 2976) {\n        if (!type.freshType) {\n          const freshType = createLiteralType(type.flags, type.value, type.symbol, type);\n          freshType.freshType = freshType;\n          type.freshType = freshType;\n        }\n        return type.freshType;\n      }\n      return type;\n    }\n    function getRegularTypeOfLiteralType(type) {\n      return type.flags & 2976 ? type.regularType : type.flags & 1048576 ? type.regularType || (type.regularType = mapType(type, getRegularTypeOfLiteralType)) : type;\n    }\n    function isFreshLiteralType(type) {\n      return !!(type.flags & 2976) && type.freshType === type;\n    }\n    function getStringLiteralType(value) {\n      let type;\n      return stringLiteralTypes.get(value) || (stringLiteralTypes.set(value, type = createLiteralType(128, value)), type);\n    }\n    function getNumberLiteralType(value) {\n      let type;\n      return numberLiteralTypes.get(value) || (numberLiteralTypes.set(value, type = createLiteralType(256, value)), type);\n    }\n    function getBigIntLiteralType(value) {\n      let type;\n      const key = pseudoBigIntToString(value);\n      return bigIntLiteralTypes.get(key) || (bigIntLiteralTypes.set(key, type = createLiteralType(2048, value)), type);\n    }\n    function getEnumLiteralType(value, enumId, symbol) {\n      let type;\n      const key = `${enumId}${typeof value === \"string\" ? \"@\" : \"#\"}${value}`;\n      const flags = 1024 | (typeof value === \"string\" ? 128 : 256);\n      return enumLiteralTypes.get(key) || (enumLiteralTypes.set(key, type = createLiteralType(flags, value, symbol)), type);\n    }\n    function getTypeFromLiteralTypeNode(node) {\n      if (node.literal.kind === 104) {\n        return nullType;\n      }\n      const links = getNodeLinks(node);\n      if (!links.resolvedType) {\n        links.resolvedType = getRegularTypeOfLiteralType(checkExpression(node.literal));\n      }\n      return links.resolvedType;\n    }\n    function createUniqueESSymbolType(symbol) {\n      const type = createTypeWithSymbol(8192, symbol);\n      type.escapedName = `__@${type.symbol.escapedName}@${getSymbolId(type.symbol)}`;\n      return type;\n    }\n    function getESSymbolLikeTypeForNode(node) {\n      if (isValidESSymbolDeclaration(node)) {\n        const symbol = isCommonJsExportPropertyAssignment(node) ? getSymbolOfNode(node.left) : getSymbolOfNode(node);\n        if (symbol) {\n          const links = getSymbolLinks(symbol);\n          return links.uniqueESSymbolType || (links.uniqueESSymbolType = createUniqueESSymbolType(symbol));\n        }\n      }\n      return esSymbolType;\n    }\n    function getThisType(node) {\n      const container = getThisContainer(node, false, false);\n      const parent2 = container && container.parent;\n      if (parent2 && (isClassLike(parent2) || parent2.kind === 261)) {\n        if (!isStatic(container) && (!isConstructorDeclaration(container) || isNodeDescendantOf(node, container.body))) {\n          return getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(parent2)).thisType;\n        }\n      }\n      if (parent2 && isObjectLiteralExpression(parent2) && isBinaryExpression(parent2.parent) && getAssignmentDeclarationKind(parent2.parent) === 6) {\n        return getDeclaredTypeOfClassOrInterface(getSymbolOfNode(parent2.parent.left).parent).thisType;\n      }\n      const host2 = node.flags & 8388608 ? getHostSignatureFromJSDoc(node) : void 0;\n      if (host2 && isFunctionExpression(host2) && isBinaryExpression(host2.parent) && getAssignmentDeclarationKind(host2.parent) === 3) {\n        return getDeclaredTypeOfClassOrInterface(getSymbolOfNode(host2.parent.left).parent).thisType;\n      }\n      if (isJSConstructor(container) && isNodeDescendantOf(node, container.body)) {\n        return getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(container)).thisType;\n      }\n      error(node, Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface);\n      return errorType;\n    }\n    function getTypeFromThisTypeNode(node) {\n      const links = getNodeLinks(node);\n      if (!links.resolvedType) {\n        links.resolvedType = getThisType(node);\n      }\n      return links.resolvedType;\n    }\n    function getTypeFromRestTypeNode(node) {\n      return getTypeFromTypeNode(getArrayElementTypeNode(node.type) || node.type);\n    }\n    function getArrayElementTypeNode(node) {\n      switch (node.kind) {\n        case 193:\n          return getArrayElementTypeNode(node.type);\n        case 186:\n          if (node.elements.length === 1) {\n            node = node.elements[0];\n            if (node.kind === 188 || node.kind === 199 && node.dotDotDotToken) {\n              return getArrayElementTypeNode(node.type);\n            }\n          }\n          break;\n        case 185:\n          return node.elementType;\n      }\n      return void 0;\n    }\n    function getTypeFromNamedTupleTypeNode(node) {\n      const links = getNodeLinks(node);\n      return links.resolvedType || (links.resolvedType = node.dotDotDotToken ? getTypeFromRestTypeNode(node) : addOptionality(getTypeFromTypeNode(node.type), true, !!node.questionToken));\n    }\n    function getTypeFromTypeNode(node) {\n      return getConditionalFlowTypeOfType(getTypeFromTypeNodeWorker(node), node);\n    }\n    function getTypeFromTypeNodeWorker(node) {\n      switch (node.kind) {\n        case 131:\n        case 315:\n        case 316:\n          return anyType;\n        case 157:\n          return unknownType;\n        case 152:\n          return stringType;\n        case 148:\n          return numberType;\n        case 160:\n          return bigintType;\n        case 134:\n          return booleanType;\n        case 153:\n          return esSymbolType;\n        case 114:\n          return voidType;\n        case 155:\n          return undefinedType;\n        case 104:\n          return nullType;\n        case 144:\n          return neverType;\n        case 149:\n          return node.flags & 262144 && !noImplicitAny ? anyType : nonPrimitiveType;\n        case 139:\n          return intrinsicMarkerType;\n        case 194:\n        case 108:\n          return getTypeFromThisTypeNode(node);\n        case 198:\n          return getTypeFromLiteralTypeNode(node);\n        case 180:\n          return getTypeFromTypeReference(node);\n        case 179:\n          return node.assertsModifier ? voidType : booleanType;\n        case 230:\n          return getTypeFromTypeReference(node);\n        case 183:\n          return getTypeFromTypeQueryNode(node);\n        case 185:\n        case 186:\n          return getTypeFromArrayOrTupleTypeNode(node);\n        case 187:\n          return getTypeFromOptionalTypeNode(node);\n        case 189:\n          return getTypeFromUnionTypeNode(node);\n        case 190:\n          return getTypeFromIntersectionTypeNode(node);\n        case 317:\n          return getTypeFromJSDocNullableTypeNode(node);\n        case 319:\n          return addOptionality(getTypeFromTypeNode(node.type));\n        case 199:\n          return getTypeFromNamedTupleTypeNode(node);\n        case 193:\n        case 318:\n        case 312:\n          return getTypeFromTypeNode(node.type);\n        case 188:\n          return getTypeFromRestTypeNode(node);\n        case 321:\n          return getTypeFromJSDocVariadicType(node);\n        case 181:\n        case 182:\n        case 184:\n        case 325:\n        case 320:\n        case 326:\n          return getTypeFromTypeLiteralOrFunctionOrConstructorTypeNode(node);\n        case 195:\n          return getTypeFromTypeOperatorNode(node);\n        case 196:\n          return getTypeFromIndexedAccessTypeNode(node);\n        case 197:\n          return getTypeFromMappedTypeNode(node);\n        case 191:\n          return getTypeFromConditionalTypeNode(node);\n        case 192:\n          return getTypeFromInferTypeNode(node);\n        case 200:\n          return getTypeFromTemplateTypeNode(node);\n        case 202:\n          return getTypeFromImportTypeNode(node);\n        case 79:\n        case 163:\n        case 208:\n          const symbol = getSymbolAtLocation(node);\n          return symbol ? getDeclaredTypeOfSymbol(symbol) : errorType;\n        default:\n          return errorType;\n      }\n    }\n    function instantiateList(items, mapper, instantiator) {\n      if (items && items.length) {\n        for (let i = 0; i < items.length; i++) {\n          const item = items[i];\n          const mapped = instantiator(item, mapper);\n          if (item !== mapped) {\n            const result = i === 0 ? [] : items.slice(0, i);\n            result.push(mapped);\n            for (i++; i < items.length; i++) {\n              result.push(instantiator(items[i], mapper));\n            }\n            return result;\n          }\n        }\n      }\n      return items;\n    }\n    function instantiateTypes(types, mapper) {\n      return instantiateList(types, mapper, instantiateType);\n    }\n    function instantiateSignatures(signatures, mapper) {\n      return instantiateList(signatures, mapper, instantiateSignature);\n    }\n    function instantiateIndexInfos(indexInfos, mapper) {\n      return instantiateList(indexInfos, mapper, instantiateIndexInfo);\n    }\n    function createTypeMapper(sources, targets) {\n      return sources.length === 1 ? makeUnaryTypeMapper(sources[0], targets ? targets[0] : anyType) : makeArrayTypeMapper(sources, targets);\n    }\n    function getMappedType(type, mapper) {\n      switch (mapper.kind) {\n        case 0:\n          return type === mapper.source ? mapper.target : type;\n        case 1: {\n          const sources = mapper.sources;\n          const targets = mapper.targets;\n          for (let i = 0; i < sources.length; i++) {\n            if (type === sources[i]) {\n              return targets ? targets[i] : anyType;\n            }\n          }\n          return type;\n        }\n        case 2: {\n          const sources = mapper.sources;\n          const targets = mapper.targets;\n          for (let i = 0; i < sources.length; i++) {\n            if (type === sources[i]) {\n              return targets[i]();\n            }\n          }\n          return type;\n        }\n        case 3:\n          return mapper.func(type);\n        case 4:\n        case 5:\n          const t1 = getMappedType(type, mapper.mapper1);\n          return t1 !== type && mapper.kind === 4 ? instantiateType(t1, mapper.mapper2) : getMappedType(t1, mapper.mapper2);\n      }\n    }\n    function makeUnaryTypeMapper(source, target) {\n      return Debug.attachDebugPrototypeIfDebug({ kind: 0, source, target });\n    }\n    function makeArrayTypeMapper(sources, targets) {\n      return Debug.attachDebugPrototypeIfDebug({ kind: 1, sources, targets });\n    }\n    function makeFunctionTypeMapper(func, debugInfo) {\n      return Debug.attachDebugPrototypeIfDebug({ kind: 3, func, debugInfo: Debug.isDebugging ? debugInfo : void 0 });\n    }\n    function makeDeferredTypeMapper(sources, targets) {\n      return Debug.attachDebugPrototypeIfDebug({ kind: 2, sources, targets });\n    }\n    function makeCompositeTypeMapper(kind, mapper1, mapper2) {\n      return Debug.attachDebugPrototypeIfDebug({ kind, mapper1, mapper2 });\n    }\n    function createTypeEraser(sources) {\n      return createTypeMapper(sources, void 0);\n    }\n    function createBackreferenceMapper(context, index) {\n      const forwardInferences = context.inferences.slice(index);\n      return createTypeMapper(map(forwardInferences, (i) => i.typeParameter), map(forwardInferences, () => unknownType));\n    }\n    function combineTypeMappers(mapper1, mapper2) {\n      return mapper1 ? makeCompositeTypeMapper(4, mapper1, mapper2) : mapper2;\n    }\n    function mergeTypeMappers(mapper1, mapper2) {\n      return mapper1 ? makeCompositeTypeMapper(5, mapper1, mapper2) : mapper2;\n    }\n    function prependTypeMapping(source, target, mapper) {\n      return !mapper ? makeUnaryTypeMapper(source, target) : makeCompositeTypeMapper(5, makeUnaryTypeMapper(source, target), mapper);\n    }\n    function appendTypeMapping(mapper, source, target) {\n      return !mapper ? makeUnaryTypeMapper(source, target) : makeCompositeTypeMapper(5, mapper, makeUnaryTypeMapper(source, target));\n    }\n    function getRestrictiveTypeParameter(tp) {\n      return !tp.constraint && !getConstraintDeclaration(tp) || tp.constraint === noConstraintType ? tp : tp.restrictiveInstantiation || (tp.restrictiveInstantiation = createTypeParameter(tp.symbol), tp.restrictiveInstantiation.constraint = noConstraintType, tp.restrictiveInstantiation);\n    }\n    function cloneTypeParameter(typeParameter) {\n      const result = createTypeParameter(typeParameter.symbol);\n      result.target = typeParameter;\n      return result;\n    }\n    function instantiateTypePredicate(predicate, mapper) {\n      return createTypePredicate(predicate.kind, predicate.parameterName, predicate.parameterIndex, instantiateType(predicate.type, mapper));\n    }\n    function instantiateSignature(signature, mapper, eraseTypeParameters) {\n      let freshTypeParameters;\n      if (signature.typeParameters && !eraseTypeParameters) {\n        freshTypeParameters = map(signature.typeParameters, cloneTypeParameter);\n        mapper = combineTypeMappers(createTypeMapper(signature.typeParameters, freshTypeParameters), mapper);\n        for (const tp of freshTypeParameters) {\n          tp.mapper = mapper;\n        }\n      }\n      const result = createSignature(signature.declaration, freshTypeParameters, signature.thisParameter && instantiateSymbol(signature.thisParameter, mapper), instantiateList(signature.parameters, mapper, instantiateSymbol), void 0, void 0, signature.minArgumentCount, signature.flags & 39);\n      result.target = signature;\n      result.mapper = mapper;\n      return result;\n    }\n    function instantiateSymbol(symbol, mapper) {\n      const links = getSymbolLinks(symbol);\n      if (links.type && !couldContainTypeVariables(links.type)) {\n        return symbol;\n      }\n      if (getCheckFlags(symbol) & 1) {\n        symbol = links.target;\n        mapper = combineTypeMappers(links.mapper, mapper);\n      }\n      const result = createSymbol(symbol.flags, symbol.escapedName, 1 | getCheckFlags(symbol) & (8 | 4096 | 16384 | 32768));\n      result.declarations = symbol.declarations;\n      result.parent = symbol.parent;\n      result.links.target = symbol;\n      result.links.mapper = mapper;\n      if (symbol.valueDeclaration) {\n        result.valueDeclaration = symbol.valueDeclaration;\n      }\n      if (links.nameType) {\n        result.links.nameType = links.nameType;\n      }\n      return result;\n    }\n    function getObjectTypeInstantiation(type, mapper, aliasSymbol, aliasTypeArguments) {\n      const declaration = type.objectFlags & 4 ? type.node : type.objectFlags & 8388608 ? type.node : type.symbol.declarations[0];\n      const links = getNodeLinks(declaration);\n      const target = type.objectFlags & 4 ? links.resolvedType : type.objectFlags & 64 ? type.target : type;\n      let typeParameters = links.outerTypeParameters;\n      if (!typeParameters) {\n        let outerTypeParameters = getOuterTypeParameters(declaration, true);\n        if (isJSConstructor(declaration)) {\n          const templateTagParameters = getTypeParametersFromDeclaration(declaration);\n          outerTypeParameters = addRange(outerTypeParameters, templateTagParameters);\n        }\n        typeParameters = outerTypeParameters || emptyArray;\n        const allDeclarations = type.objectFlags & (4 | 8388608) ? [declaration] : type.symbol.declarations;\n        typeParameters = (target.objectFlags & (4 | 8388608) || target.symbol.flags & 8192 || target.symbol.flags & 2048) && !target.aliasTypeArguments ? filter(typeParameters, (tp) => some(allDeclarations, (d) => isTypeParameterPossiblyReferenced(tp, d))) : typeParameters;\n        links.outerTypeParameters = typeParameters;\n      }\n      if (typeParameters.length) {\n        const combinedMapper = combineTypeMappers(type.mapper, mapper);\n        const typeArguments = map(typeParameters, (t) => getMappedType(t, combinedMapper));\n        const newAliasSymbol = aliasSymbol || type.aliasSymbol;\n        const newAliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(type.aliasTypeArguments, mapper);\n        const id = getTypeListId(typeArguments) + getAliasId(newAliasSymbol, newAliasTypeArguments);\n        if (!target.instantiations) {\n          target.instantiations = /* @__PURE__ */ new Map();\n          target.instantiations.set(getTypeListId(typeParameters) + getAliasId(target.aliasSymbol, target.aliasTypeArguments), target);\n        }\n        let result = target.instantiations.get(id);\n        if (!result) {\n          const newMapper = createTypeMapper(typeParameters, typeArguments);\n          result = target.objectFlags & 4 ? createDeferredTypeReference(type.target, type.node, newMapper, newAliasSymbol, newAliasTypeArguments) : target.objectFlags & 32 ? instantiateMappedType(target, newMapper, newAliasSymbol, newAliasTypeArguments) : instantiateAnonymousType(target, newMapper, newAliasSymbol, newAliasTypeArguments);\n          target.instantiations.set(id, result);\n        }\n        return result;\n      }\n      return type;\n    }\n    function maybeTypeParameterReference(node) {\n      return !(node.parent.kind === 180 && node.parent.typeArguments && node === node.parent.typeName || node.parent.kind === 202 && node.parent.typeArguments && node === node.parent.qualifier);\n    }\n    function isTypeParameterPossiblyReferenced(tp, node) {\n      if (tp.symbol && tp.symbol.declarations && tp.symbol.declarations.length === 1) {\n        const container = tp.symbol.declarations[0].parent;\n        for (let n = node; n !== container; n = n.parent) {\n          if (!n || n.kind === 238 || n.kind === 191 && forEachChild(n.extendsType, containsReference)) {\n            return true;\n          }\n        }\n        return containsReference(node);\n      }\n      return true;\n      function containsReference(node2) {\n        switch (node2.kind) {\n          case 194:\n            return !!tp.isThisType;\n          case 79:\n            return !tp.isThisType && isPartOfTypeNode(node2) && maybeTypeParameterReference(node2) && getTypeFromTypeNodeWorker(node2) === tp;\n          case 183:\n            const entityName = node2.exprName;\n            const firstIdentifier = getFirstIdentifier(entityName);\n            const firstIdentifierSymbol = getResolvedSymbol(firstIdentifier);\n            const tpDeclaration = tp.symbol.declarations[0];\n            let tpScope;\n            if (tpDeclaration.kind === 165) {\n              tpScope = tpDeclaration.parent;\n            } else if (tp.isThisType) {\n              tpScope = tpDeclaration;\n            } else {\n              return true;\n            }\n            if (firstIdentifierSymbol.declarations) {\n              return some(firstIdentifierSymbol.declarations, (idDecl) => isNodeDescendantOf(idDecl, tpScope)) || some(node2.typeArguments, containsReference);\n            }\n            return true;\n          case 171:\n          case 170:\n            return !node2.type && !!node2.body || some(node2.typeParameters, containsReference) || some(node2.parameters, containsReference) || !!node2.type && containsReference(node2.type);\n        }\n        return !!forEachChild(node2, containsReference);\n      }\n    }\n    function getHomomorphicTypeVariable(type) {\n      const constraintType = getConstraintTypeFromMappedType(type);\n      if (constraintType.flags & 4194304) {\n        const typeVariable = getActualTypeVariable(constraintType.type);\n        if (typeVariable.flags & 262144) {\n          return typeVariable;\n        }\n      }\n      return void 0;\n    }\n    function instantiateMappedType(type, mapper, aliasSymbol, aliasTypeArguments) {\n      const typeVariable = getHomomorphicTypeVariable(type);\n      if (typeVariable) {\n        const mappedTypeVariable = instantiateType(typeVariable, mapper);\n        if (typeVariable !== mappedTypeVariable) {\n          return mapTypeWithAlias(getReducedType(mappedTypeVariable), (t) => {\n            if (t.flags & (3 | 58982400 | 524288 | 2097152) && t !== wildcardType && !isErrorType(t)) {\n              if (!type.declaration.nameType) {\n                let constraint;\n                if (isArrayType(t) || t.flags & 1 && findResolutionCycleStartIndex(typeVariable, 4) < 0 && (constraint = getConstraintOfTypeParameter(typeVariable)) && everyType(constraint, isArrayOrTupleType)) {\n                  return instantiateMappedArrayType(t, type, prependTypeMapping(typeVariable, t, mapper));\n                }\n                if (isGenericTupleType(t)) {\n                  return instantiateMappedGenericTupleType(t, type, typeVariable, mapper);\n                }\n                if (isTupleType(t)) {\n                  return instantiateMappedTupleType(t, type, prependTypeMapping(typeVariable, t, mapper));\n                }\n              }\n              return instantiateAnonymousType(type, prependTypeMapping(typeVariable, t, mapper));\n            }\n            return t;\n          }, aliasSymbol, aliasTypeArguments);\n        }\n      }\n      return instantiateType(getConstraintTypeFromMappedType(type), mapper) === wildcardType ? wildcardType : instantiateAnonymousType(type, mapper, aliasSymbol, aliasTypeArguments);\n    }\n    function getModifiedReadonlyState(state, modifiers) {\n      return modifiers & 1 ? true : modifiers & 2 ? false : state;\n    }\n    function instantiateMappedGenericTupleType(tupleType, mappedType, typeVariable, mapper) {\n      const elementFlags = tupleType.target.elementFlags;\n      const elementTypes = map(getTypeArguments(tupleType), (t, i) => {\n        const singleton = elementFlags[i] & 8 ? t : elementFlags[i] & 4 ? createArrayType(t) : createTupleType([t], [elementFlags[i]]);\n        return instantiateMappedType(mappedType, prependTypeMapping(typeVariable, singleton, mapper));\n      });\n      const newReadonly = getModifiedReadonlyState(tupleType.target.readonly, getMappedTypeModifiers(mappedType));\n      return createTupleType(elementTypes, map(elementTypes, (_) => 8), newReadonly);\n    }\n    function instantiateMappedArrayType(arrayType, mappedType, mapper) {\n      const elementType = instantiateMappedTypeTemplate(mappedType, numberType, true, mapper);\n      return isErrorType(elementType) ? errorType : createArrayType(elementType, getModifiedReadonlyState(isReadonlyArrayType(arrayType), getMappedTypeModifiers(mappedType)));\n    }\n    function instantiateMappedTupleType(tupleType, mappedType, mapper) {\n      const elementFlags = tupleType.target.elementFlags;\n      const elementTypes = map(getTypeArguments(tupleType), (_, i) => instantiateMappedTypeTemplate(mappedType, getStringLiteralType(\"\" + i), !!(elementFlags[i] & 2), mapper));\n      const modifiers = getMappedTypeModifiers(mappedType);\n      const newTupleModifiers = modifiers & 4 ? map(elementFlags, (f) => f & 1 ? 2 : f) : modifiers & 8 ? map(elementFlags, (f) => f & 2 ? 1 : f) : elementFlags;\n      const newReadonly = getModifiedReadonlyState(tupleType.target.readonly, modifiers);\n      return contains(elementTypes, errorType) ? errorType : createTupleType(elementTypes, newTupleModifiers, newReadonly, tupleType.target.labeledElementDeclarations);\n    }\n    function instantiateMappedTypeTemplate(type, key, isOptional, mapper) {\n      const templateMapper = appendTypeMapping(mapper, getTypeParameterFromMappedType(type), key);\n      const propType = instantiateType(getTemplateTypeFromMappedType(type.target || type), templateMapper);\n      const modifiers = getMappedTypeModifiers(type);\n      return strictNullChecks && modifiers & 4 && !maybeTypeOfKind(propType, 32768 | 16384) ? getOptionalType(propType, true) : strictNullChecks && modifiers & 8 && isOptional ? getTypeWithFacts(propType, 524288) : propType;\n    }\n    function instantiateAnonymousType(type, mapper, aliasSymbol, aliasTypeArguments) {\n      const result = createObjectType(type.objectFlags | 64, type.symbol);\n      if (type.objectFlags & 32) {\n        result.declaration = type.declaration;\n        const origTypeParameter = getTypeParameterFromMappedType(type);\n        const freshTypeParameter = cloneTypeParameter(origTypeParameter);\n        result.typeParameter = freshTypeParameter;\n        mapper = combineTypeMappers(makeUnaryTypeMapper(origTypeParameter, freshTypeParameter), mapper);\n        freshTypeParameter.mapper = mapper;\n      }\n      if (type.objectFlags & 8388608) {\n        result.node = type.node;\n      }\n      result.target = type;\n      result.mapper = mapper;\n      result.aliasSymbol = aliasSymbol || type.aliasSymbol;\n      result.aliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(type.aliasTypeArguments, mapper);\n      result.objectFlags |= result.aliasTypeArguments ? getPropagatingFlagsOfTypes(result.aliasTypeArguments) : 0;\n      return result;\n    }\n    function getConditionalTypeInstantiation(type, mapper, aliasSymbol, aliasTypeArguments) {\n      const root = type.root;\n      if (root.outerTypeParameters) {\n        const typeArguments = map(root.outerTypeParameters, (t) => getMappedType(t, mapper));\n        const id = getTypeListId(typeArguments) + getAliasId(aliasSymbol, aliasTypeArguments);\n        let result = root.instantiations.get(id);\n        if (!result) {\n          const newMapper = createTypeMapper(root.outerTypeParameters, typeArguments);\n          const checkType = root.checkType;\n          const distributionType = root.isDistributive ? getMappedType(checkType, newMapper) : void 0;\n          result = distributionType && checkType !== distributionType && distributionType.flags & (1048576 | 131072) ? mapTypeWithAlias(getReducedType(distributionType), (t) => getConditionalType(root, prependTypeMapping(checkType, t, newMapper)), aliasSymbol, aliasTypeArguments) : getConditionalType(root, newMapper, aliasSymbol, aliasTypeArguments);\n          root.instantiations.set(id, result);\n        }\n        return result;\n      }\n      return type;\n    }\n    function instantiateType(type, mapper) {\n      return type && mapper ? instantiateTypeWithAlias(type, mapper, void 0, void 0) : type;\n    }\n    function instantiateTypeWithAlias(type, mapper, aliasSymbol, aliasTypeArguments) {\n      var _a2;\n      if (!couldContainTypeVariables(type)) {\n        return type;\n      }\n      if (instantiationDepth === 100 || instantiationCount >= 5e6) {\n        (_a2 = tracing) == null ? void 0 : _a2.instant(tracing.Phase.CheckTypes, \"instantiateType_DepthLimit\", { typeId: type.id, instantiationDepth, instantiationCount });\n        error(currentNode, Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite);\n        return errorType;\n      }\n      totalInstantiationCount++;\n      instantiationCount++;\n      instantiationDepth++;\n      const result = instantiateTypeWorker(type, mapper, aliasSymbol, aliasTypeArguments);\n      instantiationDepth--;\n      return result;\n    }\n    function instantiateTypeWorker(type, mapper, aliasSymbol, aliasTypeArguments) {\n      const flags = type.flags;\n      if (flags & 262144) {\n        return getMappedType(type, mapper);\n      }\n      if (flags & 524288) {\n        const objectFlags = type.objectFlags;\n        if (objectFlags & (4 | 16 | 32)) {\n          if (objectFlags & 4 && !type.node) {\n            const resolvedTypeArguments = type.resolvedTypeArguments;\n            const newTypeArguments = instantiateTypes(resolvedTypeArguments, mapper);\n            return newTypeArguments !== resolvedTypeArguments ? createNormalizedTypeReference(type.target, newTypeArguments) : type;\n          }\n          if (objectFlags & 1024) {\n            return instantiateReverseMappedType(type, mapper);\n          }\n          return getObjectTypeInstantiation(type, mapper, aliasSymbol, aliasTypeArguments);\n        }\n        return type;\n      }\n      if (flags & 3145728) {\n        const origin = type.flags & 1048576 ? type.origin : void 0;\n        const types = origin && origin.flags & 3145728 ? origin.types : type.types;\n        const newTypes = instantiateTypes(types, mapper);\n        if (newTypes === types && aliasSymbol === type.aliasSymbol) {\n          return type;\n        }\n        const newAliasSymbol = aliasSymbol || type.aliasSymbol;\n        const newAliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(type.aliasTypeArguments, mapper);\n        return flags & 2097152 || origin && origin.flags & 2097152 ? getIntersectionType(newTypes, newAliasSymbol, newAliasTypeArguments) : getUnionType(newTypes, 1, newAliasSymbol, newAliasTypeArguments);\n      }\n      if (flags & 4194304) {\n        return getIndexType(instantiateType(type.type, mapper));\n      }\n      if (flags & 134217728) {\n        return getTemplateLiteralType(type.texts, instantiateTypes(type.types, mapper));\n      }\n      if (flags & 268435456) {\n        return getStringMappingType(type.symbol, instantiateType(type.type, mapper));\n      }\n      if (flags & 8388608) {\n        const newAliasSymbol = aliasSymbol || type.aliasSymbol;\n        const newAliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(type.aliasTypeArguments, mapper);\n        return getIndexedAccessType(instantiateType(type.objectType, mapper), instantiateType(type.indexType, mapper), type.accessFlags, void 0, newAliasSymbol, newAliasTypeArguments);\n      }\n      if (flags & 16777216) {\n        return getConditionalTypeInstantiation(type, combineTypeMappers(type.mapper, mapper), aliasSymbol, aliasTypeArguments);\n      }\n      if (flags & 33554432) {\n        const newBaseType = instantiateType(type.baseType, mapper);\n        const newConstraint = instantiateType(type.constraint, mapper);\n        if (newBaseType.flags & 8650752 && isGenericType(newConstraint)) {\n          return getSubstitutionType(newBaseType, newConstraint);\n        }\n        if (newConstraint.flags & 3 || isTypeAssignableTo(getRestrictiveInstantiation(newBaseType), getRestrictiveInstantiation(newConstraint))) {\n          return newBaseType;\n        }\n        return newBaseType.flags & 8650752 ? getSubstitutionType(newBaseType, newConstraint) : getIntersectionType([newConstraint, newBaseType]);\n      }\n      return type;\n    }\n    function instantiateReverseMappedType(type, mapper) {\n      const innerMappedType = instantiateType(type.mappedType, mapper);\n      if (!(getObjectFlags(innerMappedType) & 32)) {\n        return type;\n      }\n      const innerIndexType = instantiateType(type.constraintType, mapper);\n      if (!(innerIndexType.flags & 4194304)) {\n        return type;\n      }\n      const instantiated = inferTypeForHomomorphicMappedType(instantiateType(type.source, mapper), innerMappedType, innerIndexType);\n      if (instantiated) {\n        return instantiated;\n      }\n      return type;\n    }\n    function getUniqueLiteralFilledInstantiation(type) {\n      return type.flags & (134348796 | 3 | 131072) ? type : type.uniqueLiteralFilledInstantiation || (type.uniqueLiteralFilledInstantiation = instantiateType(type, uniqueLiteralMapper));\n    }\n    function getPermissiveInstantiation(type) {\n      return type.flags & (134348796 | 3 | 131072) ? type : type.permissiveInstantiation || (type.permissiveInstantiation = instantiateType(type, permissiveMapper));\n    }\n    function getRestrictiveInstantiation(type) {\n      if (type.flags & (134348796 | 3 | 131072)) {\n        return type;\n      }\n      if (type.restrictiveInstantiation) {\n        return type.restrictiveInstantiation;\n      }\n      type.restrictiveInstantiation = instantiateType(type, restrictiveMapper);\n      type.restrictiveInstantiation.restrictiveInstantiation = type.restrictiveInstantiation;\n      return type.restrictiveInstantiation;\n    }\n    function instantiateIndexInfo(info, mapper) {\n      return createIndexInfo(info.keyType, instantiateType(info.type, mapper), info.isReadonly, info.declaration);\n    }\n    function isContextSensitive(node) {\n      Debug.assert(node.kind !== 171 || isObjectLiteralMethod(node));\n      switch (node.kind) {\n        case 215:\n        case 216:\n        case 171:\n        case 259:\n          return isContextSensitiveFunctionLikeDeclaration(node);\n        case 207:\n          return some(node.properties, isContextSensitive);\n        case 206:\n          return some(node.elements, isContextSensitive);\n        case 224:\n          return isContextSensitive(node.whenTrue) || isContextSensitive(node.whenFalse);\n        case 223:\n          return (node.operatorToken.kind === 56 || node.operatorToken.kind === 60) && (isContextSensitive(node.left) || isContextSensitive(node.right));\n        case 299:\n          return isContextSensitive(node.initializer);\n        case 214:\n          return isContextSensitive(node.expression);\n        case 289:\n          return some(node.properties, isContextSensitive) || isJsxOpeningElement(node.parent) && some(node.parent.parent.children, isContextSensitive);\n        case 288: {\n          const { initializer } = node;\n          return !!initializer && isContextSensitive(initializer);\n        }\n        case 291: {\n          const { expression } = node;\n          return !!expression && isContextSensitive(expression);\n        }\n      }\n      return false;\n    }\n    function isContextSensitiveFunctionLikeDeclaration(node) {\n      return hasContextSensitiveParameters(node) || hasContextSensitiveReturnExpression(node);\n    }\n    function hasContextSensitiveReturnExpression(node) {\n      return !node.typeParameters && !getEffectiveReturnTypeNode(node) && !!node.body && node.body.kind !== 238 && isContextSensitive(node.body);\n    }\n    function isContextSensitiveFunctionOrObjectLiteralMethod(func) {\n      return (isFunctionExpressionOrArrowFunction(func) || isObjectLiteralMethod(func)) && isContextSensitiveFunctionLikeDeclaration(func);\n    }\n    function getTypeWithoutSignatures(type) {\n      if (type.flags & 524288) {\n        const resolved = resolveStructuredTypeMembers(type);\n        if (resolved.constructSignatures.length || resolved.callSignatures.length) {\n          const result = createObjectType(16, type.symbol);\n          result.members = resolved.members;\n          result.properties = resolved.properties;\n          result.callSignatures = emptyArray;\n          result.constructSignatures = emptyArray;\n          result.indexInfos = emptyArray;\n          return result;\n        }\n      } else if (type.flags & 2097152) {\n        return getIntersectionType(map(type.types, getTypeWithoutSignatures));\n      }\n      return type;\n    }\n    function isTypeIdenticalTo(source, target) {\n      return isTypeRelatedTo(source, target, identityRelation);\n    }\n    function compareTypesIdentical(source, target) {\n      return isTypeRelatedTo(source, target, identityRelation) ? -1 : 0;\n    }\n    function compareTypesAssignable(source, target) {\n      return isTypeRelatedTo(source, target, assignableRelation) ? -1 : 0;\n    }\n    function compareTypesSubtypeOf(source, target) {\n      return isTypeRelatedTo(source, target, subtypeRelation) ? -1 : 0;\n    }\n    function isTypeSubtypeOf(source, target) {\n      return isTypeRelatedTo(source, target, subtypeRelation);\n    }\n    function isTypeStrictSubtypeOf(source, target) {\n      return isTypeRelatedTo(source, target, strictSubtypeRelation);\n    }\n    function isTypeAssignableTo(source, target) {\n      return isTypeRelatedTo(source, target, assignableRelation);\n    }\n    function isTypeDerivedFrom(source, target) {\n      return source.flags & 1048576 ? every(source.types, (t) => isTypeDerivedFrom(t, target)) : target.flags & 1048576 ? some(target.types, (t) => isTypeDerivedFrom(source, t)) : source.flags & 2097152 ? some(source.types, (t) => isTypeDerivedFrom(t, target)) : source.flags & 58982400 ? isTypeDerivedFrom(getBaseConstraintOfType(source) || unknownType, target) : isEmptyAnonymousObjectType(target) ? !!(source.flags & (524288 | 67108864)) : target === globalObjectType ? !!(source.flags & (524288 | 67108864)) && !isEmptyAnonymousObjectType(source) : target === globalFunctionType ? !!(source.flags & 524288) && isFunctionObjectType(source) : hasBaseType(source, getTargetType(target)) || isArrayType(target) && !isReadonlyArrayType(target) && isTypeDerivedFrom(source, globalReadonlyArrayType);\n    }\n    function isTypeComparableTo(source, target) {\n      return isTypeRelatedTo(source, target, comparableRelation);\n    }\n    function areTypesComparable(type1, type2) {\n      return isTypeComparableTo(type1, type2) || isTypeComparableTo(type2, type1);\n    }\n    function checkTypeAssignableTo(source, target, errorNode, headMessage, containingMessageChain, errorOutputObject) {\n      return checkTypeRelatedTo(source, target, assignableRelation, errorNode, headMessage, containingMessageChain, errorOutputObject);\n    }\n    function checkTypeAssignableToAndOptionallyElaborate(source, target, errorNode, expr, headMessage, containingMessageChain) {\n      return checkTypeRelatedToAndOptionallyElaborate(source, target, assignableRelation, errorNode, expr, headMessage, containingMessageChain, void 0);\n    }\n    function checkTypeRelatedToAndOptionallyElaborate(source, target, relation, errorNode, expr, headMessage, containingMessageChain, errorOutputContainer) {\n      if (isTypeRelatedTo(source, target, relation))\n        return true;\n      if (!errorNode || !elaborateError(expr, source, target, relation, headMessage, containingMessageChain, errorOutputContainer)) {\n        return checkTypeRelatedTo(source, target, relation, errorNode, headMessage, containingMessageChain, errorOutputContainer);\n      }\n      return false;\n    }\n    function isOrHasGenericConditional(type) {\n      return !!(type.flags & 16777216 || type.flags & 2097152 && some(type.types, isOrHasGenericConditional));\n    }\n    function elaborateError(node, source, target, relation, headMessage, containingMessageChain, errorOutputContainer) {\n      if (!node || isOrHasGenericConditional(target))\n        return false;\n      if (!checkTypeRelatedTo(source, target, relation, void 0) && elaborateDidYouMeanToCallOrConstruct(node, source, target, relation, headMessage, containingMessageChain, errorOutputContainer)) {\n        return true;\n      }\n      switch (node.kind) {\n        case 291:\n        case 214:\n          return elaborateError(node.expression, source, target, relation, headMessage, containingMessageChain, errorOutputContainer);\n        case 223:\n          switch (node.operatorToken.kind) {\n            case 63:\n            case 27:\n              return elaborateError(node.right, source, target, relation, headMessage, containingMessageChain, errorOutputContainer);\n          }\n          break;\n        case 207:\n          return elaborateObjectLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer);\n        case 206:\n          return elaborateArrayLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer);\n        case 289:\n          return elaborateJsxComponents(node, source, target, relation, containingMessageChain, errorOutputContainer);\n        case 216:\n          return elaborateArrowFunction(node, source, target, relation, containingMessageChain, errorOutputContainer);\n      }\n      return false;\n    }\n    function elaborateDidYouMeanToCallOrConstruct(node, source, target, relation, headMessage, containingMessageChain, errorOutputContainer) {\n      const callSignatures = getSignaturesOfType(source, 0);\n      const constructSignatures = getSignaturesOfType(source, 1);\n      for (const signatures of [constructSignatures, callSignatures]) {\n        if (some(signatures, (s) => {\n          const returnType = getReturnTypeOfSignature(s);\n          return !(returnType.flags & (1 | 131072)) && checkTypeRelatedTo(returnType, target, relation, void 0);\n        })) {\n          const resultObj = errorOutputContainer || {};\n          checkTypeAssignableTo(source, target, node, headMessage, containingMessageChain, resultObj);\n          const diagnostic = resultObj.errors[resultObj.errors.length - 1];\n          addRelatedInfo(diagnostic, createDiagnosticForNode(node, signatures === constructSignatures ? Diagnostics.Did_you_mean_to_use_new_with_this_expression : Diagnostics.Did_you_mean_to_call_this_expression));\n          return true;\n        }\n      }\n      return false;\n    }\n    function elaborateArrowFunction(node, source, target, relation, containingMessageChain, errorOutputContainer) {\n      if (isBlock(node.body)) {\n        return false;\n      }\n      if (some(node.parameters, hasType)) {\n        return false;\n      }\n      const sourceSig = getSingleCallSignature(source);\n      if (!sourceSig) {\n        return false;\n      }\n      const targetSignatures = getSignaturesOfType(target, 0);\n      if (!length(targetSignatures)) {\n        return false;\n      }\n      const returnExpression = node.body;\n      const sourceReturn = getReturnTypeOfSignature(sourceSig);\n      const targetReturn = getUnionType(map(targetSignatures, getReturnTypeOfSignature));\n      if (!checkTypeRelatedTo(sourceReturn, targetReturn, relation, void 0)) {\n        const elaborated = returnExpression && elaborateError(returnExpression, sourceReturn, targetReturn, relation, void 0, containingMessageChain, errorOutputContainer);\n        if (elaborated) {\n          return elaborated;\n        }\n        const resultObj = errorOutputContainer || {};\n        checkTypeRelatedTo(sourceReturn, targetReturn, relation, returnExpression, void 0, containingMessageChain, resultObj);\n        if (resultObj.errors) {\n          if (target.symbol && length(target.symbol.declarations)) {\n            addRelatedInfo(resultObj.errors[resultObj.errors.length - 1], createDiagnosticForNode(target.symbol.declarations[0], Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature));\n          }\n          if ((getFunctionFlags(node) & 2) === 0 && !getTypeOfPropertyOfType(sourceReturn, \"then\") && checkTypeRelatedTo(createPromiseType(sourceReturn), targetReturn, relation, void 0)) {\n            addRelatedInfo(resultObj.errors[resultObj.errors.length - 1], createDiagnosticForNode(node, Diagnostics.Did_you_mean_to_mark_this_function_as_async));\n          }\n          return true;\n        }\n      }\n      return false;\n    }\n    function getBestMatchIndexedAccessTypeOrUndefined(source, target, nameType) {\n      const idx = getIndexedAccessTypeOrUndefined(target, nameType);\n      if (idx) {\n        return idx;\n      }\n      if (target.flags & 1048576) {\n        const best = getBestMatchingType(source, target);\n        if (best) {\n          return getIndexedAccessTypeOrUndefined(best, nameType);\n        }\n      }\n    }\n    function checkExpressionForMutableLocationWithContextualType(next, sourcePropType) {\n      pushContextualType(next, sourcePropType, false);\n      const result = checkExpressionForMutableLocation(next, 1);\n      popContextualType();\n      return result;\n    }\n    function elaborateElementwise(iterator, source, target, relation, containingMessageChain, errorOutputContainer) {\n      let reportedError = false;\n      for (const value of iterator) {\n        const { errorNode: prop, innerExpression: next, nameType, errorMessage } = value;\n        let targetPropType = getBestMatchIndexedAccessTypeOrUndefined(source, target, nameType);\n        if (!targetPropType || targetPropType.flags & 8388608)\n          continue;\n        let sourcePropType = getIndexedAccessTypeOrUndefined(source, nameType);\n        if (!sourcePropType)\n          continue;\n        const propName = getPropertyNameFromIndex(nameType, void 0);\n        if (!checkTypeRelatedTo(sourcePropType, targetPropType, relation, void 0)) {\n          const elaborated = next && elaborateError(next, sourcePropType, targetPropType, relation, void 0, containingMessageChain, errorOutputContainer);\n          reportedError = true;\n          if (!elaborated) {\n            const resultObj = errorOutputContainer || {};\n            const specificSource = next ? checkExpressionForMutableLocationWithContextualType(next, sourcePropType) : sourcePropType;\n            if (exactOptionalPropertyTypes && isExactOptionalPropertyMismatch(specificSource, targetPropType)) {\n              const diag2 = createDiagnosticForNode(prop, Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target, typeToString(specificSource), typeToString(targetPropType));\n              diagnostics.add(diag2);\n              resultObj.errors = [diag2];\n            } else {\n              const targetIsOptional = !!(propName && (getPropertyOfType(target, propName) || unknownSymbol).flags & 16777216);\n              const sourceIsOptional = !!(propName && (getPropertyOfType(source, propName) || unknownSymbol).flags & 16777216);\n              targetPropType = removeMissingType(targetPropType, targetIsOptional);\n              sourcePropType = removeMissingType(sourcePropType, targetIsOptional && sourceIsOptional);\n              const result = checkTypeRelatedTo(specificSource, targetPropType, relation, prop, errorMessage, containingMessageChain, resultObj);\n              if (result && specificSource !== sourcePropType) {\n                checkTypeRelatedTo(sourcePropType, targetPropType, relation, prop, errorMessage, containingMessageChain, resultObj);\n              }\n            }\n            if (resultObj.errors) {\n              const reportedDiag = resultObj.errors[resultObj.errors.length - 1];\n              const propertyName = isTypeUsableAsPropertyName(nameType) ? getPropertyNameFromType(nameType) : void 0;\n              const targetProp = propertyName !== void 0 ? getPropertyOfType(target, propertyName) : void 0;\n              let issuedElaboration = false;\n              if (!targetProp) {\n                const indexInfo = getApplicableIndexInfo(target, nameType);\n                if (indexInfo && indexInfo.declaration && !getSourceFileOfNode(indexInfo.declaration).hasNoDefaultLib) {\n                  issuedElaboration = true;\n                  addRelatedInfo(reportedDiag, createDiagnosticForNode(indexInfo.declaration, Diagnostics.The_expected_type_comes_from_this_index_signature));\n                }\n              }\n              if (!issuedElaboration && (targetProp && length(targetProp.declarations) || target.symbol && length(target.symbol.declarations))) {\n                const targetNode = targetProp && length(targetProp.declarations) ? targetProp.declarations[0] : target.symbol.declarations[0];\n                if (!getSourceFileOfNode(targetNode).hasNoDefaultLib) {\n                  addRelatedInfo(reportedDiag, createDiagnosticForNode(targetNode, Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1, propertyName && !(nameType.flags & 8192) ? unescapeLeadingUnderscores(propertyName) : typeToString(nameType), typeToString(target)));\n                }\n              }\n            }\n          }\n        }\n      }\n      return reportedError;\n    }\n    function elaborateIterableOrArrayLikeTargetElementwise(iterator, source, target, relation, containingMessageChain, errorOutputContainer) {\n      const tupleOrArrayLikeTargetParts = filterType(target, isArrayOrTupleLikeType);\n      const nonTupleOrArrayLikeTargetParts = filterType(target, (t) => !isArrayOrTupleLikeType(t));\n      const iterationType = nonTupleOrArrayLikeTargetParts !== neverType ? getIterationTypeOfIterable(13, 0, nonTupleOrArrayLikeTargetParts, void 0) : void 0;\n      let reportedError = false;\n      for (let status = iterator.next(); !status.done; status = iterator.next()) {\n        const { errorNode: prop, innerExpression: next, nameType, errorMessage } = status.value;\n        let targetPropType = iterationType;\n        const targetIndexedPropType = tupleOrArrayLikeTargetParts !== neverType ? getBestMatchIndexedAccessTypeOrUndefined(source, tupleOrArrayLikeTargetParts, nameType) : void 0;\n        if (targetIndexedPropType && !(targetIndexedPropType.flags & 8388608)) {\n          targetPropType = iterationType ? getUnionType([iterationType, targetIndexedPropType]) : targetIndexedPropType;\n        }\n        if (!targetPropType)\n          continue;\n        let sourcePropType = getIndexedAccessTypeOrUndefined(source, nameType);\n        if (!sourcePropType)\n          continue;\n        const propName = getPropertyNameFromIndex(nameType, void 0);\n        if (!checkTypeRelatedTo(sourcePropType, targetPropType, relation, void 0)) {\n          const elaborated = next && elaborateError(next, sourcePropType, targetPropType, relation, void 0, containingMessageChain, errorOutputContainer);\n          reportedError = true;\n          if (!elaborated) {\n            const resultObj = errorOutputContainer || {};\n            const specificSource = next ? checkExpressionForMutableLocationWithContextualType(next, sourcePropType) : sourcePropType;\n            if (exactOptionalPropertyTypes && isExactOptionalPropertyMismatch(specificSource, targetPropType)) {\n              const diag2 = createDiagnosticForNode(prop, Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target, typeToString(specificSource), typeToString(targetPropType));\n              diagnostics.add(diag2);\n              resultObj.errors = [diag2];\n            } else {\n              const targetIsOptional = !!(propName && (getPropertyOfType(tupleOrArrayLikeTargetParts, propName) || unknownSymbol).flags & 16777216);\n              const sourceIsOptional = !!(propName && (getPropertyOfType(source, propName) || unknownSymbol).flags & 16777216);\n              targetPropType = removeMissingType(targetPropType, targetIsOptional);\n              sourcePropType = removeMissingType(sourcePropType, targetIsOptional && sourceIsOptional);\n              const result = checkTypeRelatedTo(specificSource, targetPropType, relation, prop, errorMessage, containingMessageChain, resultObj);\n              if (result && specificSource !== sourcePropType) {\n                checkTypeRelatedTo(sourcePropType, targetPropType, relation, prop, errorMessage, containingMessageChain, resultObj);\n              }\n            }\n          }\n        }\n      }\n      return reportedError;\n    }\n    function* generateJsxAttributes(node) {\n      if (!length(node.properties))\n        return;\n      for (const prop of node.properties) {\n        if (isJsxSpreadAttribute(prop) || isHyphenatedJsxName(idText(prop.name)))\n          continue;\n        yield { errorNode: prop.name, innerExpression: prop.initializer, nameType: getStringLiteralType(idText(prop.name)) };\n      }\n    }\n    function* generateJsxChildren(node, getInvalidTextDiagnostic) {\n      if (!length(node.children))\n        return;\n      let memberOffset = 0;\n      for (let i = 0; i < node.children.length; i++) {\n        const child = node.children[i];\n        const nameType = getNumberLiteralType(i - memberOffset);\n        const elem = getElaborationElementForJsxChild(child, nameType, getInvalidTextDiagnostic);\n        if (elem) {\n          yield elem;\n        } else {\n          memberOffset++;\n        }\n      }\n    }\n    function getElaborationElementForJsxChild(child, nameType, getInvalidTextDiagnostic) {\n      switch (child.kind) {\n        case 291:\n          return { errorNode: child, innerExpression: child.expression, nameType };\n        case 11:\n          if (child.containsOnlyTriviaWhiteSpaces) {\n            break;\n          }\n          return { errorNode: child, innerExpression: void 0, nameType, errorMessage: getInvalidTextDiagnostic() };\n        case 281:\n        case 282:\n        case 285:\n          return { errorNode: child, innerExpression: child, nameType };\n        default:\n          return Debug.assertNever(child, \"Found invalid jsx child\");\n      }\n    }\n    function elaborateJsxComponents(node, source, target, relation, containingMessageChain, errorOutputContainer) {\n      let result = elaborateElementwise(generateJsxAttributes(node), source, target, relation, containingMessageChain, errorOutputContainer);\n      let invalidTextDiagnostic;\n      if (isJsxOpeningElement(node.parent) && isJsxElement(node.parent.parent)) {\n        const containingElement = node.parent.parent;\n        const childPropName = getJsxElementChildrenPropertyName(getJsxNamespaceAt(node));\n        const childrenPropName = childPropName === void 0 ? \"children\" : unescapeLeadingUnderscores(childPropName);\n        const childrenNameType = getStringLiteralType(childrenPropName);\n        const childrenTargetType = getIndexedAccessType(target, childrenNameType);\n        const validChildren = getSemanticJsxChildren(containingElement.children);\n        if (!length(validChildren)) {\n          return result;\n        }\n        const moreThanOneRealChildren = length(validChildren) > 1;\n        let arrayLikeTargetParts;\n        let nonArrayLikeTargetParts;\n        const iterableType = getGlobalIterableType(false);\n        if (iterableType !== emptyGenericType) {\n          const anyIterable = createIterableType(anyType);\n          arrayLikeTargetParts = filterType(childrenTargetType, (t) => isTypeAssignableTo(t, anyIterable));\n          nonArrayLikeTargetParts = filterType(childrenTargetType, (t) => !isTypeAssignableTo(t, anyIterable));\n        } else {\n          arrayLikeTargetParts = filterType(childrenTargetType, isArrayOrTupleLikeType);\n          nonArrayLikeTargetParts = filterType(childrenTargetType, (t) => !isArrayOrTupleLikeType(t));\n        }\n        if (moreThanOneRealChildren) {\n          if (arrayLikeTargetParts !== neverType) {\n            const realSource = createTupleType(checkJsxChildren(containingElement, 0));\n            const children = generateJsxChildren(containingElement, getInvalidTextualChildDiagnostic);\n            result = elaborateIterableOrArrayLikeTargetElementwise(children, realSource, arrayLikeTargetParts, relation, containingMessageChain, errorOutputContainer) || result;\n          } else if (!isTypeRelatedTo(getIndexedAccessType(source, childrenNameType), childrenTargetType, relation)) {\n            result = true;\n            const diag2 = error(containingElement.openingElement.tagName, Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided, childrenPropName, typeToString(childrenTargetType));\n            if (errorOutputContainer && errorOutputContainer.skipLogging) {\n              (errorOutputContainer.errors || (errorOutputContainer.errors = [])).push(diag2);\n            }\n          }\n        } else {\n          if (nonArrayLikeTargetParts !== neverType) {\n            const child = validChildren[0];\n            const elem = getElaborationElementForJsxChild(child, childrenNameType, getInvalidTextualChildDiagnostic);\n            if (elem) {\n              result = elaborateElementwise(function* () {\n                yield elem;\n              }(), source, target, relation, containingMessageChain, errorOutputContainer) || result;\n            }\n          } else if (!isTypeRelatedTo(getIndexedAccessType(source, childrenNameType), childrenTargetType, relation)) {\n            result = true;\n            const diag2 = error(containingElement.openingElement.tagName, Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided, childrenPropName, typeToString(childrenTargetType));\n            if (errorOutputContainer && errorOutputContainer.skipLogging) {\n              (errorOutputContainer.errors || (errorOutputContainer.errors = [])).push(diag2);\n            }\n          }\n        }\n      }\n      return result;\n      function getInvalidTextualChildDiagnostic() {\n        if (!invalidTextDiagnostic) {\n          const tagNameText = getTextOfNode(node.parent.tagName);\n          const childPropName = getJsxElementChildrenPropertyName(getJsxNamespaceAt(node));\n          const childrenPropName = childPropName === void 0 ? \"children\" : unescapeLeadingUnderscores(childPropName);\n          const childrenTargetType = getIndexedAccessType(target, getStringLiteralType(childrenPropName));\n          const diagnostic = Diagnostics._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;\n          invalidTextDiagnostic = { ...diagnostic, key: \"!!ALREADY FORMATTED!!\", message: formatMessage(void 0, diagnostic, tagNameText, childrenPropName, typeToString(childrenTargetType)) };\n        }\n        return invalidTextDiagnostic;\n      }\n    }\n    function* generateLimitedTupleElements(node, target) {\n      const len = length(node.elements);\n      if (!len)\n        return;\n      for (let i = 0; i < len; i++) {\n        if (isTupleLikeType(target) && !getPropertyOfType(target, \"\" + i))\n          continue;\n        const elem = node.elements[i];\n        if (isOmittedExpression(elem))\n          continue;\n        const nameType = getNumberLiteralType(i);\n        yield { errorNode: elem, innerExpression: elem, nameType };\n      }\n    }\n    function elaborateArrayLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer) {\n      if (target.flags & (134348796 | 131072))\n        return false;\n      if (isTupleLikeType(source)) {\n        return elaborateElementwise(generateLimitedTupleElements(node, target), source, target, relation, containingMessageChain, errorOutputContainer);\n      }\n      pushContextualType(node, target, false);\n      const tupleizedType = checkArrayLiteral(node, 1, true);\n      popContextualType();\n      if (isTupleLikeType(tupleizedType)) {\n        return elaborateElementwise(generateLimitedTupleElements(node, target), tupleizedType, target, relation, containingMessageChain, errorOutputContainer);\n      }\n      return false;\n    }\n    function* generateObjectLiteralElements(node) {\n      if (!length(node.properties))\n        return;\n      for (const prop of node.properties) {\n        if (isSpreadAssignment(prop))\n          continue;\n        const type = getLiteralTypeFromProperty(getSymbolOfDeclaration(prop), 8576);\n        if (!type || type.flags & 131072) {\n          continue;\n        }\n        switch (prop.kind) {\n          case 175:\n          case 174:\n          case 171:\n          case 300:\n            yield { errorNode: prop.name, innerExpression: void 0, nameType: type };\n            break;\n          case 299:\n            yield { errorNode: prop.name, innerExpression: prop.initializer, nameType: type, errorMessage: isComputedNonLiteralName(prop.name) ? Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1 : void 0 };\n            break;\n          default:\n            Debug.assertNever(prop);\n        }\n      }\n    }\n    function elaborateObjectLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer) {\n      if (target.flags & (134348796 | 131072))\n        return false;\n      return elaborateElementwise(generateObjectLiteralElements(node), source, target, relation, containingMessageChain, errorOutputContainer);\n    }\n    function checkTypeComparableTo(source, target, errorNode, headMessage, containingMessageChain) {\n      return checkTypeRelatedTo(source, target, comparableRelation, errorNode, headMessage, containingMessageChain);\n    }\n    function isSignatureAssignableTo(source, target, ignoreReturnTypes) {\n      return compareSignaturesRelated(source, target, ignoreReturnTypes ? 4 : 0, false, void 0, void 0, compareTypesAssignable, void 0) !== 0;\n    }\n    function isTopSignature(s) {\n      if (!s.typeParameters && (!s.thisParameter || isTypeAny(getTypeOfParameter(s.thisParameter))) && s.parameters.length === 1 && signatureHasRestParameter(s)) {\n        const paramType = getTypeOfParameter(s.parameters[0]);\n        const restType = isArrayType(paramType) ? getTypeArguments(paramType)[0] : paramType;\n        return !!(restType.flags & (1 | 131072) && getReturnTypeOfSignature(s).flags & 3);\n      }\n      return false;\n    }\n    function compareSignaturesRelated(source, target, checkMode, reportErrors2, errorReporter, incompatibleErrorReporter, compareTypes, reportUnreliableMarkers) {\n      if (source === target) {\n        return -1;\n      }\n      if (!(checkMode & 16 && isTopSignature(source)) && isTopSignature(target)) {\n        return -1;\n      }\n      if (checkMode & 16 && isTopSignature(source) && !isTopSignature(target)) {\n        return 0;\n      }\n      const targetCount = getParameterCount(target);\n      const sourceHasMoreParameters = !hasEffectiveRestParameter(target) && (checkMode & 8 ? hasEffectiveRestParameter(source) || getParameterCount(source) > targetCount : getMinArgumentCount(source) > targetCount);\n      if (sourceHasMoreParameters) {\n        return 0;\n      }\n      if (source.typeParameters && source.typeParameters !== target.typeParameters) {\n        target = getCanonicalSignature(target);\n        source = instantiateSignatureInContextOf(source, target, void 0, compareTypes);\n      }\n      const sourceCount = getParameterCount(source);\n      const sourceRestType = getNonArrayRestType(source);\n      const targetRestType = getNonArrayRestType(target);\n      if (sourceRestType || targetRestType) {\n        void instantiateType(sourceRestType || targetRestType, reportUnreliableMarkers);\n      }\n      const kind = target.declaration ? target.declaration.kind : 0;\n      const strictVariance = !(checkMode & 3) && strictFunctionTypes && kind !== 171 && kind !== 170 && kind !== 173;\n      let result = -1;\n      const sourceThisType = getThisTypeOfSignature(source);\n      if (sourceThisType && sourceThisType !== voidType) {\n        const targetThisType = getThisTypeOfSignature(target);\n        if (targetThisType) {\n          const related = !strictVariance && compareTypes(sourceThisType, targetThisType, false) || compareTypes(targetThisType, sourceThisType, reportErrors2);\n          if (!related) {\n            if (reportErrors2) {\n              errorReporter(Diagnostics.The_this_types_of_each_signature_are_incompatible);\n            }\n            return 0;\n          }\n          result &= related;\n        }\n      }\n      const paramCount = sourceRestType || targetRestType ? Math.min(sourceCount, targetCount) : Math.max(sourceCount, targetCount);\n      const restIndex = sourceRestType || targetRestType ? paramCount - 1 : -1;\n      for (let i = 0; i < paramCount; i++) {\n        const sourceType = i === restIndex ? getRestTypeAtPosition(source, i) : tryGetTypeAtPosition(source, i);\n        const targetType = i === restIndex ? getRestTypeAtPosition(target, i) : tryGetTypeAtPosition(target, i);\n        if (sourceType && targetType) {\n          const sourceSig = checkMode & 3 ? void 0 : getSingleCallSignature(getNonNullableType(sourceType));\n          const targetSig = checkMode & 3 ? void 0 : getSingleCallSignature(getNonNullableType(targetType));\n          const callbacks = sourceSig && targetSig && !getTypePredicateOfSignature(sourceSig) && !getTypePredicateOfSignature(targetSig) && (getTypeFacts(sourceType) & 50331648) === (getTypeFacts(targetType) & 50331648);\n          let related = callbacks ? compareSignaturesRelated(targetSig, sourceSig, checkMode & 8 | (strictVariance ? 2 : 1), reportErrors2, errorReporter, incompatibleErrorReporter, compareTypes, reportUnreliableMarkers) : !(checkMode & 3) && !strictVariance && compareTypes(sourceType, targetType, false) || compareTypes(targetType, sourceType, reportErrors2);\n          if (related && checkMode & 8 && i >= getMinArgumentCount(source) && i < getMinArgumentCount(target) && compareTypes(sourceType, targetType, false)) {\n            related = 0;\n          }\n          if (!related) {\n            if (reportErrors2) {\n              errorReporter(Diagnostics.Types_of_parameters_0_and_1_are_incompatible, unescapeLeadingUnderscores(getParameterNameAtPosition(source, i)), unescapeLeadingUnderscores(getParameterNameAtPosition(target, i)));\n            }\n            return 0;\n          }\n          result &= related;\n        }\n      }\n      if (!(checkMode & 4)) {\n        const targetReturnType = isResolvingReturnTypeOfSignature(target) ? anyType : target.declaration && isJSConstructor(target.declaration) ? getDeclaredTypeOfClassOrInterface(getMergedSymbol(target.declaration.symbol)) : getReturnTypeOfSignature(target);\n        if (targetReturnType === voidType || targetReturnType === anyType) {\n          return result;\n        }\n        const sourceReturnType = isResolvingReturnTypeOfSignature(source) ? anyType : source.declaration && isJSConstructor(source.declaration) ? getDeclaredTypeOfClassOrInterface(getMergedSymbol(source.declaration.symbol)) : getReturnTypeOfSignature(source);\n        const targetTypePredicate = getTypePredicateOfSignature(target);\n        if (targetTypePredicate) {\n          const sourceTypePredicate = getTypePredicateOfSignature(source);\n          if (sourceTypePredicate) {\n            result &= compareTypePredicateRelatedTo(sourceTypePredicate, targetTypePredicate, reportErrors2, errorReporter, compareTypes);\n          } else if (isIdentifierTypePredicate(targetTypePredicate)) {\n            if (reportErrors2) {\n              errorReporter(Diagnostics.Signature_0_must_be_a_type_predicate, signatureToString(source));\n            }\n            return 0;\n          }\n        } else {\n          result &= checkMode & 1 && compareTypes(targetReturnType, sourceReturnType, false) || compareTypes(sourceReturnType, targetReturnType, reportErrors2);\n          if (!result && reportErrors2 && incompatibleErrorReporter) {\n            incompatibleErrorReporter(sourceReturnType, targetReturnType);\n          }\n        }\n      }\n      return result;\n    }\n    function compareTypePredicateRelatedTo(source, target, reportErrors2, errorReporter, compareTypes) {\n      if (source.kind !== target.kind) {\n        if (reportErrors2) {\n          errorReporter(Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard);\n          errorReporter(Diagnostics.Type_predicate_0_is_not_assignable_to_1, typePredicateToString(source), typePredicateToString(target));\n        }\n        return 0;\n      }\n      if (source.kind === 1 || source.kind === 3) {\n        if (source.parameterIndex !== target.parameterIndex) {\n          if (reportErrors2) {\n            errorReporter(Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1, source.parameterName, target.parameterName);\n            errorReporter(Diagnostics.Type_predicate_0_is_not_assignable_to_1, typePredicateToString(source), typePredicateToString(target));\n          }\n          return 0;\n        }\n      }\n      const related = source.type === target.type ? -1 : source.type && target.type ? compareTypes(source.type, target.type, reportErrors2) : 0;\n      if (related === 0 && reportErrors2) {\n        errorReporter(Diagnostics.Type_predicate_0_is_not_assignable_to_1, typePredicateToString(source), typePredicateToString(target));\n      }\n      return related;\n    }\n    function isImplementationCompatibleWithOverload(implementation, overload) {\n      const erasedSource = getErasedSignature(implementation);\n      const erasedTarget = getErasedSignature(overload);\n      const sourceReturnType = getReturnTypeOfSignature(erasedSource);\n      const targetReturnType = getReturnTypeOfSignature(erasedTarget);\n      if (targetReturnType === voidType || isTypeRelatedTo(targetReturnType, sourceReturnType, assignableRelation) || isTypeRelatedTo(sourceReturnType, targetReturnType, assignableRelation)) {\n        return isSignatureAssignableTo(erasedSource, erasedTarget, true);\n      }\n      return false;\n    }\n    function isEmptyResolvedType(t) {\n      return t !== anyFunctionType && t.properties.length === 0 && t.callSignatures.length === 0 && t.constructSignatures.length === 0 && t.indexInfos.length === 0;\n    }\n    function isEmptyObjectType(type) {\n      return type.flags & 524288 ? !isGenericMappedType(type) && isEmptyResolvedType(resolveStructuredTypeMembers(type)) : type.flags & 67108864 ? true : type.flags & 1048576 ? some(type.types, isEmptyObjectType) : type.flags & 2097152 ? every(type.types, isEmptyObjectType) : false;\n    }\n    function isEmptyAnonymousObjectType(type) {\n      return !!(getObjectFlags(type) & 16 && (type.members && isEmptyResolvedType(type) || type.symbol && type.symbol.flags & 2048 && getMembersOfSymbol(type.symbol).size === 0));\n    }\n    function isUnknownLikeUnionType(type) {\n      if (strictNullChecks && type.flags & 1048576) {\n        if (!(type.objectFlags & 33554432)) {\n          const types = type.types;\n          type.objectFlags |= 33554432 | (types.length >= 3 && types[0].flags & 32768 && types[1].flags & 65536 && some(types, isEmptyAnonymousObjectType) ? 67108864 : 0);\n        }\n        return !!(type.objectFlags & 67108864);\n      }\n      return false;\n    }\n    function containsUndefinedType(type) {\n      return !!((type.flags & 1048576 ? type.types[0] : type).flags & 32768);\n    }\n    function isStringIndexSignatureOnlyType(type) {\n      return type.flags & 524288 && !isGenericMappedType(type) && getPropertiesOfType(type).length === 0 && getIndexInfosOfType(type).length === 1 && !!getIndexInfoOfType(type, stringType) || type.flags & 3145728 && every(type.types, isStringIndexSignatureOnlyType) || false;\n    }\n    function isEnumTypeRelatedTo(source, target, errorReporter) {\n      const sourceSymbol = source.flags & 8 ? getParentOfSymbol(source) : source;\n      const targetSymbol = target.flags & 8 ? getParentOfSymbol(target) : target;\n      if (sourceSymbol === targetSymbol) {\n        return true;\n      }\n      if (sourceSymbol.escapedName !== targetSymbol.escapedName || !(sourceSymbol.flags & 256) || !(targetSymbol.flags & 256)) {\n        return false;\n      }\n      const id = getSymbolId(sourceSymbol) + \",\" + getSymbolId(targetSymbol);\n      const entry = enumRelation.get(id);\n      if (entry !== void 0 && !(!(entry & 4) && entry & 2 && errorReporter)) {\n        return !!(entry & 1);\n      }\n      const targetEnumType = getTypeOfSymbol(targetSymbol);\n      for (const property of getPropertiesOfType(getTypeOfSymbol(sourceSymbol))) {\n        if (property.flags & 8) {\n          const targetProperty = getPropertyOfType(targetEnumType, property.escapedName);\n          if (!targetProperty || !(targetProperty.flags & 8)) {\n            if (errorReporter) {\n              errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(property), typeToString(getDeclaredTypeOfSymbol(targetSymbol), void 0, 64));\n              enumRelation.set(id, 2 | 4);\n            } else {\n              enumRelation.set(id, 2);\n            }\n            return false;\n          }\n        }\n      }\n      enumRelation.set(id, 1);\n      return true;\n    }\n    function isSimpleTypeRelatedTo(source, target, relation, errorReporter) {\n      const s = source.flags;\n      const t = target.flags;\n      if (t & 1 || s & 131072 || source === wildcardType)\n        return true;\n      if (t & 2 && !(relation === strictSubtypeRelation && s & 1))\n        return true;\n      if (t & 131072)\n        return false;\n      if (s & 402653316 && t & 4)\n        return true;\n      if (s & 128 && s & 1024 && t & 128 && !(t & 1024) && source.value === target.value)\n        return true;\n      if (s & 296 && t & 8)\n        return true;\n      if (s & 256 && s & 1024 && t & 256 && !(t & 1024) && source.value === target.value)\n        return true;\n      if (s & 2112 && t & 64)\n        return true;\n      if (s & 528 && t & 16)\n        return true;\n      if (s & 12288 && t & 4096)\n        return true;\n      if (s & 32 && t & 32 && source.symbol.escapedName === target.symbol.escapedName && isEnumTypeRelatedTo(source.symbol, target.symbol, errorReporter))\n        return true;\n      if (s & 1024 && t & 1024) {\n        if (s & 1048576 && t & 1048576 && isEnumTypeRelatedTo(source.symbol, target.symbol, errorReporter))\n          return true;\n        if (s & 2944 && t & 2944 && source.value === target.value && isEnumTypeRelatedTo(source.symbol, target.symbol, errorReporter))\n          return true;\n      }\n      if (s & 32768 && (!strictNullChecks && !(t & 3145728) || t & (32768 | 16384)))\n        return true;\n      if (s & 65536 && (!strictNullChecks && !(t & 3145728) || t & 65536))\n        return true;\n      if (s & 524288 && t & 67108864 && !(relation === strictSubtypeRelation && isEmptyAnonymousObjectType(source) && !(getObjectFlags(source) & 8192)))\n        return true;\n      if (relation === assignableRelation || relation === comparableRelation) {\n        if (s & 1)\n          return true;\n        if (s & 8 && (t & 32 || t & 256 && t & 1024))\n          return true;\n        if (s & 256 && !(s & 1024) && (t & 32 || t & 256 && t & 1024 && source.value === target.value))\n          return true;\n        if (isUnknownLikeUnionType(target))\n          return true;\n      }\n      return false;\n    }\n    function isTypeRelatedTo(source, target, relation) {\n      if (isFreshLiteralType(source)) {\n        source = source.regularType;\n      }\n      if (isFreshLiteralType(target)) {\n        target = target.regularType;\n      }\n      if (source === target) {\n        return true;\n      }\n      if (relation !== identityRelation) {\n        if (relation === comparableRelation && !(target.flags & 131072) && isSimpleTypeRelatedTo(target, source, relation) || isSimpleTypeRelatedTo(source, target, relation)) {\n          return true;\n        }\n      } else if (!((source.flags | target.flags) & (3145728 | 8388608 | 16777216 | 33554432))) {\n        if (source.flags !== target.flags)\n          return false;\n        if (source.flags & 67358815)\n          return true;\n      }\n      if (source.flags & 524288 && target.flags & 524288) {\n        const related = relation.get(getRelationKey(source, target, 0, relation, false));\n        if (related !== void 0) {\n          return !!(related & 1);\n        }\n      }\n      if (source.flags & 469499904 || target.flags & 469499904) {\n        return checkTypeRelatedTo(source, target, relation, void 0);\n      }\n      return false;\n    }\n    function isIgnoredJsxProperty(source, sourceProp) {\n      return getObjectFlags(source) & 2048 && isHyphenatedJsxName(sourceProp.escapedName);\n    }\n    function getNormalizedType(type, writing) {\n      while (true) {\n        const t = isFreshLiteralType(type) ? type.regularType : getObjectFlags(type) & 4 ? type.node ? createTypeReference(type.target, getTypeArguments(type)) : getSingleBaseForNonAugmentingSubtype(type) || type : type.flags & 3145728 ? getNormalizedUnionOrIntersectionType(type, writing) : type.flags & 33554432 ? writing ? type.baseType : getSubstitutionIntersection(type) : type.flags & 25165824 ? getSimplifiedType(type, writing) : type;\n        if (t === type)\n          return t;\n        type = t;\n      }\n    }\n    function getNormalizedUnionOrIntersectionType(type, writing) {\n      const reduced = getReducedType(type);\n      if (reduced !== type) {\n        return reduced;\n      }\n      if (type.flags & 2097152 && some(type.types, isEmptyAnonymousObjectType)) {\n        const normalizedTypes = sameMap(type.types, (t) => getNormalizedType(t, writing));\n        if (normalizedTypes !== type.types) {\n          return getIntersectionType(normalizedTypes);\n        }\n      }\n      return type;\n    }\n    function checkTypeRelatedTo(source, target, relation, errorNode, headMessage, containingMessageChain, errorOutputContainer) {\n      var _a2;\n      let errorInfo;\n      let relatedInfo;\n      let maybeKeys;\n      let sourceStack;\n      let targetStack;\n      let maybeCount = 0;\n      let sourceDepth = 0;\n      let targetDepth = 0;\n      let expandingFlags = 0;\n      let overflow = false;\n      let overrideNextErrorInfo = 0;\n      let lastSkippedInfo;\n      let incompatibleStack;\n      Debug.assert(relation !== identityRelation || !errorNode, \"no error reporting in identity checking\");\n      const result = isRelatedTo(source, target, 3, !!errorNode, headMessage);\n      if (incompatibleStack) {\n        reportIncompatibleStack();\n      }\n      if (overflow) {\n        (_a2 = tracing) == null ? void 0 : _a2.instant(tracing.Phase.CheckTypes, \"checkTypeRelatedTo_DepthLimit\", { sourceId: source.id, targetId: target.id, depth: sourceDepth, targetDepth });\n        const diag2 = error(errorNode || currentNode, Diagnostics.Excessive_stack_depth_comparing_types_0_and_1, typeToString(source), typeToString(target));\n        if (errorOutputContainer) {\n          (errorOutputContainer.errors || (errorOutputContainer.errors = [])).push(diag2);\n        }\n      } else if (errorInfo) {\n        if (containingMessageChain) {\n          const chain = containingMessageChain();\n          if (chain) {\n            concatenateDiagnosticMessageChains(chain, errorInfo);\n            errorInfo = chain;\n          }\n        }\n        let relatedInformation;\n        if (headMessage && errorNode && !result && source.symbol) {\n          const links = getSymbolLinks(source.symbol);\n          if (links.originatingImport && !isImportCall(links.originatingImport)) {\n            const helpfulRetry = checkTypeRelatedTo(getTypeOfSymbol(links.target), target, relation, void 0);\n            if (helpfulRetry) {\n              const diag3 = createDiagnosticForNode(links.originatingImport, Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);\n              relatedInformation = append(relatedInformation, diag3);\n            }\n          }\n        }\n        const diag2 = createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(errorNode), errorNode, errorInfo, relatedInformation);\n        if (relatedInfo) {\n          addRelatedInfo(diag2, ...relatedInfo);\n        }\n        if (errorOutputContainer) {\n          (errorOutputContainer.errors || (errorOutputContainer.errors = [])).push(diag2);\n        }\n        if (!errorOutputContainer || !errorOutputContainer.skipLogging) {\n          diagnostics.add(diag2);\n        }\n      }\n      if (errorNode && errorOutputContainer && errorOutputContainer.skipLogging && result === 0) {\n        Debug.assert(!!errorOutputContainer.errors, \"missed opportunity to interact with error.\");\n      }\n      return result !== 0;\n      function resetErrorInfo(saved) {\n        errorInfo = saved.errorInfo;\n        lastSkippedInfo = saved.lastSkippedInfo;\n        incompatibleStack = saved.incompatibleStack;\n        overrideNextErrorInfo = saved.overrideNextErrorInfo;\n        relatedInfo = saved.relatedInfo;\n      }\n      function captureErrorCalculationState() {\n        return {\n          errorInfo,\n          lastSkippedInfo,\n          incompatibleStack: incompatibleStack == null ? void 0 : incompatibleStack.slice(),\n          overrideNextErrorInfo,\n          relatedInfo: relatedInfo == null ? void 0 : relatedInfo.slice()\n        };\n      }\n      function reportIncompatibleError(message, arg0, arg1, arg2, arg3) {\n        overrideNextErrorInfo++;\n        lastSkippedInfo = void 0;\n        (incompatibleStack || (incompatibleStack = [])).push([message, arg0, arg1, arg2, arg3]);\n      }\n      function reportIncompatibleStack() {\n        const stack = incompatibleStack || [];\n        incompatibleStack = void 0;\n        const info = lastSkippedInfo;\n        lastSkippedInfo = void 0;\n        if (stack.length === 1) {\n          reportError(...stack[0]);\n          if (info) {\n            reportRelationError(void 0, ...info);\n          }\n          return;\n        }\n        let path = \"\";\n        const secondaryRootErrors = [];\n        while (stack.length) {\n          const [msg, ...args] = stack.pop();\n          switch (msg.code) {\n            case Diagnostics.Types_of_property_0_are_incompatible.code: {\n              if (path.indexOf(\"new \") === 0) {\n                path = `(${path})`;\n              }\n              const str = \"\" + args[0];\n              if (path.length === 0) {\n                path = `${str}`;\n              } else if (isIdentifierText(str, getEmitScriptTarget(compilerOptions))) {\n                path = `${path}.${str}`;\n              } else if (str[0] === \"[\" && str[str.length - 1] === \"]\") {\n                path = `${path}${str}`;\n              } else {\n                path = `${path}[${str}]`;\n              }\n              break;\n            }\n            case Diagnostics.Call_signature_return_types_0_and_1_are_incompatible.code:\n            case Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code:\n            case Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:\n            case Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code: {\n              if (path.length === 0) {\n                let mappedMsg = msg;\n                if (msg.code === Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code) {\n                  mappedMsg = Diagnostics.Call_signature_return_types_0_and_1_are_incompatible;\n                } else if (msg.code === Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code) {\n                  mappedMsg = Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible;\n                }\n                secondaryRootErrors.unshift([mappedMsg, args[0], args[1]]);\n              } else {\n                const prefix = msg.code === Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code || msg.code === Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code ? \"new \" : \"\";\n                const params = msg.code === Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code || msg.code === Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code ? \"\" : \"...\";\n                path = `${prefix}${path}(${params})`;\n              }\n              break;\n            }\n            case Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code: {\n              secondaryRootErrors.unshift([Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target, args[0], args[1]]);\n              break;\n            }\n            case Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code: {\n              secondaryRootErrors.unshift([Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target, args[0], args[1], args[2]]);\n              break;\n            }\n            default:\n              return Debug.fail(`Unhandled Diagnostic: ${msg.code}`);\n          }\n        }\n        if (path) {\n          reportError(path[path.length - 1] === \")\" ? Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types : Diagnostics.The_types_of_0_are_incompatible_between_these_types, path);\n        } else {\n          secondaryRootErrors.shift();\n        }\n        for (const [msg, ...args] of secondaryRootErrors) {\n          const originalValue = msg.elidedInCompatabilityPyramid;\n          msg.elidedInCompatabilityPyramid = false;\n          reportError(msg, ...args);\n          msg.elidedInCompatabilityPyramid = originalValue;\n        }\n        if (info) {\n          reportRelationError(void 0, ...info);\n        }\n      }\n      function reportError(message, arg0, arg1, arg2, arg3) {\n        Debug.assert(!!errorNode);\n        if (incompatibleStack)\n          reportIncompatibleStack();\n        if (message.elidedInCompatabilityPyramid)\n          return;\n        errorInfo = chainDiagnosticMessages(errorInfo, message, arg0, arg1, arg2, arg3);\n      }\n      function associateRelatedInfo(info) {\n        Debug.assert(!!errorInfo);\n        if (!relatedInfo) {\n          relatedInfo = [info];\n        } else {\n          relatedInfo.push(info);\n        }\n      }\n      function reportRelationError(message, source2, target2) {\n        if (incompatibleStack)\n          reportIncompatibleStack();\n        const [sourceType, targetType] = getTypeNamesForErrorDisplay(source2, target2);\n        let generalizedSource = source2;\n        let generalizedSourceType = sourceType;\n        if (isLiteralType(source2) && !typeCouldHaveTopLevelSingletonTypes(target2)) {\n          generalizedSource = getBaseTypeOfLiteralType(source2);\n          Debug.assert(!isTypeAssignableTo(generalizedSource, target2), \"generalized source shouldn't be assignable\");\n          generalizedSourceType = getTypeNameForErrorDisplay(generalizedSource);\n        }\n        const targetFlags = target2.flags & 8388608 && !(source2.flags & 8388608) ? target2.objectType.flags : target2.flags;\n        if (targetFlags & 262144 && target2 !== markerSuperTypeForCheck && target2 !== markerSubTypeForCheck) {\n          const constraint = getBaseConstraintOfType(target2);\n          let needsOriginalSource;\n          if (constraint && (isTypeAssignableTo(generalizedSource, constraint) || (needsOriginalSource = isTypeAssignableTo(source2, constraint)))) {\n            reportError(Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2, needsOriginalSource ? sourceType : generalizedSourceType, targetType, typeToString(constraint));\n          } else {\n            errorInfo = void 0;\n            reportError(Diagnostics._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1, targetType, generalizedSourceType);\n          }\n        }\n        if (!message) {\n          if (relation === comparableRelation) {\n            message = Diagnostics.Type_0_is_not_comparable_to_type_1;\n          } else if (sourceType === targetType) {\n            message = Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;\n          } else if (exactOptionalPropertyTypes && getExactOptionalUnassignableProperties(source2, target2).length) {\n            message = Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;\n          } else {\n            if (source2.flags & 128 && target2.flags & 1048576) {\n              const suggestedType = getSuggestedTypeForNonexistentStringLiteralType(source2, target2);\n              if (suggestedType) {\n                reportError(Diagnostics.Type_0_is_not_assignable_to_type_1_Did_you_mean_2, generalizedSourceType, targetType, typeToString(suggestedType));\n                return;\n              }\n            }\n            message = Diagnostics.Type_0_is_not_assignable_to_type_1;\n          }\n        } else if (message === Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1 && exactOptionalPropertyTypes && getExactOptionalUnassignableProperties(source2, target2).length) {\n          message = Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;\n        }\n        reportError(message, generalizedSourceType, targetType);\n      }\n      function tryElaborateErrorsForPrimitivesAndObjects(source2, target2) {\n        const sourceType = symbolValueDeclarationIsContextSensitive(source2.symbol) ? typeToString(source2, source2.symbol.valueDeclaration) : typeToString(source2);\n        const targetType = symbolValueDeclarationIsContextSensitive(target2.symbol) ? typeToString(target2, target2.symbol.valueDeclaration) : typeToString(target2);\n        if (globalStringType === source2 && stringType === target2 || globalNumberType === source2 && numberType === target2 || globalBooleanType === source2 && booleanType === target2 || getGlobalESSymbolType() === source2 && esSymbolType === target2) {\n          reportError(Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible, targetType, sourceType);\n        }\n      }\n      function tryElaborateArrayLikeErrors(source2, target2, reportErrors2) {\n        if (isTupleType(source2)) {\n          if (source2.target.readonly && isMutableArrayOrTuple(target2)) {\n            if (reportErrors2) {\n              reportError(Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1, typeToString(source2), typeToString(target2));\n            }\n            return false;\n          }\n          return isArrayOrTupleType(target2);\n        }\n        if (isReadonlyArrayType(source2) && isMutableArrayOrTuple(target2)) {\n          if (reportErrors2) {\n            reportError(Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1, typeToString(source2), typeToString(target2));\n          }\n          return false;\n        }\n        if (isTupleType(target2)) {\n          return isArrayType(source2);\n        }\n        return true;\n      }\n      function isRelatedToWorker(source2, target2, reportErrors2) {\n        return isRelatedTo(source2, target2, 3, reportErrors2);\n      }\n      function isRelatedTo(originalSource, originalTarget, recursionFlags = 3, reportErrors2 = false, headMessage2, intersectionState = 0) {\n        if (originalSource.flags & 524288 && originalTarget.flags & 134348796) {\n          if (relation === comparableRelation && !(originalTarget.flags & 131072) && isSimpleTypeRelatedTo(originalTarget, originalSource, relation) || isSimpleTypeRelatedTo(originalSource, originalTarget, relation, reportErrors2 ? reportError : void 0)) {\n            return -1;\n          }\n          if (reportErrors2) {\n            reportErrorResults(originalSource, originalTarget, originalSource, originalTarget, headMessage2);\n          }\n          return 0;\n        }\n        const source2 = getNormalizedType(originalSource, false);\n        let target2 = getNormalizedType(originalTarget, true);\n        if (source2 === target2)\n          return -1;\n        if (relation === identityRelation) {\n          if (source2.flags !== target2.flags)\n            return 0;\n          if (source2.flags & 67358815)\n            return -1;\n          traceUnionsOrIntersectionsTooLarge(source2, target2);\n          return recursiveTypeRelatedTo(source2, target2, false, 0, recursionFlags);\n        }\n        if (source2.flags & 262144 && getConstraintOfType(source2) === target2) {\n          return -1;\n        }\n        if (source2.flags & 470302716 && target2.flags & 1048576) {\n          const types = target2.types;\n          const candidate = types.length === 2 && types[0].flags & 98304 ? types[1] : types.length === 3 && types[0].flags & 98304 && types[1].flags & 98304 ? types[2] : void 0;\n          if (candidate && !(candidate.flags & 98304)) {\n            target2 = getNormalizedType(candidate, true);\n            if (source2 === target2)\n              return -1;\n          }\n        }\n        if (relation === comparableRelation && !(target2.flags & 131072) && isSimpleTypeRelatedTo(target2, source2, relation) || isSimpleTypeRelatedTo(source2, target2, relation, reportErrors2 ? reportError : void 0))\n          return -1;\n        if (source2.flags & 469499904 || target2.flags & 469499904) {\n          const isPerformingExcessPropertyChecks = !(intersectionState & 2) && (isObjectLiteralType2(source2) && getObjectFlags(source2) & 8192);\n          if (isPerformingExcessPropertyChecks) {\n            if (hasExcessProperties(source2, target2, reportErrors2)) {\n              if (reportErrors2) {\n                reportRelationError(headMessage2, source2, originalTarget.aliasSymbol ? originalTarget : target2);\n              }\n              return 0;\n            }\n          }\n          const isPerformingCommonPropertyChecks = (relation !== comparableRelation || isUnitType(source2)) && !(intersectionState & 2) && source2.flags & (134348796 | 524288 | 2097152) && source2 !== globalObjectType && target2.flags & (524288 | 2097152) && isWeakType(target2) && (getPropertiesOfType(source2).length > 0 || typeHasCallOrConstructSignatures(source2));\n          const isComparingJsxAttributes = !!(getObjectFlags(source2) & 2048);\n          if (isPerformingCommonPropertyChecks && !hasCommonProperties(source2, target2, isComparingJsxAttributes)) {\n            if (reportErrors2) {\n              const sourceString = typeToString(originalSource.aliasSymbol ? originalSource : source2);\n              const targetString = typeToString(originalTarget.aliasSymbol ? originalTarget : target2);\n              const calls = getSignaturesOfType(source2, 0);\n              const constructs = getSignaturesOfType(source2, 1);\n              if (calls.length > 0 && isRelatedTo(getReturnTypeOfSignature(calls[0]), target2, 1, false) || constructs.length > 0 && isRelatedTo(getReturnTypeOfSignature(constructs[0]), target2, 1, false)) {\n                reportError(Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it, sourceString, targetString);\n              } else {\n                reportError(Diagnostics.Type_0_has_no_properties_in_common_with_type_1, sourceString, targetString);\n              }\n            }\n            return 0;\n          }\n          traceUnionsOrIntersectionsTooLarge(source2, target2);\n          const skipCaching = source2.flags & 1048576 && source2.types.length < 4 && !(target2.flags & 1048576) || target2.flags & 1048576 && target2.types.length < 4 && !(source2.flags & 469499904);\n          const result2 = skipCaching ? unionOrIntersectionRelatedTo(source2, target2, reportErrors2, intersectionState) : recursiveTypeRelatedTo(source2, target2, reportErrors2, intersectionState, recursionFlags);\n          if (result2) {\n            return result2;\n          }\n        }\n        if (reportErrors2) {\n          reportErrorResults(originalSource, originalTarget, source2, target2, headMessage2);\n        }\n        return 0;\n      }\n      function reportErrorResults(originalSource, originalTarget, source2, target2, headMessage2) {\n        var _a3, _b;\n        const sourceHasBase = !!getSingleBaseForNonAugmentingSubtype(originalSource);\n        const targetHasBase = !!getSingleBaseForNonAugmentingSubtype(originalTarget);\n        source2 = originalSource.aliasSymbol || sourceHasBase ? originalSource : source2;\n        target2 = originalTarget.aliasSymbol || targetHasBase ? originalTarget : target2;\n        let maybeSuppress = overrideNextErrorInfo > 0;\n        if (maybeSuppress) {\n          overrideNextErrorInfo--;\n        }\n        if (source2.flags & 524288 && target2.flags & 524288) {\n          const currentError = errorInfo;\n          tryElaborateArrayLikeErrors(source2, target2, true);\n          if (errorInfo !== currentError) {\n            maybeSuppress = !!errorInfo;\n          }\n        }\n        if (source2.flags & 524288 && target2.flags & 134348796) {\n          tryElaborateErrorsForPrimitivesAndObjects(source2, target2);\n        } else if (source2.symbol && source2.flags & 524288 && globalObjectType === source2) {\n          reportError(Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);\n        } else if (getObjectFlags(source2) & 2048 && target2.flags & 2097152) {\n          const targetTypes = target2.types;\n          const intrinsicAttributes = getJsxType(JsxNames.IntrinsicAttributes, errorNode);\n          const intrinsicClassAttributes = getJsxType(JsxNames.IntrinsicClassAttributes, errorNode);\n          if (!isErrorType(intrinsicAttributes) && !isErrorType(intrinsicClassAttributes) && (contains(targetTypes, intrinsicAttributes) || contains(targetTypes, intrinsicClassAttributes))) {\n            return;\n          }\n        } else {\n          errorInfo = elaborateNeverIntersection(errorInfo, originalTarget);\n        }\n        if (!headMessage2 && maybeSuppress) {\n          lastSkippedInfo = [source2, target2];\n          return;\n        }\n        reportRelationError(headMessage2, source2, target2);\n        if (source2.flags & 262144 && ((_b = (_a3 = source2.symbol) == null ? void 0 : _a3.declarations) == null ? void 0 : _b[0]) && !getConstraintOfType(source2)) {\n          const syntheticParam = cloneTypeParameter(source2);\n          syntheticParam.constraint = instantiateType(target2, makeUnaryTypeMapper(source2, syntheticParam));\n          if (hasNonCircularBaseConstraint(syntheticParam)) {\n            const targetConstraintString = typeToString(target2, source2.symbol.declarations[0]);\n            associateRelatedInfo(createDiagnosticForNode(source2.symbol.declarations[0], Diagnostics.This_type_parameter_might_need_an_extends_0_constraint, targetConstraintString));\n          }\n        }\n      }\n      function traceUnionsOrIntersectionsTooLarge(source2, target2) {\n        if (!tracing) {\n          return;\n        }\n        if (source2.flags & 3145728 && target2.flags & 3145728) {\n          const sourceUnionOrIntersection = source2;\n          const targetUnionOrIntersection = target2;\n          if (sourceUnionOrIntersection.objectFlags & targetUnionOrIntersection.objectFlags & 32768) {\n            return;\n          }\n          const sourceSize = sourceUnionOrIntersection.types.length;\n          const targetSize = targetUnionOrIntersection.types.length;\n          if (sourceSize * targetSize > 1e6) {\n            tracing.instant(tracing.Phase.CheckTypes, \"traceUnionsOrIntersectionsTooLarge_DepthLimit\", {\n              sourceId: source2.id,\n              sourceSize,\n              targetId: target2.id,\n              targetSize,\n              pos: errorNode == null ? void 0 : errorNode.pos,\n              end: errorNode == null ? void 0 : errorNode.end\n            });\n          }\n        }\n      }\n      function getTypeOfPropertyInTypes(types, name) {\n        const appendPropType = (propTypes, type) => {\n          var _a3;\n          type = getApparentType(type);\n          const prop = type.flags & 3145728 ? getPropertyOfUnionOrIntersectionType(type, name) : getPropertyOfObjectType(type, name);\n          const propType = prop && getTypeOfSymbol(prop) || ((_a3 = getApplicableIndexInfoForName(type, name)) == null ? void 0 : _a3.type) || undefinedType;\n          return append(propTypes, propType);\n        };\n        return getUnionType(reduceLeft(types, appendPropType, void 0) || emptyArray);\n      }\n      function hasExcessProperties(source2, target2, reportErrors2) {\n        var _a3;\n        if (!isExcessPropertyCheckTarget(target2) || !noImplicitAny && getObjectFlags(target2) & 4096) {\n          return false;\n        }\n        const isComparingJsxAttributes = !!(getObjectFlags(source2) & 2048);\n        if ((relation === assignableRelation || relation === comparableRelation) && (isTypeSubsetOf(globalObjectType, target2) || !isComparingJsxAttributes && isEmptyObjectType(target2))) {\n          return false;\n        }\n        let reducedTarget = target2;\n        let checkTypes;\n        if (target2.flags & 1048576) {\n          reducedTarget = findMatchingDiscriminantType(source2, target2, isRelatedTo) || filterPrimitivesIfContainsNonPrimitive(target2);\n          checkTypes = reducedTarget.flags & 1048576 ? reducedTarget.types : [reducedTarget];\n        }\n        for (const prop of getPropertiesOfType(source2)) {\n          if (shouldCheckAsExcessProperty(prop, source2.symbol) && !isIgnoredJsxProperty(source2, prop)) {\n            if (!isKnownProperty(reducedTarget, prop.escapedName, isComparingJsxAttributes)) {\n              if (reportErrors2) {\n                const errorTarget = filterType(reducedTarget, isExcessPropertyCheckTarget);\n                if (!errorNode)\n                  return Debug.fail();\n                if (isJsxAttributes(errorNode) || isJsxOpeningLikeElement(errorNode) || isJsxOpeningLikeElement(errorNode.parent)) {\n                  if (prop.valueDeclaration && isJsxAttribute(prop.valueDeclaration) && getSourceFileOfNode(errorNode) === getSourceFileOfNode(prop.valueDeclaration.name)) {\n                    errorNode = prop.valueDeclaration.name;\n                  }\n                  const propName = symbolToString(prop);\n                  const suggestionSymbol = getSuggestedSymbolForNonexistentJSXAttribute(propName, errorTarget);\n                  const suggestion = suggestionSymbol ? symbolToString(suggestionSymbol) : void 0;\n                  if (suggestion) {\n                    reportError(Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2, propName, typeToString(errorTarget), suggestion);\n                  } else {\n                    reportError(Diagnostics.Property_0_does_not_exist_on_type_1, propName, typeToString(errorTarget));\n                  }\n                } else {\n                  const objectLiteralDeclaration = ((_a3 = source2.symbol) == null ? void 0 : _a3.declarations) && firstOrUndefined(source2.symbol.declarations);\n                  let suggestion;\n                  if (prop.valueDeclaration && findAncestor(prop.valueDeclaration, (d) => d === objectLiteralDeclaration) && getSourceFileOfNode(objectLiteralDeclaration) === getSourceFileOfNode(errorNode)) {\n                    const propDeclaration = prop.valueDeclaration;\n                    Debug.assertNode(propDeclaration, isObjectLiteralElementLike);\n                    errorNode = propDeclaration;\n                    const name = propDeclaration.name;\n                    if (isIdentifier(name)) {\n                      suggestion = getSuggestionForNonexistentProperty(name, errorTarget);\n                    }\n                  }\n                  if (suggestion !== void 0) {\n                    reportError(Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2, symbolToString(prop), typeToString(errorTarget), suggestion);\n                  } else {\n                    reportError(Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1, symbolToString(prop), typeToString(errorTarget));\n                  }\n                }\n              }\n              return true;\n            }\n            if (checkTypes && !isRelatedTo(getTypeOfSymbol(prop), getTypeOfPropertyInTypes(checkTypes, prop.escapedName), 3, reportErrors2)) {\n              if (reportErrors2) {\n                reportIncompatibleError(Diagnostics.Types_of_property_0_are_incompatible, symbolToString(prop));\n              }\n              return true;\n            }\n          }\n        }\n        return false;\n      }\n      function shouldCheckAsExcessProperty(prop, container) {\n        return prop.valueDeclaration && container.valueDeclaration && prop.valueDeclaration.parent === container.valueDeclaration;\n      }\n      function unionOrIntersectionRelatedTo(source2, target2, reportErrors2, intersectionState) {\n        if (source2.flags & 1048576) {\n          return relation === comparableRelation ? someTypeRelatedToType(source2, target2, reportErrors2 && !(source2.flags & 134348796), intersectionState) : eachTypeRelatedToType(source2, target2, reportErrors2 && !(source2.flags & 134348796), intersectionState);\n        }\n        if (target2.flags & 1048576) {\n          return typeRelatedToSomeType(getRegularTypeOfObjectLiteral(source2), target2, reportErrors2 && !(source2.flags & 134348796) && !(target2.flags & 134348796));\n        }\n        if (target2.flags & 2097152) {\n          return typeRelatedToEachType(source2, target2, reportErrors2, 2);\n        }\n        if (relation === comparableRelation && target2.flags & 134348796) {\n          const constraints = sameMap(source2.types, (t) => t.flags & 465829888 ? getBaseConstraintOfType(t) || unknownType : t);\n          if (constraints !== source2.types) {\n            source2 = getIntersectionType(constraints);\n            if (source2.flags & 131072) {\n              return 0;\n            }\n            if (!(source2.flags & 2097152)) {\n              return isRelatedTo(source2, target2, 1, false) || isRelatedTo(target2, source2, 1, false);\n            }\n          }\n        }\n        return someTypeRelatedToType(source2, target2, false, 1);\n      }\n      function eachTypeRelatedToSomeType(source2, target2) {\n        let result2 = -1;\n        const sourceTypes = source2.types;\n        for (const sourceType of sourceTypes) {\n          const related = typeRelatedToSomeType(sourceType, target2, false);\n          if (!related) {\n            return 0;\n          }\n          result2 &= related;\n        }\n        return result2;\n      }\n      function typeRelatedToSomeType(source2, target2, reportErrors2) {\n        const targetTypes = target2.types;\n        if (target2.flags & 1048576) {\n          if (containsType(targetTypes, source2)) {\n            return -1;\n          }\n          const match = getMatchingUnionConstituentForType(target2, source2);\n          if (match) {\n            const related = isRelatedTo(source2, match, 2, false);\n            if (related) {\n              return related;\n            }\n          }\n        }\n        for (const type of targetTypes) {\n          const related = isRelatedTo(source2, type, 2, false);\n          if (related) {\n            return related;\n          }\n        }\n        if (reportErrors2) {\n          const bestMatchingType = getBestMatchingType(source2, target2, isRelatedTo);\n          if (bestMatchingType) {\n            isRelatedTo(source2, bestMatchingType, 2, true);\n          }\n        }\n        return 0;\n      }\n      function typeRelatedToEachType(source2, target2, reportErrors2, intersectionState) {\n        let result2 = -1;\n        const targetTypes = target2.types;\n        for (const targetType of targetTypes) {\n          const related = isRelatedTo(source2, targetType, 2, reportErrors2, void 0, intersectionState);\n          if (!related) {\n            return 0;\n          }\n          result2 &= related;\n        }\n        return result2;\n      }\n      function someTypeRelatedToType(source2, target2, reportErrors2, intersectionState) {\n        const sourceTypes = source2.types;\n        if (source2.flags & 1048576 && containsType(sourceTypes, target2)) {\n          return -1;\n        }\n        const len = sourceTypes.length;\n        for (let i = 0; i < len; i++) {\n          const related = isRelatedTo(sourceTypes[i], target2, 1, reportErrors2 && i === len - 1, void 0, intersectionState);\n          if (related) {\n            return related;\n          }\n        }\n        return 0;\n      }\n      function getUndefinedStrippedTargetIfNeeded(source2, target2) {\n        if (source2.flags & 1048576 && target2.flags & 1048576 && !(source2.types[0].flags & 32768) && target2.types[0].flags & 32768) {\n          return extractTypesOfKind(target2, ~32768);\n        }\n        return target2;\n      }\n      function eachTypeRelatedToType(source2, target2, reportErrors2, intersectionState) {\n        let result2 = -1;\n        const sourceTypes = source2.types;\n        const undefinedStrippedTarget = getUndefinedStrippedTargetIfNeeded(source2, target2);\n        for (let i = 0; i < sourceTypes.length; i++) {\n          const sourceType = sourceTypes[i];\n          if (undefinedStrippedTarget.flags & 1048576 && sourceTypes.length >= undefinedStrippedTarget.types.length && sourceTypes.length % undefinedStrippedTarget.types.length === 0) {\n            const related2 = isRelatedTo(sourceType, undefinedStrippedTarget.types[i % undefinedStrippedTarget.types.length], 3, false, void 0, intersectionState);\n            if (related2) {\n              result2 &= related2;\n              continue;\n            }\n          }\n          const related = isRelatedTo(sourceType, target2, 1, reportErrors2, void 0, intersectionState);\n          if (!related) {\n            return 0;\n          }\n          result2 &= related;\n        }\n        return result2;\n      }\n      function typeArgumentsRelatedTo(sources = emptyArray, targets = emptyArray, variances = emptyArray, reportErrors2, intersectionState) {\n        if (sources.length !== targets.length && relation === identityRelation) {\n          return 0;\n        }\n        const length2 = sources.length <= targets.length ? sources.length : targets.length;\n        let result2 = -1;\n        for (let i = 0; i < length2; i++) {\n          const varianceFlags = i < variances.length ? variances[i] : 1;\n          const variance = varianceFlags & 7;\n          if (variance !== 4) {\n            const s = sources[i];\n            const t = targets[i];\n            let related = -1;\n            if (varianceFlags & 8) {\n              related = relation === identityRelation ? isRelatedTo(s, t, 3, false) : compareTypesIdentical(s, t);\n            } else if (variance === 1) {\n              related = isRelatedTo(s, t, 3, reportErrors2, void 0, intersectionState);\n            } else if (variance === 2) {\n              related = isRelatedTo(t, s, 3, reportErrors2, void 0, intersectionState);\n            } else if (variance === 3) {\n              related = isRelatedTo(t, s, 3, false);\n              if (!related) {\n                related = isRelatedTo(s, t, 3, reportErrors2, void 0, intersectionState);\n              }\n            } else {\n              related = isRelatedTo(s, t, 3, reportErrors2, void 0, intersectionState);\n              if (related) {\n                related &= isRelatedTo(t, s, 3, reportErrors2, void 0, intersectionState);\n              }\n            }\n            if (!related) {\n              return 0;\n            }\n            result2 &= related;\n          }\n        }\n        return result2;\n      }\n      function recursiveTypeRelatedTo(source2, target2, reportErrors2, intersectionState, recursionFlags) {\n        var _a3, _b, _c;\n        if (overflow) {\n          return 0;\n        }\n        const id = getRelationKey(source2, target2, intersectionState, relation, false);\n        const entry = relation.get(id);\n        if (entry !== void 0) {\n          if (reportErrors2 && entry & 2 && !(entry & 4)) {\n          } else {\n            if (outofbandVarianceMarkerHandler) {\n              const saved = entry & 24;\n              if (saved & 8) {\n                instantiateType(source2, reportUnmeasurableMapper);\n              }\n              if (saved & 16) {\n                instantiateType(source2, reportUnreliableMapper);\n              }\n            }\n            return entry & 1 ? -1 : 0;\n          }\n        }\n        if (!maybeKeys) {\n          maybeKeys = [];\n          sourceStack = [];\n          targetStack = [];\n        } else {\n          const broadestEquivalentId = id.startsWith(\"*\") ? getRelationKey(source2, target2, intersectionState, relation, true) : void 0;\n          for (let i = 0; i < maybeCount; i++) {\n            if (id === maybeKeys[i] || broadestEquivalentId && broadestEquivalentId === maybeKeys[i]) {\n              return 3;\n            }\n          }\n          if (sourceDepth === 100 || targetDepth === 100) {\n            overflow = true;\n            return 0;\n          }\n        }\n        const maybeStart = maybeCount;\n        maybeKeys[maybeCount] = id;\n        maybeCount++;\n        const saveExpandingFlags = expandingFlags;\n        if (recursionFlags & 1) {\n          sourceStack[sourceDepth] = source2;\n          sourceDepth++;\n          if (!(expandingFlags & 1) && isDeeplyNestedType(source2, sourceStack, sourceDepth))\n            expandingFlags |= 1;\n        }\n        if (recursionFlags & 2) {\n          targetStack[targetDepth] = target2;\n          targetDepth++;\n          if (!(expandingFlags & 2) && isDeeplyNestedType(target2, targetStack, targetDepth))\n            expandingFlags |= 2;\n        }\n        let originalHandler;\n        let propagatingVarianceFlags = 0;\n        if (outofbandVarianceMarkerHandler) {\n          originalHandler = outofbandVarianceMarkerHandler;\n          outofbandVarianceMarkerHandler = (onlyUnreliable) => {\n            propagatingVarianceFlags |= onlyUnreliable ? 16 : 8;\n            return originalHandler(onlyUnreliable);\n          };\n        }\n        let result2;\n        if (expandingFlags === 3) {\n          (_a3 = tracing) == null ? void 0 : _a3.instant(tracing.Phase.CheckTypes, \"recursiveTypeRelatedTo_DepthLimit\", {\n            sourceId: source2.id,\n            sourceIdStack: sourceStack.map((t) => t.id),\n            targetId: target2.id,\n            targetIdStack: targetStack.map((t) => t.id),\n            depth: sourceDepth,\n            targetDepth\n          });\n          result2 = 3;\n        } else {\n          (_b = tracing) == null ? void 0 : _b.push(tracing.Phase.CheckTypes, \"structuredTypeRelatedTo\", { sourceId: source2.id, targetId: target2.id });\n          result2 = structuredTypeRelatedTo(source2, target2, reportErrors2, intersectionState);\n          (_c = tracing) == null ? void 0 : _c.pop();\n        }\n        if (outofbandVarianceMarkerHandler) {\n          outofbandVarianceMarkerHandler = originalHandler;\n        }\n        if (recursionFlags & 1) {\n          sourceDepth--;\n        }\n        if (recursionFlags & 2) {\n          targetDepth--;\n        }\n        expandingFlags = saveExpandingFlags;\n        if (result2) {\n          if (result2 === -1 || sourceDepth === 0 && targetDepth === 0) {\n            if (result2 === -1 || result2 === 3) {\n              for (let i = maybeStart; i < maybeCount; i++) {\n                relation.set(maybeKeys[i], 1 | propagatingVarianceFlags);\n              }\n            }\n            maybeCount = maybeStart;\n          }\n        } else {\n          relation.set(id, (reportErrors2 ? 4 : 0) | 2 | propagatingVarianceFlags);\n          maybeCount = maybeStart;\n        }\n        return result2;\n      }\n      function structuredTypeRelatedTo(source2, target2, reportErrors2, intersectionState) {\n        const saveErrorInfo = captureErrorCalculationState();\n        let result2 = structuredTypeRelatedToWorker(source2, target2, reportErrors2, intersectionState, saveErrorInfo);\n        if (relation !== identityRelation) {\n          if (!result2 && (source2.flags & 2097152 || source2.flags & 262144 && target2.flags & 1048576)) {\n            const constraint = getEffectiveConstraintOfIntersection(source2.flags & 2097152 ? source2.types : [source2], !!(target2.flags & 1048576));\n            if (constraint && everyType(constraint, (c) => c !== source2)) {\n              result2 = isRelatedTo(constraint, target2, 1, false, void 0, intersectionState);\n            }\n          }\n          if (result2 && !(intersectionState & 2) && target2.flags & 2097152 && !isGenericObjectType(target2) && source2.flags & (524288 | 2097152)) {\n            result2 &= propertiesRelatedTo(source2, target2, reportErrors2, void 0, false, 0);\n            if (result2 && isObjectLiteralType2(source2) && getObjectFlags(source2) & 8192) {\n              result2 &= indexSignaturesRelatedTo(source2, target2, false, reportErrors2, 0);\n            }\n          } else if (result2 && isNonGenericObjectType(target2) && !isArrayOrTupleType(target2) && source2.flags & 2097152 && getApparentType(source2).flags & 3670016 && !some(source2.types, (t) => t === target2 || !!(getObjectFlags(t) & 262144))) {\n            result2 &= propertiesRelatedTo(source2, target2, reportErrors2, void 0, true, intersectionState);\n          }\n        }\n        if (result2) {\n          resetErrorInfo(saveErrorInfo);\n        }\n        return result2;\n      }\n      function structuredTypeRelatedToWorker(source2, target2, reportErrors2, intersectionState, saveErrorInfo) {\n        let result2;\n        let originalErrorInfo;\n        let varianceCheckFailed = false;\n        let sourceFlags = source2.flags;\n        const targetFlags = target2.flags;\n        if (relation === identityRelation) {\n          if (sourceFlags & 3145728) {\n            let result3 = eachTypeRelatedToSomeType(source2, target2);\n            if (result3) {\n              result3 &= eachTypeRelatedToSomeType(target2, source2);\n            }\n            return result3;\n          }\n          if (sourceFlags & 4194304) {\n            return isRelatedTo(source2.type, target2.type, 3, false);\n          }\n          if (sourceFlags & 8388608) {\n            if (result2 = isRelatedTo(source2.objectType, target2.objectType, 3, false)) {\n              if (result2 &= isRelatedTo(source2.indexType, target2.indexType, 3, false)) {\n                return result2;\n              }\n            }\n          }\n          if (sourceFlags & 16777216) {\n            if (source2.root.isDistributive === target2.root.isDistributive) {\n              if (result2 = isRelatedTo(source2.checkType, target2.checkType, 3, false)) {\n                if (result2 &= isRelatedTo(source2.extendsType, target2.extendsType, 3, false)) {\n                  if (result2 &= isRelatedTo(getTrueTypeFromConditionalType(source2), getTrueTypeFromConditionalType(target2), 3, false)) {\n                    if (result2 &= isRelatedTo(getFalseTypeFromConditionalType(source2), getFalseTypeFromConditionalType(target2), 3, false)) {\n                      return result2;\n                    }\n                  }\n                }\n              }\n            }\n          }\n          if (sourceFlags & 33554432) {\n            if (result2 = isRelatedTo(source2.baseType, target2.baseType, 3, false)) {\n              if (result2 &= isRelatedTo(source2.constraint, target2.constraint, 3, false)) {\n                return result2;\n              }\n            }\n          }\n          if (!(sourceFlags & 524288)) {\n            return 0;\n          }\n        } else if (sourceFlags & 3145728 || targetFlags & 3145728) {\n          if (result2 = unionOrIntersectionRelatedTo(source2, target2, reportErrors2, intersectionState)) {\n            return result2;\n          }\n          if (!(sourceFlags & 465829888 || sourceFlags & 524288 && targetFlags & 1048576 || sourceFlags & 2097152 && targetFlags & (524288 | 1048576 | 465829888))) {\n            return 0;\n          }\n        }\n        if (sourceFlags & (524288 | 16777216) && source2.aliasSymbol && source2.aliasTypeArguments && source2.aliasSymbol === target2.aliasSymbol && !(isMarkerType(source2) || isMarkerType(target2))) {\n          const variances = getAliasVariances(source2.aliasSymbol);\n          if (variances === emptyArray) {\n            return 1;\n          }\n          const params = getSymbolLinks(source2.aliasSymbol).typeParameters;\n          const minParams = getMinTypeArgumentCount(params);\n          const sourceTypes = fillMissingTypeArguments(source2.aliasTypeArguments, params, minParams, isInJSFile(source2.aliasSymbol.valueDeclaration));\n          const targetTypes = fillMissingTypeArguments(target2.aliasTypeArguments, params, minParams, isInJSFile(source2.aliasSymbol.valueDeclaration));\n          const varianceResult = relateVariances(sourceTypes, targetTypes, variances, intersectionState);\n          if (varianceResult !== void 0) {\n            return varianceResult;\n          }\n        }\n        if (isSingleElementGenericTupleType(source2) && !source2.target.readonly && (result2 = isRelatedTo(getTypeArguments(source2)[0], target2, 1)) || isSingleElementGenericTupleType(target2) && (target2.target.readonly || isMutableArrayOrTuple(getBaseConstraintOfType(source2) || source2)) && (result2 = isRelatedTo(source2, getTypeArguments(target2)[0], 2))) {\n          return result2;\n        }\n        if (targetFlags & 262144) {\n          if (getObjectFlags(source2) & 32 && !source2.declaration.nameType && isRelatedTo(getIndexType(target2), getConstraintTypeFromMappedType(source2), 3)) {\n            if (!(getMappedTypeModifiers(source2) & 4)) {\n              const templateType = getTemplateTypeFromMappedType(source2);\n              const indexedAccessType = getIndexedAccessType(target2, getTypeParameterFromMappedType(source2));\n              if (result2 = isRelatedTo(templateType, indexedAccessType, 3, reportErrors2)) {\n                return result2;\n              }\n            }\n          }\n          if (relation === comparableRelation && sourceFlags & 262144) {\n            let constraint = getConstraintOfTypeParameter(source2);\n            if (constraint && hasNonCircularBaseConstraint(source2)) {\n              while (constraint && someType(constraint, (c) => !!(c.flags & 262144))) {\n                if (result2 = isRelatedTo(constraint, target2, 1, false)) {\n                  return result2;\n                }\n                constraint = getConstraintOfTypeParameter(constraint);\n              }\n            }\n            return 0;\n          }\n        } else if (targetFlags & 4194304) {\n          const targetType = target2.type;\n          if (sourceFlags & 4194304) {\n            if (result2 = isRelatedTo(targetType, source2.type, 3, false)) {\n              return result2;\n            }\n          }\n          if (isTupleType(targetType)) {\n            if (result2 = isRelatedTo(source2, getKnownKeysOfTupleType(targetType), 2, reportErrors2)) {\n              return result2;\n            }\n          } else {\n            const constraint = getSimplifiedTypeOrConstraint(targetType);\n            if (constraint) {\n              if (isRelatedTo(source2, getIndexType(constraint, target2.stringsOnly), 2, reportErrors2) === -1) {\n                return -1;\n              }\n            } else if (isGenericMappedType(targetType)) {\n              const nameType = getNameTypeFromMappedType(targetType);\n              const constraintType = getConstraintTypeFromMappedType(targetType);\n              let targetKeys;\n              if (nameType && isMappedTypeWithKeyofConstraintDeclaration(targetType)) {\n                const modifiersType = getApparentType(getModifiersTypeFromMappedType(targetType));\n                const mappedKeys = [];\n                forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(modifiersType, 8576, false, (t) => void mappedKeys.push(instantiateType(nameType, appendTypeMapping(targetType.mapper, getTypeParameterFromMappedType(targetType), t))));\n                targetKeys = getUnionType([...mappedKeys, nameType]);\n              } else {\n                targetKeys = nameType || constraintType;\n              }\n              if (isRelatedTo(source2, targetKeys, 2, reportErrors2) === -1) {\n                return -1;\n              }\n            }\n          }\n        } else if (targetFlags & 8388608) {\n          if (sourceFlags & 8388608) {\n            if (result2 = isRelatedTo(source2.objectType, target2.objectType, 3, reportErrors2)) {\n              result2 &= isRelatedTo(source2.indexType, target2.indexType, 3, reportErrors2);\n            }\n            if (result2) {\n              return result2;\n            }\n            if (reportErrors2) {\n              originalErrorInfo = errorInfo;\n            }\n          }\n          if (relation === assignableRelation || relation === comparableRelation) {\n            const objectType = target2.objectType;\n            const indexType = target2.indexType;\n            const baseObjectType = getBaseConstraintOfType(objectType) || objectType;\n            const baseIndexType = getBaseConstraintOfType(indexType) || indexType;\n            if (!isGenericObjectType(baseObjectType) && !isGenericIndexType(baseIndexType)) {\n              const accessFlags = 4 | (baseObjectType !== objectType ? 2 : 0);\n              const constraint = getIndexedAccessTypeOrUndefined(baseObjectType, baseIndexType, accessFlags);\n              if (constraint) {\n                if (reportErrors2 && originalErrorInfo) {\n                  resetErrorInfo(saveErrorInfo);\n                }\n                if (result2 = isRelatedTo(source2, constraint, 2, reportErrors2, void 0, intersectionState)) {\n                  return result2;\n                }\n                if (reportErrors2 && originalErrorInfo && errorInfo) {\n                  errorInfo = countMessageChainBreadth([originalErrorInfo]) <= countMessageChainBreadth([errorInfo]) ? originalErrorInfo : errorInfo;\n                }\n              }\n            }\n          }\n          if (reportErrors2) {\n            originalErrorInfo = void 0;\n          }\n        } else if (isGenericMappedType(target2) && relation !== identityRelation) {\n          const keysRemapped = !!target2.declaration.nameType;\n          const templateType = getTemplateTypeFromMappedType(target2);\n          const modifiers = getMappedTypeModifiers(target2);\n          if (!(modifiers & 8)) {\n            if (!keysRemapped && templateType.flags & 8388608 && templateType.objectType === source2 && templateType.indexType === getTypeParameterFromMappedType(target2)) {\n              return -1;\n            }\n            if (!isGenericMappedType(source2)) {\n              const targetKeys = keysRemapped ? getNameTypeFromMappedType(target2) : getConstraintTypeFromMappedType(target2);\n              const sourceKeys = getIndexType(source2, void 0, true);\n              const includeOptional = modifiers & 4;\n              const filteredByApplicability = includeOptional ? intersectTypes(targetKeys, sourceKeys) : void 0;\n              if (includeOptional ? !(filteredByApplicability.flags & 131072) : isRelatedTo(targetKeys, sourceKeys, 3)) {\n                const templateType2 = getTemplateTypeFromMappedType(target2);\n                const typeParameter = getTypeParameterFromMappedType(target2);\n                const nonNullComponent = extractTypesOfKind(templateType2, ~98304);\n                if (!keysRemapped && nonNullComponent.flags & 8388608 && nonNullComponent.indexType === typeParameter) {\n                  if (result2 = isRelatedTo(source2, nonNullComponent.objectType, 2, reportErrors2)) {\n                    return result2;\n                  }\n                } else {\n                  const indexingType = keysRemapped ? filteredByApplicability || targetKeys : filteredByApplicability ? getIntersectionType([filteredByApplicability, typeParameter]) : typeParameter;\n                  const indexedAccessType = getIndexedAccessType(source2, indexingType);\n                  if (result2 = isRelatedTo(indexedAccessType, templateType2, 3, reportErrors2)) {\n                    return result2;\n                  }\n                }\n              }\n              originalErrorInfo = errorInfo;\n              resetErrorInfo(saveErrorInfo);\n            }\n          }\n        } else if (targetFlags & 16777216) {\n          if (isDeeplyNestedType(target2, targetStack, targetDepth, 10)) {\n            return 3;\n          }\n          const c = target2;\n          if (!c.root.inferTypeParameters && !isDistributionDependent(c.root)) {\n            const skipTrue = !isTypeAssignableTo(getPermissiveInstantiation(c.checkType), getPermissiveInstantiation(c.extendsType));\n            const skipFalse = !skipTrue && isTypeAssignableTo(getRestrictiveInstantiation(c.checkType), getRestrictiveInstantiation(c.extendsType));\n            if (result2 = skipTrue ? -1 : isRelatedTo(source2, getTrueTypeFromConditionalType(c), 2, false, void 0, intersectionState)) {\n              result2 &= skipFalse ? -1 : isRelatedTo(source2, getFalseTypeFromConditionalType(c), 2, false, void 0, intersectionState);\n              if (result2) {\n                return result2;\n              }\n            }\n          }\n        } else if (targetFlags & 134217728) {\n          if (sourceFlags & 134217728) {\n            if (relation === comparableRelation) {\n              return templateLiteralTypesDefinitelyUnrelated(source2, target2) ? 0 : -1;\n            }\n            instantiateType(source2, reportUnreliableMapper);\n          }\n          if (isTypeMatchedByTemplateLiteralType(source2, target2)) {\n            return -1;\n          }\n        } else if (target2.flags & 268435456) {\n          if (!(source2.flags & 268435456)) {\n            if (isMemberOfStringMapping(source2, target2)) {\n              return -1;\n            }\n          }\n        }\n        if (sourceFlags & 8650752) {\n          if (!(sourceFlags & 8388608 && targetFlags & 8388608)) {\n            const constraint = getConstraintOfType(source2) || unknownType;\n            if (result2 = isRelatedTo(constraint, target2, 1, false, void 0, intersectionState)) {\n              return result2;\n            } else if (result2 = isRelatedTo(getTypeWithThisArgument(constraint, source2), target2, 1, reportErrors2 && constraint !== unknownType && !(targetFlags & sourceFlags & 262144), void 0, intersectionState)) {\n              return result2;\n            }\n            if (isMappedTypeGenericIndexedAccess(source2)) {\n              const indexConstraint = getConstraintOfType(source2.indexType);\n              if (indexConstraint) {\n                if (result2 = isRelatedTo(getIndexedAccessType(source2.objectType, indexConstraint), target2, 1, reportErrors2)) {\n                  return result2;\n                }\n              }\n            }\n          }\n        } else if (sourceFlags & 4194304) {\n          if (result2 = isRelatedTo(keyofConstraintType, target2, 1, reportErrors2)) {\n            return result2;\n          }\n        } else if (sourceFlags & 134217728 && !(targetFlags & 524288)) {\n          if (!(targetFlags & 134217728)) {\n            const constraint = getBaseConstraintOfType(source2);\n            if (constraint && constraint !== source2 && (result2 = isRelatedTo(constraint, target2, 1, reportErrors2))) {\n              return result2;\n            }\n          }\n        } else if (sourceFlags & 268435456) {\n          if (targetFlags & 268435456) {\n            if (source2.symbol !== target2.symbol) {\n              return 0;\n            }\n            if (result2 = isRelatedTo(source2.type, target2.type, 3, reportErrors2)) {\n              return result2;\n            }\n          } else {\n            const constraint = getBaseConstraintOfType(source2);\n            if (constraint && (result2 = isRelatedTo(constraint, target2, 1, reportErrors2))) {\n              return result2;\n            }\n          }\n        } else if (sourceFlags & 16777216) {\n          if (isDeeplyNestedType(source2, sourceStack, sourceDepth, 10)) {\n            return 3;\n          }\n          if (targetFlags & 16777216) {\n            const sourceParams = source2.root.inferTypeParameters;\n            let sourceExtends = source2.extendsType;\n            let mapper;\n            if (sourceParams) {\n              const ctx = createInferenceContext(sourceParams, void 0, 0, isRelatedToWorker);\n              inferTypes(ctx.inferences, target2.extendsType, sourceExtends, 512 | 1024);\n              sourceExtends = instantiateType(sourceExtends, ctx.mapper);\n              mapper = ctx.mapper;\n            }\n            if (isTypeIdenticalTo(sourceExtends, target2.extendsType) && (isRelatedTo(source2.checkType, target2.checkType, 3) || isRelatedTo(target2.checkType, source2.checkType, 3))) {\n              if (result2 = isRelatedTo(instantiateType(getTrueTypeFromConditionalType(source2), mapper), getTrueTypeFromConditionalType(target2), 3, reportErrors2)) {\n                result2 &= isRelatedTo(getFalseTypeFromConditionalType(source2), getFalseTypeFromConditionalType(target2), 3, reportErrors2);\n              }\n              if (result2) {\n                return result2;\n              }\n            }\n          } else {\n            const distributiveConstraint = hasNonCircularBaseConstraint(source2) ? getConstraintOfDistributiveConditionalType(source2) : void 0;\n            if (distributiveConstraint) {\n              if (result2 = isRelatedTo(distributiveConstraint, target2, 1, reportErrors2)) {\n                return result2;\n              }\n            }\n          }\n          const defaultConstraint = getDefaultConstraintOfConditionalType(source2);\n          if (defaultConstraint) {\n            if (result2 = isRelatedTo(defaultConstraint, target2, 1, reportErrors2)) {\n              return result2;\n            }\n          }\n        } else {\n          if (relation !== subtypeRelation && relation !== strictSubtypeRelation && isPartialMappedType(target2) && isEmptyObjectType(source2)) {\n            return -1;\n          }\n          if (isGenericMappedType(target2)) {\n            if (isGenericMappedType(source2)) {\n              if (result2 = mappedTypeRelatedTo(source2, target2, reportErrors2)) {\n                return result2;\n              }\n            }\n            return 0;\n          }\n          const sourceIsPrimitive = !!(sourceFlags & 134348796);\n          if (relation !== identityRelation) {\n            source2 = getApparentType(source2);\n            sourceFlags = source2.flags;\n          } else if (isGenericMappedType(source2)) {\n            return 0;\n          }\n          if (getObjectFlags(source2) & 4 && getObjectFlags(target2) & 4 && source2.target === target2.target && !isTupleType(source2) && !(isMarkerType(source2) || isMarkerType(target2))) {\n            if (isEmptyArrayLiteralType(source2)) {\n              return -1;\n            }\n            const variances = getVariances(source2.target);\n            if (variances === emptyArray) {\n              return 1;\n            }\n            const varianceResult = relateVariances(getTypeArguments(source2), getTypeArguments(target2), variances, intersectionState);\n            if (varianceResult !== void 0) {\n              return varianceResult;\n            }\n          } else if (isReadonlyArrayType(target2) ? isArrayOrTupleType(source2) : isArrayType(target2) && isTupleType(source2) && !source2.target.readonly) {\n            if (relation !== identityRelation) {\n              return isRelatedTo(getIndexTypeOfType(source2, numberType) || anyType, getIndexTypeOfType(target2, numberType) || anyType, 3, reportErrors2);\n            } else {\n              return 0;\n            }\n          } else if ((relation === subtypeRelation || relation === strictSubtypeRelation) && isEmptyObjectType(target2) && getObjectFlags(target2) & 8192 && !isEmptyObjectType(source2)) {\n            return 0;\n          }\n          if (sourceFlags & (524288 | 2097152) && targetFlags & 524288) {\n            const reportStructuralErrors = reportErrors2 && errorInfo === saveErrorInfo.errorInfo && !sourceIsPrimitive;\n            result2 = propertiesRelatedTo(source2, target2, reportStructuralErrors, void 0, false, intersectionState);\n            if (result2) {\n              result2 &= signaturesRelatedTo(source2, target2, 0, reportStructuralErrors, intersectionState);\n              if (result2) {\n                result2 &= signaturesRelatedTo(source2, target2, 1, reportStructuralErrors, intersectionState);\n                if (result2) {\n                  result2 &= indexSignaturesRelatedTo(source2, target2, sourceIsPrimitive, reportStructuralErrors, intersectionState);\n                }\n              }\n            }\n            if (varianceCheckFailed && result2) {\n              errorInfo = originalErrorInfo || errorInfo || saveErrorInfo.errorInfo;\n            } else if (result2) {\n              return result2;\n            }\n          }\n          if (sourceFlags & (524288 | 2097152) && targetFlags & 1048576) {\n            const objectOnlyTarget = extractTypesOfKind(target2, 524288 | 2097152 | 33554432);\n            if (objectOnlyTarget.flags & 1048576) {\n              const result3 = typeRelatedToDiscriminatedType(source2, objectOnlyTarget);\n              if (result3) {\n                return result3;\n              }\n            }\n          }\n        }\n        return 0;\n        function countMessageChainBreadth(info) {\n          if (!info)\n            return 0;\n          return reduceLeft(info, (value, chain) => value + 1 + countMessageChainBreadth(chain.next), 0);\n        }\n        function relateVariances(sourceTypeArguments, targetTypeArguments, variances, intersectionState2) {\n          if (result2 = typeArgumentsRelatedTo(sourceTypeArguments, targetTypeArguments, variances, reportErrors2, intersectionState2)) {\n            return result2;\n          }\n          if (some(variances, (v) => !!(v & 24))) {\n            originalErrorInfo = void 0;\n            resetErrorInfo(saveErrorInfo);\n            return void 0;\n          }\n          const allowStructuralFallback = targetTypeArguments && hasCovariantVoidArgument(targetTypeArguments, variances);\n          varianceCheckFailed = !allowStructuralFallback;\n          if (variances !== emptyArray && !allowStructuralFallback) {\n            if (varianceCheckFailed && !(reportErrors2 && some(variances, (v) => (v & 7) === 0))) {\n              return 0;\n            }\n            originalErrorInfo = errorInfo;\n            resetErrorInfo(saveErrorInfo);\n          }\n        }\n      }\n      function mappedTypeRelatedTo(source2, target2, reportErrors2) {\n        const modifiersRelated = relation === comparableRelation || (relation === identityRelation ? getMappedTypeModifiers(source2) === getMappedTypeModifiers(target2) : getCombinedMappedTypeOptionality(source2) <= getCombinedMappedTypeOptionality(target2));\n        if (modifiersRelated) {\n          let result2;\n          const targetConstraint = getConstraintTypeFromMappedType(target2);\n          const sourceConstraint = instantiateType(getConstraintTypeFromMappedType(source2), getCombinedMappedTypeOptionality(source2) < 0 ? reportUnmeasurableMapper : reportUnreliableMapper);\n          if (result2 = isRelatedTo(targetConstraint, sourceConstraint, 3, reportErrors2)) {\n            const mapper = createTypeMapper([getTypeParameterFromMappedType(source2)], [getTypeParameterFromMappedType(target2)]);\n            if (instantiateType(getNameTypeFromMappedType(source2), mapper) === instantiateType(getNameTypeFromMappedType(target2), mapper)) {\n              return result2 & isRelatedTo(instantiateType(getTemplateTypeFromMappedType(source2), mapper), getTemplateTypeFromMappedType(target2), 3, reportErrors2);\n            }\n          }\n        }\n        return 0;\n      }\n      function typeRelatedToDiscriminatedType(source2, target2) {\n        var _a3;\n        const sourceProperties = getPropertiesOfType(source2);\n        const sourcePropertiesFiltered = findDiscriminantProperties(sourceProperties, target2);\n        if (!sourcePropertiesFiltered)\n          return 0;\n        let numCombinations = 1;\n        for (const sourceProperty of sourcePropertiesFiltered) {\n          numCombinations *= countTypes(getNonMissingTypeOfSymbol(sourceProperty));\n          if (numCombinations > 25) {\n            (_a3 = tracing) == null ? void 0 : _a3.instant(tracing.Phase.CheckTypes, \"typeRelatedToDiscriminatedType_DepthLimit\", { sourceId: source2.id, targetId: target2.id, numCombinations });\n            return 0;\n          }\n        }\n        const sourceDiscriminantTypes = new Array(sourcePropertiesFiltered.length);\n        const excludedProperties = /* @__PURE__ */ new Set();\n        for (let i = 0; i < sourcePropertiesFiltered.length; i++) {\n          const sourceProperty = sourcePropertiesFiltered[i];\n          const sourcePropertyType = getNonMissingTypeOfSymbol(sourceProperty);\n          sourceDiscriminantTypes[i] = sourcePropertyType.flags & 1048576 ? sourcePropertyType.types : [sourcePropertyType];\n          excludedProperties.add(sourceProperty.escapedName);\n        }\n        const discriminantCombinations = cartesianProduct(sourceDiscriminantTypes);\n        const matchingTypes = [];\n        for (const combination of discriminantCombinations) {\n          let hasMatch = false;\n          outer:\n            for (const type of target2.types) {\n              for (let i = 0; i < sourcePropertiesFiltered.length; i++) {\n                const sourceProperty = sourcePropertiesFiltered[i];\n                const targetProperty = getPropertyOfType(type, sourceProperty.escapedName);\n                if (!targetProperty)\n                  continue outer;\n                if (sourceProperty === targetProperty)\n                  continue;\n                const related = propertyRelatedTo(source2, target2, sourceProperty, targetProperty, (_) => combination[i], false, 0, strictNullChecks || relation === comparableRelation);\n                if (!related) {\n                  continue outer;\n                }\n              }\n              pushIfUnique(matchingTypes, type, equateValues);\n              hasMatch = true;\n            }\n          if (!hasMatch) {\n            return 0;\n          }\n        }\n        let result2 = -1;\n        for (const type of matchingTypes) {\n          result2 &= propertiesRelatedTo(source2, type, false, excludedProperties, false, 0);\n          if (result2) {\n            result2 &= signaturesRelatedTo(source2, type, 0, false, 0);\n            if (result2) {\n              result2 &= signaturesRelatedTo(source2, type, 1, false, 0);\n              if (result2 && !(isTupleType(source2) && isTupleType(type))) {\n                result2 &= indexSignaturesRelatedTo(source2, type, false, false, 0);\n              }\n            }\n          }\n          if (!result2) {\n            return result2;\n          }\n        }\n        return result2;\n      }\n      function excludeProperties(properties, excludedProperties) {\n        if (!excludedProperties || properties.length === 0)\n          return properties;\n        let result2;\n        for (let i = 0; i < properties.length; i++) {\n          if (!excludedProperties.has(properties[i].escapedName)) {\n            if (result2) {\n              result2.push(properties[i]);\n            }\n          } else if (!result2) {\n            result2 = properties.slice(0, i);\n          }\n        }\n        return result2 || properties;\n      }\n      function isPropertySymbolTypeRelated(sourceProp, targetProp, getTypeOfSourceProperty, reportErrors2, intersectionState) {\n        const targetIsOptional = strictNullChecks && !!(getCheckFlags(targetProp) & 48);\n        const effectiveTarget = addOptionality(getNonMissingTypeOfSymbol(targetProp), false, targetIsOptional);\n        const effectiveSource = getTypeOfSourceProperty(sourceProp);\n        return isRelatedTo(effectiveSource, effectiveTarget, 3, reportErrors2, void 0, intersectionState);\n      }\n      function propertyRelatedTo(source2, target2, sourceProp, targetProp, getTypeOfSourceProperty, reportErrors2, intersectionState, skipOptional) {\n        const sourcePropFlags = getDeclarationModifierFlagsFromSymbol(sourceProp);\n        const targetPropFlags = getDeclarationModifierFlagsFromSymbol(targetProp);\n        if (sourcePropFlags & 8 || targetPropFlags & 8) {\n          if (sourceProp.valueDeclaration !== targetProp.valueDeclaration) {\n            if (reportErrors2) {\n              if (sourcePropFlags & 8 && targetPropFlags & 8) {\n                reportError(Diagnostics.Types_have_separate_declarations_of_a_private_property_0, symbolToString(targetProp));\n              } else {\n                reportError(Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2, symbolToString(targetProp), typeToString(sourcePropFlags & 8 ? source2 : target2), typeToString(sourcePropFlags & 8 ? target2 : source2));\n              }\n            }\n            return 0;\n          }\n        } else if (targetPropFlags & 16) {\n          if (!isValidOverrideOf(sourceProp, targetProp)) {\n            if (reportErrors2) {\n              reportError(Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2, symbolToString(targetProp), typeToString(getDeclaringClass(sourceProp) || source2), typeToString(getDeclaringClass(targetProp) || target2));\n            }\n            return 0;\n          }\n        } else if (sourcePropFlags & 16) {\n          if (reportErrors2) {\n            reportError(Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2, symbolToString(targetProp), typeToString(source2), typeToString(target2));\n          }\n          return 0;\n        }\n        if (relation === strictSubtypeRelation && isReadonlySymbol(sourceProp) && !isReadonlySymbol(targetProp)) {\n          return 0;\n        }\n        const related = isPropertySymbolTypeRelated(sourceProp, targetProp, getTypeOfSourceProperty, reportErrors2, intersectionState);\n        if (!related) {\n          if (reportErrors2) {\n            reportIncompatibleError(Diagnostics.Types_of_property_0_are_incompatible, symbolToString(targetProp));\n          }\n          return 0;\n        }\n        if (!skipOptional && sourceProp.flags & 16777216 && targetProp.flags & 106500 && !(targetProp.flags & 16777216)) {\n          if (reportErrors2) {\n            reportError(Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2, symbolToString(targetProp), typeToString(source2), typeToString(target2));\n          }\n          return 0;\n        }\n        return related;\n      }\n      function reportUnmatchedProperty(source2, target2, unmatchedProperty, requireOptionalProperties) {\n        let shouldSkipElaboration = false;\n        if (unmatchedProperty.valueDeclaration && isNamedDeclaration(unmatchedProperty.valueDeclaration) && isPrivateIdentifier(unmatchedProperty.valueDeclaration.name) && source2.symbol && source2.symbol.flags & 32) {\n          const privateIdentifierDescription = unmatchedProperty.valueDeclaration.name.escapedText;\n          const symbolTableKey = getSymbolNameForPrivateIdentifier(source2.symbol, privateIdentifierDescription);\n          if (symbolTableKey && getPropertyOfType(source2, symbolTableKey)) {\n            const sourceName = factory.getDeclarationName(source2.symbol.valueDeclaration);\n            const targetName = factory.getDeclarationName(target2.symbol.valueDeclaration);\n            reportError(Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2, diagnosticName(privateIdentifierDescription), diagnosticName(sourceName.escapedText === \"\" ? anon : sourceName), diagnosticName(targetName.escapedText === \"\" ? anon : targetName));\n            return;\n          }\n        }\n        const props = arrayFrom(getUnmatchedProperties(source2, target2, requireOptionalProperties, false));\n        if (!headMessage || headMessage.code !== Diagnostics.Class_0_incorrectly_implements_interface_1.code && headMessage.code !== Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code) {\n          shouldSkipElaboration = true;\n        }\n        if (props.length === 1) {\n          const propName = symbolToString(unmatchedProperty, void 0, 0, 4 | 16);\n          reportError(Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2, propName, ...getTypeNamesForErrorDisplay(source2, target2));\n          if (length(unmatchedProperty.declarations)) {\n            associateRelatedInfo(createDiagnosticForNode(unmatchedProperty.declarations[0], Diagnostics._0_is_declared_here, propName));\n          }\n          if (shouldSkipElaboration && errorInfo) {\n            overrideNextErrorInfo++;\n          }\n        } else if (tryElaborateArrayLikeErrors(source2, target2, false)) {\n          if (props.length > 5) {\n            reportError(Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more, typeToString(source2), typeToString(target2), map(props.slice(0, 4), (p) => symbolToString(p)).join(\", \"), props.length - 4);\n          } else {\n            reportError(Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2, typeToString(source2), typeToString(target2), map(props, (p) => symbolToString(p)).join(\", \"));\n          }\n          if (shouldSkipElaboration && errorInfo) {\n            overrideNextErrorInfo++;\n          }\n        }\n      }\n      function propertiesRelatedTo(source2, target2, reportErrors2, excludedProperties, optionalsOnly, intersectionState) {\n        if (relation === identityRelation) {\n          return propertiesIdenticalTo(source2, target2, excludedProperties);\n        }\n        let result2 = -1;\n        if (isTupleType(target2)) {\n          if (isArrayOrTupleType(source2)) {\n            if (!target2.target.readonly && (isReadonlyArrayType(source2) || isTupleType(source2) && source2.target.readonly)) {\n              return 0;\n            }\n            const sourceArity = getTypeReferenceArity(source2);\n            const targetArity = getTypeReferenceArity(target2);\n            const sourceRestFlag = isTupleType(source2) ? source2.target.combinedFlags & 4 : 4;\n            const targetRestFlag = target2.target.combinedFlags & 4;\n            const sourceMinLength = isTupleType(source2) ? source2.target.minLength : 0;\n            const targetMinLength = target2.target.minLength;\n            if (!sourceRestFlag && sourceArity < targetMinLength) {\n              if (reportErrors2) {\n                reportError(Diagnostics.Source_has_0_element_s_but_target_requires_1, sourceArity, targetMinLength);\n              }\n              return 0;\n            }\n            if (!targetRestFlag && targetArity < sourceMinLength) {\n              if (reportErrors2) {\n                reportError(Diagnostics.Source_has_0_element_s_but_target_allows_only_1, sourceMinLength, targetArity);\n              }\n              return 0;\n            }\n            if (!targetRestFlag && (sourceRestFlag || targetArity < sourceArity)) {\n              if (reportErrors2) {\n                if (sourceMinLength < targetMinLength) {\n                  reportError(Diagnostics.Target_requires_0_element_s_but_source_may_have_fewer, targetMinLength);\n                } else {\n                  reportError(Diagnostics.Target_allows_only_0_element_s_but_source_may_have_more, targetArity);\n                }\n              }\n              return 0;\n            }\n            const sourceTypeArguments = getTypeArguments(source2);\n            const targetTypeArguments = getTypeArguments(target2);\n            const targetStartCount = getStartElementCount(target2.target, 11);\n            const targetEndCount = getEndElementCount(target2.target, 11);\n            const targetHasRestElement = target2.target.hasRestElement;\n            let canExcludeDiscriminants = !!excludedProperties;\n            for (let sourcePosition = 0; sourcePosition < sourceArity; sourcePosition++) {\n              const sourceFlags = isTupleType(source2) ? source2.target.elementFlags[sourcePosition] : 4;\n              const sourcePositionFromEnd = sourceArity - 1 - sourcePosition;\n              const targetPosition = targetHasRestElement && sourcePosition >= targetStartCount ? targetArity - 1 - Math.min(sourcePositionFromEnd, targetEndCount) : sourcePosition;\n              const targetFlags = target2.target.elementFlags[targetPosition];\n              if (targetFlags & 8 && !(sourceFlags & 8)) {\n                if (reportErrors2) {\n                  reportError(Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target, targetPosition);\n                }\n                return 0;\n              }\n              if (sourceFlags & 8 && !(targetFlags & 12)) {\n                if (reportErrors2) {\n                  reportError(Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target, sourcePosition, targetPosition);\n                }\n                return 0;\n              }\n              if (targetFlags & 1 && !(sourceFlags & 1)) {\n                if (reportErrors2) {\n                  reportError(Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target, targetPosition);\n                }\n                return 0;\n              }\n              if (canExcludeDiscriminants) {\n                if (sourceFlags & 12 || targetFlags & 12) {\n                  canExcludeDiscriminants = false;\n                }\n                if (canExcludeDiscriminants && (excludedProperties == null ? void 0 : excludedProperties.has(\"\" + sourcePosition))) {\n                  continue;\n                }\n              }\n              const sourceType = removeMissingType(sourceTypeArguments[sourcePosition], !!(sourceFlags & targetFlags & 2));\n              const targetType = targetTypeArguments[targetPosition];\n              const targetCheckType = sourceFlags & 8 && targetFlags & 4 ? createArrayType(targetType) : removeMissingType(targetType, !!(targetFlags & 2));\n              const related = isRelatedTo(sourceType, targetCheckType, 3, reportErrors2, void 0, intersectionState);\n              if (!related) {\n                if (reportErrors2 && (targetArity > 1 || sourceArity > 1)) {\n                  if (targetHasRestElement && sourcePosition >= targetStartCount && sourcePositionFromEnd >= targetEndCount && targetStartCount !== sourceArity - targetEndCount - 1) {\n                    reportIncompatibleError(Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target, targetStartCount, sourceArity - targetEndCount - 1, targetPosition);\n                  } else {\n                    reportIncompatibleError(Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target, sourcePosition, targetPosition);\n                  }\n                }\n                return 0;\n              }\n              result2 &= related;\n            }\n            return result2;\n          }\n          if (target2.target.combinedFlags & 12) {\n            return 0;\n          }\n        }\n        const requireOptionalProperties = (relation === subtypeRelation || relation === strictSubtypeRelation) && !isObjectLiteralType2(source2) && !isEmptyArrayLiteralType(source2) && !isTupleType(source2);\n        const unmatchedProperty = getUnmatchedProperty(source2, target2, requireOptionalProperties, false);\n        if (unmatchedProperty) {\n          if (reportErrors2 && shouldReportUnmatchedPropertyError(source2, target2)) {\n            reportUnmatchedProperty(source2, target2, unmatchedProperty, requireOptionalProperties);\n          }\n          return 0;\n        }\n        if (isObjectLiteralType2(target2)) {\n          for (const sourceProp of excludeProperties(getPropertiesOfType(source2), excludedProperties)) {\n            if (!getPropertyOfObjectType(target2, sourceProp.escapedName)) {\n              const sourceType = getTypeOfSymbol(sourceProp);\n              if (!(sourceType.flags & 32768)) {\n                if (reportErrors2) {\n                  reportError(Diagnostics.Property_0_does_not_exist_on_type_1, symbolToString(sourceProp), typeToString(target2));\n                }\n                return 0;\n              }\n            }\n          }\n        }\n        const properties = getPropertiesOfType(target2);\n        const numericNamesOnly = isTupleType(source2) && isTupleType(target2);\n        for (const targetProp of excludeProperties(properties, excludedProperties)) {\n          const name = targetProp.escapedName;\n          if (!(targetProp.flags & 4194304) && (!numericNamesOnly || isNumericLiteralName(name) || name === \"length\") && (!optionalsOnly || targetProp.flags & 16777216)) {\n            const sourceProp = getPropertyOfType(source2, name);\n            if (sourceProp && sourceProp !== targetProp) {\n              const related = propertyRelatedTo(source2, target2, sourceProp, targetProp, getNonMissingTypeOfSymbol, reportErrors2, intersectionState, relation === comparableRelation);\n              if (!related) {\n                return 0;\n              }\n              result2 &= related;\n            }\n          }\n        }\n        return result2;\n      }\n      function propertiesIdenticalTo(source2, target2, excludedProperties) {\n        if (!(source2.flags & 524288 && target2.flags & 524288)) {\n          return 0;\n        }\n        const sourceProperties = excludeProperties(getPropertiesOfObjectType(source2), excludedProperties);\n        const targetProperties = excludeProperties(getPropertiesOfObjectType(target2), excludedProperties);\n        if (sourceProperties.length !== targetProperties.length) {\n          return 0;\n        }\n        let result2 = -1;\n        for (const sourceProp of sourceProperties) {\n          const targetProp = getPropertyOfObjectType(target2, sourceProp.escapedName);\n          if (!targetProp) {\n            return 0;\n          }\n          const related = compareProperties2(sourceProp, targetProp, isRelatedTo);\n          if (!related) {\n            return 0;\n          }\n          result2 &= related;\n        }\n        return result2;\n      }\n      function signaturesRelatedTo(source2, target2, kind, reportErrors2, intersectionState) {\n        var _a3, _b;\n        if (relation === identityRelation) {\n          return signaturesIdenticalTo(source2, target2, kind);\n        }\n        if (target2 === anyFunctionType || source2 === anyFunctionType) {\n          return -1;\n        }\n        const sourceIsJSConstructor = source2.symbol && isJSConstructor(source2.symbol.valueDeclaration);\n        const targetIsJSConstructor = target2.symbol && isJSConstructor(target2.symbol.valueDeclaration);\n        const sourceSignatures = getSignaturesOfType(source2, sourceIsJSConstructor && kind === 1 ? 0 : kind);\n        const targetSignatures = getSignaturesOfType(target2, targetIsJSConstructor && kind === 1 ? 0 : kind);\n        if (kind === 1 && sourceSignatures.length && targetSignatures.length) {\n          const sourceIsAbstract = !!(sourceSignatures[0].flags & 4);\n          const targetIsAbstract = !!(targetSignatures[0].flags & 4);\n          if (sourceIsAbstract && !targetIsAbstract) {\n            if (reportErrors2) {\n              reportError(Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type);\n            }\n            return 0;\n          }\n          if (!constructorVisibilitiesAreCompatible(sourceSignatures[0], targetSignatures[0], reportErrors2)) {\n            return 0;\n          }\n        }\n        let result2 = -1;\n        const incompatibleReporter = kind === 1 ? reportIncompatibleConstructSignatureReturn : reportIncompatibleCallSignatureReturn;\n        const sourceObjectFlags = getObjectFlags(source2);\n        const targetObjectFlags = getObjectFlags(target2);\n        if (sourceObjectFlags & 64 && targetObjectFlags & 64 && source2.symbol === target2.symbol || sourceObjectFlags & 4 && targetObjectFlags & 4 && source2.target === target2.target) {\n          for (let i = 0; i < targetSignatures.length; i++) {\n            const related = signatureRelatedTo(sourceSignatures[i], targetSignatures[i], true, reportErrors2, intersectionState, incompatibleReporter(sourceSignatures[i], targetSignatures[i]));\n            if (!related) {\n              return 0;\n            }\n            result2 &= related;\n          }\n        } else if (sourceSignatures.length === 1 && targetSignatures.length === 1) {\n          const eraseGenerics = relation === comparableRelation || !!compilerOptions.noStrictGenericChecks;\n          const sourceSignature = first(sourceSignatures);\n          const targetSignature = first(targetSignatures);\n          result2 = signatureRelatedTo(sourceSignature, targetSignature, eraseGenerics, reportErrors2, intersectionState, incompatibleReporter(sourceSignature, targetSignature));\n          if (!result2 && reportErrors2 && kind === 1 && sourceObjectFlags & targetObjectFlags && (((_a3 = targetSignature.declaration) == null ? void 0 : _a3.kind) === 173 || ((_b = sourceSignature.declaration) == null ? void 0 : _b.kind) === 173)) {\n            const constructSignatureToString = (signature) => signatureToString(signature, void 0, 262144, kind);\n            reportError(Diagnostics.Type_0_is_not_assignable_to_type_1, constructSignatureToString(sourceSignature), constructSignatureToString(targetSignature));\n            reportError(Diagnostics.Types_of_construct_signatures_are_incompatible);\n            return result2;\n          }\n        } else {\n          outer:\n            for (const t of targetSignatures) {\n              const saveErrorInfo = captureErrorCalculationState();\n              let shouldElaborateErrors = reportErrors2;\n              for (const s of sourceSignatures) {\n                const related = signatureRelatedTo(s, t, true, shouldElaborateErrors, intersectionState, incompatibleReporter(s, t));\n                if (related) {\n                  result2 &= related;\n                  resetErrorInfo(saveErrorInfo);\n                  continue outer;\n                }\n                shouldElaborateErrors = false;\n              }\n              if (shouldElaborateErrors) {\n                reportError(Diagnostics.Type_0_provides_no_match_for_the_signature_1, typeToString(source2), signatureToString(t, void 0, void 0, kind));\n              }\n              return 0;\n            }\n        }\n        return result2;\n      }\n      function shouldReportUnmatchedPropertyError(source2, target2) {\n        const typeCallSignatures = getSignaturesOfStructuredType(source2, 0);\n        const typeConstructSignatures = getSignaturesOfStructuredType(source2, 1);\n        const typeProperties = getPropertiesOfObjectType(source2);\n        if ((typeCallSignatures.length || typeConstructSignatures.length) && !typeProperties.length) {\n          if (getSignaturesOfType(target2, 0).length && typeCallSignatures.length || getSignaturesOfType(target2, 1).length && typeConstructSignatures.length) {\n            return true;\n          }\n          return false;\n        }\n        return true;\n      }\n      function reportIncompatibleCallSignatureReturn(siga, sigb) {\n        if (siga.parameters.length === 0 && sigb.parameters.length === 0) {\n          return (source2, target2) => reportIncompatibleError(Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1, typeToString(source2), typeToString(target2));\n        }\n        return (source2, target2) => reportIncompatibleError(Diagnostics.Call_signature_return_types_0_and_1_are_incompatible, typeToString(source2), typeToString(target2));\n      }\n      function reportIncompatibleConstructSignatureReturn(siga, sigb) {\n        if (siga.parameters.length === 0 && sigb.parameters.length === 0) {\n          return (source2, target2) => reportIncompatibleError(Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1, typeToString(source2), typeToString(target2));\n        }\n        return (source2, target2) => reportIncompatibleError(Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible, typeToString(source2), typeToString(target2));\n      }\n      function signatureRelatedTo(source2, target2, erase, reportErrors2, intersectionState, incompatibleReporter) {\n        const checkMode = relation === subtypeRelation ? 16 : relation === strictSubtypeRelation ? 16 | 8 : 0;\n        return compareSignaturesRelated(erase ? getErasedSignature(source2) : source2, erase ? getErasedSignature(target2) : target2, checkMode, reportErrors2, reportError, incompatibleReporter, isRelatedToWorker2, reportUnreliableMapper);\n        function isRelatedToWorker2(source3, target3, reportErrors3) {\n          return isRelatedTo(source3, target3, 3, reportErrors3, void 0, intersectionState);\n        }\n      }\n      function signaturesIdenticalTo(source2, target2, kind) {\n        const sourceSignatures = getSignaturesOfType(source2, kind);\n        const targetSignatures = getSignaturesOfType(target2, kind);\n        if (sourceSignatures.length !== targetSignatures.length) {\n          return 0;\n        }\n        let result2 = -1;\n        for (let i = 0; i < sourceSignatures.length; i++) {\n          const related = compareSignaturesIdentical(sourceSignatures[i], targetSignatures[i], false, false, false, isRelatedTo);\n          if (!related) {\n            return 0;\n          }\n          result2 &= related;\n        }\n        return result2;\n      }\n      function membersRelatedToIndexInfo(source2, targetInfo, reportErrors2, intersectionState) {\n        let result2 = -1;\n        const keyType = targetInfo.keyType;\n        const props = source2.flags & 2097152 ? getPropertiesOfUnionOrIntersectionType(source2) : getPropertiesOfObjectType(source2);\n        for (const prop of props) {\n          if (isIgnoredJsxProperty(source2, prop)) {\n            continue;\n          }\n          if (isApplicableIndexType(getLiteralTypeFromProperty(prop, 8576), keyType)) {\n            const propType = getNonMissingTypeOfSymbol(prop);\n            const type = exactOptionalPropertyTypes || propType.flags & 32768 || keyType === numberType || !(prop.flags & 16777216) ? propType : getTypeWithFacts(propType, 524288);\n            const related = isRelatedTo(type, targetInfo.type, 3, reportErrors2, void 0, intersectionState);\n            if (!related) {\n              if (reportErrors2) {\n                reportError(Diagnostics.Property_0_is_incompatible_with_index_signature, symbolToString(prop));\n              }\n              return 0;\n            }\n            result2 &= related;\n          }\n        }\n        for (const info of getIndexInfosOfType(source2)) {\n          if (isApplicableIndexType(info.keyType, keyType)) {\n            const related = indexInfoRelatedTo(info, targetInfo, reportErrors2, intersectionState);\n            if (!related) {\n              return 0;\n            }\n            result2 &= related;\n          }\n        }\n        return result2;\n      }\n      function indexInfoRelatedTo(sourceInfo, targetInfo, reportErrors2, intersectionState) {\n        const related = isRelatedTo(sourceInfo.type, targetInfo.type, 3, reportErrors2, void 0, intersectionState);\n        if (!related && reportErrors2) {\n          if (sourceInfo.keyType === targetInfo.keyType) {\n            reportError(Diagnostics._0_index_signatures_are_incompatible, typeToString(sourceInfo.keyType));\n          } else {\n            reportError(Diagnostics._0_and_1_index_signatures_are_incompatible, typeToString(sourceInfo.keyType), typeToString(targetInfo.keyType));\n          }\n        }\n        return related;\n      }\n      function indexSignaturesRelatedTo(source2, target2, sourceIsPrimitive, reportErrors2, intersectionState) {\n        if (relation === identityRelation) {\n          return indexSignaturesIdenticalTo(source2, target2);\n        }\n        const indexInfos = getIndexInfosOfType(target2);\n        const targetHasStringIndex = some(indexInfos, (info) => info.keyType === stringType);\n        let result2 = -1;\n        for (const targetInfo of indexInfos) {\n          const related = !sourceIsPrimitive && targetHasStringIndex && targetInfo.type.flags & 1 ? -1 : isGenericMappedType(source2) && targetHasStringIndex ? isRelatedTo(getTemplateTypeFromMappedType(source2), targetInfo.type, 3, reportErrors2) : typeRelatedToIndexInfo(source2, targetInfo, reportErrors2, intersectionState);\n          if (!related) {\n            return 0;\n          }\n          result2 &= related;\n        }\n        return result2;\n      }\n      function typeRelatedToIndexInfo(source2, targetInfo, reportErrors2, intersectionState) {\n        const sourceInfo = getApplicableIndexInfo(source2, targetInfo.keyType);\n        if (sourceInfo) {\n          return indexInfoRelatedTo(sourceInfo, targetInfo, reportErrors2, intersectionState);\n        }\n        if (!(intersectionState & 1) && (relation !== strictSubtypeRelation || getObjectFlags(source2) & 8192) && isObjectTypeWithInferableIndex(source2)) {\n          return membersRelatedToIndexInfo(source2, targetInfo, reportErrors2, intersectionState);\n        }\n        if (reportErrors2) {\n          reportError(Diagnostics.Index_signature_for_type_0_is_missing_in_type_1, typeToString(targetInfo.keyType), typeToString(source2));\n        }\n        return 0;\n      }\n      function indexSignaturesIdenticalTo(source2, target2) {\n        const sourceInfos = getIndexInfosOfType(source2);\n        const targetInfos = getIndexInfosOfType(target2);\n        if (sourceInfos.length !== targetInfos.length) {\n          return 0;\n        }\n        for (const targetInfo of targetInfos) {\n          const sourceInfo = getIndexInfoOfType(source2, targetInfo.keyType);\n          if (!(sourceInfo && isRelatedTo(sourceInfo.type, targetInfo.type, 3) && sourceInfo.isReadonly === targetInfo.isReadonly)) {\n            return 0;\n          }\n        }\n        return -1;\n      }\n      function constructorVisibilitiesAreCompatible(sourceSignature, targetSignature, reportErrors2) {\n        if (!sourceSignature.declaration || !targetSignature.declaration) {\n          return true;\n        }\n        const sourceAccessibility = getSelectedEffectiveModifierFlags(sourceSignature.declaration, 24);\n        const targetAccessibility = getSelectedEffectiveModifierFlags(targetSignature.declaration, 24);\n        if (targetAccessibility === 8) {\n          return true;\n        }\n        if (targetAccessibility === 16 && sourceAccessibility !== 8) {\n          return true;\n        }\n        if (targetAccessibility !== 16 && !sourceAccessibility) {\n          return true;\n        }\n        if (reportErrors2) {\n          reportError(Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type, visibilityToString(sourceAccessibility), visibilityToString(targetAccessibility));\n        }\n        return false;\n      }\n    }\n    function typeCouldHaveTopLevelSingletonTypes(type) {\n      if (type.flags & 16) {\n        return false;\n      }\n      if (type.flags & 3145728) {\n        return !!forEach(type.types, typeCouldHaveTopLevelSingletonTypes);\n      }\n      if (type.flags & 465829888) {\n        const constraint = getConstraintOfType(type);\n        if (constraint && constraint !== type) {\n          return typeCouldHaveTopLevelSingletonTypes(constraint);\n        }\n      }\n      return isUnitType(type) || !!(type.flags & 134217728) || !!(type.flags & 268435456);\n    }\n    function getExactOptionalUnassignableProperties(source, target) {\n      if (isTupleType(source) && isTupleType(target))\n        return emptyArray;\n      return getPropertiesOfType(target).filter((targetProp) => isExactOptionalPropertyMismatch(getTypeOfPropertyOfType(source, targetProp.escapedName), getTypeOfSymbol(targetProp)));\n    }\n    function isExactOptionalPropertyMismatch(source, target) {\n      return !!source && !!target && maybeTypeOfKind(source, 32768) && !!containsMissingType(target);\n    }\n    function getExactOptionalProperties(type) {\n      return getPropertiesOfType(type).filter((targetProp) => containsMissingType(getTypeOfSymbol(targetProp)));\n    }\n    function getBestMatchingType(source, target, isRelatedTo = compareTypesAssignable) {\n      return findMatchingDiscriminantType(source, target, isRelatedTo, true) || findMatchingTypeReferenceOrTypeAliasReference(source, target) || findBestTypeForObjectLiteral(source, target) || findBestTypeForInvokable(source, target) || findMostOverlappyType(source, target);\n    }\n    function discriminateTypeByDiscriminableItems(target, discriminators, related, defaultValue, skipPartial) {\n      const discriminable = target.types.map((_) => void 0);\n      for (const [getDiscriminatingType, propertyName] of discriminators) {\n        const targetProp = getUnionOrIntersectionProperty(target, propertyName);\n        if (skipPartial && targetProp && getCheckFlags(targetProp) & 16) {\n          continue;\n        }\n        let i = 0;\n        for (const type of target.types) {\n          const targetType = getTypeOfPropertyOfType(type, propertyName);\n          if (targetType && related(getDiscriminatingType(), targetType)) {\n            discriminable[i] = discriminable[i] === void 0 ? true : discriminable[i];\n          } else {\n            discriminable[i] = false;\n          }\n          i++;\n        }\n      }\n      const match = discriminable.indexOf(true);\n      if (match === -1) {\n        return defaultValue;\n      }\n      let nextMatch = discriminable.indexOf(true, match + 1);\n      while (nextMatch !== -1) {\n        if (!isTypeIdenticalTo(target.types[match], target.types[nextMatch])) {\n          return defaultValue;\n        }\n        nextMatch = discriminable.indexOf(true, nextMatch + 1);\n      }\n      return target.types[match];\n    }\n    function isWeakType(type) {\n      if (type.flags & 524288) {\n        const resolved = resolveStructuredTypeMembers(type);\n        return resolved.callSignatures.length === 0 && resolved.constructSignatures.length === 0 && resolved.indexInfos.length === 0 && resolved.properties.length > 0 && every(resolved.properties, (p) => !!(p.flags & 16777216));\n      }\n      if (type.flags & 2097152) {\n        return every(type.types, isWeakType);\n      }\n      return false;\n    }\n    function hasCommonProperties(source, target, isComparingJsxAttributes) {\n      for (const prop of getPropertiesOfType(source)) {\n        if (isKnownProperty(target, prop.escapedName, isComparingJsxAttributes)) {\n          return true;\n        }\n      }\n      return false;\n    }\n    function getVariances(type) {\n      return type === globalArrayType || type === globalReadonlyArrayType || type.objectFlags & 8 ? arrayVariances : getVariancesWorker(type.symbol, type.typeParameters);\n    }\n    function getAliasVariances(symbol) {\n      return getVariancesWorker(symbol, getSymbolLinks(symbol).typeParameters);\n    }\n    function getVariancesWorker(symbol, typeParameters = emptyArray) {\n      var _a2, _b;\n      const links = getSymbolLinks(symbol);\n      if (!links.variances) {\n        (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.CheckTypes, \"getVariancesWorker\", { arity: typeParameters.length, id: getTypeId(getDeclaredTypeOfSymbol(symbol)) });\n        links.variances = emptyArray;\n        const variances = [];\n        for (const tp of typeParameters) {\n          const modifiers = getTypeParameterModifiers(tp);\n          let variance = modifiers & 65536 ? modifiers & 32768 ? 0 : 1 : modifiers & 32768 ? 2 : void 0;\n          if (variance === void 0) {\n            let unmeasurable = false;\n            let unreliable = false;\n            const oldHandler = outofbandVarianceMarkerHandler;\n            outofbandVarianceMarkerHandler = (onlyUnreliable) => onlyUnreliable ? unreliable = true : unmeasurable = true;\n            const typeWithSuper = createMarkerType(symbol, tp, markerSuperType);\n            const typeWithSub = createMarkerType(symbol, tp, markerSubType);\n            variance = (isTypeAssignableTo(typeWithSub, typeWithSuper) ? 1 : 0) | (isTypeAssignableTo(typeWithSuper, typeWithSub) ? 2 : 0);\n            if (variance === 3 && isTypeAssignableTo(createMarkerType(symbol, tp, markerOtherType), typeWithSuper)) {\n              variance = 4;\n            }\n            outofbandVarianceMarkerHandler = oldHandler;\n            if (unmeasurable || unreliable) {\n              if (unmeasurable) {\n                variance |= 8;\n              }\n              if (unreliable) {\n                variance |= 16;\n              }\n            }\n          }\n          variances.push(variance);\n        }\n        links.variances = variances;\n        (_b = tracing) == null ? void 0 : _b.pop({ variances: variances.map(Debug.formatVariance) });\n      }\n      return links.variances;\n    }\n    function createMarkerType(symbol, source, target) {\n      const mapper = makeUnaryTypeMapper(source, target);\n      const type = getDeclaredTypeOfSymbol(symbol);\n      if (isErrorType(type)) {\n        return type;\n      }\n      const result = symbol.flags & 524288 ? getTypeAliasInstantiation(symbol, instantiateTypes(getSymbolLinks(symbol).typeParameters, mapper)) : createTypeReference(type, instantiateTypes(type.typeParameters, mapper));\n      markerTypes.add(getTypeId(result));\n      return result;\n    }\n    function isMarkerType(type) {\n      return markerTypes.has(getTypeId(type));\n    }\n    function getTypeParameterModifiers(tp) {\n      var _a2;\n      return reduceLeft((_a2 = tp.symbol) == null ? void 0 : _a2.declarations, (modifiers, d) => modifiers | getEffectiveModifierFlags(d), 0) & (32768 | 65536 | 2048);\n    }\n    function hasCovariantVoidArgument(typeArguments, variances) {\n      for (let i = 0; i < variances.length; i++) {\n        if ((variances[i] & 7) === 1 && typeArguments[i].flags & 16384) {\n          return true;\n        }\n      }\n      return false;\n    }\n    function isUnconstrainedTypeParameter(type) {\n      return type.flags & 262144 && !getConstraintOfTypeParameter(type);\n    }\n    function isNonDeferredTypeReference(type) {\n      return !!(getObjectFlags(type) & 4) && !type.node;\n    }\n    function isTypeReferenceWithGenericArguments(type) {\n      return isNonDeferredTypeReference(type) && some(getTypeArguments(type), (t) => !!(t.flags & 262144) || isTypeReferenceWithGenericArguments(t));\n    }\n    function getGenericTypeReferenceRelationKey(source, target, postFix, ignoreConstraints) {\n      const typeParameters = [];\n      let constraintMarker = \"\";\n      const sourceId = getTypeReferenceId(source, 0);\n      const targetId = getTypeReferenceId(target, 0);\n      return `${constraintMarker}${sourceId},${targetId}${postFix}`;\n      function getTypeReferenceId(type, depth = 0) {\n        let result = \"\" + type.target.id;\n        for (const t of getTypeArguments(type)) {\n          if (t.flags & 262144) {\n            if (ignoreConstraints || isUnconstrainedTypeParameter(t)) {\n              let index = typeParameters.indexOf(t);\n              if (index < 0) {\n                index = typeParameters.length;\n                typeParameters.push(t);\n              }\n              result += \"=\" + index;\n              continue;\n            }\n            constraintMarker = \"*\";\n          } else if (depth < 4 && isTypeReferenceWithGenericArguments(t)) {\n            result += \"<\" + getTypeReferenceId(t, depth + 1) + \">\";\n            continue;\n          }\n          result += \"-\" + t.id;\n        }\n        return result;\n      }\n    }\n    function getRelationKey(source, target, intersectionState, relation, ignoreConstraints) {\n      if (relation === identityRelation && source.id > target.id) {\n        const temp = source;\n        source = target;\n        target = temp;\n      }\n      const postFix = intersectionState ? \":\" + intersectionState : \"\";\n      return isTypeReferenceWithGenericArguments(source) && isTypeReferenceWithGenericArguments(target) ? getGenericTypeReferenceRelationKey(source, target, postFix, ignoreConstraints) : `${source.id},${target.id}${postFix}`;\n    }\n    function forEachProperty2(prop, callback) {\n      if (getCheckFlags(prop) & 6) {\n        for (const t of prop.links.containingType.types) {\n          const p = getPropertyOfType(t, prop.escapedName);\n          const result = p && forEachProperty2(p, callback);\n          if (result) {\n            return result;\n          }\n        }\n        return void 0;\n      }\n      return callback(prop);\n    }\n    function getDeclaringClass(prop) {\n      return prop.parent && prop.parent.flags & 32 ? getDeclaredTypeOfSymbol(getParentOfSymbol(prop)) : void 0;\n    }\n    function getTypeOfPropertyInBaseClass(property) {\n      const classType = getDeclaringClass(property);\n      const baseClassType = classType && getBaseTypes(classType)[0];\n      return baseClassType && getTypeOfPropertyOfType(baseClassType, property.escapedName);\n    }\n    function isPropertyInClassDerivedFrom(prop, baseClass) {\n      return forEachProperty2(prop, (sp) => {\n        const sourceClass = getDeclaringClass(sp);\n        return sourceClass ? hasBaseType(sourceClass, baseClass) : false;\n      });\n    }\n    function isValidOverrideOf(sourceProp, targetProp) {\n      return !forEachProperty2(targetProp, (tp) => getDeclarationModifierFlagsFromSymbol(tp) & 16 ? !isPropertyInClassDerivedFrom(sourceProp, getDeclaringClass(tp)) : false);\n    }\n    function isClassDerivedFromDeclaringClasses(checkClass, prop, writing) {\n      return forEachProperty2(prop, (p) => getDeclarationModifierFlagsFromSymbol(p, writing) & 16 ? !hasBaseType(checkClass, getDeclaringClass(p)) : false) ? void 0 : checkClass;\n    }\n    function isDeeplyNestedType(type, stack, depth, maxDepth = 3) {\n      if (depth >= maxDepth) {\n        if (type.flags & 2097152) {\n          return some(type.types, (t) => isDeeplyNestedType(t, stack, depth, maxDepth));\n        }\n        const identity2 = getRecursionIdentity(type);\n        let count = 0;\n        let lastTypeId = 0;\n        for (let i = 0; i < depth; i++) {\n          const t = stack[i];\n          if (t.flags & 2097152 ? some(t.types, (u) => getRecursionIdentity(u) === identity2) : getRecursionIdentity(t) === identity2) {\n            if (t.id >= lastTypeId) {\n              count++;\n              if (count >= maxDepth) {\n                return true;\n              }\n            }\n            lastTypeId = t.id;\n          }\n        }\n      }\n      return false;\n    }\n    function getRecursionIdentity(type) {\n      if (type.flags & 524288 && !isObjectOrArrayLiteralType(type)) {\n        if (getObjectFlags(type) && 4 && type.node) {\n          return type.node;\n        }\n        if (type.symbol && !(getObjectFlags(type) & 16 && type.symbol.flags & 32)) {\n          return type.symbol;\n        }\n        if (isTupleType(type)) {\n          return type.target;\n        }\n      }\n      if (type.flags & 262144) {\n        return type.symbol;\n      }\n      if (type.flags & 8388608) {\n        do {\n          type = type.objectType;\n        } while (type.flags & 8388608);\n        return type;\n      }\n      if (type.flags & 16777216) {\n        return type.root;\n      }\n      return type;\n    }\n    function isPropertyIdenticalTo(sourceProp, targetProp) {\n      return compareProperties2(sourceProp, targetProp, compareTypesIdentical) !== 0;\n    }\n    function compareProperties2(sourceProp, targetProp, compareTypes) {\n      if (sourceProp === targetProp) {\n        return -1;\n      }\n      const sourcePropAccessibility = getDeclarationModifierFlagsFromSymbol(sourceProp) & 24;\n      const targetPropAccessibility = getDeclarationModifierFlagsFromSymbol(targetProp) & 24;\n      if (sourcePropAccessibility !== targetPropAccessibility) {\n        return 0;\n      }\n      if (sourcePropAccessibility) {\n        if (getTargetSymbol(sourceProp) !== getTargetSymbol(targetProp)) {\n          return 0;\n        }\n      } else {\n        if ((sourceProp.flags & 16777216) !== (targetProp.flags & 16777216)) {\n          return 0;\n        }\n      }\n      if (isReadonlySymbol(sourceProp) !== isReadonlySymbol(targetProp)) {\n        return 0;\n      }\n      return compareTypes(getTypeOfSymbol(sourceProp), getTypeOfSymbol(targetProp));\n    }\n    function isMatchingSignature(source, target, partialMatch) {\n      const sourceParameterCount = getParameterCount(source);\n      const targetParameterCount = getParameterCount(target);\n      const sourceMinArgumentCount = getMinArgumentCount(source);\n      const targetMinArgumentCount = getMinArgumentCount(target);\n      const sourceHasRestParameter = hasEffectiveRestParameter(source);\n      const targetHasRestParameter = hasEffectiveRestParameter(target);\n      if (sourceParameterCount === targetParameterCount && sourceMinArgumentCount === targetMinArgumentCount && sourceHasRestParameter === targetHasRestParameter) {\n        return true;\n      }\n      if (partialMatch && sourceMinArgumentCount <= targetMinArgumentCount) {\n        return true;\n      }\n      return false;\n    }\n    function compareSignaturesIdentical(source, target, partialMatch, ignoreThisTypes, ignoreReturnTypes, compareTypes) {\n      if (source === target) {\n        return -1;\n      }\n      if (!isMatchingSignature(source, target, partialMatch)) {\n        return 0;\n      }\n      if (length(source.typeParameters) !== length(target.typeParameters)) {\n        return 0;\n      }\n      if (target.typeParameters) {\n        const mapper = createTypeMapper(source.typeParameters, target.typeParameters);\n        for (let i = 0; i < target.typeParameters.length; i++) {\n          const s = source.typeParameters[i];\n          const t = target.typeParameters[i];\n          if (!(s === t || compareTypes(instantiateType(getConstraintFromTypeParameter(s), mapper) || unknownType, getConstraintFromTypeParameter(t) || unknownType) && compareTypes(instantiateType(getDefaultFromTypeParameter(s), mapper) || unknownType, getDefaultFromTypeParameter(t) || unknownType))) {\n            return 0;\n          }\n        }\n        source = instantiateSignature(source, mapper, true);\n      }\n      let result = -1;\n      if (!ignoreThisTypes) {\n        const sourceThisType = getThisTypeOfSignature(source);\n        if (sourceThisType) {\n          const targetThisType = getThisTypeOfSignature(target);\n          if (targetThisType) {\n            const related = compareTypes(sourceThisType, targetThisType);\n            if (!related) {\n              return 0;\n            }\n            result &= related;\n          }\n        }\n      }\n      const targetLen = getParameterCount(target);\n      for (let i = 0; i < targetLen; i++) {\n        const s = getTypeAtPosition(source, i);\n        const t = getTypeAtPosition(target, i);\n        const related = compareTypes(t, s);\n        if (!related) {\n          return 0;\n        }\n        result &= related;\n      }\n      if (!ignoreReturnTypes) {\n        const sourceTypePredicate = getTypePredicateOfSignature(source);\n        const targetTypePredicate = getTypePredicateOfSignature(target);\n        result &= sourceTypePredicate || targetTypePredicate ? compareTypePredicatesIdentical(sourceTypePredicate, targetTypePredicate, compareTypes) : compareTypes(getReturnTypeOfSignature(source), getReturnTypeOfSignature(target));\n      }\n      return result;\n    }\n    function compareTypePredicatesIdentical(source, target, compareTypes) {\n      return !(source && target && typePredicateKindsMatch(source, target)) ? 0 : source.type === target.type ? -1 : source.type && target.type ? compareTypes(source.type, target.type) : 0;\n    }\n    function literalTypesWithSameBaseType(types) {\n      let commonBaseType;\n      for (const t of types) {\n        if (!(t.flags & 131072)) {\n          const baseType = getBaseTypeOfLiteralType(t);\n          commonBaseType != null ? commonBaseType : commonBaseType = baseType;\n          if (baseType === t || baseType !== commonBaseType) {\n            return false;\n          }\n        }\n      }\n      return true;\n    }\n    function getCombinedTypeFlags(types) {\n      return reduceLeft(types, (flags, t) => flags | (t.flags & 1048576 ? getCombinedTypeFlags(t.types) : t.flags), 0);\n    }\n    function getCommonSupertype(types) {\n      if (types.length === 1) {\n        return types[0];\n      }\n      const primaryTypes = strictNullChecks ? sameMap(types, (t) => filterType(t, (u) => !(u.flags & 98304))) : types;\n      const superTypeOrUnion = literalTypesWithSameBaseType(primaryTypes) ? getUnionType(primaryTypes) : reduceLeft(primaryTypes, (s, t) => isTypeSubtypeOf(s, t) ? t : s);\n      return primaryTypes === types ? superTypeOrUnion : getNullableType(superTypeOrUnion, getCombinedTypeFlags(types) & 98304);\n    }\n    function getCommonSubtype(types) {\n      return reduceLeft(types, (s, t) => isTypeSubtypeOf(t, s) ? t : s);\n    }\n    function isArrayType(type) {\n      return !!(getObjectFlags(type) & 4) && (type.target === globalArrayType || type.target === globalReadonlyArrayType);\n    }\n    function isReadonlyArrayType(type) {\n      return !!(getObjectFlags(type) & 4) && type.target === globalReadonlyArrayType;\n    }\n    function isArrayOrTupleType(type) {\n      return isArrayType(type) || isTupleType(type);\n    }\n    function isMutableArrayOrTuple(type) {\n      return isArrayType(type) && !isReadonlyArrayType(type) || isTupleType(type) && !type.target.readonly;\n    }\n    function getElementTypeOfArrayType(type) {\n      return isArrayType(type) ? getTypeArguments(type)[0] : void 0;\n    }\n    function isArrayLikeType(type) {\n      return isArrayType(type) || !(type.flags & 98304) && isTypeAssignableTo(type, anyReadonlyArrayType);\n    }\n    function getSingleBaseForNonAugmentingSubtype(type) {\n      if (!(getObjectFlags(type) & 4) || !(getObjectFlags(type.target) & 3)) {\n        return void 0;\n      }\n      if (getObjectFlags(type) & 33554432) {\n        return getObjectFlags(type) & 67108864 ? type.cachedEquivalentBaseType : void 0;\n      }\n      type.objectFlags |= 33554432;\n      const target = type.target;\n      if (getObjectFlags(target) & 1) {\n        const baseTypeNode = getBaseTypeNodeOfClass(target);\n        if (baseTypeNode && baseTypeNode.expression.kind !== 79 && baseTypeNode.expression.kind !== 208) {\n          return void 0;\n        }\n      }\n      const bases = getBaseTypes(target);\n      if (bases.length !== 1) {\n        return void 0;\n      }\n      if (getMembersOfSymbol(type.symbol).size) {\n        return void 0;\n      }\n      let instantiatedBase = !length(target.typeParameters) ? bases[0] : instantiateType(bases[0], createTypeMapper(target.typeParameters, getTypeArguments(type).slice(0, target.typeParameters.length)));\n      if (length(getTypeArguments(type)) > length(target.typeParameters)) {\n        instantiatedBase = getTypeWithThisArgument(instantiatedBase, last(getTypeArguments(type)));\n      }\n      type.objectFlags |= 67108864;\n      return type.cachedEquivalentBaseType = instantiatedBase;\n    }\n    function isEmptyLiteralType(type) {\n      return strictNullChecks ? type === implicitNeverType : type === undefinedWideningType;\n    }\n    function isEmptyArrayLiteralType(type) {\n      const elementType = getElementTypeOfArrayType(type);\n      return !!elementType && isEmptyLiteralType(elementType);\n    }\n    function isTupleLikeType(type) {\n      return isTupleType(type) || !!getPropertyOfType(type, \"0\");\n    }\n    function isArrayOrTupleLikeType(type) {\n      return isArrayLikeType(type) || isTupleLikeType(type);\n    }\n    function getTupleElementType(type, index) {\n      const propType = getTypeOfPropertyOfType(type, \"\" + index);\n      if (propType) {\n        return propType;\n      }\n      if (everyType(type, isTupleType)) {\n        return mapType(type, (t) => {\n          const tupleType = t;\n          const restType = getRestTypeOfTupleType(tupleType);\n          if (!restType) {\n            return undefinedType;\n          }\n          if (compilerOptions.noUncheckedIndexedAccess && index >= tupleType.target.fixedLength + getEndElementCount(tupleType.target, 3)) {\n            return getUnionType([restType, undefinedType]);\n          }\n          return restType;\n        });\n      }\n      return void 0;\n    }\n    function isNeitherUnitTypeNorNever(type) {\n      return !(type.flags & (109472 | 131072));\n    }\n    function isUnitType(type) {\n      return !!(type.flags & 109472);\n    }\n    function isUnitLikeType(type) {\n      const t = getBaseConstraintOrType(type);\n      return t.flags & 2097152 ? some(t.types, isUnitType) : isUnitType(t);\n    }\n    function extractUnitType(type) {\n      return type.flags & 2097152 ? find(type.types, isUnitType) || type : type;\n    }\n    function isLiteralType(type) {\n      return type.flags & 16 ? true : type.flags & 1048576 ? type.flags & 1024 ? true : every(type.types, isUnitType) : isUnitType(type);\n    }\n    function getBaseTypeOfLiteralType(type) {\n      return type.flags & 1056 ? getBaseTypeOfEnumLikeType(type) : type.flags & (128 | 134217728 | 268435456) ? stringType : type.flags & 256 ? numberType : type.flags & 2048 ? bigintType : type.flags & 512 ? booleanType : type.flags & 1048576 ? getBaseTypeOfLiteralTypeUnion(type) : type;\n    }\n    function getBaseTypeOfLiteralTypeUnion(type) {\n      var _a2;\n      const key = `B${getTypeId(type)}`;\n      return (_a2 = getCachedType(key)) != null ? _a2 : setCachedType(key, mapType(type, getBaseTypeOfLiteralType));\n    }\n    function getBaseTypeOfLiteralTypeForComparison(type) {\n      return type.flags & (128 | 134217728 | 268435456) ? stringType : type.flags & (256 | 32) ? numberType : type.flags & 2048 ? bigintType : type.flags & 512 ? booleanType : type.flags & 1048576 ? mapType(type, getBaseTypeOfLiteralTypeForComparison) : type;\n    }\n    function getWidenedLiteralType(type) {\n      return type.flags & 1056 && isFreshLiteralType(type) ? getBaseTypeOfEnumLikeType(type) : type.flags & 128 && isFreshLiteralType(type) ? stringType : type.flags & 256 && isFreshLiteralType(type) ? numberType : type.flags & 2048 && isFreshLiteralType(type) ? bigintType : type.flags & 512 && isFreshLiteralType(type) ? booleanType : type.flags & 1048576 ? mapType(type, getWidenedLiteralType) : type;\n    }\n    function getWidenedUniqueESSymbolType(type) {\n      return type.flags & 8192 ? esSymbolType : type.flags & 1048576 ? mapType(type, getWidenedUniqueESSymbolType) : type;\n    }\n    function getWidenedLiteralLikeTypeForContextualType(type, contextualType) {\n      if (!isLiteralOfContextualType(type, contextualType)) {\n        type = getWidenedUniqueESSymbolType(getWidenedLiteralType(type));\n      }\n      return getRegularTypeOfLiteralType(type);\n    }\n    function getWidenedLiteralLikeTypeForContextualReturnTypeIfNeeded(type, contextualSignatureReturnType, isAsync) {\n      if (type && isUnitType(type)) {\n        const contextualType = !contextualSignatureReturnType ? void 0 : isAsync ? getPromisedTypeOfPromise(contextualSignatureReturnType) : contextualSignatureReturnType;\n        type = getWidenedLiteralLikeTypeForContextualType(type, contextualType);\n      }\n      return type;\n    }\n    function getWidenedLiteralLikeTypeForContextualIterationTypeIfNeeded(type, contextualSignatureReturnType, kind, isAsyncGenerator) {\n      if (type && isUnitType(type)) {\n        const contextualType = !contextualSignatureReturnType ? void 0 : getIterationTypeOfGeneratorFunctionReturnType(kind, contextualSignatureReturnType, isAsyncGenerator);\n        type = getWidenedLiteralLikeTypeForContextualType(type, contextualType);\n      }\n      return type;\n    }\n    function isTupleType(type) {\n      return !!(getObjectFlags(type) & 4 && type.target.objectFlags & 8);\n    }\n    function isGenericTupleType(type) {\n      return isTupleType(type) && !!(type.target.combinedFlags & 8);\n    }\n    function isSingleElementGenericTupleType(type) {\n      return isGenericTupleType(type) && type.target.elementFlags.length === 1;\n    }\n    function getRestTypeOfTupleType(type) {\n      return getElementTypeOfSliceOfTupleType(type, type.target.fixedLength);\n    }\n    function getRestArrayTypeOfTupleType(type) {\n      const restType = getRestTypeOfTupleType(type);\n      return restType && createArrayType(restType);\n    }\n    function getElementTypeOfSliceOfTupleType(type, index, endSkipCount = 0, writing = false, noReductions = false) {\n      const length2 = getTypeReferenceArity(type) - endSkipCount;\n      if (index < length2) {\n        const typeArguments = getTypeArguments(type);\n        const elementTypes = [];\n        for (let i = index; i < length2; i++) {\n          const t = typeArguments[i];\n          elementTypes.push(type.target.elementFlags[i] & 8 ? getIndexedAccessType(t, numberType) : t);\n        }\n        return writing ? getIntersectionType(elementTypes) : getUnionType(elementTypes, noReductions ? 0 : 1);\n      }\n      return void 0;\n    }\n    function isTupleTypeStructureMatching(t1, t2) {\n      return getTypeReferenceArity(t1) === getTypeReferenceArity(t2) && every(t1.target.elementFlags, (f, i) => (f & 12) === (t2.target.elementFlags[i] & 12));\n    }\n    function isZeroBigInt({ value }) {\n      return value.base10Value === \"0\";\n    }\n    function removeDefinitelyFalsyTypes(type) {\n      return filterType(type, (t) => !!(getTypeFacts(t) & 4194304));\n    }\n    function extractDefinitelyFalsyTypes(type) {\n      return mapType(type, getDefinitelyFalsyPartOfType);\n    }\n    function getDefinitelyFalsyPartOfType(type) {\n      return type.flags & 4 ? emptyStringType : type.flags & 8 ? zeroType : type.flags & 64 ? zeroBigIntType : type === regularFalseType || type === falseType || type.flags & (16384 | 32768 | 65536 | 3) || type.flags & 128 && type.value === \"\" || type.flags & 256 && type.value === 0 || type.flags & 2048 && isZeroBigInt(type) ? type : neverType;\n    }\n    function getNullableType(type, flags) {\n      const missing = flags & ~type.flags & (32768 | 65536);\n      return missing === 0 ? type : missing === 32768 ? getUnionType([type, undefinedType]) : missing === 65536 ? getUnionType([type, nullType]) : getUnionType([type, undefinedType, nullType]);\n    }\n    function getOptionalType(type, isProperty = false) {\n      Debug.assert(strictNullChecks);\n      const missingOrUndefined = isProperty ? undefinedOrMissingType : undefinedType;\n      return type === missingOrUndefined || type.flags & 1048576 && type.types[0] === missingOrUndefined ? type : getUnionType([type, missingOrUndefined]);\n    }\n    function getGlobalNonNullableTypeInstantiation(type) {\n      if (!deferredGlobalNonNullableTypeAlias) {\n        deferredGlobalNonNullableTypeAlias = getGlobalSymbol(\"NonNullable\", 524288, void 0) || unknownSymbol;\n      }\n      return deferredGlobalNonNullableTypeAlias !== unknownSymbol ? getTypeAliasInstantiation(deferredGlobalNonNullableTypeAlias, [type]) : getIntersectionType([type, emptyObjectType]);\n    }\n    function getNonNullableType(type) {\n      return strictNullChecks ? getAdjustedTypeWithFacts(type, 2097152) : type;\n    }\n    function addOptionalTypeMarker(type) {\n      return strictNullChecks ? getUnionType([type, optionalType]) : type;\n    }\n    function removeOptionalTypeMarker(type) {\n      return strictNullChecks ? removeType(type, optionalType) : type;\n    }\n    function propagateOptionalTypeMarker(type, node, wasOptional) {\n      return wasOptional ? isOutermostOptionalChain(node) ? getOptionalType(type) : addOptionalTypeMarker(type) : type;\n    }\n    function getOptionalExpressionType(exprType, expression) {\n      return isExpressionOfOptionalChainRoot(expression) ? getNonNullableType(exprType) : isOptionalChain(expression) ? removeOptionalTypeMarker(exprType) : exprType;\n    }\n    function removeMissingType(type, isOptional) {\n      return exactOptionalPropertyTypes && isOptional ? removeType(type, missingType) : type;\n    }\n    function containsMissingType(type) {\n      return type === missingType || !!(type.flags & 1048576) && type.types[0] === missingType;\n    }\n    function removeMissingOrUndefinedType(type) {\n      return exactOptionalPropertyTypes ? removeType(type, missingType) : getTypeWithFacts(type, 524288);\n    }\n    function isCoercibleUnderDoubleEquals(source, target) {\n      return (source.flags & (8 | 4 | 512)) !== 0 && (target.flags & (8 | 4 | 16)) !== 0;\n    }\n    function isObjectTypeWithInferableIndex(type) {\n      const objectFlags = getObjectFlags(type);\n      return type.flags & 2097152 ? every(type.types, isObjectTypeWithInferableIndex) : !!(type.symbol && (type.symbol.flags & (4096 | 2048 | 384 | 512)) !== 0 && !(type.symbol.flags & 32) && !typeHasCallOrConstructSignatures(type)) || !!(objectFlags & 4194304) || !!(objectFlags & 1024 && isObjectTypeWithInferableIndex(type.source));\n    }\n    function createSymbolWithType(source, type) {\n      const symbol = createSymbol(source.flags, source.escapedName, getCheckFlags(source) & 8);\n      symbol.declarations = source.declarations;\n      symbol.parent = source.parent;\n      symbol.links.type = type;\n      symbol.links.target = source;\n      if (source.valueDeclaration) {\n        symbol.valueDeclaration = source.valueDeclaration;\n      }\n      const nameType = getSymbolLinks(source).nameType;\n      if (nameType) {\n        symbol.links.nameType = nameType;\n      }\n      return symbol;\n    }\n    function transformTypeOfMembers(type, f) {\n      const members = createSymbolTable();\n      for (const property of getPropertiesOfObjectType(type)) {\n        const original = getTypeOfSymbol(property);\n        const updated = f(original);\n        members.set(property.escapedName, updated === original ? property : createSymbolWithType(property, updated));\n      }\n      return members;\n    }\n    function getRegularTypeOfObjectLiteral(type) {\n      if (!(isObjectLiteralType2(type) && getObjectFlags(type) & 8192)) {\n        return type;\n      }\n      const regularType = type.regularType;\n      if (regularType) {\n        return regularType;\n      }\n      const resolved = type;\n      const members = transformTypeOfMembers(type, getRegularTypeOfObjectLiteral);\n      const regularNew = createAnonymousType(resolved.symbol, members, resolved.callSignatures, resolved.constructSignatures, resolved.indexInfos);\n      regularNew.flags = resolved.flags;\n      regularNew.objectFlags |= resolved.objectFlags & ~8192;\n      type.regularType = regularNew;\n      return regularNew;\n    }\n    function createWideningContext(parent2, propertyName, siblings) {\n      return { parent: parent2, propertyName, siblings, resolvedProperties: void 0 };\n    }\n    function getSiblingsOfContext(context) {\n      if (!context.siblings) {\n        const siblings = [];\n        for (const type of getSiblingsOfContext(context.parent)) {\n          if (isObjectLiteralType2(type)) {\n            const prop = getPropertyOfObjectType(type, context.propertyName);\n            if (prop) {\n              forEachType(getTypeOfSymbol(prop), (t) => {\n                siblings.push(t);\n              });\n            }\n          }\n        }\n        context.siblings = siblings;\n      }\n      return context.siblings;\n    }\n    function getPropertiesOfContext(context) {\n      if (!context.resolvedProperties) {\n        const names = /* @__PURE__ */ new Map();\n        for (const t of getSiblingsOfContext(context)) {\n          if (isObjectLiteralType2(t) && !(getObjectFlags(t) & 2097152)) {\n            for (const prop of getPropertiesOfType(t)) {\n              names.set(prop.escapedName, prop);\n            }\n          }\n        }\n        context.resolvedProperties = arrayFrom(names.values());\n      }\n      return context.resolvedProperties;\n    }\n    function getWidenedProperty(prop, context) {\n      if (!(prop.flags & 4)) {\n        return prop;\n      }\n      const original = getTypeOfSymbol(prop);\n      const propContext = context && createWideningContext(context, prop.escapedName, void 0);\n      const widened = getWidenedTypeWithContext(original, propContext);\n      return widened === original ? prop : createSymbolWithType(prop, widened);\n    }\n    function getUndefinedProperty(prop) {\n      const cached = undefinedProperties.get(prop.escapedName);\n      if (cached) {\n        return cached;\n      }\n      const result = createSymbolWithType(prop, undefinedOrMissingType);\n      result.flags |= 16777216;\n      undefinedProperties.set(prop.escapedName, result);\n      return result;\n    }\n    function getWidenedTypeOfObjectLiteral(type, context) {\n      const members = createSymbolTable();\n      for (const prop of getPropertiesOfObjectType(type)) {\n        members.set(prop.escapedName, getWidenedProperty(prop, context));\n      }\n      if (context) {\n        for (const prop of getPropertiesOfContext(context)) {\n          if (!members.has(prop.escapedName)) {\n            members.set(prop.escapedName, getUndefinedProperty(prop));\n          }\n        }\n      }\n      const result = createAnonymousType(type.symbol, members, emptyArray, emptyArray, sameMap(getIndexInfosOfType(type), (info) => createIndexInfo(info.keyType, getWidenedType(info.type), info.isReadonly)));\n      result.objectFlags |= getObjectFlags(type) & (4096 | 262144);\n      return result;\n    }\n    function getWidenedType(type) {\n      return getWidenedTypeWithContext(type, void 0);\n    }\n    function getWidenedTypeWithContext(type, context) {\n      if (getObjectFlags(type) & 196608) {\n        if (context === void 0 && type.widened) {\n          return type.widened;\n        }\n        let result;\n        if (type.flags & (1 | 98304)) {\n          result = anyType;\n        } else if (isObjectLiteralType2(type)) {\n          result = getWidenedTypeOfObjectLiteral(type, context);\n        } else if (type.flags & 1048576) {\n          const unionContext = context || createWideningContext(void 0, void 0, type.types);\n          const widenedTypes = sameMap(type.types, (t) => t.flags & 98304 ? t : getWidenedTypeWithContext(t, unionContext));\n          result = getUnionType(widenedTypes, some(widenedTypes, isEmptyObjectType) ? 2 : 1);\n        } else if (type.flags & 2097152) {\n          result = getIntersectionType(sameMap(type.types, getWidenedType));\n        } else if (isArrayOrTupleType(type)) {\n          result = createTypeReference(type.target, sameMap(getTypeArguments(type), getWidenedType));\n        }\n        if (result && context === void 0) {\n          type.widened = result;\n        }\n        return result || type;\n      }\n      return type;\n    }\n    function reportWideningErrorsInType(type) {\n      let errorReported = false;\n      if (getObjectFlags(type) & 65536) {\n        if (type.flags & 1048576) {\n          if (some(type.types, isEmptyObjectType)) {\n            errorReported = true;\n          } else {\n            for (const t of type.types) {\n              if (reportWideningErrorsInType(t)) {\n                errorReported = true;\n              }\n            }\n          }\n        }\n        if (isArrayOrTupleType(type)) {\n          for (const t of getTypeArguments(type)) {\n            if (reportWideningErrorsInType(t)) {\n              errorReported = true;\n            }\n          }\n        }\n        if (isObjectLiteralType2(type)) {\n          for (const p of getPropertiesOfObjectType(type)) {\n            const t = getTypeOfSymbol(p);\n            if (getObjectFlags(t) & 65536) {\n              if (!reportWideningErrorsInType(t)) {\n                error(p.valueDeclaration, Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type, symbolToString(p), typeToString(getWidenedType(t)));\n              }\n              errorReported = true;\n            }\n          }\n        }\n      }\n      return errorReported;\n    }\n    function reportImplicitAny(declaration, type, wideningKind) {\n      const typeAsString = typeToString(getWidenedType(type));\n      if (isInJSFile(declaration) && !isCheckJsEnabledForFile(getSourceFileOfNode(declaration), compilerOptions)) {\n        return;\n      }\n      let diagnostic;\n      switch (declaration.kind) {\n        case 223:\n        case 169:\n        case 168:\n          diagnostic = noImplicitAny ? Diagnostics.Member_0_implicitly_has_an_1_type : Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;\n          break;\n        case 166:\n          const param = declaration;\n          if (isIdentifier(param.name)) {\n            const originalKeywordKind = identifierToKeywordKind(param.name);\n            if ((isCallSignatureDeclaration(param.parent) || isMethodSignature(param.parent) || isFunctionTypeNode(param.parent)) && param.parent.parameters.indexOf(param) > -1 && (resolveName(param, param.name.escapedText, 788968, void 0, param.name.escapedText, true) || originalKeywordKind && isTypeNodeKind(originalKeywordKind))) {\n              const newName = \"arg\" + param.parent.parameters.indexOf(param);\n              const typeName = declarationNameToString(param.name) + (param.dotDotDotToken ? \"[]\" : \"\");\n              errorOrSuggestion(noImplicitAny, declaration, Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1, newName, typeName);\n              return;\n            }\n          }\n          diagnostic = declaration.dotDotDotToken ? noImplicitAny ? Diagnostics.Rest_parameter_0_implicitly_has_an_any_type : Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage : noImplicitAny ? Diagnostics.Parameter_0_implicitly_has_an_1_type : Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;\n          break;\n        case 205:\n          diagnostic = Diagnostics.Binding_element_0_implicitly_has_an_1_type;\n          if (!noImplicitAny) {\n            return;\n          }\n          break;\n        case 320:\n          error(declaration, Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, typeAsString);\n          return;\n        case 326:\n          if (noImplicitAny && isJSDocOverloadTag(declaration.parent)) {\n            error(declaration.parent.tagName, Diagnostics.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation, typeAsString);\n          }\n          return;\n        case 259:\n        case 171:\n        case 170:\n        case 174:\n        case 175:\n        case 215:\n        case 216:\n          if (noImplicitAny && !declaration.name) {\n            if (wideningKind === 3) {\n              error(declaration, Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation, typeAsString);\n            } else {\n              error(declaration, Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, typeAsString);\n            }\n            return;\n          }\n          diagnostic = !noImplicitAny ? Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage : wideningKind === 3 ? Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type : Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type;\n          break;\n        case 197:\n          if (noImplicitAny) {\n            error(declaration, Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type);\n          }\n          return;\n        default:\n          diagnostic = noImplicitAny ? Diagnostics.Variable_0_implicitly_has_an_1_type : Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;\n      }\n      errorOrSuggestion(noImplicitAny, declaration, diagnostic, declarationNameToString(getNameOfDeclaration(declaration)), typeAsString);\n    }\n    function reportErrorsFromWidening(declaration, type, wideningKind) {\n      addLazyDiagnostic(() => {\n        if (noImplicitAny && getObjectFlags(type) & 65536 && (!wideningKind || !getContextualSignatureForFunctionLikeDeclaration(declaration))) {\n          if (!reportWideningErrorsInType(type)) {\n            reportImplicitAny(declaration, type, wideningKind);\n          }\n        }\n      });\n    }\n    function applyToParameterTypes(source, target, callback) {\n      const sourceCount = getParameterCount(source);\n      const targetCount = getParameterCount(target);\n      const sourceRestType = getEffectiveRestType(source);\n      const targetRestType = getEffectiveRestType(target);\n      const targetNonRestCount = targetRestType ? targetCount - 1 : targetCount;\n      const paramCount = sourceRestType ? targetNonRestCount : Math.min(sourceCount, targetNonRestCount);\n      const sourceThisType = getThisTypeOfSignature(source);\n      if (sourceThisType) {\n        const targetThisType = getThisTypeOfSignature(target);\n        if (targetThisType) {\n          callback(sourceThisType, targetThisType);\n        }\n      }\n      for (let i = 0; i < paramCount; i++) {\n        callback(getTypeAtPosition(source, i), getTypeAtPosition(target, i));\n      }\n      if (targetRestType) {\n        callback(getRestTypeAtPosition(source, paramCount), targetRestType);\n      }\n    }\n    function applyToReturnTypes(source, target, callback) {\n      const sourceTypePredicate = getTypePredicateOfSignature(source);\n      const targetTypePredicate = getTypePredicateOfSignature(target);\n      if (sourceTypePredicate && targetTypePredicate && typePredicateKindsMatch(sourceTypePredicate, targetTypePredicate) && sourceTypePredicate.type && targetTypePredicate.type) {\n        callback(sourceTypePredicate.type, targetTypePredicate.type);\n      } else {\n        callback(getReturnTypeOfSignature(source), getReturnTypeOfSignature(target));\n      }\n    }\n    function createInferenceContext(typeParameters, signature, flags, compareTypes) {\n      return createInferenceContextWorker(typeParameters.map(createInferenceInfo), signature, flags, compareTypes || compareTypesAssignable);\n    }\n    function cloneInferenceContext(context, extraFlags = 0) {\n      return context && createInferenceContextWorker(map(context.inferences, cloneInferenceInfo), context.signature, context.flags | extraFlags, context.compareTypes);\n    }\n    function createInferenceContextWorker(inferences, signature, flags, compareTypes) {\n      const context = {\n        inferences,\n        signature,\n        flags,\n        compareTypes,\n        mapper: reportUnmeasurableMapper,\n        nonFixingMapper: reportUnmeasurableMapper\n      };\n      context.mapper = makeFixingMapperForContext(context);\n      context.nonFixingMapper = makeNonFixingMapperForContext(context);\n      return context;\n    }\n    function makeFixingMapperForContext(context) {\n      return makeDeferredTypeMapper(map(context.inferences, (i) => i.typeParameter), map(context.inferences, (inference, i) => () => {\n        if (!inference.isFixed) {\n          inferFromIntraExpressionSites(context);\n          clearCachedInferences(context.inferences);\n          inference.isFixed = true;\n        }\n        return getInferredType(context, i);\n      }));\n    }\n    function makeNonFixingMapperForContext(context) {\n      return makeDeferredTypeMapper(map(context.inferences, (i) => i.typeParameter), map(context.inferences, (_, i) => () => {\n        return getInferredType(context, i);\n      }));\n    }\n    function clearCachedInferences(inferences) {\n      for (const inference of inferences) {\n        if (!inference.isFixed) {\n          inference.inferredType = void 0;\n        }\n      }\n    }\n    function addIntraExpressionInferenceSite(context, node, type) {\n      var _a2;\n      ((_a2 = context.intraExpressionInferenceSites) != null ? _a2 : context.intraExpressionInferenceSites = []).push({ node, type });\n    }\n    function inferFromIntraExpressionSites(context) {\n      if (context.intraExpressionInferenceSites) {\n        for (const { node, type } of context.intraExpressionInferenceSites) {\n          const contextualType = node.kind === 171 ? getContextualTypeForObjectLiteralMethod(node, 2) : getContextualType2(node, 2);\n          if (contextualType) {\n            inferTypes(context.inferences, type, contextualType);\n          }\n        }\n        context.intraExpressionInferenceSites = void 0;\n      }\n    }\n    function createInferenceInfo(typeParameter) {\n      return {\n        typeParameter,\n        candidates: void 0,\n        contraCandidates: void 0,\n        inferredType: void 0,\n        priority: void 0,\n        topLevel: true,\n        isFixed: false,\n        impliedArity: void 0\n      };\n    }\n    function cloneInferenceInfo(inference) {\n      return {\n        typeParameter: inference.typeParameter,\n        candidates: inference.candidates && inference.candidates.slice(),\n        contraCandidates: inference.contraCandidates && inference.contraCandidates.slice(),\n        inferredType: inference.inferredType,\n        priority: inference.priority,\n        topLevel: inference.topLevel,\n        isFixed: inference.isFixed,\n        impliedArity: inference.impliedArity\n      };\n    }\n    function cloneInferredPartOfContext(context) {\n      const inferences = filter(context.inferences, hasInferenceCandidates);\n      return inferences.length ? createInferenceContextWorker(map(inferences, cloneInferenceInfo), context.signature, context.flags, context.compareTypes) : void 0;\n    }\n    function getMapperFromContext(context) {\n      return context && context.mapper;\n    }\n    function couldContainTypeVariables(type) {\n      const objectFlags = getObjectFlags(type);\n      if (objectFlags & 524288) {\n        return !!(objectFlags & 1048576);\n      }\n      const result = !!(type.flags & 465829888 || type.flags & 524288 && !isNonGenericTopLevelType(type) && (objectFlags & 4 && (type.node || forEach(getTypeArguments(type), couldContainTypeVariables)) || objectFlags & 16 && type.symbol && type.symbol.flags & (16 | 8192 | 32 | 2048 | 4096) && type.symbol.declarations || objectFlags & (32 | 1024 | 4194304 | 8388608)) || type.flags & 3145728 && !(type.flags & 1024) && !isNonGenericTopLevelType(type) && some(type.types, couldContainTypeVariables));\n      if (type.flags & 3899393) {\n        type.objectFlags |= 524288 | (result ? 1048576 : 0);\n      }\n      return result;\n    }\n    function isNonGenericTopLevelType(type) {\n      if (type.aliasSymbol && !type.aliasTypeArguments) {\n        const declaration = getDeclarationOfKind(type.aliasSymbol, 262);\n        return !!(declaration && findAncestor(declaration.parent, (n) => n.kind === 308 ? true : n.kind === 264 ? false : \"quit\"));\n      }\n      return false;\n    }\n    function isTypeParameterAtTopLevel(type, tp, depth = 0) {\n      return !!(type === tp || type.flags & 3145728 && some(type.types, (t) => isTypeParameterAtTopLevel(t, tp, depth)) || depth < 3 && type.flags & 16777216 && (isTypeParameterAtTopLevel(getTrueTypeFromConditionalType(type), tp, depth + 1) || isTypeParameterAtTopLevel(getFalseTypeFromConditionalType(type), tp, depth + 1)));\n    }\n    function isTypeParameterAtTopLevelInReturnType(signature, typeParameter) {\n      const typePredicate = getTypePredicateOfSignature(signature);\n      return typePredicate ? !!typePredicate.type && isTypeParameterAtTopLevel(typePredicate.type, typeParameter) : isTypeParameterAtTopLevel(getReturnTypeOfSignature(signature), typeParameter);\n    }\n    function createEmptyObjectTypeFromStringLiteral(type) {\n      const members = createSymbolTable();\n      forEachType(type, (t) => {\n        if (!(t.flags & 128)) {\n          return;\n        }\n        const name = escapeLeadingUnderscores(t.value);\n        const literalProp = createSymbol(4, name);\n        literalProp.links.type = anyType;\n        if (t.symbol) {\n          literalProp.declarations = t.symbol.declarations;\n          literalProp.valueDeclaration = t.symbol.valueDeclaration;\n        }\n        members.set(name, literalProp);\n      });\n      const indexInfos = type.flags & 4 ? [createIndexInfo(stringType, emptyObjectType, false)] : emptyArray;\n      return createAnonymousType(void 0, members, emptyArray, emptyArray, indexInfos);\n    }\n    function inferTypeForHomomorphicMappedType(source, target, constraint) {\n      if (inInferTypeForHomomorphicMappedType) {\n        return void 0;\n      }\n      const key = source.id + \",\" + target.id + \",\" + constraint.id;\n      if (reverseMappedCache.has(key)) {\n        return reverseMappedCache.get(key);\n      }\n      inInferTypeForHomomorphicMappedType = true;\n      const type = createReverseMappedType(source, target, constraint);\n      inInferTypeForHomomorphicMappedType = false;\n      reverseMappedCache.set(key, type);\n      return type;\n    }\n    function isPartiallyInferableType(type) {\n      return !(getObjectFlags(type) & 262144) || isObjectLiteralType2(type) && some(getPropertiesOfType(type), (prop) => isPartiallyInferableType(getTypeOfSymbol(prop))) || isTupleType(type) && some(getTypeArguments(type), isPartiallyInferableType);\n    }\n    function createReverseMappedType(source, target, constraint) {\n      if (!(getIndexInfoOfType(source, stringType) || getPropertiesOfType(source).length !== 0 && isPartiallyInferableType(source))) {\n        return void 0;\n      }\n      if (isArrayType(source)) {\n        return createArrayType(inferReverseMappedType(getTypeArguments(source)[0], target, constraint), isReadonlyArrayType(source));\n      }\n      if (isTupleType(source)) {\n        const elementTypes = map(getTypeArguments(source), (t) => inferReverseMappedType(t, target, constraint));\n        const elementFlags = getMappedTypeModifiers(target) & 4 ? sameMap(source.target.elementFlags, (f) => f & 2 ? 1 : f) : source.target.elementFlags;\n        return createTupleType(elementTypes, elementFlags, source.target.readonly, source.target.labeledElementDeclarations);\n      }\n      const reversed = createObjectType(1024 | 16, void 0);\n      reversed.source = source;\n      reversed.mappedType = target;\n      reversed.constraintType = constraint;\n      return reversed;\n    }\n    function getTypeOfReverseMappedSymbol(symbol) {\n      const links = getSymbolLinks(symbol);\n      if (!links.type) {\n        links.type = inferReverseMappedType(symbol.links.propertyType, symbol.links.mappedType, symbol.links.constraintType);\n      }\n      return links.type;\n    }\n    function inferReverseMappedType(sourceType, target, constraint) {\n      const typeParameter = getIndexedAccessType(constraint.type, getTypeParameterFromMappedType(target));\n      const templateType = getTemplateTypeFromMappedType(target);\n      const inference = createInferenceInfo(typeParameter);\n      inferTypes([inference], sourceType, templateType);\n      return getTypeFromInference(inference) || unknownType;\n    }\n    function* getUnmatchedProperties(source, target, requireOptionalProperties, matchDiscriminantProperties) {\n      const properties = getPropertiesOfType(target);\n      for (const targetProp of properties) {\n        if (isStaticPrivateIdentifierProperty(targetProp)) {\n          continue;\n        }\n        if (requireOptionalProperties || !(targetProp.flags & 16777216 || getCheckFlags(targetProp) & 48)) {\n          const sourceProp = getPropertyOfType(source, targetProp.escapedName);\n          if (!sourceProp) {\n            yield targetProp;\n          } else if (matchDiscriminantProperties) {\n            const targetType = getTypeOfSymbol(targetProp);\n            if (targetType.flags & 109472) {\n              const sourceType = getTypeOfSymbol(sourceProp);\n              if (!(sourceType.flags & 1 || getRegularTypeOfLiteralType(sourceType) === getRegularTypeOfLiteralType(targetType))) {\n                yield targetProp;\n              }\n            }\n          }\n        }\n      }\n    }\n    function getUnmatchedProperty(source, target, requireOptionalProperties, matchDiscriminantProperties) {\n      return firstOrUndefinedIterator(getUnmatchedProperties(source, target, requireOptionalProperties, matchDiscriminantProperties));\n    }\n    function tupleTypesDefinitelyUnrelated(source, target) {\n      return !(target.target.combinedFlags & 8) && target.target.minLength > source.target.minLength || !target.target.hasRestElement && (source.target.hasRestElement || target.target.fixedLength < source.target.fixedLength);\n    }\n    function typesDefinitelyUnrelated(source, target) {\n      return isTupleType(source) && isTupleType(target) ? tupleTypesDefinitelyUnrelated(source, target) : !!getUnmatchedProperty(source, target, false, true) && !!getUnmatchedProperty(target, source, false, false);\n    }\n    function getTypeFromInference(inference) {\n      return inference.candidates ? getUnionType(inference.candidates, 2) : inference.contraCandidates ? getIntersectionType(inference.contraCandidates) : void 0;\n    }\n    function hasSkipDirectInferenceFlag(node) {\n      return !!getNodeLinks(node).skipDirectInference;\n    }\n    function isFromInferenceBlockedSource(type) {\n      return !!(type.symbol && some(type.symbol.declarations, hasSkipDirectInferenceFlag));\n    }\n    function templateLiteralTypesDefinitelyUnrelated(source, target) {\n      const sourceStart = source.texts[0];\n      const targetStart = target.texts[0];\n      const sourceEnd = source.texts[source.texts.length - 1];\n      const targetEnd = target.texts[target.texts.length - 1];\n      const startLen = Math.min(sourceStart.length, targetStart.length);\n      const endLen = Math.min(sourceEnd.length, targetEnd.length);\n      return sourceStart.slice(0, startLen) !== targetStart.slice(0, startLen) || sourceEnd.slice(sourceEnd.length - endLen) !== targetEnd.slice(targetEnd.length - endLen);\n    }\n    function isValidNumberString(s, roundTripOnly) {\n      if (s === \"\")\n        return false;\n      const n = +s;\n      return isFinite(n) && (!roundTripOnly || \"\" + n === s);\n    }\n    function parseBigIntLiteralType(text) {\n      return getBigIntLiteralType(parseValidBigInt(text));\n    }\n    function isMemberOfStringMapping(source, target) {\n      if (target.flags & 1) {\n        return true;\n      }\n      if (target.flags & (4 | 134217728)) {\n        return isTypeAssignableTo(source, target);\n      }\n      if (target.flags & 268435456) {\n        const mappingStack = [];\n        while (target.flags & 268435456) {\n          mappingStack.unshift(target.symbol);\n          target = target.type;\n        }\n        const mappedSource = reduceLeft(mappingStack, (memo, value) => getStringMappingType(value, memo), source);\n        return mappedSource === source && isMemberOfStringMapping(source, target);\n      }\n      return false;\n    }\n    function isValidTypeForTemplateLiteralPlaceholder(source, target) {\n      if (source === target || target.flags & (1 | 4)) {\n        return true;\n      }\n      if (source.flags & 128) {\n        const value = source.value;\n        return !!(target.flags & 8 && isValidNumberString(value, false) || target.flags & 64 && isValidBigIntString(value, false) || target.flags & (512 | 98304) && value === target.intrinsicName || target.flags & 268435456 && isMemberOfStringMapping(getStringLiteralType(value), target));\n      }\n      if (source.flags & 134217728) {\n        const texts = source.texts;\n        return texts.length === 2 && texts[0] === \"\" && texts[1] === \"\" && isTypeAssignableTo(source.types[0], target);\n      }\n      return isTypeAssignableTo(source, target);\n    }\n    function inferTypesFromTemplateLiteralType(source, target) {\n      return source.flags & 128 ? inferFromLiteralPartsToTemplateLiteral([source.value], emptyArray, target) : source.flags & 134217728 ? arraysEqual(source.texts, target.texts) ? map(source.types, getStringLikeTypeForType) : inferFromLiteralPartsToTemplateLiteral(source.texts, source.types, target) : void 0;\n    }\n    function isTypeMatchedByTemplateLiteralType(source, target) {\n      const inferences = inferTypesFromTemplateLiteralType(source, target);\n      return !!inferences && every(inferences, (r, i) => isValidTypeForTemplateLiteralPlaceholder(r, target.types[i]));\n    }\n    function getStringLikeTypeForType(type) {\n      return type.flags & (1 | 402653316) ? type : getTemplateLiteralType([\"\", \"\"], [type]);\n    }\n    function inferFromLiteralPartsToTemplateLiteral(sourceTexts, sourceTypes, target) {\n      const lastSourceIndex = sourceTexts.length - 1;\n      const sourceStartText = sourceTexts[0];\n      const sourceEndText = sourceTexts[lastSourceIndex];\n      const targetTexts = target.texts;\n      const lastTargetIndex = targetTexts.length - 1;\n      const targetStartText = targetTexts[0];\n      const targetEndText = targetTexts[lastTargetIndex];\n      if (lastSourceIndex === 0 && sourceStartText.length < targetStartText.length + targetEndText.length || !sourceStartText.startsWith(targetStartText) || !sourceEndText.endsWith(targetEndText))\n        return void 0;\n      const remainingEndText = sourceEndText.slice(0, sourceEndText.length - targetEndText.length);\n      const matches = [];\n      let seg = 0;\n      let pos = targetStartText.length;\n      for (let i = 1; i < lastTargetIndex; i++) {\n        const delim = targetTexts[i];\n        if (delim.length > 0) {\n          let s = seg;\n          let p = pos;\n          while (true) {\n            p = getSourceText(s).indexOf(delim, p);\n            if (p >= 0)\n              break;\n            s++;\n            if (s === sourceTexts.length)\n              return void 0;\n            p = 0;\n          }\n          addMatch(s, p);\n          pos += delim.length;\n        } else if (pos < getSourceText(seg).length) {\n          addMatch(seg, pos + 1);\n        } else if (seg < lastSourceIndex) {\n          addMatch(seg + 1, 0);\n        } else {\n          return void 0;\n        }\n      }\n      addMatch(lastSourceIndex, getSourceText(lastSourceIndex).length);\n      return matches;\n      function getSourceText(index) {\n        return index < lastSourceIndex ? sourceTexts[index] : remainingEndText;\n      }\n      function addMatch(s, p) {\n        const matchType = s === seg ? getStringLiteralType(getSourceText(s).slice(pos, p)) : getTemplateLiteralType([sourceTexts[seg].slice(pos), ...sourceTexts.slice(seg + 1, s), getSourceText(s).slice(0, p)], sourceTypes.slice(seg, s));\n        matches.push(matchType);\n        seg = s;\n        pos = p;\n      }\n    }\n    function inferTypes(inferences, originalSource, originalTarget, priority = 0, contravariant = false) {\n      let bivariant = false;\n      let propagationType;\n      let inferencePriority = 2048;\n      let allowComplexConstraintInference = true;\n      let visited;\n      let sourceStack;\n      let targetStack;\n      let expandingFlags = 0;\n      inferFromTypes(originalSource, originalTarget);\n      function inferFromTypes(source, target) {\n        if (!couldContainTypeVariables(target)) {\n          return;\n        }\n        if (source === wildcardType) {\n          const savePropagationType = propagationType;\n          propagationType = source;\n          inferFromTypes(target, target);\n          propagationType = savePropagationType;\n          return;\n        }\n        if (source.aliasSymbol && source.aliasSymbol === target.aliasSymbol) {\n          if (source.aliasTypeArguments) {\n            const params = getSymbolLinks(source.aliasSymbol).typeParameters;\n            const minParams = getMinTypeArgumentCount(params);\n            const sourceTypes = fillMissingTypeArguments(source.aliasTypeArguments, params, minParams, isInJSFile(source.aliasSymbol.valueDeclaration));\n            const targetTypes = fillMissingTypeArguments(target.aliasTypeArguments, params, minParams, isInJSFile(source.aliasSymbol.valueDeclaration));\n            inferFromTypeArguments(sourceTypes, targetTypes, getAliasVariances(source.aliasSymbol));\n          }\n          return;\n        }\n        if (source === target && source.flags & 3145728) {\n          for (const t of source.types) {\n            inferFromTypes(t, t);\n          }\n          return;\n        }\n        if (target.flags & 1048576) {\n          const [tempSources, tempTargets] = inferFromMatchingTypes(source.flags & 1048576 ? source.types : [source], target.types, isTypeOrBaseIdenticalTo);\n          const [sources, targets] = inferFromMatchingTypes(tempSources, tempTargets, isTypeCloselyMatchedBy);\n          if (targets.length === 0) {\n            return;\n          }\n          target = getUnionType(targets);\n          if (sources.length === 0) {\n            inferWithPriority(source, target, 1);\n            return;\n          }\n          source = getUnionType(sources);\n        } else if (target.flags & 2097152 && !every(target.types, isNonGenericObjectType)) {\n          if (!(source.flags & 1048576)) {\n            const [sources, targets] = inferFromMatchingTypes(source.flags & 2097152 ? source.types : [source], target.types, isTypeIdenticalTo);\n            if (sources.length === 0 || targets.length === 0) {\n              return;\n            }\n            source = getIntersectionType(sources);\n            target = getIntersectionType(targets);\n          }\n        } else if (target.flags & (8388608 | 33554432)) {\n          target = getActualTypeVariable(target);\n        }\n        if (target.flags & 8650752) {\n          if (isFromInferenceBlockedSource(source)) {\n            return;\n          }\n          const inference = getInferenceInfoForType(target);\n          if (inference) {\n            if (getObjectFlags(source) & 262144 || source === nonInferrableAnyType) {\n              return;\n            }\n            if (!inference.isFixed) {\n              if (inference.priority === void 0 || priority < inference.priority) {\n                inference.candidates = void 0;\n                inference.contraCandidates = void 0;\n                inference.topLevel = true;\n                inference.priority = priority;\n              }\n              if (priority === inference.priority) {\n                const candidate = propagationType || source;\n                if (contravariant && !bivariant) {\n                  if (!contains(inference.contraCandidates, candidate)) {\n                    inference.contraCandidates = append(inference.contraCandidates, candidate);\n                    clearCachedInferences(inferences);\n                  }\n                } else if (!contains(inference.candidates, candidate)) {\n                  inference.candidates = append(inference.candidates, candidate);\n                  clearCachedInferences(inferences);\n                }\n              }\n              if (!(priority & 128) && target.flags & 262144 && inference.topLevel && !isTypeParameterAtTopLevel(originalTarget, target)) {\n                inference.topLevel = false;\n                clearCachedInferences(inferences);\n              }\n            }\n            inferencePriority = Math.min(inferencePriority, priority);\n            return;\n          }\n          const simplified = getSimplifiedType(target, false);\n          if (simplified !== target) {\n            inferFromTypes(source, simplified);\n          } else if (target.flags & 8388608) {\n            const indexType = getSimplifiedType(target.indexType, false);\n            if (indexType.flags & 465829888) {\n              const simplified2 = distributeIndexOverObjectType(getSimplifiedType(target.objectType, false), indexType, false);\n              if (simplified2 && simplified2 !== target) {\n                inferFromTypes(source, simplified2);\n              }\n            }\n          }\n        }\n        if (getObjectFlags(source) & 4 && getObjectFlags(target) & 4 && (source.target === target.target || isArrayType(source) && isArrayType(target)) && !(source.node && target.node)) {\n          inferFromTypeArguments(getTypeArguments(source), getTypeArguments(target), getVariances(source.target));\n        } else if (source.flags & 4194304 && target.flags & 4194304) {\n          inferFromContravariantTypes(source.type, target.type);\n        } else if ((isLiteralType(source) || source.flags & 4) && target.flags & 4194304) {\n          const empty = createEmptyObjectTypeFromStringLiteral(source);\n          inferFromContravariantTypesWithPriority(empty, target.type, 256);\n        } else if (source.flags & 8388608 && target.flags & 8388608) {\n          inferFromTypes(source.objectType, target.objectType);\n          inferFromTypes(source.indexType, target.indexType);\n        } else if (source.flags & 268435456 && target.flags & 268435456) {\n          if (source.symbol === target.symbol) {\n            inferFromTypes(source.type, target.type);\n          }\n        } else if (source.flags & 33554432) {\n          inferFromTypes(source.baseType, target);\n          inferWithPriority(getSubstitutionIntersection(source), target, 4);\n        } else if (target.flags & 16777216) {\n          invokeOnce(source, target, inferToConditionalType);\n        } else if (target.flags & 3145728) {\n          inferToMultipleTypes(source, target.types, target.flags);\n        } else if (source.flags & 1048576) {\n          const sourceTypes = source.types;\n          for (const sourceType of sourceTypes) {\n            inferFromTypes(sourceType, target);\n          }\n        } else if (target.flags & 134217728) {\n          inferToTemplateLiteralType(source, target);\n        } else {\n          source = getReducedType(source);\n          if (!(priority & 512 && source.flags & (2097152 | 465829888))) {\n            const apparentSource = getApparentType(source);\n            if (apparentSource !== source && allowComplexConstraintInference && !(apparentSource.flags & (524288 | 2097152))) {\n              allowComplexConstraintInference = false;\n              return inferFromTypes(apparentSource, target);\n            }\n            source = apparentSource;\n          }\n          if (source.flags & (524288 | 2097152)) {\n            invokeOnce(source, target, inferFromObjectTypes);\n          }\n        }\n      }\n      function inferWithPriority(source, target, newPriority) {\n        const savePriority = priority;\n        priority |= newPriority;\n        inferFromTypes(source, target);\n        priority = savePriority;\n      }\n      function inferFromContravariantTypesWithPriority(source, target, newPriority) {\n        const savePriority = priority;\n        priority |= newPriority;\n        inferFromContravariantTypes(source, target);\n        priority = savePriority;\n      }\n      function inferToMultipleTypesWithPriority(source, targets, targetFlags, newPriority) {\n        const savePriority = priority;\n        priority |= newPriority;\n        inferToMultipleTypes(source, targets, targetFlags);\n        priority = savePriority;\n      }\n      function invokeOnce(source, target, action) {\n        const key = source.id + \",\" + target.id;\n        const status = visited && visited.get(key);\n        if (status !== void 0) {\n          inferencePriority = Math.min(inferencePriority, status);\n          return;\n        }\n        (visited || (visited = /* @__PURE__ */ new Map())).set(key, -1);\n        const saveInferencePriority = inferencePriority;\n        inferencePriority = 2048;\n        const saveExpandingFlags = expandingFlags;\n        const sourceIdentity = getRecursionIdentity(source);\n        const targetIdentity = getRecursionIdentity(target);\n        if (contains(sourceStack, sourceIdentity))\n          expandingFlags |= 1;\n        if (contains(targetStack, targetIdentity))\n          expandingFlags |= 2;\n        if (expandingFlags !== 3) {\n          (sourceStack || (sourceStack = [])).push(sourceIdentity);\n          (targetStack || (targetStack = [])).push(targetIdentity);\n          action(source, target);\n          targetStack.pop();\n          sourceStack.pop();\n        } else {\n          inferencePriority = -1;\n        }\n        expandingFlags = saveExpandingFlags;\n        visited.set(key, inferencePriority);\n        inferencePriority = Math.min(inferencePriority, saveInferencePriority);\n      }\n      function inferFromMatchingTypes(sources, targets, matches) {\n        let matchedSources;\n        let matchedTargets;\n        for (const t of targets) {\n          for (const s of sources) {\n            if (matches(s, t)) {\n              inferFromTypes(s, t);\n              matchedSources = appendIfUnique(matchedSources, s);\n              matchedTargets = appendIfUnique(matchedTargets, t);\n            }\n          }\n        }\n        return [\n          matchedSources ? filter(sources, (t) => !contains(matchedSources, t)) : sources,\n          matchedTargets ? filter(targets, (t) => !contains(matchedTargets, t)) : targets\n        ];\n      }\n      function inferFromTypeArguments(sourceTypes, targetTypes, variances) {\n        const count = sourceTypes.length < targetTypes.length ? sourceTypes.length : targetTypes.length;\n        for (let i = 0; i < count; i++) {\n          if (i < variances.length && (variances[i] & 7) === 2) {\n            inferFromContravariantTypes(sourceTypes[i], targetTypes[i]);\n          } else {\n            inferFromTypes(sourceTypes[i], targetTypes[i]);\n          }\n        }\n      }\n      function inferFromContravariantTypes(source, target) {\n        contravariant = !contravariant;\n        inferFromTypes(source, target);\n        contravariant = !contravariant;\n      }\n      function inferFromContravariantTypesIfStrictFunctionTypes(source, target) {\n        if (strictFunctionTypes || priority & 1024) {\n          inferFromContravariantTypes(source, target);\n        } else {\n          inferFromTypes(source, target);\n        }\n      }\n      function getInferenceInfoForType(type) {\n        if (type.flags & 8650752) {\n          for (const inference of inferences) {\n            if (type === inference.typeParameter) {\n              return inference;\n            }\n          }\n        }\n        return void 0;\n      }\n      function getSingleTypeVariableFromIntersectionTypes(types) {\n        let typeVariable;\n        for (const type of types) {\n          const t = type.flags & 2097152 && find(type.types, (t2) => !!getInferenceInfoForType(t2));\n          if (!t || typeVariable && t !== typeVariable) {\n            return void 0;\n          }\n          typeVariable = t;\n        }\n        return typeVariable;\n      }\n      function inferToMultipleTypes(source, targets, targetFlags) {\n        let typeVariableCount = 0;\n        if (targetFlags & 1048576) {\n          let nakedTypeVariable;\n          const sources = source.flags & 1048576 ? source.types : [source];\n          const matched = new Array(sources.length);\n          let inferenceCircularity = false;\n          for (const t of targets) {\n            if (getInferenceInfoForType(t)) {\n              nakedTypeVariable = t;\n              typeVariableCount++;\n            } else {\n              for (let i = 0; i < sources.length; i++) {\n                const saveInferencePriority = inferencePriority;\n                inferencePriority = 2048;\n                inferFromTypes(sources[i], t);\n                if (inferencePriority === priority)\n                  matched[i] = true;\n                inferenceCircularity = inferenceCircularity || inferencePriority === -1;\n                inferencePriority = Math.min(inferencePriority, saveInferencePriority);\n              }\n            }\n          }\n          if (typeVariableCount === 0) {\n            const intersectionTypeVariable = getSingleTypeVariableFromIntersectionTypes(targets);\n            if (intersectionTypeVariable) {\n              inferWithPriority(source, intersectionTypeVariable, 1);\n            }\n            return;\n          }\n          if (typeVariableCount === 1 && !inferenceCircularity) {\n            const unmatched = flatMap(sources, (s, i) => matched[i] ? void 0 : s);\n            if (unmatched.length) {\n              inferFromTypes(getUnionType(unmatched), nakedTypeVariable);\n              return;\n            }\n          }\n        } else {\n          for (const t of targets) {\n            if (getInferenceInfoForType(t)) {\n              typeVariableCount++;\n            } else {\n              inferFromTypes(source, t);\n            }\n          }\n        }\n        if (targetFlags & 2097152 ? typeVariableCount === 1 : typeVariableCount > 0) {\n          for (const t of targets) {\n            if (getInferenceInfoForType(t)) {\n              inferWithPriority(source, t, 1);\n            }\n          }\n        }\n      }\n      function inferToMappedType(source, target, constraintType) {\n        if (constraintType.flags & 1048576) {\n          let result = false;\n          for (const type of constraintType.types) {\n            result = inferToMappedType(source, target, type) || result;\n          }\n          return result;\n        }\n        if (constraintType.flags & 4194304) {\n          const inference = getInferenceInfoForType(constraintType.type);\n          if (inference && !inference.isFixed && !isFromInferenceBlockedSource(source)) {\n            const inferredType = inferTypeForHomomorphicMappedType(source, target, constraintType);\n            if (inferredType) {\n              inferWithPriority(inferredType, inference.typeParameter, getObjectFlags(source) & 262144 ? 16 : 8);\n            }\n          }\n          return true;\n        }\n        if (constraintType.flags & 262144) {\n          inferWithPriority(getIndexType(source), constraintType, 32);\n          const extendedConstraint = getConstraintOfType(constraintType);\n          if (extendedConstraint && inferToMappedType(source, target, extendedConstraint)) {\n            return true;\n          }\n          const propTypes = map(getPropertiesOfType(source), getTypeOfSymbol);\n          const indexTypes = map(getIndexInfosOfType(source), (info) => info !== enumNumberIndexInfo ? info.type : neverType);\n          inferFromTypes(getUnionType(concatenate(propTypes, indexTypes)), getTemplateTypeFromMappedType(target));\n          return true;\n        }\n        return false;\n      }\n      function inferToConditionalType(source, target) {\n        if (source.flags & 16777216) {\n          inferFromTypes(source.checkType, target.checkType);\n          inferFromTypes(source.extendsType, target.extendsType);\n          inferFromTypes(getTrueTypeFromConditionalType(source), getTrueTypeFromConditionalType(target));\n          inferFromTypes(getFalseTypeFromConditionalType(source), getFalseTypeFromConditionalType(target));\n        } else {\n          const targetTypes = [getTrueTypeFromConditionalType(target), getFalseTypeFromConditionalType(target)];\n          inferToMultipleTypesWithPriority(source, targetTypes, target.flags, contravariant ? 64 : 0);\n        }\n      }\n      function inferToTemplateLiteralType(source, target) {\n        const matches = inferTypesFromTemplateLiteralType(source, target);\n        const types = target.types;\n        if (matches || every(target.texts, (s) => s.length === 0)) {\n          for (let i = 0; i < types.length; i++) {\n            const source2 = matches ? matches[i] : neverType;\n            const target2 = types[i];\n            if (source2.flags & 128 && target2.flags & 8650752) {\n              const inferenceContext = getInferenceInfoForType(target2);\n              const constraint = inferenceContext ? getBaseConstraintOfType(inferenceContext.typeParameter) : void 0;\n              if (constraint && !isTypeAny(constraint)) {\n                const constraintTypes = constraint.flags & 1048576 ? constraint.types : [constraint];\n                let allTypeFlags = reduceLeft(constraintTypes, (flags, t) => flags | t.flags, 0);\n                if (!(allTypeFlags & 4)) {\n                  const str = source2.value;\n                  if (allTypeFlags & 296 && !isValidNumberString(str, true)) {\n                    allTypeFlags &= ~296;\n                  }\n                  if (allTypeFlags & 2112 && !isValidBigIntString(str, true)) {\n                    allTypeFlags &= ~2112;\n                  }\n                  const matchingType = reduceLeft(constraintTypes, (left, right) => !(right.flags & allTypeFlags) ? left : left.flags & 4 ? left : right.flags & 4 ? source2 : left.flags & 134217728 ? left : right.flags & 134217728 && isTypeMatchedByTemplateLiteralType(source2, right) ? source2 : left.flags & 268435456 ? left : right.flags & 268435456 && str === applyStringMapping(right.symbol, str) ? source2 : left.flags & 128 ? left : right.flags & 128 && right.value === str ? right : left.flags & 8 ? left : right.flags & 8 ? getNumberLiteralType(+str) : left.flags & 32 ? left : right.flags & 32 ? getNumberLiteralType(+str) : left.flags & 256 ? left : right.flags & 256 && right.value === +str ? right : left.flags & 64 ? left : right.flags & 64 ? parseBigIntLiteralType(str) : left.flags & 2048 ? left : right.flags & 2048 && pseudoBigIntToString(right.value) === str ? right : left.flags & 16 ? left : right.flags & 16 ? str === \"true\" ? trueType : str === \"false\" ? falseType : booleanType : left.flags & 512 ? left : right.flags & 512 && right.intrinsicName === str ? right : left.flags & 32768 ? left : right.flags & 32768 && right.intrinsicName === str ? right : left.flags & 65536 ? left : right.flags & 65536 && right.intrinsicName === str ? right : left, neverType);\n                  if (!(matchingType.flags & 131072)) {\n                    inferFromTypes(matchingType, target2);\n                    continue;\n                  }\n                }\n              }\n            }\n            inferFromTypes(source2, target2);\n          }\n        }\n      }\n      function inferFromObjectTypes(source, target) {\n        var _a2, _b;\n        if (getObjectFlags(source) & 4 && getObjectFlags(target) & 4 && (source.target === target.target || isArrayType(source) && isArrayType(target))) {\n          inferFromTypeArguments(getTypeArguments(source), getTypeArguments(target), getVariances(source.target));\n          return;\n        }\n        if (isGenericMappedType(source) && isGenericMappedType(target)) {\n          inferFromTypes(getConstraintTypeFromMappedType(source), getConstraintTypeFromMappedType(target));\n          inferFromTypes(getTemplateTypeFromMappedType(source), getTemplateTypeFromMappedType(target));\n          const sourceNameType = getNameTypeFromMappedType(source);\n          const targetNameType = getNameTypeFromMappedType(target);\n          if (sourceNameType && targetNameType)\n            inferFromTypes(sourceNameType, targetNameType);\n        }\n        if (getObjectFlags(target) & 32 && !target.declaration.nameType) {\n          const constraintType = getConstraintTypeFromMappedType(target);\n          if (inferToMappedType(source, target, constraintType)) {\n            return;\n          }\n        }\n        if (!typesDefinitelyUnrelated(source, target)) {\n          if (isArrayOrTupleType(source)) {\n            if (isTupleType(target)) {\n              const sourceArity = getTypeReferenceArity(source);\n              const targetArity = getTypeReferenceArity(target);\n              const elementTypes = getTypeArguments(target);\n              const elementFlags = target.target.elementFlags;\n              if (isTupleType(source) && isTupleTypeStructureMatching(source, target)) {\n                for (let i = 0; i < targetArity; i++) {\n                  inferFromTypes(getTypeArguments(source)[i], elementTypes[i]);\n                }\n                return;\n              }\n              const startLength = isTupleType(source) ? Math.min(source.target.fixedLength, target.target.fixedLength) : 0;\n              const endLength = Math.min(isTupleType(source) ? getEndElementCount(source.target, 3) : 0, target.target.hasRestElement ? getEndElementCount(target.target, 3) : 0);\n              for (let i = 0; i < startLength; i++) {\n                inferFromTypes(getTypeArguments(source)[i], elementTypes[i]);\n              }\n              if (!isTupleType(source) || sourceArity - startLength - endLength === 1 && source.target.elementFlags[startLength] & 4) {\n                const restType = getTypeArguments(source)[startLength];\n                for (let i = startLength; i < targetArity - endLength; i++) {\n                  inferFromTypes(elementFlags[i] & 8 ? createArrayType(restType) : restType, elementTypes[i]);\n                }\n              } else {\n                const middleLength = targetArity - startLength - endLength;\n                if (middleLength === 2) {\n                  if (elementFlags[startLength] & elementFlags[startLength + 1] & 8) {\n                    const targetInfo = getInferenceInfoForType(elementTypes[startLength]);\n                    if (targetInfo && targetInfo.impliedArity !== void 0) {\n                      inferFromTypes(sliceTupleType(source, startLength, endLength + sourceArity - targetInfo.impliedArity), elementTypes[startLength]);\n                      inferFromTypes(sliceTupleType(source, startLength + targetInfo.impliedArity, endLength), elementTypes[startLength + 1]);\n                    }\n                  } else if (elementFlags[startLength] & 8 && elementFlags[startLength + 1] & 4) {\n                    const param = (_a2 = getInferenceInfoForType(elementTypes[startLength])) == null ? void 0 : _a2.typeParameter;\n                    const constraint = param && getBaseConstraintOfType(param);\n                    if (constraint && isTupleType(constraint) && !constraint.target.hasRestElement) {\n                      const impliedArity = constraint.target.fixedLength;\n                      inferFromTypes(sliceTupleType(source, startLength, sourceArity - (startLength + impliedArity)), elementTypes[startLength]);\n                      inferFromTypes(getElementTypeOfSliceOfTupleType(source, startLength + impliedArity, endLength), elementTypes[startLength + 1]);\n                    }\n                  } else if (elementFlags[startLength] & 4 && elementFlags[startLength + 1] & 8) {\n                    const param = (_b = getInferenceInfoForType(elementTypes[startLength + 1])) == null ? void 0 : _b.typeParameter;\n                    const constraint = param && getBaseConstraintOfType(param);\n                    if (constraint && isTupleType(constraint) && !constraint.target.hasRestElement) {\n                      const impliedArity = constraint.target.fixedLength;\n                      const endIndex = sourceArity - getEndElementCount(target.target, 3);\n                      const startIndex = endIndex - impliedArity;\n                      const trailingSlice = createTupleType(getTypeArguments(source).slice(startIndex, endIndex), source.target.elementFlags.slice(startIndex, endIndex), false, source.target.labeledElementDeclarations && source.target.labeledElementDeclarations.slice(startIndex, endIndex));\n                      inferFromTypes(getElementTypeOfSliceOfTupleType(source, startLength, endLength + impliedArity), elementTypes[startLength]);\n                      inferFromTypes(trailingSlice, elementTypes[startLength + 1]);\n                    }\n                  }\n                } else if (middleLength === 1 && elementFlags[startLength] & 8) {\n                  const endsInOptional = target.target.elementFlags[targetArity - 1] & 2;\n                  const sourceSlice = sliceTupleType(source, startLength, endLength);\n                  inferWithPriority(sourceSlice, elementTypes[startLength], endsInOptional ? 2 : 0);\n                } else if (middleLength === 1 && elementFlags[startLength] & 4) {\n                  const restType = getElementTypeOfSliceOfTupleType(source, startLength, endLength);\n                  if (restType) {\n                    inferFromTypes(restType, elementTypes[startLength]);\n                  }\n                }\n              }\n              for (let i = 0; i < endLength; i++) {\n                inferFromTypes(getTypeArguments(source)[sourceArity - i - 1], elementTypes[targetArity - i - 1]);\n              }\n              return;\n            }\n            if (isArrayType(target)) {\n              inferFromIndexTypes(source, target);\n              return;\n            }\n          }\n          inferFromProperties(source, target);\n          inferFromSignatures(source, target, 0);\n          inferFromSignatures(source, target, 1);\n          inferFromIndexTypes(source, target);\n        }\n      }\n      function inferFromProperties(source, target) {\n        const properties = getPropertiesOfObjectType(target);\n        for (const targetProp of properties) {\n          const sourceProp = getPropertyOfType(source, targetProp.escapedName);\n          if (sourceProp && !some(sourceProp.declarations, hasSkipDirectInferenceFlag)) {\n            inferFromTypes(getTypeOfSymbol(sourceProp), getTypeOfSymbol(targetProp));\n          }\n        }\n      }\n      function inferFromSignatures(source, target, kind) {\n        const sourceSignatures = getSignaturesOfType(source, kind);\n        const targetSignatures = getSignaturesOfType(target, kind);\n        const sourceLen = sourceSignatures.length;\n        const targetLen = targetSignatures.length;\n        const len = sourceLen < targetLen ? sourceLen : targetLen;\n        for (let i = 0; i < len; i++) {\n          inferFromSignature(getBaseSignature(sourceSignatures[sourceLen - len + i]), getErasedSignature(targetSignatures[targetLen - len + i]));\n        }\n      }\n      function inferFromSignature(source, target) {\n        const saveBivariant = bivariant;\n        const kind = target.declaration ? target.declaration.kind : 0;\n        bivariant = bivariant || kind === 171 || kind === 170 || kind === 173;\n        applyToParameterTypes(source, target, inferFromContravariantTypesIfStrictFunctionTypes);\n        bivariant = saveBivariant;\n        applyToReturnTypes(source, target, inferFromTypes);\n      }\n      function inferFromIndexTypes(source, target) {\n        const priority2 = getObjectFlags(source) & getObjectFlags(target) & 32 ? 8 : 0;\n        const indexInfos = getIndexInfosOfType(target);\n        if (isObjectTypeWithInferableIndex(source)) {\n          for (const targetInfo of indexInfos) {\n            const propTypes = [];\n            for (const prop of getPropertiesOfType(source)) {\n              if (isApplicableIndexType(getLiteralTypeFromProperty(prop, 8576), targetInfo.keyType)) {\n                const propType = getTypeOfSymbol(prop);\n                propTypes.push(prop.flags & 16777216 ? removeMissingOrUndefinedType(propType) : propType);\n              }\n            }\n            for (const info of getIndexInfosOfType(source)) {\n              if (isApplicableIndexType(info.keyType, targetInfo.keyType)) {\n                propTypes.push(info.type);\n              }\n            }\n            if (propTypes.length) {\n              inferWithPriority(getUnionType(propTypes), targetInfo.type, priority2);\n            }\n          }\n        }\n        for (const targetInfo of indexInfos) {\n          const sourceInfo = getApplicableIndexInfo(source, targetInfo.keyType);\n          if (sourceInfo) {\n            inferWithPriority(sourceInfo.type, targetInfo.type, priority2);\n          }\n        }\n      }\n    }\n    function isTypeOrBaseIdenticalTo(s, t) {\n      return t === missingType ? s === t : isTypeIdenticalTo(s, t) || !!(t.flags & 4 && s.flags & 128 || t.flags & 8 && s.flags & 256);\n    }\n    function isTypeCloselyMatchedBy(s, t) {\n      return !!(s.flags & 524288 && t.flags & 524288 && s.symbol && s.symbol === t.symbol || s.aliasSymbol && s.aliasTypeArguments && s.aliasSymbol === t.aliasSymbol);\n    }\n    function hasPrimitiveConstraint(type) {\n      const constraint = getConstraintOfTypeParameter(type);\n      return !!constraint && maybeTypeOfKind(constraint.flags & 16777216 ? getDefaultConstraintOfConditionalType(constraint) : constraint, 134348796 | 4194304 | 134217728 | 268435456);\n    }\n    function isObjectLiteralType2(type) {\n      return !!(getObjectFlags(type) & 128);\n    }\n    function isObjectOrArrayLiteralType(type) {\n      return !!(getObjectFlags(type) & (128 | 16384));\n    }\n    function unionObjectAndArrayLiteralCandidates(candidates) {\n      if (candidates.length > 1) {\n        const objectLiterals = filter(candidates, isObjectOrArrayLiteralType);\n        if (objectLiterals.length) {\n          const literalsType = getUnionType(objectLiterals, 2);\n          return concatenate(filter(candidates, (t) => !isObjectOrArrayLiteralType(t)), [literalsType]);\n        }\n      }\n      return candidates;\n    }\n    function getContravariantInference(inference) {\n      return inference.priority & 416 ? getIntersectionType(inference.contraCandidates) : getCommonSubtype(inference.contraCandidates);\n    }\n    function getCovariantInference(inference, signature) {\n      const candidates = unionObjectAndArrayLiteralCandidates(inference.candidates);\n      const primitiveConstraint = hasPrimitiveConstraint(inference.typeParameter) || isConstTypeVariable(inference.typeParameter);\n      const widenLiteralTypes = !primitiveConstraint && inference.topLevel && (inference.isFixed || !isTypeParameterAtTopLevelInReturnType(signature, inference.typeParameter));\n      const baseCandidates = primitiveConstraint ? sameMap(candidates, getRegularTypeOfLiteralType) : widenLiteralTypes ? sameMap(candidates, getWidenedLiteralType) : candidates;\n      const unwidenedType = inference.priority & 416 ? getUnionType(baseCandidates, 2) : getCommonSupertype(baseCandidates);\n      return getWidenedType(unwidenedType);\n    }\n    function getInferredType(context, index) {\n      const inference = context.inferences[index];\n      if (!inference.inferredType) {\n        let inferredType;\n        const signature = context.signature;\n        if (signature) {\n          const inferredCovariantType = inference.candidates ? getCovariantInference(inference, signature) : void 0;\n          if (inference.contraCandidates) {\n            const useCovariantType = inferredCovariantType && !(inferredCovariantType.flags & 131072) && some(inference.contraCandidates, (t) => isTypeSubtypeOf(inferredCovariantType, t)) && every(context.inferences, (other) => other !== inference && getConstraintOfTypeParameter(other.typeParameter) !== inference.typeParameter || every(other.candidates, (t) => isTypeSubtypeOf(t, inferredCovariantType)));\n            inferredType = useCovariantType ? inferredCovariantType : getContravariantInference(inference);\n          } else if (inferredCovariantType) {\n            inferredType = inferredCovariantType;\n          } else if (context.flags & 1) {\n            inferredType = silentNeverType;\n          } else {\n            const defaultType = getDefaultFromTypeParameter(inference.typeParameter);\n            if (defaultType) {\n              inferredType = instantiateType(defaultType, mergeTypeMappers(createBackreferenceMapper(context, index), context.nonFixingMapper));\n            }\n          }\n        } else {\n          inferredType = getTypeFromInference(inference);\n        }\n        inference.inferredType = inferredType || getDefaultTypeArgumentType(!!(context.flags & 2));\n        const constraint = getConstraintOfTypeParameter(inference.typeParameter);\n        if (constraint) {\n          const instantiatedConstraint = instantiateType(constraint, context.nonFixingMapper);\n          if (!inferredType || !context.compareTypes(inferredType, getTypeWithThisArgument(instantiatedConstraint, inferredType))) {\n            inference.inferredType = inferredType = instantiatedConstraint;\n          }\n        }\n      }\n      return inference.inferredType;\n    }\n    function getDefaultTypeArgumentType(isInJavaScriptFile) {\n      return isInJavaScriptFile ? anyType : unknownType;\n    }\n    function getInferredTypes(context) {\n      const result = [];\n      for (let i = 0; i < context.inferences.length; i++) {\n        result.push(getInferredType(context, i));\n      }\n      return result;\n    }\n    function getCannotFindNameDiagnosticForName(node) {\n      switch (node.escapedText) {\n        case \"document\":\n        case \"console\":\n          return Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;\n        case \"$\":\n          return compilerOptions.types ? Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig : Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;\n        case \"describe\":\n        case \"suite\":\n        case \"it\":\n        case \"test\":\n          return compilerOptions.types ? Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig : Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha;\n        case \"process\":\n        case \"require\":\n        case \"Buffer\":\n        case \"module\":\n          return compilerOptions.types ? Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig : Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;\n        case \"Map\":\n        case \"Set\":\n        case \"Promise\":\n        case \"Symbol\":\n        case \"WeakMap\":\n        case \"WeakSet\":\n        case \"Iterator\":\n        case \"AsyncIterator\":\n        case \"SharedArrayBuffer\":\n        case \"Atomics\":\n        case \"AsyncIterable\":\n        case \"AsyncIterableIterator\":\n        case \"AsyncGenerator\":\n        case \"AsyncGeneratorFunction\":\n        case \"BigInt\":\n        case \"Reflect\":\n        case \"BigInt64Array\":\n        case \"BigUint64Array\":\n          return Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;\n        case \"await\":\n          if (isCallExpression(node.parent)) {\n            return Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;\n          }\n        default:\n          if (node.parent.kind === 300) {\n            return Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer;\n          } else {\n            return Diagnostics.Cannot_find_name_0;\n          }\n      }\n    }\n    function getResolvedSymbol(node) {\n      const links = getNodeLinks(node);\n      if (!links.resolvedSymbol) {\n        links.resolvedSymbol = !nodeIsMissing(node) && resolveName(node, node.escapedText, 111551 | 1048576, getCannotFindNameDiagnosticForName(node), node, !isWriteOnlyAccess(node), false) || unknownSymbol;\n      }\n      return links.resolvedSymbol;\n    }\n    function isInTypeQuery(node) {\n      return !!findAncestor(node, (n) => n.kind === 183 ? true : n.kind === 79 || n.kind === 163 ? false : \"quit\");\n    }\n    function isInAmbientOrTypeNode(node) {\n      return !!(node.flags & 16777216 || findAncestor(node, (n) => isInterfaceDeclaration(n) || isTypeLiteralNode(n)));\n    }\n    function getFlowCacheKey(node, declaredType, initialType, flowContainer) {\n      switch (node.kind) {\n        case 79:\n          if (!isThisInTypeQuery(node)) {\n            const symbol = getResolvedSymbol(node);\n            return symbol !== unknownSymbol ? `${flowContainer ? getNodeId(flowContainer) : \"-1\"}|${getTypeId(declaredType)}|${getTypeId(initialType)}|${getSymbolId(symbol)}` : void 0;\n          }\n        case 108:\n          return `0|${flowContainer ? getNodeId(flowContainer) : \"-1\"}|${getTypeId(declaredType)}|${getTypeId(initialType)}`;\n        case 232:\n        case 214:\n          return getFlowCacheKey(node.expression, declaredType, initialType, flowContainer);\n        case 163:\n          const left = getFlowCacheKey(node.left, declaredType, initialType, flowContainer);\n          return left && left + \".\" + node.right.escapedText;\n        case 208:\n        case 209:\n          const propName = getAccessedPropertyName(node);\n          if (propName !== void 0) {\n            const key = getFlowCacheKey(node.expression, declaredType, initialType, flowContainer);\n            return key && key + \".\" + propName;\n          }\n          break;\n        case 203:\n        case 204:\n        case 259:\n        case 215:\n        case 216:\n        case 171:\n          return `${getNodeId(node)}#${getTypeId(declaredType)}`;\n      }\n      return void 0;\n    }\n    function isMatchingReference(source, target) {\n      switch (target.kind) {\n        case 214:\n        case 232:\n          return isMatchingReference(source, target.expression);\n        case 223:\n          return isAssignmentExpression(target) && isMatchingReference(source, target.left) || isBinaryExpression(target) && target.operatorToken.kind === 27 && isMatchingReference(source, target.right);\n      }\n      switch (source.kind) {\n        case 233:\n          return target.kind === 233 && source.keywordToken === target.keywordToken && source.name.escapedText === target.name.escapedText;\n        case 79:\n        case 80:\n          return isThisInTypeQuery(source) ? target.kind === 108 : target.kind === 79 && getResolvedSymbol(source) === getResolvedSymbol(target) || (isVariableDeclaration(target) || isBindingElement(target)) && getExportSymbolOfValueSymbolIfExported(getResolvedSymbol(source)) === getSymbolOfDeclaration(target);\n        case 108:\n          return target.kind === 108;\n        case 106:\n          return target.kind === 106;\n        case 232:\n        case 214:\n          return isMatchingReference(source.expression, target);\n        case 208:\n        case 209:\n          const sourcePropertyName = getAccessedPropertyName(source);\n          const targetPropertyName = isAccessExpression(target) ? getAccessedPropertyName(target) : void 0;\n          return sourcePropertyName !== void 0 && targetPropertyName !== void 0 && targetPropertyName === sourcePropertyName && isMatchingReference(source.expression, target.expression);\n        case 163:\n          return isAccessExpression(target) && source.right.escapedText === getAccessedPropertyName(target) && isMatchingReference(source.left, target.expression);\n        case 223:\n          return isBinaryExpression(source) && source.operatorToken.kind === 27 && isMatchingReference(source.right, target);\n      }\n      return false;\n    }\n    function getAccessedPropertyName(access) {\n      if (isPropertyAccessExpression(access)) {\n        return access.name.escapedText;\n      }\n      if (isElementAccessExpression(access)) {\n        return tryGetElementAccessExpressionName(access);\n      }\n      if (isBindingElement(access)) {\n        const name = getDestructuringPropertyName(access);\n        return name ? escapeLeadingUnderscores(name) : void 0;\n      }\n      if (isParameter(access)) {\n        return \"\" + access.parent.parameters.indexOf(access);\n      }\n      return void 0;\n    }\n    function tryGetNameFromType(type) {\n      return type.flags & 8192 ? type.escapedName : type.flags & 384 ? escapeLeadingUnderscores(\"\" + type.value) : void 0;\n    }\n    function tryGetElementAccessExpressionName(node) {\n      if (isStringOrNumericLiteralLike(node.argumentExpression)) {\n        return escapeLeadingUnderscores(node.argumentExpression.text);\n      }\n      if (isEntityNameExpression(node.argumentExpression)) {\n        const symbol = resolveEntityName(node.argumentExpression, 111551, true);\n        if (!symbol || !(isConstVariable(symbol) || symbol.flags & 8))\n          return void 0;\n        const declaration = symbol.valueDeclaration;\n        if (declaration === void 0)\n          return void 0;\n        const type = tryGetTypeFromEffectiveTypeNode(declaration);\n        if (type) {\n          const name = tryGetNameFromType(type);\n          if (name !== void 0) {\n            return name;\n          }\n        }\n        if (hasOnlyExpressionInitializer(declaration) && isBlockScopedNameDeclaredBeforeUse(declaration, node.argumentExpression)) {\n          const initializer = getEffectiveInitializer(declaration);\n          if (initializer) {\n            return tryGetNameFromType(getTypeOfExpression(initializer));\n          }\n          if (isEnumMember(declaration)) {\n            return getTextOfPropertyName(declaration.name);\n          }\n        }\n      }\n      return void 0;\n    }\n    function containsMatchingReference(source, target) {\n      while (isAccessExpression(source)) {\n        source = source.expression;\n        if (isMatchingReference(source, target)) {\n          return true;\n        }\n      }\n      return false;\n    }\n    function optionalChainContainsReference(source, target) {\n      while (isOptionalChain(source)) {\n        source = source.expression;\n        if (isMatchingReference(source, target)) {\n          return true;\n        }\n      }\n      return false;\n    }\n    function isDiscriminantProperty(type, name) {\n      if (type && type.flags & 1048576) {\n        const prop = getUnionOrIntersectionProperty(type, name);\n        if (prop && getCheckFlags(prop) & 2) {\n          if (prop.links.isDiscriminantProperty === void 0) {\n            prop.links.isDiscriminantProperty = (prop.links.checkFlags & 192) === 192 && !isGenericType(getTypeOfSymbol(prop));\n          }\n          return !!prop.links.isDiscriminantProperty;\n        }\n      }\n      return false;\n    }\n    function findDiscriminantProperties(sourceProperties, target) {\n      let result;\n      for (const sourceProperty of sourceProperties) {\n        if (isDiscriminantProperty(target, sourceProperty.escapedName)) {\n          if (result) {\n            result.push(sourceProperty);\n            continue;\n          }\n          result = [sourceProperty];\n        }\n      }\n      return result;\n    }\n    function mapTypesByKeyProperty(types, name) {\n      const map2 = /* @__PURE__ */ new Map();\n      let count = 0;\n      for (const type of types) {\n        if (type.flags & (524288 | 2097152 | 58982400)) {\n          const discriminant = getTypeOfPropertyOfType(type, name);\n          if (discriminant) {\n            if (!isLiteralType(discriminant)) {\n              return void 0;\n            }\n            let duplicate = false;\n            forEachType(discriminant, (t) => {\n              const id = getTypeId(getRegularTypeOfLiteralType(t));\n              const existing = map2.get(id);\n              if (!existing) {\n                map2.set(id, type);\n              } else if (existing !== unknownType) {\n                map2.set(id, unknownType);\n                duplicate = true;\n              }\n            });\n            if (!duplicate)\n              count++;\n          }\n        }\n      }\n      return count >= 10 && count * 2 >= types.length ? map2 : void 0;\n    }\n    function getKeyPropertyName(unionType) {\n      const types = unionType.types;\n      if (types.length < 10 || getObjectFlags(unionType) & 32768 || countWhere(types, (t) => !!(t.flags & (524288 | 58982400))) < 10) {\n        return void 0;\n      }\n      if (unionType.keyPropertyName === void 0) {\n        const keyPropertyName = forEach(types, (t) => t.flags & (524288 | 58982400) ? forEach(getPropertiesOfType(t), (p) => isUnitType(getTypeOfSymbol(p)) ? p.escapedName : void 0) : void 0);\n        const mapByKeyProperty = keyPropertyName && mapTypesByKeyProperty(types, keyPropertyName);\n        unionType.keyPropertyName = mapByKeyProperty ? keyPropertyName : \"\";\n        unionType.constituentMap = mapByKeyProperty;\n      }\n      return unionType.keyPropertyName.length ? unionType.keyPropertyName : void 0;\n    }\n    function getConstituentTypeForKeyType(unionType, keyType) {\n      var _a2;\n      const result = (_a2 = unionType.constituentMap) == null ? void 0 : _a2.get(getTypeId(getRegularTypeOfLiteralType(keyType)));\n      return result !== unknownType ? result : void 0;\n    }\n    function getMatchingUnionConstituentForType(unionType, type) {\n      const keyPropertyName = getKeyPropertyName(unionType);\n      const propType = keyPropertyName && getTypeOfPropertyOfType(type, keyPropertyName);\n      return propType && getConstituentTypeForKeyType(unionType, propType);\n    }\n    function getMatchingUnionConstituentForObjectLiteral(unionType, node) {\n      const keyPropertyName = getKeyPropertyName(unionType);\n      const propNode = keyPropertyName && find(node.properties, (p) => p.symbol && p.kind === 299 && p.symbol.escapedName === keyPropertyName && isPossiblyDiscriminantValue(p.initializer));\n      const propType = propNode && getContextFreeTypeOfExpression(propNode.initializer);\n      return propType && getConstituentTypeForKeyType(unionType, propType);\n    }\n    function isOrContainsMatchingReference(source, target) {\n      return isMatchingReference(source, target) || containsMatchingReference(source, target);\n    }\n    function hasMatchingArgument(expression, reference) {\n      if (expression.arguments) {\n        for (const argument of expression.arguments) {\n          if (isOrContainsMatchingReference(reference, argument)) {\n            return true;\n          }\n        }\n      }\n      if (expression.expression.kind === 208 && isOrContainsMatchingReference(reference, expression.expression.expression)) {\n        return true;\n      }\n      return false;\n    }\n    function getFlowNodeId(flow) {\n      if (!flow.id || flow.id < 0) {\n        flow.id = nextFlowId;\n        nextFlowId++;\n      }\n      return flow.id;\n    }\n    function typeMaybeAssignableTo(source, target) {\n      if (!(source.flags & 1048576)) {\n        return isTypeAssignableTo(source, target);\n      }\n      for (const t of source.types) {\n        if (isTypeAssignableTo(t, target)) {\n          return true;\n        }\n      }\n      return false;\n    }\n    function getAssignmentReducedType(declaredType, assignedType) {\n      var _a2;\n      if (declaredType === assignedType) {\n        return declaredType;\n      }\n      if (assignedType.flags & 131072) {\n        return assignedType;\n      }\n      const key = `A${getTypeId(declaredType)},${getTypeId(assignedType)}`;\n      return (_a2 = getCachedType(key)) != null ? _a2 : setCachedType(key, getAssignmentReducedTypeWorker(declaredType, assignedType));\n    }\n    function getAssignmentReducedTypeWorker(declaredType, assignedType) {\n      const filteredType = filterType(declaredType, (t) => typeMaybeAssignableTo(assignedType, t));\n      const reducedType = assignedType.flags & 512 && isFreshLiteralType(assignedType) ? mapType(filteredType, getFreshTypeOfLiteralType) : filteredType;\n      return isTypeAssignableTo(assignedType, reducedType) ? reducedType : declaredType;\n    }\n    function isFunctionObjectType(type) {\n      const resolved = resolveStructuredTypeMembers(type);\n      return !!(resolved.callSignatures.length || resolved.constructSignatures.length || resolved.members.get(\"bind\") && isTypeSubtypeOf(type, globalFunctionType));\n    }\n    function getTypeFacts(type) {\n      if (type.flags & (2097152 | 465829888)) {\n        type = getBaseConstraintOfType(type) || unknownType;\n      }\n      const flags = type.flags;\n      if (flags & (4 | 268435456)) {\n        return strictNullChecks ? 16317953 : 16776705;\n      }\n      if (flags & (128 | 134217728)) {\n        const isEmpty = flags & 128 && type.value === \"\";\n        return strictNullChecks ? isEmpty ? 12123649 : 7929345 : isEmpty ? 12582401 : 16776705;\n      }\n      if (flags & (8 | 32)) {\n        return strictNullChecks ? 16317698 : 16776450;\n      }\n      if (flags & 256) {\n        const isZero = type.value === 0;\n        return strictNullChecks ? isZero ? 12123394 : 7929090 : isZero ? 12582146 : 16776450;\n      }\n      if (flags & 64) {\n        return strictNullChecks ? 16317188 : 16775940;\n      }\n      if (flags & 2048) {\n        const isZero = isZeroBigInt(type);\n        return strictNullChecks ? isZero ? 12122884 : 7928580 : isZero ? 12581636 : 16775940;\n      }\n      if (flags & 16) {\n        return strictNullChecks ? 16316168 : 16774920;\n      }\n      if (flags & 528) {\n        return strictNullChecks ? type === falseType || type === regularFalseType ? 12121864 : 7927560 : type === falseType || type === regularFalseType ? 12580616 : 16774920;\n      }\n      if (flags & 524288) {\n        return getObjectFlags(type) & 16 && isEmptyObjectType(type) ? strictNullChecks ? 83427327 : 83886079 : isFunctionObjectType(type) ? strictNullChecks ? 7880640 : 16728e3 : strictNullChecks ? 7888800 : 16736160;\n      }\n      if (flags & 16384) {\n        return 9830144;\n      }\n      if (flags & 32768) {\n        return 26607360;\n      }\n      if (flags & 65536) {\n        return 42917664;\n      }\n      if (flags & 12288) {\n        return strictNullChecks ? 7925520 : 16772880;\n      }\n      if (flags & 67108864) {\n        return strictNullChecks ? 7888800 : 16736160;\n      }\n      if (flags & 131072) {\n        return 0;\n      }\n      if (flags & 1048576) {\n        return reduceLeft(type.types, (facts, t) => facts | getTypeFacts(t), 0);\n      }\n      if (flags & 2097152) {\n        return getIntersectionTypeFacts(type);\n      }\n      return 83886079;\n    }\n    function getIntersectionTypeFacts(type) {\n      const ignoreObjects = maybeTypeOfKind(type, 134348796);\n      let oredFacts = 0;\n      let andedFacts = 134217727;\n      for (const t of type.types) {\n        if (!(ignoreObjects && t.flags & 524288)) {\n          const f = getTypeFacts(t);\n          oredFacts |= f;\n          andedFacts &= f;\n        }\n      }\n      return oredFacts & 8256 | andedFacts & 134209471;\n    }\n    function getTypeWithFacts(type, include) {\n      return filterType(type, (t) => (getTypeFacts(t) & include) !== 0);\n    }\n    function getAdjustedTypeWithFacts(type, facts) {\n      const reduced = recombineUnknownType(getTypeWithFacts(strictNullChecks && type.flags & 2 ? unknownUnionType : type, facts));\n      if (strictNullChecks) {\n        switch (facts) {\n          case 524288:\n            return mapType(reduced, (t) => getTypeFacts(t) & 65536 ? getIntersectionType([t, getTypeFacts(t) & 131072 && !maybeTypeOfKind(reduced, 65536) ? getUnionType([emptyObjectType, nullType]) : emptyObjectType]) : t);\n          case 1048576:\n            return mapType(reduced, (t) => getTypeFacts(t) & 131072 ? getIntersectionType([t, getTypeFacts(t) & 65536 && !maybeTypeOfKind(reduced, 32768) ? getUnionType([emptyObjectType, undefinedType]) : emptyObjectType]) : t);\n          case 2097152:\n          case 4194304:\n            return mapType(reduced, (t) => getTypeFacts(t) & 262144 ? getGlobalNonNullableTypeInstantiation(t) : t);\n        }\n      }\n      return reduced;\n    }\n    function recombineUnknownType(type) {\n      return type === unknownUnionType ? unknownType : type;\n    }\n    function getTypeWithDefault(type, defaultExpression) {\n      return defaultExpression ? getUnionType([getNonUndefinedType(type), getTypeOfExpression(defaultExpression)]) : type;\n    }\n    function getTypeOfDestructuredProperty(type, name) {\n      var _a2;\n      const nameType = getLiteralTypeFromPropertyName(name);\n      if (!isTypeUsableAsPropertyName(nameType))\n        return errorType;\n      const text = getPropertyNameFromType(nameType);\n      return getTypeOfPropertyOfType(type, text) || includeUndefinedInIndexSignature((_a2 = getApplicableIndexInfoForName(type, text)) == null ? void 0 : _a2.type) || errorType;\n    }\n    function getTypeOfDestructuredArrayElement(type, index) {\n      return everyType(type, isTupleLikeType) && getTupleElementType(type, index) || includeUndefinedInIndexSignature(checkIteratedTypeOrElementType(65, type, undefinedType, void 0)) || errorType;\n    }\n    function includeUndefinedInIndexSignature(type) {\n      if (!type)\n        return type;\n      return compilerOptions.noUncheckedIndexedAccess ? getUnionType([type, missingType]) : type;\n    }\n    function getTypeOfDestructuredSpreadExpression(type) {\n      return createArrayType(checkIteratedTypeOrElementType(65, type, undefinedType, void 0) || errorType);\n    }\n    function getAssignedTypeOfBinaryExpression(node) {\n      const isDestructuringDefaultAssignment = node.parent.kind === 206 && isDestructuringAssignmentTarget(node.parent) || node.parent.kind === 299 && isDestructuringAssignmentTarget(node.parent.parent);\n      return isDestructuringDefaultAssignment ? getTypeWithDefault(getAssignedType(node), node.right) : getTypeOfExpression(node.right);\n    }\n    function isDestructuringAssignmentTarget(parent2) {\n      return parent2.parent.kind === 223 && parent2.parent.left === parent2 || parent2.parent.kind === 247 && parent2.parent.initializer === parent2;\n    }\n    function getAssignedTypeOfArrayLiteralElement(node, element) {\n      return getTypeOfDestructuredArrayElement(getAssignedType(node), node.elements.indexOf(element));\n    }\n    function getAssignedTypeOfSpreadExpression(node) {\n      return getTypeOfDestructuredSpreadExpression(getAssignedType(node.parent));\n    }\n    function getAssignedTypeOfPropertyAssignment(node) {\n      return getTypeOfDestructuredProperty(getAssignedType(node.parent), node.name);\n    }\n    function getAssignedTypeOfShorthandPropertyAssignment(node) {\n      return getTypeWithDefault(getAssignedTypeOfPropertyAssignment(node), node.objectAssignmentInitializer);\n    }\n    function getAssignedType(node) {\n      const { parent: parent2 } = node;\n      switch (parent2.kind) {\n        case 246:\n          return stringType;\n        case 247:\n          return checkRightHandSideOfForOf(parent2) || errorType;\n        case 223:\n          return getAssignedTypeOfBinaryExpression(parent2);\n        case 217:\n          return undefinedType;\n        case 206:\n          return getAssignedTypeOfArrayLiteralElement(parent2, node);\n        case 227:\n          return getAssignedTypeOfSpreadExpression(parent2);\n        case 299:\n          return getAssignedTypeOfPropertyAssignment(parent2);\n        case 300:\n          return getAssignedTypeOfShorthandPropertyAssignment(parent2);\n      }\n      return errorType;\n    }\n    function getInitialTypeOfBindingElement(node) {\n      const pattern = node.parent;\n      const parentType = getInitialType(pattern.parent);\n      const type = pattern.kind === 203 ? getTypeOfDestructuredProperty(parentType, node.propertyName || node.name) : !node.dotDotDotToken ? getTypeOfDestructuredArrayElement(parentType, pattern.elements.indexOf(node)) : getTypeOfDestructuredSpreadExpression(parentType);\n      return getTypeWithDefault(type, node.initializer);\n    }\n    function getTypeOfInitializer(node) {\n      const links = getNodeLinks(node);\n      return links.resolvedType || getTypeOfExpression(node);\n    }\n    function getInitialTypeOfVariableDeclaration(node) {\n      if (node.initializer) {\n        return getTypeOfInitializer(node.initializer);\n      }\n      if (node.parent.parent.kind === 246) {\n        return stringType;\n      }\n      if (node.parent.parent.kind === 247) {\n        return checkRightHandSideOfForOf(node.parent.parent) || errorType;\n      }\n      return errorType;\n    }\n    function getInitialType(node) {\n      return node.kind === 257 ? getInitialTypeOfVariableDeclaration(node) : getInitialTypeOfBindingElement(node);\n    }\n    function isEmptyArrayAssignment(node) {\n      return node.kind === 257 && node.initializer && isEmptyArrayLiteral2(node.initializer) || node.kind !== 205 && node.parent.kind === 223 && isEmptyArrayLiteral2(node.parent.right);\n    }\n    function getReferenceCandidate(node) {\n      switch (node.kind) {\n        case 214:\n          return getReferenceCandidate(node.expression);\n        case 223:\n          switch (node.operatorToken.kind) {\n            case 63:\n            case 75:\n            case 76:\n            case 77:\n              return getReferenceCandidate(node.left);\n            case 27:\n              return getReferenceCandidate(node.right);\n          }\n      }\n      return node;\n    }\n    function getReferenceRoot(node) {\n      const { parent: parent2 } = node;\n      return parent2.kind === 214 || parent2.kind === 223 && parent2.operatorToken.kind === 63 && parent2.left === node || parent2.kind === 223 && parent2.operatorToken.kind === 27 && parent2.right === node ? getReferenceRoot(parent2) : node;\n    }\n    function getTypeOfSwitchClause(clause) {\n      if (clause.kind === 292) {\n        return getRegularTypeOfLiteralType(getTypeOfExpression(clause.expression));\n      }\n      return neverType;\n    }\n    function getSwitchClauseTypes(switchStatement) {\n      const links = getNodeLinks(switchStatement);\n      if (!links.switchTypes) {\n        links.switchTypes = [];\n        for (const clause of switchStatement.caseBlock.clauses) {\n          links.switchTypes.push(getTypeOfSwitchClause(clause));\n        }\n      }\n      return links.switchTypes;\n    }\n    function getSwitchClauseTypeOfWitnesses(switchStatement) {\n      if (some(switchStatement.caseBlock.clauses, (clause) => clause.kind === 292 && !isStringLiteralLike(clause.expression))) {\n        return void 0;\n      }\n      const witnesses = [];\n      for (const clause of switchStatement.caseBlock.clauses) {\n        const text = clause.kind === 292 ? clause.expression.text : void 0;\n        witnesses.push(text && !contains(witnesses, text) ? text : void 0);\n      }\n      return witnesses;\n    }\n    function eachTypeContainedIn(source, types) {\n      return source.flags & 1048576 ? !forEach(source.types, (t) => !contains(types, t)) : contains(types, source);\n    }\n    function isTypeSubsetOf(source, target) {\n      return source === target || target.flags & 1048576 && isTypeSubsetOfUnion(source, target);\n    }\n    function isTypeSubsetOfUnion(source, target) {\n      if (source.flags & 1048576) {\n        for (const t of source.types) {\n          if (!containsType(target.types, t)) {\n            return false;\n          }\n        }\n        return true;\n      }\n      if (source.flags & 1056 && getBaseTypeOfEnumLikeType(source) === target) {\n        return true;\n      }\n      return containsType(target.types, source);\n    }\n    function forEachType(type, f) {\n      return type.flags & 1048576 ? forEach(type.types, f) : f(type);\n    }\n    function someType(type, f) {\n      return type.flags & 1048576 ? some(type.types, f) : f(type);\n    }\n    function everyType(type, f) {\n      return type.flags & 1048576 ? every(type.types, f) : f(type);\n    }\n    function everyContainedType(type, f) {\n      return type.flags & 3145728 ? every(type.types, f) : f(type);\n    }\n    function filterType(type, f) {\n      if (type.flags & 1048576) {\n        const types = type.types;\n        const filtered = filter(types, f);\n        if (filtered === types) {\n          return type;\n        }\n        const origin = type.origin;\n        let newOrigin;\n        if (origin && origin.flags & 1048576) {\n          const originTypes = origin.types;\n          const originFiltered = filter(originTypes, (t) => !!(t.flags & 1048576) || f(t));\n          if (originTypes.length - originFiltered.length === types.length - filtered.length) {\n            if (originFiltered.length === 1) {\n              return originFiltered[0];\n            }\n            newOrigin = createOriginUnionOrIntersectionType(1048576, originFiltered);\n          }\n        }\n        return getUnionTypeFromSortedList(filtered, type.objectFlags & (32768 | 16777216), void 0, void 0, newOrigin);\n      }\n      return type.flags & 131072 || f(type) ? type : neverType;\n    }\n    function removeType(type, targetType) {\n      return filterType(type, (t) => t !== targetType);\n    }\n    function countTypes(type) {\n      return type.flags & 1048576 ? type.types.length : 1;\n    }\n    function mapType(type, mapper, noReductions) {\n      if (type.flags & 131072) {\n        return type;\n      }\n      if (!(type.flags & 1048576)) {\n        return mapper(type);\n      }\n      const origin = type.origin;\n      const types = origin && origin.flags & 1048576 ? origin.types : type.types;\n      let mappedTypes;\n      let changed = false;\n      for (const t of types) {\n        const mapped = t.flags & 1048576 ? mapType(t, mapper, noReductions) : mapper(t);\n        changed || (changed = t !== mapped);\n        if (mapped) {\n          if (!mappedTypes) {\n            mappedTypes = [mapped];\n          } else {\n            mappedTypes.push(mapped);\n          }\n        }\n      }\n      return changed ? mappedTypes && getUnionType(mappedTypes, noReductions ? 0 : 1) : type;\n    }\n    function mapTypeWithAlias(type, mapper, aliasSymbol, aliasTypeArguments) {\n      return type.flags & 1048576 && aliasSymbol ? getUnionType(map(type.types, mapper), 1, aliasSymbol, aliasTypeArguments) : mapType(type, mapper);\n    }\n    function extractTypesOfKind(type, kind) {\n      return filterType(type, (t) => (t.flags & kind) !== 0);\n    }\n    function replacePrimitivesWithLiterals(typeWithPrimitives, typeWithLiterals) {\n      if (maybeTypeOfKind(typeWithPrimitives, 4 | 134217728 | 8 | 64) && maybeTypeOfKind(typeWithLiterals, 128 | 134217728 | 268435456 | 256 | 2048)) {\n        return mapType(typeWithPrimitives, (t) => t.flags & 4 ? extractTypesOfKind(typeWithLiterals, 4 | 128 | 134217728 | 268435456) : isPatternLiteralType(t) && !maybeTypeOfKind(typeWithLiterals, 4 | 134217728 | 268435456) ? extractTypesOfKind(typeWithLiterals, 128) : t.flags & 8 ? extractTypesOfKind(typeWithLiterals, 8 | 256) : t.flags & 64 ? extractTypesOfKind(typeWithLiterals, 64 | 2048) : t);\n      }\n      return typeWithPrimitives;\n    }\n    function isIncomplete(flowType) {\n      return flowType.flags === 0;\n    }\n    function getTypeFromFlowType(flowType) {\n      return flowType.flags === 0 ? flowType.type : flowType;\n    }\n    function createFlowType(type, incomplete) {\n      return incomplete ? { flags: 0, type: type.flags & 131072 ? silentNeverType : type } : type;\n    }\n    function createEvolvingArrayType(elementType) {\n      const result = createObjectType(256);\n      result.elementType = elementType;\n      return result;\n    }\n    function getEvolvingArrayType(elementType) {\n      return evolvingArrayTypes[elementType.id] || (evolvingArrayTypes[elementType.id] = createEvolvingArrayType(elementType));\n    }\n    function addEvolvingArrayElementType(evolvingArrayType, node) {\n      const elementType = getRegularTypeOfObjectLiteral(getBaseTypeOfLiteralType(getContextFreeTypeOfExpression(node)));\n      return isTypeSubsetOf(elementType, evolvingArrayType.elementType) ? evolvingArrayType : getEvolvingArrayType(getUnionType([evolvingArrayType.elementType, elementType]));\n    }\n    function createFinalArrayType(elementType) {\n      return elementType.flags & 131072 ? autoArrayType : createArrayType(elementType.flags & 1048576 ? getUnionType(elementType.types, 2) : elementType);\n    }\n    function getFinalArrayType(evolvingArrayType) {\n      return evolvingArrayType.finalArrayType || (evolvingArrayType.finalArrayType = createFinalArrayType(evolvingArrayType.elementType));\n    }\n    function finalizeEvolvingArrayType(type) {\n      return getObjectFlags(type) & 256 ? getFinalArrayType(type) : type;\n    }\n    function getElementTypeOfEvolvingArrayType(type) {\n      return getObjectFlags(type) & 256 ? type.elementType : neverType;\n    }\n    function isEvolvingArrayTypeList(types) {\n      let hasEvolvingArrayType = false;\n      for (const t of types) {\n        if (!(t.flags & 131072)) {\n          if (!(getObjectFlags(t) & 256)) {\n            return false;\n          }\n          hasEvolvingArrayType = true;\n        }\n      }\n      return hasEvolvingArrayType;\n    }\n    function isEvolvingArrayOperationTarget(node) {\n      const root = getReferenceRoot(node);\n      const parent2 = root.parent;\n      const isLengthPushOrUnshift = isPropertyAccessExpression(parent2) && (parent2.name.escapedText === \"length\" || parent2.parent.kind === 210 && isIdentifier(parent2.name) && isPushOrUnshiftIdentifier(parent2.name));\n      const isElementAssignment = parent2.kind === 209 && parent2.expression === root && parent2.parent.kind === 223 && parent2.parent.operatorToken.kind === 63 && parent2.parent.left === parent2 && !isAssignmentTarget(parent2.parent) && isTypeAssignableToKind(getTypeOfExpression(parent2.argumentExpression), 296);\n      return isLengthPushOrUnshift || isElementAssignment;\n    }\n    function isDeclarationWithExplicitTypeAnnotation(node) {\n      return (isVariableDeclaration(node) || isPropertyDeclaration(node) || isPropertySignature(node) || isParameter(node)) && !!(getEffectiveTypeAnnotationNode(node) || isInJSFile(node) && hasInitializer(node) && node.initializer && isFunctionExpressionOrArrowFunction(node.initializer) && getEffectiveReturnTypeNode(node.initializer));\n    }\n    function getExplicitTypeOfSymbol(symbol, diagnostic) {\n      symbol = resolveSymbol(symbol);\n      if (symbol.flags & (16 | 8192 | 32 | 512)) {\n        return getTypeOfSymbol(symbol);\n      }\n      if (symbol.flags & (3 | 4)) {\n        if (getCheckFlags(symbol) & 262144) {\n          const origin = symbol.links.syntheticOrigin;\n          if (origin && getExplicitTypeOfSymbol(origin)) {\n            return getTypeOfSymbol(symbol);\n          }\n        }\n        const declaration = symbol.valueDeclaration;\n        if (declaration) {\n          if (isDeclarationWithExplicitTypeAnnotation(declaration)) {\n            return getTypeOfSymbol(symbol);\n          }\n          if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 247) {\n            const statement = declaration.parent.parent;\n            const expressionType = getTypeOfDottedName(statement.expression, void 0);\n            if (expressionType) {\n              const use = statement.awaitModifier ? 15 : 13;\n              return checkIteratedTypeOrElementType(use, expressionType, undefinedType, void 0);\n            }\n          }\n          if (diagnostic) {\n            addRelatedInfo(diagnostic, createDiagnosticForNode(declaration, Diagnostics._0_needs_an_explicit_type_annotation, symbolToString(symbol)));\n          }\n        }\n      }\n    }\n    function getTypeOfDottedName(node, diagnostic) {\n      if (!(node.flags & 33554432)) {\n        switch (node.kind) {\n          case 79:\n            const symbol = getExportSymbolOfValueSymbolIfExported(getResolvedSymbol(node));\n            return getExplicitTypeOfSymbol(symbol, diagnostic);\n          case 108:\n            return getExplicitThisType(node);\n          case 106:\n            return checkSuperExpression(node);\n          case 208: {\n            const type = getTypeOfDottedName(node.expression, diagnostic);\n            if (type) {\n              const name = node.name;\n              let prop;\n              if (isPrivateIdentifier(name)) {\n                if (!type.symbol) {\n                  return void 0;\n                }\n                prop = getPropertyOfType(type, getSymbolNameForPrivateIdentifier(type.symbol, name.escapedText));\n              } else {\n                prop = getPropertyOfType(type, name.escapedText);\n              }\n              return prop && getExplicitTypeOfSymbol(prop, diagnostic);\n            }\n            return void 0;\n          }\n          case 214:\n            return getTypeOfDottedName(node.expression, diagnostic);\n        }\n      }\n    }\n    function getEffectsSignature(node) {\n      const links = getNodeLinks(node);\n      let signature = links.effectsSignature;\n      if (signature === void 0) {\n        let funcType;\n        if (node.parent.kind === 241) {\n          funcType = getTypeOfDottedName(node.expression, void 0);\n        } else if (node.expression.kind !== 106) {\n          if (isOptionalChain(node)) {\n            funcType = checkNonNullType(getOptionalExpressionType(checkExpression(node.expression), node.expression), node.expression);\n          } else {\n            funcType = checkNonNullExpression(node.expression);\n          }\n        }\n        const signatures = getSignaturesOfType(funcType && getApparentType(funcType) || unknownType, 0);\n        const candidate = signatures.length === 1 && !signatures[0].typeParameters ? signatures[0] : some(signatures, hasTypePredicateOrNeverReturnType) ? getResolvedSignature(node) : void 0;\n        signature = links.effectsSignature = candidate && hasTypePredicateOrNeverReturnType(candidate) ? candidate : unknownSignature;\n      }\n      return signature === unknownSignature ? void 0 : signature;\n    }\n    function hasTypePredicateOrNeverReturnType(signature) {\n      return !!(getTypePredicateOfSignature(signature) || signature.declaration && (getReturnTypeFromAnnotation(signature.declaration) || unknownType).flags & 131072);\n    }\n    function getTypePredicateArgument(predicate, callExpression) {\n      if (predicate.kind === 1 || predicate.kind === 3) {\n        return callExpression.arguments[predicate.parameterIndex];\n      }\n      const invokedExpression = skipParentheses(callExpression.expression);\n      return isAccessExpression(invokedExpression) ? skipParentheses(invokedExpression.expression) : void 0;\n    }\n    function reportFlowControlError(node) {\n      const block = findAncestor(node, isFunctionOrModuleBlock);\n      const sourceFile = getSourceFileOfNode(node);\n      const span = getSpanOfTokenAtPosition(sourceFile, block.statements.pos);\n      diagnostics.add(createFileDiagnostic(sourceFile, span.start, span.length, Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis));\n    }\n    function isReachableFlowNode(flow) {\n      const result = isReachableFlowNodeWorker(flow, false);\n      lastFlowNode = flow;\n      lastFlowNodeReachable = result;\n      return result;\n    }\n    function isFalseExpression(expr) {\n      const node = skipParentheses(expr, true);\n      return node.kind === 95 || node.kind === 223 && (node.operatorToken.kind === 55 && (isFalseExpression(node.left) || isFalseExpression(node.right)) || node.operatorToken.kind === 56 && isFalseExpression(node.left) && isFalseExpression(node.right));\n    }\n    function isReachableFlowNodeWorker(flow, noCacheCheck) {\n      while (true) {\n        if (flow === lastFlowNode) {\n          return lastFlowNodeReachable;\n        }\n        const flags = flow.flags;\n        if (flags & 4096) {\n          if (!noCacheCheck) {\n            const id = getFlowNodeId(flow);\n            const reachable = flowNodeReachable[id];\n            return reachable !== void 0 ? reachable : flowNodeReachable[id] = isReachableFlowNodeWorker(flow, true);\n          }\n          noCacheCheck = false;\n        }\n        if (flags & (16 | 96 | 256)) {\n          flow = flow.antecedent;\n        } else if (flags & 512) {\n          const signature = getEffectsSignature(flow.node);\n          if (signature) {\n            const predicate = getTypePredicateOfSignature(signature);\n            if (predicate && predicate.kind === 3 && !predicate.type) {\n              const predicateArgument = flow.node.arguments[predicate.parameterIndex];\n              if (predicateArgument && isFalseExpression(predicateArgument)) {\n                return false;\n              }\n            }\n            if (getReturnTypeOfSignature(signature).flags & 131072) {\n              return false;\n            }\n          }\n          flow = flow.antecedent;\n        } else if (flags & 4) {\n          return some(flow.antecedents, (f) => isReachableFlowNodeWorker(f, false));\n        } else if (flags & 8) {\n          const antecedents = flow.antecedents;\n          if (antecedents === void 0 || antecedents.length === 0) {\n            return false;\n          }\n          flow = antecedents[0];\n        } else if (flags & 128) {\n          if (flow.clauseStart === flow.clauseEnd && isExhaustiveSwitchStatement(flow.switchStatement)) {\n            return false;\n          }\n          flow = flow.antecedent;\n        } else if (flags & 1024) {\n          lastFlowNode = void 0;\n          const target = flow.target;\n          const saveAntecedents = target.antecedents;\n          target.antecedents = flow.antecedents;\n          const result = isReachableFlowNodeWorker(flow.antecedent, false);\n          target.antecedents = saveAntecedents;\n          return result;\n        } else {\n          return !(flags & 1);\n        }\n      }\n    }\n    function isPostSuperFlowNode(flow, noCacheCheck) {\n      while (true) {\n        const flags = flow.flags;\n        if (flags & 4096) {\n          if (!noCacheCheck) {\n            const id = getFlowNodeId(flow);\n            const postSuper = flowNodePostSuper[id];\n            return postSuper !== void 0 ? postSuper : flowNodePostSuper[id] = isPostSuperFlowNode(flow, true);\n          }\n          noCacheCheck = false;\n        }\n        if (flags & (16 | 96 | 256 | 128)) {\n          flow = flow.antecedent;\n        } else if (flags & 512) {\n          if (flow.node.expression.kind === 106) {\n            return true;\n          }\n          flow = flow.antecedent;\n        } else if (flags & 4) {\n          return every(flow.antecedents, (f) => isPostSuperFlowNode(f, false));\n        } else if (flags & 8) {\n          flow = flow.antecedents[0];\n        } else if (flags & 1024) {\n          const target = flow.target;\n          const saveAntecedents = target.antecedents;\n          target.antecedents = flow.antecedents;\n          const result = isPostSuperFlowNode(flow.antecedent, false);\n          target.antecedents = saveAntecedents;\n          return result;\n        } else {\n          return !!(flags & 1);\n        }\n      }\n    }\n    function isConstantReference(node) {\n      switch (node.kind) {\n        case 79:\n          if (!isThisInTypeQuery(node)) {\n            const symbol = getResolvedSymbol(node);\n            return isConstVariable(symbol) || isParameterOrCatchClauseVariable(symbol) && !isSymbolAssigned(symbol);\n          }\n          break;\n        case 208:\n        case 209:\n          return isConstantReference(node.expression) && isReadonlySymbol(getNodeLinks(node).resolvedSymbol || unknownSymbol);\n      }\n      return false;\n    }\n    function getFlowTypeOfReference(reference, declaredType, initialType = declaredType, flowContainer, flowNode = ((_a2) => (_a2 = tryCast(reference, canHaveFlowNode)) == null ? void 0 : _a2.flowNode)()) {\n      let key;\n      let isKeySet = false;\n      let flowDepth = 0;\n      if (flowAnalysisDisabled) {\n        return errorType;\n      }\n      if (!flowNode) {\n        return declaredType;\n      }\n      flowInvocationCount++;\n      const sharedFlowStart = sharedFlowCount;\n      const evolvedType = getTypeFromFlowType(getTypeAtFlowNode(flowNode));\n      sharedFlowCount = sharedFlowStart;\n      const resultType = getObjectFlags(evolvedType) & 256 && isEvolvingArrayOperationTarget(reference) ? autoArrayType : finalizeEvolvingArrayType(evolvedType);\n      if (resultType === unreachableNeverType || reference.parent && reference.parent.kind === 232 && !(resultType.flags & 131072) && getTypeWithFacts(resultType, 2097152).flags & 131072) {\n        return declaredType;\n      }\n      return resultType === nonNullUnknownType ? unknownType : resultType;\n      function getOrSetCacheKey() {\n        if (isKeySet) {\n          return key;\n        }\n        isKeySet = true;\n        return key = getFlowCacheKey(reference, declaredType, initialType, flowContainer);\n      }\n      function getTypeAtFlowNode(flow) {\n        var _a3;\n        if (flowDepth === 2e3) {\n          (_a3 = tracing) == null ? void 0 : _a3.instant(tracing.Phase.CheckTypes, \"getTypeAtFlowNode_DepthLimit\", { flowId: flow.id });\n          flowAnalysisDisabled = true;\n          reportFlowControlError(reference);\n          return errorType;\n        }\n        flowDepth++;\n        let sharedFlow;\n        while (true) {\n          const flags = flow.flags;\n          if (flags & 4096) {\n            for (let i = sharedFlowStart; i < sharedFlowCount; i++) {\n              if (sharedFlowNodes[i] === flow) {\n                flowDepth--;\n                return sharedFlowTypes[i];\n              }\n            }\n            sharedFlow = flow;\n          }\n          let type;\n          if (flags & 16) {\n            type = getTypeAtFlowAssignment(flow);\n            if (!type) {\n              flow = flow.antecedent;\n              continue;\n            }\n          } else if (flags & 512) {\n            type = getTypeAtFlowCall(flow);\n            if (!type) {\n              flow = flow.antecedent;\n              continue;\n            }\n          } else if (flags & 96) {\n            type = getTypeAtFlowCondition(flow);\n          } else if (flags & 128) {\n            type = getTypeAtSwitchClause(flow);\n          } else if (flags & 12) {\n            if (flow.antecedents.length === 1) {\n              flow = flow.antecedents[0];\n              continue;\n            }\n            type = flags & 4 ? getTypeAtFlowBranchLabel(flow) : getTypeAtFlowLoopLabel(flow);\n          } else if (flags & 256) {\n            type = getTypeAtFlowArrayMutation(flow);\n            if (!type) {\n              flow = flow.antecedent;\n              continue;\n            }\n          } else if (flags & 1024) {\n            const target = flow.target;\n            const saveAntecedents = target.antecedents;\n            target.antecedents = flow.antecedents;\n            type = getTypeAtFlowNode(flow.antecedent);\n            target.antecedents = saveAntecedents;\n          } else if (flags & 2) {\n            const container = flow.node;\n            if (container && container !== flowContainer && reference.kind !== 208 && reference.kind !== 209 && reference.kind !== 108) {\n              flow = container.flowNode;\n              continue;\n            }\n            type = initialType;\n          } else {\n            type = convertAutoToAny(declaredType);\n          }\n          if (sharedFlow) {\n            sharedFlowNodes[sharedFlowCount] = sharedFlow;\n            sharedFlowTypes[sharedFlowCount] = type;\n            sharedFlowCount++;\n          }\n          flowDepth--;\n          return type;\n        }\n      }\n      function getInitialOrAssignedType(flow) {\n        const node = flow.node;\n        return getNarrowableTypeForReference(node.kind === 257 || node.kind === 205 ? getInitialType(node) : getAssignedType(node), reference);\n      }\n      function getTypeAtFlowAssignment(flow) {\n        const node = flow.node;\n        if (isMatchingReference(reference, node)) {\n          if (!isReachableFlowNode(flow)) {\n            return unreachableNeverType;\n          }\n          if (getAssignmentTargetKind(node) === 2) {\n            const flowType = getTypeAtFlowNode(flow.antecedent);\n            return createFlowType(getBaseTypeOfLiteralType(getTypeFromFlowType(flowType)), isIncomplete(flowType));\n          }\n          if (declaredType === autoType || declaredType === autoArrayType) {\n            if (isEmptyArrayAssignment(node)) {\n              return getEvolvingArrayType(neverType);\n            }\n            const assignedType = getWidenedLiteralType(getInitialOrAssignedType(flow));\n            return isTypeAssignableTo(assignedType, declaredType) ? assignedType : anyArrayType;\n          }\n          if (declaredType.flags & 1048576) {\n            return getAssignmentReducedType(declaredType, getInitialOrAssignedType(flow));\n          }\n          return declaredType;\n        }\n        if (containsMatchingReference(reference, node)) {\n          if (!isReachableFlowNode(flow)) {\n            return unreachableNeverType;\n          }\n          if (isVariableDeclaration(node) && (isInJSFile(node) || isVarConst(node))) {\n            const init = getDeclaredExpandoInitializer(node);\n            if (init && (init.kind === 215 || init.kind === 216)) {\n              return getTypeAtFlowNode(flow.antecedent);\n            }\n          }\n          return declaredType;\n        }\n        if (isVariableDeclaration(node) && node.parent.parent.kind === 246 && (isMatchingReference(reference, node.parent.parent.expression) || optionalChainContainsReference(node.parent.parent.expression, reference))) {\n          return getNonNullableTypeIfNeeded(finalizeEvolvingArrayType(getTypeFromFlowType(getTypeAtFlowNode(flow.antecedent))));\n        }\n        return void 0;\n      }\n      function narrowTypeByAssertion(type, expr) {\n        const node = skipParentheses(expr, true);\n        if (node.kind === 95) {\n          return unreachableNeverType;\n        }\n        if (node.kind === 223) {\n          if (node.operatorToken.kind === 55) {\n            return narrowTypeByAssertion(narrowTypeByAssertion(type, node.left), node.right);\n          }\n          if (node.operatorToken.kind === 56) {\n            return getUnionType([narrowTypeByAssertion(type, node.left), narrowTypeByAssertion(type, node.right)]);\n          }\n        }\n        return narrowType(type, node, true);\n      }\n      function getTypeAtFlowCall(flow) {\n        const signature = getEffectsSignature(flow.node);\n        if (signature) {\n          const predicate = getTypePredicateOfSignature(signature);\n          if (predicate && (predicate.kind === 2 || predicate.kind === 3)) {\n            const flowType = getTypeAtFlowNode(flow.antecedent);\n            const type = finalizeEvolvingArrayType(getTypeFromFlowType(flowType));\n            const narrowedType = predicate.type ? narrowTypeByTypePredicate(type, predicate, flow.node, true) : predicate.kind === 3 && predicate.parameterIndex >= 0 && predicate.parameterIndex < flow.node.arguments.length ? narrowTypeByAssertion(type, flow.node.arguments[predicate.parameterIndex]) : type;\n            return narrowedType === type ? flowType : createFlowType(narrowedType, isIncomplete(flowType));\n          }\n          if (getReturnTypeOfSignature(signature).flags & 131072) {\n            return unreachableNeverType;\n          }\n        }\n        return void 0;\n      }\n      function getTypeAtFlowArrayMutation(flow) {\n        if (declaredType === autoType || declaredType === autoArrayType) {\n          const node = flow.node;\n          const expr = node.kind === 210 ? node.expression.expression : node.left.expression;\n          if (isMatchingReference(reference, getReferenceCandidate(expr))) {\n            const flowType = getTypeAtFlowNode(flow.antecedent);\n            const type = getTypeFromFlowType(flowType);\n            if (getObjectFlags(type) & 256) {\n              let evolvedType2 = type;\n              if (node.kind === 210) {\n                for (const arg of node.arguments) {\n                  evolvedType2 = addEvolvingArrayElementType(evolvedType2, arg);\n                }\n              } else {\n                const indexType = getContextFreeTypeOfExpression(node.left.argumentExpression);\n                if (isTypeAssignableToKind(indexType, 296)) {\n                  evolvedType2 = addEvolvingArrayElementType(evolvedType2, node.right);\n                }\n              }\n              return evolvedType2 === type ? flowType : createFlowType(evolvedType2, isIncomplete(flowType));\n            }\n            return flowType;\n          }\n        }\n        return void 0;\n      }\n      function getTypeAtFlowCondition(flow) {\n        const flowType = getTypeAtFlowNode(flow.antecedent);\n        const type = getTypeFromFlowType(flowType);\n        if (type.flags & 131072) {\n          return flowType;\n        }\n        const assumeTrue = (flow.flags & 32) !== 0;\n        const nonEvolvingType = finalizeEvolvingArrayType(type);\n        const narrowedType = narrowType(nonEvolvingType, flow.node, assumeTrue);\n        if (narrowedType === nonEvolvingType) {\n          return flowType;\n        }\n        return createFlowType(narrowedType, isIncomplete(flowType));\n      }\n      function getTypeAtSwitchClause(flow) {\n        const expr = flow.switchStatement.expression;\n        const flowType = getTypeAtFlowNode(flow.antecedent);\n        let type = getTypeFromFlowType(flowType);\n        if (isMatchingReference(reference, expr)) {\n          type = narrowTypeBySwitchOnDiscriminant(type, flow.switchStatement, flow.clauseStart, flow.clauseEnd);\n        } else if (expr.kind === 218 && isMatchingReference(reference, expr.expression)) {\n          type = narrowTypeBySwitchOnTypeOf(type, flow.switchStatement, flow.clauseStart, flow.clauseEnd);\n        } else {\n          if (strictNullChecks) {\n            if (optionalChainContainsReference(expr, reference)) {\n              type = narrowTypeBySwitchOptionalChainContainment(type, flow.switchStatement, flow.clauseStart, flow.clauseEnd, (t) => !(t.flags & (32768 | 131072)));\n            } else if (expr.kind === 218 && optionalChainContainsReference(expr.expression, reference)) {\n              type = narrowTypeBySwitchOptionalChainContainment(type, flow.switchStatement, flow.clauseStart, flow.clauseEnd, (t) => !(t.flags & 131072 || t.flags & 128 && t.value === \"undefined\"));\n            }\n          }\n          const access = getDiscriminantPropertyAccess(expr, type);\n          if (access) {\n            type = narrowTypeBySwitchOnDiscriminantProperty(type, access, flow.switchStatement, flow.clauseStart, flow.clauseEnd);\n          }\n        }\n        return createFlowType(type, isIncomplete(flowType));\n      }\n      function getTypeAtFlowBranchLabel(flow) {\n        const antecedentTypes = [];\n        let subtypeReduction = false;\n        let seenIncomplete = false;\n        let bypassFlow;\n        for (const antecedent of flow.antecedents) {\n          if (!bypassFlow && antecedent.flags & 128 && antecedent.clauseStart === antecedent.clauseEnd) {\n            bypassFlow = antecedent;\n            continue;\n          }\n          const flowType = getTypeAtFlowNode(antecedent);\n          const type = getTypeFromFlowType(flowType);\n          if (type === declaredType && declaredType === initialType) {\n            return type;\n          }\n          pushIfUnique(antecedentTypes, type);\n          if (!isTypeSubsetOf(type, declaredType)) {\n            subtypeReduction = true;\n          }\n          if (isIncomplete(flowType)) {\n            seenIncomplete = true;\n          }\n        }\n        if (bypassFlow) {\n          const flowType = getTypeAtFlowNode(bypassFlow);\n          const type = getTypeFromFlowType(flowType);\n          if (!(type.flags & 131072) && !contains(antecedentTypes, type) && !isExhaustiveSwitchStatement(bypassFlow.switchStatement)) {\n            if (type === declaredType && declaredType === initialType) {\n              return type;\n            }\n            antecedentTypes.push(type);\n            if (!isTypeSubsetOf(type, declaredType)) {\n              subtypeReduction = true;\n            }\n            if (isIncomplete(flowType)) {\n              seenIncomplete = true;\n            }\n          }\n        }\n        return createFlowType(getUnionOrEvolvingArrayType(antecedentTypes, subtypeReduction ? 2 : 1), seenIncomplete);\n      }\n      function getTypeAtFlowLoopLabel(flow) {\n        const id = getFlowNodeId(flow);\n        const cache = flowLoopCaches[id] || (flowLoopCaches[id] = /* @__PURE__ */ new Map());\n        const key2 = getOrSetCacheKey();\n        if (!key2) {\n          return declaredType;\n        }\n        const cached = cache.get(key2);\n        if (cached) {\n          return cached;\n        }\n        for (let i = flowLoopStart; i < flowLoopCount; i++) {\n          if (flowLoopNodes[i] === flow && flowLoopKeys[i] === key2 && flowLoopTypes[i].length) {\n            return createFlowType(getUnionOrEvolvingArrayType(flowLoopTypes[i], 1), true);\n          }\n        }\n        const antecedentTypes = [];\n        let subtypeReduction = false;\n        let firstAntecedentType;\n        for (const antecedent of flow.antecedents) {\n          let flowType;\n          if (!firstAntecedentType) {\n            flowType = firstAntecedentType = getTypeAtFlowNode(antecedent);\n          } else {\n            flowLoopNodes[flowLoopCount] = flow;\n            flowLoopKeys[flowLoopCount] = key2;\n            flowLoopTypes[flowLoopCount] = antecedentTypes;\n            flowLoopCount++;\n            const saveFlowTypeCache = flowTypeCache;\n            flowTypeCache = void 0;\n            flowType = getTypeAtFlowNode(antecedent);\n            flowTypeCache = saveFlowTypeCache;\n            flowLoopCount--;\n            const cached2 = cache.get(key2);\n            if (cached2) {\n              return cached2;\n            }\n          }\n          const type = getTypeFromFlowType(flowType);\n          pushIfUnique(antecedentTypes, type);\n          if (!isTypeSubsetOf(type, declaredType)) {\n            subtypeReduction = true;\n          }\n          if (type === declaredType) {\n            break;\n          }\n        }\n        const result = getUnionOrEvolvingArrayType(antecedentTypes, subtypeReduction ? 2 : 1);\n        if (isIncomplete(firstAntecedentType)) {\n          return createFlowType(result, true);\n        }\n        cache.set(key2, result);\n        return result;\n      }\n      function getUnionOrEvolvingArrayType(types, subtypeReduction) {\n        if (isEvolvingArrayTypeList(types)) {\n          return getEvolvingArrayType(getUnionType(map(types, getElementTypeOfEvolvingArrayType)));\n        }\n        const result = recombineUnknownType(getUnionType(sameMap(types, finalizeEvolvingArrayType), subtypeReduction));\n        if (result !== declaredType && result.flags & declaredType.flags & 1048576 && arraysEqual(result.types, declaredType.types)) {\n          return declaredType;\n        }\n        return result;\n      }\n      function getCandidateDiscriminantPropertyAccess(expr) {\n        if (isBindingPattern(reference) || isFunctionExpressionOrArrowFunction(reference) || isObjectLiteralMethod(reference)) {\n          if (isIdentifier(expr)) {\n            const symbol = getResolvedSymbol(expr);\n            const declaration = symbol.valueDeclaration;\n            if (declaration && (isBindingElement(declaration) || isParameter(declaration)) && reference === declaration.parent && !declaration.initializer && !declaration.dotDotDotToken) {\n              return declaration;\n            }\n          }\n        } else if (isAccessExpression(expr)) {\n          if (isMatchingReference(reference, expr.expression)) {\n            return expr;\n          }\n        } else if (isIdentifier(expr)) {\n          const symbol = getResolvedSymbol(expr);\n          if (isConstVariable(symbol)) {\n            const declaration = symbol.valueDeclaration;\n            if (isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && isAccessExpression(declaration.initializer) && isMatchingReference(reference, declaration.initializer.expression)) {\n              return declaration.initializer;\n            }\n            if (isBindingElement(declaration) && !declaration.initializer) {\n              const parent2 = declaration.parent.parent;\n              if (isVariableDeclaration(parent2) && !parent2.type && parent2.initializer && (isIdentifier(parent2.initializer) || isAccessExpression(parent2.initializer)) && isMatchingReference(reference, parent2.initializer)) {\n                return declaration;\n              }\n            }\n          }\n        }\n        return void 0;\n      }\n      function getDiscriminantPropertyAccess(expr, computedType) {\n        const type = declaredType.flags & 1048576 ? declaredType : computedType;\n        if (type.flags & 1048576) {\n          const access = getCandidateDiscriminantPropertyAccess(expr);\n          if (access) {\n            const name = getAccessedPropertyName(access);\n            if (name && isDiscriminantProperty(type, name)) {\n              return access;\n            }\n          }\n        }\n        return void 0;\n      }\n      function narrowTypeByDiscriminant(type, access, narrowType2) {\n        const propName = getAccessedPropertyName(access);\n        if (propName === void 0) {\n          return type;\n        }\n        const optionalChain = isOptionalChain(access);\n        const removeNullable = strictNullChecks && (optionalChain || isNonNullAccess(access)) && maybeTypeOfKind(type, 98304);\n        let propType = getTypeOfPropertyOfType(removeNullable ? getTypeWithFacts(type, 2097152) : type, propName);\n        if (!propType) {\n          return type;\n        }\n        propType = removeNullable && optionalChain ? getOptionalType(propType) : propType;\n        const narrowedPropType = narrowType2(propType);\n        return filterType(type, (t) => {\n          const discriminantType = getTypeOfPropertyOrIndexSignature(t, propName);\n          return !(discriminantType.flags & 131072) && !(narrowedPropType.flags & 131072) && areTypesComparable(narrowedPropType, discriminantType);\n        });\n      }\n      function narrowTypeByDiscriminantProperty(type, access, operator, value, assumeTrue) {\n        if ((operator === 36 || operator === 37) && type.flags & 1048576) {\n          const keyPropertyName = getKeyPropertyName(type);\n          if (keyPropertyName && keyPropertyName === getAccessedPropertyName(access)) {\n            const candidate = getConstituentTypeForKeyType(type, getTypeOfExpression(value));\n            if (candidate) {\n              return operator === (assumeTrue ? 36 : 37) ? candidate : isUnitType(getTypeOfPropertyOfType(candidate, keyPropertyName) || unknownType) ? removeType(type, candidate) : type;\n            }\n          }\n        }\n        return narrowTypeByDiscriminant(type, access, (t) => narrowTypeByEquality(t, operator, value, assumeTrue));\n      }\n      function narrowTypeBySwitchOnDiscriminantProperty(type, access, switchStatement, clauseStart, clauseEnd) {\n        if (clauseStart < clauseEnd && type.flags & 1048576 && getKeyPropertyName(type) === getAccessedPropertyName(access)) {\n          const clauseTypes = getSwitchClauseTypes(switchStatement).slice(clauseStart, clauseEnd);\n          const candidate = getUnionType(map(clauseTypes, (t) => getConstituentTypeForKeyType(type, t) || unknownType));\n          if (candidate !== unknownType) {\n            return candidate;\n          }\n        }\n        return narrowTypeByDiscriminant(type, access, (t) => narrowTypeBySwitchOnDiscriminant(t, switchStatement, clauseStart, clauseEnd));\n      }\n      function narrowTypeByTruthiness(type, expr, assumeTrue) {\n        if (isMatchingReference(reference, expr)) {\n          return getAdjustedTypeWithFacts(type, assumeTrue ? 4194304 : 8388608);\n        }\n        if (strictNullChecks && assumeTrue && optionalChainContainsReference(expr, reference)) {\n          type = getAdjustedTypeWithFacts(type, 2097152);\n        }\n        const access = getDiscriminantPropertyAccess(expr, type);\n        if (access) {\n          return narrowTypeByDiscriminant(type, access, (t) => getTypeWithFacts(t, assumeTrue ? 4194304 : 8388608));\n        }\n        return type;\n      }\n      function isTypePresencePossible(type, propName, assumeTrue) {\n        const prop = getPropertyOfType(type, propName);\n        return prop ? !!(prop.flags & 16777216) || assumeTrue : !!getApplicableIndexInfoForName(type, propName) || !assumeTrue;\n      }\n      function narrowTypeByInKeyword(type, nameType, assumeTrue) {\n        const name = getPropertyNameFromType(nameType);\n        const isKnownProperty2 = someType(type, (t) => isTypePresencePossible(t, name, true));\n        if (isKnownProperty2) {\n          return filterType(type, (t) => isTypePresencePossible(t, name, assumeTrue));\n        }\n        if (assumeTrue) {\n          const recordSymbol = getGlobalRecordSymbol();\n          if (recordSymbol) {\n            return getIntersectionType([type, getTypeAliasInstantiation(recordSymbol, [nameType, unknownType])]);\n          }\n        }\n        return type;\n      }\n      function narrowTypeByBinaryExpression(type, expr, assumeTrue) {\n        switch (expr.operatorToken.kind) {\n          case 63:\n          case 75:\n          case 76:\n          case 77:\n            return narrowTypeByTruthiness(narrowType(type, expr.right, assumeTrue), expr.left, assumeTrue);\n          case 34:\n          case 35:\n          case 36:\n          case 37:\n            const operator = expr.operatorToken.kind;\n            const left = getReferenceCandidate(expr.left);\n            const right = getReferenceCandidate(expr.right);\n            if (left.kind === 218 && isStringLiteralLike(right)) {\n              return narrowTypeByTypeof(type, left, operator, right, assumeTrue);\n            }\n            if (right.kind === 218 && isStringLiteralLike(left)) {\n              return narrowTypeByTypeof(type, right, operator, left, assumeTrue);\n            }\n            if (isMatchingReference(reference, left)) {\n              return narrowTypeByEquality(type, operator, right, assumeTrue);\n            }\n            if (isMatchingReference(reference, right)) {\n              return narrowTypeByEquality(type, operator, left, assumeTrue);\n            }\n            if (strictNullChecks) {\n              if (optionalChainContainsReference(left, reference)) {\n                type = narrowTypeByOptionalChainContainment(type, operator, right, assumeTrue);\n              } else if (optionalChainContainsReference(right, reference)) {\n                type = narrowTypeByOptionalChainContainment(type, operator, left, assumeTrue);\n              }\n            }\n            const leftAccess = getDiscriminantPropertyAccess(left, type);\n            if (leftAccess) {\n              return narrowTypeByDiscriminantProperty(type, leftAccess, operator, right, assumeTrue);\n            }\n            const rightAccess = getDiscriminantPropertyAccess(right, type);\n            if (rightAccess) {\n              return narrowTypeByDiscriminantProperty(type, rightAccess, operator, left, assumeTrue);\n            }\n            if (isMatchingConstructorReference(left)) {\n              return narrowTypeByConstructor(type, operator, right, assumeTrue);\n            }\n            if (isMatchingConstructorReference(right)) {\n              return narrowTypeByConstructor(type, operator, left, assumeTrue);\n            }\n            break;\n          case 102:\n            return narrowTypeByInstanceof(type, expr, assumeTrue);\n          case 101:\n            if (isPrivateIdentifier(expr.left)) {\n              return narrowTypeByPrivateIdentifierInInExpression(type, expr, assumeTrue);\n            }\n            const target = getReferenceCandidate(expr.right);\n            const leftType = getTypeOfExpression(expr.left);\n            if (leftType.flags & 8576) {\n              if (containsMissingType(type) && isAccessExpression(reference) && isMatchingReference(reference.expression, target) && getAccessedPropertyName(reference) === getPropertyNameFromType(leftType)) {\n                return getTypeWithFacts(type, assumeTrue ? 524288 : 65536);\n              }\n              if (isMatchingReference(reference, target)) {\n                return narrowTypeByInKeyword(type, leftType, assumeTrue);\n              }\n            }\n            break;\n          case 27:\n            return narrowType(type, expr.right, assumeTrue);\n          case 55:\n            return assumeTrue ? narrowType(narrowType(type, expr.left, true), expr.right, true) : getUnionType([narrowType(type, expr.left, false), narrowType(type, expr.right, false)]);\n          case 56:\n            return assumeTrue ? getUnionType([narrowType(type, expr.left, true), narrowType(type, expr.right, true)]) : narrowType(narrowType(type, expr.left, false), expr.right, false);\n        }\n        return type;\n      }\n      function narrowTypeByPrivateIdentifierInInExpression(type, expr, assumeTrue) {\n        const target = getReferenceCandidate(expr.right);\n        if (!isMatchingReference(reference, target)) {\n          return type;\n        }\n        Debug.assertNode(expr.left, isPrivateIdentifier);\n        const symbol = getSymbolForPrivateIdentifierExpression(expr.left);\n        if (symbol === void 0) {\n          return type;\n        }\n        const classSymbol = symbol.parent;\n        const targetType = hasStaticModifier(Debug.checkDefined(symbol.valueDeclaration, \"should always have a declaration\")) ? getTypeOfSymbol(classSymbol) : getDeclaredTypeOfSymbol(classSymbol);\n        return getNarrowedType(type, targetType, assumeTrue, true);\n      }\n      function narrowTypeByOptionalChainContainment(type, operator, value, assumeTrue) {\n        const equalsOperator = operator === 34 || operator === 36;\n        const nullableFlags = operator === 34 || operator === 35 ? 98304 : 32768;\n        const valueType = getTypeOfExpression(value);\n        const removeNullable = equalsOperator !== assumeTrue && everyType(valueType, (t) => !!(t.flags & nullableFlags)) || equalsOperator === assumeTrue && everyType(valueType, (t) => !(t.flags & (3 | nullableFlags)));\n        return removeNullable ? getAdjustedTypeWithFacts(type, 2097152) : type;\n      }\n      function narrowTypeByEquality(type, operator, value, assumeTrue) {\n        if (type.flags & 1) {\n          return type;\n        }\n        if (operator === 35 || operator === 37) {\n          assumeTrue = !assumeTrue;\n        }\n        const valueType = getTypeOfExpression(value);\n        const doubleEquals = operator === 34 || operator === 35;\n        if (valueType.flags & 98304) {\n          if (!strictNullChecks) {\n            return type;\n          }\n          const facts = doubleEquals ? assumeTrue ? 262144 : 2097152 : valueType.flags & 65536 ? assumeTrue ? 131072 : 1048576 : assumeTrue ? 65536 : 524288;\n          return getAdjustedTypeWithFacts(type, facts);\n        }\n        if (assumeTrue) {\n          if (!doubleEquals && (type.flags & 2 || someType(type, isEmptyAnonymousObjectType))) {\n            if (valueType.flags & (134348796 | 67108864) || isEmptyAnonymousObjectType(valueType)) {\n              return valueType;\n            }\n            if (valueType.flags & 524288) {\n              return nonPrimitiveType;\n            }\n          }\n          const filteredType = filterType(type, (t) => areTypesComparable(t, valueType) || doubleEquals && isCoercibleUnderDoubleEquals(t, valueType));\n          return replacePrimitivesWithLiterals(filteredType, valueType);\n        }\n        if (isUnitType(valueType)) {\n          return filterType(type, (t) => !(isUnitLikeType(t) && areTypesComparable(t, valueType)));\n        }\n        return type;\n      }\n      function narrowTypeByTypeof(type, typeOfExpr, operator, literal, assumeTrue) {\n        if (operator === 35 || operator === 37) {\n          assumeTrue = !assumeTrue;\n        }\n        const target = getReferenceCandidate(typeOfExpr.expression);\n        if (!isMatchingReference(reference, target)) {\n          if (strictNullChecks && optionalChainContainsReference(target, reference) && assumeTrue === (literal.text !== \"undefined\")) {\n            type = getAdjustedTypeWithFacts(type, 2097152);\n          }\n          const propertyAccess = getDiscriminantPropertyAccess(target, type);\n          if (propertyAccess) {\n            return narrowTypeByDiscriminant(type, propertyAccess, (t) => narrowTypeByLiteralExpression(t, literal, assumeTrue));\n          }\n          return type;\n        }\n        return narrowTypeByLiteralExpression(type, literal, assumeTrue);\n      }\n      function narrowTypeByLiteralExpression(type, literal, assumeTrue) {\n        return assumeTrue ? narrowTypeByTypeName(type, literal.text) : getAdjustedTypeWithFacts(type, typeofNEFacts.get(literal.text) || 32768);\n      }\n      function narrowTypeBySwitchOptionalChainContainment(type, switchStatement, clauseStart, clauseEnd, clauseCheck) {\n        const everyClauseChecks = clauseStart !== clauseEnd && every(getSwitchClauseTypes(switchStatement).slice(clauseStart, clauseEnd), clauseCheck);\n        return everyClauseChecks ? getTypeWithFacts(type, 2097152) : type;\n      }\n      function narrowTypeBySwitchOnDiscriminant(type, switchStatement, clauseStart, clauseEnd) {\n        const switchTypes = getSwitchClauseTypes(switchStatement);\n        if (!switchTypes.length) {\n          return type;\n        }\n        const clauseTypes = switchTypes.slice(clauseStart, clauseEnd);\n        const hasDefaultClause = clauseStart === clauseEnd || contains(clauseTypes, neverType);\n        if (type.flags & 2 && !hasDefaultClause) {\n          let groundClauseTypes;\n          for (let i = 0; i < clauseTypes.length; i += 1) {\n            const t = clauseTypes[i];\n            if (t.flags & (134348796 | 67108864)) {\n              if (groundClauseTypes !== void 0) {\n                groundClauseTypes.push(t);\n              }\n            } else if (t.flags & 524288) {\n              if (groundClauseTypes === void 0) {\n                groundClauseTypes = clauseTypes.slice(0, i);\n              }\n              groundClauseTypes.push(nonPrimitiveType);\n            } else {\n              return type;\n            }\n          }\n          return getUnionType(groundClauseTypes === void 0 ? clauseTypes : groundClauseTypes);\n        }\n        const discriminantType = getUnionType(clauseTypes);\n        const caseType = discriminantType.flags & 131072 ? neverType : replacePrimitivesWithLiterals(filterType(type, (t) => areTypesComparable(discriminantType, t)), discriminantType);\n        if (!hasDefaultClause) {\n          return caseType;\n        }\n        const defaultType = filterType(type, (t) => !(isUnitLikeType(t) && contains(switchTypes, getRegularTypeOfLiteralType(extractUnitType(t)))));\n        return caseType.flags & 131072 ? defaultType : getUnionType([caseType, defaultType]);\n      }\n      function narrowTypeByTypeName(type, typeName) {\n        switch (typeName) {\n          case \"string\":\n            return narrowTypeByTypeFacts(type, stringType, 1);\n          case \"number\":\n            return narrowTypeByTypeFacts(type, numberType, 2);\n          case \"bigint\":\n            return narrowTypeByTypeFacts(type, bigintType, 4);\n          case \"boolean\":\n            return narrowTypeByTypeFacts(type, booleanType, 8);\n          case \"symbol\":\n            return narrowTypeByTypeFacts(type, esSymbolType, 16);\n          case \"object\":\n            return type.flags & 1 ? type : getUnionType([narrowTypeByTypeFacts(type, nonPrimitiveType, 32), narrowTypeByTypeFacts(type, nullType, 131072)]);\n          case \"function\":\n            return type.flags & 1 ? type : narrowTypeByTypeFacts(type, globalFunctionType, 64);\n          case \"undefined\":\n            return narrowTypeByTypeFacts(type, undefinedType, 65536);\n        }\n        return narrowTypeByTypeFacts(type, nonPrimitiveType, 128);\n      }\n      function narrowTypeByTypeFacts(type, impliedType, facts) {\n        return mapType(type, (t) => isTypeRelatedTo(t, impliedType, strictSubtypeRelation) ? getTypeFacts(t) & facts ? t : neverType : isTypeSubtypeOf(impliedType, t) ? impliedType : getTypeFacts(t) & facts ? getIntersectionType([t, impliedType]) : neverType);\n      }\n      function narrowTypeBySwitchOnTypeOf(type, switchStatement, clauseStart, clauseEnd) {\n        const witnesses = getSwitchClauseTypeOfWitnesses(switchStatement);\n        if (!witnesses) {\n          return type;\n        }\n        const defaultIndex = findIndex(switchStatement.caseBlock.clauses, (clause) => clause.kind === 293);\n        const hasDefaultClause = clauseStart === clauseEnd || defaultIndex >= clauseStart && defaultIndex < clauseEnd;\n        if (hasDefaultClause) {\n          const notEqualFacts = getNotEqualFactsFromTypeofSwitch(clauseStart, clauseEnd, witnesses);\n          return filterType(type, (t) => (getTypeFacts(t) & notEqualFacts) === notEqualFacts);\n        }\n        const clauseWitnesses = witnesses.slice(clauseStart, clauseEnd);\n        return getUnionType(map(clauseWitnesses, (text) => text ? narrowTypeByTypeName(type, text) : neverType));\n      }\n      function isMatchingConstructorReference(expr) {\n        return (isPropertyAccessExpression(expr) && idText(expr.name) === \"constructor\" || isElementAccessExpression(expr) && isStringLiteralLike(expr.argumentExpression) && expr.argumentExpression.text === \"constructor\") && isMatchingReference(reference, expr.expression);\n      }\n      function narrowTypeByConstructor(type, operator, identifier, assumeTrue) {\n        if (assumeTrue ? operator !== 34 && operator !== 36 : operator !== 35 && operator !== 37) {\n          return type;\n        }\n        const identifierType = getTypeOfExpression(identifier);\n        if (!isFunctionType(identifierType) && !isConstructorType(identifierType)) {\n          return type;\n        }\n        const prototypeProperty = getPropertyOfType(identifierType, \"prototype\");\n        if (!prototypeProperty) {\n          return type;\n        }\n        const prototypeType = getTypeOfSymbol(prototypeProperty);\n        const candidate = !isTypeAny(prototypeType) ? prototypeType : void 0;\n        if (!candidate || candidate === globalObjectType || candidate === globalFunctionType) {\n          return type;\n        }\n        if (isTypeAny(type)) {\n          return candidate;\n        }\n        return filterType(type, (t) => isConstructedBy(t, candidate));\n        function isConstructedBy(source, target) {\n          if (source.flags & 524288 && getObjectFlags(source) & 1 || target.flags & 524288 && getObjectFlags(target) & 1) {\n            return source.symbol === target.symbol;\n          }\n          return isTypeSubtypeOf(source, target);\n        }\n      }\n      function narrowTypeByInstanceof(type, expr, assumeTrue) {\n        const left = getReferenceCandidate(expr.left);\n        if (!isMatchingReference(reference, left)) {\n          if (assumeTrue && strictNullChecks && optionalChainContainsReference(left, reference)) {\n            return getAdjustedTypeWithFacts(type, 2097152);\n          }\n          return type;\n        }\n        const rightType = getTypeOfExpression(expr.right);\n        if (!isTypeDerivedFrom(rightType, globalFunctionType)) {\n          return type;\n        }\n        const instanceType = mapType(rightType, getInstanceType);\n        if (isTypeAny(type) && (instanceType === globalObjectType || instanceType === globalFunctionType) || !assumeTrue && !(instanceType.flags & 524288 && !isEmptyAnonymousObjectType(instanceType))) {\n          return type;\n        }\n        return getNarrowedType(type, instanceType, assumeTrue, true);\n      }\n      function getInstanceType(constructorType) {\n        const prototypePropertyType = getTypeOfPropertyOfType(constructorType, \"prototype\");\n        if (prototypePropertyType && !isTypeAny(prototypePropertyType)) {\n          return prototypePropertyType;\n        }\n        const constructSignatures = getSignaturesOfType(constructorType, 1);\n        if (constructSignatures.length) {\n          return getUnionType(map(constructSignatures, (signature) => getReturnTypeOfSignature(getErasedSignature(signature))));\n        }\n        return emptyObjectType;\n      }\n      function getNarrowedType(type, candidate, assumeTrue, checkDerived) {\n        var _a3;\n        const key2 = type.flags & 1048576 ? `N${getTypeId(type)},${getTypeId(candidate)},${(assumeTrue ? 1 : 0) | (checkDerived ? 2 : 0)}` : void 0;\n        return (_a3 = getCachedType(key2)) != null ? _a3 : setCachedType(key2, getNarrowedTypeWorker(type, candidate, assumeTrue, checkDerived));\n      }\n      function getNarrowedTypeWorker(type, candidate, assumeTrue, checkDerived) {\n        if (!assumeTrue) {\n          if (checkDerived) {\n            return filterType(type, (t) => !isTypeDerivedFrom(t, candidate));\n          }\n          const trueType2 = getNarrowedType(type, candidate, true, false);\n          return filterType(type, (t) => !isTypeSubsetOf(t, trueType2));\n        }\n        if (type.flags & 3) {\n          return candidate;\n        }\n        const isRelated = checkDerived ? isTypeDerivedFrom : isTypeSubtypeOf;\n        const keyPropertyName = type.flags & 1048576 ? getKeyPropertyName(type) : void 0;\n        const narrowedType = mapType(candidate, (c) => {\n          const discriminant = keyPropertyName && getTypeOfPropertyOfType(c, keyPropertyName);\n          const matching = discriminant && getConstituentTypeForKeyType(type, discriminant);\n          const directlyRelated = mapType(matching || type, checkDerived ? (t) => isTypeDerivedFrom(t, c) ? t : isTypeDerivedFrom(c, t) ? c : neverType : (t) => isTypeStrictSubtypeOf(t, c) ? t : isTypeStrictSubtypeOf(c, t) ? c : isTypeSubtypeOf(t, c) ? t : isTypeSubtypeOf(c, t) ? c : neverType);\n          return directlyRelated.flags & 131072 ? mapType(type, (t) => maybeTypeOfKind(t, 465829888) && isRelated(c, getBaseConstraintOfType(t) || unknownType) ? getIntersectionType([t, c]) : neverType) : directlyRelated;\n        });\n        return !(narrowedType.flags & 131072) ? narrowedType : isTypeSubtypeOf(candidate, type) ? candidate : isTypeAssignableTo(type, candidate) ? type : isTypeAssignableTo(candidate, type) ? candidate : getIntersectionType([type, candidate]);\n      }\n      function narrowTypeByCallExpression(type, callExpression, assumeTrue) {\n        if (hasMatchingArgument(callExpression, reference)) {\n          const signature = assumeTrue || !isCallChain(callExpression) ? getEffectsSignature(callExpression) : void 0;\n          const predicate = signature && getTypePredicateOfSignature(signature);\n          if (predicate && (predicate.kind === 0 || predicate.kind === 1)) {\n            return narrowTypeByTypePredicate(type, predicate, callExpression, assumeTrue);\n          }\n        }\n        if (containsMissingType(type) && isAccessExpression(reference) && isPropertyAccessExpression(callExpression.expression)) {\n          const callAccess = callExpression.expression;\n          if (isMatchingReference(reference.expression, getReferenceCandidate(callAccess.expression)) && isIdentifier(callAccess.name) && callAccess.name.escapedText === \"hasOwnProperty\" && callExpression.arguments.length === 1) {\n            const argument = callExpression.arguments[0];\n            if (isStringLiteralLike(argument) && getAccessedPropertyName(reference) === escapeLeadingUnderscores(argument.text)) {\n              return getTypeWithFacts(type, assumeTrue ? 524288 : 65536);\n            }\n          }\n        }\n        return type;\n      }\n      function narrowTypeByTypePredicate(type, predicate, callExpression, assumeTrue) {\n        if (predicate.type && !(isTypeAny(type) && (predicate.type === globalObjectType || predicate.type === globalFunctionType))) {\n          const predicateArgument = getTypePredicateArgument(predicate, callExpression);\n          if (predicateArgument) {\n            if (isMatchingReference(reference, predicateArgument)) {\n              return getNarrowedType(type, predicate.type, assumeTrue, false);\n            }\n            if (strictNullChecks && assumeTrue && optionalChainContainsReference(predicateArgument, reference) && !(getTypeFacts(predicate.type) & 65536)) {\n              type = getAdjustedTypeWithFacts(type, 2097152);\n            }\n            const access = getDiscriminantPropertyAccess(predicateArgument, type);\n            if (access) {\n              return narrowTypeByDiscriminant(type, access, (t) => getNarrowedType(t, predicate.type, assumeTrue, false));\n            }\n          }\n        }\n        return type;\n      }\n      function narrowType(type, expr, assumeTrue) {\n        if (isExpressionOfOptionalChainRoot(expr) || isBinaryExpression(expr.parent) && (expr.parent.operatorToken.kind === 60 || expr.parent.operatorToken.kind === 77) && expr.parent.left === expr) {\n          return narrowTypeByOptionality(type, expr, assumeTrue);\n        }\n        switch (expr.kind) {\n          case 79:\n            if (!isMatchingReference(reference, expr) && inlineLevel < 5) {\n              const symbol = getResolvedSymbol(expr);\n              if (isConstVariable(symbol)) {\n                const declaration = symbol.valueDeclaration;\n                if (declaration && isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && isConstantReference(reference)) {\n                  inlineLevel++;\n                  const result = narrowType(type, declaration.initializer, assumeTrue);\n                  inlineLevel--;\n                  return result;\n                }\n              }\n            }\n          case 108:\n          case 106:\n          case 208:\n          case 209:\n            return narrowTypeByTruthiness(type, expr, assumeTrue);\n          case 210:\n            return narrowTypeByCallExpression(type, expr, assumeTrue);\n          case 214:\n          case 232:\n            return narrowType(type, expr.expression, assumeTrue);\n          case 223:\n            return narrowTypeByBinaryExpression(type, expr, assumeTrue);\n          case 221:\n            if (expr.operator === 53) {\n              return narrowType(type, expr.operand, !assumeTrue);\n            }\n            break;\n        }\n        return type;\n      }\n      function narrowTypeByOptionality(type, expr, assumePresent) {\n        if (isMatchingReference(reference, expr)) {\n          return getAdjustedTypeWithFacts(type, assumePresent ? 2097152 : 262144);\n        }\n        const access = getDiscriminantPropertyAccess(expr, type);\n        if (access) {\n          return narrowTypeByDiscriminant(type, access, (t) => getTypeWithFacts(t, assumePresent ? 2097152 : 262144));\n        }\n        return type;\n      }\n    }\n    function getTypeOfSymbolAtLocation(symbol, location) {\n      symbol = getExportSymbolOfValueSymbolIfExported(symbol);\n      if (location.kind === 79 || location.kind === 80) {\n        if (isRightSideOfQualifiedNameOrPropertyAccess(location)) {\n          location = location.parent;\n        }\n        if (isExpressionNode(location) && (!isAssignmentTarget(location) || isWriteAccess(location))) {\n          const type = getTypeOfExpression(location);\n          if (getExportSymbolOfValueSymbolIfExported(getNodeLinks(location).resolvedSymbol) === symbol) {\n            return type;\n          }\n        }\n      }\n      if (isDeclarationName(location) && isSetAccessor(location.parent) && getAnnotatedAccessorTypeNode(location.parent)) {\n        return getWriteTypeOfAccessors(location.parent.symbol);\n      }\n      return getNonMissingTypeOfSymbol(symbol);\n    }\n    function getControlFlowContainer(node) {\n      return findAncestor(node.parent, (node2) => isFunctionLike(node2) && !getImmediatelyInvokedFunctionExpression(node2) || node2.kind === 265 || node2.kind === 308 || node2.kind === 169);\n    }\n    function isSymbolAssigned(symbol) {\n      if (!symbol.valueDeclaration) {\n        return false;\n      }\n      const parent2 = getRootDeclaration(symbol.valueDeclaration).parent;\n      const links = getNodeLinks(parent2);\n      if (!(links.flags & 524288)) {\n        links.flags |= 524288;\n        if (!hasParentWithAssignmentsMarked(parent2)) {\n          markNodeAssignments(parent2);\n        }\n      }\n      return symbol.isAssigned || false;\n    }\n    function hasParentWithAssignmentsMarked(node) {\n      return !!findAncestor(node.parent, (node2) => (isFunctionLike(node2) || isCatchClause(node2)) && !!(getNodeLinks(node2).flags & 524288));\n    }\n    function markNodeAssignments(node) {\n      if (node.kind === 79) {\n        if (isAssignmentTarget(node)) {\n          const symbol = getResolvedSymbol(node);\n          if (isParameterOrCatchClauseVariable(symbol)) {\n            symbol.isAssigned = true;\n          }\n        }\n      } else {\n        forEachChild(node, markNodeAssignments);\n      }\n    }\n    function isConstVariable(symbol) {\n      return symbol.flags & 3 && (getDeclarationNodeFlagsFromSymbol(symbol) & 2) !== 0;\n    }\n    function parameterInitializerContainsUndefined(declaration) {\n      const links = getNodeLinks(declaration);\n      if (links.parameterInitializerContainsUndefined === void 0) {\n        if (!pushTypeResolution(declaration, 9)) {\n          reportCircularityError(declaration.symbol);\n          return true;\n        }\n        const containsUndefined = !!(getTypeFacts(checkDeclarationInitializer(declaration, 0)) & 16777216);\n        if (!popTypeResolution()) {\n          reportCircularityError(declaration.symbol);\n          return true;\n        }\n        links.parameterInitializerContainsUndefined = containsUndefined;\n      }\n      return links.parameterInitializerContainsUndefined;\n    }\n    function removeOptionalityFromDeclaredType(declaredType, declaration) {\n      const removeUndefined = strictNullChecks && declaration.kind === 166 && declaration.initializer && getTypeFacts(declaredType) & 16777216 && !parameterInitializerContainsUndefined(declaration);\n      return removeUndefined ? getTypeWithFacts(declaredType, 524288) : declaredType;\n    }\n    function isConstraintPosition(type, node) {\n      const parent2 = node.parent;\n      return parent2.kind === 208 || parent2.kind === 163 || parent2.kind === 210 && parent2.expression === node || parent2.kind === 209 && parent2.expression === node && !(someType(type, isGenericTypeWithoutNullableConstraint) && isGenericIndexType(getTypeOfExpression(parent2.argumentExpression)));\n    }\n    function isGenericTypeWithUnionConstraint(type) {\n      return type.flags & 2097152 ? some(type.types, isGenericTypeWithUnionConstraint) : !!(type.flags & 465829888 && getBaseConstraintOrType(type).flags & (98304 | 1048576));\n    }\n    function isGenericTypeWithoutNullableConstraint(type) {\n      return type.flags & 2097152 ? some(type.types, isGenericTypeWithoutNullableConstraint) : !!(type.flags & 465829888 && !maybeTypeOfKind(getBaseConstraintOrType(type), 98304));\n    }\n    function hasContextualTypeWithNoGenericTypes(node, checkMode) {\n      const contextualType = (isIdentifier(node) || isPropertyAccessExpression(node) || isElementAccessExpression(node)) && !((isJsxOpeningElement(node.parent) || isJsxSelfClosingElement(node.parent)) && node.parent.tagName === node) && (checkMode && checkMode & 64 ? getContextualType2(node, 8) : getContextualType2(node, void 0));\n      return contextualType && !isGenericType(contextualType);\n    }\n    function getNarrowableTypeForReference(type, reference, checkMode) {\n      const substituteConstraints = !(checkMode && checkMode & 2) && someType(type, isGenericTypeWithUnionConstraint) && (isConstraintPosition(type, reference) || hasContextualTypeWithNoGenericTypes(reference, checkMode));\n      return substituteConstraints ? mapType(type, getBaseConstraintOrType) : type;\n    }\n    function isExportOrExportExpression(location) {\n      return !!findAncestor(location, (n) => {\n        const parent2 = n.parent;\n        if (parent2 === void 0) {\n          return \"quit\";\n        }\n        if (isExportAssignment(parent2)) {\n          return parent2.expression === n && isEntityNameExpression(n);\n        }\n        if (isExportSpecifier(parent2)) {\n          return parent2.name === n || parent2.propertyName === n;\n        }\n        return false;\n      });\n    }\n    function markAliasReferenced(symbol, location) {\n      if (compilerOptions.verbatimModuleSyntax) {\n        return;\n      }\n      if (isNonLocalAlias(symbol, 111551) && !isInTypeQuery(location) && !getTypeOnlyAliasDeclaration(symbol, 111551)) {\n        const target = resolveAlias(symbol);\n        if (getAllSymbolFlags(target) & (111551 | 1048576)) {\n          if (getIsolatedModules(compilerOptions) || shouldPreserveConstEnums(compilerOptions) && isExportOrExportExpression(location) || !isConstEnumOrConstEnumOnlyModule(getExportSymbolOfValueSymbolIfExported(target))) {\n            markAliasSymbolAsReferenced(symbol);\n          } else {\n            markConstEnumAliasAsReferenced(symbol);\n          }\n        }\n      }\n    }\n    function getNarrowedTypeOfSymbol(symbol, location) {\n      var _a2;\n      const type = getTypeOfSymbol(symbol);\n      const declaration = symbol.valueDeclaration;\n      if (declaration) {\n        if (isBindingElement(declaration) && !declaration.initializer && !declaration.dotDotDotToken && declaration.parent.elements.length >= 2) {\n          const parent2 = declaration.parent.parent;\n          if (parent2.kind === 257 && getCombinedNodeFlags(declaration) & 2 || parent2.kind === 166) {\n            const links = getNodeLinks(parent2);\n            if (!(links.flags & 16777216)) {\n              links.flags |= 16777216;\n              const parentType = getTypeForBindingElementParent(parent2, 0);\n              const parentTypeConstraint = parentType && mapType(parentType, getBaseConstraintOrType);\n              links.flags &= ~16777216;\n              if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 && !(parent2.kind === 166 && isSymbolAssigned(symbol))) {\n                const pattern = declaration.parent;\n                const narrowedType = getFlowTypeOfReference(pattern, parentTypeConstraint, parentTypeConstraint, void 0, location.flowNode);\n                if (narrowedType.flags & 131072) {\n                  return neverType;\n                }\n                return getBindingElementTypeFromParentType(declaration, narrowedType);\n              }\n            }\n          }\n        }\n        if (isParameter(declaration) && !declaration.type && !declaration.initializer && !declaration.dotDotDotToken) {\n          const func = declaration.parent;\n          if (func.parameters.length >= 2 && isContextSensitiveFunctionOrObjectLiteralMethod(func)) {\n            const contextualSignature = getContextualSignature(func);\n            if (contextualSignature && contextualSignature.parameters.length === 1 && signatureHasRestParameter(contextualSignature)) {\n              const restType = getReducedApparentType(instantiateType(getTypeOfSymbol(contextualSignature.parameters[0]), (_a2 = getInferenceContext(func)) == null ? void 0 : _a2.nonFixingMapper));\n              if (restType.flags & 1048576 && everyType(restType, isTupleType) && !isSymbolAssigned(symbol)) {\n                const narrowedType = getFlowTypeOfReference(func, restType, restType, void 0, location.flowNode);\n                const index = func.parameters.indexOf(declaration) - (getThisParameter(func) ? 1 : 0);\n                return getIndexedAccessType(narrowedType, getNumberLiteralType(index));\n              }\n            }\n          }\n        }\n      }\n      return type;\n    }\n    function checkIdentifier(node, checkMode) {\n      if (isThisInTypeQuery(node)) {\n        return checkThisExpression(node);\n      }\n      const symbol = getResolvedSymbol(node);\n      if (symbol === unknownSymbol) {\n        return errorType;\n      }\n      if (symbol === argumentsSymbol) {\n        if (isInPropertyInitializerOrClassStaticBlock(node)) {\n          error(node, Diagnostics.arguments_cannot_be_referenced_in_property_initializers);\n          return errorType;\n        }\n        const container = getContainingFunction(node);\n        if (languageVersion < 2) {\n          if (container.kind === 216) {\n            error(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression);\n          } else if (hasSyntacticModifier(container, 512)) {\n            error(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method);\n          }\n        }\n        getNodeLinks(container).flags |= 512;\n        return getTypeOfSymbol(symbol);\n      }\n      if (shouldMarkIdentifierAliasReferenced(node)) {\n        markAliasReferenced(symbol, node);\n      }\n      const localOrExportSymbol = getExportSymbolOfValueSymbolIfExported(symbol);\n      const targetSymbol = checkDeprecatedAliasedSymbol(localOrExportSymbol, node);\n      if (isDeprecatedSymbol(targetSymbol) && isUncalledFunctionReference(node, targetSymbol) && targetSymbol.declarations) {\n        addDeprecatedSuggestion(node, targetSymbol.declarations, node.escapedText);\n      }\n      let declaration = localOrExportSymbol.valueDeclaration;\n      if (declaration && localOrExportSymbol.flags & 32) {\n        if (declaration.kind === 260 && nodeIsDecorated(legacyDecorators, declaration)) {\n          let container = getContainingClass(node);\n          while (container !== void 0) {\n            if (container === declaration && container.name !== node) {\n              getNodeLinks(declaration).flags |= 1048576;\n              getNodeLinks(node).flags |= 2097152;\n              break;\n            }\n            container = getContainingClass(container);\n          }\n        } else if (declaration.kind === 228) {\n          let container = getThisContainer(node, false, false);\n          while (container.kind !== 308) {\n            if (container.parent === declaration) {\n              if (isPropertyDeclaration(container) && isStatic(container) || isClassStaticBlockDeclaration(container)) {\n                getNodeLinks(declaration).flags |= 1048576;\n                getNodeLinks(node).flags |= 2097152;\n              }\n              break;\n            }\n            container = getThisContainer(container, false, false);\n          }\n        }\n      }\n      checkNestedBlockScopedBinding(node, symbol);\n      let type = getNarrowedTypeOfSymbol(localOrExportSymbol, node);\n      const assignmentKind = getAssignmentTargetKind(node);\n      if (assignmentKind) {\n        if (!(localOrExportSymbol.flags & 3) && !(isInJSFile(node) && localOrExportSymbol.flags & 512)) {\n          const assignmentError = localOrExportSymbol.flags & 384 ? Diagnostics.Cannot_assign_to_0_because_it_is_an_enum : localOrExportSymbol.flags & 32 ? Diagnostics.Cannot_assign_to_0_because_it_is_a_class : localOrExportSymbol.flags & 1536 ? Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace : localOrExportSymbol.flags & 16 ? Diagnostics.Cannot_assign_to_0_because_it_is_a_function : localOrExportSymbol.flags & 2097152 ? Diagnostics.Cannot_assign_to_0_because_it_is_an_import : Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable;\n          error(node, assignmentError, symbolToString(symbol));\n          return errorType;\n        }\n        if (isReadonlySymbol(localOrExportSymbol)) {\n          if (localOrExportSymbol.flags & 3) {\n            error(node, Diagnostics.Cannot_assign_to_0_because_it_is_a_constant, symbolToString(symbol));\n          } else {\n            error(node, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, symbolToString(symbol));\n          }\n          return errorType;\n        }\n      }\n      const isAlias = localOrExportSymbol.flags & 2097152;\n      if (localOrExportSymbol.flags & 3) {\n        if (assignmentKind === 1) {\n          return type;\n        }\n      } else if (isAlias) {\n        declaration = getDeclarationOfAliasSymbol(symbol);\n      } else {\n        return type;\n      }\n      if (!declaration) {\n        return type;\n      }\n      type = getNarrowableTypeForReference(type, node, checkMode);\n      const isParameter2 = getRootDeclaration(declaration).kind === 166;\n      const declarationContainer = getControlFlowContainer(declaration);\n      let flowContainer = getControlFlowContainer(node);\n      const isOuterVariable = flowContainer !== declarationContainer;\n      const isSpreadDestructuringAssignmentTarget = node.parent && node.parent.parent && isSpreadAssignment(node.parent) && isDestructuringAssignmentTarget(node.parent.parent);\n      const isModuleExports = symbol.flags & 134217728;\n      while (flowContainer !== declarationContainer && (flowContainer.kind === 215 || flowContainer.kind === 216 || isObjectLiteralOrClassExpressionMethodOrAccessor(flowContainer)) && (isConstVariable(localOrExportSymbol) && type !== autoArrayType || isParameter2 && !isSymbolAssigned(localOrExportSymbol))) {\n        flowContainer = getControlFlowContainer(flowContainer);\n      }\n      const assumeInitialized = isParameter2 || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) || type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 | 16384)) !== 0 || isInTypeQuery(node) || isInAmbientOrTypeNode(node) || node.parent.kind === 278) || node.parent.kind === 232 || declaration.kind === 257 && declaration.exclamationToken || declaration.flags & 16777216;\n      const initialType = assumeInitialized ? isParameter2 ? removeOptionalityFromDeclaredType(type, declaration) : type : type === autoType || type === autoArrayType ? undefinedType : getOptionalType(type);\n      const flowType = getFlowTypeOfReference(node, type, initialType, flowContainer);\n      if (!isEvolvingArrayOperationTarget(node) && (type === autoType || type === autoArrayType)) {\n        if (flowType === autoType || flowType === autoArrayType) {\n          if (noImplicitAny) {\n            error(getNameOfDeclaration(declaration), Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined, symbolToString(symbol), typeToString(flowType));\n            error(node, Diagnostics.Variable_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType));\n          }\n          return convertAutoToAny(flowType);\n        }\n      } else if (!assumeInitialized && !containsUndefinedType(type) && containsUndefinedType(flowType)) {\n        error(node, Diagnostics.Variable_0_is_used_before_being_assigned, symbolToString(symbol));\n        return type;\n      }\n      return assignmentKind ? getBaseTypeOfLiteralType(flowType) : flowType;\n    }\n    function isSameScopedBindingElement(node, declaration) {\n      if (isBindingElement(declaration)) {\n        const bindingElement = findAncestor(node, isBindingElement);\n        return bindingElement && getRootDeclaration(bindingElement) === getRootDeclaration(declaration);\n      }\n    }\n    function shouldMarkIdentifierAliasReferenced(node) {\n      var _a2;\n      const parent2 = node.parent;\n      if (parent2) {\n        if (isPropertyAccessExpression(parent2) && parent2.expression === node) {\n          return false;\n        }\n        if (isExportSpecifier(parent2) && parent2.isTypeOnly) {\n          return false;\n        }\n        const greatGrandparent = (_a2 = parent2.parent) == null ? void 0 : _a2.parent;\n        if (greatGrandparent && isExportDeclaration(greatGrandparent) && greatGrandparent.isTypeOnly) {\n          return false;\n        }\n      }\n      return true;\n    }\n    function isInsideFunctionOrInstancePropertyInitializer(node, threshold) {\n      return !!findAncestor(node, (n) => n === threshold ? \"quit\" : isFunctionLike(n) || n.parent && isPropertyDeclaration(n.parent) && !hasStaticModifier(n.parent) && n.parent.initializer === n);\n    }\n    function getPartOfForStatementContainingNode(node, container) {\n      return findAncestor(node, (n) => n === container ? \"quit\" : n === container.initializer || n === container.condition || n === container.incrementor || n === container.statement);\n    }\n    function getEnclosingIterationStatement(node) {\n      return findAncestor(node, (n) => !n || nodeStartsNewLexicalEnvironment(n) ? \"quit\" : isIterationStatement(n, false));\n    }\n    function checkNestedBlockScopedBinding(node, symbol) {\n      if (languageVersion >= 2 || (symbol.flags & (2 | 32)) === 0 || !symbol.valueDeclaration || isSourceFile(symbol.valueDeclaration) || symbol.valueDeclaration.parent.kind === 295) {\n        return;\n      }\n      const container = getEnclosingBlockScopeContainer(symbol.valueDeclaration);\n      const isCaptured = isInsideFunctionOrInstancePropertyInitializer(node, container);\n      const enclosingIterationStatement = getEnclosingIterationStatement(container);\n      if (enclosingIterationStatement) {\n        if (isCaptured) {\n          let capturesBlockScopeBindingInLoopBody = true;\n          if (isForStatement(container)) {\n            const varDeclList = getAncestor(symbol.valueDeclaration, 258);\n            if (varDeclList && varDeclList.parent === container) {\n              const part = getPartOfForStatementContainingNode(node.parent, container);\n              if (part) {\n                const links = getNodeLinks(part);\n                links.flags |= 8192;\n                const capturedBindings = links.capturedBlockScopeBindings || (links.capturedBlockScopeBindings = []);\n                pushIfUnique(capturedBindings, symbol);\n                if (part === container.initializer) {\n                  capturesBlockScopeBindingInLoopBody = false;\n                }\n              }\n            }\n          }\n          if (capturesBlockScopeBindingInLoopBody) {\n            getNodeLinks(enclosingIterationStatement).flags |= 4096;\n          }\n        }\n        if (isForStatement(container)) {\n          const varDeclList = getAncestor(symbol.valueDeclaration, 258);\n          if (varDeclList && varDeclList.parent === container && isAssignedInBodyOfForStatement(node, container)) {\n            getNodeLinks(symbol.valueDeclaration).flags |= 262144;\n          }\n        }\n        getNodeLinks(symbol.valueDeclaration).flags |= 32768;\n      }\n      if (isCaptured) {\n        getNodeLinks(symbol.valueDeclaration).flags |= 16384;\n      }\n    }\n    function isBindingCapturedByNode(node, decl) {\n      const links = getNodeLinks(node);\n      return !!links && contains(links.capturedBlockScopeBindings, getSymbolOfDeclaration(decl));\n    }\n    function isAssignedInBodyOfForStatement(node, container) {\n      let current = node;\n      while (current.parent.kind === 214) {\n        current = current.parent;\n      }\n      let isAssigned = false;\n      if (isAssignmentTarget(current)) {\n        isAssigned = true;\n      } else if (current.parent.kind === 221 || current.parent.kind === 222) {\n        const expr = current.parent;\n        isAssigned = expr.operator === 45 || expr.operator === 46;\n      }\n      if (!isAssigned) {\n        return false;\n      }\n      return !!findAncestor(current, (n) => n === container ? \"quit\" : n === container.statement);\n    }\n    function captureLexicalThis(node, container) {\n      getNodeLinks(node).flags |= 2;\n      if (container.kind === 169 || container.kind === 173) {\n        const classNode = container.parent;\n        getNodeLinks(classNode).flags |= 4;\n      } else {\n        getNodeLinks(container).flags |= 4;\n      }\n    }\n    function findFirstSuperCall(node) {\n      return isSuperCall(node) ? node : isFunctionLike(node) ? void 0 : forEachChild(node, findFirstSuperCall);\n    }\n    function classDeclarationExtendsNull(classDecl) {\n      const classSymbol = getSymbolOfDeclaration(classDecl);\n      const classInstanceType = getDeclaredTypeOfSymbol(classSymbol);\n      const baseConstructorType = getBaseConstructorTypeOfClass(classInstanceType);\n      return baseConstructorType === nullWideningType;\n    }\n    function checkThisBeforeSuper(node, container, diagnosticMessage) {\n      const containingClassDecl = container.parent;\n      const baseTypeNode = getClassExtendsHeritageElement(containingClassDecl);\n      if (baseTypeNode && !classDeclarationExtendsNull(containingClassDecl)) {\n        if (canHaveFlowNode(node) && node.flowNode && !isPostSuperFlowNode(node.flowNode, false)) {\n          error(node, diagnosticMessage);\n        }\n      }\n    }\n    function checkThisInStaticClassFieldInitializerInDecoratedClass(thisExpression, container) {\n      if (isPropertyDeclaration(container) && hasStaticModifier(container) && legacyDecorators && container.initializer && textRangeContainsPositionInclusive(container.initializer, thisExpression.pos) && hasDecorators(container.parent)) {\n        error(thisExpression, Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class);\n      }\n    }\n    function checkThisExpression(node) {\n      const isNodeInTypeQuery = isInTypeQuery(node);\n      let container = getThisContainer(node, true, true);\n      let capturedByArrowFunction = false;\n      let thisInComputedPropertyName = false;\n      if (container.kind === 173) {\n        checkThisBeforeSuper(node, container, Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);\n      }\n      while (true) {\n        if (container.kind === 216) {\n          container = getThisContainer(container, false, !thisInComputedPropertyName);\n          capturedByArrowFunction = true;\n        }\n        if (container.kind === 164) {\n          container = getThisContainer(container, !capturedByArrowFunction, false);\n          thisInComputedPropertyName = true;\n          continue;\n        }\n        break;\n      }\n      checkThisInStaticClassFieldInitializerInDecoratedClass(node, container);\n      if (thisInComputedPropertyName) {\n        error(node, Diagnostics.this_cannot_be_referenced_in_a_computed_property_name);\n      } else {\n        switch (container.kind) {\n          case 264:\n            error(node, Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);\n            break;\n          case 263:\n            error(node, Diagnostics.this_cannot_be_referenced_in_current_location);\n            break;\n          case 173:\n            if (isInConstructorArgumentInitializer(node, container)) {\n              error(node, Diagnostics.this_cannot_be_referenced_in_constructor_arguments);\n            }\n            break;\n        }\n      }\n      if (!isNodeInTypeQuery && capturedByArrowFunction && languageVersion < 2) {\n        captureLexicalThis(node, container);\n      }\n      const type = tryGetThisTypeAt(node, true, container);\n      if (noImplicitThis) {\n        const globalThisType2 = getTypeOfSymbol(globalThisSymbol);\n        if (type === globalThisType2 && capturedByArrowFunction) {\n          error(node, Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);\n        } else if (!type) {\n          const diag2 = error(node, Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);\n          if (!isSourceFile(container)) {\n            const outsideThis = tryGetThisTypeAt(container);\n            if (outsideThis && outsideThis !== globalThisType2) {\n              addRelatedInfo(diag2, createDiagnosticForNode(container, Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container));\n            }\n          }\n        }\n      }\n      return type || anyType;\n    }\n    function tryGetThisTypeAt(node, includeGlobalThis = true, container = getThisContainer(node, false, false)) {\n      const isInJS = isInJSFile(node);\n      if (isFunctionLike(container) && (!isInParameterInitializerBeforeContainingFunction(node) || getThisParameter(container))) {\n        let thisType = getThisTypeOfDeclaration(container) || isInJS && getTypeForThisExpressionFromJSDoc(container);\n        if (!thisType) {\n          const className = getClassNameFromPrototypeMethod(container);\n          if (isInJS && className) {\n            const classSymbol = checkExpression(className).symbol;\n            if (classSymbol && classSymbol.members && classSymbol.flags & 16) {\n              thisType = getDeclaredTypeOfSymbol(classSymbol).thisType;\n            }\n          } else if (isJSConstructor(container)) {\n            thisType = getDeclaredTypeOfSymbol(getMergedSymbol(container.symbol)).thisType;\n          }\n          thisType || (thisType = getContextualThisParameterType(container));\n        }\n        if (thisType) {\n          return getFlowTypeOfReference(node, thisType);\n        }\n      }\n      if (isClassLike(container.parent)) {\n        const symbol = getSymbolOfDeclaration(container.parent);\n        const type = isStatic(container) ? getTypeOfSymbol(symbol) : getDeclaredTypeOfSymbol(symbol).thisType;\n        return getFlowTypeOfReference(node, type);\n      }\n      if (isSourceFile(container)) {\n        if (container.commonJsModuleIndicator) {\n          const fileSymbol = getSymbolOfDeclaration(container);\n          return fileSymbol && getTypeOfSymbol(fileSymbol);\n        } else if (container.externalModuleIndicator) {\n          return undefinedType;\n        } else if (includeGlobalThis) {\n          return getTypeOfSymbol(globalThisSymbol);\n        }\n      }\n    }\n    function getExplicitThisType(node) {\n      const container = getThisContainer(node, false, false);\n      if (isFunctionLike(container)) {\n        const signature = getSignatureFromDeclaration(container);\n        if (signature.thisParameter) {\n          return getExplicitTypeOfSymbol(signature.thisParameter);\n        }\n      }\n      if (isClassLike(container.parent)) {\n        const symbol = getSymbolOfDeclaration(container.parent);\n        return isStatic(container) ? getTypeOfSymbol(symbol) : getDeclaredTypeOfSymbol(symbol).thisType;\n      }\n    }\n    function getClassNameFromPrototypeMethod(container) {\n      if (container.kind === 215 && isBinaryExpression(container.parent) && getAssignmentDeclarationKind(container.parent) === 3) {\n        return container.parent.left.expression.expression;\n      } else if (container.kind === 171 && container.parent.kind === 207 && isBinaryExpression(container.parent.parent) && getAssignmentDeclarationKind(container.parent.parent) === 6) {\n        return container.parent.parent.left.expression;\n      } else if (container.kind === 215 && container.parent.kind === 299 && container.parent.parent.kind === 207 && isBinaryExpression(container.parent.parent.parent) && getAssignmentDeclarationKind(container.parent.parent.parent) === 6) {\n        return container.parent.parent.parent.left.expression;\n      } else if (container.kind === 215 && isPropertyAssignment(container.parent) && isIdentifier(container.parent.name) && (container.parent.name.escapedText === \"value\" || container.parent.name.escapedText === \"get\" || container.parent.name.escapedText === \"set\") && isObjectLiteralExpression(container.parent.parent) && isCallExpression(container.parent.parent.parent) && container.parent.parent.parent.arguments[2] === container.parent.parent && getAssignmentDeclarationKind(container.parent.parent.parent) === 9) {\n        return container.parent.parent.parent.arguments[0].expression;\n      } else if (isMethodDeclaration(container) && isIdentifier(container.name) && (container.name.escapedText === \"value\" || container.name.escapedText === \"get\" || container.name.escapedText === \"set\") && isObjectLiteralExpression(container.parent) && isCallExpression(container.parent.parent) && container.parent.parent.arguments[2] === container.parent && getAssignmentDeclarationKind(container.parent.parent) === 9) {\n        return container.parent.parent.arguments[0].expression;\n      }\n    }\n    function getTypeForThisExpressionFromJSDoc(node) {\n      const jsdocType = getJSDocType(node);\n      if (jsdocType && jsdocType.kind === 320) {\n        const jsDocFunctionType = jsdocType;\n        if (jsDocFunctionType.parameters.length > 0 && jsDocFunctionType.parameters[0].name && jsDocFunctionType.parameters[0].name.escapedText === \"this\") {\n          return getTypeFromTypeNode(jsDocFunctionType.parameters[0].type);\n        }\n      }\n      const thisTag = getJSDocThisTag(node);\n      if (thisTag && thisTag.typeExpression) {\n        return getTypeFromTypeNode(thisTag.typeExpression);\n      }\n    }\n    function isInConstructorArgumentInitializer(node, constructorDecl) {\n      return !!findAncestor(node, (n) => isFunctionLikeDeclaration(n) ? \"quit\" : n.kind === 166 && n.parent === constructorDecl);\n    }\n    function checkSuperExpression(node) {\n      const isCallExpression2 = node.parent.kind === 210 && node.parent.expression === node;\n      const immediateContainer = getSuperContainer(node, true);\n      let container = immediateContainer;\n      let needToCaptureLexicalThis = false;\n      let inAsyncFunction = false;\n      if (!isCallExpression2) {\n        while (container && container.kind === 216) {\n          if (hasSyntacticModifier(container, 512))\n            inAsyncFunction = true;\n          container = getSuperContainer(container, true);\n          needToCaptureLexicalThis = languageVersion < 2;\n        }\n        if (container && hasSyntacticModifier(container, 512))\n          inAsyncFunction = true;\n      }\n      let nodeCheckFlag = 0;\n      if (!container || !isLegalUsageOfSuperExpression(container)) {\n        const current = findAncestor(node, (n) => n === container ? \"quit\" : n.kind === 164);\n        if (current && current.kind === 164) {\n          error(node, Diagnostics.super_cannot_be_referenced_in_a_computed_property_name);\n        } else if (isCallExpression2) {\n          error(node, Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors);\n        } else if (!container || !container.parent || !(isClassLike(container.parent) || container.parent.kind === 207)) {\n          error(node, Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions);\n        } else {\n          error(node, Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class);\n        }\n        return errorType;\n      }\n      if (!isCallExpression2 && immediateContainer.kind === 173) {\n        checkThisBeforeSuper(node, container, Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class);\n      }\n      if (isStatic(container) || isCallExpression2) {\n        nodeCheckFlag = 32;\n        if (!isCallExpression2 && languageVersion >= 2 && languageVersion <= 8 && (isPropertyDeclaration(container) || isClassStaticBlockDeclaration(container))) {\n          forEachEnclosingBlockScopeContainer(node.parent, (current) => {\n            if (!isSourceFile(current) || isExternalOrCommonJsModule(current)) {\n              getNodeLinks(current).flags |= 8388608;\n            }\n          });\n        }\n      } else {\n        nodeCheckFlag = 16;\n      }\n      getNodeLinks(node).flags |= nodeCheckFlag;\n      if (container.kind === 171 && inAsyncFunction) {\n        if (isSuperProperty(node.parent) && isAssignmentTarget(node.parent)) {\n          getNodeLinks(container).flags |= 256;\n        } else {\n          getNodeLinks(container).flags |= 128;\n        }\n      }\n      if (needToCaptureLexicalThis) {\n        captureLexicalThis(node.parent, container);\n      }\n      if (container.parent.kind === 207) {\n        if (languageVersion < 2) {\n          error(node, Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher);\n          return errorType;\n        } else {\n          return anyType;\n        }\n      }\n      const classLikeDeclaration = container.parent;\n      if (!getClassExtendsHeritageElement(classLikeDeclaration)) {\n        error(node, Diagnostics.super_can_only_be_referenced_in_a_derived_class);\n        return errorType;\n      }\n      const classType = getDeclaredTypeOfSymbol(getSymbolOfDeclaration(classLikeDeclaration));\n      const baseClassType = classType && getBaseTypes(classType)[0];\n      if (!baseClassType) {\n        return errorType;\n      }\n      if (container.kind === 173 && isInConstructorArgumentInitializer(node, container)) {\n        error(node, Diagnostics.super_cannot_be_referenced_in_constructor_arguments);\n        return errorType;\n      }\n      return nodeCheckFlag === 32 ? getBaseConstructorTypeOfClass(classType) : getTypeWithThisArgument(baseClassType, classType.thisType);\n      function isLegalUsageOfSuperExpression(container2) {\n        if (isCallExpression2) {\n          return container2.kind === 173;\n        } else {\n          if (isClassLike(container2.parent) || container2.parent.kind === 207) {\n            if (isStatic(container2)) {\n              return container2.kind === 171 || container2.kind === 170 || container2.kind === 174 || container2.kind === 175 || container2.kind === 169 || container2.kind === 172;\n            } else {\n              return container2.kind === 171 || container2.kind === 170 || container2.kind === 174 || container2.kind === 175 || container2.kind === 169 || container2.kind === 168 || container2.kind === 173;\n            }\n          }\n        }\n        return false;\n      }\n    }\n    function getContainingObjectLiteral(func) {\n      return (func.kind === 171 || func.kind === 174 || func.kind === 175) && func.parent.kind === 207 ? func.parent : func.kind === 215 && func.parent.kind === 299 ? func.parent.parent : void 0;\n    }\n    function getThisTypeArgument(type) {\n      return getObjectFlags(type) & 4 && type.target === globalThisType ? getTypeArguments(type)[0] : void 0;\n    }\n    function getThisTypeFromContextualType(type) {\n      return mapType(type, (t) => {\n        return t.flags & 2097152 ? forEach(t.types, getThisTypeArgument) : getThisTypeArgument(t);\n      });\n    }\n    function getContextualThisParameterType(func) {\n      if (func.kind === 216) {\n        return void 0;\n      }\n      if (isContextSensitiveFunctionOrObjectLiteralMethod(func)) {\n        const contextualSignature = getContextualSignature(func);\n        if (contextualSignature) {\n          const thisParameter = contextualSignature.thisParameter;\n          if (thisParameter) {\n            return getTypeOfSymbol(thisParameter);\n          }\n        }\n      }\n      const inJs = isInJSFile(func);\n      if (noImplicitThis || inJs) {\n        const containingLiteral = getContainingObjectLiteral(func);\n        if (containingLiteral) {\n          const contextualType = getApparentTypeOfContextualType(containingLiteral, void 0);\n          let literal = containingLiteral;\n          let type = contextualType;\n          while (type) {\n            const thisType = getThisTypeFromContextualType(type);\n            if (thisType) {\n              return instantiateType(thisType, getMapperFromContext(getInferenceContext(containingLiteral)));\n            }\n            if (literal.parent.kind !== 299) {\n              break;\n            }\n            literal = literal.parent.parent;\n            type = getApparentTypeOfContextualType(literal, void 0);\n          }\n          return getWidenedType(contextualType ? getNonNullableType(contextualType) : checkExpressionCached(containingLiteral));\n        }\n        const parent2 = walkUpParenthesizedExpressions(func.parent);\n        if (parent2.kind === 223 && parent2.operatorToken.kind === 63) {\n          const target = parent2.left;\n          if (isAccessExpression(target)) {\n            const { expression } = target;\n            if (inJs && isIdentifier(expression)) {\n              const sourceFile = getSourceFileOfNode(parent2);\n              if (sourceFile.commonJsModuleIndicator && getResolvedSymbol(expression) === sourceFile.symbol) {\n                return void 0;\n              }\n            }\n            return getWidenedType(checkExpressionCached(expression));\n          }\n        }\n      }\n      return void 0;\n    }\n    function getContextuallyTypedParameterType(parameter) {\n      const func = parameter.parent;\n      if (!isContextSensitiveFunctionOrObjectLiteralMethod(func)) {\n        return void 0;\n      }\n      const iife = getImmediatelyInvokedFunctionExpression(func);\n      if (iife && iife.arguments) {\n        const args = getEffectiveCallArguments(iife);\n        const indexOfParameter = func.parameters.indexOf(parameter);\n        if (parameter.dotDotDotToken) {\n          return getSpreadArgumentType(args, indexOfParameter, args.length, anyType, void 0, 0);\n        }\n        const links = getNodeLinks(iife);\n        const cached = links.resolvedSignature;\n        links.resolvedSignature = anySignature;\n        const type = indexOfParameter < args.length ? getWidenedLiteralType(checkExpression(args[indexOfParameter])) : parameter.initializer ? void 0 : undefinedWideningType;\n        links.resolvedSignature = cached;\n        return type;\n      }\n      const contextualSignature = getContextualSignature(func);\n      if (contextualSignature) {\n        const index = func.parameters.indexOf(parameter) - (getThisParameter(func) ? 1 : 0);\n        return parameter.dotDotDotToken && lastOrUndefined(func.parameters) === parameter ? getRestTypeAtPosition(contextualSignature, index) : tryGetTypeAtPosition(contextualSignature, index);\n      }\n    }\n    function getContextualTypeForVariableLikeDeclaration(declaration, contextFlags) {\n      const typeNode = getEffectiveTypeAnnotationNode(declaration) || (isInJSFile(declaration) ? tryGetJSDocSatisfiesTypeNode(declaration) : void 0);\n      if (typeNode) {\n        return getTypeFromTypeNode(typeNode);\n      }\n      switch (declaration.kind) {\n        case 166:\n          return getContextuallyTypedParameterType(declaration);\n        case 205:\n          return getContextualTypeForBindingElement(declaration, contextFlags);\n        case 169:\n          if (isStatic(declaration)) {\n            return getContextualTypeForStaticPropertyDeclaration(declaration, contextFlags);\n          }\n      }\n    }\n    function getContextualTypeForBindingElement(declaration, contextFlags) {\n      const parent2 = declaration.parent.parent;\n      const name = declaration.propertyName || declaration.name;\n      const parentType = getContextualTypeForVariableLikeDeclaration(parent2, contextFlags) || parent2.kind !== 205 && parent2.initializer && checkDeclarationInitializer(parent2, declaration.dotDotDotToken ? 64 : 0);\n      if (!parentType || isBindingPattern(name) || isComputedNonLiteralName(name))\n        return void 0;\n      if (parent2.name.kind === 204) {\n        const index = indexOfNode(declaration.parent.elements, declaration);\n        if (index < 0)\n          return void 0;\n        return getContextualTypeForElementExpression(parentType, index);\n      }\n      const nameType = getLiteralTypeFromPropertyName(name);\n      if (isTypeUsableAsPropertyName(nameType)) {\n        const text = getPropertyNameFromType(nameType);\n        return getTypeOfPropertyOfType(parentType, text);\n      }\n    }\n    function getContextualTypeForStaticPropertyDeclaration(declaration, contextFlags) {\n      const parentType = isExpression(declaration.parent) && getContextualType2(declaration.parent, contextFlags);\n      if (!parentType)\n        return void 0;\n      return getTypeOfPropertyOfContextualType(parentType, getSymbolOfDeclaration(declaration).escapedName);\n    }\n    function getContextualTypeForInitializerExpression(node, contextFlags) {\n      const declaration = node.parent;\n      if (hasInitializer(declaration) && node === declaration.initializer) {\n        const result = getContextualTypeForVariableLikeDeclaration(declaration, contextFlags);\n        if (result) {\n          return result;\n        }\n        if (!(contextFlags & 8) && isBindingPattern(declaration.name) && declaration.name.elements.length > 0) {\n          return getTypeFromBindingPattern(declaration.name, true, false);\n        }\n      }\n      return void 0;\n    }\n    function getContextualTypeForReturnExpression(node, contextFlags) {\n      const func = getContainingFunction(node);\n      if (func) {\n        let contextualReturnType = getContextualReturnType(func, contextFlags);\n        if (contextualReturnType) {\n          const functionFlags = getFunctionFlags(func);\n          if (functionFlags & 1) {\n            const isAsyncGenerator = (functionFlags & 2) !== 0;\n            if (contextualReturnType.flags & 1048576) {\n              contextualReturnType = filterType(contextualReturnType, (type) => !!getIterationTypeOfGeneratorFunctionReturnType(1, type, isAsyncGenerator));\n            }\n            const iterationReturnType = getIterationTypeOfGeneratorFunctionReturnType(1, contextualReturnType, (functionFlags & 2) !== 0);\n            if (!iterationReturnType) {\n              return void 0;\n            }\n            contextualReturnType = iterationReturnType;\n          }\n          if (functionFlags & 2) {\n            const contextualAwaitedType = mapType(contextualReturnType, getAwaitedTypeNoAlias);\n            return contextualAwaitedType && getUnionType([contextualAwaitedType, createPromiseLikeType(contextualAwaitedType)]);\n          }\n          return contextualReturnType;\n        }\n      }\n      return void 0;\n    }\n    function getContextualTypeForAwaitOperand(node, contextFlags) {\n      const contextualType = getContextualType2(node, contextFlags);\n      if (contextualType) {\n        const contextualAwaitedType = getAwaitedTypeNoAlias(contextualType);\n        return contextualAwaitedType && getUnionType([contextualAwaitedType, createPromiseLikeType(contextualAwaitedType)]);\n      }\n      return void 0;\n    }\n    function getContextualTypeForYieldOperand(node, contextFlags) {\n      const func = getContainingFunction(node);\n      if (func) {\n        const functionFlags = getFunctionFlags(func);\n        let contextualReturnType = getContextualReturnType(func, contextFlags);\n        if (contextualReturnType) {\n          const isAsyncGenerator = (functionFlags & 2) !== 0;\n          if (!node.asteriskToken && contextualReturnType.flags & 1048576) {\n            contextualReturnType = filterType(contextualReturnType, (type) => !!getIterationTypeOfGeneratorFunctionReturnType(1, type, isAsyncGenerator));\n          }\n          return node.asteriskToken ? contextualReturnType : getIterationTypeOfGeneratorFunctionReturnType(0, contextualReturnType, isAsyncGenerator);\n        }\n      }\n      return void 0;\n    }\n    function isInParameterInitializerBeforeContainingFunction(node) {\n      let inBindingInitializer = false;\n      while (node.parent && !isFunctionLike(node.parent)) {\n        if (isParameter(node.parent) && (inBindingInitializer || node.parent.initializer === node)) {\n          return true;\n        }\n        if (isBindingElement(node.parent) && node.parent.initializer === node) {\n          inBindingInitializer = true;\n        }\n        node = node.parent;\n      }\n      return false;\n    }\n    function getContextualIterationType(kind, functionDecl) {\n      const isAsync = !!(getFunctionFlags(functionDecl) & 2);\n      const contextualReturnType = getContextualReturnType(functionDecl, void 0);\n      if (contextualReturnType) {\n        return getIterationTypeOfGeneratorFunctionReturnType(kind, contextualReturnType, isAsync) || void 0;\n      }\n      return void 0;\n    }\n    function getContextualReturnType(functionDecl, contextFlags) {\n      const returnType = getReturnTypeFromAnnotation(functionDecl);\n      if (returnType) {\n        return returnType;\n      }\n      const signature = getContextualSignatureForFunctionLikeDeclaration(functionDecl);\n      if (signature && !isResolvingReturnTypeOfSignature(signature)) {\n        return getReturnTypeOfSignature(signature);\n      }\n      const iife = getImmediatelyInvokedFunctionExpression(functionDecl);\n      if (iife) {\n        return getContextualType2(iife, contextFlags);\n      }\n      return void 0;\n    }\n    function getContextualTypeForArgument(callTarget, arg) {\n      const args = getEffectiveCallArguments(callTarget);\n      const argIndex = args.indexOf(arg);\n      return argIndex === -1 ? void 0 : getContextualTypeForArgumentAtIndex(callTarget, argIndex);\n    }\n    function getContextualTypeForArgumentAtIndex(callTarget, argIndex) {\n      if (isImportCall(callTarget)) {\n        return argIndex === 0 ? stringType : argIndex === 1 ? getGlobalImportCallOptionsType(false) : anyType;\n      }\n      const signature = getNodeLinks(callTarget).resolvedSignature === resolvingSignature ? resolvingSignature : getResolvedSignature(callTarget);\n      if (isJsxOpeningLikeElement(callTarget) && argIndex === 0) {\n        return getEffectiveFirstArgumentForJsxSignature(signature, callTarget);\n      }\n      const restIndex = signature.parameters.length - 1;\n      return signatureHasRestParameter(signature) && argIndex >= restIndex ? getIndexedAccessType(getTypeOfSymbol(signature.parameters[restIndex]), getNumberLiteralType(argIndex - restIndex), 256) : getTypeAtPosition(signature, argIndex);\n    }\n    function getContextualTypeForDecorator(decorator) {\n      const signature = getDecoratorCallSignature(decorator);\n      return signature ? getOrCreateTypeFromSignature(signature) : void 0;\n    }\n    function getContextualTypeForSubstitutionExpression(template, substitutionExpression) {\n      if (template.parent.kind === 212) {\n        return getContextualTypeForArgument(template.parent, substitutionExpression);\n      }\n      return void 0;\n    }\n    function getContextualTypeForBinaryOperand(node, contextFlags) {\n      const binaryExpression = node.parent;\n      const { left, operatorToken, right } = binaryExpression;\n      switch (operatorToken.kind) {\n        case 63:\n        case 76:\n        case 75:\n        case 77:\n          return node === right ? getContextualTypeForAssignmentDeclaration(binaryExpression) : void 0;\n        case 56:\n        case 60:\n          const type = getContextualType2(binaryExpression, contextFlags);\n          return node === right && (type && type.pattern || !type && !isDefaultedExpandoInitializer(binaryExpression)) ? getTypeOfExpression(left) : type;\n        case 55:\n        case 27:\n          return node === right ? getContextualType2(binaryExpression, contextFlags) : void 0;\n        default:\n          return void 0;\n      }\n    }\n    function getSymbolForExpression(e) {\n      if (canHaveSymbol(e) && e.symbol) {\n        return e.symbol;\n      }\n      if (isIdentifier(e)) {\n        return getResolvedSymbol(e);\n      }\n      if (isPropertyAccessExpression(e)) {\n        const lhsType = getTypeOfExpression(e.expression);\n        return isPrivateIdentifier(e.name) ? tryGetPrivateIdentifierPropertyOfType(lhsType, e.name) : getPropertyOfType(lhsType, e.name.escapedText);\n      }\n      if (isElementAccessExpression(e)) {\n        const propType = checkExpressionCached(e.argumentExpression);\n        if (!isTypeUsableAsPropertyName(propType)) {\n          return void 0;\n        }\n        const lhsType = getTypeOfExpression(e.expression);\n        return getPropertyOfType(lhsType, getPropertyNameFromType(propType));\n      }\n      return void 0;\n      function tryGetPrivateIdentifierPropertyOfType(type, id) {\n        const lexicallyScopedSymbol = lookupSymbolForPrivateIdentifierDeclaration(id.escapedText, id);\n        return lexicallyScopedSymbol && getPrivateIdentifierPropertyOfType(type, lexicallyScopedSymbol);\n      }\n    }\n    function getContextualTypeForAssignmentDeclaration(binaryExpression) {\n      var _a2, _b;\n      const kind = getAssignmentDeclarationKind(binaryExpression);\n      switch (kind) {\n        case 0:\n        case 4:\n          const lhsSymbol = getSymbolForExpression(binaryExpression.left);\n          const decl = lhsSymbol && lhsSymbol.valueDeclaration;\n          if (decl && (isPropertyDeclaration(decl) || isPropertySignature(decl))) {\n            const overallAnnotation = getEffectiveTypeAnnotationNode(decl);\n            return overallAnnotation && instantiateType(getTypeFromTypeNode(overallAnnotation), getSymbolLinks(lhsSymbol).mapper) || (isPropertyDeclaration(decl) ? decl.initializer && getTypeOfExpression(binaryExpression.left) : void 0);\n          }\n          if (kind === 0) {\n            return getTypeOfExpression(binaryExpression.left);\n          }\n          return getContextualTypeForThisPropertyAssignment(binaryExpression);\n        case 5:\n          if (isPossiblyAliasedThisProperty(binaryExpression, kind)) {\n            return getContextualTypeForThisPropertyAssignment(binaryExpression);\n          } else if (!canHaveSymbol(binaryExpression.left) || !binaryExpression.left.symbol) {\n            return getTypeOfExpression(binaryExpression.left);\n          } else {\n            const decl2 = binaryExpression.left.symbol.valueDeclaration;\n            if (!decl2) {\n              return void 0;\n            }\n            const lhs = cast(binaryExpression.left, isAccessExpression);\n            const overallAnnotation = getEffectiveTypeAnnotationNode(decl2);\n            if (overallAnnotation) {\n              return getTypeFromTypeNode(overallAnnotation);\n            } else if (isIdentifier(lhs.expression)) {\n              const id = lhs.expression;\n              const parentSymbol = resolveName(id, id.escapedText, 111551, void 0, id.escapedText, true);\n              if (parentSymbol) {\n                const annotated2 = parentSymbol.valueDeclaration && getEffectiveTypeAnnotationNode(parentSymbol.valueDeclaration);\n                if (annotated2) {\n                  const nameStr = getElementOrPropertyAccessName(lhs);\n                  if (nameStr !== void 0) {\n                    return getTypeOfPropertyOfContextualType(getTypeFromTypeNode(annotated2), nameStr);\n                  }\n                }\n                return void 0;\n              }\n            }\n            return isInJSFile(decl2) ? void 0 : getTypeOfExpression(binaryExpression.left);\n          }\n        case 1:\n        case 6:\n        case 3:\n        case 2:\n          let valueDeclaration;\n          if (kind !== 2) {\n            valueDeclaration = canHaveSymbol(binaryExpression.left) ? (_a2 = binaryExpression.left.symbol) == null ? void 0 : _a2.valueDeclaration : void 0;\n          }\n          valueDeclaration || (valueDeclaration = (_b = binaryExpression.symbol) == null ? void 0 : _b.valueDeclaration);\n          const annotated = valueDeclaration && getEffectiveTypeAnnotationNode(valueDeclaration);\n          return annotated ? getTypeFromTypeNode(annotated) : void 0;\n        case 7:\n        case 8:\n        case 9:\n          return Debug.fail(\"Does not apply\");\n        default:\n          return Debug.assertNever(kind);\n      }\n    }\n    function isPossiblyAliasedThisProperty(declaration, kind = getAssignmentDeclarationKind(declaration)) {\n      if (kind === 4) {\n        return true;\n      }\n      if (!isInJSFile(declaration) || kind !== 5 || !isIdentifier(declaration.left.expression)) {\n        return false;\n      }\n      const name = declaration.left.expression.escapedText;\n      const symbol = resolveName(declaration.left, name, 111551, void 0, void 0, true, true);\n      return isThisInitializedDeclaration(symbol == null ? void 0 : symbol.valueDeclaration);\n    }\n    function getContextualTypeForThisPropertyAssignment(binaryExpression) {\n      if (!binaryExpression.symbol)\n        return getTypeOfExpression(binaryExpression.left);\n      if (binaryExpression.symbol.valueDeclaration) {\n        const annotated = getEffectiveTypeAnnotationNode(binaryExpression.symbol.valueDeclaration);\n        if (annotated) {\n          const type = getTypeFromTypeNode(annotated);\n          if (type) {\n            return type;\n          }\n        }\n      }\n      const thisAccess = cast(binaryExpression.left, isAccessExpression);\n      if (!isObjectLiteralMethod(getThisContainer(thisAccess.expression, false, false))) {\n        return void 0;\n      }\n      const thisType = checkThisExpression(thisAccess.expression);\n      const nameStr = getElementOrPropertyAccessName(thisAccess);\n      return nameStr !== void 0 && getTypeOfPropertyOfContextualType(thisType, nameStr) || void 0;\n    }\n    function isCircularMappedProperty(symbol) {\n      return !!(getCheckFlags(symbol) & 262144 && !symbol.links.type && findResolutionCycleStartIndex(symbol, 0) >= 0);\n    }\n    function getTypeOfPropertyOfContextualType(type, name, nameType) {\n      return mapType(type, (t) => {\n        var _a2;\n        if (isGenericMappedType(t) && !t.declaration.nameType) {\n          const constraint = getConstraintTypeFromMappedType(t);\n          const constraintOfConstraint = getBaseConstraintOfType(constraint) || constraint;\n          const propertyNameType = nameType || getStringLiteralType(unescapeLeadingUnderscores(name));\n          if (isTypeAssignableTo(propertyNameType, constraintOfConstraint)) {\n            return substituteIndexedMappedType(t, propertyNameType);\n          }\n        } else if (t.flags & 3670016) {\n          const prop = getPropertyOfType(t, name);\n          if (prop) {\n            return isCircularMappedProperty(prop) ? void 0 : getTypeOfSymbol(prop);\n          }\n          if (isTupleType(t) && isNumericLiteralName(name) && +name >= 0) {\n            const restType = getElementTypeOfSliceOfTupleType(t, t.target.fixedLength, 0, false, true);\n            if (restType) {\n              return restType;\n            }\n          }\n          return (_a2 = findApplicableIndexInfo(getIndexInfosOfStructuredType(t), nameType || getStringLiteralType(unescapeLeadingUnderscores(name)))) == null ? void 0 : _a2.type;\n        }\n        return void 0;\n      }, true);\n    }\n    function getContextualTypeForObjectLiteralMethod(node, contextFlags) {\n      Debug.assert(isObjectLiteralMethod(node));\n      if (node.flags & 33554432) {\n        return void 0;\n      }\n      return getContextualTypeForObjectLiteralElement(node, contextFlags);\n    }\n    function getContextualTypeForObjectLiteralElement(element, contextFlags) {\n      const objectLiteral = element.parent;\n      const propertyAssignmentType = isPropertyAssignment(element) && getContextualTypeForVariableLikeDeclaration(element, contextFlags);\n      if (propertyAssignmentType) {\n        return propertyAssignmentType;\n      }\n      const type = getApparentTypeOfContextualType(objectLiteral, contextFlags);\n      if (type) {\n        if (hasBindableName(element)) {\n          const symbol = getSymbolOfDeclaration(element);\n          return getTypeOfPropertyOfContextualType(type, symbol.escapedName, getSymbolLinks(symbol).nameType);\n        }\n        if (element.name) {\n          const nameType = getLiteralTypeFromPropertyName(element.name);\n          return mapType(type, (t) => {\n            var _a2;\n            return (_a2 = findApplicableIndexInfo(getIndexInfosOfStructuredType(t), nameType)) == null ? void 0 : _a2.type;\n          }, true);\n        }\n      }\n      return void 0;\n    }\n    function getContextualTypeForElementExpression(arrayContextualType, index) {\n      return arrayContextualType && (index >= 0 && getTypeOfPropertyOfContextualType(arrayContextualType, \"\" + index) || mapType(arrayContextualType, (t) => isTupleType(t) ? getElementTypeOfSliceOfTupleType(t, 0, 0, false, true) : getIteratedTypeOrElementType(1, t, undefinedType, void 0, false), true));\n    }\n    function getContextualTypeForConditionalOperand(node, contextFlags) {\n      const conditional = node.parent;\n      return node === conditional.whenTrue || node === conditional.whenFalse ? getContextualType2(conditional, contextFlags) : void 0;\n    }\n    function getContextualTypeForChildJsxExpression(node, child, contextFlags) {\n      const attributesType = getApparentTypeOfContextualType(node.openingElement.tagName, contextFlags);\n      const jsxChildrenPropertyName = getJsxElementChildrenPropertyName(getJsxNamespaceAt(node));\n      if (!(attributesType && !isTypeAny(attributesType) && jsxChildrenPropertyName && jsxChildrenPropertyName !== \"\")) {\n        return void 0;\n      }\n      const realChildren = getSemanticJsxChildren(node.children);\n      const childIndex = realChildren.indexOf(child);\n      const childFieldType = getTypeOfPropertyOfContextualType(attributesType, jsxChildrenPropertyName);\n      return childFieldType && (realChildren.length === 1 ? childFieldType : mapType(childFieldType, (t) => {\n        if (isArrayLikeType(t)) {\n          return getIndexedAccessType(t, getNumberLiteralType(childIndex));\n        } else {\n          return t;\n        }\n      }, true));\n    }\n    function getContextualTypeForJsxExpression(node, contextFlags) {\n      const exprParent = node.parent;\n      return isJsxAttributeLike(exprParent) ? getContextualType2(node, contextFlags) : isJsxElement(exprParent) ? getContextualTypeForChildJsxExpression(exprParent, node, contextFlags) : void 0;\n    }\n    function getContextualTypeForJsxAttribute(attribute, contextFlags) {\n      if (isJsxAttribute(attribute)) {\n        const attributesType = getApparentTypeOfContextualType(attribute.parent, contextFlags);\n        if (!attributesType || isTypeAny(attributesType)) {\n          return void 0;\n        }\n        return getTypeOfPropertyOfContextualType(attributesType, attribute.name.escapedText);\n      } else {\n        return getContextualType2(attribute.parent, contextFlags);\n      }\n    }\n    function isPossiblyDiscriminantValue(node) {\n      switch (node.kind) {\n        case 10:\n        case 8:\n        case 9:\n        case 14:\n        case 110:\n        case 95:\n        case 104:\n        case 79:\n        case 155:\n          return true;\n        case 208:\n        case 214:\n          return isPossiblyDiscriminantValue(node.expression);\n        case 291:\n          return !node.expression || isPossiblyDiscriminantValue(node.expression);\n      }\n      return false;\n    }\n    function discriminateContextualTypeByObjectMembers(node, contextualType) {\n      return getMatchingUnionConstituentForObjectLiteral(contextualType, node) || discriminateTypeByDiscriminableItems(contextualType, concatenate(map(filter(node.properties, (p) => !!p.symbol && p.kind === 299 && isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName)), (prop) => [() => getContextFreeTypeOfExpression(prop.initializer), prop.symbol.escapedName]), map(filter(getPropertiesOfType(contextualType), (s) => {\n        var _a2;\n        return !!(s.flags & 16777216) && !!((_a2 = node == null ? void 0 : node.symbol) == null ? void 0 : _a2.members) && !node.symbol.members.has(s.escapedName) && isDiscriminantProperty(contextualType, s.escapedName);\n      }), (s) => [() => undefinedType, s.escapedName])), isTypeAssignableTo, contextualType);\n    }\n    function discriminateContextualTypeByJSXAttributes(node, contextualType) {\n      return discriminateTypeByDiscriminableItems(contextualType, concatenate(map(filter(node.properties, (p) => !!p.symbol && p.kind === 288 && isDiscriminantProperty(contextualType, p.symbol.escapedName) && (!p.initializer || isPossiblyDiscriminantValue(p.initializer))), (prop) => [!prop.initializer ? () => trueType : () => getContextFreeTypeOfExpression(prop.initializer), prop.symbol.escapedName]), map(filter(getPropertiesOfType(contextualType), (s) => {\n        var _a2;\n        return !!(s.flags & 16777216) && !!((_a2 = node == null ? void 0 : node.symbol) == null ? void 0 : _a2.members) && !node.symbol.members.has(s.escapedName) && isDiscriminantProperty(contextualType, s.escapedName);\n      }), (s) => [() => undefinedType, s.escapedName])), isTypeAssignableTo, contextualType);\n    }\n    function getApparentTypeOfContextualType(node, contextFlags) {\n      const contextualType = isObjectLiteralMethod(node) ? getContextualTypeForObjectLiteralMethod(node, contextFlags) : getContextualType2(node, contextFlags);\n      const instantiatedType = instantiateContextualType(contextualType, node, contextFlags);\n      if (instantiatedType && !(contextFlags && contextFlags & 2 && instantiatedType.flags & 8650752)) {\n        const apparentType = mapType(instantiatedType, getApparentType, true);\n        return apparentType.flags & 1048576 && isObjectLiteralExpression(node) ? discriminateContextualTypeByObjectMembers(node, apparentType) : apparentType.flags & 1048576 && isJsxAttributes(node) ? discriminateContextualTypeByJSXAttributes(node, apparentType) : apparentType;\n      }\n    }\n    function instantiateContextualType(contextualType, node, contextFlags) {\n      if (contextualType && maybeTypeOfKind(contextualType, 465829888)) {\n        const inferenceContext = getInferenceContext(node);\n        if (inferenceContext && contextFlags & 1 && some(inferenceContext.inferences, hasInferenceCandidatesOrDefault)) {\n          return instantiateInstantiableTypes(contextualType, inferenceContext.nonFixingMapper);\n        }\n        if (inferenceContext == null ? void 0 : inferenceContext.returnMapper) {\n          const type = instantiateInstantiableTypes(contextualType, inferenceContext.returnMapper);\n          return type.flags & 1048576 && containsType(type.types, regularFalseType) && containsType(type.types, regularTrueType) ? filterType(type, (t) => t !== regularFalseType && t !== regularTrueType) : type;\n        }\n      }\n      return contextualType;\n    }\n    function instantiateInstantiableTypes(type, mapper) {\n      if (type.flags & 465829888) {\n        return instantiateType(type, mapper);\n      }\n      if (type.flags & 1048576) {\n        return getUnionType(map(type.types, (t) => instantiateInstantiableTypes(t, mapper)), 0);\n      }\n      if (type.flags & 2097152) {\n        return getIntersectionType(map(type.types, (t) => instantiateInstantiableTypes(t, mapper)));\n      }\n      return type;\n    }\n    function getContextualType2(node, contextFlags) {\n      var _a2, _b;\n      if (node.flags & 33554432) {\n        return void 0;\n      }\n      const index = findContextualNode(node, !contextFlags);\n      if (index >= 0) {\n        return contextualTypes[index];\n      }\n      const { parent: parent2 } = node;\n      switch (parent2.kind) {\n        case 257:\n        case 166:\n        case 169:\n        case 168:\n        case 205:\n          return getContextualTypeForInitializerExpression(node, contextFlags);\n        case 216:\n        case 250:\n          return getContextualTypeForReturnExpression(node, contextFlags);\n        case 226:\n          return getContextualTypeForYieldOperand(parent2, contextFlags);\n        case 220:\n          return getContextualTypeForAwaitOperand(parent2, contextFlags);\n        case 210:\n        case 211:\n          return getContextualTypeForArgument(parent2, node);\n        case 167:\n          return getContextualTypeForDecorator(parent2);\n        case 213:\n        case 231:\n          return isConstTypeReference(parent2.type) ? getContextualType2(parent2, contextFlags) : getTypeFromTypeNode(parent2.type);\n        case 223:\n          return getContextualTypeForBinaryOperand(node, contextFlags);\n        case 299:\n        case 300:\n          return getContextualTypeForObjectLiteralElement(parent2, contextFlags);\n        case 301:\n          return getContextualType2(parent2.parent, contextFlags);\n        case 206: {\n          const arrayLiteral = parent2;\n          const type = getApparentTypeOfContextualType(arrayLiteral, contextFlags);\n          const spreadIndex = (_b = (_a2 = getNodeLinks(arrayLiteral)).firstSpreadIndex) != null ? _b : _a2.firstSpreadIndex = findIndex(arrayLiteral.elements, isSpreadElement);\n          const elementIndex = indexOfNode(arrayLiteral.elements, node);\n          return getContextualTypeForElementExpression(type, spreadIndex < 0 || elementIndex < spreadIndex ? elementIndex : -1);\n        }\n        case 224:\n          return getContextualTypeForConditionalOperand(node, contextFlags);\n        case 236:\n          Debug.assert(parent2.parent.kind === 225);\n          return getContextualTypeForSubstitutionExpression(parent2.parent, node);\n        case 214: {\n          if (isInJSFile(parent2)) {\n            if (isJSDocSatisfiesExpression(parent2)) {\n              return getTypeFromTypeNode(getJSDocSatisfiesExpressionType(parent2));\n            }\n            const typeTag = getJSDocTypeTag(parent2);\n            if (typeTag && !isConstTypeReference(typeTag.typeExpression.type)) {\n              return getTypeFromTypeNode(typeTag.typeExpression.type);\n            }\n          }\n          return getContextualType2(parent2, contextFlags);\n        }\n        case 232:\n          return getContextualType2(parent2, contextFlags);\n        case 235:\n          return getTypeFromTypeNode(parent2.type);\n        case 274:\n          return tryGetTypeFromEffectiveTypeNode(parent2);\n        case 291:\n          return getContextualTypeForJsxExpression(parent2, contextFlags);\n        case 288:\n        case 290:\n          return getContextualTypeForJsxAttribute(parent2, contextFlags);\n        case 283:\n        case 282:\n          return getContextualJsxElementAttributesType(parent2, contextFlags);\n      }\n      return void 0;\n    }\n    function pushCachedContextualType(node) {\n      pushContextualType(node, getContextualType2(node, void 0), true);\n    }\n    function pushContextualType(node, type, isCache) {\n      contextualTypeNodes[contextualTypeCount] = node;\n      contextualTypes[contextualTypeCount] = type;\n      contextualIsCache[contextualTypeCount] = isCache;\n      contextualTypeCount++;\n    }\n    function popContextualType() {\n      contextualTypeCount--;\n    }\n    function findContextualNode(node, includeCaches) {\n      for (let i = contextualTypeCount - 1; i >= 0; i--) {\n        if (node === contextualTypeNodes[i] && (includeCaches || !contextualIsCache[i])) {\n          return i;\n        }\n      }\n      return -1;\n    }\n    function pushInferenceContext(node, inferenceContext) {\n      inferenceContextNodes[inferenceContextCount] = node;\n      inferenceContexts[inferenceContextCount] = inferenceContext;\n      inferenceContextCount++;\n    }\n    function popInferenceContext() {\n      inferenceContextCount--;\n    }\n    function getInferenceContext(node) {\n      for (let i = inferenceContextCount - 1; i >= 0; i--) {\n        if (isNodeDescendantOf(node, inferenceContextNodes[i])) {\n          return inferenceContexts[i];\n        }\n      }\n    }\n    function getContextualJsxElementAttributesType(node, contextFlags) {\n      if (isJsxOpeningElement(node) && contextFlags !== 4) {\n        const index = findContextualNode(node.parent, !contextFlags);\n        if (index >= 0) {\n          return contextualTypes[index];\n        }\n      }\n      return getContextualTypeForArgumentAtIndex(node, 0);\n    }\n    function getEffectiveFirstArgumentForJsxSignature(signature, node) {\n      return getJsxReferenceKind(node) !== 0 ? getJsxPropsTypeFromCallSignature(signature, node) : getJsxPropsTypeFromClassType(signature, node);\n    }\n    function getJsxPropsTypeFromCallSignature(sig, context) {\n      let propsType = getTypeOfFirstParameterOfSignatureWithFallback(sig, unknownType);\n      propsType = getJsxManagedAttributesFromLocatedAttributes(context, getJsxNamespaceAt(context), propsType);\n      const intrinsicAttribs = getJsxType(JsxNames.IntrinsicAttributes, context);\n      if (!isErrorType(intrinsicAttribs)) {\n        propsType = intersectTypes(intrinsicAttribs, propsType);\n      }\n      return propsType;\n    }\n    function getJsxPropsTypeForSignatureFromMember(sig, forcedLookupLocation) {\n      if (sig.compositeSignatures) {\n        const results = [];\n        for (const signature of sig.compositeSignatures) {\n          const instance = getReturnTypeOfSignature(signature);\n          if (isTypeAny(instance)) {\n            return instance;\n          }\n          const propType = getTypeOfPropertyOfType(instance, forcedLookupLocation);\n          if (!propType) {\n            return;\n          }\n          results.push(propType);\n        }\n        return getIntersectionType(results);\n      }\n      const instanceType = getReturnTypeOfSignature(sig);\n      return isTypeAny(instanceType) ? instanceType : getTypeOfPropertyOfType(instanceType, forcedLookupLocation);\n    }\n    function getStaticTypeOfReferencedJsxConstructor(context) {\n      if (isJsxIntrinsicIdentifier(context.tagName)) {\n        const result = getIntrinsicAttributesTypeFromJsxOpeningLikeElement(context);\n        const fakeSignature = createSignatureForJSXIntrinsic(context, result);\n        return getOrCreateTypeFromSignature(fakeSignature);\n      }\n      const tagType = checkExpressionCached(context.tagName);\n      if (tagType.flags & 128) {\n        const result = getIntrinsicAttributesTypeFromStringLiteralType(tagType, context);\n        if (!result) {\n          return errorType;\n        }\n        const fakeSignature = createSignatureForJSXIntrinsic(context, result);\n        return getOrCreateTypeFromSignature(fakeSignature);\n      }\n      return tagType;\n    }\n    function getJsxManagedAttributesFromLocatedAttributes(context, ns, attributesType) {\n      const managedSym = getJsxLibraryManagedAttributes(ns);\n      if (managedSym) {\n        const declaredManagedType = getDeclaredTypeOfSymbol(managedSym);\n        const ctorType = getStaticTypeOfReferencedJsxConstructor(context);\n        if (managedSym.flags & 524288) {\n          const params = getSymbolLinks(managedSym).typeParameters;\n          if (length(params) >= 2) {\n            const args = fillMissingTypeArguments([ctorType, attributesType], params, 2, isInJSFile(context));\n            return getTypeAliasInstantiation(managedSym, args);\n          }\n        }\n        if (length(declaredManagedType.typeParameters) >= 2) {\n          const args = fillMissingTypeArguments([ctorType, attributesType], declaredManagedType.typeParameters, 2, isInJSFile(context));\n          return createTypeReference(declaredManagedType, args);\n        }\n      }\n      return attributesType;\n    }\n    function getJsxPropsTypeFromClassType(sig, context) {\n      const ns = getJsxNamespaceAt(context);\n      const forcedLookupLocation = getJsxElementPropertiesName(ns);\n      let attributesType = forcedLookupLocation === void 0 ? getTypeOfFirstParameterOfSignatureWithFallback(sig, unknownType) : forcedLookupLocation === \"\" ? getReturnTypeOfSignature(sig) : getJsxPropsTypeForSignatureFromMember(sig, forcedLookupLocation);\n      if (!attributesType) {\n        if (!!forcedLookupLocation && !!length(context.attributes.properties)) {\n          error(context, Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property, unescapeLeadingUnderscores(forcedLookupLocation));\n        }\n        return unknownType;\n      }\n      attributesType = getJsxManagedAttributesFromLocatedAttributes(context, ns, attributesType);\n      if (isTypeAny(attributesType)) {\n        return attributesType;\n      } else {\n        let apparentAttributesType = attributesType;\n        const intrinsicClassAttribs = getJsxType(JsxNames.IntrinsicClassAttributes, context);\n        if (!isErrorType(intrinsicClassAttribs)) {\n          const typeParams = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(intrinsicClassAttribs.symbol);\n          const hostClassType = getReturnTypeOfSignature(sig);\n          let libraryManagedAttributeType;\n          if (typeParams) {\n            const inferredArgs = fillMissingTypeArguments([hostClassType], typeParams, getMinTypeArgumentCount(typeParams), isInJSFile(context));\n            libraryManagedAttributeType = instantiateType(intrinsicClassAttribs, createTypeMapper(typeParams, inferredArgs));\n          } else\n            libraryManagedAttributeType = intrinsicClassAttribs;\n          apparentAttributesType = intersectTypes(libraryManagedAttributeType, apparentAttributesType);\n        }\n        const intrinsicAttribs = getJsxType(JsxNames.IntrinsicAttributes, context);\n        if (!isErrorType(intrinsicAttribs)) {\n          apparentAttributesType = intersectTypes(intrinsicAttribs, apparentAttributesType);\n        }\n        return apparentAttributesType;\n      }\n    }\n    function getIntersectedSignatures(signatures) {\n      return getStrictOptionValue(compilerOptions, \"noImplicitAny\") ? reduceLeft(signatures, (left, right) => left === right || !left ? left : compareTypeParametersIdentical(left.typeParameters, right.typeParameters) ? combineSignaturesOfIntersectionMembers(left, right) : void 0) : void 0;\n    }\n    function combineIntersectionThisParam(left, right, mapper) {\n      if (!left || !right) {\n        return left || right;\n      }\n      const thisType = getUnionType([getTypeOfSymbol(left), instantiateType(getTypeOfSymbol(right), mapper)]);\n      return createSymbolWithType(left, thisType);\n    }\n    function combineIntersectionParameters(left, right, mapper) {\n      const leftCount = getParameterCount(left);\n      const rightCount = getParameterCount(right);\n      const longest = leftCount >= rightCount ? left : right;\n      const shorter = longest === left ? right : left;\n      const longestCount = longest === left ? leftCount : rightCount;\n      const eitherHasEffectiveRest = hasEffectiveRestParameter(left) || hasEffectiveRestParameter(right);\n      const needsExtraRestElement = eitherHasEffectiveRest && !hasEffectiveRestParameter(longest);\n      const params = new Array(longestCount + (needsExtraRestElement ? 1 : 0));\n      for (let i = 0; i < longestCount; i++) {\n        let longestParamType = tryGetTypeAtPosition(longest, i);\n        if (longest === right) {\n          longestParamType = instantiateType(longestParamType, mapper);\n        }\n        let shorterParamType = tryGetTypeAtPosition(shorter, i) || unknownType;\n        if (shorter === right) {\n          shorterParamType = instantiateType(shorterParamType, mapper);\n        }\n        const unionParamType = getUnionType([longestParamType, shorterParamType]);\n        const isRestParam = eitherHasEffectiveRest && !needsExtraRestElement && i === longestCount - 1;\n        const isOptional = i >= getMinArgumentCount(longest) && i >= getMinArgumentCount(shorter);\n        const leftName = i >= leftCount ? void 0 : getParameterNameAtPosition(left, i);\n        const rightName = i >= rightCount ? void 0 : getParameterNameAtPosition(right, i);\n        const paramName = leftName === rightName ? leftName : !leftName ? rightName : !rightName ? leftName : void 0;\n        const paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || `arg${i}`);\n        paramSymbol.links.type = isRestParam ? createArrayType(unionParamType) : unionParamType;\n        params[i] = paramSymbol;\n      }\n      if (needsExtraRestElement) {\n        const restParamSymbol = createSymbol(1, \"args\");\n        restParamSymbol.links.type = createArrayType(getTypeAtPosition(shorter, longestCount));\n        if (shorter === right) {\n          restParamSymbol.links.type = instantiateType(restParamSymbol.links.type, mapper);\n        }\n        params[longestCount] = restParamSymbol;\n      }\n      return params;\n    }\n    function combineSignaturesOfIntersectionMembers(left, right) {\n      const typeParams = left.typeParameters || right.typeParameters;\n      let paramMapper;\n      if (left.typeParameters && right.typeParameters) {\n        paramMapper = createTypeMapper(right.typeParameters, left.typeParameters);\n      }\n      const declaration = left.declaration;\n      const params = combineIntersectionParameters(left, right, paramMapper);\n      const thisParam = combineIntersectionThisParam(left.thisParameter, right.thisParameter, paramMapper);\n      const minArgCount = Math.max(left.minArgumentCount, right.minArgumentCount);\n      const result = createSignature(declaration, typeParams, thisParam, params, void 0, void 0, minArgCount, (left.flags | right.flags) & 39);\n      result.compositeKind = 2097152;\n      result.compositeSignatures = concatenate(left.compositeKind === 2097152 && left.compositeSignatures || [left], [right]);\n      if (paramMapper) {\n        result.mapper = left.compositeKind === 2097152 && left.mapper && left.compositeSignatures ? combineTypeMappers(left.mapper, paramMapper) : paramMapper;\n      }\n      return result;\n    }\n    function getContextualCallSignature(type, node) {\n      const signatures = getSignaturesOfType(type, 0);\n      const applicableByArity = filter(signatures, (s) => !isAritySmaller(s, node));\n      return applicableByArity.length === 1 ? applicableByArity[0] : getIntersectedSignatures(applicableByArity);\n    }\n    function isAritySmaller(signature, target) {\n      let targetParameterCount = 0;\n      for (; targetParameterCount < target.parameters.length; targetParameterCount++) {\n        const param = target.parameters[targetParameterCount];\n        if (param.initializer || param.questionToken || param.dotDotDotToken || isJSDocOptionalParameter(param)) {\n          break;\n        }\n      }\n      if (target.parameters.length && parameterIsThisKeyword(target.parameters[0])) {\n        targetParameterCount--;\n      }\n      return !hasEffectiveRestParameter(signature) && getParameterCount(signature) < targetParameterCount;\n    }\n    function getContextualSignatureForFunctionLikeDeclaration(node) {\n      return isFunctionExpressionOrArrowFunction(node) || isObjectLiteralMethod(node) ? getContextualSignature(node) : void 0;\n    }\n    function getContextualSignature(node) {\n      Debug.assert(node.kind !== 171 || isObjectLiteralMethod(node));\n      const typeTagSignature = getSignatureOfTypeTag(node);\n      if (typeTagSignature) {\n        return typeTagSignature;\n      }\n      const type = getApparentTypeOfContextualType(node, 1);\n      if (!type) {\n        return void 0;\n      }\n      if (!(type.flags & 1048576)) {\n        return getContextualCallSignature(type, node);\n      }\n      let signatureList;\n      const types = type.types;\n      for (const current of types) {\n        const signature = getContextualCallSignature(current, node);\n        if (signature) {\n          if (!signatureList) {\n            signatureList = [signature];\n          } else if (!compareSignaturesIdentical(signatureList[0], signature, false, true, true, compareTypesIdentical)) {\n            return void 0;\n          } else {\n            signatureList.push(signature);\n          }\n        }\n      }\n      if (signatureList) {\n        return signatureList.length === 1 ? signatureList[0] : createUnionSignature(signatureList[0], signatureList);\n      }\n    }\n    function checkSpreadExpression(node, checkMode) {\n      if (languageVersion < 2) {\n        checkExternalEmitHelpers(node, compilerOptions.downlevelIteration ? 1536 : 1024);\n      }\n      const arrayOrIterableType = checkExpression(node.expression, checkMode);\n      return checkIteratedTypeOrElementType(33, arrayOrIterableType, undefinedType, node.expression);\n    }\n    function checkSyntheticExpression(node) {\n      return node.isSpread ? getIndexedAccessType(node.type, numberType) : node.type;\n    }\n    function hasDefaultValue(node) {\n      return node.kind === 205 && !!node.initializer || node.kind === 223 && node.operatorToken.kind === 63;\n    }\n    function checkArrayLiteral(node, checkMode, forceTuple) {\n      const elements = node.elements;\n      const elementCount = elements.length;\n      const elementTypes = [];\n      const elementFlags = [];\n      pushCachedContextualType(node);\n      const inDestructuringPattern = isAssignmentTarget(node);\n      const inConstContext = isConstContext(node);\n      const contextualType = getApparentTypeOfContextualType(node, void 0);\n      const inTupleContext = !!contextualType && someType(contextualType, isTupleLikeType);\n      let hasOmittedExpression = false;\n      for (let i = 0; i < elementCount; i++) {\n        const e = elements[i];\n        if (e.kind === 227) {\n          if (languageVersion < 2) {\n            checkExternalEmitHelpers(e, compilerOptions.downlevelIteration ? 1536 : 1024);\n          }\n          const spreadType = checkExpression(e.expression, checkMode, forceTuple);\n          if (isArrayLikeType(spreadType)) {\n            elementTypes.push(spreadType);\n            elementFlags.push(8);\n          } else if (inDestructuringPattern) {\n            const restElementType = getIndexTypeOfType(spreadType, numberType) || getIteratedTypeOrElementType(65, spreadType, undefinedType, void 0, false) || unknownType;\n            elementTypes.push(restElementType);\n            elementFlags.push(4);\n          } else {\n            elementTypes.push(checkIteratedTypeOrElementType(33, spreadType, undefinedType, e.expression));\n            elementFlags.push(4);\n          }\n        } else if (exactOptionalPropertyTypes && e.kind === 229) {\n          hasOmittedExpression = true;\n          elementTypes.push(undefinedOrMissingType);\n          elementFlags.push(2);\n        } else {\n          const type = checkExpressionForMutableLocation(e, checkMode, forceTuple);\n          elementTypes.push(addOptionality(type, true, hasOmittedExpression));\n          elementFlags.push(hasOmittedExpression ? 2 : 1);\n          if (inTupleContext && checkMode && checkMode & 2 && !(checkMode & 4) && isContextSensitive(e)) {\n            const inferenceContext = getInferenceContext(node);\n            Debug.assert(inferenceContext);\n            addIntraExpressionInferenceSite(inferenceContext, e, type);\n          }\n        }\n      }\n      popContextualType();\n      if (inDestructuringPattern) {\n        return createTupleType(elementTypes, elementFlags);\n      }\n      if (forceTuple || inConstContext || inTupleContext) {\n        return createArrayLiteralType(createTupleType(elementTypes, elementFlags, inConstContext));\n      }\n      return createArrayLiteralType(createArrayType(elementTypes.length ? getUnionType(sameMap(elementTypes, (t, i) => elementFlags[i] & 8 ? getIndexedAccessTypeOrUndefined(t, numberType) || anyType : t), 2) : strictNullChecks ? implicitNeverType : undefinedWideningType, inConstContext));\n    }\n    function createArrayLiteralType(type) {\n      if (!(getObjectFlags(type) & 4)) {\n        return type;\n      }\n      let literalType = type.literalType;\n      if (!literalType) {\n        literalType = type.literalType = cloneTypeReference(type);\n        literalType.objectFlags |= 16384 | 131072;\n      }\n      return literalType;\n    }\n    function isNumericName(name) {\n      switch (name.kind) {\n        case 164:\n          return isNumericComputedName(name);\n        case 79:\n          return isNumericLiteralName(name.escapedText);\n        case 8:\n        case 10:\n          return isNumericLiteralName(name.text);\n        default:\n          return false;\n      }\n    }\n    function isNumericComputedName(name) {\n      return isTypeAssignableToKind(checkComputedPropertyName(name), 296);\n    }\n    function checkComputedPropertyName(node) {\n      const links = getNodeLinks(node.expression);\n      if (!links.resolvedType) {\n        if ((isTypeLiteralNode(node.parent.parent) || isClassLike(node.parent.parent) || isInterfaceDeclaration(node.parent.parent)) && isBinaryExpression(node.expression) && node.expression.operatorToken.kind === 101 && node.parent.kind !== 174 && node.parent.kind !== 175) {\n          return links.resolvedType = errorType;\n        }\n        links.resolvedType = checkExpression(node.expression);\n        if (isPropertyDeclaration(node.parent) && !hasStaticModifier(node.parent) && isClassExpression(node.parent.parent)) {\n          const container = getEnclosingBlockScopeContainer(node.parent.parent);\n          const enclosingIterationStatement = getEnclosingIterationStatement(container);\n          if (enclosingIterationStatement) {\n            getNodeLinks(enclosingIterationStatement).flags |= 4096;\n            getNodeLinks(node).flags |= 32768;\n            getNodeLinks(node.parent.parent).flags |= 32768;\n          }\n        }\n        if (links.resolvedType.flags & 98304 || !isTypeAssignableToKind(links.resolvedType, 402653316 | 296 | 12288) && !isTypeAssignableTo(links.resolvedType, stringNumberSymbolType)) {\n          error(node, Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any);\n        }\n      }\n      return links.resolvedType;\n    }\n    function isSymbolWithNumericName(symbol) {\n      var _a2;\n      const firstDecl = (_a2 = symbol.declarations) == null ? void 0 : _a2[0];\n      return isNumericLiteralName(symbol.escapedName) || firstDecl && isNamedDeclaration(firstDecl) && isNumericName(firstDecl.name);\n    }\n    function isSymbolWithSymbolName(symbol) {\n      var _a2;\n      const firstDecl = (_a2 = symbol.declarations) == null ? void 0 : _a2[0];\n      return isKnownSymbol(symbol) || firstDecl && isNamedDeclaration(firstDecl) && isComputedPropertyName(firstDecl.name) && isTypeAssignableToKind(checkComputedPropertyName(firstDecl.name), 4096);\n    }\n    function getObjectLiteralIndexInfo(node, offset, properties, keyType) {\n      const propTypes = [];\n      for (let i = offset; i < properties.length; i++) {\n        const prop = properties[i];\n        if (keyType === stringType && !isSymbolWithSymbolName(prop) || keyType === numberType && isSymbolWithNumericName(prop) || keyType === esSymbolType && isSymbolWithSymbolName(prop)) {\n          propTypes.push(getTypeOfSymbol(properties[i]));\n        }\n      }\n      const unionType = propTypes.length ? getUnionType(propTypes, 2) : undefinedType;\n      return createIndexInfo(keyType, unionType, isConstContext(node));\n    }\n    function getImmediateAliasedSymbol(symbol) {\n      Debug.assert((symbol.flags & 2097152) !== 0, \"Should only get Alias here.\");\n      const links = getSymbolLinks(symbol);\n      if (!links.immediateTarget) {\n        const node = getDeclarationOfAliasSymbol(symbol);\n        if (!node)\n          return Debug.fail();\n        links.immediateTarget = getTargetOfAliasDeclaration(node, true);\n      }\n      return links.immediateTarget;\n    }\n    function checkObjectLiteral(node, checkMode) {\n      var _a2;\n      const inDestructuringPattern = isAssignmentTarget(node);\n      checkGrammarObjectLiteralExpression(node, inDestructuringPattern);\n      const allPropertiesTable = strictNullChecks ? createSymbolTable() : void 0;\n      let propertiesTable = createSymbolTable();\n      let propertiesArray = [];\n      let spread = emptyObjectType;\n      pushCachedContextualType(node);\n      const contextualType = getApparentTypeOfContextualType(node, void 0);\n      const contextualTypeHasPattern = contextualType && contextualType.pattern && (contextualType.pattern.kind === 203 || contextualType.pattern.kind === 207);\n      const inConstContext = isConstContext(node);\n      const checkFlags = inConstContext ? 8 : 0;\n      const isInJavascript = isInJSFile(node) && !isInJsonFile(node);\n      const enumTag = getJSDocEnumTag(node);\n      const isJSObjectLiteral = !contextualType && isInJavascript && !enumTag;\n      let objectFlags = freshObjectLiteralFlag;\n      let patternWithComputedProperties = false;\n      let hasComputedStringProperty = false;\n      let hasComputedNumberProperty = false;\n      let hasComputedSymbolProperty = false;\n      for (const elem of node.properties) {\n        if (elem.name && isComputedPropertyName(elem.name)) {\n          checkComputedPropertyName(elem.name);\n        }\n      }\n      let offset = 0;\n      for (const memberDecl of node.properties) {\n        let member = getSymbolOfDeclaration(memberDecl);\n        const computedNameType = memberDecl.name && memberDecl.name.kind === 164 ? checkComputedPropertyName(memberDecl.name) : void 0;\n        if (memberDecl.kind === 299 || memberDecl.kind === 300 || isObjectLiteralMethod(memberDecl)) {\n          let type = memberDecl.kind === 299 ? checkPropertyAssignment(memberDecl, checkMode) : memberDecl.kind === 300 ? checkExpressionForMutableLocation(!inDestructuringPattern && memberDecl.objectAssignmentInitializer ? memberDecl.objectAssignmentInitializer : memberDecl.name, checkMode) : checkObjectLiteralMethod(memberDecl, checkMode);\n          if (isInJavascript) {\n            const jsDocType = getTypeForDeclarationFromJSDocComment(memberDecl);\n            if (jsDocType) {\n              checkTypeAssignableTo(type, jsDocType, memberDecl);\n              type = jsDocType;\n            } else if (enumTag && enumTag.typeExpression) {\n              checkTypeAssignableTo(type, getTypeFromTypeNode(enumTag.typeExpression), memberDecl);\n            }\n          }\n          objectFlags |= getObjectFlags(type) & 458752;\n          const nameType = computedNameType && isTypeUsableAsPropertyName(computedNameType) ? computedNameType : void 0;\n          const prop = nameType ? createSymbol(4 | member.flags, getPropertyNameFromType(nameType), checkFlags | 4096) : createSymbol(4 | member.flags, member.escapedName, checkFlags);\n          if (nameType) {\n            prop.links.nameType = nameType;\n          }\n          if (inDestructuringPattern) {\n            const isOptional = memberDecl.kind === 299 && hasDefaultValue(memberDecl.initializer) || memberDecl.kind === 300 && memberDecl.objectAssignmentInitializer;\n            if (isOptional) {\n              prop.flags |= 16777216;\n            }\n          } else if (contextualTypeHasPattern && !(getObjectFlags(contextualType) & 512)) {\n            const impliedProp = getPropertyOfType(contextualType, member.escapedName);\n            if (impliedProp) {\n              prop.flags |= impliedProp.flags & 16777216;\n            } else if (!compilerOptions.suppressExcessPropertyErrors && !getIndexInfoOfType(contextualType, stringType)) {\n              error(memberDecl.name, Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1, symbolToString(member), typeToString(contextualType));\n            }\n          }\n          prop.declarations = member.declarations;\n          prop.parent = member.parent;\n          if (member.valueDeclaration) {\n            prop.valueDeclaration = member.valueDeclaration;\n          }\n          prop.links.type = type;\n          prop.links.target = member;\n          member = prop;\n          allPropertiesTable == null ? void 0 : allPropertiesTable.set(prop.escapedName, prop);\n          if (contextualType && checkMode && checkMode & 2 && !(checkMode & 4) && (memberDecl.kind === 299 || memberDecl.kind === 171) && isContextSensitive(memberDecl)) {\n            const inferenceContext = getInferenceContext(node);\n            Debug.assert(inferenceContext);\n            const inferenceNode = memberDecl.kind === 299 ? memberDecl.initializer : memberDecl;\n            addIntraExpressionInferenceSite(inferenceContext, inferenceNode, type);\n          }\n        } else if (memberDecl.kind === 301) {\n          if (languageVersion < 2) {\n            checkExternalEmitHelpers(memberDecl, 2);\n          }\n          if (propertiesArray.length > 0) {\n            spread = getSpreadType(spread, createObjectLiteralType(), node.symbol, objectFlags, inConstContext);\n            propertiesArray = [];\n            propertiesTable = createSymbolTable();\n            hasComputedStringProperty = false;\n            hasComputedNumberProperty = false;\n            hasComputedSymbolProperty = false;\n          }\n          const type = getReducedType(checkExpression(memberDecl.expression));\n          if (isValidSpreadType(type)) {\n            const mergedType = tryMergeUnionOfObjectTypeAndEmptyObject(type, inConstContext);\n            if (allPropertiesTable) {\n              checkSpreadPropOverrides(mergedType, allPropertiesTable, memberDecl);\n            }\n            offset = propertiesArray.length;\n            if (isErrorType(spread)) {\n              continue;\n            }\n            spread = getSpreadType(spread, mergedType, node.symbol, objectFlags, inConstContext);\n          } else {\n            error(memberDecl, Diagnostics.Spread_types_may_only_be_created_from_object_types);\n            spread = errorType;\n          }\n          continue;\n        } else {\n          Debug.assert(memberDecl.kind === 174 || memberDecl.kind === 175);\n          checkNodeDeferred(memberDecl);\n        }\n        if (computedNameType && !(computedNameType.flags & 8576)) {\n          if (isTypeAssignableTo(computedNameType, stringNumberSymbolType)) {\n            if (isTypeAssignableTo(computedNameType, numberType)) {\n              hasComputedNumberProperty = true;\n            } else if (isTypeAssignableTo(computedNameType, esSymbolType)) {\n              hasComputedSymbolProperty = true;\n            } else {\n              hasComputedStringProperty = true;\n            }\n            if (inDestructuringPattern) {\n              patternWithComputedProperties = true;\n            }\n          }\n        } else {\n          propertiesTable.set(member.escapedName, member);\n        }\n        propertiesArray.push(member);\n      }\n      popContextualType();\n      if (contextualTypeHasPattern) {\n        const rootPatternParent = findAncestor(contextualType.pattern.parent, (n) => n.kind === 257 || n.kind === 223 || n.kind === 166);\n        const spreadOrOutsideRootObject = findAncestor(node, (n) => n === rootPatternParent || n.kind === 301);\n        if (spreadOrOutsideRootObject.kind !== 301) {\n          for (const prop of getPropertiesOfType(contextualType)) {\n            if (!propertiesTable.get(prop.escapedName) && !getPropertyOfType(spread, prop.escapedName)) {\n              if (!(prop.flags & 16777216)) {\n                error(prop.valueDeclaration || ((_a2 = tryCast(prop, isTransientSymbol)) == null ? void 0 : _a2.links.bindingElement), Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value);\n              }\n              propertiesTable.set(prop.escapedName, prop);\n              propertiesArray.push(prop);\n            }\n          }\n        }\n      }\n      if (isErrorType(spread)) {\n        return errorType;\n      }\n      if (spread !== emptyObjectType) {\n        if (propertiesArray.length > 0) {\n          spread = getSpreadType(spread, createObjectLiteralType(), node.symbol, objectFlags, inConstContext);\n          propertiesArray = [];\n          propertiesTable = createSymbolTable();\n          hasComputedStringProperty = false;\n          hasComputedNumberProperty = false;\n        }\n        return mapType(spread, (t) => t === emptyObjectType ? createObjectLiteralType() : t);\n      }\n      return createObjectLiteralType();\n      function createObjectLiteralType() {\n        const indexInfos = [];\n        if (hasComputedStringProperty)\n          indexInfos.push(getObjectLiteralIndexInfo(node, offset, propertiesArray, stringType));\n        if (hasComputedNumberProperty)\n          indexInfos.push(getObjectLiteralIndexInfo(node, offset, propertiesArray, numberType));\n        if (hasComputedSymbolProperty)\n          indexInfos.push(getObjectLiteralIndexInfo(node, offset, propertiesArray, esSymbolType));\n        const result = createAnonymousType(node.symbol, propertiesTable, emptyArray, emptyArray, indexInfos);\n        result.objectFlags |= objectFlags | 128 | 131072;\n        if (isJSObjectLiteral) {\n          result.objectFlags |= 4096;\n        }\n        if (patternWithComputedProperties) {\n          result.objectFlags |= 512;\n        }\n        if (inDestructuringPattern) {\n          result.pattern = node;\n        }\n        return result;\n      }\n    }\n    function isValidSpreadType(type) {\n      const t = removeDefinitelyFalsyTypes(mapType(type, getBaseConstraintOrType));\n      return !!(t.flags & (1 | 67108864 | 524288 | 58982400) || t.flags & 3145728 && every(t.types, isValidSpreadType));\n    }\n    function checkJsxSelfClosingElementDeferred(node) {\n      checkJsxOpeningLikeElementOrOpeningFragment(node);\n    }\n    function checkJsxSelfClosingElement(node, _checkMode) {\n      checkNodeDeferred(node);\n      return getJsxElementTypeAt(node) || anyType;\n    }\n    function checkJsxElementDeferred(node) {\n      checkJsxOpeningLikeElementOrOpeningFragment(node.openingElement);\n      if (isJsxIntrinsicIdentifier(node.closingElement.tagName)) {\n        getIntrinsicTagSymbol(node.closingElement);\n      } else {\n        checkExpression(node.closingElement.tagName);\n      }\n      checkJsxChildren(node);\n    }\n    function checkJsxElement(node, _checkMode) {\n      checkNodeDeferred(node);\n      return getJsxElementTypeAt(node) || anyType;\n    }\n    function checkJsxFragment(node) {\n      checkJsxOpeningLikeElementOrOpeningFragment(node.openingFragment);\n      const nodeSourceFile = getSourceFileOfNode(node);\n      if (getJSXTransformEnabled(compilerOptions) && (compilerOptions.jsxFactory || nodeSourceFile.pragmas.has(\"jsx\")) && !compilerOptions.jsxFragmentFactory && !nodeSourceFile.pragmas.has(\"jsxfrag\")) {\n        error(node, compilerOptions.jsxFactory ? Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option : Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments);\n      }\n      checkJsxChildren(node);\n      return getJsxElementTypeAt(node) || anyType;\n    }\n    function isHyphenatedJsxName(name) {\n      return stringContains(name, \"-\");\n    }\n    function isJsxIntrinsicIdentifier(tagName) {\n      return tagName.kind === 79 && isIntrinsicJsxName(tagName.escapedText);\n    }\n    function checkJsxAttribute(node, checkMode) {\n      return node.initializer ? checkExpressionForMutableLocation(node.initializer, checkMode) : trueType;\n    }\n    function createJsxAttributesTypeFromAttributesProperty(openingLikeElement, checkMode) {\n      const attributes = openingLikeElement.attributes;\n      const attributesType = getContextualType2(attributes, 0);\n      const allAttributesTable = strictNullChecks ? createSymbolTable() : void 0;\n      let attributesTable = createSymbolTable();\n      let spread = emptyJsxObjectType;\n      let hasSpreadAnyType = false;\n      let typeToIntersect;\n      let explicitlySpecifyChildrenAttribute = false;\n      let objectFlags = 2048;\n      const jsxChildrenPropertyName = getJsxElementChildrenPropertyName(getJsxNamespaceAt(openingLikeElement));\n      for (const attributeDecl of attributes.properties) {\n        const member = attributeDecl.symbol;\n        if (isJsxAttribute(attributeDecl)) {\n          const exprType = checkJsxAttribute(attributeDecl, checkMode);\n          objectFlags |= getObjectFlags(exprType) & 458752;\n          const attributeSymbol = createSymbol(4 | member.flags, member.escapedName);\n          attributeSymbol.declarations = member.declarations;\n          attributeSymbol.parent = member.parent;\n          if (member.valueDeclaration) {\n            attributeSymbol.valueDeclaration = member.valueDeclaration;\n          }\n          attributeSymbol.links.type = exprType;\n          attributeSymbol.links.target = member;\n          attributesTable.set(attributeSymbol.escapedName, attributeSymbol);\n          allAttributesTable == null ? void 0 : allAttributesTable.set(attributeSymbol.escapedName, attributeSymbol);\n          if (attributeDecl.name.escapedText === jsxChildrenPropertyName) {\n            explicitlySpecifyChildrenAttribute = true;\n          }\n          if (attributesType) {\n            const prop = getPropertyOfType(attributesType, member.escapedName);\n            if (prop && prop.declarations && isDeprecatedSymbol(prop)) {\n              addDeprecatedSuggestion(attributeDecl.name, prop.declarations, attributeDecl.name.escapedText);\n            }\n          }\n        } else {\n          Debug.assert(attributeDecl.kind === 290);\n          if (attributesTable.size > 0) {\n            spread = getSpreadType(spread, createJsxAttributesType(), attributes.symbol, objectFlags, false);\n            attributesTable = createSymbolTable();\n          }\n          const exprType = getReducedType(checkExpressionCached(attributeDecl.expression, checkMode));\n          if (isTypeAny(exprType)) {\n            hasSpreadAnyType = true;\n          }\n          if (isValidSpreadType(exprType)) {\n            spread = getSpreadType(spread, exprType, attributes.symbol, objectFlags, false);\n            if (allAttributesTable) {\n              checkSpreadPropOverrides(exprType, allAttributesTable, attributeDecl);\n            }\n          } else {\n            error(attributeDecl.expression, Diagnostics.Spread_types_may_only_be_created_from_object_types);\n            typeToIntersect = typeToIntersect ? getIntersectionType([typeToIntersect, exprType]) : exprType;\n          }\n        }\n      }\n      if (!hasSpreadAnyType) {\n        if (attributesTable.size > 0) {\n          spread = getSpreadType(spread, createJsxAttributesType(), attributes.symbol, objectFlags, false);\n        }\n      }\n      const parent2 = openingLikeElement.parent.kind === 281 ? openingLikeElement.parent : void 0;\n      if (parent2 && parent2.openingElement === openingLikeElement && parent2.children.length > 0) {\n        const childrenTypes = checkJsxChildren(parent2, checkMode);\n        if (!hasSpreadAnyType && jsxChildrenPropertyName && jsxChildrenPropertyName !== \"\") {\n          if (explicitlySpecifyChildrenAttribute) {\n            error(attributes, Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten, unescapeLeadingUnderscores(jsxChildrenPropertyName));\n          }\n          const contextualType = getApparentTypeOfContextualType(openingLikeElement.attributes, void 0);\n          const childrenContextualType = contextualType && getTypeOfPropertyOfContextualType(contextualType, jsxChildrenPropertyName);\n          const childrenPropSymbol = createSymbol(4, jsxChildrenPropertyName);\n          childrenPropSymbol.links.type = childrenTypes.length === 1 ? childrenTypes[0] : childrenContextualType && someType(childrenContextualType, isTupleLikeType) ? createTupleType(childrenTypes) : createArrayType(getUnionType(childrenTypes));\n          childrenPropSymbol.valueDeclaration = factory.createPropertySignature(void 0, unescapeLeadingUnderscores(jsxChildrenPropertyName), void 0, void 0);\n          setParent(childrenPropSymbol.valueDeclaration, attributes);\n          childrenPropSymbol.valueDeclaration.symbol = childrenPropSymbol;\n          const childPropMap = createSymbolTable();\n          childPropMap.set(jsxChildrenPropertyName, childrenPropSymbol);\n          spread = getSpreadType(spread, createAnonymousType(attributes.symbol, childPropMap, emptyArray, emptyArray, emptyArray), attributes.symbol, objectFlags, false);\n        }\n      }\n      if (hasSpreadAnyType) {\n        return anyType;\n      }\n      if (typeToIntersect && spread !== emptyJsxObjectType) {\n        return getIntersectionType([typeToIntersect, spread]);\n      }\n      return typeToIntersect || (spread === emptyJsxObjectType ? createJsxAttributesType() : spread);\n      function createJsxAttributesType() {\n        objectFlags |= freshObjectLiteralFlag;\n        const result = createAnonymousType(attributes.symbol, attributesTable, emptyArray, emptyArray, emptyArray);\n        result.objectFlags |= objectFlags | 128 | 131072;\n        return result;\n      }\n    }\n    function checkJsxChildren(node, checkMode) {\n      const childrenTypes = [];\n      for (const child of node.children) {\n        if (child.kind === 11) {\n          if (!child.containsOnlyTriviaWhiteSpaces) {\n            childrenTypes.push(stringType);\n          }\n        } else if (child.kind === 291 && !child.expression) {\n          continue;\n        } else {\n          childrenTypes.push(checkExpressionForMutableLocation(child, checkMode));\n        }\n      }\n      return childrenTypes;\n    }\n    function checkSpreadPropOverrides(type, props, spread) {\n      for (const right of getPropertiesOfType(type)) {\n        if (!(right.flags & 16777216)) {\n          const left = props.get(right.escapedName);\n          if (left) {\n            const diagnostic = error(left.valueDeclaration, Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten, unescapeLeadingUnderscores(left.escapedName));\n            addRelatedInfo(diagnostic, createDiagnosticForNode(spread, Diagnostics.This_spread_always_overwrites_this_property));\n          }\n        }\n      }\n    }\n    function checkJsxAttributes(node, checkMode) {\n      return createJsxAttributesTypeFromAttributesProperty(node.parent, checkMode);\n    }\n    function getJsxType(name, location) {\n      const namespace = getJsxNamespaceAt(location);\n      const exports = namespace && getExportsOfSymbol(namespace);\n      const typeSymbol = exports && getSymbol2(exports, name, 788968);\n      return typeSymbol ? getDeclaredTypeOfSymbol(typeSymbol) : errorType;\n    }\n    function getIntrinsicTagSymbol(node) {\n      const links = getNodeLinks(node);\n      if (!links.resolvedSymbol) {\n        const intrinsicElementsType = getJsxType(JsxNames.IntrinsicElements, node);\n        if (!isErrorType(intrinsicElementsType)) {\n          if (!isIdentifier(node.tagName))\n            return Debug.fail();\n          const intrinsicProp = getPropertyOfType(intrinsicElementsType, node.tagName.escapedText);\n          if (intrinsicProp) {\n            links.jsxFlags |= 1;\n            return links.resolvedSymbol = intrinsicProp;\n          }\n          const indexSignatureType = getIndexTypeOfType(intrinsicElementsType, stringType);\n          if (indexSignatureType) {\n            links.jsxFlags |= 2;\n            return links.resolvedSymbol = intrinsicElementsType.symbol;\n          }\n          error(node, Diagnostics.Property_0_does_not_exist_on_type_1, idText(node.tagName), \"JSX.\" + JsxNames.IntrinsicElements);\n          return links.resolvedSymbol = unknownSymbol;\n        } else {\n          if (noImplicitAny) {\n            error(node, Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists, unescapeLeadingUnderscores(JsxNames.IntrinsicElements));\n          }\n          return links.resolvedSymbol = unknownSymbol;\n        }\n      }\n      return links.resolvedSymbol;\n    }\n    function getJsxNamespaceContainerForImplicitImport(location) {\n      const file = location && getSourceFileOfNode(location);\n      const links = file && getNodeLinks(file);\n      if (links && links.jsxImplicitImportContainer === false) {\n        return void 0;\n      }\n      if (links && links.jsxImplicitImportContainer) {\n        return links.jsxImplicitImportContainer;\n      }\n      const runtimeImportSpecifier = getJSXRuntimeImport(getJSXImplicitImportBase(compilerOptions, file), compilerOptions);\n      if (!runtimeImportSpecifier) {\n        return void 0;\n      }\n      const isClassic = getEmitModuleResolutionKind(compilerOptions) === 1;\n      const errorMessage = isClassic ? Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option : Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;\n      const mod = resolveExternalModule(location, runtimeImportSpecifier, errorMessage, location);\n      const result = mod && mod !== unknownSymbol ? getMergedSymbol(resolveSymbol(mod)) : void 0;\n      if (links) {\n        links.jsxImplicitImportContainer = result || false;\n      }\n      return result;\n    }\n    function getJsxNamespaceAt(location) {\n      const links = location && getNodeLinks(location);\n      if (links && links.jsxNamespace) {\n        return links.jsxNamespace;\n      }\n      if (!links || links.jsxNamespace !== false) {\n        let resolvedNamespace = getJsxNamespaceContainerForImplicitImport(location);\n        if (!resolvedNamespace || resolvedNamespace === unknownSymbol) {\n          const namespaceName = getJsxNamespace(location);\n          resolvedNamespace = resolveName(location, namespaceName, 1920, void 0, namespaceName, false);\n        }\n        if (resolvedNamespace) {\n          const candidate = resolveSymbol(getSymbol2(getExportsOfSymbol(resolveSymbol(resolvedNamespace)), JsxNames.JSX, 1920));\n          if (candidate && candidate !== unknownSymbol) {\n            if (links) {\n              links.jsxNamespace = candidate;\n            }\n            return candidate;\n          }\n        }\n        if (links) {\n          links.jsxNamespace = false;\n        }\n      }\n      const s = resolveSymbol(getGlobalSymbol(JsxNames.JSX, 1920, void 0));\n      if (s === unknownSymbol) {\n        return void 0;\n      }\n      return s;\n    }\n    function getNameFromJsxElementAttributesContainer(nameOfAttribPropContainer, jsxNamespace) {\n      const jsxElementAttribPropInterfaceSym = jsxNamespace && getSymbol2(jsxNamespace.exports, nameOfAttribPropContainer, 788968);\n      const jsxElementAttribPropInterfaceType = jsxElementAttribPropInterfaceSym && getDeclaredTypeOfSymbol(jsxElementAttribPropInterfaceSym);\n      const propertiesOfJsxElementAttribPropInterface = jsxElementAttribPropInterfaceType && getPropertiesOfType(jsxElementAttribPropInterfaceType);\n      if (propertiesOfJsxElementAttribPropInterface) {\n        if (propertiesOfJsxElementAttribPropInterface.length === 0) {\n          return \"\";\n        } else if (propertiesOfJsxElementAttribPropInterface.length === 1) {\n          return propertiesOfJsxElementAttribPropInterface[0].escapedName;\n        } else if (propertiesOfJsxElementAttribPropInterface.length > 1 && jsxElementAttribPropInterfaceSym.declarations) {\n          error(jsxElementAttribPropInterfaceSym.declarations[0], Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property, unescapeLeadingUnderscores(nameOfAttribPropContainer));\n        }\n      }\n      return void 0;\n    }\n    function getJsxLibraryManagedAttributes(jsxNamespace) {\n      return jsxNamespace && getSymbol2(jsxNamespace.exports, JsxNames.LibraryManagedAttributes, 788968);\n    }\n    function getJsxElementPropertiesName(jsxNamespace) {\n      return getNameFromJsxElementAttributesContainer(JsxNames.ElementAttributesPropertyNameContainer, jsxNamespace);\n    }\n    function getJsxElementChildrenPropertyName(jsxNamespace) {\n      return getNameFromJsxElementAttributesContainer(JsxNames.ElementChildrenAttributeNameContainer, jsxNamespace);\n    }\n    function getUninstantiatedJsxSignaturesOfType(elementType, caller) {\n      if (elementType.flags & 4) {\n        return [anySignature];\n      } else if (elementType.flags & 128) {\n        const intrinsicType = getIntrinsicAttributesTypeFromStringLiteralType(elementType, caller);\n        if (!intrinsicType) {\n          error(caller, Diagnostics.Property_0_does_not_exist_on_type_1, elementType.value, \"JSX.\" + JsxNames.IntrinsicElements);\n          return emptyArray;\n        } else {\n          const fakeSignature = createSignatureForJSXIntrinsic(caller, intrinsicType);\n          return [fakeSignature];\n        }\n      }\n      const apparentElemType = getApparentType(elementType);\n      let signatures = getSignaturesOfType(apparentElemType, 1);\n      if (signatures.length === 0) {\n        signatures = getSignaturesOfType(apparentElemType, 0);\n      }\n      if (signatures.length === 0 && apparentElemType.flags & 1048576) {\n        signatures = getUnionSignatures(map(apparentElemType.types, (t) => getUninstantiatedJsxSignaturesOfType(t, caller)));\n      }\n      return signatures;\n    }\n    function getIntrinsicAttributesTypeFromStringLiteralType(type, location) {\n      const intrinsicElementsType = getJsxType(JsxNames.IntrinsicElements, location);\n      if (!isErrorType(intrinsicElementsType)) {\n        const stringLiteralTypeName = type.value;\n        const intrinsicProp = getPropertyOfType(intrinsicElementsType, escapeLeadingUnderscores(stringLiteralTypeName));\n        if (intrinsicProp) {\n          return getTypeOfSymbol(intrinsicProp);\n        }\n        const indexSignatureType = getIndexTypeOfType(intrinsicElementsType, stringType);\n        if (indexSignatureType) {\n          return indexSignatureType;\n        }\n        return void 0;\n      }\n      return anyType;\n    }\n    function checkJsxReturnAssignableToAppropriateBound(refKind, elemInstanceType, openingLikeElement) {\n      if (refKind === 1) {\n        const sfcReturnConstraint = getJsxStatelessElementTypeAt(openingLikeElement);\n        if (sfcReturnConstraint) {\n          checkTypeRelatedTo(elemInstanceType, sfcReturnConstraint, assignableRelation, openingLikeElement.tagName, Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element, generateInitialErrorChain);\n        }\n      } else if (refKind === 0) {\n        const classConstraint = getJsxElementClassTypeAt(openingLikeElement);\n        if (classConstraint) {\n          checkTypeRelatedTo(elemInstanceType, classConstraint, assignableRelation, openingLikeElement.tagName, Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element, generateInitialErrorChain);\n        }\n      } else {\n        const sfcReturnConstraint = getJsxStatelessElementTypeAt(openingLikeElement);\n        const classConstraint = getJsxElementClassTypeAt(openingLikeElement);\n        if (!sfcReturnConstraint || !classConstraint) {\n          return;\n        }\n        const combined = getUnionType([sfcReturnConstraint, classConstraint]);\n        checkTypeRelatedTo(elemInstanceType, combined, assignableRelation, openingLikeElement.tagName, Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element, generateInitialErrorChain);\n      }\n      function generateInitialErrorChain() {\n        const componentName = getTextOfNode(openingLikeElement.tagName);\n        return chainDiagnosticMessages(void 0, Diagnostics._0_cannot_be_used_as_a_JSX_component, componentName);\n      }\n    }\n    function getIntrinsicAttributesTypeFromJsxOpeningLikeElement(node) {\n      Debug.assert(isJsxIntrinsicIdentifier(node.tagName));\n      const links = getNodeLinks(node);\n      if (!links.resolvedJsxElementAttributesType) {\n        const symbol = getIntrinsicTagSymbol(node);\n        if (links.jsxFlags & 1) {\n          return links.resolvedJsxElementAttributesType = getTypeOfSymbol(symbol) || errorType;\n        } else if (links.jsxFlags & 2) {\n          return links.resolvedJsxElementAttributesType = getIndexTypeOfType(getJsxType(JsxNames.IntrinsicElements, node), stringType) || errorType;\n        } else {\n          return links.resolvedJsxElementAttributesType = errorType;\n        }\n      }\n      return links.resolvedJsxElementAttributesType;\n    }\n    function getJsxElementClassTypeAt(location) {\n      const type = getJsxType(JsxNames.ElementClass, location);\n      if (isErrorType(type))\n        return void 0;\n      return type;\n    }\n    function getJsxElementTypeAt(location) {\n      return getJsxType(JsxNames.Element, location);\n    }\n    function getJsxStatelessElementTypeAt(location) {\n      const jsxElementType = getJsxElementTypeAt(location);\n      if (jsxElementType) {\n        return getUnionType([jsxElementType, nullType]);\n      }\n    }\n    function getJsxIntrinsicTagNamesAt(location) {\n      const intrinsics = getJsxType(JsxNames.IntrinsicElements, location);\n      return intrinsics ? getPropertiesOfType(intrinsics) : emptyArray;\n    }\n    function checkJsxPreconditions(errorNode) {\n      if ((compilerOptions.jsx || 0) === 0) {\n        error(errorNode, Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided);\n      }\n      if (getJsxElementTypeAt(errorNode) === void 0) {\n        if (noImplicitAny) {\n          error(errorNode, Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist);\n        }\n      }\n    }\n    function checkJsxOpeningLikeElementOrOpeningFragment(node) {\n      const isNodeOpeningLikeElement = isJsxOpeningLikeElement(node);\n      if (isNodeOpeningLikeElement) {\n        checkGrammarJsxElement(node);\n      }\n      checkJsxPreconditions(node);\n      if (!getJsxNamespaceContainerForImplicitImport(node)) {\n        const jsxFactoryRefErr = diagnostics && compilerOptions.jsx === 2 ? Diagnostics.Cannot_find_name_0 : void 0;\n        const jsxFactoryNamespace = getJsxNamespace(node);\n        const jsxFactoryLocation = isNodeOpeningLikeElement ? node.tagName : node;\n        let jsxFactorySym;\n        if (!(isJsxOpeningFragment(node) && jsxFactoryNamespace === \"null\")) {\n          jsxFactorySym = resolveName(jsxFactoryLocation, jsxFactoryNamespace, 111551, jsxFactoryRefErr, jsxFactoryNamespace, true);\n        }\n        if (jsxFactorySym) {\n          jsxFactorySym.isReferenced = 67108863;\n          if (!compilerOptions.verbatimModuleSyntax && jsxFactorySym.flags & 2097152 && !getTypeOnlyAliasDeclaration(jsxFactorySym)) {\n            markAliasSymbolAsReferenced(jsxFactorySym);\n          }\n        }\n        if (isJsxOpeningFragment(node)) {\n          const file = getSourceFileOfNode(node);\n          const localJsxNamespace = getLocalJsxNamespace(file);\n          if (localJsxNamespace) {\n            resolveName(jsxFactoryLocation, localJsxNamespace, 111551, jsxFactoryRefErr, localJsxNamespace, true);\n          }\n        }\n      }\n      if (isNodeOpeningLikeElement) {\n        const jsxOpeningLikeNode = node;\n        const sig = getResolvedSignature(jsxOpeningLikeNode);\n        checkDeprecatedSignature(sig, node);\n        checkJsxReturnAssignableToAppropriateBound(getJsxReferenceKind(jsxOpeningLikeNode), getReturnTypeOfSignature(sig), jsxOpeningLikeNode);\n      }\n    }\n    function isKnownProperty(targetType, name, isComparingJsxAttributes) {\n      if (targetType.flags & 524288) {\n        if (getPropertyOfObjectType(targetType, name) || getApplicableIndexInfoForName(targetType, name) || isLateBoundName(name) && getIndexInfoOfType(targetType, stringType) || isComparingJsxAttributes && isHyphenatedJsxName(name)) {\n          return true;\n        }\n      } else if (targetType.flags & 3145728 && isExcessPropertyCheckTarget(targetType)) {\n        for (const t of targetType.types) {\n          if (isKnownProperty(t, name, isComparingJsxAttributes)) {\n            return true;\n          }\n        }\n      }\n      return false;\n    }\n    function isExcessPropertyCheckTarget(type) {\n      return !!(type.flags & 524288 && !(getObjectFlags(type) & 512) || type.flags & 67108864 || type.flags & 1048576 && some(type.types, isExcessPropertyCheckTarget) || type.flags & 2097152 && every(type.types, isExcessPropertyCheckTarget));\n    }\n    function checkJsxExpression(node, checkMode) {\n      checkGrammarJsxExpression(node);\n      if (node.expression) {\n        const type = checkExpression(node.expression, checkMode);\n        if (node.dotDotDotToken && type !== anyType && !isArrayType(type)) {\n          error(node, Diagnostics.JSX_spread_child_must_be_an_array_type);\n        }\n        return type;\n      } else {\n        return errorType;\n      }\n    }\n    function getDeclarationNodeFlagsFromSymbol(s) {\n      return s.valueDeclaration ? getCombinedNodeFlags(s.valueDeclaration) : 0;\n    }\n    function isPrototypeProperty(symbol) {\n      if (symbol.flags & 8192 || getCheckFlags(symbol) & 4) {\n        return true;\n      }\n      if (isInJSFile(symbol.valueDeclaration)) {\n        const parent2 = symbol.valueDeclaration.parent;\n        return parent2 && isBinaryExpression(parent2) && getAssignmentDeclarationKind(parent2) === 3;\n      }\n    }\n    function checkPropertyAccessibility(node, isSuper, writing, type, prop, reportError = true) {\n      const errorNode = !reportError ? void 0 : node.kind === 163 ? node.right : node.kind === 202 ? node : node.kind === 205 && node.propertyName ? node.propertyName : node.name;\n      return checkPropertyAccessibilityAtLocation(node, isSuper, writing, type, prop, errorNode);\n    }\n    function checkPropertyAccessibilityAtLocation(location, isSuper, writing, containingType, prop, errorNode) {\n      const flags = getDeclarationModifierFlagsFromSymbol(prop, writing);\n      if (isSuper) {\n        if (languageVersion < 2) {\n          if (symbolHasNonMethodDeclaration(prop)) {\n            if (errorNode) {\n              error(errorNode, Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword);\n            }\n            return false;\n          }\n        }\n        if (flags & 256) {\n          if (errorNode) {\n            error(errorNode, Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression, symbolToString(prop), typeToString(getDeclaringClass(prop)));\n          }\n          return false;\n        }\n      }\n      if (flags & 256 && symbolHasNonMethodDeclaration(prop) && (isThisProperty(location) || isThisInitializedObjectBindingExpression(location) || isObjectBindingPattern(location.parent) && isThisInitializedDeclaration(location.parent.parent))) {\n        const declaringClassDeclaration = getClassLikeDeclarationOfSymbol(getParentOfSymbol(prop));\n        if (declaringClassDeclaration && isNodeUsedDuringClassInitialization(location)) {\n          if (errorNode) {\n            error(errorNode, Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor, symbolToString(prop), getTextOfIdentifierOrLiteral(declaringClassDeclaration.name));\n          }\n          return false;\n        }\n      }\n      if (!(flags & 24)) {\n        return true;\n      }\n      if (flags & 8) {\n        const declaringClassDeclaration = getClassLikeDeclarationOfSymbol(getParentOfSymbol(prop));\n        if (!isNodeWithinClass(location, declaringClassDeclaration)) {\n          if (errorNode) {\n            error(errorNode, Diagnostics.Property_0_is_private_and_only_accessible_within_class_1, symbolToString(prop), typeToString(getDeclaringClass(prop)));\n          }\n          return false;\n        }\n        return true;\n      }\n      if (isSuper) {\n        return true;\n      }\n      let enclosingClass = forEachEnclosingClass(location, (enclosingDeclaration) => {\n        const enclosingClass2 = getDeclaredTypeOfSymbol(getSymbolOfDeclaration(enclosingDeclaration));\n        return isClassDerivedFromDeclaringClasses(enclosingClass2, prop, writing);\n      });\n      if (!enclosingClass) {\n        enclosingClass = getEnclosingClassFromThisParameter(location);\n        enclosingClass = enclosingClass && isClassDerivedFromDeclaringClasses(enclosingClass, prop, writing);\n        if (flags & 32 || !enclosingClass) {\n          if (errorNode) {\n            error(errorNode, Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses, symbolToString(prop), typeToString(getDeclaringClass(prop) || containingType));\n          }\n          return false;\n        }\n      }\n      if (flags & 32) {\n        return true;\n      }\n      if (containingType.flags & 262144) {\n        containingType = containingType.isThisType ? getConstraintOfTypeParameter(containingType) : getBaseConstraintOfType(containingType);\n      }\n      if (!containingType || !hasBaseType(containingType, enclosingClass)) {\n        if (errorNode) {\n          error(errorNode, Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2, symbolToString(prop), typeToString(enclosingClass), typeToString(containingType));\n        }\n        return false;\n      }\n      return true;\n    }\n    function getEnclosingClassFromThisParameter(node) {\n      const thisParameter = getThisParameterFromNodeContext(node);\n      let thisType = (thisParameter == null ? void 0 : thisParameter.type) && getTypeFromTypeNode(thisParameter.type);\n      if (thisType && thisType.flags & 262144) {\n        thisType = getConstraintOfTypeParameter(thisType);\n      }\n      if (thisType && getObjectFlags(thisType) & (3 | 4)) {\n        return getTargetType(thisType);\n      }\n      return void 0;\n    }\n    function getThisParameterFromNodeContext(node) {\n      const thisContainer = getThisContainer(node, false, false);\n      return thisContainer && isFunctionLike(thisContainer) ? getThisParameter(thisContainer) : void 0;\n    }\n    function symbolHasNonMethodDeclaration(symbol) {\n      return !!forEachProperty2(symbol, (prop) => !(prop.flags & 8192));\n    }\n    function checkNonNullExpression(node) {\n      return checkNonNullType(checkExpression(node), node);\n    }\n    function isNullableType(type) {\n      return !!(getTypeFacts(type) & 50331648);\n    }\n    function getNonNullableTypeIfNeeded(type) {\n      return isNullableType(type) ? getNonNullableType(type) : type;\n    }\n    function reportObjectPossiblyNullOrUndefinedError(node, facts) {\n      const nodeText2 = isEntityNameExpression(node) ? entityNameToString(node) : void 0;\n      if (node.kind === 104) {\n        error(node, Diagnostics.The_value_0_cannot_be_used_here, \"null\");\n        return;\n      }\n      if (nodeText2 !== void 0 && nodeText2.length < 100) {\n        if (isIdentifier(node) && nodeText2 === \"undefined\") {\n          error(node, Diagnostics.The_value_0_cannot_be_used_here, \"undefined\");\n          return;\n        }\n        error(node, facts & 16777216 ? facts & 33554432 ? Diagnostics._0_is_possibly_null_or_undefined : Diagnostics._0_is_possibly_undefined : Diagnostics._0_is_possibly_null, nodeText2);\n      } else {\n        error(node, facts & 16777216 ? facts & 33554432 ? Diagnostics.Object_is_possibly_null_or_undefined : Diagnostics.Object_is_possibly_undefined : Diagnostics.Object_is_possibly_null);\n      }\n    }\n    function reportCannotInvokePossiblyNullOrUndefinedError(node, facts) {\n      error(node, facts & 16777216 ? facts & 33554432 ? Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined : Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined : Diagnostics.Cannot_invoke_an_object_which_is_possibly_null);\n    }\n    function checkNonNullTypeWithReporter(type, node, reportError) {\n      if (strictNullChecks && type.flags & 2) {\n        if (isEntityNameExpression(node)) {\n          const nodeText2 = entityNameToString(node);\n          if (nodeText2.length < 100) {\n            error(node, Diagnostics._0_is_of_type_unknown, nodeText2);\n            return errorType;\n          }\n        }\n        error(node, Diagnostics.Object_is_of_type_unknown);\n        return errorType;\n      }\n      const facts = getTypeFacts(type);\n      if (facts & 50331648) {\n        reportError(node, facts);\n        const t = getNonNullableType(type);\n        return t.flags & (98304 | 131072) ? errorType : t;\n      }\n      return type;\n    }\n    function checkNonNullType(type, node) {\n      return checkNonNullTypeWithReporter(type, node, reportObjectPossiblyNullOrUndefinedError);\n    }\n    function checkNonNullNonVoidType(type, node) {\n      const nonNullType = checkNonNullType(type, node);\n      if (nonNullType.flags & 16384) {\n        if (isEntityNameExpression(node)) {\n          const nodeText2 = entityNameToString(node);\n          if (isIdentifier(node) && nodeText2 === \"undefined\") {\n            error(node, Diagnostics.The_value_0_cannot_be_used_here, nodeText2);\n            return nonNullType;\n          }\n          if (nodeText2.length < 100) {\n            error(node, Diagnostics._0_is_possibly_undefined, nodeText2);\n            return nonNullType;\n          }\n        }\n        error(node, Diagnostics.Object_is_possibly_undefined);\n      }\n      return nonNullType;\n    }\n    function checkPropertyAccessExpression(node, checkMode) {\n      return node.flags & 32 ? checkPropertyAccessChain(node, checkMode) : checkPropertyAccessExpressionOrQualifiedName(node, node.expression, checkNonNullExpression(node.expression), node.name, checkMode);\n    }\n    function checkPropertyAccessChain(node, checkMode) {\n      const leftType = checkExpression(node.expression);\n      const nonOptionalType = getOptionalExpressionType(leftType, node.expression);\n      return propagateOptionalTypeMarker(checkPropertyAccessExpressionOrQualifiedName(node, node.expression, checkNonNullType(nonOptionalType, node.expression), node.name, checkMode), node, nonOptionalType !== leftType);\n    }\n    function checkQualifiedName(node, checkMode) {\n      const leftType = isPartOfTypeQuery(node) && isThisIdentifier(node.left) ? checkNonNullType(checkThisExpression(node.left), node.left) : checkNonNullExpression(node.left);\n      return checkPropertyAccessExpressionOrQualifiedName(node, node.left, leftType, node.right, checkMode);\n    }\n    function isMethodAccessForCall(node) {\n      while (node.parent.kind === 214) {\n        node = node.parent;\n      }\n      return isCallOrNewExpression(node.parent) && node.parent.expression === node;\n    }\n    function lookupSymbolForPrivateIdentifierDeclaration(propName, location) {\n      for (let containingClass = getContainingClass(location); !!containingClass; containingClass = getContainingClass(containingClass)) {\n        const { symbol } = containingClass;\n        const name = getSymbolNameForPrivateIdentifier(symbol, propName);\n        const prop = symbol.members && symbol.members.get(name) || symbol.exports && symbol.exports.get(name);\n        if (prop) {\n          return prop;\n        }\n      }\n    }\n    function checkGrammarPrivateIdentifierExpression(privId) {\n      if (!getContainingClass(privId)) {\n        return grammarErrorOnNode(privId, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);\n      }\n      if (!isForInStatement(privId.parent)) {\n        if (!isExpressionNode(privId)) {\n          return grammarErrorOnNode(privId, Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);\n        }\n        const isInOperation = isBinaryExpression(privId.parent) && privId.parent.operatorToken.kind === 101;\n        if (!getSymbolForPrivateIdentifierExpression(privId) && !isInOperation) {\n          return grammarErrorOnNode(privId, Diagnostics.Cannot_find_name_0, idText(privId));\n        }\n      }\n      return false;\n    }\n    function checkPrivateIdentifierExpression(privId) {\n      checkGrammarPrivateIdentifierExpression(privId);\n      const symbol = getSymbolForPrivateIdentifierExpression(privId);\n      if (symbol) {\n        markPropertyAsReferenced(symbol, void 0, false);\n      }\n      return anyType;\n    }\n    function getSymbolForPrivateIdentifierExpression(privId) {\n      if (!isExpressionNode(privId)) {\n        return void 0;\n      }\n      const links = getNodeLinks(privId);\n      if (links.resolvedSymbol === void 0) {\n        links.resolvedSymbol = lookupSymbolForPrivateIdentifierDeclaration(privId.escapedText, privId);\n      }\n      return links.resolvedSymbol;\n    }\n    function getPrivateIdentifierPropertyOfType(leftType, lexicallyScopedIdentifier) {\n      return getPropertyOfType(leftType, lexicallyScopedIdentifier.escapedName);\n    }\n    function checkPrivateIdentifierPropertyAccess(leftType, right, lexicallyScopedIdentifier) {\n      let propertyOnType;\n      const properties = getPropertiesOfType(leftType);\n      if (properties) {\n        forEach(properties, (symbol) => {\n          const decl = symbol.valueDeclaration;\n          if (decl && isNamedDeclaration(decl) && isPrivateIdentifier(decl.name) && decl.name.escapedText === right.escapedText) {\n            propertyOnType = symbol;\n            return true;\n          }\n        });\n      }\n      const diagName = diagnosticName(right);\n      if (propertyOnType) {\n        const typeValueDecl = Debug.checkDefined(propertyOnType.valueDeclaration);\n        const typeClass = Debug.checkDefined(getContainingClass(typeValueDecl));\n        if (lexicallyScopedIdentifier == null ? void 0 : lexicallyScopedIdentifier.valueDeclaration) {\n          const lexicalValueDecl = lexicallyScopedIdentifier.valueDeclaration;\n          const lexicalClass = getContainingClass(lexicalValueDecl);\n          Debug.assert(!!lexicalClass);\n          if (findAncestor(lexicalClass, (n) => typeClass === n)) {\n            const diagnostic = error(right, Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling, diagName, typeToString(leftType));\n            addRelatedInfo(diagnostic, createDiagnosticForNode(lexicalValueDecl, Diagnostics.The_shadowing_declaration_of_0_is_defined_here, diagName), createDiagnosticForNode(typeValueDecl, Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here, diagName));\n            return true;\n          }\n        }\n        error(right, Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier, diagName, diagnosticName(typeClass.name || anon));\n        return true;\n      }\n      return false;\n    }\n    function isThisPropertyAccessInConstructor(node, prop) {\n      return (isConstructorDeclaredProperty(prop) || isThisProperty(node) && isAutoTypedProperty(prop)) && getThisContainer(node, true, false) === getDeclaringConstructor(prop);\n    }\n    function checkPropertyAccessExpressionOrQualifiedName(node, left, leftType, right, checkMode) {\n      const parentSymbol = getNodeLinks(left).resolvedSymbol;\n      const assignmentKind = getAssignmentTargetKind(node);\n      const apparentType = getApparentType(assignmentKind !== 0 || isMethodAccessForCall(node) ? getWidenedType(leftType) : leftType);\n      const isAnyLike = isTypeAny(apparentType) || apparentType === silentNeverType;\n      let prop;\n      if (isPrivateIdentifier(right)) {\n        if (languageVersion < 99) {\n          if (assignmentKind !== 0) {\n            checkExternalEmitHelpers(node, 1048576);\n          }\n          if (assignmentKind !== 1) {\n            checkExternalEmitHelpers(node, 524288);\n          }\n        }\n        const lexicallyScopedSymbol = lookupSymbolForPrivateIdentifierDeclaration(right.escapedText, right);\n        if (assignmentKind && lexicallyScopedSymbol && lexicallyScopedSymbol.valueDeclaration && isMethodDeclaration(lexicallyScopedSymbol.valueDeclaration)) {\n          grammarErrorOnNode(right, Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable, idText(right));\n        }\n        if (isAnyLike) {\n          if (lexicallyScopedSymbol) {\n            return isErrorType(apparentType) ? errorType : apparentType;\n          }\n          if (!getContainingClass(right)) {\n            grammarErrorOnNode(right, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);\n            return anyType;\n          }\n        }\n        prop = lexicallyScopedSymbol ? getPrivateIdentifierPropertyOfType(leftType, lexicallyScopedSymbol) : void 0;\n        if (!prop && checkPrivateIdentifierPropertyAccess(leftType, right, lexicallyScopedSymbol)) {\n          return errorType;\n        } else {\n          const isSetonlyAccessor = prop && prop.flags & 65536 && !(prop.flags & 32768);\n          if (isSetonlyAccessor && assignmentKind !== 1) {\n            error(node, Diagnostics.Private_accessor_was_defined_without_a_getter);\n          }\n        }\n      } else {\n        if (isAnyLike) {\n          if (isIdentifier(left) && parentSymbol) {\n            markAliasReferenced(parentSymbol, node);\n          }\n          return isErrorType(apparentType) ? errorType : apparentType;\n        }\n        prop = getPropertyOfType(apparentType, right.escapedText, false, node.kind === 163);\n      }\n      if (isIdentifier(left) && parentSymbol && (getIsolatedModules(compilerOptions) || !(prop && (isConstEnumOrConstEnumOnlyModule(prop) || prop.flags & 8 && node.parent.kind === 302)) || shouldPreserveConstEnums(compilerOptions) && isExportOrExportExpression(node))) {\n        markAliasReferenced(parentSymbol, node);\n      }\n      let propType;\n      if (!prop) {\n        const indexInfo = !isPrivateIdentifier(right) && (assignmentKind === 0 || !isGenericObjectType(leftType) || isThisTypeParameter(leftType)) ? getApplicableIndexInfoForName(apparentType, right.escapedText) : void 0;\n        if (!(indexInfo && indexInfo.type)) {\n          const isUncheckedJS = isUncheckedJSSuggestion(node, leftType.symbol, true);\n          if (!isUncheckedJS && isJSLiteralType(leftType)) {\n            return anyType;\n          }\n          if (leftType.symbol === globalThisSymbol) {\n            if (globalThisSymbol.exports.has(right.escapedText) && globalThisSymbol.exports.get(right.escapedText).flags & 418) {\n              error(right, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(right.escapedText), typeToString(leftType));\n            } else if (noImplicitAny) {\n              error(right, Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature, typeToString(leftType));\n            }\n            return anyType;\n          }\n          if (right.escapedText && !checkAndReportErrorForExtendingInterface(node)) {\n            reportNonexistentProperty(right, isThisTypeParameter(leftType) ? apparentType : leftType, isUncheckedJS);\n          }\n          return errorType;\n        }\n        if (indexInfo.isReadonly && (isAssignmentTarget(node) || isDeleteTarget(node))) {\n          error(node, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(apparentType));\n        }\n        propType = compilerOptions.noUncheckedIndexedAccess && !isAssignmentTarget(node) ? getUnionType([indexInfo.type, missingType]) : indexInfo.type;\n        if (compilerOptions.noPropertyAccessFromIndexSignature && isPropertyAccessExpression(node)) {\n          error(right, Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0, unescapeLeadingUnderscores(right.escapedText));\n        }\n        if (indexInfo.declaration && getCombinedNodeFlags(indexInfo.declaration) & 268435456) {\n          addDeprecatedSuggestion(right, [indexInfo.declaration], right.escapedText);\n        }\n      } else {\n        if (isDeprecatedSymbol(prop) && isUncalledFunctionReference(node, prop) && prop.declarations) {\n          addDeprecatedSuggestion(right, prop.declarations, right.escapedText);\n        }\n        checkPropertyNotUsedBeforeDeclaration(prop, node, right);\n        markPropertyAsReferenced(prop, node, isSelfTypeAccess(left, parentSymbol));\n        getNodeLinks(node).resolvedSymbol = prop;\n        const writing = isWriteAccess(node);\n        checkPropertyAccessibility(node, left.kind === 106, writing, apparentType, prop);\n        if (isAssignmentToReadonlyEntity(node, prop, assignmentKind)) {\n          error(right, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, idText(right));\n          return errorType;\n        }\n        propType = isThisPropertyAccessInConstructor(node, prop) ? autoType : writing ? getWriteTypeOfSymbol(prop) : getTypeOfSymbol(prop);\n      }\n      return getFlowTypeOfAccessExpression(node, prop, propType, right, checkMode);\n    }\n    function isUncheckedJSSuggestion(node, suggestion, excludeClasses) {\n      const file = getSourceFileOfNode(node);\n      if (file) {\n        if (compilerOptions.checkJs === void 0 && file.checkJsDirective === void 0 && (file.scriptKind === 1 || file.scriptKind === 2)) {\n          const declarationFile = forEach(suggestion == null ? void 0 : suggestion.declarations, getSourceFileOfNode);\n          return !(file !== declarationFile && !!declarationFile && isGlobalSourceFile(declarationFile)) && !(excludeClasses && suggestion && suggestion.flags & 32) && !(!!node && excludeClasses && isPropertyAccessExpression(node) && node.expression.kind === 108);\n        }\n      }\n      return false;\n    }\n    function getFlowTypeOfAccessExpression(node, prop, propType, errorNode, checkMode) {\n      const assignmentKind = getAssignmentTargetKind(node);\n      if (assignmentKind === 1) {\n        return removeMissingType(propType, !!(prop && prop.flags & 16777216));\n      }\n      if (prop && !(prop.flags & (3 | 4 | 98304)) && !(prop.flags & 8192 && propType.flags & 1048576) && !isDuplicatedCommonJSExport(prop.declarations)) {\n        return propType;\n      }\n      if (propType === autoType) {\n        return getFlowTypeOfProperty(node, prop);\n      }\n      propType = getNarrowableTypeForReference(propType, node, checkMode);\n      let assumeUninitialized = false;\n      if (strictNullChecks && strictPropertyInitialization && isAccessExpression(node) && node.expression.kind === 108) {\n        const declaration = prop && prop.valueDeclaration;\n        if (declaration && isPropertyWithoutInitializer(declaration)) {\n          if (!isStatic(declaration)) {\n            const flowContainer = getControlFlowContainer(node);\n            if (flowContainer.kind === 173 && flowContainer.parent === declaration.parent && !(declaration.flags & 16777216)) {\n              assumeUninitialized = true;\n            }\n          }\n        }\n      } else if (strictNullChecks && prop && prop.valueDeclaration && isPropertyAccessExpression(prop.valueDeclaration) && getAssignmentDeclarationPropertyAccessKind(prop.valueDeclaration) && getControlFlowContainer(node) === getControlFlowContainer(prop.valueDeclaration)) {\n        assumeUninitialized = true;\n      }\n      const flowType = getFlowTypeOfReference(node, propType, assumeUninitialized ? getOptionalType(propType) : propType);\n      if (assumeUninitialized && !containsUndefinedType(propType) && containsUndefinedType(flowType)) {\n        error(errorNode, Diagnostics.Property_0_is_used_before_being_assigned, symbolToString(prop));\n        return propType;\n      }\n      return assignmentKind ? getBaseTypeOfLiteralType(flowType) : flowType;\n    }\n    function checkPropertyNotUsedBeforeDeclaration(prop, node, right) {\n      const { valueDeclaration } = prop;\n      if (!valueDeclaration || getSourceFileOfNode(node).isDeclarationFile) {\n        return;\n      }\n      let diagnosticMessage;\n      const declarationName = idText(right);\n      if (isInPropertyInitializerOrClassStaticBlock(node) && !isOptionalPropertyDeclaration(valueDeclaration) && !(isAccessExpression(node) && isAccessExpression(node.expression)) && !isBlockScopedNameDeclaredBeforeUse(valueDeclaration, right) && !(isMethodDeclaration(valueDeclaration) && getCombinedModifierFlags(valueDeclaration) & 32) && (compilerOptions.useDefineForClassFields || !isPropertyDeclaredInAncestorClass(prop))) {\n        diagnosticMessage = error(right, Diagnostics.Property_0_is_used_before_its_initialization, declarationName);\n      } else if (valueDeclaration.kind === 260 && node.parent.kind !== 180 && !(valueDeclaration.flags & 16777216) && !isBlockScopedNameDeclaredBeforeUse(valueDeclaration, right)) {\n        diagnosticMessage = error(right, Diagnostics.Class_0_used_before_its_declaration, declarationName);\n      }\n      if (diagnosticMessage) {\n        addRelatedInfo(diagnosticMessage, createDiagnosticForNode(valueDeclaration, Diagnostics._0_is_declared_here, declarationName));\n      }\n    }\n    function isInPropertyInitializerOrClassStaticBlock(node) {\n      return !!findAncestor(node, (node2) => {\n        switch (node2.kind) {\n          case 169:\n            return true;\n          case 299:\n          case 171:\n          case 174:\n          case 175:\n          case 301:\n          case 164:\n          case 236:\n          case 291:\n          case 288:\n          case 289:\n          case 290:\n          case 283:\n          case 230:\n          case 294:\n            return false;\n          case 216:\n          case 241:\n            return isBlock(node2.parent) && isClassStaticBlockDeclaration(node2.parent.parent) ? true : \"quit\";\n          default:\n            return isExpressionNode(node2) ? false : \"quit\";\n        }\n      });\n    }\n    function isPropertyDeclaredInAncestorClass(prop) {\n      if (!(prop.parent.flags & 32)) {\n        return false;\n      }\n      let classType = getTypeOfSymbol(prop.parent);\n      while (true) {\n        classType = classType.symbol && getSuperClass(classType);\n        if (!classType) {\n          return false;\n        }\n        const superProperty = getPropertyOfType(classType, prop.escapedName);\n        if (superProperty && superProperty.valueDeclaration) {\n          return true;\n        }\n      }\n    }\n    function getSuperClass(classType) {\n      const x = getBaseTypes(classType);\n      if (x.length === 0) {\n        return void 0;\n      }\n      return getIntersectionType(x);\n    }\n    function reportNonexistentProperty(propNode, containingType, isUncheckedJS) {\n      let errorInfo;\n      let relatedInfo;\n      if (!isPrivateIdentifier(propNode) && containingType.flags & 1048576 && !(containingType.flags & 134348796)) {\n        for (const subtype of containingType.types) {\n          if (!getPropertyOfType(subtype, propNode.escapedText) && !getApplicableIndexInfoForName(subtype, propNode.escapedText)) {\n            errorInfo = chainDiagnosticMessages(errorInfo, Diagnostics.Property_0_does_not_exist_on_type_1, declarationNameToString(propNode), typeToString(subtype));\n            break;\n          }\n        }\n      }\n      if (typeHasStaticProperty(propNode.escapedText, containingType)) {\n        const propName = declarationNameToString(propNode);\n        const typeName = typeToString(containingType);\n        errorInfo = chainDiagnosticMessages(errorInfo, Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead, propName, typeName, typeName + \".\" + propName);\n      } else {\n        const promisedType = getPromisedTypeOfPromise(containingType);\n        if (promisedType && getPropertyOfType(promisedType, propNode.escapedText)) {\n          errorInfo = chainDiagnosticMessages(errorInfo, Diagnostics.Property_0_does_not_exist_on_type_1, declarationNameToString(propNode), typeToString(containingType));\n          relatedInfo = createDiagnosticForNode(propNode, Diagnostics.Did_you_forget_to_use_await);\n        } else {\n          const missingProperty = declarationNameToString(propNode);\n          const container = typeToString(containingType);\n          const libSuggestion = getSuggestedLibForNonExistentProperty(missingProperty, containingType);\n          if (libSuggestion !== void 0) {\n            errorInfo = chainDiagnosticMessages(errorInfo, Diagnostics.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later, missingProperty, container, libSuggestion);\n          } else {\n            const suggestion = getSuggestedSymbolForNonexistentProperty(propNode, containingType);\n            if (suggestion !== void 0) {\n              const suggestedName = symbolName(suggestion);\n              const message = isUncheckedJS ? Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2 : Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2;\n              errorInfo = chainDiagnosticMessages(errorInfo, message, missingProperty, container, suggestedName);\n              relatedInfo = suggestion.valueDeclaration && createDiagnosticForNode(suggestion.valueDeclaration, Diagnostics._0_is_declared_here, suggestedName);\n            } else {\n              const diagnostic = containerSeemsToBeEmptyDomElement(containingType) ? Diagnostics.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom : Diagnostics.Property_0_does_not_exist_on_type_1;\n              errorInfo = chainDiagnosticMessages(elaborateNeverIntersection(errorInfo, containingType), diagnostic, missingProperty, container);\n            }\n          }\n        }\n      }\n      const resultDiagnostic = createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(propNode), propNode, errorInfo);\n      if (relatedInfo) {\n        addRelatedInfo(resultDiagnostic, relatedInfo);\n      }\n      addErrorOrSuggestion(!isUncheckedJS || errorInfo.code !== Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code, resultDiagnostic);\n    }\n    function containerSeemsToBeEmptyDomElement(containingType) {\n      return compilerOptions.lib && !compilerOptions.lib.includes(\"dom\") && everyContainedType(containingType, (type) => type.symbol && /^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(unescapeLeadingUnderscores(type.symbol.escapedName))) && isEmptyObjectType(containingType);\n    }\n    function typeHasStaticProperty(propName, containingType) {\n      const prop = containingType.symbol && getPropertyOfType(getTypeOfSymbol(containingType.symbol), propName);\n      return prop !== void 0 && !!prop.valueDeclaration && isStatic(prop.valueDeclaration);\n    }\n    function getSuggestedLibForNonExistentName(name) {\n      const missingName = diagnosticName(name);\n      const allFeatures = getScriptTargetFeatures();\n      const typeFeatures = allFeatures.get(missingName);\n      return typeFeatures && firstIterator(typeFeatures.keys());\n    }\n    function getSuggestedLibForNonExistentProperty(missingProperty, containingType) {\n      const container = getApparentType(containingType).symbol;\n      if (!container) {\n        return void 0;\n      }\n      const containingTypeName = symbolName(container);\n      const allFeatures = getScriptTargetFeatures();\n      const typeFeatures = allFeatures.get(containingTypeName);\n      if (typeFeatures) {\n        for (const [libTarget, featuresOfType] of typeFeatures) {\n          if (contains(featuresOfType, missingProperty)) {\n            return libTarget;\n          }\n        }\n      }\n    }\n    function getSuggestedSymbolForNonexistentClassMember(name, baseType) {\n      return getSpellingSuggestionForName(name, getPropertiesOfType(baseType), 106500);\n    }\n    function getSuggestedSymbolForNonexistentProperty(name, containingType) {\n      let props = getPropertiesOfType(containingType);\n      if (typeof name !== \"string\") {\n        const parent2 = name.parent;\n        if (isPropertyAccessExpression(parent2)) {\n          props = filter(props, (prop) => isValidPropertyAccessForCompletions(parent2, containingType, prop));\n        }\n        name = idText(name);\n      }\n      return getSpellingSuggestionForName(name, props, 111551);\n    }\n    function getSuggestedSymbolForNonexistentJSXAttribute(name, containingType) {\n      const strName = isString(name) ? name : idText(name);\n      const properties = getPropertiesOfType(containingType);\n      const jsxSpecific = strName === \"for\" ? find(properties, (x) => symbolName(x) === \"htmlFor\") : strName === \"class\" ? find(properties, (x) => symbolName(x) === \"className\") : void 0;\n      return jsxSpecific != null ? jsxSpecific : getSpellingSuggestionForName(strName, properties, 111551);\n    }\n    function getSuggestionForNonexistentProperty(name, containingType) {\n      const suggestion = getSuggestedSymbolForNonexistentProperty(name, containingType);\n      return suggestion && symbolName(suggestion);\n    }\n    function getSuggestedSymbolForNonexistentSymbol(location, outerName, meaning) {\n      Debug.assert(outerName !== void 0, \"outername should always be defined\");\n      const result = resolveNameHelper(location, outerName, meaning, void 0, outerName, false, false, true, (symbols, name, meaning2) => {\n        Debug.assertEqual(outerName, name, \"name should equal outerName\");\n        const symbol = getSymbol2(symbols, name, meaning2);\n        if (symbol)\n          return symbol;\n        let candidates;\n        if (symbols === globals) {\n          const primitives = mapDefined([\"string\", \"number\", \"boolean\", \"object\", \"bigint\", \"symbol\"], (s) => symbols.has(s.charAt(0).toUpperCase() + s.slice(1)) ? createSymbol(524288, s) : void 0);\n          candidates = primitives.concat(arrayFrom(symbols.values()));\n        } else {\n          candidates = arrayFrom(symbols.values());\n        }\n        return getSpellingSuggestionForName(unescapeLeadingUnderscores(name), candidates, meaning2);\n      });\n      return result;\n    }\n    function getSuggestionForNonexistentSymbol(location, outerName, meaning) {\n      const symbolResult = getSuggestedSymbolForNonexistentSymbol(location, outerName, meaning);\n      return symbolResult && symbolName(symbolResult);\n    }\n    function getSuggestedSymbolForNonexistentModule(name, targetModule) {\n      return targetModule.exports && getSpellingSuggestionForName(idText(name), getExportsOfModuleAsArray(targetModule), 2623475);\n    }\n    function getSuggestionForNonexistentExport(name, targetModule) {\n      const suggestion = getSuggestedSymbolForNonexistentModule(name, targetModule);\n      return suggestion && symbolName(suggestion);\n    }\n    function getSuggestionForNonexistentIndexSignature(objectType, expr, keyedType) {\n      function hasProp(name) {\n        const prop = getPropertyOfObjectType(objectType, name);\n        if (prop) {\n          const s = getSingleCallSignature(getTypeOfSymbol(prop));\n          return !!s && getMinArgumentCount(s) >= 1 && isTypeAssignableTo(keyedType, getTypeAtPosition(s, 0));\n        }\n        return false;\n      }\n      const suggestedMethod = isAssignmentTarget(expr) ? \"set\" : \"get\";\n      if (!hasProp(suggestedMethod)) {\n        return void 0;\n      }\n      let suggestion = tryGetPropertyAccessOrIdentifierToString(expr.expression);\n      if (suggestion === void 0) {\n        suggestion = suggestedMethod;\n      } else {\n        suggestion += \".\" + suggestedMethod;\n      }\n      return suggestion;\n    }\n    function getSuggestedTypeForNonexistentStringLiteralType(source, target) {\n      const candidates = target.types.filter((type) => !!(type.flags & 128));\n      return getSpellingSuggestion(source.value, candidates, (type) => type.value);\n    }\n    function getSpellingSuggestionForName(name, symbols, meaning) {\n      return getSpellingSuggestion(name, symbols, getCandidateName);\n      function getCandidateName(candidate) {\n        const candidateName = symbolName(candidate);\n        if (startsWith(candidateName, '\"')) {\n          return void 0;\n        }\n        if (candidate.flags & meaning) {\n          return candidateName;\n        }\n        if (candidate.flags & 2097152) {\n          const alias = tryResolveAlias(candidate);\n          if (alias && alias.flags & meaning) {\n            return candidateName;\n          }\n        }\n        return void 0;\n      }\n    }\n    function markPropertyAsReferenced(prop, nodeForCheckWriteOnly, isSelfTypeAccess2) {\n      const valueDeclaration = prop && prop.flags & 106500 && prop.valueDeclaration;\n      if (!valueDeclaration) {\n        return;\n      }\n      const hasPrivateModifier = hasEffectiveModifier(valueDeclaration, 8);\n      const hasPrivateIdentifier = prop.valueDeclaration && isNamedDeclaration(prop.valueDeclaration) && isPrivateIdentifier(prop.valueDeclaration.name);\n      if (!hasPrivateModifier && !hasPrivateIdentifier) {\n        return;\n      }\n      if (nodeForCheckWriteOnly && isWriteOnlyAccess(nodeForCheckWriteOnly) && !(prop.flags & 65536)) {\n        return;\n      }\n      if (isSelfTypeAccess2) {\n        const containingMethod = findAncestor(nodeForCheckWriteOnly, isFunctionLikeDeclaration);\n        if (containingMethod && containingMethod.symbol === prop) {\n          return;\n        }\n      }\n      (getCheckFlags(prop) & 1 ? getSymbolLinks(prop).target : prop).isReferenced = 67108863;\n    }\n    function isSelfTypeAccess(name, parent2) {\n      return name.kind === 108 || !!parent2 && isEntityNameExpression(name) && parent2 === getResolvedSymbol(getFirstIdentifier(name));\n    }\n    function isValidPropertyAccess(node, propertyName) {\n      switch (node.kind) {\n        case 208:\n          return isValidPropertyAccessWithType(node, node.expression.kind === 106, propertyName, getWidenedType(checkExpression(node.expression)));\n        case 163:\n          return isValidPropertyAccessWithType(node, false, propertyName, getWidenedType(checkExpression(node.left)));\n        case 202:\n          return isValidPropertyAccessWithType(node, false, propertyName, getTypeFromTypeNode(node));\n      }\n    }\n    function isValidPropertyAccessForCompletions(node, type, property) {\n      return isPropertyAccessible(node, node.kind === 208 && node.expression.kind === 106, false, type, property);\n    }\n    function isValidPropertyAccessWithType(node, isSuper, propertyName, type) {\n      if (isTypeAny(type)) {\n        return true;\n      }\n      const prop = getPropertyOfType(type, propertyName);\n      return !!prop && isPropertyAccessible(node, isSuper, false, type, prop);\n    }\n    function isPropertyAccessible(node, isSuper, isWrite, containingType, property) {\n      if (isTypeAny(containingType)) {\n        return true;\n      }\n      if (property.valueDeclaration && isPrivateIdentifierClassElementDeclaration(property.valueDeclaration)) {\n        const declClass = getContainingClass(property.valueDeclaration);\n        return !isOptionalChain(node) && !!findAncestor(node, (parent2) => parent2 === declClass);\n      }\n      return checkPropertyAccessibilityAtLocation(node, isSuper, isWrite, containingType, property);\n    }\n    function getForInVariableSymbol(node) {\n      const initializer = node.initializer;\n      if (initializer.kind === 258) {\n        const variable = initializer.declarations[0];\n        if (variable && !isBindingPattern(variable.name)) {\n          return getSymbolOfDeclaration(variable);\n        }\n      } else if (initializer.kind === 79) {\n        return getResolvedSymbol(initializer);\n      }\n      return void 0;\n    }\n    function hasNumericPropertyNames(type) {\n      return getIndexInfosOfType(type).length === 1 && !!getIndexInfoOfType(type, numberType);\n    }\n    function isForInVariableForNumericPropertyNames(expr) {\n      const e = skipParentheses(expr);\n      if (e.kind === 79) {\n        const symbol = getResolvedSymbol(e);\n        if (symbol.flags & 3) {\n          let child = expr;\n          let node = expr.parent;\n          while (node) {\n            if (node.kind === 246 && child === node.statement && getForInVariableSymbol(node) === symbol && hasNumericPropertyNames(getTypeOfExpression(node.expression))) {\n              return true;\n            }\n            child = node;\n            node = node.parent;\n          }\n        }\n      }\n      return false;\n    }\n    function checkIndexedAccess(node, checkMode) {\n      return node.flags & 32 ? checkElementAccessChain(node, checkMode) : checkElementAccessExpression(node, checkNonNullExpression(node.expression), checkMode);\n    }\n    function checkElementAccessChain(node, checkMode) {\n      const exprType = checkExpression(node.expression);\n      const nonOptionalType = getOptionalExpressionType(exprType, node.expression);\n      return propagateOptionalTypeMarker(checkElementAccessExpression(node, checkNonNullType(nonOptionalType, node.expression), checkMode), node, nonOptionalType !== exprType);\n    }\n    function checkElementAccessExpression(node, exprType, checkMode) {\n      const objectType = getAssignmentTargetKind(node) !== 0 || isMethodAccessForCall(node) ? getWidenedType(exprType) : exprType;\n      const indexExpression = node.argumentExpression;\n      const indexType = checkExpression(indexExpression);\n      if (isErrorType(objectType) || objectType === silentNeverType) {\n        return objectType;\n      }\n      if (isConstEnumObjectType(objectType) && !isStringLiteralLike(indexExpression)) {\n        error(indexExpression, Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal);\n        return errorType;\n      }\n      const effectiveIndexType = isForInVariableForNumericPropertyNames(indexExpression) ? numberType : indexType;\n      const accessFlags = isAssignmentTarget(node) ? 4 | (isGenericObjectType(objectType) && !isThisTypeParameter(objectType) ? 2 : 0) : 32;\n      const indexedAccessType = getIndexedAccessTypeOrUndefined(objectType, effectiveIndexType, accessFlags, node) || errorType;\n      return checkIndexedAccessIndexType(getFlowTypeOfAccessExpression(node, getNodeLinks(node).resolvedSymbol, indexedAccessType, indexExpression, checkMode), node);\n    }\n    function callLikeExpressionMayHaveTypeArguments(node) {\n      return isCallOrNewExpression(node) || isTaggedTemplateExpression(node) || isJsxOpeningLikeElement(node);\n    }\n    function resolveUntypedCall(node) {\n      if (callLikeExpressionMayHaveTypeArguments(node)) {\n        forEach(node.typeArguments, checkSourceElement);\n      }\n      if (node.kind === 212) {\n        checkExpression(node.template);\n      } else if (isJsxOpeningLikeElement(node)) {\n        checkExpression(node.attributes);\n      } else if (node.kind !== 167) {\n        forEach(node.arguments, (argument) => {\n          checkExpression(argument);\n        });\n      }\n      return anySignature;\n    }\n    function resolveErrorCall(node) {\n      resolveUntypedCall(node);\n      return unknownSignature;\n    }\n    function reorderCandidates(signatures, result, callChainFlags) {\n      let lastParent;\n      let lastSymbol;\n      let cutoffIndex = 0;\n      let index;\n      let specializedIndex = -1;\n      let spliceIndex;\n      Debug.assert(!result.length);\n      for (const signature of signatures) {\n        const symbol = signature.declaration && getSymbolOfDeclaration(signature.declaration);\n        const parent2 = signature.declaration && signature.declaration.parent;\n        if (!lastSymbol || symbol === lastSymbol) {\n          if (lastParent && parent2 === lastParent) {\n            index = index + 1;\n          } else {\n            lastParent = parent2;\n            index = cutoffIndex;\n          }\n        } else {\n          index = cutoffIndex = result.length;\n          lastParent = parent2;\n        }\n        lastSymbol = symbol;\n        if (signatureHasLiteralTypes(signature)) {\n          specializedIndex++;\n          spliceIndex = specializedIndex;\n          cutoffIndex++;\n        } else {\n          spliceIndex = index;\n        }\n        result.splice(spliceIndex, 0, callChainFlags ? getOptionalCallSignature(signature, callChainFlags) : signature);\n      }\n    }\n    function isSpreadArgument(arg) {\n      return !!arg && (arg.kind === 227 || arg.kind === 234 && arg.isSpread);\n    }\n    function getSpreadArgumentIndex(args) {\n      return findIndex(args, isSpreadArgument);\n    }\n    function acceptsVoid(t) {\n      return !!(t.flags & 16384);\n    }\n    function acceptsVoidUndefinedUnknownOrAny(t) {\n      return !!(t.flags & (16384 | 32768 | 2 | 1));\n    }\n    function hasCorrectArity(node, args, signature, signatureHelpTrailingComma = false) {\n      let argCount;\n      let callIsIncomplete = false;\n      let effectiveParameterCount = getParameterCount(signature);\n      let effectiveMinimumArguments = getMinArgumentCount(signature);\n      if (node.kind === 212) {\n        argCount = args.length;\n        if (node.template.kind === 225) {\n          const lastSpan = last(node.template.templateSpans);\n          callIsIncomplete = nodeIsMissing(lastSpan.literal) || !!lastSpan.literal.isUnterminated;\n        } else {\n          const templateLiteral = node.template;\n          Debug.assert(templateLiteral.kind === 14);\n          callIsIncomplete = !!templateLiteral.isUnterminated;\n        }\n      } else if (node.kind === 167) {\n        argCount = getDecoratorArgumentCount(node, signature);\n      } else if (isJsxOpeningLikeElement(node)) {\n        callIsIncomplete = node.attributes.end === node.end;\n        if (callIsIncomplete) {\n          return true;\n        }\n        argCount = effectiveMinimumArguments === 0 ? args.length : 1;\n        effectiveParameterCount = args.length === 0 ? effectiveParameterCount : 1;\n        effectiveMinimumArguments = Math.min(effectiveMinimumArguments, 1);\n      } else if (!node.arguments) {\n        Debug.assert(node.kind === 211);\n        return getMinArgumentCount(signature) === 0;\n      } else {\n        argCount = signatureHelpTrailingComma ? args.length + 1 : args.length;\n        callIsIncomplete = node.arguments.end === node.end;\n        const spreadArgIndex = getSpreadArgumentIndex(args);\n        if (spreadArgIndex >= 0) {\n          return spreadArgIndex >= getMinArgumentCount(signature) && (hasEffectiveRestParameter(signature) || spreadArgIndex < getParameterCount(signature));\n        }\n      }\n      if (!hasEffectiveRestParameter(signature) && argCount > effectiveParameterCount) {\n        return false;\n      }\n      if (callIsIncomplete || argCount >= effectiveMinimumArguments) {\n        return true;\n      }\n      for (let i = argCount; i < effectiveMinimumArguments; i++) {\n        const type = getTypeAtPosition(signature, i);\n        if (filterType(type, isInJSFile(node) && !strictNullChecks ? acceptsVoidUndefinedUnknownOrAny : acceptsVoid).flags & 131072) {\n          return false;\n        }\n      }\n      return true;\n    }\n    function hasCorrectTypeArgumentArity(signature, typeArguments) {\n      const numTypeParameters = length(signature.typeParameters);\n      const minTypeArgumentCount = getMinTypeArgumentCount(signature.typeParameters);\n      return !some(typeArguments) || typeArguments.length >= minTypeArgumentCount && typeArguments.length <= numTypeParameters;\n    }\n    function getSingleCallSignature(type) {\n      return getSingleSignature(type, 0, false);\n    }\n    function getSingleCallOrConstructSignature(type) {\n      return getSingleSignature(type, 0, false) || getSingleSignature(type, 1, false);\n    }\n    function getSingleSignature(type, kind, allowMembers) {\n      if (type.flags & 524288) {\n        const resolved = resolveStructuredTypeMembers(type);\n        if (allowMembers || resolved.properties.length === 0 && resolved.indexInfos.length === 0) {\n          if (kind === 0 && resolved.callSignatures.length === 1 && resolved.constructSignatures.length === 0) {\n            return resolved.callSignatures[0];\n          }\n          if (kind === 1 && resolved.constructSignatures.length === 1 && resolved.callSignatures.length === 0) {\n            return resolved.constructSignatures[0];\n          }\n        }\n      }\n      return void 0;\n    }\n    function instantiateSignatureInContextOf(signature, contextualSignature, inferenceContext, compareTypes) {\n      const context = createInferenceContext(signature.typeParameters, signature, 0, compareTypes);\n      const restType = getEffectiveRestType(contextualSignature);\n      const mapper = inferenceContext && (restType && restType.flags & 262144 ? inferenceContext.nonFixingMapper : inferenceContext.mapper);\n      const sourceSignature = mapper ? instantiateSignature(contextualSignature, mapper) : contextualSignature;\n      applyToParameterTypes(sourceSignature, signature, (source, target) => {\n        inferTypes(context.inferences, source, target);\n      });\n      if (!inferenceContext) {\n        applyToReturnTypes(contextualSignature, signature, (source, target) => {\n          inferTypes(context.inferences, source, target, 128);\n        });\n      }\n      return getSignatureInstantiation(signature, getInferredTypes(context), isInJSFile(contextualSignature.declaration));\n    }\n    function inferJsxTypeArguments(node, signature, checkMode, context) {\n      const paramType = getEffectiveFirstArgumentForJsxSignature(signature, node);\n      const checkAttrType = checkExpressionWithContextualType(node.attributes, paramType, context, checkMode);\n      inferTypes(context.inferences, checkAttrType, paramType);\n      return getInferredTypes(context);\n    }\n    function getThisArgumentType(thisArgumentNode) {\n      if (!thisArgumentNode) {\n        return voidType;\n      }\n      const thisArgumentType = checkExpression(thisArgumentNode);\n      return isOptionalChainRoot(thisArgumentNode.parent) ? getNonNullableType(thisArgumentType) : isOptionalChain(thisArgumentNode.parent) ? removeOptionalTypeMarker(thisArgumentType) : thisArgumentType;\n    }\n    function inferTypeArguments(node, signature, args, checkMode, context) {\n      if (isJsxOpeningLikeElement(node)) {\n        return inferJsxTypeArguments(node, signature, checkMode, context);\n      }\n      if (node.kind !== 167) {\n        const skipBindingPatterns = every(signature.typeParameters, (p) => !!getDefaultFromTypeParameter(p));\n        const contextualType = getContextualType2(node, skipBindingPatterns ? 8 : 0);\n        if (contextualType) {\n          const inferenceTargetType = getReturnTypeOfSignature(signature);\n          if (couldContainTypeVariables(inferenceTargetType)) {\n            const outerContext = getInferenceContext(node);\n            const isFromBindingPattern = !skipBindingPatterns && getContextualType2(node, 8) !== contextualType;\n            if (!isFromBindingPattern) {\n              const outerMapper = getMapperFromContext(cloneInferenceContext(outerContext, 1));\n              const instantiatedType = instantiateType(contextualType, outerMapper);\n              const contextualSignature = getSingleCallSignature(instantiatedType);\n              const inferenceSourceType = contextualSignature && contextualSignature.typeParameters ? getOrCreateTypeFromSignature(getSignatureInstantiationWithoutFillingInTypeArguments(contextualSignature, contextualSignature.typeParameters)) : instantiatedType;\n              inferTypes(context.inferences, inferenceSourceType, inferenceTargetType, 128);\n            }\n            const returnContext = createInferenceContext(signature.typeParameters, signature, context.flags);\n            const returnSourceType = instantiateType(contextualType, outerContext && outerContext.returnMapper);\n            inferTypes(returnContext.inferences, returnSourceType, inferenceTargetType);\n            context.returnMapper = some(returnContext.inferences, hasInferenceCandidates) ? getMapperFromContext(cloneInferredPartOfContext(returnContext)) : void 0;\n          }\n        }\n      }\n      const restType = getNonArrayRestType(signature);\n      const argCount = restType ? Math.min(getParameterCount(signature) - 1, args.length) : args.length;\n      if (restType && restType.flags & 262144) {\n        const info = find(context.inferences, (info2) => info2.typeParameter === restType);\n        if (info) {\n          info.impliedArity = findIndex(args, isSpreadArgument, argCount) < 0 ? args.length - argCount : void 0;\n        }\n      }\n      const thisType = getThisTypeOfSignature(signature);\n      if (thisType && couldContainTypeVariables(thisType)) {\n        const thisArgumentNode = getThisArgumentOfCall(node);\n        inferTypes(context.inferences, getThisArgumentType(thisArgumentNode), thisType);\n      }\n      for (let i = 0; i < argCount; i++) {\n        const arg = args[i];\n        if (arg.kind !== 229 && !(checkMode & 32 && hasSkipDirectInferenceFlag(arg))) {\n          const paramType = getTypeAtPosition(signature, i);\n          if (couldContainTypeVariables(paramType)) {\n            const argType = checkExpressionWithContextualType(arg, paramType, context, checkMode);\n            inferTypes(context.inferences, argType, paramType);\n          }\n        }\n      }\n      if (restType && couldContainTypeVariables(restType)) {\n        const spreadType = getSpreadArgumentType(args, argCount, args.length, restType, context, checkMode);\n        inferTypes(context.inferences, spreadType, restType);\n      }\n      return getInferredTypes(context);\n    }\n    function getMutableArrayOrTupleType(type) {\n      return type.flags & 1048576 ? mapType(type, getMutableArrayOrTupleType) : type.flags & 1 || isMutableArrayOrTuple(getBaseConstraintOfType(type) || type) ? type : isTupleType(type) ? createTupleType(getTypeArguments(type), type.target.elementFlags, false, type.target.labeledElementDeclarations) : createTupleType([type], [8]);\n    }\n    function getSpreadArgumentType(args, index, argCount, restType, context, checkMode) {\n      if (index >= argCount - 1) {\n        const arg = args[argCount - 1];\n        if (isSpreadArgument(arg)) {\n          return getMutableArrayOrTupleType(arg.kind === 234 ? arg.type : checkExpressionWithContextualType(arg.expression, restType, context, checkMode));\n        }\n      }\n      const types = [];\n      const flags = [];\n      const names = [];\n      const inConstContext = isConstTypeVariable(restType);\n      for (let i = index; i < argCount; i++) {\n        const arg = args[i];\n        if (isSpreadArgument(arg)) {\n          const spreadType = arg.kind === 234 ? arg.type : checkExpression(arg.expression);\n          if (isArrayLikeType(spreadType)) {\n            types.push(spreadType);\n            flags.push(8);\n          } else {\n            types.push(checkIteratedTypeOrElementType(33, spreadType, undefinedType, arg.kind === 227 ? arg.expression : arg));\n            flags.push(4);\n          }\n        } else {\n          const contextualType = getIndexedAccessType(restType, getNumberLiteralType(i - index), 256);\n          const argType = checkExpressionWithContextualType(arg, contextualType, context, checkMode);\n          const hasPrimitiveContextualType = inConstContext || maybeTypeOfKind(contextualType, 134348796 | 4194304 | 134217728 | 268435456);\n          types.push(hasPrimitiveContextualType ? getRegularTypeOfLiteralType(argType) : getWidenedLiteralType(argType));\n          flags.push(1);\n        }\n        if (arg.kind === 234 && arg.tupleNameSource) {\n          names.push(arg.tupleNameSource);\n        }\n      }\n      return createTupleType(types, flags, inConstContext, length(names) === length(types) ? names : void 0);\n    }\n    function checkTypeArguments(signature, typeArgumentNodes, reportErrors2, headMessage) {\n      const isJavascript = isInJSFile(signature.declaration);\n      const typeParameters = signature.typeParameters;\n      const typeArgumentTypes = fillMissingTypeArguments(map(typeArgumentNodes, getTypeFromTypeNode), typeParameters, getMinTypeArgumentCount(typeParameters), isJavascript);\n      let mapper;\n      for (let i = 0; i < typeArgumentNodes.length; i++) {\n        Debug.assert(typeParameters[i] !== void 0, \"Should not call checkTypeArguments with too many type arguments\");\n        const constraint = getConstraintOfTypeParameter(typeParameters[i]);\n        if (constraint) {\n          const errorInfo = reportErrors2 && headMessage ? () => chainDiagnosticMessages(void 0, Diagnostics.Type_0_does_not_satisfy_the_constraint_1) : void 0;\n          const typeArgumentHeadMessage = headMessage || Diagnostics.Type_0_does_not_satisfy_the_constraint_1;\n          if (!mapper) {\n            mapper = createTypeMapper(typeParameters, typeArgumentTypes);\n          }\n          const typeArgument = typeArgumentTypes[i];\n          if (!checkTypeAssignableTo(typeArgument, getTypeWithThisArgument(instantiateType(constraint, mapper), typeArgument), reportErrors2 ? typeArgumentNodes[i] : void 0, typeArgumentHeadMessage, errorInfo)) {\n            return void 0;\n          }\n        }\n      }\n      return typeArgumentTypes;\n    }\n    function getJsxReferenceKind(node) {\n      if (isJsxIntrinsicIdentifier(node.tagName)) {\n        return 2;\n      }\n      const tagType = getApparentType(checkExpression(node.tagName));\n      if (length(getSignaturesOfType(tagType, 1))) {\n        return 0;\n      }\n      if (length(getSignaturesOfType(tagType, 0))) {\n        return 1;\n      }\n      return 2;\n    }\n    function checkApplicableSignatureForJsxOpeningLikeElement(node, signature, relation, checkMode, reportErrors2, containingMessageChain, errorOutputContainer) {\n      const paramType = getEffectiveFirstArgumentForJsxSignature(signature, node);\n      const attributesType = checkExpressionWithContextualType(node.attributes, paramType, void 0, checkMode);\n      return checkTagNameDoesNotExpectTooManyArguments() && checkTypeRelatedToAndOptionallyElaborate(attributesType, paramType, relation, reportErrors2 ? node.tagName : void 0, node.attributes, void 0, containingMessageChain, errorOutputContainer);\n      function checkTagNameDoesNotExpectTooManyArguments() {\n        var _a2;\n        if (getJsxNamespaceContainerForImplicitImport(node)) {\n          return true;\n        }\n        const tagType = isJsxOpeningElement(node) || isJsxSelfClosingElement(node) && !isJsxIntrinsicIdentifier(node.tagName) ? checkExpression(node.tagName) : void 0;\n        if (!tagType) {\n          return true;\n        }\n        const tagCallSignatures = getSignaturesOfType(tagType, 0);\n        if (!length(tagCallSignatures)) {\n          return true;\n        }\n        const factory2 = getJsxFactoryEntity(node);\n        if (!factory2) {\n          return true;\n        }\n        const factorySymbol = resolveEntityName(factory2, 111551, true, false, node);\n        if (!factorySymbol) {\n          return true;\n        }\n        const factoryType = getTypeOfSymbol(factorySymbol);\n        const callSignatures = getSignaturesOfType(factoryType, 0);\n        if (!length(callSignatures)) {\n          return true;\n        }\n        let hasFirstParamSignatures = false;\n        let maxParamCount = 0;\n        for (const sig of callSignatures) {\n          const firstparam = getTypeAtPosition(sig, 0);\n          const signaturesOfParam = getSignaturesOfType(firstparam, 0);\n          if (!length(signaturesOfParam))\n            continue;\n          for (const paramSig of signaturesOfParam) {\n            hasFirstParamSignatures = true;\n            if (hasEffectiveRestParameter(paramSig)) {\n              return true;\n            }\n            const paramCount = getParameterCount(paramSig);\n            if (paramCount > maxParamCount) {\n              maxParamCount = paramCount;\n            }\n          }\n        }\n        if (!hasFirstParamSignatures) {\n          return true;\n        }\n        let absoluteMinArgCount = Infinity;\n        for (const tagSig of tagCallSignatures) {\n          const tagRequiredArgCount = getMinArgumentCount(tagSig);\n          if (tagRequiredArgCount < absoluteMinArgCount) {\n            absoluteMinArgCount = tagRequiredArgCount;\n          }\n        }\n        if (absoluteMinArgCount <= maxParamCount) {\n          return true;\n        }\n        if (reportErrors2) {\n          const diag2 = createDiagnosticForNode(node.tagName, Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3, entityNameToString(node.tagName), absoluteMinArgCount, entityNameToString(factory2), maxParamCount);\n          const tagNameDeclaration = (_a2 = getSymbolAtLocation(node.tagName)) == null ? void 0 : _a2.valueDeclaration;\n          if (tagNameDeclaration) {\n            addRelatedInfo(diag2, createDiagnosticForNode(tagNameDeclaration, Diagnostics._0_is_declared_here, entityNameToString(node.tagName)));\n          }\n          if (errorOutputContainer && errorOutputContainer.skipLogging) {\n            (errorOutputContainer.errors || (errorOutputContainer.errors = [])).push(diag2);\n          }\n          if (!errorOutputContainer.skipLogging) {\n            diagnostics.add(diag2);\n          }\n        }\n        return false;\n      }\n    }\n    function getSignatureApplicabilityError(node, args, signature, relation, checkMode, reportErrors2, containingMessageChain) {\n      const errorOutputContainer = { errors: void 0, skipLogging: true };\n      if (isJsxOpeningLikeElement(node)) {\n        if (!checkApplicableSignatureForJsxOpeningLikeElement(node, signature, relation, checkMode, reportErrors2, containingMessageChain, errorOutputContainer)) {\n          Debug.assert(!reportErrors2 || !!errorOutputContainer.errors, \"jsx should have errors when reporting errors\");\n          return errorOutputContainer.errors || emptyArray;\n        }\n        return void 0;\n      }\n      const thisType = getThisTypeOfSignature(signature);\n      if (thisType && thisType !== voidType && !(isNewExpression(node) || isCallExpression(node) && isSuperProperty(node.expression))) {\n        const thisArgumentNode = getThisArgumentOfCall(node);\n        const thisArgumentType = getThisArgumentType(thisArgumentNode);\n        const errorNode = reportErrors2 ? thisArgumentNode || node : void 0;\n        const headMessage2 = Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;\n        if (!checkTypeRelatedTo(thisArgumentType, thisType, relation, errorNode, headMessage2, containingMessageChain, errorOutputContainer)) {\n          Debug.assert(!reportErrors2 || !!errorOutputContainer.errors, \"this parameter should have errors when reporting errors\");\n          return errorOutputContainer.errors || emptyArray;\n        }\n      }\n      const headMessage = Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1;\n      const restType = getNonArrayRestType(signature);\n      const argCount = restType ? Math.min(getParameterCount(signature) - 1, args.length) : args.length;\n      for (let i = 0; i < argCount; i++) {\n        const arg = args[i];\n        if (arg.kind !== 229) {\n          const paramType = getTypeAtPosition(signature, i);\n          const argType = checkExpressionWithContextualType(arg, paramType, void 0, checkMode);\n          const checkArgType = checkMode & 4 ? getRegularTypeOfObjectLiteral(argType) : argType;\n          if (!checkTypeRelatedToAndOptionallyElaborate(checkArgType, paramType, relation, reportErrors2 ? arg : void 0, arg, headMessage, containingMessageChain, errorOutputContainer)) {\n            Debug.assert(!reportErrors2 || !!errorOutputContainer.errors, \"parameter should have errors when reporting errors\");\n            maybeAddMissingAwaitInfo(arg, checkArgType, paramType);\n            return errorOutputContainer.errors || emptyArray;\n          }\n        }\n      }\n      if (restType) {\n        const spreadType = getSpreadArgumentType(args, argCount, args.length, restType, void 0, checkMode);\n        const restArgCount = args.length - argCount;\n        const errorNode = !reportErrors2 ? void 0 : restArgCount === 0 ? node : restArgCount === 1 ? args[argCount] : setTextRangePosEnd(createSyntheticExpression(node, spreadType), args[argCount].pos, args[args.length - 1].end);\n        if (!checkTypeRelatedTo(spreadType, restType, relation, errorNode, headMessage, void 0, errorOutputContainer)) {\n          Debug.assert(!reportErrors2 || !!errorOutputContainer.errors, \"rest parameter should have errors when reporting errors\");\n          maybeAddMissingAwaitInfo(errorNode, spreadType, restType);\n          return errorOutputContainer.errors || emptyArray;\n        }\n      }\n      return void 0;\n      function maybeAddMissingAwaitInfo(errorNode, source, target) {\n        if (errorNode && reportErrors2 && errorOutputContainer.errors && errorOutputContainer.errors.length) {\n          if (getAwaitedTypeOfPromise(target)) {\n            return;\n          }\n          const awaitedTypeOfSource = getAwaitedTypeOfPromise(source);\n          if (awaitedTypeOfSource && isTypeRelatedTo(awaitedTypeOfSource, target, relation)) {\n            addRelatedInfo(errorOutputContainer.errors[0], createDiagnosticForNode(errorNode, Diagnostics.Did_you_forget_to_use_await));\n          }\n        }\n      }\n    }\n    function getThisArgumentOfCall(node) {\n      const expression = node.kind === 210 ? node.expression : node.kind === 212 ? node.tag : void 0;\n      if (expression) {\n        const callee = skipOuterExpressions(expression);\n        if (isAccessExpression(callee)) {\n          return callee.expression;\n        }\n      }\n    }\n    function createSyntheticExpression(parent2, type, isSpread, tupleNameSource) {\n      const result = parseNodeFactory.createSyntheticExpression(type, isSpread, tupleNameSource);\n      setTextRange(result, parent2);\n      setParent(result, parent2);\n      return result;\n    }\n    function getEffectiveCallArguments(node) {\n      if (node.kind === 212) {\n        const template = node.template;\n        const args2 = [createSyntheticExpression(template, getGlobalTemplateStringsArrayType())];\n        if (template.kind === 225) {\n          forEach(template.templateSpans, (span) => {\n            args2.push(span.expression);\n          });\n        }\n        return args2;\n      }\n      if (node.kind === 167) {\n        return getEffectiveDecoratorArguments(node);\n      }\n      if (isJsxOpeningLikeElement(node)) {\n        return node.attributes.properties.length > 0 || isJsxOpeningElement(node) && node.parent.children.length > 0 ? [node.attributes] : emptyArray;\n      }\n      const args = node.arguments || emptyArray;\n      const spreadIndex = getSpreadArgumentIndex(args);\n      if (spreadIndex >= 0) {\n        const effectiveArgs = args.slice(0, spreadIndex);\n        for (let i = spreadIndex; i < args.length; i++) {\n          const arg = args[i];\n          const spreadType = arg.kind === 227 && (flowLoopCount ? checkExpression(arg.expression) : checkExpressionCached(arg.expression));\n          if (spreadType && isTupleType(spreadType)) {\n            forEach(getTypeArguments(spreadType), (t, i2) => {\n              var _a2;\n              const flags = spreadType.target.elementFlags[i2];\n              const syntheticArg = createSyntheticExpression(arg, flags & 4 ? createArrayType(t) : t, !!(flags & 12), (_a2 = spreadType.target.labeledElementDeclarations) == null ? void 0 : _a2[i2]);\n              effectiveArgs.push(syntheticArg);\n            });\n          } else {\n            effectiveArgs.push(arg);\n          }\n        }\n        return effectiveArgs;\n      }\n      return args;\n    }\n    function getEffectiveDecoratorArguments(node) {\n      const expr = node.expression;\n      const signature = getDecoratorCallSignature(node);\n      if (signature) {\n        const args = [];\n        for (const param of signature.parameters) {\n          const type = getTypeOfSymbol(param);\n          args.push(createSyntheticExpression(expr, type));\n        }\n        return args;\n      }\n      return Debug.fail();\n    }\n    function getDecoratorArgumentCount(node, signature) {\n      return compilerOptions.experimentalDecorators ? getLegacyDecoratorArgumentCount(node, signature) : 2;\n    }\n    function getLegacyDecoratorArgumentCount(node, signature) {\n      switch (node.parent.kind) {\n        case 260:\n        case 228:\n          return 1;\n        case 169:\n          return hasAccessorModifier(node.parent) ? 3 : 2;\n        case 171:\n        case 174:\n        case 175:\n          return languageVersion === 0 || signature.parameters.length <= 2 ? 2 : 3;\n        case 166:\n          return 3;\n        default:\n          return Debug.fail();\n      }\n    }\n    function getDiagnosticSpanForCallNode(node, doNotIncludeArguments) {\n      let start;\n      let length2;\n      const sourceFile = getSourceFileOfNode(node);\n      if (isPropertyAccessExpression(node.expression)) {\n        const nameSpan = getErrorSpanForNode(sourceFile, node.expression.name);\n        start = nameSpan.start;\n        length2 = doNotIncludeArguments ? nameSpan.length : node.end - start;\n      } else {\n        const expressionSpan = getErrorSpanForNode(sourceFile, node.expression);\n        start = expressionSpan.start;\n        length2 = doNotIncludeArguments ? expressionSpan.length : node.end - start;\n      }\n      return { start, length: length2, sourceFile };\n    }\n    function getDiagnosticForCallNode(node, message, arg0, arg1, arg2, arg3) {\n      if (isCallExpression(node)) {\n        const { sourceFile, start, length: length2 } = getDiagnosticSpanForCallNode(node);\n        if (\"message\" in message) {\n          return createFileDiagnostic(sourceFile, start, length2, message, arg0, arg1, arg2, arg3);\n        }\n        return createDiagnosticForFileFromMessageChain(sourceFile, message);\n      } else {\n        if (\"message\" in message) {\n          return createDiagnosticForNode(node, message, arg0, arg1, arg2, arg3);\n        }\n        return createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(node), node, message);\n      }\n    }\n    function isPromiseResolveArityError(node) {\n      if (!isCallExpression(node) || !isIdentifier(node.expression))\n        return false;\n      const symbol = resolveName(node.expression, node.expression.escapedText, 111551, void 0, void 0, false);\n      const decl = symbol == null ? void 0 : symbol.valueDeclaration;\n      if (!decl || !isParameter(decl) || !isFunctionExpressionOrArrowFunction(decl.parent) || !isNewExpression(decl.parent.parent) || !isIdentifier(decl.parent.parent.expression)) {\n        return false;\n      }\n      const globalPromiseSymbol = getGlobalPromiseConstructorSymbol(false);\n      if (!globalPromiseSymbol)\n        return false;\n      const constructorSymbol = getSymbolAtLocation(decl.parent.parent.expression, true);\n      return constructorSymbol === globalPromiseSymbol;\n    }\n    function getArgumentArityError(node, signatures, args, headMessage) {\n      var _a2;\n      const spreadIndex = getSpreadArgumentIndex(args);\n      if (spreadIndex > -1) {\n        return createDiagnosticForNode(args[spreadIndex], Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);\n      }\n      let min2 = Number.POSITIVE_INFINITY;\n      let max = Number.NEGATIVE_INFINITY;\n      let maxBelow = Number.NEGATIVE_INFINITY;\n      let minAbove = Number.POSITIVE_INFINITY;\n      let closestSignature;\n      for (const sig of signatures) {\n        const minParameter = getMinArgumentCount(sig);\n        const maxParameter = getParameterCount(sig);\n        if (minParameter < min2) {\n          min2 = minParameter;\n          closestSignature = sig;\n        }\n        max = Math.max(max, maxParameter);\n        if (minParameter < args.length && minParameter > maxBelow)\n          maxBelow = minParameter;\n        if (args.length < maxParameter && maxParameter < minAbove)\n          minAbove = maxParameter;\n      }\n      const hasRestParameter2 = some(signatures, hasEffectiveRestParameter);\n      const parameterRange = hasRestParameter2 ? min2 : min2 < max ? min2 + \"-\" + max : min2;\n      const isVoidPromiseError = !hasRestParameter2 && parameterRange === 1 && args.length === 0 && isPromiseResolveArityError(node);\n      if (isVoidPromiseError && isInJSFile(node)) {\n        return getDiagnosticForCallNode(node, Diagnostics.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments);\n      }\n      const error2 = isDecorator(node) ? hasRestParameter2 ? Diagnostics.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0 : Diagnostics.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0 : hasRestParameter2 ? Diagnostics.Expected_at_least_0_arguments_but_got_1 : isVoidPromiseError ? Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise : Diagnostics.Expected_0_arguments_but_got_1;\n      if (min2 < args.length && args.length < max) {\n        if (headMessage) {\n          let chain = chainDiagnosticMessages(void 0, Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments, args.length, maxBelow, minAbove);\n          chain = chainDiagnosticMessages(chain, headMessage);\n          return getDiagnosticForCallNode(node, chain);\n        }\n        return getDiagnosticForCallNode(node, Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments, args.length, maxBelow, minAbove);\n      } else if (args.length < min2) {\n        let diagnostic;\n        if (headMessage) {\n          let chain = chainDiagnosticMessages(void 0, error2, parameterRange, args.length);\n          chain = chainDiagnosticMessages(chain, headMessage);\n          diagnostic = getDiagnosticForCallNode(node, chain);\n        } else {\n          diagnostic = getDiagnosticForCallNode(node, error2, parameterRange, args.length);\n        }\n        const parameter = (_a2 = closestSignature == null ? void 0 : closestSignature.declaration) == null ? void 0 : _a2.parameters[closestSignature.thisParameter ? args.length + 1 : args.length];\n        if (parameter) {\n          const parameterError = createDiagnosticForNode(parameter, isBindingPattern(parameter.name) ? Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided : isRestParameter(parameter) ? Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided : Diagnostics.An_argument_for_0_was_not_provided, !parameter.name ? args.length : !isBindingPattern(parameter.name) ? idText(getFirstIdentifier(parameter.name)) : void 0);\n          return addRelatedInfo(diagnostic, parameterError);\n        }\n        return diagnostic;\n      } else {\n        const errorSpan = factory.createNodeArray(args.slice(max));\n        const pos = first(errorSpan).pos;\n        let end = last(errorSpan).end;\n        if (end === pos) {\n          end++;\n        }\n        setTextRangePosEnd(errorSpan, pos, end);\n        if (headMessage) {\n          let chain = chainDiagnosticMessages(void 0, error2, parameterRange, args.length);\n          chain = chainDiagnosticMessages(chain, headMessage);\n          return createDiagnosticForNodeArrayFromMessageChain(getSourceFileOfNode(node), errorSpan, chain);\n        }\n        return createDiagnosticForNodeArray(getSourceFileOfNode(node), errorSpan, error2, parameterRange, args.length);\n      }\n    }\n    function getTypeArgumentArityError(node, signatures, typeArguments, headMessage) {\n      const argCount = typeArguments.length;\n      if (signatures.length === 1) {\n        const sig = signatures[0];\n        const min2 = getMinTypeArgumentCount(sig.typeParameters);\n        const max = length(sig.typeParameters);\n        if (headMessage) {\n          let chain = chainDiagnosticMessages(void 0, Diagnostics.Expected_0_type_arguments_but_got_1, min2 < max ? min2 + \"-\" + max : min2, argCount);\n          chain = chainDiagnosticMessages(chain, headMessage);\n          return createDiagnosticForNodeArrayFromMessageChain(getSourceFileOfNode(node), typeArguments, chain);\n        }\n        return createDiagnosticForNodeArray(getSourceFileOfNode(node), typeArguments, Diagnostics.Expected_0_type_arguments_but_got_1, min2 < max ? min2 + \"-\" + max : min2, argCount);\n      }\n      let belowArgCount = -Infinity;\n      let aboveArgCount = Infinity;\n      for (const sig of signatures) {\n        const min2 = getMinTypeArgumentCount(sig.typeParameters);\n        const max = length(sig.typeParameters);\n        if (min2 > argCount) {\n          aboveArgCount = Math.min(aboveArgCount, min2);\n        } else if (max < argCount) {\n          belowArgCount = Math.max(belowArgCount, max);\n        }\n      }\n      if (belowArgCount !== -Infinity && aboveArgCount !== Infinity) {\n        if (headMessage) {\n          let chain = chainDiagnosticMessages(void 0, Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments, argCount, belowArgCount, aboveArgCount);\n          chain = chainDiagnosticMessages(chain, headMessage);\n          return createDiagnosticForNodeArrayFromMessageChain(getSourceFileOfNode(node), typeArguments, chain);\n        }\n        return createDiagnosticForNodeArray(getSourceFileOfNode(node), typeArguments, Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments, argCount, belowArgCount, aboveArgCount);\n      }\n      if (headMessage) {\n        let chain = chainDiagnosticMessages(void 0, Diagnostics.Expected_0_type_arguments_but_got_1, belowArgCount === -Infinity ? aboveArgCount : belowArgCount, argCount);\n        chain = chainDiagnosticMessages(chain, headMessage);\n        return createDiagnosticForNodeArrayFromMessageChain(getSourceFileOfNode(node), typeArguments, chain);\n      }\n      return createDiagnosticForNodeArray(getSourceFileOfNode(node), typeArguments, Diagnostics.Expected_0_type_arguments_but_got_1, belowArgCount === -Infinity ? aboveArgCount : belowArgCount, argCount);\n    }\n    function resolveCall(node, signatures, candidatesOutArray, checkMode, callChainFlags, headMessage) {\n      const isTaggedTemplate = node.kind === 212;\n      const isDecorator2 = node.kind === 167;\n      const isJsxOpeningOrSelfClosingElement = isJsxOpeningLikeElement(node);\n      const reportErrors2 = !isInferencePartiallyBlocked && !candidatesOutArray;\n      let typeArguments;\n      if (!isDecorator2 && !isSuperCall(node)) {\n        typeArguments = node.typeArguments;\n        if (isTaggedTemplate || isJsxOpeningOrSelfClosingElement || node.expression.kind !== 106) {\n          forEach(typeArguments, checkSourceElement);\n        }\n      }\n      const candidates = candidatesOutArray || [];\n      reorderCandidates(signatures, candidates, callChainFlags);\n      if (!candidates.length) {\n        if (reportErrors2) {\n          diagnostics.add(getDiagnosticForCallNode(node, Diagnostics.Call_target_does_not_contain_any_signatures));\n        }\n        return resolveErrorCall(node);\n      }\n      const args = getEffectiveCallArguments(node);\n      const isSingleNonGenericCandidate = candidates.length === 1 && !candidates[0].typeParameters;\n      let argCheckMode = !isDecorator2 && !isSingleNonGenericCandidate && some(args, isContextSensitive) ? 4 : 0;\n      argCheckMode |= checkMode & 32;\n      let candidatesForArgumentError;\n      let candidateForArgumentArityError;\n      let candidateForTypeArgumentError;\n      let result;\n      const signatureHelpTrailingComma = !!(checkMode & 16) && node.kind === 210 && node.arguments.hasTrailingComma;\n      if (candidates.length > 1) {\n        result = chooseOverload(candidates, subtypeRelation, isSingleNonGenericCandidate, signatureHelpTrailingComma);\n      }\n      if (!result) {\n        result = chooseOverload(candidates, assignableRelation, isSingleNonGenericCandidate, signatureHelpTrailingComma);\n      }\n      if (result) {\n        return result;\n      }\n      result = getCandidateForOverloadFailure(node, candidates, args, !!candidatesOutArray, checkMode);\n      getNodeLinks(node).resolvedSignature = result;\n      if (reportErrors2) {\n        if (candidatesForArgumentError) {\n          if (candidatesForArgumentError.length === 1 || candidatesForArgumentError.length > 3) {\n            const last2 = candidatesForArgumentError[candidatesForArgumentError.length - 1];\n            let chain;\n            if (candidatesForArgumentError.length > 3) {\n              chain = chainDiagnosticMessages(chain, Diagnostics.The_last_overload_gave_the_following_error);\n              chain = chainDiagnosticMessages(chain, Diagnostics.No_overload_matches_this_call);\n            }\n            if (headMessage) {\n              chain = chainDiagnosticMessages(chain, headMessage);\n            }\n            const diags = getSignatureApplicabilityError(node, args, last2, assignableRelation, 0, true, () => chain);\n            if (diags) {\n              for (const d of diags) {\n                if (last2.declaration && candidatesForArgumentError.length > 3) {\n                  addRelatedInfo(d, createDiagnosticForNode(last2.declaration, Diagnostics.The_last_overload_is_declared_here));\n                }\n                addImplementationSuccessElaboration(last2, d);\n                diagnostics.add(d);\n              }\n            } else {\n              Debug.fail(\"No error for last overload signature\");\n            }\n          } else {\n            const allDiagnostics = [];\n            let max = 0;\n            let min2 = Number.MAX_VALUE;\n            let minIndex = 0;\n            let i = 0;\n            for (const c of candidatesForArgumentError) {\n              const chain2 = () => chainDiagnosticMessages(void 0, Diagnostics.Overload_0_of_1_2_gave_the_following_error, i + 1, candidates.length, signatureToString(c));\n              const diags2 = getSignatureApplicabilityError(node, args, c, assignableRelation, 0, true, chain2);\n              if (diags2) {\n                if (diags2.length <= min2) {\n                  min2 = diags2.length;\n                  minIndex = i;\n                }\n                max = Math.max(max, diags2.length);\n                allDiagnostics.push(diags2);\n              } else {\n                Debug.fail(\"No error for 3 or fewer overload signatures\");\n              }\n              i++;\n            }\n            const diags = max > 1 ? allDiagnostics[minIndex] : flatten(allDiagnostics);\n            Debug.assert(diags.length > 0, \"No errors reported for 3 or fewer overload signatures\");\n            let chain = chainDiagnosticMessages(map(diags, createDiagnosticMessageChainFromDiagnostic), Diagnostics.No_overload_matches_this_call);\n            if (headMessage) {\n              chain = chainDiagnosticMessages(chain, headMessage);\n            }\n            const related = [...flatMap(diags, (d) => d.relatedInformation)];\n            let diag2;\n            if (every(diags, (d) => d.start === diags[0].start && d.length === diags[0].length && d.file === diags[0].file)) {\n              const { file, start, length: length2 } = diags[0];\n              diag2 = { file, start, length: length2, code: chain.code, category: chain.category, messageText: chain, relatedInformation: related };\n            } else {\n              diag2 = createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(node), node, chain, related);\n            }\n            addImplementationSuccessElaboration(candidatesForArgumentError[0], diag2);\n            diagnostics.add(diag2);\n          }\n        } else if (candidateForArgumentArityError) {\n          diagnostics.add(getArgumentArityError(node, [candidateForArgumentArityError], args, headMessage));\n        } else if (candidateForTypeArgumentError) {\n          checkTypeArguments(candidateForTypeArgumentError, node.typeArguments, true, headMessage);\n        } else {\n          const signaturesWithCorrectTypeArgumentArity = filter(signatures, (s) => hasCorrectTypeArgumentArity(s, typeArguments));\n          if (signaturesWithCorrectTypeArgumentArity.length === 0) {\n            diagnostics.add(getTypeArgumentArityError(node, signatures, typeArguments, headMessage));\n          } else {\n            diagnostics.add(getArgumentArityError(node, signaturesWithCorrectTypeArgumentArity, args, headMessage));\n          }\n        }\n      }\n      return result;\n      function addImplementationSuccessElaboration(failed, diagnostic) {\n        var _a2, _b;\n        const oldCandidatesForArgumentError = candidatesForArgumentError;\n        const oldCandidateForArgumentArityError = candidateForArgumentArityError;\n        const oldCandidateForTypeArgumentError = candidateForTypeArgumentError;\n        const failedSignatureDeclarations = ((_b = (_a2 = failed.declaration) == null ? void 0 : _a2.symbol) == null ? void 0 : _b.declarations) || emptyArray;\n        const isOverload = failedSignatureDeclarations.length > 1;\n        const implDecl = isOverload ? find(failedSignatureDeclarations, (d) => isFunctionLikeDeclaration(d) && nodeIsPresent(d.body)) : void 0;\n        if (implDecl) {\n          const candidate = getSignatureFromDeclaration(implDecl);\n          const isSingleNonGenericCandidate2 = !candidate.typeParameters;\n          if (chooseOverload([candidate], assignableRelation, isSingleNonGenericCandidate2)) {\n            addRelatedInfo(diagnostic, createDiagnosticForNode(implDecl, Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible));\n          }\n        }\n        candidatesForArgumentError = oldCandidatesForArgumentError;\n        candidateForArgumentArityError = oldCandidateForArgumentArityError;\n        candidateForTypeArgumentError = oldCandidateForTypeArgumentError;\n      }\n      function chooseOverload(candidates2, relation, isSingleNonGenericCandidate2, signatureHelpTrailingComma2 = false) {\n        candidatesForArgumentError = void 0;\n        candidateForArgumentArityError = void 0;\n        candidateForTypeArgumentError = void 0;\n        if (isSingleNonGenericCandidate2) {\n          const candidate = candidates2[0];\n          if (some(typeArguments) || !hasCorrectArity(node, args, candidate, signatureHelpTrailingComma2)) {\n            return void 0;\n          }\n          if (getSignatureApplicabilityError(node, args, candidate, relation, 0, false, void 0)) {\n            candidatesForArgumentError = [candidate];\n            return void 0;\n          }\n          return candidate;\n        }\n        for (let candidateIndex = 0; candidateIndex < candidates2.length; candidateIndex++) {\n          const candidate = candidates2[candidateIndex];\n          if (!hasCorrectTypeArgumentArity(candidate, typeArguments) || !hasCorrectArity(node, args, candidate, signatureHelpTrailingComma2)) {\n            continue;\n          }\n          let checkCandidate;\n          let inferenceContext;\n          if (candidate.typeParameters) {\n            let typeArgumentTypes;\n            if (some(typeArguments)) {\n              typeArgumentTypes = checkTypeArguments(candidate, typeArguments, false);\n              if (!typeArgumentTypes) {\n                candidateForTypeArgumentError = candidate;\n                continue;\n              }\n            } else {\n              inferenceContext = createInferenceContext(candidate.typeParameters, candidate, isInJSFile(node) ? 2 : 0);\n              typeArgumentTypes = inferTypeArguments(node, candidate, args, argCheckMode | 8, inferenceContext);\n              argCheckMode |= inferenceContext.flags & 4 ? 8 : 0;\n            }\n            checkCandidate = getSignatureInstantiation(candidate, typeArgumentTypes, isInJSFile(candidate.declaration), inferenceContext && inferenceContext.inferredTypeParameters);\n            if (getNonArrayRestType(candidate) && !hasCorrectArity(node, args, checkCandidate, signatureHelpTrailingComma2)) {\n              candidateForArgumentArityError = checkCandidate;\n              continue;\n            }\n          } else {\n            checkCandidate = candidate;\n          }\n          if (getSignatureApplicabilityError(node, args, checkCandidate, relation, argCheckMode, false, void 0)) {\n            (candidatesForArgumentError || (candidatesForArgumentError = [])).push(checkCandidate);\n            continue;\n          }\n          if (argCheckMode) {\n            argCheckMode = checkMode & 32;\n            if (inferenceContext) {\n              const typeArgumentTypes = inferTypeArguments(node, candidate, args, argCheckMode, inferenceContext);\n              checkCandidate = getSignatureInstantiation(candidate, typeArgumentTypes, isInJSFile(candidate.declaration), inferenceContext.inferredTypeParameters);\n              if (getNonArrayRestType(candidate) && !hasCorrectArity(node, args, checkCandidate, signatureHelpTrailingComma2)) {\n                candidateForArgumentArityError = checkCandidate;\n                continue;\n              }\n            }\n            if (getSignatureApplicabilityError(node, args, checkCandidate, relation, argCheckMode, false, void 0)) {\n              (candidatesForArgumentError || (candidatesForArgumentError = [])).push(checkCandidate);\n              continue;\n            }\n          }\n          candidates2[candidateIndex] = checkCandidate;\n          return checkCandidate;\n        }\n        return void 0;\n      }\n    }\n    function getCandidateForOverloadFailure(node, candidates, args, hasCandidatesOutArray, checkMode) {\n      Debug.assert(candidates.length > 0);\n      checkNodeDeferred(node);\n      return hasCandidatesOutArray || candidates.length === 1 || candidates.some((c) => !!c.typeParameters) ? pickLongestCandidateSignature(node, candidates, args, checkMode) : createUnionOfSignaturesForOverloadFailure(candidates);\n    }\n    function createUnionOfSignaturesForOverloadFailure(candidates) {\n      const thisParameters = mapDefined(candidates, (c) => c.thisParameter);\n      let thisParameter;\n      if (thisParameters.length) {\n        thisParameter = createCombinedSymbolFromTypes(thisParameters, thisParameters.map(getTypeOfParameter));\n      }\n      const { min: minArgumentCount, max: maxNonRestParam } = minAndMax(candidates, getNumNonRestParameters);\n      const parameters = [];\n      for (let i = 0; i < maxNonRestParam; i++) {\n        const symbols = mapDefined(candidates, (s) => signatureHasRestParameter(s) ? i < s.parameters.length - 1 ? s.parameters[i] : last(s.parameters) : i < s.parameters.length ? s.parameters[i] : void 0);\n        Debug.assert(symbols.length !== 0);\n        parameters.push(createCombinedSymbolFromTypes(symbols, mapDefined(candidates, (candidate) => tryGetTypeAtPosition(candidate, i))));\n      }\n      const restParameterSymbols = mapDefined(candidates, (c) => signatureHasRestParameter(c) ? last(c.parameters) : void 0);\n      let flags = 0;\n      if (restParameterSymbols.length !== 0) {\n        const type = createArrayType(getUnionType(mapDefined(candidates, tryGetRestTypeOfSignature), 2));\n        parameters.push(createCombinedSymbolForOverloadFailure(restParameterSymbols, type));\n        flags |= 1;\n      }\n      if (candidates.some(signatureHasLiteralTypes)) {\n        flags |= 2;\n      }\n      return createSignature(candidates[0].declaration, void 0, thisParameter, parameters, getIntersectionType(candidates.map(getReturnTypeOfSignature)), void 0, minArgumentCount, flags);\n    }\n    function getNumNonRestParameters(signature) {\n      const numParams = signature.parameters.length;\n      return signatureHasRestParameter(signature) ? numParams - 1 : numParams;\n    }\n    function createCombinedSymbolFromTypes(sources, types) {\n      return createCombinedSymbolForOverloadFailure(sources, getUnionType(types, 2));\n    }\n    function createCombinedSymbolForOverloadFailure(sources, type) {\n      return createSymbolWithType(first(sources), type);\n    }\n    function pickLongestCandidateSignature(node, candidates, args, checkMode) {\n      const bestIndex = getLongestCandidateIndex(candidates, apparentArgumentCount === void 0 ? args.length : apparentArgumentCount);\n      const candidate = candidates[bestIndex];\n      const { typeParameters } = candidate;\n      if (!typeParameters) {\n        return candidate;\n      }\n      const typeArgumentNodes = callLikeExpressionMayHaveTypeArguments(node) ? node.typeArguments : void 0;\n      const instantiated = typeArgumentNodes ? createSignatureInstantiation(candidate, getTypeArgumentsFromNodes(typeArgumentNodes, typeParameters, isInJSFile(node))) : inferSignatureInstantiationForOverloadFailure(node, typeParameters, candidate, args, checkMode);\n      candidates[bestIndex] = instantiated;\n      return instantiated;\n    }\n    function getTypeArgumentsFromNodes(typeArgumentNodes, typeParameters, isJs) {\n      const typeArguments = typeArgumentNodes.map(getTypeOfNode);\n      while (typeArguments.length > typeParameters.length) {\n        typeArguments.pop();\n      }\n      while (typeArguments.length < typeParameters.length) {\n        typeArguments.push(getDefaultFromTypeParameter(typeParameters[typeArguments.length]) || getConstraintOfTypeParameter(typeParameters[typeArguments.length]) || getDefaultTypeArgumentType(isJs));\n      }\n      return typeArguments;\n    }\n    function inferSignatureInstantiationForOverloadFailure(node, typeParameters, candidate, args, checkMode) {\n      const inferenceContext = createInferenceContext(typeParameters, candidate, isInJSFile(node) ? 2 : 0);\n      const typeArgumentTypes = inferTypeArguments(node, candidate, args, checkMode | 4 | 8, inferenceContext);\n      return createSignatureInstantiation(candidate, typeArgumentTypes);\n    }\n    function getLongestCandidateIndex(candidates, argsCount) {\n      let maxParamsIndex = -1;\n      let maxParams = -1;\n      for (let i = 0; i < candidates.length; i++) {\n        const candidate = candidates[i];\n        const paramCount = getParameterCount(candidate);\n        if (hasEffectiveRestParameter(candidate) || paramCount >= argsCount) {\n          return i;\n        }\n        if (paramCount > maxParams) {\n          maxParams = paramCount;\n          maxParamsIndex = i;\n        }\n      }\n      return maxParamsIndex;\n    }\n    function resolveCallExpression(node, candidatesOutArray, checkMode) {\n      if (node.expression.kind === 106) {\n        const superType = checkSuperExpression(node.expression);\n        if (isTypeAny(superType)) {\n          for (const arg of node.arguments) {\n            checkExpression(arg);\n          }\n          return anySignature;\n        }\n        if (!isErrorType(superType)) {\n          const baseTypeNode = getEffectiveBaseTypeNode(getContainingClass(node));\n          if (baseTypeNode) {\n            const baseConstructors = getInstantiatedConstructorsForTypeArguments(superType, baseTypeNode.typeArguments, baseTypeNode);\n            return resolveCall(node, baseConstructors, candidatesOutArray, checkMode, 0);\n          }\n        }\n        return resolveUntypedCall(node);\n      }\n      let callChainFlags;\n      let funcType = checkExpression(node.expression);\n      if (isCallChain(node)) {\n        const nonOptionalType = getOptionalExpressionType(funcType, node.expression);\n        callChainFlags = nonOptionalType === funcType ? 0 : isOutermostOptionalChain(node) ? 16 : 8;\n        funcType = nonOptionalType;\n      } else {\n        callChainFlags = 0;\n      }\n      funcType = checkNonNullTypeWithReporter(funcType, node.expression, reportCannotInvokePossiblyNullOrUndefinedError);\n      if (funcType === silentNeverType) {\n        return silentNeverSignature;\n      }\n      const apparentType = getApparentType(funcType);\n      if (isErrorType(apparentType)) {\n        return resolveErrorCall(node);\n      }\n      const callSignatures = getSignaturesOfType(apparentType, 0);\n      const numConstructSignatures = getSignaturesOfType(apparentType, 1).length;\n      if (isUntypedFunctionCall(funcType, apparentType, callSignatures.length, numConstructSignatures)) {\n        if (!isErrorType(funcType) && node.typeArguments) {\n          error(node, Diagnostics.Untyped_function_calls_may_not_accept_type_arguments);\n        }\n        return resolveUntypedCall(node);\n      }\n      if (!callSignatures.length) {\n        if (numConstructSignatures) {\n          error(node, Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new, typeToString(funcType));\n        } else {\n          let relatedInformation;\n          if (node.arguments.length === 1) {\n            const text = getSourceFileOfNode(node).text;\n            if (isLineBreak(text.charCodeAt(skipTrivia(text, node.expression.end, true) - 1))) {\n              relatedInformation = createDiagnosticForNode(node.expression, Diagnostics.Are_you_missing_a_semicolon);\n            }\n          }\n          invocationError(node.expression, apparentType, 0, relatedInformation);\n        }\n        return resolveErrorCall(node);\n      }\n      if (checkMode & 8 && !node.typeArguments && callSignatures.some(isGenericFunctionReturningFunction)) {\n        skippedGenericFunction(node, checkMode);\n        return resolvingSignature;\n      }\n      if (callSignatures.some((sig) => isInJSFile(sig.declaration) && !!getJSDocClassTag(sig.declaration))) {\n        error(node, Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new, typeToString(funcType));\n        return resolveErrorCall(node);\n      }\n      return resolveCall(node, callSignatures, candidatesOutArray, checkMode, callChainFlags);\n    }\n    function isGenericFunctionReturningFunction(signature) {\n      return !!(signature.typeParameters && isFunctionType(getReturnTypeOfSignature(signature)));\n    }\n    function isUntypedFunctionCall(funcType, apparentFuncType, numCallSignatures, numConstructSignatures) {\n      return isTypeAny(funcType) || isTypeAny(apparentFuncType) && !!(funcType.flags & 262144) || !numCallSignatures && !numConstructSignatures && !(apparentFuncType.flags & 1048576) && !(getReducedType(apparentFuncType).flags & 131072) && isTypeAssignableTo(funcType, globalFunctionType);\n    }\n    function resolveNewExpression(node, candidatesOutArray, checkMode) {\n      if (node.arguments && languageVersion < 1) {\n        const spreadIndex = getSpreadArgumentIndex(node.arguments);\n        if (spreadIndex >= 0) {\n          error(node.arguments[spreadIndex], Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher);\n        }\n      }\n      let expressionType = checkNonNullExpression(node.expression);\n      if (expressionType === silentNeverType) {\n        return silentNeverSignature;\n      }\n      expressionType = getApparentType(expressionType);\n      if (isErrorType(expressionType)) {\n        return resolveErrorCall(node);\n      }\n      if (isTypeAny(expressionType)) {\n        if (node.typeArguments) {\n          error(node, Diagnostics.Untyped_function_calls_may_not_accept_type_arguments);\n        }\n        return resolveUntypedCall(node);\n      }\n      const constructSignatures = getSignaturesOfType(expressionType, 1);\n      if (constructSignatures.length) {\n        if (!isConstructorAccessible(node, constructSignatures[0])) {\n          return resolveErrorCall(node);\n        }\n        if (someSignature(constructSignatures, (signature) => !!(signature.flags & 4))) {\n          error(node, Diagnostics.Cannot_create_an_instance_of_an_abstract_class);\n          return resolveErrorCall(node);\n        }\n        const valueDecl = expressionType.symbol && getClassLikeDeclarationOfSymbol(expressionType.symbol);\n        if (valueDecl && hasSyntacticModifier(valueDecl, 256)) {\n          error(node, Diagnostics.Cannot_create_an_instance_of_an_abstract_class);\n          return resolveErrorCall(node);\n        }\n        return resolveCall(node, constructSignatures, candidatesOutArray, checkMode, 0);\n      }\n      const callSignatures = getSignaturesOfType(expressionType, 0);\n      if (callSignatures.length) {\n        const signature = resolveCall(node, callSignatures, candidatesOutArray, checkMode, 0);\n        if (!noImplicitAny) {\n          if (signature.declaration && !isJSConstructor(signature.declaration) && getReturnTypeOfSignature(signature) !== voidType) {\n            error(node, Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword);\n          }\n          if (getThisTypeOfSignature(signature) === voidType) {\n            error(node, Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void);\n          }\n        }\n        return signature;\n      }\n      invocationError(node.expression, expressionType, 1);\n      return resolveErrorCall(node);\n    }\n    function someSignature(signatures, f) {\n      if (isArray(signatures)) {\n        return some(signatures, (signature) => someSignature(signature, f));\n      }\n      return signatures.compositeKind === 1048576 ? some(signatures.compositeSignatures, f) : f(signatures);\n    }\n    function typeHasProtectedAccessibleBase(target, type) {\n      const baseTypes = getBaseTypes(type);\n      if (!length(baseTypes)) {\n        return false;\n      }\n      const firstBase = baseTypes[0];\n      if (firstBase.flags & 2097152) {\n        const types = firstBase.types;\n        const mixinFlags = findMixins(types);\n        let i = 0;\n        for (const intersectionMember of firstBase.types) {\n          if (!mixinFlags[i]) {\n            if (getObjectFlags(intersectionMember) & (1 | 2)) {\n              if (intersectionMember.symbol === target) {\n                return true;\n              }\n              if (typeHasProtectedAccessibleBase(target, intersectionMember)) {\n                return true;\n              }\n            }\n          }\n          i++;\n        }\n        return false;\n      }\n      if (firstBase.symbol === target) {\n        return true;\n      }\n      return typeHasProtectedAccessibleBase(target, firstBase);\n    }\n    function isConstructorAccessible(node, signature) {\n      if (!signature || !signature.declaration) {\n        return true;\n      }\n      const declaration = signature.declaration;\n      const modifiers = getSelectedEffectiveModifierFlags(declaration, 24);\n      if (!modifiers || declaration.kind !== 173) {\n        return true;\n      }\n      const declaringClassDeclaration = getClassLikeDeclarationOfSymbol(declaration.parent.symbol);\n      const declaringClass = getDeclaredTypeOfSymbol(declaration.parent.symbol);\n      if (!isNodeWithinClass(node, declaringClassDeclaration)) {\n        const containingClass = getContainingClass(node);\n        if (containingClass && modifiers & 16) {\n          const containingType = getTypeOfNode(containingClass);\n          if (typeHasProtectedAccessibleBase(declaration.parent.symbol, containingType)) {\n            return true;\n          }\n        }\n        if (modifiers & 8) {\n          error(node, Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration, typeToString(declaringClass));\n        }\n        if (modifiers & 16) {\n          error(node, Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration, typeToString(declaringClass));\n        }\n        return false;\n      }\n      return true;\n    }\n    function invocationErrorDetails(errorTarget, apparentType, kind) {\n      let errorInfo;\n      const isCall = kind === 0;\n      const awaitedType = getAwaitedType(apparentType);\n      const maybeMissingAwait = awaitedType && getSignaturesOfType(awaitedType, kind).length > 0;\n      if (apparentType.flags & 1048576) {\n        const types = apparentType.types;\n        let hasSignatures = false;\n        for (const constituent of types) {\n          const signatures = getSignaturesOfType(constituent, kind);\n          if (signatures.length !== 0) {\n            hasSignatures = true;\n            if (errorInfo) {\n              break;\n            }\n          } else {\n            if (!errorInfo) {\n              errorInfo = chainDiagnosticMessages(errorInfo, isCall ? Diagnostics.Type_0_has_no_call_signatures : Diagnostics.Type_0_has_no_construct_signatures, typeToString(constituent));\n              errorInfo = chainDiagnosticMessages(errorInfo, isCall ? Diagnostics.Not_all_constituents_of_type_0_are_callable : Diagnostics.Not_all_constituents_of_type_0_are_constructable, typeToString(apparentType));\n            }\n            if (hasSignatures) {\n              break;\n            }\n          }\n        }\n        if (!hasSignatures) {\n          errorInfo = chainDiagnosticMessages(void 0, isCall ? Diagnostics.No_constituent_of_type_0_is_callable : Diagnostics.No_constituent_of_type_0_is_constructable, typeToString(apparentType));\n        }\n        if (!errorInfo) {\n          errorInfo = chainDiagnosticMessages(errorInfo, isCall ? Diagnostics.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other : Diagnostics.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other, typeToString(apparentType));\n        }\n      } else {\n        errorInfo = chainDiagnosticMessages(errorInfo, isCall ? Diagnostics.Type_0_has_no_call_signatures : Diagnostics.Type_0_has_no_construct_signatures, typeToString(apparentType));\n      }\n      let headMessage = isCall ? Diagnostics.This_expression_is_not_callable : Diagnostics.This_expression_is_not_constructable;\n      if (isCallExpression(errorTarget.parent) && errorTarget.parent.arguments.length === 0) {\n        const { resolvedSymbol } = getNodeLinks(errorTarget);\n        if (resolvedSymbol && resolvedSymbol.flags & 32768) {\n          headMessage = Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without;\n        }\n      }\n      return {\n        messageChain: chainDiagnosticMessages(errorInfo, headMessage),\n        relatedMessage: maybeMissingAwait ? Diagnostics.Did_you_forget_to_use_await : void 0\n      };\n    }\n    function invocationError(errorTarget, apparentType, kind, relatedInformation) {\n      const { messageChain, relatedMessage: relatedInfo } = invocationErrorDetails(errorTarget, apparentType, kind);\n      const diagnostic = createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(errorTarget), errorTarget, messageChain);\n      if (relatedInfo) {\n        addRelatedInfo(diagnostic, createDiagnosticForNode(errorTarget, relatedInfo));\n      }\n      if (isCallExpression(errorTarget.parent)) {\n        const { start, length: length2 } = getDiagnosticSpanForCallNode(errorTarget.parent, true);\n        diagnostic.start = start;\n        diagnostic.length = length2;\n      }\n      diagnostics.add(diagnostic);\n      invocationErrorRecovery(apparentType, kind, relatedInformation ? addRelatedInfo(diagnostic, relatedInformation) : diagnostic);\n    }\n    function invocationErrorRecovery(apparentType, kind, diagnostic) {\n      if (!apparentType.symbol) {\n        return;\n      }\n      const importNode = getSymbolLinks(apparentType.symbol).originatingImport;\n      if (importNode && !isImportCall(importNode)) {\n        const sigs = getSignaturesOfType(getTypeOfSymbol(getSymbolLinks(apparentType.symbol).target), kind);\n        if (!sigs || !sigs.length)\n          return;\n        addRelatedInfo(diagnostic, createDiagnosticForNode(importNode, Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead));\n      }\n    }\n    function resolveTaggedTemplateExpression(node, candidatesOutArray, checkMode) {\n      const tagType = checkExpression(node.tag);\n      const apparentType = getApparentType(tagType);\n      if (isErrorType(apparentType)) {\n        return resolveErrorCall(node);\n      }\n      const callSignatures = getSignaturesOfType(apparentType, 0);\n      const numConstructSignatures = getSignaturesOfType(apparentType, 1).length;\n      if (isUntypedFunctionCall(tagType, apparentType, callSignatures.length, numConstructSignatures)) {\n        return resolveUntypedCall(node);\n      }\n      if (!callSignatures.length) {\n        if (isArrayLiteralExpression(node.parent)) {\n          const diagnostic = createDiagnosticForNode(node.tag, Diagnostics.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);\n          diagnostics.add(diagnostic);\n          return resolveErrorCall(node);\n        }\n        invocationError(node.tag, apparentType, 0);\n        return resolveErrorCall(node);\n      }\n      return resolveCall(node, callSignatures, candidatesOutArray, checkMode, 0);\n    }\n    function getDiagnosticHeadMessageForDecoratorResolution(node) {\n      switch (node.parent.kind) {\n        case 260:\n        case 228:\n          return Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;\n        case 166:\n          return Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;\n        case 169:\n          return Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;\n        case 171:\n        case 174:\n        case 175:\n          return Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;\n        default:\n          return Debug.fail();\n      }\n    }\n    function resolveDecorator(node, candidatesOutArray, checkMode) {\n      const funcType = checkExpression(node.expression);\n      const apparentType = getApparentType(funcType);\n      if (isErrorType(apparentType)) {\n        return resolveErrorCall(node);\n      }\n      const callSignatures = getSignaturesOfType(apparentType, 0);\n      const numConstructSignatures = getSignaturesOfType(apparentType, 1).length;\n      if (isUntypedFunctionCall(funcType, apparentType, callSignatures.length, numConstructSignatures)) {\n        return resolveUntypedCall(node);\n      }\n      if (isPotentiallyUncalledDecorator(node, callSignatures) && !isParenthesizedExpression(node.expression)) {\n        const nodeStr = getTextOfNode(node.expression, false);\n        error(node, Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0, nodeStr);\n        return resolveErrorCall(node);\n      }\n      const headMessage = getDiagnosticHeadMessageForDecoratorResolution(node);\n      if (!callSignatures.length) {\n        const errorDetails = invocationErrorDetails(node.expression, apparentType, 0);\n        const messageChain = chainDiagnosticMessages(errorDetails.messageChain, headMessage);\n        const diag2 = createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(node.expression), node.expression, messageChain);\n        if (errorDetails.relatedMessage) {\n          addRelatedInfo(diag2, createDiagnosticForNode(node.expression, errorDetails.relatedMessage));\n        }\n        diagnostics.add(diag2);\n        invocationErrorRecovery(apparentType, 0, diag2);\n        return resolveErrorCall(node);\n      }\n      return resolveCall(node, callSignatures, candidatesOutArray, checkMode, 0, headMessage);\n    }\n    function createSignatureForJSXIntrinsic(node, result) {\n      const namespace = getJsxNamespaceAt(node);\n      const exports = namespace && getExportsOfSymbol(namespace);\n      const typeSymbol = exports && getSymbol2(exports, JsxNames.Element, 788968);\n      const returnNode = typeSymbol && nodeBuilder.symbolToEntityName(typeSymbol, 788968, node);\n      const declaration = factory.createFunctionTypeNode(void 0, [factory.createParameterDeclaration(void 0, void 0, \"props\", void 0, nodeBuilder.typeToTypeNode(result, node))], returnNode ? factory.createTypeReferenceNode(returnNode, void 0) : factory.createKeywordTypeNode(131));\n      const parameterSymbol = createSymbol(1, \"props\");\n      parameterSymbol.links.type = result;\n      return createSignature(declaration, void 0, void 0, [parameterSymbol], typeSymbol ? getDeclaredTypeOfSymbol(typeSymbol) : errorType, void 0, 1, 0);\n    }\n    function resolveJsxOpeningLikeElement(node, candidatesOutArray, checkMode) {\n      if (isJsxIntrinsicIdentifier(node.tagName)) {\n        const result = getIntrinsicAttributesTypeFromJsxOpeningLikeElement(node);\n        const fakeSignature = createSignatureForJSXIntrinsic(node, result);\n        checkTypeAssignableToAndOptionallyElaborate(checkExpressionWithContextualType(node.attributes, getEffectiveFirstArgumentForJsxSignature(fakeSignature, node), void 0, 0), result, node.tagName, node.attributes);\n        if (length(node.typeArguments)) {\n          forEach(node.typeArguments, checkSourceElement);\n          diagnostics.add(createDiagnosticForNodeArray(getSourceFileOfNode(node), node.typeArguments, Diagnostics.Expected_0_type_arguments_but_got_1, 0, length(node.typeArguments)));\n        }\n        return fakeSignature;\n      }\n      const exprTypes = checkExpression(node.tagName);\n      const apparentType = getApparentType(exprTypes);\n      if (isErrorType(apparentType)) {\n        return resolveErrorCall(node);\n      }\n      const signatures = getUninstantiatedJsxSignaturesOfType(exprTypes, node);\n      if (isUntypedFunctionCall(exprTypes, apparentType, signatures.length, 0)) {\n        return resolveUntypedCall(node);\n      }\n      if (signatures.length === 0) {\n        error(node.tagName, Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures, getTextOfNode(node.tagName));\n        return resolveErrorCall(node);\n      }\n      return resolveCall(node, signatures, candidatesOutArray, checkMode, 0);\n    }\n    function isPotentiallyUncalledDecorator(decorator, signatures) {\n      return signatures.length && every(signatures, (signature) => signature.minArgumentCount === 0 && !signatureHasRestParameter(signature) && signature.parameters.length < getDecoratorArgumentCount(decorator, signature));\n    }\n    function resolveSignature(node, candidatesOutArray, checkMode) {\n      switch (node.kind) {\n        case 210:\n          return resolveCallExpression(node, candidatesOutArray, checkMode);\n        case 211:\n          return resolveNewExpression(node, candidatesOutArray, checkMode);\n        case 212:\n          return resolveTaggedTemplateExpression(node, candidatesOutArray, checkMode);\n        case 167:\n          return resolveDecorator(node, candidatesOutArray, checkMode);\n        case 283:\n        case 282:\n          return resolveJsxOpeningLikeElement(node, candidatesOutArray, checkMode);\n      }\n      throw Debug.assertNever(node, \"Branch in 'resolveSignature' should be unreachable.\");\n    }\n    function getResolvedSignature(node, candidatesOutArray, checkMode) {\n      const links = getNodeLinks(node);\n      const cached = links.resolvedSignature;\n      if (cached && cached !== resolvingSignature && !candidatesOutArray) {\n        return cached;\n      }\n      links.resolvedSignature = resolvingSignature;\n      const result = resolveSignature(node, candidatesOutArray, checkMode || 0);\n      if (result !== resolvingSignature) {\n        links.resolvedSignature = flowLoopStart === flowLoopCount ? result : cached;\n      }\n      return result;\n    }\n    function isJSConstructor(node) {\n      var _a2;\n      if (!node || !isInJSFile(node)) {\n        return false;\n      }\n      const func = isFunctionDeclaration(node) || isFunctionExpression(node) ? node : (isVariableDeclaration(node) || isPropertyAssignment(node)) && node.initializer && isFunctionExpression(node.initializer) ? node.initializer : void 0;\n      if (func) {\n        if (getJSDocClassTag(node))\n          return true;\n        if (isPropertyAssignment(walkUpParenthesizedExpressions(func.parent)))\n          return false;\n        const symbol = getSymbolOfDeclaration(func);\n        return !!((_a2 = symbol == null ? void 0 : symbol.members) == null ? void 0 : _a2.size);\n      }\n      return false;\n    }\n    function mergeJSSymbols(target, source) {\n      var _a2, _b;\n      if (source) {\n        const links = getSymbolLinks(source);\n        if (!links.inferredClassSymbol || !links.inferredClassSymbol.has(getSymbolId(target))) {\n          const inferred = isTransientSymbol(target) ? target : cloneSymbol(target);\n          inferred.exports = inferred.exports || createSymbolTable();\n          inferred.members = inferred.members || createSymbolTable();\n          inferred.flags |= source.flags & 32;\n          if ((_a2 = source.exports) == null ? void 0 : _a2.size) {\n            mergeSymbolTable(inferred.exports, source.exports);\n          }\n          if ((_b = source.members) == null ? void 0 : _b.size) {\n            mergeSymbolTable(inferred.members, source.members);\n          }\n          (links.inferredClassSymbol || (links.inferredClassSymbol = /* @__PURE__ */ new Map())).set(getSymbolId(inferred), inferred);\n          return inferred;\n        }\n        return links.inferredClassSymbol.get(getSymbolId(target));\n      }\n    }\n    function getAssignedClassSymbol(decl) {\n      var _a2;\n      const assignmentSymbol = decl && getSymbolOfExpando(decl, true);\n      const prototype = (_a2 = assignmentSymbol == null ? void 0 : assignmentSymbol.exports) == null ? void 0 : _a2.get(\"prototype\");\n      const init = (prototype == null ? void 0 : prototype.valueDeclaration) && getAssignedJSPrototype(prototype.valueDeclaration);\n      return init ? getSymbolOfDeclaration(init) : void 0;\n    }\n    function getSymbolOfExpando(node, allowDeclaration) {\n      if (!node.parent) {\n        return void 0;\n      }\n      let name;\n      let decl;\n      if (isVariableDeclaration(node.parent) && node.parent.initializer === node) {\n        if (!isInJSFile(node) && !(isVarConst(node.parent) && isFunctionLikeDeclaration(node))) {\n          return void 0;\n        }\n        name = node.parent.name;\n        decl = node.parent;\n      } else if (isBinaryExpression(node.parent)) {\n        const parentNode = node.parent;\n        const parentNodeOperator = node.parent.operatorToken.kind;\n        if (parentNodeOperator === 63 && (allowDeclaration || parentNode.right === node)) {\n          name = parentNode.left;\n          decl = name;\n        } else if (parentNodeOperator === 56 || parentNodeOperator === 60) {\n          if (isVariableDeclaration(parentNode.parent) && parentNode.parent.initializer === parentNode) {\n            name = parentNode.parent.name;\n            decl = parentNode.parent;\n          } else if (isBinaryExpression(parentNode.parent) && parentNode.parent.operatorToken.kind === 63 && (allowDeclaration || parentNode.parent.right === parentNode)) {\n            name = parentNode.parent.left;\n            decl = name;\n          }\n          if (!name || !isBindableStaticNameExpression(name) || !isSameEntityName(name, parentNode.left)) {\n            return void 0;\n          }\n        }\n      } else if (allowDeclaration && isFunctionDeclaration(node)) {\n        name = node.name;\n        decl = node;\n      }\n      if (!decl || !name || !allowDeclaration && !getExpandoInitializer(node, isPrototypeAccess(name))) {\n        return void 0;\n      }\n      return getSymbolOfNode(decl);\n    }\n    function getAssignedJSPrototype(node) {\n      if (!node.parent) {\n        return false;\n      }\n      let parent2 = node.parent;\n      while (parent2 && parent2.kind === 208) {\n        parent2 = parent2.parent;\n      }\n      if (parent2 && isBinaryExpression(parent2) && isPrototypeAccess(parent2.left) && parent2.operatorToken.kind === 63) {\n        const right = getInitializerOfBinaryExpression(parent2);\n        return isObjectLiteralExpression(right) && right;\n      }\n    }\n    function checkCallExpression(node, checkMode) {\n      var _a2, _b, _c;\n      checkGrammarTypeArguments(node, node.typeArguments);\n      const signature = getResolvedSignature(node, void 0, checkMode);\n      if (signature === resolvingSignature) {\n        return silentNeverType;\n      }\n      checkDeprecatedSignature(signature, node);\n      if (node.expression.kind === 106) {\n        return voidType;\n      }\n      if (node.kind === 211) {\n        const declaration = signature.declaration;\n        if (declaration && declaration.kind !== 173 && declaration.kind !== 177 && declaration.kind !== 182 && !(isJSDocSignature(declaration) && ((_b = (_a2 = getJSDocRoot(declaration)) == null ? void 0 : _a2.parent) == null ? void 0 : _b.kind) === 173) && !isJSDocConstructSignature(declaration) && !isJSConstructor(declaration)) {\n          if (noImplicitAny) {\n            error(node, Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type);\n          }\n          return anyType;\n        }\n      }\n      if (isInJSFile(node) && getEmitModuleResolutionKind(compilerOptions) !== 100 && isCommonJsRequire(node)) {\n        return resolveExternalModuleTypeByLiteral(node.arguments[0]);\n      }\n      const returnType = getReturnTypeOfSignature(signature);\n      if (returnType.flags & 12288 && isSymbolOrSymbolForCall(node)) {\n        return getESSymbolLikeTypeForNode(walkUpParenthesizedExpressions(node.parent));\n      }\n      if (node.kind === 210 && !node.questionDotToken && node.parent.kind === 241 && returnType.flags & 16384 && getTypePredicateOfSignature(signature)) {\n        if (!isDottedName(node.expression)) {\n          error(node.expression, Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);\n        } else if (!getEffectsSignature(node)) {\n          const diagnostic = error(node.expression, Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);\n          getTypeOfDottedName(node.expression, diagnostic);\n        }\n      }\n      if (isInJSFile(node)) {\n        const jsSymbol = getSymbolOfExpando(node, false);\n        if ((_c = jsSymbol == null ? void 0 : jsSymbol.exports) == null ? void 0 : _c.size) {\n          const jsAssignmentType = createAnonymousType(jsSymbol, jsSymbol.exports, emptyArray, emptyArray, emptyArray);\n          jsAssignmentType.objectFlags |= 4096;\n          return getIntersectionType([returnType, jsAssignmentType]);\n        }\n      }\n      return returnType;\n    }\n    function checkDeprecatedSignature(signature, node) {\n      if (signature.declaration && signature.declaration.flags & 268435456) {\n        const suggestionNode = getDeprecatedSuggestionNode(node);\n        const name = tryGetPropertyAccessOrIdentifierToString(getInvokedExpression(node));\n        addDeprecatedSuggestionWithSignature(suggestionNode, signature.declaration, name, signatureToString(signature));\n      }\n    }\n    function getDeprecatedSuggestionNode(node) {\n      node = skipParentheses(node);\n      switch (node.kind) {\n        case 210:\n        case 167:\n        case 211:\n          return getDeprecatedSuggestionNode(node.expression);\n        case 212:\n          return getDeprecatedSuggestionNode(node.tag);\n        case 283:\n        case 282:\n          return getDeprecatedSuggestionNode(node.tagName);\n        case 209:\n          return node.argumentExpression;\n        case 208:\n          return node.name;\n        case 180:\n          const typeReference = node;\n          return isQualifiedName(typeReference.typeName) ? typeReference.typeName.right : typeReference;\n        default:\n          return node;\n      }\n    }\n    function isSymbolOrSymbolForCall(node) {\n      if (!isCallExpression(node))\n        return false;\n      let left = node.expression;\n      if (isPropertyAccessExpression(left) && left.name.escapedText === \"for\") {\n        left = left.expression;\n      }\n      if (!isIdentifier(left) || left.escapedText !== \"Symbol\") {\n        return false;\n      }\n      const globalESSymbol = getGlobalESSymbolConstructorSymbol(false);\n      if (!globalESSymbol) {\n        return false;\n      }\n      return globalESSymbol === resolveName(left, \"Symbol\", 111551, void 0, void 0, false);\n    }\n    function checkImportCallExpression(node) {\n      checkGrammarImportCallExpression(node);\n      if (node.arguments.length === 0) {\n        return createPromiseReturnType(node, anyType);\n      }\n      const specifier = node.arguments[0];\n      const specifierType = checkExpressionCached(specifier);\n      const optionsType = node.arguments.length > 1 ? checkExpressionCached(node.arguments[1]) : void 0;\n      for (let i = 2; i < node.arguments.length; ++i) {\n        checkExpressionCached(node.arguments[i]);\n      }\n      if (specifierType.flags & 32768 || specifierType.flags & 65536 || !isTypeAssignableTo(specifierType, stringType)) {\n        error(specifier, Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0, typeToString(specifierType));\n      }\n      if (optionsType) {\n        const importCallOptionsType = getGlobalImportCallOptionsType(true);\n        if (importCallOptionsType !== emptyObjectType) {\n          checkTypeAssignableTo(optionsType, getNullableType(importCallOptionsType, 32768), node.arguments[1]);\n        }\n      }\n      const moduleSymbol = resolveExternalModuleName(node, specifier);\n      if (moduleSymbol) {\n        const esModuleSymbol = resolveESModuleSymbol(moduleSymbol, specifier, true, false);\n        if (esModuleSymbol) {\n          return createPromiseReturnType(node, getTypeWithSyntheticDefaultOnly(getTypeOfSymbol(esModuleSymbol), esModuleSymbol, moduleSymbol, specifier) || getTypeWithSyntheticDefaultImportType(getTypeOfSymbol(esModuleSymbol), esModuleSymbol, moduleSymbol, specifier));\n        }\n      }\n      return createPromiseReturnType(node, anyType);\n    }\n    function createDefaultPropertyWrapperForModule(symbol, originalSymbol, anonymousSymbol) {\n      const memberTable = createSymbolTable();\n      const newSymbol = createSymbol(2097152, \"default\");\n      newSymbol.parent = originalSymbol;\n      newSymbol.links.nameType = getStringLiteralType(\"default\");\n      newSymbol.links.aliasTarget = resolveSymbol(symbol);\n      memberTable.set(\"default\", newSymbol);\n      return createAnonymousType(anonymousSymbol, memberTable, emptyArray, emptyArray, emptyArray);\n    }\n    function getTypeWithSyntheticDefaultOnly(type, symbol, originalSymbol, moduleSpecifier) {\n      const hasDefaultOnly = isOnlyImportedAsDefault(moduleSpecifier);\n      if (hasDefaultOnly && type && !isErrorType(type)) {\n        const synthType = type;\n        if (!synthType.defaultOnlyType) {\n          const type2 = createDefaultPropertyWrapperForModule(symbol, originalSymbol);\n          synthType.defaultOnlyType = type2;\n        }\n        return synthType.defaultOnlyType;\n      }\n      return void 0;\n    }\n    function getTypeWithSyntheticDefaultImportType(type, symbol, originalSymbol, moduleSpecifier) {\n      var _a2;\n      if (allowSyntheticDefaultImports && type && !isErrorType(type)) {\n        const synthType = type;\n        if (!synthType.syntheticType) {\n          const file = (_a2 = originalSymbol.declarations) == null ? void 0 : _a2.find(isSourceFile);\n          const hasSyntheticDefault = canHaveSyntheticDefault(file, originalSymbol, false, moduleSpecifier);\n          if (hasSyntheticDefault) {\n            const anonymousSymbol = createSymbol(2048, \"__type\");\n            const defaultContainingObject = createDefaultPropertyWrapperForModule(symbol, originalSymbol, anonymousSymbol);\n            anonymousSymbol.links.type = defaultContainingObject;\n            synthType.syntheticType = isValidSpreadType(type) ? getSpreadType(type, defaultContainingObject, anonymousSymbol, 0, false) : defaultContainingObject;\n          } else {\n            synthType.syntheticType = type;\n          }\n        }\n        return synthType.syntheticType;\n      }\n      return type;\n    }\n    function isCommonJsRequire(node) {\n      if (!isRequireCall(node, true)) {\n        return false;\n      }\n      if (!isIdentifier(node.expression))\n        return Debug.fail();\n      const resolvedRequire = resolveName(node.expression, node.expression.escapedText, 111551, void 0, void 0, true);\n      if (resolvedRequire === requireSymbol) {\n        return true;\n      }\n      if (resolvedRequire.flags & 2097152) {\n        return false;\n      }\n      const targetDeclarationKind = resolvedRequire.flags & 16 ? 259 : resolvedRequire.flags & 3 ? 257 : 0;\n      if (targetDeclarationKind !== 0) {\n        const decl = getDeclarationOfKind(resolvedRequire, targetDeclarationKind);\n        return !!decl && !!(decl.flags & 16777216);\n      }\n      return false;\n    }\n    function checkTaggedTemplateExpression(node) {\n      if (!checkGrammarTaggedTemplateChain(node))\n        checkGrammarTypeArguments(node, node.typeArguments);\n      if (languageVersion < 2) {\n        checkExternalEmitHelpers(node, 262144);\n      }\n      const signature = getResolvedSignature(node);\n      checkDeprecatedSignature(signature, node);\n      return getReturnTypeOfSignature(signature);\n    }\n    function checkAssertion(node) {\n      if (node.kind === 213) {\n        const file = getSourceFileOfNode(node);\n        if (file && fileExtensionIsOneOf(file.fileName, [\".cts\", \".mts\"])) {\n          grammarErrorOnNode(node, Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead);\n        }\n      }\n      return checkAssertionWorker(node, node.type, node.expression);\n    }\n    function isValidConstAssertionArgument(node) {\n      switch (node.kind) {\n        case 10:\n        case 14:\n        case 8:\n        case 9:\n        case 110:\n        case 95:\n        case 206:\n        case 207:\n        case 225:\n          return true;\n        case 214:\n          return isValidConstAssertionArgument(node.expression);\n        case 221:\n          const op = node.operator;\n          const arg = node.operand;\n          return op === 40 && (arg.kind === 8 || arg.kind === 9) || op === 39 && arg.kind === 8;\n        case 208:\n        case 209:\n          const expr = skipParentheses(node.expression);\n          const symbol = isEntityNameExpression(expr) ? resolveEntityName(expr, 111551, true) : void 0;\n          return !!(symbol && symbol.flags & 384);\n      }\n      return false;\n    }\n    function checkAssertionWorker(errNode, type, expression, checkMode) {\n      let exprType = checkExpression(expression, checkMode);\n      if (isConstTypeReference(type)) {\n        if (!isValidConstAssertionArgument(expression)) {\n          error(expression, Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals);\n        }\n        return getRegularTypeOfLiteralType(exprType);\n      }\n      checkSourceElement(type);\n      exprType = getRegularTypeOfObjectLiteral(getBaseTypeOfLiteralType(exprType));\n      const targetType = getTypeFromTypeNode(type);\n      if (!isErrorType(targetType)) {\n        addLazyDiagnostic(() => {\n          const widenedType = getWidenedType(exprType);\n          if (!isTypeComparableTo(targetType, widenedType)) {\n            checkTypeComparableTo(exprType, targetType, errNode, Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first);\n          }\n        });\n      }\n      return targetType;\n    }\n    function checkNonNullChain(node) {\n      const leftType = checkExpression(node.expression);\n      const nonOptionalType = getOptionalExpressionType(leftType, node.expression);\n      return propagateOptionalTypeMarker(getNonNullableType(nonOptionalType), node, nonOptionalType !== leftType);\n    }\n    function checkNonNullAssertion(node) {\n      return node.flags & 32 ? checkNonNullChain(node) : getNonNullableType(checkExpression(node.expression));\n    }\n    function checkExpressionWithTypeArguments(node) {\n      checkGrammarExpressionWithTypeArguments(node);\n      forEach(node.typeArguments, checkSourceElement);\n      const exprType = node.kind === 230 ? checkExpression(node.expression) : isThisIdentifier(node.exprName) ? checkThisExpression(node.exprName) : checkExpression(node.exprName);\n      return getInstantiationExpressionType(exprType, node);\n    }\n    function getInstantiationExpressionType(exprType, node) {\n      const typeArguments = node.typeArguments;\n      if (exprType === silentNeverType || isErrorType(exprType) || !some(typeArguments)) {\n        return exprType;\n      }\n      let hasSomeApplicableSignature = false;\n      let nonApplicableType;\n      const result = getInstantiatedType(exprType);\n      const errorType2 = hasSomeApplicableSignature ? nonApplicableType : exprType;\n      if (errorType2) {\n        diagnostics.add(createDiagnosticForNodeArray(getSourceFileOfNode(node), typeArguments, Diagnostics.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable, typeToString(errorType2)));\n      }\n      return result;\n      function getInstantiatedType(type) {\n        let hasSignatures = false;\n        let hasApplicableSignature = false;\n        const result2 = getInstantiatedTypePart(type);\n        hasSomeApplicableSignature || (hasSomeApplicableSignature = hasApplicableSignature);\n        if (hasSignatures && !hasApplicableSignature) {\n          nonApplicableType != null ? nonApplicableType : nonApplicableType = type;\n        }\n        return result2;\n        function getInstantiatedTypePart(type2) {\n          if (type2.flags & 524288) {\n            const resolved = resolveStructuredTypeMembers(type2);\n            const callSignatures = getInstantiatedSignatures(resolved.callSignatures);\n            const constructSignatures = getInstantiatedSignatures(resolved.constructSignatures);\n            hasSignatures || (hasSignatures = resolved.callSignatures.length !== 0 || resolved.constructSignatures.length !== 0);\n            hasApplicableSignature || (hasApplicableSignature = callSignatures.length !== 0 || constructSignatures.length !== 0);\n            if (callSignatures !== resolved.callSignatures || constructSignatures !== resolved.constructSignatures) {\n              const result3 = createAnonymousType(void 0, resolved.members, callSignatures, constructSignatures, resolved.indexInfos);\n              result3.objectFlags |= 8388608;\n              result3.node = node;\n              return result3;\n            }\n          } else if (type2.flags & 58982400) {\n            const constraint = getBaseConstraintOfType(type2);\n            if (constraint) {\n              const instantiated = getInstantiatedTypePart(constraint);\n              if (instantiated !== constraint) {\n                return instantiated;\n              }\n            }\n          } else if (type2.flags & 1048576) {\n            return mapType(type2, getInstantiatedType);\n          } else if (type2.flags & 2097152) {\n            return getIntersectionType(sameMap(type2.types, getInstantiatedTypePart));\n          }\n          return type2;\n        }\n      }\n      function getInstantiatedSignatures(signatures) {\n        const applicableSignatures = filter(signatures, (sig) => !!sig.typeParameters && hasCorrectTypeArgumentArity(sig, typeArguments));\n        return sameMap(applicableSignatures, (sig) => {\n          const typeArgumentTypes = checkTypeArguments(sig, typeArguments, true);\n          return typeArgumentTypes ? getSignatureInstantiation(sig, typeArgumentTypes, isInJSFile(sig.declaration)) : sig;\n        });\n      }\n    }\n    function checkSatisfiesExpression(node) {\n      checkSourceElement(node.type);\n      return checkSatisfiesExpressionWorker(node.expression, node.type);\n    }\n    function checkSatisfiesExpressionWorker(expression, target, checkMode) {\n      const exprType = checkExpression(expression, checkMode);\n      const targetType = getTypeFromTypeNode(target);\n      if (isErrorType(targetType)) {\n        return targetType;\n      }\n      checkTypeAssignableToAndOptionallyElaborate(exprType, targetType, target, expression, Diagnostics.Type_0_does_not_satisfy_the_expected_type_1);\n      return exprType;\n    }\n    function checkMetaProperty(node) {\n      checkGrammarMetaProperty(node);\n      if (node.keywordToken === 103) {\n        return checkNewTargetMetaProperty(node);\n      }\n      if (node.keywordToken === 100) {\n        return checkImportMetaProperty(node);\n      }\n      return Debug.assertNever(node.keywordToken);\n    }\n    function checkMetaPropertyKeyword(node) {\n      switch (node.keywordToken) {\n        case 100:\n          return getGlobalImportMetaExpressionType();\n        case 103:\n          const type = checkNewTargetMetaProperty(node);\n          return isErrorType(type) ? errorType : createNewTargetExpressionType(type);\n        default:\n          Debug.assertNever(node.keywordToken);\n      }\n    }\n    function checkNewTargetMetaProperty(node) {\n      const container = getNewTargetContainer(node);\n      if (!container) {\n        error(node, Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor, \"new.target\");\n        return errorType;\n      } else if (container.kind === 173) {\n        const symbol = getSymbolOfDeclaration(container.parent);\n        return getTypeOfSymbol(symbol);\n      } else {\n        const symbol = getSymbolOfDeclaration(container);\n        return getTypeOfSymbol(symbol);\n      }\n    }\n    function checkImportMetaProperty(node) {\n      if (moduleKind === 100 || moduleKind === 199) {\n        if (getSourceFileOfNode(node).impliedNodeFormat !== 99) {\n          error(node, Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output);\n        }\n      } else if (moduleKind < 6 && moduleKind !== 4) {\n        error(node, Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);\n      }\n      const file = getSourceFileOfNode(node);\n      Debug.assert(!!(file.flags & 4194304), \"Containing file is missing import meta node flag.\");\n      return node.name.escapedText === \"meta\" ? getGlobalImportMetaType() : errorType;\n    }\n    function getTypeOfParameter(symbol) {\n      const type = getTypeOfSymbol(symbol);\n      if (strictNullChecks) {\n        const declaration = symbol.valueDeclaration;\n        if (declaration && hasInitializer(declaration)) {\n          return getOptionalType(type);\n        }\n      }\n      return type;\n    }\n    function getTupleElementLabel(d) {\n      Debug.assert(isIdentifier(d.name));\n      return d.name.escapedText;\n    }\n    function getParameterNameAtPosition(signature, pos, overrideRestType) {\n      const paramCount = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0);\n      if (pos < paramCount) {\n        return signature.parameters[pos].escapedName;\n      }\n      const restParameter = signature.parameters[paramCount] || unknownSymbol;\n      const restType = overrideRestType || getTypeOfSymbol(restParameter);\n      if (isTupleType(restType)) {\n        const associatedNames = restType.target.labeledElementDeclarations;\n        const index = pos - paramCount;\n        return associatedNames && getTupleElementLabel(associatedNames[index]) || restParameter.escapedName + \"_\" + index;\n      }\n      return restParameter.escapedName;\n    }\n    function getParameterIdentifierNameAtPosition(signature, pos) {\n      var _a2;\n      if (((_a2 = signature.declaration) == null ? void 0 : _a2.kind) === 320) {\n        return void 0;\n      }\n      const paramCount = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0);\n      if (pos < paramCount) {\n        const param = signature.parameters[pos];\n        return isParameterDeclarationWithIdentifierName(param) ? [param.escapedName, false] : void 0;\n      }\n      const restParameter = signature.parameters[paramCount] || unknownSymbol;\n      if (!isParameterDeclarationWithIdentifierName(restParameter)) {\n        return void 0;\n      }\n      const restType = getTypeOfSymbol(restParameter);\n      if (isTupleType(restType)) {\n        const associatedNames = restType.target.labeledElementDeclarations;\n        const index = pos - paramCount;\n        const associatedName = associatedNames == null ? void 0 : associatedNames[index];\n        const isRestTupleElement = !!(associatedName == null ? void 0 : associatedName.dotDotDotToken);\n        return associatedName ? [\n          getTupleElementLabel(associatedName),\n          isRestTupleElement\n        ] : void 0;\n      }\n      if (pos === paramCount) {\n        return [restParameter.escapedName, true];\n      }\n      return void 0;\n    }\n    function isParameterDeclarationWithIdentifierName(symbol) {\n      return symbol.valueDeclaration && isParameter(symbol.valueDeclaration) && isIdentifier(symbol.valueDeclaration.name);\n    }\n    function isValidDeclarationForTupleLabel(d) {\n      return d.kind === 199 || isParameter(d) && d.name && isIdentifier(d.name);\n    }\n    function getNameableDeclarationAtPosition(signature, pos) {\n      const paramCount = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0);\n      if (pos < paramCount) {\n        const decl = signature.parameters[pos].valueDeclaration;\n        return decl && isValidDeclarationForTupleLabel(decl) ? decl : void 0;\n      }\n      const restParameter = signature.parameters[paramCount] || unknownSymbol;\n      const restType = getTypeOfSymbol(restParameter);\n      if (isTupleType(restType)) {\n        const associatedNames = restType.target.labeledElementDeclarations;\n        const index = pos - paramCount;\n        return associatedNames && associatedNames[index];\n      }\n      return restParameter.valueDeclaration && isValidDeclarationForTupleLabel(restParameter.valueDeclaration) ? restParameter.valueDeclaration : void 0;\n    }\n    function getTypeAtPosition(signature, pos) {\n      return tryGetTypeAtPosition(signature, pos) || anyType;\n    }\n    function tryGetTypeAtPosition(signature, pos) {\n      const paramCount = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0);\n      if (pos < paramCount) {\n        return getTypeOfParameter(signature.parameters[pos]);\n      }\n      if (signatureHasRestParameter(signature)) {\n        const restType = getTypeOfSymbol(signature.parameters[paramCount]);\n        const index = pos - paramCount;\n        if (!isTupleType(restType) || restType.target.hasRestElement || index < restType.target.fixedLength) {\n          return getIndexedAccessType(restType, getNumberLiteralType(index));\n        }\n      }\n      return void 0;\n    }\n    function getRestTypeAtPosition(source, pos) {\n      const parameterCount = getParameterCount(source);\n      const minArgumentCount = getMinArgumentCount(source);\n      const restType = getEffectiveRestType(source);\n      if (restType && pos >= parameterCount - 1) {\n        return pos === parameterCount - 1 ? restType : createArrayType(getIndexedAccessType(restType, numberType));\n      }\n      const types = [];\n      const flags = [];\n      const names = [];\n      for (let i = pos; i < parameterCount; i++) {\n        if (!restType || i < parameterCount - 1) {\n          types.push(getTypeAtPosition(source, i));\n          flags.push(i < minArgumentCount ? 1 : 2);\n        } else {\n          types.push(restType);\n          flags.push(8);\n        }\n        const name = getNameableDeclarationAtPosition(source, i);\n        if (name) {\n          names.push(name);\n        }\n      }\n      return createTupleType(types, flags, false, length(names) === length(types) ? names : void 0);\n    }\n    function getParameterCount(signature) {\n      const length2 = signature.parameters.length;\n      if (signatureHasRestParameter(signature)) {\n        const restType = getTypeOfSymbol(signature.parameters[length2 - 1]);\n        if (isTupleType(restType)) {\n          return length2 + restType.target.fixedLength - (restType.target.hasRestElement ? 0 : 1);\n        }\n      }\n      return length2;\n    }\n    function getMinArgumentCount(signature, flags) {\n      const strongArityForUntypedJS = flags & 1;\n      const voidIsNonOptional = flags & 2;\n      if (voidIsNonOptional || signature.resolvedMinArgumentCount === void 0) {\n        let minArgumentCount;\n        if (signatureHasRestParameter(signature)) {\n          const restType = getTypeOfSymbol(signature.parameters[signature.parameters.length - 1]);\n          if (isTupleType(restType)) {\n            const firstOptionalIndex = findIndex(restType.target.elementFlags, (f) => !(f & 1));\n            const requiredCount = firstOptionalIndex < 0 ? restType.target.fixedLength : firstOptionalIndex;\n            if (requiredCount > 0) {\n              minArgumentCount = signature.parameters.length - 1 + requiredCount;\n            }\n          }\n        }\n        if (minArgumentCount === void 0) {\n          if (!strongArityForUntypedJS && signature.flags & 32) {\n            return 0;\n          }\n          minArgumentCount = signature.minArgumentCount;\n        }\n        if (voidIsNonOptional) {\n          return minArgumentCount;\n        }\n        for (let i = minArgumentCount - 1; i >= 0; i--) {\n          const type = getTypeAtPosition(signature, i);\n          if (filterType(type, acceptsVoid).flags & 131072) {\n            break;\n          }\n          minArgumentCount = i;\n        }\n        signature.resolvedMinArgumentCount = minArgumentCount;\n      }\n      return signature.resolvedMinArgumentCount;\n    }\n    function hasEffectiveRestParameter(signature) {\n      if (signatureHasRestParameter(signature)) {\n        const restType = getTypeOfSymbol(signature.parameters[signature.parameters.length - 1]);\n        return !isTupleType(restType) || restType.target.hasRestElement;\n      }\n      return false;\n    }\n    function getEffectiveRestType(signature) {\n      if (signatureHasRestParameter(signature)) {\n        const restType = getTypeOfSymbol(signature.parameters[signature.parameters.length - 1]);\n        if (!isTupleType(restType)) {\n          return restType;\n        }\n        if (restType.target.hasRestElement) {\n          return sliceTupleType(restType, restType.target.fixedLength);\n        }\n      }\n      return void 0;\n    }\n    function getNonArrayRestType(signature) {\n      const restType = getEffectiveRestType(signature);\n      return restType && !isArrayType(restType) && !isTypeAny(restType) && (getReducedType(restType).flags & 131072) === 0 ? restType : void 0;\n    }\n    function getTypeOfFirstParameterOfSignature(signature) {\n      return getTypeOfFirstParameterOfSignatureWithFallback(signature, neverType);\n    }\n    function getTypeOfFirstParameterOfSignatureWithFallback(signature, fallbackType) {\n      return signature.parameters.length > 0 ? getTypeAtPosition(signature, 0) : fallbackType;\n    }\n    function inferFromAnnotatedParameters(signature, context, inferenceContext) {\n      const len = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0);\n      for (let i = 0; i < len; i++) {\n        const declaration = signature.parameters[i].valueDeclaration;\n        if (declaration.type) {\n          const typeNode = getEffectiveTypeAnnotationNode(declaration);\n          if (typeNode) {\n            inferTypes(inferenceContext.inferences, getTypeFromTypeNode(typeNode), getTypeAtPosition(context, i));\n          }\n        }\n      }\n    }\n    function assignContextualParameterTypes(signature, context) {\n      if (context.typeParameters) {\n        if (!signature.typeParameters) {\n          signature.typeParameters = context.typeParameters;\n        } else {\n          return;\n        }\n      }\n      if (context.thisParameter) {\n        const parameter = signature.thisParameter;\n        if (!parameter || parameter.valueDeclaration && !parameter.valueDeclaration.type) {\n          if (!parameter) {\n            signature.thisParameter = createSymbolWithType(context.thisParameter, void 0);\n          }\n          assignParameterType(signature.thisParameter, getTypeOfSymbol(context.thisParameter));\n        }\n      }\n      const len = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0);\n      for (let i = 0; i < len; i++) {\n        const parameter = signature.parameters[i];\n        if (!getEffectiveTypeAnnotationNode(parameter.valueDeclaration)) {\n          const contextualParameterType = tryGetTypeAtPosition(context, i);\n          assignParameterType(parameter, contextualParameterType);\n        }\n      }\n      if (signatureHasRestParameter(signature)) {\n        const parameter = last(signature.parameters);\n        if (parameter.valueDeclaration ? !getEffectiveTypeAnnotationNode(parameter.valueDeclaration) : !!(getCheckFlags(parameter) & 65536)) {\n          const contextualParameterType = getRestTypeAtPosition(context, len);\n          assignParameterType(parameter, contextualParameterType);\n        }\n      }\n    }\n    function assignNonContextualParameterTypes(signature) {\n      if (signature.thisParameter) {\n        assignParameterType(signature.thisParameter);\n      }\n      for (const parameter of signature.parameters) {\n        assignParameterType(parameter);\n      }\n    }\n    function assignParameterType(parameter, type) {\n      const links = getSymbolLinks(parameter);\n      if (!links.type) {\n        const declaration = parameter.valueDeclaration;\n        links.type = type || (declaration ? getWidenedTypeForVariableLikeDeclaration(declaration, true) : getTypeOfSymbol(parameter));\n        if (declaration && declaration.name.kind !== 79) {\n          if (links.type === unknownType) {\n            links.type = getTypeFromBindingPattern(declaration.name);\n          }\n          assignBindingElementTypes(declaration.name, links.type);\n        }\n      } else if (type) {\n        Debug.assertEqual(links.type, type, \"Parameter symbol already has a cached type which differs from newly assigned type\");\n      }\n    }\n    function assignBindingElementTypes(pattern, parentType) {\n      for (const element of pattern.elements) {\n        if (!isOmittedExpression(element)) {\n          const type = getBindingElementTypeFromParentType(element, parentType);\n          if (element.name.kind === 79) {\n            getSymbolLinks(getSymbolOfDeclaration(element)).type = type;\n          } else {\n            assignBindingElementTypes(element.name, type);\n          }\n        }\n      }\n    }\n    function createClassDecoratorContextType(classType) {\n      return tryCreateTypeReference(getGlobalClassDecoratorContextType(true), [classType]);\n    }\n    function createClassMethodDecoratorContextType(thisType, valueType) {\n      return tryCreateTypeReference(getGlobalClassMethodDecoratorContextType(true), [thisType, valueType]);\n    }\n    function createClassGetterDecoratorContextType(thisType, valueType) {\n      return tryCreateTypeReference(getGlobalClassGetterDecoratorContextType(true), [thisType, valueType]);\n    }\n    function createClassSetterDecoratorContextType(thisType, valueType) {\n      return tryCreateTypeReference(getGlobalClassSetterDecoratorContextType(true), [thisType, valueType]);\n    }\n    function createClassAccessorDecoratorContextType(thisType, valueType) {\n      return tryCreateTypeReference(getGlobalClassAccessorDecoratorContextType(true), [thisType, valueType]);\n    }\n    function createClassFieldDecoratorContextType(thisType, valueType) {\n      return tryCreateTypeReference(getGlobalClassFieldDecoratorContextType(true), [thisType, valueType]);\n    }\n    function getClassMemberDecoratorContextOverrideType(nameType, isPrivate, isStatic2) {\n      const key = `${isPrivate ? \"p\" : \"P\"}${isStatic2 ? \"s\" : \"S\"}${nameType.id}`;\n      let overrideType = decoratorContextOverrideTypeCache.get(key);\n      if (!overrideType) {\n        const members = createSymbolTable();\n        members.set(\"name\", createProperty(\"name\", nameType));\n        members.set(\"private\", createProperty(\"private\", isPrivate ? trueType : falseType));\n        members.set(\"static\", createProperty(\"static\", isStatic2 ? trueType : falseType));\n        overrideType = createAnonymousType(void 0, members, emptyArray, emptyArray, emptyArray);\n        decoratorContextOverrideTypeCache.set(key, overrideType);\n      }\n      return overrideType;\n    }\n    function createClassMemberDecoratorContextTypeForNode(node, thisType, valueType) {\n      const isStatic2 = hasStaticModifier(node);\n      const isPrivate = isPrivateIdentifier(node.name);\n      const nameType = isPrivate ? getStringLiteralType(idText(node.name)) : getLiteralTypeFromPropertyName(node.name);\n      const contextType = isMethodDeclaration(node) ? createClassMethodDecoratorContextType(thisType, valueType) : isGetAccessorDeclaration(node) ? createClassGetterDecoratorContextType(thisType, valueType) : isSetAccessorDeclaration(node) ? createClassSetterDecoratorContextType(thisType, valueType) : isAutoAccessorPropertyDeclaration(node) ? createClassAccessorDecoratorContextType(thisType, valueType) : isPropertyDeclaration(node) ? createClassFieldDecoratorContextType(thisType, valueType) : Debug.failBadSyntaxKind(node);\n      const overrideType = getClassMemberDecoratorContextOverrideType(nameType, isPrivate, isStatic2);\n      return getIntersectionType([contextType, overrideType]);\n    }\n    function createClassAccessorDecoratorTargetType(thisType, valueType) {\n      return tryCreateTypeReference(getGlobalClassAccessorDecoratorTargetType(true), [thisType, valueType]);\n    }\n    function createClassAccessorDecoratorResultType(thisType, valueType) {\n      return tryCreateTypeReference(getGlobalClassAccessorDecoratorResultType(true), [thisType, valueType]);\n    }\n    function createClassFieldDecoratorInitializerMutatorType(thisType, valueType) {\n      const thisParam = createParameter(\"this\", thisType);\n      const valueParam = createParameter(\"value\", valueType);\n      return createFunctionType(void 0, thisParam, [valueParam], valueType, void 0, 1);\n    }\n    function createESDecoratorCallSignature(targetType, contextType, nonOptionalReturnType) {\n      const targetParam = createParameter(\"target\", targetType);\n      const contextParam = createParameter(\"context\", contextType);\n      const returnType = getUnionType([nonOptionalReturnType, voidType]);\n      return createCallSignature(void 0, void 0, [targetParam, contextParam], returnType);\n    }\n    function getESDecoratorCallSignature(decorator) {\n      const { parent: parent2 } = decorator;\n      const links = getNodeLinks(parent2);\n      if (!links.decoratorSignature) {\n        links.decoratorSignature = anySignature;\n        switch (parent2.kind) {\n          case 260:\n          case 228: {\n            const node = parent2;\n            const targetType = getTypeOfSymbol(getSymbolOfDeclaration(node));\n            const contextType = createClassDecoratorContextType(targetType);\n            links.decoratorSignature = createESDecoratorCallSignature(targetType, contextType, targetType);\n            break;\n          }\n          case 171:\n          case 174:\n          case 175: {\n            const node = parent2;\n            if (!isClassLike(node.parent))\n              break;\n            const valueType = isMethodDeclaration(node) ? getOrCreateTypeFromSignature(getSignatureFromDeclaration(node)) : getTypeOfNode(node);\n            const thisType = hasStaticModifier(node) ? getTypeOfSymbol(getSymbolOfDeclaration(node.parent)) : getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(node.parent));\n            const targetType = isGetAccessorDeclaration(node) ? createGetterFunctionType(valueType) : isSetAccessorDeclaration(node) ? createSetterFunctionType(valueType) : valueType;\n            const contextType = createClassMemberDecoratorContextTypeForNode(node, thisType, valueType);\n            const returnType = isGetAccessorDeclaration(node) ? createGetterFunctionType(valueType) : isSetAccessorDeclaration(node) ? createSetterFunctionType(valueType) : valueType;\n            links.decoratorSignature = createESDecoratorCallSignature(targetType, contextType, returnType);\n            break;\n          }\n          case 169: {\n            const node = parent2;\n            if (!isClassLike(node.parent))\n              break;\n            const valueType = getTypeOfNode(node);\n            const thisType = hasStaticModifier(node) ? getTypeOfSymbol(getSymbolOfDeclaration(node.parent)) : getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(node.parent));\n            const targetType = hasAccessorModifier(node) ? createClassAccessorDecoratorTargetType(thisType, valueType) : undefinedType;\n            const contextType = createClassMemberDecoratorContextTypeForNode(node, thisType, valueType);\n            const returnType = hasAccessorModifier(node) ? createClassAccessorDecoratorResultType(thisType, valueType) : createClassFieldDecoratorInitializerMutatorType(thisType, valueType);\n            links.decoratorSignature = createESDecoratorCallSignature(targetType, contextType, returnType);\n            break;\n          }\n        }\n      }\n      return links.decoratorSignature === anySignature ? void 0 : links.decoratorSignature;\n    }\n    function getLegacyDecoratorCallSignature(decorator) {\n      const { parent: parent2 } = decorator;\n      const links = getNodeLinks(parent2);\n      if (!links.decoratorSignature) {\n        links.decoratorSignature = anySignature;\n        switch (parent2.kind) {\n          case 260:\n          case 228: {\n            const node = parent2;\n            const targetType = getTypeOfSymbol(getSymbolOfDeclaration(node));\n            const targetParam = createParameter(\"target\", targetType);\n            links.decoratorSignature = createCallSignature(void 0, void 0, [targetParam], getUnionType([targetType, voidType]));\n            break;\n          }\n          case 166: {\n            const node = parent2;\n            if (!isConstructorDeclaration(node.parent) && !(isMethodDeclaration(node.parent) || isSetAccessorDeclaration(node.parent) && isClassLike(node.parent.parent))) {\n              break;\n            }\n            if (getThisParameter(node.parent) === node) {\n              break;\n            }\n            const index = getThisParameter(node.parent) ? node.parent.parameters.indexOf(node) - 1 : node.parent.parameters.indexOf(node);\n            Debug.assert(index >= 0);\n            const targetType = isConstructorDeclaration(node.parent) ? getTypeOfSymbol(getSymbolOfDeclaration(node.parent.parent)) : getParentTypeOfClassElement(node.parent);\n            const keyType = isConstructorDeclaration(node.parent) ? undefinedType : getClassElementPropertyKeyType(node.parent);\n            const indexType = getNumberLiteralType(index);\n            const targetParam = createParameter(\"target\", targetType);\n            const keyParam = createParameter(\"propertyKey\", keyType);\n            const indexParam = createParameter(\"parameterIndex\", indexType);\n            links.decoratorSignature = createCallSignature(void 0, void 0, [targetParam, keyParam, indexParam], voidType);\n            break;\n          }\n          case 171:\n          case 174:\n          case 175:\n          case 169: {\n            const node = parent2;\n            if (!isClassLike(node.parent))\n              break;\n            const targetType = getParentTypeOfClassElement(node);\n            const targetParam = createParameter(\"target\", targetType);\n            const keyType = getClassElementPropertyKeyType(node);\n            const keyParam = createParameter(\"propertyKey\", keyType);\n            const returnType = isPropertyDeclaration(node) ? voidType : createTypedPropertyDescriptorType(getTypeOfNode(node));\n            const hasPropDesc = languageVersion !== 0 && (!isPropertyDeclaration(parent2) || hasAccessorModifier(parent2));\n            if (hasPropDesc) {\n              const descriptorType = createTypedPropertyDescriptorType(getTypeOfNode(node));\n              const descriptorParam = createParameter(\"descriptor\", descriptorType);\n              links.decoratorSignature = createCallSignature(void 0, void 0, [targetParam, keyParam, descriptorParam], getUnionType([returnType, voidType]));\n            } else {\n              links.decoratorSignature = createCallSignature(void 0, void 0, [targetParam, keyParam], getUnionType([returnType, voidType]));\n            }\n            break;\n          }\n        }\n      }\n      return links.decoratorSignature === anySignature ? void 0 : links.decoratorSignature;\n    }\n    function getDecoratorCallSignature(decorator) {\n      return legacyDecorators ? getLegacyDecoratorCallSignature(decorator) : getESDecoratorCallSignature(decorator);\n    }\n    function createPromiseType(promisedType) {\n      const globalPromiseType = getGlobalPromiseType(true);\n      if (globalPromiseType !== emptyGenericType) {\n        promisedType = getAwaitedTypeNoAlias(unwrapAwaitedType(promisedType)) || unknownType;\n        return createTypeReference(globalPromiseType, [promisedType]);\n      }\n      return unknownType;\n    }\n    function createPromiseLikeType(promisedType) {\n      const globalPromiseLikeType = getGlobalPromiseLikeType(true);\n      if (globalPromiseLikeType !== emptyGenericType) {\n        promisedType = getAwaitedTypeNoAlias(unwrapAwaitedType(promisedType)) || unknownType;\n        return createTypeReference(globalPromiseLikeType, [promisedType]);\n      }\n      return unknownType;\n    }\n    function createPromiseReturnType(func, promisedType) {\n      const promiseType = createPromiseType(promisedType);\n      if (promiseType === unknownType) {\n        error(func, isImportCall(func) ? Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option : Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option);\n        return errorType;\n      } else if (!getGlobalPromiseConstructorSymbol(true)) {\n        error(func, isImportCall(func) ? Diagnostics.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option : Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option);\n      }\n      return promiseType;\n    }\n    function createNewTargetExpressionType(targetType) {\n      const symbol = createSymbol(0, \"NewTargetExpression\");\n      const targetPropertySymbol = createSymbol(4, \"target\", 8);\n      targetPropertySymbol.parent = symbol;\n      targetPropertySymbol.links.type = targetType;\n      const members = createSymbolTable([targetPropertySymbol]);\n      symbol.members = members;\n      return createAnonymousType(symbol, members, emptyArray, emptyArray, emptyArray);\n    }\n    function getReturnTypeFromBody(func, checkMode) {\n      if (!func.body) {\n        return errorType;\n      }\n      const functionFlags = getFunctionFlags(func);\n      const isAsync = (functionFlags & 2) !== 0;\n      const isGenerator = (functionFlags & 1) !== 0;\n      let returnType;\n      let yieldType;\n      let nextType;\n      let fallbackReturnType = voidType;\n      if (func.body.kind !== 238) {\n        returnType = checkExpressionCached(func.body, checkMode && checkMode & ~8);\n        if (isAsync) {\n          returnType = unwrapAwaitedType(checkAwaitedType(returnType, false, func, Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member));\n        }\n      } else if (isGenerator) {\n        const returnTypes = checkAndAggregateReturnExpressionTypes(func, checkMode);\n        if (!returnTypes) {\n          fallbackReturnType = neverType;\n        } else if (returnTypes.length > 0) {\n          returnType = getUnionType(returnTypes, 2);\n        }\n        const { yieldTypes, nextTypes } = checkAndAggregateYieldOperandTypes(func, checkMode);\n        yieldType = some(yieldTypes) ? getUnionType(yieldTypes, 2) : void 0;\n        nextType = some(nextTypes) ? getIntersectionType(nextTypes) : void 0;\n      } else {\n        const types = checkAndAggregateReturnExpressionTypes(func, checkMode);\n        if (!types) {\n          return functionFlags & 2 ? createPromiseReturnType(func, neverType) : neverType;\n        }\n        if (types.length === 0) {\n          return functionFlags & 2 ? createPromiseReturnType(func, voidType) : voidType;\n        }\n        returnType = getUnionType(types, 2);\n      }\n      if (returnType || yieldType || nextType) {\n        if (yieldType)\n          reportErrorsFromWidening(func, yieldType, 3);\n        if (returnType)\n          reportErrorsFromWidening(func, returnType, 1);\n        if (nextType)\n          reportErrorsFromWidening(func, nextType, 2);\n        if (returnType && isUnitType(returnType) || yieldType && isUnitType(yieldType) || nextType && isUnitType(nextType)) {\n          const contextualSignature = getContextualSignatureForFunctionLikeDeclaration(func);\n          const contextualType = !contextualSignature ? void 0 : contextualSignature === getSignatureFromDeclaration(func) ? isGenerator ? void 0 : returnType : instantiateContextualType(getReturnTypeOfSignature(contextualSignature), func, void 0);\n          if (isGenerator) {\n            yieldType = getWidenedLiteralLikeTypeForContextualIterationTypeIfNeeded(yieldType, contextualType, 0, isAsync);\n            returnType = getWidenedLiteralLikeTypeForContextualIterationTypeIfNeeded(returnType, contextualType, 1, isAsync);\n            nextType = getWidenedLiteralLikeTypeForContextualIterationTypeIfNeeded(nextType, contextualType, 2, isAsync);\n          } else {\n            returnType = getWidenedLiteralLikeTypeForContextualReturnTypeIfNeeded(returnType, contextualType, isAsync);\n          }\n        }\n        if (yieldType)\n          yieldType = getWidenedType(yieldType);\n        if (returnType)\n          returnType = getWidenedType(returnType);\n        if (nextType)\n          nextType = getWidenedType(nextType);\n      }\n      if (isGenerator) {\n        return createGeneratorReturnType(yieldType || neverType, returnType || fallbackReturnType, nextType || getContextualIterationType(2, func) || unknownType, isAsync);\n      } else {\n        return isAsync ? createPromiseType(returnType || fallbackReturnType) : returnType || fallbackReturnType;\n      }\n    }\n    function createGeneratorReturnType(yieldType, returnType, nextType, isAsyncGenerator) {\n      const resolver = isAsyncGenerator ? asyncIterationTypesResolver : syncIterationTypesResolver;\n      const globalGeneratorType = resolver.getGlobalGeneratorType(false);\n      yieldType = resolver.resolveIterationType(yieldType, void 0) || unknownType;\n      returnType = resolver.resolveIterationType(returnType, void 0) || unknownType;\n      nextType = resolver.resolveIterationType(nextType, void 0) || unknownType;\n      if (globalGeneratorType === emptyGenericType) {\n        const globalType = resolver.getGlobalIterableIteratorType(false);\n        const iterationTypes = globalType !== emptyGenericType ? getIterationTypesOfGlobalIterableType(globalType, resolver) : void 0;\n        const iterableIteratorReturnType = iterationTypes ? iterationTypes.returnType : anyType;\n        const iterableIteratorNextType = iterationTypes ? iterationTypes.nextType : undefinedType;\n        if (isTypeAssignableTo(returnType, iterableIteratorReturnType) && isTypeAssignableTo(iterableIteratorNextType, nextType)) {\n          if (globalType !== emptyGenericType) {\n            return createTypeFromGenericGlobalType(globalType, [yieldType]);\n          }\n          resolver.getGlobalIterableIteratorType(true);\n          return emptyObjectType;\n        }\n        resolver.getGlobalGeneratorType(true);\n        return emptyObjectType;\n      }\n      return createTypeFromGenericGlobalType(globalGeneratorType, [yieldType, returnType, nextType]);\n    }\n    function checkAndAggregateYieldOperandTypes(func, checkMode) {\n      const yieldTypes = [];\n      const nextTypes = [];\n      const isAsync = (getFunctionFlags(func) & 2) !== 0;\n      forEachYieldExpression(func.body, (yieldExpression) => {\n        const yieldExpressionType = yieldExpression.expression ? checkExpression(yieldExpression.expression, checkMode) : undefinedWideningType;\n        pushIfUnique(yieldTypes, getYieldedTypeOfYieldExpression(yieldExpression, yieldExpressionType, anyType, isAsync));\n        let nextType;\n        if (yieldExpression.asteriskToken) {\n          const iterationTypes = getIterationTypesOfIterable(yieldExpressionType, isAsync ? 19 : 17, yieldExpression.expression);\n          nextType = iterationTypes && iterationTypes.nextType;\n        } else {\n          nextType = getContextualType2(yieldExpression, void 0);\n        }\n        if (nextType)\n          pushIfUnique(nextTypes, nextType);\n      });\n      return { yieldTypes, nextTypes };\n    }\n    function getYieldedTypeOfYieldExpression(node, expressionType, sentType, isAsync) {\n      const errorNode = node.expression || node;\n      const yieldedType = node.asteriskToken ? checkIteratedTypeOrElementType(isAsync ? 19 : 17, expressionType, sentType, errorNode) : expressionType;\n      return !isAsync ? yieldedType : getAwaitedType(yieldedType, errorNode, node.asteriskToken ? Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member : Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);\n    }\n    function getNotEqualFactsFromTypeofSwitch(start, end, witnesses) {\n      let facts = 0;\n      for (let i = 0; i < witnesses.length; i++) {\n        const witness = i < start || i >= end ? witnesses[i] : void 0;\n        facts |= witness !== void 0 ? typeofNEFacts.get(witness) || 32768 : 0;\n      }\n      return facts;\n    }\n    function isExhaustiveSwitchStatement(node) {\n      const links = getNodeLinks(node);\n      if (links.isExhaustive === void 0) {\n        links.isExhaustive = 0;\n        const exhaustive = computeExhaustiveSwitchStatement(node);\n        if (links.isExhaustive === 0) {\n          links.isExhaustive = exhaustive;\n        }\n      } else if (links.isExhaustive === 0) {\n        links.isExhaustive = false;\n      }\n      return links.isExhaustive;\n    }\n    function computeExhaustiveSwitchStatement(node) {\n      if (node.expression.kind === 218) {\n        const witnesses = getSwitchClauseTypeOfWitnesses(node);\n        if (!witnesses) {\n          return false;\n        }\n        const operandConstraint = getBaseConstraintOrType(checkExpressionCached(node.expression.expression));\n        const notEqualFacts = getNotEqualFactsFromTypeofSwitch(0, 0, witnesses);\n        if (operandConstraint.flags & 3) {\n          return (556800 & notEqualFacts) === 556800;\n        }\n        return !someType(operandConstraint, (t) => (getTypeFacts(t) & notEqualFacts) === notEqualFacts);\n      }\n      const type = checkExpressionCached(node.expression);\n      if (!isLiteralType(type)) {\n        return false;\n      }\n      const switchTypes = getSwitchClauseTypes(node);\n      if (!switchTypes.length || some(switchTypes, isNeitherUnitTypeNorNever)) {\n        return false;\n      }\n      return eachTypeContainedIn(mapType(type, getRegularTypeOfLiteralType), switchTypes);\n    }\n    function functionHasImplicitReturn(func) {\n      return func.endFlowNode && isReachableFlowNode(func.endFlowNode);\n    }\n    function checkAndAggregateReturnExpressionTypes(func, checkMode) {\n      const functionFlags = getFunctionFlags(func);\n      const aggregatedTypes = [];\n      let hasReturnWithNoExpression = functionHasImplicitReturn(func);\n      let hasReturnOfTypeNever = false;\n      forEachReturnStatement(func.body, (returnStatement) => {\n        const expr = returnStatement.expression;\n        if (expr) {\n          let type = checkExpressionCached(expr, checkMode && checkMode & ~8);\n          if (functionFlags & 2) {\n            type = unwrapAwaitedType(checkAwaitedType(type, false, func, Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member));\n          }\n          if (type.flags & 131072) {\n            hasReturnOfTypeNever = true;\n          }\n          pushIfUnique(aggregatedTypes, type);\n        } else {\n          hasReturnWithNoExpression = true;\n        }\n      });\n      if (aggregatedTypes.length === 0 && !hasReturnWithNoExpression && (hasReturnOfTypeNever || mayReturnNever(func))) {\n        return void 0;\n      }\n      if (strictNullChecks && aggregatedTypes.length && hasReturnWithNoExpression && !(isJSConstructor(func) && aggregatedTypes.some((t) => t.symbol === func.symbol))) {\n        pushIfUnique(aggregatedTypes, undefinedType);\n      }\n      return aggregatedTypes;\n    }\n    function mayReturnNever(func) {\n      switch (func.kind) {\n        case 215:\n        case 216:\n          return true;\n        case 171:\n          return func.parent.kind === 207;\n        default:\n          return false;\n      }\n    }\n    function checkAllCodePathsInNonVoidFunctionReturnOrThrow(func, returnType) {\n      addLazyDiagnostic(checkAllCodePathsInNonVoidFunctionReturnOrThrowDiagnostics);\n      return;\n      function checkAllCodePathsInNonVoidFunctionReturnOrThrowDiagnostics() {\n        const functionFlags = getFunctionFlags(func);\n        const type = returnType && unwrapReturnType(returnType, functionFlags);\n        if (type && maybeTypeOfKind(type, 1 | 16384)) {\n          return;\n        }\n        if (func.kind === 170 || nodeIsMissing(func.body) || func.body.kind !== 238 || !functionHasImplicitReturn(func)) {\n          return;\n        }\n        const hasExplicitReturn = func.flags & 512;\n        const errorNode = getEffectiveReturnTypeNode(func) || func;\n        if (type && type.flags & 131072) {\n          error(errorNode, Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);\n        } else if (type && !hasExplicitReturn) {\n          error(errorNode, Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);\n        } else if (type && strictNullChecks && !isTypeAssignableTo(undefinedType, type)) {\n          error(errorNode, Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);\n        } else if (compilerOptions.noImplicitReturns) {\n          if (!type) {\n            if (!hasExplicitReturn) {\n              return;\n            }\n            const inferredReturnType = getReturnTypeOfSignature(getSignatureFromDeclaration(func));\n            if (isUnwrappedReturnTypeVoidOrAny(func, inferredReturnType)) {\n              return;\n            }\n          }\n          error(errorNode, Diagnostics.Not_all_code_paths_return_a_value);\n        }\n      }\n    }\n    function checkFunctionExpressionOrObjectLiteralMethod(node, checkMode) {\n      Debug.assert(node.kind !== 171 || isObjectLiteralMethod(node));\n      checkNodeDeferred(node);\n      if (isFunctionExpression(node)) {\n        checkCollisionsForDeclarationName(node, node.name);\n      }\n      if (checkMode && checkMode & 4 && isContextSensitive(node)) {\n        if (!getEffectiveReturnTypeNode(node) && !hasContextSensitiveParameters(node)) {\n          const contextualSignature = getContextualSignature(node);\n          if (contextualSignature && couldContainTypeVariables(getReturnTypeOfSignature(contextualSignature))) {\n            const links = getNodeLinks(node);\n            if (links.contextFreeType) {\n              return links.contextFreeType;\n            }\n            const returnType = getReturnTypeFromBody(node, checkMode);\n            const returnOnlySignature = createSignature(void 0, void 0, void 0, emptyArray, returnType, void 0, 0, 0);\n            const returnOnlyType = createAnonymousType(node.symbol, emptySymbols, [returnOnlySignature], emptyArray, emptyArray);\n            returnOnlyType.objectFlags |= 262144;\n            return links.contextFreeType = returnOnlyType;\n          }\n        }\n        return anyFunctionType;\n      }\n      const hasGrammarError = checkGrammarFunctionLikeDeclaration(node);\n      if (!hasGrammarError && node.kind === 215) {\n        checkGrammarForGenerator(node);\n      }\n      contextuallyCheckFunctionExpressionOrObjectLiteralMethod(node, checkMode);\n      return getTypeOfSymbol(getSymbolOfDeclaration(node));\n    }\n    function contextuallyCheckFunctionExpressionOrObjectLiteralMethod(node, checkMode) {\n      const links = getNodeLinks(node);\n      if (!(links.flags & 64)) {\n        const contextualSignature = getContextualSignature(node);\n        if (!(links.flags & 64)) {\n          links.flags |= 64;\n          const signature = firstOrUndefined(getSignaturesOfType(getTypeOfSymbol(getSymbolOfDeclaration(node)), 0));\n          if (!signature) {\n            return;\n          }\n          if (isContextSensitive(node)) {\n            if (contextualSignature) {\n              const inferenceContext = getInferenceContext(node);\n              let instantiatedContextualSignature;\n              if (checkMode && checkMode & 2) {\n                inferFromAnnotatedParameters(signature, contextualSignature, inferenceContext);\n                const restType = getEffectiveRestType(contextualSignature);\n                if (restType && restType.flags & 262144) {\n                  instantiatedContextualSignature = instantiateSignature(contextualSignature, inferenceContext.nonFixingMapper);\n                }\n              }\n              instantiatedContextualSignature || (instantiatedContextualSignature = inferenceContext ? instantiateSignature(contextualSignature, inferenceContext.mapper) : contextualSignature);\n              assignContextualParameterTypes(signature, instantiatedContextualSignature);\n            } else {\n              assignNonContextualParameterTypes(signature);\n            }\n          }\n          if (contextualSignature && !getReturnTypeFromAnnotation(node) && !signature.resolvedReturnType) {\n            const returnType = getReturnTypeFromBody(node, checkMode);\n            if (!signature.resolvedReturnType) {\n              signature.resolvedReturnType = returnType;\n            }\n          }\n          checkSignatureDeclaration(node);\n        }\n      }\n    }\n    function checkFunctionExpressionOrObjectLiteralMethodDeferred(node) {\n      Debug.assert(node.kind !== 171 || isObjectLiteralMethod(node));\n      const functionFlags = getFunctionFlags(node);\n      const returnType = getReturnTypeFromAnnotation(node);\n      checkAllCodePathsInNonVoidFunctionReturnOrThrow(node, returnType);\n      if (node.body) {\n        if (!getEffectiveReturnTypeNode(node)) {\n          getReturnTypeOfSignature(getSignatureFromDeclaration(node));\n        }\n        if (node.body.kind === 238) {\n          checkSourceElement(node.body);\n        } else {\n          const exprType = checkExpression(node.body);\n          const returnOrPromisedType = returnType && unwrapReturnType(returnType, functionFlags);\n          if (returnOrPromisedType) {\n            if ((functionFlags & 3) === 2) {\n              const awaitedType = checkAwaitedType(exprType, false, node.body, Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);\n              checkTypeAssignableToAndOptionallyElaborate(awaitedType, returnOrPromisedType, node.body, node.body);\n            } else {\n              checkTypeAssignableToAndOptionallyElaborate(exprType, returnOrPromisedType, node.body, node.body);\n            }\n          }\n        }\n      }\n    }\n    function checkArithmeticOperandType(operand, type, diagnostic, isAwaitValid = false) {\n      if (!isTypeAssignableTo(type, numberOrBigIntType)) {\n        const awaitedType = isAwaitValid && getAwaitedTypeOfPromise(type);\n        errorAndMaybeSuggestAwait(operand, !!awaitedType && isTypeAssignableTo(awaitedType, numberOrBigIntType), diagnostic);\n        return false;\n      }\n      return true;\n    }\n    function isReadonlyAssignmentDeclaration(d) {\n      if (!isCallExpression(d)) {\n        return false;\n      }\n      if (!isBindableObjectDefinePropertyCall(d)) {\n        return false;\n      }\n      const objectLitType = checkExpressionCached(d.arguments[2]);\n      const valueType = getTypeOfPropertyOfType(objectLitType, \"value\");\n      if (valueType) {\n        const writableProp = getPropertyOfType(objectLitType, \"writable\");\n        const writableType = writableProp && getTypeOfSymbol(writableProp);\n        if (!writableType || writableType === falseType || writableType === regularFalseType) {\n          return true;\n        }\n        if (writableProp && writableProp.valueDeclaration && isPropertyAssignment(writableProp.valueDeclaration)) {\n          const initializer = writableProp.valueDeclaration.initializer;\n          const rawOriginalType = checkExpression(initializer);\n          if (rawOriginalType === falseType || rawOriginalType === regularFalseType) {\n            return true;\n          }\n        }\n        return false;\n      }\n      const setProp = getPropertyOfType(objectLitType, \"set\");\n      return !setProp;\n    }\n    function isReadonlySymbol(symbol) {\n      return !!(getCheckFlags(symbol) & 8 || symbol.flags & 4 && getDeclarationModifierFlagsFromSymbol(symbol) & 64 || symbol.flags & 3 && getDeclarationNodeFlagsFromSymbol(symbol) & 2 || symbol.flags & 98304 && !(symbol.flags & 65536) || symbol.flags & 8 || some(symbol.declarations, isReadonlyAssignmentDeclaration));\n    }\n    function isAssignmentToReadonlyEntity(expr, symbol, assignmentKind) {\n      var _a2, _b;\n      if (assignmentKind === 0) {\n        return false;\n      }\n      if (isReadonlySymbol(symbol)) {\n        if (symbol.flags & 4 && isAccessExpression(expr) && expr.expression.kind === 108) {\n          const ctor = getContainingFunction(expr);\n          if (!(ctor && (ctor.kind === 173 || isJSConstructor(ctor)))) {\n            return true;\n          }\n          if (symbol.valueDeclaration) {\n            const isAssignmentDeclaration2 = isBinaryExpression(symbol.valueDeclaration);\n            const isLocalPropertyDeclaration = ctor.parent === symbol.valueDeclaration.parent;\n            const isLocalParameterProperty = ctor === symbol.valueDeclaration.parent;\n            const isLocalThisPropertyAssignment = isAssignmentDeclaration2 && ((_a2 = symbol.parent) == null ? void 0 : _a2.valueDeclaration) === ctor.parent;\n            const isLocalThisPropertyAssignmentConstructorFunction = isAssignmentDeclaration2 && ((_b = symbol.parent) == null ? void 0 : _b.valueDeclaration) === ctor;\n            const isWriteableSymbol = isLocalPropertyDeclaration || isLocalParameterProperty || isLocalThisPropertyAssignment || isLocalThisPropertyAssignmentConstructorFunction;\n            return !isWriteableSymbol;\n          }\n        }\n        return true;\n      }\n      if (isAccessExpression(expr)) {\n        const node = skipParentheses(expr.expression);\n        if (node.kind === 79) {\n          const symbol2 = getNodeLinks(node).resolvedSymbol;\n          if (symbol2.flags & 2097152) {\n            const declaration = getDeclarationOfAliasSymbol(symbol2);\n            return !!declaration && declaration.kind === 271;\n          }\n        }\n      }\n      return false;\n    }\n    function checkReferenceExpression(expr, invalidReferenceMessage, invalidOptionalChainMessage) {\n      const node = skipOuterExpressions(expr, 6 | 1);\n      if (node.kind !== 79 && !isAccessExpression(node)) {\n        error(expr, invalidReferenceMessage);\n        return false;\n      }\n      if (node.flags & 32) {\n        error(expr, invalidOptionalChainMessage);\n        return false;\n      }\n      return true;\n    }\n    function checkDeleteExpression(node) {\n      checkExpression(node.expression);\n      const expr = skipParentheses(node.expression);\n      if (!isAccessExpression(expr)) {\n        error(expr, Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference);\n        return booleanType;\n      }\n      if (isPropertyAccessExpression(expr) && isPrivateIdentifier(expr.name)) {\n        error(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);\n      }\n      const links = getNodeLinks(expr);\n      const symbol = getExportSymbolOfValueSymbolIfExported(links.resolvedSymbol);\n      if (symbol) {\n        if (isReadonlySymbol(symbol)) {\n          error(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property);\n        }\n        checkDeleteExpressionMustBeOptional(expr, symbol);\n      }\n      return booleanType;\n    }\n    function checkDeleteExpressionMustBeOptional(expr, symbol) {\n      const type = getTypeOfSymbol(symbol);\n      if (strictNullChecks && !(type.flags & (3 | 131072)) && !(exactOptionalPropertyTypes ? symbol.flags & 16777216 : getTypeFacts(type) & 16777216)) {\n        error(expr, Diagnostics.The_operand_of_a_delete_operator_must_be_optional);\n      }\n    }\n    function checkTypeOfExpression(node) {\n      checkExpression(node.expression);\n      return typeofType;\n    }\n    function checkVoidExpression(node) {\n      checkExpression(node.expression);\n      return undefinedWideningType;\n    }\n    function checkAwaitExpressionGrammar(node) {\n      const container = getContainingFunctionOrClassStaticBlock(node);\n      if (container && isClassStaticBlockDeclaration(container)) {\n        error(node, Diagnostics.Await_expression_cannot_be_used_inside_a_class_static_block);\n      } else if (!(node.flags & 32768)) {\n        if (isInTopLevelContext(node)) {\n          const sourceFile = getSourceFileOfNode(node);\n          if (!hasParseDiagnostics(sourceFile)) {\n            let span;\n            if (!isEffectiveExternalModule(sourceFile, compilerOptions)) {\n              span != null ? span : span = getSpanOfTokenAtPosition(sourceFile, node.pos);\n              const diagnostic = createFileDiagnostic(sourceFile, span.start, span.length, Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module);\n              diagnostics.add(diagnostic);\n            }\n            switch (moduleKind) {\n              case 100:\n              case 199:\n                if (sourceFile.impliedNodeFormat === 1) {\n                  span != null ? span : span = getSpanOfTokenAtPosition(sourceFile, node.pos);\n                  diagnostics.add(createFileDiagnostic(sourceFile, span.start, span.length, Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));\n                  break;\n                }\n              case 7:\n              case 99:\n              case 4:\n                if (languageVersion >= 4) {\n                  break;\n                }\n              default:\n                span != null ? span : span = getSpanOfTokenAtPosition(sourceFile, node.pos);\n                diagnostics.add(createFileDiagnostic(sourceFile, span.start, span.length, Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher));\n                break;\n            }\n          }\n        } else {\n          const sourceFile = getSourceFileOfNode(node);\n          if (!hasParseDiagnostics(sourceFile)) {\n            const span = getSpanOfTokenAtPosition(sourceFile, node.pos);\n            const diagnostic = createFileDiagnostic(sourceFile, span.start, span.length, Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules);\n            if (container && container.kind !== 173 && (getFunctionFlags(container) & 2) === 0) {\n              const relatedInfo = createDiagnosticForNode(container, Diagnostics.Did_you_mean_to_mark_this_function_as_async);\n              addRelatedInfo(diagnostic, relatedInfo);\n            }\n            diagnostics.add(diagnostic);\n          }\n        }\n      }\n      if (isInParameterInitializerBeforeContainingFunction(node)) {\n        error(node, Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer);\n      }\n    }\n    function checkAwaitExpression(node) {\n      addLazyDiagnostic(() => checkAwaitExpressionGrammar(node));\n      const operandType = checkExpression(node.expression);\n      const awaitedType = checkAwaitedType(operandType, true, node, Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);\n      if (awaitedType === operandType && !isErrorType(awaitedType) && !(operandType.flags & 3)) {\n        addErrorOrSuggestion(false, createDiagnosticForNode(node, Diagnostics.await_has_no_effect_on_the_type_of_this_expression));\n      }\n      return awaitedType;\n    }\n    function checkPrefixUnaryExpression(node) {\n      const operandType = checkExpression(node.operand);\n      if (operandType === silentNeverType) {\n        return silentNeverType;\n      }\n      switch (node.operand.kind) {\n        case 8:\n          switch (node.operator) {\n            case 40:\n              return getFreshTypeOfLiteralType(getNumberLiteralType(-node.operand.text));\n            case 39:\n              return getFreshTypeOfLiteralType(getNumberLiteralType(+node.operand.text));\n          }\n          break;\n        case 9:\n          if (node.operator === 40) {\n            return getFreshTypeOfLiteralType(getBigIntLiteralType({\n              negative: true,\n              base10Value: parsePseudoBigInt(node.operand.text)\n            }));\n          }\n      }\n      switch (node.operator) {\n        case 39:\n        case 40:\n        case 54:\n          checkNonNullType(operandType, node.operand);\n          if (maybeTypeOfKindConsideringBaseConstraint(operandType, 12288)) {\n            error(node.operand, Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, tokenToString(node.operator));\n          }\n          if (node.operator === 39) {\n            if (maybeTypeOfKindConsideringBaseConstraint(operandType, 2112)) {\n              error(node.operand, Diagnostics.Operator_0_cannot_be_applied_to_type_1, tokenToString(node.operator), typeToString(getBaseTypeOfLiteralType(operandType)));\n            }\n            return numberType;\n          }\n          return getUnaryResultType(operandType);\n        case 53:\n          checkTruthinessExpression(node.operand);\n          const facts = getTypeFacts(operandType) & (4194304 | 8388608);\n          return facts === 4194304 ? falseType : facts === 8388608 ? trueType : booleanType;\n        case 45:\n        case 46:\n          const ok = checkArithmeticOperandType(node.operand, checkNonNullType(operandType, node.operand), Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);\n          if (ok) {\n            checkReferenceExpression(node.operand, Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access, Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access);\n          }\n          return getUnaryResultType(operandType);\n      }\n      return errorType;\n    }\n    function checkPostfixUnaryExpression(node) {\n      const operandType = checkExpression(node.operand);\n      if (operandType === silentNeverType) {\n        return silentNeverType;\n      }\n      const ok = checkArithmeticOperandType(node.operand, checkNonNullType(operandType, node.operand), Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);\n      if (ok) {\n        checkReferenceExpression(node.operand, Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access, Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access);\n      }\n      return getUnaryResultType(operandType);\n    }\n    function getUnaryResultType(operandType) {\n      if (maybeTypeOfKind(operandType, 2112)) {\n        return isTypeAssignableToKind(operandType, 3) || maybeTypeOfKind(operandType, 296) ? numberOrBigIntType : bigintType;\n      }\n      return numberType;\n    }\n    function maybeTypeOfKindConsideringBaseConstraint(type, kind) {\n      if (maybeTypeOfKind(type, kind)) {\n        return true;\n      }\n      const baseConstraint = getBaseConstraintOrType(type);\n      return !!baseConstraint && maybeTypeOfKind(baseConstraint, kind);\n    }\n    function maybeTypeOfKind(type, kind) {\n      if (type.flags & kind) {\n        return true;\n      }\n      if (type.flags & 3145728) {\n        const types = type.types;\n        for (const t of types) {\n          if (maybeTypeOfKind(t, kind)) {\n            return true;\n          }\n        }\n      }\n      return false;\n    }\n    function isTypeAssignableToKind(source, kind, strict) {\n      if (source.flags & kind) {\n        return true;\n      }\n      if (strict && source.flags & (3 | 16384 | 32768 | 65536)) {\n        return false;\n      }\n      return !!(kind & 296) && isTypeAssignableTo(source, numberType) || !!(kind & 2112) && isTypeAssignableTo(source, bigintType) || !!(kind & 402653316) && isTypeAssignableTo(source, stringType) || !!(kind & 528) && isTypeAssignableTo(source, booleanType) || !!(kind & 16384) && isTypeAssignableTo(source, voidType) || !!(kind & 131072) && isTypeAssignableTo(source, neverType) || !!(kind & 65536) && isTypeAssignableTo(source, nullType) || !!(kind & 32768) && isTypeAssignableTo(source, undefinedType) || !!(kind & 4096) && isTypeAssignableTo(source, esSymbolType) || !!(kind & 67108864) && isTypeAssignableTo(source, nonPrimitiveType);\n    }\n    function allTypesAssignableToKind(source, kind, strict) {\n      return source.flags & 1048576 ? every(source.types, (subType) => allTypesAssignableToKind(subType, kind, strict)) : isTypeAssignableToKind(source, kind, strict);\n    }\n    function isConstEnumObjectType(type) {\n      return !!(getObjectFlags(type) & 16) && !!type.symbol && isConstEnumSymbol(type.symbol);\n    }\n    function isConstEnumSymbol(symbol) {\n      return (symbol.flags & 128) !== 0;\n    }\n    function checkInstanceOfExpression(left, right, leftType, rightType) {\n      if (leftType === silentNeverType || rightType === silentNeverType) {\n        return silentNeverType;\n      }\n      if (!isTypeAny(leftType) && allTypesAssignableToKind(leftType, 134348796)) {\n        error(left, Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter);\n      }\n      if (!(isTypeAny(rightType) || typeHasCallOrConstructSignatures(rightType) || isTypeSubtypeOf(rightType, globalFunctionType))) {\n        error(right, Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type);\n      }\n      return booleanType;\n    }\n    function hasEmptyObjectIntersection(type) {\n      return someType(type, (t) => t === unknownEmptyObjectType || !!(t.flags & 2097152) && isEmptyAnonymousObjectType(getBaseConstraintOrType(t)));\n    }\n    function checkInExpression(left, right, leftType, rightType) {\n      if (leftType === silentNeverType || rightType === silentNeverType) {\n        return silentNeverType;\n      }\n      if (isPrivateIdentifier(left)) {\n        if (languageVersion < 99) {\n          checkExternalEmitHelpers(left, 2097152);\n        }\n        if (!getNodeLinks(left).resolvedSymbol && getContainingClass(left)) {\n          const isUncheckedJS = isUncheckedJSSuggestion(left, rightType.symbol, true);\n          reportNonexistentProperty(left, rightType, isUncheckedJS);\n        }\n      } else {\n        checkTypeAssignableTo(checkNonNullType(leftType, left), stringNumberSymbolType, left);\n      }\n      if (checkTypeAssignableTo(checkNonNullType(rightType, right), nonPrimitiveType, right)) {\n        if (hasEmptyObjectIntersection(rightType)) {\n          error(right, Diagnostics.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator, typeToString(rightType));\n        }\n      }\n      return booleanType;\n    }\n    function checkObjectLiteralAssignment(node, sourceType, rightIsThis) {\n      const properties = node.properties;\n      if (strictNullChecks && properties.length === 0) {\n        return checkNonNullType(sourceType, node);\n      }\n      for (let i = 0; i < properties.length; i++) {\n        checkObjectLiteralDestructuringPropertyAssignment(node, sourceType, i, properties, rightIsThis);\n      }\n      return sourceType;\n    }\n    function checkObjectLiteralDestructuringPropertyAssignment(node, objectLiteralType, propertyIndex, allProperties, rightIsThis = false) {\n      const properties = node.properties;\n      const property = properties[propertyIndex];\n      if (property.kind === 299 || property.kind === 300) {\n        const name = property.name;\n        const exprType = getLiteralTypeFromPropertyName(name);\n        if (isTypeUsableAsPropertyName(exprType)) {\n          const text = getPropertyNameFromType(exprType);\n          const prop = getPropertyOfType(objectLiteralType, text);\n          if (prop) {\n            markPropertyAsReferenced(prop, property, rightIsThis);\n            checkPropertyAccessibility(property, false, true, objectLiteralType, prop);\n          }\n        }\n        const elementType = getIndexedAccessType(objectLiteralType, exprType, 32, name);\n        const type = getFlowTypeOfDestructuring(property, elementType);\n        return checkDestructuringAssignment(property.kind === 300 ? property : property.initializer, type);\n      } else if (property.kind === 301) {\n        if (propertyIndex < properties.length - 1) {\n          error(property, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);\n        } else {\n          if (languageVersion < 99) {\n            checkExternalEmitHelpers(property, 4);\n          }\n          const nonRestNames = [];\n          if (allProperties) {\n            for (const otherProperty of allProperties) {\n              if (!isSpreadAssignment(otherProperty)) {\n                nonRestNames.push(otherProperty.name);\n              }\n            }\n          }\n          const type = getRestType(objectLiteralType, nonRestNames, objectLiteralType.symbol);\n          checkGrammarForDisallowedTrailingComma(allProperties, Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);\n          return checkDestructuringAssignment(property.expression, type);\n        }\n      } else {\n        error(property, Diagnostics.Property_assignment_expected);\n      }\n    }\n    function checkArrayLiteralAssignment(node, sourceType, checkMode) {\n      const elements = node.elements;\n      if (languageVersion < 2 && compilerOptions.downlevelIteration) {\n        checkExternalEmitHelpers(node, 512);\n      }\n      const possiblyOutOfBoundsType = checkIteratedTypeOrElementType(65 | 128, sourceType, undefinedType, node) || errorType;\n      let inBoundsType = compilerOptions.noUncheckedIndexedAccess ? void 0 : possiblyOutOfBoundsType;\n      for (let i = 0; i < elements.length; i++) {\n        let type = possiblyOutOfBoundsType;\n        if (node.elements[i].kind === 227) {\n          type = inBoundsType = inBoundsType != null ? inBoundsType : checkIteratedTypeOrElementType(65, sourceType, undefinedType, node) || errorType;\n        }\n        checkArrayLiteralDestructuringElementAssignment(node, sourceType, i, type, checkMode);\n      }\n      return sourceType;\n    }\n    function checkArrayLiteralDestructuringElementAssignment(node, sourceType, elementIndex, elementType, checkMode) {\n      const elements = node.elements;\n      const element = elements[elementIndex];\n      if (element.kind !== 229) {\n        if (element.kind !== 227) {\n          const indexType = getNumberLiteralType(elementIndex);\n          if (isArrayLikeType(sourceType)) {\n            const accessFlags = 32 | (hasDefaultValue(element) ? 16 : 0);\n            const elementType2 = getIndexedAccessTypeOrUndefined(sourceType, indexType, accessFlags, createSyntheticExpression(element, indexType)) || errorType;\n            const assignedType = hasDefaultValue(element) ? getTypeWithFacts(elementType2, 524288) : elementType2;\n            const type = getFlowTypeOfDestructuring(element, assignedType);\n            return checkDestructuringAssignment(element, type, checkMode);\n          }\n          return checkDestructuringAssignment(element, elementType, checkMode);\n        }\n        if (elementIndex < elements.length - 1) {\n          error(element, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);\n        } else {\n          const restExpression = element.expression;\n          if (restExpression.kind === 223 && restExpression.operatorToken.kind === 63) {\n            error(restExpression.operatorToken, Diagnostics.A_rest_element_cannot_have_an_initializer);\n          } else {\n            checkGrammarForDisallowedTrailingComma(node.elements, Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);\n            const type = everyType(sourceType, isTupleType) ? mapType(sourceType, (t) => sliceTupleType(t, elementIndex)) : createArrayType(elementType);\n            return checkDestructuringAssignment(restExpression, type, checkMode);\n          }\n        }\n      }\n      return void 0;\n    }\n    function checkDestructuringAssignment(exprOrAssignment, sourceType, checkMode, rightIsThis) {\n      let target;\n      if (exprOrAssignment.kind === 300) {\n        const prop = exprOrAssignment;\n        if (prop.objectAssignmentInitializer) {\n          if (strictNullChecks && !(getTypeFacts(checkExpression(prop.objectAssignmentInitializer)) & 16777216)) {\n            sourceType = getTypeWithFacts(sourceType, 524288);\n          }\n          checkBinaryLikeExpression(prop.name, prop.equalsToken, prop.objectAssignmentInitializer, checkMode);\n        }\n        target = exprOrAssignment.name;\n      } else {\n        target = exprOrAssignment;\n      }\n      if (target.kind === 223 && target.operatorToken.kind === 63) {\n        checkBinaryExpression(target, checkMode);\n        target = target.left;\n        if (strictNullChecks) {\n          sourceType = getTypeWithFacts(sourceType, 524288);\n        }\n      }\n      if (target.kind === 207) {\n        return checkObjectLiteralAssignment(target, sourceType, rightIsThis);\n      }\n      if (target.kind === 206) {\n        return checkArrayLiteralAssignment(target, sourceType, checkMode);\n      }\n      return checkReferenceAssignment(target, sourceType, checkMode);\n    }\n    function checkReferenceAssignment(target, sourceType, checkMode) {\n      const targetType = checkExpression(target, checkMode);\n      const error2 = target.parent.kind === 301 ? Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access : Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access;\n      const optionalError = target.parent.kind === 301 ? Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access : Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;\n      if (checkReferenceExpression(target, error2, optionalError)) {\n        checkTypeAssignableToAndOptionallyElaborate(sourceType, targetType, target, target);\n      }\n      if (isPrivateIdentifierPropertyAccessExpression(target)) {\n        checkExternalEmitHelpers(target.parent, 1048576);\n      }\n      return sourceType;\n    }\n    function isSideEffectFree(node) {\n      node = skipParentheses(node);\n      switch (node.kind) {\n        case 79:\n        case 10:\n        case 13:\n        case 212:\n        case 225:\n        case 14:\n        case 8:\n        case 9:\n        case 110:\n        case 95:\n        case 104:\n        case 155:\n        case 215:\n        case 228:\n        case 216:\n        case 206:\n        case 207:\n        case 218:\n        case 232:\n        case 282:\n        case 281:\n          return true;\n        case 224:\n          return isSideEffectFree(node.whenTrue) && isSideEffectFree(node.whenFalse);\n        case 223:\n          if (isAssignmentOperator(node.operatorToken.kind)) {\n            return false;\n          }\n          return isSideEffectFree(node.left) && isSideEffectFree(node.right);\n        case 221:\n        case 222:\n          switch (node.operator) {\n            case 53:\n            case 39:\n            case 40:\n            case 54:\n              return true;\n          }\n          return false;\n        case 219:\n        case 213:\n        case 231:\n        default:\n          return false;\n      }\n    }\n    function isTypeEqualityComparableTo(source, target) {\n      return (target.flags & 98304) !== 0 || isTypeComparableTo(source, target);\n    }\n    function createCheckBinaryExpression() {\n      const trampoline = createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight, onExit, foldState);\n      return (node, checkMode) => {\n        const result = trampoline(node, checkMode);\n        Debug.assertIsDefined(result);\n        return result;\n      };\n      function onEnter(node, state, checkMode) {\n        if (state) {\n          state.stackIndex++;\n          state.skip = false;\n          setLeftType(state, void 0);\n          setLastResult(state, void 0);\n        } else {\n          state = {\n            checkMode,\n            skip: false,\n            stackIndex: 0,\n            typeStack: [void 0, void 0]\n          };\n        }\n        if (isInJSFile(node) && getAssignedExpandoInitializer(node)) {\n          state.skip = true;\n          setLastResult(state, checkExpression(node.right, checkMode));\n          return state;\n        }\n        checkGrammarNullishCoalesceWithLogicalExpression(node);\n        const operator = node.operatorToken.kind;\n        if (operator === 63 && (node.left.kind === 207 || node.left.kind === 206)) {\n          state.skip = true;\n          setLastResult(state, checkDestructuringAssignment(node.left, checkExpression(node.right, checkMode), checkMode, node.right.kind === 108));\n          return state;\n        }\n        return state;\n      }\n      function onLeft(left, state, _node) {\n        if (!state.skip) {\n          return maybeCheckExpression(state, left);\n        }\n      }\n      function onOperator(operatorToken, state, node) {\n        if (!state.skip) {\n          const leftType = getLastResult(state);\n          Debug.assertIsDefined(leftType);\n          setLeftType(state, leftType);\n          setLastResult(state, void 0);\n          const operator = operatorToken.kind;\n          if (isLogicalOrCoalescingBinaryOperator(operator)) {\n            let parent2 = node.parent;\n            while (parent2.kind === 214 || isLogicalOrCoalescingBinaryExpression(parent2)) {\n              parent2 = parent2.parent;\n            }\n            if (operator === 55 || isIfStatement(parent2)) {\n              checkTestingKnownTruthyCallableOrAwaitableType(node.left, leftType, isIfStatement(parent2) ? parent2.thenStatement : void 0);\n            }\n            checkTruthinessOfType(leftType, node.left);\n          }\n        }\n      }\n      function onRight(right, state, _node) {\n        if (!state.skip) {\n          return maybeCheckExpression(state, right);\n        }\n      }\n      function onExit(node, state) {\n        let result;\n        if (state.skip) {\n          result = getLastResult(state);\n        } else {\n          const leftType = getLeftType(state);\n          Debug.assertIsDefined(leftType);\n          const rightType = getLastResult(state);\n          Debug.assertIsDefined(rightType);\n          result = checkBinaryLikeExpressionWorker(node.left, node.operatorToken, node.right, leftType, rightType, node);\n        }\n        state.skip = false;\n        setLeftType(state, void 0);\n        setLastResult(state, void 0);\n        state.stackIndex--;\n        return result;\n      }\n      function foldState(state, result, _side) {\n        setLastResult(state, result);\n        return state;\n      }\n      function maybeCheckExpression(state, node) {\n        if (isBinaryExpression(node)) {\n          return node;\n        }\n        setLastResult(state, checkExpression(node, state.checkMode));\n      }\n      function getLeftType(state) {\n        return state.typeStack[state.stackIndex];\n      }\n      function setLeftType(state, type) {\n        state.typeStack[state.stackIndex] = type;\n      }\n      function getLastResult(state) {\n        return state.typeStack[state.stackIndex + 1];\n      }\n      function setLastResult(state, type) {\n        state.typeStack[state.stackIndex + 1] = type;\n      }\n    }\n    function checkGrammarNullishCoalesceWithLogicalExpression(node) {\n      const { left, operatorToken, right } = node;\n      if (operatorToken.kind === 60) {\n        if (isBinaryExpression(left) && (left.operatorToken.kind === 56 || left.operatorToken.kind === 55)) {\n          grammarErrorOnNode(left, Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses, tokenToString(left.operatorToken.kind), tokenToString(operatorToken.kind));\n        }\n        if (isBinaryExpression(right) && (right.operatorToken.kind === 56 || right.operatorToken.kind === 55)) {\n          grammarErrorOnNode(right, Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses, tokenToString(right.operatorToken.kind), tokenToString(operatorToken.kind));\n        }\n      }\n    }\n    function checkBinaryLikeExpression(left, operatorToken, right, checkMode, errorNode) {\n      const operator = operatorToken.kind;\n      if (operator === 63 && (left.kind === 207 || left.kind === 206)) {\n        return checkDestructuringAssignment(left, checkExpression(right, checkMode), checkMode, right.kind === 108);\n      }\n      let leftType;\n      if (isLogicalOrCoalescingBinaryOperator(operator)) {\n        leftType = checkTruthinessExpression(left, checkMode);\n      } else {\n        leftType = checkExpression(left, checkMode);\n      }\n      const rightType = checkExpression(right, checkMode);\n      return checkBinaryLikeExpressionWorker(left, operatorToken, right, leftType, rightType, errorNode);\n    }\n    function checkBinaryLikeExpressionWorker(left, operatorToken, right, leftType, rightType, errorNode) {\n      const operator = operatorToken.kind;\n      switch (operator) {\n        case 41:\n        case 42:\n        case 66:\n        case 67:\n        case 43:\n        case 68:\n        case 44:\n        case 69:\n        case 40:\n        case 65:\n        case 47:\n        case 70:\n        case 48:\n        case 71:\n        case 49:\n        case 72:\n        case 51:\n        case 74:\n        case 52:\n        case 78:\n        case 50:\n        case 73:\n          if (leftType === silentNeverType || rightType === silentNeverType) {\n            return silentNeverType;\n          }\n          leftType = checkNonNullType(leftType, left);\n          rightType = checkNonNullType(rightType, right);\n          let suggestedOperator;\n          if (leftType.flags & 528 && rightType.flags & 528 && (suggestedOperator = getSuggestedBooleanOperator(operatorToken.kind)) !== void 0) {\n            error(errorNode || operatorToken, Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead, tokenToString(operatorToken.kind), tokenToString(suggestedOperator));\n            return numberType;\n          } else {\n            const leftOk = checkArithmeticOperandType(left, leftType, Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type, true);\n            const rightOk = checkArithmeticOperandType(right, rightType, Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type, true);\n            let resultType2;\n            if (isTypeAssignableToKind(leftType, 3) && isTypeAssignableToKind(rightType, 3) || !(maybeTypeOfKind(leftType, 2112) || maybeTypeOfKind(rightType, 2112))) {\n              resultType2 = numberType;\n            } else if (bothAreBigIntLike(leftType, rightType)) {\n              switch (operator) {\n                case 49:\n                case 72:\n                  reportOperatorError();\n                  break;\n                case 42:\n                case 67:\n                  if (languageVersion < 3) {\n                    error(errorNode, Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later);\n                  }\n              }\n              resultType2 = bigintType;\n            } else {\n              reportOperatorError(bothAreBigIntLike);\n              resultType2 = errorType;\n            }\n            if (leftOk && rightOk) {\n              checkAssignmentOperator(resultType2);\n            }\n            return resultType2;\n          }\n        case 39:\n        case 64:\n          if (leftType === silentNeverType || rightType === silentNeverType) {\n            return silentNeverType;\n          }\n          if (!isTypeAssignableToKind(leftType, 402653316) && !isTypeAssignableToKind(rightType, 402653316)) {\n            leftType = checkNonNullType(leftType, left);\n            rightType = checkNonNullType(rightType, right);\n          }\n          let resultType;\n          if (isTypeAssignableToKind(leftType, 296, true) && isTypeAssignableToKind(rightType, 296, true)) {\n            resultType = numberType;\n          } else if (isTypeAssignableToKind(leftType, 2112, true) && isTypeAssignableToKind(rightType, 2112, true)) {\n            resultType = bigintType;\n          } else if (isTypeAssignableToKind(leftType, 402653316, true) || isTypeAssignableToKind(rightType, 402653316, true)) {\n            resultType = stringType;\n          } else if (isTypeAny(leftType) || isTypeAny(rightType)) {\n            resultType = isErrorType(leftType) || isErrorType(rightType) ? errorType : anyType;\n          }\n          if (resultType && !checkForDisallowedESSymbolOperand(operator)) {\n            return resultType;\n          }\n          if (!resultType) {\n            const closeEnoughKind = 296 | 2112 | 402653316 | 3;\n            reportOperatorError((left2, right2) => isTypeAssignableToKind(left2, closeEnoughKind) && isTypeAssignableToKind(right2, closeEnoughKind));\n            return anyType;\n          }\n          if (operator === 64) {\n            checkAssignmentOperator(resultType);\n          }\n          return resultType;\n        case 29:\n        case 31:\n        case 32:\n        case 33:\n          if (checkForDisallowedESSymbolOperand(operator)) {\n            leftType = getBaseTypeOfLiteralTypeForComparison(checkNonNullType(leftType, left));\n            rightType = getBaseTypeOfLiteralTypeForComparison(checkNonNullType(rightType, right));\n            reportOperatorErrorUnless((left2, right2) => {\n              if (isTypeAny(left2) || isTypeAny(right2)) {\n                return true;\n              }\n              const leftAssignableToNumber = isTypeAssignableTo(left2, numberOrBigIntType);\n              const rightAssignableToNumber = isTypeAssignableTo(right2, numberOrBigIntType);\n              return leftAssignableToNumber && rightAssignableToNumber || !leftAssignableToNumber && !rightAssignableToNumber && areTypesComparable(left2, right2);\n            });\n          }\n          return booleanType;\n        case 34:\n        case 35:\n        case 36:\n        case 37:\n          if (isLiteralExpressionOfObject(left) || isLiteralExpressionOfObject(right)) {\n            const eqType = operator === 34 || operator === 36;\n            error(errorNode, Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value, eqType ? \"false\" : \"true\");\n          }\n          checkNaNEquality(errorNode, operator, left, right);\n          reportOperatorErrorUnless((left2, right2) => isTypeEqualityComparableTo(left2, right2) || isTypeEqualityComparableTo(right2, left2));\n          return booleanType;\n        case 102:\n          return checkInstanceOfExpression(left, right, leftType, rightType);\n        case 101:\n          return checkInExpression(left, right, leftType, rightType);\n        case 55:\n        case 76: {\n          const resultType2 = getTypeFacts(leftType) & 4194304 ? getUnionType([extractDefinitelyFalsyTypes(strictNullChecks ? leftType : getBaseTypeOfLiteralType(rightType)), rightType]) : leftType;\n          if (operator === 76) {\n            checkAssignmentOperator(rightType);\n          }\n          return resultType2;\n        }\n        case 56:\n        case 75: {\n          const resultType2 = getTypeFacts(leftType) & 8388608 ? getUnionType([getNonNullableType(removeDefinitelyFalsyTypes(leftType)), rightType], 2) : leftType;\n          if (operator === 75) {\n            checkAssignmentOperator(rightType);\n          }\n          return resultType2;\n        }\n        case 60:\n        case 77: {\n          const resultType2 = getTypeFacts(leftType) & 262144 ? getUnionType([getNonNullableType(leftType), rightType], 2) : leftType;\n          if (operator === 77) {\n            checkAssignmentOperator(rightType);\n          }\n          return resultType2;\n        }\n        case 63:\n          const declKind = isBinaryExpression(left.parent) ? getAssignmentDeclarationKind(left.parent) : 0;\n          checkAssignmentDeclaration(declKind, rightType);\n          if (isAssignmentDeclaration2(declKind)) {\n            if (!(rightType.flags & 524288) || declKind !== 2 && declKind !== 6 && !isEmptyObjectType(rightType) && !isFunctionObjectType(rightType) && !(getObjectFlags(rightType) & 1)) {\n              checkAssignmentOperator(rightType);\n            }\n            return leftType;\n          } else {\n            checkAssignmentOperator(rightType);\n            return rightType;\n          }\n        case 27:\n          if (!compilerOptions.allowUnreachableCode && isSideEffectFree(left) && !isIndirectCall(left.parent)) {\n            const sf = getSourceFileOfNode(left);\n            const sourceText = sf.text;\n            const start = skipTrivia(sourceText, left.pos);\n            const isInDiag2657 = sf.parseDiagnostics.some((diag2) => {\n              if (diag2.code !== Diagnostics.JSX_expressions_must_have_one_parent_element.code)\n                return false;\n              return textSpanContainsPosition(diag2, start);\n            });\n            if (!isInDiag2657)\n              error(left, Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects);\n          }\n          return rightType;\n        default:\n          return Debug.fail();\n      }\n      function bothAreBigIntLike(left2, right2) {\n        return isTypeAssignableToKind(left2, 2112) && isTypeAssignableToKind(right2, 2112);\n      }\n      function checkAssignmentDeclaration(kind, rightType2) {\n        if (kind === 2) {\n          for (const prop of getPropertiesOfObjectType(rightType2)) {\n            const propType = getTypeOfSymbol(prop);\n            if (propType.symbol && propType.symbol.flags & 32) {\n              const name = prop.escapedName;\n              const symbol = resolveName(prop.valueDeclaration, name, 788968, void 0, name, false);\n              if ((symbol == null ? void 0 : symbol.declarations) && symbol.declarations.some(isJSDocTypedefTag)) {\n                addDuplicateDeclarationErrorsForSymbols(symbol, Diagnostics.Duplicate_identifier_0, unescapeLeadingUnderscores(name), prop);\n                addDuplicateDeclarationErrorsForSymbols(prop, Diagnostics.Duplicate_identifier_0, unescapeLeadingUnderscores(name), symbol);\n              }\n            }\n          }\n        }\n      }\n      function isIndirectCall(node) {\n        return node.parent.kind === 214 && isNumericLiteral(node.left) && node.left.text === \"0\" && (isCallExpression(node.parent.parent) && node.parent.parent.expression === node.parent || node.parent.parent.kind === 212) && (isAccessExpression(node.right) || isIdentifier(node.right) && node.right.escapedText === \"eval\");\n      }\n      function checkForDisallowedESSymbolOperand(operator2) {\n        const offendingSymbolOperand = maybeTypeOfKindConsideringBaseConstraint(leftType, 12288) ? left : maybeTypeOfKindConsideringBaseConstraint(rightType, 12288) ? right : void 0;\n        if (offendingSymbolOperand) {\n          error(offendingSymbolOperand, Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, tokenToString(operator2));\n          return false;\n        }\n        return true;\n      }\n      function getSuggestedBooleanOperator(operator2) {\n        switch (operator2) {\n          case 51:\n          case 74:\n            return 56;\n          case 52:\n          case 78:\n            return 37;\n          case 50:\n          case 73:\n            return 55;\n          default:\n            return void 0;\n        }\n      }\n      function checkAssignmentOperator(valueType) {\n        if (isAssignmentOperator(operator)) {\n          addLazyDiagnostic(checkAssignmentOperatorWorker);\n        }\n        function checkAssignmentOperatorWorker() {\n          if (checkReferenceExpression(left, Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access, Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)) {\n            let headMessage;\n            if (exactOptionalPropertyTypes && isPropertyAccessExpression(left) && maybeTypeOfKind(valueType, 32768)) {\n              const target = getTypeOfPropertyOfType(getTypeOfExpression(left.expression), left.name.escapedText);\n              if (isExactOptionalPropertyMismatch(valueType, target)) {\n                headMessage = Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target;\n              }\n            }\n            checkTypeAssignableToAndOptionallyElaborate(valueType, leftType, left, right, headMessage);\n          }\n        }\n      }\n      function isAssignmentDeclaration2(kind) {\n        var _a2;\n        switch (kind) {\n          case 2:\n            return true;\n          case 1:\n          case 5:\n          case 6:\n          case 3:\n          case 4:\n            const symbol = getSymbolOfNode(left);\n            const init = getAssignedExpandoInitializer(right);\n            return !!init && isObjectLiteralExpression(init) && !!((_a2 = symbol == null ? void 0 : symbol.exports) == null ? void 0 : _a2.size);\n          default:\n            return false;\n        }\n      }\n      function reportOperatorErrorUnless(typesAreCompatible) {\n        if (!typesAreCompatible(leftType, rightType)) {\n          reportOperatorError(typesAreCompatible);\n          return true;\n        }\n        return false;\n      }\n      function reportOperatorError(isRelated) {\n        let wouldWorkWithAwait = false;\n        const errNode = errorNode || operatorToken;\n        if (isRelated) {\n          const awaitedLeftType = getAwaitedTypeNoAlias(leftType);\n          const awaitedRightType = getAwaitedTypeNoAlias(rightType);\n          wouldWorkWithAwait = !(awaitedLeftType === leftType && awaitedRightType === rightType) && !!(awaitedLeftType && awaitedRightType) && isRelated(awaitedLeftType, awaitedRightType);\n        }\n        let effectiveLeft = leftType;\n        let effectiveRight = rightType;\n        if (!wouldWorkWithAwait && isRelated) {\n          [effectiveLeft, effectiveRight] = getBaseTypesIfUnrelated(leftType, rightType, isRelated);\n        }\n        const [leftStr, rightStr] = getTypeNamesForErrorDisplay(effectiveLeft, effectiveRight);\n        if (!tryGiveBetterPrimaryError(errNode, wouldWorkWithAwait, leftStr, rightStr)) {\n          errorAndMaybeSuggestAwait(errNode, wouldWorkWithAwait, Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2, tokenToString(operatorToken.kind), leftStr, rightStr);\n        }\n      }\n      function tryGiveBetterPrimaryError(errNode, maybeMissingAwait, leftStr, rightStr) {\n        switch (operatorToken.kind) {\n          case 36:\n          case 34:\n          case 37:\n          case 35:\n            return errorAndMaybeSuggestAwait(errNode, maybeMissingAwait, Diagnostics.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap, leftStr, rightStr);\n          default:\n            return void 0;\n        }\n      }\n      function checkNaNEquality(errorNode2, operator2, left2, right2) {\n        const isLeftNaN = isGlobalNaN(skipParentheses(left2));\n        const isRightNaN = isGlobalNaN(skipParentheses(right2));\n        if (isLeftNaN || isRightNaN) {\n          const err = error(errorNode2, Diagnostics.This_condition_will_always_return_0, tokenToString(operator2 === 36 || operator2 === 34 ? 95 : 110));\n          if (isLeftNaN && isRightNaN)\n            return;\n          const operatorString = operator2 === 37 || operator2 === 35 ? tokenToString(53) : \"\";\n          const location = isLeftNaN ? right2 : left2;\n          const expression = skipParentheses(location);\n          addRelatedInfo(err, createDiagnosticForNode(location, Diagnostics.Did_you_mean_0, `${operatorString}Number.isNaN(${isEntityNameExpression(expression) ? entityNameToString(expression) : \"...\"})`));\n        }\n      }\n      function isGlobalNaN(expr) {\n        if (isIdentifier(expr) && expr.escapedText === \"NaN\") {\n          const globalNaNSymbol = getGlobalNaNSymbol();\n          return !!globalNaNSymbol && globalNaNSymbol === getResolvedSymbol(expr);\n        }\n        return false;\n      }\n    }\n    function getBaseTypesIfUnrelated(leftType, rightType, isRelated) {\n      let effectiveLeft = leftType;\n      let effectiveRight = rightType;\n      const leftBase = getBaseTypeOfLiteralType(leftType);\n      const rightBase = getBaseTypeOfLiteralType(rightType);\n      if (!isRelated(leftBase, rightBase)) {\n        effectiveLeft = leftBase;\n        effectiveRight = rightBase;\n      }\n      return [effectiveLeft, effectiveRight];\n    }\n    function checkYieldExpression(node) {\n      addLazyDiagnostic(checkYieldExpressionGrammar);\n      const func = getContainingFunction(node);\n      if (!func)\n        return anyType;\n      const functionFlags = getFunctionFlags(func);\n      if (!(functionFlags & 1)) {\n        return anyType;\n      }\n      const isAsync = (functionFlags & 2) !== 0;\n      if (node.asteriskToken) {\n        if (isAsync && languageVersion < 99) {\n          checkExternalEmitHelpers(node, 26624);\n        }\n        if (!isAsync && languageVersion < 2 && compilerOptions.downlevelIteration) {\n          checkExternalEmitHelpers(node, 256);\n        }\n      }\n      const returnType = getReturnTypeFromAnnotation(func);\n      const iterationTypes = returnType && getIterationTypesOfGeneratorFunctionReturnType(returnType, isAsync);\n      const signatureYieldType = iterationTypes && iterationTypes.yieldType || anyType;\n      const signatureNextType = iterationTypes && iterationTypes.nextType || anyType;\n      const resolvedSignatureNextType = isAsync ? getAwaitedType(signatureNextType) || anyType : signatureNextType;\n      const yieldExpressionType = node.expression ? checkExpression(node.expression) : undefinedWideningType;\n      const yieldedType = getYieldedTypeOfYieldExpression(node, yieldExpressionType, resolvedSignatureNextType, isAsync);\n      if (returnType && yieldedType) {\n        checkTypeAssignableToAndOptionallyElaborate(yieldedType, signatureYieldType, node.expression || node, node.expression);\n      }\n      if (node.asteriskToken) {\n        const use = isAsync ? 19 : 17;\n        return getIterationTypeOfIterable(use, 1, yieldExpressionType, node.expression) || anyType;\n      } else if (returnType) {\n        return getIterationTypeOfGeneratorFunctionReturnType(2, returnType, isAsync) || anyType;\n      }\n      let type = getContextualIterationType(2, func);\n      if (!type) {\n        type = anyType;\n        addLazyDiagnostic(() => {\n          if (noImplicitAny && !expressionResultIsUnused(node)) {\n            const contextualType = getContextualType2(node, void 0);\n            if (!contextualType || isTypeAny(contextualType)) {\n              error(node, Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation);\n            }\n          }\n        });\n      }\n      return type;\n      function checkYieldExpressionGrammar() {\n        if (!(node.flags & 8192)) {\n          grammarErrorOnFirstToken(node, Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body);\n        }\n        if (isInParameterInitializerBeforeContainingFunction(node)) {\n          error(node, Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer);\n        }\n      }\n    }\n    function checkConditionalExpression(node, checkMode) {\n      const type = checkTruthinessExpression(node.condition);\n      checkTestingKnownTruthyCallableOrAwaitableType(node.condition, type, node.whenTrue);\n      const type1 = checkExpression(node.whenTrue, checkMode);\n      const type2 = checkExpression(node.whenFalse, checkMode);\n      return getUnionType([type1, type2], 2);\n    }\n    function isTemplateLiteralContext(node) {\n      const parent2 = node.parent;\n      return isParenthesizedExpression(parent2) && isTemplateLiteralContext(parent2) || isElementAccessExpression(parent2) && parent2.argumentExpression === node;\n    }\n    function checkTemplateExpression(node) {\n      const texts = [node.head.text];\n      const types = [];\n      for (const span of node.templateSpans) {\n        const type = checkExpression(span.expression);\n        if (maybeTypeOfKindConsideringBaseConstraint(type, 12288)) {\n          error(span.expression, Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String);\n        }\n        texts.push(span.literal.text);\n        types.push(isTypeAssignableTo(type, templateConstraintType) ? type : stringType);\n      }\n      return isConstContext(node) || isTemplateLiteralContext(node) || someType(getContextualType2(node, void 0) || unknownType, isTemplateLiteralContextualType) ? getTemplateLiteralType(texts, types) : stringType;\n    }\n    function isTemplateLiteralContextualType(type) {\n      return !!(type.flags & (128 | 134217728) || type.flags & 58982400 && maybeTypeOfKind(getBaseConstraintOfType(type) || unknownType, 402653316));\n    }\n    function getContextNode2(node) {\n      if (isJsxAttributes(node) && !isJsxSelfClosingElement(node.parent)) {\n        return node.parent.parent;\n      }\n      return node;\n    }\n    function checkExpressionWithContextualType(node, contextualType, inferenceContext, checkMode) {\n      const contextNode = getContextNode2(node);\n      pushContextualType(contextNode, contextualType, false);\n      pushInferenceContext(contextNode, inferenceContext);\n      const type = checkExpression(node, checkMode | 1 | (inferenceContext ? 2 : 0));\n      if (inferenceContext && inferenceContext.intraExpressionInferenceSites) {\n        inferenceContext.intraExpressionInferenceSites = void 0;\n      }\n      const result = maybeTypeOfKind(type, 2944) && isLiteralOfContextualType(type, instantiateContextualType(contextualType, node, void 0)) ? getRegularTypeOfLiteralType(type) : type;\n      popInferenceContext();\n      popContextualType();\n      return result;\n    }\n    function checkExpressionCached(node, checkMode) {\n      if (checkMode) {\n        return checkExpression(node, checkMode);\n      }\n      const links = getNodeLinks(node);\n      if (!links.resolvedType) {\n        const saveFlowLoopStart = flowLoopStart;\n        const saveFlowTypeCache = flowTypeCache;\n        flowLoopStart = flowLoopCount;\n        flowTypeCache = void 0;\n        links.resolvedType = checkExpression(node, checkMode);\n        flowTypeCache = saveFlowTypeCache;\n        flowLoopStart = saveFlowLoopStart;\n      }\n      return links.resolvedType;\n    }\n    function isTypeAssertion(node) {\n      node = skipParentheses(node, true);\n      return node.kind === 213 || node.kind === 231 || isJSDocTypeAssertion(node);\n    }\n    function checkDeclarationInitializer(declaration, checkMode, contextualType) {\n      const initializer = getEffectiveInitializer(declaration);\n      if (isInJSFile(declaration)) {\n        const typeNode = tryGetJSDocSatisfiesTypeNode(declaration);\n        if (typeNode) {\n          return checkSatisfiesExpressionWorker(initializer, typeNode, checkMode);\n        }\n      }\n      const type = getQuickTypeOfExpression(initializer) || (contextualType ? checkExpressionWithContextualType(initializer, contextualType, void 0, checkMode || 0) : checkExpressionCached(initializer, checkMode));\n      return isParameter(declaration) && declaration.name.kind === 204 && isTupleType(type) && !type.target.hasRestElement && getTypeReferenceArity(type) < declaration.name.elements.length ? padTupleType(type, declaration.name) : type;\n    }\n    function padTupleType(type, pattern) {\n      const patternElements = pattern.elements;\n      const elementTypes = getTypeArguments(type).slice();\n      const elementFlags = type.target.elementFlags.slice();\n      for (let i = getTypeReferenceArity(type); i < patternElements.length; i++) {\n        const e = patternElements[i];\n        if (i < patternElements.length - 1 || !(e.kind === 205 && e.dotDotDotToken)) {\n          elementTypes.push(!isOmittedExpression(e) && hasDefaultValue(e) ? getTypeFromBindingElement(e, false, false) : anyType);\n          elementFlags.push(2);\n          if (!isOmittedExpression(e) && !hasDefaultValue(e)) {\n            reportImplicitAny(e, anyType);\n          }\n        }\n      }\n      return createTupleType(elementTypes, elementFlags, type.target.readonly);\n    }\n    function widenTypeInferredFromInitializer(declaration, type) {\n      const widened = getCombinedNodeFlags(declaration) & 2 || isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type);\n      if (isInJSFile(declaration)) {\n        if (isEmptyLiteralType(widened)) {\n          reportImplicitAny(declaration, anyType);\n          return anyType;\n        } else if (isEmptyArrayLiteralType(widened)) {\n          reportImplicitAny(declaration, anyArrayType);\n          return anyArrayType;\n        }\n      }\n      return widened;\n    }\n    function isLiteralOfContextualType(candidateType, contextualType) {\n      if (contextualType) {\n        if (contextualType.flags & 3145728) {\n          const types = contextualType.types;\n          return some(types, (t) => isLiteralOfContextualType(candidateType, t));\n        }\n        if (contextualType.flags & 58982400) {\n          const constraint = getBaseConstraintOfType(contextualType) || unknownType;\n          return maybeTypeOfKind(constraint, 4) && maybeTypeOfKind(candidateType, 128) || maybeTypeOfKind(constraint, 8) && maybeTypeOfKind(candidateType, 256) || maybeTypeOfKind(constraint, 64) && maybeTypeOfKind(candidateType, 2048) || maybeTypeOfKind(constraint, 4096) && maybeTypeOfKind(candidateType, 8192) || isLiteralOfContextualType(candidateType, constraint);\n        }\n        return !!(contextualType.flags & (128 | 4194304 | 134217728 | 268435456) && maybeTypeOfKind(candidateType, 128) || contextualType.flags & 256 && maybeTypeOfKind(candidateType, 256) || contextualType.flags & 2048 && maybeTypeOfKind(candidateType, 2048) || contextualType.flags & 512 && maybeTypeOfKind(candidateType, 512) || contextualType.flags & 8192 && maybeTypeOfKind(candidateType, 8192));\n      }\n      return false;\n    }\n    function isConstContext(node) {\n      const parent2 = node.parent;\n      return isAssertionExpression(parent2) && isConstTypeReference(parent2.type) || isJSDocTypeAssertion(parent2) && isConstTypeReference(getJSDocTypeAssertionType(parent2)) || isValidConstAssertionArgument(node) && isConstTypeParameterContext(node) || (isParenthesizedExpression(parent2) || isArrayLiteralExpression(parent2) || isSpreadElement(parent2)) && isConstContext(parent2) || (isPropertyAssignment(parent2) || isShorthandPropertyAssignment(parent2) || isTemplateSpan(parent2)) && isConstContext(parent2.parent);\n    }\n    function isConstTypeParameterContext(node) {\n      const contextualType = getContextualType2(node, 0);\n      return !!contextualType && someType(contextualType, isConstTypeVariable);\n    }\n    function checkExpressionForMutableLocation(node, checkMode, forceTuple) {\n      const type = checkExpression(node, checkMode, forceTuple);\n      return isConstContext(node) || isCommonJsExportedExpression(node) ? getRegularTypeOfLiteralType(type) : isTypeAssertion(node) ? type : getWidenedLiteralLikeTypeForContextualType(type, instantiateContextualType(getContextualType2(node, void 0), node, void 0));\n    }\n    function checkPropertyAssignment(node, checkMode) {\n      if (node.name.kind === 164) {\n        checkComputedPropertyName(node.name);\n      }\n      return checkExpressionForMutableLocation(node.initializer, checkMode);\n    }\n    function checkObjectLiteralMethod(node, checkMode) {\n      checkGrammarMethod(node);\n      if (node.name.kind === 164) {\n        checkComputedPropertyName(node.name);\n      }\n      const uninstantiatedType = checkFunctionExpressionOrObjectLiteralMethod(node, checkMode);\n      return instantiateTypeWithSingleGenericCallSignature(node, uninstantiatedType, checkMode);\n    }\n    function instantiateTypeWithSingleGenericCallSignature(node, type, checkMode) {\n      if (checkMode && checkMode & (2 | 8)) {\n        const callSignature = getSingleSignature(type, 0, true);\n        const constructSignature = getSingleSignature(type, 1, true);\n        const signature = callSignature || constructSignature;\n        if (signature && signature.typeParameters) {\n          const contextualType = getApparentTypeOfContextualType(node, 2);\n          if (contextualType) {\n            const contextualSignature = getSingleSignature(getNonNullableType(contextualType), callSignature ? 0 : 1, false);\n            if (contextualSignature && !contextualSignature.typeParameters) {\n              if (checkMode & 8) {\n                skippedGenericFunction(node, checkMode);\n                return anyFunctionType;\n              }\n              const context = getInferenceContext(node);\n              const returnType = context.signature && getReturnTypeOfSignature(context.signature);\n              const returnSignature = returnType && getSingleCallOrConstructSignature(returnType);\n              if (returnSignature && !returnSignature.typeParameters && !every(context.inferences, hasInferenceCandidates)) {\n                const uniqueTypeParameters = getUniqueTypeParameters(context, signature.typeParameters);\n                const instantiatedSignature = getSignatureInstantiationWithoutFillingInTypeArguments(signature, uniqueTypeParameters);\n                const inferences = map(context.inferences, (info) => createInferenceInfo(info.typeParameter));\n                applyToParameterTypes(instantiatedSignature, contextualSignature, (source, target) => {\n                  inferTypes(inferences, source, target, 0, true);\n                });\n                if (some(inferences, hasInferenceCandidates)) {\n                  applyToReturnTypes(instantiatedSignature, contextualSignature, (source, target) => {\n                    inferTypes(inferences, source, target);\n                  });\n                  if (!hasOverlappingInferences(context.inferences, inferences)) {\n                    mergeInferences(context.inferences, inferences);\n                    context.inferredTypeParameters = concatenate(context.inferredTypeParameters, uniqueTypeParameters);\n                    return getOrCreateTypeFromSignature(instantiatedSignature);\n                  }\n                }\n              }\n              return getOrCreateTypeFromSignature(instantiateSignatureInContextOf(signature, contextualSignature, context));\n            }\n          }\n        }\n      }\n      return type;\n    }\n    function skippedGenericFunction(node, checkMode) {\n      if (checkMode & 2) {\n        const context = getInferenceContext(node);\n        context.flags |= 4;\n      }\n    }\n    function hasInferenceCandidates(info) {\n      return !!(info.candidates || info.contraCandidates);\n    }\n    function hasInferenceCandidatesOrDefault(info) {\n      return !!(info.candidates || info.contraCandidates || hasTypeParameterDefault(info.typeParameter));\n    }\n    function hasOverlappingInferences(a, b) {\n      for (let i = 0; i < a.length; i++) {\n        if (hasInferenceCandidates(a[i]) && hasInferenceCandidates(b[i])) {\n          return true;\n        }\n      }\n      return false;\n    }\n    function mergeInferences(target, source) {\n      for (let i = 0; i < target.length; i++) {\n        if (!hasInferenceCandidates(target[i]) && hasInferenceCandidates(source[i])) {\n          target[i] = source[i];\n        }\n      }\n    }\n    function getUniqueTypeParameters(context, typeParameters) {\n      const result = [];\n      let oldTypeParameters;\n      let newTypeParameters;\n      for (const tp of typeParameters) {\n        const name = tp.symbol.escapedName;\n        if (hasTypeParameterByName(context.inferredTypeParameters, name) || hasTypeParameterByName(result, name)) {\n          const newName = getUniqueTypeParameterName(concatenate(context.inferredTypeParameters, result), name);\n          const symbol = createSymbol(262144, newName);\n          const newTypeParameter = createTypeParameter(symbol);\n          newTypeParameter.target = tp;\n          oldTypeParameters = append(oldTypeParameters, tp);\n          newTypeParameters = append(newTypeParameters, newTypeParameter);\n          result.push(newTypeParameter);\n        } else {\n          result.push(tp);\n        }\n      }\n      if (newTypeParameters) {\n        const mapper = createTypeMapper(oldTypeParameters, newTypeParameters);\n        for (const tp of newTypeParameters) {\n          tp.mapper = mapper;\n        }\n      }\n      return result;\n    }\n    function hasTypeParameterByName(typeParameters, name) {\n      return some(typeParameters, (tp) => tp.symbol.escapedName === name);\n    }\n    function getUniqueTypeParameterName(typeParameters, baseName) {\n      let len = baseName.length;\n      while (len > 1 && baseName.charCodeAt(len - 1) >= 48 && baseName.charCodeAt(len - 1) <= 57)\n        len--;\n      const s = baseName.slice(0, len);\n      for (let index = 1; true; index++) {\n        const augmentedName = s + index;\n        if (!hasTypeParameterByName(typeParameters, augmentedName)) {\n          return augmentedName;\n        }\n      }\n    }\n    function getReturnTypeOfSingleNonGenericCallSignature(funcType) {\n      const signature = getSingleCallSignature(funcType);\n      if (signature && !signature.typeParameters) {\n        return getReturnTypeOfSignature(signature);\n      }\n    }\n    function getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) {\n      const funcType = checkExpression(expr.expression);\n      const nonOptionalType = getOptionalExpressionType(funcType, expr.expression);\n      const returnType = getReturnTypeOfSingleNonGenericCallSignature(funcType);\n      return returnType && propagateOptionalTypeMarker(returnType, expr, nonOptionalType !== funcType);\n    }\n    function getTypeOfExpression(node) {\n      const quickType = getQuickTypeOfExpression(node);\n      if (quickType) {\n        return quickType;\n      }\n      if (node.flags & 134217728 && flowTypeCache) {\n        const cachedType = flowTypeCache[getNodeId(node)];\n        if (cachedType) {\n          return cachedType;\n        }\n      }\n      const startInvocationCount = flowInvocationCount;\n      const type = checkExpression(node);\n      if (flowInvocationCount !== startInvocationCount) {\n        const cache = flowTypeCache || (flowTypeCache = []);\n        cache[getNodeId(node)] = type;\n        setNodeFlags(node, node.flags | 134217728);\n      }\n      return type;\n    }\n    function getQuickTypeOfExpression(node) {\n      let expr = skipParentheses(node, true);\n      if (isJSDocTypeAssertion(expr)) {\n        const type = getJSDocTypeAssertionType(expr);\n        if (!isConstTypeReference(type)) {\n          return getTypeFromTypeNode(type);\n        }\n      }\n      expr = skipParentheses(node);\n      if (isAwaitExpression(expr)) {\n        const type = getQuickTypeOfExpression(expr.expression);\n        return type ? getAwaitedType(type) : void 0;\n      }\n      if (isCallExpression(expr) && expr.expression.kind !== 106 && !isRequireCall(expr, true) && !isSymbolOrSymbolForCall(expr)) {\n        return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) : getReturnTypeOfSingleNonGenericCallSignature(checkNonNullExpression(expr.expression));\n      } else if (isAssertionExpression(expr) && !isConstTypeReference(expr.type)) {\n        return getTypeFromTypeNode(expr.type);\n      } else if (isLiteralExpression(node) || isBooleanLiteral(node)) {\n        return checkExpression(node);\n      }\n      return void 0;\n    }\n    function getContextFreeTypeOfExpression(node) {\n      const links = getNodeLinks(node);\n      if (links.contextFreeType) {\n        return links.contextFreeType;\n      }\n      pushContextualType(node, anyType, false);\n      const type = links.contextFreeType = checkExpression(node, 4);\n      popContextualType();\n      return type;\n    }\n    function checkExpression(node, checkMode, forceTuple) {\n      var _a2, _b;\n      (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Check, \"checkExpression\", { kind: node.kind, pos: node.pos, end: node.end, path: node.tracingPath });\n      const saveCurrentNode = currentNode;\n      currentNode = node;\n      instantiationCount = 0;\n      const uninstantiatedType = checkExpressionWorker(node, checkMode, forceTuple);\n      const type = instantiateTypeWithSingleGenericCallSignature(node, uninstantiatedType, checkMode);\n      if (isConstEnumObjectType(type)) {\n        checkConstEnumAccess(node, type);\n      }\n      currentNode = saveCurrentNode;\n      (_b = tracing) == null ? void 0 : _b.pop();\n      return type;\n    }\n    function checkConstEnumAccess(node, type) {\n      const ok = node.parent.kind === 208 && node.parent.expression === node || node.parent.kind === 209 && node.parent.expression === node || ((node.kind === 79 || node.kind === 163) && isInRightSideOfImportOrExportAssignment(node) || node.parent.kind === 183 && node.parent.exprName === node) || node.parent.kind === 278;\n      if (!ok) {\n        error(node, Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query);\n      }\n      if (getIsolatedModules(compilerOptions)) {\n        Debug.assert(!!(type.symbol.flags & 128));\n        const constEnumDeclaration = type.symbol.valueDeclaration;\n        if (constEnumDeclaration.flags & 16777216) {\n          error(node, Diagnostics.Cannot_access_ambient_const_enums_when_0_is_enabled, isolatedModulesLikeFlagName);\n        }\n      }\n    }\n    function checkParenthesizedExpression(node, checkMode) {\n      if (hasJSDocNodes(node)) {\n        if (isJSDocSatisfiesExpression(node)) {\n          return checkSatisfiesExpressionWorker(node.expression, getJSDocSatisfiesExpressionType(node), checkMode);\n        }\n        if (isJSDocTypeAssertion(node)) {\n          const type = getJSDocTypeAssertionType(node);\n          return checkAssertionWorker(type, type, node.expression, checkMode);\n        }\n      }\n      return checkExpression(node.expression, checkMode);\n    }\n    function checkExpressionWorker(node, checkMode, forceTuple) {\n      const kind = node.kind;\n      if (cancellationToken) {\n        switch (kind) {\n          case 228:\n          case 215:\n          case 216:\n            cancellationToken.throwIfCancellationRequested();\n        }\n      }\n      switch (kind) {\n        case 79:\n          return checkIdentifier(node, checkMode);\n        case 80:\n          return checkPrivateIdentifierExpression(node);\n        case 108:\n          return checkThisExpression(node);\n        case 106:\n          return checkSuperExpression(node);\n        case 104:\n          return nullWideningType;\n        case 14:\n        case 10:\n          return getFreshTypeOfLiteralType(getStringLiteralType(node.text));\n        case 8:\n          checkGrammarNumericLiteral(node);\n          return getFreshTypeOfLiteralType(getNumberLiteralType(+node.text));\n        case 9:\n          checkGrammarBigIntLiteral(node);\n          return getFreshTypeOfLiteralType(getBigIntLiteralType({\n            negative: false,\n            base10Value: parsePseudoBigInt(node.text)\n          }));\n        case 110:\n          return trueType;\n        case 95:\n          return falseType;\n        case 225:\n          return checkTemplateExpression(node);\n        case 13:\n          return globalRegExpType;\n        case 206:\n          return checkArrayLiteral(node, checkMode, forceTuple);\n        case 207:\n          return checkObjectLiteral(node, checkMode);\n        case 208:\n          return checkPropertyAccessExpression(node, checkMode);\n        case 163:\n          return checkQualifiedName(node, checkMode);\n        case 209:\n          return checkIndexedAccess(node, checkMode);\n        case 210:\n          if (node.expression.kind === 100) {\n            return checkImportCallExpression(node);\n          }\n        case 211:\n          return checkCallExpression(node, checkMode);\n        case 212:\n          return checkTaggedTemplateExpression(node);\n        case 214:\n          return checkParenthesizedExpression(node, checkMode);\n        case 228:\n          return checkClassExpression(node);\n        case 215:\n        case 216:\n          return checkFunctionExpressionOrObjectLiteralMethod(node, checkMode);\n        case 218:\n          return checkTypeOfExpression(node);\n        case 213:\n        case 231:\n          return checkAssertion(node);\n        case 232:\n          return checkNonNullAssertion(node);\n        case 230:\n          return checkExpressionWithTypeArguments(node);\n        case 235:\n          return checkSatisfiesExpression(node);\n        case 233:\n          return checkMetaProperty(node);\n        case 217:\n          return checkDeleteExpression(node);\n        case 219:\n          return checkVoidExpression(node);\n        case 220:\n          return checkAwaitExpression(node);\n        case 221:\n          return checkPrefixUnaryExpression(node);\n        case 222:\n          return checkPostfixUnaryExpression(node);\n        case 223:\n          return checkBinaryExpression(node, checkMode);\n        case 224:\n          return checkConditionalExpression(node, checkMode);\n        case 227:\n          return checkSpreadExpression(node, checkMode);\n        case 229:\n          return undefinedWideningType;\n        case 226:\n          return checkYieldExpression(node);\n        case 234:\n          return checkSyntheticExpression(node);\n        case 291:\n          return checkJsxExpression(node, checkMode);\n        case 281:\n          return checkJsxElement(node, checkMode);\n        case 282:\n          return checkJsxSelfClosingElement(node, checkMode);\n        case 285:\n          return checkJsxFragment(node);\n        case 289:\n          return checkJsxAttributes(node, checkMode);\n        case 283:\n          Debug.fail(\"Shouldn't ever directly check a JsxOpeningElement\");\n      }\n      return errorType;\n    }\n    function checkTypeParameter(node) {\n      checkGrammarModifiers(node);\n      if (node.expression) {\n        grammarErrorOnFirstToken(node.expression, Diagnostics.Type_expected);\n      }\n      checkSourceElement(node.constraint);\n      checkSourceElement(node.default);\n      const typeParameter = getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node));\n      getBaseConstraintOfType(typeParameter);\n      if (!hasNonCircularTypeParameterDefault(typeParameter)) {\n        error(node.default, Diagnostics.Type_parameter_0_has_a_circular_default, typeToString(typeParameter));\n      }\n      const constraintType = getConstraintOfTypeParameter(typeParameter);\n      const defaultType = getDefaultFromTypeParameter(typeParameter);\n      if (constraintType && defaultType) {\n        checkTypeAssignableTo(defaultType, getTypeWithThisArgument(instantiateType(constraintType, makeUnaryTypeMapper(typeParameter, defaultType)), defaultType), node.default, Diagnostics.Type_0_does_not_satisfy_the_constraint_1);\n      }\n      checkNodeDeferred(node);\n      addLazyDiagnostic(() => checkTypeNameIsReserved(node.name, Diagnostics.Type_parameter_name_cannot_be_0));\n    }\n    function checkTypeParameterDeferred(node) {\n      var _a2, _b;\n      if (isInterfaceDeclaration(node.parent) || isClassLike(node.parent) || isTypeAliasDeclaration(node.parent)) {\n        const typeParameter = getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node));\n        const modifiers = getTypeParameterModifiers(typeParameter) & (32768 | 65536);\n        if (modifiers) {\n          const symbol = getSymbolOfDeclaration(node.parent);\n          if (isTypeAliasDeclaration(node.parent) && !(getObjectFlags(getDeclaredTypeOfSymbol(symbol)) & (16 | 32))) {\n            error(node, Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);\n          } else if (modifiers === 32768 || modifiers === 65536) {\n            (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.CheckTypes, \"checkTypeParameterDeferred\", { parent: getTypeId(getDeclaredTypeOfSymbol(symbol)), id: getTypeId(typeParameter) });\n            const source = createMarkerType(symbol, typeParameter, modifiers === 65536 ? markerSubTypeForCheck : markerSuperTypeForCheck);\n            const target = createMarkerType(symbol, typeParameter, modifiers === 65536 ? markerSuperTypeForCheck : markerSubTypeForCheck);\n            const saveVarianceTypeParameter = typeParameter;\n            varianceTypeParameter = typeParameter;\n            checkTypeAssignableTo(source, target, node, Diagnostics.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation);\n            varianceTypeParameter = saveVarianceTypeParameter;\n            (_b = tracing) == null ? void 0 : _b.pop();\n          }\n        }\n      }\n    }\n    function checkParameter(node) {\n      checkGrammarModifiers(node);\n      checkVariableLikeDeclaration(node);\n      const func = getContainingFunction(node);\n      if (hasSyntacticModifier(node, 16476)) {\n        if (!(func.kind === 173 && nodeIsPresent(func.body))) {\n          error(node, Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation);\n        }\n        if (func.kind === 173 && isIdentifier(node.name) && node.name.escapedText === \"constructor\") {\n          error(node.name, Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name);\n        }\n      }\n      if (!node.initializer && isOptionalDeclaration(node) && isBindingPattern(node.name) && func.body) {\n        error(node, Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature);\n      }\n      if (node.name && isIdentifier(node.name) && (node.name.escapedText === \"this\" || node.name.escapedText === \"new\")) {\n        if (func.parameters.indexOf(node) !== 0) {\n          error(node, Diagnostics.A_0_parameter_must_be_the_first_parameter, node.name.escapedText);\n        }\n        if (func.kind === 173 || func.kind === 177 || func.kind === 182) {\n          error(node, Diagnostics.A_constructor_cannot_have_a_this_parameter);\n        }\n        if (func.kind === 216) {\n          error(node, Diagnostics.An_arrow_function_cannot_have_a_this_parameter);\n        }\n        if (func.kind === 174 || func.kind === 175) {\n          error(node, Diagnostics.get_and_set_accessors_cannot_declare_this_parameters);\n        }\n      }\n      if (node.dotDotDotToken && !isBindingPattern(node.name) && !isTypeAssignableTo(getReducedType(getTypeOfSymbol(node.symbol)), anyReadonlyArrayType)) {\n        error(node, Diagnostics.A_rest_parameter_must_be_of_an_array_type);\n      }\n    }\n    function checkTypePredicate(node) {\n      const parent2 = getTypePredicateParent(node);\n      if (!parent2) {\n        error(node, Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);\n        return;\n      }\n      const signature = getSignatureFromDeclaration(parent2);\n      const typePredicate = getTypePredicateOfSignature(signature);\n      if (!typePredicate) {\n        return;\n      }\n      checkSourceElement(node.type);\n      const { parameterName } = node;\n      if (typePredicate.kind === 0 || typePredicate.kind === 2) {\n        getTypeFromThisTypeNode(parameterName);\n      } else {\n        if (typePredicate.parameterIndex >= 0) {\n          if (signatureHasRestParameter(signature) && typePredicate.parameterIndex === signature.parameters.length - 1) {\n            error(parameterName, Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);\n          } else {\n            if (typePredicate.type) {\n              const leadingError = () => chainDiagnosticMessages(void 0, Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);\n              checkTypeAssignableTo(typePredicate.type, getTypeOfSymbol(signature.parameters[typePredicate.parameterIndex]), node.type, void 0, leadingError);\n            }\n          }\n        } else if (parameterName) {\n          let hasReportedError = false;\n          for (const { name } of parent2.parameters) {\n            if (isBindingPattern(name) && checkIfTypePredicateVariableIsDeclaredInBindingPattern(name, parameterName, typePredicate.parameterName)) {\n              hasReportedError = true;\n              break;\n            }\n          }\n          if (!hasReportedError) {\n            error(node.parameterName, Diagnostics.Cannot_find_parameter_0, typePredicate.parameterName);\n          }\n        }\n      }\n    }\n    function getTypePredicateParent(node) {\n      switch (node.parent.kind) {\n        case 216:\n        case 176:\n        case 259:\n        case 215:\n        case 181:\n        case 171:\n        case 170:\n          const parent2 = node.parent;\n          if (node === parent2.type) {\n            return parent2;\n          }\n      }\n    }\n    function checkIfTypePredicateVariableIsDeclaredInBindingPattern(pattern, predicateVariableNode, predicateVariableName) {\n      for (const element of pattern.elements) {\n        if (isOmittedExpression(element)) {\n          continue;\n        }\n        const name = element.name;\n        if (name.kind === 79 && name.escapedText === predicateVariableName) {\n          error(predicateVariableNode, Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern, predicateVariableName);\n          return true;\n        } else if (name.kind === 204 || name.kind === 203) {\n          if (checkIfTypePredicateVariableIsDeclaredInBindingPattern(name, predicateVariableNode, predicateVariableName)) {\n            return true;\n          }\n        }\n      }\n    }\n    function checkSignatureDeclaration(node) {\n      if (node.kind === 178) {\n        checkGrammarIndexSignature(node);\n      } else if (node.kind === 181 || node.kind === 259 || node.kind === 182 || node.kind === 176 || node.kind === 173 || node.kind === 177) {\n        checkGrammarFunctionLikeDeclaration(node);\n      }\n      const functionFlags = getFunctionFlags(node);\n      if (!(functionFlags & 4)) {\n        if ((functionFlags & 3) === 3 && languageVersion < 99) {\n          checkExternalEmitHelpers(node, 6144);\n        }\n        if ((functionFlags & 3) === 2 && languageVersion < 4) {\n          checkExternalEmitHelpers(node, 64);\n        }\n        if ((functionFlags & 3) !== 0 && languageVersion < 2) {\n          checkExternalEmitHelpers(node, 128);\n        }\n      }\n      checkTypeParameters(getEffectiveTypeParameterDeclarations(node));\n      checkUnmatchedJSDocParameters(node);\n      forEach(node.parameters, checkParameter);\n      if (node.type) {\n        checkSourceElement(node.type);\n      }\n      addLazyDiagnostic(checkSignatureDeclarationDiagnostics);\n      function checkSignatureDeclarationDiagnostics() {\n        checkCollisionWithArgumentsInGeneratedCode(node);\n        const returnTypeNode = getEffectiveReturnTypeNode(node);\n        if (noImplicitAny && !returnTypeNode) {\n          switch (node.kind) {\n            case 177:\n              error(node, Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);\n              break;\n            case 176:\n              error(node, Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);\n              break;\n          }\n        }\n        if (returnTypeNode) {\n          const functionFlags2 = getFunctionFlags(node);\n          if ((functionFlags2 & (4 | 1)) === 1) {\n            const returnType = getTypeFromTypeNode(returnTypeNode);\n            if (returnType === voidType) {\n              error(returnTypeNode, Diagnostics.A_generator_cannot_have_a_void_type_annotation);\n            } else {\n              const generatorYieldType = getIterationTypeOfGeneratorFunctionReturnType(0, returnType, (functionFlags2 & 2) !== 0) || anyType;\n              const generatorReturnType = getIterationTypeOfGeneratorFunctionReturnType(1, returnType, (functionFlags2 & 2) !== 0) || generatorYieldType;\n              const generatorNextType = getIterationTypeOfGeneratorFunctionReturnType(2, returnType, (functionFlags2 & 2) !== 0) || unknownType;\n              const generatorInstantiation = createGeneratorReturnType(generatorYieldType, generatorReturnType, generatorNextType, !!(functionFlags2 & 2));\n              checkTypeAssignableTo(generatorInstantiation, returnType, returnTypeNode);\n            }\n          } else if ((functionFlags2 & 3) === 2) {\n            checkAsyncFunctionReturnType(node, returnTypeNode);\n          }\n        }\n        if (node.kind !== 178 && node.kind !== 320) {\n          registerForUnusedIdentifiersCheck(node);\n        }\n      }\n    }\n    function checkClassForDuplicateDeclarations(node) {\n      const instanceNames = /* @__PURE__ */ new Map();\n      const staticNames = /* @__PURE__ */ new Map();\n      const privateIdentifiers = /* @__PURE__ */ new Map();\n      for (const member of node.members) {\n        if (member.kind === 173) {\n          for (const param of member.parameters) {\n            if (isParameterPropertyDeclaration(param, member) && !isBindingPattern(param.name)) {\n              addName(instanceNames, param.name, param.name.escapedText, 3);\n            }\n          }\n        } else {\n          const isStaticMember = isStatic(member);\n          const name = member.name;\n          if (!name) {\n            continue;\n          }\n          const isPrivate = isPrivateIdentifier(name);\n          const privateStaticFlags = isPrivate && isStaticMember ? 16 : 0;\n          const names = isPrivate ? privateIdentifiers : isStaticMember ? staticNames : instanceNames;\n          const memberName = name && getPropertyNameForPropertyNameNode(name);\n          if (memberName) {\n            switch (member.kind) {\n              case 174:\n                addName(names, name, memberName, 1 | privateStaticFlags);\n                break;\n              case 175:\n                addName(names, name, memberName, 2 | privateStaticFlags);\n                break;\n              case 169:\n                addName(names, name, memberName, 3 | privateStaticFlags);\n                break;\n              case 171:\n                addName(names, name, memberName, 8 | privateStaticFlags);\n                break;\n            }\n          }\n        }\n      }\n      function addName(names, location, name, meaning) {\n        const prev = names.get(name);\n        if (prev) {\n          if ((prev & 16) !== (meaning & 16)) {\n            error(location, Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name, getTextOfNode(location));\n          } else {\n            const prevIsMethod = !!(prev & 8);\n            const isMethod = !!(meaning & 8);\n            if (prevIsMethod || isMethod) {\n              if (prevIsMethod !== isMethod) {\n                error(location, Diagnostics.Duplicate_identifier_0, getTextOfNode(location));\n              }\n            } else if (prev & meaning & ~16) {\n              error(location, Diagnostics.Duplicate_identifier_0, getTextOfNode(location));\n            } else {\n              names.set(name, prev | meaning);\n            }\n          }\n        } else {\n          names.set(name, meaning);\n        }\n      }\n    }\n    function checkClassForStaticPropertyNameConflicts(node) {\n      for (const member of node.members) {\n        const memberNameNode = member.name;\n        const isStaticMember = isStatic(member);\n        if (isStaticMember && memberNameNode) {\n          const memberName = getPropertyNameForPropertyNameNode(memberNameNode);\n          switch (memberName) {\n            case \"name\":\n            case \"length\":\n            case \"caller\":\n            case \"arguments\":\n            case \"prototype\":\n              const message = Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1;\n              const className = getNameOfSymbolAsWritten(getSymbolOfDeclaration(node));\n              error(memberNameNode, message, memberName, className);\n              break;\n          }\n        }\n      }\n    }\n    function checkObjectTypeForDuplicateDeclarations(node) {\n      const names = /* @__PURE__ */ new Map();\n      for (const member of node.members) {\n        if (member.kind === 168) {\n          let memberName;\n          const name = member.name;\n          switch (name.kind) {\n            case 10:\n            case 8:\n              memberName = name.text;\n              break;\n            case 79:\n              memberName = idText(name);\n              break;\n            default:\n              continue;\n          }\n          if (names.get(memberName)) {\n            error(getNameOfDeclaration(member.symbol.valueDeclaration), Diagnostics.Duplicate_identifier_0, memberName);\n            error(member.name, Diagnostics.Duplicate_identifier_0, memberName);\n          } else {\n            names.set(memberName, true);\n          }\n        }\n      }\n    }\n    function checkTypeForDuplicateIndexSignatures(node) {\n      if (node.kind === 261) {\n        const nodeSymbol = getSymbolOfDeclaration(node);\n        if (nodeSymbol.declarations && nodeSymbol.declarations.length > 0 && nodeSymbol.declarations[0] !== node) {\n          return;\n        }\n      }\n      const indexSymbol = getIndexSymbol(getSymbolOfDeclaration(node));\n      if (indexSymbol == null ? void 0 : indexSymbol.declarations) {\n        const indexSignatureMap = /* @__PURE__ */ new Map();\n        for (const declaration of indexSymbol.declarations) {\n          if (declaration.parameters.length === 1 && declaration.parameters[0].type) {\n            forEachType(getTypeFromTypeNode(declaration.parameters[0].type), (type) => {\n              const entry = indexSignatureMap.get(getTypeId(type));\n              if (entry) {\n                entry.declarations.push(declaration);\n              } else {\n                indexSignatureMap.set(getTypeId(type), { type, declarations: [declaration] });\n              }\n            });\n          }\n        }\n        indexSignatureMap.forEach((entry) => {\n          if (entry.declarations.length > 1) {\n            for (const declaration of entry.declarations) {\n              error(declaration, Diagnostics.Duplicate_index_signature_for_type_0, typeToString(entry.type));\n            }\n          }\n        });\n      }\n    }\n    function checkPropertyDeclaration(node) {\n      if (!checkGrammarModifiers(node) && !checkGrammarProperty(node))\n        checkGrammarComputedPropertyName(node.name);\n      checkVariableLikeDeclaration(node);\n      setNodeLinksForPrivateIdentifierScope(node);\n      if (hasSyntacticModifier(node, 256) && node.kind === 169 && node.initializer) {\n        error(node, Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract, declarationNameToString(node.name));\n      }\n    }\n    function checkPropertySignature(node) {\n      if (isPrivateIdentifier(node.name)) {\n        error(node, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);\n      }\n      return checkPropertyDeclaration(node);\n    }\n    function checkMethodDeclaration(node) {\n      if (!checkGrammarMethod(node))\n        checkGrammarComputedPropertyName(node.name);\n      if (isMethodDeclaration(node) && node.asteriskToken && isIdentifier(node.name) && idText(node.name) === \"constructor\") {\n        error(node.name, Diagnostics.Class_constructor_may_not_be_a_generator);\n      }\n      checkFunctionOrMethodDeclaration(node);\n      if (hasSyntacticModifier(node, 256) && node.kind === 171 && node.body) {\n        error(node, Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract, declarationNameToString(node.name));\n      }\n      if (isPrivateIdentifier(node.name) && !getContainingClass(node)) {\n        error(node, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);\n      }\n      setNodeLinksForPrivateIdentifierScope(node);\n    }\n    function setNodeLinksForPrivateIdentifierScope(node) {\n      if (isPrivateIdentifier(node.name) && languageVersion < 99) {\n        for (let lexicalScope = getEnclosingBlockScopeContainer(node); !!lexicalScope; lexicalScope = getEnclosingBlockScopeContainer(lexicalScope)) {\n          getNodeLinks(lexicalScope).flags |= 4194304;\n        }\n        if (isClassExpression(node.parent)) {\n          const enclosingIterationStatement = getEnclosingIterationStatement(node.parent);\n          if (enclosingIterationStatement) {\n            getNodeLinks(node.name).flags |= 32768;\n            getNodeLinks(enclosingIterationStatement).flags |= 4096;\n          }\n        }\n      }\n    }\n    function checkClassStaticBlockDeclaration(node) {\n      checkGrammarModifiers(node);\n      forEachChild(node, checkSourceElement);\n    }\n    function checkConstructorDeclaration(node) {\n      checkSignatureDeclaration(node);\n      if (!checkGrammarConstructorTypeParameters(node))\n        checkGrammarConstructorTypeAnnotation(node);\n      checkSourceElement(node.body);\n      const symbol = getSymbolOfDeclaration(node);\n      const firstDeclaration = getDeclarationOfKind(symbol, node.kind);\n      if (node === firstDeclaration) {\n        checkFunctionOrConstructorSymbol(symbol);\n      }\n      if (nodeIsMissing(node.body)) {\n        return;\n      }\n      addLazyDiagnostic(checkConstructorDeclarationDiagnostics);\n      return;\n      function isInstancePropertyWithInitializerOrPrivateIdentifierProperty(n) {\n        if (isPrivateIdentifierClassElementDeclaration(n)) {\n          return true;\n        }\n        return n.kind === 169 && !isStatic(n) && !!n.initializer;\n      }\n      function checkConstructorDeclarationDiagnostics() {\n        const containingClassDecl = node.parent;\n        if (getClassExtendsHeritageElement(containingClassDecl)) {\n          captureLexicalThis(node.parent, containingClassDecl);\n          const classExtendsNull = classDeclarationExtendsNull(containingClassDecl);\n          const superCall = findFirstSuperCall(node.body);\n          if (superCall) {\n            if (classExtendsNull) {\n              error(superCall, Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null);\n            }\n            const superCallShouldBeRootLevel = (getEmitScriptTarget(compilerOptions) !== 99 || !useDefineForClassFields) && (some(node.parent.members, isInstancePropertyWithInitializerOrPrivateIdentifierProperty) || some(node.parameters, (p) => hasSyntacticModifier(p, 16476)));\n            if (superCallShouldBeRootLevel) {\n              if (!superCallIsRootLevelInConstructor(superCall, node.body)) {\n                error(superCall, Diagnostics.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers);\n              } else {\n                let superCallStatement;\n                for (const statement of node.body.statements) {\n                  if (isExpressionStatement(statement) && isSuperCall(skipOuterExpressions(statement.expression))) {\n                    superCallStatement = statement;\n                    break;\n                  }\n                  if (nodeImmediatelyReferencesSuperOrThis(statement)) {\n                    break;\n                  }\n                }\n                if (superCallStatement === void 0) {\n                  error(node, Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers);\n                }\n              }\n            }\n          } else if (!classExtendsNull) {\n            error(node, Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call);\n          }\n        }\n      }\n    }\n    function superCallIsRootLevelInConstructor(superCall, body) {\n      const superCallParent = walkUpParenthesizedExpressions(superCall.parent);\n      return isExpressionStatement(superCallParent) && superCallParent.parent === body;\n    }\n    function nodeImmediatelyReferencesSuperOrThis(node) {\n      if (node.kind === 106 || node.kind === 108) {\n        return true;\n      }\n      if (isThisContainerOrFunctionBlock(node)) {\n        return false;\n      }\n      return !!forEachChild(node, nodeImmediatelyReferencesSuperOrThis);\n    }\n    function checkAccessorDeclaration(node) {\n      if (isIdentifier(node.name) && idText(node.name) === \"constructor\") {\n        error(node.name, Diagnostics.Class_constructor_may_not_be_an_accessor);\n      }\n      addLazyDiagnostic(checkAccessorDeclarationDiagnostics);\n      checkSourceElement(node.body);\n      setNodeLinksForPrivateIdentifierScope(node);\n      function checkAccessorDeclarationDiagnostics() {\n        if (!checkGrammarFunctionLikeDeclaration(node) && !checkGrammarAccessor(node))\n          checkGrammarComputedPropertyName(node.name);\n        checkDecorators(node);\n        checkSignatureDeclaration(node);\n        if (node.kind === 174) {\n          if (!(node.flags & 16777216) && nodeIsPresent(node.body) && node.flags & 256) {\n            if (!(node.flags & 512)) {\n              error(node.name, Diagnostics.A_get_accessor_must_return_a_value);\n            }\n          }\n        }\n        if (node.name.kind === 164) {\n          checkComputedPropertyName(node.name);\n        }\n        if (hasBindableName(node)) {\n          const symbol = getSymbolOfDeclaration(node);\n          const getter = getDeclarationOfKind(symbol, 174);\n          const setter = getDeclarationOfKind(symbol, 175);\n          if (getter && setter && !(getNodeCheckFlags(getter) & 1)) {\n            getNodeLinks(getter).flags |= 1;\n            const getterFlags = getEffectiveModifierFlags(getter);\n            const setterFlags = getEffectiveModifierFlags(setter);\n            if ((getterFlags & 256) !== (setterFlags & 256)) {\n              error(getter.name, Diagnostics.Accessors_must_both_be_abstract_or_non_abstract);\n              error(setter.name, Diagnostics.Accessors_must_both_be_abstract_or_non_abstract);\n            }\n            if (getterFlags & 16 && !(setterFlags & (16 | 8)) || getterFlags & 8 && !(setterFlags & 8)) {\n              error(getter.name, Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter);\n              error(setter.name, Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter);\n            }\n            const getterType = getAnnotatedAccessorType(getter);\n            const setterType = getAnnotatedAccessorType(setter);\n            if (getterType && setterType) {\n              checkTypeAssignableTo(getterType, setterType, getter, Diagnostics.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type);\n            }\n          }\n        }\n        const returnType = getTypeOfAccessors(getSymbolOfDeclaration(node));\n        if (node.kind === 174) {\n          checkAllCodePathsInNonVoidFunctionReturnOrThrow(node, returnType);\n        }\n      }\n    }\n    function checkMissingDeclaration(node) {\n      checkDecorators(node);\n    }\n    function getEffectiveTypeArgumentAtIndex(node, typeParameters, index) {\n      if (node.typeArguments && index < node.typeArguments.length) {\n        return getTypeFromTypeNode(node.typeArguments[index]);\n      }\n      return getEffectiveTypeArguments2(node, typeParameters)[index];\n    }\n    function getEffectiveTypeArguments2(node, typeParameters) {\n      return fillMissingTypeArguments(map(node.typeArguments, getTypeFromTypeNode), typeParameters, getMinTypeArgumentCount(typeParameters), isInJSFile(node));\n    }\n    function checkTypeArgumentConstraints(node, typeParameters) {\n      let typeArguments;\n      let mapper;\n      let result = true;\n      for (let i = 0; i < typeParameters.length; i++) {\n        const constraint = getConstraintOfTypeParameter(typeParameters[i]);\n        if (constraint) {\n          if (!typeArguments) {\n            typeArguments = getEffectiveTypeArguments2(node, typeParameters);\n            mapper = createTypeMapper(typeParameters, typeArguments);\n          }\n          result = result && checkTypeAssignableTo(typeArguments[i], instantiateType(constraint, mapper), node.typeArguments[i], Diagnostics.Type_0_does_not_satisfy_the_constraint_1);\n        }\n      }\n      return result;\n    }\n    function getTypeParametersForTypeAndSymbol(type, symbol) {\n      if (!isErrorType(type)) {\n        return symbol.flags & 524288 && getSymbolLinks(symbol).typeParameters || (getObjectFlags(type) & 4 ? type.target.localTypeParameters : void 0);\n      }\n      return void 0;\n    }\n    function getTypeParametersForTypeReferenceOrImport(node) {\n      const type = getTypeFromTypeNode(node);\n      if (!isErrorType(type)) {\n        const symbol = getNodeLinks(node).resolvedSymbol;\n        if (symbol) {\n          return getTypeParametersForTypeAndSymbol(type, symbol);\n        }\n      }\n      return void 0;\n    }\n    function checkTypeReferenceNode(node) {\n      checkGrammarTypeArguments(node, node.typeArguments);\n      if (node.kind === 180 && !isInJSFile(node) && !isInJSDoc(node) && node.typeArguments && node.typeName.end !== node.typeArguments.pos) {\n        const sourceFile = getSourceFileOfNode(node);\n        if (scanTokenAtPosition(sourceFile, node.typeName.end) === 24) {\n          grammarErrorAtPos(node, skipTrivia(sourceFile.text, node.typeName.end), 1, Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments);\n        }\n      }\n      forEach(node.typeArguments, checkSourceElement);\n      checkTypeReferenceOrImport(node);\n    }\n    function checkTypeReferenceOrImport(node) {\n      const type = getTypeFromTypeNode(node);\n      if (!isErrorType(type)) {\n        if (node.typeArguments) {\n          addLazyDiagnostic(() => {\n            const typeParameters = getTypeParametersForTypeReferenceOrImport(node);\n            if (typeParameters) {\n              checkTypeArgumentConstraints(node, typeParameters);\n            }\n          });\n        }\n        const symbol = getNodeLinks(node).resolvedSymbol;\n        if (symbol) {\n          if (some(symbol.declarations, (d) => isTypeDeclaration(d) && !!(d.flags & 268435456))) {\n            addDeprecatedSuggestion(getDeprecatedSuggestionNode(node), symbol.declarations, symbol.escapedName);\n          }\n        }\n      }\n    }\n    function getTypeArgumentConstraint(node) {\n      const typeReferenceNode = tryCast(node.parent, isTypeReferenceType);\n      if (!typeReferenceNode)\n        return void 0;\n      const typeParameters = getTypeParametersForTypeReferenceOrImport(typeReferenceNode);\n      if (!typeParameters)\n        return void 0;\n      const constraint = getConstraintOfTypeParameter(typeParameters[typeReferenceNode.typeArguments.indexOf(node)]);\n      return constraint && instantiateType(constraint, createTypeMapper(typeParameters, getEffectiveTypeArguments2(typeReferenceNode, typeParameters)));\n    }\n    function checkTypeQuery(node) {\n      getTypeFromTypeQueryNode(node);\n    }\n    function checkTypeLiteral(node) {\n      forEach(node.members, checkSourceElement);\n      addLazyDiagnostic(checkTypeLiteralDiagnostics);\n      function checkTypeLiteralDiagnostics() {\n        const type = getTypeFromTypeLiteralOrFunctionOrConstructorTypeNode(node);\n        checkIndexConstraints(type, type.symbol);\n        checkTypeForDuplicateIndexSignatures(node);\n        checkObjectTypeForDuplicateDeclarations(node);\n      }\n    }\n    function checkArrayType(node) {\n      checkSourceElement(node.elementType);\n    }\n    function checkTupleType(node) {\n      const elementTypes = node.elements;\n      let seenOptionalElement = false;\n      let seenRestElement = false;\n      const hasNamedElement = some(elementTypes, isNamedTupleMember);\n      for (const e of elementTypes) {\n        if (e.kind !== 199 && hasNamedElement) {\n          grammarErrorOnNode(e, Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names);\n          break;\n        }\n        const flags = getTupleElementFlags(e);\n        if (flags & 8) {\n          const type = getTypeFromTypeNode(e.type);\n          if (!isArrayLikeType(type)) {\n            error(e, Diagnostics.A_rest_element_type_must_be_an_array_type);\n            break;\n          }\n          if (isArrayType(type) || isTupleType(type) && type.target.combinedFlags & 4) {\n            seenRestElement = true;\n          }\n        } else if (flags & 4) {\n          if (seenRestElement) {\n            grammarErrorOnNode(e, Diagnostics.A_rest_element_cannot_follow_another_rest_element);\n            break;\n          }\n          seenRestElement = true;\n        } else if (flags & 2) {\n          if (seenRestElement) {\n            grammarErrorOnNode(e, Diagnostics.An_optional_element_cannot_follow_a_rest_element);\n            break;\n          }\n          seenOptionalElement = true;\n        } else if (seenOptionalElement) {\n          grammarErrorOnNode(e, Diagnostics.A_required_element_cannot_follow_an_optional_element);\n          break;\n        }\n      }\n      forEach(node.elements, checkSourceElement);\n      getTypeFromTypeNode(node);\n    }\n    function checkUnionOrIntersectionType(node) {\n      forEach(node.types, checkSourceElement);\n      getTypeFromTypeNode(node);\n    }\n    function checkIndexedAccessIndexType(type, accessNode) {\n      if (!(type.flags & 8388608)) {\n        return type;\n      }\n      const objectType = type.objectType;\n      const indexType = type.indexType;\n      if (isTypeAssignableTo(indexType, getIndexType(objectType, false))) {\n        if (accessNode.kind === 209 && isAssignmentTarget(accessNode) && getObjectFlags(objectType) & 32 && getMappedTypeModifiers(objectType) & 1) {\n          error(accessNode, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(objectType));\n        }\n        return type;\n      }\n      const apparentObjectType = getApparentType(objectType);\n      if (getIndexInfoOfType(apparentObjectType, numberType) && isTypeAssignableToKind(indexType, 296)) {\n        return type;\n      }\n      if (isGenericObjectType(objectType)) {\n        const propertyName = getPropertyNameFromIndex(indexType, accessNode);\n        if (propertyName) {\n          const propertySymbol = forEachType(apparentObjectType, (t) => getPropertyOfType(t, propertyName));\n          if (propertySymbol && getDeclarationModifierFlagsFromSymbol(propertySymbol) & 24) {\n            error(accessNode, Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter, unescapeLeadingUnderscores(propertyName));\n            return errorType;\n          }\n        }\n      }\n      error(accessNode, Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(objectType));\n      return errorType;\n    }\n    function checkIndexedAccessType(node) {\n      checkSourceElement(node.objectType);\n      checkSourceElement(node.indexType);\n      checkIndexedAccessIndexType(getTypeFromIndexedAccessTypeNode(node), node);\n    }\n    function checkMappedType(node) {\n      checkGrammarMappedType(node);\n      checkSourceElement(node.typeParameter);\n      checkSourceElement(node.nameType);\n      checkSourceElement(node.type);\n      if (!node.type) {\n        reportImplicitAny(node, anyType);\n      }\n      const type = getTypeFromMappedTypeNode(node);\n      const nameType = getNameTypeFromMappedType(type);\n      if (nameType) {\n        checkTypeAssignableTo(nameType, keyofConstraintType, node.nameType);\n      } else {\n        const constraintType = getConstraintTypeFromMappedType(type);\n        checkTypeAssignableTo(constraintType, keyofConstraintType, getEffectiveConstraintOfTypeParameter(node.typeParameter));\n      }\n    }\n    function checkGrammarMappedType(node) {\n      var _a2;\n      if ((_a2 = node.members) == null ? void 0 : _a2.length) {\n        return grammarErrorOnNode(node.members[0], Diagnostics.A_mapped_type_may_not_declare_properties_or_methods);\n      }\n    }\n    function checkThisType(node) {\n      getTypeFromThisTypeNode(node);\n    }\n    function checkTypeOperator(node) {\n      checkGrammarTypeOperatorNode(node);\n      checkSourceElement(node.type);\n    }\n    function checkConditionalType(node) {\n      forEachChild(node, checkSourceElement);\n    }\n    function checkInferType(node) {\n      if (!findAncestor(node, (n) => n.parent && n.parent.kind === 191 && n.parent.extendsType === n)) {\n        grammarErrorOnNode(node, Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type);\n      }\n      checkSourceElement(node.typeParameter);\n      const symbol = getSymbolOfDeclaration(node.typeParameter);\n      if (symbol.declarations && symbol.declarations.length > 1) {\n        const links = getSymbolLinks(symbol);\n        if (!links.typeParametersChecked) {\n          links.typeParametersChecked = true;\n          const typeParameter = getDeclaredTypeOfTypeParameter(symbol);\n          const declarations = getDeclarationsOfKind(symbol, 165);\n          if (!areTypeParametersIdentical(declarations, [typeParameter], (decl) => [decl])) {\n            const name = symbolToString(symbol);\n            for (const declaration of declarations) {\n              error(declaration.name, Diagnostics.All_declarations_of_0_must_have_identical_constraints, name);\n            }\n          }\n        }\n      }\n      registerForUnusedIdentifiersCheck(node);\n    }\n    function checkTemplateLiteralType(node) {\n      for (const span of node.templateSpans) {\n        checkSourceElement(span.type);\n        const type = getTypeFromTypeNode(span.type);\n        checkTypeAssignableTo(type, templateConstraintType, span.type);\n      }\n      getTypeFromTypeNode(node);\n    }\n    function checkImportType(node) {\n      checkSourceElement(node.argument);\n      if (node.assertions) {\n        const override = getResolutionModeOverrideForClause(node.assertions.assertClause, grammarErrorOnNode);\n        if (override) {\n          if (!isNightly()) {\n            grammarErrorOnNode(node.assertions.assertClause, Diagnostics.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next);\n          }\n          if (getEmitModuleResolutionKind(compilerOptions) !== 3 && getEmitModuleResolutionKind(compilerOptions) !== 99) {\n            grammarErrorOnNode(node.assertions.assertClause, Diagnostics.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext);\n          }\n        }\n      }\n      checkTypeReferenceOrImport(node);\n    }\n    function checkNamedTupleMember(node) {\n      if (node.dotDotDotToken && node.questionToken) {\n        grammarErrorOnNode(node, Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest);\n      }\n      if (node.type.kind === 187) {\n        grammarErrorOnNode(node.type, Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type);\n      }\n      if (node.type.kind === 188) {\n        grammarErrorOnNode(node.type, Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type);\n      }\n      checkSourceElement(node.type);\n      getTypeFromTypeNode(node);\n    }\n    function isPrivateWithinAmbient(node) {\n      return (hasEffectiveModifier(node, 8) || isPrivateIdentifierClassElementDeclaration(node)) && !!(node.flags & 16777216);\n    }\n    function getEffectiveDeclarationFlags(n, flagsToCheck) {\n      let flags = getCombinedModifierFlags(n);\n      if (n.parent.kind !== 261 && n.parent.kind !== 260 && n.parent.kind !== 228 && n.flags & 16777216) {\n        if (!(flags & 2) && !(isModuleBlock(n.parent) && isModuleDeclaration(n.parent.parent) && isGlobalScopeAugmentation(n.parent.parent))) {\n          flags |= 1;\n        }\n        flags |= 2;\n      }\n      return flags & flagsToCheck;\n    }\n    function checkFunctionOrConstructorSymbol(symbol) {\n      addLazyDiagnostic(() => checkFunctionOrConstructorSymbolWorker(symbol));\n    }\n    function checkFunctionOrConstructorSymbolWorker(symbol) {\n      function getCanonicalOverload(overloads, implementation) {\n        const implementationSharesContainerWithFirstOverload = implementation !== void 0 && implementation.parent === overloads[0].parent;\n        return implementationSharesContainerWithFirstOverload ? implementation : overloads[0];\n      }\n      function checkFlagAgreementBetweenOverloads(overloads, implementation, flagsToCheck2, someOverloadFlags, allOverloadFlags) {\n        const someButNotAllOverloadFlags = someOverloadFlags ^ allOverloadFlags;\n        if (someButNotAllOverloadFlags !== 0) {\n          const canonicalFlags = getEffectiveDeclarationFlags(getCanonicalOverload(overloads, implementation), flagsToCheck2);\n          forEach(overloads, (o) => {\n            const deviation = getEffectiveDeclarationFlags(o, flagsToCheck2) ^ canonicalFlags;\n            if (deviation & 1) {\n              error(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported);\n            } else if (deviation & 2) {\n              error(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient);\n            } else if (deviation & (8 | 16)) {\n              error(getNameOfDeclaration(o) || o, Diagnostics.Overload_signatures_must_all_be_public_private_or_protected);\n            } else if (deviation & 256) {\n              error(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract);\n            }\n          });\n        }\n      }\n      function checkQuestionTokenAgreementBetweenOverloads(overloads, implementation, someHaveQuestionToken2, allHaveQuestionToken2) {\n        if (someHaveQuestionToken2 !== allHaveQuestionToken2) {\n          const canonicalHasQuestionToken = hasQuestionToken(getCanonicalOverload(overloads, implementation));\n          forEach(overloads, (o) => {\n            const deviation = hasQuestionToken(o) !== canonicalHasQuestionToken;\n            if (deviation) {\n              error(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_optional_or_required);\n            }\n          });\n        }\n      }\n      const flagsToCheck = 1 | 2 | 8 | 16 | 256;\n      let someNodeFlags = 0;\n      let allNodeFlags = flagsToCheck;\n      let someHaveQuestionToken = false;\n      let allHaveQuestionToken = true;\n      let hasOverloads = false;\n      let bodyDeclaration;\n      let lastSeenNonAmbientDeclaration;\n      let previousDeclaration;\n      const declarations = symbol.declarations;\n      const isConstructor = (symbol.flags & 16384) !== 0;\n      function reportImplementationExpectedError(node) {\n        if (node.name && nodeIsMissing(node.name)) {\n          return;\n        }\n        let seen = false;\n        const subsequentNode = forEachChild(node.parent, (c) => {\n          if (seen) {\n            return c;\n          } else {\n            seen = c === node;\n          }\n        });\n        if (subsequentNode && subsequentNode.pos === node.end) {\n          if (subsequentNode.kind === node.kind) {\n            const errorNode2 = subsequentNode.name || subsequentNode;\n            const subsequentName = subsequentNode.name;\n            if (node.name && subsequentName && (isPrivateIdentifier(node.name) && isPrivateIdentifier(subsequentName) && node.name.escapedText === subsequentName.escapedText || isComputedPropertyName(node.name) && isComputedPropertyName(subsequentName) || isPropertyNameLiteral(node.name) && isPropertyNameLiteral(subsequentName) && getEscapedTextOfIdentifierOrLiteral(node.name) === getEscapedTextOfIdentifierOrLiteral(subsequentName))) {\n              const reportError = (node.kind === 171 || node.kind === 170) && isStatic(node) !== isStatic(subsequentNode);\n              if (reportError) {\n                const diagnostic = isStatic(node) ? Diagnostics.Function_overload_must_be_static : Diagnostics.Function_overload_must_not_be_static;\n                error(errorNode2, diagnostic);\n              }\n              return;\n            }\n            if (nodeIsPresent(subsequentNode.body)) {\n              error(errorNode2, Diagnostics.Function_implementation_name_must_be_0, declarationNameToString(node.name));\n              return;\n            }\n          }\n        }\n        const errorNode = node.name || node;\n        if (isConstructor) {\n          error(errorNode, Diagnostics.Constructor_implementation_is_missing);\n        } else {\n          if (hasSyntacticModifier(node, 256)) {\n            error(errorNode, Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive);\n          } else {\n            error(errorNode, Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration);\n          }\n        }\n      }\n      let duplicateFunctionDeclaration = false;\n      let multipleConstructorImplementation = false;\n      let hasNonAmbientClass = false;\n      const functionDeclarations = [];\n      if (declarations) {\n        for (const current of declarations) {\n          const node = current;\n          const inAmbientContext = node.flags & 16777216;\n          const inAmbientContextOrInterface = node.parent && (node.parent.kind === 261 || node.parent.kind === 184) || inAmbientContext;\n          if (inAmbientContextOrInterface) {\n            previousDeclaration = void 0;\n          }\n          if ((node.kind === 260 || node.kind === 228) && !inAmbientContext) {\n            hasNonAmbientClass = true;\n          }\n          if (node.kind === 259 || node.kind === 171 || node.kind === 170 || node.kind === 173) {\n            functionDeclarations.push(node);\n            const currentNodeFlags = getEffectiveDeclarationFlags(node, flagsToCheck);\n            someNodeFlags |= currentNodeFlags;\n            allNodeFlags &= currentNodeFlags;\n            someHaveQuestionToken = someHaveQuestionToken || hasQuestionToken(node);\n            allHaveQuestionToken = allHaveQuestionToken && hasQuestionToken(node);\n            const bodyIsPresent = nodeIsPresent(node.body);\n            if (bodyIsPresent && bodyDeclaration) {\n              if (isConstructor) {\n                multipleConstructorImplementation = true;\n              } else {\n                duplicateFunctionDeclaration = true;\n              }\n            } else if ((previousDeclaration == null ? void 0 : previousDeclaration.parent) === node.parent && previousDeclaration.end !== node.pos) {\n              reportImplementationExpectedError(previousDeclaration);\n            }\n            if (bodyIsPresent) {\n              if (!bodyDeclaration) {\n                bodyDeclaration = node;\n              }\n            } else {\n              hasOverloads = true;\n            }\n            previousDeclaration = node;\n            if (!inAmbientContextOrInterface) {\n              lastSeenNonAmbientDeclaration = node;\n            }\n          }\n          if (isInJSFile(current) && isFunctionLike(current) && current.jsDoc) {\n            for (const node2 of current.jsDoc) {\n              if (node2.tags) {\n                for (const tag of node2.tags) {\n                  if (isJSDocOverloadTag(tag)) {\n                    hasOverloads = true;\n                  }\n                }\n              }\n            }\n          }\n        }\n      }\n      if (multipleConstructorImplementation) {\n        forEach(functionDeclarations, (declaration) => {\n          error(declaration, Diagnostics.Multiple_constructor_implementations_are_not_allowed);\n        });\n      }\n      if (duplicateFunctionDeclaration) {\n        forEach(functionDeclarations, (declaration) => {\n          error(getNameOfDeclaration(declaration) || declaration, Diagnostics.Duplicate_function_implementation);\n        });\n      }\n      if (hasNonAmbientClass && !isConstructor && symbol.flags & 16 && declarations) {\n        const relatedDiagnostics = filter(declarations, (d) => d.kind === 260).map((d) => createDiagnosticForNode(d, Diagnostics.Consider_adding_a_declare_modifier_to_this_class));\n        forEach(declarations, (declaration) => {\n          const diagnostic = declaration.kind === 260 ? Diagnostics.Class_declaration_cannot_implement_overload_list_for_0 : declaration.kind === 259 ? Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient : void 0;\n          if (diagnostic) {\n            addRelatedInfo(error(getNameOfDeclaration(declaration) || declaration, diagnostic, symbolName(symbol)), ...relatedDiagnostics);\n          }\n        });\n      }\n      if (lastSeenNonAmbientDeclaration && !lastSeenNonAmbientDeclaration.body && !hasSyntacticModifier(lastSeenNonAmbientDeclaration, 256) && !lastSeenNonAmbientDeclaration.questionToken) {\n        reportImplementationExpectedError(lastSeenNonAmbientDeclaration);\n      }\n      if (hasOverloads) {\n        if (declarations) {\n          checkFlagAgreementBetweenOverloads(declarations, bodyDeclaration, flagsToCheck, someNodeFlags, allNodeFlags);\n          checkQuestionTokenAgreementBetweenOverloads(declarations, bodyDeclaration, someHaveQuestionToken, allHaveQuestionToken);\n        }\n        if (bodyDeclaration) {\n          const signatures = getSignaturesOfSymbol(symbol);\n          const bodySignature = getSignatureFromDeclaration(bodyDeclaration);\n          for (const signature of signatures) {\n            if (!isImplementationCompatibleWithOverload(bodySignature, signature)) {\n              const errorNode = signature.declaration && isJSDocSignature(signature.declaration) ? signature.declaration.parent.tagName : signature.declaration;\n              addRelatedInfo(error(errorNode, Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature), createDiagnosticForNode(bodyDeclaration, Diagnostics.The_implementation_signature_is_declared_here));\n              break;\n            }\n          }\n        }\n      }\n    }\n    function checkExportsOnMergedDeclarations(node) {\n      addLazyDiagnostic(() => checkExportsOnMergedDeclarationsWorker(node));\n    }\n    function checkExportsOnMergedDeclarationsWorker(node) {\n      let symbol = node.localSymbol;\n      if (!symbol) {\n        symbol = getSymbolOfDeclaration(node);\n        if (!symbol.exportSymbol) {\n          return;\n        }\n      }\n      if (getDeclarationOfKind(symbol, node.kind) !== node) {\n        return;\n      }\n      let exportedDeclarationSpaces = 0;\n      let nonExportedDeclarationSpaces = 0;\n      let defaultExportedDeclarationSpaces = 0;\n      for (const d of symbol.declarations) {\n        const declarationSpaces = getDeclarationSpaces(d);\n        const effectiveDeclarationFlags = getEffectiveDeclarationFlags(d, 1 | 1024);\n        if (effectiveDeclarationFlags & 1) {\n          if (effectiveDeclarationFlags & 1024) {\n            defaultExportedDeclarationSpaces |= declarationSpaces;\n          } else {\n            exportedDeclarationSpaces |= declarationSpaces;\n          }\n        } else {\n          nonExportedDeclarationSpaces |= declarationSpaces;\n        }\n      }\n      const nonDefaultExportedDeclarationSpaces = exportedDeclarationSpaces | nonExportedDeclarationSpaces;\n      const commonDeclarationSpacesForExportsAndLocals = exportedDeclarationSpaces & nonExportedDeclarationSpaces;\n      const commonDeclarationSpacesForDefaultAndNonDefault = defaultExportedDeclarationSpaces & nonDefaultExportedDeclarationSpaces;\n      if (commonDeclarationSpacesForExportsAndLocals || commonDeclarationSpacesForDefaultAndNonDefault) {\n        for (const d of symbol.declarations) {\n          const declarationSpaces = getDeclarationSpaces(d);\n          const name = getNameOfDeclaration(d);\n          if (declarationSpaces & commonDeclarationSpacesForDefaultAndNonDefault) {\n            error(name, Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead, declarationNameToString(name));\n          } else if (declarationSpaces & commonDeclarationSpacesForExportsAndLocals) {\n            error(name, Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local, declarationNameToString(name));\n          }\n        }\n      }\n      function getDeclarationSpaces(decl) {\n        let d = decl;\n        switch (d.kind) {\n          case 261:\n          case 262:\n          case 349:\n          case 341:\n          case 343:\n            return 2;\n          case 264:\n            return isAmbientModule(d) || getModuleInstanceState(d) !== 0 ? 4 | 1 : 4;\n          case 260:\n          case 263:\n          case 302:\n            return 2 | 1;\n          case 308:\n            return 2 | 1 | 4;\n          case 274:\n          case 223:\n            const node2 = d;\n            const expression = isExportAssignment(node2) ? node2.expression : node2.right;\n            if (!isEntityNameExpression(expression)) {\n              return 1;\n            }\n            d = expression;\n          case 268:\n          case 271:\n          case 270:\n            let result = 0;\n            const target = resolveAlias(getSymbolOfDeclaration(d));\n            forEach(target.declarations, (d2) => {\n              result |= getDeclarationSpaces(d2);\n            });\n            return result;\n          case 257:\n          case 205:\n          case 259:\n          case 273:\n          case 79:\n            return 1;\n          case 170:\n          case 168:\n            return 2;\n          default:\n            return Debug.failBadSyntaxKind(d);\n        }\n      }\n    }\n    function getAwaitedTypeOfPromise(type, errorNode, diagnosticMessage, arg0) {\n      const promisedType = getPromisedTypeOfPromise(type, errorNode);\n      return promisedType && getAwaitedType(promisedType, errorNode, diagnosticMessage, arg0);\n    }\n    function getPromisedTypeOfPromise(type, errorNode, thisTypeForErrorOut) {\n      if (isTypeAny(type)) {\n        return void 0;\n      }\n      const typeAsPromise = type;\n      if (typeAsPromise.promisedTypeOfPromise) {\n        return typeAsPromise.promisedTypeOfPromise;\n      }\n      if (isReferenceToType2(type, getGlobalPromiseType(false))) {\n        return typeAsPromise.promisedTypeOfPromise = getTypeArguments(type)[0];\n      }\n      if (allTypesAssignableToKind(getBaseConstraintOrType(type), 134348796 | 131072)) {\n        return void 0;\n      }\n      const thenFunction = getTypeOfPropertyOfType(type, \"then\");\n      if (isTypeAny(thenFunction)) {\n        return void 0;\n      }\n      const thenSignatures = thenFunction ? getSignaturesOfType(thenFunction, 0) : emptyArray;\n      if (thenSignatures.length === 0) {\n        if (errorNode) {\n          error(errorNode, Diagnostics.A_promise_must_have_a_then_method);\n        }\n        return void 0;\n      }\n      let thisTypeForError;\n      let candidates;\n      for (const thenSignature of thenSignatures) {\n        const thisType = getThisTypeOfSignature(thenSignature);\n        if (thisType && thisType !== voidType && !isTypeRelatedTo(type, thisType, subtypeRelation)) {\n          thisTypeForError = thisType;\n        } else {\n          candidates = append(candidates, thenSignature);\n        }\n      }\n      if (!candidates) {\n        Debug.assertIsDefined(thisTypeForError);\n        if (thisTypeForErrorOut) {\n          thisTypeForErrorOut.value = thisTypeForError;\n        }\n        if (errorNode) {\n          error(errorNode, Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1, typeToString(type), typeToString(thisTypeForError));\n        }\n        return void 0;\n      }\n      const onfulfilledParameterType = getTypeWithFacts(getUnionType(map(candidates, getTypeOfFirstParameterOfSignature)), 2097152);\n      if (isTypeAny(onfulfilledParameterType)) {\n        return void 0;\n      }\n      const onfulfilledParameterSignatures = getSignaturesOfType(onfulfilledParameterType, 0);\n      if (onfulfilledParameterSignatures.length === 0) {\n        if (errorNode) {\n          error(errorNode, Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);\n        }\n        return void 0;\n      }\n      return typeAsPromise.promisedTypeOfPromise = getUnionType(map(onfulfilledParameterSignatures, getTypeOfFirstParameterOfSignature), 2);\n    }\n    function checkAwaitedType(type, withAlias, errorNode, diagnosticMessage, arg0) {\n      const awaitedType = withAlias ? getAwaitedType(type, errorNode, diagnosticMessage, arg0) : getAwaitedTypeNoAlias(type, errorNode, diagnosticMessage, arg0);\n      return awaitedType || errorType;\n    }\n    function isThenableType(type) {\n      if (allTypesAssignableToKind(getBaseConstraintOrType(type), 134348796 | 131072)) {\n        return false;\n      }\n      const thenFunction = getTypeOfPropertyOfType(type, \"then\");\n      return !!thenFunction && getSignaturesOfType(getTypeWithFacts(thenFunction, 2097152), 0).length > 0;\n    }\n    function isAwaitedTypeInstantiation(type) {\n      var _a2;\n      if (type.flags & 16777216) {\n        const awaitedSymbol = getGlobalAwaitedSymbol(false);\n        return !!awaitedSymbol && type.aliasSymbol === awaitedSymbol && ((_a2 = type.aliasTypeArguments) == null ? void 0 : _a2.length) === 1;\n      }\n      return false;\n    }\n    function unwrapAwaitedType(type) {\n      return type.flags & 1048576 ? mapType(type, unwrapAwaitedType) : isAwaitedTypeInstantiation(type) ? type.aliasTypeArguments[0] : type;\n    }\n    function isAwaitedTypeNeeded(type) {\n      if (isTypeAny(type) || isAwaitedTypeInstantiation(type)) {\n        return false;\n      }\n      if (isGenericObjectType(type)) {\n        const baseConstraint = getBaseConstraintOfType(type);\n        if (baseConstraint ? baseConstraint.flags & 3 || isEmptyObjectType(baseConstraint) || someType(baseConstraint, isThenableType) : maybeTypeOfKind(type, 8650752)) {\n          return true;\n        }\n      }\n      return false;\n    }\n    function tryCreateAwaitedType(type) {\n      const awaitedSymbol = getGlobalAwaitedSymbol(true);\n      if (awaitedSymbol) {\n        return getTypeAliasInstantiation(awaitedSymbol, [unwrapAwaitedType(type)]);\n      }\n      return void 0;\n    }\n    function createAwaitedTypeIfNeeded(type) {\n      if (isAwaitedTypeNeeded(type)) {\n        const awaitedType = tryCreateAwaitedType(type);\n        if (awaitedType) {\n          return awaitedType;\n        }\n      }\n      Debug.assert(isAwaitedTypeInstantiation(type) || getPromisedTypeOfPromise(type) === void 0, \"type provided should not be a non-generic 'promise'-like.\");\n      return type;\n    }\n    function getAwaitedType(type, errorNode, diagnosticMessage, arg0) {\n      const awaitedType = getAwaitedTypeNoAlias(type, errorNode, diagnosticMessage, arg0);\n      return awaitedType && createAwaitedTypeIfNeeded(awaitedType);\n    }\n    function getAwaitedTypeNoAlias(type, errorNode, diagnosticMessage, arg0) {\n      if (isTypeAny(type)) {\n        return type;\n      }\n      if (isAwaitedTypeInstantiation(type)) {\n        return type;\n      }\n      const typeAsAwaitable = type;\n      if (typeAsAwaitable.awaitedTypeOfType) {\n        return typeAsAwaitable.awaitedTypeOfType;\n      }\n      if (type.flags & 1048576) {\n        if (awaitedTypeStack.lastIndexOf(type.id) >= 0) {\n          if (errorNode) {\n            error(errorNode, Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);\n          }\n          return void 0;\n        }\n        const mapper = errorNode ? (constituentType) => getAwaitedTypeNoAlias(constituentType, errorNode, diagnosticMessage, arg0) : getAwaitedTypeNoAlias;\n        awaitedTypeStack.push(type.id);\n        const mapped = mapType(type, mapper);\n        awaitedTypeStack.pop();\n        return typeAsAwaitable.awaitedTypeOfType = mapped;\n      }\n      if (isAwaitedTypeNeeded(type)) {\n        return typeAsAwaitable.awaitedTypeOfType = type;\n      }\n      const thisTypeForErrorOut = { value: void 0 };\n      const promisedType = getPromisedTypeOfPromise(type, void 0, thisTypeForErrorOut);\n      if (promisedType) {\n        if (type.id === promisedType.id || awaitedTypeStack.lastIndexOf(promisedType.id) >= 0) {\n          if (errorNode) {\n            error(errorNode, Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);\n          }\n          return void 0;\n        }\n        awaitedTypeStack.push(type.id);\n        const awaitedType = getAwaitedTypeNoAlias(promisedType, errorNode, diagnosticMessage, arg0);\n        awaitedTypeStack.pop();\n        if (!awaitedType) {\n          return void 0;\n        }\n        return typeAsAwaitable.awaitedTypeOfType = awaitedType;\n      }\n      if (isThenableType(type)) {\n        if (errorNode) {\n          Debug.assertIsDefined(diagnosticMessage);\n          let chain;\n          if (thisTypeForErrorOut.value) {\n            chain = chainDiagnosticMessages(chain, Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1, typeToString(type), typeToString(thisTypeForErrorOut.value));\n          }\n          chain = chainDiagnosticMessages(chain, diagnosticMessage, arg0);\n          diagnostics.add(createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(errorNode), errorNode, chain));\n        }\n        return void 0;\n      }\n      return typeAsAwaitable.awaitedTypeOfType = type;\n    }\n    function checkAsyncFunctionReturnType(node, returnTypeNode) {\n      const returnType = getTypeFromTypeNode(returnTypeNode);\n      if (languageVersion >= 2) {\n        if (isErrorType(returnType)) {\n          return;\n        }\n        const globalPromiseType = getGlobalPromiseType(true);\n        if (globalPromiseType !== emptyGenericType && !isReferenceToType2(returnType, globalPromiseType)) {\n          error(returnTypeNode, Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0, typeToString(getAwaitedTypeNoAlias(returnType) || voidType));\n          return;\n        }\n      } else {\n        markTypeNodeAsReferenced(returnTypeNode);\n        if (isErrorType(returnType)) {\n          return;\n        }\n        const promiseConstructorName = getEntityNameFromTypeNode(returnTypeNode);\n        if (promiseConstructorName === void 0) {\n          error(returnTypeNode, Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, typeToString(returnType));\n          return;\n        }\n        const promiseConstructorSymbol = resolveEntityName(promiseConstructorName, 111551, true);\n        const promiseConstructorType = promiseConstructorSymbol ? getTypeOfSymbol(promiseConstructorSymbol) : errorType;\n        if (isErrorType(promiseConstructorType)) {\n          if (promiseConstructorName.kind === 79 && promiseConstructorName.escapedText === \"Promise\" && getTargetType(returnType) === getGlobalPromiseType(false)) {\n            error(returnTypeNode, Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option);\n          } else {\n            error(returnTypeNode, Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, entityNameToString(promiseConstructorName));\n          }\n          return;\n        }\n        const globalPromiseConstructorLikeType = getGlobalPromiseConstructorLikeType(true);\n        if (globalPromiseConstructorLikeType === emptyObjectType) {\n          error(returnTypeNode, Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, entityNameToString(promiseConstructorName));\n          return;\n        }\n        if (!checkTypeAssignableTo(promiseConstructorType, globalPromiseConstructorLikeType, returnTypeNode, Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value)) {\n          return;\n        }\n        const rootName = promiseConstructorName && getFirstIdentifier(promiseConstructorName);\n        const collidingSymbol = getSymbol2(node.locals, rootName.escapedText, 111551);\n        if (collidingSymbol) {\n          error(collidingSymbol.valueDeclaration, Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions, idText(rootName), entityNameToString(promiseConstructorName));\n          return;\n        }\n      }\n      checkAwaitedType(returnType, false, node, Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);\n    }\n    function checkDecorator(node) {\n      const signature = getResolvedSignature(node);\n      checkDeprecatedSignature(signature, node);\n      const returnType = getReturnTypeOfSignature(signature);\n      if (returnType.flags & 1) {\n        return;\n      }\n      const decoratorSignature = getDecoratorCallSignature(node);\n      if (!(decoratorSignature == null ? void 0 : decoratorSignature.resolvedReturnType))\n        return;\n      let headMessage;\n      const expectedReturnType = decoratorSignature.resolvedReturnType;\n      switch (node.parent.kind) {\n        case 260:\n        case 228:\n          headMessage = Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1;\n          break;\n        case 169:\n          if (!legacyDecorators) {\n            headMessage = Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1;\n            break;\n          }\n        case 166:\n          headMessage = Diagnostics.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;\n          break;\n        case 171:\n        case 174:\n        case 175:\n          headMessage = Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1;\n          break;\n        default:\n          return Debug.failBadSyntaxKind(node.parent);\n      }\n      checkTypeAssignableTo(returnType, expectedReturnType, node.expression, headMessage);\n    }\n    function createCallSignature(typeParameters, thisParameter, parameters, returnType, typePredicate, minArgumentCount = parameters.length, flags = 0) {\n      const decl = factory.createFunctionTypeNode(void 0, emptyArray, factory.createKeywordTypeNode(131));\n      return createSignature(decl, typeParameters, thisParameter, parameters, returnType, typePredicate, minArgumentCount, flags);\n    }\n    function createFunctionType(typeParameters, thisParameter, parameters, returnType, typePredicate, minArgumentCount, flags) {\n      const signature = createCallSignature(typeParameters, thisParameter, parameters, returnType, typePredicate, minArgumentCount, flags);\n      return getOrCreateTypeFromSignature(signature);\n    }\n    function createGetterFunctionType(type) {\n      return createFunctionType(void 0, void 0, emptyArray, type);\n    }\n    function createSetterFunctionType(type) {\n      const valueParam = createParameter(\"value\", type);\n      return createFunctionType(void 0, void 0, [valueParam], voidType);\n    }\n    function markTypeNodeAsReferenced(node) {\n      markEntityNameOrEntityExpressionAsReference(node && getEntityNameFromTypeNode(node), false);\n    }\n    function markEntityNameOrEntityExpressionAsReference(typeName, forDecoratorMetadata) {\n      if (!typeName)\n        return;\n      const rootName = getFirstIdentifier(typeName);\n      const meaning = (typeName.kind === 79 ? 788968 : 1920) | 2097152;\n      const rootSymbol = resolveName(rootName, rootName.escapedText, meaning, void 0, void 0, true);\n      if (rootSymbol && rootSymbol.flags & 2097152) {\n        if (!compilerOptions.verbatimModuleSyntax && symbolIsValue(rootSymbol) && !isConstEnumOrConstEnumOnlyModule(resolveAlias(rootSymbol)) && !getTypeOnlyAliasDeclaration(rootSymbol)) {\n          markAliasSymbolAsReferenced(rootSymbol);\n        } else if (forDecoratorMetadata && getIsolatedModules(compilerOptions) && getEmitModuleKind(compilerOptions) >= 5 && !symbolIsValue(rootSymbol) && !some(rootSymbol.declarations, isTypeOnlyImportOrExportDeclaration)) {\n          const diag2 = error(typeName, Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled);\n          const aliasDeclaration = find(rootSymbol.declarations || emptyArray, isAliasSymbolDeclaration2);\n          if (aliasDeclaration) {\n            addRelatedInfo(diag2, createDiagnosticForNode(aliasDeclaration, Diagnostics._0_was_imported_here, idText(rootName)));\n          }\n        }\n      }\n    }\n    function markDecoratorMedataDataTypeNodeAsReferenced(node) {\n      const entityName = getEntityNameForDecoratorMetadata(node);\n      if (entityName && isEntityName(entityName)) {\n        markEntityNameOrEntityExpressionAsReference(entityName, true);\n      }\n    }\n    function getEntityNameForDecoratorMetadata(node) {\n      if (node) {\n        switch (node.kind) {\n          case 190:\n          case 189:\n            return getEntityNameForDecoratorMetadataFromTypeList(node.types);\n          case 191:\n            return getEntityNameForDecoratorMetadataFromTypeList([node.trueType, node.falseType]);\n          case 193:\n          case 199:\n            return getEntityNameForDecoratorMetadata(node.type);\n          case 180:\n            return node.typeName;\n        }\n      }\n    }\n    function getEntityNameForDecoratorMetadataFromTypeList(types) {\n      let commonEntityName;\n      for (let typeNode of types) {\n        while (typeNode.kind === 193 || typeNode.kind === 199) {\n          typeNode = typeNode.type;\n        }\n        if (typeNode.kind === 144) {\n          continue;\n        }\n        if (!strictNullChecks && (typeNode.kind === 198 && typeNode.literal.kind === 104 || typeNode.kind === 155)) {\n          continue;\n        }\n        const individualEntityName = getEntityNameForDecoratorMetadata(typeNode);\n        if (!individualEntityName) {\n          return void 0;\n        }\n        if (commonEntityName) {\n          if (!isIdentifier(commonEntityName) || !isIdentifier(individualEntityName) || commonEntityName.escapedText !== individualEntityName.escapedText) {\n            return void 0;\n          }\n        } else {\n          commonEntityName = individualEntityName;\n        }\n      }\n      return commonEntityName;\n    }\n    function getParameterTypeNodeForDecoratorCheck(node) {\n      const typeNode = getEffectiveTypeAnnotationNode(node);\n      return isRestParameter(node) ? getRestParameterElementType(typeNode) : typeNode;\n    }\n    function checkDecorators(node) {\n      if (!canHaveDecorators(node) || !hasDecorators(node) || !node.modifiers || !nodeCanBeDecorated(legacyDecorators, node, node.parent, node.parent.parent)) {\n        return;\n      }\n      const firstDecorator = find(node.modifiers, isDecorator);\n      if (!firstDecorator) {\n        return;\n      }\n      if (legacyDecorators) {\n        checkExternalEmitHelpers(firstDecorator, 8);\n        if (node.kind === 166) {\n          checkExternalEmitHelpers(firstDecorator, 32);\n        }\n      } else if (languageVersion < 99) {\n        checkExternalEmitHelpers(firstDecorator, 8);\n        if (isClassDeclaration(node)) {\n          if (!node.name) {\n            checkExternalEmitHelpers(firstDecorator, 8388608);\n          } else {\n            const member = getFirstTransformableStaticClassElement(node);\n            if (member) {\n              checkExternalEmitHelpers(firstDecorator, 8388608);\n            }\n          }\n        } else if (!isClassExpression(node)) {\n          if (isPrivateIdentifier(node.name) && (isMethodDeclaration(node) || isAccessor(node) || isAutoAccessorPropertyDeclaration(node))) {\n            checkExternalEmitHelpers(firstDecorator, 8388608);\n          }\n          if (isComputedPropertyName(node.name)) {\n            checkExternalEmitHelpers(firstDecorator, 16777216);\n          }\n        }\n      }\n      if (compilerOptions.emitDecoratorMetadata) {\n        checkExternalEmitHelpers(firstDecorator, 16);\n        switch (node.kind) {\n          case 260:\n            const constructor = getFirstConstructorWithBody(node);\n            if (constructor) {\n              for (const parameter of constructor.parameters) {\n                markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter));\n              }\n            }\n            break;\n          case 174:\n          case 175:\n            const otherKind = node.kind === 174 ? 175 : 174;\n            const otherAccessor = getDeclarationOfKind(getSymbolOfDeclaration(node), otherKind);\n            markDecoratorMedataDataTypeNodeAsReferenced(getAnnotatedAccessorTypeNode(node) || otherAccessor && getAnnotatedAccessorTypeNode(otherAccessor));\n            break;\n          case 171:\n            for (const parameter of node.parameters) {\n              markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter));\n            }\n            markDecoratorMedataDataTypeNodeAsReferenced(getEffectiveReturnTypeNode(node));\n            break;\n          case 169:\n            markDecoratorMedataDataTypeNodeAsReferenced(getEffectiveTypeAnnotationNode(node));\n            break;\n          case 166:\n            markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(node));\n            const containingSignature = node.parent;\n            for (const parameter of containingSignature.parameters) {\n              markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter));\n            }\n            break;\n        }\n      }\n      for (const modifier of node.modifiers) {\n        if (isDecorator(modifier)) {\n          checkDecorator(modifier);\n        }\n      }\n    }\n    function checkFunctionDeclaration(node) {\n      addLazyDiagnostic(checkFunctionDeclarationDiagnostics);\n      function checkFunctionDeclarationDiagnostics() {\n        checkFunctionOrMethodDeclaration(node);\n        checkGrammarForGenerator(node);\n        checkCollisionsForDeclarationName(node, node.name);\n      }\n    }\n    function checkJSDocTypeAliasTag(node) {\n      if (!node.typeExpression) {\n        error(node.name, Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags);\n      }\n      if (node.name) {\n        checkTypeNameIsReserved(node.name, Diagnostics.Type_alias_name_cannot_be_0);\n      }\n      checkSourceElement(node.typeExpression);\n      checkTypeParameters(getEffectiveTypeParameterDeclarations(node));\n    }\n    function checkJSDocTemplateTag(node) {\n      checkSourceElement(node.constraint);\n      for (const tp of node.typeParameters) {\n        checkSourceElement(tp);\n      }\n    }\n    function checkJSDocTypeTag(node) {\n      checkSourceElement(node.typeExpression);\n    }\n    function checkJSDocSatisfiesTag(node) {\n      checkSourceElement(node.typeExpression);\n      const host2 = getEffectiveJSDocHost(node);\n      if (host2) {\n        const tags = getAllJSDocTags(host2, isJSDocSatisfiesTag);\n        if (length(tags) > 1) {\n          for (let i = 1; i < length(tags); i++) {\n            const tagName = tags[i].tagName;\n            error(tagName, Diagnostics._0_tag_already_specified, idText(tagName));\n          }\n        }\n      }\n    }\n    function checkJSDocLinkLikeTag(node) {\n      if (node.name) {\n        resolveJSDocMemberName(node.name, true);\n      }\n    }\n    function checkJSDocParameterTag(node) {\n      checkSourceElement(node.typeExpression);\n    }\n    function checkJSDocPropertyTag(node) {\n      checkSourceElement(node.typeExpression);\n    }\n    function checkJSDocFunctionType(node) {\n      addLazyDiagnostic(checkJSDocFunctionTypeImplicitAny);\n      checkSignatureDeclaration(node);\n      function checkJSDocFunctionTypeImplicitAny() {\n        if (!node.type && !isJSDocConstructSignature(node)) {\n          reportImplicitAny(node, anyType);\n        }\n      }\n    }\n    function checkJSDocImplementsTag(node) {\n      const classLike = getEffectiveJSDocHost(node);\n      if (!classLike || !isClassDeclaration(classLike) && !isClassExpression(classLike)) {\n        error(classLike, Diagnostics.JSDoc_0_is_not_attached_to_a_class, idText(node.tagName));\n      }\n    }\n    function checkJSDocAugmentsTag(node) {\n      const classLike = getEffectiveJSDocHost(node);\n      if (!classLike || !isClassDeclaration(classLike) && !isClassExpression(classLike)) {\n        error(classLike, Diagnostics.JSDoc_0_is_not_attached_to_a_class, idText(node.tagName));\n        return;\n      }\n      const augmentsTags = getJSDocTags(classLike).filter(isJSDocAugmentsTag);\n      Debug.assert(augmentsTags.length > 0);\n      if (augmentsTags.length > 1) {\n        error(augmentsTags[1], Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);\n      }\n      const name = getIdentifierFromEntityNameExpression(node.class.expression);\n      const extend2 = getClassExtendsHeritageElement(classLike);\n      if (extend2) {\n        const className = getIdentifierFromEntityNameExpression(extend2.expression);\n        if (className && name.escapedText !== className.escapedText) {\n          error(name, Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause, idText(node.tagName), idText(name), idText(className));\n        }\n      }\n    }\n    function checkJSDocAccessibilityModifiers(node) {\n      const host2 = getJSDocHost(node);\n      if (host2 && isPrivateIdentifierClassElementDeclaration(host2)) {\n        error(node, Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);\n      }\n    }\n    function getIdentifierFromEntityNameExpression(node) {\n      switch (node.kind) {\n        case 79:\n          return node;\n        case 208:\n          return node.name;\n        default:\n          return void 0;\n      }\n    }\n    function checkFunctionOrMethodDeclaration(node) {\n      var _a2;\n      checkDecorators(node);\n      checkSignatureDeclaration(node);\n      const functionFlags = getFunctionFlags(node);\n      if (node.name && node.name.kind === 164) {\n        checkComputedPropertyName(node.name);\n      }\n      if (hasBindableName(node)) {\n        const symbol = getSymbolOfDeclaration(node);\n        const localSymbol = node.localSymbol || symbol;\n        const firstDeclaration = (_a2 = localSymbol.declarations) == null ? void 0 : _a2.find((declaration) => declaration.kind === node.kind && !(declaration.flags & 262144));\n        if (node === firstDeclaration) {\n          checkFunctionOrConstructorSymbol(localSymbol);\n        }\n        if (symbol.parent) {\n          checkFunctionOrConstructorSymbol(symbol);\n        }\n      }\n      const body = node.kind === 170 ? void 0 : node.body;\n      checkSourceElement(body);\n      checkAllCodePathsInNonVoidFunctionReturnOrThrow(node, getReturnTypeFromAnnotation(node));\n      addLazyDiagnostic(checkFunctionOrMethodDeclarationDiagnostics);\n      if (isInJSFile(node)) {\n        const typeTag = getJSDocTypeTag(node);\n        if (typeTag && typeTag.typeExpression && !getContextualCallSignature(getTypeFromTypeNode(typeTag.typeExpression), node)) {\n          error(typeTag.typeExpression.type, Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature);\n        }\n      }\n      function checkFunctionOrMethodDeclarationDiagnostics() {\n        if (!getEffectiveReturnTypeNode(node)) {\n          if (nodeIsMissing(body) && !isPrivateWithinAmbient(node)) {\n            reportImplicitAny(node, anyType);\n          }\n          if (functionFlags & 1 && nodeIsPresent(body)) {\n            getReturnTypeOfSignature(getSignatureFromDeclaration(node));\n          }\n        }\n      }\n    }\n    function registerForUnusedIdentifiersCheck(node) {\n      addLazyDiagnostic(registerForUnusedIdentifiersCheckDiagnostics);\n      function registerForUnusedIdentifiersCheckDiagnostics() {\n        const sourceFile = getSourceFileOfNode(node);\n        let potentiallyUnusedIdentifiers = allPotentiallyUnusedIdentifiers.get(sourceFile.path);\n        if (!potentiallyUnusedIdentifiers) {\n          potentiallyUnusedIdentifiers = [];\n          allPotentiallyUnusedIdentifiers.set(sourceFile.path, potentiallyUnusedIdentifiers);\n        }\n        potentiallyUnusedIdentifiers.push(node);\n      }\n    }\n    function checkUnusedIdentifiers(potentiallyUnusedIdentifiers, addDiagnostic) {\n      for (const node of potentiallyUnusedIdentifiers) {\n        switch (node.kind) {\n          case 260:\n          case 228:\n            checkUnusedClassMembers(node, addDiagnostic);\n            checkUnusedTypeParameters(node, addDiagnostic);\n            break;\n          case 308:\n          case 264:\n          case 238:\n          case 266:\n          case 245:\n          case 246:\n          case 247:\n            checkUnusedLocalsAndParameters(node, addDiagnostic);\n            break;\n          case 173:\n          case 215:\n          case 259:\n          case 216:\n          case 171:\n          case 174:\n          case 175:\n            if (node.body) {\n              checkUnusedLocalsAndParameters(node, addDiagnostic);\n            }\n            checkUnusedTypeParameters(node, addDiagnostic);\n            break;\n          case 170:\n          case 176:\n          case 177:\n          case 181:\n          case 182:\n          case 262:\n          case 261:\n            checkUnusedTypeParameters(node, addDiagnostic);\n            break;\n          case 192:\n            checkUnusedInferTypeParameter(node, addDiagnostic);\n            break;\n          default:\n            Debug.assertNever(node, \"Node should not have been registered for unused identifiers check\");\n        }\n      }\n    }\n    function errorUnusedLocal(declaration, name, addDiagnostic) {\n      const node = getNameOfDeclaration(declaration) || declaration;\n      const message = isTypeDeclaration(declaration) ? Diagnostics._0_is_declared_but_never_used : Diagnostics._0_is_declared_but_its_value_is_never_read;\n      addDiagnostic(declaration, 0, createDiagnosticForNode(node, message, name));\n    }\n    function isIdentifierThatStartsWithUnderscore(node) {\n      return isIdentifier(node) && idText(node).charCodeAt(0) === 95;\n    }\n    function checkUnusedClassMembers(node, addDiagnostic) {\n      for (const member of node.members) {\n        switch (member.kind) {\n          case 171:\n          case 169:\n          case 174:\n          case 175:\n            if (member.kind === 175 && member.symbol.flags & 32768) {\n              break;\n            }\n            const symbol = getSymbolOfDeclaration(member);\n            if (!symbol.isReferenced && (hasEffectiveModifier(member, 8) || isNamedDeclaration(member) && isPrivateIdentifier(member.name)) && !(member.flags & 16777216)) {\n              addDiagnostic(member, 0, createDiagnosticForNode(member.name, Diagnostics._0_is_declared_but_its_value_is_never_read, symbolToString(symbol)));\n            }\n            break;\n          case 173:\n            for (const parameter of member.parameters) {\n              if (!parameter.symbol.isReferenced && hasSyntacticModifier(parameter, 8)) {\n                addDiagnostic(parameter, 0, createDiagnosticForNode(parameter.name, Diagnostics.Property_0_is_declared_but_its_value_is_never_read, symbolName(parameter.symbol)));\n              }\n            }\n            break;\n          case 178:\n          case 237:\n          case 172:\n            break;\n          default:\n            Debug.fail(\"Unexpected class member\");\n        }\n      }\n    }\n    function checkUnusedInferTypeParameter(node, addDiagnostic) {\n      const { typeParameter } = node;\n      if (isTypeParameterUnused(typeParameter)) {\n        addDiagnostic(node, 1, createDiagnosticForNode(node, Diagnostics._0_is_declared_but_its_value_is_never_read, idText(typeParameter.name)));\n      }\n    }\n    function checkUnusedTypeParameters(node, addDiagnostic) {\n      const declarations = getSymbolOfDeclaration(node).declarations;\n      if (!declarations || last(declarations) !== node)\n        return;\n      const typeParameters = getEffectiveTypeParameterDeclarations(node);\n      const seenParentsWithEveryUnused = /* @__PURE__ */ new Set();\n      for (const typeParameter of typeParameters) {\n        if (!isTypeParameterUnused(typeParameter))\n          continue;\n        const name = idText(typeParameter.name);\n        const { parent: parent2 } = typeParameter;\n        if (parent2.kind !== 192 && parent2.typeParameters.every(isTypeParameterUnused)) {\n          if (tryAddToSet(seenParentsWithEveryUnused, parent2)) {\n            const sourceFile = getSourceFileOfNode(parent2);\n            const range = isJSDocTemplateTag(parent2) ? rangeOfNode(parent2) : rangeOfTypeParameters(sourceFile, parent2.typeParameters);\n            const only = parent2.typeParameters.length === 1;\n            const message = only ? Diagnostics._0_is_declared_but_its_value_is_never_read : Diagnostics.All_type_parameters_are_unused;\n            const arg0 = only ? name : void 0;\n            addDiagnostic(typeParameter, 1, createFileDiagnostic(sourceFile, range.pos, range.end - range.pos, message, arg0));\n          }\n        } else {\n          addDiagnostic(typeParameter, 1, createDiagnosticForNode(typeParameter, Diagnostics._0_is_declared_but_its_value_is_never_read, name));\n        }\n      }\n    }\n    function isTypeParameterUnused(typeParameter) {\n      return !(getMergedSymbol(typeParameter.symbol).isReferenced & 262144) && !isIdentifierThatStartsWithUnderscore(typeParameter.name);\n    }\n    function addToGroup(map2, key, value, getKey) {\n      const keyString = String(getKey(key));\n      const group2 = map2.get(keyString);\n      if (group2) {\n        group2[1].push(value);\n      } else {\n        map2.set(keyString, [key, [value]]);\n      }\n    }\n    function tryGetRootParameterDeclaration(node) {\n      return tryCast(getRootDeclaration(node), isParameter);\n    }\n    function isValidUnusedLocalDeclaration(declaration) {\n      if (isBindingElement(declaration)) {\n        if (isObjectBindingPattern(declaration.parent)) {\n          return !!(declaration.propertyName && isIdentifierThatStartsWithUnderscore(declaration.name));\n        }\n        return isIdentifierThatStartsWithUnderscore(declaration.name);\n      }\n      return isAmbientModule(declaration) || (isVariableDeclaration(declaration) && isForInOrOfStatement(declaration.parent.parent) || isImportedDeclaration(declaration)) && isIdentifierThatStartsWithUnderscore(declaration.name);\n    }\n    function checkUnusedLocalsAndParameters(nodeWithLocals, addDiagnostic) {\n      const unusedImports = /* @__PURE__ */ new Map();\n      const unusedDestructures = /* @__PURE__ */ new Map();\n      const unusedVariables = /* @__PURE__ */ new Map();\n      nodeWithLocals.locals.forEach((local) => {\n        if (local.flags & 262144 ? !(local.flags & 3 && !(local.isReferenced & 3)) : local.isReferenced || local.exportSymbol) {\n          return;\n        }\n        if (local.declarations) {\n          for (const declaration of local.declarations) {\n            if (isValidUnusedLocalDeclaration(declaration)) {\n              continue;\n            }\n            if (isImportedDeclaration(declaration)) {\n              addToGroup(unusedImports, importClauseFromImported(declaration), declaration, getNodeId);\n            } else if (isBindingElement(declaration) && isObjectBindingPattern(declaration.parent)) {\n              const lastElement = last(declaration.parent.elements);\n              if (declaration === lastElement || !last(declaration.parent.elements).dotDotDotToken) {\n                addToGroup(unusedDestructures, declaration.parent, declaration, getNodeId);\n              }\n            } else if (isVariableDeclaration(declaration)) {\n              addToGroup(unusedVariables, declaration.parent, declaration, getNodeId);\n            } else {\n              const parameter = local.valueDeclaration && tryGetRootParameterDeclaration(local.valueDeclaration);\n              const name = local.valueDeclaration && getNameOfDeclaration(local.valueDeclaration);\n              if (parameter && name) {\n                if (!isParameterPropertyDeclaration(parameter, parameter.parent) && !parameterIsThisKeyword(parameter) && !isIdentifierThatStartsWithUnderscore(name)) {\n                  if (isBindingElement(declaration) && isArrayBindingPattern(declaration.parent)) {\n                    addToGroup(unusedDestructures, declaration.parent, declaration, getNodeId);\n                  } else {\n                    addDiagnostic(parameter, 1, createDiagnosticForNode(name, Diagnostics._0_is_declared_but_its_value_is_never_read, symbolName(local)));\n                  }\n                }\n              } else {\n                errorUnusedLocal(declaration, symbolName(local), addDiagnostic);\n              }\n            }\n          }\n        }\n      });\n      unusedImports.forEach(([importClause, unuseds]) => {\n        const importDecl = importClause.parent;\n        const nDeclarations = (importClause.name ? 1 : 0) + (importClause.namedBindings ? importClause.namedBindings.kind === 271 ? 1 : importClause.namedBindings.elements.length : 0);\n        if (nDeclarations === unuseds.length) {\n          addDiagnostic(importDecl, 0, unuseds.length === 1 ? createDiagnosticForNode(importDecl, Diagnostics._0_is_declared_but_its_value_is_never_read, idText(first(unuseds).name)) : createDiagnosticForNode(importDecl, Diagnostics.All_imports_in_import_declaration_are_unused));\n        } else {\n          for (const unused of unuseds)\n            errorUnusedLocal(unused, idText(unused.name), addDiagnostic);\n        }\n      });\n      unusedDestructures.forEach(([bindingPattern, bindingElements]) => {\n        const kind = tryGetRootParameterDeclaration(bindingPattern.parent) ? 1 : 0;\n        if (bindingPattern.elements.length === bindingElements.length) {\n          if (bindingElements.length === 1 && bindingPattern.parent.kind === 257 && bindingPattern.parent.parent.kind === 258) {\n            addToGroup(unusedVariables, bindingPattern.parent.parent, bindingPattern.parent, getNodeId);\n          } else {\n            addDiagnostic(bindingPattern, kind, bindingElements.length === 1 ? createDiagnosticForNode(bindingPattern, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(first(bindingElements).name)) : createDiagnosticForNode(bindingPattern, Diagnostics.All_destructured_elements_are_unused));\n          }\n        } else {\n          for (const e of bindingElements) {\n            addDiagnostic(e, kind, createDiagnosticForNode(e, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(e.name)));\n          }\n        }\n      });\n      unusedVariables.forEach(([declarationList, declarations]) => {\n        if (declarationList.declarations.length === declarations.length) {\n          addDiagnostic(declarationList, 0, declarations.length === 1 ? createDiagnosticForNode(first(declarations).name, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(first(declarations).name)) : createDiagnosticForNode(declarationList.parent.kind === 240 ? declarationList.parent : declarationList, Diagnostics.All_variables_are_unused));\n        } else {\n          for (const decl of declarations) {\n            addDiagnostic(decl, 0, createDiagnosticForNode(decl, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(decl.name)));\n          }\n        }\n      });\n    }\n    function checkPotentialUncheckedRenamedBindingElementsInTypes() {\n      var _a2;\n      for (const node of potentialUnusedRenamedBindingElementsInTypes) {\n        if (!((_a2 = getSymbolOfDeclaration(node)) == null ? void 0 : _a2.isReferenced)) {\n          const wrappingDeclaration = walkUpBindingElementsAndPatterns(node);\n          Debug.assert(isParameterDeclaration(wrappingDeclaration), \"Only parameter declaration should be checked here\");\n          const diagnostic = createDiagnosticForNode(node.name, Diagnostics._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation, declarationNameToString(node.name), declarationNameToString(node.propertyName));\n          if (!wrappingDeclaration.type) {\n            addRelatedInfo(diagnostic, createFileDiagnostic(getSourceFileOfNode(wrappingDeclaration), wrappingDeclaration.end, 1, Diagnostics.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here, declarationNameToString(node.propertyName)));\n          }\n          diagnostics.add(diagnostic);\n        }\n      }\n    }\n    function bindingNameText(name) {\n      switch (name.kind) {\n        case 79:\n          return idText(name);\n        case 204:\n        case 203:\n          return bindingNameText(cast(first(name.elements), isBindingElement).name);\n        default:\n          return Debug.assertNever(name);\n      }\n    }\n    function isImportedDeclaration(node) {\n      return node.kind === 270 || node.kind === 273 || node.kind === 271;\n    }\n    function importClauseFromImported(decl) {\n      return decl.kind === 270 ? decl : decl.kind === 271 ? decl.parent : decl.parent.parent;\n    }\n    function checkBlock(node) {\n      if (node.kind === 238) {\n        checkGrammarStatementInAmbientContext(node);\n      }\n      if (isFunctionOrModuleBlock(node)) {\n        const saveFlowAnalysisDisabled = flowAnalysisDisabled;\n        forEach(node.statements, checkSourceElement);\n        flowAnalysisDisabled = saveFlowAnalysisDisabled;\n      } else {\n        forEach(node.statements, checkSourceElement);\n      }\n      if (node.locals) {\n        registerForUnusedIdentifiersCheck(node);\n      }\n    }\n    function checkCollisionWithArgumentsInGeneratedCode(node) {\n      if (languageVersion >= 2 || !hasRestParameter(node) || node.flags & 16777216 || nodeIsMissing(node.body)) {\n        return;\n      }\n      forEach(node.parameters, (p) => {\n        if (p.name && !isBindingPattern(p.name) && p.name.escapedText === argumentsSymbol.escapedName) {\n          errorSkippedOn(\"noEmit\", p, Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters);\n        }\n      });\n    }\n    function needCollisionCheckForIdentifier(node, identifier, name) {\n      if ((identifier == null ? void 0 : identifier.escapedText) !== name) {\n        return false;\n      }\n      if (node.kind === 169 || node.kind === 168 || node.kind === 171 || node.kind === 170 || node.kind === 174 || node.kind === 175 || node.kind === 299) {\n        return false;\n      }\n      if (node.flags & 16777216) {\n        return false;\n      }\n      if (isImportClause(node) || isImportEqualsDeclaration(node) || isImportSpecifier(node)) {\n        if (isTypeOnlyImportOrExportDeclaration(node)) {\n          return false;\n        }\n      }\n      const root = getRootDeclaration(node);\n      if (isParameter(root) && nodeIsMissing(root.parent.body)) {\n        return false;\n      }\n      return true;\n    }\n    function checkIfThisIsCapturedInEnclosingScope(node) {\n      findAncestor(node, (current) => {\n        if (getNodeCheckFlags(current) & 4) {\n          const isDeclaration2 = node.kind !== 79;\n          if (isDeclaration2) {\n            error(getNameOfDeclaration(node), Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference);\n          } else {\n            error(node, Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference);\n          }\n          return true;\n        }\n        return false;\n      });\n    }\n    function checkIfNewTargetIsCapturedInEnclosingScope(node) {\n      findAncestor(node, (current) => {\n        if (getNodeCheckFlags(current) & 8) {\n          const isDeclaration2 = node.kind !== 79;\n          if (isDeclaration2) {\n            error(getNameOfDeclaration(node), Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference);\n          } else {\n            error(node, Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference);\n          }\n          return true;\n        }\n        return false;\n      });\n    }\n    function checkCollisionWithRequireExportsInGeneratedCode(node, name) {\n      if (moduleKind >= 5 && !(moduleKind >= 100 && getSourceFileOfNode(node).impliedNodeFormat === 1)) {\n        return;\n      }\n      if (!name || !needCollisionCheckForIdentifier(node, name, \"require\") && !needCollisionCheckForIdentifier(node, name, \"exports\")) {\n        return;\n      }\n      if (isModuleDeclaration(node) && getModuleInstanceState(node) !== 1) {\n        return;\n      }\n      const parent2 = getDeclarationContainer(node);\n      if (parent2.kind === 308 && isExternalOrCommonJsModule(parent2)) {\n        errorSkippedOn(\"noEmit\", name, Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module, declarationNameToString(name), declarationNameToString(name));\n      }\n    }\n    function checkCollisionWithGlobalPromiseInGeneratedCode(node, name) {\n      if (!name || languageVersion >= 4 || !needCollisionCheckForIdentifier(node, name, \"Promise\")) {\n        return;\n      }\n      if (isModuleDeclaration(node) && getModuleInstanceState(node) !== 1) {\n        return;\n      }\n      const parent2 = getDeclarationContainer(node);\n      if (parent2.kind === 308 && isExternalOrCommonJsModule(parent2) && parent2.flags & 2048) {\n        errorSkippedOn(\"noEmit\", name, Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions, declarationNameToString(name), declarationNameToString(name));\n      }\n    }\n    function recordPotentialCollisionWithWeakMapSetInGeneratedCode(node, name) {\n      if (languageVersion <= 8 && (needCollisionCheckForIdentifier(node, name, \"WeakMap\") || needCollisionCheckForIdentifier(node, name, \"WeakSet\"))) {\n        potentialWeakMapSetCollisions.push(node);\n      }\n    }\n    function checkWeakMapSetCollision(node) {\n      const enclosingBlockScope = getEnclosingBlockScopeContainer(node);\n      if (getNodeCheckFlags(enclosingBlockScope) & 4194304) {\n        Debug.assert(isNamedDeclaration(node) && isIdentifier(node.name) && typeof node.name.escapedText === \"string\", \"The target of a WeakMap/WeakSet collision check should be an identifier\");\n        errorSkippedOn(\"noEmit\", node, Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel, node.name.escapedText);\n      }\n    }\n    function recordPotentialCollisionWithReflectInGeneratedCode(node, name) {\n      if (name && languageVersion >= 2 && languageVersion <= 8 && needCollisionCheckForIdentifier(node, name, \"Reflect\")) {\n        potentialReflectCollisions.push(node);\n      }\n    }\n    function checkReflectCollision(node) {\n      let hasCollision = false;\n      if (isClassExpression(node)) {\n        for (const member of node.members) {\n          if (getNodeCheckFlags(member) & 8388608) {\n            hasCollision = true;\n            break;\n          }\n        }\n      } else if (isFunctionExpression(node)) {\n        if (getNodeCheckFlags(node) & 8388608) {\n          hasCollision = true;\n        }\n      } else {\n        const container = getEnclosingBlockScopeContainer(node);\n        if (container && getNodeCheckFlags(container) & 8388608) {\n          hasCollision = true;\n        }\n      }\n      if (hasCollision) {\n        Debug.assert(isNamedDeclaration(node) && isIdentifier(node.name), \"The target of a Reflect collision check should be an identifier\");\n        errorSkippedOn(\"noEmit\", node, Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers, declarationNameToString(node.name), \"Reflect\");\n      }\n    }\n    function checkCollisionsForDeclarationName(node, name) {\n      if (!name)\n        return;\n      checkCollisionWithRequireExportsInGeneratedCode(node, name);\n      checkCollisionWithGlobalPromiseInGeneratedCode(node, name);\n      recordPotentialCollisionWithWeakMapSetInGeneratedCode(node, name);\n      recordPotentialCollisionWithReflectInGeneratedCode(node, name);\n      if (isClassLike(node)) {\n        checkTypeNameIsReserved(name, Diagnostics.Class_name_cannot_be_0);\n        if (!(node.flags & 16777216)) {\n          checkClassNameCollisionWithObject(name);\n        }\n      } else if (isEnumDeclaration(node)) {\n        checkTypeNameIsReserved(name, Diagnostics.Enum_name_cannot_be_0);\n      }\n    }\n    function checkVarDeclaredNamesNotShadowed(node) {\n      if ((getCombinedNodeFlags(node) & 3) !== 0 || isParameterDeclaration(node)) {\n        return;\n      }\n      if (node.kind === 257 && !node.initializer) {\n        return;\n      }\n      const symbol = getSymbolOfDeclaration(node);\n      if (symbol.flags & 1) {\n        if (!isIdentifier(node.name))\n          return Debug.fail();\n        const localDeclarationSymbol = resolveName(node, node.name.escapedText, 3, void 0, void 0, false);\n        if (localDeclarationSymbol && localDeclarationSymbol !== symbol && localDeclarationSymbol.flags & 2) {\n          if (getDeclarationNodeFlagsFromSymbol(localDeclarationSymbol) & 3) {\n            const varDeclList = getAncestor(localDeclarationSymbol.valueDeclaration, 258);\n            const container = varDeclList.parent.kind === 240 && varDeclList.parent.parent ? varDeclList.parent.parent : void 0;\n            const namesShareScope = container && (container.kind === 238 && isFunctionLike(container.parent) || container.kind === 265 || container.kind === 264 || container.kind === 308);\n            if (!namesShareScope) {\n              const name = symbolToString(localDeclarationSymbol);\n              error(node, Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1, name, name);\n            }\n          }\n        }\n      }\n    }\n    function convertAutoToAny(type) {\n      return type === autoType ? anyType : type === autoArrayType ? anyArrayType : type;\n    }\n    function checkVariableLikeDeclaration(node) {\n      var _a2;\n      checkDecorators(node);\n      if (!isBindingElement(node)) {\n        checkSourceElement(node.type);\n      }\n      if (!node.name) {\n        return;\n      }\n      if (node.name.kind === 164) {\n        checkComputedPropertyName(node.name);\n        if (hasOnlyExpressionInitializer(node) && node.initializer) {\n          checkExpressionCached(node.initializer);\n        }\n      }\n      if (isBindingElement(node)) {\n        if (node.propertyName && isIdentifier(node.name) && isParameterDeclaration(node) && nodeIsMissing(getContainingFunction(node).body)) {\n          potentialUnusedRenamedBindingElementsInTypes.push(node);\n          return;\n        }\n        if (isObjectBindingPattern(node.parent) && node.dotDotDotToken && languageVersion < 5) {\n          checkExternalEmitHelpers(node, 4);\n        }\n        if (node.propertyName && node.propertyName.kind === 164) {\n          checkComputedPropertyName(node.propertyName);\n        }\n        const parent2 = node.parent.parent;\n        const parentCheckMode = node.dotDotDotToken ? 64 : 0;\n        const parentType = getTypeForBindingElementParent(parent2, parentCheckMode);\n        const name = node.propertyName || node.name;\n        if (parentType && !isBindingPattern(name)) {\n          const exprType = getLiteralTypeFromPropertyName(name);\n          if (isTypeUsableAsPropertyName(exprType)) {\n            const nameText = getPropertyNameFromType(exprType);\n            const property = getPropertyOfType(parentType, nameText);\n            if (property) {\n              markPropertyAsReferenced(property, void 0, false);\n              checkPropertyAccessibility(node, !!parent2.initializer && parent2.initializer.kind === 106, false, parentType, property);\n            }\n          }\n        }\n      }\n      if (isBindingPattern(node.name)) {\n        if (node.name.kind === 204 && languageVersion < 2 && compilerOptions.downlevelIteration) {\n          checkExternalEmitHelpers(node, 512);\n        }\n        forEach(node.name.elements, checkSourceElement);\n      }\n      if (isParameter(node) && node.initializer && nodeIsMissing(getContainingFunction(node).body)) {\n        error(node, Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);\n        return;\n      }\n      if (isBindingPattern(node.name)) {\n        const needCheckInitializer = hasOnlyExpressionInitializer(node) && node.initializer && node.parent.parent.kind !== 246;\n        const needCheckWidenedType = !some(node.name.elements, not(isOmittedExpression));\n        if (needCheckInitializer || needCheckWidenedType) {\n          const widenedType = getWidenedTypeForVariableLikeDeclaration(node);\n          if (needCheckInitializer) {\n            const initializerType = checkExpressionCached(node.initializer);\n            if (strictNullChecks && needCheckWidenedType) {\n              checkNonNullNonVoidType(initializerType, node);\n            } else {\n              checkTypeAssignableToAndOptionallyElaborate(initializerType, getWidenedTypeForVariableLikeDeclaration(node), node, node.initializer);\n            }\n          }\n          if (needCheckWidenedType) {\n            if (isArrayBindingPattern(node.name)) {\n              checkIteratedTypeOrElementType(65, widenedType, undefinedType, node);\n            } else if (strictNullChecks) {\n              checkNonNullNonVoidType(widenedType, node);\n            }\n          }\n        }\n        return;\n      }\n      const symbol = getSymbolOfDeclaration(node);\n      if (symbol.flags & 2097152 && (isVariableDeclarationInitializedToBareOrAccessedRequire(node) || isBindingElementOfBareOrAccessedRequire(node))) {\n        checkAliasSymbol(node);\n        return;\n      }\n      const type = convertAutoToAny(getTypeOfSymbol(symbol));\n      if (node === symbol.valueDeclaration) {\n        const initializer = hasOnlyExpressionInitializer(node) && getEffectiveInitializer(node);\n        if (initializer) {\n          const isJSObjectLiteralInitializer = isInJSFile(node) && isObjectLiteralExpression(initializer) && (initializer.properties.length === 0 || isPrototypeAccess(node.name)) && !!((_a2 = symbol.exports) == null ? void 0 : _a2.size);\n          if (!isJSObjectLiteralInitializer && node.parent.parent.kind !== 246) {\n            checkTypeAssignableToAndOptionallyElaborate(checkExpressionCached(initializer), type, node, initializer, void 0);\n          }\n        }\n        if (symbol.declarations && symbol.declarations.length > 1) {\n          if (some(symbol.declarations, (d) => d !== node && isVariableLike(d) && !areDeclarationFlagsIdentical(d, node))) {\n            error(node.name, Diagnostics.All_declarations_of_0_must_have_identical_modifiers, declarationNameToString(node.name));\n          }\n        }\n      } else {\n        const declarationType = convertAutoToAny(getWidenedTypeForVariableLikeDeclaration(node));\n        if (!isErrorType(type) && !isErrorType(declarationType) && !isTypeIdenticalTo(type, declarationType) && !(symbol.flags & 67108864)) {\n          errorNextVariableOrPropertyDeclarationMustHaveSameType(symbol.valueDeclaration, type, node, declarationType);\n        }\n        if (hasOnlyExpressionInitializer(node) && node.initializer) {\n          checkTypeAssignableToAndOptionallyElaborate(checkExpressionCached(node.initializer), declarationType, node, node.initializer, void 0);\n        }\n        if (symbol.valueDeclaration && !areDeclarationFlagsIdentical(node, symbol.valueDeclaration)) {\n          error(node.name, Diagnostics.All_declarations_of_0_must_have_identical_modifiers, declarationNameToString(node.name));\n        }\n      }\n      if (node.kind !== 169 && node.kind !== 168) {\n        checkExportsOnMergedDeclarations(node);\n        if (node.kind === 257 || node.kind === 205) {\n          checkVarDeclaredNamesNotShadowed(node);\n        }\n        checkCollisionsForDeclarationName(node, node.name);\n      }\n    }\n    function errorNextVariableOrPropertyDeclarationMustHaveSameType(firstDeclaration, firstType, nextDeclaration, nextType) {\n      const nextDeclarationName = getNameOfDeclaration(nextDeclaration);\n      const message = nextDeclaration.kind === 169 || nextDeclaration.kind === 168 ? Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2 : Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2;\n      const declName = declarationNameToString(nextDeclarationName);\n      const err = error(nextDeclarationName, message, declName, typeToString(firstType), typeToString(nextType));\n      if (firstDeclaration) {\n        addRelatedInfo(err, createDiagnosticForNode(firstDeclaration, Diagnostics._0_was_also_declared_here, declName));\n      }\n    }\n    function areDeclarationFlagsIdentical(left, right) {\n      if (left.kind === 166 && right.kind === 257 || left.kind === 257 && right.kind === 166) {\n        return true;\n      }\n      if (hasQuestionToken(left) !== hasQuestionToken(right)) {\n        return false;\n      }\n      const interestingFlags = 8 | 16 | 512 | 256 | 64 | 32;\n      return getSelectedEffectiveModifierFlags(left, interestingFlags) === getSelectedEffectiveModifierFlags(right, interestingFlags);\n    }\n    function checkVariableDeclaration(node) {\n      var _a2, _b;\n      (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Check, \"checkVariableDeclaration\", { kind: node.kind, pos: node.pos, end: node.end, path: node.tracingPath });\n      checkGrammarVariableDeclaration(node);\n      checkVariableLikeDeclaration(node);\n      (_b = tracing) == null ? void 0 : _b.pop();\n    }\n    function checkBindingElement(node) {\n      checkGrammarBindingElement(node);\n      return checkVariableLikeDeclaration(node);\n    }\n    function checkVariableStatement(node) {\n      if (!checkGrammarModifiers(node) && !checkGrammarVariableDeclarationList(node.declarationList))\n        checkGrammarForDisallowedLetOrConstStatement(node);\n      forEach(node.declarationList.declarations, checkSourceElement);\n    }\n    function checkExpressionStatement(node) {\n      checkGrammarStatementInAmbientContext(node);\n      checkExpression(node.expression);\n    }\n    function checkIfStatement(node) {\n      checkGrammarStatementInAmbientContext(node);\n      const type = checkTruthinessExpression(node.expression);\n      checkTestingKnownTruthyCallableOrAwaitableType(node.expression, type, node.thenStatement);\n      checkSourceElement(node.thenStatement);\n      if (node.thenStatement.kind === 239) {\n        error(node.thenStatement, Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement);\n      }\n      checkSourceElement(node.elseStatement);\n    }\n    function checkTestingKnownTruthyCallableOrAwaitableType(condExpr, condType, body) {\n      if (!strictNullChecks)\n        return;\n      bothHelper(condExpr, body);\n      function bothHelper(condExpr2, body2) {\n        condExpr2 = skipParentheses(condExpr2);\n        helper(condExpr2, body2);\n        while (isBinaryExpression(condExpr2) && (condExpr2.operatorToken.kind === 56 || condExpr2.operatorToken.kind === 60)) {\n          condExpr2 = skipParentheses(condExpr2.left);\n          helper(condExpr2, body2);\n        }\n      }\n      function helper(condExpr2, body2) {\n        const location = isLogicalOrCoalescingBinaryExpression(condExpr2) ? skipParentheses(condExpr2.right) : condExpr2;\n        if (isModuleExportsAccessExpression(location)) {\n          return;\n        }\n        if (isLogicalOrCoalescingBinaryExpression(location)) {\n          bothHelper(location, body2);\n          return;\n        }\n        const type = location === condExpr2 ? condType : checkTruthinessExpression(location);\n        const isPropertyExpressionCast = isPropertyAccessExpression(location) && isTypeAssertion(location.expression);\n        if (!(getTypeFacts(type) & 4194304) || isPropertyExpressionCast)\n          return;\n        const callSignatures = getSignaturesOfType(type, 0);\n        const isPromise = !!getAwaitedTypeOfPromise(type);\n        if (callSignatures.length === 0 && !isPromise) {\n          return;\n        }\n        const testedNode = isIdentifier(location) ? location : isPropertyAccessExpression(location) ? location.name : void 0;\n        const testedSymbol = testedNode && getSymbolAtLocation(testedNode);\n        if (!testedSymbol && !isPromise) {\n          return;\n        }\n        const isUsed = testedSymbol && isBinaryExpression(condExpr2.parent) && isSymbolUsedInBinaryExpressionChain(condExpr2.parent, testedSymbol) || testedSymbol && body2 && isSymbolUsedInConditionBody(condExpr2, body2, testedNode, testedSymbol);\n        if (!isUsed) {\n          if (isPromise) {\n            errorAndMaybeSuggestAwait(location, true, Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined, getTypeNameForErrorDisplay(type));\n          } else {\n            error(location, Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead);\n          }\n        }\n      }\n    }\n    function isSymbolUsedInConditionBody(expr, body, testedNode, testedSymbol) {\n      return !!forEachChild(body, function check(childNode) {\n        if (isIdentifier(childNode)) {\n          const childSymbol = getSymbolAtLocation(childNode);\n          if (childSymbol && childSymbol === testedSymbol) {\n            if (isIdentifier(expr) || isIdentifier(testedNode) && isBinaryExpression(testedNode.parent)) {\n              return true;\n            }\n            let testedExpression = testedNode.parent;\n            let childExpression = childNode.parent;\n            while (testedExpression && childExpression) {\n              if (isIdentifier(testedExpression) && isIdentifier(childExpression) || testedExpression.kind === 108 && childExpression.kind === 108) {\n                return getSymbolAtLocation(testedExpression) === getSymbolAtLocation(childExpression);\n              } else if (isPropertyAccessExpression(testedExpression) && isPropertyAccessExpression(childExpression)) {\n                if (getSymbolAtLocation(testedExpression.name) !== getSymbolAtLocation(childExpression.name)) {\n                  return false;\n                }\n                childExpression = childExpression.expression;\n                testedExpression = testedExpression.expression;\n              } else if (isCallExpression(testedExpression) && isCallExpression(childExpression)) {\n                childExpression = childExpression.expression;\n                testedExpression = testedExpression.expression;\n              } else {\n                return false;\n              }\n            }\n          }\n        }\n        return forEachChild(childNode, check);\n      });\n    }\n    function isSymbolUsedInBinaryExpressionChain(node, testedSymbol) {\n      while (isBinaryExpression(node) && node.operatorToken.kind === 55) {\n        const isUsed = forEachChild(node.right, function visit(child) {\n          if (isIdentifier(child)) {\n            const symbol = getSymbolAtLocation(child);\n            if (symbol && symbol === testedSymbol) {\n              return true;\n            }\n          }\n          return forEachChild(child, visit);\n        });\n        if (isUsed) {\n          return true;\n        }\n        node = node.parent;\n      }\n      return false;\n    }\n    function checkDoStatement(node) {\n      checkGrammarStatementInAmbientContext(node);\n      checkSourceElement(node.statement);\n      checkTruthinessExpression(node.expression);\n    }\n    function checkWhileStatement(node) {\n      checkGrammarStatementInAmbientContext(node);\n      checkTruthinessExpression(node.expression);\n      checkSourceElement(node.statement);\n    }\n    function checkTruthinessOfType(type, node) {\n      if (type.flags & 16384) {\n        error(node, Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness);\n      }\n      return type;\n    }\n    function checkTruthinessExpression(node, checkMode) {\n      return checkTruthinessOfType(checkExpression(node, checkMode), node);\n    }\n    function checkForStatement(node) {\n      if (!checkGrammarStatementInAmbientContext(node)) {\n        if (node.initializer && node.initializer.kind === 258) {\n          checkGrammarVariableDeclarationList(node.initializer);\n        }\n      }\n      if (node.initializer) {\n        if (node.initializer.kind === 258) {\n          forEach(node.initializer.declarations, checkVariableDeclaration);\n        } else {\n          checkExpression(node.initializer);\n        }\n      }\n      if (node.condition)\n        checkTruthinessExpression(node.condition);\n      if (node.incrementor)\n        checkExpression(node.incrementor);\n      checkSourceElement(node.statement);\n      if (node.locals) {\n        registerForUnusedIdentifiersCheck(node);\n      }\n    }\n    function checkForOfStatement(node) {\n      checkGrammarForInOrForOfStatement(node);\n      const container = getContainingFunctionOrClassStaticBlock(node);\n      if (node.awaitModifier) {\n        if (container && isClassStaticBlockDeclaration(container)) {\n          grammarErrorOnNode(node.awaitModifier, Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block);\n        } else {\n          const functionFlags = getFunctionFlags(container);\n          if ((functionFlags & (4 | 2)) === 2 && languageVersion < 99) {\n            checkExternalEmitHelpers(node, 16384);\n          }\n        }\n      } else if (compilerOptions.downlevelIteration && languageVersion < 2) {\n        checkExternalEmitHelpers(node, 256);\n      }\n      if (node.initializer.kind === 258) {\n        checkForInOrForOfVariableDeclaration(node);\n      } else {\n        const varExpr = node.initializer;\n        const iteratedType = checkRightHandSideOfForOf(node);\n        if (varExpr.kind === 206 || varExpr.kind === 207) {\n          checkDestructuringAssignment(varExpr, iteratedType || errorType);\n        } else {\n          const leftType = checkExpression(varExpr);\n          checkReferenceExpression(varExpr, Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access, Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access);\n          if (iteratedType) {\n            checkTypeAssignableToAndOptionallyElaborate(iteratedType, leftType, varExpr, node.expression);\n          }\n        }\n      }\n      checkSourceElement(node.statement);\n      if (node.locals) {\n        registerForUnusedIdentifiersCheck(node);\n      }\n    }\n    function checkForInStatement(node) {\n      checkGrammarForInOrForOfStatement(node);\n      const rightType = getNonNullableTypeIfNeeded(checkExpression(node.expression));\n      if (node.initializer.kind === 258) {\n        const variable = node.initializer.declarations[0];\n        if (variable && isBindingPattern(variable.name)) {\n          error(variable.name, Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern);\n        }\n        checkForInOrForOfVariableDeclaration(node);\n      } else {\n        const varExpr = node.initializer;\n        const leftType = checkExpression(varExpr);\n        if (varExpr.kind === 206 || varExpr.kind === 207) {\n          error(varExpr, Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern);\n        } else if (!isTypeAssignableTo(getIndexTypeOrString(rightType), leftType)) {\n          error(varExpr, Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any);\n        } else {\n          checkReferenceExpression(varExpr, Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access, Diagnostics.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access);\n        }\n      }\n      if (rightType === neverType || !isTypeAssignableToKind(rightType, 67108864 | 58982400)) {\n        error(node.expression, Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0, typeToString(rightType));\n      }\n      checkSourceElement(node.statement);\n      if (node.locals) {\n        registerForUnusedIdentifiersCheck(node);\n      }\n    }\n    function checkForInOrForOfVariableDeclaration(iterationStatement) {\n      const variableDeclarationList = iterationStatement.initializer;\n      if (variableDeclarationList.declarations.length >= 1) {\n        const decl = variableDeclarationList.declarations[0];\n        checkVariableDeclaration(decl);\n      }\n    }\n    function checkRightHandSideOfForOf(statement) {\n      const use = statement.awaitModifier ? 15 : 13;\n      return checkIteratedTypeOrElementType(use, checkNonNullExpression(statement.expression), undefinedType, statement.expression);\n    }\n    function checkIteratedTypeOrElementType(use, inputType, sentType, errorNode) {\n      if (isTypeAny(inputType)) {\n        return inputType;\n      }\n      return getIteratedTypeOrElementType(use, inputType, sentType, errorNode, true) || anyType;\n    }\n    function getIteratedTypeOrElementType(use, inputType, sentType, errorNode, checkAssignability) {\n      const allowAsyncIterables = (use & 2) !== 0;\n      if (inputType === neverType) {\n        reportTypeNotIterableError(errorNode, inputType, allowAsyncIterables);\n        return void 0;\n      }\n      const uplevelIteration = languageVersion >= 2;\n      const downlevelIteration = !uplevelIteration && compilerOptions.downlevelIteration;\n      const possibleOutOfBounds = compilerOptions.noUncheckedIndexedAccess && !!(use & 128);\n      if (uplevelIteration || downlevelIteration || allowAsyncIterables) {\n        const iterationTypes = getIterationTypesOfIterable(inputType, use, uplevelIteration ? errorNode : void 0);\n        if (checkAssignability) {\n          if (iterationTypes) {\n            const diagnostic = use & 8 ? Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0 : use & 32 ? Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0 : use & 64 ? Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0 : use & 16 ? Diagnostics.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0 : void 0;\n            if (diagnostic) {\n              checkTypeAssignableTo(sentType, iterationTypes.nextType, errorNode, diagnostic);\n            }\n          }\n        }\n        if (iterationTypes || uplevelIteration) {\n          return possibleOutOfBounds ? includeUndefinedInIndexSignature(iterationTypes && iterationTypes.yieldType) : iterationTypes && iterationTypes.yieldType;\n        }\n      }\n      let arrayType = inputType;\n      let reportedError = false;\n      let hasStringConstituent = false;\n      if (use & 4) {\n        if (arrayType.flags & 1048576) {\n          const arrayTypes = inputType.types;\n          const filteredTypes = filter(arrayTypes, (t) => !(t.flags & 402653316));\n          if (filteredTypes !== arrayTypes) {\n            arrayType = getUnionType(filteredTypes, 2);\n          }\n        } else if (arrayType.flags & 402653316) {\n          arrayType = neverType;\n        }\n        hasStringConstituent = arrayType !== inputType;\n        if (hasStringConstituent) {\n          if (languageVersion < 1) {\n            if (errorNode) {\n              error(errorNode, Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher);\n              reportedError = true;\n            }\n          }\n          if (arrayType.flags & 131072) {\n            return possibleOutOfBounds ? includeUndefinedInIndexSignature(stringType) : stringType;\n          }\n        }\n      }\n      if (!isArrayLikeType(arrayType)) {\n        if (errorNode && !reportedError) {\n          const allowsStrings = !!(use & 4) && !hasStringConstituent;\n          const [defaultDiagnostic, maybeMissingAwait] = getIterationDiagnosticDetails(allowsStrings, downlevelIteration);\n          errorAndMaybeSuggestAwait(errorNode, maybeMissingAwait && !!getAwaitedTypeOfPromise(arrayType), defaultDiagnostic, typeToString(arrayType));\n        }\n        return hasStringConstituent ? possibleOutOfBounds ? includeUndefinedInIndexSignature(stringType) : stringType : void 0;\n      }\n      const arrayElementType = getIndexTypeOfType(arrayType, numberType);\n      if (hasStringConstituent && arrayElementType) {\n        if (arrayElementType.flags & 402653316 && !compilerOptions.noUncheckedIndexedAccess) {\n          return stringType;\n        }\n        return getUnionType(possibleOutOfBounds ? [arrayElementType, stringType, undefinedType] : [arrayElementType, stringType], 2);\n      }\n      return use & 128 ? includeUndefinedInIndexSignature(arrayElementType) : arrayElementType;\n      function getIterationDiagnosticDetails(allowsStrings, downlevelIteration2) {\n        var _a2;\n        if (downlevelIteration2) {\n          return allowsStrings ? [Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator, true] : [Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator, true];\n        }\n        const yieldType = getIterationTypeOfIterable(use, 0, inputType, void 0);\n        if (yieldType) {\n          return [Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher, false];\n        }\n        if (isES2015OrLaterIterable((_a2 = inputType.symbol) == null ? void 0 : _a2.escapedName)) {\n          return [Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher, true];\n        }\n        return allowsStrings ? [Diagnostics.Type_0_is_not_an_array_type_or_a_string_type, true] : [Diagnostics.Type_0_is_not_an_array_type, true];\n      }\n    }\n    function isES2015OrLaterIterable(n) {\n      switch (n) {\n        case \"Float32Array\":\n        case \"Float64Array\":\n        case \"Int16Array\":\n        case \"Int32Array\":\n        case \"Int8Array\":\n        case \"NodeList\":\n        case \"Uint16Array\":\n        case \"Uint32Array\":\n        case \"Uint8Array\":\n        case \"Uint8ClampedArray\":\n          return true;\n      }\n      return false;\n    }\n    function getIterationTypeOfIterable(use, typeKind, inputType, errorNode) {\n      if (isTypeAny(inputType)) {\n        return void 0;\n      }\n      const iterationTypes = getIterationTypesOfIterable(inputType, use, errorNode);\n      return iterationTypes && iterationTypes[getIterationTypesKeyFromIterationTypeKind(typeKind)];\n    }\n    function createIterationTypes(yieldType = neverType, returnType = neverType, nextType = unknownType) {\n      if (yieldType.flags & 67359327 && returnType.flags & (1 | 131072 | 2 | 16384 | 32768) && nextType.flags & (1 | 131072 | 2 | 16384 | 32768)) {\n        const id = getTypeListId([yieldType, returnType, nextType]);\n        let iterationTypes = iterationTypesCache.get(id);\n        if (!iterationTypes) {\n          iterationTypes = { yieldType, returnType, nextType };\n          iterationTypesCache.set(id, iterationTypes);\n        }\n        return iterationTypes;\n      }\n      return { yieldType, returnType, nextType };\n    }\n    function combineIterationTypes(array) {\n      let yieldTypes;\n      let returnTypes;\n      let nextTypes;\n      for (const iterationTypes of array) {\n        if (iterationTypes === void 0 || iterationTypes === noIterationTypes) {\n          continue;\n        }\n        if (iterationTypes === anyIterationTypes) {\n          return anyIterationTypes;\n        }\n        yieldTypes = append(yieldTypes, iterationTypes.yieldType);\n        returnTypes = append(returnTypes, iterationTypes.returnType);\n        nextTypes = append(nextTypes, iterationTypes.nextType);\n      }\n      if (yieldTypes || returnTypes || nextTypes) {\n        return createIterationTypes(yieldTypes && getUnionType(yieldTypes), returnTypes && getUnionType(returnTypes), nextTypes && getIntersectionType(nextTypes));\n      }\n      return noIterationTypes;\n    }\n    function getCachedIterationTypes(type, cacheKey) {\n      return type[cacheKey];\n    }\n    function setCachedIterationTypes(type, cacheKey, cachedTypes2) {\n      return type[cacheKey] = cachedTypes2;\n    }\n    function getIterationTypesOfIterable(type, use, errorNode) {\n      var _a2, _b;\n      if (isTypeAny(type)) {\n        return anyIterationTypes;\n      }\n      if (!(type.flags & 1048576)) {\n        const errorOutputContainer = errorNode ? { errors: void 0 } : void 0;\n        const iterationTypes2 = getIterationTypesOfIterableWorker(type, use, errorNode, errorOutputContainer);\n        if (iterationTypes2 === noIterationTypes) {\n          if (errorNode) {\n            const rootDiag = reportTypeNotIterableError(errorNode, type, !!(use & 2));\n            if (errorOutputContainer == null ? void 0 : errorOutputContainer.errors) {\n              addRelatedInfo(rootDiag, ...errorOutputContainer.errors);\n            }\n          }\n          return void 0;\n        } else if ((_a2 = errorOutputContainer == null ? void 0 : errorOutputContainer.errors) == null ? void 0 : _a2.length) {\n          for (const diag2 of errorOutputContainer.errors) {\n            diagnostics.add(diag2);\n          }\n        }\n        return iterationTypes2;\n      }\n      const cacheKey = use & 2 ? \"iterationTypesOfAsyncIterable\" : \"iterationTypesOfIterable\";\n      const cachedTypes2 = getCachedIterationTypes(type, cacheKey);\n      if (cachedTypes2)\n        return cachedTypes2 === noIterationTypes ? void 0 : cachedTypes2;\n      let allIterationTypes;\n      for (const constituent of type.types) {\n        const errorOutputContainer = errorNode ? { errors: void 0 } : void 0;\n        const iterationTypes2 = getIterationTypesOfIterableWorker(constituent, use, errorNode, errorOutputContainer);\n        if (iterationTypes2 === noIterationTypes) {\n          if (errorNode) {\n            const rootDiag = reportTypeNotIterableError(errorNode, type, !!(use & 2));\n            if (errorOutputContainer == null ? void 0 : errorOutputContainer.errors) {\n              addRelatedInfo(rootDiag, ...errorOutputContainer.errors);\n            }\n          }\n          setCachedIterationTypes(type, cacheKey, noIterationTypes);\n          return void 0;\n        } else if ((_b = errorOutputContainer == null ? void 0 : errorOutputContainer.errors) == null ? void 0 : _b.length) {\n          for (const diag2 of errorOutputContainer.errors) {\n            diagnostics.add(diag2);\n          }\n        }\n        allIterationTypes = append(allIterationTypes, iterationTypes2);\n      }\n      const iterationTypes = allIterationTypes ? combineIterationTypes(allIterationTypes) : noIterationTypes;\n      setCachedIterationTypes(type, cacheKey, iterationTypes);\n      return iterationTypes === noIterationTypes ? void 0 : iterationTypes;\n    }\n    function getAsyncFromSyncIterationTypes(iterationTypes, errorNode) {\n      if (iterationTypes === noIterationTypes)\n        return noIterationTypes;\n      if (iterationTypes === anyIterationTypes)\n        return anyIterationTypes;\n      const { yieldType, returnType, nextType } = iterationTypes;\n      if (errorNode) {\n        getGlobalAwaitedSymbol(true);\n      }\n      return createIterationTypes(getAwaitedType(yieldType, errorNode) || anyType, getAwaitedType(returnType, errorNode) || anyType, nextType);\n    }\n    function getIterationTypesOfIterableWorker(type, use, errorNode, errorOutputContainer) {\n      if (isTypeAny(type)) {\n        return anyIterationTypes;\n      }\n      let noCache = false;\n      if (use & 2) {\n        const iterationTypes = getIterationTypesOfIterableCached(type, asyncIterationTypesResolver) || getIterationTypesOfIterableFast(type, asyncIterationTypesResolver);\n        if (iterationTypes) {\n          if (iterationTypes === noIterationTypes && errorNode) {\n            noCache = true;\n          } else {\n            return use & 8 ? getAsyncFromSyncIterationTypes(iterationTypes, errorNode) : iterationTypes;\n          }\n        }\n      }\n      if (use & 1) {\n        let iterationTypes = getIterationTypesOfIterableCached(type, syncIterationTypesResolver) || getIterationTypesOfIterableFast(type, syncIterationTypesResolver);\n        if (iterationTypes) {\n          if (iterationTypes === noIterationTypes && errorNode) {\n            noCache = true;\n          } else {\n            if (use & 2) {\n              if (iterationTypes !== noIterationTypes) {\n                iterationTypes = getAsyncFromSyncIterationTypes(iterationTypes, errorNode);\n                return noCache ? iterationTypes : setCachedIterationTypes(type, \"iterationTypesOfAsyncIterable\", iterationTypes);\n              }\n            } else {\n              return iterationTypes;\n            }\n          }\n        }\n      }\n      if (use & 2) {\n        const iterationTypes = getIterationTypesOfIterableSlow(type, asyncIterationTypesResolver, errorNode, errorOutputContainer, noCache);\n        if (iterationTypes !== noIterationTypes) {\n          return iterationTypes;\n        }\n      }\n      if (use & 1) {\n        let iterationTypes = getIterationTypesOfIterableSlow(type, syncIterationTypesResolver, errorNode, errorOutputContainer, noCache);\n        if (iterationTypes !== noIterationTypes) {\n          if (use & 2) {\n            iterationTypes = getAsyncFromSyncIterationTypes(iterationTypes, errorNode);\n            return noCache ? iterationTypes : setCachedIterationTypes(type, \"iterationTypesOfAsyncIterable\", iterationTypes);\n          } else {\n            return iterationTypes;\n          }\n        }\n      }\n      return noIterationTypes;\n    }\n    function getIterationTypesOfIterableCached(type, resolver) {\n      return getCachedIterationTypes(type, resolver.iterableCacheKey);\n    }\n    function getIterationTypesOfGlobalIterableType(globalType, resolver) {\n      const globalIterationTypes = getIterationTypesOfIterableCached(globalType, resolver) || getIterationTypesOfIterableSlow(globalType, resolver, void 0, void 0, false);\n      return globalIterationTypes === noIterationTypes ? defaultIterationTypes : globalIterationTypes;\n    }\n    function getIterationTypesOfIterableFast(type, resolver) {\n      let globalType;\n      if (isReferenceToType2(type, globalType = resolver.getGlobalIterableType(false)) || isReferenceToType2(type, globalType = resolver.getGlobalIterableIteratorType(false))) {\n        const [yieldType] = getTypeArguments(type);\n        const { returnType, nextType } = getIterationTypesOfGlobalIterableType(globalType, resolver);\n        return setCachedIterationTypes(type, resolver.iterableCacheKey, createIterationTypes(resolver.resolveIterationType(yieldType, void 0) || yieldType, resolver.resolveIterationType(returnType, void 0) || returnType, nextType));\n      }\n      if (isReferenceToType2(type, resolver.getGlobalGeneratorType(false))) {\n        const [yieldType, returnType, nextType] = getTypeArguments(type);\n        return setCachedIterationTypes(type, resolver.iterableCacheKey, createIterationTypes(resolver.resolveIterationType(yieldType, void 0) || yieldType, resolver.resolveIterationType(returnType, void 0) || returnType, nextType));\n      }\n    }\n    function getPropertyNameForKnownSymbolName(symbolName2) {\n      const ctorType = getGlobalESSymbolConstructorSymbol(false);\n      const uniqueType = ctorType && getTypeOfPropertyOfType(getTypeOfSymbol(ctorType), escapeLeadingUnderscores(symbolName2));\n      return uniqueType && isTypeUsableAsPropertyName(uniqueType) ? getPropertyNameFromType(uniqueType) : `__@${symbolName2}`;\n    }\n    function getIterationTypesOfIterableSlow(type, resolver, errorNode, errorOutputContainer, noCache) {\n      var _a2;\n      const method = getPropertyOfType(type, getPropertyNameForKnownSymbolName(resolver.iteratorSymbolName));\n      const methodType = method && !(method.flags & 16777216) ? getTypeOfSymbol(method) : void 0;\n      if (isTypeAny(methodType)) {\n        return noCache ? anyIterationTypes : setCachedIterationTypes(type, resolver.iterableCacheKey, anyIterationTypes);\n      }\n      const signatures = methodType ? getSignaturesOfType(methodType, 0) : void 0;\n      if (!some(signatures)) {\n        return noCache ? noIterationTypes : setCachedIterationTypes(type, resolver.iterableCacheKey, noIterationTypes);\n      }\n      const iteratorType = getIntersectionType(map(signatures, getReturnTypeOfSignature));\n      const iterationTypes = (_a2 = getIterationTypesOfIteratorWorker(iteratorType, resolver, errorNode, errorOutputContainer, noCache)) != null ? _a2 : noIterationTypes;\n      return noCache ? iterationTypes : setCachedIterationTypes(type, resolver.iterableCacheKey, iterationTypes);\n    }\n    function reportTypeNotIterableError(errorNode, type, allowAsyncIterables) {\n      const message = allowAsyncIterables ? Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator : Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;\n      const suggestAwait = !!getAwaitedTypeOfPromise(type) || !allowAsyncIterables && isForOfStatement(errorNode.parent) && errorNode.parent.expression === errorNode && getGlobalAsyncIterableType(false) !== emptyGenericType && isTypeAssignableTo(type, getGlobalAsyncIterableType(false));\n      return errorAndMaybeSuggestAwait(errorNode, suggestAwait, message, typeToString(type));\n    }\n    function getIterationTypesOfIterator(type, resolver, errorNode, errorOutputContainer) {\n      return getIterationTypesOfIteratorWorker(type, resolver, errorNode, errorOutputContainer, false);\n    }\n    function getIterationTypesOfIteratorWorker(type, resolver, errorNode, errorOutputContainer, noCache) {\n      if (isTypeAny(type)) {\n        return anyIterationTypes;\n      }\n      let iterationTypes = getIterationTypesOfIteratorCached(type, resolver) || getIterationTypesOfIteratorFast(type, resolver);\n      if (iterationTypes === noIterationTypes && errorNode) {\n        iterationTypes = void 0;\n        noCache = true;\n      }\n      iterationTypes != null ? iterationTypes : iterationTypes = getIterationTypesOfIteratorSlow(type, resolver, errorNode, errorOutputContainer, noCache);\n      return iterationTypes === noIterationTypes ? void 0 : iterationTypes;\n    }\n    function getIterationTypesOfIteratorCached(type, resolver) {\n      return getCachedIterationTypes(type, resolver.iteratorCacheKey);\n    }\n    function getIterationTypesOfIteratorFast(type, resolver) {\n      const globalType = resolver.getGlobalIterableIteratorType(false);\n      if (isReferenceToType2(type, globalType)) {\n        const [yieldType] = getTypeArguments(type);\n        const globalIterationTypes = getIterationTypesOfIteratorCached(globalType, resolver) || getIterationTypesOfIteratorSlow(globalType, resolver, void 0, void 0, false);\n        const { returnType, nextType } = globalIterationTypes === noIterationTypes ? defaultIterationTypes : globalIterationTypes;\n        return setCachedIterationTypes(type, resolver.iteratorCacheKey, createIterationTypes(yieldType, returnType, nextType));\n      }\n      if (isReferenceToType2(type, resolver.getGlobalIteratorType(false)) || isReferenceToType2(type, resolver.getGlobalGeneratorType(false))) {\n        const [yieldType, returnType, nextType] = getTypeArguments(type);\n        return setCachedIterationTypes(type, resolver.iteratorCacheKey, createIterationTypes(yieldType, returnType, nextType));\n      }\n    }\n    function isIteratorResult(type, kind) {\n      const doneType = getTypeOfPropertyOfType(type, \"done\") || falseType;\n      return isTypeAssignableTo(kind === 0 ? falseType : trueType, doneType);\n    }\n    function isYieldIteratorResult(type) {\n      return isIteratorResult(type, 0);\n    }\n    function isReturnIteratorResult(type) {\n      return isIteratorResult(type, 1);\n    }\n    function getIterationTypesOfIteratorResult(type) {\n      if (isTypeAny(type)) {\n        return anyIterationTypes;\n      }\n      const cachedTypes2 = getCachedIterationTypes(type, \"iterationTypesOfIteratorResult\");\n      if (cachedTypes2) {\n        return cachedTypes2;\n      }\n      if (isReferenceToType2(type, getGlobalIteratorYieldResultType(false))) {\n        const yieldType2 = getTypeArguments(type)[0];\n        return setCachedIterationTypes(type, \"iterationTypesOfIteratorResult\", createIterationTypes(yieldType2, void 0, void 0));\n      }\n      if (isReferenceToType2(type, getGlobalIteratorReturnResultType(false))) {\n        const returnType2 = getTypeArguments(type)[0];\n        return setCachedIterationTypes(type, \"iterationTypesOfIteratorResult\", createIterationTypes(void 0, returnType2, void 0));\n      }\n      const yieldIteratorResult = filterType(type, isYieldIteratorResult);\n      const yieldType = yieldIteratorResult !== neverType ? getTypeOfPropertyOfType(yieldIteratorResult, \"value\") : void 0;\n      const returnIteratorResult = filterType(type, isReturnIteratorResult);\n      const returnType = returnIteratorResult !== neverType ? getTypeOfPropertyOfType(returnIteratorResult, \"value\") : void 0;\n      if (!yieldType && !returnType) {\n        return setCachedIterationTypes(type, \"iterationTypesOfIteratorResult\", noIterationTypes);\n      }\n      return setCachedIterationTypes(type, \"iterationTypesOfIteratorResult\", createIterationTypes(yieldType, returnType || voidType, void 0));\n    }\n    function getIterationTypesOfMethod(type, resolver, methodName, errorNode, errorOutputContainer) {\n      var _a2, _b, _c, _d, _e, _f;\n      const method = getPropertyOfType(type, methodName);\n      if (!method && methodName !== \"next\") {\n        return void 0;\n      }\n      const methodType = method && !(methodName === \"next\" && method.flags & 16777216) ? methodName === \"next\" ? getTypeOfSymbol(method) : getTypeWithFacts(getTypeOfSymbol(method), 2097152) : void 0;\n      if (isTypeAny(methodType)) {\n        return methodName === \"next\" ? anyIterationTypes : anyIterationTypesExceptNext;\n      }\n      const methodSignatures = methodType ? getSignaturesOfType(methodType, 0) : emptyArray;\n      if (methodSignatures.length === 0) {\n        if (errorNode) {\n          const diagnostic = methodName === \"next\" ? resolver.mustHaveANextMethodDiagnostic : resolver.mustBeAMethodDiagnostic;\n          if (errorOutputContainer) {\n            (_a2 = errorOutputContainer.errors) != null ? _a2 : errorOutputContainer.errors = [];\n            errorOutputContainer.errors.push(createDiagnosticForNode(errorNode, diagnostic, methodName));\n          } else {\n            error(errorNode, diagnostic, methodName);\n          }\n        }\n        return methodName === \"next\" ? noIterationTypes : void 0;\n      }\n      if ((methodType == null ? void 0 : methodType.symbol) && methodSignatures.length === 1) {\n        const globalGeneratorType = resolver.getGlobalGeneratorType(false);\n        const globalIteratorType = resolver.getGlobalIteratorType(false);\n        const isGeneratorMethod = ((_c = (_b = globalGeneratorType.symbol) == null ? void 0 : _b.members) == null ? void 0 : _c.get(methodName)) === methodType.symbol;\n        const isIteratorMethod = !isGeneratorMethod && ((_e = (_d = globalIteratorType.symbol) == null ? void 0 : _d.members) == null ? void 0 : _e.get(methodName)) === methodType.symbol;\n        if (isGeneratorMethod || isIteratorMethod) {\n          const globalType = isGeneratorMethod ? globalGeneratorType : globalIteratorType;\n          const { mapper } = methodType;\n          return createIterationTypes(getMappedType(globalType.typeParameters[0], mapper), getMappedType(globalType.typeParameters[1], mapper), methodName === \"next\" ? getMappedType(globalType.typeParameters[2], mapper) : void 0);\n        }\n      }\n      let methodParameterTypes;\n      let methodReturnTypes;\n      for (const signature of methodSignatures) {\n        if (methodName !== \"throw\" && some(signature.parameters)) {\n          methodParameterTypes = append(methodParameterTypes, getTypeAtPosition(signature, 0));\n        }\n        methodReturnTypes = append(methodReturnTypes, getReturnTypeOfSignature(signature));\n      }\n      let returnTypes;\n      let nextType;\n      if (methodName !== \"throw\") {\n        const methodParameterType = methodParameterTypes ? getUnionType(methodParameterTypes) : unknownType;\n        if (methodName === \"next\") {\n          nextType = methodParameterType;\n        } else if (methodName === \"return\") {\n          const resolvedMethodParameterType = resolver.resolveIterationType(methodParameterType, errorNode) || anyType;\n          returnTypes = append(returnTypes, resolvedMethodParameterType);\n        }\n      }\n      let yieldType;\n      const methodReturnType = methodReturnTypes ? getIntersectionType(methodReturnTypes) : neverType;\n      const resolvedMethodReturnType = resolver.resolveIterationType(methodReturnType, errorNode) || anyType;\n      const iterationTypes = getIterationTypesOfIteratorResult(resolvedMethodReturnType);\n      if (iterationTypes === noIterationTypes) {\n        if (errorNode) {\n          if (errorOutputContainer) {\n            (_f = errorOutputContainer.errors) != null ? _f : errorOutputContainer.errors = [];\n            errorOutputContainer.errors.push(createDiagnosticForNode(errorNode, resolver.mustHaveAValueDiagnostic, methodName));\n          } else {\n            error(errorNode, resolver.mustHaveAValueDiagnostic, methodName);\n          }\n        }\n        yieldType = anyType;\n        returnTypes = append(returnTypes, anyType);\n      } else {\n        yieldType = iterationTypes.yieldType;\n        returnTypes = append(returnTypes, iterationTypes.returnType);\n      }\n      return createIterationTypes(yieldType, getUnionType(returnTypes), nextType);\n    }\n    function getIterationTypesOfIteratorSlow(type, resolver, errorNode, errorOutputContainer, noCache) {\n      const iterationTypes = combineIterationTypes([\n        getIterationTypesOfMethod(type, resolver, \"next\", errorNode, errorOutputContainer),\n        getIterationTypesOfMethod(type, resolver, \"return\", errorNode, errorOutputContainer),\n        getIterationTypesOfMethod(type, resolver, \"throw\", errorNode, errorOutputContainer)\n      ]);\n      return noCache ? iterationTypes : setCachedIterationTypes(type, resolver.iteratorCacheKey, iterationTypes);\n    }\n    function getIterationTypeOfGeneratorFunctionReturnType(kind, returnType, isAsyncGenerator) {\n      if (isTypeAny(returnType)) {\n        return void 0;\n      }\n      const iterationTypes = getIterationTypesOfGeneratorFunctionReturnType(returnType, isAsyncGenerator);\n      return iterationTypes && iterationTypes[getIterationTypesKeyFromIterationTypeKind(kind)];\n    }\n    function getIterationTypesOfGeneratorFunctionReturnType(type, isAsyncGenerator) {\n      if (isTypeAny(type)) {\n        return anyIterationTypes;\n      }\n      const use = isAsyncGenerator ? 2 : 1;\n      const resolver = isAsyncGenerator ? asyncIterationTypesResolver : syncIterationTypesResolver;\n      return getIterationTypesOfIterable(type, use, void 0) || getIterationTypesOfIterator(type, resolver, void 0, void 0);\n    }\n    function checkBreakOrContinueStatement(node) {\n      if (!checkGrammarStatementInAmbientContext(node))\n        checkGrammarBreakOrContinueStatement(node);\n    }\n    function unwrapReturnType(returnType, functionFlags) {\n      const isGenerator = !!(functionFlags & 1);\n      const isAsync = !!(functionFlags & 2);\n      if (isGenerator) {\n        const returnIterationType = getIterationTypeOfGeneratorFunctionReturnType(1, returnType, isAsync);\n        if (!returnIterationType) {\n          return errorType;\n        }\n        return isAsync ? getAwaitedTypeNoAlias(unwrapAwaitedType(returnIterationType)) : returnIterationType;\n      }\n      return isAsync ? getAwaitedTypeNoAlias(returnType) || errorType : returnType;\n    }\n    function isUnwrappedReturnTypeVoidOrAny(func, returnType) {\n      const unwrappedReturnType = unwrapReturnType(returnType, getFunctionFlags(func));\n      return !!unwrappedReturnType && maybeTypeOfKind(unwrappedReturnType, 16384 | 3);\n    }\n    function checkReturnStatement(node) {\n      var _a2;\n      if (checkGrammarStatementInAmbientContext(node)) {\n        return;\n      }\n      const container = getContainingFunctionOrClassStaticBlock(node);\n      if (container && isClassStaticBlockDeclaration(container)) {\n        grammarErrorOnFirstToken(node, Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block);\n        return;\n      }\n      if (!container) {\n        grammarErrorOnFirstToken(node, Diagnostics.A_return_statement_can_only_be_used_within_a_function_body);\n        return;\n      }\n      const signature = getSignatureFromDeclaration(container);\n      const returnType = getReturnTypeOfSignature(signature);\n      const functionFlags = getFunctionFlags(container);\n      if (strictNullChecks || node.expression || returnType.flags & 131072) {\n        const exprType = node.expression ? checkExpressionCached(node.expression) : undefinedType;\n        if (container.kind === 175) {\n          if (node.expression) {\n            error(node, Diagnostics.Setters_cannot_return_a_value);\n          }\n        } else if (container.kind === 173) {\n          if (node.expression && !checkTypeAssignableToAndOptionallyElaborate(exprType, returnType, node, node.expression)) {\n            error(node, Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);\n          }\n        } else if (getReturnTypeFromAnnotation(container)) {\n          const unwrappedReturnType = (_a2 = unwrapReturnType(returnType, functionFlags)) != null ? _a2 : returnType;\n          const unwrappedExprType = functionFlags & 2 ? checkAwaitedType(exprType, false, node, Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member) : exprType;\n          if (unwrappedReturnType) {\n            checkTypeAssignableToAndOptionallyElaborate(unwrappedExprType, unwrappedReturnType, node, node.expression);\n          }\n        }\n      } else if (container.kind !== 173 && compilerOptions.noImplicitReturns && !isUnwrappedReturnTypeVoidOrAny(container, returnType)) {\n        error(node, Diagnostics.Not_all_code_paths_return_a_value);\n      }\n    }\n    function checkWithStatement(node) {\n      if (!checkGrammarStatementInAmbientContext(node)) {\n        if (node.flags & 32768) {\n          grammarErrorOnFirstToken(node, Diagnostics.with_statements_are_not_allowed_in_an_async_function_block);\n        }\n      }\n      checkExpression(node.expression);\n      const sourceFile = getSourceFileOfNode(node);\n      if (!hasParseDiagnostics(sourceFile)) {\n        const start = getSpanOfTokenAtPosition(sourceFile, node.pos).start;\n        const end = node.statement.pos;\n        grammarErrorAtPos(sourceFile, start, end - start, Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any);\n      }\n    }\n    function checkSwitchStatement(node) {\n      checkGrammarStatementInAmbientContext(node);\n      let firstDefaultClause;\n      let hasDuplicateDefaultClause = false;\n      const expressionType = checkExpression(node.expression);\n      forEach(node.caseBlock.clauses, (clause) => {\n        if (clause.kind === 293 && !hasDuplicateDefaultClause) {\n          if (firstDefaultClause === void 0) {\n            firstDefaultClause = clause;\n          } else {\n            grammarErrorOnNode(clause, Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement);\n            hasDuplicateDefaultClause = true;\n          }\n        }\n        if (clause.kind === 292) {\n          addLazyDiagnostic(createLazyCaseClauseDiagnostics(clause));\n        }\n        forEach(clause.statements, checkSourceElement);\n        if (compilerOptions.noFallthroughCasesInSwitch && clause.fallthroughFlowNode && isReachableFlowNode(clause.fallthroughFlowNode)) {\n          error(clause, Diagnostics.Fallthrough_case_in_switch);\n        }\n        function createLazyCaseClauseDiagnostics(clause2) {\n          return () => {\n            const caseType = checkExpression(clause2.expression);\n            if (!isTypeEqualityComparableTo(expressionType, caseType)) {\n              checkTypeComparableTo(caseType, expressionType, clause2.expression, void 0);\n            }\n          };\n        }\n      });\n      if (node.caseBlock.locals) {\n        registerForUnusedIdentifiersCheck(node.caseBlock);\n      }\n    }\n    function checkLabeledStatement(node) {\n      if (!checkGrammarStatementInAmbientContext(node)) {\n        findAncestor(node.parent, (current) => {\n          if (isFunctionLike(current)) {\n            return \"quit\";\n          }\n          if (current.kind === 253 && current.label.escapedText === node.label.escapedText) {\n            grammarErrorOnNode(node.label, Diagnostics.Duplicate_label_0, getTextOfNode(node.label));\n            return true;\n          }\n          return false;\n        });\n      }\n      checkSourceElement(node.statement);\n    }\n    function checkThrowStatement(node) {\n      if (!checkGrammarStatementInAmbientContext(node)) {\n        if (isIdentifier(node.expression) && !node.expression.escapedText) {\n          grammarErrorAfterFirstToken(node, Diagnostics.Line_break_not_permitted_here);\n        }\n      }\n      if (node.expression) {\n        checkExpression(node.expression);\n      }\n    }\n    function checkTryStatement(node) {\n      checkGrammarStatementInAmbientContext(node);\n      checkBlock(node.tryBlock);\n      const catchClause = node.catchClause;\n      if (catchClause) {\n        if (catchClause.variableDeclaration) {\n          const declaration = catchClause.variableDeclaration;\n          checkVariableLikeDeclaration(declaration);\n          const typeNode = getEffectiveTypeAnnotationNode(declaration);\n          if (typeNode) {\n            const type = getTypeFromTypeNode(typeNode);\n            if (type && !(type.flags & 3)) {\n              grammarErrorOnFirstToken(typeNode, Diagnostics.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified);\n            }\n          } else if (declaration.initializer) {\n            grammarErrorOnFirstToken(declaration.initializer, Diagnostics.Catch_clause_variable_cannot_have_an_initializer);\n          } else {\n            const blockLocals = catchClause.block.locals;\n            if (blockLocals) {\n              forEachKey(catchClause.locals, (caughtName) => {\n                const blockLocal = blockLocals.get(caughtName);\n                if ((blockLocal == null ? void 0 : blockLocal.valueDeclaration) && (blockLocal.flags & 2) !== 0) {\n                  grammarErrorOnNode(blockLocal.valueDeclaration, Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause, caughtName);\n                }\n              });\n            }\n          }\n        }\n        checkBlock(catchClause.block);\n      }\n      if (node.finallyBlock) {\n        checkBlock(node.finallyBlock);\n      }\n    }\n    function checkIndexConstraints(type, symbol, isStaticIndex) {\n      const indexInfos = getIndexInfosOfType(type);\n      if (indexInfos.length === 0) {\n        return;\n      }\n      for (const prop of getPropertiesOfObjectType(type)) {\n        if (!(isStaticIndex && prop.flags & 4194304)) {\n          checkIndexConstraintForProperty(type, prop, getLiteralTypeFromProperty(prop, 8576, true), getNonMissingTypeOfSymbol(prop));\n        }\n      }\n      const typeDeclaration = symbol.valueDeclaration;\n      if (typeDeclaration && isClassLike(typeDeclaration)) {\n        for (const member of typeDeclaration.members) {\n          if (!isStatic(member) && !hasBindableName(member)) {\n            const symbol2 = getSymbolOfDeclaration(member);\n            checkIndexConstraintForProperty(type, symbol2, getTypeOfExpression(member.name.expression), getNonMissingTypeOfSymbol(symbol2));\n          }\n        }\n      }\n      if (indexInfos.length > 1) {\n        for (const info of indexInfos) {\n          checkIndexConstraintForIndexSignature(type, info);\n        }\n      }\n    }\n    function checkIndexConstraintForProperty(type, prop, propNameType, propType) {\n      const declaration = prop.valueDeclaration;\n      const name = getNameOfDeclaration(declaration);\n      if (name && isPrivateIdentifier(name)) {\n        return;\n      }\n      const indexInfos = getApplicableIndexInfos(type, propNameType);\n      const interfaceDeclaration = getObjectFlags(type) & 2 ? getDeclarationOfKind(type.symbol, 261) : void 0;\n      const propDeclaration = declaration && declaration.kind === 223 || name && name.kind === 164 ? declaration : void 0;\n      const localPropDeclaration = getParentOfSymbol(prop) === type.symbol ? declaration : void 0;\n      for (const info of indexInfos) {\n        const localIndexDeclaration = info.declaration && getParentOfSymbol(getSymbolOfDeclaration(info.declaration)) === type.symbol ? info.declaration : void 0;\n        const errorNode = localPropDeclaration || localIndexDeclaration || (interfaceDeclaration && !some(getBaseTypes(type), (base) => !!getPropertyOfObjectType(base, prop.escapedName) && !!getIndexTypeOfType(base, info.keyType)) ? interfaceDeclaration : void 0);\n        if (errorNode && !isTypeAssignableTo(propType, info.type)) {\n          const diagnostic = createError(errorNode, Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3, symbolToString(prop), typeToString(propType), typeToString(info.keyType), typeToString(info.type));\n          if (propDeclaration && errorNode !== propDeclaration) {\n            addRelatedInfo(diagnostic, createDiagnosticForNode(propDeclaration, Diagnostics._0_is_declared_here, symbolToString(prop)));\n          }\n          diagnostics.add(diagnostic);\n        }\n      }\n    }\n    function checkIndexConstraintForIndexSignature(type, checkInfo) {\n      const declaration = checkInfo.declaration;\n      const indexInfos = getApplicableIndexInfos(type, checkInfo.keyType);\n      const interfaceDeclaration = getObjectFlags(type) & 2 ? getDeclarationOfKind(type.symbol, 261) : void 0;\n      const localCheckDeclaration = declaration && getParentOfSymbol(getSymbolOfDeclaration(declaration)) === type.symbol ? declaration : void 0;\n      for (const info of indexInfos) {\n        if (info === checkInfo)\n          continue;\n        const localIndexDeclaration = info.declaration && getParentOfSymbol(getSymbolOfDeclaration(info.declaration)) === type.symbol ? info.declaration : void 0;\n        const errorNode = localCheckDeclaration || localIndexDeclaration || (interfaceDeclaration && !some(getBaseTypes(type), (base) => !!getIndexInfoOfType(base, checkInfo.keyType) && !!getIndexTypeOfType(base, info.keyType)) ? interfaceDeclaration : void 0);\n        if (errorNode && !isTypeAssignableTo(checkInfo.type, info.type)) {\n          error(errorNode, Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3, typeToString(checkInfo.keyType), typeToString(checkInfo.type), typeToString(info.keyType), typeToString(info.type));\n        }\n      }\n    }\n    function checkTypeNameIsReserved(name, message) {\n      switch (name.escapedText) {\n        case \"any\":\n        case \"unknown\":\n        case \"never\":\n        case \"number\":\n        case \"bigint\":\n        case \"boolean\":\n        case \"string\":\n        case \"symbol\":\n        case \"void\":\n        case \"object\":\n          error(name, message, name.escapedText);\n      }\n    }\n    function checkClassNameCollisionWithObject(name) {\n      if (languageVersion >= 1 && name.escapedText === \"Object\" && (moduleKind < 5 || getSourceFileOfNode(name).impliedNodeFormat === 1)) {\n        error(name, Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0, ModuleKind[moduleKind]);\n      }\n    }\n    function checkUnmatchedJSDocParameters(node) {\n      const jsdocParameters = filter(getJSDocTags(node), isJSDocParameterTag);\n      if (!length(jsdocParameters))\n        return;\n      const isJs = isInJSFile(node);\n      const parameters = /* @__PURE__ */ new Set();\n      const excludedParameters = /* @__PURE__ */ new Set();\n      forEach(node.parameters, ({ name }, index) => {\n        if (isIdentifier(name)) {\n          parameters.add(name.escapedText);\n        }\n        if (isBindingPattern(name)) {\n          excludedParameters.add(index);\n        }\n      });\n      const containsArguments = containsArgumentsReference(node);\n      if (containsArguments) {\n        const lastJSDocParamIndex = jsdocParameters.length - 1;\n        const lastJSDocParam = jsdocParameters[lastJSDocParamIndex];\n        if (isJs && lastJSDocParam && isIdentifier(lastJSDocParam.name) && lastJSDocParam.typeExpression && lastJSDocParam.typeExpression.type && !parameters.has(lastJSDocParam.name.escapedText) && !excludedParameters.has(lastJSDocParamIndex) && !isArrayType(getTypeFromTypeNode(lastJSDocParam.typeExpression.type))) {\n          error(lastJSDocParam.name, Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type, idText(lastJSDocParam.name));\n        }\n      } else {\n        forEach(jsdocParameters, ({ name, isNameFirst }, index) => {\n          if (excludedParameters.has(index) || isIdentifier(name) && parameters.has(name.escapedText)) {\n            return;\n          }\n          if (isQualifiedName(name)) {\n            if (isJs) {\n              error(name, Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1, entityNameToString(name), entityNameToString(name.left));\n            }\n          } else {\n            if (!isNameFirst) {\n              errorOrSuggestion(isJs, name, Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name, idText(name));\n            }\n          }\n        });\n      }\n    }\n    function checkTypeParameters(typeParameterDeclarations) {\n      let seenDefault = false;\n      if (typeParameterDeclarations) {\n        for (let i = 0; i < typeParameterDeclarations.length; i++) {\n          const node = typeParameterDeclarations[i];\n          checkTypeParameter(node);\n          addLazyDiagnostic(createCheckTypeParameterDiagnostic(node, i));\n        }\n      }\n      function createCheckTypeParameterDiagnostic(node, i) {\n        return () => {\n          if (node.default) {\n            seenDefault = true;\n            checkTypeParametersNotReferenced(node.default, typeParameterDeclarations, i);\n          } else if (seenDefault) {\n            error(node, Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);\n          }\n          for (let j = 0; j < i; j++) {\n            if (typeParameterDeclarations[j].symbol === node.symbol) {\n              error(node.name, Diagnostics.Duplicate_identifier_0, declarationNameToString(node.name));\n            }\n          }\n        };\n      }\n    }\n    function checkTypeParametersNotReferenced(root, typeParameters, index) {\n      visit(root);\n      function visit(node) {\n        if (node.kind === 180) {\n          const type = getTypeFromTypeReference(node);\n          if (type.flags & 262144) {\n            for (let i = index; i < typeParameters.length; i++) {\n              if (type.symbol === getSymbolOfDeclaration(typeParameters[i])) {\n                error(node, Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters);\n              }\n            }\n          }\n        }\n        forEachChild(node, visit);\n      }\n    }\n    function checkTypeParameterListsIdentical(symbol) {\n      if (symbol.declarations && symbol.declarations.length === 1) {\n        return;\n      }\n      const links = getSymbolLinks(symbol);\n      if (!links.typeParametersChecked) {\n        links.typeParametersChecked = true;\n        const declarations = getClassOrInterfaceDeclarationsOfSymbol(symbol);\n        if (!declarations || declarations.length <= 1) {\n          return;\n        }\n        const type = getDeclaredTypeOfSymbol(symbol);\n        if (!areTypeParametersIdentical(declarations, type.localTypeParameters, getEffectiveTypeParameterDeclarations)) {\n          const name = symbolToString(symbol);\n          for (const declaration of declarations) {\n            error(declaration.name, Diagnostics.All_declarations_of_0_must_have_identical_type_parameters, name);\n          }\n        }\n      }\n    }\n    function areTypeParametersIdentical(declarations, targetParameters, getTypeParameterDeclarations) {\n      const maxTypeArgumentCount = length(targetParameters);\n      const minTypeArgumentCount = getMinTypeArgumentCount(targetParameters);\n      for (const declaration of declarations) {\n        const sourceParameters = getTypeParameterDeclarations(declaration);\n        const numTypeParameters = sourceParameters.length;\n        if (numTypeParameters < minTypeArgumentCount || numTypeParameters > maxTypeArgumentCount) {\n          return false;\n        }\n        for (let i = 0; i < numTypeParameters; i++) {\n          const source = sourceParameters[i];\n          const target = targetParameters[i];\n          if (source.name.escapedText !== target.symbol.escapedName) {\n            return false;\n          }\n          const constraint = getEffectiveConstraintOfTypeParameter(source);\n          const sourceConstraint = constraint && getTypeFromTypeNode(constraint);\n          const targetConstraint = getConstraintOfTypeParameter(target);\n          if (sourceConstraint && targetConstraint && !isTypeIdenticalTo(sourceConstraint, targetConstraint)) {\n            return false;\n          }\n          const sourceDefault = source.default && getTypeFromTypeNode(source.default);\n          const targetDefault = getDefaultFromTypeParameter(target);\n          if (sourceDefault && targetDefault && !isTypeIdenticalTo(sourceDefault, targetDefault)) {\n            return false;\n          }\n        }\n      }\n      return true;\n    }\n    function getFirstTransformableStaticClassElement(node) {\n      var _a2;\n      const willTransformStaticElementsOfDecoratedClass = !legacyDecorators && languageVersion < 99 && classOrConstructorParameterIsDecorated(false, node);\n      const willTransformPrivateElementsOrClassStaticBlocks = languageVersion <= 9;\n      const willTransformInitializers = !useDefineForClassFields || languageVersion < 9;\n      if (willTransformStaticElementsOfDecoratedClass || willTransformPrivateElementsOrClassStaticBlocks) {\n        for (const member of node.members) {\n          if (willTransformStaticElementsOfDecoratedClass && classElementOrClassElementParameterIsDecorated(false, member, node)) {\n            return (_a2 = firstOrUndefined(getDecorators(node))) != null ? _a2 : node;\n          } else if (willTransformPrivateElementsOrClassStaticBlocks) {\n            if (isClassStaticBlockDeclaration(member)) {\n              return member;\n            } else if (isStatic(member)) {\n              if (isPrivateIdentifierClassElementDeclaration(member) || willTransformInitializers && isInitializedProperty(member)) {\n                return member;\n              }\n            }\n          }\n        }\n      }\n    }\n    function checkClassExpressionExternalHelpers(node) {\n      var _a2;\n      if (node.name)\n        return;\n      const parent2 = walkUpOuterExpressions(node);\n      if (!isNamedEvaluationSource(parent2))\n        return;\n      const willTransformESDecorators = !legacyDecorators && languageVersion < 99;\n      let location;\n      if (willTransformESDecorators && classOrConstructorParameterIsDecorated(false, node)) {\n        location = (_a2 = firstOrUndefined(getDecorators(node))) != null ? _a2 : node;\n      } else {\n        location = getFirstTransformableStaticClassElement(node);\n      }\n      if (location) {\n        checkExternalEmitHelpers(location, 8388608);\n        if ((isPropertyAssignment(parent2) || isPropertyDeclaration(parent2) || isBindingElement(parent2)) && isComputedPropertyName(parent2.name)) {\n          checkExternalEmitHelpers(location, 16777216);\n        }\n      }\n    }\n    function checkClassExpression(node) {\n      checkClassLikeDeclaration(node);\n      checkNodeDeferred(node);\n      checkClassExpressionExternalHelpers(node);\n      return getTypeOfSymbol(getSymbolOfDeclaration(node));\n    }\n    function checkClassExpressionDeferred(node) {\n      forEach(node.members, checkSourceElement);\n      registerForUnusedIdentifiersCheck(node);\n    }\n    function checkClassDeclaration(node) {\n      const firstDecorator = find(node.modifiers, isDecorator);\n      if (legacyDecorators && firstDecorator && some(node.members, (p) => hasStaticModifier(p) && isPrivateIdentifierClassElementDeclaration(p))) {\n        grammarErrorOnNode(firstDecorator, Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator);\n      }\n      if (!node.name && !hasSyntacticModifier(node, 1024)) {\n        grammarErrorOnFirstToken(node, Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name);\n      }\n      checkClassLikeDeclaration(node);\n      forEach(node.members, checkSourceElement);\n      registerForUnusedIdentifiersCheck(node);\n    }\n    function checkClassLikeDeclaration(node) {\n      checkGrammarClassLikeDeclaration(node);\n      checkDecorators(node);\n      checkCollisionsForDeclarationName(node, node.name);\n      checkTypeParameters(getEffectiveTypeParameterDeclarations(node));\n      checkExportsOnMergedDeclarations(node);\n      const symbol = getSymbolOfDeclaration(node);\n      const type = getDeclaredTypeOfSymbol(symbol);\n      const typeWithThis = getTypeWithThisArgument(type);\n      const staticType = getTypeOfSymbol(symbol);\n      checkTypeParameterListsIdentical(symbol);\n      checkFunctionOrConstructorSymbol(symbol);\n      checkClassForDuplicateDeclarations(node);\n      const nodeInAmbientContext = !!(node.flags & 16777216);\n      if (!nodeInAmbientContext) {\n        checkClassForStaticPropertyNameConflicts(node);\n      }\n      const baseTypeNode = getEffectiveBaseTypeNode(node);\n      if (baseTypeNode) {\n        forEach(baseTypeNode.typeArguments, checkSourceElement);\n        if (languageVersion < 2) {\n          checkExternalEmitHelpers(baseTypeNode.parent, 1);\n        }\n        const extendsNode = getClassExtendsHeritageElement(node);\n        if (extendsNode && extendsNode !== baseTypeNode) {\n          checkExpression(extendsNode.expression);\n        }\n        const baseTypes = getBaseTypes(type);\n        if (baseTypes.length) {\n          addLazyDiagnostic(() => {\n            const baseType = baseTypes[0];\n            const baseConstructorType = getBaseConstructorTypeOfClass(type);\n            const staticBaseType = getApparentType(baseConstructorType);\n            checkBaseTypeAccessibility(staticBaseType, baseTypeNode);\n            checkSourceElement(baseTypeNode.expression);\n            if (some(baseTypeNode.typeArguments)) {\n              forEach(baseTypeNode.typeArguments, checkSourceElement);\n              for (const constructor of getConstructorsForTypeArguments(staticBaseType, baseTypeNode.typeArguments, baseTypeNode)) {\n                if (!checkTypeArgumentConstraints(baseTypeNode, constructor.typeParameters)) {\n                  break;\n                }\n              }\n            }\n            const baseWithThis = getTypeWithThisArgument(baseType, type.thisType);\n            if (!checkTypeAssignableTo(typeWithThis, baseWithThis, void 0)) {\n              issueMemberSpecificError(node, typeWithThis, baseWithThis, Diagnostics.Class_0_incorrectly_extends_base_class_1);\n            } else {\n              checkTypeAssignableTo(staticType, getTypeWithoutSignatures(staticBaseType), node.name || node, Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1);\n            }\n            if (baseConstructorType.flags & 8650752) {\n              if (!isMixinConstructorType(staticType)) {\n                error(node.name || node, Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any);\n              } else {\n                const constructSignatures = getSignaturesOfType(baseConstructorType, 1);\n                if (constructSignatures.some((signature) => signature.flags & 4) && !hasSyntacticModifier(node, 256)) {\n                  error(node.name || node, Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract);\n                }\n              }\n            }\n            if (!(staticBaseType.symbol && staticBaseType.symbol.flags & 32) && !(baseConstructorType.flags & 8650752)) {\n              const constructors = getInstantiatedConstructorsForTypeArguments(staticBaseType, baseTypeNode.typeArguments, baseTypeNode);\n              if (forEach(constructors, (sig) => !isJSConstructor(sig.declaration) && !isTypeIdenticalTo(getReturnTypeOfSignature(sig), baseType))) {\n                error(baseTypeNode.expression, Diagnostics.Base_constructors_must_all_have_the_same_return_type);\n              }\n            }\n            checkKindsOfPropertyMemberOverrides(type, baseType);\n          });\n        }\n      }\n      checkMembersForOverrideModifier(node, type, typeWithThis, staticType);\n      const implementedTypeNodes = getEffectiveImplementsTypeNodes(node);\n      if (implementedTypeNodes) {\n        for (const typeRefNode of implementedTypeNodes) {\n          if (!isEntityNameExpression(typeRefNode.expression) || isOptionalChain(typeRefNode.expression)) {\n            error(typeRefNode.expression, Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments);\n          }\n          checkTypeReferenceNode(typeRefNode);\n          addLazyDiagnostic(createImplementsDiagnostics(typeRefNode));\n        }\n      }\n      addLazyDiagnostic(() => {\n        checkIndexConstraints(type, symbol);\n        checkIndexConstraints(staticType, symbol, true);\n        checkTypeForDuplicateIndexSignatures(node);\n        checkPropertyInitialization(node);\n      });\n      function createImplementsDiagnostics(typeRefNode) {\n        return () => {\n          const t = getReducedType(getTypeFromTypeNode(typeRefNode));\n          if (!isErrorType(t)) {\n            if (isValidBaseType(t)) {\n              const genericDiag = t.symbol && t.symbol.flags & 32 ? Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass : Diagnostics.Class_0_incorrectly_implements_interface_1;\n              const baseWithThis = getTypeWithThisArgument(t, type.thisType);\n              if (!checkTypeAssignableTo(typeWithThis, baseWithThis, void 0)) {\n                issueMemberSpecificError(node, typeWithThis, baseWithThis, genericDiag);\n              }\n            } else {\n              error(typeRefNode, Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members);\n            }\n          }\n        };\n      }\n    }\n    function checkMembersForOverrideModifier(node, type, typeWithThis, staticType) {\n      const baseTypeNode = getEffectiveBaseTypeNode(node);\n      const baseTypes = baseTypeNode && getBaseTypes(type);\n      const baseWithThis = (baseTypes == null ? void 0 : baseTypes.length) ? getTypeWithThisArgument(first(baseTypes), type.thisType) : void 0;\n      const baseStaticType = getBaseConstructorTypeOfClass(type);\n      for (const member of node.members) {\n        if (hasAmbientModifier(member)) {\n          continue;\n        }\n        if (isConstructorDeclaration(member)) {\n          forEach(member.parameters, (param) => {\n            if (isParameterPropertyDeclaration(param, member)) {\n              checkExistingMemberForOverrideModifier(node, staticType, baseStaticType, baseWithThis, type, typeWithThis, param, true);\n            }\n          });\n        }\n        checkExistingMemberForOverrideModifier(node, staticType, baseStaticType, baseWithThis, type, typeWithThis, member, false);\n      }\n    }\n    function checkExistingMemberForOverrideModifier(node, staticType, baseStaticType, baseWithThis, type, typeWithThis, member, memberIsParameterProperty, reportErrors2 = true) {\n      const declaredProp = member.name && getSymbolAtLocation(member.name) || getSymbolAtLocation(member);\n      if (!declaredProp) {\n        return 0;\n      }\n      return checkMemberForOverrideModifier(node, staticType, baseStaticType, baseWithThis, type, typeWithThis, hasOverrideModifier(member), hasAbstractModifier(member), isStatic(member), memberIsParameterProperty, symbolName(declaredProp), reportErrors2 ? member : void 0);\n    }\n    function checkMemberForOverrideModifier(node, staticType, baseStaticType, baseWithThis, type, typeWithThis, memberHasOverrideModifier, memberHasAbstractModifier, memberIsStatic, memberIsParameterProperty, memberName, errorNode) {\n      const isJs = isInJSFile(node);\n      const nodeInAmbientContext = !!(node.flags & 16777216);\n      if (baseWithThis && (memberHasOverrideModifier || compilerOptions.noImplicitOverride)) {\n        const memberEscapedName = escapeLeadingUnderscores(memberName);\n        const thisType = memberIsStatic ? staticType : typeWithThis;\n        const baseType = memberIsStatic ? baseStaticType : baseWithThis;\n        const prop = getPropertyOfType(thisType, memberEscapedName);\n        const baseProp = getPropertyOfType(baseType, memberEscapedName);\n        const baseClassName = typeToString(baseWithThis);\n        if (prop && !baseProp && memberHasOverrideModifier) {\n          if (errorNode) {\n            const suggestion = getSuggestedSymbolForNonexistentClassMember(memberName, baseType);\n            suggestion ? error(errorNode, isJs ? Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1 : Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1, baseClassName, symbolToString(suggestion)) : error(errorNode, isJs ? Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0 : Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0, baseClassName);\n          }\n          return 2;\n        } else if (prop && (baseProp == null ? void 0 : baseProp.declarations) && compilerOptions.noImplicitOverride && !nodeInAmbientContext) {\n          const baseHasAbstract = some(baseProp.declarations, hasAbstractModifier);\n          if (memberHasOverrideModifier) {\n            return 0;\n          }\n          if (!baseHasAbstract) {\n            if (errorNode) {\n              const diag2 = memberIsParameterProperty ? isJs ? Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0 : Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0 : isJs ? Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0 : Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;\n              error(errorNode, diag2, baseClassName);\n            }\n            return 1;\n          } else if (memberHasAbstractModifier && baseHasAbstract) {\n            if (errorNode) {\n              error(errorNode, Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0, baseClassName);\n            }\n            return 1;\n          }\n        }\n      } else if (memberHasOverrideModifier) {\n        if (errorNode) {\n          const className = typeToString(type);\n          error(errorNode, isJs ? Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class : Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class, className);\n        }\n        return 2;\n      }\n      return 0;\n    }\n    function issueMemberSpecificError(node, typeWithThis, baseWithThis, broadDiag) {\n      let issuedMemberError = false;\n      for (const member of node.members) {\n        if (isStatic(member)) {\n          continue;\n        }\n        const declaredProp = member.name && getSymbolAtLocation(member.name) || getSymbolAtLocation(member);\n        if (declaredProp) {\n          const prop = getPropertyOfType(typeWithThis, declaredProp.escapedName);\n          const baseProp = getPropertyOfType(baseWithThis, declaredProp.escapedName);\n          if (prop && baseProp) {\n            const rootChain = () => chainDiagnosticMessages(void 0, Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2, symbolToString(declaredProp), typeToString(typeWithThis), typeToString(baseWithThis));\n            if (!checkTypeAssignableTo(getTypeOfSymbol(prop), getTypeOfSymbol(baseProp), member.name || member, void 0, rootChain)) {\n              issuedMemberError = true;\n            }\n          }\n        }\n      }\n      if (!issuedMemberError) {\n        checkTypeAssignableTo(typeWithThis, baseWithThis, node.name || node, broadDiag);\n      }\n    }\n    function checkBaseTypeAccessibility(type, node) {\n      const signatures = getSignaturesOfType(type, 1);\n      if (signatures.length) {\n        const declaration = signatures[0].declaration;\n        if (declaration && hasEffectiveModifier(declaration, 8)) {\n          const typeClassDeclaration = getClassLikeDeclarationOfSymbol(type.symbol);\n          if (!isNodeWithinClass(node, typeClassDeclaration)) {\n            error(node, Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private, getFullyQualifiedName(type.symbol));\n          }\n        }\n      }\n    }\n    function getMemberOverrideModifierStatus(node, member, memberSymbol) {\n      if (!member.name) {\n        return 0;\n      }\n      const classSymbol = getSymbolOfDeclaration(node);\n      const type = getDeclaredTypeOfSymbol(classSymbol);\n      const typeWithThis = getTypeWithThisArgument(type);\n      const staticType = getTypeOfSymbol(classSymbol);\n      const baseTypeNode = getEffectiveBaseTypeNode(node);\n      const baseTypes = baseTypeNode && getBaseTypes(type);\n      const baseWithThis = (baseTypes == null ? void 0 : baseTypes.length) ? getTypeWithThisArgument(first(baseTypes), type.thisType) : void 0;\n      const baseStaticType = getBaseConstructorTypeOfClass(type);\n      const memberHasOverrideModifier = member.parent ? hasOverrideModifier(member) : hasSyntacticModifier(member, 16384);\n      return checkMemberForOverrideModifier(node, staticType, baseStaticType, baseWithThis, type, typeWithThis, memberHasOverrideModifier, hasAbstractModifier(member), isStatic(member), false, symbolName(memberSymbol));\n    }\n    function getTargetSymbol(s) {\n      return getCheckFlags(s) & 1 ? s.links.target : s;\n    }\n    function getClassOrInterfaceDeclarationsOfSymbol(symbol) {\n      return filter(symbol.declarations, (d) => d.kind === 260 || d.kind === 261);\n    }\n    function checkKindsOfPropertyMemberOverrides(type, baseType) {\n      var _a2, _b, _c, _d;\n      const baseProperties = getPropertiesOfType(baseType);\n      basePropertyCheck:\n        for (const baseProperty of baseProperties) {\n          const base = getTargetSymbol(baseProperty);\n          if (base.flags & 4194304) {\n            continue;\n          }\n          const baseSymbol = getPropertyOfObjectType(type, base.escapedName);\n          if (!baseSymbol) {\n            continue;\n          }\n          const derived = getTargetSymbol(baseSymbol);\n          const baseDeclarationFlags = getDeclarationModifierFlagsFromSymbol(base);\n          Debug.assert(!!derived, \"derived should point to something, even if it is the base class' declaration.\");\n          if (derived === base) {\n            const derivedClassDecl = getClassLikeDeclarationOfSymbol(type.symbol);\n            if (baseDeclarationFlags & 256 && (!derivedClassDecl || !hasSyntacticModifier(derivedClassDecl, 256))) {\n              for (const otherBaseType of getBaseTypes(type)) {\n                if (otherBaseType === baseType)\n                  continue;\n                const baseSymbol2 = getPropertyOfObjectType(otherBaseType, base.escapedName);\n                const derivedElsewhere = baseSymbol2 && getTargetSymbol(baseSymbol2);\n                if (derivedElsewhere && derivedElsewhere !== base) {\n                  continue basePropertyCheck;\n                }\n              }\n              if (derivedClassDecl.kind === 228) {\n                error(derivedClassDecl, Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1, symbolToString(baseProperty), typeToString(baseType));\n              } else {\n                error(derivedClassDecl, Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2, typeToString(type), symbolToString(baseProperty), typeToString(baseType));\n              }\n            }\n          } else {\n            const derivedDeclarationFlags = getDeclarationModifierFlagsFromSymbol(derived);\n            if (baseDeclarationFlags & 8 || derivedDeclarationFlags & 8) {\n              continue;\n            }\n            let errorMessage;\n            const basePropertyFlags = base.flags & 98308;\n            const derivedPropertyFlags = derived.flags & 98308;\n            if (basePropertyFlags && derivedPropertyFlags) {\n              if ((getCheckFlags(base) & 6 ? (_a2 = base.declarations) == null ? void 0 : _a2.some((d) => isPropertyAbstractOrInterface(d, baseDeclarationFlags)) : (_b = base.declarations) == null ? void 0 : _b.every((d) => isPropertyAbstractOrInterface(d, baseDeclarationFlags))) || getCheckFlags(base) & 262144 || derived.valueDeclaration && isBinaryExpression(derived.valueDeclaration)) {\n                continue;\n              }\n              const overriddenInstanceProperty = basePropertyFlags !== 4 && derivedPropertyFlags === 4;\n              const overriddenInstanceAccessor = basePropertyFlags === 4 && derivedPropertyFlags !== 4;\n              if (overriddenInstanceProperty || overriddenInstanceAccessor) {\n                const errorMessage2 = overriddenInstanceProperty ? Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property : Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;\n                error(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage2, symbolToString(base), typeToString(baseType), typeToString(type));\n              } else if (useDefineForClassFields) {\n                const uninitialized = (_c = derived.declarations) == null ? void 0 : _c.find((d) => d.kind === 169 && !d.initializer);\n                if (uninitialized && !(derived.flags & 33554432) && !(baseDeclarationFlags & 256) && !(derivedDeclarationFlags & 256) && !((_d = derived.declarations) == null ? void 0 : _d.some((d) => !!(d.flags & 16777216)))) {\n                  const constructor = findConstructorDeclaration(getClassLikeDeclarationOfSymbol(type.symbol));\n                  const propName = uninitialized.name;\n                  if (uninitialized.exclamationToken || !constructor || !isIdentifier(propName) || !strictNullChecks || !isPropertyInitializedInConstructor(propName, type, constructor)) {\n                    const errorMessage2 = Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;\n                    error(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage2, symbolToString(base), typeToString(baseType));\n                  }\n                }\n              }\n              continue;\n            } else if (isPrototypeProperty(base)) {\n              if (isPrototypeProperty(derived) || derived.flags & 4) {\n                continue;\n              } else {\n                Debug.assert(!!(derived.flags & 98304));\n                errorMessage = Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor;\n              }\n            } else if (base.flags & 98304) {\n              errorMessage = Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function;\n            } else {\n              errorMessage = Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;\n            }\n            error(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage, typeToString(baseType), symbolToString(base), typeToString(type));\n          }\n        }\n    }\n    function isPropertyAbstractOrInterface(declaration, baseDeclarationFlags) {\n      return baseDeclarationFlags & 256 && (!isPropertyDeclaration(declaration) || !declaration.initializer) || isInterfaceDeclaration(declaration.parent);\n    }\n    function getNonInheritedProperties(type, baseTypes, properties) {\n      if (!length(baseTypes)) {\n        return properties;\n      }\n      const seen = /* @__PURE__ */ new Map();\n      forEach(properties, (p) => {\n        seen.set(p.escapedName, p);\n      });\n      for (const base of baseTypes) {\n        const properties2 = getPropertiesOfType(getTypeWithThisArgument(base, type.thisType));\n        for (const prop of properties2) {\n          const existing = seen.get(prop.escapedName);\n          if (existing && prop.parent === existing.parent) {\n            seen.delete(prop.escapedName);\n          }\n        }\n      }\n      return arrayFrom(seen.values());\n    }\n    function checkInheritedPropertiesAreIdentical(type, typeNode) {\n      const baseTypes = getBaseTypes(type);\n      if (baseTypes.length < 2) {\n        return true;\n      }\n      const seen = /* @__PURE__ */ new Map();\n      forEach(resolveDeclaredMembers(type).declaredProperties, (p) => {\n        seen.set(p.escapedName, { prop: p, containingType: type });\n      });\n      let ok = true;\n      for (const base of baseTypes) {\n        const properties = getPropertiesOfType(getTypeWithThisArgument(base, type.thisType));\n        for (const prop of properties) {\n          const existing = seen.get(prop.escapedName);\n          if (!existing) {\n            seen.set(prop.escapedName, { prop, containingType: base });\n          } else {\n            const isInheritedProperty = existing.containingType !== type;\n            if (isInheritedProperty && !isPropertyIdenticalTo(existing.prop, prop)) {\n              ok = false;\n              const typeName1 = typeToString(existing.containingType);\n              const typeName2 = typeToString(base);\n              let errorInfo = chainDiagnosticMessages(void 0, Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical, symbolToString(prop), typeName1, typeName2);\n              errorInfo = chainDiagnosticMessages(errorInfo, Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2, typeToString(type), typeName1, typeName2);\n              diagnostics.add(createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(typeNode), typeNode, errorInfo));\n            }\n          }\n        }\n      }\n      return ok;\n    }\n    function checkPropertyInitialization(node) {\n      if (!strictNullChecks || !strictPropertyInitialization || node.flags & 16777216) {\n        return;\n      }\n      const constructor = findConstructorDeclaration(node);\n      for (const member of node.members) {\n        if (getEffectiveModifierFlags(member) & 2) {\n          continue;\n        }\n        if (!isStatic(member) && isPropertyWithoutInitializer(member)) {\n          const propName = member.name;\n          if (isIdentifier(propName) || isPrivateIdentifier(propName) || isComputedPropertyName(propName)) {\n            const type = getTypeOfSymbol(getSymbolOfDeclaration(member));\n            if (!(type.flags & 3 || containsUndefinedType(type))) {\n              if (!constructor || !isPropertyInitializedInConstructor(propName, type, constructor)) {\n                error(member.name, Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor, declarationNameToString(propName));\n              }\n            }\n          }\n        }\n      }\n    }\n    function isPropertyWithoutInitializer(node) {\n      return node.kind === 169 && !hasAbstractModifier(node) && !node.exclamationToken && !node.initializer;\n    }\n    function isPropertyInitializedInStaticBlocks(propName, propType, staticBlocks, startPos, endPos) {\n      for (const staticBlock of staticBlocks) {\n        if (staticBlock.pos >= startPos && staticBlock.pos <= endPos) {\n          const reference = factory.createPropertyAccessExpression(factory.createThis(), propName);\n          setParent(reference.expression, reference);\n          setParent(reference, staticBlock);\n          reference.flowNode = staticBlock.returnFlowNode;\n          const flowType = getFlowTypeOfReference(reference, propType, getOptionalType(propType));\n          if (!containsUndefinedType(flowType)) {\n            return true;\n          }\n        }\n      }\n      return false;\n    }\n    function isPropertyInitializedInConstructor(propName, propType, constructor) {\n      const reference = isComputedPropertyName(propName) ? factory.createElementAccessExpression(factory.createThis(), propName.expression) : factory.createPropertyAccessExpression(factory.createThis(), propName);\n      setParent(reference.expression, reference);\n      setParent(reference, constructor);\n      reference.flowNode = constructor.returnFlowNode;\n      const flowType = getFlowTypeOfReference(reference, propType, getOptionalType(propType));\n      return !containsUndefinedType(flowType);\n    }\n    function checkInterfaceDeclaration(node) {\n      if (!checkGrammarModifiers(node))\n        checkGrammarInterfaceDeclaration(node);\n      checkTypeParameters(node.typeParameters);\n      addLazyDiagnostic(() => {\n        checkTypeNameIsReserved(node.name, Diagnostics.Interface_name_cannot_be_0);\n        checkExportsOnMergedDeclarations(node);\n        const symbol = getSymbolOfDeclaration(node);\n        checkTypeParameterListsIdentical(symbol);\n        const firstInterfaceDecl = getDeclarationOfKind(symbol, 261);\n        if (node === firstInterfaceDecl) {\n          const type = getDeclaredTypeOfSymbol(symbol);\n          const typeWithThis = getTypeWithThisArgument(type);\n          if (checkInheritedPropertiesAreIdentical(type, node.name)) {\n            for (const baseType of getBaseTypes(type)) {\n              checkTypeAssignableTo(typeWithThis, getTypeWithThisArgument(baseType, type.thisType), node.name, Diagnostics.Interface_0_incorrectly_extends_interface_1);\n            }\n            checkIndexConstraints(type, symbol);\n          }\n        }\n        checkObjectTypeForDuplicateDeclarations(node);\n      });\n      forEach(getInterfaceBaseTypeNodes(node), (heritageElement) => {\n        if (!isEntityNameExpression(heritageElement.expression) || isOptionalChain(heritageElement.expression)) {\n          error(heritageElement.expression, Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments);\n        }\n        checkTypeReferenceNode(heritageElement);\n      });\n      forEach(node.members, checkSourceElement);\n      addLazyDiagnostic(() => {\n        checkTypeForDuplicateIndexSignatures(node);\n        registerForUnusedIdentifiersCheck(node);\n      });\n    }\n    function checkTypeAliasDeclaration(node) {\n      checkGrammarModifiers(node);\n      checkTypeNameIsReserved(node.name, Diagnostics.Type_alias_name_cannot_be_0);\n      checkExportsOnMergedDeclarations(node);\n      checkTypeParameters(node.typeParameters);\n      if (node.type.kind === 139) {\n        if (!intrinsicTypeKinds.has(node.name.escapedText) || length(node.typeParameters) !== 1) {\n          error(node.type, Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types);\n        }\n      } else {\n        checkSourceElement(node.type);\n        registerForUnusedIdentifiersCheck(node);\n      }\n    }\n    function computeEnumMemberValues(node) {\n      const nodeLinks2 = getNodeLinks(node);\n      if (!(nodeLinks2.flags & 1024)) {\n        nodeLinks2.flags |= 1024;\n        let autoValue = 0;\n        for (const member of node.members) {\n          const value = computeMemberValue(member, autoValue);\n          getNodeLinks(member).enumMemberValue = value;\n          autoValue = typeof value === \"number\" ? value + 1 : void 0;\n        }\n      }\n    }\n    function computeMemberValue(member, autoValue) {\n      if (isComputedNonLiteralName(member.name)) {\n        error(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums);\n      } else {\n        const text = getTextOfPropertyName(member.name);\n        if (isNumericLiteralName(text) && !isInfinityOrNaNString(text)) {\n          error(member.name, Diagnostics.An_enum_member_cannot_have_a_numeric_name);\n        }\n      }\n      if (member.initializer) {\n        return computeConstantValue(member);\n      }\n      if (member.parent.flags & 16777216 && !isEnumConst(member.parent)) {\n        return void 0;\n      }\n      if (autoValue !== void 0) {\n        return autoValue;\n      }\n      error(member.name, Diagnostics.Enum_member_must_have_initializer);\n      return void 0;\n    }\n    function computeConstantValue(member) {\n      const isConstEnum = isEnumConst(member.parent);\n      const initializer = member.initializer;\n      const value = evaluate(initializer, member);\n      if (value !== void 0) {\n        if (isConstEnum && typeof value === \"number\" && !isFinite(value)) {\n          error(initializer, isNaN(value) ? Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN : Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);\n        }\n      } else if (isConstEnum) {\n        error(initializer, Diagnostics.const_enum_member_initializers_must_be_constant_expressions);\n      } else if (member.parent.flags & 16777216) {\n        error(initializer, Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression);\n      } else {\n        checkTypeAssignableTo(checkExpression(initializer), numberType, initializer, Diagnostics.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values);\n      }\n      return value;\n    }\n    function evaluate(expr, location) {\n      switch (expr.kind) {\n        case 221:\n          const value = evaluate(expr.operand, location);\n          if (typeof value === \"number\") {\n            switch (expr.operator) {\n              case 39:\n                return value;\n              case 40:\n                return -value;\n              case 54:\n                return ~value;\n            }\n          }\n          break;\n        case 223:\n          const left = evaluate(expr.left, location);\n          const right = evaluate(expr.right, location);\n          if (typeof left === \"number\" && typeof right === \"number\") {\n            switch (expr.operatorToken.kind) {\n              case 51:\n                return left | right;\n              case 50:\n                return left & right;\n              case 48:\n                return left >> right;\n              case 49:\n                return left >>> right;\n              case 47:\n                return left << right;\n              case 52:\n                return left ^ right;\n              case 41:\n                return left * right;\n              case 43:\n                return left / right;\n              case 39:\n                return left + right;\n              case 40:\n                return left - right;\n              case 44:\n                return left % right;\n              case 42:\n                return left ** right;\n            }\n          } else if ((typeof left === \"string\" || typeof left === \"number\") && (typeof right === \"string\" || typeof right === \"number\") && expr.operatorToken.kind === 39) {\n            return \"\" + left + right;\n          }\n          break;\n        case 10:\n        case 14:\n          return expr.text;\n        case 225:\n          return evaluateTemplateExpression(expr, location);\n        case 8:\n          checkGrammarNumericLiteral(expr);\n          return +expr.text;\n        case 214:\n          return evaluate(expr.expression, location);\n        case 79:\n          if (isInfinityOrNaNString(expr.escapedText)) {\n            return +expr.escapedText;\n          }\n        case 208:\n          if (isEntityNameExpression(expr)) {\n            const symbol = resolveEntityName(expr, 111551, true);\n            if (symbol) {\n              if (symbol.flags & 8) {\n                return evaluateEnumMember(expr, symbol, location);\n              }\n              if (isConstVariable(symbol)) {\n                const declaration = symbol.valueDeclaration;\n                if (declaration && !declaration.type && declaration.initializer && declaration !== location && isBlockScopedNameDeclaredBeforeUse(declaration, location)) {\n                  return evaluate(declaration.initializer, declaration);\n                }\n              }\n            }\n          }\n          break;\n        case 209:\n          const root = expr.expression;\n          if (isEntityNameExpression(root) && isStringLiteralLike(expr.argumentExpression)) {\n            const rootSymbol = resolveEntityName(root, 111551, true);\n            if (rootSymbol && rootSymbol.flags & 384) {\n              const name = escapeLeadingUnderscores(expr.argumentExpression.text);\n              const member = rootSymbol.exports.get(name);\n              if (member) {\n                return evaluateEnumMember(expr, member, location);\n              }\n            }\n          }\n          break;\n      }\n      return void 0;\n    }\n    function evaluateEnumMember(expr, symbol, location) {\n      const declaration = symbol.valueDeclaration;\n      if (!declaration || declaration === location) {\n        error(expr, Diagnostics.Property_0_is_used_before_being_assigned, symbolToString(symbol));\n        return void 0;\n      }\n      if (!isBlockScopedNameDeclaredBeforeUse(declaration, location)) {\n        error(expr, Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums);\n        return 0;\n      }\n      return getEnumMemberValue(declaration);\n    }\n    function evaluateTemplateExpression(expr, location) {\n      let result = expr.head.text;\n      for (const span of expr.templateSpans) {\n        const value = evaluate(span.expression, location);\n        if (value === void 0) {\n          return void 0;\n        }\n        result += value;\n        result += span.literal.text;\n      }\n      return result;\n    }\n    function checkEnumDeclaration(node) {\n      addLazyDiagnostic(() => checkEnumDeclarationWorker(node));\n    }\n    function checkEnumDeclarationWorker(node) {\n      checkGrammarModifiers(node);\n      checkCollisionsForDeclarationName(node, node.name);\n      checkExportsOnMergedDeclarations(node);\n      node.members.forEach(checkEnumMember);\n      computeEnumMemberValues(node);\n      const enumSymbol = getSymbolOfDeclaration(node);\n      const firstDeclaration = getDeclarationOfKind(enumSymbol, node.kind);\n      if (node === firstDeclaration) {\n        if (enumSymbol.declarations && enumSymbol.declarations.length > 1) {\n          const enumIsConst = isEnumConst(node);\n          forEach(enumSymbol.declarations, (decl) => {\n            if (isEnumDeclaration(decl) && isEnumConst(decl) !== enumIsConst) {\n              error(getNameOfDeclaration(decl), Diagnostics.Enum_declarations_must_all_be_const_or_non_const);\n            }\n          });\n        }\n        let seenEnumMissingInitialInitializer = false;\n        forEach(enumSymbol.declarations, (declaration) => {\n          if (declaration.kind !== 263) {\n            return false;\n          }\n          const enumDeclaration = declaration;\n          if (!enumDeclaration.members.length) {\n            return false;\n          }\n          const firstEnumMember = enumDeclaration.members[0];\n          if (!firstEnumMember.initializer) {\n            if (seenEnumMissingInitialInitializer) {\n              error(firstEnumMember.name, Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element);\n            } else {\n              seenEnumMissingInitialInitializer = true;\n            }\n          }\n        });\n      }\n    }\n    function checkEnumMember(node) {\n      if (isPrivateIdentifier(node.name)) {\n        error(node, Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier);\n      }\n      if (node.initializer) {\n        checkExpression(node.initializer);\n      }\n    }\n    function getFirstNonAmbientClassOrFunctionDeclaration(symbol) {\n      const declarations = symbol.declarations;\n      if (declarations) {\n        for (const declaration of declarations) {\n          if ((declaration.kind === 260 || declaration.kind === 259 && nodeIsPresent(declaration.body)) && !(declaration.flags & 16777216)) {\n            return declaration;\n          }\n        }\n      }\n      return void 0;\n    }\n    function inSameLexicalScope(node1, node2) {\n      const container1 = getEnclosingBlockScopeContainer(node1);\n      const container2 = getEnclosingBlockScopeContainer(node2);\n      if (isGlobalSourceFile(container1)) {\n        return isGlobalSourceFile(container2);\n      } else if (isGlobalSourceFile(container2)) {\n        return false;\n      } else {\n        return container1 === container2;\n      }\n    }\n    function checkModuleDeclaration(node) {\n      if (node.body) {\n        checkSourceElement(node.body);\n        if (!isGlobalScopeAugmentation(node)) {\n          registerForUnusedIdentifiersCheck(node);\n        }\n      }\n      addLazyDiagnostic(checkModuleDeclarationDiagnostics);\n      function checkModuleDeclarationDiagnostics() {\n        var _a2, _b;\n        const isGlobalAugmentation = isGlobalScopeAugmentation(node);\n        const inAmbientContext = node.flags & 16777216;\n        if (isGlobalAugmentation && !inAmbientContext) {\n          error(node.name, Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);\n        }\n        const isAmbientExternalModule = isAmbientModule(node);\n        const contextErrorMessage = isAmbientExternalModule ? Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file : Diagnostics.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;\n        if (checkGrammarModuleElementContext(node, contextErrorMessage)) {\n          return;\n        }\n        if (!checkGrammarModifiers(node)) {\n          if (!inAmbientContext && node.name.kind === 10) {\n            grammarErrorOnNode(node.name, Diagnostics.Only_ambient_modules_can_use_quoted_names);\n          }\n        }\n        if (isIdentifier(node.name)) {\n          checkCollisionsForDeclarationName(node, node.name);\n        }\n        checkExportsOnMergedDeclarations(node);\n        const symbol = getSymbolOfDeclaration(node);\n        if (symbol.flags & 512 && !inAmbientContext && isInstantiatedModule(node, shouldPreserveConstEnums(compilerOptions))) {\n          if (getIsolatedModules(compilerOptions) && !getSourceFileOfNode(node).externalModuleIndicator) {\n            error(node.name, Diagnostics.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement, isolatedModulesLikeFlagName);\n          }\n          if (((_a2 = symbol.declarations) == null ? void 0 : _a2.length) > 1) {\n            const firstNonAmbientClassOrFunc = getFirstNonAmbientClassOrFunctionDeclaration(symbol);\n            if (firstNonAmbientClassOrFunc) {\n              if (getSourceFileOfNode(node) !== getSourceFileOfNode(firstNonAmbientClassOrFunc)) {\n                error(node.name, Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged);\n              } else if (node.pos < firstNonAmbientClassOrFunc.pos) {\n                error(node.name, Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged);\n              }\n            }\n            const mergedClass = getDeclarationOfKind(symbol, 260);\n            if (mergedClass && inSameLexicalScope(node, mergedClass)) {\n              getNodeLinks(node).flags |= 2048;\n            }\n          }\n          if (compilerOptions.verbatimModuleSyntax && node.parent.kind === 308 && (moduleKind === 1 || node.parent.impliedNodeFormat === 1)) {\n            const exportModifier = (_b = node.modifiers) == null ? void 0 : _b.find((m) => m.kind === 93);\n            if (exportModifier) {\n              error(exportModifier, Diagnostics.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);\n            }\n          }\n        }\n        if (isAmbientExternalModule) {\n          if (isExternalModuleAugmentation(node)) {\n            const checkBody = isGlobalAugmentation || getSymbolOfDeclaration(node).flags & 33554432;\n            if (checkBody && node.body) {\n              for (const statement of node.body.statements) {\n                checkModuleAugmentationElement(statement, isGlobalAugmentation);\n              }\n            }\n          } else if (isGlobalSourceFile(node.parent)) {\n            if (isGlobalAugmentation) {\n              error(node.name, Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations);\n            } else if (isExternalModuleNameRelative(getTextOfIdentifierOrLiteral(node.name))) {\n              error(node.name, Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name);\n            }\n          } else {\n            if (isGlobalAugmentation) {\n              error(node.name, Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations);\n            } else {\n              error(node.name, Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces);\n            }\n          }\n        }\n      }\n    }\n    function checkModuleAugmentationElement(node, isGlobalAugmentation) {\n      switch (node.kind) {\n        case 240:\n          for (const decl of node.declarationList.declarations) {\n            checkModuleAugmentationElement(decl, isGlobalAugmentation);\n          }\n          break;\n        case 274:\n        case 275:\n          grammarErrorOnFirstToken(node, Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);\n          break;\n        case 268:\n        case 269:\n          grammarErrorOnFirstToken(node, Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);\n          break;\n        case 205:\n        case 257:\n          const name = node.name;\n          if (isBindingPattern(name)) {\n            for (const el of name.elements) {\n              checkModuleAugmentationElement(el, isGlobalAugmentation);\n            }\n            break;\n          }\n        case 260:\n        case 263:\n        case 259:\n        case 261:\n        case 264:\n        case 262:\n          if (isGlobalAugmentation) {\n            return;\n          }\n          break;\n      }\n    }\n    function getFirstNonModuleExportsIdentifier(node) {\n      switch (node.kind) {\n        case 79:\n          return node;\n        case 163:\n          do {\n            node = node.left;\n          } while (node.kind !== 79);\n          return node;\n        case 208:\n          do {\n            if (isModuleExportsAccessExpression(node.expression) && !isPrivateIdentifier(node.name)) {\n              return node.name;\n            }\n            node = node.expression;\n          } while (node.kind !== 79);\n          return node;\n      }\n    }\n    function checkExternalImportOrExportDeclaration(node) {\n      const moduleName = getExternalModuleName(node);\n      if (!moduleName || nodeIsMissing(moduleName)) {\n        return false;\n      }\n      if (!isStringLiteral(moduleName)) {\n        error(moduleName, Diagnostics.String_literal_expected);\n        return false;\n      }\n      const inAmbientExternalModule = node.parent.kind === 265 && isAmbientModule(node.parent.parent);\n      if (node.parent.kind !== 308 && !inAmbientExternalModule) {\n        error(moduleName, node.kind === 275 ? Diagnostics.Export_declarations_are_not_permitted_in_a_namespace : Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module);\n        return false;\n      }\n      if (inAmbientExternalModule && isExternalModuleNameRelative(moduleName.text)) {\n        if (!isTopLevelInExternalModuleAugmentation(node)) {\n          error(node, Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name);\n          return false;\n        }\n      }\n      if (!isImportEqualsDeclaration(node) && node.assertClause) {\n        let hasError = false;\n        for (const clause of node.assertClause.elements) {\n          if (!isStringLiteral(clause.value)) {\n            hasError = true;\n            error(clause.value, Diagnostics.Import_assertion_values_must_be_string_literal_expressions);\n          }\n        }\n        return !hasError;\n      }\n      return true;\n    }\n    function checkAliasSymbol(node) {\n      var _a2, _b, _c, _d, _e;\n      let symbol = getSymbolOfDeclaration(node);\n      const target = resolveAlias(symbol);\n      if (target !== unknownSymbol) {\n        symbol = getMergedSymbol(symbol.exportSymbol || symbol);\n        if (isInJSFile(node) && !(target.flags & 111551) && !isTypeOnlyImportOrExportDeclaration(node)) {\n          const errorNode = isImportOrExportSpecifier(node) ? node.propertyName || node.name : isNamedDeclaration(node) ? node.name : node;\n          Debug.assert(node.kind !== 277);\n          if (node.kind === 278) {\n            const diag2 = error(errorNode, Diagnostics.Types_cannot_appear_in_export_declarations_in_JavaScript_files);\n            const alreadyExportedSymbol = (_b = (_a2 = getSourceFileOfNode(node).symbol) == null ? void 0 : _a2.exports) == null ? void 0 : _b.get((node.propertyName || node.name).escapedText);\n            if (alreadyExportedSymbol === target) {\n              const exportingDeclaration = (_c = alreadyExportedSymbol.declarations) == null ? void 0 : _c.find(isJSDocNode);\n              if (exportingDeclaration) {\n                addRelatedInfo(diag2, createDiagnosticForNode(exportingDeclaration, Diagnostics._0_is_automatically_exported_here, unescapeLeadingUnderscores(alreadyExportedSymbol.escapedName)));\n              }\n            }\n          } else {\n            Debug.assert(node.kind !== 257);\n            const importDeclaration = findAncestor(node, or(isImportDeclaration, isImportEqualsDeclaration));\n            const moduleSpecifier = (_e = importDeclaration && ((_d = tryGetModuleSpecifierFromDeclaration(importDeclaration)) == null ? void 0 : _d.text)) != null ? _e : \"...\";\n            const importedIdentifier = unescapeLeadingUnderscores(isIdentifier(errorNode) ? errorNode.escapedText : symbol.escapedName);\n            error(errorNode, Diagnostics._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation, importedIdentifier, `import(\"${moduleSpecifier}\").${importedIdentifier}`);\n          }\n          return;\n        }\n        const targetFlags = getAllSymbolFlags(target);\n        const excludedMeanings = (symbol.flags & (111551 | 1048576) ? 111551 : 0) | (symbol.flags & 788968 ? 788968 : 0) | (symbol.flags & 1920 ? 1920 : 0);\n        if (targetFlags & excludedMeanings) {\n          const message = node.kind === 278 ? Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0 : Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0;\n          error(node, message, symbolToString(symbol));\n        }\n        if (getIsolatedModules(compilerOptions) && !isTypeOnlyImportOrExportDeclaration(node) && !(node.flags & 16777216)) {\n          const typeOnlyAlias = getTypeOnlyAliasDeclaration(symbol);\n          const isType = !(targetFlags & 111551);\n          if (isType || typeOnlyAlias) {\n            switch (node.kind) {\n              case 270:\n              case 273:\n              case 268: {\n                if (compilerOptions.preserveValueImports || compilerOptions.verbatimModuleSyntax) {\n                  Debug.assertIsDefined(node.name, \"An ImportClause with a symbol should have a name\");\n                  const message = compilerOptions.verbatimModuleSyntax && isInternalModuleImportEqualsDeclaration(node) ? Diagnostics.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled : isType ? compilerOptions.verbatimModuleSyntax ? Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled : Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled : compilerOptions.verbatimModuleSyntax ? Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled : Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled;\n                  const name = idText(node.kind === 273 ? node.propertyName || node.name : node.name);\n                  addTypeOnlyDeclarationRelatedInfo(error(node, message, name), isType ? void 0 : typeOnlyAlias, name);\n                }\n                if (isType && node.kind === 268 && hasEffectiveModifier(node, 1)) {\n                  error(node, Diagnostics.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled, isolatedModulesLikeFlagName);\n                }\n                break;\n              }\n              case 278: {\n                if (compilerOptions.verbatimModuleSyntax || getSourceFileOfNode(typeOnlyAlias) !== getSourceFileOfNode(node)) {\n                  const name = idText(node.propertyName || node.name);\n                  const diagnostic = isType ? error(node, Diagnostics.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type, isolatedModulesLikeFlagName) : error(node, Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled, name, isolatedModulesLikeFlagName);\n                  addTypeOnlyDeclarationRelatedInfo(diagnostic, isType ? void 0 : typeOnlyAlias, name);\n                  break;\n                }\n              }\n            }\n          }\n          if (compilerOptions.verbatimModuleSyntax && node.kind !== 268 && !isInJSFile(node) && (moduleKind === 1 || getSourceFileOfNode(node).impliedNodeFormat === 1)) {\n            error(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);\n          }\n        }\n        if (isImportSpecifier(node)) {\n          const targetSymbol = checkDeprecatedAliasedSymbol(symbol, node);\n          if (isDeprecatedAliasedSymbol(targetSymbol) && targetSymbol.declarations) {\n            addDeprecatedSuggestion(node, targetSymbol.declarations, targetSymbol.escapedName);\n          }\n        }\n      }\n    }\n    function isDeprecatedAliasedSymbol(symbol) {\n      return !!symbol.declarations && every(symbol.declarations, (d) => !!(getCombinedNodeFlags(d) & 268435456));\n    }\n    function checkDeprecatedAliasedSymbol(symbol, location) {\n      if (!(symbol.flags & 2097152))\n        return symbol;\n      const targetSymbol = resolveAlias(symbol);\n      if (targetSymbol === unknownSymbol)\n        return targetSymbol;\n      while (symbol.flags & 2097152) {\n        const target = getImmediateAliasedSymbol(symbol);\n        if (target) {\n          if (target === targetSymbol)\n            break;\n          if (target.declarations && length(target.declarations)) {\n            if (isDeprecatedAliasedSymbol(target)) {\n              addDeprecatedSuggestion(location, target.declarations, target.escapedName);\n              break;\n            } else {\n              if (symbol === targetSymbol)\n                break;\n              symbol = target;\n            }\n          }\n        } else {\n          break;\n        }\n      }\n      return targetSymbol;\n    }\n    function checkImportBinding(node) {\n      checkCollisionsForDeclarationName(node, node.name);\n      checkAliasSymbol(node);\n      if (node.kind === 273 && idText(node.propertyName || node.name) === \"default\" && getESModuleInterop(compilerOptions) && moduleKind !== 4 && (moduleKind < 5 || getSourceFileOfNode(node).impliedNodeFormat === 1)) {\n        checkExternalEmitHelpers(node, 131072);\n      }\n    }\n    function checkAssertClause(declaration) {\n      var _a2;\n      if (declaration.assertClause) {\n        const validForTypeAssertions = isExclusivelyTypeOnlyImportOrExport(declaration);\n        const override = getResolutionModeOverrideForClause(declaration.assertClause, validForTypeAssertions ? grammarErrorOnNode : void 0);\n        if (validForTypeAssertions && override) {\n          if (!isNightly()) {\n            grammarErrorOnNode(declaration.assertClause, Diagnostics.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next);\n          }\n          if (getEmitModuleResolutionKind(compilerOptions) !== 3 && getEmitModuleResolutionKind(compilerOptions) !== 99) {\n            return grammarErrorOnNode(declaration.assertClause, Diagnostics.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext);\n          }\n          return;\n        }\n        const mode = moduleKind === 199 && declaration.moduleSpecifier && getUsageModeForExpression(declaration.moduleSpecifier);\n        if (mode !== 99 && moduleKind !== 99) {\n          return grammarErrorOnNode(declaration.assertClause, moduleKind === 199 ? Diagnostics.Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls : Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext);\n        }\n        if (isImportDeclaration(declaration) ? (_a2 = declaration.importClause) == null ? void 0 : _a2.isTypeOnly : declaration.isTypeOnly) {\n          return grammarErrorOnNode(declaration.assertClause, Diagnostics.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);\n        }\n        if (override) {\n          return grammarErrorOnNode(declaration.assertClause, Diagnostics.resolution_mode_can_only_be_set_for_type_only_imports);\n        }\n      }\n    }\n    function checkImportDeclaration(node) {\n      if (checkGrammarModuleElementContext(node, isInJSFile(node) ? Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module : Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)) {\n        return;\n      }\n      if (!checkGrammarModifiers(node) && hasEffectiveModifiers(node)) {\n        grammarErrorOnFirstToken(node, Diagnostics.An_import_declaration_cannot_have_modifiers);\n      }\n      if (checkExternalImportOrExportDeclaration(node)) {\n        const importClause = node.importClause;\n        if (importClause && !checkGrammarImportClause(importClause)) {\n          if (importClause.name) {\n            checkImportBinding(importClause);\n          }\n          if (importClause.namedBindings) {\n            if (importClause.namedBindings.kind === 271) {\n              checkImportBinding(importClause.namedBindings);\n              if (moduleKind !== 4 && (moduleKind < 5 || getSourceFileOfNode(node).impliedNodeFormat === 1) && getESModuleInterop(compilerOptions)) {\n                checkExternalEmitHelpers(node, 65536);\n              }\n            } else {\n              const moduleExisted = resolveExternalModuleName(node, node.moduleSpecifier);\n              if (moduleExisted) {\n                forEach(importClause.namedBindings.elements, checkImportBinding);\n              }\n            }\n          }\n        }\n      }\n      checkAssertClause(node);\n    }\n    function checkImportEqualsDeclaration(node) {\n      if (checkGrammarModuleElementContext(node, isInJSFile(node) ? Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module : Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)) {\n        return;\n      }\n      checkGrammarModifiers(node);\n      if (isInternalModuleImportEqualsDeclaration(node) || checkExternalImportOrExportDeclaration(node)) {\n        checkImportBinding(node);\n        if (hasSyntacticModifier(node, 1)) {\n          markExportAsReferenced(node);\n        }\n        if (node.moduleReference.kind !== 280) {\n          const target = resolveAlias(getSymbolOfDeclaration(node));\n          if (target !== unknownSymbol) {\n            const targetFlags = getAllSymbolFlags(target);\n            if (targetFlags & 111551) {\n              const moduleName = getFirstIdentifier(node.moduleReference);\n              if (!(resolveEntityName(moduleName, 111551 | 1920).flags & 1920)) {\n                error(moduleName, Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name, declarationNameToString(moduleName));\n              }\n            }\n            if (targetFlags & 788968) {\n              checkTypeNameIsReserved(node.name, Diagnostics.Import_name_cannot_be_0);\n            }\n          }\n          if (node.isTypeOnly) {\n            grammarErrorOnNode(node, Diagnostics.An_import_alias_cannot_use_import_type);\n          }\n        } else {\n          if (moduleKind >= 5 && getSourceFileOfNode(node).impliedNodeFormat === void 0 && !node.isTypeOnly && !(node.flags & 16777216)) {\n            grammarErrorOnNode(node, Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead);\n          }\n        }\n      }\n    }\n    function checkExportDeclaration(node) {\n      if (checkGrammarModuleElementContext(node, isInJSFile(node) ? Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module : Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)) {\n        return;\n      }\n      if (!checkGrammarModifiers(node) && hasSyntacticModifiers(node)) {\n        grammarErrorOnFirstToken(node, Diagnostics.An_export_declaration_cannot_have_modifiers);\n      }\n      if (node.moduleSpecifier && node.exportClause && isNamedExports(node.exportClause) && length(node.exportClause.elements) && languageVersion === 0) {\n        checkExternalEmitHelpers(node, 4194304);\n      }\n      checkGrammarExportDeclaration(node);\n      if (!node.moduleSpecifier || checkExternalImportOrExportDeclaration(node)) {\n        if (node.exportClause && !isNamespaceExport(node.exportClause)) {\n          forEach(node.exportClause.elements, checkExportSpecifier);\n          const inAmbientExternalModule = node.parent.kind === 265 && isAmbientModule(node.parent.parent);\n          const inAmbientNamespaceDeclaration = !inAmbientExternalModule && node.parent.kind === 265 && !node.moduleSpecifier && node.flags & 16777216;\n          if (node.parent.kind !== 308 && !inAmbientExternalModule && !inAmbientNamespaceDeclaration) {\n            error(node, Diagnostics.Export_declarations_are_not_permitted_in_a_namespace);\n          }\n        } else {\n          const moduleSymbol = resolveExternalModuleName(node, node.moduleSpecifier);\n          if (moduleSymbol && hasExportAssignmentSymbol(moduleSymbol)) {\n            error(node.moduleSpecifier, Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk, symbolToString(moduleSymbol));\n          } else if (node.exportClause) {\n            checkAliasSymbol(node.exportClause);\n          }\n          if (moduleKind !== 4 && (moduleKind < 5 || getSourceFileOfNode(node).impliedNodeFormat === 1)) {\n            if (node.exportClause) {\n              if (getESModuleInterop(compilerOptions)) {\n                checkExternalEmitHelpers(node, 65536);\n              }\n            } else {\n              checkExternalEmitHelpers(node, 32768);\n            }\n          }\n        }\n      }\n      checkAssertClause(node);\n    }\n    function checkGrammarExportDeclaration(node) {\n      var _a2;\n      if (node.isTypeOnly && ((_a2 = node.exportClause) == null ? void 0 : _a2.kind) === 276) {\n        return checkGrammarNamedImportsOrExports(node.exportClause);\n      }\n      return false;\n    }\n    function checkGrammarModuleElementContext(node, errorMessage) {\n      const isInAppropriateContext = node.parent.kind === 308 || node.parent.kind === 265 || node.parent.kind === 264;\n      if (!isInAppropriateContext) {\n        grammarErrorOnFirstToken(node, errorMessage);\n      }\n      return !isInAppropriateContext;\n    }\n    function importClauseContainsReferencedImport(importClause) {\n      return forEachImportClauseDeclaration(importClause, (declaration) => {\n        return !!getSymbolOfDeclaration(declaration).isReferenced;\n      });\n    }\n    function importClauseContainsConstEnumUsedAsValue(importClause) {\n      return forEachImportClauseDeclaration(importClause, (declaration) => {\n        return !!getSymbolLinks(getSymbolOfDeclaration(declaration)).constEnumReferenced;\n      });\n    }\n    function canConvertImportDeclarationToTypeOnly(statement) {\n      return isImportDeclaration(statement) && statement.importClause && !statement.importClause.isTypeOnly && importClauseContainsReferencedImport(statement.importClause) && !isReferencedAliasDeclaration(statement.importClause, true) && !importClauseContainsConstEnumUsedAsValue(statement.importClause);\n    }\n    function canConvertImportEqualsDeclarationToTypeOnly(statement) {\n      return isImportEqualsDeclaration(statement) && isExternalModuleReference(statement.moduleReference) && !statement.isTypeOnly && getSymbolOfDeclaration(statement).isReferenced && !isReferencedAliasDeclaration(statement, false) && !getSymbolLinks(getSymbolOfDeclaration(statement)).constEnumReferenced;\n    }\n    function checkImportsForTypeOnlyConversion(sourceFile) {\n      for (const statement of sourceFile.statements) {\n        if (canConvertImportDeclarationToTypeOnly(statement) || canConvertImportEqualsDeclarationToTypeOnly(statement)) {\n          error(statement, Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error);\n        }\n      }\n    }\n    function checkExportSpecifier(node) {\n      checkAliasSymbol(node);\n      if (getEmitDeclarations(compilerOptions)) {\n        collectLinkedAliases(node.propertyName || node.name, true);\n      }\n      if (!node.parent.parent.moduleSpecifier) {\n        const exportedName = node.propertyName || node.name;\n        const symbol = resolveName(exportedName, exportedName.escapedText, 111551 | 788968 | 1920 | 2097152, void 0, void 0, true);\n        if (symbol && (symbol === undefinedSymbol || symbol === globalThisSymbol || symbol.declarations && isGlobalSourceFile(getDeclarationContainer(symbol.declarations[0])))) {\n          error(exportedName, Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module, idText(exportedName));\n        } else {\n          if (!node.isTypeOnly && !node.parent.parent.isTypeOnly) {\n            markExportAsReferenced(node);\n          }\n          const target = symbol && (symbol.flags & 2097152 ? resolveAlias(symbol) : symbol);\n          if (!target || getAllSymbolFlags(target) & 111551) {\n            checkExpressionCached(node.propertyName || node.name);\n          }\n        }\n      } else {\n        if (getESModuleInterop(compilerOptions) && moduleKind !== 4 && (moduleKind < 5 || getSourceFileOfNode(node).impliedNodeFormat === 1) && idText(node.propertyName || node.name) === \"default\") {\n          checkExternalEmitHelpers(node, 131072);\n        }\n      }\n    }\n    function checkExportAssignment(node) {\n      const illegalContextMessage = node.isExportEquals ? Diagnostics.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration : Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;\n      if (checkGrammarModuleElementContext(node, illegalContextMessage)) {\n        return;\n      }\n      const container = node.parent.kind === 308 ? node.parent : node.parent.parent;\n      if (container.kind === 264 && !isAmbientModule(container)) {\n        if (node.isExportEquals) {\n          error(node, Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace);\n        } else {\n          error(node, Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);\n        }\n        return;\n      }\n      if (!checkGrammarModifiers(node) && hasEffectiveModifiers(node)) {\n        grammarErrorOnFirstToken(node, Diagnostics.An_export_assignment_cannot_have_modifiers);\n      }\n      const typeAnnotationNode = getEffectiveTypeAnnotationNode(node);\n      if (typeAnnotationNode) {\n        checkTypeAssignableTo(checkExpressionCached(node.expression), getTypeFromTypeNode(typeAnnotationNode), node.expression);\n      }\n      const isIllegalExportDefaultInCJS = !node.isExportEquals && !(node.flags & 16777216) && compilerOptions.verbatimModuleSyntax && (moduleKind === 1 || getSourceFileOfNode(node).impliedNodeFormat === 1);\n      if (node.expression.kind === 79) {\n        const id = node.expression;\n        const sym = getExportSymbolOfValueSymbolIfExported(resolveEntityName(id, 67108863, true, true, node));\n        if (sym) {\n          markAliasReferenced(sym, id);\n          if (getAllSymbolFlags(sym) & 111551) {\n            checkExpressionCached(id);\n            if (!isIllegalExportDefaultInCJS && compilerOptions.verbatimModuleSyntax && getTypeOnlyAliasDeclaration(sym, 111551)) {\n              error(id, node.isExportEquals ? Diagnostics.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration : Diagnostics.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration, idText(id));\n            }\n          } else if (!isIllegalExportDefaultInCJS && compilerOptions.verbatimModuleSyntax) {\n            error(id, node.isExportEquals ? Diagnostics.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type : Diagnostics.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type, idText(id));\n          }\n        } else {\n          checkExpressionCached(id);\n        }\n        if (getEmitDeclarations(compilerOptions)) {\n          collectLinkedAliases(id, true);\n        }\n      } else {\n        checkExpressionCached(node.expression);\n      }\n      if (isIllegalExportDefaultInCJS) {\n        error(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);\n      }\n      checkExternalModuleExports(container);\n      if (node.flags & 16777216 && !isEntityNameExpression(node.expression)) {\n        grammarErrorOnNode(node.expression, Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context);\n      }\n      if (node.isExportEquals) {\n        if (moduleKind >= 5 && (node.flags & 16777216 && getSourceFileOfNode(node).impliedNodeFormat === 99 || !(node.flags & 16777216) && getSourceFileOfNode(node).impliedNodeFormat !== 1)) {\n          grammarErrorOnNode(node, Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead);\n        } else if (moduleKind === 4 && !(node.flags & 16777216)) {\n          grammarErrorOnNode(node, Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system);\n        }\n      }\n    }\n    function hasExportedMembers(moduleSymbol) {\n      return forEachEntry(moduleSymbol.exports, (_, id) => id !== \"export=\");\n    }\n    function checkExternalModuleExports(node) {\n      const moduleSymbol = getSymbolOfDeclaration(node);\n      const links = getSymbolLinks(moduleSymbol);\n      if (!links.exportsChecked) {\n        const exportEqualsSymbol = moduleSymbol.exports.get(\"export=\");\n        if (exportEqualsSymbol && hasExportedMembers(moduleSymbol)) {\n          const declaration = getDeclarationOfAliasSymbol(exportEqualsSymbol) || exportEqualsSymbol.valueDeclaration;\n          if (declaration && !isTopLevelInExternalModuleAugmentation(declaration) && !isInJSFile(declaration)) {\n            error(declaration, Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements);\n          }\n        }\n        const exports = getExportsOfModule(moduleSymbol);\n        if (exports) {\n          exports.forEach(({ declarations, flags }, id) => {\n            if (id === \"__export\") {\n              return;\n            }\n            if (flags & (1920 | 384)) {\n              return;\n            }\n            const exportedDeclarationsCount = countWhere(declarations, and(isNotOverloadAndNotAccessor, not(isInterfaceDeclaration)));\n            if (flags & 524288 && exportedDeclarationsCount <= 2) {\n              return;\n            }\n            if (exportedDeclarationsCount > 1) {\n              if (!isDuplicatedCommonJSExport(declarations)) {\n                for (const declaration of declarations) {\n                  if (isNotOverload(declaration)) {\n                    diagnostics.add(createDiagnosticForNode(declaration, Diagnostics.Cannot_redeclare_exported_variable_0, unescapeLeadingUnderscores(id)));\n                  }\n                }\n              }\n            }\n          });\n        }\n        links.exportsChecked = true;\n      }\n    }\n    function isDuplicatedCommonJSExport(declarations) {\n      return declarations && declarations.length > 1 && declarations.every((d) => isInJSFile(d) && isAccessExpression(d) && (isExportsIdentifier(d.expression) || isModuleExportsAccessExpression(d.expression)));\n    }\n    function checkSourceElement(node) {\n      if (node) {\n        const saveCurrentNode = currentNode;\n        currentNode = node;\n        instantiationCount = 0;\n        checkSourceElementWorker(node);\n        currentNode = saveCurrentNode;\n      }\n    }\n    function checkSourceElementWorker(node) {\n      if (canHaveJSDoc(node)) {\n        forEach(node.jsDoc, ({ comment, tags }) => {\n          checkJSDocCommentWorker(comment);\n          forEach(tags, (tag) => {\n            checkJSDocCommentWorker(tag.comment);\n            if (isInJSFile(node)) {\n              checkSourceElement(tag);\n            }\n          });\n        });\n      }\n      const kind = node.kind;\n      if (cancellationToken) {\n        switch (kind) {\n          case 264:\n          case 260:\n          case 261:\n          case 259:\n            cancellationToken.throwIfCancellationRequested();\n        }\n      }\n      if (kind >= 240 && kind <= 256 && canHaveFlowNode(node) && node.flowNode && !isReachableFlowNode(node.flowNode)) {\n        errorOrSuggestion(compilerOptions.allowUnreachableCode === false, node, Diagnostics.Unreachable_code_detected);\n      }\n      switch (kind) {\n        case 165:\n          return checkTypeParameter(node);\n        case 166:\n          return checkParameter(node);\n        case 169:\n          return checkPropertyDeclaration(node);\n        case 168:\n          return checkPropertySignature(node);\n        case 182:\n        case 181:\n        case 176:\n        case 177:\n        case 178:\n          return checkSignatureDeclaration(node);\n        case 171:\n        case 170:\n          return checkMethodDeclaration(node);\n        case 172:\n          return checkClassStaticBlockDeclaration(node);\n        case 173:\n          return checkConstructorDeclaration(node);\n        case 174:\n        case 175:\n          return checkAccessorDeclaration(node);\n        case 180:\n          return checkTypeReferenceNode(node);\n        case 179:\n          return checkTypePredicate(node);\n        case 183:\n          return checkTypeQuery(node);\n        case 184:\n          return checkTypeLiteral(node);\n        case 185:\n          return checkArrayType(node);\n        case 186:\n          return checkTupleType(node);\n        case 189:\n        case 190:\n          return checkUnionOrIntersectionType(node);\n        case 193:\n        case 187:\n        case 188:\n          return checkSourceElement(node.type);\n        case 194:\n          return checkThisType(node);\n        case 195:\n          return checkTypeOperator(node);\n        case 191:\n          return checkConditionalType(node);\n        case 192:\n          return checkInferType(node);\n        case 200:\n          return checkTemplateLiteralType(node);\n        case 202:\n          return checkImportType(node);\n        case 199:\n          return checkNamedTupleMember(node);\n        case 331:\n          return checkJSDocAugmentsTag(node);\n        case 332:\n          return checkJSDocImplementsTag(node);\n        case 349:\n        case 341:\n        case 343:\n          return checkJSDocTypeAliasTag(node);\n        case 348:\n          return checkJSDocTemplateTag(node);\n        case 347:\n          return checkJSDocTypeTag(node);\n        case 327:\n        case 328:\n        case 329:\n          return checkJSDocLinkLikeTag(node);\n        case 344:\n          return checkJSDocParameterTag(node);\n        case 351:\n          return checkJSDocPropertyTag(node);\n        case 320:\n          checkJSDocFunctionType(node);\n        case 318:\n        case 317:\n        case 315:\n        case 316:\n        case 325:\n          checkJSDocTypeIsInJsFile(node);\n          forEachChild(node, checkSourceElement);\n          return;\n        case 321:\n          checkJSDocVariadicType(node);\n          return;\n        case 312:\n          return checkSourceElement(node.type);\n        case 336:\n        case 338:\n        case 337:\n          return checkJSDocAccessibilityModifiers(node);\n        case 353:\n          return checkJSDocSatisfiesTag(node);\n        case 196:\n          return checkIndexedAccessType(node);\n        case 197:\n          return checkMappedType(node);\n        case 259:\n          return checkFunctionDeclaration(node);\n        case 238:\n        case 265:\n          return checkBlock(node);\n        case 240:\n          return checkVariableStatement(node);\n        case 241:\n          return checkExpressionStatement(node);\n        case 242:\n          return checkIfStatement(node);\n        case 243:\n          return checkDoStatement(node);\n        case 244:\n          return checkWhileStatement(node);\n        case 245:\n          return checkForStatement(node);\n        case 246:\n          return checkForInStatement(node);\n        case 247:\n          return checkForOfStatement(node);\n        case 248:\n        case 249:\n          return checkBreakOrContinueStatement(node);\n        case 250:\n          return checkReturnStatement(node);\n        case 251:\n          return checkWithStatement(node);\n        case 252:\n          return checkSwitchStatement(node);\n        case 253:\n          return checkLabeledStatement(node);\n        case 254:\n          return checkThrowStatement(node);\n        case 255:\n          return checkTryStatement(node);\n        case 257:\n          return checkVariableDeclaration(node);\n        case 205:\n          return checkBindingElement(node);\n        case 260:\n          return checkClassDeclaration(node);\n        case 261:\n          return checkInterfaceDeclaration(node);\n        case 262:\n          return checkTypeAliasDeclaration(node);\n        case 263:\n          return checkEnumDeclaration(node);\n        case 264:\n          return checkModuleDeclaration(node);\n        case 269:\n          return checkImportDeclaration(node);\n        case 268:\n          return checkImportEqualsDeclaration(node);\n        case 275:\n          return checkExportDeclaration(node);\n        case 274:\n          return checkExportAssignment(node);\n        case 239:\n        case 256:\n          checkGrammarStatementInAmbientContext(node);\n          return;\n        case 279:\n          return checkMissingDeclaration(node);\n      }\n    }\n    function checkJSDocCommentWorker(node) {\n      if (isArray(node)) {\n        forEach(node, (tag) => {\n          if (isJSDocLinkLike(tag)) {\n            checkSourceElement(tag);\n          }\n        });\n      }\n    }\n    function checkJSDocTypeIsInJsFile(node) {\n      if (!isInJSFile(node)) {\n        if (isJSDocNonNullableType(node) || isJSDocNullableType(node)) {\n          const token = tokenToString(isJSDocNonNullableType(node) ? 53 : 57);\n          const diagnostic = node.postfix ? Diagnostics._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1 : Diagnostics._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1;\n          const typeNode = node.type;\n          const type = getTypeFromTypeNode(typeNode);\n          grammarErrorOnNode(node, diagnostic, token, typeToString(isJSDocNullableType(node) && !(type === neverType || type === voidType) ? getUnionType(append([type, undefinedType], node.postfix ? void 0 : nullType)) : type));\n        } else {\n          grammarErrorOnNode(node, Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments);\n        }\n      }\n    }\n    function checkJSDocVariadicType(node) {\n      checkJSDocTypeIsInJsFile(node);\n      checkSourceElement(node.type);\n      const { parent: parent2 } = node;\n      if (isParameter(parent2) && isJSDocFunctionType(parent2.parent)) {\n        if (last(parent2.parent.parameters) !== parent2) {\n          error(node, Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);\n        }\n        return;\n      }\n      if (!isJSDocTypeExpression(parent2)) {\n        error(node, Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);\n      }\n      const paramTag = node.parent.parent;\n      if (!isJSDocParameterTag(paramTag)) {\n        error(node, Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);\n        return;\n      }\n      const param = getParameterSymbolFromJSDoc(paramTag);\n      if (!param) {\n        return;\n      }\n      const host2 = getHostSignatureFromJSDoc(paramTag);\n      if (!host2 || last(host2.parameters).symbol !== param) {\n        error(node, Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);\n      }\n    }\n    function getTypeFromJSDocVariadicType(node) {\n      const type = getTypeFromTypeNode(node.type);\n      const { parent: parent2 } = node;\n      const paramTag = node.parent.parent;\n      if (isJSDocTypeExpression(node.parent) && isJSDocParameterTag(paramTag)) {\n        const host2 = getHostSignatureFromJSDoc(paramTag);\n        const isCallbackTag = isJSDocCallbackTag(paramTag.parent.parent);\n        if (host2 || isCallbackTag) {\n          const lastParamDeclaration = isCallbackTag ? lastOrUndefined(paramTag.parent.parent.typeExpression.parameters) : lastOrUndefined(host2.parameters);\n          const symbol = getParameterSymbolFromJSDoc(paramTag);\n          if (!lastParamDeclaration || symbol && lastParamDeclaration.symbol === symbol && isRestParameter(lastParamDeclaration)) {\n            return createArrayType(type);\n          }\n        }\n      }\n      if (isParameter(parent2) && isJSDocFunctionType(parent2.parent)) {\n        return createArrayType(type);\n      }\n      return addOptionality(type);\n    }\n    function checkNodeDeferred(node) {\n      const enclosingFile = getSourceFileOfNode(node);\n      const links = getNodeLinks(enclosingFile);\n      if (!(links.flags & 1)) {\n        links.deferredNodes || (links.deferredNodes = /* @__PURE__ */ new Set());\n        links.deferredNodes.add(node);\n      } else {\n        Debug.assert(!links.deferredNodes, \"A type-checked file should have no deferred nodes.\");\n      }\n    }\n    function checkDeferredNodes(context) {\n      const links = getNodeLinks(context);\n      if (links.deferredNodes) {\n        links.deferredNodes.forEach(checkDeferredNode);\n      }\n      links.deferredNodes = void 0;\n    }\n    function checkDeferredNode(node) {\n      var _a2, _b;\n      (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Check, \"checkDeferredNode\", { kind: node.kind, pos: node.pos, end: node.end, path: node.tracingPath });\n      const saveCurrentNode = currentNode;\n      currentNode = node;\n      instantiationCount = 0;\n      switch (node.kind) {\n        case 210:\n        case 211:\n        case 212:\n        case 167:\n        case 283:\n          resolveUntypedCall(node);\n          break;\n        case 215:\n        case 216:\n        case 171:\n        case 170:\n          checkFunctionExpressionOrObjectLiteralMethodDeferred(node);\n          break;\n        case 174:\n        case 175:\n          checkAccessorDeclaration(node);\n          break;\n        case 228:\n          checkClassExpressionDeferred(node);\n          break;\n        case 165:\n          checkTypeParameterDeferred(node);\n          break;\n        case 282:\n          checkJsxSelfClosingElementDeferred(node);\n          break;\n        case 281:\n          checkJsxElementDeferred(node);\n          break;\n      }\n      currentNode = saveCurrentNode;\n      (_b = tracing) == null ? void 0 : _b.pop();\n    }\n    function checkSourceFile(node) {\n      var _a2, _b;\n      (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Check, \"checkSourceFile\", { path: node.path }, true);\n      mark(\"beforeCheck\");\n      checkSourceFileWorker(node);\n      mark(\"afterCheck\");\n      measure(\"Check\", \"beforeCheck\", \"afterCheck\");\n      (_b = tracing) == null ? void 0 : _b.pop();\n    }\n    function unusedIsError(kind, isAmbient) {\n      if (isAmbient) {\n        return false;\n      }\n      switch (kind) {\n        case 0:\n          return !!compilerOptions.noUnusedLocals;\n        case 1:\n          return !!compilerOptions.noUnusedParameters;\n        default:\n          return Debug.assertNever(kind);\n      }\n    }\n    function getPotentiallyUnusedIdentifiers(sourceFile) {\n      return allPotentiallyUnusedIdentifiers.get(sourceFile.path) || emptyArray;\n    }\n    function checkSourceFileWorker(node) {\n      const links = getNodeLinks(node);\n      if (!(links.flags & 1)) {\n        if (skipTypeChecking(node, compilerOptions, host)) {\n          return;\n        }\n        checkGrammarSourceFile(node);\n        clear(potentialThisCollisions);\n        clear(potentialNewTargetCollisions);\n        clear(potentialWeakMapSetCollisions);\n        clear(potentialReflectCollisions);\n        clear(potentialUnusedRenamedBindingElementsInTypes);\n        forEach(node.statements, checkSourceElement);\n        checkSourceElement(node.endOfFileToken);\n        checkDeferredNodes(node);\n        if (isExternalOrCommonJsModule(node)) {\n          registerForUnusedIdentifiersCheck(node);\n        }\n        addLazyDiagnostic(() => {\n          if (!node.isDeclarationFile && (compilerOptions.noUnusedLocals || compilerOptions.noUnusedParameters)) {\n            checkUnusedIdentifiers(getPotentiallyUnusedIdentifiers(node), (containingNode, kind, diag2) => {\n              if (!containsParseError(containingNode) && unusedIsError(kind, !!(containingNode.flags & 16777216))) {\n                diagnostics.add(diag2);\n              }\n            });\n          }\n          if (!node.isDeclarationFile) {\n            checkPotentialUncheckedRenamedBindingElementsInTypes();\n          }\n        });\n        if (compilerOptions.importsNotUsedAsValues === 2 && !node.isDeclarationFile && isExternalModule(node)) {\n          checkImportsForTypeOnlyConversion(node);\n        }\n        if (isExternalOrCommonJsModule(node)) {\n          checkExternalModuleExports(node);\n        }\n        if (potentialThisCollisions.length) {\n          forEach(potentialThisCollisions, checkIfThisIsCapturedInEnclosingScope);\n          clear(potentialThisCollisions);\n        }\n        if (potentialNewTargetCollisions.length) {\n          forEach(potentialNewTargetCollisions, checkIfNewTargetIsCapturedInEnclosingScope);\n          clear(potentialNewTargetCollisions);\n        }\n        if (potentialWeakMapSetCollisions.length) {\n          forEach(potentialWeakMapSetCollisions, checkWeakMapSetCollision);\n          clear(potentialWeakMapSetCollisions);\n        }\n        if (potentialReflectCollisions.length) {\n          forEach(potentialReflectCollisions, checkReflectCollision);\n          clear(potentialReflectCollisions);\n        }\n        links.flags |= 1;\n      }\n    }\n    function getDiagnostics2(sourceFile, ct) {\n      try {\n        cancellationToken = ct;\n        return getDiagnosticsWorker(sourceFile);\n      } finally {\n        cancellationToken = void 0;\n      }\n    }\n    function ensurePendingDiagnosticWorkComplete() {\n      for (const cb of deferredDiagnosticsCallbacks) {\n        cb();\n      }\n      deferredDiagnosticsCallbacks = [];\n    }\n    function checkSourceFileWithEagerDiagnostics(sourceFile) {\n      ensurePendingDiagnosticWorkComplete();\n      const oldAddLazyDiagnostics = addLazyDiagnostic;\n      addLazyDiagnostic = (cb) => cb();\n      checkSourceFile(sourceFile);\n      addLazyDiagnostic = oldAddLazyDiagnostics;\n    }\n    function getDiagnosticsWorker(sourceFile) {\n      if (sourceFile) {\n        ensurePendingDiagnosticWorkComplete();\n        const previousGlobalDiagnostics = diagnostics.getGlobalDiagnostics();\n        const previousGlobalDiagnosticsSize = previousGlobalDiagnostics.length;\n        checkSourceFileWithEagerDiagnostics(sourceFile);\n        const semanticDiagnostics = diagnostics.getDiagnostics(sourceFile.fileName);\n        const currentGlobalDiagnostics = diagnostics.getGlobalDiagnostics();\n        if (currentGlobalDiagnostics !== previousGlobalDiagnostics) {\n          const deferredGlobalDiagnostics = relativeComplement(previousGlobalDiagnostics, currentGlobalDiagnostics, compareDiagnostics);\n          return concatenate(deferredGlobalDiagnostics, semanticDiagnostics);\n        } else if (previousGlobalDiagnosticsSize === 0 && currentGlobalDiagnostics.length > 0) {\n          return concatenate(currentGlobalDiagnostics, semanticDiagnostics);\n        }\n        return semanticDiagnostics;\n      }\n      forEach(host.getSourceFiles(), checkSourceFileWithEagerDiagnostics);\n      return diagnostics.getDiagnostics();\n    }\n    function getGlobalDiagnostics() {\n      ensurePendingDiagnosticWorkComplete();\n      return diagnostics.getGlobalDiagnostics();\n    }\n    function getSymbolsInScope(location, meaning) {\n      if (location.flags & 33554432) {\n        return [];\n      }\n      const symbols = createSymbolTable();\n      let isStaticSymbol = false;\n      populateSymbols();\n      symbols.delete(\"this\");\n      return symbolsToArray(symbols);\n      function populateSymbols() {\n        while (location) {\n          if (canHaveLocals(location) && location.locals && !isGlobalSourceFile(location)) {\n            copySymbols(location.locals, meaning);\n          }\n          switch (location.kind) {\n            case 308:\n              if (!isExternalModule(location))\n                break;\n            case 264:\n              copyLocallyVisibleExportSymbols(getSymbolOfDeclaration(location).exports, meaning & 2623475);\n              break;\n            case 263:\n              copySymbols(getSymbolOfDeclaration(location).exports, meaning & 8);\n              break;\n            case 228:\n              const className = location.name;\n              if (className) {\n                copySymbol(location.symbol, meaning);\n              }\n            case 260:\n            case 261:\n              if (!isStaticSymbol) {\n                copySymbols(getMembersOfSymbol(getSymbolOfDeclaration(location)), meaning & 788968);\n              }\n              break;\n            case 215:\n              const funcName = location.name;\n              if (funcName) {\n                copySymbol(location.symbol, meaning);\n              }\n              break;\n          }\n          if (introducesArgumentsExoticObject(location)) {\n            copySymbol(argumentsSymbol, meaning);\n          }\n          isStaticSymbol = isStatic(location);\n          location = location.parent;\n        }\n        copySymbols(globals, meaning);\n      }\n      function copySymbol(symbol, meaning2) {\n        if (getCombinedLocalAndExportSymbolFlags(symbol) & meaning2) {\n          const id = symbol.escapedName;\n          if (!symbols.has(id)) {\n            symbols.set(id, symbol);\n          }\n        }\n      }\n      function copySymbols(source, meaning2) {\n        if (meaning2) {\n          source.forEach((symbol) => {\n            copySymbol(symbol, meaning2);\n          });\n        }\n      }\n      function copyLocallyVisibleExportSymbols(source, meaning2) {\n        if (meaning2) {\n          source.forEach((symbol) => {\n            if (!getDeclarationOfKind(symbol, 278) && !getDeclarationOfKind(symbol, 277)) {\n              copySymbol(symbol, meaning2);\n            }\n          });\n        }\n      }\n    }\n    function isTypeDeclarationName(name) {\n      return name.kind === 79 && isTypeDeclaration(name.parent) && getNameOfDeclaration(name.parent) === name;\n    }\n    function isTypeReferenceIdentifier(node) {\n      while (node.parent.kind === 163) {\n        node = node.parent;\n      }\n      return node.parent.kind === 180;\n    }\n    function isInNameOfExpressionWithTypeArguments(node) {\n      while (node.parent.kind === 208) {\n        node = node.parent;\n      }\n      return node.parent.kind === 230;\n    }\n    function forEachEnclosingClass(node, callback) {\n      let result;\n      let containingClass = getContainingClass(node);\n      while (containingClass) {\n        if (result = callback(containingClass))\n          break;\n        containingClass = getContainingClass(containingClass);\n      }\n      return result;\n    }\n    function isNodeUsedDuringClassInitialization(node) {\n      return !!findAncestor(node, (element) => {\n        if (isConstructorDeclaration(element) && nodeIsPresent(element.body) || isPropertyDeclaration(element)) {\n          return true;\n        } else if (isClassLike(element) || isFunctionLikeDeclaration(element)) {\n          return \"quit\";\n        }\n        return false;\n      });\n    }\n    function isNodeWithinClass(node, classDeclaration) {\n      return !!forEachEnclosingClass(node, (n) => n === classDeclaration);\n    }\n    function getLeftSideOfImportEqualsOrExportAssignment(nodeOnRightSide) {\n      while (nodeOnRightSide.parent.kind === 163) {\n        nodeOnRightSide = nodeOnRightSide.parent;\n      }\n      if (nodeOnRightSide.parent.kind === 268) {\n        return nodeOnRightSide.parent.moduleReference === nodeOnRightSide ? nodeOnRightSide.parent : void 0;\n      }\n      if (nodeOnRightSide.parent.kind === 274) {\n        return nodeOnRightSide.parent.expression === nodeOnRightSide ? nodeOnRightSide.parent : void 0;\n      }\n      return void 0;\n    }\n    function isInRightSideOfImportOrExportAssignment(node) {\n      return getLeftSideOfImportEqualsOrExportAssignment(node) !== void 0;\n    }\n    function getSpecialPropertyAssignmentSymbolFromEntityName(entityName) {\n      const specialPropertyAssignmentKind = getAssignmentDeclarationKind(entityName.parent.parent);\n      switch (specialPropertyAssignmentKind) {\n        case 1:\n        case 3:\n          return getSymbolOfNode(entityName.parent);\n        case 4:\n        case 2:\n        case 5:\n          return getSymbolOfDeclaration(entityName.parent.parent);\n      }\n    }\n    function isImportTypeQualifierPart(node) {\n      let parent2 = node.parent;\n      while (isQualifiedName(parent2)) {\n        node = parent2;\n        parent2 = parent2.parent;\n      }\n      if (parent2 && parent2.kind === 202 && parent2.qualifier === node) {\n        return parent2;\n      }\n      return void 0;\n    }\n    function getSymbolOfNameOrPropertyAccessExpression(name) {\n      if (isDeclarationName(name)) {\n        return getSymbolOfNode(name.parent);\n      }\n      if (isInJSFile(name) && name.parent.kind === 208 && name.parent === name.parent.parent.left) {\n        if (!isPrivateIdentifier(name) && !isJSDocMemberName(name)) {\n          const specialPropertyAssignmentSymbol = getSpecialPropertyAssignmentSymbolFromEntityName(name);\n          if (specialPropertyAssignmentSymbol) {\n            return specialPropertyAssignmentSymbol;\n          }\n        }\n      }\n      if (name.parent.kind === 274 && isEntityNameExpression(name)) {\n        const success = resolveEntityName(name, 111551 | 788968 | 1920 | 2097152, true);\n        if (success && success !== unknownSymbol) {\n          return success;\n        }\n      } else if (isEntityName(name) && isInRightSideOfImportOrExportAssignment(name)) {\n        const importEqualsDeclaration = getAncestor(name, 268);\n        Debug.assert(importEqualsDeclaration !== void 0);\n        return getSymbolOfPartOfRightHandSideOfImportEquals(name, true);\n      }\n      if (isEntityName(name)) {\n        const possibleImportNode = isImportTypeQualifierPart(name);\n        if (possibleImportNode) {\n          getTypeFromTypeNode(possibleImportNode);\n          const sym = getNodeLinks(name).resolvedSymbol;\n          return sym === unknownSymbol ? void 0 : sym;\n        }\n      }\n      while (isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(name)) {\n        name = name.parent;\n      }\n      if (isInNameOfExpressionWithTypeArguments(name)) {\n        let meaning = 0;\n        if (name.parent.kind === 230) {\n          meaning = isPartOfTypeNode(name) ? 788968 : 111551;\n          if (isExpressionWithTypeArgumentsInClassExtendsClause(name.parent)) {\n            meaning |= 111551;\n          }\n        } else {\n          meaning = 1920;\n        }\n        meaning |= 2097152;\n        const entityNameSymbol = isEntityNameExpression(name) ? resolveEntityName(name, meaning) : void 0;\n        if (entityNameSymbol) {\n          return entityNameSymbol;\n        }\n      }\n      if (name.parent.kind === 344) {\n        return getParameterSymbolFromJSDoc(name.parent);\n      }\n      if (name.parent.kind === 165 && name.parent.parent.kind === 348) {\n        Debug.assert(!isInJSFile(name));\n        const typeParameter = getTypeParameterFromJsDoc(name.parent);\n        return typeParameter && typeParameter.symbol;\n      }\n      if (isExpressionNode(name)) {\n        if (nodeIsMissing(name)) {\n          return void 0;\n        }\n        const isJSDoc2 = findAncestor(name, or(isJSDocLinkLike, isJSDocNameReference, isJSDocMemberName));\n        const meaning = isJSDoc2 ? 788968 | 1920 | 111551 : 111551;\n        if (name.kind === 79) {\n          if (isJSXTagName(name) && isJsxIntrinsicIdentifier(name)) {\n            const symbol = getIntrinsicTagSymbol(name.parent);\n            return symbol === unknownSymbol ? void 0 : symbol;\n          }\n          const result = resolveEntityName(name, meaning, false, true, getHostSignatureFromJSDoc(name));\n          if (!result && isJSDoc2) {\n            const container = findAncestor(name, or(isClassLike, isInterfaceDeclaration));\n            if (container) {\n              return resolveJSDocMemberName(name, false, getSymbolOfDeclaration(container));\n            }\n          }\n          if (result && isJSDoc2) {\n            const container = getJSDocHost(name);\n            if (container && isEnumMember(container) && container === result.valueDeclaration) {\n              return resolveEntityName(name, meaning, true, true, getSourceFileOfNode(container)) || result;\n            }\n          }\n          return result;\n        } else if (isPrivateIdentifier(name)) {\n          return getSymbolForPrivateIdentifierExpression(name);\n        } else if (name.kind === 208 || name.kind === 163) {\n          const links = getNodeLinks(name);\n          if (links.resolvedSymbol) {\n            return links.resolvedSymbol;\n          }\n          if (name.kind === 208) {\n            checkPropertyAccessExpression(name, 0);\n            if (!links.resolvedSymbol) {\n              const expressionType = checkExpressionCached(name.expression);\n              const infos = getApplicableIndexInfos(expressionType, getLiteralTypeFromPropertyName(name.name));\n              if (infos.length && expressionType.members) {\n                const resolved = resolveStructuredTypeMembers(expressionType);\n                const symbol = resolved.members.get(\"__index\");\n                if (infos === getIndexInfosOfType(expressionType)) {\n                  links.resolvedSymbol = symbol;\n                } else if (symbol) {\n                  const symbolLinks2 = getSymbolLinks(symbol);\n                  const declarationList = mapDefined(infos, (i) => i.declaration);\n                  const nodeListId = map(declarationList, getNodeId).join(\",\");\n                  if (!symbolLinks2.filteredIndexSymbolCache) {\n                    symbolLinks2.filteredIndexSymbolCache = /* @__PURE__ */ new Map();\n                  }\n                  if (symbolLinks2.filteredIndexSymbolCache.has(nodeListId)) {\n                    links.resolvedSymbol = symbolLinks2.filteredIndexSymbolCache.get(nodeListId);\n                  } else {\n                    const copy = createSymbol(131072, \"__index\");\n                    copy.declarations = mapDefined(infos, (i) => i.declaration);\n                    copy.parent = expressionType.aliasSymbol ? expressionType.aliasSymbol : expressionType.symbol ? expressionType.symbol : getSymbolAtLocation(copy.declarations[0].parent);\n                    symbolLinks2.filteredIndexSymbolCache.set(nodeListId, copy);\n                    links.resolvedSymbol = symbolLinks2.filteredIndexSymbolCache.get(nodeListId);\n                  }\n                }\n              }\n            }\n          } else {\n            checkQualifiedName(name, 0);\n          }\n          if (!links.resolvedSymbol && isJSDoc2 && isQualifiedName(name)) {\n            return resolveJSDocMemberName(name);\n          }\n          return links.resolvedSymbol;\n        } else if (isJSDocMemberName(name)) {\n          return resolveJSDocMemberName(name);\n        }\n      } else if (isTypeReferenceIdentifier(name)) {\n        const meaning = name.parent.kind === 180 ? 788968 : 1920;\n        const symbol = resolveEntityName(name, meaning, false, true);\n        return symbol && symbol !== unknownSymbol ? symbol : getUnresolvedSymbolForEntityName(name);\n      }\n      if (name.parent.kind === 179) {\n        return resolveEntityName(name, 1);\n      }\n      return void 0;\n    }\n    function resolveJSDocMemberName(name, ignoreErrors, container) {\n      if (isEntityName(name)) {\n        const meaning = 788968 | 1920 | 111551;\n        let symbol = resolveEntityName(name, meaning, ignoreErrors, true, getHostSignatureFromJSDoc(name));\n        if (!symbol && isIdentifier(name) && container) {\n          symbol = getMergedSymbol(getSymbol2(getExportsOfSymbol(container), name.escapedText, meaning));\n        }\n        if (symbol) {\n          return symbol;\n        }\n      }\n      const left = isIdentifier(name) ? container : resolveJSDocMemberName(name.left, ignoreErrors, container);\n      const right = isIdentifier(name) ? name.escapedText : name.right.escapedText;\n      if (left) {\n        const proto = left.flags & 111551 && getPropertyOfType(getTypeOfSymbol(left), \"prototype\");\n        const t = proto ? getTypeOfSymbol(proto) : getDeclaredTypeOfSymbol(left);\n        return getPropertyOfType(t, right);\n      }\n    }\n    function getSymbolAtLocation(node, ignoreErrors) {\n      if (isSourceFile(node)) {\n        return isExternalModule(node) ? getMergedSymbol(node.symbol) : void 0;\n      }\n      const { parent: parent2 } = node;\n      const grandParent = parent2.parent;\n      if (node.flags & 33554432) {\n        return void 0;\n      }\n      if (isDeclarationNameOrImportPropertyName(node)) {\n        const parentSymbol = getSymbolOfDeclaration(parent2);\n        return isImportOrExportSpecifier(node.parent) && node.parent.propertyName === node ? getImmediateAliasedSymbol(parentSymbol) : parentSymbol;\n      } else if (isLiteralComputedPropertyDeclarationName(node)) {\n        return getSymbolOfDeclaration(parent2.parent);\n      }\n      if (node.kind === 79) {\n        if (isInRightSideOfImportOrExportAssignment(node)) {\n          return getSymbolOfNameOrPropertyAccessExpression(node);\n        } else if (parent2.kind === 205 && grandParent.kind === 203 && node === parent2.propertyName) {\n          const typeOfPattern = getTypeOfNode(grandParent);\n          const propertyDeclaration = getPropertyOfType(typeOfPattern, node.escapedText);\n          if (propertyDeclaration) {\n            return propertyDeclaration;\n          }\n        } else if (isMetaProperty(parent2) && parent2.name === node) {\n          if (parent2.keywordToken === 103 && idText(node) === \"target\") {\n            return checkNewTargetMetaProperty(parent2).symbol;\n          }\n          if (parent2.keywordToken === 100 && idText(node) === \"meta\") {\n            return getGlobalImportMetaExpressionType().members.get(\"meta\");\n          }\n          return void 0;\n        }\n      }\n      switch (node.kind) {\n        case 79:\n        case 80:\n        case 208:\n        case 163:\n          if (!isThisInTypeQuery(node)) {\n            return getSymbolOfNameOrPropertyAccessExpression(node);\n          }\n        case 108:\n          const container = getThisContainer(node, false, false);\n          if (isFunctionLike(container)) {\n            const sig = getSignatureFromDeclaration(container);\n            if (sig.thisParameter) {\n              return sig.thisParameter;\n            }\n          }\n          if (isInExpressionContext(node)) {\n            return checkExpression(node).symbol;\n          }\n        case 194:\n          return getTypeFromThisTypeNode(node).symbol;\n        case 106:\n          return checkExpression(node).symbol;\n        case 135:\n          const constructorDeclaration = node.parent;\n          if (constructorDeclaration && constructorDeclaration.kind === 173) {\n            return constructorDeclaration.parent.symbol;\n          }\n          return void 0;\n        case 10:\n        case 14:\n          if (isExternalModuleImportEqualsDeclaration(node.parent.parent) && getExternalModuleImportEqualsDeclarationExpression(node.parent.parent) === node || (node.parent.kind === 269 || node.parent.kind === 275) && node.parent.moduleSpecifier === node || (isInJSFile(node) && getEmitModuleResolutionKind(compilerOptions) !== 100 && isRequireCall(node.parent, false) || isImportCall(node.parent)) || isLiteralTypeNode(node.parent) && isLiteralImportTypeNode(node.parent.parent) && node.parent.parent.argument === node.parent) {\n            return resolveExternalModuleName(node, node, ignoreErrors);\n          }\n          if (isCallExpression(parent2) && isBindableObjectDefinePropertyCall(parent2) && parent2.arguments[1] === node) {\n            return getSymbolOfDeclaration(parent2);\n          }\n        case 8:\n          const objectType = isElementAccessExpression(parent2) ? parent2.argumentExpression === node ? getTypeOfExpression(parent2.expression) : void 0 : isLiteralTypeNode(parent2) && isIndexedAccessTypeNode(grandParent) ? getTypeFromTypeNode(grandParent.objectType) : void 0;\n          return objectType && getPropertyOfType(objectType, escapeLeadingUnderscores(node.text));\n        case 88:\n        case 98:\n        case 38:\n        case 84:\n          return getSymbolOfNode(node.parent);\n        case 202:\n          return isLiteralImportTypeNode(node) ? getSymbolAtLocation(node.argument.literal, ignoreErrors) : void 0;\n        case 93:\n          return isExportAssignment(node.parent) ? Debug.checkDefined(node.parent.symbol) : void 0;\n        case 100:\n        case 103:\n          return isMetaProperty(node.parent) ? checkMetaPropertyKeyword(node.parent).symbol : void 0;\n        case 233:\n          return checkExpression(node).symbol;\n        default:\n          return void 0;\n      }\n    }\n    function getIndexInfosAtLocation(node) {\n      if (isIdentifier(node) && isPropertyAccessExpression(node.parent) && node.parent.name === node) {\n        const keyType = getLiteralTypeFromPropertyName(node);\n        const objectType = getTypeOfExpression(node.parent.expression);\n        const objectTypes = objectType.flags & 1048576 ? objectType.types : [objectType];\n        return flatMap(objectTypes, (t) => filter(getIndexInfosOfType(t), (info) => isApplicableIndexType(keyType, info.keyType)));\n      }\n      return void 0;\n    }\n    function getShorthandAssignmentValueSymbol(location) {\n      if (location && location.kind === 300) {\n        return resolveEntityName(location.name, 111551 | 2097152);\n      }\n      return void 0;\n    }\n    function getExportSpecifierLocalTargetSymbol(node) {\n      if (isExportSpecifier(node)) {\n        return node.parent.parent.moduleSpecifier ? getExternalModuleMember(node.parent.parent, node) : resolveEntityName(node.propertyName || node.name, 111551 | 788968 | 1920 | 2097152);\n      } else {\n        return resolveEntityName(node, 111551 | 788968 | 1920 | 2097152);\n      }\n    }\n    function getTypeOfNode(node) {\n      if (isSourceFile(node) && !isExternalModule(node)) {\n        return errorType;\n      }\n      if (node.flags & 33554432) {\n        return errorType;\n      }\n      const classDecl = tryGetClassImplementingOrExtendingExpressionWithTypeArguments(node);\n      const classType = classDecl && getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(classDecl.class));\n      if (isPartOfTypeNode(node)) {\n        const typeFromTypeNode = getTypeFromTypeNode(node);\n        return classType ? getTypeWithThisArgument(typeFromTypeNode, classType.thisType) : typeFromTypeNode;\n      }\n      if (isExpressionNode(node)) {\n        return getRegularTypeOfExpression(node);\n      }\n      if (classType && !classDecl.isImplements) {\n        const baseType = firstOrUndefined(getBaseTypes(classType));\n        return baseType ? getTypeWithThisArgument(baseType, classType.thisType) : errorType;\n      }\n      if (isTypeDeclaration(node)) {\n        const symbol = getSymbolOfDeclaration(node);\n        return getDeclaredTypeOfSymbol(symbol);\n      }\n      if (isTypeDeclarationName(node)) {\n        const symbol = getSymbolAtLocation(node);\n        return symbol ? getDeclaredTypeOfSymbol(symbol) : errorType;\n      }\n      if (isDeclaration(node)) {\n        const symbol = getSymbolOfDeclaration(node);\n        return symbol ? getTypeOfSymbol(symbol) : errorType;\n      }\n      if (isDeclarationNameOrImportPropertyName(node)) {\n        const symbol = getSymbolAtLocation(node);\n        if (symbol) {\n          return getTypeOfSymbol(symbol);\n        }\n        return errorType;\n      }\n      if (isBindingPattern(node)) {\n        return getTypeForVariableLikeDeclaration(node.parent, true, 0) || errorType;\n      }\n      if (isInRightSideOfImportOrExportAssignment(node)) {\n        const symbol = getSymbolAtLocation(node);\n        if (symbol) {\n          const declaredType = getDeclaredTypeOfSymbol(symbol);\n          return !isErrorType(declaredType) ? declaredType : getTypeOfSymbol(symbol);\n        }\n      }\n      if (isMetaProperty(node.parent) && node.parent.keywordToken === node.kind) {\n        return checkMetaPropertyKeyword(node.parent);\n      }\n      return errorType;\n    }\n    function getTypeOfAssignmentPattern(expr) {\n      Debug.assert(expr.kind === 207 || expr.kind === 206);\n      if (expr.parent.kind === 247) {\n        const iteratedType = checkRightHandSideOfForOf(expr.parent);\n        return checkDestructuringAssignment(expr, iteratedType || errorType);\n      }\n      if (expr.parent.kind === 223) {\n        const iteratedType = getTypeOfExpression(expr.parent.right);\n        return checkDestructuringAssignment(expr, iteratedType || errorType);\n      }\n      if (expr.parent.kind === 299) {\n        const node2 = cast(expr.parent.parent, isObjectLiteralExpression);\n        const typeOfParentObjectLiteral = getTypeOfAssignmentPattern(node2) || errorType;\n        const propertyIndex = indexOfNode(node2.properties, expr.parent);\n        return checkObjectLiteralDestructuringPropertyAssignment(node2, typeOfParentObjectLiteral, propertyIndex);\n      }\n      const node = cast(expr.parent, isArrayLiteralExpression);\n      const typeOfArrayLiteral = getTypeOfAssignmentPattern(node) || errorType;\n      const elementType = checkIteratedTypeOrElementType(65, typeOfArrayLiteral, undefinedType, expr.parent) || errorType;\n      return checkArrayLiteralDestructuringElementAssignment(node, typeOfArrayLiteral, node.elements.indexOf(expr), elementType);\n    }\n    function getPropertySymbolOfDestructuringAssignment(location) {\n      const typeOfObjectLiteral = getTypeOfAssignmentPattern(cast(location.parent.parent, isAssignmentPattern));\n      return typeOfObjectLiteral && getPropertyOfType(typeOfObjectLiteral, location.escapedText);\n    }\n    function getRegularTypeOfExpression(expr) {\n      if (isRightSideOfQualifiedNameOrPropertyAccess(expr)) {\n        expr = expr.parent;\n      }\n      return getRegularTypeOfLiteralType(getTypeOfExpression(expr));\n    }\n    function getParentTypeOfClassElement(node) {\n      const classSymbol = getSymbolOfNode(node.parent);\n      return isStatic(node) ? getTypeOfSymbol(classSymbol) : getDeclaredTypeOfSymbol(classSymbol);\n    }\n    function getClassElementPropertyKeyType(element) {\n      const name = element.name;\n      switch (name.kind) {\n        case 79:\n          return getStringLiteralType(idText(name));\n        case 8:\n        case 10:\n          return getStringLiteralType(name.text);\n        case 164:\n          const nameType = checkComputedPropertyName(name);\n          return isTypeAssignableToKind(nameType, 12288) ? nameType : stringType;\n        default:\n          return Debug.fail(\"Unsupported property name.\");\n      }\n    }\n    function getAugmentedPropertiesOfType(type) {\n      type = getApparentType(type);\n      const propsByName = createSymbolTable(getPropertiesOfType(type));\n      const functionType = getSignaturesOfType(type, 0).length ? globalCallableFunctionType : getSignaturesOfType(type, 1).length ? globalNewableFunctionType : void 0;\n      if (functionType) {\n        forEach(getPropertiesOfType(functionType), (p) => {\n          if (!propsByName.has(p.escapedName)) {\n            propsByName.set(p.escapedName, p);\n          }\n        });\n      }\n      return getNamedMembers(propsByName);\n    }\n    function typeHasCallOrConstructSignatures(type) {\n      return getSignaturesOfType(type, 0).length !== 0 || getSignaturesOfType(type, 1).length !== 0;\n    }\n    function getRootSymbols(symbol) {\n      const roots = getImmediateRootSymbols(symbol);\n      return roots ? flatMap(roots, getRootSymbols) : [symbol];\n    }\n    function getImmediateRootSymbols(symbol) {\n      if (getCheckFlags(symbol) & 6) {\n        return mapDefined(getSymbolLinks(symbol).containingType.types, (type) => getPropertyOfType(type, symbol.escapedName));\n      } else if (symbol.flags & 33554432) {\n        const { links: { leftSpread, rightSpread, syntheticOrigin } } = symbol;\n        return leftSpread ? [leftSpread, rightSpread] : syntheticOrigin ? [syntheticOrigin] : singleElementArray(tryGetTarget(symbol));\n      }\n      return void 0;\n    }\n    function tryGetTarget(symbol) {\n      let target;\n      let next = symbol;\n      while (next = getSymbolLinks(next).target) {\n        target = next;\n      }\n      return target;\n    }\n    function isArgumentsLocalBinding(nodeIn) {\n      if (isGeneratedIdentifier(nodeIn))\n        return false;\n      const node = getParseTreeNode(nodeIn, isIdentifier);\n      if (!node)\n        return false;\n      const parent2 = node.parent;\n      if (!parent2)\n        return false;\n      const isPropertyName2 = (isPropertyAccessExpression(parent2) || isPropertyAssignment(parent2)) && parent2.name === node;\n      return !isPropertyName2 && getReferencedValueSymbol(node) === argumentsSymbol;\n    }\n    function moduleExportsSomeValue(moduleReferenceExpression) {\n      let moduleSymbol = resolveExternalModuleName(moduleReferenceExpression.parent, moduleReferenceExpression);\n      if (!moduleSymbol || isShorthandAmbientModuleSymbol(moduleSymbol)) {\n        return true;\n      }\n      const hasExportAssignment = hasExportAssignmentSymbol(moduleSymbol);\n      moduleSymbol = resolveExternalModuleSymbol(moduleSymbol);\n      const symbolLinks2 = getSymbolLinks(moduleSymbol);\n      if (symbolLinks2.exportsSomeValue === void 0) {\n        symbolLinks2.exportsSomeValue = hasExportAssignment ? !!(moduleSymbol.flags & 111551) : forEachEntry(getExportsOfModule(moduleSymbol), isValue);\n      }\n      return symbolLinks2.exportsSomeValue;\n      function isValue(s) {\n        s = resolveSymbol(s);\n        return s && !!(getAllSymbolFlags(s) & 111551);\n      }\n    }\n    function isNameOfModuleOrEnumDeclaration(node) {\n      return isModuleOrEnumDeclaration(node.parent) && node === node.parent.name;\n    }\n    function getReferencedExportContainer(nodeIn, prefixLocals) {\n      var _a2;\n      const node = getParseTreeNode(nodeIn, isIdentifier);\n      if (node) {\n        let symbol = getReferencedValueSymbol(node, isNameOfModuleOrEnumDeclaration(node));\n        if (symbol) {\n          if (symbol.flags & 1048576) {\n            const exportSymbol = getMergedSymbol(symbol.exportSymbol);\n            if (!prefixLocals && exportSymbol.flags & 944 && !(exportSymbol.flags & 3)) {\n              return void 0;\n            }\n            symbol = exportSymbol;\n          }\n          const parentSymbol = getParentOfSymbol(symbol);\n          if (parentSymbol) {\n            if (parentSymbol.flags & 512 && ((_a2 = parentSymbol.valueDeclaration) == null ? void 0 : _a2.kind) === 308) {\n              const symbolFile = parentSymbol.valueDeclaration;\n              const referenceFile = getSourceFileOfNode(node);\n              const symbolIsUmdExport = symbolFile !== referenceFile;\n              return symbolIsUmdExport ? void 0 : symbolFile;\n            }\n            return findAncestor(node.parent, (n) => isModuleOrEnumDeclaration(n) && getSymbolOfDeclaration(n) === parentSymbol);\n          }\n        }\n      }\n    }\n    function getReferencedImportDeclaration(nodeIn) {\n      const specifier = getIdentifierGeneratedImportReference(nodeIn);\n      if (specifier) {\n        return specifier;\n      }\n      const node = getParseTreeNode(nodeIn, isIdentifier);\n      if (node) {\n        const symbol = getReferencedValueOrAliasSymbol(node);\n        if (isNonLocalAlias(symbol, 111551) && !getTypeOnlyAliasDeclaration(symbol, 111551)) {\n          return getDeclarationOfAliasSymbol(symbol);\n        }\n      }\n      return void 0;\n    }\n    function isSymbolOfDestructuredElementOfCatchBinding(symbol) {\n      return symbol.valueDeclaration && isBindingElement(symbol.valueDeclaration) && walkUpBindingElementsAndPatterns(symbol.valueDeclaration).parent.kind === 295;\n    }\n    function isSymbolOfDeclarationWithCollidingName(symbol) {\n      if (symbol.flags & 418 && symbol.valueDeclaration && !isSourceFile(symbol.valueDeclaration)) {\n        const links = getSymbolLinks(symbol);\n        if (links.isDeclarationWithCollidingName === void 0) {\n          const container = getEnclosingBlockScopeContainer(symbol.valueDeclaration);\n          if (isStatementWithLocals(container) || isSymbolOfDestructuredElementOfCatchBinding(symbol)) {\n            const nodeLinks2 = getNodeLinks(symbol.valueDeclaration);\n            if (resolveName(container.parent, symbol.escapedName, 111551, void 0, void 0, false)) {\n              links.isDeclarationWithCollidingName = true;\n            } else if (nodeLinks2.flags & 16384) {\n              const isDeclaredInLoop = nodeLinks2.flags & 32768;\n              const inLoopInitializer = isIterationStatement(container, false);\n              const inLoopBodyBlock = container.kind === 238 && isIterationStatement(container.parent, false);\n              links.isDeclarationWithCollidingName = !isBlockScopedContainerTopLevel(container) && (!isDeclaredInLoop || !inLoopInitializer && !inLoopBodyBlock);\n            } else {\n              links.isDeclarationWithCollidingName = false;\n            }\n          }\n        }\n        return links.isDeclarationWithCollidingName;\n      }\n      return false;\n    }\n    function getReferencedDeclarationWithCollidingName(nodeIn) {\n      if (!isGeneratedIdentifier(nodeIn)) {\n        const node = getParseTreeNode(nodeIn, isIdentifier);\n        if (node) {\n          const symbol = getReferencedValueSymbol(node);\n          if (symbol && isSymbolOfDeclarationWithCollidingName(symbol)) {\n            return symbol.valueDeclaration;\n          }\n        }\n      }\n      return void 0;\n    }\n    function isDeclarationWithCollidingName(nodeIn) {\n      const node = getParseTreeNode(nodeIn, isDeclaration);\n      if (node) {\n        const symbol = getSymbolOfDeclaration(node);\n        if (symbol) {\n          return isSymbolOfDeclarationWithCollidingName(symbol);\n        }\n      }\n      return false;\n    }\n    function isValueAliasDeclaration(node) {\n      Debug.assert(!compilerOptions.verbatimModuleSyntax);\n      switch (node.kind) {\n        case 268:\n          return isAliasResolvedToValue(getSymbolOfDeclaration(node));\n        case 270:\n        case 271:\n        case 273:\n        case 278:\n          const symbol = getSymbolOfDeclaration(node);\n          return !!symbol && isAliasResolvedToValue(symbol) && !getTypeOnlyAliasDeclaration(symbol, 111551);\n        case 275:\n          const exportClause = node.exportClause;\n          return !!exportClause && (isNamespaceExport(exportClause) || some(exportClause.elements, isValueAliasDeclaration));\n        case 274:\n          return node.expression && node.expression.kind === 79 ? isAliasResolvedToValue(getSymbolOfDeclaration(node)) : true;\n      }\n      return false;\n    }\n    function isTopLevelValueImportEqualsWithEntityName(nodeIn) {\n      const node = getParseTreeNode(nodeIn, isImportEqualsDeclaration);\n      if (node === void 0 || node.parent.kind !== 308 || !isInternalModuleImportEqualsDeclaration(node)) {\n        return false;\n      }\n      const isValue = isAliasResolvedToValue(getSymbolOfDeclaration(node));\n      return isValue && node.moduleReference && !nodeIsMissing(node.moduleReference);\n    }\n    function isAliasResolvedToValue(symbol) {\n      var _a2;\n      if (!symbol) {\n        return false;\n      }\n      const target = getExportSymbolOfValueSymbolIfExported(resolveAlias(symbol));\n      if (target === unknownSymbol) {\n        return true;\n      }\n      return !!(((_a2 = getAllSymbolFlags(target)) != null ? _a2 : -1) & 111551) && (shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target));\n    }\n    function isConstEnumOrConstEnumOnlyModule(s) {\n      return isConstEnumSymbol(s) || !!s.constEnumOnlyModule;\n    }\n    function isReferencedAliasDeclaration(node, checkChildren) {\n      Debug.assert(!compilerOptions.verbatimModuleSyntax);\n      if (isAliasSymbolDeclaration2(node)) {\n        const symbol = getSymbolOfDeclaration(node);\n        const links = symbol && getSymbolLinks(symbol);\n        if (links == null ? void 0 : links.referenced) {\n          return true;\n        }\n        const target = getSymbolLinks(symbol).aliasTarget;\n        if (target && getEffectiveModifierFlags(node) & 1 && getAllSymbolFlags(target) & 111551 && (shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target))) {\n          return true;\n        }\n      }\n      if (checkChildren) {\n        return !!forEachChild(node, (node2) => isReferencedAliasDeclaration(node2, checkChildren));\n      }\n      return false;\n    }\n    function isImplementationOfOverload(node) {\n      if (nodeIsPresent(node.body)) {\n        if (isGetAccessor(node) || isSetAccessor(node))\n          return false;\n        const symbol = getSymbolOfDeclaration(node);\n        const signaturesOfSymbol = getSignaturesOfSymbol(symbol);\n        return signaturesOfSymbol.length > 1 || signaturesOfSymbol.length === 1 && signaturesOfSymbol[0].declaration !== node;\n      }\n      return false;\n    }\n    function isRequiredInitializedParameter(parameter) {\n      return !!strictNullChecks && !isOptionalParameter(parameter) && !isJSDocParameterTag(parameter) && !!parameter.initializer && !hasSyntacticModifier(parameter, 16476);\n    }\n    function isOptionalUninitializedParameterProperty(parameter) {\n      return strictNullChecks && isOptionalParameter(parameter) && !parameter.initializer && hasSyntacticModifier(parameter, 16476);\n    }\n    function isExpandoFunctionDeclaration(node) {\n      const declaration = getParseTreeNode(node, isFunctionDeclaration);\n      if (!declaration) {\n        return false;\n      }\n      const symbol = getSymbolOfDeclaration(declaration);\n      if (!symbol || !(symbol.flags & 16)) {\n        return false;\n      }\n      return !!forEachEntry(getExportsOfSymbol(symbol), (p) => p.flags & 111551 && p.valueDeclaration && isPropertyAccessExpression(p.valueDeclaration));\n    }\n    function getPropertiesOfContainerFunction(node) {\n      const declaration = getParseTreeNode(node, isFunctionDeclaration);\n      if (!declaration) {\n        return emptyArray;\n      }\n      const symbol = getSymbolOfDeclaration(declaration);\n      return symbol && getPropertiesOfType(getTypeOfSymbol(symbol)) || emptyArray;\n    }\n    function getNodeCheckFlags(node) {\n      var _a2;\n      const nodeId = node.id || 0;\n      if (nodeId < 0 || nodeId >= nodeLinks.length)\n        return 0;\n      return ((_a2 = nodeLinks[nodeId]) == null ? void 0 : _a2.flags) || 0;\n    }\n    function getEnumMemberValue(node) {\n      computeEnumMemberValues(node.parent);\n      return getNodeLinks(node).enumMemberValue;\n    }\n    function canHaveConstantValue(node) {\n      switch (node.kind) {\n        case 302:\n        case 208:\n        case 209:\n          return true;\n      }\n      return false;\n    }\n    function getConstantValue2(node) {\n      if (node.kind === 302) {\n        return getEnumMemberValue(node);\n      }\n      const symbol = getNodeLinks(node).resolvedSymbol;\n      if (symbol && symbol.flags & 8) {\n        const member = symbol.valueDeclaration;\n        if (isEnumConst(member.parent)) {\n          return getEnumMemberValue(member);\n        }\n      }\n      return void 0;\n    }\n    function isFunctionType(type) {\n      return !!(type.flags & 524288) && getSignaturesOfType(type, 0).length > 0;\n    }\n    function getTypeReferenceSerializationKind(typeNameIn, location) {\n      var _a2;\n      const typeName = getParseTreeNode(typeNameIn, isEntityName);\n      if (!typeName)\n        return 0;\n      if (location) {\n        location = getParseTreeNode(location);\n        if (!location)\n          return 0;\n      }\n      let isTypeOnly = false;\n      if (isQualifiedName(typeName)) {\n        const rootValueSymbol = resolveEntityName(getFirstIdentifier(typeName), 111551, true, true, location);\n        isTypeOnly = !!((_a2 = rootValueSymbol == null ? void 0 : rootValueSymbol.declarations) == null ? void 0 : _a2.every(isTypeOnlyImportOrExportDeclaration));\n      }\n      const valueSymbol = resolveEntityName(typeName, 111551, true, true, location);\n      const resolvedSymbol = valueSymbol && valueSymbol.flags & 2097152 ? resolveAlias(valueSymbol) : valueSymbol;\n      isTypeOnly || (isTypeOnly = !!(valueSymbol && getTypeOnlyAliasDeclaration(valueSymbol, 111551)));\n      const typeSymbol = resolveEntityName(typeName, 788968, true, false, location);\n      if (resolvedSymbol && resolvedSymbol === typeSymbol) {\n        const globalPromiseSymbol = getGlobalPromiseConstructorSymbol(false);\n        if (globalPromiseSymbol && resolvedSymbol === globalPromiseSymbol) {\n          return 9;\n        }\n        const constructorType = getTypeOfSymbol(resolvedSymbol);\n        if (constructorType && isConstructorType(constructorType)) {\n          return isTypeOnly ? 10 : 1;\n        }\n      }\n      if (!typeSymbol) {\n        return isTypeOnly ? 11 : 0;\n      }\n      const type = getDeclaredTypeOfSymbol(typeSymbol);\n      if (isErrorType(type)) {\n        return isTypeOnly ? 11 : 0;\n      } else if (type.flags & 3) {\n        return 11;\n      } else if (isTypeAssignableToKind(type, 16384 | 98304 | 131072)) {\n        return 2;\n      } else if (isTypeAssignableToKind(type, 528)) {\n        return 6;\n      } else if (isTypeAssignableToKind(type, 296)) {\n        return 3;\n      } else if (isTypeAssignableToKind(type, 2112)) {\n        return 4;\n      } else if (isTypeAssignableToKind(type, 402653316)) {\n        return 5;\n      } else if (isTupleType(type)) {\n        return 7;\n      } else if (isTypeAssignableToKind(type, 12288)) {\n        return 8;\n      } else if (isFunctionType(type)) {\n        return 10;\n      } else if (isArrayType(type)) {\n        return 7;\n      } else {\n        return 11;\n      }\n    }\n    function createTypeOfDeclaration(declarationIn, enclosingDeclaration, flags, tracker, addUndefined) {\n      const declaration = getParseTreeNode(declarationIn, isVariableLikeOrAccessor);\n      if (!declaration) {\n        return factory.createToken(131);\n      }\n      const symbol = getSymbolOfDeclaration(declaration);\n      let type = symbol && !(symbol.flags & (2048 | 131072)) ? getWidenedLiteralType(getTypeOfSymbol(symbol)) : errorType;\n      if (type.flags & 8192 && type.symbol === symbol) {\n        flags |= 1048576;\n      }\n      if (addUndefined) {\n        type = getOptionalType(type);\n      }\n      return nodeBuilder.typeToTypeNode(type, enclosingDeclaration, flags | 1024, tracker);\n    }\n    function createReturnTypeOfSignatureDeclaration(signatureDeclarationIn, enclosingDeclaration, flags, tracker) {\n      const signatureDeclaration = getParseTreeNode(signatureDeclarationIn, isFunctionLike);\n      if (!signatureDeclaration) {\n        return factory.createToken(131);\n      }\n      const signature = getSignatureFromDeclaration(signatureDeclaration);\n      return nodeBuilder.typeToTypeNode(getReturnTypeOfSignature(signature), enclosingDeclaration, flags | 1024, tracker);\n    }\n    function createTypeOfExpression(exprIn, enclosingDeclaration, flags, tracker) {\n      const expr = getParseTreeNode(exprIn, isExpression);\n      if (!expr) {\n        return factory.createToken(131);\n      }\n      const type = getWidenedType(getRegularTypeOfExpression(expr));\n      return nodeBuilder.typeToTypeNode(type, enclosingDeclaration, flags | 1024, tracker);\n    }\n    function hasGlobalName(name) {\n      return globals.has(escapeLeadingUnderscores(name));\n    }\n    function getReferencedValueSymbol(reference, startInDeclarationContainer) {\n      const resolvedSymbol = getNodeLinks(reference).resolvedSymbol;\n      if (resolvedSymbol) {\n        return resolvedSymbol;\n      }\n      let location = reference;\n      if (startInDeclarationContainer) {\n        const parent2 = reference.parent;\n        if (isDeclaration(parent2) && reference === parent2.name) {\n          location = getDeclarationContainer(parent2);\n        }\n      }\n      return resolveName(location, reference.escapedText, 111551 | 1048576 | 2097152, void 0, void 0, true);\n    }\n    function getReferencedValueOrAliasSymbol(reference) {\n      const resolvedSymbol = getNodeLinks(reference).resolvedSymbol;\n      if (resolvedSymbol && resolvedSymbol !== unknownSymbol) {\n        return resolvedSymbol;\n      }\n      return resolveName(reference, reference.escapedText, 111551 | 1048576 | 2097152, void 0, void 0, true, void 0, void 0);\n    }\n    function getReferencedValueDeclaration(referenceIn) {\n      if (!isGeneratedIdentifier(referenceIn)) {\n        const reference = getParseTreeNode(referenceIn, isIdentifier);\n        if (reference) {\n          const symbol = getReferencedValueSymbol(reference);\n          if (symbol) {\n            return getExportSymbolOfValueSymbolIfExported(symbol).valueDeclaration;\n          }\n        }\n      }\n      return void 0;\n    }\n    function isLiteralConstDeclaration(node) {\n      if (isDeclarationReadonly(node) || isVariableDeclaration(node) && isVarConst(node)) {\n        return isFreshLiteralType(getTypeOfSymbol(getSymbolOfDeclaration(node)));\n      }\n      return false;\n    }\n    function literalTypeToNode(type, enclosing, tracker) {\n      const enumResult = type.flags & 1056 ? nodeBuilder.symbolToExpression(type.symbol, 111551, enclosing, void 0, tracker) : type === trueType ? factory.createTrue() : type === falseType && factory.createFalse();\n      if (enumResult)\n        return enumResult;\n      const literalValue = type.value;\n      return typeof literalValue === \"object\" ? factory.createBigIntLiteral(literalValue) : typeof literalValue === \"number\" ? factory.createNumericLiteral(literalValue) : factory.createStringLiteral(literalValue);\n    }\n    function createLiteralConstValue(node, tracker) {\n      const type = getTypeOfSymbol(getSymbolOfDeclaration(node));\n      return literalTypeToNode(type, node, tracker);\n    }\n    function getJsxFactoryEntity(location) {\n      return location ? (getJsxNamespace(location), getSourceFileOfNode(location).localJsxFactory || _jsxFactoryEntity) : _jsxFactoryEntity;\n    }\n    function getJsxFragmentFactoryEntity(location) {\n      if (location) {\n        const file = getSourceFileOfNode(location);\n        if (file) {\n          if (file.localJsxFragmentFactory) {\n            return file.localJsxFragmentFactory;\n          }\n          const jsxFragPragmas = file.pragmas.get(\"jsxfrag\");\n          const jsxFragPragma = isArray(jsxFragPragmas) ? jsxFragPragmas[0] : jsxFragPragmas;\n          if (jsxFragPragma) {\n            file.localJsxFragmentFactory = parseIsolatedEntityName(jsxFragPragma.arguments.factory, languageVersion);\n            return file.localJsxFragmentFactory;\n          }\n        }\n      }\n      if (compilerOptions.jsxFragmentFactory) {\n        return parseIsolatedEntityName(compilerOptions.jsxFragmentFactory, languageVersion);\n      }\n    }\n    function createResolver() {\n      const resolvedTypeReferenceDirectives = host.getResolvedTypeReferenceDirectives();\n      let fileToDirective;\n      if (resolvedTypeReferenceDirectives) {\n        fileToDirective = /* @__PURE__ */ new Map();\n        resolvedTypeReferenceDirectives.forEach(({ resolvedTypeReferenceDirective }, key, mode) => {\n          if (!(resolvedTypeReferenceDirective == null ? void 0 : resolvedTypeReferenceDirective.resolvedFileName)) {\n            return;\n          }\n          const file = host.getSourceFile(resolvedTypeReferenceDirective.resolvedFileName);\n          if (file) {\n            addReferencedFilesToTypeDirective(file, key, mode);\n          }\n        });\n      }\n      return {\n        getReferencedExportContainer,\n        getReferencedImportDeclaration,\n        getReferencedDeclarationWithCollidingName,\n        isDeclarationWithCollidingName,\n        isValueAliasDeclaration: (nodeIn) => {\n          const node = getParseTreeNode(nodeIn);\n          return node ? isValueAliasDeclaration(node) : true;\n        },\n        hasGlobalName,\n        isReferencedAliasDeclaration: (nodeIn, checkChildren) => {\n          const node = getParseTreeNode(nodeIn);\n          return node ? isReferencedAliasDeclaration(node, checkChildren) : true;\n        },\n        getNodeCheckFlags: (nodeIn) => {\n          const node = getParseTreeNode(nodeIn);\n          return node ? getNodeCheckFlags(node) : 0;\n        },\n        isTopLevelValueImportEqualsWithEntityName,\n        isDeclarationVisible,\n        isImplementationOfOverload,\n        isRequiredInitializedParameter,\n        isOptionalUninitializedParameterProperty,\n        isExpandoFunctionDeclaration,\n        getPropertiesOfContainerFunction,\n        createTypeOfDeclaration,\n        createReturnTypeOfSignatureDeclaration,\n        createTypeOfExpression,\n        createLiteralConstValue,\n        isSymbolAccessible,\n        isEntityNameVisible,\n        getConstantValue: (nodeIn) => {\n          const node = getParseTreeNode(nodeIn, canHaveConstantValue);\n          return node ? getConstantValue2(node) : void 0;\n        },\n        collectLinkedAliases,\n        getReferencedValueDeclaration,\n        getTypeReferenceSerializationKind,\n        isOptionalParameter,\n        moduleExportsSomeValue,\n        isArgumentsLocalBinding,\n        getExternalModuleFileFromDeclaration: (nodeIn) => {\n          const node = getParseTreeNode(nodeIn, hasPossibleExternalModuleReference);\n          return node && getExternalModuleFileFromDeclaration(node);\n        },\n        getTypeReferenceDirectivesForEntityName,\n        getTypeReferenceDirectivesForSymbol,\n        isLiteralConstDeclaration,\n        isLateBound: (nodeIn) => {\n          const node = getParseTreeNode(nodeIn, isDeclaration);\n          const symbol = node && getSymbolOfDeclaration(node);\n          return !!(symbol && getCheckFlags(symbol) & 4096);\n        },\n        getJsxFactoryEntity,\n        getJsxFragmentFactoryEntity,\n        getAllAccessorDeclarations(accessor) {\n          accessor = getParseTreeNode(accessor, isGetOrSetAccessorDeclaration);\n          const otherKind = accessor.kind === 175 ? 174 : 175;\n          const otherAccessor = getDeclarationOfKind(getSymbolOfDeclaration(accessor), otherKind);\n          const firstAccessor = otherAccessor && otherAccessor.pos < accessor.pos ? otherAccessor : accessor;\n          const secondAccessor = otherAccessor && otherAccessor.pos < accessor.pos ? accessor : otherAccessor;\n          const setAccessor = accessor.kind === 175 ? accessor : otherAccessor;\n          const getAccessor = accessor.kind === 174 ? accessor : otherAccessor;\n          return {\n            firstAccessor,\n            secondAccessor,\n            setAccessor,\n            getAccessor\n          };\n        },\n        getSymbolOfExternalModuleSpecifier: (moduleName) => resolveExternalModuleNameWorker(moduleName, moduleName, void 0),\n        isBindingCapturedByNode: (node, decl) => {\n          const parseNode = getParseTreeNode(node);\n          const parseDecl = getParseTreeNode(decl);\n          return !!parseNode && !!parseDecl && (isVariableDeclaration(parseDecl) || isBindingElement(parseDecl)) && isBindingCapturedByNode(parseNode, parseDecl);\n        },\n        getDeclarationStatementsForSourceFile: (node, flags, tracker, bundled) => {\n          const n = getParseTreeNode(node);\n          Debug.assert(n && n.kind === 308, \"Non-sourcefile node passed into getDeclarationsForSourceFile\");\n          const sym = getSymbolOfDeclaration(node);\n          if (!sym) {\n            return !node.locals ? [] : nodeBuilder.symbolTableToDeclarationStatements(node.locals, node, flags, tracker, bundled);\n          }\n          return !sym.exports ? [] : nodeBuilder.symbolTableToDeclarationStatements(sym.exports, node, flags, tracker, bundled);\n        },\n        isImportRequiredByAugmentation\n      };\n      function isImportRequiredByAugmentation(node) {\n        const file = getSourceFileOfNode(node);\n        if (!file.symbol)\n          return false;\n        const importTarget = getExternalModuleFileFromDeclaration(node);\n        if (!importTarget)\n          return false;\n        if (importTarget === file)\n          return false;\n        const exports = getExportsOfModule(file.symbol);\n        for (const s of arrayFrom(exports.values())) {\n          if (s.mergeId) {\n            const merged = getMergedSymbol(s);\n            if (merged.declarations) {\n              for (const d of merged.declarations) {\n                const declFile = getSourceFileOfNode(d);\n                if (declFile === importTarget) {\n                  return true;\n                }\n              }\n            }\n          }\n        }\n        return false;\n      }\n      function isInHeritageClause(node) {\n        return node.parent && node.parent.kind === 230 && node.parent.parent && node.parent.parent.kind === 294;\n      }\n      function getTypeReferenceDirectivesForEntityName(node) {\n        if (!fileToDirective) {\n          return void 0;\n        }\n        let meaning;\n        if (node.parent.kind === 164) {\n          meaning = 111551 | 1048576;\n        } else {\n          meaning = 788968 | 1920;\n          if (node.kind === 79 && isInTypeQuery(node) || node.kind === 208 && !isInHeritageClause(node)) {\n            meaning = 111551 | 1048576;\n          }\n        }\n        const symbol = resolveEntityName(node, meaning, true);\n        return symbol && symbol !== unknownSymbol ? getTypeReferenceDirectivesForSymbol(symbol, meaning) : void 0;\n      }\n      function getTypeReferenceDirectivesForSymbol(symbol, meaning) {\n        if (!fileToDirective || !isSymbolFromTypeDeclarationFile(symbol)) {\n          return void 0;\n        }\n        let typeReferenceDirectives;\n        for (const decl of symbol.declarations) {\n          if (decl.symbol && decl.symbol.flags & meaning) {\n            const file = getSourceFileOfNode(decl);\n            const typeReferenceDirective = fileToDirective.get(file.path);\n            if (typeReferenceDirective) {\n              (typeReferenceDirectives || (typeReferenceDirectives = [])).push(typeReferenceDirective);\n            } else {\n              return void 0;\n            }\n          }\n        }\n        return typeReferenceDirectives;\n      }\n      function isSymbolFromTypeDeclarationFile(symbol) {\n        if (!symbol.declarations) {\n          return false;\n        }\n        let current = symbol;\n        while (true) {\n          const parent2 = getParentOfSymbol(current);\n          if (parent2) {\n            current = parent2;\n          } else {\n            break;\n          }\n        }\n        if (current.valueDeclaration && current.valueDeclaration.kind === 308 && current.flags & 512) {\n          return false;\n        }\n        for (const decl of symbol.declarations) {\n          const file = getSourceFileOfNode(decl);\n          if (fileToDirective.has(file.path)) {\n            return true;\n          }\n        }\n        return false;\n      }\n      function addReferencedFilesToTypeDirective(file, key, mode) {\n        if (fileToDirective.has(file.path))\n          return;\n        fileToDirective.set(file.path, [key, mode]);\n        for (const { fileName, resolutionMode } of file.referencedFiles) {\n          const resolvedFile = resolveTripleslashReference(fileName, file.fileName);\n          const referencedFile = host.getSourceFile(resolvedFile);\n          if (referencedFile) {\n            addReferencedFilesToTypeDirective(referencedFile, key, resolutionMode || file.impliedNodeFormat);\n          }\n        }\n      }\n    }\n    function getExternalModuleFileFromDeclaration(declaration) {\n      const specifier = declaration.kind === 264 ? tryCast(declaration.name, isStringLiteral) : getExternalModuleName(declaration);\n      const moduleSymbol = resolveExternalModuleNameWorker(specifier, specifier, void 0);\n      if (!moduleSymbol) {\n        return void 0;\n      }\n      return getDeclarationOfKind(moduleSymbol, 308);\n    }\n    function initializeTypeChecker() {\n      for (const file of host.getSourceFiles()) {\n        bindSourceFile(file, compilerOptions);\n      }\n      amalgamatedDuplicates = /* @__PURE__ */ new Map();\n      let augmentations;\n      for (const file of host.getSourceFiles()) {\n        if (file.redirectInfo) {\n          continue;\n        }\n        if (!isExternalOrCommonJsModule(file)) {\n          const fileGlobalThisSymbol = file.locals.get(\"globalThis\");\n          if (fileGlobalThisSymbol == null ? void 0 : fileGlobalThisSymbol.declarations) {\n            for (const declaration of fileGlobalThisSymbol.declarations) {\n              diagnostics.add(createDiagnosticForNode(declaration, Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0, \"globalThis\"));\n            }\n          }\n          mergeSymbolTable(globals, file.locals);\n        }\n        if (file.jsGlobalAugmentations) {\n          mergeSymbolTable(globals, file.jsGlobalAugmentations);\n        }\n        if (file.patternAmbientModules && file.patternAmbientModules.length) {\n          patternAmbientModules = concatenate(patternAmbientModules, file.patternAmbientModules);\n        }\n        if (file.moduleAugmentations.length) {\n          (augmentations || (augmentations = [])).push(file.moduleAugmentations);\n        }\n        if (file.symbol && file.symbol.globalExports) {\n          const source = file.symbol.globalExports;\n          source.forEach((sourceSymbol, id) => {\n            if (!globals.has(id)) {\n              globals.set(id, sourceSymbol);\n            }\n          });\n        }\n      }\n      if (augmentations) {\n        for (const list of augmentations) {\n          for (const augmentation of list) {\n            if (!isGlobalScopeAugmentation(augmentation.parent))\n              continue;\n            mergeModuleAugmentation(augmentation);\n          }\n        }\n      }\n      addToSymbolTable(globals, builtinGlobals, Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0);\n      getSymbolLinks(undefinedSymbol).type = undefinedWideningType;\n      getSymbolLinks(argumentsSymbol).type = getGlobalType(\"IArguments\", 0, true);\n      getSymbolLinks(unknownSymbol).type = errorType;\n      getSymbolLinks(globalThisSymbol).type = createObjectType(16, globalThisSymbol);\n      globalArrayType = getGlobalType(\"Array\", 1, true);\n      globalObjectType = getGlobalType(\"Object\", 0, true);\n      globalFunctionType = getGlobalType(\"Function\", 0, true);\n      globalCallableFunctionType = strictBindCallApply && getGlobalType(\"CallableFunction\", 0, true) || globalFunctionType;\n      globalNewableFunctionType = strictBindCallApply && getGlobalType(\"NewableFunction\", 0, true) || globalFunctionType;\n      globalStringType = getGlobalType(\"String\", 0, true);\n      globalNumberType = getGlobalType(\"Number\", 0, true);\n      globalBooleanType = getGlobalType(\"Boolean\", 0, true);\n      globalRegExpType = getGlobalType(\"RegExp\", 0, true);\n      anyArrayType = createArrayType(anyType);\n      autoArrayType = createArrayType(autoType);\n      if (autoArrayType === emptyObjectType) {\n        autoArrayType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);\n      }\n      globalReadonlyArrayType = getGlobalTypeOrUndefined(\"ReadonlyArray\", 1) || globalArrayType;\n      anyReadonlyArrayType = globalReadonlyArrayType ? createTypeFromGenericGlobalType(globalReadonlyArrayType, [anyType]) : anyArrayType;\n      globalThisType = getGlobalTypeOrUndefined(\"ThisType\", 1);\n      if (augmentations) {\n        for (const list of augmentations) {\n          for (const augmentation of list) {\n            if (isGlobalScopeAugmentation(augmentation.parent))\n              continue;\n            mergeModuleAugmentation(augmentation);\n          }\n        }\n      }\n      amalgamatedDuplicates.forEach(({ firstFile, secondFile, conflictingSymbols }) => {\n        if (conflictingSymbols.size < 8) {\n          conflictingSymbols.forEach(({ isBlockScoped, firstFileLocations, secondFileLocations }, symbolName2) => {\n            const message = isBlockScoped ? Diagnostics.Cannot_redeclare_block_scoped_variable_0 : Diagnostics.Duplicate_identifier_0;\n            for (const node of firstFileLocations) {\n              addDuplicateDeclarationError(node, message, symbolName2, secondFileLocations);\n            }\n            for (const node of secondFileLocations) {\n              addDuplicateDeclarationError(node, message, symbolName2, firstFileLocations);\n            }\n          });\n        } else {\n          const list = arrayFrom(conflictingSymbols.keys()).join(\", \");\n          diagnostics.add(addRelatedInfo(createDiagnosticForNode(firstFile, Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0, list), createDiagnosticForNode(secondFile, Diagnostics.Conflicts_are_in_this_file)));\n          diagnostics.add(addRelatedInfo(createDiagnosticForNode(secondFile, Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0, list), createDiagnosticForNode(firstFile, Diagnostics.Conflicts_are_in_this_file)));\n        }\n      });\n      amalgamatedDuplicates = void 0;\n    }\n    function checkExternalEmitHelpers(location, helpers) {\n      if ((requestedExternalEmitHelpers & helpers) !== helpers && compilerOptions.importHelpers) {\n        const sourceFile = getSourceFileOfNode(location);\n        if (isEffectiveExternalModule(sourceFile, compilerOptions) && !(location.flags & 16777216)) {\n          const helpersModule = resolveHelpersModule(sourceFile, location);\n          if (helpersModule !== unknownSymbol) {\n            const uncheckedHelpers = helpers & ~requestedExternalEmitHelpers;\n            for (let helper = 1; helper <= 16777216; helper <<= 1) {\n              if (uncheckedHelpers & helper) {\n                for (const name of getHelperNames(helper)) {\n                  if (requestedExternalEmitHelperNames.has(name))\n                    continue;\n                  requestedExternalEmitHelperNames.add(name);\n                  const symbol = getSymbol2(helpersModule.exports, escapeLeadingUnderscores(name), 111551);\n                  if (!symbol) {\n                    error(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name);\n                  } else if (helper & 524288) {\n                    if (!some(getSignaturesOfSymbol(symbol), (signature) => getParameterCount(signature) > 3)) {\n                      error(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name, 4);\n                    }\n                  } else if (helper & 1048576) {\n                    if (!some(getSignaturesOfSymbol(symbol), (signature) => getParameterCount(signature) > 4)) {\n                      error(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name, 5);\n                    }\n                  } else if (helper & 1024) {\n                    if (!some(getSignaturesOfSymbol(symbol), (signature) => getParameterCount(signature) > 2)) {\n                      error(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name, 3);\n                    }\n                  }\n                }\n              }\n            }\n          }\n          requestedExternalEmitHelpers |= helpers;\n        }\n      }\n    }\n    function getHelperNames(helper) {\n      switch (helper) {\n        case 1:\n          return [\"__extends\"];\n        case 2:\n          return [\"__assign\"];\n        case 4:\n          return [\"__rest\"];\n        case 8:\n          return legacyDecorators ? [\"__decorate\"] : [\"__esDecorate\", \"__runInitializers\"];\n        case 16:\n          return [\"__metadata\"];\n        case 32:\n          return [\"__param\"];\n        case 64:\n          return [\"__awaiter\"];\n        case 128:\n          return [\"__generator\"];\n        case 256:\n          return [\"__values\"];\n        case 512:\n          return [\"__read\"];\n        case 1024:\n          return [\"__spreadArray\"];\n        case 2048:\n          return [\"__await\"];\n        case 4096:\n          return [\"__asyncGenerator\"];\n        case 8192:\n          return [\"__asyncDelegator\"];\n        case 16384:\n          return [\"__asyncValues\"];\n        case 32768:\n          return [\"__exportStar\"];\n        case 65536:\n          return [\"__importStar\"];\n        case 131072:\n          return [\"__importDefault\"];\n        case 262144:\n          return [\"__makeTemplateObject\"];\n        case 524288:\n          return [\"__classPrivateFieldGet\"];\n        case 1048576:\n          return [\"__classPrivateFieldSet\"];\n        case 2097152:\n          return [\"__classPrivateFieldIn\"];\n        case 4194304:\n          return [\"__createBinding\"];\n        case 8388608:\n          return [\"__setFunctionName\"];\n        case 16777216:\n          return [\"__propKey\"];\n        default:\n          return Debug.fail(\"Unrecognized helper\");\n      }\n    }\n    function resolveHelpersModule(node, errorNode) {\n      if (!externalHelpersModule) {\n        externalHelpersModule = resolveExternalModule(node, externalHelpersModuleNameText, Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found, errorNode) || unknownSymbol;\n      }\n      return externalHelpersModule;\n    }\n    function checkGrammarModifiers(node) {\n      const quickResult = reportObviousDecoratorErrors(node) || reportObviousModifierErrors(node);\n      if (quickResult !== void 0) {\n        return quickResult;\n      }\n      if (isParameter(node) && parameterIsThisKeyword(node)) {\n        return grammarErrorOnFirstToken(node, Diagnostics.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);\n      }\n      let lastStatic, lastDeclare, lastAsync, lastOverride, firstDecorator;\n      let flags = 0;\n      let sawExportBeforeDecorators = false;\n      let hasLeadingDecorators = false;\n      for (const modifier of node.modifiers) {\n        if (isDecorator(modifier)) {\n          if (!nodeCanBeDecorated(legacyDecorators, node, node.parent, node.parent.parent)) {\n            if (node.kind === 171 && !nodeIsPresent(node.body)) {\n              return grammarErrorOnFirstToken(node, Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);\n            } else {\n              return grammarErrorOnFirstToken(node, Diagnostics.Decorators_are_not_valid_here);\n            }\n          } else if (legacyDecorators && (node.kind === 174 || node.kind === 175)) {\n            const accessors = getAllAccessorDeclarations(node.parent.members, node);\n            if (hasDecorators(accessors.firstAccessor) && node === accessors.secondAccessor) {\n              return grammarErrorOnFirstToken(node, Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name);\n            }\n          }\n          if (flags & ~(1025 | 131072)) {\n            return grammarErrorOnNode(modifier, Diagnostics.Decorators_are_not_valid_here);\n          }\n          if (hasLeadingDecorators && flags & 126975) {\n            Debug.assertIsDefined(firstDecorator);\n            const sourceFile = getSourceFileOfNode(modifier);\n            if (!hasParseDiagnostics(sourceFile)) {\n              addRelatedInfo(error(modifier, Diagnostics.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export), createDiagnosticForNode(firstDecorator, Diagnostics.Decorator_used_before_export_here));\n              return true;\n            }\n            return false;\n          }\n          flags |= 131072;\n          if (!(flags & 126975)) {\n            hasLeadingDecorators = true;\n          } else if (flags & 1) {\n            sawExportBeforeDecorators = true;\n          }\n          firstDecorator != null ? firstDecorator : firstDecorator = modifier;\n        } else {\n          if (modifier.kind !== 146) {\n            if (node.kind === 168 || node.kind === 170) {\n              return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_type_member, tokenToString(modifier.kind));\n            }\n            if (node.kind === 178 && (modifier.kind !== 124 || !isClassLike(node.parent))) {\n              return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_an_index_signature, tokenToString(modifier.kind));\n            }\n          }\n          if (modifier.kind !== 101 && modifier.kind !== 145 && modifier.kind !== 85) {\n            if (node.kind === 165) {\n              return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_type_parameter, tokenToString(modifier.kind));\n            }\n          }\n          switch (modifier.kind) {\n            case 85:\n              if (node.kind !== 263 && node.kind !== 165) {\n                return grammarErrorOnNode(node, Diagnostics.A_class_member_cannot_have_the_0_keyword, tokenToString(85));\n              }\n              const parent2 = node.parent;\n              if (node.kind === 165 && !(isFunctionLikeDeclaration(parent2) || isClassLike(parent2) || isFunctionTypeNode(parent2) || isConstructorTypeNode(parent2) || isCallSignatureDeclaration(parent2) || isConstructSignatureDeclaration(parent2) || isMethodSignature(parent2))) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class, tokenToString(modifier.kind));\n              }\n              break;\n            case 161:\n              if (flags & 16384) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, \"override\");\n              } else if (flags & 2) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, \"override\", \"declare\");\n              } else if (flags & 64) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, \"override\", \"readonly\");\n              } else if (flags & 128) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, \"override\", \"accessor\");\n              } else if (flags & 512) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, \"override\", \"async\");\n              }\n              flags |= 16384;\n              lastOverride = modifier;\n              break;\n            case 123:\n            case 122:\n            case 121:\n              const text = visibilityToString(modifierToFlag(modifier.kind));\n              if (flags & 28) {\n                return grammarErrorOnNode(modifier, Diagnostics.Accessibility_modifier_already_seen);\n              } else if (flags & 16384) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, text, \"override\");\n              } else if (flags & 32) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, text, \"static\");\n              } else if (flags & 128) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, text, \"accessor\");\n              } else if (flags & 64) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, text, \"readonly\");\n              } else if (flags & 512) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, text, \"async\");\n              } else if (node.parent.kind === 265 || node.parent.kind === 308) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element, text);\n              } else if (flags & 256) {\n                if (modifier.kind === 121) {\n                  return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, text, \"abstract\");\n                } else {\n                  return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, text, \"abstract\");\n                }\n              } else if (isPrivateIdentifierClassElementDeclaration(node)) {\n                return grammarErrorOnNode(modifier, Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);\n              }\n              flags |= modifierToFlag(modifier.kind);\n              break;\n            case 124:\n              if (flags & 32) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, \"static\");\n              } else if (flags & 64) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, \"static\", \"readonly\");\n              } else if (flags & 512) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, \"static\", \"async\");\n              } else if (flags & 128) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, \"static\", \"accessor\");\n              } else if (node.parent.kind === 265 || node.parent.kind === 308) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element, \"static\");\n              } else if (node.kind === 166) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, \"static\");\n              } else if (flags & 256) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, \"static\", \"abstract\");\n              } else if (flags & 16384) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, \"static\", \"override\");\n              }\n              flags |= 32;\n              lastStatic = modifier;\n              break;\n            case 127:\n              if (flags & 128) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, \"accessor\");\n              } else if (flags & 64) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, \"accessor\", \"readonly\");\n              } else if (flags & 2) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, \"accessor\", \"declare\");\n              } else if (node.kind !== 169) {\n                return grammarErrorOnNode(modifier, Diagnostics.accessor_modifier_can_only_appear_on_a_property_declaration);\n              }\n              flags |= 128;\n              break;\n            case 146:\n              if (flags & 64) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, \"readonly\");\n              } else if (node.kind !== 169 && node.kind !== 168 && node.kind !== 178 && node.kind !== 166) {\n                return grammarErrorOnNode(modifier, Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);\n              } else if (flags & 128) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, \"readonly\", \"accessor\");\n              }\n              flags |= 64;\n              break;\n            case 93:\n              if (compilerOptions.verbatimModuleSyntax && !(node.flags & 16777216) && node.kind !== 262 && node.kind !== 261 && node.kind !== 264 && node.parent.kind === 308 && (moduleKind === 1 || getSourceFileOfNode(node).impliedNodeFormat === 1)) {\n                return grammarErrorOnNode(modifier, Diagnostics.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);\n              }\n              if (flags & 1) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, \"export\");\n              } else if (flags & 2) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, \"export\", \"declare\");\n              } else if (flags & 256) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, \"export\", \"abstract\");\n              } else if (flags & 512) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, \"export\", \"async\");\n              } else if (isClassLike(node.parent)) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind, \"export\");\n              } else if (node.kind === 166) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, \"export\");\n              }\n              flags |= 1;\n              break;\n            case 88:\n              const container = node.parent.kind === 308 ? node.parent : node.parent.parent;\n              if (container.kind === 264 && !isAmbientModule(container)) {\n                return grammarErrorOnNode(modifier, Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);\n              } else if (!(flags & 1)) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, \"export\", \"default\");\n              } else if (sawExportBeforeDecorators) {\n                return grammarErrorOnNode(firstDecorator, Diagnostics.Decorators_are_not_valid_here);\n              }\n              flags |= 1024;\n              break;\n            case 136:\n              if (flags & 2) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, \"declare\");\n              } else if (flags & 512) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context, \"async\");\n              } else if (flags & 16384) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context, \"override\");\n              } else if (isClassLike(node.parent) && !isPropertyDeclaration(node)) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind, \"declare\");\n              } else if (node.kind === 166) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, \"declare\");\n              } else if (node.parent.flags & 16777216 && node.parent.kind === 265) {\n                return grammarErrorOnNode(modifier, Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);\n              } else if (isPrivateIdentifierClassElementDeclaration(node)) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier, \"declare\");\n              } else if (flags & 128) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, \"declare\", \"accessor\");\n              }\n              flags |= 2;\n              lastDeclare = modifier;\n              break;\n            case 126:\n              if (flags & 256) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, \"abstract\");\n              }\n              if (node.kind !== 260 && node.kind !== 182) {\n                if (node.kind !== 171 && node.kind !== 169 && node.kind !== 174 && node.kind !== 175) {\n                  return grammarErrorOnNode(modifier, Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);\n                }\n                if (!(node.parent.kind === 260 && hasSyntacticModifier(node.parent, 256))) {\n                  return grammarErrorOnNode(modifier, Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);\n                }\n                if (flags & 32) {\n                  return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, \"static\", \"abstract\");\n                }\n                if (flags & 8) {\n                  return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, \"private\", \"abstract\");\n                }\n                if (flags & 512 && lastAsync) {\n                  return grammarErrorOnNode(lastAsync, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, \"async\", \"abstract\");\n                }\n                if (flags & 16384) {\n                  return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, \"abstract\", \"override\");\n                }\n                if (flags & 128) {\n                  return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, \"abstract\", \"accessor\");\n                }\n              }\n              if (isNamedDeclaration(node) && node.name.kind === 80) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier, \"abstract\");\n              }\n              flags |= 256;\n              break;\n            case 132:\n              if (flags & 512) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, \"async\");\n              } else if (flags & 2 || node.parent.flags & 16777216) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context, \"async\");\n              } else if (node.kind === 166) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, \"async\");\n              }\n              if (flags & 256) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, \"async\", \"abstract\");\n              }\n              flags |= 512;\n              lastAsync = modifier;\n              break;\n            case 101:\n            case 145:\n              const inOutFlag = modifier.kind === 101 ? 32768 : 65536;\n              const inOutText = modifier.kind === 101 ? \"in\" : \"out\";\n              if (node.kind !== 165 || !(isInterfaceDeclaration(node.parent) || isClassLike(node.parent) || isTypeAliasDeclaration(node.parent))) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias, inOutText);\n              }\n              if (flags & inOutFlag) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, inOutText);\n              }\n              if (inOutFlag & 32768 && flags & 65536) {\n                return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, \"in\", \"out\");\n              }\n              flags |= inOutFlag;\n              break;\n          }\n        }\n      }\n      if (node.kind === 173) {\n        if (flags & 32) {\n          return grammarErrorOnNode(lastStatic, Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, \"static\");\n        }\n        if (flags & 16384) {\n          return grammarErrorOnNode(lastOverride, Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, \"override\");\n        }\n        if (flags & 512) {\n          return grammarErrorOnNode(lastAsync, Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, \"async\");\n        }\n        return false;\n      } else if ((node.kind === 269 || node.kind === 268) && flags & 2) {\n        return grammarErrorOnNode(lastDeclare, Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration, \"declare\");\n      } else if (node.kind === 166 && flags & 16476 && isBindingPattern(node.name)) {\n        return grammarErrorOnNode(node, Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern);\n      } else if (node.kind === 166 && flags & 16476 && node.dotDotDotToken) {\n        return grammarErrorOnNode(node, Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter);\n      }\n      if (flags & 512) {\n        return checkGrammarAsyncModifier(node, lastAsync);\n      }\n      return false;\n    }\n    function reportObviousModifierErrors(node) {\n      if (!node.modifiers)\n        return false;\n      const modifier = findFirstIllegalModifier(node);\n      return modifier && grammarErrorOnFirstToken(modifier, Diagnostics.Modifiers_cannot_appear_here);\n    }\n    function findFirstModifierExcept(node, allowedModifier) {\n      const modifier = find(node.modifiers, isModifier);\n      return modifier && modifier.kind !== allowedModifier ? modifier : void 0;\n    }\n    function findFirstIllegalModifier(node) {\n      switch (node.kind) {\n        case 174:\n        case 175:\n        case 173:\n        case 169:\n        case 168:\n        case 171:\n        case 170:\n        case 178:\n        case 264:\n        case 269:\n        case 268:\n        case 275:\n        case 274:\n        case 215:\n        case 216:\n        case 166:\n        case 165:\n          return void 0;\n        case 172:\n        case 299:\n        case 300:\n        case 267:\n        case 279:\n          return find(node.modifiers, isModifier);\n        default:\n          if (node.parent.kind === 265 || node.parent.kind === 308) {\n            return void 0;\n          }\n          switch (node.kind) {\n            case 259:\n              return findFirstModifierExcept(node, 132);\n            case 260:\n            case 182:\n              return findFirstModifierExcept(node, 126);\n            case 228:\n            case 261:\n            case 240:\n            case 262:\n              return find(node.modifiers, isModifier);\n            case 263:\n              return findFirstModifierExcept(node, 85);\n            default:\n              Debug.assertNever(node);\n          }\n      }\n    }\n    function reportObviousDecoratorErrors(node) {\n      const decorator = findFirstIllegalDecorator(node);\n      return decorator && grammarErrorOnFirstToken(decorator, Diagnostics.Decorators_are_not_valid_here);\n    }\n    function findFirstIllegalDecorator(node) {\n      return canHaveIllegalDecorators(node) ? find(node.modifiers, isDecorator) : void 0;\n    }\n    function checkGrammarAsyncModifier(node, asyncModifier) {\n      switch (node.kind) {\n        case 171:\n        case 259:\n        case 215:\n        case 216:\n          return false;\n      }\n      return grammarErrorOnNode(asyncModifier, Diagnostics._0_modifier_cannot_be_used_here, \"async\");\n    }\n    function checkGrammarForDisallowedTrailingComma(list, diag2 = Diagnostics.Trailing_comma_not_allowed) {\n      if (list && list.hasTrailingComma) {\n        return grammarErrorAtPos(list[0], list.end - \",\".length, \",\".length, diag2);\n      }\n      return false;\n    }\n    function checkGrammarTypeParameterList(typeParameters, file) {\n      if (typeParameters && typeParameters.length === 0) {\n        const start = typeParameters.pos - \"<\".length;\n        const end = skipTrivia(file.text, typeParameters.end) + \">\".length;\n        return grammarErrorAtPos(file, start, end - start, Diagnostics.Type_parameter_list_cannot_be_empty);\n      }\n      return false;\n    }\n    function checkGrammarParameterList(parameters) {\n      let seenOptionalParameter = false;\n      const parameterCount = parameters.length;\n      for (let i = 0; i < parameterCount; i++) {\n        const parameter = parameters[i];\n        if (parameter.dotDotDotToken) {\n          if (i !== parameterCount - 1) {\n            return grammarErrorOnNode(parameter.dotDotDotToken, Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);\n          }\n          if (!(parameter.flags & 16777216)) {\n            checkGrammarForDisallowedTrailingComma(parameters, Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);\n          }\n          if (parameter.questionToken) {\n            return grammarErrorOnNode(parameter.questionToken, Diagnostics.A_rest_parameter_cannot_be_optional);\n          }\n          if (parameter.initializer) {\n            return grammarErrorOnNode(parameter.name, Diagnostics.A_rest_parameter_cannot_have_an_initializer);\n          }\n        } else if (isOptionalParameter(parameter)) {\n          seenOptionalParameter = true;\n          if (parameter.questionToken && parameter.initializer) {\n            return grammarErrorOnNode(parameter.name, Diagnostics.Parameter_cannot_have_question_mark_and_initializer);\n          }\n        } else if (seenOptionalParameter && !parameter.initializer) {\n          return grammarErrorOnNode(parameter.name, Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter);\n        }\n      }\n    }\n    function getNonSimpleParameters(parameters) {\n      return filter(parameters, (parameter) => !!parameter.initializer || isBindingPattern(parameter.name) || isRestParameter(parameter));\n    }\n    function checkGrammarForUseStrictSimpleParameterList(node) {\n      if (languageVersion >= 3) {\n        const useStrictDirective = node.body && isBlock(node.body) && findUseStrictPrologue(node.body.statements);\n        if (useStrictDirective) {\n          const nonSimpleParameters = getNonSimpleParameters(node.parameters);\n          if (length(nonSimpleParameters)) {\n            forEach(nonSimpleParameters, (parameter) => {\n              addRelatedInfo(error(parameter, Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive), createDiagnosticForNode(useStrictDirective, Diagnostics.use_strict_directive_used_here));\n            });\n            const diagnostics2 = nonSimpleParameters.map((parameter, index) => index === 0 ? createDiagnosticForNode(parameter, Diagnostics.Non_simple_parameter_declared_here) : createDiagnosticForNode(parameter, Diagnostics.and_here));\n            addRelatedInfo(error(useStrictDirective, Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list), ...diagnostics2);\n            return true;\n          }\n        }\n      }\n      return false;\n    }\n    function checkGrammarFunctionLikeDeclaration(node) {\n      const file = getSourceFileOfNode(node);\n      return checkGrammarModifiers(node) || checkGrammarTypeParameterList(node.typeParameters, file) || checkGrammarParameterList(node.parameters) || checkGrammarArrowFunction(node, file) || isFunctionLikeDeclaration(node) && checkGrammarForUseStrictSimpleParameterList(node);\n    }\n    function checkGrammarClassLikeDeclaration(node) {\n      const file = getSourceFileOfNode(node);\n      return checkGrammarClassDeclarationHeritageClauses(node) || checkGrammarTypeParameterList(node.typeParameters, file);\n    }\n    function checkGrammarArrowFunction(node, file) {\n      if (!isArrowFunction(node)) {\n        return false;\n      }\n      if (node.typeParameters && !(length(node.typeParameters) > 1 || node.typeParameters.hasTrailingComma || node.typeParameters[0].constraint)) {\n        if (file && fileExtensionIsOneOf(file.fileName, [\".mts\", \".cts\"])) {\n          grammarErrorOnNode(node.typeParameters[0], Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);\n        }\n      }\n      const { equalsGreaterThanToken } = node;\n      const startLine = getLineAndCharacterOfPosition(file, equalsGreaterThanToken.pos).line;\n      const endLine = getLineAndCharacterOfPosition(file, equalsGreaterThanToken.end).line;\n      return startLine !== endLine && grammarErrorOnNode(equalsGreaterThanToken, Diagnostics.Line_terminator_not_permitted_before_arrow);\n    }\n    function checkGrammarIndexSignatureParameters(node) {\n      const parameter = node.parameters[0];\n      if (node.parameters.length !== 1) {\n        if (parameter) {\n          return grammarErrorOnNode(parameter.name, Diagnostics.An_index_signature_must_have_exactly_one_parameter);\n        } else {\n          return grammarErrorOnNode(node, Diagnostics.An_index_signature_must_have_exactly_one_parameter);\n        }\n      }\n      checkGrammarForDisallowedTrailingComma(node.parameters, Diagnostics.An_index_signature_cannot_have_a_trailing_comma);\n      if (parameter.dotDotDotToken) {\n        return grammarErrorOnNode(parameter.dotDotDotToken, Diagnostics.An_index_signature_cannot_have_a_rest_parameter);\n      }\n      if (hasEffectiveModifiers(parameter)) {\n        return grammarErrorOnNode(parameter.name, Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);\n      }\n      if (parameter.questionToken) {\n        return grammarErrorOnNode(parameter.questionToken, Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);\n      }\n      if (parameter.initializer) {\n        return grammarErrorOnNode(parameter.name, Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);\n      }\n      if (!parameter.type) {\n        return grammarErrorOnNode(parameter.name, Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);\n      }\n      const type = getTypeFromTypeNode(parameter.type);\n      if (someType(type, (t) => !!(t.flags & 8576)) || isGenericType(type)) {\n        return grammarErrorOnNode(parameter.name, Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead);\n      }\n      if (!everyType(type, isValidIndexKeyType)) {\n        return grammarErrorOnNode(parameter.name, Diagnostics.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type);\n      }\n      if (!node.type) {\n        return grammarErrorOnNode(node, Diagnostics.An_index_signature_must_have_a_type_annotation);\n      }\n      return false;\n    }\n    function checkGrammarIndexSignature(node) {\n      return checkGrammarModifiers(node) || checkGrammarIndexSignatureParameters(node);\n    }\n    function checkGrammarForAtLeastOneTypeArgument(node, typeArguments) {\n      if (typeArguments && typeArguments.length === 0) {\n        const sourceFile = getSourceFileOfNode(node);\n        const start = typeArguments.pos - \"<\".length;\n        const end = skipTrivia(sourceFile.text, typeArguments.end) + \">\".length;\n        return grammarErrorAtPos(sourceFile, start, end - start, Diagnostics.Type_argument_list_cannot_be_empty);\n      }\n      return false;\n    }\n    function checkGrammarTypeArguments(node, typeArguments) {\n      return checkGrammarForDisallowedTrailingComma(typeArguments) || checkGrammarForAtLeastOneTypeArgument(node, typeArguments);\n    }\n    function checkGrammarTaggedTemplateChain(node) {\n      if (node.questionDotToken || node.flags & 32) {\n        return grammarErrorOnNode(node.template, Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain);\n      }\n      return false;\n    }\n    function checkGrammarHeritageClause(node) {\n      const types = node.types;\n      if (checkGrammarForDisallowedTrailingComma(types)) {\n        return true;\n      }\n      if (types && types.length === 0) {\n        const listType = tokenToString(node.token);\n        return grammarErrorAtPos(node, types.pos, 0, Diagnostics._0_list_cannot_be_empty, listType);\n      }\n      return some(types, checkGrammarExpressionWithTypeArguments);\n    }\n    function checkGrammarExpressionWithTypeArguments(node) {\n      if (isExpressionWithTypeArguments(node) && isImportKeyword(node.expression) && node.typeArguments) {\n        return grammarErrorOnNode(node, Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);\n      }\n      return checkGrammarTypeArguments(node, node.typeArguments);\n    }\n    function checkGrammarClassDeclarationHeritageClauses(node) {\n      let seenExtendsClause = false;\n      let seenImplementsClause = false;\n      if (!checkGrammarModifiers(node) && node.heritageClauses) {\n        for (const heritageClause of node.heritageClauses) {\n          if (heritageClause.token === 94) {\n            if (seenExtendsClause) {\n              return grammarErrorOnFirstToken(heritageClause, Diagnostics.extends_clause_already_seen);\n            }\n            if (seenImplementsClause) {\n              return grammarErrorOnFirstToken(heritageClause, Diagnostics.extends_clause_must_precede_implements_clause);\n            }\n            if (heritageClause.types.length > 1) {\n              return grammarErrorOnFirstToken(heritageClause.types[1], Diagnostics.Classes_can_only_extend_a_single_class);\n            }\n            seenExtendsClause = true;\n          } else {\n            Debug.assert(heritageClause.token === 117);\n            if (seenImplementsClause) {\n              return grammarErrorOnFirstToken(heritageClause, Diagnostics.implements_clause_already_seen);\n            }\n            seenImplementsClause = true;\n          }\n          checkGrammarHeritageClause(heritageClause);\n        }\n      }\n    }\n    function checkGrammarInterfaceDeclaration(node) {\n      let seenExtendsClause = false;\n      if (node.heritageClauses) {\n        for (const heritageClause of node.heritageClauses) {\n          if (heritageClause.token === 94) {\n            if (seenExtendsClause) {\n              return grammarErrorOnFirstToken(heritageClause, Diagnostics.extends_clause_already_seen);\n            }\n            seenExtendsClause = true;\n          } else {\n            Debug.assert(heritageClause.token === 117);\n            return grammarErrorOnFirstToken(heritageClause, Diagnostics.Interface_declaration_cannot_have_implements_clause);\n          }\n          checkGrammarHeritageClause(heritageClause);\n        }\n      }\n      return false;\n    }\n    function checkGrammarComputedPropertyName(node) {\n      if (node.kind !== 164) {\n        return false;\n      }\n      const computedPropertyName = node;\n      if (computedPropertyName.expression.kind === 223 && computedPropertyName.expression.operatorToken.kind === 27) {\n        return grammarErrorOnNode(computedPropertyName.expression, Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name);\n      }\n      return false;\n    }\n    function checkGrammarForGenerator(node) {\n      if (node.asteriskToken) {\n        Debug.assert(node.kind === 259 || node.kind === 215 || node.kind === 171);\n        if (node.flags & 16777216) {\n          return grammarErrorOnNode(node.asteriskToken, Diagnostics.Generators_are_not_allowed_in_an_ambient_context);\n        }\n        if (!node.body) {\n          return grammarErrorOnNode(node.asteriskToken, Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator);\n        }\n      }\n    }\n    function checkGrammarForInvalidQuestionMark(questionToken, message) {\n      return !!questionToken && grammarErrorOnNode(questionToken, message);\n    }\n    function checkGrammarForInvalidExclamationToken(exclamationToken, message) {\n      return !!exclamationToken && grammarErrorOnNode(exclamationToken, message);\n    }\n    function checkGrammarObjectLiteralExpression(node, inDestructuring) {\n      const seen = /* @__PURE__ */ new Map();\n      for (const prop of node.properties) {\n        if (prop.kind === 301) {\n          if (inDestructuring) {\n            const expression = skipParentheses(prop.expression);\n            if (isArrayLiteralExpression(expression) || isObjectLiteralExpression(expression)) {\n              return grammarErrorOnNode(prop.expression, Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);\n            }\n          }\n          continue;\n        }\n        const name = prop.name;\n        if (name.kind === 164) {\n          checkGrammarComputedPropertyName(name);\n        }\n        if (prop.kind === 300 && !inDestructuring && prop.objectAssignmentInitializer) {\n          grammarErrorOnNode(prop.equalsToken, Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern);\n        }\n        if (name.kind === 80) {\n          grammarErrorOnNode(name, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);\n        }\n        if (canHaveModifiers(prop) && prop.modifiers) {\n          for (const mod of prop.modifiers) {\n            if (isModifier(mod) && (mod.kind !== 132 || prop.kind !== 171)) {\n              grammarErrorOnNode(mod, Diagnostics._0_modifier_cannot_be_used_here, getTextOfNode(mod));\n            }\n          }\n        } else if (canHaveIllegalModifiers(prop) && prop.modifiers) {\n          for (const mod of prop.modifiers) {\n            if (isModifier(mod)) {\n              grammarErrorOnNode(mod, Diagnostics._0_modifier_cannot_be_used_here, getTextOfNode(mod));\n            }\n          }\n        }\n        let currentKind;\n        switch (prop.kind) {\n          case 300:\n          case 299:\n            checkGrammarForInvalidExclamationToken(prop.exclamationToken, Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);\n            checkGrammarForInvalidQuestionMark(prop.questionToken, Diagnostics.An_object_member_cannot_be_declared_optional);\n            if (name.kind === 8) {\n              checkGrammarNumericLiteral(name);\n            }\n            currentKind = 4;\n            break;\n          case 171:\n            currentKind = 8;\n            break;\n          case 174:\n            currentKind = 1;\n            break;\n          case 175:\n            currentKind = 2;\n            break;\n          default:\n            throw Debug.assertNever(prop, \"Unexpected syntax kind:\" + prop.kind);\n        }\n        if (!inDestructuring) {\n          const effectiveName = getPropertyNameForPropertyNameNode(name);\n          if (effectiveName === void 0) {\n            continue;\n          }\n          const existingKind = seen.get(effectiveName);\n          if (!existingKind) {\n            seen.set(effectiveName, currentKind);\n          } else {\n            if (currentKind & 8 && existingKind & 8) {\n              grammarErrorOnNode(name, Diagnostics.Duplicate_identifier_0, getTextOfNode(name));\n            } else if (currentKind & 4 && existingKind & 4) {\n              grammarErrorOnNode(name, Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name, getTextOfNode(name));\n            } else if (currentKind & 3 && existingKind & 3) {\n              if (existingKind !== 3 && currentKind !== existingKind) {\n                seen.set(effectiveName, currentKind | existingKind);\n              } else {\n                return grammarErrorOnNode(name, Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);\n              }\n            } else {\n              return grammarErrorOnNode(name, Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);\n            }\n          }\n        }\n      }\n    }\n    function checkGrammarJsxElement(node) {\n      checkGrammarJsxName(node.tagName);\n      checkGrammarTypeArguments(node, node.typeArguments);\n      const seen = /* @__PURE__ */ new Map();\n      for (const attr of node.attributes.properties) {\n        if (attr.kind === 290) {\n          continue;\n        }\n        const { name, initializer } = attr;\n        if (!seen.get(name.escapedText)) {\n          seen.set(name.escapedText, true);\n        } else {\n          return grammarErrorOnNode(name, Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);\n        }\n        if (initializer && initializer.kind === 291 && !initializer.expression) {\n          return grammarErrorOnNode(initializer, Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression);\n        }\n      }\n    }\n    function checkGrammarJsxName(node) {\n      if (isPropertyAccessExpression(node)) {\n        let propName = node;\n        do {\n          const check2 = checkGrammarJsxNestedIdentifier(propName.name);\n          if (check2) {\n            return check2;\n          }\n          propName = propName.expression;\n        } while (isPropertyAccessExpression(propName));\n        const check = checkGrammarJsxNestedIdentifier(propName);\n        if (check) {\n          return check;\n        }\n      }\n      function checkGrammarJsxNestedIdentifier(name) {\n        if (isIdentifier(name) && idText(name).indexOf(\":\") !== -1) {\n          return grammarErrorOnNode(name, Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names);\n        }\n      }\n    }\n    function checkGrammarJsxExpression(node) {\n      if (node.expression && isCommaSequence(node.expression)) {\n        return grammarErrorOnNode(node.expression, Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array);\n      }\n    }\n    function checkGrammarForInOrForOfStatement(forInOrOfStatement) {\n      if (checkGrammarStatementInAmbientContext(forInOrOfStatement)) {\n        return true;\n      }\n      if (forInOrOfStatement.kind === 247 && forInOrOfStatement.awaitModifier) {\n        if (!(forInOrOfStatement.flags & 32768)) {\n          const sourceFile = getSourceFileOfNode(forInOrOfStatement);\n          if (isInTopLevelContext(forInOrOfStatement)) {\n            if (!hasParseDiagnostics(sourceFile)) {\n              if (!isEffectiveExternalModule(sourceFile, compilerOptions)) {\n                diagnostics.add(createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module));\n              }\n              switch (moduleKind) {\n                case 100:\n                case 199:\n                  if (sourceFile.impliedNodeFormat === 1) {\n                    diagnostics.add(createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));\n                    break;\n                  }\n                case 7:\n                case 99:\n                case 4:\n                  if (languageVersion >= 4) {\n                    break;\n                  }\n                default:\n                  diagnostics.add(createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher));\n                  break;\n              }\n            }\n          } else {\n            if (!hasParseDiagnostics(sourceFile)) {\n              const diagnostic = createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules);\n              const func = getContainingFunction(forInOrOfStatement);\n              if (func && func.kind !== 173) {\n                Debug.assert((getFunctionFlags(func) & 2) === 0, \"Enclosing function should never be an async function.\");\n                const relatedInfo = createDiagnosticForNode(func, Diagnostics.Did_you_mean_to_mark_this_function_as_async);\n                addRelatedInfo(diagnostic, relatedInfo);\n              }\n              diagnostics.add(diagnostic);\n              return true;\n            }\n          }\n          return false;\n        }\n      }\n      if (isForOfStatement(forInOrOfStatement) && !(forInOrOfStatement.flags & 32768) && isIdentifier(forInOrOfStatement.initializer) && forInOrOfStatement.initializer.escapedText === \"async\") {\n        grammarErrorOnNode(forInOrOfStatement.initializer, Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async);\n        return false;\n      }\n      if (forInOrOfStatement.initializer.kind === 258) {\n        const variableList = forInOrOfStatement.initializer;\n        if (!checkGrammarVariableDeclarationList(variableList)) {\n          const declarations = variableList.declarations;\n          if (!declarations.length) {\n            return false;\n          }\n          if (declarations.length > 1) {\n            const diagnostic = forInOrOfStatement.kind === 246 ? Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement : Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;\n            return grammarErrorOnFirstToken(variableList.declarations[1], diagnostic);\n          }\n          const firstDeclaration = declarations[0];\n          if (firstDeclaration.initializer) {\n            const diagnostic = forInOrOfStatement.kind === 246 ? Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer : Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;\n            return grammarErrorOnNode(firstDeclaration.name, diagnostic);\n          }\n          if (firstDeclaration.type) {\n            const diagnostic = forInOrOfStatement.kind === 246 ? Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation : Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;\n            return grammarErrorOnNode(firstDeclaration, diagnostic);\n          }\n        }\n      }\n      return false;\n    }\n    function checkGrammarAccessor(accessor) {\n      if (!(accessor.flags & 16777216) && accessor.parent.kind !== 184 && accessor.parent.kind !== 261) {\n        if (languageVersion < 1) {\n          return grammarErrorOnNode(accessor.name, Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);\n        }\n        if (languageVersion < 2 && isPrivateIdentifier(accessor.name)) {\n          return grammarErrorOnNode(accessor.name, Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);\n        }\n        if (accessor.body === void 0 && !hasSyntacticModifier(accessor, 256)) {\n          return grammarErrorAtPos(accessor, accessor.end - 1, \";\".length, Diagnostics._0_expected, \"{\");\n        }\n      }\n      if (accessor.body) {\n        if (hasSyntacticModifier(accessor, 256)) {\n          return grammarErrorOnNode(accessor, Diagnostics.An_abstract_accessor_cannot_have_an_implementation);\n        }\n        if (accessor.parent.kind === 184 || accessor.parent.kind === 261) {\n          return grammarErrorOnNode(accessor.body, Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);\n        }\n      }\n      if (accessor.typeParameters) {\n        return grammarErrorOnNode(accessor.name, Diagnostics.An_accessor_cannot_have_type_parameters);\n      }\n      if (!doesAccessorHaveCorrectParameterCount(accessor)) {\n        return grammarErrorOnNode(accessor.name, accessor.kind === 174 ? Diagnostics.A_get_accessor_cannot_have_parameters : Diagnostics.A_set_accessor_must_have_exactly_one_parameter);\n      }\n      if (accessor.kind === 175) {\n        if (accessor.type) {\n          return grammarErrorOnNode(accessor.name, Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);\n        }\n        const parameter = Debug.checkDefined(getSetAccessorValueParameter(accessor), \"Return value does not match parameter count assertion.\");\n        if (parameter.dotDotDotToken) {\n          return grammarErrorOnNode(parameter.dotDotDotToken, Diagnostics.A_set_accessor_cannot_have_rest_parameter);\n        }\n        if (parameter.questionToken) {\n          return grammarErrorOnNode(parameter.questionToken, Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);\n        }\n        if (parameter.initializer) {\n          return grammarErrorOnNode(accessor.name, Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer);\n        }\n      }\n      return false;\n    }\n    function doesAccessorHaveCorrectParameterCount(accessor) {\n      return getAccessorThisParameter(accessor) || accessor.parameters.length === (accessor.kind === 174 ? 0 : 1);\n    }\n    function getAccessorThisParameter(accessor) {\n      if (accessor.parameters.length === (accessor.kind === 174 ? 1 : 2)) {\n        return getThisParameter(accessor);\n      }\n    }\n    function checkGrammarTypeOperatorNode(node) {\n      if (node.operator === 156) {\n        if (node.type.kind !== 153) {\n          return grammarErrorOnNode(node.type, Diagnostics._0_expected, tokenToString(153));\n        }\n        let parent2 = walkUpParenthesizedTypes(node.parent);\n        if (isInJSFile(parent2) && isJSDocTypeExpression(parent2)) {\n          const host2 = getJSDocHost(parent2);\n          if (host2) {\n            parent2 = getSingleVariableOfVariableStatement(host2) || host2;\n          }\n        }\n        switch (parent2.kind) {\n          case 257:\n            const decl = parent2;\n            if (decl.name.kind !== 79) {\n              return grammarErrorOnNode(node, Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);\n            }\n            if (!isVariableDeclarationInVariableStatement(decl)) {\n              return grammarErrorOnNode(node, Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);\n            }\n            if (!(decl.parent.flags & 2)) {\n              return grammarErrorOnNode(parent2.name, Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);\n            }\n            break;\n          case 169:\n            if (!isStatic(parent2) || !hasEffectiveReadonlyModifier(parent2)) {\n              return grammarErrorOnNode(parent2.name, Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);\n            }\n            break;\n          case 168:\n            if (!hasSyntacticModifier(parent2, 64)) {\n              return grammarErrorOnNode(parent2.name, Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);\n            }\n            break;\n          default:\n            return grammarErrorOnNode(node, Diagnostics.unique_symbol_types_are_not_allowed_here);\n        }\n      } else if (node.operator === 146) {\n        if (node.type.kind !== 185 && node.type.kind !== 186) {\n          return grammarErrorOnFirstToken(node, Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types, tokenToString(153));\n        }\n      }\n    }\n    function checkGrammarForInvalidDynamicName(node, message) {\n      if (isNonBindableDynamicName(node)) {\n        return grammarErrorOnNode(node, message);\n      }\n    }\n    function checkGrammarMethod(node) {\n      if (checkGrammarFunctionLikeDeclaration(node)) {\n        return true;\n      }\n      if (node.kind === 171) {\n        if (node.parent.kind === 207) {\n          if (node.modifiers && !(node.modifiers.length === 1 && first(node.modifiers).kind === 132)) {\n            return grammarErrorOnFirstToken(node, Diagnostics.Modifiers_cannot_appear_here);\n          } else if (checkGrammarForInvalidQuestionMark(node.questionToken, Diagnostics.An_object_member_cannot_be_declared_optional)) {\n            return true;\n          } else if (checkGrammarForInvalidExclamationToken(node.exclamationToken, Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context)) {\n            return true;\n          } else if (node.body === void 0) {\n            return grammarErrorAtPos(node, node.end - 1, \";\".length, Diagnostics._0_expected, \"{\");\n          }\n        }\n        if (checkGrammarForGenerator(node)) {\n          return true;\n        }\n      }\n      if (isClassLike(node.parent)) {\n        if (languageVersion < 2 && isPrivateIdentifier(node.name)) {\n          return grammarErrorOnNode(node.name, Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);\n        }\n        if (node.flags & 16777216) {\n          return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);\n        } else if (node.kind === 171 && !node.body) {\n          return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);\n        }\n      } else if (node.parent.kind === 261) {\n        return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);\n      } else if (node.parent.kind === 184) {\n        return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);\n      }\n    }\n    function checkGrammarBreakOrContinueStatement(node) {\n      let current = node;\n      while (current) {\n        if (isFunctionLikeOrClassStaticBlockDeclaration(current)) {\n          return grammarErrorOnNode(node, Diagnostics.Jump_target_cannot_cross_function_boundary);\n        }\n        switch (current.kind) {\n          case 253:\n            if (node.label && current.label.escapedText === node.label.escapedText) {\n              const isMisplacedContinueLabel = node.kind === 248 && !isIterationStatement(current.statement, true);\n              if (isMisplacedContinueLabel) {\n                return grammarErrorOnNode(node, Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);\n              }\n              return false;\n            }\n            break;\n          case 252:\n            if (node.kind === 249 && !node.label) {\n              return false;\n            }\n            break;\n          default:\n            if (isIterationStatement(current, false) && !node.label) {\n              return false;\n            }\n            break;\n        }\n        current = current.parent;\n      }\n      if (node.label) {\n        const message = node.kind === 249 ? Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement : Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;\n        return grammarErrorOnNode(node, message);\n      } else {\n        const message = node.kind === 249 ? Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement : Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;\n        return grammarErrorOnNode(node, message);\n      }\n    }\n    function checkGrammarBindingElement(node) {\n      if (node.dotDotDotToken) {\n        const elements = node.parent.elements;\n        if (node !== last(elements)) {\n          return grammarErrorOnNode(node, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);\n        }\n        checkGrammarForDisallowedTrailingComma(elements, Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);\n        if (node.propertyName) {\n          return grammarErrorOnNode(node.name, Diagnostics.A_rest_element_cannot_have_a_property_name);\n        }\n      }\n      if (node.dotDotDotToken && node.initializer) {\n        return grammarErrorAtPos(node, node.initializer.pos - 1, 1, Diagnostics.A_rest_element_cannot_have_an_initializer);\n      }\n    }\n    function isStringOrNumberLiteralExpression(expr) {\n      return isStringOrNumericLiteralLike(expr) || expr.kind === 221 && expr.operator === 40 && expr.operand.kind === 8;\n    }\n    function isBigIntLiteralExpression(expr) {\n      return expr.kind === 9 || expr.kind === 221 && expr.operator === 40 && expr.operand.kind === 9;\n    }\n    function isSimpleLiteralEnumReference(expr) {\n      if ((isPropertyAccessExpression(expr) || isElementAccessExpression(expr) && isStringOrNumberLiteralExpression(expr.argumentExpression)) && isEntityNameExpression(expr.expression)) {\n        return !!(checkExpressionCached(expr).flags & 1056);\n      }\n    }\n    function checkAmbientInitializer(node) {\n      const initializer = node.initializer;\n      if (initializer) {\n        const isInvalidInitializer = !(isStringOrNumberLiteralExpression(initializer) || isSimpleLiteralEnumReference(initializer) || initializer.kind === 110 || initializer.kind === 95 || isBigIntLiteralExpression(initializer));\n        const isConstOrReadonly = isDeclarationReadonly(node) || isVariableDeclaration(node) && isVarConst(node);\n        if (isConstOrReadonly && !node.type) {\n          if (isInvalidInitializer) {\n            return grammarErrorOnNode(initializer, Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference);\n          }\n        } else {\n          return grammarErrorOnNode(initializer, Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);\n        }\n      }\n    }\n    function checkGrammarVariableDeclaration(node) {\n      if (node.parent.parent.kind !== 246 && node.parent.parent.kind !== 247) {\n        if (node.flags & 16777216) {\n          checkAmbientInitializer(node);\n        } else if (!node.initializer) {\n          if (isBindingPattern(node.name) && !isBindingPattern(node.parent)) {\n            return grammarErrorOnNode(node, Diagnostics.A_destructuring_declaration_must_have_an_initializer);\n          }\n          if (isVarConst(node)) {\n            return grammarErrorOnNode(node, Diagnostics.const_declarations_must_be_initialized);\n          }\n        }\n      }\n      if (node.exclamationToken && (node.parent.parent.kind !== 240 || !node.type || node.initializer || node.flags & 16777216)) {\n        const message = node.initializer ? Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions : !node.type ? Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations : Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context;\n        return grammarErrorOnNode(node.exclamationToken, message);\n      }\n      if ((moduleKind < 5 || getSourceFileOfNode(node).impliedNodeFormat === 1) && moduleKind !== 4 && !(node.parent.parent.flags & 16777216) && hasSyntacticModifier(node.parent.parent, 1)) {\n        checkESModuleMarker(node.name);\n      }\n      const checkLetConstNames = isLet(node) || isVarConst(node);\n      return checkLetConstNames && checkGrammarNameInLetOrConstDeclarations(node.name);\n    }\n    function checkESModuleMarker(name) {\n      if (name.kind === 79) {\n        if (idText(name) === \"__esModule\") {\n          return grammarErrorOnNodeSkippedOn(\"noEmit\", name, Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules);\n        }\n      } else {\n        const elements = name.elements;\n        for (const element of elements) {\n          if (!isOmittedExpression(element)) {\n            return checkESModuleMarker(element.name);\n          }\n        }\n      }\n      return false;\n    }\n    function checkGrammarNameInLetOrConstDeclarations(name) {\n      if (name.kind === 79) {\n        if (name.escapedText === \"let\") {\n          return grammarErrorOnNode(name, Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations);\n        }\n      } else {\n        const elements = name.elements;\n        for (const element of elements) {\n          if (!isOmittedExpression(element)) {\n            checkGrammarNameInLetOrConstDeclarations(element.name);\n          }\n        }\n      }\n      return false;\n    }\n    function checkGrammarVariableDeclarationList(declarationList) {\n      const declarations = declarationList.declarations;\n      if (checkGrammarForDisallowedTrailingComma(declarationList.declarations)) {\n        return true;\n      }\n      if (!declarationList.declarations.length) {\n        return grammarErrorAtPos(declarationList, declarations.pos, declarations.end - declarations.pos, Diagnostics.Variable_declaration_list_cannot_be_empty);\n      }\n      return false;\n    }\n    function allowLetAndConstDeclarations(parent2) {\n      switch (parent2.kind) {\n        case 242:\n        case 243:\n        case 244:\n        case 251:\n        case 245:\n        case 246:\n        case 247:\n          return false;\n        case 253:\n          return allowLetAndConstDeclarations(parent2.parent);\n      }\n      return true;\n    }\n    function checkGrammarForDisallowedLetOrConstStatement(node) {\n      if (!allowLetAndConstDeclarations(node.parent)) {\n        if (isLet(node.declarationList)) {\n          return grammarErrorOnNode(node, Diagnostics.let_declarations_can_only_be_declared_inside_a_block);\n        } else if (isVarConst(node.declarationList)) {\n          return grammarErrorOnNode(node, Diagnostics.const_declarations_can_only_be_declared_inside_a_block);\n        }\n      }\n    }\n    function checkGrammarMetaProperty(node) {\n      const escapedText = node.name.escapedText;\n      switch (node.keywordToken) {\n        case 103:\n          if (escapedText !== \"target\") {\n            return grammarErrorOnNode(node.name, Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2, node.name.escapedText, tokenToString(node.keywordToken), \"target\");\n          }\n          break;\n        case 100:\n          if (escapedText !== \"meta\") {\n            return grammarErrorOnNode(node.name, Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2, node.name.escapedText, tokenToString(node.keywordToken), \"meta\");\n          }\n          break;\n      }\n    }\n    function hasParseDiagnostics(sourceFile) {\n      return sourceFile.parseDiagnostics.length > 0;\n    }\n    function grammarErrorOnFirstToken(node, message, arg0, arg1, arg2) {\n      const sourceFile = getSourceFileOfNode(node);\n      if (!hasParseDiagnostics(sourceFile)) {\n        const span = getSpanOfTokenAtPosition(sourceFile, node.pos);\n        diagnostics.add(createFileDiagnostic(sourceFile, span.start, span.length, message, arg0, arg1, arg2));\n        return true;\n      }\n      return false;\n    }\n    function grammarErrorAtPos(nodeForSourceFile, start, length2, message, arg0, arg1, arg2) {\n      const sourceFile = getSourceFileOfNode(nodeForSourceFile);\n      if (!hasParseDiagnostics(sourceFile)) {\n        diagnostics.add(createFileDiagnostic(sourceFile, start, length2, message, arg0, arg1, arg2));\n        return true;\n      }\n      return false;\n    }\n    function grammarErrorOnNodeSkippedOn(key, node, message, arg0, arg1, arg2) {\n      const sourceFile = getSourceFileOfNode(node);\n      if (!hasParseDiagnostics(sourceFile)) {\n        errorSkippedOn(key, node, message, arg0, arg1, arg2);\n        return true;\n      }\n      return false;\n    }\n    function grammarErrorOnNode(node, message, arg0, arg1, arg2) {\n      const sourceFile = getSourceFileOfNode(node);\n      if (!hasParseDiagnostics(sourceFile)) {\n        diagnostics.add(createDiagnosticForNode(node, message, arg0, arg1, arg2));\n        return true;\n      }\n      return false;\n    }\n    function checkGrammarConstructorTypeParameters(node) {\n      const jsdocTypeParameters = isInJSFile(node) ? getJSDocTypeParameterDeclarations(node) : void 0;\n      const range = node.typeParameters || jsdocTypeParameters && firstOrUndefined(jsdocTypeParameters);\n      if (range) {\n        const pos = range.pos === range.end ? range.pos : skipTrivia(getSourceFileOfNode(node).text, range.pos);\n        return grammarErrorAtPos(node, pos, range.end - pos, Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration);\n      }\n    }\n    function checkGrammarConstructorTypeAnnotation(node) {\n      const type = node.type || getEffectiveReturnTypeNode(node);\n      if (type) {\n        return grammarErrorOnNode(type, Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration);\n      }\n    }\n    function checkGrammarProperty(node) {\n      if (isComputedPropertyName(node.name) && isBinaryExpression(node.name.expression) && node.name.expression.operatorToken.kind === 101) {\n        return grammarErrorOnNode(node.parent.members[0], Diagnostics.A_mapped_type_may_not_declare_properties_or_methods);\n      }\n      if (isClassLike(node.parent)) {\n        if (isStringLiteral(node.name) && node.name.text === \"constructor\") {\n          return grammarErrorOnNode(node.name, Diagnostics.Classes_may_not_have_a_field_named_constructor);\n        }\n        if (checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type)) {\n          return true;\n        }\n        if (languageVersion < 2 && isPrivateIdentifier(node.name)) {\n          return grammarErrorOnNode(node.name, Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);\n        }\n        if (languageVersion < 2 && isAutoAccessorPropertyDeclaration(node)) {\n          return grammarErrorOnNode(node.name, Diagnostics.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);\n        }\n        if (isAutoAccessorPropertyDeclaration(node) && checkGrammarForInvalidQuestionMark(node.questionToken, Diagnostics.An_accessor_property_cannot_be_declared_optional)) {\n          return true;\n        }\n      } else if (node.parent.kind === 261) {\n        if (checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)) {\n          return true;\n        }\n        Debug.assertNode(node, isPropertySignature);\n        if (node.initializer) {\n          return grammarErrorOnNode(node.initializer, Diagnostics.An_interface_property_cannot_have_an_initializer);\n        }\n      } else if (isTypeLiteralNode(node.parent)) {\n        if (checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)) {\n          return true;\n        }\n        Debug.assertNode(node, isPropertySignature);\n        if (node.initializer) {\n          return grammarErrorOnNode(node.initializer, Diagnostics.A_type_literal_property_cannot_have_an_initializer);\n        }\n      }\n      if (node.flags & 16777216) {\n        checkAmbientInitializer(node);\n      }\n      if (isPropertyDeclaration(node) && node.exclamationToken && (!isClassLike(node.parent) || !node.type || node.initializer || node.flags & 16777216 || isStatic(node) || hasAbstractModifier(node))) {\n        const message = node.initializer ? Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions : !node.type ? Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations : Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context;\n        return grammarErrorOnNode(node.exclamationToken, message);\n      }\n    }\n    function checkGrammarTopLevelElementForRequiredDeclareModifier(node) {\n      if (node.kind === 261 || node.kind === 262 || node.kind === 269 || node.kind === 268 || node.kind === 275 || node.kind === 274 || node.kind === 267 || hasSyntacticModifier(node, 2 | 1 | 1024)) {\n        return false;\n      }\n      return grammarErrorOnFirstToken(node, Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier);\n    }\n    function checkGrammarTopLevelElementsForRequiredDeclareModifier(file) {\n      for (const decl of file.statements) {\n        if (isDeclaration(decl) || decl.kind === 240) {\n          if (checkGrammarTopLevelElementForRequiredDeclareModifier(decl)) {\n            return true;\n          }\n        }\n      }\n      return false;\n    }\n    function checkGrammarSourceFile(node) {\n      return !!(node.flags & 16777216) && checkGrammarTopLevelElementsForRequiredDeclareModifier(node);\n    }\n    function checkGrammarStatementInAmbientContext(node) {\n      if (node.flags & 16777216) {\n        const links = getNodeLinks(node);\n        if (!links.hasReportedStatementInAmbientContext && (isFunctionLike(node.parent) || isAccessor(node.parent))) {\n          return getNodeLinks(node).hasReportedStatementInAmbientContext = grammarErrorOnFirstToken(node, Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);\n        }\n        if (node.parent.kind === 238 || node.parent.kind === 265 || node.parent.kind === 308) {\n          const links2 = getNodeLinks(node.parent);\n          if (!links2.hasReportedStatementInAmbientContext) {\n            return links2.hasReportedStatementInAmbientContext = grammarErrorOnFirstToken(node, Diagnostics.Statements_are_not_allowed_in_ambient_contexts);\n          }\n        } else {\n        }\n      }\n      return false;\n    }\n    function checkGrammarNumericLiteral(node) {\n      if (node.numericLiteralFlags & 32) {\n        let diagnosticMessage;\n        if (languageVersion >= 1) {\n          diagnosticMessage = Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0;\n        } else if (isChildOfNodeWithKind(node, 198)) {\n          diagnosticMessage = Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0;\n        } else if (isChildOfNodeWithKind(node, 302)) {\n          diagnosticMessage = Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0;\n        }\n        if (diagnosticMessage) {\n          const withMinus = isPrefixUnaryExpression(node.parent) && node.parent.operator === 40;\n          const literal = (withMinus ? \"-\" : \"\") + \"0o\" + node.text;\n          return grammarErrorOnNode(withMinus ? node.parent : node, diagnosticMessage, literal);\n        }\n      }\n      checkNumericLiteralValueSize(node);\n      return false;\n    }\n    function checkNumericLiteralValueSize(node) {\n      const isFractional = getTextOfNode(node).indexOf(\".\") !== -1;\n      const isScientific = node.numericLiteralFlags & 16;\n      if (isFractional || isScientific) {\n        return;\n      }\n      const value = +node.text;\n      if (value <= 2 ** 53 - 1) {\n        return;\n      }\n      addErrorOrSuggestion(false, createDiagnosticForNode(node, Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers));\n    }\n    function checkGrammarBigIntLiteral(node) {\n      const literalType = isLiteralTypeNode(node.parent) || isPrefixUnaryExpression(node.parent) && isLiteralTypeNode(node.parent.parent);\n      if (!literalType) {\n        if (languageVersion < 7) {\n          if (grammarErrorOnNode(node, Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020)) {\n            return true;\n          }\n        }\n      }\n      return false;\n    }\n    function grammarErrorAfterFirstToken(node, message, arg0, arg1, arg2) {\n      const sourceFile = getSourceFileOfNode(node);\n      if (!hasParseDiagnostics(sourceFile)) {\n        const span = getSpanOfTokenAtPosition(sourceFile, node.pos);\n        diagnostics.add(createFileDiagnostic(sourceFile, textSpanEnd(span), 0, message, arg0, arg1, arg2));\n        return true;\n      }\n      return false;\n    }\n    function getAmbientModules() {\n      if (!ambientModulesCache) {\n        ambientModulesCache = [];\n        globals.forEach((global2, sym) => {\n          if (ambientModuleSymbolRegex.test(sym)) {\n            ambientModulesCache.push(global2);\n          }\n        });\n      }\n      return ambientModulesCache;\n    }\n    function checkGrammarImportClause(node) {\n      var _a2;\n      if (node.isTypeOnly && node.name && node.namedBindings) {\n        return grammarErrorOnNode(node, Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both);\n      }\n      if (node.isTypeOnly && ((_a2 = node.namedBindings) == null ? void 0 : _a2.kind) === 272) {\n        return checkGrammarNamedImportsOrExports(node.namedBindings);\n      }\n      return false;\n    }\n    function checkGrammarNamedImportsOrExports(namedBindings) {\n      return !!forEach(namedBindings.elements, (specifier) => {\n        if (specifier.isTypeOnly) {\n          return grammarErrorOnFirstToken(specifier, specifier.kind === 273 ? Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement : Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement);\n        }\n      });\n    }\n    function checkGrammarImportCallExpression(node) {\n      if (compilerOptions.verbatimModuleSyntax && moduleKind === 1) {\n        return grammarErrorOnNode(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);\n      }\n      if (moduleKind === 5) {\n        return grammarErrorOnNode(node, Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);\n      }\n      if (node.typeArguments) {\n        return grammarErrorOnNode(node, Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);\n      }\n      const nodeArguments = node.arguments;\n      if (moduleKind !== 99 && moduleKind !== 199 && moduleKind !== 100) {\n        checkGrammarForDisallowedTrailingComma(nodeArguments);\n        if (nodeArguments.length > 1) {\n          const assertionArgument = nodeArguments[1];\n          return grammarErrorOnNode(assertionArgument, Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext);\n        }\n      }\n      if (nodeArguments.length === 0 || nodeArguments.length > 2) {\n        return grammarErrorOnNode(node, Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);\n      }\n      const spreadElement = find(nodeArguments, isSpreadElement);\n      if (spreadElement) {\n        return grammarErrorOnNode(spreadElement, Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element);\n      }\n      return false;\n    }\n    function findMatchingTypeReferenceOrTypeAliasReference(source, unionTarget) {\n      const sourceObjectFlags = getObjectFlags(source);\n      if (sourceObjectFlags & (4 | 16) && unionTarget.flags & 1048576) {\n        return find(unionTarget.types, (target) => {\n          if (target.flags & 524288) {\n            const overlapObjFlags = sourceObjectFlags & getObjectFlags(target);\n            if (overlapObjFlags & 4) {\n              return source.target === target.target;\n            }\n            if (overlapObjFlags & 16) {\n              return !!source.aliasSymbol && source.aliasSymbol === target.aliasSymbol;\n            }\n          }\n          return false;\n        });\n      }\n    }\n    function findBestTypeForObjectLiteral(source, unionTarget) {\n      if (getObjectFlags(source) & 128 && someType(unionTarget, isArrayLikeType)) {\n        return find(unionTarget.types, (t) => !isArrayLikeType(t));\n      }\n    }\n    function findBestTypeForInvokable(source, unionTarget) {\n      let signatureKind = 0;\n      const hasSignatures = getSignaturesOfType(source, signatureKind).length > 0 || (signatureKind = 1, getSignaturesOfType(source, signatureKind).length > 0);\n      if (hasSignatures) {\n        return find(unionTarget.types, (t) => getSignaturesOfType(t, signatureKind).length > 0);\n      }\n    }\n    function findMostOverlappyType(source, unionTarget) {\n      let bestMatch;\n      if (!(source.flags & (134348796 | 406847488))) {\n        let matchingCount = 0;\n        for (const target of unionTarget.types) {\n          if (!(target.flags & (134348796 | 406847488))) {\n            const overlap = getIntersectionType([getIndexType(source), getIndexType(target)]);\n            if (overlap.flags & 4194304) {\n              return target;\n            } else if (isUnitType(overlap) || overlap.flags & 1048576) {\n              const len = overlap.flags & 1048576 ? countWhere(overlap.types, isUnitType) : 1;\n              if (len >= matchingCount) {\n                bestMatch = target;\n                matchingCount = len;\n              }\n            }\n          }\n        }\n      }\n      return bestMatch;\n    }\n    function filterPrimitivesIfContainsNonPrimitive(type) {\n      if (maybeTypeOfKind(type, 67108864)) {\n        const result = filterType(type, (t) => !(t.flags & 134348796));\n        if (!(result.flags & 131072)) {\n          return result;\n        }\n      }\n      return type;\n    }\n    function findMatchingDiscriminantType(source, target, isRelatedTo, skipPartial) {\n      if (target.flags & 1048576 && source.flags & (2097152 | 524288)) {\n        const match = getMatchingUnionConstituentForType(target, source);\n        if (match) {\n          return match;\n        }\n        const sourceProperties = getPropertiesOfType(source);\n        if (sourceProperties) {\n          const sourcePropertiesFiltered = findDiscriminantProperties(sourceProperties, target);\n          if (sourcePropertiesFiltered) {\n            return discriminateTypeByDiscriminableItems(target, map(sourcePropertiesFiltered, (p) => [() => getTypeOfSymbol(p), p.escapedName]), isRelatedTo, void 0, skipPartial);\n          }\n        }\n      }\n      return void 0;\n    }\n  }\n  function isNotAccessor(declaration) {\n    return !isAccessor(declaration);\n  }\n  function isNotOverload(declaration) {\n    return declaration.kind !== 259 && declaration.kind !== 171 || !!declaration.body;\n  }\n  function isDeclarationNameOrImportPropertyName(name) {\n    switch (name.parent.kind) {\n      case 273:\n      case 278:\n        return isIdentifier(name);\n      default:\n        return isDeclarationName(name);\n    }\n  }\n  function getIterationTypesKeyFromIterationTypeKind(typeKind) {\n    switch (typeKind) {\n      case 0:\n        return \"yieldType\";\n      case 1:\n        return \"returnType\";\n      case 2:\n        return \"nextType\";\n    }\n  }\n  function signatureHasRestParameter(s) {\n    return !!(s.flags & 1);\n  }\n  function signatureHasLiteralTypes(s) {\n    return !!(s.flags & 2);\n  }\n  function createBasicNodeBuilderModuleSpecifierResolutionHost(host) {\n    return {\n      getCommonSourceDirectory: !!host.getCommonSourceDirectory ? () => host.getCommonSourceDirectory() : () => \"\",\n      getCurrentDirectory: () => host.getCurrentDirectory(),\n      getSymlinkCache: maybeBind(host, host.getSymlinkCache),\n      getPackageJsonInfoCache: () => {\n        var _a2;\n        return (_a2 = host.getPackageJsonInfoCache) == null ? void 0 : _a2.call(host);\n      },\n      useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames),\n      redirectTargetsMap: host.redirectTargetsMap,\n      getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName),\n      isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName),\n      fileExists: (fileName) => host.fileExists(fileName),\n      getFileIncludeReasons: () => host.getFileIncludeReasons(),\n      readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0\n    };\n  }\n  var ambientModuleSymbolRegex, anon, nextSymbolId, nextNodeId, nextMergeId, nextFlowId, TypeFacts, typeofNEFacts, CheckMode, SignatureCheckMode, isNotOverloadAndNotAccessor, intrinsicTypeKinds, SymbolLinks, JsxNames, SymbolTrackerImpl;\n  var init_checker = __esm({\n    \"src/compiler/checker.ts\"() {\n      \"use strict\";\n      init_ts2();\n      init_ts_moduleSpecifiers();\n      init_ts_performance();\n      ambientModuleSymbolRegex = /^\".+\"$/;\n      anon = \"(anonymous)\";\n      nextSymbolId = 1;\n      nextNodeId = 1;\n      nextMergeId = 1;\n      nextFlowId = 1;\n      TypeFacts = /* @__PURE__ */ ((TypeFacts3) => {\n        TypeFacts3[TypeFacts3[\"None\"] = 0] = \"None\";\n        TypeFacts3[TypeFacts3[\"TypeofEQString\"] = 1] = \"TypeofEQString\";\n        TypeFacts3[TypeFacts3[\"TypeofEQNumber\"] = 2] = \"TypeofEQNumber\";\n        TypeFacts3[TypeFacts3[\"TypeofEQBigInt\"] = 4] = \"TypeofEQBigInt\";\n        TypeFacts3[TypeFacts3[\"TypeofEQBoolean\"] = 8] = \"TypeofEQBoolean\";\n        TypeFacts3[TypeFacts3[\"TypeofEQSymbol\"] = 16] = \"TypeofEQSymbol\";\n        TypeFacts3[TypeFacts3[\"TypeofEQObject\"] = 32] = \"TypeofEQObject\";\n        TypeFacts3[TypeFacts3[\"TypeofEQFunction\"] = 64] = \"TypeofEQFunction\";\n        TypeFacts3[TypeFacts3[\"TypeofEQHostObject\"] = 128] = \"TypeofEQHostObject\";\n        TypeFacts3[TypeFacts3[\"TypeofNEString\"] = 256] = \"TypeofNEString\";\n        TypeFacts3[TypeFacts3[\"TypeofNENumber\"] = 512] = \"TypeofNENumber\";\n        TypeFacts3[TypeFacts3[\"TypeofNEBigInt\"] = 1024] = \"TypeofNEBigInt\";\n        TypeFacts3[TypeFacts3[\"TypeofNEBoolean\"] = 2048] = \"TypeofNEBoolean\";\n        TypeFacts3[TypeFacts3[\"TypeofNESymbol\"] = 4096] = \"TypeofNESymbol\";\n        TypeFacts3[TypeFacts3[\"TypeofNEObject\"] = 8192] = \"TypeofNEObject\";\n        TypeFacts3[TypeFacts3[\"TypeofNEFunction\"] = 16384] = \"TypeofNEFunction\";\n        TypeFacts3[TypeFacts3[\"TypeofNEHostObject\"] = 32768] = \"TypeofNEHostObject\";\n        TypeFacts3[TypeFacts3[\"EQUndefined\"] = 65536] = \"EQUndefined\";\n        TypeFacts3[TypeFacts3[\"EQNull\"] = 131072] = \"EQNull\";\n        TypeFacts3[TypeFacts3[\"EQUndefinedOrNull\"] = 262144] = \"EQUndefinedOrNull\";\n        TypeFacts3[TypeFacts3[\"NEUndefined\"] = 524288] = \"NEUndefined\";\n        TypeFacts3[TypeFacts3[\"NENull\"] = 1048576] = \"NENull\";\n        TypeFacts3[TypeFacts3[\"NEUndefinedOrNull\"] = 2097152] = \"NEUndefinedOrNull\";\n        TypeFacts3[TypeFacts3[\"Truthy\"] = 4194304] = \"Truthy\";\n        TypeFacts3[TypeFacts3[\"Falsy\"] = 8388608] = \"Falsy\";\n        TypeFacts3[TypeFacts3[\"IsUndefined\"] = 16777216] = \"IsUndefined\";\n        TypeFacts3[TypeFacts3[\"IsNull\"] = 33554432] = \"IsNull\";\n        TypeFacts3[TypeFacts3[\"IsUndefinedOrNull\"] = 50331648] = \"IsUndefinedOrNull\";\n        TypeFacts3[TypeFacts3[\"All\"] = 134217727] = \"All\";\n        TypeFacts3[TypeFacts3[\"BaseStringStrictFacts\"] = 3735041] = \"BaseStringStrictFacts\";\n        TypeFacts3[TypeFacts3[\"BaseStringFacts\"] = 12582401] = \"BaseStringFacts\";\n        TypeFacts3[TypeFacts3[\"StringStrictFacts\"] = 16317953] = \"StringStrictFacts\";\n        TypeFacts3[TypeFacts3[\"StringFacts\"] = 16776705] = \"StringFacts\";\n        TypeFacts3[TypeFacts3[\"EmptyStringStrictFacts\"] = 12123649] = \"EmptyStringStrictFacts\";\n        TypeFacts3[TypeFacts3[\"EmptyStringFacts\"] = 12582401] = \"EmptyStringFacts\";\n        TypeFacts3[TypeFacts3[\"NonEmptyStringStrictFacts\"] = 7929345] = \"NonEmptyStringStrictFacts\";\n        TypeFacts3[TypeFacts3[\"NonEmptyStringFacts\"] = 16776705] = \"NonEmptyStringFacts\";\n        TypeFacts3[TypeFacts3[\"BaseNumberStrictFacts\"] = 3734786] = \"BaseNumberStrictFacts\";\n        TypeFacts3[TypeFacts3[\"BaseNumberFacts\"] = 12582146] = \"BaseNumberFacts\";\n        TypeFacts3[TypeFacts3[\"NumberStrictFacts\"] = 16317698] = \"NumberStrictFacts\";\n        TypeFacts3[TypeFacts3[\"NumberFacts\"] = 16776450] = \"NumberFacts\";\n        TypeFacts3[TypeFacts3[\"ZeroNumberStrictFacts\"] = 12123394] = \"ZeroNumberStrictFacts\";\n        TypeFacts3[TypeFacts3[\"ZeroNumberFacts\"] = 12582146] = \"ZeroNumberFacts\";\n        TypeFacts3[TypeFacts3[\"NonZeroNumberStrictFacts\"] = 7929090] = \"NonZeroNumberStrictFacts\";\n        TypeFacts3[TypeFacts3[\"NonZeroNumberFacts\"] = 16776450] = \"NonZeroNumberFacts\";\n        TypeFacts3[TypeFacts3[\"BaseBigIntStrictFacts\"] = 3734276] = \"BaseBigIntStrictFacts\";\n        TypeFacts3[TypeFacts3[\"BaseBigIntFacts\"] = 12581636] = \"BaseBigIntFacts\";\n        TypeFacts3[TypeFacts3[\"BigIntStrictFacts\"] = 16317188] = \"BigIntStrictFacts\";\n        TypeFacts3[TypeFacts3[\"BigIntFacts\"] = 16775940] = \"BigIntFacts\";\n        TypeFacts3[TypeFacts3[\"ZeroBigIntStrictFacts\"] = 12122884] = \"ZeroBigIntStrictFacts\";\n        TypeFacts3[TypeFacts3[\"ZeroBigIntFacts\"] = 12581636] = \"ZeroBigIntFacts\";\n        TypeFacts3[TypeFacts3[\"NonZeroBigIntStrictFacts\"] = 7928580] = \"NonZeroBigIntStrictFacts\";\n        TypeFacts3[TypeFacts3[\"NonZeroBigIntFacts\"] = 16775940] = \"NonZeroBigIntFacts\";\n        TypeFacts3[TypeFacts3[\"BaseBooleanStrictFacts\"] = 3733256] = \"BaseBooleanStrictFacts\";\n        TypeFacts3[TypeFacts3[\"BaseBooleanFacts\"] = 12580616] = \"BaseBooleanFacts\";\n        TypeFacts3[TypeFacts3[\"BooleanStrictFacts\"] = 16316168] = \"BooleanStrictFacts\";\n        TypeFacts3[TypeFacts3[\"BooleanFacts\"] = 16774920] = \"BooleanFacts\";\n        TypeFacts3[TypeFacts3[\"FalseStrictFacts\"] = 12121864] = \"FalseStrictFacts\";\n        TypeFacts3[TypeFacts3[\"FalseFacts\"] = 12580616] = \"FalseFacts\";\n        TypeFacts3[TypeFacts3[\"TrueStrictFacts\"] = 7927560] = \"TrueStrictFacts\";\n        TypeFacts3[TypeFacts3[\"TrueFacts\"] = 16774920] = \"TrueFacts\";\n        TypeFacts3[TypeFacts3[\"SymbolStrictFacts\"] = 7925520] = \"SymbolStrictFacts\";\n        TypeFacts3[TypeFacts3[\"SymbolFacts\"] = 16772880] = \"SymbolFacts\";\n        TypeFacts3[TypeFacts3[\"ObjectStrictFacts\"] = 7888800] = \"ObjectStrictFacts\";\n        TypeFacts3[TypeFacts3[\"ObjectFacts\"] = 16736160] = \"ObjectFacts\";\n        TypeFacts3[TypeFacts3[\"FunctionStrictFacts\"] = 7880640] = \"FunctionStrictFacts\";\n        TypeFacts3[TypeFacts3[\"FunctionFacts\"] = 16728e3] = \"FunctionFacts\";\n        TypeFacts3[TypeFacts3[\"VoidFacts\"] = 9830144] = \"VoidFacts\";\n        TypeFacts3[TypeFacts3[\"UndefinedFacts\"] = 26607360] = \"UndefinedFacts\";\n        TypeFacts3[TypeFacts3[\"NullFacts\"] = 42917664] = \"NullFacts\";\n        TypeFacts3[TypeFacts3[\"EmptyObjectStrictFacts\"] = 83427327] = \"EmptyObjectStrictFacts\";\n        TypeFacts3[TypeFacts3[\"EmptyObjectFacts\"] = 83886079] = \"EmptyObjectFacts\";\n        TypeFacts3[TypeFacts3[\"UnknownFacts\"] = 83886079] = \"UnknownFacts\";\n        TypeFacts3[TypeFacts3[\"AllTypeofNE\"] = 556800] = \"AllTypeofNE\";\n        TypeFacts3[TypeFacts3[\"OrFactsMask\"] = 8256] = \"OrFactsMask\";\n        TypeFacts3[TypeFacts3[\"AndFactsMask\"] = 134209471] = \"AndFactsMask\";\n        return TypeFacts3;\n      })(TypeFacts || {});\n      typeofNEFacts = new Map(Object.entries({\n        string: 256,\n        number: 512,\n        bigint: 1024,\n        boolean: 2048,\n        symbol: 4096,\n        undefined: 524288,\n        object: 8192,\n        function: 16384\n      }));\n      CheckMode = /* @__PURE__ */ ((CheckMode3) => {\n        CheckMode3[CheckMode3[\"Normal\"] = 0] = \"Normal\";\n        CheckMode3[CheckMode3[\"Contextual\"] = 1] = \"Contextual\";\n        CheckMode3[CheckMode3[\"Inferential\"] = 2] = \"Inferential\";\n        CheckMode3[CheckMode3[\"SkipContextSensitive\"] = 4] = \"SkipContextSensitive\";\n        CheckMode3[CheckMode3[\"SkipGenericFunctions\"] = 8] = \"SkipGenericFunctions\";\n        CheckMode3[CheckMode3[\"IsForSignatureHelp\"] = 16] = \"IsForSignatureHelp\";\n        CheckMode3[CheckMode3[\"IsForStringLiteralArgumentCompletions\"] = 32] = \"IsForStringLiteralArgumentCompletions\";\n        CheckMode3[CheckMode3[\"RestBindingElement\"] = 64] = \"RestBindingElement\";\n        return CheckMode3;\n      })(CheckMode || {});\n      SignatureCheckMode = /* @__PURE__ */ ((SignatureCheckMode3) => {\n        SignatureCheckMode3[SignatureCheckMode3[\"None\"] = 0] = \"None\";\n        SignatureCheckMode3[SignatureCheckMode3[\"BivariantCallback\"] = 1] = \"BivariantCallback\";\n        SignatureCheckMode3[SignatureCheckMode3[\"StrictCallback\"] = 2] = \"StrictCallback\";\n        SignatureCheckMode3[SignatureCheckMode3[\"IgnoreReturnTypes\"] = 4] = \"IgnoreReturnTypes\";\n        SignatureCheckMode3[SignatureCheckMode3[\"StrictArity\"] = 8] = \"StrictArity\";\n        SignatureCheckMode3[SignatureCheckMode3[\"StrictTopSignature\"] = 16] = \"StrictTopSignature\";\n        SignatureCheckMode3[SignatureCheckMode3[\"Callback\"] = 3] = \"Callback\";\n        return SignatureCheckMode3;\n      })(SignatureCheckMode || {});\n      isNotOverloadAndNotAccessor = and(isNotOverload, isNotAccessor);\n      intrinsicTypeKinds = new Map(Object.entries({\n        Uppercase: 0,\n        Lowercase: 1,\n        Capitalize: 2,\n        Uncapitalize: 3\n      }));\n      SymbolLinks = class {\n      };\n      ((JsxNames2) => {\n        JsxNames2.JSX = \"JSX\";\n        JsxNames2.IntrinsicElements = \"IntrinsicElements\";\n        JsxNames2.ElementClass = \"ElementClass\";\n        JsxNames2.ElementAttributesPropertyNameContainer = \"ElementAttributesProperty\";\n        JsxNames2.ElementChildrenAttributeNameContainer = \"ElementChildrenAttribute\";\n        JsxNames2.Element = \"Element\";\n        JsxNames2.IntrinsicAttributes = \"IntrinsicAttributes\";\n        JsxNames2.IntrinsicClassAttributes = \"IntrinsicClassAttributes\";\n        JsxNames2.LibraryManagedAttributes = \"LibraryManagedAttributes\";\n      })(JsxNames || (JsxNames = {}));\n      SymbolTrackerImpl = class {\n        constructor(context, tracker, moduleResolverHost) {\n          this.moduleResolverHost = void 0;\n          this.inner = void 0;\n          this.disableTrackSymbol = false;\n          var _a2;\n          while (tracker instanceof SymbolTrackerImpl) {\n            tracker = tracker.inner;\n          }\n          this.inner = tracker;\n          this.moduleResolverHost = moduleResolverHost;\n          this.context = context;\n          this.canTrackSymbol = !!((_a2 = this.inner) == null ? void 0 : _a2.trackSymbol);\n        }\n        trackSymbol(symbol, enclosingDeclaration, meaning) {\n          var _a2;\n          if (((_a2 = this.inner) == null ? void 0 : _a2.trackSymbol) && !this.disableTrackSymbol) {\n            if (this.inner.trackSymbol(symbol, enclosingDeclaration, meaning)) {\n              this.onDiagnosticReported();\n              return true;\n            }\n          }\n          return false;\n        }\n        reportInaccessibleThisError() {\n          var _a2;\n          if ((_a2 = this.inner) == null ? void 0 : _a2.reportInaccessibleThisError) {\n            this.onDiagnosticReported();\n            this.inner.reportInaccessibleThisError();\n          }\n        }\n        reportPrivateInBaseOfClassExpression(propertyName) {\n          var _a2;\n          if ((_a2 = this.inner) == null ? void 0 : _a2.reportPrivateInBaseOfClassExpression) {\n            this.onDiagnosticReported();\n            this.inner.reportPrivateInBaseOfClassExpression(propertyName);\n          }\n        }\n        reportInaccessibleUniqueSymbolError() {\n          var _a2;\n          if ((_a2 = this.inner) == null ? void 0 : _a2.reportInaccessibleUniqueSymbolError) {\n            this.onDiagnosticReported();\n            this.inner.reportInaccessibleUniqueSymbolError();\n          }\n        }\n        reportCyclicStructureError() {\n          var _a2;\n          if ((_a2 = this.inner) == null ? void 0 : _a2.reportCyclicStructureError) {\n            this.onDiagnosticReported();\n            this.inner.reportCyclicStructureError();\n          }\n        }\n        reportLikelyUnsafeImportRequiredError(specifier) {\n          var _a2;\n          if ((_a2 = this.inner) == null ? void 0 : _a2.reportLikelyUnsafeImportRequiredError) {\n            this.onDiagnosticReported();\n            this.inner.reportLikelyUnsafeImportRequiredError(specifier);\n          }\n        }\n        reportTruncationError() {\n          var _a2;\n          if ((_a2 = this.inner) == null ? void 0 : _a2.reportTruncationError) {\n            this.onDiagnosticReported();\n            this.inner.reportTruncationError();\n          }\n        }\n        trackReferencedAmbientModule(decl, symbol) {\n          var _a2;\n          if ((_a2 = this.inner) == null ? void 0 : _a2.trackReferencedAmbientModule) {\n            this.onDiagnosticReported();\n            this.inner.trackReferencedAmbientModule(decl, symbol);\n          }\n        }\n        trackExternalModuleSymbolOfImportTypeNode(symbol) {\n          var _a2;\n          if ((_a2 = this.inner) == null ? void 0 : _a2.trackExternalModuleSymbolOfImportTypeNode) {\n            this.onDiagnosticReported();\n            this.inner.trackExternalModuleSymbolOfImportTypeNode(symbol);\n          }\n        }\n        reportNonlocalAugmentation(containingFile, parentSymbol, augmentingSymbol) {\n          var _a2;\n          if ((_a2 = this.inner) == null ? void 0 : _a2.reportNonlocalAugmentation) {\n            this.onDiagnosticReported();\n            this.inner.reportNonlocalAugmentation(containingFile, parentSymbol, augmentingSymbol);\n          }\n        }\n        reportNonSerializableProperty(propertyName) {\n          var _a2;\n          if ((_a2 = this.inner) == null ? void 0 : _a2.reportNonSerializableProperty) {\n            this.onDiagnosticReported();\n            this.inner.reportNonSerializableProperty(propertyName);\n          }\n        }\n        reportImportTypeNodeResolutionModeOverride() {\n          var _a2;\n          if ((_a2 = this.inner) == null ? void 0 : _a2.reportImportTypeNodeResolutionModeOverride) {\n            this.onDiagnosticReported();\n            this.inner.reportImportTypeNodeResolutionModeOverride();\n          }\n        }\n        onDiagnosticReported() {\n          this.context.reportedDiagnostic = true;\n        }\n      };\n    }\n  });\n  function visitNode(node, visitor, test, lift) {\n    if (node === void 0) {\n      return node;\n    }\n    const visited = visitor(node);\n    let visitedNode;\n    if (visited === void 0) {\n      return void 0;\n    } else if (isArray(visited)) {\n      visitedNode = (lift || extractSingleNode)(visited);\n    } else {\n      visitedNode = visited;\n    }\n    Debug.assertNode(visitedNode, test);\n    return visitedNode;\n  }\n  function visitNodes2(nodes, visitor, test, start, count) {\n    if (nodes === void 0) {\n      return nodes;\n    }\n    const length2 = nodes.length;\n    if (start === void 0 || start < 0) {\n      start = 0;\n    }\n    if (count === void 0 || count > length2 - start) {\n      count = length2 - start;\n    }\n    let hasTrailingComma;\n    let pos = -1;\n    let end = -1;\n    if (start > 0 || count < length2) {\n      hasTrailingComma = nodes.hasTrailingComma && start + count === length2;\n    } else {\n      pos = nodes.pos;\n      end = nodes.end;\n      hasTrailingComma = nodes.hasTrailingComma;\n    }\n    const updated = visitArrayWorker(nodes, visitor, test, start, count);\n    if (updated !== nodes) {\n      const updatedArray = factory.createNodeArray(updated, hasTrailingComma);\n      setTextRangePosEnd(updatedArray, pos, end);\n      return updatedArray;\n    }\n    return nodes;\n  }\n  function visitArray(nodes, visitor, test, start, count) {\n    if (nodes === void 0) {\n      return nodes;\n    }\n    const length2 = nodes.length;\n    if (start === void 0 || start < 0) {\n      start = 0;\n    }\n    if (count === void 0 || count > length2 - start) {\n      count = length2 - start;\n    }\n    return visitArrayWorker(nodes, visitor, test, start, count);\n  }\n  function visitArrayWorker(nodes, visitor, test, start, count) {\n    let updated;\n    const length2 = nodes.length;\n    if (start > 0 || count < length2) {\n      updated = [];\n    }\n    for (let i = 0; i < count; i++) {\n      const node = nodes[i + start];\n      const visited = node !== void 0 ? visitor ? visitor(node) : node : void 0;\n      if (updated !== void 0 || visited === void 0 || visited !== node) {\n        if (updated === void 0) {\n          updated = nodes.slice(0, i);\n          Debug.assertEachNode(updated, test);\n        }\n        if (visited) {\n          if (isArray(visited)) {\n            for (const visitedNode of visited) {\n              Debug.assertNode(visitedNode, test);\n              updated.push(visitedNode);\n            }\n          } else {\n            Debug.assertNode(visited, test);\n            updated.push(visited);\n          }\n        }\n      }\n    }\n    if (updated) {\n      return updated;\n    }\n    Debug.assertEachNode(nodes, test);\n    return nodes;\n  }\n  function visitLexicalEnvironment(statements, visitor, context, start, ensureUseStrict, nodesVisitor = visitNodes2) {\n    context.startLexicalEnvironment();\n    statements = nodesVisitor(statements, visitor, isStatement, start);\n    if (ensureUseStrict)\n      statements = context.factory.ensureUseStrict(statements);\n    return factory.mergeLexicalEnvironment(statements, context.endLexicalEnvironment());\n  }\n  function visitParameterList(nodes, visitor, context, nodesVisitor = visitNodes2) {\n    let updated;\n    context.startLexicalEnvironment();\n    if (nodes) {\n      context.setLexicalEnvironmentFlags(1, true);\n      updated = nodesVisitor(nodes, visitor, isParameter);\n      if (context.getLexicalEnvironmentFlags() & 2 && getEmitScriptTarget(context.getCompilerOptions()) >= 2) {\n        updated = addDefaultValueAssignmentsIfNeeded(updated, context);\n      }\n      context.setLexicalEnvironmentFlags(1, false);\n    }\n    context.suspendLexicalEnvironment();\n    return updated;\n  }\n  function addDefaultValueAssignmentsIfNeeded(parameters, context) {\n    let result;\n    for (let i = 0; i < parameters.length; i++) {\n      const parameter = parameters[i];\n      const updated = addDefaultValueAssignmentIfNeeded(parameter, context);\n      if (result || updated !== parameter) {\n        if (!result)\n          result = parameters.slice(0, i);\n        result[i] = updated;\n      }\n    }\n    if (result) {\n      return setTextRange(context.factory.createNodeArray(result, parameters.hasTrailingComma), parameters);\n    }\n    return parameters;\n  }\n  function addDefaultValueAssignmentIfNeeded(parameter, context) {\n    return parameter.dotDotDotToken ? parameter : isBindingPattern(parameter.name) ? addDefaultValueAssignmentForBindingPattern(parameter, context) : parameter.initializer ? addDefaultValueAssignmentForInitializer(parameter, parameter.name, parameter.initializer, context) : parameter;\n  }\n  function addDefaultValueAssignmentForBindingPattern(parameter, context) {\n    const { factory: factory2 } = context;\n    context.addInitializationStatement(factory2.createVariableStatement(void 0, factory2.createVariableDeclarationList([\n      factory2.createVariableDeclaration(parameter.name, void 0, parameter.type, parameter.initializer ? factory2.createConditionalExpression(factory2.createStrictEquality(factory2.getGeneratedNameForNode(parameter), factory2.createVoidZero()), void 0, parameter.initializer, void 0, factory2.getGeneratedNameForNode(parameter)) : factory2.getGeneratedNameForNode(parameter))\n    ])));\n    return factory2.updateParameterDeclaration(parameter, parameter.modifiers, parameter.dotDotDotToken, factory2.getGeneratedNameForNode(parameter), parameter.questionToken, parameter.type, void 0);\n  }\n  function addDefaultValueAssignmentForInitializer(parameter, name, initializer, context) {\n    const factory2 = context.factory;\n    context.addInitializationStatement(factory2.createIfStatement(factory2.createTypeCheck(factory2.cloneNode(name), \"undefined\"), setEmitFlags(setTextRange(factory2.createBlock([\n      factory2.createExpressionStatement(setEmitFlags(setTextRange(factory2.createAssignment(setEmitFlags(factory2.cloneNode(name), 96), setEmitFlags(initializer, 96 | getEmitFlags(initializer) | 3072)), parameter), 3072))\n    ]), parameter), 1 | 64 | 768 | 3072)));\n    return factory2.updateParameterDeclaration(parameter, parameter.modifiers, parameter.dotDotDotToken, parameter.name, parameter.questionToken, parameter.type, void 0);\n  }\n  function visitFunctionBody(node, visitor, context, nodeVisitor = visitNode) {\n    context.resumeLexicalEnvironment();\n    const updated = nodeVisitor(node, visitor, isConciseBody);\n    const declarations = context.endLexicalEnvironment();\n    if (some(declarations)) {\n      if (!updated) {\n        return context.factory.createBlock(declarations);\n      }\n      const block = context.factory.converters.convertToFunctionBlock(updated);\n      const statements = factory.mergeLexicalEnvironment(block.statements, declarations);\n      return context.factory.updateBlock(block, statements);\n    }\n    return updated;\n  }\n  function visitIterationBody(body, visitor, context, nodeVisitor = visitNode) {\n    context.startBlockScope();\n    const updated = nodeVisitor(body, visitor, isStatement, context.factory.liftToBlock);\n    Debug.assert(updated);\n    const declarations = context.endBlockScope();\n    if (some(declarations)) {\n      if (isBlock(updated)) {\n        declarations.push(...updated.statements);\n        return context.factory.updateBlock(updated, declarations);\n      }\n      declarations.push(updated);\n      return context.factory.createBlock(declarations);\n    }\n    return updated;\n  }\n  function visitCommaListElements(elements, visitor, discardVisitor = visitor) {\n    if (discardVisitor === visitor || elements.length <= 1) {\n      return visitNodes2(elements, visitor, isExpression);\n    }\n    let i = 0;\n    const length2 = elements.length;\n    return visitNodes2(elements, (node) => {\n      const discarded = i < length2 - 1;\n      i++;\n      return discarded ? discardVisitor(node) : visitor(node);\n    }, isExpression);\n  }\n  function visitEachChild(node, visitor, context, nodesVisitor = visitNodes2, tokenVisitor, nodeVisitor = visitNode) {\n    if (node === void 0) {\n      return void 0;\n    }\n    const fn = visitEachChildTable[node.kind];\n    return fn === void 0 ? node : fn(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor);\n  }\n  function extractSingleNode(nodes) {\n    Debug.assert(nodes.length <= 1, \"Too many nodes written to output.\");\n    return singleOrUndefined(nodes);\n  }\n  var visitEachChildTable;\n  var init_visitorPublic = __esm({\n    \"src/compiler/visitorPublic.ts\"() {\n      \"use strict\";\n      init_ts2();\n      visitEachChildTable = {\n        [163]: function visitEachChildOfQualifiedName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateQualifiedName(node, Debug.checkDefined(nodeVisitor(node.left, visitor, isEntityName)), Debug.checkDefined(nodeVisitor(node.right, visitor, isIdentifier)));\n        },\n        [164]: function visitEachChildOfComputedPropertyName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateComputedPropertyName(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)));\n        },\n        [165]: function visitEachChildOfTypeParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateTypeParameterDeclaration(node, nodesVisitor(node.modifiers, visitor, isModifier), Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)), nodeVisitor(node.constraint, visitor, isTypeNode), nodeVisitor(node.default, visitor, isTypeNode));\n        },\n        [166]: function visitEachChildOfParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {\n          return context.factory.updateParameterDeclaration(node, nodesVisitor(node.modifiers, visitor, isModifierLike), tokenVisitor ? nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken) : node.dotDotDotToken, Debug.checkDefined(nodeVisitor(node.name, visitor, isBindingName)), tokenVisitor ? nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken) : node.questionToken, nodeVisitor(node.type, visitor, isTypeNode), nodeVisitor(node.initializer, visitor, isExpression));\n        },\n        [167]: function visitEachChildOfDecorator(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateDecorator(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)));\n        },\n        [168]: function visitEachChildOfPropertySignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {\n          return context.factory.updatePropertySignature(node, nodesVisitor(node.modifiers, visitor, isModifier), Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), tokenVisitor ? nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken) : node.questionToken, nodeVisitor(node.type, visitor, isTypeNode));\n        },\n        [169]: function visitEachChildOfPropertyDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {\n          var _a2, _b;\n          return context.factory.updatePropertyDeclaration(node, nodesVisitor(node.modifiers, visitor, isModifierLike), Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), tokenVisitor ? nodeVisitor((_a2 = node.questionToken) != null ? _a2 : node.exclamationToken, tokenVisitor, isQuestionOrExclamationToken) : (_b = node.questionToken) != null ? _b : node.exclamationToken, nodeVisitor(node.type, visitor, isTypeNode), nodeVisitor(node.initializer, visitor, isExpression));\n        },\n        [170]: function visitEachChildOfMethodSignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {\n          return context.factory.updateMethodSignature(node, nodesVisitor(node.modifiers, visitor, isModifier), Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), tokenVisitor ? nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken) : node.questionToken, nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, isParameter), nodeVisitor(node.type, visitor, isTypeNode));\n        },\n        [171]: function visitEachChildOfMethodDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {\n          return context.factory.updateMethodDeclaration(node, nodesVisitor(node.modifiers, visitor, isModifierLike), tokenVisitor ? nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken) : node.asteriskToken, Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), tokenVisitor ? nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken) : node.questionToken, nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, isTypeNode), visitFunctionBody(node.body, visitor, context, nodeVisitor));\n        },\n        [173]: function visitEachChildOfConstructorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateConstructorDeclaration(node, nodesVisitor(node.modifiers, visitor, isModifierLike), visitParameterList(node.parameters, visitor, context, nodesVisitor), visitFunctionBody(node.body, visitor, context, nodeVisitor));\n        },\n        [174]: function visitEachChildOfGetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateGetAccessorDeclaration(node, nodesVisitor(node.modifiers, visitor, isModifierLike), Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, isTypeNode), visitFunctionBody(node.body, visitor, context, nodeVisitor));\n        },\n        [175]: function visitEachChildOfSetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateSetAccessorDeclaration(node, nodesVisitor(node.modifiers, visitor, isModifierLike), Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), visitParameterList(node.parameters, visitor, context, nodesVisitor), visitFunctionBody(node.body, visitor, context, nodeVisitor));\n        },\n        [172]: function visitEachChildOfClassStaticBlockDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          context.startLexicalEnvironment();\n          context.suspendLexicalEnvironment();\n          return context.factory.updateClassStaticBlockDeclaration(node, visitFunctionBody(node.body, visitor, context, nodeVisitor));\n        },\n        [176]: function visitEachChildOfCallSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateCallSignature(node, nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, isParameter), nodeVisitor(node.type, visitor, isTypeNode));\n        },\n        [177]: function visitEachChildOfConstructSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateConstructSignature(node, nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, isParameter), nodeVisitor(node.type, visitor, isTypeNode));\n        },\n        [178]: function visitEachChildOfIndexSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateIndexSignature(node, nodesVisitor(node.modifiers, visitor, isModifierLike), nodesVisitor(node.parameters, visitor, isParameter), Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)));\n        },\n        [179]: function visitEachChildOfTypePredicateNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateTypePredicateNode(node, nodeVisitor(node.assertsModifier, visitor, isAssertsKeyword), Debug.checkDefined(nodeVisitor(node.parameterName, visitor, isIdentifierOrThisTypeNode)), nodeVisitor(node.type, visitor, isTypeNode));\n        },\n        [180]: function visitEachChildOfTypeReferenceNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateTypeReferenceNode(node, Debug.checkDefined(nodeVisitor(node.typeName, visitor, isEntityName)), nodesVisitor(node.typeArguments, visitor, isTypeNode));\n        },\n        [181]: function visitEachChildOfFunctionTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateFunctionTypeNode(node, nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, isParameter), Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)));\n        },\n        [182]: function visitEachChildOfConstructorTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateConstructorTypeNode(node, nodesVisitor(node.modifiers, visitor, isModifier), nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, isParameter), Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)));\n        },\n        [183]: function visitEachChildOfTypeQueryNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateTypeQueryNode(node, Debug.checkDefined(nodeVisitor(node.exprName, visitor, isEntityName)), nodesVisitor(node.typeArguments, visitor, isTypeNode));\n        },\n        [184]: function visitEachChildOfTypeLiteralNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {\n          return context.factory.updateTypeLiteralNode(node, nodesVisitor(node.members, visitor, isTypeElement));\n        },\n        [185]: function visitEachChildOfArrayTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateArrayTypeNode(node, Debug.checkDefined(nodeVisitor(node.elementType, visitor, isTypeNode)));\n        },\n        [186]: function visitEachChildOfTupleTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {\n          return context.factory.updateTupleTypeNode(node, nodesVisitor(node.elements, visitor, isTypeNode));\n        },\n        [187]: function visitEachChildOfOptionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateOptionalTypeNode(node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)));\n        },\n        [188]: function visitEachChildOfRestTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateRestTypeNode(node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)));\n        },\n        [189]: function visitEachChildOfUnionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {\n          return context.factory.updateUnionTypeNode(node, nodesVisitor(node.types, visitor, isTypeNode));\n        },\n        [190]: function visitEachChildOfIntersectionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {\n          return context.factory.updateIntersectionTypeNode(node, nodesVisitor(node.types, visitor, isTypeNode));\n        },\n        [191]: function visitEachChildOfConditionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateConditionalTypeNode(node, Debug.checkDefined(nodeVisitor(node.checkType, visitor, isTypeNode)), Debug.checkDefined(nodeVisitor(node.extendsType, visitor, isTypeNode)), Debug.checkDefined(nodeVisitor(node.trueType, visitor, isTypeNode)), Debug.checkDefined(nodeVisitor(node.falseType, visitor, isTypeNode)));\n        },\n        [192]: function visitEachChildOfInferTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateInferTypeNode(node, Debug.checkDefined(nodeVisitor(node.typeParameter, visitor, isTypeParameterDeclaration)));\n        },\n        [202]: function visitEachChildOfImportTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateImportTypeNode(node, Debug.checkDefined(nodeVisitor(node.argument, visitor, isTypeNode)), nodeVisitor(node.assertions, visitor, isImportTypeAssertionContainer), nodeVisitor(node.qualifier, visitor, isEntityName), nodesVisitor(node.typeArguments, visitor, isTypeNode), node.isTypeOf);\n        },\n        [298]: function visitEachChildOfImportTypeAssertionContainer(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateImportTypeAssertionContainer(node, Debug.checkDefined(nodeVisitor(node.assertClause, visitor, isAssertClause)), node.multiLine);\n        },\n        [199]: function visitEachChildOfNamedTupleMember(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {\n          return context.factory.updateNamedTupleMember(node, tokenVisitor ? nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken) : node.dotDotDotToken, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)), tokenVisitor ? nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken) : node.questionToken, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)));\n        },\n        [193]: function visitEachChildOfParenthesizedType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateParenthesizedType(node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)));\n        },\n        [195]: function visitEachChildOfTypeOperatorNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateTypeOperatorNode(node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)));\n        },\n        [196]: function visitEachChildOfIndexedAccessType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateIndexedAccessTypeNode(node, Debug.checkDefined(nodeVisitor(node.objectType, visitor, isTypeNode)), Debug.checkDefined(nodeVisitor(node.indexType, visitor, isTypeNode)));\n        },\n        [197]: function visitEachChildOfMappedType(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {\n          return context.factory.updateMappedTypeNode(node, tokenVisitor ? nodeVisitor(node.readonlyToken, tokenVisitor, isReadonlyKeywordOrPlusOrMinusToken) : node.readonlyToken, Debug.checkDefined(nodeVisitor(node.typeParameter, visitor, isTypeParameterDeclaration)), nodeVisitor(node.nameType, visitor, isTypeNode), tokenVisitor ? nodeVisitor(node.questionToken, tokenVisitor, isQuestionOrPlusOrMinusToken) : node.questionToken, nodeVisitor(node.type, visitor, isTypeNode), nodesVisitor(node.members, visitor, isTypeElement));\n        },\n        [198]: function visitEachChildOfLiteralTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateLiteralTypeNode(node, Debug.checkDefined(nodeVisitor(node.literal, visitor, isLiteralTypeLiteral)));\n        },\n        [200]: function visitEachChildOfTemplateLiteralType(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateTemplateLiteralType(node, Debug.checkDefined(nodeVisitor(node.head, visitor, isTemplateHead)), nodesVisitor(node.templateSpans, visitor, isTemplateLiteralTypeSpan));\n        },\n        [201]: function visitEachChildOfTemplateLiteralTypeSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateTemplateLiteralTypeSpan(node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)), Debug.checkDefined(nodeVisitor(node.literal, visitor, isTemplateMiddleOrTemplateTail)));\n        },\n        [203]: function visitEachChildOfObjectBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {\n          return context.factory.updateObjectBindingPattern(node, nodesVisitor(node.elements, visitor, isBindingElement));\n        },\n        [204]: function visitEachChildOfArrayBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {\n          return context.factory.updateArrayBindingPattern(node, nodesVisitor(node.elements, visitor, isArrayBindingElement));\n        },\n        [205]: function visitEachChildOfBindingElement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {\n          return context.factory.updateBindingElement(node, tokenVisitor ? nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken) : node.dotDotDotToken, nodeVisitor(node.propertyName, visitor, isPropertyName), Debug.checkDefined(nodeVisitor(node.name, visitor, isBindingName)), nodeVisitor(node.initializer, visitor, isExpression));\n        },\n        [206]: function visitEachChildOfArrayLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {\n          return context.factory.updateArrayLiteralExpression(node, nodesVisitor(node.elements, visitor, isExpression));\n        },\n        [207]: function visitEachChildOfObjectLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {\n          return context.factory.updateObjectLiteralExpression(node, nodesVisitor(node.properties, visitor, isObjectLiteralElementLike));\n        },\n        [208]: function visitEachChildOfPropertyAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {\n          return isPropertyAccessChain(node) ? context.factory.updatePropertyAccessChain(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), tokenVisitor ? nodeVisitor(node.questionDotToken, tokenVisitor, isQuestionDotToken) : node.questionDotToken, Debug.checkDefined(nodeVisitor(node.name, visitor, isMemberName))) : context.factory.updatePropertyAccessExpression(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.name, visitor, isMemberName)));\n        },\n        [209]: function visitEachChildOfElementAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {\n          return isElementAccessChain(node) ? context.factory.updateElementAccessChain(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), tokenVisitor ? nodeVisitor(node.questionDotToken, tokenVisitor, isQuestionDotToken) : node.questionDotToken, Debug.checkDefined(nodeVisitor(node.argumentExpression, visitor, isExpression))) : context.factory.updateElementAccessExpression(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.argumentExpression, visitor, isExpression)));\n        },\n        [210]: function visitEachChildOfCallExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {\n          return isCallChain(node) ? context.factory.updateCallChain(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), tokenVisitor ? nodeVisitor(node.questionDotToken, tokenVisitor, isQuestionDotToken) : node.questionDotToken, nodesVisitor(node.typeArguments, visitor, isTypeNode), nodesVisitor(node.arguments, visitor, isExpression)) : context.factory.updateCallExpression(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), nodesVisitor(node.typeArguments, visitor, isTypeNode), nodesVisitor(node.arguments, visitor, isExpression));\n        },\n        [211]: function visitEachChildOfNewExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateNewExpression(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), nodesVisitor(node.typeArguments, visitor, isTypeNode), nodesVisitor(node.arguments, visitor, isExpression));\n        },\n        [212]: function visitEachChildOfTaggedTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateTaggedTemplateExpression(node, Debug.checkDefined(nodeVisitor(node.tag, visitor, isExpression)), nodesVisitor(node.typeArguments, visitor, isTypeNode), Debug.checkDefined(nodeVisitor(node.template, visitor, isTemplateLiteral)));\n        },\n        [213]: function visitEachChildOfTypeAssertionExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateTypeAssertion(node, Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)), Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)));\n        },\n        [214]: function visitEachChildOfParenthesizedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateParenthesizedExpression(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)));\n        },\n        [215]: function visitEachChildOfFunctionExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {\n          return context.factory.updateFunctionExpression(node, nodesVisitor(node.modifiers, visitor, isModifier), tokenVisitor ? nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken) : node.asteriskToken, nodeVisitor(node.name, visitor, isIdentifier), nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, isTypeNode), visitFunctionBody(node.body, visitor, context, nodeVisitor));\n        },\n        [216]: function visitEachChildOfArrowFunction(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {\n          return context.factory.updateArrowFunction(node, nodesVisitor(node.modifiers, visitor, isModifier), nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, isTypeNode), tokenVisitor ? Debug.checkDefined(nodeVisitor(node.equalsGreaterThanToken, tokenVisitor, isEqualsGreaterThanToken)) : node.equalsGreaterThanToken, visitFunctionBody(node.body, visitor, context, nodeVisitor));\n        },\n        [217]: function visitEachChildOfDeleteExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateDeleteExpression(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)));\n        },\n        [218]: function visitEachChildOfTypeOfExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateTypeOfExpression(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)));\n        },\n        [219]: function visitEachChildOfVoidExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateVoidExpression(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)));\n        },\n        [220]: function visitEachChildOfAwaitExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateAwaitExpression(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)));\n        },\n        [221]: function visitEachChildOfPrefixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updatePrefixUnaryExpression(node, Debug.checkDefined(nodeVisitor(node.operand, visitor, isExpression)));\n        },\n        [222]: function visitEachChildOfPostfixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updatePostfixUnaryExpression(node, Debug.checkDefined(nodeVisitor(node.operand, visitor, isExpression)));\n        },\n        [223]: function visitEachChildOfBinaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {\n          return context.factory.updateBinaryExpression(node, Debug.checkDefined(nodeVisitor(node.left, visitor, isExpression)), tokenVisitor ? Debug.checkDefined(nodeVisitor(node.operatorToken, tokenVisitor, isBinaryOperatorToken)) : node.operatorToken, Debug.checkDefined(nodeVisitor(node.right, visitor, isExpression)));\n        },\n        [224]: function visitEachChildOfConditionalExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {\n          return context.factory.updateConditionalExpression(node, Debug.checkDefined(nodeVisitor(node.condition, visitor, isExpression)), tokenVisitor ? Debug.checkDefined(nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken)) : node.questionToken, Debug.checkDefined(nodeVisitor(node.whenTrue, visitor, isExpression)), tokenVisitor ? Debug.checkDefined(nodeVisitor(node.colonToken, tokenVisitor, isColonToken)) : node.colonToken, Debug.checkDefined(nodeVisitor(node.whenFalse, visitor, isExpression)));\n        },\n        [225]: function visitEachChildOfTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateTemplateExpression(node, Debug.checkDefined(nodeVisitor(node.head, visitor, isTemplateHead)), nodesVisitor(node.templateSpans, visitor, isTemplateSpan));\n        },\n        [226]: function visitEachChildOfYieldExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {\n          return context.factory.updateYieldExpression(node, tokenVisitor ? nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken) : node.asteriskToken, nodeVisitor(node.expression, visitor, isExpression));\n        },\n        [227]: function visitEachChildOfSpreadElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateSpreadElement(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)));\n        },\n        [228]: function visitEachChildOfClassExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateClassExpression(node, nodesVisitor(node.modifiers, visitor, isModifierLike), nodeVisitor(node.name, visitor, isIdentifier), nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), nodesVisitor(node.heritageClauses, visitor, isHeritageClause), nodesVisitor(node.members, visitor, isClassElement));\n        },\n        [230]: function visitEachChildOfExpressionWithTypeArguments(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateExpressionWithTypeArguments(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), nodesVisitor(node.typeArguments, visitor, isTypeNode));\n        },\n        [231]: function visitEachChildOfAsExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateAsExpression(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)));\n        },\n        [235]: function visitEachChildOfSatisfiesExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateSatisfiesExpression(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)));\n        },\n        [232]: function visitEachChildOfNonNullExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return isOptionalChain(node) ? context.factory.updateNonNullChain(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))) : context.factory.updateNonNullExpression(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)));\n        },\n        [233]: function visitEachChildOfMetaProperty(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateMetaProperty(node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)));\n        },\n        [236]: function visitEachChildOfTemplateSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateTemplateSpan(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.literal, visitor, isTemplateMiddleOrTemplateTail)));\n        },\n        [238]: function visitEachChildOfBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {\n          return context.factory.updateBlock(node, nodesVisitor(node.statements, visitor, isStatement));\n        },\n        [240]: function visitEachChildOfVariableStatement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateVariableStatement(node, nodesVisitor(node.modifiers, visitor, isModifierLike), Debug.checkDefined(nodeVisitor(node.declarationList, visitor, isVariableDeclarationList)));\n        },\n        [241]: function visitEachChildOfExpressionStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateExpressionStatement(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)));\n        },\n        [242]: function visitEachChildOfIfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateIfStatement(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.thenStatement, visitor, isStatement, context.factory.liftToBlock)), nodeVisitor(node.elseStatement, visitor, isStatement, context.factory.liftToBlock));\n        },\n        [243]: function visitEachChildOfDoStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateDoStatement(node, visitIterationBody(node.statement, visitor, context, nodeVisitor), Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)));\n        },\n        [244]: function visitEachChildOfWhileStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateWhileStatement(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), visitIterationBody(node.statement, visitor, context, nodeVisitor));\n        },\n        [245]: function visitEachChildOfForStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateForStatement(node, nodeVisitor(node.initializer, visitor, isForInitializer), nodeVisitor(node.condition, visitor, isExpression), nodeVisitor(node.incrementor, visitor, isExpression), visitIterationBody(node.statement, visitor, context, nodeVisitor));\n        },\n        [246]: function visitEachChildOfForInStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateForInStatement(node, Debug.checkDefined(nodeVisitor(node.initializer, visitor, isForInitializer)), Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), visitIterationBody(node.statement, visitor, context, nodeVisitor));\n        },\n        [247]: function visitEachChildOfForOfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {\n          return context.factory.updateForOfStatement(node, tokenVisitor ? nodeVisitor(node.awaitModifier, tokenVisitor, isAwaitKeyword) : node.awaitModifier, Debug.checkDefined(nodeVisitor(node.initializer, visitor, isForInitializer)), Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), visitIterationBody(node.statement, visitor, context, nodeVisitor));\n        },\n        [248]: function visitEachChildOfContinueStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateContinueStatement(node, nodeVisitor(node.label, visitor, isIdentifier));\n        },\n        [249]: function visitEachChildOfBreakStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateBreakStatement(node, nodeVisitor(node.label, visitor, isIdentifier));\n        },\n        [250]: function visitEachChildOfReturnStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateReturnStatement(node, nodeVisitor(node.expression, visitor, isExpression));\n        },\n        [251]: function visitEachChildOfWithStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateWithStatement(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.statement, visitor, isStatement, context.factory.liftToBlock)));\n        },\n        [252]: function visitEachChildOfSwitchStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateSwitchStatement(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), Debug.checkDefined(nodeVisitor(node.caseBlock, visitor, isCaseBlock)));\n        },\n        [253]: function visitEachChildOfLabeledStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateLabeledStatement(node, Debug.checkDefined(nodeVisitor(node.label, visitor, isIdentifier)), Debug.checkDefined(nodeVisitor(node.statement, visitor, isStatement, context.factory.liftToBlock)));\n        },\n        [254]: function visitEachChildOfThrowStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateThrowStatement(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)));\n        },\n        [255]: function visitEachChildOfTryStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateTryStatement(node, Debug.checkDefined(nodeVisitor(node.tryBlock, visitor, isBlock)), nodeVisitor(node.catchClause, visitor, isCatchClause), nodeVisitor(node.finallyBlock, visitor, isBlock));\n        },\n        [257]: function visitEachChildOfVariableDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {\n          return context.factory.updateVariableDeclaration(node, Debug.checkDefined(nodeVisitor(node.name, visitor, isBindingName)), tokenVisitor ? nodeVisitor(node.exclamationToken, tokenVisitor, isExclamationToken) : node.exclamationToken, nodeVisitor(node.type, visitor, isTypeNode), nodeVisitor(node.initializer, visitor, isExpression));\n        },\n        [258]: function visitEachChildOfVariableDeclarationList(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {\n          return context.factory.updateVariableDeclarationList(node, nodesVisitor(node.declarations, visitor, isVariableDeclaration));\n        },\n        [259]: function visitEachChildOfFunctionDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {\n          return context.factory.updateFunctionDeclaration(node, nodesVisitor(node.modifiers, visitor, isModifier), tokenVisitor ? nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken) : node.asteriskToken, nodeVisitor(node.name, visitor, isIdentifier), nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, isTypeNode), visitFunctionBody(node.body, visitor, context, nodeVisitor));\n        },\n        [260]: function visitEachChildOfClassDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateClassDeclaration(node, nodesVisitor(node.modifiers, visitor, isModifierLike), nodeVisitor(node.name, visitor, isIdentifier), nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), nodesVisitor(node.heritageClauses, visitor, isHeritageClause), nodesVisitor(node.members, visitor, isClassElement));\n        },\n        [261]: function visitEachChildOfInterfaceDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateInterfaceDeclaration(node, nodesVisitor(node.modifiers, visitor, isModifierLike), Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)), nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), nodesVisitor(node.heritageClauses, visitor, isHeritageClause), nodesVisitor(node.members, visitor, isTypeElement));\n        },\n        [262]: function visitEachChildOfTypeAliasDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateTypeAliasDeclaration(node, nodesVisitor(node.modifiers, visitor, isModifierLike), Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)), nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)));\n        },\n        [263]: function visitEachChildOfEnumDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateEnumDeclaration(node, nodesVisitor(node.modifiers, visitor, isModifierLike), Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)), nodesVisitor(node.members, visitor, isEnumMember));\n        },\n        [264]: function visitEachChildOfModuleDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateModuleDeclaration(node, nodesVisitor(node.modifiers, visitor, isModifierLike), Debug.checkDefined(nodeVisitor(node.name, visitor, isModuleName)), nodeVisitor(node.body, visitor, isModuleBody));\n        },\n        [265]: function visitEachChildOfModuleBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {\n          return context.factory.updateModuleBlock(node, nodesVisitor(node.statements, visitor, isStatement));\n        },\n        [266]: function visitEachChildOfCaseBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {\n          return context.factory.updateCaseBlock(node, nodesVisitor(node.clauses, visitor, isCaseOrDefaultClause));\n        },\n        [267]: function visitEachChildOfNamespaceExportDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateNamespaceExportDeclaration(node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)));\n        },\n        [268]: function visitEachChildOfImportEqualsDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateImportEqualsDeclaration(node, nodesVisitor(node.modifiers, visitor, isModifierLike), node.isTypeOnly, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)), Debug.checkDefined(nodeVisitor(node.moduleReference, visitor, isModuleReference)));\n        },\n        [269]: function visitEachChildOfImportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateImportDeclaration(node, nodesVisitor(node.modifiers, visitor, isModifierLike), nodeVisitor(node.importClause, visitor, isImportClause), Debug.checkDefined(nodeVisitor(node.moduleSpecifier, visitor, isExpression)), nodeVisitor(node.assertClause, visitor, isAssertClause));\n        },\n        [296]: function visitEachChildOfAssertClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {\n          return context.factory.updateAssertClause(node, nodesVisitor(node.elements, visitor, isAssertEntry), node.multiLine);\n        },\n        [297]: function visitEachChildOfAssertEntry(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateAssertEntry(node, Debug.checkDefined(nodeVisitor(node.name, visitor, isAssertionKey)), Debug.checkDefined(nodeVisitor(node.value, visitor, isExpression)));\n        },\n        [270]: function visitEachChildOfImportClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateImportClause(node, node.isTypeOnly, nodeVisitor(node.name, visitor, isIdentifier), nodeVisitor(node.namedBindings, visitor, isNamedImportBindings));\n        },\n        [271]: function visitEachChildOfNamespaceImport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateNamespaceImport(node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)));\n        },\n        [277]: function visitEachChildOfNamespaceExport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateNamespaceExport(node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)));\n        },\n        [272]: function visitEachChildOfNamedImports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {\n          return context.factory.updateNamedImports(node, nodesVisitor(node.elements, visitor, isImportSpecifier));\n        },\n        [273]: function visitEachChildOfImportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateImportSpecifier(node, node.isTypeOnly, nodeVisitor(node.propertyName, visitor, isIdentifier), Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)));\n        },\n        [274]: function visitEachChildOfExportAssignment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateExportAssignment(node, nodesVisitor(node.modifiers, visitor, isModifierLike), Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)));\n        },\n        [275]: function visitEachChildOfExportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateExportDeclaration(node, nodesVisitor(node.modifiers, visitor, isModifierLike), node.isTypeOnly, nodeVisitor(node.exportClause, visitor, isNamedExportBindings), nodeVisitor(node.moduleSpecifier, visitor, isExpression), nodeVisitor(node.assertClause, visitor, isAssertClause));\n        },\n        [276]: function visitEachChildOfNamedExports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {\n          return context.factory.updateNamedExports(node, nodesVisitor(node.elements, visitor, isExportSpecifier));\n        },\n        [278]: function visitEachChildOfExportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateExportSpecifier(node, node.isTypeOnly, nodeVisitor(node.propertyName, visitor, isIdentifier), Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)));\n        },\n        [280]: function visitEachChildOfExternalModuleReference(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateExternalModuleReference(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)));\n        },\n        [281]: function visitEachChildOfJsxElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateJsxElement(node, Debug.checkDefined(nodeVisitor(node.openingElement, visitor, isJsxOpeningElement)), nodesVisitor(node.children, visitor, isJsxChild), Debug.checkDefined(nodeVisitor(node.closingElement, visitor, isJsxClosingElement)));\n        },\n        [282]: function visitEachChildOfJsxSelfClosingElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateJsxSelfClosingElement(node, Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)), nodesVisitor(node.typeArguments, visitor, isTypeNode), Debug.checkDefined(nodeVisitor(node.attributes, visitor, isJsxAttributes)));\n        },\n        [283]: function visitEachChildOfJsxOpeningElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateJsxOpeningElement(node, Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)), nodesVisitor(node.typeArguments, visitor, isTypeNode), Debug.checkDefined(nodeVisitor(node.attributes, visitor, isJsxAttributes)));\n        },\n        [284]: function visitEachChildOfJsxClosingElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateJsxClosingElement(node, Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)));\n        },\n        [285]: function visitEachChildOfJsxFragment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateJsxFragment(node, Debug.checkDefined(nodeVisitor(node.openingFragment, visitor, isJsxOpeningFragment)), nodesVisitor(node.children, visitor, isJsxChild), Debug.checkDefined(nodeVisitor(node.closingFragment, visitor, isJsxClosingFragment)));\n        },\n        [288]: function visitEachChildOfJsxAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateJsxAttribute(node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)), nodeVisitor(node.initializer, visitor, isStringLiteralOrJsxExpression));\n        },\n        [289]: function visitEachChildOfJsxAttributes(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {\n          return context.factory.updateJsxAttributes(node, nodesVisitor(node.properties, visitor, isJsxAttributeLike));\n        },\n        [290]: function visitEachChildOfJsxSpreadAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateJsxSpreadAttribute(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)));\n        },\n        [291]: function visitEachChildOfJsxExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateJsxExpression(node, nodeVisitor(node.expression, visitor, isExpression));\n        },\n        [292]: function visitEachChildOfCaseClause(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateCaseClause(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), nodesVisitor(node.statements, visitor, isStatement));\n        },\n        [293]: function visitEachChildOfDefaultClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {\n          return context.factory.updateDefaultClause(node, nodesVisitor(node.statements, visitor, isStatement));\n        },\n        [294]: function visitEachChildOfHeritageClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {\n          return context.factory.updateHeritageClause(node, nodesVisitor(node.types, visitor, isExpressionWithTypeArguments));\n        },\n        [295]: function visitEachChildOfCatchClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateCatchClause(node, nodeVisitor(node.variableDeclaration, visitor, isVariableDeclaration), Debug.checkDefined(nodeVisitor(node.block, visitor, isBlock)));\n        },\n        [299]: function visitEachChildOfPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updatePropertyAssignment(node, Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), Debug.checkDefined(nodeVisitor(node.initializer, visitor, isExpression)));\n        },\n        [300]: function visitEachChildOfShorthandPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateShorthandPropertyAssignment(node, Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)), nodeVisitor(node.objectAssignmentInitializer, visitor, isExpression));\n        },\n        [301]: function visitEachChildOfSpreadAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateSpreadAssignment(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)));\n        },\n        [302]: function visitEachChildOfEnumMember(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updateEnumMember(node, Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), nodeVisitor(node.initializer, visitor, isExpression));\n        },\n        [308]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) {\n          return context.factory.updateSourceFile(node, visitLexicalEnvironment(node.statements, visitor, context));\n        },\n        [356]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {\n          return context.factory.updatePartiallyEmittedExpression(node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)));\n        },\n        [357]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {\n          return context.factory.updateCommaListExpression(node, nodesVisitor(node.elements, visitor, isExpression));\n        }\n      };\n    }\n  });\n  function createSourceMapGenerator(host, file, sourceRoot, sourcesDirectoryPath, generatorOptions) {\n    var { enter, exit } = generatorOptions.extendedDiagnostics ? createTimer(\"Source Map\", \"beforeSourcemap\", \"afterSourcemap\") : nullTimer;\n    var rawSources = [];\n    var sources = [];\n    var sourceToSourceIndexMap = /* @__PURE__ */ new Map();\n    var sourcesContent;\n    var names = [];\n    var nameToNameIndexMap;\n    var mappingCharCodes = [];\n    var mappings = \"\";\n    var lastGeneratedLine = 0;\n    var lastGeneratedCharacter = 0;\n    var lastSourceIndex = 0;\n    var lastSourceLine = 0;\n    var lastSourceCharacter = 0;\n    var lastNameIndex = 0;\n    var hasLast = false;\n    var pendingGeneratedLine = 0;\n    var pendingGeneratedCharacter = 0;\n    var pendingSourceIndex = 0;\n    var pendingSourceLine = 0;\n    var pendingSourceCharacter = 0;\n    var pendingNameIndex = 0;\n    var hasPending = false;\n    var hasPendingSource = false;\n    var hasPendingName = false;\n    return {\n      getSources: () => rawSources,\n      addSource,\n      setSourceContent,\n      addName,\n      addMapping,\n      appendSourceMap,\n      toJSON,\n      toString: () => JSON.stringify(toJSON())\n    };\n    function addSource(fileName) {\n      enter();\n      const source = getRelativePathToDirectoryOrUrl(sourcesDirectoryPath, fileName, host.getCurrentDirectory(), host.getCanonicalFileName, true);\n      let sourceIndex = sourceToSourceIndexMap.get(source);\n      if (sourceIndex === void 0) {\n        sourceIndex = sources.length;\n        sources.push(source);\n        rawSources.push(fileName);\n        sourceToSourceIndexMap.set(source, sourceIndex);\n      }\n      exit();\n      return sourceIndex;\n    }\n    function setSourceContent(sourceIndex, content) {\n      enter();\n      if (content !== null) {\n        if (!sourcesContent)\n          sourcesContent = [];\n        while (sourcesContent.length < sourceIndex) {\n          sourcesContent.push(null);\n        }\n        sourcesContent[sourceIndex] = content;\n      }\n      exit();\n    }\n    function addName(name) {\n      enter();\n      if (!nameToNameIndexMap)\n        nameToNameIndexMap = /* @__PURE__ */ new Map();\n      let nameIndex = nameToNameIndexMap.get(name);\n      if (nameIndex === void 0) {\n        nameIndex = names.length;\n        names.push(name);\n        nameToNameIndexMap.set(name, nameIndex);\n      }\n      exit();\n      return nameIndex;\n    }\n    function isNewGeneratedPosition(generatedLine, generatedCharacter) {\n      return !hasPending || pendingGeneratedLine !== generatedLine || pendingGeneratedCharacter !== generatedCharacter;\n    }\n    function isBacktrackingSourcePosition(sourceIndex, sourceLine, sourceCharacter) {\n      return sourceIndex !== void 0 && sourceLine !== void 0 && sourceCharacter !== void 0 && pendingSourceIndex === sourceIndex && (pendingSourceLine > sourceLine || pendingSourceLine === sourceLine && pendingSourceCharacter > sourceCharacter);\n    }\n    function addMapping(generatedLine, generatedCharacter, sourceIndex, sourceLine, sourceCharacter, nameIndex) {\n      Debug.assert(generatedLine >= pendingGeneratedLine, \"generatedLine cannot backtrack\");\n      Debug.assert(generatedCharacter >= 0, \"generatedCharacter cannot be negative\");\n      Debug.assert(sourceIndex === void 0 || sourceIndex >= 0, \"sourceIndex cannot be negative\");\n      Debug.assert(sourceLine === void 0 || sourceLine >= 0, \"sourceLine cannot be negative\");\n      Debug.assert(sourceCharacter === void 0 || sourceCharacter >= 0, \"sourceCharacter cannot be negative\");\n      enter();\n      if (isNewGeneratedPosition(generatedLine, generatedCharacter) || isBacktrackingSourcePosition(sourceIndex, sourceLine, sourceCharacter)) {\n        commitPendingMapping();\n        pendingGeneratedLine = generatedLine;\n        pendingGeneratedCharacter = generatedCharacter;\n        hasPendingSource = false;\n        hasPendingName = false;\n        hasPending = true;\n      }\n      if (sourceIndex !== void 0 && sourceLine !== void 0 && sourceCharacter !== void 0) {\n        pendingSourceIndex = sourceIndex;\n        pendingSourceLine = sourceLine;\n        pendingSourceCharacter = sourceCharacter;\n        hasPendingSource = true;\n        if (nameIndex !== void 0) {\n          pendingNameIndex = nameIndex;\n          hasPendingName = true;\n        }\n      }\n      exit();\n    }\n    function appendSourceMap(generatedLine, generatedCharacter, map2, sourceMapPath, start, end) {\n      Debug.assert(generatedLine >= pendingGeneratedLine, \"generatedLine cannot backtrack\");\n      Debug.assert(generatedCharacter >= 0, \"generatedCharacter cannot be negative\");\n      enter();\n      const sourceIndexToNewSourceIndexMap = [];\n      let nameIndexToNewNameIndexMap;\n      const mappingIterator = decodeMappings(map2.mappings);\n      for (const raw of mappingIterator) {\n        if (end && (raw.generatedLine > end.line || raw.generatedLine === end.line && raw.generatedCharacter > end.character)) {\n          break;\n        }\n        if (start && (raw.generatedLine < start.line || start.line === raw.generatedLine && raw.generatedCharacter < start.character)) {\n          continue;\n        }\n        let newSourceIndex;\n        let newSourceLine;\n        let newSourceCharacter;\n        let newNameIndex;\n        if (raw.sourceIndex !== void 0) {\n          newSourceIndex = sourceIndexToNewSourceIndexMap[raw.sourceIndex];\n          if (newSourceIndex === void 0) {\n            const rawPath = map2.sources[raw.sourceIndex];\n            const relativePath = map2.sourceRoot ? combinePaths(map2.sourceRoot, rawPath) : rawPath;\n            const combinedPath = combinePaths(getDirectoryPath(sourceMapPath), relativePath);\n            sourceIndexToNewSourceIndexMap[raw.sourceIndex] = newSourceIndex = addSource(combinedPath);\n            if (map2.sourcesContent && typeof map2.sourcesContent[raw.sourceIndex] === \"string\") {\n              setSourceContent(newSourceIndex, map2.sourcesContent[raw.sourceIndex]);\n            }\n          }\n          newSourceLine = raw.sourceLine;\n          newSourceCharacter = raw.sourceCharacter;\n          if (map2.names && raw.nameIndex !== void 0) {\n            if (!nameIndexToNewNameIndexMap)\n              nameIndexToNewNameIndexMap = [];\n            newNameIndex = nameIndexToNewNameIndexMap[raw.nameIndex];\n            if (newNameIndex === void 0) {\n              nameIndexToNewNameIndexMap[raw.nameIndex] = newNameIndex = addName(map2.names[raw.nameIndex]);\n            }\n          }\n        }\n        const rawGeneratedLine = raw.generatedLine - (start ? start.line : 0);\n        const newGeneratedLine = rawGeneratedLine + generatedLine;\n        const rawGeneratedCharacter = start && start.line === raw.generatedLine ? raw.generatedCharacter - start.character : raw.generatedCharacter;\n        const newGeneratedCharacter = rawGeneratedLine === 0 ? rawGeneratedCharacter + generatedCharacter : rawGeneratedCharacter;\n        addMapping(newGeneratedLine, newGeneratedCharacter, newSourceIndex, newSourceLine, newSourceCharacter, newNameIndex);\n      }\n      exit();\n    }\n    function shouldCommitMapping() {\n      return !hasLast || lastGeneratedLine !== pendingGeneratedLine || lastGeneratedCharacter !== pendingGeneratedCharacter || lastSourceIndex !== pendingSourceIndex || lastSourceLine !== pendingSourceLine || lastSourceCharacter !== pendingSourceCharacter || lastNameIndex !== pendingNameIndex;\n    }\n    function appendMappingCharCode(charCode) {\n      mappingCharCodes.push(charCode);\n      if (mappingCharCodes.length >= 1024) {\n        flushMappingBuffer();\n      }\n    }\n    function commitPendingMapping() {\n      if (!hasPending || !shouldCommitMapping()) {\n        return;\n      }\n      enter();\n      if (lastGeneratedLine < pendingGeneratedLine) {\n        do {\n          appendMappingCharCode(59);\n          lastGeneratedLine++;\n        } while (lastGeneratedLine < pendingGeneratedLine);\n        lastGeneratedCharacter = 0;\n      } else {\n        Debug.assertEqual(lastGeneratedLine, pendingGeneratedLine, \"generatedLine cannot backtrack\");\n        if (hasLast) {\n          appendMappingCharCode(44);\n        }\n      }\n      appendBase64VLQ(pendingGeneratedCharacter - lastGeneratedCharacter);\n      lastGeneratedCharacter = pendingGeneratedCharacter;\n      if (hasPendingSource) {\n        appendBase64VLQ(pendingSourceIndex - lastSourceIndex);\n        lastSourceIndex = pendingSourceIndex;\n        appendBase64VLQ(pendingSourceLine - lastSourceLine);\n        lastSourceLine = pendingSourceLine;\n        appendBase64VLQ(pendingSourceCharacter - lastSourceCharacter);\n        lastSourceCharacter = pendingSourceCharacter;\n        if (hasPendingName) {\n          appendBase64VLQ(pendingNameIndex - lastNameIndex);\n          lastNameIndex = pendingNameIndex;\n        }\n      }\n      hasLast = true;\n      exit();\n    }\n    function flushMappingBuffer() {\n      if (mappingCharCodes.length > 0) {\n        mappings += String.fromCharCode.apply(void 0, mappingCharCodes);\n        mappingCharCodes.length = 0;\n      }\n    }\n    function toJSON() {\n      commitPendingMapping();\n      flushMappingBuffer();\n      return {\n        version: 3,\n        file,\n        sourceRoot,\n        sources,\n        names,\n        mappings,\n        sourcesContent\n      };\n    }\n    function appendBase64VLQ(inValue) {\n      if (inValue < 0) {\n        inValue = (-inValue << 1) + 1;\n      } else {\n        inValue = inValue << 1;\n      }\n      do {\n        let currentDigit = inValue & 31;\n        inValue = inValue >> 5;\n        if (inValue > 0) {\n          currentDigit = currentDigit | 32;\n        }\n        appendMappingCharCode(base64FormatEncode(currentDigit));\n      } while (inValue > 0);\n    }\n  }\n  function getLineInfo(text, lineStarts) {\n    return {\n      getLineCount: () => lineStarts.length,\n      getLineText: (line) => text.substring(lineStarts[line], lineStarts[line + 1])\n    };\n  }\n  function tryGetSourceMappingURL(lineInfo) {\n    for (let index = lineInfo.getLineCount() - 1; index >= 0; index--) {\n      const line = lineInfo.getLineText(index);\n      const comment = sourceMapCommentRegExp.exec(line);\n      if (comment) {\n        return trimStringEnd(comment[1]);\n      } else if (!line.match(whitespaceOrMapCommentRegExp)) {\n        break;\n      }\n    }\n  }\n  function isStringOrNull(x) {\n    return typeof x === \"string\" || x === null;\n  }\n  function isRawSourceMap(x) {\n    return x !== null && typeof x === \"object\" && x.version === 3 && typeof x.file === \"string\" && typeof x.mappings === \"string\" && isArray(x.sources) && every(x.sources, isString) && (x.sourceRoot === void 0 || x.sourceRoot === null || typeof x.sourceRoot === \"string\") && (x.sourcesContent === void 0 || x.sourcesContent === null || isArray(x.sourcesContent) && every(x.sourcesContent, isStringOrNull)) && (x.names === void 0 || x.names === null || isArray(x.names) && every(x.names, isString));\n  }\n  function tryParseRawSourceMap(text) {\n    try {\n      const parsed = JSON.parse(text);\n      if (isRawSourceMap(parsed)) {\n        return parsed;\n      }\n    } catch (e) {\n    }\n    return void 0;\n  }\n  function decodeMappings(mappings) {\n    let done = false;\n    let pos = 0;\n    let generatedLine = 0;\n    let generatedCharacter = 0;\n    let sourceIndex = 0;\n    let sourceLine = 0;\n    let sourceCharacter = 0;\n    let nameIndex = 0;\n    let error;\n    return {\n      get pos() {\n        return pos;\n      },\n      get error() {\n        return error;\n      },\n      get state() {\n        return captureMapping(true, true);\n      },\n      next() {\n        while (!done && pos < mappings.length) {\n          const ch = mappings.charCodeAt(pos);\n          if (ch === 59) {\n            generatedLine++;\n            generatedCharacter = 0;\n            pos++;\n            continue;\n          }\n          if (ch === 44) {\n            pos++;\n            continue;\n          }\n          let hasSource = false;\n          let hasName = false;\n          generatedCharacter += base64VLQFormatDecode();\n          if (hasReportedError())\n            return stopIterating();\n          if (generatedCharacter < 0)\n            return setErrorAndStopIterating(\"Invalid generatedCharacter found\");\n          if (!isSourceMappingSegmentEnd()) {\n            hasSource = true;\n            sourceIndex += base64VLQFormatDecode();\n            if (hasReportedError())\n              return stopIterating();\n            if (sourceIndex < 0)\n              return setErrorAndStopIterating(\"Invalid sourceIndex found\");\n            if (isSourceMappingSegmentEnd())\n              return setErrorAndStopIterating(\"Unsupported Format: No entries after sourceIndex\");\n            sourceLine += base64VLQFormatDecode();\n            if (hasReportedError())\n              return stopIterating();\n            if (sourceLine < 0)\n              return setErrorAndStopIterating(\"Invalid sourceLine found\");\n            if (isSourceMappingSegmentEnd())\n              return setErrorAndStopIterating(\"Unsupported Format: No entries after sourceLine\");\n            sourceCharacter += base64VLQFormatDecode();\n            if (hasReportedError())\n              return stopIterating();\n            if (sourceCharacter < 0)\n              return setErrorAndStopIterating(\"Invalid sourceCharacter found\");\n            if (!isSourceMappingSegmentEnd()) {\n              hasName = true;\n              nameIndex += base64VLQFormatDecode();\n              if (hasReportedError())\n                return stopIterating();\n              if (nameIndex < 0)\n                return setErrorAndStopIterating(\"Invalid nameIndex found\");\n              if (!isSourceMappingSegmentEnd())\n                return setErrorAndStopIterating(\"Unsupported Error Format: Entries after nameIndex\");\n            }\n          }\n          return { value: captureMapping(hasSource, hasName), done };\n        }\n        return stopIterating();\n      },\n      [Symbol.iterator]() {\n        return this;\n      }\n    };\n    function captureMapping(hasSource, hasName) {\n      return {\n        generatedLine,\n        generatedCharacter,\n        sourceIndex: hasSource ? sourceIndex : void 0,\n        sourceLine: hasSource ? sourceLine : void 0,\n        sourceCharacter: hasSource ? sourceCharacter : void 0,\n        nameIndex: hasName ? nameIndex : void 0\n      };\n    }\n    function stopIterating() {\n      done = true;\n      return { value: void 0, done: true };\n    }\n    function setError(message) {\n      if (error === void 0) {\n        error = message;\n      }\n    }\n    function setErrorAndStopIterating(message) {\n      setError(message);\n      return stopIterating();\n    }\n    function hasReportedError() {\n      return error !== void 0;\n    }\n    function isSourceMappingSegmentEnd() {\n      return pos === mappings.length || mappings.charCodeAt(pos) === 44 || mappings.charCodeAt(pos) === 59;\n    }\n    function base64VLQFormatDecode() {\n      let moreDigits = true;\n      let shiftCount = 0;\n      let value = 0;\n      for (; moreDigits; pos++) {\n        if (pos >= mappings.length)\n          return setError(\"Error in decoding base64VLQFormatDecode, past the mapping string\"), -1;\n        const currentByte = base64FormatDecode(mappings.charCodeAt(pos));\n        if (currentByte === -1)\n          return setError(\"Invalid character in VLQ\"), -1;\n        moreDigits = (currentByte & 32) !== 0;\n        value = value | (currentByte & 31) << shiftCount;\n        shiftCount += 5;\n      }\n      if ((value & 1) === 0) {\n        value = value >> 1;\n      } else {\n        value = value >> 1;\n        value = -value;\n      }\n      return value;\n    }\n  }\n  function sameMapping(left, right) {\n    return left === right || left.generatedLine === right.generatedLine && left.generatedCharacter === right.generatedCharacter && left.sourceIndex === right.sourceIndex && left.sourceLine === right.sourceLine && left.sourceCharacter === right.sourceCharacter && left.nameIndex === right.nameIndex;\n  }\n  function isSourceMapping(mapping) {\n    return mapping.sourceIndex !== void 0 && mapping.sourceLine !== void 0 && mapping.sourceCharacter !== void 0;\n  }\n  function base64FormatEncode(value) {\n    return value >= 0 && value < 26 ? 65 + value : value >= 26 && value < 52 ? 97 + value - 26 : value >= 52 && value < 62 ? 48 + value - 52 : value === 62 ? 43 : value === 63 ? 47 : Debug.fail(`${value}: not a base64 value`);\n  }\n  function base64FormatDecode(ch) {\n    return ch >= 65 && ch <= 90 ? ch - 65 : ch >= 97 && ch <= 122 ? ch - 97 + 26 : ch >= 48 && ch <= 57 ? ch - 48 + 52 : ch === 43 ? 62 : ch === 47 ? 63 : -1;\n  }\n  function isSourceMappedPosition(value) {\n    return value.sourceIndex !== void 0 && value.sourcePosition !== void 0;\n  }\n  function sameMappedPosition(left, right) {\n    return left.generatedPosition === right.generatedPosition && left.sourceIndex === right.sourceIndex && left.sourcePosition === right.sourcePosition;\n  }\n  function compareSourcePositions(left, right) {\n    Debug.assert(left.sourceIndex === right.sourceIndex);\n    return compareValues(left.sourcePosition, right.sourcePosition);\n  }\n  function compareGeneratedPositions(left, right) {\n    return compareValues(left.generatedPosition, right.generatedPosition);\n  }\n  function getSourcePositionOfMapping(value) {\n    return value.sourcePosition;\n  }\n  function getGeneratedPositionOfMapping(value) {\n    return value.generatedPosition;\n  }\n  function createDocumentPositionMapper(host, map2, mapPath) {\n    const mapDirectory = getDirectoryPath(mapPath);\n    const sourceRoot = map2.sourceRoot ? getNormalizedAbsolutePath(map2.sourceRoot, mapDirectory) : mapDirectory;\n    const generatedAbsoluteFilePath = getNormalizedAbsolutePath(map2.file, mapDirectory);\n    const generatedFile = host.getSourceFileLike(generatedAbsoluteFilePath);\n    const sourceFileAbsolutePaths = map2.sources.map((source) => getNormalizedAbsolutePath(source, sourceRoot));\n    const sourceToSourceIndexMap = new Map(sourceFileAbsolutePaths.map((source, i) => [host.getCanonicalFileName(source), i]));\n    let decodedMappings;\n    let generatedMappings;\n    let sourceMappings;\n    return {\n      getSourcePosition,\n      getGeneratedPosition\n    };\n    function processMapping(mapping) {\n      const generatedPosition = generatedFile !== void 0 ? getPositionOfLineAndCharacter(generatedFile, mapping.generatedLine, mapping.generatedCharacter, true) : -1;\n      let source;\n      let sourcePosition;\n      if (isSourceMapping(mapping)) {\n        const sourceFile = host.getSourceFileLike(sourceFileAbsolutePaths[mapping.sourceIndex]);\n        source = map2.sources[mapping.sourceIndex];\n        sourcePosition = sourceFile !== void 0 ? getPositionOfLineAndCharacter(sourceFile, mapping.sourceLine, mapping.sourceCharacter, true) : -1;\n      }\n      return {\n        generatedPosition,\n        source,\n        sourceIndex: mapping.sourceIndex,\n        sourcePosition,\n        nameIndex: mapping.nameIndex\n      };\n    }\n    function getDecodedMappings() {\n      if (decodedMappings === void 0) {\n        const decoder = decodeMappings(map2.mappings);\n        const mappings = arrayFrom(decoder, processMapping);\n        if (decoder.error !== void 0) {\n          if (host.log) {\n            host.log(`Encountered error while decoding sourcemap: ${decoder.error}`);\n          }\n          decodedMappings = emptyArray;\n        } else {\n          decodedMappings = mappings;\n        }\n      }\n      return decodedMappings;\n    }\n    function getSourceMappings(sourceIndex) {\n      if (sourceMappings === void 0) {\n        const lists = [];\n        for (const mapping of getDecodedMappings()) {\n          if (!isSourceMappedPosition(mapping))\n            continue;\n          let list = lists[mapping.sourceIndex];\n          if (!list)\n            lists[mapping.sourceIndex] = list = [];\n          list.push(mapping);\n        }\n        sourceMappings = lists.map((list) => sortAndDeduplicate(list, compareSourcePositions, sameMappedPosition));\n      }\n      return sourceMappings[sourceIndex];\n    }\n    function getGeneratedMappings() {\n      if (generatedMappings === void 0) {\n        const list = [];\n        for (const mapping of getDecodedMappings()) {\n          list.push(mapping);\n        }\n        generatedMappings = sortAndDeduplicate(list, compareGeneratedPositions, sameMappedPosition);\n      }\n      return generatedMappings;\n    }\n    function getGeneratedPosition(loc) {\n      const sourceIndex = sourceToSourceIndexMap.get(host.getCanonicalFileName(loc.fileName));\n      if (sourceIndex === void 0)\n        return loc;\n      const sourceMappings2 = getSourceMappings(sourceIndex);\n      if (!some(sourceMappings2))\n        return loc;\n      let targetIndex = binarySearchKey(sourceMappings2, loc.pos, getSourcePositionOfMapping, compareValues);\n      if (targetIndex < 0) {\n        targetIndex = ~targetIndex;\n      }\n      const mapping = sourceMappings2[targetIndex];\n      if (mapping === void 0 || mapping.sourceIndex !== sourceIndex) {\n        return loc;\n      }\n      return { fileName: generatedAbsoluteFilePath, pos: mapping.generatedPosition };\n    }\n    function getSourcePosition(loc) {\n      const generatedMappings2 = getGeneratedMappings();\n      if (!some(generatedMappings2))\n        return loc;\n      let targetIndex = binarySearchKey(generatedMappings2, loc.pos, getGeneratedPositionOfMapping, compareValues);\n      if (targetIndex < 0) {\n        targetIndex = ~targetIndex;\n      }\n      const mapping = generatedMappings2[targetIndex];\n      if (mapping === void 0 || !isSourceMappedPosition(mapping)) {\n        return loc;\n      }\n      return { fileName: sourceFileAbsolutePaths[mapping.sourceIndex], pos: mapping.sourcePosition };\n    }\n  }\n  var sourceMapCommentRegExpDontCareLineStart, sourceMapCommentRegExp, whitespaceOrMapCommentRegExp, identitySourceMapConsumer;\n  var init_sourcemap = __esm({\n    \"src/compiler/sourcemap.ts\"() {\n      \"use strict\";\n      init_ts2();\n      init_ts_performance();\n      sourceMapCommentRegExpDontCareLineStart = /\\/\\/[@#] source[M]appingURL=(.+)\\r?\\n?$/;\n      sourceMapCommentRegExp = /^\\/\\/[@#] source[M]appingURL=(.+)\\r?\\n?$/;\n      whitespaceOrMapCommentRegExp = /^\\s*(\\/\\/[@#] .*)?$/;\n      identitySourceMapConsumer = {\n        getSourcePosition: identity,\n        getGeneratedPosition: identity\n      };\n    }\n  });\n  function getOriginalNodeId(node) {\n    node = getOriginalNode(node);\n    return node ? getNodeId(node) : 0;\n  }\n  function containsDefaultReference(node) {\n    if (!node)\n      return false;\n    if (!isNamedImports(node))\n      return false;\n    return some(node.elements, isNamedDefaultReference);\n  }\n  function isNamedDefaultReference(e) {\n    return e.propertyName !== void 0 && e.propertyName.escapedText === \"default\";\n  }\n  function chainBundle(context, transformSourceFile) {\n    return transformSourceFileOrBundle;\n    function transformSourceFileOrBundle(node) {\n      return node.kind === 308 ? transformSourceFile(node) : transformBundle(node);\n    }\n    function transformBundle(node) {\n      return context.factory.createBundle(map(node.sourceFiles, transformSourceFile), node.prepends);\n    }\n  }\n  function getExportNeedsImportStarHelper(node) {\n    return !!getNamespaceDeclarationNode(node);\n  }\n  function getImportNeedsImportStarHelper(node) {\n    if (!!getNamespaceDeclarationNode(node)) {\n      return true;\n    }\n    const bindings = node.importClause && node.importClause.namedBindings;\n    if (!bindings) {\n      return false;\n    }\n    if (!isNamedImports(bindings))\n      return false;\n    let defaultRefCount = 0;\n    for (const binding of bindings.elements) {\n      if (isNamedDefaultReference(binding)) {\n        defaultRefCount++;\n      }\n    }\n    return defaultRefCount > 0 && defaultRefCount !== bindings.elements.length || !!(bindings.elements.length - defaultRefCount) && isDefaultImport(node);\n  }\n  function getImportNeedsImportDefaultHelper(node) {\n    return !getImportNeedsImportStarHelper(node) && (isDefaultImport(node) || !!node.importClause && isNamedImports(node.importClause.namedBindings) && containsDefaultReference(node.importClause.namedBindings));\n  }\n  function collectExternalModuleInfo(context, sourceFile, resolver, compilerOptions) {\n    const externalImports = [];\n    const exportSpecifiers = createMultiMap();\n    const exportedBindings = [];\n    const uniqueExports = /* @__PURE__ */ new Map();\n    let exportedNames;\n    let hasExportDefault = false;\n    let exportEquals;\n    let hasExportStarsToExportValues = false;\n    let hasImportStar = false;\n    let hasImportDefault = false;\n    for (const node of sourceFile.statements) {\n      switch (node.kind) {\n        case 269:\n          externalImports.push(node);\n          if (!hasImportStar && getImportNeedsImportStarHelper(node)) {\n            hasImportStar = true;\n          }\n          if (!hasImportDefault && getImportNeedsImportDefaultHelper(node)) {\n            hasImportDefault = true;\n          }\n          break;\n        case 268:\n          if (node.moduleReference.kind === 280) {\n            externalImports.push(node);\n          }\n          break;\n        case 275:\n          if (node.moduleSpecifier) {\n            if (!node.exportClause) {\n              externalImports.push(node);\n              hasExportStarsToExportValues = true;\n            } else {\n              externalImports.push(node);\n              if (isNamedExports(node.exportClause)) {\n                addExportedNamesForExportDeclaration(node);\n              } else {\n                const name = node.exportClause.name;\n                if (!uniqueExports.get(idText(name))) {\n                  multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), name);\n                  uniqueExports.set(idText(name), true);\n                  exportedNames = append(exportedNames, name);\n                }\n                hasImportStar = true;\n              }\n            }\n          } else {\n            addExportedNamesForExportDeclaration(node);\n          }\n          break;\n        case 274:\n          if (node.isExportEquals && !exportEquals) {\n            exportEquals = node;\n          }\n          break;\n        case 240:\n          if (hasSyntacticModifier(node, 1)) {\n            for (const decl of node.declarationList.declarations) {\n              exportedNames = collectExportedVariableInfo(decl, uniqueExports, exportedNames);\n            }\n          }\n          break;\n        case 259:\n          if (hasSyntacticModifier(node, 1)) {\n            if (hasSyntacticModifier(node, 1024)) {\n              if (!hasExportDefault) {\n                multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), context.factory.getDeclarationName(node));\n                hasExportDefault = true;\n              }\n            } else {\n              const name = node.name;\n              if (!uniqueExports.get(idText(name))) {\n                multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), name);\n                uniqueExports.set(idText(name), true);\n                exportedNames = append(exportedNames, name);\n              }\n            }\n          }\n          break;\n        case 260:\n          if (hasSyntacticModifier(node, 1)) {\n            if (hasSyntacticModifier(node, 1024)) {\n              if (!hasExportDefault) {\n                multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), context.factory.getDeclarationName(node));\n                hasExportDefault = true;\n              }\n            } else {\n              const name = node.name;\n              if (name && !uniqueExports.get(idText(name))) {\n                multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), name);\n                uniqueExports.set(idText(name), true);\n                exportedNames = append(exportedNames, name);\n              }\n            }\n          }\n          break;\n      }\n    }\n    const externalHelpersImportDeclaration = createExternalHelpersImportDeclarationIfNeeded(context.factory, context.getEmitHelperFactory(), sourceFile, compilerOptions, hasExportStarsToExportValues, hasImportStar, hasImportDefault);\n    if (externalHelpersImportDeclaration) {\n      externalImports.unshift(externalHelpersImportDeclaration);\n    }\n    return { externalImports, exportSpecifiers, exportEquals, hasExportStarsToExportValues, exportedBindings, exportedNames, externalHelpersImportDeclaration };\n    function addExportedNamesForExportDeclaration(node) {\n      for (const specifier of cast(node.exportClause, isNamedExports).elements) {\n        if (!uniqueExports.get(idText(specifier.name))) {\n          const name = specifier.propertyName || specifier.name;\n          if (!node.moduleSpecifier) {\n            exportSpecifiers.add(idText(name), specifier);\n          }\n          const decl = resolver.getReferencedImportDeclaration(name) || resolver.getReferencedValueDeclaration(name);\n          if (decl) {\n            multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(decl), specifier.name);\n          }\n          uniqueExports.set(idText(specifier.name), true);\n          exportedNames = append(exportedNames, specifier.name);\n        }\n      }\n    }\n  }\n  function collectExportedVariableInfo(decl, uniqueExports, exportedNames) {\n    if (isBindingPattern(decl.name)) {\n      for (const element of decl.name.elements) {\n        if (!isOmittedExpression(element)) {\n          exportedNames = collectExportedVariableInfo(element, uniqueExports, exportedNames);\n        }\n      }\n    } else if (!isGeneratedIdentifier(decl.name)) {\n      const text = idText(decl.name);\n      if (!uniqueExports.get(text)) {\n        uniqueExports.set(text, true);\n        exportedNames = append(exportedNames, decl.name);\n      }\n    }\n    return exportedNames;\n  }\n  function multiMapSparseArrayAdd(map2, key, value) {\n    let values = map2[key];\n    if (values) {\n      values.push(value);\n    } else {\n      map2[key] = values = [value];\n    }\n    return values;\n  }\n  function isSimpleCopiableExpression(expression) {\n    return isStringLiteralLike(expression) || expression.kind === 8 || isKeyword(expression.kind) || isIdentifier(expression);\n  }\n  function isSimpleInlineableExpression(expression) {\n    return !isIdentifier(expression) && isSimpleCopiableExpression(expression);\n  }\n  function isCompoundAssignment(kind) {\n    return kind >= 64 && kind <= 78;\n  }\n  function getNonAssignmentOperatorForCompoundAssignment(kind) {\n    switch (kind) {\n      case 64:\n        return 39;\n      case 65:\n        return 40;\n      case 66:\n        return 41;\n      case 67:\n        return 42;\n      case 68:\n        return 43;\n      case 69:\n        return 44;\n      case 70:\n        return 47;\n      case 71:\n        return 48;\n      case 72:\n        return 49;\n      case 73:\n        return 50;\n      case 74:\n        return 51;\n      case 78:\n        return 52;\n      case 75:\n        return 56;\n      case 76:\n        return 55;\n      case 77:\n        return 60;\n    }\n  }\n  function getSuperCallFromStatement(statement) {\n    if (!isExpressionStatement(statement)) {\n      return void 0;\n    }\n    const expression = skipParentheses(statement.expression);\n    return isSuperCall(expression) ? expression : void 0;\n  }\n  function findSuperStatementIndex(statements, indexAfterLastPrologueStatement) {\n    for (let i = indexAfterLastPrologueStatement; i < statements.length; i += 1) {\n      const statement = statements[i];\n      if (getSuperCallFromStatement(statement)) {\n        return i;\n      }\n    }\n    return -1;\n  }\n  function getProperties(node, requireInitializer, isStatic2) {\n    return filter(node.members, (m) => isInitializedOrStaticProperty(m, requireInitializer, isStatic2));\n  }\n  function isStaticPropertyDeclarationOrClassStaticBlockDeclaration(element) {\n    return isStaticPropertyDeclaration(element) || isClassStaticBlockDeclaration(element);\n  }\n  function getStaticPropertiesAndClassStaticBlock(node) {\n    return filter(node.members, isStaticPropertyDeclarationOrClassStaticBlockDeclaration);\n  }\n  function isInitializedOrStaticProperty(member, requireInitializer, isStatic2) {\n    return isPropertyDeclaration(member) && (!!member.initializer || !requireInitializer) && hasStaticModifier(member) === isStatic2;\n  }\n  function isStaticPropertyDeclaration(member) {\n    return isPropertyDeclaration(member) && hasStaticModifier(member);\n  }\n  function isInitializedProperty(member) {\n    return member.kind === 169 && member.initializer !== void 0;\n  }\n  function isNonStaticMethodOrAccessorWithPrivateName(member) {\n    return !isStatic(member) && (isMethodOrAccessor(member) || isAutoAccessorPropertyDeclaration(member)) && isPrivateIdentifier(member.name);\n  }\n  function getDecoratorsOfParameters(node) {\n    let decorators;\n    if (node) {\n      const parameters = node.parameters;\n      const firstParameterIsThis = parameters.length > 0 && parameterIsThisKeyword(parameters[0]);\n      const firstParameterOffset = firstParameterIsThis ? 1 : 0;\n      const numParameters = firstParameterIsThis ? parameters.length - 1 : parameters.length;\n      for (let i = 0; i < numParameters; i++) {\n        const parameter = parameters[i + firstParameterOffset];\n        if (decorators || hasDecorators(parameter)) {\n          if (!decorators) {\n            decorators = new Array(numParameters);\n          }\n          decorators[i] = getDecorators(parameter);\n        }\n      }\n    }\n    return decorators;\n  }\n  function getAllDecoratorsOfClass(node) {\n    const decorators = getDecorators(node);\n    const parameters = getDecoratorsOfParameters(getFirstConstructorWithBody(node));\n    if (!some(decorators) && !some(parameters)) {\n      return void 0;\n    }\n    return {\n      decorators,\n      parameters\n    };\n  }\n  function getAllDecoratorsOfClassElement(member, parent2, useLegacyDecorators) {\n    switch (member.kind) {\n      case 174:\n      case 175:\n        if (!useLegacyDecorators) {\n          return getAllDecoratorsOfMethod(member);\n        }\n        return getAllDecoratorsOfAccessors(member, parent2);\n      case 171:\n        return getAllDecoratorsOfMethod(member);\n      case 169:\n        return getAllDecoratorsOfProperty(member);\n      default:\n        return void 0;\n    }\n  }\n  function getAllDecoratorsOfAccessors(accessor, parent2) {\n    if (!accessor.body) {\n      return void 0;\n    }\n    const { firstAccessor, secondAccessor, getAccessor, setAccessor } = getAllAccessorDeclarations(parent2.members, accessor);\n    const firstAccessorWithDecorators = hasDecorators(firstAccessor) ? firstAccessor : secondAccessor && hasDecorators(secondAccessor) ? secondAccessor : void 0;\n    if (!firstAccessorWithDecorators || accessor !== firstAccessorWithDecorators) {\n      return void 0;\n    }\n    const decorators = getDecorators(firstAccessorWithDecorators);\n    const parameters = getDecoratorsOfParameters(setAccessor);\n    if (!some(decorators) && !some(parameters)) {\n      return void 0;\n    }\n    return {\n      decorators,\n      parameters,\n      getDecorators: getAccessor && getDecorators(getAccessor),\n      setDecorators: setAccessor && getDecorators(setAccessor)\n    };\n  }\n  function getAllDecoratorsOfMethod(method) {\n    if (!method.body) {\n      return void 0;\n    }\n    const decorators = getDecorators(method);\n    const parameters = getDecoratorsOfParameters(method);\n    if (!some(decorators) && !some(parameters)) {\n      return void 0;\n    }\n    return { decorators, parameters };\n  }\n  function getAllDecoratorsOfProperty(property) {\n    const decorators = getDecorators(property);\n    if (!some(decorators)) {\n      return void 0;\n    }\n    return { decorators };\n  }\n  function walkUpLexicalEnvironments(env, cb) {\n    while (env) {\n      const result = cb(env);\n      if (result !== void 0)\n        return result;\n      env = env.previous;\n    }\n  }\n  function newPrivateEnvironment(data) {\n    return { data };\n  }\n  function getPrivateIdentifier(privateEnv, name) {\n    var _a2, _b;\n    return isGeneratedPrivateIdentifier(name) ? (_a2 = privateEnv == null ? void 0 : privateEnv.generatedIdentifiers) == null ? void 0 : _a2.get(getNodeForGeneratedName(name)) : (_b = privateEnv == null ? void 0 : privateEnv.identifiers) == null ? void 0 : _b.get(name.escapedText);\n  }\n  function setPrivateIdentifier(privateEnv, name, entry) {\n    var _a2, _b;\n    if (isGeneratedPrivateIdentifier(name)) {\n      (_a2 = privateEnv.generatedIdentifiers) != null ? _a2 : privateEnv.generatedIdentifiers = /* @__PURE__ */ new Map();\n      privateEnv.generatedIdentifiers.set(getNodeForGeneratedName(name), entry);\n    } else {\n      (_b = privateEnv.identifiers) != null ? _b : privateEnv.identifiers = /* @__PURE__ */ new Map();\n      privateEnv.identifiers.set(name.escapedText, entry);\n    }\n  }\n  function accessPrivateIdentifier(env, name) {\n    return walkUpLexicalEnvironments(env, (env2) => getPrivateIdentifier(env2.privateEnv, name));\n  }\n  var init_utilities3 = __esm({\n    \"src/compiler/transformers/utilities.ts\"() {\n      \"use strict\";\n      init_ts2();\n    }\n  });\n  function flattenDestructuringAssignment(node, visitor, context, level, needsValue, createAssignmentCallback) {\n    let location = node;\n    let value;\n    if (isDestructuringAssignment(node)) {\n      value = node.right;\n      while (isEmptyArrayLiteral(node.left) || isEmptyObjectLiteral(node.left)) {\n        if (isDestructuringAssignment(value)) {\n          location = node = value;\n          value = node.right;\n        } else {\n          return Debug.checkDefined(visitNode(value, visitor, isExpression));\n        }\n      }\n    }\n    let expressions;\n    const flattenContext = {\n      context,\n      level,\n      downlevelIteration: !!context.getCompilerOptions().downlevelIteration,\n      hoistTempVariables: true,\n      emitExpression,\n      emitBindingOrAssignment,\n      createArrayBindingOrAssignmentPattern: (elements) => makeArrayAssignmentPattern(context.factory, elements),\n      createObjectBindingOrAssignmentPattern: (elements) => makeObjectAssignmentPattern(context.factory, elements),\n      createArrayBindingOrAssignmentElement: makeAssignmentElement,\n      visitor\n    };\n    if (value) {\n      value = visitNode(value, visitor, isExpression);\n      Debug.assert(value);\n      if (isIdentifier(value) && bindingOrAssignmentElementAssignsToName(node, value.escapedText) || bindingOrAssignmentElementContainsNonLiteralComputedName(node)) {\n        value = ensureIdentifier(flattenContext, value, false, location);\n      } else if (needsValue) {\n        value = ensureIdentifier(flattenContext, value, true, location);\n      } else if (nodeIsSynthesized(node)) {\n        location = value;\n      }\n    }\n    flattenBindingOrAssignmentElement(flattenContext, node, value, location, isDestructuringAssignment(node));\n    if (value && needsValue) {\n      if (!some(expressions)) {\n        return value;\n      }\n      expressions.push(value);\n    }\n    return context.factory.inlineExpressions(expressions) || context.factory.createOmittedExpression();\n    function emitExpression(expression) {\n      expressions = append(expressions, expression);\n    }\n    function emitBindingOrAssignment(target, value2, location2, original) {\n      Debug.assertNode(target, createAssignmentCallback ? isIdentifier : isExpression);\n      const expression = createAssignmentCallback ? createAssignmentCallback(target, value2, location2) : setTextRange(context.factory.createAssignment(Debug.checkDefined(visitNode(target, visitor, isExpression)), value2), location2);\n      expression.original = original;\n      emitExpression(expression);\n    }\n  }\n  function bindingOrAssignmentElementAssignsToName(element, escapedName) {\n    const target = getTargetOfBindingOrAssignmentElement(element);\n    if (isBindingOrAssignmentPattern(target)) {\n      return bindingOrAssignmentPatternAssignsToName(target, escapedName);\n    } else if (isIdentifier(target)) {\n      return target.escapedText === escapedName;\n    }\n    return false;\n  }\n  function bindingOrAssignmentPatternAssignsToName(pattern, escapedName) {\n    const elements = getElementsOfBindingOrAssignmentPattern(pattern);\n    for (const element of elements) {\n      if (bindingOrAssignmentElementAssignsToName(element, escapedName)) {\n        return true;\n      }\n    }\n    return false;\n  }\n  function bindingOrAssignmentElementContainsNonLiteralComputedName(element) {\n    const propertyName = tryGetPropertyNameOfBindingOrAssignmentElement(element);\n    if (propertyName && isComputedPropertyName(propertyName) && !isLiteralExpression(propertyName.expression)) {\n      return true;\n    }\n    const target = getTargetOfBindingOrAssignmentElement(element);\n    return !!target && isBindingOrAssignmentPattern(target) && bindingOrAssignmentPatternContainsNonLiteralComputedName(target);\n  }\n  function bindingOrAssignmentPatternContainsNonLiteralComputedName(pattern) {\n    return !!forEach(getElementsOfBindingOrAssignmentPattern(pattern), bindingOrAssignmentElementContainsNonLiteralComputedName);\n  }\n  function flattenDestructuringBinding(node, visitor, context, level, rval, hoistTempVariables = false, skipInitializer) {\n    let pendingExpressions;\n    const pendingDeclarations = [];\n    const declarations = [];\n    const flattenContext = {\n      context,\n      level,\n      downlevelIteration: !!context.getCompilerOptions().downlevelIteration,\n      hoistTempVariables,\n      emitExpression,\n      emitBindingOrAssignment,\n      createArrayBindingOrAssignmentPattern: (elements) => makeArrayBindingPattern(context.factory, elements),\n      createObjectBindingOrAssignmentPattern: (elements) => makeObjectBindingPattern(context.factory, elements),\n      createArrayBindingOrAssignmentElement: (name) => makeBindingElement(context.factory, name),\n      visitor\n    };\n    if (isVariableDeclaration(node)) {\n      let initializer = getInitializerOfBindingOrAssignmentElement(node);\n      if (initializer && (isIdentifier(initializer) && bindingOrAssignmentElementAssignsToName(node, initializer.escapedText) || bindingOrAssignmentElementContainsNonLiteralComputedName(node))) {\n        initializer = ensureIdentifier(flattenContext, Debug.checkDefined(visitNode(initializer, flattenContext.visitor, isExpression)), false, initializer);\n        node = context.factory.updateVariableDeclaration(node, node.name, void 0, void 0, initializer);\n      }\n    }\n    flattenBindingOrAssignmentElement(flattenContext, node, rval, node, skipInitializer);\n    if (pendingExpressions) {\n      const temp = context.factory.createTempVariable(void 0);\n      if (hoistTempVariables) {\n        const value = context.factory.inlineExpressions(pendingExpressions);\n        pendingExpressions = void 0;\n        emitBindingOrAssignment(temp, value, void 0, void 0);\n      } else {\n        context.hoistVariableDeclaration(temp);\n        const pendingDeclaration = last(pendingDeclarations);\n        pendingDeclaration.pendingExpressions = append(pendingDeclaration.pendingExpressions, context.factory.createAssignment(temp, pendingDeclaration.value));\n        addRange(pendingDeclaration.pendingExpressions, pendingExpressions);\n        pendingDeclaration.value = temp;\n      }\n    }\n    for (const { pendingExpressions: pendingExpressions2, name, value, location, original } of pendingDeclarations) {\n      const variable = context.factory.createVariableDeclaration(name, void 0, void 0, pendingExpressions2 ? context.factory.inlineExpressions(append(pendingExpressions2, value)) : value);\n      variable.original = original;\n      setTextRange(variable, location);\n      declarations.push(variable);\n    }\n    return declarations;\n    function emitExpression(value) {\n      pendingExpressions = append(pendingExpressions, value);\n    }\n    function emitBindingOrAssignment(target, value, location, original) {\n      Debug.assertNode(target, isBindingName);\n      if (pendingExpressions) {\n        value = context.factory.inlineExpressions(append(pendingExpressions, value));\n        pendingExpressions = void 0;\n      }\n      pendingDeclarations.push({ pendingExpressions, name: target, value, location, original });\n    }\n  }\n  function flattenBindingOrAssignmentElement(flattenContext, element, value, location, skipInitializer) {\n    const bindingTarget = getTargetOfBindingOrAssignmentElement(element);\n    if (!skipInitializer) {\n      const initializer = visitNode(getInitializerOfBindingOrAssignmentElement(element), flattenContext.visitor, isExpression);\n      if (initializer) {\n        if (value) {\n          value = createDefaultValueCheck(flattenContext, value, initializer, location);\n          if (!isSimpleInlineableExpression(initializer) && isBindingOrAssignmentPattern(bindingTarget)) {\n            value = ensureIdentifier(flattenContext, value, true, location);\n          }\n        } else {\n          value = initializer;\n        }\n      } else if (!value) {\n        value = flattenContext.context.factory.createVoidZero();\n      }\n    }\n    if (isObjectBindingOrAssignmentPattern(bindingTarget)) {\n      flattenObjectBindingOrAssignmentPattern(flattenContext, element, bindingTarget, value, location);\n    } else if (isArrayBindingOrAssignmentPattern(bindingTarget)) {\n      flattenArrayBindingOrAssignmentPattern(flattenContext, element, bindingTarget, value, location);\n    } else {\n      flattenContext.emitBindingOrAssignment(bindingTarget, value, location, element);\n    }\n  }\n  function flattenObjectBindingOrAssignmentPattern(flattenContext, parent2, pattern, value, location) {\n    const elements = getElementsOfBindingOrAssignmentPattern(pattern);\n    const numElements = elements.length;\n    if (numElements !== 1) {\n      const reuseIdentifierExpressions = !isDeclarationBindingElement(parent2) || numElements !== 0;\n      value = ensureIdentifier(flattenContext, value, reuseIdentifierExpressions, location);\n    }\n    let bindingElements;\n    let computedTempVariables;\n    for (let i = 0; i < numElements; i++) {\n      const element = elements[i];\n      if (!getRestIndicatorOfBindingOrAssignmentElement(element)) {\n        const propertyName = getPropertyNameOfBindingOrAssignmentElement(element);\n        if (flattenContext.level >= 1 && !(element.transformFlags & (32768 | 65536)) && !(getTargetOfBindingOrAssignmentElement(element).transformFlags & (32768 | 65536)) && !isComputedPropertyName(propertyName)) {\n          bindingElements = append(bindingElements, visitNode(element, flattenContext.visitor, isBindingOrAssignmentElement));\n        } else {\n          if (bindingElements) {\n            flattenContext.emitBindingOrAssignment(flattenContext.createObjectBindingOrAssignmentPattern(bindingElements), value, location, pattern);\n            bindingElements = void 0;\n          }\n          const rhsValue = createDestructuringPropertyAccess(flattenContext, value, propertyName);\n          if (isComputedPropertyName(propertyName)) {\n            computedTempVariables = append(computedTempVariables, rhsValue.argumentExpression);\n          }\n          flattenBindingOrAssignmentElement(flattenContext, element, rhsValue, element);\n        }\n      } else if (i === numElements - 1) {\n        if (bindingElements) {\n          flattenContext.emitBindingOrAssignment(flattenContext.createObjectBindingOrAssignmentPattern(bindingElements), value, location, pattern);\n          bindingElements = void 0;\n        }\n        const rhsValue = flattenContext.context.getEmitHelperFactory().createRestHelper(value, elements, computedTempVariables, pattern);\n        flattenBindingOrAssignmentElement(flattenContext, element, rhsValue, element);\n      }\n    }\n    if (bindingElements) {\n      flattenContext.emitBindingOrAssignment(flattenContext.createObjectBindingOrAssignmentPattern(bindingElements), value, location, pattern);\n    }\n  }\n  function flattenArrayBindingOrAssignmentPattern(flattenContext, parent2, pattern, value, location) {\n    const elements = getElementsOfBindingOrAssignmentPattern(pattern);\n    const numElements = elements.length;\n    if (flattenContext.level < 1 && flattenContext.downlevelIteration) {\n      value = ensureIdentifier(flattenContext, setTextRange(flattenContext.context.getEmitHelperFactory().createReadHelper(value, numElements > 0 && getRestIndicatorOfBindingOrAssignmentElement(elements[numElements - 1]) ? void 0 : numElements), location), false, location);\n    } else if (numElements !== 1 && (flattenContext.level < 1 || numElements === 0) || every(elements, isOmittedExpression)) {\n      const reuseIdentifierExpressions = !isDeclarationBindingElement(parent2) || numElements !== 0;\n      value = ensureIdentifier(flattenContext, value, reuseIdentifierExpressions, location);\n    }\n    let bindingElements;\n    let restContainingElements;\n    for (let i = 0; i < numElements; i++) {\n      const element = elements[i];\n      if (flattenContext.level >= 1) {\n        if (element.transformFlags & 65536 || flattenContext.hasTransformedPriorElement && !isSimpleBindingOrAssignmentElement(element)) {\n          flattenContext.hasTransformedPriorElement = true;\n          const temp = flattenContext.context.factory.createTempVariable(void 0);\n          if (flattenContext.hoistTempVariables) {\n            flattenContext.context.hoistVariableDeclaration(temp);\n          }\n          restContainingElements = append(restContainingElements, [temp, element]);\n          bindingElements = append(bindingElements, flattenContext.createArrayBindingOrAssignmentElement(temp));\n        } else {\n          bindingElements = append(bindingElements, element);\n        }\n      } else if (isOmittedExpression(element)) {\n        continue;\n      } else if (!getRestIndicatorOfBindingOrAssignmentElement(element)) {\n        const rhsValue = flattenContext.context.factory.createElementAccessExpression(value, i);\n        flattenBindingOrAssignmentElement(flattenContext, element, rhsValue, element);\n      } else if (i === numElements - 1) {\n        const rhsValue = flattenContext.context.factory.createArraySliceCall(value, i);\n        flattenBindingOrAssignmentElement(flattenContext, element, rhsValue, element);\n      }\n    }\n    if (bindingElements) {\n      flattenContext.emitBindingOrAssignment(flattenContext.createArrayBindingOrAssignmentPattern(bindingElements), value, location, pattern);\n    }\n    if (restContainingElements) {\n      for (const [id, element] of restContainingElements) {\n        flattenBindingOrAssignmentElement(flattenContext, element, id, element);\n      }\n    }\n  }\n  function isSimpleBindingOrAssignmentElement(element) {\n    const target = getTargetOfBindingOrAssignmentElement(element);\n    if (!target || isOmittedExpression(target))\n      return true;\n    const propertyName = tryGetPropertyNameOfBindingOrAssignmentElement(element);\n    if (propertyName && !isPropertyNameLiteral(propertyName))\n      return false;\n    const initializer = getInitializerOfBindingOrAssignmentElement(element);\n    if (initializer && !isSimpleInlineableExpression(initializer))\n      return false;\n    if (isBindingOrAssignmentPattern(target))\n      return every(getElementsOfBindingOrAssignmentPattern(target), isSimpleBindingOrAssignmentElement);\n    return isIdentifier(target);\n  }\n  function createDefaultValueCheck(flattenContext, value, defaultValue, location) {\n    value = ensureIdentifier(flattenContext, value, true, location);\n    return flattenContext.context.factory.createConditionalExpression(flattenContext.context.factory.createTypeCheck(value, \"undefined\"), void 0, defaultValue, void 0, value);\n  }\n  function createDestructuringPropertyAccess(flattenContext, value, propertyName) {\n    if (isComputedPropertyName(propertyName)) {\n      const argumentExpression = ensureIdentifier(flattenContext, Debug.checkDefined(visitNode(propertyName.expression, flattenContext.visitor, isExpression)), false, propertyName);\n      return flattenContext.context.factory.createElementAccessExpression(value, argumentExpression);\n    } else if (isStringOrNumericLiteralLike(propertyName)) {\n      const argumentExpression = factory.cloneNode(propertyName);\n      return flattenContext.context.factory.createElementAccessExpression(value, argumentExpression);\n    } else {\n      const name = flattenContext.context.factory.createIdentifier(idText(propertyName));\n      return flattenContext.context.factory.createPropertyAccessExpression(value, name);\n    }\n  }\n  function ensureIdentifier(flattenContext, value, reuseIdentifierExpressions, location) {\n    if (isIdentifier(value) && reuseIdentifierExpressions) {\n      return value;\n    } else {\n      const temp = flattenContext.context.factory.createTempVariable(void 0);\n      if (flattenContext.hoistTempVariables) {\n        flattenContext.context.hoistVariableDeclaration(temp);\n        flattenContext.emitExpression(setTextRange(flattenContext.context.factory.createAssignment(temp, value), location));\n      } else {\n        flattenContext.emitBindingOrAssignment(temp, value, location, void 0);\n      }\n      return temp;\n    }\n  }\n  function makeArrayBindingPattern(factory2, elements) {\n    Debug.assertEachNode(elements, isArrayBindingElement);\n    return factory2.createArrayBindingPattern(elements);\n  }\n  function makeArrayAssignmentPattern(factory2, elements) {\n    Debug.assertEachNode(elements, isArrayBindingOrAssignmentElement);\n    return factory2.createArrayLiteralExpression(map(elements, factory2.converters.convertToArrayAssignmentElement));\n  }\n  function makeObjectBindingPattern(factory2, elements) {\n    Debug.assertEachNode(elements, isBindingElement);\n    return factory2.createObjectBindingPattern(elements);\n  }\n  function makeObjectAssignmentPattern(factory2, elements) {\n    Debug.assertEachNode(elements, isObjectBindingOrAssignmentElement);\n    return factory2.createObjectLiteralExpression(map(elements, factory2.converters.convertToObjectAssignmentElement));\n  }\n  function makeBindingElement(factory2, name) {\n    return factory2.createBindingElement(void 0, void 0, name);\n  }\n  function makeAssignmentElement(name) {\n    return name;\n  }\n  var FlattenLevel;\n  var init_destructuring = __esm({\n    \"src/compiler/transformers/destructuring.ts\"() {\n      \"use strict\";\n      init_ts2();\n      FlattenLevel = /* @__PURE__ */ ((FlattenLevel2) => {\n        FlattenLevel2[FlattenLevel2[\"All\"] = 0] = \"All\";\n        FlattenLevel2[FlattenLevel2[\"ObjectRest\"] = 1] = \"ObjectRest\";\n        return FlattenLevel2;\n      })(FlattenLevel || {});\n    }\n  });\n  function processTaggedTemplateExpression(context, node, visitor, currentSourceFile, recordTaggedTemplateString, level) {\n    const tag = visitNode(node.tag, visitor, isExpression);\n    Debug.assert(tag);\n    const templateArguments = [void 0];\n    const cookedStrings = [];\n    const rawStrings = [];\n    const template = node.template;\n    if (level === 0 && !hasInvalidEscape(template)) {\n      return visitEachChild(node, visitor, context);\n    }\n    if (isNoSubstitutionTemplateLiteral(template)) {\n      cookedStrings.push(createTemplateCooked(template));\n      rawStrings.push(getRawLiteral(template, currentSourceFile));\n    } else {\n      cookedStrings.push(createTemplateCooked(template.head));\n      rawStrings.push(getRawLiteral(template.head, currentSourceFile));\n      for (const templateSpan of template.templateSpans) {\n        cookedStrings.push(createTemplateCooked(templateSpan.literal));\n        rawStrings.push(getRawLiteral(templateSpan.literal, currentSourceFile));\n        templateArguments.push(Debug.checkDefined(visitNode(templateSpan.expression, visitor, isExpression)));\n      }\n    }\n    const helperCall = context.getEmitHelperFactory().createTemplateObjectHelper(factory.createArrayLiteralExpression(cookedStrings), factory.createArrayLiteralExpression(rawStrings));\n    if (isExternalModule(currentSourceFile)) {\n      const tempVar = factory.createUniqueName(\"templateObject\");\n      recordTaggedTemplateString(tempVar);\n      templateArguments[0] = factory.createLogicalOr(tempVar, factory.createAssignment(tempVar, helperCall));\n    } else {\n      templateArguments[0] = helperCall;\n    }\n    return factory.createCallExpression(tag, void 0, templateArguments);\n  }\n  function createTemplateCooked(template) {\n    return template.templateFlags ? factory.createVoidZero() : factory.createStringLiteral(template.text);\n  }\n  function getRawLiteral(node, currentSourceFile) {\n    let text = node.rawText;\n    if (text === void 0) {\n      Debug.assertIsDefined(currentSourceFile, \"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform.\");\n      text = getSourceTextOfNodeFromSourceFile(currentSourceFile, node);\n      const isLast = node.kind === 14 || node.kind === 17;\n      text = text.substring(1, text.length - (isLast ? 1 : 2));\n    }\n    text = text.replace(/\\r\\n?/g, \"\\n\");\n    return setTextRange(factory.createStringLiteral(text), node);\n  }\n  var ProcessLevel;\n  var init_taggedTemplate = __esm({\n    \"src/compiler/transformers/taggedTemplate.ts\"() {\n      \"use strict\";\n      init_ts2();\n      ProcessLevel = /* @__PURE__ */ ((ProcessLevel2) => {\n        ProcessLevel2[ProcessLevel2[\"LiftRestriction\"] = 0] = \"LiftRestriction\";\n        ProcessLevel2[ProcessLevel2[\"All\"] = 1] = \"All\";\n        return ProcessLevel2;\n      })(ProcessLevel || {});\n    }\n  });\n  function transformTypeScript(context) {\n    const {\n      factory: factory2,\n      getEmitHelperFactory: emitHelpers,\n      startLexicalEnvironment,\n      resumeLexicalEnvironment,\n      endLexicalEnvironment,\n      hoistVariableDeclaration\n    } = context;\n    const resolver = context.getEmitResolver();\n    const compilerOptions = context.getCompilerOptions();\n    const languageVersion = getEmitScriptTarget(compilerOptions);\n    const moduleKind = getEmitModuleKind(compilerOptions);\n    const legacyDecorators = !!compilerOptions.experimentalDecorators;\n    const typeSerializer = compilerOptions.emitDecoratorMetadata ? createRuntimeTypeSerializer(context) : void 0;\n    const previousOnEmitNode = context.onEmitNode;\n    const previousOnSubstituteNode = context.onSubstituteNode;\n    context.onEmitNode = onEmitNode;\n    context.onSubstituteNode = onSubstituteNode;\n    context.enableSubstitution(208);\n    context.enableSubstitution(209);\n    let currentSourceFile;\n    let currentNamespace;\n    let currentNamespaceContainerName;\n    let currentLexicalScope;\n    let currentScopeFirstDeclarationsOfName;\n    let currentClassHasParameterProperties;\n    let enabledSubstitutions;\n    let applicableSubstitutions;\n    return transformSourceFileOrBundle;\n    function transformSourceFileOrBundle(node) {\n      if (node.kind === 309) {\n        return transformBundle(node);\n      }\n      return transformSourceFile(node);\n    }\n    function transformBundle(node) {\n      return factory2.createBundle(node.sourceFiles.map(transformSourceFile), mapDefined(node.prepends, (prepend) => {\n        if (prepend.kind === 311) {\n          return createUnparsedSourceFile(prepend, \"js\");\n        }\n        return prepend;\n      }));\n    }\n    function transformSourceFile(node) {\n      if (node.isDeclarationFile) {\n        return node;\n      }\n      currentSourceFile = node;\n      const visited = saveStateAndInvoke(node, visitSourceFile);\n      addEmitHelpers(visited, context.readEmitHelpers());\n      currentSourceFile = void 0;\n      return visited;\n    }\n    function saveStateAndInvoke(node, f) {\n      const savedCurrentScope = currentLexicalScope;\n      const savedCurrentScopeFirstDeclarationsOfName = currentScopeFirstDeclarationsOfName;\n      const savedCurrentClassHasParameterProperties = currentClassHasParameterProperties;\n      onBeforeVisitNode(node);\n      const visited = f(node);\n      if (currentLexicalScope !== savedCurrentScope) {\n        currentScopeFirstDeclarationsOfName = savedCurrentScopeFirstDeclarationsOfName;\n      }\n      currentLexicalScope = savedCurrentScope;\n      currentClassHasParameterProperties = savedCurrentClassHasParameterProperties;\n      return visited;\n    }\n    function onBeforeVisitNode(node) {\n      switch (node.kind) {\n        case 308:\n        case 266:\n        case 265:\n        case 238:\n          currentLexicalScope = node;\n          currentScopeFirstDeclarationsOfName = void 0;\n          break;\n        case 260:\n        case 259:\n          if (hasSyntacticModifier(node, 2)) {\n            break;\n          }\n          if (node.name) {\n            recordEmittedDeclarationInScope(node);\n          } else {\n            Debug.assert(node.kind === 260 || hasSyntacticModifier(node, 1024));\n          }\n          break;\n      }\n    }\n    function visitor(node) {\n      return saveStateAndInvoke(node, visitorWorker);\n    }\n    function visitorWorker(node) {\n      if (node.transformFlags & 1) {\n        return visitTypeScript(node);\n      }\n      return node;\n    }\n    function sourceElementVisitor(node) {\n      return saveStateAndInvoke(node, sourceElementVisitorWorker);\n    }\n    function sourceElementVisitorWorker(node) {\n      switch (node.kind) {\n        case 269:\n        case 268:\n        case 274:\n        case 275:\n          return visitElidableStatement(node);\n        default:\n          return visitorWorker(node);\n      }\n    }\n    function visitElidableStatement(node) {\n      const parsed = getParseTreeNode(node);\n      if (parsed !== node) {\n        if (node.transformFlags & 1) {\n          return visitEachChild(node, visitor, context);\n        }\n        return node;\n      }\n      switch (node.kind) {\n        case 269:\n          return visitImportDeclaration(node);\n        case 268:\n          return visitImportEqualsDeclaration(node);\n        case 274:\n          return visitExportAssignment(node);\n        case 275:\n          return visitExportDeclaration(node);\n        default:\n          Debug.fail(\"Unhandled ellided statement\");\n      }\n    }\n    function namespaceElementVisitor(node) {\n      return saveStateAndInvoke(node, namespaceElementVisitorWorker);\n    }\n    function namespaceElementVisitorWorker(node) {\n      if (node.kind === 275 || node.kind === 269 || node.kind === 270 || node.kind === 268 && node.moduleReference.kind === 280) {\n        return void 0;\n      } else if (node.transformFlags & 1 || hasSyntacticModifier(node, 1)) {\n        return visitTypeScript(node);\n      }\n      return node;\n    }\n    function getClassElementVisitor(parent2) {\n      return (node) => saveStateAndInvoke(node, (n) => classElementVisitorWorker(n, parent2));\n    }\n    function classElementVisitorWorker(node, parent2) {\n      switch (node.kind) {\n        case 173:\n          return visitConstructor(node);\n        case 169:\n          return visitPropertyDeclaration(node, parent2);\n        case 174:\n          return visitGetAccessor(node, parent2);\n        case 175:\n          return visitSetAccessor(node, parent2);\n        case 171:\n          return visitMethodDeclaration(node, parent2);\n        case 172:\n          return visitEachChild(node, visitor, context);\n        case 237:\n          return node;\n        case 178:\n          return;\n        default:\n          return Debug.failBadSyntaxKind(node);\n      }\n    }\n    function getObjectLiteralElementVisitor(parent2) {\n      return (node) => saveStateAndInvoke(node, (n) => objectLiteralElementVisitorWorker(n, parent2));\n    }\n    function objectLiteralElementVisitorWorker(node, parent2) {\n      switch (node.kind) {\n        case 299:\n        case 300:\n        case 301:\n          return visitor(node);\n        case 174:\n          return visitGetAccessor(node, parent2);\n        case 175:\n          return visitSetAccessor(node, parent2);\n        case 171:\n          return visitMethodDeclaration(node, parent2);\n        default:\n          return Debug.failBadSyntaxKind(node);\n      }\n    }\n    function decoratorElidingVisitor(node) {\n      return isDecorator(node) ? void 0 : visitor(node);\n    }\n    function modifierElidingVisitor(node) {\n      return isModifier(node) ? void 0 : visitor(node);\n    }\n    function modifierVisitor(node) {\n      if (isDecorator(node))\n        return void 0;\n      if (modifierToFlag(node.kind) & 117086) {\n        return void 0;\n      } else if (currentNamespace && node.kind === 93) {\n        return void 0;\n      }\n      return node;\n    }\n    function visitTypeScript(node) {\n      if (isStatement(node) && hasSyntacticModifier(node, 2)) {\n        return factory2.createNotEmittedStatement(node);\n      }\n      switch (node.kind) {\n        case 93:\n        case 88:\n          return currentNamespace ? void 0 : node;\n        case 123:\n        case 121:\n        case 122:\n        case 126:\n        case 161:\n        case 85:\n        case 136:\n        case 146:\n        case 101:\n        case 145:\n        case 185:\n        case 186:\n        case 187:\n        case 188:\n        case 184:\n        case 179:\n        case 165:\n        case 131:\n        case 157:\n        case 134:\n        case 152:\n        case 148:\n        case 144:\n        case 114:\n        case 153:\n        case 182:\n        case 181:\n        case 183:\n        case 180:\n        case 189:\n        case 190:\n        case 191:\n        case 193:\n        case 194:\n        case 195:\n        case 196:\n        case 197:\n        case 198:\n        case 178:\n          return void 0;\n        case 262:\n          return factory2.createNotEmittedStatement(node);\n        case 267:\n          return void 0;\n        case 261:\n          return factory2.createNotEmittedStatement(node);\n        case 260:\n          return visitClassDeclaration(node);\n        case 228:\n          return visitClassExpression(node);\n        case 294:\n          return visitHeritageClause(node);\n        case 230:\n          return visitExpressionWithTypeArguments(node);\n        case 207:\n          return visitObjectLiteralExpression(node);\n        case 173:\n        case 169:\n        case 171:\n        case 174:\n        case 175:\n        case 172:\n          return Debug.fail(\"Class and object literal elements must be visited with their respective visitors\");\n        case 259:\n          return visitFunctionDeclaration(node);\n        case 215:\n          return visitFunctionExpression(node);\n        case 216:\n          return visitArrowFunction(node);\n        case 166:\n          return visitParameter(node);\n        case 214:\n          return visitParenthesizedExpression(node);\n        case 213:\n        case 231:\n          return visitAssertionExpression(node);\n        case 235:\n          return visitSatisfiesExpression(node);\n        case 210:\n          return visitCallExpression(node);\n        case 211:\n          return visitNewExpression(node);\n        case 212:\n          return visitTaggedTemplateExpression(node);\n        case 232:\n          return visitNonNullExpression(node);\n        case 263:\n          return visitEnumDeclaration(node);\n        case 240:\n          return visitVariableStatement(node);\n        case 257:\n          return visitVariableDeclaration(node);\n        case 264:\n          return visitModuleDeclaration(node);\n        case 268:\n          return visitImportEqualsDeclaration(node);\n        case 282:\n          return visitJsxSelfClosingElement(node);\n        case 283:\n          return visitJsxJsxOpeningElement(node);\n        default:\n          return visitEachChild(node, visitor, context);\n      }\n    }\n    function visitSourceFile(node) {\n      const alwaysStrict = getStrictOptionValue(compilerOptions, \"alwaysStrict\") && !(isExternalModule(node) && moduleKind >= 5) && !isJsonSourceFile(node);\n      return factory2.updateSourceFile(node, visitLexicalEnvironment(node.statements, sourceElementVisitor, context, 0, alwaysStrict));\n    }\n    function visitObjectLiteralExpression(node) {\n      return factory2.updateObjectLiteralExpression(node, visitNodes2(node.properties, getObjectLiteralElementVisitor(node), isObjectLiteralElementLike));\n    }\n    function getClassFacts(node) {\n      let facts = 0;\n      if (some(getProperties(node, true, true)))\n        facts |= 1;\n      const extendsClauseElement = getEffectiveBaseTypeNode(node);\n      if (extendsClauseElement && skipOuterExpressions(extendsClauseElement.expression).kind !== 104)\n        facts |= 64;\n      if (classOrConstructorParameterIsDecorated(legacyDecorators, node))\n        facts |= 2;\n      if (childIsDecorated(legacyDecorators, node))\n        facts |= 4;\n      if (isExportOfNamespace(node))\n        facts |= 8;\n      else if (isDefaultExternalModuleExport(node))\n        facts |= 32;\n      else if (isNamedExternalModuleExport(node))\n        facts |= 16;\n      return facts;\n    }\n    function hasTypeScriptClassSyntax(node) {\n      return !!(node.transformFlags & 8192);\n    }\n    function isClassLikeDeclarationWithTypeScriptSyntax(node) {\n      return hasDecorators(node) || some(node.typeParameters) || some(node.heritageClauses, hasTypeScriptClassSyntax) || some(node.members, hasTypeScriptClassSyntax);\n    }\n    function visitClassDeclaration(node) {\n      var _a2;\n      const facts = getClassFacts(node);\n      const promoteToIIFE = languageVersion <= 1 && !!(facts & 7);\n      if (!isClassLikeDeclarationWithTypeScriptSyntax(node) && !classOrConstructorParameterIsDecorated(legacyDecorators, node) && !isExportOfNamespace(node)) {\n        return factory2.updateClassDeclaration(node, visitNodes2(node.modifiers, modifierVisitor, isModifier), node.name, void 0, visitNodes2(node.heritageClauses, visitor, isHeritageClause), visitNodes2(node.members, getClassElementVisitor(node), isClassElement));\n      }\n      if (promoteToIIFE) {\n        context.startLexicalEnvironment();\n      }\n      const moveModifiers = promoteToIIFE || facts & 8 || facts & 2 && legacyDecorators || facts & 1;\n      let modifiers = moveModifiers ? visitNodes2(node.modifiers, modifierElidingVisitor, isModifierLike) : visitNodes2(node.modifiers, visitor, isModifierLike);\n      if (facts & 2) {\n        modifiers = injectClassTypeMetadata(modifiers, node);\n      }\n      const needsName = moveModifiers && !node.name || facts & 4 || facts & 1;\n      const name = needsName ? (_a2 = node.name) != null ? _a2 : factory2.getGeneratedNameForNode(node) : node.name;\n      const classDeclaration = factory2.updateClassDeclaration(node, modifiers, name, void 0, visitNodes2(node.heritageClauses, visitor, isHeritageClause), transformClassMembers(node));\n      let emitFlags = getEmitFlags(node);\n      if (facts & 1) {\n        emitFlags |= 64;\n      }\n      setEmitFlags(classDeclaration, emitFlags);\n      let statement;\n      if (promoteToIIFE) {\n        const statements = [classDeclaration];\n        const closingBraceLocation = createTokenRange(skipTrivia(currentSourceFile.text, node.members.end), 19);\n        const localName = factory2.getInternalName(node);\n        const outer = factory2.createPartiallyEmittedExpression(localName);\n        setTextRangeEnd(outer, closingBraceLocation.end);\n        setEmitFlags(outer, 3072);\n        const returnStatement = factory2.createReturnStatement(outer);\n        setTextRangePos(returnStatement, closingBraceLocation.pos);\n        setEmitFlags(returnStatement, 3072 | 768);\n        statements.push(returnStatement);\n        insertStatementsAfterStandardPrologue(statements, context.endLexicalEnvironment());\n        const iife = factory2.createImmediatelyInvokedArrowFunction(statements);\n        setInternalEmitFlags(iife, 1);\n        const modifiers2 = facts & 16 ? factory2.createModifiersFromModifierFlags(1) : void 0;\n        const varStatement = factory2.createVariableStatement(modifiers2, factory2.createVariableDeclarationList([\n          factory2.createVariableDeclaration(factory2.getLocalName(node, false, false), void 0, void 0, iife)\n        ], 1));\n        setOriginalNode(varStatement, node);\n        setCommentRange(varStatement, node);\n        setSourceMapRange(varStatement, moveRangePastDecorators(node));\n        startOnNewLine(varStatement);\n        statement = varStatement;\n      } else {\n        statement = classDeclaration;\n      }\n      if (moveModifiers) {\n        if (facts & 8) {\n          return demarcateMultiStatementExport(statement, createExportMemberAssignmentStatement(node));\n        }\n        if (facts & 32) {\n          return demarcateMultiStatementExport(statement, factory2.createExportDefault(factory2.getLocalName(node, false, true)));\n        }\n        if (facts & 16 && !promoteToIIFE) {\n          return demarcateMultiStatementExport(statement, factory2.createExternalModuleExport(factory2.getLocalName(node, false, true)));\n        }\n      }\n      return statement;\n    }\n    function demarcateMultiStatementExport(declarationStatement, exportStatement) {\n      addEmitFlags(declarationStatement, 8388608);\n      return [\n        declarationStatement,\n        exportStatement,\n        factory2.createEndOfDeclarationMarker(declarationStatement)\n      ];\n    }\n    function visitClassExpression(node) {\n      let modifiers = visitNodes2(node.modifiers, modifierElidingVisitor, isModifierLike);\n      if (classOrConstructorParameterIsDecorated(legacyDecorators, node)) {\n        modifiers = injectClassTypeMetadata(modifiers, node);\n      }\n      return factory2.updateClassExpression(node, modifiers, node.name, void 0, visitNodes2(node.heritageClauses, visitor, isHeritageClause), transformClassMembers(node));\n    }\n    function transformClassMembers(node) {\n      const members = visitNodes2(node.members, getClassElementVisitor(node), isClassElement);\n      let newMembers;\n      const constructor = getFirstConstructorWithBody(node);\n      const parametersWithPropertyAssignments = constructor && filter(constructor.parameters, (p) => isParameterPropertyDeclaration(p, constructor));\n      if (parametersWithPropertyAssignments) {\n        for (const parameter of parametersWithPropertyAssignments) {\n          const parameterProperty = factory2.createPropertyDeclaration(void 0, parameter.name, void 0, void 0, void 0);\n          setOriginalNode(parameterProperty, parameter);\n          newMembers = append(newMembers, parameterProperty);\n        }\n      }\n      if (newMembers) {\n        newMembers = addRange(newMembers, members);\n        return setTextRange(factory2.createNodeArray(newMembers), node.members);\n      }\n      return members;\n    }\n    function injectClassTypeMetadata(modifiers, node) {\n      const metadata = getTypeMetadata(node, node);\n      if (some(metadata)) {\n        const modifiersArray = [];\n        addRange(modifiersArray, takeWhile(modifiers, isExportOrDefaultModifier));\n        addRange(modifiersArray, filter(modifiers, isDecorator));\n        addRange(modifiersArray, metadata);\n        addRange(modifiersArray, filter(skipWhile(modifiers, isExportOrDefaultModifier), isModifier));\n        modifiers = setTextRange(factory2.createNodeArray(modifiersArray), modifiers);\n      }\n      return modifiers;\n    }\n    function injectClassElementTypeMetadata(modifiers, node, container) {\n      if (isClassLike(container) && classElementOrClassElementParameterIsDecorated(legacyDecorators, node, container)) {\n        const metadata = getTypeMetadata(node, container);\n        if (some(metadata)) {\n          const modifiersArray = [];\n          addRange(modifiersArray, filter(modifiers, isDecorator));\n          addRange(modifiersArray, metadata);\n          addRange(modifiersArray, filter(modifiers, isModifier));\n          modifiers = setTextRange(factory2.createNodeArray(modifiersArray), modifiers);\n        }\n      }\n      return modifiers;\n    }\n    function getTypeMetadata(node, container) {\n      if (!legacyDecorators)\n        return void 0;\n      return USE_NEW_TYPE_METADATA_FORMAT ? getNewTypeMetadata(node, container) : getOldTypeMetadata(node, container);\n    }\n    function getOldTypeMetadata(node, container) {\n      if (typeSerializer) {\n        let decorators;\n        if (shouldAddTypeMetadata(node)) {\n          const typeMetadata = emitHelpers().createMetadataHelper(\"design:type\", typeSerializer.serializeTypeOfNode({ currentLexicalScope, currentNameScope: container }, node));\n          decorators = append(decorators, factory2.createDecorator(typeMetadata));\n        }\n        if (shouldAddParamTypesMetadata(node)) {\n          const paramTypesMetadata = emitHelpers().createMetadataHelper(\"design:paramtypes\", typeSerializer.serializeParameterTypesOfNode({ currentLexicalScope, currentNameScope: container }, node, container));\n          decorators = append(decorators, factory2.createDecorator(paramTypesMetadata));\n        }\n        if (shouldAddReturnTypeMetadata(node)) {\n          const returnTypeMetadata = emitHelpers().createMetadataHelper(\"design:returntype\", typeSerializer.serializeReturnTypeOfNode({ currentLexicalScope, currentNameScope: container }, node));\n          decorators = append(decorators, factory2.createDecorator(returnTypeMetadata));\n        }\n        return decorators;\n      }\n    }\n    function getNewTypeMetadata(node, container) {\n      if (typeSerializer) {\n        let properties;\n        if (shouldAddTypeMetadata(node)) {\n          const typeProperty = factory2.createPropertyAssignment(\"type\", factory2.createArrowFunction(void 0, void 0, [], void 0, factory2.createToken(38), typeSerializer.serializeTypeOfNode({ currentLexicalScope, currentNameScope: container }, node)));\n          properties = append(properties, typeProperty);\n        }\n        if (shouldAddParamTypesMetadata(node)) {\n          const paramTypeProperty = factory2.createPropertyAssignment(\"paramTypes\", factory2.createArrowFunction(void 0, void 0, [], void 0, factory2.createToken(38), typeSerializer.serializeParameterTypesOfNode({ currentLexicalScope, currentNameScope: container }, node, container)));\n          properties = append(properties, paramTypeProperty);\n        }\n        if (shouldAddReturnTypeMetadata(node)) {\n          const returnTypeProperty = factory2.createPropertyAssignment(\"returnType\", factory2.createArrowFunction(void 0, void 0, [], void 0, factory2.createToken(38), typeSerializer.serializeReturnTypeOfNode({ currentLexicalScope, currentNameScope: container }, node)));\n          properties = append(properties, returnTypeProperty);\n        }\n        if (properties) {\n          const typeInfoMetadata = emitHelpers().createMetadataHelper(\"design:typeinfo\", factory2.createObjectLiteralExpression(properties, true));\n          return [factory2.createDecorator(typeInfoMetadata)];\n        }\n      }\n    }\n    function shouldAddTypeMetadata(node) {\n      const kind = node.kind;\n      return kind === 171 || kind === 174 || kind === 175 || kind === 169;\n    }\n    function shouldAddReturnTypeMetadata(node) {\n      return node.kind === 171;\n    }\n    function shouldAddParamTypesMetadata(node) {\n      switch (node.kind) {\n        case 260:\n        case 228:\n          return getFirstConstructorWithBody(node) !== void 0;\n        case 171:\n        case 174:\n        case 175:\n          return true;\n      }\n      return false;\n    }\n    function getExpressionForPropertyName(member, generateNameForComputedPropertyName) {\n      const name = member.name;\n      if (isPrivateIdentifier(name)) {\n        return factory2.createIdentifier(\"\");\n      } else if (isComputedPropertyName(name)) {\n        return generateNameForComputedPropertyName && !isSimpleInlineableExpression(name.expression) ? factory2.getGeneratedNameForNode(name) : name.expression;\n      } else if (isIdentifier(name)) {\n        return factory2.createStringLiteral(idText(name));\n      } else {\n        return factory2.cloneNode(name);\n      }\n    }\n    function visitPropertyNameOfClassElement(member) {\n      const name = member.name;\n      if (isComputedPropertyName(name) && (!hasStaticModifier(member) && currentClassHasParameterProperties || hasDecorators(member) && legacyDecorators)) {\n        const expression = visitNode(name.expression, visitor, isExpression);\n        Debug.assert(expression);\n        const innerExpression = skipPartiallyEmittedExpressions(expression);\n        if (!isSimpleInlineableExpression(innerExpression)) {\n          const generatedName = factory2.getGeneratedNameForNode(name);\n          hoistVariableDeclaration(generatedName);\n          return factory2.updateComputedPropertyName(name, factory2.createAssignment(generatedName, expression));\n        }\n      }\n      return Debug.checkDefined(visitNode(name, visitor, isPropertyName));\n    }\n    function visitHeritageClause(node) {\n      if (node.token === 117) {\n        return void 0;\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitExpressionWithTypeArguments(node) {\n      return factory2.updateExpressionWithTypeArguments(node, Debug.checkDefined(visitNode(node.expression, visitor, isLeftHandSideExpression)), void 0);\n    }\n    function shouldEmitFunctionLikeDeclaration(node) {\n      return !nodeIsMissing(node.body);\n    }\n    function visitPropertyDeclaration(node, parent2) {\n      const isAmbient = node.flags & 16777216 || hasSyntacticModifier(node, 256);\n      if (isAmbient && !(legacyDecorators && hasDecorators(node))) {\n        return void 0;\n      }\n      let modifiers = isClassLike(parent2) ? !isAmbient ? visitNodes2(node.modifiers, visitor, isModifierLike) : visitNodes2(node.modifiers, modifierElidingVisitor, isModifierLike) : visitNodes2(node.modifiers, decoratorElidingVisitor, isModifierLike);\n      modifiers = injectClassElementTypeMetadata(modifiers, node, parent2);\n      if (isAmbient) {\n        return factory2.updatePropertyDeclaration(node, concatenate(modifiers, factory2.createModifiersFromModifierFlags(2)), Debug.checkDefined(visitNode(node.name, visitor, isPropertyName)), void 0, void 0, void 0);\n      }\n      return factory2.updatePropertyDeclaration(node, modifiers, visitPropertyNameOfClassElement(node), void 0, void 0, visitNode(node.initializer, visitor, isExpression));\n    }\n    function visitConstructor(node) {\n      if (!shouldEmitFunctionLikeDeclaration(node)) {\n        return void 0;\n      }\n      return factory2.updateConstructorDeclaration(node, void 0, visitParameterList(node.parameters, visitor, context), transformConstructorBody(node.body, node));\n    }\n    function transformConstructorBody(body, constructor) {\n      const parametersWithPropertyAssignments = constructor && filter(constructor.parameters, (p) => isParameterPropertyDeclaration(p, constructor));\n      if (!some(parametersWithPropertyAssignments)) {\n        return visitFunctionBody(body, visitor, context);\n      }\n      let statements = [];\n      resumeLexicalEnvironment();\n      const prologueStatementCount = factory2.copyPrologue(body.statements, statements, false, visitor);\n      const superStatementIndex = findSuperStatementIndex(body.statements, prologueStatementCount);\n      if (superStatementIndex >= 0) {\n        addRange(statements, visitNodes2(body.statements, visitor, isStatement, prologueStatementCount, superStatementIndex + 1 - prologueStatementCount));\n      }\n      const parameterPropertyAssignments = mapDefined(parametersWithPropertyAssignments, transformParameterWithPropertyAssignment);\n      if (superStatementIndex >= 0) {\n        addRange(statements, parameterPropertyAssignments);\n      } else {\n        statements = [\n          ...statements.slice(0, prologueStatementCount),\n          ...parameterPropertyAssignments,\n          ...statements.slice(prologueStatementCount)\n        ];\n      }\n      const start = superStatementIndex >= 0 ? superStatementIndex + 1 : prologueStatementCount;\n      addRange(statements, visitNodes2(body.statements, visitor, isStatement, start));\n      statements = factory2.mergeLexicalEnvironment(statements, endLexicalEnvironment());\n      const block = factory2.createBlock(setTextRange(factory2.createNodeArray(statements), body.statements), true);\n      setTextRange(block, body);\n      setOriginalNode(block, body);\n      return block;\n    }\n    function transformParameterWithPropertyAssignment(node) {\n      const name = node.name;\n      if (!isIdentifier(name)) {\n        return void 0;\n      }\n      const propertyName = setParent(setTextRange(factory2.cloneNode(name), name), name.parent);\n      setEmitFlags(propertyName, 3072 | 96);\n      const localName = setParent(setTextRange(factory2.cloneNode(name), name), name.parent);\n      setEmitFlags(localName, 3072);\n      return startOnNewLine(removeAllComments(setTextRange(setOriginalNode(factory2.createExpressionStatement(factory2.createAssignment(setTextRange(factory2.createPropertyAccessExpression(factory2.createThis(), propertyName), node.name), localName)), node), moveRangePos(node, -1))));\n    }\n    function visitMethodDeclaration(node, parent2) {\n      if (!(node.transformFlags & 1)) {\n        return node;\n      }\n      if (!shouldEmitFunctionLikeDeclaration(node)) {\n        return void 0;\n      }\n      let modifiers = isClassLike(parent2) ? visitNodes2(node.modifiers, visitor, isModifierLike) : visitNodes2(node.modifiers, decoratorElidingVisitor, isModifierLike);\n      modifiers = injectClassElementTypeMetadata(modifiers, node, parent2);\n      return factory2.updateMethodDeclaration(node, modifiers, node.asteriskToken, visitPropertyNameOfClassElement(node), void 0, void 0, visitParameterList(node.parameters, visitor, context), void 0, visitFunctionBody(node.body, visitor, context));\n    }\n    function shouldEmitAccessorDeclaration(node) {\n      return !(nodeIsMissing(node.body) && hasSyntacticModifier(node, 256));\n    }\n    function visitGetAccessor(node, parent2) {\n      if (!(node.transformFlags & 1)) {\n        return node;\n      }\n      if (!shouldEmitAccessorDeclaration(node)) {\n        return void 0;\n      }\n      let modifiers = isClassLike(parent2) ? visitNodes2(node.modifiers, visitor, isModifierLike) : visitNodes2(node.modifiers, decoratorElidingVisitor, isModifierLike);\n      modifiers = injectClassElementTypeMetadata(modifiers, node, parent2);\n      return factory2.updateGetAccessorDeclaration(node, modifiers, visitPropertyNameOfClassElement(node), visitParameterList(node.parameters, visitor, context), void 0, visitFunctionBody(node.body, visitor, context) || factory2.createBlock([]));\n    }\n    function visitSetAccessor(node, parent2) {\n      if (!(node.transformFlags & 1)) {\n        return node;\n      }\n      if (!shouldEmitAccessorDeclaration(node)) {\n        return void 0;\n      }\n      let modifiers = isClassLike(parent2) ? visitNodes2(node.modifiers, visitor, isModifierLike) : visitNodes2(node.modifiers, decoratorElidingVisitor, isModifierLike);\n      modifiers = injectClassElementTypeMetadata(modifiers, node, parent2);\n      return factory2.updateSetAccessorDeclaration(node, modifiers, visitPropertyNameOfClassElement(node), visitParameterList(node.parameters, visitor, context), visitFunctionBody(node.body, visitor, context) || factory2.createBlock([]));\n    }\n    function visitFunctionDeclaration(node) {\n      if (!shouldEmitFunctionLikeDeclaration(node)) {\n        return factory2.createNotEmittedStatement(node);\n      }\n      const updated = factory2.updateFunctionDeclaration(node, visitNodes2(node.modifiers, modifierVisitor, isModifier), node.asteriskToken, node.name, void 0, visitParameterList(node.parameters, visitor, context), void 0, visitFunctionBody(node.body, visitor, context) || factory2.createBlock([]));\n      if (isExportOfNamespace(node)) {\n        const statements = [updated];\n        addExportMemberAssignment(statements, node);\n        return statements;\n      }\n      return updated;\n    }\n    function visitFunctionExpression(node) {\n      if (!shouldEmitFunctionLikeDeclaration(node)) {\n        return factory2.createOmittedExpression();\n      }\n      const updated = factory2.updateFunctionExpression(node, visitNodes2(node.modifiers, modifierVisitor, isModifier), node.asteriskToken, node.name, void 0, visitParameterList(node.parameters, visitor, context), void 0, visitFunctionBody(node.body, visitor, context) || factory2.createBlock([]));\n      return updated;\n    }\n    function visitArrowFunction(node) {\n      const updated = factory2.updateArrowFunction(node, visitNodes2(node.modifiers, modifierVisitor, isModifier), void 0, visitParameterList(node.parameters, visitor, context), void 0, node.equalsGreaterThanToken, visitFunctionBody(node.body, visitor, context));\n      return updated;\n    }\n    function visitParameter(node) {\n      if (parameterIsThisKeyword(node)) {\n        return void 0;\n      }\n      const updated = factory2.updateParameterDeclaration(node, visitNodes2(node.modifiers, (node2) => isDecorator(node2) ? visitor(node2) : void 0, isModifierLike), node.dotDotDotToken, Debug.checkDefined(visitNode(node.name, visitor, isBindingName)), void 0, void 0, visitNode(node.initializer, visitor, isExpression));\n      if (updated !== node) {\n        setCommentRange(updated, node);\n        setTextRange(updated, moveRangePastModifiers(node));\n        setSourceMapRange(updated, moveRangePastModifiers(node));\n        setEmitFlags(updated.name, 64);\n      }\n      return updated;\n    }\n    function visitVariableStatement(node) {\n      if (isExportOfNamespace(node)) {\n        const variables = getInitializedVariables(node.declarationList);\n        if (variables.length === 0) {\n          return void 0;\n        }\n        return setTextRange(factory2.createExpressionStatement(factory2.inlineExpressions(map(variables, transformInitializedVariable))), node);\n      } else {\n        return visitEachChild(node, visitor, context);\n      }\n    }\n    function transformInitializedVariable(node) {\n      const name = node.name;\n      if (isBindingPattern(name)) {\n        return flattenDestructuringAssignment(node, visitor, context, 0, false, createNamespaceExportExpression);\n      } else {\n        return setTextRange(factory2.createAssignment(getNamespaceMemberNameWithSourceMapsAndWithoutComments(name), Debug.checkDefined(visitNode(node.initializer, visitor, isExpression))), node);\n      }\n    }\n    function visitVariableDeclaration(node) {\n      const updated = factory2.updateVariableDeclaration(node, Debug.checkDefined(visitNode(node.name, visitor, isBindingName)), void 0, void 0, visitNode(node.initializer, visitor, isExpression));\n      if (node.type) {\n        setTypeNode(updated.name, node.type);\n      }\n      return updated;\n    }\n    function visitParenthesizedExpression(node) {\n      const innerExpression = skipOuterExpressions(node.expression, ~6);\n      if (isAssertionExpression(innerExpression)) {\n        const expression = visitNode(node.expression, visitor, isExpression);\n        Debug.assert(expression);\n        return factory2.createPartiallyEmittedExpression(expression, node);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitAssertionExpression(node) {\n      const expression = visitNode(node.expression, visitor, isExpression);\n      Debug.assert(expression);\n      return factory2.createPartiallyEmittedExpression(expression, node);\n    }\n    function visitNonNullExpression(node) {\n      const expression = visitNode(node.expression, visitor, isLeftHandSideExpression);\n      Debug.assert(expression);\n      return factory2.createPartiallyEmittedExpression(expression, node);\n    }\n    function visitSatisfiesExpression(node) {\n      const expression = visitNode(node.expression, visitor, isExpression);\n      Debug.assert(expression);\n      return factory2.createPartiallyEmittedExpression(expression, node);\n    }\n    function visitCallExpression(node) {\n      return factory2.updateCallExpression(node, Debug.checkDefined(visitNode(node.expression, visitor, isExpression)), void 0, visitNodes2(node.arguments, visitor, isExpression));\n    }\n    function visitNewExpression(node) {\n      return factory2.updateNewExpression(node, Debug.checkDefined(visitNode(node.expression, visitor, isExpression)), void 0, visitNodes2(node.arguments, visitor, isExpression));\n    }\n    function visitTaggedTemplateExpression(node) {\n      return factory2.updateTaggedTemplateExpression(node, Debug.checkDefined(visitNode(node.tag, visitor, isExpression)), void 0, Debug.checkDefined(visitNode(node.template, visitor, isTemplateLiteral)));\n    }\n    function visitJsxSelfClosingElement(node) {\n      return factory2.updateJsxSelfClosingElement(node, Debug.checkDefined(visitNode(node.tagName, visitor, isJsxTagNameExpression)), void 0, Debug.checkDefined(visitNode(node.attributes, visitor, isJsxAttributes)));\n    }\n    function visitJsxJsxOpeningElement(node) {\n      return factory2.updateJsxOpeningElement(node, Debug.checkDefined(visitNode(node.tagName, visitor, isJsxTagNameExpression)), void 0, Debug.checkDefined(visitNode(node.attributes, visitor, isJsxAttributes)));\n    }\n    function shouldEmitEnumDeclaration(node) {\n      return !isEnumConst(node) || shouldPreserveConstEnums(compilerOptions);\n    }\n    function visitEnumDeclaration(node) {\n      if (!shouldEmitEnumDeclaration(node)) {\n        return factory2.createNotEmittedStatement(node);\n      }\n      const statements = [];\n      let emitFlags = 4;\n      const varAdded = addVarForEnumOrModuleDeclaration(statements, node);\n      if (varAdded) {\n        if (moduleKind !== 4 || currentLexicalScope !== currentSourceFile) {\n          emitFlags |= 1024;\n        }\n      }\n      const parameterName = getNamespaceParameterName(node);\n      const containerName = getNamespaceContainerName(node);\n      const exportName = hasSyntacticModifier(node, 1) ? factory2.getExternalModuleOrNamespaceExportName(currentNamespaceContainerName, node, false, true) : factory2.getLocalName(node, false, true);\n      let moduleArg = factory2.createLogicalOr(exportName, factory2.createAssignment(exportName, factory2.createObjectLiteralExpression()));\n      if (hasNamespaceQualifiedExportName(node)) {\n        const localName = factory2.getLocalName(node, false, true);\n        moduleArg = factory2.createAssignment(localName, moduleArg);\n      }\n      const enumStatement = factory2.createExpressionStatement(factory2.createCallExpression(factory2.createFunctionExpression(void 0, void 0, void 0, void 0, [factory2.createParameterDeclaration(void 0, void 0, parameterName)], void 0, transformEnumBody(node, containerName)), void 0, [moduleArg]));\n      setOriginalNode(enumStatement, node);\n      if (varAdded) {\n        setSyntheticLeadingComments(enumStatement, void 0);\n        setSyntheticTrailingComments(enumStatement, void 0);\n      }\n      setTextRange(enumStatement, node);\n      addEmitFlags(enumStatement, emitFlags);\n      statements.push(enumStatement);\n      statements.push(factory2.createEndOfDeclarationMarker(node));\n      return statements;\n    }\n    function transformEnumBody(node, localName) {\n      const savedCurrentNamespaceLocalName = currentNamespaceContainerName;\n      currentNamespaceContainerName = localName;\n      const statements = [];\n      startLexicalEnvironment();\n      const members = map(node.members, transformEnumMember);\n      insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());\n      addRange(statements, members);\n      currentNamespaceContainerName = savedCurrentNamespaceLocalName;\n      return factory2.createBlock(setTextRange(factory2.createNodeArray(statements), node.members), true);\n    }\n    function transformEnumMember(member) {\n      const name = getExpressionForPropertyName(member, false);\n      const valueExpression = transformEnumMemberDeclarationValue(member);\n      const innerAssignment = factory2.createAssignment(factory2.createElementAccessExpression(currentNamespaceContainerName, name), valueExpression);\n      const outerAssignment = valueExpression.kind === 10 ? innerAssignment : factory2.createAssignment(factory2.createElementAccessExpression(currentNamespaceContainerName, innerAssignment), name);\n      return setTextRange(factory2.createExpressionStatement(setTextRange(outerAssignment, member)), member);\n    }\n    function transformEnumMemberDeclarationValue(member) {\n      const value = resolver.getConstantValue(member);\n      if (value !== void 0) {\n        return typeof value === \"string\" ? factory2.createStringLiteral(value) : factory2.createNumericLiteral(value);\n      } else {\n        enableSubstitutionForNonQualifiedEnumMembers();\n        if (member.initializer) {\n          return Debug.checkDefined(visitNode(member.initializer, visitor, isExpression));\n        } else {\n          return factory2.createVoidZero();\n        }\n      }\n    }\n    function shouldEmitModuleDeclaration(nodeIn) {\n      const node = getParseTreeNode(nodeIn, isModuleDeclaration);\n      if (!node) {\n        return true;\n      }\n      return isInstantiatedModule(node, shouldPreserveConstEnums(compilerOptions));\n    }\n    function hasNamespaceQualifiedExportName(node) {\n      return isExportOfNamespace(node) || isExternalModuleExport(node) && moduleKind !== 5 && moduleKind !== 6 && moduleKind !== 7 && moduleKind !== 99 && moduleKind !== 4;\n    }\n    function recordEmittedDeclarationInScope(node) {\n      if (!currentScopeFirstDeclarationsOfName) {\n        currentScopeFirstDeclarationsOfName = /* @__PURE__ */ new Map();\n      }\n      const name = declaredNameInScope(node);\n      if (!currentScopeFirstDeclarationsOfName.has(name)) {\n        currentScopeFirstDeclarationsOfName.set(name, node);\n      }\n    }\n    function isFirstEmittedDeclarationInScope(node) {\n      if (currentScopeFirstDeclarationsOfName) {\n        const name = declaredNameInScope(node);\n        return currentScopeFirstDeclarationsOfName.get(name) === node;\n      }\n      return true;\n    }\n    function declaredNameInScope(node) {\n      Debug.assertNode(node.name, isIdentifier);\n      return node.name.escapedText;\n    }\n    function addVarForEnumOrModuleDeclaration(statements, node) {\n      const statement = factory2.createVariableStatement(visitNodes2(node.modifiers, modifierVisitor, isModifier), factory2.createVariableDeclarationList([\n        factory2.createVariableDeclaration(factory2.getLocalName(node, false, true))\n      ], currentLexicalScope.kind === 308 ? 0 : 1));\n      setOriginalNode(statement, node);\n      recordEmittedDeclarationInScope(node);\n      if (isFirstEmittedDeclarationInScope(node)) {\n        if (node.kind === 263) {\n          setSourceMapRange(statement.declarationList, node);\n        } else {\n          setSourceMapRange(statement, node);\n        }\n        setCommentRange(statement, node);\n        addEmitFlags(statement, 2048 | 8388608);\n        statements.push(statement);\n        return true;\n      } else {\n        const mergeMarker = factory2.createMergeDeclarationMarker(statement);\n        setEmitFlags(mergeMarker, 3072 | 8388608);\n        statements.push(mergeMarker);\n        return false;\n      }\n    }\n    function visitModuleDeclaration(node) {\n      if (!shouldEmitModuleDeclaration(node)) {\n        return factory2.createNotEmittedStatement(node);\n      }\n      Debug.assertNode(node.name, isIdentifier, \"A TypeScript namespace should have an Identifier name.\");\n      enableSubstitutionForNamespaceExports();\n      const statements = [];\n      let emitFlags = 4;\n      const varAdded = addVarForEnumOrModuleDeclaration(statements, node);\n      if (varAdded) {\n        if (moduleKind !== 4 || currentLexicalScope !== currentSourceFile) {\n          emitFlags |= 1024;\n        }\n      }\n      const parameterName = getNamespaceParameterName(node);\n      const containerName = getNamespaceContainerName(node);\n      const exportName = hasSyntacticModifier(node, 1) ? factory2.getExternalModuleOrNamespaceExportName(currentNamespaceContainerName, node, false, true) : factory2.getLocalName(node, false, true);\n      let moduleArg = factory2.createLogicalOr(exportName, factory2.createAssignment(exportName, factory2.createObjectLiteralExpression()));\n      if (hasNamespaceQualifiedExportName(node)) {\n        const localName = factory2.getLocalName(node, false, true);\n        moduleArg = factory2.createAssignment(localName, moduleArg);\n      }\n      const moduleStatement = factory2.createExpressionStatement(factory2.createCallExpression(factory2.createFunctionExpression(void 0, void 0, void 0, void 0, [factory2.createParameterDeclaration(void 0, void 0, parameterName)], void 0, transformModuleBody(node, containerName)), void 0, [moduleArg]));\n      setOriginalNode(moduleStatement, node);\n      if (varAdded) {\n        setSyntheticLeadingComments(moduleStatement, void 0);\n        setSyntheticTrailingComments(moduleStatement, void 0);\n      }\n      setTextRange(moduleStatement, node);\n      addEmitFlags(moduleStatement, emitFlags);\n      statements.push(moduleStatement);\n      statements.push(factory2.createEndOfDeclarationMarker(node));\n      return statements;\n    }\n    function transformModuleBody(node, namespaceLocalName) {\n      const savedCurrentNamespaceContainerName = currentNamespaceContainerName;\n      const savedCurrentNamespace = currentNamespace;\n      const savedCurrentScopeFirstDeclarationsOfName = currentScopeFirstDeclarationsOfName;\n      currentNamespaceContainerName = namespaceLocalName;\n      currentNamespace = node;\n      currentScopeFirstDeclarationsOfName = void 0;\n      const statements = [];\n      startLexicalEnvironment();\n      let statementsLocation;\n      let blockLocation;\n      if (node.body) {\n        if (node.body.kind === 265) {\n          saveStateAndInvoke(node.body, (body) => addRange(statements, visitNodes2(body.statements, namespaceElementVisitor, isStatement)));\n          statementsLocation = node.body.statements;\n          blockLocation = node.body;\n        } else {\n          const result = visitModuleDeclaration(node.body);\n          if (result) {\n            if (isArray(result)) {\n              addRange(statements, result);\n            } else {\n              statements.push(result);\n            }\n          }\n          const moduleBlock = getInnerMostModuleDeclarationFromDottedModule(node).body;\n          statementsLocation = moveRangePos(moduleBlock.statements, -1);\n        }\n      }\n      insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());\n      currentNamespaceContainerName = savedCurrentNamespaceContainerName;\n      currentNamespace = savedCurrentNamespace;\n      currentScopeFirstDeclarationsOfName = savedCurrentScopeFirstDeclarationsOfName;\n      const block = factory2.createBlock(setTextRange(factory2.createNodeArray(statements), statementsLocation), true);\n      setTextRange(block, blockLocation);\n      if (!node.body || node.body.kind !== 265) {\n        setEmitFlags(block, getEmitFlags(block) | 3072);\n      }\n      return block;\n    }\n    function getInnerMostModuleDeclarationFromDottedModule(moduleDeclaration) {\n      if (moduleDeclaration.body.kind === 264) {\n        const recursiveInnerModule = getInnerMostModuleDeclarationFromDottedModule(moduleDeclaration.body);\n        return recursiveInnerModule || moduleDeclaration.body;\n      }\n    }\n    function visitImportDeclaration(node) {\n      if (!node.importClause) {\n        return node;\n      }\n      if (node.importClause.isTypeOnly) {\n        return void 0;\n      }\n      const importClause = visitNode(node.importClause, visitImportClause, isImportClause);\n      return importClause || compilerOptions.importsNotUsedAsValues === 1 || compilerOptions.importsNotUsedAsValues === 2 ? factory2.updateImportDeclaration(node, void 0, importClause, node.moduleSpecifier, node.assertClause) : void 0;\n    }\n    function visitImportClause(node) {\n      Debug.assert(!node.isTypeOnly);\n      const name = shouldEmitAliasDeclaration(node) ? node.name : void 0;\n      const namedBindings = visitNode(node.namedBindings, visitNamedImportBindings, isNamedImportBindings);\n      return name || namedBindings ? factory2.updateImportClause(node, false, name, namedBindings) : void 0;\n    }\n    function visitNamedImportBindings(node) {\n      if (node.kind === 271) {\n        return shouldEmitAliasDeclaration(node) ? node : void 0;\n      } else {\n        const allowEmpty = compilerOptions.verbatimModuleSyntax || compilerOptions.preserveValueImports && (compilerOptions.importsNotUsedAsValues === 1 || compilerOptions.importsNotUsedAsValues === 2);\n        const elements = visitNodes2(node.elements, visitImportSpecifier, isImportSpecifier);\n        return allowEmpty || some(elements) ? factory2.updateNamedImports(node, elements) : void 0;\n      }\n    }\n    function visitImportSpecifier(node) {\n      return !node.isTypeOnly && shouldEmitAliasDeclaration(node) ? node : void 0;\n    }\n    function visitExportAssignment(node) {\n      return compilerOptions.verbatimModuleSyntax || resolver.isValueAliasDeclaration(node) ? visitEachChild(node, visitor, context) : void 0;\n    }\n    function visitExportDeclaration(node) {\n      if (node.isTypeOnly) {\n        return void 0;\n      }\n      if (!node.exportClause || isNamespaceExport(node.exportClause)) {\n        return node;\n      }\n      const allowEmpty = compilerOptions.verbatimModuleSyntax || !!node.moduleSpecifier && (compilerOptions.importsNotUsedAsValues === 1 || compilerOptions.importsNotUsedAsValues === 2);\n      const exportClause = visitNode(node.exportClause, (bindings) => visitNamedExportBindings(bindings, allowEmpty), isNamedExportBindings);\n      return exportClause ? factory2.updateExportDeclaration(node, void 0, node.isTypeOnly, exportClause, node.moduleSpecifier, node.assertClause) : void 0;\n    }\n    function visitNamedExports(node, allowEmpty) {\n      const elements = visitNodes2(node.elements, visitExportSpecifier, isExportSpecifier);\n      return allowEmpty || some(elements) ? factory2.updateNamedExports(node, elements) : void 0;\n    }\n    function visitNamespaceExports(node) {\n      return factory2.updateNamespaceExport(node, Debug.checkDefined(visitNode(node.name, visitor, isIdentifier)));\n    }\n    function visitNamedExportBindings(node, allowEmpty) {\n      return isNamespaceExport(node) ? visitNamespaceExports(node) : visitNamedExports(node, allowEmpty);\n    }\n    function visitExportSpecifier(node) {\n      return !node.isTypeOnly && (compilerOptions.verbatimModuleSyntax || resolver.isValueAliasDeclaration(node)) ? node : void 0;\n    }\n    function shouldEmitImportEqualsDeclaration(node) {\n      return shouldEmitAliasDeclaration(node) || !isExternalModule(currentSourceFile) && resolver.isTopLevelValueImportEqualsWithEntityName(node);\n    }\n    function visitImportEqualsDeclaration(node) {\n      if (node.isTypeOnly) {\n        return void 0;\n      }\n      if (isExternalModuleImportEqualsDeclaration(node)) {\n        const isReferenced = shouldEmitAliasDeclaration(node);\n        if (!isReferenced && compilerOptions.importsNotUsedAsValues === 1) {\n          return setOriginalNode(setTextRange(factory2.createImportDeclaration(void 0, void 0, node.moduleReference.expression, void 0), node), node);\n        }\n        return isReferenced ? visitEachChild(node, visitor, context) : void 0;\n      }\n      if (!shouldEmitImportEqualsDeclaration(node)) {\n        return void 0;\n      }\n      const moduleReference = createExpressionFromEntityName(factory2, node.moduleReference);\n      setEmitFlags(moduleReference, 3072 | 4096);\n      if (isNamedExternalModuleExport(node) || !isExportOfNamespace(node)) {\n        return setOriginalNode(setTextRange(factory2.createVariableStatement(visitNodes2(node.modifiers, modifierVisitor, isModifier), factory2.createVariableDeclarationList([\n          setOriginalNode(factory2.createVariableDeclaration(node.name, void 0, void 0, moduleReference), node)\n        ])), node), node);\n      } else {\n        return setOriginalNode(createNamespaceExport(node.name, moduleReference, node), node);\n      }\n    }\n    function isExportOfNamespace(node) {\n      return currentNamespace !== void 0 && hasSyntacticModifier(node, 1);\n    }\n    function isExternalModuleExport(node) {\n      return currentNamespace === void 0 && hasSyntacticModifier(node, 1);\n    }\n    function isNamedExternalModuleExport(node) {\n      return isExternalModuleExport(node) && !hasSyntacticModifier(node, 1024);\n    }\n    function isDefaultExternalModuleExport(node) {\n      return isExternalModuleExport(node) && hasSyntacticModifier(node, 1024);\n    }\n    function createExportMemberAssignmentStatement(node) {\n      const expression = factory2.createAssignment(factory2.getExternalModuleOrNamespaceExportName(currentNamespaceContainerName, node, false, true), factory2.getLocalName(node));\n      setSourceMapRange(expression, createRange(node.name ? node.name.pos : node.pos, node.end));\n      const statement = factory2.createExpressionStatement(expression);\n      setSourceMapRange(statement, createRange(-1, node.end));\n      return statement;\n    }\n    function addExportMemberAssignment(statements, node) {\n      statements.push(createExportMemberAssignmentStatement(node));\n    }\n    function createNamespaceExport(exportName, exportValue, location) {\n      return setTextRange(factory2.createExpressionStatement(factory2.createAssignment(factory2.getNamespaceMemberName(currentNamespaceContainerName, exportName, false, true), exportValue)), location);\n    }\n    function createNamespaceExportExpression(exportName, exportValue, location) {\n      return setTextRange(factory2.createAssignment(getNamespaceMemberNameWithSourceMapsAndWithoutComments(exportName), exportValue), location);\n    }\n    function getNamespaceMemberNameWithSourceMapsAndWithoutComments(name) {\n      return factory2.getNamespaceMemberName(currentNamespaceContainerName, name, false, true);\n    }\n    function getNamespaceParameterName(node) {\n      const name = factory2.getGeneratedNameForNode(node);\n      setSourceMapRange(name, node.name);\n      return name;\n    }\n    function getNamespaceContainerName(node) {\n      return factory2.getGeneratedNameForNode(node);\n    }\n    function enableSubstitutionForNonQualifiedEnumMembers() {\n      if ((enabledSubstitutions & 8) === 0) {\n        enabledSubstitutions |= 8;\n        context.enableSubstitution(79);\n      }\n    }\n    function enableSubstitutionForNamespaceExports() {\n      if ((enabledSubstitutions & 2) === 0) {\n        enabledSubstitutions |= 2;\n        context.enableSubstitution(79);\n        context.enableSubstitution(300);\n        context.enableEmitNotification(264);\n      }\n    }\n    function isTransformedModuleDeclaration(node) {\n      return getOriginalNode(node).kind === 264;\n    }\n    function isTransformedEnumDeclaration(node) {\n      return getOriginalNode(node).kind === 263;\n    }\n    function onEmitNode(hint, node, emitCallback) {\n      const savedApplicableSubstitutions = applicableSubstitutions;\n      const savedCurrentSourceFile = currentSourceFile;\n      if (isSourceFile(node)) {\n        currentSourceFile = node;\n      }\n      if (enabledSubstitutions & 2 && isTransformedModuleDeclaration(node)) {\n        applicableSubstitutions |= 2;\n      }\n      if (enabledSubstitutions & 8 && isTransformedEnumDeclaration(node)) {\n        applicableSubstitutions |= 8;\n      }\n      previousOnEmitNode(hint, node, emitCallback);\n      applicableSubstitutions = savedApplicableSubstitutions;\n      currentSourceFile = savedCurrentSourceFile;\n    }\n    function onSubstituteNode(hint, node) {\n      node = previousOnSubstituteNode(hint, node);\n      if (hint === 1) {\n        return substituteExpression(node);\n      } else if (isShorthandPropertyAssignment(node)) {\n        return substituteShorthandPropertyAssignment(node);\n      }\n      return node;\n    }\n    function substituteShorthandPropertyAssignment(node) {\n      if (enabledSubstitutions & 2) {\n        const name = node.name;\n        const exportedName = trySubstituteNamespaceExportedName(name);\n        if (exportedName) {\n          if (node.objectAssignmentInitializer) {\n            const initializer = factory2.createAssignment(exportedName, node.objectAssignmentInitializer);\n            return setTextRange(factory2.createPropertyAssignment(name, initializer), node);\n          }\n          return setTextRange(factory2.createPropertyAssignment(name, exportedName), node);\n        }\n      }\n      return node;\n    }\n    function substituteExpression(node) {\n      switch (node.kind) {\n        case 79:\n          return substituteExpressionIdentifier(node);\n        case 208:\n          return substitutePropertyAccessExpression(node);\n        case 209:\n          return substituteElementAccessExpression(node);\n      }\n      return node;\n    }\n    function substituteExpressionIdentifier(node) {\n      return trySubstituteNamespaceExportedName(node) || node;\n    }\n    function trySubstituteNamespaceExportedName(node) {\n      if (enabledSubstitutions & applicableSubstitutions && !isGeneratedIdentifier(node) && !isLocalName(node)) {\n        const container = resolver.getReferencedExportContainer(node, false);\n        if (container && container.kind !== 308) {\n          const substitute = applicableSubstitutions & 2 && container.kind === 264 || applicableSubstitutions & 8 && container.kind === 263;\n          if (substitute) {\n            return setTextRange(factory2.createPropertyAccessExpression(factory2.getGeneratedNameForNode(container), node), node);\n          }\n        }\n      }\n      return void 0;\n    }\n    function substitutePropertyAccessExpression(node) {\n      return substituteConstantValue(node);\n    }\n    function substituteElementAccessExpression(node) {\n      return substituteConstantValue(node);\n    }\n    function safeMultiLineComment(value) {\n      return value.replace(/\\*\\//g, \"*_/\");\n    }\n    function substituteConstantValue(node) {\n      const constantValue = tryGetConstEnumValue(node);\n      if (constantValue !== void 0) {\n        setConstantValue(node, constantValue);\n        const substitute = typeof constantValue === \"string\" ? factory2.createStringLiteral(constantValue) : factory2.createNumericLiteral(constantValue);\n        if (!compilerOptions.removeComments) {\n          const originalNode = getOriginalNode(node, isAccessExpression);\n          addSyntheticTrailingComment(substitute, 3, ` ${safeMultiLineComment(getTextOfNode(originalNode))} `);\n        }\n        return substitute;\n      }\n      return node;\n    }\n    function tryGetConstEnumValue(node) {\n      if (getIsolatedModules(compilerOptions)) {\n        return void 0;\n      }\n      return isPropertyAccessExpression(node) || isElementAccessExpression(node) ? resolver.getConstantValue(node) : void 0;\n    }\n    function shouldEmitAliasDeclaration(node) {\n      return compilerOptions.verbatimModuleSyntax || isInJSFile(node) || (compilerOptions.preserveValueImports ? resolver.isValueAliasDeclaration(node) : resolver.isReferencedAliasDeclaration(node));\n    }\n  }\n  var USE_NEW_TYPE_METADATA_FORMAT;\n  var init_ts = __esm({\n    \"src/compiler/transformers/ts.ts\"() {\n      \"use strict\";\n      init_ts2();\n      USE_NEW_TYPE_METADATA_FORMAT = false;\n    }\n  });\n  function transformClassFields(context) {\n    const {\n      factory: factory2,\n      getEmitHelperFactory: emitHelpers,\n      hoistVariableDeclaration,\n      endLexicalEnvironment,\n      startLexicalEnvironment,\n      resumeLexicalEnvironment,\n      addBlockScopedVariable\n    } = context;\n    const resolver = context.getEmitResolver();\n    const compilerOptions = context.getCompilerOptions();\n    const languageVersion = getEmitScriptTarget(compilerOptions);\n    const useDefineForClassFields = getUseDefineForClassFields(compilerOptions);\n    const legacyDecorators = !!compilerOptions.experimentalDecorators;\n    const shouldTransformInitializersUsingSet = !useDefineForClassFields;\n    const shouldTransformInitializersUsingDefine = useDefineForClassFields && languageVersion < 9;\n    const shouldTransformInitializers = shouldTransformInitializersUsingSet || shouldTransformInitializersUsingDefine;\n    const shouldTransformPrivateElementsOrClassStaticBlocks = languageVersion < 9;\n    const shouldTransformAutoAccessors = languageVersion < 99 ? -1 : !useDefineForClassFields ? 3 : 0;\n    const shouldTransformThisInStaticInitializers = languageVersion < 9;\n    const shouldTransformSuperInStaticInitializers = shouldTransformThisInStaticInitializers && languageVersion >= 2;\n    const shouldTransformAnything = shouldTransformInitializers || shouldTransformPrivateElementsOrClassStaticBlocks || shouldTransformAutoAccessors === -1;\n    const previousOnSubstituteNode = context.onSubstituteNode;\n    context.onSubstituteNode = onSubstituteNode;\n    const previousOnEmitNode = context.onEmitNode;\n    context.onEmitNode = onEmitNode;\n    let shouldTransformPrivateStaticElementsInFile = false;\n    let enabledSubstitutions;\n    let classAliases;\n    let pendingExpressions;\n    let pendingStatements;\n    let lexicalEnvironment;\n    const lexicalEnvironmentMap = /* @__PURE__ */ new Map();\n    let currentClassContainer;\n    let currentStaticPropertyDeclarationOrStaticBlock;\n    let shouldSubstituteThisWithClassThis = false;\n    let previousShouldSubstituteThisWithClassThis = false;\n    return chainBundle(context, transformSourceFile);\n    function transformSourceFile(node) {\n      if (node.isDeclarationFile) {\n        return node;\n      }\n      lexicalEnvironment = void 0;\n      shouldTransformPrivateStaticElementsInFile = !!(getInternalEmitFlags(node) & 32);\n      if (!shouldTransformAnything && !shouldTransformPrivateStaticElementsInFile) {\n        return node;\n      }\n      const visited = visitEachChild(node, visitor, context);\n      addEmitHelpers(visited, context.readEmitHelpers());\n      return visited;\n    }\n    function modifierVisitor(node) {\n      switch (node.kind) {\n        case 127:\n          return shouldTransformAutoAccessorsInCurrentClass() ? void 0 : node;\n        default:\n          return tryCast(node, isModifier);\n      }\n    }\n    function visitor(node) {\n      if (!(node.transformFlags & 16777216) && !(node.transformFlags & 134234112)) {\n        return node;\n      }\n      switch (node.kind) {\n        case 127:\n          return Debug.fail(\"Use `modifierVisitor` instead.\");\n        case 260:\n          return visitClassDeclaration(node);\n        case 228:\n          return visitClassExpression(node, void 0);\n        case 172:\n        case 169:\n          return Debug.fail(\"Use `classElementVisitor` instead.\");\n        case 299:\n          return visitPropertyAssignment(node);\n        case 240:\n          return visitVariableStatement(node);\n        case 257:\n          return visitVariableDeclaration(node);\n        case 166:\n          return visitParameterDeclaration(node);\n        case 205:\n          return visitBindingElement(node);\n        case 274:\n          return visitExportAssignment(node);\n        case 80:\n          return visitPrivateIdentifier(node);\n        case 208:\n          return visitPropertyAccessExpression(node);\n        case 209:\n          return visitElementAccessExpression(node);\n        case 221:\n        case 222:\n          return visitPreOrPostfixUnaryExpression(node, false);\n        case 223:\n          return visitBinaryExpression(node, false);\n        case 214:\n          return visitParenthesizedExpression(node, false, void 0);\n        case 210:\n          return visitCallExpression(node);\n        case 241:\n          return visitExpressionStatement(node);\n        case 212:\n          return visitTaggedTemplateExpression(node);\n        case 245:\n          return visitForStatement(node);\n        case 259:\n        case 215:\n        case 173:\n        case 171:\n        case 174:\n        case 175: {\n          return setCurrentStaticPropertyDeclarationOrStaticBlockAnd(void 0, fallbackVisitor, node);\n        }\n        default:\n          return fallbackVisitor(node);\n      }\n    }\n    function fallbackVisitor(node) {\n      return visitEachChild(node, visitor, context);\n    }\n    function namedEvaluationVisitor(node, referencedName) {\n      switch (node.kind) {\n        case 356:\n          return visitPartiallyEmittedExpression(node, false, referencedName);\n        case 214:\n          return visitParenthesizedExpression(node, false, referencedName);\n        case 228:\n          return visitClassExpression(node, referencedName);\n        default:\n          return visitor(node);\n      }\n    }\n    function discardedValueVisitor(node) {\n      switch (node.kind) {\n        case 221:\n        case 222:\n          return visitPreOrPostfixUnaryExpression(node, true);\n        case 223:\n          return visitBinaryExpression(node, true);\n        case 357:\n          return visitCommaListExpression(node, true);\n        case 214:\n          return visitParenthesizedExpression(node, true, void 0);\n        default:\n          return visitor(node);\n      }\n    }\n    function heritageClauseVisitor(node) {\n      switch (node.kind) {\n        case 294:\n          return visitEachChild(node, heritageClauseVisitor, context);\n        case 230:\n          return visitExpressionWithTypeArgumentsInHeritageClause(node);\n        default:\n          return visitor(node);\n      }\n    }\n    function assignmentTargetVisitor(node) {\n      switch (node.kind) {\n        case 207:\n        case 206:\n          return visitAssignmentPattern(node);\n        default:\n          return visitor(node);\n      }\n    }\n    function classElementVisitor(node) {\n      switch (node.kind) {\n        case 173:\n          return visitConstructorDeclaration(node);\n        case 174:\n        case 175:\n        case 171:\n          return setCurrentStaticPropertyDeclarationOrStaticBlockAnd(void 0, visitMethodOrAccessorDeclaration, node);\n        case 169:\n          return setCurrentStaticPropertyDeclarationOrStaticBlockAnd(void 0, visitPropertyDeclaration, node);\n        case 172:\n          return visitClassStaticBlockDeclaration(node);\n        case 164:\n          return visitComputedPropertyName(node);\n        case 237:\n          return node;\n        default:\n          return isModifierLike(node) ? modifierVisitor(node) : visitor(node);\n      }\n    }\n    function propertyNameVisitor(node) {\n      switch (node.kind) {\n        case 164:\n          return visitComputedPropertyName(node);\n        default:\n          return visitor(node);\n      }\n    }\n    function accessorFieldResultVisitor(node) {\n      switch (node.kind) {\n        case 169:\n          return transformFieldInitializer(node);\n        case 174:\n        case 175:\n          return classElementVisitor(node);\n        default:\n          Debug.assertMissingNode(node, \"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration\");\n          break;\n      }\n    }\n    function visitPrivateIdentifier(node) {\n      if (!shouldTransformPrivateElementsOrClassStaticBlocks) {\n        return node;\n      }\n      if (isStatement(node.parent)) {\n        return node;\n      }\n      return setOriginalNode(factory2.createIdentifier(\"\"), node);\n    }\n    function transformPrivateIdentifierInInExpression(node) {\n      const info = accessPrivateIdentifier2(node.left);\n      if (info) {\n        const receiver = visitNode(node.right, visitor, isExpression);\n        return setOriginalNode(emitHelpers().createClassPrivateFieldInHelper(info.brandCheckIdentifier, receiver), node);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitPropertyAssignment(node) {\n      if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) {\n        const { referencedName, name } = visitReferencedPropertyName(node.name);\n        const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, referencedName), isExpression);\n        return factory2.updatePropertyAssignment(node, name, initializer);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitVariableStatement(node) {\n      const savedPendingStatements = pendingStatements;\n      pendingStatements = [];\n      const visitedNode = visitEachChild(node, visitor, context);\n      const statement = some(pendingStatements) ? [visitedNode, ...pendingStatements] : visitedNode;\n      pendingStatements = savedPendingStatements;\n      return statement;\n    }\n    function getAssignedNameOfIdentifier(name, initializer) {\n      const originalClass = getOriginalNode(initializer, isClassLike);\n      return originalClass && !originalClass.name && hasSyntacticModifier(originalClass, 1024) ? factory2.createStringLiteral(\"default\") : factory2.createStringLiteralFromNode(name);\n    }\n    function visitVariableDeclaration(node) {\n      if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) {\n        const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer);\n        const name = visitNode(node.name, visitor, isBindingName);\n        const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression);\n        return factory2.updateVariableDeclaration(node, name, void 0, void 0, initializer);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitParameterDeclaration(node) {\n      if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) {\n        const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer);\n        const name = visitNode(node.name, visitor, isBindingName);\n        const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression);\n        return factory2.updateParameterDeclaration(node, void 0, void 0, name, void 0, void 0, initializer);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitBindingElement(node) {\n      if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) {\n        const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer);\n        const propertyName = visitNode(node.propertyName, visitor, isPropertyName);\n        const name = visitNode(node.name, visitor, isBindingName);\n        const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression);\n        return factory2.updateBindingElement(node, void 0, propertyName, name, initializer);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitExportAssignment(node) {\n      if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) {\n        const assignedName = factory2.createStringLiteral(node.isExportEquals ? \"\" : \"default\");\n        const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier);\n        const expression = visitNode(node.expression, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression);\n        return factory2.updateExportAssignment(node, modifiers, expression);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function injectPendingExpressions(expression) {\n      if (some(pendingExpressions)) {\n        if (isParenthesizedExpression(expression)) {\n          pendingExpressions.push(expression.expression);\n          expression = factory2.updateParenthesizedExpression(expression, factory2.inlineExpressions(pendingExpressions));\n        } else {\n          pendingExpressions.push(expression);\n          expression = factory2.inlineExpressions(pendingExpressions);\n        }\n        pendingExpressions = void 0;\n      }\n      return expression;\n    }\n    function visitComputedPropertyName(node) {\n      const expression = visitNode(node.expression, visitor, isExpression);\n      return factory2.updateComputedPropertyName(node, injectPendingExpressions(expression));\n    }\n    function visitConstructorDeclaration(node) {\n      if (currentClassContainer) {\n        return transformConstructor(node, currentClassContainer);\n      }\n      return fallbackVisitor(node);\n    }\n    function shouldTransformClassElementToWeakMap(node) {\n      if (shouldTransformPrivateElementsOrClassStaticBlocks)\n        return true;\n      if (hasStaticModifier(node) && getInternalEmitFlags(node) & 32)\n        return true;\n      return false;\n    }\n    function visitMethodOrAccessorDeclaration(node) {\n      Debug.assert(!hasDecorators(node));\n      if (!isPrivateIdentifierClassElementDeclaration(node) || !shouldTransformClassElementToWeakMap(node)) {\n        return visitEachChild(node, classElementVisitor, context);\n      }\n      const info = accessPrivateIdentifier2(node.name);\n      Debug.assert(info, \"Undeclared private name for property declaration.\");\n      if (!info.isValid) {\n        return node;\n      }\n      const functionName = getHoistedFunctionName(node);\n      if (functionName) {\n        getPendingExpressions().push(factory2.createAssignment(functionName, factory2.createFunctionExpression(filter(node.modifiers, (m) => isModifier(m) && !isStaticModifier(m) && !isAccessorModifier(m)), node.asteriskToken, functionName, void 0, visitParameterList(node.parameters, visitor, context), void 0, visitFunctionBody(node.body, visitor, context))));\n      }\n      return void 0;\n    }\n    function setCurrentStaticPropertyDeclarationOrStaticBlockAnd(current, visitor2, arg) {\n      const savedCurrentStaticPropertyDeclarationOrStaticBlock = currentStaticPropertyDeclarationOrStaticBlock;\n      currentStaticPropertyDeclarationOrStaticBlock = current;\n      const result = visitor2(arg);\n      currentStaticPropertyDeclarationOrStaticBlock = savedCurrentStaticPropertyDeclarationOrStaticBlock;\n      return result;\n    }\n    function getHoistedFunctionName(node) {\n      Debug.assert(isPrivateIdentifier(node.name));\n      const info = accessPrivateIdentifier2(node.name);\n      Debug.assert(info, \"Undeclared private name for property declaration.\");\n      if (info.kind === \"m\") {\n        return info.methodName;\n      }\n      if (info.kind === \"a\") {\n        if (isGetAccessor(node)) {\n          return info.getterName;\n        }\n        if (isSetAccessor(node)) {\n          return info.setterName;\n        }\n      }\n    }\n    function transformAutoAccessor(node) {\n      const commentRange = getCommentRange(node);\n      const sourceMapRange = getSourceMapRange(node);\n      const name = node.name;\n      let getterName = name;\n      let setterName = name;\n      if (isComputedPropertyName(name) && !isSimpleInlineableExpression(name.expression)) {\n        const cacheAssignment = findComputedPropertyNameCacheAssignment(name);\n        if (cacheAssignment) {\n          getterName = factory2.updateComputedPropertyName(name, visitNode(name.expression, visitor, isExpression));\n          setterName = factory2.updateComputedPropertyName(name, cacheAssignment.left);\n        } else {\n          const temp = factory2.createTempVariable(hoistVariableDeclaration);\n          setSourceMapRange(temp, name.expression);\n          const expression = visitNode(name.expression, visitor, isExpression);\n          const assignment = factory2.createAssignment(temp, expression);\n          setSourceMapRange(assignment, name.expression);\n          getterName = factory2.updateComputedPropertyName(name, assignment);\n          setterName = factory2.updateComputedPropertyName(name, temp);\n        }\n      }\n      const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier);\n      const backingField = createAccessorPropertyBackingField(factory2, node, modifiers, node.initializer);\n      setOriginalNode(backingField, node);\n      setEmitFlags(backingField, 3072);\n      setSourceMapRange(backingField, sourceMapRange);\n      const getter = createAccessorPropertyGetRedirector(factory2, node, modifiers, getterName);\n      setOriginalNode(getter, node);\n      setCommentRange(getter, commentRange);\n      setSourceMapRange(getter, sourceMapRange);\n      const setter = createAccessorPropertySetRedirector(factory2, node, modifiers, setterName);\n      setOriginalNode(setter, node);\n      setEmitFlags(setter, 3072);\n      setSourceMapRange(setter, sourceMapRange);\n      return visitArray([backingField, getter, setter], accessorFieldResultVisitor, isClassElement);\n    }\n    function transformPrivateFieldInitializer(node) {\n      if (shouldTransformClassElementToWeakMap(node)) {\n        const info = accessPrivateIdentifier2(node.name);\n        Debug.assert(info, \"Undeclared private name for property declaration.\");\n        if (!info.isValid) {\n          return node;\n        }\n        if (info.isStatic && !shouldTransformPrivateElementsOrClassStaticBlocks) {\n          const statement = transformPropertyOrClassStaticBlock(node, factory2.createThis());\n          if (statement) {\n            return factory2.createClassStaticBlockDeclaration(factory2.createBlock([statement], true));\n          }\n        }\n        return void 0;\n      }\n      if (shouldTransformInitializersUsingSet && !isStatic(node) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) && lexicalEnvironment.data.facts & 16) {\n        return factory2.updatePropertyDeclaration(node, visitNodes2(node.modifiers, visitor, isModifierLike), node.name, void 0, void 0, void 0);\n      }\n      if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) {\n        const { referencedName, name } = visitReferencedPropertyName(node.name);\n        return factory2.updatePropertyDeclaration(node, visitNodes2(node.modifiers, modifierVisitor, isModifier), name, void 0, void 0, visitNode(node.initializer, (child) => namedEvaluationVisitor(child, referencedName), isExpression));\n      }\n      return factory2.updatePropertyDeclaration(node, visitNodes2(node.modifiers, modifierVisitor, isModifier), visitNode(node.name, propertyNameVisitor, isPropertyName), void 0, void 0, visitNode(node.initializer, visitor, isExpression));\n    }\n    function transformPublicFieldInitializer(node) {\n      if (shouldTransformInitializers && !isAutoAccessorPropertyDeclaration(node)) {\n        const expr = getPropertyNameExpressionIfNeeded(node.name, !!node.initializer || useDefineForClassFields, isNamedEvaluation(node, isAnonymousClassNeedingAssignedName));\n        if (expr) {\n          getPendingExpressions().push(...flattenCommaList(expr));\n        }\n        if (isStatic(node) && !shouldTransformPrivateElementsOrClassStaticBlocks) {\n          const initializerStatement = transformPropertyOrClassStaticBlock(node, factory2.createThis());\n          if (initializerStatement) {\n            const staticBlock = factory2.createClassStaticBlockDeclaration(factory2.createBlock([initializerStatement]));\n            setOriginalNode(staticBlock, node);\n            setCommentRange(staticBlock, node);\n            setCommentRange(initializerStatement, { pos: -1, end: -1 });\n            setSyntheticLeadingComments(initializerStatement, void 0);\n            setSyntheticTrailingComments(initializerStatement, void 0);\n            return staticBlock;\n          }\n        }\n        return void 0;\n      }\n      return factory2.updatePropertyDeclaration(node, visitNodes2(node.modifiers, modifierVisitor, isModifier), visitNode(node.name, propertyNameVisitor, isPropertyName), void 0, void 0, visitNode(node.initializer, visitor, isExpression));\n    }\n    function transformFieldInitializer(node) {\n      Debug.assert(!hasDecorators(node), \"Decorators should already have been transformed and elided.\");\n      return isPrivateIdentifierClassElementDeclaration(node) ? transformPrivateFieldInitializer(node) : transformPublicFieldInitializer(node);\n    }\n    function shouldTransformAutoAccessorsInCurrentClass() {\n      return shouldTransformAutoAccessors === -1 || shouldTransformAutoAccessors === 3 && !!(lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) && !!(lexicalEnvironment.data.facts & 16);\n    }\n    function visitPropertyDeclaration(node) {\n      if (isAutoAccessorPropertyDeclaration(node) && (shouldTransformAutoAccessorsInCurrentClass() || hasStaticModifier(node) && getInternalEmitFlags(node) & 32)) {\n        return transformAutoAccessor(node);\n      }\n      return transformFieldInitializer(node);\n    }\n    function createPrivateIdentifierAccess(info, receiver) {\n      return createPrivateIdentifierAccessHelper(info, visitNode(receiver, visitor, isExpression));\n    }\n    function createPrivateIdentifierAccessHelper(info, receiver) {\n      setCommentRange(receiver, moveRangePos(receiver, -1));\n      switch (info.kind) {\n        case \"a\":\n          return emitHelpers().createClassPrivateFieldGetHelper(receiver, info.brandCheckIdentifier, info.kind, info.getterName);\n        case \"m\":\n          return emitHelpers().createClassPrivateFieldGetHelper(receiver, info.brandCheckIdentifier, info.kind, info.methodName);\n        case \"f\":\n          return emitHelpers().createClassPrivateFieldGetHelper(receiver, info.brandCheckIdentifier, info.kind, info.isStatic ? info.variableName : void 0);\n        case \"untransformed\":\n          return Debug.fail(\"Access helpers should not be created for untransformed private elements\");\n        default:\n          Debug.assertNever(info, \"Unknown private element type\");\n      }\n    }\n    function visitPropertyAccessExpression(node) {\n      if (isPrivateIdentifier(node.name)) {\n        const privateIdentifierInfo = accessPrivateIdentifier2(node.name);\n        if (privateIdentifierInfo) {\n          return setTextRange(setOriginalNode(createPrivateIdentifierAccess(privateIdentifierInfo, node.expression), node), node);\n        }\n      }\n      if (shouldTransformSuperInStaticInitializers && isSuperProperty(node) && isIdentifier(node.name) && currentStaticPropertyDeclarationOrStaticBlock && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) {\n        const { classConstructor, superClassReference, facts } = lexicalEnvironment.data;\n        if (facts & 1) {\n          return visitInvalidSuperProperty(node);\n        }\n        if (classConstructor && superClassReference) {\n          const superProperty = factory2.createReflectGetCall(superClassReference, factory2.createStringLiteralFromNode(node.name), classConstructor);\n          setOriginalNode(superProperty, node.expression);\n          setTextRange(superProperty, node.expression);\n          return superProperty;\n        }\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitElementAccessExpression(node) {\n      if (shouldTransformSuperInStaticInitializers && isSuperProperty(node) && currentStaticPropertyDeclarationOrStaticBlock && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) {\n        const { classConstructor, superClassReference, facts } = lexicalEnvironment.data;\n        if (facts & 1) {\n          return visitInvalidSuperProperty(node);\n        }\n        if (classConstructor && superClassReference) {\n          const superProperty = factory2.createReflectGetCall(superClassReference, visitNode(node.argumentExpression, visitor, isExpression), classConstructor);\n          setOriginalNode(superProperty, node.expression);\n          setTextRange(superProperty, node.expression);\n          return superProperty;\n        }\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitPreOrPostfixUnaryExpression(node, discarded) {\n      if (node.operator === 45 || node.operator === 46) {\n        const operand = skipParentheses(node.operand);\n        if (isPrivateIdentifierPropertyAccessExpression(operand)) {\n          let info;\n          if (info = accessPrivateIdentifier2(operand.name)) {\n            const receiver = visitNode(operand.expression, visitor, isExpression);\n            const { readExpression, initializeExpression } = createCopiableReceiverExpr(receiver);\n            let expression = createPrivateIdentifierAccess(info, readExpression);\n            const temp = isPrefixUnaryExpression(node) || discarded ? void 0 : factory2.createTempVariable(hoistVariableDeclaration);\n            expression = expandPreOrPostfixIncrementOrDecrementExpression(factory2, node, expression, hoistVariableDeclaration, temp);\n            expression = createPrivateIdentifierAssignment(info, initializeExpression || readExpression, expression, 63);\n            setOriginalNode(expression, node);\n            setTextRange(expression, node);\n            if (temp) {\n              expression = factory2.createComma(expression, temp);\n              setTextRange(expression, node);\n            }\n            return expression;\n          }\n        } else if (shouldTransformSuperInStaticInitializers && isSuperProperty(operand) && currentStaticPropertyDeclarationOrStaticBlock && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) {\n          const { classConstructor, superClassReference, facts } = lexicalEnvironment.data;\n          if (facts & 1) {\n            const expression = visitInvalidSuperProperty(operand);\n            return isPrefixUnaryExpression(node) ? factory2.updatePrefixUnaryExpression(node, expression) : factory2.updatePostfixUnaryExpression(node, expression);\n          }\n          if (classConstructor && superClassReference) {\n            let setterName;\n            let getterName;\n            if (isPropertyAccessExpression(operand)) {\n              if (isIdentifier(operand.name)) {\n                getterName = setterName = factory2.createStringLiteralFromNode(operand.name);\n              }\n            } else {\n              if (isSimpleInlineableExpression(operand.argumentExpression)) {\n                getterName = setterName = operand.argumentExpression;\n              } else {\n                getterName = factory2.createTempVariable(hoistVariableDeclaration);\n                setterName = factory2.createAssignment(getterName, visitNode(operand.argumentExpression, visitor, isExpression));\n              }\n            }\n            if (setterName && getterName) {\n              let expression = factory2.createReflectGetCall(superClassReference, getterName, classConstructor);\n              setTextRange(expression, operand);\n              const temp = discarded ? void 0 : factory2.createTempVariable(hoistVariableDeclaration);\n              expression = expandPreOrPostfixIncrementOrDecrementExpression(factory2, node, expression, hoistVariableDeclaration, temp);\n              expression = factory2.createReflectSetCall(superClassReference, setterName, expression, classConstructor);\n              setOriginalNode(expression, node);\n              setTextRange(expression, node);\n              if (temp) {\n                expression = factory2.createComma(expression, temp);\n                setTextRange(expression, node);\n              }\n              return expression;\n            }\n          }\n        }\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitForStatement(node) {\n      return factory2.updateForStatement(node, visitNode(node.initializer, discardedValueVisitor, isForInitializer), visitNode(node.condition, visitor, isExpression), visitNode(node.incrementor, discardedValueVisitor, isExpression), visitIterationBody(node.statement, visitor, context));\n    }\n    function visitExpressionStatement(node) {\n      return factory2.updateExpressionStatement(node, visitNode(node.expression, discardedValueVisitor, isExpression));\n    }\n    function createCopiableReceiverExpr(receiver) {\n      const clone2 = nodeIsSynthesized(receiver) ? receiver : factory2.cloneNode(receiver);\n      if (isSimpleInlineableExpression(receiver)) {\n        return { readExpression: clone2, initializeExpression: void 0 };\n      }\n      const readExpression = factory2.createTempVariable(hoistVariableDeclaration);\n      const initializeExpression = factory2.createAssignment(readExpression, clone2);\n      return { readExpression, initializeExpression };\n    }\n    function visitCallExpression(node) {\n      var _a2;\n      if (isPrivateIdentifierPropertyAccessExpression(node.expression) && accessPrivateIdentifier2(node.expression.name)) {\n        const { thisArg, target } = factory2.createCallBinding(node.expression, hoistVariableDeclaration, languageVersion);\n        if (isCallChain(node)) {\n          return factory2.updateCallChain(node, factory2.createPropertyAccessChain(visitNode(target, visitor, isExpression), node.questionDotToken, \"call\"), void 0, void 0, [visitNode(thisArg, visitor, isExpression), ...visitNodes2(node.arguments, visitor, isExpression)]);\n        }\n        return factory2.updateCallExpression(node, factory2.createPropertyAccessExpression(visitNode(target, visitor, isExpression), \"call\"), void 0, [visitNode(thisArg, visitor, isExpression), ...visitNodes2(node.arguments, visitor, isExpression)]);\n      }\n      if (shouldTransformSuperInStaticInitializers && isSuperProperty(node.expression) && currentStaticPropertyDeclarationOrStaticBlock && ((_a2 = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a2.classConstructor)) {\n        const invocation = factory2.createFunctionCallCall(visitNode(node.expression, visitor, isExpression), lexicalEnvironment.data.classConstructor, visitNodes2(node.arguments, visitor, isExpression));\n        setOriginalNode(invocation, node);\n        setTextRange(invocation, node);\n        return invocation;\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitTaggedTemplateExpression(node) {\n      var _a2;\n      if (isPrivateIdentifierPropertyAccessExpression(node.tag) && accessPrivateIdentifier2(node.tag.name)) {\n        const { thisArg, target } = factory2.createCallBinding(node.tag, hoistVariableDeclaration, languageVersion);\n        return factory2.updateTaggedTemplateExpression(node, factory2.createCallExpression(factory2.createPropertyAccessExpression(visitNode(target, visitor, isExpression), \"bind\"), void 0, [visitNode(thisArg, visitor, isExpression)]), void 0, visitNode(node.template, visitor, isTemplateLiteral));\n      }\n      if (shouldTransformSuperInStaticInitializers && isSuperProperty(node.tag) && currentStaticPropertyDeclarationOrStaticBlock && ((_a2 = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a2.classConstructor)) {\n        const invocation = factory2.createFunctionBindCall(visitNode(node.tag, visitor, isExpression), lexicalEnvironment.data.classConstructor, []);\n        setOriginalNode(invocation, node);\n        setTextRange(invocation, node);\n        return factory2.updateTaggedTemplateExpression(node, invocation, void 0, visitNode(node.template, visitor, isTemplateLiteral));\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function transformClassStaticBlockDeclaration(node) {\n      if (lexicalEnvironment) {\n        lexicalEnvironmentMap.set(getOriginalNode(node), lexicalEnvironment);\n      }\n      if (shouldTransformPrivateElementsOrClassStaticBlocks) {\n        startLexicalEnvironment();\n        let statements = setCurrentStaticPropertyDeclarationOrStaticBlockAnd(node, (statements2) => visitNodes2(statements2, visitor, isStatement), node.body.statements);\n        statements = factory2.mergeLexicalEnvironment(statements, endLexicalEnvironment());\n        const iife = factory2.createImmediatelyInvokedArrowFunction(statements);\n        setOriginalNode(iife, node);\n        setTextRange(iife, node);\n        addEmitFlags(iife, 4);\n        return iife;\n      }\n    }\n    function isAnonymousClassNeedingAssignedName(node) {\n      if (isClassExpression(node) && !node.name) {\n        const staticPropertiesOrClassStaticBlocks = getStaticPropertiesAndClassStaticBlock(node);\n        const classStaticBlock = find(staticPropertiesOrClassStaticBlocks, isClassStaticBlockDeclaration);\n        if (classStaticBlock) {\n          for (const statement of classStaticBlock.body.statements) {\n            if (isExpressionStatement(statement) && isCallToHelper(statement.expression, \"___setFunctionName\")) {\n              return false;\n            }\n          }\n        }\n        const hasTransformableStatics = (shouldTransformPrivateElementsOrClassStaticBlocks || !!(getInternalEmitFlags(node) && 32)) && some(staticPropertiesOrClassStaticBlocks, (node2) => isClassStaticBlockDeclaration(node2) || isPrivateIdentifierClassElementDeclaration(node2) || shouldTransformInitializers && isInitializedProperty(node2));\n        return hasTransformableStatics;\n      }\n      return false;\n    }\n    function visitBinaryExpression(node, discarded) {\n      if (isDestructuringAssignment(node)) {\n        const savedPendingExpressions = pendingExpressions;\n        pendingExpressions = void 0;\n        node = factory2.updateBinaryExpression(node, visitNode(node.left, assignmentTargetVisitor, isExpression), node.operatorToken, visitNode(node.right, visitor, isExpression));\n        const expr = some(pendingExpressions) ? factory2.inlineExpressions(compact([...pendingExpressions, node])) : node;\n        pendingExpressions = savedPendingExpressions;\n        return expr;\n      }\n      if (isAssignmentExpression(node)) {\n        if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) {\n          const assignedName = getAssignedNameOfIdentifier(node.left, node.right);\n          const left = visitNode(node.left, visitor, isExpression);\n          const right = visitNode(node.right, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression);\n          return factory2.updateBinaryExpression(node, left, node.operatorToken, right);\n        }\n        if (isPrivateIdentifierPropertyAccessExpression(node.left)) {\n          const info = accessPrivateIdentifier2(node.left.name);\n          if (info) {\n            return setTextRange(setOriginalNode(createPrivateIdentifierAssignment(info, node.left.expression, node.right, node.operatorToken.kind), node), node);\n          }\n        } else if (shouldTransformSuperInStaticInitializers && isSuperProperty(node.left) && currentStaticPropertyDeclarationOrStaticBlock && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) {\n          const { classConstructor, superClassReference, facts } = lexicalEnvironment.data;\n          if (facts & 1) {\n            return factory2.updateBinaryExpression(node, visitInvalidSuperProperty(node.left), node.operatorToken, visitNode(node.right, visitor, isExpression));\n          }\n          if (classConstructor && superClassReference) {\n            let setterName = isElementAccessExpression(node.left) ? visitNode(node.left.argumentExpression, visitor, isExpression) : isIdentifier(node.left.name) ? factory2.createStringLiteralFromNode(node.left.name) : void 0;\n            if (setterName) {\n              let expression = visitNode(node.right, visitor, isExpression);\n              if (isCompoundAssignment(node.operatorToken.kind)) {\n                let getterName = setterName;\n                if (!isSimpleInlineableExpression(setterName)) {\n                  getterName = factory2.createTempVariable(hoistVariableDeclaration);\n                  setterName = factory2.createAssignment(getterName, setterName);\n                }\n                const superPropertyGet = factory2.createReflectGetCall(superClassReference, getterName, classConstructor);\n                setOriginalNode(superPropertyGet, node.left);\n                setTextRange(superPropertyGet, node.left);\n                expression = factory2.createBinaryExpression(superPropertyGet, getNonAssignmentOperatorForCompoundAssignment(node.operatorToken.kind), expression);\n                setTextRange(expression, node);\n              }\n              const temp = discarded ? void 0 : factory2.createTempVariable(hoistVariableDeclaration);\n              if (temp) {\n                expression = factory2.createAssignment(temp, expression);\n                setTextRange(temp, node);\n              }\n              expression = factory2.createReflectSetCall(superClassReference, setterName, expression, classConstructor);\n              setOriginalNode(expression, node);\n              setTextRange(expression, node);\n              if (temp) {\n                expression = factory2.createComma(expression, temp);\n                setTextRange(expression, node);\n              }\n              return expression;\n            }\n          }\n        }\n      }\n      if (isPrivateIdentifierInExpression(node)) {\n        return transformPrivateIdentifierInInExpression(node);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitCommaListExpression(node, discarded) {\n      const elements = discarded ? visitCommaListElements(node.elements, discardedValueVisitor) : visitCommaListElements(node.elements, visitor, discardedValueVisitor);\n      return factory2.updateCommaListExpression(node, elements);\n    }\n    function visitParenthesizedExpression(node, discarded, referencedName) {\n      const visitorFunc = discarded ? discardedValueVisitor : referencedName ? (node2) => namedEvaluationVisitor(node2, referencedName) : visitor;\n      const expression = visitNode(node.expression, visitorFunc, isExpression);\n      return factory2.updateParenthesizedExpression(node, expression);\n    }\n    function visitPartiallyEmittedExpression(node, discarded, referencedName) {\n      const visitorFunc = discarded ? discardedValueVisitor : referencedName ? (node2) => namedEvaluationVisitor(node2, referencedName) : visitor;\n      const expression = visitNode(node.expression, visitorFunc, isExpression);\n      return factory2.updatePartiallyEmittedExpression(node, expression);\n    }\n    function visitReferencedPropertyName(node) {\n      if (isPropertyNameLiteral(node) || isPrivateIdentifier(node)) {\n        const referencedName2 = factory2.createStringLiteralFromNode(node);\n        const name2 = visitNode(node, visitor, isPropertyName);\n        return { referencedName: referencedName2, name: name2 };\n      }\n      if (isPropertyNameLiteral(node.expression) && !isIdentifier(node.expression)) {\n        const referencedName2 = factory2.createStringLiteralFromNode(node.expression);\n        const name2 = visitNode(node, visitor, isPropertyName);\n        return { referencedName: referencedName2, name: name2 };\n      }\n      const referencedName = factory2.createTempVariable(hoistVariableDeclaration);\n      const key = emitHelpers().createPropKeyHelper(visitNode(node.expression, visitor, isExpression));\n      const assignment = factory2.createAssignment(referencedName, key);\n      const name = factory2.updateComputedPropertyName(node, injectPendingExpressions(assignment));\n      return { referencedName, name };\n    }\n    function createPrivateIdentifierAssignment(info, receiver, right, operator) {\n      receiver = visitNode(receiver, visitor, isExpression);\n      right = visitNode(right, visitor, isExpression);\n      if (isCompoundAssignment(operator)) {\n        const { readExpression, initializeExpression } = createCopiableReceiverExpr(receiver);\n        receiver = initializeExpression || readExpression;\n        right = factory2.createBinaryExpression(createPrivateIdentifierAccessHelper(info, readExpression), getNonAssignmentOperatorForCompoundAssignment(operator), right);\n      }\n      setCommentRange(receiver, moveRangePos(receiver, -1));\n      switch (info.kind) {\n        case \"a\":\n          return emitHelpers().createClassPrivateFieldSetHelper(receiver, info.brandCheckIdentifier, right, info.kind, info.setterName);\n        case \"m\":\n          return emitHelpers().createClassPrivateFieldSetHelper(receiver, info.brandCheckIdentifier, right, info.kind, void 0);\n        case \"f\":\n          return emitHelpers().createClassPrivateFieldSetHelper(receiver, info.brandCheckIdentifier, right, info.kind, info.isStatic ? info.variableName : void 0);\n        case \"untransformed\":\n          return Debug.fail(\"Access helpers should not be created for untransformed private elements\");\n        default:\n          Debug.assertNever(info, \"Unknown private element type\");\n      }\n    }\n    function getPrivateInstanceMethodsAndAccessors(node) {\n      return filter(node.members, isNonStaticMethodOrAccessorWithPrivateName);\n    }\n    function getClassFacts(node) {\n      let facts = 0;\n      const original = getOriginalNode(node);\n      if (isClassDeclaration(original) && classOrConstructorParameterIsDecorated(legacyDecorators, original)) {\n        facts |= 1;\n      }\n      let containsPublicInstanceFields = false;\n      let containsInitializedPublicInstanceFields = false;\n      let containsInstancePrivateElements = false;\n      let containsInstanceAutoAccessors = false;\n      for (const member of node.members) {\n        if (isStatic(member)) {\n          if (member.name && (isPrivateIdentifier(member.name) || isAutoAccessorPropertyDeclaration(member)) && shouldTransformPrivateElementsOrClassStaticBlocks) {\n            facts |= 2;\n          }\n          if (isPropertyDeclaration(member) || isClassStaticBlockDeclaration(member)) {\n            if (shouldTransformThisInStaticInitializers && member.transformFlags & 16384) {\n              facts |= 8;\n              if (!(facts & 1)) {\n                facts |= 2;\n              }\n            }\n            if (shouldTransformSuperInStaticInitializers && member.transformFlags & 134217728) {\n              if (!(facts & 1)) {\n                facts |= 2 | 4;\n              }\n            }\n          }\n        } else if (!hasAbstractModifier(getOriginalNode(member))) {\n          if (isAutoAccessorPropertyDeclaration(member)) {\n            containsInstanceAutoAccessors = true;\n            containsInstancePrivateElements || (containsInstancePrivateElements = isPrivateIdentifierClassElementDeclaration(member));\n          } else if (isPrivateIdentifierClassElementDeclaration(member)) {\n            containsInstancePrivateElements = true;\n          } else if (isPropertyDeclaration(member)) {\n            containsPublicInstanceFields = true;\n            containsInitializedPublicInstanceFields || (containsInitializedPublicInstanceFields = !!member.initializer);\n          }\n        }\n      }\n      const willHoistInitializersToConstructor = shouldTransformInitializersUsingDefine && containsPublicInstanceFields || shouldTransformInitializersUsingSet && containsInitializedPublicInstanceFields || shouldTransformPrivateElementsOrClassStaticBlocks && containsInstancePrivateElements || shouldTransformPrivateElementsOrClassStaticBlocks && containsInstanceAutoAccessors && shouldTransformAutoAccessors === -1;\n      if (willHoistInitializersToConstructor) {\n        facts |= 16;\n      }\n      return facts;\n    }\n    function visitExpressionWithTypeArgumentsInHeritageClause(node) {\n      var _a2;\n      const facts = ((_a2 = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a2.facts) || 0;\n      if (facts & 4) {\n        const temp = factory2.createTempVariable(hoistVariableDeclaration, true);\n        getClassLexicalEnvironment().superClassReference = temp;\n        return factory2.updateExpressionWithTypeArguments(node, factory2.createAssignment(temp, visitNode(node.expression, visitor, isExpression)), void 0);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitInNewClassLexicalEnvironment(node, referencedName, visitor2) {\n      const savedCurrentClassContainer = currentClassContainer;\n      const savedPendingExpressions = pendingExpressions;\n      const savedLexicalEnvironment = lexicalEnvironment;\n      currentClassContainer = node;\n      pendingExpressions = void 0;\n      startClassLexicalEnvironment();\n      const shouldAlwaysTransformPrivateStaticElements = getInternalEmitFlags(node) & 32;\n      if (shouldTransformPrivateElementsOrClassStaticBlocks || shouldAlwaysTransformPrivateStaticElements) {\n        const name = getNameOfDeclaration(node);\n        if (name && isIdentifier(name)) {\n          getPrivateIdentifierEnvironment().data.className = name;\n        }\n      }\n      if (shouldTransformPrivateElementsOrClassStaticBlocks) {\n        const privateInstanceMethodsAndAccessors = getPrivateInstanceMethodsAndAccessors(node);\n        if (some(privateInstanceMethodsAndAccessors)) {\n          getPrivateIdentifierEnvironment().data.weakSetName = createHoistedVariableForClass(\"instances\", privateInstanceMethodsAndAccessors[0].name);\n        }\n      }\n      const facts = getClassFacts(node);\n      if (facts) {\n        getClassLexicalEnvironment().facts = facts;\n      }\n      if (facts & 8) {\n        enableSubstitutionForClassStaticThisOrSuperReference();\n      }\n      const result = visitor2(node, facts, referencedName);\n      endClassLexicalEnvironment();\n      Debug.assert(lexicalEnvironment === savedLexicalEnvironment);\n      currentClassContainer = savedCurrentClassContainer;\n      pendingExpressions = savedPendingExpressions;\n      return result;\n    }\n    function visitClassDeclaration(node) {\n      return visitInNewClassLexicalEnvironment(node, void 0, visitClassDeclarationInNewClassLexicalEnvironment);\n    }\n    function visitClassDeclarationInNewClassLexicalEnvironment(node, facts) {\n      var _a2, _b;\n      let pendingClassReferenceAssignment;\n      if (facts & 2) {\n        if (shouldTransformPrivateElementsOrClassStaticBlocks && ((_a2 = node.emitNode) == null ? void 0 : _a2.classThis)) {\n          getClassLexicalEnvironment().classConstructor = node.emitNode.classThis;\n          pendingClassReferenceAssignment = factory2.createAssignment(node.emitNode.classThis, factory2.getInternalName(node));\n        } else {\n          const temp = factory2.createTempVariable(hoistVariableDeclaration, true);\n          getClassLexicalEnvironment().classConstructor = factory2.cloneNode(temp);\n          pendingClassReferenceAssignment = factory2.createAssignment(temp, factory2.getInternalName(node));\n        }\n        if ((_b = node.emitNode) == null ? void 0 : _b.classThis) {\n          getClassLexicalEnvironment().classThis = node.emitNode.classThis;\n        }\n      }\n      const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier);\n      const heritageClauses = visitNodes2(node.heritageClauses, heritageClauseVisitor, isHeritageClause);\n      const { members, prologue } = transformClassMembers(node);\n      const classDecl = factory2.updateClassDeclaration(node, modifiers, node.name, void 0, heritageClauses, members);\n      const statements = [];\n      if (prologue) {\n        statements.push(factory2.createExpressionStatement(prologue));\n      }\n      statements.push(classDecl);\n      if (pendingClassReferenceAssignment) {\n        getPendingExpressions().unshift(pendingClassReferenceAssignment);\n      }\n      if (some(pendingExpressions)) {\n        statements.push(factory2.createExpressionStatement(factory2.inlineExpressions(pendingExpressions)));\n      }\n      if (shouldTransformInitializersUsingSet || shouldTransformPrivateElementsOrClassStaticBlocks || getInternalEmitFlags(node) & 32) {\n        const staticProperties = getStaticPropertiesAndClassStaticBlock(node);\n        if (some(staticProperties)) {\n          addPropertyOrClassStaticBlockStatements(statements, staticProperties, factory2.getInternalName(node));\n        }\n      }\n      return statements;\n    }\n    function visitClassExpression(node, referencedName) {\n      return visitInNewClassLexicalEnvironment(node, referencedName, visitClassExpressionInNewClassLexicalEnvironment);\n    }\n    function visitClassExpressionInNewClassLexicalEnvironment(node, facts, referencedName) {\n      var _a2, _b, _c, _d, _e, _f;\n      const isDecoratedClassDeclaration = !!(facts & 1);\n      const staticPropertiesOrClassStaticBlocks = getStaticPropertiesAndClassStaticBlock(node);\n      const isClassWithConstructorReference = resolver.getNodeCheckFlags(node) & 1048576;\n      let temp;\n      function createClassTempVar() {\n        var _a3;\n        if (shouldTransformPrivateElementsOrClassStaticBlocks && ((_a3 = node.emitNode) == null ? void 0 : _a3.classThis)) {\n          return getClassLexicalEnvironment().classConstructor = node.emitNode.classThis;\n        }\n        const classCheckFlags = resolver.getNodeCheckFlags(node);\n        const isClassWithConstructorReference2 = classCheckFlags & 1048576;\n        const requiresBlockScopedVar = classCheckFlags & 32768;\n        const temp2 = factory2.createTempVariable(requiresBlockScopedVar ? addBlockScopedVariable : hoistVariableDeclaration, !!isClassWithConstructorReference2);\n        getClassLexicalEnvironment().classConstructor = factory2.cloneNode(temp2);\n        return temp2;\n      }\n      if ((_a2 = node.emitNode) == null ? void 0 : _a2.classThis) {\n        getClassLexicalEnvironment().classThis = node.emitNode.classThis;\n      }\n      if (facts & 2) {\n        temp != null ? temp : temp = createClassTempVar();\n      }\n      const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier);\n      const heritageClauses = visitNodes2(node.heritageClauses, heritageClauseVisitor, isHeritageClause);\n      const { members, prologue } = transformClassMembers(node);\n      let classExpression = factory2.updateClassExpression(node, modifiers, node.name, void 0, heritageClauses, members);\n      const expressions = [];\n      if (prologue) {\n        expressions.push(prologue);\n      }\n      const hasTransformableStatics = (shouldTransformPrivateElementsOrClassStaticBlocks || getInternalEmitFlags(node) & 32) && some(staticPropertiesOrClassStaticBlocks, (node2) => isClassStaticBlockDeclaration(node2) || isPrivateIdentifierClassElementDeclaration(node2) || shouldTransformInitializers && isInitializedProperty(node2));\n      if (hasTransformableStatics || some(pendingExpressions) || referencedName) {\n        if (isDecoratedClassDeclaration) {\n          Debug.assertIsDefined(pendingStatements, \"Decorated classes transformed by TypeScript are expected to be within a variable declaration.\");\n          if (some(pendingExpressions)) {\n            addRange(pendingStatements, map(pendingExpressions, factory2.createExpressionStatement));\n          }\n          if (referencedName) {\n            if (shouldTransformPrivateElementsOrClassStaticBlocks) {\n              const setNameExpression = emitHelpers().createSetFunctionNameHelper((_c = temp != null ? temp : (_b = node.emitNode) == null ? void 0 : _b.classThis) != null ? _c : factory2.getInternalName(node), referencedName);\n              pendingStatements.push(factory2.createExpressionStatement(setNameExpression));\n            } else {\n              const setNameExpression = emitHelpers().createSetFunctionNameHelper(factory2.createThis(), referencedName);\n              classExpression = factory2.updateClassExpression(classExpression, classExpression.modifiers, classExpression.name, classExpression.typeParameters, classExpression.heritageClauses, [\n                factory2.createClassStaticBlockDeclaration(factory2.createBlock([\n                  factory2.createExpressionStatement(setNameExpression)\n                ])),\n                ...classExpression.members\n              ]);\n            }\n          }\n          if (some(staticPropertiesOrClassStaticBlocks)) {\n            addPropertyOrClassStaticBlockStatements(pendingStatements, staticPropertiesOrClassStaticBlocks, (_e = (_d = node.emitNode) == null ? void 0 : _d.classThis) != null ? _e : factory2.getInternalName(node));\n          }\n          if (temp) {\n            expressions.push(factory2.createAssignment(temp, classExpression));\n          } else if (shouldTransformPrivateElementsOrClassStaticBlocks && ((_f = node.emitNode) == null ? void 0 : _f.classThis)) {\n            expressions.push(factory2.createAssignment(node.emitNode.classThis, classExpression));\n          } else {\n            expressions.push(classExpression);\n          }\n        } else {\n          temp != null ? temp : temp = createClassTempVar();\n          if (isClassWithConstructorReference) {\n            enableSubstitutionForClassAliases();\n            const alias = factory2.cloneNode(temp);\n            alias.emitNode.autoGenerate.flags &= ~8;\n            classAliases[getOriginalNodeId(node)] = alias;\n          }\n          expressions.push(factory2.createAssignment(temp, classExpression));\n          addRange(expressions, pendingExpressions);\n          if (referencedName) {\n            expressions.push(emitHelpers().createSetFunctionNameHelper(temp, referencedName));\n          }\n          addRange(expressions, generateInitializedPropertyExpressionsOrClassStaticBlock(staticPropertiesOrClassStaticBlocks, temp));\n          expressions.push(factory2.cloneNode(temp));\n        }\n      } else {\n        expressions.push(classExpression);\n      }\n      if (expressions.length > 1) {\n        addEmitFlags(classExpression, 131072);\n        expressions.forEach(startOnNewLine);\n      }\n      return factory2.inlineExpressions(expressions);\n    }\n    function visitClassStaticBlockDeclaration(node) {\n      if (!shouldTransformPrivateElementsOrClassStaticBlocks) {\n        return visitEachChild(node, visitor, context);\n      }\n      return void 0;\n    }\n    function transformClassMembers(node) {\n      const shouldTransformPrivateStaticElementsInClass = !!(getInternalEmitFlags(node) & 32);\n      if (shouldTransformPrivateElementsOrClassStaticBlocks || shouldTransformPrivateStaticElementsInFile) {\n        for (const member of node.members) {\n          if (isPrivateIdentifierClassElementDeclaration(member)) {\n            if (shouldTransformClassElementToWeakMap(member)) {\n              addPrivateIdentifierToEnvironment(member, member.name, addPrivateIdentifierClassElementToEnvironment);\n            } else {\n              const privateEnv = getPrivateIdentifierEnvironment();\n              setPrivateIdentifier(privateEnv, member.name, { kind: \"untransformed\" });\n            }\n          }\n        }\n        if (shouldTransformPrivateElementsOrClassStaticBlocks) {\n          if (some(getPrivateInstanceMethodsAndAccessors(node))) {\n            createBrandCheckWeakSetForPrivateMethods();\n          }\n        }\n        if (shouldTransformAutoAccessorsInCurrentClass()) {\n          for (const member of node.members) {\n            if (isAutoAccessorPropertyDeclaration(member)) {\n              const storageName = factory2.getGeneratedPrivateNameForNode(member.name, void 0, \"_accessor_storage\");\n              if (shouldTransformPrivateElementsOrClassStaticBlocks || shouldTransformPrivateStaticElementsInClass && hasStaticModifier(member)) {\n                addPrivateIdentifierToEnvironment(member, storageName, addPrivateIdentifierPropertyDeclarationToEnvironment);\n              } else {\n                const privateEnv = getPrivateIdentifierEnvironment();\n                setPrivateIdentifier(privateEnv, storageName, { kind: \"untransformed\" });\n              }\n            }\n          }\n        }\n      }\n      let members = visitNodes2(node.members, classElementVisitor, isClassElement);\n      let syntheticConstructor;\n      if (!some(members, isConstructorDeclaration)) {\n        syntheticConstructor = transformConstructor(void 0, node);\n      }\n      let prologue;\n      let syntheticStaticBlock;\n      if (!shouldTransformPrivateElementsOrClassStaticBlocks && some(pendingExpressions)) {\n        let statement = factory2.createExpressionStatement(factory2.inlineExpressions(pendingExpressions));\n        if (statement.transformFlags & 134234112) {\n          const temp = factory2.createTempVariable(hoistVariableDeclaration);\n          const arrow = factory2.createArrowFunction(void 0, void 0, [], void 0, void 0, factory2.createBlock([statement]));\n          prologue = factory2.createAssignment(temp, arrow);\n          statement = factory2.createExpressionStatement(factory2.createCallExpression(temp, void 0, []));\n        }\n        const block = factory2.createBlock([statement]);\n        syntheticStaticBlock = factory2.createClassStaticBlockDeclaration(block);\n        pendingExpressions = void 0;\n      }\n      if (syntheticConstructor || syntheticStaticBlock) {\n        let membersArray;\n        membersArray = append(membersArray, syntheticConstructor);\n        membersArray = append(membersArray, syntheticStaticBlock);\n        membersArray = addRange(membersArray, members);\n        members = setTextRange(factory2.createNodeArray(membersArray), node.members);\n      }\n      return { members, prologue };\n    }\n    function createBrandCheckWeakSetForPrivateMethods() {\n      const { weakSetName } = getPrivateIdentifierEnvironment().data;\n      Debug.assert(weakSetName, \"weakSetName should be set in private identifier environment\");\n      getPendingExpressions().push(factory2.createAssignment(weakSetName, factory2.createNewExpression(factory2.createIdentifier(\"WeakSet\"), void 0, [])));\n    }\n    function transformConstructor(constructor, container) {\n      constructor = visitNode(constructor, visitor, isConstructorDeclaration);\n      if (!(lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) || !(lexicalEnvironment.data.facts & 16)) {\n        return constructor;\n      }\n      const extendsClauseElement = getEffectiveBaseTypeNode(container);\n      const isDerivedClass = !!(extendsClauseElement && skipOuterExpressions(extendsClauseElement.expression).kind !== 104);\n      const parameters = visitParameterList(constructor ? constructor.parameters : void 0, visitor, context);\n      const body = transformConstructorBody(container, constructor, isDerivedClass);\n      if (!body) {\n        return constructor;\n      }\n      if (constructor) {\n        Debug.assert(parameters);\n        return factory2.updateConstructorDeclaration(constructor, void 0, parameters, body);\n      }\n      return startOnNewLine(setOriginalNode(setTextRange(factory2.createConstructorDeclaration(void 0, parameters != null ? parameters : [], body), constructor || container), constructor));\n    }\n    function transformConstructorBody(node, constructor, isDerivedClass) {\n      var _a2, _b;\n      const instanceProperties = getProperties(node, false, false);\n      let properties = instanceProperties;\n      if (!useDefineForClassFields) {\n        properties = filter(properties, (property) => !!property.initializer || isPrivateIdentifier(property.name) || hasAccessorModifier(property));\n      }\n      const privateMethodsAndAccessors = getPrivateInstanceMethodsAndAccessors(node);\n      const needsConstructorBody = some(properties) || some(privateMethodsAndAccessors);\n      if (!constructor && !needsConstructorBody) {\n        return visitFunctionBody(void 0, visitor, context);\n      }\n      resumeLexicalEnvironment();\n      const needsSyntheticConstructor = !constructor && isDerivedClass;\n      let indexOfFirstStatementAfterSuperAndPrologue = 0;\n      let prologueStatementCount = 0;\n      let superStatementIndex = -1;\n      let statements = [];\n      if ((_a2 = constructor == null ? void 0 : constructor.body) == null ? void 0 : _a2.statements) {\n        prologueStatementCount = factory2.copyPrologue(constructor.body.statements, statements, false, visitor);\n        superStatementIndex = findSuperStatementIndex(constructor.body.statements, prologueStatementCount);\n        if (superStatementIndex >= 0) {\n          indexOfFirstStatementAfterSuperAndPrologue = superStatementIndex + 1;\n          statements = [\n            ...statements.slice(0, prologueStatementCount),\n            ...visitNodes2(constructor.body.statements, visitor, isStatement, prologueStatementCount, indexOfFirstStatementAfterSuperAndPrologue - prologueStatementCount),\n            ...statements.slice(prologueStatementCount)\n          ];\n        } else if (prologueStatementCount >= 0) {\n          indexOfFirstStatementAfterSuperAndPrologue = prologueStatementCount;\n        }\n      }\n      if (needsSyntheticConstructor) {\n        statements.push(factory2.createExpressionStatement(factory2.createCallExpression(factory2.createSuper(), void 0, [factory2.createSpreadElement(factory2.createIdentifier(\"arguments\"))])));\n      }\n      let parameterPropertyDeclarationCount = 0;\n      if (constructor == null ? void 0 : constructor.body) {\n        for (let i = indexOfFirstStatementAfterSuperAndPrologue; i < constructor.body.statements.length; i++) {\n          const statement = constructor.body.statements[i];\n          if (isParameterPropertyDeclaration(getOriginalNode(statement), constructor)) {\n            parameterPropertyDeclarationCount++;\n          } else {\n            break;\n          }\n        }\n        if (parameterPropertyDeclarationCount > 0) {\n          indexOfFirstStatementAfterSuperAndPrologue += parameterPropertyDeclarationCount;\n        }\n      }\n      const receiver = factory2.createThis();\n      addInstanceMethodStatements(statements, privateMethodsAndAccessors, receiver);\n      if (constructor) {\n        const parameterProperties = filter(instanceProperties, (prop) => isParameterPropertyDeclaration(getOriginalNode(prop), constructor));\n        const nonParameterProperties = filter(properties, (prop) => !isParameterPropertyDeclaration(getOriginalNode(prop), constructor));\n        addPropertyOrClassStaticBlockStatements(statements, parameterProperties, receiver);\n        addPropertyOrClassStaticBlockStatements(statements, nonParameterProperties, receiver);\n      } else {\n        addPropertyOrClassStaticBlockStatements(statements, properties, receiver);\n      }\n      if (constructor) {\n        addRange(statements, visitNodes2(constructor.body.statements, visitor, isStatement, indexOfFirstStatementAfterSuperAndPrologue));\n      }\n      statements = factory2.mergeLexicalEnvironment(statements, endLexicalEnvironment());\n      if (statements.length === 0 && !constructor) {\n        return void 0;\n      }\n      const multiLine = (constructor == null ? void 0 : constructor.body) && constructor.body.statements.length >= statements.length ? (_b = constructor.body.multiLine) != null ? _b : statements.length > 0 : statements.length > 0;\n      return setTextRange(factory2.createBlock(setTextRange(factory2.createNodeArray(statements), constructor ? constructor.body.statements : node.members), multiLine), constructor ? constructor.body : void 0);\n    }\n    function addPropertyOrClassStaticBlockStatements(statements, properties, receiver) {\n      for (const property of properties) {\n        if (isStatic(property) && !shouldTransformPrivateElementsOrClassStaticBlocks) {\n          continue;\n        }\n        const statement = transformPropertyOrClassStaticBlock(property, receiver);\n        if (!statement) {\n          continue;\n        }\n        statements.push(statement);\n      }\n    }\n    function transformPropertyOrClassStaticBlock(property, receiver) {\n      const expression = isClassStaticBlockDeclaration(property) ? transformClassStaticBlockDeclaration(property) : transformProperty(property, receiver);\n      if (!expression) {\n        return void 0;\n      }\n      const statement = factory2.createExpressionStatement(expression);\n      setOriginalNode(statement, property);\n      addEmitFlags(statement, getEmitFlags(property) & 3072);\n      setCommentRange(statement, property);\n      const propertyOriginalNode = getOriginalNode(property);\n      if (isParameter(propertyOriginalNode)) {\n        setSourceMapRange(statement, propertyOriginalNode);\n        removeAllComments(statement);\n      } else {\n        setSourceMapRange(statement, moveRangePastModifiers(property));\n      }\n      setSyntheticLeadingComments(expression, void 0);\n      setSyntheticTrailingComments(expression, void 0);\n      if (hasAccessorModifier(propertyOriginalNode)) {\n        addEmitFlags(statement, 3072);\n      }\n      return statement;\n    }\n    function generateInitializedPropertyExpressionsOrClassStaticBlock(propertiesOrClassStaticBlocks, receiver) {\n      const expressions = [];\n      for (const property of propertiesOrClassStaticBlocks) {\n        const expression = isClassStaticBlockDeclaration(property) ? transformClassStaticBlockDeclaration(property) : transformProperty(property, receiver);\n        if (!expression) {\n          continue;\n        }\n        startOnNewLine(expression);\n        setOriginalNode(expression, property);\n        addEmitFlags(expression, getEmitFlags(property) & 3072);\n        setSourceMapRange(expression, moveRangePastModifiers(property));\n        setCommentRange(expression, property);\n        expressions.push(expression);\n      }\n      return expressions;\n    }\n    function transformProperty(property, receiver) {\n      var _a2;\n      const savedCurrentStaticPropertyDeclarationOrStaticBlock = currentStaticPropertyDeclarationOrStaticBlock;\n      const transformed = transformPropertyWorker(property, receiver);\n      if (transformed && hasStaticModifier(property) && ((_a2 = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a2.facts)) {\n        setOriginalNode(transformed, property);\n        addEmitFlags(transformed, 4);\n        setSourceMapRange(transformed, getSourceMapRange(property.name));\n        lexicalEnvironmentMap.set(getOriginalNode(property), lexicalEnvironment);\n      }\n      currentStaticPropertyDeclarationOrStaticBlock = savedCurrentStaticPropertyDeclarationOrStaticBlock;\n      return transformed;\n    }\n    function transformPropertyWorker(property, receiver) {\n      const emitAssignment = !useDefineForClassFields;\n      let referencedName;\n      if (isNamedEvaluation(property, isAnonymousClassNeedingAssignedName)) {\n        if (isPropertyNameLiteral(property.name) || isPrivateIdentifier(property.name)) {\n          referencedName = factory2.createStringLiteralFromNode(property.name);\n        } else if (isPropertyNameLiteral(property.name.expression) && !isIdentifier(property.name.expression)) {\n          referencedName = factory2.createStringLiteralFromNode(property.name.expression);\n        } else {\n          referencedName = factory2.getGeneratedNameForNode(property.name);\n        }\n      }\n      const propertyName = hasAccessorModifier(property) ? factory2.getGeneratedPrivateNameForNode(property.name) : isComputedPropertyName(property.name) && !isSimpleInlineableExpression(property.name.expression) ? factory2.updateComputedPropertyName(property.name, factory2.getGeneratedNameForNode(property.name)) : property.name;\n      if (hasStaticModifier(property)) {\n        currentStaticPropertyDeclarationOrStaticBlock = property;\n      }\n      const initializerVisitor = referencedName ? (child) => namedEvaluationVisitor(child, referencedName) : visitor;\n      if (isPrivateIdentifier(propertyName) && shouldTransformClassElementToWeakMap(property)) {\n        const privateIdentifierInfo = accessPrivateIdentifier2(propertyName);\n        if (privateIdentifierInfo) {\n          if (privateIdentifierInfo.kind === \"f\") {\n            if (!privateIdentifierInfo.isStatic) {\n              return createPrivateInstanceFieldInitializer(receiver, visitNode(property.initializer, initializerVisitor, isExpression), privateIdentifierInfo.brandCheckIdentifier);\n            } else {\n              return createPrivateStaticFieldInitializer(privateIdentifierInfo.variableName, visitNode(property.initializer, initializerVisitor, isExpression));\n            }\n          } else {\n            return void 0;\n          }\n        } else {\n          Debug.fail(\"Undeclared private name for property declaration.\");\n        }\n      }\n      if ((isPrivateIdentifier(propertyName) || hasStaticModifier(property)) && !property.initializer) {\n        return void 0;\n      }\n      const propertyOriginalNode = getOriginalNode(property);\n      if (hasSyntacticModifier(propertyOriginalNode, 256)) {\n        return void 0;\n      }\n      let initializer = visitNode(property.initializer, initializerVisitor, isExpression);\n      if (isParameterPropertyDeclaration(propertyOriginalNode, propertyOriginalNode.parent) && isIdentifier(propertyName)) {\n        const localName = factory2.cloneNode(propertyName);\n        if (initializer) {\n          if (isParenthesizedExpression(initializer) && isCommaExpression(initializer.expression) && isCallToHelper(initializer.expression.left, \"___runInitializers\") && isVoidExpression(initializer.expression.right) && isNumericLiteral(initializer.expression.right.expression)) {\n            initializer = initializer.expression.left;\n          }\n          initializer = factory2.inlineExpressions([initializer, localName]);\n        } else {\n          initializer = localName;\n        }\n        setEmitFlags(propertyName, 3072 | 96);\n        setSourceMapRange(localName, propertyOriginalNode.name);\n        setEmitFlags(localName, 3072);\n      } else {\n        initializer != null ? initializer : initializer = factory2.createVoidZero();\n      }\n      if (emitAssignment || isPrivateIdentifier(propertyName)) {\n        const memberAccess = createMemberAccessForPropertyName(factory2, receiver, propertyName, propertyName);\n        addEmitFlags(memberAccess, 1024);\n        const expression = factory2.createAssignment(memberAccess, initializer);\n        return expression;\n      } else {\n        const name = isComputedPropertyName(propertyName) ? propertyName.expression : isIdentifier(propertyName) ? factory2.createStringLiteral(unescapeLeadingUnderscores(propertyName.escapedText)) : propertyName;\n        const descriptor = factory2.createPropertyDescriptor({ value: initializer, configurable: true, writable: true, enumerable: true });\n        return factory2.createObjectDefinePropertyCall(receiver, name, descriptor);\n      }\n    }\n    function enableSubstitutionForClassAliases() {\n      if ((enabledSubstitutions & 1) === 0) {\n        enabledSubstitutions |= 1;\n        context.enableSubstitution(79);\n        classAliases = [];\n      }\n    }\n    function enableSubstitutionForClassStaticThisOrSuperReference() {\n      if ((enabledSubstitutions & 2) === 0) {\n        enabledSubstitutions |= 2;\n        context.enableSubstitution(108);\n        context.enableEmitNotification(259);\n        context.enableEmitNotification(215);\n        context.enableEmitNotification(173);\n        context.enableEmitNotification(174);\n        context.enableEmitNotification(175);\n        context.enableEmitNotification(171);\n        context.enableEmitNotification(169);\n        context.enableEmitNotification(164);\n      }\n    }\n    function addInstanceMethodStatements(statements, methods, receiver) {\n      if (!shouldTransformPrivateElementsOrClassStaticBlocks || !some(methods)) {\n        return;\n      }\n      const { weakSetName } = getPrivateIdentifierEnvironment().data;\n      Debug.assert(weakSetName, \"weakSetName should be set in private identifier environment\");\n      statements.push(factory2.createExpressionStatement(createPrivateInstanceMethodInitializer(receiver, weakSetName)));\n    }\n    function visitInvalidSuperProperty(node) {\n      return isPropertyAccessExpression(node) ? factory2.updatePropertyAccessExpression(node, factory2.createVoidZero(), node.name) : factory2.updateElementAccessExpression(node, factory2.createVoidZero(), visitNode(node.argumentExpression, visitor, isExpression));\n    }\n    function getPropertyNameExpressionIfNeeded(name, shouldHoist, captureReferencedName) {\n      if (isComputedPropertyName(name)) {\n        const cacheAssignment = findComputedPropertyNameCacheAssignment(name);\n        let expression = visitNode(name.expression, visitor, isExpression);\n        const innerExpression = skipPartiallyEmittedExpressions(expression);\n        const inlinable = isSimpleInlineableExpression(innerExpression);\n        const alreadyTransformed = !!cacheAssignment || isAssignmentExpression(innerExpression) && isGeneratedIdentifier(innerExpression.left);\n        if (!alreadyTransformed && !inlinable && shouldHoist) {\n          const generatedName = factory2.getGeneratedNameForNode(name);\n          if (resolver.getNodeCheckFlags(name) & 32768) {\n            addBlockScopedVariable(generatedName);\n          } else {\n            hoistVariableDeclaration(generatedName);\n          }\n          if (captureReferencedName) {\n            expression = emitHelpers().createPropKeyHelper(expression);\n          }\n          return factory2.createAssignment(generatedName, expression);\n        }\n        return inlinable || isIdentifier(innerExpression) ? void 0 : expression;\n      }\n    }\n    function startClassLexicalEnvironment() {\n      lexicalEnvironment = { previous: lexicalEnvironment, data: void 0 };\n    }\n    function endClassLexicalEnvironment() {\n      lexicalEnvironment = lexicalEnvironment == null ? void 0 : lexicalEnvironment.previous;\n    }\n    function getClassLexicalEnvironment() {\n      var _a2;\n      Debug.assert(lexicalEnvironment);\n      return (_a2 = lexicalEnvironment.data) != null ? _a2 : lexicalEnvironment.data = {\n        facts: 0,\n        classConstructor: void 0,\n        classThis: void 0,\n        superClassReference: void 0\n      };\n    }\n    function getPrivateIdentifierEnvironment() {\n      var _a2;\n      Debug.assert(lexicalEnvironment);\n      return (_a2 = lexicalEnvironment.privateEnv) != null ? _a2 : lexicalEnvironment.privateEnv = newPrivateEnvironment({\n        className: void 0,\n        weakSetName: void 0\n      });\n    }\n    function getPendingExpressions() {\n      return pendingExpressions != null ? pendingExpressions : pendingExpressions = [];\n    }\n    function addPrivateIdentifierClassElementToEnvironment(node, name, lex, privateEnv, isStatic2, isValid, previousInfo) {\n      if (isAutoAccessorPropertyDeclaration(node)) {\n        addPrivateIdentifierAutoAccessorPropertyDeclarationToEnvironment(node, name, lex, privateEnv, isStatic2, isValid, previousInfo);\n      } else if (isPropertyDeclaration(node)) {\n        addPrivateIdentifierPropertyDeclarationToEnvironment(node, name, lex, privateEnv, isStatic2, isValid, previousInfo);\n      } else if (isMethodDeclaration(node)) {\n        addPrivateIdentifierMethodDeclarationToEnvironment(node, name, lex, privateEnv, isStatic2, isValid, previousInfo);\n      } else if (isGetAccessorDeclaration(node)) {\n        addPrivateIdentifierGetAccessorDeclarationToEnvironment(node, name, lex, privateEnv, isStatic2, isValid, previousInfo);\n      } else if (isSetAccessorDeclaration(node)) {\n        addPrivateIdentifierSetAccessorDeclarationToEnvironment(node, name, lex, privateEnv, isStatic2, isValid, previousInfo);\n      }\n    }\n    function addPrivateIdentifierPropertyDeclarationToEnvironment(_node, name, lex, privateEnv, isStatic2, isValid, _previousInfo) {\n      var _a2;\n      if (isStatic2) {\n        const brandCheckIdentifier = Debug.checkDefined((_a2 = lex.classThis) != null ? _a2 : lex.classConstructor, \"classConstructor should be set in private identifier environment\");\n        const variableName = createHoistedVariableForPrivateName(name);\n        setPrivateIdentifier(privateEnv, name, {\n          kind: \"f\",\n          isStatic: true,\n          brandCheckIdentifier,\n          variableName,\n          isValid\n        });\n      } else {\n        const weakMapName = createHoistedVariableForPrivateName(name);\n        setPrivateIdentifier(privateEnv, name, {\n          kind: \"f\",\n          isStatic: false,\n          brandCheckIdentifier: weakMapName,\n          isValid\n        });\n        getPendingExpressions().push(factory2.createAssignment(weakMapName, factory2.createNewExpression(factory2.createIdentifier(\"WeakMap\"), void 0, [])));\n      }\n    }\n    function addPrivateIdentifierMethodDeclarationToEnvironment(_node, name, lex, privateEnv, isStatic2, isValid, _previousInfo) {\n      var _a2;\n      const methodName = createHoistedVariableForPrivateName(name);\n      const brandCheckIdentifier = isStatic2 ? Debug.checkDefined((_a2 = lex.classThis) != null ? _a2 : lex.classConstructor, \"classConstructor should be set in private identifier environment\") : Debug.checkDefined(privateEnv.data.weakSetName, \"weakSetName should be set in private identifier environment\");\n      setPrivateIdentifier(privateEnv, name, {\n        kind: \"m\",\n        methodName,\n        brandCheckIdentifier,\n        isStatic: isStatic2,\n        isValid\n      });\n    }\n    function addPrivateIdentifierGetAccessorDeclarationToEnvironment(_node, name, lex, privateEnv, isStatic2, isValid, previousInfo) {\n      var _a2;\n      const getterName = createHoistedVariableForPrivateName(name, \"_get\");\n      const brandCheckIdentifier = isStatic2 ? Debug.checkDefined((_a2 = lex.classThis) != null ? _a2 : lex.classConstructor, \"classConstructor should be set in private identifier environment\") : Debug.checkDefined(privateEnv.data.weakSetName, \"weakSetName should be set in private identifier environment\");\n      if ((previousInfo == null ? void 0 : previousInfo.kind) === \"a\" && previousInfo.isStatic === isStatic2 && !previousInfo.getterName) {\n        previousInfo.getterName = getterName;\n      } else {\n        setPrivateIdentifier(privateEnv, name, {\n          kind: \"a\",\n          getterName,\n          setterName: void 0,\n          brandCheckIdentifier,\n          isStatic: isStatic2,\n          isValid\n        });\n      }\n    }\n    function addPrivateIdentifierSetAccessorDeclarationToEnvironment(_node, name, lex, privateEnv, isStatic2, isValid, previousInfo) {\n      var _a2;\n      const setterName = createHoistedVariableForPrivateName(name, \"_set\");\n      const brandCheckIdentifier = isStatic2 ? Debug.checkDefined((_a2 = lex.classThis) != null ? _a2 : lex.classConstructor, \"classConstructor should be set in private identifier environment\") : Debug.checkDefined(privateEnv.data.weakSetName, \"weakSetName should be set in private identifier environment\");\n      if ((previousInfo == null ? void 0 : previousInfo.kind) === \"a\" && previousInfo.isStatic === isStatic2 && !previousInfo.setterName) {\n        previousInfo.setterName = setterName;\n      } else {\n        setPrivateIdentifier(privateEnv, name, {\n          kind: \"a\",\n          getterName: void 0,\n          setterName,\n          brandCheckIdentifier,\n          isStatic: isStatic2,\n          isValid\n        });\n      }\n    }\n    function addPrivateIdentifierAutoAccessorPropertyDeclarationToEnvironment(_node, name, lex, privateEnv, isStatic2, isValid, _previousInfo) {\n      var _a2;\n      const getterName = createHoistedVariableForPrivateName(name, \"_get\");\n      const setterName = createHoistedVariableForPrivateName(name, \"_set\");\n      const brandCheckIdentifier = isStatic2 ? Debug.checkDefined((_a2 = lex.classThis) != null ? _a2 : lex.classConstructor, \"classConstructor should be set in private identifier environment\") : Debug.checkDefined(privateEnv.data.weakSetName, \"weakSetName should be set in private identifier environment\");\n      setPrivateIdentifier(privateEnv, name, {\n        kind: \"a\",\n        getterName,\n        setterName,\n        brandCheckIdentifier,\n        isStatic: isStatic2,\n        isValid\n      });\n    }\n    function addPrivateIdentifierToEnvironment(node, name, addDeclaration) {\n      const lex = getClassLexicalEnvironment();\n      const privateEnv = getPrivateIdentifierEnvironment();\n      const previousInfo = getPrivateIdentifier(privateEnv, name);\n      const isStatic2 = hasStaticModifier(node);\n      const isValid = !isReservedPrivateName(name) && previousInfo === void 0;\n      addDeclaration(node, name, lex, privateEnv, isStatic2, isValid, previousInfo);\n    }\n    function createHoistedVariableForClass(name, node, suffix) {\n      const { className } = getPrivateIdentifierEnvironment().data;\n      const prefix = className ? { prefix: \"_\", node: className, suffix: \"_\" } : \"_\";\n      const identifier = typeof name === \"object\" ? factory2.getGeneratedNameForNode(name, 16 | 8, prefix, suffix) : typeof name === \"string\" ? factory2.createUniqueName(name, 16, prefix, suffix) : factory2.createTempVariable(void 0, true, prefix, suffix);\n      if (resolver.getNodeCheckFlags(node) & 32768) {\n        addBlockScopedVariable(identifier);\n      } else {\n        hoistVariableDeclaration(identifier);\n      }\n      return identifier;\n    }\n    function createHoistedVariableForPrivateName(name, suffix) {\n      var _a2;\n      const text = tryGetTextOfPropertyName(name);\n      return createHoistedVariableForClass((_a2 = text == null ? void 0 : text.substring(1)) != null ? _a2 : name, name, suffix);\n    }\n    function accessPrivateIdentifier2(name) {\n      const info = accessPrivateIdentifier(lexicalEnvironment, name);\n      return (info == null ? void 0 : info.kind) === \"untransformed\" ? void 0 : info;\n    }\n    function wrapPrivateIdentifierForDestructuringTarget(node) {\n      const parameter = factory2.getGeneratedNameForNode(node);\n      const info = accessPrivateIdentifier2(node.name);\n      if (!info) {\n        return visitEachChild(node, visitor, context);\n      }\n      let receiver = node.expression;\n      if (isThisProperty(node) || isSuperProperty(node) || !isSimpleCopiableExpression(node.expression)) {\n        receiver = factory2.createTempVariable(hoistVariableDeclaration, true);\n        getPendingExpressions().push(factory2.createBinaryExpression(receiver, 63, visitNode(node.expression, visitor, isExpression)));\n      }\n      return factory2.createAssignmentTargetWrapper(parameter, createPrivateIdentifierAssignment(info, receiver, parameter, 63));\n    }\n    function visitDestructuringAssignmentTarget(node) {\n      if (isObjectLiteralExpression(node) || isArrayLiteralExpression(node)) {\n        return visitAssignmentPattern(node);\n      }\n      if (isPrivateIdentifierPropertyAccessExpression(node)) {\n        return wrapPrivateIdentifierForDestructuringTarget(node);\n      } else if (shouldTransformSuperInStaticInitializers && isSuperProperty(node) && currentStaticPropertyDeclarationOrStaticBlock && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) {\n        const { classConstructor, superClassReference, facts } = lexicalEnvironment.data;\n        if (facts & 1) {\n          return visitInvalidSuperProperty(node);\n        } else if (classConstructor && superClassReference) {\n          const name = isElementAccessExpression(node) ? visitNode(node.argumentExpression, visitor, isExpression) : isIdentifier(node.name) ? factory2.createStringLiteralFromNode(node.name) : void 0;\n          if (name) {\n            const temp = factory2.createTempVariable(void 0);\n            return factory2.createAssignmentTargetWrapper(temp, factory2.createReflectSetCall(superClassReference, name, temp, classConstructor));\n          }\n        }\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitAssignmentElement(node) {\n      if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) {\n        const left = visitDestructuringAssignmentTarget(node.left);\n        const assignedName = getAssignedNameOfIdentifier(node.left, node.right);\n        const right = visitNode(node.right, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression);\n        return factory2.updateBinaryExpression(node, left, node.operatorToken, right);\n      }\n      if (isAssignmentExpression(node, true)) {\n        const left = visitDestructuringAssignmentTarget(node.left);\n        const right = visitNode(node.right, visitor, isExpression);\n        return factory2.updateBinaryExpression(node, left, node.operatorToken, right);\n      }\n      return visitDestructuringAssignmentTarget(node);\n    }\n    function visitAssignmentRestElement(node) {\n      if (isLeftHandSideExpression(node.expression)) {\n        const expression = visitDestructuringAssignmentTarget(node.expression);\n        return factory2.updateSpreadElement(node, expression);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitArrayAssignmentElement(node) {\n      Debug.assertNode(node, isArrayBindingOrAssignmentElement);\n      if (isSpreadElement(node))\n        return visitAssignmentRestElement(node);\n      if (!isOmittedExpression(node))\n        return visitAssignmentElement(node);\n      return visitEachChild(node, visitor, context);\n    }\n    function visitAssignmentProperty(node) {\n      const name = visitNode(node.name, visitor, isPropertyName);\n      if (isAssignmentExpression(node.initializer, true)) {\n        const assignmentElement = visitAssignmentElement(node.initializer);\n        return factory2.updatePropertyAssignment(node, name, assignmentElement);\n      }\n      if (isLeftHandSideExpression(node.initializer)) {\n        const assignmentElement = visitDestructuringAssignmentTarget(node.initializer);\n        return factory2.updatePropertyAssignment(node, name, assignmentElement);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitShorthandAssignmentProperty(node) {\n      if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) {\n        const assignedName = getAssignedNameOfIdentifier(node.name, node.objectAssignmentInitializer);\n        const objectAssignmentInitializer = visitNode(node.objectAssignmentInitializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression);\n        return factory2.updateShorthandPropertyAssignment(node, node.name, objectAssignmentInitializer);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitAssignmentRestProperty(node) {\n      if (isLeftHandSideExpression(node.expression)) {\n        const expression = visitDestructuringAssignmentTarget(node.expression);\n        return factory2.updateSpreadAssignment(node, expression);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitObjectAssignmentElement(node) {\n      Debug.assertNode(node, isObjectBindingOrAssignmentElement);\n      if (isSpreadAssignment(node))\n        return visitAssignmentRestProperty(node);\n      if (isShorthandPropertyAssignment(node))\n        return visitShorthandAssignmentProperty(node);\n      if (isPropertyAssignment(node))\n        return visitAssignmentProperty(node);\n      return visitEachChild(node, visitor, context);\n    }\n    function visitAssignmentPattern(node) {\n      if (isArrayLiteralExpression(node)) {\n        return factory2.updateArrayLiteralExpression(node, visitNodes2(node.elements, visitArrayAssignmentElement, isExpression));\n      } else {\n        return factory2.updateObjectLiteralExpression(node, visitNodes2(node.properties, visitObjectAssignmentElement, isObjectLiteralElementLike));\n      }\n    }\n    function onEmitNode(hint, node, emitCallback) {\n      const original = getOriginalNode(node);\n      const lex = lexicalEnvironmentMap.get(original);\n      if (lex) {\n        const savedLexicalEnvironment = lexicalEnvironment;\n        const savedPreviousShouldSubstituteThisWithClassThis = previousShouldSubstituteThisWithClassThis;\n        lexicalEnvironment = lex;\n        previousShouldSubstituteThisWithClassThis = shouldSubstituteThisWithClassThis;\n        shouldSubstituteThisWithClassThis = !isClassStaticBlockDeclaration(original) || !(getInternalEmitFlags(original) & 32);\n        previousOnEmitNode(hint, node, emitCallback);\n        shouldSubstituteThisWithClassThis = previousShouldSubstituteThisWithClassThis;\n        previousShouldSubstituteThisWithClassThis = savedPreviousShouldSubstituteThisWithClassThis;\n        lexicalEnvironment = savedLexicalEnvironment;\n        return;\n      }\n      switch (node.kind) {\n        case 215:\n          if (isArrowFunction(original) || getEmitFlags(node) & 524288) {\n            break;\n          }\n        case 259:\n        case 173:\n        case 174:\n        case 175:\n        case 171:\n        case 169: {\n          const savedLexicalEnvironment = lexicalEnvironment;\n          const savedPreviousShouldSubstituteThisWithClassThis = previousShouldSubstituteThisWithClassThis;\n          lexicalEnvironment = void 0;\n          previousShouldSubstituteThisWithClassThis = shouldSubstituteThisWithClassThis;\n          shouldSubstituteThisWithClassThis = false;\n          previousOnEmitNode(hint, node, emitCallback);\n          shouldSubstituteThisWithClassThis = previousShouldSubstituteThisWithClassThis;\n          previousShouldSubstituteThisWithClassThis = savedPreviousShouldSubstituteThisWithClassThis;\n          lexicalEnvironment = savedLexicalEnvironment;\n          return;\n        }\n        case 164: {\n          const savedLexicalEnvironment = lexicalEnvironment;\n          const savedShouldSubstituteThisWithClassThis = shouldSubstituteThisWithClassThis;\n          lexicalEnvironment = lexicalEnvironment == null ? void 0 : lexicalEnvironment.previous;\n          shouldSubstituteThisWithClassThis = previousShouldSubstituteThisWithClassThis;\n          previousOnEmitNode(hint, node, emitCallback);\n          shouldSubstituteThisWithClassThis = savedShouldSubstituteThisWithClassThis;\n          lexicalEnvironment = savedLexicalEnvironment;\n          return;\n        }\n      }\n      previousOnEmitNode(hint, node, emitCallback);\n    }\n    function onSubstituteNode(hint, node) {\n      node = previousOnSubstituteNode(hint, node);\n      if (hint === 1) {\n        return substituteExpression(node);\n      }\n      return node;\n    }\n    function substituteExpression(node) {\n      switch (node.kind) {\n        case 79:\n          return substituteExpressionIdentifier(node);\n        case 108:\n          return substituteThisExpression(node);\n      }\n      return node;\n    }\n    function substituteThisExpression(node) {\n      if (enabledSubstitutions & 2 && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) {\n        const { facts, classConstructor, classThis } = lexicalEnvironment.data;\n        if (facts & 1 && legacyDecorators) {\n          return factory2.createParenthesizedExpression(factory2.createVoidZero());\n        }\n        const substituteThis = shouldSubstituteThisWithClassThis ? classThis != null ? classThis : classConstructor : classConstructor;\n        if (substituteThis) {\n          return setTextRange(setOriginalNode(factory2.cloneNode(substituteThis), node), node);\n        }\n      }\n      return node;\n    }\n    function substituteExpressionIdentifier(node) {\n      return trySubstituteClassAlias(node) || node;\n    }\n    function trySubstituteClassAlias(node) {\n      if (enabledSubstitutions & 1) {\n        if (resolver.getNodeCheckFlags(node) & 2097152) {\n          const declaration = resolver.getReferencedValueDeclaration(node);\n          if (declaration) {\n            const classAlias = classAliases[declaration.id];\n            if (classAlias) {\n              const clone2 = factory2.cloneNode(classAlias);\n              setSourceMapRange(clone2, node);\n              setCommentRange(clone2, node);\n              return clone2;\n            }\n          }\n        }\n      }\n      return void 0;\n    }\n  }\n  function createPrivateStaticFieldInitializer(variableName, initializer) {\n    return factory.createAssignment(variableName, factory.createObjectLiteralExpression([\n      factory.createPropertyAssignment(\"value\", initializer || factory.createVoidZero())\n    ]));\n  }\n  function createPrivateInstanceFieldInitializer(receiver, initializer, weakMapName) {\n    return factory.createCallExpression(factory.createPropertyAccessExpression(weakMapName, \"set\"), void 0, [receiver, initializer || factory.createVoidZero()]);\n  }\n  function createPrivateInstanceMethodInitializer(receiver, weakSetName) {\n    return factory.createCallExpression(factory.createPropertyAccessExpression(weakSetName, \"add\"), void 0, [receiver]);\n  }\n  function isReservedPrivateName(node) {\n    return !isGeneratedPrivateIdentifier(node) && node.escapedText === \"#constructor\";\n  }\n  function isPrivateIdentifierInExpression(node) {\n    return isPrivateIdentifier(node.left) && node.operatorToken.kind === 101;\n  }\n  var init_classFields = __esm({\n    \"src/compiler/transformers/classFields.ts\"() {\n      \"use strict\";\n      init_ts2();\n    }\n  });\n  function createRuntimeTypeSerializer(context) {\n    const {\n      hoistVariableDeclaration\n    } = context;\n    const resolver = context.getEmitResolver();\n    const compilerOptions = context.getCompilerOptions();\n    const languageVersion = getEmitScriptTarget(compilerOptions);\n    const strictNullChecks = getStrictOptionValue(compilerOptions, \"strictNullChecks\");\n    let currentLexicalScope;\n    let currentNameScope;\n    return {\n      serializeTypeNode: (serializerContext, node) => setSerializerContextAnd(serializerContext, serializeTypeNode, node),\n      serializeTypeOfNode: (serializerContext, node) => setSerializerContextAnd(serializerContext, serializeTypeOfNode, node),\n      serializeParameterTypesOfNode: (serializerContext, node, container) => setSerializerContextAnd(serializerContext, serializeParameterTypesOfNode, node, container),\n      serializeReturnTypeOfNode: (serializerContext, node) => setSerializerContextAnd(serializerContext, serializeReturnTypeOfNode, node)\n    };\n    function setSerializerContextAnd(serializerContext, cb, node, arg) {\n      const savedCurrentLexicalScope = currentLexicalScope;\n      const savedCurrentNameScope = currentNameScope;\n      currentLexicalScope = serializerContext.currentLexicalScope;\n      currentNameScope = serializerContext.currentNameScope;\n      const result = arg === void 0 ? cb(node) : cb(node, arg);\n      currentLexicalScope = savedCurrentLexicalScope;\n      currentNameScope = savedCurrentNameScope;\n      return result;\n    }\n    function getAccessorTypeNode(node) {\n      const accessors = resolver.getAllAccessorDeclarations(node);\n      return accessors.setAccessor && getSetAccessorTypeAnnotationNode(accessors.setAccessor) || accessors.getAccessor && getEffectiveReturnTypeNode(accessors.getAccessor);\n    }\n    function serializeTypeOfNode(node) {\n      switch (node.kind) {\n        case 169:\n        case 166:\n          return serializeTypeNode(node.type);\n        case 175:\n        case 174:\n          return serializeTypeNode(getAccessorTypeNode(node));\n        case 260:\n        case 228:\n        case 171:\n          return factory.createIdentifier(\"Function\");\n        default:\n          return factory.createVoidZero();\n      }\n    }\n    function serializeParameterTypesOfNode(node, container) {\n      const valueDeclaration = isClassLike(node) ? getFirstConstructorWithBody(node) : isFunctionLike(node) && nodeIsPresent(node.body) ? node : void 0;\n      const expressions = [];\n      if (valueDeclaration) {\n        const parameters = getParametersOfDecoratedDeclaration(valueDeclaration, container);\n        const numParameters = parameters.length;\n        for (let i = 0; i < numParameters; i++) {\n          const parameter = parameters[i];\n          if (i === 0 && isIdentifier(parameter.name) && parameter.name.escapedText === \"this\") {\n            continue;\n          }\n          if (parameter.dotDotDotToken) {\n            expressions.push(serializeTypeNode(getRestParameterElementType(parameter.type)));\n          } else {\n            expressions.push(serializeTypeOfNode(parameter));\n          }\n        }\n      }\n      return factory.createArrayLiteralExpression(expressions);\n    }\n    function getParametersOfDecoratedDeclaration(node, container) {\n      if (container && node.kind === 174) {\n        const { setAccessor } = getAllAccessorDeclarations(container.members, node);\n        if (setAccessor) {\n          return setAccessor.parameters;\n        }\n      }\n      return node.parameters;\n    }\n    function serializeReturnTypeOfNode(node) {\n      if (isFunctionLike(node) && node.type) {\n        return serializeTypeNode(node.type);\n      } else if (isAsyncFunction(node)) {\n        return factory.createIdentifier(\"Promise\");\n      }\n      return factory.createVoidZero();\n    }\n    function serializeTypeNode(node) {\n      if (node === void 0) {\n        return factory.createIdentifier(\"Object\");\n      }\n      node = skipTypeParentheses(node);\n      switch (node.kind) {\n        case 114:\n        case 155:\n        case 144:\n          return factory.createVoidZero();\n        case 181:\n        case 182:\n          return factory.createIdentifier(\"Function\");\n        case 185:\n        case 186:\n          return factory.createIdentifier(\"Array\");\n        case 179:\n          return node.assertsModifier ? factory.createVoidZero() : factory.createIdentifier(\"Boolean\");\n        case 134:\n          return factory.createIdentifier(\"Boolean\");\n        case 200:\n        case 152:\n          return factory.createIdentifier(\"String\");\n        case 149:\n          return factory.createIdentifier(\"Object\");\n        case 198:\n          return serializeLiteralOfLiteralTypeNode(node.literal);\n        case 148:\n          return factory.createIdentifier(\"Number\");\n        case 160:\n          return getGlobalConstructor(\"BigInt\", 7);\n        case 153:\n          return getGlobalConstructor(\"Symbol\", 2);\n        case 180:\n          return serializeTypeReferenceNode(node);\n        case 190:\n          return serializeUnionOrIntersectionConstituents(node.types, true);\n        case 189:\n          return serializeUnionOrIntersectionConstituents(node.types, false);\n        case 191:\n          return serializeUnionOrIntersectionConstituents([node.trueType, node.falseType], false);\n        case 195:\n          if (node.operator === 146) {\n            return serializeTypeNode(node.type);\n          }\n          break;\n        case 183:\n        case 196:\n        case 197:\n        case 184:\n        case 131:\n        case 157:\n        case 194:\n        case 202:\n          break;\n        case 315:\n        case 316:\n        case 320:\n        case 321:\n        case 322:\n          break;\n        case 317:\n        case 318:\n        case 319:\n          return serializeTypeNode(node.type);\n        default:\n          return Debug.failBadSyntaxKind(node);\n      }\n      return factory.createIdentifier(\"Object\");\n    }\n    function serializeLiteralOfLiteralTypeNode(node) {\n      switch (node.kind) {\n        case 10:\n        case 14:\n          return factory.createIdentifier(\"String\");\n        case 221: {\n          const operand = node.operand;\n          switch (operand.kind) {\n            case 8:\n            case 9:\n              return serializeLiteralOfLiteralTypeNode(operand);\n            default:\n              return Debug.failBadSyntaxKind(operand);\n          }\n        }\n        case 8:\n          return factory.createIdentifier(\"Number\");\n        case 9:\n          return getGlobalConstructor(\"BigInt\", 7);\n        case 110:\n        case 95:\n          return factory.createIdentifier(\"Boolean\");\n        case 104:\n          return factory.createVoidZero();\n        default:\n          return Debug.failBadSyntaxKind(node);\n      }\n    }\n    function serializeUnionOrIntersectionConstituents(types, isIntersection) {\n      let serializedType;\n      for (let typeNode of types) {\n        typeNode = skipTypeParentheses(typeNode);\n        if (typeNode.kind === 144) {\n          if (isIntersection)\n            return factory.createVoidZero();\n          continue;\n        }\n        if (typeNode.kind === 157) {\n          if (!isIntersection)\n            return factory.createIdentifier(\"Object\");\n          continue;\n        }\n        if (typeNode.kind === 131) {\n          return factory.createIdentifier(\"Object\");\n        }\n        if (!strictNullChecks && (isLiteralTypeNode(typeNode) && typeNode.literal.kind === 104 || typeNode.kind === 155)) {\n          continue;\n        }\n        const serializedConstituent = serializeTypeNode(typeNode);\n        if (isIdentifier(serializedConstituent) && serializedConstituent.escapedText === \"Object\") {\n          return serializedConstituent;\n        }\n        if (serializedType) {\n          if (!equateSerializedTypeNodes(serializedType, serializedConstituent)) {\n            return factory.createIdentifier(\"Object\");\n          }\n        } else {\n          serializedType = serializedConstituent;\n        }\n      }\n      return serializedType != null ? serializedType : factory.createVoidZero();\n    }\n    function equateSerializedTypeNodes(left, right) {\n      return isGeneratedIdentifier(left) ? isGeneratedIdentifier(right) : isIdentifier(left) ? isIdentifier(right) && left.escapedText === right.escapedText : isPropertyAccessExpression(left) ? isPropertyAccessExpression(right) && equateSerializedTypeNodes(left.expression, right.expression) && equateSerializedTypeNodes(left.name, right.name) : isVoidExpression(left) ? isVoidExpression(right) && isNumericLiteral(left.expression) && left.expression.text === \"0\" && isNumericLiteral(right.expression) && right.expression.text === \"0\" : isStringLiteral(left) ? isStringLiteral(right) && left.text === right.text : isTypeOfExpression(left) ? isTypeOfExpression(right) && equateSerializedTypeNodes(left.expression, right.expression) : isParenthesizedExpression(left) ? isParenthesizedExpression(right) && equateSerializedTypeNodes(left.expression, right.expression) : isConditionalExpression(left) ? isConditionalExpression(right) && equateSerializedTypeNodes(left.condition, right.condition) && equateSerializedTypeNodes(left.whenTrue, right.whenTrue) && equateSerializedTypeNodes(left.whenFalse, right.whenFalse) : isBinaryExpression(left) ? isBinaryExpression(right) && left.operatorToken.kind === right.operatorToken.kind && equateSerializedTypeNodes(left.left, right.left) && equateSerializedTypeNodes(left.right, right.right) : false;\n    }\n    function serializeTypeReferenceNode(node) {\n      const kind = resolver.getTypeReferenceSerializationKind(node.typeName, currentNameScope != null ? currentNameScope : currentLexicalScope);\n      switch (kind) {\n        case 0:\n          if (findAncestor(node, (n) => n.parent && isConditionalTypeNode(n.parent) && (n.parent.trueType === n || n.parent.falseType === n))) {\n            return factory.createIdentifier(\"Object\");\n          }\n          const serialized = serializeEntityNameAsExpressionFallback(node.typeName);\n          const temp = factory.createTempVariable(hoistVariableDeclaration);\n          return factory.createConditionalExpression(factory.createTypeCheck(factory.createAssignment(temp, serialized), \"function\"), void 0, temp, void 0, factory.createIdentifier(\"Object\"));\n        case 1:\n          return serializeEntityNameAsExpression(node.typeName);\n        case 2:\n          return factory.createVoidZero();\n        case 4:\n          return getGlobalConstructor(\"BigInt\", 7);\n        case 6:\n          return factory.createIdentifier(\"Boolean\");\n        case 3:\n          return factory.createIdentifier(\"Number\");\n        case 5:\n          return factory.createIdentifier(\"String\");\n        case 7:\n          return factory.createIdentifier(\"Array\");\n        case 8:\n          return getGlobalConstructor(\"Symbol\", 2);\n        case 10:\n          return factory.createIdentifier(\"Function\");\n        case 9:\n          return factory.createIdentifier(\"Promise\");\n        case 11:\n          return factory.createIdentifier(\"Object\");\n        default:\n          return Debug.assertNever(kind);\n      }\n    }\n    function createCheckedValue(left, right) {\n      return factory.createLogicalAnd(factory.createStrictInequality(factory.createTypeOfExpression(left), factory.createStringLiteral(\"undefined\")), right);\n    }\n    function serializeEntityNameAsExpressionFallback(node) {\n      if (node.kind === 79) {\n        const copied = serializeEntityNameAsExpression(node);\n        return createCheckedValue(copied, copied);\n      }\n      if (node.left.kind === 79) {\n        return createCheckedValue(serializeEntityNameAsExpression(node.left), serializeEntityNameAsExpression(node));\n      }\n      const left = serializeEntityNameAsExpressionFallback(node.left);\n      const temp = factory.createTempVariable(hoistVariableDeclaration);\n      return factory.createLogicalAnd(factory.createLogicalAnd(left.left, factory.createStrictInequality(factory.createAssignment(temp, left.right), factory.createVoidZero())), factory.createPropertyAccessExpression(temp, node.right));\n    }\n    function serializeEntityNameAsExpression(node) {\n      switch (node.kind) {\n        case 79:\n          const name = setParent(setTextRange(parseNodeFactory.cloneNode(node), node), node.parent);\n          name.original = void 0;\n          setParent(name, getParseTreeNode(currentLexicalScope));\n          return name;\n        case 163:\n          return serializeQualifiedNameAsExpression(node);\n      }\n    }\n    function serializeQualifiedNameAsExpression(node) {\n      return factory.createPropertyAccessExpression(serializeEntityNameAsExpression(node.left), node.right);\n    }\n    function getGlobalConstructorWithFallback(name) {\n      return factory.createConditionalExpression(factory.createTypeCheck(factory.createIdentifier(name), \"function\"), void 0, factory.createIdentifier(name), void 0, factory.createIdentifier(\"Object\"));\n    }\n    function getGlobalConstructor(name, minLanguageVersion) {\n      return languageVersion < minLanguageVersion ? getGlobalConstructorWithFallback(name) : factory.createIdentifier(name);\n    }\n  }\n  var init_typeSerializer = __esm({\n    \"src/compiler/transformers/typeSerializer.ts\"() {\n      \"use strict\";\n      init_ts2();\n    }\n  });\n  function transformLegacyDecorators(context) {\n    const {\n      factory: factory2,\n      getEmitHelperFactory: emitHelpers,\n      hoistVariableDeclaration\n    } = context;\n    const resolver = context.getEmitResolver();\n    const compilerOptions = context.getCompilerOptions();\n    const languageVersion = getEmitScriptTarget(compilerOptions);\n    const previousOnSubstituteNode = context.onSubstituteNode;\n    context.onSubstituteNode = onSubstituteNode;\n    let classAliases;\n    return chainBundle(context, transformSourceFile);\n    function transformSourceFile(node) {\n      const visited = visitEachChild(node, visitor, context);\n      addEmitHelpers(visited, context.readEmitHelpers());\n      return visited;\n    }\n    function modifierVisitor(node) {\n      return isDecorator(node) ? void 0 : node;\n    }\n    function visitor(node) {\n      if (!(node.transformFlags & 33554432)) {\n        return node;\n      }\n      switch (node.kind) {\n        case 167:\n          return void 0;\n        case 260:\n          return visitClassDeclaration(node);\n        case 228:\n          return visitClassExpression(node);\n        case 173:\n          return visitConstructorDeclaration(node);\n        case 171:\n          return visitMethodDeclaration(node);\n        case 175:\n          return visitSetAccessorDeclaration(node);\n        case 174:\n          return visitGetAccessorDeclaration(node);\n        case 169:\n          return visitPropertyDeclaration(node);\n        case 166:\n          return visitParameterDeclaration(node);\n        default:\n          return visitEachChild(node, visitor, context);\n      }\n    }\n    function visitClassDeclaration(node) {\n      if (!(classOrConstructorParameterIsDecorated(true, node) || childIsDecorated(true, node))) {\n        return visitEachChild(node, visitor, context);\n      }\n      const statements = classOrConstructorParameterIsDecorated(true, node) ? transformClassDeclarationWithClassDecorators(node, node.name) : transformClassDeclarationWithoutClassDecorators(node, node.name);\n      if (statements.length > 1) {\n        statements.push(factory2.createEndOfDeclarationMarker(node));\n        setEmitFlags(statements[0], getEmitFlags(statements[0]) | 8388608);\n      }\n      return singleOrMany(statements);\n    }\n    function decoratorContainsPrivateIdentifierInExpression(decorator) {\n      return !!(decorator.transformFlags & 536870912);\n    }\n    function parameterDecoratorsContainPrivateIdentifierInExpression(parameterDecorators) {\n      return some(parameterDecorators, decoratorContainsPrivateIdentifierInExpression);\n    }\n    function hasClassElementWithDecoratorContainingPrivateIdentifierInExpression(node) {\n      for (const member of node.members) {\n        if (!canHaveDecorators(member))\n          continue;\n        const allDecorators = getAllDecoratorsOfClassElement(member, node, true);\n        if (some(allDecorators == null ? void 0 : allDecorators.decorators, decoratorContainsPrivateIdentifierInExpression))\n          return true;\n        if (some(allDecorators == null ? void 0 : allDecorators.parameters, parameterDecoratorsContainPrivateIdentifierInExpression))\n          return true;\n      }\n      return false;\n    }\n    function transformDecoratorsOfClassElements(node, members) {\n      let decorationStatements = [];\n      addClassElementDecorationStatements(decorationStatements, node, false);\n      addClassElementDecorationStatements(decorationStatements, node, true);\n      if (hasClassElementWithDecoratorContainingPrivateIdentifierInExpression(node)) {\n        members = setTextRange(factory2.createNodeArray([\n          ...members,\n          factory2.createClassStaticBlockDeclaration(factory2.createBlock(decorationStatements, true))\n        ]), members);\n        decorationStatements = void 0;\n      }\n      return { decorationStatements, members };\n    }\n    function transformClassDeclarationWithoutClassDecorators(node, name) {\n      const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier);\n      const heritageClauses = visitNodes2(node.heritageClauses, visitor, isHeritageClause);\n      let members = visitNodes2(node.members, visitor, isClassElement);\n      let decorationStatements = [];\n      ({ members, decorationStatements } = transformDecoratorsOfClassElements(node, members));\n      const updated = factory2.updateClassDeclaration(node, modifiers, name, void 0, heritageClauses, members);\n      return addRange([updated], decorationStatements);\n    }\n    function transformClassDeclarationWithClassDecorators(node, name) {\n      const location = moveRangePastModifiers(node);\n      const classAlias = getClassAliasIfNeeded(node);\n      const declName = languageVersion <= 2 ? factory2.getInternalName(node, false, true) : factory2.getLocalName(node, false, true);\n      const heritageClauses = visitNodes2(node.heritageClauses, visitor, isHeritageClause);\n      let members = visitNodes2(node.members, visitor, isClassElement);\n      let decorationStatements = [];\n      ({ members, decorationStatements } = transformDecoratorsOfClassElements(node, members));\n      const classExpression = factory2.createClassExpression(void 0, name && isGeneratedIdentifier(name) ? void 0 : name, void 0, heritageClauses, members);\n      setOriginalNode(classExpression, node);\n      setTextRange(classExpression, location);\n      const statement = factory2.createVariableStatement(void 0, factory2.createVariableDeclarationList([\n        factory2.createVariableDeclaration(declName, void 0, void 0, classAlias ? factory2.createAssignment(classAlias, classExpression) : classExpression)\n      ], 1));\n      setOriginalNode(statement, node);\n      setTextRange(statement, location);\n      setCommentRange(statement, node);\n      const statements = [statement];\n      addRange(statements, decorationStatements);\n      addConstructorDecorationStatement(statements, node);\n      return statements;\n    }\n    function visitClassExpression(node) {\n      return factory2.updateClassExpression(node, visitNodes2(node.modifiers, modifierVisitor, isModifier), node.name, void 0, visitNodes2(node.heritageClauses, visitor, isHeritageClause), visitNodes2(node.members, visitor, isClassElement));\n    }\n    function visitConstructorDeclaration(node) {\n      return factory2.updateConstructorDeclaration(node, visitNodes2(node.modifiers, modifierVisitor, isModifier), visitNodes2(node.parameters, visitor, isParameter), visitNode(node.body, visitor, isBlock));\n    }\n    function finishClassElement(updated, original) {\n      if (updated !== original) {\n        setCommentRange(updated, original);\n        setSourceMapRange(updated, moveRangePastModifiers(original));\n      }\n      return updated;\n    }\n    function visitMethodDeclaration(node) {\n      return finishClassElement(factory2.updateMethodDeclaration(node, visitNodes2(node.modifiers, modifierVisitor, isModifier), node.asteriskToken, Debug.checkDefined(visitNode(node.name, visitor, isPropertyName)), void 0, void 0, visitNodes2(node.parameters, visitor, isParameter), void 0, visitNode(node.body, visitor, isBlock)), node);\n    }\n    function visitGetAccessorDeclaration(node) {\n      return finishClassElement(factory2.updateGetAccessorDeclaration(node, visitNodes2(node.modifiers, modifierVisitor, isModifier), Debug.checkDefined(visitNode(node.name, visitor, isPropertyName)), visitNodes2(node.parameters, visitor, isParameter), void 0, visitNode(node.body, visitor, isBlock)), node);\n    }\n    function visitSetAccessorDeclaration(node) {\n      return finishClassElement(factory2.updateSetAccessorDeclaration(node, visitNodes2(node.modifiers, modifierVisitor, isModifier), Debug.checkDefined(visitNode(node.name, visitor, isPropertyName)), visitNodes2(node.parameters, visitor, isParameter), visitNode(node.body, visitor, isBlock)), node);\n    }\n    function visitPropertyDeclaration(node) {\n      if (node.flags & 16777216 || hasSyntacticModifier(node, 2)) {\n        return void 0;\n      }\n      return finishClassElement(factory2.updatePropertyDeclaration(node, visitNodes2(node.modifiers, modifierVisitor, isModifier), Debug.checkDefined(visitNode(node.name, visitor, isPropertyName)), void 0, void 0, visitNode(node.initializer, visitor, isExpression)), node);\n    }\n    function visitParameterDeclaration(node) {\n      const updated = factory2.updateParameterDeclaration(node, elideNodes(factory2, node.modifiers), node.dotDotDotToken, Debug.checkDefined(visitNode(node.name, visitor, isBindingName)), void 0, void 0, visitNode(node.initializer, visitor, isExpression));\n      if (updated !== node) {\n        setCommentRange(updated, node);\n        setTextRange(updated, moveRangePastModifiers(node));\n        setSourceMapRange(updated, moveRangePastModifiers(node));\n        setEmitFlags(updated.name, 64);\n      }\n      return updated;\n    }\n    function isSyntheticMetadataDecorator(node) {\n      return isCallToHelper(node.expression, \"___metadata\");\n    }\n    function transformAllDecoratorsOfDeclaration(allDecorators) {\n      if (!allDecorators) {\n        return void 0;\n      }\n      const { false: decorators, true: metadata } = groupBy(allDecorators.decorators, isSyntheticMetadataDecorator);\n      const decoratorExpressions = [];\n      addRange(decoratorExpressions, map(decorators, transformDecorator));\n      addRange(decoratorExpressions, flatMap(allDecorators.parameters, transformDecoratorsOfParameter));\n      addRange(decoratorExpressions, map(metadata, transformDecorator));\n      return decoratorExpressions;\n    }\n    function addClassElementDecorationStatements(statements, node, isStatic2) {\n      addRange(statements, map(generateClassElementDecorationExpressions(node, isStatic2), (expr) => factory2.createExpressionStatement(expr)));\n    }\n    function isDecoratedClassElement(member, isStaticElement, parent2) {\n      return nodeOrChildIsDecorated(true, member, parent2) && isStaticElement === isStatic(member);\n    }\n    function getDecoratedClassElements(node, isStatic2) {\n      return filter(node.members, (m) => isDecoratedClassElement(m, isStatic2, node));\n    }\n    function generateClassElementDecorationExpressions(node, isStatic2) {\n      const members = getDecoratedClassElements(node, isStatic2);\n      let expressions;\n      for (const member of members) {\n        expressions = append(expressions, generateClassElementDecorationExpression(node, member));\n      }\n      return expressions;\n    }\n    function generateClassElementDecorationExpression(node, member) {\n      const allDecorators = getAllDecoratorsOfClassElement(member, node, true);\n      const decoratorExpressions = transformAllDecoratorsOfDeclaration(allDecorators);\n      if (!decoratorExpressions) {\n        return void 0;\n      }\n      const prefix = getClassMemberPrefix(node, member);\n      const memberName = getExpressionForPropertyName(member, !hasSyntacticModifier(member, 2));\n      const descriptor = languageVersion > 0 ? isPropertyDeclaration(member) && !hasAccessorModifier(member) ? factory2.createVoidZero() : factory2.createNull() : void 0;\n      const helper = emitHelpers().createDecorateHelper(decoratorExpressions, prefix, memberName, descriptor);\n      setEmitFlags(helper, 3072);\n      setSourceMapRange(helper, moveRangePastModifiers(member));\n      return helper;\n    }\n    function addConstructorDecorationStatement(statements, node) {\n      const expression = generateConstructorDecorationExpression(node);\n      if (expression) {\n        statements.push(setOriginalNode(factory2.createExpressionStatement(expression), node));\n      }\n    }\n    function generateConstructorDecorationExpression(node) {\n      const allDecorators = getAllDecoratorsOfClass(node);\n      const decoratorExpressions = transformAllDecoratorsOfDeclaration(allDecorators);\n      if (!decoratorExpressions) {\n        return void 0;\n      }\n      const classAlias = classAliases && classAliases[getOriginalNodeId(node)];\n      const localName = languageVersion <= 2 ? factory2.getInternalName(node, false, true) : factory2.getLocalName(node, false, true);\n      const decorate = emitHelpers().createDecorateHelper(decoratorExpressions, localName);\n      const expression = factory2.createAssignment(localName, classAlias ? factory2.createAssignment(classAlias, decorate) : decorate);\n      setEmitFlags(expression, 3072);\n      setSourceMapRange(expression, moveRangePastModifiers(node));\n      return expression;\n    }\n    function transformDecorator(decorator) {\n      return Debug.checkDefined(visitNode(decorator.expression, visitor, isExpression));\n    }\n    function transformDecoratorsOfParameter(decorators, parameterOffset) {\n      let expressions;\n      if (decorators) {\n        expressions = [];\n        for (const decorator of decorators) {\n          const helper = emitHelpers().createParamHelper(transformDecorator(decorator), parameterOffset);\n          setTextRange(helper, decorator.expression);\n          setEmitFlags(helper, 3072);\n          expressions.push(helper);\n        }\n      }\n      return expressions;\n    }\n    function getExpressionForPropertyName(member, generateNameForComputedPropertyName) {\n      const name = member.name;\n      if (isPrivateIdentifier(name)) {\n        return factory2.createIdentifier(\"\");\n      } else if (isComputedPropertyName(name)) {\n        return generateNameForComputedPropertyName && !isSimpleInlineableExpression(name.expression) ? factory2.getGeneratedNameForNode(name) : name.expression;\n      } else if (isIdentifier(name)) {\n        return factory2.createStringLiteral(idText(name));\n      } else {\n        return factory2.cloneNode(name);\n      }\n    }\n    function enableSubstitutionForClassAliases() {\n      if (!classAliases) {\n        context.enableSubstitution(79);\n        classAliases = [];\n      }\n    }\n    function getClassAliasIfNeeded(node) {\n      if (resolver.getNodeCheckFlags(node) & 1048576) {\n        enableSubstitutionForClassAliases();\n        const classAlias = factory2.createUniqueName(node.name && !isGeneratedIdentifier(node.name) ? idText(node.name) : \"default\");\n        classAliases[getOriginalNodeId(node)] = classAlias;\n        hoistVariableDeclaration(classAlias);\n        return classAlias;\n      }\n    }\n    function getClassPrototype(node) {\n      return factory2.createPropertyAccessExpression(factory2.getDeclarationName(node), \"prototype\");\n    }\n    function getClassMemberPrefix(node, member) {\n      return isStatic(member) ? factory2.getDeclarationName(node) : getClassPrototype(node);\n    }\n    function onSubstituteNode(hint, node) {\n      node = previousOnSubstituteNode(hint, node);\n      if (hint === 1) {\n        return substituteExpression(node);\n      }\n      return node;\n    }\n    function substituteExpression(node) {\n      switch (node.kind) {\n        case 79:\n          return substituteExpressionIdentifier(node);\n      }\n      return node;\n    }\n    function substituteExpressionIdentifier(node) {\n      var _a2;\n      return (_a2 = trySubstituteClassAlias(node)) != null ? _a2 : node;\n    }\n    function trySubstituteClassAlias(node) {\n      if (classAliases) {\n        if (resolver.getNodeCheckFlags(node) & 2097152) {\n          const declaration = resolver.getReferencedValueDeclaration(node);\n          if (declaration) {\n            const classAlias = classAliases[declaration.id];\n            if (classAlias) {\n              const clone2 = factory2.cloneNode(classAlias);\n              setSourceMapRange(clone2, node);\n              setCommentRange(clone2, node);\n              return clone2;\n            }\n          }\n        }\n      }\n      return void 0;\n    }\n  }\n  var init_legacyDecorators = __esm({\n    \"src/compiler/transformers/legacyDecorators.ts\"() {\n      \"use strict\";\n      init_ts2();\n    }\n  });\n  function transformESDecorators(context) {\n    const {\n      factory: factory2,\n      getEmitHelperFactory: emitHelpers,\n      startLexicalEnvironment,\n      endLexicalEnvironment,\n      hoistVariableDeclaration\n    } = context;\n    let top;\n    let classInfo;\n    let classThis;\n    let classSuper;\n    let pendingExpressions;\n    let shouldTransformPrivateStaticElementsInFile;\n    return chainBundle(context, transformSourceFile);\n    function transformSourceFile(node) {\n      top = void 0;\n      shouldTransformPrivateStaticElementsInFile = false;\n      const visited = visitEachChild(node, visitor, context);\n      addEmitHelpers(visited, context.readEmitHelpers());\n      if (shouldTransformPrivateStaticElementsInFile) {\n        addInternalEmitFlags(visited, 32);\n        shouldTransformPrivateStaticElementsInFile = false;\n      }\n      return visited;\n    }\n    function updateState() {\n      classInfo = void 0;\n      classThis = void 0;\n      classSuper = void 0;\n      switch (top == null ? void 0 : top.kind) {\n        case \"class\":\n          classInfo = top.classInfo;\n          break;\n        case \"class-element\":\n          classInfo = top.next.classInfo;\n          classThis = top.classThis;\n          classSuper = top.classSuper;\n          break;\n        case \"name\":\n          const grandparent = top.next.next.next;\n          if ((grandparent == null ? void 0 : grandparent.kind) === \"class-element\") {\n            classInfo = grandparent.next.classInfo;\n            classThis = grandparent.classThis;\n            classSuper = grandparent.classSuper;\n          }\n          break;\n      }\n    }\n    function enterClass(classInfo2) {\n      top = { kind: \"class\", next: top, classInfo: classInfo2, savedPendingExpressions: pendingExpressions };\n      pendingExpressions = void 0;\n      updateState();\n    }\n    function exitClass() {\n      Debug.assert((top == null ? void 0 : top.kind) === \"class\", \"Incorrect value for top.kind.\", () => `Expected top.kind to be 'class' but got '${top == null ? void 0 : top.kind}' instead.`);\n      pendingExpressions = top.savedPendingExpressions;\n      top = top.next;\n      updateState();\n    }\n    function enterClassElement(node) {\n      var _a2, _b;\n      Debug.assert((top == null ? void 0 : top.kind) === \"class\", \"Incorrect value for top.kind.\", () => `Expected top.kind to be 'class' but got '${top == null ? void 0 : top.kind}' instead.`);\n      top = { kind: \"class-element\", next: top };\n      if (isClassStaticBlockDeclaration(node) || isPropertyDeclaration(node) && hasStaticModifier(node)) {\n        top.classThis = (_a2 = top.next.classInfo) == null ? void 0 : _a2.classThis;\n        top.classSuper = (_b = top.next.classInfo) == null ? void 0 : _b.classSuper;\n      }\n      updateState();\n    }\n    function exitClassElement() {\n      var _a2;\n      Debug.assert((top == null ? void 0 : top.kind) === \"class-element\", \"Incorrect value for top.kind.\", () => `Expected top.kind to be 'class-element' but got '${top == null ? void 0 : top.kind}' instead.`);\n      Debug.assert(((_a2 = top.next) == null ? void 0 : _a2.kind) === \"class\", \"Incorrect value for top.next.kind.\", () => {\n        var _a3;\n        return `Expected top.next.kind to be 'class' but got '${(_a3 = top.next) == null ? void 0 : _a3.kind}' instead.`;\n      });\n      top = top.next;\n      updateState();\n    }\n    function enterName() {\n      Debug.assert((top == null ? void 0 : top.kind) === \"class-element\", \"Incorrect value for top.kind.\", () => `Expected top.kind to be 'class-element' but got '${top == null ? void 0 : top.kind}' instead.`);\n      top = { kind: \"name\", next: top };\n      updateState();\n    }\n    function exitName() {\n      Debug.assert((top == null ? void 0 : top.kind) === \"name\", \"Incorrect value for top.kind.\", () => `Expected top.kind to be 'name' but got '${top == null ? void 0 : top.kind}' instead.`);\n      top = top.next;\n      updateState();\n    }\n    function enterOther() {\n      if ((top == null ? void 0 : top.kind) === \"other\") {\n        Debug.assert(!pendingExpressions);\n        top.depth++;\n      } else {\n        top = { kind: \"other\", next: top, depth: 0, savedPendingExpressions: pendingExpressions };\n        pendingExpressions = void 0;\n        updateState();\n      }\n    }\n    function exitOther() {\n      Debug.assert((top == null ? void 0 : top.kind) === \"other\", \"Incorrect value for top.kind.\", () => `Expected top.kind to be 'other' but got '${top == null ? void 0 : top.kind}' instead.`);\n      if (top.depth > 0) {\n        Debug.assert(!pendingExpressions);\n        top.depth--;\n      } else {\n        pendingExpressions = top.savedPendingExpressions;\n        top = top.next;\n        updateState();\n      }\n    }\n    function shouldVisitNode(node) {\n      return !!(node.transformFlags & 33554432) || !!classThis && !!(node.transformFlags & 16384) || !!classThis && !!classSuper && !!(node.transformFlags & 134217728);\n    }\n    function visitor(node) {\n      if (!shouldVisitNode(node)) {\n        return node;\n      }\n      switch (node.kind) {\n        case 167:\n          return Debug.fail(\"Use `modifierVisitor` instead.\");\n        case 260:\n          return visitClassDeclaration(node);\n        case 228:\n          return visitClassExpression(node, void 0);\n        case 173:\n        case 169:\n        case 172:\n          return Debug.fail(\"Not supported outside of a class. Use 'classElementVisitor' instead.\");\n        case 166:\n          return visitParameterDeclaration(node);\n        case 223:\n          return visitBinaryExpression(node, false);\n        case 299:\n          return visitPropertyAssignment(node);\n        case 257:\n          return visitVariableDeclaration(node);\n        case 205:\n          return visitBindingElement(node);\n        case 274:\n          return visitExportAssignment(node);\n        case 108:\n          return visitThisExpression(node);\n        case 245:\n          return visitForStatement(node);\n        case 241:\n          return visitExpressionStatement(node);\n        case 357:\n          return visitCommaListExpression(node, false);\n        case 214:\n          return visitParenthesizedExpression(node, false, void 0);\n        case 356:\n          return visitPartiallyEmittedExpression(node, false, void 0);\n        case 210:\n          return visitCallExpression(node);\n        case 212:\n          return visitTaggedTemplateExpression(node);\n        case 221:\n        case 222:\n          return visitPreOrPostfixUnaryExpression(node, false);\n        case 208:\n          return visitPropertyAccessExpression(node);\n        case 209:\n          return visitElementAccessExpression(node);\n        case 164:\n          return visitComputedPropertyName(node);\n        case 171:\n        case 175:\n        case 174:\n        case 215:\n        case 259: {\n          enterOther();\n          const result = visitEachChild(node, fallbackVisitor, context);\n          exitOther();\n          return result;\n        }\n        default:\n          return visitEachChild(node, fallbackVisitor, context);\n      }\n    }\n    function fallbackVisitor(node) {\n      switch (node.kind) {\n        case 167:\n          return void 0;\n        default:\n          return visitor(node);\n      }\n    }\n    function modifierVisitor(node) {\n      switch (node.kind) {\n        case 167:\n          return void 0;\n        default:\n          return node;\n      }\n    }\n    function classElementVisitor(node) {\n      switch (node.kind) {\n        case 173:\n          return visitConstructorDeclaration(node);\n        case 171:\n          return visitMethodDeclaration(node);\n        case 174:\n          return visitGetAccessorDeclaration(node);\n        case 175:\n          return visitSetAccessorDeclaration(node);\n        case 169:\n          return visitPropertyDeclaration(node);\n        case 172:\n          return visitClassStaticBlockDeclaration(node);\n        default:\n          return visitor(node);\n      }\n    }\n    function namedEvaluationVisitor(node, referencedName) {\n      switch (node.kind) {\n        case 356:\n          return visitPartiallyEmittedExpression(node, false, referencedName);\n        case 214:\n          return visitParenthesizedExpression(node, false, referencedName);\n        case 228:\n          return visitClassExpression(node, referencedName);\n        default:\n          return visitor(node);\n      }\n    }\n    function discardedValueVisitor(node) {\n      switch (node.kind) {\n        case 221:\n        case 222:\n          return visitPreOrPostfixUnaryExpression(node, true);\n        case 223:\n          return visitBinaryExpression(node, true);\n        case 357:\n          return visitCommaListExpression(node, true);\n        case 214:\n          return visitParenthesizedExpression(node, true, void 0);\n        default:\n          return visitor(node);\n      }\n    }\n    function getHelperVariableName(node) {\n      let declarationName = node.name && isIdentifier(node.name) && !isGeneratedIdentifier(node.name) ? idText(node.name) : node.name && isPrivateIdentifier(node.name) && !isGeneratedIdentifier(node.name) ? idText(node.name).slice(1) : node.name && isStringLiteral(node.name) && isIdentifierText(node.name.text, 99) ? node.name.text : isClassLike(node) ? \"class\" : \"member\";\n      if (isGetAccessor(node))\n        declarationName = `get_${declarationName}`;\n      if (isSetAccessor(node))\n        declarationName = `set_${declarationName}`;\n      if (node.name && isPrivateIdentifier(node.name))\n        declarationName = `private_${declarationName}`;\n      if (isStatic(node))\n        declarationName = `static_${declarationName}`;\n      return \"_\" + declarationName;\n    }\n    function createHelperVariable(node, suffix) {\n      return factory2.createUniqueName(`${getHelperVariableName(node)}_${suffix}`, 16 | 8);\n    }\n    function createLet(name, initializer) {\n      return factory2.createVariableStatement(void 0, factory2.createVariableDeclarationList([\n        factory2.createVariableDeclaration(name, void 0, void 0, initializer)\n      ], 1));\n    }\n    function createClassInfo(node) {\n      let instanceExtraInitializersName;\n      let staticExtraInitializersName;\n      let hasStaticInitializers = false;\n      let hasNonAmbientInstanceFields = false;\n      let hasStaticPrivateClassElements = false;\n      for (const member of node.members) {\n        if (isNamedClassElement(member) && nodeOrChildIsDecorated(false, member, node)) {\n          if (hasStaticModifier(member)) {\n            staticExtraInitializersName != null ? staticExtraInitializersName : staticExtraInitializersName = factory2.createUniqueName(\"_staticExtraInitializers\", 16);\n          } else {\n            instanceExtraInitializersName != null ? instanceExtraInitializersName : instanceExtraInitializersName = factory2.createUniqueName(\"_instanceExtraInitializers\", 16);\n          }\n        }\n        if (isClassStaticBlockDeclaration(member)) {\n          hasStaticInitializers = true;\n        } else if (isPropertyDeclaration(member)) {\n          if (hasStaticModifier(member)) {\n            hasStaticInitializers || (hasStaticInitializers = !!member.initializer || hasDecorators(member));\n          } else {\n            hasNonAmbientInstanceFields || (hasNonAmbientInstanceFields = !isAmbientPropertyDeclaration(member));\n          }\n        }\n        if ((isPrivateIdentifierClassElementDeclaration(member) || isAutoAccessorPropertyDeclaration(member)) && hasStaticModifier(member)) {\n          hasStaticPrivateClassElements = true;\n        }\n        if (staticExtraInitializersName && instanceExtraInitializersName && hasStaticInitializers && hasNonAmbientInstanceFields && hasStaticPrivateClassElements) {\n          break;\n        }\n      }\n      return {\n        class: node,\n        instanceExtraInitializersName,\n        staticExtraInitializersName,\n        hasStaticInitializers,\n        hasNonAmbientInstanceFields,\n        hasStaticPrivateClassElements\n      };\n    }\n    function containsLexicalSuperInStaticInitializer(node) {\n      for (const member of node.members) {\n        if (isClassStaticBlockDeclaration(member) || isPropertyDeclaration(member) && hasStaticModifier(member)) {\n          if (member.transformFlags & 134217728) {\n            return true;\n          }\n        }\n      }\n      return false;\n    }\n    function transformClassLike(node, className) {\n      var _a2, _b, _c, _d, _e;\n      startLexicalEnvironment();\n      const classReference = (_a2 = node.name) != null ? _a2 : factory2.getGeneratedNameForNode(node);\n      const classInfo2 = createClassInfo(node);\n      const classDefinitionStatements = [];\n      let leadingBlockStatements;\n      let trailingBlockStatements;\n      let syntheticConstructor;\n      let heritageClauses;\n      let shouldTransformPrivateStaticElementsInClass = false;\n      const classDecorators = transformAllDecoratorsOfDeclaration(getAllDecoratorsOfClass(node));\n      if (classDecorators) {\n        classInfo2.classDecoratorsName = factory2.createUniqueName(\"_classDecorators\", 16);\n        classInfo2.classDescriptorName = factory2.createUniqueName(\"_classDescriptor\", 16);\n        classInfo2.classExtraInitializersName = factory2.createUniqueName(\"_classExtraInitializers\", 16);\n        classInfo2.classThis = factory2.createUniqueName(\"_classThis\", 16);\n        classDefinitionStatements.push(createLet(classInfo2.classDecoratorsName, factory2.createArrayLiteralExpression(classDecorators)), createLet(classInfo2.classDescriptorName), createLet(classInfo2.classExtraInitializersName, factory2.createArrayLiteralExpression()), createLet(classInfo2.classThis));\n        if (classInfo2.hasStaticPrivateClassElements) {\n          shouldTransformPrivateStaticElementsInClass = true;\n          shouldTransformPrivateStaticElementsInFile = true;\n        }\n      }\n      if (classDecorators && containsLexicalSuperInStaticInitializer(node)) {\n        const extendsClause = getHeritageClause(node.heritageClauses, 94);\n        const extendsElement = extendsClause && firstOrUndefined(extendsClause.types);\n        const extendsExpression = extendsElement && visitNode(extendsElement.expression, visitor, isExpression);\n        if (extendsExpression) {\n          classInfo2.classSuper = factory2.createUniqueName(\"_classSuper\", 16);\n          const unwrapped = skipOuterExpressions(extendsExpression);\n          const safeExtendsExpression = isClassExpression(unwrapped) && !unwrapped.name || isFunctionExpression(unwrapped) && !unwrapped.name || isArrowFunction(unwrapped) ? factory2.createComma(factory2.createNumericLiteral(0), extendsExpression) : extendsExpression;\n          classDefinitionStatements.push(createLet(classInfo2.classSuper, safeExtendsExpression));\n          const updatedExtendsElement = factory2.updateExpressionWithTypeArguments(extendsElement, classInfo2.classSuper, void 0);\n          const updatedExtendsClause = factory2.updateHeritageClause(extendsClause, [updatedExtendsElement]);\n          heritageClauses = factory2.createNodeArray([updatedExtendsClause]);\n        }\n      } else {\n        heritageClauses = visitNodes2(node.heritageClauses, visitor, isHeritageClause);\n      }\n      const renamedClassThis = (_b = classInfo2.classThis) != null ? _b : factory2.createThis();\n      const needsSetNameHelper = !((_c = getOriginalNode(node, isClassLike)) == null ? void 0 : _c.name) && (classDecorators || !isStringLiteral(className) || !isEmptyStringLiteral(className));\n      if (needsSetNameHelper) {\n        const setNameExpr = emitHelpers().createSetFunctionNameHelper(factory2.createThis(), className);\n        leadingBlockStatements = append(leadingBlockStatements, factory2.createExpressionStatement(setNameExpr));\n      }\n      enterClass(classInfo2);\n      let members = visitNodes2(node.members, classElementVisitor, isClassElement);\n      if (pendingExpressions) {\n        let outerThis;\n        for (let expression of pendingExpressions) {\n          expression = visitNode(expression, function thisVisitor(node2) {\n            if (!(node2.transformFlags & 16384)) {\n              return node2;\n            }\n            switch (node2.kind) {\n              case 108:\n                if (!outerThis) {\n                  outerThis = factory2.createUniqueName(\"_outerThis\", 16);\n                  classDefinitionStatements.unshift(createLet(outerThis, factory2.createThis()));\n                }\n                return outerThis;\n              default:\n                return visitEachChild(node2, thisVisitor, context);\n            }\n          }, isExpression);\n          const statement = factory2.createExpressionStatement(expression);\n          leadingBlockStatements = append(leadingBlockStatements, statement);\n        }\n        pendingExpressions = void 0;\n      }\n      exitClass();\n      if (classInfo2.instanceExtraInitializersName && !getFirstConstructorWithBody(node)) {\n        const initializerStatements = prepareConstructor(node, classInfo2);\n        if (initializerStatements) {\n          const extendsClauseElement = getEffectiveBaseTypeNode(node);\n          const isDerivedClass = !!(extendsClauseElement && skipOuterExpressions(extendsClauseElement.expression).kind !== 104);\n          const constructorStatements = [];\n          if (isDerivedClass) {\n            const spreadArguments = factory2.createSpreadElement(factory2.createIdentifier(\"arguments\"));\n            const superCall = factory2.createCallExpression(factory2.createSuper(), void 0, [spreadArguments]);\n            constructorStatements.push(factory2.createExpressionStatement(superCall));\n          }\n          addRange(constructorStatements, initializerStatements);\n          const constructorBody = factory2.createBlock(constructorStatements, true);\n          syntheticConstructor = factory2.createConstructorDeclaration(void 0, [], constructorBody);\n        }\n      }\n      if (classInfo2.staticExtraInitializersName) {\n        classDefinitionStatements.push(createLet(classInfo2.staticExtraInitializersName, factory2.createArrayLiteralExpression()));\n      }\n      if (classInfo2.instanceExtraInitializersName) {\n        classDefinitionStatements.push(createLet(classInfo2.instanceExtraInitializersName, factory2.createArrayLiteralExpression()));\n      }\n      if (classInfo2.memberInfos) {\n        forEachEntry(classInfo2.memberInfos, (memberInfo, member) => {\n          if (isStatic(member)) {\n            classDefinitionStatements.push(createLet(memberInfo.memberDecoratorsName));\n            if (memberInfo.memberInitializersName) {\n              classDefinitionStatements.push(createLet(memberInfo.memberInitializersName, factory2.createArrayLiteralExpression()));\n            }\n            if (memberInfo.memberDescriptorName) {\n              classDefinitionStatements.push(createLet(memberInfo.memberDescriptorName));\n            }\n          }\n        });\n      }\n      if (classInfo2.memberInfos) {\n        forEachEntry(classInfo2.memberInfos, (memberInfo, member) => {\n          if (!isStatic(member)) {\n            classDefinitionStatements.push(createLet(memberInfo.memberDecoratorsName));\n            if (memberInfo.memberInitializersName) {\n              classDefinitionStatements.push(createLet(memberInfo.memberInitializersName, factory2.createArrayLiteralExpression()));\n            }\n            if (memberInfo.memberDescriptorName) {\n              classDefinitionStatements.push(createLet(memberInfo.memberDescriptorName));\n            }\n          }\n        });\n      }\n      leadingBlockStatements = addRange(leadingBlockStatements, classInfo2.staticNonFieldDecorationStatements);\n      leadingBlockStatements = addRange(leadingBlockStatements, classInfo2.nonStaticNonFieldDecorationStatements);\n      leadingBlockStatements = addRange(leadingBlockStatements, classInfo2.staticFieldDecorationStatements);\n      leadingBlockStatements = addRange(leadingBlockStatements, classInfo2.nonStaticFieldDecorationStatements);\n      if (classInfo2.classDescriptorName && classInfo2.classDecoratorsName && classInfo2.classExtraInitializersName && classInfo2.classThis) {\n        leadingBlockStatements != null ? leadingBlockStatements : leadingBlockStatements = [];\n        const valueProperty = factory2.createPropertyAssignment(\"value\", factory2.createThis());\n        const classDescriptor = factory2.createObjectLiteralExpression([valueProperty]);\n        const classDescriptorAssignment = factory2.createAssignment(classInfo2.classDescriptorName, classDescriptor);\n        const classNameReference = factory2.createPropertyAccessExpression(factory2.createThis(), \"name\");\n        const esDecorateHelper2 = emitHelpers().createESDecorateHelper(factory2.createNull(), classDescriptorAssignment, classInfo2.classDecoratorsName, { kind: \"class\", name: classNameReference }, factory2.createNull(), classInfo2.classExtraInitializersName);\n        const esDecorateStatement = factory2.createExpressionStatement(esDecorateHelper2);\n        setSourceMapRange(esDecorateStatement, moveRangePastDecorators(node));\n        leadingBlockStatements.push(esDecorateStatement);\n        const classDescriptorValueReference = factory2.createPropertyAccessExpression(classInfo2.classDescriptorName, \"value\");\n        const classThisAssignment = factory2.createAssignment(classInfo2.classThis, classDescriptorValueReference);\n        const classReferenceAssignment = factory2.createAssignment(classReference, classThisAssignment);\n        leadingBlockStatements.push(factory2.createExpressionStatement(classReferenceAssignment));\n      }\n      if (classInfo2.staticExtraInitializersName) {\n        const runStaticInitializersHelper = emitHelpers().createRunInitializersHelper(renamedClassThis, classInfo2.staticExtraInitializersName);\n        const runStaticInitializersStatement = factory2.createExpressionStatement(runStaticInitializersHelper);\n        setSourceMapRange(runStaticInitializersStatement, (_d = node.name) != null ? _d : moveRangePastDecorators(node));\n        leadingBlockStatements = append(leadingBlockStatements, runStaticInitializersStatement);\n      }\n      if (classInfo2.classExtraInitializersName) {\n        const runClassInitializersHelper = emitHelpers().createRunInitializersHelper(renamedClassThis, classInfo2.classExtraInitializersName);\n        const runClassInitializersStatement = factory2.createExpressionStatement(runClassInitializersHelper);\n        setSourceMapRange(runClassInitializersStatement, (_e = node.name) != null ? _e : moveRangePastDecorators(node));\n        trailingBlockStatements = append(trailingBlockStatements, runClassInitializersStatement);\n      }\n      if (leadingBlockStatements && trailingBlockStatements && !classInfo2.hasStaticInitializers) {\n        addRange(leadingBlockStatements, trailingBlockStatements);\n        trailingBlockStatements = void 0;\n      }\n      let newMembers = members;\n      if (leadingBlockStatements) {\n        const leadingStaticBlockBody = factory2.createBlock(leadingBlockStatements, true);\n        const leadingStaticBlock = factory2.createClassStaticBlockDeclaration(leadingStaticBlockBody);\n        if (shouldTransformPrivateStaticElementsInClass) {\n          setInternalEmitFlags(leadingStaticBlock, 32);\n        }\n        newMembers = [leadingStaticBlock, ...newMembers];\n      }\n      if (syntheticConstructor) {\n        newMembers = [...newMembers, syntheticConstructor];\n      }\n      if (trailingBlockStatements) {\n        const trailingStaticBlockBody = factory2.createBlock(trailingBlockStatements, true);\n        const trailingStaticBlock = factory2.createClassStaticBlockDeclaration(trailingStaticBlockBody);\n        newMembers = [...newMembers, trailingStaticBlock];\n      }\n      if (newMembers !== members) {\n        members = setTextRange(factory2.createNodeArray(newMembers), members);\n      }\n      const lexicalEnvironment = endLexicalEnvironment();\n      let classExpression;\n      if (classDecorators) {\n        classExpression = factory2.createClassExpression(void 0, void 0, void 0, heritageClauses, members);\n        const classReferenceDeclaration = factory2.createVariableDeclaration(classReference, void 0, void 0, classExpression);\n        const classReferenceVarDeclList = factory2.createVariableDeclarationList([classReferenceDeclaration]);\n        const returnExpr = classInfo2.classThis ? factory2.createAssignment(classReference, classInfo2.classThis) : classReference;\n        classDefinitionStatements.push(factory2.createVariableStatement(void 0, classReferenceVarDeclList), factory2.createReturnStatement(returnExpr));\n      } else {\n        classExpression = factory2.createClassExpression(void 0, node.name, void 0, heritageClauses, members);\n        classDefinitionStatements.push(factory2.createReturnStatement(classExpression));\n      }\n      if (shouldTransformPrivateStaticElementsInClass) {\n        addInternalEmitFlags(classExpression, 32);\n        for (const member of classExpression.members) {\n          if ((isPrivateIdentifierClassElementDeclaration(member) || isAutoAccessorPropertyDeclaration(member)) && hasStaticModifier(member)) {\n            addInternalEmitFlags(member, 32);\n          }\n        }\n      }\n      setOriginalNode(classExpression, node);\n      getOrCreateEmitNode(classExpression).classThis = classInfo2.classThis;\n      return factory2.createImmediatelyInvokedArrowFunction(factory2.mergeLexicalEnvironment(classDefinitionStatements, lexicalEnvironment));\n    }\n    function isDecoratedClassLike(node) {\n      return classOrConstructorParameterIsDecorated(false, node) || childIsDecorated(false, node);\n    }\n    function visitClassDeclaration(node) {\n      var _a2;\n      if (isDecoratedClassLike(node)) {\n        if (hasSyntacticModifier(node, 1) && hasSyntacticModifier(node, 1024)) {\n          const originalClass = (_a2 = getOriginalNode(node, isClassLike)) != null ? _a2 : node;\n          const className = originalClass.name ? factory2.createStringLiteralFromNode(originalClass.name) : factory2.createStringLiteral(\"default\");\n          const iife = transformClassLike(node, className);\n          const statement = factory2.createExportDefault(iife);\n          setOriginalNode(statement, node);\n          setCommentRange(statement, getCommentRange(node));\n          setSourceMapRange(statement, moveRangePastDecorators(node));\n          return statement;\n        } else {\n          Debug.assertIsDefined(node.name, \"A class declaration that is not a default export must have a name.\");\n          const iife = transformClassLike(node, factory2.createStringLiteralFromNode(node.name));\n          const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier);\n          const varDecl = factory2.createVariableDeclaration(node.name, void 0, void 0, iife);\n          const varDecls = factory2.createVariableDeclarationList([varDecl], 1);\n          const statement = factory2.createVariableStatement(modifiers, varDecls);\n          setOriginalNode(statement, node);\n          setCommentRange(statement, getCommentRange(node));\n          return statement;\n        }\n      } else {\n        const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier);\n        const heritageClauses = visitNodes2(node.heritageClauses, visitor, isHeritageClause);\n        enterClass(void 0);\n        const members = visitNodes2(node.members, classElementVisitor, isClassElement);\n        exitClass();\n        return factory2.updateClassDeclaration(node, modifiers, node.name, void 0, heritageClauses, members);\n      }\n    }\n    function visitClassExpression(node, referencedName) {\n      if (isDecoratedClassLike(node)) {\n        const className = node.name ? factory2.createStringLiteralFromNode(node.name) : referencedName != null ? referencedName : factory2.createStringLiteral(\"\");\n        const iife = transformClassLike(node, className);\n        setOriginalNode(iife, node);\n        return iife;\n      } else {\n        const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier);\n        const heritageClauses = visitNodes2(node.heritageClauses, visitor, isHeritageClause);\n        enterClass(void 0);\n        const members = visitNodes2(node.members, classElementVisitor, isClassElement);\n        exitClass();\n        return factory2.updateClassExpression(node, modifiers, node.name, void 0, heritageClauses, members);\n      }\n    }\n    function prepareConstructor(_parent, classInfo2) {\n      if (classInfo2.instanceExtraInitializersName && !classInfo2.hasNonAmbientInstanceFields) {\n        const statements = [];\n        statements.push(factory2.createExpressionStatement(emitHelpers().createRunInitializersHelper(factory2.createThis(), classInfo2.instanceExtraInitializersName)));\n        return statements;\n      }\n    }\n    function visitConstructorDeclaration(node) {\n      enterClassElement(node);\n      const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier);\n      const parameters = visitNodes2(node.parameters, visitor, isParameter);\n      let body;\n      if (node.body && classInfo) {\n        const initializerStatements = prepareConstructor(classInfo.class, classInfo);\n        if (initializerStatements) {\n          const statements = [];\n          const nonPrologueStart = factory2.copyPrologue(node.body.statements, statements, false, visitor);\n          const superStatementIndex = findSuperStatementIndex(node.body.statements, nonPrologueStart);\n          const indexOfFirstStatementAfterSuper = superStatementIndex >= 0 ? superStatementIndex + 1 : void 0;\n          addRange(statements, visitNodes2(node.body.statements, visitor, isStatement, nonPrologueStart, indexOfFirstStatementAfterSuper ? indexOfFirstStatementAfterSuper - nonPrologueStart : void 0));\n          addRange(statements, initializerStatements);\n          addRange(statements, visitNodes2(node.body.statements, visitor, isStatement, indexOfFirstStatementAfterSuper));\n          body = factory2.createBlock(statements, true);\n          setOriginalNode(body, node.body);\n          setTextRange(body, node.body);\n        }\n      }\n      body != null ? body : body = visitNode(node.body, visitor, isBlock);\n      exitClassElement();\n      return factory2.updateConstructorDeclaration(node, modifiers, parameters, body);\n    }\n    function finishClassElement(updated, original) {\n      if (updated !== original) {\n        setCommentRange(updated, original);\n        setSourceMapRange(updated, moveRangePastDecorators(original));\n      }\n      return updated;\n    }\n    function partialTransformClassElement(member, useNamedEvaluation, classInfo2, createDescriptor) {\n      var _a2, _b, _c, _d, _e, _f, _g, _h;\n      let referencedName;\n      let name;\n      let initializersName;\n      let thisArg;\n      let descriptorName;\n      if (!classInfo2) {\n        const modifiers2 = visitNodes2(member.modifiers, modifierVisitor, isModifier);\n        enterName();\n        if (useNamedEvaluation) {\n          ({ referencedName, name } = visitReferencedPropertyName(member.name));\n        } else {\n          name = visitPropertyName(member.name);\n        }\n        exitName();\n        return { modifiers: modifiers2, referencedName, name, initializersName, descriptorName, thisArg };\n      }\n      const memberDecorators = transformAllDecoratorsOfDeclaration(getAllDecoratorsOfClassElement(member, classInfo2.class, false));\n      const modifiers = visitNodes2(member.modifiers, modifierVisitor, isModifier);\n      if (memberDecorators) {\n        const memberDecoratorsName = createHelperVariable(member, \"decorators\");\n        const memberDecoratorsArray = factory2.createArrayLiteralExpression(memberDecorators);\n        const memberDecoratorsAssignment = factory2.createAssignment(memberDecoratorsName, memberDecoratorsArray);\n        const memberInfo = { memberDecoratorsName };\n        (_a2 = classInfo2.memberInfos) != null ? _a2 : classInfo2.memberInfos = /* @__PURE__ */ new Map();\n        classInfo2.memberInfos.set(member, memberInfo);\n        pendingExpressions != null ? pendingExpressions : pendingExpressions = [];\n        pendingExpressions.push(memberDecoratorsAssignment);\n        const statements = isMethodOrAccessor(member) || isAutoAccessorPropertyDeclaration(member) ? isStatic(member) ? (_b = classInfo2.staticNonFieldDecorationStatements) != null ? _b : classInfo2.staticNonFieldDecorationStatements = [] : (_c = classInfo2.nonStaticNonFieldDecorationStatements) != null ? _c : classInfo2.nonStaticNonFieldDecorationStatements = [] : isPropertyDeclaration(member) && !isAutoAccessorPropertyDeclaration(member) ? isStatic(member) ? (_d = classInfo2.staticFieldDecorationStatements) != null ? _d : classInfo2.staticFieldDecorationStatements = [] : (_e = classInfo2.nonStaticFieldDecorationStatements) != null ? _e : classInfo2.nonStaticFieldDecorationStatements = [] : Debug.fail();\n        const kind = isGetAccessorDeclaration(member) ? \"getter\" : isSetAccessorDeclaration(member) ? \"setter\" : isMethodDeclaration(member) ? \"method\" : isAutoAccessorPropertyDeclaration(member) ? \"accessor\" : isPropertyDeclaration(member) ? \"field\" : Debug.fail();\n        let propertyName;\n        if (isIdentifier(member.name) || isPrivateIdentifier(member.name)) {\n          propertyName = { computed: false, name: member.name };\n        } else if (isPropertyNameLiteral(member.name)) {\n          propertyName = { computed: true, name: factory2.createStringLiteralFromNode(member.name) };\n        } else {\n          const expression = member.name.expression;\n          if (isPropertyNameLiteral(expression) && !isIdentifier(expression)) {\n            propertyName = { computed: true, name: factory2.createStringLiteralFromNode(expression) };\n          } else {\n            enterName();\n            ({ referencedName, name } = visitReferencedPropertyName(member.name));\n            propertyName = { computed: true, name: referencedName };\n            exitName();\n          }\n        }\n        const context2 = {\n          kind,\n          name: propertyName,\n          static: isStatic(member),\n          private: isPrivateIdentifier(member.name),\n          access: {\n            get: isPropertyDeclaration(member) || isGetAccessorDeclaration(member) || isMethodDeclaration(member),\n            set: isPropertyDeclaration(member) || isSetAccessorDeclaration(member)\n          }\n        };\n        const extraInitializers = isStatic(member) ? (_f = classInfo2.staticExtraInitializersName) != null ? _f : classInfo2.staticExtraInitializersName = factory2.createUniqueName(\"_staticExtraInitializers\", 16) : (_g = classInfo2.instanceExtraInitializersName) != null ? _g : classInfo2.instanceExtraInitializersName = factory2.createUniqueName(\"_instanceExtraInitializers\", 16);\n        if (isMethodOrAccessor(member)) {\n          let descriptor;\n          if (isPrivateIdentifierClassElementDeclaration(member) && createDescriptor) {\n            descriptor = createDescriptor(member, visitNodes2(modifiers, (node) => tryCast(node, isAsyncModifier), isModifier));\n            memberInfo.memberDescriptorName = descriptorName = createHelperVariable(member, \"descriptor\");\n            descriptor = factory2.createAssignment(descriptorName, descriptor);\n          }\n          const esDecorateExpression = emitHelpers().createESDecorateHelper(factory2.createThis(), descriptor != null ? descriptor : factory2.createNull(), memberDecoratorsName, context2, factory2.createNull(), extraInitializers);\n          const esDecorateStatement = factory2.createExpressionStatement(esDecorateExpression);\n          setSourceMapRange(esDecorateStatement, moveRangePastDecorators(member));\n          statements.push(esDecorateStatement);\n        } else if (isPropertyDeclaration(member)) {\n          initializersName = (_h = memberInfo.memberInitializersName) != null ? _h : memberInfo.memberInitializersName = createHelperVariable(member, \"initializers\");\n          if (isStatic(member)) {\n            thisArg = classInfo2.classThis;\n          }\n          let descriptor;\n          if (isPrivateIdentifierClassElementDeclaration(member) && hasAccessorModifier(member) && createDescriptor) {\n            descriptor = createDescriptor(member, void 0);\n            memberInfo.memberDescriptorName = descriptorName = createHelperVariable(member, \"descriptor\");\n            descriptor = factory2.createAssignment(descriptorName, descriptor);\n          }\n          const esDecorateExpression = emitHelpers().createESDecorateHelper(isAutoAccessorPropertyDeclaration(member) ? factory2.createThis() : factory2.createNull(), descriptor != null ? descriptor : factory2.createNull(), memberDecoratorsName, context2, initializersName, extraInitializers);\n          const esDecorateStatement = factory2.createExpressionStatement(esDecorateExpression);\n          setSourceMapRange(esDecorateStatement, moveRangePastDecorators(member));\n          statements.push(esDecorateStatement);\n        }\n      }\n      if (name === void 0) {\n        enterName();\n        if (useNamedEvaluation) {\n          ({ referencedName, name } = visitReferencedPropertyName(member.name));\n        } else {\n          name = visitPropertyName(member.name);\n        }\n        exitName();\n      }\n      if (!some(modifiers) && (isMethodDeclaration(member) || isPropertyDeclaration(member))) {\n        setEmitFlags(name, 1024);\n      }\n      return { modifiers, referencedName, name, initializersName, descriptorName, thisArg };\n    }\n    function visitMethodDeclaration(node) {\n      enterClassElement(node);\n      const { modifiers, name, descriptorName } = partialTransformClassElement(node, false, classInfo, createMethodDescriptorObject);\n      if (descriptorName) {\n        exitClassElement();\n        return finishClassElement(createMethodDescriptorForwarder(modifiers, name, descriptorName), node);\n      } else {\n        const parameters = visitNodes2(node.parameters, visitor, isParameter);\n        const body = visitNode(node.body, visitor, isBlock);\n        exitClassElement();\n        return finishClassElement(factory2.updateMethodDeclaration(node, modifiers, node.asteriskToken, name, void 0, void 0, parameters, void 0, body), node);\n      }\n    }\n    function visitGetAccessorDeclaration(node) {\n      enterClassElement(node);\n      const { modifiers, name, descriptorName } = partialTransformClassElement(node, false, classInfo, createGetAccessorDescriptorObject);\n      if (descriptorName) {\n        exitClassElement();\n        return finishClassElement(createGetAccessorDescriptorForwarder(modifiers, name, descriptorName), node);\n      } else {\n        const parameters = visitNodes2(node.parameters, visitor, isParameter);\n        const body = visitNode(node.body, visitor, isBlock);\n        exitClassElement();\n        return finishClassElement(factory2.updateGetAccessorDeclaration(node, modifiers, name, parameters, void 0, body), node);\n      }\n    }\n    function visitSetAccessorDeclaration(node) {\n      enterClassElement(node);\n      const { modifiers, name, descriptorName } = partialTransformClassElement(node, false, classInfo, createSetAccessorDescriptorObject);\n      if (descriptorName) {\n        exitClassElement();\n        return finishClassElement(createSetAccessorDescriptorForwarder(modifiers, name, descriptorName), node);\n      } else {\n        const parameters = visitNodes2(node.parameters, visitor, isParameter);\n        const body = visitNode(node.body, visitor, isBlock);\n        exitClassElement();\n        return finishClassElement(factory2.updateSetAccessorDeclaration(node, modifiers, name, parameters, body), node);\n      }\n    }\n    function visitClassStaticBlockDeclaration(node) {\n      enterClassElement(node);\n      if (classInfo)\n        classInfo.hasStaticInitializers = true;\n      const result = visitEachChild(node, visitor, context);\n      exitClassElement();\n      return result;\n    }\n    function visitPropertyDeclaration(node) {\n      enterClassElement(node);\n      Debug.assert(!isAmbientPropertyDeclaration(node), \"Not yet implemented.\");\n      const useNamedEvaluation = isNamedEvaluation(node, isAnonymousClassNeedingAssignedName);\n      const { modifiers, name, referencedName, initializersName, descriptorName, thisArg } = partialTransformClassElement(node, useNamedEvaluation, classInfo, hasAccessorModifier(node) ? createAccessorPropertyDescriptorObject : void 0);\n      startLexicalEnvironment();\n      let initializer = referencedName ? visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, referencedName), isExpression) : visitNode(node.initializer, visitor, isExpression);\n      if (initializersName) {\n        initializer = emitHelpers().createRunInitializersHelper(thisArg != null ? thisArg : factory2.createThis(), initializersName, initializer != null ? initializer : factory2.createVoidZero());\n      }\n      if (!isStatic(node) && (classInfo == null ? void 0 : classInfo.instanceExtraInitializersName) && !(classInfo == null ? void 0 : classInfo.hasInjectedInstanceInitializers)) {\n        classInfo.hasInjectedInstanceInitializers = true;\n        initializer != null ? initializer : initializer = factory2.createVoidZero();\n        initializer = factory2.createParenthesizedExpression(factory2.createComma(emitHelpers().createRunInitializersHelper(factory2.createThis(), classInfo.instanceExtraInitializersName), initializer));\n      }\n      if (isStatic(node) && classInfo && initializer) {\n        classInfo.hasStaticInitializers = true;\n      }\n      const declarations = endLexicalEnvironment();\n      if (some(declarations)) {\n        initializer = factory2.createImmediatelyInvokedArrowFunction([\n          ...declarations,\n          factory2.createReturnStatement(initializer)\n        ]);\n      }\n      exitClassElement();\n      if (hasAccessorModifier(node) && descriptorName) {\n        const commentRange = getCommentRange(node);\n        const sourceMapRange = getSourceMapRange(node);\n        const name2 = node.name;\n        let getterName = name2;\n        let setterName = name2;\n        if (isComputedPropertyName(name2) && !isSimpleInlineableExpression(name2.expression)) {\n          const cacheAssignment = findComputedPropertyNameCacheAssignment(name2);\n          if (cacheAssignment) {\n            getterName = factory2.updateComputedPropertyName(name2, visitNode(name2.expression, visitor, isExpression));\n            setterName = factory2.updateComputedPropertyName(name2, cacheAssignment.left);\n          } else {\n            const temp = factory2.createTempVariable(hoistVariableDeclaration);\n            setSourceMapRange(temp, name2.expression);\n            const expression = visitNode(name2.expression, visitor, isExpression);\n            const assignment = factory2.createAssignment(temp, expression);\n            setSourceMapRange(assignment, name2.expression);\n            getterName = factory2.updateComputedPropertyName(name2, assignment);\n            setterName = factory2.updateComputedPropertyName(name2, temp);\n          }\n        }\n        const modifiersWithoutAccessor = visitNodes2(modifiers, (node2) => node2.kind !== 127 ? node2 : void 0, isModifier);\n        const backingField = createAccessorPropertyBackingField(factory2, node, modifiersWithoutAccessor, initializer);\n        setOriginalNode(backingField, node);\n        setEmitFlags(backingField, 3072);\n        setSourceMapRange(backingField, sourceMapRange);\n        setSourceMapRange(backingField.name, node.name);\n        const getter = createGetAccessorDescriptorForwarder(modifiersWithoutAccessor, getterName, descriptorName);\n        setOriginalNode(getter, node);\n        setCommentRange(getter, commentRange);\n        setSourceMapRange(getter, sourceMapRange);\n        const setter = createSetAccessorDescriptorForwarder(modifiersWithoutAccessor, setterName, descriptorName);\n        setOriginalNode(setter, node);\n        setEmitFlags(setter, 3072);\n        setSourceMapRange(setter, sourceMapRange);\n        return [backingField, getter, setter];\n      }\n      return finishClassElement(factory2.updatePropertyDeclaration(node, modifiers, name, void 0, void 0, initializer), node);\n    }\n    function visitThisExpression(node) {\n      return classThis != null ? classThis : node;\n    }\n    function visitCallExpression(node) {\n      if (isSuperProperty(node.expression) && classThis) {\n        const expression = visitNode(node.expression, visitor, isExpression);\n        const argumentsList = visitNodes2(node.arguments, visitor, isExpression);\n        const invocation = factory2.createFunctionCallCall(expression, classThis, argumentsList);\n        setOriginalNode(invocation, node);\n        setTextRange(invocation, node);\n        return invocation;\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitTaggedTemplateExpression(node) {\n      if (isSuperProperty(node.tag) && classThis) {\n        const tag = visitNode(node.tag, visitor, isExpression);\n        const boundTag = factory2.createFunctionBindCall(tag, classThis, []);\n        setOriginalNode(boundTag, node);\n        setTextRange(boundTag, node);\n        const template = visitNode(node.template, visitor, isTemplateLiteral);\n        return factory2.updateTaggedTemplateExpression(node, boundTag, void 0, template);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitPropertyAccessExpression(node) {\n      if (isSuperProperty(node) && isIdentifier(node.name) && classThis && classSuper) {\n        const propertyName = factory2.createStringLiteralFromNode(node.name);\n        const superProperty = factory2.createReflectGetCall(classSuper, propertyName, classThis);\n        setOriginalNode(superProperty, node.expression);\n        setTextRange(superProperty, node.expression);\n        return superProperty;\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitElementAccessExpression(node) {\n      if (isSuperProperty(node) && classThis && classSuper) {\n        const propertyName = visitNode(node.argumentExpression, visitor, isExpression);\n        const superProperty = factory2.createReflectGetCall(classSuper, propertyName, classThis);\n        setOriginalNode(superProperty, node.expression);\n        setTextRange(superProperty, node.expression);\n        return superProperty;\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitParameterDeclaration(node) {\n      let updated;\n      if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) {\n        const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer);\n        const name = visitNode(node.name, visitor, isBindingName);\n        const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression);\n        updated = factory2.updateParameterDeclaration(node, void 0, void 0, name, void 0, void 0, initializer);\n      } else {\n        updated = factory2.updateParameterDeclaration(node, void 0, node.dotDotDotToken, visitNode(node.name, visitor, isBindingName), void 0, void 0, visitNode(node.initializer, visitor, isExpression));\n      }\n      if (updated !== node) {\n        setCommentRange(updated, node);\n        setTextRange(updated, moveRangePastModifiers(node));\n        setSourceMapRange(updated, moveRangePastModifiers(node));\n        setEmitFlags(updated.name, 64);\n      }\n      return updated;\n    }\n    function isAnonymousClassNeedingAssignedName(node) {\n      return isClassExpression(node) && !node.name && isDecoratedClassLike(node);\n    }\n    function visitForStatement(node) {\n      return factory2.updateForStatement(node, visitNode(node.initializer, discardedValueVisitor, isForInitializer), visitNode(node.condition, visitor, isExpression), visitNode(node.incrementor, discardedValueVisitor, isExpression), visitIterationBody(node.statement, visitor, context));\n    }\n    function visitExpressionStatement(node) {\n      return visitEachChild(node, discardedValueVisitor, context);\n    }\n    function visitBinaryExpression(node, discarded) {\n      if (isDestructuringAssignment(node)) {\n        const left = visitAssignmentPattern(node.left);\n        const right = visitNode(node.right, visitor, isExpression);\n        return factory2.updateBinaryExpression(node, left, node.operatorToken, right);\n      }\n      if (isAssignmentExpression(node)) {\n        if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) {\n          const assignedName = getAssignedNameOfIdentifier(node.left, node.right);\n          const left = visitNode(node.left, visitor, isExpression);\n          const right = visitNode(node.right, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression);\n          return factory2.updateBinaryExpression(node, left, node.operatorToken, right);\n        }\n        if (isSuperProperty(node.left) && classThis && classSuper) {\n          let setterName = isElementAccessExpression(node.left) ? visitNode(node.left.argumentExpression, visitor, isExpression) : isIdentifier(node.left.name) ? factory2.createStringLiteralFromNode(node.left.name) : void 0;\n          if (setterName) {\n            let expression = visitNode(node.right, visitor, isExpression);\n            if (isCompoundAssignment(node.operatorToken.kind)) {\n              let getterName = setterName;\n              if (!isSimpleInlineableExpression(setterName)) {\n                getterName = factory2.createTempVariable(hoistVariableDeclaration);\n                setterName = factory2.createAssignment(getterName, setterName);\n              }\n              const superPropertyGet = factory2.createReflectGetCall(classSuper, getterName, classThis);\n              setOriginalNode(superPropertyGet, node.left);\n              setTextRange(superPropertyGet, node.left);\n              expression = factory2.createBinaryExpression(superPropertyGet, getNonAssignmentOperatorForCompoundAssignment(node.operatorToken.kind), expression);\n              setTextRange(expression, node);\n            }\n            const temp = discarded ? void 0 : factory2.createTempVariable(hoistVariableDeclaration);\n            if (temp) {\n              expression = factory2.createAssignment(temp, expression);\n              setTextRange(temp, node);\n            }\n            expression = factory2.createReflectSetCall(classSuper, setterName, expression, classThis);\n            setOriginalNode(expression, node);\n            setTextRange(expression, node);\n            if (temp) {\n              expression = factory2.createComma(expression, temp);\n              setTextRange(expression, node);\n            }\n            return expression;\n          }\n        }\n      }\n      if (node.operatorToken.kind === 27) {\n        const left = visitNode(node.left, discardedValueVisitor, isExpression);\n        const right = visitNode(node.right, discarded ? discardedValueVisitor : visitor, isExpression);\n        return factory2.updateBinaryExpression(node, left, node.operatorToken, right);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitPreOrPostfixUnaryExpression(node, discarded) {\n      if (node.operator === 45 || node.operator === 46) {\n        const operand = skipParentheses(node.operand);\n        if (isSuperProperty(operand) && classThis && classSuper) {\n          let setterName = isElementAccessExpression(operand) ? visitNode(operand.argumentExpression, visitor, isExpression) : isIdentifier(operand.name) ? factory2.createStringLiteralFromNode(operand.name) : void 0;\n          if (setterName) {\n            let getterName = setterName;\n            if (!isSimpleInlineableExpression(setterName)) {\n              getterName = factory2.createTempVariable(hoistVariableDeclaration);\n              setterName = factory2.createAssignment(getterName, setterName);\n            }\n            let expression = factory2.createReflectGetCall(classSuper, getterName, classThis);\n            setOriginalNode(expression, node);\n            setTextRange(expression, node);\n            const temp = discarded ? void 0 : factory2.createTempVariable(hoistVariableDeclaration);\n            expression = expandPreOrPostfixIncrementOrDecrementExpression(factory2, node, expression, hoistVariableDeclaration, temp);\n            expression = factory2.createReflectSetCall(classSuper, setterName, expression, classThis);\n            setOriginalNode(expression, node);\n            setTextRange(expression, node);\n            if (temp) {\n              expression = factory2.createComma(expression, temp);\n              setTextRange(expression, node);\n            }\n            return expression;\n          }\n        }\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitCommaListExpression(node, discarded) {\n      const elements = discarded ? visitCommaListElements(node.elements, discardedValueVisitor) : visitCommaListElements(node.elements, visitor, discardedValueVisitor);\n      return factory2.updateCommaListExpression(node, elements);\n    }\n    function visitReferencedPropertyName(node) {\n      if (isPropertyNameLiteral(node) || isPrivateIdentifier(node)) {\n        const referencedName2 = factory2.createStringLiteralFromNode(node);\n        const name2 = visitNode(node, visitor, isPropertyName);\n        return { referencedName: referencedName2, name: name2 };\n      }\n      if (isPropertyNameLiteral(node.expression) && !isIdentifier(node.expression)) {\n        const referencedName2 = factory2.createStringLiteralFromNode(node.expression);\n        const name2 = visitNode(node, visitor, isPropertyName);\n        return { referencedName: referencedName2, name: name2 };\n      }\n      const referencedName = factory2.getGeneratedNameForNode(node);\n      hoistVariableDeclaration(referencedName);\n      const key = emitHelpers().createPropKeyHelper(visitNode(node.expression, visitor, isExpression));\n      const assignment = factory2.createAssignment(referencedName, key);\n      const name = factory2.updateComputedPropertyName(node, injectPendingExpressions(assignment));\n      return { referencedName, name };\n    }\n    function visitPropertyName(node) {\n      if (isComputedPropertyName(node)) {\n        return visitComputedPropertyName(node);\n      }\n      return visitNode(node, visitor, isPropertyName);\n    }\n    function visitComputedPropertyName(node) {\n      let expression = visitNode(node.expression, visitor, isExpression);\n      if (!isSimpleInlineableExpression(expression)) {\n        expression = injectPendingExpressions(expression);\n      }\n      return factory2.updateComputedPropertyName(node, expression);\n    }\n    function visitPropertyAssignment(node) {\n      if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) {\n        const { referencedName, name } = visitReferencedPropertyName(node.name);\n        const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, referencedName), isExpression);\n        return factory2.updatePropertyAssignment(node, name, initializer);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitVariableDeclaration(node) {\n      if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) {\n        const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer);\n        const name = visitNode(node.name, visitor, isBindingName);\n        const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression);\n        return factory2.updateVariableDeclaration(node, name, void 0, void 0, initializer);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitBindingElement(node) {\n      if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) {\n        const assignedName = getAssignedNameOfIdentifier(node.name, node.initializer);\n        const propertyName = visitNode(node.propertyName, visitor, isPropertyName);\n        const name = visitNode(node.name, visitor, isBindingName);\n        const initializer = visitNode(node.initializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression);\n        return factory2.updateBindingElement(node, void 0, propertyName, name, initializer);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitDestructuringAssignmentTarget(node) {\n      if (isObjectLiteralExpression(node) || isArrayLiteralExpression(node)) {\n        return visitAssignmentPattern(node);\n      }\n      if (isSuperProperty(node) && classThis && classSuper) {\n        const propertyName = isElementAccessExpression(node) ? visitNode(node.argumentExpression, visitor, isExpression) : isIdentifier(node.name) ? factory2.createStringLiteralFromNode(node.name) : void 0;\n        if (propertyName) {\n          const paramName = factory2.createTempVariable(void 0);\n          const expression = factory2.createAssignmentTargetWrapper(paramName, factory2.createReflectSetCall(classSuper, propertyName, paramName, classThis));\n          setOriginalNode(expression, node);\n          setTextRange(expression, node);\n          return expression;\n        }\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitAssignmentElement(node) {\n      if (isAssignmentExpression(node, true)) {\n        const assignmentTarget = visitDestructuringAssignmentTarget(node.left);\n        let initializer;\n        if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) {\n          const assignedName = getAssignedNameOfIdentifier(node.left, node.right);\n          initializer = visitNode(node.right, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression);\n        } else {\n          initializer = visitNode(node.right, visitor, isExpression);\n        }\n        return factory2.updateBinaryExpression(node, assignmentTarget, node.operatorToken, initializer);\n      } else {\n        return visitDestructuringAssignmentTarget(node);\n      }\n    }\n    function visitAssignmentRestElement(node) {\n      if (isLeftHandSideExpression(node.expression)) {\n        const expression = visitDestructuringAssignmentTarget(node.expression);\n        return factory2.updateSpreadElement(node, expression);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitArrayAssignmentElement(node) {\n      Debug.assertNode(node, isArrayBindingOrAssignmentElement);\n      if (isSpreadElement(node))\n        return visitAssignmentRestElement(node);\n      if (!isOmittedExpression(node))\n        return visitAssignmentElement(node);\n      return visitEachChild(node, visitor, context);\n    }\n    function visitAssignmentProperty(node) {\n      const name = visitNode(node.name, visitor, isPropertyName);\n      if (isAssignmentExpression(node.initializer, true)) {\n        const assignmentElement = visitAssignmentElement(node.initializer);\n        return factory2.updatePropertyAssignment(node, name, assignmentElement);\n      }\n      if (isLeftHandSideExpression(node.initializer)) {\n        const assignmentElement = visitDestructuringAssignmentTarget(node.initializer);\n        return factory2.updatePropertyAssignment(node, name, assignmentElement);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitShorthandAssignmentProperty(node) {\n      if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) {\n        const assignedName = getAssignedNameOfIdentifier(node.name, node.objectAssignmentInitializer);\n        const name = visitNode(node.name, visitor, isIdentifier);\n        const objectAssignmentInitializer = visitNode(node.objectAssignmentInitializer, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression);\n        return factory2.updateShorthandPropertyAssignment(node, name, objectAssignmentInitializer);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitAssignmentRestProperty(node) {\n      if (isLeftHandSideExpression(node.expression)) {\n        const expression = visitDestructuringAssignmentTarget(node.expression);\n        return factory2.updateSpreadAssignment(node, expression);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitObjectAssignmentElement(node) {\n      Debug.assertNode(node, isObjectBindingOrAssignmentElement);\n      if (isSpreadAssignment(node))\n        return visitAssignmentRestProperty(node);\n      if (isShorthandPropertyAssignment(node))\n        return visitShorthandAssignmentProperty(node);\n      if (isPropertyAssignment(node))\n        return visitAssignmentProperty(node);\n      return visitEachChild(node, visitor, context);\n    }\n    function visitAssignmentPattern(node) {\n      if (isArrayLiteralExpression(node)) {\n        const elements = visitNodes2(node.elements, visitArrayAssignmentElement, isExpression);\n        return factory2.updateArrayLiteralExpression(node, elements);\n      } else {\n        const properties = visitNodes2(node.properties, visitObjectAssignmentElement, isObjectLiteralElementLike);\n        return factory2.updateObjectLiteralExpression(node, properties);\n      }\n    }\n    function visitExportAssignment(node) {\n      if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) {\n        const referencedName = factory2.createStringLiteral(node.isExportEquals ? \"\" : \"default\");\n        const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier);\n        const expression = visitNode(node.expression, (node2) => namedEvaluationVisitor(node2, referencedName), isExpression);\n        return factory2.updateExportAssignment(node, modifiers, expression);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitParenthesizedExpression(node, discarded, referencedName) {\n      const visitorFunc = discarded ? discardedValueVisitor : referencedName ? (node2) => namedEvaluationVisitor(node2, referencedName) : visitor;\n      const expression = visitNode(node.expression, visitorFunc, isExpression);\n      return factory2.updateParenthesizedExpression(node, expression);\n    }\n    function visitPartiallyEmittedExpression(node, discarded, referencedName) {\n      const visitorFunc = discarded ? discardedValueVisitor : referencedName ? (node2) => namedEvaluationVisitor(node2, referencedName) : visitor;\n      const expression = visitNode(node.expression, visitorFunc, isExpression);\n      return factory2.updatePartiallyEmittedExpression(node, expression);\n    }\n    function injectPendingExpressions(expression) {\n      if (some(pendingExpressions)) {\n        if (isParenthesizedExpression(expression)) {\n          pendingExpressions.push(expression.expression);\n          expression = factory2.updateParenthesizedExpression(expression, factory2.inlineExpressions(pendingExpressions));\n        } else {\n          pendingExpressions.push(expression);\n          expression = factory2.inlineExpressions(pendingExpressions);\n        }\n        pendingExpressions = void 0;\n      }\n      return expression;\n    }\n    function transformAllDecoratorsOfDeclaration(allDecorators) {\n      if (!allDecorators) {\n        return void 0;\n      }\n      const decoratorExpressions = [];\n      addRange(decoratorExpressions, map(allDecorators.decorators, transformDecorator));\n      return decoratorExpressions;\n    }\n    function transformDecorator(decorator) {\n      const expression = visitNode(decorator.expression, visitor, isExpression);\n      setEmitFlags(expression, 3072);\n      return expression;\n    }\n    function createDescriptorMethod(original, name, modifiers, asteriskToken, kind, parameters, body) {\n      const func = factory2.createFunctionExpression(modifiers, asteriskToken, void 0, void 0, parameters, void 0, body != null ? body : factory2.createBlock([]));\n      setOriginalNode(func, original);\n      setSourceMapRange(func, moveRangePastDecorators(original));\n      setEmitFlags(func, 3072);\n      const prefix = kind === \"get\" || kind === \"set\" ? kind : void 0;\n      const functionName = factory2.createStringLiteralFromNode(name, void 0);\n      const namedFunction = emitHelpers().createSetFunctionNameHelper(func, functionName, prefix);\n      const method = factory2.createPropertyAssignment(factory2.createIdentifier(kind), namedFunction);\n      setOriginalNode(method, original);\n      setSourceMapRange(method, moveRangePastDecorators(original));\n      setEmitFlags(method, 3072);\n      return method;\n    }\n    function createMethodDescriptorObject(node, modifiers) {\n      return factory2.createObjectLiteralExpression([\n        createDescriptorMethod(node, node.name, modifiers, node.asteriskToken, \"value\", visitNodes2(node.parameters, visitor, isParameter), visitNode(node.body, visitor, isBlock))\n      ]);\n    }\n    function createGetAccessorDescriptorObject(node, modifiers) {\n      return factory2.createObjectLiteralExpression([\n        createDescriptorMethod(node, node.name, modifiers, void 0, \"get\", [], visitNode(node.body, visitor, isBlock))\n      ]);\n    }\n    function createSetAccessorDescriptorObject(node, modifiers) {\n      return factory2.createObjectLiteralExpression([\n        createDescriptorMethod(node, node.name, modifiers, void 0, \"set\", visitNodes2(node.parameters, visitor, isParameter), visitNode(node.body, visitor, isBlock))\n      ]);\n    }\n    function createAccessorPropertyDescriptorObject(node, modifiers) {\n      return factory2.createObjectLiteralExpression([\n        createDescriptorMethod(node, node.name, modifiers, void 0, \"get\", [], factory2.createBlock([\n          factory2.createReturnStatement(factory2.createPropertyAccessExpression(factory2.createThis(), factory2.getGeneratedPrivateNameForNode(node.name)))\n        ])),\n        createDescriptorMethod(node, node.name, modifiers, void 0, \"set\", [factory2.createParameterDeclaration(void 0, void 0, \"value\")], factory2.createBlock([\n          factory2.createExpressionStatement(factory2.createAssignment(factory2.createPropertyAccessExpression(factory2.createThis(), factory2.getGeneratedPrivateNameForNode(node.name)), factory2.createIdentifier(\"value\")))\n        ]))\n      ]);\n    }\n    function createMethodDescriptorForwarder(modifiers, name, descriptorName) {\n      modifiers = visitNodes2(modifiers, (node) => isStaticModifier(node) ? node : void 0, isModifier);\n      return factory2.createGetAccessorDeclaration(modifiers, name, [], void 0, factory2.createBlock([\n        factory2.createReturnStatement(factory2.createPropertyAccessExpression(descriptorName, factory2.createIdentifier(\"value\")))\n      ]));\n    }\n    function createGetAccessorDescriptorForwarder(modifiers, name, descriptorName) {\n      modifiers = visitNodes2(modifiers, (node) => isStaticModifier(node) ? node : void 0, isModifier);\n      return factory2.createGetAccessorDeclaration(modifiers, name, [], void 0, factory2.createBlock([\n        factory2.createReturnStatement(factory2.createFunctionCallCall(factory2.createPropertyAccessExpression(descriptorName, factory2.createIdentifier(\"get\")), factory2.createThis(), []))\n      ]));\n    }\n    function createSetAccessorDescriptorForwarder(modifiers, name, descriptorName) {\n      modifiers = visitNodes2(modifiers, (node) => isStaticModifier(node) ? node : void 0, isModifier);\n      return factory2.createSetAccessorDeclaration(modifiers, name, [factory2.createParameterDeclaration(void 0, void 0, \"value\")], factory2.createBlock([\n        factory2.createReturnStatement(factory2.createFunctionCallCall(factory2.createPropertyAccessExpression(descriptorName, factory2.createIdentifier(\"set\")), factory2.createThis(), [factory2.createIdentifier(\"value\")]))\n      ]));\n    }\n    function getAssignedNameOfIdentifier(name, initializer) {\n      const originalClass = getOriginalNode(initializer, isClassLike);\n      return originalClass && !originalClass.name && hasSyntacticModifier(originalClass, 1024) ? factory2.createStringLiteral(\"default\") : factory2.createStringLiteralFromNode(name);\n    }\n  }\n  var init_esDecorators = __esm({\n    \"src/compiler/transformers/esDecorators.ts\"() {\n      \"use strict\";\n      init_ts2();\n    }\n  });\n  function transformES2017(context) {\n    const {\n      factory: factory2,\n      getEmitHelperFactory: emitHelpers,\n      resumeLexicalEnvironment,\n      endLexicalEnvironment,\n      hoistVariableDeclaration\n    } = context;\n    const resolver = context.getEmitResolver();\n    const compilerOptions = context.getCompilerOptions();\n    const languageVersion = getEmitScriptTarget(compilerOptions);\n    let enabledSubstitutions;\n    let enclosingSuperContainerFlags = 0;\n    let enclosingFunctionParameterNames;\n    let capturedSuperProperties;\n    let hasSuperElementAccess;\n    const substitutedSuperAccessors = [];\n    let contextFlags = 0;\n    const previousOnEmitNode = context.onEmitNode;\n    const previousOnSubstituteNode = context.onSubstituteNode;\n    context.onEmitNode = onEmitNode;\n    context.onSubstituteNode = onSubstituteNode;\n    return chainBundle(context, transformSourceFile);\n    function transformSourceFile(node) {\n      if (node.isDeclarationFile) {\n        return node;\n      }\n      setContextFlag(1, false);\n      setContextFlag(2, !isEffectiveStrictModeSourceFile(node, compilerOptions));\n      const visited = visitEachChild(node, visitor, context);\n      addEmitHelpers(visited, context.readEmitHelpers());\n      return visited;\n    }\n    function setContextFlag(flag, val) {\n      contextFlags = val ? contextFlags | flag : contextFlags & ~flag;\n    }\n    function inContext(flags) {\n      return (contextFlags & flags) !== 0;\n    }\n    function inTopLevelContext() {\n      return !inContext(1);\n    }\n    function inHasLexicalThisContext() {\n      return inContext(2);\n    }\n    function doWithContext(flags, cb, value) {\n      const contextFlagsToSet = flags & ~contextFlags;\n      if (contextFlagsToSet) {\n        setContextFlag(contextFlagsToSet, true);\n        const result = cb(value);\n        setContextFlag(contextFlagsToSet, false);\n        return result;\n      }\n      return cb(value);\n    }\n    function visitDefault(node) {\n      return visitEachChild(node, visitor, context);\n    }\n    function visitor(node) {\n      if ((node.transformFlags & 256) === 0) {\n        return node;\n      }\n      switch (node.kind) {\n        case 132:\n          return void 0;\n        case 220:\n          return visitAwaitExpression(node);\n        case 171:\n          return doWithContext(1 | 2, visitMethodDeclaration, node);\n        case 259:\n          return doWithContext(1 | 2, visitFunctionDeclaration, node);\n        case 215:\n          return doWithContext(1 | 2, visitFunctionExpression, node);\n        case 216:\n          return doWithContext(1, visitArrowFunction, node);\n        case 208:\n          if (capturedSuperProperties && isPropertyAccessExpression(node) && node.expression.kind === 106) {\n            capturedSuperProperties.add(node.name.escapedText);\n          }\n          return visitEachChild(node, visitor, context);\n        case 209:\n          if (capturedSuperProperties && node.expression.kind === 106) {\n            hasSuperElementAccess = true;\n          }\n          return visitEachChild(node, visitor, context);\n        case 174:\n          return doWithContext(1 | 2, visitGetAccessorDeclaration, node);\n        case 175:\n          return doWithContext(1 | 2, visitSetAccessorDeclaration, node);\n        case 173:\n          return doWithContext(1 | 2, visitConstructorDeclaration, node);\n        case 260:\n        case 228:\n          return doWithContext(1 | 2, visitDefault, node);\n        default:\n          return visitEachChild(node, visitor, context);\n      }\n    }\n    function asyncBodyVisitor(node) {\n      if (isNodeWithPossibleHoistedDeclaration(node)) {\n        switch (node.kind) {\n          case 240:\n            return visitVariableStatementInAsyncBody(node);\n          case 245:\n            return visitForStatementInAsyncBody(node);\n          case 246:\n            return visitForInStatementInAsyncBody(node);\n          case 247:\n            return visitForOfStatementInAsyncBody(node);\n          case 295:\n            return visitCatchClauseInAsyncBody(node);\n          case 238:\n          case 252:\n          case 266:\n          case 292:\n          case 293:\n          case 255:\n          case 243:\n          case 244:\n          case 242:\n          case 251:\n          case 253:\n            return visitEachChild(node, asyncBodyVisitor, context);\n          default:\n            return Debug.assertNever(node, \"Unhandled node.\");\n        }\n      }\n      return visitor(node);\n    }\n    function visitCatchClauseInAsyncBody(node) {\n      const catchClauseNames = /* @__PURE__ */ new Set();\n      recordDeclarationName(node.variableDeclaration, catchClauseNames);\n      let catchClauseUnshadowedNames;\n      catchClauseNames.forEach((_, escapedName) => {\n        if (enclosingFunctionParameterNames.has(escapedName)) {\n          if (!catchClauseUnshadowedNames) {\n            catchClauseUnshadowedNames = new Set(enclosingFunctionParameterNames);\n          }\n          catchClauseUnshadowedNames.delete(escapedName);\n        }\n      });\n      if (catchClauseUnshadowedNames) {\n        const savedEnclosingFunctionParameterNames = enclosingFunctionParameterNames;\n        enclosingFunctionParameterNames = catchClauseUnshadowedNames;\n        const result = visitEachChild(node, asyncBodyVisitor, context);\n        enclosingFunctionParameterNames = savedEnclosingFunctionParameterNames;\n        return result;\n      } else {\n        return visitEachChild(node, asyncBodyVisitor, context);\n      }\n    }\n    function visitVariableStatementInAsyncBody(node) {\n      if (isVariableDeclarationListWithCollidingName(node.declarationList)) {\n        const expression = visitVariableDeclarationListWithCollidingNames(node.declarationList, false);\n        return expression ? factory2.createExpressionStatement(expression) : void 0;\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitForInStatementInAsyncBody(node) {\n      return factory2.updateForInStatement(node, isVariableDeclarationListWithCollidingName(node.initializer) ? visitVariableDeclarationListWithCollidingNames(node.initializer, true) : Debug.checkDefined(visitNode(node.initializer, visitor, isForInitializer)), Debug.checkDefined(visitNode(node.expression, visitor, isExpression)), visitIterationBody(node.statement, asyncBodyVisitor, context));\n    }\n    function visitForOfStatementInAsyncBody(node) {\n      return factory2.updateForOfStatement(node, visitNode(node.awaitModifier, visitor, isAwaitKeyword), isVariableDeclarationListWithCollidingName(node.initializer) ? visitVariableDeclarationListWithCollidingNames(node.initializer, true) : Debug.checkDefined(visitNode(node.initializer, visitor, isForInitializer)), Debug.checkDefined(visitNode(node.expression, visitor, isExpression)), visitIterationBody(node.statement, asyncBodyVisitor, context));\n    }\n    function visitForStatementInAsyncBody(node) {\n      const initializer = node.initializer;\n      return factory2.updateForStatement(node, isVariableDeclarationListWithCollidingName(initializer) ? visitVariableDeclarationListWithCollidingNames(initializer, false) : visitNode(node.initializer, visitor, isForInitializer), visitNode(node.condition, visitor, isExpression), visitNode(node.incrementor, visitor, isExpression), visitIterationBody(node.statement, asyncBodyVisitor, context));\n    }\n    function visitAwaitExpression(node) {\n      if (inTopLevelContext()) {\n        return visitEachChild(node, visitor, context);\n      }\n      return setOriginalNode(setTextRange(factory2.createYieldExpression(void 0, visitNode(node.expression, visitor, isExpression)), node), node);\n    }\n    function visitConstructorDeclaration(node) {\n      return factory2.updateConstructorDeclaration(node, visitNodes2(node.modifiers, visitor, isModifier), visitParameterList(node.parameters, visitor, context), transformMethodBody(node));\n    }\n    function visitMethodDeclaration(node) {\n      return factory2.updateMethodDeclaration(node, visitNodes2(node.modifiers, visitor, isModifierLike), node.asteriskToken, node.name, void 0, void 0, visitParameterList(node.parameters, visitor, context), void 0, getFunctionFlags(node) & 2 ? transformAsyncFunctionBody(node) : transformMethodBody(node));\n    }\n    function visitGetAccessorDeclaration(node) {\n      return factory2.updateGetAccessorDeclaration(node, visitNodes2(node.modifiers, visitor, isModifierLike), node.name, visitParameterList(node.parameters, visitor, context), void 0, transformMethodBody(node));\n    }\n    function visitSetAccessorDeclaration(node) {\n      return factory2.updateSetAccessorDeclaration(node, visitNodes2(node.modifiers, visitor, isModifierLike), node.name, visitParameterList(node.parameters, visitor, context), transformMethodBody(node));\n    }\n    function visitFunctionDeclaration(node) {\n      return factory2.updateFunctionDeclaration(node, visitNodes2(node.modifiers, visitor, isModifierLike), node.asteriskToken, node.name, void 0, visitParameterList(node.parameters, visitor, context), void 0, getFunctionFlags(node) & 2 ? transformAsyncFunctionBody(node) : visitFunctionBody(node.body, visitor, context));\n    }\n    function visitFunctionExpression(node) {\n      return factory2.updateFunctionExpression(node, visitNodes2(node.modifiers, visitor, isModifier), node.asteriskToken, node.name, void 0, visitParameterList(node.parameters, visitor, context), void 0, getFunctionFlags(node) & 2 ? transformAsyncFunctionBody(node) : visitFunctionBody(node.body, visitor, context));\n    }\n    function visitArrowFunction(node) {\n      return factory2.updateArrowFunction(node, visitNodes2(node.modifiers, visitor, isModifier), void 0, visitParameterList(node.parameters, visitor, context), void 0, node.equalsGreaterThanToken, getFunctionFlags(node) & 2 ? transformAsyncFunctionBody(node) : visitFunctionBody(node.body, visitor, context));\n    }\n    function recordDeclarationName({ name }, names) {\n      if (isIdentifier(name)) {\n        names.add(name.escapedText);\n      } else {\n        for (const element of name.elements) {\n          if (!isOmittedExpression(element)) {\n            recordDeclarationName(element, names);\n          }\n        }\n      }\n    }\n    function isVariableDeclarationListWithCollidingName(node) {\n      return !!node && isVariableDeclarationList(node) && !(node.flags & 3) && node.declarations.some(collidesWithParameterName);\n    }\n    function visitVariableDeclarationListWithCollidingNames(node, hasReceiver) {\n      hoistVariableDeclarationList(node);\n      const variables = getInitializedVariables(node);\n      if (variables.length === 0) {\n        if (hasReceiver) {\n          return visitNode(factory2.converters.convertToAssignmentElementTarget(node.declarations[0].name), visitor, isExpression);\n        }\n        return void 0;\n      }\n      return factory2.inlineExpressions(map(variables, transformInitializedVariable));\n    }\n    function hoistVariableDeclarationList(node) {\n      forEach(node.declarations, hoistVariable);\n    }\n    function hoistVariable({ name }) {\n      if (isIdentifier(name)) {\n        hoistVariableDeclaration(name);\n      } else {\n        for (const element of name.elements) {\n          if (!isOmittedExpression(element)) {\n            hoistVariable(element);\n          }\n        }\n      }\n    }\n    function transformInitializedVariable(node) {\n      const converted = setSourceMapRange(factory2.createAssignment(factory2.converters.convertToAssignmentElementTarget(node.name), node.initializer), node);\n      return Debug.checkDefined(visitNode(converted, visitor, isExpression));\n    }\n    function collidesWithParameterName({ name }) {\n      if (isIdentifier(name)) {\n        return enclosingFunctionParameterNames.has(name.escapedText);\n      } else {\n        for (const element of name.elements) {\n          if (!isOmittedExpression(element) && collidesWithParameterName(element)) {\n            return true;\n          }\n        }\n      }\n      return false;\n    }\n    function transformMethodBody(node) {\n      Debug.assertIsDefined(node.body);\n      const savedCapturedSuperProperties = capturedSuperProperties;\n      const savedHasSuperElementAccess = hasSuperElementAccess;\n      capturedSuperProperties = /* @__PURE__ */ new Set();\n      hasSuperElementAccess = false;\n      let updated = visitFunctionBody(node.body, visitor, context);\n      const originalMethod = getOriginalNode(node, isFunctionLikeDeclaration);\n      const emitSuperHelpers = languageVersion >= 2 && resolver.getNodeCheckFlags(node) & (256 | 128) && (getFunctionFlags(originalMethod) & 3) !== 3;\n      if (emitSuperHelpers) {\n        enableSubstitutionForAsyncMethodsWithSuper();\n        if (capturedSuperProperties.size) {\n          const variableStatement = createSuperAccessVariableStatement(factory2, resolver, node, capturedSuperProperties);\n          substitutedSuperAccessors[getNodeId(variableStatement)] = true;\n          const statements = updated.statements.slice();\n          insertStatementsAfterStandardPrologue(statements, [variableStatement]);\n          updated = factory2.updateBlock(updated, statements);\n        }\n        if (hasSuperElementAccess) {\n          if (resolver.getNodeCheckFlags(node) & 256) {\n            addEmitHelper(updated, advancedAsyncSuperHelper);\n          } else if (resolver.getNodeCheckFlags(node) & 128) {\n            addEmitHelper(updated, asyncSuperHelper);\n          }\n        }\n      }\n      capturedSuperProperties = savedCapturedSuperProperties;\n      hasSuperElementAccess = savedHasSuperElementAccess;\n      return updated;\n    }\n    function transformAsyncFunctionBody(node) {\n      resumeLexicalEnvironment();\n      const original = getOriginalNode(node, isFunctionLike);\n      const nodeType = original.type;\n      const promiseConstructor = languageVersion < 2 ? getPromiseConstructor(nodeType) : void 0;\n      const isArrowFunction2 = node.kind === 216;\n      const hasLexicalArguments = (resolver.getNodeCheckFlags(node) & 512) !== 0;\n      const savedEnclosingFunctionParameterNames = enclosingFunctionParameterNames;\n      enclosingFunctionParameterNames = /* @__PURE__ */ new Set();\n      for (const parameter of node.parameters) {\n        recordDeclarationName(parameter, enclosingFunctionParameterNames);\n      }\n      const savedCapturedSuperProperties = capturedSuperProperties;\n      const savedHasSuperElementAccess = hasSuperElementAccess;\n      if (!isArrowFunction2) {\n        capturedSuperProperties = /* @__PURE__ */ new Set();\n        hasSuperElementAccess = false;\n      }\n      let result;\n      if (!isArrowFunction2) {\n        const statements = [];\n        const statementOffset = factory2.copyPrologue(node.body.statements, statements, false, visitor);\n        statements.push(factory2.createReturnStatement(emitHelpers().createAwaiterHelper(inHasLexicalThisContext(), hasLexicalArguments, promiseConstructor, transformAsyncFunctionBodyWorker(node.body, statementOffset))));\n        insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());\n        const emitSuperHelpers = languageVersion >= 2 && resolver.getNodeCheckFlags(node) & (256 | 128);\n        if (emitSuperHelpers) {\n          enableSubstitutionForAsyncMethodsWithSuper();\n          if (capturedSuperProperties.size) {\n            const variableStatement = createSuperAccessVariableStatement(factory2, resolver, node, capturedSuperProperties);\n            substitutedSuperAccessors[getNodeId(variableStatement)] = true;\n            insertStatementsAfterStandardPrologue(statements, [variableStatement]);\n          }\n        }\n        const block = factory2.createBlock(statements, true);\n        setTextRange(block, node.body);\n        if (emitSuperHelpers && hasSuperElementAccess) {\n          if (resolver.getNodeCheckFlags(node) & 256) {\n            addEmitHelper(block, advancedAsyncSuperHelper);\n          } else if (resolver.getNodeCheckFlags(node) & 128) {\n            addEmitHelper(block, asyncSuperHelper);\n          }\n        }\n        result = block;\n      } else {\n        const expression = emitHelpers().createAwaiterHelper(inHasLexicalThisContext(), hasLexicalArguments, promiseConstructor, transformAsyncFunctionBodyWorker(node.body));\n        const declarations = endLexicalEnvironment();\n        if (some(declarations)) {\n          const block = factory2.converters.convertToFunctionBlock(expression);\n          result = factory2.updateBlock(block, setTextRange(factory2.createNodeArray(concatenate(declarations, block.statements)), block.statements));\n        } else {\n          result = expression;\n        }\n      }\n      enclosingFunctionParameterNames = savedEnclosingFunctionParameterNames;\n      if (!isArrowFunction2) {\n        capturedSuperProperties = savedCapturedSuperProperties;\n        hasSuperElementAccess = savedHasSuperElementAccess;\n      }\n      return result;\n    }\n    function transformAsyncFunctionBodyWorker(body, start) {\n      if (isBlock(body)) {\n        return factory2.updateBlock(body, visitNodes2(body.statements, asyncBodyVisitor, isStatement, start));\n      } else {\n        return factory2.converters.convertToFunctionBlock(Debug.checkDefined(visitNode(body, asyncBodyVisitor, isConciseBody)));\n      }\n    }\n    function getPromiseConstructor(type) {\n      const typeName = type && getEntityNameFromTypeNode(type);\n      if (typeName && isEntityName(typeName)) {\n        const serializationKind = resolver.getTypeReferenceSerializationKind(typeName);\n        if (serializationKind === 1 || serializationKind === 0) {\n          return typeName;\n        }\n      }\n      return void 0;\n    }\n    function enableSubstitutionForAsyncMethodsWithSuper() {\n      if ((enabledSubstitutions & 1) === 0) {\n        enabledSubstitutions |= 1;\n        context.enableSubstitution(210);\n        context.enableSubstitution(208);\n        context.enableSubstitution(209);\n        context.enableEmitNotification(260);\n        context.enableEmitNotification(171);\n        context.enableEmitNotification(174);\n        context.enableEmitNotification(175);\n        context.enableEmitNotification(173);\n        context.enableEmitNotification(240);\n      }\n    }\n    function onEmitNode(hint, node, emitCallback) {\n      if (enabledSubstitutions & 1 && isSuperContainer(node)) {\n        const superContainerFlags = resolver.getNodeCheckFlags(node) & (128 | 256);\n        if (superContainerFlags !== enclosingSuperContainerFlags) {\n          const savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags;\n          enclosingSuperContainerFlags = superContainerFlags;\n          previousOnEmitNode(hint, node, emitCallback);\n          enclosingSuperContainerFlags = savedEnclosingSuperContainerFlags;\n          return;\n        }\n      } else if (enabledSubstitutions && substitutedSuperAccessors[getNodeId(node)]) {\n        const savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags;\n        enclosingSuperContainerFlags = 0;\n        previousOnEmitNode(hint, node, emitCallback);\n        enclosingSuperContainerFlags = savedEnclosingSuperContainerFlags;\n        return;\n      }\n      previousOnEmitNode(hint, node, emitCallback);\n    }\n    function onSubstituteNode(hint, node) {\n      node = previousOnSubstituteNode(hint, node);\n      if (hint === 1 && enclosingSuperContainerFlags) {\n        return substituteExpression(node);\n      }\n      return node;\n    }\n    function substituteExpression(node) {\n      switch (node.kind) {\n        case 208:\n          return substitutePropertyAccessExpression(node);\n        case 209:\n          return substituteElementAccessExpression(node);\n        case 210:\n          return substituteCallExpression(node);\n      }\n      return node;\n    }\n    function substitutePropertyAccessExpression(node) {\n      if (node.expression.kind === 106) {\n        return setTextRange(factory2.createPropertyAccessExpression(factory2.createUniqueName(\"_super\", 16 | 32), node.name), node);\n      }\n      return node;\n    }\n    function substituteElementAccessExpression(node) {\n      if (node.expression.kind === 106) {\n        return createSuperElementAccessInAsyncMethod(node.argumentExpression, node);\n      }\n      return node;\n    }\n    function substituteCallExpression(node) {\n      const expression = node.expression;\n      if (isSuperProperty(expression)) {\n        const argumentExpression = isPropertyAccessExpression(expression) ? substitutePropertyAccessExpression(expression) : substituteElementAccessExpression(expression);\n        return factory2.createCallExpression(factory2.createPropertyAccessExpression(argumentExpression, \"call\"), void 0, [\n          factory2.createThis(),\n          ...node.arguments\n        ]);\n      }\n      return node;\n    }\n    function isSuperContainer(node) {\n      const kind = node.kind;\n      return kind === 260 || kind === 173 || kind === 171 || kind === 174 || kind === 175;\n    }\n    function createSuperElementAccessInAsyncMethod(argumentExpression, location) {\n      if (enclosingSuperContainerFlags & 256) {\n        return setTextRange(factory2.createPropertyAccessExpression(factory2.createCallExpression(factory2.createUniqueName(\"_superIndex\", 16 | 32), void 0, [argumentExpression]), \"value\"), location);\n      } else {\n        return setTextRange(factory2.createCallExpression(factory2.createUniqueName(\"_superIndex\", 16 | 32), void 0, [argumentExpression]), location);\n      }\n    }\n  }\n  function createSuperAccessVariableStatement(factory2, resolver, node, names) {\n    const hasBinding = (resolver.getNodeCheckFlags(node) & 256) !== 0;\n    const accessors = [];\n    names.forEach((_, key) => {\n      const name = unescapeLeadingUnderscores(key);\n      const getterAndSetter = [];\n      getterAndSetter.push(factory2.createPropertyAssignment(\"get\", factory2.createArrowFunction(void 0, void 0, [], void 0, void 0, setEmitFlags(factory2.createPropertyAccessExpression(setEmitFlags(factory2.createSuper(), 8), name), 8))));\n      if (hasBinding) {\n        getterAndSetter.push(factory2.createPropertyAssignment(\"set\", factory2.createArrowFunction(void 0, void 0, [\n          factory2.createParameterDeclaration(void 0, void 0, \"v\", void 0, void 0, void 0)\n        ], void 0, void 0, factory2.createAssignment(setEmitFlags(factory2.createPropertyAccessExpression(setEmitFlags(factory2.createSuper(), 8), name), 8), factory2.createIdentifier(\"v\")))));\n      }\n      accessors.push(factory2.createPropertyAssignment(name, factory2.createObjectLiteralExpression(getterAndSetter)));\n    });\n    return factory2.createVariableStatement(void 0, factory2.createVariableDeclarationList([\n      factory2.createVariableDeclaration(factory2.createUniqueName(\"_super\", 16 | 32), void 0, void 0, factory2.createCallExpression(factory2.createPropertyAccessExpression(factory2.createIdentifier(\"Object\"), \"create\"), void 0, [\n        factory2.createNull(),\n        factory2.createObjectLiteralExpression(accessors, true)\n      ]))\n    ], 2));\n  }\n  var init_es2017 = __esm({\n    \"src/compiler/transformers/es2017.ts\"() {\n      \"use strict\";\n      init_ts2();\n    }\n  });\n  function transformES2018(context) {\n    const {\n      factory: factory2,\n      getEmitHelperFactory: emitHelpers,\n      resumeLexicalEnvironment,\n      endLexicalEnvironment,\n      hoistVariableDeclaration\n    } = context;\n    const resolver = context.getEmitResolver();\n    const compilerOptions = context.getCompilerOptions();\n    const languageVersion = getEmitScriptTarget(compilerOptions);\n    const previousOnEmitNode = context.onEmitNode;\n    context.onEmitNode = onEmitNode;\n    const previousOnSubstituteNode = context.onSubstituteNode;\n    context.onSubstituteNode = onSubstituteNode;\n    let exportedVariableStatement = false;\n    let enabledSubstitutions;\n    let enclosingFunctionFlags;\n    let parametersWithPrecedingObjectRestOrSpread;\n    let enclosingSuperContainerFlags = 0;\n    let hierarchyFacts = 0;\n    let currentSourceFile;\n    let taggedTemplateStringDeclarations;\n    let capturedSuperProperties;\n    let hasSuperElementAccess;\n    const substitutedSuperAccessors = [];\n    return chainBundle(context, transformSourceFile);\n    function affectsSubtree(excludeFacts, includeFacts) {\n      return hierarchyFacts !== (hierarchyFacts & ~excludeFacts | includeFacts);\n    }\n    function enterSubtree(excludeFacts, includeFacts) {\n      const ancestorFacts = hierarchyFacts;\n      hierarchyFacts = (hierarchyFacts & ~excludeFacts | includeFacts) & 3;\n      return ancestorFacts;\n    }\n    function exitSubtree(ancestorFacts) {\n      hierarchyFacts = ancestorFacts;\n    }\n    function recordTaggedTemplateString(temp) {\n      taggedTemplateStringDeclarations = append(taggedTemplateStringDeclarations, factory2.createVariableDeclaration(temp));\n    }\n    function transformSourceFile(node) {\n      if (node.isDeclarationFile) {\n        return node;\n      }\n      currentSourceFile = node;\n      const visited = visitSourceFile(node);\n      addEmitHelpers(visited, context.readEmitHelpers());\n      currentSourceFile = void 0;\n      taggedTemplateStringDeclarations = void 0;\n      return visited;\n    }\n    function visitor(node) {\n      return visitorWorker(node, false);\n    }\n    function visitorWithUnusedExpressionResult(node) {\n      return visitorWorker(node, true);\n    }\n    function visitorNoAsyncModifier(node) {\n      if (node.kind === 132) {\n        return void 0;\n      }\n      return node;\n    }\n    function doWithHierarchyFacts(cb, value, excludeFacts, includeFacts) {\n      if (affectsSubtree(excludeFacts, includeFacts)) {\n        const ancestorFacts = enterSubtree(excludeFacts, includeFacts);\n        const result = cb(value);\n        exitSubtree(ancestorFacts);\n        return result;\n      }\n      return cb(value);\n    }\n    function visitDefault(node) {\n      return visitEachChild(node, visitor, context);\n    }\n    function visitorWorker(node, expressionResultIsUnused2) {\n      if ((node.transformFlags & 128) === 0) {\n        return node;\n      }\n      switch (node.kind) {\n        case 220:\n          return visitAwaitExpression(node);\n        case 226:\n          return visitYieldExpression(node);\n        case 250:\n          return visitReturnStatement(node);\n        case 253:\n          return visitLabeledStatement(node);\n        case 207:\n          return visitObjectLiteralExpression(node);\n        case 223:\n          return visitBinaryExpression(node, expressionResultIsUnused2);\n        case 357:\n          return visitCommaListExpression(node, expressionResultIsUnused2);\n        case 295:\n          return visitCatchClause(node);\n        case 240:\n          return visitVariableStatement(node);\n        case 257:\n          return visitVariableDeclaration(node);\n        case 243:\n        case 244:\n        case 246:\n          return doWithHierarchyFacts(visitDefault, node, 0, 2);\n        case 247:\n          return visitForOfStatement(node, void 0);\n        case 245:\n          return doWithHierarchyFacts(visitForStatement, node, 0, 2);\n        case 219:\n          return visitVoidExpression(node);\n        case 173:\n          return doWithHierarchyFacts(visitConstructorDeclaration, node, 2, 1);\n        case 171:\n          return doWithHierarchyFacts(visitMethodDeclaration, node, 2, 1);\n        case 174:\n          return doWithHierarchyFacts(visitGetAccessorDeclaration, node, 2, 1);\n        case 175:\n          return doWithHierarchyFacts(visitSetAccessorDeclaration, node, 2, 1);\n        case 259:\n          return doWithHierarchyFacts(visitFunctionDeclaration, node, 2, 1);\n        case 215:\n          return doWithHierarchyFacts(visitFunctionExpression, node, 2, 1);\n        case 216:\n          return doWithHierarchyFacts(visitArrowFunction, node, 2, 0);\n        case 166:\n          return visitParameter(node);\n        case 241:\n          return visitExpressionStatement(node);\n        case 214:\n          return visitParenthesizedExpression(node, expressionResultIsUnused2);\n        case 212:\n          return visitTaggedTemplateExpression(node);\n        case 208:\n          if (capturedSuperProperties && isPropertyAccessExpression(node) && node.expression.kind === 106) {\n            capturedSuperProperties.add(node.name.escapedText);\n          }\n          return visitEachChild(node, visitor, context);\n        case 209:\n          if (capturedSuperProperties && node.expression.kind === 106) {\n            hasSuperElementAccess = true;\n          }\n          return visitEachChild(node, visitor, context);\n        case 260:\n        case 228:\n          return doWithHierarchyFacts(visitDefault, node, 2, 1);\n        default:\n          return visitEachChild(node, visitor, context);\n      }\n    }\n    function visitAwaitExpression(node) {\n      if (enclosingFunctionFlags & 2 && enclosingFunctionFlags & 1) {\n        return setOriginalNode(setTextRange(factory2.createYieldExpression(void 0, emitHelpers().createAwaitHelper(visitNode(node.expression, visitor, isExpression))), node), node);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitYieldExpression(node) {\n      if (enclosingFunctionFlags & 2 && enclosingFunctionFlags & 1) {\n        if (node.asteriskToken) {\n          const expression = visitNode(Debug.checkDefined(node.expression), visitor, isExpression);\n          return setOriginalNode(setTextRange(factory2.createYieldExpression(void 0, emitHelpers().createAwaitHelper(factory2.updateYieldExpression(node, node.asteriskToken, setTextRange(emitHelpers().createAsyncDelegatorHelper(setTextRange(emitHelpers().createAsyncValuesHelper(expression), expression)), expression)))), node), node);\n        }\n        return setOriginalNode(setTextRange(factory2.createYieldExpression(void 0, createDownlevelAwait(node.expression ? visitNode(node.expression, visitor, isExpression) : factory2.createVoidZero())), node), node);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitReturnStatement(node) {\n      if (enclosingFunctionFlags & 2 && enclosingFunctionFlags & 1) {\n        return factory2.updateReturnStatement(node, createDownlevelAwait(node.expression ? visitNode(node.expression, visitor, isExpression) : factory2.createVoidZero()));\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitLabeledStatement(node) {\n      if (enclosingFunctionFlags & 2) {\n        const statement = unwrapInnermostStatementOfLabel(node);\n        if (statement.kind === 247 && statement.awaitModifier) {\n          return visitForOfStatement(statement, node);\n        }\n        return factory2.restoreEnclosingLabel(visitNode(statement, visitor, isStatement, factory2.liftToBlock), node);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function chunkObjectLiteralElements(elements) {\n      let chunkObject;\n      const objects = [];\n      for (const e of elements) {\n        if (e.kind === 301) {\n          if (chunkObject) {\n            objects.push(factory2.createObjectLiteralExpression(chunkObject));\n            chunkObject = void 0;\n          }\n          const target = e.expression;\n          objects.push(visitNode(target, visitor, isExpression));\n        } else {\n          chunkObject = append(chunkObject, e.kind === 299 ? factory2.createPropertyAssignment(e.name, visitNode(e.initializer, visitor, isExpression)) : visitNode(e, visitor, isObjectLiteralElementLike));\n        }\n      }\n      if (chunkObject) {\n        objects.push(factory2.createObjectLiteralExpression(chunkObject));\n      }\n      return objects;\n    }\n    function visitObjectLiteralExpression(node) {\n      if (node.transformFlags & 65536) {\n        const objects = chunkObjectLiteralElements(node.properties);\n        if (objects.length && objects[0].kind !== 207) {\n          objects.unshift(factory2.createObjectLiteralExpression());\n        }\n        let expression = objects[0];\n        if (objects.length > 1) {\n          for (let i = 1; i < objects.length; i++) {\n            expression = emitHelpers().createAssignHelper([expression, objects[i]]);\n          }\n          return expression;\n        } else {\n          return emitHelpers().createAssignHelper(objects);\n        }\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitExpressionStatement(node) {\n      return visitEachChild(node, visitorWithUnusedExpressionResult, context);\n    }\n    function visitParenthesizedExpression(node, expressionResultIsUnused2) {\n      return visitEachChild(node, expressionResultIsUnused2 ? visitorWithUnusedExpressionResult : visitor, context);\n    }\n    function visitSourceFile(node) {\n      const ancestorFacts = enterSubtree(2, isEffectiveStrictModeSourceFile(node, compilerOptions) ? 0 : 1);\n      exportedVariableStatement = false;\n      const visited = visitEachChild(node, visitor, context);\n      const statement = concatenate(visited.statements, taggedTemplateStringDeclarations && [\n        factory2.createVariableStatement(void 0, factory2.createVariableDeclarationList(taggedTemplateStringDeclarations))\n      ]);\n      const result = factory2.updateSourceFile(visited, setTextRange(factory2.createNodeArray(statement), node.statements));\n      exitSubtree(ancestorFacts);\n      return result;\n    }\n    function visitTaggedTemplateExpression(node) {\n      return processTaggedTemplateExpression(context, node, visitor, currentSourceFile, recordTaggedTemplateString, 0);\n    }\n    function visitBinaryExpression(node, expressionResultIsUnused2) {\n      if (isDestructuringAssignment(node) && containsObjectRestOrSpread(node.left)) {\n        return flattenDestructuringAssignment(node, visitor, context, 1, !expressionResultIsUnused2);\n      }\n      if (node.operatorToken.kind === 27) {\n        return factory2.updateBinaryExpression(node, visitNode(node.left, visitorWithUnusedExpressionResult, isExpression), node.operatorToken, visitNode(node.right, expressionResultIsUnused2 ? visitorWithUnusedExpressionResult : visitor, isExpression));\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitCommaListExpression(node, expressionResultIsUnused2) {\n      if (expressionResultIsUnused2) {\n        return visitEachChild(node, visitorWithUnusedExpressionResult, context);\n      }\n      let result;\n      for (let i = 0; i < node.elements.length; i++) {\n        const element = node.elements[i];\n        const visited = visitNode(element, i < node.elements.length - 1 ? visitorWithUnusedExpressionResult : visitor, isExpression);\n        if (result || visited !== element) {\n          result || (result = node.elements.slice(0, i));\n          result.push(visited);\n        }\n      }\n      const elements = result ? setTextRange(factory2.createNodeArray(result), node.elements) : node.elements;\n      return factory2.updateCommaListExpression(node, elements);\n    }\n    function visitCatchClause(node) {\n      if (node.variableDeclaration && isBindingPattern(node.variableDeclaration.name) && node.variableDeclaration.name.transformFlags & 65536) {\n        const name = factory2.getGeneratedNameForNode(node.variableDeclaration.name);\n        const updatedDecl = factory2.updateVariableDeclaration(node.variableDeclaration, node.variableDeclaration.name, void 0, void 0, name);\n        const visitedBindings = flattenDestructuringBinding(updatedDecl, visitor, context, 1);\n        let block = visitNode(node.block, visitor, isBlock);\n        if (some(visitedBindings)) {\n          block = factory2.updateBlock(block, [\n            factory2.createVariableStatement(void 0, visitedBindings),\n            ...block.statements\n          ]);\n        }\n        return factory2.updateCatchClause(node, factory2.updateVariableDeclaration(node.variableDeclaration, name, void 0, void 0, void 0), block);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitVariableStatement(node) {\n      if (hasSyntacticModifier(node, 1)) {\n        const savedExportedVariableStatement = exportedVariableStatement;\n        exportedVariableStatement = true;\n        const visited = visitEachChild(node, visitor, context);\n        exportedVariableStatement = savedExportedVariableStatement;\n        return visited;\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitVariableDeclaration(node) {\n      if (exportedVariableStatement) {\n        const savedExportedVariableStatement = exportedVariableStatement;\n        exportedVariableStatement = false;\n        const visited = visitVariableDeclarationWorker(node, true);\n        exportedVariableStatement = savedExportedVariableStatement;\n        return visited;\n      }\n      return visitVariableDeclarationWorker(node, false);\n    }\n    function visitVariableDeclarationWorker(node, exportedVariableStatement2) {\n      if (isBindingPattern(node.name) && node.name.transformFlags & 65536) {\n        return flattenDestructuringBinding(node, visitor, context, 1, void 0, exportedVariableStatement2);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitForStatement(node) {\n      return factory2.updateForStatement(node, visitNode(node.initializer, visitorWithUnusedExpressionResult, isForInitializer), visitNode(node.condition, visitor, isExpression), visitNode(node.incrementor, visitorWithUnusedExpressionResult, isExpression), visitIterationBody(node.statement, visitor, context));\n    }\n    function visitVoidExpression(node) {\n      return visitEachChild(node, visitorWithUnusedExpressionResult, context);\n    }\n    function visitForOfStatement(node, outermostLabeledStatement) {\n      const ancestorFacts = enterSubtree(0, 2);\n      if (node.initializer.transformFlags & 65536 || isAssignmentPattern(node.initializer) && containsObjectRestOrSpread(node.initializer)) {\n        node = transformForOfStatementWithObjectRest(node);\n      }\n      const result = node.awaitModifier ? transformForAwaitOfStatement(node, outermostLabeledStatement, ancestorFacts) : factory2.restoreEnclosingLabel(visitEachChild(node, visitor, context), outermostLabeledStatement);\n      exitSubtree(ancestorFacts);\n      return result;\n    }\n    function transformForOfStatementWithObjectRest(node) {\n      const initializerWithoutParens = skipParentheses(node.initializer);\n      if (isVariableDeclarationList(initializerWithoutParens) || isAssignmentPattern(initializerWithoutParens)) {\n        let bodyLocation;\n        let statementsLocation;\n        const temp = factory2.createTempVariable(void 0);\n        const statements = [createForOfBindingStatement(factory2, initializerWithoutParens, temp)];\n        if (isBlock(node.statement)) {\n          addRange(statements, node.statement.statements);\n          bodyLocation = node.statement;\n          statementsLocation = node.statement.statements;\n        } else if (node.statement) {\n          append(statements, node.statement);\n          bodyLocation = node.statement;\n          statementsLocation = node.statement;\n        }\n        return factory2.updateForOfStatement(node, node.awaitModifier, setTextRange(factory2.createVariableDeclarationList([\n          setTextRange(factory2.createVariableDeclaration(temp), node.initializer)\n        ], 1), node.initializer), node.expression, setTextRange(factory2.createBlock(setTextRange(factory2.createNodeArray(statements), statementsLocation), true), bodyLocation));\n      }\n      return node;\n    }\n    function convertForOfStatementHead(node, boundValue, nonUserCode) {\n      const value = factory2.createTempVariable(hoistVariableDeclaration);\n      const iteratorValueExpression = factory2.createAssignment(value, boundValue);\n      const iteratorValueStatement = factory2.createExpressionStatement(iteratorValueExpression);\n      setSourceMapRange(iteratorValueStatement, node.expression);\n      const exitNonUserCodeExpression = factory2.createAssignment(nonUserCode, factory2.createFalse());\n      const exitNonUserCodeStatement = factory2.createExpressionStatement(exitNonUserCodeExpression);\n      setSourceMapRange(exitNonUserCodeStatement, node.expression);\n      const enterNonUserCodeExpression = factory2.createAssignment(nonUserCode, factory2.createTrue());\n      const enterNonUserCodeStatement = factory2.createExpressionStatement(enterNonUserCodeExpression);\n      setSourceMapRange(exitNonUserCodeStatement, node.expression);\n      const statements = [];\n      const binding = createForOfBindingStatement(factory2, node.initializer, value);\n      statements.push(visitNode(binding, visitor, isStatement));\n      let bodyLocation;\n      let statementsLocation;\n      const statement = visitIterationBody(node.statement, visitor, context);\n      if (isBlock(statement)) {\n        addRange(statements, statement.statements);\n        bodyLocation = statement;\n        statementsLocation = statement.statements;\n      } else {\n        statements.push(statement);\n      }\n      const body = setEmitFlags(setTextRange(factory2.createBlock(setTextRange(factory2.createNodeArray(statements), statementsLocation), true), bodyLocation), 96 | 768);\n      return factory2.createBlock([\n        iteratorValueStatement,\n        exitNonUserCodeStatement,\n        factory2.createTryStatement(body, void 0, factory2.createBlock([\n          enterNonUserCodeStatement\n        ]))\n      ]);\n    }\n    function createDownlevelAwait(expression) {\n      return enclosingFunctionFlags & 1 ? factory2.createYieldExpression(void 0, emitHelpers().createAwaitHelper(expression)) : factory2.createAwaitExpression(expression);\n    }\n    function transformForAwaitOfStatement(node, outermostLabeledStatement, ancestorFacts) {\n      const expression = visitNode(node.expression, visitor, isExpression);\n      const iterator = isIdentifier(expression) ? factory2.getGeneratedNameForNode(expression) : factory2.createTempVariable(void 0);\n      const result = isIdentifier(expression) ? factory2.getGeneratedNameForNode(iterator) : factory2.createTempVariable(void 0);\n      const nonUserCode = factory2.createTempVariable(void 0);\n      const done = factory2.createTempVariable(hoistVariableDeclaration);\n      const errorRecord = factory2.createUniqueName(\"e\");\n      const catchVariable = factory2.getGeneratedNameForNode(errorRecord);\n      const returnMethod = factory2.createTempVariable(void 0);\n      const callValues = setTextRange(emitHelpers().createAsyncValuesHelper(expression), node.expression);\n      const callNext = factory2.createCallExpression(factory2.createPropertyAccessExpression(iterator, \"next\"), void 0, []);\n      const getDone = factory2.createPropertyAccessExpression(result, \"done\");\n      const getValue = factory2.createPropertyAccessExpression(result, \"value\");\n      const callReturn = factory2.createFunctionCallCall(returnMethod, iterator, []);\n      hoistVariableDeclaration(errorRecord);\n      hoistVariableDeclaration(returnMethod);\n      const initializer = ancestorFacts & 2 ? factory2.inlineExpressions([factory2.createAssignment(errorRecord, factory2.createVoidZero()), callValues]) : callValues;\n      const forStatement = setEmitFlags(setTextRange(factory2.createForStatement(setEmitFlags(setTextRange(factory2.createVariableDeclarationList([\n        factory2.createVariableDeclaration(nonUserCode, void 0, void 0, factory2.createTrue()),\n        setTextRange(factory2.createVariableDeclaration(iterator, void 0, void 0, initializer), node.expression),\n        factory2.createVariableDeclaration(result)\n      ]), node.expression), 4194304), factory2.inlineExpressions([\n        factory2.createAssignment(result, createDownlevelAwait(callNext)),\n        factory2.createAssignment(done, getDone),\n        factory2.createLogicalNot(done)\n      ]), void 0, convertForOfStatementHead(node, getValue, nonUserCode)), node), 512);\n      setOriginalNode(forStatement, node);\n      return factory2.createTryStatement(factory2.createBlock([\n        factory2.restoreEnclosingLabel(forStatement, outermostLabeledStatement)\n      ]), factory2.createCatchClause(factory2.createVariableDeclaration(catchVariable), setEmitFlags(factory2.createBlock([\n        factory2.createExpressionStatement(factory2.createAssignment(errorRecord, factory2.createObjectLiteralExpression([\n          factory2.createPropertyAssignment(\"error\", catchVariable)\n        ])))\n      ]), 1)), factory2.createBlock([\n        factory2.createTryStatement(factory2.createBlock([\n          setEmitFlags(factory2.createIfStatement(factory2.createLogicalAnd(factory2.createLogicalAnd(factory2.createLogicalNot(nonUserCode), factory2.createLogicalNot(done)), factory2.createAssignment(returnMethod, factory2.createPropertyAccessExpression(iterator, \"return\"))), factory2.createExpressionStatement(createDownlevelAwait(callReturn))), 1)\n        ]), void 0, setEmitFlags(factory2.createBlock([\n          setEmitFlags(factory2.createIfStatement(errorRecord, factory2.createThrowStatement(factory2.createPropertyAccessExpression(errorRecord, \"error\"))), 1)\n        ]), 1))\n      ]));\n    }\n    function parameterVisitor(node) {\n      Debug.assertNode(node, isParameter);\n      return visitParameter(node);\n    }\n    function visitParameter(node) {\n      if (parametersWithPrecedingObjectRestOrSpread == null ? void 0 : parametersWithPrecedingObjectRestOrSpread.has(node)) {\n        return factory2.updateParameterDeclaration(node, void 0, node.dotDotDotToken, isBindingPattern(node.name) ? factory2.getGeneratedNameForNode(node) : node.name, void 0, void 0, void 0);\n      }\n      if (node.transformFlags & 65536) {\n        return factory2.updateParameterDeclaration(node, void 0, node.dotDotDotToken, factory2.getGeneratedNameForNode(node), void 0, void 0, visitNode(node.initializer, visitor, isExpression));\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function collectParametersWithPrecedingObjectRestOrSpread(node) {\n      let parameters;\n      for (const parameter of node.parameters) {\n        if (parameters) {\n          parameters.add(parameter);\n        } else if (parameter.transformFlags & 65536) {\n          parameters = /* @__PURE__ */ new Set();\n        }\n      }\n      return parameters;\n    }\n    function visitConstructorDeclaration(node) {\n      const savedEnclosingFunctionFlags = enclosingFunctionFlags;\n      const savedParametersWithPrecedingObjectRestOrSpread = parametersWithPrecedingObjectRestOrSpread;\n      enclosingFunctionFlags = getFunctionFlags(node);\n      parametersWithPrecedingObjectRestOrSpread = collectParametersWithPrecedingObjectRestOrSpread(node);\n      const updated = factory2.updateConstructorDeclaration(node, node.modifiers, visitParameterList(node.parameters, parameterVisitor, context), transformFunctionBody2(node));\n      enclosingFunctionFlags = savedEnclosingFunctionFlags;\n      parametersWithPrecedingObjectRestOrSpread = savedParametersWithPrecedingObjectRestOrSpread;\n      return updated;\n    }\n    function visitGetAccessorDeclaration(node) {\n      const savedEnclosingFunctionFlags = enclosingFunctionFlags;\n      const savedParametersWithPrecedingObjectRestOrSpread = parametersWithPrecedingObjectRestOrSpread;\n      enclosingFunctionFlags = getFunctionFlags(node);\n      parametersWithPrecedingObjectRestOrSpread = collectParametersWithPrecedingObjectRestOrSpread(node);\n      const updated = factory2.updateGetAccessorDeclaration(node, node.modifiers, visitNode(node.name, visitor, isPropertyName), visitParameterList(node.parameters, parameterVisitor, context), void 0, transformFunctionBody2(node));\n      enclosingFunctionFlags = savedEnclosingFunctionFlags;\n      parametersWithPrecedingObjectRestOrSpread = savedParametersWithPrecedingObjectRestOrSpread;\n      return updated;\n    }\n    function visitSetAccessorDeclaration(node) {\n      const savedEnclosingFunctionFlags = enclosingFunctionFlags;\n      const savedParametersWithPrecedingObjectRestOrSpread = parametersWithPrecedingObjectRestOrSpread;\n      enclosingFunctionFlags = getFunctionFlags(node);\n      parametersWithPrecedingObjectRestOrSpread = collectParametersWithPrecedingObjectRestOrSpread(node);\n      const updated = factory2.updateSetAccessorDeclaration(node, node.modifiers, visitNode(node.name, visitor, isPropertyName), visitParameterList(node.parameters, parameterVisitor, context), transformFunctionBody2(node));\n      enclosingFunctionFlags = savedEnclosingFunctionFlags;\n      parametersWithPrecedingObjectRestOrSpread = savedParametersWithPrecedingObjectRestOrSpread;\n      return updated;\n    }\n    function visitMethodDeclaration(node) {\n      const savedEnclosingFunctionFlags = enclosingFunctionFlags;\n      const savedParametersWithPrecedingObjectRestOrSpread = parametersWithPrecedingObjectRestOrSpread;\n      enclosingFunctionFlags = getFunctionFlags(node);\n      parametersWithPrecedingObjectRestOrSpread = collectParametersWithPrecedingObjectRestOrSpread(node);\n      const updated = factory2.updateMethodDeclaration(node, enclosingFunctionFlags & 1 ? visitNodes2(node.modifiers, visitorNoAsyncModifier, isModifierLike) : node.modifiers, enclosingFunctionFlags & 2 ? void 0 : node.asteriskToken, visitNode(node.name, visitor, isPropertyName), visitNode(void 0, visitor, isQuestionToken), void 0, visitParameterList(node.parameters, parameterVisitor, context), void 0, enclosingFunctionFlags & 2 && enclosingFunctionFlags & 1 ? transformAsyncGeneratorFunctionBody(node) : transformFunctionBody2(node));\n      enclosingFunctionFlags = savedEnclosingFunctionFlags;\n      parametersWithPrecedingObjectRestOrSpread = savedParametersWithPrecedingObjectRestOrSpread;\n      return updated;\n    }\n    function visitFunctionDeclaration(node) {\n      const savedEnclosingFunctionFlags = enclosingFunctionFlags;\n      const savedParametersWithPrecedingObjectRestOrSpread = parametersWithPrecedingObjectRestOrSpread;\n      enclosingFunctionFlags = getFunctionFlags(node);\n      parametersWithPrecedingObjectRestOrSpread = collectParametersWithPrecedingObjectRestOrSpread(node);\n      const updated = factory2.updateFunctionDeclaration(node, enclosingFunctionFlags & 1 ? visitNodes2(node.modifiers, visitorNoAsyncModifier, isModifier) : node.modifiers, enclosingFunctionFlags & 2 ? void 0 : node.asteriskToken, node.name, void 0, visitParameterList(node.parameters, parameterVisitor, context), void 0, enclosingFunctionFlags & 2 && enclosingFunctionFlags & 1 ? transformAsyncGeneratorFunctionBody(node) : transformFunctionBody2(node));\n      enclosingFunctionFlags = savedEnclosingFunctionFlags;\n      parametersWithPrecedingObjectRestOrSpread = savedParametersWithPrecedingObjectRestOrSpread;\n      return updated;\n    }\n    function visitArrowFunction(node) {\n      const savedEnclosingFunctionFlags = enclosingFunctionFlags;\n      const savedParametersWithPrecedingObjectRestOrSpread = parametersWithPrecedingObjectRestOrSpread;\n      enclosingFunctionFlags = getFunctionFlags(node);\n      parametersWithPrecedingObjectRestOrSpread = collectParametersWithPrecedingObjectRestOrSpread(node);\n      const updated = factory2.updateArrowFunction(node, node.modifiers, void 0, visitParameterList(node.parameters, parameterVisitor, context), void 0, node.equalsGreaterThanToken, transformFunctionBody2(node));\n      enclosingFunctionFlags = savedEnclosingFunctionFlags;\n      parametersWithPrecedingObjectRestOrSpread = savedParametersWithPrecedingObjectRestOrSpread;\n      return updated;\n    }\n    function visitFunctionExpression(node) {\n      const savedEnclosingFunctionFlags = enclosingFunctionFlags;\n      const savedParametersWithPrecedingObjectRestOrSpread = parametersWithPrecedingObjectRestOrSpread;\n      enclosingFunctionFlags = getFunctionFlags(node);\n      parametersWithPrecedingObjectRestOrSpread = collectParametersWithPrecedingObjectRestOrSpread(node);\n      const updated = factory2.updateFunctionExpression(node, enclosingFunctionFlags & 1 ? visitNodes2(node.modifiers, visitorNoAsyncModifier, isModifier) : node.modifiers, enclosingFunctionFlags & 2 ? void 0 : node.asteriskToken, node.name, void 0, visitParameterList(node.parameters, parameterVisitor, context), void 0, enclosingFunctionFlags & 2 && enclosingFunctionFlags & 1 ? transformAsyncGeneratorFunctionBody(node) : transformFunctionBody2(node));\n      enclosingFunctionFlags = savedEnclosingFunctionFlags;\n      parametersWithPrecedingObjectRestOrSpread = savedParametersWithPrecedingObjectRestOrSpread;\n      return updated;\n    }\n    function transformAsyncGeneratorFunctionBody(node) {\n      resumeLexicalEnvironment();\n      const statements = [];\n      const statementOffset = factory2.copyPrologue(node.body.statements, statements, false, visitor);\n      appendObjectRestAssignmentsIfNeeded(statements, node);\n      const savedCapturedSuperProperties = capturedSuperProperties;\n      const savedHasSuperElementAccess = hasSuperElementAccess;\n      capturedSuperProperties = /* @__PURE__ */ new Set();\n      hasSuperElementAccess = false;\n      const returnStatement = factory2.createReturnStatement(emitHelpers().createAsyncGeneratorHelper(factory2.createFunctionExpression(void 0, factory2.createToken(41), node.name && factory2.getGeneratedNameForNode(node.name), void 0, [], void 0, factory2.updateBlock(node.body, visitLexicalEnvironment(node.body.statements, visitor, context, statementOffset))), !!(hierarchyFacts & 1)));\n      const emitSuperHelpers = languageVersion >= 2 && resolver.getNodeCheckFlags(node) & (256 | 128);\n      if (emitSuperHelpers) {\n        enableSubstitutionForAsyncMethodsWithSuper();\n        const variableStatement = createSuperAccessVariableStatement(factory2, resolver, node, capturedSuperProperties);\n        substitutedSuperAccessors[getNodeId(variableStatement)] = true;\n        insertStatementsAfterStandardPrologue(statements, [variableStatement]);\n      }\n      statements.push(returnStatement);\n      insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());\n      const block = factory2.updateBlock(node.body, statements);\n      if (emitSuperHelpers && hasSuperElementAccess) {\n        if (resolver.getNodeCheckFlags(node) & 256) {\n          addEmitHelper(block, advancedAsyncSuperHelper);\n        } else if (resolver.getNodeCheckFlags(node) & 128) {\n          addEmitHelper(block, asyncSuperHelper);\n        }\n      }\n      capturedSuperProperties = savedCapturedSuperProperties;\n      hasSuperElementAccess = savedHasSuperElementAccess;\n      return block;\n    }\n    function transformFunctionBody2(node) {\n      var _a2;\n      resumeLexicalEnvironment();\n      let statementOffset = 0;\n      const statements = [];\n      const body = (_a2 = visitNode(node.body, visitor, isConciseBody)) != null ? _a2 : factory2.createBlock([]);\n      if (isBlock(body)) {\n        statementOffset = factory2.copyPrologue(body.statements, statements, false, visitor);\n      }\n      addRange(statements, appendObjectRestAssignmentsIfNeeded(void 0, node));\n      const leadingStatements = endLexicalEnvironment();\n      if (statementOffset > 0 || some(statements) || some(leadingStatements)) {\n        const block = factory2.converters.convertToFunctionBlock(body, true);\n        insertStatementsAfterStandardPrologue(statements, leadingStatements);\n        addRange(statements, block.statements.slice(statementOffset));\n        return factory2.updateBlock(block, setTextRange(factory2.createNodeArray(statements), block.statements));\n      }\n      return body;\n    }\n    function appendObjectRestAssignmentsIfNeeded(statements, node) {\n      let containsPrecedingObjectRestOrSpread = false;\n      for (const parameter of node.parameters) {\n        if (containsPrecedingObjectRestOrSpread) {\n          if (isBindingPattern(parameter.name)) {\n            if (parameter.name.elements.length > 0) {\n              const declarations = flattenDestructuringBinding(parameter, visitor, context, 0, factory2.getGeneratedNameForNode(parameter));\n              if (some(declarations)) {\n                const declarationList = factory2.createVariableDeclarationList(declarations);\n                const statement = factory2.createVariableStatement(void 0, declarationList);\n                setEmitFlags(statement, 2097152);\n                statements = append(statements, statement);\n              }\n            } else if (parameter.initializer) {\n              const name = factory2.getGeneratedNameForNode(parameter);\n              const initializer = visitNode(parameter.initializer, visitor, isExpression);\n              const assignment = factory2.createAssignment(name, initializer);\n              const statement = factory2.createExpressionStatement(assignment);\n              setEmitFlags(statement, 2097152);\n              statements = append(statements, statement);\n            }\n          } else if (parameter.initializer) {\n            const name = factory2.cloneNode(parameter.name);\n            setTextRange(name, parameter.name);\n            setEmitFlags(name, 96);\n            const initializer = visitNode(parameter.initializer, visitor, isExpression);\n            addEmitFlags(initializer, 96 | 3072);\n            const assignment = factory2.createAssignment(name, initializer);\n            setTextRange(assignment, parameter);\n            setEmitFlags(assignment, 3072);\n            const block = factory2.createBlock([factory2.createExpressionStatement(assignment)]);\n            setTextRange(block, parameter);\n            setEmitFlags(block, 1 | 64 | 768 | 3072);\n            const typeCheck = factory2.createTypeCheck(factory2.cloneNode(parameter.name), \"undefined\");\n            const statement = factory2.createIfStatement(typeCheck, block);\n            startOnNewLine(statement);\n            setTextRange(statement, parameter);\n            setEmitFlags(statement, 768 | 64 | 2097152 | 3072);\n            statements = append(statements, statement);\n          }\n        } else if (parameter.transformFlags & 65536) {\n          containsPrecedingObjectRestOrSpread = true;\n          const declarations = flattenDestructuringBinding(parameter, visitor, context, 1, factory2.getGeneratedNameForNode(parameter), false, true);\n          if (some(declarations)) {\n            const declarationList = factory2.createVariableDeclarationList(declarations);\n            const statement = factory2.createVariableStatement(void 0, declarationList);\n            setEmitFlags(statement, 2097152);\n            statements = append(statements, statement);\n          }\n        }\n      }\n      return statements;\n    }\n    function enableSubstitutionForAsyncMethodsWithSuper() {\n      if ((enabledSubstitutions & 1) === 0) {\n        enabledSubstitutions |= 1;\n        context.enableSubstitution(210);\n        context.enableSubstitution(208);\n        context.enableSubstitution(209);\n        context.enableEmitNotification(260);\n        context.enableEmitNotification(171);\n        context.enableEmitNotification(174);\n        context.enableEmitNotification(175);\n        context.enableEmitNotification(173);\n        context.enableEmitNotification(240);\n      }\n    }\n    function onEmitNode(hint, node, emitCallback) {\n      if (enabledSubstitutions & 1 && isSuperContainer(node)) {\n        const superContainerFlags = resolver.getNodeCheckFlags(node) & (128 | 256);\n        if (superContainerFlags !== enclosingSuperContainerFlags) {\n          const savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags;\n          enclosingSuperContainerFlags = superContainerFlags;\n          previousOnEmitNode(hint, node, emitCallback);\n          enclosingSuperContainerFlags = savedEnclosingSuperContainerFlags;\n          return;\n        }\n      } else if (enabledSubstitutions && substitutedSuperAccessors[getNodeId(node)]) {\n        const savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags;\n        enclosingSuperContainerFlags = 0;\n        previousOnEmitNode(hint, node, emitCallback);\n        enclosingSuperContainerFlags = savedEnclosingSuperContainerFlags;\n        return;\n      }\n      previousOnEmitNode(hint, node, emitCallback);\n    }\n    function onSubstituteNode(hint, node) {\n      node = previousOnSubstituteNode(hint, node);\n      if (hint === 1 && enclosingSuperContainerFlags) {\n        return substituteExpression(node);\n      }\n      return node;\n    }\n    function substituteExpression(node) {\n      switch (node.kind) {\n        case 208:\n          return substitutePropertyAccessExpression(node);\n        case 209:\n          return substituteElementAccessExpression(node);\n        case 210:\n          return substituteCallExpression(node);\n      }\n      return node;\n    }\n    function substitutePropertyAccessExpression(node) {\n      if (node.expression.kind === 106) {\n        return setTextRange(factory2.createPropertyAccessExpression(factory2.createUniqueName(\"_super\", 16 | 32), node.name), node);\n      }\n      return node;\n    }\n    function substituteElementAccessExpression(node) {\n      if (node.expression.kind === 106) {\n        return createSuperElementAccessInAsyncMethod(node.argumentExpression, node);\n      }\n      return node;\n    }\n    function substituteCallExpression(node) {\n      const expression = node.expression;\n      if (isSuperProperty(expression)) {\n        const argumentExpression = isPropertyAccessExpression(expression) ? substitutePropertyAccessExpression(expression) : substituteElementAccessExpression(expression);\n        return factory2.createCallExpression(factory2.createPropertyAccessExpression(argumentExpression, \"call\"), void 0, [\n          factory2.createThis(),\n          ...node.arguments\n        ]);\n      }\n      return node;\n    }\n    function isSuperContainer(node) {\n      const kind = node.kind;\n      return kind === 260 || kind === 173 || kind === 171 || kind === 174 || kind === 175;\n    }\n    function createSuperElementAccessInAsyncMethod(argumentExpression, location) {\n      if (enclosingSuperContainerFlags & 256) {\n        return setTextRange(factory2.createPropertyAccessExpression(factory2.createCallExpression(factory2.createIdentifier(\"_superIndex\"), void 0, [argumentExpression]), \"value\"), location);\n      } else {\n        return setTextRange(factory2.createCallExpression(factory2.createIdentifier(\"_superIndex\"), void 0, [argumentExpression]), location);\n      }\n    }\n  }\n  var init_es2018 = __esm({\n    \"src/compiler/transformers/es2018.ts\"() {\n      \"use strict\";\n      init_ts2();\n    }\n  });\n  function transformES2019(context) {\n    const factory2 = context.factory;\n    return chainBundle(context, transformSourceFile);\n    function transformSourceFile(node) {\n      if (node.isDeclarationFile) {\n        return node;\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitor(node) {\n      if ((node.transformFlags & 64) === 0) {\n        return node;\n      }\n      switch (node.kind) {\n        case 295:\n          return visitCatchClause(node);\n        default:\n          return visitEachChild(node, visitor, context);\n      }\n    }\n    function visitCatchClause(node) {\n      if (!node.variableDeclaration) {\n        return factory2.updateCatchClause(node, factory2.createVariableDeclaration(factory2.createTempVariable(void 0)), visitNode(node.block, visitor, isBlock));\n      }\n      return visitEachChild(node, visitor, context);\n    }\n  }\n  var init_es2019 = __esm({\n    \"src/compiler/transformers/es2019.ts\"() {\n      \"use strict\";\n      init_ts2();\n    }\n  });\n  function transformES2020(context) {\n    const {\n      factory: factory2,\n      hoistVariableDeclaration\n    } = context;\n    return chainBundle(context, transformSourceFile);\n    function transformSourceFile(node) {\n      if (node.isDeclarationFile) {\n        return node;\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitor(node) {\n      if ((node.transformFlags & 32) === 0) {\n        return node;\n      }\n      switch (node.kind) {\n        case 210: {\n          const updated = visitNonOptionalCallExpression(node, false);\n          Debug.assertNotNode(updated, isSyntheticReference);\n          return updated;\n        }\n        case 208:\n        case 209:\n          if (isOptionalChain(node)) {\n            const updated = visitOptionalExpression(node, false, false);\n            Debug.assertNotNode(updated, isSyntheticReference);\n            return updated;\n          }\n          return visitEachChild(node, visitor, context);\n        case 223:\n          if (node.operatorToken.kind === 60) {\n            return transformNullishCoalescingExpression(node);\n          }\n          return visitEachChild(node, visitor, context);\n        case 217:\n          return visitDeleteExpression(node);\n        default:\n          return visitEachChild(node, visitor, context);\n      }\n    }\n    function flattenChain(chain) {\n      Debug.assertNotNode(chain, isNonNullChain);\n      const links = [chain];\n      while (!chain.questionDotToken && !isTaggedTemplateExpression(chain)) {\n        chain = cast(skipPartiallyEmittedExpressions(chain.expression), isOptionalChain);\n        Debug.assertNotNode(chain, isNonNullChain);\n        links.unshift(chain);\n      }\n      return { expression: chain.expression, chain: links };\n    }\n    function visitNonOptionalParenthesizedExpression(node, captureThisArg, isDelete) {\n      const expression = visitNonOptionalExpression(node.expression, captureThisArg, isDelete);\n      if (isSyntheticReference(expression)) {\n        return factory2.createSyntheticReferenceExpression(factory2.updateParenthesizedExpression(node, expression.expression), expression.thisArg);\n      }\n      return factory2.updateParenthesizedExpression(node, expression);\n    }\n    function visitNonOptionalPropertyOrElementAccessExpression(node, captureThisArg, isDelete) {\n      if (isOptionalChain(node)) {\n        return visitOptionalExpression(node, captureThisArg, isDelete);\n      }\n      let expression = visitNode(node.expression, visitor, isExpression);\n      Debug.assertNotNode(expression, isSyntheticReference);\n      let thisArg;\n      if (captureThisArg) {\n        if (!isSimpleCopiableExpression(expression)) {\n          thisArg = factory2.createTempVariable(hoistVariableDeclaration);\n          expression = factory2.createAssignment(thisArg, expression);\n        } else {\n          thisArg = expression;\n        }\n      }\n      expression = node.kind === 208 ? factory2.updatePropertyAccessExpression(node, expression, visitNode(node.name, visitor, isIdentifier)) : factory2.updateElementAccessExpression(node, expression, visitNode(node.argumentExpression, visitor, isExpression));\n      return thisArg ? factory2.createSyntheticReferenceExpression(expression, thisArg) : expression;\n    }\n    function visitNonOptionalCallExpression(node, captureThisArg) {\n      if (isOptionalChain(node)) {\n        return visitOptionalExpression(node, captureThisArg, false);\n      }\n      if (isParenthesizedExpression(node.expression) && isOptionalChain(skipParentheses(node.expression))) {\n        const expression = visitNonOptionalParenthesizedExpression(node.expression, true, false);\n        const args = visitNodes2(node.arguments, visitor, isExpression);\n        if (isSyntheticReference(expression)) {\n          return setTextRange(factory2.createFunctionCallCall(expression.expression, expression.thisArg, args), node);\n        }\n        return factory2.updateCallExpression(node, expression, void 0, args);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitNonOptionalExpression(node, captureThisArg, isDelete) {\n      switch (node.kind) {\n        case 214:\n          return visitNonOptionalParenthesizedExpression(node, captureThisArg, isDelete);\n        case 208:\n        case 209:\n          return visitNonOptionalPropertyOrElementAccessExpression(node, captureThisArg, isDelete);\n        case 210:\n          return visitNonOptionalCallExpression(node, captureThisArg);\n        default:\n          return visitNode(node, visitor, isExpression);\n      }\n    }\n    function visitOptionalExpression(node, captureThisArg, isDelete) {\n      const { expression, chain } = flattenChain(node);\n      const left = visitNonOptionalExpression(skipPartiallyEmittedExpressions(expression), isCallChain(chain[0]), false);\n      let leftThisArg = isSyntheticReference(left) ? left.thisArg : void 0;\n      let capturedLeft = isSyntheticReference(left) ? left.expression : left;\n      let leftExpression = factory2.restoreOuterExpressions(expression, capturedLeft, 8);\n      if (!isSimpleCopiableExpression(capturedLeft)) {\n        capturedLeft = factory2.createTempVariable(hoistVariableDeclaration);\n        leftExpression = factory2.createAssignment(capturedLeft, leftExpression);\n      }\n      let rightExpression = capturedLeft;\n      let thisArg;\n      for (let i = 0; i < chain.length; i++) {\n        const segment = chain[i];\n        switch (segment.kind) {\n          case 208:\n          case 209:\n            if (i === chain.length - 1 && captureThisArg) {\n              if (!isSimpleCopiableExpression(rightExpression)) {\n                thisArg = factory2.createTempVariable(hoistVariableDeclaration);\n                rightExpression = factory2.createAssignment(thisArg, rightExpression);\n              } else {\n                thisArg = rightExpression;\n              }\n            }\n            rightExpression = segment.kind === 208 ? factory2.createPropertyAccessExpression(rightExpression, visitNode(segment.name, visitor, isIdentifier)) : factory2.createElementAccessExpression(rightExpression, visitNode(segment.argumentExpression, visitor, isExpression));\n            break;\n          case 210:\n            if (i === 0 && leftThisArg) {\n              if (!isGeneratedIdentifier(leftThisArg)) {\n                leftThisArg = factory2.cloneNode(leftThisArg);\n                addEmitFlags(leftThisArg, 3072);\n              }\n              rightExpression = factory2.createFunctionCallCall(rightExpression, leftThisArg.kind === 106 ? factory2.createThis() : leftThisArg, visitNodes2(segment.arguments, visitor, isExpression));\n            } else {\n              rightExpression = factory2.createCallExpression(rightExpression, void 0, visitNodes2(segment.arguments, visitor, isExpression));\n            }\n            break;\n        }\n        setOriginalNode(rightExpression, segment);\n      }\n      const target = isDelete ? factory2.createConditionalExpression(createNotNullCondition(leftExpression, capturedLeft, true), void 0, factory2.createTrue(), void 0, factory2.createDeleteExpression(rightExpression)) : factory2.createConditionalExpression(createNotNullCondition(leftExpression, capturedLeft, true), void 0, factory2.createVoidZero(), void 0, rightExpression);\n      setTextRange(target, node);\n      return thisArg ? factory2.createSyntheticReferenceExpression(target, thisArg) : target;\n    }\n    function createNotNullCondition(left, right, invert) {\n      return factory2.createBinaryExpression(factory2.createBinaryExpression(left, factory2.createToken(invert ? 36 : 37), factory2.createNull()), factory2.createToken(invert ? 56 : 55), factory2.createBinaryExpression(right, factory2.createToken(invert ? 36 : 37), factory2.createVoidZero()));\n    }\n    function transformNullishCoalescingExpression(node) {\n      let left = visitNode(node.left, visitor, isExpression);\n      let right = left;\n      if (!isSimpleCopiableExpression(left)) {\n        right = factory2.createTempVariable(hoistVariableDeclaration);\n        left = factory2.createAssignment(right, left);\n      }\n      return setTextRange(factory2.createConditionalExpression(createNotNullCondition(left, right), void 0, right, void 0, visitNode(node.right, visitor, isExpression)), node);\n    }\n    function visitDeleteExpression(node) {\n      return isOptionalChain(skipParentheses(node.expression)) ? setOriginalNode(visitNonOptionalExpression(node.expression, false, true), node) : factory2.updateDeleteExpression(node, visitNode(node.expression, visitor, isExpression));\n    }\n  }\n  var init_es2020 = __esm({\n    \"src/compiler/transformers/es2020.ts\"() {\n      \"use strict\";\n      init_ts2();\n    }\n  });\n  function transformES2021(context) {\n    const {\n      hoistVariableDeclaration,\n      factory: factory2\n    } = context;\n    return chainBundle(context, transformSourceFile);\n    function transformSourceFile(node) {\n      if (node.isDeclarationFile) {\n        return node;\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitor(node) {\n      if ((node.transformFlags & 16) === 0) {\n        return node;\n      }\n      if (isLogicalOrCoalescingAssignmentExpression(node)) {\n        return transformLogicalAssignment(node);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function transformLogicalAssignment(binaryExpression) {\n      const operator = binaryExpression.operatorToken;\n      const nonAssignmentOperator = getNonAssignmentOperatorForCompoundAssignment(operator.kind);\n      let left = skipParentheses(visitNode(binaryExpression.left, visitor, isLeftHandSideExpression));\n      let assignmentTarget = left;\n      const right = skipParentheses(visitNode(binaryExpression.right, visitor, isExpression));\n      if (isAccessExpression(left)) {\n        const propertyAccessTargetSimpleCopiable = isSimpleCopiableExpression(left.expression);\n        const propertyAccessTarget = propertyAccessTargetSimpleCopiable ? left.expression : factory2.createTempVariable(hoistVariableDeclaration);\n        const propertyAccessTargetAssignment = propertyAccessTargetSimpleCopiable ? left.expression : factory2.createAssignment(propertyAccessTarget, left.expression);\n        if (isPropertyAccessExpression(left)) {\n          assignmentTarget = factory2.createPropertyAccessExpression(propertyAccessTarget, left.name);\n          left = factory2.createPropertyAccessExpression(propertyAccessTargetAssignment, left.name);\n        } else {\n          const elementAccessArgumentSimpleCopiable = isSimpleCopiableExpression(left.argumentExpression);\n          const elementAccessArgument = elementAccessArgumentSimpleCopiable ? left.argumentExpression : factory2.createTempVariable(hoistVariableDeclaration);\n          assignmentTarget = factory2.createElementAccessExpression(propertyAccessTarget, elementAccessArgument);\n          left = factory2.createElementAccessExpression(propertyAccessTargetAssignment, elementAccessArgumentSimpleCopiable ? left.argumentExpression : factory2.createAssignment(elementAccessArgument, left.argumentExpression));\n        }\n      }\n      return factory2.createBinaryExpression(left, nonAssignmentOperator, factory2.createParenthesizedExpression(factory2.createAssignment(assignmentTarget, right)));\n    }\n  }\n  var init_es2021 = __esm({\n    \"src/compiler/transformers/es2021.ts\"() {\n      \"use strict\";\n      init_ts2();\n    }\n  });\n  function transformESNext(context) {\n    return chainBundle(context, transformSourceFile);\n    function transformSourceFile(node) {\n      if (node.isDeclarationFile) {\n        return node;\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitor(node) {\n      if ((node.transformFlags & 4) === 0) {\n        return node;\n      }\n      switch (node.kind) {\n        default:\n          return visitEachChild(node, visitor, context);\n      }\n    }\n  }\n  var init_esnext = __esm({\n    \"src/compiler/transformers/esnext.ts\"() {\n      \"use strict\";\n      init_ts2();\n    }\n  });\n  function transformJsx(context) {\n    const {\n      factory: factory2,\n      getEmitHelperFactory: emitHelpers\n    } = context;\n    const compilerOptions = context.getCompilerOptions();\n    let currentSourceFile;\n    let currentFileState;\n    return chainBundle(context, transformSourceFile);\n    function getCurrentFileNameExpression() {\n      if (currentFileState.filenameDeclaration) {\n        return currentFileState.filenameDeclaration.name;\n      }\n      const declaration = factory2.createVariableDeclaration(factory2.createUniqueName(\"_jsxFileName\", 16 | 32), void 0, void 0, factory2.createStringLiteral(currentSourceFile.fileName));\n      currentFileState.filenameDeclaration = declaration;\n      return currentFileState.filenameDeclaration.name;\n    }\n    function getJsxFactoryCalleePrimitive(isStaticChildren) {\n      return compilerOptions.jsx === 5 ? \"jsxDEV\" : isStaticChildren ? \"jsxs\" : \"jsx\";\n    }\n    function getJsxFactoryCallee(isStaticChildren) {\n      const type = getJsxFactoryCalleePrimitive(isStaticChildren);\n      return getImplicitImportForName(type);\n    }\n    function getImplicitJsxFragmentReference() {\n      return getImplicitImportForName(\"Fragment\");\n    }\n    function getImplicitImportForName(name) {\n      var _a2, _b;\n      const importSource = name === \"createElement\" ? currentFileState.importSpecifier : getJSXRuntimeImport(currentFileState.importSpecifier, compilerOptions);\n      const existing = (_b = (_a2 = currentFileState.utilizedImplicitRuntimeImports) == null ? void 0 : _a2.get(importSource)) == null ? void 0 : _b.get(name);\n      if (existing) {\n        return existing.name;\n      }\n      if (!currentFileState.utilizedImplicitRuntimeImports) {\n        currentFileState.utilizedImplicitRuntimeImports = /* @__PURE__ */ new Map();\n      }\n      let specifierSourceImports = currentFileState.utilizedImplicitRuntimeImports.get(importSource);\n      if (!specifierSourceImports) {\n        specifierSourceImports = /* @__PURE__ */ new Map();\n        currentFileState.utilizedImplicitRuntimeImports.set(importSource, specifierSourceImports);\n      }\n      const generatedName = factory2.createUniqueName(`_${name}`, 16 | 32 | 64);\n      const specifier = factory2.createImportSpecifier(false, factory2.createIdentifier(name), generatedName);\n      setIdentifierGeneratedImportReference(generatedName, specifier);\n      specifierSourceImports.set(name, specifier);\n      return generatedName;\n    }\n    function transformSourceFile(node) {\n      if (node.isDeclarationFile) {\n        return node;\n      }\n      currentSourceFile = node;\n      currentFileState = {};\n      currentFileState.importSpecifier = getJSXImplicitImportBase(compilerOptions, node);\n      let visited = visitEachChild(node, visitor, context);\n      addEmitHelpers(visited, context.readEmitHelpers());\n      let statements = visited.statements;\n      if (currentFileState.filenameDeclaration) {\n        statements = insertStatementAfterCustomPrologue(statements.slice(), factory2.createVariableStatement(void 0, factory2.createVariableDeclarationList([currentFileState.filenameDeclaration], 2)));\n      }\n      if (currentFileState.utilizedImplicitRuntimeImports) {\n        for (const [importSource, importSpecifiersMap] of arrayFrom(currentFileState.utilizedImplicitRuntimeImports.entries())) {\n          if (isExternalModule(node)) {\n            const importStatement = factory2.createImportDeclaration(void 0, factory2.createImportClause(false, void 0, factory2.createNamedImports(arrayFrom(importSpecifiersMap.values()))), factory2.createStringLiteral(importSource), void 0);\n            setParentRecursive(importStatement, false);\n            statements = insertStatementAfterCustomPrologue(statements.slice(), importStatement);\n          } else if (isExternalOrCommonJsModule(node)) {\n            const requireStatement = factory2.createVariableStatement(void 0, factory2.createVariableDeclarationList([\n              factory2.createVariableDeclaration(factory2.createObjectBindingPattern(arrayFrom(importSpecifiersMap.values(), (s) => factory2.createBindingElement(void 0, s.propertyName, s.name))), void 0, void 0, factory2.createCallExpression(factory2.createIdentifier(\"require\"), void 0, [factory2.createStringLiteral(importSource)]))\n            ], 2));\n            setParentRecursive(requireStatement, false);\n            statements = insertStatementAfterCustomPrologue(statements.slice(), requireStatement);\n          } else {\n          }\n        }\n      }\n      if (statements !== visited.statements) {\n        visited = factory2.updateSourceFile(visited, statements);\n      }\n      currentFileState = void 0;\n      return visited;\n    }\n    function visitor(node) {\n      if (node.transformFlags & 2) {\n        return visitorWorker(node);\n      } else {\n        return node;\n      }\n    }\n    function visitorWorker(node) {\n      switch (node.kind) {\n        case 281:\n          return visitJsxElement(node, false);\n        case 282:\n          return visitJsxSelfClosingElement(node, false);\n        case 285:\n          return visitJsxFragment(node, false);\n        case 291:\n          return visitJsxExpression(node);\n        default:\n          return visitEachChild(node, visitor, context);\n      }\n    }\n    function transformJsxChildToExpression(node) {\n      switch (node.kind) {\n        case 11:\n          return visitJsxText(node);\n        case 291:\n          return visitJsxExpression(node);\n        case 281:\n          return visitJsxElement(node, true);\n        case 282:\n          return visitJsxSelfClosingElement(node, true);\n        case 285:\n          return visitJsxFragment(node, true);\n        default:\n          return Debug.failBadSyntaxKind(node);\n      }\n    }\n    function hasKeyAfterPropsSpread(node) {\n      let spread = false;\n      for (const elem of node.attributes.properties) {\n        if (isJsxSpreadAttribute(elem)) {\n          spread = true;\n        } else if (spread && isJsxAttribute(elem) && elem.name.escapedText === \"key\") {\n          return true;\n        }\n      }\n      return false;\n    }\n    function shouldUseCreateElement(node) {\n      return currentFileState.importSpecifier === void 0 || hasKeyAfterPropsSpread(node);\n    }\n    function visitJsxElement(node, isChild) {\n      const tagTransform = shouldUseCreateElement(node.openingElement) ? visitJsxOpeningLikeElementCreateElement : visitJsxOpeningLikeElementJSX;\n      return tagTransform(node.openingElement, node.children, isChild, node);\n    }\n    function visitJsxSelfClosingElement(node, isChild) {\n      const tagTransform = shouldUseCreateElement(node) ? visitJsxOpeningLikeElementCreateElement : visitJsxOpeningLikeElementJSX;\n      return tagTransform(node, void 0, isChild, node);\n    }\n    function visitJsxFragment(node, isChild) {\n      const tagTransform = currentFileState.importSpecifier === void 0 ? visitJsxOpeningFragmentCreateElement : visitJsxOpeningFragmentJSX;\n      return tagTransform(node.openingFragment, node.children, isChild, node);\n    }\n    function convertJsxChildrenToChildrenPropObject(children) {\n      const prop = convertJsxChildrenToChildrenPropAssignment(children);\n      return prop && factory2.createObjectLiteralExpression([prop]);\n    }\n    function convertJsxChildrenToChildrenPropAssignment(children) {\n      const nonWhitespaceChildren = getSemanticJsxChildren(children);\n      if (length(nonWhitespaceChildren) === 1 && !nonWhitespaceChildren[0].dotDotDotToken) {\n        const result2 = transformJsxChildToExpression(nonWhitespaceChildren[0]);\n        return result2 && factory2.createPropertyAssignment(\"children\", result2);\n      }\n      const result = mapDefined(children, transformJsxChildToExpression);\n      return length(result) ? factory2.createPropertyAssignment(\"children\", factory2.createArrayLiteralExpression(result)) : void 0;\n    }\n    function visitJsxOpeningLikeElementJSX(node, children, isChild, location) {\n      const tagName = getTagName(node);\n      const childrenProp = children && children.length ? convertJsxChildrenToChildrenPropAssignment(children) : void 0;\n      const keyAttr = find(node.attributes.properties, (p) => !!p.name && isIdentifier(p.name) && p.name.escapedText === \"key\");\n      const attrs = keyAttr ? filter(node.attributes.properties, (p) => p !== keyAttr) : node.attributes.properties;\n      const objectProperties = length(attrs) ? transformJsxAttributesToObjectProps(attrs, childrenProp) : factory2.createObjectLiteralExpression(childrenProp ? [childrenProp] : emptyArray);\n      return visitJsxOpeningLikeElementOrFragmentJSX(tagName, objectProperties, keyAttr, children || emptyArray, isChild, location);\n    }\n    function visitJsxOpeningLikeElementOrFragmentJSX(tagName, objectProperties, keyAttr, children, isChild, location) {\n      var _a2;\n      const nonWhitespaceChildren = getSemanticJsxChildren(children);\n      const isStaticChildren = length(nonWhitespaceChildren) > 1 || !!((_a2 = nonWhitespaceChildren[0]) == null ? void 0 : _a2.dotDotDotToken);\n      const args = [tagName, objectProperties];\n      if (keyAttr) {\n        args.push(transformJsxAttributeInitializer(keyAttr.initializer));\n      }\n      if (compilerOptions.jsx === 5) {\n        const originalFile = getOriginalNode(currentSourceFile);\n        if (originalFile && isSourceFile(originalFile)) {\n          if (keyAttr === void 0) {\n            args.push(factory2.createVoidZero());\n          }\n          args.push(isStaticChildren ? factory2.createTrue() : factory2.createFalse());\n          const lineCol = getLineAndCharacterOfPosition(originalFile, location.pos);\n          args.push(factory2.createObjectLiteralExpression([\n            factory2.createPropertyAssignment(\"fileName\", getCurrentFileNameExpression()),\n            factory2.createPropertyAssignment(\"lineNumber\", factory2.createNumericLiteral(lineCol.line + 1)),\n            factory2.createPropertyAssignment(\"columnNumber\", factory2.createNumericLiteral(lineCol.character + 1))\n          ]));\n          args.push(factory2.createThis());\n        }\n      }\n      const element = setTextRange(factory2.createCallExpression(getJsxFactoryCallee(isStaticChildren), void 0, args), location);\n      if (isChild) {\n        startOnNewLine(element);\n      }\n      return element;\n    }\n    function visitJsxOpeningLikeElementCreateElement(node, children, isChild, location) {\n      const tagName = getTagName(node);\n      const attrs = node.attributes.properties;\n      const objectProperties = length(attrs) ? transformJsxAttributesToObjectProps(attrs) : factory2.createNull();\n      const callee = currentFileState.importSpecifier === void 0 ? createJsxFactoryExpression(factory2, context.getEmitResolver().getJsxFactoryEntity(currentSourceFile), compilerOptions.reactNamespace, node) : getImplicitImportForName(\"createElement\");\n      const element = createExpressionForJsxElement(factory2, callee, tagName, objectProperties, mapDefined(children, transformJsxChildToExpression), location);\n      if (isChild) {\n        startOnNewLine(element);\n      }\n      return element;\n    }\n    function visitJsxOpeningFragmentJSX(_node, children, isChild, location) {\n      let childrenProps;\n      if (children && children.length) {\n        const result = convertJsxChildrenToChildrenPropObject(children);\n        if (result) {\n          childrenProps = result;\n        }\n      }\n      return visitJsxOpeningLikeElementOrFragmentJSX(getImplicitJsxFragmentReference(), childrenProps || factory2.createObjectLiteralExpression([]), void 0, children, isChild, location);\n    }\n    function visitJsxOpeningFragmentCreateElement(node, children, isChild, location) {\n      const element = createExpressionForJsxFragment(factory2, context.getEmitResolver().getJsxFactoryEntity(currentSourceFile), context.getEmitResolver().getJsxFragmentFactoryEntity(currentSourceFile), compilerOptions.reactNamespace, mapDefined(children, transformJsxChildToExpression), node, location);\n      if (isChild) {\n        startOnNewLine(element);\n      }\n      return element;\n    }\n    function transformJsxSpreadAttributeToSpreadAssignment(node) {\n      return factory2.createSpreadAssignment(Debug.checkDefined(visitNode(node.expression, visitor, isExpression)));\n    }\n    function transformJsxAttributesToObjectProps(attrs, children) {\n      const target = getEmitScriptTarget(compilerOptions);\n      return target && target >= 5 ? factory2.createObjectLiteralExpression(transformJsxAttributesToProps(attrs, children)) : transformJsxAttributesToExpression(attrs, children);\n    }\n    function transformJsxAttributesToProps(attrs, children) {\n      const props = flatten(spanMap(attrs, isJsxSpreadAttribute, (attrs2, isSpread) => map(attrs2, (attr) => isSpread ? transformJsxSpreadAttributeToSpreadAssignment(attr) : transformJsxAttributeToObjectLiteralElement(attr))));\n      if (children) {\n        props.push(children);\n      }\n      return props;\n    }\n    function transformJsxAttributesToExpression(attrs, children) {\n      const expressions = flatten(spanMap(attrs, isJsxSpreadAttribute, (attrs2, isSpread) => isSpread ? map(attrs2, transformJsxSpreadAttributeToExpression) : factory2.createObjectLiteralExpression(map(attrs2, transformJsxAttributeToObjectLiteralElement))));\n      if (isJsxSpreadAttribute(attrs[0])) {\n        expressions.unshift(factory2.createObjectLiteralExpression());\n      }\n      if (children) {\n        expressions.push(factory2.createObjectLiteralExpression([children]));\n      }\n      return singleOrUndefined(expressions) || emitHelpers().createAssignHelper(expressions);\n    }\n    function transformJsxSpreadAttributeToExpression(node) {\n      return Debug.checkDefined(visitNode(node.expression, visitor, isExpression));\n    }\n    function transformJsxAttributeToObjectLiteralElement(node) {\n      const name = getAttributeName(node);\n      const expression = transformJsxAttributeInitializer(node.initializer);\n      return factory2.createPropertyAssignment(name, expression);\n    }\n    function transformJsxAttributeInitializer(node) {\n      if (node === void 0) {\n        return factory2.createTrue();\n      }\n      if (node.kind === 10) {\n        const singleQuote = node.singleQuote !== void 0 ? node.singleQuote : !isStringDoubleQuoted(node, currentSourceFile);\n        const literal = factory2.createStringLiteral(tryDecodeEntities(node.text) || node.text, singleQuote);\n        return setTextRange(literal, node);\n      }\n      if (node.kind === 291) {\n        if (node.expression === void 0) {\n          return factory2.createTrue();\n        }\n        return Debug.checkDefined(visitNode(node.expression, visitor, isExpression));\n      }\n      if (isJsxElement(node)) {\n        return visitJsxElement(node, false);\n      }\n      if (isJsxSelfClosingElement(node)) {\n        return visitJsxSelfClosingElement(node, false);\n      }\n      if (isJsxFragment(node)) {\n        return visitJsxFragment(node, false);\n      }\n      return Debug.failBadSyntaxKind(node);\n    }\n    function visitJsxText(node) {\n      const fixed = fixupWhitespaceAndDecodeEntities(node.text);\n      return fixed === void 0 ? void 0 : factory2.createStringLiteral(fixed);\n    }\n    function fixupWhitespaceAndDecodeEntities(text) {\n      let acc;\n      let firstNonWhitespace = 0;\n      let lastNonWhitespace = -1;\n      for (let i = 0; i < text.length; i++) {\n        const c = text.charCodeAt(i);\n        if (isLineBreak(c)) {\n          if (firstNonWhitespace !== -1 && lastNonWhitespace !== -1) {\n            acc = addLineOfJsxText(acc, text.substr(firstNonWhitespace, lastNonWhitespace - firstNonWhitespace + 1));\n          }\n          firstNonWhitespace = -1;\n        } else if (!isWhiteSpaceSingleLine(c)) {\n          lastNonWhitespace = i;\n          if (firstNonWhitespace === -1) {\n            firstNonWhitespace = i;\n          }\n        }\n      }\n      return firstNonWhitespace !== -1 ? addLineOfJsxText(acc, text.substr(firstNonWhitespace)) : acc;\n    }\n    function addLineOfJsxText(acc, trimmedLine) {\n      const decoded = decodeEntities(trimmedLine);\n      return acc === void 0 ? decoded : acc + \" \" + decoded;\n    }\n    function decodeEntities(text) {\n      return text.replace(/&((#((\\d+)|x([\\da-fA-F]+)))|(\\w+));/g, (match, _all, _number, _digits, decimal, hex, word) => {\n        if (decimal) {\n          return utf16EncodeAsString(parseInt(decimal, 10));\n        } else if (hex) {\n          return utf16EncodeAsString(parseInt(hex, 16));\n        } else {\n          const ch = entities.get(word);\n          return ch ? utf16EncodeAsString(ch) : match;\n        }\n      });\n    }\n    function tryDecodeEntities(text) {\n      const decoded = decodeEntities(text);\n      return decoded === text ? void 0 : decoded;\n    }\n    function getTagName(node) {\n      if (node.kind === 281) {\n        return getTagName(node.openingElement);\n      } else {\n        const name = node.tagName;\n        if (isIdentifier(name) && isIntrinsicJsxName(name.escapedText)) {\n          return factory2.createStringLiteral(idText(name));\n        } else {\n          return createExpressionFromEntityName(factory2, name);\n        }\n      }\n    }\n    function getAttributeName(node) {\n      const name = node.name;\n      const text = idText(name);\n      if (/^[A-Za-z_]\\w*$/.test(text)) {\n        return name;\n      } else {\n        return factory2.createStringLiteral(text);\n      }\n    }\n    function visitJsxExpression(node) {\n      const expression = visitNode(node.expression, visitor, isExpression);\n      return node.dotDotDotToken ? factory2.createSpreadElement(expression) : expression;\n    }\n  }\n  var entities;\n  var init_jsx = __esm({\n    \"src/compiler/transformers/jsx.ts\"() {\n      \"use strict\";\n      init_ts2();\n      entities = new Map(Object.entries({\n        quot: 34,\n        amp: 38,\n        apos: 39,\n        lt: 60,\n        gt: 62,\n        nbsp: 160,\n        iexcl: 161,\n        cent: 162,\n        pound: 163,\n        curren: 164,\n        yen: 165,\n        brvbar: 166,\n        sect: 167,\n        uml: 168,\n        copy: 169,\n        ordf: 170,\n        laquo: 171,\n        not: 172,\n        shy: 173,\n        reg: 174,\n        macr: 175,\n        deg: 176,\n        plusmn: 177,\n        sup2: 178,\n        sup3: 179,\n        acute: 180,\n        micro: 181,\n        para: 182,\n        middot: 183,\n        cedil: 184,\n        sup1: 185,\n        ordm: 186,\n        raquo: 187,\n        frac14: 188,\n        frac12: 189,\n        frac34: 190,\n        iquest: 191,\n        Agrave: 192,\n        Aacute: 193,\n        Acirc: 194,\n        Atilde: 195,\n        Auml: 196,\n        Aring: 197,\n        AElig: 198,\n        Ccedil: 199,\n        Egrave: 200,\n        Eacute: 201,\n        Ecirc: 202,\n        Euml: 203,\n        Igrave: 204,\n        Iacute: 205,\n        Icirc: 206,\n        Iuml: 207,\n        ETH: 208,\n        Ntilde: 209,\n        Ograve: 210,\n        Oacute: 211,\n        Ocirc: 212,\n        Otilde: 213,\n        Ouml: 214,\n        times: 215,\n        Oslash: 216,\n        Ugrave: 217,\n        Uacute: 218,\n        Ucirc: 219,\n        Uuml: 220,\n        Yacute: 221,\n        THORN: 222,\n        szlig: 223,\n        agrave: 224,\n        aacute: 225,\n        acirc: 226,\n        atilde: 227,\n        auml: 228,\n        aring: 229,\n        aelig: 230,\n        ccedil: 231,\n        egrave: 232,\n        eacute: 233,\n        ecirc: 234,\n        euml: 235,\n        igrave: 236,\n        iacute: 237,\n        icirc: 238,\n        iuml: 239,\n        eth: 240,\n        ntilde: 241,\n        ograve: 242,\n        oacute: 243,\n        ocirc: 244,\n        otilde: 245,\n        ouml: 246,\n        divide: 247,\n        oslash: 248,\n        ugrave: 249,\n        uacute: 250,\n        ucirc: 251,\n        uuml: 252,\n        yacute: 253,\n        thorn: 254,\n        yuml: 255,\n        OElig: 338,\n        oelig: 339,\n        Scaron: 352,\n        scaron: 353,\n        Yuml: 376,\n        fnof: 402,\n        circ: 710,\n        tilde: 732,\n        Alpha: 913,\n        Beta: 914,\n        Gamma: 915,\n        Delta: 916,\n        Epsilon: 917,\n        Zeta: 918,\n        Eta: 919,\n        Theta: 920,\n        Iota: 921,\n        Kappa: 922,\n        Lambda: 923,\n        Mu: 924,\n        Nu: 925,\n        Xi: 926,\n        Omicron: 927,\n        Pi: 928,\n        Rho: 929,\n        Sigma: 931,\n        Tau: 932,\n        Upsilon: 933,\n        Phi: 934,\n        Chi: 935,\n        Psi: 936,\n        Omega: 937,\n        alpha: 945,\n        beta: 946,\n        gamma: 947,\n        delta: 948,\n        epsilon: 949,\n        zeta: 950,\n        eta: 951,\n        theta: 952,\n        iota: 953,\n        kappa: 954,\n        lambda: 955,\n        mu: 956,\n        nu: 957,\n        xi: 958,\n        omicron: 959,\n        pi: 960,\n        rho: 961,\n        sigmaf: 962,\n        sigma: 963,\n        tau: 964,\n        upsilon: 965,\n        phi: 966,\n        chi: 967,\n        psi: 968,\n        omega: 969,\n        thetasym: 977,\n        upsih: 978,\n        piv: 982,\n        ensp: 8194,\n        emsp: 8195,\n        thinsp: 8201,\n        zwnj: 8204,\n        zwj: 8205,\n        lrm: 8206,\n        rlm: 8207,\n        ndash: 8211,\n        mdash: 8212,\n        lsquo: 8216,\n        rsquo: 8217,\n        sbquo: 8218,\n        ldquo: 8220,\n        rdquo: 8221,\n        bdquo: 8222,\n        dagger: 8224,\n        Dagger: 8225,\n        bull: 8226,\n        hellip: 8230,\n        permil: 8240,\n        prime: 8242,\n        Prime: 8243,\n        lsaquo: 8249,\n        rsaquo: 8250,\n        oline: 8254,\n        frasl: 8260,\n        euro: 8364,\n        image: 8465,\n        weierp: 8472,\n        real: 8476,\n        trade: 8482,\n        alefsym: 8501,\n        larr: 8592,\n        uarr: 8593,\n        rarr: 8594,\n        darr: 8595,\n        harr: 8596,\n        crarr: 8629,\n        lArr: 8656,\n        uArr: 8657,\n        rArr: 8658,\n        dArr: 8659,\n        hArr: 8660,\n        forall: 8704,\n        part: 8706,\n        exist: 8707,\n        empty: 8709,\n        nabla: 8711,\n        isin: 8712,\n        notin: 8713,\n        ni: 8715,\n        prod: 8719,\n        sum: 8721,\n        minus: 8722,\n        lowast: 8727,\n        radic: 8730,\n        prop: 8733,\n        infin: 8734,\n        ang: 8736,\n        and: 8743,\n        or: 8744,\n        cap: 8745,\n        cup: 8746,\n        int: 8747,\n        there4: 8756,\n        sim: 8764,\n        cong: 8773,\n        asymp: 8776,\n        ne: 8800,\n        equiv: 8801,\n        le: 8804,\n        ge: 8805,\n        sub: 8834,\n        sup: 8835,\n        nsub: 8836,\n        sube: 8838,\n        supe: 8839,\n        oplus: 8853,\n        otimes: 8855,\n        perp: 8869,\n        sdot: 8901,\n        lceil: 8968,\n        rceil: 8969,\n        lfloor: 8970,\n        rfloor: 8971,\n        lang: 9001,\n        rang: 9002,\n        loz: 9674,\n        spades: 9824,\n        clubs: 9827,\n        hearts: 9829,\n        diams: 9830\n      }));\n    }\n  });\n  function transformES2016(context) {\n    const {\n      factory: factory2,\n      hoistVariableDeclaration\n    } = context;\n    return chainBundle(context, transformSourceFile);\n    function transformSourceFile(node) {\n      if (node.isDeclarationFile) {\n        return node;\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitor(node) {\n      if ((node.transformFlags & 512) === 0) {\n        return node;\n      }\n      switch (node.kind) {\n        case 223:\n          return visitBinaryExpression(node);\n        default:\n          return visitEachChild(node, visitor, context);\n      }\n    }\n    function visitBinaryExpression(node) {\n      switch (node.operatorToken.kind) {\n        case 67:\n          return visitExponentiationAssignmentExpression(node);\n        case 42:\n          return visitExponentiationExpression(node);\n        default:\n          return visitEachChild(node, visitor, context);\n      }\n    }\n    function visitExponentiationAssignmentExpression(node) {\n      let target;\n      let value;\n      const left = visitNode(node.left, visitor, isExpression);\n      const right = visitNode(node.right, visitor, isExpression);\n      if (isElementAccessExpression(left)) {\n        const expressionTemp = factory2.createTempVariable(hoistVariableDeclaration);\n        const argumentExpressionTemp = factory2.createTempVariable(hoistVariableDeclaration);\n        target = setTextRange(factory2.createElementAccessExpression(setTextRange(factory2.createAssignment(expressionTemp, left.expression), left.expression), setTextRange(factory2.createAssignment(argumentExpressionTemp, left.argumentExpression), left.argumentExpression)), left);\n        value = setTextRange(factory2.createElementAccessExpression(expressionTemp, argumentExpressionTemp), left);\n      } else if (isPropertyAccessExpression(left)) {\n        const expressionTemp = factory2.createTempVariable(hoistVariableDeclaration);\n        target = setTextRange(factory2.createPropertyAccessExpression(setTextRange(factory2.createAssignment(expressionTemp, left.expression), left.expression), left.name), left);\n        value = setTextRange(factory2.createPropertyAccessExpression(expressionTemp, left.name), left);\n      } else {\n        target = left;\n        value = left;\n      }\n      return setTextRange(factory2.createAssignment(target, setTextRange(factory2.createGlobalMethodCall(\"Math\", \"pow\", [value, right]), node)), node);\n    }\n    function visitExponentiationExpression(node) {\n      const left = visitNode(node.left, visitor, isExpression);\n      const right = visitNode(node.right, visitor, isExpression);\n      return setTextRange(factory2.createGlobalMethodCall(\"Math\", \"pow\", [left, right]), node);\n    }\n  }\n  var init_es2016 = __esm({\n    \"src/compiler/transformers/es2016.ts\"() {\n      \"use strict\";\n      init_ts2();\n    }\n  });\n  function createSpreadSegment(kind, expression) {\n    return { kind, expression };\n  }\n  function transformES2015(context) {\n    const {\n      factory: factory2,\n      getEmitHelperFactory: emitHelpers,\n      startLexicalEnvironment,\n      resumeLexicalEnvironment,\n      endLexicalEnvironment,\n      hoistVariableDeclaration\n    } = context;\n    const compilerOptions = context.getCompilerOptions();\n    const resolver = context.getEmitResolver();\n    const previousOnSubstituteNode = context.onSubstituteNode;\n    const previousOnEmitNode = context.onEmitNode;\n    context.onEmitNode = onEmitNode;\n    context.onSubstituteNode = onSubstituteNode;\n    let currentSourceFile;\n    let currentText;\n    let hierarchyFacts;\n    let taggedTemplateStringDeclarations;\n    function recordTaggedTemplateString(temp) {\n      taggedTemplateStringDeclarations = append(taggedTemplateStringDeclarations, factory2.createVariableDeclaration(temp));\n    }\n    let convertedLoopState;\n    let enabledSubstitutions;\n    return chainBundle(context, transformSourceFile);\n    function transformSourceFile(node) {\n      if (node.isDeclarationFile) {\n        return node;\n      }\n      currentSourceFile = node;\n      currentText = node.text;\n      const visited = visitSourceFile(node);\n      addEmitHelpers(visited, context.readEmitHelpers());\n      currentSourceFile = void 0;\n      currentText = void 0;\n      taggedTemplateStringDeclarations = void 0;\n      hierarchyFacts = 0;\n      return visited;\n    }\n    function enterSubtree(excludeFacts, includeFacts) {\n      const ancestorFacts = hierarchyFacts;\n      hierarchyFacts = (hierarchyFacts & ~excludeFacts | includeFacts) & 32767;\n      return ancestorFacts;\n    }\n    function exitSubtree(ancestorFacts, excludeFacts, includeFacts) {\n      hierarchyFacts = (hierarchyFacts & ~excludeFacts | includeFacts) & -32768 | ancestorFacts;\n    }\n    function isReturnVoidStatementInConstructorWithCapturedSuper(node) {\n      return (hierarchyFacts & 8192) !== 0 && node.kind === 250 && !node.expression;\n    }\n    function isOrMayContainReturnCompletion(node) {\n      return node.transformFlags & 4194304 && (isReturnStatement(node) || isIfStatement(node) || isWithStatement(node) || isSwitchStatement(node) || isCaseBlock(node) || isCaseClause(node) || isDefaultClause(node) || isTryStatement(node) || isCatchClause(node) || isLabeledStatement(node) || isIterationStatement(node, false) || isBlock(node));\n    }\n    function shouldVisitNode(node) {\n      return (node.transformFlags & 1024) !== 0 || convertedLoopState !== void 0 || hierarchyFacts & 8192 && isOrMayContainReturnCompletion(node) || isIterationStatement(node, false) && shouldConvertIterationStatement(node) || (getInternalEmitFlags(node) & 1) !== 0;\n    }\n    function visitor(node) {\n      return shouldVisitNode(node) ? visitorWorker(node, false) : node;\n    }\n    function visitorWithUnusedExpressionResult(node) {\n      return shouldVisitNode(node) ? visitorWorker(node, true) : node;\n    }\n    function classWrapperStatementVisitor(node) {\n      if (shouldVisitNode(node)) {\n        const original = getOriginalNode(node);\n        if (isPropertyDeclaration(original) && hasStaticModifier(original)) {\n          const ancestorFacts = enterSubtree(32670, 16449);\n          const result = visitorWorker(node, false);\n          exitSubtree(ancestorFacts, 98304, 0);\n          return result;\n        }\n        return visitorWorker(node, false);\n      }\n      return node;\n    }\n    function callExpressionVisitor(node) {\n      if (node.kind === 106) {\n        return visitSuperKeyword(true);\n      }\n      return visitor(node);\n    }\n    function visitorWorker(node, expressionResultIsUnused2) {\n      switch (node.kind) {\n        case 124:\n          return void 0;\n        case 260:\n          return visitClassDeclaration(node);\n        case 228:\n          return visitClassExpression(node);\n        case 166:\n          return visitParameter(node);\n        case 259:\n          return visitFunctionDeclaration(node);\n        case 216:\n          return visitArrowFunction(node);\n        case 215:\n          return visitFunctionExpression(node);\n        case 257:\n          return visitVariableDeclaration(node);\n        case 79:\n          return visitIdentifier(node);\n        case 258:\n          return visitVariableDeclarationList(node);\n        case 252:\n          return visitSwitchStatement(node);\n        case 266:\n          return visitCaseBlock(node);\n        case 238:\n          return visitBlock(node, false);\n        case 249:\n        case 248:\n          return visitBreakOrContinueStatement(node);\n        case 253:\n          return visitLabeledStatement(node);\n        case 243:\n        case 244:\n          return visitDoOrWhileStatement(node, void 0);\n        case 245:\n          return visitForStatement(node, void 0);\n        case 246:\n          return visitForInStatement(node, void 0);\n        case 247:\n          return visitForOfStatement(node, void 0);\n        case 241:\n          return visitExpressionStatement(node);\n        case 207:\n          return visitObjectLiteralExpression(node);\n        case 295:\n          return visitCatchClause(node);\n        case 300:\n          return visitShorthandPropertyAssignment(node);\n        case 164:\n          return visitComputedPropertyName(node);\n        case 206:\n          return visitArrayLiteralExpression(node);\n        case 210:\n          return visitCallExpression(node);\n        case 211:\n          return visitNewExpression(node);\n        case 214:\n          return visitParenthesizedExpression(node, expressionResultIsUnused2);\n        case 223:\n          return visitBinaryExpression(node, expressionResultIsUnused2);\n        case 357:\n          return visitCommaListExpression(node, expressionResultIsUnused2);\n        case 14:\n        case 15:\n        case 16:\n        case 17:\n          return visitTemplateLiteral(node);\n        case 10:\n          return visitStringLiteral(node);\n        case 8:\n          return visitNumericLiteral(node);\n        case 212:\n          return visitTaggedTemplateExpression(node);\n        case 225:\n          return visitTemplateExpression(node);\n        case 226:\n          return visitYieldExpression(node);\n        case 227:\n          return visitSpreadElement(node);\n        case 106:\n          return visitSuperKeyword(false);\n        case 108:\n          return visitThisKeyword(node);\n        case 233:\n          return visitMetaProperty(node);\n        case 171:\n          return visitMethodDeclaration(node);\n        case 174:\n        case 175:\n          return visitAccessorDeclaration(node);\n        case 240:\n          return visitVariableStatement(node);\n        case 250:\n          return visitReturnStatement(node);\n        case 219:\n          return visitVoidExpression(node);\n        default:\n          return visitEachChild(node, visitor, context);\n      }\n    }\n    function visitSourceFile(node) {\n      const ancestorFacts = enterSubtree(8064, 64);\n      const prologue = [];\n      const statements = [];\n      startLexicalEnvironment();\n      const statementOffset = factory2.copyPrologue(node.statements, prologue, false, visitor);\n      addRange(statements, visitNodes2(node.statements, visitor, isStatement, statementOffset));\n      if (taggedTemplateStringDeclarations) {\n        statements.push(factory2.createVariableStatement(void 0, factory2.createVariableDeclarationList(taggedTemplateStringDeclarations)));\n      }\n      factory2.mergeLexicalEnvironment(prologue, endLexicalEnvironment());\n      insertCaptureThisForNodeIfNeeded(prologue, node);\n      exitSubtree(ancestorFacts, 0, 0);\n      return factory2.updateSourceFile(node, setTextRange(factory2.createNodeArray(concatenate(prologue, statements)), node.statements));\n    }\n    function visitSwitchStatement(node) {\n      if (convertedLoopState !== void 0) {\n        const savedAllowedNonLabeledJumps = convertedLoopState.allowedNonLabeledJumps;\n        convertedLoopState.allowedNonLabeledJumps |= 2;\n        const result = visitEachChild(node, visitor, context);\n        convertedLoopState.allowedNonLabeledJumps = savedAllowedNonLabeledJumps;\n        return result;\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitCaseBlock(node) {\n      const ancestorFacts = enterSubtree(7104, 0);\n      const updated = visitEachChild(node, visitor, context);\n      exitSubtree(ancestorFacts, 0, 0);\n      return updated;\n    }\n    function returnCapturedThis(node) {\n      return setOriginalNode(factory2.createReturnStatement(factory2.createUniqueName(\"_this\", 16 | 32)), node);\n    }\n    function visitReturnStatement(node) {\n      if (convertedLoopState) {\n        convertedLoopState.nonLocalJumps |= 8;\n        if (isReturnVoidStatementInConstructorWithCapturedSuper(node)) {\n          node = returnCapturedThis(node);\n        }\n        return factory2.createReturnStatement(factory2.createObjectLiteralExpression([\n          factory2.createPropertyAssignment(factory2.createIdentifier(\"value\"), node.expression ? Debug.checkDefined(visitNode(node.expression, visitor, isExpression)) : factory2.createVoidZero())\n        ]));\n      } else if (isReturnVoidStatementInConstructorWithCapturedSuper(node)) {\n        return returnCapturedThis(node);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitThisKeyword(node) {\n      if (hierarchyFacts & 2 && !(hierarchyFacts & 16384)) {\n        hierarchyFacts |= 65536;\n      }\n      if (convertedLoopState) {\n        if (hierarchyFacts & 2) {\n          convertedLoopState.containsLexicalThis = true;\n          return node;\n        }\n        return convertedLoopState.thisName || (convertedLoopState.thisName = factory2.createUniqueName(\"this\"));\n      }\n      return node;\n    }\n    function visitVoidExpression(node) {\n      return visitEachChild(node, visitorWithUnusedExpressionResult, context);\n    }\n    function visitIdentifier(node) {\n      if (convertedLoopState) {\n        if (resolver.isArgumentsLocalBinding(node)) {\n          return convertedLoopState.argumentsName || (convertedLoopState.argumentsName = factory2.createUniqueName(\"arguments\"));\n        }\n      }\n      if (node.flags & 128) {\n        return setOriginalNode(setTextRange(factory2.createIdentifier(unescapeLeadingUnderscores(node.escapedText)), node), node);\n      }\n      return node;\n    }\n    function visitBreakOrContinueStatement(node) {\n      if (convertedLoopState) {\n        const jump = node.kind === 249 ? 2 : 4;\n        const canUseBreakOrContinue = node.label && convertedLoopState.labels && convertedLoopState.labels.get(idText(node.label)) || !node.label && convertedLoopState.allowedNonLabeledJumps & jump;\n        if (!canUseBreakOrContinue) {\n          let labelMarker;\n          const label = node.label;\n          if (!label) {\n            if (node.kind === 249) {\n              convertedLoopState.nonLocalJumps |= 2;\n              labelMarker = \"break\";\n            } else {\n              convertedLoopState.nonLocalJumps |= 4;\n              labelMarker = \"continue\";\n            }\n          } else {\n            if (node.kind === 249) {\n              labelMarker = `break-${label.escapedText}`;\n              setLabeledJump(convertedLoopState, true, idText(label), labelMarker);\n            } else {\n              labelMarker = `continue-${label.escapedText}`;\n              setLabeledJump(convertedLoopState, false, idText(label), labelMarker);\n            }\n          }\n          let returnExpression = factory2.createStringLiteral(labelMarker);\n          if (convertedLoopState.loopOutParameters.length) {\n            const outParams = convertedLoopState.loopOutParameters;\n            let expr;\n            for (let i = 0; i < outParams.length; i++) {\n              const copyExpr = copyOutParameter(outParams[i], 1);\n              if (i === 0) {\n                expr = copyExpr;\n              } else {\n                expr = factory2.createBinaryExpression(expr, 27, copyExpr);\n              }\n            }\n            returnExpression = factory2.createBinaryExpression(expr, 27, returnExpression);\n          }\n          return factory2.createReturnStatement(returnExpression);\n        }\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitClassDeclaration(node) {\n      const variable = factory2.createVariableDeclaration(factory2.getLocalName(node, true), void 0, void 0, transformClassLikeDeclarationToExpression(node));\n      setOriginalNode(variable, node);\n      const statements = [];\n      const statement = factory2.createVariableStatement(void 0, factory2.createVariableDeclarationList([variable]));\n      setOriginalNode(statement, node);\n      setTextRange(statement, node);\n      startOnNewLine(statement);\n      statements.push(statement);\n      if (hasSyntacticModifier(node, 1)) {\n        const exportStatement = hasSyntacticModifier(node, 1024) ? factory2.createExportDefault(factory2.getLocalName(node)) : factory2.createExternalModuleExport(factory2.getLocalName(node));\n        setOriginalNode(exportStatement, statement);\n        statements.push(exportStatement);\n      }\n      const emitFlags = getEmitFlags(node);\n      if ((emitFlags & 8388608) === 0) {\n        statements.push(factory2.createEndOfDeclarationMarker(node));\n        setEmitFlags(statement, emitFlags | 8388608);\n      }\n      return singleOrMany(statements);\n    }\n    function visitClassExpression(node) {\n      return transformClassLikeDeclarationToExpression(node);\n    }\n    function transformClassLikeDeclarationToExpression(node) {\n      if (node.name) {\n        enableSubstitutionsForBlockScopedBindings();\n      }\n      const extendsClauseElement = getClassExtendsHeritageElement(node);\n      const classFunction = factory2.createFunctionExpression(void 0, void 0, void 0, void 0, extendsClauseElement ? [factory2.createParameterDeclaration(void 0, void 0, factory2.createUniqueName(\"_super\", 16 | 32))] : [], void 0, transformClassBody(node, extendsClauseElement));\n      setEmitFlags(classFunction, getEmitFlags(node) & 131072 | 1048576);\n      const inner = factory2.createPartiallyEmittedExpression(classFunction);\n      setTextRangeEnd(inner, node.end);\n      setEmitFlags(inner, 3072);\n      const outer = factory2.createPartiallyEmittedExpression(inner);\n      setTextRangeEnd(outer, skipTrivia(currentText, node.pos));\n      setEmitFlags(outer, 3072);\n      const result = factory2.createParenthesizedExpression(factory2.createCallExpression(outer, void 0, extendsClauseElement ? [Debug.checkDefined(visitNode(extendsClauseElement.expression, visitor, isExpression))] : []));\n      addSyntheticLeadingComment(result, 3, \"* @class \");\n      return result;\n    }\n    function transformClassBody(node, extendsClauseElement) {\n      const statements = [];\n      const name = factory2.getInternalName(node);\n      const constructorLikeName = isIdentifierANonContextualKeyword(name) ? factory2.getGeneratedNameForNode(name) : name;\n      startLexicalEnvironment();\n      addExtendsHelperIfNeeded(statements, node, extendsClauseElement);\n      addConstructor(statements, node, constructorLikeName, extendsClauseElement);\n      addClassMembers(statements, node);\n      const closingBraceLocation = createTokenRange(skipTrivia(currentText, node.members.end), 19);\n      const outer = factory2.createPartiallyEmittedExpression(constructorLikeName);\n      setTextRangeEnd(outer, closingBraceLocation.end);\n      setEmitFlags(outer, 3072);\n      const statement = factory2.createReturnStatement(outer);\n      setTextRangePos(statement, closingBraceLocation.pos);\n      setEmitFlags(statement, 3072 | 768);\n      statements.push(statement);\n      insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());\n      const block = factory2.createBlock(setTextRange(factory2.createNodeArray(statements), node.members), true);\n      setEmitFlags(block, 3072);\n      return block;\n    }\n    function addExtendsHelperIfNeeded(statements, node, extendsClauseElement) {\n      if (extendsClauseElement) {\n        statements.push(setTextRange(factory2.createExpressionStatement(emitHelpers().createExtendsHelper(factory2.getInternalName(node))), extendsClauseElement));\n      }\n    }\n    function addConstructor(statements, node, name, extendsClauseElement) {\n      const savedConvertedLoopState = convertedLoopState;\n      convertedLoopState = void 0;\n      const ancestorFacts = enterSubtree(32662, 73);\n      const constructor = getFirstConstructorWithBody(node);\n      const hasSynthesizedSuper = hasSynthesizedDefaultSuperCall(constructor, extendsClauseElement !== void 0);\n      const constructorFunction = factory2.createFunctionDeclaration(void 0, void 0, name, void 0, transformConstructorParameters(constructor, hasSynthesizedSuper), void 0, transformConstructorBody(constructor, node, extendsClauseElement, hasSynthesizedSuper));\n      setTextRange(constructorFunction, constructor || node);\n      if (extendsClauseElement) {\n        setEmitFlags(constructorFunction, 16);\n      }\n      statements.push(constructorFunction);\n      exitSubtree(ancestorFacts, 98304, 0);\n      convertedLoopState = savedConvertedLoopState;\n    }\n    function transformConstructorParameters(constructor, hasSynthesizedSuper) {\n      return visitParameterList(constructor && !hasSynthesizedSuper ? constructor.parameters : void 0, visitor, context) || [];\n    }\n    function createDefaultConstructorBody(node, isDerivedClass) {\n      const statements = [];\n      resumeLexicalEnvironment();\n      factory2.mergeLexicalEnvironment(statements, endLexicalEnvironment());\n      if (isDerivedClass) {\n        statements.push(factory2.createReturnStatement(createDefaultSuperCallOrThis()));\n      }\n      const statementsArray = factory2.createNodeArray(statements);\n      setTextRange(statementsArray, node.members);\n      const block = factory2.createBlock(statementsArray, true);\n      setTextRange(block, node);\n      setEmitFlags(block, 3072);\n      return block;\n    }\n    function transformConstructorBody(constructor, node, extendsClauseElement, hasSynthesizedSuper) {\n      const isDerivedClass = !!extendsClauseElement && skipOuterExpressions(extendsClauseElement.expression).kind !== 104;\n      if (!constructor)\n        return createDefaultConstructorBody(node, isDerivedClass);\n      const prologue = [];\n      const statements = [];\n      resumeLexicalEnvironment();\n      const existingPrologue = takeWhile(constructor.body.statements, isPrologueDirective);\n      const { superCall, superStatementIndex } = findSuperCallAndStatementIndex(constructor.body.statements, existingPrologue);\n      const postSuperStatementsStart = superStatementIndex === -1 ? existingPrologue.length : superStatementIndex + 1;\n      let statementOffset = postSuperStatementsStart;\n      if (!hasSynthesizedSuper)\n        statementOffset = factory2.copyStandardPrologue(constructor.body.statements, prologue, statementOffset, false);\n      if (!hasSynthesizedSuper)\n        statementOffset = factory2.copyCustomPrologue(constructor.body.statements, statements, statementOffset, visitor, void 0);\n      let superCallExpression;\n      if (hasSynthesizedSuper) {\n        superCallExpression = createDefaultSuperCallOrThis();\n      } else if (superCall) {\n        superCallExpression = visitSuperCallInBody(superCall);\n      }\n      if (superCallExpression) {\n        hierarchyFacts |= 8192;\n      }\n      addDefaultValueAssignmentsIfNeeded2(prologue, constructor);\n      addRestParameterIfNeeded(prologue, constructor, hasSynthesizedSuper);\n      addRange(statements, visitNodes2(constructor.body.statements, visitor, isStatement, statementOffset));\n      factory2.mergeLexicalEnvironment(prologue, endLexicalEnvironment());\n      insertCaptureNewTargetIfNeeded(prologue, constructor, false);\n      if (isDerivedClass || superCallExpression) {\n        if (superCallExpression && postSuperStatementsStart === constructor.body.statements.length && !(constructor.body.transformFlags & 16384)) {\n          const superCall2 = cast(cast(superCallExpression, isBinaryExpression).left, isCallExpression);\n          const returnStatement = factory2.createReturnStatement(superCallExpression);\n          setCommentRange(returnStatement, getCommentRange(superCall2));\n          setEmitFlags(superCall2, 3072);\n          statements.push(returnStatement);\n        } else {\n          if (superStatementIndex <= existingPrologue.length) {\n            insertCaptureThisForNode(statements, constructor, superCallExpression || createActualThis());\n          } else {\n            insertCaptureThisForNode(prologue, constructor, createActualThis());\n            if (superCallExpression) {\n              insertSuperThisCaptureThisForNode(statements, superCallExpression);\n            }\n          }\n          if (!isSufficientlyCoveredByReturnStatements(constructor.body)) {\n            statements.push(factory2.createReturnStatement(factory2.createUniqueName(\"_this\", 16 | 32)));\n          }\n        }\n      } else {\n        insertCaptureThisForNodeIfNeeded(prologue, constructor);\n      }\n      const body = factory2.createBlock(setTextRange(factory2.createNodeArray([\n        ...existingPrologue,\n        ...prologue,\n        ...superStatementIndex <= existingPrologue.length ? emptyArray : visitNodes2(constructor.body.statements, visitor, isStatement, existingPrologue.length, superStatementIndex - existingPrologue.length),\n        ...statements\n      ]), constructor.body.statements), true);\n      setTextRange(body, constructor.body);\n      return body;\n    }\n    function findSuperCallAndStatementIndex(originalBodyStatements, existingPrologue) {\n      for (let i = existingPrologue.length; i < originalBodyStatements.length; i += 1) {\n        const superCall = getSuperCallFromStatement(originalBodyStatements[i]);\n        if (superCall) {\n          return {\n            superCall,\n            superStatementIndex: i\n          };\n        }\n      }\n      return {\n        superStatementIndex: -1\n      };\n    }\n    function isSufficientlyCoveredByReturnStatements(statement) {\n      if (statement.kind === 250) {\n        return true;\n      } else if (statement.kind === 242) {\n        const ifStatement = statement;\n        if (ifStatement.elseStatement) {\n          return isSufficientlyCoveredByReturnStatements(ifStatement.thenStatement) && isSufficientlyCoveredByReturnStatements(ifStatement.elseStatement);\n        }\n      } else if (statement.kind === 238) {\n        const lastStatement = lastOrUndefined(statement.statements);\n        if (lastStatement && isSufficientlyCoveredByReturnStatements(lastStatement)) {\n          return true;\n        }\n      }\n      return false;\n    }\n    function createActualThis() {\n      return setEmitFlags(factory2.createThis(), 8);\n    }\n    function createDefaultSuperCallOrThis() {\n      return factory2.createLogicalOr(factory2.createLogicalAnd(factory2.createStrictInequality(factory2.createUniqueName(\"_super\", 16 | 32), factory2.createNull()), factory2.createFunctionApplyCall(factory2.createUniqueName(\"_super\", 16 | 32), createActualThis(), factory2.createIdentifier(\"arguments\"))), createActualThis());\n    }\n    function visitParameter(node) {\n      if (node.dotDotDotToken) {\n        return void 0;\n      } else if (isBindingPattern(node.name)) {\n        return setOriginalNode(setTextRange(factory2.createParameterDeclaration(void 0, void 0, factory2.getGeneratedNameForNode(node), void 0, void 0, void 0), node), node);\n      } else if (node.initializer) {\n        return setOriginalNode(setTextRange(factory2.createParameterDeclaration(void 0, void 0, node.name, void 0, void 0, void 0), node), node);\n      } else {\n        return node;\n      }\n    }\n    function hasDefaultValueOrBindingPattern(node) {\n      return node.initializer !== void 0 || isBindingPattern(node.name);\n    }\n    function addDefaultValueAssignmentsIfNeeded2(statements, node) {\n      if (!some(node.parameters, hasDefaultValueOrBindingPattern)) {\n        return false;\n      }\n      let added = false;\n      for (const parameter of node.parameters) {\n        const { name, initializer, dotDotDotToken } = parameter;\n        if (dotDotDotToken) {\n          continue;\n        }\n        if (isBindingPattern(name)) {\n          added = insertDefaultValueAssignmentForBindingPattern(statements, parameter, name, initializer) || added;\n        } else if (initializer) {\n          insertDefaultValueAssignmentForInitializer(statements, parameter, name, initializer);\n          added = true;\n        }\n      }\n      return added;\n    }\n    function insertDefaultValueAssignmentForBindingPattern(statements, parameter, name, initializer) {\n      if (name.elements.length > 0) {\n        insertStatementAfterCustomPrologue(statements, setEmitFlags(factory2.createVariableStatement(void 0, factory2.createVariableDeclarationList(flattenDestructuringBinding(parameter, visitor, context, 0, factory2.getGeneratedNameForNode(parameter)))), 2097152));\n        return true;\n      } else if (initializer) {\n        insertStatementAfterCustomPrologue(statements, setEmitFlags(factory2.createExpressionStatement(factory2.createAssignment(factory2.getGeneratedNameForNode(parameter), Debug.checkDefined(visitNode(initializer, visitor, isExpression)))), 2097152));\n        return true;\n      }\n      return false;\n    }\n    function insertDefaultValueAssignmentForInitializer(statements, parameter, name, initializer) {\n      initializer = Debug.checkDefined(visitNode(initializer, visitor, isExpression));\n      const statement = factory2.createIfStatement(factory2.createTypeCheck(factory2.cloneNode(name), \"undefined\"), setEmitFlags(setTextRange(factory2.createBlock([\n        factory2.createExpressionStatement(setEmitFlags(setTextRange(factory2.createAssignment(setEmitFlags(setParent(setTextRange(factory2.cloneNode(name), name), name.parent), 96), setEmitFlags(initializer, 96 | getEmitFlags(initializer) | 3072)), parameter), 3072))\n      ]), parameter), 1 | 64 | 768 | 3072));\n      startOnNewLine(statement);\n      setTextRange(statement, parameter);\n      setEmitFlags(statement, 768 | 64 | 2097152 | 3072);\n      insertStatementAfterCustomPrologue(statements, statement);\n    }\n    function shouldAddRestParameter(node, inConstructorWithSynthesizedSuper) {\n      return !!(node && node.dotDotDotToken && !inConstructorWithSynthesizedSuper);\n    }\n    function addRestParameterIfNeeded(statements, node, inConstructorWithSynthesizedSuper) {\n      const prologueStatements = [];\n      const parameter = lastOrUndefined(node.parameters);\n      if (!shouldAddRestParameter(parameter, inConstructorWithSynthesizedSuper)) {\n        return false;\n      }\n      const declarationName = parameter.name.kind === 79 ? setParent(setTextRange(factory2.cloneNode(parameter.name), parameter.name), parameter.name.parent) : factory2.createTempVariable(void 0);\n      setEmitFlags(declarationName, 96);\n      const expressionName = parameter.name.kind === 79 ? factory2.cloneNode(parameter.name) : declarationName;\n      const restIndex = node.parameters.length - 1;\n      const temp = factory2.createLoopVariable();\n      prologueStatements.push(setEmitFlags(setTextRange(factory2.createVariableStatement(void 0, factory2.createVariableDeclarationList([\n        factory2.createVariableDeclaration(declarationName, void 0, void 0, factory2.createArrayLiteralExpression([]))\n      ])), parameter), 2097152));\n      const forStatement = factory2.createForStatement(setTextRange(factory2.createVariableDeclarationList([\n        factory2.createVariableDeclaration(temp, void 0, void 0, factory2.createNumericLiteral(restIndex))\n      ]), parameter), setTextRange(factory2.createLessThan(temp, factory2.createPropertyAccessExpression(factory2.createIdentifier(\"arguments\"), \"length\")), parameter), setTextRange(factory2.createPostfixIncrement(temp), parameter), factory2.createBlock([\n        startOnNewLine(setTextRange(factory2.createExpressionStatement(factory2.createAssignment(factory2.createElementAccessExpression(expressionName, restIndex === 0 ? temp : factory2.createSubtract(temp, factory2.createNumericLiteral(restIndex))), factory2.createElementAccessExpression(factory2.createIdentifier(\"arguments\"), temp))), parameter))\n      ]));\n      setEmitFlags(forStatement, 2097152);\n      startOnNewLine(forStatement);\n      prologueStatements.push(forStatement);\n      if (parameter.name.kind !== 79) {\n        prologueStatements.push(setEmitFlags(setTextRange(factory2.createVariableStatement(void 0, factory2.createVariableDeclarationList(flattenDestructuringBinding(parameter, visitor, context, 0, expressionName))), parameter), 2097152));\n      }\n      insertStatementsAfterCustomPrologue(statements, prologueStatements);\n      return true;\n    }\n    function insertCaptureThisForNodeIfNeeded(statements, node) {\n      if (hierarchyFacts & 65536 && node.kind !== 216) {\n        insertCaptureThisForNode(statements, node, factory2.createThis());\n        return true;\n      }\n      return false;\n    }\n    function insertSuperThisCaptureThisForNode(statements, superExpression) {\n      enableSubstitutionsForCapturedThis();\n      const assignSuperExpression = factory2.createExpressionStatement(factory2.createBinaryExpression(factory2.createThis(), 63, superExpression));\n      insertStatementAfterCustomPrologue(statements, assignSuperExpression);\n      setCommentRange(assignSuperExpression, getOriginalNode(superExpression).parent);\n    }\n    function insertCaptureThisForNode(statements, node, initializer) {\n      enableSubstitutionsForCapturedThis();\n      const captureThisStatement = factory2.createVariableStatement(void 0, factory2.createVariableDeclarationList([\n        factory2.createVariableDeclaration(factory2.createUniqueName(\"_this\", 16 | 32), void 0, void 0, initializer)\n      ]));\n      setEmitFlags(captureThisStatement, 3072 | 2097152);\n      setSourceMapRange(captureThisStatement, node);\n      insertStatementAfterCustomPrologue(statements, captureThisStatement);\n    }\n    function insertCaptureNewTargetIfNeeded(statements, node, copyOnWrite) {\n      if (hierarchyFacts & 32768) {\n        let newTarget;\n        switch (node.kind) {\n          case 216:\n            return statements;\n          case 171:\n          case 174:\n          case 175:\n            newTarget = factory2.createVoidZero();\n            break;\n          case 173:\n            newTarget = factory2.createPropertyAccessExpression(setEmitFlags(factory2.createThis(), 8), \"constructor\");\n            break;\n          case 259:\n          case 215:\n            newTarget = factory2.createConditionalExpression(factory2.createLogicalAnd(setEmitFlags(factory2.createThis(), 8), factory2.createBinaryExpression(setEmitFlags(factory2.createThis(), 8), 102, factory2.getLocalName(node))), void 0, factory2.createPropertyAccessExpression(setEmitFlags(factory2.createThis(), 8), \"constructor\"), void 0, factory2.createVoidZero());\n            break;\n          default:\n            return Debug.failBadSyntaxKind(node);\n        }\n        const captureNewTargetStatement = factory2.createVariableStatement(void 0, factory2.createVariableDeclarationList([\n          factory2.createVariableDeclaration(factory2.createUniqueName(\"_newTarget\", 16 | 32), void 0, void 0, newTarget)\n        ]));\n        setEmitFlags(captureNewTargetStatement, 3072 | 2097152);\n        if (copyOnWrite) {\n          statements = statements.slice();\n        }\n        insertStatementAfterCustomPrologue(statements, captureNewTargetStatement);\n      }\n      return statements;\n    }\n    function addClassMembers(statements, node) {\n      for (const member of node.members) {\n        switch (member.kind) {\n          case 237:\n            statements.push(transformSemicolonClassElementToStatement(member));\n            break;\n          case 171:\n            statements.push(transformClassMethodDeclarationToStatement(getClassMemberPrefix(node, member), member, node));\n            break;\n          case 174:\n          case 175:\n            const accessors = getAllAccessorDeclarations(node.members, member);\n            if (member === accessors.firstAccessor) {\n              statements.push(transformAccessorsToStatement(getClassMemberPrefix(node, member), accessors, node));\n            }\n            break;\n          case 173:\n          case 172:\n            break;\n          default:\n            Debug.failBadSyntaxKind(member, currentSourceFile && currentSourceFile.fileName);\n            break;\n        }\n      }\n    }\n    function transformSemicolonClassElementToStatement(member) {\n      return setTextRange(factory2.createEmptyStatement(), member);\n    }\n    function transformClassMethodDeclarationToStatement(receiver, member, container) {\n      const commentRange = getCommentRange(member);\n      const sourceMapRange = getSourceMapRange(member);\n      const memberFunction = transformFunctionLikeToExpression(member, member, void 0, container);\n      const propertyName = visitNode(member.name, visitor, isPropertyName);\n      Debug.assert(propertyName);\n      let e;\n      if (!isPrivateIdentifier(propertyName) && getUseDefineForClassFields(context.getCompilerOptions())) {\n        const name = isComputedPropertyName(propertyName) ? propertyName.expression : isIdentifier(propertyName) ? factory2.createStringLiteral(unescapeLeadingUnderscores(propertyName.escapedText)) : propertyName;\n        e = factory2.createObjectDefinePropertyCall(receiver, name, factory2.createPropertyDescriptor({ value: memberFunction, enumerable: false, writable: true, configurable: true }));\n      } else {\n        const memberName = createMemberAccessForPropertyName(factory2, receiver, propertyName, member.name);\n        e = factory2.createAssignment(memberName, memberFunction);\n      }\n      setEmitFlags(memberFunction, 3072);\n      setSourceMapRange(memberFunction, sourceMapRange);\n      const statement = setTextRange(factory2.createExpressionStatement(e), member);\n      setOriginalNode(statement, member);\n      setCommentRange(statement, commentRange);\n      setEmitFlags(statement, 96);\n      return statement;\n    }\n    function transformAccessorsToStatement(receiver, accessors, container) {\n      const statement = factory2.createExpressionStatement(transformAccessorsToExpression(receiver, accessors, container, false));\n      setEmitFlags(statement, 3072);\n      setSourceMapRange(statement, getSourceMapRange(accessors.firstAccessor));\n      return statement;\n    }\n    function transformAccessorsToExpression(receiver, { firstAccessor, getAccessor, setAccessor }, container, startsOnNewLine) {\n      const target = setParent(setTextRange(factory2.cloneNode(receiver), receiver), receiver.parent);\n      setEmitFlags(target, 3072 | 64);\n      setSourceMapRange(target, firstAccessor.name);\n      const visitedAccessorName = visitNode(firstAccessor.name, visitor, isPropertyName);\n      Debug.assert(visitedAccessorName);\n      if (isPrivateIdentifier(visitedAccessorName)) {\n        return Debug.failBadSyntaxKind(visitedAccessorName, \"Encountered unhandled private identifier while transforming ES2015.\");\n      }\n      const propertyName = createExpressionForPropertyName(factory2, visitedAccessorName);\n      setEmitFlags(propertyName, 3072 | 32);\n      setSourceMapRange(propertyName, firstAccessor.name);\n      const properties = [];\n      if (getAccessor) {\n        const getterFunction = transformFunctionLikeToExpression(getAccessor, void 0, void 0, container);\n        setSourceMapRange(getterFunction, getSourceMapRange(getAccessor));\n        setEmitFlags(getterFunction, 1024);\n        const getter = factory2.createPropertyAssignment(\"get\", getterFunction);\n        setCommentRange(getter, getCommentRange(getAccessor));\n        properties.push(getter);\n      }\n      if (setAccessor) {\n        const setterFunction = transformFunctionLikeToExpression(setAccessor, void 0, void 0, container);\n        setSourceMapRange(setterFunction, getSourceMapRange(setAccessor));\n        setEmitFlags(setterFunction, 1024);\n        const setter = factory2.createPropertyAssignment(\"set\", setterFunction);\n        setCommentRange(setter, getCommentRange(setAccessor));\n        properties.push(setter);\n      }\n      properties.push(factory2.createPropertyAssignment(\"enumerable\", getAccessor || setAccessor ? factory2.createFalse() : factory2.createTrue()), factory2.createPropertyAssignment(\"configurable\", factory2.createTrue()));\n      const call = factory2.createCallExpression(factory2.createPropertyAccessExpression(factory2.createIdentifier(\"Object\"), \"defineProperty\"), void 0, [\n        target,\n        propertyName,\n        factory2.createObjectLiteralExpression(properties, true)\n      ]);\n      if (startsOnNewLine) {\n        startOnNewLine(call);\n      }\n      return call;\n    }\n    function visitArrowFunction(node) {\n      if (node.transformFlags & 16384 && !(hierarchyFacts & 16384)) {\n        hierarchyFacts |= 65536;\n      }\n      const savedConvertedLoopState = convertedLoopState;\n      convertedLoopState = void 0;\n      const ancestorFacts = enterSubtree(15232, 66);\n      const func = factory2.createFunctionExpression(void 0, void 0, void 0, void 0, visitParameterList(node.parameters, visitor, context), void 0, transformFunctionBody2(node));\n      setTextRange(func, node);\n      setOriginalNode(func, node);\n      setEmitFlags(func, 16);\n      exitSubtree(ancestorFacts, 0, 0);\n      convertedLoopState = savedConvertedLoopState;\n      return func;\n    }\n    function visitFunctionExpression(node) {\n      const ancestorFacts = getEmitFlags(node) & 524288 ? enterSubtree(32662, 69) : enterSubtree(32670, 65);\n      const savedConvertedLoopState = convertedLoopState;\n      convertedLoopState = void 0;\n      const parameters = visitParameterList(node.parameters, visitor, context);\n      const body = transformFunctionBody2(node);\n      const name = hierarchyFacts & 32768 ? factory2.getLocalName(node) : node.name;\n      exitSubtree(ancestorFacts, 98304, 0);\n      convertedLoopState = savedConvertedLoopState;\n      return factory2.updateFunctionExpression(node, void 0, node.asteriskToken, name, void 0, parameters, void 0, body);\n    }\n    function visitFunctionDeclaration(node) {\n      const savedConvertedLoopState = convertedLoopState;\n      convertedLoopState = void 0;\n      const ancestorFacts = enterSubtree(32670, 65);\n      const parameters = visitParameterList(node.parameters, visitor, context);\n      const body = transformFunctionBody2(node);\n      const name = hierarchyFacts & 32768 ? factory2.getLocalName(node) : node.name;\n      exitSubtree(ancestorFacts, 98304, 0);\n      convertedLoopState = savedConvertedLoopState;\n      return factory2.updateFunctionDeclaration(node, visitNodes2(node.modifiers, visitor, isModifier), node.asteriskToken, name, void 0, parameters, void 0, body);\n    }\n    function transformFunctionLikeToExpression(node, location, name, container) {\n      const savedConvertedLoopState = convertedLoopState;\n      convertedLoopState = void 0;\n      const ancestorFacts = container && isClassLike(container) && !isStatic(node) ? enterSubtree(32670, 65 | 8) : enterSubtree(32670, 65);\n      const parameters = visitParameterList(node.parameters, visitor, context);\n      const body = transformFunctionBody2(node);\n      if (hierarchyFacts & 32768 && !name && (node.kind === 259 || node.kind === 215)) {\n        name = factory2.getGeneratedNameForNode(node);\n      }\n      exitSubtree(ancestorFacts, 98304, 0);\n      convertedLoopState = savedConvertedLoopState;\n      return setOriginalNode(setTextRange(factory2.createFunctionExpression(void 0, node.asteriskToken, name, void 0, parameters, void 0, body), location), node);\n    }\n    function transformFunctionBody2(node) {\n      let multiLine = false;\n      let singleLine = false;\n      let statementsLocation;\n      let closeBraceLocation;\n      const prologue = [];\n      const statements = [];\n      const body = node.body;\n      let statementOffset;\n      resumeLexicalEnvironment();\n      if (isBlock(body)) {\n        statementOffset = factory2.copyStandardPrologue(body.statements, prologue, 0, false);\n        statementOffset = factory2.copyCustomPrologue(body.statements, statements, statementOffset, visitor, isHoistedFunction);\n        statementOffset = factory2.copyCustomPrologue(body.statements, statements, statementOffset, visitor, isHoistedVariableStatement);\n      }\n      multiLine = addDefaultValueAssignmentsIfNeeded2(statements, node) || multiLine;\n      multiLine = addRestParameterIfNeeded(statements, node, false) || multiLine;\n      if (isBlock(body)) {\n        statementOffset = factory2.copyCustomPrologue(body.statements, statements, statementOffset, visitor);\n        statementsLocation = body.statements;\n        addRange(statements, visitNodes2(body.statements, visitor, isStatement, statementOffset));\n        if (!multiLine && body.multiLine) {\n          multiLine = true;\n        }\n      } else {\n        Debug.assert(node.kind === 216);\n        statementsLocation = moveRangeEnd(body, -1);\n        const equalsGreaterThanToken = node.equalsGreaterThanToken;\n        if (!nodeIsSynthesized(equalsGreaterThanToken) && !nodeIsSynthesized(body)) {\n          if (rangeEndIsOnSameLineAsRangeStart(equalsGreaterThanToken, body, currentSourceFile)) {\n            singleLine = true;\n          } else {\n            multiLine = true;\n          }\n        }\n        const expression = visitNode(body, visitor, isExpression);\n        const returnStatement = factory2.createReturnStatement(expression);\n        setTextRange(returnStatement, body);\n        moveSyntheticComments(returnStatement, body);\n        setEmitFlags(returnStatement, 768 | 64 | 2048);\n        statements.push(returnStatement);\n        closeBraceLocation = body;\n      }\n      factory2.mergeLexicalEnvironment(prologue, endLexicalEnvironment());\n      insertCaptureNewTargetIfNeeded(prologue, node, false);\n      insertCaptureThisForNodeIfNeeded(prologue, node);\n      if (some(prologue)) {\n        multiLine = true;\n      }\n      statements.unshift(...prologue);\n      if (isBlock(body) && arrayIsEqualTo(statements, body.statements)) {\n        return body;\n      }\n      const block = factory2.createBlock(setTextRange(factory2.createNodeArray(statements), statementsLocation), multiLine);\n      setTextRange(block, node.body);\n      if (!multiLine && singleLine) {\n        setEmitFlags(block, 1);\n      }\n      if (closeBraceLocation) {\n        setTokenSourceMapRange(block, 19, closeBraceLocation);\n      }\n      setOriginalNode(block, node.body);\n      return block;\n    }\n    function visitBlock(node, isFunctionBody2) {\n      if (isFunctionBody2) {\n        return visitEachChild(node, visitor, context);\n      }\n      const ancestorFacts = hierarchyFacts & 256 ? enterSubtree(7104, 512) : enterSubtree(6976, 128);\n      const updated = visitEachChild(node, visitor, context);\n      exitSubtree(ancestorFacts, 0, 0);\n      return updated;\n    }\n    function visitExpressionStatement(node) {\n      return visitEachChild(node, visitorWithUnusedExpressionResult, context);\n    }\n    function visitParenthesizedExpression(node, expressionResultIsUnused2) {\n      return visitEachChild(node, expressionResultIsUnused2 ? visitorWithUnusedExpressionResult : visitor, context);\n    }\n    function visitBinaryExpression(node, expressionResultIsUnused2) {\n      if (isDestructuringAssignment(node)) {\n        return flattenDestructuringAssignment(node, visitor, context, 0, !expressionResultIsUnused2);\n      }\n      if (node.operatorToken.kind === 27) {\n        return factory2.updateBinaryExpression(node, Debug.checkDefined(visitNode(node.left, visitorWithUnusedExpressionResult, isExpression)), node.operatorToken, Debug.checkDefined(visitNode(node.right, expressionResultIsUnused2 ? visitorWithUnusedExpressionResult : visitor, isExpression)));\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitCommaListExpression(node, expressionResultIsUnused2) {\n      if (expressionResultIsUnused2) {\n        return visitEachChild(node, visitorWithUnusedExpressionResult, context);\n      }\n      let result;\n      for (let i = 0; i < node.elements.length; i++) {\n        const element = node.elements[i];\n        const visited = visitNode(element, i < node.elements.length - 1 ? visitorWithUnusedExpressionResult : visitor, isExpression);\n        if (result || visited !== element) {\n          result || (result = node.elements.slice(0, i));\n          Debug.assert(visited);\n          result.push(visited);\n        }\n      }\n      const elements = result ? setTextRange(factory2.createNodeArray(result), node.elements) : node.elements;\n      return factory2.updateCommaListExpression(node, elements);\n    }\n    function isVariableStatementOfTypeScriptClassWrapper(node) {\n      return node.declarationList.declarations.length === 1 && !!node.declarationList.declarations[0].initializer && !!(getInternalEmitFlags(node.declarationList.declarations[0].initializer) & 1);\n    }\n    function visitVariableStatement(node) {\n      const ancestorFacts = enterSubtree(0, hasSyntacticModifier(node, 1) ? 32 : 0);\n      let updated;\n      if (convertedLoopState && (node.declarationList.flags & 3) === 0 && !isVariableStatementOfTypeScriptClassWrapper(node)) {\n        let assignments;\n        for (const decl of node.declarationList.declarations) {\n          hoistVariableDeclarationDeclaredInConvertedLoop(convertedLoopState, decl);\n          if (decl.initializer) {\n            let assignment;\n            if (isBindingPattern(decl.name)) {\n              assignment = flattenDestructuringAssignment(decl, visitor, context, 0);\n            } else {\n              assignment = factory2.createBinaryExpression(decl.name, 63, Debug.checkDefined(visitNode(decl.initializer, visitor, isExpression)));\n              setTextRange(assignment, decl);\n            }\n            assignments = append(assignments, assignment);\n          }\n        }\n        if (assignments) {\n          updated = setTextRange(factory2.createExpressionStatement(factory2.inlineExpressions(assignments)), node);\n        } else {\n          updated = void 0;\n        }\n      } else {\n        updated = visitEachChild(node, visitor, context);\n      }\n      exitSubtree(ancestorFacts, 0, 0);\n      return updated;\n    }\n    function visitVariableDeclarationList(node) {\n      if (node.flags & 3 || node.transformFlags & 524288) {\n        if (node.flags & 3) {\n          enableSubstitutionsForBlockScopedBindings();\n        }\n        const declarations = visitNodes2(node.declarations, node.flags & 1 ? visitVariableDeclarationInLetDeclarationList : visitVariableDeclaration, isVariableDeclaration);\n        const declarationList = factory2.createVariableDeclarationList(declarations);\n        setOriginalNode(declarationList, node);\n        setTextRange(declarationList, node);\n        setCommentRange(declarationList, node);\n        if (node.transformFlags & 524288 && (isBindingPattern(node.declarations[0].name) || isBindingPattern(last(node.declarations).name))) {\n          setSourceMapRange(declarationList, getRangeUnion(declarations));\n        }\n        return declarationList;\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function getRangeUnion(declarations) {\n      let pos = -1, end = -1;\n      for (const node of declarations) {\n        pos = pos === -1 ? node.pos : node.pos === -1 ? pos : Math.min(pos, node.pos);\n        end = Math.max(end, node.end);\n      }\n      return createRange(pos, end);\n    }\n    function shouldEmitExplicitInitializerForLetDeclaration(node) {\n      const flags = resolver.getNodeCheckFlags(node);\n      const isCapturedInFunction = flags & 16384;\n      const isDeclaredInLoop = flags & 32768;\n      const emittedAsTopLevel = (hierarchyFacts & 64) !== 0 || isCapturedInFunction && isDeclaredInLoop && (hierarchyFacts & 512) !== 0;\n      const emitExplicitInitializer = !emittedAsTopLevel && (hierarchyFacts & 4096) === 0 && (!resolver.isDeclarationWithCollidingName(node) || isDeclaredInLoop && !isCapturedInFunction && (hierarchyFacts & (2048 | 4096)) === 0);\n      return emitExplicitInitializer;\n    }\n    function visitVariableDeclarationInLetDeclarationList(node) {\n      const name = node.name;\n      if (isBindingPattern(name)) {\n        return visitVariableDeclaration(node);\n      }\n      if (!node.initializer && shouldEmitExplicitInitializerForLetDeclaration(node)) {\n        return factory2.updateVariableDeclaration(node, node.name, void 0, void 0, factory2.createVoidZero());\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitVariableDeclaration(node) {\n      const ancestorFacts = enterSubtree(32, 0);\n      let updated;\n      if (isBindingPattern(node.name)) {\n        updated = flattenDestructuringBinding(node, visitor, context, 0, void 0, (ancestorFacts & 32) !== 0);\n      } else {\n        updated = visitEachChild(node, visitor, context);\n      }\n      exitSubtree(ancestorFacts, 0, 0);\n      return updated;\n    }\n    function recordLabel(node) {\n      convertedLoopState.labels.set(idText(node.label), true);\n    }\n    function resetLabel(node) {\n      convertedLoopState.labels.set(idText(node.label), false);\n    }\n    function visitLabeledStatement(node) {\n      if (convertedLoopState && !convertedLoopState.labels) {\n        convertedLoopState.labels = /* @__PURE__ */ new Map();\n      }\n      const statement = unwrapInnermostStatementOfLabel(node, convertedLoopState && recordLabel);\n      return isIterationStatement(statement, false) ? visitIterationStatement(statement, node) : factory2.restoreEnclosingLabel(Debug.checkDefined(visitNode(statement, visitor, isStatement, factory2.liftToBlock)), node, convertedLoopState && resetLabel);\n    }\n    function visitIterationStatement(node, outermostLabeledStatement) {\n      switch (node.kind) {\n        case 243:\n        case 244:\n          return visitDoOrWhileStatement(node, outermostLabeledStatement);\n        case 245:\n          return visitForStatement(node, outermostLabeledStatement);\n        case 246:\n          return visitForInStatement(node, outermostLabeledStatement);\n        case 247:\n          return visitForOfStatement(node, outermostLabeledStatement);\n      }\n    }\n    function visitIterationStatementWithFacts(excludeFacts, includeFacts, node, outermostLabeledStatement, convert) {\n      const ancestorFacts = enterSubtree(excludeFacts, includeFacts);\n      const updated = convertIterationStatementBodyIfNecessary(node, outermostLabeledStatement, ancestorFacts, convert);\n      exitSubtree(ancestorFacts, 0, 0);\n      return updated;\n    }\n    function visitDoOrWhileStatement(node, outermostLabeledStatement) {\n      return visitIterationStatementWithFacts(0, 1280, node, outermostLabeledStatement);\n    }\n    function visitForStatement(node, outermostLabeledStatement) {\n      return visitIterationStatementWithFacts(5056, 3328, node, outermostLabeledStatement);\n    }\n    function visitEachChildOfForStatement2(node) {\n      return factory2.updateForStatement(node, visitNode(node.initializer, visitorWithUnusedExpressionResult, isForInitializer), visitNode(node.condition, visitor, isExpression), visitNode(node.incrementor, visitorWithUnusedExpressionResult, isExpression), Debug.checkDefined(visitNode(node.statement, visitor, isStatement, factory2.liftToBlock)));\n    }\n    function visitForInStatement(node, outermostLabeledStatement) {\n      return visitIterationStatementWithFacts(3008, 5376, node, outermostLabeledStatement);\n    }\n    function visitForOfStatement(node, outermostLabeledStatement) {\n      return visitIterationStatementWithFacts(3008, 5376, node, outermostLabeledStatement, compilerOptions.downlevelIteration ? convertForOfStatementForIterable : convertForOfStatementForArray);\n    }\n    function convertForOfStatementHead(node, boundValue, convertedLoopBodyStatements) {\n      const statements = [];\n      const initializer = node.initializer;\n      if (isVariableDeclarationList(initializer)) {\n        if (node.initializer.flags & 3) {\n          enableSubstitutionsForBlockScopedBindings();\n        }\n        const firstOriginalDeclaration = firstOrUndefined(initializer.declarations);\n        if (firstOriginalDeclaration && isBindingPattern(firstOriginalDeclaration.name)) {\n          const declarations = flattenDestructuringBinding(firstOriginalDeclaration, visitor, context, 0, boundValue);\n          const declarationList = setTextRange(factory2.createVariableDeclarationList(declarations), node.initializer);\n          setOriginalNode(declarationList, node.initializer);\n          setSourceMapRange(declarationList, createRange(declarations[0].pos, last(declarations).end));\n          statements.push(factory2.createVariableStatement(void 0, declarationList));\n        } else {\n          statements.push(setTextRange(factory2.createVariableStatement(void 0, setOriginalNode(setTextRange(factory2.createVariableDeclarationList([\n            factory2.createVariableDeclaration(firstOriginalDeclaration ? firstOriginalDeclaration.name : factory2.createTempVariable(void 0), void 0, void 0, boundValue)\n          ]), moveRangePos(initializer, -1)), initializer)), moveRangeEnd(initializer, -1)));\n        }\n      } else {\n        const assignment = factory2.createAssignment(initializer, boundValue);\n        if (isDestructuringAssignment(assignment)) {\n          statements.push(factory2.createExpressionStatement(visitBinaryExpression(assignment, true)));\n        } else {\n          setTextRangeEnd(assignment, initializer.end);\n          statements.push(setTextRange(factory2.createExpressionStatement(Debug.checkDefined(visitNode(assignment, visitor, isExpression))), moveRangeEnd(initializer, -1)));\n        }\n      }\n      if (convertedLoopBodyStatements) {\n        return createSyntheticBlockForConvertedStatements(addRange(statements, convertedLoopBodyStatements));\n      } else {\n        const statement = visitNode(node.statement, visitor, isStatement, factory2.liftToBlock);\n        Debug.assert(statement);\n        if (isBlock(statement)) {\n          return factory2.updateBlock(statement, setTextRange(factory2.createNodeArray(concatenate(statements, statement.statements)), statement.statements));\n        } else {\n          statements.push(statement);\n          return createSyntheticBlockForConvertedStatements(statements);\n        }\n      }\n    }\n    function createSyntheticBlockForConvertedStatements(statements) {\n      return setEmitFlags(factory2.createBlock(factory2.createNodeArray(statements), true), 96 | 768);\n    }\n    function convertForOfStatementForArray(node, outermostLabeledStatement, convertedLoopBodyStatements) {\n      const expression = visitNode(node.expression, visitor, isExpression);\n      Debug.assert(expression);\n      const counter = factory2.createLoopVariable();\n      const rhsReference = isIdentifier(expression) ? factory2.getGeneratedNameForNode(expression) : factory2.createTempVariable(void 0);\n      setEmitFlags(expression, 96 | getEmitFlags(expression));\n      const forStatement = setTextRange(factory2.createForStatement(setEmitFlags(setTextRange(factory2.createVariableDeclarationList([\n        setTextRange(factory2.createVariableDeclaration(counter, void 0, void 0, factory2.createNumericLiteral(0)), moveRangePos(node.expression, -1)),\n        setTextRange(factory2.createVariableDeclaration(rhsReference, void 0, void 0, expression), node.expression)\n      ]), node.expression), 4194304), setTextRange(factory2.createLessThan(counter, factory2.createPropertyAccessExpression(rhsReference, \"length\")), node.expression), setTextRange(factory2.createPostfixIncrement(counter), node.expression), convertForOfStatementHead(node, factory2.createElementAccessExpression(rhsReference, counter), convertedLoopBodyStatements)), node);\n      setEmitFlags(forStatement, 512);\n      setTextRange(forStatement, node);\n      return factory2.restoreEnclosingLabel(forStatement, outermostLabeledStatement, convertedLoopState && resetLabel);\n    }\n    function convertForOfStatementForIterable(node, outermostLabeledStatement, convertedLoopBodyStatements, ancestorFacts) {\n      const expression = visitNode(node.expression, visitor, isExpression);\n      Debug.assert(expression);\n      const iterator = isIdentifier(expression) ? factory2.getGeneratedNameForNode(expression) : factory2.createTempVariable(void 0);\n      const result = isIdentifier(expression) ? factory2.getGeneratedNameForNode(iterator) : factory2.createTempVariable(void 0);\n      const errorRecord = factory2.createUniqueName(\"e\");\n      const catchVariable = factory2.getGeneratedNameForNode(errorRecord);\n      const returnMethod = factory2.createTempVariable(void 0);\n      const values = setTextRange(emitHelpers().createValuesHelper(expression), node.expression);\n      const next = factory2.createCallExpression(factory2.createPropertyAccessExpression(iterator, \"next\"), void 0, []);\n      hoistVariableDeclaration(errorRecord);\n      hoistVariableDeclaration(returnMethod);\n      const initializer = ancestorFacts & 1024 ? factory2.inlineExpressions([factory2.createAssignment(errorRecord, factory2.createVoidZero()), values]) : values;\n      const forStatement = setEmitFlags(setTextRange(factory2.createForStatement(setEmitFlags(setTextRange(factory2.createVariableDeclarationList([\n        setTextRange(factory2.createVariableDeclaration(iterator, void 0, void 0, initializer), node.expression),\n        factory2.createVariableDeclaration(result, void 0, void 0, next)\n      ]), node.expression), 4194304), factory2.createLogicalNot(factory2.createPropertyAccessExpression(result, \"done\")), factory2.createAssignment(result, next), convertForOfStatementHead(node, factory2.createPropertyAccessExpression(result, \"value\"), convertedLoopBodyStatements)), node), 512);\n      return factory2.createTryStatement(factory2.createBlock([\n        factory2.restoreEnclosingLabel(forStatement, outermostLabeledStatement, convertedLoopState && resetLabel)\n      ]), factory2.createCatchClause(factory2.createVariableDeclaration(catchVariable), setEmitFlags(factory2.createBlock([\n        factory2.createExpressionStatement(factory2.createAssignment(errorRecord, factory2.createObjectLiteralExpression([\n          factory2.createPropertyAssignment(\"error\", catchVariable)\n        ])))\n      ]), 1)), factory2.createBlock([\n        factory2.createTryStatement(factory2.createBlock([\n          setEmitFlags(factory2.createIfStatement(factory2.createLogicalAnd(factory2.createLogicalAnd(result, factory2.createLogicalNot(factory2.createPropertyAccessExpression(result, \"done\"))), factory2.createAssignment(returnMethod, factory2.createPropertyAccessExpression(iterator, \"return\"))), factory2.createExpressionStatement(factory2.createFunctionCallCall(returnMethod, iterator, []))), 1)\n        ]), void 0, setEmitFlags(factory2.createBlock([\n          setEmitFlags(factory2.createIfStatement(errorRecord, factory2.createThrowStatement(factory2.createPropertyAccessExpression(errorRecord, \"error\"))), 1)\n        ]), 1))\n      ]));\n    }\n    function visitObjectLiteralExpression(node) {\n      const properties = node.properties;\n      let numInitialProperties = -1, hasComputed = false;\n      for (let i = 0; i < properties.length; i++) {\n        const property = properties[i];\n        if (property.transformFlags & 1048576 && hierarchyFacts & 4 || (hasComputed = Debug.checkDefined(property.name).kind === 164)) {\n          numInitialProperties = i;\n          break;\n        }\n      }\n      if (numInitialProperties < 0) {\n        return visitEachChild(node, visitor, context);\n      }\n      const temp = factory2.createTempVariable(hoistVariableDeclaration);\n      const expressions = [];\n      const assignment = factory2.createAssignment(temp, setEmitFlags(factory2.createObjectLiteralExpression(visitNodes2(properties, visitor, isObjectLiteralElementLike, 0, numInitialProperties), node.multiLine), hasComputed ? 131072 : 0));\n      if (node.multiLine) {\n        startOnNewLine(assignment);\n      }\n      expressions.push(assignment);\n      addObjectLiteralMembers(expressions, node, temp, numInitialProperties);\n      expressions.push(node.multiLine ? startOnNewLine(setParent(setTextRange(factory2.cloneNode(temp), temp), temp.parent)) : temp);\n      return factory2.inlineExpressions(expressions);\n    }\n    function shouldConvertPartOfIterationStatement(node) {\n      return (resolver.getNodeCheckFlags(node) & 8192) !== 0;\n    }\n    function shouldConvertInitializerOfForStatement(node) {\n      return isForStatement(node) && !!node.initializer && shouldConvertPartOfIterationStatement(node.initializer);\n    }\n    function shouldConvertConditionOfForStatement(node) {\n      return isForStatement(node) && !!node.condition && shouldConvertPartOfIterationStatement(node.condition);\n    }\n    function shouldConvertIncrementorOfForStatement(node) {\n      return isForStatement(node) && !!node.incrementor && shouldConvertPartOfIterationStatement(node.incrementor);\n    }\n    function shouldConvertIterationStatement(node) {\n      return shouldConvertBodyOfIterationStatement(node) || shouldConvertInitializerOfForStatement(node);\n    }\n    function shouldConvertBodyOfIterationStatement(node) {\n      return (resolver.getNodeCheckFlags(node) & 4096) !== 0;\n    }\n    function hoistVariableDeclarationDeclaredInConvertedLoop(state, node) {\n      if (!state.hoistedLocalVariables) {\n        state.hoistedLocalVariables = [];\n      }\n      visit(node.name);\n      function visit(node2) {\n        if (node2.kind === 79) {\n          state.hoistedLocalVariables.push(node2);\n        } else {\n          for (const element of node2.elements) {\n            if (!isOmittedExpression(element)) {\n              visit(element.name);\n            }\n          }\n        }\n      }\n    }\n    function convertIterationStatementBodyIfNecessary(node, outermostLabeledStatement, ancestorFacts, convert) {\n      if (!shouldConvertIterationStatement(node)) {\n        let saveAllowedNonLabeledJumps;\n        if (convertedLoopState) {\n          saveAllowedNonLabeledJumps = convertedLoopState.allowedNonLabeledJumps;\n          convertedLoopState.allowedNonLabeledJumps = 2 | 4;\n        }\n        const result = convert ? convert(node, outermostLabeledStatement, void 0, ancestorFacts) : factory2.restoreEnclosingLabel(isForStatement(node) ? visitEachChildOfForStatement2(node) : visitEachChild(node, visitor, context), outermostLabeledStatement, convertedLoopState && resetLabel);\n        if (convertedLoopState) {\n          convertedLoopState.allowedNonLabeledJumps = saveAllowedNonLabeledJumps;\n        }\n        return result;\n      }\n      const currentState = createConvertedLoopState(node);\n      const statements = [];\n      const outerConvertedLoopState = convertedLoopState;\n      convertedLoopState = currentState;\n      const initializerFunction = shouldConvertInitializerOfForStatement(node) ? createFunctionForInitializerOfForStatement(node, currentState) : void 0;\n      const bodyFunction = shouldConvertBodyOfIterationStatement(node) ? createFunctionForBodyOfIterationStatement(node, currentState, outerConvertedLoopState) : void 0;\n      convertedLoopState = outerConvertedLoopState;\n      if (initializerFunction)\n        statements.push(initializerFunction.functionDeclaration);\n      if (bodyFunction)\n        statements.push(bodyFunction.functionDeclaration);\n      addExtraDeclarationsForConvertedLoop(statements, currentState, outerConvertedLoopState);\n      if (initializerFunction) {\n        statements.push(generateCallToConvertedLoopInitializer(initializerFunction.functionName, initializerFunction.containsYield));\n      }\n      let loop;\n      if (bodyFunction) {\n        if (convert) {\n          loop = convert(node, outermostLabeledStatement, bodyFunction.part, ancestorFacts);\n        } else {\n          const clone2 = convertIterationStatementCore(node, initializerFunction, factory2.createBlock(bodyFunction.part, true));\n          loop = factory2.restoreEnclosingLabel(clone2, outermostLabeledStatement, convertedLoopState && resetLabel);\n        }\n      } else {\n        const clone2 = convertIterationStatementCore(node, initializerFunction, Debug.checkDefined(visitNode(node.statement, visitor, isStatement, factory2.liftToBlock)));\n        loop = factory2.restoreEnclosingLabel(clone2, outermostLabeledStatement, convertedLoopState && resetLabel);\n      }\n      statements.push(loop);\n      return statements;\n    }\n    function convertIterationStatementCore(node, initializerFunction, convertedLoopBody) {\n      switch (node.kind) {\n        case 245:\n          return convertForStatement(node, initializerFunction, convertedLoopBody);\n        case 246:\n          return convertForInStatement(node, convertedLoopBody);\n        case 247:\n          return convertForOfStatement(node, convertedLoopBody);\n        case 243:\n          return convertDoStatement(node, convertedLoopBody);\n        case 244:\n          return convertWhileStatement(node, convertedLoopBody);\n        default:\n          return Debug.failBadSyntaxKind(node, \"IterationStatement expected\");\n      }\n    }\n    function convertForStatement(node, initializerFunction, convertedLoopBody) {\n      const shouldConvertCondition = node.condition && shouldConvertPartOfIterationStatement(node.condition);\n      const shouldConvertIncrementor = shouldConvertCondition || node.incrementor && shouldConvertPartOfIterationStatement(node.incrementor);\n      return factory2.updateForStatement(node, visitNode(initializerFunction ? initializerFunction.part : node.initializer, visitorWithUnusedExpressionResult, isForInitializer), visitNode(shouldConvertCondition ? void 0 : node.condition, visitor, isExpression), visitNode(shouldConvertIncrementor ? void 0 : node.incrementor, visitorWithUnusedExpressionResult, isExpression), convertedLoopBody);\n    }\n    function convertForOfStatement(node, convertedLoopBody) {\n      return factory2.updateForOfStatement(node, void 0, Debug.checkDefined(visitNode(node.initializer, visitor, isForInitializer)), Debug.checkDefined(visitNode(node.expression, visitor, isExpression)), convertedLoopBody);\n    }\n    function convertForInStatement(node, convertedLoopBody) {\n      return factory2.updateForInStatement(node, Debug.checkDefined(visitNode(node.initializer, visitor, isForInitializer)), Debug.checkDefined(visitNode(node.expression, visitor, isExpression)), convertedLoopBody);\n    }\n    function convertDoStatement(node, convertedLoopBody) {\n      return factory2.updateDoStatement(node, convertedLoopBody, Debug.checkDefined(visitNode(node.expression, visitor, isExpression)));\n    }\n    function convertWhileStatement(node, convertedLoopBody) {\n      return factory2.updateWhileStatement(node, Debug.checkDefined(visitNode(node.expression, visitor, isExpression)), convertedLoopBody);\n    }\n    function createConvertedLoopState(node) {\n      let loopInitializer;\n      switch (node.kind) {\n        case 245:\n        case 246:\n        case 247:\n          const initializer = node.initializer;\n          if (initializer && initializer.kind === 258) {\n            loopInitializer = initializer;\n          }\n          break;\n      }\n      const loopParameters = [];\n      const loopOutParameters = [];\n      if (loopInitializer && getCombinedNodeFlags(loopInitializer) & 3) {\n        const hasCapturedBindingsInForHead = shouldConvertInitializerOfForStatement(node) || shouldConvertConditionOfForStatement(node) || shouldConvertIncrementorOfForStatement(node);\n        for (const decl of loopInitializer.declarations) {\n          processLoopVariableDeclaration(node, decl, loopParameters, loopOutParameters, hasCapturedBindingsInForHead);\n        }\n      }\n      const currentState = { loopParameters, loopOutParameters };\n      if (convertedLoopState) {\n        if (convertedLoopState.argumentsName) {\n          currentState.argumentsName = convertedLoopState.argumentsName;\n        }\n        if (convertedLoopState.thisName) {\n          currentState.thisName = convertedLoopState.thisName;\n        }\n        if (convertedLoopState.hoistedLocalVariables) {\n          currentState.hoistedLocalVariables = convertedLoopState.hoistedLocalVariables;\n        }\n      }\n      return currentState;\n    }\n    function addExtraDeclarationsForConvertedLoop(statements, state, outerState) {\n      let extraVariableDeclarations;\n      if (state.argumentsName) {\n        if (outerState) {\n          outerState.argumentsName = state.argumentsName;\n        } else {\n          (extraVariableDeclarations || (extraVariableDeclarations = [])).push(factory2.createVariableDeclaration(state.argumentsName, void 0, void 0, factory2.createIdentifier(\"arguments\")));\n        }\n      }\n      if (state.thisName) {\n        if (outerState) {\n          outerState.thisName = state.thisName;\n        } else {\n          (extraVariableDeclarations || (extraVariableDeclarations = [])).push(factory2.createVariableDeclaration(state.thisName, void 0, void 0, factory2.createIdentifier(\"this\")));\n        }\n      }\n      if (state.hoistedLocalVariables) {\n        if (outerState) {\n          outerState.hoistedLocalVariables = state.hoistedLocalVariables;\n        } else {\n          if (!extraVariableDeclarations) {\n            extraVariableDeclarations = [];\n          }\n          for (const identifier of state.hoistedLocalVariables) {\n            extraVariableDeclarations.push(factory2.createVariableDeclaration(identifier));\n          }\n        }\n      }\n      if (state.loopOutParameters.length) {\n        if (!extraVariableDeclarations) {\n          extraVariableDeclarations = [];\n        }\n        for (const outParam of state.loopOutParameters) {\n          extraVariableDeclarations.push(factory2.createVariableDeclaration(outParam.outParamName));\n        }\n      }\n      if (state.conditionVariable) {\n        if (!extraVariableDeclarations) {\n          extraVariableDeclarations = [];\n        }\n        extraVariableDeclarations.push(factory2.createVariableDeclaration(state.conditionVariable, void 0, void 0, factory2.createFalse()));\n      }\n      if (extraVariableDeclarations) {\n        statements.push(factory2.createVariableStatement(void 0, factory2.createVariableDeclarationList(extraVariableDeclarations)));\n      }\n    }\n    function createOutVariable(p) {\n      return factory2.createVariableDeclaration(p.originalName, void 0, void 0, p.outParamName);\n    }\n    function createFunctionForInitializerOfForStatement(node, currentState) {\n      const functionName = factory2.createUniqueName(\"_loop_init\");\n      const containsYield = (node.initializer.transformFlags & 1048576) !== 0;\n      let emitFlags = 0;\n      if (currentState.containsLexicalThis)\n        emitFlags |= 16;\n      if (containsYield && hierarchyFacts & 4)\n        emitFlags |= 524288;\n      const statements = [];\n      statements.push(factory2.createVariableStatement(void 0, node.initializer));\n      copyOutParameters(currentState.loopOutParameters, 2, 1, statements);\n      const functionDeclaration = factory2.createVariableStatement(void 0, setEmitFlags(factory2.createVariableDeclarationList([\n        factory2.createVariableDeclaration(functionName, void 0, void 0, setEmitFlags(factory2.createFunctionExpression(void 0, containsYield ? factory2.createToken(41) : void 0, void 0, void 0, void 0, void 0, Debug.checkDefined(visitNode(factory2.createBlock(statements, true), visitor, isBlock))), emitFlags))\n      ]), 4194304));\n      const part = factory2.createVariableDeclarationList(map(currentState.loopOutParameters, createOutVariable));\n      return { functionName, containsYield, functionDeclaration, part };\n    }\n    function createFunctionForBodyOfIterationStatement(node, currentState, outerState) {\n      const functionName = factory2.createUniqueName(\"_loop\");\n      startLexicalEnvironment();\n      const statement = visitNode(node.statement, visitor, isStatement, factory2.liftToBlock);\n      const lexicalEnvironment = endLexicalEnvironment();\n      const statements = [];\n      if (shouldConvertConditionOfForStatement(node) || shouldConvertIncrementorOfForStatement(node)) {\n        currentState.conditionVariable = factory2.createUniqueName(\"inc\");\n        if (node.incrementor) {\n          statements.push(factory2.createIfStatement(currentState.conditionVariable, factory2.createExpressionStatement(Debug.checkDefined(visitNode(node.incrementor, visitor, isExpression))), factory2.createExpressionStatement(factory2.createAssignment(currentState.conditionVariable, factory2.createTrue()))));\n        } else {\n          statements.push(factory2.createIfStatement(factory2.createLogicalNot(currentState.conditionVariable), factory2.createExpressionStatement(factory2.createAssignment(currentState.conditionVariable, factory2.createTrue()))));\n        }\n        if (shouldConvertConditionOfForStatement(node)) {\n          statements.push(factory2.createIfStatement(factory2.createPrefixUnaryExpression(53, Debug.checkDefined(visitNode(node.condition, visitor, isExpression))), Debug.checkDefined(visitNode(factory2.createBreakStatement(), visitor, isStatement))));\n        }\n      }\n      Debug.assert(statement);\n      if (isBlock(statement)) {\n        addRange(statements, statement.statements);\n      } else {\n        statements.push(statement);\n      }\n      copyOutParameters(currentState.loopOutParameters, 1, 1, statements);\n      insertStatementsAfterStandardPrologue(statements, lexicalEnvironment);\n      const loopBody = factory2.createBlock(statements, true);\n      if (isBlock(statement))\n        setOriginalNode(loopBody, statement);\n      const containsYield = (node.statement.transformFlags & 1048576) !== 0;\n      let emitFlags = 1048576;\n      if (currentState.containsLexicalThis)\n        emitFlags |= 16;\n      if (containsYield && (hierarchyFacts & 4) !== 0)\n        emitFlags |= 524288;\n      const functionDeclaration = factory2.createVariableStatement(void 0, setEmitFlags(factory2.createVariableDeclarationList([\n        factory2.createVariableDeclaration(functionName, void 0, void 0, setEmitFlags(factory2.createFunctionExpression(void 0, containsYield ? factory2.createToken(41) : void 0, void 0, void 0, currentState.loopParameters, void 0, loopBody), emitFlags))\n      ]), 4194304));\n      const part = generateCallToConvertedLoop(functionName, currentState, outerState, containsYield);\n      return { functionName, containsYield, functionDeclaration, part };\n    }\n    function copyOutParameter(outParam, copyDirection) {\n      const source = copyDirection === 0 ? outParam.outParamName : outParam.originalName;\n      const target = copyDirection === 0 ? outParam.originalName : outParam.outParamName;\n      return factory2.createBinaryExpression(target, 63, source);\n    }\n    function copyOutParameters(outParams, partFlags, copyDirection, statements) {\n      for (const outParam of outParams) {\n        if (outParam.flags & partFlags) {\n          statements.push(factory2.createExpressionStatement(copyOutParameter(outParam, copyDirection)));\n        }\n      }\n    }\n    function generateCallToConvertedLoopInitializer(initFunctionExpressionName, containsYield) {\n      const call = factory2.createCallExpression(initFunctionExpressionName, void 0, []);\n      const callResult = containsYield ? factory2.createYieldExpression(factory2.createToken(41), setEmitFlags(call, 16777216)) : call;\n      return factory2.createExpressionStatement(callResult);\n    }\n    function generateCallToConvertedLoop(loopFunctionExpressionName, state, outerState, containsYield) {\n      const statements = [];\n      const isSimpleLoop = !(state.nonLocalJumps & ~4) && !state.labeledNonLocalBreaks && !state.labeledNonLocalContinues;\n      const call = factory2.createCallExpression(loopFunctionExpressionName, void 0, map(state.loopParameters, (p) => p.name));\n      const callResult = containsYield ? factory2.createYieldExpression(factory2.createToken(41), setEmitFlags(call, 16777216)) : call;\n      if (isSimpleLoop) {\n        statements.push(factory2.createExpressionStatement(callResult));\n        copyOutParameters(state.loopOutParameters, 1, 0, statements);\n      } else {\n        const loopResultName = factory2.createUniqueName(\"state\");\n        const stateVariable = factory2.createVariableStatement(void 0, factory2.createVariableDeclarationList([factory2.createVariableDeclaration(loopResultName, void 0, void 0, callResult)]));\n        statements.push(stateVariable);\n        copyOutParameters(state.loopOutParameters, 1, 0, statements);\n        if (state.nonLocalJumps & 8) {\n          let returnStatement;\n          if (outerState) {\n            outerState.nonLocalJumps |= 8;\n            returnStatement = factory2.createReturnStatement(loopResultName);\n          } else {\n            returnStatement = factory2.createReturnStatement(factory2.createPropertyAccessExpression(loopResultName, \"value\"));\n          }\n          statements.push(factory2.createIfStatement(factory2.createTypeCheck(loopResultName, \"object\"), returnStatement));\n        }\n        if (state.nonLocalJumps & 2) {\n          statements.push(factory2.createIfStatement(factory2.createStrictEquality(loopResultName, factory2.createStringLiteral(\"break\")), factory2.createBreakStatement()));\n        }\n        if (state.labeledNonLocalBreaks || state.labeledNonLocalContinues) {\n          const caseClauses = [];\n          processLabeledJumps(state.labeledNonLocalBreaks, true, loopResultName, outerState, caseClauses);\n          processLabeledJumps(state.labeledNonLocalContinues, false, loopResultName, outerState, caseClauses);\n          statements.push(factory2.createSwitchStatement(loopResultName, factory2.createCaseBlock(caseClauses)));\n        }\n      }\n      return statements;\n    }\n    function setLabeledJump(state, isBreak, labelText, labelMarker) {\n      if (isBreak) {\n        if (!state.labeledNonLocalBreaks) {\n          state.labeledNonLocalBreaks = /* @__PURE__ */ new Map();\n        }\n        state.labeledNonLocalBreaks.set(labelText, labelMarker);\n      } else {\n        if (!state.labeledNonLocalContinues) {\n          state.labeledNonLocalContinues = /* @__PURE__ */ new Map();\n        }\n        state.labeledNonLocalContinues.set(labelText, labelMarker);\n      }\n    }\n    function processLabeledJumps(table, isBreak, loopResultName, outerLoop, caseClauses) {\n      if (!table) {\n        return;\n      }\n      table.forEach((labelMarker, labelText) => {\n        const statements = [];\n        if (!outerLoop || outerLoop.labels && outerLoop.labels.get(labelText)) {\n          const label = factory2.createIdentifier(labelText);\n          statements.push(isBreak ? factory2.createBreakStatement(label) : factory2.createContinueStatement(label));\n        } else {\n          setLabeledJump(outerLoop, isBreak, labelText, labelMarker);\n          statements.push(factory2.createReturnStatement(loopResultName));\n        }\n        caseClauses.push(factory2.createCaseClause(factory2.createStringLiteral(labelMarker), statements));\n      });\n    }\n    function processLoopVariableDeclaration(container, decl, loopParameters, loopOutParameters, hasCapturedBindingsInForHead) {\n      const name = decl.name;\n      if (isBindingPattern(name)) {\n        for (const element of name.elements) {\n          if (!isOmittedExpression(element)) {\n            processLoopVariableDeclaration(container, element, loopParameters, loopOutParameters, hasCapturedBindingsInForHead);\n          }\n        }\n      } else {\n        loopParameters.push(factory2.createParameterDeclaration(void 0, void 0, name));\n        const checkFlags = resolver.getNodeCheckFlags(decl);\n        if (checkFlags & 262144 || hasCapturedBindingsInForHead) {\n          const outParamName = factory2.createUniqueName(\"out_\" + idText(name));\n          let flags = 0;\n          if (checkFlags & 262144) {\n            flags |= 1;\n          }\n          if (isForStatement(container)) {\n            if (container.initializer && resolver.isBindingCapturedByNode(container.initializer, decl)) {\n              flags |= 2;\n            }\n            if (container.condition && resolver.isBindingCapturedByNode(container.condition, decl) || container.incrementor && resolver.isBindingCapturedByNode(container.incrementor, decl)) {\n              flags |= 1;\n            }\n          }\n          loopOutParameters.push({ flags, originalName: name, outParamName });\n        }\n      }\n    }\n    function addObjectLiteralMembers(expressions, node, receiver, start) {\n      const properties = node.properties;\n      const numProperties = properties.length;\n      for (let i = start; i < numProperties; i++) {\n        const property = properties[i];\n        switch (property.kind) {\n          case 174:\n          case 175:\n            const accessors = getAllAccessorDeclarations(node.properties, property);\n            if (property === accessors.firstAccessor) {\n              expressions.push(transformAccessorsToExpression(receiver, accessors, node, !!node.multiLine));\n            }\n            break;\n          case 171:\n            expressions.push(transformObjectLiteralMethodDeclarationToExpression(property, receiver, node, node.multiLine));\n            break;\n          case 299:\n            expressions.push(transformPropertyAssignmentToExpression(property, receiver, node.multiLine));\n            break;\n          case 300:\n            expressions.push(transformShorthandPropertyAssignmentToExpression(property, receiver, node.multiLine));\n            break;\n          default:\n            Debug.failBadSyntaxKind(node);\n            break;\n        }\n      }\n    }\n    function transformPropertyAssignmentToExpression(property, receiver, startsOnNewLine) {\n      const expression = factory2.createAssignment(createMemberAccessForPropertyName(factory2, receiver, Debug.checkDefined(visitNode(property.name, visitor, isPropertyName))), Debug.checkDefined(visitNode(property.initializer, visitor, isExpression)));\n      setTextRange(expression, property);\n      if (startsOnNewLine) {\n        startOnNewLine(expression);\n      }\n      return expression;\n    }\n    function transformShorthandPropertyAssignmentToExpression(property, receiver, startsOnNewLine) {\n      const expression = factory2.createAssignment(createMemberAccessForPropertyName(factory2, receiver, Debug.checkDefined(visitNode(property.name, visitor, isPropertyName))), factory2.cloneNode(property.name));\n      setTextRange(expression, property);\n      if (startsOnNewLine) {\n        startOnNewLine(expression);\n      }\n      return expression;\n    }\n    function transformObjectLiteralMethodDeclarationToExpression(method, receiver, container, startsOnNewLine) {\n      const expression = factory2.createAssignment(createMemberAccessForPropertyName(factory2, receiver, Debug.checkDefined(visitNode(method.name, visitor, isPropertyName))), transformFunctionLikeToExpression(method, method, void 0, container));\n      setTextRange(expression, method);\n      if (startsOnNewLine) {\n        startOnNewLine(expression);\n      }\n      return expression;\n    }\n    function visitCatchClause(node) {\n      const ancestorFacts = enterSubtree(7104, 0);\n      let updated;\n      Debug.assert(!!node.variableDeclaration, \"Catch clause variable should always be present when downleveling ES2015.\");\n      if (isBindingPattern(node.variableDeclaration.name)) {\n        const temp = factory2.createTempVariable(void 0);\n        const newVariableDeclaration = factory2.createVariableDeclaration(temp);\n        setTextRange(newVariableDeclaration, node.variableDeclaration);\n        const vars = flattenDestructuringBinding(node.variableDeclaration, visitor, context, 0, temp);\n        const list = factory2.createVariableDeclarationList(vars);\n        setTextRange(list, node.variableDeclaration);\n        const destructure = factory2.createVariableStatement(void 0, list);\n        updated = factory2.updateCatchClause(node, newVariableDeclaration, addStatementToStartOfBlock(node.block, destructure));\n      } else {\n        updated = visitEachChild(node, visitor, context);\n      }\n      exitSubtree(ancestorFacts, 0, 0);\n      return updated;\n    }\n    function addStatementToStartOfBlock(block, statement) {\n      const transformedStatements = visitNodes2(block.statements, visitor, isStatement);\n      return factory2.updateBlock(block, [statement, ...transformedStatements]);\n    }\n    function visitMethodDeclaration(node) {\n      Debug.assert(!isComputedPropertyName(node.name));\n      const functionExpression = transformFunctionLikeToExpression(node, moveRangePos(node, -1), void 0, void 0);\n      setEmitFlags(functionExpression, 1024 | getEmitFlags(functionExpression));\n      return setTextRange(factory2.createPropertyAssignment(node.name, functionExpression), node);\n    }\n    function visitAccessorDeclaration(node) {\n      Debug.assert(!isComputedPropertyName(node.name));\n      const savedConvertedLoopState = convertedLoopState;\n      convertedLoopState = void 0;\n      const ancestorFacts = enterSubtree(32670, 65);\n      let updated;\n      const parameters = visitParameterList(node.parameters, visitor, context);\n      const body = transformFunctionBody2(node);\n      if (node.kind === 174) {\n        updated = factory2.updateGetAccessorDeclaration(node, node.modifiers, node.name, parameters, node.type, body);\n      } else {\n        updated = factory2.updateSetAccessorDeclaration(node, node.modifiers, node.name, parameters, body);\n      }\n      exitSubtree(ancestorFacts, 98304, 0);\n      convertedLoopState = savedConvertedLoopState;\n      return updated;\n    }\n    function visitShorthandPropertyAssignment(node) {\n      return setTextRange(factory2.createPropertyAssignment(node.name, visitIdentifier(factory2.cloneNode(node.name))), node);\n    }\n    function visitComputedPropertyName(node) {\n      return visitEachChild(node, visitor, context);\n    }\n    function visitYieldExpression(node) {\n      return visitEachChild(node, visitor, context);\n    }\n    function visitArrayLiteralExpression(node) {\n      if (some(node.elements, isSpreadElement)) {\n        return transformAndSpreadElements(node.elements, false, !!node.multiLine, !!node.elements.hasTrailingComma);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitCallExpression(node) {\n      if (getInternalEmitFlags(node) & 1) {\n        return visitTypeScriptClassWrapper(node);\n      }\n      const expression = skipOuterExpressions(node.expression);\n      if (expression.kind === 106 || isSuperProperty(expression) || some(node.arguments, isSpreadElement)) {\n        return visitCallExpressionWithPotentialCapturedThisAssignment(node, true);\n      }\n      return factory2.updateCallExpression(node, Debug.checkDefined(visitNode(node.expression, callExpressionVisitor, isExpression)), void 0, visitNodes2(node.arguments, visitor, isExpression));\n    }\n    function visitTypeScriptClassWrapper(node) {\n      const body = cast(cast(skipOuterExpressions(node.expression), isArrowFunction).body, isBlock);\n      const isVariableStatementWithInitializer = (stmt) => isVariableStatement(stmt) && !!first(stmt.declarationList.declarations).initializer;\n      const savedConvertedLoopState = convertedLoopState;\n      convertedLoopState = void 0;\n      const bodyStatements = visitNodes2(body.statements, classWrapperStatementVisitor, isStatement);\n      convertedLoopState = savedConvertedLoopState;\n      const classStatements = filter(bodyStatements, isVariableStatementWithInitializer);\n      const remainingStatements = filter(bodyStatements, (stmt) => !isVariableStatementWithInitializer(stmt));\n      const varStatement = cast(first(classStatements), isVariableStatement);\n      const variable = varStatement.declarationList.declarations[0];\n      const initializer = skipOuterExpressions(variable.initializer);\n      let aliasAssignment = tryCast(initializer, isAssignmentExpression);\n      if (!aliasAssignment && isBinaryExpression(initializer) && initializer.operatorToken.kind === 27) {\n        aliasAssignment = tryCast(initializer.left, isAssignmentExpression);\n      }\n      const call = cast(aliasAssignment ? skipOuterExpressions(aliasAssignment.right) : initializer, isCallExpression);\n      const func = cast(skipOuterExpressions(call.expression), isFunctionExpression);\n      const funcStatements = func.body.statements;\n      let classBodyStart = 0;\n      let classBodyEnd = -1;\n      const statements = [];\n      if (aliasAssignment) {\n        const extendsCall = tryCast(funcStatements[classBodyStart], isExpressionStatement);\n        if (extendsCall) {\n          statements.push(extendsCall);\n          classBodyStart++;\n        }\n        statements.push(funcStatements[classBodyStart]);\n        classBodyStart++;\n        statements.push(factory2.createExpressionStatement(factory2.createAssignment(aliasAssignment.left, cast(variable.name, isIdentifier))));\n      }\n      while (!isReturnStatement(elementAt(funcStatements, classBodyEnd))) {\n        classBodyEnd--;\n      }\n      addRange(statements, funcStatements, classBodyStart, classBodyEnd);\n      if (classBodyEnd < -1) {\n        addRange(statements, funcStatements, classBodyEnd + 1);\n      }\n      const returnStatement = tryCast(elementAt(funcStatements, classBodyEnd), isReturnStatement);\n      for (const statement of remainingStatements) {\n        if (isReturnStatement(statement) && (returnStatement == null ? void 0 : returnStatement.expression) && !isIdentifier(returnStatement.expression)) {\n          statements.push(returnStatement);\n        } else {\n          statements.push(statement);\n        }\n      }\n      addRange(statements, classStatements, 1);\n      return factory2.restoreOuterExpressions(node.expression, factory2.restoreOuterExpressions(variable.initializer, factory2.restoreOuterExpressions(aliasAssignment && aliasAssignment.right, factory2.updateCallExpression(call, factory2.restoreOuterExpressions(call.expression, factory2.updateFunctionExpression(func, void 0, void 0, void 0, void 0, func.parameters, void 0, factory2.updateBlock(func.body, statements))), void 0, call.arguments))));\n    }\n    function visitSuperCallInBody(node) {\n      return visitCallExpressionWithPotentialCapturedThisAssignment(node, false);\n    }\n    function visitCallExpressionWithPotentialCapturedThisAssignment(node, assignToCapturedThis) {\n      if (node.transformFlags & 32768 || node.expression.kind === 106 || isSuperProperty(skipOuterExpressions(node.expression))) {\n        const { target, thisArg } = factory2.createCallBinding(node.expression, hoistVariableDeclaration);\n        if (node.expression.kind === 106) {\n          setEmitFlags(thisArg, 8);\n        }\n        let resultingCall;\n        if (node.transformFlags & 32768) {\n          resultingCall = factory2.createFunctionApplyCall(Debug.checkDefined(visitNode(target, callExpressionVisitor, isExpression)), node.expression.kind === 106 ? thisArg : Debug.checkDefined(visitNode(thisArg, visitor, isExpression)), transformAndSpreadElements(node.arguments, true, false, false));\n        } else {\n          resultingCall = setTextRange(factory2.createFunctionCallCall(Debug.checkDefined(visitNode(target, callExpressionVisitor, isExpression)), node.expression.kind === 106 ? thisArg : Debug.checkDefined(visitNode(thisArg, visitor, isExpression)), visitNodes2(node.arguments, visitor, isExpression)), node);\n        }\n        if (node.expression.kind === 106) {\n          const initializer = factory2.createLogicalOr(resultingCall, createActualThis());\n          resultingCall = assignToCapturedThis ? factory2.createAssignment(factory2.createUniqueName(\"_this\", 16 | 32), initializer) : initializer;\n        }\n        return setOriginalNode(resultingCall, node);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitNewExpression(node) {\n      if (some(node.arguments, isSpreadElement)) {\n        const { target, thisArg } = factory2.createCallBinding(factory2.createPropertyAccessExpression(node.expression, \"bind\"), hoistVariableDeclaration);\n        return factory2.createNewExpression(factory2.createFunctionApplyCall(Debug.checkDefined(visitNode(target, visitor, isExpression)), thisArg, transformAndSpreadElements(factory2.createNodeArray([factory2.createVoidZero(), ...node.arguments]), true, false, false)), void 0, []);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function transformAndSpreadElements(elements, isArgumentList, multiLine, hasTrailingComma) {\n      const numElements = elements.length;\n      const segments = flatten(spanMap(elements, partitionSpread, (partition, visitPartition, _start, end) => visitPartition(partition, multiLine, hasTrailingComma && end === numElements)));\n      if (segments.length === 1) {\n        const firstSegment = segments[0];\n        if (isArgumentList && !compilerOptions.downlevelIteration || isPackedArrayLiteral(firstSegment.expression) || isCallToHelper(firstSegment.expression, \"___spreadArray\")) {\n          return firstSegment.expression;\n        }\n      }\n      const helpers = emitHelpers();\n      const startsWithSpread = segments[0].kind !== 0;\n      let expression = startsWithSpread ? factory2.createArrayLiteralExpression() : segments[0].expression;\n      for (let i = startsWithSpread ? 0 : 1; i < segments.length; i++) {\n        const segment = segments[i];\n        expression = helpers.createSpreadArrayHelper(expression, segment.expression, segment.kind === 1 && !isArgumentList);\n      }\n      return expression;\n    }\n    function partitionSpread(node) {\n      return isSpreadElement(node) ? visitSpanOfSpreads : visitSpanOfNonSpreads;\n    }\n    function visitSpanOfSpreads(chunk) {\n      return map(chunk, visitExpressionOfSpread);\n    }\n    function visitExpressionOfSpread(node) {\n      Debug.assertNode(node, isSpreadElement);\n      let expression = visitNode(node.expression, visitor, isExpression);\n      Debug.assert(expression);\n      const isCallToReadHelper = isCallToHelper(expression, \"___read\");\n      let kind = isCallToReadHelper || isPackedArrayLiteral(expression) ? 2 : 1;\n      if (compilerOptions.downlevelIteration && kind === 1 && !isArrayLiteralExpression(expression) && !isCallToReadHelper) {\n        expression = emitHelpers().createReadHelper(expression, void 0);\n        kind = 2;\n      }\n      return createSpreadSegment(kind, expression);\n    }\n    function visitSpanOfNonSpreads(chunk, multiLine, hasTrailingComma) {\n      const expression = factory2.createArrayLiteralExpression(visitNodes2(factory2.createNodeArray(chunk, hasTrailingComma), visitor, isExpression), multiLine);\n      return createSpreadSegment(0, expression);\n    }\n    function visitSpreadElement(node) {\n      return visitNode(node.expression, visitor, isExpression);\n    }\n    function visitTemplateLiteral(node) {\n      return setTextRange(factory2.createStringLiteral(node.text), node);\n    }\n    function visitStringLiteral(node) {\n      if (node.hasExtendedUnicodeEscape) {\n        return setTextRange(factory2.createStringLiteral(node.text), node);\n      }\n      return node;\n    }\n    function visitNumericLiteral(node) {\n      if (node.numericLiteralFlags & 384) {\n        return setTextRange(factory2.createNumericLiteral(node.text), node);\n      }\n      return node;\n    }\n    function visitTaggedTemplateExpression(node) {\n      return processTaggedTemplateExpression(context, node, visitor, currentSourceFile, recordTaggedTemplateString, 1);\n    }\n    function visitTemplateExpression(node) {\n      let expression = factory2.createStringLiteral(node.head.text);\n      for (const span of node.templateSpans) {\n        const args = [Debug.checkDefined(visitNode(span.expression, visitor, isExpression))];\n        if (span.literal.text.length > 0) {\n          args.push(factory2.createStringLiteral(span.literal.text));\n        }\n        expression = factory2.createCallExpression(factory2.createPropertyAccessExpression(expression, \"concat\"), void 0, args);\n      }\n      return setTextRange(expression, node);\n    }\n    function visitSuperKeyword(isExpressionOfCall) {\n      return hierarchyFacts & 8 && !isExpressionOfCall ? factory2.createPropertyAccessExpression(factory2.createUniqueName(\"_super\", 16 | 32), \"prototype\") : factory2.createUniqueName(\"_super\", 16 | 32);\n    }\n    function visitMetaProperty(node) {\n      if (node.keywordToken === 103 && node.name.escapedText === \"target\") {\n        hierarchyFacts |= 32768;\n        return factory2.createUniqueName(\"_newTarget\", 16 | 32);\n      }\n      return node;\n    }\n    function onEmitNode(hint, node, emitCallback) {\n      if (enabledSubstitutions & 1 && isFunctionLike(node)) {\n        const ancestorFacts = enterSubtree(32670, getEmitFlags(node) & 16 ? 65 | 16 : 65);\n        previousOnEmitNode(hint, node, emitCallback);\n        exitSubtree(ancestorFacts, 0, 0);\n        return;\n      }\n      previousOnEmitNode(hint, node, emitCallback);\n    }\n    function enableSubstitutionsForBlockScopedBindings() {\n      if ((enabledSubstitutions & 2) === 0) {\n        enabledSubstitutions |= 2;\n        context.enableSubstitution(79);\n      }\n    }\n    function enableSubstitutionsForCapturedThis() {\n      if ((enabledSubstitutions & 1) === 0) {\n        enabledSubstitutions |= 1;\n        context.enableSubstitution(108);\n        context.enableEmitNotification(173);\n        context.enableEmitNotification(171);\n        context.enableEmitNotification(174);\n        context.enableEmitNotification(175);\n        context.enableEmitNotification(216);\n        context.enableEmitNotification(215);\n        context.enableEmitNotification(259);\n      }\n    }\n    function onSubstituteNode(hint, node) {\n      node = previousOnSubstituteNode(hint, node);\n      if (hint === 1) {\n        return substituteExpression(node);\n      }\n      if (isIdentifier(node)) {\n        return substituteIdentifier(node);\n      }\n      return node;\n    }\n    function substituteIdentifier(node) {\n      if (enabledSubstitutions & 2 && !isInternalName(node)) {\n        const original = getParseTreeNode(node, isIdentifier);\n        if (original && isNameOfDeclarationWithCollidingName(original)) {\n          return setTextRange(factory2.getGeneratedNameForNode(original), node);\n        }\n      }\n      return node;\n    }\n    function isNameOfDeclarationWithCollidingName(node) {\n      switch (node.parent.kind) {\n        case 205:\n        case 260:\n        case 263:\n        case 257:\n          return node.parent.name === node && resolver.isDeclarationWithCollidingName(node.parent);\n      }\n      return false;\n    }\n    function substituteExpression(node) {\n      switch (node.kind) {\n        case 79:\n          return substituteExpressionIdentifier(node);\n        case 108:\n          return substituteThisKeyword(node);\n      }\n      return node;\n    }\n    function substituteExpressionIdentifier(node) {\n      if (enabledSubstitutions & 2 && !isInternalName(node)) {\n        const declaration = resolver.getReferencedDeclarationWithCollidingName(node);\n        if (declaration && !(isClassLike(declaration) && isPartOfClassBody(declaration, node))) {\n          return setTextRange(factory2.getGeneratedNameForNode(getNameOfDeclaration(declaration)), node);\n        }\n      }\n      return node;\n    }\n    function isPartOfClassBody(declaration, node) {\n      let currentNode = getParseTreeNode(node);\n      if (!currentNode || currentNode === declaration || currentNode.end <= declaration.pos || currentNode.pos >= declaration.end) {\n        return false;\n      }\n      const blockScope = getEnclosingBlockScopeContainer(declaration);\n      while (currentNode) {\n        if (currentNode === blockScope || currentNode === declaration) {\n          return false;\n        }\n        if (isClassElement(currentNode) && currentNode.parent === declaration) {\n          return true;\n        }\n        currentNode = currentNode.parent;\n      }\n      return false;\n    }\n    function substituteThisKeyword(node) {\n      if (enabledSubstitutions & 1 && hierarchyFacts & 16) {\n        return setTextRange(factory2.createUniqueName(\"_this\", 16 | 32), node);\n      }\n      return node;\n    }\n    function getClassMemberPrefix(node, member) {\n      return isStatic(member) ? factory2.getInternalName(node) : factory2.createPropertyAccessExpression(factory2.getInternalName(node), \"prototype\");\n    }\n    function hasSynthesizedDefaultSuperCall(constructor, hasExtendsClause) {\n      if (!constructor || !hasExtendsClause) {\n        return false;\n      }\n      if (some(constructor.parameters)) {\n        return false;\n      }\n      const statement = firstOrUndefined(constructor.body.statements);\n      if (!statement || !nodeIsSynthesized(statement) || statement.kind !== 241) {\n        return false;\n      }\n      const statementExpression = statement.expression;\n      if (!nodeIsSynthesized(statementExpression) || statementExpression.kind !== 210) {\n        return false;\n      }\n      const callTarget = statementExpression.expression;\n      if (!nodeIsSynthesized(callTarget) || callTarget.kind !== 106) {\n        return false;\n      }\n      const callArgument = singleOrUndefined(statementExpression.arguments);\n      if (!callArgument || !nodeIsSynthesized(callArgument) || callArgument.kind !== 227) {\n        return false;\n      }\n      const expression = callArgument.expression;\n      return isIdentifier(expression) && expression.escapedText === \"arguments\";\n    }\n  }\n  var init_es2015 = __esm({\n    \"src/compiler/transformers/es2015.ts\"() {\n      \"use strict\";\n      init_ts2();\n    }\n  });\n  function transformES5(context) {\n    const { factory: factory2 } = context;\n    const compilerOptions = context.getCompilerOptions();\n    let previousOnEmitNode;\n    let noSubstitution;\n    if (compilerOptions.jsx === 1 || compilerOptions.jsx === 3) {\n      previousOnEmitNode = context.onEmitNode;\n      context.onEmitNode = onEmitNode;\n      context.enableEmitNotification(283);\n      context.enableEmitNotification(284);\n      context.enableEmitNotification(282);\n      noSubstitution = [];\n    }\n    const previousOnSubstituteNode = context.onSubstituteNode;\n    context.onSubstituteNode = onSubstituteNode;\n    context.enableSubstitution(208);\n    context.enableSubstitution(299);\n    return chainBundle(context, transformSourceFile);\n    function transformSourceFile(node) {\n      return node;\n    }\n    function onEmitNode(hint, node, emitCallback) {\n      switch (node.kind) {\n        case 283:\n        case 284:\n        case 282:\n          const tagName = node.tagName;\n          noSubstitution[getOriginalNodeId(tagName)] = true;\n          break;\n      }\n      previousOnEmitNode(hint, node, emitCallback);\n    }\n    function onSubstituteNode(hint, node) {\n      if (node.id && noSubstitution && noSubstitution[node.id]) {\n        return previousOnSubstituteNode(hint, node);\n      }\n      node = previousOnSubstituteNode(hint, node);\n      if (isPropertyAccessExpression(node)) {\n        return substitutePropertyAccessExpression(node);\n      } else if (isPropertyAssignment(node)) {\n        return substitutePropertyAssignment(node);\n      }\n      return node;\n    }\n    function substitutePropertyAccessExpression(node) {\n      if (isPrivateIdentifier(node.name)) {\n        return node;\n      }\n      const literalName = trySubstituteReservedName(node.name);\n      if (literalName) {\n        return setTextRange(factory2.createElementAccessExpression(node.expression, literalName), node);\n      }\n      return node;\n    }\n    function substitutePropertyAssignment(node) {\n      const literalName = isIdentifier(node.name) && trySubstituteReservedName(node.name);\n      if (literalName) {\n        return factory2.updatePropertyAssignment(node, literalName, node.initializer);\n      }\n      return node;\n    }\n    function trySubstituteReservedName(name) {\n      const token = identifierToKeywordKind(name);\n      if (token !== void 0 && token >= 81 && token <= 116) {\n        return setTextRange(factory2.createStringLiteralFromNode(name), name);\n      }\n      return void 0;\n    }\n  }\n  var init_es5 = __esm({\n    \"src/compiler/transformers/es5.ts\"() {\n      \"use strict\";\n      init_ts2();\n    }\n  });\n  function getInstructionName(instruction) {\n    switch (instruction) {\n      case 2:\n        return \"return\";\n      case 3:\n        return \"break\";\n      case 4:\n        return \"yield\";\n      case 5:\n        return \"yield*\";\n      case 7:\n        return \"endfinally\";\n      default:\n        return void 0;\n    }\n  }\n  function transformGenerators(context) {\n    const {\n      factory: factory2,\n      getEmitHelperFactory: emitHelpers,\n      resumeLexicalEnvironment,\n      endLexicalEnvironment,\n      hoistFunctionDeclaration,\n      hoistVariableDeclaration\n    } = context;\n    const compilerOptions = context.getCompilerOptions();\n    const languageVersion = getEmitScriptTarget(compilerOptions);\n    const resolver = context.getEmitResolver();\n    const previousOnSubstituteNode = context.onSubstituteNode;\n    context.onSubstituteNode = onSubstituteNode;\n    let renamedCatchVariables;\n    let renamedCatchVariableDeclarations;\n    let inGeneratorFunctionBody;\n    let inStatementContainingYield;\n    let blocks;\n    let blockOffsets;\n    let blockActions;\n    let blockStack;\n    let labelOffsets;\n    let labelExpressions;\n    let nextLabelId = 1;\n    let operations;\n    let operationArguments;\n    let operationLocations;\n    let state;\n    let blockIndex = 0;\n    let labelNumber = 0;\n    let labelNumbers;\n    let lastOperationWasAbrupt;\n    let lastOperationWasCompletion;\n    let clauses;\n    let statements;\n    let exceptionBlockStack;\n    let currentExceptionBlock;\n    let withBlockStack;\n    return chainBundle(context, transformSourceFile);\n    function transformSourceFile(node) {\n      if (node.isDeclarationFile || (node.transformFlags & 2048) === 0) {\n        return node;\n      }\n      const visited = visitEachChild(node, visitor, context);\n      addEmitHelpers(visited, context.readEmitHelpers());\n      return visited;\n    }\n    function visitor(node) {\n      const transformFlags = node.transformFlags;\n      if (inStatementContainingYield) {\n        return visitJavaScriptInStatementContainingYield(node);\n      } else if (inGeneratorFunctionBody) {\n        return visitJavaScriptInGeneratorFunctionBody(node);\n      } else if (isFunctionLikeDeclaration(node) && node.asteriskToken) {\n        return visitGenerator(node);\n      } else if (transformFlags & 2048) {\n        return visitEachChild(node, visitor, context);\n      } else {\n        return node;\n      }\n    }\n    function visitJavaScriptInStatementContainingYield(node) {\n      switch (node.kind) {\n        case 243:\n          return visitDoStatement(node);\n        case 244:\n          return visitWhileStatement(node);\n        case 252:\n          return visitSwitchStatement(node);\n        case 253:\n          return visitLabeledStatement(node);\n        default:\n          return visitJavaScriptInGeneratorFunctionBody(node);\n      }\n    }\n    function visitJavaScriptInGeneratorFunctionBody(node) {\n      switch (node.kind) {\n        case 259:\n          return visitFunctionDeclaration(node);\n        case 215:\n          return visitFunctionExpression(node);\n        case 174:\n        case 175:\n          return visitAccessorDeclaration(node);\n        case 240:\n          return visitVariableStatement(node);\n        case 245:\n          return visitForStatement(node);\n        case 246:\n          return visitForInStatement(node);\n        case 249:\n          return visitBreakStatement(node);\n        case 248:\n          return visitContinueStatement(node);\n        case 250:\n          return visitReturnStatement(node);\n        default:\n          if (node.transformFlags & 1048576) {\n            return visitJavaScriptContainingYield(node);\n          } else if (node.transformFlags & (2048 | 4194304)) {\n            return visitEachChild(node, visitor, context);\n          } else {\n            return node;\n          }\n      }\n    }\n    function visitJavaScriptContainingYield(node) {\n      switch (node.kind) {\n        case 223:\n          return visitBinaryExpression(node);\n        case 357:\n          return visitCommaListExpression(node);\n        case 224:\n          return visitConditionalExpression(node);\n        case 226:\n          return visitYieldExpression(node);\n        case 206:\n          return visitArrayLiteralExpression(node);\n        case 207:\n          return visitObjectLiteralExpression(node);\n        case 209:\n          return visitElementAccessExpression(node);\n        case 210:\n          return visitCallExpression(node);\n        case 211:\n          return visitNewExpression(node);\n        default:\n          return visitEachChild(node, visitor, context);\n      }\n    }\n    function visitGenerator(node) {\n      switch (node.kind) {\n        case 259:\n          return visitFunctionDeclaration(node);\n        case 215:\n          return visitFunctionExpression(node);\n        default:\n          return Debug.failBadSyntaxKind(node);\n      }\n    }\n    function visitFunctionDeclaration(node) {\n      if (node.asteriskToken) {\n        node = setOriginalNode(setTextRange(factory2.createFunctionDeclaration(node.modifiers, void 0, node.name, void 0, visitParameterList(node.parameters, visitor, context), void 0, transformGeneratorFunctionBody(node.body)), node), node);\n      } else {\n        const savedInGeneratorFunctionBody = inGeneratorFunctionBody;\n        const savedInStatementContainingYield = inStatementContainingYield;\n        inGeneratorFunctionBody = false;\n        inStatementContainingYield = false;\n        node = visitEachChild(node, visitor, context);\n        inGeneratorFunctionBody = savedInGeneratorFunctionBody;\n        inStatementContainingYield = savedInStatementContainingYield;\n      }\n      if (inGeneratorFunctionBody) {\n        hoistFunctionDeclaration(node);\n        return void 0;\n      } else {\n        return node;\n      }\n    }\n    function visitFunctionExpression(node) {\n      if (node.asteriskToken) {\n        node = setOriginalNode(setTextRange(factory2.createFunctionExpression(void 0, void 0, node.name, void 0, visitParameterList(node.parameters, visitor, context), void 0, transformGeneratorFunctionBody(node.body)), node), node);\n      } else {\n        const savedInGeneratorFunctionBody = inGeneratorFunctionBody;\n        const savedInStatementContainingYield = inStatementContainingYield;\n        inGeneratorFunctionBody = false;\n        inStatementContainingYield = false;\n        node = visitEachChild(node, visitor, context);\n        inGeneratorFunctionBody = savedInGeneratorFunctionBody;\n        inStatementContainingYield = savedInStatementContainingYield;\n      }\n      return node;\n    }\n    function visitAccessorDeclaration(node) {\n      const savedInGeneratorFunctionBody = inGeneratorFunctionBody;\n      const savedInStatementContainingYield = inStatementContainingYield;\n      inGeneratorFunctionBody = false;\n      inStatementContainingYield = false;\n      node = visitEachChild(node, visitor, context);\n      inGeneratorFunctionBody = savedInGeneratorFunctionBody;\n      inStatementContainingYield = savedInStatementContainingYield;\n      return node;\n    }\n    function transformGeneratorFunctionBody(body) {\n      const statements2 = [];\n      const savedInGeneratorFunctionBody = inGeneratorFunctionBody;\n      const savedInStatementContainingYield = inStatementContainingYield;\n      const savedBlocks = blocks;\n      const savedBlockOffsets = blockOffsets;\n      const savedBlockActions = blockActions;\n      const savedBlockStack = blockStack;\n      const savedLabelOffsets = labelOffsets;\n      const savedLabelExpressions = labelExpressions;\n      const savedNextLabelId = nextLabelId;\n      const savedOperations = operations;\n      const savedOperationArguments = operationArguments;\n      const savedOperationLocations = operationLocations;\n      const savedState = state;\n      inGeneratorFunctionBody = true;\n      inStatementContainingYield = false;\n      blocks = void 0;\n      blockOffsets = void 0;\n      blockActions = void 0;\n      blockStack = void 0;\n      labelOffsets = void 0;\n      labelExpressions = void 0;\n      nextLabelId = 1;\n      operations = void 0;\n      operationArguments = void 0;\n      operationLocations = void 0;\n      state = factory2.createTempVariable(void 0);\n      resumeLexicalEnvironment();\n      const statementOffset = factory2.copyPrologue(body.statements, statements2, false, visitor);\n      transformAndEmitStatements(body.statements, statementOffset);\n      const buildResult = build2();\n      insertStatementsAfterStandardPrologue(statements2, endLexicalEnvironment());\n      statements2.push(factory2.createReturnStatement(buildResult));\n      inGeneratorFunctionBody = savedInGeneratorFunctionBody;\n      inStatementContainingYield = savedInStatementContainingYield;\n      blocks = savedBlocks;\n      blockOffsets = savedBlockOffsets;\n      blockActions = savedBlockActions;\n      blockStack = savedBlockStack;\n      labelOffsets = savedLabelOffsets;\n      labelExpressions = savedLabelExpressions;\n      nextLabelId = savedNextLabelId;\n      operations = savedOperations;\n      operationArguments = savedOperationArguments;\n      operationLocations = savedOperationLocations;\n      state = savedState;\n      return setTextRange(factory2.createBlock(statements2, body.multiLine), body);\n    }\n    function visitVariableStatement(node) {\n      if (node.transformFlags & 1048576) {\n        transformAndEmitVariableDeclarationList(node.declarationList);\n        return void 0;\n      } else {\n        if (getEmitFlags(node) & 2097152) {\n          return node;\n        }\n        for (const variable of node.declarationList.declarations) {\n          hoistVariableDeclaration(variable.name);\n        }\n        const variables = getInitializedVariables(node.declarationList);\n        if (variables.length === 0) {\n          return void 0;\n        }\n        return setSourceMapRange(factory2.createExpressionStatement(factory2.inlineExpressions(map(variables, transformInitializedVariable))), node);\n      }\n    }\n    function visitBinaryExpression(node) {\n      const assoc = getExpressionAssociativity(node);\n      switch (assoc) {\n        case 0:\n          return visitLeftAssociativeBinaryExpression(node);\n        case 1:\n          return visitRightAssociativeBinaryExpression(node);\n        default:\n          return Debug.assertNever(assoc);\n      }\n    }\n    function visitRightAssociativeBinaryExpression(node) {\n      const { left, right } = node;\n      if (containsYield(right)) {\n        let target;\n        switch (left.kind) {\n          case 208:\n            target = factory2.updatePropertyAccessExpression(left, cacheExpression(Debug.checkDefined(visitNode(left.expression, visitor, isLeftHandSideExpression))), left.name);\n            break;\n          case 209:\n            target = factory2.updateElementAccessExpression(left, cacheExpression(Debug.checkDefined(visitNode(left.expression, visitor, isLeftHandSideExpression))), cacheExpression(Debug.checkDefined(visitNode(left.argumentExpression, visitor, isExpression))));\n            break;\n          default:\n            target = Debug.checkDefined(visitNode(left, visitor, isExpression));\n            break;\n        }\n        const operator = node.operatorToken.kind;\n        if (isCompoundAssignment(operator)) {\n          return setTextRange(factory2.createAssignment(target, setTextRange(factory2.createBinaryExpression(cacheExpression(target), getNonAssignmentOperatorForCompoundAssignment(operator), Debug.checkDefined(visitNode(right, visitor, isExpression))), node)), node);\n        } else {\n          return factory2.updateBinaryExpression(node, target, node.operatorToken, Debug.checkDefined(visitNode(right, visitor, isExpression)));\n        }\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitLeftAssociativeBinaryExpression(node) {\n      if (containsYield(node.right)) {\n        if (isLogicalOperator(node.operatorToken.kind)) {\n          return visitLogicalBinaryExpression(node);\n        } else if (node.operatorToken.kind === 27) {\n          return visitCommaExpression(node);\n        }\n        return factory2.updateBinaryExpression(node, cacheExpression(Debug.checkDefined(visitNode(node.left, visitor, isExpression))), node.operatorToken, Debug.checkDefined(visitNode(node.right, visitor, isExpression)));\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitCommaExpression(node) {\n      let pendingExpressions = [];\n      visit(node.left);\n      visit(node.right);\n      return factory2.inlineExpressions(pendingExpressions);\n      function visit(node2) {\n        if (isBinaryExpression(node2) && node2.operatorToken.kind === 27) {\n          visit(node2.left);\n          visit(node2.right);\n        } else {\n          if (containsYield(node2) && pendingExpressions.length > 0) {\n            emitWorker(1, [factory2.createExpressionStatement(factory2.inlineExpressions(pendingExpressions))]);\n            pendingExpressions = [];\n          }\n          pendingExpressions.push(Debug.checkDefined(visitNode(node2, visitor, isExpression)));\n        }\n      }\n    }\n    function visitCommaListExpression(node) {\n      let pendingExpressions = [];\n      for (const elem of node.elements) {\n        if (isBinaryExpression(elem) && elem.operatorToken.kind === 27) {\n          pendingExpressions.push(visitCommaExpression(elem));\n        } else {\n          if (containsYield(elem) && pendingExpressions.length > 0) {\n            emitWorker(1, [factory2.createExpressionStatement(factory2.inlineExpressions(pendingExpressions))]);\n            pendingExpressions = [];\n          }\n          pendingExpressions.push(Debug.checkDefined(visitNode(elem, visitor, isExpression)));\n        }\n      }\n      return factory2.inlineExpressions(pendingExpressions);\n    }\n    function visitLogicalBinaryExpression(node) {\n      const resultLabel = defineLabel();\n      const resultLocal = declareLocal();\n      emitAssignment(resultLocal, Debug.checkDefined(visitNode(node.left, visitor, isExpression)), node.left);\n      if (node.operatorToken.kind === 55) {\n        emitBreakWhenFalse(resultLabel, resultLocal, node.left);\n      } else {\n        emitBreakWhenTrue(resultLabel, resultLocal, node.left);\n      }\n      emitAssignment(resultLocal, Debug.checkDefined(visitNode(node.right, visitor, isExpression)), node.right);\n      markLabel(resultLabel);\n      return resultLocal;\n    }\n    function visitConditionalExpression(node) {\n      if (containsYield(node.whenTrue) || containsYield(node.whenFalse)) {\n        const whenFalseLabel = defineLabel();\n        const resultLabel = defineLabel();\n        const resultLocal = declareLocal();\n        emitBreakWhenFalse(whenFalseLabel, Debug.checkDefined(visitNode(node.condition, visitor, isExpression)), node.condition);\n        emitAssignment(resultLocal, Debug.checkDefined(visitNode(node.whenTrue, visitor, isExpression)), node.whenTrue);\n        emitBreak(resultLabel);\n        markLabel(whenFalseLabel);\n        emitAssignment(resultLocal, Debug.checkDefined(visitNode(node.whenFalse, visitor, isExpression)), node.whenFalse);\n        markLabel(resultLabel);\n        return resultLocal;\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitYieldExpression(node) {\n      const resumeLabel = defineLabel();\n      const expression = visitNode(node.expression, visitor, isExpression);\n      if (node.asteriskToken) {\n        const iterator = (getEmitFlags(node.expression) & 16777216) === 0 ? setTextRange(emitHelpers().createValuesHelper(expression), node) : expression;\n        emitYieldStar(iterator, node);\n      } else {\n        emitYield(expression, node);\n      }\n      markLabel(resumeLabel);\n      return createGeneratorResume(node);\n    }\n    function visitArrayLiteralExpression(node) {\n      return visitElements(node.elements, void 0, void 0, node.multiLine);\n    }\n    function visitElements(elements, leadingElement, location, multiLine) {\n      const numInitialElements = countInitialNodesWithoutYield(elements);\n      let temp;\n      if (numInitialElements > 0) {\n        temp = declareLocal();\n        const initialElements = visitNodes2(elements, visitor, isExpression, 0, numInitialElements);\n        emitAssignment(temp, factory2.createArrayLiteralExpression(leadingElement ? [leadingElement, ...initialElements] : initialElements));\n        leadingElement = void 0;\n      }\n      const expressions = reduceLeft(elements, reduceElement, [], numInitialElements);\n      return temp ? factory2.createArrayConcatCall(temp, [factory2.createArrayLiteralExpression(expressions, multiLine)]) : setTextRange(factory2.createArrayLiteralExpression(leadingElement ? [leadingElement, ...expressions] : expressions, multiLine), location);\n      function reduceElement(expressions2, element) {\n        if (containsYield(element) && expressions2.length > 0) {\n          const hasAssignedTemp = temp !== void 0;\n          if (!temp) {\n            temp = declareLocal();\n          }\n          emitAssignment(temp, hasAssignedTemp ? factory2.createArrayConcatCall(temp, [factory2.createArrayLiteralExpression(expressions2, multiLine)]) : factory2.createArrayLiteralExpression(leadingElement ? [leadingElement, ...expressions2] : expressions2, multiLine));\n          leadingElement = void 0;\n          expressions2 = [];\n        }\n        expressions2.push(Debug.checkDefined(visitNode(element, visitor, isExpression)));\n        return expressions2;\n      }\n    }\n    function visitObjectLiteralExpression(node) {\n      const properties = node.properties;\n      const multiLine = node.multiLine;\n      const numInitialProperties = countInitialNodesWithoutYield(properties);\n      const temp = declareLocal();\n      emitAssignment(temp, factory2.createObjectLiteralExpression(visitNodes2(properties, visitor, isObjectLiteralElementLike, 0, numInitialProperties), multiLine));\n      const expressions = reduceLeft(properties, reduceProperty, [], numInitialProperties);\n      expressions.push(multiLine ? startOnNewLine(setParent(setTextRange(factory2.cloneNode(temp), temp), temp.parent)) : temp);\n      return factory2.inlineExpressions(expressions);\n      function reduceProperty(expressions2, property) {\n        if (containsYield(property) && expressions2.length > 0) {\n          emitStatement(factory2.createExpressionStatement(factory2.inlineExpressions(expressions2)));\n          expressions2 = [];\n        }\n        const expression = createExpressionForObjectLiteralElementLike(factory2, node, property, temp);\n        const visited = visitNode(expression, visitor, isExpression);\n        if (visited) {\n          if (multiLine) {\n            startOnNewLine(visited);\n          }\n          expressions2.push(visited);\n        }\n        return expressions2;\n      }\n    }\n    function visitElementAccessExpression(node) {\n      if (containsYield(node.argumentExpression)) {\n        return factory2.updateElementAccessExpression(node, cacheExpression(Debug.checkDefined(visitNode(node.expression, visitor, isLeftHandSideExpression))), Debug.checkDefined(visitNode(node.argumentExpression, visitor, isExpression)));\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitCallExpression(node) {\n      if (!isImportCall(node) && forEach(node.arguments, containsYield)) {\n        const { target, thisArg } = factory2.createCallBinding(node.expression, hoistVariableDeclaration, languageVersion, true);\n        return setOriginalNode(setTextRange(factory2.createFunctionApplyCall(cacheExpression(Debug.checkDefined(visitNode(target, visitor, isLeftHandSideExpression))), thisArg, visitElements(node.arguments)), node), node);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitNewExpression(node) {\n      if (forEach(node.arguments, containsYield)) {\n        const { target, thisArg } = factory2.createCallBinding(factory2.createPropertyAccessExpression(node.expression, \"bind\"), hoistVariableDeclaration);\n        return setOriginalNode(setTextRange(factory2.createNewExpression(factory2.createFunctionApplyCall(cacheExpression(Debug.checkDefined(visitNode(target, visitor, isExpression))), thisArg, visitElements(node.arguments, factory2.createVoidZero())), void 0, []), node), node);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function transformAndEmitStatements(statements2, start = 0) {\n      const numStatements = statements2.length;\n      for (let i = start; i < numStatements; i++) {\n        transformAndEmitStatement(statements2[i]);\n      }\n    }\n    function transformAndEmitEmbeddedStatement(node) {\n      if (isBlock(node)) {\n        transformAndEmitStatements(node.statements);\n      } else {\n        transformAndEmitStatement(node);\n      }\n    }\n    function transformAndEmitStatement(node) {\n      const savedInStatementContainingYield = inStatementContainingYield;\n      if (!inStatementContainingYield) {\n        inStatementContainingYield = containsYield(node);\n      }\n      transformAndEmitStatementWorker(node);\n      inStatementContainingYield = savedInStatementContainingYield;\n    }\n    function transformAndEmitStatementWorker(node) {\n      switch (node.kind) {\n        case 238:\n          return transformAndEmitBlock(node);\n        case 241:\n          return transformAndEmitExpressionStatement(node);\n        case 242:\n          return transformAndEmitIfStatement(node);\n        case 243:\n          return transformAndEmitDoStatement(node);\n        case 244:\n          return transformAndEmitWhileStatement(node);\n        case 245:\n          return transformAndEmitForStatement(node);\n        case 246:\n          return transformAndEmitForInStatement(node);\n        case 248:\n          return transformAndEmitContinueStatement(node);\n        case 249:\n          return transformAndEmitBreakStatement(node);\n        case 250:\n          return transformAndEmitReturnStatement(node);\n        case 251:\n          return transformAndEmitWithStatement(node);\n        case 252:\n          return transformAndEmitSwitchStatement(node);\n        case 253:\n          return transformAndEmitLabeledStatement(node);\n        case 254:\n          return transformAndEmitThrowStatement(node);\n        case 255:\n          return transformAndEmitTryStatement(node);\n        default:\n          return emitStatement(visitNode(node, visitor, isStatement));\n      }\n    }\n    function transformAndEmitBlock(node) {\n      if (containsYield(node)) {\n        transformAndEmitStatements(node.statements);\n      } else {\n        emitStatement(visitNode(node, visitor, isStatement));\n      }\n    }\n    function transformAndEmitExpressionStatement(node) {\n      emitStatement(visitNode(node, visitor, isStatement));\n    }\n    function transformAndEmitVariableDeclarationList(node) {\n      for (const variable of node.declarations) {\n        const name = factory2.cloneNode(variable.name);\n        setCommentRange(name, variable.name);\n        hoistVariableDeclaration(name);\n      }\n      const variables = getInitializedVariables(node);\n      const numVariables = variables.length;\n      let variablesWritten = 0;\n      let pendingExpressions = [];\n      while (variablesWritten < numVariables) {\n        for (let i = variablesWritten; i < numVariables; i++) {\n          const variable = variables[i];\n          if (containsYield(variable.initializer) && pendingExpressions.length > 0) {\n            break;\n          }\n          pendingExpressions.push(transformInitializedVariable(variable));\n        }\n        if (pendingExpressions.length) {\n          emitStatement(factory2.createExpressionStatement(factory2.inlineExpressions(pendingExpressions)));\n          variablesWritten += pendingExpressions.length;\n          pendingExpressions = [];\n        }\n      }\n      return void 0;\n    }\n    function transformInitializedVariable(node) {\n      return setSourceMapRange(factory2.createAssignment(setSourceMapRange(factory2.cloneNode(node.name), node.name), Debug.checkDefined(visitNode(node.initializer, visitor, isExpression))), node);\n    }\n    function transformAndEmitIfStatement(node) {\n      if (containsYield(node)) {\n        if (containsYield(node.thenStatement) || containsYield(node.elseStatement)) {\n          const endLabel = defineLabel();\n          const elseLabel = node.elseStatement ? defineLabel() : void 0;\n          emitBreakWhenFalse(node.elseStatement ? elseLabel : endLabel, Debug.checkDefined(visitNode(node.expression, visitor, isExpression)), node.expression);\n          transformAndEmitEmbeddedStatement(node.thenStatement);\n          if (node.elseStatement) {\n            emitBreak(endLabel);\n            markLabel(elseLabel);\n            transformAndEmitEmbeddedStatement(node.elseStatement);\n          }\n          markLabel(endLabel);\n        } else {\n          emitStatement(visitNode(node, visitor, isStatement));\n        }\n      } else {\n        emitStatement(visitNode(node, visitor, isStatement));\n      }\n    }\n    function transformAndEmitDoStatement(node) {\n      if (containsYield(node)) {\n        const conditionLabel = defineLabel();\n        const loopLabel = defineLabel();\n        beginLoopBlock(conditionLabel);\n        markLabel(loopLabel);\n        transformAndEmitEmbeddedStatement(node.statement);\n        markLabel(conditionLabel);\n        emitBreakWhenTrue(loopLabel, Debug.checkDefined(visitNode(node.expression, visitor, isExpression)));\n        endLoopBlock();\n      } else {\n        emitStatement(visitNode(node, visitor, isStatement));\n      }\n    }\n    function visitDoStatement(node) {\n      if (inStatementContainingYield) {\n        beginScriptLoopBlock();\n        node = visitEachChild(node, visitor, context);\n        endLoopBlock();\n        return node;\n      } else {\n        return visitEachChild(node, visitor, context);\n      }\n    }\n    function transformAndEmitWhileStatement(node) {\n      if (containsYield(node)) {\n        const loopLabel = defineLabel();\n        const endLabel = beginLoopBlock(loopLabel);\n        markLabel(loopLabel);\n        emitBreakWhenFalse(endLabel, Debug.checkDefined(visitNode(node.expression, visitor, isExpression)));\n        transformAndEmitEmbeddedStatement(node.statement);\n        emitBreak(loopLabel);\n        endLoopBlock();\n      } else {\n        emitStatement(visitNode(node, visitor, isStatement));\n      }\n    }\n    function visitWhileStatement(node) {\n      if (inStatementContainingYield) {\n        beginScriptLoopBlock();\n        node = visitEachChild(node, visitor, context);\n        endLoopBlock();\n        return node;\n      } else {\n        return visitEachChild(node, visitor, context);\n      }\n    }\n    function transformAndEmitForStatement(node) {\n      if (containsYield(node)) {\n        const conditionLabel = defineLabel();\n        const incrementLabel = defineLabel();\n        const endLabel = beginLoopBlock(incrementLabel);\n        if (node.initializer) {\n          const initializer = node.initializer;\n          if (isVariableDeclarationList(initializer)) {\n            transformAndEmitVariableDeclarationList(initializer);\n          } else {\n            emitStatement(setTextRange(factory2.createExpressionStatement(Debug.checkDefined(visitNode(initializer, visitor, isExpression))), initializer));\n          }\n        }\n        markLabel(conditionLabel);\n        if (node.condition) {\n          emitBreakWhenFalse(endLabel, Debug.checkDefined(visitNode(node.condition, visitor, isExpression)));\n        }\n        transformAndEmitEmbeddedStatement(node.statement);\n        markLabel(incrementLabel);\n        if (node.incrementor) {\n          emitStatement(setTextRange(factory2.createExpressionStatement(Debug.checkDefined(visitNode(node.incrementor, visitor, isExpression))), node.incrementor));\n        }\n        emitBreak(conditionLabel);\n        endLoopBlock();\n      } else {\n        emitStatement(visitNode(node, visitor, isStatement));\n      }\n    }\n    function visitForStatement(node) {\n      if (inStatementContainingYield) {\n        beginScriptLoopBlock();\n      }\n      const initializer = node.initializer;\n      if (initializer && isVariableDeclarationList(initializer)) {\n        for (const variable of initializer.declarations) {\n          hoistVariableDeclaration(variable.name);\n        }\n        const variables = getInitializedVariables(initializer);\n        node = factory2.updateForStatement(node, variables.length > 0 ? factory2.inlineExpressions(map(variables, transformInitializedVariable)) : void 0, visitNode(node.condition, visitor, isExpression), visitNode(node.incrementor, visitor, isExpression), visitIterationBody(node.statement, visitor, context));\n      } else {\n        node = visitEachChild(node, visitor, context);\n      }\n      if (inStatementContainingYield) {\n        endLoopBlock();\n      }\n      return node;\n    }\n    function transformAndEmitForInStatement(node) {\n      if (containsYield(node)) {\n        const obj = declareLocal();\n        const keysArray = declareLocal();\n        const key = declareLocal();\n        const keysIndex = factory2.createLoopVariable();\n        const initializer = node.initializer;\n        hoistVariableDeclaration(keysIndex);\n        emitAssignment(obj, Debug.checkDefined(visitNode(node.expression, visitor, isExpression)));\n        emitAssignment(keysArray, factory2.createArrayLiteralExpression());\n        emitStatement(factory2.createForInStatement(key, obj, factory2.createExpressionStatement(factory2.createCallExpression(factory2.createPropertyAccessExpression(keysArray, \"push\"), void 0, [key]))));\n        emitAssignment(keysIndex, factory2.createNumericLiteral(0));\n        const conditionLabel = defineLabel();\n        const incrementLabel = defineLabel();\n        const endLoopLabel = beginLoopBlock(incrementLabel);\n        markLabel(conditionLabel);\n        emitBreakWhenFalse(endLoopLabel, factory2.createLessThan(keysIndex, factory2.createPropertyAccessExpression(keysArray, \"length\")));\n        emitAssignment(key, factory2.createElementAccessExpression(keysArray, keysIndex));\n        emitBreakWhenFalse(incrementLabel, factory2.createBinaryExpression(key, 101, obj));\n        let variable;\n        if (isVariableDeclarationList(initializer)) {\n          for (const variable2 of initializer.declarations) {\n            hoistVariableDeclaration(variable2.name);\n          }\n          variable = factory2.cloneNode(initializer.declarations[0].name);\n        } else {\n          variable = Debug.checkDefined(visitNode(initializer, visitor, isExpression));\n          Debug.assert(isLeftHandSideExpression(variable));\n        }\n        emitAssignment(variable, key);\n        transformAndEmitEmbeddedStatement(node.statement);\n        markLabel(incrementLabel);\n        emitStatement(factory2.createExpressionStatement(factory2.createPostfixIncrement(keysIndex)));\n        emitBreak(conditionLabel);\n        endLoopBlock();\n      } else {\n        emitStatement(visitNode(node, visitor, isStatement));\n      }\n    }\n    function visitForInStatement(node) {\n      if (inStatementContainingYield) {\n        beginScriptLoopBlock();\n      }\n      const initializer = node.initializer;\n      if (isVariableDeclarationList(initializer)) {\n        for (const variable of initializer.declarations) {\n          hoistVariableDeclaration(variable.name);\n        }\n        node = factory2.updateForInStatement(node, initializer.declarations[0].name, Debug.checkDefined(visitNode(node.expression, visitor, isExpression)), Debug.checkDefined(visitNode(node.statement, visitor, isStatement, factory2.liftToBlock)));\n      } else {\n        node = visitEachChild(node, visitor, context);\n      }\n      if (inStatementContainingYield) {\n        endLoopBlock();\n      }\n      return node;\n    }\n    function transformAndEmitContinueStatement(node) {\n      const label = findContinueTarget(node.label ? idText(node.label) : void 0);\n      if (label > 0) {\n        emitBreak(label, node);\n      } else {\n        emitStatement(node);\n      }\n    }\n    function visitContinueStatement(node) {\n      if (inStatementContainingYield) {\n        const label = findContinueTarget(node.label && idText(node.label));\n        if (label > 0) {\n          return createInlineBreak(label, node);\n        }\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function transformAndEmitBreakStatement(node) {\n      const label = findBreakTarget(node.label ? idText(node.label) : void 0);\n      if (label > 0) {\n        emitBreak(label, node);\n      } else {\n        emitStatement(node);\n      }\n    }\n    function visitBreakStatement(node) {\n      if (inStatementContainingYield) {\n        const label = findBreakTarget(node.label && idText(node.label));\n        if (label > 0) {\n          return createInlineBreak(label, node);\n        }\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function transformAndEmitReturnStatement(node) {\n      emitReturn(visitNode(node.expression, visitor, isExpression), node);\n    }\n    function visitReturnStatement(node) {\n      return createInlineReturn(visitNode(node.expression, visitor, isExpression), node);\n    }\n    function transformAndEmitWithStatement(node) {\n      if (containsYield(node)) {\n        beginWithBlock(cacheExpression(Debug.checkDefined(visitNode(node.expression, visitor, isExpression))));\n        transformAndEmitEmbeddedStatement(node.statement);\n        endWithBlock();\n      } else {\n        emitStatement(visitNode(node, visitor, isStatement));\n      }\n    }\n    function transformAndEmitSwitchStatement(node) {\n      if (containsYield(node.caseBlock)) {\n        const caseBlock = node.caseBlock;\n        const numClauses = caseBlock.clauses.length;\n        const endLabel = beginSwitchBlock();\n        const expression = cacheExpression(Debug.checkDefined(visitNode(node.expression, visitor, isExpression)));\n        const clauseLabels = [];\n        let defaultClauseIndex = -1;\n        for (let i = 0; i < numClauses; i++) {\n          const clause = caseBlock.clauses[i];\n          clauseLabels.push(defineLabel());\n          if (clause.kind === 293 && defaultClauseIndex === -1) {\n            defaultClauseIndex = i;\n          }\n        }\n        let clausesWritten = 0;\n        let pendingClauses = [];\n        while (clausesWritten < numClauses) {\n          let defaultClausesSkipped = 0;\n          for (let i = clausesWritten; i < numClauses; i++) {\n            const clause = caseBlock.clauses[i];\n            if (clause.kind === 292) {\n              if (containsYield(clause.expression) && pendingClauses.length > 0) {\n                break;\n              }\n              pendingClauses.push(factory2.createCaseClause(Debug.checkDefined(visitNode(clause.expression, visitor, isExpression)), [\n                createInlineBreak(clauseLabels[i], clause.expression)\n              ]));\n            } else {\n              defaultClausesSkipped++;\n            }\n          }\n          if (pendingClauses.length) {\n            emitStatement(factory2.createSwitchStatement(expression, factory2.createCaseBlock(pendingClauses)));\n            clausesWritten += pendingClauses.length;\n            pendingClauses = [];\n          }\n          if (defaultClausesSkipped > 0) {\n            clausesWritten += defaultClausesSkipped;\n            defaultClausesSkipped = 0;\n          }\n        }\n        if (defaultClauseIndex >= 0) {\n          emitBreak(clauseLabels[defaultClauseIndex]);\n        } else {\n          emitBreak(endLabel);\n        }\n        for (let i = 0; i < numClauses; i++) {\n          markLabel(clauseLabels[i]);\n          transformAndEmitStatements(caseBlock.clauses[i].statements);\n        }\n        endSwitchBlock();\n      } else {\n        emitStatement(visitNode(node, visitor, isStatement));\n      }\n    }\n    function visitSwitchStatement(node) {\n      if (inStatementContainingYield) {\n        beginScriptSwitchBlock();\n      }\n      node = visitEachChild(node, visitor, context);\n      if (inStatementContainingYield) {\n        endSwitchBlock();\n      }\n      return node;\n    }\n    function transformAndEmitLabeledStatement(node) {\n      if (containsYield(node)) {\n        beginLabeledBlock(idText(node.label));\n        transformAndEmitEmbeddedStatement(node.statement);\n        endLabeledBlock();\n      } else {\n        emitStatement(visitNode(node, visitor, isStatement));\n      }\n    }\n    function visitLabeledStatement(node) {\n      if (inStatementContainingYield) {\n        beginScriptLabeledBlock(idText(node.label));\n      }\n      node = visitEachChild(node, visitor, context);\n      if (inStatementContainingYield) {\n        endLabeledBlock();\n      }\n      return node;\n    }\n    function transformAndEmitThrowStatement(node) {\n      var _a2;\n      emitThrow(Debug.checkDefined(visitNode((_a2 = node.expression) != null ? _a2 : factory2.createVoidZero(), visitor, isExpression)), node);\n    }\n    function transformAndEmitTryStatement(node) {\n      if (containsYield(node)) {\n        beginExceptionBlock();\n        transformAndEmitEmbeddedStatement(node.tryBlock);\n        if (node.catchClause) {\n          beginCatchBlock(node.catchClause.variableDeclaration);\n          transformAndEmitEmbeddedStatement(node.catchClause.block);\n        }\n        if (node.finallyBlock) {\n          beginFinallyBlock();\n          transformAndEmitEmbeddedStatement(node.finallyBlock);\n        }\n        endExceptionBlock();\n      } else {\n        emitStatement(visitEachChild(node, visitor, context));\n      }\n    }\n    function containsYield(node) {\n      return !!node && (node.transformFlags & 1048576) !== 0;\n    }\n    function countInitialNodesWithoutYield(nodes) {\n      const numNodes = nodes.length;\n      for (let i = 0; i < numNodes; i++) {\n        if (containsYield(nodes[i])) {\n          return i;\n        }\n      }\n      return -1;\n    }\n    function onSubstituteNode(hint, node) {\n      node = previousOnSubstituteNode(hint, node);\n      if (hint === 1) {\n        return substituteExpression(node);\n      }\n      return node;\n    }\n    function substituteExpression(node) {\n      if (isIdentifier(node)) {\n        return substituteExpressionIdentifier(node);\n      }\n      return node;\n    }\n    function substituteExpressionIdentifier(node) {\n      if (!isGeneratedIdentifier(node) && renamedCatchVariables && renamedCatchVariables.has(idText(node))) {\n        const original = getOriginalNode(node);\n        if (isIdentifier(original) && original.parent) {\n          const declaration = resolver.getReferencedValueDeclaration(original);\n          if (declaration) {\n            const name = renamedCatchVariableDeclarations[getOriginalNodeId(declaration)];\n            if (name) {\n              const clone2 = setParent(setTextRange(factory2.cloneNode(name), name), name.parent);\n              setSourceMapRange(clone2, node);\n              setCommentRange(clone2, node);\n              return clone2;\n            }\n          }\n        }\n      }\n      return node;\n    }\n    function cacheExpression(node) {\n      if (isGeneratedIdentifier(node) || getEmitFlags(node) & 8192) {\n        return node;\n      }\n      const temp = factory2.createTempVariable(hoistVariableDeclaration);\n      emitAssignment(temp, node, node);\n      return temp;\n    }\n    function declareLocal(name) {\n      const temp = name ? factory2.createUniqueName(name) : factory2.createTempVariable(void 0);\n      hoistVariableDeclaration(temp);\n      return temp;\n    }\n    function defineLabel() {\n      if (!labelOffsets) {\n        labelOffsets = [];\n      }\n      const label = nextLabelId;\n      nextLabelId++;\n      labelOffsets[label] = -1;\n      return label;\n    }\n    function markLabel(label) {\n      Debug.assert(labelOffsets !== void 0, \"No labels were defined.\");\n      labelOffsets[label] = operations ? operations.length : 0;\n    }\n    function beginBlock(block) {\n      if (!blocks) {\n        blocks = [];\n        blockActions = [];\n        blockOffsets = [];\n        blockStack = [];\n      }\n      const index = blockActions.length;\n      blockActions[index] = 0;\n      blockOffsets[index] = operations ? operations.length : 0;\n      blocks[index] = block;\n      blockStack.push(block);\n      return index;\n    }\n    function endBlock() {\n      const block = peekBlock();\n      if (block === void 0)\n        return Debug.fail(\"beginBlock was never called.\");\n      const index = blockActions.length;\n      blockActions[index] = 1;\n      blockOffsets[index] = operations ? operations.length : 0;\n      blocks[index] = block;\n      blockStack.pop();\n      return block;\n    }\n    function peekBlock() {\n      return lastOrUndefined(blockStack);\n    }\n    function peekBlockKind() {\n      const block = peekBlock();\n      return block && block.kind;\n    }\n    function beginWithBlock(expression) {\n      const startLabel = defineLabel();\n      const endLabel = defineLabel();\n      markLabel(startLabel);\n      beginBlock({\n        kind: 1,\n        expression,\n        startLabel,\n        endLabel\n      });\n    }\n    function endWithBlock() {\n      Debug.assert(peekBlockKind() === 1);\n      const block = endBlock();\n      markLabel(block.endLabel);\n    }\n    function beginExceptionBlock() {\n      const startLabel = defineLabel();\n      const endLabel = defineLabel();\n      markLabel(startLabel);\n      beginBlock({\n        kind: 0,\n        state: 0,\n        startLabel,\n        endLabel\n      });\n      emitNop();\n      return endLabel;\n    }\n    function beginCatchBlock(variable) {\n      Debug.assert(peekBlockKind() === 0);\n      let name;\n      if (isGeneratedIdentifier(variable.name)) {\n        name = variable.name;\n        hoistVariableDeclaration(variable.name);\n      } else {\n        const text = idText(variable.name);\n        name = declareLocal(text);\n        if (!renamedCatchVariables) {\n          renamedCatchVariables = /* @__PURE__ */ new Map();\n          renamedCatchVariableDeclarations = [];\n          context.enableSubstitution(79);\n        }\n        renamedCatchVariables.set(text, true);\n        renamedCatchVariableDeclarations[getOriginalNodeId(variable)] = name;\n      }\n      const exception = peekBlock();\n      Debug.assert(exception.state < 1);\n      const endLabel = exception.endLabel;\n      emitBreak(endLabel);\n      const catchLabel = defineLabel();\n      markLabel(catchLabel);\n      exception.state = 1;\n      exception.catchVariable = name;\n      exception.catchLabel = catchLabel;\n      emitAssignment(name, factory2.createCallExpression(factory2.createPropertyAccessExpression(state, \"sent\"), void 0, []));\n      emitNop();\n    }\n    function beginFinallyBlock() {\n      Debug.assert(peekBlockKind() === 0);\n      const exception = peekBlock();\n      Debug.assert(exception.state < 2);\n      const endLabel = exception.endLabel;\n      emitBreak(endLabel);\n      const finallyLabel = defineLabel();\n      markLabel(finallyLabel);\n      exception.state = 2;\n      exception.finallyLabel = finallyLabel;\n    }\n    function endExceptionBlock() {\n      Debug.assert(peekBlockKind() === 0);\n      const exception = endBlock();\n      const state2 = exception.state;\n      if (state2 < 2) {\n        emitBreak(exception.endLabel);\n      } else {\n        emitEndfinally();\n      }\n      markLabel(exception.endLabel);\n      emitNop();\n      exception.state = 3;\n    }\n    function beginScriptLoopBlock() {\n      beginBlock({\n        kind: 3,\n        isScript: true,\n        breakLabel: -1,\n        continueLabel: -1\n      });\n    }\n    function beginLoopBlock(continueLabel) {\n      const breakLabel = defineLabel();\n      beginBlock({\n        kind: 3,\n        isScript: false,\n        breakLabel,\n        continueLabel\n      });\n      return breakLabel;\n    }\n    function endLoopBlock() {\n      Debug.assert(peekBlockKind() === 3);\n      const block = endBlock();\n      const breakLabel = block.breakLabel;\n      if (!block.isScript) {\n        markLabel(breakLabel);\n      }\n    }\n    function beginScriptSwitchBlock() {\n      beginBlock({\n        kind: 2,\n        isScript: true,\n        breakLabel: -1\n      });\n    }\n    function beginSwitchBlock() {\n      const breakLabel = defineLabel();\n      beginBlock({\n        kind: 2,\n        isScript: false,\n        breakLabel\n      });\n      return breakLabel;\n    }\n    function endSwitchBlock() {\n      Debug.assert(peekBlockKind() === 2);\n      const block = endBlock();\n      const breakLabel = block.breakLabel;\n      if (!block.isScript) {\n        markLabel(breakLabel);\n      }\n    }\n    function beginScriptLabeledBlock(labelText) {\n      beginBlock({\n        kind: 4,\n        isScript: true,\n        labelText,\n        breakLabel: -1\n      });\n    }\n    function beginLabeledBlock(labelText) {\n      const breakLabel = defineLabel();\n      beginBlock({\n        kind: 4,\n        isScript: false,\n        labelText,\n        breakLabel\n      });\n    }\n    function endLabeledBlock() {\n      Debug.assert(peekBlockKind() === 4);\n      const block = endBlock();\n      if (!block.isScript) {\n        markLabel(block.breakLabel);\n      }\n    }\n    function supportsUnlabeledBreak(block) {\n      return block.kind === 2 || block.kind === 3;\n    }\n    function supportsLabeledBreakOrContinue(block) {\n      return block.kind === 4;\n    }\n    function supportsUnlabeledContinue(block) {\n      return block.kind === 3;\n    }\n    function hasImmediateContainingLabeledBlock(labelText, start) {\n      for (let j = start; j >= 0; j--) {\n        const containingBlock = blockStack[j];\n        if (supportsLabeledBreakOrContinue(containingBlock)) {\n          if (containingBlock.labelText === labelText) {\n            return true;\n          }\n        } else {\n          break;\n        }\n      }\n      return false;\n    }\n    function findBreakTarget(labelText) {\n      if (blockStack) {\n        if (labelText) {\n          for (let i = blockStack.length - 1; i >= 0; i--) {\n            const block = blockStack[i];\n            if (supportsLabeledBreakOrContinue(block) && block.labelText === labelText) {\n              return block.breakLabel;\n            } else if (supportsUnlabeledBreak(block) && hasImmediateContainingLabeledBlock(labelText, i - 1)) {\n              return block.breakLabel;\n            }\n          }\n        } else {\n          for (let i = blockStack.length - 1; i >= 0; i--) {\n            const block = blockStack[i];\n            if (supportsUnlabeledBreak(block)) {\n              return block.breakLabel;\n            }\n          }\n        }\n      }\n      return 0;\n    }\n    function findContinueTarget(labelText) {\n      if (blockStack) {\n        if (labelText) {\n          for (let i = blockStack.length - 1; i >= 0; i--) {\n            const block = blockStack[i];\n            if (supportsUnlabeledContinue(block) && hasImmediateContainingLabeledBlock(labelText, i - 1)) {\n              return block.continueLabel;\n            }\n          }\n        } else {\n          for (let i = blockStack.length - 1; i >= 0; i--) {\n            const block = blockStack[i];\n            if (supportsUnlabeledContinue(block)) {\n              return block.continueLabel;\n            }\n          }\n        }\n      }\n      return 0;\n    }\n    function createLabel(label) {\n      if (label !== void 0 && label > 0) {\n        if (labelExpressions === void 0) {\n          labelExpressions = [];\n        }\n        const expression = factory2.createNumericLiteral(-1);\n        if (labelExpressions[label] === void 0) {\n          labelExpressions[label] = [expression];\n        } else {\n          labelExpressions[label].push(expression);\n        }\n        return expression;\n      }\n      return factory2.createOmittedExpression();\n    }\n    function createInstruction(instruction) {\n      const literal = factory2.createNumericLiteral(instruction);\n      addSyntheticTrailingComment(literal, 3, getInstructionName(instruction));\n      return literal;\n    }\n    function createInlineBreak(label, location) {\n      Debug.assertLessThan(0, label, \"Invalid label\");\n      return setTextRange(factory2.createReturnStatement(factory2.createArrayLiteralExpression([\n        createInstruction(3),\n        createLabel(label)\n      ])), location);\n    }\n    function createInlineReturn(expression, location) {\n      return setTextRange(factory2.createReturnStatement(factory2.createArrayLiteralExpression(expression ? [createInstruction(2), expression] : [createInstruction(2)])), location);\n    }\n    function createGeneratorResume(location) {\n      return setTextRange(factory2.createCallExpression(factory2.createPropertyAccessExpression(state, \"sent\"), void 0, []), location);\n    }\n    function emitNop() {\n      emitWorker(0);\n    }\n    function emitStatement(node) {\n      if (node) {\n        emitWorker(1, [node]);\n      } else {\n        emitNop();\n      }\n    }\n    function emitAssignment(left, right, location) {\n      emitWorker(2, [left, right], location);\n    }\n    function emitBreak(label, location) {\n      emitWorker(3, [label], location);\n    }\n    function emitBreakWhenTrue(label, condition, location) {\n      emitWorker(4, [label, condition], location);\n    }\n    function emitBreakWhenFalse(label, condition, location) {\n      emitWorker(5, [label, condition], location);\n    }\n    function emitYieldStar(expression, location) {\n      emitWorker(7, [expression], location);\n    }\n    function emitYield(expression, location) {\n      emitWorker(6, [expression], location);\n    }\n    function emitReturn(expression, location) {\n      emitWorker(8, [expression], location);\n    }\n    function emitThrow(expression, location) {\n      emitWorker(9, [expression], location);\n    }\n    function emitEndfinally() {\n      emitWorker(10);\n    }\n    function emitWorker(code, args, location) {\n      if (operations === void 0) {\n        operations = [];\n        operationArguments = [];\n        operationLocations = [];\n      }\n      if (labelOffsets === void 0) {\n        markLabel(defineLabel());\n      }\n      const operationIndex = operations.length;\n      operations[operationIndex] = code;\n      operationArguments[operationIndex] = args;\n      operationLocations[operationIndex] = location;\n    }\n    function build2() {\n      blockIndex = 0;\n      labelNumber = 0;\n      labelNumbers = void 0;\n      lastOperationWasAbrupt = false;\n      lastOperationWasCompletion = false;\n      clauses = void 0;\n      statements = void 0;\n      exceptionBlockStack = void 0;\n      currentExceptionBlock = void 0;\n      withBlockStack = void 0;\n      const buildResult = buildStatements();\n      return emitHelpers().createGeneratorHelper(setEmitFlags(factory2.createFunctionExpression(void 0, void 0, void 0, void 0, [factory2.createParameterDeclaration(void 0, void 0, state)], void 0, factory2.createBlock(buildResult, buildResult.length > 0)), 1048576));\n    }\n    function buildStatements() {\n      if (operations) {\n        for (let operationIndex = 0; operationIndex < operations.length; operationIndex++) {\n          writeOperation(operationIndex);\n        }\n        flushFinalLabel(operations.length);\n      } else {\n        flushFinalLabel(0);\n      }\n      if (clauses) {\n        const labelExpression = factory2.createPropertyAccessExpression(state, \"label\");\n        const switchStatement = factory2.createSwitchStatement(labelExpression, factory2.createCaseBlock(clauses));\n        return [startOnNewLine(switchStatement)];\n      }\n      if (statements) {\n        return statements;\n      }\n      return [];\n    }\n    function flushLabel() {\n      if (!statements) {\n        return;\n      }\n      appendLabel(!lastOperationWasAbrupt);\n      lastOperationWasAbrupt = false;\n      lastOperationWasCompletion = false;\n      labelNumber++;\n    }\n    function flushFinalLabel(operationIndex) {\n      if (isFinalLabelReachable(operationIndex)) {\n        tryEnterLabel(operationIndex);\n        withBlockStack = void 0;\n        writeReturn(void 0, void 0);\n      }\n      if (statements && clauses) {\n        appendLabel(false);\n      }\n      updateLabelExpressions();\n    }\n    function isFinalLabelReachable(operationIndex) {\n      if (!lastOperationWasCompletion) {\n        return true;\n      }\n      if (!labelOffsets || !labelExpressions) {\n        return false;\n      }\n      for (let label = 0; label < labelOffsets.length; label++) {\n        if (labelOffsets[label] === operationIndex && labelExpressions[label]) {\n          return true;\n        }\n      }\n      return false;\n    }\n    function appendLabel(markLabelEnd) {\n      if (!clauses) {\n        clauses = [];\n      }\n      if (statements) {\n        if (withBlockStack) {\n          for (let i = withBlockStack.length - 1; i >= 0; i--) {\n            const withBlock = withBlockStack[i];\n            statements = [factory2.createWithStatement(withBlock.expression, factory2.createBlock(statements))];\n          }\n        }\n        if (currentExceptionBlock) {\n          const { startLabel, catchLabel, finallyLabel, endLabel } = currentExceptionBlock;\n          statements.unshift(factory2.createExpressionStatement(factory2.createCallExpression(factory2.createPropertyAccessExpression(factory2.createPropertyAccessExpression(state, \"trys\"), \"push\"), void 0, [\n            factory2.createArrayLiteralExpression([\n              createLabel(startLabel),\n              createLabel(catchLabel),\n              createLabel(finallyLabel),\n              createLabel(endLabel)\n            ])\n          ])));\n          currentExceptionBlock = void 0;\n        }\n        if (markLabelEnd) {\n          statements.push(factory2.createExpressionStatement(factory2.createAssignment(factory2.createPropertyAccessExpression(state, \"label\"), factory2.createNumericLiteral(labelNumber + 1))));\n        }\n      }\n      clauses.push(factory2.createCaseClause(factory2.createNumericLiteral(labelNumber), statements || []));\n      statements = void 0;\n    }\n    function tryEnterLabel(operationIndex) {\n      if (!labelOffsets) {\n        return;\n      }\n      for (let label = 0; label < labelOffsets.length; label++) {\n        if (labelOffsets[label] === operationIndex) {\n          flushLabel();\n          if (labelNumbers === void 0) {\n            labelNumbers = [];\n          }\n          if (labelNumbers[labelNumber] === void 0) {\n            labelNumbers[labelNumber] = [label];\n          } else {\n            labelNumbers[labelNumber].push(label);\n          }\n        }\n      }\n    }\n    function updateLabelExpressions() {\n      if (labelExpressions !== void 0 && labelNumbers !== void 0) {\n        for (let labelNumber2 = 0; labelNumber2 < labelNumbers.length; labelNumber2++) {\n          const labels = labelNumbers[labelNumber2];\n          if (labels !== void 0) {\n            for (const label of labels) {\n              const expressions = labelExpressions[label];\n              if (expressions !== void 0) {\n                for (const expression of expressions) {\n                  expression.text = String(labelNumber2);\n                }\n              }\n            }\n          }\n        }\n      }\n    }\n    function tryEnterOrLeaveBlock(operationIndex) {\n      if (blocks) {\n        for (; blockIndex < blockActions.length && blockOffsets[blockIndex] <= operationIndex; blockIndex++) {\n          const block = blocks[blockIndex];\n          const blockAction = blockActions[blockIndex];\n          switch (block.kind) {\n            case 0:\n              if (blockAction === 0) {\n                if (!exceptionBlockStack) {\n                  exceptionBlockStack = [];\n                }\n                if (!statements) {\n                  statements = [];\n                }\n                exceptionBlockStack.push(currentExceptionBlock);\n                currentExceptionBlock = block;\n              } else if (blockAction === 1) {\n                currentExceptionBlock = exceptionBlockStack.pop();\n              }\n              break;\n            case 1:\n              if (blockAction === 0) {\n                if (!withBlockStack) {\n                  withBlockStack = [];\n                }\n                withBlockStack.push(block);\n              } else if (blockAction === 1) {\n                withBlockStack.pop();\n              }\n              break;\n          }\n        }\n      }\n    }\n    function writeOperation(operationIndex) {\n      tryEnterLabel(operationIndex);\n      tryEnterOrLeaveBlock(operationIndex);\n      if (lastOperationWasAbrupt) {\n        return;\n      }\n      lastOperationWasAbrupt = false;\n      lastOperationWasCompletion = false;\n      const opcode = operations[operationIndex];\n      if (opcode === 0) {\n        return;\n      } else if (opcode === 10) {\n        return writeEndfinally();\n      }\n      const args = operationArguments[operationIndex];\n      if (opcode === 1) {\n        return writeStatement(args[0]);\n      }\n      const location = operationLocations[operationIndex];\n      switch (opcode) {\n        case 2:\n          return writeAssign(args[0], args[1], location);\n        case 3:\n          return writeBreak(args[0], location);\n        case 4:\n          return writeBreakWhenTrue(args[0], args[1], location);\n        case 5:\n          return writeBreakWhenFalse(args[0], args[1], location);\n        case 6:\n          return writeYield(args[0], location);\n        case 7:\n          return writeYieldStar(args[0], location);\n        case 8:\n          return writeReturn(args[0], location);\n        case 9:\n          return writeThrow(args[0], location);\n      }\n    }\n    function writeStatement(statement) {\n      if (statement) {\n        if (!statements) {\n          statements = [statement];\n        } else {\n          statements.push(statement);\n        }\n      }\n    }\n    function writeAssign(left, right, operationLocation) {\n      writeStatement(setTextRange(factory2.createExpressionStatement(factory2.createAssignment(left, right)), operationLocation));\n    }\n    function writeThrow(expression, operationLocation) {\n      lastOperationWasAbrupt = true;\n      lastOperationWasCompletion = true;\n      writeStatement(setTextRange(factory2.createThrowStatement(expression), operationLocation));\n    }\n    function writeReturn(expression, operationLocation) {\n      lastOperationWasAbrupt = true;\n      lastOperationWasCompletion = true;\n      writeStatement(setEmitFlags(setTextRange(factory2.createReturnStatement(factory2.createArrayLiteralExpression(expression ? [createInstruction(2), expression] : [createInstruction(2)])), operationLocation), 768));\n    }\n    function writeBreak(label, operationLocation) {\n      lastOperationWasAbrupt = true;\n      writeStatement(setEmitFlags(setTextRange(factory2.createReturnStatement(factory2.createArrayLiteralExpression([\n        createInstruction(3),\n        createLabel(label)\n      ])), operationLocation), 768));\n    }\n    function writeBreakWhenTrue(label, condition, operationLocation) {\n      writeStatement(setEmitFlags(factory2.createIfStatement(condition, setEmitFlags(setTextRange(factory2.createReturnStatement(factory2.createArrayLiteralExpression([\n        createInstruction(3),\n        createLabel(label)\n      ])), operationLocation), 768)), 1));\n    }\n    function writeBreakWhenFalse(label, condition, operationLocation) {\n      writeStatement(setEmitFlags(factory2.createIfStatement(factory2.createLogicalNot(condition), setEmitFlags(setTextRange(factory2.createReturnStatement(factory2.createArrayLiteralExpression([\n        createInstruction(3),\n        createLabel(label)\n      ])), operationLocation), 768)), 1));\n    }\n    function writeYield(expression, operationLocation) {\n      lastOperationWasAbrupt = true;\n      writeStatement(setEmitFlags(setTextRange(factory2.createReturnStatement(factory2.createArrayLiteralExpression(expression ? [createInstruction(4), expression] : [createInstruction(4)])), operationLocation), 768));\n    }\n    function writeYieldStar(expression, operationLocation) {\n      lastOperationWasAbrupt = true;\n      writeStatement(setEmitFlags(setTextRange(factory2.createReturnStatement(factory2.createArrayLiteralExpression([\n        createInstruction(5),\n        expression\n      ])), operationLocation), 768));\n    }\n    function writeEndfinally() {\n      lastOperationWasAbrupt = true;\n      writeStatement(factory2.createReturnStatement(factory2.createArrayLiteralExpression([\n        createInstruction(7)\n      ])));\n    }\n  }\n  var init_generators = __esm({\n    \"src/compiler/transformers/generators.ts\"() {\n      \"use strict\";\n      init_ts2();\n    }\n  });\n  function transformModule(context) {\n    function getTransformModuleDelegate(moduleKind2) {\n      switch (moduleKind2) {\n        case 2:\n          return transformAMDModule;\n        case 3:\n          return transformUMDModule;\n        default:\n          return transformCommonJSModule;\n      }\n    }\n    const {\n      factory: factory2,\n      getEmitHelperFactory: emitHelpers,\n      startLexicalEnvironment,\n      endLexicalEnvironment,\n      hoistVariableDeclaration\n    } = context;\n    const compilerOptions = context.getCompilerOptions();\n    const resolver = context.getEmitResolver();\n    const host = context.getEmitHost();\n    const languageVersion = getEmitScriptTarget(compilerOptions);\n    const moduleKind = getEmitModuleKind(compilerOptions);\n    const previousOnSubstituteNode = context.onSubstituteNode;\n    const previousOnEmitNode = context.onEmitNode;\n    context.onSubstituteNode = onSubstituteNode;\n    context.onEmitNode = onEmitNode;\n    context.enableSubstitution(210);\n    context.enableSubstitution(212);\n    context.enableSubstitution(79);\n    context.enableSubstitution(223);\n    context.enableSubstitution(300);\n    context.enableEmitNotification(308);\n    const moduleInfoMap = [];\n    const deferredExports = [];\n    let currentSourceFile;\n    let currentModuleInfo;\n    const noSubstitution = [];\n    let needUMDDynamicImportHelper;\n    return chainBundle(context, transformSourceFile);\n    function transformSourceFile(node) {\n      if (node.isDeclarationFile || !(isEffectiveExternalModule(node, compilerOptions) || node.transformFlags & 8388608 || isJsonSourceFile(node) && hasJsonModuleEmitEnabled(compilerOptions) && outFile(compilerOptions))) {\n        return node;\n      }\n      currentSourceFile = node;\n      currentModuleInfo = collectExternalModuleInfo(context, node, resolver, compilerOptions);\n      moduleInfoMap[getOriginalNodeId(node)] = currentModuleInfo;\n      const transformModule2 = getTransformModuleDelegate(moduleKind);\n      const updated = transformModule2(node);\n      currentSourceFile = void 0;\n      currentModuleInfo = void 0;\n      needUMDDynamicImportHelper = false;\n      return updated;\n    }\n    function shouldEmitUnderscoreUnderscoreESModule() {\n      if (!currentModuleInfo.exportEquals && isExternalModule(currentSourceFile)) {\n        return true;\n      }\n      return false;\n    }\n    function transformCommonJSModule(node) {\n      startLexicalEnvironment();\n      const statements = [];\n      const ensureUseStrict = getStrictOptionValue(compilerOptions, \"alwaysStrict\") || !compilerOptions.noImplicitUseStrict && isExternalModule(currentSourceFile);\n      const statementOffset = factory2.copyPrologue(node.statements, statements, ensureUseStrict && !isJsonSourceFile(node), topLevelVisitor);\n      if (shouldEmitUnderscoreUnderscoreESModule()) {\n        append(statements, createUnderscoreUnderscoreESModule());\n      }\n      if (length(currentModuleInfo.exportedNames)) {\n        const chunkSize = 50;\n        for (let i = 0; i < currentModuleInfo.exportedNames.length; i += chunkSize) {\n          append(statements, factory2.createExpressionStatement(reduceLeft(currentModuleInfo.exportedNames.slice(i, i + chunkSize), (prev, nextId) => factory2.createAssignment(factory2.createPropertyAccessExpression(factory2.createIdentifier(\"exports\"), factory2.createIdentifier(idText(nextId))), prev), factory2.createVoidZero())));\n        }\n      }\n      append(statements, visitNode(currentModuleInfo.externalHelpersImportDeclaration, topLevelVisitor, isStatement));\n      addRange(statements, visitNodes2(node.statements, topLevelVisitor, isStatement, statementOffset));\n      addExportEqualsIfNeeded(statements, false);\n      insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());\n      const updated = factory2.updateSourceFile(node, setTextRange(factory2.createNodeArray(statements), node.statements));\n      addEmitHelpers(updated, context.readEmitHelpers());\n      return updated;\n    }\n    function transformAMDModule(node) {\n      const define = factory2.createIdentifier(\"define\");\n      const moduleName = tryGetModuleNameFromFile(factory2, node, host, compilerOptions);\n      const jsonSourceFile = isJsonSourceFile(node) && node;\n      const { aliasedModuleNames, unaliasedModuleNames, importAliasNames } = collectAsynchronousDependencies(node, true);\n      const updated = factory2.updateSourceFile(node, setTextRange(factory2.createNodeArray([\n        factory2.createExpressionStatement(factory2.createCallExpression(define, void 0, [\n          ...moduleName ? [moduleName] : [],\n          factory2.createArrayLiteralExpression(jsonSourceFile ? emptyArray : [\n            factory2.createStringLiteral(\"require\"),\n            factory2.createStringLiteral(\"exports\"),\n            ...aliasedModuleNames,\n            ...unaliasedModuleNames\n          ]),\n          jsonSourceFile ? jsonSourceFile.statements.length ? jsonSourceFile.statements[0].expression : factory2.createObjectLiteralExpression() : factory2.createFunctionExpression(void 0, void 0, void 0, void 0, [\n            factory2.createParameterDeclaration(void 0, void 0, \"require\"),\n            factory2.createParameterDeclaration(void 0, void 0, \"exports\"),\n            ...importAliasNames\n          ], void 0, transformAsynchronousModuleBody(node))\n        ]))\n      ]), node.statements));\n      addEmitHelpers(updated, context.readEmitHelpers());\n      return updated;\n    }\n    function transformUMDModule(node) {\n      const { aliasedModuleNames, unaliasedModuleNames, importAliasNames } = collectAsynchronousDependencies(node, false);\n      const moduleName = tryGetModuleNameFromFile(factory2, node, host, compilerOptions);\n      const umdHeader = factory2.createFunctionExpression(void 0, void 0, void 0, void 0, [factory2.createParameterDeclaration(void 0, void 0, \"factory\")], void 0, setTextRange(factory2.createBlock([\n        factory2.createIfStatement(factory2.createLogicalAnd(factory2.createTypeCheck(factory2.createIdentifier(\"module\"), \"object\"), factory2.createTypeCheck(factory2.createPropertyAccessExpression(factory2.createIdentifier(\"module\"), \"exports\"), \"object\")), factory2.createBlock([\n          factory2.createVariableStatement(void 0, [\n            factory2.createVariableDeclaration(\"v\", void 0, void 0, factory2.createCallExpression(factory2.createIdentifier(\"factory\"), void 0, [\n              factory2.createIdentifier(\"require\"),\n              factory2.createIdentifier(\"exports\")\n            ]))\n          ]),\n          setEmitFlags(factory2.createIfStatement(factory2.createStrictInequality(factory2.createIdentifier(\"v\"), factory2.createIdentifier(\"undefined\")), factory2.createExpressionStatement(factory2.createAssignment(factory2.createPropertyAccessExpression(factory2.createIdentifier(\"module\"), \"exports\"), factory2.createIdentifier(\"v\")))), 1)\n        ]), factory2.createIfStatement(factory2.createLogicalAnd(factory2.createTypeCheck(factory2.createIdentifier(\"define\"), \"function\"), factory2.createPropertyAccessExpression(factory2.createIdentifier(\"define\"), \"amd\")), factory2.createBlock([\n          factory2.createExpressionStatement(factory2.createCallExpression(factory2.createIdentifier(\"define\"), void 0, [\n            ...moduleName ? [moduleName] : [],\n            factory2.createArrayLiteralExpression([\n              factory2.createStringLiteral(\"require\"),\n              factory2.createStringLiteral(\"exports\"),\n              ...aliasedModuleNames,\n              ...unaliasedModuleNames\n            ]),\n            factory2.createIdentifier(\"factory\")\n          ]))\n        ])))\n      ], true), void 0));\n      const updated = factory2.updateSourceFile(node, setTextRange(factory2.createNodeArray([\n        factory2.createExpressionStatement(factory2.createCallExpression(umdHeader, void 0, [\n          factory2.createFunctionExpression(void 0, void 0, void 0, void 0, [\n            factory2.createParameterDeclaration(void 0, void 0, \"require\"),\n            factory2.createParameterDeclaration(void 0, void 0, \"exports\"),\n            ...importAliasNames\n          ], void 0, transformAsynchronousModuleBody(node))\n        ]))\n      ]), node.statements));\n      addEmitHelpers(updated, context.readEmitHelpers());\n      return updated;\n    }\n    function collectAsynchronousDependencies(node, includeNonAmdDependencies) {\n      const aliasedModuleNames = [];\n      const unaliasedModuleNames = [];\n      const importAliasNames = [];\n      for (const amdDependency of node.amdDependencies) {\n        if (amdDependency.name) {\n          aliasedModuleNames.push(factory2.createStringLiteral(amdDependency.path));\n          importAliasNames.push(factory2.createParameterDeclaration(void 0, void 0, amdDependency.name));\n        } else {\n          unaliasedModuleNames.push(factory2.createStringLiteral(amdDependency.path));\n        }\n      }\n      for (const importNode of currentModuleInfo.externalImports) {\n        const externalModuleName = getExternalModuleNameLiteral(factory2, importNode, currentSourceFile, host, resolver, compilerOptions);\n        const importAliasName = getLocalNameForExternalImport(factory2, importNode, currentSourceFile);\n        if (externalModuleName) {\n          if (includeNonAmdDependencies && importAliasName) {\n            setEmitFlags(importAliasName, 8);\n            aliasedModuleNames.push(externalModuleName);\n            importAliasNames.push(factory2.createParameterDeclaration(void 0, void 0, importAliasName));\n          } else {\n            unaliasedModuleNames.push(externalModuleName);\n          }\n        }\n      }\n      return { aliasedModuleNames, unaliasedModuleNames, importAliasNames };\n    }\n    function getAMDImportExpressionForImport(node) {\n      if (isImportEqualsDeclaration(node) || isExportDeclaration(node) || !getExternalModuleNameLiteral(factory2, node, currentSourceFile, host, resolver, compilerOptions)) {\n        return void 0;\n      }\n      const name = getLocalNameForExternalImport(factory2, node, currentSourceFile);\n      const expr = getHelperExpressionForImport(node, name);\n      if (expr === name) {\n        return void 0;\n      }\n      return factory2.createExpressionStatement(factory2.createAssignment(name, expr));\n    }\n    function transformAsynchronousModuleBody(node) {\n      startLexicalEnvironment();\n      const statements = [];\n      const statementOffset = factory2.copyPrologue(node.statements, statements, !compilerOptions.noImplicitUseStrict, topLevelVisitor);\n      if (shouldEmitUnderscoreUnderscoreESModule()) {\n        append(statements, createUnderscoreUnderscoreESModule());\n      }\n      if (length(currentModuleInfo.exportedNames)) {\n        append(statements, factory2.createExpressionStatement(reduceLeft(currentModuleInfo.exportedNames, (prev, nextId) => factory2.createAssignment(factory2.createPropertyAccessExpression(factory2.createIdentifier(\"exports\"), factory2.createIdentifier(idText(nextId))), prev), factory2.createVoidZero())));\n      }\n      append(statements, visitNode(currentModuleInfo.externalHelpersImportDeclaration, topLevelVisitor, isStatement));\n      if (moduleKind === 2) {\n        addRange(statements, mapDefined(currentModuleInfo.externalImports, getAMDImportExpressionForImport));\n      }\n      addRange(statements, visitNodes2(node.statements, topLevelVisitor, isStatement, statementOffset));\n      addExportEqualsIfNeeded(statements, true);\n      insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());\n      const body = factory2.createBlock(statements, true);\n      if (needUMDDynamicImportHelper) {\n        addEmitHelper(body, dynamicImportUMDHelper);\n      }\n      return body;\n    }\n    function addExportEqualsIfNeeded(statements, emitAsReturn) {\n      if (currentModuleInfo.exportEquals) {\n        const expressionResult = visitNode(currentModuleInfo.exportEquals.expression, visitor, isExpression);\n        if (expressionResult) {\n          if (emitAsReturn) {\n            const statement = factory2.createReturnStatement(expressionResult);\n            setTextRange(statement, currentModuleInfo.exportEquals);\n            setEmitFlags(statement, 768 | 3072);\n            statements.push(statement);\n          } else {\n            const statement = factory2.createExpressionStatement(factory2.createAssignment(factory2.createPropertyAccessExpression(factory2.createIdentifier(\"module\"), \"exports\"), expressionResult));\n            setTextRange(statement, currentModuleInfo.exportEquals);\n            setEmitFlags(statement, 3072);\n            statements.push(statement);\n          }\n        }\n      }\n    }\n    function topLevelVisitor(node) {\n      switch (node.kind) {\n        case 269:\n          return visitImportDeclaration(node);\n        case 268:\n          return visitImportEqualsDeclaration(node);\n        case 275:\n          return visitExportDeclaration(node);\n        case 274:\n          return visitExportAssignment(node);\n        case 240:\n          return visitVariableStatement(node);\n        case 259:\n          return visitFunctionDeclaration(node);\n        case 260:\n          return visitClassDeclaration(node);\n        case 358:\n          return visitMergeDeclarationMarker(node);\n        case 359:\n          return visitEndOfDeclarationMarker(node);\n        default:\n          return visitor(node);\n      }\n    }\n    function visitorWorker(node, valueIsDiscarded) {\n      if (!(node.transformFlags & (8388608 | 4096 | 268435456))) {\n        return node;\n      }\n      switch (node.kind) {\n        case 245:\n          return visitForStatement(node);\n        case 241:\n          return visitExpressionStatement(node);\n        case 214:\n          return visitParenthesizedExpression(node, valueIsDiscarded);\n        case 356:\n          return visitPartiallyEmittedExpression(node, valueIsDiscarded);\n        case 210:\n          if (isImportCall(node) && currentSourceFile.impliedNodeFormat === void 0) {\n            return visitImportCallExpression(node);\n          }\n          break;\n        case 223:\n          if (isDestructuringAssignment(node)) {\n            return visitDestructuringAssignment(node, valueIsDiscarded);\n          }\n          break;\n        case 221:\n        case 222:\n          return visitPreOrPostfixUnaryExpression(node, valueIsDiscarded);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitor(node) {\n      return visitorWorker(node, false);\n    }\n    function discardedValueVisitor(node) {\n      return visitorWorker(node, true);\n    }\n    function destructuringNeedsFlattening(node) {\n      if (isObjectLiteralExpression(node)) {\n        for (const elem of node.properties) {\n          switch (elem.kind) {\n            case 299:\n              if (destructuringNeedsFlattening(elem.initializer)) {\n                return true;\n              }\n              break;\n            case 300:\n              if (destructuringNeedsFlattening(elem.name)) {\n                return true;\n              }\n              break;\n            case 301:\n              if (destructuringNeedsFlattening(elem.expression)) {\n                return true;\n              }\n              break;\n            case 171:\n            case 174:\n            case 175:\n              return false;\n            default:\n              Debug.assertNever(elem, \"Unhandled object member kind\");\n          }\n        }\n      } else if (isArrayLiteralExpression(node)) {\n        for (const elem of node.elements) {\n          if (isSpreadElement(elem)) {\n            if (destructuringNeedsFlattening(elem.expression)) {\n              return true;\n            }\n          } else if (destructuringNeedsFlattening(elem)) {\n            return true;\n          }\n        }\n      } else if (isIdentifier(node)) {\n        return length(getExports(node)) > (isExportName(node) ? 1 : 0);\n      }\n      return false;\n    }\n    function visitDestructuringAssignment(node, valueIsDiscarded) {\n      if (destructuringNeedsFlattening(node.left)) {\n        return flattenDestructuringAssignment(node, visitor, context, 0, !valueIsDiscarded, createAllExportExpressions);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitForStatement(node) {\n      return factory2.updateForStatement(node, visitNode(node.initializer, discardedValueVisitor, isForInitializer), visitNode(node.condition, visitor, isExpression), visitNode(node.incrementor, discardedValueVisitor, isExpression), visitIterationBody(node.statement, visitor, context));\n    }\n    function visitExpressionStatement(node) {\n      return factory2.updateExpressionStatement(node, visitNode(node.expression, discardedValueVisitor, isExpression));\n    }\n    function visitParenthesizedExpression(node, valueIsDiscarded) {\n      return factory2.updateParenthesizedExpression(node, visitNode(node.expression, valueIsDiscarded ? discardedValueVisitor : visitor, isExpression));\n    }\n    function visitPartiallyEmittedExpression(node, valueIsDiscarded) {\n      return factory2.updatePartiallyEmittedExpression(node, visitNode(node.expression, valueIsDiscarded ? discardedValueVisitor : visitor, isExpression));\n    }\n    function visitPreOrPostfixUnaryExpression(node, valueIsDiscarded) {\n      if ((node.operator === 45 || node.operator === 46) && isIdentifier(node.operand) && !isGeneratedIdentifier(node.operand) && !isLocalName(node.operand) && !isDeclarationNameOfEnumOrNamespace(node.operand)) {\n        const exportedNames = getExports(node.operand);\n        if (exportedNames) {\n          let temp;\n          let expression = visitNode(node.operand, visitor, isExpression);\n          if (isPrefixUnaryExpression(node)) {\n            expression = factory2.updatePrefixUnaryExpression(node, expression);\n          } else {\n            expression = factory2.updatePostfixUnaryExpression(node, expression);\n            if (!valueIsDiscarded) {\n              temp = factory2.createTempVariable(hoistVariableDeclaration);\n              expression = factory2.createAssignment(temp, expression);\n              setTextRange(expression, node);\n            }\n            expression = factory2.createComma(expression, factory2.cloneNode(node.operand));\n            setTextRange(expression, node);\n          }\n          for (const exportName of exportedNames) {\n            noSubstitution[getNodeId(expression)] = true;\n            expression = createExportExpression(exportName, expression);\n            setTextRange(expression, node);\n          }\n          if (temp) {\n            noSubstitution[getNodeId(expression)] = true;\n            expression = factory2.createComma(expression, temp);\n            setTextRange(expression, node);\n          }\n          return expression;\n        }\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitImportCallExpression(node) {\n      if (moduleKind === 0 && languageVersion >= 7) {\n        return visitEachChild(node, visitor, context);\n      }\n      const externalModuleName = getExternalModuleNameLiteral(factory2, node, currentSourceFile, host, resolver, compilerOptions);\n      const firstArgument = visitNode(firstOrUndefined(node.arguments), visitor, isExpression);\n      const argument = externalModuleName && (!firstArgument || !isStringLiteral(firstArgument) || firstArgument.text !== externalModuleName.text) ? externalModuleName : firstArgument;\n      const containsLexicalThis = !!(node.transformFlags & 16384);\n      switch (compilerOptions.module) {\n        case 2:\n          return createImportCallExpressionAMD(argument, containsLexicalThis);\n        case 3:\n          return createImportCallExpressionUMD(argument != null ? argument : factory2.createVoidZero(), containsLexicalThis);\n        case 1:\n        default:\n          return createImportCallExpressionCommonJS(argument);\n      }\n    }\n    function createImportCallExpressionUMD(arg, containsLexicalThis) {\n      needUMDDynamicImportHelper = true;\n      if (isSimpleCopiableExpression(arg)) {\n        const argClone = isGeneratedIdentifier(arg) ? arg : isStringLiteral(arg) ? factory2.createStringLiteralFromNode(arg) : setEmitFlags(setTextRange(factory2.cloneNode(arg), arg), 3072);\n        return factory2.createConditionalExpression(factory2.createIdentifier(\"__syncRequire\"), void 0, createImportCallExpressionCommonJS(arg), void 0, createImportCallExpressionAMD(argClone, containsLexicalThis));\n      } else {\n        const temp = factory2.createTempVariable(hoistVariableDeclaration);\n        return factory2.createComma(factory2.createAssignment(temp, arg), factory2.createConditionalExpression(factory2.createIdentifier(\"__syncRequire\"), void 0, createImportCallExpressionCommonJS(temp, true), void 0, createImportCallExpressionAMD(temp, containsLexicalThis)));\n      }\n    }\n    function createImportCallExpressionAMD(arg, containsLexicalThis) {\n      const resolve = factory2.createUniqueName(\"resolve\");\n      const reject = factory2.createUniqueName(\"reject\");\n      const parameters = [\n        factory2.createParameterDeclaration(void 0, void 0, resolve),\n        factory2.createParameterDeclaration(void 0, void 0, reject)\n      ];\n      const body = factory2.createBlock([\n        factory2.createExpressionStatement(factory2.createCallExpression(factory2.createIdentifier(\"require\"), void 0, [factory2.createArrayLiteralExpression([arg || factory2.createOmittedExpression()]), resolve, reject]))\n      ]);\n      let func;\n      if (languageVersion >= 2) {\n        func = factory2.createArrowFunction(void 0, void 0, parameters, void 0, void 0, body);\n      } else {\n        func = factory2.createFunctionExpression(void 0, void 0, void 0, void 0, parameters, void 0, body);\n        if (containsLexicalThis) {\n          setEmitFlags(func, 16);\n        }\n      }\n      const promise = factory2.createNewExpression(factory2.createIdentifier(\"Promise\"), void 0, [func]);\n      if (getESModuleInterop(compilerOptions)) {\n        return factory2.createCallExpression(factory2.createPropertyAccessExpression(promise, factory2.createIdentifier(\"then\")), void 0, [emitHelpers().createImportStarCallbackHelper()]);\n      }\n      return promise;\n    }\n    function createImportCallExpressionCommonJS(arg, isInlineable) {\n      const needSyncEval = arg && !isSimpleInlineableExpression(arg) && !isInlineable;\n      const promiseResolveCall = factory2.createCallExpression(factory2.createPropertyAccessExpression(factory2.createIdentifier(\"Promise\"), \"resolve\"), void 0, needSyncEval ? languageVersion >= 2 ? [\n        factory2.createTemplateExpression(factory2.createTemplateHead(\"\"), [\n          factory2.createTemplateSpan(arg, factory2.createTemplateTail(\"\"))\n        ])\n      ] : [\n        factory2.createCallExpression(factory2.createPropertyAccessExpression(factory2.createStringLiteral(\"\"), \"concat\"), void 0, [arg])\n      ] : []);\n      let requireCall = factory2.createCallExpression(factory2.createIdentifier(\"require\"), void 0, needSyncEval ? [factory2.createIdentifier(\"s\")] : arg ? [arg] : []);\n      if (getESModuleInterop(compilerOptions)) {\n        requireCall = emitHelpers().createImportStarHelper(requireCall);\n      }\n      const parameters = needSyncEval ? [\n        factory2.createParameterDeclaration(void 0, void 0, \"s\")\n      ] : [];\n      let func;\n      if (languageVersion >= 2) {\n        func = factory2.createArrowFunction(void 0, void 0, parameters, void 0, void 0, requireCall);\n      } else {\n        func = factory2.createFunctionExpression(void 0, void 0, void 0, void 0, parameters, void 0, factory2.createBlock([factory2.createReturnStatement(requireCall)]));\n      }\n      const downleveledImport = factory2.createCallExpression(factory2.createPropertyAccessExpression(promiseResolveCall, \"then\"), void 0, [func]);\n      return downleveledImport;\n    }\n    function getHelperExpressionForExport(node, innerExpr) {\n      if (!getESModuleInterop(compilerOptions) || getInternalEmitFlags(node) & 2) {\n        return innerExpr;\n      }\n      if (getExportNeedsImportStarHelper(node)) {\n        return emitHelpers().createImportStarHelper(innerExpr);\n      }\n      return innerExpr;\n    }\n    function getHelperExpressionForImport(node, innerExpr) {\n      if (!getESModuleInterop(compilerOptions) || getInternalEmitFlags(node) & 2) {\n        return innerExpr;\n      }\n      if (getImportNeedsImportStarHelper(node)) {\n        return emitHelpers().createImportStarHelper(innerExpr);\n      }\n      if (getImportNeedsImportDefaultHelper(node)) {\n        return emitHelpers().createImportDefaultHelper(innerExpr);\n      }\n      return innerExpr;\n    }\n    function visitImportDeclaration(node) {\n      let statements;\n      const namespaceDeclaration = getNamespaceDeclarationNode(node);\n      if (moduleKind !== 2) {\n        if (!node.importClause) {\n          return setOriginalNode(setTextRange(factory2.createExpressionStatement(createRequireCall2(node)), node), node);\n        } else {\n          const variables = [];\n          if (namespaceDeclaration && !isDefaultImport(node)) {\n            variables.push(factory2.createVariableDeclaration(factory2.cloneNode(namespaceDeclaration.name), void 0, void 0, getHelperExpressionForImport(node, createRequireCall2(node))));\n          } else {\n            variables.push(factory2.createVariableDeclaration(factory2.getGeneratedNameForNode(node), void 0, void 0, getHelperExpressionForImport(node, createRequireCall2(node))));\n            if (namespaceDeclaration && isDefaultImport(node)) {\n              variables.push(factory2.createVariableDeclaration(factory2.cloneNode(namespaceDeclaration.name), void 0, void 0, factory2.getGeneratedNameForNode(node)));\n            }\n          }\n          statements = append(statements, setOriginalNode(setTextRange(factory2.createVariableStatement(void 0, factory2.createVariableDeclarationList(variables, languageVersion >= 2 ? 2 : 0)), node), node));\n        }\n      } else if (namespaceDeclaration && isDefaultImport(node)) {\n        statements = append(statements, factory2.createVariableStatement(void 0, factory2.createVariableDeclarationList([\n          setOriginalNode(setTextRange(factory2.createVariableDeclaration(factory2.cloneNode(namespaceDeclaration.name), void 0, void 0, factory2.getGeneratedNameForNode(node)), node), node)\n        ], languageVersion >= 2 ? 2 : 0)));\n      }\n      if (hasAssociatedEndOfDeclarationMarker(node)) {\n        const id = getOriginalNodeId(node);\n        deferredExports[id] = appendExportsOfImportDeclaration(deferredExports[id], node);\n      } else {\n        statements = appendExportsOfImportDeclaration(statements, node);\n      }\n      return singleOrMany(statements);\n    }\n    function createRequireCall2(importNode) {\n      const moduleName = getExternalModuleNameLiteral(factory2, importNode, currentSourceFile, host, resolver, compilerOptions);\n      const args = [];\n      if (moduleName) {\n        args.push(moduleName);\n      }\n      return factory2.createCallExpression(factory2.createIdentifier(\"require\"), void 0, args);\n    }\n    function visitImportEqualsDeclaration(node) {\n      Debug.assert(isExternalModuleImportEqualsDeclaration(node), \"import= for internal module references should be handled in an earlier transformer.\");\n      let statements;\n      if (moduleKind !== 2) {\n        if (hasSyntacticModifier(node, 1)) {\n          statements = append(statements, setOriginalNode(setTextRange(factory2.createExpressionStatement(createExportExpression(node.name, createRequireCall2(node))), node), node));\n        } else {\n          statements = append(statements, setOriginalNode(setTextRange(factory2.createVariableStatement(void 0, factory2.createVariableDeclarationList([\n            factory2.createVariableDeclaration(factory2.cloneNode(node.name), void 0, void 0, createRequireCall2(node))\n          ], languageVersion >= 2 ? 2 : 0)), node), node));\n        }\n      } else {\n        if (hasSyntacticModifier(node, 1)) {\n          statements = append(statements, setOriginalNode(setTextRange(factory2.createExpressionStatement(createExportExpression(factory2.getExportName(node), factory2.getLocalName(node))), node), node));\n        }\n      }\n      if (hasAssociatedEndOfDeclarationMarker(node)) {\n        const id = getOriginalNodeId(node);\n        deferredExports[id] = appendExportsOfImportEqualsDeclaration(deferredExports[id], node);\n      } else {\n        statements = appendExportsOfImportEqualsDeclaration(statements, node);\n      }\n      return singleOrMany(statements);\n    }\n    function visitExportDeclaration(node) {\n      if (!node.moduleSpecifier) {\n        return void 0;\n      }\n      const generatedName = factory2.getGeneratedNameForNode(node);\n      if (node.exportClause && isNamedExports(node.exportClause)) {\n        const statements = [];\n        if (moduleKind !== 2) {\n          statements.push(setOriginalNode(setTextRange(factory2.createVariableStatement(void 0, factory2.createVariableDeclarationList([\n            factory2.createVariableDeclaration(generatedName, void 0, void 0, createRequireCall2(node))\n          ])), node), node));\n        }\n        for (const specifier of node.exportClause.elements) {\n          if (languageVersion === 0) {\n            statements.push(setOriginalNode(setTextRange(factory2.createExpressionStatement(emitHelpers().createCreateBindingHelper(generatedName, factory2.createStringLiteralFromNode(specifier.propertyName || specifier.name), specifier.propertyName ? factory2.createStringLiteralFromNode(specifier.name) : void 0)), specifier), specifier));\n          } else {\n            const exportNeedsImportDefault = !!getESModuleInterop(compilerOptions) && !(getInternalEmitFlags(node) & 2) && idText(specifier.propertyName || specifier.name) === \"default\";\n            const exportedValue = factory2.createPropertyAccessExpression(exportNeedsImportDefault ? emitHelpers().createImportDefaultHelper(generatedName) : generatedName, specifier.propertyName || specifier.name);\n            statements.push(setOriginalNode(setTextRange(factory2.createExpressionStatement(createExportExpression(factory2.getExportName(specifier), exportedValue, void 0, true)), specifier), specifier));\n          }\n        }\n        return singleOrMany(statements);\n      } else if (node.exportClause) {\n        const statements = [];\n        statements.push(setOriginalNode(setTextRange(factory2.createExpressionStatement(createExportExpression(factory2.cloneNode(node.exportClause.name), getHelperExpressionForExport(node, moduleKind !== 2 ? createRequireCall2(node) : isExportNamespaceAsDefaultDeclaration(node) ? generatedName : factory2.createIdentifier(idText(node.exportClause.name))))), node), node));\n        return singleOrMany(statements);\n      } else {\n        return setOriginalNode(setTextRange(factory2.createExpressionStatement(emitHelpers().createExportStarHelper(moduleKind !== 2 ? createRequireCall2(node) : generatedName)), node), node);\n      }\n    }\n    function visitExportAssignment(node) {\n      if (node.isExportEquals) {\n        return void 0;\n      }\n      let statements;\n      const original = node.original;\n      if (original && hasAssociatedEndOfDeclarationMarker(original)) {\n        const id = getOriginalNodeId(node);\n        deferredExports[id] = appendExportStatement(deferredExports[id], factory2.createIdentifier(\"default\"), visitNode(node.expression, visitor, isExpression), node, true);\n      } else {\n        statements = appendExportStatement(statements, factory2.createIdentifier(\"default\"), visitNode(node.expression, visitor, isExpression), node, true);\n      }\n      return singleOrMany(statements);\n    }\n    function visitFunctionDeclaration(node) {\n      let statements;\n      if (hasSyntacticModifier(node, 1)) {\n        statements = append(statements, setOriginalNode(setTextRange(factory2.createFunctionDeclaration(visitNodes2(node.modifiers, modifierVisitor, isModifier), node.asteriskToken, factory2.getDeclarationName(node, true, true), void 0, visitNodes2(node.parameters, visitor, isParameter), void 0, visitEachChild(node.body, visitor, context)), node), node));\n      } else {\n        statements = append(statements, visitEachChild(node, visitor, context));\n      }\n      if (hasAssociatedEndOfDeclarationMarker(node)) {\n        const id = getOriginalNodeId(node);\n        deferredExports[id] = appendExportsOfHoistedDeclaration(deferredExports[id], node);\n      } else {\n        statements = appendExportsOfHoistedDeclaration(statements, node);\n      }\n      return singleOrMany(statements);\n    }\n    function visitClassDeclaration(node) {\n      let statements;\n      if (hasSyntacticModifier(node, 1)) {\n        statements = append(statements, setOriginalNode(setTextRange(factory2.createClassDeclaration(visitNodes2(node.modifiers, modifierVisitor, isModifierLike), factory2.getDeclarationName(node, true, true), void 0, visitNodes2(node.heritageClauses, visitor, isHeritageClause), visitNodes2(node.members, visitor, isClassElement)), node), node));\n      } else {\n        statements = append(statements, visitEachChild(node, visitor, context));\n      }\n      if (hasAssociatedEndOfDeclarationMarker(node)) {\n        const id = getOriginalNodeId(node);\n        deferredExports[id] = appendExportsOfHoistedDeclaration(deferredExports[id], node);\n      } else {\n        statements = appendExportsOfHoistedDeclaration(statements, node);\n      }\n      return singleOrMany(statements);\n    }\n    function visitVariableStatement(node) {\n      let statements;\n      let variables;\n      let expressions;\n      if (hasSyntacticModifier(node, 1)) {\n        let modifiers;\n        let removeCommentsOnExpressions = false;\n        for (const variable of node.declarationList.declarations) {\n          if (isIdentifier(variable.name) && isLocalName(variable.name)) {\n            if (!modifiers) {\n              modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier);\n            }\n            if (variable.initializer) {\n              const updatedVariable = factory2.updateVariableDeclaration(variable, variable.name, void 0, void 0, createExportExpression(variable.name, visitNode(variable.initializer, visitor, isExpression)));\n              variables = append(variables, updatedVariable);\n            } else {\n              variables = append(variables, variable);\n            }\n          } else if (variable.initializer) {\n            if (!isBindingPattern(variable.name) && (isArrowFunction(variable.initializer) || isFunctionExpression(variable.initializer) || isClassExpression(variable.initializer))) {\n              const expression = factory2.createAssignment(setTextRange(factory2.createPropertyAccessExpression(factory2.createIdentifier(\"exports\"), variable.name), variable.name), factory2.createIdentifier(getTextOfIdentifierOrLiteral(variable.name)));\n              const updatedVariable = factory2.createVariableDeclaration(variable.name, variable.exclamationToken, variable.type, visitNode(variable.initializer, visitor, isExpression));\n              variables = append(variables, updatedVariable);\n              expressions = append(expressions, expression);\n              removeCommentsOnExpressions = true;\n            } else {\n              expressions = append(expressions, transformInitializedVariable(variable));\n            }\n          }\n        }\n        if (variables) {\n          statements = append(statements, factory2.updateVariableStatement(node, modifiers, factory2.updateVariableDeclarationList(node.declarationList, variables)));\n        }\n        if (expressions) {\n          const statement = setOriginalNode(setTextRange(factory2.createExpressionStatement(factory2.inlineExpressions(expressions)), node), node);\n          if (removeCommentsOnExpressions) {\n            removeAllComments(statement);\n          }\n          statements = append(statements, statement);\n        }\n      } else {\n        statements = append(statements, visitEachChild(node, visitor, context));\n      }\n      if (hasAssociatedEndOfDeclarationMarker(node)) {\n        const id = getOriginalNodeId(node);\n        deferredExports[id] = appendExportsOfVariableStatement(deferredExports[id], node);\n      } else {\n        statements = appendExportsOfVariableStatement(statements, node);\n      }\n      return singleOrMany(statements);\n    }\n    function createAllExportExpressions(name, value, location) {\n      const exportedNames = getExports(name);\n      if (exportedNames) {\n        let expression = isExportName(name) ? value : factory2.createAssignment(name, value);\n        for (const exportName of exportedNames) {\n          setEmitFlags(expression, 8);\n          expression = createExportExpression(exportName, expression, location);\n        }\n        return expression;\n      }\n      return factory2.createAssignment(name, value);\n    }\n    function transformInitializedVariable(node) {\n      if (isBindingPattern(node.name)) {\n        return flattenDestructuringAssignment(visitNode(node, visitor, isInitializedVariable), visitor, context, 0, false, createAllExportExpressions);\n      } else {\n        return factory2.createAssignment(setTextRange(factory2.createPropertyAccessExpression(factory2.createIdentifier(\"exports\"), node.name), node.name), node.initializer ? visitNode(node.initializer, visitor, isExpression) : factory2.createVoidZero());\n      }\n    }\n    function visitMergeDeclarationMarker(node) {\n      if (hasAssociatedEndOfDeclarationMarker(node) && node.original.kind === 240) {\n        const id = getOriginalNodeId(node);\n        deferredExports[id] = appendExportsOfVariableStatement(deferredExports[id], node.original);\n      }\n      return node;\n    }\n    function hasAssociatedEndOfDeclarationMarker(node) {\n      return (getEmitFlags(node) & 8388608) !== 0;\n    }\n    function visitEndOfDeclarationMarker(node) {\n      const id = getOriginalNodeId(node);\n      const statements = deferredExports[id];\n      if (statements) {\n        delete deferredExports[id];\n        return append(statements, node);\n      }\n      return node;\n    }\n    function appendExportsOfImportDeclaration(statements, decl) {\n      if (currentModuleInfo.exportEquals) {\n        return statements;\n      }\n      const importClause = decl.importClause;\n      if (!importClause) {\n        return statements;\n      }\n      if (importClause.name) {\n        statements = appendExportsOfDeclaration(statements, importClause);\n      }\n      const namedBindings = importClause.namedBindings;\n      if (namedBindings) {\n        switch (namedBindings.kind) {\n          case 271:\n            statements = appendExportsOfDeclaration(statements, namedBindings);\n            break;\n          case 272:\n            for (const importBinding of namedBindings.elements) {\n              statements = appendExportsOfDeclaration(statements, importBinding, true);\n            }\n            break;\n        }\n      }\n      return statements;\n    }\n    function appendExportsOfImportEqualsDeclaration(statements, decl) {\n      if (currentModuleInfo.exportEquals) {\n        return statements;\n      }\n      return appendExportsOfDeclaration(statements, decl);\n    }\n    function appendExportsOfVariableStatement(statements, node) {\n      if (currentModuleInfo.exportEquals) {\n        return statements;\n      }\n      for (const decl of node.declarationList.declarations) {\n        statements = appendExportsOfBindingElement(statements, decl);\n      }\n      return statements;\n    }\n    function appendExportsOfBindingElement(statements, decl) {\n      if (currentModuleInfo.exportEquals) {\n        return statements;\n      }\n      if (isBindingPattern(decl.name)) {\n        for (const element of decl.name.elements) {\n          if (!isOmittedExpression(element)) {\n            statements = appendExportsOfBindingElement(statements, element);\n          }\n        }\n      } else if (!isGeneratedIdentifier(decl.name)) {\n        statements = appendExportsOfDeclaration(statements, decl);\n      }\n      return statements;\n    }\n    function appendExportsOfHoistedDeclaration(statements, decl) {\n      if (currentModuleInfo.exportEquals) {\n        return statements;\n      }\n      if (hasSyntacticModifier(decl, 1)) {\n        const exportName = hasSyntacticModifier(decl, 1024) ? factory2.createIdentifier(\"default\") : factory2.getDeclarationName(decl);\n        statements = appendExportStatement(statements, exportName, factory2.getLocalName(decl), decl);\n      }\n      if (decl.name) {\n        statements = appendExportsOfDeclaration(statements, decl);\n      }\n      return statements;\n    }\n    function appendExportsOfDeclaration(statements, decl, liveBinding) {\n      const name = factory2.getDeclarationName(decl);\n      const exportSpecifiers = currentModuleInfo.exportSpecifiers.get(idText(name));\n      if (exportSpecifiers) {\n        for (const exportSpecifier of exportSpecifiers) {\n          statements = appendExportStatement(statements, exportSpecifier.name, name, exportSpecifier.name, void 0, liveBinding);\n        }\n      }\n      return statements;\n    }\n    function appendExportStatement(statements, exportName, expression, location, allowComments, liveBinding) {\n      statements = append(statements, createExportStatement(exportName, expression, location, allowComments, liveBinding));\n      return statements;\n    }\n    function createUnderscoreUnderscoreESModule() {\n      let statement;\n      if (languageVersion === 0) {\n        statement = factory2.createExpressionStatement(createExportExpression(factory2.createIdentifier(\"__esModule\"), factory2.createTrue()));\n      } else {\n        statement = factory2.createExpressionStatement(factory2.createCallExpression(factory2.createPropertyAccessExpression(factory2.createIdentifier(\"Object\"), \"defineProperty\"), void 0, [\n          factory2.createIdentifier(\"exports\"),\n          factory2.createStringLiteral(\"__esModule\"),\n          factory2.createObjectLiteralExpression([\n            factory2.createPropertyAssignment(\"value\", factory2.createTrue())\n          ])\n        ]));\n      }\n      setEmitFlags(statement, 2097152);\n      return statement;\n    }\n    function createExportStatement(name, value, location, allowComments, liveBinding) {\n      const statement = setTextRange(factory2.createExpressionStatement(createExportExpression(name, value, void 0, liveBinding)), location);\n      startOnNewLine(statement);\n      if (!allowComments) {\n        setEmitFlags(statement, 3072);\n      }\n      return statement;\n    }\n    function createExportExpression(name, value, location, liveBinding) {\n      return setTextRange(liveBinding && languageVersion !== 0 ? factory2.createCallExpression(factory2.createPropertyAccessExpression(factory2.createIdentifier(\"Object\"), \"defineProperty\"), void 0, [\n        factory2.createIdentifier(\"exports\"),\n        factory2.createStringLiteralFromNode(name),\n        factory2.createObjectLiteralExpression([\n          factory2.createPropertyAssignment(\"enumerable\", factory2.createTrue()),\n          factory2.createPropertyAssignment(\"get\", factory2.createFunctionExpression(void 0, void 0, void 0, void 0, [], void 0, factory2.createBlock([factory2.createReturnStatement(value)])))\n        ])\n      ]) : factory2.createAssignment(factory2.createPropertyAccessExpression(factory2.createIdentifier(\"exports\"), factory2.cloneNode(name)), value), location);\n    }\n    function modifierVisitor(node) {\n      switch (node.kind) {\n        case 93:\n        case 88:\n          return void 0;\n      }\n      return node;\n    }\n    function onEmitNode(hint, node, emitCallback) {\n      if (node.kind === 308) {\n        currentSourceFile = node;\n        currentModuleInfo = moduleInfoMap[getOriginalNodeId(currentSourceFile)];\n        previousOnEmitNode(hint, node, emitCallback);\n        currentSourceFile = void 0;\n        currentModuleInfo = void 0;\n      } else {\n        previousOnEmitNode(hint, node, emitCallback);\n      }\n    }\n    function onSubstituteNode(hint, node) {\n      node = previousOnSubstituteNode(hint, node);\n      if (node.id && noSubstitution[node.id]) {\n        return node;\n      }\n      if (hint === 1) {\n        return substituteExpression(node);\n      } else if (isShorthandPropertyAssignment(node)) {\n        return substituteShorthandPropertyAssignment(node);\n      }\n      return node;\n    }\n    function substituteShorthandPropertyAssignment(node) {\n      const name = node.name;\n      const exportedOrImportedName = substituteExpressionIdentifier(name);\n      if (exportedOrImportedName !== name) {\n        if (node.objectAssignmentInitializer) {\n          const initializer = factory2.createAssignment(exportedOrImportedName, node.objectAssignmentInitializer);\n          return setTextRange(factory2.createPropertyAssignment(name, initializer), node);\n        }\n        return setTextRange(factory2.createPropertyAssignment(name, exportedOrImportedName), node);\n      }\n      return node;\n    }\n    function substituteExpression(node) {\n      switch (node.kind) {\n        case 79:\n          return substituteExpressionIdentifier(node);\n        case 210:\n          return substituteCallExpression(node);\n        case 212:\n          return substituteTaggedTemplateExpression(node);\n        case 223:\n          return substituteBinaryExpression(node);\n      }\n      return node;\n    }\n    function substituteCallExpression(node) {\n      if (isIdentifier(node.expression)) {\n        const expression = substituteExpressionIdentifier(node.expression);\n        noSubstitution[getNodeId(expression)] = true;\n        if (!isIdentifier(expression) && !(getEmitFlags(node.expression) & 8192)) {\n          return addInternalEmitFlags(factory2.updateCallExpression(node, expression, void 0, node.arguments), 16);\n        }\n      }\n      return node;\n    }\n    function substituteTaggedTemplateExpression(node) {\n      if (isIdentifier(node.tag)) {\n        const tag = substituteExpressionIdentifier(node.tag);\n        noSubstitution[getNodeId(tag)] = true;\n        if (!isIdentifier(tag) && !(getEmitFlags(node.tag) & 8192)) {\n          return addInternalEmitFlags(factory2.updateTaggedTemplateExpression(node, tag, void 0, node.template), 16);\n        }\n      }\n      return node;\n    }\n    function substituteExpressionIdentifier(node) {\n      var _a2, _b;\n      if (getEmitFlags(node) & 8192) {\n        const externalHelpersModuleName = getExternalHelpersModuleName(currentSourceFile);\n        if (externalHelpersModuleName) {\n          return factory2.createPropertyAccessExpression(externalHelpersModuleName, node);\n        }\n        return node;\n      } else if (!(isGeneratedIdentifier(node) && !(node.emitNode.autoGenerate.flags & 64)) && !isLocalName(node)) {\n        const exportContainer = resolver.getReferencedExportContainer(node, isExportName(node));\n        if (exportContainer && exportContainer.kind === 308) {\n          return setTextRange(factory2.createPropertyAccessExpression(factory2.createIdentifier(\"exports\"), factory2.cloneNode(node)), node);\n        }\n        const importDeclaration = resolver.getReferencedImportDeclaration(node);\n        if (importDeclaration) {\n          if (isImportClause(importDeclaration)) {\n            return setTextRange(factory2.createPropertyAccessExpression(factory2.getGeneratedNameForNode(importDeclaration.parent), factory2.createIdentifier(\"default\")), node);\n          } else if (isImportSpecifier(importDeclaration)) {\n            const name = importDeclaration.propertyName || importDeclaration.name;\n            return setTextRange(factory2.createPropertyAccessExpression(factory2.getGeneratedNameForNode(((_b = (_a2 = importDeclaration.parent) == null ? void 0 : _a2.parent) == null ? void 0 : _b.parent) || importDeclaration), factory2.cloneNode(name)), node);\n          }\n        }\n      }\n      return node;\n    }\n    function substituteBinaryExpression(node) {\n      if (isAssignmentOperator(node.operatorToken.kind) && isIdentifier(node.left) && !isGeneratedIdentifier(node.left) && !isLocalName(node.left) && !isDeclarationNameOfEnumOrNamespace(node.left)) {\n        const exportedNames = getExports(node.left);\n        if (exportedNames) {\n          let expression = node;\n          for (const exportName of exportedNames) {\n            noSubstitution[getNodeId(expression)] = true;\n            expression = createExportExpression(exportName, expression, node);\n          }\n          return expression;\n        }\n      }\n      return node;\n    }\n    function getExports(name) {\n      if (!isGeneratedIdentifier(name)) {\n        const valueDeclaration = resolver.getReferencedImportDeclaration(name) || resolver.getReferencedValueDeclaration(name);\n        if (valueDeclaration) {\n          return currentModuleInfo && currentModuleInfo.exportedBindings[getOriginalNodeId(valueDeclaration)];\n        }\n      }\n    }\n  }\n  var dynamicImportUMDHelper;\n  var init_module = __esm({\n    \"src/compiler/transformers/module/module.ts\"() {\n      \"use strict\";\n      init_ts2();\n      dynamicImportUMDHelper = {\n        name: \"typescript:dynamicimport-sync-require\",\n        scoped: true,\n        text: `\n            var __syncRequire = typeof module === \"object\" && typeof module.exports === \"object\";`\n      };\n    }\n  });\n  function transformSystemModule(context) {\n    const {\n      factory: factory2,\n      startLexicalEnvironment,\n      endLexicalEnvironment,\n      hoistVariableDeclaration\n    } = context;\n    const compilerOptions = context.getCompilerOptions();\n    const resolver = context.getEmitResolver();\n    const host = context.getEmitHost();\n    const previousOnSubstituteNode = context.onSubstituteNode;\n    const previousOnEmitNode = context.onEmitNode;\n    context.onSubstituteNode = onSubstituteNode;\n    context.onEmitNode = onEmitNode;\n    context.enableSubstitution(79);\n    context.enableSubstitution(300);\n    context.enableSubstitution(223);\n    context.enableSubstitution(233);\n    context.enableEmitNotification(308);\n    const moduleInfoMap = [];\n    const deferredExports = [];\n    const exportFunctionsMap = [];\n    const noSubstitutionMap = [];\n    const contextObjectMap = [];\n    let currentSourceFile;\n    let moduleInfo;\n    let exportFunction;\n    let contextObject;\n    let hoistedStatements;\n    let enclosingBlockScopedContainer;\n    let noSubstitution;\n    return chainBundle(context, transformSourceFile);\n    function transformSourceFile(node) {\n      if (node.isDeclarationFile || !(isEffectiveExternalModule(node, compilerOptions) || node.transformFlags & 8388608)) {\n        return node;\n      }\n      const id = getOriginalNodeId(node);\n      currentSourceFile = node;\n      enclosingBlockScopedContainer = node;\n      moduleInfo = moduleInfoMap[id] = collectExternalModuleInfo(context, node, resolver, compilerOptions);\n      exportFunction = factory2.createUniqueName(\"exports\");\n      exportFunctionsMap[id] = exportFunction;\n      contextObject = contextObjectMap[id] = factory2.createUniqueName(\"context\");\n      const dependencyGroups = collectDependencyGroups(moduleInfo.externalImports);\n      const moduleBodyBlock = createSystemModuleBody(node, dependencyGroups);\n      const moduleBodyFunction = factory2.createFunctionExpression(void 0, void 0, void 0, void 0, [\n        factory2.createParameterDeclaration(void 0, void 0, exportFunction),\n        factory2.createParameterDeclaration(void 0, void 0, contextObject)\n      ], void 0, moduleBodyBlock);\n      const moduleName = tryGetModuleNameFromFile(factory2, node, host, compilerOptions);\n      const dependencies = factory2.createArrayLiteralExpression(map(dependencyGroups, (dependencyGroup) => dependencyGroup.name));\n      const updated = setEmitFlags(factory2.updateSourceFile(node, setTextRange(factory2.createNodeArray([\n        factory2.createExpressionStatement(factory2.createCallExpression(factory2.createPropertyAccessExpression(factory2.createIdentifier(\"System\"), \"register\"), void 0, moduleName ? [moduleName, dependencies, moduleBodyFunction] : [dependencies, moduleBodyFunction]))\n      ]), node.statements)), 2048);\n      if (!outFile(compilerOptions)) {\n        moveEmitHelpers(updated, moduleBodyBlock, (helper) => !helper.scoped);\n      }\n      if (noSubstitution) {\n        noSubstitutionMap[id] = noSubstitution;\n        noSubstitution = void 0;\n      }\n      currentSourceFile = void 0;\n      moduleInfo = void 0;\n      exportFunction = void 0;\n      contextObject = void 0;\n      hoistedStatements = void 0;\n      enclosingBlockScopedContainer = void 0;\n      return updated;\n    }\n    function collectDependencyGroups(externalImports) {\n      const groupIndices = /* @__PURE__ */ new Map();\n      const dependencyGroups = [];\n      for (const externalImport of externalImports) {\n        const externalModuleName = getExternalModuleNameLiteral(factory2, externalImport, currentSourceFile, host, resolver, compilerOptions);\n        if (externalModuleName) {\n          const text = externalModuleName.text;\n          const groupIndex = groupIndices.get(text);\n          if (groupIndex !== void 0) {\n            dependencyGroups[groupIndex].externalImports.push(externalImport);\n          } else {\n            groupIndices.set(text, dependencyGroups.length);\n            dependencyGroups.push({\n              name: externalModuleName,\n              externalImports: [externalImport]\n            });\n          }\n        }\n      }\n      return dependencyGroups;\n    }\n    function createSystemModuleBody(node, dependencyGroups) {\n      const statements = [];\n      startLexicalEnvironment();\n      const ensureUseStrict = getStrictOptionValue(compilerOptions, \"alwaysStrict\") || !compilerOptions.noImplicitUseStrict && isExternalModule(currentSourceFile);\n      const statementOffset = factory2.copyPrologue(node.statements, statements, ensureUseStrict, topLevelVisitor);\n      statements.push(factory2.createVariableStatement(void 0, factory2.createVariableDeclarationList([\n        factory2.createVariableDeclaration(\"__moduleName\", void 0, void 0, factory2.createLogicalAnd(contextObject, factory2.createPropertyAccessExpression(contextObject, \"id\")))\n      ])));\n      visitNode(moduleInfo.externalHelpersImportDeclaration, topLevelVisitor, isStatement);\n      const executeStatements = visitNodes2(node.statements, topLevelVisitor, isStatement, statementOffset);\n      addRange(statements, hoistedStatements);\n      insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());\n      const exportStarFunction = addExportStarIfNeeded(statements);\n      const modifiers = node.transformFlags & 2097152 ? factory2.createModifiersFromModifierFlags(512) : void 0;\n      const moduleObject = factory2.createObjectLiteralExpression([\n        factory2.createPropertyAssignment(\"setters\", createSettersArray(exportStarFunction, dependencyGroups)),\n        factory2.createPropertyAssignment(\"execute\", factory2.createFunctionExpression(modifiers, void 0, void 0, void 0, [], void 0, factory2.createBlock(executeStatements, true)))\n      ], true);\n      statements.push(factory2.createReturnStatement(moduleObject));\n      return factory2.createBlock(statements, true);\n    }\n    function addExportStarIfNeeded(statements) {\n      if (!moduleInfo.hasExportStarsToExportValues) {\n        return;\n      }\n      if (!moduleInfo.exportedNames && moduleInfo.exportSpecifiers.size === 0) {\n        let hasExportDeclarationWithExportClause = false;\n        for (const externalImport of moduleInfo.externalImports) {\n          if (externalImport.kind === 275 && externalImport.exportClause) {\n            hasExportDeclarationWithExportClause = true;\n            break;\n          }\n        }\n        if (!hasExportDeclarationWithExportClause) {\n          const exportStarFunction2 = createExportStarFunction(void 0);\n          statements.push(exportStarFunction2);\n          return exportStarFunction2.name;\n        }\n      }\n      const exportedNames = [];\n      if (moduleInfo.exportedNames) {\n        for (const exportedLocalName of moduleInfo.exportedNames) {\n          if (exportedLocalName.escapedText === \"default\") {\n            continue;\n          }\n          exportedNames.push(factory2.createPropertyAssignment(factory2.createStringLiteralFromNode(exportedLocalName), factory2.createTrue()));\n        }\n      }\n      const exportedNamesStorageRef = factory2.createUniqueName(\"exportedNames\");\n      statements.push(factory2.createVariableStatement(void 0, factory2.createVariableDeclarationList([\n        factory2.createVariableDeclaration(exportedNamesStorageRef, void 0, void 0, factory2.createObjectLiteralExpression(exportedNames, true))\n      ])));\n      const exportStarFunction = createExportStarFunction(exportedNamesStorageRef);\n      statements.push(exportStarFunction);\n      return exportStarFunction.name;\n    }\n    function createExportStarFunction(localNames) {\n      const exportStarFunction = factory2.createUniqueName(\"exportStar\");\n      const m = factory2.createIdentifier(\"m\");\n      const n = factory2.createIdentifier(\"n\");\n      const exports = factory2.createIdentifier(\"exports\");\n      let condition = factory2.createStrictInequality(n, factory2.createStringLiteral(\"default\"));\n      if (localNames) {\n        condition = factory2.createLogicalAnd(condition, factory2.createLogicalNot(factory2.createCallExpression(factory2.createPropertyAccessExpression(localNames, \"hasOwnProperty\"), void 0, [n])));\n      }\n      return factory2.createFunctionDeclaration(void 0, void 0, exportStarFunction, void 0, [factory2.createParameterDeclaration(void 0, void 0, m)], void 0, factory2.createBlock([\n        factory2.createVariableStatement(void 0, factory2.createVariableDeclarationList([\n          factory2.createVariableDeclaration(exports, void 0, void 0, factory2.createObjectLiteralExpression([]))\n        ])),\n        factory2.createForInStatement(factory2.createVariableDeclarationList([\n          factory2.createVariableDeclaration(n)\n        ]), m, factory2.createBlock([\n          setEmitFlags(factory2.createIfStatement(condition, factory2.createExpressionStatement(factory2.createAssignment(factory2.createElementAccessExpression(exports, n), factory2.createElementAccessExpression(m, n)))), 1)\n        ])),\n        factory2.createExpressionStatement(factory2.createCallExpression(exportFunction, void 0, [exports]))\n      ], true));\n    }\n    function createSettersArray(exportStarFunction, dependencyGroups) {\n      const setters = [];\n      for (const group2 of dependencyGroups) {\n        const localName = forEach(group2.externalImports, (i) => getLocalNameForExternalImport(factory2, i, currentSourceFile));\n        const parameterName = localName ? factory2.getGeneratedNameForNode(localName) : factory2.createUniqueName(\"\");\n        const statements = [];\n        for (const entry of group2.externalImports) {\n          const importVariableName = getLocalNameForExternalImport(factory2, entry, currentSourceFile);\n          switch (entry.kind) {\n            case 269:\n              if (!entry.importClause) {\n                break;\n              }\n            case 268:\n              Debug.assert(importVariableName !== void 0);\n              statements.push(factory2.createExpressionStatement(factory2.createAssignment(importVariableName, parameterName)));\n              if (hasSyntacticModifier(entry, 1)) {\n                statements.push(factory2.createExpressionStatement(factory2.createCallExpression(exportFunction, void 0, [\n                  factory2.createStringLiteral(idText(importVariableName)),\n                  parameterName\n                ])));\n              }\n              break;\n            case 275:\n              Debug.assert(importVariableName !== void 0);\n              if (entry.exportClause) {\n                if (isNamedExports(entry.exportClause)) {\n                  const properties = [];\n                  for (const e of entry.exportClause.elements) {\n                    properties.push(factory2.createPropertyAssignment(factory2.createStringLiteral(idText(e.name)), factory2.createElementAccessExpression(parameterName, factory2.createStringLiteral(idText(e.propertyName || e.name)))));\n                  }\n                  statements.push(factory2.createExpressionStatement(factory2.createCallExpression(exportFunction, void 0, [factory2.createObjectLiteralExpression(properties, true)])));\n                } else {\n                  statements.push(factory2.createExpressionStatement(factory2.createCallExpression(exportFunction, void 0, [\n                    factory2.createStringLiteral(idText(entry.exportClause.name)),\n                    parameterName\n                  ])));\n                }\n              } else {\n                statements.push(factory2.createExpressionStatement(factory2.createCallExpression(exportStarFunction, void 0, [parameterName])));\n              }\n              break;\n          }\n        }\n        setters.push(factory2.createFunctionExpression(void 0, void 0, void 0, void 0, [factory2.createParameterDeclaration(void 0, void 0, parameterName)], void 0, factory2.createBlock(statements, true)));\n      }\n      return factory2.createArrayLiteralExpression(setters, true);\n    }\n    function topLevelVisitor(node) {\n      switch (node.kind) {\n        case 269:\n          return visitImportDeclaration(node);\n        case 268:\n          return visitImportEqualsDeclaration(node);\n        case 275:\n          return visitExportDeclaration(node);\n        case 274:\n          return visitExportAssignment(node);\n        default:\n          return topLevelNestedVisitor(node);\n      }\n    }\n    function visitImportDeclaration(node) {\n      let statements;\n      if (node.importClause) {\n        hoistVariableDeclaration(getLocalNameForExternalImport(factory2, node, currentSourceFile));\n      }\n      if (hasAssociatedEndOfDeclarationMarker(node)) {\n        const id = getOriginalNodeId(node);\n        deferredExports[id] = appendExportsOfImportDeclaration(deferredExports[id], node);\n      } else {\n        statements = appendExportsOfImportDeclaration(statements, node);\n      }\n      return singleOrMany(statements);\n    }\n    function visitExportDeclaration(node) {\n      Debug.assertIsDefined(node);\n      return void 0;\n    }\n    function visitImportEqualsDeclaration(node) {\n      Debug.assert(isExternalModuleImportEqualsDeclaration(node), \"import= for internal module references should be handled in an earlier transformer.\");\n      let statements;\n      hoistVariableDeclaration(getLocalNameForExternalImport(factory2, node, currentSourceFile));\n      if (hasAssociatedEndOfDeclarationMarker(node)) {\n        const id = getOriginalNodeId(node);\n        deferredExports[id] = appendExportsOfImportEqualsDeclaration(deferredExports[id], node);\n      } else {\n        statements = appendExportsOfImportEqualsDeclaration(statements, node);\n      }\n      return singleOrMany(statements);\n    }\n    function visitExportAssignment(node) {\n      if (node.isExportEquals) {\n        return void 0;\n      }\n      const expression = visitNode(node.expression, visitor, isExpression);\n      const original = node.original;\n      if (original && hasAssociatedEndOfDeclarationMarker(original)) {\n        const id = getOriginalNodeId(node);\n        deferredExports[id] = appendExportStatement(deferredExports[id], factory2.createIdentifier(\"default\"), expression, true);\n      } else {\n        return createExportStatement(factory2.createIdentifier(\"default\"), expression, true);\n      }\n    }\n    function visitFunctionDeclaration(node) {\n      if (hasSyntacticModifier(node, 1)) {\n        hoistedStatements = append(hoistedStatements, factory2.updateFunctionDeclaration(node, visitNodes2(node.modifiers, modifierVisitor, isModifierLike), node.asteriskToken, factory2.getDeclarationName(node, true, true), void 0, visitNodes2(node.parameters, visitor, isParameter), void 0, visitNode(node.body, visitor, isBlock)));\n      } else {\n        hoistedStatements = append(hoistedStatements, visitEachChild(node, visitor, context));\n      }\n      if (hasAssociatedEndOfDeclarationMarker(node)) {\n        const id = getOriginalNodeId(node);\n        deferredExports[id] = appendExportsOfHoistedDeclaration(deferredExports[id], node);\n      } else {\n        hoistedStatements = appendExportsOfHoistedDeclaration(hoistedStatements, node);\n      }\n      return void 0;\n    }\n    function visitClassDeclaration(node) {\n      let statements;\n      const name = factory2.getLocalName(node);\n      hoistVariableDeclaration(name);\n      statements = append(statements, setTextRange(factory2.createExpressionStatement(factory2.createAssignment(name, setTextRange(factory2.createClassExpression(visitNodes2(node.modifiers, modifierVisitor, isModifierLike), node.name, void 0, visitNodes2(node.heritageClauses, visitor, isHeritageClause), visitNodes2(node.members, visitor, isClassElement)), node))), node));\n      if (hasAssociatedEndOfDeclarationMarker(node)) {\n        const id = getOriginalNodeId(node);\n        deferredExports[id] = appendExportsOfHoistedDeclaration(deferredExports[id], node);\n      } else {\n        statements = appendExportsOfHoistedDeclaration(statements, node);\n      }\n      return singleOrMany(statements);\n    }\n    function visitVariableStatement(node) {\n      if (!shouldHoistVariableDeclarationList(node.declarationList)) {\n        return visitNode(node, visitor, isStatement);\n      }\n      let expressions;\n      const isExportedDeclaration = hasSyntacticModifier(node, 1);\n      const isMarkedDeclaration = hasAssociatedEndOfDeclarationMarker(node);\n      for (const variable of node.declarationList.declarations) {\n        if (variable.initializer) {\n          expressions = append(expressions, transformInitializedVariable(variable, isExportedDeclaration && !isMarkedDeclaration));\n        } else {\n          hoistBindingElement(variable);\n        }\n      }\n      let statements;\n      if (expressions) {\n        statements = append(statements, setTextRange(factory2.createExpressionStatement(factory2.inlineExpressions(expressions)), node));\n      }\n      if (isMarkedDeclaration) {\n        const id = getOriginalNodeId(node);\n        deferredExports[id] = appendExportsOfVariableStatement(deferredExports[id], node, isExportedDeclaration);\n      } else {\n        statements = appendExportsOfVariableStatement(statements, node, false);\n      }\n      return singleOrMany(statements);\n    }\n    function hoistBindingElement(node) {\n      if (isBindingPattern(node.name)) {\n        for (const element of node.name.elements) {\n          if (!isOmittedExpression(element)) {\n            hoistBindingElement(element);\n          }\n        }\n      } else {\n        hoistVariableDeclaration(factory2.cloneNode(node.name));\n      }\n    }\n    function shouldHoistVariableDeclarationList(node) {\n      return (getEmitFlags(node) & 4194304) === 0 && (enclosingBlockScopedContainer.kind === 308 || (getOriginalNode(node).flags & 3) === 0);\n    }\n    function transformInitializedVariable(node, isExportedDeclaration) {\n      const createAssignment = isExportedDeclaration ? createExportedVariableAssignment : createNonExportedVariableAssignment;\n      return isBindingPattern(node.name) ? flattenDestructuringAssignment(node, visitor, context, 0, false, createAssignment) : node.initializer ? createAssignment(node.name, visitNode(node.initializer, visitor, isExpression)) : node.name;\n    }\n    function createExportedVariableAssignment(name, value, location) {\n      return createVariableAssignment(name, value, location, true);\n    }\n    function createNonExportedVariableAssignment(name, value, location) {\n      return createVariableAssignment(name, value, location, false);\n    }\n    function createVariableAssignment(name, value, location, isExportedDeclaration) {\n      hoistVariableDeclaration(factory2.cloneNode(name));\n      return isExportedDeclaration ? createExportExpression(name, preventSubstitution(setTextRange(factory2.createAssignment(name, value), location))) : preventSubstitution(setTextRange(factory2.createAssignment(name, value), location));\n    }\n    function visitMergeDeclarationMarker(node) {\n      if (hasAssociatedEndOfDeclarationMarker(node) && node.original.kind === 240) {\n        const id = getOriginalNodeId(node);\n        const isExportedDeclaration = hasSyntacticModifier(node.original, 1);\n        deferredExports[id] = appendExportsOfVariableStatement(deferredExports[id], node.original, isExportedDeclaration);\n      }\n      return node;\n    }\n    function hasAssociatedEndOfDeclarationMarker(node) {\n      return (getEmitFlags(node) & 8388608) !== 0;\n    }\n    function visitEndOfDeclarationMarker(node) {\n      const id = getOriginalNodeId(node);\n      const statements = deferredExports[id];\n      if (statements) {\n        delete deferredExports[id];\n        return append(statements, node);\n      } else {\n        const original = getOriginalNode(node);\n        if (isModuleOrEnumDeclaration(original)) {\n          return append(appendExportsOfDeclaration(statements, original), node);\n        }\n      }\n      return node;\n    }\n    function appendExportsOfImportDeclaration(statements, decl) {\n      if (moduleInfo.exportEquals) {\n        return statements;\n      }\n      const importClause = decl.importClause;\n      if (!importClause) {\n        return statements;\n      }\n      if (importClause.name) {\n        statements = appendExportsOfDeclaration(statements, importClause);\n      }\n      const namedBindings = importClause.namedBindings;\n      if (namedBindings) {\n        switch (namedBindings.kind) {\n          case 271:\n            statements = appendExportsOfDeclaration(statements, namedBindings);\n            break;\n          case 272:\n            for (const importBinding of namedBindings.elements) {\n              statements = appendExportsOfDeclaration(statements, importBinding);\n            }\n            break;\n        }\n      }\n      return statements;\n    }\n    function appendExportsOfImportEqualsDeclaration(statements, decl) {\n      if (moduleInfo.exportEquals) {\n        return statements;\n      }\n      return appendExportsOfDeclaration(statements, decl);\n    }\n    function appendExportsOfVariableStatement(statements, node, exportSelf) {\n      if (moduleInfo.exportEquals) {\n        return statements;\n      }\n      for (const decl of node.declarationList.declarations) {\n        if (decl.initializer || exportSelf) {\n          statements = appendExportsOfBindingElement(statements, decl, exportSelf);\n        }\n      }\n      return statements;\n    }\n    function appendExportsOfBindingElement(statements, decl, exportSelf) {\n      if (moduleInfo.exportEquals) {\n        return statements;\n      }\n      if (isBindingPattern(decl.name)) {\n        for (const element of decl.name.elements) {\n          if (!isOmittedExpression(element)) {\n            statements = appendExportsOfBindingElement(statements, element, exportSelf);\n          }\n        }\n      } else if (!isGeneratedIdentifier(decl.name)) {\n        let excludeName;\n        if (exportSelf) {\n          statements = appendExportStatement(statements, decl.name, factory2.getLocalName(decl));\n          excludeName = idText(decl.name);\n        }\n        statements = appendExportsOfDeclaration(statements, decl, excludeName);\n      }\n      return statements;\n    }\n    function appendExportsOfHoistedDeclaration(statements, decl) {\n      if (moduleInfo.exportEquals) {\n        return statements;\n      }\n      let excludeName;\n      if (hasSyntacticModifier(decl, 1)) {\n        const exportName = hasSyntacticModifier(decl, 1024) ? factory2.createStringLiteral(\"default\") : decl.name;\n        statements = appendExportStatement(statements, exportName, factory2.getLocalName(decl));\n        excludeName = getTextOfIdentifierOrLiteral(exportName);\n      }\n      if (decl.name) {\n        statements = appendExportsOfDeclaration(statements, decl, excludeName);\n      }\n      return statements;\n    }\n    function appendExportsOfDeclaration(statements, decl, excludeName) {\n      if (moduleInfo.exportEquals) {\n        return statements;\n      }\n      const name = factory2.getDeclarationName(decl);\n      const exportSpecifiers = moduleInfo.exportSpecifiers.get(idText(name));\n      if (exportSpecifiers) {\n        for (const exportSpecifier of exportSpecifiers) {\n          if (exportSpecifier.name.escapedText !== excludeName) {\n            statements = appendExportStatement(statements, exportSpecifier.name, name);\n          }\n        }\n      }\n      return statements;\n    }\n    function appendExportStatement(statements, exportName, expression, allowComments) {\n      statements = append(statements, createExportStatement(exportName, expression, allowComments));\n      return statements;\n    }\n    function createExportStatement(name, value, allowComments) {\n      const statement = factory2.createExpressionStatement(createExportExpression(name, value));\n      startOnNewLine(statement);\n      if (!allowComments) {\n        setEmitFlags(statement, 3072);\n      }\n      return statement;\n    }\n    function createExportExpression(name, value) {\n      const exportName = isIdentifier(name) ? factory2.createStringLiteralFromNode(name) : name;\n      setEmitFlags(value, getEmitFlags(value) | 3072);\n      return setCommentRange(factory2.createCallExpression(exportFunction, void 0, [exportName, value]), value);\n    }\n    function topLevelNestedVisitor(node) {\n      switch (node.kind) {\n        case 240:\n          return visitVariableStatement(node);\n        case 259:\n          return visitFunctionDeclaration(node);\n        case 260:\n          return visitClassDeclaration(node);\n        case 245:\n          return visitForStatement(node, true);\n        case 246:\n          return visitForInStatement(node);\n        case 247:\n          return visitForOfStatement(node);\n        case 243:\n          return visitDoStatement(node);\n        case 244:\n          return visitWhileStatement(node);\n        case 253:\n          return visitLabeledStatement(node);\n        case 251:\n          return visitWithStatement(node);\n        case 252:\n          return visitSwitchStatement(node);\n        case 266:\n          return visitCaseBlock(node);\n        case 292:\n          return visitCaseClause(node);\n        case 293:\n          return visitDefaultClause(node);\n        case 255:\n          return visitTryStatement(node);\n        case 295:\n          return visitCatchClause(node);\n        case 238:\n          return visitBlock(node);\n        case 358:\n          return visitMergeDeclarationMarker(node);\n        case 359:\n          return visitEndOfDeclarationMarker(node);\n        default:\n          return visitor(node);\n      }\n    }\n    function visitForStatement(node, isTopLevel) {\n      const savedEnclosingBlockScopedContainer = enclosingBlockScopedContainer;\n      enclosingBlockScopedContainer = node;\n      node = factory2.updateForStatement(node, visitNode(node.initializer, isTopLevel ? visitForInitializer : discardedValueVisitor, isForInitializer), visitNode(node.condition, visitor, isExpression), visitNode(node.incrementor, discardedValueVisitor, isExpression), visitIterationBody(node.statement, isTopLevel ? topLevelNestedVisitor : visitor, context));\n      enclosingBlockScopedContainer = savedEnclosingBlockScopedContainer;\n      return node;\n    }\n    function visitForInStatement(node) {\n      const savedEnclosingBlockScopedContainer = enclosingBlockScopedContainer;\n      enclosingBlockScopedContainer = node;\n      node = factory2.updateForInStatement(node, visitForInitializer(node.initializer), visitNode(node.expression, visitor, isExpression), visitIterationBody(node.statement, topLevelNestedVisitor, context));\n      enclosingBlockScopedContainer = savedEnclosingBlockScopedContainer;\n      return node;\n    }\n    function visitForOfStatement(node) {\n      const savedEnclosingBlockScopedContainer = enclosingBlockScopedContainer;\n      enclosingBlockScopedContainer = node;\n      node = factory2.updateForOfStatement(node, node.awaitModifier, visitForInitializer(node.initializer), visitNode(node.expression, visitor, isExpression), visitIterationBody(node.statement, topLevelNestedVisitor, context));\n      enclosingBlockScopedContainer = savedEnclosingBlockScopedContainer;\n      return node;\n    }\n    function shouldHoistForInitializer(node) {\n      return isVariableDeclarationList(node) && shouldHoistVariableDeclarationList(node);\n    }\n    function visitForInitializer(node) {\n      if (shouldHoistForInitializer(node)) {\n        let expressions;\n        for (const variable of node.declarations) {\n          expressions = append(expressions, transformInitializedVariable(variable, false));\n          if (!variable.initializer) {\n            hoistBindingElement(variable);\n          }\n        }\n        return expressions ? factory2.inlineExpressions(expressions) : factory2.createOmittedExpression();\n      } else {\n        return visitNode(node, discardedValueVisitor, isForInitializer);\n      }\n    }\n    function visitDoStatement(node) {\n      return factory2.updateDoStatement(node, visitIterationBody(node.statement, topLevelNestedVisitor, context), visitNode(node.expression, visitor, isExpression));\n    }\n    function visitWhileStatement(node) {\n      return factory2.updateWhileStatement(node, visitNode(node.expression, visitor, isExpression), visitIterationBody(node.statement, topLevelNestedVisitor, context));\n    }\n    function visitLabeledStatement(node) {\n      return factory2.updateLabeledStatement(node, node.label, Debug.checkDefined(visitNode(node.statement, topLevelNestedVisitor, isStatement, factory2.liftToBlock)));\n    }\n    function visitWithStatement(node) {\n      return factory2.updateWithStatement(node, visitNode(node.expression, visitor, isExpression), Debug.checkDefined(visitNode(node.statement, topLevelNestedVisitor, isStatement, factory2.liftToBlock)));\n    }\n    function visitSwitchStatement(node) {\n      return factory2.updateSwitchStatement(node, visitNode(node.expression, visitor, isExpression), Debug.checkDefined(visitNode(node.caseBlock, topLevelNestedVisitor, isCaseBlock)));\n    }\n    function visitCaseBlock(node) {\n      const savedEnclosingBlockScopedContainer = enclosingBlockScopedContainer;\n      enclosingBlockScopedContainer = node;\n      node = factory2.updateCaseBlock(node, visitNodes2(node.clauses, topLevelNestedVisitor, isCaseOrDefaultClause));\n      enclosingBlockScopedContainer = savedEnclosingBlockScopedContainer;\n      return node;\n    }\n    function visitCaseClause(node) {\n      return factory2.updateCaseClause(node, visitNode(node.expression, visitor, isExpression), visitNodes2(node.statements, topLevelNestedVisitor, isStatement));\n    }\n    function visitDefaultClause(node) {\n      return visitEachChild(node, topLevelNestedVisitor, context);\n    }\n    function visitTryStatement(node) {\n      return visitEachChild(node, topLevelNestedVisitor, context);\n    }\n    function visitCatchClause(node) {\n      const savedEnclosingBlockScopedContainer = enclosingBlockScopedContainer;\n      enclosingBlockScopedContainer = node;\n      node = factory2.updateCatchClause(node, node.variableDeclaration, Debug.checkDefined(visitNode(node.block, topLevelNestedVisitor, isBlock)));\n      enclosingBlockScopedContainer = savedEnclosingBlockScopedContainer;\n      return node;\n    }\n    function visitBlock(node) {\n      const savedEnclosingBlockScopedContainer = enclosingBlockScopedContainer;\n      enclosingBlockScopedContainer = node;\n      node = visitEachChild(node, topLevelNestedVisitor, context);\n      enclosingBlockScopedContainer = savedEnclosingBlockScopedContainer;\n      return node;\n    }\n    function visitorWorker(node, valueIsDiscarded) {\n      if (!(node.transformFlags & (4096 | 8388608 | 268435456))) {\n        return node;\n      }\n      switch (node.kind) {\n        case 245:\n          return visitForStatement(node, false);\n        case 241:\n          return visitExpressionStatement(node);\n        case 214:\n          return visitParenthesizedExpression(node, valueIsDiscarded);\n        case 356:\n          return visitPartiallyEmittedExpression(node, valueIsDiscarded);\n        case 223:\n          if (isDestructuringAssignment(node)) {\n            return visitDestructuringAssignment(node, valueIsDiscarded);\n          }\n          break;\n        case 210:\n          if (isImportCall(node)) {\n            return visitImportCallExpression(node);\n          }\n          break;\n        case 221:\n        case 222:\n          return visitPrefixOrPostfixUnaryExpression(node, valueIsDiscarded);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function visitor(node) {\n      return visitorWorker(node, false);\n    }\n    function discardedValueVisitor(node) {\n      return visitorWorker(node, true);\n    }\n    function visitExpressionStatement(node) {\n      return factory2.updateExpressionStatement(node, visitNode(node.expression, discardedValueVisitor, isExpression));\n    }\n    function visitParenthesizedExpression(node, valueIsDiscarded) {\n      return factory2.updateParenthesizedExpression(node, visitNode(node.expression, valueIsDiscarded ? discardedValueVisitor : visitor, isExpression));\n    }\n    function visitPartiallyEmittedExpression(node, valueIsDiscarded) {\n      return factory2.updatePartiallyEmittedExpression(node, visitNode(node.expression, valueIsDiscarded ? discardedValueVisitor : visitor, isExpression));\n    }\n    function visitImportCallExpression(node) {\n      const externalModuleName = getExternalModuleNameLiteral(factory2, node, currentSourceFile, host, resolver, compilerOptions);\n      const firstArgument = visitNode(firstOrUndefined(node.arguments), visitor, isExpression);\n      const argument = externalModuleName && (!firstArgument || !isStringLiteral(firstArgument) || firstArgument.text !== externalModuleName.text) ? externalModuleName : firstArgument;\n      return factory2.createCallExpression(factory2.createPropertyAccessExpression(contextObject, factory2.createIdentifier(\"import\")), void 0, argument ? [argument] : []);\n    }\n    function visitDestructuringAssignment(node, valueIsDiscarded) {\n      if (hasExportedReferenceInDestructuringTarget(node.left)) {\n        return flattenDestructuringAssignment(node, visitor, context, 0, !valueIsDiscarded);\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function hasExportedReferenceInDestructuringTarget(node) {\n      if (isAssignmentExpression(node, true)) {\n        return hasExportedReferenceInDestructuringTarget(node.left);\n      } else if (isSpreadElement(node)) {\n        return hasExportedReferenceInDestructuringTarget(node.expression);\n      } else if (isObjectLiteralExpression(node)) {\n        return some(node.properties, hasExportedReferenceInDestructuringTarget);\n      } else if (isArrayLiteralExpression(node)) {\n        return some(node.elements, hasExportedReferenceInDestructuringTarget);\n      } else if (isShorthandPropertyAssignment(node)) {\n        return hasExportedReferenceInDestructuringTarget(node.name);\n      } else if (isPropertyAssignment(node)) {\n        return hasExportedReferenceInDestructuringTarget(node.initializer);\n      } else if (isIdentifier(node)) {\n        const container = resolver.getReferencedExportContainer(node);\n        return container !== void 0 && container.kind === 308;\n      } else {\n        return false;\n      }\n    }\n    function visitPrefixOrPostfixUnaryExpression(node, valueIsDiscarded) {\n      if ((node.operator === 45 || node.operator === 46) && isIdentifier(node.operand) && !isGeneratedIdentifier(node.operand) && !isLocalName(node.operand) && !isDeclarationNameOfEnumOrNamespace(node.operand)) {\n        const exportedNames = getExports(node.operand);\n        if (exportedNames) {\n          let temp;\n          let expression = visitNode(node.operand, visitor, isExpression);\n          if (isPrefixUnaryExpression(node)) {\n            expression = factory2.updatePrefixUnaryExpression(node, expression);\n          } else {\n            expression = factory2.updatePostfixUnaryExpression(node, expression);\n            if (!valueIsDiscarded) {\n              temp = factory2.createTempVariable(hoistVariableDeclaration);\n              expression = factory2.createAssignment(temp, expression);\n              setTextRange(expression, node);\n            }\n            expression = factory2.createComma(expression, factory2.cloneNode(node.operand));\n            setTextRange(expression, node);\n          }\n          for (const exportName of exportedNames) {\n            expression = createExportExpression(exportName, preventSubstitution(expression));\n          }\n          if (temp) {\n            expression = factory2.createComma(expression, temp);\n            setTextRange(expression, node);\n          }\n          return expression;\n        }\n      }\n      return visitEachChild(node, visitor, context);\n    }\n    function modifierVisitor(node) {\n      switch (node.kind) {\n        case 93:\n        case 88:\n          return void 0;\n      }\n      return node;\n    }\n    function onEmitNode(hint, node, emitCallback) {\n      if (node.kind === 308) {\n        const id = getOriginalNodeId(node);\n        currentSourceFile = node;\n        moduleInfo = moduleInfoMap[id];\n        exportFunction = exportFunctionsMap[id];\n        noSubstitution = noSubstitutionMap[id];\n        contextObject = contextObjectMap[id];\n        if (noSubstitution) {\n          delete noSubstitutionMap[id];\n        }\n        previousOnEmitNode(hint, node, emitCallback);\n        currentSourceFile = void 0;\n        moduleInfo = void 0;\n        exportFunction = void 0;\n        contextObject = void 0;\n        noSubstitution = void 0;\n      } else {\n        previousOnEmitNode(hint, node, emitCallback);\n      }\n    }\n    function onSubstituteNode(hint, node) {\n      node = previousOnSubstituteNode(hint, node);\n      if (isSubstitutionPrevented(node)) {\n        return node;\n      }\n      if (hint === 1) {\n        return substituteExpression(node);\n      } else if (hint === 4) {\n        return substituteUnspecified(node);\n      }\n      return node;\n    }\n    function substituteUnspecified(node) {\n      switch (node.kind) {\n        case 300:\n          return substituteShorthandPropertyAssignment(node);\n      }\n      return node;\n    }\n    function substituteShorthandPropertyAssignment(node) {\n      var _a2, _b;\n      const name = node.name;\n      if (!isGeneratedIdentifier(name) && !isLocalName(name)) {\n        const importDeclaration = resolver.getReferencedImportDeclaration(name);\n        if (importDeclaration) {\n          if (isImportClause(importDeclaration)) {\n            return setTextRange(factory2.createPropertyAssignment(factory2.cloneNode(name), factory2.createPropertyAccessExpression(factory2.getGeneratedNameForNode(importDeclaration.parent), factory2.createIdentifier(\"default\"))), node);\n          } else if (isImportSpecifier(importDeclaration)) {\n            return setTextRange(factory2.createPropertyAssignment(factory2.cloneNode(name), factory2.createPropertyAccessExpression(factory2.getGeneratedNameForNode(((_b = (_a2 = importDeclaration.parent) == null ? void 0 : _a2.parent) == null ? void 0 : _b.parent) || importDeclaration), factory2.cloneNode(importDeclaration.propertyName || importDeclaration.name))), node);\n          }\n        }\n      }\n      return node;\n    }\n    function substituteExpression(node) {\n      switch (node.kind) {\n        case 79:\n          return substituteExpressionIdentifier(node);\n        case 223:\n          return substituteBinaryExpression(node);\n        case 233:\n          return substituteMetaProperty(node);\n      }\n      return node;\n    }\n    function substituteExpressionIdentifier(node) {\n      var _a2, _b;\n      if (getEmitFlags(node) & 8192) {\n        const externalHelpersModuleName = getExternalHelpersModuleName(currentSourceFile);\n        if (externalHelpersModuleName) {\n          return factory2.createPropertyAccessExpression(externalHelpersModuleName, node);\n        }\n        return node;\n      }\n      if (!isGeneratedIdentifier(node) && !isLocalName(node)) {\n        const importDeclaration = resolver.getReferencedImportDeclaration(node);\n        if (importDeclaration) {\n          if (isImportClause(importDeclaration)) {\n            return setTextRange(factory2.createPropertyAccessExpression(factory2.getGeneratedNameForNode(importDeclaration.parent), factory2.createIdentifier(\"default\")), node);\n          } else if (isImportSpecifier(importDeclaration)) {\n            return setTextRange(factory2.createPropertyAccessExpression(factory2.getGeneratedNameForNode(((_b = (_a2 = importDeclaration.parent) == null ? void 0 : _a2.parent) == null ? void 0 : _b.parent) || importDeclaration), factory2.cloneNode(importDeclaration.propertyName || importDeclaration.name)), node);\n          }\n        }\n      }\n      return node;\n    }\n    function substituteBinaryExpression(node) {\n      if (isAssignmentOperator(node.operatorToken.kind) && isIdentifier(node.left) && !isGeneratedIdentifier(node.left) && !isLocalName(node.left) && !isDeclarationNameOfEnumOrNamespace(node.left)) {\n        const exportedNames = getExports(node.left);\n        if (exportedNames) {\n          let expression = node;\n          for (const exportName of exportedNames) {\n            expression = createExportExpression(exportName, preventSubstitution(expression));\n          }\n          return expression;\n        }\n      }\n      return node;\n    }\n    function substituteMetaProperty(node) {\n      if (isImportMeta(node)) {\n        return factory2.createPropertyAccessExpression(contextObject, factory2.createIdentifier(\"meta\"));\n      }\n      return node;\n    }\n    function getExports(name) {\n      let exportedNames;\n      if (!isGeneratedIdentifier(name)) {\n        const valueDeclaration = resolver.getReferencedImportDeclaration(name) || resolver.getReferencedValueDeclaration(name);\n        if (valueDeclaration) {\n          const exportContainer = resolver.getReferencedExportContainer(name, false);\n          if (exportContainer && exportContainer.kind === 308) {\n            exportedNames = append(exportedNames, factory2.getDeclarationName(valueDeclaration));\n          }\n          exportedNames = addRange(exportedNames, moduleInfo && moduleInfo.exportedBindings[getOriginalNodeId(valueDeclaration)]);\n        }\n      }\n      return exportedNames;\n    }\n    function preventSubstitution(node) {\n      if (noSubstitution === void 0)\n        noSubstitution = [];\n      noSubstitution[getNodeId(node)] = true;\n      return node;\n    }\n    function isSubstitutionPrevented(node) {\n      return noSubstitution && node.id && noSubstitution[node.id];\n    }\n  }\n  var init_system = __esm({\n    \"src/compiler/transformers/module/system.ts\"() {\n      \"use strict\";\n      init_ts2();\n    }\n  });\n  function transformECMAScriptModule(context) {\n    const {\n      factory: factory2,\n      getEmitHelperFactory: emitHelpers\n    } = context;\n    const host = context.getEmitHost();\n    const resolver = context.getEmitResolver();\n    const compilerOptions = context.getCompilerOptions();\n    const languageVersion = getEmitScriptTarget(compilerOptions);\n    const previousOnEmitNode = context.onEmitNode;\n    const previousOnSubstituteNode = context.onSubstituteNode;\n    context.onEmitNode = onEmitNode;\n    context.onSubstituteNode = onSubstituteNode;\n    context.enableEmitNotification(308);\n    context.enableSubstitution(79);\n    let helperNameSubstitutions;\n    let currentSourceFile;\n    let importRequireStatements;\n    return chainBundle(context, transformSourceFile);\n    function transformSourceFile(node) {\n      if (node.isDeclarationFile) {\n        return node;\n      }\n      if (isExternalModule(node) || getIsolatedModules(compilerOptions)) {\n        currentSourceFile = node;\n        importRequireStatements = void 0;\n        let result = updateExternalModule(node);\n        currentSourceFile = void 0;\n        if (importRequireStatements) {\n          result = factory2.updateSourceFile(result, setTextRange(factory2.createNodeArray(insertStatementsAfterCustomPrologue(result.statements.slice(), importRequireStatements)), result.statements));\n        }\n        if (!isExternalModule(node) || some(result.statements, isExternalModuleIndicator)) {\n          return result;\n        }\n        return factory2.updateSourceFile(result, setTextRange(factory2.createNodeArray([...result.statements, createEmptyExports(factory2)]), result.statements));\n      }\n      return node;\n    }\n    function updateExternalModule(node) {\n      const externalHelpersImportDeclaration = createExternalHelpersImportDeclarationIfNeeded(factory2, emitHelpers(), node, compilerOptions);\n      if (externalHelpersImportDeclaration) {\n        const statements = [];\n        const statementOffset = factory2.copyPrologue(node.statements, statements);\n        append(statements, externalHelpersImportDeclaration);\n        addRange(statements, visitNodes2(node.statements, visitor, isStatement, statementOffset));\n        return factory2.updateSourceFile(node, setTextRange(factory2.createNodeArray(statements), node.statements));\n      } else {\n        return visitEachChild(node, visitor, context);\n      }\n    }\n    function visitor(node) {\n      switch (node.kind) {\n        case 268:\n          return getEmitModuleKind(compilerOptions) >= 100 ? visitImportEqualsDeclaration(node) : void 0;\n        case 274:\n          return visitExportAssignment(node);\n        case 275:\n          const exportDecl = node;\n          return visitExportDeclaration(exportDecl);\n      }\n      return node;\n    }\n    function createRequireCall2(importNode) {\n      const moduleName = getExternalModuleNameLiteral(factory2, importNode, Debug.checkDefined(currentSourceFile), host, resolver, compilerOptions);\n      const args = [];\n      if (moduleName) {\n        args.push(moduleName);\n      }\n      if (!importRequireStatements) {\n        const createRequireName = factory2.createUniqueName(\"_createRequire\", 16 | 32);\n        const importStatement = factory2.createImportDeclaration(void 0, factory2.createImportClause(false, void 0, factory2.createNamedImports([\n          factory2.createImportSpecifier(false, factory2.createIdentifier(\"createRequire\"), createRequireName)\n        ])), factory2.createStringLiteral(\"module\"));\n        const requireHelperName = factory2.createUniqueName(\"__require\", 16 | 32);\n        const requireStatement = factory2.createVariableStatement(void 0, factory2.createVariableDeclarationList([\n          factory2.createVariableDeclaration(requireHelperName, void 0, void 0, factory2.createCallExpression(factory2.cloneNode(createRequireName), void 0, [\n            factory2.createPropertyAccessExpression(factory2.createMetaProperty(100, factory2.createIdentifier(\"meta\")), factory2.createIdentifier(\"url\"))\n          ]))\n        ], languageVersion >= 2 ? 2 : 0));\n        importRequireStatements = [importStatement, requireStatement];\n      }\n      const name = importRequireStatements[1].declarationList.declarations[0].name;\n      Debug.assertNode(name, isIdentifier);\n      return factory2.createCallExpression(factory2.cloneNode(name), void 0, args);\n    }\n    function visitImportEqualsDeclaration(node) {\n      Debug.assert(isExternalModuleImportEqualsDeclaration(node), \"import= for internal module references should be handled in an earlier transformer.\");\n      let statements;\n      statements = append(statements, setOriginalNode(setTextRange(factory2.createVariableStatement(void 0, factory2.createVariableDeclarationList([\n        factory2.createVariableDeclaration(factory2.cloneNode(node.name), void 0, void 0, createRequireCall2(node))\n      ], languageVersion >= 2 ? 2 : 0)), node), node));\n      statements = appendExportsOfImportEqualsDeclaration(statements, node);\n      return singleOrMany(statements);\n    }\n    function appendExportsOfImportEqualsDeclaration(statements, node) {\n      if (hasSyntacticModifier(node, 1)) {\n        statements = append(statements, factory2.createExportDeclaration(void 0, node.isTypeOnly, factory2.createNamedExports([factory2.createExportSpecifier(false, void 0, idText(node.name))])));\n      }\n      return statements;\n    }\n    function visitExportAssignment(node) {\n      return node.isExportEquals ? void 0 : node;\n    }\n    function visitExportDeclaration(node) {\n      if (compilerOptions.module !== void 0 && compilerOptions.module > 5) {\n        return node;\n      }\n      if (!node.exportClause || !isNamespaceExport(node.exportClause) || !node.moduleSpecifier) {\n        return node;\n      }\n      const oldIdentifier = node.exportClause.name;\n      const synthName = factory2.getGeneratedNameForNode(oldIdentifier);\n      const importDecl = factory2.createImportDeclaration(void 0, factory2.createImportClause(false, void 0, factory2.createNamespaceImport(synthName)), node.moduleSpecifier, node.assertClause);\n      setOriginalNode(importDecl, node.exportClause);\n      const exportDecl = isExportNamespaceAsDefaultDeclaration(node) ? factory2.createExportDefault(synthName) : factory2.createExportDeclaration(void 0, false, factory2.createNamedExports([factory2.createExportSpecifier(false, synthName, oldIdentifier)]));\n      setOriginalNode(exportDecl, node);\n      return [importDecl, exportDecl];\n    }\n    function onEmitNode(hint, node, emitCallback) {\n      if (isSourceFile(node)) {\n        if ((isExternalModule(node) || getIsolatedModules(compilerOptions)) && compilerOptions.importHelpers) {\n          helperNameSubstitutions = /* @__PURE__ */ new Map();\n        }\n        previousOnEmitNode(hint, node, emitCallback);\n        helperNameSubstitutions = void 0;\n      } else {\n        previousOnEmitNode(hint, node, emitCallback);\n      }\n    }\n    function onSubstituteNode(hint, node) {\n      node = previousOnSubstituteNode(hint, node);\n      if (helperNameSubstitutions && isIdentifier(node) && getEmitFlags(node) & 8192) {\n        return substituteHelperName(node);\n      }\n      return node;\n    }\n    function substituteHelperName(node) {\n      const name = idText(node);\n      let substitution = helperNameSubstitutions.get(name);\n      if (!substitution) {\n        helperNameSubstitutions.set(name, substitution = factory2.createUniqueName(name, 16 | 32));\n      }\n      return substitution;\n    }\n  }\n  var init_esnextAnd2015 = __esm({\n    \"src/compiler/transformers/module/esnextAnd2015.ts\"() {\n      \"use strict\";\n      init_ts2();\n    }\n  });\n  function transformNodeModule(context) {\n    const previousOnSubstituteNode = context.onSubstituteNode;\n    const previousOnEmitNode = context.onEmitNode;\n    const esmTransform = transformECMAScriptModule(context);\n    const esmOnSubstituteNode = context.onSubstituteNode;\n    const esmOnEmitNode = context.onEmitNode;\n    context.onSubstituteNode = previousOnSubstituteNode;\n    context.onEmitNode = previousOnEmitNode;\n    const cjsTransform = transformModule(context);\n    const cjsOnSubstituteNode = context.onSubstituteNode;\n    const cjsOnEmitNode = context.onEmitNode;\n    context.onSubstituteNode = onSubstituteNode;\n    context.onEmitNode = onEmitNode;\n    context.enableSubstitution(308);\n    context.enableEmitNotification(308);\n    let currentSourceFile;\n    return transformSourceFileOrBundle;\n    function onSubstituteNode(hint, node) {\n      if (isSourceFile(node)) {\n        currentSourceFile = node;\n        return previousOnSubstituteNode(hint, node);\n      } else {\n        if (!currentSourceFile) {\n          return previousOnSubstituteNode(hint, node);\n        }\n        if (currentSourceFile.impliedNodeFormat === 99) {\n          return esmOnSubstituteNode(hint, node);\n        }\n        return cjsOnSubstituteNode(hint, node);\n      }\n    }\n    function onEmitNode(hint, node, emitCallback) {\n      if (isSourceFile(node)) {\n        currentSourceFile = node;\n      }\n      if (!currentSourceFile) {\n        return previousOnEmitNode(hint, node, emitCallback);\n      }\n      if (currentSourceFile.impliedNodeFormat === 99) {\n        return esmOnEmitNode(hint, node, emitCallback);\n      }\n      return cjsOnEmitNode(hint, node, emitCallback);\n    }\n    function getModuleTransformForFile(file) {\n      return file.impliedNodeFormat === 99 ? esmTransform : cjsTransform;\n    }\n    function transformSourceFile(node) {\n      if (node.isDeclarationFile) {\n        return node;\n      }\n      currentSourceFile = node;\n      const result = getModuleTransformForFile(node)(node);\n      currentSourceFile = void 0;\n      Debug.assert(isSourceFile(result));\n      return result;\n    }\n    function transformSourceFileOrBundle(node) {\n      return node.kind === 308 ? transformSourceFile(node) : transformBundle(node);\n    }\n    function transformBundle(node) {\n      return context.factory.createBundle(map(node.sourceFiles, transformSourceFile), node.prepends);\n    }\n  }\n  var init_node = __esm({\n    \"src/compiler/transformers/module/node.ts\"() {\n      \"use strict\";\n      init_ts2();\n    }\n  });\n  function canProduceDiagnostics(node) {\n    return isVariableDeclaration(node) || isPropertyDeclaration(node) || isPropertySignature(node) || isBindingElement(node) || isSetAccessor(node) || isGetAccessor(node) || isConstructSignatureDeclaration(node) || isCallSignatureDeclaration(node) || isMethodDeclaration(node) || isMethodSignature(node) || isFunctionDeclaration(node) || isParameter(node) || isTypeParameterDeclaration(node) || isExpressionWithTypeArguments(node) || isImportEqualsDeclaration(node) || isTypeAliasDeclaration(node) || isConstructorDeclaration(node) || isIndexSignatureDeclaration(node) || isPropertyAccessExpression(node) || isJSDocTypeAlias(node);\n  }\n  function createGetSymbolAccessibilityDiagnosticForNodeName(node) {\n    if (isSetAccessor(node) || isGetAccessor(node)) {\n      return getAccessorNameVisibilityError;\n    } else if (isMethodSignature(node) || isMethodDeclaration(node)) {\n      return getMethodNameVisibilityError;\n    } else {\n      return createGetSymbolAccessibilityDiagnosticForNode(node);\n    }\n    function getAccessorNameVisibilityError(symbolAccessibilityResult) {\n      const diagnosticMessage = getAccessorNameVisibilityDiagnosticMessage(symbolAccessibilityResult);\n      return diagnosticMessage !== void 0 ? {\n        diagnosticMessage,\n        errorNode: node,\n        typeName: node.name\n      } : void 0;\n    }\n    function getAccessorNameVisibilityDiagnosticMessage(symbolAccessibilityResult) {\n      if (isStatic(node)) {\n        return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 ? Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1;\n      } else if (node.parent.kind === 260) {\n        return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 ? Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1;\n      } else {\n        return symbolAccessibilityResult.errorModuleName ? Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1;\n      }\n    }\n    function getMethodNameVisibilityError(symbolAccessibilityResult) {\n      const diagnosticMessage = getMethodNameVisibilityDiagnosticMessage(symbolAccessibilityResult);\n      return diagnosticMessage !== void 0 ? {\n        diagnosticMessage,\n        errorNode: node,\n        typeName: node.name\n      } : void 0;\n    }\n    function getMethodNameVisibilityDiagnosticMessage(symbolAccessibilityResult) {\n      if (isStatic(node)) {\n        return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 ? Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1;\n      } else if (node.parent.kind === 260) {\n        return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 ? Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1;\n      } else {\n        return symbolAccessibilityResult.errorModuleName ? Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1;\n      }\n    }\n  }\n  function createGetSymbolAccessibilityDiagnosticForNode(node) {\n    if (isVariableDeclaration(node) || isPropertyDeclaration(node) || isPropertySignature(node) || isPropertyAccessExpression(node) || isBindingElement(node) || isConstructorDeclaration(node)) {\n      return getVariableDeclarationTypeVisibilityError;\n    } else if (isSetAccessor(node) || isGetAccessor(node)) {\n      return getAccessorDeclarationTypeVisibilityError;\n    } else if (isConstructSignatureDeclaration(node) || isCallSignatureDeclaration(node) || isMethodDeclaration(node) || isMethodSignature(node) || isFunctionDeclaration(node) || isIndexSignatureDeclaration(node)) {\n      return getReturnTypeVisibilityError;\n    } else if (isParameter(node)) {\n      if (isParameterPropertyDeclaration(node, node.parent) && hasSyntacticModifier(node.parent, 8)) {\n        return getVariableDeclarationTypeVisibilityError;\n      }\n      return getParameterDeclarationTypeVisibilityError;\n    } else if (isTypeParameterDeclaration(node)) {\n      return getTypeParameterConstraintVisibilityError;\n    } else if (isExpressionWithTypeArguments(node)) {\n      return getHeritageClauseVisibilityError;\n    } else if (isImportEqualsDeclaration(node)) {\n      return getImportEntityNameVisibilityError;\n    } else if (isTypeAliasDeclaration(node) || isJSDocTypeAlias(node)) {\n      return getTypeAliasDeclarationVisibilityError;\n    } else {\n      return Debug.assertNever(node, `Attempted to set a declaration diagnostic context for unhandled node kind: ${Debug.formatSyntaxKind(node.kind)}`);\n    }\n    function getVariableDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult) {\n      if (node.kind === 257 || node.kind === 205) {\n        return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 ? Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Exported_variable_0_has_or_is_using_private_name_1;\n      } else if (node.kind === 169 || node.kind === 208 || node.kind === 168 || node.kind === 166 && hasSyntacticModifier(node.parent, 8)) {\n        if (isStatic(node)) {\n          return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 ? Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1;\n        } else if (node.parent.kind === 260 || node.kind === 166) {\n          return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 ? Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1;\n        } else {\n          return symbolAccessibilityResult.errorModuleName ? Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1;\n        }\n      }\n    }\n    function getVariableDeclarationTypeVisibilityError(symbolAccessibilityResult) {\n      const diagnosticMessage = getVariableDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult);\n      return diagnosticMessage !== void 0 ? {\n        diagnosticMessage,\n        errorNode: node,\n        typeName: node.name\n      } : void 0;\n    }\n    function getAccessorDeclarationTypeVisibilityError(symbolAccessibilityResult) {\n      let diagnosticMessage;\n      if (node.kind === 175) {\n        if (isStatic(node)) {\n          diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1;\n        } else {\n          diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1;\n        }\n      } else {\n        if (isStatic(node)) {\n          diagnosticMessage = symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 ? Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1;\n        } else {\n          diagnosticMessage = symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 ? Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1;\n        }\n      }\n      return {\n        diagnosticMessage,\n        errorNode: node.name,\n        typeName: node.name\n      };\n    }\n    function getReturnTypeVisibilityError(symbolAccessibilityResult) {\n      let diagnosticMessage;\n      switch (node.kind) {\n        case 177:\n          diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;\n          break;\n        case 176:\n          diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;\n          break;\n        case 178:\n          diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;\n          break;\n        case 171:\n        case 170:\n          if (isStatic(node)) {\n            diagnosticMessage = symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 ? Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0;\n          } else if (node.parent.kind === 260) {\n            diagnosticMessage = symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 ? Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0;\n          } else {\n            diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;\n          }\n          break;\n        case 259:\n          diagnosticMessage = symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 ? Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;\n          break;\n        default:\n          return Debug.fail(\"This is unknown kind for signature: \" + node.kind);\n      }\n      return {\n        diagnosticMessage,\n        errorNode: node.name || node\n      };\n    }\n    function getParameterDeclarationTypeVisibilityError(symbolAccessibilityResult) {\n      const diagnosticMessage = getParameterDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult);\n      return diagnosticMessage !== void 0 ? {\n        diagnosticMessage,\n        errorNode: node,\n        typeName: node.name\n      } : void 0;\n    }\n    function getParameterDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult) {\n      switch (node.parent.kind) {\n        case 173:\n          return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 ? Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;\n        case 177:\n        case 182:\n          return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;\n        case 176:\n          return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;\n        case 178:\n          return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;\n        case 171:\n        case 170:\n          if (isStatic(node.parent)) {\n            return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 ? Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1;\n          } else if (node.parent.parent.kind === 260) {\n            return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 ? Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1;\n          } else {\n            return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;\n          }\n        case 259:\n        case 181:\n          return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 ? Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;\n        case 175:\n        case 174:\n          return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 ? Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;\n        default:\n          return Debug.fail(`Unknown parent for parameter: ${Debug.formatSyntaxKind(node.parent.kind)}`);\n      }\n    }\n    function getTypeParameterConstraintVisibilityError() {\n      let diagnosticMessage;\n      switch (node.parent.kind) {\n        case 260:\n          diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;\n          break;\n        case 261:\n          diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;\n          break;\n        case 197:\n          diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;\n          break;\n        case 182:\n        case 177:\n          diagnosticMessage = Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;\n          break;\n        case 176:\n          diagnosticMessage = Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;\n          break;\n        case 171:\n        case 170:\n          if (isStatic(node.parent)) {\n            diagnosticMessage = Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1;\n          } else if (node.parent.parent.kind === 260) {\n            diagnosticMessage = Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1;\n          } else {\n            diagnosticMessage = Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;\n          }\n          break;\n        case 181:\n        case 259:\n          diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;\n          break;\n        case 192:\n          diagnosticMessage = Diagnostics.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;\n          break;\n        case 262:\n          diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;\n          break;\n        default:\n          return Debug.fail(\"This is unknown parent for type parameter: \" + node.parent.kind);\n      }\n      return {\n        diagnosticMessage,\n        errorNode: node,\n        typeName: node.name\n      };\n    }\n    function getHeritageClauseVisibilityError() {\n      let diagnosticMessage;\n      if (isClassDeclaration(node.parent.parent)) {\n        diagnosticMessage = isHeritageClause(node.parent) && node.parent.token === 117 ? Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1 : node.parent.parent.name ? Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1 : Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0;\n      } else {\n        diagnosticMessage = Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1;\n      }\n      return {\n        diagnosticMessage,\n        errorNode: node,\n        typeName: getNameOfDeclaration(node.parent.parent)\n      };\n    }\n    function getImportEntityNameVisibilityError() {\n      return {\n        diagnosticMessage: Diagnostics.Import_declaration_0_is_using_private_name_1,\n        errorNode: node,\n        typeName: node.name\n      };\n    }\n    function getTypeAliasDeclarationVisibilityError(symbolAccessibilityResult) {\n      return {\n        diagnosticMessage: symbolAccessibilityResult.errorModuleName ? Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2 : Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,\n        errorNode: isJSDocTypeAlias(node) ? Debug.checkDefined(node.typeExpression) : node.type,\n        typeName: isJSDocTypeAlias(node) ? getNameOfDeclaration(node) : node.name\n      };\n    }\n  }\n  var init_diagnostics = __esm({\n    \"src/compiler/transformers/declarations/diagnostics.ts\"() {\n      \"use strict\";\n      init_ts2();\n    }\n  });\n  function getDeclarationDiagnostics(host, resolver, file) {\n    const compilerOptions = host.getCompilerOptions();\n    const result = transformNodes(resolver, host, factory, compilerOptions, file ? [file] : filter(host.getSourceFiles(), isSourceFileNotJson), [transformDeclarations], false);\n    return result.diagnostics;\n  }\n  function hasInternalAnnotation(range, currentSourceFile) {\n    const comment = currentSourceFile.text.substring(range.pos, range.end);\n    return stringContains(comment, \"@internal\");\n  }\n  function isInternalDeclaration(node, currentSourceFile) {\n    const parseTreeNode = getParseTreeNode(node);\n    if (parseTreeNode && parseTreeNode.kind === 166) {\n      const paramIdx = parseTreeNode.parent.parameters.indexOf(parseTreeNode);\n      const previousSibling = paramIdx > 0 ? parseTreeNode.parent.parameters[paramIdx - 1] : void 0;\n      const text = currentSourceFile.text;\n      const commentRanges = previousSibling ? concatenate(getTrailingCommentRanges(text, skipTrivia(text, previousSibling.end + 1, false, true)), getLeadingCommentRanges(text, node.pos)) : getTrailingCommentRanges(text, skipTrivia(text, node.pos, false, true));\n      return commentRanges && commentRanges.length && hasInternalAnnotation(last(commentRanges), currentSourceFile);\n    }\n    const leadingCommentRanges = parseTreeNode && getLeadingCommentRangesOfNode(parseTreeNode, currentSourceFile);\n    return !!forEach(leadingCommentRanges, (range) => {\n      return hasInternalAnnotation(range, currentSourceFile);\n    });\n  }\n  function transformDeclarations(context) {\n    const throwDiagnostic = () => Debug.fail(\"Diagnostic emitted without context\");\n    let getSymbolAccessibilityDiagnostic = throwDiagnostic;\n    let needsDeclare = true;\n    let isBundledEmit = false;\n    let resultHasExternalModuleIndicator = false;\n    let needsScopeFixMarker = false;\n    let resultHasScopeMarker = false;\n    let enclosingDeclaration;\n    let necessaryTypeReferences;\n    let lateMarkedStatements;\n    let lateStatementReplacementMap;\n    let suppressNewDiagnosticContexts;\n    let exportedModulesFromDeclarationEmit;\n    const { factory: factory2 } = context;\n    const host = context.getEmitHost();\n    const symbolTracker = {\n      trackSymbol,\n      reportInaccessibleThisError,\n      reportInaccessibleUniqueSymbolError,\n      reportCyclicStructureError,\n      reportPrivateInBaseOfClassExpression,\n      reportLikelyUnsafeImportRequiredError,\n      reportTruncationError,\n      moduleResolverHost: host,\n      trackReferencedAmbientModule,\n      trackExternalModuleSymbolOfImportTypeNode,\n      reportNonlocalAugmentation,\n      reportNonSerializableProperty,\n      reportImportTypeNodeResolutionModeOverride\n    };\n    let errorNameNode;\n    let errorFallbackNode;\n    let currentSourceFile;\n    let refs;\n    let libs2;\n    let emittedImports;\n    const resolver = context.getEmitResolver();\n    const options = context.getCompilerOptions();\n    const { noResolve, stripInternal } = options;\n    return transformRoot;\n    function recordTypeReferenceDirectivesIfNecessary(typeReferenceDirectives) {\n      if (!typeReferenceDirectives) {\n        return;\n      }\n      necessaryTypeReferences = necessaryTypeReferences || /* @__PURE__ */ new Set();\n      for (const ref of typeReferenceDirectives) {\n        necessaryTypeReferences.add(ref);\n      }\n    }\n    function trackReferencedAmbientModule(node, symbol) {\n      const directives = resolver.getTypeReferenceDirectivesForSymbol(symbol, 67108863);\n      if (length(directives)) {\n        return recordTypeReferenceDirectivesIfNecessary(directives);\n      }\n      const container = getSourceFileOfNode(node);\n      refs.set(getOriginalNodeId(container), container);\n    }\n    function handleSymbolAccessibilityError(symbolAccessibilityResult) {\n      if (symbolAccessibilityResult.accessibility === 0) {\n        if (symbolAccessibilityResult && symbolAccessibilityResult.aliasesToMakeVisible) {\n          if (!lateMarkedStatements) {\n            lateMarkedStatements = symbolAccessibilityResult.aliasesToMakeVisible;\n          } else {\n            for (const ref of symbolAccessibilityResult.aliasesToMakeVisible) {\n              pushIfUnique(lateMarkedStatements, ref);\n            }\n          }\n        }\n      } else {\n        const errorInfo = getSymbolAccessibilityDiagnostic(symbolAccessibilityResult);\n        if (errorInfo) {\n          if (errorInfo.typeName) {\n            context.addDiagnostic(createDiagnosticForNode(symbolAccessibilityResult.errorNode || errorInfo.errorNode, errorInfo.diagnosticMessage, getTextOfNode(errorInfo.typeName), symbolAccessibilityResult.errorSymbolName, symbolAccessibilityResult.errorModuleName));\n          } else {\n            context.addDiagnostic(createDiagnosticForNode(symbolAccessibilityResult.errorNode || errorInfo.errorNode, errorInfo.diagnosticMessage, symbolAccessibilityResult.errorSymbolName, symbolAccessibilityResult.errorModuleName));\n          }\n          return true;\n        }\n      }\n      return false;\n    }\n    function trackExternalModuleSymbolOfImportTypeNode(symbol) {\n      if (!isBundledEmit) {\n        (exportedModulesFromDeclarationEmit || (exportedModulesFromDeclarationEmit = [])).push(symbol);\n      }\n    }\n    function trackSymbol(symbol, enclosingDeclaration2, meaning) {\n      if (symbol.flags & 262144)\n        return false;\n      const issuedDiagnostic = handleSymbolAccessibilityError(resolver.isSymbolAccessible(symbol, enclosingDeclaration2, meaning, true));\n      recordTypeReferenceDirectivesIfNecessary(resolver.getTypeReferenceDirectivesForSymbol(symbol, meaning));\n      return issuedDiagnostic;\n    }\n    function reportPrivateInBaseOfClassExpression(propertyName) {\n      if (errorNameNode || errorFallbackNode) {\n        context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected, propertyName));\n      }\n    }\n    function errorDeclarationNameWithFallback() {\n      return errorNameNode ? declarationNameToString(errorNameNode) : errorFallbackNode && getNameOfDeclaration(errorFallbackNode) ? declarationNameToString(getNameOfDeclaration(errorFallbackNode)) : errorFallbackNode && isExportAssignment(errorFallbackNode) ? errorFallbackNode.isExportEquals ? \"export=\" : \"default\" : \"(Missing)\";\n    }\n    function reportInaccessibleUniqueSymbolError() {\n      if (errorNameNode || errorFallbackNode) {\n        context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary, errorDeclarationNameWithFallback(), \"unique symbol\"));\n      }\n    }\n    function reportCyclicStructureError() {\n      if (errorNameNode || errorFallbackNode) {\n        context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary, errorDeclarationNameWithFallback()));\n      }\n    }\n    function reportInaccessibleThisError() {\n      if (errorNameNode || errorFallbackNode) {\n        context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary, errorDeclarationNameWithFallback(), \"this\"));\n      }\n    }\n    function reportLikelyUnsafeImportRequiredError(specifier) {\n      if (errorNameNode || errorFallbackNode) {\n        context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary, errorDeclarationNameWithFallback(), specifier));\n      }\n    }\n    function reportTruncationError() {\n      if (errorNameNode || errorFallbackNode) {\n        context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed));\n      }\n    }\n    function reportNonlocalAugmentation(containingFile, parentSymbol, symbol) {\n      var _a2;\n      const primaryDeclaration = (_a2 = parentSymbol.declarations) == null ? void 0 : _a2.find((d) => getSourceFileOfNode(d) === containingFile);\n      const augmentingDeclarations = filter(symbol.declarations, (d) => getSourceFileOfNode(d) !== containingFile);\n      if (primaryDeclaration && augmentingDeclarations) {\n        for (const augmentations of augmentingDeclarations) {\n          context.addDiagnostic(addRelatedInfo(createDiagnosticForNode(augmentations, Diagnostics.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized), createDiagnosticForNode(primaryDeclaration, Diagnostics.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)));\n        }\n      }\n    }\n    function reportNonSerializableProperty(propertyName) {\n      if (errorNameNode || errorFallbackNode) {\n        context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized, propertyName));\n      }\n    }\n    function reportImportTypeNodeResolutionModeOverride() {\n      if (!isNightly() && (errorNameNode || errorFallbackNode)) {\n        context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next));\n      }\n    }\n    function transformDeclarationsForJS(sourceFile, bundled) {\n      const oldDiag = getSymbolAccessibilityDiagnostic;\n      getSymbolAccessibilityDiagnostic = (s) => s.errorNode && canProduceDiagnostics(s.errorNode) ? createGetSymbolAccessibilityDiagnosticForNode(s.errorNode)(s) : {\n        diagnosticMessage: s.errorModuleName ? Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit : Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,\n        errorNode: s.errorNode || sourceFile\n      };\n      const result = resolver.getDeclarationStatementsForSourceFile(sourceFile, declarationEmitNodeBuilderFlags, symbolTracker, bundled);\n      getSymbolAccessibilityDiagnostic = oldDiag;\n      return result;\n    }\n    function transformRoot(node) {\n      if (node.kind === 308 && node.isDeclarationFile) {\n        return node;\n      }\n      if (node.kind === 309) {\n        isBundledEmit = true;\n        refs = /* @__PURE__ */ new Map();\n        libs2 = /* @__PURE__ */ new Map();\n        let hasNoDefaultLib = false;\n        const bundle = factory2.createBundle(map(node.sourceFiles, (sourceFile) => {\n          if (sourceFile.isDeclarationFile)\n            return void 0;\n          hasNoDefaultLib = hasNoDefaultLib || sourceFile.hasNoDefaultLib;\n          currentSourceFile = sourceFile;\n          enclosingDeclaration = sourceFile;\n          lateMarkedStatements = void 0;\n          suppressNewDiagnosticContexts = false;\n          lateStatementReplacementMap = /* @__PURE__ */ new Map();\n          getSymbolAccessibilityDiagnostic = throwDiagnostic;\n          needsScopeFixMarker = false;\n          resultHasScopeMarker = false;\n          collectReferences(sourceFile, refs);\n          collectLibs(sourceFile, libs2);\n          if (isExternalOrCommonJsModule(sourceFile) || isJsonSourceFile(sourceFile)) {\n            resultHasExternalModuleIndicator = false;\n            needsDeclare = false;\n            const statements = isSourceFileJS(sourceFile) ? factory2.createNodeArray(transformDeclarationsForJS(sourceFile, true)) : visitNodes2(sourceFile.statements, visitDeclarationStatements, isStatement);\n            const newFile = factory2.updateSourceFile(sourceFile, [factory2.createModuleDeclaration([factory2.createModifier(136)], factory2.createStringLiteral(getResolvedExternalModuleName(context.getEmitHost(), sourceFile)), factory2.createModuleBlock(setTextRange(factory2.createNodeArray(transformAndReplaceLatePaintedStatements(statements)), sourceFile.statements)))], true, [], [], false, []);\n            return newFile;\n          }\n          needsDeclare = true;\n          const updated2 = isSourceFileJS(sourceFile) ? factory2.createNodeArray(transformDeclarationsForJS(sourceFile)) : visitNodes2(sourceFile.statements, visitDeclarationStatements, isStatement);\n          return factory2.updateSourceFile(sourceFile, transformAndReplaceLatePaintedStatements(updated2), true, [], [], false, []);\n        }), mapDefined(node.prepends, (prepend) => {\n          if (prepend.kind === 311) {\n            const sourceFile = createUnparsedSourceFile(prepend, \"dts\", stripInternal);\n            hasNoDefaultLib = hasNoDefaultLib || !!sourceFile.hasNoDefaultLib;\n            collectReferences(sourceFile, refs);\n            recordTypeReferenceDirectivesIfNecessary(map(sourceFile.typeReferenceDirectives, (ref) => [ref.fileName, ref.resolutionMode]));\n            collectLibs(sourceFile, libs2);\n            return sourceFile;\n          }\n          return prepend;\n        }));\n        bundle.syntheticFileReferences = [];\n        bundle.syntheticTypeReferences = getFileReferencesForUsedTypeReferences();\n        bundle.syntheticLibReferences = getLibReferences();\n        bundle.hasNoDefaultLib = hasNoDefaultLib;\n        const outputFilePath2 = getDirectoryPath(normalizeSlashes(getOutputPathsFor(node, host, true).declarationFilePath));\n        const referenceVisitor2 = mapReferencesIntoArray(bundle.syntheticFileReferences, outputFilePath2);\n        refs.forEach(referenceVisitor2);\n        return bundle;\n      }\n      needsDeclare = true;\n      needsScopeFixMarker = false;\n      resultHasScopeMarker = false;\n      enclosingDeclaration = node;\n      currentSourceFile = node;\n      getSymbolAccessibilityDiagnostic = throwDiagnostic;\n      isBundledEmit = false;\n      resultHasExternalModuleIndicator = false;\n      suppressNewDiagnosticContexts = false;\n      lateMarkedStatements = void 0;\n      lateStatementReplacementMap = /* @__PURE__ */ new Map();\n      necessaryTypeReferences = void 0;\n      refs = collectReferences(currentSourceFile, /* @__PURE__ */ new Map());\n      libs2 = collectLibs(currentSourceFile, /* @__PURE__ */ new Map());\n      const references = [];\n      const outputFilePath = getDirectoryPath(normalizeSlashes(getOutputPathsFor(node, host, true).declarationFilePath));\n      const referenceVisitor = mapReferencesIntoArray(references, outputFilePath);\n      let combinedStatements;\n      if (isSourceFileJS(currentSourceFile)) {\n        combinedStatements = factory2.createNodeArray(transformDeclarationsForJS(node));\n        refs.forEach(referenceVisitor);\n        emittedImports = filter(combinedStatements, isAnyImportSyntax);\n      } else {\n        const statements = visitNodes2(node.statements, visitDeclarationStatements, isStatement);\n        combinedStatements = setTextRange(factory2.createNodeArray(transformAndReplaceLatePaintedStatements(statements)), node.statements);\n        refs.forEach(referenceVisitor);\n        emittedImports = filter(combinedStatements, isAnyImportSyntax);\n        if (isExternalModule(node) && (!resultHasExternalModuleIndicator || needsScopeFixMarker && !resultHasScopeMarker)) {\n          combinedStatements = setTextRange(factory2.createNodeArray([...combinedStatements, createEmptyExports(factory2)]), combinedStatements);\n        }\n      }\n      const updated = factory2.updateSourceFile(node, combinedStatements, true, references, getFileReferencesForUsedTypeReferences(), node.hasNoDefaultLib, getLibReferences());\n      updated.exportedModulesFromDeclarationEmit = exportedModulesFromDeclarationEmit;\n      return updated;\n      function getLibReferences() {\n        return arrayFrom(libs2.keys(), (lib) => ({ fileName: lib, pos: -1, end: -1 }));\n      }\n      function getFileReferencesForUsedTypeReferences() {\n        return necessaryTypeReferences ? mapDefined(arrayFrom(necessaryTypeReferences.keys()), getFileReferenceForSpecifierModeTuple) : [];\n      }\n      function getFileReferenceForSpecifierModeTuple([typeName, mode]) {\n        if (emittedImports) {\n          for (const importStatement of emittedImports) {\n            if (isImportEqualsDeclaration(importStatement) && isExternalModuleReference(importStatement.moduleReference)) {\n              const expr = importStatement.moduleReference.expression;\n              if (isStringLiteralLike(expr) && expr.text === typeName) {\n                return void 0;\n              }\n            } else if (isImportDeclaration(importStatement) && isStringLiteral(importStatement.moduleSpecifier) && importStatement.moduleSpecifier.text === typeName) {\n              return void 0;\n            }\n          }\n        }\n        return { fileName: typeName, pos: -1, end: -1, ...mode ? { resolutionMode: mode } : void 0 };\n      }\n      function mapReferencesIntoArray(references2, outputFilePath2) {\n        return (file) => {\n          let declFileName;\n          if (file.isDeclarationFile) {\n            declFileName = file.fileName;\n          } else {\n            if (isBundledEmit && contains(node.sourceFiles, file))\n              return;\n            const paths = getOutputPathsFor(file, host, true);\n            declFileName = paths.declarationFilePath || paths.jsFilePath || file.fileName;\n          }\n          if (declFileName) {\n            const specifier = getModuleSpecifier(options, currentSourceFile, toPath(outputFilePath2, host.getCurrentDirectory(), host.getCanonicalFileName), toPath(declFileName, host.getCurrentDirectory(), host.getCanonicalFileName), host);\n            if (!pathIsRelative(specifier)) {\n              recordTypeReferenceDirectivesIfNecessary([[\n                specifier,\n                void 0\n              ]]);\n              return;\n            }\n            let fileName = getRelativePathToDirectoryOrUrl(outputFilePath2, declFileName, host.getCurrentDirectory(), host.getCanonicalFileName, false);\n            if (startsWith(fileName, \"./\") && hasExtension(fileName)) {\n              fileName = fileName.substring(2);\n            }\n            if (startsWith(fileName, \"node_modules/\") || pathContainsNodeModules(fileName)) {\n              return;\n            }\n            references2.push({ pos: -1, end: -1, fileName });\n          }\n        };\n      }\n    }\n    function collectReferences(sourceFile, ret) {\n      if (noResolve || !isUnparsedSource(sourceFile) && isSourceFileJS(sourceFile))\n        return ret;\n      forEach(sourceFile.referencedFiles, (f) => {\n        const elem = host.getSourceFileFromReference(sourceFile, f);\n        if (elem) {\n          ret.set(getOriginalNodeId(elem), elem);\n        }\n      });\n      return ret;\n    }\n    function collectLibs(sourceFile, ret) {\n      forEach(sourceFile.libReferenceDirectives, (ref) => {\n        const lib = host.getLibFileFromReference(ref);\n        if (lib) {\n          ret.set(toFileNameLowerCase(ref.fileName), true);\n        }\n      });\n      return ret;\n    }\n    function filterBindingPatternInitializersAndRenamings(name) {\n      if (name.kind === 79) {\n        return name;\n      } else {\n        if (name.kind === 204) {\n          return factory2.updateArrayBindingPattern(name, visitNodes2(name.elements, visitBindingElement, isArrayBindingElement));\n        } else {\n          return factory2.updateObjectBindingPattern(name, visitNodes2(name.elements, visitBindingElement, isBindingElement));\n        }\n      }\n      function visitBindingElement(elem) {\n        if (elem.kind === 229) {\n          return elem;\n        }\n        if (elem.propertyName && isIdentifier(elem.propertyName) && isIdentifier(elem.name) && !elem.symbol.isReferenced && !isIdentifierANonContextualKeyword(elem.propertyName)) {\n          return factory2.updateBindingElement(elem, elem.dotDotDotToken, void 0, elem.propertyName, shouldPrintWithInitializer(elem) ? elem.initializer : void 0);\n        }\n        return factory2.updateBindingElement(elem, elem.dotDotDotToken, elem.propertyName, filterBindingPatternInitializersAndRenamings(elem.name), shouldPrintWithInitializer(elem) ? elem.initializer : void 0);\n      }\n    }\n    function ensureParameter(p, modifierMask, type) {\n      let oldDiag;\n      if (!suppressNewDiagnosticContexts) {\n        oldDiag = getSymbolAccessibilityDiagnostic;\n        getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(p);\n      }\n      const newParam = factory2.updateParameterDeclaration(p, maskModifiers(p, modifierMask), p.dotDotDotToken, filterBindingPatternInitializersAndRenamings(p.name), resolver.isOptionalParameter(p) ? p.questionToken || factory2.createToken(57) : void 0, ensureType(p, type || p.type, true), ensureNoInitializer(p));\n      if (!suppressNewDiagnosticContexts) {\n        getSymbolAccessibilityDiagnostic = oldDiag;\n      }\n      return newParam;\n    }\n    function shouldPrintWithInitializer(node) {\n      return canHaveLiteralInitializer(node) && resolver.isLiteralConstDeclaration(getParseTreeNode(node));\n    }\n    function ensureNoInitializer(node) {\n      if (shouldPrintWithInitializer(node)) {\n        return resolver.createLiteralConstValue(getParseTreeNode(node), symbolTracker);\n      }\n      return void 0;\n    }\n    function ensureType(node, type, ignorePrivate) {\n      if (!ignorePrivate && hasEffectiveModifier(node, 8)) {\n        return;\n      }\n      if (shouldPrintWithInitializer(node)) {\n        return;\n      }\n      const shouldUseResolverType = node.kind === 166 && (resolver.isRequiredInitializedParameter(node) || resolver.isOptionalUninitializedParameterProperty(node));\n      if (type && !shouldUseResolverType) {\n        return visitNode(type, visitDeclarationSubtree, isTypeNode);\n      }\n      if (!getParseTreeNode(node)) {\n        return type ? visitNode(type, visitDeclarationSubtree, isTypeNode) : factory2.createKeywordTypeNode(131);\n      }\n      if (node.kind === 175) {\n        return factory2.createKeywordTypeNode(131);\n      }\n      errorNameNode = node.name;\n      let oldDiag;\n      if (!suppressNewDiagnosticContexts) {\n        oldDiag = getSymbolAccessibilityDiagnostic;\n        getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(node);\n      }\n      if (node.kind === 257 || node.kind === 205) {\n        return cleanup(resolver.createTypeOfDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker));\n      }\n      if (node.kind === 166 || node.kind === 169 || node.kind === 168) {\n        if (isPropertySignature(node) || !node.initializer)\n          return cleanup(resolver.createTypeOfDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker, shouldUseResolverType));\n        return cleanup(resolver.createTypeOfDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker, shouldUseResolverType) || resolver.createTypeOfExpression(node.initializer, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker));\n      }\n      return cleanup(resolver.createReturnTypeOfSignatureDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker));\n      function cleanup(returnValue) {\n        errorNameNode = void 0;\n        if (!suppressNewDiagnosticContexts) {\n          getSymbolAccessibilityDiagnostic = oldDiag;\n        }\n        return returnValue || factory2.createKeywordTypeNode(131);\n      }\n    }\n    function isDeclarationAndNotVisible(node) {\n      node = getParseTreeNode(node);\n      switch (node.kind) {\n        case 259:\n        case 264:\n        case 261:\n        case 260:\n        case 262:\n        case 263:\n          return !resolver.isDeclarationVisible(node);\n        case 257:\n          return !getBindingNameVisible(node);\n        case 268:\n        case 269:\n        case 275:\n        case 274:\n          return false;\n        case 172:\n          return true;\n      }\n      return false;\n    }\n    function shouldEmitFunctionProperties(input) {\n      var _a2;\n      if (input.body) {\n        return true;\n      }\n      const overloadSignatures = (_a2 = input.symbol.declarations) == null ? void 0 : _a2.filter((decl) => isFunctionDeclaration(decl) && !decl.body);\n      return !overloadSignatures || overloadSignatures.indexOf(input) === overloadSignatures.length - 1;\n    }\n    function getBindingNameVisible(elem) {\n      if (isOmittedExpression(elem)) {\n        return false;\n      }\n      if (isBindingPattern(elem.name)) {\n        return some(elem.name.elements, getBindingNameVisible);\n      } else {\n        return resolver.isDeclarationVisible(elem);\n      }\n    }\n    function updateParamsList(node, params, modifierMask) {\n      if (hasEffectiveModifier(node, 8)) {\n        return factory2.createNodeArray();\n      }\n      const newParams = map(params, (p) => ensureParameter(p, modifierMask));\n      if (!newParams) {\n        return factory2.createNodeArray();\n      }\n      return factory2.createNodeArray(newParams, params.hasTrailingComma);\n    }\n    function updateAccessorParamsList(input, isPrivate) {\n      let newParams;\n      if (!isPrivate) {\n        const thisParameter = getThisParameter(input);\n        if (thisParameter) {\n          newParams = [ensureParameter(thisParameter)];\n        }\n      }\n      if (isSetAccessorDeclaration(input)) {\n        let newValueParameter;\n        if (!isPrivate) {\n          const valueParameter = getSetAccessorValueParameter(input);\n          if (valueParameter) {\n            const accessorType = getTypeAnnotationFromAllAccessorDeclarations(input, resolver.getAllAccessorDeclarations(input));\n            newValueParameter = ensureParameter(valueParameter, void 0, accessorType);\n          }\n        }\n        if (!newValueParameter) {\n          newValueParameter = factory2.createParameterDeclaration(void 0, void 0, \"value\");\n        }\n        newParams = append(newParams, newValueParameter);\n      }\n      return factory2.createNodeArray(newParams || emptyArray);\n    }\n    function ensureTypeParams(node, params) {\n      return hasEffectiveModifier(node, 8) ? void 0 : visitNodes2(params, visitDeclarationSubtree, isTypeParameterDeclaration);\n    }\n    function isEnclosingDeclaration(node) {\n      return isSourceFile(node) || isTypeAliasDeclaration(node) || isModuleDeclaration(node) || isClassDeclaration(node) || isInterfaceDeclaration(node) || isFunctionLike(node) || isIndexSignatureDeclaration(node) || isMappedTypeNode(node);\n    }\n    function checkEntityNameVisibility(entityName, enclosingDeclaration2) {\n      const visibilityResult = resolver.isEntityNameVisible(entityName, enclosingDeclaration2);\n      handleSymbolAccessibilityError(visibilityResult);\n      recordTypeReferenceDirectivesIfNecessary(resolver.getTypeReferenceDirectivesForEntityName(entityName));\n    }\n    function preserveJsDoc(updated, original) {\n      if (hasJSDocNodes(updated) && hasJSDocNodes(original)) {\n        updated.jsDoc = original.jsDoc;\n      }\n      return setCommentRange(updated, getCommentRange(original));\n    }\n    function rewriteModuleSpecifier(parent2, input) {\n      if (!input)\n        return void 0;\n      resultHasExternalModuleIndicator = resultHasExternalModuleIndicator || parent2.kind !== 264 && parent2.kind !== 202;\n      if (isStringLiteralLike(input)) {\n        if (isBundledEmit) {\n          const newName = getExternalModuleNameFromDeclaration(context.getEmitHost(), resolver, parent2);\n          if (newName) {\n            return factory2.createStringLiteral(newName);\n          }\n        } else {\n          const symbol = resolver.getSymbolOfExternalModuleSpecifier(input);\n          if (symbol) {\n            (exportedModulesFromDeclarationEmit || (exportedModulesFromDeclarationEmit = [])).push(symbol);\n          }\n        }\n      }\n      return input;\n    }\n    function transformImportEqualsDeclaration(decl) {\n      if (!resolver.isDeclarationVisible(decl))\n        return;\n      if (decl.moduleReference.kind === 280) {\n        const specifier = getExternalModuleImportEqualsDeclarationExpression(decl);\n        return factory2.updateImportEqualsDeclaration(decl, decl.modifiers, decl.isTypeOnly, decl.name, factory2.updateExternalModuleReference(decl.moduleReference, rewriteModuleSpecifier(decl, specifier)));\n      } else {\n        const oldDiag = getSymbolAccessibilityDiagnostic;\n        getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(decl);\n        checkEntityNameVisibility(decl.moduleReference, enclosingDeclaration);\n        getSymbolAccessibilityDiagnostic = oldDiag;\n        return decl;\n      }\n    }\n    function transformImportDeclaration(decl) {\n      if (!decl.importClause) {\n        return factory2.updateImportDeclaration(decl, decl.modifiers, decl.importClause, rewriteModuleSpecifier(decl, decl.moduleSpecifier), getResolutionModeOverrideForClauseInNightly(decl.assertClause));\n      }\n      const visibleDefaultBinding = decl.importClause && decl.importClause.name && resolver.isDeclarationVisible(decl.importClause) ? decl.importClause.name : void 0;\n      if (!decl.importClause.namedBindings) {\n        return visibleDefaultBinding && factory2.updateImportDeclaration(decl, decl.modifiers, factory2.updateImportClause(decl.importClause, decl.importClause.isTypeOnly, visibleDefaultBinding, void 0), rewriteModuleSpecifier(decl, decl.moduleSpecifier), getResolutionModeOverrideForClauseInNightly(decl.assertClause));\n      }\n      if (decl.importClause.namedBindings.kind === 271) {\n        const namedBindings = resolver.isDeclarationVisible(decl.importClause.namedBindings) ? decl.importClause.namedBindings : void 0;\n        return visibleDefaultBinding || namedBindings ? factory2.updateImportDeclaration(decl, decl.modifiers, factory2.updateImportClause(decl.importClause, decl.importClause.isTypeOnly, visibleDefaultBinding, namedBindings), rewriteModuleSpecifier(decl, decl.moduleSpecifier), getResolutionModeOverrideForClauseInNightly(decl.assertClause)) : void 0;\n      }\n      const bindingList = mapDefined(decl.importClause.namedBindings.elements, (b) => resolver.isDeclarationVisible(b) ? b : void 0);\n      if (bindingList && bindingList.length || visibleDefaultBinding) {\n        return factory2.updateImportDeclaration(decl, decl.modifiers, factory2.updateImportClause(decl.importClause, decl.importClause.isTypeOnly, visibleDefaultBinding, bindingList && bindingList.length ? factory2.updateNamedImports(decl.importClause.namedBindings, bindingList) : void 0), rewriteModuleSpecifier(decl, decl.moduleSpecifier), getResolutionModeOverrideForClauseInNightly(decl.assertClause));\n      }\n      if (resolver.isImportRequiredByAugmentation(decl)) {\n        return factory2.updateImportDeclaration(decl, decl.modifiers, void 0, rewriteModuleSpecifier(decl, decl.moduleSpecifier), getResolutionModeOverrideForClauseInNightly(decl.assertClause));\n      }\n    }\n    function getResolutionModeOverrideForClauseInNightly(assertClause) {\n      const mode = getResolutionModeOverrideForClause(assertClause);\n      if (mode !== void 0) {\n        if (!isNightly()) {\n          context.addDiagnostic(createDiagnosticForNode(assertClause, Diagnostics.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next));\n        }\n        return assertClause;\n      }\n      return void 0;\n    }\n    function transformAndReplaceLatePaintedStatements(statements) {\n      while (length(lateMarkedStatements)) {\n        const i = lateMarkedStatements.shift();\n        if (!isLateVisibilityPaintedStatement(i)) {\n          return Debug.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${Debug.formatSyntaxKind(i.kind)}`);\n        }\n        const priorNeedsDeclare = needsDeclare;\n        needsDeclare = i.parent && isSourceFile(i.parent) && !(isExternalModule(i.parent) && isBundledEmit);\n        const result = transformTopLevelDeclaration(i);\n        needsDeclare = priorNeedsDeclare;\n        lateStatementReplacementMap.set(getOriginalNodeId(i), result);\n      }\n      return visitNodes2(statements, visitLateVisibilityMarkedStatements, isStatement);\n      function visitLateVisibilityMarkedStatements(statement) {\n        if (isLateVisibilityPaintedStatement(statement)) {\n          const key = getOriginalNodeId(statement);\n          if (lateStatementReplacementMap.has(key)) {\n            const result = lateStatementReplacementMap.get(key);\n            lateStatementReplacementMap.delete(key);\n            if (result) {\n              if (isArray(result) ? some(result, needsScopeMarker) : needsScopeMarker(result)) {\n                needsScopeFixMarker = true;\n              }\n              if (isSourceFile(statement.parent) && (isArray(result) ? some(result, isExternalModuleIndicator) : isExternalModuleIndicator(result))) {\n                resultHasExternalModuleIndicator = true;\n              }\n            }\n            return result;\n          }\n        }\n        return statement;\n      }\n    }\n    function visitDeclarationSubtree(input) {\n      if (shouldStripInternal(input))\n        return;\n      if (isDeclaration(input)) {\n        if (isDeclarationAndNotVisible(input))\n          return;\n        if (hasDynamicName(input) && !resolver.isLateBound(getParseTreeNode(input))) {\n          return;\n        }\n      }\n      if (isFunctionLike(input) && resolver.isImplementationOfOverload(input))\n        return;\n      if (isSemicolonClassElement(input))\n        return;\n      let previousEnclosingDeclaration;\n      if (isEnclosingDeclaration(input)) {\n        previousEnclosingDeclaration = enclosingDeclaration;\n        enclosingDeclaration = input;\n      }\n      const oldDiag = getSymbolAccessibilityDiagnostic;\n      const canProduceDiagnostic = canProduceDiagnostics(input);\n      const oldWithinObjectLiteralType = suppressNewDiagnosticContexts;\n      let shouldEnterSuppressNewDiagnosticsContextContext = (input.kind === 184 || input.kind === 197) && input.parent.kind !== 262;\n      if (isMethodDeclaration(input) || isMethodSignature(input)) {\n        if (hasEffectiveModifier(input, 8)) {\n          if (input.symbol && input.symbol.declarations && input.symbol.declarations[0] !== input)\n            return;\n          return cleanup(factory2.createPropertyDeclaration(ensureModifiers(input), input.name, void 0, void 0, void 0));\n        }\n      }\n      if (canProduceDiagnostic && !suppressNewDiagnosticContexts) {\n        getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(input);\n      }\n      if (isTypeQueryNode(input)) {\n        checkEntityNameVisibility(input.exprName, enclosingDeclaration);\n      }\n      if (shouldEnterSuppressNewDiagnosticsContextContext) {\n        suppressNewDiagnosticContexts = true;\n      }\n      if (isProcessedComponent(input)) {\n        switch (input.kind) {\n          case 230: {\n            if (isEntityName(input.expression) || isEntityNameExpression(input.expression)) {\n              checkEntityNameVisibility(input.expression, enclosingDeclaration);\n            }\n            const node = visitEachChild(input, visitDeclarationSubtree, context);\n            return cleanup(factory2.updateExpressionWithTypeArguments(node, node.expression, node.typeArguments));\n          }\n          case 180: {\n            checkEntityNameVisibility(input.typeName, enclosingDeclaration);\n            const node = visitEachChild(input, visitDeclarationSubtree, context);\n            return cleanup(factory2.updateTypeReferenceNode(node, node.typeName, node.typeArguments));\n          }\n          case 177:\n            return cleanup(factory2.updateConstructSignature(input, ensureTypeParams(input, input.typeParameters), updateParamsList(input, input.parameters), ensureType(input, input.type)));\n          case 173: {\n            const ctor = factory2.createConstructorDeclaration(ensureModifiers(input), updateParamsList(input, input.parameters, 0), void 0);\n            return cleanup(ctor);\n          }\n          case 171: {\n            if (isPrivateIdentifier(input.name)) {\n              return cleanup(void 0);\n            }\n            const sig = factory2.createMethodDeclaration(ensureModifiers(input), void 0, input.name, input.questionToken, ensureTypeParams(input, input.typeParameters), updateParamsList(input, input.parameters), ensureType(input, input.type), void 0);\n            return cleanup(sig);\n          }\n          case 174: {\n            if (isPrivateIdentifier(input.name)) {\n              return cleanup(void 0);\n            }\n            const accessorType = getTypeAnnotationFromAllAccessorDeclarations(input, resolver.getAllAccessorDeclarations(input));\n            return cleanup(factory2.updateGetAccessorDeclaration(input, ensureModifiers(input), input.name, updateAccessorParamsList(input, hasEffectiveModifier(input, 8)), ensureType(input, accessorType), void 0));\n          }\n          case 175: {\n            if (isPrivateIdentifier(input.name)) {\n              return cleanup(void 0);\n            }\n            return cleanup(factory2.updateSetAccessorDeclaration(input, ensureModifiers(input), input.name, updateAccessorParamsList(input, hasEffectiveModifier(input, 8)), void 0));\n          }\n          case 169:\n            if (isPrivateIdentifier(input.name)) {\n              return cleanup(void 0);\n            }\n            return cleanup(factory2.updatePropertyDeclaration(input, ensureModifiers(input), input.name, input.questionToken, ensureType(input, input.type), ensureNoInitializer(input)));\n          case 168:\n            if (isPrivateIdentifier(input.name)) {\n              return cleanup(void 0);\n            }\n            return cleanup(factory2.updatePropertySignature(input, ensureModifiers(input), input.name, input.questionToken, ensureType(input, input.type)));\n          case 170: {\n            if (isPrivateIdentifier(input.name)) {\n              return cleanup(void 0);\n            }\n            return cleanup(factory2.updateMethodSignature(input, ensureModifiers(input), input.name, input.questionToken, ensureTypeParams(input, input.typeParameters), updateParamsList(input, input.parameters), ensureType(input, input.type)));\n          }\n          case 176: {\n            return cleanup(factory2.updateCallSignature(input, ensureTypeParams(input, input.typeParameters), updateParamsList(input, input.parameters), ensureType(input, input.type)));\n          }\n          case 178: {\n            return cleanup(factory2.updateIndexSignature(input, ensureModifiers(input), updateParamsList(input, input.parameters), visitNode(input.type, visitDeclarationSubtree, isTypeNode) || factory2.createKeywordTypeNode(131)));\n          }\n          case 257: {\n            if (isBindingPattern(input.name)) {\n              return recreateBindingPattern(input.name);\n            }\n            shouldEnterSuppressNewDiagnosticsContextContext = true;\n            suppressNewDiagnosticContexts = true;\n            return cleanup(factory2.updateVariableDeclaration(input, input.name, void 0, ensureType(input, input.type), ensureNoInitializer(input)));\n          }\n          case 165: {\n            if (isPrivateMethodTypeParameter(input) && (input.default || input.constraint)) {\n              return cleanup(factory2.updateTypeParameterDeclaration(input, input.modifiers, input.name, void 0, void 0));\n            }\n            return cleanup(visitEachChild(input, visitDeclarationSubtree, context));\n          }\n          case 191: {\n            const checkType = visitNode(input.checkType, visitDeclarationSubtree, isTypeNode);\n            const extendsType = visitNode(input.extendsType, visitDeclarationSubtree, isTypeNode);\n            const oldEnclosingDecl = enclosingDeclaration;\n            enclosingDeclaration = input.trueType;\n            const trueType = visitNode(input.trueType, visitDeclarationSubtree, isTypeNode);\n            enclosingDeclaration = oldEnclosingDecl;\n            const falseType = visitNode(input.falseType, visitDeclarationSubtree, isTypeNode);\n            Debug.assert(checkType);\n            Debug.assert(extendsType);\n            Debug.assert(trueType);\n            Debug.assert(falseType);\n            return cleanup(factory2.updateConditionalTypeNode(input, checkType, extendsType, trueType, falseType));\n          }\n          case 181: {\n            return cleanup(factory2.updateFunctionTypeNode(input, visitNodes2(input.typeParameters, visitDeclarationSubtree, isTypeParameterDeclaration), updateParamsList(input, input.parameters), Debug.checkDefined(visitNode(input.type, visitDeclarationSubtree, isTypeNode))));\n          }\n          case 182: {\n            return cleanup(factory2.updateConstructorTypeNode(input, ensureModifiers(input), visitNodes2(input.typeParameters, visitDeclarationSubtree, isTypeParameterDeclaration), updateParamsList(input, input.parameters), Debug.checkDefined(visitNode(input.type, visitDeclarationSubtree, isTypeNode))));\n          }\n          case 202: {\n            if (!isLiteralImportTypeNode(input))\n              return cleanup(input);\n            return cleanup(factory2.updateImportTypeNode(input, factory2.updateLiteralTypeNode(input.argument, rewriteModuleSpecifier(input, input.argument.literal)), input.assertions, input.qualifier, visitNodes2(input.typeArguments, visitDeclarationSubtree, isTypeNode), input.isTypeOf));\n          }\n          default:\n            Debug.assertNever(input, `Attempted to process unhandled node kind: ${Debug.formatSyntaxKind(input.kind)}`);\n        }\n      }\n      if (isTupleTypeNode(input) && getLineAndCharacterOfPosition(currentSourceFile, input.pos).line === getLineAndCharacterOfPosition(currentSourceFile, input.end).line) {\n        setEmitFlags(input, 1);\n      }\n      return cleanup(visitEachChild(input, visitDeclarationSubtree, context));\n      function cleanup(returnValue) {\n        if (returnValue && canProduceDiagnostic && hasDynamicName(input)) {\n          checkName(input);\n        }\n        if (isEnclosingDeclaration(input)) {\n          enclosingDeclaration = previousEnclosingDeclaration;\n        }\n        if (canProduceDiagnostic && !suppressNewDiagnosticContexts) {\n          getSymbolAccessibilityDiagnostic = oldDiag;\n        }\n        if (shouldEnterSuppressNewDiagnosticsContextContext) {\n          suppressNewDiagnosticContexts = oldWithinObjectLiteralType;\n        }\n        if (returnValue === input) {\n          return returnValue;\n        }\n        return returnValue && setOriginalNode(preserveJsDoc(returnValue, input), input);\n      }\n    }\n    function isPrivateMethodTypeParameter(node) {\n      return node.parent.kind === 171 && hasEffectiveModifier(node.parent, 8);\n    }\n    function visitDeclarationStatements(input) {\n      if (!isPreservedDeclarationStatement(input)) {\n        return;\n      }\n      if (shouldStripInternal(input))\n        return;\n      switch (input.kind) {\n        case 275: {\n          if (isSourceFile(input.parent)) {\n            resultHasExternalModuleIndicator = true;\n          }\n          resultHasScopeMarker = true;\n          return factory2.updateExportDeclaration(input, input.modifiers, input.isTypeOnly, input.exportClause, rewriteModuleSpecifier(input, input.moduleSpecifier), getResolutionModeOverrideForClause(input.assertClause) ? input.assertClause : void 0);\n        }\n        case 274: {\n          if (isSourceFile(input.parent)) {\n            resultHasExternalModuleIndicator = true;\n          }\n          resultHasScopeMarker = true;\n          if (input.expression.kind === 79) {\n            return input;\n          } else {\n            const newId = factory2.createUniqueName(\"_default\", 16);\n            getSymbolAccessibilityDiagnostic = () => ({\n              diagnosticMessage: Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,\n              errorNode: input\n            });\n            errorFallbackNode = input;\n            const varDecl = factory2.createVariableDeclaration(newId, void 0, resolver.createTypeOfExpression(input.expression, input, declarationEmitNodeBuilderFlags, symbolTracker), void 0);\n            errorFallbackNode = void 0;\n            const statement = factory2.createVariableStatement(needsDeclare ? [factory2.createModifier(136)] : [], factory2.createVariableDeclarationList([varDecl], 2));\n            preserveJsDoc(statement, input);\n            removeAllComments(input);\n            return [statement, factory2.updateExportAssignment(input, input.modifiers, newId)];\n          }\n        }\n      }\n      const result = transformTopLevelDeclaration(input);\n      lateStatementReplacementMap.set(getOriginalNodeId(input), result);\n      return input;\n    }\n    function stripExportModifiers(statement) {\n      if (isImportEqualsDeclaration(statement) || hasEffectiveModifier(statement, 1024) || !canHaveModifiers(statement)) {\n        return statement;\n      }\n      const modifiers = factory2.createModifiersFromModifierFlags(getEffectiveModifierFlags(statement) & (258047 ^ 1));\n      return factory2.updateModifiers(statement, modifiers);\n    }\n    function transformTopLevelDeclaration(input) {\n      if (lateMarkedStatements) {\n        while (orderedRemoveItem(lateMarkedStatements, input))\n          ;\n      }\n      if (shouldStripInternal(input))\n        return;\n      switch (input.kind) {\n        case 268: {\n          return transformImportEqualsDeclaration(input);\n        }\n        case 269: {\n          return transformImportDeclaration(input);\n        }\n      }\n      if (isDeclaration(input) && isDeclarationAndNotVisible(input))\n        return;\n      if (isFunctionLike(input) && resolver.isImplementationOfOverload(input))\n        return;\n      let previousEnclosingDeclaration;\n      if (isEnclosingDeclaration(input)) {\n        previousEnclosingDeclaration = enclosingDeclaration;\n        enclosingDeclaration = input;\n      }\n      const canProdiceDiagnostic = canProduceDiagnostics(input);\n      const oldDiag = getSymbolAccessibilityDiagnostic;\n      if (canProdiceDiagnostic) {\n        getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(input);\n      }\n      const previousNeedsDeclare = needsDeclare;\n      switch (input.kind) {\n        case 262: {\n          needsDeclare = false;\n          const clean2 = cleanup(factory2.updateTypeAliasDeclaration(input, ensureModifiers(input), input.name, visitNodes2(input.typeParameters, visitDeclarationSubtree, isTypeParameterDeclaration), Debug.checkDefined(visitNode(input.type, visitDeclarationSubtree, isTypeNode))));\n          needsDeclare = previousNeedsDeclare;\n          return clean2;\n        }\n        case 261: {\n          return cleanup(factory2.updateInterfaceDeclaration(input, ensureModifiers(input), input.name, ensureTypeParams(input, input.typeParameters), transformHeritageClauses(input.heritageClauses), visitNodes2(input.members, visitDeclarationSubtree, isTypeElement)));\n        }\n        case 259: {\n          const clean2 = cleanup(factory2.updateFunctionDeclaration(input, ensureModifiers(input), void 0, input.name, ensureTypeParams(input, input.typeParameters), updateParamsList(input, input.parameters), ensureType(input, input.type), void 0));\n          if (clean2 && resolver.isExpandoFunctionDeclaration(input) && shouldEmitFunctionProperties(input)) {\n            const props = resolver.getPropertiesOfContainerFunction(input);\n            const fakespace = parseNodeFactory.createModuleDeclaration(void 0, clean2.name || factory2.createIdentifier(\"_default\"), factory2.createModuleBlock([]), 16);\n            setParent(fakespace, enclosingDeclaration);\n            fakespace.locals = createSymbolTable(props);\n            fakespace.symbol = props[0].parent;\n            const exportMappings = [];\n            let declarations = mapDefined(props, (p) => {\n              if (!p.valueDeclaration || !isPropertyAccessExpression(p.valueDeclaration)) {\n                return void 0;\n              }\n              getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(p.valueDeclaration);\n              const type = resolver.createTypeOfDeclaration(p.valueDeclaration, fakespace, declarationEmitNodeBuilderFlags, symbolTracker);\n              getSymbolAccessibilityDiagnostic = oldDiag;\n              const nameStr = unescapeLeadingUnderscores(p.escapedName);\n              const isNonContextualKeywordName = isStringANonContextualKeyword(nameStr);\n              const name = isNonContextualKeywordName ? factory2.getGeneratedNameForNode(p.valueDeclaration) : factory2.createIdentifier(nameStr);\n              if (isNonContextualKeywordName) {\n                exportMappings.push([name, nameStr]);\n              }\n              const varDecl = factory2.createVariableDeclaration(name, void 0, type, void 0);\n              return factory2.createVariableStatement(isNonContextualKeywordName ? void 0 : [factory2.createToken(93)], factory2.createVariableDeclarationList([varDecl]));\n            });\n            if (!exportMappings.length) {\n              declarations = mapDefined(declarations, (declaration) => factory2.updateModifiers(declaration, 0));\n            } else {\n              declarations.push(factory2.createExportDeclaration(void 0, false, factory2.createNamedExports(map(exportMappings, ([gen, exp]) => {\n                return factory2.createExportSpecifier(false, gen, exp);\n              }))));\n            }\n            const namespaceDecl = factory2.createModuleDeclaration(ensureModifiers(input), input.name, factory2.createModuleBlock(declarations), 16);\n            if (!hasEffectiveModifier(clean2, 1024)) {\n              return [clean2, namespaceDecl];\n            }\n            const modifiers = factory2.createModifiersFromModifierFlags(getEffectiveModifierFlags(clean2) & ~1025 | 2);\n            const cleanDeclaration = factory2.updateFunctionDeclaration(clean2, modifiers, void 0, clean2.name, clean2.typeParameters, clean2.parameters, clean2.type, void 0);\n            const namespaceDeclaration = factory2.updateModuleDeclaration(namespaceDecl, modifiers, namespaceDecl.name, namespaceDecl.body);\n            const exportDefaultDeclaration = factory2.createExportAssignment(void 0, false, namespaceDecl.name);\n            if (isSourceFile(input.parent)) {\n              resultHasExternalModuleIndicator = true;\n            }\n            resultHasScopeMarker = true;\n            return [cleanDeclaration, namespaceDeclaration, exportDefaultDeclaration];\n          } else {\n            return clean2;\n          }\n        }\n        case 264: {\n          needsDeclare = false;\n          const inner = input.body;\n          if (inner && inner.kind === 265) {\n            const oldNeedsScopeFix = needsScopeFixMarker;\n            const oldHasScopeFix = resultHasScopeMarker;\n            resultHasScopeMarker = false;\n            needsScopeFixMarker = false;\n            const statements = visitNodes2(inner.statements, visitDeclarationStatements, isStatement);\n            let lateStatements = transformAndReplaceLatePaintedStatements(statements);\n            if (input.flags & 16777216) {\n              needsScopeFixMarker = false;\n            }\n            if (!isGlobalScopeAugmentation(input) && !hasScopeMarker2(lateStatements) && !resultHasScopeMarker) {\n              if (needsScopeFixMarker) {\n                lateStatements = factory2.createNodeArray([...lateStatements, createEmptyExports(factory2)]);\n              } else {\n                lateStatements = visitNodes2(lateStatements, stripExportModifiers, isStatement);\n              }\n            }\n            const body = factory2.updateModuleBlock(inner, lateStatements);\n            needsDeclare = previousNeedsDeclare;\n            needsScopeFixMarker = oldNeedsScopeFix;\n            resultHasScopeMarker = oldHasScopeFix;\n            const mods = ensureModifiers(input);\n            return cleanup(factory2.updateModuleDeclaration(input, mods, isExternalModuleAugmentation(input) ? rewriteModuleSpecifier(input, input.name) : input.name, body));\n          } else {\n            needsDeclare = previousNeedsDeclare;\n            const mods = ensureModifiers(input);\n            needsDeclare = false;\n            visitNode(inner, visitDeclarationStatements);\n            const id = getOriginalNodeId(inner);\n            const body = lateStatementReplacementMap.get(id);\n            lateStatementReplacementMap.delete(id);\n            return cleanup(factory2.updateModuleDeclaration(input, mods, input.name, body));\n          }\n        }\n        case 260: {\n          errorNameNode = input.name;\n          errorFallbackNode = input;\n          const modifiers = factory2.createNodeArray(ensureModifiers(input));\n          const typeParameters = ensureTypeParams(input, input.typeParameters);\n          const ctor = getFirstConstructorWithBody(input);\n          let parameterProperties;\n          if (ctor) {\n            const oldDiag2 = getSymbolAccessibilityDiagnostic;\n            parameterProperties = compact(flatMap(ctor.parameters, (param) => {\n              if (!hasSyntacticModifier(param, 16476) || shouldStripInternal(param))\n                return;\n              getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(param);\n              if (param.name.kind === 79) {\n                return preserveJsDoc(factory2.createPropertyDeclaration(ensureModifiers(param), param.name, param.questionToken, ensureType(param, param.type), ensureNoInitializer(param)), param);\n              } else {\n                return walkBindingPattern(param.name);\n              }\n              function walkBindingPattern(pattern) {\n                let elems;\n                for (const elem of pattern.elements) {\n                  if (isOmittedExpression(elem))\n                    continue;\n                  if (isBindingPattern(elem.name)) {\n                    elems = concatenate(elems, walkBindingPattern(elem.name));\n                  }\n                  elems = elems || [];\n                  elems.push(factory2.createPropertyDeclaration(ensureModifiers(param), elem.name, void 0, ensureType(elem, void 0), void 0));\n                }\n                return elems;\n              }\n            }));\n            getSymbolAccessibilityDiagnostic = oldDiag2;\n          }\n          const hasPrivateIdentifier = some(input.members, (member) => !!member.name && isPrivateIdentifier(member.name));\n          const privateIdentifier = hasPrivateIdentifier ? [\n            factory2.createPropertyDeclaration(void 0, factory2.createPrivateIdentifier(\"#private\"), void 0, void 0, void 0)\n          ] : void 0;\n          const memberNodes = concatenate(concatenate(privateIdentifier, parameterProperties), visitNodes2(input.members, visitDeclarationSubtree, isClassElement));\n          const members = factory2.createNodeArray(memberNodes);\n          const extendsClause = getEffectiveBaseTypeNode(input);\n          if (extendsClause && !isEntityNameExpression(extendsClause.expression) && extendsClause.expression.kind !== 104) {\n            const oldId = input.name ? unescapeLeadingUnderscores(input.name.escapedText) : \"default\";\n            const newId = factory2.createUniqueName(`${oldId}_base`, 16);\n            getSymbolAccessibilityDiagnostic = () => ({\n              diagnosticMessage: Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,\n              errorNode: extendsClause,\n              typeName: input.name\n            });\n            const varDecl = factory2.createVariableDeclaration(newId, void 0, resolver.createTypeOfExpression(extendsClause.expression, input, declarationEmitNodeBuilderFlags, symbolTracker), void 0);\n            const statement = factory2.createVariableStatement(needsDeclare ? [factory2.createModifier(136)] : [], factory2.createVariableDeclarationList([varDecl], 2));\n            const heritageClauses = factory2.createNodeArray(map(input.heritageClauses, (clause) => {\n              if (clause.token === 94) {\n                const oldDiag2 = getSymbolAccessibilityDiagnostic;\n                getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(clause.types[0]);\n                const newClause = factory2.updateHeritageClause(clause, map(clause.types, (t) => factory2.updateExpressionWithTypeArguments(t, newId, visitNodes2(t.typeArguments, visitDeclarationSubtree, isTypeNode))));\n                getSymbolAccessibilityDiagnostic = oldDiag2;\n                return newClause;\n              }\n              return factory2.updateHeritageClause(clause, visitNodes2(factory2.createNodeArray(filter(clause.types, (t) => isEntityNameExpression(t.expression) || t.expression.kind === 104)), visitDeclarationSubtree, isExpressionWithTypeArguments));\n            }));\n            return [statement, cleanup(factory2.updateClassDeclaration(input, modifiers, input.name, typeParameters, heritageClauses, members))];\n          } else {\n            const heritageClauses = transformHeritageClauses(input.heritageClauses);\n            return cleanup(factory2.updateClassDeclaration(input, modifiers, input.name, typeParameters, heritageClauses, members));\n          }\n        }\n        case 240: {\n          return cleanup(transformVariableStatement(input));\n        }\n        case 263: {\n          return cleanup(factory2.updateEnumDeclaration(input, factory2.createNodeArray(ensureModifiers(input)), input.name, factory2.createNodeArray(mapDefined(input.members, (m) => {\n            if (shouldStripInternal(m))\n              return;\n            const constValue = resolver.getConstantValue(m);\n            return preserveJsDoc(factory2.updateEnumMember(m, m.name, constValue !== void 0 ? typeof constValue === \"string\" ? factory2.createStringLiteral(constValue) : factory2.createNumericLiteral(constValue) : void 0), m);\n          }))));\n        }\n      }\n      return Debug.assertNever(input, `Unhandled top-level node in declaration emit: ${Debug.formatSyntaxKind(input.kind)}`);\n      function cleanup(node) {\n        if (isEnclosingDeclaration(input)) {\n          enclosingDeclaration = previousEnclosingDeclaration;\n        }\n        if (canProdiceDiagnostic) {\n          getSymbolAccessibilityDiagnostic = oldDiag;\n        }\n        if (input.kind === 264) {\n          needsDeclare = previousNeedsDeclare;\n        }\n        if (node === input) {\n          return node;\n        }\n        errorFallbackNode = void 0;\n        errorNameNode = void 0;\n        return node && setOriginalNode(preserveJsDoc(node, input), input);\n      }\n    }\n    function transformVariableStatement(input) {\n      if (!forEach(input.declarationList.declarations, getBindingNameVisible))\n        return;\n      const nodes = visitNodes2(input.declarationList.declarations, visitDeclarationSubtree, isVariableDeclaration);\n      if (!length(nodes))\n        return;\n      return factory2.updateVariableStatement(input, factory2.createNodeArray(ensureModifiers(input)), factory2.updateVariableDeclarationList(input.declarationList, nodes));\n    }\n    function recreateBindingPattern(d) {\n      return flatten(mapDefined(d.elements, (e) => recreateBindingElement(e)));\n    }\n    function recreateBindingElement(e) {\n      if (e.kind === 229) {\n        return;\n      }\n      if (e.name) {\n        if (!getBindingNameVisible(e))\n          return;\n        if (isBindingPattern(e.name)) {\n          return recreateBindingPattern(e.name);\n        } else {\n          return factory2.createVariableDeclaration(e.name, void 0, ensureType(e, void 0), void 0);\n        }\n      }\n    }\n    function checkName(node) {\n      let oldDiag;\n      if (!suppressNewDiagnosticContexts) {\n        oldDiag = getSymbolAccessibilityDiagnostic;\n        getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNodeName(node);\n      }\n      errorNameNode = node.name;\n      Debug.assert(resolver.isLateBound(getParseTreeNode(node)));\n      const decl = node;\n      const entityName = decl.name.expression;\n      checkEntityNameVisibility(entityName, enclosingDeclaration);\n      if (!suppressNewDiagnosticContexts) {\n        getSymbolAccessibilityDiagnostic = oldDiag;\n      }\n      errorNameNode = void 0;\n    }\n    function shouldStripInternal(node) {\n      return !!stripInternal && !!node && isInternalDeclaration(node, currentSourceFile);\n    }\n    function isScopeMarker2(node) {\n      return isExportAssignment(node) || isExportDeclaration(node);\n    }\n    function hasScopeMarker2(statements) {\n      return some(statements, isScopeMarker2);\n    }\n    function ensureModifiers(node) {\n      const currentFlags = getEffectiveModifierFlags(node);\n      const newFlags = ensureModifierFlags(node);\n      if (currentFlags === newFlags) {\n        return visitArray(node.modifiers, (n) => tryCast(n, isModifier), isModifier);\n      }\n      return factory2.createModifiersFromModifierFlags(newFlags);\n    }\n    function ensureModifierFlags(node) {\n      let mask2 = 258047 ^ (4 | 512 | 16384);\n      let additions = needsDeclare && !isAlwaysType(node) ? 2 : 0;\n      const parentIsFile = node.parent.kind === 308;\n      if (!parentIsFile || isBundledEmit && parentIsFile && isExternalModule(node.parent)) {\n        mask2 ^= 2;\n        additions = 0;\n      }\n      return maskModifierFlags(node, mask2, additions);\n    }\n    function getTypeAnnotationFromAllAccessorDeclarations(node, accessors) {\n      let accessorType = getTypeAnnotationFromAccessor(node);\n      if (!accessorType && node !== accessors.firstAccessor) {\n        accessorType = getTypeAnnotationFromAccessor(accessors.firstAccessor);\n        getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(accessors.firstAccessor);\n      }\n      if (!accessorType && accessors.secondAccessor && node !== accessors.secondAccessor) {\n        accessorType = getTypeAnnotationFromAccessor(accessors.secondAccessor);\n        getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(accessors.secondAccessor);\n      }\n      return accessorType;\n    }\n    function transformHeritageClauses(nodes) {\n      return factory2.createNodeArray(filter(map(nodes, (clause) => factory2.updateHeritageClause(clause, visitNodes2(factory2.createNodeArray(filter(clause.types, (t) => {\n        return isEntityNameExpression(t.expression) || clause.token === 94 && t.expression.kind === 104;\n      })), visitDeclarationSubtree, isExpressionWithTypeArguments))), (clause) => clause.types && !!clause.types.length));\n    }\n  }\n  function isAlwaysType(node) {\n    if (node.kind === 261) {\n      return true;\n    }\n    return false;\n  }\n  function maskModifiers(node, modifierMask, modifierAdditions) {\n    return factory.createModifiersFromModifierFlags(maskModifierFlags(node, modifierMask, modifierAdditions));\n  }\n  function maskModifierFlags(node, modifierMask = 258047 ^ 4, modifierAdditions = 0) {\n    let flags = getEffectiveModifierFlags(node) & modifierMask | modifierAdditions;\n    if (flags & 1024 && !(flags & 1)) {\n      flags ^= 1;\n    }\n    if (flags & 1024 && flags & 2) {\n      flags ^= 2;\n    }\n    return flags;\n  }\n  function getTypeAnnotationFromAccessor(accessor) {\n    if (accessor) {\n      return accessor.kind === 174 ? accessor.type : accessor.parameters.length > 0 ? accessor.parameters[0].type : void 0;\n    }\n  }\n  function canHaveLiteralInitializer(node) {\n    switch (node.kind) {\n      case 169:\n      case 168:\n        return !hasEffectiveModifier(node, 8);\n      case 166:\n      case 257:\n        return true;\n    }\n    return false;\n  }\n  function isPreservedDeclarationStatement(node) {\n    switch (node.kind) {\n      case 259:\n      case 264:\n      case 268:\n      case 261:\n      case 260:\n      case 262:\n      case 263:\n      case 240:\n      case 269:\n      case 275:\n      case 274:\n        return true;\n    }\n    return false;\n  }\n  function isProcessedComponent(node) {\n    switch (node.kind) {\n      case 177:\n      case 173:\n      case 171:\n      case 174:\n      case 175:\n      case 169:\n      case 168:\n      case 170:\n      case 176:\n      case 178:\n      case 257:\n      case 165:\n      case 230:\n      case 180:\n      case 191:\n      case 181:\n      case 182:\n      case 202:\n        return true;\n    }\n    return false;\n  }\n  var declarationEmitNodeBuilderFlags;\n  var init_declarations = __esm({\n    \"src/compiler/transformers/declarations.ts\"() {\n      \"use strict\";\n      init_ts2();\n      init_ts_moduleSpecifiers();\n      declarationEmitNodeBuilderFlags = 1024 | 2048 | 4096 | 8 | 524288 | 4 | 1;\n    }\n  });\n  function getModuleTransformer(moduleKind) {\n    switch (moduleKind) {\n      case 99:\n      case 7:\n      case 6:\n      case 5:\n        return transformECMAScriptModule;\n      case 4:\n        return transformSystemModule;\n      case 100:\n      case 199:\n        return transformNodeModule;\n      default:\n        return transformModule;\n    }\n  }\n  function getTransformers(compilerOptions, customTransformers, emitOnly) {\n    return {\n      scriptTransformers: getScriptTransformers(compilerOptions, customTransformers, emitOnly),\n      declarationTransformers: getDeclarationTransformers(customTransformers)\n    };\n  }\n  function getScriptTransformers(compilerOptions, customTransformers, emitOnly) {\n    if (emitOnly)\n      return emptyArray;\n    const languageVersion = getEmitScriptTarget(compilerOptions);\n    const moduleKind = getEmitModuleKind(compilerOptions);\n    const useDefineForClassFields = getUseDefineForClassFields(compilerOptions);\n    const transformers = [];\n    addRange(transformers, customTransformers && map(customTransformers.before, wrapScriptTransformerFactory));\n    transformers.push(transformTypeScript);\n    if (compilerOptions.experimentalDecorators) {\n      transformers.push(transformLegacyDecorators);\n    } else if (languageVersion < 99 || !useDefineForClassFields) {\n      transformers.push(transformESDecorators);\n    }\n    transformers.push(transformClassFields);\n    if (getJSXTransformEnabled(compilerOptions)) {\n      transformers.push(transformJsx);\n    }\n    if (languageVersion < 99) {\n      transformers.push(transformESNext);\n    }\n    if (languageVersion < 8) {\n      transformers.push(transformES2021);\n    }\n    if (languageVersion < 7) {\n      transformers.push(transformES2020);\n    }\n    if (languageVersion < 6) {\n      transformers.push(transformES2019);\n    }\n    if (languageVersion < 5) {\n      transformers.push(transformES2018);\n    }\n    if (languageVersion < 4) {\n      transformers.push(transformES2017);\n    }\n    if (languageVersion < 3) {\n      transformers.push(transformES2016);\n    }\n    if (languageVersion < 2) {\n      transformers.push(transformES2015);\n      transformers.push(transformGenerators);\n    }\n    transformers.push(getModuleTransformer(moduleKind));\n    if (languageVersion < 1) {\n      transformers.push(transformES5);\n    }\n    addRange(transformers, customTransformers && map(customTransformers.after, wrapScriptTransformerFactory));\n    return transformers;\n  }\n  function getDeclarationTransformers(customTransformers) {\n    const transformers = [];\n    transformers.push(transformDeclarations);\n    addRange(transformers, customTransformers && map(customTransformers.afterDeclarations, wrapDeclarationTransformerFactory));\n    return transformers;\n  }\n  function wrapCustomTransformer(transformer) {\n    return (node) => isBundle(node) ? transformer.transformBundle(node) : transformer.transformSourceFile(node);\n  }\n  function wrapCustomTransformerFactory(transformer, handleDefault) {\n    return (context) => {\n      const customTransformer = transformer(context);\n      return typeof customTransformer === \"function\" ? handleDefault(context, customTransformer) : wrapCustomTransformer(customTransformer);\n    };\n  }\n  function wrapScriptTransformerFactory(transformer) {\n    return wrapCustomTransformerFactory(transformer, chainBundle);\n  }\n  function wrapDeclarationTransformerFactory(transformer) {\n    return wrapCustomTransformerFactory(transformer, (_, node) => node);\n  }\n  function noEmitSubstitution(_hint, node) {\n    return node;\n  }\n  function noEmitNotification(hint, node, callback) {\n    callback(hint, node);\n  }\n  function transformNodes(resolver, host, factory2, options, nodes, transformers, allowDtsFiles) {\n    var _a2, _b;\n    const enabledSyntaxKindFeatures = new Array(361);\n    let lexicalEnvironmentVariableDeclarations;\n    let lexicalEnvironmentFunctionDeclarations;\n    let lexicalEnvironmentStatements;\n    let lexicalEnvironmentFlags = 0;\n    let lexicalEnvironmentVariableDeclarationsStack = [];\n    let lexicalEnvironmentFunctionDeclarationsStack = [];\n    let lexicalEnvironmentStatementsStack = [];\n    let lexicalEnvironmentFlagsStack = [];\n    let lexicalEnvironmentStackOffset = 0;\n    let lexicalEnvironmentSuspended = false;\n    let blockScopedVariableDeclarationsStack = [];\n    let blockScopeStackOffset = 0;\n    let blockScopedVariableDeclarations;\n    let emitHelpers;\n    let onSubstituteNode = noEmitSubstitution;\n    let onEmitNode = noEmitNotification;\n    let state = 0;\n    const diagnostics = [];\n    const context = {\n      factory: factory2,\n      getCompilerOptions: () => options,\n      getEmitResolver: () => resolver,\n      getEmitHost: () => host,\n      getEmitHelperFactory: memoize(() => createEmitHelperFactory(context)),\n      startLexicalEnvironment,\n      suspendLexicalEnvironment,\n      resumeLexicalEnvironment,\n      endLexicalEnvironment,\n      setLexicalEnvironmentFlags,\n      getLexicalEnvironmentFlags,\n      hoistVariableDeclaration,\n      hoistFunctionDeclaration,\n      addInitializationStatement,\n      startBlockScope,\n      endBlockScope,\n      addBlockScopedVariable,\n      requestEmitHelper,\n      readEmitHelpers,\n      enableSubstitution,\n      enableEmitNotification,\n      isSubstitutionEnabled,\n      isEmitNotificationEnabled,\n      get onSubstituteNode() {\n        return onSubstituteNode;\n      },\n      set onSubstituteNode(value) {\n        Debug.assert(state < 1, \"Cannot modify transformation hooks after initialization has completed.\");\n        Debug.assert(value !== void 0, \"Value must not be 'undefined'\");\n        onSubstituteNode = value;\n      },\n      get onEmitNode() {\n        return onEmitNode;\n      },\n      set onEmitNode(value) {\n        Debug.assert(state < 1, \"Cannot modify transformation hooks after initialization has completed.\");\n        Debug.assert(value !== void 0, \"Value must not be 'undefined'\");\n        onEmitNode = value;\n      },\n      addDiagnostic(diag2) {\n        diagnostics.push(diag2);\n      }\n    };\n    for (const node of nodes) {\n      disposeEmitNodes(getSourceFileOfNode(getParseTreeNode(node)));\n    }\n    mark(\"beforeTransform\");\n    const transformersWithContext = transformers.map((t) => t(context));\n    const transformation = (node) => {\n      for (const transform2 of transformersWithContext) {\n        node = transform2(node);\n      }\n      return node;\n    };\n    state = 1;\n    const transformed = [];\n    for (const node of nodes) {\n      (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Emit, \"transformNodes\", node.kind === 308 ? { path: node.path } : { kind: node.kind, pos: node.pos, end: node.end });\n      transformed.push((allowDtsFiles ? transformation : transformRoot)(node));\n      (_b = tracing) == null ? void 0 : _b.pop();\n    }\n    state = 2;\n    mark(\"afterTransform\");\n    measure(\"transformTime\", \"beforeTransform\", \"afterTransform\");\n    return {\n      transformed,\n      substituteNode,\n      emitNodeWithNotification,\n      isEmitNotificationEnabled,\n      dispose,\n      diagnostics\n    };\n    function transformRoot(node) {\n      return node && (!isSourceFile(node) || !node.isDeclarationFile) ? transformation(node) : node;\n    }\n    function enableSubstitution(kind) {\n      Debug.assert(state < 2, \"Cannot modify the transformation context after transformation has completed.\");\n      enabledSyntaxKindFeatures[kind] |= 1;\n    }\n    function isSubstitutionEnabled(node) {\n      return (enabledSyntaxKindFeatures[node.kind] & 1) !== 0 && (getEmitFlags(node) & 8) === 0;\n    }\n    function substituteNode(hint, node) {\n      Debug.assert(state < 3, \"Cannot substitute a node after the result is disposed.\");\n      return node && isSubstitutionEnabled(node) && onSubstituteNode(hint, node) || node;\n    }\n    function enableEmitNotification(kind) {\n      Debug.assert(state < 2, \"Cannot modify the transformation context after transformation has completed.\");\n      enabledSyntaxKindFeatures[kind] |= 2;\n    }\n    function isEmitNotificationEnabled(node) {\n      return (enabledSyntaxKindFeatures[node.kind] & 2) !== 0 || (getEmitFlags(node) & 4) !== 0;\n    }\n    function emitNodeWithNotification(hint, node, emitCallback) {\n      Debug.assert(state < 3, \"Cannot invoke TransformationResult callbacks after the result is disposed.\");\n      if (node) {\n        if (isEmitNotificationEnabled(node)) {\n          onEmitNode(hint, node, emitCallback);\n        } else {\n          emitCallback(hint, node);\n        }\n      }\n    }\n    function hoistVariableDeclaration(name) {\n      Debug.assert(state > 0, \"Cannot modify the lexical environment during initialization.\");\n      Debug.assert(state < 2, \"Cannot modify the lexical environment after transformation has completed.\");\n      const decl = setEmitFlags(factory2.createVariableDeclaration(name), 128);\n      if (!lexicalEnvironmentVariableDeclarations) {\n        lexicalEnvironmentVariableDeclarations = [decl];\n      } else {\n        lexicalEnvironmentVariableDeclarations.push(decl);\n      }\n      if (lexicalEnvironmentFlags & 1) {\n        lexicalEnvironmentFlags |= 2;\n      }\n    }\n    function hoistFunctionDeclaration(func) {\n      Debug.assert(state > 0, \"Cannot modify the lexical environment during initialization.\");\n      Debug.assert(state < 2, \"Cannot modify the lexical environment after transformation has completed.\");\n      setEmitFlags(func, 2097152);\n      if (!lexicalEnvironmentFunctionDeclarations) {\n        lexicalEnvironmentFunctionDeclarations = [func];\n      } else {\n        lexicalEnvironmentFunctionDeclarations.push(func);\n      }\n    }\n    function addInitializationStatement(node) {\n      Debug.assert(state > 0, \"Cannot modify the lexical environment during initialization.\");\n      Debug.assert(state < 2, \"Cannot modify the lexical environment after transformation has completed.\");\n      setEmitFlags(node, 2097152);\n      if (!lexicalEnvironmentStatements) {\n        lexicalEnvironmentStatements = [node];\n      } else {\n        lexicalEnvironmentStatements.push(node);\n      }\n    }\n    function startLexicalEnvironment() {\n      Debug.assert(state > 0, \"Cannot modify the lexical environment during initialization.\");\n      Debug.assert(state < 2, \"Cannot modify the lexical environment after transformation has completed.\");\n      Debug.assert(!lexicalEnvironmentSuspended, \"Lexical environment is suspended.\");\n      lexicalEnvironmentVariableDeclarationsStack[lexicalEnvironmentStackOffset] = lexicalEnvironmentVariableDeclarations;\n      lexicalEnvironmentFunctionDeclarationsStack[lexicalEnvironmentStackOffset] = lexicalEnvironmentFunctionDeclarations;\n      lexicalEnvironmentStatementsStack[lexicalEnvironmentStackOffset] = lexicalEnvironmentStatements;\n      lexicalEnvironmentFlagsStack[lexicalEnvironmentStackOffset] = lexicalEnvironmentFlags;\n      lexicalEnvironmentStackOffset++;\n      lexicalEnvironmentVariableDeclarations = void 0;\n      lexicalEnvironmentFunctionDeclarations = void 0;\n      lexicalEnvironmentStatements = void 0;\n      lexicalEnvironmentFlags = 0;\n    }\n    function suspendLexicalEnvironment() {\n      Debug.assert(state > 0, \"Cannot modify the lexical environment during initialization.\");\n      Debug.assert(state < 2, \"Cannot modify the lexical environment after transformation has completed.\");\n      Debug.assert(!lexicalEnvironmentSuspended, \"Lexical environment is already suspended.\");\n      lexicalEnvironmentSuspended = true;\n    }\n    function resumeLexicalEnvironment() {\n      Debug.assert(state > 0, \"Cannot modify the lexical environment during initialization.\");\n      Debug.assert(state < 2, \"Cannot modify the lexical environment after transformation has completed.\");\n      Debug.assert(lexicalEnvironmentSuspended, \"Lexical environment is not suspended.\");\n      lexicalEnvironmentSuspended = false;\n    }\n    function endLexicalEnvironment() {\n      Debug.assert(state > 0, \"Cannot modify the lexical environment during initialization.\");\n      Debug.assert(state < 2, \"Cannot modify the lexical environment after transformation has completed.\");\n      Debug.assert(!lexicalEnvironmentSuspended, \"Lexical environment is suspended.\");\n      let statements;\n      if (lexicalEnvironmentVariableDeclarations || lexicalEnvironmentFunctionDeclarations || lexicalEnvironmentStatements) {\n        if (lexicalEnvironmentFunctionDeclarations) {\n          statements = [...lexicalEnvironmentFunctionDeclarations];\n        }\n        if (lexicalEnvironmentVariableDeclarations) {\n          const statement = factory2.createVariableStatement(void 0, factory2.createVariableDeclarationList(lexicalEnvironmentVariableDeclarations));\n          setEmitFlags(statement, 2097152);\n          if (!statements) {\n            statements = [statement];\n          } else {\n            statements.push(statement);\n          }\n        }\n        if (lexicalEnvironmentStatements) {\n          if (!statements) {\n            statements = [...lexicalEnvironmentStatements];\n          } else {\n            statements = [...statements, ...lexicalEnvironmentStatements];\n          }\n        }\n      }\n      lexicalEnvironmentStackOffset--;\n      lexicalEnvironmentVariableDeclarations = lexicalEnvironmentVariableDeclarationsStack[lexicalEnvironmentStackOffset];\n      lexicalEnvironmentFunctionDeclarations = lexicalEnvironmentFunctionDeclarationsStack[lexicalEnvironmentStackOffset];\n      lexicalEnvironmentStatements = lexicalEnvironmentStatementsStack[lexicalEnvironmentStackOffset];\n      lexicalEnvironmentFlags = lexicalEnvironmentFlagsStack[lexicalEnvironmentStackOffset];\n      if (lexicalEnvironmentStackOffset === 0) {\n        lexicalEnvironmentVariableDeclarationsStack = [];\n        lexicalEnvironmentFunctionDeclarationsStack = [];\n        lexicalEnvironmentStatementsStack = [];\n        lexicalEnvironmentFlagsStack = [];\n      }\n      return statements;\n    }\n    function setLexicalEnvironmentFlags(flags, value) {\n      lexicalEnvironmentFlags = value ? lexicalEnvironmentFlags | flags : lexicalEnvironmentFlags & ~flags;\n    }\n    function getLexicalEnvironmentFlags() {\n      return lexicalEnvironmentFlags;\n    }\n    function startBlockScope() {\n      Debug.assert(state > 0, \"Cannot start a block scope during initialization.\");\n      Debug.assert(state < 2, \"Cannot start a block scope after transformation has completed.\");\n      blockScopedVariableDeclarationsStack[blockScopeStackOffset] = blockScopedVariableDeclarations;\n      blockScopeStackOffset++;\n      blockScopedVariableDeclarations = void 0;\n    }\n    function endBlockScope() {\n      Debug.assert(state > 0, \"Cannot end a block scope during initialization.\");\n      Debug.assert(state < 2, \"Cannot end a block scope after transformation has completed.\");\n      const statements = some(blockScopedVariableDeclarations) ? [\n        factory2.createVariableStatement(void 0, factory2.createVariableDeclarationList(blockScopedVariableDeclarations.map((identifier) => factory2.createVariableDeclaration(identifier)), 1))\n      ] : void 0;\n      blockScopeStackOffset--;\n      blockScopedVariableDeclarations = blockScopedVariableDeclarationsStack[blockScopeStackOffset];\n      if (blockScopeStackOffset === 0) {\n        blockScopedVariableDeclarationsStack = [];\n      }\n      return statements;\n    }\n    function addBlockScopedVariable(name) {\n      Debug.assert(blockScopeStackOffset > 0, \"Cannot add a block scoped variable outside of an iteration body.\");\n      (blockScopedVariableDeclarations || (blockScopedVariableDeclarations = [])).push(name);\n    }\n    function requestEmitHelper(helper) {\n      Debug.assert(state > 0, \"Cannot modify the transformation context during initialization.\");\n      Debug.assert(state < 2, \"Cannot modify the transformation context after transformation has completed.\");\n      Debug.assert(!helper.scoped, \"Cannot request a scoped emit helper.\");\n      if (helper.dependencies) {\n        for (const h of helper.dependencies) {\n          requestEmitHelper(h);\n        }\n      }\n      emitHelpers = append(emitHelpers, helper);\n    }\n    function readEmitHelpers() {\n      Debug.assert(state > 0, \"Cannot modify the transformation context during initialization.\");\n      Debug.assert(state < 2, \"Cannot modify the transformation context after transformation has completed.\");\n      const helpers = emitHelpers;\n      emitHelpers = void 0;\n      return helpers;\n    }\n    function dispose() {\n      if (state < 3) {\n        for (const node of nodes) {\n          disposeEmitNodes(getSourceFileOfNode(getParseTreeNode(node)));\n        }\n        lexicalEnvironmentVariableDeclarations = void 0;\n        lexicalEnvironmentVariableDeclarationsStack = void 0;\n        lexicalEnvironmentFunctionDeclarations = void 0;\n        lexicalEnvironmentFunctionDeclarationsStack = void 0;\n        onSubstituteNode = void 0;\n        onEmitNode = void 0;\n        emitHelpers = void 0;\n        state = 3;\n      }\n    }\n  }\n  var noTransformers, nullTransformationContext;\n  var init_transformer = __esm({\n    \"src/compiler/transformer.ts\"() {\n      \"use strict\";\n      init_ts2();\n      init_ts_performance();\n      noTransformers = { scriptTransformers: emptyArray, declarationTransformers: emptyArray };\n      nullTransformationContext = {\n        factory,\n        getCompilerOptions: () => ({}),\n        getEmitResolver: notImplemented,\n        getEmitHost: notImplemented,\n        getEmitHelperFactory: notImplemented,\n        startLexicalEnvironment: noop,\n        resumeLexicalEnvironment: noop,\n        suspendLexicalEnvironment: noop,\n        endLexicalEnvironment: returnUndefined,\n        setLexicalEnvironmentFlags: noop,\n        getLexicalEnvironmentFlags: () => 0,\n        hoistVariableDeclaration: noop,\n        hoistFunctionDeclaration: noop,\n        addInitializationStatement: noop,\n        startBlockScope: noop,\n        endBlockScope: returnUndefined,\n        addBlockScopedVariable: noop,\n        requestEmitHelper: noop,\n        readEmitHelpers: notImplemented,\n        enableSubstitution: noop,\n        enableEmitNotification: noop,\n        isSubstitutionEnabled: notImplemented,\n        isEmitNotificationEnabled: notImplemented,\n        onSubstituteNode: noEmitSubstitution,\n        onEmitNode: noEmitNotification,\n        addDiagnostic: noop\n      };\n    }\n  });\n  function isBuildInfoFile(file) {\n    return fileExtensionIs(file, \".tsbuildinfo\");\n  }\n  function forEachEmittedFile(host, action, sourceFilesOrTargetSourceFile, forceDtsEmit = false, onlyBuildInfo, includeBuildInfo) {\n    const sourceFiles = isArray(sourceFilesOrTargetSourceFile) ? sourceFilesOrTargetSourceFile : getSourceFilesToEmit(host, sourceFilesOrTargetSourceFile, forceDtsEmit);\n    const options = host.getCompilerOptions();\n    if (outFile(options)) {\n      const prepends = host.getPrependNodes();\n      if (sourceFiles.length || prepends.length) {\n        const bundle = factory.createBundle(sourceFiles, prepends);\n        const result = action(getOutputPathsFor(bundle, host, forceDtsEmit), bundle);\n        if (result) {\n          return result;\n        }\n      }\n    } else {\n      if (!onlyBuildInfo) {\n        for (const sourceFile of sourceFiles) {\n          const result = action(getOutputPathsFor(sourceFile, host, forceDtsEmit), sourceFile);\n          if (result) {\n            return result;\n          }\n        }\n      }\n      if (includeBuildInfo) {\n        const buildInfoPath = getTsBuildInfoEmitOutputFilePath(options);\n        if (buildInfoPath)\n          return action({ buildInfoPath }, void 0);\n      }\n    }\n  }\n  function getTsBuildInfoEmitOutputFilePath(options) {\n    const configFile = options.configFilePath;\n    if (!isIncrementalCompilation(options))\n      return void 0;\n    if (options.tsBuildInfoFile)\n      return options.tsBuildInfoFile;\n    const outPath = outFile(options);\n    let buildInfoExtensionLess;\n    if (outPath) {\n      buildInfoExtensionLess = removeFileExtension(outPath);\n    } else {\n      if (!configFile)\n        return void 0;\n      const configFileExtensionLess = removeFileExtension(configFile);\n      buildInfoExtensionLess = options.outDir ? options.rootDir ? resolvePath(options.outDir, getRelativePathFromDirectory(options.rootDir, configFileExtensionLess, true)) : combinePaths(options.outDir, getBaseFileName(configFileExtensionLess)) : configFileExtensionLess;\n    }\n    return buildInfoExtensionLess + \".tsbuildinfo\";\n  }\n  function getOutputPathsForBundle(options, forceDtsPaths) {\n    const outPath = outFile(options);\n    const jsFilePath = options.emitDeclarationOnly ? void 0 : outPath;\n    const sourceMapFilePath = jsFilePath && getSourceMapFilePath(jsFilePath, options);\n    const declarationFilePath = forceDtsPaths || getEmitDeclarations(options) ? removeFileExtension(outPath) + \".d.ts\" : void 0;\n    const declarationMapPath = declarationFilePath && getAreDeclarationMapsEnabled(options) ? declarationFilePath + \".map\" : void 0;\n    const buildInfoPath = getTsBuildInfoEmitOutputFilePath(options);\n    return { jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath, buildInfoPath };\n  }\n  function getOutputPathsFor(sourceFile, host, forceDtsPaths) {\n    const options = host.getCompilerOptions();\n    if (sourceFile.kind === 309) {\n      return getOutputPathsForBundle(options, forceDtsPaths);\n    } else {\n      const ownOutputFilePath = getOwnEmitOutputFilePath(sourceFile.fileName, host, getOutputExtension(sourceFile.fileName, options));\n      const isJsonFile = isJsonSourceFile(sourceFile);\n      const isJsonEmittedToSameLocation = isJsonFile && comparePaths(sourceFile.fileName, ownOutputFilePath, host.getCurrentDirectory(), !host.useCaseSensitiveFileNames()) === 0;\n      const jsFilePath = options.emitDeclarationOnly || isJsonEmittedToSameLocation ? void 0 : ownOutputFilePath;\n      const sourceMapFilePath = !jsFilePath || isJsonSourceFile(sourceFile) ? void 0 : getSourceMapFilePath(jsFilePath, options);\n      const declarationFilePath = forceDtsPaths || getEmitDeclarations(options) && !isJsonFile ? getDeclarationEmitOutputFilePath(sourceFile.fileName, host) : void 0;\n      const declarationMapPath = declarationFilePath && getAreDeclarationMapsEnabled(options) ? declarationFilePath + \".map\" : void 0;\n      return { jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath, buildInfoPath: void 0 };\n    }\n  }\n  function getSourceMapFilePath(jsFilePath, options) {\n    return options.sourceMap && !options.inlineSourceMap ? jsFilePath + \".map\" : void 0;\n  }\n  function getOutputExtension(fileName, options) {\n    return fileExtensionIs(fileName, \".json\") ? \".json\" : options.jsx === 1 && fileExtensionIsOneOf(fileName, [\".jsx\", \".tsx\"]) ? \".jsx\" : fileExtensionIsOneOf(fileName, [\".mts\", \".mjs\"]) ? \".mjs\" : fileExtensionIsOneOf(fileName, [\".cts\", \".cjs\"]) ? \".cjs\" : \".js\";\n  }\n  function getOutputPathWithoutChangingExt(inputFileName, configFile, ignoreCase, outputDir, getCommonSourceDirectory2) {\n    return outputDir ? resolvePath(outputDir, getRelativePathFromDirectory(getCommonSourceDirectory2 ? getCommonSourceDirectory2() : getCommonSourceDirectoryOfConfig(configFile, ignoreCase), inputFileName, ignoreCase)) : inputFileName;\n  }\n  function getOutputDeclarationFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory2) {\n    return changeExtension(getOutputPathWithoutChangingExt(inputFileName, configFile, ignoreCase, configFile.options.declarationDir || configFile.options.outDir, getCommonSourceDirectory2), getDeclarationEmitExtensionForPath(inputFileName));\n  }\n  function getOutputJSFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory2) {\n    if (configFile.options.emitDeclarationOnly)\n      return void 0;\n    const isJsonFile = fileExtensionIs(inputFileName, \".json\");\n    const outputFileName = changeExtension(getOutputPathWithoutChangingExt(inputFileName, configFile, ignoreCase, configFile.options.outDir, getCommonSourceDirectory2), getOutputExtension(inputFileName, configFile.options));\n    return !isJsonFile || comparePaths(inputFileName, outputFileName, Debug.checkDefined(configFile.options.configFilePath), ignoreCase) !== 0 ? outputFileName : void 0;\n  }\n  function createAddOutput() {\n    let outputs;\n    return { addOutput, getOutputs };\n    function addOutput(path) {\n      if (path) {\n        (outputs || (outputs = [])).push(path);\n      }\n    }\n    function getOutputs() {\n      return outputs || emptyArray;\n    }\n  }\n  function getSingleOutputFileNames(configFile, addOutput) {\n    const { jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath, buildInfoPath } = getOutputPathsForBundle(configFile.options, false);\n    addOutput(jsFilePath);\n    addOutput(sourceMapFilePath);\n    addOutput(declarationFilePath);\n    addOutput(declarationMapPath);\n    addOutput(buildInfoPath);\n  }\n  function getOwnOutputFileNames(configFile, inputFileName, ignoreCase, addOutput, getCommonSourceDirectory2) {\n    if (isDeclarationFileName(inputFileName))\n      return;\n    const js = getOutputJSFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory2);\n    addOutput(js);\n    if (fileExtensionIs(inputFileName, \".json\"))\n      return;\n    if (js && configFile.options.sourceMap) {\n      addOutput(`${js}.map`);\n    }\n    if (getEmitDeclarations(configFile.options)) {\n      const dts = getOutputDeclarationFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory2);\n      addOutput(dts);\n      if (configFile.options.declarationMap) {\n        addOutput(`${dts}.map`);\n      }\n    }\n  }\n  function getCommonSourceDirectory(options, emittedFiles, currentDirectory, getCanonicalFileName, checkSourceFilesBelongToPath) {\n    let commonSourceDirectory;\n    if (options.rootDir) {\n      commonSourceDirectory = getNormalizedAbsolutePath(options.rootDir, currentDirectory);\n      checkSourceFilesBelongToPath == null ? void 0 : checkSourceFilesBelongToPath(options.rootDir);\n    } else if (options.composite && options.configFilePath) {\n      commonSourceDirectory = getDirectoryPath(normalizeSlashes(options.configFilePath));\n      checkSourceFilesBelongToPath == null ? void 0 : checkSourceFilesBelongToPath(commonSourceDirectory);\n    } else {\n      commonSourceDirectory = computeCommonSourceDirectoryOfFilenames(emittedFiles(), currentDirectory, getCanonicalFileName);\n    }\n    if (commonSourceDirectory && commonSourceDirectory[commonSourceDirectory.length - 1] !== directorySeparator) {\n      commonSourceDirectory += directorySeparator;\n    }\n    return commonSourceDirectory;\n  }\n  function getCommonSourceDirectoryOfConfig({ options, fileNames }, ignoreCase) {\n    return getCommonSourceDirectory(options, () => filter(fileNames, (file) => !(options.noEmitForJsFiles && fileExtensionIsOneOf(file, supportedJSExtensionsFlat)) && !isDeclarationFileName(file)), getDirectoryPath(normalizeSlashes(Debug.checkDefined(options.configFilePath))), createGetCanonicalFileName(!ignoreCase));\n  }\n  function getAllProjectOutputs(configFile, ignoreCase) {\n    const { addOutput, getOutputs } = createAddOutput();\n    if (outFile(configFile.options)) {\n      getSingleOutputFileNames(configFile, addOutput);\n    } else {\n      const getCommonSourceDirectory2 = memoize(() => getCommonSourceDirectoryOfConfig(configFile, ignoreCase));\n      for (const inputFileName of configFile.fileNames) {\n        getOwnOutputFileNames(configFile, inputFileName, ignoreCase, addOutput, getCommonSourceDirectory2);\n      }\n      addOutput(getTsBuildInfoEmitOutputFilePath(configFile.options));\n    }\n    return getOutputs();\n  }\n  function getOutputFileNames(commandLine, inputFileName, ignoreCase) {\n    inputFileName = normalizePath(inputFileName);\n    Debug.assert(contains(commandLine.fileNames, inputFileName), `Expected fileName to be present in command line`);\n    const { addOutput, getOutputs } = createAddOutput();\n    if (outFile(commandLine.options)) {\n      getSingleOutputFileNames(commandLine, addOutput);\n    } else {\n      getOwnOutputFileNames(commandLine, inputFileName, ignoreCase, addOutput);\n    }\n    return getOutputs();\n  }\n  function getFirstProjectOutput(configFile, ignoreCase) {\n    if (outFile(configFile.options)) {\n      const { jsFilePath, declarationFilePath } = getOutputPathsForBundle(configFile.options, false);\n      return Debug.checkDefined(jsFilePath || declarationFilePath, `project ${configFile.options.configFilePath} expected to have at least one output`);\n    }\n    const getCommonSourceDirectory2 = memoize(() => getCommonSourceDirectoryOfConfig(configFile, ignoreCase));\n    for (const inputFileName of configFile.fileNames) {\n      if (isDeclarationFileName(inputFileName))\n        continue;\n      const jsFilePath = getOutputJSFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory2);\n      if (jsFilePath)\n        return jsFilePath;\n      if (fileExtensionIs(inputFileName, \".json\"))\n        continue;\n      if (getEmitDeclarations(configFile.options)) {\n        return getOutputDeclarationFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory2);\n      }\n    }\n    const buildInfoPath = getTsBuildInfoEmitOutputFilePath(configFile.options);\n    if (buildInfoPath)\n      return buildInfoPath;\n    return Debug.fail(`project ${configFile.options.configFilePath} expected to have at least one output`);\n  }\n  function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, declarationTransformers }, emitOnly, onlyBuildInfo, forceDtsEmit) {\n    var compilerOptions = host.getCompilerOptions();\n    var sourceMapDataList = compilerOptions.sourceMap || compilerOptions.inlineSourceMap || getAreDeclarationMapsEnabled(compilerOptions) ? [] : void 0;\n    var emittedFilesList = compilerOptions.listEmittedFiles ? [] : void 0;\n    var emitterDiagnostics = createDiagnosticCollection();\n    var newLine = getNewLineCharacter(compilerOptions);\n    var writer = createTextWriter(newLine);\n    var { enter, exit } = createTimer(\"printTime\", \"beforePrint\", \"afterPrint\");\n    var bundleBuildInfo;\n    var emitSkipped = false;\n    enter();\n    forEachEmittedFile(host, emitSourceFileOrBundle, getSourceFilesToEmit(host, targetSourceFile, forceDtsEmit), forceDtsEmit, onlyBuildInfo, !targetSourceFile);\n    exit();\n    return {\n      emitSkipped,\n      diagnostics: emitterDiagnostics.getDiagnostics(),\n      emittedFiles: emittedFilesList,\n      sourceMaps: sourceMapDataList\n    };\n    function emitSourceFileOrBundle({ jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath, buildInfoPath }, sourceFileOrBundle) {\n      var _a2, _b, _c, _d, _e, _f;\n      let buildInfoDirectory;\n      if (buildInfoPath && sourceFileOrBundle && isBundle(sourceFileOrBundle)) {\n        buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory()));\n        bundleBuildInfo = {\n          commonSourceDirectory: relativeToBuildInfo(host.getCommonSourceDirectory()),\n          sourceFiles: sourceFileOrBundle.sourceFiles.map((file) => relativeToBuildInfo(getNormalizedAbsolutePath(file.fileName, host.getCurrentDirectory())))\n        };\n      }\n      (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Emit, \"emitJsFileOrBundle\", { jsFilePath });\n      emitJsFileOrBundle(sourceFileOrBundle, jsFilePath, sourceMapFilePath, relativeToBuildInfo);\n      (_b = tracing) == null ? void 0 : _b.pop();\n      (_c = tracing) == null ? void 0 : _c.push(tracing.Phase.Emit, \"emitDeclarationFileOrBundle\", { declarationFilePath });\n      emitDeclarationFileOrBundle(sourceFileOrBundle, declarationFilePath, declarationMapPath, relativeToBuildInfo);\n      (_d = tracing) == null ? void 0 : _d.pop();\n      (_e = tracing) == null ? void 0 : _e.push(tracing.Phase.Emit, \"emitBuildInfo\", { buildInfoPath });\n      emitBuildInfo(bundleBuildInfo, buildInfoPath);\n      (_f = tracing) == null ? void 0 : _f.pop();\n      if (!emitSkipped && emittedFilesList) {\n        if (!emitOnly) {\n          if (jsFilePath) {\n            emittedFilesList.push(jsFilePath);\n          }\n          if (sourceMapFilePath) {\n            emittedFilesList.push(sourceMapFilePath);\n          }\n          if (buildInfoPath) {\n            emittedFilesList.push(buildInfoPath);\n          }\n        }\n        if (emitOnly !== 0) {\n          if (declarationFilePath) {\n            emittedFilesList.push(declarationFilePath);\n          }\n          if (declarationMapPath) {\n            emittedFilesList.push(declarationMapPath);\n          }\n        }\n      }\n      function relativeToBuildInfo(path) {\n        return ensurePathIsNonModuleName(getRelativePathFromDirectory(buildInfoDirectory, path, host.getCanonicalFileName));\n      }\n    }\n    function emitBuildInfo(bundle, buildInfoPath) {\n      if (!buildInfoPath || targetSourceFile || emitSkipped)\n        return;\n      if (host.isEmitBlocked(buildInfoPath)) {\n        emitSkipped = true;\n        return;\n      }\n      const buildInfo = host.getBuildInfo(bundle) || createBuildInfo(void 0, bundle);\n      writeFile(host, emitterDiagnostics, buildInfoPath, getBuildInfoText(buildInfo), false, void 0, { buildInfo });\n    }\n    function emitJsFileOrBundle(sourceFileOrBundle, jsFilePath, sourceMapFilePath, relativeToBuildInfo) {\n      if (!sourceFileOrBundle || emitOnly || !jsFilePath) {\n        return;\n      }\n      if (host.isEmitBlocked(jsFilePath) || compilerOptions.noEmit) {\n        emitSkipped = true;\n        return;\n      }\n      const transform2 = transformNodes(resolver, host, factory, compilerOptions, [sourceFileOrBundle], scriptTransformers, false);\n      const printerOptions = {\n        removeComments: compilerOptions.removeComments,\n        newLine: compilerOptions.newLine,\n        noEmitHelpers: compilerOptions.noEmitHelpers,\n        module: compilerOptions.module,\n        target: compilerOptions.target,\n        sourceMap: compilerOptions.sourceMap,\n        inlineSourceMap: compilerOptions.inlineSourceMap,\n        inlineSources: compilerOptions.inlineSources,\n        extendedDiagnostics: compilerOptions.extendedDiagnostics,\n        writeBundleFileInfo: !!bundleBuildInfo,\n        relativeToBuildInfo\n      };\n      const printer = createPrinter(printerOptions, {\n        hasGlobalName: resolver.hasGlobalName,\n        onEmitNode: transform2.emitNodeWithNotification,\n        isEmitNotificationEnabled: transform2.isEmitNotificationEnabled,\n        substituteNode: transform2.substituteNode\n      });\n      Debug.assert(transform2.transformed.length === 1, \"Should only see one output from the transform\");\n      printSourceFileOrBundle(jsFilePath, sourceMapFilePath, transform2, printer, compilerOptions);\n      transform2.dispose();\n      if (bundleBuildInfo)\n        bundleBuildInfo.js = printer.bundleFileInfo;\n    }\n    function emitDeclarationFileOrBundle(sourceFileOrBundle, declarationFilePath, declarationMapPath, relativeToBuildInfo) {\n      if (!sourceFileOrBundle || emitOnly === 0)\n        return;\n      if (!declarationFilePath) {\n        if (emitOnly || compilerOptions.emitDeclarationOnly)\n          emitSkipped = true;\n        return;\n      }\n      const sourceFiles = isSourceFile(sourceFileOrBundle) ? [sourceFileOrBundle] : sourceFileOrBundle.sourceFiles;\n      const filesForEmit = forceDtsEmit ? sourceFiles : filter(sourceFiles, isSourceFileNotJson);\n      const inputListOrBundle = outFile(compilerOptions) ? [factory.createBundle(filesForEmit, !isSourceFile(sourceFileOrBundle) ? sourceFileOrBundle.prepends : void 0)] : filesForEmit;\n      if (emitOnly && !getEmitDeclarations(compilerOptions)) {\n        filesForEmit.forEach(collectLinkedAliases);\n      }\n      const declarationTransform = transformNodes(resolver, host, factory, compilerOptions, inputListOrBundle, declarationTransformers, false);\n      if (length(declarationTransform.diagnostics)) {\n        for (const diagnostic of declarationTransform.diagnostics) {\n          emitterDiagnostics.add(diagnostic);\n        }\n      }\n      const printerOptions = {\n        removeComments: compilerOptions.removeComments,\n        newLine: compilerOptions.newLine,\n        noEmitHelpers: true,\n        module: compilerOptions.module,\n        target: compilerOptions.target,\n        sourceMap: !forceDtsEmit && compilerOptions.declarationMap,\n        inlineSourceMap: compilerOptions.inlineSourceMap,\n        extendedDiagnostics: compilerOptions.extendedDiagnostics,\n        onlyPrintJsDocStyle: true,\n        writeBundleFileInfo: !!bundleBuildInfo,\n        recordInternalSection: !!bundleBuildInfo,\n        relativeToBuildInfo\n      };\n      const declarationPrinter = createPrinter(printerOptions, {\n        hasGlobalName: resolver.hasGlobalName,\n        onEmitNode: declarationTransform.emitNodeWithNotification,\n        isEmitNotificationEnabled: declarationTransform.isEmitNotificationEnabled,\n        substituteNode: declarationTransform.substituteNode\n      });\n      const declBlocked = !!declarationTransform.diagnostics && !!declarationTransform.diagnostics.length || !!host.isEmitBlocked(declarationFilePath) || !!compilerOptions.noEmit;\n      emitSkipped = emitSkipped || declBlocked;\n      if (!declBlocked || forceDtsEmit) {\n        Debug.assert(declarationTransform.transformed.length === 1, \"Should only see one output from the decl transform\");\n        printSourceFileOrBundle(declarationFilePath, declarationMapPath, declarationTransform, declarationPrinter, {\n          sourceMap: printerOptions.sourceMap,\n          sourceRoot: compilerOptions.sourceRoot,\n          mapRoot: compilerOptions.mapRoot,\n          extendedDiagnostics: compilerOptions.extendedDiagnostics\n        });\n      }\n      declarationTransform.dispose();\n      if (bundleBuildInfo)\n        bundleBuildInfo.dts = declarationPrinter.bundleFileInfo;\n    }\n    function collectLinkedAliases(node) {\n      if (isExportAssignment(node)) {\n        if (node.expression.kind === 79) {\n          resolver.collectLinkedAliases(node.expression, true);\n        }\n        return;\n      } else if (isExportSpecifier(node)) {\n        resolver.collectLinkedAliases(node.propertyName || node.name, true);\n        return;\n      }\n      forEachChild(node, collectLinkedAliases);\n    }\n    function printSourceFileOrBundle(jsFilePath, sourceMapFilePath, transform2, printer, mapOptions) {\n      const sourceFileOrBundle = transform2.transformed[0];\n      const bundle = sourceFileOrBundle.kind === 309 ? sourceFileOrBundle : void 0;\n      const sourceFile = sourceFileOrBundle.kind === 308 ? sourceFileOrBundle : void 0;\n      const sourceFiles = bundle ? bundle.sourceFiles : [sourceFile];\n      let sourceMapGenerator;\n      if (shouldEmitSourceMaps(mapOptions, sourceFileOrBundle)) {\n        sourceMapGenerator = createSourceMapGenerator(host, getBaseFileName(normalizeSlashes(jsFilePath)), getSourceRoot(mapOptions), getSourceMapDirectory(mapOptions, jsFilePath, sourceFile), mapOptions);\n      }\n      if (bundle) {\n        printer.writeBundle(bundle, writer, sourceMapGenerator);\n      } else {\n        printer.writeFile(sourceFile, writer, sourceMapGenerator);\n      }\n      let sourceMapUrlPos;\n      if (sourceMapGenerator) {\n        if (sourceMapDataList) {\n          sourceMapDataList.push({\n            inputSourceFileNames: sourceMapGenerator.getSources(),\n            sourceMap: sourceMapGenerator.toJSON()\n          });\n        }\n        const sourceMappingURL = getSourceMappingURL(mapOptions, sourceMapGenerator, jsFilePath, sourceMapFilePath, sourceFile);\n        if (sourceMappingURL) {\n          if (!writer.isAtStartOfLine())\n            writer.rawWrite(newLine);\n          sourceMapUrlPos = writer.getTextPos();\n          writer.writeComment(`//# ${\"sourceMappingURL\"}=${sourceMappingURL}`);\n        }\n        if (sourceMapFilePath) {\n          const sourceMap = sourceMapGenerator.toString();\n          writeFile(host, emitterDiagnostics, sourceMapFilePath, sourceMap, false, sourceFiles);\n          if (printer.bundleFileInfo)\n            printer.bundleFileInfo.mapHash = computeSignature(sourceMap, host);\n        }\n      } else {\n        writer.writeLine();\n      }\n      const text = writer.getText();\n      writeFile(host, emitterDiagnostics, jsFilePath, text, !!compilerOptions.emitBOM, sourceFiles, { sourceMapUrlPos, diagnostics: transform2.diagnostics });\n      if (printer.bundleFileInfo)\n        printer.bundleFileInfo.hash = computeSignature(text, host);\n      writer.clear();\n    }\n    function shouldEmitSourceMaps(mapOptions, sourceFileOrBundle) {\n      return (mapOptions.sourceMap || mapOptions.inlineSourceMap) && (sourceFileOrBundle.kind !== 308 || !fileExtensionIs(sourceFileOrBundle.fileName, \".json\"));\n    }\n    function getSourceRoot(mapOptions) {\n      const sourceRoot = normalizeSlashes(mapOptions.sourceRoot || \"\");\n      return sourceRoot ? ensureTrailingDirectorySeparator(sourceRoot) : sourceRoot;\n    }\n    function getSourceMapDirectory(mapOptions, filePath, sourceFile) {\n      if (mapOptions.sourceRoot)\n        return host.getCommonSourceDirectory();\n      if (mapOptions.mapRoot) {\n        let sourceMapDir = normalizeSlashes(mapOptions.mapRoot);\n        if (sourceFile) {\n          sourceMapDir = getDirectoryPath(getSourceFilePathInNewDir(sourceFile.fileName, host, sourceMapDir));\n        }\n        if (getRootLength(sourceMapDir) === 0) {\n          sourceMapDir = combinePaths(host.getCommonSourceDirectory(), sourceMapDir);\n        }\n        return sourceMapDir;\n      }\n      return getDirectoryPath(normalizePath(filePath));\n    }\n    function getSourceMappingURL(mapOptions, sourceMapGenerator, filePath, sourceMapFilePath, sourceFile) {\n      if (mapOptions.inlineSourceMap) {\n        const sourceMapText = sourceMapGenerator.toString();\n        const base64SourceMapText = base64encode(sys, sourceMapText);\n        return `data:application/json;base64,${base64SourceMapText}`;\n      }\n      const sourceMapFile = getBaseFileName(normalizeSlashes(Debug.checkDefined(sourceMapFilePath)));\n      if (mapOptions.mapRoot) {\n        let sourceMapDir = normalizeSlashes(mapOptions.mapRoot);\n        if (sourceFile) {\n          sourceMapDir = getDirectoryPath(getSourceFilePathInNewDir(sourceFile.fileName, host, sourceMapDir));\n        }\n        if (getRootLength(sourceMapDir) === 0) {\n          sourceMapDir = combinePaths(host.getCommonSourceDirectory(), sourceMapDir);\n          return encodeURI(getRelativePathToDirectoryOrUrl(getDirectoryPath(normalizePath(filePath)), combinePaths(sourceMapDir, sourceMapFile), host.getCurrentDirectory(), host.getCanonicalFileName, true));\n        } else {\n          return encodeURI(combinePaths(sourceMapDir, sourceMapFile));\n        }\n      }\n      return encodeURI(sourceMapFile);\n    }\n  }\n  function createBuildInfo(program, bundle) {\n    const version2 = version;\n    return { bundle, program, version: version2 };\n  }\n  function getBuildInfoText(buildInfo) {\n    return JSON.stringify(buildInfo);\n  }\n  function getBuildInfo(buildInfoFile, buildInfoText) {\n    return readJsonOrUndefined(buildInfoFile, buildInfoText);\n  }\n  function createSourceFilesFromBundleBuildInfo(bundle, buildInfoDirectory, host) {\n    var _a2;\n    const jsBundle = Debug.checkDefined(bundle.js);\n    const prologueMap = ((_a2 = jsBundle.sources) == null ? void 0 : _a2.prologues) && arrayToMap(jsBundle.sources.prologues, (prologueInfo) => prologueInfo.file);\n    return bundle.sourceFiles.map((fileName, index) => {\n      var _a3, _b;\n      const prologueInfo = prologueMap == null ? void 0 : prologueMap.get(index);\n      const statements = prologueInfo == null ? void 0 : prologueInfo.directives.map((directive) => {\n        const literal = setTextRange(factory.createStringLiteral(directive.expression.text), directive.expression);\n        const statement = setTextRange(factory.createExpressionStatement(literal), directive);\n        setParent(literal, statement);\n        return statement;\n      });\n      const eofToken = factory.createToken(1);\n      const sourceFile = factory.createSourceFile(statements != null ? statements : [], eofToken, 0);\n      sourceFile.fileName = getRelativePathFromDirectory(host.getCurrentDirectory(), getNormalizedAbsolutePath(fileName, buildInfoDirectory), !host.useCaseSensitiveFileNames());\n      sourceFile.text = (_a3 = prologueInfo == null ? void 0 : prologueInfo.text) != null ? _a3 : \"\";\n      setTextRangePosWidth(sourceFile, 0, (_b = prologueInfo == null ? void 0 : prologueInfo.text.length) != null ? _b : 0);\n      setEachParent(sourceFile.statements, sourceFile);\n      setTextRangePosWidth(eofToken, sourceFile.end, 0);\n      setParent(eofToken, sourceFile);\n      return sourceFile;\n    });\n  }\n  function emitUsingBuildInfo(config, host, getCommandLine, customTransformers) {\n    var _a2, _b;\n    (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Emit, \"emitUsingBuildInfo\", {}, true);\n    ts_performance_exports.mark(\"beforeEmit\");\n    const result = emitUsingBuildInfoWorker(config, host, getCommandLine, customTransformers);\n    ts_performance_exports.mark(\"afterEmit\");\n    ts_performance_exports.measure(\"Emit\", \"beforeEmit\", \"afterEmit\");\n    (_b = tracing) == null ? void 0 : _b.pop();\n    return result;\n  }\n  function emitUsingBuildInfoWorker(config, host, getCommandLine, customTransformers) {\n    const { buildInfoPath, jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath } = getOutputPathsForBundle(config.options, false);\n    const buildInfo = host.getBuildInfo(buildInfoPath, config.options.configFilePath);\n    if (!buildInfo)\n      return buildInfoPath;\n    if (!buildInfo.bundle || !buildInfo.bundle.js || declarationFilePath && !buildInfo.bundle.dts)\n      return buildInfoPath;\n    const jsFileText = host.readFile(Debug.checkDefined(jsFilePath));\n    if (!jsFileText)\n      return jsFilePath;\n    if (computeSignature(jsFileText, host) !== buildInfo.bundle.js.hash)\n      return jsFilePath;\n    const sourceMapText = sourceMapFilePath && host.readFile(sourceMapFilePath);\n    if (sourceMapFilePath && !sourceMapText || config.options.inlineSourceMap)\n      return sourceMapFilePath || \"inline sourcemap decoding\";\n    if (sourceMapFilePath && computeSignature(sourceMapText, host) !== buildInfo.bundle.js.mapHash)\n      return sourceMapFilePath;\n    const declarationText = declarationFilePath && host.readFile(declarationFilePath);\n    if (declarationFilePath && !declarationText)\n      return declarationFilePath;\n    if (declarationFilePath && computeSignature(declarationText, host) !== buildInfo.bundle.dts.hash)\n      return declarationFilePath;\n    const declarationMapText = declarationMapPath && host.readFile(declarationMapPath);\n    if (declarationMapPath && !declarationMapText || config.options.inlineSourceMap)\n      return declarationMapPath || \"inline sourcemap decoding\";\n    if (declarationMapPath && computeSignature(declarationMapText, host) !== buildInfo.bundle.dts.mapHash)\n      return declarationMapPath;\n    const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory()));\n    const ownPrependInput = createInputFilesWithFileTexts(jsFilePath, jsFileText, sourceMapFilePath, sourceMapText, declarationFilePath, declarationText, declarationMapPath, declarationMapText, buildInfoPath, buildInfo, true);\n    const outputFiles = [];\n    const prependNodes = createPrependNodes(config.projectReferences, getCommandLine, (f) => host.readFile(f), host);\n    const sourceFilesForJsEmit = createSourceFilesFromBundleBuildInfo(buildInfo.bundle, buildInfoDirectory, host);\n    let changedDtsText;\n    let changedDtsData;\n    const emitHost = {\n      getPrependNodes: memoize(() => [...prependNodes, ownPrependInput]),\n      getCanonicalFileName: host.getCanonicalFileName,\n      getCommonSourceDirectory: () => getNormalizedAbsolutePath(buildInfo.bundle.commonSourceDirectory, buildInfoDirectory),\n      getCompilerOptions: () => config.options,\n      getCurrentDirectory: () => host.getCurrentDirectory(),\n      getSourceFile: returnUndefined,\n      getSourceFileByPath: returnUndefined,\n      getSourceFiles: () => sourceFilesForJsEmit,\n      getLibFileFromReference: notImplemented,\n      isSourceFileFromExternalLibrary: returnFalse,\n      getResolvedProjectReferenceToRedirect: returnUndefined,\n      getProjectReferenceRedirect: returnUndefined,\n      isSourceOfProjectReferenceRedirect: returnFalse,\n      writeFile: (name, text, writeByteOrderMark, _onError, _sourceFiles, data) => {\n        switch (name) {\n          case jsFilePath:\n            if (jsFileText === text)\n              return;\n            break;\n          case sourceMapFilePath:\n            if (sourceMapText === text)\n              return;\n            break;\n          case buildInfoPath:\n            break;\n          case declarationFilePath:\n            if (declarationText === text)\n              return;\n            changedDtsText = text;\n            changedDtsData = data;\n            break;\n          case declarationMapPath:\n            if (declarationMapText === text)\n              return;\n            break;\n          default:\n            Debug.fail(`Unexpected path: ${name}`);\n        }\n        outputFiles.push({ name, text, writeByteOrderMark, data });\n      },\n      isEmitBlocked: returnFalse,\n      readFile: (f) => host.readFile(f),\n      fileExists: (f) => host.fileExists(f),\n      useCaseSensitiveFileNames: () => host.useCaseSensitiveFileNames(),\n      getBuildInfo: (bundle) => {\n        const program = buildInfo.program;\n        if (program && changedDtsText !== void 0 && config.options.composite) {\n          program.outSignature = computeSignature(changedDtsText, host, changedDtsData);\n        }\n        const { js, dts, sourceFiles } = buildInfo.bundle;\n        bundle.js.sources = js.sources;\n        if (dts) {\n          bundle.dts.sources = dts.sources;\n        }\n        bundle.sourceFiles = sourceFiles;\n        return createBuildInfo(program, bundle);\n      },\n      getSourceFileFromReference: returnUndefined,\n      redirectTargetsMap: createMultiMap(),\n      getFileIncludeReasons: notImplemented,\n      createHash: maybeBind(host, host.createHash)\n    };\n    emitFiles(notImplementedResolver, emitHost, void 0, getTransformers(config.options, customTransformers));\n    return outputFiles;\n  }\n  function createPrinter(printerOptions = {}, handlers = {}) {\n    var {\n      hasGlobalName,\n      onEmitNode = noEmitNotification,\n      isEmitNotificationEnabled,\n      substituteNode = noEmitSubstitution,\n      onBeforeEmitNode,\n      onAfterEmitNode,\n      onBeforeEmitNodeArray,\n      onAfterEmitNodeArray,\n      onBeforeEmitToken,\n      onAfterEmitToken\n    } = handlers;\n    var extendedDiagnostics = !!printerOptions.extendedDiagnostics;\n    var newLine = getNewLineCharacter(printerOptions);\n    var moduleKind = getEmitModuleKind(printerOptions);\n    var bundledHelpers = /* @__PURE__ */ new Map();\n    var currentSourceFile;\n    var nodeIdToGeneratedName;\n    var nodeIdToGeneratedPrivateName;\n    var autoGeneratedIdToGeneratedName;\n    var generatedNames;\n    var formattedNameTempFlagsStack;\n    var formattedNameTempFlags;\n    var privateNameTempFlagsStack;\n    var privateNameTempFlags;\n    var tempFlagsStack;\n    var tempFlags;\n    var reservedNamesStack;\n    var reservedNames;\n    var reservedPrivateNamesStack;\n    var reservedPrivateNames;\n    var preserveSourceNewlines = printerOptions.preserveSourceNewlines;\n    var nextListElementPos;\n    var writer;\n    var ownWriter;\n    var write = writeBase;\n    var isOwnFileEmit;\n    var bundleFileInfo = printerOptions.writeBundleFileInfo ? { sections: [] } : void 0;\n    var relativeToBuildInfo = bundleFileInfo ? Debug.checkDefined(printerOptions.relativeToBuildInfo) : void 0;\n    var recordInternalSection = printerOptions.recordInternalSection;\n    var sourceFileTextPos = 0;\n    var sourceFileTextKind = \"text\";\n    var sourceMapsDisabled = true;\n    var sourceMapGenerator;\n    var sourceMapSource;\n    var sourceMapSourceIndex = -1;\n    var mostRecentlyAddedSourceMapSource;\n    var mostRecentlyAddedSourceMapSourceIndex = -1;\n    var containerPos = -1;\n    var containerEnd = -1;\n    var declarationListContainerEnd = -1;\n    var currentLineMap;\n    var detachedCommentsInfo;\n    var hasWrittenComment = false;\n    var commentsDisabled = !!printerOptions.removeComments;\n    var lastSubstitution;\n    var currentParenthesizerRule;\n    var { enter: enterComment, exit: exitComment } = createTimerIf(extendedDiagnostics, \"commentTime\", \"beforeComment\", \"afterComment\");\n    var parenthesizer = factory.parenthesizer;\n    var typeArgumentParenthesizerRuleSelector = {\n      select: (index) => index === 0 ? parenthesizer.parenthesizeLeadingTypeArgument : void 0\n    };\n    var emitBinaryExpression = createEmitBinaryExpression();\n    reset2();\n    return {\n      printNode,\n      printList,\n      printFile,\n      printBundle,\n      writeNode,\n      writeList,\n      writeFile: writeFile2,\n      writeBundle,\n      bundleFileInfo\n    };\n    function printNode(hint, node, sourceFile) {\n      switch (hint) {\n        case 0:\n          Debug.assert(isSourceFile(node), \"Expected a SourceFile node.\");\n          break;\n        case 2:\n          Debug.assert(isIdentifier(node), \"Expected an Identifier node.\");\n          break;\n        case 1:\n          Debug.assert(isExpression(node), \"Expected an Expression node.\");\n          break;\n      }\n      switch (node.kind) {\n        case 308:\n          return printFile(node);\n        case 309:\n          return printBundle(node);\n        case 310:\n          return printUnparsedSource(node);\n      }\n      writeNode(hint, node, sourceFile, beginPrint());\n      return endPrint();\n    }\n    function printList(format, nodes, sourceFile) {\n      writeList(format, nodes, sourceFile, beginPrint());\n      return endPrint();\n    }\n    function printBundle(bundle) {\n      writeBundle(bundle, beginPrint(), void 0);\n      return endPrint();\n    }\n    function printFile(sourceFile) {\n      writeFile2(sourceFile, beginPrint(), void 0);\n      return endPrint();\n    }\n    function printUnparsedSource(unparsed) {\n      writeUnparsedSource(unparsed, beginPrint());\n      return endPrint();\n    }\n    function writeNode(hint, node, sourceFile, output) {\n      const previousWriter = writer;\n      setWriter(output, void 0);\n      print(hint, node, sourceFile);\n      reset2();\n      writer = previousWriter;\n    }\n    function writeList(format, nodes, sourceFile, output) {\n      const previousWriter = writer;\n      setWriter(output, void 0);\n      if (sourceFile) {\n        setSourceFile(sourceFile);\n      }\n      emitList(void 0, nodes, format);\n      reset2();\n      writer = previousWriter;\n    }\n    function getTextPosWithWriteLine() {\n      return writer.getTextPosWithWriteLine ? writer.getTextPosWithWriteLine() : writer.getTextPos();\n    }\n    function updateOrPushBundleFileTextLike(pos, end, kind) {\n      const last2 = lastOrUndefined(bundleFileInfo.sections);\n      if (last2 && last2.kind === kind) {\n        last2.end = end;\n      } else {\n        bundleFileInfo.sections.push({ pos, end, kind });\n      }\n    }\n    function recordBundleFileInternalSectionStart(node) {\n      if (recordInternalSection && bundleFileInfo && currentSourceFile && (isDeclaration(node) || isVariableStatement(node)) && isInternalDeclaration(node, currentSourceFile) && sourceFileTextKind !== \"internal\") {\n        const prevSourceFileTextKind = sourceFileTextKind;\n        recordBundleFileTextLikeSection(writer.getTextPos());\n        sourceFileTextPos = getTextPosWithWriteLine();\n        sourceFileTextKind = \"internal\";\n        return prevSourceFileTextKind;\n      }\n      return void 0;\n    }\n    function recordBundleFileInternalSectionEnd(prevSourceFileTextKind) {\n      if (prevSourceFileTextKind) {\n        recordBundleFileTextLikeSection(writer.getTextPos());\n        sourceFileTextPos = getTextPosWithWriteLine();\n        sourceFileTextKind = prevSourceFileTextKind;\n      }\n    }\n    function recordBundleFileTextLikeSection(end) {\n      if (sourceFileTextPos < end) {\n        updateOrPushBundleFileTextLike(sourceFileTextPos, end, sourceFileTextKind);\n        return true;\n      }\n      return false;\n    }\n    function writeBundle(bundle, output, sourceMapGenerator2) {\n      isOwnFileEmit = false;\n      const previousWriter = writer;\n      setWriter(output, sourceMapGenerator2);\n      emitShebangIfNeeded(bundle);\n      emitPrologueDirectivesIfNeeded(bundle);\n      emitHelpers(bundle);\n      emitSyntheticTripleSlashReferencesIfNeeded(bundle);\n      for (const prepend of bundle.prepends) {\n        writeLine();\n        const pos = writer.getTextPos();\n        const savedSections = bundleFileInfo && bundleFileInfo.sections;\n        if (savedSections)\n          bundleFileInfo.sections = [];\n        print(4, prepend, void 0);\n        if (bundleFileInfo) {\n          const newSections = bundleFileInfo.sections;\n          bundleFileInfo.sections = savedSections;\n          if (prepend.oldFileOfCurrentEmit)\n            bundleFileInfo.sections.push(...newSections);\n          else {\n            newSections.forEach((section) => Debug.assert(isBundleFileTextLike(section)));\n            bundleFileInfo.sections.push({\n              pos,\n              end: writer.getTextPos(),\n              kind: \"prepend\",\n              data: relativeToBuildInfo(prepend.fileName),\n              texts: newSections\n            });\n          }\n        }\n      }\n      sourceFileTextPos = getTextPosWithWriteLine();\n      for (const sourceFile of bundle.sourceFiles) {\n        print(0, sourceFile, sourceFile);\n      }\n      if (bundleFileInfo && bundle.sourceFiles.length) {\n        const end = writer.getTextPos();\n        if (recordBundleFileTextLikeSection(end)) {\n          const prologues = getPrologueDirectivesFromBundledSourceFiles(bundle);\n          if (prologues) {\n            if (!bundleFileInfo.sources)\n              bundleFileInfo.sources = {};\n            bundleFileInfo.sources.prologues = prologues;\n          }\n          const helpers = getHelpersFromBundledSourceFiles(bundle);\n          if (helpers) {\n            if (!bundleFileInfo.sources)\n              bundleFileInfo.sources = {};\n            bundleFileInfo.sources.helpers = helpers;\n          }\n        }\n      }\n      reset2();\n      writer = previousWriter;\n    }\n    function writeUnparsedSource(unparsed, output) {\n      const previousWriter = writer;\n      setWriter(output, void 0);\n      print(4, unparsed, void 0);\n      reset2();\n      writer = previousWriter;\n    }\n    function writeFile2(sourceFile, output, sourceMapGenerator2) {\n      isOwnFileEmit = true;\n      const previousWriter = writer;\n      setWriter(output, sourceMapGenerator2);\n      emitShebangIfNeeded(sourceFile);\n      emitPrologueDirectivesIfNeeded(sourceFile);\n      print(0, sourceFile, sourceFile);\n      reset2();\n      writer = previousWriter;\n    }\n    function beginPrint() {\n      return ownWriter || (ownWriter = createTextWriter(newLine));\n    }\n    function endPrint() {\n      const text = ownWriter.getText();\n      ownWriter.clear();\n      return text;\n    }\n    function print(hint, node, sourceFile) {\n      if (sourceFile) {\n        setSourceFile(sourceFile);\n      }\n      pipelineEmit(hint, node, void 0);\n    }\n    function setSourceFile(sourceFile) {\n      currentSourceFile = sourceFile;\n      currentLineMap = void 0;\n      detachedCommentsInfo = void 0;\n      if (sourceFile) {\n        setSourceMapSource(sourceFile);\n      }\n    }\n    function setWriter(_writer, _sourceMapGenerator) {\n      if (_writer && printerOptions.omitTrailingSemicolon) {\n        _writer = getTrailingSemicolonDeferringWriter(_writer);\n      }\n      writer = _writer;\n      sourceMapGenerator = _sourceMapGenerator;\n      sourceMapsDisabled = !writer || !sourceMapGenerator;\n    }\n    function reset2() {\n      nodeIdToGeneratedName = [];\n      nodeIdToGeneratedPrivateName = [];\n      autoGeneratedIdToGeneratedName = [];\n      generatedNames = /* @__PURE__ */ new Set();\n      formattedNameTempFlagsStack = [];\n      formattedNameTempFlags = /* @__PURE__ */ new Map();\n      privateNameTempFlagsStack = [];\n      privateNameTempFlags = 0;\n      tempFlagsStack = [];\n      tempFlags = 0;\n      reservedNamesStack = [];\n      reservedNames = void 0;\n      reservedPrivateNamesStack = [];\n      reservedPrivateNames = void 0;\n      currentSourceFile = void 0;\n      currentLineMap = void 0;\n      detachedCommentsInfo = void 0;\n      setWriter(void 0, void 0);\n    }\n    function getCurrentLineMap() {\n      return currentLineMap || (currentLineMap = getLineStarts(Debug.checkDefined(currentSourceFile)));\n    }\n    function emit(node, parenthesizerRule) {\n      if (node === void 0)\n        return;\n      const prevSourceFileTextKind = recordBundleFileInternalSectionStart(node);\n      pipelineEmit(4, node, parenthesizerRule);\n      recordBundleFileInternalSectionEnd(prevSourceFileTextKind);\n    }\n    function emitIdentifierName(node) {\n      if (node === void 0)\n        return;\n      pipelineEmit(2, node, void 0);\n    }\n    function emitExpression(node, parenthesizerRule) {\n      if (node === void 0)\n        return;\n      pipelineEmit(1, node, parenthesizerRule);\n    }\n    function emitJsxAttributeValue(node) {\n      pipelineEmit(isStringLiteral(node) ? 6 : 4, node);\n    }\n    function beforeEmitNode(node) {\n      if (preserveSourceNewlines && getInternalEmitFlags(node) & 4) {\n        preserveSourceNewlines = false;\n      }\n    }\n    function afterEmitNode(savedPreserveSourceNewlines) {\n      preserveSourceNewlines = savedPreserveSourceNewlines;\n    }\n    function pipelineEmit(emitHint, node, parenthesizerRule) {\n      currentParenthesizerRule = parenthesizerRule;\n      const pipelinePhase = getPipelinePhase(0, emitHint, node);\n      pipelinePhase(emitHint, node);\n      currentParenthesizerRule = void 0;\n    }\n    function shouldEmitComments(node) {\n      return !commentsDisabled && !isSourceFile(node);\n    }\n    function shouldEmitSourceMaps(node) {\n      return !sourceMapsDisabled && !isSourceFile(node) && !isInJsonFile(node) && !isUnparsedSource(node) && !isUnparsedPrepend(node);\n    }\n    function getPipelinePhase(phase, emitHint, node) {\n      switch (phase) {\n        case 0:\n          if (onEmitNode !== noEmitNotification && (!isEmitNotificationEnabled || isEmitNotificationEnabled(node))) {\n            return pipelineEmitWithNotification;\n          }\n        case 1:\n          if (substituteNode !== noEmitSubstitution && (lastSubstitution = substituteNode(emitHint, node) || node) !== node) {\n            if (currentParenthesizerRule) {\n              lastSubstitution = currentParenthesizerRule(lastSubstitution);\n            }\n            return pipelineEmitWithSubstitution;\n          }\n        case 2:\n          if (shouldEmitComments(node)) {\n            return pipelineEmitWithComments;\n          }\n        case 3:\n          if (shouldEmitSourceMaps(node)) {\n            return pipelineEmitWithSourceMaps;\n          }\n        case 4:\n          return pipelineEmitWithHint;\n        default:\n          return Debug.assertNever(phase);\n      }\n    }\n    function getNextPipelinePhase(currentPhase, emitHint, node) {\n      return getPipelinePhase(currentPhase + 1, emitHint, node);\n    }\n    function pipelineEmitWithNotification(hint, node) {\n      const pipelinePhase = getNextPipelinePhase(0, hint, node);\n      onEmitNode(hint, node, pipelinePhase);\n    }\n    function pipelineEmitWithHint(hint, node) {\n      onBeforeEmitNode == null ? void 0 : onBeforeEmitNode(node);\n      if (preserveSourceNewlines) {\n        const savedPreserveSourceNewlines = preserveSourceNewlines;\n        beforeEmitNode(node);\n        pipelineEmitWithHintWorker(hint, node);\n        afterEmitNode(savedPreserveSourceNewlines);\n      } else {\n        pipelineEmitWithHintWorker(hint, node);\n      }\n      onAfterEmitNode == null ? void 0 : onAfterEmitNode(node);\n      currentParenthesizerRule = void 0;\n    }\n    function pipelineEmitWithHintWorker(hint, node, allowSnippets = true) {\n      if (allowSnippets) {\n        const snippet = getSnippetElement(node);\n        if (snippet) {\n          return emitSnippetNode(hint, node, snippet);\n        }\n      }\n      if (hint === 0)\n        return emitSourceFile(cast(node, isSourceFile));\n      if (hint === 2)\n        return emitIdentifier(cast(node, isIdentifier));\n      if (hint === 6)\n        return emitLiteral(cast(node, isStringLiteral), true);\n      if (hint === 3)\n        return emitMappedTypeParameter(cast(node, isTypeParameterDeclaration));\n      if (hint === 5) {\n        Debug.assertNode(node, isEmptyStatement);\n        return emitEmptyStatement(true);\n      }\n      if (hint === 4) {\n        switch (node.kind) {\n          case 15:\n          case 16:\n          case 17:\n            return emitLiteral(node, false);\n          case 79:\n            return emitIdentifier(node);\n          case 80:\n            return emitPrivateIdentifier(node);\n          case 163:\n            return emitQualifiedName(node);\n          case 164:\n            return emitComputedPropertyName(node);\n          case 165:\n            return emitTypeParameter(node);\n          case 166:\n            return emitParameter(node);\n          case 167:\n            return emitDecorator(node);\n          case 168:\n            return emitPropertySignature(node);\n          case 169:\n            return emitPropertyDeclaration(node);\n          case 170:\n            return emitMethodSignature(node);\n          case 171:\n            return emitMethodDeclaration(node);\n          case 172:\n            return emitClassStaticBlockDeclaration(node);\n          case 173:\n            return emitConstructor(node);\n          case 174:\n          case 175:\n            return emitAccessorDeclaration(node);\n          case 176:\n            return emitCallSignature(node);\n          case 177:\n            return emitConstructSignature(node);\n          case 178:\n            return emitIndexSignature(node);\n          case 179:\n            return emitTypePredicate(node);\n          case 180:\n            return emitTypeReference(node);\n          case 181:\n            return emitFunctionType(node);\n          case 182:\n            return emitConstructorType(node);\n          case 183:\n            return emitTypeQuery(node);\n          case 184:\n            return emitTypeLiteral(node);\n          case 185:\n            return emitArrayType(node);\n          case 186:\n            return emitTupleType(node);\n          case 187:\n            return emitOptionalType(node);\n          case 189:\n            return emitUnionType(node);\n          case 190:\n            return emitIntersectionType(node);\n          case 191:\n            return emitConditionalType(node);\n          case 192:\n            return emitInferType(node);\n          case 193:\n            return emitParenthesizedType(node);\n          case 230:\n            return emitExpressionWithTypeArguments(node);\n          case 194:\n            return emitThisType();\n          case 195:\n            return emitTypeOperator(node);\n          case 196:\n            return emitIndexedAccessType(node);\n          case 197:\n            return emitMappedType(node);\n          case 198:\n            return emitLiteralType(node);\n          case 199:\n            return emitNamedTupleMember(node);\n          case 200:\n            return emitTemplateType(node);\n          case 201:\n            return emitTemplateTypeSpan(node);\n          case 202:\n            return emitImportTypeNode(node);\n          case 203:\n            return emitObjectBindingPattern(node);\n          case 204:\n            return emitArrayBindingPattern(node);\n          case 205:\n            return emitBindingElement(node);\n          case 236:\n            return emitTemplateSpan(node);\n          case 237:\n            return emitSemicolonClassElement();\n          case 238:\n            return emitBlock(node);\n          case 240:\n            return emitVariableStatement(node);\n          case 239:\n            return emitEmptyStatement(false);\n          case 241:\n            return emitExpressionStatement(node);\n          case 242:\n            return emitIfStatement(node);\n          case 243:\n            return emitDoStatement(node);\n          case 244:\n            return emitWhileStatement(node);\n          case 245:\n            return emitForStatement(node);\n          case 246:\n            return emitForInStatement(node);\n          case 247:\n            return emitForOfStatement(node);\n          case 248:\n            return emitContinueStatement(node);\n          case 249:\n            return emitBreakStatement(node);\n          case 250:\n            return emitReturnStatement(node);\n          case 251:\n            return emitWithStatement(node);\n          case 252:\n            return emitSwitchStatement(node);\n          case 253:\n            return emitLabeledStatement(node);\n          case 254:\n            return emitThrowStatement(node);\n          case 255:\n            return emitTryStatement(node);\n          case 256:\n            return emitDebuggerStatement(node);\n          case 257:\n            return emitVariableDeclaration(node);\n          case 258:\n            return emitVariableDeclarationList(node);\n          case 259:\n            return emitFunctionDeclaration(node);\n          case 260:\n            return emitClassDeclaration(node);\n          case 261:\n            return emitInterfaceDeclaration(node);\n          case 262:\n            return emitTypeAliasDeclaration(node);\n          case 263:\n            return emitEnumDeclaration(node);\n          case 264:\n            return emitModuleDeclaration(node);\n          case 265:\n            return emitModuleBlock(node);\n          case 266:\n            return emitCaseBlock(node);\n          case 267:\n            return emitNamespaceExportDeclaration(node);\n          case 268:\n            return emitImportEqualsDeclaration(node);\n          case 269:\n            return emitImportDeclaration(node);\n          case 270:\n            return emitImportClause(node);\n          case 271:\n            return emitNamespaceImport(node);\n          case 277:\n            return emitNamespaceExport(node);\n          case 272:\n            return emitNamedImports(node);\n          case 273:\n            return emitImportSpecifier(node);\n          case 274:\n            return emitExportAssignment(node);\n          case 275:\n            return emitExportDeclaration(node);\n          case 276:\n            return emitNamedExports(node);\n          case 278:\n            return emitExportSpecifier(node);\n          case 296:\n            return emitAssertClause(node);\n          case 297:\n            return emitAssertEntry(node);\n          case 279:\n            return;\n          case 280:\n            return emitExternalModuleReference(node);\n          case 11:\n            return emitJsxText(node);\n          case 283:\n          case 286:\n            return emitJsxOpeningElementOrFragment(node);\n          case 284:\n          case 287:\n            return emitJsxClosingElementOrFragment(node);\n          case 288:\n            return emitJsxAttribute(node);\n          case 289:\n            return emitJsxAttributes(node);\n          case 290:\n            return emitJsxSpreadAttribute(node);\n          case 291:\n            return emitJsxExpression(node);\n          case 292:\n            return emitCaseClause(node);\n          case 293:\n            return emitDefaultClause(node);\n          case 294:\n            return emitHeritageClause(node);\n          case 295:\n            return emitCatchClause(node);\n          case 299:\n            return emitPropertyAssignment(node);\n          case 300:\n            return emitShorthandPropertyAssignment(node);\n          case 301:\n            return emitSpreadAssignment(node);\n          case 302:\n            return emitEnumMember(node);\n          case 303:\n            return writeUnparsedNode(node);\n          case 310:\n          case 304:\n            return emitUnparsedSourceOrPrepend(node);\n          case 305:\n          case 306:\n            return emitUnparsedTextLike(node);\n          case 307:\n            return emitUnparsedSyntheticReference(node);\n          case 308:\n            return emitSourceFile(node);\n          case 309:\n            return Debug.fail(\"Bundles should be printed using printBundle\");\n          case 311:\n            return Debug.fail(\"InputFiles should not be printed\");\n          case 312:\n            return emitJSDocTypeExpression(node);\n          case 313:\n            return emitJSDocNameReference(node);\n          case 315:\n            return writePunctuation(\"*\");\n          case 316:\n            return writePunctuation(\"?\");\n          case 317:\n            return emitJSDocNullableType(node);\n          case 318:\n            return emitJSDocNonNullableType(node);\n          case 319:\n            return emitJSDocOptionalType(node);\n          case 320:\n            return emitJSDocFunctionType(node);\n          case 188:\n          case 321:\n            return emitRestOrJSDocVariadicType(node);\n          case 322:\n            return;\n          case 323:\n            return emitJSDoc(node);\n          case 325:\n            return emitJSDocTypeLiteral(node);\n          case 326:\n            return emitJSDocSignature(node);\n          case 330:\n          case 335:\n          case 340:\n            return emitJSDocSimpleTag(node);\n          case 331:\n          case 332:\n            return emitJSDocHeritageTag(node);\n          case 333:\n          case 334:\n            return;\n          case 336:\n          case 337:\n          case 338:\n          case 339:\n            return;\n          case 341:\n            return emitJSDocCallbackTag(node);\n          case 342:\n            return emitJSDocOverloadTag(node);\n          case 344:\n          case 351:\n            return emitJSDocPropertyLikeTag(node);\n          case 343:\n          case 345:\n          case 346:\n          case 347:\n          case 352:\n          case 353:\n            return emitJSDocSimpleTypedTag(node);\n          case 348:\n            return emitJSDocTemplateTag(node);\n          case 349:\n            return emitJSDocTypedefTag(node);\n          case 350:\n            return emitJSDocSeeTag(node);\n          case 355:\n          case 359:\n          case 358:\n            return;\n        }\n        if (isExpression(node)) {\n          hint = 1;\n          if (substituteNode !== noEmitSubstitution) {\n            const substitute = substituteNode(hint, node) || node;\n            if (substitute !== node) {\n              node = substitute;\n              if (currentParenthesizerRule) {\n                node = currentParenthesizerRule(node);\n              }\n            }\n          }\n        }\n      }\n      if (hint === 1) {\n        switch (node.kind) {\n          case 8:\n          case 9:\n            return emitNumericOrBigIntLiteral(node);\n          case 10:\n          case 13:\n          case 14:\n            return emitLiteral(node, false);\n          case 79:\n            return emitIdentifier(node);\n          case 80:\n            return emitPrivateIdentifier(node);\n          case 206:\n            return emitArrayLiteralExpression(node);\n          case 207:\n            return emitObjectLiteralExpression(node);\n          case 208:\n            return emitPropertyAccessExpression(node);\n          case 209:\n            return emitElementAccessExpression(node);\n          case 210:\n            return emitCallExpression(node);\n          case 211:\n            return emitNewExpression(node);\n          case 212:\n            return emitTaggedTemplateExpression(node);\n          case 213:\n            return emitTypeAssertionExpression(node);\n          case 214:\n            return emitParenthesizedExpression(node);\n          case 215:\n            return emitFunctionExpression(node);\n          case 216:\n            return emitArrowFunction(node);\n          case 217:\n            return emitDeleteExpression(node);\n          case 218:\n            return emitTypeOfExpression(node);\n          case 219:\n            return emitVoidExpression(node);\n          case 220:\n            return emitAwaitExpression(node);\n          case 221:\n            return emitPrefixUnaryExpression(node);\n          case 222:\n            return emitPostfixUnaryExpression(node);\n          case 223:\n            return emitBinaryExpression(node);\n          case 224:\n            return emitConditionalExpression(node);\n          case 225:\n            return emitTemplateExpression(node);\n          case 226:\n            return emitYieldExpression(node);\n          case 227:\n            return emitSpreadElement(node);\n          case 228:\n            return emitClassExpression(node);\n          case 229:\n            return;\n          case 231:\n            return emitAsExpression(node);\n          case 232:\n            return emitNonNullExpression(node);\n          case 230:\n            return emitExpressionWithTypeArguments(node);\n          case 235:\n            return emitSatisfiesExpression(node);\n          case 233:\n            return emitMetaProperty(node);\n          case 234:\n            return Debug.fail(\"SyntheticExpression should never be printed.\");\n          case 279:\n            return;\n          case 281:\n            return emitJsxElement(node);\n          case 282:\n            return emitJsxSelfClosingElement(node);\n          case 285:\n            return emitJsxFragment(node);\n          case 354:\n            return Debug.fail(\"SyntaxList should not be printed\");\n          case 355:\n            return;\n          case 356:\n            return emitPartiallyEmittedExpression(node);\n          case 357:\n            return emitCommaList(node);\n          case 358:\n          case 359:\n            return;\n          case 360:\n            return Debug.fail(\"SyntheticReferenceExpression should not be printed\");\n        }\n      }\n      if (isKeyword(node.kind))\n        return writeTokenNode(node, writeKeyword);\n      if (isTokenKind(node.kind))\n        return writeTokenNode(node, writePunctuation);\n      Debug.fail(`Unhandled SyntaxKind: ${Debug.formatSyntaxKind(node.kind)}.`);\n    }\n    function emitMappedTypeParameter(node) {\n      emit(node.name);\n      writeSpace();\n      writeKeyword(\"in\");\n      writeSpace();\n      emit(node.constraint);\n    }\n    function pipelineEmitWithSubstitution(hint, node) {\n      const pipelinePhase = getNextPipelinePhase(1, hint, node);\n      Debug.assertIsDefined(lastSubstitution);\n      node = lastSubstitution;\n      lastSubstitution = void 0;\n      pipelinePhase(hint, node);\n    }\n    function getHelpersFromBundledSourceFiles(bundle) {\n      let result;\n      if (moduleKind === 0 || printerOptions.noEmitHelpers) {\n        return void 0;\n      }\n      const bundledHelpers2 = /* @__PURE__ */ new Map();\n      for (const sourceFile of bundle.sourceFiles) {\n        const shouldSkip = getExternalHelpersModuleName(sourceFile) !== void 0;\n        const helpers = getSortedEmitHelpers(sourceFile);\n        if (!helpers)\n          continue;\n        for (const helper of helpers) {\n          if (!helper.scoped && !shouldSkip && !bundledHelpers2.get(helper.name)) {\n            bundledHelpers2.set(helper.name, true);\n            (result || (result = [])).push(helper.name);\n          }\n        }\n      }\n      return result;\n    }\n    function emitHelpers(node) {\n      let helpersEmitted = false;\n      const bundle = node.kind === 309 ? node : void 0;\n      if (bundle && moduleKind === 0) {\n        return;\n      }\n      const numPrepends = bundle ? bundle.prepends.length : 0;\n      const numNodes = bundle ? bundle.sourceFiles.length + numPrepends : 1;\n      for (let i = 0; i < numNodes; i++) {\n        const currentNode = bundle ? i < numPrepends ? bundle.prepends[i] : bundle.sourceFiles[i - numPrepends] : node;\n        const sourceFile = isSourceFile(currentNode) ? currentNode : isUnparsedSource(currentNode) ? void 0 : currentSourceFile;\n        const shouldSkip = printerOptions.noEmitHelpers || !!sourceFile && hasRecordedExternalHelpers(sourceFile);\n        const shouldBundle = (isSourceFile(currentNode) || isUnparsedSource(currentNode)) && !isOwnFileEmit;\n        const helpers = isUnparsedSource(currentNode) ? currentNode.helpers : getSortedEmitHelpers(currentNode);\n        if (helpers) {\n          for (const helper of helpers) {\n            if (!helper.scoped) {\n              if (shouldSkip)\n                continue;\n              if (shouldBundle) {\n                if (bundledHelpers.get(helper.name)) {\n                  continue;\n                }\n                bundledHelpers.set(helper.name, true);\n              }\n            } else if (bundle) {\n              continue;\n            }\n            const pos = getTextPosWithWriteLine();\n            if (typeof helper.text === \"string\") {\n              writeLines(helper.text);\n            } else {\n              writeLines(helper.text(makeFileLevelOptimisticUniqueName));\n            }\n            if (bundleFileInfo)\n              bundleFileInfo.sections.push({ pos, end: writer.getTextPos(), kind: \"emitHelpers\", data: helper.name });\n            helpersEmitted = true;\n          }\n        }\n      }\n      return helpersEmitted;\n    }\n    function getSortedEmitHelpers(node) {\n      const helpers = getEmitHelpers(node);\n      return helpers && stableSort(helpers, compareEmitHelpers);\n    }\n    function emitNumericOrBigIntLiteral(node) {\n      emitLiteral(node, false);\n    }\n    function emitLiteral(node, jsxAttributeEscape) {\n      const text = getLiteralTextOfNode(node, printerOptions.neverAsciiEscape, jsxAttributeEscape);\n      if ((printerOptions.sourceMap || printerOptions.inlineSourceMap) && (node.kind === 10 || isTemplateLiteralKind(node.kind))) {\n        writeLiteral(text);\n      } else {\n        writeStringLiteral(text);\n      }\n    }\n    function emitUnparsedSourceOrPrepend(unparsed) {\n      for (const text of unparsed.texts) {\n        writeLine();\n        emit(text);\n      }\n    }\n    function writeUnparsedNode(unparsed) {\n      writer.rawWrite(unparsed.parent.text.substring(unparsed.pos, unparsed.end));\n    }\n    function emitUnparsedTextLike(unparsed) {\n      const pos = getTextPosWithWriteLine();\n      writeUnparsedNode(unparsed);\n      if (bundleFileInfo) {\n        updateOrPushBundleFileTextLike(pos, writer.getTextPos(), unparsed.kind === 305 ? \"text\" : \"internal\");\n      }\n    }\n    function emitUnparsedSyntheticReference(unparsed) {\n      const pos = getTextPosWithWriteLine();\n      writeUnparsedNode(unparsed);\n      if (bundleFileInfo) {\n        const section = clone(unparsed.section);\n        section.pos = pos;\n        section.end = writer.getTextPos();\n        bundleFileInfo.sections.push(section);\n      }\n    }\n    function emitSnippetNode(hint, node, snippet) {\n      switch (snippet.kind) {\n        case 1:\n          emitPlaceholder(hint, node, snippet);\n          break;\n        case 0:\n          emitTabStop(hint, node, snippet);\n          break;\n      }\n    }\n    function emitPlaceholder(hint, node, snippet) {\n      nonEscapingWrite(`\\${${snippet.order}:`);\n      pipelineEmitWithHintWorker(hint, node, false);\n      nonEscapingWrite(`}`);\n    }\n    function emitTabStop(hint, node, snippet) {\n      Debug.assert(node.kind === 239, `A tab stop cannot be attached to a node of kind ${Debug.formatSyntaxKind(node.kind)}.`);\n      Debug.assert(hint !== 5, `A tab stop cannot be attached to an embedded statement.`);\n      nonEscapingWrite(`$${snippet.order}`);\n    }\n    function emitIdentifier(node) {\n      const writeText = node.symbol ? writeSymbol : write;\n      writeText(getTextOfNode2(node, false), node.symbol);\n      emitList(node, getIdentifierTypeArguments(node), 53776);\n    }\n    function emitPrivateIdentifier(node) {\n      write(getTextOfNode2(node, false));\n    }\n    function emitQualifiedName(node) {\n      emitEntityName(node.left);\n      writePunctuation(\".\");\n      emit(node.right);\n    }\n    function emitEntityName(node) {\n      if (node.kind === 79) {\n        emitExpression(node);\n      } else {\n        emit(node);\n      }\n    }\n    function emitComputedPropertyName(node) {\n      const savedPrivateNameTempFlags = privateNameTempFlags;\n      const savedReservedMemberNames = reservedPrivateNames;\n      popPrivateNameGenerationScope();\n      writePunctuation(\"[\");\n      emitExpression(node.expression, parenthesizer.parenthesizeExpressionOfComputedPropertyName);\n      writePunctuation(\"]\");\n      pushPrivateNameGenerationScope(savedPrivateNameTempFlags, savedReservedMemberNames);\n    }\n    function emitTypeParameter(node) {\n      emitModifierList(node, node.modifiers);\n      emit(node.name);\n      if (node.constraint) {\n        writeSpace();\n        writeKeyword(\"extends\");\n        writeSpace();\n        emit(node.constraint);\n      }\n      if (node.default) {\n        writeSpace();\n        writeOperator(\"=\");\n        writeSpace();\n        emit(node.default);\n      }\n    }\n    function emitParameter(node) {\n      emitDecoratorsAndModifiers(node, node.modifiers, true);\n      emit(node.dotDotDotToken);\n      emitNodeWithWriter(node.name, writeParameter);\n      emit(node.questionToken);\n      if (node.parent && node.parent.kind === 320 && !node.name) {\n        emit(node.type);\n      } else {\n        emitTypeAnnotation(node.type);\n      }\n      emitInitializer(node.initializer, node.type ? node.type.end : node.questionToken ? node.questionToken.end : node.name ? node.name.end : node.modifiers ? node.modifiers.end : node.pos, node, parenthesizer.parenthesizeExpressionForDisallowedComma);\n    }\n    function emitDecorator(decorator) {\n      writePunctuation(\"@\");\n      emitExpression(decorator.expression, parenthesizer.parenthesizeLeftSideOfAccess);\n    }\n    function emitPropertySignature(node) {\n      emitModifierList(node, node.modifiers);\n      emitNodeWithWriter(node.name, writeProperty);\n      emit(node.questionToken);\n      emitTypeAnnotation(node.type);\n      writeTrailingSemicolon();\n    }\n    function emitPropertyDeclaration(node) {\n      emitDecoratorsAndModifiers(node, node.modifiers, true);\n      emit(node.name);\n      emit(node.questionToken);\n      emit(node.exclamationToken);\n      emitTypeAnnotation(node.type);\n      emitInitializer(node.initializer, node.type ? node.type.end : node.questionToken ? node.questionToken.end : node.name.end, node);\n      writeTrailingSemicolon();\n    }\n    function emitMethodSignature(node) {\n      pushNameGenerationScope(node);\n      emitModifierList(node, node.modifiers);\n      emit(node.name);\n      emit(node.questionToken);\n      emitTypeParameters(node, node.typeParameters);\n      emitParameters(node, node.parameters);\n      emitTypeAnnotation(node.type);\n      writeTrailingSemicolon();\n      popNameGenerationScope(node);\n    }\n    function emitMethodDeclaration(node) {\n      emitDecoratorsAndModifiers(node, node.modifiers, true);\n      emit(node.asteriskToken);\n      emit(node.name);\n      emit(node.questionToken);\n      emitSignatureAndBody(node, emitSignatureHead);\n    }\n    function emitClassStaticBlockDeclaration(node) {\n      writeKeyword(\"static\");\n      emitBlockFunctionBody(node.body);\n    }\n    function emitConstructor(node) {\n      emitDecoratorsAndModifiers(node, node.modifiers, false);\n      writeKeyword(\"constructor\");\n      emitSignatureAndBody(node, emitSignatureHead);\n    }\n    function emitAccessorDeclaration(node) {\n      const pos = emitDecoratorsAndModifiers(node, node.modifiers, true);\n      const token = node.kind === 174 ? 137 : 151;\n      emitTokenWithComment(token, pos, writeKeyword, node);\n      writeSpace();\n      emit(node.name);\n      emitSignatureAndBody(node, emitSignatureHead);\n    }\n    function emitCallSignature(node) {\n      pushNameGenerationScope(node);\n      emitTypeParameters(node, node.typeParameters);\n      emitParameters(node, node.parameters);\n      emitTypeAnnotation(node.type);\n      writeTrailingSemicolon();\n      popNameGenerationScope(node);\n    }\n    function emitConstructSignature(node) {\n      pushNameGenerationScope(node);\n      writeKeyword(\"new\");\n      writeSpace();\n      emitTypeParameters(node, node.typeParameters);\n      emitParameters(node, node.parameters);\n      emitTypeAnnotation(node.type);\n      writeTrailingSemicolon();\n      popNameGenerationScope(node);\n    }\n    function emitIndexSignature(node) {\n      emitDecoratorsAndModifiers(node, node.modifiers, false);\n      emitParametersForIndexSignature(node, node.parameters);\n      emitTypeAnnotation(node.type);\n      writeTrailingSemicolon();\n    }\n    function emitTemplateTypeSpan(node) {\n      emit(node.type);\n      emit(node.literal);\n    }\n    function emitSemicolonClassElement() {\n      writeTrailingSemicolon();\n    }\n    function emitTypePredicate(node) {\n      if (node.assertsModifier) {\n        emit(node.assertsModifier);\n        writeSpace();\n      }\n      emit(node.parameterName);\n      if (node.type) {\n        writeSpace();\n        writeKeyword(\"is\");\n        writeSpace();\n        emit(node.type);\n      }\n    }\n    function emitTypeReference(node) {\n      emit(node.typeName);\n      emitTypeArguments(node, node.typeArguments);\n    }\n    function emitFunctionType(node) {\n      pushNameGenerationScope(node);\n      emitTypeParameters(node, node.typeParameters);\n      emitParametersForArrow(node, node.parameters);\n      writeSpace();\n      writePunctuation(\"=>\");\n      writeSpace();\n      emit(node.type);\n      popNameGenerationScope(node);\n    }\n    function emitJSDocFunctionType(node) {\n      writeKeyword(\"function\");\n      emitParameters(node, node.parameters);\n      writePunctuation(\":\");\n      emit(node.type);\n    }\n    function emitJSDocNullableType(node) {\n      writePunctuation(\"?\");\n      emit(node.type);\n    }\n    function emitJSDocNonNullableType(node) {\n      writePunctuation(\"!\");\n      emit(node.type);\n    }\n    function emitJSDocOptionalType(node) {\n      emit(node.type);\n      writePunctuation(\"=\");\n    }\n    function emitConstructorType(node) {\n      pushNameGenerationScope(node);\n      emitModifierList(node, node.modifiers);\n      writeKeyword(\"new\");\n      writeSpace();\n      emitTypeParameters(node, node.typeParameters);\n      emitParameters(node, node.parameters);\n      writeSpace();\n      writePunctuation(\"=>\");\n      writeSpace();\n      emit(node.type);\n      popNameGenerationScope(node);\n    }\n    function emitTypeQuery(node) {\n      writeKeyword(\"typeof\");\n      writeSpace();\n      emit(node.exprName);\n      emitTypeArguments(node, node.typeArguments);\n    }\n    function emitTypeLiteral(node) {\n      pushPrivateNameGenerationScope(0, void 0);\n      writePunctuation(\"{\");\n      const flags = getEmitFlags(node) & 1 ? 768 : 32897;\n      emitList(node, node.members, flags | 524288);\n      writePunctuation(\"}\");\n      popPrivateNameGenerationScope();\n    }\n    function emitArrayType(node) {\n      emit(node.elementType, parenthesizer.parenthesizeNonArrayTypeOfPostfixType);\n      writePunctuation(\"[\");\n      writePunctuation(\"]\");\n    }\n    function emitRestOrJSDocVariadicType(node) {\n      writePunctuation(\"...\");\n      emit(node.type);\n    }\n    function emitTupleType(node) {\n      emitTokenWithComment(22, node.pos, writePunctuation, node);\n      const flags = getEmitFlags(node) & 1 ? 528 : 657;\n      emitList(node, node.elements, flags | 524288, parenthesizer.parenthesizeElementTypeOfTupleType);\n      emitTokenWithComment(23, node.elements.end, writePunctuation, node);\n    }\n    function emitNamedTupleMember(node) {\n      emit(node.dotDotDotToken);\n      emit(node.name);\n      emit(node.questionToken);\n      emitTokenWithComment(58, node.name.end, writePunctuation, node);\n      writeSpace();\n      emit(node.type);\n    }\n    function emitOptionalType(node) {\n      emit(node.type, parenthesizer.parenthesizeTypeOfOptionalType);\n      writePunctuation(\"?\");\n    }\n    function emitUnionType(node) {\n      emitList(node, node.types, 516, parenthesizer.parenthesizeConstituentTypeOfUnionType);\n    }\n    function emitIntersectionType(node) {\n      emitList(node, node.types, 520, parenthesizer.parenthesizeConstituentTypeOfIntersectionType);\n    }\n    function emitConditionalType(node) {\n      emit(node.checkType, parenthesizer.parenthesizeCheckTypeOfConditionalType);\n      writeSpace();\n      writeKeyword(\"extends\");\n      writeSpace();\n      emit(node.extendsType, parenthesizer.parenthesizeExtendsTypeOfConditionalType);\n      writeSpace();\n      writePunctuation(\"?\");\n      writeSpace();\n      emit(node.trueType);\n      writeSpace();\n      writePunctuation(\":\");\n      writeSpace();\n      emit(node.falseType);\n    }\n    function emitInferType(node) {\n      writeKeyword(\"infer\");\n      writeSpace();\n      emit(node.typeParameter);\n    }\n    function emitParenthesizedType(node) {\n      writePunctuation(\"(\");\n      emit(node.type);\n      writePunctuation(\")\");\n    }\n    function emitThisType() {\n      writeKeyword(\"this\");\n    }\n    function emitTypeOperator(node) {\n      writeTokenText(node.operator, writeKeyword);\n      writeSpace();\n      const parenthesizerRule = node.operator === 146 ? parenthesizer.parenthesizeOperandOfReadonlyTypeOperator : parenthesizer.parenthesizeOperandOfTypeOperator;\n      emit(node.type, parenthesizerRule);\n    }\n    function emitIndexedAccessType(node) {\n      emit(node.objectType, parenthesizer.parenthesizeNonArrayTypeOfPostfixType);\n      writePunctuation(\"[\");\n      emit(node.indexType);\n      writePunctuation(\"]\");\n    }\n    function emitMappedType(node) {\n      const emitFlags = getEmitFlags(node);\n      writePunctuation(\"{\");\n      if (emitFlags & 1) {\n        writeSpace();\n      } else {\n        writeLine();\n        increaseIndent();\n      }\n      if (node.readonlyToken) {\n        emit(node.readonlyToken);\n        if (node.readonlyToken.kind !== 146) {\n          writeKeyword(\"readonly\");\n        }\n        writeSpace();\n      }\n      writePunctuation(\"[\");\n      pipelineEmit(3, node.typeParameter);\n      if (node.nameType) {\n        writeSpace();\n        writeKeyword(\"as\");\n        writeSpace();\n        emit(node.nameType);\n      }\n      writePunctuation(\"]\");\n      if (node.questionToken) {\n        emit(node.questionToken);\n        if (node.questionToken.kind !== 57) {\n          writePunctuation(\"?\");\n        }\n      }\n      writePunctuation(\":\");\n      writeSpace();\n      emit(node.type);\n      writeTrailingSemicolon();\n      if (emitFlags & 1) {\n        writeSpace();\n      } else {\n        writeLine();\n        decreaseIndent();\n      }\n      emitList(node, node.members, 2);\n      writePunctuation(\"}\");\n    }\n    function emitLiteralType(node) {\n      emitExpression(node.literal);\n    }\n    function emitTemplateType(node) {\n      emit(node.head);\n      emitList(node, node.templateSpans, 262144);\n    }\n    function emitImportTypeNode(node) {\n      if (node.isTypeOf) {\n        writeKeyword(\"typeof\");\n        writeSpace();\n      }\n      writeKeyword(\"import\");\n      writePunctuation(\"(\");\n      emit(node.argument);\n      if (node.assertions) {\n        writePunctuation(\",\");\n        writeSpace();\n        writePunctuation(\"{\");\n        writeSpace();\n        writeKeyword(\"assert\");\n        writePunctuation(\":\");\n        writeSpace();\n        const elements = node.assertions.assertClause.elements;\n        emitList(node.assertions.assertClause, elements, 526226);\n        writeSpace();\n        writePunctuation(\"}\");\n      }\n      writePunctuation(\")\");\n      if (node.qualifier) {\n        writePunctuation(\".\");\n        emit(node.qualifier);\n      }\n      emitTypeArguments(node, node.typeArguments);\n    }\n    function emitObjectBindingPattern(node) {\n      writePunctuation(\"{\");\n      emitList(node, node.elements, 525136);\n      writePunctuation(\"}\");\n    }\n    function emitArrayBindingPattern(node) {\n      writePunctuation(\"[\");\n      emitList(node, node.elements, 524880);\n      writePunctuation(\"]\");\n    }\n    function emitBindingElement(node) {\n      emit(node.dotDotDotToken);\n      if (node.propertyName) {\n        emit(node.propertyName);\n        writePunctuation(\":\");\n        writeSpace();\n      }\n      emit(node.name);\n      emitInitializer(node.initializer, node.name.end, node, parenthesizer.parenthesizeExpressionForDisallowedComma);\n    }\n    function emitArrayLiteralExpression(node) {\n      const elements = node.elements;\n      const preferNewLine = node.multiLine ? 65536 : 0;\n      emitExpressionList(node, elements, 8914 | preferNewLine, parenthesizer.parenthesizeExpressionForDisallowedComma);\n    }\n    function emitObjectLiteralExpression(node) {\n      pushPrivateNameGenerationScope(0, void 0);\n      forEach(node.properties, generateMemberNames);\n      const indentedFlag = getEmitFlags(node) & 131072;\n      if (indentedFlag) {\n        increaseIndent();\n      }\n      const preferNewLine = node.multiLine ? 65536 : 0;\n      const allowTrailingComma = currentSourceFile && currentSourceFile.languageVersion >= 1 && !isJsonSourceFile(currentSourceFile) ? 64 : 0;\n      emitList(node, node.properties, 526226 | allowTrailingComma | preferNewLine);\n      if (indentedFlag) {\n        decreaseIndent();\n      }\n      popPrivateNameGenerationScope();\n    }\n    function emitPropertyAccessExpression(node) {\n      emitExpression(node.expression, parenthesizer.parenthesizeLeftSideOfAccess);\n      const token = node.questionDotToken || setTextRangePosEnd(factory.createToken(24), node.expression.end, node.name.pos);\n      const linesBeforeDot = getLinesBetweenNodes(node, node.expression, token);\n      const linesAfterDot = getLinesBetweenNodes(node, token, node.name);\n      writeLinesAndIndent(linesBeforeDot, false);\n      const shouldEmitDotDot = token.kind !== 28 && mayNeedDotDotForPropertyAccess(node.expression) && !writer.hasTrailingComment() && !writer.hasTrailingWhitespace();\n      if (shouldEmitDotDot) {\n        writePunctuation(\".\");\n      }\n      if (node.questionDotToken) {\n        emit(token);\n      } else {\n        emitTokenWithComment(token.kind, node.expression.end, writePunctuation, node);\n      }\n      writeLinesAndIndent(linesAfterDot, false);\n      emit(node.name);\n      decreaseIndentIf(linesBeforeDot, linesAfterDot);\n    }\n    function mayNeedDotDotForPropertyAccess(expression) {\n      expression = skipPartiallyEmittedExpressions(expression);\n      if (isNumericLiteral(expression)) {\n        const text = getLiteralTextOfNode(expression, true, false);\n        return !expression.numericLiteralFlags && !stringContains(text, tokenToString(24));\n      } else if (isAccessExpression(expression)) {\n        const constantValue = getConstantValue(expression);\n        return typeof constantValue === \"number\" && isFinite(constantValue) && Math.floor(constantValue) === constantValue;\n      }\n    }\n    function emitElementAccessExpression(node) {\n      emitExpression(node.expression, parenthesizer.parenthesizeLeftSideOfAccess);\n      emit(node.questionDotToken);\n      emitTokenWithComment(22, node.expression.end, writePunctuation, node);\n      emitExpression(node.argumentExpression);\n      emitTokenWithComment(23, node.argumentExpression.end, writePunctuation, node);\n    }\n    function emitCallExpression(node) {\n      const indirectCall = getInternalEmitFlags(node) & 16;\n      if (indirectCall) {\n        writePunctuation(\"(\");\n        writeLiteral(\"0\");\n        writePunctuation(\",\");\n        writeSpace();\n      }\n      emitExpression(node.expression, parenthesizer.parenthesizeLeftSideOfAccess);\n      if (indirectCall) {\n        writePunctuation(\")\");\n      }\n      emit(node.questionDotToken);\n      emitTypeArguments(node, node.typeArguments);\n      emitExpressionList(node, node.arguments, 2576, parenthesizer.parenthesizeExpressionForDisallowedComma);\n    }\n    function emitNewExpression(node) {\n      emitTokenWithComment(103, node.pos, writeKeyword, node);\n      writeSpace();\n      emitExpression(node.expression, parenthesizer.parenthesizeExpressionOfNew);\n      emitTypeArguments(node, node.typeArguments);\n      emitExpressionList(node, node.arguments, 18960, parenthesizer.parenthesizeExpressionForDisallowedComma);\n    }\n    function emitTaggedTemplateExpression(node) {\n      const indirectCall = getInternalEmitFlags(node) & 16;\n      if (indirectCall) {\n        writePunctuation(\"(\");\n        writeLiteral(\"0\");\n        writePunctuation(\",\");\n        writeSpace();\n      }\n      emitExpression(node.tag, parenthesizer.parenthesizeLeftSideOfAccess);\n      if (indirectCall) {\n        writePunctuation(\")\");\n      }\n      emitTypeArguments(node, node.typeArguments);\n      writeSpace();\n      emitExpression(node.template);\n    }\n    function emitTypeAssertionExpression(node) {\n      writePunctuation(\"<\");\n      emit(node.type);\n      writePunctuation(\">\");\n      emitExpression(node.expression, parenthesizer.parenthesizeOperandOfPrefixUnary);\n    }\n    function emitParenthesizedExpression(node) {\n      const openParenPos = emitTokenWithComment(20, node.pos, writePunctuation, node);\n      const indented = writeLineSeparatorsAndIndentBefore(node.expression, node);\n      emitExpression(node.expression, void 0);\n      writeLineSeparatorsAfter(node.expression, node);\n      decreaseIndentIf(indented);\n      emitTokenWithComment(21, node.expression ? node.expression.end : openParenPos, writePunctuation, node);\n    }\n    function emitFunctionExpression(node) {\n      generateNameIfNeeded(node.name);\n      emitFunctionDeclarationOrExpression(node);\n    }\n    function emitArrowFunction(node) {\n      emitModifierList(node, node.modifiers);\n      emitSignatureAndBody(node, emitArrowFunctionHead);\n    }\n    function emitArrowFunctionHead(node) {\n      emitTypeParameters(node, node.typeParameters);\n      emitParametersForArrow(node, node.parameters);\n      emitTypeAnnotation(node.type);\n      writeSpace();\n      emit(node.equalsGreaterThanToken);\n    }\n    function emitDeleteExpression(node) {\n      emitTokenWithComment(89, node.pos, writeKeyword, node);\n      writeSpace();\n      emitExpression(node.expression, parenthesizer.parenthesizeOperandOfPrefixUnary);\n    }\n    function emitTypeOfExpression(node) {\n      emitTokenWithComment(112, node.pos, writeKeyword, node);\n      writeSpace();\n      emitExpression(node.expression, parenthesizer.parenthesizeOperandOfPrefixUnary);\n    }\n    function emitVoidExpression(node) {\n      emitTokenWithComment(114, node.pos, writeKeyword, node);\n      writeSpace();\n      emitExpression(node.expression, parenthesizer.parenthesizeOperandOfPrefixUnary);\n    }\n    function emitAwaitExpression(node) {\n      emitTokenWithComment(133, node.pos, writeKeyword, node);\n      writeSpace();\n      emitExpression(node.expression, parenthesizer.parenthesizeOperandOfPrefixUnary);\n    }\n    function emitPrefixUnaryExpression(node) {\n      writeTokenText(node.operator, writeOperator);\n      if (shouldEmitWhitespaceBeforeOperand(node)) {\n        writeSpace();\n      }\n      emitExpression(node.operand, parenthesizer.parenthesizeOperandOfPrefixUnary);\n    }\n    function shouldEmitWhitespaceBeforeOperand(node) {\n      const operand = node.operand;\n      return operand.kind === 221 && (node.operator === 39 && (operand.operator === 39 || operand.operator === 45) || node.operator === 40 && (operand.operator === 40 || operand.operator === 46));\n    }\n    function emitPostfixUnaryExpression(node) {\n      emitExpression(node.operand, parenthesizer.parenthesizeOperandOfPostfixUnary);\n      writeTokenText(node.operator, writeOperator);\n    }\n    function createEmitBinaryExpression() {\n      return createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight, onExit, void 0);\n      function onEnter(node, state) {\n        if (state) {\n          state.stackIndex++;\n          state.preserveSourceNewlinesStack[state.stackIndex] = preserveSourceNewlines;\n          state.containerPosStack[state.stackIndex] = containerPos;\n          state.containerEndStack[state.stackIndex] = containerEnd;\n          state.declarationListContainerEndStack[state.stackIndex] = declarationListContainerEnd;\n          const emitComments2 = state.shouldEmitCommentsStack[state.stackIndex] = shouldEmitComments(node);\n          const emitSourceMaps = state.shouldEmitSourceMapsStack[state.stackIndex] = shouldEmitSourceMaps(node);\n          onBeforeEmitNode == null ? void 0 : onBeforeEmitNode(node);\n          if (emitComments2)\n            emitCommentsBeforeNode(node);\n          if (emitSourceMaps)\n            emitSourceMapsBeforeNode(node);\n          beforeEmitNode(node);\n        } else {\n          state = {\n            stackIndex: 0,\n            preserveSourceNewlinesStack: [void 0],\n            containerPosStack: [-1],\n            containerEndStack: [-1],\n            declarationListContainerEndStack: [-1],\n            shouldEmitCommentsStack: [false],\n            shouldEmitSourceMapsStack: [false]\n          };\n        }\n        return state;\n      }\n      function onLeft(next, _workArea, parent2) {\n        return maybeEmitExpression(next, parent2, \"left\");\n      }\n      function onOperator(operatorToken, _state, node) {\n        const isCommaOperator = operatorToken.kind !== 27;\n        const linesBeforeOperator = getLinesBetweenNodes(node, node.left, operatorToken);\n        const linesAfterOperator = getLinesBetweenNodes(node, operatorToken, node.right);\n        writeLinesAndIndent(linesBeforeOperator, isCommaOperator);\n        emitLeadingCommentsOfPosition(operatorToken.pos);\n        writeTokenNode(operatorToken, operatorToken.kind === 101 ? writeKeyword : writeOperator);\n        emitTrailingCommentsOfPosition(operatorToken.end, true);\n        writeLinesAndIndent(linesAfterOperator, true);\n      }\n      function onRight(next, _workArea, parent2) {\n        return maybeEmitExpression(next, parent2, \"right\");\n      }\n      function onExit(node, state) {\n        const linesBeforeOperator = getLinesBetweenNodes(node, node.left, node.operatorToken);\n        const linesAfterOperator = getLinesBetweenNodes(node, node.operatorToken, node.right);\n        decreaseIndentIf(linesBeforeOperator, linesAfterOperator);\n        if (state.stackIndex > 0) {\n          const savedPreserveSourceNewlines = state.preserveSourceNewlinesStack[state.stackIndex];\n          const savedContainerPos = state.containerPosStack[state.stackIndex];\n          const savedContainerEnd = state.containerEndStack[state.stackIndex];\n          const savedDeclarationListContainerEnd = state.declarationListContainerEndStack[state.stackIndex];\n          const shouldEmitComments2 = state.shouldEmitCommentsStack[state.stackIndex];\n          const shouldEmitSourceMaps2 = state.shouldEmitSourceMapsStack[state.stackIndex];\n          afterEmitNode(savedPreserveSourceNewlines);\n          if (shouldEmitSourceMaps2)\n            emitSourceMapsAfterNode(node);\n          if (shouldEmitComments2)\n            emitCommentsAfterNode(node, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd);\n          onAfterEmitNode == null ? void 0 : onAfterEmitNode(node);\n          state.stackIndex--;\n        }\n      }\n      function maybeEmitExpression(next, parent2, side) {\n        const parenthesizerRule = side === \"left\" ? parenthesizer.getParenthesizeLeftSideOfBinaryForOperator(parent2.operatorToken.kind) : parenthesizer.getParenthesizeRightSideOfBinaryForOperator(parent2.operatorToken.kind);\n        let pipelinePhase = getPipelinePhase(0, 1, next);\n        if (pipelinePhase === pipelineEmitWithSubstitution) {\n          Debug.assertIsDefined(lastSubstitution);\n          next = parenthesizerRule(cast(lastSubstitution, isExpression));\n          pipelinePhase = getNextPipelinePhase(1, 1, next);\n          lastSubstitution = void 0;\n        }\n        if (pipelinePhase === pipelineEmitWithComments || pipelinePhase === pipelineEmitWithSourceMaps || pipelinePhase === pipelineEmitWithHint) {\n          if (isBinaryExpression(next)) {\n            return next;\n          }\n        }\n        currentParenthesizerRule = parenthesizerRule;\n        pipelinePhase(1, next);\n      }\n    }\n    function emitConditionalExpression(node) {\n      const linesBeforeQuestion = getLinesBetweenNodes(node, node.condition, node.questionToken);\n      const linesAfterQuestion = getLinesBetweenNodes(node, node.questionToken, node.whenTrue);\n      const linesBeforeColon = getLinesBetweenNodes(node, node.whenTrue, node.colonToken);\n      const linesAfterColon = getLinesBetweenNodes(node, node.colonToken, node.whenFalse);\n      emitExpression(node.condition, parenthesizer.parenthesizeConditionOfConditionalExpression);\n      writeLinesAndIndent(linesBeforeQuestion, true);\n      emit(node.questionToken);\n      writeLinesAndIndent(linesAfterQuestion, true);\n      emitExpression(node.whenTrue, parenthesizer.parenthesizeBranchOfConditionalExpression);\n      decreaseIndentIf(linesBeforeQuestion, linesAfterQuestion);\n      writeLinesAndIndent(linesBeforeColon, true);\n      emit(node.colonToken);\n      writeLinesAndIndent(linesAfterColon, true);\n      emitExpression(node.whenFalse, parenthesizer.parenthesizeBranchOfConditionalExpression);\n      decreaseIndentIf(linesBeforeColon, linesAfterColon);\n    }\n    function emitTemplateExpression(node) {\n      emit(node.head);\n      emitList(node, node.templateSpans, 262144);\n    }\n    function emitYieldExpression(node) {\n      emitTokenWithComment(125, node.pos, writeKeyword, node);\n      emit(node.asteriskToken);\n      emitExpressionWithLeadingSpace(node.expression && parenthesizeExpressionForNoAsi(node.expression), parenthesizeExpressionForNoAsiAndDisallowedComma);\n    }\n    function emitSpreadElement(node) {\n      emitTokenWithComment(25, node.pos, writePunctuation, node);\n      emitExpression(node.expression, parenthesizer.parenthesizeExpressionForDisallowedComma);\n    }\n    function emitClassExpression(node) {\n      generateNameIfNeeded(node.name);\n      emitClassDeclarationOrExpression(node);\n    }\n    function emitExpressionWithTypeArguments(node) {\n      emitExpression(node.expression, parenthesizer.parenthesizeLeftSideOfAccess);\n      emitTypeArguments(node, node.typeArguments);\n    }\n    function emitAsExpression(node) {\n      emitExpression(node.expression, void 0);\n      if (node.type) {\n        writeSpace();\n        writeKeyword(\"as\");\n        writeSpace();\n        emit(node.type);\n      }\n    }\n    function emitNonNullExpression(node) {\n      emitExpression(node.expression, parenthesizer.parenthesizeLeftSideOfAccess);\n      writeOperator(\"!\");\n    }\n    function emitSatisfiesExpression(node) {\n      emitExpression(node.expression, void 0);\n      if (node.type) {\n        writeSpace();\n        writeKeyword(\"satisfies\");\n        writeSpace();\n        emit(node.type);\n      }\n    }\n    function emitMetaProperty(node) {\n      writeToken(node.keywordToken, node.pos, writePunctuation);\n      writePunctuation(\".\");\n      emit(node.name);\n    }\n    function emitTemplateSpan(node) {\n      emitExpression(node.expression);\n      emit(node.literal);\n    }\n    function emitBlock(node) {\n      emitBlockStatements(node, !node.multiLine && isEmptyBlock(node));\n    }\n    function emitBlockStatements(node, forceSingleLine) {\n      emitTokenWithComment(18, node.pos, writePunctuation, node);\n      const format = forceSingleLine || getEmitFlags(node) & 1 ? 768 : 129;\n      emitList(node, node.statements, format);\n      emitTokenWithComment(19, node.statements.end, writePunctuation, node, !!(format & 1));\n    }\n    function emitVariableStatement(node) {\n      emitDecoratorsAndModifiers(node, node.modifiers, false);\n      emit(node.declarationList);\n      writeTrailingSemicolon();\n    }\n    function emitEmptyStatement(isEmbeddedStatement) {\n      if (isEmbeddedStatement) {\n        writePunctuation(\";\");\n      } else {\n        writeTrailingSemicolon();\n      }\n    }\n    function emitExpressionStatement(node) {\n      emitExpression(node.expression, parenthesizer.parenthesizeExpressionOfExpressionStatement);\n      if (!currentSourceFile || !isJsonSourceFile(currentSourceFile) || nodeIsSynthesized(node.expression)) {\n        writeTrailingSemicolon();\n      }\n    }\n    function emitIfStatement(node) {\n      const openParenPos = emitTokenWithComment(99, node.pos, writeKeyword, node);\n      writeSpace();\n      emitTokenWithComment(20, openParenPos, writePunctuation, node);\n      emitExpression(node.expression);\n      emitTokenWithComment(21, node.expression.end, writePunctuation, node);\n      emitEmbeddedStatement(node, node.thenStatement);\n      if (node.elseStatement) {\n        writeLineOrSpace(node, node.thenStatement, node.elseStatement);\n        emitTokenWithComment(91, node.thenStatement.end, writeKeyword, node);\n        if (node.elseStatement.kind === 242) {\n          writeSpace();\n          emit(node.elseStatement);\n        } else {\n          emitEmbeddedStatement(node, node.elseStatement);\n        }\n      }\n    }\n    function emitWhileClause(node, startPos) {\n      const openParenPos = emitTokenWithComment(115, startPos, writeKeyword, node);\n      writeSpace();\n      emitTokenWithComment(20, openParenPos, writePunctuation, node);\n      emitExpression(node.expression);\n      emitTokenWithComment(21, node.expression.end, writePunctuation, node);\n    }\n    function emitDoStatement(node) {\n      emitTokenWithComment(90, node.pos, writeKeyword, node);\n      emitEmbeddedStatement(node, node.statement);\n      if (isBlock(node.statement) && !preserveSourceNewlines) {\n        writeSpace();\n      } else {\n        writeLineOrSpace(node, node.statement, node.expression);\n      }\n      emitWhileClause(node, node.statement.end);\n      writeTrailingSemicolon();\n    }\n    function emitWhileStatement(node) {\n      emitWhileClause(node, node.pos);\n      emitEmbeddedStatement(node, node.statement);\n    }\n    function emitForStatement(node) {\n      const openParenPos = emitTokenWithComment(97, node.pos, writeKeyword, node);\n      writeSpace();\n      let pos = emitTokenWithComment(20, openParenPos, writePunctuation, node);\n      emitForBinding(node.initializer);\n      pos = emitTokenWithComment(26, node.initializer ? node.initializer.end : pos, writePunctuation, node);\n      emitExpressionWithLeadingSpace(node.condition);\n      pos = emitTokenWithComment(26, node.condition ? node.condition.end : pos, writePunctuation, node);\n      emitExpressionWithLeadingSpace(node.incrementor);\n      emitTokenWithComment(21, node.incrementor ? node.incrementor.end : pos, writePunctuation, node);\n      emitEmbeddedStatement(node, node.statement);\n    }\n    function emitForInStatement(node) {\n      const openParenPos = emitTokenWithComment(97, node.pos, writeKeyword, node);\n      writeSpace();\n      emitTokenWithComment(20, openParenPos, writePunctuation, node);\n      emitForBinding(node.initializer);\n      writeSpace();\n      emitTokenWithComment(101, node.initializer.end, writeKeyword, node);\n      writeSpace();\n      emitExpression(node.expression);\n      emitTokenWithComment(21, node.expression.end, writePunctuation, node);\n      emitEmbeddedStatement(node, node.statement);\n    }\n    function emitForOfStatement(node) {\n      const openParenPos = emitTokenWithComment(97, node.pos, writeKeyword, node);\n      writeSpace();\n      emitWithTrailingSpace(node.awaitModifier);\n      emitTokenWithComment(20, openParenPos, writePunctuation, node);\n      emitForBinding(node.initializer);\n      writeSpace();\n      emitTokenWithComment(162, node.initializer.end, writeKeyword, node);\n      writeSpace();\n      emitExpression(node.expression);\n      emitTokenWithComment(21, node.expression.end, writePunctuation, node);\n      emitEmbeddedStatement(node, node.statement);\n    }\n    function emitForBinding(node) {\n      if (node !== void 0) {\n        if (node.kind === 258) {\n          emit(node);\n        } else {\n          emitExpression(node);\n        }\n      }\n    }\n    function emitContinueStatement(node) {\n      emitTokenWithComment(86, node.pos, writeKeyword, node);\n      emitWithLeadingSpace(node.label);\n      writeTrailingSemicolon();\n    }\n    function emitBreakStatement(node) {\n      emitTokenWithComment(81, node.pos, writeKeyword, node);\n      emitWithLeadingSpace(node.label);\n      writeTrailingSemicolon();\n    }\n    function emitTokenWithComment(token, pos, writer2, contextNode, indentLeading) {\n      const node = getParseTreeNode(contextNode);\n      const isSimilarNode = node && node.kind === contextNode.kind;\n      const startPos = pos;\n      if (isSimilarNode && currentSourceFile) {\n        pos = skipTrivia(currentSourceFile.text, pos);\n      }\n      if (isSimilarNode && contextNode.pos !== startPos) {\n        const needsIndent = indentLeading && currentSourceFile && !positionsAreOnSameLine(startPos, pos, currentSourceFile);\n        if (needsIndent) {\n          increaseIndent();\n        }\n        emitLeadingCommentsOfPosition(startPos);\n        if (needsIndent) {\n          decreaseIndent();\n        }\n      }\n      pos = writeTokenText(token, writer2, pos);\n      if (isSimilarNode && contextNode.end !== pos) {\n        const isJsxExprContext = contextNode.kind === 291;\n        emitTrailingCommentsOfPosition(pos, !isJsxExprContext, isJsxExprContext);\n      }\n      return pos;\n    }\n    function commentWillEmitNewLine(node) {\n      return node.kind === 2 || !!node.hasTrailingNewLine;\n    }\n    function willEmitLeadingNewLine(node) {\n      if (!currentSourceFile)\n        return false;\n      if (some(getLeadingCommentRanges(currentSourceFile.text, node.pos), commentWillEmitNewLine))\n        return true;\n      if (some(getSyntheticLeadingComments(node), commentWillEmitNewLine))\n        return true;\n      if (isPartiallyEmittedExpression(node)) {\n        if (node.pos !== node.expression.pos) {\n          if (some(getTrailingCommentRanges(currentSourceFile.text, node.expression.pos), commentWillEmitNewLine))\n            return true;\n        }\n        return willEmitLeadingNewLine(node.expression);\n      }\n      return false;\n    }\n    function parenthesizeExpressionForNoAsi(node) {\n      if (!commentsDisabled && isPartiallyEmittedExpression(node) && willEmitLeadingNewLine(node)) {\n        const parseNode = getParseTreeNode(node);\n        if (parseNode && isParenthesizedExpression(parseNode)) {\n          const parens = factory.createParenthesizedExpression(node.expression);\n          setOriginalNode(parens, node);\n          setTextRange(parens, parseNode);\n          return parens;\n        }\n        return factory.createParenthesizedExpression(node);\n      }\n      return node;\n    }\n    function parenthesizeExpressionForNoAsiAndDisallowedComma(node) {\n      return parenthesizeExpressionForNoAsi(parenthesizer.parenthesizeExpressionForDisallowedComma(node));\n    }\n    function emitReturnStatement(node) {\n      emitTokenWithComment(105, node.pos, writeKeyword, node);\n      emitExpressionWithLeadingSpace(node.expression && parenthesizeExpressionForNoAsi(node.expression), parenthesizeExpressionForNoAsi);\n      writeTrailingSemicolon();\n    }\n    function emitWithStatement(node) {\n      const openParenPos = emitTokenWithComment(116, node.pos, writeKeyword, node);\n      writeSpace();\n      emitTokenWithComment(20, openParenPos, writePunctuation, node);\n      emitExpression(node.expression);\n      emitTokenWithComment(21, node.expression.end, writePunctuation, node);\n      emitEmbeddedStatement(node, node.statement);\n    }\n    function emitSwitchStatement(node) {\n      const openParenPos = emitTokenWithComment(107, node.pos, writeKeyword, node);\n      writeSpace();\n      emitTokenWithComment(20, openParenPos, writePunctuation, node);\n      emitExpression(node.expression);\n      emitTokenWithComment(21, node.expression.end, writePunctuation, node);\n      writeSpace();\n      emit(node.caseBlock);\n    }\n    function emitLabeledStatement(node) {\n      emit(node.label);\n      emitTokenWithComment(58, node.label.end, writePunctuation, node);\n      writeSpace();\n      emit(node.statement);\n    }\n    function emitThrowStatement(node) {\n      emitTokenWithComment(109, node.pos, writeKeyword, node);\n      emitExpressionWithLeadingSpace(parenthesizeExpressionForNoAsi(node.expression), parenthesizeExpressionForNoAsi);\n      writeTrailingSemicolon();\n    }\n    function emitTryStatement(node) {\n      emitTokenWithComment(111, node.pos, writeKeyword, node);\n      writeSpace();\n      emit(node.tryBlock);\n      if (node.catchClause) {\n        writeLineOrSpace(node, node.tryBlock, node.catchClause);\n        emit(node.catchClause);\n      }\n      if (node.finallyBlock) {\n        writeLineOrSpace(node, node.catchClause || node.tryBlock, node.finallyBlock);\n        emitTokenWithComment(96, (node.catchClause || node.tryBlock).end, writeKeyword, node);\n        writeSpace();\n        emit(node.finallyBlock);\n      }\n    }\n    function emitDebuggerStatement(node) {\n      writeToken(87, node.pos, writeKeyword);\n      writeTrailingSemicolon();\n    }\n    function emitVariableDeclaration(node) {\n      var _a2, _b, _c, _d, _e;\n      emit(node.name);\n      emit(node.exclamationToken);\n      emitTypeAnnotation(node.type);\n      emitInitializer(node.initializer, (_e = (_d = (_a2 = node.type) == null ? void 0 : _a2.end) != null ? _d : (_c = (_b = node.name.emitNode) == null ? void 0 : _b.typeNode) == null ? void 0 : _c.end) != null ? _e : node.name.end, node, parenthesizer.parenthesizeExpressionForDisallowedComma);\n    }\n    function emitVariableDeclarationList(node) {\n      writeKeyword(isLet(node) ? \"let\" : isVarConst(node) ? \"const\" : \"var\");\n      writeSpace();\n      emitList(node, node.declarations, 528);\n    }\n    function emitFunctionDeclaration(node) {\n      emitFunctionDeclarationOrExpression(node);\n    }\n    function emitFunctionDeclarationOrExpression(node) {\n      emitDecoratorsAndModifiers(node, node.modifiers, false);\n      writeKeyword(\"function\");\n      emit(node.asteriskToken);\n      writeSpace();\n      emitIdentifierName(node.name);\n      emitSignatureAndBody(node, emitSignatureHead);\n    }\n    function emitSignatureAndBody(node, emitSignatureHead2) {\n      const body = node.body;\n      if (body) {\n        if (isBlock(body)) {\n          const indentedFlag = getEmitFlags(node) & 131072;\n          if (indentedFlag) {\n            increaseIndent();\n          }\n          pushNameGenerationScope(node);\n          forEach(node.parameters, generateNames);\n          generateNames(node.body);\n          emitSignatureHead2(node);\n          emitBlockFunctionBody(body);\n          popNameGenerationScope(node);\n          if (indentedFlag) {\n            decreaseIndent();\n          }\n        } else {\n          emitSignatureHead2(node);\n          writeSpace();\n          emitExpression(body, parenthesizer.parenthesizeConciseBodyOfArrowFunction);\n        }\n      } else {\n        emitSignatureHead2(node);\n        writeTrailingSemicolon();\n      }\n    }\n    function emitSignatureHead(node) {\n      emitTypeParameters(node, node.typeParameters);\n      emitParameters(node, node.parameters);\n      emitTypeAnnotation(node.type);\n    }\n    function shouldEmitBlockFunctionBodyOnSingleLine(body) {\n      if (getEmitFlags(body) & 1) {\n        return true;\n      }\n      if (body.multiLine) {\n        return false;\n      }\n      if (!nodeIsSynthesized(body) && currentSourceFile && !rangeIsOnSingleLine(body, currentSourceFile)) {\n        return false;\n      }\n      if (getLeadingLineTerminatorCount(body, firstOrUndefined(body.statements), 2) || getClosingLineTerminatorCount(body, lastOrUndefined(body.statements), 2, body.statements)) {\n        return false;\n      }\n      let previousStatement;\n      for (const statement of body.statements) {\n        if (getSeparatingLineTerminatorCount(previousStatement, statement, 2) > 0) {\n          return false;\n        }\n        previousStatement = statement;\n      }\n      return true;\n    }\n    function emitBlockFunctionBody(body) {\n      onBeforeEmitNode == null ? void 0 : onBeforeEmitNode(body);\n      writeSpace();\n      writePunctuation(\"{\");\n      increaseIndent();\n      const emitBlockFunctionBody2 = shouldEmitBlockFunctionBodyOnSingleLine(body) ? emitBlockFunctionBodyOnSingleLine : emitBlockFunctionBodyWorker;\n      emitBodyWithDetachedComments(body, body.statements, emitBlockFunctionBody2);\n      decreaseIndent();\n      writeToken(19, body.statements.end, writePunctuation, body);\n      onAfterEmitNode == null ? void 0 : onAfterEmitNode(body);\n    }\n    function emitBlockFunctionBodyOnSingleLine(body) {\n      emitBlockFunctionBodyWorker(body, true);\n    }\n    function emitBlockFunctionBodyWorker(body, emitBlockFunctionBodyOnSingleLine2) {\n      const statementOffset = emitPrologueDirectives(body.statements);\n      const pos = writer.getTextPos();\n      emitHelpers(body);\n      if (statementOffset === 0 && pos === writer.getTextPos() && emitBlockFunctionBodyOnSingleLine2) {\n        decreaseIndent();\n        emitList(body, body.statements, 768);\n        increaseIndent();\n      } else {\n        emitList(body, body.statements, 1, void 0, statementOffset);\n      }\n    }\n    function emitClassDeclaration(node) {\n      emitClassDeclarationOrExpression(node);\n    }\n    function emitClassDeclarationOrExpression(node) {\n      pushPrivateNameGenerationScope(0, void 0);\n      forEach(node.members, generateMemberNames);\n      emitDecoratorsAndModifiers(node, node.modifiers, true);\n      emitTokenWithComment(84, moveRangePastModifiers(node).pos, writeKeyword, node);\n      if (node.name) {\n        writeSpace();\n        emitIdentifierName(node.name);\n      }\n      const indentedFlag = getEmitFlags(node) & 131072;\n      if (indentedFlag) {\n        increaseIndent();\n      }\n      emitTypeParameters(node, node.typeParameters);\n      emitList(node, node.heritageClauses, 0);\n      writeSpace();\n      writePunctuation(\"{\");\n      emitList(node, node.members, 129);\n      writePunctuation(\"}\");\n      if (indentedFlag) {\n        decreaseIndent();\n      }\n      popPrivateNameGenerationScope();\n    }\n    function emitInterfaceDeclaration(node) {\n      pushPrivateNameGenerationScope(0, void 0);\n      emitDecoratorsAndModifiers(node, node.modifiers, false);\n      writeKeyword(\"interface\");\n      writeSpace();\n      emit(node.name);\n      emitTypeParameters(node, node.typeParameters);\n      emitList(node, node.heritageClauses, 512);\n      writeSpace();\n      writePunctuation(\"{\");\n      emitList(node, node.members, 129);\n      writePunctuation(\"}\");\n      popPrivateNameGenerationScope();\n    }\n    function emitTypeAliasDeclaration(node) {\n      emitDecoratorsAndModifiers(node, node.modifiers, false);\n      writeKeyword(\"type\");\n      writeSpace();\n      emit(node.name);\n      emitTypeParameters(node, node.typeParameters);\n      writeSpace();\n      writePunctuation(\"=\");\n      writeSpace();\n      emit(node.type);\n      writeTrailingSemicolon();\n    }\n    function emitEnumDeclaration(node) {\n      emitDecoratorsAndModifiers(node, node.modifiers, false);\n      writeKeyword(\"enum\");\n      writeSpace();\n      emit(node.name);\n      writeSpace();\n      writePunctuation(\"{\");\n      emitList(node, node.members, 145);\n      writePunctuation(\"}\");\n    }\n    function emitModuleDeclaration(node) {\n      emitDecoratorsAndModifiers(node, node.modifiers, false);\n      if (~node.flags & 1024) {\n        writeKeyword(node.flags & 16 ? \"namespace\" : \"module\");\n        writeSpace();\n      }\n      emit(node.name);\n      let body = node.body;\n      if (!body)\n        return writeTrailingSemicolon();\n      while (body && isModuleDeclaration(body)) {\n        writePunctuation(\".\");\n        emit(body.name);\n        body = body.body;\n      }\n      writeSpace();\n      emit(body);\n    }\n    function emitModuleBlock(node) {\n      pushNameGenerationScope(node);\n      forEach(node.statements, generateNames);\n      emitBlockStatements(node, isEmptyBlock(node));\n      popNameGenerationScope(node);\n    }\n    function emitCaseBlock(node) {\n      emitTokenWithComment(18, node.pos, writePunctuation, node);\n      emitList(node, node.clauses, 129);\n      emitTokenWithComment(19, node.clauses.end, writePunctuation, node, true);\n    }\n    function emitImportEqualsDeclaration(node) {\n      emitDecoratorsAndModifiers(node, node.modifiers, false);\n      emitTokenWithComment(100, node.modifiers ? node.modifiers.end : node.pos, writeKeyword, node);\n      writeSpace();\n      if (node.isTypeOnly) {\n        emitTokenWithComment(154, node.pos, writeKeyword, node);\n        writeSpace();\n      }\n      emit(node.name);\n      writeSpace();\n      emitTokenWithComment(63, node.name.end, writePunctuation, node);\n      writeSpace();\n      emitModuleReference(node.moduleReference);\n      writeTrailingSemicolon();\n    }\n    function emitModuleReference(node) {\n      if (node.kind === 79) {\n        emitExpression(node);\n      } else {\n        emit(node);\n      }\n    }\n    function emitImportDeclaration(node) {\n      emitDecoratorsAndModifiers(node, node.modifiers, false);\n      emitTokenWithComment(100, node.modifiers ? node.modifiers.end : node.pos, writeKeyword, node);\n      writeSpace();\n      if (node.importClause) {\n        emit(node.importClause);\n        writeSpace();\n        emitTokenWithComment(158, node.importClause.end, writeKeyword, node);\n        writeSpace();\n      }\n      emitExpression(node.moduleSpecifier);\n      if (node.assertClause) {\n        emitWithLeadingSpace(node.assertClause);\n      }\n      writeTrailingSemicolon();\n    }\n    function emitImportClause(node) {\n      if (node.isTypeOnly) {\n        emitTokenWithComment(154, node.pos, writeKeyword, node);\n        writeSpace();\n      }\n      emit(node.name);\n      if (node.name && node.namedBindings) {\n        emitTokenWithComment(27, node.name.end, writePunctuation, node);\n        writeSpace();\n      }\n      emit(node.namedBindings);\n    }\n    function emitNamespaceImport(node) {\n      const asPos = emitTokenWithComment(41, node.pos, writePunctuation, node);\n      writeSpace();\n      emitTokenWithComment(128, asPos, writeKeyword, node);\n      writeSpace();\n      emit(node.name);\n    }\n    function emitNamedImports(node) {\n      emitNamedImportsOrExports(node);\n    }\n    function emitImportSpecifier(node) {\n      emitImportOrExportSpecifier(node);\n    }\n    function emitExportAssignment(node) {\n      const nextPos = emitTokenWithComment(93, node.pos, writeKeyword, node);\n      writeSpace();\n      if (node.isExportEquals) {\n        emitTokenWithComment(63, nextPos, writeOperator, node);\n      } else {\n        emitTokenWithComment(88, nextPos, writeKeyword, node);\n      }\n      writeSpace();\n      emitExpression(node.expression, node.isExportEquals ? parenthesizer.getParenthesizeRightSideOfBinaryForOperator(63) : parenthesizer.parenthesizeExpressionOfExportDefault);\n      writeTrailingSemicolon();\n    }\n    function emitExportDeclaration(node) {\n      emitDecoratorsAndModifiers(node, node.modifiers, false);\n      let nextPos = emitTokenWithComment(93, node.pos, writeKeyword, node);\n      writeSpace();\n      if (node.isTypeOnly) {\n        nextPos = emitTokenWithComment(154, nextPos, writeKeyword, node);\n        writeSpace();\n      }\n      if (node.exportClause) {\n        emit(node.exportClause);\n      } else {\n        nextPos = emitTokenWithComment(41, nextPos, writePunctuation, node);\n      }\n      if (node.moduleSpecifier) {\n        writeSpace();\n        const fromPos = node.exportClause ? node.exportClause.end : nextPos;\n        emitTokenWithComment(158, fromPos, writeKeyword, node);\n        writeSpace();\n        emitExpression(node.moduleSpecifier);\n      }\n      if (node.assertClause) {\n        emitWithLeadingSpace(node.assertClause);\n      }\n      writeTrailingSemicolon();\n    }\n    function emitAssertClause(node) {\n      emitTokenWithComment(130, node.pos, writeKeyword, node);\n      writeSpace();\n      const elements = node.elements;\n      emitList(node, elements, 526226);\n    }\n    function emitAssertEntry(node) {\n      emit(node.name);\n      writePunctuation(\":\");\n      writeSpace();\n      const value = node.value;\n      if ((getEmitFlags(value) & 1024) === 0) {\n        const commentRange = getCommentRange(value);\n        emitTrailingCommentsOfPosition(commentRange.pos);\n      }\n      emit(value);\n    }\n    function emitNamespaceExportDeclaration(node) {\n      let nextPos = emitTokenWithComment(93, node.pos, writeKeyword, node);\n      writeSpace();\n      nextPos = emitTokenWithComment(128, nextPos, writeKeyword, node);\n      writeSpace();\n      nextPos = emitTokenWithComment(143, nextPos, writeKeyword, node);\n      writeSpace();\n      emit(node.name);\n      writeTrailingSemicolon();\n    }\n    function emitNamespaceExport(node) {\n      const asPos = emitTokenWithComment(41, node.pos, writePunctuation, node);\n      writeSpace();\n      emitTokenWithComment(128, asPos, writeKeyword, node);\n      writeSpace();\n      emit(node.name);\n    }\n    function emitNamedExports(node) {\n      emitNamedImportsOrExports(node);\n    }\n    function emitExportSpecifier(node) {\n      emitImportOrExportSpecifier(node);\n    }\n    function emitNamedImportsOrExports(node) {\n      writePunctuation(\"{\");\n      emitList(node, node.elements, 525136);\n      writePunctuation(\"}\");\n    }\n    function emitImportOrExportSpecifier(node) {\n      if (node.isTypeOnly) {\n        writeKeyword(\"type\");\n        writeSpace();\n      }\n      if (node.propertyName) {\n        emit(node.propertyName);\n        writeSpace();\n        emitTokenWithComment(128, node.propertyName.end, writeKeyword, node);\n        writeSpace();\n      }\n      emit(node.name);\n    }\n    function emitExternalModuleReference(node) {\n      writeKeyword(\"require\");\n      writePunctuation(\"(\");\n      emitExpression(node.expression);\n      writePunctuation(\")\");\n    }\n    function emitJsxElement(node) {\n      emit(node.openingElement);\n      emitList(node, node.children, 262144);\n      emit(node.closingElement);\n    }\n    function emitJsxSelfClosingElement(node) {\n      writePunctuation(\"<\");\n      emitJsxTagName(node.tagName);\n      emitTypeArguments(node, node.typeArguments);\n      writeSpace();\n      emit(node.attributes);\n      writePunctuation(\"/>\");\n    }\n    function emitJsxFragment(node) {\n      emit(node.openingFragment);\n      emitList(node, node.children, 262144);\n      emit(node.closingFragment);\n    }\n    function emitJsxOpeningElementOrFragment(node) {\n      writePunctuation(\"<\");\n      if (isJsxOpeningElement(node)) {\n        const indented = writeLineSeparatorsAndIndentBefore(node.tagName, node);\n        emitJsxTagName(node.tagName);\n        emitTypeArguments(node, node.typeArguments);\n        if (node.attributes.properties && node.attributes.properties.length > 0) {\n          writeSpace();\n        }\n        emit(node.attributes);\n        writeLineSeparatorsAfter(node.attributes, node);\n        decreaseIndentIf(indented);\n      }\n      writePunctuation(\">\");\n    }\n    function emitJsxText(node) {\n      writer.writeLiteral(node.text);\n    }\n    function emitJsxClosingElementOrFragment(node) {\n      writePunctuation(\"</\");\n      if (isJsxClosingElement(node)) {\n        emitJsxTagName(node.tagName);\n      }\n      writePunctuation(\">\");\n    }\n    function emitJsxAttributes(node) {\n      emitList(node, node.properties, 262656);\n    }\n    function emitJsxAttribute(node) {\n      emit(node.name);\n      emitNodeWithPrefix(\"=\", writePunctuation, node.initializer, emitJsxAttributeValue);\n    }\n    function emitJsxSpreadAttribute(node) {\n      writePunctuation(\"{...\");\n      emitExpression(node.expression);\n      writePunctuation(\"}\");\n    }\n    function hasTrailingCommentsAtPosition(pos) {\n      let result = false;\n      forEachTrailingCommentRange((currentSourceFile == null ? void 0 : currentSourceFile.text) || \"\", pos + 1, () => result = true);\n      return result;\n    }\n    function hasLeadingCommentsAtPosition(pos) {\n      let result = false;\n      forEachLeadingCommentRange((currentSourceFile == null ? void 0 : currentSourceFile.text) || \"\", pos + 1, () => result = true);\n      return result;\n    }\n    function hasCommentsAtPosition(pos) {\n      return hasTrailingCommentsAtPosition(pos) || hasLeadingCommentsAtPosition(pos);\n    }\n    function emitJsxExpression(node) {\n      var _a2;\n      if (node.expression || !commentsDisabled && !nodeIsSynthesized(node) && hasCommentsAtPosition(node.pos)) {\n        const isMultiline = currentSourceFile && !nodeIsSynthesized(node) && getLineAndCharacterOfPosition(currentSourceFile, node.pos).line !== getLineAndCharacterOfPosition(currentSourceFile, node.end).line;\n        if (isMultiline) {\n          writer.increaseIndent();\n        }\n        const end = emitTokenWithComment(18, node.pos, writePunctuation, node);\n        emit(node.dotDotDotToken);\n        emitExpression(node.expression);\n        emitTokenWithComment(19, ((_a2 = node.expression) == null ? void 0 : _a2.end) || end, writePunctuation, node);\n        if (isMultiline) {\n          writer.decreaseIndent();\n        }\n      }\n    }\n    function emitJsxTagName(node) {\n      if (node.kind === 79) {\n        emitExpression(node);\n      } else {\n        emit(node);\n      }\n    }\n    function emitCaseClause(node) {\n      emitTokenWithComment(82, node.pos, writeKeyword, node);\n      writeSpace();\n      emitExpression(node.expression, parenthesizer.parenthesizeExpressionForDisallowedComma);\n      emitCaseOrDefaultClauseRest(node, node.statements, node.expression.end);\n    }\n    function emitDefaultClause(node) {\n      const pos = emitTokenWithComment(88, node.pos, writeKeyword, node);\n      emitCaseOrDefaultClauseRest(node, node.statements, pos);\n    }\n    function emitCaseOrDefaultClauseRest(parentNode, statements, colonPos) {\n      const emitAsSingleStatement = statements.length === 1 && (!currentSourceFile || nodeIsSynthesized(parentNode) || nodeIsSynthesized(statements[0]) || rangeStartPositionsAreOnSameLine(parentNode, statements[0], currentSourceFile));\n      let format = 163969;\n      if (emitAsSingleStatement) {\n        writeToken(58, colonPos, writePunctuation, parentNode);\n        writeSpace();\n        format &= ~(1 | 128);\n      } else {\n        emitTokenWithComment(58, colonPos, writePunctuation, parentNode);\n      }\n      emitList(parentNode, statements, format);\n    }\n    function emitHeritageClause(node) {\n      writeSpace();\n      writeTokenText(node.token, writeKeyword);\n      writeSpace();\n      emitList(node, node.types, 528);\n    }\n    function emitCatchClause(node) {\n      const openParenPos = emitTokenWithComment(83, node.pos, writeKeyword, node);\n      writeSpace();\n      if (node.variableDeclaration) {\n        emitTokenWithComment(20, openParenPos, writePunctuation, node);\n        emit(node.variableDeclaration);\n        emitTokenWithComment(21, node.variableDeclaration.end, writePunctuation, node);\n        writeSpace();\n      }\n      emit(node.block);\n    }\n    function emitPropertyAssignment(node) {\n      emit(node.name);\n      writePunctuation(\":\");\n      writeSpace();\n      const initializer = node.initializer;\n      if ((getEmitFlags(initializer) & 1024) === 0) {\n        const commentRange = getCommentRange(initializer);\n        emitTrailingCommentsOfPosition(commentRange.pos);\n      }\n      emitExpression(initializer, parenthesizer.parenthesizeExpressionForDisallowedComma);\n    }\n    function emitShorthandPropertyAssignment(node) {\n      emit(node.name);\n      if (node.objectAssignmentInitializer) {\n        writeSpace();\n        writePunctuation(\"=\");\n        writeSpace();\n        emitExpression(node.objectAssignmentInitializer, parenthesizer.parenthesizeExpressionForDisallowedComma);\n      }\n    }\n    function emitSpreadAssignment(node) {\n      if (node.expression) {\n        emitTokenWithComment(25, node.pos, writePunctuation, node);\n        emitExpression(node.expression, parenthesizer.parenthesizeExpressionForDisallowedComma);\n      }\n    }\n    function emitEnumMember(node) {\n      emit(node.name);\n      emitInitializer(node.initializer, node.name.end, node, parenthesizer.parenthesizeExpressionForDisallowedComma);\n    }\n    function emitJSDoc(node) {\n      write(\"/**\");\n      if (node.comment) {\n        const text = getTextOfJSDocComment(node.comment);\n        if (text) {\n          const lines = text.split(/\\r\\n?|\\n/g);\n          for (const line of lines) {\n            writeLine();\n            writeSpace();\n            writePunctuation(\"*\");\n            writeSpace();\n            write(line);\n          }\n        }\n      }\n      if (node.tags) {\n        if (node.tags.length === 1 && node.tags[0].kind === 347 && !node.comment) {\n          writeSpace();\n          emit(node.tags[0]);\n        } else {\n          emitList(node, node.tags, 33);\n        }\n      }\n      writeSpace();\n      write(\"*/\");\n    }\n    function emitJSDocSimpleTypedTag(tag) {\n      emitJSDocTagName(tag.tagName);\n      emitJSDocTypeExpression(tag.typeExpression);\n      emitJSDocComment(tag.comment);\n    }\n    function emitJSDocSeeTag(tag) {\n      emitJSDocTagName(tag.tagName);\n      emit(tag.name);\n      emitJSDocComment(tag.comment);\n    }\n    function emitJSDocNameReference(node) {\n      writeSpace();\n      writePunctuation(\"{\");\n      emit(node.name);\n      writePunctuation(\"}\");\n    }\n    function emitJSDocHeritageTag(tag) {\n      emitJSDocTagName(tag.tagName);\n      writeSpace();\n      writePunctuation(\"{\");\n      emit(tag.class);\n      writePunctuation(\"}\");\n      emitJSDocComment(tag.comment);\n    }\n    function emitJSDocTemplateTag(tag) {\n      emitJSDocTagName(tag.tagName);\n      emitJSDocTypeExpression(tag.constraint);\n      writeSpace();\n      emitList(tag, tag.typeParameters, 528);\n      emitJSDocComment(tag.comment);\n    }\n    function emitJSDocTypedefTag(tag) {\n      emitJSDocTagName(tag.tagName);\n      if (tag.typeExpression) {\n        if (tag.typeExpression.kind === 312) {\n          emitJSDocTypeExpression(tag.typeExpression);\n        } else {\n          writeSpace();\n          writePunctuation(\"{\");\n          write(\"Object\");\n          if (tag.typeExpression.isArrayType) {\n            writePunctuation(\"[\");\n            writePunctuation(\"]\");\n          }\n          writePunctuation(\"}\");\n        }\n      }\n      if (tag.fullName) {\n        writeSpace();\n        emit(tag.fullName);\n      }\n      emitJSDocComment(tag.comment);\n      if (tag.typeExpression && tag.typeExpression.kind === 325) {\n        emitJSDocTypeLiteral(tag.typeExpression);\n      }\n    }\n    function emitJSDocCallbackTag(tag) {\n      emitJSDocTagName(tag.tagName);\n      if (tag.name) {\n        writeSpace();\n        emit(tag.name);\n      }\n      emitJSDocComment(tag.comment);\n      emitJSDocSignature(tag.typeExpression);\n    }\n    function emitJSDocOverloadTag(tag) {\n      emitJSDocComment(tag.comment);\n      emitJSDocSignature(tag.typeExpression);\n    }\n    function emitJSDocSimpleTag(tag) {\n      emitJSDocTagName(tag.tagName);\n      emitJSDocComment(tag.comment);\n    }\n    function emitJSDocTypeLiteral(lit) {\n      emitList(lit, factory.createNodeArray(lit.jsDocPropertyTags), 33);\n    }\n    function emitJSDocSignature(sig) {\n      if (sig.typeParameters) {\n        emitList(sig, factory.createNodeArray(sig.typeParameters), 33);\n      }\n      if (sig.parameters) {\n        emitList(sig, factory.createNodeArray(sig.parameters), 33);\n      }\n      if (sig.type) {\n        writeLine();\n        writeSpace();\n        writePunctuation(\"*\");\n        writeSpace();\n        emit(sig.type);\n      }\n    }\n    function emitJSDocPropertyLikeTag(param) {\n      emitJSDocTagName(param.tagName);\n      emitJSDocTypeExpression(param.typeExpression);\n      writeSpace();\n      if (param.isBracketed) {\n        writePunctuation(\"[\");\n      }\n      emit(param.name);\n      if (param.isBracketed) {\n        writePunctuation(\"]\");\n      }\n      emitJSDocComment(param.comment);\n    }\n    function emitJSDocTagName(tagName) {\n      writePunctuation(\"@\");\n      emit(tagName);\n    }\n    function emitJSDocComment(comment) {\n      const text = getTextOfJSDocComment(comment);\n      if (text) {\n        writeSpace();\n        write(text);\n      }\n    }\n    function emitJSDocTypeExpression(typeExpression) {\n      if (typeExpression) {\n        writeSpace();\n        writePunctuation(\"{\");\n        emit(typeExpression.type);\n        writePunctuation(\"}\");\n      }\n    }\n    function emitSourceFile(node) {\n      writeLine();\n      const statements = node.statements;\n      const shouldEmitDetachedComment = statements.length === 0 || !isPrologueDirective(statements[0]) || nodeIsSynthesized(statements[0]);\n      if (shouldEmitDetachedComment) {\n        emitBodyWithDetachedComments(node, statements, emitSourceFileWorker);\n        return;\n      }\n      emitSourceFileWorker(node);\n    }\n    function emitSyntheticTripleSlashReferencesIfNeeded(node) {\n      emitTripleSlashDirectives(!!node.hasNoDefaultLib, node.syntheticFileReferences || [], node.syntheticTypeReferences || [], node.syntheticLibReferences || []);\n      for (const prepend of node.prepends) {\n        if (isUnparsedSource(prepend) && prepend.syntheticReferences) {\n          for (const ref of prepend.syntheticReferences) {\n            emit(ref);\n            writeLine();\n          }\n        }\n      }\n    }\n    function emitTripleSlashDirectivesIfNeeded(node) {\n      if (node.isDeclarationFile)\n        emitTripleSlashDirectives(node.hasNoDefaultLib, node.referencedFiles, node.typeReferenceDirectives, node.libReferenceDirectives);\n    }\n    function emitTripleSlashDirectives(hasNoDefaultLib, files, types, libs2) {\n      if (hasNoDefaultLib) {\n        const pos = writer.getTextPos();\n        writeComment(`/// <reference no-default-lib=\"true\"/>`);\n        if (bundleFileInfo)\n          bundleFileInfo.sections.push({ pos, end: writer.getTextPos(), kind: \"no-default-lib\" });\n        writeLine();\n      }\n      if (currentSourceFile && currentSourceFile.moduleName) {\n        writeComment(`/// <amd-module name=\"${currentSourceFile.moduleName}\" />`);\n        writeLine();\n      }\n      if (currentSourceFile && currentSourceFile.amdDependencies) {\n        for (const dep of currentSourceFile.amdDependencies) {\n          if (dep.name) {\n            writeComment(`/// <amd-dependency name=\"${dep.name}\" path=\"${dep.path}\" />`);\n          } else {\n            writeComment(`/// <amd-dependency path=\"${dep.path}\" />`);\n          }\n          writeLine();\n        }\n      }\n      for (const directive of files) {\n        const pos = writer.getTextPos();\n        writeComment(`/// <reference path=\"${directive.fileName}\" />`);\n        if (bundleFileInfo)\n          bundleFileInfo.sections.push({ pos, end: writer.getTextPos(), kind: \"reference\", data: directive.fileName });\n        writeLine();\n      }\n      for (const directive of types) {\n        const pos = writer.getTextPos();\n        const resolutionMode = directive.resolutionMode && directive.resolutionMode !== (currentSourceFile == null ? void 0 : currentSourceFile.impliedNodeFormat) ? `resolution-mode=\"${directive.resolutionMode === 99 ? \"import\" : \"require\"}\"` : \"\";\n        writeComment(`/// <reference types=\"${directive.fileName}\" ${resolutionMode}/>`);\n        if (bundleFileInfo)\n          bundleFileInfo.sections.push({ pos, end: writer.getTextPos(), kind: !directive.resolutionMode ? \"type\" : directive.resolutionMode === 99 ? \"type-import\" : \"type-require\", data: directive.fileName });\n        writeLine();\n      }\n      for (const directive of libs2) {\n        const pos = writer.getTextPos();\n        writeComment(`/// <reference lib=\"${directive.fileName}\" />`);\n        if (bundleFileInfo)\n          bundleFileInfo.sections.push({ pos, end: writer.getTextPos(), kind: \"lib\", data: directive.fileName });\n        writeLine();\n      }\n    }\n    function emitSourceFileWorker(node) {\n      const statements = node.statements;\n      pushNameGenerationScope(node);\n      forEach(node.statements, generateNames);\n      emitHelpers(node);\n      const index = findIndex(statements, (statement) => !isPrologueDirective(statement));\n      emitTripleSlashDirectivesIfNeeded(node);\n      emitList(node, statements, 1, void 0, index === -1 ? statements.length : index);\n      popNameGenerationScope(node);\n    }\n    function emitPartiallyEmittedExpression(node) {\n      const emitFlags = getEmitFlags(node);\n      if (!(emitFlags & 1024) && node.pos !== node.expression.pos) {\n        emitTrailingCommentsOfPosition(node.expression.pos);\n      }\n      emitExpression(node.expression);\n      if (!(emitFlags & 2048) && node.end !== node.expression.end) {\n        emitLeadingCommentsOfPosition(node.expression.end);\n      }\n    }\n    function emitCommaList(node) {\n      emitExpressionList(node, node.elements, 528, void 0);\n    }\n    function emitPrologueDirectives(statements, sourceFile, seenPrologueDirectives, recordBundleFileSection) {\n      let needsToSetSourceFile = !!sourceFile;\n      for (let i = 0; i < statements.length; i++) {\n        const statement = statements[i];\n        if (isPrologueDirective(statement)) {\n          const shouldEmitPrologueDirective = seenPrologueDirectives ? !seenPrologueDirectives.has(statement.expression.text) : true;\n          if (shouldEmitPrologueDirective) {\n            if (needsToSetSourceFile) {\n              needsToSetSourceFile = false;\n              setSourceFile(sourceFile);\n            }\n            writeLine();\n            const pos = writer.getTextPos();\n            emit(statement);\n            if (recordBundleFileSection && bundleFileInfo)\n              bundleFileInfo.sections.push({ pos, end: writer.getTextPos(), kind: \"prologue\", data: statement.expression.text });\n            if (seenPrologueDirectives) {\n              seenPrologueDirectives.add(statement.expression.text);\n            }\n          }\n        } else {\n          return i;\n        }\n      }\n      return statements.length;\n    }\n    function emitUnparsedPrologues(prologues, seenPrologueDirectives) {\n      for (const prologue of prologues) {\n        if (!seenPrologueDirectives.has(prologue.data)) {\n          writeLine();\n          const pos = writer.getTextPos();\n          emit(prologue);\n          if (bundleFileInfo)\n            bundleFileInfo.sections.push({ pos, end: writer.getTextPos(), kind: \"prologue\", data: prologue.data });\n          if (seenPrologueDirectives) {\n            seenPrologueDirectives.add(prologue.data);\n          }\n        }\n      }\n    }\n    function emitPrologueDirectivesIfNeeded(sourceFileOrBundle) {\n      if (isSourceFile(sourceFileOrBundle)) {\n        emitPrologueDirectives(sourceFileOrBundle.statements, sourceFileOrBundle);\n      } else {\n        const seenPrologueDirectives = /* @__PURE__ */ new Set();\n        for (const prepend of sourceFileOrBundle.prepends) {\n          emitUnparsedPrologues(prepend.prologues, seenPrologueDirectives);\n        }\n        for (const sourceFile of sourceFileOrBundle.sourceFiles) {\n          emitPrologueDirectives(sourceFile.statements, sourceFile, seenPrologueDirectives, true);\n        }\n        setSourceFile(void 0);\n      }\n    }\n    function getPrologueDirectivesFromBundledSourceFiles(bundle) {\n      const seenPrologueDirectives = /* @__PURE__ */ new Set();\n      let prologues;\n      for (let index = 0; index < bundle.sourceFiles.length; index++) {\n        const sourceFile = bundle.sourceFiles[index];\n        let directives;\n        let end = 0;\n        for (const statement of sourceFile.statements) {\n          if (!isPrologueDirective(statement))\n            break;\n          if (seenPrologueDirectives.has(statement.expression.text))\n            continue;\n          seenPrologueDirectives.add(statement.expression.text);\n          (directives || (directives = [])).push({\n            pos: statement.pos,\n            end: statement.end,\n            expression: {\n              pos: statement.expression.pos,\n              end: statement.expression.end,\n              text: statement.expression.text\n            }\n          });\n          end = end < statement.end ? statement.end : end;\n        }\n        if (directives)\n          (prologues || (prologues = [])).push({ file: index, text: sourceFile.text.substring(0, end), directives });\n      }\n      return prologues;\n    }\n    function emitShebangIfNeeded(sourceFileOrBundle) {\n      if (isSourceFile(sourceFileOrBundle) || isUnparsedSource(sourceFileOrBundle)) {\n        const shebang = getShebang(sourceFileOrBundle.text);\n        if (shebang) {\n          writeComment(shebang);\n          writeLine();\n          return true;\n        }\n      } else {\n        for (const prepend of sourceFileOrBundle.prepends) {\n          Debug.assertNode(prepend, isUnparsedSource);\n          if (emitShebangIfNeeded(prepend)) {\n            return true;\n          }\n        }\n        for (const sourceFile of sourceFileOrBundle.sourceFiles) {\n          if (emitShebangIfNeeded(sourceFile)) {\n            return true;\n          }\n        }\n      }\n    }\n    function emitNodeWithWriter(node, writer2) {\n      if (!node)\n        return;\n      const savedWrite = write;\n      write = writer2;\n      emit(node);\n      write = savedWrite;\n    }\n    function emitDecoratorsAndModifiers(node, modifiers, allowDecorators) {\n      if (modifiers == null ? void 0 : modifiers.length) {\n        if (every(modifiers, isModifier)) {\n          return emitModifierList(node, modifiers);\n        }\n        if (every(modifiers, isDecorator)) {\n          if (allowDecorators) {\n            return emitDecoratorList(node, modifiers);\n          }\n          return node.pos;\n        }\n        onBeforeEmitNodeArray == null ? void 0 : onBeforeEmitNodeArray(modifiers);\n        let lastMode;\n        let mode;\n        let start = 0;\n        let pos = 0;\n        let lastModifier;\n        while (start < modifiers.length) {\n          while (pos < modifiers.length) {\n            lastModifier = modifiers[pos];\n            mode = isDecorator(lastModifier) ? \"decorators\" : \"modifiers\";\n            if (lastMode === void 0) {\n              lastMode = mode;\n            } else if (mode !== lastMode) {\n              break;\n            }\n            pos++;\n          }\n          const textRange = { pos: -1, end: -1 };\n          if (start === 0)\n            textRange.pos = modifiers.pos;\n          if (pos === modifiers.length - 1)\n            textRange.end = modifiers.end;\n          if (lastMode === \"modifiers\" || allowDecorators) {\n            emitNodeListItems(emit, node, modifiers, lastMode === \"modifiers\" ? 2359808 : 2146305, void 0, start, pos - start, false, textRange);\n          }\n          start = pos;\n          lastMode = mode;\n          pos++;\n        }\n        onAfterEmitNodeArray == null ? void 0 : onAfterEmitNodeArray(modifiers);\n        if (lastModifier && !positionIsSynthesized(lastModifier.end)) {\n          return lastModifier.end;\n        }\n      }\n      return node.pos;\n    }\n    function emitModifierList(node, modifiers) {\n      emitList(node, modifiers, 2359808);\n      const lastModifier = lastOrUndefined(modifiers);\n      return lastModifier && !positionIsSynthesized(lastModifier.end) ? lastModifier.end : node.pos;\n    }\n    function emitTypeAnnotation(node) {\n      if (node) {\n        writePunctuation(\":\");\n        writeSpace();\n        emit(node);\n      }\n    }\n    function emitInitializer(node, equalCommentStartPos, container, parenthesizerRule) {\n      if (node) {\n        writeSpace();\n        emitTokenWithComment(63, equalCommentStartPos, writeOperator, container);\n        writeSpace();\n        emitExpression(node, parenthesizerRule);\n      }\n    }\n    function emitNodeWithPrefix(prefix, prefixWriter, node, emit2) {\n      if (node) {\n        prefixWriter(prefix);\n        emit2(node);\n      }\n    }\n    function emitWithLeadingSpace(node) {\n      if (node) {\n        writeSpace();\n        emit(node);\n      }\n    }\n    function emitExpressionWithLeadingSpace(node, parenthesizerRule) {\n      if (node) {\n        writeSpace();\n        emitExpression(node, parenthesizerRule);\n      }\n    }\n    function emitWithTrailingSpace(node) {\n      if (node) {\n        emit(node);\n        writeSpace();\n      }\n    }\n    function emitEmbeddedStatement(parent2, node) {\n      if (isBlock(node) || getEmitFlags(parent2) & 1) {\n        writeSpace();\n        emit(node);\n      } else {\n        writeLine();\n        increaseIndent();\n        if (isEmptyStatement(node)) {\n          pipelineEmit(5, node);\n        } else {\n          emit(node);\n        }\n        decreaseIndent();\n      }\n    }\n    function emitDecoratorList(parentNode, decorators) {\n      emitList(parentNode, decorators, 2146305);\n      const lastDecorator = lastOrUndefined(decorators);\n      return lastDecorator && !positionIsSynthesized(lastDecorator.end) ? lastDecorator.end : parentNode.pos;\n    }\n    function emitTypeArguments(parentNode, typeArguments) {\n      emitList(parentNode, typeArguments, 53776, typeArgumentParenthesizerRuleSelector);\n    }\n    function emitTypeParameters(parentNode, typeParameters) {\n      if (isFunctionLike(parentNode) && parentNode.typeArguments) {\n        return emitTypeArguments(parentNode, parentNode.typeArguments);\n      }\n      emitList(parentNode, typeParameters, 53776);\n    }\n    function emitParameters(parentNode, parameters) {\n      emitList(parentNode, parameters, 2576);\n    }\n    function canEmitSimpleArrowHead(parentNode, parameters) {\n      const parameter = singleOrUndefined(parameters);\n      return parameter && parameter.pos === parentNode.pos && isArrowFunction(parentNode) && !parentNode.type && !some(parentNode.modifiers) && !some(parentNode.typeParameters) && !some(parameter.modifiers) && !parameter.dotDotDotToken && !parameter.questionToken && !parameter.type && !parameter.initializer && isIdentifier(parameter.name);\n    }\n    function emitParametersForArrow(parentNode, parameters) {\n      if (canEmitSimpleArrowHead(parentNode, parameters)) {\n        emitList(parentNode, parameters, 2576 & ~2048);\n      } else {\n        emitParameters(parentNode, parameters);\n      }\n    }\n    function emitParametersForIndexSignature(parentNode, parameters) {\n      emitList(parentNode, parameters, 8848);\n    }\n    function writeDelimiter(format) {\n      switch (format & 60) {\n        case 0:\n          break;\n        case 16:\n          writePunctuation(\",\");\n          break;\n        case 4:\n          writeSpace();\n          writePunctuation(\"|\");\n          break;\n        case 32:\n          writeSpace();\n          writePunctuation(\"*\");\n          writeSpace();\n          break;\n        case 8:\n          writeSpace();\n          writePunctuation(\"&\");\n          break;\n      }\n    }\n    function emitList(parentNode, children, format, parenthesizerRule, start, count) {\n      emitNodeList(emit, parentNode, children, format | (parentNode && getEmitFlags(parentNode) & 2 ? 65536 : 0), parenthesizerRule, start, count);\n    }\n    function emitExpressionList(parentNode, children, format, parenthesizerRule, start, count) {\n      emitNodeList(emitExpression, parentNode, children, format, parenthesizerRule, start, count);\n    }\n    function emitNodeList(emit2, parentNode, children, format, parenthesizerRule, start = 0, count = children ? children.length - start : 0) {\n      const isUndefined = children === void 0;\n      if (isUndefined && format & 16384) {\n        return;\n      }\n      const isEmpty = children === void 0 || start >= children.length || count === 0;\n      if (isEmpty && format & 32768) {\n        onBeforeEmitNodeArray == null ? void 0 : onBeforeEmitNodeArray(children);\n        onAfterEmitNodeArray == null ? void 0 : onAfterEmitNodeArray(children);\n        return;\n      }\n      if (format & 15360) {\n        writePunctuation(getOpeningBracket(format));\n        if (isEmpty && children) {\n          emitTrailingCommentsOfPosition(children.pos, true);\n        }\n      }\n      onBeforeEmitNodeArray == null ? void 0 : onBeforeEmitNodeArray(children);\n      if (isEmpty) {\n        if (format & 1 && !(preserveSourceNewlines && (!parentNode || currentSourceFile && rangeIsOnSingleLine(parentNode, currentSourceFile)))) {\n          writeLine();\n        } else if (format & 256 && !(format & 524288)) {\n          writeSpace();\n        }\n      } else {\n        emitNodeListItems(emit2, parentNode, children, format, parenthesizerRule, start, count, children.hasTrailingComma, children);\n      }\n      onAfterEmitNodeArray == null ? void 0 : onAfterEmitNodeArray(children);\n      if (format & 15360) {\n        if (isEmpty && children) {\n          emitLeadingCommentsOfPosition(children.end);\n        }\n        writePunctuation(getClosingBracket(format));\n      }\n    }\n    function emitNodeListItems(emit2, parentNode, children, format, parenthesizerRule, start, count, hasTrailingComma, childrenTextRange) {\n      const mayEmitInterveningComments = (format & 262144) === 0;\n      let shouldEmitInterveningComments = mayEmitInterveningComments;\n      const leadingLineTerminatorCount = getLeadingLineTerminatorCount(parentNode, children[start], format);\n      if (leadingLineTerminatorCount) {\n        writeLine(leadingLineTerminatorCount);\n        shouldEmitInterveningComments = false;\n      } else if (format & 256) {\n        writeSpace();\n      }\n      if (format & 128) {\n        increaseIndent();\n      }\n      const emitListItem = getEmitListItem(emit2, parenthesizerRule);\n      let previousSibling;\n      let previousSourceFileTextKind;\n      let shouldDecreaseIndentAfterEmit = false;\n      for (let i = 0; i < count; i++) {\n        const child = children[start + i];\n        if (format & 32) {\n          writeLine();\n          writeDelimiter(format);\n        } else if (previousSibling) {\n          if (format & 60 && previousSibling.end !== (parentNode ? parentNode.end : -1)) {\n            const previousSiblingEmitFlags = getEmitFlags(previousSibling);\n            if (!(previousSiblingEmitFlags & 2048)) {\n              emitLeadingCommentsOfPosition(previousSibling.end);\n            }\n          }\n          writeDelimiter(format);\n          recordBundleFileInternalSectionEnd(previousSourceFileTextKind);\n          const separatingLineTerminatorCount = getSeparatingLineTerminatorCount(previousSibling, child, format);\n          if (separatingLineTerminatorCount > 0) {\n            if ((format & (3 | 128)) === 0) {\n              increaseIndent();\n              shouldDecreaseIndentAfterEmit = true;\n            }\n            writeLine(separatingLineTerminatorCount);\n            shouldEmitInterveningComments = false;\n          } else if (previousSibling && format & 512) {\n            writeSpace();\n          }\n        }\n        previousSourceFileTextKind = recordBundleFileInternalSectionStart(child);\n        if (shouldEmitInterveningComments) {\n          const commentRange = getCommentRange(child);\n          emitTrailingCommentsOfPosition(commentRange.pos);\n        } else {\n          shouldEmitInterveningComments = mayEmitInterveningComments;\n        }\n        nextListElementPos = child.pos;\n        emitListItem(child, emit2, parenthesizerRule, i);\n        if (shouldDecreaseIndentAfterEmit) {\n          decreaseIndent();\n          shouldDecreaseIndentAfterEmit = false;\n        }\n        previousSibling = child;\n      }\n      const emitFlags = previousSibling ? getEmitFlags(previousSibling) : 0;\n      const skipTrailingComments = commentsDisabled || !!(emitFlags & 2048);\n      const emitTrailingComma = hasTrailingComma && format & 64 && format & 16;\n      if (emitTrailingComma) {\n        if (previousSibling && !skipTrailingComments) {\n          emitTokenWithComment(27, previousSibling.end, writePunctuation, previousSibling);\n        } else {\n          writePunctuation(\",\");\n        }\n      }\n      if (previousSibling && (parentNode ? parentNode.end : -1) !== previousSibling.end && format & 60 && !skipTrailingComments) {\n        emitLeadingCommentsOfPosition(emitTrailingComma && (childrenTextRange == null ? void 0 : childrenTextRange.end) ? childrenTextRange.end : previousSibling.end);\n      }\n      if (format & 128) {\n        decreaseIndent();\n      }\n      recordBundleFileInternalSectionEnd(previousSourceFileTextKind);\n      const closingLineTerminatorCount = getClosingLineTerminatorCount(parentNode, children[start + count - 1], format, childrenTextRange);\n      if (closingLineTerminatorCount) {\n        writeLine(closingLineTerminatorCount);\n      } else if (format & (2097152 | 256)) {\n        writeSpace();\n      }\n    }\n    function writeLiteral(s) {\n      writer.writeLiteral(s);\n    }\n    function writeStringLiteral(s) {\n      writer.writeStringLiteral(s);\n    }\n    function writeBase(s) {\n      writer.write(s);\n    }\n    function writeSymbol(s, sym) {\n      writer.writeSymbol(s, sym);\n    }\n    function writePunctuation(s) {\n      writer.writePunctuation(s);\n    }\n    function writeTrailingSemicolon() {\n      writer.writeTrailingSemicolon(\";\");\n    }\n    function writeKeyword(s) {\n      writer.writeKeyword(s);\n    }\n    function writeOperator(s) {\n      writer.writeOperator(s);\n    }\n    function writeParameter(s) {\n      writer.writeParameter(s);\n    }\n    function writeComment(s) {\n      writer.writeComment(s);\n    }\n    function writeSpace() {\n      writer.writeSpace(\" \");\n    }\n    function writeProperty(s) {\n      writer.writeProperty(s);\n    }\n    function nonEscapingWrite(s) {\n      if (writer.nonEscapingWrite) {\n        writer.nonEscapingWrite(s);\n      } else {\n        writer.write(s);\n      }\n    }\n    function writeLine(count = 1) {\n      for (let i = 0; i < count; i++) {\n        writer.writeLine(i > 0);\n      }\n    }\n    function increaseIndent() {\n      writer.increaseIndent();\n    }\n    function decreaseIndent() {\n      writer.decreaseIndent();\n    }\n    function writeToken(token, pos, writer2, contextNode) {\n      return !sourceMapsDisabled ? emitTokenWithSourceMap(contextNode, token, writer2, pos, writeTokenText) : writeTokenText(token, writer2, pos);\n    }\n    function writeTokenNode(node, writer2) {\n      if (onBeforeEmitToken) {\n        onBeforeEmitToken(node);\n      }\n      writer2(tokenToString(node.kind));\n      if (onAfterEmitToken) {\n        onAfterEmitToken(node);\n      }\n    }\n    function writeTokenText(token, writer2, pos) {\n      const tokenString = tokenToString(token);\n      writer2(tokenString);\n      return pos < 0 ? pos : pos + tokenString.length;\n    }\n    function writeLineOrSpace(parentNode, prevChildNode, nextChildNode) {\n      if (getEmitFlags(parentNode) & 1) {\n        writeSpace();\n      } else if (preserveSourceNewlines) {\n        const lines = getLinesBetweenNodes(parentNode, prevChildNode, nextChildNode);\n        if (lines) {\n          writeLine(lines);\n        } else {\n          writeSpace();\n        }\n      } else {\n        writeLine();\n      }\n    }\n    function writeLines(text) {\n      const lines = text.split(/\\r\\n?|\\n/g);\n      const indentation = guessIndentation(lines);\n      for (const lineText of lines) {\n        const line = indentation ? lineText.slice(indentation) : lineText;\n        if (line.length) {\n          writeLine();\n          write(line);\n        }\n      }\n    }\n    function writeLinesAndIndent(lineCount, writeSpaceIfNotIndenting) {\n      if (lineCount) {\n        increaseIndent();\n        writeLine(lineCount);\n      } else if (writeSpaceIfNotIndenting) {\n        writeSpace();\n      }\n    }\n    function decreaseIndentIf(value1, value2) {\n      if (value1) {\n        decreaseIndent();\n      }\n      if (value2) {\n        decreaseIndent();\n      }\n    }\n    function getLeadingLineTerminatorCount(parentNode, firstChild, format) {\n      if (format & 2 || preserveSourceNewlines) {\n        if (format & 65536) {\n          return 1;\n        }\n        if (firstChild === void 0) {\n          return !parentNode || currentSourceFile && rangeIsOnSingleLine(parentNode, currentSourceFile) ? 0 : 1;\n        }\n        if (firstChild.pos === nextListElementPos) {\n          return 0;\n        }\n        if (firstChild.kind === 11) {\n          return 0;\n        }\n        if (currentSourceFile && parentNode && !positionIsSynthesized(parentNode.pos) && !nodeIsSynthesized(firstChild) && (!firstChild.parent || getOriginalNode(firstChild.parent) === getOriginalNode(parentNode))) {\n          if (preserveSourceNewlines) {\n            return getEffectiveLines((includeComments) => getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(firstChild.pos, parentNode.pos, currentSourceFile, includeComments));\n          }\n          return rangeStartPositionsAreOnSameLine(parentNode, firstChild, currentSourceFile) ? 0 : 1;\n        }\n        if (synthesizedNodeStartsOnNewLine(firstChild, format)) {\n          return 1;\n        }\n      }\n      return format & 1 ? 1 : 0;\n    }\n    function getSeparatingLineTerminatorCount(previousNode, nextNode, format) {\n      if (format & 2 || preserveSourceNewlines) {\n        if (previousNode === void 0 || nextNode === void 0) {\n          return 0;\n        }\n        if (nextNode.kind === 11) {\n          return 0;\n        } else if (currentSourceFile && !nodeIsSynthesized(previousNode) && !nodeIsSynthesized(nextNode)) {\n          if (preserveSourceNewlines && siblingNodePositionsAreComparable(previousNode, nextNode)) {\n            return getEffectiveLines((includeComments) => getLinesBetweenRangeEndAndRangeStart(previousNode, nextNode, currentSourceFile, includeComments));\n          } else if (!preserveSourceNewlines && originalNodesHaveSameParent(previousNode, nextNode)) {\n            return rangeEndIsOnSameLineAsRangeStart(previousNode, nextNode, currentSourceFile) ? 0 : 1;\n          }\n          return format & 65536 ? 1 : 0;\n        } else if (synthesizedNodeStartsOnNewLine(previousNode, format) || synthesizedNodeStartsOnNewLine(nextNode, format)) {\n          return 1;\n        }\n      } else if (getStartsOnNewLine(nextNode)) {\n        return 1;\n      }\n      return format & 1 ? 1 : 0;\n    }\n    function getClosingLineTerminatorCount(parentNode, lastChild, format, childrenTextRange) {\n      if (format & 2 || preserveSourceNewlines) {\n        if (format & 65536) {\n          return 1;\n        }\n        if (lastChild === void 0) {\n          return !parentNode || currentSourceFile && rangeIsOnSingleLine(parentNode, currentSourceFile) ? 0 : 1;\n        }\n        if (currentSourceFile && parentNode && !positionIsSynthesized(parentNode.pos) && !nodeIsSynthesized(lastChild) && (!lastChild.parent || lastChild.parent === parentNode)) {\n          if (preserveSourceNewlines) {\n            const end = childrenTextRange && !positionIsSynthesized(childrenTextRange.end) ? childrenTextRange.end : lastChild.end;\n            return getEffectiveLines((includeComments) => getLinesBetweenPositionAndNextNonWhitespaceCharacter(end, parentNode.end, currentSourceFile, includeComments));\n          }\n          return rangeEndPositionsAreOnSameLine(parentNode, lastChild, currentSourceFile) ? 0 : 1;\n        }\n        if (synthesizedNodeStartsOnNewLine(lastChild, format)) {\n          return 1;\n        }\n      }\n      if (format & 1 && !(format & 131072)) {\n        return 1;\n      }\n      return 0;\n    }\n    function getEffectiveLines(getLineDifference) {\n      Debug.assert(!!preserveSourceNewlines);\n      const lines = getLineDifference(true);\n      if (lines === 0) {\n        return getLineDifference(false);\n      }\n      return lines;\n    }\n    function writeLineSeparatorsAndIndentBefore(node, parent2) {\n      const leadingNewlines = preserveSourceNewlines && getLeadingLineTerminatorCount(parent2, node, 0);\n      if (leadingNewlines) {\n        writeLinesAndIndent(leadingNewlines, false);\n      }\n      return !!leadingNewlines;\n    }\n    function writeLineSeparatorsAfter(node, parent2) {\n      const trailingNewlines = preserveSourceNewlines && getClosingLineTerminatorCount(parent2, node, 0, void 0);\n      if (trailingNewlines) {\n        writeLine(trailingNewlines);\n      }\n    }\n    function synthesizedNodeStartsOnNewLine(node, format) {\n      if (nodeIsSynthesized(node)) {\n        const startsOnNewLine = getStartsOnNewLine(node);\n        if (startsOnNewLine === void 0) {\n          return (format & 65536) !== 0;\n        }\n        return startsOnNewLine;\n      }\n      return (format & 65536) !== 0;\n    }\n    function getLinesBetweenNodes(parent2, node1, node2) {\n      if (getEmitFlags(parent2) & 262144) {\n        return 0;\n      }\n      parent2 = skipSynthesizedParentheses(parent2);\n      node1 = skipSynthesizedParentheses(node1);\n      node2 = skipSynthesizedParentheses(node2);\n      if (getStartsOnNewLine(node2)) {\n        return 1;\n      }\n      if (currentSourceFile && !nodeIsSynthesized(parent2) && !nodeIsSynthesized(node1) && !nodeIsSynthesized(node2)) {\n        if (preserveSourceNewlines) {\n          return getEffectiveLines((includeComments) => getLinesBetweenRangeEndAndRangeStart(node1, node2, currentSourceFile, includeComments));\n        }\n        return rangeEndIsOnSameLineAsRangeStart(node1, node2, currentSourceFile) ? 0 : 1;\n      }\n      return 0;\n    }\n    function isEmptyBlock(block) {\n      return block.statements.length === 0 && (!currentSourceFile || rangeEndIsOnSameLineAsRangeStart(block, block, currentSourceFile));\n    }\n    function skipSynthesizedParentheses(node) {\n      while (node.kind === 214 && nodeIsSynthesized(node)) {\n        node = node.expression;\n      }\n      return node;\n    }\n    function getTextOfNode2(node, includeTrivia) {\n      if (isGeneratedIdentifier(node) || isGeneratedPrivateIdentifier(node)) {\n        return generateName(node);\n      }\n      if (isStringLiteral(node) && node.textSourceNode) {\n        return getTextOfNode2(node.textSourceNode, includeTrivia);\n      }\n      const sourceFile = currentSourceFile;\n      const canUseSourceFile = !!sourceFile && !!node.parent && !nodeIsSynthesized(node);\n      if (isMemberName(node)) {\n        if (!canUseSourceFile || getSourceFileOfNode(node) !== getOriginalNode(sourceFile)) {\n          return idText(node);\n        }\n      } else {\n        Debug.assertNode(node, isLiteralExpression);\n        if (!canUseSourceFile) {\n          return node.text;\n        }\n      }\n      return getSourceTextOfNodeFromSourceFile(sourceFile, node, includeTrivia);\n    }\n    function getLiteralTextOfNode(node, neverAsciiEscape, jsxAttributeEscape) {\n      if (node.kind === 10 && node.textSourceNode) {\n        const textSourceNode = node.textSourceNode;\n        if (isIdentifier(textSourceNode) || isPrivateIdentifier(textSourceNode) || isNumericLiteral(textSourceNode)) {\n          const text = isNumericLiteral(textSourceNode) ? textSourceNode.text : getTextOfNode2(textSourceNode);\n          return jsxAttributeEscape ? `\"${escapeJsxAttributeString(text)}\"` : neverAsciiEscape || getEmitFlags(node) & 33554432 ? `\"${escapeString(text)}\"` : `\"${escapeNonAsciiString(text)}\"`;\n        } else {\n          return getLiteralTextOfNode(textSourceNode, neverAsciiEscape, jsxAttributeEscape);\n        }\n      }\n      const flags = (neverAsciiEscape ? 1 : 0) | (jsxAttributeEscape ? 2 : 0) | (printerOptions.terminateUnterminatedLiterals ? 4 : 0) | (printerOptions.target && printerOptions.target === 99 ? 8 : 0);\n      return getLiteralText(node, currentSourceFile, flags);\n    }\n    function pushNameGenerationScope(node) {\n      if (node && getEmitFlags(node) & 1048576) {\n        return;\n      }\n      tempFlagsStack.push(tempFlags);\n      tempFlags = 0;\n      formattedNameTempFlagsStack.push(formattedNameTempFlags);\n      formattedNameTempFlags = void 0;\n      reservedNamesStack.push(reservedNames);\n    }\n    function popNameGenerationScope(node) {\n      if (node && getEmitFlags(node) & 1048576) {\n        return;\n      }\n      tempFlags = tempFlagsStack.pop();\n      formattedNameTempFlags = formattedNameTempFlagsStack.pop();\n      reservedNames = reservedNamesStack.pop();\n    }\n    function reserveNameInNestedScopes(name) {\n      if (!reservedNames || reservedNames === lastOrUndefined(reservedNamesStack)) {\n        reservedNames = /* @__PURE__ */ new Set();\n      }\n      reservedNames.add(name);\n    }\n    function pushPrivateNameGenerationScope(newPrivateNameTempFlags, newReservedMemberNames) {\n      privateNameTempFlagsStack.push(privateNameTempFlags);\n      privateNameTempFlags = newPrivateNameTempFlags;\n      reservedPrivateNamesStack.push(reservedNames);\n      reservedPrivateNames = newReservedMemberNames;\n    }\n    function popPrivateNameGenerationScope() {\n      privateNameTempFlags = privateNameTempFlagsStack.pop();\n      reservedPrivateNames = reservedPrivateNamesStack.pop();\n    }\n    function reservePrivateNameInNestedScopes(name) {\n      if (!reservedPrivateNames || reservedPrivateNames === lastOrUndefined(reservedPrivateNamesStack)) {\n        reservedPrivateNames = /* @__PURE__ */ new Set();\n      }\n      reservedPrivateNames.add(name);\n    }\n    function generateNames(node) {\n      if (!node)\n        return;\n      switch (node.kind) {\n        case 238:\n          forEach(node.statements, generateNames);\n          break;\n        case 253:\n        case 251:\n        case 243:\n        case 244:\n          generateNames(node.statement);\n          break;\n        case 242:\n          generateNames(node.thenStatement);\n          generateNames(node.elseStatement);\n          break;\n        case 245:\n        case 247:\n        case 246:\n          generateNames(node.initializer);\n          generateNames(node.statement);\n          break;\n        case 252:\n          generateNames(node.caseBlock);\n          break;\n        case 266:\n          forEach(node.clauses, generateNames);\n          break;\n        case 292:\n        case 293:\n          forEach(node.statements, generateNames);\n          break;\n        case 255:\n          generateNames(node.tryBlock);\n          generateNames(node.catchClause);\n          generateNames(node.finallyBlock);\n          break;\n        case 295:\n          generateNames(node.variableDeclaration);\n          generateNames(node.block);\n          break;\n        case 240:\n          generateNames(node.declarationList);\n          break;\n        case 258:\n          forEach(node.declarations, generateNames);\n          break;\n        case 257:\n        case 166:\n        case 205:\n        case 260:\n          generateNameIfNeeded(node.name);\n          break;\n        case 259:\n          generateNameIfNeeded(node.name);\n          if (getEmitFlags(node) & 1048576) {\n            forEach(node.parameters, generateNames);\n            generateNames(node.body);\n          }\n          break;\n        case 203:\n        case 204:\n          forEach(node.elements, generateNames);\n          break;\n        case 269:\n          generateNames(node.importClause);\n          break;\n        case 270:\n          generateNameIfNeeded(node.name);\n          generateNames(node.namedBindings);\n          break;\n        case 271:\n          generateNameIfNeeded(node.name);\n          break;\n        case 277:\n          generateNameIfNeeded(node.name);\n          break;\n        case 272:\n          forEach(node.elements, generateNames);\n          break;\n        case 273:\n          generateNameIfNeeded(node.propertyName || node.name);\n          break;\n      }\n    }\n    function generateMemberNames(node) {\n      if (!node)\n        return;\n      switch (node.kind) {\n        case 299:\n        case 300:\n        case 169:\n        case 171:\n        case 174:\n        case 175:\n          generateNameIfNeeded(node.name);\n          break;\n      }\n    }\n    function generateNameIfNeeded(name) {\n      if (name) {\n        if (isGeneratedIdentifier(name) || isGeneratedPrivateIdentifier(name)) {\n          generateName(name);\n        } else if (isBindingPattern(name)) {\n          generateNames(name);\n        }\n      }\n    }\n    function generateName(name) {\n      const autoGenerate = name.emitNode.autoGenerate;\n      if ((autoGenerate.flags & 7) === 4) {\n        return generateNameCached(getNodeForGeneratedName(name), isPrivateIdentifier(name), autoGenerate.flags, autoGenerate.prefix, autoGenerate.suffix);\n      } else {\n        const autoGenerateId = autoGenerate.id;\n        return autoGeneratedIdToGeneratedName[autoGenerateId] || (autoGeneratedIdToGeneratedName[autoGenerateId] = makeName(name));\n      }\n    }\n    function generateNameCached(node, privateName, flags, prefix, suffix) {\n      const nodeId = getNodeId(node);\n      const cache = privateName ? nodeIdToGeneratedPrivateName : nodeIdToGeneratedName;\n      return cache[nodeId] || (cache[nodeId] = generateNameForNode(node, privateName, flags != null ? flags : 0, formatGeneratedNamePart(prefix, generateName), formatGeneratedNamePart(suffix)));\n    }\n    function isUniqueName(name, privateName) {\n      return isFileLevelUniqueName2(name, privateName) && !isReservedName(name, privateName) && !generatedNames.has(name);\n    }\n    function isReservedName(name, privateName) {\n      return privateName ? !!(reservedPrivateNames == null ? void 0 : reservedPrivateNames.has(name)) : !!(reservedNames == null ? void 0 : reservedNames.has(name));\n    }\n    function isFileLevelUniqueName2(name, _isPrivate) {\n      return currentSourceFile ? isFileLevelUniqueName(currentSourceFile, name, hasGlobalName) : true;\n    }\n    function isUniqueLocalName(name, container) {\n      for (let node = container; node && isNodeDescendantOf(node, container); node = node.nextContainer) {\n        if (canHaveLocals(node) && node.locals) {\n          const local = node.locals.get(escapeLeadingUnderscores(name));\n          if (local && local.flags & (111551 | 1048576 | 2097152)) {\n            return false;\n          }\n        }\n      }\n      return true;\n    }\n    function getTempFlags(formattedNameKey) {\n      var _a2;\n      switch (formattedNameKey) {\n        case \"\":\n          return tempFlags;\n        case \"#\":\n          return privateNameTempFlags;\n        default:\n          return (_a2 = formattedNameTempFlags == null ? void 0 : formattedNameTempFlags.get(formattedNameKey)) != null ? _a2 : 0;\n      }\n    }\n    function setTempFlags(formattedNameKey, flags) {\n      switch (formattedNameKey) {\n        case \"\":\n          tempFlags = flags;\n          break;\n        case \"#\":\n          privateNameTempFlags = flags;\n          break;\n        default:\n          formattedNameTempFlags != null ? formattedNameTempFlags : formattedNameTempFlags = /* @__PURE__ */ new Map();\n          formattedNameTempFlags.set(formattedNameKey, flags);\n          break;\n      }\n    }\n    function makeTempVariableName(flags, reservedInNestedScopes, privateName, prefix, suffix) {\n      if (prefix.length > 0 && prefix.charCodeAt(0) === 35) {\n        prefix = prefix.slice(1);\n      }\n      const key = formatGeneratedName(privateName, prefix, \"\", suffix);\n      let tempFlags2 = getTempFlags(key);\n      if (flags && !(tempFlags2 & flags)) {\n        const name = flags === 268435456 ? \"_i\" : \"_n\";\n        const fullName = formatGeneratedName(privateName, prefix, name, suffix);\n        if (isUniqueName(fullName, privateName)) {\n          tempFlags2 |= flags;\n          if (privateName) {\n            reservePrivateNameInNestedScopes(fullName);\n          } else if (reservedInNestedScopes) {\n            reserveNameInNestedScopes(fullName);\n          }\n          setTempFlags(key, tempFlags2);\n          return fullName;\n        }\n      }\n      while (true) {\n        const count = tempFlags2 & 268435455;\n        tempFlags2++;\n        if (count !== 8 && count !== 13) {\n          const name = count < 26 ? \"_\" + String.fromCharCode(97 + count) : \"_\" + (count - 26);\n          const fullName = formatGeneratedName(privateName, prefix, name, suffix);\n          if (isUniqueName(fullName, privateName)) {\n            if (privateName) {\n              reservePrivateNameInNestedScopes(fullName);\n            } else if (reservedInNestedScopes) {\n              reserveNameInNestedScopes(fullName);\n            }\n            setTempFlags(key, tempFlags2);\n            return fullName;\n          }\n        }\n      }\n    }\n    function makeUniqueName2(baseName, checkFn = isUniqueName, optimistic, scoped, privateName, prefix, suffix) {\n      if (baseName.length > 0 && baseName.charCodeAt(0) === 35) {\n        baseName = baseName.slice(1);\n      }\n      if (prefix.length > 0 && prefix.charCodeAt(0) === 35) {\n        prefix = prefix.slice(1);\n      }\n      if (optimistic) {\n        const fullName = formatGeneratedName(privateName, prefix, baseName, suffix);\n        if (checkFn(fullName, privateName)) {\n          if (privateName) {\n            reservePrivateNameInNestedScopes(fullName);\n          } else if (scoped) {\n            reserveNameInNestedScopes(fullName);\n          } else {\n            generatedNames.add(fullName);\n          }\n          return fullName;\n        }\n      }\n      if (baseName.charCodeAt(baseName.length - 1) !== 95) {\n        baseName += \"_\";\n      }\n      let i = 1;\n      while (true) {\n        const fullName = formatGeneratedName(privateName, prefix, baseName + i, suffix);\n        if (checkFn(fullName, privateName)) {\n          if (privateName) {\n            reservePrivateNameInNestedScopes(fullName);\n          } else if (scoped) {\n            reserveNameInNestedScopes(fullName);\n          } else {\n            generatedNames.add(fullName);\n          }\n          return fullName;\n        }\n        i++;\n      }\n    }\n    function makeFileLevelOptimisticUniqueName(name) {\n      return makeUniqueName2(name, isFileLevelUniqueName2, true, false, false, \"\", \"\");\n    }\n    function generateNameForModuleOrEnum(node) {\n      const name = getTextOfNode2(node.name);\n      return isUniqueLocalName(name, tryCast(node, canHaveLocals)) ? name : makeUniqueName2(name, isUniqueName, false, false, false, \"\", \"\");\n    }\n    function generateNameForImportOrExportDeclaration(node) {\n      const expr = getExternalModuleName(node);\n      const baseName = isStringLiteral(expr) ? makeIdentifierFromModuleName(expr.text) : \"module\";\n      return makeUniqueName2(baseName, isUniqueName, false, false, false, \"\", \"\");\n    }\n    function generateNameForExportDefault() {\n      return makeUniqueName2(\"default\", isUniqueName, false, false, false, \"\", \"\");\n    }\n    function generateNameForClassExpression() {\n      return makeUniqueName2(\"class\", isUniqueName, false, false, false, \"\", \"\");\n    }\n    function generateNameForMethodOrAccessor(node, privateName, prefix, suffix) {\n      if (isIdentifier(node.name)) {\n        return generateNameCached(node.name, privateName);\n      }\n      return makeTempVariableName(0, false, privateName, prefix, suffix);\n    }\n    function generateNameForNode(node, privateName, flags, prefix, suffix) {\n      switch (node.kind) {\n        case 79:\n        case 80:\n          return makeUniqueName2(getTextOfNode2(node), isUniqueName, !!(flags & 16), !!(flags & 8), privateName, prefix, suffix);\n        case 264:\n        case 263:\n          Debug.assert(!prefix && !suffix && !privateName);\n          return generateNameForModuleOrEnum(node);\n        case 269:\n        case 275:\n          Debug.assert(!prefix && !suffix && !privateName);\n          return generateNameForImportOrExportDeclaration(node);\n        case 259:\n        case 260: {\n          Debug.assert(!prefix && !suffix && !privateName);\n          const name = node.name;\n          if (name && !isGeneratedIdentifier(name)) {\n            return generateNameForNode(name, false, flags, prefix, suffix);\n          }\n          return generateNameForExportDefault();\n        }\n        case 274:\n          Debug.assert(!prefix && !suffix && !privateName);\n          return generateNameForExportDefault();\n        case 228:\n          Debug.assert(!prefix && !suffix && !privateName);\n          return generateNameForClassExpression();\n        case 171:\n        case 174:\n        case 175:\n          return generateNameForMethodOrAccessor(node, privateName, prefix, suffix);\n        case 164:\n          return makeTempVariableName(0, true, privateName, prefix, suffix);\n        default:\n          return makeTempVariableName(0, false, privateName, prefix, suffix);\n      }\n    }\n    function makeName(name) {\n      const autoGenerate = name.emitNode.autoGenerate;\n      const prefix = formatGeneratedNamePart(autoGenerate.prefix, generateName);\n      const suffix = formatGeneratedNamePart(autoGenerate.suffix);\n      switch (autoGenerate.flags & 7) {\n        case 1:\n          return makeTempVariableName(0, !!(autoGenerate.flags & 8), isPrivateIdentifier(name), prefix, suffix);\n        case 2:\n          Debug.assertNode(name, isIdentifier);\n          return makeTempVariableName(268435456, !!(autoGenerate.flags & 8), false, prefix, suffix);\n        case 3:\n          return makeUniqueName2(idText(name), autoGenerate.flags & 32 ? isFileLevelUniqueName2 : isUniqueName, !!(autoGenerate.flags & 16), !!(autoGenerate.flags & 8), isPrivateIdentifier(name), prefix, suffix);\n      }\n      return Debug.fail(`Unsupported GeneratedIdentifierKind: ${Debug.formatEnum(autoGenerate.flags & 7, GeneratedIdentifierFlags, true)}.`);\n    }\n    function pipelineEmitWithComments(hint, node) {\n      const pipelinePhase = getNextPipelinePhase(2, hint, node);\n      const savedContainerPos = containerPos;\n      const savedContainerEnd = containerEnd;\n      const savedDeclarationListContainerEnd = declarationListContainerEnd;\n      emitCommentsBeforeNode(node);\n      pipelinePhase(hint, node);\n      emitCommentsAfterNode(node, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd);\n    }\n    function emitCommentsBeforeNode(node) {\n      const emitFlags = getEmitFlags(node);\n      const commentRange = getCommentRange(node);\n      emitLeadingCommentsOfNode(node, emitFlags, commentRange.pos, commentRange.end);\n      if (emitFlags & 4096) {\n        commentsDisabled = true;\n      }\n    }\n    function emitCommentsAfterNode(node, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd) {\n      const emitFlags = getEmitFlags(node);\n      const commentRange = getCommentRange(node);\n      if (emitFlags & 4096) {\n        commentsDisabled = false;\n      }\n      emitTrailingCommentsOfNode(node, emitFlags, commentRange.pos, commentRange.end, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd);\n      const typeNode = getTypeNode(node);\n      if (typeNode) {\n        emitTrailingCommentsOfNode(node, emitFlags, typeNode.pos, typeNode.end, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd);\n      }\n    }\n    function emitLeadingCommentsOfNode(node, emitFlags, pos, end) {\n      enterComment();\n      hasWrittenComment = false;\n      const skipLeadingComments = pos < 0 || (emitFlags & 1024) !== 0 || node.kind === 11;\n      const skipTrailingComments = end < 0 || (emitFlags & 2048) !== 0 || node.kind === 11;\n      if ((pos > 0 || end > 0) && pos !== end) {\n        if (!skipLeadingComments) {\n          emitLeadingComments(pos, node.kind !== 355);\n        }\n        if (!skipLeadingComments || pos >= 0 && (emitFlags & 1024) !== 0) {\n          containerPos = pos;\n        }\n        if (!skipTrailingComments || end >= 0 && (emitFlags & 2048) !== 0) {\n          containerEnd = end;\n          if (node.kind === 258) {\n            declarationListContainerEnd = end;\n          }\n        }\n      }\n      forEach(getSyntheticLeadingComments(node), emitLeadingSynthesizedComment);\n      exitComment();\n    }\n    function emitTrailingCommentsOfNode(node, emitFlags, pos, end, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd) {\n      enterComment();\n      const skipTrailingComments = end < 0 || (emitFlags & 2048) !== 0 || node.kind === 11;\n      forEach(getSyntheticTrailingComments(node), emitTrailingSynthesizedComment);\n      if ((pos > 0 || end > 0) && pos !== end) {\n        containerPos = savedContainerPos;\n        containerEnd = savedContainerEnd;\n        declarationListContainerEnd = savedDeclarationListContainerEnd;\n        if (!skipTrailingComments && node.kind !== 355) {\n          emitTrailingComments(end);\n        }\n      }\n      exitComment();\n    }\n    function emitLeadingSynthesizedComment(comment) {\n      if (comment.hasLeadingNewline || comment.kind === 2) {\n        writer.writeLine();\n      }\n      writeSynthesizedComment(comment);\n      if (comment.hasTrailingNewLine || comment.kind === 2) {\n        writer.writeLine();\n      } else {\n        writer.writeSpace(\" \");\n      }\n    }\n    function emitTrailingSynthesizedComment(comment) {\n      if (!writer.isAtStartOfLine()) {\n        writer.writeSpace(\" \");\n      }\n      writeSynthesizedComment(comment);\n      if (comment.hasTrailingNewLine) {\n        writer.writeLine();\n      }\n    }\n    function writeSynthesizedComment(comment) {\n      const text = formatSynthesizedComment(comment);\n      const lineMap = comment.kind === 3 ? computeLineStarts(text) : void 0;\n      writeCommentRange(text, lineMap, writer, 0, text.length, newLine);\n    }\n    function formatSynthesizedComment(comment) {\n      return comment.kind === 3 ? `/*${comment.text}*/` : `//${comment.text}`;\n    }\n    function emitBodyWithDetachedComments(node, detachedRange, emitCallback) {\n      enterComment();\n      const { pos, end } = detachedRange;\n      const emitFlags = getEmitFlags(node);\n      const skipLeadingComments = pos < 0 || (emitFlags & 1024) !== 0;\n      const skipTrailingComments = commentsDisabled || end < 0 || (emitFlags & 2048) !== 0;\n      if (!skipLeadingComments) {\n        emitDetachedCommentsAndUpdateCommentsInfo(detachedRange);\n      }\n      exitComment();\n      if (emitFlags & 4096 && !commentsDisabled) {\n        commentsDisabled = true;\n        emitCallback(node);\n        commentsDisabled = false;\n      } else {\n        emitCallback(node);\n      }\n      enterComment();\n      if (!skipTrailingComments) {\n        emitLeadingComments(detachedRange.end, true);\n        if (hasWrittenComment && !writer.isAtStartOfLine()) {\n          writer.writeLine();\n        }\n      }\n      exitComment();\n    }\n    function originalNodesHaveSameParent(nodeA, nodeB) {\n      nodeA = getOriginalNode(nodeA);\n      return nodeA.parent && nodeA.parent === getOriginalNode(nodeB).parent;\n    }\n    function siblingNodePositionsAreComparable(previousNode, nextNode) {\n      if (nextNode.pos < previousNode.end) {\n        return false;\n      }\n      previousNode = getOriginalNode(previousNode);\n      nextNode = getOriginalNode(nextNode);\n      const parent2 = previousNode.parent;\n      if (!parent2 || parent2 !== nextNode.parent) {\n        return false;\n      }\n      const parentNodeArray = getContainingNodeArray(previousNode);\n      const prevNodeIndex = parentNodeArray == null ? void 0 : parentNodeArray.indexOf(previousNode);\n      return prevNodeIndex !== void 0 && prevNodeIndex > -1 && parentNodeArray.indexOf(nextNode) === prevNodeIndex + 1;\n    }\n    function emitLeadingComments(pos, isEmittedNode) {\n      hasWrittenComment = false;\n      if (isEmittedNode) {\n        if (pos === 0 && (currentSourceFile == null ? void 0 : currentSourceFile.isDeclarationFile)) {\n          forEachLeadingCommentToEmit(pos, emitNonTripleSlashLeadingComment);\n        } else {\n          forEachLeadingCommentToEmit(pos, emitLeadingComment);\n        }\n      } else if (pos === 0) {\n        forEachLeadingCommentToEmit(pos, emitTripleSlashLeadingComment);\n      }\n    }\n    function emitTripleSlashLeadingComment(commentPos, commentEnd, kind, hasTrailingNewLine, rangePos) {\n      if (isTripleSlashComment(commentPos, commentEnd)) {\n        emitLeadingComment(commentPos, commentEnd, kind, hasTrailingNewLine, rangePos);\n      }\n    }\n    function emitNonTripleSlashLeadingComment(commentPos, commentEnd, kind, hasTrailingNewLine, rangePos) {\n      if (!isTripleSlashComment(commentPos, commentEnd)) {\n        emitLeadingComment(commentPos, commentEnd, kind, hasTrailingNewLine, rangePos);\n      }\n    }\n    function shouldWriteComment(text, pos) {\n      if (printerOptions.onlyPrintJsDocStyle) {\n        return isJSDocLikeText(text, pos) || isPinnedComment(text, pos);\n      }\n      return true;\n    }\n    function emitLeadingComment(commentPos, commentEnd, kind, hasTrailingNewLine, rangePos) {\n      if (!currentSourceFile || !shouldWriteComment(currentSourceFile.text, commentPos))\n        return;\n      if (!hasWrittenComment) {\n        emitNewLineBeforeLeadingCommentOfPosition(getCurrentLineMap(), writer, rangePos, commentPos);\n        hasWrittenComment = true;\n      }\n      emitPos(commentPos);\n      writeCommentRange(currentSourceFile.text, getCurrentLineMap(), writer, commentPos, commentEnd, newLine);\n      emitPos(commentEnd);\n      if (hasTrailingNewLine) {\n        writer.writeLine();\n      } else if (kind === 3) {\n        writer.writeSpace(\" \");\n      }\n    }\n    function emitLeadingCommentsOfPosition(pos) {\n      if (commentsDisabled || pos === -1) {\n        return;\n      }\n      emitLeadingComments(pos, true);\n    }\n    function emitTrailingComments(pos) {\n      forEachTrailingCommentToEmit(pos, emitTrailingComment);\n    }\n    function emitTrailingComment(commentPos, commentEnd, _kind, hasTrailingNewLine) {\n      if (!currentSourceFile || !shouldWriteComment(currentSourceFile.text, commentPos))\n        return;\n      if (!writer.isAtStartOfLine()) {\n        writer.writeSpace(\" \");\n      }\n      emitPos(commentPos);\n      writeCommentRange(currentSourceFile.text, getCurrentLineMap(), writer, commentPos, commentEnd, newLine);\n      emitPos(commentEnd);\n      if (hasTrailingNewLine) {\n        writer.writeLine();\n      }\n    }\n    function emitTrailingCommentsOfPosition(pos, prefixSpace, forceNoNewline) {\n      if (commentsDisabled) {\n        return;\n      }\n      enterComment();\n      forEachTrailingCommentToEmit(pos, prefixSpace ? emitTrailingComment : forceNoNewline ? emitTrailingCommentOfPositionNoNewline : emitTrailingCommentOfPosition);\n      exitComment();\n    }\n    function emitTrailingCommentOfPositionNoNewline(commentPos, commentEnd, kind) {\n      if (!currentSourceFile)\n        return;\n      emitPos(commentPos);\n      writeCommentRange(currentSourceFile.text, getCurrentLineMap(), writer, commentPos, commentEnd, newLine);\n      emitPos(commentEnd);\n      if (kind === 2) {\n        writer.writeLine();\n      }\n    }\n    function emitTrailingCommentOfPosition(commentPos, commentEnd, _kind, hasTrailingNewLine) {\n      if (!currentSourceFile)\n        return;\n      emitPos(commentPos);\n      writeCommentRange(currentSourceFile.text, getCurrentLineMap(), writer, commentPos, commentEnd, newLine);\n      emitPos(commentEnd);\n      if (hasTrailingNewLine) {\n        writer.writeLine();\n      } else {\n        writer.writeSpace(\" \");\n      }\n    }\n    function forEachLeadingCommentToEmit(pos, cb) {\n      if (currentSourceFile && (containerPos === -1 || pos !== containerPos)) {\n        if (hasDetachedComments(pos)) {\n          forEachLeadingCommentWithoutDetachedComments(cb);\n        } else {\n          forEachLeadingCommentRange(currentSourceFile.text, pos, cb, pos);\n        }\n      }\n    }\n    function forEachTrailingCommentToEmit(end, cb) {\n      if (currentSourceFile && (containerEnd === -1 || end !== containerEnd && end !== declarationListContainerEnd)) {\n        forEachTrailingCommentRange(currentSourceFile.text, end, cb);\n      }\n    }\n    function hasDetachedComments(pos) {\n      return detachedCommentsInfo !== void 0 && last(detachedCommentsInfo).nodePos === pos;\n    }\n    function forEachLeadingCommentWithoutDetachedComments(cb) {\n      if (!currentSourceFile)\n        return;\n      const pos = last(detachedCommentsInfo).detachedCommentEndPos;\n      if (detachedCommentsInfo.length - 1) {\n        detachedCommentsInfo.pop();\n      } else {\n        detachedCommentsInfo = void 0;\n      }\n      forEachLeadingCommentRange(currentSourceFile.text, pos, cb, pos);\n    }\n    function emitDetachedCommentsAndUpdateCommentsInfo(range) {\n      const currentDetachedCommentInfo = currentSourceFile && emitDetachedComments(currentSourceFile.text, getCurrentLineMap(), writer, emitComment, range, newLine, commentsDisabled);\n      if (currentDetachedCommentInfo) {\n        if (detachedCommentsInfo) {\n          detachedCommentsInfo.push(currentDetachedCommentInfo);\n        } else {\n          detachedCommentsInfo = [currentDetachedCommentInfo];\n        }\n      }\n    }\n    function emitComment(text, lineMap, writer2, commentPos, commentEnd, newLine2) {\n      if (!currentSourceFile || !shouldWriteComment(currentSourceFile.text, commentPos))\n        return;\n      emitPos(commentPos);\n      writeCommentRange(text, lineMap, writer2, commentPos, commentEnd, newLine2);\n      emitPos(commentEnd);\n    }\n    function isTripleSlashComment(commentPos, commentEnd) {\n      return !!currentSourceFile && isRecognizedTripleSlashComment(currentSourceFile.text, commentPos, commentEnd);\n    }\n    function getParsedSourceMap(node) {\n      if (node.parsedSourceMap === void 0 && node.sourceMapText !== void 0) {\n        node.parsedSourceMap = tryParseRawSourceMap(node.sourceMapText) || false;\n      }\n      return node.parsedSourceMap || void 0;\n    }\n    function pipelineEmitWithSourceMaps(hint, node) {\n      const pipelinePhase = getNextPipelinePhase(3, hint, node);\n      emitSourceMapsBeforeNode(node);\n      pipelinePhase(hint, node);\n      emitSourceMapsAfterNode(node);\n    }\n    function emitSourceMapsBeforeNode(node) {\n      const emitFlags = getEmitFlags(node);\n      const sourceMapRange = getSourceMapRange(node);\n      if (isUnparsedNode(node)) {\n        Debug.assertIsDefined(node.parent, \"UnparsedNodes must have parent pointers\");\n        const parsed = getParsedSourceMap(node.parent);\n        if (parsed && sourceMapGenerator) {\n          sourceMapGenerator.appendSourceMap(writer.getLine(), writer.getColumn(), parsed, node.parent.sourceMapPath, node.parent.getLineAndCharacterOfPosition(node.pos), node.parent.getLineAndCharacterOfPosition(node.end));\n        }\n      } else {\n        const source = sourceMapRange.source || sourceMapSource;\n        if (node.kind !== 355 && (emitFlags & 32) === 0 && sourceMapRange.pos >= 0) {\n          emitSourcePos(sourceMapRange.source || sourceMapSource, skipSourceTrivia(source, sourceMapRange.pos));\n        }\n        if (emitFlags & 128) {\n          sourceMapsDisabled = true;\n        }\n      }\n    }\n    function emitSourceMapsAfterNode(node) {\n      const emitFlags = getEmitFlags(node);\n      const sourceMapRange = getSourceMapRange(node);\n      if (!isUnparsedNode(node)) {\n        if (emitFlags & 128) {\n          sourceMapsDisabled = false;\n        }\n        if (node.kind !== 355 && (emitFlags & 64) === 0 && sourceMapRange.end >= 0) {\n          emitSourcePos(sourceMapRange.source || sourceMapSource, sourceMapRange.end);\n        }\n      }\n    }\n    function skipSourceTrivia(source, pos) {\n      return source.skipTrivia ? source.skipTrivia(pos) : skipTrivia(source.text, pos);\n    }\n    function emitPos(pos) {\n      if (sourceMapsDisabled || positionIsSynthesized(pos) || isJsonSourceMapSource(sourceMapSource)) {\n        return;\n      }\n      const { line: sourceLine, character: sourceCharacter } = getLineAndCharacterOfPosition(sourceMapSource, pos);\n      sourceMapGenerator.addMapping(writer.getLine(), writer.getColumn(), sourceMapSourceIndex, sourceLine, sourceCharacter, void 0);\n    }\n    function emitSourcePos(source, pos) {\n      if (source !== sourceMapSource) {\n        const savedSourceMapSource = sourceMapSource;\n        const savedSourceMapSourceIndex = sourceMapSourceIndex;\n        setSourceMapSource(source);\n        emitPos(pos);\n        resetSourceMapSource(savedSourceMapSource, savedSourceMapSourceIndex);\n      } else {\n        emitPos(pos);\n      }\n    }\n    function emitTokenWithSourceMap(node, token, writer2, tokenPos, emitCallback) {\n      if (sourceMapsDisabled || node && isInJsonFile(node)) {\n        return emitCallback(token, writer2, tokenPos);\n      }\n      const emitNode = node && node.emitNode;\n      const emitFlags = emitNode && emitNode.flags || 0;\n      const range = emitNode && emitNode.tokenSourceMapRanges && emitNode.tokenSourceMapRanges[token];\n      const source = range && range.source || sourceMapSource;\n      tokenPos = skipSourceTrivia(source, range ? range.pos : tokenPos);\n      if ((emitFlags & 256) === 0 && tokenPos >= 0) {\n        emitSourcePos(source, tokenPos);\n      }\n      tokenPos = emitCallback(token, writer2, tokenPos);\n      if (range)\n        tokenPos = range.end;\n      if ((emitFlags & 512) === 0 && tokenPos >= 0) {\n        emitSourcePos(source, tokenPos);\n      }\n      return tokenPos;\n    }\n    function setSourceMapSource(source) {\n      if (sourceMapsDisabled) {\n        return;\n      }\n      sourceMapSource = source;\n      if (source === mostRecentlyAddedSourceMapSource) {\n        sourceMapSourceIndex = mostRecentlyAddedSourceMapSourceIndex;\n        return;\n      }\n      if (isJsonSourceMapSource(source)) {\n        return;\n      }\n      sourceMapSourceIndex = sourceMapGenerator.addSource(source.fileName);\n      if (printerOptions.inlineSources) {\n        sourceMapGenerator.setSourceContent(sourceMapSourceIndex, source.text);\n      }\n      mostRecentlyAddedSourceMapSource = source;\n      mostRecentlyAddedSourceMapSourceIndex = sourceMapSourceIndex;\n    }\n    function resetSourceMapSource(source, sourceIndex) {\n      sourceMapSource = source;\n      sourceMapSourceIndex = sourceIndex;\n    }\n    function isJsonSourceMapSource(sourceFile) {\n      return fileExtensionIs(sourceFile.fileName, \".json\");\n    }\n  }\n  function createBracketsMap() {\n    const brackets2 = [];\n    brackets2[1024] = [\"{\", \"}\"];\n    brackets2[2048] = [\"(\", \")\"];\n    brackets2[4096] = [\"<\", \">\"];\n    brackets2[8192] = [\"[\", \"]\"];\n    return brackets2;\n  }\n  function getOpeningBracket(format) {\n    return brackets[format & 15360][0];\n  }\n  function getClosingBracket(format) {\n    return brackets[format & 15360][1];\n  }\n  function emitListItemNoParenthesizer(node, emit, _parenthesizerRule, _index) {\n    emit(node);\n  }\n  function emitListItemWithParenthesizerRuleSelector(node, emit, parenthesizerRuleSelector, index) {\n    emit(node, parenthesizerRuleSelector.select(index));\n  }\n  function emitListItemWithParenthesizerRule(node, emit, parenthesizerRule, _index) {\n    emit(node, parenthesizerRule);\n  }\n  function getEmitListItem(emit, parenthesizerRule) {\n    return emit.length === 1 ? emitListItemNoParenthesizer : typeof parenthesizerRule === \"object\" ? emitListItemWithParenthesizerRuleSelector : emitListItemWithParenthesizerRule;\n  }\n  var brackets, notImplementedResolver, createPrinterWithDefaults, createPrinterWithRemoveComments, createPrinterWithRemoveCommentsNeverAsciiEscape, createPrinterWithRemoveCommentsOmitTrailingSemicolon;\n  var init_emitter = __esm({\n    \"src/compiler/emitter.ts\"() {\n      \"use strict\";\n      init_ts2();\n      init_ts2();\n      init_ts_performance();\n      brackets = createBracketsMap();\n      notImplementedResolver = {\n        hasGlobalName: notImplemented,\n        getReferencedExportContainer: notImplemented,\n        getReferencedImportDeclaration: notImplemented,\n        getReferencedDeclarationWithCollidingName: notImplemented,\n        isDeclarationWithCollidingName: notImplemented,\n        isValueAliasDeclaration: notImplemented,\n        isReferencedAliasDeclaration: notImplemented,\n        isTopLevelValueImportEqualsWithEntityName: notImplemented,\n        getNodeCheckFlags: notImplemented,\n        isDeclarationVisible: notImplemented,\n        isLateBound: (_node) => false,\n        collectLinkedAliases: notImplemented,\n        isImplementationOfOverload: notImplemented,\n        isRequiredInitializedParameter: notImplemented,\n        isOptionalUninitializedParameterProperty: notImplemented,\n        isExpandoFunctionDeclaration: notImplemented,\n        getPropertiesOfContainerFunction: notImplemented,\n        createTypeOfDeclaration: notImplemented,\n        createReturnTypeOfSignatureDeclaration: notImplemented,\n        createTypeOfExpression: notImplemented,\n        createLiteralConstValue: notImplemented,\n        isSymbolAccessible: notImplemented,\n        isEntityNameVisible: notImplemented,\n        getConstantValue: notImplemented,\n        getReferencedValueDeclaration: notImplemented,\n        getTypeReferenceSerializationKind: notImplemented,\n        isOptionalParameter: notImplemented,\n        moduleExportsSomeValue: notImplemented,\n        isArgumentsLocalBinding: notImplemented,\n        getExternalModuleFileFromDeclaration: notImplemented,\n        getTypeReferenceDirectivesForEntityName: notImplemented,\n        getTypeReferenceDirectivesForSymbol: notImplemented,\n        isLiteralConstDeclaration: notImplemented,\n        getJsxFactoryEntity: notImplemented,\n        getJsxFragmentFactoryEntity: notImplemented,\n        getAllAccessorDeclarations: notImplemented,\n        getSymbolOfExternalModuleSpecifier: notImplemented,\n        isBindingCapturedByNode: notImplemented,\n        getDeclarationStatementsForSourceFile: notImplemented,\n        isImportRequiredByAugmentation: notImplemented\n      };\n      createPrinterWithDefaults = /* @__PURE__ */ memoize(() => createPrinter({}));\n      createPrinterWithRemoveComments = /* @__PURE__ */ memoize(() => createPrinter({ removeComments: true }));\n      createPrinterWithRemoveCommentsNeverAsciiEscape = /* @__PURE__ */ memoize(() => createPrinter({ removeComments: true, neverAsciiEscape: true }));\n      createPrinterWithRemoveCommentsOmitTrailingSemicolon = /* @__PURE__ */ memoize(() => createPrinter({ removeComments: true, omitTrailingSemicolon: true }));\n    }\n  });\n  function createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames) {\n    if (!host.getDirectories || !host.readDirectory) {\n      return void 0;\n    }\n    const cachedReadDirectoryResult = /* @__PURE__ */ new Map();\n    const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames);\n    return {\n      useCaseSensitiveFileNames,\n      fileExists,\n      readFile: (path, encoding) => host.readFile(path, encoding),\n      directoryExists: host.directoryExists && directoryExists,\n      getDirectories,\n      readDirectory,\n      createDirectory: host.createDirectory && createDirectory,\n      writeFile: host.writeFile && writeFile2,\n      addOrDeleteFileOrDirectory,\n      addOrDeleteFile,\n      clearCache,\n      realpath: host.realpath && realpath\n    };\n    function toPath3(fileName) {\n      return toPath(fileName, currentDirectory, getCanonicalFileName);\n    }\n    function getCachedFileSystemEntries(rootDirPath) {\n      return cachedReadDirectoryResult.get(ensureTrailingDirectorySeparator(rootDirPath));\n    }\n    function getCachedFileSystemEntriesForBaseDir(path) {\n      const entries = getCachedFileSystemEntries(getDirectoryPath(path));\n      if (!entries) {\n        return entries;\n      }\n      if (!entries.sortedAndCanonicalizedFiles) {\n        entries.sortedAndCanonicalizedFiles = entries.files.map(getCanonicalFileName).sort();\n        entries.sortedAndCanonicalizedDirectories = entries.directories.map(getCanonicalFileName).sort();\n      }\n      return entries;\n    }\n    function getBaseNameOfFileName(fileName) {\n      return getBaseFileName(normalizePath(fileName));\n    }\n    function createCachedFileSystemEntries(rootDir, rootDirPath) {\n      var _a2;\n      if (!host.realpath || ensureTrailingDirectorySeparator(toPath3(host.realpath(rootDir))) === rootDirPath) {\n        const resultFromHost = {\n          files: map(host.readDirectory(rootDir, void 0, void 0, [\"*.*\"]), getBaseNameOfFileName) || [],\n          directories: host.getDirectories(rootDir) || []\n        };\n        cachedReadDirectoryResult.set(ensureTrailingDirectorySeparator(rootDirPath), resultFromHost);\n        return resultFromHost;\n      }\n      if ((_a2 = host.directoryExists) == null ? void 0 : _a2.call(host, rootDir)) {\n        cachedReadDirectoryResult.set(rootDirPath, false);\n        return false;\n      }\n      return void 0;\n    }\n    function tryReadDirectory2(rootDir, rootDirPath) {\n      rootDirPath = ensureTrailingDirectorySeparator(rootDirPath);\n      const cachedResult = getCachedFileSystemEntries(rootDirPath);\n      if (cachedResult) {\n        return cachedResult;\n      }\n      try {\n        return createCachedFileSystemEntries(rootDir, rootDirPath);\n      } catch (_e) {\n        Debug.assert(!cachedReadDirectoryResult.has(ensureTrailingDirectorySeparator(rootDirPath)));\n        return void 0;\n      }\n    }\n    function hasEntry(entries, name) {\n      const index = binarySearch(entries, name, identity, compareStringsCaseSensitive);\n      return index >= 0;\n    }\n    function writeFile2(fileName, data, writeByteOrderMark) {\n      const path = toPath3(fileName);\n      const result = getCachedFileSystemEntriesForBaseDir(path);\n      if (result) {\n        updateFilesOfFileSystemEntry(result, getBaseNameOfFileName(fileName), true);\n      }\n      return host.writeFile(fileName, data, writeByteOrderMark);\n    }\n    function fileExists(fileName) {\n      const path = toPath3(fileName);\n      const result = getCachedFileSystemEntriesForBaseDir(path);\n      return result && hasEntry(result.sortedAndCanonicalizedFiles, getCanonicalFileName(getBaseNameOfFileName(fileName))) || host.fileExists(fileName);\n    }\n    function directoryExists(dirPath) {\n      const path = toPath3(dirPath);\n      return cachedReadDirectoryResult.has(ensureTrailingDirectorySeparator(path)) || host.directoryExists(dirPath);\n    }\n    function createDirectory(dirPath) {\n      const path = toPath3(dirPath);\n      const result = getCachedFileSystemEntriesForBaseDir(path);\n      if (result) {\n        const baseName = getBaseNameOfFileName(dirPath);\n        const canonicalizedBaseName = getCanonicalFileName(baseName);\n        const canonicalizedDirectories = result.sortedAndCanonicalizedDirectories;\n        if (insertSorted(canonicalizedDirectories, canonicalizedBaseName, compareStringsCaseSensitive)) {\n          result.directories.push(baseName);\n        }\n      }\n      host.createDirectory(dirPath);\n    }\n    function getDirectories(rootDir) {\n      const rootDirPath = toPath3(rootDir);\n      const result = tryReadDirectory2(rootDir, rootDirPath);\n      if (result) {\n        return result.directories.slice();\n      }\n      return host.getDirectories(rootDir);\n    }\n    function readDirectory(rootDir, extensions, excludes, includes, depth) {\n      const rootDirPath = toPath3(rootDir);\n      const rootResult = tryReadDirectory2(rootDir, rootDirPath);\n      let rootSymLinkResult;\n      if (rootResult !== void 0) {\n        return matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath);\n      }\n      return host.readDirectory(rootDir, extensions, excludes, includes, depth);\n      function getFileSystemEntries(dir) {\n        const path = toPath3(dir);\n        if (path === rootDirPath) {\n          return rootResult || getFileSystemEntriesFromHost(dir, path);\n        }\n        const result = tryReadDirectory2(dir, path);\n        return result !== void 0 ? result || getFileSystemEntriesFromHost(dir, path) : emptyFileSystemEntries;\n      }\n      function getFileSystemEntriesFromHost(dir, path) {\n        if (rootSymLinkResult && path === rootDirPath)\n          return rootSymLinkResult;\n        const result = {\n          files: map(host.readDirectory(dir, void 0, void 0, [\"*.*\"]), getBaseNameOfFileName) || emptyArray,\n          directories: host.getDirectories(dir) || emptyArray\n        };\n        if (path === rootDirPath)\n          rootSymLinkResult = result;\n        return result;\n      }\n    }\n    function realpath(s) {\n      return host.realpath ? host.realpath(s) : s;\n    }\n    function addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath) {\n      const existingResult = getCachedFileSystemEntries(fileOrDirectoryPath);\n      if (existingResult !== void 0) {\n        clearCache();\n        return void 0;\n      }\n      const parentResult = getCachedFileSystemEntriesForBaseDir(fileOrDirectoryPath);\n      if (!parentResult) {\n        return void 0;\n      }\n      if (!host.directoryExists) {\n        clearCache();\n        return void 0;\n      }\n      const baseName = getBaseNameOfFileName(fileOrDirectory);\n      const fsQueryResult = {\n        fileExists: host.fileExists(fileOrDirectoryPath),\n        directoryExists: host.directoryExists(fileOrDirectoryPath)\n      };\n      if (fsQueryResult.directoryExists || hasEntry(parentResult.sortedAndCanonicalizedDirectories, getCanonicalFileName(baseName))) {\n        clearCache();\n      } else {\n        updateFilesOfFileSystemEntry(parentResult, baseName, fsQueryResult.fileExists);\n      }\n      return fsQueryResult;\n    }\n    function addOrDeleteFile(fileName, filePath, eventKind) {\n      if (eventKind === 1) {\n        return;\n      }\n      const parentResult = getCachedFileSystemEntriesForBaseDir(filePath);\n      if (parentResult) {\n        updateFilesOfFileSystemEntry(parentResult, getBaseNameOfFileName(fileName), eventKind === 0);\n      }\n    }\n    function updateFilesOfFileSystemEntry(parentResult, baseName, fileExists2) {\n      const canonicalizedFiles = parentResult.sortedAndCanonicalizedFiles;\n      const canonicalizedBaseName = getCanonicalFileName(baseName);\n      if (fileExists2) {\n        if (insertSorted(canonicalizedFiles, canonicalizedBaseName, compareStringsCaseSensitive)) {\n          parentResult.files.push(baseName);\n        }\n      } else {\n        const sortedIndex = binarySearch(canonicalizedFiles, canonicalizedBaseName, identity, compareStringsCaseSensitive);\n        if (sortedIndex >= 0) {\n          canonicalizedFiles.splice(sortedIndex, 1);\n          const unsortedIndex = parentResult.files.findIndex((entry) => getCanonicalFileName(entry) === canonicalizedBaseName);\n          parentResult.files.splice(unsortedIndex, 1);\n        }\n      }\n    }\n    function clearCache() {\n      cachedReadDirectoryResult.clear();\n    }\n  }\n  function updateSharedExtendedConfigFileWatcher(projectPath, options, extendedConfigFilesMap, createExtendedConfigFileWatch, toPath3) {\n    var _a2;\n    const extendedConfigs = arrayToMap(((_a2 = options == null ? void 0 : options.configFile) == null ? void 0 : _a2.extendedSourceFiles) || emptyArray, toPath3);\n    extendedConfigFilesMap.forEach((watcher, extendedConfigFilePath) => {\n      if (!extendedConfigs.has(extendedConfigFilePath)) {\n        watcher.projects.delete(projectPath);\n        watcher.close();\n      }\n    });\n    extendedConfigs.forEach((extendedConfigFileName, extendedConfigFilePath) => {\n      const existing = extendedConfigFilesMap.get(extendedConfigFilePath);\n      if (existing) {\n        existing.projects.add(projectPath);\n      } else {\n        extendedConfigFilesMap.set(extendedConfigFilePath, {\n          projects: /* @__PURE__ */ new Set([projectPath]),\n          watcher: createExtendedConfigFileWatch(extendedConfigFileName, extendedConfigFilePath),\n          close: () => {\n            const existing2 = extendedConfigFilesMap.get(extendedConfigFilePath);\n            if (!existing2 || existing2.projects.size !== 0)\n              return;\n            existing2.watcher.close();\n            extendedConfigFilesMap.delete(extendedConfigFilePath);\n          }\n        });\n      }\n    });\n  }\n  function clearSharedExtendedConfigFileWatcher(projectPath, extendedConfigFilesMap) {\n    extendedConfigFilesMap.forEach((watcher) => {\n      if (watcher.projects.delete(projectPath))\n        watcher.close();\n    });\n  }\n  function cleanExtendedConfigCache(extendedConfigCache, extendedConfigFilePath, toPath3) {\n    if (!extendedConfigCache.delete(extendedConfigFilePath))\n      return;\n    extendedConfigCache.forEach(({ extendedResult }, key) => {\n      var _a2;\n      if ((_a2 = extendedResult.extendedSourceFiles) == null ? void 0 : _a2.some((extendedFile) => toPath3(extendedFile) === extendedConfigFilePath)) {\n        cleanExtendedConfigCache(extendedConfigCache, key, toPath3);\n      }\n    });\n  }\n  function updatePackageJsonWatch(lookups, packageJsonWatches, createPackageJsonWatch) {\n    const newMap = new Map(lookups);\n    mutateMap(packageJsonWatches, newMap, {\n      createNewValue: createPackageJsonWatch,\n      onDeleteValue: closeFileWatcher\n    });\n  }\n  function updateMissingFilePathsWatch(program, missingFileWatches, createMissingFileWatch) {\n    const missingFilePaths = program.getMissingFilePaths();\n    const newMissingFilePathMap = arrayToMap(missingFilePaths, identity, returnTrue);\n    mutateMap(missingFileWatches, newMissingFilePathMap, {\n      createNewValue: createMissingFileWatch,\n      onDeleteValue: closeFileWatcher\n    });\n  }\n  function updateWatchingWildcardDirectories(existingWatchedForWildcards, wildcardDirectories, watchDirectory) {\n    mutateMap(existingWatchedForWildcards, wildcardDirectories, {\n      createNewValue: createWildcardDirectoryWatcher,\n      onDeleteValue: closeFileWatcherOf,\n      onExistingValue: updateWildcardDirectoryWatcher\n    });\n    function createWildcardDirectoryWatcher(directory, flags) {\n      return {\n        watcher: watchDirectory(directory, flags),\n        flags\n      };\n    }\n    function updateWildcardDirectoryWatcher(existingWatcher, flags, directory) {\n      if (existingWatcher.flags === flags) {\n        return;\n      }\n      existingWatcher.watcher.close();\n      existingWatchedForWildcards.set(directory, createWildcardDirectoryWatcher(directory, flags));\n    }\n  }\n  function isIgnoredFileFromWildCardWatching({\n    watchedDirPath,\n    fileOrDirectory,\n    fileOrDirectoryPath,\n    configFileName,\n    options,\n    program,\n    extraFileExtensions,\n    currentDirectory,\n    useCaseSensitiveFileNames,\n    writeLog,\n    toPath: toPath3\n  }) {\n    const newPath = removeIgnoredPath(fileOrDirectoryPath);\n    if (!newPath) {\n      writeLog(`Project: ${configFileName} Detected ignored path: ${fileOrDirectory}`);\n      return true;\n    }\n    fileOrDirectoryPath = newPath;\n    if (fileOrDirectoryPath === watchedDirPath)\n      return false;\n    if (hasExtension(fileOrDirectoryPath) && !isSupportedSourceFileName(fileOrDirectory, options, extraFileExtensions)) {\n      writeLog(`Project: ${configFileName} Detected file add/remove of non supported extension: ${fileOrDirectory}`);\n      return true;\n    }\n    if (isExcludedFile(fileOrDirectory, options.configFile.configFileSpecs, getNormalizedAbsolutePath(getDirectoryPath(configFileName), currentDirectory), useCaseSensitiveFileNames, currentDirectory)) {\n      writeLog(`Project: ${configFileName} Detected excluded file: ${fileOrDirectory}`);\n      return true;\n    }\n    if (!program)\n      return false;\n    if (outFile(options) || options.outDir)\n      return false;\n    if (isDeclarationFileName(fileOrDirectoryPath)) {\n      if (options.declarationDir)\n        return false;\n    } else if (!fileExtensionIsOneOf(fileOrDirectoryPath, supportedJSExtensionsFlat)) {\n      return false;\n    }\n    const filePathWithoutExtension = removeFileExtension(fileOrDirectoryPath);\n    const realProgram = isArray(program) ? void 0 : isBuilderProgram(program) ? program.getProgramOrUndefined() : program;\n    const builderProgram = !realProgram && !isArray(program) ? program : void 0;\n    if (hasSourceFile(filePathWithoutExtension + \".ts\") || hasSourceFile(filePathWithoutExtension + \".tsx\")) {\n      writeLog(`Project: ${configFileName} Detected output file: ${fileOrDirectory}`);\n      return true;\n    }\n    return false;\n    function hasSourceFile(file) {\n      return realProgram ? !!realProgram.getSourceFileByPath(file) : builderProgram ? builderProgram.getState().fileInfos.has(file) : !!find(program, (rootFile) => toPath3(rootFile) === file);\n    }\n  }\n  function isBuilderProgram(program) {\n    return !!program.getState;\n  }\n  function isEmittedFileOfProgram(program, file) {\n    if (!program) {\n      return false;\n    }\n    return program.isEmittedFile(file);\n  }\n  function getWatchFactory(host, watchLogLevel, log, getDetailWatchInfo) {\n    setSysLog(watchLogLevel === 2 ? log : noop);\n    const plainInvokeFactory = {\n      watchFile: (file, callback, pollingInterval, options) => host.watchFile(file, callback, pollingInterval, options),\n      watchDirectory: (directory, callback, flags, options) => host.watchDirectory(directory, callback, (flags & 1) !== 0, options)\n    };\n    const triggerInvokingFactory = watchLogLevel !== 0 ? {\n      watchFile: createTriggerLoggingAddWatch(\"watchFile\"),\n      watchDirectory: createTriggerLoggingAddWatch(\"watchDirectory\")\n    } : void 0;\n    const factory2 = watchLogLevel === 2 ? {\n      watchFile: createFileWatcherWithLogging,\n      watchDirectory: createDirectoryWatcherWithLogging\n    } : triggerInvokingFactory || plainInvokeFactory;\n    const excludeWatcherFactory = watchLogLevel === 2 ? createExcludeWatcherWithLogging : returnNoopFileWatcher;\n    return {\n      watchFile: createExcludeHandlingAddWatch(\"watchFile\"),\n      watchDirectory: createExcludeHandlingAddWatch(\"watchDirectory\")\n    };\n    function createExcludeHandlingAddWatch(key) {\n      return (file, cb, flags, options, detailInfo1, detailInfo2) => {\n        var _a2;\n        return !matchesExclude(file, key === \"watchFile\" ? options == null ? void 0 : options.excludeFiles : options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames(), ((_a2 = host.getCurrentDirectory) == null ? void 0 : _a2.call(host)) || \"\") ? factory2[key].call(void 0, file, cb, flags, options, detailInfo1, detailInfo2) : excludeWatcherFactory(file, flags, options, detailInfo1, detailInfo2);\n      };\n    }\n    function useCaseSensitiveFileNames() {\n      return typeof host.useCaseSensitiveFileNames === \"boolean\" ? host.useCaseSensitiveFileNames : host.useCaseSensitiveFileNames();\n    }\n    function createExcludeWatcherWithLogging(file, flags, options, detailInfo1, detailInfo2) {\n      log(`ExcludeWatcher:: Added:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)}`);\n      return {\n        close: () => log(`ExcludeWatcher:: Close:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)}`)\n      };\n    }\n    function createFileWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) {\n      log(`FileWatcher:: Added:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)}`);\n      const watcher = triggerInvokingFactory.watchFile(file, cb, flags, options, detailInfo1, detailInfo2);\n      return {\n        close: () => {\n          log(`FileWatcher:: Close:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)}`);\n          watcher.close();\n        }\n      };\n    }\n    function createDirectoryWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) {\n      const watchInfo = `DirectoryWatcher:: Added:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)}`;\n      log(watchInfo);\n      const start = timestamp();\n      const watcher = triggerInvokingFactory.watchDirectory(file, cb, flags, options, detailInfo1, detailInfo2);\n      const elapsed = timestamp() - start;\n      log(`Elapsed:: ${elapsed}ms ${watchInfo}`);\n      return {\n        close: () => {\n          const watchInfo2 = `DirectoryWatcher:: Close:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)}`;\n          log(watchInfo2);\n          const start2 = timestamp();\n          watcher.close();\n          const elapsed2 = timestamp() - start2;\n          log(`Elapsed:: ${elapsed2}ms ${watchInfo2}`);\n        }\n      };\n    }\n    function createTriggerLoggingAddWatch(key) {\n      return (file, cb, flags, options, detailInfo1, detailInfo2) => plainInvokeFactory[key].call(void 0, file, (...args) => {\n        const triggerredInfo = `${key === \"watchFile\" ? \"FileWatcher\" : \"DirectoryWatcher\"}:: Triggered with ${args[0]} ${args[1] !== void 0 ? args[1] : \"\"}:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)}`;\n        log(triggerredInfo);\n        const start = timestamp();\n        cb.call(void 0, ...args);\n        const elapsed = timestamp() - start;\n        log(`Elapsed:: ${elapsed}ms ${triggerredInfo}`);\n      }, flags, options, detailInfo1, detailInfo2);\n    }\n    function getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2) {\n      return `WatchInfo: ${file} ${flags} ${JSON.stringify(options)} ${getDetailWatchInfo2 ? getDetailWatchInfo2(detailInfo1, detailInfo2) : detailInfo2 === void 0 ? detailInfo1 : `${detailInfo1} ${detailInfo2}`}`;\n    }\n  }\n  function getFallbackOptions(options) {\n    const fallbackPolling = options == null ? void 0 : options.fallbackPolling;\n    return {\n      watchFile: fallbackPolling !== void 0 ? fallbackPolling : 1\n    };\n  }\n  function closeFileWatcherOf(objWithWatcher) {\n    objWithWatcher.watcher.close();\n  }\n  var ConfigFileProgramReloadLevel, WatchLogLevel;\n  var init_watchUtilities = __esm({\n    \"src/compiler/watchUtilities.ts\"() {\n      \"use strict\";\n      init_ts2();\n      init_ts2();\n      ConfigFileProgramReloadLevel = /* @__PURE__ */ ((ConfigFileProgramReloadLevel2) => {\n        ConfigFileProgramReloadLevel2[ConfigFileProgramReloadLevel2[\"None\"] = 0] = \"None\";\n        ConfigFileProgramReloadLevel2[ConfigFileProgramReloadLevel2[\"Partial\"] = 1] = \"Partial\";\n        ConfigFileProgramReloadLevel2[ConfigFileProgramReloadLevel2[\"Full\"] = 2] = \"Full\";\n        return ConfigFileProgramReloadLevel2;\n      })(ConfigFileProgramReloadLevel || {});\n      WatchLogLevel = /* @__PURE__ */ ((WatchLogLevel2) => {\n        WatchLogLevel2[WatchLogLevel2[\"None\"] = 0] = \"None\";\n        WatchLogLevel2[WatchLogLevel2[\"TriggerOnly\"] = 1] = \"TriggerOnly\";\n        WatchLogLevel2[WatchLogLevel2[\"Verbose\"] = 2] = \"Verbose\";\n        return WatchLogLevel2;\n      })(WatchLogLevel || {});\n    }\n  });\n  function findConfigFile(searchPath, fileExists, configName = \"tsconfig.json\") {\n    return forEachAncestorDirectory(searchPath, (ancestor) => {\n      const fileName = combinePaths(ancestor, configName);\n      return fileExists(fileName) ? fileName : void 0;\n    });\n  }\n  function resolveTripleslashReference(moduleName, containingFile) {\n    const basePath = getDirectoryPath(containingFile);\n    const referencedFileName = isRootedDiskPath(moduleName) ? moduleName : combinePaths(basePath, moduleName);\n    return normalizePath(referencedFileName);\n  }\n  function computeCommonSourceDirectoryOfFilenames(fileNames, currentDirectory, getCanonicalFileName) {\n    let commonPathComponents;\n    const failed = forEach(fileNames, (sourceFile) => {\n      const sourcePathComponents = getNormalizedPathComponents(sourceFile, currentDirectory);\n      sourcePathComponents.pop();\n      if (!commonPathComponents) {\n        commonPathComponents = sourcePathComponents;\n        return;\n      }\n      const n = Math.min(commonPathComponents.length, sourcePathComponents.length);\n      for (let i = 0; i < n; i++) {\n        if (getCanonicalFileName(commonPathComponents[i]) !== getCanonicalFileName(sourcePathComponents[i])) {\n          if (i === 0) {\n            return true;\n          }\n          commonPathComponents.length = i;\n          break;\n        }\n      }\n      if (sourcePathComponents.length < commonPathComponents.length) {\n        commonPathComponents.length = sourcePathComponents.length;\n      }\n    });\n    if (failed) {\n      return \"\";\n    }\n    if (!commonPathComponents) {\n      return currentDirectory;\n    }\n    return getPathFromPathComponents(commonPathComponents);\n  }\n  function createCompilerHost(options, setParentNodes) {\n    return createCompilerHostWorker(options, setParentNodes);\n  }\n  function createGetSourceFile(readFile, getCompilerOptions, setParentNodes) {\n    return (fileName, languageVersionOrOptions, onError) => {\n      let text;\n      try {\n        mark(\"beforeIORead\");\n        text = readFile(fileName, getCompilerOptions().charset);\n        mark(\"afterIORead\");\n        measure(\"I/O Read\", \"beforeIORead\", \"afterIORead\");\n      } catch (e) {\n        if (onError) {\n          onError(e.message);\n        }\n        text = \"\";\n      }\n      return text !== void 0 ? createSourceFile(fileName, text, languageVersionOrOptions, setParentNodes) : void 0;\n    };\n  }\n  function createWriteFileMeasuringIO(actualWriteFile, createDirectory, directoryExists) {\n    return (fileName, data, writeByteOrderMark, onError) => {\n      try {\n        mark(\"beforeIOWrite\");\n        writeFileEnsuringDirectories(fileName, data, writeByteOrderMark, actualWriteFile, createDirectory, directoryExists);\n        mark(\"afterIOWrite\");\n        measure(\"I/O Write\", \"beforeIOWrite\", \"afterIOWrite\");\n      } catch (e) {\n        if (onError) {\n          onError(e.message);\n        }\n      }\n    };\n  }\n  function createCompilerHostWorker(options, setParentNodes, system = sys) {\n    const existingDirectories = /* @__PURE__ */ new Map();\n    const getCanonicalFileName = createGetCanonicalFileName(system.useCaseSensitiveFileNames);\n    function directoryExists(directoryPath) {\n      if (existingDirectories.has(directoryPath)) {\n        return true;\n      }\n      if ((compilerHost.directoryExists || system.directoryExists)(directoryPath)) {\n        existingDirectories.set(directoryPath, true);\n        return true;\n      }\n      return false;\n    }\n    function getDefaultLibLocation() {\n      return getDirectoryPath(normalizePath(system.getExecutingFilePath()));\n    }\n    const newLine = getNewLineCharacter(options);\n    const realpath = system.realpath && ((path) => system.realpath(path));\n    const compilerHost = {\n      getSourceFile: createGetSourceFile((fileName) => compilerHost.readFile(fileName), () => options, setParentNodes),\n      getDefaultLibLocation,\n      getDefaultLibFileName: (options2) => combinePaths(getDefaultLibLocation(), getDefaultLibFileName(options2)),\n      writeFile: createWriteFileMeasuringIO((path, data, writeByteOrderMark) => system.writeFile(path, data, writeByteOrderMark), (path) => (compilerHost.createDirectory || system.createDirectory)(path), (path) => directoryExists(path)),\n      getCurrentDirectory: memoize(() => system.getCurrentDirectory()),\n      useCaseSensitiveFileNames: () => system.useCaseSensitiveFileNames,\n      getCanonicalFileName,\n      getNewLine: () => newLine,\n      fileExists: (fileName) => system.fileExists(fileName),\n      readFile: (fileName) => system.readFile(fileName),\n      trace: (s) => system.write(s + newLine),\n      directoryExists: (directoryName) => system.directoryExists(directoryName),\n      getEnvironmentVariable: (name) => system.getEnvironmentVariable ? system.getEnvironmentVariable(name) : \"\",\n      getDirectories: (path) => system.getDirectories(path),\n      realpath,\n      readDirectory: (path, extensions, include, exclude, depth) => system.readDirectory(path, extensions, include, exclude, depth),\n      createDirectory: (d) => system.createDirectory(d),\n      createHash: maybeBind(system, system.createHash)\n    };\n    return compilerHost;\n  }\n  function changeCompilerHostLikeToUseCache(host, toPath3, getSourceFile) {\n    const originalReadFile = host.readFile;\n    const originalFileExists = host.fileExists;\n    const originalDirectoryExists = host.directoryExists;\n    const originalCreateDirectory = host.createDirectory;\n    const originalWriteFile = host.writeFile;\n    const readFileCache = /* @__PURE__ */ new Map();\n    const fileExistsCache = /* @__PURE__ */ new Map();\n    const directoryExistsCache = /* @__PURE__ */ new Map();\n    const sourceFileCache = /* @__PURE__ */ new Map();\n    const readFileWithCache = (fileName) => {\n      const key = toPath3(fileName);\n      const value = readFileCache.get(key);\n      if (value !== void 0)\n        return value !== false ? value : void 0;\n      return setReadFileCache(key, fileName);\n    };\n    const setReadFileCache = (key, fileName) => {\n      const newValue = originalReadFile.call(host, fileName);\n      readFileCache.set(key, newValue !== void 0 ? newValue : false);\n      return newValue;\n    };\n    host.readFile = (fileName) => {\n      const key = toPath3(fileName);\n      const value = readFileCache.get(key);\n      if (value !== void 0)\n        return value !== false ? value : void 0;\n      if (!fileExtensionIs(fileName, \".json\") && !isBuildInfoFile(fileName)) {\n        return originalReadFile.call(host, fileName);\n      }\n      return setReadFileCache(key, fileName);\n    };\n    const getSourceFileWithCache = getSourceFile ? (fileName, languageVersionOrOptions, onError, shouldCreateNewSourceFile) => {\n      const key = toPath3(fileName);\n      const impliedNodeFormat = typeof languageVersionOrOptions === \"object\" ? languageVersionOrOptions.impliedNodeFormat : void 0;\n      const forImpliedNodeFormat = sourceFileCache.get(impliedNodeFormat);\n      const value = forImpliedNodeFormat == null ? void 0 : forImpliedNodeFormat.get(key);\n      if (value)\n        return value;\n      const sourceFile = getSourceFile(fileName, languageVersionOrOptions, onError, shouldCreateNewSourceFile);\n      if (sourceFile && (isDeclarationFileName(fileName) || fileExtensionIs(fileName, \".json\"))) {\n        sourceFileCache.set(impliedNodeFormat, (forImpliedNodeFormat || /* @__PURE__ */ new Map()).set(key, sourceFile));\n      }\n      return sourceFile;\n    } : void 0;\n    host.fileExists = (fileName) => {\n      const key = toPath3(fileName);\n      const value = fileExistsCache.get(key);\n      if (value !== void 0)\n        return value;\n      const newValue = originalFileExists.call(host, fileName);\n      fileExistsCache.set(key, !!newValue);\n      return newValue;\n    };\n    if (originalWriteFile) {\n      host.writeFile = (fileName, data, ...rest) => {\n        const key = toPath3(fileName);\n        fileExistsCache.delete(key);\n        const value = readFileCache.get(key);\n        if (value !== void 0 && value !== data) {\n          readFileCache.delete(key);\n          sourceFileCache.forEach((map2) => map2.delete(key));\n        } else if (getSourceFileWithCache) {\n          sourceFileCache.forEach((map2) => {\n            const sourceFile = map2.get(key);\n            if (sourceFile && sourceFile.text !== data) {\n              map2.delete(key);\n            }\n          });\n        }\n        originalWriteFile.call(host, fileName, data, ...rest);\n      };\n    }\n    if (originalDirectoryExists) {\n      host.directoryExists = (directory) => {\n        const key = toPath3(directory);\n        const value = directoryExistsCache.get(key);\n        if (value !== void 0)\n          return value;\n        const newValue = originalDirectoryExists.call(host, directory);\n        directoryExistsCache.set(key, !!newValue);\n        return newValue;\n      };\n      if (originalCreateDirectory) {\n        host.createDirectory = (directory) => {\n          const key = toPath3(directory);\n          directoryExistsCache.delete(key);\n          originalCreateDirectory.call(host, directory);\n        };\n      }\n    }\n    return {\n      originalReadFile,\n      originalFileExists,\n      originalDirectoryExists,\n      originalCreateDirectory,\n      originalWriteFile,\n      getSourceFileWithCache,\n      readFileWithCache\n    };\n  }\n  function getPreEmitDiagnostics(program, sourceFile, cancellationToken) {\n    let diagnostics;\n    diagnostics = addRange(diagnostics, program.getConfigFileParsingDiagnostics());\n    diagnostics = addRange(diagnostics, program.getOptionsDiagnostics(cancellationToken));\n    diagnostics = addRange(diagnostics, program.getSyntacticDiagnostics(sourceFile, cancellationToken));\n    diagnostics = addRange(diagnostics, program.getGlobalDiagnostics(cancellationToken));\n    diagnostics = addRange(diagnostics, program.getSemanticDiagnostics(sourceFile, cancellationToken));\n    if (getEmitDeclarations(program.getCompilerOptions())) {\n      diagnostics = addRange(diagnostics, program.getDeclarationDiagnostics(sourceFile, cancellationToken));\n    }\n    return sortAndDeduplicateDiagnostics(diagnostics || emptyArray);\n  }\n  function formatDiagnostics(diagnostics, host) {\n    let output = \"\";\n    for (const diagnostic of diagnostics) {\n      output += formatDiagnostic(diagnostic, host);\n    }\n    return output;\n  }\n  function formatDiagnostic(diagnostic, host) {\n    const errorMessage = `${diagnosticCategoryName(diagnostic)} TS${diagnostic.code}: ${flattenDiagnosticMessageText2(diagnostic.messageText, host.getNewLine())}${host.getNewLine()}`;\n    if (diagnostic.file) {\n      const { line, character } = getLineAndCharacterOfPosition(diagnostic.file, diagnostic.start);\n      const fileName = diagnostic.file.fileName;\n      const relativeFileName = convertToRelativePath(fileName, host.getCurrentDirectory(), (fileName2) => host.getCanonicalFileName(fileName2));\n      return `${relativeFileName}(${line + 1},${character + 1}): ` + errorMessage;\n    }\n    return errorMessage;\n  }\n  function getCategoryFormat(category) {\n    switch (category) {\n      case 1:\n        return \"\\x1B[91m\";\n      case 0:\n        return \"\\x1B[93m\";\n      case 2:\n        return Debug.fail(\"Should never get an Info diagnostic on the command line.\");\n      case 3:\n        return \"\\x1B[94m\";\n    }\n  }\n  function formatColorAndReset(text, formatStyle) {\n    return formatStyle + text + resetEscapeSequence;\n  }\n  function formatCodeSpan(file, start, length2, indent2, squiggleColor, host) {\n    const { line: firstLine, character: firstLineChar } = getLineAndCharacterOfPosition(file, start);\n    const { line: lastLine, character: lastLineChar } = getLineAndCharacterOfPosition(file, start + length2);\n    const lastLineInFile = getLineAndCharacterOfPosition(file, file.text.length).line;\n    const hasMoreThanFiveLines = lastLine - firstLine >= 4;\n    let gutterWidth = (lastLine + 1 + \"\").length;\n    if (hasMoreThanFiveLines) {\n      gutterWidth = Math.max(ellipsis.length, gutterWidth);\n    }\n    let context = \"\";\n    for (let i = firstLine; i <= lastLine; i++) {\n      context += host.getNewLine();\n      if (hasMoreThanFiveLines && firstLine + 1 < i && i < lastLine - 1) {\n        context += indent2 + formatColorAndReset(padLeft(ellipsis, gutterWidth), gutterStyleSequence) + gutterSeparator + host.getNewLine();\n        i = lastLine - 1;\n      }\n      const lineStart = getPositionOfLineAndCharacter(file, i, 0);\n      const lineEnd = i < lastLineInFile ? getPositionOfLineAndCharacter(file, i + 1, 0) : file.text.length;\n      let lineContent = file.text.slice(lineStart, lineEnd);\n      lineContent = trimStringEnd(lineContent);\n      lineContent = lineContent.replace(/\\t/g, \" \");\n      context += indent2 + formatColorAndReset(padLeft(i + 1 + \"\", gutterWidth), gutterStyleSequence) + gutterSeparator;\n      context += lineContent + host.getNewLine();\n      context += indent2 + formatColorAndReset(padLeft(\"\", gutterWidth), gutterStyleSequence) + gutterSeparator;\n      context += squiggleColor;\n      if (i === firstLine) {\n        const lastCharForLine = i === lastLine ? lastLineChar : void 0;\n        context += lineContent.slice(0, firstLineChar).replace(/\\S/g, \" \");\n        context += lineContent.slice(firstLineChar, lastCharForLine).replace(/./g, \"~\");\n      } else if (i === lastLine) {\n        context += lineContent.slice(0, lastLineChar).replace(/./g, \"~\");\n      } else {\n        context += lineContent.replace(/./g, \"~\");\n      }\n      context += resetEscapeSequence;\n    }\n    return context;\n  }\n  function formatLocation(file, start, host, color = formatColorAndReset) {\n    const { line: firstLine, character: firstLineChar } = getLineAndCharacterOfPosition(file, start);\n    const relativeFileName = host ? convertToRelativePath(file.fileName, host.getCurrentDirectory(), (fileName) => host.getCanonicalFileName(fileName)) : file.fileName;\n    let output = \"\";\n    output += color(relativeFileName, \"\\x1B[96m\");\n    output += \":\";\n    output += color(`${firstLine + 1}`, \"\\x1B[93m\");\n    output += \":\";\n    output += color(`${firstLineChar + 1}`, \"\\x1B[93m\");\n    return output;\n  }\n  function formatDiagnosticsWithColorAndContext(diagnostics, host) {\n    let output = \"\";\n    for (const diagnostic of diagnostics) {\n      if (diagnostic.file) {\n        const { file, start } = diagnostic;\n        output += formatLocation(file, start, host);\n        output += \" - \";\n      }\n      output += formatColorAndReset(diagnosticCategoryName(diagnostic), getCategoryFormat(diagnostic.category));\n      output += formatColorAndReset(` TS${diagnostic.code}: `, \"\\x1B[90m\");\n      output += flattenDiagnosticMessageText2(diagnostic.messageText, host.getNewLine());\n      if (diagnostic.file) {\n        output += host.getNewLine();\n        output += formatCodeSpan(diagnostic.file, diagnostic.start, diagnostic.length, \"\", getCategoryFormat(diagnostic.category), host);\n      }\n      if (diagnostic.relatedInformation) {\n        output += host.getNewLine();\n        for (const { file, start, length: length2, messageText } of diagnostic.relatedInformation) {\n          if (file) {\n            output += host.getNewLine();\n            output += halfIndent + formatLocation(file, start, host);\n            output += formatCodeSpan(file, start, length2, indent, \"\\x1B[96m\", host);\n          }\n          output += host.getNewLine();\n          output += indent + flattenDiagnosticMessageText2(messageText, host.getNewLine());\n        }\n      }\n      output += host.getNewLine();\n    }\n    return output;\n  }\n  function flattenDiagnosticMessageText2(diag2, newLine, indent2 = 0) {\n    if (isString(diag2)) {\n      return diag2;\n    } else if (diag2 === void 0) {\n      return \"\";\n    }\n    let result = \"\";\n    if (indent2) {\n      result += newLine;\n      for (let i = 0; i < indent2; i++) {\n        result += \"  \";\n      }\n    }\n    result += diag2.messageText;\n    indent2++;\n    if (diag2.next) {\n      for (const kid of diag2.next) {\n        result += flattenDiagnosticMessageText2(kid, newLine, indent2);\n      }\n    }\n    return result;\n  }\n  function getModeForFileReference(ref, containingFileMode) {\n    return (isString(ref) ? containingFileMode : ref.resolutionMode) || containingFileMode;\n  }\n  function getModeForResolutionAtIndex(file, index) {\n    if (file.impliedNodeFormat === void 0)\n      return void 0;\n    return getModeForUsageLocation(file, getModuleNameStringLiteralAt(file, index));\n  }\n  function isExclusivelyTypeOnlyImportOrExport(decl) {\n    var _a2;\n    if (isExportDeclaration(decl)) {\n      return decl.isTypeOnly;\n    }\n    if ((_a2 = decl.importClause) == null ? void 0 : _a2.isTypeOnly) {\n      return true;\n    }\n    return false;\n  }\n  function getModeForUsageLocation(file, usage) {\n    var _a2, _b;\n    if (file.impliedNodeFormat === void 0)\n      return void 0;\n    if (isImportDeclaration(usage.parent) || isExportDeclaration(usage.parent)) {\n      const isTypeOnly = isExclusivelyTypeOnlyImportOrExport(usage.parent);\n      if (isTypeOnly) {\n        const override = getResolutionModeOverrideForClause(usage.parent.assertClause);\n        if (override) {\n          return override;\n        }\n      }\n    }\n    if (usage.parent.parent && isImportTypeNode(usage.parent.parent)) {\n      const override = getResolutionModeOverrideForClause((_a2 = usage.parent.parent.assertions) == null ? void 0 : _a2.assertClause);\n      if (override) {\n        return override;\n      }\n    }\n    if (file.impliedNodeFormat !== 99) {\n      return isImportCall(walkUpParenthesizedExpressions(usage.parent)) ? 99 : 1;\n    }\n    const exprParentParent = (_b = walkUpParenthesizedExpressions(usage.parent)) == null ? void 0 : _b.parent;\n    return exprParentParent && isImportEqualsDeclaration(exprParentParent) ? 1 : 99;\n  }\n  function getResolutionModeOverrideForClause(clause, grammarErrorOnNode) {\n    if (!clause)\n      return void 0;\n    if (length(clause.elements) !== 1) {\n      grammarErrorOnNode == null ? void 0 : grammarErrorOnNode(clause, Diagnostics.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require);\n      return void 0;\n    }\n    const elem = clause.elements[0];\n    if (!isStringLiteralLike(elem.name))\n      return void 0;\n    if (elem.name.text !== \"resolution-mode\") {\n      grammarErrorOnNode == null ? void 0 : grammarErrorOnNode(elem.name, Diagnostics.resolution_mode_is_the_only_valid_key_for_type_import_assertions);\n      return void 0;\n    }\n    if (!isStringLiteralLike(elem.value))\n      return void 0;\n    if (elem.value.text !== \"import\" && elem.value.text !== \"require\") {\n      grammarErrorOnNode == null ? void 0 : grammarErrorOnNode(elem.value, Diagnostics.resolution_mode_should_be_either_require_or_import);\n      return void 0;\n    }\n    return elem.value.text === \"import\" ? 99 : 1;\n  }\n  function getModuleResolutionName(literal) {\n    return literal.text;\n  }\n  function createModuleResolutionLoader(containingFile, redirectedReference, options, host, cache) {\n    return {\n      nameAndMode: moduleResolutionNameAndModeGetter,\n      resolve: (moduleName, resolutionMode) => resolveModuleName(moduleName, containingFile, options, host, cache, redirectedReference, resolutionMode)\n    };\n  }\n  function getTypeReferenceResolutionName(entry) {\n    return !isString(entry) ? toFileNameLowerCase(entry.fileName) : entry;\n  }\n  function createTypeReferenceResolutionLoader(containingFile, redirectedReference, options, host, cache) {\n    return {\n      nameAndMode: typeReferenceResolutionNameAndModeGetter,\n      resolve: (typeRef, resoluionMode) => resolveTypeReferenceDirective(typeRef, containingFile, options, host, redirectedReference, cache, resoluionMode)\n    };\n  }\n  function loadWithModeAwareCache(entries, containingFile, redirectedReference, options, containingSourceFile, host, resolutionCache, createLoader) {\n    if (entries.length === 0)\n      return emptyArray;\n    const resolutions = [];\n    const cache = /* @__PURE__ */ new Map();\n    const loader = createLoader(containingFile, redirectedReference, options, host, resolutionCache);\n    for (const entry of entries) {\n      const name = loader.nameAndMode.getName(entry);\n      const mode = loader.nameAndMode.getMode(entry, containingSourceFile);\n      const key = createModeAwareCacheKey(name, mode);\n      let result = cache.get(key);\n      if (!result) {\n        cache.set(key, result = loader.resolve(name, mode));\n      }\n      resolutions.push(result);\n    }\n    return resolutions;\n  }\n  function forEachResolvedProjectReference(resolvedProjectReferences, cb) {\n    return forEachProjectReference(void 0, resolvedProjectReferences, (resolvedRef, parent2) => resolvedRef && cb(resolvedRef, parent2));\n  }\n  function forEachProjectReference(projectReferences, resolvedProjectReferences, cbResolvedRef, cbRef) {\n    let seenResolvedRefs;\n    return worker(projectReferences, resolvedProjectReferences, void 0);\n    function worker(projectReferences2, resolvedProjectReferences2, parent2) {\n      if (cbRef) {\n        const result = cbRef(projectReferences2, parent2);\n        if (result)\n          return result;\n      }\n      return forEach(resolvedProjectReferences2, (resolvedRef, index) => {\n        if (resolvedRef && (seenResolvedRefs == null ? void 0 : seenResolvedRefs.has(resolvedRef.sourceFile.path))) {\n          return void 0;\n        }\n        const result = cbResolvedRef(resolvedRef, parent2, index);\n        if (result || !resolvedRef)\n          return result;\n        (seenResolvedRefs || (seenResolvedRefs = /* @__PURE__ */ new Set())).add(resolvedRef.sourceFile.path);\n        return worker(resolvedRef.commandLine.projectReferences, resolvedRef.references, resolvedRef);\n      });\n    }\n  }\n  function isReferencedFile(reason) {\n    switch (reason == null ? void 0 : reason.kind) {\n      case 3:\n      case 4:\n      case 5:\n      case 7:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function isReferenceFileLocation(location) {\n    return location.pos !== void 0;\n  }\n  function getReferencedFileLocation(getSourceFileByPath, ref) {\n    var _a2, _b, _c, _d, _e, _f;\n    const file = Debug.checkDefined(getSourceFileByPath(ref.file));\n    const { kind, index } = ref;\n    let pos, end, packageId, resolutionMode;\n    switch (kind) {\n      case 3:\n        const importLiteral = getModuleNameStringLiteralAt(file, index);\n        packageId = (_c = (_b = (_a2 = file.resolvedModules) == null ? void 0 : _a2.get(importLiteral.text, getModeForResolutionAtIndex(file, index))) == null ? void 0 : _b.resolvedModule) == null ? void 0 : _c.packageId;\n        if (importLiteral.pos === -1)\n          return { file, packageId, text: importLiteral.text };\n        pos = skipTrivia(file.text, importLiteral.pos);\n        end = importLiteral.end;\n        break;\n      case 4:\n        ({ pos, end } = file.referencedFiles[index]);\n        break;\n      case 5:\n        ({ pos, end, resolutionMode } = file.typeReferenceDirectives[index]);\n        packageId = (_f = (_e = (_d = file.resolvedTypeReferenceDirectiveNames) == null ? void 0 : _d.get(toFileNameLowerCase(file.typeReferenceDirectives[index].fileName), resolutionMode || file.impliedNodeFormat)) == null ? void 0 : _e.resolvedTypeReferenceDirective) == null ? void 0 : _f.packageId;\n        break;\n      case 7:\n        ({ pos, end } = file.libReferenceDirectives[index]);\n        break;\n      default:\n        return Debug.assertNever(kind);\n    }\n    return { file, pos, end, packageId };\n  }\n  function isProgramUptoDate(program, rootFileNames, newOptions, getSourceVersion, fileExists, hasInvalidatedResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences) {\n    if (!program || (hasChangedAutomaticTypeDirectiveNames == null ? void 0 : hasChangedAutomaticTypeDirectiveNames()))\n      return false;\n    if (!arrayIsEqualTo(program.getRootFileNames(), rootFileNames))\n      return false;\n    let seenResolvedRefs;\n    if (!arrayIsEqualTo(program.getProjectReferences(), projectReferences, projectReferenceUptoDate))\n      return false;\n    if (program.getSourceFiles().some(sourceFileNotUptoDate))\n      return false;\n    if (program.getMissingFilePaths().some(fileExists))\n      return false;\n    const currentOptions = program.getCompilerOptions();\n    if (!compareDataObjects(currentOptions, newOptions))\n      return false;\n    if (currentOptions.configFile && newOptions.configFile)\n      return currentOptions.configFile.text === newOptions.configFile.text;\n    return true;\n    function sourceFileNotUptoDate(sourceFile) {\n      return !sourceFileVersionUptoDate(sourceFile) || hasInvalidatedResolutions(sourceFile.path);\n    }\n    function sourceFileVersionUptoDate(sourceFile) {\n      return sourceFile.version === getSourceVersion(sourceFile.resolvedPath, sourceFile.fileName);\n    }\n    function projectReferenceUptoDate(oldRef, newRef, index) {\n      return projectReferenceIsEqualTo(oldRef, newRef) && resolvedProjectReferenceUptoDate(program.getResolvedProjectReferences()[index], oldRef);\n    }\n    function resolvedProjectReferenceUptoDate(oldResolvedRef, oldRef) {\n      if (oldResolvedRef) {\n        if (contains(seenResolvedRefs, oldResolvedRef))\n          return true;\n        const refPath2 = resolveProjectReferencePath(oldRef);\n        const newParsedCommandLine = getParsedCommandLine(refPath2);\n        if (!newParsedCommandLine)\n          return false;\n        if (oldResolvedRef.commandLine.options.configFile !== newParsedCommandLine.options.configFile)\n          return false;\n        if (!arrayIsEqualTo(oldResolvedRef.commandLine.fileNames, newParsedCommandLine.fileNames))\n          return false;\n        (seenResolvedRefs || (seenResolvedRefs = [])).push(oldResolvedRef);\n        return !forEach(oldResolvedRef.references, (childResolvedRef, index) => !resolvedProjectReferenceUptoDate(childResolvedRef, oldResolvedRef.commandLine.projectReferences[index]));\n      }\n      const refPath = resolveProjectReferencePath(oldRef);\n      return !getParsedCommandLine(refPath);\n    }\n  }\n  function getConfigFileParsingDiagnostics(configFileParseResult) {\n    return configFileParseResult.options.configFile ? [...configFileParseResult.options.configFile.parseDiagnostics, ...configFileParseResult.errors] : configFileParseResult.errors;\n  }\n  function getImpliedNodeFormatForFile(fileName, packageJsonInfoCache, host, options) {\n    const result = getImpliedNodeFormatForFileWorker(fileName, packageJsonInfoCache, host, options);\n    return typeof result === \"object\" ? result.impliedNodeFormat : result;\n  }\n  function getImpliedNodeFormatForFileWorker(fileName, packageJsonInfoCache, host, options) {\n    switch (getEmitModuleResolutionKind(options)) {\n      case 3:\n      case 99:\n        return fileExtensionIsOneOf(fileName, [\".d.mts\", \".mts\", \".mjs\"]) ? 99 : fileExtensionIsOneOf(fileName, [\".d.cts\", \".cts\", \".cjs\"]) ? 1 : fileExtensionIsOneOf(fileName, [\".d.ts\", \".ts\", \".tsx\", \".js\", \".jsx\"]) ? lookupFromPackageJson() : void 0;\n      default:\n        return void 0;\n    }\n    function lookupFromPackageJson() {\n      const state = getTemporaryModuleResolutionState(packageJsonInfoCache, host, options);\n      const packageJsonLocations = [];\n      state.failedLookupLocations = packageJsonLocations;\n      state.affectingLocations = packageJsonLocations;\n      const packageJsonScope = getPackageScopeForPath(fileName, state);\n      const impliedNodeFormat = (packageJsonScope == null ? void 0 : packageJsonScope.contents.packageJsonContent.type) === \"module\" ? 99 : 1;\n      return { impliedNodeFormat, packageJsonLocations, packageJsonScope };\n    }\n  }\n  function shouldProgramCreateNewSourceFiles(program, newOptions) {\n    if (!program)\n      return false;\n    return optionsHaveChanges(program.getCompilerOptions(), newOptions, sourceFileAffectingCompilerOptions);\n  }\n  function createCreateProgramOptions(rootNames, options, host, oldProgram, configFileParsingDiagnostics, typeScriptVersion3) {\n    return {\n      rootNames,\n      options,\n      host,\n      oldProgram,\n      configFileParsingDiagnostics,\n      typeScriptVersion: typeScriptVersion3\n    };\n  }\n  function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) {\n    var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;\n    const createProgramOptions = isArray(rootNamesOrOptions) ? createCreateProgramOptions(rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) : rootNamesOrOptions;\n    const { rootNames, options, configFileParsingDiagnostics, projectReferences, typeScriptVersion: typeScriptVersion3 } = createProgramOptions;\n    let { oldProgram } = createProgramOptions;\n    const reportInvalidIgnoreDeprecations = memoize(() => createOptionValueDiagnostic(\"ignoreDeprecations\", Diagnostics.Invalid_value_for_ignoreDeprecations));\n    let processingDefaultLibFiles;\n    let processingOtherFiles;\n    let files;\n    let symlinks;\n    let commonSourceDirectory;\n    let typeChecker;\n    let classifiableNames;\n    const ambientModuleNameToUnmodifiedFileName = /* @__PURE__ */ new Map();\n    let fileReasons = createMultiMap();\n    const cachedBindAndCheckDiagnosticsForFile = {};\n    const cachedDeclarationDiagnosticsForFile = {};\n    let resolvedTypeReferenceDirectives = createModeAwareCache();\n    let fileProcessingDiagnostics;\n    let automaticTypeDirectiveNames;\n    let automaticTypeDirectiveResolutions;\n    const maxNodeModuleJsDepth = typeof options.maxNodeModuleJsDepth === \"number\" ? options.maxNodeModuleJsDepth : 0;\n    let currentNodeModulesDepth = 0;\n    const modulesWithElidedImports = /* @__PURE__ */ new Map();\n    const sourceFilesFoundSearchingNodeModules = /* @__PURE__ */ new Map();\n    (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Program, \"createProgram\", { configFilePath: options.configFilePath, rootDir: options.rootDir }, true);\n    mark(\"beforeProgram\");\n    const host = createProgramOptions.host || createCompilerHost(options);\n    const configParsingHost = parseConfigHostFromCompilerHostLike(host);\n    let skipDefaultLib = options.noLib;\n    const getDefaultLibraryFileName = memoize(() => host.getDefaultLibFileName(options));\n    const defaultLibraryPath = host.getDefaultLibLocation ? host.getDefaultLibLocation() : getDirectoryPath(getDefaultLibraryFileName());\n    const programDiagnostics = createDiagnosticCollection();\n    const currentDirectory = host.getCurrentDirectory();\n    const supportedExtensions = getSupportedExtensions(options);\n    const supportedExtensionsWithJsonIfResolveJsonModule = getSupportedExtensionsWithJsonIfResolveJsonModule(options, supportedExtensions);\n    const hasEmitBlockingDiagnostics = /* @__PURE__ */ new Map();\n    let _compilerOptionsObjectLiteralSyntax;\n    let moduleResolutionCache;\n    let actualResolveModuleNamesWorker;\n    const hasInvalidatedResolutions = host.hasInvalidatedResolutions || returnFalse;\n    if (host.resolveModuleNameLiterals) {\n      actualResolveModuleNamesWorker = host.resolveModuleNameLiterals.bind(host);\n      moduleResolutionCache = (_b = host.getModuleResolutionCache) == null ? void 0 : _b.call(host);\n    } else if (host.resolveModuleNames) {\n      actualResolveModuleNamesWorker = (moduleNames, containingFile, redirectedReference, options2, containingSourceFile, reusedNames) => host.resolveModuleNames(moduleNames.map(getModuleResolutionName), containingFile, reusedNames == null ? void 0 : reusedNames.map(getModuleResolutionName), redirectedReference, options2, containingSourceFile).map((resolved) => resolved ? resolved.extension !== void 0 ? { resolvedModule: resolved } : { resolvedModule: { ...resolved, extension: extensionFromPath(resolved.resolvedFileName) } } : emptyResolution);\n      moduleResolutionCache = (_c = host.getModuleResolutionCache) == null ? void 0 : _c.call(host);\n    } else {\n      moduleResolutionCache = createModuleResolutionCache(currentDirectory, getCanonicalFileName, options);\n      actualResolveModuleNamesWorker = (moduleNames, containingFile, redirectedReference, options2, containingSourceFile) => loadWithModeAwareCache(moduleNames, containingFile, redirectedReference, options2, containingSourceFile, host, moduleResolutionCache, createModuleResolutionLoader);\n    }\n    let actualResolveTypeReferenceDirectiveNamesWorker;\n    if (host.resolveTypeReferenceDirectiveReferences) {\n      actualResolveTypeReferenceDirectiveNamesWorker = host.resolveTypeReferenceDirectiveReferences.bind(host);\n    } else if (host.resolveTypeReferenceDirectives) {\n      actualResolveTypeReferenceDirectiveNamesWorker = (typeDirectiveNames, containingFile, redirectedReference, options2, containingSourceFile) => host.resolveTypeReferenceDirectives(typeDirectiveNames.map(getTypeReferenceResolutionName), containingFile, redirectedReference, options2, containingSourceFile == null ? void 0 : containingSourceFile.impliedNodeFormat).map((resolvedTypeReferenceDirective) => ({ resolvedTypeReferenceDirective }));\n    } else {\n      const typeReferenceDirectiveResolutionCache = createTypeReferenceDirectiveResolutionCache(currentDirectory, getCanonicalFileName, void 0, moduleResolutionCache == null ? void 0 : moduleResolutionCache.getPackageJsonInfoCache());\n      actualResolveTypeReferenceDirectiveNamesWorker = (typeDirectiveNames, containingFile, redirectedReference, options2, containingSourceFile) => loadWithModeAwareCache(typeDirectiveNames, containingFile, redirectedReference, options2, containingSourceFile, host, typeReferenceDirectiveResolutionCache, createTypeReferenceResolutionLoader);\n    }\n    const packageIdToSourceFile = /* @__PURE__ */ new Map();\n    let sourceFileToPackageName = /* @__PURE__ */ new Map();\n    let redirectTargetsMap = createMultiMap();\n    let usesUriStyleNodeCoreModules = false;\n    const filesByName = /* @__PURE__ */ new Map();\n    let missingFilePaths;\n    const filesByNameIgnoreCase = host.useCaseSensitiveFileNames() ? /* @__PURE__ */ new Map() : void 0;\n    let resolvedProjectReferences;\n    let projectReferenceRedirects;\n    let mapFromFileToProjectReferenceRedirects;\n    let mapFromToProjectReferenceRedirectSource;\n    const useSourceOfProjectReferenceRedirect = !!((_d = host.useSourceOfProjectReferenceRedirect) == null ? void 0 : _d.call(host)) && !options.disableSourceOfProjectReferenceRedirect;\n    const { onProgramCreateComplete, fileExists, directoryExists } = updateHostForUseSourceOfProjectReferenceRedirect({\n      compilerHost: host,\n      getSymlinkCache,\n      useSourceOfProjectReferenceRedirect,\n      toPath: toPath3,\n      getResolvedProjectReferences,\n      getSourceOfProjectReferenceRedirect,\n      forEachResolvedProjectReference: forEachResolvedProjectReference2\n    });\n    const readFile = host.readFile.bind(host);\n    (_e = tracing) == null ? void 0 : _e.push(tracing.Phase.Program, \"shouldProgramCreateNewSourceFiles\", { hasOldProgram: !!oldProgram });\n    const shouldCreateNewSourceFile = shouldProgramCreateNewSourceFiles(oldProgram, options);\n    (_f = tracing) == null ? void 0 : _f.pop();\n    let structureIsReused;\n    (_g = tracing) == null ? void 0 : _g.push(tracing.Phase.Program, \"tryReuseStructureFromOldProgram\", {});\n    structureIsReused = tryReuseStructureFromOldProgram();\n    (_h = tracing) == null ? void 0 : _h.pop();\n    if (structureIsReused !== 2) {\n      processingDefaultLibFiles = [];\n      processingOtherFiles = [];\n      if (projectReferences) {\n        if (!resolvedProjectReferences) {\n          resolvedProjectReferences = projectReferences.map(parseProjectReferenceConfigFile);\n        }\n        if (rootNames.length) {\n          resolvedProjectReferences == null ? void 0 : resolvedProjectReferences.forEach((parsedRef, index) => {\n            if (!parsedRef)\n              return;\n            const out = outFile(parsedRef.commandLine.options);\n            if (useSourceOfProjectReferenceRedirect) {\n              if (out || getEmitModuleKind(parsedRef.commandLine.options) === 0) {\n                for (const fileName of parsedRef.commandLine.fileNames) {\n                  processProjectReferenceFile(fileName, { kind: 1, index });\n                }\n              }\n            } else {\n              if (out) {\n                processProjectReferenceFile(changeExtension(out, \".d.ts\"), { kind: 2, index });\n              } else if (getEmitModuleKind(parsedRef.commandLine.options) === 0) {\n                const getCommonSourceDirectory3 = memoize(() => getCommonSourceDirectoryOfConfig(parsedRef.commandLine, !host.useCaseSensitiveFileNames()));\n                for (const fileName of parsedRef.commandLine.fileNames) {\n                  if (!isDeclarationFileName(fileName) && !fileExtensionIs(fileName, \".json\")) {\n                    processProjectReferenceFile(getOutputDeclarationFileName(fileName, parsedRef.commandLine, !host.useCaseSensitiveFileNames(), getCommonSourceDirectory3), { kind: 2, index });\n                  }\n                }\n              }\n            }\n          });\n        }\n      }\n      (_i = tracing) == null ? void 0 : _i.push(tracing.Phase.Program, \"processRootFiles\", { count: rootNames.length });\n      forEach(rootNames, (name, index) => processRootFile(name, false, false, { kind: 0, index }));\n      (_j = tracing) == null ? void 0 : _j.pop();\n      automaticTypeDirectiveNames != null ? automaticTypeDirectiveNames : automaticTypeDirectiveNames = rootNames.length ? getAutomaticTypeDirectiveNames(options, host) : emptyArray;\n      automaticTypeDirectiveResolutions = createModeAwareCache();\n      if (automaticTypeDirectiveNames.length) {\n        (_k = tracing) == null ? void 0 : _k.push(tracing.Phase.Program, \"processTypeReferences\", { count: automaticTypeDirectiveNames.length });\n        const containingDirectory = options.configFilePath ? getDirectoryPath(options.configFilePath) : host.getCurrentDirectory();\n        const containingFilename = combinePaths(containingDirectory, inferredTypesContainingFile);\n        const resolutions = resolveTypeReferenceDirectiveNamesReusingOldState(automaticTypeDirectiveNames, containingFilename);\n        for (let i = 0; i < automaticTypeDirectiveNames.length; i++) {\n          automaticTypeDirectiveResolutions.set(automaticTypeDirectiveNames[i], void 0, resolutions[i]);\n          processTypeReferenceDirective(automaticTypeDirectiveNames[i], void 0, resolutions[i], {\n            kind: 8,\n            typeReference: automaticTypeDirectiveNames[i],\n            packageId: (_m = (_l = resolutions[i]) == null ? void 0 : _l.resolvedTypeReferenceDirective) == null ? void 0 : _m.packageId\n          });\n        }\n        (_n = tracing) == null ? void 0 : _n.pop();\n      }\n      if (rootNames.length && !skipDefaultLib) {\n        const defaultLibraryFileName = getDefaultLibraryFileName();\n        if (!options.lib && defaultLibraryFileName) {\n          processRootFile(defaultLibraryFileName, true, false, { kind: 6 });\n        } else {\n          forEach(options.lib, (libFileName, index) => {\n            processRootFile(pathForLibFile(libFileName), true, false, { kind: 6, index });\n          });\n        }\n      }\n      missingFilePaths = arrayFrom(mapDefinedIterator(filesByName.entries(), ([path, file]) => file === void 0 ? path : void 0));\n      files = stableSort(processingDefaultLibFiles, compareDefaultLibFiles).concat(processingOtherFiles);\n      processingDefaultLibFiles = void 0;\n      processingOtherFiles = void 0;\n    }\n    Debug.assert(!!missingFilePaths);\n    if (oldProgram && host.onReleaseOldSourceFile) {\n      const oldSourceFiles = oldProgram.getSourceFiles();\n      for (const oldSourceFile of oldSourceFiles) {\n        const newFile = getSourceFileByPath(oldSourceFile.resolvedPath);\n        if (shouldCreateNewSourceFile || !newFile || newFile.impliedNodeFormat !== oldSourceFile.impliedNodeFormat || oldSourceFile.resolvedPath === oldSourceFile.path && newFile.resolvedPath !== oldSourceFile.path) {\n          host.onReleaseOldSourceFile(oldSourceFile, oldProgram.getCompilerOptions(), !!getSourceFileByPath(oldSourceFile.path));\n        }\n      }\n      if (!host.getParsedCommandLine) {\n        oldProgram.forEachResolvedProjectReference((resolvedProjectReference) => {\n          if (!getResolvedProjectReferenceByPath(resolvedProjectReference.sourceFile.path)) {\n            host.onReleaseOldSourceFile(resolvedProjectReference.sourceFile, oldProgram.getCompilerOptions(), false);\n          }\n        });\n      }\n    }\n    if (oldProgram && host.onReleaseParsedCommandLine) {\n      forEachProjectReference(oldProgram.getProjectReferences(), oldProgram.getResolvedProjectReferences(), (oldResolvedRef, parent2, index) => {\n        const oldReference = (parent2 == null ? void 0 : parent2.commandLine.projectReferences[index]) || oldProgram.getProjectReferences()[index];\n        const oldRefPath = resolveProjectReferencePath(oldReference);\n        if (!(projectReferenceRedirects == null ? void 0 : projectReferenceRedirects.has(toPath3(oldRefPath)))) {\n          host.onReleaseParsedCommandLine(oldRefPath, oldResolvedRef, oldProgram.getCompilerOptions());\n        }\n      });\n    }\n    oldProgram = void 0;\n    const program = {\n      getRootFileNames: () => rootNames,\n      getSourceFile,\n      getSourceFileByPath,\n      getSourceFiles: () => files,\n      getMissingFilePaths: () => missingFilePaths,\n      getModuleResolutionCache: () => moduleResolutionCache,\n      getFilesByNameMap: () => filesByName,\n      getCompilerOptions: () => options,\n      getSyntacticDiagnostics,\n      getOptionsDiagnostics,\n      getGlobalDiagnostics,\n      getSemanticDiagnostics,\n      getCachedSemanticDiagnostics,\n      getSuggestionDiagnostics,\n      getDeclarationDiagnostics: getDeclarationDiagnostics2,\n      getBindAndCheckDiagnostics,\n      getProgramDiagnostics,\n      getTypeChecker,\n      getClassifiableNames,\n      getCommonSourceDirectory: getCommonSourceDirectory2,\n      emit,\n      getCurrentDirectory: () => currentDirectory,\n      getNodeCount: () => getTypeChecker().getNodeCount(),\n      getIdentifierCount: () => getTypeChecker().getIdentifierCount(),\n      getSymbolCount: () => getTypeChecker().getSymbolCount(),\n      getTypeCount: () => getTypeChecker().getTypeCount(),\n      getInstantiationCount: () => getTypeChecker().getInstantiationCount(),\n      getRelationCacheSizes: () => getTypeChecker().getRelationCacheSizes(),\n      getFileProcessingDiagnostics: () => fileProcessingDiagnostics,\n      getResolvedTypeReferenceDirectives: () => resolvedTypeReferenceDirectives,\n      getAutomaticTypeDirectiveNames: () => automaticTypeDirectiveNames,\n      getAutomaticTypeDirectiveResolutions: () => automaticTypeDirectiveResolutions,\n      isSourceFileFromExternalLibrary,\n      isSourceFileDefaultLibrary,\n      getSourceFileFromReference,\n      getLibFileFromReference,\n      sourceFileToPackageName,\n      redirectTargetsMap,\n      usesUriStyleNodeCoreModules,\n      isEmittedFile,\n      getConfigFileParsingDiagnostics: getConfigFileParsingDiagnostics2,\n      getProjectReferences,\n      getResolvedProjectReferences,\n      getProjectReferenceRedirect,\n      getResolvedProjectReferenceToRedirect,\n      getResolvedProjectReferenceByPath,\n      forEachResolvedProjectReference: forEachResolvedProjectReference2,\n      isSourceOfProjectReferenceRedirect,\n      emitBuildInfo,\n      fileExists,\n      readFile,\n      directoryExists,\n      getSymlinkCache,\n      realpath: (_o = host.realpath) == null ? void 0 : _o.bind(host),\n      useCaseSensitiveFileNames: () => host.useCaseSensitiveFileNames(),\n      getCanonicalFileName,\n      getFileIncludeReasons: () => fileReasons,\n      structureIsReused,\n      writeFile: writeFile2\n    };\n    onProgramCreateComplete();\n    fileProcessingDiagnostics == null ? void 0 : fileProcessingDiagnostics.forEach((diagnostic) => {\n      switch (diagnostic.kind) {\n        case 1:\n          return programDiagnostics.add(createDiagnosticExplainingFile(diagnostic.file && getSourceFileByPath(diagnostic.file), diagnostic.fileProcessingReason, diagnostic.diagnostic, diagnostic.args || emptyArray));\n        case 0:\n          const { file, pos, end } = getReferencedFileLocation(getSourceFileByPath, diagnostic.reason);\n          return programDiagnostics.add(createFileDiagnostic(file, Debug.checkDefined(pos), Debug.checkDefined(end) - pos, diagnostic.diagnostic, ...diagnostic.args || emptyArray));\n        case 2:\n          return diagnostic.diagnostics.forEach((d) => programDiagnostics.add(d));\n        default:\n          Debug.assertNever(diagnostic);\n      }\n    });\n    verifyCompilerOptions();\n    mark(\"afterProgram\");\n    measure(\"Program\", \"beforeProgram\", \"afterProgram\");\n    (_p = tracing) == null ? void 0 : _p.pop();\n    return program;\n    function addResolutionDiagnostics(resolution) {\n      var _a3;\n      if (!((_a3 = resolution.resolutionDiagnostics) == null ? void 0 : _a3.length))\n        return;\n      (fileProcessingDiagnostics != null ? fileProcessingDiagnostics : fileProcessingDiagnostics = []).push({\n        kind: 2,\n        diagnostics: resolution.resolutionDiagnostics\n      });\n    }\n    function addResolutionDiagnosticsFromResolutionOrCache(containingFile, name, resolution, mode) {\n      if (host.resolveModuleNameLiterals || !host.resolveModuleNames)\n        return addResolutionDiagnostics(resolution);\n      if (!moduleResolutionCache || isExternalModuleNameRelative(name))\n        return;\n      const containingFileName = getNormalizedAbsolutePath(containingFile.originalFileName, currentDirectory);\n      const containingDir = getDirectoryPath(containingFileName);\n      const redirectedReference = getRedirectReferenceForResolution(containingFile);\n      const fromCache = moduleResolutionCache.getFromNonRelativeNameCache(name, mode, containingDir, redirectedReference);\n      if (fromCache)\n        addResolutionDiagnostics(fromCache);\n    }\n    function resolveModuleNamesWorker(moduleNames, containingFile, reusedNames) {\n      var _a3, _b2;\n      if (!moduleNames.length)\n        return emptyArray;\n      const containingFileName = getNormalizedAbsolutePath(containingFile.originalFileName, currentDirectory);\n      const redirectedReference = getRedirectReferenceForResolution(containingFile);\n      (_a3 = tracing) == null ? void 0 : _a3.push(tracing.Phase.Program, \"resolveModuleNamesWorker\", { containingFileName });\n      mark(\"beforeResolveModule\");\n      const result = actualResolveModuleNamesWorker(moduleNames, containingFileName, redirectedReference, options, containingFile, reusedNames);\n      mark(\"afterResolveModule\");\n      measure(\"ResolveModule\", \"beforeResolveModule\", \"afterResolveModule\");\n      (_b2 = tracing) == null ? void 0 : _b2.pop();\n      return result;\n    }\n    function resolveTypeReferenceDirectiveNamesWorker(typeDirectiveNames, containingFile, reusedNames) {\n      var _a3, _b2;\n      if (!typeDirectiveNames.length)\n        return [];\n      const containingSourceFile = !isString(containingFile) ? containingFile : void 0;\n      const containingFileName = !isString(containingFile) ? getNormalizedAbsolutePath(containingFile.originalFileName, currentDirectory) : containingFile;\n      const redirectedReference = containingSourceFile && getRedirectReferenceForResolution(containingSourceFile);\n      (_a3 = tracing) == null ? void 0 : _a3.push(tracing.Phase.Program, \"resolveTypeReferenceDirectiveNamesWorker\", { containingFileName });\n      mark(\"beforeResolveTypeReference\");\n      const result = actualResolveTypeReferenceDirectiveNamesWorker(typeDirectiveNames, containingFileName, redirectedReference, options, containingSourceFile, reusedNames);\n      mark(\"afterResolveTypeReference\");\n      measure(\"ResolveTypeReference\", \"beforeResolveTypeReference\", \"afterResolveTypeReference\");\n      (_b2 = tracing) == null ? void 0 : _b2.pop();\n      return result;\n    }\n    function getRedirectReferenceForResolution(file) {\n      const redirect = getResolvedProjectReferenceToRedirect(file.originalFileName);\n      if (redirect || !isDeclarationFileName(file.originalFileName))\n        return redirect;\n      const resultFromDts = getRedirectReferenceForResolutionFromSourceOfProject(file.path);\n      if (resultFromDts)\n        return resultFromDts;\n      if (!host.realpath || !options.preserveSymlinks || !stringContains(file.originalFileName, nodeModulesPathPart))\n        return void 0;\n      const realDeclarationPath = toPath3(host.realpath(file.originalFileName));\n      return realDeclarationPath === file.path ? void 0 : getRedirectReferenceForResolutionFromSourceOfProject(realDeclarationPath);\n    }\n    function getRedirectReferenceForResolutionFromSourceOfProject(filePath) {\n      const source = getSourceOfProjectReferenceRedirect(filePath);\n      if (isString(source))\n        return getResolvedProjectReferenceToRedirect(source);\n      if (!source)\n        return void 0;\n      return forEachResolvedProjectReference2((resolvedRef) => {\n        const out = outFile(resolvedRef.commandLine.options);\n        if (!out)\n          return void 0;\n        return toPath3(out) === filePath ? resolvedRef : void 0;\n      });\n    }\n    function compareDefaultLibFiles(a, b) {\n      return compareValues(getDefaultLibFilePriority(a), getDefaultLibFilePriority(b));\n    }\n    function getDefaultLibFilePriority(a) {\n      if (containsPath(defaultLibraryPath, a.fileName, false)) {\n        const basename = getBaseFileName(a.fileName);\n        if (basename === \"lib.d.ts\" || basename === \"lib.es6.d.ts\")\n          return 0;\n        const name = removeSuffix(removePrefix(basename, \"lib.\"), \".d.ts\");\n        const index = libs.indexOf(name);\n        if (index !== -1)\n          return index + 1;\n      }\n      return libs.length + 2;\n    }\n    function toPath3(fileName) {\n      return toPath(fileName, currentDirectory, getCanonicalFileName);\n    }\n    function getCommonSourceDirectory2() {\n      if (commonSourceDirectory === void 0) {\n        const emittedFiles = filter(files, (file) => sourceFileMayBeEmitted(file, program));\n        commonSourceDirectory = getCommonSourceDirectory(options, () => mapDefined(emittedFiles, (file) => file.isDeclarationFile ? void 0 : file.fileName), currentDirectory, getCanonicalFileName, (commonSourceDirectory2) => checkSourceFilesBelongToPath(emittedFiles, commonSourceDirectory2));\n      }\n      return commonSourceDirectory;\n    }\n    function getClassifiableNames() {\n      var _a3;\n      if (!classifiableNames) {\n        getTypeChecker();\n        classifiableNames = /* @__PURE__ */ new Set();\n        for (const sourceFile of files) {\n          (_a3 = sourceFile.classifiableNames) == null ? void 0 : _a3.forEach((value) => classifiableNames.add(value));\n        }\n      }\n      return classifiableNames;\n    }\n    function resolveModuleNamesReusingOldState(moduleNames, file) {\n      var _a3;\n      if (structureIsReused === 0 && !file.ambientModuleNames.length) {\n        return resolveModuleNamesWorker(moduleNames, file, void 0);\n      }\n      const oldSourceFile = oldProgram && oldProgram.getSourceFile(file.fileName);\n      if (oldSourceFile !== file && file.resolvedModules) {\n        const result2 = [];\n        for (const moduleName of moduleNames) {\n          const resolvedModule = file.resolvedModules.get(moduleName.text, getModeForUsageLocation(file, moduleName));\n          result2.push(resolvedModule);\n        }\n        return result2;\n      }\n      let unknownModuleNames;\n      let result;\n      let reusedNames;\n      const predictedToResolveToAmbientModuleMarker = emptyResolution;\n      for (let i = 0; i < moduleNames.length; i++) {\n        const moduleName = moduleNames[i];\n        if (file === oldSourceFile && !hasInvalidatedResolutions(oldSourceFile.path)) {\n          const mode = getModeForUsageLocation(file, moduleName);\n          const oldResolution = (_a3 = oldSourceFile.resolvedModules) == null ? void 0 : _a3.get(moduleName.text, mode);\n          if (oldResolution == null ? void 0 : oldResolution.resolvedModule) {\n            if (isTraceEnabled(options, host)) {\n              trace(host, oldResolution.resolvedModule.packageId ? Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2, moduleName.text, getNormalizedAbsolutePath(file.originalFileName, currentDirectory), oldResolution.resolvedModule.resolvedFileName, oldResolution.resolvedModule.packageId && packageIdToString(oldResolution.resolvedModule.packageId));\n            }\n            (result != null ? result : result = new Array(moduleNames.length))[i] = oldResolution;\n            (reusedNames != null ? reusedNames : reusedNames = []).push(moduleName);\n            continue;\n          }\n        }\n        let resolvesToAmbientModuleInNonModifiedFile = false;\n        if (contains(file.ambientModuleNames, moduleName.text)) {\n          resolvesToAmbientModuleInNonModifiedFile = true;\n          if (isTraceEnabled(options, host)) {\n            trace(host, Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1, moduleName.text, getNormalizedAbsolutePath(file.originalFileName, currentDirectory));\n          }\n        } else {\n          resolvesToAmbientModuleInNonModifiedFile = moduleNameResolvesToAmbientModuleInNonModifiedFile(moduleName);\n        }\n        if (resolvesToAmbientModuleInNonModifiedFile) {\n          (result || (result = new Array(moduleNames.length)))[i] = predictedToResolveToAmbientModuleMarker;\n        } else {\n          (unknownModuleNames != null ? unknownModuleNames : unknownModuleNames = []).push(moduleName);\n        }\n      }\n      const resolutions = unknownModuleNames && unknownModuleNames.length ? resolveModuleNamesWorker(unknownModuleNames, file, reusedNames) : emptyArray;\n      if (!result) {\n        Debug.assert(resolutions.length === moduleNames.length);\n        return resolutions;\n      }\n      let j = 0;\n      for (let i = 0; i < result.length; i++) {\n        if (!result[i]) {\n          result[i] = resolutions[j];\n          j++;\n        }\n      }\n      Debug.assert(j === resolutions.length);\n      return result;\n      function moduleNameResolvesToAmbientModuleInNonModifiedFile(moduleName) {\n        const resolutionToFile = getResolvedModule(oldSourceFile, moduleName.text, getModeForUsageLocation(file, moduleName));\n        const resolvedFile = resolutionToFile && oldProgram.getSourceFile(resolutionToFile.resolvedFileName);\n        if (resolutionToFile && resolvedFile) {\n          return false;\n        }\n        const unmodifiedFile = ambientModuleNameToUnmodifiedFileName.get(moduleName.text);\n        if (!unmodifiedFile) {\n          return false;\n        }\n        if (isTraceEnabled(options, host)) {\n          trace(host, Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified, moduleName.text, unmodifiedFile);\n        }\n        return true;\n      }\n    }\n    function resolveTypeReferenceDirectiveNamesReusingOldState(typeDirectiveNames, containingFile) {\n      var _a3;\n      if (structureIsReused === 0) {\n        return resolveTypeReferenceDirectiveNamesWorker(typeDirectiveNames, containingFile, void 0);\n      }\n      const oldSourceFile = !isString(containingFile) ? oldProgram && oldProgram.getSourceFile(containingFile.fileName) : void 0;\n      if (!isString(containingFile)) {\n        if (oldSourceFile !== containingFile && containingFile.resolvedTypeReferenceDirectiveNames) {\n          const result2 = [];\n          for (const typeDirectiveName of typeDirectiveNames) {\n            const resolvedTypeReferenceDirective = containingFile.resolvedTypeReferenceDirectiveNames.get(getTypeReferenceResolutionName(typeDirectiveName), getModeForFileReference(typeDirectiveName, containingFile.impliedNodeFormat));\n            result2.push(resolvedTypeReferenceDirective);\n          }\n          return result2;\n        }\n      }\n      let unknownTypeReferenceDirectiveNames;\n      let result;\n      let reusedNames;\n      const containingSourceFile = !isString(containingFile) ? containingFile : void 0;\n      const canReuseResolutions = !isString(containingFile) ? containingFile === oldSourceFile && !hasInvalidatedResolutions(oldSourceFile.path) : !hasInvalidatedResolutions(toPath3(containingFile));\n      for (let i = 0; i < typeDirectiveNames.length; i++) {\n        const entry = typeDirectiveNames[i];\n        if (canReuseResolutions) {\n          const typeDirectiveName = getTypeReferenceResolutionName(entry);\n          const mode = getModeForFileReference(entry, containingSourceFile == null ? void 0 : containingSourceFile.impliedNodeFormat);\n          const oldResolution = (_a3 = !isString(containingFile) ? oldSourceFile == null ? void 0 : oldSourceFile.resolvedTypeReferenceDirectiveNames : oldProgram == null ? void 0 : oldProgram.getAutomaticTypeDirectiveResolutions()) == null ? void 0 : _a3.get(typeDirectiveName, mode);\n          if (oldResolution == null ? void 0 : oldResolution.resolvedTypeReferenceDirective) {\n            if (isTraceEnabled(options, host)) {\n              trace(host, oldResolution.resolvedTypeReferenceDirective.packageId ? Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2, typeDirectiveName, !isString(containingFile) ? getNormalizedAbsolutePath(containingFile.originalFileName, currentDirectory) : containingFile, oldResolution.resolvedTypeReferenceDirective.resolvedFileName, oldResolution.resolvedTypeReferenceDirective.packageId && packageIdToString(oldResolution.resolvedTypeReferenceDirective.packageId));\n            }\n            (result != null ? result : result = new Array(typeDirectiveNames.length))[i] = oldResolution;\n            (reusedNames != null ? reusedNames : reusedNames = []).push(entry);\n            continue;\n          }\n        }\n        (unknownTypeReferenceDirectiveNames != null ? unknownTypeReferenceDirectiveNames : unknownTypeReferenceDirectiveNames = []).push(entry);\n      }\n      if (!unknownTypeReferenceDirectiveNames)\n        return result || emptyArray;\n      const resolutions = resolveTypeReferenceDirectiveNamesWorker(unknownTypeReferenceDirectiveNames, containingFile, reusedNames);\n      if (!result) {\n        Debug.assert(resolutions.length === typeDirectiveNames.length);\n        return resolutions;\n      }\n      let j = 0;\n      for (let i = 0; i < result.length; i++) {\n        if (!result[i]) {\n          result[i] = resolutions[j];\n          j++;\n        }\n      }\n      Debug.assert(j === resolutions.length);\n      return result;\n    }\n    function canReuseProjectReferences() {\n      return !forEachProjectReference(oldProgram.getProjectReferences(), oldProgram.getResolvedProjectReferences(), (oldResolvedRef, parent2, index) => {\n        const newRef = (parent2 ? parent2.commandLine.projectReferences : projectReferences)[index];\n        const newResolvedRef = parseProjectReferenceConfigFile(newRef);\n        if (oldResolvedRef) {\n          return !newResolvedRef || newResolvedRef.sourceFile !== oldResolvedRef.sourceFile || !arrayIsEqualTo(oldResolvedRef.commandLine.fileNames, newResolvedRef.commandLine.fileNames);\n        } else {\n          return newResolvedRef !== void 0;\n        }\n      }, (oldProjectReferences, parent2) => {\n        const newReferences = parent2 ? getResolvedProjectReferenceByPath(parent2.sourceFile.path).commandLine.projectReferences : projectReferences;\n        return !arrayIsEqualTo(oldProjectReferences, newReferences, projectReferenceIsEqualTo);\n      });\n    }\n    function tryReuseStructureFromOldProgram() {\n      var _a3;\n      if (!oldProgram) {\n        return 0;\n      }\n      const oldOptions = oldProgram.getCompilerOptions();\n      if (changesAffectModuleResolution(oldOptions, options)) {\n        return 0;\n      }\n      const oldRootNames = oldProgram.getRootFileNames();\n      if (!arrayIsEqualTo(oldRootNames, rootNames)) {\n        return 0;\n      }\n      if (!canReuseProjectReferences()) {\n        return 0;\n      }\n      if (projectReferences) {\n        resolvedProjectReferences = projectReferences.map(parseProjectReferenceConfigFile);\n      }\n      const newSourceFiles = [];\n      const modifiedSourceFiles = [];\n      structureIsReused = 2;\n      if (oldProgram.getMissingFilePaths().some((missingFilePath) => host.fileExists(missingFilePath))) {\n        return 0;\n      }\n      const oldSourceFiles = oldProgram.getSourceFiles();\n      let SeenPackageName;\n      ((SeenPackageName2) => {\n        SeenPackageName2[SeenPackageName2[\"Exists\"] = 0] = \"Exists\";\n        SeenPackageName2[SeenPackageName2[\"Modified\"] = 1] = \"Modified\";\n      })(SeenPackageName || (SeenPackageName = {}));\n      const seenPackageNames = /* @__PURE__ */ new Map();\n      for (const oldSourceFile of oldSourceFiles) {\n        const sourceFileOptions = getCreateSourceFileOptions(oldSourceFile.fileName, moduleResolutionCache, host, options);\n        let newSourceFile = host.getSourceFileByPath ? host.getSourceFileByPath(oldSourceFile.fileName, oldSourceFile.resolvedPath, sourceFileOptions, void 0, shouldCreateNewSourceFile || sourceFileOptions.impliedNodeFormat !== oldSourceFile.impliedNodeFormat) : host.getSourceFile(oldSourceFile.fileName, sourceFileOptions, void 0, shouldCreateNewSourceFile || sourceFileOptions.impliedNodeFormat !== oldSourceFile.impliedNodeFormat);\n        if (!newSourceFile) {\n          return 0;\n        }\n        newSourceFile.packageJsonLocations = ((_a3 = sourceFileOptions.packageJsonLocations) == null ? void 0 : _a3.length) ? sourceFileOptions.packageJsonLocations : void 0;\n        newSourceFile.packageJsonScope = sourceFileOptions.packageJsonScope;\n        Debug.assert(!newSourceFile.redirectInfo, \"Host should not return a redirect source file from `getSourceFile`\");\n        let fileChanged;\n        if (oldSourceFile.redirectInfo) {\n          if (newSourceFile !== oldSourceFile.redirectInfo.unredirected) {\n            return 0;\n          }\n          fileChanged = false;\n          newSourceFile = oldSourceFile;\n        } else if (oldProgram.redirectTargetsMap.has(oldSourceFile.path)) {\n          if (newSourceFile !== oldSourceFile) {\n            return 0;\n          }\n          fileChanged = false;\n        } else {\n          fileChanged = newSourceFile !== oldSourceFile;\n        }\n        newSourceFile.path = oldSourceFile.path;\n        newSourceFile.originalFileName = oldSourceFile.originalFileName;\n        newSourceFile.resolvedPath = oldSourceFile.resolvedPath;\n        newSourceFile.fileName = oldSourceFile.fileName;\n        const packageName = oldProgram.sourceFileToPackageName.get(oldSourceFile.path);\n        if (packageName !== void 0) {\n          const prevKind = seenPackageNames.get(packageName);\n          const newKind = fileChanged ? 1 : 0;\n          if (prevKind !== void 0 && newKind === 1 || prevKind === 1) {\n            return 0;\n          }\n          seenPackageNames.set(packageName, newKind);\n        }\n        if (fileChanged) {\n          if (oldSourceFile.impliedNodeFormat !== newSourceFile.impliedNodeFormat) {\n            structureIsReused = 1;\n          } else if (!arrayIsEqualTo(oldSourceFile.libReferenceDirectives, newSourceFile.libReferenceDirectives, fileReferenceIsEqualTo)) {\n            structureIsReused = 1;\n          } else if (oldSourceFile.hasNoDefaultLib !== newSourceFile.hasNoDefaultLib) {\n            structureIsReused = 1;\n          } else if (!arrayIsEqualTo(oldSourceFile.referencedFiles, newSourceFile.referencedFiles, fileReferenceIsEqualTo)) {\n            structureIsReused = 1;\n          } else {\n            collectExternalModuleReferences(newSourceFile);\n            if (!arrayIsEqualTo(oldSourceFile.imports, newSourceFile.imports, moduleNameIsEqualTo)) {\n              structureIsReused = 1;\n            } else if (!arrayIsEqualTo(oldSourceFile.moduleAugmentations, newSourceFile.moduleAugmentations, moduleNameIsEqualTo)) {\n              structureIsReused = 1;\n            } else if ((oldSourceFile.flags & 6291456) !== (newSourceFile.flags & 6291456)) {\n              structureIsReused = 1;\n            } else if (!arrayIsEqualTo(oldSourceFile.typeReferenceDirectives, newSourceFile.typeReferenceDirectives, fileReferenceIsEqualTo)) {\n              structureIsReused = 1;\n            }\n          }\n          modifiedSourceFiles.push({ oldFile: oldSourceFile, newFile: newSourceFile });\n        } else if (hasInvalidatedResolutions(oldSourceFile.path)) {\n          structureIsReused = 1;\n          modifiedSourceFiles.push({ oldFile: oldSourceFile, newFile: newSourceFile });\n        }\n        newSourceFiles.push(newSourceFile);\n      }\n      if (structureIsReused !== 2) {\n        return structureIsReused;\n      }\n      const modifiedFiles = modifiedSourceFiles.map((f) => f.oldFile);\n      for (const oldFile of oldSourceFiles) {\n        if (!contains(modifiedFiles, oldFile)) {\n          for (const moduleName of oldFile.ambientModuleNames) {\n            ambientModuleNameToUnmodifiedFileName.set(moduleName, oldFile.fileName);\n          }\n        }\n      }\n      for (const { oldFile: oldSourceFile, newFile: newSourceFile } of modifiedSourceFiles) {\n        const moduleNames = getModuleNames(newSourceFile);\n        const resolutions = resolveModuleNamesReusingOldState(moduleNames, newSourceFile);\n        const resolutionsChanged = hasChangesInResolutions(moduleNames, newSourceFile, resolutions, oldSourceFile.resolvedModules, moduleResolutionIsEqualTo, moduleResolutionNameAndModeGetter);\n        if (resolutionsChanged) {\n          structureIsReused = 1;\n          newSourceFile.resolvedModules = zipToModeAwareCache(newSourceFile, moduleNames, resolutions, moduleResolutionNameAndModeGetter);\n        } else {\n          newSourceFile.resolvedModules = oldSourceFile.resolvedModules;\n        }\n        const typesReferenceDirectives = newSourceFile.typeReferenceDirectives;\n        const typeReferenceResolutions = resolveTypeReferenceDirectiveNamesReusingOldState(typesReferenceDirectives, newSourceFile);\n        const typeReferenceResolutionsChanged = hasChangesInResolutions(typesReferenceDirectives, newSourceFile, typeReferenceResolutions, oldSourceFile.resolvedTypeReferenceDirectiveNames, typeDirectiveIsEqualTo, typeReferenceResolutionNameAndModeGetter);\n        if (typeReferenceResolutionsChanged) {\n          structureIsReused = 1;\n          newSourceFile.resolvedTypeReferenceDirectiveNames = zipToModeAwareCache(newSourceFile, typesReferenceDirectives, typeReferenceResolutions, typeReferenceResolutionNameAndModeGetter);\n        } else {\n          newSourceFile.resolvedTypeReferenceDirectiveNames = oldSourceFile.resolvedTypeReferenceDirectiveNames;\n        }\n      }\n      if (structureIsReused !== 2) {\n        return structureIsReused;\n      }\n      if (changesAffectingProgramStructure(oldOptions, options)) {\n        return 1;\n      }\n      if (host.hasChangedAutomaticTypeDirectiveNames) {\n        if (host.hasChangedAutomaticTypeDirectiveNames())\n          return 1;\n      } else {\n        automaticTypeDirectiveNames = getAutomaticTypeDirectiveNames(options, host);\n        if (!arrayIsEqualTo(oldProgram.getAutomaticTypeDirectiveNames(), automaticTypeDirectiveNames))\n          return 1;\n      }\n      missingFilePaths = oldProgram.getMissingFilePaths();\n      Debug.assert(newSourceFiles.length === oldProgram.getSourceFiles().length);\n      for (const newSourceFile of newSourceFiles) {\n        filesByName.set(newSourceFile.path, newSourceFile);\n      }\n      const oldFilesByNameMap = oldProgram.getFilesByNameMap();\n      oldFilesByNameMap.forEach((oldFile, path) => {\n        if (!oldFile) {\n          filesByName.set(path, oldFile);\n          return;\n        }\n        if (oldFile.path === path) {\n          if (oldProgram.isSourceFileFromExternalLibrary(oldFile)) {\n            sourceFilesFoundSearchingNodeModules.set(oldFile.path, true);\n          }\n          return;\n        }\n        filesByName.set(path, filesByName.get(oldFile.path));\n      });\n      files = newSourceFiles;\n      fileReasons = oldProgram.getFileIncludeReasons();\n      fileProcessingDiagnostics = oldProgram.getFileProcessingDiagnostics();\n      resolvedTypeReferenceDirectives = oldProgram.getResolvedTypeReferenceDirectives();\n      automaticTypeDirectiveNames = oldProgram.getAutomaticTypeDirectiveNames();\n      automaticTypeDirectiveResolutions = oldProgram.getAutomaticTypeDirectiveResolutions();\n      sourceFileToPackageName = oldProgram.sourceFileToPackageName;\n      redirectTargetsMap = oldProgram.redirectTargetsMap;\n      usesUriStyleNodeCoreModules = oldProgram.usesUriStyleNodeCoreModules;\n      return 2;\n    }\n    function getEmitHost(writeFileCallback) {\n      return {\n        getPrependNodes,\n        getCanonicalFileName,\n        getCommonSourceDirectory: program.getCommonSourceDirectory,\n        getCompilerOptions: program.getCompilerOptions,\n        getCurrentDirectory: () => currentDirectory,\n        getSourceFile: program.getSourceFile,\n        getSourceFileByPath: program.getSourceFileByPath,\n        getSourceFiles: program.getSourceFiles,\n        getLibFileFromReference: program.getLibFileFromReference,\n        isSourceFileFromExternalLibrary,\n        getResolvedProjectReferenceToRedirect,\n        getProjectReferenceRedirect,\n        isSourceOfProjectReferenceRedirect,\n        getSymlinkCache,\n        writeFile: writeFileCallback || writeFile2,\n        isEmitBlocked,\n        readFile: (f) => host.readFile(f),\n        fileExists: (f) => {\n          const path = toPath3(f);\n          if (getSourceFileByPath(path))\n            return true;\n          if (contains(missingFilePaths, path))\n            return false;\n          return host.fileExists(f);\n        },\n        useCaseSensitiveFileNames: () => host.useCaseSensitiveFileNames(),\n        getBuildInfo: (bundle) => {\n          var _a3;\n          return (_a3 = program.getBuildInfo) == null ? void 0 : _a3.call(program, bundle);\n        },\n        getSourceFileFromReference: (file, ref) => program.getSourceFileFromReference(file, ref),\n        redirectTargetsMap,\n        getFileIncludeReasons: program.getFileIncludeReasons,\n        createHash: maybeBind(host, host.createHash)\n      };\n    }\n    function writeFile2(fileName, text, writeByteOrderMark, onError, sourceFiles, data) {\n      host.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data);\n    }\n    function emitBuildInfo(writeFileCallback) {\n      var _a3, _b2;\n      Debug.assert(!outFile(options));\n      (_a3 = tracing) == null ? void 0 : _a3.push(tracing.Phase.Emit, \"emitBuildInfo\", {}, true);\n      mark(\"beforeEmit\");\n      const emitResult = emitFiles(notImplementedResolver, getEmitHost(writeFileCallback), void 0, noTransformers, false, true);\n      mark(\"afterEmit\");\n      measure(\"Emit\", \"beforeEmit\", \"afterEmit\");\n      (_b2 = tracing) == null ? void 0 : _b2.pop();\n      return emitResult;\n    }\n    function getResolvedProjectReferences() {\n      return resolvedProjectReferences;\n    }\n    function getProjectReferences() {\n      return projectReferences;\n    }\n    function getPrependNodes() {\n      return createPrependNodes(projectReferences, (_ref, index) => {\n        var _a3;\n        return (_a3 = resolvedProjectReferences[index]) == null ? void 0 : _a3.commandLine;\n      }, (fileName) => {\n        const path = toPath3(fileName);\n        const sourceFile = getSourceFileByPath(path);\n        return sourceFile ? sourceFile.text : filesByName.has(path) ? void 0 : host.readFile(path);\n      }, host);\n    }\n    function isSourceFileFromExternalLibrary(file) {\n      return !!sourceFilesFoundSearchingNodeModules.get(file.path);\n    }\n    function isSourceFileDefaultLibrary(file) {\n      if (!file.isDeclarationFile) {\n        return false;\n      }\n      if (file.hasNoDefaultLib) {\n        return true;\n      }\n      if (!options.noLib) {\n        return false;\n      }\n      const equalityComparer = host.useCaseSensitiveFileNames() ? equateStringsCaseSensitive : equateStringsCaseInsensitive;\n      if (!options.lib) {\n        return equalityComparer(file.fileName, getDefaultLibraryFileName());\n      } else {\n        return some(options.lib, (libFileName) => equalityComparer(file.fileName, pathForLibFile(libFileName)));\n      }\n    }\n    function getTypeChecker() {\n      return typeChecker || (typeChecker = createTypeChecker(program));\n    }\n    function emit(sourceFile, writeFileCallback, cancellationToken, emitOnly, transformers, forceDtsEmit) {\n      var _a3, _b2;\n      (_a3 = tracing) == null ? void 0 : _a3.push(tracing.Phase.Emit, \"emit\", { path: sourceFile == null ? void 0 : sourceFile.path }, true);\n      const result = runWithCancellationToken(() => emitWorker(program, sourceFile, writeFileCallback, cancellationToken, emitOnly, transformers, forceDtsEmit));\n      (_b2 = tracing) == null ? void 0 : _b2.pop();\n      return result;\n    }\n    function isEmitBlocked(emitFileName) {\n      return hasEmitBlockingDiagnostics.has(toPath3(emitFileName));\n    }\n    function emitWorker(program2, sourceFile, writeFileCallback, cancellationToken, emitOnly, customTransformers, forceDtsEmit) {\n      if (!forceDtsEmit) {\n        const result = handleNoEmitOptions(program2, sourceFile, writeFileCallback, cancellationToken);\n        if (result)\n          return result;\n      }\n      const emitResolver = getTypeChecker().getEmitResolver(outFile(options) ? void 0 : sourceFile, cancellationToken);\n      mark(\"beforeEmit\");\n      const emitResult = emitFiles(emitResolver, getEmitHost(writeFileCallback), sourceFile, getTransformers(options, customTransformers, emitOnly), emitOnly, false, forceDtsEmit);\n      mark(\"afterEmit\");\n      measure(\"Emit\", \"beforeEmit\", \"afterEmit\");\n      return emitResult;\n    }\n    function getSourceFile(fileName) {\n      return getSourceFileByPath(toPath3(fileName));\n    }\n    function getSourceFileByPath(path) {\n      return filesByName.get(path) || void 0;\n    }\n    function getDiagnosticsHelper(sourceFile, getDiagnostics2, cancellationToken) {\n      if (sourceFile) {\n        return sortAndDeduplicateDiagnostics(getDiagnostics2(sourceFile, cancellationToken));\n      }\n      return sortAndDeduplicateDiagnostics(flatMap(program.getSourceFiles(), (sourceFile2) => {\n        if (cancellationToken) {\n          cancellationToken.throwIfCancellationRequested();\n        }\n        return getDiagnostics2(sourceFile2, cancellationToken);\n      }));\n    }\n    function getSyntacticDiagnostics(sourceFile, cancellationToken) {\n      return getDiagnosticsHelper(sourceFile, getSyntacticDiagnosticsForFile, cancellationToken);\n    }\n    function getSemanticDiagnostics(sourceFile, cancellationToken) {\n      return getDiagnosticsHelper(sourceFile, getSemanticDiagnosticsForFile, cancellationToken);\n    }\n    function getCachedSemanticDiagnostics(sourceFile) {\n      var _a3;\n      return sourceFile ? (_a3 = cachedBindAndCheckDiagnosticsForFile.perFile) == null ? void 0 : _a3.get(sourceFile.path) : cachedBindAndCheckDiagnosticsForFile.allDiagnostics;\n    }\n    function getBindAndCheckDiagnostics(sourceFile, cancellationToken) {\n      return getBindAndCheckDiagnosticsForFile(sourceFile, cancellationToken);\n    }\n    function getProgramDiagnostics(sourceFile) {\n      var _a3;\n      if (skipTypeChecking(sourceFile, options, program)) {\n        return emptyArray;\n      }\n      const programDiagnosticsInFile = programDiagnostics.getDiagnostics(sourceFile.fileName);\n      if (!((_a3 = sourceFile.commentDirectives) == null ? void 0 : _a3.length)) {\n        return programDiagnosticsInFile;\n      }\n      return getDiagnosticsWithPrecedingDirectives(sourceFile, sourceFile.commentDirectives, programDiagnosticsInFile).diagnostics;\n    }\n    function getDeclarationDiagnostics2(sourceFile, cancellationToken) {\n      const options2 = program.getCompilerOptions();\n      if (!sourceFile || outFile(options2)) {\n        return getDeclarationDiagnosticsWorker(sourceFile, cancellationToken);\n      } else {\n        return getDiagnosticsHelper(sourceFile, getDeclarationDiagnosticsForFile, cancellationToken);\n      }\n    }\n    function getSyntacticDiagnosticsForFile(sourceFile) {\n      if (isSourceFileJS(sourceFile)) {\n        if (!sourceFile.additionalSyntacticDiagnostics) {\n          sourceFile.additionalSyntacticDiagnostics = getJSSyntacticDiagnosticsForFile(sourceFile);\n        }\n        return concatenate(sourceFile.additionalSyntacticDiagnostics, sourceFile.parseDiagnostics);\n      }\n      return sourceFile.parseDiagnostics;\n    }\n    function runWithCancellationToken(func) {\n      try {\n        return func();\n      } catch (e) {\n        if (e instanceof OperationCanceledException) {\n          typeChecker = void 0;\n        }\n        throw e;\n      }\n    }\n    function getSemanticDiagnosticsForFile(sourceFile, cancellationToken) {\n      return concatenate(filterSemanticDiagnostics(getBindAndCheckDiagnosticsForFile(sourceFile, cancellationToken), options), getProgramDiagnostics(sourceFile));\n    }\n    function getBindAndCheckDiagnosticsForFile(sourceFile, cancellationToken) {\n      return getAndCacheDiagnostics(sourceFile, cancellationToken, cachedBindAndCheckDiagnosticsForFile, getBindAndCheckDiagnosticsForFileNoCache);\n    }\n    function getBindAndCheckDiagnosticsForFileNoCache(sourceFile, cancellationToken) {\n      return runWithCancellationToken(() => {\n        if (skipTypeChecking(sourceFile, options, program)) {\n          return emptyArray;\n        }\n        const typeChecker2 = getTypeChecker();\n        Debug.assert(!!sourceFile.bindDiagnostics);\n        const isJs = sourceFile.scriptKind === 1 || sourceFile.scriptKind === 2;\n        const isCheckJs = isJs && isCheckJsEnabledForFile(sourceFile, options);\n        const isPlainJs = isPlainJsFile(sourceFile, options.checkJs);\n        const isTsNoCheck = !!sourceFile.checkJsDirective && sourceFile.checkJsDirective.enabled === false;\n        const includeBindAndCheckDiagnostics = !isTsNoCheck && (sourceFile.scriptKind === 3 || sourceFile.scriptKind === 4 || sourceFile.scriptKind === 5 || isPlainJs || isCheckJs || sourceFile.scriptKind === 7);\n        let bindDiagnostics = includeBindAndCheckDiagnostics ? sourceFile.bindDiagnostics : emptyArray;\n        let checkDiagnostics = includeBindAndCheckDiagnostics ? typeChecker2.getDiagnostics(sourceFile, cancellationToken) : emptyArray;\n        if (isPlainJs) {\n          bindDiagnostics = filter(bindDiagnostics, (d) => plainJSErrors.has(d.code));\n          checkDiagnostics = filter(checkDiagnostics, (d) => plainJSErrors.has(d.code));\n        }\n        return getMergedBindAndCheckDiagnostics(sourceFile, includeBindAndCheckDiagnostics && !isPlainJs, bindDiagnostics, checkDiagnostics, isCheckJs ? sourceFile.jsDocDiagnostics : void 0);\n      });\n    }\n    function getMergedBindAndCheckDiagnostics(sourceFile, includeBindAndCheckDiagnostics, ...allDiagnostics) {\n      var _a3;\n      const flatDiagnostics = flatten(allDiagnostics);\n      if (!includeBindAndCheckDiagnostics || !((_a3 = sourceFile.commentDirectives) == null ? void 0 : _a3.length)) {\n        return flatDiagnostics;\n      }\n      const { diagnostics, directives } = getDiagnosticsWithPrecedingDirectives(sourceFile, sourceFile.commentDirectives, flatDiagnostics);\n      for (const errorExpectation of directives.getUnusedExpectations()) {\n        diagnostics.push(createDiagnosticForRange(sourceFile, errorExpectation.range, Diagnostics.Unused_ts_expect_error_directive));\n      }\n      return diagnostics;\n    }\n    function getDiagnosticsWithPrecedingDirectives(sourceFile, commentDirectives, flatDiagnostics) {\n      const directives = createCommentDirectivesMap(sourceFile, commentDirectives);\n      const diagnostics = flatDiagnostics.filter((diagnostic) => markPrecedingCommentDirectiveLine(diagnostic, directives) === -1);\n      return { diagnostics, directives };\n    }\n    function getSuggestionDiagnostics(sourceFile, cancellationToken) {\n      return runWithCancellationToken(() => {\n        return getTypeChecker().getSuggestionDiagnostics(sourceFile, cancellationToken);\n      });\n    }\n    function markPrecedingCommentDirectiveLine(diagnostic, directives) {\n      const { file, start } = diagnostic;\n      if (!file) {\n        return -1;\n      }\n      const lineStarts = getLineStarts(file);\n      let line = computeLineAndCharacterOfPosition(lineStarts, start).line - 1;\n      while (line >= 0) {\n        if (directives.markUsed(line)) {\n          return line;\n        }\n        const lineText = file.text.slice(lineStarts[line], lineStarts[line + 1]).trim();\n        if (lineText !== \"\" && !/^(\\s*)\\/\\/(.*)$/.test(lineText)) {\n          return -1;\n        }\n        line--;\n      }\n      return -1;\n    }\n    function getJSSyntacticDiagnosticsForFile(sourceFile) {\n      return runWithCancellationToken(() => {\n        const diagnostics = [];\n        walk(sourceFile, sourceFile);\n        forEachChildRecursively(sourceFile, walk, walkArray);\n        return diagnostics;\n        function walk(node, parent2) {\n          switch (parent2.kind) {\n            case 166:\n            case 169:\n            case 171:\n              if (parent2.questionToken === node) {\n                diagnostics.push(createDiagnosticForNode2(node, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, \"?\"));\n                return \"skip\";\n              }\n            case 170:\n            case 173:\n            case 174:\n            case 175:\n            case 215:\n            case 259:\n            case 216:\n            case 257:\n              if (parent2.type === node) {\n                diagnostics.push(createDiagnosticForNode2(node, Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files));\n                return \"skip\";\n              }\n          }\n          switch (node.kind) {\n            case 270:\n              if (node.isTypeOnly) {\n                diagnostics.push(createDiagnosticForNode2(parent2, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, \"import type\"));\n                return \"skip\";\n              }\n              break;\n            case 275:\n              if (node.isTypeOnly) {\n                diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, \"export type\"));\n                return \"skip\";\n              }\n              break;\n            case 273:\n            case 278:\n              if (node.isTypeOnly) {\n                diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, isImportSpecifier(node) ? \"import...type\" : \"export...type\"));\n                return \"skip\";\n              }\n              break;\n            case 268:\n              diagnostics.push(createDiagnosticForNode2(node, Diagnostics.import_can_only_be_used_in_TypeScript_files));\n              return \"skip\";\n            case 274:\n              if (node.isExportEquals) {\n                diagnostics.push(createDiagnosticForNode2(node, Diagnostics.export_can_only_be_used_in_TypeScript_files));\n                return \"skip\";\n              }\n              break;\n            case 294:\n              const heritageClause = node;\n              if (heritageClause.token === 117) {\n                diagnostics.push(createDiagnosticForNode2(node, Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files));\n                return \"skip\";\n              }\n              break;\n            case 261:\n              const interfaceKeyword = tokenToString(118);\n              Debug.assertIsDefined(interfaceKeyword);\n              diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, interfaceKeyword));\n              return \"skip\";\n            case 264:\n              const moduleKeyword = node.flags & 16 ? tokenToString(143) : tokenToString(142);\n              Debug.assertIsDefined(moduleKeyword);\n              diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, moduleKeyword));\n              return \"skip\";\n            case 262:\n              diagnostics.push(createDiagnosticForNode2(node, Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files));\n              return \"skip\";\n            case 263:\n              const enumKeyword = Debug.checkDefined(tokenToString(92));\n              diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, enumKeyword));\n              return \"skip\";\n            case 232:\n              diagnostics.push(createDiagnosticForNode2(node, Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files));\n              return \"skip\";\n            case 231:\n              diagnostics.push(createDiagnosticForNode2(node.type, Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files));\n              return \"skip\";\n            case 235:\n              diagnostics.push(createDiagnosticForNode2(node.type, Diagnostics.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files));\n              return \"skip\";\n            case 213:\n              Debug.fail();\n          }\n        }\n        function walkArray(nodes, parent2) {\n          if (canHaveIllegalDecorators(parent2)) {\n            const decorator = find(parent2.modifiers, isDecorator);\n            if (decorator) {\n              diagnostics.push(createDiagnosticForNode2(decorator, Diagnostics.Decorators_are_not_valid_here));\n            }\n          } else if (canHaveDecorators(parent2) && parent2.modifiers) {\n            const decoratorIndex = findIndex(parent2.modifiers, isDecorator);\n            if (decoratorIndex >= 0) {\n              if (isParameter(parent2) && !options.experimentalDecorators) {\n                diagnostics.push(createDiagnosticForNode2(parent2.modifiers[decoratorIndex], Diagnostics.Decorators_are_not_valid_here));\n              } else if (isClassDeclaration(parent2)) {\n                const exportIndex = findIndex(parent2.modifiers, isExportModifier);\n                if (exportIndex >= 0) {\n                  const defaultIndex = findIndex(parent2.modifiers, isDefaultModifier);\n                  if (decoratorIndex > exportIndex && defaultIndex >= 0 && decoratorIndex < defaultIndex) {\n                    diagnostics.push(createDiagnosticForNode2(parent2.modifiers[decoratorIndex], Diagnostics.Decorators_are_not_valid_here));\n                  } else if (exportIndex >= 0 && decoratorIndex < exportIndex) {\n                    const trailingDecoratorIndex = findIndex(parent2.modifiers, isDecorator, exportIndex);\n                    if (trailingDecoratorIndex >= 0) {\n                      diagnostics.push(addRelatedInfo(createDiagnosticForNode2(parent2.modifiers[trailingDecoratorIndex], Diagnostics.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export), createDiagnosticForNode2(parent2.modifiers[decoratorIndex], Diagnostics.Decorator_used_before_export_here)));\n                    }\n                  }\n                }\n              }\n            }\n          }\n          switch (parent2.kind) {\n            case 260:\n            case 228:\n            case 171:\n            case 173:\n            case 174:\n            case 175:\n            case 215:\n            case 259:\n            case 216:\n              if (nodes === parent2.typeParameters) {\n                diagnostics.push(createDiagnosticForNodeArray2(nodes, Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files));\n                return \"skip\";\n              }\n            case 240:\n              if (nodes === parent2.modifiers) {\n                checkModifiers(parent2.modifiers, parent2.kind === 240);\n                return \"skip\";\n              }\n              break;\n            case 169:\n              if (nodes === parent2.modifiers) {\n                for (const modifier of nodes) {\n                  if (isModifier(modifier) && modifier.kind !== 124 && modifier.kind !== 127) {\n                    diagnostics.push(createDiagnosticForNode2(modifier, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, tokenToString(modifier.kind)));\n                  }\n                }\n                return \"skip\";\n              }\n              break;\n            case 166:\n              if (nodes === parent2.modifiers && some(nodes, isModifier)) {\n                diagnostics.push(createDiagnosticForNodeArray2(nodes, Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files));\n                return \"skip\";\n              }\n              break;\n            case 210:\n            case 211:\n            case 230:\n            case 282:\n            case 283:\n            case 212:\n              if (nodes === parent2.typeArguments) {\n                diagnostics.push(createDiagnosticForNodeArray2(nodes, Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files));\n                return \"skip\";\n              }\n              break;\n          }\n        }\n        function checkModifiers(modifiers, isConstValid) {\n          for (const modifier of modifiers) {\n            switch (modifier.kind) {\n              case 85:\n                if (isConstValid) {\n                  continue;\n                }\n              case 123:\n              case 121:\n              case 122:\n              case 146:\n              case 136:\n              case 126:\n              case 161:\n              case 101:\n              case 145:\n                diagnostics.push(createDiagnosticForNode2(modifier, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, tokenToString(modifier.kind)));\n                break;\n              case 124:\n              case 93:\n              case 88:\n              case 127:\n            }\n          }\n        }\n        function createDiagnosticForNodeArray2(nodes, message, arg0, arg1, arg2) {\n          const start = nodes.pos;\n          return createFileDiagnostic(sourceFile, start, nodes.end - start, message, arg0, arg1, arg2);\n        }\n        function createDiagnosticForNode2(node, message, arg0, arg1, arg2) {\n          return createDiagnosticForNodeInSourceFile(sourceFile, node, message, arg0, arg1, arg2);\n        }\n      });\n    }\n    function getDeclarationDiagnosticsWorker(sourceFile, cancellationToken) {\n      return getAndCacheDiagnostics(sourceFile, cancellationToken, cachedDeclarationDiagnosticsForFile, getDeclarationDiagnosticsForFileNoCache);\n    }\n    function getDeclarationDiagnosticsForFileNoCache(sourceFile, cancellationToken) {\n      return runWithCancellationToken(() => {\n        const resolver = getTypeChecker().getEmitResolver(sourceFile, cancellationToken);\n        return getDeclarationDiagnostics(getEmitHost(noop), resolver, sourceFile) || emptyArray;\n      });\n    }\n    function getAndCacheDiagnostics(sourceFile, cancellationToken, cache, getDiagnostics2) {\n      var _a3;\n      const cachedResult = sourceFile ? (_a3 = cache.perFile) == null ? void 0 : _a3.get(sourceFile.path) : cache.allDiagnostics;\n      if (cachedResult) {\n        return cachedResult;\n      }\n      const result = getDiagnostics2(sourceFile, cancellationToken);\n      if (sourceFile) {\n        (cache.perFile || (cache.perFile = /* @__PURE__ */ new Map())).set(sourceFile.path, result);\n      } else {\n        cache.allDiagnostics = result;\n      }\n      return result;\n    }\n    function getDeclarationDiagnosticsForFile(sourceFile, cancellationToken) {\n      return sourceFile.isDeclarationFile ? [] : getDeclarationDiagnosticsWorker(sourceFile, cancellationToken);\n    }\n    function getOptionsDiagnostics() {\n      return sortAndDeduplicateDiagnostics(concatenate(programDiagnostics.getGlobalDiagnostics(), getOptionsDiagnosticsOfConfigFile()));\n    }\n    function getOptionsDiagnosticsOfConfigFile() {\n      if (!options.configFile)\n        return emptyArray;\n      let diagnostics = programDiagnostics.getDiagnostics(options.configFile.fileName);\n      forEachResolvedProjectReference2((resolvedRef) => {\n        diagnostics = concatenate(diagnostics, programDiagnostics.getDiagnostics(resolvedRef.sourceFile.fileName));\n      });\n      return diagnostics;\n    }\n    function getGlobalDiagnostics() {\n      return rootNames.length ? sortAndDeduplicateDiagnostics(getTypeChecker().getGlobalDiagnostics().slice()) : emptyArray;\n    }\n    function getConfigFileParsingDiagnostics2() {\n      return configFileParsingDiagnostics || emptyArray;\n    }\n    function processRootFile(fileName, isDefaultLib, ignoreNoDefaultLib, reason) {\n      processSourceFile(normalizePath(fileName), isDefaultLib, ignoreNoDefaultLib, void 0, reason);\n    }\n    function fileReferenceIsEqualTo(a, b) {\n      return a.fileName === b.fileName;\n    }\n    function moduleNameIsEqualTo(a, b) {\n      return a.kind === 79 ? b.kind === 79 && a.escapedText === b.escapedText : b.kind === 10 && a.text === b.text;\n    }\n    function createSyntheticImport(text, file) {\n      const externalHelpersModuleReference = factory.createStringLiteral(text);\n      const importDecl = factory.createImportDeclaration(void 0, void 0, externalHelpersModuleReference, void 0);\n      addInternalEmitFlags(importDecl, 2);\n      setParent(externalHelpersModuleReference, importDecl);\n      setParent(importDecl, file);\n      externalHelpersModuleReference.flags &= ~8;\n      importDecl.flags &= ~8;\n      return externalHelpersModuleReference;\n    }\n    function collectExternalModuleReferences(file) {\n      if (file.imports) {\n        return;\n      }\n      const isJavaScriptFile = isSourceFileJS(file);\n      const isExternalModuleFile = isExternalModule(file);\n      let imports;\n      let moduleAugmentations;\n      let ambientModules;\n      if ((getIsolatedModules(options) || isExternalModuleFile) && !file.isDeclarationFile) {\n        if (options.importHelpers) {\n          imports = [createSyntheticImport(externalHelpersModuleNameText, file)];\n        }\n        const jsxImport = getJSXRuntimeImport(getJSXImplicitImportBase(options, file), options);\n        if (jsxImport) {\n          (imports || (imports = [])).push(createSyntheticImport(jsxImport, file));\n        }\n      }\n      for (const node of file.statements) {\n        collectModuleReferences(node, false);\n      }\n      const shouldProcessRequires = isJavaScriptFile && getEmitModuleResolutionKind(options) !== 100;\n      if (file.flags & 2097152 || shouldProcessRequires) {\n        collectDynamicImportOrRequireCalls(file);\n      }\n      file.imports = imports || emptyArray;\n      file.moduleAugmentations = moduleAugmentations || emptyArray;\n      file.ambientModuleNames = ambientModules || emptyArray;\n      return;\n      function collectModuleReferences(node, inAmbientModule) {\n        if (isAnyImportOrReExport(node)) {\n          const moduleNameExpr = getExternalModuleName(node);\n          if (moduleNameExpr && isStringLiteral(moduleNameExpr) && moduleNameExpr.text && (!inAmbientModule || !isExternalModuleNameRelative(moduleNameExpr.text))) {\n            setParentRecursive(node, false);\n            imports = append(imports, moduleNameExpr);\n            if (!usesUriStyleNodeCoreModules && currentNodeModulesDepth === 0 && !file.isDeclarationFile) {\n              usesUriStyleNodeCoreModules = startsWith(moduleNameExpr.text, \"node:\");\n            }\n          }\n        } else if (isModuleDeclaration(node)) {\n          if (isAmbientModule(node) && (inAmbientModule || hasSyntacticModifier(node, 2) || file.isDeclarationFile)) {\n            node.name.parent = node;\n            const nameText = getTextOfIdentifierOrLiteral(node.name);\n            if (isExternalModuleFile || inAmbientModule && !isExternalModuleNameRelative(nameText)) {\n              (moduleAugmentations || (moduleAugmentations = [])).push(node.name);\n            } else if (!inAmbientModule) {\n              if (file.isDeclarationFile) {\n                (ambientModules || (ambientModules = [])).push(nameText);\n              }\n              const body = node.body;\n              if (body) {\n                for (const statement of body.statements) {\n                  collectModuleReferences(statement, true);\n                }\n              }\n            }\n          }\n        }\n      }\n      function collectDynamicImportOrRequireCalls(file2) {\n        const r = /import|require/g;\n        while (r.exec(file2.text) !== null) {\n          const node = getNodeAtPosition(file2, r.lastIndex);\n          if (shouldProcessRequires && isRequireCall(node, true)) {\n            setParentRecursive(node, false);\n            imports = append(imports, node.arguments[0]);\n          } else if (isImportCall(node) && node.arguments.length >= 1 && isStringLiteralLike(node.arguments[0])) {\n            setParentRecursive(node, false);\n            imports = append(imports, node.arguments[0]);\n          } else if (isLiteralImportTypeNode(node)) {\n            setParentRecursive(node, false);\n            imports = append(imports, node.argument.literal);\n          }\n        }\n      }\n      function getNodeAtPosition(sourceFile, position) {\n        let current = sourceFile;\n        const getContainingChild = (child) => {\n          if (child.pos <= position && (position < child.end || position === child.end && child.kind === 1)) {\n            return child;\n          }\n        };\n        while (true) {\n          const child = isJavaScriptFile && hasJSDocNodes(current) && forEach(current.jsDoc, getContainingChild) || forEachChild(current, getContainingChild);\n          if (!child) {\n            return current;\n          }\n          current = child;\n        }\n      }\n    }\n    function getLibFileFromReference(ref) {\n      const libName = toFileNameLowerCase(ref.fileName);\n      const libFileName = libMap.get(libName);\n      if (libFileName) {\n        return getSourceFile(pathForLibFile(libFileName));\n      }\n    }\n    function getSourceFileFromReference(referencingFile, ref) {\n      return getSourceFileFromReferenceWorker(resolveTripleslashReference(ref.fileName, referencingFile.fileName), getSourceFile);\n    }\n    function getSourceFileFromReferenceWorker(fileName, getSourceFile2, fail, reason) {\n      if (hasExtension(fileName)) {\n        const canonicalFileName = host.getCanonicalFileName(fileName);\n        if (!options.allowNonTsExtensions && !forEach(flatten(supportedExtensionsWithJsonIfResolveJsonModule), (extension) => fileExtensionIs(canonicalFileName, extension))) {\n          if (fail) {\n            if (hasJSFileExtension(canonicalFileName)) {\n              fail(Diagnostics.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option, fileName);\n            } else {\n              fail(Diagnostics.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1, fileName, \"'\" + flatten(supportedExtensions).join(\"', '\") + \"'\");\n            }\n          }\n          return void 0;\n        }\n        const sourceFile = getSourceFile2(fileName);\n        if (fail) {\n          if (!sourceFile) {\n            const redirect = getProjectReferenceRedirect(fileName);\n            if (redirect) {\n              fail(Diagnostics.Output_file_0_has_not_been_built_from_source_file_1, redirect, fileName);\n            } else {\n              fail(Diagnostics.File_0_not_found, fileName);\n            }\n          } else if (isReferencedFile(reason) && canonicalFileName === host.getCanonicalFileName(getSourceFileByPath(reason.file).fileName)) {\n            fail(Diagnostics.A_file_cannot_have_a_reference_to_itself);\n          }\n        }\n        return sourceFile;\n      } else {\n        const sourceFileNoExtension = options.allowNonTsExtensions && getSourceFile2(fileName);\n        if (sourceFileNoExtension)\n          return sourceFileNoExtension;\n        if (fail && options.allowNonTsExtensions) {\n          fail(Diagnostics.File_0_not_found, fileName);\n          return void 0;\n        }\n        const sourceFileWithAddedExtension = forEach(supportedExtensions[0], (extension) => getSourceFile2(fileName + extension));\n        if (fail && !sourceFileWithAddedExtension)\n          fail(Diagnostics.Could_not_resolve_the_path_0_with_the_extensions_Colon_1, fileName, \"'\" + flatten(supportedExtensions).join(\"', '\") + \"'\");\n        return sourceFileWithAddedExtension;\n      }\n    }\n    function processSourceFile(fileName, isDefaultLib, ignoreNoDefaultLib, packageId, reason) {\n      getSourceFileFromReferenceWorker(fileName, (fileName2) => findSourceFile(fileName2, isDefaultLib, ignoreNoDefaultLib, reason, packageId), (diagnostic, ...args) => addFilePreprocessingFileExplainingDiagnostic(void 0, reason, diagnostic, args), reason);\n    }\n    function processProjectReferenceFile(fileName, reason) {\n      return processSourceFile(fileName, false, false, void 0, reason);\n    }\n    function reportFileNamesDifferOnlyInCasingError(fileName, existingFile, reason) {\n      const hasExistingReasonToReportErrorOn = !isReferencedFile(reason) && some(fileReasons.get(existingFile.path), isReferencedFile);\n      if (hasExistingReasonToReportErrorOn) {\n        addFilePreprocessingFileExplainingDiagnostic(existingFile, reason, Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing, [existingFile.fileName, fileName]);\n      } else {\n        addFilePreprocessingFileExplainingDiagnostic(existingFile, reason, Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing, [fileName, existingFile.fileName]);\n      }\n    }\n    function createRedirectedSourceFile(redirectTarget, unredirected, fileName, path, resolvedPath, originalFileName, sourceFileOptions) {\n      var _a3;\n      const redirect = parseNodeFactory.createRedirectedSourceFile({ redirectTarget, unredirected });\n      redirect.fileName = fileName;\n      redirect.path = path;\n      redirect.resolvedPath = resolvedPath;\n      redirect.originalFileName = originalFileName;\n      redirect.packageJsonLocations = ((_a3 = sourceFileOptions.packageJsonLocations) == null ? void 0 : _a3.length) ? sourceFileOptions.packageJsonLocations : void 0;\n      redirect.packageJsonScope = sourceFileOptions.packageJsonScope;\n      sourceFilesFoundSearchingNodeModules.set(path, currentNodeModulesDepth > 0);\n      return redirect;\n    }\n    function findSourceFile(fileName, isDefaultLib, ignoreNoDefaultLib, reason, packageId) {\n      var _a3, _b2;\n      (_a3 = tracing) == null ? void 0 : _a3.push(tracing.Phase.Program, \"findSourceFile\", {\n        fileName,\n        isDefaultLib: isDefaultLib || void 0,\n        fileIncludeKind: FileIncludeKind[reason.kind]\n      });\n      const result = findSourceFileWorker(fileName, isDefaultLib, ignoreNoDefaultLib, reason, packageId);\n      (_b2 = tracing) == null ? void 0 : _b2.pop();\n      return result;\n    }\n    function getCreateSourceFileOptions(fileName, moduleResolutionCache2, host2, options2) {\n      const result = getImpliedNodeFormatForFileWorker(getNormalizedAbsolutePath(fileName, currentDirectory), moduleResolutionCache2 == null ? void 0 : moduleResolutionCache2.getPackageJsonInfoCache(), host2, options2);\n      const languageVersion = getEmitScriptTarget(options2);\n      const setExternalModuleIndicator2 = getSetExternalModuleIndicator(options2);\n      return typeof result === \"object\" ? { ...result, languageVersion, setExternalModuleIndicator: setExternalModuleIndicator2 } : { languageVersion, impliedNodeFormat: result, setExternalModuleIndicator: setExternalModuleIndicator2 };\n    }\n    function findSourceFileWorker(fileName, isDefaultLib, ignoreNoDefaultLib, reason, packageId) {\n      var _a3, _b2;\n      const path = toPath3(fileName);\n      if (useSourceOfProjectReferenceRedirect) {\n        let source = getSourceOfProjectReferenceRedirect(path);\n        if (!source && host.realpath && options.preserveSymlinks && isDeclarationFileName(fileName) && stringContains(fileName, nodeModulesPathPart)) {\n          const realPath2 = toPath3(host.realpath(fileName));\n          if (realPath2 !== path)\n            source = getSourceOfProjectReferenceRedirect(realPath2);\n        }\n        if (source) {\n          const file2 = isString(source) ? findSourceFile(source, isDefaultLib, ignoreNoDefaultLib, reason, packageId) : void 0;\n          if (file2)\n            addFileToFilesByName(file2, path, void 0);\n          return file2;\n        }\n      }\n      const originalFileName = fileName;\n      if (filesByName.has(path)) {\n        const file2 = filesByName.get(path);\n        addFileIncludeReason(file2 || void 0, reason);\n        if (file2 && !(options.forceConsistentCasingInFileNames === false)) {\n          const checkedName = file2.fileName;\n          const isRedirect = toPath3(checkedName) !== toPath3(fileName);\n          if (isRedirect) {\n            fileName = getProjectReferenceRedirect(fileName) || fileName;\n          }\n          const checkedAbsolutePath = getNormalizedAbsolutePathWithoutRoot(checkedName, currentDirectory);\n          const inputAbsolutePath = getNormalizedAbsolutePathWithoutRoot(fileName, currentDirectory);\n          if (checkedAbsolutePath !== inputAbsolutePath) {\n            reportFileNamesDifferOnlyInCasingError(fileName, file2, reason);\n          }\n        }\n        if (file2 && sourceFilesFoundSearchingNodeModules.get(file2.path) && currentNodeModulesDepth === 0) {\n          sourceFilesFoundSearchingNodeModules.set(file2.path, false);\n          if (!options.noResolve) {\n            processReferencedFiles(file2, isDefaultLib);\n            processTypeReferenceDirectives(file2);\n          }\n          if (!options.noLib) {\n            processLibReferenceDirectives(file2);\n          }\n          modulesWithElidedImports.set(file2.path, false);\n          processImportedModules(file2);\n        } else if (file2 && modulesWithElidedImports.get(file2.path)) {\n          if (currentNodeModulesDepth < maxNodeModuleJsDepth) {\n            modulesWithElidedImports.set(file2.path, false);\n            processImportedModules(file2);\n          }\n        }\n        return file2 || void 0;\n      }\n      let redirectedPath;\n      if (isReferencedFile(reason) && !useSourceOfProjectReferenceRedirect) {\n        const redirectProject = getProjectReferenceRedirectProject(fileName);\n        if (redirectProject) {\n          if (outFile(redirectProject.commandLine.options)) {\n            return void 0;\n          }\n          const redirect = getProjectReferenceOutputName(redirectProject, fileName);\n          fileName = redirect;\n          redirectedPath = toPath3(redirect);\n        }\n      }\n      const sourceFileOptions = getCreateSourceFileOptions(fileName, moduleResolutionCache, host, options);\n      const file = host.getSourceFile(fileName, sourceFileOptions, (hostErrorMessage) => addFilePreprocessingFileExplainingDiagnostic(void 0, reason, Diagnostics.Cannot_read_file_0_Colon_1, [fileName, hostErrorMessage]), shouldCreateNewSourceFile || ((_a3 = oldProgram == null ? void 0 : oldProgram.getSourceFileByPath(toPath3(fileName))) == null ? void 0 : _a3.impliedNodeFormat) !== sourceFileOptions.impliedNodeFormat);\n      if (packageId) {\n        const packageIdKey = packageIdToString(packageId);\n        const fileFromPackageId = packageIdToSourceFile.get(packageIdKey);\n        if (fileFromPackageId) {\n          const dupFile = createRedirectedSourceFile(fileFromPackageId, file, fileName, path, toPath3(fileName), originalFileName, sourceFileOptions);\n          redirectTargetsMap.add(fileFromPackageId.path, fileName);\n          addFileToFilesByName(dupFile, path, redirectedPath);\n          addFileIncludeReason(dupFile, reason);\n          sourceFileToPackageName.set(path, packageIdToPackageName(packageId));\n          processingOtherFiles.push(dupFile);\n          return dupFile;\n        } else if (file) {\n          packageIdToSourceFile.set(packageIdKey, file);\n          sourceFileToPackageName.set(path, packageIdToPackageName(packageId));\n        }\n      }\n      addFileToFilesByName(file, path, redirectedPath);\n      if (file) {\n        sourceFilesFoundSearchingNodeModules.set(path, currentNodeModulesDepth > 0);\n        file.fileName = fileName;\n        file.path = path;\n        file.resolvedPath = toPath3(fileName);\n        file.originalFileName = originalFileName;\n        file.packageJsonLocations = ((_b2 = sourceFileOptions.packageJsonLocations) == null ? void 0 : _b2.length) ? sourceFileOptions.packageJsonLocations : void 0;\n        file.packageJsonScope = sourceFileOptions.packageJsonScope;\n        addFileIncludeReason(file, reason);\n        if (host.useCaseSensitiveFileNames()) {\n          const pathLowerCase = toFileNameLowerCase(path);\n          const existingFile = filesByNameIgnoreCase.get(pathLowerCase);\n          if (existingFile) {\n            reportFileNamesDifferOnlyInCasingError(fileName, existingFile, reason);\n          } else {\n            filesByNameIgnoreCase.set(pathLowerCase, file);\n          }\n        }\n        skipDefaultLib = skipDefaultLib || file.hasNoDefaultLib && !ignoreNoDefaultLib;\n        if (!options.noResolve) {\n          processReferencedFiles(file, isDefaultLib);\n          processTypeReferenceDirectives(file);\n        }\n        if (!options.noLib) {\n          processLibReferenceDirectives(file);\n        }\n        processImportedModules(file);\n        if (isDefaultLib) {\n          processingDefaultLibFiles.push(file);\n        } else {\n          processingOtherFiles.push(file);\n        }\n      }\n      return file;\n    }\n    function addFileIncludeReason(file, reason) {\n      if (file)\n        fileReasons.add(file.path, reason);\n    }\n    function addFileToFilesByName(file, path, redirectedPath) {\n      if (redirectedPath) {\n        filesByName.set(redirectedPath, file);\n        filesByName.set(path, file || false);\n      } else {\n        filesByName.set(path, file);\n      }\n    }\n    function getProjectReferenceRedirect(fileName) {\n      const referencedProject = getProjectReferenceRedirectProject(fileName);\n      return referencedProject && getProjectReferenceOutputName(referencedProject, fileName);\n    }\n    function getProjectReferenceRedirectProject(fileName) {\n      if (!resolvedProjectReferences || !resolvedProjectReferences.length || isDeclarationFileName(fileName) || fileExtensionIs(fileName, \".json\")) {\n        return void 0;\n      }\n      return getResolvedProjectReferenceToRedirect(fileName);\n    }\n    function getProjectReferenceOutputName(referencedProject, fileName) {\n      const out = outFile(referencedProject.commandLine.options);\n      return out ? changeExtension(out, \".d.ts\") : getOutputDeclarationFileName(fileName, referencedProject.commandLine, !host.useCaseSensitiveFileNames());\n    }\n    function getResolvedProjectReferenceToRedirect(fileName) {\n      if (mapFromFileToProjectReferenceRedirects === void 0) {\n        mapFromFileToProjectReferenceRedirects = /* @__PURE__ */ new Map();\n        forEachResolvedProjectReference2((referencedProject) => {\n          if (toPath3(options.configFilePath) !== referencedProject.sourceFile.path) {\n            referencedProject.commandLine.fileNames.forEach((f) => mapFromFileToProjectReferenceRedirects.set(toPath3(f), referencedProject.sourceFile.path));\n          }\n        });\n      }\n      const referencedProjectPath = mapFromFileToProjectReferenceRedirects.get(toPath3(fileName));\n      return referencedProjectPath && getResolvedProjectReferenceByPath(referencedProjectPath);\n    }\n    function forEachResolvedProjectReference2(cb) {\n      return forEachResolvedProjectReference(resolvedProjectReferences, cb);\n    }\n    function getSourceOfProjectReferenceRedirect(path) {\n      if (!isDeclarationFileName(path))\n        return void 0;\n      if (mapFromToProjectReferenceRedirectSource === void 0) {\n        mapFromToProjectReferenceRedirectSource = /* @__PURE__ */ new Map();\n        forEachResolvedProjectReference2((resolvedRef) => {\n          const out = outFile(resolvedRef.commandLine.options);\n          if (out) {\n            const outputDts = changeExtension(out, \".d.ts\");\n            mapFromToProjectReferenceRedirectSource.set(toPath3(outputDts), true);\n          } else {\n            const getCommonSourceDirectory3 = memoize(() => getCommonSourceDirectoryOfConfig(resolvedRef.commandLine, !host.useCaseSensitiveFileNames()));\n            forEach(resolvedRef.commandLine.fileNames, (fileName) => {\n              if (!isDeclarationFileName(fileName) && !fileExtensionIs(fileName, \".json\")) {\n                const outputDts = getOutputDeclarationFileName(fileName, resolvedRef.commandLine, !host.useCaseSensitiveFileNames(), getCommonSourceDirectory3);\n                mapFromToProjectReferenceRedirectSource.set(toPath3(outputDts), fileName);\n              }\n            });\n          }\n        });\n      }\n      return mapFromToProjectReferenceRedirectSource.get(path);\n    }\n    function isSourceOfProjectReferenceRedirect(fileName) {\n      return useSourceOfProjectReferenceRedirect && !!getResolvedProjectReferenceToRedirect(fileName);\n    }\n    function getResolvedProjectReferenceByPath(projectReferencePath) {\n      if (!projectReferenceRedirects) {\n        return void 0;\n      }\n      return projectReferenceRedirects.get(projectReferencePath) || void 0;\n    }\n    function processReferencedFiles(file, isDefaultLib) {\n      forEach(file.referencedFiles, (ref, index) => {\n        processSourceFile(resolveTripleslashReference(ref.fileName, file.fileName), isDefaultLib, false, void 0, { kind: 4, file: file.path, index });\n      });\n    }\n    function processTypeReferenceDirectives(file) {\n      const typeDirectives = file.typeReferenceDirectives;\n      if (!typeDirectives.length) {\n        file.resolvedTypeReferenceDirectiveNames = void 0;\n        return;\n      }\n      const resolutions = resolveTypeReferenceDirectiveNamesReusingOldState(typeDirectives, file);\n      for (let index = 0; index < typeDirectives.length; index++) {\n        const ref = file.typeReferenceDirectives[index];\n        const resolvedTypeReferenceDirective = resolutions[index];\n        const fileName = toFileNameLowerCase(ref.fileName);\n        setResolvedTypeReferenceDirective(file, fileName, resolvedTypeReferenceDirective, getModeForFileReference(ref, file.impliedNodeFormat));\n        const mode = ref.resolutionMode || file.impliedNodeFormat;\n        if (mode && getEmitModuleResolutionKind(options) !== 3 && getEmitModuleResolutionKind(options) !== 99) {\n          (fileProcessingDiagnostics != null ? fileProcessingDiagnostics : fileProcessingDiagnostics = []).push({\n            kind: 2,\n            diagnostics: [\n              createDiagnosticForRange(file, ref, Diagnostics.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)\n            ]\n          });\n        }\n        processTypeReferenceDirective(fileName, mode, resolvedTypeReferenceDirective, { kind: 5, file: file.path, index });\n      }\n    }\n    function processTypeReferenceDirective(typeReferenceDirective, mode, resolution, reason) {\n      var _a3, _b2;\n      (_a3 = tracing) == null ? void 0 : _a3.push(tracing.Phase.Program, \"processTypeReferenceDirective\", { directive: typeReferenceDirective, hasResolved: !!resolution.resolvedTypeReferenceDirective, refKind: reason.kind, refPath: isReferencedFile(reason) ? reason.file : void 0 });\n      processTypeReferenceDirectiveWorker(typeReferenceDirective, mode, resolution, reason);\n      (_b2 = tracing) == null ? void 0 : _b2.pop();\n    }\n    function processTypeReferenceDirectiveWorker(typeReferenceDirective, mode, resolution, reason) {\n      var _a3;\n      addResolutionDiagnostics(resolution);\n      const previousResolution = (_a3 = resolvedTypeReferenceDirectives.get(typeReferenceDirective, mode)) == null ? void 0 : _a3.resolvedTypeReferenceDirective;\n      if (previousResolution && previousResolution.primary) {\n        return;\n      }\n      let saveResolution = true;\n      const { resolvedTypeReferenceDirective } = resolution;\n      if (resolvedTypeReferenceDirective) {\n        if (resolvedTypeReferenceDirective.isExternalLibraryImport)\n          currentNodeModulesDepth++;\n        if (resolvedTypeReferenceDirective.primary) {\n          processSourceFile(resolvedTypeReferenceDirective.resolvedFileName, false, false, resolvedTypeReferenceDirective.packageId, reason);\n        } else {\n          if (previousResolution) {\n            if (resolvedTypeReferenceDirective.resolvedFileName !== previousResolution.resolvedFileName) {\n              const otherFileText = host.readFile(resolvedTypeReferenceDirective.resolvedFileName);\n              const existingFile = getSourceFile(previousResolution.resolvedFileName);\n              if (otherFileText !== existingFile.text) {\n                addFilePreprocessingFileExplainingDiagnostic(existingFile, reason, Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict, [typeReferenceDirective, resolvedTypeReferenceDirective.resolvedFileName, previousResolution.resolvedFileName]);\n              }\n            }\n            saveResolution = false;\n          } else {\n            processSourceFile(resolvedTypeReferenceDirective.resolvedFileName, false, false, resolvedTypeReferenceDirective.packageId, reason);\n          }\n        }\n        if (resolvedTypeReferenceDirective.isExternalLibraryImport)\n          currentNodeModulesDepth--;\n      } else {\n        addFilePreprocessingFileExplainingDiagnostic(void 0, reason, Diagnostics.Cannot_find_type_definition_file_for_0, [typeReferenceDirective]);\n      }\n      if (saveResolution) {\n        resolvedTypeReferenceDirectives.set(typeReferenceDirective, mode, resolution);\n      }\n    }\n    function pathForLibFile(libFileName) {\n      const components = libFileName.split(\".\");\n      let path = components[1];\n      let i = 2;\n      while (components[i] && components[i] !== \"d\") {\n        path += (i === 2 ? \"/\" : \"-\") + components[i];\n        i++;\n      }\n      const resolveFrom = combinePaths(currentDirectory, `__lib_node_modules_lookup_${libFileName}__.ts`);\n      const localOverrideModuleResult = resolveModuleName(\"@typescript/lib-\" + path, resolveFrom, { moduleResolution: 2 }, host, moduleResolutionCache);\n      if (localOverrideModuleResult == null ? void 0 : localOverrideModuleResult.resolvedModule) {\n        return localOverrideModuleResult.resolvedModule.resolvedFileName;\n      }\n      return combinePaths(defaultLibraryPath, libFileName);\n    }\n    function processLibReferenceDirectives(file) {\n      forEach(file.libReferenceDirectives, (libReference, index) => {\n        const libName = toFileNameLowerCase(libReference.fileName);\n        const libFileName = libMap.get(libName);\n        if (libFileName) {\n          processRootFile(pathForLibFile(libFileName), true, true, { kind: 7, file: file.path, index });\n        } else {\n          const unqualifiedLibName = removeSuffix(removePrefix(libName, \"lib.\"), \".d.ts\");\n          const suggestion = getSpellingSuggestion(unqualifiedLibName, libs, identity);\n          const diagnostic = suggestion ? Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1 : Diagnostics.Cannot_find_lib_definition_for_0;\n          (fileProcessingDiagnostics || (fileProcessingDiagnostics = [])).push({\n            kind: 0,\n            reason: { kind: 7, file: file.path, index },\n            diagnostic,\n            args: [libName, suggestion]\n          });\n        }\n      });\n    }\n    function getCanonicalFileName(fileName) {\n      return host.getCanonicalFileName(fileName);\n    }\n    function processImportedModules(file) {\n      var _a3;\n      collectExternalModuleReferences(file);\n      if (file.imports.length || file.moduleAugmentations.length) {\n        const moduleNames = getModuleNames(file);\n        const resolutions = resolveModuleNamesReusingOldState(moduleNames, file);\n        Debug.assert(resolutions.length === moduleNames.length);\n        const optionsForFile = (useSourceOfProjectReferenceRedirect ? (_a3 = getRedirectReferenceForResolution(file)) == null ? void 0 : _a3.commandLine.options : void 0) || options;\n        for (let index = 0; index < moduleNames.length; index++) {\n          const resolution = resolutions[index].resolvedModule;\n          const moduleName = moduleNames[index].text;\n          const mode = getModeForUsageLocation(file, moduleNames[index]);\n          setResolvedModule(file, moduleName, resolutions[index], mode);\n          addResolutionDiagnosticsFromResolutionOrCache(file, moduleName, resolutions[index], mode);\n          if (!resolution) {\n            continue;\n          }\n          const isFromNodeModulesSearch = resolution.isExternalLibraryImport;\n          const isJsFile = !resolutionExtensionIsTSOrJson(resolution.extension);\n          const isJsFileFromNodeModules = isFromNodeModulesSearch && isJsFile;\n          const resolvedFileName = resolution.resolvedFileName;\n          if (isFromNodeModulesSearch) {\n            currentNodeModulesDepth++;\n          }\n          const elideImport = isJsFileFromNodeModules && currentNodeModulesDepth > maxNodeModuleJsDepth;\n          const shouldAddFile = resolvedFileName && !getResolutionDiagnostic(optionsForFile, resolution, file) && !optionsForFile.noResolve && index < file.imports.length && !elideImport && !(isJsFile && !getAllowJSCompilerOption(optionsForFile)) && (isInJSFile(file.imports[index]) || !(file.imports[index].flags & 8388608));\n          if (elideImport) {\n            modulesWithElidedImports.set(file.path, true);\n          } else if (shouldAddFile) {\n            findSourceFile(resolvedFileName, false, false, { kind: 3, file: file.path, index }, resolution.packageId);\n          }\n          if (isFromNodeModulesSearch) {\n            currentNodeModulesDepth--;\n          }\n        }\n      } else {\n        file.resolvedModules = void 0;\n      }\n    }\n    function checkSourceFilesBelongToPath(sourceFiles, rootDirectory) {\n      let allFilesBelongToPath = true;\n      const absoluteRootDirectoryPath = host.getCanonicalFileName(getNormalizedAbsolutePath(rootDirectory, currentDirectory));\n      for (const sourceFile of sourceFiles) {\n        if (!sourceFile.isDeclarationFile) {\n          const absoluteSourceFilePath = host.getCanonicalFileName(getNormalizedAbsolutePath(sourceFile.fileName, currentDirectory));\n          if (absoluteSourceFilePath.indexOf(absoluteRootDirectoryPath) !== 0) {\n            addProgramDiagnosticExplainingFile(sourceFile, Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files, [sourceFile.fileName, rootDirectory]);\n            allFilesBelongToPath = false;\n          }\n        }\n      }\n      return allFilesBelongToPath;\n    }\n    function parseProjectReferenceConfigFile(ref) {\n      if (!projectReferenceRedirects) {\n        projectReferenceRedirects = /* @__PURE__ */ new Map();\n      }\n      const refPath = resolveProjectReferencePath(ref);\n      const sourceFilePath = toPath3(refPath);\n      const fromCache = projectReferenceRedirects.get(sourceFilePath);\n      if (fromCache !== void 0) {\n        return fromCache || void 0;\n      }\n      let commandLine;\n      let sourceFile;\n      if (host.getParsedCommandLine) {\n        commandLine = host.getParsedCommandLine(refPath);\n        if (!commandLine) {\n          addFileToFilesByName(void 0, sourceFilePath, void 0);\n          projectReferenceRedirects.set(sourceFilePath, false);\n          return void 0;\n        }\n        sourceFile = Debug.checkDefined(commandLine.options.configFile);\n        Debug.assert(!sourceFile.path || sourceFile.path === sourceFilePath);\n        addFileToFilesByName(sourceFile, sourceFilePath, void 0);\n      } else {\n        const basePath = getNormalizedAbsolutePath(getDirectoryPath(refPath), host.getCurrentDirectory());\n        sourceFile = host.getSourceFile(refPath, 100);\n        addFileToFilesByName(sourceFile, sourceFilePath, void 0);\n        if (sourceFile === void 0) {\n          projectReferenceRedirects.set(sourceFilePath, false);\n          return void 0;\n        }\n        commandLine = parseJsonSourceFileConfigFileContent(sourceFile, configParsingHost, basePath, void 0, refPath);\n      }\n      sourceFile.fileName = refPath;\n      sourceFile.path = sourceFilePath;\n      sourceFile.resolvedPath = sourceFilePath;\n      sourceFile.originalFileName = refPath;\n      const resolvedRef = { commandLine, sourceFile };\n      projectReferenceRedirects.set(sourceFilePath, resolvedRef);\n      if (commandLine.projectReferences) {\n        resolvedRef.references = commandLine.projectReferences.map(parseProjectReferenceConfigFile);\n      }\n      return resolvedRef;\n    }\n    function verifyCompilerOptions() {\n      if (options.strictPropertyInitialization && !getStrictOptionValue(options, \"strictNullChecks\")) {\n        createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, \"strictPropertyInitialization\", \"strictNullChecks\");\n      }\n      if (options.exactOptionalPropertyTypes && !getStrictOptionValue(options, \"strictNullChecks\")) {\n        createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, \"exactOptionalPropertyTypes\", \"strictNullChecks\");\n      }\n      if (options.isolatedModules || options.verbatimModuleSyntax) {\n        if (options.out) {\n          createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, \"out\", options.verbatimModuleSyntax ? \"verbatimModuleSyntax\" : \"isolatedModules\");\n        }\n        if (options.outFile) {\n          createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, \"outFile\", options.verbatimModuleSyntax ? \"verbatimModuleSyntax\" : \"isolatedModules\");\n        }\n      }\n      if (options.inlineSourceMap) {\n        if (options.sourceMap) {\n          createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, \"sourceMap\", \"inlineSourceMap\");\n        }\n        if (options.mapRoot) {\n          createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, \"mapRoot\", \"inlineSourceMap\");\n        }\n      }\n      if (options.composite) {\n        if (options.declaration === false) {\n          createDiagnosticForOptionName(Diagnostics.Composite_projects_may_not_disable_declaration_emit, \"declaration\");\n        }\n        if (options.incremental === false) {\n          createDiagnosticForOptionName(Diagnostics.Composite_projects_may_not_disable_incremental_compilation, \"declaration\");\n        }\n      }\n      const outputFile = outFile(options);\n      if (options.tsBuildInfoFile) {\n        if (!isIncrementalCompilation(options)) {\n          createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, \"tsBuildInfoFile\", \"incremental\", \"composite\");\n        }\n      } else if (options.incremental && !outputFile && !options.configFilePath) {\n        programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));\n      }\n      verifyDeprecatedCompilerOptions();\n      verifyProjectReferences();\n      if (options.composite) {\n        const rootPaths = new Set(rootNames.map(toPath3));\n        for (const file of files) {\n          if (sourceFileMayBeEmitted(file, program) && !rootPaths.has(file.path)) {\n            addProgramDiagnosticExplainingFile(file, Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern, [file.fileName, options.configFilePath || \"\"]);\n          }\n        }\n      }\n      if (options.paths) {\n        for (const key in options.paths) {\n          if (!hasProperty(options.paths, key)) {\n            continue;\n          }\n          if (!hasZeroOrOneAsteriskCharacter(key)) {\n            createDiagnosticForOptionPaths(true, key, Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character, key);\n          }\n          if (isArray(options.paths[key])) {\n            const len = options.paths[key].length;\n            if (len === 0) {\n              createDiagnosticForOptionPaths(false, key, Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array, key);\n            }\n            for (let i = 0; i < len; i++) {\n              const subst = options.paths[key][i];\n              const typeOfSubst = typeof subst;\n              if (typeOfSubst === \"string\") {\n                if (!hasZeroOrOneAsteriskCharacter(subst)) {\n                  createDiagnosticForOptionPathKeyValue(key, i, Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character, subst, key);\n                }\n                if (!options.baseUrl && !pathIsRelative(subst) && !pathIsAbsolute(subst)) {\n                  createDiagnosticForOptionPathKeyValue(key, i, Diagnostics.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash);\n                }\n              } else {\n                createDiagnosticForOptionPathKeyValue(key, i, Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2, subst, key, typeOfSubst);\n              }\n            }\n          } else {\n            createDiagnosticForOptionPaths(false, key, Diagnostics.Substitutions_for_pattern_0_should_be_an_array, key);\n          }\n        }\n      }\n      if (!options.sourceMap && !options.inlineSourceMap) {\n        if (options.inlineSources) {\n          createDiagnosticForOptionName(Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided, \"inlineSources\");\n        }\n        if (options.sourceRoot) {\n          createDiagnosticForOptionName(Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided, \"sourceRoot\");\n        }\n      }\n      if (options.out && options.outFile) {\n        createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, \"out\", \"outFile\");\n      }\n      if (options.mapRoot && !(options.sourceMap || options.declarationMap)) {\n        createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, \"mapRoot\", \"sourceMap\", \"declarationMap\");\n      }\n      if (options.declarationDir) {\n        if (!getEmitDeclarations(options)) {\n          createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, \"declarationDir\", \"declaration\", \"composite\");\n        }\n        if (outputFile) {\n          createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, \"declarationDir\", options.out ? \"out\" : \"outFile\");\n        }\n      }\n      if (options.declarationMap && !getEmitDeclarations(options)) {\n        createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, \"declarationMap\", \"declaration\", \"composite\");\n      }\n      if (options.lib && options.noLib) {\n        createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, \"lib\", \"noLib\");\n      }\n      if (options.noImplicitUseStrict && getStrictOptionValue(options, \"alwaysStrict\")) {\n        createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, \"noImplicitUseStrict\", \"alwaysStrict\");\n      }\n      const languageVersion = getEmitScriptTarget(options);\n      const firstNonAmbientExternalModuleSourceFile = find(files, (f) => isExternalModule(f) && !f.isDeclarationFile);\n      if (options.isolatedModules || options.verbatimModuleSyntax) {\n        if (options.module === 0 && languageVersion < 2 && options.isolatedModules) {\n          createDiagnosticForOptionName(Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher, \"isolatedModules\", \"target\");\n        }\n        if (options.preserveConstEnums === false) {\n          createDiagnosticForOptionName(Diagnostics.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled, options.verbatimModuleSyntax ? \"verbatimModuleSyntax\" : \"isolatedModules\", \"preserveConstEnums\");\n        }\n      } else if (firstNonAmbientExternalModuleSourceFile && languageVersion < 2 && options.module === 0) {\n        const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === \"boolean\" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);\n        programDiagnostics.add(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none));\n      }\n      if (outputFile && !options.emitDeclarationOnly) {\n        if (options.module && !(options.module === 2 || options.module === 4)) {\n          createDiagnosticForOptionName(Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0, options.out ? \"out\" : \"outFile\", \"module\");\n        } else if (options.module === void 0 && firstNonAmbientExternalModuleSourceFile) {\n          const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === \"boolean\" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);\n          programDiagnostics.add(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system, options.out ? \"out\" : \"outFile\"));\n        }\n      }\n      if (getResolveJsonModule(options)) {\n        if (getEmitModuleResolutionKind(options) === 1) {\n          createDiagnosticForOptionName(Diagnostics.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic, \"resolveJsonModule\");\n        } else if (!hasJsonModuleEmitEnabled(options)) {\n          createDiagnosticForOptionName(Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext, \"resolveJsonModule\", \"module\");\n        }\n      }\n      if (options.outDir || options.rootDir || options.sourceRoot || options.mapRoot) {\n        const dir = getCommonSourceDirectory2();\n        if (options.outDir && dir === \"\" && files.some((file) => getRootLength(file.fileName) > 1)) {\n          createDiagnosticForOptionName(Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files, \"outDir\");\n        }\n      }\n      if (options.useDefineForClassFields && languageVersion === 0) {\n        createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3, \"useDefineForClassFields\");\n      }\n      if (options.checkJs && !getAllowJSCompilerOption(options)) {\n        programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, \"checkJs\", \"allowJs\"));\n      }\n      if (options.emitDeclarationOnly) {\n        if (!getEmitDeclarations(options)) {\n          createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, \"emitDeclarationOnly\", \"declaration\", \"composite\");\n        }\n        if (options.noEmit) {\n          createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, \"emitDeclarationOnly\", \"noEmit\");\n        }\n      }\n      if (options.emitDecoratorMetadata && !options.experimentalDecorators) {\n        createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, \"emitDecoratorMetadata\", \"experimentalDecorators\");\n      }\n      if (options.jsxFactory) {\n        if (options.reactNamespace) {\n          createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, \"reactNamespace\", \"jsxFactory\");\n        }\n        if (options.jsx === 4 || options.jsx === 5) {\n          createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1, \"jsxFactory\", inverseJsxOptionMap.get(\"\" + options.jsx));\n        }\n        if (!parseIsolatedEntityName(options.jsxFactory, languageVersion)) {\n          createOptionValueDiagnostic(\"jsxFactory\", Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name, options.jsxFactory);\n        }\n      } else if (options.reactNamespace && !isIdentifierText(options.reactNamespace, languageVersion)) {\n        createOptionValueDiagnostic(\"reactNamespace\", Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier, options.reactNamespace);\n      }\n      if (options.jsxFragmentFactory) {\n        if (!options.jsxFactory) {\n          createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, \"jsxFragmentFactory\", \"jsxFactory\");\n        }\n        if (options.jsx === 4 || options.jsx === 5) {\n          createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1, \"jsxFragmentFactory\", inverseJsxOptionMap.get(\"\" + options.jsx));\n        }\n        if (!parseIsolatedEntityName(options.jsxFragmentFactory, languageVersion)) {\n          createOptionValueDiagnostic(\"jsxFragmentFactory\", Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name, options.jsxFragmentFactory);\n        }\n      }\n      if (options.reactNamespace) {\n        if (options.jsx === 4 || options.jsx === 5) {\n          createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1, \"reactNamespace\", inverseJsxOptionMap.get(\"\" + options.jsx));\n        }\n      }\n      if (options.jsxImportSource) {\n        if (options.jsx === 2) {\n          createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1, \"jsxImportSource\", inverseJsxOptionMap.get(\"\" + options.jsx));\n        }\n      }\n      if (options.preserveValueImports && getEmitModuleKind(options) < 5) {\n        createDiagnosticForOptionName(Diagnostics.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later, \"preserveValueImports\");\n      }\n      const moduleKind = getEmitModuleKind(options);\n      if (options.verbatimModuleSyntax) {\n        if (moduleKind === 2 || moduleKind === 3 || moduleKind === 4) {\n          createDiagnosticForOptionName(Diagnostics.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System, \"verbatimModuleSyntax\");\n        }\n        if (options.isolatedModules) {\n          createRedundantOptionDiagnostic(\"isolatedModules\", \"verbatimModuleSyntax\");\n        }\n        if (options.preserveValueImports) {\n          createRedundantOptionDiagnostic(\"preserveValueImports\", \"verbatimModuleSyntax\");\n        }\n        if (options.importsNotUsedAsValues) {\n          createRedundantOptionDiagnostic(\"importsNotUsedAsValues\", \"verbatimModuleSyntax\");\n        }\n      }\n      if (options.allowImportingTsExtensions && !(options.noEmit || options.emitDeclarationOnly)) {\n        createOptionValueDiagnostic(\"allowImportingTsExtensions\", Diagnostics.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);\n      }\n      const moduleResolution = getEmitModuleResolutionKind(options);\n      if (options.resolvePackageJsonExports && !moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {\n        createDiagnosticForOptionName(Diagnostics.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler, \"resolvePackageJsonExports\");\n      }\n      if (options.resolvePackageJsonImports && !moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {\n        createDiagnosticForOptionName(Diagnostics.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler, \"resolvePackageJsonImports\");\n      }\n      if (options.customConditions && !moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {\n        createDiagnosticForOptionName(Diagnostics.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler, \"customConditions\");\n      }\n      if (moduleResolution === 100 && !emitModuleKindIsNonNodeESM(moduleKind)) {\n        createOptionValueDiagnostic(\"moduleResolution\", Diagnostics.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later, \"bundler\");\n      }\n      if (!options.noEmit && !options.suppressOutputPathCheck) {\n        const emitHost = getEmitHost();\n        const emitFilesSeen = /* @__PURE__ */ new Set();\n        forEachEmittedFile(emitHost, (emitFileNames) => {\n          if (!options.emitDeclarationOnly) {\n            verifyEmitFilePath(emitFileNames.jsFilePath, emitFilesSeen);\n          }\n          verifyEmitFilePath(emitFileNames.declarationFilePath, emitFilesSeen);\n        });\n      }\n      function verifyEmitFilePath(emitFileName, emitFilesSeen) {\n        if (emitFileName) {\n          const emitFilePath = toPath3(emitFileName);\n          if (filesByName.has(emitFilePath)) {\n            let chain;\n            if (!options.configFilePath) {\n              chain = chainDiagnosticMessages(void 0, Diagnostics.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig);\n            }\n            chain = chainDiagnosticMessages(chain, Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file, emitFileName);\n            blockEmittingOfFile(emitFileName, createCompilerDiagnosticFromMessageChain(chain));\n          }\n          const emitFileKey = !host.useCaseSensitiveFileNames() ? toFileNameLowerCase(emitFilePath) : emitFilePath;\n          if (emitFilesSeen.has(emitFileKey)) {\n            blockEmittingOfFile(emitFileName, createCompilerDiagnostic(Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files, emitFileName));\n          } else {\n            emitFilesSeen.add(emitFileKey);\n          }\n        }\n      }\n    }\n    function getIgnoreDeprecationsVersion() {\n      const ignoreDeprecations = options.ignoreDeprecations;\n      if (ignoreDeprecations) {\n        if (ignoreDeprecations === \"5.0\") {\n          return new Version(ignoreDeprecations);\n        }\n        reportInvalidIgnoreDeprecations();\n      }\n      return Version.zero;\n    }\n    function checkDeprecations(deprecatedIn, removedIn, createDiagnostic, fn) {\n      const deprecatedInVersion = new Version(deprecatedIn);\n      const removedInVersion = new Version(removedIn);\n      const typescriptVersion = new Version(typeScriptVersion3 || versionMajorMinor);\n      const ignoreDeprecationsVersion = getIgnoreDeprecationsVersion();\n      const mustBeRemoved = !(removedInVersion.compareTo(typescriptVersion) === 1);\n      const canBeSilenced = !mustBeRemoved && ignoreDeprecationsVersion.compareTo(deprecatedInVersion) === -1;\n      if (mustBeRemoved || canBeSilenced) {\n        fn((name, value, useInstead) => {\n          if (mustBeRemoved) {\n            if (value === void 0) {\n              createDiagnostic(name, value, useInstead, Diagnostics.Option_0_has_been_removed_Please_remove_it_from_your_configuration, name);\n            } else {\n              createDiagnostic(name, value, useInstead, Diagnostics.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration, name, value);\n            }\n          } else {\n            if (value === void 0) {\n              createDiagnostic(name, value, useInstead, Diagnostics.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error, name, removedIn, deprecatedIn);\n            } else {\n              createDiagnostic(name, value, useInstead, Diagnostics.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error, name, value, removedIn, deprecatedIn);\n            }\n          }\n        });\n      }\n    }\n    function verifyDeprecatedCompilerOptions() {\n      function createDiagnostic(name, value, useInstead, message, arg0, arg1, arg2, arg3) {\n        if (useInstead) {\n          const details = chainDiagnosticMessages(void 0, Diagnostics.Use_0_instead, useInstead);\n          const chain = chainDiagnosticMessages(details, message, arg0, arg1, arg2, arg3);\n          createDiagnosticForOption(!value, name, void 0, chain);\n        } else {\n          createDiagnosticForOption(!value, name, void 0, message, arg0, arg1, arg2, arg3);\n        }\n      }\n      checkDeprecations(\"5.0\", \"5.5\", createDiagnostic, (createDeprecatedDiagnostic) => {\n        if (options.target === 0) {\n          createDeprecatedDiagnostic(\"target\", \"ES3\");\n        }\n        if (options.noImplicitUseStrict) {\n          createDeprecatedDiagnostic(\"noImplicitUseStrict\");\n        }\n        if (options.keyofStringsOnly) {\n          createDeprecatedDiagnostic(\"keyofStringsOnly\");\n        }\n        if (options.suppressExcessPropertyErrors) {\n          createDeprecatedDiagnostic(\"suppressExcessPropertyErrors\");\n        }\n        if (options.suppressImplicitAnyIndexErrors) {\n          createDeprecatedDiagnostic(\"suppressImplicitAnyIndexErrors\");\n        }\n        if (options.noStrictGenericChecks) {\n          createDeprecatedDiagnostic(\"noStrictGenericChecks\");\n        }\n        if (options.charset) {\n          createDeprecatedDiagnostic(\"charset\");\n        }\n        if (options.out) {\n          createDeprecatedDiagnostic(\"out\", void 0, \"outFile\");\n        }\n        if (options.importsNotUsedAsValues) {\n          createDeprecatedDiagnostic(\"importsNotUsedAsValues\", void 0, \"verbatimModuleSyntax\");\n        }\n        if (options.preserveValueImports) {\n          createDeprecatedDiagnostic(\"preserveValueImports\", void 0, \"verbatimModuleSyntax\");\n        }\n      });\n    }\n    function verifyDeprecatedProjectReference(ref, parentFile, index) {\n      function createDiagnostic(_name, _value, _useInstead, message, arg0, arg1, arg2, arg3) {\n        createDiagnosticForReference(parentFile, index, message, arg0, arg1, arg2, arg3);\n      }\n      checkDeprecations(\"5.0\", \"5.5\", createDiagnostic, (createDeprecatedDiagnostic) => {\n        if (ref.prepend) {\n          createDeprecatedDiagnostic(\"prepend\");\n        }\n      });\n    }\n    function createDiagnosticExplainingFile(file, fileProcessingReason, diagnostic, args) {\n      var _a3;\n      let fileIncludeReasons;\n      let relatedInfo;\n      let locationReason = isReferencedFile(fileProcessingReason) ? fileProcessingReason : void 0;\n      if (file)\n        (_a3 = fileReasons.get(file.path)) == null ? void 0 : _a3.forEach(processReason);\n      if (fileProcessingReason)\n        processReason(fileProcessingReason);\n      if (locationReason && (fileIncludeReasons == null ? void 0 : fileIncludeReasons.length) === 1)\n        fileIncludeReasons = void 0;\n      const location = locationReason && getReferencedFileLocation(getSourceFileByPath, locationReason);\n      const fileIncludeReasonDetails = fileIncludeReasons && chainDiagnosticMessages(fileIncludeReasons, Diagnostics.The_file_is_in_the_program_because_Colon);\n      const redirectInfo = file && explainIfFileIsRedirectAndImpliedFormat(file);\n      const chain = chainDiagnosticMessages(redirectInfo ? fileIncludeReasonDetails ? [fileIncludeReasonDetails, ...redirectInfo] : redirectInfo : fileIncludeReasonDetails, diagnostic, ...args || emptyArray);\n      return location && isReferenceFileLocation(location) ? createFileDiagnosticFromMessageChain(location.file, location.pos, location.end - location.pos, chain, relatedInfo) : createCompilerDiagnosticFromMessageChain(chain, relatedInfo);\n      function processReason(reason) {\n        (fileIncludeReasons || (fileIncludeReasons = [])).push(fileIncludeReasonToDiagnostics(program, reason));\n        if (!locationReason && isReferencedFile(reason)) {\n          locationReason = reason;\n        } else if (locationReason !== reason) {\n          relatedInfo = append(relatedInfo, fileIncludeReasonToRelatedInformation(reason));\n        }\n        if (reason === fileProcessingReason)\n          fileProcessingReason = void 0;\n      }\n    }\n    function addFilePreprocessingFileExplainingDiagnostic(file, fileProcessingReason, diagnostic, args) {\n      (fileProcessingDiagnostics || (fileProcessingDiagnostics = [])).push({\n        kind: 1,\n        file: file && file.path,\n        fileProcessingReason,\n        diagnostic,\n        args\n      });\n    }\n    function addProgramDiagnosticExplainingFile(file, diagnostic, args) {\n      programDiagnostics.add(createDiagnosticExplainingFile(file, void 0, diagnostic, args));\n    }\n    function fileIncludeReasonToRelatedInformation(reason) {\n      if (isReferencedFile(reason)) {\n        const referenceLocation = getReferencedFileLocation(getSourceFileByPath, reason);\n        let message2;\n        switch (reason.kind) {\n          case 3:\n            message2 = Diagnostics.File_is_included_via_import_here;\n            break;\n          case 4:\n            message2 = Diagnostics.File_is_included_via_reference_here;\n            break;\n          case 5:\n            message2 = Diagnostics.File_is_included_via_type_library_reference_here;\n            break;\n          case 7:\n            message2 = Diagnostics.File_is_included_via_library_reference_here;\n            break;\n          default:\n            Debug.assertNever(reason);\n        }\n        return isReferenceFileLocation(referenceLocation) ? createFileDiagnostic(referenceLocation.file, referenceLocation.pos, referenceLocation.end - referenceLocation.pos, message2) : void 0;\n      }\n      if (!options.configFile)\n        return void 0;\n      let configFileNode;\n      let message;\n      switch (reason.kind) {\n        case 0:\n          if (!options.configFile.configFileSpecs)\n            return void 0;\n          const fileName = getNormalizedAbsolutePath(rootNames[reason.index], currentDirectory);\n          const matchedByFiles = getMatchedFileSpec(program, fileName);\n          if (matchedByFiles) {\n            configFileNode = getTsConfigPropArrayElementValue(options.configFile, \"files\", matchedByFiles);\n            message = Diagnostics.File_is_matched_by_files_list_specified_here;\n            break;\n          }\n          const matchedByInclude = getMatchedIncludeSpec(program, fileName);\n          if (!matchedByInclude || !isString(matchedByInclude))\n            return void 0;\n          configFileNode = getTsConfigPropArrayElementValue(options.configFile, \"include\", matchedByInclude);\n          message = Diagnostics.File_is_matched_by_include_pattern_specified_here;\n          break;\n        case 1:\n        case 2:\n          const referencedResolvedRef = Debug.checkDefined(resolvedProjectReferences == null ? void 0 : resolvedProjectReferences[reason.index]);\n          const referenceInfo = forEachProjectReference(projectReferences, resolvedProjectReferences, (resolvedRef, parent2, index2) => resolvedRef === referencedResolvedRef ? { sourceFile: (parent2 == null ? void 0 : parent2.sourceFile) || options.configFile, index: index2 } : void 0);\n          if (!referenceInfo)\n            return void 0;\n          const { sourceFile, index } = referenceInfo;\n          const referencesSyntax = firstDefined(getTsConfigPropArray(sourceFile, \"references\"), (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0);\n          return referencesSyntax && referencesSyntax.elements.length > index ? createDiagnosticForNodeInSourceFile(sourceFile, referencesSyntax.elements[index], reason.kind === 2 ? Diagnostics.File_is_output_from_referenced_project_specified_here : Diagnostics.File_is_source_from_referenced_project_specified_here) : void 0;\n        case 8:\n          if (!options.types)\n            return void 0;\n          configFileNode = getOptionsSyntaxByArrayElementValue(\"types\", reason.typeReference);\n          message = Diagnostics.File_is_entry_point_of_type_library_specified_here;\n          break;\n        case 6:\n          if (reason.index !== void 0) {\n            configFileNode = getOptionsSyntaxByArrayElementValue(\"lib\", options.lib[reason.index]);\n            message = Diagnostics.File_is_library_specified_here;\n            break;\n          }\n          const target = forEachEntry(targetOptionDeclaration.type, (value, key) => value === getEmitScriptTarget(options) ? key : void 0);\n          configFileNode = target ? getOptionsSyntaxByValue(\"target\", target) : void 0;\n          message = Diagnostics.File_is_default_library_for_target_specified_here;\n          break;\n        default:\n          Debug.assertNever(reason);\n      }\n      return configFileNode && createDiagnosticForNodeInSourceFile(options.configFile, configFileNode, message);\n    }\n    function verifyProjectReferences() {\n      const buildInfoPath = !options.suppressOutputPathCheck ? getTsBuildInfoEmitOutputFilePath(options) : void 0;\n      forEachProjectReference(projectReferences, resolvedProjectReferences, (resolvedRef, parent2, index) => {\n        const ref = (parent2 ? parent2.commandLine.projectReferences : projectReferences)[index];\n        const parentFile = parent2 && parent2.sourceFile;\n        verifyDeprecatedProjectReference(ref, parentFile, index);\n        if (!resolvedRef) {\n          createDiagnosticForReference(parentFile, index, Diagnostics.File_0_not_found, ref.path);\n          return;\n        }\n        const options2 = resolvedRef.commandLine.options;\n        if (!options2.composite || options2.noEmit) {\n          const inputs = parent2 ? parent2.commandLine.fileNames : rootNames;\n          if (inputs.length) {\n            if (!options2.composite)\n              createDiagnosticForReference(parentFile, index, Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true, ref.path);\n            if (options2.noEmit)\n              createDiagnosticForReference(parentFile, index, Diagnostics.Referenced_project_0_may_not_disable_emit, ref.path);\n          }\n        }\n        if (ref.prepend) {\n          const out = outFile(options2);\n          if (out) {\n            if (!host.fileExists(out)) {\n              createDiagnosticForReference(parentFile, index, Diagnostics.Output_file_0_from_project_1_does_not_exist, out, ref.path);\n            }\n          } else {\n            createDiagnosticForReference(parentFile, index, Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set, ref.path);\n          }\n        }\n        if (!parent2 && buildInfoPath && buildInfoPath === getTsBuildInfoEmitOutputFilePath(options2)) {\n          createDiagnosticForReference(parentFile, index, Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1, buildInfoPath, ref.path);\n          hasEmitBlockingDiagnostics.set(toPath3(buildInfoPath), true);\n        }\n      });\n    }\n    function createDiagnosticForOptionPathKeyValue(key, valueIndex, message, arg0, arg1, arg2) {\n      let needCompilerDiagnostic = true;\n      const pathsSyntax = getOptionPathsSyntax();\n      for (const pathProp of pathsSyntax) {\n        if (isObjectLiteralExpression(pathProp.initializer)) {\n          for (const keyProps of getPropertyAssignment(pathProp.initializer, key)) {\n            const initializer = keyProps.initializer;\n            if (isArrayLiteralExpression(initializer) && initializer.elements.length > valueIndex) {\n              programDiagnostics.add(createDiagnosticForNodeInSourceFile(options.configFile, initializer.elements[valueIndex], message, arg0, arg1, arg2));\n              needCompilerDiagnostic = false;\n            }\n          }\n        }\n      }\n      if (needCompilerDiagnostic) {\n        programDiagnostics.add(createCompilerDiagnostic(message, arg0, arg1, arg2));\n      }\n    }\n    function createDiagnosticForOptionPaths(onKey, key, message, arg0) {\n      let needCompilerDiagnostic = true;\n      const pathsSyntax = getOptionPathsSyntax();\n      for (const pathProp of pathsSyntax) {\n        if (isObjectLiteralExpression(pathProp.initializer) && createOptionDiagnosticInObjectLiteralSyntax(pathProp.initializer, onKey, key, void 0, message, arg0)) {\n          needCompilerDiagnostic = false;\n        }\n      }\n      if (needCompilerDiagnostic) {\n        programDiagnostics.add(createCompilerDiagnostic(message, arg0));\n      }\n    }\n    function getOptionsSyntaxByName(name) {\n      const compilerOptionsObjectLiteralSyntax = getCompilerOptionsObjectLiteralSyntax();\n      return compilerOptionsObjectLiteralSyntax && getPropertyAssignment(compilerOptionsObjectLiteralSyntax, name);\n    }\n    function getOptionPathsSyntax() {\n      return getOptionsSyntaxByName(\"paths\") || emptyArray;\n    }\n    function getOptionsSyntaxByValue(name, value) {\n      const syntaxByName = getOptionsSyntaxByName(name);\n      return syntaxByName && firstDefined(syntaxByName, (property) => isStringLiteral(property.initializer) && property.initializer.text === value ? property.initializer : void 0);\n    }\n    function getOptionsSyntaxByArrayElementValue(name, value) {\n      const compilerOptionsObjectLiteralSyntax = getCompilerOptionsObjectLiteralSyntax();\n      return compilerOptionsObjectLiteralSyntax && getPropertyArrayElementValue(compilerOptionsObjectLiteralSyntax, name, value);\n    }\n    function createDiagnosticForOptionName(message, option1, option2, option3) {\n      createDiagnosticForOption(true, option1, option2, message, option1, option2, option3);\n    }\n    function createOptionValueDiagnostic(option1, message, arg0, arg1) {\n      createDiagnosticForOption(false, option1, void 0, message, arg0, arg1);\n    }\n    function createDiagnosticForReference(sourceFile, index, message, arg0, arg1, arg2, arg3) {\n      const referencesSyntax = firstDefined(getTsConfigPropArray(sourceFile || options.configFile, \"references\"), (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0);\n      if (referencesSyntax && referencesSyntax.elements.length > index) {\n        programDiagnostics.add(createDiagnosticForNodeInSourceFile(sourceFile || options.configFile, referencesSyntax.elements[index], message, arg0, arg1, arg2, arg3));\n      } else {\n        programDiagnostics.add(createCompilerDiagnostic(message, arg0, arg1, arg2, arg3));\n      }\n    }\n    function createDiagnosticForOption(onKey, option1, option2, message, arg0, arg1, arg2, arg3) {\n      const compilerOptionsObjectLiteralSyntax = getCompilerOptionsObjectLiteralSyntax();\n      const needCompilerDiagnostic = !compilerOptionsObjectLiteralSyntax || !createOptionDiagnosticInObjectLiteralSyntax(compilerOptionsObjectLiteralSyntax, onKey, option1, option2, message, arg0, arg1, arg2, arg3);\n      if (needCompilerDiagnostic) {\n        if (\"messageText\" in message) {\n          programDiagnostics.add(createCompilerDiagnosticFromMessageChain(message));\n        } else {\n          programDiagnostics.add(createCompilerDiagnostic(message, arg0, arg1, arg2, arg3));\n        }\n      }\n    }\n    function getCompilerOptionsObjectLiteralSyntax() {\n      if (_compilerOptionsObjectLiteralSyntax === void 0) {\n        _compilerOptionsObjectLiteralSyntax = false;\n        const jsonObjectLiteral = getTsConfigObjectLiteralExpression(options.configFile);\n        if (jsonObjectLiteral) {\n          for (const prop of getPropertyAssignment(jsonObjectLiteral, \"compilerOptions\")) {\n            if (isObjectLiteralExpression(prop.initializer)) {\n              _compilerOptionsObjectLiteralSyntax = prop.initializer;\n              break;\n            }\n          }\n        }\n      }\n      return _compilerOptionsObjectLiteralSyntax || void 0;\n    }\n    function createOptionDiagnosticInObjectLiteralSyntax(objectLiteral, onKey, key1, key2, message, arg0, arg1, arg2, arg3) {\n      const props = getPropertyAssignment(objectLiteral, key1, key2);\n      for (const prop of props) {\n        if (\"messageText\" in message) {\n          programDiagnostics.add(createDiagnosticForNodeFromMessageChain(options.configFile, onKey ? prop.name : prop.initializer, message));\n        } else {\n          programDiagnostics.add(createDiagnosticForNodeInSourceFile(options.configFile, onKey ? prop.name : prop.initializer, message, arg0, arg1, arg2, arg3));\n        }\n      }\n      return !!props.length;\n    }\n    function createRedundantOptionDiagnostic(errorOnOption, redundantWithOption) {\n      const compilerOptionsObjectLiteralSyntax = getCompilerOptionsObjectLiteralSyntax();\n      if (compilerOptionsObjectLiteralSyntax) {\n        createOptionDiagnosticInObjectLiteralSyntax(compilerOptionsObjectLiteralSyntax, true, errorOnOption, void 0, Diagnostics.Option_0_is_redundant_and_cannot_be_specified_with_option_1, errorOnOption, redundantWithOption);\n      } else {\n        createDiagnosticForOptionName(Diagnostics.Option_0_is_redundant_and_cannot_be_specified_with_option_1, errorOnOption, redundantWithOption);\n      }\n    }\n    function blockEmittingOfFile(emitFileName, diag2) {\n      hasEmitBlockingDiagnostics.set(toPath3(emitFileName), true);\n      programDiagnostics.add(diag2);\n    }\n    function isEmittedFile(file) {\n      if (options.noEmit) {\n        return false;\n      }\n      const filePath = toPath3(file);\n      if (getSourceFileByPath(filePath)) {\n        return false;\n      }\n      const out = outFile(options);\n      if (out) {\n        return isSameFile(filePath, out) || isSameFile(filePath, removeFileExtension(out) + \".d.ts\");\n      }\n      if (options.declarationDir && containsPath(options.declarationDir, filePath, currentDirectory, !host.useCaseSensitiveFileNames())) {\n        return true;\n      }\n      if (options.outDir) {\n        return containsPath(options.outDir, filePath, currentDirectory, !host.useCaseSensitiveFileNames());\n      }\n      if (fileExtensionIsOneOf(filePath, supportedJSExtensionsFlat) || isDeclarationFileName(filePath)) {\n        const filePathWithoutExtension = removeFileExtension(filePath);\n        return !!getSourceFileByPath(filePathWithoutExtension + \".ts\") || !!getSourceFileByPath(filePathWithoutExtension + \".tsx\");\n      }\n      return false;\n    }\n    function isSameFile(file1, file2) {\n      return comparePaths(file1, file2, currentDirectory, !host.useCaseSensitiveFileNames()) === 0;\n    }\n    function getSymlinkCache() {\n      if (host.getSymlinkCache) {\n        return host.getSymlinkCache();\n      }\n      if (!symlinks) {\n        symlinks = createSymlinkCache(currentDirectory, getCanonicalFileName);\n      }\n      if (files && automaticTypeDirectiveResolutions && !symlinks.hasProcessedResolutions()) {\n        symlinks.setSymlinksFromResolutions(files, automaticTypeDirectiveResolutions);\n      }\n      return symlinks;\n    }\n  }\n  function updateHostForUseSourceOfProjectReferenceRedirect(host) {\n    let setOfDeclarationDirectories;\n    const originalFileExists = host.compilerHost.fileExists;\n    const originalDirectoryExists = host.compilerHost.directoryExists;\n    const originalGetDirectories = host.compilerHost.getDirectories;\n    const originalRealpath = host.compilerHost.realpath;\n    if (!host.useSourceOfProjectReferenceRedirect)\n      return { onProgramCreateComplete: noop, fileExists };\n    host.compilerHost.fileExists = fileExists;\n    let directoryExists;\n    if (originalDirectoryExists) {\n      directoryExists = host.compilerHost.directoryExists = (path) => {\n        if (originalDirectoryExists.call(host.compilerHost, path)) {\n          handleDirectoryCouldBeSymlink(path);\n          return true;\n        }\n        if (!host.getResolvedProjectReferences())\n          return false;\n        if (!setOfDeclarationDirectories) {\n          setOfDeclarationDirectories = /* @__PURE__ */ new Set();\n          host.forEachResolvedProjectReference((ref) => {\n            const out = outFile(ref.commandLine.options);\n            if (out) {\n              setOfDeclarationDirectories.add(getDirectoryPath(host.toPath(out)));\n            } else {\n              const declarationDir = ref.commandLine.options.declarationDir || ref.commandLine.options.outDir;\n              if (declarationDir) {\n                setOfDeclarationDirectories.add(host.toPath(declarationDir));\n              }\n            }\n          });\n        }\n        return fileOrDirectoryExistsUsingSource(path, false);\n      };\n    }\n    if (originalGetDirectories) {\n      host.compilerHost.getDirectories = (path) => !host.getResolvedProjectReferences() || originalDirectoryExists && originalDirectoryExists.call(host.compilerHost, path) ? originalGetDirectories.call(host.compilerHost, path) : [];\n    }\n    if (originalRealpath) {\n      host.compilerHost.realpath = (s) => {\n        var _a2;\n        return ((_a2 = host.getSymlinkCache().getSymlinkedFiles()) == null ? void 0 : _a2.get(host.toPath(s))) || originalRealpath.call(host.compilerHost, s);\n      };\n    }\n    return { onProgramCreateComplete, fileExists, directoryExists };\n    function onProgramCreateComplete() {\n      host.compilerHost.fileExists = originalFileExists;\n      host.compilerHost.directoryExists = originalDirectoryExists;\n      host.compilerHost.getDirectories = originalGetDirectories;\n    }\n    function fileExists(file) {\n      if (originalFileExists.call(host.compilerHost, file))\n        return true;\n      if (!host.getResolvedProjectReferences())\n        return false;\n      if (!isDeclarationFileName(file))\n        return false;\n      return fileOrDirectoryExistsUsingSource(file, true);\n    }\n    function fileExistsIfProjectReferenceDts(file) {\n      const source = host.getSourceOfProjectReferenceRedirect(host.toPath(file));\n      return source !== void 0 ? isString(source) ? originalFileExists.call(host.compilerHost, source) : true : void 0;\n    }\n    function directoryExistsIfProjectReferenceDeclDir(dir) {\n      const dirPath = host.toPath(dir);\n      const dirPathWithTrailingDirectorySeparator = `${dirPath}${directorySeparator}`;\n      return forEachKey(setOfDeclarationDirectories, (declDirPath) => dirPath === declDirPath || startsWith(declDirPath, dirPathWithTrailingDirectorySeparator) || startsWith(dirPath, `${declDirPath}/`));\n    }\n    function handleDirectoryCouldBeSymlink(directory) {\n      var _a2;\n      if (!host.getResolvedProjectReferences() || containsIgnoredPath(directory))\n        return;\n      if (!originalRealpath || !stringContains(directory, nodeModulesPathPart))\n        return;\n      const symlinkCache = host.getSymlinkCache();\n      const directoryPath = ensureTrailingDirectorySeparator(host.toPath(directory));\n      if ((_a2 = symlinkCache.getSymlinkedDirectories()) == null ? void 0 : _a2.has(directoryPath))\n        return;\n      const real = normalizePath(originalRealpath.call(host.compilerHost, directory));\n      let realPath2;\n      if (real === directory || (realPath2 = ensureTrailingDirectorySeparator(host.toPath(real))) === directoryPath) {\n        symlinkCache.setSymlinkedDirectory(directoryPath, false);\n        return;\n      }\n      symlinkCache.setSymlinkedDirectory(directory, {\n        real: ensureTrailingDirectorySeparator(real),\n        realPath: realPath2\n      });\n    }\n    function fileOrDirectoryExistsUsingSource(fileOrDirectory, isFile) {\n      var _a2;\n      const fileOrDirectoryExistsUsingSource2 = isFile ? (file) => fileExistsIfProjectReferenceDts(file) : (dir) => directoryExistsIfProjectReferenceDeclDir(dir);\n      const result = fileOrDirectoryExistsUsingSource2(fileOrDirectory);\n      if (result !== void 0)\n        return result;\n      const symlinkCache = host.getSymlinkCache();\n      const symlinkedDirectories = symlinkCache.getSymlinkedDirectories();\n      if (!symlinkedDirectories)\n        return false;\n      const fileOrDirectoryPath = host.toPath(fileOrDirectory);\n      if (!stringContains(fileOrDirectoryPath, nodeModulesPathPart))\n        return false;\n      if (isFile && ((_a2 = symlinkCache.getSymlinkedFiles()) == null ? void 0 : _a2.has(fileOrDirectoryPath)))\n        return true;\n      return firstDefinedIterator(symlinkedDirectories.entries(), ([directoryPath, symlinkedDirectory]) => {\n        if (!symlinkedDirectory || !startsWith(fileOrDirectoryPath, directoryPath))\n          return void 0;\n        const result2 = fileOrDirectoryExistsUsingSource2(fileOrDirectoryPath.replace(directoryPath, symlinkedDirectory.realPath));\n        if (isFile && result2) {\n          const absolutePath = getNormalizedAbsolutePath(fileOrDirectory, host.compilerHost.getCurrentDirectory());\n          symlinkCache.setSymlinkedFile(fileOrDirectoryPath, `${symlinkedDirectory.real}${absolutePath.replace(new RegExp(directoryPath, \"i\"), \"\")}`);\n        }\n        return result2;\n      }) || false;\n    }\n  }\n  function handleNoEmitOptions(program, sourceFile, writeFile2, cancellationToken) {\n    const options = program.getCompilerOptions();\n    if (options.noEmit) {\n      program.getSemanticDiagnostics(sourceFile, cancellationToken);\n      return sourceFile || outFile(options) ? emitSkippedWithNoDiagnostics : program.emitBuildInfo(writeFile2, cancellationToken);\n    }\n    if (!options.noEmitOnError)\n      return void 0;\n    let diagnostics = [\n      ...program.getOptionsDiagnostics(cancellationToken),\n      ...program.getSyntacticDiagnostics(sourceFile, cancellationToken),\n      ...program.getGlobalDiagnostics(cancellationToken),\n      ...program.getSemanticDiagnostics(sourceFile, cancellationToken)\n    ];\n    if (diagnostics.length === 0 && getEmitDeclarations(program.getCompilerOptions())) {\n      diagnostics = program.getDeclarationDiagnostics(void 0, cancellationToken);\n    }\n    if (!diagnostics.length)\n      return void 0;\n    let emittedFiles;\n    if (!sourceFile && !outFile(options)) {\n      const emitResult = program.emitBuildInfo(writeFile2, cancellationToken);\n      if (emitResult.diagnostics)\n        diagnostics = [...diagnostics, ...emitResult.diagnostics];\n      emittedFiles = emitResult.emittedFiles;\n    }\n    return { diagnostics, sourceMaps: void 0, emittedFiles, emitSkipped: true };\n  }\n  function filterSemanticDiagnostics(diagnostic, option) {\n    return filter(diagnostic, (d) => !d.skippedOn || !option[d.skippedOn]);\n  }\n  function parseConfigHostFromCompilerHostLike(host, directoryStructureHost = host) {\n    return {\n      fileExists: (f) => directoryStructureHost.fileExists(f),\n      readDirectory(root, extensions, excludes, includes, depth) {\n        Debug.assertIsDefined(directoryStructureHost.readDirectory, \"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'\");\n        return directoryStructureHost.readDirectory(root, extensions, excludes, includes, depth);\n      },\n      readFile: (f) => directoryStructureHost.readFile(f),\n      useCaseSensitiveFileNames: host.useCaseSensitiveFileNames(),\n      getCurrentDirectory: () => host.getCurrentDirectory(),\n      onUnRecoverableConfigFileDiagnostic: host.onUnRecoverableConfigFileDiagnostic || returnUndefined,\n      trace: host.trace ? (s) => host.trace(s) : void 0\n    };\n  }\n  function createPrependNodes(projectReferences, getCommandLine, readFile, host) {\n    if (!projectReferences)\n      return emptyArray;\n    let nodes;\n    for (let i = 0; i < projectReferences.length; i++) {\n      const ref = projectReferences[i];\n      const resolvedRefOpts = getCommandLine(ref, i);\n      if (ref.prepend && resolvedRefOpts && resolvedRefOpts.options) {\n        const out = outFile(resolvedRefOpts.options);\n        if (!out)\n          continue;\n        const { jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath, buildInfoPath } = getOutputPathsForBundle(resolvedRefOpts.options, true);\n        const node = createInputFilesWithFilePaths(readFile, jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath, buildInfoPath, host, resolvedRefOpts.options);\n        (nodes || (nodes = [])).push(node);\n      }\n    }\n    return nodes || emptyArray;\n  }\n  function resolveProjectReferencePath(ref) {\n    return resolveConfigFileProjectName(ref.path);\n  }\n  function getResolutionDiagnostic(options, { extension }, { isDeclarationFile }) {\n    switch (extension) {\n      case \".ts\":\n      case \".d.ts\":\n      case \".mts\":\n      case \".d.mts\":\n      case \".cts\":\n      case \".d.cts\":\n        return void 0;\n      case \".tsx\":\n        return needJsx();\n      case \".jsx\":\n        return needJsx() || needAllowJs();\n      case \".js\":\n      case \".mjs\":\n      case \".cjs\":\n        return needAllowJs();\n      case \".json\":\n        return needResolveJsonModule();\n      default:\n        return needAllowArbitraryExtensions();\n    }\n    function needJsx() {\n      return options.jsx ? void 0 : Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set;\n    }\n    function needAllowJs() {\n      return getAllowJSCompilerOption(options) || !getStrictOptionValue(options, \"noImplicitAny\") ? void 0 : Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type;\n    }\n    function needResolveJsonModule() {\n      return getResolveJsonModule(options) ? void 0 : Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used;\n    }\n    function needAllowArbitraryExtensions() {\n      return isDeclarationFile || options.allowArbitraryExtensions ? void 0 : Diagnostics.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set;\n    }\n  }\n  function getModuleNames({ imports, moduleAugmentations }) {\n    const res = imports.map((i) => i);\n    for (const aug of moduleAugmentations) {\n      if (aug.kind === 10) {\n        res.push(aug);\n      }\n    }\n    return res;\n  }\n  function getModuleNameStringLiteralAt({ imports, moduleAugmentations }, index) {\n    if (index < imports.length)\n      return imports[index];\n    let augIndex = imports.length;\n    for (const aug of moduleAugmentations) {\n      if (aug.kind === 10) {\n        if (index === augIndex)\n          return aug;\n        augIndex++;\n      }\n    }\n    Debug.fail(\"should never ask for module name at index higher than possible module name\");\n  }\n  var ForegroundColorEscapeSequences, gutterStyleSequence, gutterSeparator, resetEscapeSequence, ellipsis, halfIndent, indent, emptyResolution, moduleResolutionNameAndModeGetter, typeReferenceResolutionNameAndModeGetter, inferredTypesContainingFile, plainJSErrors, emitSkippedWithNoDiagnostics;\n  var init_program = __esm({\n    \"src/compiler/program.ts\"() {\n      \"use strict\";\n      init_ts2();\n      init_ts2();\n      init_ts_performance();\n      ForegroundColorEscapeSequences = /* @__PURE__ */ ((ForegroundColorEscapeSequences2) => {\n        ForegroundColorEscapeSequences2[\"Grey\"] = \"\\x1B[90m\";\n        ForegroundColorEscapeSequences2[\"Red\"] = \"\\x1B[91m\";\n        ForegroundColorEscapeSequences2[\"Yellow\"] = \"\\x1B[93m\";\n        ForegroundColorEscapeSequences2[\"Blue\"] = \"\\x1B[94m\";\n        ForegroundColorEscapeSequences2[\"Cyan\"] = \"\\x1B[96m\";\n        return ForegroundColorEscapeSequences2;\n      })(ForegroundColorEscapeSequences || {});\n      gutterStyleSequence = \"\\x1B[7m\";\n      gutterSeparator = \" \";\n      resetEscapeSequence = \"\\x1B[0m\";\n      ellipsis = \"...\";\n      halfIndent = \"  \";\n      indent = \"    \";\n      emptyResolution = {\n        resolvedModule: void 0,\n        resolvedTypeReferenceDirective: void 0\n      };\n      moduleResolutionNameAndModeGetter = {\n        getName: getModuleResolutionName,\n        getMode: (entry, file) => getModeForUsageLocation(file, entry)\n      };\n      typeReferenceResolutionNameAndModeGetter = {\n        getName: getTypeReferenceResolutionName,\n        getMode: (entry, file) => getModeForFileReference(entry, file == null ? void 0 : file.impliedNodeFormat)\n      };\n      inferredTypesContainingFile = \"__inferred type names__.ts\";\n      plainJSErrors = /* @__PURE__ */ new Set([\n        Diagnostics.Cannot_redeclare_block_scoped_variable_0.code,\n        Diagnostics.A_module_cannot_have_multiple_default_exports.code,\n        Diagnostics.Another_export_default_is_here.code,\n        Diagnostics.The_first_export_default_is_here.code,\n        Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,\n        Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,\n        Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,\n        Diagnostics.constructor_is_a_reserved_word.code,\n        Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,\n        Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,\n        Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,\n        Diagnostics.Invalid_use_of_0_in_strict_mode.code,\n        Diagnostics.A_label_is_not_allowed_here.code,\n        Diagnostics.Octal_literals_are_not_allowed_in_strict_mode.code,\n        Diagnostics.with_statements_are_not_allowed_in_strict_mode.code,\n        Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,\n        Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,\n        Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name.code,\n        Diagnostics.A_class_member_cannot_have_the_0_keyword.code,\n        Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,\n        Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,\n        Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,\n        Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,\n        Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,\n        Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,\n        Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,\n        Diagnostics.A_destructuring_declaration_must_have_an_initializer.code,\n        Diagnostics.A_get_accessor_cannot_have_parameters.code,\n        Diagnostics.A_rest_element_cannot_contain_a_binding_pattern.code,\n        Diagnostics.A_rest_element_cannot_have_a_property_name.code,\n        Diagnostics.A_rest_element_cannot_have_an_initializer.code,\n        Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern.code,\n        Diagnostics.A_rest_parameter_cannot_have_an_initializer.code,\n        Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list.code,\n        Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,\n        Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block.code,\n        Diagnostics.A_set_accessor_cannot_have_rest_parameter.code,\n        Diagnostics.A_set_accessor_must_have_exactly_one_parameter.code,\n        Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,\n        Diagnostics.An_export_declaration_cannot_have_modifiers.code,\n        Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,\n        Diagnostics.An_import_declaration_cannot_have_modifiers.code,\n        Diagnostics.An_object_member_cannot_be_declared_optional.code,\n        Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element.code,\n        Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,\n        Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause.code,\n        Diagnostics.Catch_clause_variable_cannot_have_an_initializer.code,\n        Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,\n        Diagnostics.Classes_can_only_extend_a_single_class.code,\n        Diagnostics.Classes_may_not_have_a_field_named_constructor.code,\n        Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,\n        Diagnostics.Duplicate_label_0.code,\n        Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code,\n        Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block.code,\n        Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,\n        Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,\n        Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,\n        Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,\n        Diagnostics.Jump_target_cannot_cross_function_boundary.code,\n        Diagnostics.Line_terminator_not_permitted_before_arrow.code,\n        Diagnostics.Modifiers_cannot_appear_here.code,\n        Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,\n        Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,\n        Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies.code,\n        Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,\n        Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,\n        Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,\n        Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,\n        Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,\n        Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,\n        Diagnostics.Trailing_comma_not_allowed.code,\n        Diagnostics.Variable_declaration_list_cannot_be_empty.code,\n        Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses.code,\n        Diagnostics._0_expected.code,\n        Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,\n        Diagnostics._0_list_cannot_be_empty.code,\n        Diagnostics._0_modifier_already_seen.code,\n        Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration.code,\n        Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,\n        Diagnostics._0_modifier_cannot_appear_on_a_parameter.code,\n        Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,\n        Diagnostics._0_modifier_cannot_be_used_here.code,\n        Diagnostics._0_modifier_must_precede_1_modifier.code,\n        Diagnostics.const_declarations_can_only_be_declared_inside_a_block.code,\n        Diagnostics.const_declarations_must_be_initialized.code,\n        Diagnostics.extends_clause_already_seen.code,\n        Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code,\n        Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,\n        Diagnostics.Class_constructor_may_not_be_a_generator.code,\n        Diagnostics.Class_constructor_may_not_be_an_accessor.code,\n        Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code\n      ]);\n      emitSkippedWithNoDiagnostics = { diagnostics: emptyArray, sourceMaps: void 0, emittedFiles: void 0, emitSkipped: true };\n    }\n  });\n  var init_builderStatePublic = __esm({\n    \"src/compiler/builderStatePublic.ts\"() {\n      \"use strict\";\n    }\n  });\n  function getFileEmitOutput(program, sourceFile, emitOnlyDtsFiles, cancellationToken, customTransformers, forceDtsEmit) {\n    const outputFiles = [];\n    const { emitSkipped, diagnostics } = program.emit(sourceFile, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers, forceDtsEmit);\n    return { outputFiles, emitSkipped, diagnostics };\n    function writeFile2(fileName, text, writeByteOrderMark) {\n      outputFiles.push({ name: fileName, writeByteOrderMark, text });\n    }\n  }\n  var BuilderState;\n  var init_builderState = __esm({\n    \"src/compiler/builderState.ts\"() {\n      \"use strict\";\n      init_ts2();\n      ((BuilderState2) => {\n        function createManyToManyPathMap() {\n          function create22(forward, reverse, deleted) {\n            const map2 = {\n              getKeys: (v) => reverse.get(v),\n              getValues: (k) => forward.get(k),\n              keys: () => forward.keys(),\n              deleteKey: (k) => {\n                (deleted || (deleted = /* @__PURE__ */ new Set())).add(k);\n                const set = forward.get(k);\n                if (!set) {\n                  return false;\n                }\n                set.forEach((v) => deleteFromMultimap(reverse, v, k));\n                forward.delete(k);\n                return true;\n              },\n              set: (k, vSet) => {\n                deleted == null ? void 0 : deleted.delete(k);\n                const existingVSet = forward.get(k);\n                forward.set(k, vSet);\n                existingVSet == null ? void 0 : existingVSet.forEach((v) => {\n                  if (!vSet.has(v)) {\n                    deleteFromMultimap(reverse, v, k);\n                  }\n                });\n                vSet.forEach((v) => {\n                  if (!(existingVSet == null ? void 0 : existingVSet.has(v))) {\n                    addToMultimap(reverse, v, k);\n                  }\n                });\n                return map2;\n              }\n            };\n            return map2;\n          }\n          return create22(/* @__PURE__ */ new Map(), /* @__PURE__ */ new Map(), void 0);\n        }\n        BuilderState2.createManyToManyPathMap = createManyToManyPathMap;\n        function addToMultimap(map2, k, v) {\n          let set = map2.get(k);\n          if (!set) {\n            set = /* @__PURE__ */ new Set();\n            map2.set(k, set);\n          }\n          set.add(v);\n        }\n        function deleteFromMultimap(map2, k, v) {\n          const set = map2.get(k);\n          if (set == null ? void 0 : set.delete(v)) {\n            if (!set.size) {\n              map2.delete(k);\n            }\n            return true;\n          }\n          return false;\n        }\n        function getReferencedFilesFromImportedModuleSymbol(symbol) {\n          return mapDefined(symbol.declarations, (declaration) => {\n            var _a2;\n            return (_a2 = getSourceFileOfNode(declaration)) == null ? void 0 : _a2.resolvedPath;\n          });\n        }\n        function getReferencedFilesFromImportLiteral(checker, importName) {\n          const symbol = checker.getSymbolAtLocation(importName);\n          return symbol && getReferencedFilesFromImportedModuleSymbol(symbol);\n        }\n        function getReferencedFileFromFileName(program, fileName, sourceFileDirectory, getCanonicalFileName) {\n          return toPath(program.getProjectReferenceRedirect(fileName) || fileName, sourceFileDirectory, getCanonicalFileName);\n        }\n        function getReferencedFiles(program, sourceFile, getCanonicalFileName) {\n          let referencedFiles;\n          if (sourceFile.imports && sourceFile.imports.length > 0) {\n            const checker = program.getTypeChecker();\n            for (const importName of sourceFile.imports) {\n              const declarationSourceFilePaths = getReferencedFilesFromImportLiteral(checker, importName);\n              declarationSourceFilePaths == null ? void 0 : declarationSourceFilePaths.forEach(addReferencedFile);\n            }\n          }\n          const sourceFileDirectory = getDirectoryPath(sourceFile.resolvedPath);\n          if (sourceFile.referencedFiles && sourceFile.referencedFiles.length > 0) {\n            for (const referencedFile of sourceFile.referencedFiles) {\n              const referencedPath = getReferencedFileFromFileName(program, referencedFile.fileName, sourceFileDirectory, getCanonicalFileName);\n              addReferencedFile(referencedPath);\n            }\n          }\n          if (sourceFile.resolvedTypeReferenceDirectiveNames) {\n            sourceFile.resolvedTypeReferenceDirectiveNames.forEach(({ resolvedTypeReferenceDirective }) => {\n              if (!resolvedTypeReferenceDirective) {\n                return;\n              }\n              const fileName = resolvedTypeReferenceDirective.resolvedFileName;\n              const typeFilePath = getReferencedFileFromFileName(program, fileName, sourceFileDirectory, getCanonicalFileName);\n              addReferencedFile(typeFilePath);\n            });\n          }\n          if (sourceFile.moduleAugmentations.length) {\n            const checker = program.getTypeChecker();\n            for (const moduleName of sourceFile.moduleAugmentations) {\n              if (!isStringLiteral(moduleName))\n                continue;\n              const symbol = checker.getSymbolAtLocation(moduleName);\n              if (!symbol)\n                continue;\n              addReferenceFromAmbientModule(symbol);\n            }\n          }\n          for (const ambientModule of program.getTypeChecker().getAmbientModules()) {\n            if (ambientModule.declarations && ambientModule.declarations.length > 1) {\n              addReferenceFromAmbientModule(ambientModule);\n            }\n          }\n          return referencedFiles;\n          function addReferenceFromAmbientModule(symbol) {\n            if (!symbol.declarations) {\n              return;\n            }\n            for (const declaration of symbol.declarations) {\n              const declarationSourceFile = getSourceFileOfNode(declaration);\n              if (declarationSourceFile && declarationSourceFile !== sourceFile) {\n                addReferencedFile(declarationSourceFile.resolvedPath);\n              }\n            }\n          }\n          function addReferencedFile(referencedPath) {\n            (referencedFiles || (referencedFiles = /* @__PURE__ */ new Set())).add(referencedPath);\n          }\n        }\n        function canReuseOldState(newReferencedMap, oldState) {\n          return oldState && !oldState.referencedMap === !newReferencedMap;\n        }\n        BuilderState2.canReuseOldState = canReuseOldState;\n        function create2(newProgram, oldState, disableUseFileVersionAsSignature) {\n          var _a2, _b, _c;\n          const fileInfos = /* @__PURE__ */ new Map();\n          const options = newProgram.getCompilerOptions();\n          const isOutFile = outFile(options);\n          const referencedMap = options.module !== 0 && !isOutFile ? createManyToManyPathMap() : void 0;\n          const exportedModulesMap = referencedMap ? createManyToManyPathMap() : void 0;\n          const useOldState = canReuseOldState(referencedMap, oldState);\n          newProgram.getTypeChecker();\n          for (const sourceFile of newProgram.getSourceFiles()) {\n            const version2 = Debug.checkDefined(sourceFile.version, \"Program intended to be used with Builder should have source files with versions set\");\n            const oldUncommittedSignature = useOldState ? (_a2 = oldState.oldSignatures) == null ? void 0 : _a2.get(sourceFile.resolvedPath) : void 0;\n            const signature = oldUncommittedSignature === void 0 ? useOldState ? (_b = oldState.fileInfos.get(sourceFile.resolvedPath)) == null ? void 0 : _b.signature : void 0 : oldUncommittedSignature || void 0;\n            if (referencedMap) {\n              const newReferences = getReferencedFiles(newProgram, sourceFile, newProgram.getCanonicalFileName);\n              if (newReferences) {\n                referencedMap.set(sourceFile.resolvedPath, newReferences);\n              }\n              if (useOldState) {\n                const oldUncommittedExportedModules = (_c = oldState.oldExportedModulesMap) == null ? void 0 : _c.get(sourceFile.resolvedPath);\n                const exportedModules = oldUncommittedExportedModules === void 0 ? oldState.exportedModulesMap.getValues(sourceFile.resolvedPath) : oldUncommittedExportedModules || void 0;\n                if (exportedModules) {\n                  exportedModulesMap.set(sourceFile.resolvedPath, exportedModules);\n                }\n              }\n            }\n            fileInfos.set(sourceFile.resolvedPath, {\n              version: version2,\n              signature,\n              affectsGlobalScope: !isOutFile ? isFileAffectingGlobalScope(sourceFile) || void 0 : void 0,\n              impliedFormat: sourceFile.impliedNodeFormat\n            });\n          }\n          return {\n            fileInfos,\n            referencedMap,\n            exportedModulesMap,\n            useFileVersionAsSignature: !disableUseFileVersionAsSignature && !useOldState\n          };\n        }\n        BuilderState2.create = create2;\n        function releaseCache2(state) {\n          state.allFilesExcludingDefaultLibraryFile = void 0;\n          state.allFileNames = void 0;\n        }\n        BuilderState2.releaseCache = releaseCache2;\n        function getFilesAffectedBy(state, programOfThisState, path, cancellationToken, host) {\n          var _a2, _b;\n          const result = getFilesAffectedByWithOldState(state, programOfThisState, path, cancellationToken, host);\n          (_a2 = state.oldSignatures) == null ? void 0 : _a2.clear();\n          (_b = state.oldExportedModulesMap) == null ? void 0 : _b.clear();\n          return result;\n        }\n        BuilderState2.getFilesAffectedBy = getFilesAffectedBy;\n        function getFilesAffectedByWithOldState(state, programOfThisState, path, cancellationToken, host) {\n          const sourceFile = programOfThisState.getSourceFileByPath(path);\n          if (!sourceFile) {\n            return emptyArray;\n          }\n          if (!updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, host)) {\n            return [sourceFile];\n          }\n          return (state.referencedMap ? getFilesAffectedByUpdatedShapeWhenModuleEmit : getFilesAffectedByUpdatedShapeWhenNonModuleEmit)(state, programOfThisState, sourceFile, cancellationToken, host);\n        }\n        BuilderState2.getFilesAffectedByWithOldState = getFilesAffectedByWithOldState;\n        function updateSignatureOfFile(state, signature, path) {\n          state.fileInfos.get(path).signature = signature;\n          (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(path);\n        }\n        BuilderState2.updateSignatureOfFile = updateSignatureOfFile;\n        function computeDtsSignature(programOfThisState, sourceFile, cancellationToken, host, onNewSignature) {\n          programOfThisState.emit(sourceFile, (fileName, text, _writeByteOrderMark, _onError, sourceFiles, data) => {\n            Debug.assert(isDeclarationFileName(fileName), `File extension for signature expected to be dts: Got:: ${fileName}`);\n            onNewSignature(computeSignatureWithDiagnostics(programOfThisState, sourceFile, text, host, data), sourceFiles);\n          }, cancellationToken, true, void 0, true);\n        }\n        BuilderState2.computeDtsSignature = computeDtsSignature;\n        function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, host, useFileVersionAsSignature = state.useFileVersionAsSignature) {\n          var _a2;\n          if ((_a2 = state.hasCalledUpdateShapeSignature) == null ? void 0 : _a2.has(sourceFile.resolvedPath))\n            return false;\n          const info = state.fileInfos.get(sourceFile.resolvedPath);\n          const prevSignature = info.signature;\n          let latestSignature;\n          if (!sourceFile.isDeclarationFile && !useFileVersionAsSignature) {\n            computeDtsSignature(programOfThisState, sourceFile, cancellationToken, host, (signature, sourceFiles) => {\n              latestSignature = signature;\n              if (latestSignature !== prevSignature) {\n                updateExportedModules(state, sourceFile, sourceFiles[0].exportedModulesFromDeclarationEmit);\n              }\n            });\n          }\n          if (latestSignature === void 0) {\n            latestSignature = sourceFile.version;\n            if (state.exportedModulesMap && latestSignature !== prevSignature) {\n              (state.oldExportedModulesMap || (state.oldExportedModulesMap = /* @__PURE__ */ new Map())).set(sourceFile.resolvedPath, state.exportedModulesMap.getValues(sourceFile.resolvedPath) || false);\n              const references = state.referencedMap ? state.referencedMap.getValues(sourceFile.resolvedPath) : void 0;\n              if (references) {\n                state.exportedModulesMap.set(sourceFile.resolvedPath, references);\n              } else {\n                state.exportedModulesMap.deleteKey(sourceFile.resolvedPath);\n              }\n            }\n          }\n          (state.oldSignatures || (state.oldSignatures = /* @__PURE__ */ new Map())).set(sourceFile.resolvedPath, prevSignature || false);\n          (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(sourceFile.resolvedPath);\n          info.signature = latestSignature;\n          return latestSignature !== prevSignature;\n        }\n        BuilderState2.updateShapeSignature = updateShapeSignature;\n        function updateExportedModules(state, sourceFile, exportedModulesFromDeclarationEmit) {\n          if (!state.exportedModulesMap)\n            return;\n          (state.oldExportedModulesMap || (state.oldExportedModulesMap = /* @__PURE__ */ new Map())).set(sourceFile.resolvedPath, state.exportedModulesMap.getValues(sourceFile.resolvedPath) || false);\n          const exportedModules = getExportedModules(exportedModulesFromDeclarationEmit);\n          if (exportedModules) {\n            state.exportedModulesMap.set(sourceFile.resolvedPath, exportedModules);\n          } else {\n            state.exportedModulesMap.deleteKey(sourceFile.resolvedPath);\n          }\n        }\n        BuilderState2.updateExportedModules = updateExportedModules;\n        function getExportedModules(exportedModulesFromDeclarationEmit) {\n          let exportedModules;\n          exportedModulesFromDeclarationEmit == null ? void 0 : exportedModulesFromDeclarationEmit.forEach((symbol) => getReferencedFilesFromImportedModuleSymbol(symbol).forEach((path) => (exportedModules != null ? exportedModules : exportedModules = /* @__PURE__ */ new Set()).add(path)));\n          return exportedModules;\n        }\n        BuilderState2.getExportedModules = getExportedModules;\n        function getAllDependencies(state, programOfThisState, sourceFile) {\n          const compilerOptions = programOfThisState.getCompilerOptions();\n          if (outFile(compilerOptions)) {\n            return getAllFileNames(state, programOfThisState);\n          }\n          if (!state.referencedMap || isFileAffectingGlobalScope(sourceFile)) {\n            return getAllFileNames(state, programOfThisState);\n          }\n          const seenMap = /* @__PURE__ */ new Set();\n          const queue = [sourceFile.resolvedPath];\n          while (queue.length) {\n            const path = queue.pop();\n            if (!seenMap.has(path)) {\n              seenMap.add(path);\n              const references = state.referencedMap.getValues(path);\n              if (references) {\n                for (const key of references.keys()) {\n                  queue.push(key);\n                }\n              }\n            }\n          }\n          return arrayFrom(mapDefinedIterator(seenMap.keys(), (path) => {\n            var _a2, _b;\n            return (_b = (_a2 = programOfThisState.getSourceFileByPath(path)) == null ? void 0 : _a2.fileName) != null ? _b : path;\n          }));\n        }\n        BuilderState2.getAllDependencies = getAllDependencies;\n        function getAllFileNames(state, programOfThisState) {\n          if (!state.allFileNames) {\n            const sourceFiles = programOfThisState.getSourceFiles();\n            state.allFileNames = sourceFiles === emptyArray ? emptyArray : sourceFiles.map((file) => file.fileName);\n          }\n          return state.allFileNames;\n        }\n        function getReferencedByPaths(state, referencedFilePath) {\n          const keys = state.referencedMap.getKeys(referencedFilePath);\n          return keys ? arrayFrom(keys.keys()) : [];\n        }\n        BuilderState2.getReferencedByPaths = getReferencedByPaths;\n        function containsOnlyAmbientModules(sourceFile) {\n          for (const statement of sourceFile.statements) {\n            if (!isModuleWithStringLiteralName(statement)) {\n              return false;\n            }\n          }\n          return true;\n        }\n        function containsGlobalScopeAugmentation(sourceFile) {\n          return some(sourceFile.moduleAugmentations, (augmentation) => isGlobalScopeAugmentation(augmentation.parent));\n        }\n        function isFileAffectingGlobalScope(sourceFile) {\n          return containsGlobalScopeAugmentation(sourceFile) || !isExternalOrCommonJsModule(sourceFile) && !isJsonSourceFile(sourceFile) && !containsOnlyAmbientModules(sourceFile);\n        }\n        function getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, firstSourceFile) {\n          if (state.allFilesExcludingDefaultLibraryFile) {\n            return state.allFilesExcludingDefaultLibraryFile;\n          }\n          let result;\n          if (firstSourceFile)\n            addSourceFile(firstSourceFile);\n          for (const sourceFile of programOfThisState.getSourceFiles()) {\n            if (sourceFile !== firstSourceFile) {\n              addSourceFile(sourceFile);\n            }\n          }\n          state.allFilesExcludingDefaultLibraryFile = result || emptyArray;\n          return state.allFilesExcludingDefaultLibraryFile;\n          function addSourceFile(sourceFile) {\n            if (!programOfThisState.isSourceFileDefaultLibrary(sourceFile)) {\n              (result || (result = [])).push(sourceFile);\n            }\n          }\n        }\n        BuilderState2.getAllFilesExcludingDefaultLibraryFile = getAllFilesExcludingDefaultLibraryFile;\n        function getFilesAffectedByUpdatedShapeWhenNonModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape) {\n          const compilerOptions = programOfThisState.getCompilerOptions();\n          if (compilerOptions && outFile(compilerOptions)) {\n            return [sourceFileWithUpdatedShape];\n          }\n          return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape);\n        }\n        function getFilesAffectedByUpdatedShapeWhenModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape, cancellationToken, host) {\n          if (isFileAffectingGlobalScope(sourceFileWithUpdatedShape)) {\n            return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape);\n          }\n          const compilerOptions = programOfThisState.getCompilerOptions();\n          if (compilerOptions && (getIsolatedModules(compilerOptions) || outFile(compilerOptions))) {\n            return [sourceFileWithUpdatedShape];\n          }\n          const seenFileNamesMap = /* @__PURE__ */ new Map();\n          seenFileNamesMap.set(sourceFileWithUpdatedShape.resolvedPath, sourceFileWithUpdatedShape);\n          const queue = getReferencedByPaths(state, sourceFileWithUpdatedShape.resolvedPath);\n          while (queue.length > 0) {\n            const currentPath = queue.pop();\n            if (!seenFileNamesMap.has(currentPath)) {\n              const currentSourceFile = programOfThisState.getSourceFileByPath(currentPath);\n              seenFileNamesMap.set(currentPath, currentSourceFile);\n              if (currentSourceFile && updateShapeSignature(state, programOfThisState, currentSourceFile, cancellationToken, host)) {\n                queue.push(...getReferencedByPaths(state, currentSourceFile.resolvedPath));\n              }\n            }\n          }\n          return arrayFrom(mapDefinedIterator(seenFileNamesMap.values(), (value) => value));\n        }\n      })(BuilderState || (BuilderState = {}));\n    }\n  });\n  function getBuilderFileEmit(options) {\n    let result = 1;\n    if (options.sourceMap)\n      result = result | 2;\n    if (options.inlineSourceMap)\n      result = result | 4;\n    if (getEmitDeclarations(options))\n      result = result | 8;\n    if (options.declarationMap)\n      result = result | 16;\n    if (options.emitDeclarationOnly)\n      result = result & 24;\n    return result;\n  }\n  function getPendingEmitKind(optionsOrEmitKind, oldOptionsOrEmitKind) {\n    const oldEmitKind = oldOptionsOrEmitKind && (isNumber(oldOptionsOrEmitKind) ? oldOptionsOrEmitKind : getBuilderFileEmit(oldOptionsOrEmitKind));\n    const emitKind = isNumber(optionsOrEmitKind) ? optionsOrEmitKind : getBuilderFileEmit(optionsOrEmitKind);\n    if (oldEmitKind === emitKind)\n      return 0;\n    if (!oldEmitKind || !emitKind)\n      return emitKind;\n    const diff = oldEmitKind ^ emitKind;\n    let result = 0;\n    if (diff & 7)\n      result = emitKind & 7;\n    if (diff & 24)\n      result = result | emitKind & 24;\n    return result;\n  }\n  function hasSameKeys(map1, map2) {\n    return map1 === map2 || map1 !== void 0 && map2 !== void 0 && map1.size === map2.size && !forEachKey(map1, (key) => !map2.has(key));\n  }\n  function createBuilderProgramState(newProgram, oldState) {\n    var _a2, _b;\n    const state = BuilderState.create(newProgram, oldState, false);\n    state.program = newProgram;\n    const compilerOptions = newProgram.getCompilerOptions();\n    state.compilerOptions = compilerOptions;\n    const outFilePath = outFile(compilerOptions);\n    if (!outFilePath) {\n      state.semanticDiagnosticsPerFile = /* @__PURE__ */ new Map();\n    } else if (compilerOptions.composite && (oldState == null ? void 0 : oldState.outSignature) && outFilePath === outFile(oldState == null ? void 0 : oldState.compilerOptions)) {\n      state.outSignature = oldState.outSignature && getEmitSignatureFromOldSignature(compilerOptions, oldState.compilerOptions, oldState.outSignature);\n    }\n    state.changedFilesSet = /* @__PURE__ */ new Set();\n    state.latestChangedDtsFile = compilerOptions.composite ? oldState == null ? void 0 : oldState.latestChangedDtsFile : void 0;\n    const useOldState = BuilderState.canReuseOldState(state.referencedMap, oldState);\n    const oldCompilerOptions = useOldState ? oldState.compilerOptions : void 0;\n    const canCopySemanticDiagnostics = useOldState && oldState.semanticDiagnosticsPerFile && !!state.semanticDiagnosticsPerFile && !compilerOptionsAffectSemanticDiagnostics(compilerOptions, oldCompilerOptions);\n    const canCopyEmitSignatures = compilerOptions.composite && (oldState == null ? void 0 : oldState.emitSignatures) && !outFilePath && !compilerOptionsAffectDeclarationPath(compilerOptions, oldState.compilerOptions);\n    if (useOldState) {\n      (_a2 = oldState.changedFilesSet) == null ? void 0 : _a2.forEach((value) => state.changedFilesSet.add(value));\n      if (!outFilePath && ((_b = oldState.affectedFilesPendingEmit) == null ? void 0 : _b.size)) {\n        state.affectedFilesPendingEmit = new Map(oldState.affectedFilesPendingEmit);\n        state.seenAffectedFiles = /* @__PURE__ */ new Set();\n      }\n      state.programEmitPending = oldState.programEmitPending;\n    } else {\n      state.buildInfoEmitPending = true;\n    }\n    const referencedMap = state.referencedMap;\n    const oldReferencedMap = useOldState ? oldState.referencedMap : void 0;\n    const copyDeclarationFileDiagnostics = canCopySemanticDiagnostics && !compilerOptions.skipLibCheck === !oldCompilerOptions.skipLibCheck;\n    const copyLibFileDiagnostics = copyDeclarationFileDiagnostics && !compilerOptions.skipDefaultLibCheck === !oldCompilerOptions.skipDefaultLibCheck;\n    state.fileInfos.forEach((info, sourceFilePath) => {\n      var _a3;\n      let oldInfo;\n      let newReferences;\n      if (!useOldState || !(oldInfo = oldState.fileInfos.get(sourceFilePath)) || oldInfo.version !== info.version || oldInfo.impliedFormat !== info.impliedFormat || !hasSameKeys(newReferences = referencedMap && referencedMap.getValues(sourceFilePath), oldReferencedMap && oldReferencedMap.getValues(sourceFilePath)) || newReferences && forEachKey(newReferences, (path) => !state.fileInfos.has(path) && oldState.fileInfos.has(path))) {\n        addFileToChangeSet(state, sourceFilePath);\n      } else if (canCopySemanticDiagnostics) {\n        const sourceFile = newProgram.getSourceFileByPath(sourceFilePath);\n        if (sourceFile.isDeclarationFile && !copyDeclarationFileDiagnostics)\n          return;\n        if (sourceFile.hasNoDefaultLib && !copyLibFileDiagnostics)\n          return;\n        const diagnostics = oldState.semanticDiagnosticsPerFile.get(sourceFilePath);\n        if (diagnostics) {\n          state.semanticDiagnosticsPerFile.set(sourceFilePath, oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, newProgram) : diagnostics);\n          if (!state.semanticDiagnosticsFromOldState) {\n            state.semanticDiagnosticsFromOldState = /* @__PURE__ */ new Set();\n          }\n          state.semanticDiagnosticsFromOldState.add(sourceFilePath);\n        }\n      }\n      if (canCopyEmitSignatures) {\n        const oldEmitSignature = oldState.emitSignatures.get(sourceFilePath);\n        if (oldEmitSignature) {\n          ((_a3 = state.emitSignatures) != null ? _a3 : state.emitSignatures = /* @__PURE__ */ new Map()).set(sourceFilePath, getEmitSignatureFromOldSignature(compilerOptions, oldState.compilerOptions, oldEmitSignature));\n        }\n      }\n    });\n    if (useOldState && forEachEntry(oldState.fileInfos, (info, sourceFilePath) => {\n      if (state.fileInfos.has(sourceFilePath))\n        return false;\n      if (outFilePath || info.affectsGlobalScope)\n        return true;\n      state.buildInfoEmitPending = true;\n      return false;\n    })) {\n      BuilderState.getAllFilesExcludingDefaultLibraryFile(state, newProgram, void 0).forEach((file) => addFileToChangeSet(state, file.resolvedPath));\n    } else if (oldCompilerOptions) {\n      const pendingEmitKind = compilerOptionsAffectEmit(compilerOptions, oldCompilerOptions) ? getBuilderFileEmit(compilerOptions) : getPendingEmitKind(compilerOptions, oldCompilerOptions);\n      if (pendingEmitKind !== 0) {\n        if (!outFilePath) {\n          newProgram.getSourceFiles().forEach((f) => {\n            if (!state.changedFilesSet.has(f.resolvedPath)) {\n              addToAffectedFilesPendingEmit(state, f.resolvedPath, pendingEmitKind);\n            }\n          });\n          Debug.assert(!state.seenAffectedFiles || !state.seenAffectedFiles.size);\n          state.seenAffectedFiles = state.seenAffectedFiles || /* @__PURE__ */ new Set();\n          state.buildInfoEmitPending = true;\n        } else {\n          state.programEmitPending = state.programEmitPending ? state.programEmitPending | pendingEmitKind : pendingEmitKind;\n        }\n      }\n    }\n    if (outFilePath && !state.changedFilesSet.size) {\n      if (useOldState)\n        state.bundle = oldState.bundle;\n      if (some(newProgram.getProjectReferences(), (ref) => !!ref.prepend))\n        state.programEmitPending = getBuilderFileEmit(compilerOptions);\n    }\n    return state;\n  }\n  function addFileToChangeSet(state, path) {\n    state.changedFilesSet.add(path);\n    state.buildInfoEmitPending = true;\n    state.programEmitPending = void 0;\n  }\n  function getEmitSignatureFromOldSignature(options, oldOptions, oldEmitSignature) {\n    return !!options.declarationMap === !!oldOptions.declarationMap ? oldEmitSignature : isString(oldEmitSignature) ? [oldEmitSignature] : oldEmitSignature[0];\n  }\n  function convertToDiagnostics(diagnostics, newProgram) {\n    if (!diagnostics.length)\n      return emptyArray;\n    let buildInfoDirectory;\n    return diagnostics.map((diagnostic) => {\n      const result = convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPath3);\n      result.reportsUnnecessary = diagnostic.reportsUnnecessary;\n      result.reportsDeprecated = diagnostic.reportDeprecated;\n      result.source = diagnostic.source;\n      result.skippedOn = diagnostic.skippedOn;\n      const { relatedInformation } = diagnostic;\n      result.relatedInformation = relatedInformation ? relatedInformation.length ? relatedInformation.map((r) => convertToDiagnosticRelatedInformation(r, newProgram, toPath3)) : [] : void 0;\n      return result;\n    });\n    function toPath3(path) {\n      buildInfoDirectory != null ? buildInfoDirectory : buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(newProgram.getCompilerOptions()), newProgram.getCurrentDirectory()));\n      return toPath(path, buildInfoDirectory, newProgram.getCanonicalFileName);\n    }\n  }\n  function convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPath3) {\n    const { file } = diagnostic;\n    return {\n      ...diagnostic,\n      file: file ? newProgram.getSourceFileByPath(toPath3(file)) : void 0\n    };\n  }\n  function releaseCache(state) {\n    BuilderState.releaseCache(state);\n    state.program = void 0;\n  }\n  function backupBuilderProgramEmitState(state) {\n    const outFilePath = outFile(state.compilerOptions);\n    Debug.assert(!state.changedFilesSet.size || outFilePath);\n    return {\n      affectedFilesPendingEmit: state.affectedFilesPendingEmit && new Map(state.affectedFilesPendingEmit),\n      seenEmittedFiles: state.seenEmittedFiles && new Map(state.seenEmittedFiles),\n      programEmitPending: state.programEmitPending,\n      emitSignatures: state.emitSignatures && new Map(state.emitSignatures),\n      outSignature: state.outSignature,\n      latestChangedDtsFile: state.latestChangedDtsFile,\n      hasChangedEmitSignature: state.hasChangedEmitSignature,\n      changedFilesSet: outFilePath ? new Set(state.changedFilesSet) : void 0\n    };\n  }\n  function restoreBuilderProgramEmitState(state, savedEmitState) {\n    state.affectedFilesPendingEmit = savedEmitState.affectedFilesPendingEmit;\n    state.seenEmittedFiles = savedEmitState.seenEmittedFiles;\n    state.programEmitPending = savedEmitState.programEmitPending;\n    state.emitSignatures = savedEmitState.emitSignatures;\n    state.outSignature = savedEmitState.outSignature;\n    state.latestChangedDtsFile = savedEmitState.latestChangedDtsFile;\n    state.hasChangedEmitSignature = savedEmitState.hasChangedEmitSignature;\n    if (savedEmitState.changedFilesSet)\n      state.changedFilesSet = savedEmitState.changedFilesSet;\n  }\n  function assertSourceFileOkWithoutNextAffectedCall(state, sourceFile) {\n    Debug.assert(!sourceFile || !state.affectedFiles || state.affectedFiles[state.affectedFilesIndex - 1] !== sourceFile || !state.semanticDiagnosticsPerFile.has(sourceFile.resolvedPath));\n  }\n  function getNextAffectedFile(state, cancellationToken, host) {\n    var _a2, _b;\n    while (true) {\n      const { affectedFiles } = state;\n      if (affectedFiles) {\n        const seenAffectedFiles = state.seenAffectedFiles;\n        let affectedFilesIndex = state.affectedFilesIndex;\n        while (affectedFilesIndex < affectedFiles.length) {\n          const affectedFile = affectedFiles[affectedFilesIndex];\n          if (!seenAffectedFiles.has(affectedFile.resolvedPath)) {\n            state.affectedFilesIndex = affectedFilesIndex;\n            addToAffectedFilesPendingEmit(state, affectedFile.resolvedPath, getBuilderFileEmit(state.compilerOptions));\n            handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken, host);\n            return affectedFile;\n          }\n          affectedFilesIndex++;\n        }\n        state.changedFilesSet.delete(state.currentChangedFilePath);\n        state.currentChangedFilePath = void 0;\n        (_a2 = state.oldSignatures) == null ? void 0 : _a2.clear();\n        (_b = state.oldExportedModulesMap) == null ? void 0 : _b.clear();\n        state.affectedFiles = void 0;\n      }\n      const nextKey = state.changedFilesSet.keys().next();\n      if (nextKey.done) {\n        return void 0;\n      }\n      const program = Debug.checkDefined(state.program);\n      const compilerOptions = program.getCompilerOptions();\n      if (outFile(compilerOptions)) {\n        Debug.assert(!state.semanticDiagnosticsPerFile);\n        return program;\n      }\n      state.affectedFiles = BuilderState.getFilesAffectedByWithOldState(state, program, nextKey.value, cancellationToken, host);\n      state.currentChangedFilePath = nextKey.value;\n      state.affectedFilesIndex = 0;\n      if (!state.seenAffectedFiles)\n        state.seenAffectedFiles = /* @__PURE__ */ new Set();\n    }\n  }\n  function clearAffectedFilesPendingEmit(state, emitOnlyDtsFiles) {\n    var _a2;\n    if (!((_a2 = state.affectedFilesPendingEmit) == null ? void 0 : _a2.size))\n      return;\n    if (!emitOnlyDtsFiles)\n      return state.affectedFilesPendingEmit = void 0;\n    state.affectedFilesPendingEmit.forEach((emitKind, path) => {\n      const pending = emitKind & 7;\n      if (!pending)\n        state.affectedFilesPendingEmit.delete(path);\n      else\n        state.affectedFilesPendingEmit.set(path, pending);\n    });\n  }\n  function getNextAffectedFilePendingEmit(state, emitOnlyDtsFiles) {\n    var _a2;\n    if (!((_a2 = state.affectedFilesPendingEmit) == null ? void 0 : _a2.size))\n      return void 0;\n    return forEachEntry(state.affectedFilesPendingEmit, (emitKind, path) => {\n      var _a3;\n      const affectedFile = state.program.getSourceFileByPath(path);\n      if (!affectedFile || !sourceFileMayBeEmitted(affectedFile, state.program)) {\n        state.affectedFilesPendingEmit.delete(path);\n        return void 0;\n      }\n      const seenKind = (_a3 = state.seenEmittedFiles) == null ? void 0 : _a3.get(affectedFile.resolvedPath);\n      let pendingKind = getPendingEmitKind(emitKind, seenKind);\n      if (emitOnlyDtsFiles)\n        pendingKind = pendingKind & 24;\n      if (pendingKind)\n        return { affectedFile, emitKind: pendingKind };\n    });\n  }\n  function removeDiagnosticsOfLibraryFiles(state) {\n    if (!state.cleanedDiagnosticsOfLibFiles) {\n      state.cleanedDiagnosticsOfLibFiles = true;\n      const program = Debug.checkDefined(state.program);\n      const options = program.getCompilerOptions();\n      forEach(program.getSourceFiles(), (f) => program.isSourceFileDefaultLibrary(f) && !skipTypeChecking(f, options, program) && removeSemanticDiagnosticsOf(state, f.resolvedPath));\n    }\n  }\n  function handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken, host) {\n    removeSemanticDiagnosticsOf(state, affectedFile.resolvedPath);\n    if (state.allFilesExcludingDefaultLibraryFile === state.affectedFiles) {\n      removeDiagnosticsOfLibraryFiles(state);\n      BuilderState.updateShapeSignature(state, Debug.checkDefined(state.program), affectedFile, cancellationToken, host);\n      return;\n    }\n    if (state.compilerOptions.assumeChangesOnlyAffectDirectDependencies)\n      return;\n    handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile, cancellationToken, host);\n  }\n  function handleDtsMayChangeOf(state, path, cancellationToken, host) {\n    removeSemanticDiagnosticsOf(state, path);\n    if (!state.changedFilesSet.has(path)) {\n      const program = Debug.checkDefined(state.program);\n      const sourceFile = program.getSourceFileByPath(path);\n      if (sourceFile) {\n        BuilderState.updateShapeSignature(state, program, sourceFile, cancellationToken, host, true);\n        if (getEmitDeclarations(state.compilerOptions)) {\n          addToAffectedFilesPendingEmit(state, path, state.compilerOptions.declarationMap ? 24 : 8);\n        }\n      }\n    }\n  }\n  function removeSemanticDiagnosticsOf(state, path) {\n    if (!state.semanticDiagnosticsFromOldState) {\n      return true;\n    }\n    state.semanticDiagnosticsFromOldState.delete(path);\n    state.semanticDiagnosticsPerFile.delete(path);\n    return !state.semanticDiagnosticsFromOldState.size;\n  }\n  function isChangedSignature(state, path) {\n    const oldSignature = Debug.checkDefined(state.oldSignatures).get(path) || void 0;\n    const newSignature = Debug.checkDefined(state.fileInfos.get(path)).signature;\n    return newSignature !== oldSignature;\n  }\n  function handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, host) {\n    var _a2;\n    if (!((_a2 = state.fileInfos.get(filePath)) == null ? void 0 : _a2.affectsGlobalScope))\n      return false;\n    BuilderState.getAllFilesExcludingDefaultLibraryFile(state, state.program, void 0).forEach((file) => handleDtsMayChangeOf(state, file.resolvedPath, cancellationToken, host));\n    removeDiagnosticsOfLibraryFiles(state);\n    return true;\n  }\n  function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile, cancellationToken, host) {\n    var _a2;\n    if (!state.exportedModulesMap || !state.changedFilesSet.has(affectedFile.resolvedPath))\n      return;\n    if (!isChangedSignature(state, affectedFile.resolvedPath))\n      return;\n    if (getIsolatedModules(state.compilerOptions)) {\n      const seenFileNamesMap = /* @__PURE__ */ new Map();\n      seenFileNamesMap.set(affectedFile.resolvedPath, true);\n      const queue = BuilderState.getReferencedByPaths(state, affectedFile.resolvedPath);\n      while (queue.length > 0) {\n        const currentPath = queue.pop();\n        if (!seenFileNamesMap.has(currentPath)) {\n          seenFileNamesMap.set(currentPath, true);\n          if (handleDtsMayChangeOfGlobalScope(state, currentPath, cancellationToken, host))\n            return;\n          handleDtsMayChangeOf(state, currentPath, cancellationToken, host);\n          if (isChangedSignature(state, currentPath)) {\n            const currentSourceFile = Debug.checkDefined(state.program).getSourceFileByPath(currentPath);\n            queue.push(...BuilderState.getReferencedByPaths(state, currentSourceFile.resolvedPath));\n          }\n        }\n      }\n    }\n    const seenFileAndExportsOfFile = /* @__PURE__ */ new Set();\n    (_a2 = state.exportedModulesMap.getKeys(affectedFile.resolvedPath)) == null ? void 0 : _a2.forEach((exportedFromPath) => {\n      if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, cancellationToken, host))\n        return true;\n      const references = state.referencedMap.getKeys(exportedFromPath);\n      return references && forEachKey(references, (filePath) => handleDtsMayChangeOfFileAndExportsOfFile(state, filePath, seenFileAndExportsOfFile, cancellationToken, host));\n    });\n  }\n  function handleDtsMayChangeOfFileAndExportsOfFile(state, filePath, seenFileAndExportsOfFile, cancellationToken, host) {\n    var _a2, _b;\n    if (!tryAddToSet(seenFileAndExportsOfFile, filePath))\n      return void 0;\n    if (handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, host))\n      return true;\n    handleDtsMayChangeOf(state, filePath, cancellationToken, host);\n    (_a2 = state.exportedModulesMap.getKeys(filePath)) == null ? void 0 : _a2.forEach((exportedFromPath) => handleDtsMayChangeOfFileAndExportsOfFile(state, exportedFromPath, seenFileAndExportsOfFile, cancellationToken, host));\n    (_b = state.referencedMap.getKeys(filePath)) == null ? void 0 : _b.forEach((referencingFilePath) => !seenFileAndExportsOfFile.has(referencingFilePath) && handleDtsMayChangeOf(state, referencingFilePath, cancellationToken, host));\n    return void 0;\n  }\n  function getSemanticDiagnosticsOfFile(state, sourceFile, cancellationToken) {\n    return concatenate(getBinderAndCheckerDiagnosticsOfFile(state, sourceFile, cancellationToken), Debug.checkDefined(state.program).getProgramDiagnostics(sourceFile));\n  }\n  function getBinderAndCheckerDiagnosticsOfFile(state, sourceFile, cancellationToken) {\n    const path = sourceFile.resolvedPath;\n    if (state.semanticDiagnosticsPerFile) {\n      const cachedDiagnostics = state.semanticDiagnosticsPerFile.get(path);\n      if (cachedDiagnostics) {\n        return filterSemanticDiagnostics(cachedDiagnostics, state.compilerOptions);\n      }\n    }\n    const diagnostics = Debug.checkDefined(state.program).getBindAndCheckDiagnostics(sourceFile, cancellationToken);\n    if (state.semanticDiagnosticsPerFile) {\n      state.semanticDiagnosticsPerFile.set(path, diagnostics);\n    }\n    return filterSemanticDiagnostics(diagnostics, state.compilerOptions);\n  }\n  function isProgramBundleEmitBuildInfo(info) {\n    return !!outFile(info.options || {});\n  }\n  function getBuildInfo2(state, bundle) {\n    var _a2, _b, _c;\n    const currentDirectory = Debug.checkDefined(state.program).getCurrentDirectory();\n    const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(state.compilerOptions), currentDirectory));\n    const latestChangedDtsFile = state.latestChangedDtsFile ? relativeToBuildInfoEnsuringAbsolutePath(state.latestChangedDtsFile) : void 0;\n    const fileNames = [];\n    const fileNameToFileId = /* @__PURE__ */ new Map();\n    const root = [];\n    if (outFile(state.compilerOptions)) {\n      const fileInfos2 = arrayFrom(state.fileInfos.entries(), ([key, value]) => {\n        const fileId = toFileId(key);\n        tryAddRoot(key, fileId);\n        return value.impliedFormat ? { version: value.version, impliedFormat: value.impliedFormat, signature: void 0, affectsGlobalScope: void 0 } : value.version;\n      });\n      const program2 = {\n        fileNames,\n        fileInfos: fileInfos2,\n        root,\n        options: convertToProgramBuildInfoCompilerOptions(state.compilerOptions),\n        outSignature: state.outSignature,\n        latestChangedDtsFile,\n        pendingEmit: !state.programEmitPending ? void 0 : state.programEmitPending === getBuilderFileEmit(state.compilerOptions) ? false : state.programEmitPending\n      };\n      const { js, dts, commonSourceDirectory, sourceFiles } = bundle;\n      state.bundle = bundle = {\n        commonSourceDirectory,\n        sourceFiles,\n        js: js || (!state.compilerOptions.emitDeclarationOnly ? (_a2 = state.bundle) == null ? void 0 : _a2.js : void 0),\n        dts: dts || (getEmitDeclarations(state.compilerOptions) ? (_b = state.bundle) == null ? void 0 : _b.dts : void 0)\n      };\n      return createBuildInfo(program2, bundle);\n    }\n    let fileIdsList;\n    let fileNamesToFileIdListId;\n    let emitSignatures;\n    const fileInfos = arrayFrom(state.fileInfos.entries(), ([key, value]) => {\n      var _a3, _b2;\n      const fileId = toFileId(key);\n      tryAddRoot(key, fileId);\n      Debug.assert(fileNames[fileId - 1] === relativeToBuildInfo(key));\n      const oldSignature = (_a3 = state.oldSignatures) == null ? void 0 : _a3.get(key);\n      const actualSignature = oldSignature !== void 0 ? oldSignature || void 0 : value.signature;\n      if (state.compilerOptions.composite) {\n        const file = state.program.getSourceFileByPath(key);\n        if (!isJsonSourceFile(file) && sourceFileMayBeEmitted(file, state.program)) {\n          const emitSignature = (_b2 = state.emitSignatures) == null ? void 0 : _b2.get(key);\n          if (emitSignature !== actualSignature) {\n            (emitSignatures || (emitSignatures = [])).push(emitSignature === void 0 ? fileId : [fileId, !isString(emitSignature) && emitSignature[0] === actualSignature ? emptyArray : emitSignature]);\n          }\n        }\n      }\n      return value.version === actualSignature ? value.affectsGlobalScope || value.impliedFormat ? { version: value.version, signature: void 0, affectsGlobalScope: value.affectsGlobalScope, impliedFormat: value.impliedFormat } : value.version : actualSignature !== void 0 ? oldSignature === void 0 ? value : { version: value.version, signature: actualSignature, affectsGlobalScope: value.affectsGlobalScope, impliedFormat: value.impliedFormat } : { version: value.version, signature: false, affectsGlobalScope: value.affectsGlobalScope, impliedFormat: value.impliedFormat };\n    });\n    let referencedMap;\n    if (state.referencedMap) {\n      referencedMap = arrayFrom(state.referencedMap.keys()).sort(compareStringsCaseSensitive).map((key) => [\n        toFileId(key),\n        toFileIdListId(state.referencedMap.getValues(key))\n      ]);\n    }\n    let exportedModulesMap;\n    if (state.exportedModulesMap) {\n      exportedModulesMap = mapDefined(arrayFrom(state.exportedModulesMap.keys()).sort(compareStringsCaseSensitive), (key) => {\n        var _a3;\n        const oldValue = (_a3 = state.oldExportedModulesMap) == null ? void 0 : _a3.get(key);\n        if (oldValue === void 0)\n          return [toFileId(key), toFileIdListId(state.exportedModulesMap.getValues(key))];\n        if (oldValue)\n          return [toFileId(key), toFileIdListId(oldValue)];\n        return void 0;\n      });\n    }\n    let semanticDiagnosticsPerFile;\n    if (state.semanticDiagnosticsPerFile) {\n      for (const key of arrayFrom(state.semanticDiagnosticsPerFile.keys()).sort(compareStringsCaseSensitive)) {\n        const value = state.semanticDiagnosticsPerFile.get(key);\n        (semanticDiagnosticsPerFile || (semanticDiagnosticsPerFile = [])).push(value.length ? [\n          toFileId(key),\n          convertToReusableDiagnostics(value, relativeToBuildInfo)\n        ] : toFileId(key));\n      }\n    }\n    let affectedFilesPendingEmit;\n    if ((_c = state.affectedFilesPendingEmit) == null ? void 0 : _c.size) {\n      const fullEmitForOptions = getBuilderFileEmit(state.compilerOptions);\n      const seenFiles = /* @__PURE__ */ new Set();\n      for (const path of arrayFrom(state.affectedFilesPendingEmit.keys()).sort(compareStringsCaseSensitive)) {\n        if (tryAddToSet(seenFiles, path)) {\n          const file = state.program.getSourceFileByPath(path);\n          if (!file || !sourceFileMayBeEmitted(file, state.program))\n            continue;\n          const fileId = toFileId(path), pendingEmit = state.affectedFilesPendingEmit.get(path);\n          (affectedFilesPendingEmit || (affectedFilesPendingEmit = [])).push(pendingEmit === fullEmitForOptions ? fileId : pendingEmit === 8 ? [fileId] : [fileId, pendingEmit]);\n        }\n      }\n    }\n    let changeFileSet;\n    if (state.changedFilesSet.size) {\n      for (const path of arrayFrom(state.changedFilesSet.keys()).sort(compareStringsCaseSensitive)) {\n        (changeFileSet || (changeFileSet = [])).push(toFileId(path));\n      }\n    }\n    const program = {\n      fileNames,\n      fileInfos,\n      root,\n      options: convertToProgramBuildInfoCompilerOptions(state.compilerOptions),\n      fileIdsList,\n      referencedMap,\n      exportedModulesMap,\n      semanticDiagnosticsPerFile,\n      affectedFilesPendingEmit,\n      changeFileSet,\n      emitSignatures,\n      latestChangedDtsFile\n    };\n    return createBuildInfo(program, bundle);\n    function relativeToBuildInfoEnsuringAbsolutePath(path) {\n      return relativeToBuildInfo(getNormalizedAbsolutePath(path, currentDirectory));\n    }\n    function relativeToBuildInfo(path) {\n      return ensurePathIsNonModuleName(getRelativePathFromDirectory(buildInfoDirectory, path, state.program.getCanonicalFileName));\n    }\n    function toFileId(path) {\n      let fileId = fileNameToFileId.get(path);\n      if (fileId === void 0) {\n        fileNames.push(relativeToBuildInfo(path));\n        fileNameToFileId.set(path, fileId = fileNames.length);\n      }\n      return fileId;\n    }\n    function toFileIdListId(set) {\n      const fileIds = arrayFrom(set.keys(), toFileId).sort(compareValues);\n      const key = fileIds.join();\n      let fileIdListId = fileNamesToFileIdListId == null ? void 0 : fileNamesToFileIdListId.get(key);\n      if (fileIdListId === void 0) {\n        (fileIdsList || (fileIdsList = [])).push(fileIds);\n        (fileNamesToFileIdListId || (fileNamesToFileIdListId = /* @__PURE__ */ new Map())).set(key, fileIdListId = fileIdsList.length);\n      }\n      return fileIdListId;\n    }\n    function tryAddRoot(path, fileId) {\n      const file = state.program.getSourceFile(path);\n      if (!state.program.getFileIncludeReasons().get(file.path).some((r) => r.kind === 0))\n        return;\n      if (!root.length)\n        return root.push(fileId);\n      const last2 = root[root.length - 1];\n      const isLastStartEnd = isArray(last2);\n      if (isLastStartEnd && last2[1] === fileId - 1)\n        return last2[1] = fileId;\n      if (isLastStartEnd || root.length === 1 || last2 !== fileId - 1)\n        return root.push(fileId);\n      const lastButOne = root[root.length - 2];\n      if (!isNumber(lastButOne) || lastButOne !== last2 - 1)\n        return root.push(fileId);\n      root[root.length - 2] = [lastButOne, fileId];\n      return root.length = root.length - 1;\n    }\n    function convertToProgramBuildInfoCompilerOptions(options) {\n      let result;\n      const { optionsNameMap } = getOptionsNameMap();\n      for (const name of getOwnKeys(options).sort(compareStringsCaseSensitive)) {\n        const optionInfo = optionsNameMap.get(name.toLowerCase());\n        if (optionInfo == null ? void 0 : optionInfo.affectsBuildInfo) {\n          (result || (result = {}))[name] = convertToReusableCompilerOptionValue(optionInfo, options[name], relativeToBuildInfoEnsuringAbsolutePath);\n        }\n      }\n      return result;\n    }\n  }\n  function convertToReusableCompilerOptionValue(option, value, relativeToBuildInfo) {\n    if (option) {\n      Debug.assert(option.type !== \"listOrElement\");\n      if (option.type === \"list\") {\n        const values = value;\n        if (option.element.isFilePath && values.length) {\n          return values.map(relativeToBuildInfo);\n        }\n      } else if (option.isFilePath) {\n        return relativeToBuildInfo(value);\n      }\n    }\n    return value;\n  }\n  function convertToReusableDiagnostics(diagnostics, relativeToBuildInfo) {\n    Debug.assert(!!diagnostics.length);\n    return diagnostics.map((diagnostic) => {\n      const result = convertToReusableDiagnosticRelatedInformation(diagnostic, relativeToBuildInfo);\n      result.reportsUnnecessary = diagnostic.reportsUnnecessary;\n      result.reportDeprecated = diagnostic.reportsDeprecated;\n      result.source = diagnostic.source;\n      result.skippedOn = diagnostic.skippedOn;\n      const { relatedInformation } = diagnostic;\n      result.relatedInformation = relatedInformation ? relatedInformation.length ? relatedInformation.map((r) => convertToReusableDiagnosticRelatedInformation(r, relativeToBuildInfo)) : [] : void 0;\n      return result;\n    });\n  }\n  function convertToReusableDiagnosticRelatedInformation(diagnostic, relativeToBuildInfo) {\n    const { file } = diagnostic;\n    return {\n      ...diagnostic,\n      file: file ? relativeToBuildInfo(file.resolvedPath) : void 0\n    };\n  }\n  function getBuilderCreationParameters(newProgramOrRootNames, hostOrOptions, oldProgramOrHost, configFileParsingDiagnosticsOrOldProgram, configFileParsingDiagnostics, projectReferences) {\n    let host;\n    let newProgram;\n    let oldProgram;\n    if (newProgramOrRootNames === void 0) {\n      Debug.assert(hostOrOptions === void 0);\n      host = oldProgramOrHost;\n      oldProgram = configFileParsingDiagnosticsOrOldProgram;\n      Debug.assert(!!oldProgram);\n      newProgram = oldProgram.getProgram();\n    } else if (isArray(newProgramOrRootNames)) {\n      oldProgram = configFileParsingDiagnosticsOrOldProgram;\n      newProgram = createProgram({\n        rootNames: newProgramOrRootNames,\n        options: hostOrOptions,\n        host: oldProgramOrHost,\n        oldProgram: oldProgram && oldProgram.getProgramOrUndefined(),\n        configFileParsingDiagnostics,\n        projectReferences\n      });\n      host = oldProgramOrHost;\n    } else {\n      newProgram = newProgramOrRootNames;\n      host = hostOrOptions;\n      oldProgram = oldProgramOrHost;\n      configFileParsingDiagnostics = configFileParsingDiagnosticsOrOldProgram;\n    }\n    return { host, newProgram, oldProgram, configFileParsingDiagnostics: configFileParsingDiagnostics || emptyArray };\n  }\n  function getTextHandlingSourceMapForSignature(text, data) {\n    return (data == null ? void 0 : data.sourceMapUrlPos) !== void 0 ? text.substring(0, data.sourceMapUrlPos) : text;\n  }\n  function computeSignatureWithDiagnostics(program, sourceFile, text, host, data) {\n    var _a2, _b;\n    text = getTextHandlingSourceMapForSignature(text, data);\n    let sourceFileDirectory;\n    if ((_a2 = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a2.length) {\n      text += data.diagnostics.map((diagnostic) => `${locationInfo(diagnostic)}${DiagnosticCategory[diagnostic.category]}${diagnostic.code}: ${flattenDiagnosticMessageText22(diagnostic.messageText)}`).join(\"\\n\");\n    }\n    return ((_b = host.createHash) != null ? _b : generateDjb2Hash)(text);\n    function flattenDiagnosticMessageText22(diagnostic) {\n      return isString(diagnostic) ? diagnostic : diagnostic === void 0 ? \"\" : !diagnostic.next ? diagnostic.messageText : diagnostic.messageText + diagnostic.next.map(flattenDiagnosticMessageText22).join(\"\\n\");\n    }\n    function locationInfo(diagnostic) {\n      if (diagnostic.file.resolvedPath === sourceFile.resolvedPath)\n        return `(${diagnostic.start},${diagnostic.length})`;\n      if (sourceFileDirectory === void 0)\n        sourceFileDirectory = getDirectoryPath(sourceFile.resolvedPath);\n      return `${ensurePathIsNonModuleName(getRelativePathFromDirectory(sourceFileDirectory, diagnostic.file.resolvedPath, program.getCanonicalFileName))}(${diagnostic.start},${diagnostic.length})`;\n    }\n  }\n  function computeSignature(text, host, data) {\n    var _a2;\n    return ((_a2 = host.createHash) != null ? _a2 : generateDjb2Hash)(getTextHandlingSourceMapForSignature(text, data));\n  }\n  function createBuilderProgram(kind, { newProgram, host, oldProgram, configFileParsingDiagnostics }) {\n    let oldState = oldProgram && oldProgram.getState();\n    if (oldState && newProgram === oldState.program && configFileParsingDiagnostics === newProgram.getConfigFileParsingDiagnostics()) {\n      newProgram = void 0;\n      oldState = void 0;\n      return oldProgram;\n    }\n    const state = createBuilderProgramState(newProgram, oldState);\n    newProgram.getBuildInfo = (bundle) => getBuildInfo2(state, bundle);\n    newProgram = void 0;\n    oldProgram = void 0;\n    oldState = void 0;\n    const getState = () => state;\n    const builderProgram = createRedirectedBuilderProgram(getState, configFileParsingDiagnostics);\n    builderProgram.getState = getState;\n    builderProgram.saveEmitState = () => backupBuilderProgramEmitState(state);\n    builderProgram.restoreEmitState = (saved) => restoreBuilderProgramEmitState(state, saved);\n    builderProgram.hasChangedEmitSignature = () => !!state.hasChangedEmitSignature;\n    builderProgram.getAllDependencies = (sourceFile) => BuilderState.getAllDependencies(state, Debug.checkDefined(state.program), sourceFile);\n    builderProgram.getSemanticDiagnostics = getSemanticDiagnostics;\n    builderProgram.emit = emit;\n    builderProgram.releaseProgram = () => releaseCache(state);\n    if (kind === 0) {\n      builderProgram.getSemanticDiagnosticsOfNextAffectedFile = getSemanticDiagnosticsOfNextAffectedFile;\n    } else if (kind === 1) {\n      builderProgram.getSemanticDiagnosticsOfNextAffectedFile = getSemanticDiagnosticsOfNextAffectedFile;\n      builderProgram.emitNextAffectedFile = emitNextAffectedFile;\n      builderProgram.emitBuildInfo = emitBuildInfo;\n    } else {\n      notImplemented();\n    }\n    return builderProgram;\n    function emitBuildInfo(writeFile2, cancellationToken) {\n      if (state.buildInfoEmitPending) {\n        const result = Debug.checkDefined(state.program).emitBuildInfo(writeFile2 || maybeBind(host, host.writeFile), cancellationToken);\n        state.buildInfoEmitPending = false;\n        return result;\n      }\n      return emitSkippedWithNoDiagnostics;\n    }\n    function emitNextAffectedFile(writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) {\n      var _a2, _b, _c, _d, _e;\n      let affected = getNextAffectedFile(state, cancellationToken, host);\n      const programEmitKind = getBuilderFileEmit(state.compilerOptions);\n      let emitKind = emitOnlyDtsFiles ? programEmitKind & 24 : programEmitKind;\n      if (!affected) {\n        if (!outFile(state.compilerOptions)) {\n          const pendingAffectedFile = getNextAffectedFilePendingEmit(state, emitOnlyDtsFiles);\n          if (!pendingAffectedFile) {\n            if (!state.buildInfoEmitPending)\n              return void 0;\n            const affected2 = state.program;\n            const result2 = affected2.emitBuildInfo(writeFile2 || maybeBind(host, host.writeFile), cancellationToken);\n            state.buildInfoEmitPending = false;\n            return { result: result2, affected: affected2 };\n          }\n          ({ affectedFile: affected, emitKind } = pendingAffectedFile);\n        } else {\n          if (!state.programEmitPending)\n            return void 0;\n          emitKind = state.programEmitPending;\n          if (emitOnlyDtsFiles)\n            emitKind = emitKind & 24;\n          if (!emitKind)\n            return void 0;\n          affected = state.program;\n        }\n      }\n      let emitOnly;\n      if (emitKind & 7)\n        emitOnly = 0;\n      if (emitKind & 24)\n        emitOnly = emitOnly === void 0 ? 1 : void 0;\n      if (affected === state.program) {\n        state.programEmitPending = state.changedFilesSet.size ? getPendingEmitKind(programEmitKind, emitKind) : state.programEmitPending ? getPendingEmitKind(state.programEmitPending, emitKind) : void 0;\n      }\n      const result = state.program.emit(affected === state.program ? void 0 : affected, getWriteFileCallback(writeFile2, customTransformers), cancellationToken, emitOnly, customTransformers);\n      if (affected !== state.program) {\n        const affectedSourceFile = affected;\n        state.seenAffectedFiles.add(affectedSourceFile.resolvedPath);\n        if (state.affectedFilesIndex !== void 0)\n          state.affectedFilesIndex++;\n        state.buildInfoEmitPending = true;\n        const existing = ((_a2 = state.seenEmittedFiles) == null ? void 0 : _a2.get(affectedSourceFile.resolvedPath)) || 0;\n        ((_b = state.seenEmittedFiles) != null ? _b : state.seenEmittedFiles = /* @__PURE__ */ new Map()).set(affectedSourceFile.resolvedPath, emitKind | existing);\n        const existingPending = ((_c = state.affectedFilesPendingEmit) == null ? void 0 : _c.get(affectedSourceFile.resolvedPath)) || programEmitKind;\n        const pendingKind = getPendingEmitKind(existingPending, emitKind | existing);\n        if (pendingKind)\n          ((_d = state.affectedFilesPendingEmit) != null ? _d : state.affectedFilesPendingEmit = /* @__PURE__ */ new Map()).set(affectedSourceFile.resolvedPath, pendingKind);\n        else\n          (_e = state.affectedFilesPendingEmit) == null ? void 0 : _e.delete(affectedSourceFile.resolvedPath);\n      } else {\n        state.changedFilesSet.clear();\n      }\n      return { result, affected };\n    }\n    function getWriteFileCallback(writeFile2, customTransformers) {\n      if (!getEmitDeclarations(state.compilerOptions))\n        return writeFile2 || maybeBind(host, host.writeFile);\n      return (fileName, text, writeByteOrderMark, onError, sourceFiles, data) => {\n        var _a2, _b, _c, _d, _e, _f, _g;\n        if (isDeclarationFileName(fileName)) {\n          if (!outFile(state.compilerOptions)) {\n            Debug.assert((sourceFiles == null ? void 0 : sourceFiles.length) === 1);\n            let emitSignature;\n            if (!customTransformers) {\n              const file = sourceFiles[0];\n              const info = state.fileInfos.get(file.resolvedPath);\n              if (info.signature === file.version) {\n                const signature = computeSignatureWithDiagnostics(state.program, file, text, host, data);\n                if (!((_a2 = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a2.length))\n                  emitSignature = signature;\n                if (signature !== file.version) {\n                  if (host.storeFilesChangingSignatureDuringEmit)\n                    ((_b = state.filesChangingSignature) != null ? _b : state.filesChangingSignature = /* @__PURE__ */ new Set()).add(file.resolvedPath);\n                  if (state.exportedModulesMap)\n                    BuilderState.updateExportedModules(state, file, file.exportedModulesFromDeclarationEmit);\n                  if (state.affectedFiles) {\n                    const existing = (_c = state.oldSignatures) == null ? void 0 : _c.get(file.resolvedPath);\n                    if (existing === void 0)\n                      ((_d = state.oldSignatures) != null ? _d : state.oldSignatures = /* @__PURE__ */ new Map()).set(file.resolvedPath, info.signature || false);\n                    info.signature = signature;\n                  } else {\n                    info.signature = signature;\n                    (_e = state.oldExportedModulesMap) == null ? void 0 : _e.clear();\n                  }\n                }\n              }\n            }\n            if (state.compilerOptions.composite) {\n              const filePath = sourceFiles[0].resolvedPath;\n              emitSignature = handleNewSignature((_f = state.emitSignatures) == null ? void 0 : _f.get(filePath), emitSignature);\n              if (!emitSignature)\n                return;\n              ((_g = state.emitSignatures) != null ? _g : state.emitSignatures = /* @__PURE__ */ new Map()).set(filePath, emitSignature);\n            }\n          } else if (state.compilerOptions.composite) {\n            const newSignature = handleNewSignature(state.outSignature, void 0);\n            if (!newSignature)\n              return;\n            state.outSignature = newSignature;\n          }\n        }\n        if (writeFile2)\n          writeFile2(fileName, text, writeByteOrderMark, onError, sourceFiles, data);\n        else if (host.writeFile)\n          host.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data);\n        else\n          state.program.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data);\n        function handleNewSignature(oldSignatureFormat, newSignature) {\n          const oldSignature = !oldSignatureFormat || isString(oldSignatureFormat) ? oldSignatureFormat : oldSignatureFormat[0];\n          newSignature != null ? newSignature : newSignature = computeSignature(text, host, data);\n          if (newSignature === oldSignature) {\n            if (oldSignatureFormat === oldSignature)\n              return void 0;\n            else if (data)\n              data.differsOnlyInMap = true;\n            else\n              data = { differsOnlyInMap: true };\n          } else {\n            state.hasChangedEmitSignature = true;\n            state.latestChangedDtsFile = fileName;\n          }\n          return newSignature;\n        }\n      };\n    }\n    function emit(targetSourceFile, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) {\n      if (kind === 1) {\n        assertSourceFileOkWithoutNextAffectedCall(state, targetSourceFile);\n      }\n      const result = handleNoEmitOptions(builderProgram, targetSourceFile, writeFile2, cancellationToken);\n      if (result)\n        return result;\n      if (!targetSourceFile) {\n        if (kind === 1) {\n          let sourceMaps = [];\n          let emitSkipped = false;\n          let diagnostics;\n          let emittedFiles = [];\n          let affectedEmitResult;\n          while (affectedEmitResult = emitNextAffectedFile(writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers)) {\n            emitSkipped = emitSkipped || affectedEmitResult.result.emitSkipped;\n            diagnostics = addRange(diagnostics, affectedEmitResult.result.diagnostics);\n            emittedFiles = addRange(emittedFiles, affectedEmitResult.result.emittedFiles);\n            sourceMaps = addRange(sourceMaps, affectedEmitResult.result.sourceMaps);\n          }\n          return {\n            emitSkipped,\n            diagnostics: diagnostics || emptyArray,\n            emittedFiles,\n            sourceMaps\n          };\n        } else {\n          clearAffectedFilesPendingEmit(state, emitOnlyDtsFiles);\n        }\n      }\n      return Debug.checkDefined(state.program).emit(targetSourceFile, getWriteFileCallback(writeFile2, customTransformers), cancellationToken, emitOnlyDtsFiles, customTransformers);\n    }\n    function getSemanticDiagnosticsOfNextAffectedFile(cancellationToken, ignoreSourceFile) {\n      while (true) {\n        const affected = getNextAffectedFile(state, cancellationToken, host);\n        let result;\n        if (!affected)\n          return void 0;\n        else if (affected !== state.program) {\n          const affectedSourceFile = affected;\n          if (!ignoreSourceFile || !ignoreSourceFile(affectedSourceFile)) {\n            result = getSemanticDiagnosticsOfFile(state, affectedSourceFile, cancellationToken);\n          }\n          state.seenAffectedFiles.add(affectedSourceFile.resolvedPath);\n          state.affectedFilesIndex++;\n          state.buildInfoEmitPending = true;\n          if (!result)\n            continue;\n        } else {\n          result = state.program.getSemanticDiagnostics(void 0, cancellationToken);\n          state.changedFilesSet.clear();\n          state.programEmitPending = getBuilderFileEmit(state.compilerOptions);\n        }\n        return { result, affected };\n      }\n    }\n    function getSemanticDiagnostics(sourceFile, cancellationToken) {\n      assertSourceFileOkWithoutNextAffectedCall(state, sourceFile);\n      const compilerOptions = Debug.checkDefined(state.program).getCompilerOptions();\n      if (outFile(compilerOptions)) {\n        Debug.assert(!state.semanticDiagnosticsPerFile);\n        return Debug.checkDefined(state.program).getSemanticDiagnostics(sourceFile, cancellationToken);\n      }\n      if (sourceFile) {\n        return getSemanticDiagnosticsOfFile(state, sourceFile, cancellationToken);\n      }\n      while (getSemanticDiagnosticsOfNextAffectedFile(cancellationToken)) {\n      }\n      let diagnostics;\n      for (const sourceFile2 of Debug.checkDefined(state.program).getSourceFiles()) {\n        diagnostics = addRange(diagnostics, getSemanticDiagnosticsOfFile(state, sourceFile2, cancellationToken));\n      }\n      return diagnostics || emptyArray;\n    }\n  }\n  function addToAffectedFilesPendingEmit(state, affectedFilePendingEmit, kind) {\n    var _a2, _b;\n    const existingKind = ((_a2 = state.affectedFilesPendingEmit) == null ? void 0 : _a2.get(affectedFilePendingEmit)) || 0;\n    ((_b = state.affectedFilesPendingEmit) != null ? _b : state.affectedFilesPendingEmit = /* @__PURE__ */ new Map()).set(affectedFilePendingEmit, existingKind | kind);\n  }\n  function toBuilderStateFileInfoForMultiEmit(fileInfo) {\n    return isString(fileInfo) ? { version: fileInfo, signature: fileInfo, affectsGlobalScope: void 0, impliedFormat: void 0 } : isString(fileInfo.signature) ? fileInfo : { version: fileInfo.version, signature: fileInfo.signature === false ? void 0 : fileInfo.version, affectsGlobalScope: fileInfo.affectsGlobalScope, impliedFormat: fileInfo.impliedFormat };\n  }\n  function toBuilderFileEmit(value, fullEmitForOptions) {\n    return isNumber(value) ? fullEmitForOptions : value[1] || 8;\n  }\n  function toProgramEmitPending(value, options) {\n    return !value ? getBuilderFileEmit(options || {}) : value;\n  }\n  function createBuilderProgramUsingProgramBuildInfo(buildInfo, buildInfoPath, host) {\n    var _a2, _b, _c, _d;\n    const program = buildInfo.program;\n    const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory()));\n    const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames());\n    let state;\n    const filePaths = (_a2 = program.fileNames) == null ? void 0 : _a2.map(toPath3);\n    let filePathsSetList;\n    const latestChangedDtsFile = program.latestChangedDtsFile ? toAbsolutePath(program.latestChangedDtsFile) : void 0;\n    if (isProgramBundleEmitBuildInfo(program)) {\n      const fileInfos = /* @__PURE__ */ new Map();\n      program.fileInfos.forEach((fileInfo, index) => {\n        const path = toFilePath(index + 1);\n        fileInfos.set(path, isString(fileInfo) ? { version: fileInfo, signature: void 0, affectsGlobalScope: void 0, impliedFormat: void 0 } : fileInfo);\n      });\n      state = {\n        fileInfos,\n        compilerOptions: program.options ? convertToOptionsWithAbsolutePaths(program.options, toAbsolutePath) : {},\n        latestChangedDtsFile,\n        outSignature: program.outSignature,\n        programEmitPending: program.pendingEmit === void 0 ? void 0 : toProgramEmitPending(program.pendingEmit, program.options),\n        bundle: buildInfo.bundle\n      };\n    } else {\n      filePathsSetList = (_b = program.fileIdsList) == null ? void 0 : _b.map((fileIds) => new Set(fileIds.map(toFilePath)));\n      const fileInfos = /* @__PURE__ */ new Map();\n      const emitSignatures = ((_c = program.options) == null ? void 0 : _c.composite) && !outFile(program.options) ? /* @__PURE__ */ new Map() : void 0;\n      program.fileInfos.forEach((fileInfo, index) => {\n        const path = toFilePath(index + 1);\n        const stateFileInfo = toBuilderStateFileInfoForMultiEmit(fileInfo);\n        fileInfos.set(path, stateFileInfo);\n        if (emitSignatures && stateFileInfo.signature)\n          emitSignatures.set(path, stateFileInfo.signature);\n      });\n      (_d = program.emitSignatures) == null ? void 0 : _d.forEach((value) => {\n        if (isNumber(value))\n          emitSignatures.delete(toFilePath(value));\n        else {\n          const key = toFilePath(value[0]);\n          emitSignatures.set(key, !isString(value[1]) && !value[1].length ? [emitSignatures.get(key)] : value[1]);\n        }\n      });\n      const fullEmitForOptions = program.affectedFilesPendingEmit ? getBuilderFileEmit(program.options || {}) : void 0;\n      state = {\n        fileInfos,\n        compilerOptions: program.options ? convertToOptionsWithAbsolutePaths(program.options, toAbsolutePath) : {},\n        referencedMap: toManyToManyPathMap(program.referencedMap),\n        exportedModulesMap: toManyToManyPathMap(program.exportedModulesMap),\n        semanticDiagnosticsPerFile: program.semanticDiagnosticsPerFile && arrayToMap(program.semanticDiagnosticsPerFile, (value) => toFilePath(isNumber(value) ? value : value[0]), (value) => isNumber(value) ? emptyArray : value[1]),\n        hasReusableDiagnostic: true,\n        affectedFilesPendingEmit: program.affectedFilesPendingEmit && arrayToMap(program.affectedFilesPendingEmit, (value) => toFilePath(isNumber(value) ? value : value[0]), (value) => toBuilderFileEmit(value, fullEmitForOptions)),\n        changedFilesSet: new Set(map(program.changeFileSet, toFilePath)),\n        latestChangedDtsFile,\n        emitSignatures: (emitSignatures == null ? void 0 : emitSignatures.size) ? emitSignatures : void 0\n      };\n    }\n    return {\n      getState: () => state,\n      saveEmitState: noop,\n      restoreEmitState: noop,\n      getProgram: notImplemented,\n      getProgramOrUndefined: returnUndefined,\n      releaseProgram: noop,\n      getCompilerOptions: () => state.compilerOptions,\n      getSourceFile: notImplemented,\n      getSourceFiles: notImplemented,\n      getOptionsDiagnostics: notImplemented,\n      getGlobalDiagnostics: notImplemented,\n      getConfigFileParsingDiagnostics: notImplemented,\n      getSyntacticDiagnostics: notImplemented,\n      getDeclarationDiagnostics: notImplemented,\n      getSemanticDiagnostics: notImplemented,\n      emit: notImplemented,\n      getAllDependencies: notImplemented,\n      getCurrentDirectory: notImplemented,\n      emitNextAffectedFile: notImplemented,\n      getSemanticDiagnosticsOfNextAffectedFile: notImplemented,\n      emitBuildInfo: notImplemented,\n      close: noop,\n      hasChangedEmitSignature: returnFalse\n    };\n    function toPath3(path) {\n      return toPath(path, buildInfoDirectory, getCanonicalFileName);\n    }\n    function toAbsolutePath(path) {\n      return getNormalizedAbsolutePath(path, buildInfoDirectory);\n    }\n    function toFilePath(fileId) {\n      return filePaths[fileId - 1];\n    }\n    function toFilePathsSet(fileIdsListId) {\n      return filePathsSetList[fileIdsListId - 1];\n    }\n    function toManyToManyPathMap(referenceMap) {\n      if (!referenceMap) {\n        return void 0;\n      }\n      const map2 = BuilderState.createManyToManyPathMap();\n      referenceMap.forEach(([fileId, fileIdListId]) => map2.set(toFilePath(fileId), toFilePathsSet(fileIdListId)));\n      return map2;\n    }\n  }\n  function getBuildInfoFileVersionMap(program, buildInfoPath, host) {\n    const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory()));\n    const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames());\n    const fileInfos = /* @__PURE__ */ new Map();\n    let rootIndex = 0;\n    const roots = [];\n    program.fileInfos.forEach((fileInfo, index) => {\n      const path = toPath(program.fileNames[index], buildInfoDirectory, getCanonicalFileName);\n      const version2 = isString(fileInfo) ? fileInfo : fileInfo.version;\n      fileInfos.set(path, version2);\n      if (rootIndex < program.root.length) {\n        const current = program.root[rootIndex];\n        const fileId = index + 1;\n        if (isArray(current)) {\n          if (current[0] <= fileId && fileId <= current[1]) {\n            roots.push(path);\n            if (current[1] === fileId)\n              rootIndex++;\n          }\n        } else if (current === fileId) {\n          roots.push(path);\n          rootIndex++;\n        }\n      }\n    });\n    return { fileInfos, roots };\n  }\n  function createRedirectedBuilderProgram(getState, configFileParsingDiagnostics) {\n    return {\n      getState: notImplemented,\n      saveEmitState: noop,\n      restoreEmitState: noop,\n      getProgram,\n      getProgramOrUndefined: () => getState().program,\n      releaseProgram: () => getState().program = void 0,\n      getCompilerOptions: () => getState().compilerOptions,\n      getSourceFile: (fileName) => getProgram().getSourceFile(fileName),\n      getSourceFiles: () => getProgram().getSourceFiles(),\n      getOptionsDiagnostics: (cancellationToken) => getProgram().getOptionsDiagnostics(cancellationToken),\n      getGlobalDiagnostics: (cancellationToken) => getProgram().getGlobalDiagnostics(cancellationToken),\n      getConfigFileParsingDiagnostics: () => configFileParsingDiagnostics,\n      getSyntacticDiagnostics: (sourceFile, cancellationToken) => getProgram().getSyntacticDiagnostics(sourceFile, cancellationToken),\n      getDeclarationDiagnostics: (sourceFile, cancellationToken) => getProgram().getDeclarationDiagnostics(sourceFile, cancellationToken),\n      getSemanticDiagnostics: (sourceFile, cancellationToken) => getProgram().getSemanticDiagnostics(sourceFile, cancellationToken),\n      emit: (sourceFile, writeFile2, cancellationToken, emitOnlyDts, customTransformers) => getProgram().emit(sourceFile, writeFile2, cancellationToken, emitOnlyDts, customTransformers),\n      emitBuildInfo: (writeFile2, cancellationToken) => getProgram().emitBuildInfo(writeFile2, cancellationToken),\n      getAllDependencies: notImplemented,\n      getCurrentDirectory: () => getProgram().getCurrentDirectory(),\n      close: noop\n    };\n    function getProgram() {\n      return Debug.checkDefined(getState().program);\n    }\n  }\n  var BuilderFileEmit, BuilderProgramKind;\n  var init_builder = __esm({\n    \"src/compiler/builder.ts\"() {\n      \"use strict\";\n      init_ts2();\n      init_ts2();\n      BuilderFileEmit = /* @__PURE__ */ ((BuilderFileEmit2) => {\n        BuilderFileEmit2[BuilderFileEmit2[\"None\"] = 0] = \"None\";\n        BuilderFileEmit2[BuilderFileEmit2[\"Js\"] = 1] = \"Js\";\n        BuilderFileEmit2[BuilderFileEmit2[\"JsMap\"] = 2] = \"JsMap\";\n        BuilderFileEmit2[BuilderFileEmit2[\"JsInlineMap\"] = 4] = \"JsInlineMap\";\n        BuilderFileEmit2[BuilderFileEmit2[\"Dts\"] = 8] = \"Dts\";\n        BuilderFileEmit2[BuilderFileEmit2[\"DtsMap\"] = 16] = \"DtsMap\";\n        BuilderFileEmit2[BuilderFileEmit2[\"AllJs\"] = 7] = \"AllJs\";\n        BuilderFileEmit2[BuilderFileEmit2[\"AllDts\"] = 24] = \"AllDts\";\n        BuilderFileEmit2[BuilderFileEmit2[\"All\"] = 31] = \"All\";\n        return BuilderFileEmit2;\n      })(BuilderFileEmit || {});\n      BuilderProgramKind = /* @__PURE__ */ ((BuilderProgramKind2) => {\n        BuilderProgramKind2[BuilderProgramKind2[\"SemanticDiagnosticsBuilderProgram\"] = 0] = \"SemanticDiagnosticsBuilderProgram\";\n        BuilderProgramKind2[BuilderProgramKind2[\"EmitAndSemanticDiagnosticsBuilderProgram\"] = 1] = \"EmitAndSemanticDiagnosticsBuilderProgram\";\n        return BuilderProgramKind2;\n      })(BuilderProgramKind || {});\n    }\n  });\n  function createSemanticDiagnosticsBuilderProgram(newProgramOrRootNames, hostOrOptions, oldProgramOrHost, configFileParsingDiagnosticsOrOldProgram, configFileParsingDiagnostics, projectReferences) {\n    return createBuilderProgram(0, getBuilderCreationParameters(newProgramOrRootNames, hostOrOptions, oldProgramOrHost, configFileParsingDiagnosticsOrOldProgram, configFileParsingDiagnostics, projectReferences));\n  }\n  function createEmitAndSemanticDiagnosticsBuilderProgram(newProgramOrRootNames, hostOrOptions, oldProgramOrHost, configFileParsingDiagnosticsOrOldProgram, configFileParsingDiagnostics, projectReferences) {\n    return createBuilderProgram(1, getBuilderCreationParameters(newProgramOrRootNames, hostOrOptions, oldProgramOrHost, configFileParsingDiagnosticsOrOldProgram, configFileParsingDiagnostics, projectReferences));\n  }\n  function createAbstractBuilder(newProgramOrRootNames, hostOrOptions, oldProgramOrHost, configFileParsingDiagnosticsOrOldProgram, configFileParsingDiagnostics, projectReferences) {\n    const { newProgram, configFileParsingDiagnostics: newConfigFileParsingDiagnostics } = getBuilderCreationParameters(newProgramOrRootNames, hostOrOptions, oldProgramOrHost, configFileParsingDiagnosticsOrOldProgram, configFileParsingDiagnostics, projectReferences);\n    return createRedirectedBuilderProgram(() => ({ program: newProgram, compilerOptions: newProgram.getCompilerOptions() }), newConfigFileParsingDiagnostics);\n  }\n  var init_builderPublic = __esm({\n    \"src/compiler/builderPublic.ts\"() {\n      \"use strict\";\n      init_ts2();\n    }\n  });\n  function removeIgnoredPath(path) {\n    if (endsWith(path, \"/node_modules/.staging\")) {\n      return removeSuffix(path, \"/.staging\");\n    }\n    return some(ignoredPaths, (searchPath) => stringContains(path, searchPath)) ? void 0 : path;\n  }\n  function canWatchDirectoryOrFile(dirPath) {\n    const rootLength = getRootLength(dirPath);\n    if (dirPath.length === rootLength) {\n      return false;\n    }\n    let nextDirectorySeparator = dirPath.indexOf(directorySeparator, rootLength);\n    if (nextDirectorySeparator === -1) {\n      return false;\n    }\n    let pathPartForUserCheck = dirPath.substring(rootLength, nextDirectorySeparator + 1);\n    const isNonDirectorySeparatorRoot = rootLength > 1 || dirPath.charCodeAt(0) !== 47;\n    if (isNonDirectorySeparatorRoot && dirPath.search(/[a-zA-Z]:/) !== 0 && pathPartForUserCheck.search(/[a-zA-Z]\\$\\//) === 0) {\n      nextDirectorySeparator = dirPath.indexOf(directorySeparator, nextDirectorySeparator + 1);\n      if (nextDirectorySeparator === -1) {\n        return false;\n      }\n      pathPartForUserCheck = dirPath.substring(rootLength + pathPartForUserCheck.length, nextDirectorySeparator + 1);\n    }\n    if (isNonDirectorySeparatorRoot && pathPartForUserCheck.search(/users\\//i) !== 0) {\n      return true;\n    }\n    for (let searchIndex = nextDirectorySeparator + 1, searchLevels = 2; searchLevels > 0; searchLevels--) {\n      searchIndex = dirPath.indexOf(directorySeparator, searchIndex) + 1;\n      if (searchIndex === 0) {\n        return false;\n      }\n    }\n    return true;\n  }\n  function createResolutionCache(resolutionHost, rootDirForResolution, logChangesWhenResolvingModule) {\n    let filesWithChangedSetOfUnresolvedImports;\n    let filesWithInvalidatedResolutions;\n    let filesWithInvalidatedNonRelativeUnresolvedImports;\n    const nonRelativeExternalModuleResolutions = createMultiMap();\n    const resolutionsWithFailedLookups = /* @__PURE__ */ new Set();\n    const resolutionsWithOnlyAffectingLocations = /* @__PURE__ */ new Set();\n    const resolvedFileToResolution = /* @__PURE__ */ new Map();\n    const impliedFormatPackageJsons = /* @__PURE__ */ new Map();\n    let hasChangedAutomaticTypeDirectiveNames = false;\n    let affectingPathChecksForFile;\n    let affectingPathChecks;\n    let failedLookupChecks;\n    let startsWithPathChecks;\n    let isInDirectoryChecks;\n    const getCurrentDirectory = memoize(() => resolutionHost.getCurrentDirectory());\n    const cachedDirectoryStructureHost = resolutionHost.getCachedDirectoryStructureHost();\n    const resolvedModuleNames = /* @__PURE__ */ new Map();\n    const moduleResolutionCache = createModuleResolutionCache(getCurrentDirectory(), resolutionHost.getCanonicalFileName, resolutionHost.getCompilationSettings());\n    const resolvedTypeReferenceDirectives = /* @__PURE__ */ new Map();\n    const typeReferenceDirectiveResolutionCache = createTypeReferenceDirectiveResolutionCache(getCurrentDirectory(), resolutionHost.getCanonicalFileName, resolutionHost.getCompilationSettings(), moduleResolutionCache.getPackageJsonInfoCache());\n    const failedLookupDefaultExtensions = [\".ts\", \".tsx\", \".js\", \".jsx\", \".json\"];\n    const customFailedLookupPaths = /* @__PURE__ */ new Map();\n    const directoryWatchesOfFailedLookups = /* @__PURE__ */ new Map();\n    const fileWatchesOfAffectingLocations = /* @__PURE__ */ new Map();\n    const rootDir = rootDirForResolution && removeTrailingDirectorySeparator(getNormalizedAbsolutePath(rootDirForResolution, getCurrentDirectory()));\n    const rootPath = rootDir && resolutionHost.toPath(rootDir);\n    const rootSplitLength = rootPath !== void 0 ? rootPath.split(directorySeparator).length : 0;\n    const typeRootsWatches = /* @__PURE__ */ new Map();\n    return {\n      getModuleResolutionCache: () => moduleResolutionCache,\n      startRecordingFilesWithChangedResolutions,\n      finishRecordingFilesWithChangedResolutions,\n      startCachingPerDirectoryResolution,\n      finishCachingPerDirectoryResolution,\n      resolveModuleNameLiterals,\n      resolveTypeReferenceDirectiveReferences,\n      resolveSingleModuleNameWithoutWatching,\n      removeResolutionsFromProjectReferenceRedirects,\n      removeResolutionsOfFile,\n      hasChangedAutomaticTypeDirectiveNames: () => hasChangedAutomaticTypeDirectiveNames,\n      invalidateResolutionOfFile,\n      invalidateResolutionsOfFailedLookupLocations,\n      setFilesWithInvalidatedNonRelativeUnresolvedImports,\n      createHasInvalidatedResolutions,\n      isFileWithInvalidatedNonRelativeUnresolvedImports,\n      updateTypeRootsWatch,\n      closeTypeRootsWatch,\n      clear: clear2\n    };\n    function getResolvedModule2(resolution) {\n      return resolution.resolvedModule;\n    }\n    function getResolvedTypeReferenceDirective2(resolution) {\n      return resolution.resolvedTypeReferenceDirective;\n    }\n    function isInDirectoryPath(dir, file) {\n      if (dir === void 0 || file.length <= dir.length) {\n        return false;\n      }\n      return startsWith(file, dir) && file[dir.length] === directorySeparator;\n    }\n    function clear2() {\n      clearMap(directoryWatchesOfFailedLookups, closeFileWatcherOf);\n      clearMap(fileWatchesOfAffectingLocations, closeFileWatcherOf);\n      customFailedLookupPaths.clear();\n      nonRelativeExternalModuleResolutions.clear();\n      closeTypeRootsWatch();\n      resolvedModuleNames.clear();\n      resolvedTypeReferenceDirectives.clear();\n      resolvedFileToResolution.clear();\n      resolutionsWithFailedLookups.clear();\n      resolutionsWithOnlyAffectingLocations.clear();\n      failedLookupChecks = void 0;\n      startsWithPathChecks = void 0;\n      isInDirectoryChecks = void 0;\n      affectingPathChecks = void 0;\n      affectingPathChecksForFile = void 0;\n      moduleResolutionCache.clear();\n      typeReferenceDirectiveResolutionCache.clear();\n      moduleResolutionCache.update(resolutionHost.getCompilationSettings());\n      typeReferenceDirectiveResolutionCache.update(resolutionHost.getCompilationSettings());\n      impliedFormatPackageJsons.clear();\n      hasChangedAutomaticTypeDirectiveNames = false;\n    }\n    function startRecordingFilesWithChangedResolutions() {\n      filesWithChangedSetOfUnresolvedImports = [];\n    }\n    function finishRecordingFilesWithChangedResolutions() {\n      const collected = filesWithChangedSetOfUnresolvedImports;\n      filesWithChangedSetOfUnresolvedImports = void 0;\n      return collected;\n    }\n    function isFileWithInvalidatedNonRelativeUnresolvedImports(path) {\n      if (!filesWithInvalidatedNonRelativeUnresolvedImports) {\n        return false;\n      }\n      const value = filesWithInvalidatedNonRelativeUnresolvedImports.get(path);\n      return !!value && !!value.length;\n    }\n    function createHasInvalidatedResolutions(customHasInvalidatedResolutions) {\n      invalidateResolutionsOfFailedLookupLocations();\n      const collected = filesWithInvalidatedResolutions;\n      filesWithInvalidatedResolutions = void 0;\n      return (path) => customHasInvalidatedResolutions(path) || !!(collected == null ? void 0 : collected.has(path)) || isFileWithInvalidatedNonRelativeUnresolvedImports(path);\n    }\n    function startCachingPerDirectoryResolution() {\n      moduleResolutionCache.clearAllExceptPackageJsonInfoCache();\n      typeReferenceDirectiveResolutionCache.clearAllExceptPackageJsonInfoCache();\n      nonRelativeExternalModuleResolutions.forEach(watchFailedLookupLocationOfNonRelativeModuleResolutions);\n      nonRelativeExternalModuleResolutions.clear();\n    }\n    function finishCachingPerDirectoryResolution(newProgram, oldProgram) {\n      filesWithInvalidatedNonRelativeUnresolvedImports = void 0;\n      nonRelativeExternalModuleResolutions.forEach(watchFailedLookupLocationOfNonRelativeModuleResolutions);\n      nonRelativeExternalModuleResolutions.clear();\n      if (newProgram !== oldProgram) {\n        newProgram == null ? void 0 : newProgram.getSourceFiles().forEach((newFile) => {\n          var _a2, _b, _c;\n          const expected = isExternalOrCommonJsModule(newFile) ? (_b = (_a2 = newFile.packageJsonLocations) == null ? void 0 : _a2.length) != null ? _b : 0 : 0;\n          const existing = (_c = impliedFormatPackageJsons.get(newFile.path)) != null ? _c : emptyArray;\n          for (let i = existing.length; i < expected; i++) {\n            createFileWatcherOfAffectingLocation(newFile.packageJsonLocations[i], false);\n          }\n          if (existing.length > expected) {\n            for (let i = expected; i < existing.length; i++) {\n              fileWatchesOfAffectingLocations.get(existing[i]).files--;\n            }\n          }\n          if (expected)\n            impliedFormatPackageJsons.set(newFile.path, newFile.packageJsonLocations);\n          else\n            impliedFormatPackageJsons.delete(newFile.path);\n        });\n        impliedFormatPackageJsons.forEach((existing, path) => {\n          if (!(newProgram == null ? void 0 : newProgram.getSourceFileByPath(path))) {\n            existing.forEach((location) => fileWatchesOfAffectingLocations.get(location).files--);\n            impliedFormatPackageJsons.delete(path);\n          }\n        });\n      }\n      directoryWatchesOfFailedLookups.forEach((watcher, path) => {\n        if (watcher.refCount === 0) {\n          directoryWatchesOfFailedLookups.delete(path);\n          watcher.watcher.close();\n        }\n      });\n      fileWatchesOfAffectingLocations.forEach((watcher, path) => {\n        if (watcher.files === 0 && watcher.resolutions === 0) {\n          fileWatchesOfAffectingLocations.delete(path);\n          watcher.watcher.close();\n        }\n      });\n      hasChangedAutomaticTypeDirectiveNames = false;\n    }\n    function resolveModuleName2(moduleName, containingFile, compilerOptions, redirectedReference, mode) {\n      var _a2;\n      const host = ((_a2 = resolutionHost.getCompilerHost) == null ? void 0 : _a2.call(resolutionHost)) || resolutionHost;\n      const primaryResult = resolveModuleName(moduleName, containingFile, compilerOptions, host, moduleResolutionCache, redirectedReference, mode);\n      if (!resolutionHost.getGlobalCache) {\n        return primaryResult;\n      }\n      const globalCache = resolutionHost.getGlobalCache();\n      if (globalCache !== void 0 && !isExternalModuleNameRelative(moduleName) && !(primaryResult.resolvedModule && extensionIsTS(primaryResult.resolvedModule.extension))) {\n        const { resolvedModule, failedLookupLocations, affectingLocations, resolutionDiagnostics } = loadModuleFromGlobalCache(Debug.checkDefined(resolutionHost.globalCacheResolutionModuleName)(moduleName), resolutionHost.projectName, compilerOptions, host, globalCache, moduleResolutionCache);\n        if (resolvedModule) {\n          primaryResult.resolvedModule = resolvedModule;\n          primaryResult.failedLookupLocations = updateResolutionField(primaryResult.failedLookupLocations, failedLookupLocations);\n          primaryResult.affectingLocations = updateResolutionField(primaryResult.affectingLocations, affectingLocations);\n          primaryResult.resolutionDiagnostics = updateResolutionField(primaryResult.resolutionDiagnostics, resolutionDiagnostics);\n          return primaryResult;\n        }\n      }\n      return primaryResult;\n    }\n    function createModuleResolutionLoader2(containingFile, redirectedReference, options) {\n      return {\n        nameAndMode: moduleResolutionNameAndModeGetter,\n        resolve: (moduleName, resoluionMode) => resolveModuleName2(moduleName, containingFile, options, redirectedReference, resoluionMode)\n      };\n    }\n    function resolveNamesWithLocalCache({\n      entries,\n      containingFile,\n      containingSourceFile,\n      redirectedReference,\n      options,\n      perFileCache,\n      reusedNames,\n      loader,\n      getResolutionWithResolvedFileName,\n      shouldRetryResolution,\n      logChanges\n    }) {\n      var _a2;\n      const path = resolutionHost.toPath(containingFile);\n      const resolutionsInFile = perFileCache.get(path) || perFileCache.set(path, createModeAwareCache()).get(path);\n      const resolvedModules = [];\n      const hasInvalidatedNonRelativeUnresolvedImport = logChanges && isFileWithInvalidatedNonRelativeUnresolvedImports(path);\n      const program = resolutionHost.getCurrentProgram();\n      const oldRedirect = program && program.getResolvedProjectReferenceToRedirect(containingFile);\n      const unmatchedRedirects = oldRedirect ? !redirectedReference || redirectedReference.sourceFile.path !== oldRedirect.sourceFile.path : !!redirectedReference;\n      const seenNamesInFile = createModeAwareCache();\n      for (const entry of entries) {\n        const name = loader.nameAndMode.getName(entry);\n        const mode = loader.nameAndMode.getMode(entry, containingSourceFile);\n        let resolution = resolutionsInFile.get(name, mode);\n        if (!seenNamesInFile.has(name, mode) && unmatchedRedirects || !resolution || resolution.isInvalidated || hasInvalidatedNonRelativeUnresolvedImport && !isExternalModuleNameRelative(name) && shouldRetryResolution(resolution)) {\n          const existingResolution = resolution;\n          resolution = loader.resolve(name, mode);\n          if (resolutionHost.onDiscoveredSymlink && resolutionIsSymlink(resolution)) {\n            resolutionHost.onDiscoveredSymlink();\n          }\n          resolutionsInFile.set(name, mode, resolution);\n          watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path, getResolutionWithResolvedFileName);\n          if (existingResolution) {\n            stopWatchFailedLookupLocationOfResolution(existingResolution, path, getResolutionWithResolvedFileName);\n          }\n          if (logChanges && filesWithChangedSetOfUnresolvedImports && !resolutionIsEqualTo(existingResolution, resolution)) {\n            filesWithChangedSetOfUnresolvedImports.push(path);\n            logChanges = false;\n          }\n        } else {\n          const host = ((_a2 = resolutionHost.getCompilerHost) == null ? void 0 : _a2.call(resolutionHost)) || resolutionHost;\n          if (isTraceEnabled(options, host) && !seenNamesInFile.has(name, mode)) {\n            const resolved = getResolutionWithResolvedFileName(resolution);\n            trace(host, perFileCache === resolvedModuleNames ? (resolved == null ? void 0 : resolved.resolvedFileName) ? resolved.packageId ? Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved : (resolved == null ? void 0 : resolved.resolvedFileName) ? resolved.packageId ? Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2 : Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved, name, containingFile, resolved == null ? void 0 : resolved.resolvedFileName, (resolved == null ? void 0 : resolved.packageId) && packageIdToString(resolved.packageId));\n          }\n        }\n        Debug.assert(resolution !== void 0 && !resolution.isInvalidated);\n        seenNamesInFile.set(name, mode, true);\n        resolvedModules.push(resolution);\n      }\n      reusedNames == null ? void 0 : reusedNames.forEach((entry) => seenNamesInFile.set(loader.nameAndMode.getName(entry), loader.nameAndMode.getMode(entry, containingSourceFile), true));\n      if (resolutionsInFile.size() !== seenNamesInFile.size()) {\n        resolutionsInFile.forEach((resolution, name, mode) => {\n          if (!seenNamesInFile.has(name, mode)) {\n            stopWatchFailedLookupLocationOfResolution(resolution, path, getResolutionWithResolvedFileName);\n            resolutionsInFile.delete(name, mode);\n          }\n        });\n      }\n      return resolvedModules;\n      function resolutionIsEqualTo(oldResolution, newResolution) {\n        if (oldResolution === newResolution) {\n          return true;\n        }\n        if (!oldResolution || !newResolution) {\n          return false;\n        }\n        const oldResult = getResolutionWithResolvedFileName(oldResolution);\n        const newResult = getResolutionWithResolvedFileName(newResolution);\n        if (oldResult === newResult) {\n          return true;\n        }\n        if (!oldResult || !newResult) {\n          return false;\n        }\n        return oldResult.resolvedFileName === newResult.resolvedFileName;\n      }\n    }\n    function resolveTypeReferenceDirectiveReferences(typeDirectiveReferences, containingFile, redirectedReference, options, containingSourceFile, reusedNames) {\n      var _a2;\n      return resolveNamesWithLocalCache({\n        entries: typeDirectiveReferences,\n        containingFile,\n        containingSourceFile,\n        redirectedReference,\n        options,\n        reusedNames,\n        perFileCache: resolvedTypeReferenceDirectives,\n        loader: createTypeReferenceResolutionLoader(containingFile, redirectedReference, options, ((_a2 = resolutionHost.getCompilerHost) == null ? void 0 : _a2.call(resolutionHost)) || resolutionHost, typeReferenceDirectiveResolutionCache),\n        getResolutionWithResolvedFileName: getResolvedTypeReferenceDirective2,\n        shouldRetryResolution: (resolution) => resolution.resolvedTypeReferenceDirective === void 0\n      });\n    }\n    function resolveModuleNameLiterals(moduleLiterals, containingFile, redirectedReference, options, containingSourceFile, reusedNames) {\n      return resolveNamesWithLocalCache({\n        entries: moduleLiterals,\n        containingFile,\n        containingSourceFile,\n        redirectedReference,\n        options,\n        reusedNames,\n        perFileCache: resolvedModuleNames,\n        loader: createModuleResolutionLoader2(containingFile, redirectedReference, options),\n        getResolutionWithResolvedFileName: getResolvedModule2,\n        shouldRetryResolution: (resolution) => !resolution.resolvedModule || !resolutionExtensionIsTSOrJson(resolution.resolvedModule.extension),\n        logChanges: logChangesWhenResolvingModule\n      });\n    }\n    function resolveSingleModuleNameWithoutWatching(moduleName, containingFile) {\n      const path = resolutionHost.toPath(containingFile);\n      const resolutionsInFile = resolvedModuleNames.get(path);\n      const resolution = resolutionsInFile == null ? void 0 : resolutionsInFile.get(moduleName, void 0);\n      if (resolution && !resolution.isInvalidated)\n        return resolution;\n      return resolveModuleName2(moduleName, containingFile, resolutionHost.getCompilationSettings());\n    }\n    function isNodeModulesAtTypesDirectory(dirPath) {\n      return endsWith(dirPath, \"/node_modules/@types\");\n    }\n    function getDirectoryToWatchFailedLookupLocation(failedLookupLocation, failedLookupLocationPath) {\n      if (isInDirectoryPath(rootPath, failedLookupLocationPath)) {\n        failedLookupLocation = isRootedDiskPath(failedLookupLocation) ? normalizePath(failedLookupLocation) : getNormalizedAbsolutePath(failedLookupLocation, getCurrentDirectory());\n        const failedLookupPathSplit = failedLookupLocationPath.split(directorySeparator);\n        const failedLookupSplit = failedLookupLocation.split(directorySeparator);\n        Debug.assert(failedLookupSplit.length === failedLookupPathSplit.length, `FailedLookup: ${failedLookupLocation} failedLookupLocationPath: ${failedLookupLocationPath}`);\n        if (failedLookupPathSplit.length > rootSplitLength + 1) {\n          return {\n            dir: failedLookupSplit.slice(0, rootSplitLength + 1).join(directorySeparator),\n            dirPath: failedLookupPathSplit.slice(0, rootSplitLength + 1).join(directorySeparator)\n          };\n        } else {\n          return {\n            dir: rootDir,\n            dirPath: rootPath,\n            nonRecursive: false\n          };\n        }\n      }\n      return getDirectoryToWatchFromFailedLookupLocationDirectory(getDirectoryPath(getNormalizedAbsolutePath(failedLookupLocation, getCurrentDirectory())), getDirectoryPath(failedLookupLocationPath));\n    }\n    function getDirectoryToWatchFromFailedLookupLocationDirectory(dir, dirPath) {\n      while (pathContainsNodeModules(dirPath)) {\n        dir = getDirectoryPath(dir);\n        dirPath = getDirectoryPath(dirPath);\n      }\n      if (isNodeModulesDirectory(dirPath)) {\n        return canWatchDirectoryOrFile(getDirectoryPath(dirPath)) ? { dir, dirPath } : void 0;\n      }\n      let nonRecursive = true;\n      let subDirectoryPath, subDirectory;\n      if (rootPath !== void 0) {\n        while (!isInDirectoryPath(dirPath, rootPath)) {\n          const parentPath = getDirectoryPath(dirPath);\n          if (parentPath === dirPath) {\n            break;\n          }\n          nonRecursive = false;\n          subDirectoryPath = dirPath;\n          subDirectory = dir;\n          dirPath = parentPath;\n          dir = getDirectoryPath(dir);\n        }\n      }\n      return canWatchDirectoryOrFile(dirPath) ? { dir: subDirectory || dir, dirPath: subDirectoryPath || dirPath, nonRecursive } : void 0;\n    }\n    function isPathWithDefaultFailedLookupExtension(path) {\n      return fileExtensionIsOneOf(path, failedLookupDefaultExtensions);\n    }\n    function watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, filePath, getResolutionWithResolvedFileName) {\n      var _a2, _b;\n      if (resolution.refCount) {\n        resolution.refCount++;\n        Debug.assertIsDefined(resolution.files);\n      } else {\n        resolution.refCount = 1;\n        Debug.assert(!((_a2 = resolution.files) == null ? void 0 : _a2.size));\n        if (isExternalModuleNameRelative(name)) {\n          watchFailedLookupLocationOfResolution(resolution);\n        } else {\n          nonRelativeExternalModuleResolutions.add(name, resolution);\n        }\n        const resolved = getResolutionWithResolvedFileName(resolution);\n        if (resolved && resolved.resolvedFileName) {\n          const key = resolutionHost.toPath(resolved.resolvedFileName);\n          let resolutions = resolvedFileToResolution.get(key);\n          if (!resolutions)\n            resolvedFileToResolution.set(key, resolutions = /* @__PURE__ */ new Set());\n          resolutions.add(resolution);\n        }\n      }\n      ((_b = resolution.files) != null ? _b : resolution.files = /* @__PURE__ */ new Set()).add(filePath);\n    }\n    function watchFailedLookupLocationOfResolution(resolution) {\n      Debug.assert(!!resolution.refCount);\n      const { failedLookupLocations, affectingLocations } = resolution;\n      if (!(failedLookupLocations == null ? void 0 : failedLookupLocations.length) && !(affectingLocations == null ? void 0 : affectingLocations.length))\n        return;\n      if (failedLookupLocations == null ? void 0 : failedLookupLocations.length)\n        resolutionsWithFailedLookups.add(resolution);\n      let setAtRoot = false;\n      if (failedLookupLocations) {\n        for (const failedLookupLocation of failedLookupLocations) {\n          const failedLookupLocationPath = resolutionHost.toPath(failedLookupLocation);\n          const toWatch = getDirectoryToWatchFailedLookupLocation(failedLookupLocation, failedLookupLocationPath);\n          if (toWatch) {\n            const { dir, dirPath, nonRecursive } = toWatch;\n            if (!isPathWithDefaultFailedLookupExtension(failedLookupLocationPath)) {\n              const refCount = customFailedLookupPaths.get(failedLookupLocationPath) || 0;\n              customFailedLookupPaths.set(failedLookupLocationPath, refCount + 1);\n            }\n            if (dirPath === rootPath) {\n              Debug.assert(!nonRecursive);\n              setAtRoot = true;\n            } else {\n              setDirectoryWatcher(dir, dirPath, nonRecursive);\n            }\n          }\n        }\n        if (setAtRoot) {\n          setDirectoryWatcher(rootDir, rootPath, true);\n        }\n      }\n      watchAffectingLocationsOfResolution(resolution, !(failedLookupLocations == null ? void 0 : failedLookupLocations.length));\n    }\n    function watchAffectingLocationsOfResolution(resolution, addToResolutionsWithOnlyAffectingLocations) {\n      Debug.assert(!!resolution.refCount);\n      const { affectingLocations } = resolution;\n      if (!(affectingLocations == null ? void 0 : affectingLocations.length))\n        return;\n      if (addToResolutionsWithOnlyAffectingLocations)\n        resolutionsWithOnlyAffectingLocations.add(resolution);\n      for (const affectingLocation of affectingLocations) {\n        createFileWatcherOfAffectingLocation(affectingLocation, true);\n      }\n    }\n    function createFileWatcherOfAffectingLocation(affectingLocation, forResolution) {\n      const fileWatcher = fileWatchesOfAffectingLocations.get(affectingLocation);\n      if (fileWatcher) {\n        if (forResolution)\n          fileWatcher.resolutions++;\n        else\n          fileWatcher.files++;\n        return;\n      }\n      let locationToWatch = affectingLocation;\n      if (resolutionHost.realpath) {\n        locationToWatch = resolutionHost.realpath(affectingLocation);\n        if (affectingLocation !== locationToWatch) {\n          const fileWatcher2 = fileWatchesOfAffectingLocations.get(locationToWatch);\n          if (fileWatcher2) {\n            if (forResolution)\n              fileWatcher2.resolutions++;\n            else\n              fileWatcher2.files++;\n            fileWatcher2.paths.add(affectingLocation);\n            fileWatchesOfAffectingLocations.set(affectingLocation, fileWatcher2);\n            return;\n          }\n        }\n      }\n      const paths = /* @__PURE__ */ new Set();\n      paths.add(locationToWatch);\n      let actualWatcher = canWatchDirectoryOrFile(resolutionHost.toPath(locationToWatch)) ? resolutionHost.watchAffectingFileLocation(locationToWatch, (fileName, eventKind) => {\n        cachedDirectoryStructureHost == null ? void 0 : cachedDirectoryStructureHost.addOrDeleteFile(fileName, resolutionHost.toPath(locationToWatch), eventKind);\n        const packageJsonMap = moduleResolutionCache.getPackageJsonInfoCache().getInternalMap();\n        paths.forEach((path) => {\n          if (watcher.resolutions)\n            (affectingPathChecks != null ? affectingPathChecks : affectingPathChecks = /* @__PURE__ */ new Set()).add(path);\n          if (watcher.files)\n            (affectingPathChecksForFile != null ? affectingPathChecksForFile : affectingPathChecksForFile = /* @__PURE__ */ new Set()).add(path);\n          packageJsonMap == null ? void 0 : packageJsonMap.delete(resolutionHost.toPath(path));\n        });\n        resolutionHost.scheduleInvalidateResolutionsOfFailedLookupLocations();\n      }) : noopFileWatcher;\n      const watcher = {\n        watcher: actualWatcher !== noopFileWatcher ? {\n          close: () => {\n            actualWatcher.close();\n            actualWatcher = noopFileWatcher;\n          }\n        } : actualWatcher,\n        resolutions: forResolution ? 1 : 0,\n        files: forResolution ? 0 : 1,\n        paths\n      };\n      fileWatchesOfAffectingLocations.set(locationToWatch, watcher);\n      if (affectingLocation !== locationToWatch) {\n        fileWatchesOfAffectingLocations.set(affectingLocation, watcher);\n        paths.add(affectingLocation);\n      }\n    }\n    function watchFailedLookupLocationOfNonRelativeModuleResolutions(resolutions, name) {\n      const program = resolutionHost.getCurrentProgram();\n      if (!program || !program.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(name)) {\n        resolutions.forEach(watchFailedLookupLocationOfResolution);\n      } else {\n        resolutions.forEach((resolution) => watchAffectingLocationsOfResolution(resolution, true));\n      }\n    }\n    function setDirectoryWatcher(dir, dirPath, nonRecursive) {\n      const dirWatcher = directoryWatchesOfFailedLookups.get(dirPath);\n      if (dirWatcher) {\n        Debug.assert(!!nonRecursive === !!dirWatcher.nonRecursive);\n        dirWatcher.refCount++;\n      } else {\n        directoryWatchesOfFailedLookups.set(dirPath, { watcher: createDirectoryWatcher(dir, dirPath, nonRecursive), refCount: 1, nonRecursive });\n      }\n    }\n    function stopWatchFailedLookupLocationOfResolution(resolution, filePath, getResolutionWithResolvedFileName) {\n      Debug.checkDefined(resolution.files).delete(filePath);\n      resolution.refCount--;\n      if (resolution.refCount) {\n        return;\n      }\n      const resolved = getResolutionWithResolvedFileName(resolution);\n      if (resolved && resolved.resolvedFileName) {\n        const key = resolutionHost.toPath(resolved.resolvedFileName);\n        const resolutions = resolvedFileToResolution.get(key);\n        if ((resolutions == null ? void 0 : resolutions.delete(resolution)) && !resolutions.size)\n          resolvedFileToResolution.delete(key);\n      }\n      const { failedLookupLocations, affectingLocations } = resolution;\n      if (resolutionsWithFailedLookups.delete(resolution)) {\n        let removeAtRoot = false;\n        for (const failedLookupLocation of failedLookupLocations) {\n          const failedLookupLocationPath = resolutionHost.toPath(failedLookupLocation);\n          const toWatch = getDirectoryToWatchFailedLookupLocation(failedLookupLocation, failedLookupLocationPath);\n          if (toWatch) {\n            const { dirPath } = toWatch;\n            const refCount = customFailedLookupPaths.get(failedLookupLocationPath);\n            if (refCount) {\n              if (refCount === 1) {\n                customFailedLookupPaths.delete(failedLookupLocationPath);\n              } else {\n                Debug.assert(refCount > 1);\n                customFailedLookupPaths.set(failedLookupLocationPath, refCount - 1);\n              }\n            }\n            if (dirPath === rootPath) {\n              removeAtRoot = true;\n            } else {\n              removeDirectoryWatcher(dirPath);\n            }\n          }\n        }\n        if (removeAtRoot) {\n          removeDirectoryWatcher(rootPath);\n        }\n      } else if (affectingLocations == null ? void 0 : affectingLocations.length) {\n        resolutionsWithOnlyAffectingLocations.delete(resolution);\n      }\n      if (affectingLocations) {\n        for (const affectingLocation of affectingLocations) {\n          const watcher = fileWatchesOfAffectingLocations.get(affectingLocation);\n          watcher.resolutions--;\n        }\n      }\n    }\n    function removeDirectoryWatcher(dirPath) {\n      const dirWatcher = directoryWatchesOfFailedLookups.get(dirPath);\n      dirWatcher.refCount--;\n    }\n    function createDirectoryWatcher(directory, dirPath, nonRecursive) {\n      return resolutionHost.watchDirectoryOfFailedLookupLocation(directory, (fileOrDirectory) => {\n        const fileOrDirectoryPath = resolutionHost.toPath(fileOrDirectory);\n        if (cachedDirectoryStructureHost) {\n          cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath);\n        }\n        scheduleInvalidateResolutionOfFailedLookupLocation(fileOrDirectoryPath, dirPath === fileOrDirectoryPath);\n      }, nonRecursive ? 0 : 1);\n    }\n    function removeResolutionsOfFileFromCache(cache, filePath, getResolutionWithResolvedFileName) {\n      const resolutions = cache.get(filePath);\n      if (resolutions) {\n        resolutions.forEach((resolution) => stopWatchFailedLookupLocationOfResolution(resolution, filePath, getResolutionWithResolvedFileName));\n        cache.delete(filePath);\n      }\n    }\n    function removeResolutionsFromProjectReferenceRedirects(filePath) {\n      if (!fileExtensionIs(filePath, \".json\"))\n        return;\n      const program = resolutionHost.getCurrentProgram();\n      if (!program)\n        return;\n      const resolvedProjectReference = program.getResolvedProjectReferenceByPath(filePath);\n      if (!resolvedProjectReference)\n        return;\n      resolvedProjectReference.commandLine.fileNames.forEach((f) => removeResolutionsOfFile(resolutionHost.toPath(f)));\n    }\n    function removeResolutionsOfFile(filePath) {\n      removeResolutionsOfFileFromCache(resolvedModuleNames, filePath, getResolvedModule2);\n      removeResolutionsOfFileFromCache(resolvedTypeReferenceDirectives, filePath, getResolvedTypeReferenceDirective2);\n    }\n    function invalidateResolutions(resolutions, canInvalidate) {\n      if (!resolutions)\n        return false;\n      let invalidated = false;\n      resolutions.forEach((resolution) => {\n        if (resolution.isInvalidated || !canInvalidate(resolution))\n          return;\n        resolution.isInvalidated = invalidated = true;\n        for (const containingFilePath of Debug.checkDefined(resolution.files)) {\n          (filesWithInvalidatedResolutions != null ? filesWithInvalidatedResolutions : filesWithInvalidatedResolutions = /* @__PURE__ */ new Set()).add(containingFilePath);\n          hasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames || endsWith(containingFilePath, inferredTypesContainingFile);\n        }\n      });\n      return invalidated;\n    }\n    function invalidateResolutionOfFile(filePath) {\n      removeResolutionsOfFile(filePath);\n      const prevHasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames;\n      if (invalidateResolutions(resolvedFileToResolution.get(filePath), returnTrue) && hasChangedAutomaticTypeDirectiveNames && !prevHasChangedAutomaticTypeDirectiveNames) {\n        resolutionHost.onChangedAutomaticTypeDirectiveNames();\n      }\n    }\n    function setFilesWithInvalidatedNonRelativeUnresolvedImports(filesMap) {\n      Debug.assert(filesWithInvalidatedNonRelativeUnresolvedImports === filesMap || filesWithInvalidatedNonRelativeUnresolvedImports === void 0);\n      filesWithInvalidatedNonRelativeUnresolvedImports = filesMap;\n    }\n    function scheduleInvalidateResolutionOfFailedLookupLocation(fileOrDirectoryPath, isCreatingWatchedDirectory) {\n      if (isCreatingWatchedDirectory) {\n        (isInDirectoryChecks || (isInDirectoryChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath);\n      } else {\n        const updatedPath = removeIgnoredPath(fileOrDirectoryPath);\n        if (!updatedPath)\n          return false;\n        fileOrDirectoryPath = updatedPath;\n        if (resolutionHost.fileIsOpen(fileOrDirectoryPath)) {\n          return false;\n        }\n        const dirOfFileOrDirectory = getDirectoryPath(fileOrDirectoryPath);\n        if (isNodeModulesAtTypesDirectory(fileOrDirectoryPath) || isNodeModulesDirectory(fileOrDirectoryPath) || isNodeModulesAtTypesDirectory(dirOfFileOrDirectory) || isNodeModulesDirectory(dirOfFileOrDirectory)) {\n          (failedLookupChecks || (failedLookupChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath);\n          (startsWithPathChecks || (startsWithPathChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath);\n        } else {\n          if (!isPathWithDefaultFailedLookupExtension(fileOrDirectoryPath) && !customFailedLookupPaths.has(fileOrDirectoryPath)) {\n            return false;\n          }\n          if (isEmittedFileOfProgram(resolutionHost.getCurrentProgram(), fileOrDirectoryPath)) {\n            return false;\n          }\n          (failedLookupChecks || (failedLookupChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath);\n          const packagePath = parseNodeModuleFromPath(fileOrDirectoryPath);\n          if (packagePath)\n            (startsWithPathChecks || (startsWithPathChecks = /* @__PURE__ */ new Set())).add(packagePath);\n        }\n      }\n      resolutionHost.scheduleInvalidateResolutionsOfFailedLookupLocations();\n    }\n    function invalidateResolutionsOfFailedLookupLocations() {\n      var _a2;\n      let invalidated = false;\n      if (affectingPathChecksForFile) {\n        (_a2 = resolutionHost.getCurrentProgram()) == null ? void 0 : _a2.getSourceFiles().forEach((f) => {\n          if (some(f.packageJsonLocations, (location) => affectingPathChecksForFile.has(location))) {\n            (filesWithInvalidatedResolutions != null ? filesWithInvalidatedResolutions : filesWithInvalidatedResolutions = /* @__PURE__ */ new Set()).add(f.path);\n            invalidated = true;\n          }\n        });\n        affectingPathChecksForFile = void 0;\n      }\n      if (!failedLookupChecks && !startsWithPathChecks && !isInDirectoryChecks && !affectingPathChecks) {\n        return invalidated;\n      }\n      invalidated = invalidateResolutions(resolutionsWithFailedLookups, canInvalidateFailedLookupResolution) || invalidated;\n      const packageJsonMap = moduleResolutionCache.getPackageJsonInfoCache().getInternalMap();\n      if (packageJsonMap && (failedLookupChecks || startsWithPathChecks || isInDirectoryChecks)) {\n        packageJsonMap.forEach((_value, path) => isInvalidatedFailedLookup(path) ? packageJsonMap.delete(path) : void 0);\n      }\n      failedLookupChecks = void 0;\n      startsWithPathChecks = void 0;\n      isInDirectoryChecks = void 0;\n      invalidated = invalidateResolutions(resolutionsWithOnlyAffectingLocations, canInvalidatedFailedLookupResolutionWithAffectingLocation) || invalidated;\n      affectingPathChecks = void 0;\n      return invalidated;\n    }\n    function canInvalidateFailedLookupResolution(resolution) {\n      var _a2;\n      if (canInvalidatedFailedLookupResolutionWithAffectingLocation(resolution))\n        return true;\n      if (!failedLookupChecks && !startsWithPathChecks && !isInDirectoryChecks)\n        return false;\n      return (_a2 = resolution.failedLookupLocations) == null ? void 0 : _a2.some((location) => isInvalidatedFailedLookup(resolutionHost.toPath(location)));\n    }\n    function isInvalidatedFailedLookup(locationPath) {\n      return (failedLookupChecks == null ? void 0 : failedLookupChecks.has(locationPath)) || firstDefinedIterator((startsWithPathChecks == null ? void 0 : startsWithPathChecks.keys()) || [], (fileOrDirectoryPath) => startsWith(locationPath, fileOrDirectoryPath) ? true : void 0) || firstDefinedIterator((isInDirectoryChecks == null ? void 0 : isInDirectoryChecks.keys()) || [], (fileOrDirectoryPath) => isInDirectoryPath(fileOrDirectoryPath, locationPath) ? true : void 0);\n    }\n    function canInvalidatedFailedLookupResolutionWithAffectingLocation(resolution) {\n      var _a2;\n      return !!affectingPathChecks && ((_a2 = resolution.affectingLocations) == null ? void 0 : _a2.some((location) => affectingPathChecks.has(location)));\n    }\n    function closeTypeRootsWatch() {\n      clearMap(typeRootsWatches, closeFileWatcher);\n    }\n    function getDirectoryToWatchFailedLookupLocationFromTypeRoot(typeRoot, typeRootPath) {\n      if (isInDirectoryPath(rootPath, typeRootPath)) {\n        return rootPath;\n      }\n      const toWatch = getDirectoryToWatchFromFailedLookupLocationDirectory(typeRoot, typeRootPath);\n      return toWatch && directoryWatchesOfFailedLookups.has(toWatch.dirPath) ? toWatch.dirPath : void 0;\n    }\n    function createTypeRootsWatch(typeRootPath, typeRoot) {\n      return resolutionHost.watchTypeRootsDirectory(typeRoot, (fileOrDirectory) => {\n        const fileOrDirectoryPath = resolutionHost.toPath(fileOrDirectory);\n        if (cachedDirectoryStructureHost) {\n          cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath);\n        }\n        hasChangedAutomaticTypeDirectiveNames = true;\n        resolutionHost.onChangedAutomaticTypeDirectiveNames();\n        const dirPath = getDirectoryToWatchFailedLookupLocationFromTypeRoot(typeRoot, typeRootPath);\n        if (dirPath) {\n          scheduleInvalidateResolutionOfFailedLookupLocation(fileOrDirectoryPath, dirPath === fileOrDirectoryPath);\n        }\n      }, 1);\n    }\n    function updateTypeRootsWatch() {\n      const options = resolutionHost.getCompilationSettings();\n      if (options.types) {\n        closeTypeRootsWatch();\n        return;\n      }\n      const typeRoots = getEffectiveTypeRoots(options, { directoryExists: directoryExistsForTypeRootWatch, getCurrentDirectory });\n      if (typeRoots) {\n        mutateMap(typeRootsWatches, arrayToMap(typeRoots, (tr) => resolutionHost.toPath(tr)), {\n          createNewValue: createTypeRootsWatch,\n          onDeleteValue: closeFileWatcher\n        });\n      } else {\n        closeTypeRootsWatch();\n      }\n    }\n    function directoryExistsForTypeRootWatch(nodeTypesDirectory) {\n      const dir = getDirectoryPath(getDirectoryPath(nodeTypesDirectory));\n      const dirPath = resolutionHost.toPath(dir);\n      return dirPath === rootPath || canWatchDirectoryOrFile(dirPath);\n    }\n  }\n  function resolutionIsSymlink(resolution) {\n    var _a2, _b;\n    return !!(((_a2 = resolution.resolvedModule) == null ? void 0 : _a2.originalPath) || ((_b = resolution.resolvedTypeReferenceDirective) == null ? void 0 : _b.originalPath));\n  }\n  var init_resolutionCache = __esm({\n    \"src/compiler/resolutionCache.ts\"() {\n      \"use strict\";\n      init_ts2();\n      init_ts2();\n    }\n  });\n  function createDiagnosticReporter(system, pretty) {\n    const host = system === sys && sysFormatDiagnosticsHost ? sysFormatDiagnosticsHost : {\n      getCurrentDirectory: () => system.getCurrentDirectory(),\n      getNewLine: () => system.newLine,\n      getCanonicalFileName: createGetCanonicalFileName(system.useCaseSensitiveFileNames)\n    };\n    if (!pretty) {\n      return (diagnostic) => system.write(formatDiagnostic(diagnostic, host));\n    }\n    const diagnostics = new Array(1);\n    return (diagnostic) => {\n      diagnostics[0] = diagnostic;\n      system.write(formatDiagnosticsWithColorAndContext(diagnostics, host) + host.getNewLine());\n      diagnostics[0] = void 0;\n    };\n  }\n  function clearScreenIfNotWatchingForFileChanges(system, diagnostic, options) {\n    if (system.clearScreen && !options.preserveWatchOutput && !options.extendedDiagnostics && !options.diagnostics && contains(screenStartingMessageCodes, diagnostic.code)) {\n      system.clearScreen();\n      return true;\n    }\n    return false;\n  }\n  function getPlainDiagnosticFollowingNewLines(diagnostic, newLine) {\n    return contains(screenStartingMessageCodes, diagnostic.code) ? newLine + newLine : newLine;\n  }\n  function getLocaleTimeString(system) {\n    return !system.now ? (/* @__PURE__ */ new Date()).toLocaleTimeString() : system.now().toLocaleTimeString(\"en-US\", { timeZone: \"UTC\" }).replace(\"\\u202F\", \" \");\n  }\n  function createWatchStatusReporter(system, pretty) {\n    return pretty ? (diagnostic, newLine, options) => {\n      clearScreenIfNotWatchingForFileChanges(system, diagnostic, options);\n      let output = `[${formatColorAndReset(getLocaleTimeString(system), \"\\x1B[90m\")}] `;\n      output += `${flattenDiagnosticMessageText2(diagnostic.messageText, system.newLine)}${newLine + newLine}`;\n      system.write(output);\n    } : (diagnostic, newLine, options) => {\n      let output = \"\";\n      if (!clearScreenIfNotWatchingForFileChanges(system, diagnostic, options)) {\n        output += newLine;\n      }\n      output += `${getLocaleTimeString(system)} - `;\n      output += `${flattenDiagnosticMessageText2(diagnostic.messageText, system.newLine)}${getPlainDiagnosticFollowingNewLines(diagnostic, newLine)}`;\n      system.write(output);\n    };\n  }\n  function parseConfigFileWithSystem(configFileName, optionsToExtend, extendedConfigCache, watchOptionsToExtend, system, reportDiagnostic) {\n    const host = system;\n    host.onUnRecoverableConfigFileDiagnostic = (diagnostic) => reportUnrecoverableDiagnostic(system, reportDiagnostic, diagnostic);\n    const result = getParsedCommandLineOfConfigFile(configFileName, optionsToExtend, host, extendedConfigCache, watchOptionsToExtend);\n    host.onUnRecoverableConfigFileDiagnostic = void 0;\n    return result;\n  }\n  function getErrorCountForSummary(diagnostics) {\n    return countWhere(diagnostics, (diagnostic) => diagnostic.category === 1);\n  }\n  function getFilesInErrorForSummary(diagnostics) {\n    const filesInError = filter(diagnostics, (diagnostic) => diagnostic.category === 1).map((errorDiagnostic) => {\n      if (errorDiagnostic.file === void 0)\n        return;\n      return `${errorDiagnostic.file.fileName}`;\n    });\n    return filesInError.map((fileName) => {\n      if (fileName === void 0) {\n        return void 0;\n      }\n      const diagnosticForFileName = find(diagnostics, (diagnostic) => diagnostic.file !== void 0 && diagnostic.file.fileName === fileName);\n      if (diagnosticForFileName !== void 0) {\n        const { line } = getLineAndCharacterOfPosition(diagnosticForFileName.file, diagnosticForFileName.start);\n        return {\n          fileName,\n          line: line + 1\n        };\n      }\n    });\n  }\n  function getWatchErrorSummaryDiagnosticMessage(errorCount) {\n    return errorCount === 1 ? Diagnostics.Found_1_error_Watching_for_file_changes : Diagnostics.Found_0_errors_Watching_for_file_changes;\n  }\n  function prettyPathForFileError(error, cwd) {\n    const line = formatColorAndReset(\":\" + error.line, \"\\x1B[90m\");\n    if (pathIsAbsolute(error.fileName) && pathIsAbsolute(cwd)) {\n      return getRelativePathFromDirectory(cwd, error.fileName, false) + line;\n    }\n    return error.fileName + line;\n  }\n  function getErrorSummaryText(errorCount, filesInError, newLine, host) {\n    if (errorCount === 0)\n      return \"\";\n    const nonNilFiles = filesInError.filter((fileInError) => fileInError !== void 0);\n    const distinctFileNamesWithLines = nonNilFiles.map((fileInError) => `${fileInError.fileName}:${fileInError.line}`).filter((value, index, self2) => self2.indexOf(value) === index);\n    const firstFileReference = nonNilFiles[0] && prettyPathForFileError(nonNilFiles[0], host.getCurrentDirectory());\n    const d = errorCount === 1 ? createCompilerDiagnostic(filesInError[0] !== void 0 ? Diagnostics.Found_1_error_in_1 : Diagnostics.Found_1_error, errorCount, firstFileReference) : createCompilerDiagnostic(distinctFileNamesWithLines.length === 0 ? Diagnostics.Found_0_errors : distinctFileNamesWithLines.length === 1 ? Diagnostics.Found_0_errors_in_the_same_file_starting_at_Colon_1 : Diagnostics.Found_0_errors_in_1_files, errorCount, distinctFileNamesWithLines.length === 1 ? firstFileReference : distinctFileNamesWithLines.length);\n    const suffix = distinctFileNamesWithLines.length > 1 ? createTabularErrorsDisplay(nonNilFiles, host) : \"\";\n    return `${newLine}${flattenDiagnosticMessageText2(d.messageText, newLine)}${newLine}${newLine}${suffix}`;\n  }\n  function createTabularErrorsDisplay(filesInError, host) {\n    const distinctFiles = filesInError.filter((value, index, self2) => index === self2.findIndex((file) => (file == null ? void 0 : file.fileName) === (value == null ? void 0 : value.fileName)));\n    if (distinctFiles.length === 0)\n      return \"\";\n    const numberLength = (num) => Math.log(num) * Math.LOG10E + 1;\n    const fileToErrorCount = distinctFiles.map((file) => [file, countWhere(filesInError, (fileInError) => fileInError.fileName === file.fileName)]);\n    const maxErrors = fileToErrorCount.reduce((acc, value) => Math.max(acc, value[1] || 0), 0);\n    const headerRow = Diagnostics.Errors_Files.message;\n    const leftColumnHeadingLength = headerRow.split(\" \")[0].length;\n    const leftPaddingGoal = Math.max(leftColumnHeadingLength, numberLength(maxErrors));\n    const headerPadding = Math.max(numberLength(maxErrors) - leftColumnHeadingLength, 0);\n    let tabularData = \"\";\n    tabularData += \" \".repeat(headerPadding) + headerRow + \"\\n\";\n    fileToErrorCount.forEach((row) => {\n      const [file, errorCount] = row;\n      const errorCountDigitsLength = Math.log(errorCount) * Math.LOG10E + 1 | 0;\n      const leftPadding = errorCountDigitsLength < leftPaddingGoal ? \" \".repeat(leftPaddingGoal - errorCountDigitsLength) : \"\";\n      const fileRef = prettyPathForFileError(file, host.getCurrentDirectory());\n      tabularData += `${leftPadding}${errorCount}  ${fileRef}\n`;\n    });\n    return tabularData;\n  }\n  function isBuilderProgram2(program) {\n    return !!program.getState;\n  }\n  function listFiles(program, write) {\n    const options = program.getCompilerOptions();\n    if (options.explainFiles) {\n      explainFiles(isBuilderProgram2(program) ? program.getProgram() : program, write);\n    } else if (options.listFiles || options.listFilesOnly) {\n      forEach(program.getSourceFiles(), (file) => {\n        write(file.fileName);\n      });\n    }\n  }\n  function explainFiles(program, write) {\n    var _a2, _b;\n    const reasons = program.getFileIncludeReasons();\n    const relativeFileName = (fileName) => convertToRelativePath(fileName, program.getCurrentDirectory(), program.getCanonicalFileName);\n    for (const file of program.getSourceFiles()) {\n      write(`${toFileName(file, relativeFileName)}`);\n      (_a2 = reasons.get(file.path)) == null ? void 0 : _a2.forEach((reason) => write(`  ${fileIncludeReasonToDiagnostics(program, reason, relativeFileName).messageText}`));\n      (_b = explainIfFileIsRedirectAndImpliedFormat(file, relativeFileName)) == null ? void 0 : _b.forEach((d) => write(`  ${d.messageText}`));\n    }\n  }\n  function explainIfFileIsRedirectAndImpliedFormat(file, fileNameConvertor) {\n    var _a2;\n    let result;\n    if (file.path !== file.resolvedPath) {\n      (result != null ? result : result = []).push(chainDiagnosticMessages(void 0, Diagnostics.File_is_output_of_project_reference_source_0, toFileName(file.originalFileName, fileNameConvertor)));\n    }\n    if (file.redirectInfo) {\n      (result != null ? result : result = []).push(chainDiagnosticMessages(void 0, Diagnostics.File_redirects_to_file_0, toFileName(file.redirectInfo.redirectTarget, fileNameConvertor)));\n    }\n    if (isExternalOrCommonJsModule(file)) {\n      switch (file.impliedNodeFormat) {\n        case 99:\n          if (file.packageJsonScope) {\n            (result != null ? result : result = []).push(chainDiagnosticMessages(void 0, Diagnostics.File_is_ECMAScript_module_because_0_has_field_type_with_value_module, toFileName(last(file.packageJsonLocations), fileNameConvertor)));\n          }\n          break;\n        case 1:\n          if (file.packageJsonScope) {\n            (result != null ? result : result = []).push(chainDiagnosticMessages(void 0, file.packageJsonScope.contents.packageJsonContent.type ? Diagnostics.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module : Diagnostics.File_is_CommonJS_module_because_0_does_not_have_field_type, toFileName(last(file.packageJsonLocations), fileNameConvertor)));\n          } else if ((_a2 = file.packageJsonLocations) == null ? void 0 : _a2.length) {\n            (result != null ? result : result = []).push(chainDiagnosticMessages(void 0, Diagnostics.File_is_CommonJS_module_because_package_json_was_not_found));\n          }\n          break;\n      }\n    }\n    return result;\n  }\n  function getMatchedFileSpec(program, fileName) {\n    var _a2;\n    const configFile = program.getCompilerOptions().configFile;\n    if (!((_a2 = configFile == null ? void 0 : configFile.configFileSpecs) == null ? void 0 : _a2.validatedFilesSpec))\n      return void 0;\n    const filePath = program.getCanonicalFileName(fileName);\n    const basePath = getDirectoryPath(getNormalizedAbsolutePath(configFile.fileName, program.getCurrentDirectory()));\n    return find(configFile.configFileSpecs.validatedFilesSpec, (fileSpec) => program.getCanonicalFileName(getNormalizedAbsolutePath(fileSpec, basePath)) === filePath);\n  }\n  function getMatchedIncludeSpec(program, fileName) {\n    var _a2, _b;\n    const configFile = program.getCompilerOptions().configFile;\n    if (!((_a2 = configFile == null ? void 0 : configFile.configFileSpecs) == null ? void 0 : _a2.validatedIncludeSpecs))\n      return void 0;\n    if (configFile.configFileSpecs.isDefaultIncludeSpec)\n      return true;\n    const isJsonFile = fileExtensionIs(fileName, \".json\");\n    const basePath = getDirectoryPath(getNormalizedAbsolutePath(configFile.fileName, program.getCurrentDirectory()));\n    const useCaseSensitiveFileNames = program.useCaseSensitiveFileNames();\n    return find((_b = configFile == null ? void 0 : configFile.configFileSpecs) == null ? void 0 : _b.validatedIncludeSpecs, (includeSpec) => {\n      if (isJsonFile && !endsWith(includeSpec, \".json\"))\n        return false;\n      const pattern = getPatternFromSpec(includeSpec, basePath, \"files\");\n      return !!pattern && getRegexFromPattern(`(${pattern})$`, useCaseSensitiveFileNames).test(fileName);\n    });\n  }\n  function fileIncludeReasonToDiagnostics(program, reason, fileNameConvertor) {\n    var _a2, _b;\n    const options = program.getCompilerOptions();\n    if (isReferencedFile(reason)) {\n      const referenceLocation = getReferencedFileLocation((path) => program.getSourceFileByPath(path), reason);\n      const referenceText = isReferenceFileLocation(referenceLocation) ? referenceLocation.file.text.substring(referenceLocation.pos, referenceLocation.end) : `\"${referenceLocation.text}\"`;\n      let message;\n      Debug.assert(isReferenceFileLocation(referenceLocation) || reason.kind === 3, \"Only synthetic references are imports\");\n      switch (reason.kind) {\n        case 3:\n          if (isReferenceFileLocation(referenceLocation)) {\n            message = referenceLocation.packageId ? Diagnostics.Imported_via_0_from_file_1_with_packageId_2 : Diagnostics.Imported_via_0_from_file_1;\n          } else if (referenceLocation.text === externalHelpersModuleNameText) {\n            message = referenceLocation.packageId ? Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions : Diagnostics.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions;\n          } else {\n            message = referenceLocation.packageId ? Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions : Diagnostics.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;\n          }\n          break;\n        case 4:\n          Debug.assert(!referenceLocation.packageId);\n          message = Diagnostics.Referenced_via_0_from_file_1;\n          break;\n        case 5:\n          message = referenceLocation.packageId ? Diagnostics.Type_library_referenced_via_0_from_file_1_with_packageId_2 : Diagnostics.Type_library_referenced_via_0_from_file_1;\n          break;\n        case 7:\n          Debug.assert(!referenceLocation.packageId);\n          message = Diagnostics.Library_referenced_via_0_from_file_1;\n          break;\n        default:\n          Debug.assertNever(reason);\n      }\n      return chainDiagnosticMessages(void 0, message, referenceText, toFileName(referenceLocation.file, fileNameConvertor), referenceLocation.packageId && packageIdToString(referenceLocation.packageId));\n    }\n    switch (reason.kind) {\n      case 0:\n        if (!((_a2 = options.configFile) == null ? void 0 : _a2.configFileSpecs))\n          return chainDiagnosticMessages(void 0, Diagnostics.Root_file_specified_for_compilation);\n        const fileName = getNormalizedAbsolutePath(program.getRootFileNames()[reason.index], program.getCurrentDirectory());\n        const matchedByFiles = getMatchedFileSpec(program, fileName);\n        if (matchedByFiles)\n          return chainDiagnosticMessages(void 0, Diagnostics.Part_of_files_list_in_tsconfig_json);\n        const matchedByInclude = getMatchedIncludeSpec(program, fileName);\n        return isString(matchedByInclude) ? chainDiagnosticMessages(void 0, Diagnostics.Matched_by_include_pattern_0_in_1, matchedByInclude, toFileName(options.configFile, fileNameConvertor)) : chainDiagnosticMessages(void 0, matchedByInclude ? Diagnostics.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk : Diagnostics.Root_file_specified_for_compilation);\n      case 1:\n      case 2:\n        const isOutput = reason.kind === 2;\n        const referencedResolvedRef = Debug.checkDefined((_b = program.getResolvedProjectReferences()) == null ? void 0 : _b[reason.index]);\n        return chainDiagnosticMessages(void 0, outFile(options) ? isOutput ? Diagnostics.Output_from_referenced_project_0_included_because_1_specified : Diagnostics.Source_from_referenced_project_0_included_because_1_specified : isOutput ? Diagnostics.Output_from_referenced_project_0_included_because_module_is_specified_as_none : Diagnostics.Source_from_referenced_project_0_included_because_module_is_specified_as_none, toFileName(referencedResolvedRef.sourceFile.fileName, fileNameConvertor), options.outFile ? \"--outFile\" : \"--out\");\n      case 8:\n        return chainDiagnosticMessages(void 0, options.types ? reason.packageId ? Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1 : Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions : reason.packageId ? Diagnostics.Entry_point_for_implicit_type_library_0_with_packageId_1 : Diagnostics.Entry_point_for_implicit_type_library_0, reason.typeReference, reason.packageId && packageIdToString(reason.packageId));\n      case 6:\n        if (reason.index !== void 0)\n          return chainDiagnosticMessages(void 0, Diagnostics.Library_0_specified_in_compilerOptions, options.lib[reason.index]);\n        const target = forEachEntry(targetOptionDeclaration.type, (value, key) => value === getEmitScriptTarget(options) ? key : void 0);\n        return chainDiagnosticMessages(void 0, target ? Diagnostics.Default_library_for_target_0 : Diagnostics.Default_library, target);\n      default:\n        Debug.assertNever(reason);\n    }\n  }\n  function toFileName(file, fileNameConvertor) {\n    const fileName = isString(file) ? file : file.fileName;\n    return fileNameConvertor ? fileNameConvertor(fileName) : fileName;\n  }\n  function emitFilesAndReportErrors(program, reportDiagnostic, write, reportSummary, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) {\n    const isListFilesOnly = !!program.getCompilerOptions().listFilesOnly;\n    const allDiagnostics = program.getConfigFileParsingDiagnostics().slice();\n    const configFileParsingDiagnosticsLength = allDiagnostics.length;\n    addRange(allDiagnostics, program.getSyntacticDiagnostics(void 0, cancellationToken));\n    if (allDiagnostics.length === configFileParsingDiagnosticsLength) {\n      addRange(allDiagnostics, program.getOptionsDiagnostics(cancellationToken));\n      if (!isListFilesOnly) {\n        addRange(allDiagnostics, program.getGlobalDiagnostics(cancellationToken));\n        if (allDiagnostics.length === configFileParsingDiagnosticsLength) {\n          addRange(allDiagnostics, program.getSemanticDiagnostics(void 0, cancellationToken));\n        }\n      }\n    }\n    const emitResult = isListFilesOnly ? { emitSkipped: true, diagnostics: emptyArray } : program.emit(void 0, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers);\n    const { emittedFiles, diagnostics: emitDiagnostics } = emitResult;\n    addRange(allDiagnostics, emitDiagnostics);\n    const diagnostics = sortAndDeduplicateDiagnostics(allDiagnostics);\n    diagnostics.forEach(reportDiagnostic);\n    if (write) {\n      const currentDir = program.getCurrentDirectory();\n      forEach(emittedFiles, (file) => {\n        const filepath = getNormalizedAbsolutePath(file, currentDir);\n        write(`TSFILE: ${filepath}`);\n      });\n      listFiles(program, write);\n    }\n    if (reportSummary) {\n      reportSummary(getErrorCountForSummary(diagnostics), getFilesInErrorForSummary(diagnostics));\n    }\n    return {\n      emitResult,\n      diagnostics\n    };\n  }\n  function emitFilesAndReportErrorsAndGetExitStatus(program, reportDiagnostic, write, reportSummary, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) {\n    const { emitResult, diagnostics } = emitFilesAndReportErrors(program, reportDiagnostic, write, reportSummary, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers);\n    if (emitResult.emitSkipped && diagnostics.length > 0) {\n      return 1;\n    } else if (diagnostics.length > 0) {\n      return 2;\n    }\n    return 0;\n  }\n  function createWatchHost(system = sys, reportWatchStatus2) {\n    const onWatchStatusChange = reportWatchStatus2 || createWatchStatusReporter(system);\n    return {\n      onWatchStatusChange,\n      watchFile: maybeBind(system, system.watchFile) || returnNoopFileWatcher,\n      watchDirectory: maybeBind(system, system.watchDirectory) || returnNoopFileWatcher,\n      setTimeout: maybeBind(system, system.setTimeout) || noop,\n      clearTimeout: maybeBind(system, system.clearTimeout) || noop\n    };\n  }\n  function createWatchFactory(host, options) {\n    const watchLogLevel = host.trace ? options.extendedDiagnostics ? 2 : options.diagnostics ? 1 : 0 : 0;\n    const writeLog = watchLogLevel !== 0 ? (s) => host.trace(s) : noop;\n    const result = getWatchFactory(host, watchLogLevel, writeLog);\n    result.writeLog = writeLog;\n    return result;\n  }\n  function createCompilerHostFromProgramHost(host, getCompilerOptions, directoryStructureHost = host) {\n    const useCaseSensitiveFileNames = host.useCaseSensitiveFileNames();\n    const compilerHost = {\n      getSourceFile: createGetSourceFile((fileName, encoding) => !encoding ? compilerHost.readFile(fileName) : host.readFile(fileName, encoding), getCompilerOptions, void 0),\n      getDefaultLibLocation: maybeBind(host, host.getDefaultLibLocation),\n      getDefaultLibFileName: (options) => host.getDefaultLibFileName(options),\n      writeFile: createWriteFileMeasuringIO((path, data, writeByteOrderMark) => host.writeFile(path, data, writeByteOrderMark), (path) => host.createDirectory(path), (path) => host.directoryExists(path)),\n      getCurrentDirectory: memoize(() => host.getCurrentDirectory()),\n      useCaseSensitiveFileNames: () => useCaseSensitiveFileNames,\n      getCanonicalFileName: createGetCanonicalFileName(useCaseSensitiveFileNames),\n      getNewLine: () => getNewLineCharacter(getCompilerOptions()),\n      fileExists: (f) => host.fileExists(f),\n      readFile: (f) => host.readFile(f),\n      trace: maybeBind(host, host.trace),\n      directoryExists: maybeBind(directoryStructureHost, directoryStructureHost.directoryExists),\n      getDirectories: maybeBind(directoryStructureHost, directoryStructureHost.getDirectories),\n      realpath: maybeBind(host, host.realpath),\n      getEnvironmentVariable: maybeBind(host, host.getEnvironmentVariable) || (() => \"\"),\n      createHash: maybeBind(host, host.createHash),\n      readDirectory: maybeBind(host, host.readDirectory),\n      storeFilesChangingSignatureDuringEmit: host.storeFilesChangingSignatureDuringEmit\n    };\n    return compilerHost;\n  }\n  function getSourceFileVersionAsHashFromText(host, text) {\n    if (text.match(sourceMapCommentRegExpDontCareLineStart)) {\n      let lineEnd = text.length;\n      let lineStart = lineEnd;\n      for (let pos = lineEnd - 1; pos >= 0; pos--) {\n        const ch = text.charCodeAt(pos);\n        switch (ch) {\n          case 10:\n            if (pos && text.charCodeAt(pos - 1) === 13) {\n              pos--;\n            }\n          case 13:\n            break;\n          default:\n            if (ch < 127 || !isLineBreak(ch)) {\n              lineStart = pos;\n              continue;\n            }\n            break;\n        }\n        const line = text.substring(lineStart, lineEnd);\n        if (line.match(sourceMapCommentRegExp)) {\n          text = text.substring(0, lineStart);\n          break;\n        } else if (!line.match(whitespaceOrMapCommentRegExp)) {\n          break;\n        }\n        lineEnd = lineStart;\n      }\n    }\n    return (host.createHash || generateDjb2Hash)(text);\n  }\n  function setGetSourceFileAsHashVersioned(compilerHost) {\n    const originalGetSourceFile = compilerHost.getSourceFile;\n    compilerHost.getSourceFile = (...args) => {\n      const result = originalGetSourceFile.call(compilerHost, ...args);\n      if (result) {\n        result.version = getSourceFileVersionAsHashFromText(compilerHost, result.text);\n      }\n      return result;\n    };\n  }\n  function createProgramHost(system, createProgram2) {\n    const getDefaultLibLocation = memoize(() => getDirectoryPath(normalizePath(system.getExecutingFilePath())));\n    return {\n      useCaseSensitiveFileNames: () => system.useCaseSensitiveFileNames,\n      getNewLine: () => system.newLine,\n      getCurrentDirectory: memoize(() => system.getCurrentDirectory()),\n      getDefaultLibLocation,\n      getDefaultLibFileName: (options) => combinePaths(getDefaultLibLocation(), getDefaultLibFileName(options)),\n      fileExists: (path) => system.fileExists(path),\n      readFile: (path, encoding) => system.readFile(path, encoding),\n      directoryExists: (path) => system.directoryExists(path),\n      getDirectories: (path) => system.getDirectories(path),\n      readDirectory: (path, extensions, exclude, include, depth) => system.readDirectory(path, extensions, exclude, include, depth),\n      realpath: maybeBind(system, system.realpath),\n      getEnvironmentVariable: maybeBind(system, system.getEnvironmentVariable),\n      trace: (s) => system.write(s + system.newLine),\n      createDirectory: (path) => system.createDirectory(path),\n      writeFile: (path, data, writeByteOrderMark) => system.writeFile(path, data, writeByteOrderMark),\n      createHash: maybeBind(system, system.createHash),\n      createProgram: createProgram2 || createEmitAndSemanticDiagnosticsBuilderProgram,\n      storeFilesChangingSignatureDuringEmit: system.storeFilesChangingSignatureDuringEmit,\n      now: maybeBind(system, system.now)\n    };\n  }\n  function createWatchCompilerHost(system = sys, createProgram2, reportDiagnostic, reportWatchStatus2) {\n    const write = (s) => system.write(s + system.newLine);\n    const result = createProgramHost(system, createProgram2);\n    copyProperties(result, createWatchHost(system, reportWatchStatus2));\n    result.afterProgramCreate = (builderProgram) => {\n      const compilerOptions = builderProgram.getCompilerOptions();\n      const newLine = getNewLineCharacter(compilerOptions);\n      emitFilesAndReportErrors(builderProgram, reportDiagnostic, write, (errorCount) => result.onWatchStatusChange(createCompilerDiagnostic(getWatchErrorSummaryDiagnosticMessage(errorCount), errorCount), newLine, compilerOptions, errorCount));\n    };\n    return result;\n  }\n  function reportUnrecoverableDiagnostic(system, reportDiagnostic, diagnostic) {\n    reportDiagnostic(diagnostic);\n    system.exit(1);\n  }\n  function createWatchCompilerHostOfConfigFile({\n    configFileName,\n    optionsToExtend,\n    watchOptionsToExtend,\n    extraFileExtensions,\n    system,\n    createProgram: createProgram2,\n    reportDiagnostic,\n    reportWatchStatus: reportWatchStatus2\n  }) {\n    const diagnosticReporter = reportDiagnostic || createDiagnosticReporter(system);\n    const host = createWatchCompilerHost(system, createProgram2, diagnosticReporter, reportWatchStatus2);\n    host.onUnRecoverableConfigFileDiagnostic = (diagnostic) => reportUnrecoverableDiagnostic(system, diagnosticReporter, diagnostic);\n    host.configFileName = configFileName;\n    host.optionsToExtend = optionsToExtend;\n    host.watchOptionsToExtend = watchOptionsToExtend;\n    host.extraFileExtensions = extraFileExtensions;\n    return host;\n  }\n  function createWatchCompilerHostOfFilesAndCompilerOptions({\n    rootFiles,\n    options,\n    watchOptions,\n    projectReferences,\n    system,\n    createProgram: createProgram2,\n    reportDiagnostic,\n    reportWatchStatus: reportWatchStatus2\n  }) {\n    const host = createWatchCompilerHost(system, createProgram2, reportDiagnostic || createDiagnosticReporter(system), reportWatchStatus2);\n    host.rootFiles = rootFiles;\n    host.options = options;\n    host.watchOptions = watchOptions;\n    host.projectReferences = projectReferences;\n    return host;\n  }\n  function performIncrementalCompilation(input) {\n    const system = input.system || sys;\n    const host = input.host || (input.host = createIncrementalCompilerHost(input.options, system));\n    const builderProgram = createIncrementalProgram(input);\n    const exitStatus = emitFilesAndReportErrorsAndGetExitStatus(builderProgram, input.reportDiagnostic || createDiagnosticReporter(system), (s) => host.trace && host.trace(s), input.reportErrorSummary || input.options.pretty ? (errorCount, filesInError) => system.write(getErrorSummaryText(errorCount, filesInError, system.newLine, host)) : void 0);\n    if (input.afterProgramEmitAndDiagnostics)\n      input.afterProgramEmitAndDiagnostics(builderProgram);\n    return exitStatus;\n  }\n  var sysFormatDiagnosticsHost, screenStartingMessageCodes, noopFileWatcher, returnNoopFileWatcher, WatchType;\n  var init_watch = __esm({\n    \"src/compiler/watch.ts\"() {\n      \"use strict\";\n      init_ts2();\n      sysFormatDiagnosticsHost = sys ? {\n        getCurrentDirectory: () => sys.getCurrentDirectory(),\n        getNewLine: () => sys.newLine,\n        getCanonicalFileName: createGetCanonicalFileName(sys.useCaseSensitiveFileNames)\n      } : void 0;\n      screenStartingMessageCodes = [\n        Diagnostics.Starting_compilation_in_watch_mode.code,\n        Diagnostics.File_change_detected_Starting_incremental_compilation.code\n      ];\n      noopFileWatcher = { close: noop };\n      returnNoopFileWatcher = () => noopFileWatcher;\n      WatchType = {\n        ConfigFile: \"Config file\",\n        ExtendedConfigFile: \"Extended config file\",\n        SourceFile: \"Source file\",\n        MissingFile: \"Missing file\",\n        WildcardDirectory: \"Wild card directory\",\n        FailedLookupLocations: \"Failed Lookup Locations\",\n        AffectingFileLocation: \"File location affecting resolution\",\n        TypeRoots: \"Type roots\",\n        ConfigFileOfReferencedProject: \"Config file of referened project\",\n        ExtendedConfigOfReferencedProject: \"Extended config file of referenced project\",\n        WildcardDirectoryOfReferencedProject: \"Wild card directory of referenced project\",\n        PackageJson: \"package.json file\",\n        ClosedScriptInfo: \"Closed Script info\",\n        ConfigFileForInferredRoot: \"Config file for the inferred project root\",\n        NodeModules: \"node_modules for closed script infos and package.jsons affecting module specifier cache\",\n        MissingSourceMapFile: \"Missing source map file\",\n        NoopConfigFileForInferredRoot: \"Noop Config file for the inferred project root\",\n        MissingGeneratedFile: \"Missing generated file\",\n        NodeModulesForModuleSpecifierCache: \"node_modules for module specifier cache invalidation\"\n      };\n    }\n  });\n  function readBuilderProgram(compilerOptions, host) {\n    const buildInfoPath = getTsBuildInfoEmitOutputFilePath(compilerOptions);\n    if (!buildInfoPath)\n      return void 0;\n    let buildInfo;\n    if (host.getBuildInfo) {\n      buildInfo = host.getBuildInfo(buildInfoPath, compilerOptions.configFilePath);\n    } else {\n      const content = host.readFile(buildInfoPath);\n      if (!content)\n        return void 0;\n      buildInfo = getBuildInfo(buildInfoPath, content);\n    }\n    if (!buildInfo || buildInfo.version !== version || !buildInfo.program)\n      return void 0;\n    return createBuilderProgramUsingProgramBuildInfo(buildInfo, buildInfoPath, host);\n  }\n  function createIncrementalCompilerHost(options, system = sys) {\n    const host = createCompilerHostWorker(options, void 0, system);\n    host.createHash = maybeBind(system, system.createHash);\n    host.storeFilesChangingSignatureDuringEmit = system.storeFilesChangingSignatureDuringEmit;\n    setGetSourceFileAsHashVersioned(host);\n    changeCompilerHostLikeToUseCache(host, (fileName) => toPath(fileName, host.getCurrentDirectory(), host.getCanonicalFileName));\n    return host;\n  }\n  function createIncrementalProgram({\n    rootNames,\n    options,\n    configFileParsingDiagnostics,\n    projectReferences,\n    host,\n    createProgram: createProgram2\n  }) {\n    host = host || createIncrementalCompilerHost(options);\n    createProgram2 = createProgram2 || createEmitAndSemanticDiagnosticsBuilderProgram;\n    const oldProgram = readBuilderProgram(options, host);\n    return createProgram2(rootNames, options, host, oldProgram, configFileParsingDiagnostics, projectReferences);\n  }\n  function createWatchCompilerHost2(rootFilesOrConfigFileName, options, system, createProgram2, reportDiagnostic, reportWatchStatus2, projectReferencesOrWatchOptionsToExtend, watchOptionsOrExtraFileExtensions) {\n    if (isArray(rootFilesOrConfigFileName)) {\n      return createWatchCompilerHostOfFilesAndCompilerOptions({\n        rootFiles: rootFilesOrConfigFileName,\n        options,\n        watchOptions: watchOptionsOrExtraFileExtensions,\n        projectReferences: projectReferencesOrWatchOptionsToExtend,\n        system,\n        createProgram: createProgram2,\n        reportDiagnostic,\n        reportWatchStatus: reportWatchStatus2\n      });\n    } else {\n      return createWatchCompilerHostOfConfigFile({\n        configFileName: rootFilesOrConfigFileName,\n        optionsToExtend: options,\n        watchOptionsToExtend: projectReferencesOrWatchOptionsToExtend,\n        extraFileExtensions: watchOptionsOrExtraFileExtensions,\n        system,\n        createProgram: createProgram2,\n        reportDiagnostic,\n        reportWatchStatus: reportWatchStatus2\n      });\n    }\n  }\n  function createWatchProgram(host) {\n    let builderProgram;\n    let reloadLevel;\n    let missingFilesMap;\n    let watchedWildcardDirectories;\n    let timerToUpdateProgram;\n    let timerToInvalidateFailedLookupResolutions;\n    let parsedConfigs;\n    let sharedExtendedConfigFileWatchers;\n    let extendedConfigCache = host.extendedConfigCache;\n    let reportFileChangeDetectedOnCreateProgram = false;\n    const sourceFilesCache = /* @__PURE__ */ new Map();\n    let missingFilePathsRequestedForRelease;\n    let hasChangedCompilerOptions = false;\n    const useCaseSensitiveFileNames = host.useCaseSensitiveFileNames();\n    const currentDirectory = host.getCurrentDirectory();\n    const { configFileName, optionsToExtend: optionsToExtendForConfigFile = {}, watchOptionsToExtend, extraFileExtensions, createProgram: createProgram2 } = host;\n    let { rootFiles: rootFileNames, options: compilerOptions, watchOptions, projectReferences } = host;\n    let wildcardDirectories;\n    let configFileParsingDiagnostics;\n    let canConfigFileJsonReportNoInputFiles = false;\n    let hasChangedConfigFileParsingErrors = false;\n    const cachedDirectoryStructureHost = configFileName === void 0 ? void 0 : createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames);\n    const directoryStructureHost = cachedDirectoryStructureHost || host;\n    const parseConfigFileHost = parseConfigHostFromCompilerHostLike(host, directoryStructureHost);\n    let newLine = updateNewLine();\n    if (configFileName && host.configFileParsingResult) {\n      setConfigFileParsingResult(host.configFileParsingResult);\n      newLine = updateNewLine();\n    }\n    reportWatchDiagnostic(Diagnostics.Starting_compilation_in_watch_mode);\n    if (configFileName && !host.configFileParsingResult) {\n      newLine = getNewLineCharacter(optionsToExtendForConfigFile);\n      Debug.assert(!rootFileNames);\n      parseConfigFile2();\n      newLine = updateNewLine();\n    }\n    Debug.assert(compilerOptions);\n    Debug.assert(rootFileNames);\n    const { watchFile: watchFile2, watchDirectory, writeLog } = createWatchFactory(host, compilerOptions);\n    const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames);\n    writeLog(`Current directory: ${currentDirectory} CaseSensitiveFileNames: ${useCaseSensitiveFileNames}`);\n    let configFileWatcher;\n    if (configFileName) {\n      configFileWatcher = watchFile2(configFileName, scheduleProgramReload, 2e3, watchOptions, WatchType.ConfigFile);\n    }\n    const compilerHost = createCompilerHostFromProgramHost(host, () => compilerOptions, directoryStructureHost);\n    setGetSourceFileAsHashVersioned(compilerHost);\n    const getNewSourceFile = compilerHost.getSourceFile;\n    compilerHost.getSourceFile = (fileName, ...args) => getVersionedSourceFileByPath(fileName, toPath3(fileName), ...args);\n    compilerHost.getSourceFileByPath = getVersionedSourceFileByPath;\n    compilerHost.getNewLine = () => newLine;\n    compilerHost.fileExists = fileExists;\n    compilerHost.onReleaseOldSourceFile = onReleaseOldSourceFile;\n    compilerHost.onReleaseParsedCommandLine = onReleaseParsedCommandLine;\n    compilerHost.toPath = toPath3;\n    compilerHost.getCompilationSettings = () => compilerOptions;\n    compilerHost.useSourceOfProjectReferenceRedirect = maybeBind(host, host.useSourceOfProjectReferenceRedirect);\n    compilerHost.watchDirectoryOfFailedLookupLocation = (dir, cb, flags) => watchDirectory(dir, cb, flags, watchOptions, WatchType.FailedLookupLocations);\n    compilerHost.watchAffectingFileLocation = (file, cb) => watchFile2(file, cb, 2e3, watchOptions, WatchType.AffectingFileLocation);\n    compilerHost.watchTypeRootsDirectory = (dir, cb, flags) => watchDirectory(dir, cb, flags, watchOptions, WatchType.TypeRoots);\n    compilerHost.getCachedDirectoryStructureHost = () => cachedDirectoryStructureHost;\n    compilerHost.scheduleInvalidateResolutionsOfFailedLookupLocations = scheduleInvalidateResolutionsOfFailedLookupLocations;\n    compilerHost.onInvalidatedResolution = scheduleProgramUpdate;\n    compilerHost.onChangedAutomaticTypeDirectiveNames = scheduleProgramUpdate;\n    compilerHost.fileIsOpen = returnFalse;\n    compilerHost.getCurrentProgram = getCurrentProgram;\n    compilerHost.writeLog = writeLog;\n    compilerHost.getParsedCommandLine = getParsedCommandLine;\n    const resolutionCache = createResolutionCache(compilerHost, configFileName ? getDirectoryPath(getNormalizedAbsolutePath(configFileName, currentDirectory)) : currentDirectory, false);\n    compilerHost.resolveModuleNameLiterals = maybeBind(host, host.resolveModuleNameLiterals);\n    compilerHost.resolveModuleNames = maybeBind(host, host.resolveModuleNames);\n    if (!compilerHost.resolveModuleNameLiterals && !compilerHost.resolveModuleNames) {\n      compilerHost.resolveModuleNameLiterals = resolutionCache.resolveModuleNameLiterals.bind(resolutionCache);\n    }\n    compilerHost.resolveTypeReferenceDirectiveReferences = maybeBind(host, host.resolveTypeReferenceDirectiveReferences);\n    compilerHost.resolveTypeReferenceDirectives = maybeBind(host, host.resolveTypeReferenceDirectives);\n    if (!compilerHost.resolveTypeReferenceDirectiveReferences && !compilerHost.resolveTypeReferenceDirectives) {\n      compilerHost.resolveTypeReferenceDirectiveReferences = resolutionCache.resolveTypeReferenceDirectiveReferences.bind(resolutionCache);\n    }\n    compilerHost.getModuleResolutionCache = host.resolveModuleNameLiterals || host.resolveModuleNames ? maybeBind(host, host.getModuleResolutionCache) : () => resolutionCache.getModuleResolutionCache();\n    const userProvidedResolution = !!host.resolveModuleNameLiterals || !!host.resolveTypeReferenceDirectiveReferences || !!host.resolveModuleNames || !!host.resolveTypeReferenceDirectives;\n    const customHasInvalidatedResolutions = userProvidedResolution ? maybeBind(host, host.hasInvalidatedResolutions) || returnTrue : returnFalse;\n    builderProgram = readBuilderProgram(compilerOptions, compilerHost);\n    synchronizeProgram();\n    watchConfigFileWildCardDirectories();\n    if (configFileName)\n      updateExtendedConfigFilesWatches(toPath3(configFileName), compilerOptions, watchOptions, WatchType.ExtendedConfigFile);\n    return configFileName ? { getCurrentProgram: getCurrentBuilderProgram, getProgram: updateProgram, close } : { getCurrentProgram: getCurrentBuilderProgram, getProgram: updateProgram, updateRootFileNames, close };\n    function close() {\n      clearInvalidateResolutionsOfFailedLookupLocations();\n      resolutionCache.clear();\n      clearMap(sourceFilesCache, (value) => {\n        if (value && value.fileWatcher) {\n          value.fileWatcher.close();\n          value.fileWatcher = void 0;\n        }\n      });\n      if (configFileWatcher) {\n        configFileWatcher.close();\n        configFileWatcher = void 0;\n      }\n      extendedConfigCache == null ? void 0 : extendedConfigCache.clear();\n      extendedConfigCache = void 0;\n      if (sharedExtendedConfigFileWatchers) {\n        clearMap(sharedExtendedConfigFileWatchers, closeFileWatcherOf);\n        sharedExtendedConfigFileWatchers = void 0;\n      }\n      if (watchedWildcardDirectories) {\n        clearMap(watchedWildcardDirectories, closeFileWatcherOf);\n        watchedWildcardDirectories = void 0;\n      }\n      if (missingFilesMap) {\n        clearMap(missingFilesMap, closeFileWatcher);\n        missingFilesMap = void 0;\n      }\n      if (parsedConfigs) {\n        clearMap(parsedConfigs, (config) => {\n          var _a2;\n          (_a2 = config.watcher) == null ? void 0 : _a2.close();\n          config.watcher = void 0;\n          if (config.watchedDirectories)\n            clearMap(config.watchedDirectories, closeFileWatcherOf);\n          config.watchedDirectories = void 0;\n        });\n        parsedConfigs = void 0;\n      }\n    }\n    function getCurrentBuilderProgram() {\n      return builderProgram;\n    }\n    function getCurrentProgram() {\n      return builderProgram && builderProgram.getProgramOrUndefined();\n    }\n    function synchronizeProgram() {\n      writeLog(`Synchronizing program`);\n      Debug.assert(compilerOptions);\n      Debug.assert(rootFileNames);\n      clearInvalidateResolutionsOfFailedLookupLocations();\n      const program = getCurrentBuilderProgram();\n      if (hasChangedCompilerOptions) {\n        newLine = updateNewLine();\n        if (program && changesAffectModuleResolution(program.getCompilerOptions(), compilerOptions)) {\n          resolutionCache.clear();\n        }\n      }\n      const hasInvalidatedResolutions = resolutionCache.createHasInvalidatedResolutions(customHasInvalidatedResolutions);\n      const {\n        originalReadFile,\n        originalFileExists,\n        originalDirectoryExists,\n        originalCreateDirectory,\n        originalWriteFile,\n        readFileWithCache\n      } = changeCompilerHostLikeToUseCache(compilerHost, toPath3);\n      if (isProgramUptoDate(getCurrentProgram(), rootFileNames, compilerOptions, (path) => getSourceVersion(path, readFileWithCache), (fileName) => compilerHost.fileExists(fileName), hasInvalidatedResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) {\n        if (hasChangedConfigFileParsingErrors) {\n          if (reportFileChangeDetectedOnCreateProgram) {\n            reportWatchDiagnostic(Diagnostics.File_change_detected_Starting_incremental_compilation);\n          }\n          builderProgram = createProgram2(void 0, void 0, compilerHost, builderProgram, configFileParsingDiagnostics, projectReferences);\n          hasChangedConfigFileParsingErrors = false;\n        }\n      } else {\n        if (reportFileChangeDetectedOnCreateProgram) {\n          reportWatchDiagnostic(Diagnostics.File_change_detected_Starting_incremental_compilation);\n        }\n        createNewProgram(hasInvalidatedResolutions);\n      }\n      reportFileChangeDetectedOnCreateProgram = false;\n      if (host.afterProgramCreate && program !== builderProgram) {\n        host.afterProgramCreate(builderProgram);\n      }\n      compilerHost.readFile = originalReadFile;\n      compilerHost.fileExists = originalFileExists;\n      compilerHost.directoryExists = originalDirectoryExists;\n      compilerHost.createDirectory = originalCreateDirectory;\n      compilerHost.writeFile = originalWriteFile;\n      return builderProgram;\n    }\n    function createNewProgram(hasInvalidatedResolutions) {\n      writeLog(\"CreatingProgramWith::\");\n      writeLog(`  roots: ${JSON.stringify(rootFileNames)}`);\n      writeLog(`  options: ${JSON.stringify(compilerOptions)}`);\n      if (projectReferences)\n        writeLog(`  projectReferences: ${JSON.stringify(projectReferences)}`);\n      const needsUpdateInTypeRootWatch = hasChangedCompilerOptions || !getCurrentProgram();\n      hasChangedCompilerOptions = false;\n      hasChangedConfigFileParsingErrors = false;\n      resolutionCache.startCachingPerDirectoryResolution();\n      compilerHost.hasInvalidatedResolutions = hasInvalidatedResolutions;\n      compilerHost.hasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames;\n      const oldProgram = getCurrentProgram();\n      builderProgram = createProgram2(rootFileNames, compilerOptions, compilerHost, builderProgram, configFileParsingDiagnostics, projectReferences);\n      resolutionCache.finishCachingPerDirectoryResolution(builderProgram.getProgram(), oldProgram);\n      updateMissingFilePathsWatch(builderProgram.getProgram(), missingFilesMap || (missingFilesMap = /* @__PURE__ */ new Map()), watchMissingFilePath);\n      if (needsUpdateInTypeRootWatch) {\n        resolutionCache.updateTypeRootsWatch();\n      }\n      if (missingFilePathsRequestedForRelease) {\n        for (const missingFilePath of missingFilePathsRequestedForRelease) {\n          if (!missingFilesMap.has(missingFilePath)) {\n            sourceFilesCache.delete(missingFilePath);\n          }\n        }\n        missingFilePathsRequestedForRelease = void 0;\n      }\n    }\n    function updateRootFileNames(files) {\n      Debug.assert(!configFileName, \"Cannot update root file names with config file watch mode\");\n      rootFileNames = files;\n      scheduleProgramUpdate();\n    }\n    function updateNewLine() {\n      return getNewLineCharacter(compilerOptions || optionsToExtendForConfigFile);\n    }\n    function toPath3(fileName) {\n      return toPath(fileName, currentDirectory, getCanonicalFileName);\n    }\n    function isFileMissingOnHost(hostSourceFile) {\n      return typeof hostSourceFile === \"boolean\";\n    }\n    function isFilePresenceUnknownOnHost(hostSourceFile) {\n      return typeof hostSourceFile.version === \"boolean\";\n    }\n    function fileExists(fileName) {\n      const path = toPath3(fileName);\n      if (isFileMissingOnHost(sourceFilesCache.get(path))) {\n        return false;\n      }\n      return directoryStructureHost.fileExists(fileName);\n    }\n    function getVersionedSourceFileByPath(fileName, path, languageVersionOrOptions, onError, shouldCreateNewSourceFile) {\n      const hostSourceFile = sourceFilesCache.get(path);\n      if (isFileMissingOnHost(hostSourceFile)) {\n        return void 0;\n      }\n      if (hostSourceFile === void 0 || shouldCreateNewSourceFile || isFilePresenceUnknownOnHost(hostSourceFile)) {\n        const sourceFile = getNewSourceFile(fileName, languageVersionOrOptions, onError);\n        if (hostSourceFile) {\n          if (sourceFile) {\n            hostSourceFile.sourceFile = sourceFile;\n            hostSourceFile.version = sourceFile.version;\n            if (!hostSourceFile.fileWatcher) {\n              hostSourceFile.fileWatcher = watchFilePath(path, fileName, onSourceFileChange, 250, watchOptions, WatchType.SourceFile);\n            }\n          } else {\n            if (hostSourceFile.fileWatcher) {\n              hostSourceFile.fileWatcher.close();\n            }\n            sourceFilesCache.set(path, false);\n          }\n        } else {\n          if (sourceFile) {\n            const fileWatcher = watchFilePath(path, fileName, onSourceFileChange, 250, watchOptions, WatchType.SourceFile);\n            sourceFilesCache.set(path, { sourceFile, version: sourceFile.version, fileWatcher });\n          } else {\n            sourceFilesCache.set(path, false);\n          }\n        }\n        return sourceFile;\n      }\n      return hostSourceFile.sourceFile;\n    }\n    function nextSourceFileVersion(path) {\n      const hostSourceFile = sourceFilesCache.get(path);\n      if (hostSourceFile !== void 0) {\n        if (isFileMissingOnHost(hostSourceFile)) {\n          sourceFilesCache.set(path, { version: false });\n        } else {\n          hostSourceFile.version = false;\n        }\n      }\n    }\n    function getSourceVersion(path, readFileWithCache) {\n      const hostSourceFile = sourceFilesCache.get(path);\n      if (!hostSourceFile)\n        return void 0;\n      if (hostSourceFile.version)\n        return hostSourceFile.version;\n      const text = readFileWithCache(path);\n      return text !== void 0 ? getSourceFileVersionAsHashFromText(compilerHost, text) : void 0;\n    }\n    function onReleaseOldSourceFile(oldSourceFile, _oldOptions, hasSourceFileByPath) {\n      const hostSourceFileInfo = sourceFilesCache.get(oldSourceFile.resolvedPath);\n      if (hostSourceFileInfo !== void 0) {\n        if (isFileMissingOnHost(hostSourceFileInfo)) {\n          (missingFilePathsRequestedForRelease || (missingFilePathsRequestedForRelease = [])).push(oldSourceFile.path);\n        } else if (hostSourceFileInfo.sourceFile === oldSourceFile) {\n          if (hostSourceFileInfo.fileWatcher) {\n            hostSourceFileInfo.fileWatcher.close();\n          }\n          sourceFilesCache.delete(oldSourceFile.resolvedPath);\n          if (!hasSourceFileByPath) {\n            resolutionCache.removeResolutionsOfFile(oldSourceFile.path);\n          }\n        }\n      }\n    }\n    function reportWatchDiagnostic(message) {\n      if (host.onWatchStatusChange) {\n        host.onWatchStatusChange(createCompilerDiagnostic(message), newLine, compilerOptions || optionsToExtendForConfigFile);\n      }\n    }\n    function hasChangedAutomaticTypeDirectiveNames() {\n      return resolutionCache.hasChangedAutomaticTypeDirectiveNames();\n    }\n    function clearInvalidateResolutionsOfFailedLookupLocations() {\n      if (!timerToInvalidateFailedLookupResolutions)\n        return false;\n      host.clearTimeout(timerToInvalidateFailedLookupResolutions);\n      timerToInvalidateFailedLookupResolutions = void 0;\n      return true;\n    }\n    function scheduleInvalidateResolutionsOfFailedLookupLocations() {\n      if (!host.setTimeout || !host.clearTimeout) {\n        return resolutionCache.invalidateResolutionsOfFailedLookupLocations();\n      }\n      const pending = clearInvalidateResolutionsOfFailedLookupLocations();\n      writeLog(`Scheduling invalidateFailedLookup${pending ? \", Cancelled earlier one\" : \"\"}`);\n      timerToInvalidateFailedLookupResolutions = host.setTimeout(invalidateResolutionsOfFailedLookup, 250);\n    }\n    function invalidateResolutionsOfFailedLookup() {\n      timerToInvalidateFailedLookupResolutions = void 0;\n      if (resolutionCache.invalidateResolutionsOfFailedLookupLocations()) {\n        scheduleProgramUpdate();\n      }\n    }\n    function scheduleProgramUpdate() {\n      if (!host.setTimeout || !host.clearTimeout) {\n        return;\n      }\n      if (timerToUpdateProgram) {\n        host.clearTimeout(timerToUpdateProgram);\n      }\n      writeLog(\"Scheduling update\");\n      timerToUpdateProgram = host.setTimeout(updateProgramWithWatchStatus, 250);\n    }\n    function scheduleProgramReload() {\n      Debug.assert(!!configFileName);\n      reloadLevel = 2;\n      scheduleProgramUpdate();\n    }\n    function updateProgramWithWatchStatus() {\n      timerToUpdateProgram = void 0;\n      reportFileChangeDetectedOnCreateProgram = true;\n      updateProgram();\n    }\n    function updateProgram() {\n      switch (reloadLevel) {\n        case 1:\n          perfLogger.logStartUpdateProgram(\"PartialConfigReload\");\n          reloadFileNamesFromConfigFile();\n          break;\n        case 2:\n          perfLogger.logStartUpdateProgram(\"FullConfigReload\");\n          reloadConfigFile();\n          break;\n        default:\n          perfLogger.logStartUpdateProgram(\"SynchronizeProgram\");\n          synchronizeProgram();\n          break;\n      }\n      perfLogger.logStopUpdateProgram(\"Done\");\n      return getCurrentBuilderProgram();\n    }\n    function reloadFileNamesFromConfigFile() {\n      writeLog(\"Reloading new file names and options\");\n      Debug.assert(compilerOptions);\n      Debug.assert(configFileName);\n      reloadLevel = 0;\n      rootFileNames = getFileNamesFromConfigSpecs(compilerOptions.configFile.configFileSpecs, getNormalizedAbsolutePath(getDirectoryPath(configFileName), currentDirectory), compilerOptions, parseConfigFileHost, extraFileExtensions);\n      if (updateErrorForNoInputFiles(rootFileNames, getNormalizedAbsolutePath(configFileName, currentDirectory), compilerOptions.configFile.configFileSpecs, configFileParsingDiagnostics, canConfigFileJsonReportNoInputFiles)) {\n        hasChangedConfigFileParsingErrors = true;\n      }\n      synchronizeProgram();\n    }\n    function reloadConfigFile() {\n      Debug.assert(configFileName);\n      writeLog(`Reloading config file: ${configFileName}`);\n      reloadLevel = 0;\n      if (cachedDirectoryStructureHost) {\n        cachedDirectoryStructureHost.clearCache();\n      }\n      parseConfigFile2();\n      hasChangedCompilerOptions = true;\n      synchronizeProgram();\n      watchConfigFileWildCardDirectories();\n      updateExtendedConfigFilesWatches(toPath3(configFileName), compilerOptions, watchOptions, WatchType.ExtendedConfigFile);\n    }\n    function parseConfigFile2() {\n      Debug.assert(configFileName);\n      setConfigFileParsingResult(getParsedCommandLineOfConfigFile(configFileName, optionsToExtendForConfigFile, parseConfigFileHost, extendedConfigCache || (extendedConfigCache = /* @__PURE__ */ new Map()), watchOptionsToExtend, extraFileExtensions));\n    }\n    function setConfigFileParsingResult(configFileParseResult) {\n      rootFileNames = configFileParseResult.fileNames;\n      compilerOptions = configFileParseResult.options;\n      watchOptions = configFileParseResult.watchOptions;\n      projectReferences = configFileParseResult.projectReferences;\n      wildcardDirectories = configFileParseResult.wildcardDirectories;\n      configFileParsingDiagnostics = getConfigFileParsingDiagnostics(configFileParseResult).slice();\n      canConfigFileJsonReportNoInputFiles = canJsonReportNoInputFiles(configFileParseResult.raw);\n      hasChangedConfigFileParsingErrors = true;\n    }\n    function getParsedCommandLine(configFileName2) {\n      const configPath = toPath3(configFileName2);\n      let config = parsedConfigs == null ? void 0 : parsedConfigs.get(configPath);\n      if (config) {\n        if (!config.reloadLevel)\n          return config.parsedCommandLine;\n        if (config.parsedCommandLine && config.reloadLevel === 1 && !host.getParsedCommandLine) {\n          writeLog(\"Reloading new file names and options\");\n          Debug.assert(compilerOptions);\n          const fileNames = getFileNamesFromConfigSpecs(config.parsedCommandLine.options.configFile.configFileSpecs, getNormalizedAbsolutePath(getDirectoryPath(configFileName2), currentDirectory), compilerOptions, parseConfigFileHost);\n          config.parsedCommandLine = { ...config.parsedCommandLine, fileNames };\n          config.reloadLevel = void 0;\n          return config.parsedCommandLine;\n        }\n      }\n      writeLog(`Loading config file: ${configFileName2}`);\n      const parsedCommandLine = host.getParsedCommandLine ? host.getParsedCommandLine(configFileName2) : getParsedCommandLineFromConfigFileHost(configFileName2);\n      if (config) {\n        config.parsedCommandLine = parsedCommandLine;\n        config.reloadLevel = void 0;\n      } else {\n        (parsedConfigs || (parsedConfigs = /* @__PURE__ */ new Map())).set(configPath, config = { parsedCommandLine });\n      }\n      watchReferencedProject(configFileName2, configPath, config);\n      return parsedCommandLine;\n    }\n    function getParsedCommandLineFromConfigFileHost(configFileName2) {\n      const onUnRecoverableConfigFileDiagnostic = parseConfigFileHost.onUnRecoverableConfigFileDiagnostic;\n      parseConfigFileHost.onUnRecoverableConfigFileDiagnostic = noop;\n      const parsedCommandLine = getParsedCommandLineOfConfigFile(configFileName2, void 0, parseConfigFileHost, extendedConfigCache || (extendedConfigCache = /* @__PURE__ */ new Map()), watchOptionsToExtend);\n      parseConfigFileHost.onUnRecoverableConfigFileDiagnostic = onUnRecoverableConfigFileDiagnostic;\n      return parsedCommandLine;\n    }\n    function onReleaseParsedCommandLine(fileName) {\n      var _a2;\n      const path = toPath3(fileName);\n      const config = parsedConfigs == null ? void 0 : parsedConfigs.get(path);\n      if (!config)\n        return;\n      parsedConfigs.delete(path);\n      if (config.watchedDirectories)\n        clearMap(config.watchedDirectories, closeFileWatcherOf);\n      (_a2 = config.watcher) == null ? void 0 : _a2.close();\n      clearSharedExtendedConfigFileWatcher(path, sharedExtendedConfigFileWatchers);\n    }\n    function watchFilePath(path, file, callback, pollingInterval, options, watchType) {\n      return watchFile2(file, (fileName, eventKind) => callback(fileName, eventKind, path), pollingInterval, options, watchType);\n    }\n    function onSourceFileChange(fileName, eventKind, path) {\n      updateCachedSystemWithFile(fileName, path, eventKind);\n      if (eventKind === 2 && sourceFilesCache.has(path)) {\n        resolutionCache.invalidateResolutionOfFile(path);\n      }\n      nextSourceFileVersion(path);\n      scheduleProgramUpdate();\n    }\n    function updateCachedSystemWithFile(fileName, path, eventKind) {\n      if (cachedDirectoryStructureHost) {\n        cachedDirectoryStructureHost.addOrDeleteFile(fileName, path, eventKind);\n      }\n    }\n    function watchMissingFilePath(missingFilePath) {\n      return (parsedConfigs == null ? void 0 : parsedConfigs.has(missingFilePath)) ? noopFileWatcher : watchFilePath(missingFilePath, missingFilePath, onMissingFileChange, 500, watchOptions, WatchType.MissingFile);\n    }\n    function onMissingFileChange(fileName, eventKind, missingFilePath) {\n      updateCachedSystemWithFile(fileName, missingFilePath, eventKind);\n      if (eventKind === 0 && missingFilesMap.has(missingFilePath)) {\n        missingFilesMap.get(missingFilePath).close();\n        missingFilesMap.delete(missingFilePath);\n        nextSourceFileVersion(missingFilePath);\n        scheduleProgramUpdate();\n      }\n    }\n    function watchConfigFileWildCardDirectories() {\n      if (wildcardDirectories) {\n        updateWatchingWildcardDirectories(watchedWildcardDirectories || (watchedWildcardDirectories = /* @__PURE__ */ new Map()), new Map(Object.entries(wildcardDirectories)), watchWildcardDirectory);\n      } else if (watchedWildcardDirectories) {\n        clearMap(watchedWildcardDirectories, closeFileWatcherOf);\n      }\n    }\n    function watchWildcardDirectory(directory, flags) {\n      return watchDirectory(directory, (fileOrDirectory) => {\n        Debug.assert(configFileName);\n        Debug.assert(compilerOptions);\n        const fileOrDirectoryPath = toPath3(fileOrDirectory);\n        if (cachedDirectoryStructureHost) {\n          cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath);\n        }\n        nextSourceFileVersion(fileOrDirectoryPath);\n        if (isIgnoredFileFromWildCardWatching({\n          watchedDirPath: toPath3(directory),\n          fileOrDirectory,\n          fileOrDirectoryPath,\n          configFileName,\n          extraFileExtensions,\n          options: compilerOptions,\n          program: getCurrentBuilderProgram() || rootFileNames,\n          currentDirectory,\n          useCaseSensitiveFileNames,\n          writeLog,\n          toPath: toPath3\n        }))\n          return;\n        if (reloadLevel !== 2) {\n          reloadLevel = 1;\n          scheduleProgramUpdate();\n        }\n      }, flags, watchOptions, WatchType.WildcardDirectory);\n    }\n    function updateExtendedConfigFilesWatches(forProjectPath, options, watchOptions2, watchType) {\n      Debug.assert(configFileName);\n      updateSharedExtendedConfigFileWatcher(forProjectPath, options, sharedExtendedConfigFileWatchers || (sharedExtendedConfigFileWatchers = /* @__PURE__ */ new Map()), (extendedConfigFileName, extendedConfigFilePath) => watchFile2(extendedConfigFileName, (_fileName, eventKind) => {\n        var _a2;\n        updateCachedSystemWithFile(extendedConfigFileName, extendedConfigFilePath, eventKind);\n        if (extendedConfigCache)\n          cleanExtendedConfigCache(extendedConfigCache, extendedConfigFilePath, toPath3);\n        const projects = (_a2 = sharedExtendedConfigFileWatchers.get(extendedConfigFilePath)) == null ? void 0 : _a2.projects;\n        if (!(projects == null ? void 0 : projects.size))\n          return;\n        projects.forEach((projectPath) => {\n          if (toPath3(configFileName) === projectPath) {\n            reloadLevel = 2;\n          } else {\n            const config = parsedConfigs == null ? void 0 : parsedConfigs.get(projectPath);\n            if (config)\n              config.reloadLevel = 2;\n            resolutionCache.removeResolutionsFromProjectReferenceRedirects(projectPath);\n          }\n          scheduleProgramUpdate();\n        });\n      }, 2e3, watchOptions2, watchType), toPath3);\n    }\n    function watchReferencedProject(configFileName2, configPath, commandLine) {\n      var _a2, _b, _c, _d, _e;\n      commandLine.watcher || (commandLine.watcher = watchFile2(configFileName2, (_fileName, eventKind) => {\n        updateCachedSystemWithFile(configFileName2, configPath, eventKind);\n        const config = parsedConfigs == null ? void 0 : parsedConfigs.get(configPath);\n        if (config)\n          config.reloadLevel = 2;\n        resolutionCache.removeResolutionsFromProjectReferenceRedirects(configPath);\n        scheduleProgramUpdate();\n      }, 2e3, ((_a2 = commandLine.parsedCommandLine) == null ? void 0 : _a2.watchOptions) || watchOptions, WatchType.ConfigFileOfReferencedProject));\n      if ((_b = commandLine.parsedCommandLine) == null ? void 0 : _b.wildcardDirectories) {\n        updateWatchingWildcardDirectories(commandLine.watchedDirectories || (commandLine.watchedDirectories = /* @__PURE__ */ new Map()), new Map(Object.entries((_c = commandLine.parsedCommandLine) == null ? void 0 : _c.wildcardDirectories)), (directory, flags) => {\n          var _a3;\n          return watchDirectory(directory, (fileOrDirectory) => {\n            const fileOrDirectoryPath = toPath3(fileOrDirectory);\n            if (cachedDirectoryStructureHost) {\n              cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath);\n            }\n            nextSourceFileVersion(fileOrDirectoryPath);\n            const config = parsedConfigs == null ? void 0 : parsedConfigs.get(configPath);\n            if (!(config == null ? void 0 : config.parsedCommandLine))\n              return;\n            if (isIgnoredFileFromWildCardWatching({\n              watchedDirPath: toPath3(directory),\n              fileOrDirectory,\n              fileOrDirectoryPath,\n              configFileName: configFileName2,\n              options: config.parsedCommandLine.options,\n              program: config.parsedCommandLine.fileNames,\n              currentDirectory,\n              useCaseSensitiveFileNames,\n              writeLog,\n              toPath: toPath3\n            }))\n              return;\n            if (config.reloadLevel !== 2) {\n              config.reloadLevel = 1;\n              scheduleProgramUpdate();\n            }\n          }, flags, ((_a3 = commandLine.parsedCommandLine) == null ? void 0 : _a3.watchOptions) || watchOptions, WatchType.WildcardDirectoryOfReferencedProject);\n        });\n      } else if (commandLine.watchedDirectories) {\n        clearMap(commandLine.watchedDirectories, closeFileWatcherOf);\n        commandLine.watchedDirectories = void 0;\n      }\n      updateExtendedConfigFilesWatches(configPath, (_d = commandLine.parsedCommandLine) == null ? void 0 : _d.options, ((_e = commandLine.parsedCommandLine) == null ? void 0 : _e.watchOptions) || watchOptions, WatchType.ExtendedConfigOfReferencedProject);\n    }\n  }\n  var init_watchPublic = __esm({\n    \"src/compiler/watchPublic.ts\"() {\n      \"use strict\";\n      init_ts2();\n      init_ts2();\n    }\n  });\n  function resolveConfigFileProjectName(project) {\n    if (fileExtensionIs(project, \".json\")) {\n      return project;\n    }\n    return combinePaths(project, \"tsconfig.json\");\n  }\n  var UpToDateStatusType;\n  var init_tsbuild = __esm({\n    \"src/compiler/tsbuild.ts\"() {\n      \"use strict\";\n      init_ts2();\n      UpToDateStatusType = /* @__PURE__ */ ((UpToDateStatusType2) => {\n        UpToDateStatusType2[UpToDateStatusType2[\"Unbuildable\"] = 0] = \"Unbuildable\";\n        UpToDateStatusType2[UpToDateStatusType2[\"UpToDate\"] = 1] = \"UpToDate\";\n        UpToDateStatusType2[UpToDateStatusType2[\"UpToDateWithUpstreamTypes\"] = 2] = \"UpToDateWithUpstreamTypes\";\n        UpToDateStatusType2[UpToDateStatusType2[\"OutOfDateWithPrepend\"] = 3] = \"OutOfDateWithPrepend\";\n        UpToDateStatusType2[UpToDateStatusType2[\"OutputMissing\"] = 4] = \"OutputMissing\";\n        UpToDateStatusType2[UpToDateStatusType2[\"ErrorReadingFile\"] = 5] = \"ErrorReadingFile\";\n        UpToDateStatusType2[UpToDateStatusType2[\"OutOfDateWithSelf\"] = 6] = \"OutOfDateWithSelf\";\n        UpToDateStatusType2[UpToDateStatusType2[\"OutOfDateWithUpstream\"] = 7] = \"OutOfDateWithUpstream\";\n        UpToDateStatusType2[UpToDateStatusType2[\"OutOfDateBuildInfo\"] = 8] = \"OutOfDateBuildInfo\";\n        UpToDateStatusType2[UpToDateStatusType2[\"OutOfDateOptions\"] = 9] = \"OutOfDateOptions\";\n        UpToDateStatusType2[UpToDateStatusType2[\"OutOfDateRoots\"] = 10] = \"OutOfDateRoots\";\n        UpToDateStatusType2[UpToDateStatusType2[\"UpstreamOutOfDate\"] = 11] = \"UpstreamOutOfDate\";\n        UpToDateStatusType2[UpToDateStatusType2[\"UpstreamBlocked\"] = 12] = \"UpstreamBlocked\";\n        UpToDateStatusType2[UpToDateStatusType2[\"ComputingUpstream\"] = 13] = \"ComputingUpstream\";\n        UpToDateStatusType2[UpToDateStatusType2[\"TsVersionOutputOfDate\"] = 14] = \"TsVersionOutputOfDate\";\n        UpToDateStatusType2[UpToDateStatusType2[\"UpToDateWithInputFileText\"] = 15] = \"UpToDateWithInputFileText\";\n        UpToDateStatusType2[UpToDateStatusType2[\"ContainerOnly\"] = 16] = \"ContainerOnly\";\n        UpToDateStatusType2[UpToDateStatusType2[\"ForceBuild\"] = 17] = \"ForceBuild\";\n        return UpToDateStatusType2;\n      })(UpToDateStatusType || {});\n    }\n  });\n  function getOrCreateValueFromConfigFileMap(configFileMap, resolved, createT) {\n    const existingValue = configFileMap.get(resolved);\n    let newValue;\n    if (!existingValue) {\n      newValue = createT();\n      configFileMap.set(resolved, newValue);\n    }\n    return existingValue || newValue;\n  }\n  function getOrCreateValueMapFromConfigFileMap(configFileMap, resolved) {\n    return getOrCreateValueFromConfigFileMap(configFileMap, resolved, () => /* @__PURE__ */ new Map());\n  }\n  function getCurrentTime(host) {\n    return host.now ? host.now() : /* @__PURE__ */ new Date();\n  }\n  function isCircularBuildOrder(buildOrder) {\n    return !!buildOrder && !!buildOrder.buildOrder;\n  }\n  function getBuildOrderFromAnyBuildOrder(anyBuildOrder) {\n    return isCircularBuildOrder(anyBuildOrder) ? anyBuildOrder.buildOrder : anyBuildOrder;\n  }\n  function createBuilderStatusReporter(system, pretty) {\n    return (diagnostic) => {\n      let output = pretty ? `[${formatColorAndReset(getLocaleTimeString(system), \"\\x1B[90m\")}] ` : `${getLocaleTimeString(system)} - `;\n      output += `${flattenDiagnosticMessageText2(diagnostic.messageText, system.newLine)}${system.newLine + system.newLine}`;\n      system.write(output);\n    };\n  }\n  function createSolutionBuilderHostBase(system, createProgram2, reportDiagnostic, reportSolutionBuilderStatus) {\n    const host = createProgramHost(system, createProgram2);\n    host.getModifiedTime = system.getModifiedTime ? (path) => system.getModifiedTime(path) : returnUndefined;\n    host.setModifiedTime = system.setModifiedTime ? (path, date) => system.setModifiedTime(path, date) : noop;\n    host.deleteFile = system.deleteFile ? (path) => system.deleteFile(path) : noop;\n    host.reportDiagnostic = reportDiagnostic || createDiagnosticReporter(system);\n    host.reportSolutionBuilderStatus = reportSolutionBuilderStatus || createBuilderStatusReporter(system);\n    host.now = maybeBind(system, system.now);\n    return host;\n  }\n  function createSolutionBuilderHost(system = sys, createProgram2, reportDiagnostic, reportSolutionBuilderStatus, reportErrorSummary2) {\n    const host = createSolutionBuilderHostBase(system, createProgram2, reportDiagnostic, reportSolutionBuilderStatus);\n    host.reportErrorSummary = reportErrorSummary2;\n    return host;\n  }\n  function createSolutionBuilderWithWatchHost(system = sys, createProgram2, reportDiagnostic, reportSolutionBuilderStatus, reportWatchStatus2) {\n    const host = createSolutionBuilderHostBase(system, createProgram2, reportDiagnostic, reportSolutionBuilderStatus);\n    const watchHost = createWatchHost(system, reportWatchStatus2);\n    copyProperties(host, watchHost);\n    return host;\n  }\n  function getCompilerOptionsOfBuildOptions(buildOptions) {\n    const result = {};\n    commonOptionsWithBuild.forEach((option) => {\n      if (hasProperty(buildOptions, option.name))\n        result[option.name] = buildOptions[option.name];\n    });\n    return result;\n  }\n  function createSolutionBuilder(host, rootNames, defaultOptions) {\n    return createSolutionBuilderWorker(false, host, rootNames, defaultOptions);\n  }\n  function createSolutionBuilderWithWatch(host, rootNames, defaultOptions, baseWatchOptions) {\n    return createSolutionBuilderWorker(true, host, rootNames, defaultOptions, baseWatchOptions);\n  }\n  function createSolutionBuilderState(watch, hostOrHostWithWatch, rootNames, options, baseWatchOptions) {\n    const host = hostOrHostWithWatch;\n    const hostWithWatch = hostOrHostWithWatch;\n    const baseCompilerOptions = getCompilerOptionsOfBuildOptions(options);\n    const compilerHost = createCompilerHostFromProgramHost(host, () => state.projectCompilerOptions);\n    setGetSourceFileAsHashVersioned(compilerHost);\n    compilerHost.getParsedCommandLine = (fileName) => parseConfigFile(state, fileName, toResolvedConfigFilePath(state, fileName));\n    compilerHost.resolveModuleNameLiterals = maybeBind(host, host.resolveModuleNameLiterals);\n    compilerHost.resolveTypeReferenceDirectiveReferences = maybeBind(host, host.resolveTypeReferenceDirectiveReferences);\n    compilerHost.resolveModuleNames = maybeBind(host, host.resolveModuleNames);\n    compilerHost.resolveTypeReferenceDirectives = maybeBind(host, host.resolveTypeReferenceDirectives);\n    compilerHost.getModuleResolutionCache = maybeBind(host, host.getModuleResolutionCache);\n    let moduleResolutionCache, typeReferenceDirectiveResolutionCache;\n    if (!compilerHost.resolveModuleNameLiterals && !compilerHost.resolveModuleNames) {\n      moduleResolutionCache = createModuleResolutionCache(compilerHost.getCurrentDirectory(), compilerHost.getCanonicalFileName);\n      compilerHost.resolveModuleNameLiterals = (moduleNames, containingFile, redirectedReference, options2, containingSourceFile) => loadWithModeAwareCache(moduleNames, containingFile, redirectedReference, options2, containingSourceFile, host, moduleResolutionCache, createModuleResolutionLoader);\n      compilerHost.getModuleResolutionCache = () => moduleResolutionCache;\n    }\n    if (!compilerHost.resolveTypeReferenceDirectiveReferences && !compilerHost.resolveTypeReferenceDirectives) {\n      typeReferenceDirectiveResolutionCache = createTypeReferenceDirectiveResolutionCache(compilerHost.getCurrentDirectory(), compilerHost.getCanonicalFileName, void 0, moduleResolutionCache == null ? void 0 : moduleResolutionCache.getPackageJsonInfoCache());\n      compilerHost.resolveTypeReferenceDirectiveReferences = (typeDirectiveNames, containingFile, redirectedReference, options2, containingSourceFile) => loadWithModeAwareCache(typeDirectiveNames, containingFile, redirectedReference, options2, containingSourceFile, host, typeReferenceDirectiveResolutionCache, createTypeReferenceResolutionLoader);\n    }\n    compilerHost.getBuildInfo = (fileName, configFilePath) => getBuildInfo3(state, fileName, toResolvedConfigFilePath(state, configFilePath), void 0);\n    const { watchFile: watchFile2, watchDirectory, writeLog } = createWatchFactory(hostWithWatch, options);\n    const state = {\n      host,\n      hostWithWatch,\n      parseConfigFileHost: parseConfigHostFromCompilerHostLike(host),\n      write: maybeBind(host, host.trace),\n      options,\n      baseCompilerOptions,\n      rootNames,\n      baseWatchOptions,\n      resolvedConfigFilePaths: /* @__PURE__ */ new Map(),\n      configFileCache: /* @__PURE__ */ new Map(),\n      projectStatus: /* @__PURE__ */ new Map(),\n      extendedConfigCache: /* @__PURE__ */ new Map(),\n      buildInfoCache: /* @__PURE__ */ new Map(),\n      outputTimeStamps: /* @__PURE__ */ new Map(),\n      builderPrograms: /* @__PURE__ */ new Map(),\n      diagnostics: /* @__PURE__ */ new Map(),\n      projectPendingBuild: /* @__PURE__ */ new Map(),\n      projectErrorsReported: /* @__PURE__ */ new Map(),\n      compilerHost,\n      moduleResolutionCache,\n      typeReferenceDirectiveResolutionCache,\n      buildOrder: void 0,\n      readFileWithCache: (f) => host.readFile(f),\n      projectCompilerOptions: baseCompilerOptions,\n      cache: void 0,\n      allProjectBuildPending: true,\n      needsSummary: true,\n      watchAllProjectsPending: watch,\n      watch,\n      allWatchedWildcardDirectories: /* @__PURE__ */ new Map(),\n      allWatchedInputFiles: /* @__PURE__ */ new Map(),\n      allWatchedConfigFiles: /* @__PURE__ */ new Map(),\n      allWatchedExtendedConfigFiles: /* @__PURE__ */ new Map(),\n      allWatchedPackageJsonFiles: /* @__PURE__ */ new Map(),\n      filesWatched: /* @__PURE__ */ new Map(),\n      lastCachedPackageJsonLookups: /* @__PURE__ */ new Map(),\n      timerToBuildInvalidatedProject: void 0,\n      reportFileChangeDetected: false,\n      watchFile: watchFile2,\n      watchDirectory,\n      writeLog\n    };\n    return state;\n  }\n  function toPath2(state, fileName) {\n    return toPath(fileName, state.compilerHost.getCurrentDirectory(), state.compilerHost.getCanonicalFileName);\n  }\n  function toResolvedConfigFilePath(state, fileName) {\n    const { resolvedConfigFilePaths } = state;\n    const path = resolvedConfigFilePaths.get(fileName);\n    if (path !== void 0)\n      return path;\n    const resolvedPath = toPath2(state, fileName);\n    resolvedConfigFilePaths.set(fileName, resolvedPath);\n    return resolvedPath;\n  }\n  function isParsedCommandLine(entry) {\n    return !!entry.options;\n  }\n  function getCachedParsedConfigFile(state, configFilePath) {\n    const value = state.configFileCache.get(configFilePath);\n    return value && isParsedCommandLine(value) ? value : void 0;\n  }\n  function parseConfigFile(state, configFileName, configFilePath) {\n    const { configFileCache } = state;\n    const value = configFileCache.get(configFilePath);\n    if (value) {\n      return isParsedCommandLine(value) ? value : void 0;\n    }\n    mark(\"SolutionBuilder::beforeConfigFileParsing\");\n    let diagnostic;\n    const { parseConfigFileHost, baseCompilerOptions, baseWatchOptions, extendedConfigCache, host } = state;\n    let parsed;\n    if (host.getParsedCommandLine) {\n      parsed = host.getParsedCommandLine(configFileName);\n      if (!parsed)\n        diagnostic = createCompilerDiagnostic(Diagnostics.File_0_not_found, configFileName);\n    } else {\n      parseConfigFileHost.onUnRecoverableConfigFileDiagnostic = (d) => diagnostic = d;\n      parsed = getParsedCommandLineOfConfigFile(configFileName, baseCompilerOptions, parseConfigFileHost, extendedConfigCache, baseWatchOptions);\n      parseConfigFileHost.onUnRecoverableConfigFileDiagnostic = noop;\n    }\n    configFileCache.set(configFilePath, parsed || diagnostic);\n    mark(\"SolutionBuilder::afterConfigFileParsing\");\n    measure(\"SolutionBuilder::Config file parsing\", \"SolutionBuilder::beforeConfigFileParsing\", \"SolutionBuilder::afterConfigFileParsing\");\n    return parsed;\n  }\n  function resolveProjectName(state, name) {\n    return resolveConfigFileProjectName(resolvePath(state.compilerHost.getCurrentDirectory(), name));\n  }\n  function createBuildOrder(state, roots) {\n    const temporaryMarks = /* @__PURE__ */ new Map();\n    const permanentMarks = /* @__PURE__ */ new Map();\n    const circularityReportStack = [];\n    let buildOrder;\n    let circularDiagnostics;\n    for (const root of roots) {\n      visit(root);\n    }\n    return circularDiagnostics ? { buildOrder: buildOrder || emptyArray, circularDiagnostics } : buildOrder || emptyArray;\n    function visit(configFileName, inCircularContext) {\n      const projPath = toResolvedConfigFilePath(state, configFileName);\n      if (permanentMarks.has(projPath))\n        return;\n      if (temporaryMarks.has(projPath)) {\n        if (!inCircularContext) {\n          (circularDiagnostics || (circularDiagnostics = [])).push(createCompilerDiagnostic(Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0, circularityReportStack.join(\"\\r\\n\")));\n        }\n        return;\n      }\n      temporaryMarks.set(projPath, true);\n      circularityReportStack.push(configFileName);\n      const parsed = parseConfigFile(state, configFileName, projPath);\n      if (parsed && parsed.projectReferences) {\n        for (const ref of parsed.projectReferences) {\n          const resolvedRefPath = resolveProjectName(state, ref.path);\n          visit(resolvedRefPath, inCircularContext || ref.circular);\n        }\n      }\n      circularityReportStack.pop();\n      permanentMarks.set(projPath, true);\n      (buildOrder || (buildOrder = [])).push(configFileName);\n    }\n  }\n  function getBuildOrder(state) {\n    return state.buildOrder || createStateBuildOrder(state);\n  }\n  function createStateBuildOrder(state) {\n    const buildOrder = createBuildOrder(state, state.rootNames.map((f) => resolveProjectName(state, f)));\n    state.resolvedConfigFilePaths.clear();\n    const currentProjects = new Map(getBuildOrderFromAnyBuildOrder(buildOrder).map((resolved) => [toResolvedConfigFilePath(state, resolved), true]));\n    const noopOnDelete = { onDeleteValue: noop };\n    mutateMapSkippingNewValues(state.configFileCache, currentProjects, noopOnDelete);\n    mutateMapSkippingNewValues(state.projectStatus, currentProjects, noopOnDelete);\n    mutateMapSkippingNewValues(state.builderPrograms, currentProjects, noopOnDelete);\n    mutateMapSkippingNewValues(state.diagnostics, currentProjects, noopOnDelete);\n    mutateMapSkippingNewValues(state.projectPendingBuild, currentProjects, noopOnDelete);\n    mutateMapSkippingNewValues(state.projectErrorsReported, currentProjects, noopOnDelete);\n    mutateMapSkippingNewValues(state.buildInfoCache, currentProjects, noopOnDelete);\n    mutateMapSkippingNewValues(state.outputTimeStamps, currentProjects, noopOnDelete);\n    if (state.watch) {\n      mutateMapSkippingNewValues(state.allWatchedConfigFiles, currentProjects, { onDeleteValue: closeFileWatcher });\n      state.allWatchedExtendedConfigFiles.forEach((watcher) => {\n        watcher.projects.forEach((project) => {\n          if (!currentProjects.has(project)) {\n            watcher.projects.delete(project);\n          }\n        });\n        watcher.close();\n      });\n      mutateMapSkippingNewValues(state.allWatchedWildcardDirectories, currentProjects, { onDeleteValue: (existingMap) => existingMap.forEach(closeFileWatcherOf) });\n      mutateMapSkippingNewValues(state.allWatchedInputFiles, currentProjects, { onDeleteValue: (existingMap) => existingMap.forEach(closeFileWatcher) });\n      mutateMapSkippingNewValues(state.allWatchedPackageJsonFiles, currentProjects, { onDeleteValue: (existingMap) => existingMap.forEach(closeFileWatcher) });\n    }\n    return state.buildOrder = buildOrder;\n  }\n  function getBuildOrderFor(state, project, onlyReferences) {\n    const resolvedProject = project && resolveProjectName(state, project);\n    const buildOrderFromState = getBuildOrder(state);\n    if (isCircularBuildOrder(buildOrderFromState))\n      return buildOrderFromState;\n    if (resolvedProject) {\n      const projectPath = toResolvedConfigFilePath(state, resolvedProject);\n      const projectIndex = findIndex(buildOrderFromState, (configFileName) => toResolvedConfigFilePath(state, configFileName) === projectPath);\n      if (projectIndex === -1)\n        return void 0;\n    }\n    const buildOrder = resolvedProject ? createBuildOrder(state, [resolvedProject]) : buildOrderFromState;\n    Debug.assert(!isCircularBuildOrder(buildOrder));\n    Debug.assert(!onlyReferences || resolvedProject !== void 0);\n    Debug.assert(!onlyReferences || buildOrder[buildOrder.length - 1] === resolvedProject);\n    return onlyReferences ? buildOrder.slice(0, buildOrder.length - 1) : buildOrder;\n  }\n  function enableCache(state) {\n    if (state.cache) {\n      disableCache(state);\n    }\n    const { compilerHost, host } = state;\n    const originalReadFileWithCache = state.readFileWithCache;\n    const originalGetSourceFile = compilerHost.getSourceFile;\n    const {\n      originalReadFile,\n      originalFileExists,\n      originalDirectoryExists,\n      originalCreateDirectory,\n      originalWriteFile,\n      getSourceFileWithCache,\n      readFileWithCache\n    } = changeCompilerHostLikeToUseCache(host, (fileName) => toPath2(state, fileName), (...args) => originalGetSourceFile.call(compilerHost, ...args));\n    state.readFileWithCache = readFileWithCache;\n    compilerHost.getSourceFile = getSourceFileWithCache;\n    state.cache = {\n      originalReadFile,\n      originalFileExists,\n      originalDirectoryExists,\n      originalCreateDirectory,\n      originalWriteFile,\n      originalReadFileWithCache,\n      originalGetSourceFile\n    };\n  }\n  function disableCache(state) {\n    if (!state.cache)\n      return;\n    const { cache, host, compilerHost, extendedConfigCache, moduleResolutionCache, typeReferenceDirectiveResolutionCache } = state;\n    host.readFile = cache.originalReadFile;\n    host.fileExists = cache.originalFileExists;\n    host.directoryExists = cache.originalDirectoryExists;\n    host.createDirectory = cache.originalCreateDirectory;\n    host.writeFile = cache.originalWriteFile;\n    compilerHost.getSourceFile = cache.originalGetSourceFile;\n    state.readFileWithCache = cache.originalReadFileWithCache;\n    extendedConfigCache.clear();\n    moduleResolutionCache == null ? void 0 : moduleResolutionCache.clear();\n    typeReferenceDirectiveResolutionCache == null ? void 0 : typeReferenceDirectiveResolutionCache.clear();\n    state.cache = void 0;\n  }\n  function clearProjectStatus(state, resolved) {\n    state.projectStatus.delete(resolved);\n    state.diagnostics.delete(resolved);\n  }\n  function addProjToQueue({ projectPendingBuild }, proj, reloadLevel) {\n    const value = projectPendingBuild.get(proj);\n    if (value === void 0) {\n      projectPendingBuild.set(proj, reloadLevel);\n    } else if (value < reloadLevel) {\n      projectPendingBuild.set(proj, reloadLevel);\n    }\n  }\n  function setupInitialBuild(state, cancellationToken) {\n    if (!state.allProjectBuildPending)\n      return;\n    state.allProjectBuildPending = false;\n    if (state.options.watch)\n      reportWatchStatus(state, Diagnostics.Starting_compilation_in_watch_mode);\n    enableCache(state);\n    const buildOrder = getBuildOrderFromAnyBuildOrder(getBuildOrder(state));\n    buildOrder.forEach((configFileName) => state.projectPendingBuild.set(toResolvedConfigFilePath(state, configFileName), 0));\n    if (cancellationToken) {\n      cancellationToken.throwIfCancellationRequested();\n    }\n  }\n  function doneInvalidatedProject(state, projectPath) {\n    state.projectPendingBuild.delete(projectPath);\n    return state.diagnostics.has(projectPath) ? 1 : 0;\n  }\n  function createUpdateOutputFileStampsProject(state, project, projectPath, config, buildOrder) {\n    let updateOutputFileStampsPending = true;\n    return {\n      kind: 2,\n      project,\n      projectPath,\n      buildOrder,\n      getCompilerOptions: () => config.options,\n      getCurrentDirectory: () => state.compilerHost.getCurrentDirectory(),\n      updateOutputFileStatmps: () => {\n        updateOutputTimestamps(state, config, projectPath);\n        updateOutputFileStampsPending = false;\n      },\n      done: () => {\n        if (updateOutputFileStampsPending) {\n          updateOutputTimestamps(state, config, projectPath);\n        }\n        mark(\"SolutionBuilder::Timestamps only updates\");\n        return doneInvalidatedProject(state, projectPath);\n      }\n    };\n  }\n  function createBuildOrUpdateInvalidedProject(kind, state, project, projectPath, projectIndex, config, buildOrder) {\n    let step = kind === 0 ? 0 : 4;\n    let program;\n    let buildResult;\n    let invalidatedProjectOfBundle;\n    return kind === 0 ? {\n      kind,\n      project,\n      projectPath,\n      buildOrder,\n      getCompilerOptions: () => config.options,\n      getCurrentDirectory: () => state.compilerHost.getCurrentDirectory(),\n      getBuilderProgram: () => withProgramOrUndefined(identity),\n      getProgram: () => withProgramOrUndefined((program2) => program2.getProgramOrUndefined()),\n      getSourceFile: (fileName) => withProgramOrUndefined((program2) => program2.getSourceFile(fileName)),\n      getSourceFiles: () => withProgramOrEmptyArray((program2) => program2.getSourceFiles()),\n      getOptionsDiagnostics: (cancellationToken) => withProgramOrEmptyArray((program2) => program2.getOptionsDiagnostics(cancellationToken)),\n      getGlobalDiagnostics: (cancellationToken) => withProgramOrEmptyArray((program2) => program2.getGlobalDiagnostics(cancellationToken)),\n      getConfigFileParsingDiagnostics: () => withProgramOrEmptyArray((program2) => program2.getConfigFileParsingDiagnostics()),\n      getSyntacticDiagnostics: (sourceFile, cancellationToken) => withProgramOrEmptyArray((program2) => program2.getSyntacticDiagnostics(sourceFile, cancellationToken)),\n      getAllDependencies: (sourceFile) => withProgramOrEmptyArray((program2) => program2.getAllDependencies(sourceFile)),\n      getSemanticDiagnostics: (sourceFile, cancellationToken) => withProgramOrEmptyArray((program2) => program2.getSemanticDiagnostics(sourceFile, cancellationToken)),\n      getSemanticDiagnosticsOfNextAffectedFile: (cancellationToken, ignoreSourceFile) => withProgramOrUndefined((program2) => program2.getSemanticDiagnosticsOfNextAffectedFile && program2.getSemanticDiagnosticsOfNextAffectedFile(cancellationToken, ignoreSourceFile)),\n      emit: (targetSourceFile, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) => {\n        if (targetSourceFile || emitOnlyDtsFiles) {\n          return withProgramOrUndefined((program2) => {\n            var _a2, _b;\n            return program2.emit(targetSourceFile, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers || ((_b = (_a2 = state.host).getCustomTransformers) == null ? void 0 : _b.call(_a2, project)));\n          });\n        }\n        executeSteps(2, cancellationToken);\n        if (step === 5) {\n          return emitBuildInfo(writeFile2, cancellationToken);\n        }\n        if (step !== 3)\n          return void 0;\n        return emit(writeFile2, cancellationToken, customTransformers);\n      },\n      done\n    } : {\n      kind,\n      project,\n      projectPath,\n      buildOrder,\n      getCompilerOptions: () => config.options,\n      getCurrentDirectory: () => state.compilerHost.getCurrentDirectory(),\n      emit: (writeFile2, customTransformers) => {\n        if (step !== 4)\n          return invalidatedProjectOfBundle;\n        return emitBundle(writeFile2, customTransformers);\n      },\n      done\n    };\n    function done(cancellationToken, writeFile2, customTransformers) {\n      executeSteps(8, cancellationToken, writeFile2, customTransformers);\n      if (kind === 0)\n        mark(\"SolutionBuilder::Projects built\");\n      else\n        mark(\"SolutionBuilder::Bundles updated\");\n      return doneInvalidatedProject(state, projectPath);\n    }\n    function withProgramOrUndefined(action) {\n      executeSteps(0);\n      return program && action(program);\n    }\n    function withProgramOrEmptyArray(action) {\n      return withProgramOrUndefined(action) || emptyArray;\n    }\n    function createProgram2() {\n      var _a2, _b;\n      Debug.assert(program === void 0);\n      if (state.options.dry) {\n        reportStatus(state, Diagnostics.A_non_dry_build_would_build_project_0, project);\n        buildResult = 1;\n        step = 7;\n        return;\n      }\n      if (state.options.verbose)\n        reportStatus(state, Diagnostics.Building_project_0, project);\n      if (config.fileNames.length === 0) {\n        reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config));\n        buildResult = 0;\n        step = 7;\n        return;\n      }\n      const { host, compilerHost } = state;\n      state.projectCompilerOptions = config.options;\n      (_a2 = state.moduleResolutionCache) == null ? void 0 : _a2.update(config.options);\n      (_b = state.typeReferenceDirectiveResolutionCache) == null ? void 0 : _b.update(config.options);\n      program = host.createProgram(config.fileNames, config.options, compilerHost, getOldProgram(state, projectPath, config), getConfigFileParsingDiagnostics(config), config.projectReferences);\n      if (state.watch) {\n        state.lastCachedPackageJsonLookups.set(projectPath, state.moduleResolutionCache && map(state.moduleResolutionCache.getPackageJsonInfoCache().entries(), ([path, data]) => [state.host.realpath && data ? toPath2(state, state.host.realpath(path)) : path, data]));\n        state.builderPrograms.set(projectPath, program);\n      }\n      step++;\n    }\n    function handleDiagnostics(diagnostics, errorFlags, errorType) {\n      if (diagnostics.length) {\n        ({ buildResult, step } = buildErrors(state, projectPath, program, config, diagnostics, errorFlags, errorType));\n      } else {\n        step++;\n      }\n    }\n    function getSyntaxDiagnostics(cancellationToken) {\n      Debug.assertIsDefined(program);\n      handleDiagnostics([\n        ...program.getConfigFileParsingDiagnostics(),\n        ...program.getOptionsDiagnostics(cancellationToken),\n        ...program.getGlobalDiagnostics(cancellationToken),\n        ...program.getSyntacticDiagnostics(void 0, cancellationToken)\n      ], 8, \"Syntactic\");\n    }\n    function getSemanticDiagnostics(cancellationToken) {\n      handleDiagnostics(Debug.checkDefined(program).getSemanticDiagnostics(void 0, cancellationToken), 16, \"Semantic\");\n    }\n    function emit(writeFileCallback, cancellationToken, customTransformers) {\n      var _a2, _b, _c;\n      Debug.assertIsDefined(program);\n      Debug.assert(step === 3);\n      const saved = program.saveEmitState();\n      let declDiagnostics;\n      const reportDeclarationDiagnostics = (d) => (declDiagnostics || (declDiagnostics = [])).push(d);\n      const outputFiles = [];\n      const { emitResult } = emitFilesAndReportErrors(program, reportDeclarationDiagnostics, void 0, void 0, (name, text, writeByteOrderMark, _onError, _sourceFiles, data) => outputFiles.push({ name, text, writeByteOrderMark, data }), cancellationToken, false, customTransformers || ((_b = (_a2 = state.host).getCustomTransformers) == null ? void 0 : _b.call(_a2, project)));\n      if (declDiagnostics) {\n        program.restoreEmitState(saved);\n        ({ buildResult, step } = buildErrors(state, projectPath, program, config, declDiagnostics, 32, \"Declaration file\"));\n        return {\n          emitSkipped: true,\n          diagnostics: emitResult.diagnostics\n        };\n      }\n      const { host, compilerHost } = state;\n      const resultFlags = ((_c = program.hasChangedEmitSignature) == null ? void 0 : _c.call(program)) ? 0 : 2;\n      const emitterDiagnostics = createDiagnosticCollection();\n      const emittedOutputs = /* @__PURE__ */ new Map();\n      const options = program.getCompilerOptions();\n      const isIncremental = isIncrementalCompilation(options);\n      let outputTimeStampMap;\n      let now;\n      outputFiles.forEach(({ name, text, writeByteOrderMark, data }) => {\n        const path = toPath2(state, name);\n        emittedOutputs.set(toPath2(state, name), name);\n        if (data == null ? void 0 : data.buildInfo)\n          setBuildInfo(state, data.buildInfo, projectPath, options, resultFlags);\n        const modifiedTime = (data == null ? void 0 : data.differsOnlyInMap) ? getModifiedTime(state.host, name) : void 0;\n        writeFile(writeFileCallback ? { writeFile: writeFileCallback } : compilerHost, emitterDiagnostics, name, text, writeByteOrderMark);\n        if (data == null ? void 0 : data.differsOnlyInMap)\n          state.host.setModifiedTime(name, modifiedTime);\n        else if (!isIncremental && state.watch) {\n          (outputTimeStampMap || (outputTimeStampMap = getOutputTimeStampMap(state, projectPath))).set(path, now || (now = getCurrentTime(state.host)));\n        }\n      });\n      finishEmit(emitterDiagnostics, emittedOutputs, outputFiles.length ? outputFiles[0].name : getFirstProjectOutput(config, !host.useCaseSensitiveFileNames()), resultFlags);\n      return emitResult;\n    }\n    function emitBuildInfo(writeFileCallback, cancellationToken) {\n      Debug.assertIsDefined(program);\n      Debug.assert(step === 5);\n      const emitResult = program.emitBuildInfo((name, text, writeByteOrderMark, onError, sourceFiles, data) => {\n        if (data == null ? void 0 : data.buildInfo)\n          setBuildInfo(state, data.buildInfo, projectPath, program.getCompilerOptions(), 2);\n        if (writeFileCallback)\n          writeFileCallback(name, text, writeByteOrderMark, onError, sourceFiles, data);\n        else\n          state.compilerHost.writeFile(name, text, writeByteOrderMark, onError, sourceFiles, data);\n      }, cancellationToken);\n      if (emitResult.diagnostics.length) {\n        reportErrors(state, emitResult.diagnostics);\n        state.diagnostics.set(projectPath, [...state.diagnostics.get(projectPath), ...emitResult.diagnostics]);\n        buildResult = 64 & buildResult;\n      }\n      if (emitResult.emittedFiles && state.write) {\n        emitResult.emittedFiles.forEach((name) => listEmittedFile(state, config, name));\n      }\n      afterProgramDone(state, program, config);\n      step = 7;\n      return emitResult;\n    }\n    function finishEmit(emitterDiagnostics, emittedOutputs, oldestOutputFileName, resultFlags) {\n      const emitDiagnostics = emitterDiagnostics.getDiagnostics();\n      if (emitDiagnostics.length) {\n        ({ buildResult, step } = buildErrors(state, projectPath, program, config, emitDiagnostics, 64, \"Emit\"));\n        return emitDiagnostics;\n      }\n      if (state.write) {\n        emittedOutputs.forEach((name) => listEmittedFile(state, config, name));\n      }\n      updateOutputTimestampsWorker(state, config, projectPath, Diagnostics.Updating_unchanged_output_timestamps_of_project_0, emittedOutputs);\n      state.diagnostics.delete(projectPath);\n      state.projectStatus.set(projectPath, {\n        type: 1,\n        oldestOutputFileName\n      });\n      afterProgramDone(state, program, config);\n      step = 7;\n      buildResult = resultFlags;\n      return emitDiagnostics;\n    }\n    function emitBundle(writeFileCallback, customTransformers) {\n      var _a2, _b, _c, _d;\n      Debug.assert(kind === 1);\n      if (state.options.dry) {\n        reportStatus(state, Diagnostics.A_non_dry_build_would_update_output_of_project_0, project);\n        buildResult = 1;\n        step = 7;\n        return void 0;\n      }\n      if (state.options.verbose)\n        reportStatus(state, Diagnostics.Updating_output_of_project_0, project);\n      const { compilerHost } = state;\n      state.projectCompilerOptions = config.options;\n      (_b = (_a2 = state.host).beforeEmitBundle) == null ? void 0 : _b.call(_a2, config);\n      const outputFiles = emitUsingBuildInfo(config, compilerHost, (ref) => {\n        const refName = resolveProjectName(state, ref.path);\n        return parseConfigFile(state, refName, toResolvedConfigFilePath(state, refName));\n      }, customTransformers || ((_d = (_c = state.host).getCustomTransformers) == null ? void 0 : _d.call(_c, project)));\n      if (isString(outputFiles)) {\n        reportStatus(state, Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1, project, relName(state, outputFiles));\n        step = 6;\n        return invalidatedProjectOfBundle = createBuildOrUpdateInvalidedProject(0, state, project, projectPath, projectIndex, config, buildOrder);\n      }\n      Debug.assert(!!outputFiles.length);\n      const emitterDiagnostics = createDiagnosticCollection();\n      const emittedOutputs = /* @__PURE__ */ new Map();\n      let resultFlags = 2;\n      const existingBuildInfo = state.buildInfoCache.get(projectPath).buildInfo || void 0;\n      outputFiles.forEach(({ name, text, writeByteOrderMark, data }) => {\n        var _a3, _b2;\n        emittedOutputs.set(toPath2(state, name), name);\n        if (data == null ? void 0 : data.buildInfo) {\n          if (((_a3 = data.buildInfo.program) == null ? void 0 : _a3.outSignature) !== ((_b2 = existingBuildInfo == null ? void 0 : existingBuildInfo.program) == null ? void 0 : _b2.outSignature)) {\n            resultFlags &= ~2;\n          }\n          setBuildInfo(state, data.buildInfo, projectPath, config.options, resultFlags);\n        }\n        writeFile(writeFileCallback ? { writeFile: writeFileCallback } : compilerHost, emitterDiagnostics, name, text, writeByteOrderMark);\n      });\n      const emitDiagnostics = finishEmit(emitterDiagnostics, emittedOutputs, outputFiles[0].name, resultFlags);\n      return { emitSkipped: false, diagnostics: emitDiagnostics };\n    }\n    function executeSteps(till, cancellationToken, writeFile2, customTransformers) {\n      while (step <= till && step < 8) {\n        const currentStep = step;\n        switch (step) {\n          case 0:\n            createProgram2();\n            break;\n          case 1:\n            getSyntaxDiagnostics(cancellationToken);\n            break;\n          case 2:\n            getSemanticDiagnostics(cancellationToken);\n            break;\n          case 3:\n            emit(writeFile2, cancellationToken, customTransformers);\n            break;\n          case 5:\n            emitBuildInfo(writeFile2, cancellationToken);\n            break;\n          case 4:\n            emitBundle(writeFile2, customTransformers);\n            break;\n          case 6:\n            Debug.checkDefined(invalidatedProjectOfBundle).done(cancellationToken, writeFile2, customTransformers);\n            step = 8;\n            break;\n          case 7:\n            queueReferencingProjects(state, project, projectPath, projectIndex, config, buildOrder, Debug.checkDefined(buildResult));\n            step++;\n            break;\n          case 8:\n          default:\n            assertType(step);\n        }\n        Debug.assert(step > currentStep);\n      }\n    }\n  }\n  function needsBuild({ options }, status, config) {\n    if (status.type !== 3 || options.force)\n      return true;\n    return config.fileNames.length === 0 || !!getConfigFileParsingDiagnostics(config).length || !isIncrementalCompilation(config.options);\n  }\n  function getNextInvalidatedProjectCreateInfo(state, buildOrder, reportQueue) {\n    if (!state.projectPendingBuild.size)\n      return void 0;\n    if (isCircularBuildOrder(buildOrder))\n      return void 0;\n    const { options, projectPendingBuild } = state;\n    for (let projectIndex = 0; projectIndex < buildOrder.length; projectIndex++) {\n      const project = buildOrder[projectIndex];\n      const projectPath = toResolvedConfigFilePath(state, project);\n      const reloadLevel = state.projectPendingBuild.get(projectPath);\n      if (reloadLevel === void 0)\n        continue;\n      if (reportQueue) {\n        reportQueue = false;\n        reportBuildQueue(state, buildOrder);\n      }\n      const config = parseConfigFile(state, project, projectPath);\n      if (!config) {\n        reportParseConfigFileDiagnostic(state, projectPath);\n        projectPendingBuild.delete(projectPath);\n        continue;\n      }\n      if (reloadLevel === 2) {\n        watchConfigFile(state, project, projectPath, config);\n        watchExtendedConfigFiles(state, projectPath, config);\n        watchWildCardDirectories(state, project, projectPath, config);\n        watchInputFiles(state, project, projectPath, config);\n        watchPackageJsonFiles(state, project, projectPath, config);\n      } else if (reloadLevel === 1) {\n        config.fileNames = getFileNamesFromConfigSpecs(config.options.configFile.configFileSpecs, getDirectoryPath(project), config.options, state.parseConfigFileHost);\n        updateErrorForNoInputFiles(config.fileNames, project, config.options.configFile.configFileSpecs, config.errors, canJsonReportNoInputFiles(config.raw));\n        watchInputFiles(state, project, projectPath, config);\n        watchPackageJsonFiles(state, project, projectPath, config);\n      }\n      const status = getUpToDateStatus(state, config, projectPath);\n      if (!options.force) {\n        if (status.type === 1) {\n          verboseReportProjectStatus(state, project, status);\n          reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config));\n          projectPendingBuild.delete(projectPath);\n          if (options.dry) {\n            reportStatus(state, Diagnostics.Project_0_is_up_to_date, project);\n          }\n          continue;\n        }\n        if (status.type === 2 || status.type === 15) {\n          reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config));\n          return {\n            kind: 2,\n            status,\n            project,\n            projectPath,\n            projectIndex,\n            config\n          };\n        }\n      }\n      if (status.type === 12) {\n        verboseReportProjectStatus(state, project, status);\n        reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config));\n        projectPendingBuild.delete(projectPath);\n        if (options.verbose) {\n          reportStatus(state, status.upstreamProjectBlocked ? Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_was_not_built : Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors, project, status.upstreamProjectName);\n        }\n        continue;\n      }\n      if (status.type === 16) {\n        verboseReportProjectStatus(state, project, status);\n        reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config));\n        projectPendingBuild.delete(projectPath);\n        continue;\n      }\n      return {\n        kind: needsBuild(state, status, config) ? 0 : 1,\n        status,\n        project,\n        projectPath,\n        projectIndex,\n        config\n      };\n    }\n    return void 0;\n  }\n  function createInvalidatedProjectWithInfo(state, info, buildOrder) {\n    verboseReportProjectStatus(state, info.project, info.status);\n    return info.kind !== 2 ? createBuildOrUpdateInvalidedProject(info.kind, state, info.project, info.projectPath, info.projectIndex, info.config, buildOrder) : createUpdateOutputFileStampsProject(state, info.project, info.projectPath, info.config, buildOrder);\n  }\n  function getNextInvalidatedProject(state, buildOrder, reportQueue) {\n    const info = getNextInvalidatedProjectCreateInfo(state, buildOrder, reportQueue);\n    if (!info)\n      return info;\n    return createInvalidatedProjectWithInfo(state, info, buildOrder);\n  }\n  function listEmittedFile({ write }, proj, file) {\n    if (write && proj.options.listEmittedFiles) {\n      write(`TSFILE: ${file}`);\n    }\n  }\n  function getOldProgram({ options, builderPrograms, compilerHost }, proj, parsed) {\n    if (options.force)\n      return void 0;\n    const value = builderPrograms.get(proj);\n    if (value)\n      return value;\n    return readBuilderProgram(parsed.options, compilerHost);\n  }\n  function afterProgramDone(state, program, config) {\n    if (program) {\n      if (state.write)\n        listFiles(program, state.write);\n      if (state.host.afterProgramEmitAndDiagnostics) {\n        state.host.afterProgramEmitAndDiagnostics(program);\n      }\n      program.releaseProgram();\n    } else if (state.host.afterEmitBundle) {\n      state.host.afterEmitBundle(config);\n    }\n    state.projectCompilerOptions = state.baseCompilerOptions;\n  }\n  function buildErrors(state, resolvedPath, program, config, diagnostics, buildResult, errorType) {\n    const canEmitBuildInfo = program && !outFile(program.getCompilerOptions());\n    reportAndStoreErrors(state, resolvedPath, diagnostics);\n    state.projectStatus.set(resolvedPath, { type: 0, reason: `${errorType} errors` });\n    if (canEmitBuildInfo)\n      return { buildResult, step: 5 };\n    afterProgramDone(state, program, config);\n    return { buildResult, step: 7 };\n  }\n  function isFileWatcherWithModifiedTime(value) {\n    return !!value.watcher;\n  }\n  function getModifiedTime2(state, fileName) {\n    const path = toPath2(state, fileName);\n    const existing = state.filesWatched.get(path);\n    if (state.watch && !!existing) {\n      if (!isFileWatcherWithModifiedTime(existing))\n        return existing;\n      if (existing.modifiedTime)\n        return existing.modifiedTime;\n    }\n    const result = getModifiedTime(state.host, fileName);\n    if (state.watch) {\n      if (existing)\n        existing.modifiedTime = result;\n      else\n        state.filesWatched.set(path, result);\n    }\n    return result;\n  }\n  function watchFile(state, file, callback, pollingInterval, options, watchType, project) {\n    const path = toPath2(state, file);\n    const existing = state.filesWatched.get(path);\n    if (existing && isFileWatcherWithModifiedTime(existing)) {\n      existing.callbacks.push(callback);\n    } else {\n      const watcher = state.watchFile(file, (fileName, eventKind, modifiedTime) => {\n        const existing2 = Debug.checkDefined(state.filesWatched.get(path));\n        Debug.assert(isFileWatcherWithModifiedTime(existing2));\n        existing2.modifiedTime = modifiedTime;\n        existing2.callbacks.forEach((cb) => cb(fileName, eventKind, modifiedTime));\n      }, pollingInterval, options, watchType, project);\n      state.filesWatched.set(path, { callbacks: [callback], watcher, modifiedTime: existing });\n    }\n    return {\n      close: () => {\n        const existing2 = Debug.checkDefined(state.filesWatched.get(path));\n        Debug.assert(isFileWatcherWithModifiedTime(existing2));\n        if (existing2.callbacks.length === 1) {\n          state.filesWatched.delete(path);\n          closeFileWatcherOf(existing2);\n        } else {\n          unorderedRemoveItem(existing2.callbacks, callback);\n        }\n      }\n    };\n  }\n  function getOutputTimeStampMap(state, resolvedConfigFilePath) {\n    if (!state.watch)\n      return void 0;\n    let result = state.outputTimeStamps.get(resolvedConfigFilePath);\n    if (!result)\n      state.outputTimeStamps.set(resolvedConfigFilePath, result = /* @__PURE__ */ new Map());\n    return result;\n  }\n  function setBuildInfo(state, buildInfo, resolvedConfigPath, options, resultFlags) {\n    const buildInfoPath = getTsBuildInfoEmitOutputFilePath(options);\n    const existing = getBuildInfoCacheEntry(state, buildInfoPath, resolvedConfigPath);\n    const modifiedTime = getCurrentTime(state.host);\n    if (existing) {\n      existing.buildInfo = buildInfo;\n      existing.modifiedTime = modifiedTime;\n      if (!(resultFlags & 2))\n        existing.latestChangedDtsTime = modifiedTime;\n    } else {\n      state.buildInfoCache.set(resolvedConfigPath, {\n        path: toPath2(state, buildInfoPath),\n        buildInfo,\n        modifiedTime,\n        latestChangedDtsTime: resultFlags & 2 ? void 0 : modifiedTime\n      });\n    }\n  }\n  function getBuildInfoCacheEntry(state, buildInfoPath, resolvedConfigPath) {\n    const path = toPath2(state, buildInfoPath);\n    const existing = state.buildInfoCache.get(resolvedConfigPath);\n    return (existing == null ? void 0 : existing.path) === path ? existing : void 0;\n  }\n  function getBuildInfo3(state, buildInfoPath, resolvedConfigPath, modifiedTime) {\n    const path = toPath2(state, buildInfoPath);\n    const existing = state.buildInfoCache.get(resolvedConfigPath);\n    if (existing !== void 0 && existing.path === path) {\n      return existing.buildInfo || void 0;\n    }\n    const value = state.readFileWithCache(buildInfoPath);\n    const buildInfo = value ? getBuildInfo(buildInfoPath, value) : void 0;\n    state.buildInfoCache.set(resolvedConfigPath, { path, buildInfo: buildInfo || false, modifiedTime: modifiedTime || missingFileModifiedTime });\n    return buildInfo;\n  }\n  function checkConfigFileUpToDateStatus(state, configFile, oldestOutputFileTime, oldestOutputFileName) {\n    const tsconfigTime = getModifiedTime2(state, configFile);\n    if (oldestOutputFileTime < tsconfigTime) {\n      return {\n        type: 6,\n        outOfDateOutputFileName: oldestOutputFileName,\n        newerInputFileName: configFile\n      };\n    }\n  }\n  function getUpToDateStatusWorker(state, project, resolvedPath) {\n    var _a2, _b;\n    if (!project.fileNames.length && !canJsonReportNoInputFiles(project.raw)) {\n      return {\n        type: 16\n      };\n    }\n    let referenceStatuses;\n    const force = !!state.options.force;\n    if (project.projectReferences) {\n      state.projectStatus.set(resolvedPath, { type: 13 });\n      for (const ref of project.projectReferences) {\n        const resolvedRef = resolveProjectReferencePath(ref);\n        const resolvedRefPath = toResolvedConfigFilePath(state, resolvedRef);\n        const resolvedConfig = parseConfigFile(state, resolvedRef, resolvedRefPath);\n        const refStatus = getUpToDateStatus(state, resolvedConfig, resolvedRefPath);\n        if (refStatus.type === 13 || refStatus.type === 16) {\n          continue;\n        }\n        if (refStatus.type === 0 || refStatus.type === 12) {\n          return {\n            type: 12,\n            upstreamProjectName: ref.path,\n            upstreamProjectBlocked: refStatus.type === 12\n          };\n        }\n        if (refStatus.type !== 1) {\n          return {\n            type: 11,\n            upstreamProjectName: ref.path\n          };\n        }\n        if (!force)\n          (referenceStatuses || (referenceStatuses = [])).push({ ref, refStatus, resolvedRefPath, resolvedConfig });\n      }\n    }\n    if (force)\n      return { type: 17 };\n    const { host } = state;\n    const buildInfoPath = getTsBuildInfoEmitOutputFilePath(project.options);\n    let oldestOutputFileName;\n    let oldestOutputFileTime = maximumDate;\n    let buildInfoTime;\n    let buildInfoProgram;\n    let buildInfoVersionMap;\n    if (buildInfoPath) {\n      const buildInfoCacheEntry2 = getBuildInfoCacheEntry(state, buildInfoPath, resolvedPath);\n      buildInfoTime = (buildInfoCacheEntry2 == null ? void 0 : buildInfoCacheEntry2.modifiedTime) || getModifiedTime(host, buildInfoPath);\n      if (buildInfoTime === missingFileModifiedTime) {\n        if (!buildInfoCacheEntry2) {\n          state.buildInfoCache.set(resolvedPath, {\n            path: toPath2(state, buildInfoPath),\n            buildInfo: false,\n            modifiedTime: buildInfoTime\n          });\n        }\n        return {\n          type: 4,\n          missingOutputFileName: buildInfoPath\n        };\n      }\n      const buildInfo = getBuildInfo3(state, buildInfoPath, resolvedPath, buildInfoTime);\n      if (!buildInfo) {\n        return {\n          type: 5,\n          fileName: buildInfoPath\n        };\n      }\n      if ((buildInfo.bundle || buildInfo.program) && buildInfo.version !== version) {\n        return {\n          type: 14,\n          version: buildInfo.version\n        };\n      }\n      if (buildInfo.program) {\n        if (((_a2 = buildInfo.program.changeFileSet) == null ? void 0 : _a2.length) || (!project.options.noEmit ? (_b = buildInfo.program.affectedFilesPendingEmit) == null ? void 0 : _b.length : some(buildInfo.program.semanticDiagnosticsPerFile, isArray))) {\n          return {\n            type: 8,\n            buildInfoFile: buildInfoPath\n          };\n        }\n        if (!project.options.noEmit && getPendingEmitKind(project.options, buildInfo.program.options || {})) {\n          return {\n            type: 9,\n            buildInfoFile: buildInfoPath\n          };\n        }\n        buildInfoProgram = buildInfo.program;\n      }\n      oldestOutputFileTime = buildInfoTime;\n      oldestOutputFileName = buildInfoPath;\n    }\n    let newestInputFileName = void 0;\n    let newestInputFileTime = minimumDate;\n    let pseudoInputUpToDate = false;\n    const seenRoots = /* @__PURE__ */ new Set();\n    for (const inputFile of project.fileNames) {\n      const inputTime = getModifiedTime2(state, inputFile);\n      if (inputTime === missingFileModifiedTime) {\n        return {\n          type: 0,\n          reason: `${inputFile} does not exist`\n        };\n      }\n      if (buildInfoTime && buildInfoTime < inputTime) {\n        let version2;\n        let currentVersion;\n        if (buildInfoProgram) {\n          if (!buildInfoVersionMap)\n            buildInfoVersionMap = getBuildInfoFileVersionMap(buildInfoProgram, buildInfoPath, host);\n          version2 = buildInfoVersionMap.fileInfos.get(toPath2(state, inputFile));\n          const text = version2 ? state.readFileWithCache(inputFile) : void 0;\n          currentVersion = text !== void 0 ? getSourceFileVersionAsHashFromText(host, text) : void 0;\n          if (version2 && version2 === currentVersion)\n            pseudoInputUpToDate = true;\n        }\n        if (!version2 || version2 !== currentVersion) {\n          return {\n            type: 6,\n            outOfDateOutputFileName: buildInfoPath,\n            newerInputFileName: inputFile\n          };\n        }\n      }\n      if (inputTime > newestInputFileTime) {\n        newestInputFileName = inputFile;\n        newestInputFileTime = inputTime;\n      }\n      if (buildInfoProgram)\n        seenRoots.add(toPath2(state, inputFile));\n    }\n    if (buildInfoProgram) {\n      if (!buildInfoVersionMap)\n        buildInfoVersionMap = getBuildInfoFileVersionMap(buildInfoProgram, buildInfoPath, host);\n      for (const existingRoot of buildInfoVersionMap.roots) {\n        if (!seenRoots.has(existingRoot)) {\n          return {\n            type: 10,\n            buildInfoFile: buildInfoPath,\n            inputFile: existingRoot\n          };\n        }\n      }\n    }\n    if (!buildInfoPath) {\n      const outputs = getAllProjectOutputs(project, !host.useCaseSensitiveFileNames());\n      const outputTimeStampMap = getOutputTimeStampMap(state, resolvedPath);\n      for (const output of outputs) {\n        const path = toPath2(state, output);\n        let outputTime = outputTimeStampMap == null ? void 0 : outputTimeStampMap.get(path);\n        if (!outputTime) {\n          outputTime = getModifiedTime(state.host, output);\n          outputTimeStampMap == null ? void 0 : outputTimeStampMap.set(path, outputTime);\n        }\n        if (outputTime === missingFileModifiedTime) {\n          return {\n            type: 4,\n            missingOutputFileName: output\n          };\n        }\n        if (outputTime < newestInputFileTime) {\n          return {\n            type: 6,\n            outOfDateOutputFileName: output,\n            newerInputFileName: newestInputFileName\n          };\n        }\n        if (outputTime < oldestOutputFileTime) {\n          oldestOutputFileTime = outputTime;\n          oldestOutputFileName = output;\n        }\n      }\n    }\n    const buildInfoCacheEntry = state.buildInfoCache.get(resolvedPath);\n    let pseudoUpToDate = false;\n    let usesPrepend = false;\n    let upstreamChangedProject;\n    if (referenceStatuses) {\n      for (const { ref, refStatus, resolvedConfig, resolvedRefPath } of referenceStatuses) {\n        usesPrepend = usesPrepend || !!ref.prepend;\n        if (refStatus.newestInputFileTime && refStatus.newestInputFileTime <= oldestOutputFileTime) {\n          continue;\n        }\n        if (buildInfoCacheEntry && hasSameBuildInfo(state, buildInfoCacheEntry, resolvedRefPath)) {\n          return {\n            type: 7,\n            outOfDateOutputFileName: buildInfoPath,\n            newerProjectName: ref.path\n          };\n        }\n        const newestDeclarationFileContentChangedTime = getLatestChangedDtsTime(state, resolvedConfig.options, resolvedRefPath);\n        if (newestDeclarationFileContentChangedTime && newestDeclarationFileContentChangedTime <= oldestOutputFileTime) {\n          pseudoUpToDate = true;\n          upstreamChangedProject = ref.path;\n          continue;\n        }\n        Debug.assert(oldestOutputFileName !== void 0, \"Should have an oldest output filename here\");\n        return {\n          type: 7,\n          outOfDateOutputFileName: oldestOutputFileName,\n          newerProjectName: ref.path\n        };\n      }\n    }\n    const configStatus = checkConfigFileUpToDateStatus(state, project.options.configFilePath, oldestOutputFileTime, oldestOutputFileName);\n    if (configStatus)\n      return configStatus;\n    const extendedConfigStatus = forEach(project.options.configFile.extendedSourceFiles || emptyArray, (configFile) => checkConfigFileUpToDateStatus(state, configFile, oldestOutputFileTime, oldestOutputFileName));\n    if (extendedConfigStatus)\n      return extendedConfigStatus;\n    const dependentPackageFileStatus = forEach(state.lastCachedPackageJsonLookups.get(resolvedPath) || emptyArray, ([path]) => checkConfigFileUpToDateStatus(state, path, oldestOutputFileTime, oldestOutputFileName));\n    if (dependentPackageFileStatus)\n      return dependentPackageFileStatus;\n    if (usesPrepend && pseudoUpToDate) {\n      return {\n        type: 3,\n        outOfDateOutputFileName: oldestOutputFileName,\n        newerProjectName: upstreamChangedProject\n      };\n    }\n    return {\n      type: pseudoUpToDate ? 2 : pseudoInputUpToDate ? 15 : 1,\n      newestInputFileTime,\n      newestInputFileName,\n      oldestOutputFileName\n    };\n  }\n  function hasSameBuildInfo(state, buildInfoCacheEntry, resolvedRefPath) {\n    const refBuildInfo = state.buildInfoCache.get(resolvedRefPath);\n    return refBuildInfo.path === buildInfoCacheEntry.path;\n  }\n  function getUpToDateStatus(state, project, resolvedPath) {\n    if (project === void 0) {\n      return { type: 0, reason: \"File deleted mid-build\" };\n    }\n    const prior = state.projectStatus.get(resolvedPath);\n    if (prior !== void 0) {\n      return prior;\n    }\n    mark(\"SolutionBuilder::beforeUpToDateCheck\");\n    const actual = getUpToDateStatusWorker(state, project, resolvedPath);\n    mark(\"SolutionBuilder::afterUpToDateCheck\");\n    measure(\"SolutionBuilder::Up-to-date check\", \"SolutionBuilder::beforeUpToDateCheck\", \"SolutionBuilder::afterUpToDateCheck\");\n    state.projectStatus.set(resolvedPath, actual);\n    return actual;\n  }\n  function updateOutputTimestampsWorker(state, proj, projectPath, verboseMessage, skipOutputs) {\n    if (proj.options.noEmit)\n      return;\n    let now;\n    const buildInfoPath = getTsBuildInfoEmitOutputFilePath(proj.options);\n    if (buildInfoPath) {\n      if (!(skipOutputs == null ? void 0 : skipOutputs.has(toPath2(state, buildInfoPath)))) {\n        if (!!state.options.verbose)\n          reportStatus(state, verboseMessage, proj.options.configFilePath);\n        state.host.setModifiedTime(buildInfoPath, now = getCurrentTime(state.host));\n        getBuildInfoCacheEntry(state, buildInfoPath, projectPath).modifiedTime = now;\n      }\n      state.outputTimeStamps.delete(projectPath);\n      return;\n    }\n    const { host } = state;\n    const outputs = getAllProjectOutputs(proj, !host.useCaseSensitiveFileNames());\n    const outputTimeStampMap = getOutputTimeStampMap(state, projectPath);\n    const modifiedOutputs = outputTimeStampMap ? /* @__PURE__ */ new Set() : void 0;\n    if (!skipOutputs || outputs.length !== skipOutputs.size) {\n      let reportVerbose = !!state.options.verbose;\n      for (const file of outputs) {\n        const path = toPath2(state, file);\n        if (skipOutputs == null ? void 0 : skipOutputs.has(path))\n          continue;\n        if (reportVerbose) {\n          reportVerbose = false;\n          reportStatus(state, verboseMessage, proj.options.configFilePath);\n        }\n        host.setModifiedTime(file, now || (now = getCurrentTime(state.host)));\n        if (outputTimeStampMap) {\n          outputTimeStampMap.set(path, now);\n          modifiedOutputs.add(path);\n        }\n      }\n    }\n    outputTimeStampMap == null ? void 0 : outputTimeStampMap.forEach((_value, key) => {\n      if (!(skipOutputs == null ? void 0 : skipOutputs.has(key)) && !modifiedOutputs.has(key))\n        outputTimeStampMap.delete(key);\n    });\n  }\n  function getLatestChangedDtsTime(state, options, resolvedConfigPath) {\n    if (!options.composite)\n      return void 0;\n    const entry = Debug.checkDefined(state.buildInfoCache.get(resolvedConfigPath));\n    if (entry.latestChangedDtsTime !== void 0)\n      return entry.latestChangedDtsTime || void 0;\n    const latestChangedDtsTime = entry.buildInfo && entry.buildInfo.program && entry.buildInfo.program.latestChangedDtsFile ? state.host.getModifiedTime(getNormalizedAbsolutePath(entry.buildInfo.program.latestChangedDtsFile, getDirectoryPath(entry.path))) : void 0;\n    entry.latestChangedDtsTime = latestChangedDtsTime || false;\n    return latestChangedDtsTime;\n  }\n  function updateOutputTimestamps(state, proj, resolvedPath) {\n    if (state.options.dry) {\n      return reportStatus(state, Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0, proj.options.configFilePath);\n    }\n    updateOutputTimestampsWorker(state, proj, resolvedPath, Diagnostics.Updating_output_timestamps_of_project_0);\n    state.projectStatus.set(resolvedPath, {\n      type: 1,\n      oldestOutputFileName: getFirstProjectOutput(proj, !state.host.useCaseSensitiveFileNames())\n    });\n  }\n  function queueReferencingProjects(state, project, projectPath, projectIndex, config, buildOrder, buildResult) {\n    if (buildResult & 124)\n      return;\n    if (!config.options.composite)\n      return;\n    for (let index = projectIndex + 1; index < buildOrder.length; index++) {\n      const nextProject = buildOrder[index];\n      const nextProjectPath = toResolvedConfigFilePath(state, nextProject);\n      if (state.projectPendingBuild.has(nextProjectPath))\n        continue;\n      const nextProjectConfig = parseConfigFile(state, nextProject, nextProjectPath);\n      if (!nextProjectConfig || !nextProjectConfig.projectReferences)\n        continue;\n      for (const ref of nextProjectConfig.projectReferences) {\n        const resolvedRefPath = resolveProjectName(state, ref.path);\n        if (toResolvedConfigFilePath(state, resolvedRefPath) !== projectPath)\n          continue;\n        const status = state.projectStatus.get(nextProjectPath);\n        if (status) {\n          switch (status.type) {\n            case 1:\n              if (buildResult & 2) {\n                if (ref.prepend) {\n                  state.projectStatus.set(nextProjectPath, {\n                    type: 3,\n                    outOfDateOutputFileName: status.oldestOutputFileName,\n                    newerProjectName: project\n                  });\n                } else {\n                  status.type = 2;\n                }\n                break;\n              }\n            case 15:\n            case 2:\n            case 3:\n              if (!(buildResult & 2)) {\n                state.projectStatus.set(nextProjectPath, {\n                  type: 7,\n                  outOfDateOutputFileName: status.type === 3 ? status.outOfDateOutputFileName : status.oldestOutputFileName,\n                  newerProjectName: project\n                });\n              }\n              break;\n            case 12:\n              if (toResolvedConfigFilePath(state, resolveProjectName(state, status.upstreamProjectName)) === projectPath) {\n                clearProjectStatus(state, nextProjectPath);\n              }\n              break;\n          }\n        }\n        addProjToQueue(state, nextProjectPath, 0);\n        break;\n      }\n    }\n  }\n  function build(state, project, cancellationToken, writeFile2, getCustomTransformers, onlyReferences) {\n    mark(\"SolutionBuilder::beforeBuild\");\n    const result = buildWorker(state, project, cancellationToken, writeFile2, getCustomTransformers, onlyReferences);\n    mark(\"SolutionBuilder::afterBuild\");\n    measure(\"SolutionBuilder::Build\", \"SolutionBuilder::beforeBuild\", \"SolutionBuilder::afterBuild\");\n    return result;\n  }\n  function buildWorker(state, project, cancellationToken, writeFile2, getCustomTransformers, onlyReferences) {\n    const buildOrder = getBuildOrderFor(state, project, onlyReferences);\n    if (!buildOrder)\n      return 3;\n    setupInitialBuild(state, cancellationToken);\n    let reportQueue = true;\n    let successfulProjects = 0;\n    while (true) {\n      const invalidatedProject = getNextInvalidatedProject(state, buildOrder, reportQueue);\n      if (!invalidatedProject)\n        break;\n      reportQueue = false;\n      invalidatedProject.done(cancellationToken, writeFile2, getCustomTransformers == null ? void 0 : getCustomTransformers(invalidatedProject.project));\n      if (!state.diagnostics.has(invalidatedProject.projectPath))\n        successfulProjects++;\n    }\n    disableCache(state);\n    reportErrorSummary(state, buildOrder);\n    startWatching(state, buildOrder);\n    return isCircularBuildOrder(buildOrder) ? 4 : !buildOrder.some((p) => state.diagnostics.has(toResolvedConfigFilePath(state, p))) ? 0 : successfulProjects ? 2 : 1;\n  }\n  function clean(state, project, onlyReferences) {\n    mark(\"SolutionBuilder::beforeClean\");\n    const result = cleanWorker(state, project, onlyReferences);\n    mark(\"SolutionBuilder::afterClean\");\n    measure(\"SolutionBuilder::Clean\", \"SolutionBuilder::beforeClean\", \"SolutionBuilder::afterClean\");\n    return result;\n  }\n  function cleanWorker(state, project, onlyReferences) {\n    const buildOrder = getBuildOrderFor(state, project, onlyReferences);\n    if (!buildOrder)\n      return 3;\n    if (isCircularBuildOrder(buildOrder)) {\n      reportErrors(state, buildOrder.circularDiagnostics);\n      return 4;\n    }\n    const { options, host } = state;\n    const filesToDelete = options.dry ? [] : void 0;\n    for (const proj of buildOrder) {\n      const resolvedPath = toResolvedConfigFilePath(state, proj);\n      const parsed = parseConfigFile(state, proj, resolvedPath);\n      if (parsed === void 0) {\n        reportParseConfigFileDiagnostic(state, resolvedPath);\n        continue;\n      }\n      const outputs = getAllProjectOutputs(parsed, !host.useCaseSensitiveFileNames());\n      if (!outputs.length)\n        continue;\n      const inputFileNames = new Set(parsed.fileNames.map((f) => toPath2(state, f)));\n      for (const output of outputs) {\n        if (inputFileNames.has(toPath2(state, output)))\n          continue;\n        if (host.fileExists(output)) {\n          if (filesToDelete) {\n            filesToDelete.push(output);\n          } else {\n            host.deleteFile(output);\n            invalidateProject(state, resolvedPath, 0);\n          }\n        }\n      }\n    }\n    if (filesToDelete) {\n      reportStatus(state, Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0, filesToDelete.map((f) => `\\r\n * ${f}`).join(\"\"));\n    }\n    return 0;\n  }\n  function invalidateProject(state, resolved, reloadLevel) {\n    if (state.host.getParsedCommandLine && reloadLevel === 1) {\n      reloadLevel = 2;\n    }\n    if (reloadLevel === 2) {\n      state.configFileCache.delete(resolved);\n      state.buildOrder = void 0;\n    }\n    state.needsSummary = true;\n    clearProjectStatus(state, resolved);\n    addProjToQueue(state, resolved, reloadLevel);\n    enableCache(state);\n  }\n  function invalidateProjectAndScheduleBuilds(state, resolvedPath, reloadLevel) {\n    state.reportFileChangeDetected = true;\n    invalidateProject(state, resolvedPath, reloadLevel);\n    scheduleBuildInvalidatedProject(state, 250, true);\n  }\n  function scheduleBuildInvalidatedProject(state, time, changeDetected) {\n    const { hostWithWatch } = state;\n    if (!hostWithWatch.setTimeout || !hostWithWatch.clearTimeout) {\n      return;\n    }\n    if (state.timerToBuildInvalidatedProject) {\n      hostWithWatch.clearTimeout(state.timerToBuildInvalidatedProject);\n    }\n    state.timerToBuildInvalidatedProject = hostWithWatch.setTimeout(buildNextInvalidatedProject, time, state, changeDetected);\n  }\n  function buildNextInvalidatedProject(state, changeDetected) {\n    mark(\"SolutionBuilder::beforeBuild\");\n    const buildOrder = buildNextInvalidatedProjectWorker(state, changeDetected);\n    mark(\"SolutionBuilder::afterBuild\");\n    measure(\"SolutionBuilder::Build\", \"SolutionBuilder::beforeBuild\", \"SolutionBuilder::afterBuild\");\n    if (buildOrder)\n      reportErrorSummary(state, buildOrder);\n  }\n  function buildNextInvalidatedProjectWorker(state, changeDetected) {\n    state.timerToBuildInvalidatedProject = void 0;\n    if (state.reportFileChangeDetected) {\n      state.reportFileChangeDetected = false;\n      state.projectErrorsReported.clear();\n      reportWatchStatus(state, Diagnostics.File_change_detected_Starting_incremental_compilation);\n    }\n    let projectsBuilt = 0;\n    const buildOrder = getBuildOrder(state);\n    const invalidatedProject = getNextInvalidatedProject(state, buildOrder, false);\n    if (invalidatedProject) {\n      invalidatedProject.done();\n      projectsBuilt++;\n      while (state.projectPendingBuild.size) {\n        if (state.timerToBuildInvalidatedProject)\n          return;\n        const info = getNextInvalidatedProjectCreateInfo(state, buildOrder, false);\n        if (!info)\n          break;\n        if (info.kind !== 2 && (changeDetected || projectsBuilt === 5)) {\n          scheduleBuildInvalidatedProject(state, 100, false);\n          return;\n        }\n        const project = createInvalidatedProjectWithInfo(state, info, buildOrder);\n        project.done();\n        if (info.kind !== 2)\n          projectsBuilt++;\n      }\n    }\n    disableCache(state);\n    return buildOrder;\n  }\n  function watchConfigFile(state, resolved, resolvedPath, parsed) {\n    if (!state.watch || state.allWatchedConfigFiles.has(resolvedPath))\n      return;\n    state.allWatchedConfigFiles.set(resolvedPath, watchFile(state, resolved, () => invalidateProjectAndScheduleBuilds(state, resolvedPath, 2), 2e3, parsed == null ? void 0 : parsed.watchOptions, WatchType.ConfigFile, resolved));\n  }\n  function watchExtendedConfigFiles(state, resolvedPath, parsed) {\n    updateSharedExtendedConfigFileWatcher(resolvedPath, parsed == null ? void 0 : parsed.options, state.allWatchedExtendedConfigFiles, (extendedConfigFileName, extendedConfigFilePath) => watchFile(state, extendedConfigFileName, () => {\n      var _a2;\n      return (_a2 = state.allWatchedExtendedConfigFiles.get(extendedConfigFilePath)) == null ? void 0 : _a2.projects.forEach((projectConfigFilePath) => invalidateProjectAndScheduleBuilds(state, projectConfigFilePath, 2));\n    }, 2e3, parsed == null ? void 0 : parsed.watchOptions, WatchType.ExtendedConfigFile), (fileName) => toPath2(state, fileName));\n  }\n  function watchWildCardDirectories(state, resolved, resolvedPath, parsed) {\n    if (!state.watch)\n      return;\n    updateWatchingWildcardDirectories(getOrCreateValueMapFromConfigFileMap(state.allWatchedWildcardDirectories, resolvedPath), new Map(Object.entries(parsed.wildcardDirectories)), (dir, flags) => state.watchDirectory(dir, (fileOrDirectory) => {\n      var _a2;\n      if (isIgnoredFileFromWildCardWatching({\n        watchedDirPath: toPath2(state, dir),\n        fileOrDirectory,\n        fileOrDirectoryPath: toPath2(state, fileOrDirectory),\n        configFileName: resolved,\n        currentDirectory: state.compilerHost.getCurrentDirectory(),\n        options: parsed.options,\n        program: state.builderPrograms.get(resolvedPath) || ((_a2 = getCachedParsedConfigFile(state, resolvedPath)) == null ? void 0 : _a2.fileNames),\n        useCaseSensitiveFileNames: state.parseConfigFileHost.useCaseSensitiveFileNames,\n        writeLog: (s) => state.writeLog(s),\n        toPath: (fileName) => toPath2(state, fileName)\n      }))\n        return;\n      invalidateProjectAndScheduleBuilds(state, resolvedPath, 1);\n    }, flags, parsed == null ? void 0 : parsed.watchOptions, WatchType.WildcardDirectory, resolved));\n  }\n  function watchInputFiles(state, resolved, resolvedPath, parsed) {\n    if (!state.watch)\n      return;\n    mutateMap(getOrCreateValueMapFromConfigFileMap(state.allWatchedInputFiles, resolvedPath), arrayToMap(parsed.fileNames, (fileName) => toPath2(state, fileName)), {\n      createNewValue: (_path, input) => watchFile(state, input, () => invalidateProjectAndScheduleBuilds(state, resolvedPath, 0), 250, parsed == null ? void 0 : parsed.watchOptions, WatchType.SourceFile, resolved),\n      onDeleteValue: closeFileWatcher\n    });\n  }\n  function watchPackageJsonFiles(state, resolved, resolvedPath, parsed) {\n    if (!state.watch || !state.lastCachedPackageJsonLookups)\n      return;\n    mutateMap(getOrCreateValueMapFromConfigFileMap(state.allWatchedPackageJsonFiles, resolvedPath), new Map(state.lastCachedPackageJsonLookups.get(resolvedPath)), {\n      createNewValue: (path, _input) => watchFile(state, path, () => invalidateProjectAndScheduleBuilds(state, resolvedPath, 0), 2e3, parsed == null ? void 0 : parsed.watchOptions, WatchType.PackageJson, resolved),\n      onDeleteValue: closeFileWatcher\n    });\n  }\n  function startWatching(state, buildOrder) {\n    if (!state.watchAllProjectsPending)\n      return;\n    mark(\"SolutionBuilder::beforeWatcherCreation\");\n    state.watchAllProjectsPending = false;\n    for (const resolved of getBuildOrderFromAnyBuildOrder(buildOrder)) {\n      const resolvedPath = toResolvedConfigFilePath(state, resolved);\n      const cfg = parseConfigFile(state, resolved, resolvedPath);\n      watchConfigFile(state, resolved, resolvedPath, cfg);\n      watchExtendedConfigFiles(state, resolvedPath, cfg);\n      if (cfg) {\n        watchWildCardDirectories(state, resolved, resolvedPath, cfg);\n        watchInputFiles(state, resolved, resolvedPath, cfg);\n        watchPackageJsonFiles(state, resolved, resolvedPath, cfg);\n      }\n    }\n    mark(\"SolutionBuilder::afterWatcherCreation\");\n    measure(\"SolutionBuilder::Watcher creation\", \"SolutionBuilder::beforeWatcherCreation\", \"SolutionBuilder::afterWatcherCreation\");\n  }\n  function stopWatching(state) {\n    clearMap(state.allWatchedConfigFiles, closeFileWatcher);\n    clearMap(state.allWatchedExtendedConfigFiles, closeFileWatcherOf);\n    clearMap(state.allWatchedWildcardDirectories, (watchedWildcardDirectories) => clearMap(watchedWildcardDirectories, closeFileWatcherOf));\n    clearMap(state.allWatchedInputFiles, (watchedWildcardDirectories) => clearMap(watchedWildcardDirectories, closeFileWatcher));\n    clearMap(state.allWatchedPackageJsonFiles, (watchedPacageJsonFiles) => clearMap(watchedPacageJsonFiles, closeFileWatcher));\n  }\n  function createSolutionBuilderWorker(watch, hostOrHostWithWatch, rootNames, options, baseWatchOptions) {\n    const state = createSolutionBuilderState(watch, hostOrHostWithWatch, rootNames, options, baseWatchOptions);\n    return {\n      build: (project, cancellationToken, writeFile2, getCustomTransformers) => build(state, project, cancellationToken, writeFile2, getCustomTransformers),\n      clean: (project) => clean(state, project),\n      buildReferences: (project, cancellationToken, writeFile2, getCustomTransformers) => build(state, project, cancellationToken, writeFile2, getCustomTransformers, true),\n      cleanReferences: (project) => clean(state, project, true),\n      getNextInvalidatedProject: (cancellationToken) => {\n        setupInitialBuild(state, cancellationToken);\n        return getNextInvalidatedProject(state, getBuildOrder(state), false);\n      },\n      getBuildOrder: () => getBuildOrder(state),\n      getUpToDateStatusOfProject: (project) => {\n        const configFileName = resolveProjectName(state, project);\n        const configFilePath = toResolvedConfigFilePath(state, configFileName);\n        return getUpToDateStatus(state, parseConfigFile(state, configFileName, configFilePath), configFilePath);\n      },\n      invalidateProject: (configFilePath, reloadLevel) => invalidateProject(state, configFilePath, reloadLevel || 0),\n      close: () => stopWatching(state)\n    };\n  }\n  function relName(state, path) {\n    return convertToRelativePath(path, state.compilerHost.getCurrentDirectory(), state.compilerHost.getCanonicalFileName);\n  }\n  function reportStatus(state, message, ...args) {\n    state.host.reportSolutionBuilderStatus(createCompilerDiagnostic(message, ...args));\n  }\n  function reportWatchStatus(state, message, ...args) {\n    var _a2, _b;\n    (_b = (_a2 = state.hostWithWatch).onWatchStatusChange) == null ? void 0 : _b.call(_a2, createCompilerDiagnostic(message, ...args), state.host.getNewLine(), state.baseCompilerOptions);\n  }\n  function reportErrors({ host }, errors) {\n    errors.forEach((err) => host.reportDiagnostic(err));\n  }\n  function reportAndStoreErrors(state, proj, errors) {\n    reportErrors(state, errors);\n    state.projectErrorsReported.set(proj, true);\n    if (errors.length) {\n      state.diagnostics.set(proj, errors);\n    }\n  }\n  function reportParseConfigFileDiagnostic(state, proj) {\n    reportAndStoreErrors(state, proj, [state.configFileCache.get(proj)]);\n  }\n  function reportErrorSummary(state, buildOrder) {\n    if (!state.needsSummary)\n      return;\n    state.needsSummary = false;\n    const canReportSummary = state.watch || !!state.host.reportErrorSummary;\n    const { diagnostics } = state;\n    let totalErrors = 0;\n    let filesInError = [];\n    if (isCircularBuildOrder(buildOrder)) {\n      reportBuildQueue(state, buildOrder.buildOrder);\n      reportErrors(state, buildOrder.circularDiagnostics);\n      if (canReportSummary)\n        totalErrors += getErrorCountForSummary(buildOrder.circularDiagnostics);\n      if (canReportSummary)\n        filesInError = [...filesInError, ...getFilesInErrorForSummary(buildOrder.circularDiagnostics)];\n    } else {\n      buildOrder.forEach((project) => {\n        const projectPath = toResolvedConfigFilePath(state, project);\n        if (!state.projectErrorsReported.has(projectPath)) {\n          reportErrors(state, diagnostics.get(projectPath) || emptyArray);\n        }\n      });\n      if (canReportSummary)\n        diagnostics.forEach((singleProjectErrors) => totalErrors += getErrorCountForSummary(singleProjectErrors));\n      if (canReportSummary)\n        diagnostics.forEach((singleProjectErrors) => [...filesInError, ...getFilesInErrorForSummary(singleProjectErrors)]);\n    }\n    if (state.watch) {\n      reportWatchStatus(state, getWatchErrorSummaryDiagnosticMessage(totalErrors), totalErrors);\n    } else if (state.host.reportErrorSummary) {\n      state.host.reportErrorSummary(totalErrors, filesInError);\n    }\n  }\n  function reportBuildQueue(state, buildQueue) {\n    if (state.options.verbose) {\n      reportStatus(state, Diagnostics.Projects_in_this_build_Colon_0, buildQueue.map((s) => \"\\r\\n    * \" + relName(state, s)).join(\"\"));\n    }\n  }\n  function reportUpToDateStatus(state, configFileName, status) {\n    switch (status.type) {\n      case 6:\n        return reportStatus(state, Diagnostics.Project_0_is_out_of_date_because_output_1_is_older_than_input_2, relName(state, configFileName), relName(state, status.outOfDateOutputFileName), relName(state, status.newerInputFileName));\n      case 7:\n        return reportStatus(state, Diagnostics.Project_0_is_out_of_date_because_output_1_is_older_than_input_2, relName(state, configFileName), relName(state, status.outOfDateOutputFileName), relName(state, status.newerProjectName));\n      case 4:\n        return reportStatus(state, Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist, relName(state, configFileName), relName(state, status.missingOutputFileName));\n      case 5:\n        return reportStatus(state, Diagnostics.Project_0_is_out_of_date_because_there_was_error_reading_file_1, relName(state, configFileName), relName(state, status.fileName));\n      case 8:\n        return reportStatus(state, Diagnostics.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted, relName(state, configFileName), relName(state, status.buildInfoFile));\n      case 9:\n        return reportStatus(state, Diagnostics.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions, relName(state, configFileName), relName(state, status.buildInfoFile));\n      case 10:\n        return reportStatus(state, Diagnostics.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more, relName(state, configFileName), relName(state, status.buildInfoFile), relName(state, status.inputFile));\n      case 1:\n        if (status.newestInputFileTime !== void 0) {\n          return reportStatus(state, Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2, relName(state, configFileName), relName(state, status.newestInputFileName || \"\"), relName(state, status.oldestOutputFileName || \"\"));\n        }\n        break;\n      case 3:\n        return reportStatus(state, Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed, relName(state, configFileName), relName(state, status.newerProjectName));\n      case 2:\n        return reportStatus(state, Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies, relName(state, configFileName));\n      case 15:\n        return reportStatus(state, Diagnostics.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files, relName(state, configFileName));\n      case 11:\n        return reportStatus(state, Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date, relName(state, configFileName), relName(state, status.upstreamProjectName));\n      case 12:\n        return reportStatus(state, status.upstreamProjectBlocked ? Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_was_not_built : Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors, relName(state, configFileName), relName(state, status.upstreamProjectName));\n      case 0:\n        return reportStatus(state, Diagnostics.Failed_to_parse_file_0_Colon_1, relName(state, configFileName), status.reason);\n      case 14:\n        return reportStatus(state, Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2, relName(state, configFileName), status.version, version);\n      case 17:\n        return reportStatus(state, Diagnostics.Project_0_is_being_forcibly_rebuilt, relName(state, configFileName));\n      case 16:\n      case 13:\n        break;\n      default:\n        assertType(status);\n    }\n  }\n  function verboseReportProjectStatus(state, configFileName, status) {\n    if (state.options.verbose) {\n      reportUpToDateStatus(state, configFileName, status);\n    }\n  }\n  var minimumDate, maximumDate, InvalidatedProjectKind;\n  var init_tsbuildPublic = __esm({\n    \"src/compiler/tsbuildPublic.ts\"() {\n      \"use strict\";\n      init_ts2();\n      init_ts2();\n      init_ts_performance();\n      minimumDate = /* @__PURE__ */ new Date(-864e13);\n      maximumDate = /* @__PURE__ */ new Date(864e13);\n      InvalidatedProjectKind = /* @__PURE__ */ ((InvalidatedProjectKind2) => {\n        InvalidatedProjectKind2[InvalidatedProjectKind2[\"Build\"] = 0] = \"Build\";\n        InvalidatedProjectKind2[InvalidatedProjectKind2[\"UpdateBundle\"] = 1] = \"UpdateBundle\";\n        InvalidatedProjectKind2[InvalidatedProjectKind2[\"UpdateOutputFileStamps\"] = 2] = \"UpdateOutputFileStamps\";\n        return InvalidatedProjectKind2;\n      })(InvalidatedProjectKind || {});\n    }\n  });\n  var init_ts2 = __esm({\n    \"src/compiler/_namespaces/ts.ts\"() {\n      \"use strict\";\n      init_corePublic();\n      init_core();\n      init_debug();\n      init_semver();\n      init_performanceCore();\n      init_perfLogger();\n      init_tracing();\n      init_types();\n      init_sys();\n      init_path();\n      init_diagnosticInformationMap_generated();\n      init_scanner();\n      init_utilitiesPublic();\n      init_utilities();\n      init_baseNodeFactory();\n      init_parenthesizerRules();\n      init_nodeConverters();\n      init_nodeFactory();\n      init_emitNode();\n      init_emitHelpers();\n      init_nodeTests();\n      init_utilities2();\n      init_utilitiesPublic2();\n      init_parser();\n      init_commandLineParser();\n      init_moduleNameResolver();\n      init_binder();\n      init_symbolWalker();\n      init_checker();\n      init_visitorPublic();\n      init_sourcemap();\n      init_utilities3();\n      init_destructuring();\n      init_taggedTemplate();\n      init_ts();\n      init_classFields();\n      init_typeSerializer();\n      init_legacyDecorators();\n      init_esDecorators();\n      init_es2017();\n      init_es2018();\n      init_es2019();\n      init_es2020();\n      init_es2021();\n      init_esnext();\n      init_jsx();\n      init_es2016();\n      init_es2015();\n      init_es5();\n      init_generators();\n      init_module();\n      init_system();\n      init_esnextAnd2015();\n      init_node();\n      init_diagnostics();\n      init_declarations();\n      init_transformer();\n      init_emitter();\n      init_watchUtilities();\n      init_program();\n      init_builderStatePublic();\n      init_builderState();\n      init_builder();\n      init_builderPublic();\n      init_resolutionCache();\n      init_watch();\n      init_watchPublic();\n      init_tsbuild();\n      init_tsbuildPublic();\n      init_ts_moduleSpecifiers();\n      init_ts_performance();\n    }\n  });\n  function isTypingUpToDate(cachedTyping, availableTypingVersions) {\n    const availableVersion = new Version(getProperty(availableTypingVersions, `ts${versionMajorMinor}`) || getProperty(availableTypingVersions, \"latest\"));\n    return availableVersion.compareTo(cachedTyping.version) <= 0;\n  }\n  function nonRelativeModuleNameForTypingCache(moduleName) {\n    return nodeCoreModules.has(moduleName) ? \"node\" : moduleName;\n  }\n  function loadSafeList(host, safeListPath) {\n    const result = readConfigFile(safeListPath, (path) => host.readFile(path));\n    return new Map(Object.entries(result.config));\n  }\n  function loadTypesMap(host, typesMapPath) {\n    var _a2;\n    const result = readConfigFile(typesMapPath, (path) => host.readFile(path));\n    if ((_a2 = result.config) == null ? void 0 : _a2.simpleMap) {\n      return new Map(Object.entries(result.config.simpleMap));\n    }\n    return void 0;\n  }\n  function discoverTypings(host, log, fileNames, projectRootPath, safeList, packageNameToTypingLocation, typeAcquisition, unresolvedImports, typesRegistry, compilerOptions) {\n    if (!typeAcquisition || !typeAcquisition.enable) {\n      return { cachedTypingPaths: [], newTypingNames: [], filesToWatch: [] };\n    }\n    const inferredTypings = /* @__PURE__ */ new Map();\n    fileNames = mapDefined(fileNames, (fileName) => {\n      const path = normalizePath(fileName);\n      if (hasJSFileExtension(path)) {\n        return path;\n      }\n    });\n    const filesToWatch = [];\n    if (typeAcquisition.include)\n      addInferredTypings(typeAcquisition.include, \"Explicitly included types\");\n    const exclude = typeAcquisition.exclude || [];\n    if (!compilerOptions.types) {\n      const possibleSearchDirs = new Set(fileNames.map(getDirectoryPath));\n      possibleSearchDirs.add(projectRootPath);\n      possibleSearchDirs.forEach((searchDir) => {\n        getTypingNames(searchDir, \"bower.json\", \"bower_components\", filesToWatch);\n        getTypingNames(searchDir, \"package.json\", \"node_modules\", filesToWatch);\n      });\n    }\n    if (!typeAcquisition.disableFilenameBasedTypeAcquisition) {\n      getTypingNamesFromSourceFileNames(fileNames);\n    }\n    if (unresolvedImports) {\n      const module2 = deduplicate(unresolvedImports.map(nonRelativeModuleNameForTypingCache), equateStringsCaseSensitive, compareStringsCaseSensitive);\n      addInferredTypings(module2, \"Inferred typings from unresolved imports\");\n    }\n    packageNameToTypingLocation.forEach((typing, name) => {\n      const registryEntry = typesRegistry.get(name);\n      if (inferredTypings.has(name) && inferredTypings.get(name) === void 0 && registryEntry !== void 0 && isTypingUpToDate(typing, registryEntry)) {\n        inferredTypings.set(name, typing.typingLocation);\n      }\n    });\n    for (const excludeTypingName of exclude) {\n      const didDelete = inferredTypings.delete(excludeTypingName);\n      if (didDelete && log)\n        log(`Typing for ${excludeTypingName} is in exclude list, will be ignored.`);\n    }\n    const newTypingNames = [];\n    const cachedTypingPaths = [];\n    inferredTypings.forEach((inferred, typing) => {\n      if (inferred !== void 0) {\n        cachedTypingPaths.push(inferred);\n      } else {\n        newTypingNames.push(typing);\n      }\n    });\n    const result = { cachedTypingPaths, newTypingNames, filesToWatch };\n    if (log)\n      log(`Result: ${JSON.stringify(result)}`);\n    return result;\n    function addInferredTyping(typingName) {\n      if (!inferredTypings.has(typingName)) {\n        inferredTypings.set(typingName, void 0);\n      }\n    }\n    function addInferredTypings(typingNames, message) {\n      if (log)\n        log(`${message}: ${JSON.stringify(typingNames)}`);\n      forEach(typingNames, addInferredTyping);\n    }\n    function getTypingNames(projectRootPath2, manifestName, modulesDirName, filesToWatch2) {\n      const manifestPath = combinePaths(projectRootPath2, manifestName);\n      let manifest;\n      let manifestTypingNames;\n      if (host.fileExists(manifestPath)) {\n        filesToWatch2.push(manifestPath);\n        manifest = readConfigFile(manifestPath, (path) => host.readFile(path)).config;\n        manifestTypingNames = flatMap([manifest.dependencies, manifest.devDependencies, manifest.optionalDependencies, manifest.peerDependencies], getOwnKeys);\n        addInferredTypings(manifestTypingNames, `Typing names in '${manifestPath}' dependencies`);\n      }\n      const packagesFolderPath = combinePaths(projectRootPath2, modulesDirName);\n      filesToWatch2.push(packagesFolderPath);\n      if (!host.directoryExists(packagesFolderPath)) {\n        return;\n      }\n      const packageNames = [];\n      const dependencyManifestNames = manifestTypingNames ? manifestTypingNames.map((typingName) => combinePaths(packagesFolderPath, typingName, manifestName)) : host.readDirectory(packagesFolderPath, [\".json\"], void 0, void 0, 3).filter((manifestPath2) => {\n        if (getBaseFileName(manifestPath2) !== manifestName) {\n          return false;\n        }\n        const pathComponents2 = getPathComponents(normalizePath(manifestPath2));\n        const isScoped = pathComponents2[pathComponents2.length - 3][0] === \"@\";\n        return isScoped && toFileNameLowerCase(pathComponents2[pathComponents2.length - 4]) === modulesDirName || !isScoped && toFileNameLowerCase(pathComponents2[pathComponents2.length - 3]) === modulesDirName;\n      });\n      if (log)\n        log(`Searching for typing names in ${packagesFolderPath}; all files: ${JSON.stringify(dependencyManifestNames)}`);\n      for (const manifestPath2 of dependencyManifestNames) {\n        const normalizedFileName = normalizePath(manifestPath2);\n        const result2 = readConfigFile(normalizedFileName, (path) => host.readFile(path));\n        const manifest2 = result2.config;\n        if (!manifest2.name) {\n          continue;\n        }\n        const ownTypes = manifest2.types || manifest2.typings;\n        if (ownTypes) {\n          const absolutePath = getNormalizedAbsolutePath(ownTypes, getDirectoryPath(normalizedFileName));\n          if (host.fileExists(absolutePath)) {\n            if (log)\n              log(`    Package '${manifest2.name}' provides its own types.`);\n            inferredTypings.set(manifest2.name, absolutePath);\n          } else {\n            if (log)\n              log(`    Package '${manifest2.name}' provides its own types but they are missing.`);\n          }\n        } else {\n          packageNames.push(manifest2.name);\n        }\n      }\n      addInferredTypings(packageNames, \"    Found package names\");\n    }\n    function getTypingNamesFromSourceFileNames(fileNames2) {\n      const fromFileNames = mapDefined(fileNames2, (j) => {\n        if (!hasJSFileExtension(j))\n          return void 0;\n        const inferredTypingName = removeFileExtension(toFileNameLowerCase(getBaseFileName(j)));\n        const cleanedTypingName = removeMinAndVersionNumbers(inferredTypingName);\n        return safeList.get(cleanedTypingName);\n      });\n      if (fromFileNames.length) {\n        addInferredTypings(fromFileNames, \"Inferred typings from file names\");\n      }\n      const hasJsxFile = some(fileNames2, (f) => fileExtensionIs(f, \".jsx\"));\n      if (hasJsxFile) {\n        if (log)\n          log(`Inferred 'react' typings due to presence of '.jsx' extension`);\n        addInferredTyping(\"react\");\n      }\n    }\n  }\n  function validatePackageName(packageName) {\n    return validatePackageNameWorker(packageName, true);\n  }\n  function validatePackageNameWorker(packageName, supportScopedPackage) {\n    if (!packageName) {\n      return 1;\n    }\n    if (packageName.length > maxPackageNameLength) {\n      return 2;\n    }\n    if (packageName.charCodeAt(0) === 46) {\n      return 3;\n    }\n    if (packageName.charCodeAt(0) === 95) {\n      return 4;\n    }\n    if (supportScopedPackage) {\n      const matches = /^@([^/]+)\\/([^/]+)$/.exec(packageName);\n      if (matches) {\n        const scopeResult = validatePackageNameWorker(matches[1], false);\n        if (scopeResult !== 0) {\n          return { name: matches[1], isScopeName: true, result: scopeResult };\n        }\n        const packageResult = validatePackageNameWorker(matches[2], false);\n        if (packageResult !== 0) {\n          return { name: matches[2], isScopeName: false, result: packageResult };\n        }\n        return 0;\n      }\n    }\n    if (encodeURIComponent(packageName) !== packageName) {\n      return 5;\n    }\n    return 0;\n  }\n  function renderPackageNameValidationFailure(result, typing) {\n    return typeof result === \"object\" ? renderPackageNameValidationFailureWorker(typing, result.result, result.name, result.isScopeName) : renderPackageNameValidationFailureWorker(typing, result, typing, false);\n  }\n  function renderPackageNameValidationFailureWorker(typing, result, name, isScopeName) {\n    const kind = isScopeName ? \"Scope\" : \"Package\";\n    switch (result) {\n      case 1:\n        return `'${typing}':: ${kind} name '${name}' cannot be empty`;\n      case 2:\n        return `'${typing}':: ${kind} name '${name}' should be less than ${maxPackageNameLength} characters`;\n      case 3:\n        return `'${typing}':: ${kind} name '${name}' cannot start with '.'`;\n      case 4:\n        return `'${typing}':: ${kind} name '${name}' cannot start with '_'`;\n      case 5:\n        return `'${typing}':: ${kind} name '${name}' contains non URI safe characters`;\n      case 0:\n        return Debug.fail();\n      default:\n        throw Debug.assertNever(result);\n    }\n  }\n  var unprefixedNodeCoreModuleList, prefixedNodeCoreModuleList, nodeCoreModuleList, nodeCoreModules, NameValidationResult, maxPackageNameLength;\n  var init_jsTyping = __esm({\n    \"src/jsTyping/jsTyping.ts\"() {\n      \"use strict\";\n      init_ts3();\n      unprefixedNodeCoreModuleList = [\n        \"assert\",\n        \"assert/strict\",\n        \"async_hooks\",\n        \"buffer\",\n        \"child_process\",\n        \"cluster\",\n        \"console\",\n        \"constants\",\n        \"crypto\",\n        \"dgram\",\n        \"diagnostics_channel\",\n        \"dns\",\n        \"dns/promises\",\n        \"domain\",\n        \"events\",\n        \"fs\",\n        \"fs/promises\",\n        \"http\",\n        \"https\",\n        \"http2\",\n        \"inspector\",\n        \"module\",\n        \"net\",\n        \"os\",\n        \"path\",\n        \"perf_hooks\",\n        \"process\",\n        \"punycode\",\n        \"querystring\",\n        \"readline\",\n        \"repl\",\n        \"stream\",\n        \"stream/promises\",\n        \"string_decoder\",\n        \"timers\",\n        \"timers/promises\",\n        \"tls\",\n        \"trace_events\",\n        \"tty\",\n        \"url\",\n        \"util\",\n        \"util/types\",\n        \"v8\",\n        \"vm\",\n        \"wasi\",\n        \"worker_threads\",\n        \"zlib\"\n      ];\n      prefixedNodeCoreModuleList = unprefixedNodeCoreModuleList.map((name) => `node:${name}`);\n      nodeCoreModuleList = [...unprefixedNodeCoreModuleList, ...prefixedNodeCoreModuleList];\n      nodeCoreModules = new Set(nodeCoreModuleList);\n      NameValidationResult = /* @__PURE__ */ ((NameValidationResult2) => {\n        NameValidationResult2[NameValidationResult2[\"Ok\"] = 0] = \"Ok\";\n        NameValidationResult2[NameValidationResult2[\"EmptyName\"] = 1] = \"EmptyName\";\n        NameValidationResult2[NameValidationResult2[\"NameTooLong\"] = 2] = \"NameTooLong\";\n        NameValidationResult2[NameValidationResult2[\"NameStartsWithDot\"] = 3] = \"NameStartsWithDot\";\n        NameValidationResult2[NameValidationResult2[\"NameStartsWithUnderscore\"] = 4] = \"NameStartsWithUnderscore\";\n        NameValidationResult2[NameValidationResult2[\"NameContainsNonURISafeCharacters\"] = 5] = \"NameContainsNonURISafeCharacters\";\n        return NameValidationResult2;\n      })(NameValidationResult || {});\n      maxPackageNameLength = 214;\n    }\n  });\n  var ts_JsTyping_exports = {};\n  __export2(ts_JsTyping_exports, {\n    NameValidationResult: () => NameValidationResult,\n    discoverTypings: () => discoverTypings,\n    isTypingUpToDate: () => isTypingUpToDate,\n    loadSafeList: () => loadSafeList,\n    loadTypesMap: () => loadTypesMap,\n    nodeCoreModuleList: () => nodeCoreModuleList,\n    nodeCoreModules: () => nodeCoreModules,\n    nonRelativeModuleNameForTypingCache: () => nonRelativeModuleNameForTypingCache,\n    prefixedNodeCoreModuleList: () => prefixedNodeCoreModuleList,\n    renderPackageNameValidationFailure: () => renderPackageNameValidationFailure,\n    validatePackageName: () => validatePackageName\n  });\n  var init_ts_JsTyping = __esm({\n    \"src/jsTyping/_namespaces/ts.JsTyping.ts\"() {\n      \"use strict\";\n      init_jsTyping();\n    }\n  });\n  function hasArgument(argumentName) {\n    return sys.args.indexOf(argumentName) >= 0;\n  }\n  function findArgument(argumentName) {\n    const index = sys.args.indexOf(argumentName);\n    return index >= 0 && index < sys.args.length - 1 ? sys.args[index + 1] : void 0;\n  }\n  function nowString() {\n    const d = /* @__PURE__ */ new Date();\n    return `${padLeft(d.getHours().toString(), 2, \"0\")}:${padLeft(d.getMinutes().toString(), 2, \"0\")}:${padLeft(d.getSeconds().toString(), 2, \"0\")}.${padLeft(d.getMilliseconds().toString(), 3, \"0\")}`;\n  }\n  var ActionSet, ActionInvalidate, ActionPackageInstalled, EventTypesRegistry, EventBeginInstallTypes, EventEndInstallTypes, EventInitializationFailed, Arguments;\n  var init_shared = __esm({\n    \"src/jsTyping/shared.ts\"() {\n      \"use strict\";\n      init_ts3();\n      ActionSet = \"action::set\";\n      ActionInvalidate = \"action::invalidate\";\n      ActionPackageInstalled = \"action::packageInstalled\";\n      EventTypesRegistry = \"event::typesRegistry\";\n      EventBeginInstallTypes = \"event::beginInstallTypes\";\n      EventEndInstallTypes = \"event::endInstallTypes\";\n      EventInitializationFailed = \"event::initializationFailed\";\n      ((Arguments2) => {\n        Arguments2.GlobalCacheLocation = \"--globalTypingsCacheLocation\";\n        Arguments2.LogFile = \"--logFile\";\n        Arguments2.EnableTelemetry = \"--enableTelemetry\";\n        Arguments2.TypingSafeListLocation = \"--typingSafeListLocation\";\n        Arguments2.TypesMapLocation = \"--typesMapLocation\";\n        Arguments2.NpmLocation = \"--npmLocation\";\n        Arguments2.ValidateDefaultNpmLocation = \"--validateDefaultNpmLocation\";\n      })(Arguments || (Arguments = {}));\n    }\n  });\n  var init_types2 = __esm({\n    \"src/jsTyping/types.ts\"() {\n      \"use strict\";\n    }\n  });\n  var ts_server_exports = {};\n  __export2(ts_server_exports, {\n    ActionInvalidate: () => ActionInvalidate,\n    ActionPackageInstalled: () => ActionPackageInstalled,\n    ActionSet: () => ActionSet,\n    Arguments: () => Arguments,\n    EventBeginInstallTypes: () => EventBeginInstallTypes,\n    EventEndInstallTypes: () => EventEndInstallTypes,\n    EventInitializationFailed: () => EventInitializationFailed,\n    EventTypesRegistry: () => EventTypesRegistry,\n    findArgument: () => findArgument,\n    hasArgument: () => hasArgument,\n    nowString: () => nowString\n  });\n  var init_ts_server = __esm({\n    \"src/jsTyping/_namespaces/ts.server.ts\"() {\n      \"use strict\";\n      init_shared();\n      init_types2();\n    }\n  });\n  var init_ts3 = __esm({\n    \"src/jsTyping/_namespaces/ts.ts\"() {\n      \"use strict\";\n      init_ts2();\n      init_ts_JsTyping();\n      init_ts_server();\n    }\n  });\n  function getDefaultFormatCodeSettings(newLineCharacter) {\n    return {\n      indentSize: 4,\n      tabSize: 4,\n      newLineCharacter: newLineCharacter || \"\\n\",\n      convertTabsToSpaces: true,\n      indentStyle: 2,\n      insertSpaceAfterConstructor: false,\n      insertSpaceAfterCommaDelimiter: true,\n      insertSpaceAfterSemicolonInForStatements: true,\n      insertSpaceBeforeAndAfterBinaryOperators: true,\n      insertSpaceAfterKeywordsInControlFlowStatements: true,\n      insertSpaceAfterFunctionKeywordForAnonymousFunctions: false,\n      insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis: false,\n      insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets: false,\n      insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces: true,\n      insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces: false,\n      insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces: false,\n      insertSpaceBeforeFunctionParenthesis: false,\n      placeOpenBraceOnNewLineForFunctions: false,\n      placeOpenBraceOnNewLineForControlBlocks: false,\n      semicolons: \"ignore\",\n      trimTrailingWhitespace: true\n    };\n  }\n  var ScriptSnapshot, PackageJsonDependencyGroup, PackageJsonAutoImportPreference, LanguageServiceMode, emptyOptions, SemanticClassificationFormat, OrganizeImportsMode, CompletionTriggerKind, InlayHintKind, HighlightSpanKind, IndentStyle2, SemicolonPreference, testFormatSettings, SymbolDisplayPartKind, CompletionInfoFlags, OutliningSpanKind, OutputFileType, EndOfLineState2, TokenClass2, ScriptElementKind, ScriptElementKindModifier, ClassificationTypeNames, ClassificationType;\n  var init_types3 = __esm({\n    \"src/services/types.ts\"() {\n      \"use strict\";\n      ((ScriptSnapshot2) => {\n        class StringScriptSnapshot {\n          constructor(text) {\n            this.text = text;\n          }\n          getText(start, end) {\n            return start === 0 && end === this.text.length ? this.text : this.text.substring(start, end);\n          }\n          getLength() {\n            return this.text.length;\n          }\n          getChangeRange() {\n            return void 0;\n          }\n        }\n        function fromString(text) {\n          return new StringScriptSnapshot(text);\n        }\n        ScriptSnapshot2.fromString = fromString;\n      })(ScriptSnapshot || (ScriptSnapshot = {}));\n      PackageJsonDependencyGroup = /* @__PURE__ */ ((PackageJsonDependencyGroup2) => {\n        PackageJsonDependencyGroup2[PackageJsonDependencyGroup2[\"Dependencies\"] = 1] = \"Dependencies\";\n        PackageJsonDependencyGroup2[PackageJsonDependencyGroup2[\"DevDependencies\"] = 2] = \"DevDependencies\";\n        PackageJsonDependencyGroup2[PackageJsonDependencyGroup2[\"PeerDependencies\"] = 4] = \"PeerDependencies\";\n        PackageJsonDependencyGroup2[PackageJsonDependencyGroup2[\"OptionalDependencies\"] = 8] = \"OptionalDependencies\";\n        PackageJsonDependencyGroup2[PackageJsonDependencyGroup2[\"All\"] = 15] = \"All\";\n        return PackageJsonDependencyGroup2;\n      })(PackageJsonDependencyGroup || {});\n      PackageJsonAutoImportPreference = /* @__PURE__ */ ((PackageJsonAutoImportPreference2) => {\n        PackageJsonAutoImportPreference2[PackageJsonAutoImportPreference2[\"Off\"] = 0] = \"Off\";\n        PackageJsonAutoImportPreference2[PackageJsonAutoImportPreference2[\"On\"] = 1] = \"On\";\n        PackageJsonAutoImportPreference2[PackageJsonAutoImportPreference2[\"Auto\"] = 2] = \"Auto\";\n        return PackageJsonAutoImportPreference2;\n      })(PackageJsonAutoImportPreference || {});\n      LanguageServiceMode = /* @__PURE__ */ ((LanguageServiceMode2) => {\n        LanguageServiceMode2[LanguageServiceMode2[\"Semantic\"] = 0] = \"Semantic\";\n        LanguageServiceMode2[LanguageServiceMode2[\"PartialSemantic\"] = 1] = \"PartialSemantic\";\n        LanguageServiceMode2[LanguageServiceMode2[\"Syntactic\"] = 2] = \"Syntactic\";\n        return LanguageServiceMode2;\n      })(LanguageServiceMode || {});\n      emptyOptions = {};\n      SemanticClassificationFormat = /* @__PURE__ */ ((SemanticClassificationFormat3) => {\n        SemanticClassificationFormat3[\"Original\"] = \"original\";\n        SemanticClassificationFormat3[\"TwentyTwenty\"] = \"2020\";\n        return SemanticClassificationFormat3;\n      })(SemanticClassificationFormat || {});\n      OrganizeImportsMode = /* @__PURE__ */ ((OrganizeImportsMode2) => {\n        OrganizeImportsMode2[\"All\"] = \"All\";\n        OrganizeImportsMode2[\"SortAndCombine\"] = \"SortAndCombine\";\n        OrganizeImportsMode2[\"RemoveUnused\"] = \"RemoveUnused\";\n        return OrganizeImportsMode2;\n      })(OrganizeImportsMode || {});\n      CompletionTriggerKind = /* @__PURE__ */ ((CompletionTriggerKind2) => {\n        CompletionTriggerKind2[CompletionTriggerKind2[\"Invoked\"] = 1] = \"Invoked\";\n        CompletionTriggerKind2[CompletionTriggerKind2[\"TriggerCharacter\"] = 2] = \"TriggerCharacter\";\n        CompletionTriggerKind2[CompletionTriggerKind2[\"TriggerForIncompleteCompletions\"] = 3] = \"TriggerForIncompleteCompletions\";\n        return CompletionTriggerKind2;\n      })(CompletionTriggerKind || {});\n      InlayHintKind = /* @__PURE__ */ ((InlayHintKind2) => {\n        InlayHintKind2[\"Type\"] = \"Type\";\n        InlayHintKind2[\"Parameter\"] = \"Parameter\";\n        InlayHintKind2[\"Enum\"] = \"Enum\";\n        return InlayHintKind2;\n      })(InlayHintKind || {});\n      HighlightSpanKind = /* @__PURE__ */ ((HighlightSpanKind2) => {\n        HighlightSpanKind2[\"none\"] = \"none\";\n        HighlightSpanKind2[\"definition\"] = \"definition\";\n        HighlightSpanKind2[\"reference\"] = \"reference\";\n        HighlightSpanKind2[\"writtenReference\"] = \"writtenReference\";\n        return HighlightSpanKind2;\n      })(HighlightSpanKind || {});\n      IndentStyle2 = /* @__PURE__ */ ((IndentStyle22) => {\n        IndentStyle22[IndentStyle22[\"None\"] = 0] = \"None\";\n        IndentStyle22[IndentStyle22[\"Block\"] = 1] = \"Block\";\n        IndentStyle22[IndentStyle22[\"Smart\"] = 2] = \"Smart\";\n        return IndentStyle22;\n      })(IndentStyle2 || {});\n      SemicolonPreference = /* @__PURE__ */ ((SemicolonPreference2) => {\n        SemicolonPreference2[\"Ignore\"] = \"ignore\";\n        SemicolonPreference2[\"Insert\"] = \"insert\";\n        SemicolonPreference2[\"Remove\"] = \"remove\";\n        return SemicolonPreference2;\n      })(SemicolonPreference || {});\n      testFormatSettings = getDefaultFormatCodeSettings(\"\\n\");\n      SymbolDisplayPartKind = /* @__PURE__ */ ((SymbolDisplayPartKind2) => {\n        SymbolDisplayPartKind2[SymbolDisplayPartKind2[\"aliasName\"] = 0] = \"aliasName\";\n        SymbolDisplayPartKind2[SymbolDisplayPartKind2[\"className\"] = 1] = \"className\";\n        SymbolDisplayPartKind2[SymbolDisplayPartKind2[\"enumName\"] = 2] = \"enumName\";\n        SymbolDisplayPartKind2[SymbolDisplayPartKind2[\"fieldName\"] = 3] = \"fieldName\";\n        SymbolDisplayPartKind2[SymbolDisplayPartKind2[\"interfaceName\"] = 4] = \"interfaceName\";\n        SymbolDisplayPartKind2[SymbolDisplayPartKind2[\"keyword\"] = 5] = \"keyword\";\n        SymbolDisplayPartKind2[SymbolDisplayPartKind2[\"lineBreak\"] = 6] = \"lineBreak\";\n        SymbolDisplayPartKind2[SymbolDisplayPartKind2[\"numericLiteral\"] = 7] = \"numericLiteral\";\n        SymbolDisplayPartKind2[SymbolDisplayPartKind2[\"stringLiteral\"] = 8] = \"stringLiteral\";\n        SymbolDisplayPartKind2[SymbolDisplayPartKind2[\"localName\"] = 9] = \"localName\";\n        SymbolDisplayPartKind2[SymbolDisplayPartKind2[\"methodName\"] = 10] = \"methodName\";\n        SymbolDisplayPartKind2[SymbolDisplayPartKind2[\"moduleName\"] = 11] = \"moduleName\";\n        SymbolDisplayPartKind2[SymbolDisplayPartKind2[\"operator\"] = 12] = \"operator\";\n        SymbolDisplayPartKind2[SymbolDisplayPartKind2[\"parameterName\"] = 13] = \"parameterName\";\n        SymbolDisplayPartKind2[SymbolDisplayPartKind2[\"propertyName\"] = 14] = \"propertyName\";\n        SymbolDisplayPartKind2[SymbolDisplayPartKind2[\"punctuation\"] = 15] = \"punctuation\";\n        SymbolDisplayPartKind2[SymbolDisplayPartKind2[\"space\"] = 16] = \"space\";\n        SymbolDisplayPartKind2[SymbolDisplayPartKind2[\"text\"] = 17] = \"text\";\n        SymbolDisplayPartKind2[SymbolDisplayPartKind2[\"typeParameterName\"] = 18] = \"typeParameterName\";\n        SymbolDisplayPartKind2[SymbolDisplayPartKind2[\"enumMemberName\"] = 19] = \"enumMemberName\";\n        SymbolDisplayPartKind2[SymbolDisplayPartKind2[\"functionName\"] = 20] = \"functionName\";\n        SymbolDisplayPartKind2[SymbolDisplayPartKind2[\"regularExpressionLiteral\"] = 21] = \"regularExpressionLiteral\";\n        SymbolDisplayPartKind2[SymbolDisplayPartKind2[\"link\"] = 22] = \"link\";\n        SymbolDisplayPartKind2[SymbolDisplayPartKind2[\"linkName\"] = 23] = \"linkName\";\n        SymbolDisplayPartKind2[SymbolDisplayPartKind2[\"linkText\"] = 24] = \"linkText\";\n        return SymbolDisplayPartKind2;\n      })(SymbolDisplayPartKind || {});\n      CompletionInfoFlags = /* @__PURE__ */ ((CompletionInfoFlags2) => {\n        CompletionInfoFlags2[CompletionInfoFlags2[\"None\"] = 0] = \"None\";\n        CompletionInfoFlags2[CompletionInfoFlags2[\"MayIncludeAutoImports\"] = 1] = \"MayIncludeAutoImports\";\n        CompletionInfoFlags2[CompletionInfoFlags2[\"IsImportStatementCompletion\"] = 2] = \"IsImportStatementCompletion\";\n        CompletionInfoFlags2[CompletionInfoFlags2[\"IsContinuation\"] = 4] = \"IsContinuation\";\n        CompletionInfoFlags2[CompletionInfoFlags2[\"ResolvedModuleSpecifiers\"] = 8] = \"ResolvedModuleSpecifiers\";\n        CompletionInfoFlags2[CompletionInfoFlags2[\"ResolvedModuleSpecifiersBeyondLimit\"] = 16] = \"ResolvedModuleSpecifiersBeyondLimit\";\n        CompletionInfoFlags2[CompletionInfoFlags2[\"MayIncludeMethodSnippets\"] = 32] = \"MayIncludeMethodSnippets\";\n        return CompletionInfoFlags2;\n      })(CompletionInfoFlags || {});\n      OutliningSpanKind = /* @__PURE__ */ ((OutliningSpanKind2) => {\n        OutliningSpanKind2[\"Comment\"] = \"comment\";\n        OutliningSpanKind2[\"Region\"] = \"region\";\n        OutliningSpanKind2[\"Code\"] = \"code\";\n        OutliningSpanKind2[\"Imports\"] = \"imports\";\n        return OutliningSpanKind2;\n      })(OutliningSpanKind || {});\n      OutputFileType = /* @__PURE__ */ ((OutputFileType2) => {\n        OutputFileType2[OutputFileType2[\"JavaScript\"] = 0] = \"JavaScript\";\n        OutputFileType2[OutputFileType2[\"SourceMap\"] = 1] = \"SourceMap\";\n        OutputFileType2[OutputFileType2[\"Declaration\"] = 2] = \"Declaration\";\n        return OutputFileType2;\n      })(OutputFileType || {});\n      EndOfLineState2 = /* @__PURE__ */ ((EndOfLineState3) => {\n        EndOfLineState3[EndOfLineState3[\"None\"] = 0] = \"None\";\n        EndOfLineState3[EndOfLineState3[\"InMultiLineCommentTrivia\"] = 1] = \"InMultiLineCommentTrivia\";\n        EndOfLineState3[EndOfLineState3[\"InSingleQuoteStringLiteral\"] = 2] = \"InSingleQuoteStringLiteral\";\n        EndOfLineState3[EndOfLineState3[\"InDoubleQuoteStringLiteral\"] = 3] = \"InDoubleQuoteStringLiteral\";\n        EndOfLineState3[EndOfLineState3[\"InTemplateHeadOrNoSubstitutionTemplate\"] = 4] = \"InTemplateHeadOrNoSubstitutionTemplate\";\n        EndOfLineState3[EndOfLineState3[\"InTemplateMiddleOrTail\"] = 5] = \"InTemplateMiddleOrTail\";\n        EndOfLineState3[EndOfLineState3[\"InTemplateSubstitutionPosition\"] = 6] = \"InTemplateSubstitutionPosition\";\n        return EndOfLineState3;\n      })(EndOfLineState2 || {});\n      TokenClass2 = /* @__PURE__ */ ((TokenClass22) => {\n        TokenClass22[TokenClass22[\"Punctuation\"] = 0] = \"Punctuation\";\n        TokenClass22[TokenClass22[\"Keyword\"] = 1] = \"Keyword\";\n        TokenClass22[TokenClass22[\"Operator\"] = 2] = \"Operator\";\n        TokenClass22[TokenClass22[\"Comment\"] = 3] = \"Comment\";\n        TokenClass22[TokenClass22[\"Whitespace\"] = 4] = \"Whitespace\";\n        TokenClass22[TokenClass22[\"Identifier\"] = 5] = \"Identifier\";\n        TokenClass22[TokenClass22[\"NumberLiteral\"] = 6] = \"NumberLiteral\";\n        TokenClass22[TokenClass22[\"BigIntLiteral\"] = 7] = \"BigIntLiteral\";\n        TokenClass22[TokenClass22[\"StringLiteral\"] = 8] = \"StringLiteral\";\n        TokenClass22[TokenClass22[\"RegExpLiteral\"] = 9] = \"RegExpLiteral\";\n        return TokenClass22;\n      })(TokenClass2 || {});\n      ScriptElementKind = /* @__PURE__ */ ((ScriptElementKind2) => {\n        ScriptElementKind2[\"unknown\"] = \"\";\n        ScriptElementKind2[\"warning\"] = \"warning\";\n        ScriptElementKind2[\"keyword\"] = \"keyword\";\n        ScriptElementKind2[\"scriptElement\"] = \"script\";\n        ScriptElementKind2[\"moduleElement\"] = \"module\";\n        ScriptElementKind2[\"classElement\"] = \"class\";\n        ScriptElementKind2[\"localClassElement\"] = \"local class\";\n        ScriptElementKind2[\"interfaceElement\"] = \"interface\";\n        ScriptElementKind2[\"typeElement\"] = \"type\";\n        ScriptElementKind2[\"enumElement\"] = \"enum\";\n        ScriptElementKind2[\"enumMemberElement\"] = \"enum member\";\n        ScriptElementKind2[\"variableElement\"] = \"var\";\n        ScriptElementKind2[\"localVariableElement\"] = \"local var\";\n        ScriptElementKind2[\"functionElement\"] = \"function\";\n        ScriptElementKind2[\"localFunctionElement\"] = \"local function\";\n        ScriptElementKind2[\"memberFunctionElement\"] = \"method\";\n        ScriptElementKind2[\"memberGetAccessorElement\"] = \"getter\";\n        ScriptElementKind2[\"memberSetAccessorElement\"] = \"setter\";\n        ScriptElementKind2[\"memberVariableElement\"] = \"property\";\n        ScriptElementKind2[\"memberAccessorVariableElement\"] = \"accessor\";\n        ScriptElementKind2[\"constructorImplementationElement\"] = \"constructor\";\n        ScriptElementKind2[\"callSignatureElement\"] = \"call\";\n        ScriptElementKind2[\"indexSignatureElement\"] = \"index\";\n        ScriptElementKind2[\"constructSignatureElement\"] = \"construct\";\n        ScriptElementKind2[\"parameterElement\"] = \"parameter\";\n        ScriptElementKind2[\"typeParameterElement\"] = \"type parameter\";\n        ScriptElementKind2[\"primitiveType\"] = \"primitive type\";\n        ScriptElementKind2[\"label\"] = \"label\";\n        ScriptElementKind2[\"alias\"] = \"alias\";\n        ScriptElementKind2[\"constElement\"] = \"const\";\n        ScriptElementKind2[\"letElement\"] = \"let\";\n        ScriptElementKind2[\"directory\"] = \"directory\";\n        ScriptElementKind2[\"externalModuleName\"] = \"external module name\";\n        ScriptElementKind2[\"jsxAttribute\"] = \"JSX attribute\";\n        ScriptElementKind2[\"string\"] = \"string\";\n        ScriptElementKind2[\"link\"] = \"link\";\n        ScriptElementKind2[\"linkName\"] = \"link name\";\n        ScriptElementKind2[\"linkText\"] = \"link text\";\n        return ScriptElementKind2;\n      })(ScriptElementKind || {});\n      ScriptElementKindModifier = /* @__PURE__ */ ((ScriptElementKindModifier2) => {\n        ScriptElementKindModifier2[\"none\"] = \"\";\n        ScriptElementKindModifier2[\"publicMemberModifier\"] = \"public\";\n        ScriptElementKindModifier2[\"privateMemberModifier\"] = \"private\";\n        ScriptElementKindModifier2[\"protectedMemberModifier\"] = \"protected\";\n        ScriptElementKindModifier2[\"exportedModifier\"] = \"export\";\n        ScriptElementKindModifier2[\"ambientModifier\"] = \"declare\";\n        ScriptElementKindModifier2[\"staticModifier\"] = \"static\";\n        ScriptElementKindModifier2[\"abstractModifier\"] = \"abstract\";\n        ScriptElementKindModifier2[\"optionalModifier\"] = \"optional\";\n        ScriptElementKindModifier2[\"deprecatedModifier\"] = \"deprecated\";\n        ScriptElementKindModifier2[\"dtsModifier\"] = \".d.ts\";\n        ScriptElementKindModifier2[\"tsModifier\"] = \".ts\";\n        ScriptElementKindModifier2[\"tsxModifier\"] = \".tsx\";\n        ScriptElementKindModifier2[\"jsModifier\"] = \".js\";\n        ScriptElementKindModifier2[\"jsxModifier\"] = \".jsx\";\n        ScriptElementKindModifier2[\"jsonModifier\"] = \".json\";\n        ScriptElementKindModifier2[\"dmtsModifier\"] = \".d.mts\";\n        ScriptElementKindModifier2[\"mtsModifier\"] = \".mts\";\n        ScriptElementKindModifier2[\"mjsModifier\"] = \".mjs\";\n        ScriptElementKindModifier2[\"dctsModifier\"] = \".d.cts\";\n        ScriptElementKindModifier2[\"ctsModifier\"] = \".cts\";\n        ScriptElementKindModifier2[\"cjsModifier\"] = \".cjs\";\n        return ScriptElementKindModifier2;\n      })(ScriptElementKindModifier || {});\n      ClassificationTypeNames = /* @__PURE__ */ ((ClassificationTypeNames2) => {\n        ClassificationTypeNames2[\"comment\"] = \"comment\";\n        ClassificationTypeNames2[\"identifier\"] = \"identifier\";\n        ClassificationTypeNames2[\"keyword\"] = \"keyword\";\n        ClassificationTypeNames2[\"numericLiteral\"] = \"number\";\n        ClassificationTypeNames2[\"bigintLiteral\"] = \"bigint\";\n        ClassificationTypeNames2[\"operator\"] = \"operator\";\n        ClassificationTypeNames2[\"stringLiteral\"] = \"string\";\n        ClassificationTypeNames2[\"whiteSpace\"] = \"whitespace\";\n        ClassificationTypeNames2[\"text\"] = \"text\";\n        ClassificationTypeNames2[\"punctuation\"] = \"punctuation\";\n        ClassificationTypeNames2[\"className\"] = \"class name\";\n        ClassificationTypeNames2[\"enumName\"] = \"enum name\";\n        ClassificationTypeNames2[\"interfaceName\"] = \"interface name\";\n        ClassificationTypeNames2[\"moduleName\"] = \"module name\";\n        ClassificationTypeNames2[\"typeParameterName\"] = \"type parameter name\";\n        ClassificationTypeNames2[\"typeAliasName\"] = \"type alias name\";\n        ClassificationTypeNames2[\"parameterName\"] = \"parameter name\";\n        ClassificationTypeNames2[\"docCommentTagName\"] = \"doc comment tag name\";\n        ClassificationTypeNames2[\"jsxOpenTagName\"] = \"jsx open tag name\";\n        ClassificationTypeNames2[\"jsxCloseTagName\"] = \"jsx close tag name\";\n        ClassificationTypeNames2[\"jsxSelfClosingTagName\"] = \"jsx self closing tag name\";\n        ClassificationTypeNames2[\"jsxAttribute\"] = \"jsx attribute\";\n        ClassificationTypeNames2[\"jsxText\"] = \"jsx text\";\n        ClassificationTypeNames2[\"jsxAttributeStringLiteralValue\"] = \"jsx attribute string literal value\";\n        return ClassificationTypeNames2;\n      })(ClassificationTypeNames || {});\n      ClassificationType = /* @__PURE__ */ ((ClassificationType2) => {\n        ClassificationType2[ClassificationType2[\"comment\"] = 1] = \"comment\";\n        ClassificationType2[ClassificationType2[\"identifier\"] = 2] = \"identifier\";\n        ClassificationType2[ClassificationType2[\"keyword\"] = 3] = \"keyword\";\n        ClassificationType2[ClassificationType2[\"numericLiteral\"] = 4] = \"numericLiteral\";\n        ClassificationType2[ClassificationType2[\"operator\"] = 5] = \"operator\";\n        ClassificationType2[ClassificationType2[\"stringLiteral\"] = 6] = \"stringLiteral\";\n        ClassificationType2[ClassificationType2[\"regularExpressionLiteral\"] = 7] = \"regularExpressionLiteral\";\n        ClassificationType2[ClassificationType2[\"whiteSpace\"] = 8] = \"whiteSpace\";\n        ClassificationType2[ClassificationType2[\"text\"] = 9] = \"text\";\n        ClassificationType2[ClassificationType2[\"punctuation\"] = 10] = \"punctuation\";\n        ClassificationType2[ClassificationType2[\"className\"] = 11] = \"className\";\n        ClassificationType2[ClassificationType2[\"enumName\"] = 12] = \"enumName\";\n        ClassificationType2[ClassificationType2[\"interfaceName\"] = 13] = \"interfaceName\";\n        ClassificationType2[ClassificationType2[\"moduleName\"] = 14] = \"moduleName\";\n        ClassificationType2[ClassificationType2[\"typeParameterName\"] = 15] = \"typeParameterName\";\n        ClassificationType2[ClassificationType2[\"typeAliasName\"] = 16] = \"typeAliasName\";\n        ClassificationType2[ClassificationType2[\"parameterName\"] = 17] = \"parameterName\";\n        ClassificationType2[ClassificationType2[\"docCommentTagName\"] = 18] = \"docCommentTagName\";\n        ClassificationType2[ClassificationType2[\"jsxOpenTagName\"] = 19] = \"jsxOpenTagName\";\n        ClassificationType2[ClassificationType2[\"jsxCloseTagName\"] = 20] = \"jsxCloseTagName\";\n        ClassificationType2[ClassificationType2[\"jsxSelfClosingTagName\"] = 21] = \"jsxSelfClosingTagName\";\n        ClassificationType2[ClassificationType2[\"jsxAttribute\"] = 22] = \"jsxAttribute\";\n        ClassificationType2[ClassificationType2[\"jsxText\"] = 23] = \"jsxText\";\n        ClassificationType2[ClassificationType2[\"jsxAttributeStringLiteralValue\"] = 24] = \"jsxAttributeStringLiteralValue\";\n        ClassificationType2[ClassificationType2[\"bigintLiteral\"] = 25] = \"bigintLiteral\";\n        return ClassificationType2;\n      })(ClassificationType || {});\n    }\n  });\n  function getMeaningFromDeclaration(node) {\n    switch (node.kind) {\n      case 257:\n        return isInJSFile(node) && getJSDocEnumTag(node) ? 7 : 1;\n      case 166:\n      case 205:\n      case 169:\n      case 168:\n      case 299:\n      case 300:\n      case 171:\n      case 170:\n      case 173:\n      case 174:\n      case 175:\n      case 259:\n      case 215:\n      case 216:\n      case 295:\n      case 288:\n        return 1;\n      case 165:\n      case 261:\n      case 262:\n      case 184:\n        return 2;\n      case 349:\n        return node.name === void 0 ? 1 | 2 : 2;\n      case 302:\n      case 260:\n        return 1 | 2;\n      case 264:\n        if (isAmbientModule(node)) {\n          return 4 | 1;\n        } else if (getModuleInstanceState(node) === 1) {\n          return 4 | 1;\n        } else {\n          return 4;\n        }\n      case 263:\n      case 272:\n      case 273:\n      case 268:\n      case 269:\n      case 274:\n      case 275:\n        return 7;\n      case 308:\n        return 4 | 1;\n    }\n    return 7;\n  }\n  function getMeaningFromLocation(node) {\n    node = getAdjustedReferenceLocation(node);\n    const parent2 = node.parent;\n    if (node.kind === 308) {\n      return 1;\n    } else if (isExportAssignment(parent2) || isExportSpecifier(parent2) || isExternalModuleReference(parent2) || isImportSpecifier(parent2) || isImportClause(parent2) || isImportEqualsDeclaration(parent2) && node === parent2.name) {\n      return 7;\n    } else if (isInRightSideOfInternalImportEqualsDeclaration(node)) {\n      return getMeaningFromRightHandSideOfImportEquals(node);\n    } else if (isDeclarationName(node)) {\n      return getMeaningFromDeclaration(parent2);\n    } else if (isEntityName(node) && findAncestor(node, or(isJSDocNameReference, isJSDocLinkLike, isJSDocMemberName))) {\n      return 7;\n    } else if (isTypeReference(node)) {\n      return 2;\n    } else if (isNamespaceReference(node)) {\n      return 4;\n    } else if (isTypeParameterDeclaration(parent2)) {\n      Debug.assert(isJSDocTemplateTag(parent2.parent));\n      return 2;\n    } else if (isLiteralTypeNode(parent2)) {\n      return 2 | 1;\n    } else {\n      return 1;\n    }\n  }\n  function getMeaningFromRightHandSideOfImportEquals(node) {\n    const name = node.kind === 163 ? node : isQualifiedName(node.parent) && node.parent.right === node ? node.parent : void 0;\n    return name && name.parent.kind === 268 ? 7 : 4;\n  }\n  function isInRightSideOfInternalImportEqualsDeclaration(node) {\n    while (node.parent.kind === 163) {\n      node = node.parent;\n    }\n    return isInternalModuleImportEqualsDeclaration(node.parent) && node.parent.moduleReference === node;\n  }\n  function isNamespaceReference(node) {\n    return isQualifiedNameNamespaceReference(node) || isPropertyAccessNamespaceReference(node);\n  }\n  function isQualifiedNameNamespaceReference(node) {\n    let root = node;\n    let isLastClause = true;\n    if (root.parent.kind === 163) {\n      while (root.parent && root.parent.kind === 163) {\n        root = root.parent;\n      }\n      isLastClause = root.right === node;\n    }\n    return root.parent.kind === 180 && !isLastClause;\n  }\n  function isPropertyAccessNamespaceReference(node) {\n    let root = node;\n    let isLastClause = true;\n    if (root.parent.kind === 208) {\n      while (root.parent && root.parent.kind === 208) {\n        root = root.parent;\n      }\n      isLastClause = root.name === node;\n    }\n    if (!isLastClause && root.parent.kind === 230 && root.parent.parent.kind === 294) {\n      const decl = root.parent.parent.parent;\n      return decl.kind === 260 && root.parent.parent.token === 117 || decl.kind === 261 && root.parent.parent.token === 94;\n    }\n    return false;\n  }\n  function isTypeReference(node) {\n    if (isRightSideOfQualifiedNameOrPropertyAccess(node)) {\n      node = node.parent;\n    }\n    switch (node.kind) {\n      case 108:\n        return !isExpressionNode(node);\n      case 194:\n        return true;\n    }\n    switch (node.parent.kind) {\n      case 180:\n        return true;\n      case 202:\n        return !node.parent.isTypeOf;\n      case 230:\n        return isPartOfTypeNode(node.parent);\n    }\n    return false;\n  }\n  function isCallExpressionTarget(node, includeElementAccess = false, skipPastOuterExpressions = false) {\n    return isCalleeWorker(node, isCallExpression, selectExpressionOfCallOrNewExpressionOrDecorator, includeElementAccess, skipPastOuterExpressions);\n  }\n  function isNewExpressionTarget(node, includeElementAccess = false, skipPastOuterExpressions = false) {\n    return isCalleeWorker(node, isNewExpression, selectExpressionOfCallOrNewExpressionOrDecorator, includeElementAccess, skipPastOuterExpressions);\n  }\n  function isCallOrNewExpressionTarget(node, includeElementAccess = false, skipPastOuterExpressions = false) {\n    return isCalleeWorker(node, isCallOrNewExpression, selectExpressionOfCallOrNewExpressionOrDecorator, includeElementAccess, skipPastOuterExpressions);\n  }\n  function isTaggedTemplateTag(node, includeElementAccess = false, skipPastOuterExpressions = false) {\n    return isCalleeWorker(node, isTaggedTemplateExpression, selectTagOfTaggedTemplateExpression, includeElementAccess, skipPastOuterExpressions);\n  }\n  function isDecoratorTarget(node, includeElementAccess = false, skipPastOuterExpressions = false) {\n    return isCalleeWorker(node, isDecorator, selectExpressionOfCallOrNewExpressionOrDecorator, includeElementAccess, skipPastOuterExpressions);\n  }\n  function isJsxOpeningLikeElementTagName(node, includeElementAccess = false, skipPastOuterExpressions = false) {\n    return isCalleeWorker(node, isJsxOpeningLikeElement, selectTagNameOfJsxOpeningLikeElement, includeElementAccess, skipPastOuterExpressions);\n  }\n  function selectExpressionOfCallOrNewExpressionOrDecorator(node) {\n    return node.expression;\n  }\n  function selectTagOfTaggedTemplateExpression(node) {\n    return node.tag;\n  }\n  function selectTagNameOfJsxOpeningLikeElement(node) {\n    return node.tagName;\n  }\n  function isCalleeWorker(node, pred, calleeSelector, includeElementAccess, skipPastOuterExpressions) {\n    let target = includeElementAccess ? climbPastPropertyOrElementAccess(node) : climbPastPropertyAccess(node);\n    if (skipPastOuterExpressions) {\n      target = skipOuterExpressions(target);\n    }\n    return !!target && !!target.parent && pred(target.parent) && calleeSelector(target.parent) === target;\n  }\n  function climbPastPropertyAccess(node) {\n    return isRightSideOfPropertyAccess(node) ? node.parent : node;\n  }\n  function climbPastPropertyOrElementAccess(node) {\n    return isRightSideOfPropertyAccess(node) || isArgumentExpressionOfElementAccess(node) ? node.parent : node;\n  }\n  function getTargetLabel(referenceNode, labelName) {\n    while (referenceNode) {\n      if (referenceNode.kind === 253 && referenceNode.label.escapedText === labelName) {\n        return referenceNode.label;\n      }\n      referenceNode = referenceNode.parent;\n    }\n    return void 0;\n  }\n  function hasPropertyAccessExpressionWithName(node, funcName) {\n    if (!isPropertyAccessExpression(node.expression)) {\n      return false;\n    }\n    return node.expression.name.text === funcName;\n  }\n  function isJumpStatementTarget(node) {\n    var _a2;\n    return isIdentifier(node) && ((_a2 = tryCast(node.parent, isBreakOrContinueStatement)) == null ? void 0 : _a2.label) === node;\n  }\n  function isLabelOfLabeledStatement(node) {\n    var _a2;\n    return isIdentifier(node) && ((_a2 = tryCast(node.parent, isLabeledStatement)) == null ? void 0 : _a2.label) === node;\n  }\n  function isLabelName(node) {\n    return isLabelOfLabeledStatement(node) || isJumpStatementTarget(node);\n  }\n  function isTagName(node) {\n    var _a2;\n    return ((_a2 = tryCast(node.parent, isJSDocTag)) == null ? void 0 : _a2.tagName) === node;\n  }\n  function isRightSideOfQualifiedName(node) {\n    var _a2;\n    return ((_a2 = tryCast(node.parent, isQualifiedName)) == null ? void 0 : _a2.right) === node;\n  }\n  function isRightSideOfPropertyAccess(node) {\n    var _a2;\n    return ((_a2 = tryCast(node.parent, isPropertyAccessExpression)) == null ? void 0 : _a2.name) === node;\n  }\n  function isArgumentExpressionOfElementAccess(node) {\n    var _a2;\n    return ((_a2 = tryCast(node.parent, isElementAccessExpression)) == null ? void 0 : _a2.argumentExpression) === node;\n  }\n  function isNameOfModuleDeclaration(node) {\n    var _a2;\n    return ((_a2 = tryCast(node.parent, isModuleDeclaration)) == null ? void 0 : _a2.name) === node;\n  }\n  function isNameOfFunctionDeclaration(node) {\n    var _a2;\n    return isIdentifier(node) && ((_a2 = tryCast(node.parent, isFunctionLike)) == null ? void 0 : _a2.name) === node;\n  }\n  function isLiteralNameOfPropertyDeclarationOrIndexAccess(node) {\n    switch (node.parent.kind) {\n      case 169:\n      case 168:\n      case 299:\n      case 302:\n      case 171:\n      case 170:\n      case 174:\n      case 175:\n      case 264:\n        return getNameOfDeclaration(node.parent) === node;\n      case 209:\n        return node.parent.argumentExpression === node;\n      case 164:\n        return true;\n      case 198:\n        return node.parent.parent.kind === 196;\n      default:\n        return false;\n    }\n  }\n  function isExpressionOfExternalModuleImportEqualsDeclaration(node) {\n    return isExternalModuleImportEqualsDeclaration(node.parent.parent) && getExternalModuleImportEqualsDeclarationExpression(node.parent.parent) === node;\n  }\n  function getContainerNode(node) {\n    if (isJSDocTypeAlias(node)) {\n      node = node.parent.parent;\n    }\n    while (true) {\n      node = node.parent;\n      if (!node) {\n        return void 0;\n      }\n      switch (node.kind) {\n        case 308:\n        case 171:\n        case 170:\n        case 259:\n        case 215:\n        case 174:\n        case 175:\n        case 260:\n        case 261:\n        case 263:\n        case 264:\n          return node;\n      }\n    }\n  }\n  function getNodeKind(node) {\n    switch (node.kind) {\n      case 308:\n        return isExternalModule(node) ? \"module\" : \"script\";\n      case 264:\n        return \"module\";\n      case 260:\n      case 228:\n        return \"class\";\n      case 261:\n        return \"interface\";\n      case 262:\n      case 341:\n      case 349:\n        return \"type\";\n      case 263:\n        return \"enum\";\n      case 257:\n        return getKindOfVariableDeclaration(node);\n      case 205:\n        return getKindOfVariableDeclaration(getRootDeclaration(node));\n      case 216:\n      case 259:\n      case 215:\n        return \"function\";\n      case 174:\n        return \"getter\";\n      case 175:\n        return \"setter\";\n      case 171:\n      case 170:\n        return \"method\";\n      case 299:\n        const { initializer } = node;\n        return isFunctionLike(initializer) ? \"method\" : \"property\";\n      case 169:\n      case 168:\n      case 300:\n      case 301:\n        return \"property\";\n      case 178:\n        return \"index\";\n      case 177:\n        return \"construct\";\n      case 176:\n        return \"call\";\n      case 173:\n      case 172:\n        return \"constructor\";\n      case 165:\n        return \"type parameter\";\n      case 302:\n        return \"enum member\";\n      case 166:\n        return hasSyntacticModifier(node, 16476) ? \"property\" : \"parameter\";\n      case 268:\n      case 273:\n      case 278:\n      case 271:\n      case 277:\n        return \"alias\";\n      case 223:\n        const kind = getAssignmentDeclarationKind(node);\n        const { right } = node;\n        switch (kind) {\n          case 7:\n          case 8:\n          case 9:\n          case 0:\n            return \"\";\n          case 1:\n          case 2:\n            const rightKind = getNodeKind(right);\n            return rightKind === \"\" ? \"const\" : rightKind;\n          case 3:\n            return isFunctionExpression(right) ? \"method\" : \"property\";\n          case 4:\n            return \"property\";\n          case 5:\n            return isFunctionExpression(right) ? \"method\" : \"property\";\n          case 6:\n            return \"local class\";\n          default: {\n            assertType(kind);\n            return \"\";\n          }\n        }\n      case 79:\n        return isImportClause(node.parent) ? \"alias\" : \"\";\n      case 274:\n        const scriptKind = getNodeKind(node.expression);\n        return scriptKind === \"\" ? \"const\" : scriptKind;\n      default:\n        return \"\";\n    }\n    function getKindOfVariableDeclaration(v) {\n      return isVarConst(v) ? \"const\" : isLet(v) ? \"let\" : \"var\";\n    }\n  }\n  function isThis(node) {\n    switch (node.kind) {\n      case 108:\n        return true;\n      case 79:\n        return identifierIsThisKeyword(node) && node.parent.kind === 166;\n      default:\n        return false;\n    }\n  }\n  function getLineStartPositionForPosition(position, sourceFile) {\n    const lineStarts = getLineStarts(sourceFile);\n    const line = sourceFile.getLineAndCharacterOfPosition(position).line;\n    return lineStarts[line];\n  }\n  function rangeContainsRange(r1, r2) {\n    return startEndContainsRange(r1.pos, r1.end, r2);\n  }\n  function rangeContainsRangeExclusive(r1, r2) {\n    return rangeContainsPositionExclusive(r1, r2.pos) && rangeContainsPositionExclusive(r1, r2.end);\n  }\n  function rangeContainsPosition(r, pos) {\n    return r.pos <= pos && pos <= r.end;\n  }\n  function rangeContainsPositionExclusive(r, pos) {\n    return r.pos < pos && pos < r.end;\n  }\n  function startEndContainsRange(start, end, range) {\n    return start <= range.pos && end >= range.end;\n  }\n  function rangeContainsStartEnd(range, start, end) {\n    return range.pos <= start && range.end >= end;\n  }\n  function rangeOverlapsWithStartEnd(r1, start, end) {\n    return startEndOverlapsWithStartEnd(r1.pos, r1.end, start, end);\n  }\n  function nodeOverlapsWithStartEnd(node, sourceFile, start, end) {\n    return startEndOverlapsWithStartEnd(node.getStart(sourceFile), node.end, start, end);\n  }\n  function startEndOverlapsWithStartEnd(start1, end1, start2, end2) {\n    const start = Math.max(start1, start2);\n    const end = Math.min(end1, end2);\n    return start < end;\n  }\n  function positionBelongsToNode(candidate, position, sourceFile) {\n    Debug.assert(candidate.pos <= position);\n    return position < candidate.end || !isCompletedNode(candidate, sourceFile);\n  }\n  function isCompletedNode(n, sourceFile) {\n    if (n === void 0 || nodeIsMissing(n)) {\n      return false;\n    }\n    switch (n.kind) {\n      case 260:\n      case 261:\n      case 263:\n      case 207:\n      case 203:\n      case 184:\n      case 238:\n      case 265:\n      case 266:\n      case 272:\n      case 276:\n        return nodeEndsWith(n, 19, sourceFile);\n      case 295:\n        return isCompletedNode(n.block, sourceFile);\n      case 211:\n        if (!n.arguments) {\n          return true;\n        }\n      case 210:\n      case 214:\n      case 193:\n        return nodeEndsWith(n, 21, sourceFile);\n      case 181:\n      case 182:\n        return isCompletedNode(n.type, sourceFile);\n      case 173:\n      case 174:\n      case 175:\n      case 259:\n      case 215:\n      case 171:\n      case 170:\n      case 177:\n      case 176:\n      case 216:\n        if (n.body) {\n          return isCompletedNode(n.body, sourceFile);\n        }\n        if (n.type) {\n          return isCompletedNode(n.type, sourceFile);\n        }\n        return hasChildOfKind(n, 21, sourceFile);\n      case 264:\n        return !!n.body && isCompletedNode(n.body, sourceFile);\n      case 242:\n        if (n.elseStatement) {\n          return isCompletedNode(n.elseStatement, sourceFile);\n        }\n        return isCompletedNode(n.thenStatement, sourceFile);\n      case 241:\n        return isCompletedNode(n.expression, sourceFile) || hasChildOfKind(n, 26, sourceFile);\n      case 206:\n      case 204:\n      case 209:\n      case 164:\n      case 186:\n        return nodeEndsWith(n, 23, sourceFile);\n      case 178:\n        if (n.type) {\n          return isCompletedNode(n.type, sourceFile);\n        }\n        return hasChildOfKind(n, 23, sourceFile);\n      case 292:\n      case 293:\n        return false;\n      case 245:\n      case 246:\n      case 247:\n      case 244:\n        return isCompletedNode(n.statement, sourceFile);\n      case 243:\n        return hasChildOfKind(n, 115, sourceFile) ? nodeEndsWith(n, 21, sourceFile) : isCompletedNode(n.statement, sourceFile);\n      case 183:\n        return isCompletedNode(n.exprName, sourceFile);\n      case 218:\n      case 217:\n      case 219:\n      case 226:\n      case 227:\n        const unaryWordExpression = n;\n        return isCompletedNode(unaryWordExpression.expression, sourceFile);\n      case 212:\n        return isCompletedNode(n.template, sourceFile);\n      case 225:\n        const lastSpan = lastOrUndefined(n.templateSpans);\n        return isCompletedNode(lastSpan, sourceFile);\n      case 236:\n        return nodeIsPresent(n.literal);\n      case 275:\n      case 269:\n        return nodeIsPresent(n.moduleSpecifier);\n      case 221:\n        return isCompletedNode(n.operand, sourceFile);\n      case 223:\n        return isCompletedNode(n.right, sourceFile);\n      case 224:\n        return isCompletedNode(n.whenFalse, sourceFile);\n      default:\n        return true;\n    }\n  }\n  function nodeEndsWith(n, expectedLastToken, sourceFile) {\n    const children = n.getChildren(sourceFile);\n    if (children.length) {\n      const lastChild = last(children);\n      if (lastChild.kind === expectedLastToken) {\n        return true;\n      } else if (lastChild.kind === 26 && children.length !== 1) {\n        return children[children.length - 2].kind === expectedLastToken;\n      }\n    }\n    return false;\n  }\n  function findListItemInfo(node) {\n    const list = findContainingList(node);\n    if (!list) {\n      return void 0;\n    }\n    const children = list.getChildren();\n    const listItemIndex = indexOfNode(children, node);\n    return {\n      listItemIndex,\n      list\n    };\n  }\n  function hasChildOfKind(n, kind, sourceFile) {\n    return !!findChildOfKind(n, kind, sourceFile);\n  }\n  function findChildOfKind(n, kind, sourceFile) {\n    return find(n.getChildren(sourceFile), (c) => c.kind === kind);\n  }\n  function findContainingList(node) {\n    const syntaxList = find(node.parent.getChildren(), (c) => isSyntaxList(c) && rangeContainsRange(c, node));\n    Debug.assert(!syntaxList || contains(syntaxList.getChildren(), node));\n    return syntaxList;\n  }\n  function isDefaultModifier2(node) {\n    return node.kind === 88;\n  }\n  function isClassKeyword(node) {\n    return node.kind === 84;\n  }\n  function isFunctionKeyword(node) {\n    return node.kind === 98;\n  }\n  function getAdjustedLocationForClass(node) {\n    if (isNamedDeclaration(node)) {\n      return node.name;\n    }\n    if (isClassDeclaration(node)) {\n      const defaultModifier = node.modifiers && find(node.modifiers, isDefaultModifier2);\n      if (defaultModifier)\n        return defaultModifier;\n    }\n    if (isClassExpression(node)) {\n      const classKeyword = find(node.getChildren(), isClassKeyword);\n      if (classKeyword)\n        return classKeyword;\n    }\n  }\n  function getAdjustedLocationForFunction(node) {\n    if (isNamedDeclaration(node)) {\n      return node.name;\n    }\n    if (isFunctionDeclaration(node)) {\n      const defaultModifier = find(node.modifiers, isDefaultModifier2);\n      if (defaultModifier)\n        return defaultModifier;\n    }\n    if (isFunctionExpression(node)) {\n      const functionKeyword = find(node.getChildren(), isFunctionKeyword);\n      if (functionKeyword)\n        return functionKeyword;\n    }\n  }\n  function getAncestorTypeNode(node) {\n    let lastTypeNode;\n    findAncestor(node, (a) => {\n      if (isTypeNode(a)) {\n        lastTypeNode = a;\n      }\n      return !isQualifiedName(a.parent) && !isTypeNode(a.parent) && !isTypeElement(a.parent);\n    });\n    return lastTypeNode;\n  }\n  function getContextualTypeFromParentOrAncestorTypeNode(node, checker) {\n    if (node.flags & (8388608 & ~262144))\n      return void 0;\n    const contextualType = getContextualTypeFromParent(node, checker);\n    if (contextualType)\n      return contextualType;\n    const ancestorTypeNode = getAncestorTypeNode(node);\n    return ancestorTypeNode && checker.getTypeAtLocation(ancestorTypeNode);\n  }\n  function getAdjustedLocationForDeclaration(node, forRename) {\n    if (!forRename) {\n      switch (node.kind) {\n        case 260:\n        case 228:\n          return getAdjustedLocationForClass(node);\n        case 259:\n        case 215:\n          return getAdjustedLocationForFunction(node);\n        case 173:\n          return node;\n      }\n    }\n    if (isNamedDeclaration(node)) {\n      return node.name;\n    }\n  }\n  function getAdjustedLocationForImportDeclaration(node, forRename) {\n    if (node.importClause) {\n      if (node.importClause.name && node.importClause.namedBindings) {\n        return;\n      }\n      if (node.importClause.name) {\n        return node.importClause.name;\n      }\n      if (node.importClause.namedBindings) {\n        if (isNamedImports(node.importClause.namedBindings)) {\n          const onlyBinding = singleOrUndefined(node.importClause.namedBindings.elements);\n          if (!onlyBinding) {\n            return;\n          }\n          return onlyBinding.name;\n        } else if (isNamespaceImport(node.importClause.namedBindings)) {\n          return node.importClause.namedBindings.name;\n        }\n      }\n    }\n    if (!forRename) {\n      return node.moduleSpecifier;\n    }\n  }\n  function getAdjustedLocationForExportDeclaration(node, forRename) {\n    if (node.exportClause) {\n      if (isNamedExports(node.exportClause)) {\n        const onlyBinding = singleOrUndefined(node.exportClause.elements);\n        if (!onlyBinding) {\n          return;\n        }\n        return node.exportClause.elements[0].name;\n      } else if (isNamespaceExport(node.exportClause)) {\n        return node.exportClause.name;\n      }\n    }\n    if (!forRename) {\n      return node.moduleSpecifier;\n    }\n  }\n  function getAdjustedLocationForHeritageClause(node) {\n    if (node.types.length === 1) {\n      return node.types[0].expression;\n    }\n  }\n  function getAdjustedLocation(node, forRename) {\n    const { parent: parent2 } = node;\n    if (isModifier(node) && (forRename || node.kind !== 88) ? canHaveModifiers(parent2) && contains(parent2.modifiers, node) : node.kind === 84 ? isClassDeclaration(parent2) || isClassExpression(node) : node.kind === 98 ? isFunctionDeclaration(parent2) || isFunctionExpression(node) : node.kind === 118 ? isInterfaceDeclaration(parent2) : node.kind === 92 ? isEnumDeclaration(parent2) : node.kind === 154 ? isTypeAliasDeclaration(parent2) : node.kind === 143 || node.kind === 142 ? isModuleDeclaration(parent2) : node.kind === 100 ? isImportEqualsDeclaration(parent2) : node.kind === 137 ? isGetAccessorDeclaration(parent2) : node.kind === 151 && isSetAccessorDeclaration(parent2)) {\n      const location = getAdjustedLocationForDeclaration(parent2, forRename);\n      if (location) {\n        return location;\n      }\n    }\n    if ((node.kind === 113 || node.kind === 85 || node.kind === 119) && isVariableDeclarationList(parent2) && parent2.declarations.length === 1) {\n      const decl = parent2.declarations[0];\n      if (isIdentifier(decl.name)) {\n        return decl.name;\n      }\n    }\n    if (node.kind === 154) {\n      if (isImportClause(parent2) && parent2.isTypeOnly) {\n        const location = getAdjustedLocationForImportDeclaration(parent2.parent, forRename);\n        if (location) {\n          return location;\n        }\n      }\n      if (isExportDeclaration(parent2) && parent2.isTypeOnly) {\n        const location = getAdjustedLocationForExportDeclaration(parent2, forRename);\n        if (location) {\n          return location;\n        }\n      }\n    }\n    if (node.kind === 128) {\n      if (isImportSpecifier(parent2) && parent2.propertyName || isExportSpecifier(parent2) && parent2.propertyName || isNamespaceImport(parent2) || isNamespaceExport(parent2)) {\n        return parent2.name;\n      }\n      if (isExportDeclaration(parent2) && parent2.exportClause && isNamespaceExport(parent2.exportClause)) {\n        return parent2.exportClause.name;\n      }\n    }\n    if (node.kind === 100 && isImportDeclaration(parent2)) {\n      const location = getAdjustedLocationForImportDeclaration(parent2, forRename);\n      if (location) {\n        return location;\n      }\n    }\n    if (node.kind === 93) {\n      if (isExportDeclaration(parent2)) {\n        const location = getAdjustedLocationForExportDeclaration(parent2, forRename);\n        if (location) {\n          return location;\n        }\n      }\n      if (isExportAssignment(parent2)) {\n        return skipOuterExpressions(parent2.expression);\n      }\n    }\n    if (node.kind === 147 && isExternalModuleReference(parent2)) {\n      return parent2.expression;\n    }\n    if (node.kind === 158 && (isImportDeclaration(parent2) || isExportDeclaration(parent2)) && parent2.moduleSpecifier) {\n      return parent2.moduleSpecifier;\n    }\n    if ((node.kind === 94 || node.kind === 117) && isHeritageClause(parent2) && parent2.token === node.kind) {\n      const location = getAdjustedLocationForHeritageClause(parent2);\n      if (location) {\n        return location;\n      }\n    }\n    if (node.kind === 94) {\n      if (isTypeParameterDeclaration(parent2) && parent2.constraint && isTypeReferenceNode(parent2.constraint)) {\n        return parent2.constraint.typeName;\n      }\n      if (isConditionalTypeNode(parent2) && isTypeReferenceNode(parent2.extendsType)) {\n        return parent2.extendsType.typeName;\n      }\n    }\n    if (node.kind === 138 && isInferTypeNode(parent2)) {\n      return parent2.typeParameter.name;\n    }\n    if (node.kind === 101 && isTypeParameterDeclaration(parent2) && isMappedTypeNode(parent2.parent)) {\n      return parent2.name;\n    }\n    if (node.kind === 141 && isTypeOperatorNode(parent2) && parent2.operator === 141 && isTypeReferenceNode(parent2.type)) {\n      return parent2.type.typeName;\n    }\n    if (node.kind === 146 && isTypeOperatorNode(parent2) && parent2.operator === 146 && isArrayTypeNode(parent2.type) && isTypeReferenceNode(parent2.type.elementType)) {\n      return parent2.type.elementType.typeName;\n    }\n    if (!forRename) {\n      if (node.kind === 103 && isNewExpression(parent2) || node.kind === 114 && isVoidExpression(parent2) || node.kind === 112 && isTypeOfExpression(parent2) || node.kind === 133 && isAwaitExpression(parent2) || node.kind === 125 && isYieldExpression(parent2) || node.kind === 89 && isDeleteExpression(parent2)) {\n        if (parent2.expression) {\n          return skipOuterExpressions(parent2.expression);\n        }\n      }\n      if ((node.kind === 101 || node.kind === 102) && isBinaryExpression(parent2) && parent2.operatorToken === node) {\n        return skipOuterExpressions(parent2.right);\n      }\n      if (node.kind === 128 && isAsExpression(parent2) && isTypeReferenceNode(parent2.type)) {\n        return parent2.type.typeName;\n      }\n      if (node.kind === 101 && isForInStatement(parent2) || node.kind === 162 && isForOfStatement(parent2)) {\n        return skipOuterExpressions(parent2.expression);\n      }\n    }\n    return node;\n  }\n  function getAdjustedReferenceLocation(node) {\n    return getAdjustedLocation(node, false);\n  }\n  function getAdjustedRenameLocation(node) {\n    return getAdjustedLocation(node, true);\n  }\n  function getTouchingPropertyName(sourceFile, position) {\n    return getTouchingToken(sourceFile, position, (n) => isPropertyNameLiteral(n) || isKeyword(n.kind) || isPrivateIdentifier(n));\n  }\n  function getTouchingToken(sourceFile, position, includePrecedingTokenAtEndPosition) {\n    return getTokenAtPositionWorker(sourceFile, position, false, includePrecedingTokenAtEndPosition, false);\n  }\n  function getTokenAtPosition(sourceFile, position) {\n    return getTokenAtPositionWorker(sourceFile, position, true, void 0, false);\n  }\n  function getTokenAtPositionWorker(sourceFile, position, allowPositionInLeadingTrivia, includePrecedingTokenAtEndPosition, includeEndPosition) {\n    let current = sourceFile;\n    let foundToken;\n    outer:\n      while (true) {\n        const children = current.getChildren(sourceFile);\n        const i = binarySearchKey(children, position, (_, i2) => i2, (middle, _) => {\n          const end = children[middle].getEnd();\n          if (end < position) {\n            return -1;\n          }\n          const start = allowPositionInLeadingTrivia ? children[middle].getFullStart() : children[middle].getStart(sourceFile, true);\n          if (start > position) {\n            return 1;\n          }\n          if (nodeContainsPosition(children[middle], start, end)) {\n            if (children[middle - 1]) {\n              if (nodeContainsPosition(children[middle - 1])) {\n                return 1;\n              }\n            }\n            return 0;\n          }\n          if (includePrecedingTokenAtEndPosition && start === position && children[middle - 1] && children[middle - 1].getEnd() === position && nodeContainsPosition(children[middle - 1])) {\n            return 1;\n          }\n          return -1;\n        });\n        if (foundToken) {\n          return foundToken;\n        }\n        if (i >= 0 && children[i]) {\n          current = children[i];\n          continue outer;\n        }\n        return current;\n      }\n    function nodeContainsPosition(node, start, end) {\n      end != null ? end : end = node.getEnd();\n      if (end < position) {\n        return false;\n      }\n      start != null ? start : start = allowPositionInLeadingTrivia ? node.getFullStart() : node.getStart(sourceFile, true);\n      if (start > position) {\n        return false;\n      }\n      if (position < end || position === end && (node.kind === 1 || includeEndPosition)) {\n        return true;\n      } else if (includePrecedingTokenAtEndPosition && end === position) {\n        const previousToken = findPrecedingToken(position, sourceFile, node);\n        if (previousToken && includePrecedingTokenAtEndPosition(previousToken)) {\n          foundToken = previousToken;\n          return true;\n        }\n      }\n      return false;\n    }\n  }\n  function findFirstNonJsxWhitespaceToken(sourceFile, position) {\n    let tokenAtPosition = getTokenAtPosition(sourceFile, position);\n    while (isWhiteSpaceOnlyJsxText(tokenAtPosition)) {\n      const nextToken = findNextToken(tokenAtPosition, tokenAtPosition.parent, sourceFile);\n      if (!nextToken)\n        return;\n      tokenAtPosition = nextToken;\n    }\n    return tokenAtPosition;\n  }\n  function findTokenOnLeftOfPosition(file, position) {\n    const tokenAtPosition = getTokenAtPosition(file, position);\n    if (isToken(tokenAtPosition) && position > tokenAtPosition.getStart(file) && position < tokenAtPosition.getEnd()) {\n      return tokenAtPosition;\n    }\n    return findPrecedingToken(position, file);\n  }\n  function findNextToken(previousToken, parent2, sourceFile) {\n    return find2(parent2);\n    function find2(n) {\n      if (isToken(n) && n.pos === previousToken.end) {\n        return n;\n      }\n      return firstDefined(n.getChildren(sourceFile), (child) => {\n        const shouldDiveInChildNode = child.pos <= previousToken.pos && child.end > previousToken.end || child.pos === previousToken.end;\n        return shouldDiveInChildNode && nodeHasTokens(child, sourceFile) ? find2(child) : void 0;\n      });\n    }\n  }\n  function findPrecedingToken(position, sourceFile, startNode2, excludeJsdoc) {\n    const result = find2(startNode2 || sourceFile);\n    Debug.assert(!(result && isWhiteSpaceOnlyJsxText(result)));\n    return result;\n    function find2(n) {\n      if (isNonWhitespaceToken(n) && n.kind !== 1) {\n        return n;\n      }\n      const children = n.getChildren(sourceFile);\n      const i = binarySearchKey(children, position, (_, i2) => i2, (middle, _) => {\n        if (position < children[middle].end) {\n          if (!children[middle - 1] || position >= children[middle - 1].end) {\n            return 0;\n          }\n          return 1;\n        }\n        return -1;\n      });\n      if (i >= 0 && children[i]) {\n        const child = children[i];\n        if (position < child.end) {\n          const start = child.getStart(sourceFile, !excludeJsdoc);\n          const lookInPreviousChild = start >= position || !nodeHasTokens(child, sourceFile) || isWhiteSpaceOnlyJsxText(child);\n          if (lookInPreviousChild) {\n            const candidate2 = findRightmostChildNodeWithTokens(children, i, sourceFile, n.kind);\n            return candidate2 && findRightmostToken(candidate2, sourceFile);\n          } else {\n            return find2(child);\n          }\n        }\n      }\n      Debug.assert(startNode2 !== void 0 || n.kind === 308 || n.kind === 1 || isJSDocCommentContainingNode(n));\n      const candidate = findRightmostChildNodeWithTokens(children, children.length, sourceFile, n.kind);\n      return candidate && findRightmostToken(candidate, sourceFile);\n    }\n  }\n  function isNonWhitespaceToken(n) {\n    return isToken(n) && !isWhiteSpaceOnlyJsxText(n);\n  }\n  function findRightmostToken(n, sourceFile) {\n    if (isNonWhitespaceToken(n)) {\n      return n;\n    }\n    const children = n.getChildren(sourceFile);\n    if (children.length === 0) {\n      return n;\n    }\n    const candidate = findRightmostChildNodeWithTokens(children, children.length, sourceFile, n.kind);\n    return candidate && findRightmostToken(candidate, sourceFile);\n  }\n  function findRightmostChildNodeWithTokens(children, exclusiveStartPosition, sourceFile, parentKind) {\n    for (let i = exclusiveStartPosition - 1; i >= 0; i--) {\n      const child = children[i];\n      if (isWhiteSpaceOnlyJsxText(child)) {\n        if (i === 0 && (parentKind === 11 || parentKind === 282)) {\n          Debug.fail(\"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`\");\n        }\n      } else if (nodeHasTokens(children[i], sourceFile)) {\n        return children[i];\n      }\n    }\n  }\n  function isInString(sourceFile, position, previousToken = findPrecedingToken(position, sourceFile)) {\n    if (previousToken && isStringTextContainingNode(previousToken)) {\n      const start = previousToken.getStart(sourceFile);\n      const end = previousToken.getEnd();\n      if (start < position && position < end) {\n        return true;\n      }\n      if (position === end) {\n        return !!previousToken.isUnterminated;\n      }\n    }\n    return false;\n  }\n  function isInsideJsxElementOrAttribute(sourceFile, position) {\n    const token = getTokenAtPosition(sourceFile, position);\n    if (!token) {\n      return false;\n    }\n    if (token.kind === 11) {\n      return true;\n    }\n    if (token.kind === 29 && token.parent.kind === 11) {\n      return true;\n    }\n    if (token.kind === 29 && token.parent.kind === 291) {\n      return true;\n    }\n    if (token && token.kind === 19 && token.parent.kind === 291) {\n      return true;\n    }\n    if (token.kind === 29 && token.parent.kind === 284) {\n      return true;\n    }\n    return false;\n  }\n  function isWhiteSpaceOnlyJsxText(node) {\n    return isJsxText(node) && node.containsOnlyTriviaWhiteSpaces;\n  }\n  function isInTemplateString(sourceFile, position) {\n    const token = getTokenAtPosition(sourceFile, position);\n    return isTemplateLiteralKind(token.kind) && position > token.getStart(sourceFile);\n  }\n  function isInJSXText(sourceFile, position) {\n    const token = getTokenAtPosition(sourceFile, position);\n    if (isJsxText(token)) {\n      return true;\n    }\n    if (token.kind === 18 && isJsxExpression(token.parent) && isJsxElement(token.parent.parent)) {\n      return true;\n    }\n    if (token.kind === 29 && isJsxOpeningLikeElement(token.parent) && isJsxElement(token.parent.parent)) {\n      return true;\n    }\n    return false;\n  }\n  function isInsideJsxElement(sourceFile, position) {\n    function isInsideJsxElementTraversal(node) {\n      while (node) {\n        if (node.kind >= 282 && node.kind <= 291 || node.kind === 11 || node.kind === 29 || node.kind === 31 || node.kind === 79 || node.kind === 19 || node.kind === 18 || node.kind === 43) {\n          node = node.parent;\n        } else if (node.kind === 281) {\n          if (position > node.getStart(sourceFile))\n            return true;\n          node = node.parent;\n        } else {\n          return false;\n        }\n      }\n      return false;\n    }\n    return isInsideJsxElementTraversal(getTokenAtPosition(sourceFile, position));\n  }\n  function findPrecedingMatchingToken(token, matchingTokenKind, sourceFile) {\n    const closeTokenText = tokenToString(token.kind);\n    const matchingTokenText = tokenToString(matchingTokenKind);\n    const tokenFullStart = token.getFullStart();\n    const bestGuessIndex = sourceFile.text.lastIndexOf(matchingTokenText, tokenFullStart);\n    if (bestGuessIndex === -1) {\n      return void 0;\n    }\n    if (sourceFile.text.lastIndexOf(closeTokenText, tokenFullStart - 1) < bestGuessIndex) {\n      const nodeAtGuess = findPrecedingToken(bestGuessIndex + 1, sourceFile);\n      if (nodeAtGuess && nodeAtGuess.kind === matchingTokenKind) {\n        return nodeAtGuess;\n      }\n    }\n    const tokenKind = token.kind;\n    let remainingMatchingTokens = 0;\n    while (true) {\n      const preceding = findPrecedingToken(token.getFullStart(), sourceFile);\n      if (!preceding) {\n        return void 0;\n      }\n      token = preceding;\n      if (token.kind === matchingTokenKind) {\n        if (remainingMatchingTokens === 0) {\n          return token;\n        }\n        remainingMatchingTokens--;\n      } else if (token.kind === tokenKind) {\n        remainingMatchingTokens++;\n      }\n    }\n  }\n  function removeOptionality(type, isOptionalExpression, isOptionalChain2) {\n    return isOptionalExpression ? type.getNonNullableType() : isOptionalChain2 ? type.getNonOptionalType() : type;\n  }\n  function isPossiblyTypeArgumentPosition(token, sourceFile, checker) {\n    const info = getPossibleTypeArgumentsInfo(token, sourceFile);\n    return info !== void 0 && (isPartOfTypeNode(info.called) || getPossibleGenericSignatures(info.called, info.nTypeArguments, checker).length !== 0 || isPossiblyTypeArgumentPosition(info.called, sourceFile, checker));\n  }\n  function getPossibleGenericSignatures(called, typeArgumentCount, checker) {\n    let type = checker.getTypeAtLocation(called);\n    if (isOptionalChain(called.parent)) {\n      type = removeOptionality(type, isOptionalChainRoot(called.parent), true);\n    }\n    const signatures = isNewExpression(called.parent) ? type.getConstructSignatures() : type.getCallSignatures();\n    return signatures.filter((candidate) => !!candidate.typeParameters && candidate.typeParameters.length >= typeArgumentCount);\n  }\n  function getPossibleTypeArgumentsInfo(tokenIn, sourceFile) {\n    if (sourceFile.text.lastIndexOf(\"<\", tokenIn ? tokenIn.pos : sourceFile.text.length) === -1) {\n      return void 0;\n    }\n    let token = tokenIn;\n    let remainingLessThanTokens = 0;\n    let nTypeArguments = 0;\n    while (token) {\n      switch (token.kind) {\n        case 29:\n          token = findPrecedingToken(token.getFullStart(), sourceFile);\n          if (token && token.kind === 28) {\n            token = findPrecedingToken(token.getFullStart(), sourceFile);\n          }\n          if (!token || !isIdentifier(token))\n            return void 0;\n          if (!remainingLessThanTokens) {\n            return isDeclarationName(token) ? void 0 : { called: token, nTypeArguments };\n          }\n          remainingLessThanTokens--;\n          break;\n        case 49:\n          remainingLessThanTokens = 3;\n          break;\n        case 48:\n          remainingLessThanTokens = 2;\n          break;\n        case 31:\n          remainingLessThanTokens++;\n          break;\n        case 19:\n          token = findPrecedingMatchingToken(token, 18, sourceFile);\n          if (!token)\n            return void 0;\n          break;\n        case 21:\n          token = findPrecedingMatchingToken(token, 20, sourceFile);\n          if (!token)\n            return void 0;\n          break;\n        case 23:\n          token = findPrecedingMatchingToken(token, 22, sourceFile);\n          if (!token)\n            return void 0;\n          break;\n        case 27:\n          nTypeArguments++;\n          break;\n        case 38:\n        case 79:\n        case 10:\n        case 8:\n        case 9:\n        case 110:\n        case 95:\n        case 112:\n        case 94:\n        case 141:\n        case 24:\n        case 51:\n        case 57:\n        case 58:\n          break;\n        default:\n          if (isTypeNode(token)) {\n            break;\n          }\n          return void 0;\n      }\n      token = findPrecedingToken(token.getFullStart(), sourceFile);\n    }\n    return void 0;\n  }\n  function isInComment(sourceFile, position, tokenAtPosition) {\n    return ts_formatting_exports.getRangeOfEnclosingComment(sourceFile, position, void 0, tokenAtPosition);\n  }\n  function hasDocComment(sourceFile, position) {\n    const token = getTokenAtPosition(sourceFile, position);\n    return !!findAncestor(token, isJSDoc);\n  }\n  function nodeHasTokens(n, sourceFile) {\n    return n.kind === 1 ? !!n.jsDoc : n.getWidth(sourceFile) !== 0;\n  }\n  function getNodeModifiers(node, excludeFlags = 0) {\n    const result = [];\n    const flags = isDeclaration(node) ? getCombinedNodeFlagsAlwaysIncludeJSDoc(node) & ~excludeFlags : 0;\n    if (flags & 8)\n      result.push(\"private\");\n    if (flags & 16)\n      result.push(\"protected\");\n    if (flags & 4)\n      result.push(\"public\");\n    if (flags & 32 || isClassStaticBlockDeclaration(node))\n      result.push(\"static\");\n    if (flags & 256)\n      result.push(\"abstract\");\n    if (flags & 1)\n      result.push(\"export\");\n    if (flags & 8192)\n      result.push(\"deprecated\");\n    if (node.flags & 16777216)\n      result.push(\"declare\");\n    if (node.kind === 274)\n      result.push(\"export\");\n    return result.length > 0 ? result.join(\",\") : \"\";\n  }\n  function getTypeArgumentOrTypeParameterList(node) {\n    if (node.kind === 180 || node.kind === 210) {\n      return node.typeArguments;\n    }\n    if (isFunctionLike(node) || node.kind === 260 || node.kind === 261) {\n      return node.typeParameters;\n    }\n    return void 0;\n  }\n  function isComment(kind) {\n    return kind === 2 || kind === 3;\n  }\n  function isStringOrRegularExpressionOrTemplateLiteral(kind) {\n    if (kind === 10 || kind === 13 || isTemplateLiteralKind(kind)) {\n      return true;\n    }\n    return false;\n  }\n  function isStringAndEmptyAnonymousObjectIntersection(type) {\n    if (!type.isIntersection()) {\n      return false;\n    }\n    const { types, checker } = type;\n    return types.length === 2 && types[0].flags & 4 && checker.isEmptyAnonymousObjectType(types[1]);\n  }\n  function isPunctuation(kind) {\n    return 18 <= kind && kind <= 78;\n  }\n  function isInsideTemplateLiteral(node, position, sourceFile) {\n    return isTemplateLiteralKind(node.kind) && (node.getStart(sourceFile) < position && position < node.end) || !!node.isUnterminated && position === node.end;\n  }\n  function isAccessibilityModifier(kind) {\n    switch (kind) {\n      case 123:\n      case 121:\n      case 122:\n        return true;\n    }\n    return false;\n  }\n  function cloneCompilerOptions(options) {\n    const result = clone(options);\n    setConfigFileInOptions(result, options && options.configFile);\n    return result;\n  }\n  function isArrayLiteralOrObjectLiteralDestructuringPattern(node) {\n    if (node.kind === 206 || node.kind === 207) {\n      if (node.parent.kind === 223 && node.parent.left === node && node.parent.operatorToken.kind === 63) {\n        return true;\n      }\n      if (node.parent.kind === 247 && node.parent.initializer === node) {\n        return true;\n      }\n      if (isArrayLiteralOrObjectLiteralDestructuringPattern(node.parent.kind === 299 ? node.parent.parent : node.parent)) {\n        return true;\n      }\n    }\n    return false;\n  }\n  function isInReferenceComment(sourceFile, position) {\n    return isInReferenceCommentWorker(sourceFile, position, true);\n  }\n  function isInNonReferenceComment(sourceFile, position) {\n    return isInReferenceCommentWorker(sourceFile, position, false);\n  }\n  function isInReferenceCommentWorker(sourceFile, position, shouldBeReference) {\n    const range = isInComment(sourceFile, position, void 0);\n    return !!range && shouldBeReference === tripleSlashDirectivePrefixRegex.test(sourceFile.text.substring(range.pos, range.end));\n  }\n  function getReplacementSpanForContextToken(contextToken) {\n    if (!contextToken)\n      return void 0;\n    switch (contextToken.kind) {\n      case 10:\n      case 14:\n        return createTextSpanFromStringLiteralLikeContent(contextToken);\n      default:\n        return createTextSpanFromNode(contextToken);\n    }\n  }\n  function createTextSpanFromNode(node, sourceFile, endNode2) {\n    return createTextSpanFromBounds(node.getStart(sourceFile), (endNode2 || node).getEnd());\n  }\n  function createTextSpanFromStringLiteralLikeContent(node) {\n    if (node.isUnterminated)\n      return void 0;\n    return createTextSpanFromBounds(node.getStart() + 1, node.getEnd() - 1);\n  }\n  function createTextRangeFromNode(node, sourceFile) {\n    return createRange(node.getStart(sourceFile), node.end);\n  }\n  function createTextSpanFromRange(range) {\n    return createTextSpanFromBounds(range.pos, range.end);\n  }\n  function createTextRangeFromSpan(span) {\n    return createRange(span.start, span.start + span.length);\n  }\n  function createTextChangeFromStartLength(start, length2, newText) {\n    return createTextChange(createTextSpan(start, length2), newText);\n  }\n  function createTextChange(span, newText) {\n    return { span, newText };\n  }\n  function isTypeKeyword(kind) {\n    return contains(typeKeywords, kind);\n  }\n  function isTypeKeywordToken(node) {\n    return node.kind === 154;\n  }\n  function isTypeKeywordTokenOrIdentifier(node) {\n    return isTypeKeywordToken(node) || isIdentifier(node) && node.text === \"type\";\n  }\n  function isExternalModuleSymbol(moduleSymbol) {\n    return !!(moduleSymbol.flags & 1536) && moduleSymbol.name.charCodeAt(0) === 34;\n  }\n  function nodeSeenTracker() {\n    const seen = [];\n    return (node) => {\n      const id = getNodeId(node);\n      return !seen[id] && (seen[id] = true);\n    };\n  }\n  function getSnapshotText(snap) {\n    return snap.getText(0, snap.getLength());\n  }\n  function repeatString(str, count) {\n    let result = \"\";\n    for (let i = 0; i < count; i++) {\n      result += str;\n    }\n    return result;\n  }\n  function skipConstraint(type) {\n    return type.isTypeParameter() ? type.getConstraint() || type : type;\n  }\n  function getNameFromPropertyName(name) {\n    return name.kind === 164 ? isStringOrNumericLiteralLike(name.expression) ? name.expression.text : void 0 : isPrivateIdentifier(name) ? idText(name) : getTextOfIdentifierOrLiteral(name);\n  }\n  function programContainsModules(program) {\n    return program.getSourceFiles().some((s) => !s.isDeclarationFile && !program.isSourceFileFromExternalLibrary(s) && !!(s.externalModuleIndicator || s.commonJsModuleIndicator));\n  }\n  function programContainsEsModules(program) {\n    return program.getSourceFiles().some((s) => !s.isDeclarationFile && !program.isSourceFileFromExternalLibrary(s) && !!s.externalModuleIndicator);\n  }\n  function compilerOptionsIndicateEsModules(compilerOptions) {\n    return !!compilerOptions.module || getEmitScriptTarget(compilerOptions) >= 2 || !!compilerOptions.noEmit;\n  }\n  function createModuleSpecifierResolutionHost(program, host) {\n    return {\n      fileExists: (fileName) => program.fileExists(fileName),\n      getCurrentDirectory: () => host.getCurrentDirectory(),\n      readFile: maybeBind(host, host.readFile),\n      useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames),\n      getSymlinkCache: maybeBind(host, host.getSymlinkCache) || program.getSymlinkCache,\n      getModuleSpecifierCache: maybeBind(host, host.getModuleSpecifierCache),\n      getPackageJsonInfoCache: () => {\n        var _a2;\n        return (_a2 = program.getModuleResolutionCache()) == null ? void 0 : _a2.getPackageJsonInfoCache();\n      },\n      getGlobalTypingsCacheLocation: maybeBind(host, host.getGlobalTypingsCacheLocation),\n      redirectTargetsMap: program.redirectTargetsMap,\n      getProjectReferenceRedirect: (fileName) => program.getProjectReferenceRedirect(fileName),\n      isSourceOfProjectReferenceRedirect: (fileName) => program.isSourceOfProjectReferenceRedirect(fileName),\n      getNearestAncestorDirectoryWithPackageJson: maybeBind(host, host.getNearestAncestorDirectoryWithPackageJson),\n      getFileIncludeReasons: () => program.getFileIncludeReasons()\n    };\n  }\n  function getModuleSpecifierResolverHost(program, host) {\n    return {\n      ...createModuleSpecifierResolutionHost(program, host),\n      getCommonSourceDirectory: () => program.getCommonSourceDirectory()\n    };\n  }\n  function moduleResolutionUsesNodeModules(moduleResolution) {\n    return moduleResolution === 2 || moduleResolution >= 3 && moduleResolution <= 99 || moduleResolution === 100;\n  }\n  function makeImportIfNecessary(defaultImport, namedImports, moduleSpecifier, quotePreference) {\n    return defaultImport || namedImports && namedImports.length ? makeImport(defaultImport, namedImports, moduleSpecifier, quotePreference) : void 0;\n  }\n  function makeImport(defaultImport, namedImports, moduleSpecifier, quotePreference, isTypeOnly) {\n    return factory.createImportDeclaration(void 0, defaultImport || namedImports ? factory.createImportClause(!!isTypeOnly, defaultImport, namedImports && namedImports.length ? factory.createNamedImports(namedImports) : void 0) : void 0, typeof moduleSpecifier === \"string\" ? makeStringLiteral(moduleSpecifier, quotePreference) : moduleSpecifier, void 0);\n  }\n  function makeStringLiteral(text, quotePreference) {\n    return factory.createStringLiteral(text, quotePreference === 0);\n  }\n  function quotePreferenceFromString(str, sourceFile) {\n    return isStringDoubleQuoted(str, sourceFile) ? 1 : 0;\n  }\n  function getQuotePreference(sourceFile, preferences) {\n    if (preferences.quotePreference && preferences.quotePreference !== \"auto\") {\n      return preferences.quotePreference === \"single\" ? 0 : 1;\n    } else {\n      const firstModuleSpecifier = sourceFile.imports && find(sourceFile.imports, (n) => isStringLiteral(n) && !nodeIsSynthesized(n.parent));\n      return firstModuleSpecifier ? quotePreferenceFromString(firstModuleSpecifier, sourceFile) : 1;\n    }\n  }\n  function getQuoteFromPreference(qp) {\n    switch (qp) {\n      case 0:\n        return \"'\";\n      case 1:\n        return '\"';\n      default:\n        return Debug.assertNever(qp);\n    }\n  }\n  function symbolNameNoDefault(symbol) {\n    const escaped = symbolEscapedNameNoDefault(symbol);\n    return escaped === void 0 ? void 0 : unescapeLeadingUnderscores(escaped);\n  }\n  function symbolEscapedNameNoDefault(symbol) {\n    if (symbol.escapedName !== \"default\") {\n      return symbol.escapedName;\n    }\n    return firstDefined(symbol.declarations, (decl) => {\n      const name = getNameOfDeclaration(decl);\n      return name && name.kind === 79 ? name.escapedText : void 0;\n    });\n  }\n  function isModuleSpecifierLike(node) {\n    return isStringLiteralLike(node) && (isExternalModuleReference(node.parent) || isImportDeclaration(node.parent) || isRequireCall(node.parent, false) && node.parent.arguments[0] === node || isImportCall(node.parent) && node.parent.arguments[0] === node);\n  }\n  function isObjectBindingElementWithoutPropertyName(bindingElement) {\n    return isBindingElement(bindingElement) && isObjectBindingPattern(bindingElement.parent) && isIdentifier(bindingElement.name) && !bindingElement.propertyName;\n  }\n  function getPropertySymbolFromBindingElement(checker, bindingElement) {\n    const typeOfPattern = checker.getTypeAtLocation(bindingElement.parent);\n    return typeOfPattern && checker.getPropertyOfType(typeOfPattern, bindingElement.name.text);\n  }\n  function getParentNodeInSpan(node, file, span) {\n    if (!node)\n      return void 0;\n    while (node.parent) {\n      if (isSourceFile(node.parent) || !spanContainsNode(span, node.parent, file)) {\n        return node;\n      }\n      node = node.parent;\n    }\n  }\n  function spanContainsNode(span, node, file) {\n    return textSpanContainsPosition(span, node.getStart(file)) && node.getEnd() <= textSpanEnd(span);\n  }\n  function findModifier(node, kind) {\n    return canHaveModifiers(node) ? find(node.modifiers, (m) => m.kind === kind) : void 0;\n  }\n  function insertImports(changes, sourceFile, imports, blankLineBetween, preferences) {\n    const decl = isArray(imports) ? imports[0] : imports;\n    const importKindPredicate = decl.kind === 240 ? isRequireVariableStatement : isAnyImportSyntax;\n    const existingImportStatements = filter(sourceFile.statements, importKindPredicate);\n    let sortKind = isArray(imports) ? ts_OrganizeImports_exports.detectImportDeclarationSorting(imports, preferences) : 3;\n    const comparer = ts_OrganizeImports_exports.getOrganizeImportsComparer(preferences, sortKind === 2);\n    const sortedNewImports = isArray(imports) ? stableSort(imports, (a, b) => ts_OrganizeImports_exports.compareImportsOrRequireStatements(a, b, comparer)) : [imports];\n    if (!existingImportStatements.length) {\n      changes.insertNodesAtTopOfFile(sourceFile, sortedNewImports, blankLineBetween);\n    } else if (existingImportStatements && (sortKind = ts_OrganizeImports_exports.detectImportDeclarationSorting(existingImportStatements, preferences))) {\n      const comparer2 = ts_OrganizeImports_exports.getOrganizeImportsComparer(preferences, sortKind === 2);\n      for (const newImport of sortedNewImports) {\n        const insertionIndex = ts_OrganizeImports_exports.getImportDeclarationInsertionIndex(existingImportStatements, newImport, comparer2);\n        if (insertionIndex === 0) {\n          const options = existingImportStatements[0] === sourceFile.statements[0] ? { leadingTriviaOption: ts_textChanges_exports.LeadingTriviaOption.Exclude } : {};\n          changes.insertNodeBefore(sourceFile, existingImportStatements[0], newImport, false, options);\n        } else {\n          const prevImport = existingImportStatements[insertionIndex - 1];\n          changes.insertNodeAfter(sourceFile, prevImport, newImport);\n        }\n      }\n    } else {\n      const lastExistingImport = lastOrUndefined(existingImportStatements);\n      if (lastExistingImport) {\n        changes.insertNodesAfter(sourceFile, lastExistingImport, sortedNewImports);\n      } else {\n        changes.insertNodesAtTopOfFile(sourceFile, sortedNewImports, blankLineBetween);\n      }\n    }\n  }\n  function getTypeKeywordOfTypeOnlyImport(importClause, sourceFile) {\n    Debug.assert(importClause.isTypeOnly);\n    return cast(importClause.getChildAt(0, sourceFile), isTypeKeywordToken);\n  }\n  function textSpansEqual(a, b) {\n    return !!a && !!b && a.start === b.start && a.length === b.length;\n  }\n  function documentSpansEqual(a, b) {\n    return a.fileName === b.fileName && textSpansEqual(a.textSpan, b.textSpan);\n  }\n  function forEachUnique(array, callback) {\n    if (array) {\n      for (let i = 0; i < array.length; i++) {\n        if (array.indexOf(array[i]) === i) {\n          const result = callback(array[i], i);\n          if (result) {\n            return result;\n          }\n        }\n      }\n    }\n    return void 0;\n  }\n  function isTextWhiteSpaceLike(text, startPos, endPos) {\n    for (let i = startPos; i < endPos; i++) {\n      if (!isWhiteSpaceLike(text.charCodeAt(i))) {\n        return false;\n      }\n    }\n    return true;\n  }\n  function getMappedLocation(location, sourceMapper, fileExists) {\n    const mapsTo = sourceMapper.tryGetSourcePosition(location);\n    return mapsTo && (!fileExists || fileExists(normalizePath(mapsTo.fileName)) ? mapsTo : void 0);\n  }\n  function getMappedDocumentSpan(documentSpan, sourceMapper, fileExists) {\n    const { fileName, textSpan } = documentSpan;\n    const newPosition = getMappedLocation({ fileName, pos: textSpan.start }, sourceMapper, fileExists);\n    if (!newPosition)\n      return void 0;\n    const newEndPosition = getMappedLocation({ fileName, pos: textSpan.start + textSpan.length }, sourceMapper, fileExists);\n    const newLength = newEndPosition ? newEndPosition.pos - newPosition.pos : textSpan.length;\n    return {\n      fileName: newPosition.fileName,\n      textSpan: {\n        start: newPosition.pos,\n        length: newLength\n      },\n      originalFileName: documentSpan.fileName,\n      originalTextSpan: documentSpan.textSpan,\n      contextSpan: getMappedContextSpan(documentSpan, sourceMapper, fileExists),\n      originalContextSpan: documentSpan.contextSpan\n    };\n  }\n  function getMappedContextSpan(documentSpan, sourceMapper, fileExists) {\n    const contextSpanStart = documentSpan.contextSpan && getMappedLocation({ fileName: documentSpan.fileName, pos: documentSpan.contextSpan.start }, sourceMapper, fileExists);\n    const contextSpanEnd = documentSpan.contextSpan && getMappedLocation({ fileName: documentSpan.fileName, pos: documentSpan.contextSpan.start + documentSpan.contextSpan.length }, sourceMapper, fileExists);\n    return contextSpanStart && contextSpanEnd ? { start: contextSpanStart.pos, length: contextSpanEnd.pos - contextSpanStart.pos } : void 0;\n  }\n  function isFirstDeclarationOfSymbolParameter(symbol) {\n    const declaration = symbol.declarations ? firstOrUndefined(symbol.declarations) : void 0;\n    return !!findAncestor(declaration, (n) => isParameter(n) ? true : isBindingElement(n) || isObjectBindingPattern(n) || isArrayBindingPattern(n) ? false : \"quit\");\n  }\n  function getDisplayPartWriter() {\n    const absoluteMaximumLength = defaultMaximumTruncationLength * 10;\n    let displayParts;\n    let lineStart;\n    let indent2;\n    let length2;\n    resetWriter();\n    const unknownWrite = (text) => writeKind(text, 17);\n    return {\n      displayParts: () => {\n        const finalText = displayParts.length && displayParts[displayParts.length - 1].text;\n        if (length2 > absoluteMaximumLength && finalText && finalText !== \"...\") {\n          if (!isWhiteSpaceLike(finalText.charCodeAt(finalText.length - 1))) {\n            displayParts.push(displayPart(\" \", 16));\n          }\n          displayParts.push(displayPart(\"...\", 15));\n        }\n        return displayParts;\n      },\n      writeKeyword: (text) => writeKind(text, 5),\n      writeOperator: (text) => writeKind(text, 12),\n      writePunctuation: (text) => writeKind(text, 15),\n      writeTrailingSemicolon: (text) => writeKind(text, 15),\n      writeSpace: (text) => writeKind(text, 16),\n      writeStringLiteral: (text) => writeKind(text, 8),\n      writeParameter: (text) => writeKind(text, 13),\n      writeProperty: (text) => writeKind(text, 14),\n      writeLiteral: (text) => writeKind(text, 8),\n      writeSymbol,\n      writeLine,\n      write: unknownWrite,\n      writeComment: unknownWrite,\n      getText: () => \"\",\n      getTextPos: () => 0,\n      getColumn: () => 0,\n      getLine: () => 0,\n      isAtStartOfLine: () => false,\n      hasTrailingWhitespace: () => false,\n      hasTrailingComment: () => false,\n      rawWrite: notImplemented,\n      getIndent: () => indent2,\n      increaseIndent: () => {\n        indent2++;\n      },\n      decreaseIndent: () => {\n        indent2--;\n      },\n      clear: resetWriter\n    };\n    function writeIndent() {\n      if (length2 > absoluteMaximumLength)\n        return;\n      if (lineStart) {\n        const indentString = getIndentString(indent2);\n        if (indentString) {\n          length2 += indentString.length;\n          displayParts.push(displayPart(indentString, 16));\n        }\n        lineStart = false;\n      }\n    }\n    function writeKind(text, kind) {\n      if (length2 > absoluteMaximumLength)\n        return;\n      writeIndent();\n      length2 += text.length;\n      displayParts.push(displayPart(text, kind));\n    }\n    function writeSymbol(text, symbol) {\n      if (length2 > absoluteMaximumLength)\n        return;\n      writeIndent();\n      length2 += text.length;\n      displayParts.push(symbolPart(text, symbol));\n    }\n    function writeLine() {\n      if (length2 > absoluteMaximumLength)\n        return;\n      length2 += 1;\n      displayParts.push(lineBreakPart());\n      lineStart = true;\n    }\n    function resetWriter() {\n      displayParts = [];\n      lineStart = true;\n      indent2 = 0;\n      length2 = 0;\n    }\n  }\n  function symbolPart(text, symbol) {\n    return displayPart(text, displayPartKind(symbol));\n    function displayPartKind(symbol2) {\n      const flags = symbol2.flags;\n      if (flags & 3) {\n        return isFirstDeclarationOfSymbolParameter(symbol2) ? 13 : 9;\n      }\n      if (flags & 4)\n        return 14;\n      if (flags & 32768)\n        return 14;\n      if (flags & 65536)\n        return 14;\n      if (flags & 8)\n        return 19;\n      if (flags & 16)\n        return 20;\n      if (flags & 32)\n        return 1;\n      if (flags & 64)\n        return 4;\n      if (flags & 384)\n        return 2;\n      if (flags & 1536)\n        return 11;\n      if (flags & 8192)\n        return 10;\n      if (flags & 262144)\n        return 18;\n      if (flags & 524288)\n        return 0;\n      if (flags & 2097152)\n        return 0;\n      return 17;\n    }\n  }\n  function displayPart(text, kind) {\n    return { text, kind: SymbolDisplayPartKind[kind] };\n  }\n  function spacePart() {\n    return displayPart(\" \", 16);\n  }\n  function keywordPart(kind) {\n    return displayPart(tokenToString(kind), 5);\n  }\n  function punctuationPart(kind) {\n    return displayPart(tokenToString(kind), 15);\n  }\n  function operatorPart(kind) {\n    return displayPart(tokenToString(kind), 12);\n  }\n  function parameterNamePart(text) {\n    return displayPart(text, 13);\n  }\n  function propertyNamePart(text) {\n    return displayPart(text, 14);\n  }\n  function textOrKeywordPart(text) {\n    const kind = stringToToken(text);\n    return kind === void 0 ? textPart(text) : keywordPart(kind);\n  }\n  function textPart(text) {\n    return displayPart(text, 17);\n  }\n  function typeAliasNamePart(text) {\n    return displayPart(text, 0);\n  }\n  function typeParameterNamePart(text) {\n    return displayPart(text, 18);\n  }\n  function linkTextPart(text) {\n    return displayPart(text, 24);\n  }\n  function linkNamePart(text, target) {\n    return {\n      text,\n      kind: SymbolDisplayPartKind[23],\n      target: {\n        fileName: getSourceFileOfNode(target).fileName,\n        textSpan: createTextSpanFromNode(target)\n      }\n    };\n  }\n  function linkPart(text) {\n    return displayPart(text, 22);\n  }\n  function buildLinkParts(link, checker) {\n    var _a2;\n    const prefix = isJSDocLink(link) ? \"link\" : isJSDocLinkCode(link) ? \"linkcode\" : \"linkplain\";\n    const parts = [linkPart(`{@${prefix} `)];\n    if (!link.name) {\n      if (link.text) {\n        parts.push(linkTextPart(link.text));\n      }\n    } else {\n      const symbol = checker == null ? void 0 : checker.getSymbolAtLocation(link.name);\n      const suffix = findLinkNameEnd(link.text);\n      const name = getTextOfNode(link.name) + link.text.slice(0, suffix);\n      const text = skipSeparatorFromLinkText(link.text.slice(suffix));\n      const decl = (symbol == null ? void 0 : symbol.valueDeclaration) || ((_a2 = symbol == null ? void 0 : symbol.declarations) == null ? void 0 : _a2[0]);\n      if (decl) {\n        parts.push(linkNamePart(name, decl));\n        if (text)\n          parts.push(linkTextPart(text));\n      } else {\n        parts.push(linkTextPart(name + (suffix ? \"\" : \" \") + text));\n      }\n    }\n    parts.push(linkPart(\"}\"));\n    return parts;\n  }\n  function skipSeparatorFromLinkText(text) {\n    let pos = 0;\n    if (text.charCodeAt(pos++) === 124) {\n      while (pos < text.length && text.charCodeAt(pos) === 32)\n        pos++;\n      return text.slice(pos);\n    }\n    return text;\n  }\n  function findLinkNameEnd(text) {\n    let pos = text.indexOf(\"://\");\n    if (pos === 0) {\n      while (pos < text.length && text.charCodeAt(pos) !== 124)\n        pos++;\n      return pos;\n    }\n    if (text.indexOf(\"()\") === 0)\n      return 2;\n    if (text.charAt(0) === \"<\") {\n      let brackets2 = 0;\n      let i = 0;\n      while (i < text.length) {\n        if (text[i] === \"<\")\n          brackets2++;\n        if (text[i] === \">\")\n          brackets2--;\n        i++;\n        if (!brackets2)\n          return i;\n      }\n    }\n    return 0;\n  }\n  function getNewLineOrDefaultFromHost(host, formatSettings) {\n    var _a2;\n    return (formatSettings == null ? void 0 : formatSettings.newLineCharacter) || ((_a2 = host.getNewLine) == null ? void 0 : _a2.call(host)) || lineFeed2;\n  }\n  function lineBreakPart() {\n    return displayPart(\"\\n\", 6);\n  }\n  function mapToDisplayParts(writeDisplayParts) {\n    try {\n      writeDisplayParts(displayPartWriter);\n      return displayPartWriter.displayParts();\n    } finally {\n      displayPartWriter.clear();\n    }\n  }\n  function typeToDisplayParts(typechecker, type, enclosingDeclaration, flags = 0) {\n    return mapToDisplayParts((writer) => {\n      typechecker.writeType(type, enclosingDeclaration, flags | 1024 | 16384, writer);\n    });\n  }\n  function symbolToDisplayParts(typeChecker, symbol, enclosingDeclaration, meaning, flags = 0) {\n    return mapToDisplayParts((writer) => {\n      typeChecker.writeSymbol(symbol, enclosingDeclaration, meaning, flags | 8, writer);\n    });\n  }\n  function signatureToDisplayParts(typechecker, signature, enclosingDeclaration, flags = 0) {\n    flags |= 16384 | 1024 | 32 | 8192;\n    return mapToDisplayParts((writer) => {\n      typechecker.writeSignature(signature, enclosingDeclaration, flags, void 0, writer);\n    });\n  }\n  function nodeToDisplayParts(node, enclosingDeclaration) {\n    const file = enclosingDeclaration.getSourceFile();\n    return mapToDisplayParts((writer) => {\n      const printer = createPrinterWithRemoveCommentsOmitTrailingSemicolon();\n      printer.writeNode(4, node, file, writer);\n    });\n  }\n  function isImportOrExportSpecifierName(location) {\n    return !!location.parent && isImportOrExportSpecifier(location.parent) && location.parent.propertyName === location;\n  }\n  function getScriptKind(fileName, host) {\n    return ensureScriptKind(fileName, host.getScriptKind && host.getScriptKind(fileName));\n  }\n  function getSymbolTarget(symbol, checker) {\n    let next = symbol;\n    while (isAliasSymbol(next) || isTransientSymbol(next) && next.links.target) {\n      if (isTransientSymbol(next) && next.links.target) {\n        next = next.links.target;\n      } else {\n        next = skipAlias(next, checker);\n      }\n    }\n    return next;\n  }\n  function isAliasSymbol(symbol) {\n    return (symbol.flags & 2097152) !== 0;\n  }\n  function getUniqueSymbolId(symbol, checker) {\n    return getSymbolId(skipAlias(symbol, checker));\n  }\n  function getFirstNonSpaceCharacterPosition(text, position) {\n    while (isWhiteSpaceLike(text.charCodeAt(position))) {\n      position += 1;\n    }\n    return position;\n  }\n  function getPrecedingNonSpaceCharacterPosition(text, position) {\n    while (position > -1 && isWhiteSpaceSingleLine(text.charCodeAt(position))) {\n      position -= 1;\n    }\n    return position + 1;\n  }\n  function getSynthesizedDeepClone(node, includeTrivia = true) {\n    const clone2 = node && getSynthesizedDeepCloneWorker(node);\n    if (clone2 && !includeTrivia)\n      suppressLeadingAndTrailingTrivia(clone2);\n    return clone2;\n  }\n  function getSynthesizedDeepCloneWithReplacements(node, includeTrivia, replaceNode) {\n    let clone2 = replaceNode(node);\n    if (clone2) {\n      setOriginalNode(clone2, node);\n    } else {\n      clone2 = getSynthesizedDeepCloneWorker(node, replaceNode);\n    }\n    if (clone2 && !includeTrivia)\n      suppressLeadingAndTrailingTrivia(clone2);\n    return clone2;\n  }\n  function getSynthesizedDeepCloneWorker(node, replaceNode) {\n    const nodeClone = replaceNode ? (n) => getSynthesizedDeepCloneWithReplacements(n, true, replaceNode) : getSynthesizedDeepClone;\n    const nodesClone = replaceNode ? (ns) => ns && getSynthesizedDeepClonesWithReplacements(ns, true, replaceNode) : (ns) => ns && getSynthesizedDeepClones(ns);\n    const visited = visitEachChild(node, nodeClone, nullTransformationContext, nodesClone, nodeClone);\n    if (visited === node) {\n      const clone2 = isStringLiteral(node) ? setOriginalNode(factory.createStringLiteralFromNode(node), node) : isNumericLiteral(node) ? setOriginalNode(factory.createNumericLiteral(node.text, node.numericLiteralFlags), node) : factory.cloneNode(node);\n      return setTextRange(clone2, node);\n    }\n    visited.parent = void 0;\n    return visited;\n  }\n  function getSynthesizedDeepClones(nodes, includeTrivia = true) {\n    return nodes && factory.createNodeArray(nodes.map((n) => getSynthesizedDeepClone(n, includeTrivia)), nodes.hasTrailingComma);\n  }\n  function getSynthesizedDeepClonesWithReplacements(nodes, includeTrivia, replaceNode) {\n    return factory.createNodeArray(nodes.map((n) => getSynthesizedDeepCloneWithReplacements(n, includeTrivia, replaceNode)), nodes.hasTrailingComma);\n  }\n  function suppressLeadingAndTrailingTrivia(node) {\n    suppressLeadingTrivia(node);\n    suppressTrailingTrivia(node);\n  }\n  function suppressLeadingTrivia(node) {\n    addEmitFlagsRecursively(node, 1024, getFirstChild);\n  }\n  function suppressTrailingTrivia(node) {\n    addEmitFlagsRecursively(node, 2048, getLastChild);\n  }\n  function copyComments(sourceNode, targetNode) {\n    const sourceFile = sourceNode.getSourceFile();\n    const text = sourceFile.text;\n    if (hasLeadingLineBreak(sourceNode, text)) {\n      copyLeadingComments(sourceNode, targetNode, sourceFile);\n    } else {\n      copyTrailingAsLeadingComments(sourceNode, targetNode, sourceFile);\n    }\n    copyTrailingComments(sourceNode, targetNode, sourceFile);\n  }\n  function hasLeadingLineBreak(node, text) {\n    const start = node.getFullStart();\n    const end = node.getStart();\n    for (let i = start; i < end; i++) {\n      if (text.charCodeAt(i) === 10)\n        return true;\n    }\n    return false;\n  }\n  function addEmitFlagsRecursively(node, flag, getChild) {\n    addEmitFlags(node, flag);\n    const child = getChild(node);\n    if (child)\n      addEmitFlagsRecursively(child, flag, getChild);\n  }\n  function getFirstChild(node) {\n    return node.forEachChild((child) => child);\n  }\n  function getUniqueName(baseName, sourceFile) {\n    let nameText = baseName;\n    for (let i = 1; !isFileLevelUniqueName(sourceFile, nameText); i++) {\n      nameText = `${baseName}_${i}`;\n    }\n    return nameText;\n  }\n  function getRenameLocation(edits, renameFilename, name, preferLastLocation) {\n    let delta = 0;\n    let lastPos = -1;\n    for (const { fileName, textChanges: textChanges2 } of edits) {\n      Debug.assert(fileName === renameFilename);\n      for (const change of textChanges2) {\n        const { span, newText } = change;\n        const index = indexInTextChange(newText, escapeString(name));\n        if (index !== -1) {\n          lastPos = span.start + delta + index;\n          if (!preferLastLocation) {\n            return lastPos;\n          }\n        }\n        delta += newText.length - span.length;\n      }\n    }\n    Debug.assert(preferLastLocation);\n    Debug.assert(lastPos >= 0);\n    return lastPos;\n  }\n  function copyLeadingComments(sourceNode, targetNode, sourceFile, commentKind, hasTrailingNewLine) {\n    forEachLeadingCommentRange(sourceFile.text, sourceNode.pos, getAddCommentsFunction(targetNode, sourceFile, commentKind, hasTrailingNewLine, addSyntheticLeadingComment));\n  }\n  function copyTrailingComments(sourceNode, targetNode, sourceFile, commentKind, hasTrailingNewLine) {\n    forEachTrailingCommentRange(sourceFile.text, sourceNode.end, getAddCommentsFunction(targetNode, sourceFile, commentKind, hasTrailingNewLine, addSyntheticTrailingComment));\n  }\n  function copyTrailingAsLeadingComments(sourceNode, targetNode, sourceFile, commentKind, hasTrailingNewLine) {\n    forEachTrailingCommentRange(sourceFile.text, sourceNode.pos, getAddCommentsFunction(targetNode, sourceFile, commentKind, hasTrailingNewLine, addSyntheticLeadingComment));\n  }\n  function getAddCommentsFunction(targetNode, sourceFile, commentKind, hasTrailingNewLine, cb) {\n    return (pos, end, kind, htnl) => {\n      if (kind === 3) {\n        pos += 2;\n        end -= 2;\n      } else {\n        pos += 2;\n      }\n      cb(targetNode, commentKind || kind, sourceFile.text.slice(pos, end), hasTrailingNewLine !== void 0 ? hasTrailingNewLine : htnl);\n    };\n  }\n  function indexInTextChange(change, name) {\n    if (startsWith(change, name))\n      return 0;\n    let idx = change.indexOf(\" \" + name);\n    if (idx === -1)\n      idx = change.indexOf(\".\" + name);\n    if (idx === -1)\n      idx = change.indexOf('\"' + name);\n    return idx === -1 ? -1 : idx + 1;\n  }\n  function needsParentheses(expression) {\n    return isBinaryExpression(expression) && expression.operatorToken.kind === 27 || isObjectLiteralExpression(expression) || isAsExpression(expression) && isObjectLiteralExpression(expression.expression);\n  }\n  function getContextualTypeFromParent(node, checker, contextFlags) {\n    const parent2 = walkUpParenthesizedExpressions(node.parent);\n    switch (parent2.kind) {\n      case 211:\n        return checker.getContextualType(parent2, contextFlags);\n      case 223: {\n        const { left, operatorToken, right } = parent2;\n        return isEqualityOperatorKind(operatorToken.kind) ? checker.getTypeAtLocation(node === right ? left : right) : checker.getContextualType(node, contextFlags);\n      }\n      case 292:\n        return getSwitchedType(parent2, checker);\n      default:\n        return checker.getContextualType(node, contextFlags);\n    }\n  }\n  function quote(sourceFile, preferences, text) {\n    const quotePreference = getQuotePreference(sourceFile, preferences);\n    const quoted = JSON.stringify(text);\n    return quotePreference === 0 ? `'${stripQuotes(quoted).replace(/'/g, \"\\\\'\").replace(/\\\\\"/g, '\"')}'` : quoted;\n  }\n  function isEqualityOperatorKind(kind) {\n    switch (kind) {\n      case 36:\n      case 34:\n      case 37:\n      case 35:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function isStringLiteralOrTemplate(node) {\n    switch (node.kind) {\n      case 10:\n      case 14:\n      case 225:\n      case 212:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function hasIndexSignature(type) {\n    return !!type.getStringIndexType() || !!type.getNumberIndexType();\n  }\n  function getSwitchedType(caseClause, checker) {\n    return checker.getTypeAtLocation(caseClause.parent.parent.expression);\n  }\n  function getTypeNodeIfAccessible(type, enclosingScope, program, host) {\n    const checker = program.getTypeChecker();\n    let typeIsAccessible = true;\n    const notAccessible = () => typeIsAccessible = false;\n    const res = checker.typeToTypeNode(type, enclosingScope, 1, {\n      trackSymbol: (symbol, declaration, meaning) => {\n        typeIsAccessible = typeIsAccessible && checker.isSymbolAccessible(symbol, declaration, meaning, false).accessibility === 0;\n        return !typeIsAccessible;\n      },\n      reportInaccessibleThisError: notAccessible,\n      reportPrivateInBaseOfClassExpression: notAccessible,\n      reportInaccessibleUniqueSymbolError: notAccessible,\n      moduleResolverHost: getModuleSpecifierResolverHost(program, host)\n    });\n    return typeIsAccessible ? res : void 0;\n  }\n  function syntaxRequiresTrailingCommaOrSemicolonOrASI(kind) {\n    return kind === 176 || kind === 177 || kind === 178 || kind === 168 || kind === 170;\n  }\n  function syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI(kind) {\n    return kind === 259 || kind === 173 || kind === 171 || kind === 174 || kind === 175;\n  }\n  function syntaxRequiresTrailingModuleBlockOrSemicolonOrASI(kind) {\n    return kind === 264;\n  }\n  function syntaxRequiresTrailingSemicolonOrASI(kind) {\n    return kind === 240 || kind === 241 || kind === 243 || kind === 248 || kind === 249 || kind === 250 || kind === 254 || kind === 256 || kind === 169 || kind === 262 || kind === 269 || kind === 268 || kind === 275 || kind === 267 || kind === 274;\n  }\n  function nodeIsASICandidate(node, sourceFile) {\n    const lastToken = node.getLastToken(sourceFile);\n    if (lastToken && lastToken.kind === 26) {\n      return false;\n    }\n    if (syntaxRequiresTrailingCommaOrSemicolonOrASI(node.kind)) {\n      if (lastToken && lastToken.kind === 27) {\n        return false;\n      }\n    } else if (syntaxRequiresTrailingModuleBlockOrSemicolonOrASI(node.kind)) {\n      const lastChild = last(node.getChildren(sourceFile));\n      if (lastChild && isModuleBlock(lastChild)) {\n        return false;\n      }\n    } else if (syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI(node.kind)) {\n      const lastChild = last(node.getChildren(sourceFile));\n      if (lastChild && isFunctionBlock(lastChild)) {\n        return false;\n      }\n    } else if (!syntaxRequiresTrailingSemicolonOrASI(node.kind)) {\n      return false;\n    }\n    if (node.kind === 243) {\n      return true;\n    }\n    const topNode = findAncestor(node, (ancestor) => !ancestor.parent);\n    const nextToken = findNextToken(node, topNode, sourceFile);\n    if (!nextToken || nextToken.kind === 19) {\n      return true;\n    }\n    const startLine = sourceFile.getLineAndCharacterOfPosition(node.getEnd()).line;\n    const endLine = sourceFile.getLineAndCharacterOfPosition(nextToken.getStart(sourceFile)).line;\n    return startLine !== endLine;\n  }\n  function positionIsASICandidate(pos, context, sourceFile) {\n    const contextAncestor = findAncestor(context, (ancestor) => {\n      if (ancestor.end !== pos) {\n        return \"quit\";\n      }\n      return syntaxMayBeASICandidate(ancestor.kind);\n    });\n    return !!contextAncestor && nodeIsASICandidate(contextAncestor, sourceFile);\n  }\n  function probablyUsesSemicolons(sourceFile) {\n    let withSemicolon = 0;\n    let withoutSemicolon = 0;\n    const nStatementsToObserve = 5;\n    forEachChild(sourceFile, function visit(node) {\n      if (syntaxRequiresTrailingSemicolonOrASI(node.kind)) {\n        const lastToken = node.getLastToken(sourceFile);\n        if ((lastToken == null ? void 0 : lastToken.kind) === 26) {\n          withSemicolon++;\n        } else {\n          withoutSemicolon++;\n        }\n      } else if (syntaxRequiresTrailingCommaOrSemicolonOrASI(node.kind)) {\n        const lastToken = node.getLastToken(sourceFile);\n        if ((lastToken == null ? void 0 : lastToken.kind) === 26) {\n          withSemicolon++;\n        } else if (lastToken && lastToken.kind !== 27) {\n          const lastTokenLine = getLineAndCharacterOfPosition(sourceFile, lastToken.getStart(sourceFile)).line;\n          const nextTokenLine = getLineAndCharacterOfPosition(sourceFile, getSpanOfTokenAtPosition(sourceFile, lastToken.end).start).line;\n          if (lastTokenLine !== nextTokenLine) {\n            withoutSemicolon++;\n          }\n        }\n      }\n      if (withSemicolon + withoutSemicolon >= nStatementsToObserve) {\n        return true;\n      }\n      return forEachChild(node, visit);\n    });\n    if (withSemicolon === 0 && withoutSemicolon <= 1) {\n      return true;\n    }\n    return withSemicolon / withoutSemicolon > 1 / nStatementsToObserve;\n  }\n  function tryGetDirectories(host, directoryName) {\n    return tryIOAndConsumeErrors(host, host.getDirectories, directoryName) || [];\n  }\n  function tryReadDirectory(host, path, extensions, exclude, include) {\n    return tryIOAndConsumeErrors(host, host.readDirectory, path, extensions, exclude, include) || emptyArray;\n  }\n  function tryFileExists(host, path) {\n    return tryIOAndConsumeErrors(host, host.fileExists, path);\n  }\n  function tryDirectoryExists(host, path) {\n    return tryAndIgnoreErrors(() => directoryProbablyExists(path, host)) || false;\n  }\n  function tryAndIgnoreErrors(cb) {\n    try {\n      return cb();\n    } catch (e) {\n      return void 0;\n    }\n  }\n  function tryIOAndConsumeErrors(host, toApply, ...args) {\n    return tryAndIgnoreErrors(() => toApply && toApply.apply(host, args));\n  }\n  function findPackageJsons(startDirectory, host, stopDirectory) {\n    const paths = [];\n    forEachAncestorDirectory(startDirectory, (ancestor) => {\n      if (ancestor === stopDirectory) {\n        return true;\n      }\n      const currentConfigPath = combinePaths(ancestor, \"package.json\");\n      if (tryFileExists(host, currentConfigPath)) {\n        paths.push(currentConfigPath);\n      }\n    });\n    return paths;\n  }\n  function findPackageJson(directory, host) {\n    let packageJson;\n    forEachAncestorDirectory(directory, (ancestor) => {\n      if (ancestor === \"node_modules\")\n        return true;\n      packageJson = findConfigFile(ancestor, (f) => tryFileExists(host, f), \"package.json\");\n      if (packageJson) {\n        return true;\n      }\n    });\n    return packageJson;\n  }\n  function getPackageJsonsVisibleToFile(fileName, host) {\n    if (!host.fileExists) {\n      return [];\n    }\n    const packageJsons = [];\n    forEachAncestorDirectory(getDirectoryPath(fileName), (ancestor) => {\n      const packageJsonFileName = combinePaths(ancestor, \"package.json\");\n      if (host.fileExists(packageJsonFileName)) {\n        const info = createPackageJsonInfo(packageJsonFileName, host);\n        if (info) {\n          packageJsons.push(info);\n        }\n      }\n    });\n    return packageJsons;\n  }\n  function createPackageJsonInfo(fileName, host) {\n    if (!host.readFile) {\n      return void 0;\n    }\n    const dependencyKeys = [\"dependencies\", \"devDependencies\", \"optionalDependencies\", \"peerDependencies\"];\n    const stringContent = host.readFile(fileName) || \"\";\n    const content = tryParseJson(stringContent);\n    const info = {};\n    if (content) {\n      for (const key of dependencyKeys) {\n        const dependencies = content[key];\n        if (!dependencies) {\n          continue;\n        }\n        const dependencyMap = /* @__PURE__ */ new Map();\n        for (const packageName in dependencies) {\n          dependencyMap.set(packageName, dependencies[packageName]);\n        }\n        info[key] = dependencyMap;\n      }\n    }\n    const dependencyGroups = [\n      [1, info.dependencies],\n      [2, info.devDependencies],\n      [8, info.optionalDependencies],\n      [4, info.peerDependencies]\n    ];\n    return {\n      ...info,\n      parseable: !!content,\n      fileName,\n      get,\n      has(dependencyName, inGroups) {\n        return !!get(dependencyName, inGroups);\n      }\n    };\n    function get(dependencyName, inGroups = 15) {\n      for (const [group2, deps] of dependencyGroups) {\n        if (deps && inGroups & group2) {\n          const dep = deps.get(dependencyName);\n          if (dep !== void 0) {\n            return dep;\n          }\n        }\n      }\n    }\n  }\n  function createPackageJsonImportFilter(fromFile, preferences, host) {\n    const packageJsons = (host.getPackageJsonsVisibleToFile && host.getPackageJsonsVisibleToFile(fromFile.fileName) || getPackageJsonsVisibleToFile(fromFile.fileName, host)).filter((p) => p.parseable);\n    let usesNodeCoreModules;\n    let ambientModuleCache;\n    let sourceFileCache;\n    return {\n      allowsImportingAmbientModule,\n      allowsImportingSourceFile,\n      allowsImportingSpecifier\n    };\n    function moduleSpecifierIsCoveredByPackageJson(specifier) {\n      const packageName = getNodeModuleRootSpecifier(specifier);\n      for (const packageJson of packageJsons) {\n        if (packageJson.has(packageName) || packageJson.has(getTypesPackageName(packageName))) {\n          return true;\n        }\n      }\n      return false;\n    }\n    function allowsImportingAmbientModule(moduleSymbol, moduleSpecifierResolutionHost) {\n      if (!packageJsons.length || !moduleSymbol.valueDeclaration) {\n        return true;\n      }\n      if (!ambientModuleCache) {\n        ambientModuleCache = /* @__PURE__ */ new Map();\n      } else {\n        const cached = ambientModuleCache.get(moduleSymbol);\n        if (cached !== void 0) {\n          return cached;\n        }\n      }\n      const declaredModuleSpecifier = stripQuotes(moduleSymbol.getName());\n      if (isAllowedCoreNodeModulesImport(declaredModuleSpecifier)) {\n        ambientModuleCache.set(moduleSymbol, true);\n        return true;\n      }\n      const declaringSourceFile = moduleSymbol.valueDeclaration.getSourceFile();\n      const declaringNodeModuleName = getNodeModulesPackageNameFromFileName(declaringSourceFile.fileName, moduleSpecifierResolutionHost);\n      if (typeof declaringNodeModuleName === \"undefined\") {\n        ambientModuleCache.set(moduleSymbol, true);\n        return true;\n      }\n      const result = moduleSpecifierIsCoveredByPackageJson(declaringNodeModuleName) || moduleSpecifierIsCoveredByPackageJson(declaredModuleSpecifier);\n      ambientModuleCache.set(moduleSymbol, result);\n      return result;\n    }\n    function allowsImportingSourceFile(sourceFile, moduleSpecifierResolutionHost) {\n      if (!packageJsons.length) {\n        return true;\n      }\n      if (!sourceFileCache) {\n        sourceFileCache = /* @__PURE__ */ new Map();\n      } else {\n        const cached = sourceFileCache.get(sourceFile);\n        if (cached !== void 0) {\n          return cached;\n        }\n      }\n      const moduleSpecifier = getNodeModulesPackageNameFromFileName(sourceFile.fileName, moduleSpecifierResolutionHost);\n      if (!moduleSpecifier) {\n        sourceFileCache.set(sourceFile, true);\n        return true;\n      }\n      const result = moduleSpecifierIsCoveredByPackageJson(moduleSpecifier);\n      sourceFileCache.set(sourceFile, result);\n      return result;\n    }\n    function allowsImportingSpecifier(moduleSpecifier) {\n      if (!packageJsons.length || isAllowedCoreNodeModulesImport(moduleSpecifier)) {\n        return true;\n      }\n      if (pathIsRelative(moduleSpecifier) || isRootedDiskPath(moduleSpecifier)) {\n        return true;\n      }\n      return moduleSpecifierIsCoveredByPackageJson(moduleSpecifier);\n    }\n    function isAllowedCoreNodeModulesImport(moduleSpecifier) {\n      if (isSourceFileJS(fromFile) && ts_JsTyping_exports.nodeCoreModules.has(moduleSpecifier)) {\n        if (usesNodeCoreModules === void 0) {\n          usesNodeCoreModules = consumesNodeCoreModules(fromFile);\n        }\n        if (usesNodeCoreModules) {\n          return true;\n        }\n      }\n      return false;\n    }\n    function getNodeModulesPackageNameFromFileName(importedFileName, moduleSpecifierResolutionHost) {\n      if (!stringContains(importedFileName, \"node_modules\")) {\n        return void 0;\n      }\n      const specifier = ts_moduleSpecifiers_exports.getNodeModulesPackageName(host.getCompilationSettings(), fromFile, importedFileName, moduleSpecifierResolutionHost, preferences);\n      if (!specifier) {\n        return void 0;\n      }\n      if (!pathIsRelative(specifier) && !isRootedDiskPath(specifier)) {\n        return getNodeModuleRootSpecifier(specifier);\n      }\n    }\n    function getNodeModuleRootSpecifier(fullSpecifier) {\n      const components = getPathComponents(getPackageNameFromTypesPackageName(fullSpecifier)).slice(1);\n      if (startsWith(components[0], \"@\")) {\n        return `${components[0]}/${components[1]}`;\n      }\n      return components[0];\n    }\n  }\n  function tryParseJson(text) {\n    try {\n      return JSON.parse(text);\n    } catch (e) {\n      return void 0;\n    }\n  }\n  function consumesNodeCoreModules(sourceFile) {\n    return some(sourceFile.imports, ({ text }) => ts_JsTyping_exports.nodeCoreModules.has(text));\n  }\n  function isInsideNodeModules(fileOrDirectory) {\n    return contains(getPathComponents(fileOrDirectory), \"node_modules\");\n  }\n  function isDiagnosticWithLocation(diagnostic) {\n    return diagnostic.file !== void 0 && diagnostic.start !== void 0 && diagnostic.length !== void 0;\n  }\n  function findDiagnosticForNode(node, sortedFileDiagnostics) {\n    const span = createTextSpanFromNode(node);\n    const index = binarySearchKey(sortedFileDiagnostics, span, identity, compareTextSpans);\n    if (index >= 0) {\n      const diagnostic = sortedFileDiagnostics[index];\n      Debug.assertEqual(diagnostic.file, node.getSourceFile(), \"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile\");\n      return cast(diagnostic, isDiagnosticWithLocation);\n    }\n  }\n  function getDiagnosticsWithinSpan(span, sortedFileDiagnostics) {\n    var _a2;\n    let index = binarySearchKey(sortedFileDiagnostics, span.start, (diag2) => diag2.start, compareValues);\n    if (index < 0) {\n      index = ~index;\n    }\n    while (((_a2 = sortedFileDiagnostics[index - 1]) == null ? void 0 : _a2.start) === span.start) {\n      index--;\n    }\n    const result = [];\n    const end = textSpanEnd(span);\n    while (true) {\n      const diagnostic = tryCast(sortedFileDiagnostics[index], isDiagnosticWithLocation);\n      if (!diagnostic || diagnostic.start > end) {\n        break;\n      }\n      if (textSpanContainsTextSpan(span, diagnostic)) {\n        result.push(diagnostic);\n      }\n      index++;\n    }\n    return result;\n  }\n  function getRefactorContextSpan({ startPosition, endPosition }) {\n    return createTextSpanFromBounds(startPosition, endPosition === void 0 ? startPosition : endPosition);\n  }\n  function getFixableErrorSpanExpression(sourceFile, span) {\n    const token = getTokenAtPosition(sourceFile, span.start);\n    const expression = findAncestor(token, (node) => {\n      if (node.getStart(sourceFile) < span.start || node.getEnd() > textSpanEnd(span)) {\n        return \"quit\";\n      }\n      return isExpression(node) && textSpansEqual(span, createTextSpanFromNode(node, sourceFile));\n    });\n    return expression;\n  }\n  function mapOneOrMany(valueOrArray, f, resultSelector = identity) {\n    return valueOrArray ? isArray(valueOrArray) ? resultSelector(map(valueOrArray, f)) : f(valueOrArray, 0) : void 0;\n  }\n  function firstOrOnly(valueOrArray) {\n    return isArray(valueOrArray) ? first(valueOrArray) : valueOrArray;\n  }\n  function getNamesForExportedSymbol(symbol, scriptTarget) {\n    if (needsNameFromDeclaration(symbol)) {\n      const fromDeclaration = getDefaultLikeExportNameFromDeclaration(symbol);\n      if (fromDeclaration)\n        return fromDeclaration;\n      const fileNameCase = ts_codefix_exports.moduleSymbolToValidIdentifier(getSymbolParentOrFail(symbol), scriptTarget, false);\n      const capitalized = ts_codefix_exports.moduleSymbolToValidIdentifier(getSymbolParentOrFail(symbol), scriptTarget, true);\n      if (fileNameCase === capitalized)\n        return fileNameCase;\n      return [fileNameCase, capitalized];\n    }\n    return symbol.name;\n  }\n  function getNameForExportedSymbol(symbol, scriptTarget, preferCapitalized) {\n    if (needsNameFromDeclaration(symbol)) {\n      return getDefaultLikeExportNameFromDeclaration(symbol) || ts_codefix_exports.moduleSymbolToValidIdentifier(getSymbolParentOrFail(symbol), scriptTarget, !!preferCapitalized);\n    }\n    return symbol.name;\n  }\n  function needsNameFromDeclaration(symbol) {\n    return !(symbol.flags & 33554432) && (symbol.escapedName === \"export=\" || symbol.escapedName === \"default\");\n  }\n  function getDefaultLikeExportNameFromDeclaration(symbol) {\n    return firstDefined(symbol.declarations, (d) => {\n      var _a2, _b;\n      return isExportAssignment(d) ? (_a2 = tryCast(skipOuterExpressions(d.expression), isIdentifier)) == null ? void 0 : _a2.text : (_b = tryCast(getNameOfDeclaration(d), isIdentifier)) == null ? void 0 : _b.text;\n    });\n  }\n  function getSymbolParentOrFail(symbol) {\n    var _a2;\n    return Debug.checkDefined(symbol.parent, `Symbol parent was undefined. Flags: ${Debug.formatSymbolFlags(symbol.flags)}. Declarations: ${(_a2 = symbol.declarations) == null ? void 0 : _a2.map((d) => {\n      const kind = Debug.formatSyntaxKind(d.kind);\n      const inJS = isInJSFile(d);\n      const { expression } = d;\n      return (inJS ? \"[JS]\" : \"\") + kind + (expression ? ` (expression: ${Debug.formatSyntaxKind(expression.kind)})` : \"\");\n    }).join(\", \")}.`);\n  }\n  function stringContainsAt(haystack, needle, startIndex) {\n    const needleLength = needle.length;\n    if (needleLength + startIndex > haystack.length) {\n      return false;\n    }\n    for (let i = 0; i < needleLength; i++) {\n      if (needle.charCodeAt(i) !== haystack.charCodeAt(i + startIndex))\n        return false;\n    }\n    return true;\n  }\n  function startsWithUnderscore(name) {\n    return name.charCodeAt(0) === 95;\n  }\n  function isGlobalDeclaration(declaration) {\n    return !isNonGlobalDeclaration(declaration);\n  }\n  function isNonGlobalDeclaration(declaration) {\n    const sourceFile = declaration.getSourceFile();\n    if (!sourceFile.externalModuleIndicator && !sourceFile.commonJsModuleIndicator) {\n      return false;\n    }\n    return isInJSFile(declaration) || !findAncestor(declaration, (d) => isModuleDeclaration(d) && isGlobalScopeAugmentation(d));\n  }\n  function isDeprecatedDeclaration(decl) {\n    return !!(getCombinedNodeFlagsAlwaysIncludeJSDoc(decl) & 8192);\n  }\n  function shouldUseUriStyleNodeCoreModules(file, program) {\n    const decisionFromFile = firstDefined(file.imports, (node) => {\n      if (ts_JsTyping_exports.nodeCoreModules.has(node.text)) {\n        return startsWith(node.text, \"node:\");\n      }\n    });\n    return decisionFromFile != null ? decisionFromFile : program.usesUriStyleNodeCoreModules;\n  }\n  function getNewLineKind(newLineCharacter) {\n    return newLineCharacter === \"\\n\" ? 1 : 0;\n  }\n  function diagnosticToString(diag2) {\n    return isArray(diag2) ? formatStringFromArgs(getLocaleSpecificMessage(diag2[0]), diag2.slice(1)) : getLocaleSpecificMessage(diag2);\n  }\n  function getFormatCodeSettingsForWriting({ options }, sourceFile) {\n    const shouldAutoDetectSemicolonPreference = !options.semicolons || options.semicolons === \"ignore\";\n    const shouldRemoveSemicolons = options.semicolons === \"remove\" || shouldAutoDetectSemicolonPreference && !probablyUsesSemicolons(sourceFile);\n    return {\n      ...options,\n      semicolons: shouldRemoveSemicolons ? \"remove\" : \"ignore\"\n    };\n  }\n  function jsxModeNeedsExplicitImport(jsx) {\n    return jsx === 2 || jsx === 3;\n  }\n  function isSourceFileFromLibrary(program, node) {\n    return program.isSourceFileFromExternalLibrary(node) || program.isSourceFileDefaultLibrary(node);\n  }\n  function newCaseClauseTracker(checker, clauses) {\n    const existingStrings = /* @__PURE__ */ new Set();\n    const existingNumbers = /* @__PURE__ */ new Set();\n    const existingBigInts = /* @__PURE__ */ new Set();\n    for (const clause of clauses) {\n      if (!isDefaultClause(clause)) {\n        const expression = skipParentheses(clause.expression);\n        if (isLiteralExpression(expression)) {\n          switch (expression.kind) {\n            case 14:\n            case 10:\n              existingStrings.add(expression.text);\n              break;\n            case 8:\n              existingNumbers.add(parseInt(expression.text));\n              break;\n            case 9:\n              const parsedBigInt = parseBigInt(endsWith(expression.text, \"n\") ? expression.text.slice(0, -1) : expression.text);\n              if (parsedBigInt) {\n                existingBigInts.add(pseudoBigIntToString(parsedBigInt));\n              }\n              break;\n          }\n        } else {\n          const symbol = checker.getSymbolAtLocation(clause.expression);\n          if (symbol && symbol.valueDeclaration && isEnumMember(symbol.valueDeclaration)) {\n            const enumValue = checker.getConstantValue(symbol.valueDeclaration);\n            if (enumValue !== void 0) {\n              addValue(enumValue);\n            }\n          }\n        }\n      }\n    }\n    return {\n      addValue,\n      hasValue\n    };\n    function addValue(value) {\n      switch (typeof value) {\n        case \"string\":\n          existingStrings.add(value);\n          break;\n        case \"number\":\n          existingNumbers.add(value);\n      }\n    }\n    function hasValue(value) {\n      switch (typeof value) {\n        case \"string\":\n          return existingStrings.has(value);\n        case \"number\":\n          return existingNumbers.has(value);\n        case \"object\":\n          return existingBigInts.has(pseudoBigIntToString(value));\n      }\n    }\n  }\n  var scanner, SemanticMeaning, tripleSlashDirectivePrefixRegex, typeKeywords, QuotePreference, displayPartWriter, lineFeed2, ANONYMOUS, syntaxMayBeASICandidate;\n  var init_utilities4 = __esm({\n    \"src/services/utilities.ts\"() {\n      \"use strict\";\n      init_ts4();\n      scanner = createScanner(99, true);\n      SemanticMeaning = /* @__PURE__ */ ((SemanticMeaning3) => {\n        SemanticMeaning3[SemanticMeaning3[\"None\"] = 0] = \"None\";\n        SemanticMeaning3[SemanticMeaning3[\"Value\"] = 1] = \"Value\";\n        SemanticMeaning3[SemanticMeaning3[\"Type\"] = 2] = \"Type\";\n        SemanticMeaning3[SemanticMeaning3[\"Namespace\"] = 4] = \"Namespace\";\n        SemanticMeaning3[SemanticMeaning3[\"All\"] = 7] = \"All\";\n        return SemanticMeaning3;\n      })(SemanticMeaning || {});\n      tripleSlashDirectivePrefixRegex = /^\\/\\/\\/\\s*</;\n      typeKeywords = [\n        131,\n        129,\n        160,\n        134,\n        95,\n        138,\n        141,\n        144,\n        104,\n        148,\n        149,\n        146,\n        152,\n        153,\n        110,\n        114,\n        155,\n        156,\n        157\n      ];\n      QuotePreference = /* @__PURE__ */ ((QuotePreference5) => {\n        QuotePreference5[QuotePreference5[\"Single\"] = 0] = \"Single\";\n        QuotePreference5[QuotePreference5[\"Double\"] = 1] = \"Double\";\n        return QuotePreference5;\n      })(QuotePreference || {});\n      displayPartWriter = getDisplayPartWriter();\n      lineFeed2 = \"\\n\";\n      ANONYMOUS = \"anonymous function\";\n      syntaxMayBeASICandidate = or(syntaxRequiresTrailingCommaOrSemicolonOrASI, syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI, syntaxRequiresTrailingModuleBlockOrSemicolonOrASI, syntaxRequiresTrailingSemicolonOrASI);\n    }\n  });\n  function createCacheableExportInfoMap(host) {\n    let exportInfoId = 1;\n    const exportInfo = createMultiMap();\n    const symbols = /* @__PURE__ */ new Map();\n    const packages = /* @__PURE__ */ new Map();\n    let usableByFileName;\n    const cache = {\n      isUsableByFile: (importingFile) => importingFile === usableByFileName,\n      isEmpty: () => !exportInfo.size,\n      clear: () => {\n        exportInfo.clear();\n        symbols.clear();\n        usableByFileName = void 0;\n      },\n      add: (importingFile, symbol, symbolTableKey, moduleSymbol, moduleFile, exportKind, isFromPackageJson, checker) => {\n        if (importingFile !== usableByFileName) {\n          cache.clear();\n          usableByFileName = importingFile;\n        }\n        let packageName;\n        if (moduleFile) {\n          const nodeModulesPathParts = getNodeModulePathParts(moduleFile.fileName);\n          if (nodeModulesPathParts) {\n            const { topLevelNodeModulesIndex, topLevelPackageNameIndex, packageRootIndex } = nodeModulesPathParts;\n            packageName = unmangleScopedPackageName(getPackageNameFromTypesPackageName(moduleFile.fileName.substring(topLevelPackageNameIndex + 1, packageRootIndex)));\n            if (startsWith(importingFile, moduleFile.path.substring(0, topLevelNodeModulesIndex))) {\n              const prevDeepestNodeModulesPath = packages.get(packageName);\n              const nodeModulesPath = moduleFile.fileName.substring(0, topLevelPackageNameIndex + 1);\n              if (prevDeepestNodeModulesPath) {\n                const prevDeepestNodeModulesIndex = prevDeepestNodeModulesPath.indexOf(nodeModulesPathPart);\n                if (topLevelNodeModulesIndex > prevDeepestNodeModulesIndex) {\n                  packages.set(packageName, nodeModulesPath);\n                }\n              } else {\n                packages.set(packageName, nodeModulesPath);\n              }\n            }\n          }\n        }\n        const isDefault = exportKind === 1;\n        const namedSymbol = isDefault && getLocalSymbolForExportDefault(symbol) || symbol;\n        const names = exportKind === 0 || isExternalModuleSymbol(namedSymbol) ? unescapeLeadingUnderscores(symbolTableKey) : getNamesForExportedSymbol(namedSymbol, void 0);\n        const symbolName2 = typeof names === \"string\" ? names : names[0];\n        const capitalizedSymbolName = typeof names === \"string\" ? void 0 : names[1];\n        const moduleName = stripQuotes(moduleSymbol.name);\n        const id = exportInfoId++;\n        const target = skipAlias(symbol, checker);\n        const storedSymbol = symbol.flags & 33554432 ? void 0 : symbol;\n        const storedModuleSymbol = moduleSymbol.flags & 33554432 ? void 0 : moduleSymbol;\n        if (!storedSymbol || !storedModuleSymbol)\n          symbols.set(id, [symbol, moduleSymbol]);\n        exportInfo.add(key(symbolName2, symbol, isExternalModuleNameRelative(moduleName) ? void 0 : moduleName, checker), {\n          id,\n          symbolTableKey,\n          symbolName: symbolName2,\n          capitalizedSymbolName,\n          moduleName,\n          moduleFile,\n          moduleFileName: moduleFile == null ? void 0 : moduleFile.fileName,\n          packageName,\n          exportKind,\n          targetFlags: target.flags,\n          isFromPackageJson,\n          symbol: storedSymbol,\n          moduleSymbol: storedModuleSymbol\n        });\n      },\n      get: (importingFile, key2) => {\n        if (importingFile !== usableByFileName)\n          return;\n        const result = exportInfo.get(key2);\n        return result == null ? void 0 : result.map(rehydrateCachedInfo);\n      },\n      search: (importingFile, preferCapitalized, matches, action) => {\n        if (importingFile !== usableByFileName)\n          return;\n        return forEachEntry(exportInfo, (info, key2) => {\n          const { symbolName: symbolName2, ambientModuleName } = parseKey(key2);\n          const name = preferCapitalized && info[0].capitalizedSymbolName || symbolName2;\n          if (matches(name, info[0].targetFlags)) {\n            const rehydrated = info.map(rehydrateCachedInfo);\n            const filtered = rehydrated.filter((r, i) => isNotShadowedByDeeperNodeModulesPackage(r, info[i].packageName));\n            if (filtered.length) {\n              const res = action(filtered, name, !!ambientModuleName, key2);\n              if (res !== void 0)\n                return res;\n            }\n          }\n        });\n      },\n      releaseSymbols: () => {\n        symbols.clear();\n      },\n      onFileChanged: (oldSourceFile, newSourceFile, typeAcquisitionEnabled) => {\n        if (fileIsGlobalOnly(oldSourceFile) && fileIsGlobalOnly(newSourceFile)) {\n          return false;\n        }\n        if (usableByFileName && usableByFileName !== newSourceFile.path || typeAcquisitionEnabled && consumesNodeCoreModules(oldSourceFile) !== consumesNodeCoreModules(newSourceFile) || !arrayIsEqualTo(oldSourceFile.moduleAugmentations, newSourceFile.moduleAugmentations) || !ambientModuleDeclarationsAreEqual(oldSourceFile, newSourceFile)) {\n          cache.clear();\n          return true;\n        }\n        usableByFileName = newSourceFile.path;\n        return false;\n      }\n    };\n    if (Debug.isDebugging) {\n      Object.defineProperty(cache, \"__cache\", { get: () => exportInfo });\n    }\n    return cache;\n    function rehydrateCachedInfo(info) {\n      if (info.symbol && info.moduleSymbol)\n        return info;\n      const { id, exportKind, targetFlags, isFromPackageJson, moduleFileName } = info;\n      const [cachedSymbol, cachedModuleSymbol] = symbols.get(id) || emptyArray;\n      if (cachedSymbol && cachedModuleSymbol) {\n        return {\n          symbol: cachedSymbol,\n          moduleSymbol: cachedModuleSymbol,\n          moduleFileName,\n          exportKind,\n          targetFlags,\n          isFromPackageJson\n        };\n      }\n      const checker = (isFromPackageJson ? host.getPackageJsonAutoImportProvider() : host.getCurrentProgram()).getTypeChecker();\n      const moduleSymbol = info.moduleSymbol || cachedModuleSymbol || Debug.checkDefined(info.moduleFile ? checker.getMergedSymbol(info.moduleFile.symbol) : checker.tryFindAmbientModule(info.moduleName));\n      const symbol = info.symbol || cachedSymbol || Debug.checkDefined(exportKind === 2 ? checker.resolveExternalModuleSymbol(moduleSymbol) : checker.tryGetMemberInModuleExportsAndProperties(unescapeLeadingUnderscores(info.symbolTableKey), moduleSymbol), `Could not find symbol '${info.symbolName}' by key '${info.symbolTableKey}' in module ${moduleSymbol.name}`);\n      symbols.set(id, [symbol, moduleSymbol]);\n      return {\n        symbol,\n        moduleSymbol,\n        moduleFileName,\n        exportKind,\n        targetFlags,\n        isFromPackageJson\n      };\n    }\n    function key(importedName, symbol, ambientModuleName, checker) {\n      const moduleKey = ambientModuleName || \"\";\n      return `${importedName}|${getSymbolId(skipAlias(symbol, checker))}|${moduleKey}`;\n    }\n    function parseKey(key2) {\n      const symbolName2 = key2.substring(0, key2.indexOf(\"|\"));\n      const moduleKey = key2.substring(key2.lastIndexOf(\"|\") + 1);\n      const ambientModuleName = moduleKey === \"\" ? void 0 : moduleKey;\n      return { symbolName: symbolName2, ambientModuleName };\n    }\n    function fileIsGlobalOnly(file) {\n      return !file.commonJsModuleIndicator && !file.externalModuleIndicator && !file.moduleAugmentations && !file.ambientModuleNames;\n    }\n    function ambientModuleDeclarationsAreEqual(oldSourceFile, newSourceFile) {\n      if (!arrayIsEqualTo(oldSourceFile.ambientModuleNames, newSourceFile.ambientModuleNames)) {\n        return false;\n      }\n      let oldFileStatementIndex = -1;\n      let newFileStatementIndex = -1;\n      for (const ambientModuleName of newSourceFile.ambientModuleNames) {\n        const isMatchingModuleDeclaration = (node) => isNonGlobalAmbientModule(node) && node.name.text === ambientModuleName;\n        oldFileStatementIndex = findIndex(oldSourceFile.statements, isMatchingModuleDeclaration, oldFileStatementIndex + 1);\n        newFileStatementIndex = findIndex(newSourceFile.statements, isMatchingModuleDeclaration, newFileStatementIndex + 1);\n        if (oldSourceFile.statements[oldFileStatementIndex] !== newSourceFile.statements[newFileStatementIndex]) {\n          return false;\n        }\n      }\n      return true;\n    }\n    function isNotShadowedByDeeperNodeModulesPackage(info, packageName) {\n      if (!packageName || !info.moduleFileName)\n        return true;\n      const typingsCacheLocation = host.getGlobalTypingsCacheLocation();\n      if (typingsCacheLocation && startsWith(info.moduleFileName, typingsCacheLocation))\n        return true;\n      const packageDeepestNodeModulesPath = packages.get(packageName);\n      return !packageDeepestNodeModulesPath || startsWith(info.moduleFileName, packageDeepestNodeModulesPath);\n    }\n  }\n  function isImportableFile(program, from, to, preferences, packageJsonFilter, moduleSpecifierResolutionHost, moduleSpecifierCache) {\n    var _a2;\n    if (from === to)\n      return false;\n    const cachedResult = moduleSpecifierCache == null ? void 0 : moduleSpecifierCache.get(from.path, to.path, preferences, {});\n    if ((cachedResult == null ? void 0 : cachedResult.isBlockedByPackageJsonDependencies) !== void 0) {\n      return !cachedResult.isBlockedByPackageJsonDependencies;\n    }\n    const getCanonicalFileName = hostGetCanonicalFileName(moduleSpecifierResolutionHost);\n    const globalTypingsCache = (_a2 = moduleSpecifierResolutionHost.getGlobalTypingsCacheLocation) == null ? void 0 : _a2.call(moduleSpecifierResolutionHost);\n    const hasImportablePath = !!ts_moduleSpecifiers_exports.forEachFileNameOfModule(from.fileName, to.fileName, moduleSpecifierResolutionHost, false, (toPath3) => {\n      const toFile = program.getSourceFile(toPath3);\n      return (toFile === to || !toFile) && isImportablePath(from.fileName, toPath3, getCanonicalFileName, globalTypingsCache);\n    });\n    if (packageJsonFilter) {\n      const isAutoImportable = hasImportablePath && packageJsonFilter.allowsImportingSourceFile(to, moduleSpecifierResolutionHost);\n      moduleSpecifierCache == null ? void 0 : moduleSpecifierCache.setBlockedByPackageJsonDependencies(from.path, to.path, preferences, {}, !isAutoImportable);\n      return isAutoImportable;\n    }\n    return hasImportablePath;\n  }\n  function isImportablePath(fromPath, toPath3, getCanonicalFileName, globalCachePath) {\n    const toNodeModules = forEachAncestorDirectory(toPath3, (ancestor) => getBaseFileName(ancestor) === \"node_modules\" ? ancestor : void 0);\n    const toNodeModulesParent = toNodeModules && getDirectoryPath(getCanonicalFileName(toNodeModules));\n    return toNodeModulesParent === void 0 || startsWith(getCanonicalFileName(fromPath), toNodeModulesParent) || !!globalCachePath && startsWith(getCanonicalFileName(globalCachePath), toNodeModulesParent);\n  }\n  function forEachExternalModuleToImportFrom(program, host, preferences, useAutoImportProvider, cb) {\n    var _a2, _b;\n    const useCaseSensitiveFileNames = hostUsesCaseSensitiveFileNames(host);\n    const excludePatterns = preferences.autoImportFileExcludePatterns && mapDefined(preferences.autoImportFileExcludePatterns, (spec) => {\n      const pattern = getPatternFromSpec(spec, \"\", \"exclude\");\n      return pattern ? getRegexFromPattern(pattern, useCaseSensitiveFileNames) : void 0;\n    });\n    forEachExternalModule(program.getTypeChecker(), program.getSourceFiles(), excludePatterns, (module2, file) => cb(module2, file, program, false));\n    const autoImportProvider = useAutoImportProvider && ((_a2 = host.getPackageJsonAutoImportProvider) == null ? void 0 : _a2.call(host));\n    if (autoImportProvider) {\n      const start = timestamp();\n      const checker = program.getTypeChecker();\n      forEachExternalModule(autoImportProvider.getTypeChecker(), autoImportProvider.getSourceFiles(), excludePatterns, (module2, file) => {\n        if (file && !program.getSourceFile(file.fileName) || !file && !checker.resolveName(module2.name, void 0, 1536, false)) {\n          cb(module2, file, autoImportProvider, true);\n        }\n      });\n      (_b = host.log) == null ? void 0 : _b.call(host, `forEachExternalModuleToImportFrom autoImportProvider: ${timestamp() - start}`);\n    }\n  }\n  function forEachExternalModule(checker, allSourceFiles, excludePatterns, cb) {\n    var _a2;\n    const isExcluded = excludePatterns && ((fileName) => excludePatterns.some((p) => p.test(fileName)));\n    for (const ambient of checker.getAmbientModules()) {\n      if (!stringContains(ambient.name, \"*\") && !(excludePatterns && ((_a2 = ambient.declarations) == null ? void 0 : _a2.every((d) => isExcluded(d.getSourceFile().fileName))))) {\n        cb(ambient, void 0);\n      }\n    }\n    for (const sourceFile of allSourceFiles) {\n      if (isExternalOrCommonJsModule(sourceFile) && !(isExcluded == null ? void 0 : isExcluded(sourceFile.fileName))) {\n        cb(checker.getMergedSymbol(sourceFile.symbol), sourceFile);\n      }\n    }\n  }\n  function getExportInfoMap(importingFile, host, program, preferences, cancellationToken) {\n    var _a2, _b, _c, _d, _e;\n    const start = timestamp();\n    (_a2 = host.getPackageJsonAutoImportProvider) == null ? void 0 : _a2.call(host);\n    const cache = ((_b = host.getCachedExportInfoMap) == null ? void 0 : _b.call(host)) || createCacheableExportInfoMap({\n      getCurrentProgram: () => program,\n      getPackageJsonAutoImportProvider: () => {\n        var _a3;\n        return (_a3 = host.getPackageJsonAutoImportProvider) == null ? void 0 : _a3.call(host);\n      },\n      getGlobalTypingsCacheLocation: () => {\n        var _a3;\n        return (_a3 = host.getGlobalTypingsCacheLocation) == null ? void 0 : _a3.call(host);\n      }\n    });\n    if (cache.isUsableByFile(importingFile.path)) {\n      (_c = host.log) == null ? void 0 : _c.call(host, \"getExportInfoMap: cache hit\");\n      return cache;\n    }\n    (_d = host.log) == null ? void 0 : _d.call(host, \"getExportInfoMap: cache miss or empty; calculating new results\");\n    const compilerOptions = program.getCompilerOptions();\n    let moduleCount = 0;\n    try {\n      forEachExternalModuleToImportFrom(program, host, preferences, true, (moduleSymbol, moduleFile, program2, isFromPackageJson) => {\n        if (++moduleCount % 100 === 0)\n          cancellationToken == null ? void 0 : cancellationToken.throwIfCancellationRequested();\n        const seenExports = /* @__PURE__ */ new Map();\n        const checker = program2.getTypeChecker();\n        const defaultInfo = getDefaultLikeExportInfo(moduleSymbol, checker, compilerOptions);\n        if (defaultInfo && isImportableSymbol(defaultInfo.symbol, checker)) {\n          cache.add(importingFile.path, defaultInfo.symbol, defaultInfo.exportKind === 1 ? \"default\" : \"export=\", moduleSymbol, moduleFile, defaultInfo.exportKind, isFromPackageJson, checker);\n        }\n        checker.forEachExportAndPropertyOfModule(moduleSymbol, (exported, key) => {\n          if (exported !== (defaultInfo == null ? void 0 : defaultInfo.symbol) && isImportableSymbol(exported, checker) && addToSeen(seenExports, key)) {\n            cache.add(importingFile.path, exported, key, moduleSymbol, moduleFile, 0, isFromPackageJson, checker);\n          }\n        });\n      });\n    } catch (err) {\n      cache.clear();\n      throw err;\n    }\n    (_e = host.log) == null ? void 0 : _e.call(host, `getExportInfoMap: done in ${timestamp() - start} ms`);\n    return cache;\n  }\n  function getDefaultLikeExportInfo(moduleSymbol, checker, compilerOptions) {\n    const exported = getDefaultLikeExportWorker(moduleSymbol, checker);\n    if (!exported)\n      return void 0;\n    const { symbol, exportKind } = exported;\n    const info = getDefaultExportInfoWorker(symbol, checker, compilerOptions);\n    return info && { symbol, exportKind, ...info };\n  }\n  function isImportableSymbol(symbol, checker) {\n    return !checker.isUndefinedSymbol(symbol) && !checker.isUnknownSymbol(symbol) && !isKnownSymbol(symbol) && !isPrivateIdentifierSymbol(symbol);\n  }\n  function getDefaultLikeExportWorker(moduleSymbol, checker) {\n    const exportEquals = checker.resolveExternalModuleSymbol(moduleSymbol);\n    if (exportEquals !== moduleSymbol)\n      return { symbol: exportEquals, exportKind: 2 };\n    const defaultExport = checker.tryGetMemberInModuleExports(\"default\", moduleSymbol);\n    if (defaultExport)\n      return { symbol: defaultExport, exportKind: 1 };\n  }\n  function getDefaultExportInfoWorker(defaultExport, checker, compilerOptions) {\n    const localSymbol = getLocalSymbolForExportDefault(defaultExport);\n    if (localSymbol)\n      return { resolvedSymbol: localSymbol, name: localSymbol.name };\n    const name = getNameForExportDefault(defaultExport);\n    if (name !== void 0)\n      return { resolvedSymbol: defaultExport, name };\n    if (defaultExport.flags & 2097152) {\n      const aliased = checker.getImmediateAliasedSymbol(defaultExport);\n      if (aliased && aliased.parent) {\n        return getDefaultExportInfoWorker(aliased, checker, compilerOptions);\n      }\n    }\n    if (defaultExport.escapedName !== \"default\" && defaultExport.escapedName !== \"export=\") {\n      return { resolvedSymbol: defaultExport, name: defaultExport.getName() };\n    }\n    return { resolvedSymbol: defaultExport, name: getNameForExportedSymbol(defaultExport, compilerOptions.target) };\n  }\n  function getNameForExportDefault(symbol) {\n    return symbol.declarations && firstDefined(symbol.declarations, (declaration) => {\n      var _a2;\n      if (isExportAssignment(declaration)) {\n        return (_a2 = tryCast(skipOuterExpressions(declaration.expression), isIdentifier)) == null ? void 0 : _a2.text;\n      } else if (isExportSpecifier(declaration)) {\n        Debug.assert(declaration.name.text === \"default\", \"Expected the specifier to be a default export\");\n        return declaration.propertyName && declaration.propertyName.text;\n      }\n    });\n  }\n  var ImportKind, ExportKind;\n  var init_exportInfoMap = __esm({\n    \"src/services/exportInfoMap.ts\"() {\n      \"use strict\";\n      init_ts4();\n      ImportKind = /* @__PURE__ */ ((ImportKind2) => {\n        ImportKind2[ImportKind2[\"Named\"] = 0] = \"Named\";\n        ImportKind2[ImportKind2[\"Default\"] = 1] = \"Default\";\n        ImportKind2[ImportKind2[\"Namespace\"] = 2] = \"Namespace\";\n        ImportKind2[ImportKind2[\"CommonJS\"] = 3] = \"CommonJS\";\n        return ImportKind2;\n      })(ImportKind || {});\n      ExportKind = /* @__PURE__ */ ((ExportKind3) => {\n        ExportKind3[ExportKind3[\"Named\"] = 0] = \"Named\";\n        ExportKind3[ExportKind3[\"Default\"] = 1] = \"Default\";\n        ExportKind3[ExportKind3[\"ExportEquals\"] = 2] = \"ExportEquals\";\n        ExportKind3[ExportKind3[\"UMD\"] = 3] = \"UMD\";\n        return ExportKind3;\n      })(ExportKind || {});\n    }\n  });\n  function createClassifier2() {\n    const scanner2 = createScanner(99, false);\n    function getClassificationsForLine(text, lexState, syntacticClassifierAbsent) {\n      return convertClassificationsToResult(getEncodedLexicalClassifications(text, lexState, syntacticClassifierAbsent), text);\n    }\n    function getEncodedLexicalClassifications(text, lexState, syntacticClassifierAbsent) {\n      let token = 0;\n      let lastNonTriviaToken = 0;\n      const templateStack = [];\n      const { prefix, pushTemplate } = getPrefixFromLexState(lexState);\n      text = prefix + text;\n      const offset = prefix.length;\n      if (pushTemplate) {\n        templateStack.push(15);\n      }\n      scanner2.setText(text);\n      let endOfLineState = 0;\n      const spans = [];\n      let angleBracketStack = 0;\n      do {\n        token = scanner2.scan();\n        if (!isTrivia(token)) {\n          handleToken();\n          lastNonTriviaToken = token;\n        }\n        const end = scanner2.getTextPos();\n        pushEncodedClassification(scanner2.getTokenPos(), end, offset, classFromKind(token), spans);\n        if (end >= text.length) {\n          const end2 = getNewEndOfLineState(scanner2, token, lastOrUndefined(templateStack));\n          if (end2 !== void 0) {\n            endOfLineState = end2;\n          }\n        }\n      } while (token !== 1);\n      function handleToken() {\n        switch (token) {\n          case 43:\n          case 68:\n            if (!noRegexTable[lastNonTriviaToken] && scanner2.reScanSlashToken() === 13) {\n              token = 13;\n            }\n            break;\n          case 29:\n            if (lastNonTriviaToken === 79) {\n              angleBracketStack++;\n            }\n            break;\n          case 31:\n            if (angleBracketStack > 0) {\n              angleBracketStack--;\n            }\n            break;\n          case 131:\n          case 152:\n          case 148:\n          case 134:\n          case 153:\n            if (angleBracketStack > 0 && !syntacticClassifierAbsent) {\n              token = 79;\n            }\n            break;\n          case 15:\n            templateStack.push(token);\n            break;\n          case 18:\n            if (templateStack.length > 0) {\n              templateStack.push(token);\n            }\n            break;\n          case 19:\n            if (templateStack.length > 0) {\n              const lastTemplateStackToken = lastOrUndefined(templateStack);\n              if (lastTemplateStackToken === 15) {\n                token = scanner2.reScanTemplateToken(false);\n                if (token === 17) {\n                  templateStack.pop();\n                } else {\n                  Debug.assertEqual(token, 16, \"Should have been a template middle.\");\n                }\n              } else {\n                Debug.assertEqual(lastTemplateStackToken, 18, \"Should have been an open brace\");\n                templateStack.pop();\n              }\n            }\n            break;\n          default:\n            if (!isKeyword(token)) {\n              break;\n            }\n            if (lastNonTriviaToken === 24) {\n              token = 79;\n            } else if (isKeyword(lastNonTriviaToken) && isKeyword(token) && !canFollow(lastNonTriviaToken, token)) {\n              token = 79;\n            }\n        }\n      }\n      return { endOfLineState, spans };\n    }\n    return { getClassificationsForLine, getEncodedLexicalClassifications };\n  }\n  function getNewEndOfLineState(scanner2, token, lastOnTemplateStack) {\n    switch (token) {\n      case 10: {\n        if (!scanner2.isUnterminated())\n          return void 0;\n        const tokenText = scanner2.getTokenText();\n        const lastCharIndex = tokenText.length - 1;\n        let numBackslashes = 0;\n        while (tokenText.charCodeAt(lastCharIndex - numBackslashes) === 92) {\n          numBackslashes++;\n        }\n        if ((numBackslashes & 1) === 0)\n          return void 0;\n        return tokenText.charCodeAt(0) === 34 ? 3 : 2;\n      }\n      case 3:\n        return scanner2.isUnterminated() ? 1 : void 0;\n      default:\n        if (isTemplateLiteralKind(token)) {\n          if (!scanner2.isUnterminated()) {\n            return void 0;\n          }\n          switch (token) {\n            case 17:\n              return 5;\n            case 14:\n              return 4;\n            default:\n              return Debug.fail(\"Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #\" + token);\n          }\n        }\n        return lastOnTemplateStack === 15 ? 6 : void 0;\n    }\n  }\n  function pushEncodedClassification(start, end, offset, classification, result) {\n    if (classification === 8) {\n      return;\n    }\n    if (start === 0 && offset > 0) {\n      start += offset;\n    }\n    const length2 = end - start;\n    if (length2 > 0) {\n      result.push(start - offset, length2, classification);\n    }\n  }\n  function convertClassificationsToResult(classifications, text) {\n    const entries = [];\n    const dense = classifications.spans;\n    let lastEnd = 0;\n    for (let i = 0; i < dense.length; i += 3) {\n      const start = dense[i];\n      const length2 = dense[i + 1];\n      const type = dense[i + 2];\n      if (lastEnd >= 0) {\n        const whitespaceLength2 = start - lastEnd;\n        if (whitespaceLength2 > 0) {\n          entries.push({ length: whitespaceLength2, classification: 4 });\n        }\n      }\n      entries.push({ length: length2, classification: convertClassification(type) });\n      lastEnd = start + length2;\n    }\n    const whitespaceLength = text.length - lastEnd;\n    if (whitespaceLength > 0) {\n      entries.push({ length: whitespaceLength, classification: 4 });\n    }\n    return { entries, finalLexState: classifications.endOfLineState };\n  }\n  function convertClassification(type) {\n    switch (type) {\n      case 1:\n        return 3;\n      case 3:\n        return 1;\n      case 4:\n        return 6;\n      case 25:\n        return 7;\n      case 5:\n        return 2;\n      case 6:\n        return 8;\n      case 8:\n        return 4;\n      case 10:\n        return 0;\n      case 2:\n      case 11:\n      case 12:\n      case 13:\n      case 14:\n      case 15:\n      case 16:\n      case 9:\n      case 17:\n        return 5;\n      default:\n        return void 0;\n    }\n  }\n  function canFollow(keyword1, keyword2) {\n    if (!isAccessibilityModifier(keyword1)) {\n      return true;\n    }\n    switch (keyword2) {\n      case 137:\n      case 151:\n      case 135:\n      case 124:\n      case 127:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function getPrefixFromLexState(lexState) {\n    switch (lexState) {\n      case 3:\n        return { prefix: '\"\\\\\\n' };\n      case 2:\n        return { prefix: \"'\\\\\\n\" };\n      case 1:\n        return { prefix: \"/*\\n\" };\n      case 4:\n        return { prefix: \"`\\n\" };\n      case 5:\n        return { prefix: \"}\\n\", pushTemplate: true };\n      case 6:\n        return { prefix: \"\", pushTemplate: true };\n      case 0:\n        return { prefix: \"\" };\n      default:\n        return Debug.assertNever(lexState);\n    }\n  }\n  function isBinaryExpressionOperatorToken(token) {\n    switch (token) {\n      case 41:\n      case 43:\n      case 44:\n      case 39:\n      case 40:\n      case 47:\n      case 48:\n      case 49:\n      case 29:\n      case 31:\n      case 32:\n      case 33:\n      case 102:\n      case 101:\n      case 128:\n      case 150:\n      case 34:\n      case 35:\n      case 36:\n      case 37:\n      case 50:\n      case 52:\n      case 51:\n      case 55:\n      case 56:\n      case 74:\n      case 73:\n      case 78:\n      case 70:\n      case 71:\n      case 72:\n      case 64:\n      case 65:\n      case 66:\n      case 68:\n      case 69:\n      case 63:\n      case 27:\n      case 60:\n      case 75:\n      case 76:\n      case 77:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function isPrefixUnaryExpressionOperatorToken(token) {\n    switch (token) {\n      case 39:\n      case 40:\n      case 54:\n      case 53:\n      case 45:\n      case 46:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function classFromKind(token) {\n    if (isKeyword(token)) {\n      return 3;\n    } else if (isBinaryExpressionOperatorToken(token) || isPrefixUnaryExpressionOperatorToken(token)) {\n      return 5;\n    } else if (token >= 18 && token <= 78) {\n      return 10;\n    }\n    switch (token) {\n      case 8:\n        return 4;\n      case 9:\n        return 25;\n      case 10:\n        return 6;\n      case 13:\n        return 7;\n      case 7:\n      case 3:\n      case 2:\n        return 1;\n      case 5:\n      case 4:\n        return 8;\n      case 79:\n      default:\n        if (isTemplateLiteralKind(token)) {\n          return 6;\n        }\n        return 2;\n    }\n  }\n  function getSemanticClassifications(typeChecker, cancellationToken, sourceFile, classifiableNames, span) {\n    return convertClassificationsToSpans(getEncodedSemanticClassifications(typeChecker, cancellationToken, sourceFile, classifiableNames, span));\n  }\n  function checkForClassificationCancellation(cancellationToken, kind) {\n    switch (kind) {\n      case 264:\n      case 260:\n      case 261:\n      case 259:\n      case 228:\n      case 215:\n      case 216:\n        cancellationToken.throwIfCancellationRequested();\n    }\n  }\n  function getEncodedSemanticClassifications(typeChecker, cancellationToken, sourceFile, classifiableNames, span) {\n    const spans = [];\n    sourceFile.forEachChild(function cb(node) {\n      if (!node || !textSpanIntersectsWith(span, node.pos, node.getFullWidth())) {\n        return;\n      }\n      checkForClassificationCancellation(cancellationToken, node.kind);\n      if (isIdentifier(node) && !nodeIsMissing(node) && classifiableNames.has(node.escapedText)) {\n        const symbol = typeChecker.getSymbolAtLocation(node);\n        const type = symbol && classifySymbol(symbol, getMeaningFromLocation(node), typeChecker);\n        if (type) {\n          pushClassification(node.getStart(sourceFile), node.getEnd(), type);\n        }\n      }\n      node.forEachChild(cb);\n    });\n    return { spans, endOfLineState: 0 };\n    function pushClassification(start, end, type) {\n      const length2 = end - start;\n      Debug.assert(length2 > 0, `Classification had non-positive length of ${length2}`);\n      spans.push(start);\n      spans.push(length2);\n      spans.push(type);\n    }\n  }\n  function classifySymbol(symbol, meaningAtPosition, checker) {\n    const flags = symbol.getFlags();\n    if ((flags & 2885600) === 0) {\n      return void 0;\n    } else if (flags & 32) {\n      return 11;\n    } else if (flags & 384) {\n      return 12;\n    } else if (flags & 524288) {\n      return 16;\n    } else if (flags & 1536) {\n      return meaningAtPosition & 4 || meaningAtPosition & 1 && hasValueSideModule(symbol) ? 14 : void 0;\n    } else if (flags & 2097152) {\n      return classifySymbol(checker.getAliasedSymbol(symbol), meaningAtPosition, checker);\n    } else if (meaningAtPosition & 2) {\n      return flags & 64 ? 13 : flags & 262144 ? 15 : void 0;\n    } else {\n      return void 0;\n    }\n  }\n  function hasValueSideModule(symbol) {\n    return some(symbol.declarations, (declaration) => isModuleDeclaration(declaration) && getModuleInstanceState(declaration) === 1);\n  }\n  function getClassificationTypeName(type) {\n    switch (type) {\n      case 1:\n        return \"comment\";\n      case 2:\n        return \"identifier\";\n      case 3:\n        return \"keyword\";\n      case 4:\n        return \"number\";\n      case 25:\n        return \"bigint\";\n      case 5:\n        return \"operator\";\n      case 6:\n        return \"string\";\n      case 8:\n        return \"whitespace\";\n      case 9:\n        return \"text\";\n      case 10:\n        return \"punctuation\";\n      case 11:\n        return \"class name\";\n      case 12:\n        return \"enum name\";\n      case 13:\n        return \"interface name\";\n      case 14:\n        return \"module name\";\n      case 15:\n        return \"type parameter name\";\n      case 16:\n        return \"type alias name\";\n      case 17:\n        return \"parameter name\";\n      case 18:\n        return \"doc comment tag name\";\n      case 19:\n        return \"jsx open tag name\";\n      case 20:\n        return \"jsx close tag name\";\n      case 21:\n        return \"jsx self closing tag name\";\n      case 22:\n        return \"jsx attribute\";\n      case 23:\n        return \"jsx text\";\n      case 24:\n        return \"jsx attribute string literal value\";\n      default:\n        return void 0;\n    }\n  }\n  function convertClassificationsToSpans(classifications) {\n    Debug.assert(classifications.spans.length % 3 === 0);\n    const dense = classifications.spans;\n    const result = [];\n    for (let i = 0; i < dense.length; i += 3) {\n      result.push({\n        textSpan: createTextSpan(dense[i], dense[i + 1]),\n        classificationType: getClassificationTypeName(dense[i + 2])\n      });\n    }\n    return result;\n  }\n  function getSyntacticClassifications(cancellationToken, sourceFile, span) {\n    return convertClassificationsToSpans(getEncodedSyntacticClassifications(cancellationToken, sourceFile, span));\n  }\n  function getEncodedSyntacticClassifications(cancellationToken, sourceFile, span) {\n    const spanStart = span.start;\n    const spanLength = span.length;\n    const triviaScanner = createScanner(99, false, sourceFile.languageVariant, sourceFile.text);\n    const mergeConflictScanner = createScanner(99, false, sourceFile.languageVariant, sourceFile.text);\n    const result = [];\n    processElement(sourceFile);\n    return { spans: result, endOfLineState: 0 };\n    function pushClassification(start, length2, type) {\n      result.push(start);\n      result.push(length2);\n      result.push(type);\n    }\n    function classifyLeadingTriviaAndGetTokenStart(token) {\n      triviaScanner.setTextPos(token.pos);\n      while (true) {\n        const start = triviaScanner.getTextPos();\n        if (!couldStartTrivia(sourceFile.text, start)) {\n          return start;\n        }\n        const kind = triviaScanner.scan();\n        const end = triviaScanner.getTextPos();\n        const width = end - start;\n        if (!isTrivia(kind)) {\n          return start;\n        }\n        switch (kind) {\n          case 4:\n          case 5:\n            continue;\n          case 2:\n          case 3:\n            classifyComment(token, kind, start, width);\n            triviaScanner.setTextPos(end);\n            continue;\n          case 7:\n            const text = sourceFile.text;\n            const ch = text.charCodeAt(start);\n            if (ch === 60 || ch === 62) {\n              pushClassification(start, width, 1);\n              continue;\n            }\n            Debug.assert(ch === 124 || ch === 61);\n            classifyDisabledMergeCode(text, start, end);\n            break;\n          case 6:\n            break;\n          default:\n            Debug.assertNever(kind);\n        }\n      }\n    }\n    function classifyComment(token, kind, start, width) {\n      if (kind === 3) {\n        const docCommentAndDiagnostics = parseIsolatedJSDocComment(sourceFile.text, start, width);\n        if (docCommentAndDiagnostics && docCommentAndDiagnostics.jsDoc) {\n          setParent(docCommentAndDiagnostics.jsDoc, token);\n          classifyJSDocComment(docCommentAndDiagnostics.jsDoc);\n          return;\n        }\n      } else if (kind === 2) {\n        if (tryClassifyTripleSlashComment(start, width)) {\n          return;\n        }\n      }\n      pushCommentRange(start, width);\n    }\n    function pushCommentRange(start, width) {\n      pushClassification(start, width, 1);\n    }\n    function classifyJSDocComment(docComment) {\n      var _a2, _b, _c, _d, _e, _f, _g, _h;\n      let pos = docComment.pos;\n      if (docComment.tags) {\n        for (const tag of docComment.tags) {\n          if (tag.pos !== pos) {\n            pushCommentRange(pos, tag.pos - pos);\n          }\n          pushClassification(tag.pos, 1, 10);\n          pushClassification(tag.tagName.pos, tag.tagName.end - tag.tagName.pos, 18);\n          pos = tag.tagName.end;\n          let commentStart = tag.tagName.end;\n          switch (tag.kind) {\n            case 344:\n              const param = tag;\n              processJSDocParameterTag(param);\n              commentStart = param.isNameFirst && ((_a2 = param.typeExpression) == null ? void 0 : _a2.end) || param.name.end;\n              break;\n            case 351:\n              const prop = tag;\n              commentStart = prop.isNameFirst && ((_b = prop.typeExpression) == null ? void 0 : _b.end) || prop.name.end;\n              break;\n            case 348:\n              processJSDocTemplateTag(tag);\n              pos = tag.end;\n              commentStart = tag.typeParameters.end;\n              break;\n            case 349:\n              const type = tag;\n              commentStart = ((_c = type.typeExpression) == null ? void 0 : _c.kind) === 312 && ((_d = type.fullName) == null ? void 0 : _d.end) || ((_e = type.typeExpression) == null ? void 0 : _e.end) || commentStart;\n              break;\n            case 341:\n              commentStart = tag.typeExpression.end;\n              break;\n            case 347:\n              processElement(tag.typeExpression);\n              pos = tag.end;\n              commentStart = tag.typeExpression.end;\n              break;\n            case 346:\n            case 343:\n              commentStart = tag.typeExpression.end;\n              break;\n            case 345:\n              processElement(tag.typeExpression);\n              pos = tag.end;\n              commentStart = ((_f = tag.typeExpression) == null ? void 0 : _f.end) || commentStart;\n              break;\n            case 350:\n              commentStart = ((_g = tag.name) == null ? void 0 : _g.end) || commentStart;\n              break;\n            case 331:\n            case 332:\n              commentStart = tag.class.end;\n              break;\n            case 352:\n              processElement(tag.typeExpression);\n              pos = tag.end;\n              commentStart = ((_h = tag.typeExpression) == null ? void 0 : _h.end) || commentStart;\n              break;\n          }\n          if (typeof tag.comment === \"object\") {\n            pushCommentRange(tag.comment.pos, tag.comment.end - tag.comment.pos);\n          } else if (typeof tag.comment === \"string\") {\n            pushCommentRange(commentStart, tag.end - commentStart);\n          }\n        }\n      }\n      if (pos !== docComment.end) {\n        pushCommentRange(pos, docComment.end - pos);\n      }\n      return;\n      function processJSDocParameterTag(tag) {\n        if (tag.isNameFirst) {\n          pushCommentRange(pos, tag.name.pos - pos);\n          pushClassification(tag.name.pos, tag.name.end - tag.name.pos, 17);\n          pos = tag.name.end;\n        }\n        if (tag.typeExpression) {\n          pushCommentRange(pos, tag.typeExpression.pos - pos);\n          processElement(tag.typeExpression);\n          pos = tag.typeExpression.end;\n        }\n        if (!tag.isNameFirst) {\n          pushCommentRange(pos, tag.name.pos - pos);\n          pushClassification(tag.name.pos, tag.name.end - tag.name.pos, 17);\n          pos = tag.name.end;\n        }\n      }\n    }\n    function tryClassifyTripleSlashComment(start, width) {\n      const tripleSlashXMLCommentRegEx = /^(\\/\\/\\/\\s*)(<)(?:(\\S+)((?:[^/]|\\/[^>])*)(\\/>)?)?/im;\n      const attributeRegex = /(\\s)(\\S+)(\\s*)(=)(\\s*)('[^']+'|\"[^\"]+\")/img;\n      const text = sourceFile.text.substr(start, width);\n      const match = tripleSlashXMLCommentRegEx.exec(text);\n      if (!match) {\n        return false;\n      }\n      if (!match[3] || !(match[3] in commentPragmas)) {\n        return false;\n      }\n      let pos = start;\n      pushCommentRange(pos, match[1].length);\n      pos += match[1].length;\n      pushClassification(pos, match[2].length, 10);\n      pos += match[2].length;\n      pushClassification(pos, match[3].length, 21);\n      pos += match[3].length;\n      const attrText = match[4];\n      let attrPos = pos;\n      while (true) {\n        const attrMatch = attributeRegex.exec(attrText);\n        if (!attrMatch) {\n          break;\n        }\n        const newAttrPos = pos + attrMatch.index + attrMatch[1].length;\n        if (newAttrPos > attrPos) {\n          pushCommentRange(attrPos, newAttrPos - attrPos);\n          attrPos = newAttrPos;\n        }\n        pushClassification(attrPos, attrMatch[2].length, 22);\n        attrPos += attrMatch[2].length;\n        if (attrMatch[3].length) {\n          pushCommentRange(attrPos, attrMatch[3].length);\n          attrPos += attrMatch[3].length;\n        }\n        pushClassification(attrPos, attrMatch[4].length, 5);\n        attrPos += attrMatch[4].length;\n        if (attrMatch[5].length) {\n          pushCommentRange(attrPos, attrMatch[5].length);\n          attrPos += attrMatch[5].length;\n        }\n        pushClassification(attrPos, attrMatch[6].length, 24);\n        attrPos += attrMatch[6].length;\n      }\n      pos += match[4].length;\n      if (pos > attrPos) {\n        pushCommentRange(attrPos, pos - attrPos);\n      }\n      if (match[5]) {\n        pushClassification(pos, match[5].length, 10);\n        pos += match[5].length;\n      }\n      const end = start + width;\n      if (pos < end) {\n        pushCommentRange(pos, end - pos);\n      }\n      return true;\n    }\n    function processJSDocTemplateTag(tag) {\n      for (const child of tag.getChildren()) {\n        processElement(child);\n      }\n    }\n    function classifyDisabledMergeCode(text, start, end) {\n      let i;\n      for (i = start; i < end; i++) {\n        if (isLineBreak(text.charCodeAt(i))) {\n          break;\n        }\n      }\n      pushClassification(start, i - start, 1);\n      mergeConflictScanner.setTextPos(i);\n      while (mergeConflictScanner.getTextPos() < end) {\n        classifyDisabledCodeToken();\n      }\n    }\n    function classifyDisabledCodeToken() {\n      const start = mergeConflictScanner.getTextPos();\n      const tokenKind = mergeConflictScanner.scan();\n      const end = mergeConflictScanner.getTextPos();\n      const type = classifyTokenType(tokenKind);\n      if (type) {\n        pushClassification(start, end - start, type);\n      }\n    }\n    function tryClassifyNode(node) {\n      if (isJSDoc(node)) {\n        return true;\n      }\n      if (nodeIsMissing(node)) {\n        return true;\n      }\n      const classifiedElementName = tryClassifyJsxElementName(node);\n      if (!isToken(node) && node.kind !== 11 && classifiedElementName === void 0) {\n        return false;\n      }\n      const tokenStart = node.kind === 11 ? node.pos : classifyLeadingTriviaAndGetTokenStart(node);\n      const tokenWidth = node.end - tokenStart;\n      Debug.assert(tokenWidth >= 0);\n      if (tokenWidth > 0) {\n        const type = classifiedElementName || classifyTokenType(node.kind, node);\n        if (type) {\n          pushClassification(tokenStart, tokenWidth, type);\n        }\n      }\n      return true;\n    }\n    function tryClassifyJsxElementName(token) {\n      switch (token.parent && token.parent.kind) {\n        case 283:\n          if (token.parent.tagName === token) {\n            return 19;\n          }\n          break;\n        case 284:\n          if (token.parent.tagName === token) {\n            return 20;\n          }\n          break;\n        case 282:\n          if (token.parent.tagName === token) {\n            return 21;\n          }\n          break;\n        case 288:\n          if (token.parent.name === token) {\n            return 22;\n          }\n          break;\n      }\n      return void 0;\n    }\n    function classifyTokenType(tokenKind, token) {\n      if (isKeyword(tokenKind)) {\n        return 3;\n      }\n      if (tokenKind === 29 || tokenKind === 31) {\n        if (token && getTypeArgumentOrTypeParameterList(token.parent)) {\n          return 10;\n        }\n      }\n      if (isPunctuation(tokenKind)) {\n        if (token) {\n          const parent2 = token.parent;\n          if (tokenKind === 63) {\n            if (parent2.kind === 257 || parent2.kind === 169 || parent2.kind === 166 || parent2.kind === 288) {\n              return 5;\n            }\n          }\n          if (parent2.kind === 223 || parent2.kind === 221 || parent2.kind === 222 || parent2.kind === 224) {\n            return 5;\n          }\n        }\n        return 10;\n      } else if (tokenKind === 8) {\n        return 4;\n      } else if (tokenKind === 9) {\n        return 25;\n      } else if (tokenKind === 10) {\n        return token && token.parent.kind === 288 ? 24 : 6;\n      } else if (tokenKind === 13) {\n        return 6;\n      } else if (isTemplateLiteralKind(tokenKind)) {\n        return 6;\n      } else if (tokenKind === 11) {\n        return 23;\n      } else if (tokenKind === 79) {\n        if (token) {\n          switch (token.parent.kind) {\n            case 260:\n              if (token.parent.name === token) {\n                return 11;\n              }\n              return;\n            case 165:\n              if (token.parent.name === token) {\n                return 15;\n              }\n              return;\n            case 261:\n              if (token.parent.name === token) {\n                return 13;\n              }\n              return;\n            case 263:\n              if (token.parent.name === token) {\n                return 12;\n              }\n              return;\n            case 264:\n              if (token.parent.name === token) {\n                return 14;\n              }\n              return;\n            case 166:\n              if (token.parent.name === token) {\n                return isThisIdentifier(token) ? 3 : 17;\n              }\n              return;\n          }\n          if (isConstTypeReference(token.parent)) {\n            return 3;\n          }\n        }\n        return 2;\n      }\n    }\n    function processElement(element) {\n      if (!element) {\n        return;\n      }\n      if (decodedTextSpanIntersectsWith(spanStart, spanLength, element.pos, element.getFullWidth())) {\n        checkForClassificationCancellation(cancellationToken, element.kind);\n        for (const child of element.getChildren(sourceFile)) {\n          if (!tryClassifyNode(child)) {\n            processElement(child);\n          }\n        }\n      }\n    }\n  }\n  var noRegexTable;\n  var init_classifier = __esm({\n    \"src/services/classifier.ts\"() {\n      \"use strict\";\n      init_ts4();\n      noRegexTable = arrayToNumericMap([\n        79,\n        10,\n        8,\n        9,\n        13,\n        108,\n        45,\n        46,\n        21,\n        23,\n        19,\n        110,\n        95\n      ], (token) => token, () => true);\n    }\n  });\n  var DocumentHighlights;\n  var init_documentHighlights = __esm({\n    \"src/services/documentHighlights.ts\"() {\n      \"use strict\";\n      init_ts4();\n      ((DocumentHighlights2) => {\n        function getDocumentHighlights(program, cancellationToken, sourceFile, position, sourceFilesToSearch) {\n          const node = getTouchingPropertyName(sourceFile, position);\n          if (node.parent && (isJsxOpeningElement(node.parent) && node.parent.tagName === node || isJsxClosingElement(node.parent))) {\n            const { openingElement, closingElement } = node.parent.parent;\n            const highlightSpans = [openingElement, closingElement].map(({ tagName }) => getHighlightSpanForNode(tagName, sourceFile));\n            return [{ fileName: sourceFile.fileName, highlightSpans }];\n          }\n          return getSemanticDocumentHighlights(position, node, program, cancellationToken, sourceFilesToSearch) || getSyntacticDocumentHighlights(node, sourceFile);\n        }\n        DocumentHighlights2.getDocumentHighlights = getDocumentHighlights;\n        function getHighlightSpanForNode(node, sourceFile) {\n          return {\n            fileName: sourceFile.fileName,\n            textSpan: createTextSpanFromNode(node, sourceFile),\n            kind: \"none\"\n          };\n        }\n        function getSemanticDocumentHighlights(position, node, program, cancellationToken, sourceFilesToSearch) {\n          const sourceFilesSet = new Set(sourceFilesToSearch.map((f) => f.fileName));\n          const referenceEntries = ts_FindAllReferences_exports.getReferenceEntriesForNode(position, node, program, sourceFilesToSearch, cancellationToken, void 0, sourceFilesSet);\n          if (!referenceEntries)\n            return void 0;\n          const map2 = arrayToMultiMap(referenceEntries.map(ts_FindAllReferences_exports.toHighlightSpan), (e) => e.fileName, (e) => e.span);\n          const getCanonicalFileName = createGetCanonicalFileName(program.useCaseSensitiveFileNames());\n          return arrayFrom(mapDefinedIterator(map2.entries(), ([fileName, highlightSpans]) => {\n            if (!sourceFilesSet.has(fileName)) {\n              if (!program.redirectTargetsMap.has(toPath(fileName, program.getCurrentDirectory(), getCanonicalFileName))) {\n                return void 0;\n              }\n              const redirectTarget = program.getSourceFile(fileName);\n              const redirect = find(sourceFilesToSearch, (f) => !!f.redirectInfo && f.redirectInfo.redirectTarget === redirectTarget);\n              fileName = redirect.fileName;\n              Debug.assert(sourceFilesSet.has(fileName));\n            }\n            return { fileName, highlightSpans };\n          }));\n        }\n        function getSyntacticDocumentHighlights(node, sourceFile) {\n          const highlightSpans = getHighlightSpans(node, sourceFile);\n          return highlightSpans && [{ fileName: sourceFile.fileName, highlightSpans }];\n        }\n        function getHighlightSpans(node, sourceFile) {\n          switch (node.kind) {\n            case 99:\n            case 91:\n              return isIfStatement(node.parent) ? getIfElseOccurrences(node.parent, sourceFile) : void 0;\n            case 105:\n              return useParent(node.parent, isReturnStatement, getReturnOccurrences);\n            case 109:\n              return useParent(node.parent, isThrowStatement, getThrowOccurrences);\n            case 111:\n            case 83:\n            case 96:\n              const tryStatement = node.kind === 83 ? node.parent.parent : node.parent;\n              return useParent(tryStatement, isTryStatement, getTryCatchFinallyOccurrences);\n            case 107:\n              return useParent(node.parent, isSwitchStatement, getSwitchCaseDefaultOccurrences);\n            case 82:\n            case 88: {\n              if (isDefaultClause(node.parent) || isCaseClause(node.parent)) {\n                return useParent(node.parent.parent.parent, isSwitchStatement, getSwitchCaseDefaultOccurrences);\n              }\n              return void 0;\n            }\n            case 81:\n            case 86:\n              return useParent(node.parent, isBreakOrContinueStatement, getBreakOrContinueStatementOccurrences);\n            case 97:\n            case 115:\n            case 90:\n              return useParent(node.parent, (n) => isIterationStatement(n, true), getLoopBreakContinueOccurrences);\n            case 135:\n              return getFromAllDeclarations(isConstructorDeclaration, [135]);\n            case 137:\n            case 151:\n              return getFromAllDeclarations(isAccessor, [137, 151]);\n            case 133:\n              return useParent(node.parent, isAwaitExpression, getAsyncAndAwaitOccurrences);\n            case 132:\n              return highlightSpans(getAsyncAndAwaitOccurrences(node));\n            case 125:\n              return highlightSpans(getYieldOccurrences(node));\n            case 101:\n              return void 0;\n            default:\n              return isModifierKind(node.kind) && (isDeclaration(node.parent) || isVariableStatement(node.parent)) ? highlightSpans(getModifierOccurrences(node.kind, node.parent)) : void 0;\n          }\n          function getFromAllDeclarations(nodeTest, keywords) {\n            return useParent(node.parent, nodeTest, (decl) => {\n              var _a2;\n              return mapDefined((_a2 = tryCast(decl, canHaveSymbol)) == null ? void 0 : _a2.symbol.declarations, (d) => nodeTest(d) ? find(d.getChildren(sourceFile), (c) => contains(keywords, c.kind)) : void 0);\n            });\n          }\n          function useParent(node2, nodeTest, getNodes4) {\n            return nodeTest(node2) ? highlightSpans(getNodes4(node2, sourceFile)) : void 0;\n          }\n          function highlightSpans(nodes) {\n            return nodes && nodes.map((node2) => getHighlightSpanForNode(node2, sourceFile));\n          }\n        }\n        function aggregateOwnedThrowStatements(node) {\n          if (isThrowStatement(node)) {\n            return [node];\n          } else if (isTryStatement(node)) {\n            return concatenate(node.catchClause ? aggregateOwnedThrowStatements(node.catchClause) : node.tryBlock && aggregateOwnedThrowStatements(node.tryBlock), node.finallyBlock && aggregateOwnedThrowStatements(node.finallyBlock));\n          }\n          return isFunctionLike(node) ? void 0 : flatMapChildren(node, aggregateOwnedThrowStatements);\n        }\n        function getThrowStatementOwner(throwStatement) {\n          let child = throwStatement;\n          while (child.parent) {\n            const parent2 = child.parent;\n            if (isFunctionBlock(parent2) || parent2.kind === 308) {\n              return parent2;\n            }\n            if (isTryStatement(parent2) && parent2.tryBlock === child && parent2.catchClause) {\n              return child;\n            }\n            child = parent2;\n          }\n          return void 0;\n        }\n        function aggregateAllBreakAndContinueStatements(node) {\n          return isBreakOrContinueStatement(node) ? [node] : isFunctionLike(node) ? void 0 : flatMapChildren(node, aggregateAllBreakAndContinueStatements);\n        }\n        function flatMapChildren(node, cb) {\n          const result = [];\n          node.forEachChild((child) => {\n            const value = cb(child);\n            if (value !== void 0) {\n              result.push(...toArray(value));\n            }\n          });\n          return result;\n        }\n        function ownsBreakOrContinueStatement(owner, statement) {\n          const actualOwner = getBreakOrContinueOwner(statement);\n          return !!actualOwner && actualOwner === owner;\n        }\n        function getBreakOrContinueOwner(statement) {\n          return findAncestor(statement, (node) => {\n            switch (node.kind) {\n              case 252:\n                if (statement.kind === 248) {\n                  return false;\n                }\n              case 245:\n              case 246:\n              case 247:\n              case 244:\n              case 243:\n                return !statement.label || isLabeledBy(node, statement.label.escapedText);\n              default:\n                return isFunctionLike(node) && \"quit\";\n            }\n          });\n        }\n        function getModifierOccurrences(modifier, declaration) {\n          return mapDefined(getNodesToSearchForModifier(declaration, modifierToFlag(modifier)), (node) => findModifier(node, modifier));\n        }\n        function getNodesToSearchForModifier(declaration, modifierFlag) {\n          const container = declaration.parent;\n          switch (container.kind) {\n            case 265:\n            case 308:\n            case 238:\n            case 292:\n            case 293:\n              if (modifierFlag & 256 && isClassDeclaration(declaration)) {\n                return [...declaration.members, declaration];\n              } else {\n                return container.statements;\n              }\n            case 173:\n            case 171:\n            case 259:\n              return [...container.parameters, ...isClassLike(container.parent) ? container.parent.members : []];\n            case 260:\n            case 228:\n            case 261:\n            case 184:\n              const nodes = container.members;\n              if (modifierFlag & (28 | 64)) {\n                const constructor = find(container.members, isConstructorDeclaration);\n                if (constructor) {\n                  return [...nodes, ...constructor.parameters];\n                }\n              } else if (modifierFlag & 256) {\n                return [...nodes, container];\n              }\n              return nodes;\n            case 207:\n              return void 0;\n            default:\n              Debug.assertNever(container, \"Invalid container kind.\");\n          }\n        }\n        function pushKeywordIf(keywordList, token, ...expected) {\n          if (token && contains(expected, token.kind)) {\n            keywordList.push(token);\n            return true;\n          }\n          return false;\n        }\n        function getLoopBreakContinueOccurrences(loopNode) {\n          const keywords = [];\n          if (pushKeywordIf(keywords, loopNode.getFirstToken(), 97, 115, 90)) {\n            if (loopNode.kind === 243) {\n              const loopTokens = loopNode.getChildren();\n              for (let i = loopTokens.length - 1; i >= 0; i--) {\n                if (pushKeywordIf(keywords, loopTokens[i], 115)) {\n                  break;\n                }\n              }\n            }\n          }\n          forEach(aggregateAllBreakAndContinueStatements(loopNode.statement), (statement) => {\n            if (ownsBreakOrContinueStatement(loopNode, statement)) {\n              pushKeywordIf(keywords, statement.getFirstToken(), 81, 86);\n            }\n          });\n          return keywords;\n        }\n        function getBreakOrContinueStatementOccurrences(breakOrContinueStatement) {\n          const owner = getBreakOrContinueOwner(breakOrContinueStatement);\n          if (owner) {\n            switch (owner.kind) {\n              case 245:\n              case 246:\n              case 247:\n              case 243:\n              case 244:\n                return getLoopBreakContinueOccurrences(owner);\n              case 252:\n                return getSwitchCaseDefaultOccurrences(owner);\n            }\n          }\n          return void 0;\n        }\n        function getSwitchCaseDefaultOccurrences(switchStatement) {\n          const keywords = [];\n          pushKeywordIf(keywords, switchStatement.getFirstToken(), 107);\n          forEach(switchStatement.caseBlock.clauses, (clause) => {\n            pushKeywordIf(keywords, clause.getFirstToken(), 82, 88);\n            forEach(aggregateAllBreakAndContinueStatements(clause), (statement) => {\n              if (ownsBreakOrContinueStatement(switchStatement, statement)) {\n                pushKeywordIf(keywords, statement.getFirstToken(), 81);\n              }\n            });\n          });\n          return keywords;\n        }\n        function getTryCatchFinallyOccurrences(tryStatement, sourceFile) {\n          const keywords = [];\n          pushKeywordIf(keywords, tryStatement.getFirstToken(), 111);\n          if (tryStatement.catchClause) {\n            pushKeywordIf(keywords, tryStatement.catchClause.getFirstToken(), 83);\n          }\n          if (tryStatement.finallyBlock) {\n            const finallyKeyword = findChildOfKind(tryStatement, 96, sourceFile);\n            pushKeywordIf(keywords, finallyKeyword, 96);\n          }\n          return keywords;\n        }\n        function getThrowOccurrences(throwStatement, sourceFile) {\n          const owner = getThrowStatementOwner(throwStatement);\n          if (!owner) {\n            return void 0;\n          }\n          const keywords = [];\n          forEach(aggregateOwnedThrowStatements(owner), (throwStatement2) => {\n            keywords.push(findChildOfKind(throwStatement2, 109, sourceFile));\n          });\n          if (isFunctionBlock(owner)) {\n            forEachReturnStatement(owner, (returnStatement) => {\n              keywords.push(findChildOfKind(returnStatement, 105, sourceFile));\n            });\n          }\n          return keywords;\n        }\n        function getReturnOccurrences(returnStatement, sourceFile) {\n          const func = getContainingFunction(returnStatement);\n          if (!func) {\n            return void 0;\n          }\n          const keywords = [];\n          forEachReturnStatement(cast(func.body, isBlock), (returnStatement2) => {\n            keywords.push(findChildOfKind(returnStatement2, 105, sourceFile));\n          });\n          forEach(aggregateOwnedThrowStatements(func.body), (throwStatement) => {\n            keywords.push(findChildOfKind(throwStatement, 109, sourceFile));\n          });\n          return keywords;\n        }\n        function getAsyncAndAwaitOccurrences(node) {\n          const func = getContainingFunction(node);\n          if (!func) {\n            return void 0;\n          }\n          const keywords = [];\n          if (func.modifiers) {\n            func.modifiers.forEach((modifier) => {\n              pushKeywordIf(keywords, modifier, 132);\n            });\n          }\n          forEachChild(func, (child) => {\n            traverseWithoutCrossingFunction(child, (node2) => {\n              if (isAwaitExpression(node2)) {\n                pushKeywordIf(keywords, node2.getFirstToken(), 133);\n              }\n            });\n          });\n          return keywords;\n        }\n        function getYieldOccurrences(node) {\n          const func = getContainingFunction(node);\n          if (!func) {\n            return void 0;\n          }\n          const keywords = [];\n          forEachChild(func, (child) => {\n            traverseWithoutCrossingFunction(child, (node2) => {\n              if (isYieldExpression(node2)) {\n                pushKeywordIf(keywords, node2.getFirstToken(), 125);\n              }\n            });\n          });\n          return keywords;\n        }\n        function traverseWithoutCrossingFunction(node, cb) {\n          cb(node);\n          if (!isFunctionLike(node) && !isClassLike(node) && !isInterfaceDeclaration(node) && !isModuleDeclaration(node) && !isTypeAliasDeclaration(node) && !isTypeNode(node)) {\n            forEachChild(node, (child) => traverseWithoutCrossingFunction(child, cb));\n          }\n        }\n        function getIfElseOccurrences(ifStatement, sourceFile) {\n          const keywords = getIfElseKeywords(ifStatement, sourceFile);\n          const result = [];\n          for (let i = 0; i < keywords.length; i++) {\n            if (keywords[i].kind === 91 && i < keywords.length - 1) {\n              const elseKeyword = keywords[i];\n              const ifKeyword = keywords[i + 1];\n              let shouldCombineElseAndIf = true;\n              for (let j = ifKeyword.getStart(sourceFile) - 1; j >= elseKeyword.end; j--) {\n                if (!isWhiteSpaceSingleLine(sourceFile.text.charCodeAt(j))) {\n                  shouldCombineElseAndIf = false;\n                  break;\n                }\n              }\n              if (shouldCombineElseAndIf) {\n                result.push({\n                  fileName: sourceFile.fileName,\n                  textSpan: createTextSpanFromBounds(elseKeyword.getStart(), ifKeyword.end),\n                  kind: \"reference\"\n                });\n                i++;\n                continue;\n              }\n            }\n            result.push(getHighlightSpanForNode(keywords[i], sourceFile));\n          }\n          return result;\n        }\n        function getIfElseKeywords(ifStatement, sourceFile) {\n          const keywords = [];\n          while (isIfStatement(ifStatement.parent) && ifStatement.parent.elseStatement === ifStatement) {\n            ifStatement = ifStatement.parent;\n          }\n          while (true) {\n            const children = ifStatement.getChildren(sourceFile);\n            pushKeywordIf(keywords, children[0], 99);\n            for (let i = children.length - 1; i >= 0; i--) {\n              if (pushKeywordIf(keywords, children[i], 91)) {\n                break;\n              }\n            }\n            if (!ifStatement.elseStatement || !isIfStatement(ifStatement.elseStatement)) {\n              break;\n            }\n            ifStatement = ifStatement.elseStatement;\n          }\n          return keywords;\n        }\n        function isLabeledBy(node, labelName) {\n          return !!findAncestor(node.parent, (owner) => !isLabeledStatement(owner) ? \"quit\" : owner.label.escapedText === labelName);\n        }\n      })(DocumentHighlights || (DocumentHighlights = {}));\n    }\n  });\n  function isDocumentRegistryEntry(entry) {\n    return !!entry.sourceFile;\n  }\n  function createDocumentRegistry(useCaseSensitiveFileNames, currentDirectory) {\n    return createDocumentRegistryInternal(useCaseSensitiveFileNames, currentDirectory);\n  }\n  function createDocumentRegistryInternal(useCaseSensitiveFileNames, currentDirectory = \"\", externalCache) {\n    const buckets = /* @__PURE__ */ new Map();\n    const getCanonicalFileName = createGetCanonicalFileName(!!useCaseSensitiveFileNames);\n    function reportStats() {\n      const bucketInfoArray = arrayFrom(buckets.keys()).filter((name) => name && name.charAt(0) === \"_\").map((name) => {\n        const entries = buckets.get(name);\n        const sourceFiles = [];\n        entries.forEach((entry, name2) => {\n          if (isDocumentRegistryEntry(entry)) {\n            sourceFiles.push({\n              name: name2,\n              scriptKind: entry.sourceFile.scriptKind,\n              refCount: entry.languageServiceRefCount\n            });\n          } else {\n            entry.forEach((value, scriptKind) => sourceFiles.push({ name: name2, scriptKind, refCount: value.languageServiceRefCount }));\n          }\n        });\n        sourceFiles.sort((x, y) => y.refCount - x.refCount);\n        return {\n          bucket: name,\n          sourceFiles\n        };\n      });\n      return JSON.stringify(bucketInfoArray, void 0, 2);\n    }\n    function getCompilationSettings(settingsOrHost) {\n      if (typeof settingsOrHost.getCompilationSettings === \"function\") {\n        return settingsOrHost.getCompilationSettings();\n      }\n      return settingsOrHost;\n    }\n    function acquireDocument(fileName, compilationSettings, scriptSnapshot, version2, scriptKind, languageVersionOrOptions) {\n      const path = toPath(fileName, currentDirectory, getCanonicalFileName);\n      const key = getKeyForCompilationSettings(getCompilationSettings(compilationSettings));\n      return acquireDocumentWithKey(fileName, path, compilationSettings, key, scriptSnapshot, version2, scriptKind, languageVersionOrOptions);\n    }\n    function acquireDocumentWithKey(fileName, path, compilationSettings, key, scriptSnapshot, version2, scriptKind, languageVersionOrOptions) {\n      return acquireOrUpdateDocument(fileName, path, compilationSettings, key, scriptSnapshot, version2, true, scriptKind, languageVersionOrOptions);\n    }\n    function updateDocument(fileName, compilationSettings, scriptSnapshot, version2, scriptKind, languageVersionOrOptions) {\n      const path = toPath(fileName, currentDirectory, getCanonicalFileName);\n      const key = getKeyForCompilationSettings(getCompilationSettings(compilationSettings));\n      return updateDocumentWithKey(fileName, path, compilationSettings, key, scriptSnapshot, version2, scriptKind, languageVersionOrOptions);\n    }\n    function updateDocumentWithKey(fileName, path, compilationSettings, key, scriptSnapshot, version2, scriptKind, languageVersionOrOptions) {\n      return acquireOrUpdateDocument(fileName, path, getCompilationSettings(compilationSettings), key, scriptSnapshot, version2, false, scriptKind, languageVersionOrOptions);\n    }\n    function getDocumentRegistryEntry(bucketEntry, scriptKind) {\n      const entry = isDocumentRegistryEntry(bucketEntry) ? bucketEntry : bucketEntry.get(Debug.checkDefined(scriptKind, \"If there are more than one scriptKind's for same document the scriptKind should be provided\"));\n      Debug.assert(scriptKind === void 0 || !entry || entry.sourceFile.scriptKind === scriptKind, `Script kind should match provided ScriptKind:${scriptKind} and sourceFile.scriptKind: ${entry == null ? void 0 : entry.sourceFile.scriptKind}, !entry: ${!entry}`);\n      return entry;\n    }\n    function acquireOrUpdateDocument(fileName, path, compilationSettingsOrHost, key, scriptSnapshot, version2, acquiring, scriptKind, languageVersionOrOptions) {\n      var _a2, _b, _c, _d;\n      scriptKind = ensureScriptKind(fileName, scriptKind);\n      const compilationSettings = getCompilationSettings(compilationSettingsOrHost);\n      const host = compilationSettingsOrHost === compilationSettings ? void 0 : compilationSettingsOrHost;\n      const scriptTarget = scriptKind === 6 ? 100 : getEmitScriptTarget(compilationSettings);\n      const sourceFileOptions = typeof languageVersionOrOptions === \"object\" ? languageVersionOrOptions : {\n        languageVersion: scriptTarget,\n        impliedNodeFormat: host && getImpliedNodeFormatForFile(path, (_d = (_c = (_b = (_a2 = host.getCompilerHost) == null ? void 0 : _a2.call(host)) == null ? void 0 : _b.getModuleResolutionCache) == null ? void 0 : _c.call(_b)) == null ? void 0 : _d.getPackageJsonInfoCache(), host, compilationSettings),\n        setExternalModuleIndicator: getSetExternalModuleIndicator(compilationSettings)\n      };\n      sourceFileOptions.languageVersion = scriptTarget;\n      const oldBucketCount = buckets.size;\n      const keyWithMode = getDocumentRegistryBucketKeyWithMode(key, sourceFileOptions.impliedNodeFormat);\n      const bucket = getOrUpdate(buckets, keyWithMode, () => /* @__PURE__ */ new Map());\n      if (tracing) {\n        if (buckets.size > oldBucketCount) {\n          tracing.instant(tracing.Phase.Session, \"createdDocumentRegistryBucket\", { configFilePath: compilationSettings.configFilePath, key: keyWithMode });\n        }\n        const otherBucketKey = !isDeclarationFileName(path) && forEachEntry(buckets, (bucket2, bucketKey) => bucketKey !== keyWithMode && bucket2.has(path) && bucketKey);\n        if (otherBucketKey) {\n          tracing.instant(tracing.Phase.Session, \"documentRegistryBucketOverlap\", { path, key1: otherBucketKey, key2: keyWithMode });\n        }\n      }\n      const bucketEntry = bucket.get(path);\n      let entry = bucketEntry && getDocumentRegistryEntry(bucketEntry, scriptKind);\n      if (!entry && externalCache) {\n        const sourceFile = externalCache.getDocument(keyWithMode, path);\n        if (sourceFile) {\n          Debug.assert(acquiring);\n          entry = {\n            sourceFile,\n            languageServiceRefCount: 0\n          };\n          setBucketEntry();\n        }\n      }\n      if (!entry) {\n        const sourceFile = createLanguageServiceSourceFile(fileName, scriptSnapshot, sourceFileOptions, version2, false, scriptKind);\n        if (externalCache) {\n          externalCache.setDocument(keyWithMode, path, sourceFile);\n        }\n        entry = {\n          sourceFile,\n          languageServiceRefCount: 1\n        };\n        setBucketEntry();\n      } else {\n        if (entry.sourceFile.version !== version2) {\n          entry.sourceFile = updateLanguageServiceSourceFile(entry.sourceFile, scriptSnapshot, version2, scriptSnapshot.getChangeRange(entry.sourceFile.scriptSnapshot));\n          if (externalCache) {\n            externalCache.setDocument(keyWithMode, path, entry.sourceFile);\n          }\n        }\n        if (acquiring) {\n          entry.languageServiceRefCount++;\n        }\n      }\n      Debug.assert(entry.languageServiceRefCount !== 0);\n      return entry.sourceFile;\n      function setBucketEntry() {\n        if (!bucketEntry) {\n          bucket.set(path, entry);\n        } else if (isDocumentRegistryEntry(bucketEntry)) {\n          const scriptKindMap = /* @__PURE__ */ new Map();\n          scriptKindMap.set(bucketEntry.sourceFile.scriptKind, bucketEntry);\n          scriptKindMap.set(scriptKind, entry);\n          bucket.set(path, scriptKindMap);\n        } else {\n          bucketEntry.set(scriptKind, entry);\n        }\n      }\n    }\n    function releaseDocument(fileName, compilationSettings, scriptKind, impliedNodeFormat) {\n      const path = toPath(fileName, currentDirectory, getCanonicalFileName);\n      const key = getKeyForCompilationSettings(compilationSettings);\n      return releaseDocumentWithKey(path, key, scriptKind, impliedNodeFormat);\n    }\n    function releaseDocumentWithKey(path, key, scriptKind, impliedNodeFormat) {\n      const bucket = Debug.checkDefined(buckets.get(getDocumentRegistryBucketKeyWithMode(key, impliedNodeFormat)));\n      const bucketEntry = bucket.get(path);\n      const entry = getDocumentRegistryEntry(bucketEntry, scriptKind);\n      entry.languageServiceRefCount--;\n      Debug.assert(entry.languageServiceRefCount >= 0);\n      if (entry.languageServiceRefCount === 0) {\n        if (isDocumentRegistryEntry(bucketEntry)) {\n          bucket.delete(path);\n        } else {\n          bucketEntry.delete(scriptKind);\n          if (bucketEntry.size === 1) {\n            bucket.set(path, firstDefinedIterator(bucketEntry.values(), identity));\n          }\n        }\n      }\n    }\n    function getLanguageServiceRefCounts(path, scriptKind) {\n      return arrayFrom(buckets.entries(), ([key, bucket]) => {\n        const bucketEntry = bucket.get(path);\n        const entry = bucketEntry && getDocumentRegistryEntry(bucketEntry, scriptKind);\n        return [key, entry && entry.languageServiceRefCount];\n      });\n    }\n    return {\n      acquireDocument,\n      acquireDocumentWithKey,\n      updateDocument,\n      updateDocumentWithKey,\n      releaseDocument,\n      releaseDocumentWithKey,\n      getLanguageServiceRefCounts,\n      reportStats,\n      getKeyForCompilationSettings\n    };\n  }\n  function getKeyForCompilationSettings(settings) {\n    return getKeyForCompilerOptions(settings, sourceFileAffectingCompilerOptions);\n  }\n  function getDocumentRegistryBucketKeyWithMode(key, mode) {\n    return mode ? `${key}|${mode}` : key;\n  }\n  var init_documentRegistry = __esm({\n    \"src/services/documentRegistry.ts\"() {\n      \"use strict\";\n      init_ts4();\n    }\n  });\n  function getEditsForFileRename(program, oldFileOrDirPath, newFileOrDirPath, host, formatContext, preferences, sourceMapper) {\n    const useCaseSensitiveFileNames = hostUsesCaseSensitiveFileNames(host);\n    const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames);\n    const oldToNew = getPathUpdater(oldFileOrDirPath, newFileOrDirPath, getCanonicalFileName, sourceMapper);\n    const newToOld = getPathUpdater(newFileOrDirPath, oldFileOrDirPath, getCanonicalFileName, sourceMapper);\n    return ts_textChanges_exports.ChangeTracker.with({ host, formatContext, preferences }, (changeTracker) => {\n      updateTsconfigFiles(program, changeTracker, oldToNew, oldFileOrDirPath, newFileOrDirPath, host.getCurrentDirectory(), useCaseSensitiveFileNames);\n      updateImports(program, changeTracker, oldToNew, newToOld, host, getCanonicalFileName);\n    });\n  }\n  function getPathUpdater(oldFileOrDirPath, newFileOrDirPath, getCanonicalFileName, sourceMapper) {\n    const canonicalOldPath = getCanonicalFileName(oldFileOrDirPath);\n    return (path) => {\n      const originalPath = sourceMapper && sourceMapper.tryGetSourcePosition({ fileName: path, pos: 0 });\n      const updatedPath = getUpdatedPath(originalPath ? originalPath.fileName : path);\n      return originalPath ? updatedPath === void 0 ? void 0 : makeCorrespondingRelativeChange(originalPath.fileName, updatedPath, path, getCanonicalFileName) : updatedPath;\n    };\n    function getUpdatedPath(pathToUpdate) {\n      if (getCanonicalFileName(pathToUpdate) === canonicalOldPath)\n        return newFileOrDirPath;\n      const suffix = tryRemoveDirectoryPrefix(pathToUpdate, canonicalOldPath, getCanonicalFileName);\n      return suffix === void 0 ? void 0 : newFileOrDirPath + \"/\" + suffix;\n    }\n  }\n  function makeCorrespondingRelativeChange(a0, b0, a1, getCanonicalFileName) {\n    const rel = getRelativePathFromFile(a0, b0, getCanonicalFileName);\n    return combinePathsSafe(getDirectoryPath(a1), rel);\n  }\n  function updateTsconfigFiles(program, changeTracker, oldToNew, oldFileOrDirPath, newFileOrDirPath, currentDirectory, useCaseSensitiveFileNames) {\n    const { configFile } = program.getCompilerOptions();\n    if (!configFile)\n      return;\n    const configDir = getDirectoryPath(configFile.fileName);\n    const jsonObjectLiteral = getTsConfigObjectLiteralExpression(configFile);\n    if (!jsonObjectLiteral)\n      return;\n    forEachProperty(jsonObjectLiteral, (property, propertyName) => {\n      switch (propertyName) {\n        case \"files\":\n        case \"include\":\n        case \"exclude\": {\n          const foundExactMatch = updatePaths(property);\n          if (foundExactMatch || propertyName !== \"include\" || !isArrayLiteralExpression(property.initializer))\n            return;\n          const includes = mapDefined(property.initializer.elements, (e) => isStringLiteral(e) ? e.text : void 0);\n          if (includes.length === 0)\n            return;\n          const matchers = getFileMatcherPatterns(configDir, [], includes, useCaseSensitiveFileNames, currentDirectory);\n          if (getRegexFromPattern(Debug.checkDefined(matchers.includeFilePattern), useCaseSensitiveFileNames).test(oldFileOrDirPath) && !getRegexFromPattern(Debug.checkDefined(matchers.includeFilePattern), useCaseSensitiveFileNames).test(newFileOrDirPath)) {\n            changeTracker.insertNodeAfter(configFile, last(property.initializer.elements), factory.createStringLiteral(relativePath(newFileOrDirPath)));\n          }\n          return;\n        }\n        case \"compilerOptions\":\n          forEachProperty(property.initializer, (property2, propertyName2) => {\n            const option = getOptionFromName(propertyName2);\n            Debug.assert((option == null ? void 0 : option.type) !== \"listOrElement\");\n            if (option && (option.isFilePath || option.type === \"list\" && option.element.isFilePath)) {\n              updatePaths(property2);\n            } else if (propertyName2 === \"paths\") {\n              forEachProperty(property2.initializer, (pathsProperty) => {\n                if (!isArrayLiteralExpression(pathsProperty.initializer))\n                  return;\n                for (const e of pathsProperty.initializer.elements) {\n                  tryUpdateString(e);\n                }\n              });\n            }\n          });\n          return;\n      }\n    });\n    function updatePaths(property) {\n      const elements = isArrayLiteralExpression(property.initializer) ? property.initializer.elements : [property.initializer];\n      let foundExactMatch = false;\n      for (const element of elements) {\n        foundExactMatch = tryUpdateString(element) || foundExactMatch;\n      }\n      return foundExactMatch;\n    }\n    function tryUpdateString(element) {\n      if (!isStringLiteral(element))\n        return false;\n      const elementFileName = combinePathsSafe(configDir, element.text);\n      const updated = oldToNew(elementFileName);\n      if (updated !== void 0) {\n        changeTracker.replaceRangeWithText(configFile, createStringRange(element, configFile), relativePath(updated));\n        return true;\n      }\n      return false;\n    }\n    function relativePath(path) {\n      return getRelativePathFromDirectory(configDir, path, !useCaseSensitiveFileNames);\n    }\n  }\n  function updateImports(program, changeTracker, oldToNew, newToOld, host, getCanonicalFileName) {\n    const allFiles = program.getSourceFiles();\n    for (const sourceFile of allFiles) {\n      const newFromOld = oldToNew(sourceFile.fileName);\n      const newImportFromPath = newFromOld != null ? newFromOld : sourceFile.fileName;\n      const newImportFromDirectory = getDirectoryPath(newImportFromPath);\n      const oldFromNew = newToOld(sourceFile.fileName);\n      const oldImportFromPath = oldFromNew || sourceFile.fileName;\n      const oldImportFromDirectory = getDirectoryPath(oldImportFromPath);\n      const importingSourceFileMoved = newFromOld !== void 0 || oldFromNew !== void 0;\n      updateImportsWorker(sourceFile, changeTracker, (referenceText) => {\n        if (!pathIsRelative(referenceText))\n          return void 0;\n        const oldAbsolute = combinePathsSafe(oldImportFromDirectory, referenceText);\n        const newAbsolute = oldToNew(oldAbsolute);\n        return newAbsolute === void 0 ? void 0 : ensurePathIsNonModuleName(getRelativePathFromDirectory(newImportFromDirectory, newAbsolute, getCanonicalFileName));\n      }, (importLiteral) => {\n        const importedModuleSymbol = program.getTypeChecker().getSymbolAtLocation(importLiteral);\n        if ((importedModuleSymbol == null ? void 0 : importedModuleSymbol.declarations) && importedModuleSymbol.declarations.some((d) => isAmbientModule(d)))\n          return void 0;\n        const toImport = oldFromNew !== void 0 ? getSourceFileToImportFromResolved(importLiteral, resolveModuleName(importLiteral.text, oldImportFromPath, program.getCompilerOptions(), host), oldToNew, allFiles) : getSourceFileToImport(importedModuleSymbol, importLiteral, sourceFile, program, host, oldToNew);\n        return toImport !== void 0 && (toImport.updated || importingSourceFileMoved && pathIsRelative(importLiteral.text)) ? ts_moduleSpecifiers_exports.updateModuleSpecifier(program.getCompilerOptions(), sourceFile, getCanonicalFileName(newImportFromPath), toImport.newFileName, createModuleSpecifierResolutionHost(program, host), importLiteral.text) : void 0;\n      });\n    }\n  }\n  function combineNormal(pathA, pathB) {\n    return normalizePath(combinePaths(pathA, pathB));\n  }\n  function combinePathsSafe(pathA, pathB) {\n    return ensurePathIsNonModuleName(combineNormal(pathA, pathB));\n  }\n  function getSourceFileToImport(importedModuleSymbol, importLiteral, importingSourceFile, program, host, oldToNew) {\n    var _a2;\n    if (importedModuleSymbol) {\n      const oldFileName = find(importedModuleSymbol.declarations, isSourceFile).fileName;\n      const newFileName = oldToNew(oldFileName);\n      return newFileName === void 0 ? { newFileName: oldFileName, updated: false } : { newFileName, updated: true };\n    } else {\n      const mode = getModeForUsageLocation(importingSourceFile, importLiteral);\n      const resolved = host.resolveModuleNameLiterals || !host.resolveModuleNames ? (_a2 = importingSourceFile.resolvedModules) == null ? void 0 : _a2.get(importLiteral.text, mode) : host.getResolvedModuleWithFailedLookupLocationsFromCache && host.getResolvedModuleWithFailedLookupLocationsFromCache(importLiteral.text, importingSourceFile.fileName, mode);\n      return getSourceFileToImportFromResolved(importLiteral, resolved, oldToNew, program.getSourceFiles());\n    }\n  }\n  function getSourceFileToImportFromResolved(importLiteral, resolved, oldToNew, sourceFiles) {\n    if (!resolved)\n      return void 0;\n    if (resolved.resolvedModule) {\n      const result2 = tryChange(resolved.resolvedModule.resolvedFileName);\n      if (result2)\n        return result2;\n    }\n    const result = forEach(resolved.failedLookupLocations, tryChangeWithIgnoringPackageJsonExisting) || pathIsRelative(importLiteral.text) && forEach(resolved.failedLookupLocations, tryChangeWithIgnoringPackageJson);\n    if (result)\n      return result;\n    return resolved.resolvedModule && { newFileName: resolved.resolvedModule.resolvedFileName, updated: false };\n    function tryChangeWithIgnoringPackageJsonExisting(oldFileName) {\n      const newFileName = oldToNew(oldFileName);\n      return newFileName && find(sourceFiles, (src) => src.fileName === newFileName) ? tryChangeWithIgnoringPackageJson(oldFileName) : void 0;\n    }\n    function tryChangeWithIgnoringPackageJson(oldFileName) {\n      return !endsWith(oldFileName, \"/package.json\") ? tryChange(oldFileName) : void 0;\n    }\n    function tryChange(oldFileName) {\n      const newFileName = oldToNew(oldFileName);\n      return newFileName && { newFileName, updated: true };\n    }\n  }\n  function updateImportsWorker(sourceFile, changeTracker, updateRef, updateImport2) {\n    for (const ref of sourceFile.referencedFiles || emptyArray) {\n      const updated = updateRef(ref.fileName);\n      if (updated !== void 0 && updated !== sourceFile.text.slice(ref.pos, ref.end))\n        changeTracker.replaceRangeWithText(sourceFile, ref, updated);\n    }\n    for (const importStringLiteral of sourceFile.imports) {\n      const updated = updateImport2(importStringLiteral);\n      if (updated !== void 0 && updated !== importStringLiteral.text)\n        changeTracker.replaceRangeWithText(sourceFile, createStringRange(importStringLiteral, sourceFile), updated);\n    }\n  }\n  function createStringRange(node, sourceFile) {\n    return createRange(node.getStart(sourceFile) + 1, node.end - 1);\n  }\n  function forEachProperty(objectLiteral, cb) {\n    if (!isObjectLiteralExpression(objectLiteral))\n      return;\n    for (const property of objectLiteral.properties) {\n      if (isPropertyAssignment(property) && isStringLiteral(property.name)) {\n        cb(property, property.name.text);\n      }\n    }\n  }\n  var init_getEditsForFileRename = __esm({\n    \"src/services/getEditsForFileRename.ts\"() {\n      \"use strict\";\n      init_ts4();\n    }\n  });\n  function createPatternMatch(kind, isCaseSensitive) {\n    return {\n      kind,\n      isCaseSensitive\n    };\n  }\n  function createPatternMatcher(pattern) {\n    const stringToWordSpans = /* @__PURE__ */ new Map();\n    const dotSeparatedSegments = pattern.trim().split(\".\").map((p) => createSegment(p.trim()));\n    if (dotSeparatedSegments.some((segment) => !segment.subWordTextChunks.length))\n      return void 0;\n    return {\n      getFullMatch: (containers, candidate) => getFullMatch(containers, candidate, dotSeparatedSegments, stringToWordSpans),\n      getMatchForLastSegmentOfPattern: (candidate) => matchSegment(candidate, last(dotSeparatedSegments), stringToWordSpans),\n      patternContainsDots: dotSeparatedSegments.length > 1\n    };\n  }\n  function getFullMatch(candidateContainers, candidate, dotSeparatedSegments, stringToWordSpans) {\n    const candidateMatch = matchSegment(candidate, last(dotSeparatedSegments), stringToWordSpans);\n    if (!candidateMatch) {\n      return void 0;\n    }\n    if (dotSeparatedSegments.length - 1 > candidateContainers.length) {\n      return void 0;\n    }\n    let bestMatch;\n    for (let i = dotSeparatedSegments.length - 2, j = candidateContainers.length - 1; i >= 0; i -= 1, j -= 1) {\n      bestMatch = betterMatch(bestMatch, matchSegment(candidateContainers[j], dotSeparatedSegments[i], stringToWordSpans));\n    }\n    return bestMatch;\n  }\n  function getWordSpans(word, stringToWordSpans) {\n    let spans = stringToWordSpans.get(word);\n    if (!spans) {\n      stringToWordSpans.set(word, spans = breakIntoWordSpans(word));\n    }\n    return spans;\n  }\n  function matchTextChunk(candidate, chunk, stringToWordSpans) {\n    const index = indexOfIgnoringCase(candidate, chunk.textLowerCase);\n    if (index === 0) {\n      return createPatternMatch(chunk.text.length === candidate.length ? 0 : 1, startsWith(candidate, chunk.text));\n    }\n    if (chunk.isLowerCase) {\n      if (index === -1)\n        return void 0;\n      const wordSpans = getWordSpans(candidate, stringToWordSpans);\n      for (const span of wordSpans) {\n        if (partStartsWith(candidate, span, chunk.text, true)) {\n          return createPatternMatch(2, partStartsWith(candidate, span, chunk.text, false));\n        }\n      }\n      if (chunk.text.length < candidate.length && isUpperCaseLetter(candidate.charCodeAt(index))) {\n        return createPatternMatch(2, false);\n      }\n    } else {\n      if (candidate.indexOf(chunk.text) > 0) {\n        return createPatternMatch(2, true);\n      }\n      if (chunk.characterSpans.length > 0) {\n        const candidateParts = getWordSpans(candidate, stringToWordSpans);\n        const isCaseSensitive = tryCamelCaseMatch(candidate, candidateParts, chunk, false) ? true : tryCamelCaseMatch(candidate, candidateParts, chunk, true) ? false : void 0;\n        if (isCaseSensitive !== void 0) {\n          return createPatternMatch(3, isCaseSensitive);\n        }\n      }\n    }\n  }\n  function matchSegment(candidate, segment, stringToWordSpans) {\n    if (every2(segment.totalTextChunk.text, (ch) => ch !== 32 && ch !== 42)) {\n      const match = matchTextChunk(candidate, segment.totalTextChunk, stringToWordSpans);\n      if (match)\n        return match;\n    }\n    const subWordTextChunks = segment.subWordTextChunks;\n    let bestMatch;\n    for (const subWordTextChunk of subWordTextChunks) {\n      bestMatch = betterMatch(bestMatch, matchTextChunk(candidate, subWordTextChunk, stringToWordSpans));\n    }\n    return bestMatch;\n  }\n  function betterMatch(a, b) {\n    return min([a, b], compareMatches);\n  }\n  function compareMatches(a, b) {\n    return a === void 0 ? 1 : b === void 0 ? -1 : compareValues(a.kind, b.kind) || compareBooleans(!a.isCaseSensitive, !b.isCaseSensitive);\n  }\n  function partStartsWith(candidate, candidateSpan, pattern, ignoreCase, patternSpan = { start: 0, length: pattern.length }) {\n    return patternSpan.length <= candidateSpan.length && everyInRange(0, patternSpan.length, (i) => equalChars(pattern.charCodeAt(patternSpan.start + i), candidate.charCodeAt(candidateSpan.start + i), ignoreCase));\n  }\n  function equalChars(ch1, ch2, ignoreCase) {\n    return ignoreCase ? toLowerCase2(ch1) === toLowerCase2(ch2) : ch1 === ch2;\n  }\n  function tryCamelCaseMatch(candidate, candidateParts, chunk, ignoreCase) {\n    const chunkCharacterSpans = chunk.characterSpans;\n    let currentCandidate = 0;\n    let currentChunkSpan = 0;\n    let firstMatch;\n    let contiguous;\n    while (true) {\n      if (currentChunkSpan === chunkCharacterSpans.length) {\n        return true;\n      } else if (currentCandidate === candidateParts.length) {\n        return false;\n      }\n      let candidatePart = candidateParts[currentCandidate];\n      let gotOneMatchThisCandidate = false;\n      for (; currentChunkSpan < chunkCharacterSpans.length; currentChunkSpan++) {\n        const chunkCharacterSpan = chunkCharacterSpans[currentChunkSpan];\n        if (gotOneMatchThisCandidate) {\n          if (!isUpperCaseLetter(chunk.text.charCodeAt(chunkCharacterSpans[currentChunkSpan - 1].start)) || !isUpperCaseLetter(chunk.text.charCodeAt(chunkCharacterSpans[currentChunkSpan].start))) {\n            break;\n          }\n        }\n        if (!partStartsWith(candidate, candidatePart, chunk.text, ignoreCase, chunkCharacterSpan)) {\n          break;\n        }\n        gotOneMatchThisCandidate = true;\n        firstMatch = firstMatch === void 0 ? currentCandidate : firstMatch;\n        contiguous = contiguous === void 0 ? true : contiguous;\n        candidatePart = createTextSpan(candidatePart.start + chunkCharacterSpan.length, candidatePart.length - chunkCharacterSpan.length);\n      }\n      if (!gotOneMatchThisCandidate && contiguous !== void 0) {\n        contiguous = false;\n      }\n      currentCandidate++;\n    }\n  }\n  function createSegment(text) {\n    return {\n      totalTextChunk: createTextChunk(text),\n      subWordTextChunks: breakPatternIntoTextChunks(text)\n    };\n  }\n  function isUpperCaseLetter(ch) {\n    if (ch >= 65 && ch <= 90) {\n      return true;\n    }\n    if (ch < 127 || !isUnicodeIdentifierStart(ch, 99)) {\n      return false;\n    }\n    const str = String.fromCharCode(ch);\n    return str === str.toUpperCase();\n  }\n  function isLowerCaseLetter(ch) {\n    if (ch >= 97 && ch <= 122) {\n      return true;\n    }\n    if (ch < 127 || !isUnicodeIdentifierStart(ch, 99)) {\n      return false;\n    }\n    const str = String.fromCharCode(ch);\n    return str === str.toLowerCase();\n  }\n  function indexOfIgnoringCase(str, value) {\n    const n = str.length - value.length;\n    for (let start = 0; start <= n; start++) {\n      if (every2(value, (valueChar, i) => toLowerCase2(str.charCodeAt(i + start)) === valueChar)) {\n        return start;\n      }\n    }\n    return -1;\n  }\n  function toLowerCase2(ch) {\n    if (ch >= 65 && ch <= 90) {\n      return 97 + (ch - 65);\n    }\n    if (ch < 127) {\n      return ch;\n    }\n    return String.fromCharCode(ch).toLowerCase().charCodeAt(0);\n  }\n  function isDigit2(ch) {\n    return ch >= 48 && ch <= 57;\n  }\n  function isWordChar(ch) {\n    return isUpperCaseLetter(ch) || isLowerCaseLetter(ch) || isDigit2(ch) || ch === 95 || ch === 36;\n  }\n  function breakPatternIntoTextChunks(pattern) {\n    const result = [];\n    let wordStart = 0;\n    let wordLength = 0;\n    for (let i = 0; i < pattern.length; i++) {\n      const ch = pattern.charCodeAt(i);\n      if (isWordChar(ch)) {\n        if (wordLength === 0) {\n          wordStart = i;\n        }\n        wordLength++;\n      } else {\n        if (wordLength > 0) {\n          result.push(createTextChunk(pattern.substr(wordStart, wordLength)));\n          wordLength = 0;\n        }\n      }\n    }\n    if (wordLength > 0) {\n      result.push(createTextChunk(pattern.substr(wordStart, wordLength)));\n    }\n    return result;\n  }\n  function createTextChunk(text) {\n    const textLowerCase = text.toLowerCase();\n    return {\n      text,\n      textLowerCase,\n      isLowerCase: text === textLowerCase,\n      characterSpans: breakIntoCharacterSpans(text)\n    };\n  }\n  function breakIntoCharacterSpans(identifier) {\n    return breakIntoSpans(identifier, false);\n  }\n  function breakIntoWordSpans(identifier) {\n    return breakIntoSpans(identifier, true);\n  }\n  function breakIntoSpans(identifier, word) {\n    const result = [];\n    let wordStart = 0;\n    for (let i = 1; i < identifier.length; i++) {\n      const lastIsDigit = isDigit2(identifier.charCodeAt(i - 1));\n      const currentIsDigit = isDigit2(identifier.charCodeAt(i));\n      const hasTransitionFromLowerToUpper = transitionFromLowerToUpper(identifier, word, i);\n      const hasTransitionFromUpperToLower = word && transitionFromUpperToLower(identifier, i, wordStart);\n      if (charIsPunctuation(identifier.charCodeAt(i - 1)) || charIsPunctuation(identifier.charCodeAt(i)) || lastIsDigit !== currentIsDigit || hasTransitionFromLowerToUpper || hasTransitionFromUpperToLower) {\n        if (!isAllPunctuation(identifier, wordStart, i)) {\n          result.push(createTextSpan(wordStart, i - wordStart));\n        }\n        wordStart = i;\n      }\n    }\n    if (!isAllPunctuation(identifier, wordStart, identifier.length)) {\n      result.push(createTextSpan(wordStart, identifier.length - wordStart));\n    }\n    return result;\n  }\n  function charIsPunctuation(ch) {\n    switch (ch) {\n      case 33:\n      case 34:\n      case 35:\n      case 37:\n      case 38:\n      case 39:\n      case 40:\n      case 41:\n      case 42:\n      case 44:\n      case 45:\n      case 46:\n      case 47:\n      case 58:\n      case 59:\n      case 63:\n      case 64:\n      case 91:\n      case 92:\n      case 93:\n      case 95:\n      case 123:\n      case 125:\n        return true;\n    }\n    return false;\n  }\n  function isAllPunctuation(identifier, start, end) {\n    return every2(identifier, (ch) => charIsPunctuation(ch) && ch !== 95, start, end);\n  }\n  function transitionFromUpperToLower(identifier, index, wordStart) {\n    return index !== wordStart && index + 1 < identifier.length && isUpperCaseLetter(identifier.charCodeAt(index)) && isLowerCaseLetter(identifier.charCodeAt(index + 1)) && every2(identifier, isUpperCaseLetter, wordStart, index);\n  }\n  function transitionFromLowerToUpper(identifier, word, index) {\n    const lastIsUpper = isUpperCaseLetter(identifier.charCodeAt(index - 1));\n    const currentIsUpper = isUpperCaseLetter(identifier.charCodeAt(index));\n    return currentIsUpper && (!word || !lastIsUpper);\n  }\n  function everyInRange(start, end, pred) {\n    for (let i = start; i < end; i++) {\n      if (!pred(i)) {\n        return false;\n      }\n    }\n    return true;\n  }\n  function every2(s, pred, start = 0, end = s.length) {\n    return everyInRange(start, end, (i) => pred(s.charCodeAt(i), i));\n  }\n  var PatternMatchKind;\n  var init_patternMatcher = __esm({\n    \"src/services/patternMatcher.ts\"() {\n      \"use strict\";\n      init_ts4();\n      PatternMatchKind = /* @__PURE__ */ ((PatternMatchKind2) => {\n        PatternMatchKind2[PatternMatchKind2[\"exact\"] = 0] = \"exact\";\n        PatternMatchKind2[PatternMatchKind2[\"prefix\"] = 1] = \"prefix\";\n        PatternMatchKind2[PatternMatchKind2[\"substring\"] = 2] = \"substring\";\n        PatternMatchKind2[PatternMatchKind2[\"camelCase\"] = 3] = \"camelCase\";\n        return PatternMatchKind2;\n      })(PatternMatchKind || {});\n    }\n  });\n  function preProcessFile(sourceText, readImportFiles = true, detectJavaScriptImports = false) {\n    const pragmaContext = {\n      languageVersion: 1,\n      pragmas: void 0,\n      checkJsDirective: void 0,\n      referencedFiles: [],\n      typeReferenceDirectives: [],\n      libReferenceDirectives: [],\n      amdDependencies: [],\n      hasNoDefaultLib: void 0,\n      moduleName: void 0\n    };\n    const importedFiles = [];\n    let ambientExternalModules;\n    let lastToken;\n    let currentToken;\n    let braceNesting = 0;\n    let externalModule = false;\n    function nextToken() {\n      lastToken = currentToken;\n      currentToken = scanner.scan();\n      if (currentToken === 18) {\n        braceNesting++;\n      } else if (currentToken === 19) {\n        braceNesting--;\n      }\n      return currentToken;\n    }\n    function getFileReference() {\n      const fileName = scanner.getTokenValue();\n      const pos = scanner.getTokenPos();\n      return { fileName, pos, end: pos + fileName.length };\n    }\n    function recordAmbientExternalModule() {\n      if (!ambientExternalModules) {\n        ambientExternalModules = [];\n      }\n      ambientExternalModules.push({ ref: getFileReference(), depth: braceNesting });\n    }\n    function recordModuleName() {\n      importedFiles.push(getFileReference());\n      markAsExternalModuleIfTopLevel();\n    }\n    function markAsExternalModuleIfTopLevel() {\n      if (braceNesting === 0) {\n        externalModule = true;\n      }\n    }\n    function tryConsumeDeclare() {\n      let token = scanner.getToken();\n      if (token === 136) {\n        token = nextToken();\n        if (token === 142) {\n          token = nextToken();\n          if (token === 10) {\n            recordAmbientExternalModule();\n          }\n        }\n        return true;\n      }\n      return false;\n    }\n    function tryConsumeImport() {\n      if (lastToken === 24) {\n        return false;\n      }\n      let token = scanner.getToken();\n      if (token === 100) {\n        token = nextToken();\n        if (token === 20) {\n          token = nextToken();\n          if (token === 10 || token === 14) {\n            recordModuleName();\n            return true;\n          }\n        } else if (token === 10) {\n          recordModuleName();\n          return true;\n        } else {\n          if (token === 154) {\n            const skipTypeKeyword = scanner.lookAhead(() => {\n              const token2 = scanner.scan();\n              return token2 !== 158 && (token2 === 41 || token2 === 18 || token2 === 79 || isKeyword(token2));\n            });\n            if (skipTypeKeyword) {\n              token = nextToken();\n            }\n          }\n          if (token === 79 || isKeyword(token)) {\n            token = nextToken();\n            if (token === 158) {\n              token = nextToken();\n              if (token === 10) {\n                recordModuleName();\n                return true;\n              }\n            } else if (token === 63) {\n              if (tryConsumeRequireCall(true)) {\n                return true;\n              }\n            } else if (token === 27) {\n              token = nextToken();\n            } else {\n              return true;\n            }\n          }\n          if (token === 18) {\n            token = nextToken();\n            while (token !== 19 && token !== 1) {\n              token = nextToken();\n            }\n            if (token === 19) {\n              token = nextToken();\n              if (token === 158) {\n                token = nextToken();\n                if (token === 10) {\n                  recordModuleName();\n                }\n              }\n            }\n          } else if (token === 41) {\n            token = nextToken();\n            if (token === 128) {\n              token = nextToken();\n              if (token === 79 || isKeyword(token)) {\n                token = nextToken();\n                if (token === 158) {\n                  token = nextToken();\n                  if (token === 10) {\n                    recordModuleName();\n                  }\n                }\n              }\n            }\n          }\n        }\n        return true;\n      }\n      return false;\n    }\n    function tryConsumeExport() {\n      let token = scanner.getToken();\n      if (token === 93) {\n        markAsExternalModuleIfTopLevel();\n        token = nextToken();\n        if (token === 154) {\n          const skipTypeKeyword = scanner.lookAhead(() => {\n            const token2 = scanner.scan();\n            return token2 === 41 || token2 === 18;\n          });\n          if (skipTypeKeyword) {\n            token = nextToken();\n          }\n        }\n        if (token === 18) {\n          token = nextToken();\n          while (token !== 19 && token !== 1) {\n            token = nextToken();\n          }\n          if (token === 19) {\n            token = nextToken();\n            if (token === 158) {\n              token = nextToken();\n              if (token === 10) {\n                recordModuleName();\n              }\n            }\n          }\n        } else if (token === 41) {\n          token = nextToken();\n          if (token === 158) {\n            token = nextToken();\n            if (token === 10) {\n              recordModuleName();\n            }\n          }\n        } else if (token === 100) {\n          token = nextToken();\n          if (token === 154) {\n            const skipTypeKeyword = scanner.lookAhead(() => {\n              const token2 = scanner.scan();\n              return token2 === 79 || isKeyword(token2);\n            });\n            if (skipTypeKeyword) {\n              token = nextToken();\n            }\n          }\n          if (token === 79 || isKeyword(token)) {\n            token = nextToken();\n            if (token === 63) {\n              if (tryConsumeRequireCall(true)) {\n                return true;\n              }\n            }\n          }\n        }\n        return true;\n      }\n      return false;\n    }\n    function tryConsumeRequireCall(skipCurrentToken, allowTemplateLiterals = false) {\n      let token = skipCurrentToken ? nextToken() : scanner.getToken();\n      if (token === 147) {\n        token = nextToken();\n        if (token === 20) {\n          token = nextToken();\n          if (token === 10 || allowTemplateLiterals && token === 14) {\n            recordModuleName();\n          }\n        }\n        return true;\n      }\n      return false;\n    }\n    function tryConsumeDefine() {\n      let token = scanner.getToken();\n      if (token === 79 && scanner.getTokenValue() === \"define\") {\n        token = nextToken();\n        if (token !== 20) {\n          return true;\n        }\n        token = nextToken();\n        if (token === 10 || token === 14) {\n          token = nextToken();\n          if (token === 27) {\n            token = nextToken();\n          } else {\n            return true;\n          }\n        }\n        if (token !== 22) {\n          return true;\n        }\n        token = nextToken();\n        while (token !== 23 && token !== 1) {\n          if (token === 10 || token === 14) {\n            recordModuleName();\n          }\n          token = nextToken();\n        }\n        return true;\n      }\n      return false;\n    }\n    function processImports() {\n      scanner.setText(sourceText);\n      nextToken();\n      while (true) {\n        if (scanner.getToken() === 1) {\n          break;\n        }\n        if (scanner.getToken() === 15) {\n          const stack = [scanner.getToken()];\n          loop:\n            while (length(stack)) {\n              const token = scanner.scan();\n              switch (token) {\n                case 1:\n                  break loop;\n                case 100:\n                  tryConsumeImport();\n                  break;\n                case 15:\n                  stack.push(token);\n                  break;\n                case 18:\n                  if (length(stack)) {\n                    stack.push(token);\n                  }\n                  break;\n                case 19:\n                  if (length(stack)) {\n                    if (lastOrUndefined(stack) === 15) {\n                      if (scanner.reScanTemplateToken(false) === 17) {\n                        stack.pop();\n                      }\n                    } else {\n                      stack.pop();\n                    }\n                  }\n                  break;\n              }\n            }\n          nextToken();\n        }\n        if (tryConsumeDeclare() || tryConsumeImport() || tryConsumeExport() || detectJavaScriptImports && (tryConsumeRequireCall(false, true) || tryConsumeDefine())) {\n          continue;\n        } else {\n          nextToken();\n        }\n      }\n      scanner.setText(void 0);\n    }\n    if (readImportFiles) {\n      processImports();\n    }\n    processCommentPragmas(pragmaContext, sourceText);\n    processPragmasIntoFields(pragmaContext, noop);\n    if (externalModule) {\n      if (ambientExternalModules) {\n        for (const decl of ambientExternalModules) {\n          importedFiles.push(decl.ref);\n        }\n      }\n      return { referencedFiles: pragmaContext.referencedFiles, typeReferenceDirectives: pragmaContext.typeReferenceDirectives, libReferenceDirectives: pragmaContext.libReferenceDirectives, importedFiles, isLibFile: !!pragmaContext.hasNoDefaultLib, ambientExternalModules: void 0 };\n    } else {\n      let ambientModuleNames;\n      if (ambientExternalModules) {\n        for (const decl of ambientExternalModules) {\n          if (decl.depth === 0) {\n            if (!ambientModuleNames) {\n              ambientModuleNames = [];\n            }\n            ambientModuleNames.push(decl.ref.fileName);\n          } else {\n            importedFiles.push(decl.ref);\n          }\n        }\n      }\n      return { referencedFiles: pragmaContext.referencedFiles, typeReferenceDirectives: pragmaContext.typeReferenceDirectives, libReferenceDirectives: pragmaContext.libReferenceDirectives, importedFiles, isLibFile: !!pragmaContext.hasNoDefaultLib, ambientExternalModules: ambientModuleNames };\n    }\n  }\n  var init_preProcess = __esm({\n    \"src/services/preProcess.ts\"() {\n      \"use strict\";\n      init_ts4();\n    }\n  });\n  function getSourceMapper(host) {\n    const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames());\n    const currentDirectory = host.getCurrentDirectory();\n    const sourceFileLike = /* @__PURE__ */ new Map();\n    const documentPositionMappers = /* @__PURE__ */ new Map();\n    return { tryGetSourcePosition, tryGetGeneratedPosition, toLineColumnOffset, clearCache };\n    function toPath3(fileName) {\n      return toPath(fileName, currentDirectory, getCanonicalFileName);\n    }\n    function getDocumentPositionMapper2(generatedFileName, sourceFileName) {\n      const path = toPath3(generatedFileName);\n      const value = documentPositionMappers.get(path);\n      if (value)\n        return value;\n      let mapper;\n      if (host.getDocumentPositionMapper) {\n        mapper = host.getDocumentPositionMapper(generatedFileName, sourceFileName);\n      } else if (host.readFile) {\n        const file = getSourceFileLike(generatedFileName);\n        mapper = file && getDocumentPositionMapper({ getSourceFileLike, getCanonicalFileName, log: (s) => host.log(s) }, generatedFileName, getLineInfo(file.text, getLineStarts(file)), (f) => !host.fileExists || host.fileExists(f) ? host.readFile(f) : void 0);\n      }\n      documentPositionMappers.set(path, mapper || identitySourceMapConsumer);\n      return mapper || identitySourceMapConsumer;\n    }\n    function tryGetSourcePosition(info) {\n      if (!isDeclarationFileName(info.fileName))\n        return void 0;\n      const file = getSourceFile(info.fileName);\n      if (!file)\n        return void 0;\n      const newLoc = getDocumentPositionMapper2(info.fileName).getSourcePosition(info);\n      return !newLoc || newLoc === info ? void 0 : tryGetSourcePosition(newLoc) || newLoc;\n    }\n    function tryGetGeneratedPosition(info) {\n      if (isDeclarationFileName(info.fileName))\n        return void 0;\n      const sourceFile = getSourceFile(info.fileName);\n      if (!sourceFile)\n        return void 0;\n      const program = host.getProgram();\n      if (program.isSourceOfProjectReferenceRedirect(sourceFile.fileName)) {\n        return void 0;\n      }\n      const options = program.getCompilerOptions();\n      const outPath = outFile(options);\n      const declarationPath = outPath ? removeFileExtension(outPath) + \".d.ts\" : getDeclarationEmitOutputFilePathWorker(info.fileName, program.getCompilerOptions(), currentDirectory, program.getCommonSourceDirectory(), getCanonicalFileName);\n      if (declarationPath === void 0)\n        return void 0;\n      const newLoc = getDocumentPositionMapper2(declarationPath, info.fileName).getGeneratedPosition(info);\n      return newLoc === info ? void 0 : newLoc;\n    }\n    function getSourceFile(fileName) {\n      const program = host.getProgram();\n      if (!program)\n        return void 0;\n      const path = toPath3(fileName);\n      const file = program.getSourceFileByPath(path);\n      return file && file.resolvedPath === path ? file : void 0;\n    }\n    function getOrCreateSourceFileLike(fileName) {\n      const path = toPath3(fileName);\n      const fileFromCache = sourceFileLike.get(path);\n      if (fileFromCache !== void 0)\n        return fileFromCache ? fileFromCache : void 0;\n      if (!host.readFile || host.fileExists && !host.fileExists(path)) {\n        sourceFileLike.set(path, false);\n        return void 0;\n      }\n      const text = host.readFile(path);\n      const file = text ? createSourceFileLike(text) : false;\n      sourceFileLike.set(path, file);\n      return file ? file : void 0;\n    }\n    function getSourceFileLike(fileName) {\n      return !host.getSourceFileLike ? getSourceFile(fileName) || getOrCreateSourceFileLike(fileName) : host.getSourceFileLike(fileName);\n    }\n    function toLineColumnOffset(fileName, position) {\n      const file = getSourceFileLike(fileName);\n      return file.getLineAndCharacterOfPosition(position);\n    }\n    function clearCache() {\n      sourceFileLike.clear();\n      documentPositionMappers.clear();\n    }\n  }\n  function getDocumentPositionMapper(host, generatedFileName, generatedFileLineInfo, readMapFile) {\n    let mapFileName = tryGetSourceMappingURL(generatedFileLineInfo);\n    if (mapFileName) {\n      const match = base64UrlRegExp.exec(mapFileName);\n      if (match) {\n        if (match[1]) {\n          const base64Object = match[1];\n          return convertDocumentToSourceMapper(host, base64decode(sys, base64Object), generatedFileName);\n        }\n        mapFileName = void 0;\n      }\n    }\n    const possibleMapLocations = [];\n    if (mapFileName) {\n      possibleMapLocations.push(mapFileName);\n    }\n    possibleMapLocations.push(generatedFileName + \".map\");\n    const originalMapFileName = mapFileName && getNormalizedAbsolutePath(mapFileName, getDirectoryPath(generatedFileName));\n    for (const location of possibleMapLocations) {\n      const mapFileName2 = getNormalizedAbsolutePath(location, getDirectoryPath(generatedFileName));\n      const mapFileContents = readMapFile(mapFileName2, originalMapFileName);\n      if (isString(mapFileContents)) {\n        return convertDocumentToSourceMapper(host, mapFileContents, mapFileName2);\n      }\n      if (mapFileContents !== void 0) {\n        return mapFileContents || void 0;\n      }\n    }\n    return void 0;\n  }\n  function convertDocumentToSourceMapper(host, contents, mapFileName) {\n    const map2 = tryParseRawSourceMap(contents);\n    if (!map2 || !map2.sources || !map2.file || !map2.mappings) {\n      return void 0;\n    }\n    if (map2.sourcesContent && map2.sourcesContent.some(isString))\n      return void 0;\n    return createDocumentPositionMapper(host, map2, mapFileName);\n  }\n  function createSourceFileLike(text, lineMap) {\n    return {\n      text,\n      lineMap,\n      getLineAndCharacterOfPosition(pos) {\n        return computeLineAndCharacterOfPosition(getLineStarts(this), pos);\n      }\n    };\n  }\n  var base64UrlRegExp;\n  var init_sourcemaps = __esm({\n    \"src/services/sourcemaps.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts4();\n      base64UrlRegExp = /^data:(?:application\\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\\/=]+)$)?/;\n    }\n  });\n  function computeSuggestionDiagnostics(sourceFile, program, cancellationToken) {\n    program.getSemanticDiagnostics(sourceFile, cancellationToken);\n    const diags = [];\n    const checker = program.getTypeChecker();\n    const isCommonJSFile = sourceFile.impliedNodeFormat === 1 || fileExtensionIsOneOf(sourceFile.fileName, [\".cts\", \".cjs\"]);\n    if (!isCommonJSFile && sourceFile.commonJsModuleIndicator && (programContainsEsModules(program) || compilerOptionsIndicateEsModules(program.getCompilerOptions())) && containsTopLevelCommonjs(sourceFile)) {\n      diags.push(createDiagnosticForNode(getErrorNodeFromCommonJsIndicator(sourceFile.commonJsModuleIndicator), Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));\n    }\n    const isJsFile = isSourceFileJS(sourceFile);\n    visitedNestedConvertibleFunctions.clear();\n    check(sourceFile);\n    if (getAllowSyntheticDefaultImports(program.getCompilerOptions())) {\n      for (const moduleSpecifier of sourceFile.imports) {\n        const importNode = importFromModuleSpecifier(moduleSpecifier);\n        const name = importNameForConvertToDefaultImport(importNode);\n        if (!name)\n          continue;\n        const module2 = getResolvedModule(sourceFile, moduleSpecifier.text, getModeForUsageLocation(sourceFile, moduleSpecifier));\n        const resolvedFile = module2 && program.getSourceFile(module2.resolvedFileName);\n        if (resolvedFile && resolvedFile.externalModuleIndicator && resolvedFile.externalModuleIndicator !== true && isExportAssignment(resolvedFile.externalModuleIndicator) && resolvedFile.externalModuleIndicator.isExportEquals) {\n          diags.push(createDiagnosticForNode(name, Diagnostics.Import_may_be_converted_to_a_default_import));\n        }\n      }\n    }\n    addRange(diags, sourceFile.bindSuggestionDiagnostics);\n    addRange(diags, program.getSuggestionDiagnostics(sourceFile, cancellationToken));\n    return diags.sort((d1, d2) => d1.start - d2.start);\n    function check(node) {\n      if (isJsFile) {\n        if (canBeConvertedToClass(node, checker)) {\n          diags.push(createDiagnosticForNode(isVariableDeclaration(node.parent) ? node.parent.name : node, Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));\n        }\n      } else {\n        if (isVariableStatement(node) && node.parent === sourceFile && node.declarationList.flags & 2 && node.declarationList.declarations.length === 1) {\n          const init = node.declarationList.declarations[0].initializer;\n          if (init && isRequireCall(init, true)) {\n            diags.push(createDiagnosticForNode(init, Diagnostics.require_call_may_be_converted_to_an_import));\n          }\n        }\n        if (ts_codefix_exports.parameterShouldGetTypeFromJSDoc(node)) {\n          diags.push(createDiagnosticForNode(node.name || node, Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types));\n        }\n      }\n      if (canBeConvertedToAsync(node)) {\n        addConvertToAsyncFunctionDiagnostics(node, checker, diags);\n      }\n      node.forEachChild(check);\n    }\n  }\n  function containsTopLevelCommonjs(sourceFile) {\n    return sourceFile.statements.some((statement) => {\n      switch (statement.kind) {\n        case 240:\n          return statement.declarationList.declarations.some((decl) => !!decl.initializer && isRequireCall(propertyAccessLeftHandSide(decl.initializer), true));\n        case 241: {\n          const { expression } = statement;\n          if (!isBinaryExpression(expression))\n            return isRequireCall(expression, true);\n          const kind = getAssignmentDeclarationKind(expression);\n          return kind === 1 || kind === 2;\n        }\n        default:\n          return false;\n      }\n    });\n  }\n  function propertyAccessLeftHandSide(node) {\n    return isPropertyAccessExpression(node) ? propertyAccessLeftHandSide(node.expression) : node;\n  }\n  function importNameForConvertToDefaultImport(node) {\n    switch (node.kind) {\n      case 269:\n        const { importClause, moduleSpecifier } = node;\n        return importClause && !importClause.name && importClause.namedBindings && importClause.namedBindings.kind === 271 && isStringLiteral(moduleSpecifier) ? importClause.namedBindings.name : void 0;\n      case 268:\n        return node.name;\n      default:\n        return void 0;\n    }\n  }\n  function addConvertToAsyncFunctionDiagnostics(node, checker, diags) {\n    if (isConvertibleFunction(node, checker) && !visitedNestedConvertibleFunctions.has(getKeyFromNode(node))) {\n      diags.push(createDiagnosticForNode(!node.name && isVariableDeclaration(node.parent) && isIdentifier(node.parent.name) ? node.parent.name : node, Diagnostics.This_may_be_converted_to_an_async_function));\n    }\n  }\n  function isConvertibleFunction(node, checker) {\n    return !isAsyncFunction(node) && node.body && isBlock(node.body) && hasReturnStatementWithPromiseHandler(node.body, checker) && returnsPromise(node, checker);\n  }\n  function returnsPromise(node, checker) {\n    const signature = checker.getSignatureFromDeclaration(node);\n    const returnType = signature ? checker.getReturnTypeOfSignature(signature) : void 0;\n    return !!returnType && !!checker.getPromisedTypeOfPromise(returnType);\n  }\n  function getErrorNodeFromCommonJsIndicator(commonJsModuleIndicator) {\n    return isBinaryExpression(commonJsModuleIndicator) ? commonJsModuleIndicator.left : commonJsModuleIndicator;\n  }\n  function hasReturnStatementWithPromiseHandler(body, checker) {\n    return !!forEachReturnStatement(body, (statement) => isReturnStatementWithFixablePromiseHandler(statement, checker));\n  }\n  function isReturnStatementWithFixablePromiseHandler(node, checker) {\n    return isReturnStatement(node) && !!node.expression && isFixablePromiseHandler(node.expression, checker);\n  }\n  function isFixablePromiseHandler(node, checker) {\n    if (!isPromiseHandler(node) || !hasSupportedNumberOfArguments(node) || !node.arguments.every((arg) => isFixablePromiseArgument(arg, checker))) {\n      return false;\n    }\n    let currentNode = node.expression.expression;\n    while (isPromiseHandler(currentNode) || isPropertyAccessExpression(currentNode)) {\n      if (isCallExpression(currentNode)) {\n        if (!hasSupportedNumberOfArguments(currentNode) || !currentNode.arguments.every((arg) => isFixablePromiseArgument(arg, checker))) {\n          return false;\n        }\n        currentNode = currentNode.expression.expression;\n      } else {\n        currentNode = currentNode.expression;\n      }\n    }\n    return true;\n  }\n  function isPromiseHandler(node) {\n    return isCallExpression(node) && (hasPropertyAccessExpressionWithName(node, \"then\") || hasPropertyAccessExpressionWithName(node, \"catch\") || hasPropertyAccessExpressionWithName(node, \"finally\"));\n  }\n  function hasSupportedNumberOfArguments(node) {\n    const name = node.expression.name.text;\n    const maxArguments = name === \"then\" ? 2 : name === \"catch\" ? 1 : name === \"finally\" ? 1 : 0;\n    if (node.arguments.length > maxArguments)\n      return false;\n    if (node.arguments.length < maxArguments)\n      return true;\n    return maxArguments === 1 || some(node.arguments, (arg) => {\n      return arg.kind === 104 || isIdentifier(arg) && arg.text === \"undefined\";\n    });\n  }\n  function isFixablePromiseArgument(arg, checker) {\n    switch (arg.kind) {\n      case 259:\n      case 215:\n        const functionFlags = getFunctionFlags(arg);\n        if (functionFlags & 1) {\n          return false;\n        }\n      case 216:\n        visitedNestedConvertibleFunctions.set(getKeyFromNode(arg), true);\n      case 104:\n        return true;\n      case 79:\n      case 208: {\n        const symbol = checker.getSymbolAtLocation(arg);\n        if (!symbol) {\n          return false;\n        }\n        return checker.isUndefinedSymbol(symbol) || some(skipAlias(symbol, checker).declarations, (d) => isFunctionLike(d) || hasInitializer(d) && !!d.initializer && isFunctionLike(d.initializer));\n      }\n      default:\n        return false;\n    }\n  }\n  function getKeyFromNode(exp) {\n    return `${exp.pos.toString()}:${exp.end.toString()}`;\n  }\n  function canBeConvertedToClass(node, checker) {\n    var _a2, _b, _c, _d;\n    if (isFunctionExpression(node)) {\n      if (isVariableDeclaration(node.parent) && ((_a2 = node.symbol.members) == null ? void 0 : _a2.size)) {\n        return true;\n      }\n      const symbol = checker.getSymbolOfExpando(node, false);\n      return !!(symbol && (((_b = symbol.exports) == null ? void 0 : _b.size) || ((_c = symbol.members) == null ? void 0 : _c.size)));\n    }\n    if (isFunctionDeclaration(node)) {\n      return !!((_d = node.symbol.members) == null ? void 0 : _d.size);\n    }\n    return false;\n  }\n  function canBeConvertedToAsync(node) {\n    switch (node.kind) {\n      case 259:\n      case 171:\n      case 215:\n      case 216:\n        return true;\n      default:\n        return false;\n    }\n  }\n  var visitedNestedConvertibleFunctions;\n  var init_suggestionDiagnostics = __esm({\n    \"src/services/suggestionDiagnostics.ts\"() {\n      \"use strict\";\n      init_ts4();\n      visitedNestedConvertibleFunctions = /* @__PURE__ */ new Map();\n    }\n  });\n  function transpileModule(input, transpileOptions) {\n    const diagnostics = [];\n    const options = transpileOptions.compilerOptions ? fixupCompilerOptions(transpileOptions.compilerOptions, diagnostics) : {};\n    const defaultOptions = getDefaultCompilerOptions2();\n    for (const key in defaultOptions) {\n      if (hasProperty(defaultOptions, key) && options[key] === void 0) {\n        options[key] = defaultOptions[key];\n      }\n    }\n    for (const option of transpileOptionValueCompilerOptions) {\n      if (options.verbatimModuleSyntax && optionsRedundantWithVerbatimModuleSyntax.has(option.name)) {\n        continue;\n      }\n      options[option.name] = option.transpileOptionValue;\n    }\n    options.suppressOutputPathCheck = true;\n    options.allowNonTsExtensions = true;\n    const newLine = getNewLineCharacter(options);\n    const compilerHost = {\n      getSourceFile: (fileName) => fileName === normalizePath(inputFileName) ? sourceFile : void 0,\n      writeFile: (name, text) => {\n        if (fileExtensionIs(name, \".map\")) {\n          Debug.assertEqual(sourceMapText, void 0, \"Unexpected multiple source map outputs, file:\", name);\n          sourceMapText = text;\n        } else {\n          Debug.assertEqual(outputText, void 0, \"Unexpected multiple outputs, file:\", name);\n          outputText = text;\n        }\n      },\n      getDefaultLibFileName: () => \"lib.d.ts\",\n      useCaseSensitiveFileNames: () => false,\n      getCanonicalFileName: (fileName) => fileName,\n      getCurrentDirectory: () => \"\",\n      getNewLine: () => newLine,\n      fileExists: (fileName) => fileName === inputFileName,\n      readFile: () => \"\",\n      directoryExists: () => true,\n      getDirectories: () => []\n    };\n    const inputFileName = transpileOptions.fileName || (transpileOptions.compilerOptions && transpileOptions.compilerOptions.jsx ? \"module.tsx\" : \"module.ts\");\n    const sourceFile = createSourceFile(inputFileName, input, {\n      languageVersion: getEmitScriptTarget(options),\n      impliedNodeFormat: getImpliedNodeFormatForFile(toPath(inputFileName, \"\", compilerHost.getCanonicalFileName), void 0, compilerHost, options),\n      setExternalModuleIndicator: getSetExternalModuleIndicator(options)\n    });\n    if (transpileOptions.moduleName) {\n      sourceFile.moduleName = transpileOptions.moduleName;\n    }\n    if (transpileOptions.renamedDependencies) {\n      sourceFile.renamedDependencies = new Map(Object.entries(transpileOptions.renamedDependencies));\n    }\n    let outputText;\n    let sourceMapText;\n    const program = createProgram([inputFileName], options, compilerHost);\n    if (transpileOptions.reportDiagnostics) {\n      addRange(diagnostics, program.getSyntacticDiagnostics(sourceFile));\n      addRange(diagnostics, program.getOptionsDiagnostics());\n    }\n    program.emit(void 0, void 0, void 0, void 0, transpileOptions.transformers);\n    if (outputText === void 0)\n      return Debug.fail(\"Output generation failed\");\n    return { outputText, diagnostics, sourceMapText };\n  }\n  function transpile(input, compilerOptions, fileName, diagnostics, moduleName) {\n    const output = transpileModule(input, { compilerOptions, fileName, reportDiagnostics: !!diagnostics, moduleName });\n    addRange(diagnostics, output.diagnostics);\n    return output.outputText;\n  }\n  function fixupCompilerOptions(options, diagnostics) {\n    commandLineOptionsStringToEnum = commandLineOptionsStringToEnum || filter(optionDeclarations, (o) => typeof o.type === \"object\" && !forEachEntry(o.type, (v) => typeof v !== \"number\"));\n    options = cloneCompilerOptions(options);\n    for (const opt of commandLineOptionsStringToEnum) {\n      if (!hasProperty(options, opt.name)) {\n        continue;\n      }\n      const value = options[opt.name];\n      if (isString(value)) {\n        options[opt.name] = parseCustomTypeOption(opt, value, diagnostics);\n      } else {\n        if (!forEachEntry(opt.type, (v) => v === value)) {\n          diagnostics.push(createCompilerDiagnosticForInvalidCustomType(opt));\n        }\n      }\n    }\n    return options;\n  }\n  var optionsRedundantWithVerbatimModuleSyntax, commandLineOptionsStringToEnum;\n  var init_transpile = __esm({\n    \"src/services/transpile.ts\"() {\n      \"use strict\";\n      init_ts4();\n      optionsRedundantWithVerbatimModuleSyntax = /* @__PURE__ */ new Set([\n        \"isolatedModules\",\n        \"preserveValueImports\",\n        \"importsNotUsedAsValues\"\n      ]);\n    }\n  });\n  function getNavigateToItems(sourceFiles, checker, cancellationToken, searchValue, maxResultCount, excludeDtsFiles) {\n    const patternMatcher = createPatternMatcher(searchValue);\n    if (!patternMatcher)\n      return emptyArray;\n    const rawItems = [];\n    for (const sourceFile of sourceFiles) {\n      cancellationToken.throwIfCancellationRequested();\n      if (excludeDtsFiles && sourceFile.isDeclarationFile) {\n        continue;\n      }\n      sourceFile.getNamedDeclarations().forEach((declarations, name) => {\n        getItemsFromNamedDeclaration(patternMatcher, name, declarations, checker, sourceFile.fileName, rawItems);\n      });\n    }\n    rawItems.sort(compareNavigateToItems);\n    return (maxResultCount === void 0 ? rawItems : rawItems.slice(0, maxResultCount)).map(createNavigateToItem);\n  }\n  function getItemsFromNamedDeclaration(patternMatcher, name, declarations, checker, fileName, rawItems) {\n    const match = patternMatcher.getMatchForLastSegmentOfPattern(name);\n    if (!match) {\n      return;\n    }\n    for (const declaration of declarations) {\n      if (!shouldKeepItem(declaration, checker))\n        continue;\n      if (patternMatcher.patternContainsDots) {\n        const fullMatch = patternMatcher.getFullMatch(getContainers(declaration), name);\n        if (fullMatch) {\n          rawItems.push({ name, fileName, matchKind: fullMatch.kind, isCaseSensitive: fullMatch.isCaseSensitive, declaration });\n        }\n      } else {\n        rawItems.push({ name, fileName, matchKind: match.kind, isCaseSensitive: match.isCaseSensitive, declaration });\n      }\n    }\n  }\n  function shouldKeepItem(declaration, checker) {\n    switch (declaration.kind) {\n      case 270:\n      case 273:\n      case 268:\n        const importer = checker.getSymbolAtLocation(declaration.name);\n        const imported = checker.getAliasedSymbol(importer);\n        return importer.escapedName !== imported.escapedName;\n      default:\n        return true;\n    }\n  }\n  function tryAddSingleDeclarationName(declaration, containers) {\n    const name = getNameOfDeclaration(declaration);\n    return !!name && (pushLiteral(name, containers) || name.kind === 164 && tryAddComputedPropertyName(name.expression, containers));\n  }\n  function tryAddComputedPropertyName(expression, containers) {\n    return pushLiteral(expression, containers) || isPropertyAccessExpression(expression) && (containers.push(expression.name.text), true) && tryAddComputedPropertyName(expression.expression, containers);\n  }\n  function pushLiteral(node, containers) {\n    return isPropertyNameLiteral(node) && (containers.push(getTextOfIdentifierOrLiteral(node)), true);\n  }\n  function getContainers(declaration) {\n    const containers = [];\n    const name = getNameOfDeclaration(declaration);\n    if (name && name.kind === 164 && !tryAddComputedPropertyName(name.expression, containers)) {\n      return emptyArray;\n    }\n    containers.shift();\n    let container = getContainerNode(declaration);\n    while (container) {\n      if (!tryAddSingleDeclarationName(container, containers)) {\n        return emptyArray;\n      }\n      container = getContainerNode(container);\n    }\n    return containers.reverse();\n  }\n  function compareNavigateToItems(i1, i2) {\n    return compareValues(i1.matchKind, i2.matchKind) || compareStringsCaseSensitiveUI(i1.name, i2.name);\n  }\n  function createNavigateToItem(rawItem) {\n    const declaration = rawItem.declaration;\n    const container = getContainerNode(declaration);\n    const containerName = container && getNameOfDeclaration(container);\n    return {\n      name: rawItem.name,\n      kind: getNodeKind(declaration),\n      kindModifiers: getNodeModifiers(declaration),\n      matchKind: PatternMatchKind[rawItem.matchKind],\n      isCaseSensitive: rawItem.isCaseSensitive,\n      fileName: rawItem.fileName,\n      textSpan: createTextSpanFromNode(declaration),\n      containerName: containerName ? containerName.text : \"\",\n      containerKind: containerName ? getNodeKind(container) : \"\"\n    };\n  }\n  var init_navigateTo = __esm({\n    \"src/services/navigateTo.ts\"() {\n      \"use strict\";\n      init_ts4();\n    }\n  });\n  var ts_NavigateTo_exports = {};\n  __export2(ts_NavigateTo_exports, {\n    getNavigateToItems: () => getNavigateToItems\n  });\n  var init_ts_NavigateTo = __esm({\n    \"src/services/_namespaces/ts.NavigateTo.ts\"() {\n      \"use strict\";\n      init_navigateTo();\n    }\n  });\n  function getNavigationBarItems(sourceFile, cancellationToken) {\n    curCancellationToken = cancellationToken;\n    curSourceFile = sourceFile;\n    try {\n      return map(primaryNavBarMenuItems(rootNavigationBarNode(sourceFile)), convertToPrimaryNavBarMenuItem);\n    } finally {\n      reset();\n    }\n  }\n  function getNavigationTree(sourceFile, cancellationToken) {\n    curCancellationToken = cancellationToken;\n    curSourceFile = sourceFile;\n    try {\n      return convertToTree(rootNavigationBarNode(sourceFile));\n    } finally {\n      reset();\n    }\n  }\n  function reset() {\n    curSourceFile = void 0;\n    curCancellationToken = void 0;\n    parentsStack = [];\n    parent = void 0;\n    emptyChildItemArray = [];\n  }\n  function nodeText(node) {\n    return cleanText(node.getText(curSourceFile));\n  }\n  function navigationBarNodeKind(n) {\n    return n.node.kind;\n  }\n  function pushChild(parent2, child) {\n    if (parent2.children) {\n      parent2.children.push(child);\n    } else {\n      parent2.children = [child];\n    }\n  }\n  function rootNavigationBarNode(sourceFile) {\n    Debug.assert(!parentsStack.length);\n    const root = { node: sourceFile, name: void 0, additionalNodes: void 0, parent: void 0, children: void 0, indent: 0 };\n    parent = root;\n    for (const statement of sourceFile.statements) {\n      addChildrenRecursively(statement);\n    }\n    endNode();\n    Debug.assert(!parent && !parentsStack.length);\n    return root;\n  }\n  function addLeafNode(node, name) {\n    pushChild(parent, emptyNavigationBarNode(node, name));\n  }\n  function emptyNavigationBarNode(node, name) {\n    return {\n      node,\n      name: name || (isDeclaration(node) || isExpression(node) ? getNameOfDeclaration(node) : void 0),\n      additionalNodes: void 0,\n      parent,\n      children: void 0,\n      indent: parent.indent + 1\n    };\n  }\n  function addTrackedEs5Class(name) {\n    if (!trackedEs5Classes) {\n      trackedEs5Classes = /* @__PURE__ */ new Map();\n    }\n    trackedEs5Classes.set(name, true);\n  }\n  function endNestedNodes(depth) {\n    for (let i = 0; i < depth; i++)\n      endNode();\n  }\n  function startNestedNodes(targetNode, entityName) {\n    const names = [];\n    while (!isPropertyNameLiteral(entityName)) {\n      const name = getNameOrArgument(entityName);\n      const nameText = getElementOrPropertyAccessName(entityName);\n      entityName = entityName.expression;\n      if (nameText === \"prototype\" || isPrivateIdentifier(name))\n        continue;\n      names.push(name);\n    }\n    names.push(entityName);\n    for (let i = names.length - 1; i > 0; i--) {\n      const name = names[i];\n      startNode(targetNode, name);\n    }\n    return [names.length - 1, names[0]];\n  }\n  function startNode(node, name) {\n    const navNode = emptyNavigationBarNode(node, name);\n    pushChild(parent, navNode);\n    parentsStack.push(parent);\n    trackedEs5ClassesStack.push(trackedEs5Classes);\n    trackedEs5Classes = void 0;\n    parent = navNode;\n  }\n  function endNode() {\n    if (parent.children) {\n      mergeChildren(parent.children, parent);\n      sortChildren(parent.children);\n    }\n    parent = parentsStack.pop();\n    trackedEs5Classes = trackedEs5ClassesStack.pop();\n  }\n  function addNodeWithRecursiveChild(node, child, name) {\n    startNode(node, name);\n    addChildrenRecursively(child);\n    endNode();\n  }\n  function addNodeWithRecursiveInitializer(node) {\n    if (node.initializer && isFunctionOrClassExpression(node.initializer)) {\n      startNode(node);\n      forEachChild(node.initializer, addChildrenRecursively);\n      endNode();\n    } else {\n      addNodeWithRecursiveChild(node, node.initializer);\n    }\n  }\n  function hasNavigationBarName(node) {\n    return !hasDynamicName(node) || node.kind !== 223 && isPropertyAccessExpression(node.name.expression) && isIdentifier(node.name.expression.expression) && idText(node.name.expression.expression) === \"Symbol\";\n  }\n  function addChildrenRecursively(node) {\n    curCancellationToken.throwIfCancellationRequested();\n    if (!node || isToken(node)) {\n      return;\n    }\n    switch (node.kind) {\n      case 173:\n        const ctr = node;\n        addNodeWithRecursiveChild(ctr, ctr.body);\n        for (const param of ctr.parameters) {\n          if (isParameterPropertyDeclaration(param, ctr)) {\n            addLeafNode(param);\n          }\n        }\n        break;\n      case 171:\n      case 174:\n      case 175:\n      case 170:\n        if (hasNavigationBarName(node)) {\n          addNodeWithRecursiveChild(node, node.body);\n        }\n        break;\n      case 169:\n        if (hasNavigationBarName(node)) {\n          addNodeWithRecursiveInitializer(node);\n        }\n        break;\n      case 168:\n        if (hasNavigationBarName(node)) {\n          addLeafNode(node);\n        }\n        break;\n      case 270:\n        const importClause = node;\n        if (importClause.name) {\n          addLeafNode(importClause.name);\n        }\n        const { namedBindings } = importClause;\n        if (namedBindings) {\n          if (namedBindings.kind === 271) {\n            addLeafNode(namedBindings);\n          } else {\n            for (const element of namedBindings.elements) {\n              addLeafNode(element);\n            }\n          }\n        }\n        break;\n      case 300:\n        addNodeWithRecursiveChild(node, node.name);\n        break;\n      case 301:\n        const { expression } = node;\n        isIdentifier(expression) ? addLeafNode(node, expression) : addLeafNode(node);\n        break;\n      case 205:\n      case 299:\n      case 257: {\n        const child = node;\n        if (isBindingPattern(child.name)) {\n          addChildrenRecursively(child.name);\n        } else {\n          addNodeWithRecursiveInitializer(child);\n        }\n        break;\n      }\n      case 259:\n        const nameNode = node.name;\n        if (nameNode && isIdentifier(nameNode)) {\n          addTrackedEs5Class(nameNode.text);\n        }\n        addNodeWithRecursiveChild(node, node.body);\n        break;\n      case 216:\n      case 215:\n        addNodeWithRecursiveChild(node, node.body);\n        break;\n      case 263:\n        startNode(node);\n        for (const member of node.members) {\n          if (!isComputedProperty(member)) {\n            addLeafNode(member);\n          }\n        }\n        endNode();\n        break;\n      case 260:\n      case 228:\n      case 261:\n        startNode(node);\n        for (const member of node.members) {\n          addChildrenRecursively(member);\n        }\n        endNode();\n        break;\n      case 264:\n        addNodeWithRecursiveChild(node, getInteriorModule(node).body);\n        break;\n      case 274: {\n        const expression2 = node.expression;\n        const child = isObjectLiteralExpression(expression2) || isCallExpression(expression2) ? expression2 : isArrowFunction(expression2) || isFunctionExpression(expression2) ? expression2.body : void 0;\n        if (child) {\n          startNode(node);\n          addChildrenRecursively(child);\n          endNode();\n        } else {\n          addLeafNode(node);\n        }\n        break;\n      }\n      case 278:\n      case 268:\n      case 178:\n      case 176:\n      case 177:\n      case 262:\n        addLeafNode(node);\n        break;\n      case 210:\n      case 223: {\n        const special = getAssignmentDeclarationKind(node);\n        switch (special) {\n          case 1:\n          case 2:\n            addNodeWithRecursiveChild(node, node.right);\n            return;\n          case 6:\n          case 3: {\n            const binaryExpression = node;\n            const assignmentTarget = binaryExpression.left;\n            const prototypeAccess = special === 3 ? assignmentTarget.expression : assignmentTarget;\n            let depth = 0;\n            let className;\n            if (isIdentifier(prototypeAccess.expression)) {\n              addTrackedEs5Class(prototypeAccess.expression.text);\n              className = prototypeAccess.expression;\n            } else {\n              [depth, className] = startNestedNodes(binaryExpression, prototypeAccess.expression);\n            }\n            if (special === 6) {\n              if (isObjectLiteralExpression(binaryExpression.right)) {\n                if (binaryExpression.right.properties.length > 0) {\n                  startNode(binaryExpression, className);\n                  forEachChild(binaryExpression.right, addChildrenRecursively);\n                  endNode();\n                }\n              }\n            } else if (isFunctionExpression(binaryExpression.right) || isArrowFunction(binaryExpression.right)) {\n              addNodeWithRecursiveChild(node, binaryExpression.right, className);\n            } else {\n              startNode(binaryExpression, className);\n              addNodeWithRecursiveChild(node, binaryExpression.right, assignmentTarget.name);\n              endNode();\n            }\n            endNestedNodes(depth);\n            return;\n          }\n          case 7:\n          case 9: {\n            const defineCall = node;\n            const className = special === 7 ? defineCall.arguments[0] : defineCall.arguments[0].expression;\n            const memberName = defineCall.arguments[1];\n            const [depth, classNameIdentifier] = startNestedNodes(node, className);\n            startNode(node, classNameIdentifier);\n            startNode(node, setTextRange(factory.createIdentifier(memberName.text), memberName));\n            addChildrenRecursively(node.arguments[2]);\n            endNode();\n            endNode();\n            endNestedNodes(depth);\n            return;\n          }\n          case 5: {\n            const binaryExpression = node;\n            const assignmentTarget = binaryExpression.left;\n            const targetFunction = assignmentTarget.expression;\n            if (isIdentifier(targetFunction) && getElementOrPropertyAccessName(assignmentTarget) !== \"prototype\" && trackedEs5Classes && trackedEs5Classes.has(targetFunction.text)) {\n              if (isFunctionExpression(binaryExpression.right) || isArrowFunction(binaryExpression.right)) {\n                addNodeWithRecursiveChild(node, binaryExpression.right, targetFunction);\n              } else if (isBindableStaticAccessExpression(assignmentTarget)) {\n                startNode(binaryExpression, targetFunction);\n                addNodeWithRecursiveChild(binaryExpression.left, binaryExpression.right, getNameOrArgument(assignmentTarget));\n                endNode();\n              }\n              return;\n            }\n            break;\n          }\n          case 4:\n          case 0:\n          case 8:\n            break;\n          default:\n            Debug.assertNever(special);\n        }\n      }\n      default:\n        if (hasJSDocNodes(node)) {\n          forEach(node.jsDoc, (jsDoc) => {\n            forEach(jsDoc.tags, (tag) => {\n              if (isJSDocTypeAlias(tag)) {\n                addLeafNode(tag);\n              }\n            });\n          });\n        }\n        forEachChild(node, addChildrenRecursively);\n    }\n  }\n  function mergeChildren(children, node) {\n    const nameToItems = /* @__PURE__ */ new Map();\n    filterMutate(children, (child, index) => {\n      const declName = child.name || getNameOfDeclaration(child.node);\n      const name = declName && nodeText(declName);\n      if (!name) {\n        return true;\n      }\n      const itemsWithSameName = nameToItems.get(name);\n      if (!itemsWithSameName) {\n        nameToItems.set(name, child);\n        return true;\n      }\n      if (itemsWithSameName instanceof Array) {\n        for (const itemWithSameName of itemsWithSameName) {\n          if (tryMerge(itemWithSameName, child, index, node)) {\n            return false;\n          }\n        }\n        itemsWithSameName.push(child);\n        return true;\n      } else {\n        const itemWithSameName = itemsWithSameName;\n        if (tryMerge(itemWithSameName, child, index, node)) {\n          return false;\n        }\n        nameToItems.set(name, [itemWithSameName, child]);\n        return true;\n      }\n    });\n  }\n  function tryMergeEs5Class(a, b, bIndex, parent2) {\n    function isPossibleConstructor(node) {\n      return isFunctionExpression(node) || isFunctionDeclaration(node) || isVariableDeclaration(node);\n    }\n    const bAssignmentDeclarationKind = isBinaryExpression(b.node) || isCallExpression(b.node) ? getAssignmentDeclarationKind(b.node) : 0;\n    const aAssignmentDeclarationKind = isBinaryExpression(a.node) || isCallExpression(a.node) ? getAssignmentDeclarationKind(a.node) : 0;\n    if (isEs5ClassMember[bAssignmentDeclarationKind] && isEs5ClassMember[aAssignmentDeclarationKind] || isPossibleConstructor(a.node) && isEs5ClassMember[bAssignmentDeclarationKind] || isPossibleConstructor(b.node) && isEs5ClassMember[aAssignmentDeclarationKind] || isClassDeclaration(a.node) && isSynthesized(a.node) && isEs5ClassMember[bAssignmentDeclarationKind] || isClassDeclaration(b.node) && isEs5ClassMember[aAssignmentDeclarationKind] || isClassDeclaration(a.node) && isSynthesized(a.node) && isPossibleConstructor(b.node) || isClassDeclaration(b.node) && isPossibleConstructor(a.node) && isSynthesized(a.node)) {\n      let lastANode = a.additionalNodes && lastOrUndefined(a.additionalNodes) || a.node;\n      if (!isClassDeclaration(a.node) && !isClassDeclaration(b.node) || isPossibleConstructor(a.node) || isPossibleConstructor(b.node)) {\n        const ctorFunction = isPossibleConstructor(a.node) ? a.node : isPossibleConstructor(b.node) ? b.node : void 0;\n        if (ctorFunction !== void 0) {\n          const ctorNode = setTextRange(factory.createConstructorDeclaration(void 0, [], void 0), ctorFunction);\n          const ctor = emptyNavigationBarNode(ctorNode);\n          ctor.indent = a.indent + 1;\n          ctor.children = a.node === ctorFunction ? a.children : b.children;\n          a.children = a.node === ctorFunction ? concatenate([ctor], b.children || [b]) : concatenate(a.children || [{ ...a }], [ctor]);\n        } else {\n          if (a.children || b.children) {\n            a.children = concatenate(a.children || [{ ...a }], b.children || [b]);\n            if (a.children) {\n              mergeChildren(a.children, a);\n              sortChildren(a.children);\n            }\n          }\n        }\n        lastANode = a.node = setTextRange(factory.createClassDeclaration(void 0, a.name || factory.createIdentifier(\"__class__\"), void 0, void 0, []), a.node);\n      } else {\n        a.children = concatenate(a.children, b.children);\n        if (a.children) {\n          mergeChildren(a.children, a);\n        }\n      }\n      const bNode = b.node;\n      if (parent2.children[bIndex - 1].node.end === lastANode.end) {\n        setTextRange(lastANode, { pos: lastANode.pos, end: bNode.end });\n      } else {\n        if (!a.additionalNodes)\n          a.additionalNodes = [];\n        a.additionalNodes.push(setTextRange(factory.createClassDeclaration(void 0, a.name || factory.createIdentifier(\"__class__\"), void 0, void 0, []), b.node));\n      }\n      return true;\n    }\n    return bAssignmentDeclarationKind === 0 ? false : true;\n  }\n  function tryMerge(a, b, bIndex, parent2) {\n    if (tryMergeEs5Class(a, b, bIndex, parent2)) {\n      return true;\n    }\n    if (shouldReallyMerge(a.node, b.node, parent2)) {\n      merge(a, b);\n      return true;\n    }\n    return false;\n  }\n  function shouldReallyMerge(a, b, parent2) {\n    if (a.kind !== b.kind || a.parent !== b.parent && !(isOwnChild(a, parent2) && isOwnChild(b, parent2))) {\n      return false;\n    }\n    switch (a.kind) {\n      case 169:\n      case 171:\n      case 174:\n      case 175:\n        return isStatic(a) === isStatic(b);\n      case 264:\n        return areSameModule(a, b) && getFullyQualifiedModuleName(a) === getFullyQualifiedModuleName(b);\n      default:\n        return true;\n    }\n  }\n  function isSynthesized(node) {\n    return !!(node.flags & 8);\n  }\n  function isOwnChild(n, parent2) {\n    const par = isModuleBlock(n.parent) ? n.parent.parent : n.parent;\n    return par === parent2.node || contains(parent2.additionalNodes, par);\n  }\n  function areSameModule(a, b) {\n    if (!a.body || !b.body) {\n      return a.body === b.body;\n    }\n    return a.body.kind === b.body.kind && (a.body.kind !== 264 || areSameModule(a.body, b.body));\n  }\n  function merge(target, source) {\n    target.additionalNodes = target.additionalNodes || [];\n    target.additionalNodes.push(source.node);\n    if (source.additionalNodes) {\n      target.additionalNodes.push(...source.additionalNodes);\n    }\n    target.children = concatenate(target.children, source.children);\n    if (target.children) {\n      mergeChildren(target.children, target);\n      sortChildren(target.children);\n    }\n  }\n  function sortChildren(children) {\n    children.sort(compareChildren);\n  }\n  function compareChildren(child1, child2) {\n    return compareStringsCaseSensitiveUI(tryGetName(child1.node), tryGetName(child2.node)) || compareValues(navigationBarNodeKind(child1), navigationBarNodeKind(child2));\n  }\n  function tryGetName(node) {\n    if (node.kind === 264) {\n      return getModuleName(node);\n    }\n    const declName = getNameOfDeclaration(node);\n    if (declName && isPropertyName(declName)) {\n      const propertyName = getPropertyNameForPropertyNameNode(declName);\n      return propertyName && unescapeLeadingUnderscores(propertyName);\n    }\n    switch (node.kind) {\n      case 215:\n      case 216:\n      case 228:\n        return getFunctionOrClassName(node);\n      default:\n        return void 0;\n    }\n  }\n  function getItemName(node, name) {\n    if (node.kind === 264) {\n      return cleanText(getModuleName(node));\n    }\n    if (name) {\n      const text = isIdentifier(name) ? name.text : isElementAccessExpression(name) ? `[${nodeText(name.argumentExpression)}]` : nodeText(name);\n      if (text.length > 0) {\n        return cleanText(text);\n      }\n    }\n    switch (node.kind) {\n      case 308:\n        const sourceFile = node;\n        return isExternalModule(sourceFile) ? `\"${escapeString(getBaseFileName(removeFileExtension(normalizePath(sourceFile.fileName))))}\"` : \"<global>\";\n      case 274:\n        return isExportAssignment(node) && node.isExportEquals ? \"export=\" : \"default\";\n      case 216:\n      case 259:\n      case 215:\n      case 260:\n      case 228:\n        if (getSyntacticModifierFlags(node) & 1024) {\n          return \"default\";\n        }\n        return getFunctionOrClassName(node);\n      case 173:\n        return \"constructor\";\n      case 177:\n        return \"new()\";\n      case 176:\n        return \"()\";\n      case 178:\n        return \"[]\";\n      default:\n        return \"<unknown>\";\n    }\n  }\n  function primaryNavBarMenuItems(root) {\n    const primaryNavBarMenuItems2 = [];\n    function recur(item) {\n      if (shouldAppearInPrimaryNavBarMenu(item)) {\n        primaryNavBarMenuItems2.push(item);\n        if (item.children) {\n          for (const child of item.children) {\n            recur(child);\n          }\n        }\n      }\n    }\n    recur(root);\n    return primaryNavBarMenuItems2;\n    function shouldAppearInPrimaryNavBarMenu(item) {\n      if (item.children) {\n        return true;\n      }\n      switch (navigationBarNodeKind(item)) {\n        case 260:\n        case 228:\n        case 263:\n        case 261:\n        case 264:\n        case 308:\n        case 262:\n        case 349:\n        case 341:\n          return true;\n        case 216:\n        case 259:\n        case 215:\n          return isTopLevelFunctionDeclaration(item);\n        default:\n          return false;\n      }\n      function isTopLevelFunctionDeclaration(item2) {\n        if (!item2.node.body) {\n          return false;\n        }\n        switch (navigationBarNodeKind(item2.parent)) {\n          case 265:\n          case 308:\n          case 171:\n          case 173:\n            return true;\n          default:\n            return false;\n        }\n      }\n    }\n  }\n  function convertToTree(n) {\n    return {\n      text: getItemName(n.node, n.name),\n      kind: getNodeKind(n.node),\n      kindModifiers: getModifiers2(n.node),\n      spans: getSpans(n),\n      nameSpan: n.name && getNodeSpan(n.name),\n      childItems: map(n.children, convertToTree)\n    };\n  }\n  function convertToPrimaryNavBarMenuItem(n) {\n    return {\n      text: getItemName(n.node, n.name),\n      kind: getNodeKind(n.node),\n      kindModifiers: getModifiers2(n.node),\n      spans: getSpans(n),\n      childItems: map(n.children, convertToSecondaryNavBarMenuItem) || emptyChildItemArray,\n      indent: n.indent,\n      bolded: false,\n      grayed: false\n    };\n    function convertToSecondaryNavBarMenuItem(n2) {\n      return {\n        text: getItemName(n2.node, n2.name),\n        kind: getNodeKind(n2.node),\n        kindModifiers: getNodeModifiers(n2.node),\n        spans: getSpans(n2),\n        childItems: emptyChildItemArray,\n        indent: 0,\n        bolded: false,\n        grayed: false\n      };\n    }\n  }\n  function getSpans(n) {\n    const spans = [getNodeSpan(n.node)];\n    if (n.additionalNodes) {\n      for (const node of n.additionalNodes) {\n        spans.push(getNodeSpan(node));\n      }\n    }\n    return spans;\n  }\n  function getModuleName(moduleDeclaration) {\n    if (isAmbientModule(moduleDeclaration)) {\n      return getTextOfNode(moduleDeclaration.name);\n    }\n    return getFullyQualifiedModuleName(moduleDeclaration);\n  }\n  function getFullyQualifiedModuleName(moduleDeclaration) {\n    const result = [getTextOfIdentifierOrLiteral(moduleDeclaration.name)];\n    while (moduleDeclaration.body && moduleDeclaration.body.kind === 264) {\n      moduleDeclaration = moduleDeclaration.body;\n      result.push(getTextOfIdentifierOrLiteral(moduleDeclaration.name));\n    }\n    return result.join(\".\");\n  }\n  function getInteriorModule(decl) {\n    return decl.body && isModuleDeclaration(decl.body) ? getInteriorModule(decl.body) : decl;\n  }\n  function isComputedProperty(member) {\n    return !member.name || member.name.kind === 164;\n  }\n  function getNodeSpan(node) {\n    return node.kind === 308 ? createTextSpanFromRange(node) : createTextSpanFromNode(node, curSourceFile);\n  }\n  function getModifiers2(node) {\n    if (node.parent && node.parent.kind === 257) {\n      node = node.parent;\n    }\n    return getNodeModifiers(node);\n  }\n  function getFunctionOrClassName(node) {\n    const { parent: parent2 } = node;\n    if (node.name && getFullWidth(node.name) > 0) {\n      return cleanText(declarationNameToString(node.name));\n    } else if (isVariableDeclaration(parent2)) {\n      return cleanText(declarationNameToString(parent2.name));\n    } else if (isBinaryExpression(parent2) && parent2.operatorToken.kind === 63) {\n      return nodeText(parent2.left).replace(whiteSpaceRegex, \"\");\n    } else if (isPropertyAssignment(parent2)) {\n      return nodeText(parent2.name);\n    } else if (getSyntacticModifierFlags(node) & 1024) {\n      return \"default\";\n    } else if (isClassLike(node)) {\n      return \"<class>\";\n    } else if (isCallExpression(parent2)) {\n      let name = getCalledExpressionName(parent2.expression);\n      if (name !== void 0) {\n        name = cleanText(name);\n        if (name.length > maxLength) {\n          return `${name} callback`;\n        }\n        const args = cleanText(mapDefined(parent2.arguments, (a) => isStringLiteralLike(a) ? a.getText(curSourceFile) : void 0).join(\", \"));\n        return `${name}(${args}) callback`;\n      }\n    }\n    return \"<function>\";\n  }\n  function getCalledExpressionName(expr) {\n    if (isIdentifier(expr)) {\n      return expr.text;\n    } else if (isPropertyAccessExpression(expr)) {\n      const left = getCalledExpressionName(expr.expression);\n      const right = expr.name.text;\n      return left === void 0 ? right : `${left}.${right}`;\n    } else {\n      return void 0;\n    }\n  }\n  function isFunctionOrClassExpression(node) {\n    switch (node.kind) {\n      case 216:\n      case 215:\n      case 228:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function cleanText(text) {\n    text = text.length > maxLength ? text.substring(0, maxLength) + \"...\" : text;\n    return text.replace(/\\\\?(\\r?\\n|\\r|\\u2028|\\u2029)/g, \"\");\n  }\n  var whiteSpaceRegex, maxLength, curCancellationToken, curSourceFile, parentsStack, parent, trackedEs5ClassesStack, trackedEs5Classes, emptyChildItemArray, isEs5ClassMember;\n  var init_navigationBar = __esm({\n    \"src/services/navigationBar.ts\"() {\n      \"use strict\";\n      init_ts4();\n      whiteSpaceRegex = /\\s+/g;\n      maxLength = 150;\n      parentsStack = [];\n      trackedEs5ClassesStack = [];\n      emptyChildItemArray = [];\n      isEs5ClassMember = {\n        [5]: true,\n        [3]: true,\n        [7]: true,\n        [9]: true,\n        [0]: false,\n        [1]: false,\n        [2]: false,\n        [8]: false,\n        [6]: true,\n        [4]: false\n      };\n    }\n  });\n  var ts_NavigationBar_exports = {};\n  __export2(ts_NavigationBar_exports, {\n    getNavigationBarItems: () => getNavigationBarItems,\n    getNavigationTree: () => getNavigationTree\n  });\n  var init_ts_NavigationBar = __esm({\n    \"src/services/_namespaces/ts.NavigationBar.ts\"() {\n      \"use strict\";\n      init_navigationBar();\n    }\n  });\n  function createNode(kind, pos, end, parent2) {\n    const node = isNodeKind(kind) ? new NodeObject(kind, pos, end) : kind === 79 ? new IdentifierObject(79, pos, end) : kind === 80 ? new PrivateIdentifierObject(80, pos, end) : new TokenObject(kind, pos, end);\n    node.parent = parent2;\n    node.flags = parent2.flags & 50720768;\n    return node;\n  }\n  function createChildren(node, sourceFile) {\n    if (!isNodeKind(node.kind)) {\n      return emptyArray;\n    }\n    const children = [];\n    if (isJSDocCommentContainingNode(node)) {\n      node.forEachChild((child) => {\n        children.push(child);\n      });\n      return children;\n    }\n    scanner.setText((sourceFile || node.getSourceFile()).text);\n    let pos = node.pos;\n    const processNode = (child) => {\n      addSyntheticNodes(children, pos, child.pos, node);\n      children.push(child);\n      pos = child.end;\n    };\n    const processNodes = (nodes) => {\n      addSyntheticNodes(children, pos, nodes.pos, node);\n      children.push(createSyntaxList(nodes, node));\n      pos = nodes.end;\n    };\n    forEach(node.jsDoc, processNode);\n    pos = node.pos;\n    node.forEachChild(processNode, processNodes);\n    addSyntheticNodes(children, pos, node.end, node);\n    scanner.setText(void 0);\n    return children;\n  }\n  function addSyntheticNodes(nodes, pos, end, parent2) {\n    scanner.setTextPos(pos);\n    while (pos < end) {\n      const token = scanner.scan();\n      const textPos = scanner.getTextPos();\n      if (textPos <= end) {\n        if (token === 79) {\n          if (hasTabstop(parent2)) {\n            continue;\n          }\n          Debug.fail(`Did not expect ${Debug.formatSyntaxKind(parent2.kind)} to have an Identifier in its trivia`);\n        }\n        nodes.push(createNode(token, pos, textPos, parent2));\n      }\n      pos = textPos;\n      if (token === 1) {\n        break;\n      }\n    }\n  }\n  function createSyntaxList(nodes, parent2) {\n    const list = createNode(354, nodes.pos, nodes.end, parent2);\n    list._children = [];\n    let pos = nodes.pos;\n    for (const node of nodes) {\n      addSyntheticNodes(list._children, pos, node.pos, parent2);\n      list._children.push(node);\n      pos = node.end;\n    }\n    addSyntheticNodes(list._children, pos, nodes.end, parent2);\n    return list;\n  }\n  function hasJSDocInheritDocTag(node) {\n    return getJSDocTags(node).some((tag) => tag.tagName.text === \"inheritDoc\" || tag.tagName.text === \"inheritdoc\");\n  }\n  function getJsDocTagsOfDeclarations(declarations, checker) {\n    if (!declarations)\n      return emptyArray;\n    let tags = ts_JsDoc_exports.getJsDocTagsFromDeclarations(declarations, checker);\n    if (checker && (tags.length === 0 || declarations.some(hasJSDocInheritDocTag))) {\n      const seenSymbols = /* @__PURE__ */ new Set();\n      for (const declaration of declarations) {\n        const inheritedTags = findBaseOfDeclaration(checker, declaration, (symbol) => {\n          var _a2;\n          if (!seenSymbols.has(symbol)) {\n            seenSymbols.add(symbol);\n            if (declaration.kind === 174 || declaration.kind === 175) {\n              return symbol.getContextualJsDocTags(declaration, checker);\n            }\n            return ((_a2 = symbol.declarations) == null ? void 0 : _a2.length) === 1 ? symbol.getJsDocTags() : void 0;\n          }\n        });\n        if (inheritedTags) {\n          tags = [...inheritedTags, ...tags];\n        }\n      }\n    }\n    return tags;\n  }\n  function getDocumentationComment(declarations, checker) {\n    if (!declarations)\n      return emptyArray;\n    let doc = ts_JsDoc_exports.getJsDocCommentsFromDeclarations(declarations, checker);\n    if (checker && (doc.length === 0 || declarations.some(hasJSDocInheritDocTag))) {\n      const seenSymbols = /* @__PURE__ */ new Set();\n      for (const declaration of declarations) {\n        const inheritedDocs = findBaseOfDeclaration(checker, declaration, (symbol) => {\n          if (!seenSymbols.has(symbol)) {\n            seenSymbols.add(symbol);\n            if (declaration.kind === 174 || declaration.kind === 175) {\n              return symbol.getContextualDocumentationComment(declaration, checker);\n            }\n            return symbol.getDocumentationComment(checker);\n          }\n        });\n        if (inheritedDocs)\n          doc = doc.length === 0 ? inheritedDocs.slice() : inheritedDocs.concat(lineBreakPart(), doc);\n      }\n    }\n    return doc;\n  }\n  function findBaseOfDeclaration(checker, declaration, cb) {\n    var _a2;\n    const classOrInterfaceDeclaration = ((_a2 = declaration.parent) == null ? void 0 : _a2.kind) === 173 ? declaration.parent.parent : declaration.parent;\n    if (!classOrInterfaceDeclaration)\n      return;\n    const isStaticMember = hasStaticModifier(declaration);\n    return firstDefined(getAllSuperTypeNodes(classOrInterfaceDeclaration), (superTypeNode) => {\n      const baseType = checker.getTypeAtLocation(superTypeNode);\n      const type = isStaticMember && baseType.symbol ? checker.getTypeOfSymbol(baseType.symbol) : baseType;\n      const symbol = checker.getPropertyOfType(type, declaration.symbol.name);\n      return symbol ? cb(symbol) : void 0;\n    });\n  }\n  function getServicesObjectAllocator() {\n    return {\n      getNodeConstructor: () => NodeObject,\n      getTokenConstructor: () => TokenObject,\n      getIdentifierConstructor: () => IdentifierObject,\n      getPrivateIdentifierConstructor: () => PrivateIdentifierObject,\n      getSourceFileConstructor: () => SourceFileObject,\n      getSymbolConstructor: () => SymbolObject,\n      getTypeConstructor: () => TypeObject,\n      getSignatureConstructor: () => SignatureObject,\n      getSourceMapSourceConstructor: () => SourceMapSourceObject\n    };\n  }\n  function toEditorSettings(optionsAsMap) {\n    let allPropertiesAreCamelCased = true;\n    for (const key in optionsAsMap) {\n      if (hasProperty(optionsAsMap, key) && !isCamelCase(key)) {\n        allPropertiesAreCamelCased = false;\n        break;\n      }\n    }\n    if (allPropertiesAreCamelCased) {\n      return optionsAsMap;\n    }\n    const settings = {};\n    for (const key in optionsAsMap) {\n      if (hasProperty(optionsAsMap, key)) {\n        const newKey = isCamelCase(key) ? key : key.charAt(0).toLowerCase() + key.substr(1);\n        settings[newKey] = optionsAsMap[key];\n      }\n    }\n    return settings;\n  }\n  function isCamelCase(s) {\n    return !s.length || s.charAt(0) === s.charAt(0).toLowerCase();\n  }\n  function displayPartsToString2(displayParts) {\n    if (displayParts) {\n      return map(displayParts, (displayPart2) => displayPart2.text).join(\"\");\n    }\n    return \"\";\n  }\n  function getDefaultCompilerOptions2() {\n    return {\n      target: 1,\n      jsx: 1\n    };\n  }\n  function getSupportedCodeFixes() {\n    return ts_codefix_exports.getSupportedErrorCodes();\n  }\n  function setSourceFileFields(sourceFile, scriptSnapshot, version2) {\n    sourceFile.version = version2;\n    sourceFile.scriptSnapshot = scriptSnapshot;\n  }\n  function createLanguageServiceSourceFile(fileName, scriptSnapshot, scriptTargetOrOptions, version2, setNodeParents, scriptKind) {\n    const sourceFile = createSourceFile(fileName, getSnapshotText(scriptSnapshot), scriptTargetOrOptions, setNodeParents, scriptKind);\n    setSourceFileFields(sourceFile, scriptSnapshot, version2);\n    return sourceFile;\n  }\n  function updateLanguageServiceSourceFile(sourceFile, scriptSnapshot, version2, textChangeRange, aggressiveChecks) {\n    if (textChangeRange) {\n      if (version2 !== sourceFile.version) {\n        let newText;\n        const prefix = textChangeRange.span.start !== 0 ? sourceFile.text.substr(0, textChangeRange.span.start) : \"\";\n        const suffix = textSpanEnd(textChangeRange.span) !== sourceFile.text.length ? sourceFile.text.substr(textSpanEnd(textChangeRange.span)) : \"\";\n        if (textChangeRange.newLength === 0) {\n          newText = prefix && suffix ? prefix + suffix : prefix || suffix;\n        } else {\n          const changedText = scriptSnapshot.getText(textChangeRange.span.start, textChangeRange.span.start + textChangeRange.newLength);\n          newText = prefix && suffix ? prefix + changedText + suffix : prefix ? prefix + changedText : changedText + suffix;\n        }\n        const newSourceFile = updateSourceFile(sourceFile, newText, textChangeRange, aggressiveChecks);\n        setSourceFileFields(newSourceFile, scriptSnapshot, version2);\n        newSourceFile.nameTable = void 0;\n        if (sourceFile !== newSourceFile && sourceFile.scriptSnapshot) {\n          if (sourceFile.scriptSnapshot.dispose) {\n            sourceFile.scriptSnapshot.dispose();\n          }\n          sourceFile.scriptSnapshot = void 0;\n        }\n        return newSourceFile;\n      }\n    }\n    const options = {\n      languageVersion: sourceFile.languageVersion,\n      impliedNodeFormat: sourceFile.impliedNodeFormat,\n      setExternalModuleIndicator: sourceFile.setExternalModuleIndicator\n    };\n    return createLanguageServiceSourceFile(sourceFile.fileName, scriptSnapshot, options, version2, true, sourceFile.scriptKind);\n  }\n  function createLanguageService2(host, documentRegistry = createDocumentRegistry(host.useCaseSensitiveFileNames && host.useCaseSensitiveFileNames(), host.getCurrentDirectory()), syntaxOnlyOrLanguageServiceMode) {\n    var _a2;\n    let languageServiceMode;\n    if (syntaxOnlyOrLanguageServiceMode === void 0) {\n      languageServiceMode = 0;\n    } else if (typeof syntaxOnlyOrLanguageServiceMode === \"boolean\") {\n      languageServiceMode = syntaxOnlyOrLanguageServiceMode ? 2 : 0;\n    } else {\n      languageServiceMode = syntaxOnlyOrLanguageServiceMode;\n    }\n    const syntaxTreeCache = new SyntaxTreeCache(host);\n    let program;\n    let lastProjectVersion;\n    let lastTypesRootVersion = 0;\n    const cancellationToken = host.getCancellationToken ? new CancellationTokenObject(host.getCancellationToken()) : NoopCancellationToken;\n    const currentDirectory = host.getCurrentDirectory();\n    maybeSetLocalizedDiagnosticMessages((_a2 = host.getLocalizedDiagnosticMessages) == null ? void 0 : _a2.bind(host));\n    function log(message) {\n      if (host.log) {\n        host.log(message);\n      }\n    }\n    const useCaseSensitiveFileNames = hostUsesCaseSensitiveFileNames(host);\n    const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames);\n    const sourceMapper = getSourceMapper({\n      useCaseSensitiveFileNames: () => useCaseSensitiveFileNames,\n      getCurrentDirectory: () => currentDirectory,\n      getProgram,\n      fileExists: maybeBind(host, host.fileExists),\n      readFile: maybeBind(host, host.readFile),\n      getDocumentPositionMapper: maybeBind(host, host.getDocumentPositionMapper),\n      getSourceFileLike: maybeBind(host, host.getSourceFileLike),\n      log\n    });\n    function getValidSourceFile(fileName) {\n      const sourceFile = program.getSourceFile(fileName);\n      if (!sourceFile) {\n        const error = new Error(`Could not find source file: '${fileName}'.`);\n        error.ProgramFiles = program.getSourceFiles().map((f) => f.fileName);\n        throw error;\n      }\n      return sourceFile;\n    }\n    function synchronizeHostData() {\n      var _a3, _b, _c;\n      Debug.assert(languageServiceMode !== 2);\n      if (host.getProjectVersion) {\n        const hostProjectVersion = host.getProjectVersion();\n        if (hostProjectVersion) {\n          if (lastProjectVersion === hostProjectVersion && !((_a3 = host.hasChangedAutomaticTypeDirectiveNames) == null ? void 0 : _a3.call(host))) {\n            return;\n          }\n          lastProjectVersion = hostProjectVersion;\n        }\n      }\n      const typeRootsVersion = host.getTypeRootsVersion ? host.getTypeRootsVersion() : 0;\n      if (lastTypesRootVersion !== typeRootsVersion) {\n        log(\"TypeRoots version has changed; provide new program\");\n        program = void 0;\n        lastTypesRootVersion = typeRootsVersion;\n      }\n      const rootFileNames = host.getScriptFileNames().slice();\n      const newSettings = host.getCompilationSettings() || getDefaultCompilerOptions2();\n      const hasInvalidatedResolutions = host.hasInvalidatedResolutions || returnFalse;\n      const hasChangedAutomaticTypeDirectiveNames = maybeBind(host, host.hasChangedAutomaticTypeDirectiveNames);\n      const projectReferences = (_b = host.getProjectReferences) == null ? void 0 : _b.call(host);\n      let parsedCommandLines;\n      let compilerHost = {\n        getSourceFile: getOrCreateSourceFile,\n        getSourceFileByPath: getOrCreateSourceFileByPath,\n        getCancellationToken: () => cancellationToken,\n        getCanonicalFileName,\n        useCaseSensitiveFileNames: () => useCaseSensitiveFileNames,\n        getNewLine: () => getNewLineCharacter(newSettings),\n        getDefaultLibFileName: (options2) => host.getDefaultLibFileName(options2),\n        writeFile: noop,\n        getCurrentDirectory: () => currentDirectory,\n        fileExists: (fileName) => host.fileExists(fileName),\n        readFile: (fileName) => host.readFile && host.readFile(fileName),\n        getSymlinkCache: maybeBind(host, host.getSymlinkCache),\n        realpath: maybeBind(host, host.realpath),\n        directoryExists: (directoryName) => {\n          return directoryProbablyExists(directoryName, host);\n        },\n        getDirectories: (path) => {\n          return host.getDirectories ? host.getDirectories(path) : [];\n        },\n        readDirectory: (path, extensions, exclude, include, depth) => {\n          Debug.checkDefined(host.readDirectory, \"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'\");\n          return host.readDirectory(path, extensions, exclude, include, depth);\n        },\n        onReleaseOldSourceFile,\n        onReleaseParsedCommandLine,\n        hasInvalidatedResolutions,\n        hasChangedAutomaticTypeDirectiveNames,\n        trace: maybeBind(host, host.trace),\n        resolveModuleNames: maybeBind(host, host.resolveModuleNames),\n        getModuleResolutionCache: maybeBind(host, host.getModuleResolutionCache),\n        createHash: maybeBind(host, host.createHash),\n        resolveTypeReferenceDirectives: maybeBind(host, host.resolveTypeReferenceDirectives),\n        resolveModuleNameLiterals: maybeBind(host, host.resolveModuleNameLiterals),\n        resolveTypeReferenceDirectiveReferences: maybeBind(host, host.resolveTypeReferenceDirectiveReferences),\n        useSourceOfProjectReferenceRedirect: maybeBind(host, host.useSourceOfProjectReferenceRedirect),\n        getParsedCommandLine\n      };\n      const originalGetSourceFile = compilerHost.getSourceFile;\n      const { getSourceFileWithCache } = changeCompilerHostLikeToUseCache(compilerHost, (fileName) => toPath(fileName, currentDirectory, getCanonicalFileName), (...args) => originalGetSourceFile.call(compilerHost, ...args));\n      compilerHost.getSourceFile = getSourceFileWithCache;\n      (_c = host.setCompilerHost) == null ? void 0 : _c.call(host, compilerHost);\n      const parseConfigHost = {\n        useCaseSensitiveFileNames,\n        fileExists: (fileName) => compilerHost.fileExists(fileName),\n        readFile: (fileName) => compilerHost.readFile(fileName),\n        readDirectory: (...args) => compilerHost.readDirectory(...args),\n        trace: compilerHost.trace,\n        getCurrentDirectory: compilerHost.getCurrentDirectory,\n        onUnRecoverableConfigFileDiagnostic: noop\n      };\n      const documentRegistryBucketKey = documentRegistry.getKeyForCompilationSettings(newSettings);\n      if (isProgramUptoDate(program, rootFileNames, newSettings, (_path, fileName) => host.getScriptVersion(fileName), (fileName) => compilerHost.fileExists(fileName), hasInvalidatedResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) {\n        return;\n      }\n      const options = {\n        rootNames: rootFileNames,\n        options: newSettings,\n        host: compilerHost,\n        oldProgram: program,\n        projectReferences\n      };\n      program = createProgram(options);\n      compilerHost = void 0;\n      parsedCommandLines = void 0;\n      sourceMapper.clearCache();\n      program.getTypeChecker();\n      return;\n      function getParsedCommandLine(fileName) {\n        const path = toPath(fileName, currentDirectory, getCanonicalFileName);\n        const existing = parsedCommandLines == null ? void 0 : parsedCommandLines.get(path);\n        if (existing !== void 0)\n          return existing || void 0;\n        const result = host.getParsedCommandLine ? host.getParsedCommandLine(fileName) : getParsedCommandLineOfConfigFileUsingSourceFile(fileName);\n        (parsedCommandLines || (parsedCommandLines = /* @__PURE__ */ new Map())).set(path, result || false);\n        return result;\n      }\n      function getParsedCommandLineOfConfigFileUsingSourceFile(configFileName) {\n        const result = getOrCreateSourceFile(configFileName, 100);\n        if (!result)\n          return void 0;\n        result.path = toPath(configFileName, currentDirectory, getCanonicalFileName);\n        result.resolvedPath = result.path;\n        result.originalFileName = result.fileName;\n        return parseJsonSourceFileConfigFileContent(result, parseConfigHost, getNormalizedAbsolutePath(getDirectoryPath(configFileName), currentDirectory), void 0, getNormalizedAbsolutePath(configFileName, currentDirectory));\n      }\n      function onReleaseParsedCommandLine(configFileName, oldResolvedRef, oldOptions) {\n        var _a4;\n        if (host.getParsedCommandLine) {\n          (_a4 = host.onReleaseParsedCommandLine) == null ? void 0 : _a4.call(host, configFileName, oldResolvedRef, oldOptions);\n        } else if (oldResolvedRef) {\n          onReleaseOldSourceFile(oldResolvedRef.sourceFile, oldOptions);\n        }\n      }\n      function onReleaseOldSourceFile(oldSourceFile, oldOptions) {\n        const oldSettingsKey = documentRegistry.getKeyForCompilationSettings(oldOptions);\n        documentRegistry.releaseDocumentWithKey(oldSourceFile.resolvedPath, oldSettingsKey, oldSourceFile.scriptKind, oldSourceFile.impliedNodeFormat);\n      }\n      function getOrCreateSourceFile(fileName, languageVersionOrOptions, onError, shouldCreateNewSourceFile) {\n        return getOrCreateSourceFileByPath(fileName, toPath(fileName, currentDirectory, getCanonicalFileName), languageVersionOrOptions, onError, shouldCreateNewSourceFile);\n      }\n      function getOrCreateSourceFileByPath(fileName, path, languageVersionOrOptions, _onError, shouldCreateNewSourceFile) {\n        Debug.assert(compilerHost, \"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.\");\n        const scriptSnapshot = host.getScriptSnapshot(fileName);\n        if (!scriptSnapshot) {\n          return void 0;\n        }\n        const scriptKind = getScriptKind(fileName, host);\n        const scriptVersion = host.getScriptVersion(fileName);\n        if (!shouldCreateNewSourceFile) {\n          const oldSourceFile = program && program.getSourceFileByPath(path);\n          if (oldSourceFile) {\n            if (scriptKind === oldSourceFile.scriptKind) {\n              return documentRegistry.updateDocumentWithKey(fileName, path, host, documentRegistryBucketKey, scriptSnapshot, scriptVersion, scriptKind, languageVersionOrOptions);\n            } else {\n              documentRegistry.releaseDocumentWithKey(oldSourceFile.resolvedPath, documentRegistry.getKeyForCompilationSettings(program.getCompilerOptions()), oldSourceFile.scriptKind, oldSourceFile.impliedNodeFormat);\n            }\n          }\n        }\n        return documentRegistry.acquireDocumentWithKey(fileName, path, host, documentRegistryBucketKey, scriptSnapshot, scriptVersion, scriptKind, languageVersionOrOptions);\n      }\n    }\n    function getProgram() {\n      if (languageServiceMode === 2) {\n        Debug.assert(program === void 0);\n        return void 0;\n      }\n      synchronizeHostData();\n      return program;\n    }\n    function getAutoImportProvider() {\n      var _a3;\n      return (_a3 = host.getPackageJsonAutoImportProvider) == null ? void 0 : _a3.call(host);\n    }\n    function updateIsDefinitionOfReferencedSymbols(referencedSymbols, knownSymbolSpans) {\n      const checker = program.getTypeChecker();\n      const symbol = getSymbolForProgram();\n      if (!symbol)\n        return false;\n      for (const referencedSymbol of referencedSymbols) {\n        for (const ref of referencedSymbol.references) {\n          const refNode = getNodeForSpan(ref);\n          Debug.assertIsDefined(refNode);\n          if (knownSymbolSpans.has(ref) || ts_FindAllReferences_exports.isDeclarationOfSymbol(refNode, symbol)) {\n            knownSymbolSpans.add(ref);\n            ref.isDefinition = true;\n            const mappedSpan = getMappedDocumentSpan(ref, sourceMapper, maybeBind(host, host.fileExists));\n            if (mappedSpan) {\n              knownSymbolSpans.add(mappedSpan);\n            }\n          } else {\n            ref.isDefinition = false;\n          }\n        }\n      }\n      return true;\n      function getSymbolForProgram() {\n        for (const referencedSymbol of referencedSymbols) {\n          for (const ref of referencedSymbol.references) {\n            if (knownSymbolSpans.has(ref)) {\n              const refNode = getNodeForSpan(ref);\n              Debug.assertIsDefined(refNode);\n              return checker.getSymbolAtLocation(refNode);\n            }\n            const mappedSpan = getMappedDocumentSpan(ref, sourceMapper, maybeBind(host, host.fileExists));\n            if (mappedSpan && knownSymbolSpans.has(mappedSpan)) {\n              const refNode = getNodeForSpan(mappedSpan);\n              if (refNode) {\n                return checker.getSymbolAtLocation(refNode);\n              }\n            }\n          }\n        }\n        return void 0;\n      }\n      function getNodeForSpan(docSpan) {\n        const sourceFile = program.getSourceFile(docSpan.fileName);\n        if (!sourceFile)\n          return void 0;\n        const rawNode = getTouchingPropertyName(sourceFile, docSpan.textSpan.start);\n        const adjustedNode = ts_FindAllReferences_exports.Core.getAdjustedNode(rawNode, { use: ts_FindAllReferences_exports.FindReferencesUse.References });\n        return adjustedNode;\n      }\n    }\n    function cleanupSemanticCache() {\n      program = void 0;\n    }\n    function dispose() {\n      if (program) {\n        const key = documentRegistry.getKeyForCompilationSettings(program.getCompilerOptions());\n        forEach(program.getSourceFiles(), (f) => documentRegistry.releaseDocumentWithKey(f.resolvedPath, key, f.scriptKind, f.impliedNodeFormat));\n        program = void 0;\n      }\n      host = void 0;\n    }\n    function getSyntacticDiagnostics(fileName) {\n      synchronizeHostData();\n      return program.getSyntacticDiagnostics(getValidSourceFile(fileName), cancellationToken).slice();\n    }\n    function getSemanticDiagnostics(fileName) {\n      synchronizeHostData();\n      const targetSourceFile = getValidSourceFile(fileName);\n      const semanticDiagnostics = program.getSemanticDiagnostics(targetSourceFile, cancellationToken);\n      if (!getEmitDeclarations(program.getCompilerOptions())) {\n        return semanticDiagnostics.slice();\n      }\n      const declarationDiagnostics = program.getDeclarationDiagnostics(targetSourceFile, cancellationToken);\n      return [...semanticDiagnostics, ...declarationDiagnostics];\n    }\n    function getSuggestionDiagnostics(fileName) {\n      synchronizeHostData();\n      return computeSuggestionDiagnostics(getValidSourceFile(fileName), program, cancellationToken);\n    }\n    function getCompilerOptionsDiagnostics() {\n      synchronizeHostData();\n      return [...program.getOptionsDiagnostics(cancellationToken), ...program.getGlobalDiagnostics(cancellationToken)];\n    }\n    function getCompletionsAtPosition2(fileName, position, options = emptyOptions, formattingSettings) {\n      const fullPreferences = {\n        ...identity(options),\n        includeCompletionsForModuleExports: options.includeCompletionsForModuleExports || options.includeExternalModuleExports,\n        includeCompletionsWithInsertText: options.includeCompletionsWithInsertText || options.includeInsertTextCompletions\n      };\n      synchronizeHostData();\n      return ts_Completions_exports.getCompletionsAtPosition(host, program, log, getValidSourceFile(fileName), position, fullPreferences, options.triggerCharacter, options.triggerKind, cancellationToken, formattingSettings && ts_formatting_exports.getFormatContext(formattingSettings, host), options.includeSymbol);\n    }\n    function getCompletionEntryDetails2(fileName, position, name, formattingOptions, source, preferences = emptyOptions, data) {\n      synchronizeHostData();\n      return ts_Completions_exports.getCompletionEntryDetails(program, log, getValidSourceFile(fileName), position, { name, source, data }, host, formattingOptions && ts_formatting_exports.getFormatContext(formattingOptions, host), preferences, cancellationToken);\n    }\n    function getCompletionEntrySymbol2(fileName, position, name, source, preferences = emptyOptions) {\n      synchronizeHostData();\n      return ts_Completions_exports.getCompletionEntrySymbol(program, log, getValidSourceFile(fileName), position, { name, source }, host, preferences);\n    }\n    function getQuickInfoAtPosition(fileName, position) {\n      synchronizeHostData();\n      const sourceFile = getValidSourceFile(fileName);\n      const node = getTouchingPropertyName(sourceFile, position);\n      if (node === sourceFile) {\n        return void 0;\n      }\n      const typeChecker = program.getTypeChecker();\n      const nodeForQuickInfo = getNodeForQuickInfo(node);\n      const symbol = getSymbolAtLocationForQuickInfo(nodeForQuickInfo, typeChecker);\n      if (!symbol || typeChecker.isUnknownSymbol(symbol)) {\n        const type = shouldGetType(sourceFile, nodeForQuickInfo, position) ? typeChecker.getTypeAtLocation(nodeForQuickInfo) : void 0;\n        return type && {\n          kind: \"\",\n          kindModifiers: \"\",\n          textSpan: createTextSpanFromNode(nodeForQuickInfo, sourceFile),\n          displayParts: typeChecker.runWithCancellationToken(cancellationToken, (typeChecker2) => typeToDisplayParts(typeChecker2, type, getContainerNode(nodeForQuickInfo))),\n          documentation: type.symbol ? type.symbol.getDocumentationComment(typeChecker) : void 0,\n          tags: type.symbol ? type.symbol.getJsDocTags(typeChecker) : void 0\n        };\n      }\n      const { symbolKind, displayParts, documentation, tags } = typeChecker.runWithCancellationToken(cancellationToken, (typeChecker2) => ts_SymbolDisplay_exports.getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker2, symbol, sourceFile, getContainerNode(nodeForQuickInfo), nodeForQuickInfo));\n      return {\n        kind: symbolKind,\n        kindModifiers: ts_SymbolDisplay_exports.getSymbolModifiers(typeChecker, symbol),\n        textSpan: createTextSpanFromNode(nodeForQuickInfo, sourceFile),\n        displayParts,\n        documentation,\n        tags\n      };\n    }\n    function getNodeForQuickInfo(node) {\n      if (isNewExpression(node.parent) && node.pos === node.parent.pos) {\n        return node.parent.expression;\n      }\n      if (isNamedTupleMember(node.parent) && node.pos === node.parent.pos) {\n        return node.parent;\n      }\n      if (isImportMeta(node.parent) && node.parent.name === node) {\n        return node.parent;\n      }\n      return node;\n    }\n    function shouldGetType(sourceFile, node, position) {\n      switch (node.kind) {\n        case 79:\n          return !isLabelName(node) && !isTagName(node) && !isConstTypeReference(node.parent);\n        case 208:\n        case 163:\n          return !isInComment(sourceFile, position);\n        case 108:\n        case 194:\n        case 106:\n        case 199:\n          return true;\n        case 233:\n          return isImportMeta(node);\n        default:\n          return false;\n      }\n    }\n    function getDefinitionAtPosition2(fileName, position, searchOtherFilesOnly, stopAtAlias) {\n      synchronizeHostData();\n      return ts_GoToDefinition_exports.getDefinitionAtPosition(program, getValidSourceFile(fileName), position, searchOtherFilesOnly, stopAtAlias);\n    }\n    function getDefinitionAndBoundSpan2(fileName, position) {\n      synchronizeHostData();\n      return ts_GoToDefinition_exports.getDefinitionAndBoundSpan(program, getValidSourceFile(fileName), position);\n    }\n    function getTypeDefinitionAtPosition2(fileName, position) {\n      synchronizeHostData();\n      return ts_GoToDefinition_exports.getTypeDefinitionAtPosition(program.getTypeChecker(), getValidSourceFile(fileName), position);\n    }\n    function getImplementationAtPosition(fileName, position) {\n      synchronizeHostData();\n      return ts_FindAllReferences_exports.getImplementationsAtPosition(program, cancellationToken, program.getSourceFiles(), getValidSourceFile(fileName), position);\n    }\n    function getOccurrencesAtPosition(fileName, position) {\n      return flatMap(getDocumentHighlights(fileName, position, [fileName]), (entry) => entry.highlightSpans.map((highlightSpan) => ({\n        fileName: entry.fileName,\n        textSpan: highlightSpan.textSpan,\n        isWriteAccess: highlightSpan.kind === \"writtenReference\",\n        ...highlightSpan.isInString && { isInString: true },\n        ...highlightSpan.contextSpan && { contextSpan: highlightSpan.contextSpan }\n      })));\n    }\n    function getDocumentHighlights(fileName, position, filesToSearch) {\n      const normalizedFileName = normalizePath(fileName);\n      Debug.assert(filesToSearch.some((f) => normalizePath(f) === normalizedFileName));\n      synchronizeHostData();\n      const sourceFilesToSearch = mapDefined(filesToSearch, (fileName2) => program.getSourceFile(fileName2));\n      const sourceFile = getValidSourceFile(fileName);\n      return DocumentHighlights.getDocumentHighlights(program, cancellationToken, sourceFile, position, sourceFilesToSearch);\n    }\n    function findRenameLocations(fileName, position, findInStrings, findInComments, providePrefixAndSuffixTextForRename) {\n      synchronizeHostData();\n      const sourceFile = getValidSourceFile(fileName);\n      const node = getAdjustedRenameLocation(getTouchingPropertyName(sourceFile, position));\n      if (!ts_Rename_exports.nodeIsEligibleForRename(node))\n        return void 0;\n      if (isIdentifier(node) && (isJsxOpeningElement(node.parent) || isJsxClosingElement(node.parent)) && isIntrinsicJsxName(node.escapedText)) {\n        const { openingElement, closingElement } = node.parent.parent;\n        return [openingElement, closingElement].map((node2) => {\n          const textSpan = createTextSpanFromNode(node2.tagName, sourceFile);\n          return {\n            fileName: sourceFile.fileName,\n            textSpan,\n            ...ts_FindAllReferences_exports.toContextSpan(textSpan, sourceFile, node2.parent)\n          };\n        });\n      } else {\n        return getReferencesWorker(node, position, { findInStrings, findInComments, providePrefixAndSuffixTextForRename, use: ts_FindAllReferences_exports.FindReferencesUse.Rename }, (entry, originalNode, checker) => ts_FindAllReferences_exports.toRenameLocation(entry, originalNode, checker, providePrefixAndSuffixTextForRename || false));\n      }\n    }\n    function getReferencesAtPosition(fileName, position) {\n      synchronizeHostData();\n      return getReferencesWorker(getTouchingPropertyName(getValidSourceFile(fileName), position), position, { use: ts_FindAllReferences_exports.FindReferencesUse.References }, ts_FindAllReferences_exports.toReferenceEntry);\n    }\n    function getReferencesWorker(node, position, options, cb) {\n      synchronizeHostData();\n      const sourceFiles = options && options.use === ts_FindAllReferences_exports.FindReferencesUse.Rename ? program.getSourceFiles().filter((sourceFile) => !program.isSourceFileDefaultLibrary(sourceFile)) : program.getSourceFiles();\n      return ts_FindAllReferences_exports.findReferenceOrRenameEntries(program, cancellationToken, sourceFiles, node, position, options, cb);\n    }\n    function findReferences(fileName, position) {\n      synchronizeHostData();\n      return ts_FindAllReferences_exports.findReferencedSymbols(program, cancellationToken, program.getSourceFiles(), getValidSourceFile(fileName), position);\n    }\n    function getFileReferences(fileName) {\n      synchronizeHostData();\n      return ts_FindAllReferences_exports.Core.getReferencesForFileName(fileName, program, program.getSourceFiles()).map(ts_FindAllReferences_exports.toReferenceEntry);\n    }\n    function getNavigateToItems2(searchValue, maxResultCount, fileName, excludeDtsFiles = false) {\n      synchronizeHostData();\n      const sourceFiles = fileName ? [getValidSourceFile(fileName)] : program.getSourceFiles();\n      return getNavigateToItems(sourceFiles, program.getTypeChecker(), cancellationToken, searchValue, maxResultCount, excludeDtsFiles);\n    }\n    function getEmitOutput(fileName, emitOnlyDtsFiles, forceDtsEmit) {\n      synchronizeHostData();\n      const sourceFile = getValidSourceFile(fileName);\n      const customTransformers = host.getCustomTransformers && host.getCustomTransformers();\n      return getFileEmitOutput(program, sourceFile, !!emitOnlyDtsFiles, cancellationToken, customTransformers, forceDtsEmit);\n    }\n    function getSignatureHelpItems2(fileName, position, { triggerReason } = emptyOptions) {\n      synchronizeHostData();\n      const sourceFile = getValidSourceFile(fileName);\n      return ts_SignatureHelp_exports.getSignatureHelpItems(program, sourceFile, position, triggerReason, cancellationToken);\n    }\n    function getNonBoundSourceFile(fileName) {\n      return syntaxTreeCache.getCurrentSourceFile(fileName);\n    }\n    function getNameOrDottedNameSpan(fileName, startPos, _endPos) {\n      const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n      const node = getTouchingPropertyName(sourceFile, startPos);\n      if (node === sourceFile) {\n        return void 0;\n      }\n      switch (node.kind) {\n        case 208:\n        case 163:\n        case 10:\n        case 95:\n        case 110:\n        case 104:\n        case 106:\n        case 108:\n        case 194:\n        case 79:\n          break;\n        default:\n          return void 0;\n      }\n      let nodeForStartPos = node;\n      while (true) {\n        if (isRightSideOfPropertyAccess(nodeForStartPos) || isRightSideOfQualifiedName(nodeForStartPos)) {\n          nodeForStartPos = nodeForStartPos.parent;\n        } else if (isNameOfModuleDeclaration(nodeForStartPos)) {\n          if (nodeForStartPos.parent.parent.kind === 264 && nodeForStartPos.parent.parent.body === nodeForStartPos.parent) {\n            nodeForStartPos = nodeForStartPos.parent.parent.name;\n          } else {\n            break;\n          }\n        } else {\n          break;\n        }\n      }\n      return createTextSpanFromBounds(nodeForStartPos.getStart(), node.getEnd());\n    }\n    function getBreakpointStatementAtPosition(fileName, position) {\n      const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n      return ts_BreakpointResolver_exports.spanInSourceFileAtLocation(sourceFile, position);\n    }\n    function getNavigationBarItems2(fileName) {\n      return getNavigationBarItems(syntaxTreeCache.getCurrentSourceFile(fileName), cancellationToken);\n    }\n    function getNavigationTree2(fileName) {\n      return getNavigationTree(syntaxTreeCache.getCurrentSourceFile(fileName), cancellationToken);\n    }\n    function getSemanticClassifications3(fileName, span, format) {\n      synchronizeHostData();\n      const responseFormat = format || \"original\";\n      if (responseFormat === \"2020\") {\n        return ts_classifier_exports.v2020.getSemanticClassifications(program, cancellationToken, getValidSourceFile(fileName), span);\n      } else {\n        return getSemanticClassifications(program.getTypeChecker(), cancellationToken, getValidSourceFile(fileName), program.getClassifiableNames(), span);\n      }\n    }\n    function getEncodedSemanticClassifications3(fileName, span, format) {\n      synchronizeHostData();\n      const responseFormat = format || \"original\";\n      if (responseFormat === \"original\") {\n        return getEncodedSemanticClassifications(program.getTypeChecker(), cancellationToken, getValidSourceFile(fileName), program.getClassifiableNames(), span);\n      } else {\n        return ts_classifier_exports.v2020.getEncodedSemanticClassifications(program, cancellationToken, getValidSourceFile(fileName), span);\n      }\n    }\n    function getSyntacticClassifications2(fileName, span) {\n      return getSyntacticClassifications(cancellationToken, syntaxTreeCache.getCurrentSourceFile(fileName), span);\n    }\n    function getEncodedSyntacticClassifications2(fileName, span) {\n      return getEncodedSyntacticClassifications(cancellationToken, syntaxTreeCache.getCurrentSourceFile(fileName), span);\n    }\n    function getOutliningSpans(fileName) {\n      const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n      return ts_OutliningElementsCollector_exports.collectElements(sourceFile, cancellationToken);\n    }\n    const braceMatching = new Map(Object.entries({\n      [18]: 19,\n      [20]: 21,\n      [22]: 23,\n      [31]: 29\n    }));\n    braceMatching.forEach((value, key) => braceMatching.set(value.toString(), Number(key)));\n    function getBraceMatchingAtPosition(fileName, position) {\n      const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n      const token = getTouchingToken(sourceFile, position);\n      const matchKind = token.getStart(sourceFile) === position ? braceMatching.get(token.kind.toString()) : void 0;\n      const match = matchKind && findChildOfKind(token.parent, matchKind, sourceFile);\n      return match ? [createTextSpanFromNode(token, sourceFile), createTextSpanFromNode(match, sourceFile)].sort((a, b) => a.start - b.start) : emptyArray;\n    }\n    function getIndentationAtPosition(fileName, position, editorOptions) {\n      let start = timestamp();\n      const settings = toEditorSettings(editorOptions);\n      const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n      log(\"getIndentationAtPosition: getCurrentSourceFile: \" + (timestamp() - start));\n      start = timestamp();\n      const result = ts_formatting_exports.SmartIndenter.getIndentation(position, sourceFile, settings);\n      log(\"getIndentationAtPosition: computeIndentation  : \" + (timestamp() - start));\n      return result;\n    }\n    function getFormattingEditsForRange(fileName, start, end, options) {\n      const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n      return ts_formatting_exports.formatSelection(start, end, sourceFile, ts_formatting_exports.getFormatContext(toEditorSettings(options), host));\n    }\n    function getFormattingEditsForDocument(fileName, options) {\n      return ts_formatting_exports.formatDocument(syntaxTreeCache.getCurrentSourceFile(fileName), ts_formatting_exports.getFormatContext(toEditorSettings(options), host));\n    }\n    function getFormattingEditsAfterKeystroke(fileName, position, key, options) {\n      const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n      const formatContext = ts_formatting_exports.getFormatContext(toEditorSettings(options), host);\n      if (!isInComment(sourceFile, position)) {\n        switch (key) {\n          case \"{\":\n            return ts_formatting_exports.formatOnOpeningCurly(position, sourceFile, formatContext);\n          case \"}\":\n            return ts_formatting_exports.formatOnClosingCurly(position, sourceFile, formatContext);\n          case \";\":\n            return ts_formatting_exports.formatOnSemicolon(position, sourceFile, formatContext);\n          case \"\\n\":\n            return ts_formatting_exports.formatOnEnter(position, sourceFile, formatContext);\n        }\n      }\n      return [];\n    }\n    function getCodeFixesAtPosition(fileName, start, end, errorCodes63, formatOptions, preferences = emptyOptions) {\n      synchronizeHostData();\n      const sourceFile = getValidSourceFile(fileName);\n      const span = createTextSpanFromBounds(start, end);\n      const formatContext = ts_formatting_exports.getFormatContext(formatOptions, host);\n      return flatMap(deduplicate(errorCodes63, equateValues, compareValues), (errorCode) => {\n        cancellationToken.throwIfCancellationRequested();\n        return ts_codefix_exports.getFixes({ errorCode, sourceFile, span, program, host, cancellationToken, formatContext, preferences });\n      });\n    }\n    function getCombinedCodeFix(scope, fixId51, formatOptions, preferences = emptyOptions) {\n      synchronizeHostData();\n      Debug.assert(scope.type === \"file\");\n      const sourceFile = getValidSourceFile(scope.fileName);\n      const formatContext = ts_formatting_exports.getFormatContext(formatOptions, host);\n      return ts_codefix_exports.getAllFixes({ fixId: fixId51, sourceFile, program, host, cancellationToken, formatContext, preferences });\n    }\n    function organizeImports2(args, formatOptions, preferences = emptyOptions) {\n      var _a3;\n      synchronizeHostData();\n      Debug.assert(args.type === \"file\");\n      const sourceFile = getValidSourceFile(args.fileName);\n      const formatContext = ts_formatting_exports.getFormatContext(formatOptions, host);\n      const mode = (_a3 = args.mode) != null ? _a3 : args.skipDestructiveCodeActions ? \"SortAndCombine\" : \"All\";\n      return ts_OrganizeImports_exports.organizeImports(sourceFile, formatContext, host, program, preferences, mode);\n    }\n    function getEditsForFileRename2(oldFilePath, newFilePath, formatOptions, preferences = emptyOptions) {\n      return getEditsForFileRename(getProgram(), oldFilePath, newFilePath, host, ts_formatting_exports.getFormatContext(formatOptions, host), preferences, sourceMapper);\n    }\n    function applyCodeActionCommand(fileName, actionOrFormatSettingsOrUndefined) {\n      const action = typeof fileName === \"string\" ? actionOrFormatSettingsOrUndefined : fileName;\n      return isArray(action) ? Promise.all(action.map((a) => applySingleCodeActionCommand(a))) : applySingleCodeActionCommand(action);\n    }\n    function applySingleCodeActionCommand(action) {\n      const getPath = (path) => toPath(path, currentDirectory, getCanonicalFileName);\n      Debug.assertEqual(action.type, \"install package\");\n      return host.installPackage ? host.installPackage({ fileName: getPath(action.file), packageName: action.packageName }) : Promise.reject(\"Host does not implement `installPackage`\");\n    }\n    function getDocCommentTemplateAtPosition2(fileName, position, options, formatOptions) {\n      const formatSettings = formatOptions ? ts_formatting_exports.getFormatContext(formatOptions, host).options : void 0;\n      return ts_JsDoc_exports.getDocCommentTemplateAtPosition(getNewLineOrDefaultFromHost(host, formatSettings), syntaxTreeCache.getCurrentSourceFile(fileName), position, options);\n    }\n    function isValidBraceCompletionAtPosition(fileName, position, openingBrace) {\n      if (openingBrace === 60) {\n        return false;\n      }\n      const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n      if (isInString(sourceFile, position)) {\n        return false;\n      }\n      if (isInsideJsxElementOrAttribute(sourceFile, position)) {\n        return openingBrace === 123;\n      }\n      if (isInTemplateString(sourceFile, position)) {\n        return false;\n      }\n      switch (openingBrace) {\n        case 39:\n        case 34:\n        case 96:\n          return !isInComment(sourceFile, position);\n      }\n      return true;\n    }\n    function getJsxClosingTagAtPosition(fileName, position) {\n      const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n      const token = findPrecedingToken(position, sourceFile);\n      if (!token)\n        return void 0;\n      const element = token.kind === 31 && isJsxOpeningElement(token.parent) ? token.parent.parent : isJsxText(token) && isJsxElement(token.parent) ? token.parent : void 0;\n      if (element && isUnclosedTag(element)) {\n        return { newText: `</${element.openingElement.tagName.getText(sourceFile)}>` };\n      }\n      const fragment = token.kind === 31 && isJsxOpeningFragment(token.parent) ? token.parent.parent : isJsxText(token) && isJsxFragment(token.parent) ? token.parent : void 0;\n      if (fragment && isUnclosedFragment(fragment)) {\n        return { newText: \"</>\" };\n      }\n    }\n    function getLinesForRange(sourceFile, textRange) {\n      return {\n        lineStarts: sourceFile.getLineStarts(),\n        firstLine: sourceFile.getLineAndCharacterOfPosition(textRange.pos).line,\n        lastLine: sourceFile.getLineAndCharacterOfPosition(textRange.end).line\n      };\n    }\n    function toggleLineComment(fileName, textRange, insertComment) {\n      const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n      const textChanges2 = [];\n      const { lineStarts, firstLine, lastLine } = getLinesForRange(sourceFile, textRange);\n      let isCommenting = insertComment || false;\n      let leftMostPosition = Number.MAX_VALUE;\n      const lineTextStarts = /* @__PURE__ */ new Map();\n      const firstNonWhitespaceCharacterRegex = new RegExp(/\\S/);\n      const isJsx = isInsideJsxElement(sourceFile, lineStarts[firstLine]);\n      const openComment = isJsx ? \"{/*\" : \"//\";\n      for (let i = firstLine; i <= lastLine; i++) {\n        const lineText = sourceFile.text.substring(lineStarts[i], sourceFile.getLineEndOfPosition(lineStarts[i]));\n        const regExec = firstNonWhitespaceCharacterRegex.exec(lineText);\n        if (regExec) {\n          leftMostPosition = Math.min(leftMostPosition, regExec.index);\n          lineTextStarts.set(i.toString(), regExec.index);\n          if (lineText.substr(regExec.index, openComment.length) !== openComment) {\n            isCommenting = insertComment === void 0 || insertComment;\n          }\n        }\n      }\n      for (let i = firstLine; i <= lastLine; i++) {\n        if (firstLine !== lastLine && lineStarts[i] === textRange.end) {\n          continue;\n        }\n        const lineTextStart = lineTextStarts.get(i.toString());\n        if (lineTextStart !== void 0) {\n          if (isJsx) {\n            textChanges2.push.apply(textChanges2, toggleMultilineComment(fileName, { pos: lineStarts[i] + leftMostPosition, end: sourceFile.getLineEndOfPosition(lineStarts[i]) }, isCommenting, isJsx));\n          } else if (isCommenting) {\n            textChanges2.push({\n              newText: openComment,\n              span: {\n                length: 0,\n                start: lineStarts[i] + leftMostPosition\n              }\n            });\n          } else if (sourceFile.text.substr(lineStarts[i] + lineTextStart, openComment.length) === openComment) {\n            textChanges2.push({\n              newText: \"\",\n              span: {\n                length: openComment.length,\n                start: lineStarts[i] + lineTextStart\n              }\n            });\n          }\n        }\n      }\n      return textChanges2;\n    }\n    function toggleMultilineComment(fileName, textRange, insertComment, isInsideJsx) {\n      var _a3;\n      const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n      const textChanges2 = [];\n      const { text } = sourceFile;\n      let hasComment = false;\n      let isCommenting = insertComment || false;\n      const positions = [];\n      let { pos } = textRange;\n      const isJsx = isInsideJsx !== void 0 ? isInsideJsx : isInsideJsxElement(sourceFile, pos);\n      const openMultiline = isJsx ? \"{/*\" : \"/*\";\n      const closeMultiline = isJsx ? \"*/}\" : \"*/\";\n      const openMultilineRegex = isJsx ? \"\\\\{\\\\/\\\\*\" : \"\\\\/\\\\*\";\n      const closeMultilineRegex = isJsx ? \"\\\\*\\\\/\\\\}\" : \"\\\\*\\\\/\";\n      while (pos <= textRange.end) {\n        const offset = text.substr(pos, openMultiline.length) === openMultiline ? openMultiline.length : 0;\n        const commentRange = isInComment(sourceFile, pos + offset);\n        if (commentRange) {\n          if (isJsx) {\n            commentRange.pos--;\n            commentRange.end++;\n          }\n          positions.push(commentRange.pos);\n          if (commentRange.kind === 3) {\n            positions.push(commentRange.end);\n          }\n          hasComment = true;\n          pos = commentRange.end + 1;\n        } else {\n          const newPos = text.substring(pos, textRange.end).search(`(${openMultilineRegex})|(${closeMultilineRegex})`);\n          isCommenting = insertComment !== void 0 ? insertComment : isCommenting || !isTextWhiteSpaceLike(text, pos, newPos === -1 ? textRange.end : pos + newPos);\n          pos = newPos === -1 ? textRange.end + 1 : pos + newPos + closeMultiline.length;\n        }\n      }\n      if (isCommenting || !hasComment) {\n        if (((_a3 = isInComment(sourceFile, textRange.pos)) == null ? void 0 : _a3.kind) !== 2) {\n          insertSorted(positions, textRange.pos, compareValues);\n        }\n        insertSorted(positions, textRange.end, compareValues);\n        const firstPos = positions[0];\n        if (text.substr(firstPos, openMultiline.length) !== openMultiline) {\n          textChanges2.push({\n            newText: openMultiline,\n            span: {\n              length: 0,\n              start: firstPos\n            }\n          });\n        }\n        for (let i = 1; i < positions.length - 1; i++) {\n          if (text.substr(positions[i] - closeMultiline.length, closeMultiline.length) !== closeMultiline) {\n            textChanges2.push({\n              newText: closeMultiline,\n              span: {\n                length: 0,\n                start: positions[i]\n              }\n            });\n          }\n          if (text.substr(positions[i], openMultiline.length) !== openMultiline) {\n            textChanges2.push({\n              newText: openMultiline,\n              span: {\n                length: 0,\n                start: positions[i]\n              }\n            });\n          }\n        }\n        if (textChanges2.length % 2 !== 0) {\n          textChanges2.push({\n            newText: closeMultiline,\n            span: {\n              length: 0,\n              start: positions[positions.length - 1]\n            }\n          });\n        }\n      } else {\n        for (const pos2 of positions) {\n          const from = pos2 - closeMultiline.length > 0 ? pos2 - closeMultiline.length : 0;\n          const offset = text.substr(from, closeMultiline.length) === closeMultiline ? closeMultiline.length : 0;\n          textChanges2.push({\n            newText: \"\",\n            span: {\n              length: openMultiline.length,\n              start: pos2 - offset\n            }\n          });\n        }\n      }\n      return textChanges2;\n    }\n    function commentSelection(fileName, textRange) {\n      const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n      const { firstLine, lastLine } = getLinesForRange(sourceFile, textRange);\n      return firstLine === lastLine && textRange.pos !== textRange.end ? toggleMultilineComment(fileName, textRange, true) : toggleLineComment(fileName, textRange, true);\n    }\n    function uncommentSelection(fileName, textRange) {\n      const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n      const textChanges2 = [];\n      const { pos } = textRange;\n      let { end } = textRange;\n      if (pos === end) {\n        end += isInsideJsxElement(sourceFile, pos) ? 2 : 1;\n      }\n      for (let i = pos; i <= end; i++) {\n        const commentRange = isInComment(sourceFile, i);\n        if (commentRange) {\n          switch (commentRange.kind) {\n            case 2:\n              textChanges2.push.apply(textChanges2, toggleLineComment(fileName, { end: commentRange.end, pos: commentRange.pos + 1 }, false));\n              break;\n            case 3:\n              textChanges2.push.apply(textChanges2, toggleMultilineComment(fileName, { end: commentRange.end, pos: commentRange.pos + 1 }, false));\n          }\n          i = commentRange.end + 1;\n        }\n      }\n      return textChanges2;\n    }\n    function isUnclosedTag({ openingElement, closingElement, parent: parent2 }) {\n      return !tagNamesAreEquivalent(openingElement.tagName, closingElement.tagName) || isJsxElement(parent2) && tagNamesAreEquivalent(openingElement.tagName, parent2.openingElement.tagName) && isUnclosedTag(parent2);\n    }\n    function isUnclosedFragment({ closingFragment, parent: parent2 }) {\n      return !!(closingFragment.flags & 131072) || isJsxFragment(parent2) && isUnclosedFragment(parent2);\n    }\n    function getSpanOfEnclosingComment(fileName, position, onlyMultiLine) {\n      const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n      const range = ts_formatting_exports.getRangeOfEnclosingComment(sourceFile, position);\n      return range && (!onlyMultiLine || range.kind === 3) ? createTextSpanFromRange(range) : void 0;\n    }\n    function getTodoComments(fileName, descriptors) {\n      synchronizeHostData();\n      const sourceFile = getValidSourceFile(fileName);\n      cancellationToken.throwIfCancellationRequested();\n      const fileContents = sourceFile.text;\n      const result = [];\n      if (descriptors.length > 0 && !isNodeModulesFile(sourceFile.fileName)) {\n        const regExp = getTodoCommentsRegExp();\n        let matchArray;\n        while (matchArray = regExp.exec(fileContents)) {\n          cancellationToken.throwIfCancellationRequested();\n          const firstDescriptorCaptureIndex = 3;\n          Debug.assert(matchArray.length === descriptors.length + firstDescriptorCaptureIndex);\n          const preamble = matchArray[1];\n          const matchPosition = matchArray.index + preamble.length;\n          if (!isInComment(sourceFile, matchPosition)) {\n            continue;\n          }\n          let descriptor;\n          for (let i = 0; i < descriptors.length; i++) {\n            if (matchArray[i + firstDescriptorCaptureIndex]) {\n              descriptor = descriptors[i];\n            }\n          }\n          if (descriptor === void 0)\n            return Debug.fail();\n          if (isLetterOrDigit(fileContents.charCodeAt(matchPosition + descriptor.text.length))) {\n            continue;\n          }\n          const message = matchArray[2];\n          result.push({ descriptor, message, position: matchPosition });\n        }\n      }\n      return result;\n      function escapeRegExp(str) {\n        return str.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g, \"\\\\$&\");\n      }\n      function getTodoCommentsRegExp() {\n        const singleLineCommentStart = /(?:\\/\\/+\\s*)/.source;\n        const multiLineCommentStart = /(?:\\/\\*+\\s*)/.source;\n        const anyNumberOfSpacesAndAsterisksAtStartOfLine = /(?:^(?:\\s|\\*)*)/.source;\n        const preamble = \"(\" + anyNumberOfSpacesAndAsterisksAtStartOfLine + \"|\" + singleLineCommentStart + \"|\" + multiLineCommentStart + \")\";\n        const literals = \"(?:\" + map(descriptors, (d) => \"(\" + escapeRegExp(d.text) + \")\").join(\"|\") + \")\";\n        const endOfLineOrEndOfComment = /(?:$|\\*\\/)/.source;\n        const messageRemainder = /(?:.*?)/.source;\n        const messagePortion = \"(\" + literals + messageRemainder + \")\";\n        const regExpString = preamble + messagePortion + endOfLineOrEndOfComment;\n        return new RegExp(regExpString, \"gim\");\n      }\n      function isLetterOrDigit(char) {\n        return char >= 97 && char <= 122 || char >= 65 && char <= 90 || char >= 48 && char <= 57;\n      }\n      function isNodeModulesFile(path) {\n        return stringContains(path, \"/node_modules/\");\n      }\n    }\n    function getRenameInfo2(fileName, position, preferences) {\n      synchronizeHostData();\n      return ts_Rename_exports.getRenameInfo(program, getValidSourceFile(fileName), position, preferences || {});\n    }\n    function getRefactorContext(file, positionOrRange, preferences, formatOptions, triggerReason, kind) {\n      const [startPosition, endPosition] = typeof positionOrRange === \"number\" ? [positionOrRange, void 0] : [positionOrRange.pos, positionOrRange.end];\n      return {\n        file,\n        startPosition,\n        endPosition,\n        program: getProgram(),\n        host,\n        formatContext: ts_formatting_exports.getFormatContext(formatOptions, host),\n        cancellationToken,\n        preferences,\n        triggerReason,\n        kind\n      };\n    }\n    function getInlayHintsContext(file, span, preferences) {\n      return {\n        file,\n        program: getProgram(),\n        host,\n        span,\n        preferences,\n        cancellationToken\n      };\n    }\n    function getSmartSelectionRange2(fileName, position) {\n      return ts_SmartSelectionRange_exports.getSmartSelectionRange(position, syntaxTreeCache.getCurrentSourceFile(fileName));\n    }\n    function getApplicableRefactors2(fileName, positionOrRange, preferences = emptyOptions, triggerReason, kind) {\n      synchronizeHostData();\n      const file = getValidSourceFile(fileName);\n      return ts_refactor_exports.getApplicableRefactors(getRefactorContext(file, positionOrRange, preferences, emptyOptions, triggerReason, kind));\n    }\n    function getEditsForRefactor2(fileName, formatOptions, positionOrRange, refactorName13, actionName2, preferences = emptyOptions) {\n      synchronizeHostData();\n      const file = getValidSourceFile(fileName);\n      return ts_refactor_exports.getEditsForRefactor(getRefactorContext(file, positionOrRange, preferences, formatOptions), refactorName13, actionName2);\n    }\n    function toLineColumnOffset(fileName, position) {\n      if (position === 0) {\n        return { line: 0, character: 0 };\n      }\n      return sourceMapper.toLineColumnOffset(fileName, position);\n    }\n    function prepareCallHierarchy(fileName, position) {\n      synchronizeHostData();\n      const declarations = ts_CallHierarchy_exports.resolveCallHierarchyDeclaration(program, getTouchingPropertyName(getValidSourceFile(fileName), position));\n      return declarations && mapOneOrMany(declarations, (declaration) => ts_CallHierarchy_exports.createCallHierarchyItem(program, declaration));\n    }\n    function provideCallHierarchyIncomingCalls(fileName, position) {\n      synchronizeHostData();\n      const sourceFile = getValidSourceFile(fileName);\n      const declaration = firstOrOnly(ts_CallHierarchy_exports.resolveCallHierarchyDeclaration(program, position === 0 ? sourceFile : getTouchingPropertyName(sourceFile, position)));\n      return declaration ? ts_CallHierarchy_exports.getIncomingCalls(program, declaration, cancellationToken) : [];\n    }\n    function provideCallHierarchyOutgoingCalls(fileName, position) {\n      synchronizeHostData();\n      const sourceFile = getValidSourceFile(fileName);\n      const declaration = firstOrOnly(ts_CallHierarchy_exports.resolveCallHierarchyDeclaration(program, position === 0 ? sourceFile : getTouchingPropertyName(sourceFile, position)));\n      return declaration ? ts_CallHierarchy_exports.getOutgoingCalls(program, declaration) : [];\n    }\n    function provideInlayHints2(fileName, span, preferences = emptyOptions) {\n      synchronizeHostData();\n      const sourceFile = getValidSourceFile(fileName);\n      return ts_InlayHints_exports.provideInlayHints(getInlayHintsContext(sourceFile, span, preferences));\n    }\n    const ls = {\n      dispose,\n      cleanupSemanticCache,\n      getSyntacticDiagnostics,\n      getSemanticDiagnostics,\n      getSuggestionDiagnostics,\n      getCompilerOptionsDiagnostics,\n      getSyntacticClassifications: getSyntacticClassifications2,\n      getSemanticClassifications: getSemanticClassifications3,\n      getEncodedSyntacticClassifications: getEncodedSyntacticClassifications2,\n      getEncodedSemanticClassifications: getEncodedSemanticClassifications3,\n      getCompletionsAtPosition: getCompletionsAtPosition2,\n      getCompletionEntryDetails: getCompletionEntryDetails2,\n      getCompletionEntrySymbol: getCompletionEntrySymbol2,\n      getSignatureHelpItems: getSignatureHelpItems2,\n      getQuickInfoAtPosition,\n      getDefinitionAtPosition: getDefinitionAtPosition2,\n      getDefinitionAndBoundSpan: getDefinitionAndBoundSpan2,\n      getImplementationAtPosition,\n      getTypeDefinitionAtPosition: getTypeDefinitionAtPosition2,\n      getReferencesAtPosition,\n      findReferences,\n      getFileReferences,\n      getOccurrencesAtPosition,\n      getDocumentHighlights,\n      getNameOrDottedNameSpan,\n      getBreakpointStatementAtPosition,\n      getNavigateToItems: getNavigateToItems2,\n      getRenameInfo: getRenameInfo2,\n      getSmartSelectionRange: getSmartSelectionRange2,\n      findRenameLocations,\n      getNavigationBarItems: getNavigationBarItems2,\n      getNavigationTree: getNavigationTree2,\n      getOutliningSpans,\n      getTodoComments,\n      getBraceMatchingAtPosition,\n      getIndentationAtPosition,\n      getFormattingEditsForRange,\n      getFormattingEditsForDocument,\n      getFormattingEditsAfterKeystroke,\n      getDocCommentTemplateAtPosition: getDocCommentTemplateAtPosition2,\n      isValidBraceCompletionAtPosition,\n      getJsxClosingTagAtPosition,\n      getSpanOfEnclosingComment,\n      getCodeFixesAtPosition,\n      getCombinedCodeFix,\n      applyCodeActionCommand,\n      organizeImports: organizeImports2,\n      getEditsForFileRename: getEditsForFileRename2,\n      getEmitOutput,\n      getNonBoundSourceFile,\n      getProgram,\n      getCurrentProgram: () => program,\n      getAutoImportProvider,\n      updateIsDefinitionOfReferencedSymbols,\n      getApplicableRefactors: getApplicableRefactors2,\n      getEditsForRefactor: getEditsForRefactor2,\n      toLineColumnOffset,\n      getSourceMapper: () => sourceMapper,\n      clearSourceMapperCache: () => sourceMapper.clearCache(),\n      prepareCallHierarchy,\n      provideCallHierarchyIncomingCalls,\n      provideCallHierarchyOutgoingCalls,\n      toggleLineComment,\n      toggleMultilineComment,\n      commentSelection,\n      uncommentSelection,\n      provideInlayHints: provideInlayHints2,\n      getSupportedCodeFixes\n    };\n    switch (languageServiceMode) {\n      case 0:\n        break;\n      case 1:\n        invalidOperationsInPartialSemanticMode.forEach((key) => ls[key] = () => {\n          throw new Error(`LanguageService Operation: ${key} not allowed in LanguageServiceMode.PartialSemantic`);\n        });\n        break;\n      case 2:\n        invalidOperationsInSyntacticMode.forEach((key) => ls[key] = () => {\n          throw new Error(`LanguageService Operation: ${key} not allowed in LanguageServiceMode.Syntactic`);\n        });\n        break;\n      default:\n        Debug.assertNever(languageServiceMode);\n    }\n    return ls;\n  }\n  function getNameTable(sourceFile) {\n    if (!sourceFile.nameTable) {\n      initializeNameTable(sourceFile);\n    }\n    return sourceFile.nameTable;\n  }\n  function initializeNameTable(sourceFile) {\n    const nameTable = sourceFile.nameTable = /* @__PURE__ */ new Map();\n    sourceFile.forEachChild(function walk(node) {\n      if (isIdentifier(node) && !isTagName(node) && node.escapedText || isStringOrNumericLiteralLike(node) && literalIsName(node)) {\n        const text = getEscapedTextOfIdentifierOrLiteral(node);\n        nameTable.set(text, nameTable.get(text) === void 0 ? node.pos : -1);\n      } else if (isPrivateIdentifier(node)) {\n        const text = node.escapedText;\n        nameTable.set(text, nameTable.get(text) === void 0 ? node.pos : -1);\n      }\n      forEachChild(node, walk);\n      if (hasJSDocNodes(node)) {\n        for (const jsDoc of node.jsDoc) {\n          forEachChild(jsDoc, walk);\n        }\n      }\n    });\n  }\n  function literalIsName(node) {\n    return isDeclarationName(node) || node.parent.kind === 280 || isArgumentOfElementAccessExpression(node) || isLiteralComputedPropertyDeclarationName(node);\n  }\n  function getContainingObjectLiteralElement(node) {\n    const element = getContainingObjectLiteralElementWorker(node);\n    return element && (isObjectLiteralExpression(element.parent) || isJsxAttributes(element.parent)) ? element : void 0;\n  }\n  function getContainingObjectLiteralElementWorker(node) {\n    switch (node.kind) {\n      case 10:\n      case 14:\n      case 8:\n        if (node.parent.kind === 164) {\n          return isObjectLiteralElement(node.parent.parent) ? node.parent.parent : void 0;\n        }\n      case 79:\n        return isObjectLiteralElement(node.parent) && (node.parent.parent.kind === 207 || node.parent.parent.kind === 289) && node.parent.name === node ? node.parent : void 0;\n    }\n    return void 0;\n  }\n  function getSymbolAtLocationForQuickInfo(node, checker) {\n    const object = getContainingObjectLiteralElement(node);\n    if (object) {\n      const contextualType = checker.getContextualType(object.parent);\n      const properties = contextualType && getPropertySymbolsFromContextualType(object, checker, contextualType, false);\n      if (properties && properties.length === 1) {\n        return first(properties);\n      }\n    }\n    return checker.getSymbolAtLocation(node);\n  }\n  function getPropertySymbolsFromContextualType(node, checker, contextualType, unionSymbolOk) {\n    const name = getNameFromPropertyName(node.name);\n    if (!name)\n      return emptyArray;\n    if (!contextualType.isUnion()) {\n      const symbol = contextualType.getProperty(name);\n      return symbol ? [symbol] : emptyArray;\n    }\n    const discriminatedPropertySymbols = mapDefined(contextualType.types, (t) => (isObjectLiteralExpression(node.parent) || isJsxAttributes(node.parent)) && checker.isTypeInvalidDueToUnionDiscriminant(t, node.parent) ? void 0 : t.getProperty(name));\n    if (unionSymbolOk && (discriminatedPropertySymbols.length === 0 || discriminatedPropertySymbols.length === contextualType.types.length)) {\n      const symbol = contextualType.getProperty(name);\n      if (symbol)\n        return [symbol];\n    }\n    if (discriminatedPropertySymbols.length === 0) {\n      return mapDefined(contextualType.types, (t) => t.getProperty(name));\n    }\n    return discriminatedPropertySymbols;\n  }\n  function isArgumentOfElementAccessExpression(node) {\n    return node && node.parent && node.parent.kind === 209 && node.parent.argumentExpression === node;\n  }\n  function getDefaultLibFilePath(options) {\n    if (sys) {\n      return combinePaths(getDirectoryPath(normalizePath(sys.getExecutingFilePath())), getDefaultLibFileName(options));\n    }\n    throw new Error(\"getDefaultLibFilePath is only supported when consumed as a node module. \");\n  }\n  var servicesVersion, NodeObject, TokenOrIdentifierObject, SymbolObject, TokenObject, IdentifierObject, PrivateIdentifierObject, TypeObject, SignatureObject, SourceFileObject, SourceMapSourceObject, SyntaxTreeCache, NoopCancellationToken, CancellationTokenObject, ThrottledCancellationToken, invalidOperationsInPartialSemanticMode, invalidOperationsInSyntacticMode;\n  var init_services = __esm({\n    \"src/services/services.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts4();\n      init_ts_NavigateTo();\n      init_ts_NavigationBar();\n      servicesVersion = \"0.8\";\n      NodeObject = class {\n        constructor(kind, pos, end) {\n          this.pos = pos;\n          this.end = end;\n          this.flags = 0;\n          this.modifierFlagsCache = 0;\n          this.transformFlags = 0;\n          this.parent = void 0;\n          this.kind = kind;\n        }\n        assertHasRealPosition(message) {\n          Debug.assert(!positionIsSynthesized(this.pos) && !positionIsSynthesized(this.end), message || \"Node must have a real position for this operation\");\n        }\n        getSourceFile() {\n          return getSourceFileOfNode(this);\n        }\n        getStart(sourceFile, includeJsDocComment) {\n          this.assertHasRealPosition();\n          return getTokenPosOfNode(this, sourceFile, includeJsDocComment);\n        }\n        getFullStart() {\n          this.assertHasRealPosition();\n          return this.pos;\n        }\n        getEnd() {\n          this.assertHasRealPosition();\n          return this.end;\n        }\n        getWidth(sourceFile) {\n          this.assertHasRealPosition();\n          return this.getEnd() - this.getStart(sourceFile);\n        }\n        getFullWidth() {\n          this.assertHasRealPosition();\n          return this.end - this.pos;\n        }\n        getLeadingTriviaWidth(sourceFile) {\n          this.assertHasRealPosition();\n          return this.getStart(sourceFile) - this.pos;\n        }\n        getFullText(sourceFile) {\n          this.assertHasRealPosition();\n          return (sourceFile || this.getSourceFile()).text.substring(this.pos, this.end);\n        }\n        getText(sourceFile) {\n          this.assertHasRealPosition();\n          if (!sourceFile) {\n            sourceFile = this.getSourceFile();\n          }\n          return sourceFile.text.substring(this.getStart(sourceFile), this.getEnd());\n        }\n        getChildCount(sourceFile) {\n          return this.getChildren(sourceFile).length;\n        }\n        getChildAt(index, sourceFile) {\n          return this.getChildren(sourceFile)[index];\n        }\n        getChildren(sourceFile) {\n          this.assertHasRealPosition(\"Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine\");\n          return this._children || (this._children = createChildren(this, sourceFile));\n        }\n        getFirstToken(sourceFile) {\n          this.assertHasRealPosition();\n          const children = this.getChildren(sourceFile);\n          if (!children.length) {\n            return void 0;\n          }\n          const child = find(children, (kid) => kid.kind < 312 || kid.kind > 353);\n          return child.kind < 163 ? child : child.getFirstToken(sourceFile);\n        }\n        getLastToken(sourceFile) {\n          this.assertHasRealPosition();\n          const children = this.getChildren(sourceFile);\n          const child = lastOrUndefined(children);\n          if (!child) {\n            return void 0;\n          }\n          return child.kind < 163 ? child : child.getLastToken(sourceFile);\n        }\n        forEachChild(cbNode, cbNodeArray) {\n          return forEachChild(this, cbNode, cbNodeArray);\n        }\n      };\n      TokenOrIdentifierObject = class {\n        constructor(pos, end) {\n          this.pos = pos;\n          this.end = end;\n          this.flags = 0;\n          this.modifierFlagsCache = 0;\n          this.transformFlags = 0;\n          this.parent = void 0;\n        }\n        getSourceFile() {\n          return getSourceFileOfNode(this);\n        }\n        getStart(sourceFile, includeJsDocComment) {\n          return getTokenPosOfNode(this, sourceFile, includeJsDocComment);\n        }\n        getFullStart() {\n          return this.pos;\n        }\n        getEnd() {\n          return this.end;\n        }\n        getWidth(sourceFile) {\n          return this.getEnd() - this.getStart(sourceFile);\n        }\n        getFullWidth() {\n          return this.end - this.pos;\n        }\n        getLeadingTriviaWidth(sourceFile) {\n          return this.getStart(sourceFile) - this.pos;\n        }\n        getFullText(sourceFile) {\n          return (sourceFile || this.getSourceFile()).text.substring(this.pos, this.end);\n        }\n        getText(sourceFile) {\n          if (!sourceFile) {\n            sourceFile = this.getSourceFile();\n          }\n          return sourceFile.text.substring(this.getStart(sourceFile), this.getEnd());\n        }\n        getChildCount() {\n          return this.getChildren().length;\n        }\n        getChildAt(index) {\n          return this.getChildren()[index];\n        }\n        getChildren() {\n          return this.kind === 1 ? this.jsDoc || emptyArray : emptyArray;\n        }\n        getFirstToken() {\n          return void 0;\n        }\n        getLastToken() {\n          return void 0;\n        }\n        forEachChild() {\n          return void 0;\n        }\n      };\n      SymbolObject = class {\n        constructor(flags, name) {\n          this.id = 0;\n          this.mergeId = 0;\n          this.flags = flags;\n          this.escapedName = name;\n        }\n        getFlags() {\n          return this.flags;\n        }\n        get name() {\n          return symbolName(this);\n        }\n        getEscapedName() {\n          return this.escapedName;\n        }\n        getName() {\n          return this.name;\n        }\n        getDeclarations() {\n          return this.declarations;\n        }\n        getDocumentationComment(checker) {\n          if (!this.documentationComment) {\n            this.documentationComment = emptyArray;\n            if (!this.declarations && isTransientSymbol(this) && this.links.target && isTransientSymbol(this.links.target) && this.links.target.links.tupleLabelDeclaration) {\n              const labelDecl = this.links.target.links.tupleLabelDeclaration;\n              this.documentationComment = getDocumentationComment([labelDecl], checker);\n            } else {\n              this.documentationComment = getDocumentationComment(this.declarations, checker);\n            }\n          }\n          return this.documentationComment;\n        }\n        getContextualDocumentationComment(context, checker) {\n          if (context) {\n            if (isGetAccessor(context)) {\n              if (!this.contextualGetAccessorDocumentationComment) {\n                this.contextualGetAccessorDocumentationComment = getDocumentationComment(filter(this.declarations, isGetAccessor), checker);\n              }\n              if (length(this.contextualGetAccessorDocumentationComment)) {\n                return this.contextualGetAccessorDocumentationComment;\n              }\n            }\n            if (isSetAccessor(context)) {\n              if (!this.contextualSetAccessorDocumentationComment) {\n                this.contextualSetAccessorDocumentationComment = getDocumentationComment(filter(this.declarations, isSetAccessor), checker);\n              }\n              if (length(this.contextualSetAccessorDocumentationComment)) {\n                return this.contextualSetAccessorDocumentationComment;\n              }\n            }\n          }\n          return this.getDocumentationComment(checker);\n        }\n        getJsDocTags(checker) {\n          if (this.tags === void 0) {\n            this.tags = getJsDocTagsOfDeclarations(this.declarations, checker);\n          }\n          return this.tags;\n        }\n        getContextualJsDocTags(context, checker) {\n          if (context) {\n            if (isGetAccessor(context)) {\n              if (!this.contextualGetAccessorTags) {\n                this.contextualGetAccessorTags = getJsDocTagsOfDeclarations(filter(this.declarations, isGetAccessor), checker);\n              }\n              if (length(this.contextualGetAccessorTags)) {\n                return this.contextualGetAccessorTags;\n              }\n            }\n            if (isSetAccessor(context)) {\n              if (!this.contextualSetAccessorTags) {\n                this.contextualSetAccessorTags = getJsDocTagsOfDeclarations(filter(this.declarations, isSetAccessor), checker);\n              }\n              if (length(this.contextualSetAccessorTags)) {\n                return this.contextualSetAccessorTags;\n              }\n            }\n          }\n          return this.getJsDocTags(checker);\n        }\n      };\n      TokenObject = class extends TokenOrIdentifierObject {\n        constructor(kind, pos, end) {\n          super(pos, end);\n          this.kind = kind;\n        }\n      };\n      IdentifierObject = class extends TokenOrIdentifierObject {\n        constructor(_kind, pos, end) {\n          super(pos, end);\n          this.kind = 79;\n        }\n        get text() {\n          return idText(this);\n        }\n      };\n      IdentifierObject.prototype.kind = 79;\n      PrivateIdentifierObject = class extends TokenOrIdentifierObject {\n        constructor(_kind, pos, end) {\n          super(pos, end);\n          this.kind = 80;\n        }\n        get text() {\n          return idText(this);\n        }\n      };\n      PrivateIdentifierObject.prototype.kind = 80;\n      TypeObject = class {\n        constructor(checker, flags) {\n          this.checker = checker;\n          this.flags = flags;\n        }\n        getFlags() {\n          return this.flags;\n        }\n        getSymbol() {\n          return this.symbol;\n        }\n        getProperties() {\n          return this.checker.getPropertiesOfType(this);\n        }\n        getProperty(propertyName) {\n          return this.checker.getPropertyOfType(this, propertyName);\n        }\n        getApparentProperties() {\n          return this.checker.getAugmentedPropertiesOfType(this);\n        }\n        getCallSignatures() {\n          return this.checker.getSignaturesOfType(this, 0);\n        }\n        getConstructSignatures() {\n          return this.checker.getSignaturesOfType(this, 1);\n        }\n        getStringIndexType() {\n          return this.checker.getIndexTypeOfType(this, 0);\n        }\n        getNumberIndexType() {\n          return this.checker.getIndexTypeOfType(this, 1);\n        }\n        getBaseTypes() {\n          return this.isClassOrInterface() ? this.checker.getBaseTypes(this) : void 0;\n        }\n        isNullableType() {\n          return this.checker.isNullableType(this);\n        }\n        getNonNullableType() {\n          return this.checker.getNonNullableType(this);\n        }\n        getNonOptionalType() {\n          return this.checker.getNonOptionalType(this);\n        }\n        getConstraint() {\n          return this.checker.getBaseConstraintOfType(this);\n        }\n        getDefault() {\n          return this.checker.getDefaultFromTypeParameter(this);\n        }\n        isUnion() {\n          return !!(this.flags & 1048576);\n        }\n        isIntersection() {\n          return !!(this.flags & 2097152);\n        }\n        isUnionOrIntersection() {\n          return !!(this.flags & 3145728);\n        }\n        isLiteral() {\n          return !!(this.flags & (128 | 256 | 2048));\n        }\n        isStringLiteral() {\n          return !!(this.flags & 128);\n        }\n        isNumberLiteral() {\n          return !!(this.flags & 256);\n        }\n        isTypeParameter() {\n          return !!(this.flags & 262144);\n        }\n        isClassOrInterface() {\n          return !!(getObjectFlags(this) & 3);\n        }\n        isClass() {\n          return !!(getObjectFlags(this) & 1);\n        }\n        isIndexType() {\n          return !!(this.flags & 4194304);\n        }\n        get typeArguments() {\n          if (getObjectFlags(this) & 4) {\n            return this.checker.getTypeArguments(this);\n          }\n          return void 0;\n        }\n      };\n      SignatureObject = class {\n        constructor(checker, flags) {\n          this.checker = checker;\n          this.flags = flags;\n        }\n        getDeclaration() {\n          return this.declaration;\n        }\n        getTypeParameters() {\n          return this.typeParameters;\n        }\n        getParameters() {\n          return this.parameters;\n        }\n        getReturnType() {\n          return this.checker.getReturnTypeOfSignature(this);\n        }\n        getTypeParameterAtPosition(pos) {\n          const type = this.checker.getParameterType(this, pos);\n          if (type.isIndexType() && isThisTypeParameter(type.type)) {\n            const constraint = type.type.getConstraint();\n            if (constraint) {\n              return this.checker.getIndexType(constraint);\n            }\n          }\n          return type;\n        }\n        getDocumentationComment() {\n          return this.documentationComment || (this.documentationComment = getDocumentationComment(singleElementArray(this.declaration), this.checker));\n        }\n        getJsDocTags() {\n          return this.jsDocTags || (this.jsDocTags = getJsDocTagsOfDeclarations(singleElementArray(this.declaration), this.checker));\n        }\n      };\n      SourceFileObject = class extends NodeObject {\n        constructor(kind, pos, end) {\n          super(kind, pos, end);\n          this.kind = 308;\n        }\n        update(newText, textChangeRange) {\n          return updateSourceFile(this, newText, textChangeRange);\n        }\n        getLineAndCharacterOfPosition(position) {\n          return getLineAndCharacterOfPosition(this, position);\n        }\n        getLineStarts() {\n          return getLineStarts(this);\n        }\n        getPositionOfLineAndCharacter(line, character, allowEdits) {\n          return computePositionOfLineAndCharacter(getLineStarts(this), line, character, this.text, allowEdits);\n        }\n        getLineEndOfPosition(pos) {\n          const { line } = this.getLineAndCharacterOfPosition(pos);\n          const lineStarts = this.getLineStarts();\n          let lastCharPos;\n          if (line + 1 >= lineStarts.length) {\n            lastCharPos = this.getEnd();\n          }\n          if (!lastCharPos) {\n            lastCharPos = lineStarts[line + 1] - 1;\n          }\n          const fullText = this.getFullText();\n          return fullText[lastCharPos] === \"\\n\" && fullText[lastCharPos - 1] === \"\\r\" ? lastCharPos - 1 : lastCharPos;\n        }\n        getNamedDeclarations() {\n          if (!this.namedDeclarations) {\n            this.namedDeclarations = this.computeNamedDeclarations();\n          }\n          return this.namedDeclarations;\n        }\n        computeNamedDeclarations() {\n          const result = createMultiMap();\n          this.forEachChild(visit);\n          return result;\n          function addDeclaration(declaration) {\n            const name = getDeclarationName(declaration);\n            if (name) {\n              result.add(name, declaration);\n            }\n          }\n          function getDeclarations(name) {\n            let declarations = result.get(name);\n            if (!declarations) {\n              result.set(name, declarations = []);\n            }\n            return declarations;\n          }\n          function getDeclarationName(declaration) {\n            const name = getNonAssignedNameOfDeclaration(declaration);\n            return name && (isComputedPropertyName(name) && isPropertyAccessExpression(name.expression) ? name.expression.name.text : isPropertyName(name) ? getNameFromPropertyName(name) : void 0);\n          }\n          function visit(node) {\n            switch (node.kind) {\n              case 259:\n              case 215:\n              case 171:\n              case 170:\n                const functionDeclaration = node;\n                const declarationName = getDeclarationName(functionDeclaration);\n                if (declarationName) {\n                  const declarations = getDeclarations(declarationName);\n                  const lastDeclaration = lastOrUndefined(declarations);\n                  if (lastDeclaration && functionDeclaration.parent === lastDeclaration.parent && functionDeclaration.symbol === lastDeclaration.symbol) {\n                    if (functionDeclaration.body && !lastDeclaration.body) {\n                      declarations[declarations.length - 1] = functionDeclaration;\n                    }\n                  } else {\n                    declarations.push(functionDeclaration);\n                  }\n                }\n                forEachChild(node, visit);\n                break;\n              case 260:\n              case 228:\n              case 261:\n              case 262:\n              case 263:\n              case 264:\n              case 268:\n              case 278:\n              case 273:\n              case 270:\n              case 271:\n              case 174:\n              case 175:\n              case 184:\n                addDeclaration(node);\n                forEachChild(node, visit);\n                break;\n              case 166:\n                if (!hasSyntacticModifier(node, 16476)) {\n                  break;\n                }\n              case 257:\n              case 205: {\n                const decl = node;\n                if (isBindingPattern(decl.name)) {\n                  forEachChild(decl.name, visit);\n                  break;\n                }\n                if (decl.initializer) {\n                  visit(decl.initializer);\n                }\n              }\n              case 302:\n              case 169:\n              case 168:\n                addDeclaration(node);\n                break;\n              case 275:\n                const exportDeclaration = node;\n                if (exportDeclaration.exportClause) {\n                  if (isNamedExports(exportDeclaration.exportClause)) {\n                    forEach(exportDeclaration.exportClause.elements, visit);\n                  } else {\n                    visit(exportDeclaration.exportClause.name);\n                  }\n                }\n                break;\n              case 269:\n                const importClause = node.importClause;\n                if (importClause) {\n                  if (importClause.name) {\n                    addDeclaration(importClause.name);\n                  }\n                  if (importClause.namedBindings) {\n                    if (importClause.namedBindings.kind === 271) {\n                      addDeclaration(importClause.namedBindings);\n                    } else {\n                      forEach(importClause.namedBindings.elements, visit);\n                    }\n                  }\n                }\n                break;\n              case 223:\n                if (getAssignmentDeclarationKind(node) !== 0) {\n                  addDeclaration(node);\n                }\n              default:\n                forEachChild(node, visit);\n            }\n          }\n        }\n      };\n      SourceMapSourceObject = class {\n        constructor(fileName, text, skipTrivia2) {\n          this.fileName = fileName;\n          this.text = text;\n          this.skipTrivia = skipTrivia2;\n        }\n        getLineAndCharacterOfPosition(pos) {\n          return getLineAndCharacterOfPosition(this, pos);\n        }\n      };\n      SyntaxTreeCache = class {\n        constructor(host) {\n          this.host = host;\n        }\n        getCurrentSourceFile(fileName) {\n          var _a2, _b, _c, _d, _e, _f, _g, _h;\n          const scriptSnapshot = this.host.getScriptSnapshot(fileName);\n          if (!scriptSnapshot) {\n            throw new Error(\"Could not find file: '\" + fileName + \"'.\");\n          }\n          const scriptKind = getScriptKind(fileName, this.host);\n          const version2 = this.host.getScriptVersion(fileName);\n          let sourceFile;\n          if (this.currentFileName !== fileName) {\n            const options = {\n              languageVersion: 99,\n              impliedNodeFormat: getImpliedNodeFormatForFile(toPath(fileName, this.host.getCurrentDirectory(), ((_c = (_b = (_a2 = this.host).getCompilerHost) == null ? void 0 : _b.call(_a2)) == null ? void 0 : _c.getCanonicalFileName) || hostGetCanonicalFileName(this.host)), (_h = (_g = (_f = (_e = (_d = this.host).getCompilerHost) == null ? void 0 : _e.call(_d)) == null ? void 0 : _f.getModuleResolutionCache) == null ? void 0 : _g.call(_f)) == null ? void 0 : _h.getPackageJsonInfoCache(), this.host, this.host.getCompilationSettings()),\n              setExternalModuleIndicator: getSetExternalModuleIndicator(this.host.getCompilationSettings())\n            };\n            sourceFile = createLanguageServiceSourceFile(fileName, scriptSnapshot, options, version2, true, scriptKind);\n          } else if (this.currentFileVersion !== version2) {\n            const editRange = scriptSnapshot.getChangeRange(this.currentFileScriptSnapshot);\n            sourceFile = updateLanguageServiceSourceFile(this.currentSourceFile, scriptSnapshot, version2, editRange);\n          }\n          if (sourceFile) {\n            this.currentFileVersion = version2;\n            this.currentFileName = fileName;\n            this.currentFileScriptSnapshot = scriptSnapshot;\n            this.currentSourceFile = sourceFile;\n          }\n          return this.currentSourceFile;\n        }\n      };\n      NoopCancellationToken = {\n        isCancellationRequested: returnFalse,\n        throwIfCancellationRequested: noop\n      };\n      CancellationTokenObject = class {\n        constructor(cancellationToken) {\n          this.cancellationToken = cancellationToken;\n        }\n        isCancellationRequested() {\n          return this.cancellationToken.isCancellationRequested();\n        }\n        throwIfCancellationRequested() {\n          var _a2;\n          if (this.isCancellationRequested()) {\n            (_a2 = tracing) == null ? void 0 : _a2.instant(tracing.Phase.Session, \"cancellationThrown\", { kind: \"CancellationTokenObject\" });\n            throw new OperationCanceledException();\n          }\n        }\n      };\n      ThrottledCancellationToken = class {\n        constructor(hostCancellationToken, throttleWaitMilliseconds = 20) {\n          this.hostCancellationToken = hostCancellationToken;\n          this.throttleWaitMilliseconds = throttleWaitMilliseconds;\n          this.lastCancellationCheckTime = 0;\n        }\n        isCancellationRequested() {\n          const time = timestamp();\n          const duration = Math.abs(time - this.lastCancellationCheckTime);\n          if (duration >= this.throttleWaitMilliseconds) {\n            this.lastCancellationCheckTime = time;\n            return this.hostCancellationToken.isCancellationRequested();\n          }\n          return false;\n        }\n        throwIfCancellationRequested() {\n          var _a2;\n          if (this.isCancellationRequested()) {\n            (_a2 = tracing) == null ? void 0 : _a2.instant(tracing.Phase.Session, \"cancellationThrown\", { kind: \"ThrottledCancellationToken\" });\n            throw new OperationCanceledException();\n          }\n        }\n      };\n      invalidOperationsInPartialSemanticMode = [\n        \"getSemanticDiagnostics\",\n        \"getSuggestionDiagnostics\",\n        \"getCompilerOptionsDiagnostics\",\n        \"getSemanticClassifications\",\n        \"getEncodedSemanticClassifications\",\n        \"getCodeFixesAtPosition\",\n        \"getCombinedCodeFix\",\n        \"applyCodeActionCommand\",\n        \"organizeImports\",\n        \"getEditsForFileRename\",\n        \"getEmitOutput\",\n        \"getApplicableRefactors\",\n        \"getEditsForRefactor\",\n        \"prepareCallHierarchy\",\n        \"provideCallHierarchyIncomingCalls\",\n        \"provideCallHierarchyOutgoingCalls\",\n        \"provideInlayHints\",\n        \"getSupportedCodeFixes\"\n      ];\n      invalidOperationsInSyntacticMode = [\n        ...invalidOperationsInPartialSemanticMode,\n        \"getCompletionsAtPosition\",\n        \"getCompletionEntryDetails\",\n        \"getCompletionEntrySymbol\",\n        \"getSignatureHelpItems\",\n        \"getQuickInfoAtPosition\",\n        \"getDefinitionAtPosition\",\n        \"getDefinitionAndBoundSpan\",\n        \"getImplementationAtPosition\",\n        \"getTypeDefinitionAtPosition\",\n        \"getReferencesAtPosition\",\n        \"findReferences\",\n        \"getOccurrencesAtPosition\",\n        \"getDocumentHighlights\",\n        \"getNavigateToItems\",\n        \"getRenameInfo\",\n        \"findRenameLocations\",\n        \"getApplicableRefactors\"\n      ];\n      setObjectAllocator(getServicesObjectAllocator());\n    }\n  });\n  function transform(source, transformers, compilerOptions) {\n    const diagnostics = [];\n    compilerOptions = fixupCompilerOptions(compilerOptions, diagnostics);\n    const nodes = isArray(source) ? source : [source];\n    const result = transformNodes(void 0, void 0, factory, compilerOptions, nodes, transformers, true);\n    result.diagnostics = concatenate(result.diagnostics, diagnostics);\n    return result;\n  }\n  var init_transform = __esm({\n    \"src/services/transform.ts\"() {\n      \"use strict\";\n      init_ts4();\n    }\n  });\n  function logInternalError(logger, err) {\n    if (logger) {\n      logger.log(\"*INTERNAL ERROR* - Exception in typescript services: \" + err.message);\n    }\n  }\n  function simpleForwardCall(logger, actionDescription2, action, logPerformance) {\n    let start;\n    if (logPerformance) {\n      logger.log(actionDescription2);\n      start = timestamp();\n    }\n    const result = action();\n    if (logPerformance) {\n      const end = timestamp();\n      logger.log(`${actionDescription2} completed in ${end - start} msec`);\n      if (isString(result)) {\n        let str = result;\n        if (str.length > 128) {\n          str = str.substring(0, 128) + \"...\";\n        }\n        logger.log(`  result.length=${str.length}, result='${JSON.stringify(str)}'`);\n      }\n    }\n    return result;\n  }\n  function forwardJSONCall(logger, actionDescription2, action, logPerformance) {\n    return forwardCall(logger, actionDescription2, true, action, logPerformance);\n  }\n  function forwardCall(logger, actionDescription2, returnJson, action, logPerformance) {\n    try {\n      const result = simpleForwardCall(logger, actionDescription2, action, logPerformance);\n      return returnJson ? JSON.stringify({ result }) : result;\n    } catch (err) {\n      if (err instanceof OperationCanceledException) {\n        return JSON.stringify({ canceled: true });\n      }\n      logInternalError(logger, err);\n      err.description = actionDescription2;\n      return JSON.stringify({ error: err });\n    }\n  }\n  function realizeDiagnostics(diagnostics, newLine) {\n    return diagnostics.map((d) => realizeDiagnostic(d, newLine));\n  }\n  function realizeDiagnostic(diagnostic, newLine) {\n    return {\n      message: flattenDiagnosticMessageText2(diagnostic.messageText, newLine),\n      start: diagnostic.start,\n      length: diagnostic.length,\n      category: diagnosticCategoryName(diagnostic),\n      code: diagnostic.code,\n      reportsUnnecessary: diagnostic.reportsUnnecessary,\n      reportsDeprecated: diagnostic.reportsDeprecated\n    };\n  }\n  function convertClassifications(classifications) {\n    return { spans: classifications.spans.join(\",\"), endOfLineState: classifications.endOfLineState };\n  }\n  var debugObjectHost, ScriptSnapshotShimAdapter, LanguageServiceShimHostAdapter, CoreServicesShimHostAdapter, ShimBase, LanguageServiceShimObject, ClassifierShimObject, CoreServicesShimObject, TypeScriptServicesFactory;\n  var init_shims = __esm({\n    \"src/services/shims.ts\"() {\n      \"use strict\";\n      init_ts4();\n      debugObjectHost = function() {\n        return this;\n      }();\n      ScriptSnapshotShimAdapter = class {\n        constructor(scriptSnapshotShim) {\n          this.scriptSnapshotShim = scriptSnapshotShim;\n        }\n        getText(start, end) {\n          return this.scriptSnapshotShim.getText(start, end);\n        }\n        getLength() {\n          return this.scriptSnapshotShim.getLength();\n        }\n        getChangeRange(oldSnapshot) {\n          const oldSnapshotShim = oldSnapshot;\n          const encoded = this.scriptSnapshotShim.getChangeRange(oldSnapshotShim.scriptSnapshotShim);\n          if (encoded === null) {\n            return null;\n          }\n          const decoded = JSON.parse(encoded);\n          return createTextChangeRange(createTextSpan(decoded.span.start, decoded.span.length), decoded.newLength);\n        }\n        dispose() {\n          if (\"dispose\" in this.scriptSnapshotShim) {\n            this.scriptSnapshotShim.dispose();\n          }\n        }\n      };\n      LanguageServiceShimHostAdapter = class {\n        constructor(shimHost) {\n          this.shimHost = shimHost;\n          this.loggingEnabled = false;\n          this.tracingEnabled = false;\n          if (\"getModuleResolutionsForFile\" in this.shimHost) {\n            this.resolveModuleNames = (moduleNames, containingFile) => {\n              const resolutionsInFile = JSON.parse(this.shimHost.getModuleResolutionsForFile(containingFile));\n              return map(moduleNames, (name) => {\n                const result = getProperty(resolutionsInFile, name);\n                return result ? { resolvedFileName: result, extension: extensionFromPath(result), isExternalLibraryImport: false } : void 0;\n              });\n            };\n          }\n          if (\"directoryExists\" in this.shimHost) {\n            this.directoryExists = (directoryName) => this.shimHost.directoryExists(directoryName);\n          }\n          if (\"getTypeReferenceDirectiveResolutionsForFile\" in this.shimHost) {\n            this.resolveTypeReferenceDirectives = (typeDirectiveNames, containingFile) => {\n              const typeDirectivesForFile = JSON.parse(this.shimHost.getTypeReferenceDirectiveResolutionsForFile(containingFile));\n              return map(typeDirectiveNames, (name) => getProperty(typeDirectivesForFile, isString(name) ? name : toFileNameLowerCase(name.fileName)));\n            };\n          }\n        }\n        log(s) {\n          if (this.loggingEnabled) {\n            this.shimHost.log(s);\n          }\n        }\n        trace(s) {\n          if (this.tracingEnabled) {\n            this.shimHost.trace(s);\n          }\n        }\n        error(s) {\n          this.shimHost.error(s);\n        }\n        getProjectVersion() {\n          if (!this.shimHost.getProjectVersion) {\n            return void 0;\n          }\n          return this.shimHost.getProjectVersion();\n        }\n        getTypeRootsVersion() {\n          if (!this.shimHost.getTypeRootsVersion) {\n            return 0;\n          }\n          return this.shimHost.getTypeRootsVersion();\n        }\n        useCaseSensitiveFileNames() {\n          return this.shimHost.useCaseSensitiveFileNames ? this.shimHost.useCaseSensitiveFileNames() : false;\n        }\n        getCompilationSettings() {\n          const settingsJson = this.shimHost.getCompilationSettings();\n          if (settingsJson === null || settingsJson === \"\") {\n            throw Error(\"LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings\");\n          }\n          const compilerOptions = JSON.parse(settingsJson);\n          compilerOptions.allowNonTsExtensions = true;\n          return compilerOptions;\n        }\n        getScriptFileNames() {\n          const encoded = this.shimHost.getScriptFileNames();\n          return JSON.parse(encoded);\n        }\n        getScriptSnapshot(fileName) {\n          const scriptSnapshot = this.shimHost.getScriptSnapshot(fileName);\n          return scriptSnapshot && new ScriptSnapshotShimAdapter(scriptSnapshot);\n        }\n        getScriptKind(fileName) {\n          if (\"getScriptKind\" in this.shimHost) {\n            return this.shimHost.getScriptKind(fileName);\n          } else {\n            return 0;\n          }\n        }\n        getScriptVersion(fileName) {\n          return this.shimHost.getScriptVersion(fileName);\n        }\n        getLocalizedDiagnosticMessages() {\n          const diagnosticMessagesJson = this.shimHost.getLocalizedDiagnosticMessages();\n          if (diagnosticMessagesJson === null || diagnosticMessagesJson === \"\") {\n            return null;\n          }\n          try {\n            return JSON.parse(diagnosticMessagesJson);\n          } catch (e) {\n            this.log(e.description || \"diagnosticMessages.generated.json has invalid JSON format\");\n            return null;\n          }\n        }\n        getCancellationToken() {\n          const hostCancellationToken = this.shimHost.getCancellationToken();\n          return new ThrottledCancellationToken(hostCancellationToken);\n        }\n        getCurrentDirectory() {\n          return this.shimHost.getCurrentDirectory();\n        }\n        getDirectories(path) {\n          return JSON.parse(this.shimHost.getDirectories(path));\n        }\n        getDefaultLibFileName(options) {\n          return this.shimHost.getDefaultLibFileName(JSON.stringify(options));\n        }\n        readDirectory(path, extensions, exclude, include, depth) {\n          const pattern = getFileMatcherPatterns(path, exclude, include, this.shimHost.useCaseSensitiveFileNames(), this.shimHost.getCurrentDirectory());\n          return JSON.parse(this.shimHost.readDirectory(path, JSON.stringify(extensions), JSON.stringify(pattern.basePaths), pattern.excludePattern, pattern.includeFilePattern, pattern.includeDirectoryPattern, depth));\n        }\n        readFile(path, encoding) {\n          return this.shimHost.readFile(path, encoding);\n        }\n        fileExists(path) {\n          return this.shimHost.fileExists(path);\n        }\n      };\n      CoreServicesShimHostAdapter = class {\n        constructor(shimHost) {\n          this.shimHost = shimHost;\n          this.useCaseSensitiveFileNames = this.shimHost.useCaseSensitiveFileNames ? this.shimHost.useCaseSensitiveFileNames() : false;\n          if (\"directoryExists\" in this.shimHost) {\n            this.directoryExists = (directoryName) => this.shimHost.directoryExists(directoryName);\n          } else {\n            this.directoryExists = void 0;\n          }\n          if (\"realpath\" in this.shimHost) {\n            this.realpath = (path) => this.shimHost.realpath(path);\n          } else {\n            this.realpath = void 0;\n          }\n        }\n        readDirectory(rootDir, extensions, exclude, include, depth) {\n          const pattern = getFileMatcherPatterns(rootDir, exclude, include, this.shimHost.useCaseSensitiveFileNames(), this.shimHost.getCurrentDirectory());\n          return JSON.parse(this.shimHost.readDirectory(rootDir, JSON.stringify(extensions), JSON.stringify(pattern.basePaths), pattern.excludePattern, pattern.includeFilePattern, pattern.includeDirectoryPattern, depth));\n        }\n        fileExists(fileName) {\n          return this.shimHost.fileExists(fileName);\n        }\n        readFile(fileName) {\n          return this.shimHost.readFile(fileName);\n        }\n        getDirectories(path) {\n          return JSON.parse(this.shimHost.getDirectories(path));\n        }\n      };\n      ShimBase = class {\n        constructor(factory2) {\n          this.factory = factory2;\n          factory2.registerShim(this);\n        }\n        dispose(_dummy) {\n          this.factory.unregisterShim(this);\n        }\n      };\n      LanguageServiceShimObject = class extends ShimBase {\n        constructor(factory2, host, languageService) {\n          super(factory2);\n          this.host = host;\n          this.languageService = languageService;\n          this.logPerformance = false;\n          this.logger = this.host;\n        }\n        forwardJSONCall(actionDescription2, action) {\n          return forwardJSONCall(this.logger, actionDescription2, action, this.logPerformance);\n        }\n        dispose(dummy) {\n          this.logger.log(\"dispose()\");\n          this.languageService.dispose();\n          this.languageService = null;\n          if (debugObjectHost && debugObjectHost.CollectGarbage) {\n            debugObjectHost.CollectGarbage();\n            this.logger.log(\"CollectGarbage()\");\n          }\n          this.logger = null;\n          super.dispose(dummy);\n        }\n        refresh(throwOnError) {\n          this.forwardJSONCall(`refresh(${throwOnError})`, () => null);\n        }\n        cleanupSemanticCache() {\n          this.forwardJSONCall(\"cleanupSemanticCache()\", () => {\n            this.languageService.cleanupSemanticCache();\n            return null;\n          });\n        }\n        realizeDiagnostics(diagnostics) {\n          const newLine = getNewLineOrDefaultFromHost(this.host, void 0);\n          return realizeDiagnostics(diagnostics, newLine);\n        }\n        getSyntacticClassifications(fileName, start, length2) {\n          return this.forwardJSONCall(`getSyntacticClassifications('${fileName}', ${start}, ${length2})`, () => this.languageService.getSyntacticClassifications(fileName, createTextSpan(start, length2)));\n        }\n        getSemanticClassifications(fileName, start, length2) {\n          return this.forwardJSONCall(`getSemanticClassifications('${fileName}', ${start}, ${length2})`, () => this.languageService.getSemanticClassifications(fileName, createTextSpan(start, length2)));\n        }\n        getEncodedSyntacticClassifications(fileName, start, length2) {\n          return this.forwardJSONCall(`getEncodedSyntacticClassifications('${fileName}', ${start}, ${length2})`, () => convertClassifications(this.languageService.getEncodedSyntacticClassifications(fileName, createTextSpan(start, length2))));\n        }\n        getEncodedSemanticClassifications(fileName, start, length2) {\n          return this.forwardJSONCall(`getEncodedSemanticClassifications('${fileName}', ${start}, ${length2})`, () => convertClassifications(this.languageService.getEncodedSemanticClassifications(fileName, createTextSpan(start, length2))));\n        }\n        getSyntacticDiagnostics(fileName) {\n          return this.forwardJSONCall(`getSyntacticDiagnostics('${fileName}')`, () => {\n            const diagnostics = this.languageService.getSyntacticDiagnostics(fileName);\n            return this.realizeDiagnostics(diagnostics);\n          });\n        }\n        getSemanticDiagnostics(fileName) {\n          return this.forwardJSONCall(`getSemanticDiagnostics('${fileName}')`, () => {\n            const diagnostics = this.languageService.getSemanticDiagnostics(fileName);\n            return this.realizeDiagnostics(diagnostics);\n          });\n        }\n        getSuggestionDiagnostics(fileName) {\n          return this.forwardJSONCall(`getSuggestionDiagnostics('${fileName}')`, () => this.realizeDiagnostics(this.languageService.getSuggestionDiagnostics(fileName)));\n        }\n        getCompilerOptionsDiagnostics() {\n          return this.forwardJSONCall(\"getCompilerOptionsDiagnostics()\", () => {\n            const diagnostics = this.languageService.getCompilerOptionsDiagnostics();\n            return this.realizeDiagnostics(diagnostics);\n          });\n        }\n        getQuickInfoAtPosition(fileName, position) {\n          return this.forwardJSONCall(`getQuickInfoAtPosition('${fileName}', ${position})`, () => this.languageService.getQuickInfoAtPosition(fileName, position));\n        }\n        getNameOrDottedNameSpan(fileName, startPos, endPos) {\n          return this.forwardJSONCall(`getNameOrDottedNameSpan('${fileName}', ${startPos}, ${endPos})`, () => this.languageService.getNameOrDottedNameSpan(fileName, startPos, endPos));\n        }\n        getBreakpointStatementAtPosition(fileName, position) {\n          return this.forwardJSONCall(`getBreakpointStatementAtPosition('${fileName}', ${position})`, () => this.languageService.getBreakpointStatementAtPosition(fileName, position));\n        }\n        getSignatureHelpItems(fileName, position, options) {\n          return this.forwardJSONCall(`getSignatureHelpItems('${fileName}', ${position})`, () => this.languageService.getSignatureHelpItems(fileName, position, options));\n        }\n        getDefinitionAtPosition(fileName, position) {\n          return this.forwardJSONCall(`getDefinitionAtPosition('${fileName}', ${position})`, () => this.languageService.getDefinitionAtPosition(fileName, position));\n        }\n        getDefinitionAndBoundSpan(fileName, position) {\n          return this.forwardJSONCall(`getDefinitionAndBoundSpan('${fileName}', ${position})`, () => this.languageService.getDefinitionAndBoundSpan(fileName, position));\n        }\n        getTypeDefinitionAtPosition(fileName, position) {\n          return this.forwardJSONCall(`getTypeDefinitionAtPosition('${fileName}', ${position})`, () => this.languageService.getTypeDefinitionAtPosition(fileName, position));\n        }\n        getImplementationAtPosition(fileName, position) {\n          return this.forwardJSONCall(`getImplementationAtPosition('${fileName}', ${position})`, () => this.languageService.getImplementationAtPosition(fileName, position));\n        }\n        getRenameInfo(fileName, position, preferences) {\n          return this.forwardJSONCall(`getRenameInfo('${fileName}', ${position})`, () => this.languageService.getRenameInfo(fileName, position, preferences));\n        }\n        getSmartSelectionRange(fileName, position) {\n          return this.forwardJSONCall(`getSmartSelectionRange('${fileName}', ${position})`, () => this.languageService.getSmartSelectionRange(fileName, position));\n        }\n        findRenameLocations(fileName, position, findInStrings, findInComments, providePrefixAndSuffixTextForRename) {\n          return this.forwardJSONCall(`findRenameLocations('${fileName}', ${position}, ${findInStrings}, ${findInComments}, ${providePrefixAndSuffixTextForRename})`, () => this.languageService.findRenameLocations(fileName, position, findInStrings, findInComments, providePrefixAndSuffixTextForRename));\n        }\n        getBraceMatchingAtPosition(fileName, position) {\n          return this.forwardJSONCall(`getBraceMatchingAtPosition('${fileName}', ${position})`, () => this.languageService.getBraceMatchingAtPosition(fileName, position));\n        }\n        isValidBraceCompletionAtPosition(fileName, position, openingBrace) {\n          return this.forwardJSONCall(`isValidBraceCompletionAtPosition('${fileName}', ${position}, ${openingBrace})`, () => this.languageService.isValidBraceCompletionAtPosition(fileName, position, openingBrace));\n        }\n        getSpanOfEnclosingComment(fileName, position, onlyMultiLine) {\n          return this.forwardJSONCall(`getSpanOfEnclosingComment('${fileName}', ${position})`, () => this.languageService.getSpanOfEnclosingComment(fileName, position, onlyMultiLine));\n        }\n        getIndentationAtPosition(fileName, position, options) {\n          return this.forwardJSONCall(`getIndentationAtPosition('${fileName}', ${position})`, () => {\n            const localOptions = JSON.parse(options);\n            return this.languageService.getIndentationAtPosition(fileName, position, localOptions);\n          });\n        }\n        getReferencesAtPosition(fileName, position) {\n          return this.forwardJSONCall(`getReferencesAtPosition('${fileName}', ${position})`, () => this.languageService.getReferencesAtPosition(fileName, position));\n        }\n        findReferences(fileName, position) {\n          return this.forwardJSONCall(`findReferences('${fileName}', ${position})`, () => this.languageService.findReferences(fileName, position));\n        }\n        getFileReferences(fileName) {\n          return this.forwardJSONCall(`getFileReferences('${fileName})`, () => this.languageService.getFileReferences(fileName));\n        }\n        getOccurrencesAtPosition(fileName, position) {\n          return this.forwardJSONCall(`getOccurrencesAtPosition('${fileName}', ${position})`, () => this.languageService.getOccurrencesAtPosition(fileName, position));\n        }\n        getDocumentHighlights(fileName, position, filesToSearch) {\n          return this.forwardJSONCall(`getDocumentHighlights('${fileName}', ${position})`, () => {\n            const results = this.languageService.getDocumentHighlights(fileName, position, JSON.parse(filesToSearch));\n            const normalizedName = toFileNameLowerCase(normalizeSlashes(fileName));\n            return filter(results, (r) => toFileNameLowerCase(normalizeSlashes(r.fileName)) === normalizedName);\n          });\n        }\n        getCompletionsAtPosition(fileName, position, preferences, formattingSettings) {\n          return this.forwardJSONCall(`getCompletionsAtPosition('${fileName}', ${position}, ${preferences}, ${formattingSettings})`, () => this.languageService.getCompletionsAtPosition(fileName, position, preferences, formattingSettings));\n        }\n        getCompletionEntryDetails(fileName, position, entryName, formatOptions, source, preferences, data) {\n          return this.forwardJSONCall(`getCompletionEntryDetails('${fileName}', ${position}, '${entryName}')`, () => {\n            const localOptions = formatOptions === void 0 ? void 0 : JSON.parse(formatOptions);\n            return this.languageService.getCompletionEntryDetails(fileName, position, entryName, localOptions, source, preferences, data);\n          });\n        }\n        getFormattingEditsForRange(fileName, start, end, options) {\n          return this.forwardJSONCall(`getFormattingEditsForRange('${fileName}', ${start}, ${end})`, () => {\n            const localOptions = JSON.parse(options);\n            return this.languageService.getFormattingEditsForRange(fileName, start, end, localOptions);\n          });\n        }\n        getFormattingEditsForDocument(fileName, options) {\n          return this.forwardJSONCall(`getFormattingEditsForDocument('${fileName}')`, () => {\n            const localOptions = JSON.parse(options);\n            return this.languageService.getFormattingEditsForDocument(fileName, localOptions);\n          });\n        }\n        getFormattingEditsAfterKeystroke(fileName, position, key, options) {\n          return this.forwardJSONCall(`getFormattingEditsAfterKeystroke('${fileName}', ${position}, '${key}')`, () => {\n            const localOptions = JSON.parse(options);\n            return this.languageService.getFormattingEditsAfterKeystroke(fileName, position, key, localOptions);\n          });\n        }\n        getDocCommentTemplateAtPosition(fileName, position, options, formatOptions) {\n          return this.forwardJSONCall(`getDocCommentTemplateAtPosition('${fileName}', ${position})`, () => this.languageService.getDocCommentTemplateAtPosition(fileName, position, options, formatOptions));\n        }\n        getNavigateToItems(searchValue, maxResultCount, fileName) {\n          return this.forwardJSONCall(`getNavigateToItems('${searchValue}', ${maxResultCount}, ${fileName})`, () => this.languageService.getNavigateToItems(searchValue, maxResultCount, fileName));\n        }\n        getNavigationBarItems(fileName) {\n          return this.forwardJSONCall(`getNavigationBarItems('${fileName}')`, () => this.languageService.getNavigationBarItems(fileName));\n        }\n        getNavigationTree(fileName) {\n          return this.forwardJSONCall(`getNavigationTree('${fileName}')`, () => this.languageService.getNavigationTree(fileName));\n        }\n        getOutliningSpans(fileName) {\n          return this.forwardJSONCall(`getOutliningSpans('${fileName}')`, () => this.languageService.getOutliningSpans(fileName));\n        }\n        getTodoComments(fileName, descriptors) {\n          return this.forwardJSONCall(`getTodoComments('${fileName}')`, () => this.languageService.getTodoComments(fileName, JSON.parse(descriptors)));\n        }\n        prepareCallHierarchy(fileName, position) {\n          return this.forwardJSONCall(`prepareCallHierarchy('${fileName}', ${position})`, () => this.languageService.prepareCallHierarchy(fileName, position));\n        }\n        provideCallHierarchyIncomingCalls(fileName, position) {\n          return this.forwardJSONCall(`provideCallHierarchyIncomingCalls('${fileName}', ${position})`, () => this.languageService.provideCallHierarchyIncomingCalls(fileName, position));\n        }\n        provideCallHierarchyOutgoingCalls(fileName, position) {\n          return this.forwardJSONCall(`provideCallHierarchyOutgoingCalls('${fileName}', ${position})`, () => this.languageService.provideCallHierarchyOutgoingCalls(fileName, position));\n        }\n        provideInlayHints(fileName, span, preference) {\n          return this.forwardJSONCall(`provideInlayHints('${fileName}', '${JSON.stringify(span)}', ${JSON.stringify(preference)})`, () => this.languageService.provideInlayHints(fileName, span, preference));\n        }\n        getEmitOutput(fileName) {\n          return this.forwardJSONCall(`getEmitOutput('${fileName}')`, () => {\n            const { diagnostics, ...rest } = this.languageService.getEmitOutput(fileName);\n            return { ...rest, diagnostics: this.realizeDiagnostics(diagnostics) };\n          });\n        }\n        getEmitOutputObject(fileName) {\n          return forwardCall(this.logger, `getEmitOutput('${fileName}')`, false, () => this.languageService.getEmitOutput(fileName), this.logPerformance);\n        }\n        toggleLineComment(fileName, textRange) {\n          return this.forwardJSONCall(`toggleLineComment('${fileName}', '${JSON.stringify(textRange)}')`, () => this.languageService.toggleLineComment(fileName, textRange));\n        }\n        toggleMultilineComment(fileName, textRange) {\n          return this.forwardJSONCall(`toggleMultilineComment('${fileName}', '${JSON.stringify(textRange)}')`, () => this.languageService.toggleMultilineComment(fileName, textRange));\n        }\n        commentSelection(fileName, textRange) {\n          return this.forwardJSONCall(`commentSelection('${fileName}', '${JSON.stringify(textRange)}')`, () => this.languageService.commentSelection(fileName, textRange));\n        }\n        uncommentSelection(fileName, textRange) {\n          return this.forwardJSONCall(`uncommentSelection('${fileName}', '${JSON.stringify(textRange)}')`, () => this.languageService.uncommentSelection(fileName, textRange));\n        }\n      };\n      ClassifierShimObject = class extends ShimBase {\n        constructor(factory2, logger) {\n          super(factory2);\n          this.logger = logger;\n          this.logPerformance = false;\n          this.classifier = createClassifier2();\n        }\n        getEncodedLexicalClassifications(text, lexState, syntacticClassifierAbsent = false) {\n          return forwardJSONCall(this.logger, \"getEncodedLexicalClassifications\", () => convertClassifications(this.classifier.getEncodedLexicalClassifications(text, lexState, syntacticClassifierAbsent)), this.logPerformance);\n        }\n        getClassificationsForLine(text, lexState, classifyKeywordsInGenerics = false) {\n          const classification = this.classifier.getClassificationsForLine(text, lexState, classifyKeywordsInGenerics);\n          let result = \"\";\n          for (const item of classification.entries) {\n            result += item.length + \"\\n\";\n            result += item.classification + \"\\n\";\n          }\n          result += classification.finalLexState;\n          return result;\n        }\n      };\n      CoreServicesShimObject = class extends ShimBase {\n        constructor(factory2, logger, host) {\n          super(factory2);\n          this.logger = logger;\n          this.host = host;\n          this.logPerformance = false;\n        }\n        forwardJSONCall(actionDescription2, action) {\n          return forwardJSONCall(this.logger, actionDescription2, action, this.logPerformance);\n        }\n        resolveModuleName(fileName, moduleName, compilerOptionsJson) {\n          return this.forwardJSONCall(`resolveModuleName('${fileName}')`, () => {\n            const compilerOptions = JSON.parse(compilerOptionsJson);\n            const result = resolveModuleName(moduleName, normalizeSlashes(fileName), compilerOptions, this.host);\n            let resolvedFileName = result.resolvedModule ? result.resolvedModule.resolvedFileName : void 0;\n            if (result.resolvedModule && result.resolvedModule.extension !== \".ts\" && result.resolvedModule.extension !== \".tsx\" && result.resolvedModule.extension !== \".d.ts\") {\n              resolvedFileName = void 0;\n            }\n            return {\n              resolvedFileName,\n              failedLookupLocations: result.failedLookupLocations,\n              affectingLocations: result.affectingLocations\n            };\n          });\n        }\n        resolveTypeReferenceDirective(fileName, typeReferenceDirective, compilerOptionsJson) {\n          return this.forwardJSONCall(`resolveTypeReferenceDirective(${fileName})`, () => {\n            const compilerOptions = JSON.parse(compilerOptionsJson);\n            const result = resolveTypeReferenceDirective(typeReferenceDirective, normalizeSlashes(fileName), compilerOptions, this.host);\n            return {\n              resolvedFileName: result.resolvedTypeReferenceDirective ? result.resolvedTypeReferenceDirective.resolvedFileName : void 0,\n              primary: result.resolvedTypeReferenceDirective ? result.resolvedTypeReferenceDirective.primary : true,\n              failedLookupLocations: result.failedLookupLocations\n            };\n          });\n        }\n        getPreProcessedFileInfo(fileName, sourceTextSnapshot) {\n          return this.forwardJSONCall(`getPreProcessedFileInfo('${fileName}')`, () => {\n            const result = preProcessFile(getSnapshotText(sourceTextSnapshot), true, true);\n            return {\n              referencedFiles: this.convertFileReferences(result.referencedFiles),\n              importedFiles: this.convertFileReferences(result.importedFiles),\n              ambientExternalModules: result.ambientExternalModules,\n              isLibFile: result.isLibFile,\n              typeReferenceDirectives: this.convertFileReferences(result.typeReferenceDirectives),\n              libReferenceDirectives: this.convertFileReferences(result.libReferenceDirectives)\n            };\n          });\n        }\n        getAutomaticTypeDirectiveNames(compilerOptionsJson) {\n          return this.forwardJSONCall(`getAutomaticTypeDirectiveNames('${compilerOptionsJson}')`, () => {\n            const compilerOptions = JSON.parse(compilerOptionsJson);\n            return getAutomaticTypeDirectiveNames(compilerOptions, this.host);\n          });\n        }\n        convertFileReferences(refs) {\n          if (!refs) {\n            return void 0;\n          }\n          const result = [];\n          for (const ref of refs) {\n            result.push({\n              path: normalizeSlashes(ref.fileName),\n              position: ref.pos,\n              length: ref.end - ref.pos\n            });\n          }\n          return result;\n        }\n        getTSConfigFileInfo(fileName, sourceTextSnapshot) {\n          return this.forwardJSONCall(`getTSConfigFileInfo('${fileName}')`, () => {\n            const result = parseJsonText(fileName, getSnapshotText(sourceTextSnapshot));\n            const normalizedFileName = normalizeSlashes(fileName);\n            const configFile = parseJsonSourceFileConfigFileContent(result, this.host, getDirectoryPath(normalizedFileName), {}, normalizedFileName);\n            return {\n              options: configFile.options,\n              typeAcquisition: configFile.typeAcquisition,\n              files: configFile.fileNames,\n              raw: configFile.raw,\n              errors: realizeDiagnostics([...result.parseDiagnostics, ...configFile.errors], \"\\r\\n\")\n            };\n          });\n        }\n        getDefaultCompilationSettings() {\n          return this.forwardJSONCall(\"getDefaultCompilationSettings()\", () => getDefaultCompilerOptions2());\n        }\n        discoverTypings(discoverTypingsJson) {\n          const getCanonicalFileName = createGetCanonicalFileName(false);\n          return this.forwardJSONCall(\"discoverTypings()\", () => {\n            const info = JSON.parse(discoverTypingsJson);\n            if (this.safeList === void 0) {\n              this.safeList = ts_JsTyping_exports.loadSafeList(this.host, toPath(info.safeListPath, info.safeListPath, getCanonicalFileName));\n            }\n            return ts_JsTyping_exports.discoverTypings(this.host, (msg) => this.logger.log(msg), info.fileNames, toPath(info.projectRootPath, info.projectRootPath, getCanonicalFileName), this.safeList, info.packageNameToTypingLocation, info.typeAcquisition, info.unresolvedImports, info.typesRegistry, emptyOptions);\n          });\n        }\n      };\n      TypeScriptServicesFactory = class {\n        constructor() {\n          this._shims = [];\n        }\n        getServicesVersion() {\n          return servicesVersion;\n        }\n        createLanguageServiceShim(host) {\n          try {\n            if (this.documentRegistry === void 0) {\n              this.documentRegistry = createDocumentRegistry(host.useCaseSensitiveFileNames && host.useCaseSensitiveFileNames(), host.getCurrentDirectory());\n            }\n            const hostAdapter = new LanguageServiceShimHostAdapter(host);\n            const languageService = createLanguageService2(hostAdapter, this.documentRegistry, false);\n            return new LanguageServiceShimObject(this, host, languageService);\n          } catch (err) {\n            logInternalError(host, err);\n            throw err;\n          }\n        }\n        createClassifierShim(logger) {\n          try {\n            return new ClassifierShimObject(this, logger);\n          } catch (err) {\n            logInternalError(logger, err);\n            throw err;\n          }\n        }\n        createCoreServicesShim(host) {\n          try {\n            const adapter = new CoreServicesShimHostAdapter(host);\n            return new CoreServicesShimObject(this, host, adapter);\n          } catch (err) {\n            logInternalError(host, err);\n            throw err;\n          }\n        }\n        close() {\n          clear(this._shims);\n          this.documentRegistry = void 0;\n        }\n        registerShim(shim) {\n          this._shims.push(shim);\n        }\n        unregisterShim(shim) {\n          for (let i = 0; i < this._shims.length; i++) {\n            if (this._shims[i] === shim) {\n              delete this._shims[i];\n              return;\n            }\n          }\n          throw new Error(\"Invalid operation\");\n        }\n      };\n    }\n  });\n  function spanInSourceFileAtLocation(sourceFile, position) {\n    if (sourceFile.isDeclarationFile) {\n      return void 0;\n    }\n    let tokenAtLocation = getTokenAtPosition(sourceFile, position);\n    const lineOfPosition = sourceFile.getLineAndCharacterOfPosition(position).line;\n    if (sourceFile.getLineAndCharacterOfPosition(tokenAtLocation.getStart(sourceFile)).line > lineOfPosition) {\n      const preceding = findPrecedingToken(tokenAtLocation.pos, sourceFile);\n      if (!preceding || sourceFile.getLineAndCharacterOfPosition(preceding.getEnd()).line !== lineOfPosition) {\n        return void 0;\n      }\n      tokenAtLocation = preceding;\n    }\n    if (tokenAtLocation.flags & 16777216) {\n      return void 0;\n    }\n    return spanInNode(tokenAtLocation);\n    function textSpan(startNode2, endNode2) {\n      const lastDecorator = canHaveDecorators(startNode2) ? findLast(startNode2.modifiers, isDecorator) : void 0;\n      const start = lastDecorator ? skipTrivia(sourceFile.text, lastDecorator.end) : startNode2.getStart(sourceFile);\n      return createTextSpanFromBounds(start, (endNode2 || startNode2).getEnd());\n    }\n    function textSpanEndingAtNextToken(startNode2, previousTokenToFindNextEndToken) {\n      return textSpan(startNode2, findNextToken(previousTokenToFindNextEndToken, previousTokenToFindNextEndToken.parent, sourceFile));\n    }\n    function spanInNodeIfStartsOnSameLine(node, otherwiseOnNode) {\n      if (node && lineOfPosition === sourceFile.getLineAndCharacterOfPosition(node.getStart(sourceFile)).line) {\n        return spanInNode(node);\n      }\n      return spanInNode(otherwiseOnNode);\n    }\n    function spanInNodeArray(nodeArray, node, match) {\n      if (nodeArray) {\n        const index = nodeArray.indexOf(node);\n        if (index >= 0) {\n          let start = index;\n          let end = index + 1;\n          while (start > 0 && match(nodeArray[start - 1]))\n            start--;\n          while (end < nodeArray.length && match(nodeArray[end]))\n            end++;\n          return createTextSpanFromBounds(skipTrivia(sourceFile.text, nodeArray[start].pos), nodeArray[end - 1].end);\n        }\n      }\n      return textSpan(node);\n    }\n    function spanInPreviousNode(node) {\n      return spanInNode(findPrecedingToken(node.pos, sourceFile));\n    }\n    function spanInNextNode(node) {\n      return spanInNode(findNextToken(node, node.parent, sourceFile));\n    }\n    function spanInNode(node) {\n      if (node) {\n        const { parent: parent2 } = node;\n        switch (node.kind) {\n          case 240:\n            return spanInVariableDeclaration(node.declarationList.declarations[0]);\n          case 257:\n          case 169:\n          case 168:\n            return spanInVariableDeclaration(node);\n          case 166:\n            return spanInParameterDeclaration(node);\n          case 259:\n          case 171:\n          case 170:\n          case 174:\n          case 175:\n          case 173:\n          case 215:\n          case 216:\n            return spanInFunctionDeclaration(node);\n          case 238:\n            if (isFunctionBlock(node)) {\n              return spanInFunctionBlock(node);\n            }\n          case 265:\n            return spanInBlock(node);\n          case 295:\n            return spanInBlock(node.block);\n          case 241:\n            return textSpan(node.expression);\n          case 250:\n            return textSpan(node.getChildAt(0), node.expression);\n          case 244:\n            return textSpanEndingAtNextToken(node, node.expression);\n          case 243:\n            return spanInNode(node.statement);\n          case 256:\n            return textSpan(node.getChildAt(0));\n          case 242:\n            return textSpanEndingAtNextToken(node, node.expression);\n          case 253:\n            return spanInNode(node.statement);\n          case 249:\n          case 248:\n            return textSpan(node.getChildAt(0), node.label);\n          case 245:\n            return spanInForStatement(node);\n          case 246:\n            return textSpanEndingAtNextToken(node, node.expression);\n          case 247:\n            return spanInInitializerOfForLike(node);\n          case 252:\n            return textSpanEndingAtNextToken(node, node.expression);\n          case 292:\n          case 293:\n            return spanInNode(node.statements[0]);\n          case 255:\n            return spanInBlock(node.tryBlock);\n          case 254:\n            return textSpan(node, node.expression);\n          case 274:\n            return textSpan(node, node.expression);\n          case 268:\n            return textSpan(node, node.moduleReference);\n          case 269:\n            return textSpan(node, node.moduleSpecifier);\n          case 275:\n            return textSpan(node, node.moduleSpecifier);\n          case 264:\n            if (getModuleInstanceState(node) !== 1) {\n              return void 0;\n            }\n          case 260:\n          case 263:\n          case 302:\n          case 205:\n            return textSpan(node);\n          case 251:\n            return spanInNode(node.statement);\n          case 167:\n            return spanInNodeArray(parent2.modifiers, node, isDecorator);\n          case 203:\n          case 204:\n            return spanInBindingPattern(node);\n          case 261:\n          case 262:\n            return void 0;\n          case 26:\n          case 1:\n            return spanInNodeIfStartsOnSameLine(findPrecedingToken(node.pos, sourceFile));\n          case 27:\n            return spanInPreviousNode(node);\n          case 18:\n            return spanInOpenBraceToken(node);\n          case 19:\n            return spanInCloseBraceToken(node);\n          case 23:\n            return spanInCloseBracketToken(node);\n          case 20:\n            return spanInOpenParenToken(node);\n          case 21:\n            return spanInCloseParenToken(node);\n          case 58:\n            return spanInColonToken(node);\n          case 31:\n          case 29:\n            return spanInGreaterThanOrLessThanToken(node);\n          case 115:\n            return spanInWhileKeyword(node);\n          case 91:\n          case 83:\n          case 96:\n            return spanInNextNode(node);\n          case 162:\n            return spanInOfKeyword(node);\n          default:\n            if (isArrayLiteralOrObjectLiteralDestructuringPattern(node)) {\n              return spanInArrayLiteralOrObjectLiteralDestructuringPattern(node);\n            }\n            if ((node.kind === 79 || node.kind === 227 || node.kind === 299 || node.kind === 300) && isArrayLiteralOrObjectLiteralDestructuringPattern(parent2)) {\n              return textSpan(node);\n            }\n            if (node.kind === 223) {\n              const { left, operatorToken } = node;\n              if (isArrayLiteralOrObjectLiteralDestructuringPattern(left)) {\n                return spanInArrayLiteralOrObjectLiteralDestructuringPattern(left);\n              }\n              if (operatorToken.kind === 63 && isArrayLiteralOrObjectLiteralDestructuringPattern(node.parent)) {\n                return textSpan(node);\n              }\n              if (operatorToken.kind === 27) {\n                return spanInNode(left);\n              }\n            }\n            if (isExpressionNode(node)) {\n              switch (parent2.kind) {\n                case 243:\n                  return spanInPreviousNode(node);\n                case 167:\n                  return spanInNode(node.parent);\n                case 245:\n                case 247:\n                  return textSpan(node);\n                case 223:\n                  if (node.parent.operatorToken.kind === 27) {\n                    return textSpan(node);\n                  }\n                  break;\n                case 216:\n                  if (node.parent.body === node) {\n                    return textSpan(node);\n                  }\n                  break;\n              }\n            }\n            switch (node.parent.kind) {\n              case 299:\n                if (node.parent.name === node && !isArrayLiteralOrObjectLiteralDestructuringPattern(node.parent.parent)) {\n                  return spanInNode(node.parent.initializer);\n                }\n                break;\n              case 213:\n                if (node.parent.type === node) {\n                  return spanInNextNode(node.parent.type);\n                }\n                break;\n              case 257:\n              case 166: {\n                const { initializer, type } = node.parent;\n                if (initializer === node || type === node || isAssignmentOperator(node.kind)) {\n                  return spanInPreviousNode(node);\n                }\n                break;\n              }\n              case 223: {\n                const { left } = node.parent;\n                if (isArrayLiteralOrObjectLiteralDestructuringPattern(left) && node !== left) {\n                  return spanInPreviousNode(node);\n                }\n                break;\n              }\n              default:\n                if (isFunctionLike(node.parent) && node.parent.type === node) {\n                  return spanInPreviousNode(node);\n                }\n            }\n            return spanInNode(node.parent);\n        }\n      }\n      function textSpanFromVariableDeclaration(variableDeclaration) {\n        if (isVariableDeclarationList(variableDeclaration.parent) && variableDeclaration.parent.declarations[0] === variableDeclaration) {\n          return textSpan(findPrecedingToken(variableDeclaration.pos, sourceFile, variableDeclaration.parent), variableDeclaration);\n        } else {\n          return textSpan(variableDeclaration);\n        }\n      }\n      function spanInVariableDeclaration(variableDeclaration) {\n        if (variableDeclaration.parent.parent.kind === 246) {\n          return spanInNode(variableDeclaration.parent.parent);\n        }\n        const parent2 = variableDeclaration.parent;\n        if (isBindingPattern(variableDeclaration.name)) {\n          return spanInBindingPattern(variableDeclaration.name);\n        }\n        if (hasOnlyExpressionInitializer(variableDeclaration) && variableDeclaration.initializer || hasSyntacticModifier(variableDeclaration, 1) || parent2.parent.kind === 247) {\n          return textSpanFromVariableDeclaration(variableDeclaration);\n        }\n        if (isVariableDeclarationList(variableDeclaration.parent) && variableDeclaration.parent.declarations[0] !== variableDeclaration) {\n          return spanInNode(findPrecedingToken(variableDeclaration.pos, sourceFile, variableDeclaration.parent));\n        }\n      }\n      function canHaveSpanInParameterDeclaration(parameter) {\n        return !!parameter.initializer || parameter.dotDotDotToken !== void 0 || hasSyntacticModifier(parameter, 4 | 8);\n      }\n      function spanInParameterDeclaration(parameter) {\n        if (isBindingPattern(parameter.name)) {\n          return spanInBindingPattern(parameter.name);\n        } else if (canHaveSpanInParameterDeclaration(parameter)) {\n          return textSpan(parameter);\n        } else {\n          const functionDeclaration = parameter.parent;\n          const indexOfParameter = functionDeclaration.parameters.indexOf(parameter);\n          Debug.assert(indexOfParameter !== -1);\n          if (indexOfParameter !== 0) {\n            return spanInParameterDeclaration(functionDeclaration.parameters[indexOfParameter - 1]);\n          } else {\n            return spanInNode(functionDeclaration.body);\n          }\n        }\n      }\n      function canFunctionHaveSpanInWholeDeclaration(functionDeclaration) {\n        return hasSyntacticModifier(functionDeclaration, 1) || functionDeclaration.parent.kind === 260 && functionDeclaration.kind !== 173;\n      }\n      function spanInFunctionDeclaration(functionDeclaration) {\n        if (!functionDeclaration.body) {\n          return void 0;\n        }\n        if (canFunctionHaveSpanInWholeDeclaration(functionDeclaration)) {\n          return textSpan(functionDeclaration);\n        }\n        return spanInNode(functionDeclaration.body);\n      }\n      function spanInFunctionBlock(block) {\n        const nodeForSpanInBlock = block.statements.length ? block.statements[0] : block.getLastToken();\n        if (canFunctionHaveSpanInWholeDeclaration(block.parent)) {\n          return spanInNodeIfStartsOnSameLine(block.parent, nodeForSpanInBlock);\n        }\n        return spanInNode(nodeForSpanInBlock);\n      }\n      function spanInBlock(block) {\n        switch (block.parent.kind) {\n          case 264:\n            if (getModuleInstanceState(block.parent) !== 1) {\n              return void 0;\n            }\n          case 244:\n          case 242:\n          case 246:\n            return spanInNodeIfStartsOnSameLine(block.parent, block.statements[0]);\n          case 245:\n          case 247:\n            return spanInNodeIfStartsOnSameLine(findPrecedingToken(block.pos, sourceFile, block.parent), block.statements[0]);\n        }\n        return spanInNode(block.statements[0]);\n      }\n      function spanInInitializerOfForLike(forLikeStatement) {\n        if (forLikeStatement.initializer.kind === 258) {\n          const variableDeclarationList = forLikeStatement.initializer;\n          if (variableDeclarationList.declarations.length > 0) {\n            return spanInNode(variableDeclarationList.declarations[0]);\n          }\n        } else {\n          return spanInNode(forLikeStatement.initializer);\n        }\n      }\n      function spanInForStatement(forStatement) {\n        if (forStatement.initializer) {\n          return spanInInitializerOfForLike(forStatement);\n        }\n        if (forStatement.condition) {\n          return textSpan(forStatement.condition);\n        }\n        if (forStatement.incrementor) {\n          return textSpan(forStatement.incrementor);\n        }\n      }\n      function spanInBindingPattern(bindingPattern) {\n        const firstBindingElement = forEach(bindingPattern.elements, (element) => element.kind !== 229 ? element : void 0);\n        if (firstBindingElement) {\n          return spanInNode(firstBindingElement);\n        }\n        if (bindingPattern.parent.kind === 205) {\n          return textSpan(bindingPattern.parent);\n        }\n        return textSpanFromVariableDeclaration(bindingPattern.parent);\n      }\n      function spanInArrayLiteralOrObjectLiteralDestructuringPattern(node2) {\n        Debug.assert(node2.kind !== 204 && node2.kind !== 203);\n        const elements = node2.kind === 206 ? node2.elements : node2.properties;\n        const firstBindingElement = forEach(elements, (element) => element.kind !== 229 ? element : void 0);\n        if (firstBindingElement) {\n          return spanInNode(firstBindingElement);\n        }\n        return textSpan(node2.parent.kind === 223 ? node2.parent : node2);\n      }\n      function spanInOpenBraceToken(node2) {\n        switch (node2.parent.kind) {\n          case 263:\n            const enumDeclaration = node2.parent;\n            return spanInNodeIfStartsOnSameLine(findPrecedingToken(node2.pos, sourceFile, node2.parent), enumDeclaration.members.length ? enumDeclaration.members[0] : enumDeclaration.getLastToken(sourceFile));\n          case 260:\n            const classDeclaration = node2.parent;\n            return spanInNodeIfStartsOnSameLine(findPrecedingToken(node2.pos, sourceFile, node2.parent), classDeclaration.members.length ? classDeclaration.members[0] : classDeclaration.getLastToken(sourceFile));\n          case 266:\n            return spanInNodeIfStartsOnSameLine(node2.parent.parent, node2.parent.clauses[0]);\n        }\n        return spanInNode(node2.parent);\n      }\n      function spanInCloseBraceToken(node2) {\n        switch (node2.parent.kind) {\n          case 265:\n            if (getModuleInstanceState(node2.parent.parent) !== 1) {\n              return void 0;\n            }\n          case 263:\n          case 260:\n            return textSpan(node2);\n          case 238:\n            if (isFunctionBlock(node2.parent)) {\n              return textSpan(node2);\n            }\n          case 295:\n            return spanInNode(lastOrUndefined(node2.parent.statements));\n          case 266:\n            const caseBlock = node2.parent;\n            const lastClause = lastOrUndefined(caseBlock.clauses);\n            if (lastClause) {\n              return spanInNode(lastOrUndefined(lastClause.statements));\n            }\n            return void 0;\n          case 203:\n            const bindingPattern = node2.parent;\n            return spanInNode(lastOrUndefined(bindingPattern.elements) || bindingPattern);\n          default:\n            if (isArrayLiteralOrObjectLiteralDestructuringPattern(node2.parent)) {\n              const objectLiteral = node2.parent;\n              return textSpan(lastOrUndefined(objectLiteral.properties) || objectLiteral);\n            }\n            return spanInNode(node2.parent);\n        }\n      }\n      function spanInCloseBracketToken(node2) {\n        switch (node2.parent.kind) {\n          case 204:\n            const bindingPattern = node2.parent;\n            return textSpan(lastOrUndefined(bindingPattern.elements) || bindingPattern);\n          default:\n            if (isArrayLiteralOrObjectLiteralDestructuringPattern(node2.parent)) {\n              const arrayLiteral = node2.parent;\n              return textSpan(lastOrUndefined(arrayLiteral.elements) || arrayLiteral);\n            }\n            return spanInNode(node2.parent);\n        }\n      }\n      function spanInOpenParenToken(node2) {\n        if (node2.parent.kind === 243 || node2.parent.kind === 210 || node2.parent.kind === 211) {\n          return spanInPreviousNode(node2);\n        }\n        if (node2.parent.kind === 214) {\n          return spanInNextNode(node2);\n        }\n        return spanInNode(node2.parent);\n      }\n      function spanInCloseParenToken(node2) {\n        switch (node2.parent.kind) {\n          case 215:\n          case 259:\n          case 216:\n          case 171:\n          case 170:\n          case 174:\n          case 175:\n          case 173:\n          case 244:\n          case 243:\n          case 245:\n          case 247:\n          case 210:\n          case 211:\n          case 214:\n            return spanInPreviousNode(node2);\n          default:\n            return spanInNode(node2.parent);\n        }\n      }\n      function spanInColonToken(node2) {\n        if (isFunctionLike(node2.parent) || node2.parent.kind === 299 || node2.parent.kind === 166) {\n          return spanInPreviousNode(node2);\n        }\n        return spanInNode(node2.parent);\n      }\n      function spanInGreaterThanOrLessThanToken(node2) {\n        if (node2.parent.kind === 213) {\n          return spanInNextNode(node2);\n        }\n        return spanInNode(node2.parent);\n      }\n      function spanInWhileKeyword(node2) {\n        if (node2.parent.kind === 243) {\n          return textSpanEndingAtNextToken(node2, node2.parent.expression);\n        }\n        return spanInNode(node2.parent);\n      }\n      function spanInOfKeyword(node2) {\n        if (node2.parent.kind === 247) {\n          return spanInNextNode(node2);\n        }\n        return spanInNode(node2.parent);\n      }\n    }\n  }\n  var init_breakpoints = __esm({\n    \"src/services/breakpoints.ts\"() {\n      \"use strict\";\n      init_ts4();\n    }\n  });\n  var ts_BreakpointResolver_exports = {};\n  __export2(ts_BreakpointResolver_exports, {\n    spanInSourceFileAtLocation: () => spanInSourceFileAtLocation\n  });\n  var init_ts_BreakpointResolver = __esm({\n    \"src/services/_namespaces/ts.BreakpointResolver.ts\"() {\n      \"use strict\";\n      init_breakpoints();\n    }\n  });\n  function isNamedExpression(node) {\n    return (isFunctionExpression(node) || isClassExpression(node)) && isNamedDeclaration(node);\n  }\n  function isConstNamedExpression(node) {\n    return (isFunctionExpression(node) || isArrowFunction(node) || isClassExpression(node)) && isVariableDeclaration(node.parent) && node === node.parent.initializer && isIdentifier(node.parent.name) && !!(getCombinedNodeFlags(node.parent) & 2);\n  }\n  function isPossibleCallHierarchyDeclaration(node) {\n    return isSourceFile(node) || isModuleDeclaration(node) || isFunctionDeclaration(node) || isFunctionExpression(node) || isClassDeclaration(node) || isClassExpression(node) || isClassStaticBlockDeclaration(node) || isMethodDeclaration(node) || isMethodSignature(node) || isGetAccessorDeclaration(node) || isSetAccessorDeclaration(node);\n  }\n  function isValidCallHierarchyDeclaration(node) {\n    return isSourceFile(node) || isModuleDeclaration(node) && isIdentifier(node.name) || isFunctionDeclaration(node) || isClassDeclaration(node) || isClassStaticBlockDeclaration(node) || isMethodDeclaration(node) || isMethodSignature(node) || isGetAccessorDeclaration(node) || isSetAccessorDeclaration(node) || isNamedExpression(node) || isConstNamedExpression(node);\n  }\n  function getCallHierarchyDeclarationReferenceNode(node) {\n    if (isSourceFile(node))\n      return node;\n    if (isNamedDeclaration(node))\n      return node.name;\n    if (isConstNamedExpression(node))\n      return node.parent.name;\n    return Debug.checkDefined(node.modifiers && find(node.modifiers, isDefaultModifier3));\n  }\n  function isDefaultModifier3(node) {\n    return node.kind === 88;\n  }\n  function getSymbolOfCallHierarchyDeclaration(typeChecker, node) {\n    const location = getCallHierarchyDeclarationReferenceNode(node);\n    return location && typeChecker.getSymbolAtLocation(location);\n  }\n  function getCallHierarchyItemName(program, node) {\n    if (isSourceFile(node)) {\n      return { text: node.fileName, pos: 0, end: 0 };\n    }\n    if ((isFunctionDeclaration(node) || isClassDeclaration(node)) && !isNamedDeclaration(node)) {\n      const defaultModifier = node.modifiers && find(node.modifiers, isDefaultModifier3);\n      if (defaultModifier) {\n        return { text: \"default\", pos: defaultModifier.getStart(), end: defaultModifier.getEnd() };\n      }\n    }\n    if (isClassStaticBlockDeclaration(node)) {\n      const sourceFile = node.getSourceFile();\n      const pos = skipTrivia(sourceFile.text, moveRangePastModifiers(node).pos);\n      const end = pos + 6;\n      const typeChecker = program.getTypeChecker();\n      const symbol = typeChecker.getSymbolAtLocation(node.parent);\n      const prefix = symbol ? `${typeChecker.symbolToString(symbol, node.parent)} ` : \"\";\n      return { text: `${prefix}static {}`, pos, end };\n    }\n    const declName = isConstNamedExpression(node) ? node.parent.name : Debug.checkDefined(getNameOfDeclaration(node), \"Expected call hierarchy item to have a name\");\n    let text = isIdentifier(declName) ? idText(declName) : isStringOrNumericLiteralLike(declName) ? declName.text : isComputedPropertyName(declName) ? isStringOrNumericLiteralLike(declName.expression) ? declName.expression.text : void 0 : void 0;\n    if (text === void 0) {\n      const typeChecker = program.getTypeChecker();\n      const symbol = typeChecker.getSymbolAtLocation(declName);\n      if (symbol) {\n        text = typeChecker.symbolToString(symbol, node);\n      }\n    }\n    if (text === void 0) {\n      const printer = createPrinterWithRemoveCommentsOmitTrailingSemicolon();\n      text = usingSingleLineStringWriter((writer) => printer.writeNode(4, node, node.getSourceFile(), writer));\n    }\n    return { text, pos: declName.getStart(), end: declName.getEnd() };\n  }\n  function getCallHierarchItemContainerName(node) {\n    var _a2, _b;\n    if (isConstNamedExpression(node)) {\n      if (isModuleBlock(node.parent.parent.parent.parent) && isIdentifier(node.parent.parent.parent.parent.parent.name)) {\n        return node.parent.parent.parent.parent.parent.name.getText();\n      }\n      return;\n    }\n    switch (node.kind) {\n      case 174:\n      case 175:\n      case 171:\n        if (node.parent.kind === 207) {\n          return (_a2 = getAssignedName(node.parent)) == null ? void 0 : _a2.getText();\n        }\n        return (_b = getNameOfDeclaration(node.parent)) == null ? void 0 : _b.getText();\n      case 259:\n      case 260:\n      case 264:\n        if (isModuleBlock(node.parent) && isIdentifier(node.parent.parent.name)) {\n          return node.parent.parent.name.getText();\n        }\n    }\n  }\n  function findImplementation(typeChecker, node) {\n    if (node.body) {\n      return node;\n    }\n    if (isConstructorDeclaration(node)) {\n      return getFirstConstructorWithBody(node.parent);\n    }\n    if (isFunctionDeclaration(node) || isMethodDeclaration(node)) {\n      const symbol = getSymbolOfCallHierarchyDeclaration(typeChecker, node);\n      if (symbol && symbol.valueDeclaration && isFunctionLikeDeclaration(symbol.valueDeclaration) && symbol.valueDeclaration.body) {\n        return symbol.valueDeclaration;\n      }\n      return void 0;\n    }\n    return node;\n  }\n  function findAllInitialDeclarations(typeChecker, node) {\n    const symbol = getSymbolOfCallHierarchyDeclaration(typeChecker, node);\n    let declarations;\n    if (symbol && symbol.declarations) {\n      const indices = indicesOf(symbol.declarations);\n      const keys = map(symbol.declarations, (decl) => ({ file: decl.getSourceFile().fileName, pos: decl.pos }));\n      indices.sort((a, b) => compareStringsCaseSensitive(keys[a].file, keys[b].file) || keys[a].pos - keys[b].pos);\n      const sortedDeclarations = map(indices, (i) => symbol.declarations[i]);\n      let lastDecl;\n      for (const decl of sortedDeclarations) {\n        if (isValidCallHierarchyDeclaration(decl)) {\n          if (!lastDecl || lastDecl.parent !== decl.parent || lastDecl.end !== decl.pos) {\n            declarations = append(declarations, decl);\n          }\n          lastDecl = decl;\n        }\n      }\n    }\n    return declarations;\n  }\n  function findImplementationOrAllInitialDeclarations(typeChecker, node) {\n    var _a2, _b, _c;\n    if (isClassStaticBlockDeclaration(node)) {\n      return node;\n    }\n    if (isFunctionLikeDeclaration(node)) {\n      return (_b = (_a2 = findImplementation(typeChecker, node)) != null ? _a2 : findAllInitialDeclarations(typeChecker, node)) != null ? _b : node;\n    }\n    return (_c = findAllInitialDeclarations(typeChecker, node)) != null ? _c : node;\n  }\n  function resolveCallHierarchyDeclaration(program, location) {\n    const typeChecker = program.getTypeChecker();\n    let followingSymbol = false;\n    while (true) {\n      if (isValidCallHierarchyDeclaration(location)) {\n        return findImplementationOrAllInitialDeclarations(typeChecker, location);\n      }\n      if (isPossibleCallHierarchyDeclaration(location)) {\n        const ancestor = findAncestor(location, isValidCallHierarchyDeclaration);\n        return ancestor && findImplementationOrAllInitialDeclarations(typeChecker, ancestor);\n      }\n      if (isDeclarationName(location)) {\n        if (isValidCallHierarchyDeclaration(location.parent)) {\n          return findImplementationOrAllInitialDeclarations(typeChecker, location.parent);\n        }\n        if (isPossibleCallHierarchyDeclaration(location.parent)) {\n          const ancestor = findAncestor(location.parent, isValidCallHierarchyDeclaration);\n          return ancestor && findImplementationOrAllInitialDeclarations(typeChecker, ancestor);\n        }\n        if (isVariableDeclaration(location.parent) && location.parent.initializer && isConstNamedExpression(location.parent.initializer)) {\n          return location.parent.initializer;\n        }\n        return void 0;\n      }\n      if (isConstructorDeclaration(location)) {\n        if (isValidCallHierarchyDeclaration(location.parent)) {\n          return location.parent;\n        }\n        return void 0;\n      }\n      if (location.kind === 124 && isClassStaticBlockDeclaration(location.parent)) {\n        location = location.parent;\n        continue;\n      }\n      if (isVariableDeclaration(location) && location.initializer && isConstNamedExpression(location.initializer)) {\n        return location.initializer;\n      }\n      if (!followingSymbol) {\n        let symbol = typeChecker.getSymbolAtLocation(location);\n        if (symbol) {\n          if (symbol.flags & 2097152) {\n            symbol = typeChecker.getAliasedSymbol(symbol);\n          }\n          if (symbol.valueDeclaration) {\n            followingSymbol = true;\n            location = symbol.valueDeclaration;\n            continue;\n          }\n        }\n      }\n      return void 0;\n    }\n  }\n  function createCallHierarchyItem(program, node) {\n    const sourceFile = node.getSourceFile();\n    const name = getCallHierarchyItemName(program, node);\n    const containerName = getCallHierarchItemContainerName(node);\n    const kind = getNodeKind(node);\n    const kindModifiers = getNodeModifiers(node);\n    const span = createTextSpanFromBounds(skipTrivia(sourceFile.text, node.getFullStart(), false, true), node.getEnd());\n    const selectionSpan = createTextSpanFromBounds(name.pos, name.end);\n    return { file: sourceFile.fileName, kind, kindModifiers, name: name.text, containerName, span, selectionSpan };\n  }\n  function isDefined(x) {\n    return x !== void 0;\n  }\n  function convertEntryToCallSite(entry) {\n    if (entry.kind === ts_FindAllReferences_exports.EntryKind.Node) {\n      const { node } = entry;\n      if (isCallOrNewExpressionTarget(node, true, true) || isTaggedTemplateTag(node, true, true) || isDecoratorTarget(node, true, true) || isJsxOpeningLikeElementTagName(node, true, true) || isRightSideOfPropertyAccess(node) || isArgumentExpressionOfElementAccess(node)) {\n        const sourceFile = node.getSourceFile();\n        const ancestor = findAncestor(node, isValidCallHierarchyDeclaration) || sourceFile;\n        return { declaration: ancestor, range: createTextRangeFromNode(node, sourceFile) };\n      }\n    }\n  }\n  function getCallSiteGroupKey(entry) {\n    return getNodeId(entry.declaration);\n  }\n  function createCallHierarchyIncomingCall(from, fromSpans) {\n    return { from, fromSpans };\n  }\n  function convertCallSiteGroupToIncomingCall(program, entries) {\n    return createCallHierarchyIncomingCall(createCallHierarchyItem(program, entries[0].declaration), map(entries, (entry) => createTextSpanFromRange(entry.range)));\n  }\n  function getIncomingCalls(program, declaration, cancellationToken) {\n    if (isSourceFile(declaration) || isModuleDeclaration(declaration) || isClassStaticBlockDeclaration(declaration)) {\n      return [];\n    }\n    const location = getCallHierarchyDeclarationReferenceNode(declaration);\n    const calls = filter(ts_FindAllReferences_exports.findReferenceOrRenameEntries(program, cancellationToken, program.getSourceFiles(), location, 0, { use: ts_FindAllReferences_exports.FindReferencesUse.References }, convertEntryToCallSite), isDefined);\n    return calls ? group(calls, getCallSiteGroupKey, (entries) => convertCallSiteGroupToIncomingCall(program, entries)) : [];\n  }\n  function createCallSiteCollector(program, callSites) {\n    function recordCallSite(node) {\n      const target = isTaggedTemplateExpression(node) ? node.tag : isJsxOpeningLikeElement(node) ? node.tagName : isAccessExpression(node) ? node : isClassStaticBlockDeclaration(node) ? node : node.expression;\n      const declaration = resolveCallHierarchyDeclaration(program, target);\n      if (declaration) {\n        const range = createTextRangeFromNode(target, node.getSourceFile());\n        if (isArray(declaration)) {\n          for (const decl of declaration) {\n            callSites.push({ declaration: decl, range });\n          }\n        } else {\n          callSites.push({ declaration, range });\n        }\n      }\n    }\n    function collect(node) {\n      if (!node)\n        return;\n      if (node.flags & 16777216) {\n        return;\n      }\n      if (isValidCallHierarchyDeclaration(node)) {\n        if (isClassLike(node)) {\n          for (const member of node.members) {\n            if (member.name && isComputedPropertyName(member.name)) {\n              collect(member.name.expression);\n            }\n          }\n        }\n        return;\n      }\n      switch (node.kind) {\n        case 79:\n        case 268:\n        case 269:\n        case 275:\n        case 261:\n        case 262:\n          return;\n        case 172:\n          recordCallSite(node);\n          return;\n        case 213:\n        case 231:\n          collect(node.expression);\n          return;\n        case 257:\n        case 166:\n          collect(node.name);\n          collect(node.initializer);\n          return;\n        case 210:\n          recordCallSite(node);\n          collect(node.expression);\n          forEach(node.arguments, collect);\n          return;\n        case 211:\n          recordCallSite(node);\n          collect(node.expression);\n          forEach(node.arguments, collect);\n          return;\n        case 212:\n          recordCallSite(node);\n          collect(node.tag);\n          collect(node.template);\n          return;\n        case 283:\n        case 282:\n          recordCallSite(node);\n          collect(node.tagName);\n          collect(node.attributes);\n          return;\n        case 167:\n          recordCallSite(node);\n          collect(node.expression);\n          return;\n        case 208:\n        case 209:\n          recordCallSite(node);\n          forEachChild(node, collect);\n          break;\n        case 235:\n          collect(node.expression);\n          return;\n      }\n      if (isPartOfTypeNode(node)) {\n        return;\n      }\n      forEachChild(node, collect);\n    }\n    return collect;\n  }\n  function collectCallSitesOfSourceFile(node, collect) {\n    forEach(node.statements, collect);\n  }\n  function collectCallSitesOfModuleDeclaration(node, collect) {\n    if (!hasSyntacticModifier(node, 2) && node.body && isModuleBlock(node.body)) {\n      forEach(node.body.statements, collect);\n    }\n  }\n  function collectCallSitesOfFunctionLikeDeclaration(typeChecker, node, collect) {\n    const implementation = findImplementation(typeChecker, node);\n    if (implementation) {\n      forEach(implementation.parameters, collect);\n      collect(implementation.body);\n    }\n  }\n  function collectCallSitesOfClassStaticBlockDeclaration(node, collect) {\n    collect(node.body);\n  }\n  function collectCallSitesOfClassLikeDeclaration(node, collect) {\n    forEach(node.modifiers, collect);\n    const heritage = getClassExtendsHeritageElement(node);\n    if (heritage) {\n      collect(heritage.expression);\n    }\n    for (const member of node.members) {\n      if (canHaveModifiers(member)) {\n        forEach(member.modifiers, collect);\n      }\n      if (isPropertyDeclaration(member)) {\n        collect(member.initializer);\n      } else if (isConstructorDeclaration(member) && member.body) {\n        forEach(member.parameters, collect);\n        collect(member.body);\n      } else if (isClassStaticBlockDeclaration(member)) {\n        collect(member);\n      }\n    }\n  }\n  function collectCallSites(program, node) {\n    const callSites = [];\n    const collect = createCallSiteCollector(program, callSites);\n    switch (node.kind) {\n      case 308:\n        collectCallSitesOfSourceFile(node, collect);\n        break;\n      case 264:\n        collectCallSitesOfModuleDeclaration(node, collect);\n        break;\n      case 259:\n      case 215:\n      case 216:\n      case 171:\n      case 174:\n      case 175:\n        collectCallSitesOfFunctionLikeDeclaration(program.getTypeChecker(), node, collect);\n        break;\n      case 260:\n      case 228:\n        collectCallSitesOfClassLikeDeclaration(node, collect);\n        break;\n      case 172:\n        collectCallSitesOfClassStaticBlockDeclaration(node, collect);\n        break;\n      default:\n        Debug.assertNever(node);\n    }\n    return callSites;\n  }\n  function createCallHierarchyOutgoingCall(to, fromSpans) {\n    return { to, fromSpans };\n  }\n  function convertCallSiteGroupToOutgoingCall(program, entries) {\n    return createCallHierarchyOutgoingCall(createCallHierarchyItem(program, entries[0].declaration), map(entries, (entry) => createTextSpanFromRange(entry.range)));\n  }\n  function getOutgoingCalls(program, declaration) {\n    if (declaration.flags & 16777216 || isMethodSignature(declaration)) {\n      return [];\n    }\n    return group(collectCallSites(program, declaration), getCallSiteGroupKey, (entries) => convertCallSiteGroupToOutgoingCall(program, entries));\n  }\n  var init_callHierarchy = __esm({\n    \"src/services/callHierarchy.ts\"() {\n      \"use strict\";\n      init_ts4();\n    }\n  });\n  var ts_CallHierarchy_exports = {};\n  __export2(ts_CallHierarchy_exports, {\n    createCallHierarchyItem: () => createCallHierarchyItem,\n    getIncomingCalls: () => getIncomingCalls,\n    getOutgoingCalls: () => getOutgoingCalls,\n    resolveCallHierarchyDeclaration: () => resolveCallHierarchyDeclaration\n  });\n  var init_ts_CallHierarchy = __esm({\n    \"src/services/_namespaces/ts.CallHierarchy.ts\"() {\n      \"use strict\";\n      init_callHierarchy();\n    }\n  });\n  function getSemanticClassifications2(program, cancellationToken, sourceFile, span) {\n    const classifications = getEncodedSemanticClassifications2(program, cancellationToken, sourceFile, span);\n    Debug.assert(classifications.spans.length % 3 === 0);\n    const dense = classifications.spans;\n    const result = [];\n    for (let i = 0; i < dense.length; i += 3) {\n      result.push({\n        textSpan: createTextSpan(dense[i], dense[i + 1]),\n        classificationType: dense[i + 2]\n      });\n    }\n    return result;\n  }\n  function getEncodedSemanticClassifications2(program, cancellationToken, sourceFile, span) {\n    return {\n      spans: getSemanticTokens(program, sourceFile, span, cancellationToken),\n      endOfLineState: 0\n    };\n  }\n  function getSemanticTokens(program, sourceFile, span, cancellationToken) {\n    const resultTokens = [];\n    const collector = (node, typeIdx, modifierSet) => {\n      resultTokens.push(node.getStart(sourceFile), node.getWidth(sourceFile), (typeIdx + 1 << 8) + modifierSet);\n    };\n    if (program && sourceFile) {\n      collectTokens(program, sourceFile, span, collector, cancellationToken);\n    }\n    return resultTokens;\n  }\n  function collectTokens(program, sourceFile, span, collector, cancellationToken) {\n    const typeChecker = program.getTypeChecker();\n    let inJSXElement = false;\n    function visit(node) {\n      switch (node.kind) {\n        case 264:\n        case 260:\n        case 261:\n        case 259:\n        case 228:\n        case 215:\n        case 216:\n          cancellationToken.throwIfCancellationRequested();\n      }\n      if (!node || !textSpanIntersectsWith(span, node.pos, node.getFullWidth()) || node.getFullWidth() === 0) {\n        return;\n      }\n      const prevInJSXElement = inJSXElement;\n      if (isJsxElement(node) || isJsxSelfClosingElement(node)) {\n        inJSXElement = true;\n      }\n      if (isJsxExpression(node)) {\n        inJSXElement = false;\n      }\n      if (isIdentifier(node) && !inJSXElement && !inImportClause(node) && !isInfinityOrNaNString(node.escapedText)) {\n        let symbol = typeChecker.getSymbolAtLocation(node);\n        if (symbol) {\n          if (symbol.flags & 2097152) {\n            symbol = typeChecker.getAliasedSymbol(symbol);\n          }\n          let typeIdx = classifySymbol2(symbol, getMeaningFromLocation(node));\n          if (typeIdx !== void 0) {\n            let modifierSet = 0;\n            if (node.parent) {\n              const parentIsDeclaration = isBindingElement(node.parent) || tokenFromDeclarationMapping.get(node.parent.kind) === typeIdx;\n              if (parentIsDeclaration && node.parent.name === node) {\n                modifierSet = 1 << 0;\n              }\n            }\n            if (typeIdx === 6 && isRightSideOfQualifiedNameOrPropertyAccess2(node)) {\n              typeIdx = 9;\n            }\n            typeIdx = reclassifyByType(typeChecker, node, typeIdx);\n            const decl = symbol.valueDeclaration;\n            if (decl) {\n              const modifiers = getCombinedModifierFlags(decl);\n              const nodeFlags = getCombinedNodeFlags(decl);\n              if (modifiers & 32) {\n                modifierSet |= 1 << 1;\n              }\n              if (modifiers & 512) {\n                modifierSet |= 1 << 2;\n              }\n              if (typeIdx !== 0 && typeIdx !== 2) {\n                if (modifiers & 64 || nodeFlags & 2 || symbol.getFlags() & 8) {\n                  modifierSet |= 1 << 3;\n                }\n              }\n              if ((typeIdx === 7 || typeIdx === 10) && isLocalDeclaration(decl, sourceFile)) {\n                modifierSet |= 1 << 5;\n              }\n              if (program.isSourceFileDefaultLibrary(decl.getSourceFile())) {\n                modifierSet |= 1 << 4;\n              }\n            } else if (symbol.declarations && symbol.declarations.some((d) => program.isSourceFileDefaultLibrary(d.getSourceFile()))) {\n              modifierSet |= 1 << 4;\n            }\n            collector(node, typeIdx, modifierSet);\n          }\n        }\n      }\n      forEachChild(node, visit);\n      inJSXElement = prevInJSXElement;\n    }\n    visit(sourceFile);\n  }\n  function classifySymbol2(symbol, meaning) {\n    const flags = symbol.getFlags();\n    if (flags & 32) {\n      return 0;\n    } else if (flags & 384) {\n      return 1;\n    } else if (flags & 524288) {\n      return 5;\n    } else if (flags & 64) {\n      if (meaning & 2) {\n        return 2;\n      }\n    } else if (flags & 262144) {\n      return 4;\n    }\n    let decl = symbol.valueDeclaration || symbol.declarations && symbol.declarations[0];\n    if (decl && isBindingElement(decl)) {\n      decl = getDeclarationForBindingElement(decl);\n    }\n    return decl && tokenFromDeclarationMapping.get(decl.kind);\n  }\n  function reclassifyByType(typeChecker, node, typeIdx) {\n    if (typeIdx === 7 || typeIdx === 9 || typeIdx === 6) {\n      const type = typeChecker.getTypeAtLocation(node);\n      if (type) {\n        const test = (condition) => {\n          return condition(type) || type.isUnion() && type.types.some(condition);\n        };\n        if (typeIdx !== 6 && test((t) => t.getConstructSignatures().length > 0)) {\n          return 0;\n        }\n        if (test((t) => t.getCallSignatures().length > 0) && !test((t) => t.getProperties().length > 0) || isExpressionInCallExpression(node)) {\n          return typeIdx === 9 ? 11 : 10;\n        }\n      }\n    }\n    return typeIdx;\n  }\n  function isLocalDeclaration(decl, sourceFile) {\n    if (isBindingElement(decl)) {\n      decl = getDeclarationForBindingElement(decl);\n    }\n    if (isVariableDeclaration(decl)) {\n      return (!isSourceFile(decl.parent.parent.parent) || isCatchClause(decl.parent)) && decl.getSourceFile() === sourceFile;\n    } else if (isFunctionDeclaration(decl)) {\n      return !isSourceFile(decl.parent) && decl.getSourceFile() === sourceFile;\n    }\n    return false;\n  }\n  function getDeclarationForBindingElement(element) {\n    while (true) {\n      if (isBindingElement(element.parent.parent)) {\n        element = element.parent.parent;\n      } else {\n        return element.parent.parent;\n      }\n    }\n  }\n  function inImportClause(node) {\n    const parent2 = node.parent;\n    return parent2 && (isImportClause(parent2) || isImportSpecifier(parent2) || isNamespaceImport(parent2));\n  }\n  function isExpressionInCallExpression(node) {\n    while (isRightSideOfQualifiedNameOrPropertyAccess2(node)) {\n      node = node.parent;\n    }\n    return isCallExpression(node.parent) && node.parent.expression === node;\n  }\n  function isRightSideOfQualifiedNameOrPropertyAccess2(node) {\n    return isQualifiedName(node.parent) && node.parent.right === node || isPropertyAccessExpression(node.parent) && node.parent.name === node;\n  }\n  var TokenEncodingConsts, TokenType, TokenModifier, tokenFromDeclarationMapping;\n  var init_classifier2020 = __esm({\n    \"src/services/classifier2020.ts\"() {\n      \"use strict\";\n      init_ts4();\n      TokenEncodingConsts = /* @__PURE__ */ ((TokenEncodingConsts2) => {\n        TokenEncodingConsts2[TokenEncodingConsts2[\"typeOffset\"] = 8] = \"typeOffset\";\n        TokenEncodingConsts2[TokenEncodingConsts2[\"modifierMask\"] = 255] = \"modifierMask\";\n        return TokenEncodingConsts2;\n      })(TokenEncodingConsts || {});\n      TokenType = /* @__PURE__ */ ((TokenType2) => {\n        TokenType2[TokenType2[\"class\"] = 0] = \"class\";\n        TokenType2[TokenType2[\"enum\"] = 1] = \"enum\";\n        TokenType2[TokenType2[\"interface\"] = 2] = \"interface\";\n        TokenType2[TokenType2[\"namespace\"] = 3] = \"namespace\";\n        TokenType2[TokenType2[\"typeParameter\"] = 4] = \"typeParameter\";\n        TokenType2[TokenType2[\"type\"] = 5] = \"type\";\n        TokenType2[TokenType2[\"parameter\"] = 6] = \"parameter\";\n        TokenType2[TokenType2[\"variable\"] = 7] = \"variable\";\n        TokenType2[TokenType2[\"enumMember\"] = 8] = \"enumMember\";\n        TokenType2[TokenType2[\"property\"] = 9] = \"property\";\n        TokenType2[TokenType2[\"function\"] = 10] = \"function\";\n        TokenType2[TokenType2[\"member\"] = 11] = \"member\";\n        return TokenType2;\n      })(TokenType || {});\n      TokenModifier = /* @__PURE__ */ ((TokenModifier2) => {\n        TokenModifier2[TokenModifier2[\"declaration\"] = 0] = \"declaration\";\n        TokenModifier2[TokenModifier2[\"static\"] = 1] = \"static\";\n        TokenModifier2[TokenModifier2[\"async\"] = 2] = \"async\";\n        TokenModifier2[TokenModifier2[\"readonly\"] = 3] = \"readonly\";\n        TokenModifier2[TokenModifier2[\"defaultLibrary\"] = 4] = \"defaultLibrary\";\n        TokenModifier2[TokenModifier2[\"local\"] = 5] = \"local\";\n        return TokenModifier2;\n      })(TokenModifier || {});\n      tokenFromDeclarationMapping = /* @__PURE__ */ new Map([\n        [257, 7],\n        [166, 6],\n        [169, 9],\n        [264, 3],\n        [263, 1],\n        [302, 8],\n        [260, 0],\n        [171, 11],\n        [259, 10],\n        [215, 10],\n        [170, 11],\n        [174, 9],\n        [175, 9],\n        [168, 9],\n        [261, 2],\n        [262, 5],\n        [165, 4],\n        [299, 9],\n        [300, 9]\n      ]);\n    }\n  });\n  var ts_classifier_v2020_exports = {};\n  __export2(ts_classifier_v2020_exports, {\n    TokenEncodingConsts: () => TokenEncodingConsts,\n    TokenModifier: () => TokenModifier,\n    TokenType: () => TokenType,\n    getEncodedSemanticClassifications: () => getEncodedSemanticClassifications2,\n    getSemanticClassifications: () => getSemanticClassifications2\n  });\n  var init_ts_classifier_v2020 = __esm({\n    \"src/services/_namespaces/ts.classifier.v2020.ts\"() {\n      \"use strict\";\n      init_classifier2020();\n    }\n  });\n  var ts_classifier_exports = {};\n  __export2(ts_classifier_exports, {\n    v2020: () => ts_classifier_v2020_exports\n  });\n  var init_ts_classifier = __esm({\n    \"src/services/_namespaces/ts.classifier.ts\"() {\n      \"use strict\";\n      init_ts_classifier_v2020();\n    }\n  });\n  function createCodeFixActionWithoutFixAll(fixName8, changes, description2) {\n    return createCodeFixActionWorker(fixName8, diagnosticToString(description2), changes, void 0, void 0);\n  }\n  function createCodeFixAction(fixName8, changes, description2, fixId51, fixAllDescription, command) {\n    return createCodeFixActionWorker(fixName8, diagnosticToString(description2), changes, fixId51, diagnosticToString(fixAllDescription), command);\n  }\n  function createCodeFixActionMaybeFixAll(fixName8, changes, description2, fixId51, fixAllDescription, command) {\n    return createCodeFixActionWorker(fixName8, diagnosticToString(description2), changes, fixId51, fixAllDescription && diagnosticToString(fixAllDescription), command);\n  }\n  function createCodeFixActionWorker(fixName8, description2, changes, fixId51, fixAllDescription, command) {\n    return { fixName: fixName8, description: description2, changes, fixId: fixId51, fixAllDescription, commands: command ? [command] : void 0 };\n  }\n  function registerCodeFix(reg) {\n    for (const error of reg.errorCodes) {\n      errorCodeToFixes.add(String(error), reg);\n    }\n    if (reg.fixIds) {\n      for (const fixId51 of reg.fixIds) {\n        Debug.assert(!fixIdToRegistration.has(fixId51));\n        fixIdToRegistration.set(fixId51, reg);\n      }\n    }\n  }\n  function getSupportedErrorCodes() {\n    return arrayFrom(errorCodeToFixes.keys());\n  }\n  function removeFixIdIfFixAllUnavailable(registration, diagnostics) {\n    const { errorCodes: errorCodes63 } = registration;\n    let maybeFixableDiagnostics = 0;\n    for (const diag2 of diagnostics) {\n      if (contains(errorCodes63, diag2.code))\n        maybeFixableDiagnostics++;\n      if (maybeFixableDiagnostics > 1)\n        break;\n    }\n    const fixAllUnavailable = maybeFixableDiagnostics < 2;\n    return ({ fixId: fixId51, fixAllDescription, ...action }) => {\n      return fixAllUnavailable ? action : { ...action, fixId: fixId51, fixAllDescription };\n    };\n  }\n  function getFixes(context) {\n    const diagnostics = getDiagnostics(context);\n    const registrations = errorCodeToFixes.get(String(context.errorCode));\n    return flatMap(registrations, (f) => map(f.getCodeActions(context), removeFixIdIfFixAllUnavailable(f, diagnostics)));\n  }\n  function getAllFixes(context) {\n    return fixIdToRegistration.get(cast(context.fixId, isString)).getAllCodeActions(context);\n  }\n  function createCombinedCodeActions(changes, commands) {\n    return { changes, commands };\n  }\n  function createFileTextChanges(fileName, textChanges2) {\n    return { fileName, textChanges: textChanges2 };\n  }\n  function codeFixAll(context, errorCodes63, use) {\n    const commands = [];\n    const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => eachDiagnostic(context, errorCodes63, (diag2) => use(t, diag2, commands)));\n    return createCombinedCodeActions(changes, commands.length === 0 ? void 0 : commands);\n  }\n  function eachDiagnostic(context, errorCodes63, cb) {\n    for (const diag2 of getDiagnostics(context)) {\n      if (contains(errorCodes63, diag2.code)) {\n        cb(diag2);\n      }\n    }\n  }\n  function getDiagnostics({ program, sourceFile, cancellationToken }) {\n    return [\n      ...program.getSemanticDiagnostics(sourceFile, cancellationToken),\n      ...program.getSyntacticDiagnostics(sourceFile, cancellationToken),\n      ...computeSuggestionDiagnostics(sourceFile, program, cancellationToken)\n    ];\n  }\n  var errorCodeToFixes, fixIdToRegistration;\n  var init_codeFixProvider = __esm({\n    \"src/services/codeFixProvider.ts\"() {\n      \"use strict\";\n      init_ts4();\n      errorCodeToFixes = createMultiMap();\n      fixIdToRegistration = /* @__PURE__ */ new Map();\n    }\n  });\n  function makeChange(changeTracker, sourceFile, assertion) {\n    const replacement = isAsExpression(assertion) ? factory.createAsExpression(assertion.expression, factory.createKeywordTypeNode(157)) : factory.createTypeAssertion(factory.createKeywordTypeNode(157), assertion.expression);\n    changeTracker.replaceNode(sourceFile, assertion.expression, replacement);\n  }\n  function getAssertion(sourceFile, pos) {\n    if (isInJSFile(sourceFile))\n      return void 0;\n    return findAncestor(getTokenAtPosition(sourceFile, pos), (n) => isAsExpression(n) || isTypeAssertionExpression(n));\n  }\n  var fixId, errorCodes;\n  var init_addConvertToUnknownForNonOverlappingTypes = __esm({\n    \"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId = \"addConvertToUnknownForNonOverlappingTypes\";\n      errorCodes = [Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];\n      registerCodeFix({\n        errorCodes,\n        getCodeActions: function getCodeActionsToAddConvertToUnknownForNonOverlappingTypes(context) {\n          const assertion = getAssertion(context.sourceFile, context.span.start);\n          if (assertion === void 0)\n            return void 0;\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => makeChange(t, context.sourceFile, assertion));\n          return [createCodeFixAction(fixId, changes, Diagnostics.Add_unknown_conversion_for_non_overlapping_types, fixId, Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)];\n        },\n        fixIds: [fixId],\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes, (changes, diag2) => {\n          const assertion = getAssertion(diag2.file, diag2.start);\n          if (assertion) {\n            makeChange(changes, diag2.file, assertion);\n          }\n        })\n      });\n    }\n  });\n  var init_addEmptyExportDeclaration = __esm({\n    \"src/services/codefixes/addEmptyExportDeclaration.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      registerCodeFix({\n        errorCodes: [\n          Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,\n          Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code\n        ],\n        getCodeActions: function getCodeActionsToAddEmptyExportDeclaration(context) {\n          const { sourceFile } = context;\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (changes2) => {\n            const exportDeclaration = factory.createExportDeclaration(void 0, false, factory.createNamedExports([]), void 0);\n            changes2.insertNodeAtEndOfScope(sourceFile, sourceFile, exportDeclaration);\n          });\n          return [createCodeFixActionWithoutFixAll(\"addEmptyExportDeclaration\", changes, Diagnostics.Add_export_to_make_this_file_into_a_module)];\n        }\n      });\n    }\n  });\n  function getFix(context, decl, trackChanges, fixedDeclarations) {\n    const changes = trackChanges((t) => makeChange2(t, context.sourceFile, decl, fixedDeclarations));\n    return createCodeFixAction(fixId2, changes, Diagnostics.Add_async_modifier_to_containing_function, fixId2, Diagnostics.Add_all_missing_async_modifiers);\n  }\n  function makeChange2(changeTracker, sourceFile, insertionSite, fixedDeclarations) {\n    if (fixedDeclarations) {\n      if (fixedDeclarations.has(getNodeId(insertionSite))) {\n        return;\n      }\n    }\n    fixedDeclarations == null ? void 0 : fixedDeclarations.add(getNodeId(insertionSite));\n    const cloneWithModifier = factory.updateModifiers(getSynthesizedDeepClone(insertionSite, true), factory.createNodeArray(factory.createModifiersFromModifierFlags(getSyntacticModifierFlags(insertionSite) | 512)));\n    changeTracker.replaceNode(sourceFile, insertionSite, cloneWithModifier);\n  }\n  function getFixableErrorSpanDeclaration(sourceFile, span) {\n    if (!span)\n      return void 0;\n    const token = getTokenAtPosition(sourceFile, span.start);\n    const decl = findAncestor(token, (node) => {\n      if (node.getStart(sourceFile) < span.start || node.getEnd() > textSpanEnd(span)) {\n        return \"quit\";\n      }\n      return (isArrowFunction(node) || isMethodDeclaration(node) || isFunctionExpression(node) || isFunctionDeclaration(node)) && textSpansEqual(span, createTextSpanFromNode(node, sourceFile));\n    });\n    return decl;\n  }\n  function getIsMatchingAsyncError(span, errorCode) {\n    return ({ start, length: length2, relatedInformation, code }) => isNumber(start) && isNumber(length2) && textSpansEqual({ start, length: length2 }, span) && code === errorCode && !!relatedInformation && some(relatedInformation, (related) => related.code === Diagnostics.Did_you_mean_to_mark_this_function_as_async.code);\n  }\n  var fixId2, errorCodes2;\n  var init_addMissingAsync = __esm({\n    \"src/services/codefixes/addMissingAsync.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId2 = \"addMissingAsync\";\n      errorCodes2 = [\n        Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,\n        Diagnostics.Type_0_is_not_assignable_to_type_1.code,\n        Diagnostics.Type_0_is_not_comparable_to_type_1.code\n      ];\n      registerCodeFix({\n        fixIds: [fixId2],\n        errorCodes: errorCodes2,\n        getCodeActions: function getCodeActionsToAddMissingAsync(context) {\n          const { sourceFile, errorCode, cancellationToken, program, span } = context;\n          const diagnostic = find(program.getTypeChecker().getDiagnostics(sourceFile, cancellationToken), getIsMatchingAsyncError(span, errorCode));\n          const directSpan = diagnostic && diagnostic.relatedInformation && find(diagnostic.relatedInformation, (r) => r.code === Diagnostics.Did_you_mean_to_mark_this_function_as_async.code);\n          const decl = getFixableErrorSpanDeclaration(sourceFile, directSpan);\n          if (!decl) {\n            return;\n          }\n          const trackChanges = (cb) => ts_textChanges_exports.ChangeTracker.with(context, cb);\n          return [getFix(context, decl, trackChanges)];\n        },\n        getAllCodeActions: (context) => {\n          const { sourceFile } = context;\n          const fixedDeclarations = /* @__PURE__ */ new Set();\n          return codeFixAll(context, errorCodes2, (t, diagnostic) => {\n            const span = diagnostic.relatedInformation && find(diagnostic.relatedInformation, (r) => r.code === Diagnostics.Did_you_mean_to_mark_this_function_as_async.code);\n            const decl = getFixableErrorSpanDeclaration(sourceFile, span);\n            if (!decl) {\n              return;\n            }\n            const trackChanges = (cb) => (cb(t), []);\n            return getFix(context, decl, trackChanges, fixedDeclarations);\n          });\n        }\n      });\n    }\n  });\n  function getAwaitErrorSpanExpression(sourceFile, errorCode, span, cancellationToken, program) {\n    const expression = getFixableErrorSpanExpression(sourceFile, span);\n    return expression && isMissingAwaitError(sourceFile, errorCode, span, cancellationToken, program) && isInsideAwaitableBody(expression) ? expression : void 0;\n  }\n  function getDeclarationSiteFix(context, expression, errorCode, checker, trackChanges, fixedDeclarations) {\n    const { sourceFile, program, cancellationToken } = context;\n    const awaitableInitializers = findAwaitableInitializers(expression, sourceFile, cancellationToken, program, checker);\n    if (awaitableInitializers) {\n      const initializerChanges = trackChanges((t) => {\n        forEach(awaitableInitializers.initializers, ({ expression: expression2 }) => makeChange3(t, errorCode, sourceFile, checker, expression2, fixedDeclarations));\n        if (fixedDeclarations && awaitableInitializers.needsSecondPassForFixAll) {\n          makeChange3(t, errorCode, sourceFile, checker, expression, fixedDeclarations);\n        }\n      });\n      return createCodeFixActionWithoutFixAll(\"addMissingAwaitToInitializer\", initializerChanges, awaitableInitializers.initializers.length === 1 ? [Diagnostics.Add_await_to_initializer_for_0, awaitableInitializers.initializers[0].declarationSymbol.name] : Diagnostics.Add_await_to_initializers);\n    }\n  }\n  function getUseSiteFix(context, expression, errorCode, checker, trackChanges, fixedDeclarations) {\n    const changes = trackChanges((t) => makeChange3(t, errorCode, context.sourceFile, checker, expression, fixedDeclarations));\n    return createCodeFixAction(fixId3, changes, Diagnostics.Add_await, fixId3, Diagnostics.Fix_all_expressions_possibly_missing_await);\n  }\n  function isMissingAwaitError(sourceFile, errorCode, span, cancellationToken, program) {\n    const checker = program.getTypeChecker();\n    const diagnostics = checker.getDiagnostics(sourceFile, cancellationToken);\n    return some(diagnostics, ({ start, length: length2, relatedInformation, code }) => isNumber(start) && isNumber(length2) && textSpansEqual({ start, length: length2 }, span) && code === errorCode && !!relatedInformation && some(relatedInformation, (related) => related.code === Diagnostics.Did_you_forget_to_use_await.code));\n  }\n  function findAwaitableInitializers(expression, sourceFile, cancellationToken, program, checker) {\n    const identifiers = getIdentifiersFromErrorSpanExpression(expression, checker);\n    if (!identifiers) {\n      return;\n    }\n    let isCompleteFix = identifiers.isCompleteFix;\n    let initializers;\n    for (const identifier of identifiers.identifiers) {\n      const symbol = checker.getSymbolAtLocation(identifier);\n      if (!symbol) {\n        continue;\n      }\n      const declaration = tryCast(symbol.valueDeclaration, isVariableDeclaration);\n      const variableName = declaration && tryCast(declaration.name, isIdentifier);\n      const variableStatement = getAncestor(declaration, 240);\n      if (!declaration || !variableStatement || declaration.type || !declaration.initializer || variableStatement.getSourceFile() !== sourceFile || hasSyntacticModifier(variableStatement, 1) || !variableName || !isInsideAwaitableBody(declaration.initializer)) {\n        isCompleteFix = false;\n        continue;\n      }\n      const diagnostics = program.getSemanticDiagnostics(sourceFile, cancellationToken);\n      const isUsedElsewhere = ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(variableName, checker, sourceFile, (reference) => {\n        return identifier !== reference && !symbolReferenceIsAlsoMissingAwait(reference, diagnostics, sourceFile, checker);\n      });\n      if (isUsedElsewhere) {\n        isCompleteFix = false;\n        continue;\n      }\n      (initializers || (initializers = [])).push({\n        expression: declaration.initializer,\n        declarationSymbol: symbol\n      });\n    }\n    return initializers && {\n      initializers,\n      needsSecondPassForFixAll: !isCompleteFix\n    };\n  }\n  function getIdentifiersFromErrorSpanExpression(expression, checker) {\n    if (isPropertyAccessExpression(expression.parent) && isIdentifier(expression.parent.expression)) {\n      return { identifiers: [expression.parent.expression], isCompleteFix: true };\n    }\n    if (isIdentifier(expression)) {\n      return { identifiers: [expression], isCompleteFix: true };\n    }\n    if (isBinaryExpression(expression)) {\n      let sides;\n      let isCompleteFix = true;\n      for (const side of [expression.left, expression.right]) {\n        const type = checker.getTypeAtLocation(side);\n        if (checker.getPromisedTypeOfPromise(type)) {\n          if (!isIdentifier(side)) {\n            isCompleteFix = false;\n            continue;\n          }\n          (sides || (sides = [])).push(side);\n        }\n      }\n      return sides && { identifiers: sides, isCompleteFix };\n    }\n  }\n  function symbolReferenceIsAlsoMissingAwait(reference, diagnostics, sourceFile, checker) {\n    const errorNode = isPropertyAccessExpression(reference.parent) ? reference.parent.name : isBinaryExpression(reference.parent) ? reference.parent : reference;\n    const diagnostic = find(diagnostics, (diagnostic2) => diagnostic2.start === errorNode.getStart(sourceFile) && diagnostic2.start + diagnostic2.length === errorNode.getEnd());\n    return diagnostic && contains(errorCodes3, diagnostic.code) || checker.getTypeAtLocation(errorNode).flags & 1;\n  }\n  function isInsideAwaitableBody(node) {\n    return node.kind & 32768 || !!findAncestor(node, (ancestor) => ancestor.parent && isArrowFunction(ancestor.parent) && ancestor.parent.body === ancestor || isBlock(ancestor) && (ancestor.parent.kind === 259 || ancestor.parent.kind === 215 || ancestor.parent.kind === 216 || ancestor.parent.kind === 171));\n  }\n  function makeChange3(changeTracker, errorCode, sourceFile, checker, insertionSite, fixedDeclarations) {\n    if (isForOfStatement(insertionSite.parent) && !insertionSite.parent.awaitModifier) {\n      const exprType = checker.getTypeAtLocation(insertionSite);\n      const asyncIter = checker.getAsyncIterableType();\n      if (asyncIter && checker.isTypeAssignableTo(exprType, asyncIter)) {\n        const forOf = insertionSite.parent;\n        changeTracker.replaceNode(sourceFile, forOf, factory.updateForOfStatement(forOf, factory.createToken(133), forOf.initializer, forOf.expression, forOf.statement));\n        return;\n      }\n    }\n    if (isBinaryExpression(insertionSite)) {\n      for (const side of [insertionSite.left, insertionSite.right]) {\n        if (fixedDeclarations && isIdentifier(side)) {\n          const symbol = checker.getSymbolAtLocation(side);\n          if (symbol && fixedDeclarations.has(getSymbolId(symbol))) {\n            continue;\n          }\n        }\n        const type = checker.getTypeAtLocation(side);\n        const newNode = checker.getPromisedTypeOfPromise(type) ? factory.createAwaitExpression(side) : side;\n        changeTracker.replaceNode(sourceFile, side, newNode);\n      }\n    } else if (errorCode === propertyAccessCode && isPropertyAccessExpression(insertionSite.parent)) {\n      if (fixedDeclarations && isIdentifier(insertionSite.parent.expression)) {\n        const symbol = checker.getSymbolAtLocation(insertionSite.parent.expression);\n        if (symbol && fixedDeclarations.has(getSymbolId(symbol))) {\n          return;\n        }\n      }\n      changeTracker.replaceNode(sourceFile, insertionSite.parent.expression, factory.createParenthesizedExpression(factory.createAwaitExpression(insertionSite.parent.expression)));\n      insertLeadingSemicolonIfNeeded(changeTracker, insertionSite.parent.expression, sourceFile);\n    } else if (contains(callableConstructableErrorCodes, errorCode) && isCallOrNewExpression(insertionSite.parent)) {\n      if (fixedDeclarations && isIdentifier(insertionSite)) {\n        const symbol = checker.getSymbolAtLocation(insertionSite);\n        if (symbol && fixedDeclarations.has(getSymbolId(symbol))) {\n          return;\n        }\n      }\n      changeTracker.replaceNode(sourceFile, insertionSite, factory.createParenthesizedExpression(factory.createAwaitExpression(insertionSite)));\n      insertLeadingSemicolonIfNeeded(changeTracker, insertionSite, sourceFile);\n    } else {\n      if (fixedDeclarations && isVariableDeclaration(insertionSite.parent) && isIdentifier(insertionSite.parent.name)) {\n        const symbol = checker.getSymbolAtLocation(insertionSite.parent.name);\n        if (symbol && !tryAddToSet(fixedDeclarations, getSymbolId(symbol))) {\n          return;\n        }\n      }\n      changeTracker.replaceNode(sourceFile, insertionSite, factory.createAwaitExpression(insertionSite));\n    }\n  }\n  function insertLeadingSemicolonIfNeeded(changeTracker, beforeNode, sourceFile) {\n    const precedingToken = findPrecedingToken(beforeNode.pos, sourceFile);\n    if (precedingToken && positionIsASICandidate(precedingToken.end, precedingToken.parent, sourceFile)) {\n      changeTracker.insertText(sourceFile, beforeNode.getStart(sourceFile), \";\");\n    }\n  }\n  var fixId3, propertyAccessCode, callableConstructableErrorCodes, errorCodes3;\n  var init_addMissingAwait = __esm({\n    \"src/services/codefixes/addMissingAwait.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId3 = \"addMissingAwait\";\n      propertyAccessCode = Diagnostics.Property_0_does_not_exist_on_type_1.code;\n      callableConstructableErrorCodes = [\n        Diagnostics.This_expression_is_not_callable.code,\n        Diagnostics.This_expression_is_not_constructable.code\n      ];\n      errorCodes3 = [\n        Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,\n        Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,\n        Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,\n        Diagnostics.Operator_0_cannot_be_applied_to_type_1.code,\n        Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code,\n        Diagnostics.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,\n        Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined.code,\n        Diagnostics.Type_0_is_not_an_array_type.code,\n        Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code,\n        Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,\n        Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,\n        Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,\n        Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,\n        Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,\n        Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,\n        propertyAccessCode,\n        ...callableConstructableErrorCodes\n      ];\n      registerCodeFix({\n        fixIds: [fixId3],\n        errorCodes: errorCodes3,\n        getCodeActions: function getCodeActionsToAddMissingAwait(context) {\n          const { sourceFile, errorCode, span, cancellationToken, program } = context;\n          const expression = getAwaitErrorSpanExpression(sourceFile, errorCode, span, cancellationToken, program);\n          if (!expression) {\n            return;\n          }\n          const checker = context.program.getTypeChecker();\n          const trackChanges = (cb) => ts_textChanges_exports.ChangeTracker.with(context, cb);\n          return compact([\n            getDeclarationSiteFix(context, expression, errorCode, checker, trackChanges),\n            getUseSiteFix(context, expression, errorCode, checker, trackChanges)\n          ]);\n        },\n        getAllCodeActions: (context) => {\n          const { sourceFile, program, cancellationToken } = context;\n          const checker = context.program.getTypeChecker();\n          const fixedDeclarations = /* @__PURE__ */ new Set();\n          return codeFixAll(context, errorCodes3, (t, diagnostic) => {\n            const expression = getAwaitErrorSpanExpression(sourceFile, diagnostic.code, diagnostic, cancellationToken, program);\n            if (!expression) {\n              return;\n            }\n            const trackChanges = (cb) => (cb(t), []);\n            return getDeclarationSiteFix(context, expression, diagnostic.code, checker, trackChanges, fixedDeclarations) || getUseSiteFix(context, expression, diagnostic.code, checker, trackChanges, fixedDeclarations);\n          });\n        }\n      });\n    }\n  });\n  function makeChange4(changeTracker, sourceFile, pos, program, fixedNodes) {\n    const token = getTokenAtPosition(sourceFile, pos);\n    const forInitializer = findAncestor(token, (node) => isForInOrOfStatement(node.parent) ? node.parent.initializer === node : isPossiblyPartOfDestructuring(node) ? false : \"quit\");\n    if (forInitializer)\n      return applyChange(changeTracker, forInitializer, sourceFile, fixedNodes);\n    const parent2 = token.parent;\n    if (isBinaryExpression(parent2) && parent2.operatorToken.kind === 63 && isExpressionStatement(parent2.parent)) {\n      return applyChange(changeTracker, token, sourceFile, fixedNodes);\n    }\n    if (isArrayLiteralExpression(parent2)) {\n      const checker = program.getTypeChecker();\n      if (!every(parent2.elements, (element) => arrayElementCouldBeVariableDeclaration(element, checker))) {\n        return;\n      }\n      return applyChange(changeTracker, parent2, sourceFile, fixedNodes);\n    }\n    const commaExpression = findAncestor(token, (node) => isExpressionStatement(node.parent) ? true : isPossiblyPartOfCommaSeperatedInitializer(node) ? false : \"quit\");\n    if (commaExpression) {\n      const checker = program.getTypeChecker();\n      if (!expressionCouldBeVariableDeclaration(commaExpression, checker)) {\n        return;\n      }\n      return applyChange(changeTracker, commaExpression, sourceFile, fixedNodes);\n    }\n  }\n  function applyChange(changeTracker, initializer, sourceFile, fixedNodes) {\n    if (!fixedNodes || tryAddToSet(fixedNodes, initializer)) {\n      changeTracker.insertModifierBefore(sourceFile, 85, initializer);\n    }\n  }\n  function isPossiblyPartOfDestructuring(node) {\n    switch (node.kind) {\n      case 79:\n      case 206:\n      case 207:\n      case 299:\n      case 300:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function arrayElementCouldBeVariableDeclaration(expression, checker) {\n    const identifier = isIdentifier(expression) ? expression : isAssignmentExpression(expression, true) && isIdentifier(expression.left) ? expression.left : void 0;\n    return !!identifier && !checker.getSymbolAtLocation(identifier);\n  }\n  function isPossiblyPartOfCommaSeperatedInitializer(node) {\n    switch (node.kind) {\n      case 79:\n      case 223:\n      case 27:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function expressionCouldBeVariableDeclaration(expression, checker) {\n    if (!isBinaryExpression(expression)) {\n      return false;\n    }\n    if (expression.operatorToken.kind === 27) {\n      return every([expression.left, expression.right], (expression2) => expressionCouldBeVariableDeclaration(expression2, checker));\n    }\n    return expression.operatorToken.kind === 63 && isIdentifier(expression.left) && !checker.getSymbolAtLocation(expression.left);\n  }\n  var fixId4, errorCodes4;\n  var init_addMissingConst = __esm({\n    \"src/services/codefixes/addMissingConst.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId4 = \"addMissingConst\";\n      errorCodes4 = [\n        Diagnostics.Cannot_find_name_0.code,\n        Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code\n      ];\n      registerCodeFix({\n        errorCodes: errorCodes4,\n        getCodeActions: function getCodeActionsToAddMissingConst(context) {\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => makeChange4(t, context.sourceFile, context.span.start, context.program));\n          if (changes.length > 0) {\n            return [createCodeFixAction(fixId4, changes, Diagnostics.Add_const_to_unresolved_variable, fixId4, Diagnostics.Add_const_to_all_unresolved_variables)];\n          }\n        },\n        fixIds: [fixId4],\n        getAllCodeActions: (context) => {\n          const fixedNodes = /* @__PURE__ */ new Set();\n          return codeFixAll(context, errorCodes4, (changes, diag2) => makeChange4(changes, diag2.file, diag2.start, context.program, fixedNodes));\n        }\n      });\n    }\n  });\n  function makeChange5(changeTracker, sourceFile, pos, fixedNodes) {\n    const token = getTokenAtPosition(sourceFile, pos);\n    if (!isIdentifier(token)) {\n      return;\n    }\n    const declaration = token.parent;\n    if (declaration.kind === 169 && (!fixedNodes || tryAddToSet(fixedNodes, declaration))) {\n      changeTracker.insertModifierBefore(sourceFile, 136, declaration);\n    }\n  }\n  var fixId5, errorCodes5;\n  var init_addMissingDeclareProperty = __esm({\n    \"src/services/codefixes/addMissingDeclareProperty.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId5 = \"addMissingDeclareProperty\";\n      errorCodes5 = [\n        Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code\n      ];\n      registerCodeFix({\n        errorCodes: errorCodes5,\n        getCodeActions: function getCodeActionsToAddMissingDeclareOnProperty(context) {\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => makeChange5(t, context.sourceFile, context.span.start));\n          if (changes.length > 0) {\n            return [createCodeFixAction(fixId5, changes, Diagnostics.Prefix_with_declare, fixId5, Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)];\n          }\n        },\n        fixIds: [fixId5],\n        getAllCodeActions: (context) => {\n          const fixedNodes = /* @__PURE__ */ new Set();\n          return codeFixAll(context, errorCodes5, (changes, diag2) => makeChange5(changes, diag2.file, diag2.start, fixedNodes));\n        }\n      });\n    }\n  });\n  function makeChange6(changeTracker, sourceFile, pos) {\n    const token = getTokenAtPosition(sourceFile, pos);\n    const decorator = findAncestor(token, isDecorator);\n    Debug.assert(!!decorator, \"Expected position to be owned by a decorator.\");\n    const replacement = factory.createCallExpression(decorator.expression, void 0, void 0);\n    changeTracker.replaceNode(sourceFile, decorator.expression, replacement);\n  }\n  var fixId6, errorCodes6;\n  var init_addMissingInvocationForDecorator = __esm({\n    \"src/services/codefixes/addMissingInvocationForDecorator.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId6 = \"addMissingInvocationForDecorator\";\n      errorCodes6 = [Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];\n      registerCodeFix({\n        errorCodes: errorCodes6,\n        getCodeActions: function getCodeActionsToAddMissingInvocationForDecorator(context) {\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => makeChange6(t, context.sourceFile, context.span.start));\n          return [createCodeFixAction(fixId6, changes, Diagnostics.Call_decorator_expression, fixId6, Diagnostics.Add_to_all_uncalled_decorators)];\n        },\n        fixIds: [fixId6],\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes6, (changes, diag2) => makeChange6(changes, diag2.file, diag2.start))\n      });\n    }\n  });\n  function makeChange7(changeTracker, sourceFile, pos) {\n    const token = getTokenAtPosition(sourceFile, pos);\n    const param = token.parent;\n    if (!isParameter(param)) {\n      return Debug.fail(\"Tried to add a parameter name to a non-parameter: \" + Debug.formatSyntaxKind(token.kind));\n    }\n    const i = param.parent.parameters.indexOf(param);\n    Debug.assert(!param.type, \"Tried to add a parameter name to a parameter that already had one.\");\n    Debug.assert(i > -1, \"Parameter not found in parent parameter list.\");\n    const typeNode = factory.createTypeReferenceNode(param.name, void 0);\n    const replacement = factory.createParameterDeclaration(param.modifiers, param.dotDotDotToken, \"arg\" + i, param.questionToken, param.dotDotDotToken ? factory.createArrayTypeNode(typeNode) : typeNode, param.initializer);\n    changeTracker.replaceNode(sourceFile, param, replacement);\n  }\n  var fixId7, errorCodes7;\n  var init_addNameToNamelessParameter = __esm({\n    \"src/services/codefixes/addNameToNamelessParameter.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId7 = \"addNameToNamelessParameter\";\n      errorCodes7 = [Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];\n      registerCodeFix({\n        errorCodes: errorCodes7,\n        getCodeActions: function getCodeActionsToAddNameToNamelessParameter(context) {\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => makeChange7(t, context.sourceFile, context.span.start));\n          return [createCodeFixAction(fixId7, changes, Diagnostics.Add_parameter_name, fixId7, Diagnostics.Add_names_to_all_parameters_without_names)];\n        },\n        fixIds: [fixId7],\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes7, (changes, diag2) => makeChange7(changes, diag2.file, diag2.start))\n      });\n    }\n  });\n  function getPropertiesToAdd(file, span, checker) {\n    var _a2, _b;\n    const sourceTarget = getSourceTarget(getFixableErrorSpanExpression(file, span), checker);\n    if (!sourceTarget) {\n      return emptyArray;\n    }\n    const { source: sourceNode, target: targetNode } = sourceTarget;\n    const target = shouldUseParentTypeOfProperty(sourceNode, targetNode, checker) ? checker.getTypeAtLocation(targetNode.expression) : checker.getTypeAtLocation(targetNode);\n    if ((_b = (_a2 = target.symbol) == null ? void 0 : _a2.declarations) == null ? void 0 : _b.some((d) => getSourceFileOfNode(d).fileName.match(/\\.d\\.ts$/))) {\n      return emptyArray;\n    }\n    return checker.getExactOptionalProperties(target);\n  }\n  function shouldUseParentTypeOfProperty(sourceNode, targetNode, checker) {\n    return isPropertyAccessExpression(targetNode) && !!checker.getExactOptionalProperties(checker.getTypeAtLocation(targetNode.expression)).length && checker.getTypeAtLocation(sourceNode) === checker.getUndefinedType();\n  }\n  function getSourceTarget(errorNode, checker) {\n    var _a2;\n    if (!errorNode) {\n      return void 0;\n    } else if (isBinaryExpression(errorNode.parent) && errorNode.parent.operatorToken.kind === 63) {\n      return { source: errorNode.parent.right, target: errorNode.parent.left };\n    } else if (isVariableDeclaration(errorNode.parent) && errorNode.parent.initializer) {\n      return { source: errorNode.parent.initializer, target: errorNode.parent.name };\n    } else if (isCallExpression(errorNode.parent)) {\n      const n = checker.getSymbolAtLocation(errorNode.parent.expression);\n      if (!(n == null ? void 0 : n.valueDeclaration) || !isFunctionLikeKind(n.valueDeclaration.kind))\n        return void 0;\n      if (!isExpression(errorNode))\n        return void 0;\n      const i = errorNode.parent.arguments.indexOf(errorNode);\n      if (i === -1)\n        return void 0;\n      const name = n.valueDeclaration.parameters[i].name;\n      if (isIdentifier(name))\n        return { source: errorNode, target: name };\n    } else if (isPropertyAssignment(errorNode.parent) && isIdentifier(errorNode.parent.name) || isShorthandPropertyAssignment(errorNode.parent)) {\n      const parentTarget = getSourceTarget(errorNode.parent.parent, checker);\n      if (!parentTarget)\n        return void 0;\n      const prop = checker.getPropertyOfType(checker.getTypeAtLocation(parentTarget.target), errorNode.parent.name.text);\n      const declaration = (_a2 = prop == null ? void 0 : prop.declarations) == null ? void 0 : _a2[0];\n      if (!declaration)\n        return void 0;\n      return {\n        source: isPropertyAssignment(errorNode.parent) ? errorNode.parent.initializer : errorNode.parent.name,\n        target: declaration\n      };\n    }\n    return void 0;\n  }\n  function addUndefinedToOptionalProperty(changes, toAdd) {\n    for (const add of toAdd) {\n      const d = add.valueDeclaration;\n      if (d && (isPropertySignature(d) || isPropertyDeclaration(d)) && d.type) {\n        const t = factory.createUnionTypeNode([\n          ...d.type.kind === 189 ? d.type.types : [d.type],\n          factory.createTypeReferenceNode(\"undefined\")\n        ]);\n        changes.replaceNode(d.getSourceFile(), d.type, t);\n      }\n    }\n  }\n  var addOptionalPropertyUndefined, errorCodes8;\n  var init_addOptionalPropertyUndefined = __esm({\n    \"src/services/codefixes/addOptionalPropertyUndefined.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      addOptionalPropertyUndefined = \"addOptionalPropertyUndefined\";\n      errorCodes8 = [\n        Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,\n        Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,\n        Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code\n      ];\n      registerCodeFix({\n        errorCodes: errorCodes8,\n        getCodeActions(context) {\n          const typeChecker = context.program.getTypeChecker();\n          const toAdd = getPropertiesToAdd(context.sourceFile, context.span, typeChecker);\n          if (!toAdd.length) {\n            return void 0;\n          }\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => addUndefinedToOptionalProperty(t, toAdd));\n          return [createCodeFixActionWithoutFixAll(addOptionalPropertyUndefined, changes, Diagnostics.Add_undefined_to_optional_property_type)];\n        },\n        fixIds: [addOptionalPropertyUndefined]\n      });\n    }\n  });\n  function getDeclaration(file, pos) {\n    const name = getTokenAtPosition(file, pos);\n    return tryCast(isParameter(name.parent) ? name.parent.parent : name.parent, parameterShouldGetTypeFromJSDoc);\n  }\n  function parameterShouldGetTypeFromJSDoc(node) {\n    return isDeclarationWithType(node) && hasUsableJSDoc(node);\n  }\n  function hasUsableJSDoc(decl) {\n    return isFunctionLikeDeclaration(decl) ? decl.parameters.some(hasUsableJSDoc) || !decl.type && !!getJSDocReturnType(decl) : !decl.type && !!getJSDocType(decl);\n  }\n  function doChange(changes, sourceFile, decl) {\n    if (isFunctionLikeDeclaration(decl) && (getJSDocReturnType(decl) || decl.parameters.some((p) => !!getJSDocType(p)))) {\n      if (!decl.typeParameters) {\n        const typeParameters = getJSDocTypeParameterDeclarations(decl);\n        if (typeParameters.length)\n          changes.insertTypeParameters(sourceFile, decl, typeParameters);\n      }\n      const needParens = isArrowFunction(decl) && !findChildOfKind(decl, 20, sourceFile);\n      if (needParens)\n        changes.insertNodeBefore(sourceFile, first(decl.parameters), factory.createToken(20));\n      for (const param of decl.parameters) {\n        if (!param.type) {\n          const paramType = getJSDocType(param);\n          if (paramType)\n            changes.tryInsertTypeAnnotation(sourceFile, param, visitNode(paramType, transformJSDocType, isTypeNode));\n        }\n      }\n      if (needParens)\n        changes.insertNodeAfter(sourceFile, last(decl.parameters), factory.createToken(21));\n      if (!decl.type) {\n        const returnType = getJSDocReturnType(decl);\n        if (returnType)\n          changes.tryInsertTypeAnnotation(sourceFile, decl, visitNode(returnType, transformJSDocType, isTypeNode));\n      }\n    } else {\n      const jsdocType = Debug.checkDefined(getJSDocType(decl), \"A JSDocType for this declaration should exist\");\n      Debug.assert(!decl.type, \"The JSDocType decl should have a type\");\n      changes.tryInsertTypeAnnotation(sourceFile, decl, visitNode(jsdocType, transformJSDocType, isTypeNode));\n    }\n  }\n  function isDeclarationWithType(node) {\n    return isFunctionLikeDeclaration(node) || node.kind === 257 || node.kind === 168 || node.kind === 169;\n  }\n  function transformJSDocType(node) {\n    switch (node.kind) {\n      case 315:\n      case 316:\n        return factory.createTypeReferenceNode(\"any\", emptyArray);\n      case 319:\n        return transformJSDocOptionalType(node);\n      case 318:\n        return transformJSDocType(node.type);\n      case 317:\n        return transformJSDocNullableType(node);\n      case 321:\n        return transformJSDocVariadicType(node);\n      case 320:\n        return transformJSDocFunctionType(node);\n      case 180:\n        return transformJSDocTypeReference(node);\n      case 325:\n        return transformJSDocTypeLiteral(node);\n      default:\n        const visited = visitEachChild(node, transformJSDocType, nullTransformationContext);\n        setEmitFlags(visited, 1);\n        return visited;\n    }\n  }\n  function transformJSDocTypeLiteral(node) {\n    const typeNode = factory.createTypeLiteralNode(map(node.jsDocPropertyTags, (tag) => factory.createPropertySignature(void 0, isIdentifier(tag.name) ? tag.name : tag.name.right, isOptionalJSDocPropertyLikeTag(tag) ? factory.createToken(57) : void 0, tag.typeExpression && visitNode(tag.typeExpression.type, transformJSDocType, isTypeNode) || factory.createKeywordTypeNode(131))));\n    setEmitFlags(typeNode, 1);\n    return typeNode;\n  }\n  function transformJSDocOptionalType(node) {\n    return factory.createUnionTypeNode([visitNode(node.type, transformJSDocType, isTypeNode), factory.createTypeReferenceNode(\"undefined\", emptyArray)]);\n  }\n  function transformJSDocNullableType(node) {\n    return factory.createUnionTypeNode([visitNode(node.type, transformJSDocType, isTypeNode), factory.createTypeReferenceNode(\"null\", emptyArray)]);\n  }\n  function transformJSDocVariadicType(node) {\n    return factory.createArrayTypeNode(visitNode(node.type, transformJSDocType, isTypeNode));\n  }\n  function transformJSDocFunctionType(node) {\n    var _a2;\n    return factory.createFunctionTypeNode(emptyArray, node.parameters.map(transformJSDocParameter), (_a2 = node.type) != null ? _a2 : factory.createKeywordTypeNode(131));\n  }\n  function transformJSDocParameter(node) {\n    const index = node.parent.parameters.indexOf(node);\n    const isRest = node.type.kind === 321 && index === node.parent.parameters.length - 1;\n    const name = node.name || (isRest ? \"rest\" : \"arg\" + index);\n    const dotdotdot = isRest ? factory.createToken(25) : node.dotDotDotToken;\n    return factory.createParameterDeclaration(node.modifiers, dotdotdot, name, node.questionToken, visitNode(node.type, transformJSDocType, isTypeNode), node.initializer);\n  }\n  function transformJSDocTypeReference(node) {\n    let name = node.typeName;\n    let args = node.typeArguments;\n    if (isIdentifier(node.typeName)) {\n      if (isJSDocIndexSignature(node)) {\n        return transformJSDocIndexSignature(node);\n      }\n      let text = node.typeName.text;\n      switch (node.typeName.text) {\n        case \"String\":\n        case \"Boolean\":\n        case \"Object\":\n        case \"Number\":\n          text = text.toLowerCase();\n          break;\n        case \"array\":\n        case \"date\":\n        case \"promise\":\n          text = text[0].toUpperCase() + text.slice(1);\n          break;\n      }\n      name = factory.createIdentifier(text);\n      if ((text === \"Array\" || text === \"Promise\") && !node.typeArguments) {\n        args = factory.createNodeArray([factory.createTypeReferenceNode(\"any\", emptyArray)]);\n      } else {\n        args = visitNodes2(node.typeArguments, transformJSDocType, isTypeNode);\n      }\n    }\n    return factory.createTypeReferenceNode(name, args);\n  }\n  function transformJSDocIndexSignature(node) {\n    const index = factory.createParameterDeclaration(void 0, void 0, node.typeArguments[0].kind === 148 ? \"n\" : \"s\", void 0, factory.createTypeReferenceNode(node.typeArguments[0].kind === 148 ? \"number\" : \"string\", []), void 0);\n    const indexSignature = factory.createTypeLiteralNode([factory.createIndexSignature(void 0, [index], node.typeArguments[1])]);\n    setEmitFlags(indexSignature, 1);\n    return indexSignature;\n  }\n  var fixId8, errorCodes9;\n  var init_annotateWithTypeFromJSDoc = __esm({\n    \"src/services/codefixes/annotateWithTypeFromJSDoc.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId8 = \"annotateWithTypeFromJSDoc\";\n      errorCodes9 = [Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];\n      registerCodeFix({\n        errorCodes: errorCodes9,\n        getCodeActions(context) {\n          const decl = getDeclaration(context.sourceFile, context.span.start);\n          if (!decl)\n            return;\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange(t, context.sourceFile, decl));\n          return [createCodeFixAction(fixId8, changes, Diagnostics.Annotate_with_type_from_JSDoc, fixId8, Diagnostics.Annotate_everything_with_types_from_JSDoc)];\n        },\n        fixIds: [fixId8],\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes9, (changes, diag2) => {\n          const decl = getDeclaration(diag2.file, diag2.start);\n          if (decl)\n            doChange(changes, diag2.file, decl);\n        })\n      });\n    }\n  });\n  function doChange2(changes, sourceFile, position, checker, preferences, compilerOptions) {\n    const ctorSymbol = checker.getSymbolAtLocation(getTokenAtPosition(sourceFile, position));\n    if (!ctorSymbol || !ctorSymbol.valueDeclaration || !(ctorSymbol.flags & (16 | 3))) {\n      return void 0;\n    }\n    const ctorDeclaration = ctorSymbol.valueDeclaration;\n    if (isFunctionDeclaration(ctorDeclaration) || isFunctionExpression(ctorDeclaration)) {\n      changes.replaceNode(sourceFile, ctorDeclaration, createClassFromFunction(ctorDeclaration));\n    } else if (isVariableDeclaration(ctorDeclaration)) {\n      const classDeclaration = createClassFromVariableDeclaration(ctorDeclaration);\n      if (!classDeclaration) {\n        return void 0;\n      }\n      const ancestor = ctorDeclaration.parent.parent;\n      if (isVariableDeclarationList(ctorDeclaration.parent) && ctorDeclaration.parent.declarations.length > 1) {\n        changes.delete(sourceFile, ctorDeclaration);\n        changes.insertNodeAfter(sourceFile, ancestor, classDeclaration);\n      } else {\n        changes.replaceNode(sourceFile, ancestor, classDeclaration);\n      }\n    }\n    function createClassElementsFromSymbol(symbol) {\n      const memberElements = [];\n      if (symbol.exports) {\n        symbol.exports.forEach((member) => {\n          if (member.name === \"prototype\" && member.declarations) {\n            const firstDeclaration = member.declarations[0];\n            if (member.declarations.length === 1 && isPropertyAccessExpression(firstDeclaration) && isBinaryExpression(firstDeclaration.parent) && firstDeclaration.parent.operatorToken.kind === 63 && isObjectLiteralExpression(firstDeclaration.parent.right)) {\n              const prototypes = firstDeclaration.parent.right;\n              createClassElement(prototypes.symbol, void 0, memberElements);\n            }\n          } else {\n            createClassElement(member, [factory.createToken(124)], memberElements);\n          }\n        });\n      }\n      if (symbol.members) {\n        symbol.members.forEach((member, key) => {\n          var _a2, _b, _c, _d;\n          if (key === \"constructor\" && member.valueDeclaration) {\n            const prototypeAssignment = (_d = (_c = (_b = (_a2 = symbol.exports) == null ? void 0 : _a2.get(\"prototype\")) == null ? void 0 : _b.declarations) == null ? void 0 : _c[0]) == null ? void 0 : _d.parent;\n            if (prototypeAssignment && isBinaryExpression(prototypeAssignment) && isObjectLiteralExpression(prototypeAssignment.right) && some(prototypeAssignment.right.properties, isConstructorAssignment)) {\n            } else {\n              changes.delete(sourceFile, member.valueDeclaration.parent);\n            }\n            return;\n          }\n          createClassElement(member, void 0, memberElements);\n        });\n      }\n      return memberElements;\n      function shouldConvertDeclaration(_target, source) {\n        if (isAccessExpression(_target)) {\n          if (isPropertyAccessExpression(_target) && isConstructorAssignment(_target))\n            return true;\n          return isFunctionLike(source);\n        } else {\n          return every(_target.properties, (property) => {\n            if (isMethodDeclaration(property) || isGetOrSetAccessorDeclaration(property))\n              return true;\n            if (isPropertyAssignment(property) && isFunctionExpression(property.initializer) && !!property.name)\n              return true;\n            if (isConstructorAssignment(property))\n              return true;\n            return false;\n          });\n        }\n      }\n      function createClassElement(symbol2, modifiers, members) {\n        if (!(symbol2.flags & 8192) && !(symbol2.flags & 4096)) {\n          return;\n        }\n        const memberDeclaration = symbol2.valueDeclaration;\n        const assignmentBinaryExpression = memberDeclaration.parent;\n        const assignmentExpr = assignmentBinaryExpression.right;\n        if (!shouldConvertDeclaration(memberDeclaration, assignmentExpr)) {\n          return;\n        }\n        if (some(members, (m) => {\n          const name = getNameOfDeclaration(m);\n          if (name && isIdentifier(name) && idText(name) === symbolName(symbol2)) {\n            return true;\n          }\n          return false;\n        })) {\n          return;\n        }\n        const nodeToDelete = assignmentBinaryExpression.parent && assignmentBinaryExpression.parent.kind === 241 ? assignmentBinaryExpression.parent : assignmentBinaryExpression;\n        changes.delete(sourceFile, nodeToDelete);\n        if (!assignmentExpr) {\n          members.push(factory.createPropertyDeclaration(modifiers, symbol2.name, void 0, void 0, void 0));\n          return;\n        }\n        if (isAccessExpression(memberDeclaration) && (isFunctionExpression(assignmentExpr) || isArrowFunction(assignmentExpr))) {\n          const quotePreference = getQuotePreference(sourceFile, preferences);\n          const name = tryGetPropertyName(memberDeclaration, compilerOptions, quotePreference);\n          if (name) {\n            createFunctionLikeExpressionMember(members, assignmentExpr, name);\n          }\n          return;\n        } else if (isObjectLiteralExpression(assignmentExpr)) {\n          forEach(assignmentExpr.properties, (property) => {\n            if (isMethodDeclaration(property) || isGetOrSetAccessorDeclaration(property)) {\n              members.push(property);\n            }\n            if (isPropertyAssignment(property) && isFunctionExpression(property.initializer)) {\n              createFunctionLikeExpressionMember(members, property.initializer, property.name);\n            }\n            if (isConstructorAssignment(property))\n              return;\n            return;\n          });\n          return;\n        } else {\n          if (isSourceFileJS(sourceFile))\n            return;\n          if (!isPropertyAccessExpression(memberDeclaration))\n            return;\n          const prop = factory.createPropertyDeclaration(modifiers, memberDeclaration.name, void 0, void 0, assignmentExpr);\n          copyLeadingComments(assignmentBinaryExpression.parent, prop, sourceFile);\n          members.push(prop);\n          return;\n        }\n        function createFunctionLikeExpressionMember(members2, expression, name) {\n          if (isFunctionExpression(expression))\n            return createFunctionExpressionMember(members2, expression, name);\n          else\n            return createArrowFunctionExpressionMember(members2, expression, name);\n        }\n        function createFunctionExpressionMember(members2, functionExpression, name) {\n          const fullModifiers = concatenate(modifiers, getModifierKindFromSource(functionExpression, 132));\n          const method = factory.createMethodDeclaration(fullModifiers, void 0, name, void 0, void 0, functionExpression.parameters, void 0, functionExpression.body);\n          copyLeadingComments(assignmentBinaryExpression, method, sourceFile);\n          members2.push(method);\n          return;\n        }\n        function createArrowFunctionExpressionMember(members2, arrowFunction, name) {\n          const arrowFunctionBody = arrowFunction.body;\n          let bodyBlock;\n          if (arrowFunctionBody.kind === 238) {\n            bodyBlock = arrowFunctionBody;\n          } else {\n            bodyBlock = factory.createBlock([factory.createReturnStatement(arrowFunctionBody)]);\n          }\n          const fullModifiers = concatenate(modifiers, getModifierKindFromSource(arrowFunction, 132));\n          const method = factory.createMethodDeclaration(fullModifiers, void 0, name, void 0, void 0, arrowFunction.parameters, void 0, bodyBlock);\n          copyLeadingComments(assignmentBinaryExpression, method, sourceFile);\n          members2.push(method);\n        }\n      }\n    }\n    function createClassFromVariableDeclaration(node) {\n      const initializer = node.initializer;\n      if (!initializer || !isFunctionExpression(initializer) || !isIdentifier(node.name)) {\n        return void 0;\n      }\n      const memberElements = createClassElementsFromSymbol(node.symbol);\n      if (initializer.body) {\n        memberElements.unshift(factory.createConstructorDeclaration(void 0, initializer.parameters, initializer.body));\n      }\n      const modifiers = getModifierKindFromSource(node.parent.parent, 93);\n      const cls = factory.createClassDeclaration(modifiers, node.name, void 0, void 0, memberElements);\n      return cls;\n    }\n    function createClassFromFunction(node) {\n      const memberElements = createClassElementsFromSymbol(ctorSymbol);\n      if (node.body) {\n        memberElements.unshift(factory.createConstructorDeclaration(void 0, node.parameters, node.body));\n      }\n      const modifiers = getModifierKindFromSource(node, 93);\n      const cls = factory.createClassDeclaration(modifiers, node.name, void 0, void 0, memberElements);\n      return cls;\n    }\n  }\n  function getModifierKindFromSource(source, kind) {\n    return canHaveModifiers(source) ? filter(source.modifiers, (modifier) => modifier.kind === kind) : void 0;\n  }\n  function isConstructorAssignment(x) {\n    if (!x.name)\n      return false;\n    if (isIdentifier(x.name) && x.name.text === \"constructor\")\n      return true;\n    return false;\n  }\n  function tryGetPropertyName(node, compilerOptions, quotePreference) {\n    if (isPropertyAccessExpression(node)) {\n      return node.name;\n    }\n    const propName = node.argumentExpression;\n    if (isNumericLiteral(propName)) {\n      return propName;\n    }\n    if (isStringLiteralLike(propName)) {\n      return isIdentifierText(propName.text, getEmitScriptTarget(compilerOptions)) ? factory.createIdentifier(propName.text) : isNoSubstitutionTemplateLiteral(propName) ? factory.createStringLiteral(propName.text, quotePreference === 0) : propName;\n    }\n    return void 0;\n  }\n  var fixId9, errorCodes10;\n  var init_convertFunctionToEs6Class = __esm({\n    \"src/services/codefixes/convertFunctionToEs6Class.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId9 = \"convertFunctionToEs6Class\";\n      errorCodes10 = [Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];\n      registerCodeFix({\n        errorCodes: errorCodes10,\n        getCodeActions(context) {\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange2(t, context.sourceFile, context.span.start, context.program.getTypeChecker(), context.preferences, context.program.getCompilerOptions()));\n          return [createCodeFixAction(fixId9, changes, Diagnostics.Convert_function_to_an_ES2015_class, fixId9, Diagnostics.Convert_all_constructor_functions_to_classes)];\n        },\n        fixIds: [fixId9],\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes10, (changes, err) => doChange2(changes, err.file, err.start, context.program.getTypeChecker(), context.preferences, context.program.getCompilerOptions()))\n      });\n    }\n  });\n  function convertToAsyncFunction(changes, sourceFile, position, checker) {\n    const tokenAtPosition = getTokenAtPosition(sourceFile, position);\n    let functionToConvert;\n    if (isIdentifier(tokenAtPosition) && isVariableDeclaration(tokenAtPosition.parent) && tokenAtPosition.parent.initializer && isFunctionLikeDeclaration(tokenAtPosition.parent.initializer)) {\n      functionToConvert = tokenAtPosition.parent.initializer;\n    } else {\n      functionToConvert = tryCast(getContainingFunction(getTokenAtPosition(sourceFile, position)), canBeConvertedToAsync);\n    }\n    if (!functionToConvert) {\n      return;\n    }\n    const synthNamesMap = /* @__PURE__ */ new Map();\n    const isInJavascript = isInJSFile(functionToConvert);\n    const setOfExpressionsToReturn = getAllPromiseExpressionsToReturn(functionToConvert, checker);\n    const functionToConvertRenamed = renameCollidingVarNames(functionToConvert, checker, synthNamesMap);\n    if (!returnsPromise(functionToConvertRenamed, checker)) {\n      return;\n    }\n    const returnStatements = functionToConvertRenamed.body && isBlock(functionToConvertRenamed.body) ? getReturnStatementsWithPromiseHandlers(functionToConvertRenamed.body, checker) : emptyArray;\n    const transformer = { checker, synthNamesMap, setOfExpressionsToReturn, isInJSFile: isInJavascript };\n    if (!returnStatements.length) {\n      return;\n    }\n    const pos = skipTrivia(sourceFile.text, moveRangePastModifiers(functionToConvert).pos);\n    changes.insertModifierAt(sourceFile, pos, 132, { suffix: \" \" });\n    for (const returnStatement of returnStatements) {\n      forEachChild(returnStatement, function visit(node) {\n        if (isCallExpression(node)) {\n          const newNodes = transformExpression(node, node, transformer, false);\n          if (hasFailed()) {\n            return true;\n          }\n          changes.replaceNodeWithNodes(sourceFile, returnStatement, newNodes);\n        } else if (!isFunctionLike(node)) {\n          forEachChild(node, visit);\n          if (hasFailed()) {\n            return true;\n          }\n        }\n      });\n      if (hasFailed()) {\n        return;\n      }\n    }\n  }\n  function getReturnStatementsWithPromiseHandlers(body, checker) {\n    const res = [];\n    forEachReturnStatement(body, (ret) => {\n      if (isReturnStatementWithFixablePromiseHandler(ret, checker))\n        res.push(ret);\n    });\n    return res;\n  }\n  function getAllPromiseExpressionsToReturn(func, checker) {\n    if (!func.body) {\n      return /* @__PURE__ */ new Set();\n    }\n    const setOfExpressionsToReturn = /* @__PURE__ */ new Set();\n    forEachChild(func.body, function visit(node) {\n      if (isPromiseReturningCallExpression(node, checker, \"then\")) {\n        setOfExpressionsToReturn.add(getNodeId(node));\n        forEach(node.arguments, visit);\n      } else if (isPromiseReturningCallExpression(node, checker, \"catch\") || isPromiseReturningCallExpression(node, checker, \"finally\")) {\n        setOfExpressionsToReturn.add(getNodeId(node));\n        forEachChild(node, visit);\n      } else if (isPromiseTypedExpression(node, checker)) {\n        setOfExpressionsToReturn.add(getNodeId(node));\n      } else {\n        forEachChild(node, visit);\n      }\n    });\n    return setOfExpressionsToReturn;\n  }\n  function isPromiseReturningCallExpression(node, checker, name) {\n    if (!isCallExpression(node))\n      return false;\n    const isExpressionOfName = hasPropertyAccessExpressionWithName(node, name);\n    const nodeType = isExpressionOfName && checker.getTypeAtLocation(node);\n    return !!(nodeType && checker.getPromisedTypeOfPromise(nodeType));\n  }\n  function isReferenceToType(type, target) {\n    return (getObjectFlags(type) & 4) !== 0 && type.target === target;\n  }\n  function getExplicitPromisedTypeOfPromiseReturningCallExpression(node, callback, checker) {\n    if (node.expression.name.escapedText === \"finally\") {\n      return void 0;\n    }\n    const promiseType = checker.getTypeAtLocation(node.expression.expression);\n    if (isReferenceToType(promiseType, checker.getPromiseType()) || isReferenceToType(promiseType, checker.getPromiseLikeType())) {\n      if (node.expression.name.escapedText === \"then\") {\n        if (callback === elementAt(node.arguments, 0)) {\n          return elementAt(node.typeArguments, 0);\n        } else if (callback === elementAt(node.arguments, 1)) {\n          return elementAt(node.typeArguments, 1);\n        }\n      } else {\n        return elementAt(node.typeArguments, 0);\n      }\n    }\n  }\n  function isPromiseTypedExpression(node, checker) {\n    if (!isExpression(node))\n      return false;\n    return !!checker.getPromisedTypeOfPromise(checker.getTypeAtLocation(node));\n  }\n  function renameCollidingVarNames(nodeToRename, checker, synthNamesMap) {\n    const identsToRenameMap = /* @__PURE__ */ new Map();\n    const collidingSymbolMap = createMultiMap();\n    forEachChild(nodeToRename, function visit(node) {\n      if (!isIdentifier(node)) {\n        forEachChild(node, visit);\n        return;\n      }\n      const symbol = checker.getSymbolAtLocation(node);\n      if (symbol) {\n        const type = checker.getTypeAtLocation(node);\n        const lastCallSignature = getLastCallSignature(type, checker);\n        const symbolIdString = getSymbolId(symbol).toString();\n        if (lastCallSignature && !isParameter(node.parent) && !isFunctionLikeDeclaration(node.parent) && !synthNamesMap.has(symbolIdString)) {\n          const firstParameter = firstOrUndefined(lastCallSignature.parameters);\n          const ident = (firstParameter == null ? void 0 : firstParameter.valueDeclaration) && isParameter(firstParameter.valueDeclaration) && tryCast(firstParameter.valueDeclaration.name, isIdentifier) || factory.createUniqueName(\"result\", 16);\n          const synthName = getNewNameIfConflict(ident, collidingSymbolMap);\n          synthNamesMap.set(symbolIdString, synthName);\n          collidingSymbolMap.add(ident.text, symbol);\n        } else if (node.parent && (isParameter(node.parent) || isVariableDeclaration(node.parent) || isBindingElement(node.parent))) {\n          const originalName = node.text;\n          const collidingSymbols = collidingSymbolMap.get(originalName);\n          if (collidingSymbols && collidingSymbols.some((prevSymbol) => prevSymbol !== symbol)) {\n            const newName = getNewNameIfConflict(node, collidingSymbolMap);\n            identsToRenameMap.set(symbolIdString, newName.identifier);\n            synthNamesMap.set(symbolIdString, newName);\n            collidingSymbolMap.add(originalName, symbol);\n          } else {\n            const identifier = getSynthesizedDeepClone(node);\n            synthNamesMap.set(symbolIdString, createSynthIdentifier(identifier));\n            collidingSymbolMap.add(originalName, symbol);\n          }\n        }\n      }\n    });\n    return getSynthesizedDeepCloneWithReplacements(nodeToRename, true, (original) => {\n      if (isBindingElement(original) && isIdentifier(original.name) && isObjectBindingPattern(original.parent)) {\n        const symbol = checker.getSymbolAtLocation(original.name);\n        const renameInfo = symbol && identsToRenameMap.get(String(getSymbolId(symbol)));\n        if (renameInfo && renameInfo.text !== (original.name || original.propertyName).getText()) {\n          return factory.createBindingElement(original.dotDotDotToken, original.propertyName || original.name, renameInfo, original.initializer);\n        }\n      } else if (isIdentifier(original)) {\n        const symbol = checker.getSymbolAtLocation(original);\n        const renameInfo = symbol && identsToRenameMap.get(String(getSymbolId(symbol)));\n        if (renameInfo) {\n          return factory.createIdentifier(renameInfo.text);\n        }\n      }\n    });\n  }\n  function getNewNameIfConflict(name, originalNames) {\n    const numVarsSameName = (originalNames.get(name.text) || emptyArray).length;\n    const identifier = numVarsSameName === 0 ? name : factory.createIdentifier(name.text + \"_\" + numVarsSameName);\n    return createSynthIdentifier(identifier);\n  }\n  function hasFailed() {\n    return !codeActionSucceeded;\n  }\n  function silentFail() {\n    codeActionSucceeded = false;\n    return emptyArray;\n  }\n  function transformExpression(returnContextNode, node, transformer, hasContinuation, continuationArgName) {\n    if (isPromiseReturningCallExpression(node, transformer.checker, \"then\")) {\n      return transformThen(node, elementAt(node.arguments, 0), elementAt(node.arguments, 1), transformer, hasContinuation, continuationArgName);\n    }\n    if (isPromiseReturningCallExpression(node, transformer.checker, \"catch\")) {\n      return transformCatch(node, elementAt(node.arguments, 0), transformer, hasContinuation, continuationArgName);\n    }\n    if (isPromiseReturningCallExpression(node, transformer.checker, \"finally\")) {\n      return transformFinally(node, elementAt(node.arguments, 0), transformer, hasContinuation, continuationArgName);\n    }\n    if (isPropertyAccessExpression(node)) {\n      return transformExpression(returnContextNode, node.expression, transformer, hasContinuation, continuationArgName);\n    }\n    const nodeType = transformer.checker.getTypeAtLocation(node);\n    if (nodeType && transformer.checker.getPromisedTypeOfPromise(nodeType)) {\n      Debug.assertNode(getOriginalNode(node).parent, isPropertyAccessExpression);\n      return transformPromiseExpressionOfPropertyAccess(returnContextNode, node, transformer, hasContinuation, continuationArgName);\n    }\n    return silentFail();\n  }\n  function isNullOrUndefined2({ checker }, node) {\n    if (node.kind === 104)\n      return true;\n    if (isIdentifier(node) && !isGeneratedIdentifier(node) && idText(node) === \"undefined\") {\n      const symbol = checker.getSymbolAtLocation(node);\n      return !symbol || checker.isUndefinedSymbol(symbol);\n    }\n    return false;\n  }\n  function createUniqueSynthName(prevArgName) {\n    const renamedPrevArg = factory.createUniqueName(prevArgName.identifier.text, 16);\n    return createSynthIdentifier(renamedPrevArg);\n  }\n  function getPossibleNameForVarDecl(node, transformer, continuationArgName) {\n    let possibleNameForVarDecl;\n    if (continuationArgName && !shouldReturn(node, transformer)) {\n      if (isSynthIdentifier(continuationArgName)) {\n        possibleNameForVarDecl = continuationArgName;\n        transformer.synthNamesMap.forEach((val, key) => {\n          if (val.identifier.text === continuationArgName.identifier.text) {\n            const newSynthName = createUniqueSynthName(continuationArgName);\n            transformer.synthNamesMap.set(key, newSynthName);\n          }\n        });\n      } else {\n        possibleNameForVarDecl = createSynthIdentifier(factory.createUniqueName(\"result\", 16), continuationArgName.types);\n      }\n      declareSynthIdentifier(possibleNameForVarDecl);\n    }\n    return possibleNameForVarDecl;\n  }\n  function finishCatchOrFinallyTransform(node, transformer, tryStatement, possibleNameForVarDecl, continuationArgName) {\n    const statements = [];\n    let varDeclIdentifier;\n    if (possibleNameForVarDecl && !shouldReturn(node, transformer)) {\n      varDeclIdentifier = getSynthesizedDeepClone(declareSynthIdentifier(possibleNameForVarDecl));\n      const typeArray = possibleNameForVarDecl.types;\n      const unionType = transformer.checker.getUnionType(typeArray, 2);\n      const unionTypeNode = transformer.isInJSFile ? void 0 : transformer.checker.typeToTypeNode(unionType, void 0, void 0);\n      const varDecl = [factory.createVariableDeclaration(varDeclIdentifier, void 0, unionTypeNode)];\n      const varDeclList = factory.createVariableStatement(void 0, factory.createVariableDeclarationList(varDecl, 1));\n      statements.push(varDeclList);\n    }\n    statements.push(tryStatement);\n    if (continuationArgName && varDeclIdentifier && isSynthBindingPattern(continuationArgName)) {\n      statements.push(factory.createVariableStatement(void 0, factory.createVariableDeclarationList([\n        factory.createVariableDeclaration(getSynthesizedDeepClone(declareSynthBindingPattern(continuationArgName)), void 0, void 0, varDeclIdentifier)\n      ], 2)));\n    }\n    return statements;\n  }\n  function transformFinally(node, onFinally, transformer, hasContinuation, continuationArgName) {\n    if (!onFinally || isNullOrUndefined2(transformer, onFinally)) {\n      return transformExpression(node, node.expression.expression, transformer, hasContinuation, continuationArgName);\n    }\n    const possibleNameForVarDecl = getPossibleNameForVarDecl(node, transformer, continuationArgName);\n    const inlinedLeftHandSide = transformExpression(node, node.expression.expression, transformer, true, possibleNameForVarDecl);\n    if (hasFailed())\n      return silentFail();\n    const inlinedCallback = transformCallbackArgument(onFinally, hasContinuation, void 0, void 0, node, transformer);\n    if (hasFailed())\n      return silentFail();\n    const tryBlock = factory.createBlock(inlinedLeftHandSide);\n    const finallyBlock = factory.createBlock(inlinedCallback);\n    const tryStatement = factory.createTryStatement(tryBlock, void 0, finallyBlock);\n    return finishCatchOrFinallyTransform(node, transformer, tryStatement, possibleNameForVarDecl, continuationArgName);\n  }\n  function transformCatch(node, onRejected, transformer, hasContinuation, continuationArgName) {\n    if (!onRejected || isNullOrUndefined2(transformer, onRejected)) {\n      return transformExpression(node, node.expression.expression, transformer, hasContinuation, continuationArgName);\n    }\n    const inputArgName = getArgBindingName(onRejected, transformer);\n    const possibleNameForVarDecl = getPossibleNameForVarDecl(node, transformer, continuationArgName);\n    const inlinedLeftHandSide = transformExpression(node, node.expression.expression, transformer, true, possibleNameForVarDecl);\n    if (hasFailed())\n      return silentFail();\n    const inlinedCallback = transformCallbackArgument(onRejected, hasContinuation, possibleNameForVarDecl, inputArgName, node, transformer);\n    if (hasFailed())\n      return silentFail();\n    const tryBlock = factory.createBlock(inlinedLeftHandSide);\n    const catchClause = factory.createCatchClause(inputArgName && getSynthesizedDeepClone(declareSynthBindingName(inputArgName)), factory.createBlock(inlinedCallback));\n    const tryStatement = factory.createTryStatement(tryBlock, catchClause, void 0);\n    return finishCatchOrFinallyTransform(node, transformer, tryStatement, possibleNameForVarDecl, continuationArgName);\n  }\n  function transformThen(node, onFulfilled, onRejected, transformer, hasContinuation, continuationArgName) {\n    if (!onFulfilled || isNullOrUndefined2(transformer, onFulfilled)) {\n      return transformCatch(node, onRejected, transformer, hasContinuation, continuationArgName);\n    }\n    if (onRejected && !isNullOrUndefined2(transformer, onRejected)) {\n      return silentFail();\n    }\n    const inputArgName = getArgBindingName(onFulfilled, transformer);\n    const inlinedLeftHandSide = transformExpression(node.expression.expression, node.expression.expression, transformer, true, inputArgName);\n    if (hasFailed())\n      return silentFail();\n    const inlinedCallback = transformCallbackArgument(onFulfilled, hasContinuation, continuationArgName, inputArgName, node, transformer);\n    if (hasFailed())\n      return silentFail();\n    return concatenate(inlinedLeftHandSide, inlinedCallback);\n  }\n  function transformPromiseExpressionOfPropertyAccess(returnContextNode, node, transformer, hasContinuation, continuationArgName) {\n    if (shouldReturn(returnContextNode, transformer)) {\n      let returnValue = getSynthesizedDeepClone(node);\n      if (hasContinuation) {\n        returnValue = factory.createAwaitExpression(returnValue);\n      }\n      return [factory.createReturnStatement(returnValue)];\n    }\n    return createVariableOrAssignmentOrExpressionStatement(continuationArgName, factory.createAwaitExpression(node), void 0);\n  }\n  function createVariableOrAssignmentOrExpressionStatement(variableName, rightHandSide, typeAnnotation) {\n    if (!variableName || isEmptyBindingName(variableName)) {\n      return [factory.createExpressionStatement(rightHandSide)];\n    }\n    if (isSynthIdentifier(variableName) && variableName.hasBeenDeclared) {\n      return [factory.createExpressionStatement(factory.createAssignment(getSynthesizedDeepClone(referenceSynthIdentifier(variableName)), rightHandSide))];\n    }\n    return [\n      factory.createVariableStatement(void 0, factory.createVariableDeclarationList([\n        factory.createVariableDeclaration(getSynthesizedDeepClone(declareSynthBindingName(variableName)), void 0, typeAnnotation, rightHandSide)\n      ], 2))\n    ];\n  }\n  function maybeAnnotateAndReturn(expressionToReturn, typeAnnotation) {\n    if (typeAnnotation && expressionToReturn) {\n      const name = factory.createUniqueName(\"result\", 16);\n      return [\n        ...createVariableOrAssignmentOrExpressionStatement(createSynthIdentifier(name), expressionToReturn, typeAnnotation),\n        factory.createReturnStatement(name)\n      ];\n    }\n    return [factory.createReturnStatement(expressionToReturn)];\n  }\n  function transformCallbackArgument(func, hasContinuation, continuationArgName, inputArgName, parent2, transformer) {\n    var _a2;\n    switch (func.kind) {\n      case 104:\n        break;\n      case 208:\n      case 79:\n        if (!inputArgName) {\n          break;\n        }\n        const synthCall = factory.createCallExpression(getSynthesizedDeepClone(func), void 0, isSynthIdentifier(inputArgName) ? [referenceSynthIdentifier(inputArgName)] : []);\n        if (shouldReturn(parent2, transformer)) {\n          return maybeAnnotateAndReturn(synthCall, getExplicitPromisedTypeOfPromiseReturningCallExpression(parent2, func, transformer.checker));\n        }\n        const type = transformer.checker.getTypeAtLocation(func);\n        const callSignatures = transformer.checker.getSignaturesOfType(type, 0);\n        if (!callSignatures.length) {\n          return silentFail();\n        }\n        const returnType = callSignatures[0].getReturnType();\n        const varDeclOrAssignment = createVariableOrAssignmentOrExpressionStatement(continuationArgName, factory.createAwaitExpression(synthCall), getExplicitPromisedTypeOfPromiseReturningCallExpression(parent2, func, transformer.checker));\n        if (continuationArgName) {\n          continuationArgName.types.push(transformer.checker.getAwaitedType(returnType) || returnType);\n        }\n        return varDeclOrAssignment;\n      case 215:\n      case 216: {\n        const funcBody = func.body;\n        const returnType2 = (_a2 = getLastCallSignature(transformer.checker.getTypeAtLocation(func), transformer.checker)) == null ? void 0 : _a2.getReturnType();\n        if (isBlock(funcBody)) {\n          let refactoredStmts = [];\n          let seenReturnStatement = false;\n          for (const statement of funcBody.statements) {\n            if (isReturnStatement(statement)) {\n              seenReturnStatement = true;\n              if (isReturnStatementWithFixablePromiseHandler(statement, transformer.checker)) {\n                refactoredStmts = refactoredStmts.concat(transformReturnStatementWithFixablePromiseHandler(transformer, statement, hasContinuation, continuationArgName));\n              } else {\n                const possiblyAwaitedRightHandSide = returnType2 && statement.expression ? getPossiblyAwaitedRightHandSide(transformer.checker, returnType2, statement.expression) : statement.expression;\n                refactoredStmts.push(...maybeAnnotateAndReturn(possiblyAwaitedRightHandSide, getExplicitPromisedTypeOfPromiseReturningCallExpression(parent2, func, transformer.checker)));\n              }\n            } else if (hasContinuation && forEachReturnStatement(statement, returnTrue)) {\n              return silentFail();\n            } else {\n              refactoredStmts.push(statement);\n            }\n          }\n          return shouldReturn(parent2, transformer) ? refactoredStmts.map((s) => getSynthesizedDeepClone(s)) : removeReturns(refactoredStmts, continuationArgName, transformer, seenReturnStatement);\n        } else {\n          const inlinedStatements = isFixablePromiseHandler(funcBody, transformer.checker) ? transformReturnStatementWithFixablePromiseHandler(transformer, factory.createReturnStatement(funcBody), hasContinuation, continuationArgName) : emptyArray;\n          if (inlinedStatements.length > 0) {\n            return inlinedStatements;\n          }\n          if (returnType2) {\n            const possiblyAwaitedRightHandSide = getPossiblyAwaitedRightHandSide(transformer.checker, returnType2, funcBody);\n            if (!shouldReturn(parent2, transformer)) {\n              const transformedStatement = createVariableOrAssignmentOrExpressionStatement(continuationArgName, possiblyAwaitedRightHandSide, void 0);\n              if (continuationArgName) {\n                continuationArgName.types.push(transformer.checker.getAwaitedType(returnType2) || returnType2);\n              }\n              return transformedStatement;\n            } else {\n              return maybeAnnotateAndReturn(possiblyAwaitedRightHandSide, getExplicitPromisedTypeOfPromiseReturningCallExpression(parent2, func, transformer.checker));\n            }\n          } else {\n            return silentFail();\n          }\n        }\n      }\n      default:\n        return silentFail();\n    }\n    return emptyArray;\n  }\n  function getPossiblyAwaitedRightHandSide(checker, type, expr) {\n    const rightHandSide = getSynthesizedDeepClone(expr);\n    return !!checker.getPromisedTypeOfPromise(type) ? factory.createAwaitExpression(rightHandSide) : rightHandSide;\n  }\n  function getLastCallSignature(type, checker) {\n    const callSignatures = checker.getSignaturesOfType(type, 0);\n    return lastOrUndefined(callSignatures);\n  }\n  function removeReturns(stmts, prevArgName, transformer, seenReturnStatement) {\n    const ret = [];\n    for (const stmt of stmts) {\n      if (isReturnStatement(stmt)) {\n        if (stmt.expression) {\n          const possiblyAwaitedExpression = isPromiseTypedExpression(stmt.expression, transformer.checker) ? factory.createAwaitExpression(stmt.expression) : stmt.expression;\n          if (prevArgName === void 0) {\n            ret.push(factory.createExpressionStatement(possiblyAwaitedExpression));\n          } else if (isSynthIdentifier(prevArgName) && prevArgName.hasBeenDeclared) {\n            ret.push(factory.createExpressionStatement(factory.createAssignment(referenceSynthIdentifier(prevArgName), possiblyAwaitedExpression)));\n          } else {\n            ret.push(factory.createVariableStatement(void 0, factory.createVariableDeclarationList([factory.createVariableDeclaration(declareSynthBindingName(prevArgName), void 0, void 0, possiblyAwaitedExpression)], 2)));\n          }\n        }\n      } else {\n        ret.push(getSynthesizedDeepClone(stmt));\n      }\n    }\n    if (!seenReturnStatement && prevArgName !== void 0) {\n      ret.push(factory.createVariableStatement(void 0, factory.createVariableDeclarationList([factory.createVariableDeclaration(declareSynthBindingName(prevArgName), void 0, void 0, factory.createIdentifier(\"undefined\"))], 2)));\n    }\n    return ret;\n  }\n  function transformReturnStatementWithFixablePromiseHandler(transformer, innerRetStmt, hasContinuation, continuationArgName) {\n    let innerCbBody = [];\n    forEachChild(innerRetStmt, function visit(node) {\n      if (isCallExpression(node)) {\n        const temp = transformExpression(node, node, transformer, hasContinuation, continuationArgName);\n        innerCbBody = innerCbBody.concat(temp);\n        if (innerCbBody.length > 0) {\n          return;\n        }\n      } else if (!isFunctionLike(node)) {\n        forEachChild(node, visit);\n      }\n    });\n    return innerCbBody;\n  }\n  function getArgBindingName(funcNode, transformer) {\n    const types = [];\n    let name;\n    if (isFunctionLikeDeclaration(funcNode)) {\n      if (funcNode.parameters.length > 0) {\n        const param = funcNode.parameters[0].name;\n        name = getMappedBindingNameOrDefault(param);\n      }\n    } else if (isIdentifier(funcNode)) {\n      name = getMapEntryOrDefault(funcNode);\n    } else if (isPropertyAccessExpression(funcNode) && isIdentifier(funcNode.name)) {\n      name = getMapEntryOrDefault(funcNode.name);\n    }\n    if (!name || \"identifier\" in name && name.identifier.text === \"undefined\") {\n      return void 0;\n    }\n    return name;\n    function getMappedBindingNameOrDefault(bindingName) {\n      if (isIdentifier(bindingName))\n        return getMapEntryOrDefault(bindingName);\n      const elements = flatMap(bindingName.elements, (element) => {\n        if (isOmittedExpression(element))\n          return [];\n        return [getMappedBindingNameOrDefault(element.name)];\n      });\n      return createSynthBindingPattern(bindingName, elements);\n    }\n    function getMapEntryOrDefault(identifier) {\n      const originalNode = getOriginalNode2(identifier);\n      const symbol = getSymbol2(originalNode);\n      if (!symbol) {\n        return createSynthIdentifier(identifier, types);\n      }\n      const mapEntry = transformer.synthNamesMap.get(getSymbolId(symbol).toString());\n      return mapEntry || createSynthIdentifier(identifier, types);\n    }\n    function getSymbol2(node) {\n      var _a2, _b;\n      return (_b = (_a2 = tryCast(node, canHaveSymbol)) == null ? void 0 : _a2.symbol) != null ? _b : transformer.checker.getSymbolAtLocation(node);\n    }\n    function getOriginalNode2(node) {\n      return node.original ? node.original : node;\n    }\n  }\n  function isEmptyBindingName(bindingName) {\n    if (!bindingName) {\n      return true;\n    }\n    if (isSynthIdentifier(bindingName)) {\n      return !bindingName.identifier.text;\n    }\n    return every(bindingName.elements, isEmptyBindingName);\n  }\n  function createSynthIdentifier(identifier, types = []) {\n    return { kind: 0, identifier, types, hasBeenDeclared: false, hasBeenReferenced: false };\n  }\n  function createSynthBindingPattern(bindingPattern, elements = emptyArray, types = []) {\n    return { kind: 1, bindingPattern, elements, types };\n  }\n  function referenceSynthIdentifier(synthId) {\n    synthId.hasBeenReferenced = true;\n    return synthId.identifier;\n  }\n  function declareSynthBindingName(synthName) {\n    return isSynthIdentifier(synthName) ? declareSynthIdentifier(synthName) : declareSynthBindingPattern(synthName);\n  }\n  function declareSynthBindingPattern(synthPattern) {\n    for (const element of synthPattern.elements) {\n      declareSynthBindingName(element);\n    }\n    return synthPattern.bindingPattern;\n  }\n  function declareSynthIdentifier(synthId) {\n    synthId.hasBeenDeclared = true;\n    return synthId.identifier;\n  }\n  function isSynthIdentifier(bindingName) {\n    return bindingName.kind === 0;\n  }\n  function isSynthBindingPattern(bindingName) {\n    return bindingName.kind === 1;\n  }\n  function shouldReturn(expression, transformer) {\n    return !!expression.original && transformer.setOfExpressionsToReturn.has(getNodeId(expression.original));\n  }\n  var fixId10, errorCodes11, codeActionSucceeded;\n  var init_convertToAsyncFunction = __esm({\n    \"src/services/codefixes/convertToAsyncFunction.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId10 = \"convertToAsyncFunction\";\n      errorCodes11 = [Diagnostics.This_may_be_converted_to_an_async_function.code];\n      codeActionSucceeded = true;\n      registerCodeFix({\n        errorCodes: errorCodes11,\n        getCodeActions(context) {\n          codeActionSucceeded = true;\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => convertToAsyncFunction(t, context.sourceFile, context.span.start, context.program.getTypeChecker()));\n          return codeActionSucceeded ? [createCodeFixAction(fixId10, changes, Diagnostics.Convert_to_async_function, fixId10, Diagnostics.Convert_all_to_async_functions)] : [];\n        },\n        fixIds: [fixId10],\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes11, (changes, err) => convertToAsyncFunction(changes, err.file, err.start, context.program.getTypeChecker()))\n      });\n    }\n  });\n  function fixImportOfModuleExports(importingFile, exportingFile, changes, quotePreference) {\n    for (const moduleSpecifier of importingFile.imports) {\n      const imported = getResolvedModule(importingFile, moduleSpecifier.text, getModeForUsageLocation(importingFile, moduleSpecifier));\n      if (!imported || imported.resolvedFileName !== exportingFile.fileName) {\n        continue;\n      }\n      const importNode = importFromModuleSpecifier(moduleSpecifier);\n      switch (importNode.kind) {\n        case 268:\n          changes.replaceNode(importingFile, importNode, makeImport(importNode.name, void 0, moduleSpecifier, quotePreference));\n          break;\n        case 210:\n          if (isRequireCall(importNode, false)) {\n            changes.replaceNode(importingFile, importNode, factory.createPropertyAccessExpression(getSynthesizedDeepClone(importNode), \"default\"));\n          }\n          break;\n      }\n    }\n  }\n  function convertFileToEsModule(sourceFile, checker, changes, target, quotePreference) {\n    const identifiers = { original: collectFreeIdentifiers(sourceFile), additional: /* @__PURE__ */ new Set() };\n    const exports = collectExportRenames(sourceFile, checker, identifiers);\n    convertExportsAccesses(sourceFile, exports, changes);\n    let moduleExportsChangedToDefault = false;\n    let useSitesToUnqualify;\n    for (const statement of filter(sourceFile.statements, isVariableStatement)) {\n      const newUseSites = convertVariableStatement(sourceFile, statement, changes, checker, identifiers, target, quotePreference);\n      if (newUseSites) {\n        copyEntries(newUseSites, useSitesToUnqualify != null ? useSitesToUnqualify : useSitesToUnqualify = /* @__PURE__ */ new Map());\n      }\n    }\n    for (const statement of filter(sourceFile.statements, (s) => !isVariableStatement(s))) {\n      const moduleExportsChanged = convertStatement(sourceFile, statement, checker, changes, identifiers, target, exports, useSitesToUnqualify, quotePreference);\n      moduleExportsChangedToDefault = moduleExportsChangedToDefault || moduleExportsChanged;\n    }\n    useSitesToUnqualify == null ? void 0 : useSitesToUnqualify.forEach((replacement, original) => {\n      changes.replaceNode(sourceFile, original, replacement);\n    });\n    return moduleExportsChangedToDefault;\n  }\n  function collectExportRenames(sourceFile, checker, identifiers) {\n    const res = /* @__PURE__ */ new Map();\n    forEachExportReference(sourceFile, (node) => {\n      const { text } = node.name;\n      if (!res.has(text) && (isIdentifierANonContextualKeyword(node.name) || checker.resolveName(text, node, 111551, true))) {\n        res.set(text, makeUniqueName(`_${text}`, identifiers));\n      }\n    });\n    return res;\n  }\n  function convertExportsAccesses(sourceFile, exports, changes) {\n    forEachExportReference(sourceFile, (node, isAssignmentLhs) => {\n      if (isAssignmentLhs) {\n        return;\n      }\n      const { text } = node.name;\n      changes.replaceNode(sourceFile, node, factory.createIdentifier(exports.get(text) || text));\n    });\n  }\n  function forEachExportReference(sourceFile, cb) {\n    sourceFile.forEachChild(function recur(node) {\n      if (isPropertyAccessExpression(node) && isExportsOrModuleExportsOrAlias(sourceFile, node.expression) && isIdentifier(node.name)) {\n        const { parent: parent2 } = node;\n        cb(node, isBinaryExpression(parent2) && parent2.left === node && parent2.operatorToken.kind === 63);\n      }\n      node.forEachChild(recur);\n    });\n  }\n  function convertStatement(sourceFile, statement, checker, changes, identifiers, target, exports, useSitesToUnqualify, quotePreference) {\n    switch (statement.kind) {\n      case 240:\n        convertVariableStatement(sourceFile, statement, changes, checker, identifiers, target, quotePreference);\n        return false;\n      case 241: {\n        const { expression } = statement;\n        switch (expression.kind) {\n          case 210: {\n            if (isRequireCall(expression, true)) {\n              changes.replaceNode(sourceFile, statement, makeImport(void 0, void 0, expression.arguments[0], quotePreference));\n            }\n            return false;\n          }\n          case 223: {\n            const { operatorToken } = expression;\n            return operatorToken.kind === 63 && convertAssignment(sourceFile, checker, expression, changes, exports, useSitesToUnqualify);\n          }\n        }\n      }\n      default:\n        return false;\n    }\n  }\n  function convertVariableStatement(sourceFile, statement, changes, checker, identifiers, target, quotePreference) {\n    const { declarationList } = statement;\n    let foundImport = false;\n    const converted = map(declarationList.declarations, (decl) => {\n      const { name, initializer } = decl;\n      if (initializer) {\n        if (isExportsOrModuleExportsOrAlias(sourceFile, initializer)) {\n          foundImport = true;\n          return convertedImports([]);\n        } else if (isRequireCall(initializer, true)) {\n          foundImport = true;\n          return convertSingleImport(name, initializer.arguments[0], checker, identifiers, target, quotePreference);\n        } else if (isPropertyAccessExpression(initializer) && isRequireCall(initializer.expression, true)) {\n          foundImport = true;\n          return convertPropertyAccessImport(name, initializer.name.text, initializer.expression.arguments[0], identifiers, quotePreference);\n        }\n      }\n      return convertedImports([factory.createVariableStatement(void 0, factory.createVariableDeclarationList([decl], declarationList.flags))]);\n    });\n    if (foundImport) {\n      changes.replaceNodeWithNodes(sourceFile, statement, flatMap(converted, (c) => c.newImports));\n      let combinedUseSites;\n      forEach(converted, (c) => {\n        if (c.useSitesToUnqualify) {\n          copyEntries(c.useSitesToUnqualify, combinedUseSites != null ? combinedUseSites : combinedUseSites = /* @__PURE__ */ new Map());\n        }\n      });\n      return combinedUseSites;\n    }\n  }\n  function convertPropertyAccessImport(name, propertyName, moduleSpecifier, identifiers, quotePreference) {\n    switch (name.kind) {\n      case 203:\n      case 204: {\n        const tmp = makeUniqueName(propertyName, identifiers);\n        return convertedImports([\n          makeSingleImport(tmp, propertyName, moduleSpecifier, quotePreference),\n          makeConst(void 0, name, factory.createIdentifier(tmp))\n        ]);\n      }\n      case 79:\n        return convertedImports([makeSingleImport(name.text, propertyName, moduleSpecifier, quotePreference)]);\n      default:\n        return Debug.assertNever(name, `Convert to ES module got invalid syntax form ${name.kind}`);\n    }\n  }\n  function convertAssignment(sourceFile, checker, assignment, changes, exports, useSitesToUnqualify) {\n    const { left, right } = assignment;\n    if (!isPropertyAccessExpression(left)) {\n      return false;\n    }\n    if (isExportsOrModuleExportsOrAlias(sourceFile, left)) {\n      if (isExportsOrModuleExportsOrAlias(sourceFile, right)) {\n        changes.delete(sourceFile, assignment.parent);\n      } else {\n        const replacement = isObjectLiteralExpression(right) ? tryChangeModuleExportsObject(right, useSitesToUnqualify) : isRequireCall(right, true) ? convertReExportAll(right.arguments[0], checker) : void 0;\n        if (replacement) {\n          changes.replaceNodeWithNodes(sourceFile, assignment.parent, replacement[0]);\n          return replacement[1];\n        } else {\n          changes.replaceRangeWithText(sourceFile, createRange(left.getStart(sourceFile), right.pos), \"export default\");\n          return true;\n        }\n      }\n    } else if (isExportsOrModuleExportsOrAlias(sourceFile, left.expression)) {\n      convertNamedExport(sourceFile, assignment, changes, exports);\n    }\n    return false;\n  }\n  function tryChangeModuleExportsObject(object, useSitesToUnqualify) {\n    const statements = mapAllOrFail(object.properties, (prop) => {\n      switch (prop.kind) {\n        case 174:\n        case 175:\n        case 300:\n        case 301:\n          return void 0;\n        case 299:\n          return !isIdentifier(prop.name) ? void 0 : convertExportsDotXEquals_replaceNode(prop.name.text, prop.initializer, useSitesToUnqualify);\n        case 171:\n          return !isIdentifier(prop.name) ? void 0 : functionExpressionToDeclaration(prop.name.text, [factory.createToken(93)], prop, useSitesToUnqualify);\n        default:\n          Debug.assertNever(prop, `Convert to ES6 got invalid prop kind ${prop.kind}`);\n      }\n    });\n    return statements && [statements, false];\n  }\n  function convertNamedExport(sourceFile, assignment, changes, exports) {\n    const { text } = assignment.left.name;\n    const rename = exports.get(text);\n    if (rename !== void 0) {\n      const newNodes = [\n        makeConst(void 0, rename, assignment.right),\n        makeExportDeclaration([factory.createExportSpecifier(false, rename, text)])\n      ];\n      changes.replaceNodeWithNodes(sourceFile, assignment.parent, newNodes);\n    } else {\n      convertExportsPropertyAssignment(assignment, sourceFile, changes);\n    }\n  }\n  function convertReExportAll(reExported, checker) {\n    const moduleSpecifier = reExported.text;\n    const moduleSymbol = checker.getSymbolAtLocation(reExported);\n    const exports = moduleSymbol ? moduleSymbol.exports : emptyMap;\n    return exports.has(\"export=\") ? [[reExportDefault(moduleSpecifier)], true] : !exports.has(\"default\") ? [[reExportStar(moduleSpecifier)], false] : exports.size > 1 ? [[reExportStar(moduleSpecifier), reExportDefault(moduleSpecifier)], true] : [[reExportDefault(moduleSpecifier)], true];\n  }\n  function reExportStar(moduleSpecifier) {\n    return makeExportDeclaration(void 0, moduleSpecifier);\n  }\n  function reExportDefault(moduleSpecifier) {\n    return makeExportDeclaration([factory.createExportSpecifier(false, void 0, \"default\")], moduleSpecifier);\n  }\n  function convertExportsPropertyAssignment({ left, right, parent: parent2 }, sourceFile, changes) {\n    const name = left.name.text;\n    if ((isFunctionExpression(right) || isArrowFunction(right) || isClassExpression(right)) && (!right.name || right.name.text === name)) {\n      changes.replaceRange(sourceFile, { pos: left.getStart(sourceFile), end: right.getStart(sourceFile) }, factory.createToken(93), { suffix: \" \" });\n      if (!right.name)\n        changes.insertName(sourceFile, right, name);\n      const semi = findChildOfKind(parent2, 26, sourceFile);\n      if (semi)\n        changes.delete(sourceFile, semi);\n    } else {\n      changes.replaceNodeRangeWithNodes(sourceFile, left.expression, findChildOfKind(left, 24, sourceFile), [factory.createToken(93), factory.createToken(85)], { joiner: \" \", suffix: \" \" });\n    }\n  }\n  function convertExportsDotXEquals_replaceNode(name, exported, useSitesToUnqualify) {\n    const modifiers = [factory.createToken(93)];\n    switch (exported.kind) {\n      case 215: {\n        const { name: expressionName } = exported;\n        if (expressionName && expressionName.text !== name) {\n          return exportConst();\n        }\n      }\n      case 216:\n        return functionExpressionToDeclaration(name, modifiers, exported, useSitesToUnqualify);\n      case 228:\n        return classExpressionToDeclaration(name, modifiers, exported, useSitesToUnqualify);\n      default:\n        return exportConst();\n    }\n    function exportConst() {\n      return makeConst(modifiers, factory.createIdentifier(name), replaceImportUseSites(exported, useSitesToUnqualify));\n    }\n  }\n  function replaceImportUseSites(nodeOrNodes, useSitesToUnqualify) {\n    if (!useSitesToUnqualify || !some(arrayFrom(useSitesToUnqualify.keys()), (original) => rangeContainsRange(nodeOrNodes, original))) {\n      return nodeOrNodes;\n    }\n    return isArray(nodeOrNodes) ? getSynthesizedDeepClonesWithReplacements(nodeOrNodes, true, replaceNode) : getSynthesizedDeepCloneWithReplacements(nodeOrNodes, true, replaceNode);\n    function replaceNode(original) {\n      if (original.kind === 208) {\n        const replacement = useSitesToUnqualify.get(original);\n        useSitesToUnqualify.delete(original);\n        return replacement;\n      }\n    }\n  }\n  function convertSingleImport(name, moduleSpecifier, checker, identifiers, target, quotePreference) {\n    switch (name.kind) {\n      case 203: {\n        const importSpecifiers = mapAllOrFail(name.elements, (e) => e.dotDotDotToken || e.initializer || e.propertyName && !isIdentifier(e.propertyName) || !isIdentifier(e.name) ? void 0 : makeImportSpecifier(e.propertyName && e.propertyName.text, e.name.text));\n        if (importSpecifiers) {\n          return convertedImports([makeImport(void 0, importSpecifiers, moduleSpecifier, quotePreference)]);\n        }\n      }\n      case 204: {\n        const tmp = makeUniqueName(moduleSpecifierToValidIdentifier(moduleSpecifier.text, target), identifiers);\n        return convertedImports([\n          makeImport(factory.createIdentifier(tmp), void 0, moduleSpecifier, quotePreference),\n          makeConst(void 0, getSynthesizedDeepClone(name), factory.createIdentifier(tmp))\n        ]);\n      }\n      case 79:\n        return convertSingleIdentifierImport(name, moduleSpecifier, checker, identifiers, quotePreference);\n      default:\n        return Debug.assertNever(name, `Convert to ES module got invalid name kind ${name.kind}`);\n    }\n  }\n  function convertSingleIdentifierImport(name, moduleSpecifier, checker, identifiers, quotePreference) {\n    const nameSymbol = checker.getSymbolAtLocation(name);\n    const namedBindingsNames = /* @__PURE__ */ new Map();\n    let needDefaultImport = false;\n    let useSitesToUnqualify;\n    for (const use of identifiers.original.get(name.text)) {\n      if (checker.getSymbolAtLocation(use) !== nameSymbol || use === name) {\n        continue;\n      }\n      const { parent: parent2 } = use;\n      if (isPropertyAccessExpression(parent2)) {\n        const { name: { text: propertyName } } = parent2;\n        if (propertyName === \"default\") {\n          needDefaultImport = true;\n          const importDefaultName = use.getText();\n          (useSitesToUnqualify != null ? useSitesToUnqualify : useSitesToUnqualify = /* @__PURE__ */ new Map()).set(parent2, factory.createIdentifier(importDefaultName));\n        } else {\n          Debug.assert(parent2.expression === use, \"Didn't expect expression === use\");\n          let idName = namedBindingsNames.get(propertyName);\n          if (idName === void 0) {\n            idName = makeUniqueName(propertyName, identifiers);\n            namedBindingsNames.set(propertyName, idName);\n          }\n          (useSitesToUnqualify != null ? useSitesToUnqualify : useSitesToUnqualify = /* @__PURE__ */ new Map()).set(parent2, factory.createIdentifier(idName));\n        }\n      } else {\n        needDefaultImport = true;\n      }\n    }\n    const namedBindings = namedBindingsNames.size === 0 ? void 0 : arrayFrom(mapIterator(namedBindingsNames.entries(), ([propertyName, idName]) => factory.createImportSpecifier(false, propertyName === idName ? void 0 : factory.createIdentifier(propertyName), factory.createIdentifier(idName))));\n    if (!namedBindings) {\n      needDefaultImport = true;\n    }\n    return convertedImports([makeImport(needDefaultImport ? getSynthesizedDeepClone(name) : void 0, namedBindings, moduleSpecifier, quotePreference)], useSitesToUnqualify);\n  }\n  function makeUniqueName(name, identifiers) {\n    while (identifiers.original.has(name) || identifiers.additional.has(name)) {\n      name = `_${name}`;\n    }\n    identifiers.additional.add(name);\n    return name;\n  }\n  function collectFreeIdentifiers(file) {\n    const map2 = createMultiMap();\n    forEachFreeIdentifier(file, (id) => map2.add(id.text, id));\n    return map2;\n  }\n  function forEachFreeIdentifier(node, cb) {\n    if (isIdentifier(node) && isFreeIdentifier(node))\n      cb(node);\n    node.forEachChild((child) => forEachFreeIdentifier(child, cb));\n  }\n  function isFreeIdentifier(node) {\n    const { parent: parent2 } = node;\n    switch (parent2.kind) {\n      case 208:\n        return parent2.name !== node;\n      case 205:\n        return parent2.propertyName !== node;\n      case 273:\n        return parent2.propertyName !== node;\n      default:\n        return true;\n    }\n  }\n  function functionExpressionToDeclaration(name, additionalModifiers, fn, useSitesToUnqualify) {\n    return factory.createFunctionDeclaration(concatenate(additionalModifiers, getSynthesizedDeepClones(fn.modifiers)), getSynthesizedDeepClone(fn.asteriskToken), name, getSynthesizedDeepClones(fn.typeParameters), getSynthesizedDeepClones(fn.parameters), getSynthesizedDeepClone(fn.type), factory.converters.convertToFunctionBlock(replaceImportUseSites(fn.body, useSitesToUnqualify)));\n  }\n  function classExpressionToDeclaration(name, additionalModifiers, cls, useSitesToUnqualify) {\n    return factory.createClassDeclaration(concatenate(additionalModifiers, getSynthesizedDeepClones(cls.modifiers)), name, getSynthesizedDeepClones(cls.typeParameters), getSynthesizedDeepClones(cls.heritageClauses), replaceImportUseSites(cls.members, useSitesToUnqualify));\n  }\n  function makeSingleImport(localName, propertyName, moduleSpecifier, quotePreference) {\n    return propertyName === \"default\" ? makeImport(factory.createIdentifier(localName), void 0, moduleSpecifier, quotePreference) : makeImport(void 0, [makeImportSpecifier(propertyName, localName)], moduleSpecifier, quotePreference);\n  }\n  function makeImportSpecifier(propertyName, name) {\n    return factory.createImportSpecifier(false, propertyName !== void 0 && propertyName !== name ? factory.createIdentifier(propertyName) : void 0, factory.createIdentifier(name));\n  }\n  function makeConst(modifiers, name, init) {\n    return factory.createVariableStatement(modifiers, factory.createVariableDeclarationList([factory.createVariableDeclaration(name, void 0, void 0, init)], 2));\n  }\n  function makeExportDeclaration(exportSpecifiers, moduleSpecifier) {\n    return factory.createExportDeclaration(void 0, false, exportSpecifiers && factory.createNamedExports(exportSpecifiers), moduleSpecifier === void 0 ? void 0 : factory.createStringLiteral(moduleSpecifier));\n  }\n  function convertedImports(newImports, useSitesToUnqualify) {\n    return {\n      newImports,\n      useSitesToUnqualify\n    };\n  }\n  var init_convertToEsModule = __esm({\n    \"src/services/codefixes/convertToEsModule.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      registerCodeFix({\n        errorCodes: [Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],\n        getCodeActions(context) {\n          const { sourceFile, program, preferences } = context;\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (changes2) => {\n            const moduleExportsChangedToDefault = convertFileToEsModule(sourceFile, program.getTypeChecker(), changes2, getEmitScriptTarget(program.getCompilerOptions()), getQuotePreference(sourceFile, preferences));\n            if (moduleExportsChangedToDefault) {\n              for (const importingFile of program.getSourceFiles()) {\n                fixImportOfModuleExports(importingFile, sourceFile, changes2, getQuotePreference(importingFile, preferences));\n              }\n            }\n          });\n          return [createCodeFixActionWithoutFixAll(\"convertToEsModule\", changes, Diagnostics.Convert_to_ES_module)];\n        }\n      });\n    }\n  });\n  function getQualifiedName(sourceFile, pos) {\n    const qualifiedName = findAncestor(getTokenAtPosition(sourceFile, pos), isQualifiedName);\n    Debug.assert(!!qualifiedName, \"Expected position to be owned by a qualified name.\");\n    return isIdentifier(qualifiedName.left) ? qualifiedName : void 0;\n  }\n  function doChange3(changeTracker, sourceFile, qualifiedName) {\n    const rightText = qualifiedName.right.text;\n    const replacement = factory.createIndexedAccessTypeNode(factory.createTypeReferenceNode(qualifiedName.left, void 0), factory.createLiteralTypeNode(factory.createStringLiteral(rightText)));\n    changeTracker.replaceNode(sourceFile, qualifiedName, replacement);\n  }\n  var fixId11, errorCodes12;\n  var init_correctQualifiedNameToIndexedAccessType = __esm({\n    \"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId11 = \"correctQualifiedNameToIndexedAccessType\";\n      errorCodes12 = [Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];\n      registerCodeFix({\n        errorCodes: errorCodes12,\n        getCodeActions(context) {\n          const qualifiedName = getQualifiedName(context.sourceFile, context.span.start);\n          if (!qualifiedName)\n            return void 0;\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange3(t, context.sourceFile, qualifiedName));\n          const newText = `${qualifiedName.left.text}[\"${qualifiedName.right.text}\"]`;\n          return [createCodeFixAction(fixId11, changes, [Diagnostics.Rewrite_as_the_indexed_access_type_0, newText], fixId11, Diagnostics.Rewrite_all_as_indexed_access_types)];\n        },\n        fixIds: [fixId11],\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes12, (changes, diag2) => {\n          const q = getQualifiedName(diag2.file, diag2.start);\n          if (q) {\n            doChange3(changes, diag2.file, q);\n          }\n        })\n      });\n    }\n  });\n  function getExportSpecifierForDiagnosticSpan(span, sourceFile) {\n    return tryCast(getTokenAtPosition(sourceFile, span.start).parent, isExportSpecifier);\n  }\n  function fixSingleExportDeclaration(changes, exportSpecifier, context) {\n    if (!exportSpecifier) {\n      return;\n    }\n    const exportClause = exportSpecifier.parent;\n    const exportDeclaration = exportClause.parent;\n    const typeExportSpecifiers = getTypeExportSpecifiers(exportSpecifier, context);\n    if (typeExportSpecifiers.length === exportClause.elements.length) {\n      changes.insertModifierBefore(context.sourceFile, 154, exportClause);\n    } else {\n      const valueExportDeclaration = factory.updateExportDeclaration(exportDeclaration, exportDeclaration.modifiers, false, factory.updateNamedExports(exportClause, filter(exportClause.elements, (e) => !contains(typeExportSpecifiers, e))), exportDeclaration.moduleSpecifier, void 0);\n      const typeExportDeclaration = factory.createExportDeclaration(void 0, true, factory.createNamedExports(typeExportSpecifiers), exportDeclaration.moduleSpecifier, void 0);\n      changes.replaceNode(context.sourceFile, exportDeclaration, valueExportDeclaration, {\n        leadingTriviaOption: ts_textChanges_exports.LeadingTriviaOption.IncludeAll,\n        trailingTriviaOption: ts_textChanges_exports.TrailingTriviaOption.Exclude\n      });\n      changes.insertNodeAfter(context.sourceFile, exportDeclaration, typeExportDeclaration);\n    }\n  }\n  function getTypeExportSpecifiers(originExportSpecifier, context) {\n    const exportClause = originExportSpecifier.parent;\n    if (exportClause.elements.length === 1) {\n      return exportClause.elements;\n    }\n    const diagnostics = getDiagnosticsWithinSpan(createTextSpanFromNode(exportClause), context.program.getSemanticDiagnostics(context.sourceFile, context.cancellationToken));\n    return filter(exportClause.elements, (element) => {\n      var _a2;\n      return element === originExportSpecifier || ((_a2 = findDiagnosticForNode(element, diagnostics)) == null ? void 0 : _a2.code) === errorCodes13[0];\n    });\n  }\n  var errorCodes13, fixId12;\n  var init_convertToTypeOnlyExport = __esm({\n    \"src/services/codefixes/convertToTypeOnlyExport.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      errorCodes13 = [Diagnostics.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code];\n      fixId12 = \"convertToTypeOnlyExport\";\n      registerCodeFix({\n        errorCodes: errorCodes13,\n        getCodeActions: function getCodeActionsToConvertToTypeOnlyExport(context) {\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => fixSingleExportDeclaration(t, getExportSpecifierForDiagnosticSpan(context.span, context.sourceFile), context));\n          if (changes.length) {\n            return [createCodeFixAction(fixId12, changes, Diagnostics.Convert_to_type_only_export, fixId12, Diagnostics.Convert_all_re_exported_types_to_type_only_exports)];\n          }\n        },\n        fixIds: [fixId12],\n        getAllCodeActions: function getAllCodeActionsToConvertToTypeOnlyExport(context) {\n          const fixedExportDeclarations = /* @__PURE__ */ new Map();\n          return codeFixAll(context, errorCodes13, (changes, diag2) => {\n            const exportSpecifier = getExportSpecifierForDiagnosticSpan(diag2, context.sourceFile);\n            if (exportSpecifier && addToSeen(fixedExportDeclarations, getNodeId(exportSpecifier.parent.parent))) {\n              fixSingleExportDeclaration(changes, exportSpecifier, context);\n            }\n          });\n        }\n      });\n    }\n  });\n  function getDeclaration2(sourceFile, pos) {\n    const { parent: parent2 } = getTokenAtPosition(sourceFile, pos);\n    return isImportSpecifier(parent2) || isImportDeclaration(parent2) && parent2.importClause ? parent2 : void 0;\n  }\n  function doChange4(changes, sourceFile, declaration) {\n    if (isImportSpecifier(declaration)) {\n      changes.replaceNode(sourceFile, declaration, factory.updateImportSpecifier(declaration, true, declaration.propertyName, declaration.name));\n    } else {\n      const importClause = declaration.importClause;\n      if (importClause.name && importClause.namedBindings) {\n        changes.replaceNodeWithNodes(sourceFile, declaration, [\n          factory.createImportDeclaration(getSynthesizedDeepClones(declaration.modifiers, true), factory.createImportClause(true, getSynthesizedDeepClone(importClause.name, true), void 0), getSynthesizedDeepClone(declaration.moduleSpecifier, true), getSynthesizedDeepClone(declaration.assertClause, true)),\n          factory.createImportDeclaration(getSynthesizedDeepClones(declaration.modifiers, true), factory.createImportClause(true, void 0, getSynthesizedDeepClone(importClause.namedBindings, true)), getSynthesizedDeepClone(declaration.moduleSpecifier, true), getSynthesizedDeepClone(declaration.assertClause, true))\n        ]);\n      } else {\n        const importDeclaration = factory.updateImportDeclaration(declaration, declaration.modifiers, factory.updateImportClause(importClause, true, importClause.name, importClause.namedBindings), declaration.moduleSpecifier, declaration.assertClause);\n        changes.replaceNode(sourceFile, declaration, importDeclaration);\n      }\n    }\n  }\n  var errorCodes14, fixId13;\n  var init_convertToTypeOnlyImport = __esm({\n    \"src/services/codefixes/convertToTypeOnlyImport.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      errorCodes14 = [\n        Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,\n        Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code\n      ];\n      fixId13 = \"convertToTypeOnlyImport\";\n      registerCodeFix({\n        errorCodes: errorCodes14,\n        getCodeActions: function getCodeActionsToConvertToTypeOnlyImport(context) {\n          const declaration = getDeclaration2(context.sourceFile, context.span.start);\n          if (declaration) {\n            const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange4(t, context.sourceFile, declaration));\n            return [createCodeFixAction(fixId13, changes, Diagnostics.Convert_to_type_only_import, fixId13, Diagnostics.Convert_all_imports_not_used_as_a_value_to_type_only_imports)];\n          }\n          return void 0;\n        },\n        fixIds: [fixId13],\n        getAllCodeActions: function getAllCodeActionsToConvertToTypeOnlyImport(context) {\n          return codeFixAll(context, errorCodes14, (changes, diag2) => {\n            const declaration = getDeclaration2(diag2.file, diag2.start);\n            if (declaration) {\n              doChange4(changes, diag2.file, declaration);\n            }\n          });\n        }\n      });\n    }\n  });\n  function getInfo2(sourceFile, pos) {\n    const token = getTokenAtPosition(sourceFile, pos);\n    if (isIdentifier(token)) {\n      const propertySignature = cast(token.parent.parent, isPropertySignature);\n      const propertyName = token.getText(sourceFile);\n      return {\n        container: cast(propertySignature.parent, isTypeLiteralNode),\n        typeNode: propertySignature.type,\n        constraint: propertyName,\n        name: propertyName === \"K\" ? \"P\" : \"K\"\n      };\n    }\n    return void 0;\n  }\n  function doChange5(changes, sourceFile, { container, typeNode, constraint, name }) {\n    changes.replaceNode(sourceFile, container, factory.createMappedTypeNode(void 0, factory.createTypeParameterDeclaration(void 0, name, factory.createTypeReferenceNode(constraint)), void 0, void 0, typeNode, void 0));\n  }\n  var fixId14, errorCodes15;\n  var init_convertLiteralTypeToMappedType = __esm({\n    \"src/services/codefixes/convertLiteralTypeToMappedType.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId14 = \"convertLiteralTypeToMappedType\";\n      errorCodes15 = [Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];\n      registerCodeFix({\n        errorCodes: errorCodes15,\n        getCodeActions: function getCodeActionsToConvertLiteralTypeToMappedType(context) {\n          const { sourceFile, span } = context;\n          const info = getInfo2(sourceFile, span.start);\n          if (!info) {\n            return void 0;\n          }\n          const { name, constraint } = info;\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange5(t, sourceFile, info));\n          return [createCodeFixAction(fixId14, changes, [Diagnostics.Convert_0_to_1_in_0, constraint, name], fixId14, Diagnostics.Convert_all_type_literals_to_mapped_type)];\n        },\n        fixIds: [fixId14],\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes15, (changes, diag2) => {\n          const info = getInfo2(diag2.file, diag2.start);\n          if (info) {\n            doChange5(changes, diag2.file, info);\n          }\n        })\n      });\n    }\n  });\n  function getClass(sourceFile, pos) {\n    return Debug.checkDefined(getContainingClass(getTokenAtPosition(sourceFile, pos)), \"There should be a containing class\");\n  }\n  function symbolPointsToNonPrivateMember(symbol) {\n    return !symbol.valueDeclaration || !(getEffectiveModifierFlags(symbol.valueDeclaration) & 8);\n  }\n  function addMissingDeclarations(context, implementedTypeNode, sourceFile, classDeclaration, changeTracker, preferences) {\n    const checker = context.program.getTypeChecker();\n    const maybeHeritageClauseSymbol = getHeritageClauseSymbolTable(classDeclaration, checker);\n    const implementedType = checker.getTypeAtLocation(implementedTypeNode);\n    const implementedTypeSymbols = checker.getPropertiesOfType(implementedType);\n    const nonPrivateAndNotExistedInHeritageClauseMembers = implementedTypeSymbols.filter(and(symbolPointsToNonPrivateMember, (symbol) => !maybeHeritageClauseSymbol.has(symbol.escapedName)));\n    const classType = checker.getTypeAtLocation(classDeclaration);\n    const constructor = find(classDeclaration.members, (m) => isConstructorDeclaration(m));\n    if (!classType.getNumberIndexType()) {\n      createMissingIndexSignatureDeclaration(implementedType, 1);\n    }\n    if (!classType.getStringIndexType()) {\n      createMissingIndexSignatureDeclaration(implementedType, 0);\n    }\n    const importAdder = createImportAdder(sourceFile, context.program, preferences, context.host);\n    createMissingMemberNodes(classDeclaration, nonPrivateAndNotExistedInHeritageClauseMembers, sourceFile, context, preferences, importAdder, (member) => insertInterfaceMemberNode(sourceFile, classDeclaration, member));\n    importAdder.writeFixes(changeTracker);\n    function createMissingIndexSignatureDeclaration(type, kind) {\n      const indexInfoOfKind = checker.getIndexInfoOfType(type, kind);\n      if (indexInfoOfKind) {\n        insertInterfaceMemberNode(sourceFile, classDeclaration, checker.indexInfoToIndexSignatureDeclaration(indexInfoOfKind, classDeclaration, void 0, getNoopSymbolTrackerWithResolver(context)));\n      }\n    }\n    function insertInterfaceMemberNode(sourceFile2, cls, newElement) {\n      if (constructor) {\n        changeTracker.insertNodeAfter(sourceFile2, constructor, newElement);\n      } else {\n        changeTracker.insertMemberAtStart(sourceFile2, cls, newElement);\n      }\n    }\n  }\n  function getHeritageClauseSymbolTable(classDeclaration, checker) {\n    const heritageClauseNode = getEffectiveBaseTypeNode(classDeclaration);\n    if (!heritageClauseNode)\n      return createSymbolTable();\n    const heritageClauseType = checker.getTypeAtLocation(heritageClauseNode);\n    const heritageClauseTypeSymbols = checker.getPropertiesOfType(heritageClauseType);\n    return createSymbolTable(heritageClauseTypeSymbols.filter(symbolPointsToNonPrivateMember));\n  }\n  var errorCodes16, fixId15;\n  var init_fixClassIncorrectlyImplementsInterface = __esm({\n    \"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      errorCodes16 = [\n        Diagnostics.Class_0_incorrectly_implements_interface_1.code,\n        Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code\n      ];\n      fixId15 = \"fixClassIncorrectlyImplementsInterface\";\n      registerCodeFix({\n        errorCodes: errorCodes16,\n        getCodeActions(context) {\n          const { sourceFile, span } = context;\n          const classDeclaration = getClass(sourceFile, span.start);\n          return mapDefined(getEffectiveImplementsTypeNodes(classDeclaration), (implementedTypeNode) => {\n            const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => addMissingDeclarations(context, implementedTypeNode, sourceFile, classDeclaration, t, context.preferences));\n            return changes.length === 0 ? void 0 : createCodeFixAction(fixId15, changes, [Diagnostics.Implement_interface_0, implementedTypeNode.getText(sourceFile)], fixId15, Diagnostics.Implement_all_unimplemented_interfaces);\n          });\n        },\n        fixIds: [fixId15],\n        getAllCodeActions(context) {\n          const seenClassDeclarations = /* @__PURE__ */ new Map();\n          return codeFixAll(context, errorCodes16, (changes, diag2) => {\n            const classDeclaration = getClass(diag2.file, diag2.start);\n            if (addToSeen(seenClassDeclarations, getNodeId(classDeclaration))) {\n              for (const implementedTypeNode of getEffectiveImplementsTypeNodes(classDeclaration)) {\n                addMissingDeclarations(context, implementedTypeNode, diag2.file, classDeclaration, changes, context.preferences);\n              }\n            }\n          });\n        }\n      });\n    }\n  });\n  function createImportAdder(sourceFile, program, preferences, host, cancellationToken) {\n    return createImportAdderWorker(sourceFile, program, false, preferences, host, cancellationToken);\n  }\n  function createImportAdderWorker(sourceFile, program, useAutoImportProvider, preferences, host, cancellationToken) {\n    const compilerOptions = program.getCompilerOptions();\n    const addToNamespace = [];\n    const importType = [];\n    const addToExisting = /* @__PURE__ */ new Map();\n    const newImports = /* @__PURE__ */ new Map();\n    return { addImportFromDiagnostic, addImportFromExportedSymbol, writeFixes, hasFixes };\n    function addImportFromDiagnostic(diagnostic, context) {\n      const info = getFixInfos(context, diagnostic.code, diagnostic.start, useAutoImportProvider);\n      if (!info || !info.length)\n        return;\n      addImport(first(info));\n    }\n    function addImportFromExportedSymbol(exportedSymbol, isValidTypeOnlyUseSite) {\n      const moduleSymbol = Debug.checkDefined(exportedSymbol.parent);\n      const symbolName2 = getNameForExportedSymbol(exportedSymbol, getEmitScriptTarget(compilerOptions));\n      const checker = program.getTypeChecker();\n      const symbol = checker.getMergedSymbol(skipAlias(exportedSymbol, checker));\n      const exportInfo = getAllExportInfoForSymbol(sourceFile, symbol, symbolName2, moduleSymbol, false, program, host, preferences, cancellationToken);\n      const useRequire = shouldUseRequire(sourceFile, program);\n      const fix = getImportFixForSymbol(sourceFile, Debug.checkDefined(exportInfo), program, void 0, !!isValidTypeOnlyUseSite, useRequire, host, preferences);\n      if (fix) {\n        addImport({ fix, symbolName: symbolName2, errorIdentifierText: void 0 });\n      }\n    }\n    function addImport(info) {\n      var _a2, _b;\n      const { fix, symbolName: symbolName2 } = info;\n      switch (fix.kind) {\n        case 0:\n          addToNamespace.push(fix);\n          break;\n        case 1:\n          importType.push(fix);\n          break;\n        case 2: {\n          const { importClauseOrBindingPattern, importKind, addAsTypeOnly } = fix;\n          const key = String(getNodeId(importClauseOrBindingPattern));\n          let entry = addToExisting.get(key);\n          if (!entry) {\n            addToExisting.set(key, entry = { importClauseOrBindingPattern, defaultImport: void 0, namedImports: /* @__PURE__ */ new Map() });\n          }\n          if (importKind === 0) {\n            const prevValue = entry == null ? void 0 : entry.namedImports.get(symbolName2);\n            entry.namedImports.set(symbolName2, reduceAddAsTypeOnlyValues(prevValue, addAsTypeOnly));\n          } else {\n            Debug.assert(entry.defaultImport === void 0 || entry.defaultImport.name === symbolName2, \"(Add to Existing) Default import should be missing or match symbolName\");\n            entry.defaultImport = {\n              name: symbolName2,\n              addAsTypeOnly: reduceAddAsTypeOnlyValues((_a2 = entry.defaultImport) == null ? void 0 : _a2.addAsTypeOnly, addAsTypeOnly)\n            };\n          }\n          break;\n        }\n        case 3: {\n          const { moduleSpecifier, importKind, useRequire, addAsTypeOnly } = fix;\n          const entry = getNewImportEntry(moduleSpecifier, importKind, useRequire, addAsTypeOnly);\n          Debug.assert(entry.useRequire === useRequire, \"(Add new) Tried to add an `import` and a `require` for the same module\");\n          switch (importKind) {\n            case 1:\n              Debug.assert(entry.defaultImport === void 0 || entry.defaultImport.name === symbolName2, \"(Add new) Default import should be missing or match symbolName\");\n              entry.defaultImport = { name: symbolName2, addAsTypeOnly: reduceAddAsTypeOnlyValues((_b = entry.defaultImport) == null ? void 0 : _b.addAsTypeOnly, addAsTypeOnly) };\n              break;\n            case 0:\n              const prevValue = (entry.namedImports || (entry.namedImports = /* @__PURE__ */ new Map())).get(symbolName2);\n              entry.namedImports.set(symbolName2, reduceAddAsTypeOnlyValues(prevValue, addAsTypeOnly));\n              break;\n            case 3:\n            case 2:\n              Debug.assert(entry.namespaceLikeImport === void 0 || entry.namespaceLikeImport.name === symbolName2, \"Namespacelike import shoudl be missing or match symbolName\");\n              entry.namespaceLikeImport = { importKind, name: symbolName2, addAsTypeOnly };\n              break;\n          }\n          break;\n        }\n        case 4:\n          break;\n        default:\n          Debug.assertNever(fix, `fix wasn't never - got kind ${fix.kind}`);\n      }\n      function reduceAddAsTypeOnlyValues(prevValue, newValue) {\n        return Math.max(prevValue != null ? prevValue : 0, newValue);\n      }\n      function getNewImportEntry(moduleSpecifier, importKind, useRequire, addAsTypeOnly) {\n        const typeOnlyKey = newImportsKey(moduleSpecifier, true);\n        const nonTypeOnlyKey = newImportsKey(moduleSpecifier, false);\n        const typeOnlyEntry = newImports.get(typeOnlyKey);\n        const nonTypeOnlyEntry = newImports.get(nonTypeOnlyKey);\n        const newEntry = {\n          defaultImport: void 0,\n          namedImports: void 0,\n          namespaceLikeImport: void 0,\n          useRequire\n        };\n        if (importKind === 1 && addAsTypeOnly === 2) {\n          if (typeOnlyEntry)\n            return typeOnlyEntry;\n          newImports.set(typeOnlyKey, newEntry);\n          return newEntry;\n        }\n        if (addAsTypeOnly === 1 && (typeOnlyEntry || nonTypeOnlyEntry)) {\n          return typeOnlyEntry || nonTypeOnlyEntry;\n        }\n        if (nonTypeOnlyEntry) {\n          return nonTypeOnlyEntry;\n        }\n        newImports.set(nonTypeOnlyKey, newEntry);\n        return newEntry;\n      }\n      function newImportsKey(moduleSpecifier, topLevelTypeOnly) {\n        return `${topLevelTypeOnly ? 1 : 0}|${moduleSpecifier}`;\n      }\n    }\n    function writeFixes(changeTracker) {\n      const quotePreference = getQuotePreference(sourceFile, preferences);\n      for (const fix of addToNamespace) {\n        addNamespaceQualifier(changeTracker, sourceFile, fix);\n      }\n      for (const fix of importType) {\n        addImportType(changeTracker, sourceFile, fix, quotePreference);\n      }\n      addToExisting.forEach(({ importClauseOrBindingPattern, defaultImport, namedImports }) => {\n        doAddExistingFix(changeTracker, sourceFile, importClauseOrBindingPattern, defaultImport, arrayFrom(namedImports.entries(), ([name, addAsTypeOnly]) => ({ addAsTypeOnly, name })), compilerOptions, preferences);\n      });\n      let newDeclarations;\n      newImports.forEach(({ useRequire, defaultImport, namedImports, namespaceLikeImport }, key) => {\n        const moduleSpecifier = key.slice(2);\n        const getDeclarations = useRequire ? getNewRequires : getNewImports;\n        const declarations = getDeclarations(moduleSpecifier, quotePreference, defaultImport, namedImports && arrayFrom(namedImports.entries(), ([name, addAsTypeOnly]) => ({ addAsTypeOnly, name })), namespaceLikeImport, compilerOptions);\n        newDeclarations = combine(newDeclarations, declarations);\n      });\n      if (newDeclarations) {\n        insertImports(changeTracker, sourceFile, newDeclarations, true, preferences);\n      }\n    }\n    function hasFixes() {\n      return addToNamespace.length > 0 || importType.length > 0 || addToExisting.size > 0 || newImports.size > 0;\n    }\n  }\n  function createImportSpecifierResolver(importingFile, program, host, preferences) {\n    const packageJsonImportFilter = createPackageJsonImportFilter(importingFile, preferences, host);\n    const importMap = createExistingImportMap(program.getTypeChecker(), importingFile, program.getCompilerOptions());\n    return { getModuleSpecifierForBestExportInfo };\n    function getModuleSpecifierForBestExportInfo(exportInfo, position, isValidTypeOnlyUseSite, fromCacheOnly) {\n      const { fixes, computedWithoutCacheCount } = getImportFixes(exportInfo, position, isValidTypeOnlyUseSite, false, program, importingFile, host, preferences, importMap, fromCacheOnly);\n      const result = getBestFix(fixes, importingFile, program, packageJsonImportFilter, host);\n      return result && { ...result, computedWithoutCacheCount };\n    }\n  }\n  function getImportCompletionAction(targetSymbol, moduleSymbol, exportMapKey, sourceFile, symbolName2, isJsxTagName, host, program, formatContext, position, preferences, cancellationToken) {\n    const compilerOptions = program.getCompilerOptions();\n    let exportInfos;\n    if (exportMapKey) {\n      exportInfos = getExportInfoMap(sourceFile, host, program, preferences, cancellationToken).get(sourceFile.path, exportMapKey);\n      Debug.assertIsDefined(exportInfos, \"Some exportInfo should match the specified exportMapKey\");\n    } else {\n      exportInfos = pathIsBareSpecifier(stripQuotes(moduleSymbol.name)) ? [getSingleExportInfoForSymbol(targetSymbol, symbolName2, moduleSymbol, program, host)] : getAllExportInfoForSymbol(sourceFile, targetSymbol, symbolName2, moduleSymbol, isJsxTagName, program, host, preferences, cancellationToken);\n      Debug.assertIsDefined(exportInfos, \"Some exportInfo should match the specified symbol / moduleSymbol\");\n    }\n    const useRequire = shouldUseRequire(sourceFile, program);\n    const isValidTypeOnlyUseSite = isValidTypeOnlyAliasUseSite(getTokenAtPosition(sourceFile, position));\n    const fix = Debug.checkDefined(getImportFixForSymbol(sourceFile, exportInfos, program, position, isValidTypeOnlyUseSite, useRequire, host, preferences));\n    return {\n      moduleSpecifier: fix.moduleSpecifier,\n      codeAction: codeFixActionToCodeAction(codeActionForFix({ host, formatContext, preferences }, sourceFile, symbolName2, fix, false, compilerOptions, preferences))\n    };\n  }\n  function getPromoteTypeOnlyCompletionAction(sourceFile, symbolToken, program, host, formatContext, preferences) {\n    const compilerOptions = program.getCompilerOptions();\n    const symbolName2 = single(getSymbolNamesToImport(sourceFile, program.getTypeChecker(), symbolToken, compilerOptions));\n    const fix = getTypeOnlyPromotionFix(sourceFile, symbolToken, symbolName2, program);\n    const includeSymbolNameInDescription = symbolName2 !== symbolToken.text;\n    return fix && codeFixActionToCodeAction(codeActionForFix({ host, formatContext, preferences }, sourceFile, symbolName2, fix, includeSymbolNameInDescription, compilerOptions, preferences));\n  }\n  function getImportFixForSymbol(sourceFile, exportInfos, program, position, isValidTypeOnlyUseSite, useRequire, host, preferences) {\n    const packageJsonImportFilter = createPackageJsonImportFilter(sourceFile, preferences, host);\n    return getBestFix(getImportFixes(exportInfos, position, isValidTypeOnlyUseSite, useRequire, program, sourceFile, host, preferences).fixes, sourceFile, program, packageJsonImportFilter, host);\n  }\n  function codeFixActionToCodeAction({ description: description2, changes, commands }) {\n    return { description: description2, changes, commands };\n  }\n  function getAllExportInfoForSymbol(importingFile, symbol, symbolName2, moduleSymbol, preferCapitalized, program, host, preferences, cancellationToken) {\n    const getChecker = createGetChecker(program, host);\n    return getExportInfoMap(importingFile, host, program, preferences, cancellationToken).search(importingFile.path, preferCapitalized, (name) => name === symbolName2, (info) => {\n      if (skipAlias(info[0].symbol, getChecker(info[0].isFromPackageJson)) === symbol && info.some((i) => i.moduleSymbol === moduleSymbol || i.symbol.parent === moduleSymbol)) {\n        return info;\n      }\n    });\n  }\n  function getSingleExportInfoForSymbol(symbol, symbolName2, moduleSymbol, program, host) {\n    var _a2, _b;\n    const compilerOptions = program.getCompilerOptions();\n    const mainProgramInfo = getInfoWithChecker(program.getTypeChecker(), false);\n    if (mainProgramInfo) {\n      return mainProgramInfo;\n    }\n    const autoImportProvider = (_b = (_a2 = host.getPackageJsonAutoImportProvider) == null ? void 0 : _a2.call(host)) == null ? void 0 : _b.getTypeChecker();\n    return Debug.checkDefined(autoImportProvider && getInfoWithChecker(autoImportProvider, true), `Could not find symbol in specified module for code actions`);\n    function getInfoWithChecker(checker, isFromPackageJson) {\n      const defaultInfo = getDefaultLikeExportInfo(moduleSymbol, checker, compilerOptions);\n      if (defaultInfo && skipAlias(defaultInfo.symbol, checker) === symbol) {\n        return { symbol: defaultInfo.symbol, moduleSymbol, moduleFileName: void 0, exportKind: defaultInfo.exportKind, targetFlags: skipAlias(symbol, checker).flags, isFromPackageJson };\n      }\n      const named = checker.tryGetMemberInModuleExportsAndProperties(symbolName2, moduleSymbol);\n      if (named && skipAlias(named, checker) === symbol) {\n        return { symbol: named, moduleSymbol, moduleFileName: void 0, exportKind: 0, targetFlags: skipAlias(symbol, checker).flags, isFromPackageJson };\n      }\n    }\n  }\n  function getImportFixes(exportInfos, usagePosition, isValidTypeOnlyUseSite, useRequire, program, sourceFile, host, preferences, importMap = createExistingImportMap(program.getTypeChecker(), sourceFile, program.getCompilerOptions()), fromCacheOnly) {\n    const checker = program.getTypeChecker();\n    const existingImports = flatMap(exportInfos, importMap.getImportsForExportInfo);\n    const useNamespace = usagePosition !== void 0 && tryUseExistingNamespaceImport(existingImports, usagePosition);\n    const addToExisting = tryAddToExistingImport(existingImports, isValidTypeOnlyUseSite, checker, program.getCompilerOptions());\n    if (addToExisting) {\n      return {\n        computedWithoutCacheCount: 0,\n        fixes: [...useNamespace ? [useNamespace] : emptyArray, addToExisting]\n      };\n    }\n    const { fixes, computedWithoutCacheCount = 0 } = getFixesForAddImport(exportInfos, existingImports, program, sourceFile, usagePosition, isValidTypeOnlyUseSite, useRequire, host, preferences, fromCacheOnly);\n    return {\n      computedWithoutCacheCount,\n      fixes: [...useNamespace ? [useNamespace] : emptyArray, ...fixes]\n    };\n  }\n  function tryUseExistingNamespaceImport(existingImports, position) {\n    return firstDefined(existingImports, ({ declaration, importKind }) => {\n      var _a2;\n      if (importKind !== 0)\n        return void 0;\n      const namespacePrefix = getNamespaceLikeImportText(declaration);\n      const moduleSpecifier = namespacePrefix && ((_a2 = tryGetModuleSpecifierFromDeclaration(declaration)) == null ? void 0 : _a2.text);\n      if (moduleSpecifier) {\n        return { kind: 0, namespacePrefix, usagePosition: position, moduleSpecifier };\n      }\n    });\n  }\n  function getNamespaceLikeImportText(declaration) {\n    var _a2, _b, _c;\n    switch (declaration.kind) {\n      case 257:\n        return (_a2 = tryCast(declaration.name, isIdentifier)) == null ? void 0 : _a2.text;\n      case 268:\n        return declaration.name.text;\n      case 269:\n        return (_c = tryCast((_b = declaration.importClause) == null ? void 0 : _b.namedBindings, isNamespaceImport)) == null ? void 0 : _c.name.text;\n      default:\n        return Debug.assertNever(declaration);\n    }\n  }\n  function getAddAsTypeOnly(isValidTypeOnlyUseSite, isForNewImportDeclaration, symbol, targetFlags, checker, compilerOptions) {\n    if (!isValidTypeOnlyUseSite) {\n      return 4;\n    }\n    if (isForNewImportDeclaration && compilerOptions.importsNotUsedAsValues === 2) {\n      return 2;\n    }\n    if (importNameElisionDisabled(compilerOptions) && (!(targetFlags & 111551) || !!checker.getTypeOnlyAliasDeclaration(symbol))) {\n      return 2;\n    }\n    return 1;\n  }\n  function tryAddToExistingImport(existingImports, isValidTypeOnlyUseSite, checker, compilerOptions) {\n    return firstDefined(existingImports, ({ declaration, importKind, symbol, targetFlags }) => {\n      if (importKind === 3 || importKind === 2 || declaration.kind === 268) {\n        return void 0;\n      }\n      if (declaration.kind === 257) {\n        return (importKind === 0 || importKind === 1) && declaration.name.kind === 203 ? { kind: 2, importClauseOrBindingPattern: declaration.name, importKind, moduleSpecifier: declaration.initializer.arguments[0].text, addAsTypeOnly: 4 } : void 0;\n      }\n      const { importClause } = declaration;\n      if (!importClause || !isStringLiteralLike(declaration.moduleSpecifier))\n        return void 0;\n      const { name, namedBindings } = importClause;\n      if (importClause.isTypeOnly && !(importKind === 0 && namedBindings))\n        return void 0;\n      const addAsTypeOnly = getAddAsTypeOnly(isValidTypeOnlyUseSite, false, symbol, targetFlags, checker, compilerOptions);\n      if (importKind === 1 && (name || addAsTypeOnly === 2 && namedBindings))\n        return void 0;\n      if (importKind === 0 && (namedBindings == null ? void 0 : namedBindings.kind) === 271)\n        return void 0;\n      return {\n        kind: 2,\n        importClauseOrBindingPattern: importClause,\n        importKind,\n        moduleSpecifier: declaration.moduleSpecifier.text,\n        addAsTypeOnly\n      };\n    });\n  }\n  function createExistingImportMap(checker, importingFile, compilerOptions) {\n    let importMap;\n    for (const moduleSpecifier of importingFile.imports) {\n      const i = importFromModuleSpecifier(moduleSpecifier);\n      if (isVariableDeclarationInitializedToRequire(i.parent)) {\n        const moduleSymbol = checker.resolveExternalModuleName(moduleSpecifier);\n        if (moduleSymbol) {\n          (importMap || (importMap = createMultiMap())).add(getSymbolId(moduleSymbol), i.parent);\n        }\n      } else if (i.kind === 269 || i.kind === 268) {\n        const moduleSymbol = checker.getSymbolAtLocation(moduleSpecifier);\n        if (moduleSymbol) {\n          (importMap || (importMap = createMultiMap())).add(getSymbolId(moduleSymbol), i);\n        }\n      }\n    }\n    return {\n      getImportsForExportInfo: ({ moduleSymbol, exportKind, targetFlags, symbol }) => {\n        if (!(targetFlags & 111551) && isSourceFileJS(importingFile))\n          return emptyArray;\n        const matchingDeclarations = importMap == null ? void 0 : importMap.get(getSymbolId(moduleSymbol));\n        if (!matchingDeclarations)\n          return emptyArray;\n        const importKind = getImportKind(importingFile, exportKind, compilerOptions);\n        return matchingDeclarations.map((declaration) => ({ declaration, importKind, symbol, targetFlags }));\n      }\n    };\n  }\n  function shouldUseRequire(sourceFile, program) {\n    if (!isSourceFileJS(sourceFile)) {\n      return false;\n    }\n    if (sourceFile.commonJsModuleIndicator && !sourceFile.externalModuleIndicator)\n      return true;\n    if (sourceFile.externalModuleIndicator && !sourceFile.commonJsModuleIndicator)\n      return false;\n    const compilerOptions = program.getCompilerOptions();\n    if (compilerOptions.configFile) {\n      return getEmitModuleKind(compilerOptions) < 5;\n    }\n    for (const otherFile of program.getSourceFiles()) {\n      if (otherFile === sourceFile || !isSourceFileJS(otherFile) || program.isSourceFileFromExternalLibrary(otherFile))\n        continue;\n      if (otherFile.commonJsModuleIndicator && !otherFile.externalModuleIndicator)\n        return true;\n      if (otherFile.externalModuleIndicator && !otherFile.commonJsModuleIndicator)\n        return false;\n    }\n    return true;\n  }\n  function createGetChecker(program, host) {\n    return memoizeOne((isFromPackageJson) => isFromPackageJson ? host.getPackageJsonAutoImportProvider().getTypeChecker() : program.getTypeChecker());\n  }\n  function getNewImportFixes(program, sourceFile, usagePosition, isValidTypeOnlyUseSite, useRequire, exportInfo, host, preferences, fromCacheOnly) {\n    const isJs = isSourceFileJS(sourceFile);\n    const compilerOptions = program.getCompilerOptions();\n    const moduleSpecifierResolutionHost = createModuleSpecifierResolutionHost(program, host);\n    const getChecker = createGetChecker(program, host);\n    const moduleResolution = getEmitModuleResolutionKind(compilerOptions);\n    const rejectNodeModulesRelativePaths = moduleResolutionUsesNodeModules(moduleResolution);\n    const getModuleSpecifiers2 = fromCacheOnly ? (moduleSymbol) => ({ moduleSpecifiers: ts_moduleSpecifiers_exports.tryGetModuleSpecifiersFromCache(moduleSymbol, sourceFile, moduleSpecifierResolutionHost, preferences), computedWithoutCache: false }) : (moduleSymbol, checker) => ts_moduleSpecifiers_exports.getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions, sourceFile, moduleSpecifierResolutionHost, preferences);\n    let computedWithoutCacheCount = 0;\n    const fixes = flatMap(exportInfo, (exportInfo2, i) => {\n      const checker = getChecker(exportInfo2.isFromPackageJson);\n      const { computedWithoutCache, moduleSpecifiers } = getModuleSpecifiers2(exportInfo2.moduleSymbol, checker);\n      const importedSymbolHasValueMeaning = !!(exportInfo2.targetFlags & 111551);\n      const addAsTypeOnly = getAddAsTypeOnly(isValidTypeOnlyUseSite, true, exportInfo2.symbol, exportInfo2.targetFlags, checker, compilerOptions);\n      computedWithoutCacheCount += computedWithoutCache ? 1 : 0;\n      return mapDefined(moduleSpecifiers, (moduleSpecifier) => {\n        var _a2;\n        if (rejectNodeModulesRelativePaths && pathContainsNodeModules(moduleSpecifier)) {\n          return void 0;\n        }\n        if (!importedSymbolHasValueMeaning && isJs && usagePosition !== void 0) {\n          return { kind: 1, moduleSpecifier, usagePosition, exportInfo: exportInfo2, isReExport: i > 0 };\n        }\n        const importKind = getImportKind(sourceFile, exportInfo2.exportKind, compilerOptions);\n        let qualification;\n        if (usagePosition !== void 0 && importKind === 3 && exportInfo2.exportKind === 0) {\n          const exportEquals = checker.resolveExternalModuleSymbol(exportInfo2.moduleSymbol);\n          let namespacePrefix;\n          if (exportEquals !== exportInfo2.moduleSymbol) {\n            namespacePrefix = (_a2 = getDefaultExportInfoWorker(exportEquals, checker, compilerOptions)) == null ? void 0 : _a2.name;\n          }\n          namespacePrefix || (namespacePrefix = moduleSymbolToValidIdentifier(exportInfo2.moduleSymbol, getEmitScriptTarget(compilerOptions), false));\n          qualification = { namespacePrefix, usagePosition };\n        }\n        return {\n          kind: 3,\n          moduleSpecifier,\n          importKind,\n          useRequire,\n          addAsTypeOnly,\n          exportInfo: exportInfo2,\n          isReExport: i > 0,\n          qualification\n        };\n      });\n    });\n    return { computedWithoutCacheCount, fixes };\n  }\n  function getFixesForAddImport(exportInfos, existingImports, program, sourceFile, usagePosition, isValidTypeOnlyUseSite, useRequire, host, preferences, fromCacheOnly) {\n    const existingDeclaration = firstDefined(existingImports, (info) => newImportInfoFromExistingSpecifier(info, isValidTypeOnlyUseSite, useRequire, program.getTypeChecker(), program.getCompilerOptions()));\n    return existingDeclaration ? { fixes: [existingDeclaration] } : getNewImportFixes(program, sourceFile, usagePosition, isValidTypeOnlyUseSite, useRequire, exportInfos, host, preferences, fromCacheOnly);\n  }\n  function newImportInfoFromExistingSpecifier({ declaration, importKind, symbol, targetFlags }, isValidTypeOnlyUseSite, useRequire, checker, compilerOptions) {\n    var _a2;\n    const moduleSpecifier = (_a2 = tryGetModuleSpecifierFromDeclaration(declaration)) == null ? void 0 : _a2.text;\n    if (moduleSpecifier) {\n      const addAsTypeOnly = useRequire ? 4 : getAddAsTypeOnly(isValidTypeOnlyUseSite, true, symbol, targetFlags, checker, compilerOptions);\n      return { kind: 3, moduleSpecifier, importKind, addAsTypeOnly, useRequire };\n    }\n  }\n  function getFixInfos(context, errorCode, pos, useAutoImportProvider) {\n    const symbolToken = getTokenAtPosition(context.sourceFile, pos);\n    let info;\n    if (errorCode === Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code) {\n      info = getFixesInfoForUMDImport(context, symbolToken);\n    } else if (!isIdentifier(symbolToken)) {\n      return void 0;\n    } else if (errorCode === Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code) {\n      const symbolName2 = single(getSymbolNamesToImport(context.sourceFile, context.program.getTypeChecker(), symbolToken, context.program.getCompilerOptions()));\n      const fix = getTypeOnlyPromotionFix(context.sourceFile, symbolToken, symbolName2, context.program);\n      return fix && [{ fix, symbolName: symbolName2, errorIdentifierText: symbolToken.text }];\n    } else {\n      info = getFixesInfoForNonUMDImport(context, symbolToken, useAutoImportProvider);\n    }\n    const packageJsonImportFilter = createPackageJsonImportFilter(context.sourceFile, context.preferences, context.host);\n    return info && sortFixInfo(info, context.sourceFile, context.program, packageJsonImportFilter, context.host);\n  }\n  function sortFixInfo(fixes, sourceFile, program, packageJsonImportFilter, host) {\n    const _toPath = (fileName) => toPath(fileName, host.getCurrentDirectory(), hostGetCanonicalFileName(host));\n    return sort(fixes, (a, b) => compareBooleans(!!a.isJsxNamespaceFix, !!b.isJsxNamespaceFix) || compareValues(a.fix.kind, b.fix.kind) || compareModuleSpecifiers(a.fix, b.fix, sourceFile, program, packageJsonImportFilter.allowsImportingSpecifier, _toPath));\n  }\n  function getBestFix(fixes, sourceFile, program, packageJsonImportFilter, host) {\n    if (!some(fixes))\n      return;\n    if (fixes[0].kind === 0 || fixes[0].kind === 2) {\n      return fixes[0];\n    }\n    return fixes.reduce((best, fix) => compareModuleSpecifiers(fix, best, sourceFile, program, packageJsonImportFilter.allowsImportingSpecifier, (fileName) => toPath(fileName, host.getCurrentDirectory(), hostGetCanonicalFileName(host))) === -1 ? fix : best);\n  }\n  function compareModuleSpecifiers(a, b, importingFile, program, allowsImportingSpecifier, toPath3) {\n    if (a.kind !== 0 && b.kind !== 0) {\n      return compareBooleans(allowsImportingSpecifier(b.moduleSpecifier), allowsImportingSpecifier(a.moduleSpecifier)) || compareNodeCoreModuleSpecifiers(a.moduleSpecifier, b.moduleSpecifier, importingFile, program) || compareBooleans(isFixPossiblyReExportingImportingFile(a, importingFile, program.getCompilerOptions(), toPath3), isFixPossiblyReExportingImportingFile(b, importingFile, program.getCompilerOptions(), toPath3)) || compareNumberOfDirectorySeparators(a.moduleSpecifier, b.moduleSpecifier);\n    }\n    return 0;\n  }\n  function isFixPossiblyReExportingImportingFile(fix, importingFile, compilerOptions, toPath3) {\n    var _a2;\n    if (fix.isReExport && ((_a2 = fix.exportInfo) == null ? void 0 : _a2.moduleFileName) && getEmitModuleResolutionKind(compilerOptions) === 2 && isIndexFileName(fix.exportInfo.moduleFileName)) {\n      const reExportDir = toPath3(getDirectoryPath(fix.exportInfo.moduleFileName));\n      return startsWith(importingFile.path, reExportDir);\n    }\n    return false;\n  }\n  function isIndexFileName(fileName) {\n    return getBaseFileName(fileName, [\".js\", \".jsx\", \".d.ts\", \".ts\", \".tsx\"], true) === \"index\";\n  }\n  function compareNodeCoreModuleSpecifiers(a, b, importingFile, program) {\n    if (startsWith(a, \"node:\") && !startsWith(b, \"node:\"))\n      return shouldUseUriStyleNodeCoreModules(importingFile, program) ? -1 : 1;\n    if (startsWith(b, \"node:\") && !startsWith(a, \"node:\"))\n      return shouldUseUriStyleNodeCoreModules(importingFile, program) ? 1 : -1;\n    return 0;\n  }\n  function getFixesInfoForUMDImport({ sourceFile, program, host, preferences }, token) {\n    const checker = program.getTypeChecker();\n    const umdSymbol = getUmdSymbol(token, checker);\n    if (!umdSymbol)\n      return void 0;\n    const symbol = checker.getAliasedSymbol(umdSymbol);\n    const symbolName2 = umdSymbol.name;\n    const exportInfo = [{ symbol: umdSymbol, moduleSymbol: symbol, moduleFileName: void 0, exportKind: 3, targetFlags: symbol.flags, isFromPackageJson: false }];\n    const useRequire = shouldUseRequire(sourceFile, program);\n    const fixes = getImportFixes(exportInfo, void 0, false, useRequire, program, sourceFile, host, preferences).fixes;\n    return fixes.map((fix) => {\n      var _a2;\n      return { fix, symbolName: symbolName2, errorIdentifierText: (_a2 = tryCast(token, isIdentifier)) == null ? void 0 : _a2.text };\n    });\n  }\n  function getUmdSymbol(token, checker) {\n    const umdSymbol = isIdentifier(token) ? checker.getSymbolAtLocation(token) : void 0;\n    if (isUMDExportSymbol(umdSymbol))\n      return umdSymbol;\n    const { parent: parent2 } = token;\n    if (isJsxOpeningLikeElement(parent2) && parent2.tagName === token || isJsxOpeningFragment(parent2)) {\n      const parentSymbol = checker.resolveName(checker.getJsxNamespace(parent2), isJsxOpeningLikeElement(parent2) ? token : parent2, 111551, false);\n      if (isUMDExportSymbol(parentSymbol)) {\n        return parentSymbol;\n      }\n    }\n    return void 0;\n  }\n  function getImportKind(importingFile, exportKind, compilerOptions, forceImportKeyword) {\n    if (compilerOptions.verbatimModuleSyntax && (getEmitModuleKind(compilerOptions) === 1 || importingFile.impliedNodeFormat === 1)) {\n      return 3;\n    }\n    switch (exportKind) {\n      case 0:\n        return 0;\n      case 1:\n        return 1;\n      case 2:\n        return getExportEqualsImportKind(importingFile, compilerOptions, !!forceImportKeyword);\n      case 3:\n        return getUmdImportKind(importingFile, compilerOptions, !!forceImportKeyword);\n      default:\n        return Debug.assertNever(exportKind);\n    }\n  }\n  function getUmdImportKind(importingFile, compilerOptions, forceImportKeyword) {\n    if (getAllowSyntheticDefaultImports(compilerOptions)) {\n      return 1;\n    }\n    const moduleKind = getEmitModuleKind(compilerOptions);\n    switch (moduleKind) {\n      case 2:\n      case 1:\n      case 3:\n        if (isInJSFile(importingFile)) {\n          return isExternalModule(importingFile) || forceImportKeyword ? 2 : 3;\n        }\n        return 3;\n      case 4:\n      case 5:\n      case 6:\n      case 7:\n      case 99:\n      case 0:\n        return 2;\n      case 100:\n      case 199:\n        return importingFile.impliedNodeFormat === 99 ? 2 : 3;\n      default:\n        return Debug.assertNever(moduleKind, `Unexpected moduleKind ${moduleKind}`);\n    }\n  }\n  function getFixesInfoForNonUMDImport({ sourceFile, program, cancellationToken, host, preferences }, symbolToken, useAutoImportProvider) {\n    const checker = program.getTypeChecker();\n    const compilerOptions = program.getCompilerOptions();\n    return flatMap(getSymbolNamesToImport(sourceFile, checker, symbolToken, compilerOptions), (symbolName2) => {\n      if (symbolName2 === \"default\") {\n        return void 0;\n      }\n      const isValidTypeOnlyUseSite = isValidTypeOnlyAliasUseSite(symbolToken);\n      const useRequire = shouldUseRequire(sourceFile, program);\n      const exportInfo = getExportInfos(symbolName2, isJSXTagName(symbolToken), getMeaningFromLocation(symbolToken), cancellationToken, sourceFile, program, useAutoImportProvider, host, preferences);\n      return arrayFrom(flatMapIterator(exportInfo.values(), (exportInfos) => getImportFixes(exportInfos, symbolToken.getStart(sourceFile), isValidTypeOnlyUseSite, useRequire, program, sourceFile, host, preferences).fixes), (fix) => ({ fix, symbolName: symbolName2, errorIdentifierText: symbolToken.text, isJsxNamespaceFix: symbolName2 !== symbolToken.text }));\n    });\n  }\n  function getTypeOnlyPromotionFix(sourceFile, symbolToken, symbolName2, program) {\n    const checker = program.getTypeChecker();\n    const symbol = checker.resolveName(symbolName2, symbolToken, 111551, true);\n    if (!symbol)\n      return void 0;\n    const typeOnlyAliasDeclaration = checker.getTypeOnlyAliasDeclaration(symbol);\n    if (!typeOnlyAliasDeclaration || getSourceFileOfNode(typeOnlyAliasDeclaration) !== sourceFile)\n      return void 0;\n    return { kind: 4, typeOnlyAliasDeclaration };\n  }\n  function getSymbolNamesToImport(sourceFile, checker, symbolToken, compilerOptions) {\n    const parent2 = symbolToken.parent;\n    if ((isJsxOpeningLikeElement(parent2) || isJsxClosingElement(parent2)) && parent2.tagName === symbolToken && jsxModeNeedsExplicitImport(compilerOptions.jsx)) {\n      const jsxNamespace = checker.getJsxNamespace(sourceFile);\n      if (needsJsxNamespaceFix(jsxNamespace, symbolToken, checker)) {\n        const needsComponentNameFix = !isIntrinsicJsxName(symbolToken.text) && !checker.resolveName(symbolToken.text, symbolToken, 111551, false);\n        return needsComponentNameFix ? [symbolToken.text, jsxNamespace] : [jsxNamespace];\n      }\n    }\n    return [symbolToken.text];\n  }\n  function needsJsxNamespaceFix(jsxNamespace, symbolToken, checker) {\n    if (isIntrinsicJsxName(symbolToken.text))\n      return true;\n    const namespaceSymbol = checker.resolveName(jsxNamespace, symbolToken, 111551, true);\n    return !namespaceSymbol || some(namespaceSymbol.declarations, isTypeOnlyImportOrExportDeclaration) && !(namespaceSymbol.flags & 111551);\n  }\n  function getExportInfos(symbolName2, isJsxTagName, currentTokenMeaning, cancellationToken, fromFile, program, useAutoImportProvider, host, preferences) {\n    var _a2;\n    const originalSymbolToExportInfos = createMultiMap();\n    const packageJsonFilter = createPackageJsonImportFilter(fromFile, preferences, host);\n    const moduleSpecifierCache = (_a2 = host.getModuleSpecifierCache) == null ? void 0 : _a2.call(host);\n    const getModuleSpecifierResolutionHost = memoizeOne((isFromPackageJson) => {\n      return createModuleSpecifierResolutionHost(isFromPackageJson ? host.getPackageJsonAutoImportProvider() : program, host);\n    });\n    function addSymbol(moduleSymbol, toFile, exportedSymbol, exportKind, program2, isFromPackageJson) {\n      const moduleSpecifierResolutionHost = getModuleSpecifierResolutionHost(isFromPackageJson);\n      if (toFile && isImportableFile(program2, fromFile, toFile, preferences, packageJsonFilter, moduleSpecifierResolutionHost, moduleSpecifierCache) || !toFile && packageJsonFilter.allowsImportingAmbientModule(moduleSymbol, moduleSpecifierResolutionHost)) {\n        const checker = program2.getTypeChecker();\n        originalSymbolToExportInfos.add(getUniqueSymbolId(exportedSymbol, checker).toString(), { symbol: exportedSymbol, moduleSymbol, moduleFileName: toFile == null ? void 0 : toFile.fileName, exportKind, targetFlags: skipAlias(exportedSymbol, checker).flags, isFromPackageJson });\n      }\n    }\n    forEachExternalModuleToImportFrom(program, host, preferences, useAutoImportProvider, (moduleSymbol, sourceFile, program2, isFromPackageJson) => {\n      const checker = program2.getTypeChecker();\n      cancellationToken.throwIfCancellationRequested();\n      const compilerOptions = program2.getCompilerOptions();\n      const defaultInfo = getDefaultLikeExportInfo(moduleSymbol, checker, compilerOptions);\n      if (defaultInfo && (defaultInfo.name === symbolName2 || moduleSymbolToValidIdentifier(moduleSymbol, getEmitScriptTarget(compilerOptions), isJsxTagName) === symbolName2) && symbolHasMeaning(defaultInfo.resolvedSymbol, currentTokenMeaning)) {\n        addSymbol(moduleSymbol, sourceFile, defaultInfo.symbol, defaultInfo.exportKind, program2, isFromPackageJson);\n      }\n      const exportSymbolWithIdenticalName = checker.tryGetMemberInModuleExportsAndProperties(symbolName2, moduleSymbol);\n      if (exportSymbolWithIdenticalName && symbolHasMeaning(exportSymbolWithIdenticalName, currentTokenMeaning)) {\n        addSymbol(moduleSymbol, sourceFile, exportSymbolWithIdenticalName, 0, program2, isFromPackageJson);\n      }\n    });\n    return originalSymbolToExportInfos;\n  }\n  function getExportEqualsImportKind(importingFile, compilerOptions, forceImportKeyword) {\n    const allowSyntheticDefaults = getAllowSyntheticDefaultImports(compilerOptions);\n    const isJS = isInJSFile(importingFile);\n    if (!isJS && getEmitModuleKind(compilerOptions) >= 5) {\n      return allowSyntheticDefaults ? 1 : 2;\n    }\n    if (isJS) {\n      return isExternalModule(importingFile) || forceImportKeyword ? allowSyntheticDefaults ? 1 : 2 : 3;\n    }\n    for (const statement of importingFile.statements) {\n      if (isImportEqualsDeclaration(statement) && !nodeIsMissing(statement.moduleReference)) {\n        return 3;\n      }\n    }\n    return allowSyntheticDefaults ? 1 : 3;\n  }\n  function codeActionForFix(context, sourceFile, symbolName2, fix, includeSymbolNameInDescription, compilerOptions, preferences) {\n    let diag2;\n    const changes = ts_textChanges_exports.ChangeTracker.with(context, (tracker) => {\n      diag2 = codeActionForFixWorker(tracker, sourceFile, symbolName2, fix, includeSymbolNameInDescription, compilerOptions, preferences);\n    });\n    return createCodeFixAction(importFixName, changes, diag2, importFixId, Diagnostics.Add_all_missing_imports);\n  }\n  function codeActionForFixWorker(changes, sourceFile, symbolName2, fix, includeSymbolNameInDescription, compilerOptions, preferences) {\n    const quotePreference = getQuotePreference(sourceFile, preferences);\n    switch (fix.kind) {\n      case 0:\n        addNamespaceQualifier(changes, sourceFile, fix);\n        return [Diagnostics.Change_0_to_1, symbolName2, `${fix.namespacePrefix}.${symbolName2}`];\n      case 1:\n        addImportType(changes, sourceFile, fix, quotePreference);\n        return [Diagnostics.Change_0_to_1, symbolName2, getImportTypePrefix(fix.moduleSpecifier, quotePreference) + symbolName2];\n      case 2: {\n        const { importClauseOrBindingPattern, importKind, addAsTypeOnly, moduleSpecifier } = fix;\n        doAddExistingFix(changes, sourceFile, importClauseOrBindingPattern, importKind === 1 ? { name: symbolName2, addAsTypeOnly } : void 0, importKind === 0 ? [{ name: symbolName2, addAsTypeOnly }] : emptyArray, compilerOptions, preferences);\n        const moduleSpecifierWithoutQuotes = stripQuotes(moduleSpecifier);\n        return includeSymbolNameInDescription ? [Diagnostics.Import_0_from_1, symbolName2, moduleSpecifierWithoutQuotes] : [Diagnostics.Update_import_from_0, moduleSpecifierWithoutQuotes];\n      }\n      case 3: {\n        const { importKind, moduleSpecifier, addAsTypeOnly, useRequire, qualification } = fix;\n        const getDeclarations = useRequire ? getNewRequires : getNewImports;\n        const defaultImport = importKind === 1 ? { name: symbolName2, addAsTypeOnly } : void 0;\n        const namedImports = importKind === 0 ? [{ name: symbolName2, addAsTypeOnly }] : void 0;\n        const namespaceLikeImport = importKind === 2 || importKind === 3 ? { importKind, name: (qualification == null ? void 0 : qualification.namespacePrefix) || symbolName2, addAsTypeOnly } : void 0;\n        insertImports(changes, sourceFile, getDeclarations(moduleSpecifier, quotePreference, defaultImport, namedImports, namespaceLikeImport, compilerOptions), true, preferences);\n        if (qualification) {\n          addNamespaceQualifier(changes, sourceFile, qualification);\n        }\n        return includeSymbolNameInDescription ? [Diagnostics.Import_0_from_1, symbolName2, moduleSpecifier] : [Diagnostics.Add_import_from_0, moduleSpecifier];\n      }\n      case 4: {\n        const { typeOnlyAliasDeclaration } = fix;\n        const promotedDeclaration = promoteFromTypeOnly(changes, typeOnlyAliasDeclaration, compilerOptions, sourceFile, preferences);\n        return promotedDeclaration.kind === 273 ? [Diagnostics.Remove_type_from_import_of_0_from_1, symbolName2, getModuleSpecifierText(promotedDeclaration.parent.parent)] : [Diagnostics.Remove_type_from_import_declaration_from_0, getModuleSpecifierText(promotedDeclaration)];\n      }\n      default:\n        return Debug.assertNever(fix, `Unexpected fix kind ${fix.kind}`);\n    }\n  }\n  function getModuleSpecifierText(promotedDeclaration) {\n    var _a2, _b;\n    return promotedDeclaration.kind === 268 ? ((_b = tryCast((_a2 = tryCast(promotedDeclaration.moduleReference, isExternalModuleReference)) == null ? void 0 : _a2.expression, isStringLiteralLike)) == null ? void 0 : _b.text) || promotedDeclaration.moduleReference.getText() : cast(promotedDeclaration.parent.moduleSpecifier, isStringLiteral).text;\n  }\n  function promoteFromTypeOnly(changes, aliasDeclaration, compilerOptions, sourceFile, preferences) {\n    const convertExistingToTypeOnly = importNameElisionDisabled(compilerOptions);\n    switch (aliasDeclaration.kind) {\n      case 273:\n        if (aliasDeclaration.isTypeOnly) {\n          const sortKind = ts_OrganizeImports_exports.detectImportSpecifierSorting(aliasDeclaration.parent.elements, preferences);\n          if (aliasDeclaration.parent.elements.length > 1 && sortKind) {\n            changes.delete(sourceFile, aliasDeclaration);\n            const newSpecifier = factory.updateImportSpecifier(aliasDeclaration, false, aliasDeclaration.propertyName, aliasDeclaration.name);\n            const comparer = ts_OrganizeImports_exports.getOrganizeImportsComparer(preferences, sortKind === 2);\n            const insertionIndex = ts_OrganizeImports_exports.getImportSpecifierInsertionIndex(aliasDeclaration.parent.elements, newSpecifier, comparer);\n            changes.insertImportSpecifierAtIndex(sourceFile, newSpecifier, aliasDeclaration.parent, insertionIndex);\n          } else {\n            changes.deleteRange(sourceFile, aliasDeclaration.getFirstToken());\n          }\n          return aliasDeclaration;\n        } else {\n          Debug.assert(aliasDeclaration.parent.parent.isTypeOnly);\n          promoteImportClause(aliasDeclaration.parent.parent);\n          return aliasDeclaration.parent.parent;\n        }\n      case 270:\n        promoteImportClause(aliasDeclaration);\n        return aliasDeclaration;\n      case 271:\n        promoteImportClause(aliasDeclaration.parent);\n        return aliasDeclaration.parent;\n      case 268:\n        changes.deleteRange(sourceFile, aliasDeclaration.getChildAt(1));\n        return aliasDeclaration;\n      default:\n        Debug.failBadSyntaxKind(aliasDeclaration);\n    }\n    function promoteImportClause(importClause) {\n      changes.delete(sourceFile, getTypeKeywordOfTypeOnlyImport(importClause, sourceFile));\n      if (convertExistingToTypeOnly) {\n        const namedImports = tryCast(importClause.namedBindings, isNamedImports);\n        if (namedImports && namedImports.elements.length > 1) {\n          if (ts_OrganizeImports_exports.detectImportSpecifierSorting(namedImports.elements, preferences) && aliasDeclaration.kind === 273 && namedImports.elements.indexOf(aliasDeclaration) !== 0) {\n            changes.delete(sourceFile, aliasDeclaration);\n            changes.insertImportSpecifierAtIndex(sourceFile, aliasDeclaration, namedImports, 0);\n          }\n          for (const element of namedImports.elements) {\n            if (element !== aliasDeclaration && !element.isTypeOnly) {\n              changes.insertModifierBefore(sourceFile, 154, element);\n            }\n          }\n        }\n      }\n    }\n  }\n  function doAddExistingFix(changes, sourceFile, clause, defaultImport, namedImports, compilerOptions, preferences) {\n    var _a2;\n    if (clause.kind === 203) {\n      if (defaultImport) {\n        addElementToBindingPattern(clause, defaultImport.name, \"default\");\n      }\n      for (const specifier of namedImports) {\n        addElementToBindingPattern(clause, specifier.name, void 0);\n      }\n      return;\n    }\n    const promoteFromTypeOnly2 = clause.isTypeOnly && some([defaultImport, ...namedImports], (i) => (i == null ? void 0 : i.addAsTypeOnly) === 4);\n    const existingSpecifiers = clause.namedBindings && ((_a2 = tryCast(clause.namedBindings, isNamedImports)) == null ? void 0 : _a2.elements);\n    const convertExistingToTypeOnly = promoteFromTypeOnly2 && importNameElisionDisabled(compilerOptions);\n    if (defaultImport) {\n      Debug.assert(!clause.name, \"Cannot add a default import to an import clause that already has one\");\n      changes.insertNodeAt(sourceFile, clause.getStart(sourceFile), factory.createIdentifier(defaultImport.name), { suffix: \", \" });\n    }\n    if (namedImports.length) {\n      let ignoreCaseForSorting;\n      if (typeof preferences.organizeImportsIgnoreCase === \"boolean\") {\n        ignoreCaseForSorting = preferences.organizeImportsIgnoreCase;\n      } else if (existingSpecifiers) {\n        const targetImportSorting = ts_OrganizeImports_exports.detectImportSpecifierSorting(existingSpecifiers, preferences);\n        if (targetImportSorting !== 3) {\n          ignoreCaseForSorting = targetImportSorting === 2;\n        }\n      }\n      if (ignoreCaseForSorting === void 0) {\n        ignoreCaseForSorting = ts_OrganizeImports_exports.detectSorting(sourceFile, preferences) === 2;\n      }\n      const comparer = ts_OrganizeImports_exports.getOrganizeImportsComparer(preferences, ignoreCaseForSorting);\n      const newSpecifiers = stableSort(namedImports.map((namedImport) => factory.createImportSpecifier((!clause.isTypeOnly || promoteFromTypeOnly2) && needsTypeOnly(namedImport), void 0, factory.createIdentifier(namedImport.name))), (s1, s2) => ts_OrganizeImports_exports.compareImportOrExportSpecifiers(s1, s2, comparer));\n      const specifierSort = (existingSpecifiers == null ? void 0 : existingSpecifiers.length) && ts_OrganizeImports_exports.detectImportSpecifierSorting(existingSpecifiers, preferences);\n      if (specifierSort && !(ignoreCaseForSorting && specifierSort === 1)) {\n        for (const spec of newSpecifiers) {\n          const insertionIndex = convertExistingToTypeOnly && !spec.isTypeOnly ? 0 : ts_OrganizeImports_exports.getImportSpecifierInsertionIndex(existingSpecifiers, spec, comparer);\n          changes.insertImportSpecifierAtIndex(sourceFile, spec, clause.namedBindings, insertionIndex);\n        }\n      } else if (existingSpecifiers == null ? void 0 : existingSpecifiers.length) {\n        for (const spec of newSpecifiers) {\n          changes.insertNodeInListAfter(sourceFile, last(existingSpecifiers), spec, existingSpecifiers);\n        }\n      } else {\n        if (newSpecifiers.length) {\n          const namedImports2 = factory.createNamedImports(newSpecifiers);\n          if (clause.namedBindings) {\n            changes.replaceNode(sourceFile, clause.namedBindings, namedImports2);\n          } else {\n            changes.insertNodeAfter(sourceFile, Debug.checkDefined(clause.name, \"Import clause must have either named imports or a default import\"), namedImports2);\n          }\n        }\n      }\n    }\n    if (promoteFromTypeOnly2) {\n      changes.delete(sourceFile, getTypeKeywordOfTypeOnlyImport(clause, sourceFile));\n      if (convertExistingToTypeOnly && existingSpecifiers) {\n        for (const specifier of existingSpecifiers) {\n          changes.insertModifierBefore(sourceFile, 154, specifier);\n        }\n      }\n    }\n    function addElementToBindingPattern(bindingPattern, name, propertyName) {\n      const element = factory.createBindingElement(void 0, propertyName, name);\n      if (bindingPattern.elements.length) {\n        changes.insertNodeInListAfter(sourceFile, last(bindingPattern.elements), element);\n      } else {\n        changes.replaceNode(sourceFile, bindingPattern, factory.createObjectBindingPattern([element]));\n      }\n    }\n  }\n  function addNamespaceQualifier(changes, sourceFile, { namespacePrefix, usagePosition }) {\n    changes.insertText(sourceFile, usagePosition, namespacePrefix + \".\");\n  }\n  function addImportType(changes, sourceFile, { moduleSpecifier, usagePosition: position }, quotePreference) {\n    changes.insertText(sourceFile, position, getImportTypePrefix(moduleSpecifier, quotePreference));\n  }\n  function getImportTypePrefix(moduleSpecifier, quotePreference) {\n    const quote2 = getQuoteFromPreference(quotePreference);\n    return `import(${quote2}${moduleSpecifier}${quote2}).`;\n  }\n  function needsTypeOnly({ addAsTypeOnly }) {\n    return addAsTypeOnly === 2;\n  }\n  function getNewImports(moduleSpecifier, quotePreference, defaultImport, namedImports, namespaceLikeImport, compilerOptions) {\n    const quotedModuleSpecifier = makeStringLiteral(moduleSpecifier, quotePreference);\n    let statements;\n    if (defaultImport !== void 0 || (namedImports == null ? void 0 : namedImports.length)) {\n      const topLevelTypeOnly = (!defaultImport || needsTypeOnly(defaultImport)) && every(namedImports, needsTypeOnly) || compilerOptions.verbatimModuleSyntax && (defaultImport == null ? void 0 : defaultImport.addAsTypeOnly) !== 4 && !some(namedImports, (i) => i.addAsTypeOnly === 4);\n      statements = combine(statements, makeImport(defaultImport && factory.createIdentifier(defaultImport.name), namedImports == null ? void 0 : namedImports.map(({ addAsTypeOnly, name }) => factory.createImportSpecifier(!topLevelTypeOnly && addAsTypeOnly === 2, void 0, factory.createIdentifier(name))), moduleSpecifier, quotePreference, topLevelTypeOnly));\n    }\n    if (namespaceLikeImport) {\n      const declaration = namespaceLikeImport.importKind === 3 ? factory.createImportEqualsDeclaration(void 0, needsTypeOnly(namespaceLikeImport), factory.createIdentifier(namespaceLikeImport.name), factory.createExternalModuleReference(quotedModuleSpecifier)) : factory.createImportDeclaration(void 0, factory.createImportClause(needsTypeOnly(namespaceLikeImport), void 0, factory.createNamespaceImport(factory.createIdentifier(namespaceLikeImport.name))), quotedModuleSpecifier, void 0);\n      statements = combine(statements, declaration);\n    }\n    return Debug.checkDefined(statements);\n  }\n  function getNewRequires(moduleSpecifier, quotePreference, defaultImport, namedImports, namespaceLikeImport) {\n    const quotedModuleSpecifier = makeStringLiteral(moduleSpecifier, quotePreference);\n    let statements;\n    if (defaultImport || (namedImports == null ? void 0 : namedImports.length)) {\n      const bindingElements = (namedImports == null ? void 0 : namedImports.map(({ name }) => factory.createBindingElement(void 0, void 0, name))) || [];\n      if (defaultImport) {\n        bindingElements.unshift(factory.createBindingElement(void 0, \"default\", defaultImport.name));\n      }\n      const declaration = createConstEqualsRequireDeclaration(factory.createObjectBindingPattern(bindingElements), quotedModuleSpecifier);\n      statements = combine(statements, declaration);\n    }\n    if (namespaceLikeImport) {\n      const declaration = createConstEqualsRequireDeclaration(namespaceLikeImport.name, quotedModuleSpecifier);\n      statements = combine(statements, declaration);\n    }\n    return Debug.checkDefined(statements);\n  }\n  function createConstEqualsRequireDeclaration(name, quotedModuleSpecifier) {\n    return factory.createVariableStatement(void 0, factory.createVariableDeclarationList([\n      factory.createVariableDeclaration(typeof name === \"string\" ? factory.createIdentifier(name) : name, void 0, void 0, factory.createCallExpression(factory.createIdentifier(\"require\"), void 0, [quotedModuleSpecifier]))\n    ], 2));\n  }\n  function symbolHasMeaning({ declarations }, meaning) {\n    return some(declarations, (decl) => !!(getMeaningFromDeclaration(decl) & meaning));\n  }\n  function moduleSymbolToValidIdentifier(moduleSymbol, target, forceCapitalize) {\n    return moduleSpecifierToValidIdentifier(removeFileExtension(stripQuotes(moduleSymbol.name)), target, forceCapitalize);\n  }\n  function moduleSpecifierToValidIdentifier(moduleSpecifier, target, forceCapitalize) {\n    const baseName = getBaseFileName(removeSuffix(moduleSpecifier, \"/index\"));\n    let res = \"\";\n    let lastCharWasValid = true;\n    const firstCharCode = baseName.charCodeAt(0);\n    if (isIdentifierStart(firstCharCode, target)) {\n      res += String.fromCharCode(firstCharCode);\n      if (forceCapitalize) {\n        res = res.toUpperCase();\n      }\n    } else {\n      lastCharWasValid = false;\n    }\n    for (let i = 1; i < baseName.length; i++) {\n      const ch = baseName.charCodeAt(i);\n      const isValid = isIdentifierPart(ch, target);\n      if (isValid) {\n        let char = String.fromCharCode(ch);\n        if (!lastCharWasValid) {\n          char = char.toUpperCase();\n        }\n        res += char;\n      }\n      lastCharWasValid = isValid;\n    }\n    return !isStringANonContextualKeyword(res) ? res || \"_\" : `_${res}`;\n  }\n  var importFixName, importFixId, errorCodes17;\n  var init_importFixes = __esm({\n    \"src/services/codefixes/importFixes.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      importFixName = \"import\";\n      importFixId = \"fixMissingImport\";\n      errorCodes17 = [\n        Diagnostics.Cannot_find_name_0.code,\n        Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,\n        Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,\n        Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,\n        Diagnostics.Cannot_find_namespace_0.code,\n        Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,\n        Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,\n        Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,\n        Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code\n      ];\n      registerCodeFix({\n        errorCodes: errorCodes17,\n        getCodeActions(context) {\n          const { errorCode, preferences, sourceFile, span, program } = context;\n          const info = getFixInfos(context, errorCode, span.start, true);\n          if (!info)\n            return void 0;\n          return info.map(({ fix, symbolName: symbolName2, errorIdentifierText }) => codeActionForFix(context, sourceFile, symbolName2, fix, symbolName2 !== errorIdentifierText, program.getCompilerOptions(), preferences));\n        },\n        fixIds: [importFixId],\n        getAllCodeActions: (context) => {\n          const { sourceFile, program, preferences, host, cancellationToken } = context;\n          const importAdder = createImportAdderWorker(sourceFile, program, true, preferences, host, cancellationToken);\n          eachDiagnostic(context, errorCodes17, (diag2) => importAdder.addImportFromDiagnostic(diag2, context));\n          return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, importAdder.writeFixes));\n        }\n      });\n    }\n  });\n  function getInfo3(program, sourceFile, span) {\n    const diag2 = find(program.getSemanticDiagnostics(sourceFile), (diag3) => diag3.start === span.start && diag3.length === span.length);\n    if (diag2 === void 0 || diag2.relatedInformation === void 0)\n      return;\n    const related = find(diag2.relatedInformation, (related2) => related2.code === Diagnostics.This_type_parameter_might_need_an_extends_0_constraint.code);\n    if (related === void 0 || related.file === void 0 || related.start === void 0 || related.length === void 0)\n      return;\n    let declaration = findAncestorMatchingSpan(related.file, createTextSpan(related.start, related.length));\n    if (declaration === void 0)\n      return;\n    if (isIdentifier(declaration) && isTypeParameterDeclaration(declaration.parent)) {\n      declaration = declaration.parent;\n    }\n    if (isTypeParameterDeclaration(declaration)) {\n      if (isMappedTypeNode(declaration.parent))\n        return;\n      const token = getTokenAtPosition(sourceFile, span.start);\n      const checker = program.getTypeChecker();\n      const constraint = tryGetConstraintType(checker, token) || tryGetConstraintFromDiagnosticMessage(related.messageText);\n      return { constraint, declaration, token };\n    }\n    return void 0;\n  }\n  function addMissingConstraint(changes, program, preferences, host, sourceFile, info) {\n    const { declaration, constraint } = info;\n    const checker = program.getTypeChecker();\n    if (isString(constraint)) {\n      changes.insertText(sourceFile, declaration.name.end, ` extends ${constraint}`);\n    } else {\n      const scriptTarget = getEmitScriptTarget(program.getCompilerOptions());\n      const tracker = getNoopSymbolTrackerWithResolver({ program, host });\n      const importAdder = createImportAdder(sourceFile, program, preferences, host);\n      const typeNode = typeToAutoImportableTypeNode(checker, importAdder, constraint, void 0, scriptTarget, void 0, tracker);\n      if (typeNode) {\n        changes.replaceNode(sourceFile, declaration, factory.updateTypeParameterDeclaration(declaration, void 0, declaration.name, typeNode, declaration.default));\n        importAdder.writeFixes(changes);\n      }\n    }\n  }\n  function tryGetConstraintFromDiagnosticMessage(messageText) {\n    const [_, constraint] = flattenDiagnosticMessageText2(messageText, \"\\n\", 0).match(/`extends (.*)`/) || [];\n    return constraint;\n  }\n  function tryGetConstraintType(checker, node) {\n    if (isTypeNode(node.parent)) {\n      return checker.getTypeArgumentConstraint(node.parent);\n    }\n    const contextualType = isExpression(node) ? checker.getContextualType(node) : void 0;\n    return contextualType || checker.getTypeAtLocation(node);\n  }\n  var fixId16, errorCodes18;\n  var init_fixAddMissingConstraint = __esm({\n    \"src/services/codefixes/fixAddMissingConstraint.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId16 = \"addMissingConstraint\";\n      errorCodes18 = [\n        Diagnostics.Type_0_is_not_comparable_to_type_1.code,\n        Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,\n        Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,\n        Diagnostics.Type_0_is_not_assignable_to_type_1.code,\n        Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,\n        Diagnostics.Property_0_is_incompatible_with_index_signature.code,\n        Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,\n        Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code\n      ];\n      registerCodeFix({\n        errorCodes: errorCodes18,\n        getCodeActions(context) {\n          const { sourceFile, span, program, preferences, host } = context;\n          const info = getInfo3(program, sourceFile, span);\n          if (info === void 0)\n            return;\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => addMissingConstraint(t, program, preferences, host, sourceFile, info));\n          return [createCodeFixAction(fixId16, changes, Diagnostics.Add_extends_constraint, fixId16, Diagnostics.Add_extends_constraint_to_all_type_parameters)];\n        },\n        fixIds: [fixId16],\n        getAllCodeActions: (context) => {\n          const { program, preferences, host } = context;\n          const seen = /* @__PURE__ */ new Map();\n          return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {\n            eachDiagnostic(context, errorCodes18, (diag2) => {\n              const info = getInfo3(program, diag2.file, createTextSpan(diag2.start, diag2.length));\n              if (info) {\n                if (addToSeen(seen, getNodeId(info.declaration))) {\n                  return addMissingConstraint(changes, program, preferences, host, diag2.file, info);\n                }\n              }\n              return void 0;\n            });\n          }));\n        }\n      });\n    }\n  });\n  function dispatchChanges(changeTracker, context, errorCode, pos) {\n    switch (errorCode) {\n      case Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:\n      case Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:\n      case Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:\n      case Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:\n      case Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:\n        return doAddOverrideModifierChange(changeTracker, context.sourceFile, pos);\n      case Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:\n      case Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:\n      case Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:\n      case Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:\n        return doRemoveOverrideModifierChange(changeTracker, context.sourceFile, pos);\n      default:\n        Debug.fail(\"Unexpected error code: \" + errorCode);\n    }\n  }\n  function doAddOverrideModifierChange(changeTracker, sourceFile, pos) {\n    const classElement = findContainerClassElementLike(sourceFile, pos);\n    if (isSourceFileJS(sourceFile)) {\n      changeTracker.addJSDocTags(sourceFile, classElement, [factory.createJSDocOverrideTag(factory.createIdentifier(\"override\"))]);\n      return;\n    }\n    const modifiers = classElement.modifiers || emptyArray;\n    const staticModifier = find(modifiers, isStaticModifier);\n    const abstractModifier = find(modifiers, isAbstractModifier);\n    const accessibilityModifier = find(modifiers, (m) => isAccessibilityModifier(m.kind));\n    const lastDecorator = findLast(modifiers, isDecorator);\n    const modifierPos = abstractModifier ? abstractModifier.end : staticModifier ? staticModifier.end : accessibilityModifier ? accessibilityModifier.end : lastDecorator ? skipTrivia(sourceFile.text, lastDecorator.end) : classElement.getStart(sourceFile);\n    const options = accessibilityModifier || staticModifier || abstractModifier ? { prefix: \" \" } : { suffix: \" \" };\n    changeTracker.insertModifierAt(sourceFile, modifierPos, 161, options);\n  }\n  function doRemoveOverrideModifierChange(changeTracker, sourceFile, pos) {\n    const classElement = findContainerClassElementLike(sourceFile, pos);\n    if (isSourceFileJS(sourceFile)) {\n      changeTracker.filterJSDocTags(sourceFile, classElement, not(isJSDocOverrideTag));\n      return;\n    }\n    const overrideModifier = find(classElement.modifiers, isOverrideModifier);\n    Debug.assertIsDefined(overrideModifier);\n    changeTracker.deleteModifier(sourceFile, overrideModifier);\n  }\n  function isClassElementLikeHasJSDoc(node) {\n    switch (node.kind) {\n      case 173:\n      case 169:\n      case 171:\n      case 174:\n      case 175:\n        return true;\n      case 166:\n        return isParameterPropertyDeclaration(node, node.parent);\n      default:\n        return false;\n    }\n  }\n  function findContainerClassElementLike(sourceFile, pos) {\n    const token = getTokenAtPosition(sourceFile, pos);\n    const classElement = findAncestor(token, (node) => {\n      if (isClassLike(node))\n        return \"quit\";\n      return isClassElementLikeHasJSDoc(node);\n    });\n    Debug.assert(classElement && isClassElementLikeHasJSDoc(classElement));\n    return classElement;\n  }\n  var fixName, fixAddOverrideId, fixRemoveOverrideId, errorCodes19, errorCodeFixIdMap;\n  var init_fixOverrideModifier = __esm({\n    \"src/services/codefixes/fixOverrideModifier.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixName = \"fixOverrideModifier\";\n      fixAddOverrideId = \"fixAddOverrideModifier\";\n      fixRemoveOverrideId = \"fixRemoveOverrideModifier\";\n      errorCodes19 = [\n        Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,\n        Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,\n        Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,\n        Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,\n        Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,\n        Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,\n        Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,\n        Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,\n        Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code\n      ];\n      errorCodeFixIdMap = {\n        [Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]: {\n          descriptions: Diagnostics.Add_override_modifier,\n          fixId: fixAddOverrideId,\n          fixAllDescriptions: Diagnostics.Add_all_missing_override_modifiers\n        },\n        [Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]: {\n          descriptions: Diagnostics.Add_override_modifier,\n          fixId: fixAddOverrideId,\n          fixAllDescriptions: Diagnostics.Add_all_missing_override_modifiers\n        },\n        [Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]: {\n          descriptions: Diagnostics.Remove_override_modifier,\n          fixId: fixRemoveOverrideId,\n          fixAllDescriptions: Diagnostics.Remove_all_unnecessary_override_modifiers\n        },\n        [Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]: {\n          descriptions: Diagnostics.Remove_override_modifier,\n          fixId: fixRemoveOverrideId,\n          fixAllDescriptions: Diagnostics.Remove_override_modifier\n        },\n        [Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]: {\n          descriptions: Diagnostics.Add_override_modifier,\n          fixId: fixAddOverrideId,\n          fixAllDescriptions: Diagnostics.Add_all_missing_override_modifiers\n        },\n        [Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]: {\n          descriptions: Diagnostics.Add_override_modifier,\n          fixId: fixAddOverrideId,\n          fixAllDescriptions: Diagnostics.Add_all_missing_override_modifiers\n        },\n        [Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]: {\n          descriptions: Diagnostics.Add_override_modifier,\n          fixId: fixAddOverrideId,\n          fixAllDescriptions: Diagnostics.Remove_all_unnecessary_override_modifiers\n        },\n        [Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]: {\n          descriptions: Diagnostics.Remove_override_modifier,\n          fixId: fixRemoveOverrideId,\n          fixAllDescriptions: Diagnostics.Remove_all_unnecessary_override_modifiers\n        },\n        [Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]: {\n          descriptions: Diagnostics.Remove_override_modifier,\n          fixId: fixRemoveOverrideId,\n          fixAllDescriptions: Diagnostics.Remove_all_unnecessary_override_modifiers\n        }\n      };\n      registerCodeFix({\n        errorCodes: errorCodes19,\n        getCodeActions: function getCodeActionsToFixOverrideModifierIssues(context) {\n          const { errorCode, span } = context;\n          const info = errorCodeFixIdMap[errorCode];\n          if (!info)\n            return emptyArray;\n          const { descriptions, fixId: fixId51, fixAllDescriptions } = info;\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (changes2) => dispatchChanges(changes2, context, errorCode, span.start));\n          return [\n            createCodeFixActionMaybeFixAll(fixName, changes, descriptions, fixId51, fixAllDescriptions)\n          ];\n        },\n        fixIds: [fixName, fixAddOverrideId, fixRemoveOverrideId],\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes19, (changes, diag2) => {\n          const { code, start } = diag2;\n          const info = errorCodeFixIdMap[code];\n          if (!info || info.fixId !== context.fixId) {\n            return;\n          }\n          dispatchChanges(changes, context, code, start);\n        })\n      });\n    }\n  });\n  function doChange6(changes, sourceFile, node, preferences) {\n    const quotePreference = getQuotePreference(sourceFile, preferences);\n    const argumentsExpression = factory.createStringLiteral(node.name.text, quotePreference === 0);\n    changes.replaceNode(sourceFile, node, isPropertyAccessChain(node) ? factory.createElementAccessChain(node.expression, node.questionDotToken, argumentsExpression) : factory.createElementAccessExpression(node.expression, argumentsExpression));\n  }\n  function getPropertyAccessExpression(sourceFile, pos) {\n    return cast(getTokenAtPosition(sourceFile, pos).parent, isPropertyAccessExpression);\n  }\n  var fixId17, errorCodes20;\n  var init_fixNoPropertyAccessFromIndexSignature = __esm({\n    \"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId17 = \"fixNoPropertyAccessFromIndexSignature\";\n      errorCodes20 = [\n        Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code\n      ];\n      registerCodeFix({\n        errorCodes: errorCodes20,\n        fixIds: [fixId17],\n        getCodeActions(context) {\n          const { sourceFile, span, preferences } = context;\n          const property = getPropertyAccessExpression(sourceFile, span.start);\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange6(t, context.sourceFile, property, preferences));\n          return [createCodeFixAction(fixId17, changes, [Diagnostics.Use_element_access_for_0, property.name.text], fixId17, Diagnostics.Use_element_access_for_all_undeclared_properties)];\n        },\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes20, (changes, diag2) => doChange6(changes, diag2.file, getPropertyAccessExpression(diag2.file, diag2.start), context.preferences))\n      });\n    }\n  });\n  function doChange7(changes, sourceFile, pos, checker) {\n    const token = getTokenAtPosition(sourceFile, pos);\n    if (!isThis(token))\n      return void 0;\n    const fn = getThisContainer(token, false, false);\n    if (!isFunctionDeclaration(fn) && !isFunctionExpression(fn))\n      return void 0;\n    if (!isSourceFile(getThisContainer(fn, false, false))) {\n      const fnKeyword = Debug.checkDefined(findChildOfKind(fn, 98, sourceFile));\n      const { name } = fn;\n      const body = Debug.checkDefined(fn.body);\n      if (isFunctionExpression(fn)) {\n        if (name && ts_FindAllReferences_exports.Core.isSymbolReferencedInFile(name, checker, sourceFile, body)) {\n          return void 0;\n        }\n        changes.delete(sourceFile, fnKeyword);\n        if (name) {\n          changes.delete(sourceFile, name);\n        }\n        changes.insertText(sourceFile, body.pos, \" =>\");\n        return [Diagnostics.Convert_function_expression_0_to_arrow_function, name ? name.text : ANONYMOUS];\n      } else {\n        changes.replaceNode(sourceFile, fnKeyword, factory.createToken(85));\n        changes.insertText(sourceFile, name.end, \" = \");\n        changes.insertText(sourceFile, body.pos, \" =>\");\n        return [Diagnostics.Convert_function_declaration_0_to_arrow_function, name.text];\n      }\n    }\n  }\n  var fixId18, errorCodes21;\n  var init_fixImplicitThis = __esm({\n    \"src/services/codefixes/fixImplicitThis.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId18 = \"fixImplicitThis\";\n      errorCodes21 = [Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];\n      registerCodeFix({\n        errorCodes: errorCodes21,\n        getCodeActions: function getCodeActionsToFixImplicitThis(context) {\n          const { sourceFile, program, span } = context;\n          let diagnostic;\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => {\n            diagnostic = doChange7(t, sourceFile, span.start, program.getTypeChecker());\n          });\n          return diagnostic ? [createCodeFixAction(fixId18, changes, diagnostic, fixId18, Diagnostics.Fix_all_implicit_this_errors)] : emptyArray;\n        },\n        fixIds: [fixId18],\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes21, (changes, diag2) => {\n          doChange7(changes, diag2.file, diag2.start, context.program.getTypeChecker());\n        })\n      });\n    }\n  });\n  function getInfo4(sourceFile, pos, program) {\n    var _a2;\n    const token = getTokenAtPosition(sourceFile, pos);\n    if (isIdentifier(token)) {\n      const importDeclaration = findAncestor(token, isImportDeclaration);\n      if (importDeclaration === void 0)\n        return void 0;\n      const moduleSpecifier = isStringLiteral(importDeclaration.moduleSpecifier) ? importDeclaration.moduleSpecifier.text : void 0;\n      if (moduleSpecifier === void 0)\n        return void 0;\n      const resolvedModule = getResolvedModule(sourceFile, moduleSpecifier, void 0);\n      if (resolvedModule === void 0)\n        return void 0;\n      const moduleSourceFile = program.getSourceFile(resolvedModule.resolvedFileName);\n      if (moduleSourceFile === void 0 || isSourceFileFromLibrary(program, moduleSourceFile))\n        return void 0;\n      const moduleSymbol = moduleSourceFile.symbol;\n      const locals = (_a2 = tryCast(moduleSymbol.valueDeclaration, canHaveLocals)) == null ? void 0 : _a2.locals;\n      if (locals === void 0)\n        return void 0;\n      const localSymbol = locals.get(token.escapedText);\n      if (localSymbol === void 0)\n        return void 0;\n      const node = getNodeOfSymbol(localSymbol);\n      if (node === void 0)\n        return void 0;\n      const exportName = { node: token, isTypeOnly: isTypeDeclaration(node) };\n      return { exportName, node, moduleSourceFile, moduleSpecifier };\n    }\n    return void 0;\n  }\n  function doChange8(changes, program, { exportName, node, moduleSourceFile }) {\n    const exportDeclaration = tryGetExportDeclaration(moduleSourceFile, exportName.isTypeOnly);\n    if (exportDeclaration) {\n      updateExport(changes, program, moduleSourceFile, exportDeclaration, [exportName]);\n    } else if (canHaveExportModifier(node)) {\n      changes.insertExportModifier(moduleSourceFile, node);\n    } else {\n      createExport(changes, program, moduleSourceFile, [exportName]);\n    }\n  }\n  function doChanges(changes, program, sourceFile, moduleExports, node) {\n    if (length(moduleExports)) {\n      if (node) {\n        updateExport(changes, program, sourceFile, node, moduleExports);\n      } else {\n        createExport(changes, program, sourceFile, moduleExports);\n      }\n    }\n  }\n  function tryGetExportDeclaration(sourceFile, isTypeOnly) {\n    const predicate = (node) => isExportDeclaration(node) && (isTypeOnly && node.isTypeOnly || !node.isTypeOnly);\n    return findLast(sourceFile.statements, predicate);\n  }\n  function updateExport(changes, program, sourceFile, node, names) {\n    const namedExports = node.exportClause && isNamedExports(node.exportClause) ? node.exportClause.elements : factory.createNodeArray([]);\n    const allowTypeModifier = !node.isTypeOnly && !!(getIsolatedModules(program.getCompilerOptions()) || find(namedExports, (e) => e.isTypeOnly));\n    changes.replaceNode(sourceFile, node, factory.updateExportDeclaration(node, node.modifiers, node.isTypeOnly, factory.createNamedExports(factory.createNodeArray([...namedExports, ...createExportSpecifiers(names, allowTypeModifier)], namedExports.hasTrailingComma)), node.moduleSpecifier, node.assertClause));\n  }\n  function createExport(changes, program, sourceFile, names) {\n    changes.insertNodeAtEndOfScope(sourceFile, sourceFile, factory.createExportDeclaration(void 0, false, factory.createNamedExports(createExportSpecifiers(names, getIsolatedModules(program.getCompilerOptions()))), void 0, void 0));\n  }\n  function createExportSpecifiers(names, allowTypeModifier) {\n    return factory.createNodeArray(map(names, (n) => factory.createExportSpecifier(allowTypeModifier && n.isTypeOnly, void 0, n.node)));\n  }\n  function getNodeOfSymbol(symbol) {\n    if (symbol.valueDeclaration === void 0) {\n      return firstOrUndefined(symbol.declarations);\n    }\n    const declaration = symbol.valueDeclaration;\n    const variableStatement = isVariableDeclaration(declaration) ? tryCast(declaration.parent.parent, isVariableStatement) : void 0;\n    return variableStatement && length(variableStatement.declarationList.declarations) === 1 ? variableStatement : declaration;\n  }\n  var fixId19, errorCodes22;\n  var init_fixImportNonExportedMember = __esm({\n    \"src/services/codefixes/fixImportNonExportedMember.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId19 = \"fixImportNonExportedMember\";\n      errorCodes22 = [\n        Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported.code\n      ];\n      registerCodeFix({\n        errorCodes: errorCodes22,\n        fixIds: [fixId19],\n        getCodeActions(context) {\n          const { sourceFile, span, program } = context;\n          const info = getInfo4(sourceFile, span.start, program);\n          if (info === void 0)\n            return void 0;\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange8(t, program, info));\n          return [createCodeFixAction(fixId19, changes, [Diagnostics.Export_0_from_module_1, info.exportName.node.text, info.moduleSpecifier], fixId19, Diagnostics.Export_all_referenced_locals)];\n        },\n        getAllCodeActions(context) {\n          const { program } = context;\n          return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {\n            const exports = /* @__PURE__ */ new Map();\n            eachDiagnostic(context, errorCodes22, (diag2) => {\n              const info = getInfo4(diag2.file, diag2.start, program);\n              if (info === void 0)\n                return void 0;\n              const { exportName, node, moduleSourceFile } = info;\n              if (tryGetExportDeclaration(moduleSourceFile, exportName.isTypeOnly) === void 0 && canHaveExportModifier(node)) {\n                changes.insertExportModifier(moduleSourceFile, node);\n              } else {\n                const moduleExports = exports.get(moduleSourceFile) || { typeOnlyExports: [], exports: [] };\n                if (exportName.isTypeOnly) {\n                  moduleExports.typeOnlyExports.push(exportName);\n                } else {\n                  moduleExports.exports.push(exportName);\n                }\n                exports.set(moduleSourceFile, moduleExports);\n              }\n            });\n            exports.forEach((moduleExports, moduleSourceFile) => {\n              const exportDeclaration = tryGetExportDeclaration(moduleSourceFile, true);\n              if (exportDeclaration && exportDeclaration.isTypeOnly) {\n                doChanges(changes, program, moduleSourceFile, moduleExports.typeOnlyExports, exportDeclaration);\n                doChanges(changes, program, moduleSourceFile, moduleExports.exports, tryGetExportDeclaration(moduleSourceFile, false));\n              } else {\n                doChanges(changes, program, moduleSourceFile, [...moduleExports.exports, ...moduleExports.typeOnlyExports], exportDeclaration);\n              }\n            });\n          }));\n        }\n      });\n    }\n  });\n  function getNamedTupleMember(sourceFile, pos) {\n    const token = getTokenAtPosition(sourceFile, pos);\n    return findAncestor(token, (t) => t.kind === 199);\n  }\n  function doChange9(changes, sourceFile, namedTupleMember) {\n    if (!namedTupleMember) {\n      return;\n    }\n    let unwrappedType = namedTupleMember.type;\n    let sawOptional = false;\n    let sawRest = false;\n    while (unwrappedType.kind === 187 || unwrappedType.kind === 188 || unwrappedType.kind === 193) {\n      if (unwrappedType.kind === 187) {\n        sawOptional = true;\n      } else if (unwrappedType.kind === 188) {\n        sawRest = true;\n      }\n      unwrappedType = unwrappedType.type;\n    }\n    const updated = factory.updateNamedTupleMember(namedTupleMember, namedTupleMember.dotDotDotToken || (sawRest ? factory.createToken(25) : void 0), namedTupleMember.name, namedTupleMember.questionToken || (sawOptional ? factory.createToken(57) : void 0), unwrappedType);\n    if (updated === namedTupleMember) {\n      return;\n    }\n    changes.replaceNode(sourceFile, namedTupleMember, updated);\n  }\n  var fixId20, errorCodes23;\n  var init_fixIncorrectNamedTupleSyntax = __esm({\n    \"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId20 = \"fixIncorrectNamedTupleSyntax\";\n      errorCodes23 = [\n        Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,\n        Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code\n      ];\n      registerCodeFix({\n        errorCodes: errorCodes23,\n        getCodeActions: function getCodeActionsToFixIncorrectNamedTupleSyntax(context) {\n          const { sourceFile, span } = context;\n          const namedTupleMember = getNamedTupleMember(sourceFile, span.start);\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange9(t, sourceFile, namedTupleMember));\n          return [createCodeFixAction(fixId20, changes, Diagnostics.Move_labeled_tuple_element_modifiers_to_labels, fixId20, Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)];\n        },\n        fixIds: [fixId20]\n      });\n    }\n  });\n  function getInfo5(sourceFile, pos, context, errorCode) {\n    const node = getTokenAtPosition(sourceFile, pos);\n    const parent2 = node.parent;\n    if ((errorCode === Diagnostics.No_overload_matches_this_call.code || errorCode === Diagnostics.Type_0_is_not_assignable_to_type_1.code) && !isJsxAttribute(parent2))\n      return void 0;\n    const checker = context.program.getTypeChecker();\n    let suggestedSymbol;\n    if (isPropertyAccessExpression(parent2) && parent2.name === node) {\n      Debug.assert(isMemberName(node), \"Expected an identifier for spelling (property access)\");\n      let containingType = checker.getTypeAtLocation(parent2.expression);\n      if (parent2.flags & 32) {\n        containingType = checker.getNonNullableType(containingType);\n      }\n      suggestedSymbol = checker.getSuggestedSymbolForNonexistentProperty(node, containingType);\n    } else if (isBinaryExpression(parent2) && parent2.operatorToken.kind === 101 && parent2.left === node && isPrivateIdentifier(node)) {\n      const receiverType = checker.getTypeAtLocation(parent2.right);\n      suggestedSymbol = checker.getSuggestedSymbolForNonexistentProperty(node, receiverType);\n    } else if (isQualifiedName(parent2) && parent2.right === node) {\n      const symbol = checker.getSymbolAtLocation(parent2.left);\n      if (symbol && symbol.flags & 1536) {\n        suggestedSymbol = checker.getSuggestedSymbolForNonexistentModule(parent2.right, symbol);\n      }\n    } else if (isImportSpecifier(parent2) && parent2.name === node) {\n      Debug.assertNode(node, isIdentifier, \"Expected an identifier for spelling (import)\");\n      const importDeclaration = findAncestor(node, isImportDeclaration);\n      const resolvedSourceFile = getResolvedSourceFileFromImportDeclaration(sourceFile, context, importDeclaration);\n      if (resolvedSourceFile && resolvedSourceFile.symbol) {\n        suggestedSymbol = checker.getSuggestedSymbolForNonexistentModule(node, resolvedSourceFile.symbol);\n      }\n    } else if (isJsxAttribute(parent2) && parent2.name === node) {\n      Debug.assertNode(node, isIdentifier, \"Expected an identifier for JSX attribute\");\n      const tag = findAncestor(node, isJsxOpeningLikeElement);\n      const props = checker.getContextualTypeForArgumentAtIndex(tag, 0);\n      suggestedSymbol = checker.getSuggestedSymbolForNonexistentJSXAttribute(node, props);\n    } else if (hasSyntacticModifier(parent2, 16384) && isClassElement(parent2) && parent2.name === node) {\n      const baseDeclaration = findAncestor(node, isClassLike);\n      const baseTypeNode = baseDeclaration ? getEffectiveBaseTypeNode(baseDeclaration) : void 0;\n      const baseType = baseTypeNode ? checker.getTypeAtLocation(baseTypeNode) : void 0;\n      if (baseType) {\n        suggestedSymbol = checker.getSuggestedSymbolForNonexistentClassMember(getTextOfNode(node), baseType);\n      }\n    } else {\n      const meaning = getMeaningFromLocation(node);\n      const name = getTextOfNode(node);\n      Debug.assert(name !== void 0, \"name should be defined\");\n      suggestedSymbol = checker.getSuggestedSymbolForNonexistentSymbol(node, name, convertSemanticMeaningToSymbolFlags(meaning));\n    }\n    return suggestedSymbol === void 0 ? void 0 : { node, suggestedSymbol };\n  }\n  function doChange10(changes, sourceFile, node, suggestedSymbol, target) {\n    const suggestion = symbolName(suggestedSymbol);\n    if (!isIdentifierText(suggestion, target) && isPropertyAccessExpression(node.parent)) {\n      const valDecl = suggestedSymbol.valueDeclaration;\n      if (valDecl && isNamedDeclaration(valDecl) && isPrivateIdentifier(valDecl.name)) {\n        changes.replaceNode(sourceFile, node, factory.createIdentifier(suggestion));\n      } else {\n        changes.replaceNode(sourceFile, node.parent, factory.createElementAccessExpression(node.parent.expression, factory.createStringLiteral(suggestion)));\n      }\n    } else {\n      changes.replaceNode(sourceFile, node, factory.createIdentifier(suggestion));\n    }\n  }\n  function convertSemanticMeaningToSymbolFlags(meaning) {\n    let flags = 0;\n    if (meaning & 4) {\n      flags |= 1920;\n    }\n    if (meaning & 2) {\n      flags |= 788968;\n    }\n    if (meaning & 1) {\n      flags |= 111551;\n    }\n    return flags;\n  }\n  function getResolvedSourceFileFromImportDeclaration(sourceFile, context, importDeclaration) {\n    if (!importDeclaration || !isStringLiteralLike(importDeclaration.moduleSpecifier))\n      return void 0;\n    const resolvedModule = getResolvedModule(sourceFile, importDeclaration.moduleSpecifier.text, getModeForUsageLocation(sourceFile, importDeclaration.moduleSpecifier));\n    if (!resolvedModule)\n      return void 0;\n    return context.program.getSourceFile(resolvedModule.resolvedFileName);\n  }\n  var fixId21, errorCodes24;\n  var init_fixSpelling = __esm({\n    \"src/services/codefixes/fixSpelling.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId21 = \"fixSpelling\";\n      errorCodes24 = [\n        Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,\n        Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,\n        Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,\n        Diagnostics.Could_not_find_name_0_Did_you_mean_1.code,\n        Diagnostics.Cannot_find_namespace_0_Did_you_mean_1.code,\n        Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,\n        Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,\n        Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code,\n        Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,\n        Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,\n        Diagnostics.No_overload_matches_this_call.code,\n        Diagnostics.Type_0_is_not_assignable_to_type_1.code\n      ];\n      registerCodeFix({\n        errorCodes: errorCodes24,\n        getCodeActions(context) {\n          const { sourceFile, errorCode } = context;\n          const info = getInfo5(sourceFile, context.span.start, context, errorCode);\n          if (!info)\n            return void 0;\n          const { node, suggestedSymbol } = info;\n          const target = getEmitScriptTarget(context.host.getCompilationSettings());\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange10(t, sourceFile, node, suggestedSymbol, target));\n          return [createCodeFixAction(\"spelling\", changes, [Diagnostics.Change_spelling_to_0, symbolName(suggestedSymbol)], fixId21, Diagnostics.Fix_all_detected_spelling_errors)];\n        },\n        fixIds: [fixId21],\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes24, (changes, diag2) => {\n          const info = getInfo5(diag2.file, diag2.start, context, diag2.code);\n          const target = getEmitScriptTarget(context.host.getCompilationSettings());\n          if (info)\n            doChange10(changes, context.sourceFile, info.node, info.suggestedSymbol, target);\n        })\n      });\n    }\n  });\n  function createObjectTypeFromLabeledExpression(checker, label, expression) {\n    const member = checker.createSymbol(4, label.escapedText);\n    member.links.type = checker.getTypeAtLocation(expression);\n    const members = createSymbolTable([member]);\n    return checker.createAnonymousType(void 0, members, [], [], []);\n  }\n  function getFixInfo(checker, declaration, expectType, isFunctionType) {\n    if (!declaration.body || !isBlock(declaration.body) || length(declaration.body.statements) !== 1)\n      return void 0;\n    const firstStatement = first(declaration.body.statements);\n    if (isExpressionStatement(firstStatement) && checkFixedAssignableTo(checker, declaration, checker.getTypeAtLocation(firstStatement.expression), expectType, isFunctionType)) {\n      return {\n        declaration,\n        kind: 0,\n        expression: firstStatement.expression,\n        statement: firstStatement,\n        commentSource: firstStatement.expression\n      };\n    } else if (isLabeledStatement(firstStatement) && isExpressionStatement(firstStatement.statement)) {\n      const node = factory.createObjectLiteralExpression([factory.createPropertyAssignment(firstStatement.label, firstStatement.statement.expression)]);\n      const nodeType = createObjectTypeFromLabeledExpression(checker, firstStatement.label, firstStatement.statement.expression);\n      if (checkFixedAssignableTo(checker, declaration, nodeType, expectType, isFunctionType)) {\n        return isArrowFunction(declaration) ? {\n          declaration,\n          kind: 1,\n          expression: node,\n          statement: firstStatement,\n          commentSource: firstStatement.statement.expression\n        } : {\n          declaration,\n          kind: 0,\n          expression: node,\n          statement: firstStatement,\n          commentSource: firstStatement.statement.expression\n        };\n      }\n    } else if (isBlock(firstStatement) && length(firstStatement.statements) === 1) {\n      const firstBlockStatement = first(firstStatement.statements);\n      if (isLabeledStatement(firstBlockStatement) && isExpressionStatement(firstBlockStatement.statement)) {\n        const node = factory.createObjectLiteralExpression([factory.createPropertyAssignment(firstBlockStatement.label, firstBlockStatement.statement.expression)]);\n        const nodeType = createObjectTypeFromLabeledExpression(checker, firstBlockStatement.label, firstBlockStatement.statement.expression);\n        if (checkFixedAssignableTo(checker, declaration, nodeType, expectType, isFunctionType)) {\n          return {\n            declaration,\n            kind: 0,\n            expression: node,\n            statement: firstStatement,\n            commentSource: firstBlockStatement\n          };\n        }\n      }\n    }\n    return void 0;\n  }\n  function checkFixedAssignableTo(checker, declaration, exprType, type, isFunctionType) {\n    if (isFunctionType) {\n      const sig = checker.getSignatureFromDeclaration(declaration);\n      if (sig) {\n        if (hasSyntacticModifier(declaration, 512)) {\n          exprType = checker.createPromiseType(exprType);\n        }\n        const newSig = checker.createSignature(declaration, sig.typeParameters, sig.thisParameter, sig.parameters, exprType, void 0, sig.minArgumentCount, sig.flags);\n        exprType = checker.createAnonymousType(void 0, createSymbolTable(), [newSig], [], []);\n      } else {\n        exprType = checker.getAnyType();\n      }\n    }\n    return checker.isTypeAssignableTo(exprType, type);\n  }\n  function getInfo6(checker, sourceFile, position, errorCode) {\n    const node = getTokenAtPosition(sourceFile, position);\n    if (!node.parent)\n      return void 0;\n    const declaration = findAncestor(node.parent, isFunctionLikeDeclaration);\n    switch (errorCode) {\n      case Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:\n        if (!declaration || !declaration.body || !declaration.type || !rangeContainsRange(declaration.type, node))\n          return void 0;\n        return getFixInfo(checker, declaration, checker.getTypeFromTypeNode(declaration.type), false);\n      case Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:\n        if (!declaration || !isCallExpression(declaration.parent) || !declaration.body)\n          return void 0;\n        const pos = declaration.parent.arguments.indexOf(declaration);\n        const type = checker.getContextualTypeForArgumentAtIndex(declaration.parent, pos);\n        if (!type)\n          return void 0;\n        return getFixInfo(checker, declaration, type, true);\n      case Diagnostics.Type_0_is_not_assignable_to_type_1.code:\n        if (!isDeclarationName(node) || !isVariableLike(node.parent) && !isJsxAttribute(node.parent))\n          return void 0;\n        const initializer = getVariableLikeInitializer(node.parent);\n        if (!initializer || !isFunctionLikeDeclaration(initializer) || !initializer.body)\n          return void 0;\n        return getFixInfo(checker, initializer, checker.getTypeAtLocation(node.parent), true);\n    }\n    return void 0;\n  }\n  function getVariableLikeInitializer(declaration) {\n    switch (declaration.kind) {\n      case 257:\n      case 166:\n      case 205:\n      case 169:\n      case 299:\n        return declaration.initializer;\n      case 288:\n        return declaration.initializer && (isJsxExpression(declaration.initializer) ? declaration.initializer.expression : void 0);\n      case 300:\n      case 168:\n      case 302:\n      case 351:\n      case 344:\n        return void 0;\n    }\n  }\n  function addReturnStatement(changes, sourceFile, expression, statement) {\n    suppressLeadingAndTrailingTrivia(expression);\n    const probablyNeedSemi = probablyUsesSemicolons(sourceFile);\n    changes.replaceNode(sourceFile, statement, factory.createReturnStatement(expression), {\n      leadingTriviaOption: ts_textChanges_exports.LeadingTriviaOption.Exclude,\n      trailingTriviaOption: ts_textChanges_exports.TrailingTriviaOption.Exclude,\n      suffix: probablyNeedSemi ? \";\" : void 0\n    });\n  }\n  function removeBlockBodyBrace(changes, sourceFile, declaration, expression, commentSource, withParen) {\n    const newBody = withParen || needsParentheses(expression) ? factory.createParenthesizedExpression(expression) : expression;\n    suppressLeadingAndTrailingTrivia(commentSource);\n    copyComments(commentSource, newBody);\n    changes.replaceNode(sourceFile, declaration.body, newBody);\n  }\n  function wrapBlockWithParen(changes, sourceFile, declaration, expression) {\n    changes.replaceNode(sourceFile, declaration.body, factory.createParenthesizedExpression(expression));\n  }\n  function getActionForfixAddReturnStatement(context, expression, statement) {\n    const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => addReturnStatement(t, context.sourceFile, expression, statement));\n    return createCodeFixAction(fixId22, changes, Diagnostics.Add_a_return_statement, fixIdAddReturnStatement, Diagnostics.Add_all_missing_return_statement);\n  }\n  function getActionForFixRemoveBracesFromArrowFunctionBody(context, declaration, expression, commentSource) {\n    const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => removeBlockBodyBrace(t, context.sourceFile, declaration, expression, commentSource, false));\n    return createCodeFixAction(fixId22, changes, Diagnostics.Remove_braces_from_arrow_function_body, fixRemoveBracesFromArrowFunctionBody, Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues);\n  }\n  function getActionForfixWrapTheBlockWithParen(context, declaration, expression) {\n    const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => wrapBlockWithParen(t, context.sourceFile, declaration, expression));\n    return createCodeFixAction(fixId22, changes, Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal, fixIdWrapTheBlockWithParen, Diagnostics.Wrap_all_object_literal_with_parentheses);\n  }\n  var fixId22, fixIdAddReturnStatement, fixRemoveBracesFromArrowFunctionBody, fixIdWrapTheBlockWithParen, errorCodes25;\n  var init_returnValueCorrect = __esm({\n    \"src/services/codefixes/returnValueCorrect.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId22 = \"returnValueCorrect\";\n      fixIdAddReturnStatement = \"fixAddReturnStatement\";\n      fixRemoveBracesFromArrowFunctionBody = \"fixRemoveBracesFromArrowFunctionBody\";\n      fixIdWrapTheBlockWithParen = \"fixWrapTheBlockWithParen\";\n      errorCodes25 = [\n        Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,\n        Diagnostics.Type_0_is_not_assignable_to_type_1.code,\n        Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code\n      ];\n      registerCodeFix({\n        errorCodes: errorCodes25,\n        fixIds: [fixIdAddReturnStatement, fixRemoveBracesFromArrowFunctionBody, fixIdWrapTheBlockWithParen],\n        getCodeActions: function getCodeActionsToCorrectReturnValue(context) {\n          const { program, sourceFile, span: { start }, errorCode } = context;\n          const info = getInfo6(program.getTypeChecker(), sourceFile, start, errorCode);\n          if (!info)\n            return void 0;\n          if (info.kind === 0) {\n            return append([getActionForfixAddReturnStatement(context, info.expression, info.statement)], isArrowFunction(info.declaration) ? getActionForFixRemoveBracesFromArrowFunctionBody(context, info.declaration, info.expression, info.commentSource) : void 0);\n          } else {\n            return [getActionForfixWrapTheBlockWithParen(context, info.declaration, info.expression)];\n          }\n        },\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes25, (changes, diag2) => {\n          const info = getInfo6(context.program.getTypeChecker(), diag2.file, diag2.start, diag2.code);\n          if (!info)\n            return void 0;\n          switch (context.fixId) {\n            case fixIdAddReturnStatement:\n              addReturnStatement(changes, diag2.file, info.expression, info.statement);\n              break;\n            case fixRemoveBracesFromArrowFunctionBody:\n              if (!isArrowFunction(info.declaration))\n                return void 0;\n              removeBlockBodyBrace(changes, diag2.file, info.declaration, info.expression, info.commentSource, false);\n              break;\n            case fixIdWrapTheBlockWithParen:\n              if (!isArrowFunction(info.declaration))\n                return void 0;\n              wrapBlockWithParen(changes, diag2.file, info.declaration, info.expression);\n              break;\n            default:\n              Debug.fail(JSON.stringify(context.fixId));\n          }\n        })\n      });\n    }\n  });\n  function getInfo7(sourceFile, tokenPos, errorCode, checker, program) {\n    var _a2;\n    const token = getTokenAtPosition(sourceFile, tokenPos);\n    const parent2 = token.parent;\n    if (errorCode === Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code) {\n      if (!(token.kind === 18 && isObjectLiteralExpression(parent2) && isCallExpression(parent2.parent)))\n        return void 0;\n      const argIndex = findIndex(parent2.parent.arguments, (arg) => arg === parent2);\n      if (argIndex < 0)\n        return void 0;\n      const signature = checker.getResolvedSignature(parent2.parent);\n      if (!(signature && signature.declaration && signature.parameters[argIndex]))\n        return void 0;\n      const param = signature.parameters[argIndex].valueDeclaration;\n      if (!(param && isParameter(param) && isIdentifier(param.name)))\n        return void 0;\n      const properties = arrayFrom(checker.getUnmatchedProperties(checker.getTypeAtLocation(parent2), checker.getParameterType(signature, argIndex), false, false));\n      if (!length(properties))\n        return void 0;\n      return { kind: 3, token: param.name, properties, parentDeclaration: parent2 };\n    }\n    if (!isMemberName(token))\n      return void 0;\n    if (isIdentifier(token) && hasInitializer(parent2) && parent2.initializer && isObjectLiteralExpression(parent2.initializer)) {\n      const properties = arrayFrom(checker.getUnmatchedProperties(checker.getTypeAtLocation(parent2.initializer), checker.getTypeAtLocation(token), false, false));\n      if (!length(properties))\n        return void 0;\n      return { kind: 3, token, properties, parentDeclaration: parent2.initializer };\n    }\n    if (isIdentifier(token) && isJsxOpeningLikeElement(token.parent)) {\n      const target = getEmitScriptTarget(program.getCompilerOptions());\n      const attributes = getUnmatchedAttributes(checker, target, token.parent);\n      if (!length(attributes))\n        return void 0;\n      return { kind: 4, token, attributes, parentDeclaration: token.parent };\n    }\n    if (isIdentifier(token)) {\n      const type = (_a2 = checker.getContextualType(token)) == null ? void 0 : _a2.getNonNullableType();\n      if (type && getObjectFlags(type) & 16) {\n        const signature = firstOrUndefined(checker.getSignaturesOfType(type, 0));\n        if (signature === void 0)\n          return void 0;\n        return { kind: 5, token, signature, sourceFile, parentDeclaration: findScope(token) };\n      }\n      if (isCallExpression(parent2) && parent2.expression === token) {\n        return { kind: 2, token, call: parent2, sourceFile, modifierFlags: 0, parentDeclaration: findScope(token) };\n      }\n    }\n    if (!isPropertyAccessExpression(parent2))\n      return void 0;\n    const leftExpressionType = skipConstraint(checker.getTypeAtLocation(parent2.expression));\n    const symbol = leftExpressionType.symbol;\n    if (!symbol || !symbol.declarations)\n      return void 0;\n    if (isIdentifier(token) && isCallExpression(parent2.parent)) {\n      const moduleDeclaration = find(symbol.declarations, isModuleDeclaration);\n      const moduleDeclarationSourceFile = moduleDeclaration == null ? void 0 : moduleDeclaration.getSourceFile();\n      if (moduleDeclaration && moduleDeclarationSourceFile && !isSourceFileFromLibrary(program, moduleDeclarationSourceFile)) {\n        return { kind: 2, token, call: parent2.parent, sourceFile, modifierFlags: 1, parentDeclaration: moduleDeclaration };\n      }\n      const moduleSourceFile = find(symbol.declarations, isSourceFile);\n      if (sourceFile.commonJsModuleIndicator)\n        return void 0;\n      if (moduleSourceFile && !isSourceFileFromLibrary(program, moduleSourceFile)) {\n        return { kind: 2, token, call: parent2.parent, sourceFile: moduleSourceFile, modifierFlags: 1, parentDeclaration: moduleSourceFile };\n      }\n    }\n    const classDeclaration = find(symbol.declarations, isClassLike);\n    if (!classDeclaration && isPrivateIdentifier(token))\n      return void 0;\n    const declaration = classDeclaration || find(symbol.declarations, (d) => isInterfaceDeclaration(d) || isTypeLiteralNode(d));\n    if (declaration && !isSourceFileFromLibrary(program, declaration.getSourceFile())) {\n      const makeStatic = !isTypeLiteralNode(declaration) && (leftExpressionType.target || leftExpressionType) !== checker.getDeclaredTypeOfSymbol(symbol);\n      if (makeStatic && (isPrivateIdentifier(token) || isInterfaceDeclaration(declaration)))\n        return void 0;\n      const declSourceFile = declaration.getSourceFile();\n      const modifierFlags = isTypeLiteralNode(declaration) ? 0 : (makeStatic ? 32 : 0) | (startsWithUnderscore(token.text) ? 8 : 0);\n      const isJSFile = isSourceFileJS(declSourceFile);\n      const call = tryCast(parent2.parent, isCallExpression);\n      return { kind: 0, token, call, modifierFlags, parentDeclaration: declaration, declSourceFile, isJSFile };\n    }\n    const enumDeclaration = find(symbol.declarations, isEnumDeclaration);\n    if (enumDeclaration && !(leftExpressionType.flags & 1056) && !isPrivateIdentifier(token) && !isSourceFileFromLibrary(program, enumDeclaration.getSourceFile())) {\n      return { kind: 1, token, parentDeclaration: enumDeclaration };\n    }\n    return void 0;\n  }\n  function getActionsForMissingMemberDeclaration(context, info) {\n    return info.isJSFile ? singleElementArray(createActionForAddMissingMemberInJavascriptFile(context, info)) : createActionsForAddMissingMemberInTypeScriptFile(context, info);\n  }\n  function createActionForAddMissingMemberInJavascriptFile(context, { parentDeclaration, declSourceFile, modifierFlags, token }) {\n    if (isInterfaceDeclaration(parentDeclaration) || isTypeLiteralNode(parentDeclaration)) {\n      return void 0;\n    }\n    const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => addMissingMemberInJs(t, declSourceFile, parentDeclaration, token, !!(modifierFlags & 32)));\n    if (changes.length === 0) {\n      return void 0;\n    }\n    const diagnostic = modifierFlags & 32 ? Diagnostics.Initialize_static_property_0 : isPrivateIdentifier(token) ? Diagnostics.Declare_a_private_field_named_0 : Diagnostics.Initialize_property_0_in_the_constructor;\n    return createCodeFixAction(fixMissingMember, changes, [diagnostic, token.text], fixMissingMember, Diagnostics.Add_all_missing_members);\n  }\n  function addMissingMemberInJs(changeTracker, sourceFile, classDeclaration, token, makeStatic) {\n    const tokenName = token.text;\n    if (makeStatic) {\n      if (classDeclaration.kind === 228) {\n        return;\n      }\n      const className = classDeclaration.name.getText();\n      const staticInitialization = initializePropertyToUndefined(factory.createIdentifier(className), tokenName);\n      changeTracker.insertNodeAfter(sourceFile, classDeclaration, staticInitialization);\n    } else if (isPrivateIdentifier(token)) {\n      const property = factory.createPropertyDeclaration(void 0, tokenName, void 0, void 0, void 0);\n      const lastProp = getNodeToInsertPropertyAfter(classDeclaration);\n      if (lastProp) {\n        changeTracker.insertNodeAfter(sourceFile, lastProp, property);\n      } else {\n        changeTracker.insertMemberAtStart(sourceFile, classDeclaration, property);\n      }\n    } else {\n      const classConstructor = getFirstConstructorWithBody(classDeclaration);\n      if (!classConstructor) {\n        return;\n      }\n      const propertyInitialization = initializePropertyToUndefined(factory.createThis(), tokenName);\n      changeTracker.insertNodeAtConstructorEnd(sourceFile, classConstructor, propertyInitialization);\n    }\n  }\n  function initializePropertyToUndefined(obj, propertyName) {\n    return factory.createExpressionStatement(factory.createAssignment(factory.createPropertyAccessExpression(obj, propertyName), createUndefined()));\n  }\n  function createActionsForAddMissingMemberInTypeScriptFile(context, { parentDeclaration, declSourceFile, modifierFlags, token }) {\n    const memberName = token.text;\n    const isStatic2 = modifierFlags & 32;\n    const typeNode = getTypeNode2(context.program.getTypeChecker(), parentDeclaration, token);\n    const addPropertyDeclarationChanges = (modifierFlags2) => ts_textChanges_exports.ChangeTracker.with(context, (t) => addPropertyDeclaration(t, declSourceFile, parentDeclaration, memberName, typeNode, modifierFlags2));\n    const actions2 = [createCodeFixAction(fixMissingMember, addPropertyDeclarationChanges(modifierFlags & 32), [isStatic2 ? Diagnostics.Declare_static_property_0 : Diagnostics.Declare_property_0, memberName], fixMissingMember, Diagnostics.Add_all_missing_members)];\n    if (isStatic2 || isPrivateIdentifier(token)) {\n      return actions2;\n    }\n    if (modifierFlags & 8) {\n      actions2.unshift(createCodeFixActionWithoutFixAll(fixMissingMember, addPropertyDeclarationChanges(8), [Diagnostics.Declare_private_property_0, memberName]));\n    }\n    actions2.push(createAddIndexSignatureAction(context, declSourceFile, parentDeclaration, token.text, typeNode));\n    return actions2;\n  }\n  function getTypeNode2(checker, node, token) {\n    let typeNode;\n    if (token.parent.parent.kind === 223) {\n      const binaryExpression = token.parent.parent;\n      const otherExpression = token.parent === binaryExpression.left ? binaryExpression.right : binaryExpression.left;\n      const widenedType = checker.getWidenedType(checker.getBaseTypeOfLiteralType(checker.getTypeAtLocation(otherExpression)));\n      typeNode = checker.typeToTypeNode(widenedType, node, 1);\n    } else {\n      const contextualType = checker.getContextualType(token.parent);\n      typeNode = contextualType ? checker.typeToTypeNode(contextualType, void 0, 1) : void 0;\n    }\n    return typeNode || factory.createKeywordTypeNode(131);\n  }\n  function addPropertyDeclaration(changeTracker, sourceFile, node, tokenName, typeNode, modifierFlags) {\n    const modifiers = modifierFlags ? factory.createNodeArray(factory.createModifiersFromModifierFlags(modifierFlags)) : void 0;\n    const property = isClassLike(node) ? factory.createPropertyDeclaration(modifiers, tokenName, void 0, typeNode, void 0) : factory.createPropertySignature(void 0, tokenName, void 0, typeNode);\n    const lastProp = getNodeToInsertPropertyAfter(node);\n    if (lastProp) {\n      changeTracker.insertNodeAfter(sourceFile, lastProp, property);\n    } else {\n      changeTracker.insertMemberAtStart(sourceFile, node, property);\n    }\n  }\n  function getNodeToInsertPropertyAfter(node) {\n    let res;\n    for (const member of node.members) {\n      if (!isPropertyDeclaration(member))\n        break;\n      res = member;\n    }\n    return res;\n  }\n  function createAddIndexSignatureAction(context, sourceFile, node, tokenName, typeNode) {\n    const stringTypeNode = factory.createKeywordTypeNode(152);\n    const indexingParameter = factory.createParameterDeclaration(void 0, void 0, \"x\", void 0, stringTypeNode, void 0);\n    const indexSignature = factory.createIndexSignature(void 0, [indexingParameter], typeNode);\n    const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => t.insertMemberAtStart(sourceFile, node, indexSignature));\n    return createCodeFixActionWithoutFixAll(fixMissingMember, changes, [Diagnostics.Add_index_signature_for_property_0, tokenName]);\n  }\n  function getActionsForMissingMethodDeclaration(context, info) {\n    const { parentDeclaration, declSourceFile, modifierFlags, token, call } = info;\n    if (call === void 0) {\n      return void 0;\n    }\n    if (isPrivateIdentifier(token)) {\n      return void 0;\n    }\n    const methodName = token.text;\n    const addMethodDeclarationChanges = (modifierFlags2) => ts_textChanges_exports.ChangeTracker.with(context, (t) => addMethodDeclaration(context, t, call, token, modifierFlags2, parentDeclaration, declSourceFile));\n    const actions2 = [createCodeFixAction(fixMissingMember, addMethodDeclarationChanges(modifierFlags & 32), [modifierFlags & 32 ? Diagnostics.Declare_static_method_0 : Diagnostics.Declare_method_0, methodName], fixMissingMember, Diagnostics.Add_all_missing_members)];\n    if (modifierFlags & 8) {\n      actions2.unshift(createCodeFixActionWithoutFixAll(fixMissingMember, addMethodDeclarationChanges(8), [Diagnostics.Declare_private_method_0, methodName]));\n    }\n    return actions2;\n  }\n  function addMethodDeclaration(context, changes, callExpression, name, modifierFlags, parentDeclaration, sourceFile) {\n    const importAdder = createImportAdder(sourceFile, context.program, context.preferences, context.host);\n    const kind = isClassLike(parentDeclaration) ? 171 : 170;\n    const signatureDeclaration = createSignatureDeclarationFromCallExpression(kind, context, importAdder, callExpression, name, modifierFlags, parentDeclaration);\n    const containingMethodDeclaration = tryGetContainingMethodDeclaration(parentDeclaration, callExpression);\n    if (containingMethodDeclaration) {\n      changes.insertNodeAfter(sourceFile, containingMethodDeclaration, signatureDeclaration);\n    } else {\n      changes.insertMemberAtStart(sourceFile, parentDeclaration, signatureDeclaration);\n    }\n    importAdder.writeFixes(changes);\n  }\n  function addEnumMemberDeclaration(changes, checker, { token, parentDeclaration }) {\n    const hasStringInitializer = some(parentDeclaration.members, (member) => {\n      const type = checker.getTypeAtLocation(member);\n      return !!(type && type.flags & 402653316);\n    });\n    const enumMember = factory.createEnumMember(token, hasStringInitializer ? factory.createStringLiteral(token.text) : void 0);\n    changes.replaceNode(parentDeclaration.getSourceFile(), parentDeclaration, factory.updateEnumDeclaration(parentDeclaration, parentDeclaration.modifiers, parentDeclaration.name, concatenate(parentDeclaration.members, singleElementArray(enumMember))), {\n      leadingTriviaOption: ts_textChanges_exports.LeadingTriviaOption.IncludeAll,\n      trailingTriviaOption: ts_textChanges_exports.TrailingTriviaOption.Exclude\n    });\n  }\n  function addFunctionDeclaration(changes, context, info) {\n    const quotePreference = getQuotePreference(context.sourceFile, context.preferences);\n    const importAdder = createImportAdder(context.sourceFile, context.program, context.preferences, context.host);\n    const functionDeclaration = info.kind === 2 ? createSignatureDeclarationFromCallExpression(259, context, importAdder, info.call, idText(info.token), info.modifierFlags, info.parentDeclaration) : createSignatureDeclarationFromSignature(259, context, quotePreference, info.signature, createStubbedBody(Diagnostics.Function_not_implemented.message, quotePreference), info.token, void 0, void 0, void 0, importAdder);\n    if (functionDeclaration === void 0) {\n      Debug.fail(\"fixMissingFunctionDeclaration codefix got unexpected error.\");\n    }\n    isReturnStatement(info.parentDeclaration) ? changes.insertNodeBefore(info.sourceFile, info.parentDeclaration, functionDeclaration, true) : changes.insertNodeAtEndOfScope(info.sourceFile, info.parentDeclaration, functionDeclaration);\n    importAdder.writeFixes(changes);\n  }\n  function addJsxAttributes(changes, context, info) {\n    const importAdder = createImportAdder(context.sourceFile, context.program, context.preferences, context.host);\n    const quotePreference = getQuotePreference(context.sourceFile, context.preferences);\n    const checker = context.program.getTypeChecker();\n    const jsxAttributesNode = info.parentDeclaration.attributes;\n    const hasSpreadAttribute = some(jsxAttributesNode.properties, isJsxSpreadAttribute);\n    const attrs = map(info.attributes, (attr) => {\n      const value = tryGetValueFromType(context, checker, importAdder, quotePreference, checker.getTypeOfSymbol(attr), info.parentDeclaration);\n      const name = factory.createIdentifier(attr.name);\n      const jsxAttribute = factory.createJsxAttribute(name, factory.createJsxExpression(void 0, value));\n      setParent(name, jsxAttribute);\n      return jsxAttribute;\n    });\n    const jsxAttributes = factory.createJsxAttributes(hasSpreadAttribute ? [...attrs, ...jsxAttributesNode.properties] : [...jsxAttributesNode.properties, ...attrs]);\n    const options = { prefix: jsxAttributesNode.pos === jsxAttributesNode.end ? \" \" : void 0 };\n    changes.replaceNode(context.sourceFile, jsxAttributesNode, jsxAttributes, options);\n    importAdder.writeFixes(changes);\n  }\n  function addObjectLiteralProperties(changes, context, info) {\n    const importAdder = createImportAdder(context.sourceFile, context.program, context.preferences, context.host);\n    const quotePreference = getQuotePreference(context.sourceFile, context.preferences);\n    const target = getEmitScriptTarget(context.program.getCompilerOptions());\n    const checker = context.program.getTypeChecker();\n    const props = map(info.properties, (prop) => {\n      const initializer = tryGetValueFromType(context, checker, importAdder, quotePreference, checker.getTypeOfSymbol(prop), info.parentDeclaration);\n      return factory.createPropertyAssignment(createPropertyNameFromSymbol(prop, target, quotePreference, checker), initializer);\n    });\n    const options = {\n      leadingTriviaOption: ts_textChanges_exports.LeadingTriviaOption.Exclude,\n      trailingTriviaOption: ts_textChanges_exports.TrailingTriviaOption.Exclude,\n      indentation: info.indentation\n    };\n    changes.replaceNode(context.sourceFile, info.parentDeclaration, factory.createObjectLiteralExpression([...info.parentDeclaration.properties, ...props], true), options);\n    importAdder.writeFixes(changes);\n  }\n  function tryGetValueFromType(context, checker, importAdder, quotePreference, type, enclosingDeclaration) {\n    if (type.flags & 3) {\n      return createUndefined();\n    }\n    if (type.flags & (4 | 134217728)) {\n      return factory.createStringLiteral(\"\", quotePreference === 0);\n    }\n    if (type.flags & 8) {\n      return factory.createNumericLiteral(0);\n    }\n    if (type.flags & 64) {\n      return factory.createBigIntLiteral(\"0n\");\n    }\n    if (type.flags & 16) {\n      return factory.createFalse();\n    }\n    if (type.flags & 1056) {\n      const enumMember = type.symbol.exports ? firstOrUndefinedIterator(type.symbol.exports.values()) : type.symbol;\n      const name = checker.symbolToExpression(type.symbol.parent ? type.symbol.parent : type.symbol, 111551, void 0, void 0);\n      return enumMember === void 0 || name === void 0 ? factory.createNumericLiteral(0) : factory.createPropertyAccessExpression(name, checker.symbolToString(enumMember));\n    }\n    if (type.flags & 256) {\n      return factory.createNumericLiteral(type.value);\n    }\n    if (type.flags & 2048) {\n      return factory.createBigIntLiteral(type.value);\n    }\n    if (type.flags & 128) {\n      return factory.createStringLiteral(type.value, quotePreference === 0);\n    }\n    if (type.flags & 512) {\n      return type === checker.getFalseType() || type === checker.getFalseType(true) ? factory.createFalse() : factory.createTrue();\n    }\n    if (type.flags & 65536) {\n      return factory.createNull();\n    }\n    if (type.flags & 1048576) {\n      const expression = firstDefined(type.types, (t) => tryGetValueFromType(context, checker, importAdder, quotePreference, t, enclosingDeclaration));\n      return expression != null ? expression : createUndefined();\n    }\n    if (checker.isArrayLikeType(type)) {\n      return factory.createArrayLiteralExpression();\n    }\n    if (isObjectLiteralType(type)) {\n      const props = map(checker.getPropertiesOfType(type), (prop) => {\n        const initializer = tryGetValueFromType(context, checker, importAdder, quotePreference, checker.getTypeOfSymbol(prop), enclosingDeclaration);\n        return factory.createPropertyAssignment(prop.name, initializer);\n      });\n      return factory.createObjectLiteralExpression(props, true);\n    }\n    if (getObjectFlags(type) & 16) {\n      const decl = find(type.symbol.declarations || emptyArray, or(isFunctionTypeNode, isMethodSignature, isMethodDeclaration));\n      if (decl === void 0)\n        return createUndefined();\n      const signature = checker.getSignaturesOfType(type, 0);\n      if (signature === void 0)\n        return createUndefined();\n      const func = createSignatureDeclarationFromSignature(215, context, quotePreference, signature[0], createStubbedBody(Diagnostics.Function_not_implemented.message, quotePreference), void 0, void 0, void 0, enclosingDeclaration, importAdder);\n      return func != null ? func : createUndefined();\n    }\n    if (getObjectFlags(type) & 1) {\n      const classDeclaration = getClassLikeDeclarationOfSymbol(type.symbol);\n      if (classDeclaration === void 0 || hasAbstractModifier(classDeclaration))\n        return createUndefined();\n      const constructorDeclaration = getFirstConstructorWithBody(classDeclaration);\n      if (constructorDeclaration && length(constructorDeclaration.parameters))\n        return createUndefined();\n      return factory.createNewExpression(factory.createIdentifier(type.symbol.name), void 0, void 0);\n    }\n    return createUndefined();\n  }\n  function createUndefined() {\n    return factory.createIdentifier(\"undefined\");\n  }\n  function isObjectLiteralType(type) {\n    return type.flags & 524288 && (getObjectFlags(type) & 128 || type.symbol && tryCast(singleOrUndefined(type.symbol.declarations), isTypeLiteralNode));\n  }\n  function getUnmatchedAttributes(checker, target, source) {\n    const attrsType = checker.getContextualType(source.attributes);\n    if (attrsType === void 0)\n      return emptyArray;\n    const targetProps = attrsType.getProperties();\n    if (!length(targetProps))\n      return emptyArray;\n    const seenNames = /* @__PURE__ */ new Set();\n    for (const sourceProp of source.attributes.properties) {\n      if (isJsxAttribute(sourceProp)) {\n        seenNames.add(sourceProp.name.escapedText);\n      }\n      if (isJsxSpreadAttribute(sourceProp)) {\n        const type = checker.getTypeAtLocation(sourceProp.expression);\n        for (const prop of type.getProperties()) {\n          seenNames.add(prop.escapedName);\n        }\n      }\n    }\n    return filter(targetProps, (targetProp) => isIdentifierText(targetProp.name, target, 1) && !(targetProp.flags & 16777216 || getCheckFlags(targetProp) & 48 || seenNames.has(targetProp.escapedName)));\n  }\n  function tryGetContainingMethodDeclaration(node, callExpression) {\n    if (isTypeLiteralNode(node)) {\n      return void 0;\n    }\n    const declaration = findAncestor(callExpression, (n) => isMethodDeclaration(n) || isConstructorDeclaration(n));\n    return declaration && declaration.parent === node ? declaration : void 0;\n  }\n  function createPropertyNameFromSymbol(symbol, target, quotePreference, checker) {\n    if (isTransientSymbol(symbol)) {\n      const prop = checker.symbolToNode(symbol, 111551, void 0, 1073741824);\n      if (prop && isComputedPropertyName(prop))\n        return prop;\n    }\n    return createPropertyNameNodeForIdentifierOrLiteral(symbol.name, target, quotePreference === 0);\n  }\n  function findScope(node) {\n    if (findAncestor(node, isJsxExpression)) {\n      const returnStatement = findAncestor(node.parent, isReturnStatement);\n      if (returnStatement)\n        return returnStatement;\n    }\n    return getSourceFileOfNode(node);\n  }\n  var fixMissingMember, fixMissingProperties, fixMissingAttributes, fixMissingFunctionDeclaration, errorCodes26;\n  var init_fixAddMissingMember = __esm({\n    \"src/services/codefixes/fixAddMissingMember.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixMissingMember = \"fixMissingMember\";\n      fixMissingProperties = \"fixMissingProperties\";\n      fixMissingAttributes = \"fixMissingAttributes\";\n      fixMissingFunctionDeclaration = \"fixMissingFunctionDeclaration\";\n      errorCodes26 = [\n        Diagnostics.Property_0_does_not_exist_on_type_1.code,\n        Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,\n        Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,\n        Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,\n        Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,\n        Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,\n        Diagnostics.Cannot_find_name_0.code\n      ];\n      registerCodeFix({\n        errorCodes: errorCodes26,\n        getCodeActions(context) {\n          const typeChecker = context.program.getTypeChecker();\n          const info = getInfo7(context.sourceFile, context.span.start, context.errorCode, typeChecker, context.program);\n          if (!info) {\n            return void 0;\n          }\n          if (info.kind === 3) {\n            const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => addObjectLiteralProperties(t, context, info));\n            return [createCodeFixAction(fixMissingProperties, changes, Diagnostics.Add_missing_properties, fixMissingProperties, Diagnostics.Add_all_missing_properties)];\n          }\n          if (info.kind === 4) {\n            const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => addJsxAttributes(t, context, info));\n            return [createCodeFixAction(fixMissingAttributes, changes, Diagnostics.Add_missing_attributes, fixMissingAttributes, Diagnostics.Add_all_missing_attributes)];\n          }\n          if (info.kind === 2 || info.kind === 5) {\n            const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => addFunctionDeclaration(t, context, info));\n            return [createCodeFixAction(fixMissingFunctionDeclaration, changes, [Diagnostics.Add_missing_function_declaration_0, info.token.text], fixMissingFunctionDeclaration, Diagnostics.Add_all_missing_function_declarations)];\n          }\n          if (info.kind === 1) {\n            const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => addEnumMemberDeclaration(t, context.program.getTypeChecker(), info));\n            return [createCodeFixAction(fixMissingMember, changes, [Diagnostics.Add_missing_enum_member_0, info.token.text], fixMissingMember, Diagnostics.Add_all_missing_members)];\n          }\n          return concatenate(getActionsForMissingMethodDeclaration(context, info), getActionsForMissingMemberDeclaration(context, info));\n        },\n        fixIds: [fixMissingMember, fixMissingFunctionDeclaration, fixMissingProperties, fixMissingAttributes],\n        getAllCodeActions: (context) => {\n          const { program, fixId: fixId51 } = context;\n          const checker = program.getTypeChecker();\n          const seen = /* @__PURE__ */ new Map();\n          const typeDeclToMembers = /* @__PURE__ */ new Map();\n          return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {\n            eachDiagnostic(context, errorCodes26, (diag2) => {\n              const info = getInfo7(diag2.file, diag2.start, diag2.code, checker, context.program);\n              if (!info || !addToSeen(seen, getNodeId(info.parentDeclaration) + \"#\" + info.token.text)) {\n                return;\n              }\n              if (fixId51 === fixMissingFunctionDeclaration && (info.kind === 2 || info.kind === 5)) {\n                addFunctionDeclaration(changes, context, info);\n              } else if (fixId51 === fixMissingProperties && info.kind === 3) {\n                addObjectLiteralProperties(changes, context, info);\n              } else if (fixId51 === fixMissingAttributes && info.kind === 4) {\n                addJsxAttributes(changes, context, info);\n              } else {\n                if (info.kind === 1) {\n                  addEnumMemberDeclaration(changes, checker, info);\n                }\n                if (info.kind === 0) {\n                  const { parentDeclaration, token } = info;\n                  const infos = getOrUpdate(typeDeclToMembers, parentDeclaration, () => []);\n                  if (!infos.some((i) => i.token.text === token.text)) {\n                    infos.push(info);\n                  }\n                }\n              }\n            });\n            typeDeclToMembers.forEach((infos, declaration) => {\n              const supers = isTypeLiteralNode(declaration) ? void 0 : getAllSupers(declaration, checker);\n              for (const info of infos) {\n                if (supers == null ? void 0 : supers.some((superClassOrInterface) => {\n                  const superInfos = typeDeclToMembers.get(superClassOrInterface);\n                  return !!superInfos && superInfos.some(({ token: token2 }) => token2.text === info.token.text);\n                }))\n                  continue;\n                const { parentDeclaration, declSourceFile, modifierFlags, token, call, isJSFile } = info;\n                if (call && !isPrivateIdentifier(token)) {\n                  addMethodDeclaration(context, changes, call, token, modifierFlags & 32, parentDeclaration, declSourceFile);\n                } else {\n                  if (isJSFile && !isInterfaceDeclaration(parentDeclaration) && !isTypeLiteralNode(parentDeclaration)) {\n                    addMissingMemberInJs(changes, declSourceFile, parentDeclaration, token, !!(modifierFlags & 32));\n                  } else {\n                    const typeNode = getTypeNode2(checker, parentDeclaration, token);\n                    addPropertyDeclaration(changes, declSourceFile, parentDeclaration, token.text, typeNode, modifierFlags & 32);\n                  }\n                }\n              }\n            });\n          }));\n        }\n      });\n    }\n  });\n  function addMissingNewOperator(changes, sourceFile, span) {\n    const call = cast(findAncestorMatchingSpan2(sourceFile, span), isCallExpression);\n    const newExpression = factory.createNewExpression(call.expression, call.typeArguments, call.arguments);\n    changes.replaceNode(sourceFile, call, newExpression);\n  }\n  function findAncestorMatchingSpan2(sourceFile, span) {\n    let token = getTokenAtPosition(sourceFile, span.start);\n    const end = textSpanEnd(span);\n    while (token.end < end) {\n      token = token.parent;\n    }\n    return token;\n  }\n  var fixId23, errorCodes27;\n  var init_fixAddMissingNewOperator = __esm({\n    \"src/services/codefixes/fixAddMissingNewOperator.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId23 = \"addMissingNewOperator\";\n      errorCodes27 = [Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];\n      registerCodeFix({\n        errorCodes: errorCodes27,\n        getCodeActions(context) {\n          const { sourceFile, span } = context;\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => addMissingNewOperator(t, sourceFile, span));\n          return [createCodeFixAction(fixId23, changes, Diagnostics.Add_missing_new_operator_to_call, fixId23, Diagnostics.Add_missing_new_operator_to_all_calls)];\n        },\n        fixIds: [fixId23],\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes27, (changes, diag2) => addMissingNewOperator(changes, context.sourceFile, diag2))\n      });\n    }\n  });\n  function getInstallCommand(fileName, packageName) {\n    return { type: \"install package\", file: fileName, packageName };\n  }\n  function tryGetImportedPackageName(sourceFile, pos) {\n    const moduleSpecifierText = tryCast(getTokenAtPosition(sourceFile, pos), isStringLiteral);\n    if (!moduleSpecifierText)\n      return void 0;\n    const moduleName = moduleSpecifierText.text;\n    const { packageName } = parsePackageName(moduleName);\n    return isExternalModuleNameRelative(packageName) ? void 0 : packageName;\n  }\n  function getTypesPackageNameToInstall(packageName, host, diagCode) {\n    var _a2;\n    return diagCode === errorCodeCannotFindModule ? ts_JsTyping_exports.nodeCoreModules.has(packageName) ? \"@types/node\" : void 0 : ((_a2 = host.isKnownTypesPackageName) == null ? void 0 : _a2.call(host, packageName)) ? getTypesPackageName(packageName) : void 0;\n  }\n  var fixName2, fixIdInstallTypesPackage, errorCodeCannotFindModule, errorCodes28;\n  var init_fixCannotFindModule = __esm({\n    \"src/services/codefixes/fixCannotFindModule.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixName2 = \"fixCannotFindModule\";\n      fixIdInstallTypesPackage = \"installTypesPackage\";\n      errorCodeCannotFindModule = Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations.code;\n      errorCodes28 = [\n        errorCodeCannotFindModule,\n        Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code\n      ];\n      registerCodeFix({\n        errorCodes: errorCodes28,\n        getCodeActions: function getCodeActionsToFixNotFoundModule(context) {\n          const { host, sourceFile, span: { start } } = context;\n          const packageName = tryGetImportedPackageName(sourceFile, start);\n          if (packageName === void 0)\n            return void 0;\n          const typesPackageName = getTypesPackageNameToInstall(packageName, host, context.errorCode);\n          return typesPackageName === void 0 ? [] : [createCodeFixAction(fixName2, [], [Diagnostics.Install_0, typesPackageName], fixIdInstallTypesPackage, Diagnostics.Install_all_missing_types_packages, getInstallCommand(sourceFile.fileName, typesPackageName))];\n        },\n        fixIds: [fixIdInstallTypesPackage],\n        getAllCodeActions: (context) => {\n          return codeFixAll(context, errorCodes28, (_changes, diag2, commands) => {\n            const packageName = tryGetImportedPackageName(diag2.file, diag2.start);\n            if (packageName === void 0)\n              return void 0;\n            switch (context.fixId) {\n              case fixIdInstallTypesPackage: {\n                const pkg = getTypesPackageNameToInstall(packageName, context.host, diag2.code);\n                if (pkg) {\n                  commands.push(getInstallCommand(diag2.file.fileName, pkg));\n                }\n                break;\n              }\n              default:\n                Debug.fail(`Bad fixId: ${context.fixId}`);\n            }\n          });\n        }\n      });\n    }\n  });\n  function getClass2(sourceFile, pos) {\n    const token = getTokenAtPosition(sourceFile, pos);\n    return cast(token.parent, isClassLike);\n  }\n  function addMissingMembers(classDeclaration, sourceFile, context, changeTracker, preferences) {\n    const extendsNode = getEffectiveBaseTypeNode(classDeclaration);\n    const checker = context.program.getTypeChecker();\n    const instantiatedExtendsType = checker.getTypeAtLocation(extendsNode);\n    const abstractAndNonPrivateExtendsSymbols = checker.getPropertiesOfType(instantiatedExtendsType).filter(symbolPointsToNonPrivateAndAbstractMember);\n    const importAdder = createImportAdder(sourceFile, context.program, preferences, context.host);\n    createMissingMemberNodes(classDeclaration, abstractAndNonPrivateExtendsSymbols, sourceFile, context, preferences, importAdder, (member) => changeTracker.insertMemberAtStart(sourceFile, classDeclaration, member));\n    importAdder.writeFixes(changeTracker);\n  }\n  function symbolPointsToNonPrivateAndAbstractMember(symbol) {\n    const flags = getSyntacticModifierFlags(first(symbol.getDeclarations()));\n    return !(flags & 8) && !!(flags & 256);\n  }\n  var errorCodes29, fixId24;\n  var init_fixClassDoesntImplementInheritedAbstractMember = __esm({\n    \"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      errorCodes29 = [\n        Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,\n        Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code\n      ];\n      fixId24 = \"fixClassDoesntImplementInheritedAbstractMember\";\n      registerCodeFix({\n        errorCodes: errorCodes29,\n        getCodeActions: function getCodeActionsToFixClassNotImplementingInheritedMembers(context) {\n          const { sourceFile, span } = context;\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => addMissingMembers(getClass2(sourceFile, span.start), sourceFile, context, t, context.preferences));\n          return changes.length === 0 ? void 0 : [createCodeFixAction(fixId24, changes, Diagnostics.Implement_inherited_abstract_class, fixId24, Diagnostics.Implement_all_inherited_abstract_classes)];\n        },\n        fixIds: [fixId24],\n        getAllCodeActions: function getAllCodeActionsToFixClassDoesntImplementInheritedAbstractMember(context) {\n          const seenClassDeclarations = /* @__PURE__ */ new Map();\n          return codeFixAll(context, errorCodes29, (changes, diag2) => {\n            const classDeclaration = getClass2(diag2.file, diag2.start);\n            if (addToSeen(seenClassDeclarations, getNodeId(classDeclaration))) {\n              addMissingMembers(classDeclaration, context.sourceFile, context, changes, context.preferences);\n            }\n          });\n        }\n      });\n    }\n  });\n  function doChange11(changes, sourceFile, constructor, superCall) {\n    changes.insertNodeAtConstructorStart(sourceFile, constructor, superCall);\n    changes.delete(sourceFile, superCall);\n  }\n  function getNodes(sourceFile, pos) {\n    const token = getTokenAtPosition(sourceFile, pos);\n    if (token.kind !== 108)\n      return void 0;\n    const constructor = getContainingFunction(token);\n    const superCall = findSuperCall(constructor.body);\n    return superCall && !superCall.expression.arguments.some((arg) => isPropertyAccessExpression(arg) && arg.expression === token) ? { constructor, superCall } : void 0;\n  }\n  function findSuperCall(n) {\n    return isExpressionStatement(n) && isSuperCall(n.expression) ? n : isFunctionLike(n) ? void 0 : forEachChild(n, findSuperCall);\n  }\n  var fixId25, errorCodes30;\n  var init_fixClassSuperMustPrecedeThisAccess = __esm({\n    \"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId25 = \"classSuperMustPrecedeThisAccess\";\n      errorCodes30 = [Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];\n      registerCodeFix({\n        errorCodes: errorCodes30,\n        getCodeActions(context) {\n          const { sourceFile, span } = context;\n          const nodes = getNodes(sourceFile, span.start);\n          if (!nodes)\n            return void 0;\n          const { constructor, superCall } = nodes;\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange11(t, sourceFile, constructor, superCall));\n          return [createCodeFixAction(fixId25, changes, Diagnostics.Make_super_call_the_first_statement_in_the_constructor, fixId25, Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)];\n        },\n        fixIds: [fixId25],\n        getAllCodeActions(context) {\n          const { sourceFile } = context;\n          const seenClasses = /* @__PURE__ */ new Map();\n          return codeFixAll(context, errorCodes30, (changes, diag2) => {\n            const nodes = getNodes(diag2.file, diag2.start);\n            if (!nodes)\n              return;\n            const { constructor, superCall } = nodes;\n            if (addToSeen(seenClasses, getNodeId(constructor.parent))) {\n              doChange11(changes, sourceFile, constructor, superCall);\n            }\n          });\n        }\n      });\n    }\n  });\n  function getNode(sourceFile, pos) {\n    const token = getTokenAtPosition(sourceFile, pos);\n    Debug.assert(isConstructorDeclaration(token.parent), \"token should be at the constructor declaration\");\n    return token.parent;\n  }\n  function doChange12(changes, sourceFile, ctr) {\n    const superCall = factory.createExpressionStatement(factory.createCallExpression(factory.createSuper(), void 0, emptyArray));\n    changes.insertNodeAtConstructorStart(sourceFile, ctr, superCall);\n  }\n  var fixId26, errorCodes31;\n  var init_fixConstructorForDerivedNeedSuperCall = __esm({\n    \"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId26 = \"constructorForDerivedNeedSuperCall\";\n      errorCodes31 = [Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];\n      registerCodeFix({\n        errorCodes: errorCodes31,\n        getCodeActions(context) {\n          const { sourceFile, span } = context;\n          const ctr = getNode(sourceFile, span.start);\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange12(t, sourceFile, ctr));\n          return [createCodeFixAction(fixId26, changes, Diagnostics.Add_missing_super_call, fixId26, Diagnostics.Add_all_missing_super_calls)];\n        },\n        fixIds: [fixId26],\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes31, (changes, diag2) => doChange12(changes, context.sourceFile, getNode(diag2.file, diag2.start)))\n      });\n    }\n  });\n  function doChange13(changeTracker, configFile) {\n    setJsonCompilerOptionValue(changeTracker, configFile, \"jsx\", factory.createStringLiteral(\"react\"));\n  }\n  var fixID, errorCodes32;\n  var init_fixEnableJsxFlag = __esm({\n    \"src/services/codefixes/fixEnableJsxFlag.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixID = \"fixEnableJsxFlag\";\n      errorCodes32 = [Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];\n      registerCodeFix({\n        errorCodes: errorCodes32,\n        getCodeActions: function getCodeActionsToFixEnableJsxFlag(context) {\n          const { configFile } = context.program.getCompilerOptions();\n          if (configFile === void 0) {\n            return void 0;\n          }\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (changeTracker) => doChange13(changeTracker, configFile));\n          return [\n            createCodeFixActionWithoutFixAll(fixID, changes, Diagnostics.Enable_the_jsx_flag_in_your_configuration_file)\n          ];\n        },\n        fixIds: [fixID],\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes32, (changes) => {\n          const { configFile } = context.program.getCompilerOptions();\n          if (configFile === void 0) {\n            return void 0;\n          }\n          doChange13(changes, configFile);\n        })\n      });\n    }\n  });\n  function getInfo8(program, sourceFile, span) {\n    const diag2 = find(program.getSemanticDiagnostics(sourceFile), (diag3) => diag3.start === span.start && diag3.length === span.length);\n    if (diag2 === void 0 || diag2.relatedInformation === void 0)\n      return;\n    const related = find(diag2.relatedInformation, (related2) => related2.code === Diagnostics.Did_you_mean_0.code);\n    if (related === void 0 || related.file === void 0 || related.start === void 0 || related.length === void 0)\n      return;\n    const token = findAncestorMatchingSpan(related.file, createTextSpan(related.start, related.length));\n    if (token === void 0)\n      return;\n    if (isExpression(token) && isBinaryExpression(token.parent)) {\n      return { suggestion: getSuggestion(related.messageText), expression: token.parent, arg: token };\n    }\n    return void 0;\n  }\n  function doChange14(changes, sourceFile, arg, expression) {\n    const callExpression = factory.createCallExpression(factory.createPropertyAccessExpression(factory.createIdentifier(\"Number\"), factory.createIdentifier(\"isNaN\")), void 0, [arg]);\n    const operator = expression.operatorToken.kind;\n    changes.replaceNode(sourceFile, expression, operator === 37 || operator === 35 ? factory.createPrefixUnaryExpression(53, callExpression) : callExpression);\n  }\n  function getSuggestion(messageText) {\n    const [_, suggestion] = flattenDiagnosticMessageText2(messageText, \"\\n\", 0).match(/\\'(.*)\\'/) || [];\n    return suggestion;\n  }\n  var fixId27, errorCodes33;\n  var init_fixNaNEquality = __esm({\n    \"src/services/codefixes/fixNaNEquality.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId27 = \"fixNaNEquality\";\n      errorCodes33 = [\n        Diagnostics.This_condition_will_always_return_0.code\n      ];\n      registerCodeFix({\n        errorCodes: errorCodes33,\n        getCodeActions(context) {\n          const { sourceFile, span, program } = context;\n          const info = getInfo8(program, sourceFile, span);\n          if (info === void 0)\n            return;\n          const { suggestion, expression, arg } = info;\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange14(t, sourceFile, arg, expression));\n          return [createCodeFixAction(fixId27, changes, [Diagnostics.Use_0, suggestion], fixId27, Diagnostics.Use_Number_isNaN_in_all_conditions)];\n        },\n        fixIds: [fixId27],\n        getAllCodeActions: (context) => {\n          return codeFixAll(context, errorCodes33, (changes, diag2) => {\n            const info = getInfo8(context.program, diag2.file, createTextSpan(diag2.start, diag2.length));\n            if (info) {\n              doChange14(changes, diag2.file, info.arg, info.expression);\n            }\n          });\n        }\n      });\n    }\n  });\n  var init_fixModuleAndTargetOptions = __esm({\n    \"src/services/codefixes/fixModuleAndTargetOptions.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      registerCodeFix({\n        errorCodes: [\n          Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,\n          Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code\n        ],\n        getCodeActions: function getCodeActionsToFixModuleAndTarget(context) {\n          const compilerOptions = context.program.getCompilerOptions();\n          const { configFile } = compilerOptions;\n          if (configFile === void 0) {\n            return void 0;\n          }\n          const codeFixes = [];\n          const moduleKind = getEmitModuleKind(compilerOptions);\n          const moduleOutOfRange = moduleKind >= 5 && moduleKind < 99;\n          if (moduleOutOfRange) {\n            const changes = ts_textChanges_exports.ChangeTracker.with(context, (changes2) => {\n              setJsonCompilerOptionValue(changes2, configFile, \"module\", factory.createStringLiteral(\"esnext\"));\n            });\n            codeFixes.push(createCodeFixActionWithoutFixAll(\"fixModuleOption\", changes, [Diagnostics.Set_the_module_option_in_your_configuration_file_to_0, \"esnext\"]));\n          }\n          const target = getEmitScriptTarget(compilerOptions);\n          const targetOutOfRange = target < 4 || target > 99;\n          if (targetOutOfRange) {\n            const changes = ts_textChanges_exports.ChangeTracker.with(context, (tracker) => {\n              const configObject = getTsConfigObjectLiteralExpression(configFile);\n              if (!configObject)\n                return;\n              const options = [[\"target\", factory.createStringLiteral(\"es2017\")]];\n              if (moduleKind === 1) {\n                options.push([\"module\", factory.createStringLiteral(\"commonjs\")]);\n              }\n              setJsonCompilerOptionValues(tracker, configFile, options);\n            });\n            codeFixes.push(createCodeFixActionWithoutFixAll(\"fixTargetOption\", changes, [Diagnostics.Set_the_target_option_in_your_configuration_file_to_0, \"es2017\"]));\n          }\n          return codeFixes.length ? codeFixes : void 0;\n        }\n      });\n    }\n  });\n  function doChange15(changes, sourceFile, node) {\n    changes.replaceNode(sourceFile, node, factory.createPropertyAssignment(node.name, node.objectAssignmentInitializer));\n  }\n  function getProperty2(sourceFile, pos) {\n    return cast(getTokenAtPosition(sourceFile, pos).parent, isShorthandPropertyAssignment);\n  }\n  var fixId28, errorCodes34;\n  var init_fixPropertyAssignment = __esm({\n    \"src/services/codefixes/fixPropertyAssignment.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId28 = \"fixPropertyAssignment\";\n      errorCodes34 = [\n        Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code\n      ];\n      registerCodeFix({\n        errorCodes: errorCodes34,\n        fixIds: [fixId28],\n        getCodeActions(context) {\n          const { sourceFile, span } = context;\n          const property = getProperty2(sourceFile, span.start);\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange15(t, context.sourceFile, property));\n          return [createCodeFixAction(fixId28, changes, [Diagnostics.Change_0_to_1, \"=\", \":\"], fixId28, [Diagnostics.Switch_each_misused_0_to_1, \"=\", \":\"])];\n        },\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes34, (changes, diag2) => doChange15(changes, diag2.file, getProperty2(diag2.file, diag2.start)))\n      });\n    }\n  });\n  function getNodes2(sourceFile, pos) {\n    const token = getTokenAtPosition(sourceFile, pos);\n    const heritageClauses = getContainingClass(token).heritageClauses;\n    const extendsToken = heritageClauses[0].getFirstToken();\n    return extendsToken.kind === 94 ? { extendsToken, heritageClauses } : void 0;\n  }\n  function doChanges2(changes, sourceFile, extendsToken, heritageClauses) {\n    changes.replaceNode(sourceFile, extendsToken, factory.createToken(117));\n    if (heritageClauses.length === 2 && heritageClauses[0].token === 94 && heritageClauses[1].token === 117) {\n      const implementsToken = heritageClauses[1].getFirstToken();\n      const implementsFullStart = implementsToken.getFullStart();\n      changes.replaceRange(sourceFile, { pos: implementsFullStart, end: implementsFullStart }, factory.createToken(27));\n      const text = sourceFile.text;\n      let end = implementsToken.end;\n      while (end < text.length && isWhiteSpaceSingleLine(text.charCodeAt(end))) {\n        end++;\n      }\n      changes.deleteRange(sourceFile, { pos: implementsToken.getStart(), end });\n    }\n  }\n  var fixId29, errorCodes35;\n  var init_fixExtendsInterfaceBecomesImplements = __esm({\n    \"src/services/codefixes/fixExtendsInterfaceBecomesImplements.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId29 = \"extendsInterfaceBecomesImplements\";\n      errorCodes35 = [Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];\n      registerCodeFix({\n        errorCodes: errorCodes35,\n        getCodeActions(context) {\n          const { sourceFile } = context;\n          const nodes = getNodes2(sourceFile, context.span.start);\n          if (!nodes)\n            return void 0;\n          const { extendsToken, heritageClauses } = nodes;\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChanges2(t, sourceFile, extendsToken, heritageClauses));\n          return [createCodeFixAction(fixId29, changes, Diagnostics.Change_extends_to_implements, fixId29, Diagnostics.Change_all_extended_interfaces_to_implements)];\n        },\n        fixIds: [fixId29],\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes35, (changes, diag2) => {\n          const nodes = getNodes2(diag2.file, diag2.start);\n          if (nodes)\n            doChanges2(changes, diag2.file, nodes.extendsToken, nodes.heritageClauses);\n        })\n      });\n    }\n  });\n  function getInfo9(sourceFile, pos, diagCode) {\n    const node = getTokenAtPosition(sourceFile, pos);\n    if (isIdentifier(node) || isPrivateIdentifier(node)) {\n      return { node, className: diagCode === didYouMeanStaticMemberCode ? getContainingClass(node).name.text : void 0 };\n    }\n  }\n  function doChange16(changes, sourceFile, { node, className }) {\n    suppressLeadingAndTrailingTrivia(node);\n    changes.replaceNode(sourceFile, node, factory.createPropertyAccessExpression(className ? factory.createIdentifier(className) : factory.createThis(), node));\n  }\n  var fixId30, didYouMeanStaticMemberCode, errorCodes36;\n  var init_fixForgottenThisPropertyAccess = __esm({\n    \"src/services/codefixes/fixForgottenThisPropertyAccess.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId30 = \"forgottenThisPropertyAccess\";\n      didYouMeanStaticMemberCode = Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code;\n      errorCodes36 = [\n        Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,\n        Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,\n        didYouMeanStaticMemberCode\n      ];\n      registerCodeFix({\n        errorCodes: errorCodes36,\n        getCodeActions(context) {\n          const { sourceFile } = context;\n          const info = getInfo9(sourceFile, context.span.start, context.errorCode);\n          if (!info) {\n            return void 0;\n          }\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange16(t, sourceFile, info));\n          return [createCodeFixAction(fixId30, changes, [Diagnostics.Add_0_to_unresolved_variable, info.className || \"this\"], fixId30, Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)];\n        },\n        fixIds: [fixId30],\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes36, (changes, diag2) => {\n          const info = getInfo9(diag2.file, diag2.start, diag2.code);\n          if (info)\n            doChange16(changes, context.sourceFile, info);\n        })\n      });\n    }\n  });\n  function isValidCharacter(character) {\n    return hasProperty(htmlEntity, character);\n  }\n  function doChange17(changes, preferences, sourceFile, start, useHtmlEntity) {\n    const character = sourceFile.getText()[start];\n    if (!isValidCharacter(character)) {\n      return;\n    }\n    const replacement = useHtmlEntity ? htmlEntity[character] : `{${quote(sourceFile, preferences, character)}}`;\n    changes.replaceRangeWithText(sourceFile, { pos: start, end: start + 1 }, replacement);\n  }\n  var fixIdExpression, fixIdHtmlEntity, errorCodes37, htmlEntity;\n  var init_fixInvalidJsxCharacters = __esm({\n    \"src/services/codefixes/fixInvalidJsxCharacters.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixIdExpression = \"fixInvalidJsxCharacters_expression\";\n      fixIdHtmlEntity = \"fixInvalidJsxCharacters_htmlEntity\";\n      errorCodes37 = [\n        Diagnostics.Unexpected_token_Did_you_mean_or_gt.code,\n        Diagnostics.Unexpected_token_Did_you_mean_or_rbrace.code\n      ];\n      registerCodeFix({\n        errorCodes: errorCodes37,\n        fixIds: [fixIdExpression, fixIdHtmlEntity],\n        getCodeActions(context) {\n          const { sourceFile, preferences, span } = context;\n          const changeToExpression = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange17(t, preferences, sourceFile, span.start, false));\n          const changeToHtmlEntity = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange17(t, preferences, sourceFile, span.start, true));\n          return [\n            createCodeFixAction(fixIdExpression, changeToExpression, Diagnostics.Wrap_invalid_character_in_an_expression_container, fixIdExpression, Diagnostics.Wrap_all_invalid_characters_in_an_expression_container),\n            createCodeFixAction(fixIdHtmlEntity, changeToHtmlEntity, Diagnostics.Convert_invalid_character_to_its_html_entity_code, fixIdHtmlEntity, Diagnostics.Convert_all_invalid_characters_to_HTML_entity_code)\n          ];\n        },\n        getAllCodeActions(context) {\n          return codeFixAll(context, errorCodes37, (changes, diagnostic) => doChange17(changes, context.preferences, diagnostic.file, diagnostic.start, context.fixId === fixIdHtmlEntity));\n        }\n      });\n      htmlEntity = {\n        \">\": \"&gt;\",\n        \"}\": \"&rbrace;\"\n      };\n    }\n  });\n  function getDeleteAction(context, { name, jsDocHost, jsDocParameterTag }) {\n    const changes = ts_textChanges_exports.ChangeTracker.with(context, (changeTracker) => changeTracker.filterJSDocTags(context.sourceFile, jsDocHost, (t) => t !== jsDocParameterTag));\n    return createCodeFixAction(deleteUnmatchedParameter, changes, [Diagnostics.Delete_unused_param_tag_0, name.getText(context.sourceFile)], deleteUnmatchedParameter, Diagnostics.Delete_all_unused_param_tags);\n  }\n  function getRenameAction(context, { name, jsDocHost, signature, jsDocParameterTag }) {\n    if (!length(signature.parameters))\n      return void 0;\n    const sourceFile = context.sourceFile;\n    const tags = getJSDocTags(signature);\n    const names = /* @__PURE__ */ new Set();\n    for (const tag of tags) {\n      if (isJSDocParameterTag(tag) && isIdentifier(tag.name)) {\n        names.add(tag.name.escapedText);\n      }\n    }\n    const parameterName = firstDefined(signature.parameters, (p) => isIdentifier(p.name) && !names.has(p.name.escapedText) ? p.name.getText(sourceFile) : void 0);\n    if (parameterName === void 0)\n      return void 0;\n    const newJSDocParameterTag = factory.updateJSDocParameterTag(jsDocParameterTag, jsDocParameterTag.tagName, factory.createIdentifier(parameterName), jsDocParameterTag.isBracketed, jsDocParameterTag.typeExpression, jsDocParameterTag.isNameFirst, jsDocParameterTag.comment);\n    const changes = ts_textChanges_exports.ChangeTracker.with(context, (changeTracker) => changeTracker.replaceJSDocComment(sourceFile, jsDocHost, map(tags, (t) => t === jsDocParameterTag ? newJSDocParameterTag : t)));\n    return createCodeFixActionWithoutFixAll(renameUnmatchedParameter, changes, [Diagnostics.Rename_param_tag_name_0_to_1, name.getText(sourceFile), parameterName]);\n  }\n  function getInfo10(sourceFile, pos) {\n    const token = getTokenAtPosition(sourceFile, pos);\n    if (token.parent && isJSDocParameterTag(token.parent) && isIdentifier(token.parent.name)) {\n      const jsDocParameterTag = token.parent;\n      const jsDocHost = getJSDocHost(jsDocParameterTag);\n      const signature = getHostSignatureFromJSDoc(jsDocParameterTag);\n      if (jsDocHost && signature) {\n        return { jsDocHost, signature, name: token.parent.name, jsDocParameterTag };\n      }\n    }\n    return void 0;\n  }\n  var deleteUnmatchedParameter, renameUnmatchedParameter, errorCodes38;\n  var init_fixUnmatchedParameter = __esm({\n    \"src/services/codefixes/fixUnmatchedParameter.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      deleteUnmatchedParameter = \"deleteUnmatchedParameter\";\n      renameUnmatchedParameter = \"renameUnmatchedParameter\";\n      errorCodes38 = [\n        Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code\n      ];\n      registerCodeFix({\n        fixIds: [deleteUnmatchedParameter, renameUnmatchedParameter],\n        errorCodes: errorCodes38,\n        getCodeActions: function getCodeActionsToFixUnmatchedParameter(context) {\n          const { sourceFile, span } = context;\n          const actions2 = [];\n          const info = getInfo10(sourceFile, span.start);\n          if (info) {\n            append(actions2, getDeleteAction(context, info));\n            append(actions2, getRenameAction(context, info));\n            return actions2;\n          }\n          return void 0;\n        },\n        getAllCodeActions: function getAllCodeActionsToFixUnmatchedParameter(context) {\n          const tagsToSignature = /* @__PURE__ */ new Map();\n          return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {\n            eachDiagnostic(context, errorCodes38, ({ file, start }) => {\n              const info = getInfo10(file, start);\n              if (info) {\n                tagsToSignature.set(info.signature, append(tagsToSignature.get(info.signature), info.jsDocParameterTag));\n              }\n            });\n            tagsToSignature.forEach((tags, signature) => {\n              if (context.fixId === deleteUnmatchedParameter) {\n                const tagsSet = new Set(tags);\n                changes.filterJSDocTags(signature.getSourceFile(), signature, (t) => !tagsSet.has(t));\n              }\n            });\n          }));\n        }\n      });\n    }\n  });\n  function getImportDeclaration(sourceFile, program, start) {\n    const identifier = tryCast(getTokenAtPosition(sourceFile, start), isIdentifier);\n    if (!identifier || identifier.parent.kind !== 180)\n      return;\n    const checker = program.getTypeChecker();\n    const symbol = checker.getSymbolAtLocation(identifier);\n    return find((symbol == null ? void 0 : symbol.declarations) || emptyArray, or(isImportClause, isImportSpecifier, isImportEqualsDeclaration));\n  }\n  function doTypeOnlyImportChange(changes, sourceFile, importDeclaration, program) {\n    if (importDeclaration.kind === 268) {\n      changes.insertModifierBefore(sourceFile, 154, importDeclaration.name);\n      return;\n    }\n    const importClause = importDeclaration.kind === 270 ? importDeclaration : importDeclaration.parent.parent;\n    if (importClause.name && importClause.namedBindings) {\n      return;\n    }\n    const checker = program.getTypeChecker();\n    const importsValue = !!forEachImportClauseDeclaration(importClause, (decl) => {\n      if (skipAlias(decl.symbol, checker).flags & 111551)\n        return true;\n    });\n    if (importsValue) {\n      return;\n    }\n    changes.insertModifierBefore(sourceFile, 154, importClause);\n  }\n  function doNamespaceImportChange(changes, sourceFile, importDeclaration, program) {\n    ts_refactor_exports.doChangeNamedToNamespaceOrDefault(sourceFile, program, changes, importDeclaration.parent);\n  }\n  var fixId31, errorCodes39;\n  var init_fixUnreferenceableDecoratorMetadata = __esm({\n    \"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId31 = \"fixUnreferenceableDecoratorMetadata\";\n      errorCodes39 = [Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code];\n      registerCodeFix({\n        errorCodes: errorCodes39,\n        getCodeActions: (context) => {\n          const importDeclaration = getImportDeclaration(context.sourceFile, context.program, context.span.start);\n          if (!importDeclaration)\n            return;\n          const namespaceChanges = ts_textChanges_exports.ChangeTracker.with(context, (t) => importDeclaration.kind === 273 && doNamespaceImportChange(t, context.sourceFile, importDeclaration, context.program));\n          const typeOnlyChanges = ts_textChanges_exports.ChangeTracker.with(context, (t) => doTypeOnlyImportChange(t, context.sourceFile, importDeclaration, context.program));\n          let actions2;\n          if (namespaceChanges.length) {\n            actions2 = append(actions2, createCodeFixActionWithoutFixAll(fixId31, namespaceChanges, Diagnostics.Convert_named_imports_to_namespace_import));\n          }\n          if (typeOnlyChanges.length) {\n            actions2 = append(actions2, createCodeFixActionWithoutFixAll(fixId31, typeOnlyChanges, Diagnostics.Convert_to_type_only_import));\n          }\n          return actions2;\n        },\n        fixIds: [fixId31]\n      });\n    }\n  });\n  function changeInferToUnknown(changes, sourceFile, token) {\n    changes.replaceNode(sourceFile, token.parent, factory.createKeywordTypeNode(157));\n  }\n  function createDeleteFix(changes, diag2) {\n    return createCodeFixAction(fixName3, changes, diag2, fixIdDelete, Diagnostics.Delete_all_unused_declarations);\n  }\n  function deleteTypeParameters(changes, sourceFile, token) {\n    changes.delete(sourceFile, Debug.checkDefined(cast(token.parent, isDeclarationWithTypeParameterChildren).typeParameters, \"The type parameter to delete should exist\"));\n  }\n  function isImport(token) {\n    return token.kind === 100 || token.kind === 79 && (token.parent.kind === 273 || token.parent.kind === 270);\n  }\n  function tryGetFullImport(token) {\n    return token.kind === 100 ? tryCast(token.parent, isImportDeclaration) : void 0;\n  }\n  function canDeleteEntireVariableStatement(sourceFile, token) {\n    return isVariableDeclarationList(token.parent) && first(token.parent.getChildren(sourceFile)) === token;\n  }\n  function deleteEntireVariableStatement(changes, sourceFile, node) {\n    changes.delete(sourceFile, node.parent.kind === 240 ? node.parent : node);\n  }\n  function deleteDestructuringElements(changes, sourceFile, node) {\n    forEach(node.elements, (n) => changes.delete(sourceFile, n));\n  }\n  function tryPrefixDeclaration(changes, errorCode, sourceFile, token) {\n    if (errorCode === Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code)\n      return;\n    if (token.kind === 138) {\n      token = cast(token.parent, isInferTypeNode).typeParameter.name;\n    }\n    if (isIdentifier(token) && canPrefix(token)) {\n      changes.replaceNode(sourceFile, token, factory.createIdentifier(`_${token.text}`));\n      if (isParameter(token.parent)) {\n        getJSDocParameterTags(token.parent).forEach((tag) => {\n          if (isIdentifier(tag.name)) {\n            changes.replaceNode(sourceFile, tag.name, factory.createIdentifier(`_${tag.name.text}`));\n          }\n        });\n      }\n    }\n  }\n  function canPrefix(token) {\n    switch (token.parent.kind) {\n      case 166:\n      case 165:\n        return true;\n      case 257: {\n        const varDecl = token.parent;\n        switch (varDecl.parent.parent.kind) {\n          case 247:\n          case 246:\n            return true;\n        }\n      }\n    }\n    return false;\n  }\n  function tryDeleteDeclaration(sourceFile, token, changes, checker, sourceFiles, program, cancellationToken, isFixAll) {\n    tryDeleteDeclarationWorker(token, changes, sourceFile, checker, sourceFiles, program, cancellationToken, isFixAll);\n    if (isIdentifier(token)) {\n      ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(token, checker, sourceFile, (ref) => {\n        if (isPropertyAccessExpression(ref.parent) && ref.parent.name === ref)\n          ref = ref.parent;\n        if (!isFixAll && mayDeleteExpression(ref)) {\n          changes.delete(sourceFile, ref.parent.parent);\n        }\n      });\n    }\n  }\n  function tryDeleteDeclarationWorker(token, changes, sourceFile, checker, sourceFiles, program, cancellationToken, isFixAll) {\n    const { parent: parent2 } = token;\n    if (isParameter(parent2)) {\n      tryDeleteParameter(changes, sourceFile, parent2, checker, sourceFiles, program, cancellationToken, isFixAll);\n    } else if (!(isFixAll && isIdentifier(token) && ts_FindAllReferences_exports.Core.isSymbolReferencedInFile(token, checker, sourceFile))) {\n      const node = isImportClause(parent2) ? token : isComputedPropertyName(parent2) ? parent2.parent : parent2;\n      Debug.assert(node !== sourceFile, \"should not delete whole source file\");\n      changes.delete(sourceFile, node);\n    }\n  }\n  function tryDeleteParameter(changes, sourceFile, parameter, checker, sourceFiles, program, cancellationToken, isFixAll = false) {\n    if (mayDeleteParameter(checker, sourceFile, parameter, sourceFiles, program, cancellationToken, isFixAll)) {\n      if (parameter.modifiers && parameter.modifiers.length > 0 && (!isIdentifier(parameter.name) || ts_FindAllReferences_exports.Core.isSymbolReferencedInFile(parameter.name, checker, sourceFile))) {\n        for (const modifier of parameter.modifiers) {\n          if (isModifier(modifier)) {\n            changes.deleteModifier(sourceFile, modifier);\n          }\n        }\n      } else if (!parameter.initializer && isNotProvidedArguments(parameter, checker, sourceFiles)) {\n        changes.delete(sourceFile, parameter);\n      }\n    }\n  }\n  function isNotProvidedArguments(parameter, checker, sourceFiles) {\n    const index = parameter.parent.parameters.indexOf(parameter);\n    return !ts_FindAllReferences_exports.Core.someSignatureUsage(parameter.parent, sourceFiles, checker, (_, call) => !call || call.arguments.length > index);\n  }\n  function mayDeleteParameter(checker, sourceFile, parameter, sourceFiles, program, cancellationToken, isFixAll) {\n    const { parent: parent2 } = parameter;\n    switch (parent2.kind) {\n      case 171:\n      case 173:\n        const index = parent2.parameters.indexOf(parameter);\n        const referent = isMethodDeclaration(parent2) ? parent2.name : parent2;\n        const entries = ts_FindAllReferences_exports.Core.getReferencedSymbolsForNode(parent2.pos, referent, program, sourceFiles, cancellationToken);\n        if (entries) {\n          for (const entry of entries) {\n            for (const reference of entry.references) {\n              if (reference.kind === ts_FindAllReferences_exports.EntryKind.Node) {\n                const isSuperCall2 = isSuperKeyword(reference.node) && isCallExpression(reference.node.parent) && reference.node.parent.arguments.length > index;\n                const isSuperMethodCall = isPropertyAccessExpression(reference.node.parent) && isSuperKeyword(reference.node.parent.expression) && isCallExpression(reference.node.parent.parent) && reference.node.parent.parent.arguments.length > index;\n                const isOverriddenMethod = (isMethodDeclaration(reference.node.parent) || isMethodSignature(reference.node.parent)) && reference.node.parent !== parameter.parent && reference.node.parent.parameters.length > index;\n                if (isSuperCall2 || isSuperMethodCall || isOverriddenMethod)\n                  return false;\n              }\n            }\n          }\n        }\n        return true;\n      case 259: {\n        if (parent2.name && isCallbackLike(checker, sourceFile, parent2.name)) {\n          return isLastParameter(parent2, parameter, isFixAll);\n        }\n        return true;\n      }\n      case 215:\n      case 216:\n        return isLastParameter(parent2, parameter, isFixAll);\n      case 175:\n        return false;\n      case 174:\n        return true;\n      default:\n        return Debug.failBadSyntaxKind(parent2);\n    }\n  }\n  function isCallbackLike(checker, sourceFile, name) {\n    return !!ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(name, checker, sourceFile, (reference) => isIdentifier(reference) && isCallExpression(reference.parent) && reference.parent.arguments.indexOf(reference) >= 0);\n  }\n  function isLastParameter(func, parameter, isFixAll) {\n    const parameters = func.parameters;\n    const index = parameters.indexOf(parameter);\n    Debug.assert(index !== -1, \"The parameter should already be in the list\");\n    return isFixAll ? parameters.slice(index + 1).every((p) => isIdentifier(p.name) && !p.symbol.isReferenced) : index === parameters.length - 1;\n  }\n  function mayDeleteExpression(node) {\n    return (isBinaryExpression(node.parent) && node.parent.left === node || (isPostfixUnaryExpression(node.parent) || isPrefixUnaryExpression(node.parent)) && node.parent.operand === node) && isExpressionStatement(node.parent.parent);\n  }\n  var fixName3, fixIdPrefix, fixIdDelete, fixIdDeleteImports, fixIdInfer, errorCodes40;\n  var init_fixUnusedIdentifier = __esm({\n    \"src/services/codefixes/fixUnusedIdentifier.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixName3 = \"unusedIdentifier\";\n      fixIdPrefix = \"unusedIdentifier_prefix\";\n      fixIdDelete = \"unusedIdentifier_delete\";\n      fixIdDeleteImports = \"unusedIdentifier_deleteImports\";\n      fixIdInfer = \"unusedIdentifier_infer\";\n      errorCodes40 = [\n        Diagnostics._0_is_declared_but_its_value_is_never_read.code,\n        Diagnostics._0_is_declared_but_never_used.code,\n        Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,\n        Diagnostics.All_imports_in_import_declaration_are_unused.code,\n        Diagnostics.All_destructured_elements_are_unused.code,\n        Diagnostics.All_variables_are_unused.code,\n        Diagnostics.All_type_parameters_are_unused.code\n      ];\n      registerCodeFix({\n        errorCodes: errorCodes40,\n        getCodeActions(context) {\n          const { errorCode, sourceFile, program, cancellationToken } = context;\n          const checker = program.getTypeChecker();\n          const sourceFiles = program.getSourceFiles();\n          const token = getTokenAtPosition(sourceFile, context.span.start);\n          if (isJSDocTemplateTag(token)) {\n            return [createDeleteFix(ts_textChanges_exports.ChangeTracker.with(context, (t) => t.delete(sourceFile, token)), Diagnostics.Remove_template_tag)];\n          }\n          if (token.kind === 29) {\n            const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => deleteTypeParameters(t, sourceFile, token));\n            return [createDeleteFix(changes, Diagnostics.Remove_type_parameters)];\n          }\n          const importDecl = tryGetFullImport(token);\n          if (importDecl) {\n            const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => t.delete(sourceFile, importDecl));\n            return [createCodeFixAction(fixName3, changes, [Diagnostics.Remove_import_from_0, showModuleSpecifier(importDecl)], fixIdDeleteImports, Diagnostics.Delete_all_unused_imports)];\n          } else if (isImport(token)) {\n            const deletion = ts_textChanges_exports.ChangeTracker.with(context, (t) => tryDeleteDeclaration(sourceFile, token, t, checker, sourceFiles, program, cancellationToken, false));\n            if (deletion.length) {\n              return [createCodeFixAction(fixName3, deletion, [Diagnostics.Remove_unused_declaration_for_Colon_0, token.getText(sourceFile)], fixIdDeleteImports, Diagnostics.Delete_all_unused_imports)];\n            }\n          }\n          if (isObjectBindingPattern(token.parent) || isArrayBindingPattern(token.parent)) {\n            if (isParameter(token.parent.parent)) {\n              const elements = token.parent.elements;\n              const diagnostic = [\n                elements.length > 1 ? Diagnostics.Remove_unused_declarations_for_Colon_0 : Diagnostics.Remove_unused_declaration_for_Colon_0,\n                map(elements, (e) => e.getText(sourceFile)).join(\", \")\n              ];\n              return [\n                createDeleteFix(ts_textChanges_exports.ChangeTracker.with(context, (t) => deleteDestructuringElements(t, sourceFile, token.parent)), diagnostic)\n              ];\n            }\n            return [\n              createDeleteFix(ts_textChanges_exports.ChangeTracker.with(context, (t) => t.delete(sourceFile, token.parent.parent)), Diagnostics.Remove_unused_destructuring_declaration)\n            ];\n          }\n          if (canDeleteEntireVariableStatement(sourceFile, token)) {\n            return [\n              createDeleteFix(ts_textChanges_exports.ChangeTracker.with(context, (t) => deleteEntireVariableStatement(t, sourceFile, token.parent)), Diagnostics.Remove_variable_statement)\n            ];\n          }\n          const result = [];\n          if (token.kind === 138) {\n            const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => changeInferToUnknown(t, sourceFile, token));\n            const name = cast(token.parent, isInferTypeNode).typeParameter.name.text;\n            result.push(createCodeFixAction(fixName3, changes, [Diagnostics.Replace_infer_0_with_unknown, name], fixIdInfer, Diagnostics.Replace_all_unused_infer_with_unknown));\n          } else {\n            const deletion = ts_textChanges_exports.ChangeTracker.with(context, (t) => tryDeleteDeclaration(sourceFile, token, t, checker, sourceFiles, program, cancellationToken, false));\n            if (deletion.length) {\n              const name = isComputedPropertyName(token.parent) ? token.parent : token;\n              result.push(createDeleteFix(deletion, [Diagnostics.Remove_unused_declaration_for_Colon_0, name.getText(sourceFile)]));\n            }\n          }\n          const prefix = ts_textChanges_exports.ChangeTracker.with(context, (t) => tryPrefixDeclaration(t, errorCode, sourceFile, token));\n          if (prefix.length) {\n            result.push(createCodeFixAction(fixName3, prefix, [Diagnostics.Prefix_0_with_an_underscore, token.getText(sourceFile)], fixIdPrefix, Diagnostics.Prefix_all_unused_declarations_with_where_possible));\n          }\n          return result;\n        },\n        fixIds: [fixIdPrefix, fixIdDelete, fixIdDeleteImports, fixIdInfer],\n        getAllCodeActions: (context) => {\n          const { sourceFile, program, cancellationToken } = context;\n          const checker = program.getTypeChecker();\n          const sourceFiles = program.getSourceFiles();\n          return codeFixAll(context, errorCodes40, (changes, diag2) => {\n            const token = getTokenAtPosition(sourceFile, diag2.start);\n            switch (context.fixId) {\n              case fixIdPrefix:\n                tryPrefixDeclaration(changes, diag2.code, sourceFile, token);\n                break;\n              case fixIdDeleteImports: {\n                const importDecl = tryGetFullImport(token);\n                if (importDecl) {\n                  changes.delete(sourceFile, importDecl);\n                } else if (isImport(token)) {\n                  tryDeleteDeclaration(sourceFile, token, changes, checker, sourceFiles, program, cancellationToken, true);\n                }\n                break;\n              }\n              case fixIdDelete: {\n                if (token.kind === 138 || isImport(token)) {\n                  break;\n                } else if (isJSDocTemplateTag(token)) {\n                  changes.delete(sourceFile, token);\n                } else if (token.kind === 29) {\n                  deleteTypeParameters(changes, sourceFile, token);\n                } else if (isObjectBindingPattern(token.parent)) {\n                  if (token.parent.parent.initializer) {\n                    break;\n                  } else if (!isParameter(token.parent.parent) || isNotProvidedArguments(token.parent.parent, checker, sourceFiles)) {\n                    changes.delete(sourceFile, token.parent.parent);\n                  }\n                } else if (isArrayBindingPattern(token.parent.parent) && token.parent.parent.parent.initializer) {\n                  break;\n                } else if (canDeleteEntireVariableStatement(sourceFile, token)) {\n                  deleteEntireVariableStatement(changes, sourceFile, token.parent);\n                } else {\n                  tryDeleteDeclaration(sourceFile, token, changes, checker, sourceFiles, program, cancellationToken, true);\n                }\n                break;\n              }\n              case fixIdInfer:\n                if (token.kind === 138) {\n                  changeInferToUnknown(changes, sourceFile, token);\n                }\n                break;\n              default:\n                Debug.fail(JSON.stringify(context.fixId));\n            }\n          });\n        }\n      });\n    }\n  });\n  function doChange18(changes, sourceFile, start, length2, errorCode) {\n    const token = getTokenAtPosition(sourceFile, start);\n    const statement = findAncestor(token, isStatement);\n    if (statement.getStart(sourceFile) !== token.getStart(sourceFile)) {\n      const logData = JSON.stringify({\n        statementKind: Debug.formatSyntaxKind(statement.kind),\n        tokenKind: Debug.formatSyntaxKind(token.kind),\n        errorCode,\n        start,\n        length: length2\n      });\n      Debug.fail(\"Token and statement should start at the same point. \" + logData);\n    }\n    const container = (isBlock(statement.parent) ? statement.parent : statement).parent;\n    if (!isBlock(statement.parent) || statement === first(statement.parent.statements)) {\n      switch (container.kind) {\n        case 242:\n          if (container.elseStatement) {\n            if (isBlock(statement.parent)) {\n              break;\n            } else {\n              changes.replaceNode(sourceFile, statement, factory.createBlock(emptyArray));\n            }\n            return;\n          }\n        case 244:\n        case 245:\n          changes.delete(sourceFile, container);\n          return;\n      }\n    }\n    if (isBlock(statement.parent)) {\n      const end = start + length2;\n      const lastStatement = Debug.checkDefined(lastWhere(sliceAfter(statement.parent.statements, statement), (s) => s.pos < end), \"Some statement should be last\");\n      changes.deleteNodeRange(sourceFile, statement, lastStatement);\n    } else {\n      changes.delete(sourceFile, statement);\n    }\n  }\n  function lastWhere(a, pred) {\n    let last2;\n    for (const value of a) {\n      if (!pred(value))\n        break;\n      last2 = value;\n    }\n    return last2;\n  }\n  var fixId32, errorCodes41;\n  var init_fixUnreachableCode = __esm({\n    \"src/services/codefixes/fixUnreachableCode.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId32 = \"fixUnreachableCode\";\n      errorCodes41 = [Diagnostics.Unreachable_code_detected.code];\n      registerCodeFix({\n        errorCodes: errorCodes41,\n        getCodeActions(context) {\n          const syntacticDiagnostics = context.program.getSyntacticDiagnostics(context.sourceFile, context.cancellationToken);\n          if (syntacticDiagnostics.length)\n            return;\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange18(t, context.sourceFile, context.span.start, context.span.length, context.errorCode));\n          return [createCodeFixAction(fixId32, changes, Diagnostics.Remove_unreachable_code, fixId32, Diagnostics.Remove_all_unreachable_code)];\n        },\n        fixIds: [fixId32],\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes41, (changes, diag2) => doChange18(changes, diag2.file, diag2.start, diag2.length, diag2.code))\n      });\n    }\n  });\n  function doChange19(changes, sourceFile, start) {\n    const token = getTokenAtPosition(sourceFile, start);\n    const labeledStatement = cast(token.parent, isLabeledStatement);\n    const pos = token.getStart(sourceFile);\n    const statementPos = labeledStatement.statement.getStart(sourceFile);\n    const end = positionsAreOnSameLine(pos, statementPos, sourceFile) ? statementPos : skipTrivia(sourceFile.text, findChildOfKind(labeledStatement, 58, sourceFile).end, true);\n    changes.deleteRange(sourceFile, { pos, end });\n  }\n  var fixId33, errorCodes42;\n  var init_fixUnusedLabel = __esm({\n    \"src/services/codefixes/fixUnusedLabel.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId33 = \"fixUnusedLabel\";\n      errorCodes42 = [Diagnostics.Unused_label.code];\n      registerCodeFix({\n        errorCodes: errorCodes42,\n        getCodeActions(context) {\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange19(t, context.sourceFile, context.span.start));\n          return [createCodeFixAction(fixId33, changes, Diagnostics.Remove_unused_label, fixId33, Diagnostics.Remove_all_unused_labels)];\n        },\n        fixIds: [fixId33],\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes42, (changes, diag2) => doChange19(changes, diag2.file, diag2.start))\n      });\n    }\n  });\n  function doChange20(changes, sourceFile, oldTypeNode, newType, checker) {\n    changes.replaceNode(sourceFile, oldTypeNode, checker.typeToTypeNode(newType, oldTypeNode, void 0));\n  }\n  function getInfo11(sourceFile, pos, checker) {\n    const decl = findAncestor(getTokenAtPosition(sourceFile, pos), isTypeContainer);\n    const typeNode = decl && decl.type;\n    return typeNode && { typeNode, type: getType(checker, typeNode) };\n  }\n  function isTypeContainer(node) {\n    switch (node.kind) {\n      case 231:\n      case 176:\n      case 177:\n      case 259:\n      case 174:\n      case 178:\n      case 197:\n      case 171:\n      case 170:\n      case 166:\n      case 169:\n      case 168:\n      case 175:\n      case 262:\n      case 213:\n      case 257:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function getType(checker, node) {\n    if (isJSDocNullableType(node)) {\n      const type = checker.getTypeFromTypeNode(node.type);\n      if (type === checker.getNeverType() || type === checker.getVoidType()) {\n        return type;\n      }\n      return checker.getUnionType(append([type, checker.getUndefinedType()], node.postfix ? void 0 : checker.getNullType()));\n    }\n    return checker.getTypeFromTypeNode(node);\n  }\n  var fixIdPlain, fixIdNullable, errorCodes43;\n  var init_fixJSDocTypes = __esm({\n    \"src/services/codefixes/fixJSDocTypes.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixIdPlain = \"fixJSDocTypes_plain\";\n      fixIdNullable = \"fixJSDocTypes_nullable\";\n      errorCodes43 = [\n        Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code,\n        Diagnostics._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,\n        Diagnostics._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code\n      ];\n      registerCodeFix({\n        errorCodes: errorCodes43,\n        getCodeActions(context) {\n          const { sourceFile } = context;\n          const checker = context.program.getTypeChecker();\n          const info = getInfo11(sourceFile, context.span.start, checker);\n          if (!info)\n            return void 0;\n          const { typeNode, type } = info;\n          const original = typeNode.getText(sourceFile);\n          const actions2 = [fix(type, fixIdPlain, Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];\n          if (typeNode.kind === 317) {\n            actions2.push(fix(type, fixIdNullable, Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types));\n          }\n          return actions2;\n          function fix(type2, fixId51, fixAllDescription) {\n            const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange20(t, sourceFile, typeNode, type2, checker));\n            return createCodeFixAction(\"jdocTypes\", changes, [Diagnostics.Change_0_to_1, original, checker.typeToString(type2)], fixId51, fixAllDescription);\n          }\n        },\n        fixIds: [fixIdPlain, fixIdNullable],\n        getAllCodeActions(context) {\n          const { fixId: fixId51, program, sourceFile } = context;\n          const checker = program.getTypeChecker();\n          return codeFixAll(context, errorCodes43, (changes, err) => {\n            const info = getInfo11(err.file, err.start, checker);\n            if (!info)\n              return;\n            const { typeNode, type } = info;\n            const fixedType = typeNode.kind === 317 && fixId51 === fixIdNullable ? checker.getNullableType(type, 32768) : type;\n            doChange20(changes, sourceFile, typeNode, fixedType, checker);\n          });\n        }\n      });\n    }\n  });\n  function doChange21(changes, sourceFile, name) {\n    changes.replaceNodeWithText(sourceFile, name, `${name.text}()`);\n  }\n  function getCallName(sourceFile, start) {\n    const token = getTokenAtPosition(sourceFile, start);\n    if (isPropertyAccessExpression(token.parent)) {\n      let current = token.parent;\n      while (isPropertyAccessExpression(current.parent)) {\n        current = current.parent;\n      }\n      return current.name;\n    }\n    if (isIdentifier(token)) {\n      return token;\n    }\n    return void 0;\n  }\n  var fixId34, errorCodes44;\n  var init_fixMissingCallParentheses = __esm({\n    \"src/services/codefixes/fixMissingCallParentheses.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId34 = \"fixMissingCallParentheses\";\n      errorCodes44 = [\n        Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code\n      ];\n      registerCodeFix({\n        errorCodes: errorCodes44,\n        fixIds: [fixId34],\n        getCodeActions(context) {\n          const { sourceFile, span } = context;\n          const callName = getCallName(sourceFile, span.start);\n          if (!callName)\n            return;\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange21(t, context.sourceFile, callName));\n          return [createCodeFixAction(fixId34, changes, Diagnostics.Add_missing_call_parentheses, fixId34, Diagnostics.Add_all_missing_call_parentheses)];\n        },\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes44, (changes, diag2) => {\n          const callName = getCallName(diag2.file, diag2.start);\n          if (callName)\n            doChange21(changes, diag2.file, callName);\n        })\n      });\n    }\n  });\n  function getReturnType(expr) {\n    if (expr.type) {\n      return expr.type;\n    }\n    if (isVariableDeclaration(expr.parent) && expr.parent.type && isFunctionTypeNode(expr.parent.type)) {\n      return expr.parent.type.type;\n    }\n  }\n  function getNodes3(sourceFile, start) {\n    const token = getTokenAtPosition(sourceFile, start);\n    const containingFunction = getContainingFunction(token);\n    if (!containingFunction) {\n      return;\n    }\n    let insertBefore;\n    switch (containingFunction.kind) {\n      case 171:\n        insertBefore = containingFunction.name;\n        break;\n      case 259:\n      case 215:\n        insertBefore = findChildOfKind(containingFunction, 98, sourceFile);\n        break;\n      case 216:\n        const kind = containingFunction.typeParameters ? 29 : 20;\n        insertBefore = findChildOfKind(containingFunction, kind, sourceFile) || first(containingFunction.parameters);\n        break;\n      default:\n        return;\n    }\n    return insertBefore && {\n      insertBefore,\n      returnType: getReturnType(containingFunction)\n    };\n  }\n  function doChange22(changes, sourceFile, { insertBefore, returnType }) {\n    if (returnType) {\n      const entityName = getEntityNameFromTypeNode(returnType);\n      if (!entityName || entityName.kind !== 79 || entityName.text !== \"Promise\") {\n        changes.replaceNode(sourceFile, returnType, factory.createTypeReferenceNode(\"Promise\", factory.createNodeArray([returnType])));\n      }\n    }\n    changes.insertModifierBefore(sourceFile, 132, insertBefore);\n  }\n  var fixId35, errorCodes45;\n  var init_fixAwaitInSyncFunction = __esm({\n    \"src/services/codefixes/fixAwaitInSyncFunction.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId35 = \"fixAwaitInSyncFunction\";\n      errorCodes45 = [\n        Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,\n        Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,\n        Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code\n      ];\n      registerCodeFix({\n        errorCodes: errorCodes45,\n        getCodeActions(context) {\n          const { sourceFile, span } = context;\n          const nodes = getNodes3(sourceFile, span.start);\n          if (!nodes)\n            return void 0;\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange22(t, sourceFile, nodes));\n          return [createCodeFixAction(fixId35, changes, Diagnostics.Add_async_modifier_to_containing_function, fixId35, Diagnostics.Add_all_missing_async_modifiers)];\n        },\n        fixIds: [fixId35],\n        getAllCodeActions: function getAllCodeActionsToFixAwaitInSyncFunction(context) {\n          const seen = /* @__PURE__ */ new Map();\n          return codeFixAll(context, errorCodes45, (changes, diag2) => {\n            const nodes = getNodes3(diag2.file, diag2.start);\n            if (!nodes || !addToSeen(seen, getNodeId(nodes.insertBefore)))\n              return;\n            doChange22(changes, context.sourceFile, nodes);\n          });\n        }\n      });\n    }\n  });\n  function doChange23(file, start, length2, code, context) {\n    let startPosition;\n    let endPosition;\n    if (code === Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code) {\n      startPosition = start;\n      endPosition = start + length2;\n    } else if (code === Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code) {\n      const checker = context.program.getTypeChecker();\n      const node = getTokenAtPosition(file, start).parent;\n      Debug.assert(isAccessor(node), \"error span of fixPropertyOverrideAccessor should only be on an accessor\");\n      const containingClass = node.parent;\n      Debug.assert(isClassLike(containingClass), \"erroneous accessors should only be inside classes\");\n      const base = singleOrUndefined(getAllSupers(containingClass, checker));\n      if (!base)\n        return [];\n      const name = unescapeLeadingUnderscores(getTextOfPropertyName(node.name));\n      const baseProp = checker.getPropertyOfType(checker.getTypeAtLocation(base), name);\n      if (!baseProp || !baseProp.valueDeclaration)\n        return [];\n      startPosition = baseProp.valueDeclaration.pos;\n      endPosition = baseProp.valueDeclaration.end;\n      file = getSourceFileOfNode(baseProp.valueDeclaration);\n    } else {\n      Debug.fail(\"fixPropertyOverrideAccessor codefix got unexpected error code \" + code);\n    }\n    return generateAccessorFromProperty(file, context.program, startPosition, endPosition, context, Diagnostics.Generate_get_and_set_accessors.message);\n  }\n  var errorCodes46, fixId36;\n  var init_fixPropertyOverrideAccessor = __esm({\n    \"src/services/codefixes/fixPropertyOverrideAccessor.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      errorCodes46 = [\n        Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,\n        Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code\n      ];\n      fixId36 = \"fixPropertyOverrideAccessor\";\n      registerCodeFix({\n        errorCodes: errorCodes46,\n        getCodeActions(context) {\n          const edits = doChange23(context.sourceFile, context.span.start, context.span.length, context.errorCode, context);\n          if (edits) {\n            return [createCodeFixAction(fixId36, edits, Diagnostics.Generate_get_and_set_accessors, fixId36, Diagnostics.Generate_get_and_set_accessors_for_all_overriding_properties)];\n          }\n        },\n        fixIds: [fixId36],\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes46, (changes, diag2) => {\n          const edits = doChange23(diag2.file, diag2.start, diag2.length, diag2.code, context);\n          if (edits) {\n            for (const edit of edits) {\n              changes.pushRaw(context.sourceFile, edit);\n            }\n          }\n        })\n      });\n    }\n  });\n  function getDiagnostic(errorCode, token) {\n    switch (errorCode) {\n      case Diagnostics.Parameter_0_implicitly_has_an_1_type.code:\n      case Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:\n        return isSetAccessorDeclaration(getContainingFunction(token)) ? Diagnostics.Infer_type_of_0_from_usage : Diagnostics.Infer_parameter_types_from_usage;\n      case Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:\n      case Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:\n        return Diagnostics.Infer_parameter_types_from_usage;\n      case Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:\n        return Diagnostics.Infer_this_type_of_0_from_usage;\n      default:\n        return Diagnostics.Infer_type_of_0_from_usage;\n    }\n  }\n  function mapSuggestionDiagnostic(errorCode) {\n    switch (errorCode) {\n      case Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:\n        return Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;\n      case Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:\n        return Diagnostics.Variable_0_implicitly_has_an_1_type.code;\n      case Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:\n        return Diagnostics.Parameter_0_implicitly_has_an_1_type.code;\n      case Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:\n        return Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code;\n      case Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:\n        return Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;\n      case Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:\n        return Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;\n      case Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:\n        return Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;\n      case Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:\n        return Diagnostics.Member_0_implicitly_has_an_1_type.code;\n    }\n    return errorCode;\n  }\n  function doChange24(changes, sourceFile, token, errorCode, program, cancellationToken, markSeen, host, preferences) {\n    if (!isParameterPropertyModifier(token.kind) && token.kind !== 79 && token.kind !== 25 && token.kind !== 108) {\n      return void 0;\n    }\n    const { parent: parent2 } = token;\n    const importAdder = createImportAdder(sourceFile, program, preferences, host);\n    errorCode = mapSuggestionDiagnostic(errorCode);\n    switch (errorCode) {\n      case Diagnostics.Member_0_implicitly_has_an_1_type.code:\n      case Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:\n        if (isVariableDeclaration(parent2) && markSeen(parent2) || isPropertyDeclaration(parent2) || isPropertySignature(parent2)) {\n          annotateVariableDeclaration(changes, importAdder, sourceFile, parent2, program, host, cancellationToken);\n          importAdder.writeFixes(changes);\n          return parent2;\n        }\n        if (isPropertyAccessExpression(parent2)) {\n          const type = inferTypeForVariableFromUsage(parent2.name, program, cancellationToken);\n          const typeNode = getTypeNodeIfAccessible(type, parent2, program, host);\n          if (typeNode) {\n            const typeTag = factory.createJSDocTypeTag(void 0, factory.createJSDocTypeExpression(typeNode), void 0);\n            changes.addJSDocTags(sourceFile, cast(parent2.parent.parent, isExpressionStatement), [typeTag]);\n          }\n          importAdder.writeFixes(changes);\n          return parent2;\n        }\n        return void 0;\n      case Diagnostics.Variable_0_implicitly_has_an_1_type.code: {\n        const symbol = program.getTypeChecker().getSymbolAtLocation(token);\n        if (symbol && symbol.valueDeclaration && isVariableDeclaration(symbol.valueDeclaration) && markSeen(symbol.valueDeclaration)) {\n          annotateVariableDeclaration(changes, importAdder, getSourceFileOfNode(symbol.valueDeclaration), symbol.valueDeclaration, program, host, cancellationToken);\n          importAdder.writeFixes(changes);\n          return symbol.valueDeclaration;\n        }\n        return void 0;\n      }\n    }\n    const containingFunction = getContainingFunction(token);\n    if (containingFunction === void 0) {\n      return void 0;\n    }\n    let declaration;\n    switch (errorCode) {\n      case Diagnostics.Parameter_0_implicitly_has_an_1_type.code:\n        if (isSetAccessorDeclaration(containingFunction)) {\n          annotateSetAccessor(changes, importAdder, sourceFile, containingFunction, program, host, cancellationToken);\n          declaration = containingFunction;\n          break;\n        }\n      case Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:\n        if (markSeen(containingFunction)) {\n          const param = cast(parent2, isParameter);\n          annotateParameters(changes, importAdder, sourceFile, param, containingFunction, program, host, cancellationToken);\n          declaration = param;\n        }\n        break;\n      case Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:\n      case Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:\n        if (isGetAccessorDeclaration(containingFunction) && isIdentifier(containingFunction.name)) {\n          annotate(changes, importAdder, sourceFile, containingFunction, inferTypeForVariableFromUsage(containingFunction.name, program, cancellationToken), program, host);\n          declaration = containingFunction;\n        }\n        break;\n      case Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:\n        if (isSetAccessorDeclaration(containingFunction)) {\n          annotateSetAccessor(changes, importAdder, sourceFile, containingFunction, program, host, cancellationToken);\n          declaration = containingFunction;\n        }\n        break;\n      case Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:\n        if (ts_textChanges_exports.isThisTypeAnnotatable(containingFunction) && markSeen(containingFunction)) {\n          annotateThis(changes, sourceFile, containingFunction, program, host, cancellationToken);\n          declaration = containingFunction;\n        }\n        break;\n      default:\n        return Debug.fail(String(errorCode));\n    }\n    importAdder.writeFixes(changes);\n    return declaration;\n  }\n  function annotateVariableDeclaration(changes, importAdder, sourceFile, declaration, program, host, cancellationToken) {\n    if (isIdentifier(declaration.name)) {\n      annotate(changes, importAdder, sourceFile, declaration, inferTypeForVariableFromUsage(declaration.name, program, cancellationToken), program, host);\n    }\n  }\n  function annotateParameters(changes, importAdder, sourceFile, parameterDeclaration, containingFunction, program, host, cancellationToken) {\n    if (!isIdentifier(parameterDeclaration.name)) {\n      return;\n    }\n    const parameterInferences = inferTypeForParametersFromUsage(containingFunction, sourceFile, program, cancellationToken);\n    Debug.assert(containingFunction.parameters.length === parameterInferences.length, \"Parameter count and inference count should match\");\n    if (isInJSFile(containingFunction)) {\n      annotateJSDocParameters(changes, sourceFile, parameterInferences, program, host);\n    } else {\n      const needParens = isArrowFunction(containingFunction) && !findChildOfKind(containingFunction, 20, sourceFile);\n      if (needParens)\n        changes.insertNodeBefore(sourceFile, first(containingFunction.parameters), factory.createToken(20));\n      for (const { declaration, type } of parameterInferences) {\n        if (declaration && !declaration.type && !declaration.initializer) {\n          annotate(changes, importAdder, sourceFile, declaration, type, program, host);\n        }\n      }\n      if (needParens)\n        changes.insertNodeAfter(sourceFile, last(containingFunction.parameters), factory.createToken(21));\n    }\n  }\n  function annotateThis(changes, sourceFile, containingFunction, program, host, cancellationToken) {\n    const references = getFunctionReferences(containingFunction, sourceFile, program, cancellationToken);\n    if (!references || !references.length) {\n      return;\n    }\n    const thisInference = inferTypeFromReferences(program, references, cancellationToken).thisParameter();\n    const typeNode = getTypeNodeIfAccessible(thisInference, containingFunction, program, host);\n    if (!typeNode) {\n      return;\n    }\n    if (isInJSFile(containingFunction)) {\n      annotateJSDocThis(changes, sourceFile, containingFunction, typeNode);\n    } else {\n      changes.tryInsertThisTypeAnnotation(sourceFile, containingFunction, typeNode);\n    }\n  }\n  function annotateJSDocThis(changes, sourceFile, containingFunction, typeNode) {\n    changes.addJSDocTags(sourceFile, containingFunction, [\n      factory.createJSDocThisTag(void 0, factory.createJSDocTypeExpression(typeNode))\n    ]);\n  }\n  function annotateSetAccessor(changes, importAdder, sourceFile, setAccessorDeclaration, program, host, cancellationToken) {\n    const param = firstOrUndefined(setAccessorDeclaration.parameters);\n    if (param && isIdentifier(setAccessorDeclaration.name) && isIdentifier(param.name)) {\n      let type = inferTypeForVariableFromUsage(setAccessorDeclaration.name, program, cancellationToken);\n      if (type === program.getTypeChecker().getAnyType()) {\n        type = inferTypeForVariableFromUsage(param.name, program, cancellationToken);\n      }\n      if (isInJSFile(setAccessorDeclaration)) {\n        annotateJSDocParameters(changes, sourceFile, [{ declaration: param, type }], program, host);\n      } else {\n        annotate(changes, importAdder, sourceFile, param, type, program, host);\n      }\n    }\n  }\n  function annotate(changes, importAdder, sourceFile, declaration, type, program, host) {\n    const typeNode = getTypeNodeIfAccessible(type, declaration, program, host);\n    if (typeNode) {\n      if (isInJSFile(sourceFile) && declaration.kind !== 168) {\n        const parent2 = isVariableDeclaration(declaration) ? tryCast(declaration.parent.parent, isVariableStatement) : declaration;\n        if (!parent2) {\n          return;\n        }\n        const typeExpression = factory.createJSDocTypeExpression(typeNode);\n        const typeTag = isGetAccessorDeclaration(declaration) ? factory.createJSDocReturnTag(void 0, typeExpression, void 0) : factory.createJSDocTypeTag(void 0, typeExpression, void 0);\n        changes.addJSDocTags(sourceFile, parent2, [typeTag]);\n      } else if (!tryReplaceImportTypeNodeWithAutoImport(typeNode, declaration, sourceFile, changes, importAdder, getEmitScriptTarget(program.getCompilerOptions()))) {\n        changes.tryInsertTypeAnnotation(sourceFile, declaration, typeNode);\n      }\n    }\n  }\n  function tryReplaceImportTypeNodeWithAutoImport(typeNode, declaration, sourceFile, changes, importAdder, scriptTarget) {\n    const importableReference = tryGetAutoImportableReferenceFromTypeNode(typeNode, scriptTarget);\n    if (importableReference && changes.tryInsertTypeAnnotation(sourceFile, declaration, importableReference.typeNode)) {\n      forEach(importableReference.symbols, (s) => importAdder.addImportFromExportedSymbol(s, true));\n      return true;\n    }\n    return false;\n  }\n  function annotateJSDocParameters(changes, sourceFile, parameterInferences, program, host) {\n    const signature = parameterInferences.length && parameterInferences[0].declaration.parent;\n    if (!signature) {\n      return;\n    }\n    const inferences = mapDefined(parameterInferences, (inference) => {\n      const param = inference.declaration;\n      if (param.initializer || getJSDocType(param) || !isIdentifier(param.name)) {\n        return;\n      }\n      const typeNode = inference.type && getTypeNodeIfAccessible(inference.type, param, program, host);\n      if (typeNode) {\n        const name = factory.cloneNode(param.name);\n        setEmitFlags(name, 3072 | 4096);\n        return { name: factory.cloneNode(param.name), param, isOptional: !!inference.isOptional, typeNode };\n      }\n    });\n    if (!inferences.length) {\n      return;\n    }\n    if (isArrowFunction(signature) || isFunctionExpression(signature)) {\n      const needParens = isArrowFunction(signature) && !findChildOfKind(signature, 20, sourceFile);\n      if (needParens) {\n        changes.insertNodeBefore(sourceFile, first(signature.parameters), factory.createToken(20));\n      }\n      forEach(inferences, ({ typeNode, param }) => {\n        const typeTag = factory.createJSDocTypeTag(void 0, factory.createJSDocTypeExpression(typeNode));\n        const jsDoc = factory.createJSDocComment(void 0, [typeTag]);\n        changes.insertNodeAt(sourceFile, param.getStart(sourceFile), jsDoc, { suffix: \" \" });\n      });\n      if (needParens) {\n        changes.insertNodeAfter(sourceFile, last(signature.parameters), factory.createToken(21));\n      }\n    } else {\n      const paramTags = map(inferences, ({ name, typeNode, isOptional }) => factory.createJSDocParameterTag(void 0, name, !!isOptional, factory.createJSDocTypeExpression(typeNode), false, void 0));\n      changes.addJSDocTags(sourceFile, signature, paramTags);\n    }\n  }\n  function getReferences(token, program, cancellationToken) {\n    return mapDefined(ts_FindAllReferences_exports.getReferenceEntriesForNode(-1, token, program, program.getSourceFiles(), cancellationToken), (entry) => entry.kind !== ts_FindAllReferences_exports.EntryKind.Span ? tryCast(entry.node, isIdentifier) : void 0);\n  }\n  function inferTypeForVariableFromUsage(token, program, cancellationToken) {\n    const references = getReferences(token, program, cancellationToken);\n    return inferTypeFromReferences(program, references, cancellationToken).single();\n  }\n  function inferTypeForParametersFromUsage(func, sourceFile, program, cancellationToken) {\n    const references = getFunctionReferences(func, sourceFile, program, cancellationToken);\n    return references && inferTypeFromReferences(program, references, cancellationToken).parameters(func) || func.parameters.map((p) => ({\n      declaration: p,\n      type: isIdentifier(p.name) ? inferTypeForVariableFromUsage(p.name, program, cancellationToken) : program.getTypeChecker().getAnyType()\n    }));\n  }\n  function getFunctionReferences(containingFunction, sourceFile, program, cancellationToken) {\n    let searchToken;\n    switch (containingFunction.kind) {\n      case 173:\n        searchToken = findChildOfKind(containingFunction, 135, sourceFile);\n        break;\n      case 216:\n      case 215:\n        const parent2 = containingFunction.parent;\n        searchToken = (isVariableDeclaration(parent2) || isPropertyDeclaration(parent2)) && isIdentifier(parent2.name) ? parent2.name : containingFunction.name;\n        break;\n      case 259:\n      case 171:\n      case 170:\n        searchToken = containingFunction.name;\n        break;\n    }\n    if (!searchToken) {\n      return void 0;\n    }\n    return getReferences(searchToken, program, cancellationToken);\n  }\n  function inferTypeFromReferences(program, references, cancellationToken) {\n    const checker = program.getTypeChecker();\n    const builtinConstructors = {\n      string: () => checker.getStringType(),\n      number: () => checker.getNumberType(),\n      Array: (t) => checker.createArrayType(t),\n      Promise: (t) => checker.createPromiseType(t)\n    };\n    const builtins = [\n      checker.getStringType(),\n      checker.getNumberType(),\n      checker.createArrayType(checker.getAnyType()),\n      checker.createPromiseType(checker.getAnyType())\n    ];\n    return {\n      single: single2,\n      parameters,\n      thisParameter\n    };\n    function createEmptyUsage() {\n      return {\n        isNumber: void 0,\n        isString: void 0,\n        isNumberOrString: void 0,\n        candidateTypes: void 0,\n        properties: void 0,\n        calls: void 0,\n        constructs: void 0,\n        numberIndex: void 0,\n        stringIndex: void 0,\n        candidateThisTypes: void 0,\n        inferredTypes: void 0\n      };\n    }\n    function combineUsages(usages) {\n      const combinedProperties = /* @__PURE__ */ new Map();\n      for (const u of usages) {\n        if (u.properties) {\n          u.properties.forEach((p, name) => {\n            if (!combinedProperties.has(name)) {\n              combinedProperties.set(name, []);\n            }\n            combinedProperties.get(name).push(p);\n          });\n        }\n      }\n      const properties = /* @__PURE__ */ new Map();\n      combinedProperties.forEach((ps, name) => {\n        properties.set(name, combineUsages(ps));\n      });\n      return {\n        isNumber: usages.some((u) => u.isNumber),\n        isString: usages.some((u) => u.isString),\n        isNumberOrString: usages.some((u) => u.isNumberOrString),\n        candidateTypes: flatMap(usages, (u) => u.candidateTypes),\n        properties,\n        calls: flatMap(usages, (u) => u.calls),\n        constructs: flatMap(usages, (u) => u.constructs),\n        numberIndex: forEach(usages, (u) => u.numberIndex),\n        stringIndex: forEach(usages, (u) => u.stringIndex),\n        candidateThisTypes: flatMap(usages, (u) => u.candidateThisTypes),\n        inferredTypes: void 0\n      };\n    }\n    function single2() {\n      return combineTypes(inferTypesFromReferencesSingle(references));\n    }\n    function parameters(declaration) {\n      if (references.length === 0 || !declaration.parameters) {\n        return void 0;\n      }\n      const usage = createEmptyUsage();\n      for (const reference of references) {\n        cancellationToken.throwIfCancellationRequested();\n        calculateUsageOfNode(reference, usage);\n      }\n      const calls = [...usage.constructs || [], ...usage.calls || []];\n      return declaration.parameters.map((parameter, parameterIndex) => {\n        const types = [];\n        const isRest = isRestParameter(parameter);\n        let isOptional = false;\n        for (const call of calls) {\n          if (call.argumentTypes.length <= parameterIndex) {\n            isOptional = isInJSFile(declaration);\n            types.push(checker.getUndefinedType());\n          } else if (isRest) {\n            for (let i = parameterIndex; i < call.argumentTypes.length; i++) {\n              types.push(checker.getBaseTypeOfLiteralType(call.argumentTypes[i]));\n            }\n          } else {\n            types.push(checker.getBaseTypeOfLiteralType(call.argumentTypes[parameterIndex]));\n          }\n        }\n        if (isIdentifier(parameter.name)) {\n          const inferred = inferTypesFromReferencesSingle(getReferences(parameter.name, program, cancellationToken));\n          types.push(...isRest ? mapDefined(inferred, checker.getElementTypeOfArrayType) : inferred);\n        }\n        const type = combineTypes(types);\n        return {\n          type: isRest ? checker.createArrayType(type) : type,\n          isOptional: isOptional && !isRest,\n          declaration: parameter\n        };\n      });\n    }\n    function thisParameter() {\n      const usage = createEmptyUsage();\n      for (const reference of references) {\n        cancellationToken.throwIfCancellationRequested();\n        calculateUsageOfNode(reference, usage);\n      }\n      return combineTypes(usage.candidateThisTypes || emptyArray);\n    }\n    function inferTypesFromReferencesSingle(references2) {\n      const usage = createEmptyUsage();\n      for (const reference of references2) {\n        cancellationToken.throwIfCancellationRequested();\n        calculateUsageOfNode(reference, usage);\n      }\n      return inferTypes(usage);\n    }\n    function calculateUsageOfNode(node, usage) {\n      while (isRightSideOfQualifiedNameOrPropertyAccess(node)) {\n        node = node.parent;\n      }\n      switch (node.parent.kind) {\n        case 241:\n          inferTypeFromExpressionStatement(node, usage);\n          break;\n        case 222:\n          usage.isNumber = true;\n          break;\n        case 221:\n          inferTypeFromPrefixUnaryExpression(node.parent, usage);\n          break;\n        case 223:\n          inferTypeFromBinaryExpression(node, node.parent, usage);\n          break;\n        case 292:\n        case 293:\n          inferTypeFromSwitchStatementLabel(node.parent, usage);\n          break;\n        case 210:\n        case 211:\n          if (node.parent.expression === node) {\n            inferTypeFromCallExpression(node.parent, usage);\n          } else {\n            inferTypeFromContextualType(node, usage);\n          }\n          break;\n        case 208:\n          inferTypeFromPropertyAccessExpression(node.parent, usage);\n          break;\n        case 209:\n          inferTypeFromPropertyElementExpression(node.parent, node, usage);\n          break;\n        case 299:\n        case 300:\n          inferTypeFromPropertyAssignment(node.parent, usage);\n          break;\n        case 169:\n          inferTypeFromPropertyDeclaration(node.parent, usage);\n          break;\n        case 257: {\n          const { name, initializer } = node.parent;\n          if (node === name) {\n            if (initializer) {\n              addCandidateType(usage, checker.getTypeAtLocation(initializer));\n            }\n            break;\n          }\n        }\n        default:\n          return inferTypeFromContextualType(node, usage);\n      }\n    }\n    function inferTypeFromContextualType(node, usage) {\n      if (isExpressionNode(node)) {\n        addCandidateType(usage, checker.getContextualType(node));\n      }\n    }\n    function inferTypeFromExpressionStatement(node, usage) {\n      addCandidateType(usage, isCallExpression(node) ? checker.getVoidType() : checker.getAnyType());\n    }\n    function inferTypeFromPrefixUnaryExpression(node, usage) {\n      switch (node.operator) {\n        case 45:\n        case 46:\n        case 40:\n        case 54:\n          usage.isNumber = true;\n          break;\n        case 39:\n          usage.isNumberOrString = true;\n          break;\n      }\n    }\n    function inferTypeFromBinaryExpression(node, parent2, usage) {\n      switch (parent2.operatorToken.kind) {\n        case 42:\n        case 41:\n        case 43:\n        case 44:\n        case 47:\n        case 48:\n        case 49:\n        case 50:\n        case 51:\n        case 52:\n        case 65:\n        case 67:\n        case 66:\n        case 68:\n        case 69:\n        case 73:\n        case 74:\n        case 78:\n        case 70:\n        case 72:\n        case 71:\n        case 40:\n        case 29:\n        case 32:\n        case 31:\n        case 33:\n          const operandType = checker.getTypeAtLocation(parent2.left === node ? parent2.right : parent2.left);\n          if (operandType.flags & 1056) {\n            addCandidateType(usage, operandType);\n          } else {\n            usage.isNumber = true;\n          }\n          break;\n        case 64:\n        case 39:\n          const otherOperandType = checker.getTypeAtLocation(parent2.left === node ? parent2.right : parent2.left);\n          if (otherOperandType.flags & 1056) {\n            addCandidateType(usage, otherOperandType);\n          } else if (otherOperandType.flags & 296) {\n            usage.isNumber = true;\n          } else if (otherOperandType.flags & 402653316) {\n            usage.isString = true;\n          } else if (otherOperandType.flags & 1) {\n          } else {\n            usage.isNumberOrString = true;\n          }\n          break;\n        case 63:\n        case 34:\n        case 36:\n        case 37:\n        case 35:\n          addCandidateType(usage, checker.getTypeAtLocation(parent2.left === node ? parent2.right : parent2.left));\n          break;\n        case 101:\n          if (node === parent2.left) {\n            usage.isString = true;\n          }\n          break;\n        case 56:\n        case 60:\n          if (node === parent2.left && (node.parent.parent.kind === 257 || isAssignmentExpression(node.parent.parent, true))) {\n            addCandidateType(usage, checker.getTypeAtLocation(parent2.right));\n          }\n          break;\n        case 55:\n        case 27:\n        case 102:\n          break;\n      }\n    }\n    function inferTypeFromSwitchStatementLabel(parent2, usage) {\n      addCandidateType(usage, checker.getTypeAtLocation(parent2.parent.parent.expression));\n    }\n    function inferTypeFromCallExpression(parent2, usage) {\n      const call = {\n        argumentTypes: [],\n        return_: createEmptyUsage()\n      };\n      if (parent2.arguments) {\n        for (const argument of parent2.arguments) {\n          call.argumentTypes.push(checker.getTypeAtLocation(argument));\n        }\n      }\n      calculateUsageOfNode(parent2, call.return_);\n      if (parent2.kind === 210) {\n        (usage.calls || (usage.calls = [])).push(call);\n      } else {\n        (usage.constructs || (usage.constructs = [])).push(call);\n      }\n    }\n    function inferTypeFromPropertyAccessExpression(parent2, usage) {\n      const name = escapeLeadingUnderscores(parent2.name.text);\n      if (!usage.properties) {\n        usage.properties = /* @__PURE__ */ new Map();\n      }\n      const propertyUsage = usage.properties.get(name) || createEmptyUsage();\n      calculateUsageOfNode(parent2, propertyUsage);\n      usage.properties.set(name, propertyUsage);\n    }\n    function inferTypeFromPropertyElementExpression(parent2, node, usage) {\n      if (node === parent2.argumentExpression) {\n        usage.isNumberOrString = true;\n        return;\n      } else {\n        const indexType = checker.getTypeAtLocation(parent2.argumentExpression);\n        const indexUsage = createEmptyUsage();\n        calculateUsageOfNode(parent2, indexUsage);\n        if (indexType.flags & 296) {\n          usage.numberIndex = indexUsage;\n        } else {\n          usage.stringIndex = indexUsage;\n        }\n      }\n    }\n    function inferTypeFromPropertyAssignment(assignment, usage) {\n      const nodeWithRealType = isVariableDeclaration(assignment.parent.parent) ? assignment.parent.parent : assignment.parent;\n      addCandidateThisType(usage, checker.getTypeAtLocation(nodeWithRealType));\n    }\n    function inferTypeFromPropertyDeclaration(declaration, usage) {\n      addCandidateThisType(usage, checker.getTypeAtLocation(declaration.parent));\n    }\n    function removeLowPriorityInferences(inferences, priorities) {\n      const toRemove = [];\n      for (const i of inferences) {\n        for (const { high, low } of priorities) {\n          if (high(i)) {\n            Debug.assert(!low(i), \"Priority can't have both low and high\");\n            toRemove.push(low);\n          }\n        }\n      }\n      return inferences.filter((i) => toRemove.every((f) => !f(i)));\n    }\n    function combineFromUsage(usage) {\n      return combineTypes(inferTypes(usage));\n    }\n    function combineTypes(inferences) {\n      if (!inferences.length)\n        return checker.getAnyType();\n      const stringNumber = checker.getUnionType([checker.getStringType(), checker.getNumberType()]);\n      const priorities = [\n        {\n          high: (t) => t === checker.getStringType() || t === checker.getNumberType(),\n          low: (t) => t === stringNumber\n        },\n        {\n          high: (t) => !(t.flags & (1 | 16384)),\n          low: (t) => !!(t.flags & (1 | 16384))\n        },\n        {\n          high: (t) => !(t.flags & (98304 | 1 | 16384)) && !(getObjectFlags(t) & 16),\n          low: (t) => !!(getObjectFlags(t) & 16)\n        }\n      ];\n      let good = removeLowPriorityInferences(inferences, priorities);\n      const anons = good.filter((i) => getObjectFlags(i) & 16);\n      if (anons.length) {\n        good = good.filter((i) => !(getObjectFlags(i) & 16));\n        good.push(combineAnonymousTypes(anons));\n      }\n      return checker.getWidenedType(checker.getUnionType(good.map(checker.getBaseTypeOfLiteralType), 2));\n    }\n    function combineAnonymousTypes(anons) {\n      if (anons.length === 1) {\n        return anons[0];\n      }\n      const calls = [];\n      const constructs = [];\n      const stringIndices = [];\n      const numberIndices = [];\n      let stringIndexReadonly = false;\n      let numberIndexReadonly = false;\n      const props = createMultiMap();\n      for (const anon2 of anons) {\n        for (const p of checker.getPropertiesOfType(anon2)) {\n          props.add(p.name, p.valueDeclaration ? checker.getTypeOfSymbolAtLocation(p, p.valueDeclaration) : checker.getAnyType());\n        }\n        calls.push(...checker.getSignaturesOfType(anon2, 0));\n        constructs.push(...checker.getSignaturesOfType(anon2, 1));\n        const stringIndexInfo = checker.getIndexInfoOfType(anon2, 0);\n        if (stringIndexInfo) {\n          stringIndices.push(stringIndexInfo.type);\n          stringIndexReadonly = stringIndexReadonly || stringIndexInfo.isReadonly;\n        }\n        const numberIndexInfo = checker.getIndexInfoOfType(anon2, 1);\n        if (numberIndexInfo) {\n          numberIndices.push(numberIndexInfo.type);\n          numberIndexReadonly = numberIndexReadonly || numberIndexInfo.isReadonly;\n        }\n      }\n      const members = mapEntries(props, (name, types) => {\n        const isOptional = types.length < anons.length ? 16777216 : 0;\n        const s = checker.createSymbol(4 | isOptional, name);\n        s.links.type = checker.getUnionType(types);\n        return [name, s];\n      });\n      const indexInfos = [];\n      if (stringIndices.length)\n        indexInfos.push(checker.createIndexInfo(checker.getStringType(), checker.getUnionType(stringIndices), stringIndexReadonly));\n      if (numberIndices.length)\n        indexInfos.push(checker.createIndexInfo(checker.getNumberType(), checker.getUnionType(numberIndices), numberIndexReadonly));\n      return checker.createAnonymousType(anons[0].symbol, members, calls, constructs, indexInfos);\n    }\n    function inferTypes(usage) {\n      var _a2, _b, _c;\n      const types = [];\n      if (usage.isNumber) {\n        types.push(checker.getNumberType());\n      }\n      if (usage.isString) {\n        types.push(checker.getStringType());\n      }\n      if (usage.isNumberOrString) {\n        types.push(checker.getUnionType([checker.getStringType(), checker.getNumberType()]));\n      }\n      if (usage.numberIndex) {\n        types.push(checker.createArrayType(combineFromUsage(usage.numberIndex)));\n      }\n      if (((_a2 = usage.properties) == null ? void 0 : _a2.size) || ((_b = usage.constructs) == null ? void 0 : _b.length) || usage.stringIndex) {\n        types.push(inferStructuralType(usage));\n      }\n      const candidateTypes = (usage.candidateTypes || []).map((t) => checker.getBaseTypeOfLiteralType(t));\n      const callsType = ((_c = usage.calls) == null ? void 0 : _c.length) ? inferStructuralType(usage) : void 0;\n      if (callsType && candidateTypes) {\n        types.push(checker.getUnionType([callsType, ...candidateTypes], 2));\n      } else {\n        if (callsType) {\n          types.push(callsType);\n        }\n        if (length(candidateTypes)) {\n          types.push(...candidateTypes);\n        }\n      }\n      types.push(...inferNamedTypesFromProperties(usage));\n      return types;\n    }\n    function inferStructuralType(usage) {\n      const members = /* @__PURE__ */ new Map();\n      if (usage.properties) {\n        usage.properties.forEach((u, name) => {\n          const symbol = checker.createSymbol(4, name);\n          symbol.links.type = combineFromUsage(u);\n          members.set(name, symbol);\n        });\n      }\n      const callSignatures = usage.calls ? [getSignatureFromCalls(usage.calls)] : [];\n      const constructSignatures = usage.constructs ? [getSignatureFromCalls(usage.constructs)] : [];\n      const indexInfos = usage.stringIndex ? [checker.createIndexInfo(checker.getStringType(), combineFromUsage(usage.stringIndex), false)] : [];\n      return checker.createAnonymousType(void 0, members, callSignatures, constructSignatures, indexInfos);\n    }\n    function inferNamedTypesFromProperties(usage) {\n      if (!usage.properties || !usage.properties.size)\n        return [];\n      const types = builtins.filter((t) => allPropertiesAreAssignableToUsage(t, usage));\n      if (0 < types.length && types.length < 3) {\n        return types.map((t) => inferInstantiationFromUsage(t, usage));\n      }\n      return [];\n    }\n    function allPropertiesAreAssignableToUsage(type, usage) {\n      if (!usage.properties)\n        return false;\n      return !forEachEntry(usage.properties, (propUsage, name) => {\n        const source = checker.getTypeOfPropertyOfType(type, name);\n        if (!source) {\n          return true;\n        }\n        if (propUsage.calls) {\n          const sigs = checker.getSignaturesOfType(source, 0);\n          return !sigs.length || !checker.isTypeAssignableTo(source, getFunctionFromCalls(propUsage.calls));\n        } else {\n          return !checker.isTypeAssignableTo(source, combineFromUsage(propUsage));\n        }\n      });\n    }\n    function inferInstantiationFromUsage(type, usage) {\n      if (!(getObjectFlags(type) & 4) || !usage.properties) {\n        return type;\n      }\n      const generic = type.target;\n      const singleTypeParameter = singleOrUndefined(generic.typeParameters);\n      if (!singleTypeParameter)\n        return type;\n      const types = [];\n      usage.properties.forEach((propUsage, name) => {\n        const genericPropertyType = checker.getTypeOfPropertyOfType(generic, name);\n        Debug.assert(!!genericPropertyType, \"generic should have all the properties of its reference.\");\n        types.push(...inferTypeParameters(genericPropertyType, combineFromUsage(propUsage), singleTypeParameter));\n      });\n      return builtinConstructors[type.symbol.escapedName](combineTypes(types));\n    }\n    function inferTypeParameters(genericType, usageType, typeParameter) {\n      if (genericType === typeParameter) {\n        return [usageType];\n      } else if (genericType.flags & 3145728) {\n        return flatMap(genericType.types, (t) => inferTypeParameters(t, usageType, typeParameter));\n      } else if (getObjectFlags(genericType) & 4 && getObjectFlags(usageType) & 4) {\n        const genericArgs = checker.getTypeArguments(genericType);\n        const usageArgs = checker.getTypeArguments(usageType);\n        const types = [];\n        if (genericArgs && usageArgs) {\n          for (let i = 0; i < genericArgs.length; i++) {\n            if (usageArgs[i]) {\n              types.push(...inferTypeParameters(genericArgs[i], usageArgs[i], typeParameter));\n            }\n          }\n        }\n        return types;\n      }\n      const genericSigs = checker.getSignaturesOfType(genericType, 0);\n      const usageSigs = checker.getSignaturesOfType(usageType, 0);\n      if (genericSigs.length === 1 && usageSigs.length === 1) {\n        return inferFromSignatures(genericSigs[0], usageSigs[0], typeParameter);\n      }\n      return [];\n    }\n    function inferFromSignatures(genericSig, usageSig, typeParameter) {\n      var _a2;\n      const types = [];\n      for (let i = 0; i < genericSig.parameters.length; i++) {\n        const genericParam = genericSig.parameters[i];\n        const usageParam = usageSig.parameters[i];\n        const isRest = genericSig.declaration && isRestParameter(genericSig.declaration.parameters[i]);\n        if (!usageParam) {\n          break;\n        }\n        let genericParamType = genericParam.valueDeclaration ? checker.getTypeOfSymbolAtLocation(genericParam, genericParam.valueDeclaration) : checker.getAnyType();\n        const elementType = isRest && checker.getElementTypeOfArrayType(genericParamType);\n        if (elementType) {\n          genericParamType = elementType;\n        }\n        const targetType = ((_a2 = tryCast(usageParam, isTransientSymbol)) == null ? void 0 : _a2.links.type) || (usageParam.valueDeclaration ? checker.getTypeOfSymbolAtLocation(usageParam, usageParam.valueDeclaration) : checker.getAnyType());\n        types.push(...inferTypeParameters(genericParamType, targetType, typeParameter));\n      }\n      const genericReturn = checker.getReturnTypeOfSignature(genericSig);\n      const usageReturn = checker.getReturnTypeOfSignature(usageSig);\n      types.push(...inferTypeParameters(genericReturn, usageReturn, typeParameter));\n      return types;\n    }\n    function getFunctionFromCalls(calls) {\n      return checker.createAnonymousType(void 0, createSymbolTable(), [getSignatureFromCalls(calls)], emptyArray, emptyArray);\n    }\n    function getSignatureFromCalls(calls) {\n      const parameters2 = [];\n      const length2 = Math.max(...calls.map((c) => c.argumentTypes.length));\n      for (let i = 0; i < length2; i++) {\n        const symbol = checker.createSymbol(1, escapeLeadingUnderscores(`arg${i}`));\n        symbol.links.type = combineTypes(calls.map((call) => call.argumentTypes[i] || checker.getUndefinedType()));\n        if (calls.some((call) => call.argumentTypes[i] === void 0)) {\n          symbol.flags |= 16777216;\n        }\n        parameters2.push(symbol);\n      }\n      const returnType = combineFromUsage(combineUsages(calls.map((call) => call.return_)));\n      return checker.createSignature(void 0, void 0, void 0, parameters2, returnType, void 0, length2, 0);\n    }\n    function addCandidateType(usage, type) {\n      if (type && !(type.flags & 1) && !(type.flags & 131072)) {\n        (usage.candidateTypes || (usage.candidateTypes = [])).push(type);\n      }\n    }\n    function addCandidateThisType(usage, type) {\n      if (type && !(type.flags & 1) && !(type.flags & 131072)) {\n        (usage.candidateThisTypes || (usage.candidateThisTypes = [])).push(type);\n      }\n    }\n  }\n  var fixId37, errorCodes47;\n  var init_inferFromUsage = __esm({\n    \"src/services/codefixes/inferFromUsage.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId37 = \"inferFromUsage\";\n      errorCodes47 = [\n        Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,\n        Diagnostics.Variable_0_implicitly_has_an_1_type.code,\n        Diagnostics.Parameter_0_implicitly_has_an_1_type.code,\n        Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,\n        Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,\n        Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,\n        Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,\n        Diagnostics.Member_0_implicitly_has_an_1_type.code,\n        Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,\n        Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,\n        Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,\n        Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,\n        Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,\n        Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,\n        Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,\n        Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,\n        Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code\n      ];\n      registerCodeFix({\n        errorCodes: errorCodes47,\n        getCodeActions(context) {\n          const { sourceFile, program, span: { start }, errorCode, cancellationToken, host, preferences } = context;\n          const token = getTokenAtPosition(sourceFile, start);\n          let declaration;\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (changes2) => {\n            declaration = doChange24(changes2, sourceFile, token, errorCode, program, cancellationToken, returnTrue, host, preferences);\n          });\n          const name = declaration && getNameOfDeclaration(declaration);\n          return !name || changes.length === 0 ? void 0 : [createCodeFixAction(fixId37, changes, [getDiagnostic(errorCode, token), getTextOfNode(name)], fixId37, Diagnostics.Infer_all_types_from_usage)];\n        },\n        fixIds: [fixId37],\n        getAllCodeActions(context) {\n          const { sourceFile, program, cancellationToken, host, preferences } = context;\n          const markSeen = nodeSeenTracker();\n          return codeFixAll(context, errorCodes47, (changes, err) => {\n            doChange24(changes, sourceFile, getTokenAtPosition(err.file, err.start), err.code, program, cancellationToken, markSeen, host, preferences);\n          });\n        }\n      });\n    }\n  });\n  function getInfo12(sourceFile, checker, pos) {\n    if (isInJSFile(sourceFile)) {\n      return void 0;\n    }\n    const token = getTokenAtPosition(sourceFile, pos);\n    const func = findAncestor(token, isFunctionLikeDeclaration);\n    const returnTypeNode = func == null ? void 0 : func.type;\n    if (!returnTypeNode) {\n      return void 0;\n    }\n    const returnType = checker.getTypeFromTypeNode(returnTypeNode);\n    const promisedType = checker.getAwaitedType(returnType) || checker.getVoidType();\n    const promisedTypeNode = checker.typeToTypeNode(promisedType, returnTypeNode, void 0);\n    if (promisedTypeNode) {\n      return { returnTypeNode, returnType, promisedTypeNode, promisedType };\n    }\n  }\n  function doChange25(changes, sourceFile, returnTypeNode, promisedTypeNode) {\n    changes.replaceNode(sourceFile, returnTypeNode, factory.createTypeReferenceNode(\"Promise\", [promisedTypeNode]));\n  }\n  var fixId38, errorCodes48;\n  var init_fixReturnTypeInAsyncFunction = __esm({\n    \"src/services/codefixes/fixReturnTypeInAsyncFunction.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId38 = \"fixReturnTypeInAsyncFunction\";\n      errorCodes48 = [\n        Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code\n      ];\n      registerCodeFix({\n        errorCodes: errorCodes48,\n        fixIds: [fixId38],\n        getCodeActions: function getCodeActionsToFixReturnTypeInAsyncFunction(context) {\n          const { sourceFile, program, span } = context;\n          const checker = program.getTypeChecker();\n          const info = getInfo12(sourceFile, program.getTypeChecker(), span.start);\n          if (!info) {\n            return void 0;\n          }\n          const { returnTypeNode, returnType, promisedTypeNode, promisedType } = info;\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange25(t, sourceFile, returnTypeNode, promisedTypeNode));\n          return [createCodeFixAction(fixId38, changes, [\n            Diagnostics.Replace_0_with_Promise_1,\n            checker.typeToString(returnType),\n            checker.typeToString(promisedType)\n          ], fixId38, Diagnostics.Fix_all_incorrect_return_type_of_an_async_functions)];\n        },\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes48, (changes, diag2) => {\n          const info = getInfo12(diag2.file, context.program.getTypeChecker(), diag2.start);\n          if (info) {\n            doChange25(changes, diag2.file, info.returnTypeNode, info.promisedTypeNode);\n          }\n        })\n      });\n    }\n  });\n  function makeChange8(changes, sourceFile, position, seenLines) {\n    const { line: lineNumber } = getLineAndCharacterOfPosition(sourceFile, position);\n    if (!seenLines || tryAddToSet(seenLines, lineNumber)) {\n      changes.insertCommentBeforeLine(sourceFile, lineNumber, position, \" @ts-ignore\");\n    }\n  }\n  var fixName4, fixId39, errorCodes49;\n  var init_disableJsDiagnostics = __esm({\n    \"src/services/codefixes/disableJsDiagnostics.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixName4 = \"disableJsDiagnostics\";\n      fixId39 = \"disableJsDiagnostics\";\n      errorCodes49 = mapDefined(Object.keys(Diagnostics), (key) => {\n        const diag2 = Diagnostics[key];\n        return diag2.category === 1 ? diag2.code : void 0;\n      });\n      registerCodeFix({\n        errorCodes: errorCodes49,\n        getCodeActions: function getCodeActionsToDisableJsDiagnostics(context) {\n          const { sourceFile, program, span, host, formatContext } = context;\n          if (!isInJSFile(sourceFile) || !isCheckJsEnabledForFile(sourceFile, program.getCompilerOptions())) {\n            return void 0;\n          }\n          const newLineCharacter = sourceFile.checkJsDirective ? \"\" : getNewLineOrDefaultFromHost(host, formatContext.options);\n          const fixes = [\n            createCodeFixActionWithoutFixAll(fixName4, [createFileTextChanges(sourceFile.fileName, [\n              createTextChange(sourceFile.checkJsDirective ? createTextSpanFromBounds(sourceFile.checkJsDirective.pos, sourceFile.checkJsDirective.end) : createTextSpan(0, 0), `// @ts-nocheck${newLineCharacter}`)\n            ])], Diagnostics.Disable_checking_for_this_file)\n          ];\n          if (ts_textChanges_exports.isValidLocationToAddComment(sourceFile, span.start)) {\n            fixes.unshift(createCodeFixAction(fixName4, ts_textChanges_exports.ChangeTracker.with(context, (t) => makeChange8(t, sourceFile, span.start)), Diagnostics.Ignore_this_error_message, fixId39, Diagnostics.Add_ts_ignore_to_all_error_messages));\n          }\n          return fixes;\n        },\n        fixIds: [fixId39],\n        getAllCodeActions: (context) => {\n          const seenLines = /* @__PURE__ */ new Set();\n          return codeFixAll(context, errorCodes49, (changes, diag2) => {\n            if (ts_textChanges_exports.isValidLocationToAddComment(diag2.file, diag2.start)) {\n              makeChange8(changes, diag2.file, diag2.start, seenLines);\n            }\n          });\n        }\n      });\n    }\n  });\n  function createMissingMemberNodes(classDeclaration, possiblyMissingSymbols, sourceFile, context, preferences, importAdder, addClassElement) {\n    const classMembers = classDeclaration.symbol.members;\n    for (const symbol of possiblyMissingSymbols) {\n      if (!classMembers.has(symbol.escapedName)) {\n        addNewNodeForMemberSymbol(symbol, classDeclaration, sourceFile, context, preferences, importAdder, addClassElement, void 0);\n      }\n    }\n  }\n  function getNoopSymbolTrackerWithResolver(context) {\n    return {\n      trackSymbol: () => false,\n      moduleResolverHost: getModuleSpecifierResolverHost(context.program, context.host)\n    };\n  }\n  function addNewNodeForMemberSymbol(symbol, enclosingDeclaration, sourceFile, context, preferences, importAdder, addClassElement, body, preserveOptional = 3, isAmbient = false) {\n    var _a2;\n    const declarations = symbol.getDeclarations();\n    const declaration = declarations == null ? void 0 : declarations[0];\n    const checker = context.program.getTypeChecker();\n    const scriptTarget = getEmitScriptTarget(context.program.getCompilerOptions());\n    const kind = (_a2 = declaration == null ? void 0 : declaration.kind) != null ? _a2 : 168;\n    const declarationName = getSynthesizedDeepClone(getNameOfDeclaration(declaration), false);\n    const effectiveModifierFlags = declaration ? getEffectiveModifierFlags(declaration) : 0;\n    let modifierFlags = effectiveModifierFlags & 4 ? 4 : effectiveModifierFlags & 16 ? 16 : 0;\n    if (declaration && isAutoAccessorPropertyDeclaration(declaration)) {\n      modifierFlags |= 128;\n    }\n    const modifiers = createModifiers();\n    const type = checker.getWidenedType(checker.getTypeOfSymbolAtLocation(symbol, enclosingDeclaration));\n    const optional = !!(symbol.flags & 16777216);\n    const ambient = !!(enclosingDeclaration.flags & 16777216) || isAmbient;\n    const quotePreference = getQuotePreference(sourceFile, preferences);\n    switch (kind) {\n      case 168:\n      case 169:\n        const flags = quotePreference === 0 ? 268435456 : void 0;\n        let typeNode = checker.typeToTypeNode(type, enclosingDeclaration, flags, getNoopSymbolTrackerWithResolver(context));\n        if (importAdder) {\n          const importableReference = tryGetAutoImportableReferenceFromTypeNode(typeNode, scriptTarget);\n          if (importableReference) {\n            typeNode = importableReference.typeNode;\n            importSymbols(importAdder, importableReference.symbols);\n          }\n        }\n        addClassElement(factory.createPropertyDeclaration(modifiers, declaration ? createName(declarationName) : symbol.getName(), optional && preserveOptional & 2 ? factory.createToken(57) : void 0, typeNode, void 0));\n        break;\n      case 174:\n      case 175: {\n        Debug.assertIsDefined(declarations);\n        let typeNode2 = checker.typeToTypeNode(type, enclosingDeclaration, void 0, getNoopSymbolTrackerWithResolver(context));\n        const allAccessors = getAllAccessorDeclarations(declarations, declaration);\n        const orderedAccessors = allAccessors.secondAccessor ? [allAccessors.firstAccessor, allAccessors.secondAccessor] : [allAccessors.firstAccessor];\n        if (importAdder) {\n          const importableReference = tryGetAutoImportableReferenceFromTypeNode(typeNode2, scriptTarget);\n          if (importableReference) {\n            typeNode2 = importableReference.typeNode;\n            importSymbols(importAdder, importableReference.symbols);\n          }\n        }\n        for (const accessor of orderedAccessors) {\n          if (isGetAccessorDeclaration(accessor)) {\n            addClassElement(factory.createGetAccessorDeclaration(modifiers, createName(declarationName), emptyArray, createTypeNode(typeNode2), createBody(body, quotePreference, ambient)));\n          } else {\n            Debug.assertNode(accessor, isSetAccessorDeclaration, \"The counterpart to a getter should be a setter\");\n            const parameter = getSetAccessorValueParameter(accessor);\n            const parameterName = parameter && isIdentifier(parameter.name) ? idText(parameter.name) : void 0;\n            addClassElement(factory.createSetAccessorDeclaration(modifiers, createName(declarationName), createDummyParameters(1, [parameterName], [createTypeNode(typeNode2)], 1, false), createBody(body, quotePreference, ambient)));\n          }\n        }\n        break;\n      }\n      case 170:\n      case 171:\n        Debug.assertIsDefined(declarations);\n        const signatures = type.isUnion() ? flatMap(type.types, (t) => t.getCallSignatures()) : type.getCallSignatures();\n        if (!some(signatures)) {\n          break;\n        }\n        if (declarations.length === 1) {\n          Debug.assert(signatures.length === 1, \"One declaration implies one signature\");\n          const signature = signatures[0];\n          outputMethod(quotePreference, signature, modifiers, createName(declarationName), createBody(body, quotePreference, ambient));\n          break;\n        }\n        for (const signature of signatures) {\n          outputMethod(quotePreference, signature, modifiers, createName(declarationName));\n        }\n        if (!ambient) {\n          if (declarations.length > signatures.length) {\n            const signature = checker.getSignatureFromDeclaration(declarations[declarations.length - 1]);\n            outputMethod(quotePreference, signature, modifiers, createName(declarationName), createBody(body, quotePreference));\n          } else {\n            Debug.assert(declarations.length === signatures.length, \"Declarations and signatures should match count\");\n            addClassElement(createMethodImplementingSignatures(checker, context, enclosingDeclaration, signatures, createName(declarationName), optional && !!(preserveOptional & 1), modifiers, quotePreference, body));\n          }\n        }\n        break;\n    }\n    function outputMethod(quotePreference2, signature, modifiers2, name, body2) {\n      const method = createSignatureDeclarationFromSignature(171, context, quotePreference2, signature, body2, name, modifiers2, optional && !!(preserveOptional & 1), enclosingDeclaration, importAdder);\n      if (method)\n        addClassElement(method);\n    }\n    function createModifiers() {\n      let modifiers2;\n      if (modifierFlags) {\n        modifiers2 = combine(modifiers2, factory.createModifiersFromModifierFlags(modifierFlags));\n      }\n      if (shouldAddOverrideKeyword()) {\n        modifiers2 = append(modifiers2, factory.createToken(161));\n      }\n      return modifiers2 && factory.createNodeArray(modifiers2);\n    }\n    function shouldAddOverrideKeyword() {\n      return !!(context.program.getCompilerOptions().noImplicitOverride && declaration && hasAbstractModifier(declaration));\n    }\n    function createName(node) {\n      if (isIdentifier(node) && node.escapedText === \"constructor\") {\n        return factory.createComputedPropertyName(factory.createStringLiteral(idText(node), quotePreference === 0));\n      }\n      return getSynthesizedDeepClone(node, false);\n    }\n    function createBody(block, quotePreference2, ambient2) {\n      return ambient2 ? void 0 : getSynthesizedDeepClone(block, false) || createStubbedMethodBody(quotePreference2);\n    }\n    function createTypeNode(typeNode) {\n      return getSynthesizedDeepClone(typeNode, false);\n    }\n  }\n  function createSignatureDeclarationFromSignature(kind, context, quotePreference, signature, body, name, modifiers, optional, enclosingDeclaration, importAdder) {\n    const program = context.program;\n    const checker = program.getTypeChecker();\n    const scriptTarget = getEmitScriptTarget(program.getCompilerOptions());\n    const isJs = isInJSFile(enclosingDeclaration);\n    const flags = 1 | 256 | 524288 | (quotePreference === 0 ? 268435456 : 0);\n    const signatureDeclaration = checker.signatureToSignatureDeclaration(signature, kind, enclosingDeclaration, flags, getNoopSymbolTrackerWithResolver(context));\n    if (!signatureDeclaration) {\n      return void 0;\n    }\n    let typeParameters = isJs ? void 0 : signatureDeclaration.typeParameters;\n    let parameters = signatureDeclaration.parameters;\n    let type = isJs ? void 0 : signatureDeclaration.type;\n    if (importAdder) {\n      if (typeParameters) {\n        const newTypeParameters = sameMap(typeParameters, (typeParameterDecl) => {\n          let constraint = typeParameterDecl.constraint;\n          let defaultType = typeParameterDecl.default;\n          if (constraint) {\n            const importableReference = tryGetAutoImportableReferenceFromTypeNode(constraint, scriptTarget);\n            if (importableReference) {\n              constraint = importableReference.typeNode;\n              importSymbols(importAdder, importableReference.symbols);\n            }\n          }\n          if (defaultType) {\n            const importableReference = tryGetAutoImportableReferenceFromTypeNode(defaultType, scriptTarget);\n            if (importableReference) {\n              defaultType = importableReference.typeNode;\n              importSymbols(importAdder, importableReference.symbols);\n            }\n          }\n          return factory.updateTypeParameterDeclaration(typeParameterDecl, typeParameterDecl.modifiers, typeParameterDecl.name, constraint, defaultType);\n        });\n        if (typeParameters !== newTypeParameters) {\n          typeParameters = setTextRange(factory.createNodeArray(newTypeParameters, typeParameters.hasTrailingComma), typeParameters);\n        }\n      }\n      const newParameters = sameMap(parameters, (parameterDecl) => {\n        let type2 = isJs ? void 0 : parameterDecl.type;\n        if (type2) {\n          const importableReference = tryGetAutoImportableReferenceFromTypeNode(type2, scriptTarget);\n          if (importableReference) {\n            type2 = importableReference.typeNode;\n            importSymbols(importAdder, importableReference.symbols);\n          }\n        }\n        return factory.updateParameterDeclaration(parameterDecl, parameterDecl.modifiers, parameterDecl.dotDotDotToken, parameterDecl.name, isJs ? void 0 : parameterDecl.questionToken, type2, parameterDecl.initializer);\n      });\n      if (parameters !== newParameters) {\n        parameters = setTextRange(factory.createNodeArray(newParameters, parameters.hasTrailingComma), parameters);\n      }\n      if (type) {\n        const importableReference = tryGetAutoImportableReferenceFromTypeNode(type, scriptTarget);\n        if (importableReference) {\n          type = importableReference.typeNode;\n          importSymbols(importAdder, importableReference.symbols);\n        }\n      }\n    }\n    const questionToken = optional ? factory.createToken(57) : void 0;\n    const asteriskToken = signatureDeclaration.asteriskToken;\n    if (isFunctionExpression(signatureDeclaration)) {\n      return factory.updateFunctionExpression(signatureDeclaration, modifiers, signatureDeclaration.asteriskToken, tryCast(name, isIdentifier), typeParameters, parameters, type, body != null ? body : signatureDeclaration.body);\n    }\n    if (isArrowFunction(signatureDeclaration)) {\n      return factory.updateArrowFunction(signatureDeclaration, modifiers, typeParameters, parameters, type, signatureDeclaration.equalsGreaterThanToken, body != null ? body : signatureDeclaration.body);\n    }\n    if (isMethodDeclaration(signatureDeclaration)) {\n      return factory.updateMethodDeclaration(signatureDeclaration, modifiers, asteriskToken, name != null ? name : factory.createIdentifier(\"\"), questionToken, typeParameters, parameters, type, body);\n    }\n    if (isFunctionDeclaration(signatureDeclaration)) {\n      return factory.updateFunctionDeclaration(signatureDeclaration, modifiers, signatureDeclaration.asteriskToken, tryCast(name, isIdentifier), typeParameters, parameters, type, body != null ? body : signatureDeclaration.body);\n    }\n    return void 0;\n  }\n  function createSignatureDeclarationFromCallExpression(kind, context, importAdder, call, name, modifierFlags, contextNode) {\n    const quotePreference = getQuotePreference(context.sourceFile, context.preferences);\n    const scriptTarget = getEmitScriptTarget(context.program.getCompilerOptions());\n    const tracker = getNoopSymbolTrackerWithResolver(context);\n    const checker = context.program.getTypeChecker();\n    const isJs = isInJSFile(contextNode);\n    const { typeArguments, arguments: args, parent: parent2 } = call;\n    const contextualType = isJs ? void 0 : checker.getContextualType(call);\n    const names = map(args, (arg) => isIdentifier(arg) ? arg.text : isPropertyAccessExpression(arg) && isIdentifier(arg.name) ? arg.name.text : void 0);\n    const instanceTypes = isJs ? [] : map(args, (arg) => checker.getTypeAtLocation(arg));\n    const { argumentTypeNodes, argumentTypeParameters } = getArgumentTypesAndTypeParameters(checker, importAdder, instanceTypes, contextNode, scriptTarget, void 0, tracker);\n    const modifiers = modifierFlags ? factory.createNodeArray(factory.createModifiersFromModifierFlags(modifierFlags)) : void 0;\n    const asteriskToken = isYieldExpression(parent2) ? factory.createToken(41) : void 0;\n    const typeParameters = isJs ? void 0 : createTypeParametersForArguments(checker, argumentTypeParameters, typeArguments);\n    const parameters = createDummyParameters(args.length, names, argumentTypeNodes, void 0, isJs);\n    const type = isJs || contextualType === void 0 ? void 0 : checker.typeToTypeNode(contextualType, contextNode, void 0, tracker);\n    switch (kind) {\n      case 171:\n        return factory.createMethodDeclaration(modifiers, asteriskToken, name, void 0, typeParameters, parameters, type, createStubbedMethodBody(quotePreference));\n      case 170:\n        return factory.createMethodSignature(modifiers, name, void 0, typeParameters, parameters, type === void 0 ? factory.createKeywordTypeNode(157) : type);\n      case 259:\n        return factory.createFunctionDeclaration(modifiers, asteriskToken, name, typeParameters, parameters, type, createStubbedBody(Diagnostics.Function_not_implemented.message, quotePreference));\n      default:\n        Debug.fail(\"Unexpected kind\");\n    }\n  }\n  function createTypeParametersForArguments(checker, argumentTypeParameters, typeArguments) {\n    const usedNames = new Set(argumentTypeParameters.map((pair) => pair[0]));\n    const constraintsByName = new Map(argumentTypeParameters);\n    if (typeArguments) {\n      const typeArgumentsWithNewTypes = typeArguments.filter((typeArgument) => !argumentTypeParameters.some((pair) => {\n        var _a2;\n        return checker.getTypeAtLocation(typeArgument) === ((_a2 = pair[1]) == null ? void 0 : _a2.argumentType);\n      }));\n      const targetSize = usedNames.size + typeArgumentsWithNewTypes.length;\n      for (let i = 0; usedNames.size < targetSize; i += 1) {\n        usedNames.add(createTypeParameterName(i));\n      }\n    }\n    return arrayFrom(usedNames.values(), (usedName) => {\n      var _a2;\n      return factory.createTypeParameterDeclaration(void 0, usedName, (_a2 = constraintsByName.get(usedName)) == null ? void 0 : _a2.constraint);\n    });\n  }\n  function createTypeParameterName(index) {\n    return 84 + index <= 90 ? String.fromCharCode(84 + index) : `T${index}`;\n  }\n  function typeToAutoImportableTypeNode(checker, importAdder, type, contextNode, scriptTarget, flags, tracker) {\n    let typeNode = checker.typeToTypeNode(type, contextNode, flags, tracker);\n    if (typeNode && isImportTypeNode(typeNode)) {\n      const importableReference = tryGetAutoImportableReferenceFromTypeNode(typeNode, scriptTarget);\n      if (importableReference) {\n        importSymbols(importAdder, importableReference.symbols);\n        typeNode = importableReference.typeNode;\n      }\n    }\n    return getSynthesizedDeepClone(typeNode);\n  }\n  function typeContainsTypeParameter(type) {\n    if (type.isUnionOrIntersection()) {\n      return type.types.some(typeContainsTypeParameter);\n    }\n    return type.flags & 262144;\n  }\n  function getArgumentTypesAndTypeParameters(checker, importAdder, instanceTypes, contextNode, scriptTarget, flags, tracker) {\n    const argumentTypeNodes = [];\n    const argumentTypeParameters = /* @__PURE__ */ new Map();\n    for (let i = 0; i < instanceTypes.length; i += 1) {\n      const instanceType = instanceTypes[i];\n      if (instanceType.isUnionOrIntersection() && instanceType.types.some(typeContainsTypeParameter)) {\n        const synthesizedTypeParameterName = createTypeParameterName(i);\n        argumentTypeNodes.push(factory.createTypeReferenceNode(synthesizedTypeParameterName));\n        argumentTypeParameters.set(synthesizedTypeParameterName, void 0);\n        continue;\n      }\n      const widenedInstanceType = checker.getBaseTypeOfLiteralType(instanceType);\n      const argumentTypeNode = typeToAutoImportableTypeNode(checker, importAdder, widenedInstanceType, contextNode, scriptTarget, flags, tracker);\n      if (!argumentTypeNode) {\n        continue;\n      }\n      argumentTypeNodes.push(argumentTypeNode);\n      const argumentTypeParameter = getFirstTypeParameterName(instanceType);\n      const instanceTypeConstraint = instanceType.isTypeParameter() && instanceType.constraint && !isAnonymousObjectConstraintType(instanceType.constraint) ? typeToAutoImportableTypeNode(checker, importAdder, instanceType.constraint, contextNode, scriptTarget, flags, tracker) : void 0;\n      if (argumentTypeParameter) {\n        argumentTypeParameters.set(argumentTypeParameter, { argumentType: instanceType, constraint: instanceTypeConstraint });\n      }\n    }\n    return { argumentTypeNodes, argumentTypeParameters: arrayFrom(argumentTypeParameters.entries()) };\n  }\n  function isAnonymousObjectConstraintType(type) {\n    return type.flags & 524288 && type.objectFlags === 16;\n  }\n  function getFirstTypeParameterName(type) {\n    var _a2;\n    if (type.flags & (1048576 | 2097152)) {\n      for (const subType of type.types) {\n        const subTypeName = getFirstTypeParameterName(subType);\n        if (subTypeName) {\n          return subTypeName;\n        }\n      }\n    }\n    return type.flags & 262144 ? (_a2 = type.getSymbol()) == null ? void 0 : _a2.getName() : void 0;\n  }\n  function createDummyParameters(argCount, names, types, minArgumentCount, inJs) {\n    const parameters = [];\n    const parameterNameCounts = /* @__PURE__ */ new Map();\n    for (let i = 0; i < argCount; i++) {\n      const parameterName = (names == null ? void 0 : names[i]) || `arg${i}`;\n      const parameterNameCount = parameterNameCounts.get(parameterName);\n      parameterNameCounts.set(parameterName, (parameterNameCount || 0) + 1);\n      const newParameter = factory.createParameterDeclaration(void 0, void 0, parameterName + (parameterNameCount || \"\"), minArgumentCount !== void 0 && i >= minArgumentCount ? factory.createToken(57) : void 0, inJs ? void 0 : (types == null ? void 0 : types[i]) || factory.createKeywordTypeNode(157), void 0);\n      parameters.push(newParameter);\n    }\n    return parameters;\n  }\n  function createMethodImplementingSignatures(checker, context, enclosingDeclaration, signatures, name, optional, modifiers, quotePreference, body) {\n    let maxArgsSignature = signatures[0];\n    let minArgumentCount = signatures[0].minArgumentCount;\n    let someSigHasRestParameter = false;\n    for (const sig of signatures) {\n      minArgumentCount = Math.min(sig.minArgumentCount, minArgumentCount);\n      if (signatureHasRestParameter(sig)) {\n        someSigHasRestParameter = true;\n      }\n      if (sig.parameters.length >= maxArgsSignature.parameters.length && (!signatureHasRestParameter(sig) || signatureHasRestParameter(maxArgsSignature))) {\n        maxArgsSignature = sig;\n      }\n    }\n    const maxNonRestArgs = maxArgsSignature.parameters.length - (signatureHasRestParameter(maxArgsSignature) ? 1 : 0);\n    const maxArgsParameterSymbolNames = maxArgsSignature.parameters.map((symbol) => symbol.name);\n    const parameters = createDummyParameters(maxNonRestArgs, maxArgsParameterSymbolNames, void 0, minArgumentCount, false);\n    if (someSigHasRestParameter) {\n      const restParameter = factory.createParameterDeclaration(void 0, factory.createToken(25), maxArgsParameterSymbolNames[maxNonRestArgs] || \"rest\", maxNonRestArgs >= minArgumentCount ? factory.createToken(57) : void 0, factory.createArrayTypeNode(factory.createKeywordTypeNode(157)), void 0);\n      parameters.push(restParameter);\n    }\n    return createStubbedMethod(modifiers, name, optional, void 0, parameters, getReturnTypeFromSignatures(signatures, checker, context, enclosingDeclaration), quotePreference, body);\n  }\n  function getReturnTypeFromSignatures(signatures, checker, context, enclosingDeclaration) {\n    if (length(signatures)) {\n      const type = checker.getUnionType(map(signatures, checker.getReturnTypeOfSignature));\n      return checker.typeToTypeNode(type, enclosingDeclaration, 1, getNoopSymbolTrackerWithResolver(context));\n    }\n  }\n  function createStubbedMethod(modifiers, name, optional, typeParameters, parameters, returnType, quotePreference, body) {\n    return factory.createMethodDeclaration(modifiers, void 0, name, optional ? factory.createToken(57) : void 0, typeParameters, parameters, returnType, body || createStubbedMethodBody(quotePreference));\n  }\n  function createStubbedMethodBody(quotePreference) {\n    return createStubbedBody(Diagnostics.Method_not_implemented.message, quotePreference);\n  }\n  function createStubbedBody(text, quotePreference) {\n    return factory.createBlock([factory.createThrowStatement(factory.createNewExpression(factory.createIdentifier(\"Error\"), void 0, [factory.createStringLiteral(text, quotePreference === 0)]))], true);\n  }\n  function setJsonCompilerOptionValues(changeTracker, configFile, options) {\n    const tsconfigObjectLiteral = getTsConfigObjectLiteralExpression(configFile);\n    if (!tsconfigObjectLiteral)\n      return void 0;\n    const compilerOptionsProperty = findJsonProperty(tsconfigObjectLiteral, \"compilerOptions\");\n    if (compilerOptionsProperty === void 0) {\n      changeTracker.insertNodeAtObjectStart(configFile, tsconfigObjectLiteral, createJsonPropertyAssignment(\"compilerOptions\", factory.createObjectLiteralExpression(options.map(([optionName, optionValue]) => createJsonPropertyAssignment(optionName, optionValue)), true)));\n      return;\n    }\n    const compilerOptions = compilerOptionsProperty.initializer;\n    if (!isObjectLiteralExpression(compilerOptions)) {\n      return;\n    }\n    for (const [optionName, optionValue] of options) {\n      const optionProperty = findJsonProperty(compilerOptions, optionName);\n      if (optionProperty === void 0) {\n        changeTracker.insertNodeAtObjectStart(configFile, compilerOptions, createJsonPropertyAssignment(optionName, optionValue));\n      } else {\n        changeTracker.replaceNode(configFile, optionProperty.initializer, optionValue);\n      }\n    }\n  }\n  function setJsonCompilerOptionValue(changeTracker, configFile, optionName, optionValue) {\n    setJsonCompilerOptionValues(changeTracker, configFile, [[optionName, optionValue]]);\n  }\n  function createJsonPropertyAssignment(name, initializer) {\n    return factory.createPropertyAssignment(factory.createStringLiteral(name), initializer);\n  }\n  function findJsonProperty(obj, name) {\n    return find(obj.properties, (p) => isPropertyAssignment(p) && !!p.name && isStringLiteral(p.name) && p.name.text === name);\n  }\n  function tryGetAutoImportableReferenceFromTypeNode(importTypeNode, scriptTarget) {\n    let symbols;\n    const typeNode = visitNode(importTypeNode, visit, isTypeNode);\n    if (symbols && typeNode) {\n      return { typeNode, symbols };\n    }\n    function visit(node) {\n      if (isLiteralImportTypeNode(node) && node.qualifier) {\n        const firstIdentifier = getFirstIdentifier(node.qualifier);\n        const name = getNameForExportedSymbol(firstIdentifier.symbol, scriptTarget);\n        const qualifier = name !== firstIdentifier.text ? replaceFirstIdentifierOfEntityName(node.qualifier, factory.createIdentifier(name)) : node.qualifier;\n        symbols = append(symbols, firstIdentifier.symbol);\n        const typeArguments = visitNodes2(node.typeArguments, visit, isTypeNode);\n        return factory.createTypeReferenceNode(qualifier, typeArguments);\n      }\n      return visitEachChild(node, visit, nullTransformationContext);\n    }\n  }\n  function replaceFirstIdentifierOfEntityName(name, newIdentifier) {\n    if (name.kind === 79) {\n      return newIdentifier;\n    }\n    return factory.createQualifiedName(replaceFirstIdentifierOfEntityName(name.left, newIdentifier), name.right);\n  }\n  function importSymbols(importAdder, symbols) {\n    symbols.forEach((s) => importAdder.addImportFromExportedSymbol(s, true));\n  }\n  function findAncestorMatchingSpan(sourceFile, span) {\n    const end = textSpanEnd(span);\n    let token = getTokenAtPosition(sourceFile, span.start);\n    while (token.end < end) {\n      token = token.parent;\n    }\n    return token;\n  }\n  var PreserveOptionalFlags;\n  var init_helpers = __esm({\n    \"src/services/codefixes/helpers.ts\"() {\n      \"use strict\";\n      init_ts4();\n      PreserveOptionalFlags = /* @__PURE__ */ ((PreserveOptionalFlags2) => {\n        PreserveOptionalFlags2[PreserveOptionalFlags2[\"Method\"] = 1] = \"Method\";\n        PreserveOptionalFlags2[PreserveOptionalFlags2[\"Property\"] = 2] = \"Property\";\n        PreserveOptionalFlags2[PreserveOptionalFlags2[\"All\"] = 3] = \"All\";\n        return PreserveOptionalFlags2;\n      })(PreserveOptionalFlags || {});\n    }\n  });\n  function generateAccessorFromProperty(file, program, start, end, context, _actionName) {\n    const fieldInfo = getAccessorConvertiblePropertyAtPosition(file, program, start, end);\n    if (!fieldInfo || ts_refactor_exports.isRefactorErrorInfo(fieldInfo))\n      return void 0;\n    const changeTracker = ts_textChanges_exports.ChangeTracker.fromContext(context);\n    const { isStatic: isStatic2, isReadonly, fieldName, accessorName, originalName, type, container, declaration } = fieldInfo;\n    suppressLeadingAndTrailingTrivia(fieldName);\n    suppressLeadingAndTrailingTrivia(accessorName);\n    suppressLeadingAndTrailingTrivia(declaration);\n    suppressLeadingAndTrailingTrivia(container);\n    let accessorModifiers;\n    let fieldModifiers;\n    if (isClassLike(container)) {\n      const modifierFlags = getEffectiveModifierFlags(declaration);\n      if (isSourceFileJS(file)) {\n        const modifiers = factory.createModifiersFromModifierFlags(modifierFlags);\n        accessorModifiers = modifiers;\n        fieldModifiers = modifiers;\n      } else {\n        accessorModifiers = factory.createModifiersFromModifierFlags(prepareModifierFlagsForAccessor(modifierFlags));\n        fieldModifiers = factory.createModifiersFromModifierFlags(prepareModifierFlagsForField(modifierFlags));\n      }\n      if (canHaveDecorators(declaration)) {\n        fieldModifiers = concatenate(getDecorators(declaration), fieldModifiers);\n      }\n    }\n    updateFieldDeclaration(changeTracker, file, declaration, type, fieldName, fieldModifiers);\n    const getAccessor = generateGetAccessor(fieldName, accessorName, type, accessorModifiers, isStatic2, container);\n    suppressLeadingAndTrailingTrivia(getAccessor);\n    insertAccessor(changeTracker, file, getAccessor, declaration, container);\n    if (isReadonly) {\n      const constructor = getFirstConstructorWithBody(container);\n      if (constructor) {\n        updateReadonlyPropertyInitializerStatementConstructor(changeTracker, file, constructor, fieldName.text, originalName);\n      }\n    } else {\n      const setAccessor = generateSetAccessor(fieldName, accessorName, type, accessorModifiers, isStatic2, container);\n      suppressLeadingAndTrailingTrivia(setAccessor);\n      insertAccessor(changeTracker, file, setAccessor, declaration, container);\n    }\n    return changeTracker.getChanges();\n  }\n  function isConvertibleName(name) {\n    return isIdentifier(name) || isStringLiteral(name);\n  }\n  function isAcceptedDeclaration(node) {\n    return isParameterPropertyDeclaration(node, node.parent) || isPropertyDeclaration(node) || isPropertyAssignment(node);\n  }\n  function createPropertyName(name, originalName) {\n    return isIdentifier(originalName) ? factory.createIdentifier(name) : factory.createStringLiteral(name);\n  }\n  function createAccessorAccessExpression(fieldName, isStatic2, container) {\n    const leftHead = isStatic2 ? container.name : factory.createThis();\n    return isIdentifier(fieldName) ? factory.createPropertyAccessExpression(leftHead, fieldName) : factory.createElementAccessExpression(leftHead, factory.createStringLiteralFromNode(fieldName));\n  }\n  function prepareModifierFlagsForAccessor(modifierFlags) {\n    modifierFlags &= ~64;\n    modifierFlags &= ~8;\n    if (!(modifierFlags & 16)) {\n      modifierFlags |= 4;\n    }\n    return modifierFlags;\n  }\n  function prepareModifierFlagsForField(modifierFlags) {\n    modifierFlags &= ~4;\n    modifierFlags &= ~16;\n    modifierFlags |= 8;\n    return modifierFlags;\n  }\n  function getAccessorConvertiblePropertyAtPosition(file, program, start, end, considerEmptySpans = true) {\n    const node = getTokenAtPosition(file, start);\n    const cursorRequest = start === end && considerEmptySpans;\n    const declaration = findAncestor(node.parent, isAcceptedDeclaration);\n    const meaning = 28 | 32 | 64;\n    if (!declaration || !(nodeOverlapsWithStartEnd(declaration.name, file, start, end) || cursorRequest)) {\n      return {\n        error: getLocaleSpecificMessage(Diagnostics.Could_not_find_property_for_which_to_generate_accessor)\n      };\n    }\n    if (!isConvertibleName(declaration.name)) {\n      return {\n        error: getLocaleSpecificMessage(Diagnostics.Name_is_not_valid)\n      };\n    }\n    if ((getEffectiveModifierFlags(declaration) & 126975 | meaning) !== meaning) {\n      return {\n        error: getLocaleSpecificMessage(Diagnostics.Can_only_convert_property_with_modifier)\n      };\n    }\n    const name = declaration.name.text;\n    const startWithUnderscore = startsWithUnderscore(name);\n    const fieldName = createPropertyName(startWithUnderscore ? name : getUniqueName(`_${name}`, file), declaration.name);\n    const accessorName = createPropertyName(startWithUnderscore ? getUniqueName(name.substring(1), file) : name, declaration.name);\n    return {\n      isStatic: hasStaticModifier(declaration),\n      isReadonly: hasEffectiveReadonlyModifier(declaration),\n      type: getDeclarationType(declaration, program),\n      container: declaration.kind === 166 ? declaration.parent.parent : declaration.parent,\n      originalName: declaration.name.text,\n      declaration,\n      fieldName,\n      accessorName,\n      renameAccessor: startWithUnderscore\n    };\n  }\n  function generateGetAccessor(fieldName, accessorName, type, modifiers, isStatic2, container) {\n    return factory.createGetAccessorDeclaration(modifiers, accessorName, [], type, factory.createBlock([\n      factory.createReturnStatement(createAccessorAccessExpression(fieldName, isStatic2, container))\n    ], true));\n  }\n  function generateSetAccessor(fieldName, accessorName, type, modifiers, isStatic2, container) {\n    return factory.createSetAccessorDeclaration(modifiers, accessorName, [factory.createParameterDeclaration(void 0, void 0, factory.createIdentifier(\"value\"), void 0, type)], factory.createBlock([\n      factory.createExpressionStatement(factory.createAssignment(createAccessorAccessExpression(fieldName, isStatic2, container), factory.createIdentifier(\"value\")))\n    ], true));\n  }\n  function updatePropertyDeclaration(changeTracker, file, declaration, type, fieldName, modifiers) {\n    const property = factory.updatePropertyDeclaration(declaration, modifiers, fieldName, declaration.questionToken || declaration.exclamationToken, type, declaration.initializer);\n    changeTracker.replaceNode(file, declaration, property);\n  }\n  function updatePropertyAssignmentDeclaration(changeTracker, file, declaration, fieldName) {\n    let assignment = factory.updatePropertyAssignment(declaration, fieldName, declaration.initializer);\n    if (assignment.modifiers || assignment.questionToken || assignment.exclamationToken) {\n      if (assignment === declaration)\n        assignment = factory.cloneNode(assignment);\n      assignment.modifiers = void 0;\n      assignment.questionToken = void 0;\n      assignment.exclamationToken = void 0;\n    }\n    changeTracker.replacePropertyAssignment(file, declaration, assignment);\n  }\n  function updateFieldDeclaration(changeTracker, file, declaration, type, fieldName, modifiers) {\n    if (isPropertyDeclaration(declaration)) {\n      updatePropertyDeclaration(changeTracker, file, declaration, type, fieldName, modifiers);\n    } else if (isPropertyAssignment(declaration)) {\n      updatePropertyAssignmentDeclaration(changeTracker, file, declaration, fieldName);\n    } else {\n      changeTracker.replaceNode(file, declaration, factory.updateParameterDeclaration(declaration, modifiers, declaration.dotDotDotToken, cast(fieldName, isIdentifier), declaration.questionToken, declaration.type, declaration.initializer));\n    }\n  }\n  function insertAccessor(changeTracker, file, accessor, declaration, container) {\n    isParameterPropertyDeclaration(declaration, declaration.parent) ? changeTracker.insertMemberAtStart(file, container, accessor) : isPropertyAssignment(declaration) ? changeTracker.insertNodeAfterComma(file, declaration, accessor) : changeTracker.insertNodeAfter(file, declaration, accessor);\n  }\n  function updateReadonlyPropertyInitializerStatementConstructor(changeTracker, file, constructor, fieldName, originalName) {\n    if (!constructor.body)\n      return;\n    constructor.body.forEachChild(function recur(node) {\n      if (isElementAccessExpression(node) && node.expression.kind === 108 && isStringLiteral(node.argumentExpression) && node.argumentExpression.text === originalName && isWriteAccess(node)) {\n        changeTracker.replaceNode(file, node.argumentExpression, factory.createStringLiteral(fieldName));\n      }\n      if (isPropertyAccessExpression(node) && node.expression.kind === 108 && node.name.text === originalName && isWriteAccess(node)) {\n        changeTracker.replaceNode(file, node.name, factory.createIdentifier(fieldName));\n      }\n      if (!isFunctionLike(node) && !isClassLike(node)) {\n        node.forEachChild(recur);\n      }\n    });\n  }\n  function getDeclarationType(declaration, program) {\n    const typeNode = getTypeAnnotationNode(declaration);\n    if (isPropertyDeclaration(declaration) && typeNode && declaration.questionToken) {\n      const typeChecker = program.getTypeChecker();\n      const type = typeChecker.getTypeFromTypeNode(typeNode);\n      if (!typeChecker.isTypeAssignableTo(typeChecker.getUndefinedType(), type)) {\n        const types = isUnionTypeNode(typeNode) ? typeNode.types : [typeNode];\n        return factory.createUnionTypeNode([...types, factory.createKeywordTypeNode(155)]);\n      }\n    }\n    return typeNode;\n  }\n  function getAllSupers(decl, checker) {\n    const res = [];\n    while (decl) {\n      const superElement = getClassExtendsHeritageElement(decl);\n      const superSymbol = superElement && checker.getSymbolAtLocation(superElement.expression);\n      if (!superSymbol)\n        break;\n      const symbol = superSymbol.flags & 2097152 ? checker.getAliasedSymbol(superSymbol) : superSymbol;\n      const superDecl = symbol.declarations && find(symbol.declarations, isClassLike);\n      if (!superDecl)\n        break;\n      res.push(superDecl);\n      decl = superDecl;\n    }\n    return res;\n  }\n  var init_generateAccessors = __esm({\n    \"src/services/codefixes/generateAccessors.ts\"() {\n      \"use strict\";\n      init_ts4();\n    }\n  });\n  function getCodeFixesForImportDeclaration(context, node) {\n    const sourceFile = getSourceFileOfNode(node);\n    const namespace = getNamespaceDeclarationNode(node);\n    const opts = context.program.getCompilerOptions();\n    const variations = [];\n    variations.push(createAction(context, sourceFile, node, makeImport(namespace.name, void 0, node.moduleSpecifier, getQuotePreference(sourceFile, context.preferences))));\n    if (getEmitModuleKind(opts) === 1) {\n      variations.push(createAction(context, sourceFile, node, factory.createImportEqualsDeclaration(void 0, false, namespace.name, factory.createExternalModuleReference(node.moduleSpecifier))));\n    }\n    return variations;\n  }\n  function createAction(context, sourceFile, node, replacement) {\n    const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => t.replaceNode(sourceFile, node, replacement));\n    return createCodeFixActionWithoutFixAll(fixName5, changes, [Diagnostics.Replace_import_with_0, changes[0].textChanges[0].newText]);\n  }\n  function getActionsForUsageOfInvalidImport(context) {\n    const sourceFile = context.sourceFile;\n    const targetKind = Diagnostics.This_expression_is_not_callable.code === context.errorCode ? 210 : 211;\n    const node = findAncestor(getTokenAtPosition(sourceFile, context.span.start), (a) => a.kind === targetKind);\n    if (!node) {\n      return [];\n    }\n    const expr = node.expression;\n    return getImportCodeFixesForExpression(context, expr);\n  }\n  function getActionsForInvalidImportLocation(context) {\n    const sourceFile = context.sourceFile;\n    const node = findAncestor(getTokenAtPosition(sourceFile, context.span.start), (a) => a.getStart() === context.span.start && a.getEnd() === context.span.start + context.span.length);\n    if (!node) {\n      return [];\n    }\n    return getImportCodeFixesForExpression(context, node);\n  }\n  function getImportCodeFixesForExpression(context, expr) {\n    const type = context.program.getTypeChecker().getTypeAtLocation(expr);\n    if (!(type.symbol && isTransientSymbol(type.symbol) && type.symbol.links.originatingImport)) {\n      return [];\n    }\n    const fixes = [];\n    const relatedImport = type.symbol.links.originatingImport;\n    if (!isImportCall(relatedImport)) {\n      addRange(fixes, getCodeFixesForImportDeclaration(context, relatedImport));\n    }\n    if (isExpression(expr) && !(isNamedDeclaration(expr.parent) && expr.parent.name === expr)) {\n      const sourceFile = context.sourceFile;\n      const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => t.replaceNode(sourceFile, expr, factory.createPropertyAccessExpression(expr, \"default\"), {}));\n      fixes.push(createCodeFixActionWithoutFixAll(fixName5, changes, Diagnostics.Use_synthetic_default_member));\n    }\n    return fixes;\n  }\n  var fixName5;\n  var init_fixInvalidImportSyntax = __esm({\n    \"src/services/codefixes/fixInvalidImportSyntax.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixName5 = \"invalidImportSyntax\";\n      registerCodeFix({\n        errorCodes: [\n          Diagnostics.This_expression_is_not_callable.code,\n          Diagnostics.This_expression_is_not_constructable.code\n        ],\n        getCodeActions: getActionsForUsageOfInvalidImport\n      });\n      registerCodeFix({\n        errorCodes: [\n          Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,\n          Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code,\n          Diagnostics.Type_0_is_not_assignable_to_type_1.code,\n          Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,\n          Diagnostics.Type_predicate_0_is_not_assignable_to_1.code,\n          Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,\n          Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3.code,\n          Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,\n          Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,\n          Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,\n          Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code\n        ],\n        getCodeActions: getActionsForInvalidImportLocation\n      });\n    }\n  });\n  function getInfo13(sourceFile, pos) {\n    const token = getTokenAtPosition(sourceFile, pos);\n    if (isIdentifier(token) && isPropertyDeclaration(token.parent)) {\n      const type = getEffectiveTypeAnnotationNode(token.parent);\n      if (type) {\n        return { type, prop: token.parent, isJs: isInJSFile(token.parent) };\n      }\n    }\n    return void 0;\n  }\n  function getActionForAddMissingDefiniteAssignmentAssertion(context, info) {\n    if (info.isJs)\n      return void 0;\n    const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => addDefiniteAssignmentAssertion(t, context.sourceFile, info.prop));\n    return createCodeFixAction(fixName6, changes, [Diagnostics.Add_definite_assignment_assertion_to_property_0, info.prop.getText()], fixIdAddDefiniteAssignmentAssertions, Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties);\n  }\n  function addDefiniteAssignmentAssertion(changeTracker, propertyDeclarationSourceFile, propertyDeclaration) {\n    suppressLeadingAndTrailingTrivia(propertyDeclaration);\n    const property = factory.updatePropertyDeclaration(propertyDeclaration, propertyDeclaration.modifiers, propertyDeclaration.name, factory.createToken(53), propertyDeclaration.type, propertyDeclaration.initializer);\n    changeTracker.replaceNode(propertyDeclarationSourceFile, propertyDeclaration, property);\n  }\n  function getActionForAddMissingUndefinedType(context, info) {\n    const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => addUndefinedType(t, context.sourceFile, info));\n    return createCodeFixAction(fixName6, changes, [Diagnostics.Add_undefined_type_to_property_0, info.prop.name.getText()], fixIdAddUndefinedType, Diagnostics.Add_undefined_type_to_all_uninitialized_properties);\n  }\n  function addUndefinedType(changeTracker, sourceFile, info) {\n    const undefinedTypeNode = factory.createKeywordTypeNode(155);\n    const types = isUnionTypeNode(info.type) ? info.type.types.concat(undefinedTypeNode) : [info.type, undefinedTypeNode];\n    const unionTypeNode = factory.createUnionTypeNode(types);\n    if (info.isJs) {\n      changeTracker.addJSDocTags(sourceFile, info.prop, [factory.createJSDocTypeTag(void 0, factory.createJSDocTypeExpression(unionTypeNode))]);\n    } else {\n      changeTracker.replaceNode(sourceFile, info.type, unionTypeNode);\n    }\n  }\n  function getActionForAddMissingInitializer(context, info) {\n    if (info.isJs)\n      return void 0;\n    const checker = context.program.getTypeChecker();\n    const initializer = getInitializer(checker, info.prop);\n    if (!initializer)\n      return void 0;\n    const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => addInitializer(t, context.sourceFile, info.prop, initializer));\n    return createCodeFixAction(fixName6, changes, [Diagnostics.Add_initializer_to_property_0, info.prop.name.getText()], fixIdAddInitializer, Diagnostics.Add_initializers_to_all_uninitialized_properties);\n  }\n  function addInitializer(changeTracker, propertyDeclarationSourceFile, propertyDeclaration, initializer) {\n    suppressLeadingAndTrailingTrivia(propertyDeclaration);\n    const property = factory.updatePropertyDeclaration(propertyDeclaration, propertyDeclaration.modifiers, propertyDeclaration.name, propertyDeclaration.questionToken, propertyDeclaration.type, initializer);\n    changeTracker.replaceNode(propertyDeclarationSourceFile, propertyDeclaration, property);\n  }\n  function getInitializer(checker, propertyDeclaration) {\n    return getDefaultValueFromType(checker, checker.getTypeFromTypeNode(propertyDeclaration.type));\n  }\n  function getDefaultValueFromType(checker, type) {\n    if (type.flags & 512) {\n      return type === checker.getFalseType() || type === checker.getFalseType(true) ? factory.createFalse() : factory.createTrue();\n    } else if (type.isStringLiteral()) {\n      return factory.createStringLiteral(type.value);\n    } else if (type.isNumberLiteral()) {\n      return factory.createNumericLiteral(type.value);\n    } else if (type.flags & 2048) {\n      return factory.createBigIntLiteral(type.value);\n    } else if (type.isUnion()) {\n      return firstDefined(type.types, (t) => getDefaultValueFromType(checker, t));\n    } else if (type.isClass()) {\n      const classDeclaration = getClassLikeDeclarationOfSymbol(type.symbol);\n      if (!classDeclaration || hasSyntacticModifier(classDeclaration, 256))\n        return void 0;\n      const constructorDeclaration = getFirstConstructorWithBody(classDeclaration);\n      if (constructorDeclaration && constructorDeclaration.parameters.length)\n        return void 0;\n      return factory.createNewExpression(factory.createIdentifier(type.symbol.name), void 0, void 0);\n    } else if (checker.isArrayLikeType(type)) {\n      return factory.createArrayLiteralExpression();\n    }\n    return void 0;\n  }\n  var fixName6, fixIdAddDefiniteAssignmentAssertions, fixIdAddUndefinedType, fixIdAddInitializer, errorCodes50;\n  var init_fixStrictClassInitialization = __esm({\n    \"src/services/codefixes/fixStrictClassInitialization.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixName6 = \"strictClassInitialization\";\n      fixIdAddDefiniteAssignmentAssertions = \"addMissingPropertyDefiniteAssignmentAssertions\";\n      fixIdAddUndefinedType = \"addMissingPropertyUndefinedType\";\n      fixIdAddInitializer = \"addMissingPropertyInitializer\";\n      errorCodes50 = [Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];\n      registerCodeFix({\n        errorCodes: errorCodes50,\n        getCodeActions: function getCodeActionsForStrictClassInitializationErrors(context) {\n          const info = getInfo13(context.sourceFile, context.span.start);\n          if (!info)\n            return;\n          const result = [];\n          append(result, getActionForAddMissingUndefinedType(context, info));\n          append(result, getActionForAddMissingDefiniteAssignmentAssertion(context, info));\n          append(result, getActionForAddMissingInitializer(context, info));\n          return result;\n        },\n        fixIds: [fixIdAddDefiniteAssignmentAssertions, fixIdAddUndefinedType, fixIdAddInitializer],\n        getAllCodeActions: (context) => {\n          return codeFixAll(context, errorCodes50, (changes, diag2) => {\n            const info = getInfo13(diag2.file, diag2.start);\n            if (!info)\n              return;\n            switch (context.fixId) {\n              case fixIdAddDefiniteAssignmentAssertions:\n                addDefiniteAssignmentAssertion(changes, diag2.file, info.prop);\n                break;\n              case fixIdAddUndefinedType:\n                addUndefinedType(changes, diag2.file, info);\n                break;\n              case fixIdAddInitializer:\n                const checker = context.program.getTypeChecker();\n                const initializer = getInitializer(checker, info.prop);\n                if (!initializer)\n                  return;\n                addInitializer(changes, diag2.file, info.prop, initializer);\n                break;\n              default:\n                Debug.fail(JSON.stringify(context.fixId));\n            }\n          });\n        }\n      });\n    }\n  });\n  function doChange26(changes, sourceFile, info) {\n    const { allowSyntheticDefaults, defaultImportName, namedImports, statement, required } = info;\n    changes.replaceNode(sourceFile, statement, defaultImportName && !allowSyntheticDefaults ? factory.createImportEqualsDeclaration(void 0, false, defaultImportName, factory.createExternalModuleReference(required)) : factory.createImportDeclaration(void 0, factory.createImportClause(false, defaultImportName, namedImports), required, void 0));\n  }\n  function getInfo14(sourceFile, program, pos) {\n    const { parent: parent2 } = getTokenAtPosition(sourceFile, pos);\n    if (!isRequireCall(parent2, true)) {\n      throw Debug.failBadSyntaxKind(parent2);\n    }\n    const decl = cast(parent2.parent, isVariableDeclaration);\n    const defaultImportName = tryCast(decl.name, isIdentifier);\n    const namedImports = isObjectBindingPattern(decl.name) ? tryCreateNamedImportsFromObjectBindingPattern(decl.name) : void 0;\n    if (defaultImportName || namedImports) {\n      return {\n        allowSyntheticDefaults: getAllowSyntheticDefaultImports(program.getCompilerOptions()),\n        defaultImportName,\n        namedImports,\n        statement: cast(decl.parent.parent, isVariableStatement),\n        required: first(parent2.arguments)\n      };\n    }\n  }\n  function tryCreateNamedImportsFromObjectBindingPattern(node) {\n    const importSpecifiers = [];\n    for (const element of node.elements) {\n      if (!isIdentifier(element.name) || element.initializer) {\n        return void 0;\n      }\n      importSpecifiers.push(factory.createImportSpecifier(false, tryCast(element.propertyName, isIdentifier), element.name));\n    }\n    if (importSpecifiers.length) {\n      return factory.createNamedImports(importSpecifiers);\n    }\n  }\n  var fixId40, errorCodes51;\n  var init_requireInTs = __esm({\n    \"src/services/codefixes/requireInTs.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId40 = \"requireInTs\";\n      errorCodes51 = [Diagnostics.require_call_may_be_converted_to_an_import.code];\n      registerCodeFix({\n        errorCodes: errorCodes51,\n        getCodeActions(context) {\n          const info = getInfo14(context.sourceFile, context.program, context.span.start);\n          if (!info) {\n            return void 0;\n          }\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange26(t, context.sourceFile, info));\n          return [createCodeFixAction(fixId40, changes, Diagnostics.Convert_require_to_import, fixId40, Diagnostics.Convert_all_require_to_import)];\n        },\n        fixIds: [fixId40],\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes51, (changes, diag2) => {\n          const info = getInfo14(diag2.file, context.program, diag2.start);\n          if (info) {\n            doChange26(changes, context.sourceFile, info);\n          }\n        })\n      });\n    }\n  });\n  function getInfo15(sourceFile, pos) {\n    const name = getTokenAtPosition(sourceFile, pos);\n    if (!isIdentifier(name))\n      return void 0;\n    const { parent: parent2 } = name;\n    if (isImportEqualsDeclaration(parent2) && isExternalModuleReference(parent2.moduleReference)) {\n      return { importNode: parent2, name, moduleSpecifier: parent2.moduleReference.expression };\n    } else if (isNamespaceImport(parent2)) {\n      const importNode = parent2.parent.parent;\n      return { importNode, name, moduleSpecifier: importNode.moduleSpecifier };\n    }\n  }\n  function doChange27(changes, sourceFile, info, preferences) {\n    changes.replaceNode(sourceFile, info.importNode, makeImport(info.name, void 0, info.moduleSpecifier, getQuotePreference(sourceFile, preferences)));\n  }\n  var fixId41, errorCodes52;\n  var init_useDefaultImport = __esm({\n    \"src/services/codefixes/useDefaultImport.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId41 = \"useDefaultImport\";\n      errorCodes52 = [Diagnostics.Import_may_be_converted_to_a_default_import.code];\n      registerCodeFix({\n        errorCodes: errorCodes52,\n        getCodeActions(context) {\n          const { sourceFile, span: { start } } = context;\n          const info = getInfo15(sourceFile, start);\n          if (!info)\n            return void 0;\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange27(t, sourceFile, info, context.preferences));\n          return [createCodeFixAction(fixId41, changes, Diagnostics.Convert_to_default_import, fixId41, Diagnostics.Convert_all_to_default_imports)];\n        },\n        fixIds: [fixId41],\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes52, (changes, diag2) => {\n          const info = getInfo15(diag2.file, diag2.start);\n          if (info)\n            doChange27(changes, diag2.file, info, context.preferences);\n        })\n      });\n    }\n  });\n  function makeChange9(changeTracker, sourceFile, span) {\n    const numericLiteral = tryCast(getTokenAtPosition(sourceFile, span.start), isNumericLiteral);\n    if (!numericLiteral) {\n      return;\n    }\n    const newText = numericLiteral.getText(sourceFile) + \"n\";\n    changeTracker.replaceNode(sourceFile, numericLiteral, factory.createBigIntLiteral(newText));\n  }\n  var fixId42, errorCodes53;\n  var init_useBigintLiteral = __esm({\n    \"src/services/codefixes/useBigintLiteral.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId42 = \"useBigintLiteral\";\n      errorCodes53 = [\n        Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code\n      ];\n      registerCodeFix({\n        errorCodes: errorCodes53,\n        getCodeActions: function getCodeActionsToUseBigintLiteral(context) {\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => makeChange9(t, context.sourceFile, context.span));\n          if (changes.length > 0) {\n            return [createCodeFixAction(fixId42, changes, Diagnostics.Convert_to_a_bigint_numeric_literal, fixId42, Diagnostics.Convert_all_to_bigint_numeric_literals)];\n          }\n        },\n        fixIds: [fixId42],\n        getAllCodeActions: (context) => {\n          return codeFixAll(context, errorCodes53, (changes, diag2) => makeChange9(changes, diag2.file, diag2));\n        }\n      });\n    }\n  });\n  function getImportTypeNode(sourceFile, pos) {\n    const token = getTokenAtPosition(sourceFile, pos);\n    Debug.assert(token.kind === 100, \"This token should be an ImportKeyword\");\n    Debug.assert(token.parent.kind === 202, \"Token parent should be an ImportType\");\n    return token.parent;\n  }\n  function doChange28(changes, sourceFile, importType) {\n    const newTypeNode = factory.updateImportTypeNode(importType, importType.argument, importType.assertions, importType.qualifier, importType.typeArguments, true);\n    changes.replaceNode(sourceFile, importType, newTypeNode);\n  }\n  var fixIdAddMissingTypeof, fixId43, errorCodes54;\n  var init_fixAddModuleReferTypeMissingTypeof = __esm({\n    \"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixIdAddMissingTypeof = \"fixAddModuleReferTypeMissingTypeof\";\n      fixId43 = fixIdAddMissingTypeof;\n      errorCodes54 = [Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];\n      registerCodeFix({\n        errorCodes: errorCodes54,\n        getCodeActions: function getCodeActionsToAddMissingTypeof(context) {\n          const { sourceFile, span } = context;\n          const importType = getImportTypeNode(sourceFile, span.start);\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange28(t, sourceFile, importType));\n          return [createCodeFixAction(fixId43, changes, Diagnostics.Add_missing_typeof, fixId43, Diagnostics.Add_missing_typeof)];\n        },\n        fixIds: [fixId43],\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes54, (changes, diag2) => doChange28(changes, context.sourceFile, getImportTypeNode(diag2.file, diag2.start)))\n      });\n    }\n  });\n  function findNodeToFix(sourceFile, pos) {\n    const lessThanToken = getTokenAtPosition(sourceFile, pos);\n    const firstJsxElementOrOpenElement = lessThanToken.parent;\n    let binaryExpr = firstJsxElementOrOpenElement.parent;\n    if (!isBinaryExpression(binaryExpr)) {\n      binaryExpr = binaryExpr.parent;\n      if (!isBinaryExpression(binaryExpr))\n        return void 0;\n    }\n    if (!nodeIsMissing(binaryExpr.operatorToken))\n      return void 0;\n    return binaryExpr;\n  }\n  function doChange29(changeTracker, sf, node) {\n    const jsx = flattenInvalidBinaryExpr(node);\n    if (jsx)\n      changeTracker.replaceNode(sf, node, factory.createJsxFragment(factory.createJsxOpeningFragment(), jsx, factory.createJsxJsxClosingFragment()));\n  }\n  function flattenInvalidBinaryExpr(node) {\n    const children = [];\n    let current = node;\n    while (true) {\n      if (isBinaryExpression(current) && nodeIsMissing(current.operatorToken) && current.operatorToken.kind === 27) {\n        children.push(current.left);\n        if (isJsxChild(current.right)) {\n          children.push(current.right);\n          return children;\n        } else if (isBinaryExpression(current.right)) {\n          current = current.right;\n          continue;\n        } else\n          return void 0;\n      } else\n        return void 0;\n    }\n  }\n  var fixID2, errorCodes55;\n  var init_wrapJsxInFragment = __esm({\n    \"src/services/codefixes/wrapJsxInFragment.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixID2 = \"wrapJsxInFragment\";\n      errorCodes55 = [Diagnostics.JSX_expressions_must_have_one_parent_element.code];\n      registerCodeFix({\n        errorCodes: errorCodes55,\n        getCodeActions: function getCodeActionsToWrapJsxInFragment(context) {\n          const { sourceFile, span } = context;\n          const node = findNodeToFix(sourceFile, span.start);\n          if (!node)\n            return void 0;\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange29(t, sourceFile, node));\n          return [createCodeFixAction(fixID2, changes, Diagnostics.Wrap_in_JSX_fragment, fixID2, Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)];\n        },\n        fixIds: [fixID2],\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes55, (changes, diag2) => {\n          const node = findNodeToFix(context.sourceFile, diag2.start);\n          if (!node)\n            return void 0;\n          doChange29(changes, context.sourceFile, node);\n        })\n      });\n    }\n  });\n  function getInfo16(sourceFile, pos) {\n    const token = getTokenAtPosition(sourceFile, pos);\n    const indexSignature = tryCast(token.parent.parent, isIndexSignatureDeclaration);\n    if (!indexSignature)\n      return void 0;\n    const container = isInterfaceDeclaration(indexSignature.parent) ? indexSignature.parent : tryCast(indexSignature.parent.parent, isTypeAliasDeclaration);\n    if (!container)\n      return void 0;\n    return { indexSignature, container };\n  }\n  function createTypeAliasFromInterface(declaration, type) {\n    return factory.createTypeAliasDeclaration(declaration.modifiers, declaration.name, declaration.typeParameters, type);\n  }\n  function doChange30(changes, sourceFile, { indexSignature, container }) {\n    const members = isInterfaceDeclaration(container) ? container.members : container.type.members;\n    const otherMembers = members.filter((member) => !isIndexSignatureDeclaration(member));\n    const parameter = first(indexSignature.parameters);\n    const mappedTypeParameter = factory.createTypeParameterDeclaration(void 0, cast(parameter.name, isIdentifier), parameter.type);\n    const mappedIntersectionType = factory.createMappedTypeNode(hasEffectiveReadonlyModifier(indexSignature) ? factory.createModifier(146) : void 0, mappedTypeParameter, void 0, indexSignature.questionToken, indexSignature.type, void 0);\n    const intersectionType = factory.createIntersectionTypeNode([\n      ...getAllSuperTypeNodes(container),\n      mappedIntersectionType,\n      ...otherMembers.length ? [factory.createTypeLiteralNode(otherMembers)] : emptyArray\n    ]);\n    changes.replaceNode(sourceFile, container, createTypeAliasFromInterface(container, intersectionType));\n  }\n  var fixId44, errorCodes56;\n  var init_convertToMappedObjectType = __esm({\n    \"src/services/codefixes/convertToMappedObjectType.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId44 = \"fixConvertToMappedObjectType\";\n      errorCodes56 = [Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];\n      registerCodeFix({\n        errorCodes: errorCodes56,\n        getCodeActions: function getCodeActionsToConvertToMappedTypeObject(context) {\n          const { sourceFile, span } = context;\n          const info = getInfo16(sourceFile, span.start);\n          if (!info)\n            return void 0;\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange30(t, sourceFile, info));\n          const name = idText(info.container.name);\n          return [createCodeFixAction(fixId44, changes, [Diagnostics.Convert_0_to_mapped_object_type, name], fixId44, [Diagnostics.Convert_0_to_mapped_object_type, name])];\n        },\n        fixIds: [fixId44],\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes56, (changes, diag2) => {\n          const info = getInfo16(diag2.file, diag2.start);\n          if (info)\n            doChange30(changes, diag2.file, info);\n        })\n      });\n    }\n  });\n  var fixId45, errorCodes57;\n  var init_removeAccidentalCallParentheses = __esm({\n    \"src/services/codefixes/removeAccidentalCallParentheses.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId45 = \"removeAccidentalCallParentheses\";\n      errorCodes57 = [\n        Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code\n      ];\n      registerCodeFix({\n        errorCodes: errorCodes57,\n        getCodeActions(context) {\n          const callExpression = findAncestor(getTokenAtPosition(context.sourceFile, context.span.start), isCallExpression);\n          if (!callExpression) {\n            return void 0;\n          }\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => {\n            t.deleteRange(context.sourceFile, { pos: callExpression.expression.end, end: callExpression.end });\n          });\n          return [createCodeFixActionWithoutFixAll(fixId45, changes, Diagnostics.Remove_parentheses)];\n        },\n        fixIds: [fixId45]\n      });\n    }\n  });\n  function makeChange10(changeTracker, sourceFile, span) {\n    const awaitKeyword = tryCast(getTokenAtPosition(sourceFile, span.start), (node) => node.kind === 133);\n    const awaitExpression = awaitKeyword && tryCast(awaitKeyword.parent, isAwaitExpression);\n    if (!awaitExpression) {\n      return;\n    }\n    let expressionToReplace = awaitExpression;\n    const hasSurroundingParens = isParenthesizedExpression(awaitExpression.parent);\n    if (hasSurroundingParens) {\n      const leftMostExpression = getLeftmostExpression(awaitExpression.expression, false);\n      if (isIdentifier(leftMostExpression)) {\n        const precedingToken = findPrecedingToken(awaitExpression.parent.pos, sourceFile);\n        if (precedingToken && precedingToken.kind !== 103) {\n          expressionToReplace = awaitExpression.parent;\n        }\n      }\n    }\n    changeTracker.replaceNode(sourceFile, expressionToReplace, awaitExpression.expression);\n  }\n  var fixId46, errorCodes58;\n  var init_removeUnnecessaryAwait = __esm({\n    \"src/services/codefixes/removeUnnecessaryAwait.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId46 = \"removeUnnecessaryAwait\";\n      errorCodes58 = [\n        Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code\n      ];\n      registerCodeFix({\n        errorCodes: errorCodes58,\n        getCodeActions: function getCodeActionsToRemoveUnnecessaryAwait(context) {\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => makeChange10(t, context.sourceFile, context.span));\n          if (changes.length > 0) {\n            return [createCodeFixAction(fixId46, changes, Diagnostics.Remove_unnecessary_await, fixId46, Diagnostics.Remove_all_unnecessary_uses_of_await)];\n          }\n        },\n        fixIds: [fixId46],\n        getAllCodeActions: (context) => {\n          return codeFixAll(context, errorCodes58, (changes, diag2) => makeChange10(changes, diag2.file, diag2));\n        }\n      });\n    }\n  });\n  function getImportDeclaration2(sourceFile, span) {\n    return findAncestor(getTokenAtPosition(sourceFile, span.start), isImportDeclaration);\n  }\n  function splitTypeOnlyImport(changes, importDeclaration, context) {\n    if (!importDeclaration) {\n      return;\n    }\n    const importClause = Debug.checkDefined(importDeclaration.importClause);\n    changes.replaceNode(context.sourceFile, importDeclaration, factory.updateImportDeclaration(importDeclaration, importDeclaration.modifiers, factory.updateImportClause(importClause, importClause.isTypeOnly, importClause.name, void 0), importDeclaration.moduleSpecifier, importDeclaration.assertClause));\n    changes.insertNodeAfter(context.sourceFile, importDeclaration, factory.createImportDeclaration(void 0, factory.updateImportClause(importClause, importClause.isTypeOnly, void 0, importClause.namedBindings), importDeclaration.moduleSpecifier, importDeclaration.assertClause));\n  }\n  var errorCodes59, fixId47;\n  var init_splitTypeOnlyImport = __esm({\n    \"src/services/codefixes/splitTypeOnlyImport.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      errorCodes59 = [Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code];\n      fixId47 = \"splitTypeOnlyImport\";\n      registerCodeFix({\n        errorCodes: errorCodes59,\n        fixIds: [fixId47],\n        getCodeActions: function getCodeActionsToSplitTypeOnlyImport(context) {\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => {\n            return splitTypeOnlyImport(t, getImportDeclaration2(context.sourceFile, context.span), context);\n          });\n          if (changes.length) {\n            return [createCodeFixAction(fixId47, changes, Diagnostics.Split_into_two_separate_import_declarations, fixId47, Diagnostics.Split_all_invalid_type_only_imports)];\n          }\n        },\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes59, (changes, error) => {\n          splitTypeOnlyImport(changes, getImportDeclaration2(context.sourceFile, error), context);\n        })\n      });\n    }\n  });\n  function getInfo17(sourceFile, pos, program) {\n    var _a2;\n    const checker = program.getTypeChecker();\n    const symbol = checker.getSymbolAtLocation(getTokenAtPosition(sourceFile, pos));\n    if (symbol === void 0)\n      return;\n    const declaration = tryCast((_a2 = symbol == null ? void 0 : symbol.valueDeclaration) == null ? void 0 : _a2.parent, isVariableDeclarationList);\n    if (declaration === void 0)\n      return;\n    const constToken = findChildOfKind(declaration, 85, sourceFile);\n    if (constToken === void 0)\n      return;\n    return { symbol, token: constToken };\n  }\n  function doChange31(changes, sourceFile, token) {\n    changes.replaceNode(sourceFile, token, factory.createToken(119));\n  }\n  var fixId48, errorCodes60;\n  var init_convertConstToLet = __esm({\n    \"src/services/codefixes/convertConstToLet.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId48 = \"fixConvertConstToLet\";\n      errorCodes60 = [Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code];\n      registerCodeFix({\n        errorCodes: errorCodes60,\n        getCodeActions: function getCodeActionsToConvertConstToLet(context) {\n          const { sourceFile, span, program } = context;\n          const info = getInfo17(sourceFile, span.start, program);\n          if (info === void 0)\n            return;\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange31(t, sourceFile, info.token));\n          return [createCodeFixActionMaybeFixAll(fixId48, changes, Diagnostics.Convert_const_to_let, fixId48, Diagnostics.Convert_all_const_to_let)];\n        },\n        getAllCodeActions: (context) => {\n          const { program } = context;\n          const seen = /* @__PURE__ */ new Map();\n          return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {\n            eachDiagnostic(context, errorCodes60, (diag2) => {\n              const info = getInfo17(diag2.file, diag2.start, program);\n              if (info) {\n                if (addToSeen(seen, getSymbolId(info.symbol))) {\n                  return doChange31(changes, diag2.file, info.token);\n                }\n              }\n              return void 0;\n            });\n          }));\n        },\n        fixIds: [fixId48]\n      });\n    }\n  });\n  function getInfo18(sourceFile, pos, _) {\n    const node = getTokenAtPosition(sourceFile, pos);\n    return node.kind === 26 && node.parent && (isObjectLiteralExpression(node.parent) || isArrayLiteralExpression(node.parent)) ? { node } : void 0;\n  }\n  function doChange32(changes, sourceFile, { node }) {\n    const newNode = factory.createToken(27);\n    changes.replaceNode(sourceFile, node, newNode);\n  }\n  var fixId49, expectedErrorCode, errorCodes61;\n  var init_fixExpectedComma = __esm({\n    \"src/services/codefixes/fixExpectedComma.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixId49 = \"fixExpectedComma\";\n      expectedErrorCode = Diagnostics._0_expected.code;\n      errorCodes61 = [expectedErrorCode];\n      registerCodeFix({\n        errorCodes: errorCodes61,\n        getCodeActions(context) {\n          const { sourceFile } = context;\n          const info = getInfo18(sourceFile, context.span.start, context.errorCode);\n          if (!info)\n            return void 0;\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange32(t, sourceFile, info));\n          return [createCodeFixAction(fixId49, changes, [Diagnostics.Change_0_to_1, \";\", \",\"], fixId49, [Diagnostics.Change_0_to_1, \";\", \",\"])];\n        },\n        fixIds: [fixId49],\n        getAllCodeActions: (context) => codeFixAll(context, errorCodes61, (changes, diag2) => {\n          const info = getInfo18(diag2.file, diag2.start, diag2.code);\n          if (info)\n            doChange32(changes, context.sourceFile, info);\n        })\n      });\n    }\n  });\n  function makeChange11(changes, sourceFile, span, program, seen) {\n    const node = getTokenAtPosition(sourceFile, span.start);\n    if (!isIdentifier(node) || !isCallExpression(node.parent) || node.parent.expression !== node || node.parent.arguments.length !== 0)\n      return;\n    const checker = program.getTypeChecker();\n    const symbol = checker.getSymbolAtLocation(node);\n    const decl = symbol == null ? void 0 : symbol.valueDeclaration;\n    if (!decl || !isParameter(decl) || !isNewExpression(decl.parent.parent))\n      return;\n    if (seen == null ? void 0 : seen.has(decl))\n      return;\n    seen == null ? void 0 : seen.add(decl);\n    const typeArguments = getEffectiveTypeArguments(decl.parent.parent);\n    if (some(typeArguments)) {\n      const typeArgument = typeArguments[0];\n      const needsParens = !isUnionTypeNode(typeArgument) && !isParenthesizedTypeNode(typeArgument) && isParenthesizedTypeNode(factory.createUnionTypeNode([typeArgument, factory.createKeywordTypeNode(114)]).types[0]);\n      if (needsParens) {\n        changes.insertText(sourceFile, typeArgument.pos, \"(\");\n      }\n      changes.insertText(sourceFile, typeArgument.end, needsParens ? \") | void\" : \" | void\");\n    } else {\n      const signature = checker.getResolvedSignature(node.parent);\n      const parameter = signature == null ? void 0 : signature.parameters[0];\n      const parameterType = parameter && checker.getTypeOfSymbolAtLocation(parameter, decl.parent.parent);\n      if (isInJSFile(decl)) {\n        if (!parameterType || parameterType.flags & 3) {\n          changes.insertText(sourceFile, decl.parent.parent.end, `)`);\n          changes.insertText(sourceFile, skipTrivia(sourceFile.text, decl.parent.parent.pos), `/** @type {Promise<void>} */(`);\n        }\n      } else {\n        if (!parameterType || parameterType.flags & 2) {\n          changes.insertText(sourceFile, decl.parent.parent.expression.end, \"<void>\");\n        }\n      }\n    }\n  }\n  function getEffectiveTypeArguments(node) {\n    var _a2;\n    if (isInJSFile(node)) {\n      if (isParenthesizedExpression(node.parent)) {\n        const jsDocType = (_a2 = getJSDocTypeTag(node.parent)) == null ? void 0 : _a2.typeExpression.type;\n        if (jsDocType && isTypeReferenceNode(jsDocType) && isIdentifier(jsDocType.typeName) && idText(jsDocType.typeName) === \"Promise\") {\n          return jsDocType.typeArguments;\n        }\n      }\n    } else {\n      return node.typeArguments;\n    }\n  }\n  var fixName7, fixId50, errorCodes62;\n  var init_fixAddVoidToPromise = __esm({\n    \"src/services/codefixes/fixAddVoidToPromise.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_codefix();\n      fixName7 = \"addVoidToPromise\";\n      fixId50 = \"addVoidToPromise\";\n      errorCodes62 = [\n        Diagnostics.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,\n        Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code\n      ];\n      registerCodeFix({\n        errorCodes: errorCodes62,\n        fixIds: [fixId50],\n        getCodeActions(context) {\n          const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => makeChange11(t, context.sourceFile, context.span, context.program));\n          if (changes.length > 0) {\n            return [createCodeFixAction(fixName7, changes, Diagnostics.Add_void_to_Promise_resolved_without_a_value, fixId50, Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)];\n          }\n        },\n        getAllCodeActions(context) {\n          return codeFixAll(context, errorCodes62, (changes, diag2) => makeChange11(changes, diag2.file, diag2, context.program, /* @__PURE__ */ new Set()));\n        }\n      });\n    }\n  });\n  var ts_codefix_exports = {};\n  __export2(ts_codefix_exports, {\n    PreserveOptionalFlags: () => PreserveOptionalFlags,\n    addNewNodeForMemberSymbol: () => addNewNodeForMemberSymbol,\n    codeFixAll: () => codeFixAll,\n    createCodeFixAction: () => createCodeFixAction,\n    createCodeFixActionMaybeFixAll: () => createCodeFixActionMaybeFixAll,\n    createCodeFixActionWithoutFixAll: () => createCodeFixActionWithoutFixAll,\n    createCombinedCodeActions: () => createCombinedCodeActions,\n    createFileTextChanges: () => createFileTextChanges,\n    createImportAdder: () => createImportAdder,\n    createImportSpecifierResolver: () => createImportSpecifierResolver,\n    createJsonPropertyAssignment: () => createJsonPropertyAssignment,\n    createMissingMemberNodes: () => createMissingMemberNodes,\n    createSignatureDeclarationFromCallExpression: () => createSignatureDeclarationFromCallExpression,\n    createSignatureDeclarationFromSignature: () => createSignatureDeclarationFromSignature,\n    createStubbedBody: () => createStubbedBody,\n    eachDiagnostic: () => eachDiagnostic,\n    findAncestorMatchingSpan: () => findAncestorMatchingSpan,\n    findJsonProperty: () => findJsonProperty,\n    generateAccessorFromProperty: () => generateAccessorFromProperty,\n    getAccessorConvertiblePropertyAtPosition: () => getAccessorConvertiblePropertyAtPosition,\n    getAllFixes: () => getAllFixes,\n    getAllSupers: () => getAllSupers,\n    getArgumentTypesAndTypeParameters: () => getArgumentTypesAndTypeParameters,\n    getFixes: () => getFixes,\n    getImportCompletionAction: () => getImportCompletionAction,\n    getImportKind: () => getImportKind,\n    getNoopSymbolTrackerWithResolver: () => getNoopSymbolTrackerWithResolver,\n    getPromoteTypeOnlyCompletionAction: () => getPromoteTypeOnlyCompletionAction,\n    getSupportedErrorCodes: () => getSupportedErrorCodes,\n    importFixName: () => importFixName,\n    importSymbols: () => importSymbols,\n    moduleSpecifierToValidIdentifier: () => moduleSpecifierToValidIdentifier,\n    moduleSymbolToValidIdentifier: () => moduleSymbolToValidIdentifier,\n    parameterShouldGetTypeFromJSDoc: () => parameterShouldGetTypeFromJSDoc,\n    registerCodeFix: () => registerCodeFix,\n    setJsonCompilerOptionValue: () => setJsonCompilerOptionValue,\n    setJsonCompilerOptionValues: () => setJsonCompilerOptionValues,\n    tryGetAutoImportableReferenceFromTypeNode: () => tryGetAutoImportableReferenceFromTypeNode,\n    typeToAutoImportableTypeNode: () => typeToAutoImportableTypeNode\n  });\n  var init_ts_codefix = __esm({\n    \"src/services/_namespaces/ts.codefix.ts\"() {\n      \"use strict\";\n      init_codeFixProvider();\n      init_addConvertToUnknownForNonOverlappingTypes();\n      init_addEmptyExportDeclaration();\n      init_addMissingAsync();\n      init_addMissingAwait();\n      init_addMissingConst();\n      init_addMissingDeclareProperty();\n      init_addMissingInvocationForDecorator();\n      init_addNameToNamelessParameter();\n      init_addOptionalPropertyUndefined();\n      init_annotateWithTypeFromJSDoc();\n      init_convertFunctionToEs6Class();\n      init_convertToAsyncFunction();\n      init_convertToEsModule();\n      init_correctQualifiedNameToIndexedAccessType();\n      init_convertToTypeOnlyExport();\n      init_convertToTypeOnlyImport();\n      init_convertLiteralTypeToMappedType();\n      init_fixClassIncorrectlyImplementsInterface();\n      init_importFixes();\n      init_fixAddMissingConstraint();\n      init_fixOverrideModifier();\n      init_fixNoPropertyAccessFromIndexSignature();\n      init_fixImplicitThis();\n      init_fixImportNonExportedMember();\n      init_fixIncorrectNamedTupleSyntax();\n      init_fixSpelling();\n      init_returnValueCorrect();\n      init_fixAddMissingMember();\n      init_fixAddMissingNewOperator();\n      init_fixCannotFindModule();\n      init_fixClassDoesntImplementInheritedAbstractMember();\n      init_fixClassSuperMustPrecedeThisAccess();\n      init_fixConstructorForDerivedNeedSuperCall();\n      init_fixEnableJsxFlag();\n      init_fixNaNEquality();\n      init_fixModuleAndTargetOptions();\n      init_fixPropertyAssignment();\n      init_fixExtendsInterfaceBecomesImplements();\n      init_fixForgottenThisPropertyAccess();\n      init_fixInvalidJsxCharacters();\n      init_fixUnmatchedParameter();\n      init_fixUnreferenceableDecoratorMetadata();\n      init_fixUnusedIdentifier();\n      init_fixUnreachableCode();\n      init_fixUnusedLabel();\n      init_fixJSDocTypes();\n      init_fixMissingCallParentheses();\n      init_fixAwaitInSyncFunction();\n      init_fixPropertyOverrideAccessor();\n      init_inferFromUsage();\n      init_fixReturnTypeInAsyncFunction();\n      init_disableJsDiagnostics();\n      init_helpers();\n      init_generateAccessors();\n      init_fixInvalidImportSyntax();\n      init_fixStrictClassInitialization();\n      init_requireInTs();\n      init_useDefaultImport();\n      init_useBigintLiteral();\n      init_fixAddModuleReferTypeMissingTypeof();\n      init_wrapJsxInFragment();\n      init_convertToMappedObjectType();\n      init_removeAccidentalCallParentheses();\n      init_removeUnnecessaryAwait();\n      init_splitTypeOnlyImport();\n      init_convertConstToLet();\n      init_fixExpectedComma();\n      init_fixAddVoidToPromise();\n    }\n  });\n  function originIsThisType(origin) {\n    return !!(origin.kind & 1);\n  }\n  function originIsSymbolMember(origin) {\n    return !!(origin.kind & 2);\n  }\n  function originIsExport(origin) {\n    return !!(origin && origin.kind & 4);\n  }\n  function originIsResolvedExport(origin) {\n    return !!(origin && origin.kind === 32);\n  }\n  function originIncludesSymbolName(origin) {\n    return originIsExport(origin) || originIsResolvedExport(origin) || originIsComputedPropertyName(origin);\n  }\n  function originIsPackageJsonImport(origin) {\n    return (originIsExport(origin) || originIsResolvedExport(origin)) && !!origin.isFromPackageJson;\n  }\n  function originIsPromise(origin) {\n    return !!(origin.kind & 8);\n  }\n  function originIsNullableMember(origin) {\n    return !!(origin.kind & 16);\n  }\n  function originIsTypeOnlyAlias(origin) {\n    return !!(origin && origin.kind & 64);\n  }\n  function originIsObjectLiteralMethod(origin) {\n    return !!(origin && origin.kind & 128);\n  }\n  function originIsIgnore(origin) {\n    return !!(origin && origin.kind & 256);\n  }\n  function originIsComputedPropertyName(origin) {\n    return !!(origin && origin.kind & 512);\n  }\n  function resolvingModuleSpecifiers(logPrefix, host, resolver, program, position, preferences, isForImportStatementCompletion, isValidTypeOnlyUseSite, cb) {\n    var _a2, _b, _c;\n    const start = timestamp();\n    const needsFullResolution = isForImportStatementCompletion || moduleResolutionSupportsPackageJsonExportsAndImports(getEmitModuleResolutionKind(program.getCompilerOptions()));\n    let skippedAny = false;\n    let ambientCount = 0;\n    let resolvedCount = 0;\n    let resolvedFromCacheCount = 0;\n    let cacheAttemptCount = 0;\n    const result = cb({\n      tryResolve,\n      skippedAny: () => skippedAny,\n      resolvedAny: () => resolvedCount > 0,\n      resolvedBeyondLimit: () => resolvedCount > moduleSpecifierResolutionLimit\n    });\n    const hitRateMessage = cacheAttemptCount ? ` (${(resolvedFromCacheCount / cacheAttemptCount * 100).toFixed(1)}% hit rate)` : \"\";\n    (_a2 = host.log) == null ? void 0 : _a2.call(host, `${logPrefix}: resolved ${resolvedCount} module specifiers, plus ${ambientCount} ambient and ${resolvedFromCacheCount} from cache${hitRateMessage}`);\n    (_b = host.log) == null ? void 0 : _b.call(host, `${logPrefix}: response is ${skippedAny ? \"incomplete\" : \"complete\"}`);\n    (_c = host.log) == null ? void 0 : _c.call(host, `${logPrefix}: ${timestamp() - start}`);\n    return result;\n    function tryResolve(exportInfo, isFromAmbientModule) {\n      if (isFromAmbientModule) {\n        const result3 = resolver.getModuleSpecifierForBestExportInfo(exportInfo, position, isValidTypeOnlyUseSite);\n        if (result3) {\n          ambientCount++;\n        }\n        return result3 || \"failed\";\n      }\n      const shouldResolveModuleSpecifier = needsFullResolution || preferences.allowIncompleteCompletions && resolvedCount < moduleSpecifierResolutionLimit;\n      const shouldGetModuleSpecifierFromCache = !shouldResolveModuleSpecifier && preferences.allowIncompleteCompletions && cacheAttemptCount < moduleSpecifierResolutionCacheAttemptLimit;\n      const result2 = shouldResolveModuleSpecifier || shouldGetModuleSpecifierFromCache ? resolver.getModuleSpecifierForBestExportInfo(exportInfo, position, isValidTypeOnlyUseSite, shouldGetModuleSpecifierFromCache) : void 0;\n      if (!shouldResolveModuleSpecifier && !shouldGetModuleSpecifierFromCache || shouldGetModuleSpecifierFromCache && !result2) {\n        skippedAny = true;\n      }\n      resolvedCount += (result2 == null ? void 0 : result2.computedWithoutCacheCount) || 0;\n      resolvedFromCacheCount += exportInfo.length - ((result2 == null ? void 0 : result2.computedWithoutCacheCount) || 0);\n      if (shouldGetModuleSpecifierFromCache) {\n        cacheAttemptCount++;\n      }\n      return result2 || (needsFullResolution ? \"failed\" : \"skipped\");\n    }\n  }\n  function getCompletionsAtPosition(host, program, log, sourceFile, position, preferences, triggerCharacter, completionKind, cancellationToken, formatContext, includeSymbol = false) {\n    var _a2;\n    const { previousToken } = getRelevantTokens(position, sourceFile);\n    if (triggerCharacter && !isInString(sourceFile, position, previousToken) && !isValidTrigger(sourceFile, triggerCharacter, previousToken, position)) {\n      return void 0;\n    }\n    if (triggerCharacter === \" \") {\n      if (preferences.includeCompletionsForImportStatements && preferences.includeCompletionsWithInsertText) {\n        return { isGlobalCompletion: true, isMemberCompletion: false, isNewIdentifierLocation: true, isIncomplete: true, entries: [] };\n      }\n      return void 0;\n    }\n    const compilerOptions = program.getCompilerOptions();\n    const incompleteCompletionsCache = preferences.allowIncompleteCompletions ? (_a2 = host.getIncompleteCompletionsCache) == null ? void 0 : _a2.call(host) : void 0;\n    if (incompleteCompletionsCache && completionKind === 3 && previousToken && isIdentifier(previousToken)) {\n      const incompleteContinuation = continuePreviousIncompleteResponse(incompleteCompletionsCache, sourceFile, previousToken, program, host, preferences, cancellationToken, position);\n      if (incompleteContinuation) {\n        return incompleteContinuation;\n      }\n    } else {\n      incompleteCompletionsCache == null ? void 0 : incompleteCompletionsCache.clear();\n    }\n    const stringCompletions = ts_Completions_StringCompletions_exports.getStringLiteralCompletions(sourceFile, position, previousToken, compilerOptions, host, program, log, preferences, includeSymbol);\n    if (stringCompletions) {\n      return stringCompletions;\n    }\n    if (previousToken && isBreakOrContinueStatement(previousToken.parent) && (previousToken.kind === 81 || previousToken.kind === 86 || previousToken.kind === 79)) {\n      return getLabelCompletionAtPosition(previousToken.parent);\n    }\n    const completionData = getCompletionData(program, log, sourceFile, compilerOptions, position, preferences, void 0, host, formatContext, cancellationToken);\n    if (!completionData) {\n      return void 0;\n    }\n    switch (completionData.kind) {\n      case 0:\n        const response = completionInfoFromData(sourceFile, host, program, compilerOptions, log, completionData, preferences, formatContext, position, includeSymbol);\n        if (response == null ? void 0 : response.isIncomplete) {\n          incompleteCompletionsCache == null ? void 0 : incompleteCompletionsCache.set(response);\n        }\n        return response;\n      case 1:\n        return jsdocCompletionInfo(ts_JsDoc_exports.getJSDocTagNameCompletions());\n      case 2:\n        return jsdocCompletionInfo(ts_JsDoc_exports.getJSDocTagCompletions());\n      case 3:\n        return jsdocCompletionInfo(ts_JsDoc_exports.getJSDocParameterNameCompletions(completionData.tag));\n      case 4:\n        return specificKeywordCompletionInfo(completionData.keywordCompletions, completionData.isNewIdentifierLocation);\n      default:\n        return Debug.assertNever(completionData);\n    }\n  }\n  function compareCompletionEntries(entryInArray, entryToInsert) {\n    var _a2, _b;\n    let result = compareStringsCaseSensitiveUI(entryInArray.sortText, entryToInsert.sortText);\n    if (result === 0) {\n      result = compareStringsCaseSensitiveUI(entryInArray.name, entryToInsert.name);\n    }\n    if (result === 0 && ((_a2 = entryInArray.data) == null ? void 0 : _a2.moduleSpecifier) && ((_b = entryToInsert.data) == null ? void 0 : _b.moduleSpecifier)) {\n      result = compareNumberOfDirectorySeparators(entryInArray.data.moduleSpecifier, entryToInsert.data.moduleSpecifier);\n    }\n    if (result === 0) {\n      return -1;\n    }\n    return result;\n  }\n  function completionEntryDataIsResolved(data) {\n    return !!(data == null ? void 0 : data.moduleSpecifier);\n  }\n  function continuePreviousIncompleteResponse(cache, file, location, program, host, preferences, cancellationToken, position) {\n    const previousResponse = cache.get();\n    if (!previousResponse)\n      return void 0;\n    const touchNode = getTouchingPropertyName(file, position);\n    const lowerCaseTokenText = location.text.toLowerCase();\n    const exportMap = getExportInfoMap(file, host, program, preferences, cancellationToken);\n    const newEntries = resolvingModuleSpecifiers(\"continuePreviousIncompleteResponse\", host, ts_codefix_exports.createImportSpecifierResolver(file, program, host, preferences), program, location.getStart(), preferences, false, isValidTypeOnlyAliasUseSite(location), (context) => {\n      const entries = mapDefined(previousResponse.entries, (entry) => {\n        var _a2;\n        if (!entry.hasAction || !entry.source || !entry.data || completionEntryDataIsResolved(entry.data)) {\n          return entry;\n        }\n        if (!charactersFuzzyMatchInString(entry.name, lowerCaseTokenText)) {\n          return void 0;\n        }\n        const { origin } = Debug.checkDefined(getAutoImportSymbolFromCompletionEntryData(entry.name, entry.data, program, host));\n        const info = exportMap.get(file.path, entry.data.exportMapKey);\n        const result = info && context.tryResolve(info, !isExternalModuleNameRelative(stripQuotes(origin.moduleSymbol.name)));\n        if (result === \"skipped\")\n          return entry;\n        if (!result || result === \"failed\") {\n          (_a2 = host.log) == null ? void 0 : _a2.call(host, `Unexpected failure resolving auto import for '${entry.name}' from '${entry.source}'`);\n          return void 0;\n        }\n        const newOrigin = {\n          ...origin,\n          kind: 32,\n          moduleSpecifier: result.moduleSpecifier\n        };\n        entry.data = originToCompletionEntryData(newOrigin);\n        entry.source = getSourceFromOrigin(newOrigin);\n        entry.sourceDisplay = [textPart(newOrigin.moduleSpecifier)];\n        return entry;\n      });\n      if (!context.skippedAny()) {\n        previousResponse.isIncomplete = void 0;\n      }\n      return entries;\n    });\n    previousResponse.entries = newEntries;\n    previousResponse.flags = (previousResponse.flags || 0) | 4;\n    previousResponse.optionalReplacementSpan = getOptionalReplacementSpan(touchNode);\n    return previousResponse;\n  }\n  function jsdocCompletionInfo(entries) {\n    return { isGlobalCompletion: false, isMemberCompletion: false, isNewIdentifierLocation: false, entries };\n  }\n  function keywordToCompletionEntry(keyword) {\n    return {\n      name: tokenToString(keyword),\n      kind: \"keyword\",\n      kindModifiers: \"\",\n      sortText: SortText.GlobalsOrKeywords\n    };\n  }\n  function specificKeywordCompletionInfo(entries, isNewIdentifierLocation) {\n    return {\n      isGlobalCompletion: false,\n      isMemberCompletion: false,\n      isNewIdentifierLocation,\n      entries: entries.slice()\n    };\n  }\n  function keywordCompletionData(keywordFilters, filterOutTsOnlyKeywords, isNewIdentifierLocation) {\n    return {\n      kind: 4,\n      keywordCompletions: getKeywordCompletions(keywordFilters, filterOutTsOnlyKeywords),\n      isNewIdentifierLocation\n    };\n  }\n  function keywordFiltersFromSyntaxKind(keywordCompletion) {\n    switch (keywordCompletion) {\n      case 154:\n        return 8;\n      default:\n        Debug.fail(\"Unknown mapping from SyntaxKind to KeywordCompletionFilters\");\n    }\n  }\n  function getOptionalReplacementSpan(location) {\n    return (location == null ? void 0 : location.kind) === 79 ? createTextSpanFromNode(location) : void 0;\n  }\n  function completionInfoFromData(sourceFile, host, program, compilerOptions, log, completionData, preferences, formatContext, position, includeSymbol) {\n    const {\n      symbols,\n      contextToken,\n      completionKind,\n      isInSnippetScope,\n      isNewIdentifierLocation,\n      location,\n      propertyAccessToConvert,\n      keywordFilters,\n      symbolToOriginInfoMap,\n      recommendedCompletion,\n      isJsxInitializer,\n      isTypeOnlyLocation,\n      isJsxIdentifierExpected,\n      isRightOfOpenTag,\n      isRightOfDotOrQuestionDot,\n      importStatementCompletion,\n      insideJsDocTagTypeExpression,\n      symbolToSortTextMap,\n      hasUnresolvedAutoImports\n    } = completionData;\n    let literals = completionData.literals;\n    const checker = program.getTypeChecker();\n    if (getLanguageVariant(sourceFile.scriptKind) === 1) {\n      const completionInfo = getJsxClosingTagCompletion(location, sourceFile);\n      if (completionInfo) {\n        return completionInfo;\n      }\n    }\n    const caseClause = findAncestor(contextToken, isCaseClause);\n    if (caseClause && (isCaseKeyword(contextToken) || isNodeDescendantOf(contextToken, caseClause.expression))) {\n      const tracker = newCaseClauseTracker(checker, caseClause.parent.clauses);\n      literals = literals.filter((literal) => !tracker.hasValue(literal));\n      symbols.forEach((symbol, i) => {\n        if (symbol.valueDeclaration && isEnumMember(symbol.valueDeclaration)) {\n          const value = checker.getConstantValue(symbol.valueDeclaration);\n          if (value !== void 0 && tracker.hasValue(value)) {\n            symbolToOriginInfoMap[i] = { kind: 256 };\n          }\n        }\n      });\n    }\n    const entries = createSortedArray();\n    const isChecked = isCheckedFile(sourceFile, compilerOptions);\n    if (isChecked && !isNewIdentifierLocation && (!symbols || symbols.length === 0) && keywordFilters === 0) {\n      return void 0;\n    }\n    const uniqueNames = getCompletionEntriesFromSymbols(symbols, entries, void 0, contextToken, location, position, sourceFile, host, program, getEmitScriptTarget(compilerOptions), log, completionKind, preferences, compilerOptions, formatContext, isTypeOnlyLocation, propertyAccessToConvert, isJsxIdentifierExpected, isJsxInitializer, importStatementCompletion, recommendedCompletion, symbolToOriginInfoMap, symbolToSortTextMap, isJsxIdentifierExpected, isRightOfOpenTag, includeSymbol);\n    if (keywordFilters !== 0) {\n      for (const keywordEntry of getKeywordCompletions(keywordFilters, !insideJsDocTagTypeExpression && isSourceFileJS(sourceFile))) {\n        if (isTypeOnlyLocation && isTypeKeyword(stringToToken(keywordEntry.name)) || !uniqueNames.has(keywordEntry.name)) {\n          uniqueNames.add(keywordEntry.name);\n          insertSorted(entries, keywordEntry, compareCompletionEntries, true);\n        }\n      }\n    }\n    for (const keywordEntry of getContextualKeywords(contextToken, position)) {\n      if (!uniqueNames.has(keywordEntry.name)) {\n        uniqueNames.add(keywordEntry.name);\n        insertSorted(entries, keywordEntry, compareCompletionEntries, true);\n      }\n    }\n    for (const literal of literals) {\n      const literalEntry = createCompletionEntryForLiteral(sourceFile, preferences, literal);\n      uniqueNames.add(literalEntry.name);\n      insertSorted(entries, literalEntry, compareCompletionEntries, true);\n    }\n    if (!isChecked) {\n      getJSCompletionEntries(sourceFile, location.pos, uniqueNames, getEmitScriptTarget(compilerOptions), entries);\n    }\n    let caseBlock;\n    if (preferences.includeCompletionsWithInsertText && contextToken && !isRightOfOpenTag && !isRightOfDotOrQuestionDot && (caseBlock = findAncestor(contextToken, isCaseBlock))) {\n      const cases = getExhaustiveCaseSnippets(caseBlock, sourceFile, preferences, compilerOptions, host, program, formatContext);\n      if (cases) {\n        entries.push(cases.entry);\n      }\n    }\n    return {\n      flags: completionData.flags,\n      isGlobalCompletion: isInSnippetScope,\n      isIncomplete: preferences.allowIncompleteCompletions && hasUnresolvedAutoImports ? true : void 0,\n      isMemberCompletion: isMemberCompletionKind(completionKind),\n      isNewIdentifierLocation,\n      optionalReplacementSpan: getOptionalReplacementSpan(location),\n      entries\n    };\n  }\n  function isCheckedFile(sourceFile, compilerOptions) {\n    return !isSourceFileJS(sourceFile) || !!isCheckJsEnabledForFile(sourceFile, compilerOptions);\n  }\n  function getExhaustiveCaseSnippets(caseBlock, sourceFile, preferences, options, host, program, formatContext) {\n    const clauses = caseBlock.clauses;\n    const checker = program.getTypeChecker();\n    const switchType = checker.getTypeAtLocation(caseBlock.parent.expression);\n    if (switchType && switchType.isUnion() && every(switchType.types, (type) => type.isLiteral())) {\n      const tracker = newCaseClauseTracker(checker, clauses);\n      const target = getEmitScriptTarget(options);\n      const quotePreference = getQuotePreference(sourceFile, preferences);\n      const importAdder = ts_codefix_exports.createImportAdder(sourceFile, program, preferences, host);\n      const elements = [];\n      for (const type of switchType.types) {\n        if (type.flags & 1024) {\n          Debug.assert(type.symbol, \"An enum member type should have a symbol\");\n          Debug.assert(type.symbol.parent, \"An enum member type should have a parent symbol (the enum symbol)\");\n          const enumValue = type.symbol.valueDeclaration && checker.getConstantValue(type.symbol.valueDeclaration);\n          if (enumValue !== void 0) {\n            if (tracker.hasValue(enumValue)) {\n              continue;\n            }\n            tracker.addValue(enumValue);\n          }\n          const typeNode = ts_codefix_exports.typeToAutoImportableTypeNode(checker, importAdder, type, caseBlock, target);\n          if (!typeNode) {\n            return void 0;\n          }\n          const expr = typeNodeToExpression(typeNode, target, quotePreference);\n          if (!expr) {\n            return void 0;\n          }\n          elements.push(expr);\n        } else if (!tracker.hasValue(type.value)) {\n          switch (typeof type.value) {\n            case \"object\":\n              elements.push(type.value.negative ? factory.createPrefixUnaryExpression(40, factory.createBigIntLiteral({ negative: false, base10Value: type.value.base10Value })) : factory.createBigIntLiteral(type.value));\n              break;\n            case \"number\":\n              elements.push(type.value < 0 ? factory.createPrefixUnaryExpression(40, factory.createNumericLiteral(-type.value)) : factory.createNumericLiteral(type.value));\n              break;\n            case \"string\":\n              elements.push(factory.createStringLiteral(type.value, quotePreference === 0));\n              break;\n          }\n        }\n      }\n      if (elements.length === 0) {\n        return void 0;\n      }\n      const newClauses = map(elements, (element) => factory.createCaseClause(element, []));\n      const newLineChar = getNewLineOrDefaultFromHost(host, formatContext == null ? void 0 : formatContext.options);\n      const printer = createSnippetPrinter({\n        removeComments: true,\n        module: options.module,\n        target: options.target,\n        newLine: getNewLineKind(newLineChar)\n      });\n      const printNode = formatContext ? (node) => printer.printAndFormatNode(4, node, sourceFile, formatContext) : (node) => printer.printNode(4, node, sourceFile);\n      const insertText = map(newClauses, (clause, i) => {\n        if (preferences.includeCompletionsWithSnippetText) {\n          return `${printNode(clause)}$${i + 1}`;\n        }\n        return `${printNode(clause)}`;\n      }).join(newLineChar);\n      const firstClause = printer.printNode(4, newClauses[0], sourceFile);\n      return {\n        entry: {\n          name: `${firstClause} ...`,\n          kind: \"\",\n          sortText: SortText.GlobalsOrKeywords,\n          insertText,\n          hasAction: importAdder.hasFixes() || void 0,\n          source: \"SwitchCases/\",\n          isSnippet: preferences.includeCompletionsWithSnippetText ? true : void 0\n        },\n        importAdder\n      };\n    }\n    return void 0;\n  }\n  function typeNodeToExpression(typeNode, languageVersion, quotePreference) {\n    switch (typeNode.kind) {\n      case 180:\n        const typeName = typeNode.typeName;\n        return entityNameToExpression(typeName, languageVersion, quotePreference);\n      case 196:\n        const objectExpression = typeNodeToExpression(typeNode.objectType, languageVersion, quotePreference);\n        const indexExpression = typeNodeToExpression(typeNode.indexType, languageVersion, quotePreference);\n        return objectExpression && indexExpression && factory.createElementAccessExpression(objectExpression, indexExpression);\n      case 198:\n        const literal = typeNode.literal;\n        switch (literal.kind) {\n          case 10:\n            return factory.createStringLiteral(literal.text, quotePreference === 0);\n          case 8:\n            return factory.createNumericLiteral(literal.text, literal.numericLiteralFlags);\n        }\n        return void 0;\n      case 193:\n        const exp = typeNodeToExpression(typeNode.type, languageVersion, quotePreference);\n        return exp && (isIdentifier(exp) ? exp : factory.createParenthesizedExpression(exp));\n      case 183:\n        return entityNameToExpression(typeNode.exprName, languageVersion, quotePreference);\n      case 202:\n        Debug.fail(`We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.`);\n    }\n    return void 0;\n  }\n  function entityNameToExpression(entityName, languageVersion, quotePreference) {\n    if (isIdentifier(entityName)) {\n      return entityName;\n    }\n    const unescapedName = unescapeLeadingUnderscores(entityName.right.escapedText);\n    if (canUsePropertyAccess(unescapedName, languageVersion)) {\n      return factory.createPropertyAccessExpression(entityNameToExpression(entityName.left, languageVersion, quotePreference), unescapedName);\n    } else {\n      return factory.createElementAccessExpression(entityNameToExpression(entityName.left, languageVersion, quotePreference), factory.createStringLiteral(unescapedName, quotePreference === 0));\n    }\n  }\n  function isMemberCompletionKind(kind) {\n    switch (kind) {\n      case 0:\n      case 3:\n      case 2:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function getJsxClosingTagCompletion(location, sourceFile) {\n    const jsxClosingElement = findAncestor(location, (node) => {\n      switch (node.kind) {\n        case 284:\n          return true;\n        case 43:\n        case 31:\n        case 79:\n        case 208:\n          return false;\n        default:\n          return \"quit\";\n      }\n    });\n    if (jsxClosingElement) {\n      const hasClosingAngleBracket = !!findChildOfKind(jsxClosingElement, 31, sourceFile);\n      const tagName = jsxClosingElement.parent.openingElement.tagName;\n      const closingTag = tagName.getText(sourceFile);\n      const fullClosingTag = closingTag + (hasClosingAngleBracket ? \"\" : \">\");\n      const replacementSpan = createTextSpanFromNode(jsxClosingElement.tagName);\n      const entry = {\n        name: fullClosingTag,\n        kind: \"class\",\n        kindModifiers: void 0,\n        sortText: SortText.LocationPriority\n      };\n      return { isGlobalCompletion: false, isMemberCompletion: true, isNewIdentifierLocation: false, optionalReplacementSpan: replacementSpan, entries: [entry] };\n    }\n    return;\n  }\n  function getJSCompletionEntries(sourceFile, position, uniqueNames, target, entries) {\n    getNameTable(sourceFile).forEach((pos, name) => {\n      if (pos === position) {\n        return;\n      }\n      const realName = unescapeLeadingUnderscores(name);\n      if (!uniqueNames.has(realName) && isIdentifierText(realName, target)) {\n        uniqueNames.add(realName);\n        insertSorted(entries, {\n          name: realName,\n          kind: \"warning\",\n          kindModifiers: \"\",\n          sortText: SortText.JavascriptIdentifiers,\n          isFromUncheckedFile: true\n        }, compareCompletionEntries);\n      }\n    });\n  }\n  function completionNameForLiteral(sourceFile, preferences, literal) {\n    return typeof literal === \"object\" ? pseudoBigIntToString(literal) + \"n\" : isString(literal) ? quote(sourceFile, preferences, literal) : JSON.stringify(literal);\n  }\n  function createCompletionEntryForLiteral(sourceFile, preferences, literal) {\n    return { name: completionNameForLiteral(sourceFile, preferences, literal), kind: \"string\", kindModifiers: \"\", sortText: SortText.LocationPriority };\n  }\n  function createCompletionEntry(symbol, sortText, replacementToken, contextToken, location, position, sourceFile, host, program, name, needsConvertPropertyAccess, origin, recommendedCompletion, propertyAccessToConvert, isJsxInitializer, importStatementCompletion, useSemicolons, options, preferences, completionKind, formatContext, isJsxIdentifierExpected, isRightOfOpenTag, includeSymbol) {\n    let insertText;\n    let replacementSpan = getReplacementSpanForContextToken(replacementToken);\n    let data;\n    let isSnippet;\n    let source = getSourceFromOrigin(origin);\n    let sourceDisplay;\n    let hasAction;\n    let labelDetails;\n    const typeChecker = program.getTypeChecker();\n    const insertQuestionDot = origin && originIsNullableMember(origin);\n    const useBraces = origin && originIsSymbolMember(origin) || needsConvertPropertyAccess;\n    if (origin && originIsThisType(origin)) {\n      insertText = needsConvertPropertyAccess ? `this${insertQuestionDot ? \"?.\" : \"\"}[${quotePropertyName(sourceFile, preferences, name)}]` : `this${insertQuestionDot ? \"?.\" : \".\"}${name}`;\n    } else if ((useBraces || insertQuestionDot) && propertyAccessToConvert) {\n      insertText = useBraces ? needsConvertPropertyAccess ? `[${quotePropertyName(sourceFile, preferences, name)}]` : `[${name}]` : name;\n      if (insertQuestionDot || propertyAccessToConvert.questionDotToken) {\n        insertText = `?.${insertText}`;\n      }\n      const dot = findChildOfKind(propertyAccessToConvert, 24, sourceFile) || findChildOfKind(propertyAccessToConvert, 28, sourceFile);\n      if (!dot) {\n        return void 0;\n      }\n      const end = startsWith(name, propertyAccessToConvert.name.text) ? propertyAccessToConvert.name.end : dot.end;\n      replacementSpan = createTextSpanFromBounds(dot.getStart(sourceFile), end);\n    }\n    if (isJsxInitializer) {\n      if (insertText === void 0)\n        insertText = name;\n      insertText = `{${insertText}}`;\n      if (typeof isJsxInitializer !== \"boolean\") {\n        replacementSpan = createTextSpanFromNode(isJsxInitializer, sourceFile);\n      }\n    }\n    if (origin && originIsPromise(origin) && propertyAccessToConvert) {\n      if (insertText === void 0)\n        insertText = name;\n      const precedingToken = findPrecedingToken(propertyAccessToConvert.pos, sourceFile);\n      let awaitText = \"\";\n      if (precedingToken && positionIsASICandidate(precedingToken.end, precedingToken.parent, sourceFile)) {\n        awaitText = \";\";\n      }\n      awaitText += `(await ${propertyAccessToConvert.expression.getText()})`;\n      insertText = needsConvertPropertyAccess ? `${awaitText}${insertText}` : `${awaitText}${insertQuestionDot ? \"?.\" : \".\"}${insertText}`;\n      const isInAwaitExpression = tryCast(propertyAccessToConvert.parent, isAwaitExpression);\n      const wrapNode = isInAwaitExpression ? propertyAccessToConvert.parent : propertyAccessToConvert.expression;\n      replacementSpan = createTextSpanFromBounds(wrapNode.getStart(sourceFile), propertyAccessToConvert.end);\n    }\n    if (originIsResolvedExport(origin)) {\n      sourceDisplay = [textPart(origin.moduleSpecifier)];\n      if (importStatementCompletion) {\n        ({ insertText, replacementSpan } = getInsertTextAndReplacementSpanForImportCompletion(name, importStatementCompletion, origin, useSemicolons, sourceFile, options, preferences));\n        isSnippet = preferences.includeCompletionsWithSnippetText ? true : void 0;\n      }\n    }\n    if ((origin == null ? void 0 : origin.kind) === 64) {\n      hasAction = true;\n    }\n    if (preferences.includeCompletionsWithClassMemberSnippets && preferences.includeCompletionsWithInsertText && completionKind === 3 && isClassLikeMemberCompletion(symbol, location, sourceFile)) {\n      let importAdder;\n      ({ insertText, isSnippet, importAdder, replacementSpan } = getEntryForMemberCompletion(host, program, options, preferences, name, symbol, location, position, contextToken, formatContext));\n      sortText = SortText.ClassMemberSnippets;\n      if (importAdder == null ? void 0 : importAdder.hasFixes()) {\n        hasAction = true;\n        source = \"ClassMemberSnippet/\";\n      }\n    }\n    if (origin && originIsObjectLiteralMethod(origin)) {\n      ({ insertText, isSnippet, labelDetails } = origin);\n      if (!preferences.useLabelDetailsInCompletionEntries) {\n        name = name + labelDetails.detail;\n        labelDetails = void 0;\n      }\n      source = \"ObjectLiteralMethodSnippet/\";\n      sortText = SortText.SortBelow(sortText);\n    }\n    if (isJsxIdentifierExpected && !isRightOfOpenTag && preferences.includeCompletionsWithSnippetText && preferences.jsxAttributeCompletionStyle && preferences.jsxAttributeCompletionStyle !== \"none\" && !(isJsxAttribute(location.parent) && location.parent.initializer)) {\n      let useBraces2 = preferences.jsxAttributeCompletionStyle === \"braces\";\n      const type = typeChecker.getTypeOfSymbolAtLocation(symbol, location);\n      if (preferences.jsxAttributeCompletionStyle === \"auto\" && !(type.flags & 528) && !(type.flags & 1048576 && find(type.types, (type2) => !!(type2.flags & 528)))) {\n        if (type.flags & 402653316 || type.flags & 1048576 && every(type.types, (type2) => !!(type2.flags & (402653316 | 32768) || isStringAndEmptyAnonymousObjectIntersection(type2)))) {\n          insertText = `${escapeSnippetText(name)}=${quote(sourceFile, preferences, \"$1\")}`;\n          isSnippet = true;\n        } else {\n          useBraces2 = true;\n        }\n      }\n      if (useBraces2) {\n        insertText = `${escapeSnippetText(name)}={$1}`;\n        isSnippet = true;\n      }\n    }\n    if (insertText !== void 0 && !preferences.includeCompletionsWithInsertText) {\n      return void 0;\n    }\n    if (originIsExport(origin) || originIsResolvedExport(origin)) {\n      data = originToCompletionEntryData(origin);\n      hasAction = !importStatementCompletion;\n    }\n    return {\n      name,\n      kind: ts_SymbolDisplay_exports.getSymbolKind(typeChecker, symbol, location),\n      kindModifiers: ts_SymbolDisplay_exports.getSymbolModifiers(typeChecker, symbol),\n      sortText,\n      source,\n      hasAction: hasAction ? true : void 0,\n      isRecommended: isRecommendedCompletionMatch(symbol, recommendedCompletion, typeChecker) || void 0,\n      insertText,\n      replacementSpan,\n      sourceDisplay,\n      labelDetails,\n      isSnippet,\n      isPackageJsonImport: originIsPackageJsonImport(origin) || void 0,\n      isImportStatementCompletion: !!importStatementCompletion || void 0,\n      data,\n      ...includeSymbol ? { symbol } : void 0\n    };\n  }\n  function isClassLikeMemberCompletion(symbol, location, sourceFile) {\n    if (isInJSFile(location)) {\n      return false;\n    }\n    const memberFlags = 106500 & 900095;\n    return !!(symbol.flags & memberFlags) && (isClassLike(location) || location.parent && location.parent.parent && isClassElement(location.parent) && location === location.parent.name && location.parent.getLastToken(sourceFile) === location.parent.name && isClassLike(location.parent.parent) || location.parent && isSyntaxList(location) && isClassLike(location.parent));\n  }\n  function getEntryForMemberCompletion(host, program, options, preferences, name, symbol, location, position, contextToken, formatContext) {\n    const classLikeDeclaration = findAncestor(location, isClassLike);\n    if (!classLikeDeclaration) {\n      return { insertText: name };\n    }\n    let isSnippet;\n    let replacementSpan;\n    let insertText = name;\n    const checker = program.getTypeChecker();\n    const sourceFile = location.getSourceFile();\n    const printer = createSnippetPrinter({\n      removeComments: true,\n      module: options.module,\n      target: options.target,\n      omitTrailingSemicolon: false,\n      newLine: getNewLineKind(getNewLineOrDefaultFromHost(host, formatContext == null ? void 0 : formatContext.options))\n    });\n    const importAdder = ts_codefix_exports.createImportAdder(sourceFile, program, preferences, host);\n    let body;\n    if (preferences.includeCompletionsWithSnippetText) {\n      isSnippet = true;\n      const emptyStmt = factory.createEmptyStatement();\n      body = factory.createBlock([emptyStmt], true);\n      setSnippetElement(emptyStmt, { kind: 0, order: 0 });\n    } else {\n      body = factory.createBlock([], true);\n    }\n    let modifiers = 0;\n    const { modifiers: presentModifiers, span: modifiersSpan } = getPresentModifiers(contextToken, sourceFile, position);\n    const isAbstract = !!(presentModifiers & 256);\n    const completionNodes = [];\n    ts_codefix_exports.addNewNodeForMemberSymbol(symbol, classLikeDeclaration, sourceFile, { program, host }, preferences, importAdder, (node) => {\n      let requiredModifiers = 0;\n      if (isAbstract) {\n        requiredModifiers |= 256;\n      }\n      if (isClassElement(node) && checker.getMemberOverrideModifierStatus(classLikeDeclaration, node, symbol) === 1) {\n        requiredModifiers |= 16384;\n      }\n      if (!completionNodes.length) {\n        modifiers = node.modifierFlagsCache | requiredModifiers | presentModifiers;\n      }\n      node = factory.updateModifiers(node, modifiers);\n      completionNodes.push(node);\n    }, body, ts_codefix_exports.PreserveOptionalFlags.Property, isAbstract);\n    if (completionNodes.length) {\n      const format = 1 | 131072;\n      replacementSpan = modifiersSpan;\n      if (formatContext) {\n        insertText = printer.printAndFormatSnippetList(format, factory.createNodeArray(completionNodes), sourceFile, formatContext);\n      } else {\n        insertText = printer.printSnippetList(format, factory.createNodeArray(completionNodes), sourceFile);\n      }\n    }\n    return { insertText, isSnippet, importAdder, replacementSpan };\n  }\n  function getPresentModifiers(contextToken, sourceFile, position) {\n    if (!contextToken || getLineAndCharacterOfPosition(sourceFile, position).line > getLineAndCharacterOfPosition(sourceFile, contextToken.getEnd()).line) {\n      return { modifiers: 0 };\n    }\n    let modifiers = 0;\n    let span;\n    let contextMod;\n    if (contextMod = isModifierLike2(contextToken)) {\n      modifiers |= modifierToFlag(contextMod);\n      span = createTextSpanFromNode(contextToken);\n    }\n    if (isPropertyDeclaration(contextToken.parent)) {\n      modifiers |= modifiersToFlags(contextToken.parent.modifiers) & 126975;\n      span = createTextSpanFromNode(contextToken.parent);\n    }\n    return { modifiers, span };\n  }\n  function isModifierLike2(node) {\n    if (isModifier(node)) {\n      return node.kind;\n    }\n    if (isIdentifier(node)) {\n      const originalKeywordKind = identifierToKeywordKind(node);\n      if (originalKeywordKind && isModifierKind(originalKeywordKind)) {\n        return originalKeywordKind;\n      }\n    }\n    return void 0;\n  }\n  function getEntryForObjectLiteralMethodCompletion(symbol, name, enclosingDeclaration, program, host, options, preferences, formatContext) {\n    const isSnippet = preferences.includeCompletionsWithSnippetText || void 0;\n    let insertText = name;\n    const sourceFile = enclosingDeclaration.getSourceFile();\n    const method = createObjectLiteralMethod(symbol, enclosingDeclaration, sourceFile, program, host, preferences);\n    if (!method) {\n      return void 0;\n    }\n    const printer = createSnippetPrinter({\n      removeComments: true,\n      module: options.module,\n      target: options.target,\n      omitTrailingSemicolon: false,\n      newLine: getNewLineKind(getNewLineOrDefaultFromHost(host, formatContext == null ? void 0 : formatContext.options))\n    });\n    if (formatContext) {\n      insertText = printer.printAndFormatSnippetList(16 | 64, factory.createNodeArray([method], true), sourceFile, formatContext);\n    } else {\n      insertText = printer.printSnippetList(16 | 64, factory.createNodeArray([method], true), sourceFile);\n    }\n    const signaturePrinter = createPrinter({\n      removeComments: true,\n      module: options.module,\n      target: options.target,\n      omitTrailingSemicolon: true\n    });\n    const methodSignature = factory.createMethodSignature(void 0, \"\", method.questionToken, method.typeParameters, method.parameters, method.type);\n    const labelDetails = { detail: signaturePrinter.printNode(4, methodSignature, sourceFile) };\n    return { isSnippet, insertText, labelDetails };\n  }\n  function createObjectLiteralMethod(symbol, enclosingDeclaration, sourceFile, program, host, preferences) {\n    const declarations = symbol.getDeclarations();\n    if (!(declarations && declarations.length)) {\n      return void 0;\n    }\n    const checker = program.getTypeChecker();\n    const declaration = declarations[0];\n    const name = getSynthesizedDeepClone(getNameOfDeclaration(declaration), false);\n    const type = checker.getWidenedType(checker.getTypeOfSymbolAtLocation(symbol, enclosingDeclaration));\n    const quotePreference = getQuotePreference(sourceFile, preferences);\n    const builderFlags = 33554432 | (quotePreference === 0 ? 268435456 : 0);\n    switch (declaration.kind) {\n      case 168:\n      case 169:\n      case 170:\n      case 171: {\n        let effectiveType = type.flags & 1048576 && type.types.length < 10 ? checker.getUnionType(type.types, 2) : type;\n        if (effectiveType.flags & 1048576) {\n          const functionTypes = filter(effectiveType.types, (type2) => checker.getSignaturesOfType(type2, 0).length > 0);\n          if (functionTypes.length === 1) {\n            effectiveType = functionTypes[0];\n          } else {\n            return void 0;\n          }\n        }\n        const signatures = checker.getSignaturesOfType(effectiveType, 0);\n        if (signatures.length !== 1) {\n          return void 0;\n        }\n        const typeNode = checker.typeToTypeNode(effectiveType, enclosingDeclaration, builderFlags, ts_codefix_exports.getNoopSymbolTrackerWithResolver({ program, host }));\n        if (!typeNode || !isFunctionTypeNode(typeNode)) {\n          return void 0;\n        }\n        let body;\n        if (preferences.includeCompletionsWithSnippetText) {\n          const emptyStmt = factory.createEmptyStatement();\n          body = factory.createBlock([emptyStmt], true);\n          setSnippetElement(emptyStmt, { kind: 0, order: 0 });\n        } else {\n          body = factory.createBlock([], true);\n        }\n        const parameters = typeNode.parameters.map((typedParam) => factory.createParameterDeclaration(void 0, typedParam.dotDotDotToken, typedParam.name, void 0, void 0, typedParam.initializer));\n        return factory.createMethodDeclaration(void 0, void 0, name, void 0, void 0, parameters, void 0, body);\n      }\n      default:\n        return void 0;\n    }\n  }\n  function createSnippetPrinter(printerOptions) {\n    let escapes;\n    const baseWriter = ts_textChanges_exports.createWriter(getNewLineCharacter(printerOptions));\n    const printer = createPrinter(printerOptions, baseWriter);\n    const writer = {\n      ...baseWriter,\n      write: (s) => escapingWrite(s, () => baseWriter.write(s)),\n      nonEscapingWrite: baseWriter.write,\n      writeLiteral: (s) => escapingWrite(s, () => baseWriter.writeLiteral(s)),\n      writeStringLiteral: (s) => escapingWrite(s, () => baseWriter.writeStringLiteral(s)),\n      writeSymbol: (s, symbol) => escapingWrite(s, () => baseWriter.writeSymbol(s, symbol)),\n      writeParameter: (s) => escapingWrite(s, () => baseWriter.writeParameter(s)),\n      writeComment: (s) => escapingWrite(s, () => baseWriter.writeComment(s)),\n      writeProperty: (s) => escapingWrite(s, () => baseWriter.writeProperty(s))\n    };\n    return {\n      printSnippetList,\n      printAndFormatSnippetList,\n      printNode,\n      printAndFormatNode\n    };\n    function escapingWrite(s, write) {\n      const escaped = escapeSnippetText(s);\n      if (escaped !== s) {\n        const start = baseWriter.getTextPos();\n        write();\n        const end = baseWriter.getTextPos();\n        escapes = append(escapes || (escapes = []), { newText: escaped, span: { start, length: end - start } });\n      } else {\n        write();\n      }\n    }\n    function printSnippetList(format, list, sourceFile) {\n      const unescaped = printUnescapedSnippetList(format, list, sourceFile);\n      return escapes ? ts_textChanges_exports.applyChanges(unescaped, escapes) : unescaped;\n    }\n    function printUnescapedSnippetList(format, list, sourceFile) {\n      escapes = void 0;\n      writer.clear();\n      printer.writeList(format, list, sourceFile, writer);\n      return writer.getText();\n    }\n    function printAndFormatSnippetList(format, list, sourceFile, formatContext) {\n      const syntheticFile = {\n        text: printUnescapedSnippetList(format, list, sourceFile),\n        getLineAndCharacterOfPosition(pos) {\n          return getLineAndCharacterOfPosition(this, pos);\n        }\n      };\n      const formatOptions = getFormatCodeSettingsForWriting(formatContext, sourceFile);\n      const changes = flatMap(list, (node) => {\n        const nodeWithPos = ts_textChanges_exports.assignPositionsToNode(node);\n        return ts_formatting_exports.formatNodeGivenIndentation(nodeWithPos, syntheticFile, sourceFile.languageVariant, 0, 0, { ...formatContext, options: formatOptions });\n      });\n      const allChanges = escapes ? stableSort(concatenate(changes, escapes), (a, b) => compareTextSpans(a.span, b.span)) : changes;\n      return ts_textChanges_exports.applyChanges(syntheticFile.text, allChanges);\n    }\n    function printNode(hint, node, sourceFile) {\n      const unescaped = printUnescapedNode(hint, node, sourceFile);\n      return escapes ? ts_textChanges_exports.applyChanges(unescaped, escapes) : unescaped;\n    }\n    function printUnescapedNode(hint, node, sourceFile) {\n      escapes = void 0;\n      writer.clear();\n      printer.writeNode(hint, node, sourceFile, writer);\n      return writer.getText();\n    }\n    function printAndFormatNode(hint, node, sourceFile, formatContext) {\n      const syntheticFile = {\n        text: printUnescapedNode(hint, node, sourceFile),\n        getLineAndCharacterOfPosition(pos) {\n          return getLineAndCharacterOfPosition(this, pos);\n        }\n      };\n      const formatOptions = getFormatCodeSettingsForWriting(formatContext, sourceFile);\n      const nodeWithPos = ts_textChanges_exports.assignPositionsToNode(node);\n      const changes = ts_formatting_exports.formatNodeGivenIndentation(nodeWithPos, syntheticFile, sourceFile.languageVariant, 0, 0, { ...formatContext, options: formatOptions });\n      const allChanges = escapes ? stableSort(concatenate(changes, escapes), (a, b) => compareTextSpans(a.span, b.span)) : changes;\n      return ts_textChanges_exports.applyChanges(syntheticFile.text, allChanges);\n    }\n  }\n  function originToCompletionEntryData(origin) {\n    const ambientModuleName = origin.fileName ? void 0 : stripQuotes(origin.moduleSymbol.name);\n    const isPackageJsonImport = origin.isFromPackageJson ? true : void 0;\n    if (originIsResolvedExport(origin)) {\n      const resolvedData = {\n        exportName: origin.exportName,\n        exportMapKey: origin.exportMapKey,\n        moduleSpecifier: origin.moduleSpecifier,\n        ambientModuleName,\n        fileName: origin.fileName,\n        isPackageJsonImport\n      };\n      return resolvedData;\n    }\n    const unresolvedData = {\n      exportName: origin.exportName,\n      exportMapKey: origin.exportMapKey,\n      fileName: origin.fileName,\n      ambientModuleName: origin.fileName ? void 0 : stripQuotes(origin.moduleSymbol.name),\n      isPackageJsonImport: origin.isFromPackageJson ? true : void 0\n    };\n    return unresolvedData;\n  }\n  function completionEntryDataToSymbolOriginInfo(data, completionName, moduleSymbol) {\n    const isDefaultExport = data.exportName === \"default\";\n    const isFromPackageJson = !!data.isPackageJsonImport;\n    if (completionEntryDataIsResolved(data)) {\n      const resolvedOrigin = {\n        kind: 32,\n        exportName: data.exportName,\n        exportMapKey: data.exportMapKey,\n        moduleSpecifier: data.moduleSpecifier,\n        symbolName: completionName,\n        fileName: data.fileName,\n        moduleSymbol,\n        isDefaultExport,\n        isFromPackageJson\n      };\n      return resolvedOrigin;\n    }\n    const unresolvedOrigin = {\n      kind: 4,\n      exportName: data.exportName,\n      exportMapKey: data.exportMapKey,\n      symbolName: completionName,\n      fileName: data.fileName,\n      moduleSymbol,\n      isDefaultExport,\n      isFromPackageJson\n    };\n    return unresolvedOrigin;\n  }\n  function getInsertTextAndReplacementSpanForImportCompletion(name, importStatementCompletion, origin, useSemicolons, sourceFile, options, preferences) {\n    const replacementSpan = importStatementCompletion.replacementSpan;\n    const quotedModuleSpecifier = quote(sourceFile, preferences, escapeSnippetText(origin.moduleSpecifier));\n    const exportKind = origin.isDefaultExport ? 1 : origin.exportName === \"export=\" ? 2 : 0;\n    const tabStop = preferences.includeCompletionsWithSnippetText ? \"$1\" : \"\";\n    const importKind = ts_codefix_exports.getImportKind(sourceFile, exportKind, options, true);\n    const isImportSpecifierTypeOnly = importStatementCompletion.couldBeTypeOnlyImportSpecifier;\n    const topLevelTypeOnlyText = importStatementCompletion.isTopLevelTypeOnly ? ` ${tokenToString(154)} ` : \" \";\n    const importSpecifierTypeOnlyText = isImportSpecifierTypeOnly ? `${tokenToString(154)} ` : \"\";\n    const suffix = useSemicolons ? \";\" : \"\";\n    switch (importKind) {\n      case 3:\n        return { replacementSpan, insertText: `import${topLevelTypeOnlyText}${escapeSnippetText(name)}${tabStop} = require(${quotedModuleSpecifier})${suffix}` };\n      case 1:\n        return { replacementSpan, insertText: `import${topLevelTypeOnlyText}${escapeSnippetText(name)}${tabStop} from ${quotedModuleSpecifier}${suffix}` };\n      case 2:\n        return { replacementSpan, insertText: `import${topLevelTypeOnlyText}* as ${escapeSnippetText(name)} from ${quotedModuleSpecifier}${suffix}` };\n      case 0:\n        return { replacementSpan, insertText: `import${topLevelTypeOnlyText}{ ${importSpecifierTypeOnlyText}${escapeSnippetText(name)}${tabStop} } from ${quotedModuleSpecifier}${suffix}` };\n    }\n  }\n  function quotePropertyName(sourceFile, preferences, name) {\n    if (/^\\d+$/.test(name)) {\n      return name;\n    }\n    return quote(sourceFile, preferences, name);\n  }\n  function isRecommendedCompletionMatch(localSymbol, recommendedCompletion, checker) {\n    return localSymbol === recommendedCompletion || !!(localSymbol.flags & 1048576) && checker.getExportSymbolOfSymbol(localSymbol) === recommendedCompletion;\n  }\n  function getSourceFromOrigin(origin) {\n    if (originIsExport(origin)) {\n      return stripQuotes(origin.moduleSymbol.name);\n    }\n    if (originIsResolvedExport(origin)) {\n      return origin.moduleSpecifier;\n    }\n    if ((origin == null ? void 0 : origin.kind) === 1) {\n      return \"ThisProperty/\";\n    }\n    if ((origin == null ? void 0 : origin.kind) === 64) {\n      return \"TypeOnlyAlias/\";\n    }\n  }\n  function getCompletionEntriesFromSymbols(symbols, entries, replacementToken, contextToken, location, position, sourceFile, host, program, target, log, kind, preferences, compilerOptions, formatContext, isTypeOnlyLocation, propertyAccessToConvert, jsxIdentifierExpected, isJsxInitializer, importStatementCompletion, recommendedCompletion, symbolToOriginInfoMap, symbolToSortTextMap, isJsxIdentifierExpected, isRightOfOpenTag, includeSymbol = false) {\n    var _a2;\n    const start = timestamp();\n    const variableDeclaration = getVariableDeclaration(location);\n    const useSemicolons = probablyUsesSemicolons(sourceFile);\n    const typeChecker = program.getTypeChecker();\n    const uniques = /* @__PURE__ */ new Map();\n    for (let i = 0; i < symbols.length; i++) {\n      const symbol = symbols[i];\n      const origin = symbolToOriginInfoMap == null ? void 0 : symbolToOriginInfoMap[i];\n      const info = getCompletionEntryDisplayNameForSymbol(symbol, target, origin, kind, !!jsxIdentifierExpected);\n      if (!info || uniques.get(info.name) && (!origin || !originIsObjectLiteralMethod(origin)) || kind === 1 && symbolToSortTextMap && !shouldIncludeSymbol(symbol, symbolToSortTextMap)) {\n        continue;\n      }\n      const { name, needsConvertPropertyAccess } = info;\n      const originalSortText = (_a2 = symbolToSortTextMap == null ? void 0 : symbolToSortTextMap[getSymbolId(symbol)]) != null ? _a2 : SortText.LocationPriority;\n      const sortText = isDeprecated(symbol, typeChecker) ? SortText.Deprecated(originalSortText) : originalSortText;\n      const entry = createCompletionEntry(symbol, sortText, replacementToken, contextToken, location, position, sourceFile, host, program, name, needsConvertPropertyAccess, origin, recommendedCompletion, propertyAccessToConvert, isJsxInitializer, importStatementCompletion, useSemicolons, compilerOptions, preferences, kind, formatContext, isJsxIdentifierExpected, isRightOfOpenTag, includeSymbol);\n      if (!entry) {\n        continue;\n      }\n      const shouldShadowLaterSymbols = (!origin || originIsTypeOnlyAlias(origin)) && !(symbol.parent === void 0 && !some(symbol.declarations, (d) => d.getSourceFile() === location.getSourceFile()));\n      uniques.set(name, shouldShadowLaterSymbols);\n      insertSorted(entries, entry, compareCompletionEntries, true);\n    }\n    log(\"getCompletionsAtPosition: getCompletionEntriesFromSymbols: \" + (timestamp() - start));\n    return {\n      has: (name) => uniques.has(name),\n      add: (name) => uniques.set(name, true)\n    };\n    function shouldIncludeSymbol(symbol, symbolToSortTextMap2) {\n      let allFlags = symbol.flags;\n      if (!isSourceFile(location)) {\n        if (isExportAssignment(location.parent)) {\n          return true;\n        }\n        if (variableDeclaration && symbol.valueDeclaration === variableDeclaration) {\n          return false;\n        }\n        const symbolOrigin = skipAlias(symbol, typeChecker);\n        if (!!sourceFile.externalModuleIndicator && !compilerOptions.allowUmdGlobalAccess && symbolToSortTextMap2[getSymbolId(symbol)] === SortText.GlobalsOrKeywords && (symbolToSortTextMap2[getSymbolId(symbolOrigin)] === SortText.AutoImportSuggestions || symbolToSortTextMap2[getSymbolId(symbolOrigin)] === SortText.LocationPriority)) {\n          return false;\n        }\n        allFlags |= getCombinedLocalAndExportSymbolFlags(symbolOrigin);\n        if (isInRightSideOfInternalImportEqualsDeclaration(location)) {\n          return !!(allFlags & 1920);\n        }\n        if (isTypeOnlyLocation) {\n          return symbolCanBeReferencedAtTypeLocation(symbol, typeChecker);\n        }\n      }\n      return !!(allFlags & 111551);\n    }\n  }\n  function getLabelCompletionAtPosition(node) {\n    const entries = getLabelStatementCompletions(node);\n    if (entries.length) {\n      return { isGlobalCompletion: false, isMemberCompletion: false, isNewIdentifierLocation: false, entries };\n    }\n  }\n  function getLabelStatementCompletions(node) {\n    const entries = [];\n    const uniques = /* @__PURE__ */ new Map();\n    let current = node;\n    while (current) {\n      if (isFunctionLike(current)) {\n        break;\n      }\n      if (isLabeledStatement(current)) {\n        const name = current.label.text;\n        if (!uniques.has(name)) {\n          uniques.set(name, true);\n          entries.push({\n            name,\n            kindModifiers: \"\",\n            kind: \"label\",\n            sortText: SortText.LocationPriority\n          });\n        }\n      }\n      current = current.parent;\n    }\n    return entries;\n  }\n  function getSymbolCompletionFromEntryId(program, log, sourceFile, position, entryId, host, preferences) {\n    if (entryId.source === \"SwitchCases/\") {\n      return { type: \"cases\" };\n    }\n    if (entryId.data) {\n      const autoImport = getAutoImportSymbolFromCompletionEntryData(entryId.name, entryId.data, program, host);\n      if (autoImport) {\n        const { contextToken: contextToken2, previousToken: previousToken2 } = getRelevantTokens(position, sourceFile);\n        return {\n          type: \"symbol\",\n          symbol: autoImport.symbol,\n          location: getTouchingPropertyName(sourceFile, position),\n          previousToken: previousToken2,\n          contextToken: contextToken2,\n          isJsxInitializer: false,\n          isTypeOnlyLocation: false,\n          origin: autoImport.origin\n        };\n      }\n    }\n    const compilerOptions = program.getCompilerOptions();\n    const completionData = getCompletionData(program, log, sourceFile, compilerOptions, position, { includeCompletionsForModuleExports: true, includeCompletionsWithInsertText: true }, entryId, host, void 0);\n    if (!completionData) {\n      return { type: \"none\" };\n    }\n    if (completionData.kind !== 0) {\n      return { type: \"request\", request: completionData };\n    }\n    const { symbols, literals, location, completionKind, symbolToOriginInfoMap, contextToken, previousToken, isJsxInitializer, isTypeOnlyLocation } = completionData;\n    const literal = find(literals, (l) => completionNameForLiteral(sourceFile, preferences, l) === entryId.name);\n    if (literal !== void 0)\n      return { type: \"literal\", literal };\n    return firstDefined(symbols, (symbol, index) => {\n      const origin = symbolToOriginInfoMap[index];\n      const info = getCompletionEntryDisplayNameForSymbol(symbol, getEmitScriptTarget(compilerOptions), origin, completionKind, completionData.isJsxIdentifierExpected);\n      return info && info.name === entryId.name && (entryId.source === \"ClassMemberSnippet/\" && symbol.flags & 106500 || entryId.source === \"ObjectLiteralMethodSnippet/\" && symbol.flags & (4 | 8192) || getSourceFromOrigin(origin) === entryId.source) ? { type: \"symbol\", symbol, location, origin, contextToken, previousToken, isJsxInitializer, isTypeOnlyLocation } : void 0;\n    }) || { type: \"none\" };\n  }\n  function getCompletionEntryDetails(program, log, sourceFile, position, entryId, host, formatContext, preferences, cancellationToken) {\n    const typeChecker = program.getTypeChecker();\n    const compilerOptions = program.getCompilerOptions();\n    const { name, source, data } = entryId;\n    const { previousToken, contextToken } = getRelevantTokens(position, sourceFile);\n    if (isInString(sourceFile, position, previousToken)) {\n      return ts_Completions_StringCompletions_exports.getStringLiteralCompletionDetails(name, sourceFile, position, previousToken, typeChecker, compilerOptions, host, cancellationToken, preferences);\n    }\n    const symbolCompletion = getSymbolCompletionFromEntryId(program, log, sourceFile, position, entryId, host, preferences);\n    switch (symbolCompletion.type) {\n      case \"request\": {\n        const { request } = symbolCompletion;\n        switch (request.kind) {\n          case 1:\n            return ts_JsDoc_exports.getJSDocTagNameCompletionDetails(name);\n          case 2:\n            return ts_JsDoc_exports.getJSDocTagCompletionDetails(name);\n          case 3:\n            return ts_JsDoc_exports.getJSDocParameterNameCompletionDetails(name);\n          case 4:\n            return some(request.keywordCompletions, (c) => c.name === name) ? createSimpleDetails(name, \"keyword\", 5) : void 0;\n          default:\n            return Debug.assertNever(request);\n        }\n      }\n      case \"symbol\": {\n        const { symbol, location, contextToken: contextToken2, origin, previousToken: previousToken2 } = symbolCompletion;\n        const { codeActions, sourceDisplay } = getCompletionEntryCodeActionsAndSourceDisplay(name, location, contextToken2, origin, symbol, program, host, compilerOptions, sourceFile, position, previousToken2, formatContext, preferences, data, source, cancellationToken);\n        const symbolName2 = originIsComputedPropertyName(origin) ? origin.symbolName : symbol.name;\n        return createCompletionDetailsForSymbol(symbol, symbolName2, typeChecker, sourceFile, location, cancellationToken, codeActions, sourceDisplay);\n      }\n      case \"literal\": {\n        const { literal } = symbolCompletion;\n        return createSimpleDetails(completionNameForLiteral(sourceFile, preferences, literal), \"string\", typeof literal === \"string\" ? 8 : 7);\n      }\n      case \"cases\": {\n        const { entry, importAdder } = getExhaustiveCaseSnippets(contextToken.parent, sourceFile, preferences, program.getCompilerOptions(), host, program, void 0);\n        if (importAdder.hasFixes()) {\n          const changes = ts_textChanges_exports.ChangeTracker.with({ host, formatContext, preferences }, importAdder.writeFixes);\n          return {\n            name: entry.name,\n            kind: \"\",\n            kindModifiers: \"\",\n            displayParts: [],\n            sourceDisplay: void 0,\n            codeActions: [{\n              changes,\n              description: diagnosticToString([Diagnostics.Includes_imports_of_types_referenced_by_0, name])\n            }]\n          };\n        }\n        return {\n          name: entry.name,\n          kind: \"\",\n          kindModifiers: \"\",\n          displayParts: [],\n          sourceDisplay: void 0\n        };\n      }\n      case \"none\":\n        return allKeywordsCompletions().some((c) => c.name === name) ? createSimpleDetails(name, \"keyword\", 5) : void 0;\n      default:\n        Debug.assertNever(symbolCompletion);\n    }\n  }\n  function createSimpleDetails(name, kind, kind2) {\n    return createCompletionDetails(name, \"\", kind, [displayPart(name, kind2)]);\n  }\n  function createCompletionDetailsForSymbol(symbol, name, checker, sourceFile, location, cancellationToken, codeActions, sourceDisplay) {\n    const { displayParts, documentation, symbolKind, tags } = checker.runWithCancellationToken(cancellationToken, (checker2) => ts_SymbolDisplay_exports.getSymbolDisplayPartsDocumentationAndSymbolKind(checker2, symbol, sourceFile, location, location, 7));\n    return createCompletionDetails(name, ts_SymbolDisplay_exports.getSymbolModifiers(checker, symbol), symbolKind, displayParts, documentation, tags, codeActions, sourceDisplay);\n  }\n  function createCompletionDetails(name, kindModifiers, kind, displayParts, documentation, tags, codeActions, source) {\n    return { name, kindModifiers, kind, displayParts, documentation, tags, codeActions, source, sourceDisplay: source };\n  }\n  function getCompletionEntryCodeActionsAndSourceDisplay(name, location, contextToken, origin, symbol, program, host, compilerOptions, sourceFile, position, previousToken, formatContext, preferences, data, source, cancellationToken) {\n    if (data == null ? void 0 : data.moduleSpecifier) {\n      if (previousToken && getImportStatementCompletionInfo(contextToken || previousToken).replacementSpan) {\n        return { codeActions: void 0, sourceDisplay: [textPart(data.moduleSpecifier)] };\n      }\n    }\n    if (source === \"ClassMemberSnippet/\") {\n      const { importAdder } = getEntryForMemberCompletion(host, program, compilerOptions, preferences, name, symbol, location, position, contextToken, formatContext);\n      if (importAdder) {\n        const changes = ts_textChanges_exports.ChangeTracker.with({ host, formatContext, preferences }, importAdder.writeFixes);\n        return {\n          sourceDisplay: void 0,\n          codeActions: [{\n            changes,\n            description: diagnosticToString([Diagnostics.Includes_imports_of_types_referenced_by_0, name])\n          }]\n        };\n      }\n    }\n    if (originIsTypeOnlyAlias(origin)) {\n      const codeAction2 = ts_codefix_exports.getPromoteTypeOnlyCompletionAction(sourceFile, origin.declaration.name, program, host, formatContext, preferences);\n      Debug.assertIsDefined(codeAction2, \"Expected to have a code action for promoting type-only alias\");\n      return { codeActions: [codeAction2], sourceDisplay: void 0 };\n    }\n    if (!origin || !(originIsExport(origin) || originIsResolvedExport(origin))) {\n      return { codeActions: void 0, sourceDisplay: void 0 };\n    }\n    const checker = origin.isFromPackageJson ? host.getPackageJsonAutoImportProvider().getTypeChecker() : program.getTypeChecker();\n    const { moduleSymbol } = origin;\n    const targetSymbol = checker.getMergedSymbol(skipAlias(symbol.exportSymbol || symbol, checker));\n    const isJsxOpeningTagName = (contextToken == null ? void 0 : contextToken.kind) === 29 && isJsxOpeningLikeElement(contextToken.parent);\n    const { moduleSpecifier, codeAction } = ts_codefix_exports.getImportCompletionAction(targetSymbol, moduleSymbol, data == null ? void 0 : data.exportMapKey, sourceFile, name, isJsxOpeningTagName, host, program, formatContext, previousToken && isIdentifier(previousToken) ? previousToken.getStart(sourceFile) : position, preferences, cancellationToken);\n    Debug.assert(!(data == null ? void 0 : data.moduleSpecifier) || moduleSpecifier === data.moduleSpecifier);\n    return { sourceDisplay: [textPart(moduleSpecifier)], codeActions: [codeAction] };\n  }\n  function getCompletionEntrySymbol(program, log, sourceFile, position, entryId, host, preferences) {\n    const completion = getSymbolCompletionFromEntryId(program, log, sourceFile, position, entryId, host, preferences);\n    return completion.type === \"symbol\" ? completion.symbol : void 0;\n  }\n  function getRecommendedCompletion(previousToken, contextualType, checker) {\n    return firstDefined(contextualType && (contextualType.isUnion() ? contextualType.types : [contextualType]), (type) => {\n      const symbol = type && type.symbol;\n      return symbol && (symbol.flags & (8 | 384 | 32) && !isAbstractConstructorSymbol(symbol)) ? getFirstSymbolInChain(symbol, previousToken, checker) : void 0;\n    });\n  }\n  function getContextualType(previousToken, position, sourceFile, checker) {\n    const { parent: parent2 } = previousToken;\n    switch (previousToken.kind) {\n      case 79:\n        return getContextualTypeFromParent(previousToken, checker);\n      case 63:\n        switch (parent2.kind) {\n          case 257:\n            return checker.getContextualType(parent2.initializer);\n          case 223:\n            return checker.getTypeAtLocation(parent2.left);\n          case 288:\n            return checker.getContextualTypeForJsxAttribute(parent2);\n          default:\n            return void 0;\n        }\n      case 103:\n        return checker.getContextualType(parent2);\n      case 82:\n        const caseClause = tryCast(parent2, isCaseClause);\n        return caseClause ? getSwitchedType(caseClause, checker) : void 0;\n      case 18:\n        return isJsxExpression(parent2) && !isJsxElement(parent2.parent) && !isJsxFragment(parent2.parent) ? checker.getContextualTypeForJsxAttribute(parent2.parent) : void 0;\n      default:\n        const argInfo = ts_SignatureHelp_exports.getArgumentInfoForCompletions(previousToken, position, sourceFile);\n        return argInfo ? checker.getContextualTypeForArgumentAtIndex(argInfo.invocation, argInfo.argumentIndex + (previousToken.kind === 27 ? 1 : 0)) : isEqualityOperatorKind(previousToken.kind) && isBinaryExpression(parent2) && isEqualityOperatorKind(parent2.operatorToken.kind) ? checker.getTypeAtLocation(parent2.left) : checker.getContextualType(previousToken);\n    }\n  }\n  function getFirstSymbolInChain(symbol, enclosingDeclaration, checker) {\n    const chain = checker.getAccessibleSymbolChain(symbol, enclosingDeclaration, 67108863, false);\n    if (chain)\n      return first(chain);\n    return symbol.parent && (isModuleSymbol(symbol.parent) ? symbol : getFirstSymbolInChain(symbol.parent, enclosingDeclaration, checker));\n  }\n  function isModuleSymbol(symbol) {\n    var _a2;\n    return !!((_a2 = symbol.declarations) == null ? void 0 : _a2.some((d) => d.kind === 308));\n  }\n  function getCompletionData(program, log, sourceFile, compilerOptions, position, preferences, detailsEntryId, host, formatContext, cancellationToken) {\n    const typeChecker = program.getTypeChecker();\n    const inCheckedFile = isCheckedFile(sourceFile, compilerOptions);\n    let start = timestamp();\n    let currentToken = getTokenAtPosition(sourceFile, position);\n    log(\"getCompletionData: Get current token: \" + (timestamp() - start));\n    start = timestamp();\n    const insideComment = isInComment(sourceFile, position, currentToken);\n    log(\"getCompletionData: Is inside comment: \" + (timestamp() - start));\n    let insideJsDocTagTypeExpression = false;\n    let isInSnippetScope = false;\n    if (insideComment) {\n      if (hasDocComment(sourceFile, position)) {\n        if (sourceFile.text.charCodeAt(position - 1) === 64) {\n          return { kind: 1 };\n        } else {\n          const lineStart = getLineStartPositionForPosition(position, sourceFile);\n          if (!/[^\\*|\\s(/)]/.test(sourceFile.text.substring(lineStart, position))) {\n            return { kind: 2 };\n          }\n        }\n      }\n      const tag = getJsDocTagAtPosition(currentToken, position);\n      if (tag) {\n        if (tag.tagName.pos <= position && position <= tag.tagName.end) {\n          return { kind: 1 };\n        }\n        const typeExpression = tryGetTypeExpressionFromTag(tag);\n        if (typeExpression) {\n          currentToken = getTokenAtPosition(sourceFile, position);\n          if (!currentToken || !isDeclarationName(currentToken) && (currentToken.parent.kind !== 351 || currentToken.parent.name !== currentToken)) {\n            insideJsDocTagTypeExpression = isCurrentlyEditingNode(typeExpression);\n          }\n        }\n        if (!insideJsDocTagTypeExpression && isJSDocParameterTag(tag) && (nodeIsMissing(tag.name) || tag.name.pos <= position && position <= tag.name.end)) {\n          return { kind: 3, tag };\n        }\n      }\n      if (!insideJsDocTagTypeExpression) {\n        log(\"Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.\");\n        return void 0;\n      }\n    }\n    start = timestamp();\n    const isJsOnlyLocation = !insideJsDocTagTypeExpression && isSourceFileJS(sourceFile);\n    const tokens = getRelevantTokens(position, sourceFile);\n    const previousToken = tokens.previousToken;\n    let contextToken = tokens.contextToken;\n    log(\"getCompletionData: Get previous token: \" + (timestamp() - start));\n    let node = currentToken;\n    let propertyAccessToConvert;\n    let isRightOfDot = false;\n    let isRightOfQuestionDot = false;\n    let isRightOfOpenTag = false;\n    let isStartingCloseTag = false;\n    let isJsxInitializer = false;\n    let isJsxIdentifierExpected = false;\n    let importStatementCompletion;\n    let location = getTouchingPropertyName(sourceFile, position);\n    let keywordFilters = 0;\n    let isNewIdentifierLocation = false;\n    let flags = 0;\n    if (contextToken) {\n      const importStatementCompletionInfo = getImportStatementCompletionInfo(contextToken);\n      if (importStatementCompletionInfo.keywordCompletion) {\n        if (importStatementCompletionInfo.isKeywordOnlyCompletion) {\n          return {\n            kind: 4,\n            keywordCompletions: [keywordToCompletionEntry(importStatementCompletionInfo.keywordCompletion)],\n            isNewIdentifierLocation: importStatementCompletionInfo.isNewIdentifierLocation\n          };\n        }\n        keywordFilters = keywordFiltersFromSyntaxKind(importStatementCompletionInfo.keywordCompletion);\n      }\n      if (importStatementCompletionInfo.replacementSpan && preferences.includeCompletionsForImportStatements && preferences.includeCompletionsWithInsertText) {\n        flags |= 2;\n        importStatementCompletion = importStatementCompletionInfo;\n        isNewIdentifierLocation = importStatementCompletionInfo.isNewIdentifierLocation;\n      }\n      if (!importStatementCompletionInfo.replacementSpan && isCompletionListBlocker(contextToken)) {\n        log(\"Returning an empty list because completion was requested in an invalid position.\");\n        return keywordFilters ? keywordCompletionData(keywordFilters, isJsOnlyLocation, isNewIdentifierDefinitionLocation()) : void 0;\n      }\n      let parent2 = contextToken.parent;\n      if (contextToken.kind === 24 || contextToken.kind === 28) {\n        isRightOfDot = contextToken.kind === 24;\n        isRightOfQuestionDot = contextToken.kind === 28;\n        switch (parent2.kind) {\n          case 208:\n            propertyAccessToConvert = parent2;\n            node = propertyAccessToConvert.expression;\n            const leftmostAccessExpression = getLeftmostAccessExpression(propertyAccessToConvert);\n            if (nodeIsMissing(leftmostAccessExpression) || (isCallExpression(node) || isFunctionLike(node)) && node.end === contextToken.pos && node.getChildCount(sourceFile) && last(node.getChildren(sourceFile)).kind !== 21) {\n              return void 0;\n            }\n            break;\n          case 163:\n            node = parent2.left;\n            break;\n          case 264:\n            node = parent2.name;\n            break;\n          case 202:\n            node = parent2;\n            break;\n          case 233:\n            node = parent2.getFirstToken(sourceFile);\n            Debug.assert(node.kind === 100 || node.kind === 103);\n            break;\n          default:\n            return void 0;\n        }\n      } else if (!importStatementCompletion) {\n        if (parent2 && parent2.kind === 208) {\n          contextToken = parent2;\n          parent2 = parent2.parent;\n        }\n        if (currentToken.parent === location) {\n          switch (currentToken.kind) {\n            case 31:\n              if (currentToken.parent.kind === 281 || currentToken.parent.kind === 283) {\n                location = currentToken;\n              }\n              break;\n            case 43:\n              if (currentToken.parent.kind === 282) {\n                location = currentToken;\n              }\n              break;\n          }\n        }\n        switch (parent2.kind) {\n          case 284:\n            if (contextToken.kind === 43) {\n              isStartingCloseTag = true;\n              location = contextToken;\n            }\n            break;\n          case 223:\n            if (!binaryExpressionMayBeOpenTag(parent2)) {\n              break;\n            }\n          case 282:\n          case 281:\n          case 283:\n            isJsxIdentifierExpected = true;\n            if (contextToken.kind === 29) {\n              isRightOfOpenTag = true;\n              location = contextToken;\n            }\n            break;\n          case 291:\n          case 290:\n            if (previousToken.kind === 19 || previousToken.kind === 79 && previousToken.parent.kind === 288) {\n              isJsxIdentifierExpected = true;\n            }\n            break;\n          case 288:\n            if (parent2.initializer === previousToken && previousToken.end < position) {\n              isJsxIdentifierExpected = true;\n              break;\n            }\n            switch (previousToken.kind) {\n              case 63:\n                isJsxInitializer = true;\n                break;\n              case 79:\n                isJsxIdentifierExpected = true;\n                if (parent2 !== previousToken.parent && !parent2.initializer && findChildOfKind(parent2, 63, sourceFile)) {\n                  isJsxInitializer = previousToken;\n                }\n            }\n            break;\n        }\n      }\n    }\n    const semanticStart = timestamp();\n    let completionKind = 5;\n    let isNonContextualObjectLiteral = false;\n    let hasUnresolvedAutoImports = false;\n    let symbols = [];\n    let importSpecifierResolver;\n    const symbolToOriginInfoMap = [];\n    const symbolToSortTextMap = [];\n    const seenPropertySymbols = /* @__PURE__ */ new Map();\n    const isTypeOnlyLocation = isTypeOnlyCompletion();\n    const getModuleSpecifierResolutionHost = memoizeOne((isFromPackageJson) => {\n      return createModuleSpecifierResolutionHost(isFromPackageJson ? host.getPackageJsonAutoImportProvider() : program, host);\n    });\n    if (isRightOfDot || isRightOfQuestionDot) {\n      getTypeScriptMemberSymbols();\n    } else if (isRightOfOpenTag) {\n      symbols = typeChecker.getJsxIntrinsicTagNamesAt(location);\n      Debug.assertEachIsDefined(symbols, \"getJsxIntrinsicTagNames() should all be defined\");\n      tryGetGlobalSymbols();\n      completionKind = 1;\n      keywordFilters = 0;\n    } else if (isStartingCloseTag) {\n      const tagName = contextToken.parent.parent.openingElement.tagName;\n      const tagSymbol = typeChecker.getSymbolAtLocation(tagName);\n      if (tagSymbol) {\n        symbols = [tagSymbol];\n      }\n      completionKind = 1;\n      keywordFilters = 0;\n    } else {\n      if (!tryGetGlobalSymbols()) {\n        return keywordFilters ? keywordCompletionData(keywordFilters, isJsOnlyLocation, isNewIdentifierLocation) : void 0;\n      }\n    }\n    log(\"getCompletionData: Semantic work: \" + (timestamp() - semanticStart));\n    const contextualType = previousToken && getContextualType(previousToken, position, sourceFile, typeChecker);\n    const literals = mapDefined(contextualType && (contextualType.isUnion() ? contextualType.types : [contextualType]), (t) => t.isLiteral() && !(t.flags & 1024) ? t.value : void 0);\n    const recommendedCompletion = previousToken && contextualType && getRecommendedCompletion(previousToken, contextualType, typeChecker);\n    return {\n      kind: 0,\n      symbols,\n      completionKind,\n      isInSnippetScope,\n      propertyAccessToConvert,\n      isNewIdentifierLocation,\n      location,\n      keywordFilters,\n      literals,\n      symbolToOriginInfoMap,\n      recommendedCompletion,\n      previousToken,\n      contextToken,\n      isJsxInitializer,\n      insideJsDocTagTypeExpression,\n      symbolToSortTextMap,\n      isTypeOnlyLocation,\n      isJsxIdentifierExpected,\n      isRightOfOpenTag,\n      isRightOfDotOrQuestionDot: isRightOfDot || isRightOfQuestionDot,\n      importStatementCompletion,\n      hasUnresolvedAutoImports,\n      flags\n    };\n    function isTagWithTypeExpression(tag) {\n      switch (tag.kind) {\n        case 344:\n        case 351:\n        case 345:\n        case 347:\n        case 349:\n        case 352:\n        case 353:\n          return true;\n        case 348:\n          return !!tag.constraint;\n        default:\n          return false;\n      }\n    }\n    function tryGetTypeExpressionFromTag(tag) {\n      if (isTagWithTypeExpression(tag)) {\n        const typeExpression = isJSDocTemplateTag(tag) ? tag.constraint : tag.typeExpression;\n        return typeExpression && typeExpression.kind === 312 ? typeExpression : void 0;\n      }\n      if (isJSDocAugmentsTag(tag) || isJSDocImplementsTag(tag)) {\n        return tag.class;\n      }\n      return void 0;\n    }\n    function getTypeScriptMemberSymbols() {\n      completionKind = 2;\n      const isImportType = isLiteralImportTypeNode(node);\n      const isTypeLocation = insideJsDocTagTypeExpression || isImportType && !node.isTypeOf || isPartOfTypeNode(node.parent) || isPossiblyTypeArgumentPosition(contextToken, sourceFile, typeChecker);\n      const isRhsOfImportDeclaration = isInRightSideOfInternalImportEqualsDeclaration(node);\n      if (isEntityName(node) || isImportType || isPropertyAccessExpression(node)) {\n        const isNamespaceName = isModuleDeclaration(node.parent);\n        if (isNamespaceName)\n          isNewIdentifierLocation = true;\n        let symbol = typeChecker.getSymbolAtLocation(node);\n        if (symbol) {\n          symbol = skipAlias(symbol, typeChecker);\n          if (symbol.flags & (1536 | 384)) {\n            const exportedSymbols = typeChecker.getExportsOfModule(symbol);\n            Debug.assertEachIsDefined(exportedSymbols, \"getExportsOfModule() should all be defined\");\n            const isValidValueAccess = (symbol2) => typeChecker.isValidPropertyAccess(isImportType ? node : node.parent, symbol2.name);\n            const isValidTypeAccess = (symbol2) => symbolCanBeReferencedAtTypeLocation(symbol2, typeChecker);\n            const isValidAccess = isNamespaceName ? (symbol2) => {\n              var _a2;\n              return !!(symbol2.flags & 1920) && !((_a2 = symbol2.declarations) == null ? void 0 : _a2.every((d) => d.parent === node.parent));\n            } : isRhsOfImportDeclaration ? (symbol2) => isValidTypeAccess(symbol2) || isValidValueAccess(symbol2) : isTypeLocation ? isValidTypeAccess : isValidValueAccess;\n            for (const exportedSymbol of exportedSymbols) {\n              if (isValidAccess(exportedSymbol)) {\n                symbols.push(exportedSymbol);\n              }\n            }\n            if (!isTypeLocation && symbol.declarations && symbol.declarations.some((d) => d.kind !== 308 && d.kind !== 264 && d.kind !== 263)) {\n              let type = typeChecker.getTypeOfSymbolAtLocation(symbol, node).getNonOptionalType();\n              let insertQuestionDot = false;\n              if (type.isNullableType()) {\n                const canCorrectToQuestionDot = isRightOfDot && !isRightOfQuestionDot && preferences.includeAutomaticOptionalChainCompletions !== false;\n                if (canCorrectToQuestionDot || isRightOfQuestionDot) {\n                  type = type.getNonNullableType();\n                  if (canCorrectToQuestionDot) {\n                    insertQuestionDot = true;\n                  }\n                }\n              }\n              addTypeProperties(type, !!(node.flags & 32768), insertQuestionDot);\n            }\n            return;\n          }\n        }\n      }\n      if (!isTypeLocation) {\n        typeChecker.tryGetThisTypeAt(node, false);\n        let type = typeChecker.getTypeAtLocation(node).getNonOptionalType();\n        let insertQuestionDot = false;\n        if (type.isNullableType()) {\n          const canCorrectToQuestionDot = isRightOfDot && !isRightOfQuestionDot && preferences.includeAutomaticOptionalChainCompletions !== false;\n          if (canCorrectToQuestionDot || isRightOfQuestionDot) {\n            type = type.getNonNullableType();\n            if (canCorrectToQuestionDot) {\n              insertQuestionDot = true;\n            }\n          }\n        }\n        addTypeProperties(type, !!(node.flags & 32768), insertQuestionDot);\n      }\n    }\n    function addTypeProperties(type, insertAwait, insertQuestionDot) {\n      isNewIdentifierLocation = !!type.getStringIndexType();\n      if (isRightOfQuestionDot && some(type.getCallSignatures())) {\n        isNewIdentifierLocation = true;\n      }\n      const propertyAccess = node.kind === 202 ? node : node.parent;\n      if (inCheckedFile) {\n        for (const symbol of type.getApparentProperties()) {\n          if (typeChecker.isValidPropertyAccessForCompletions(propertyAccess, type, symbol)) {\n            addPropertySymbol(symbol, false, insertQuestionDot);\n          }\n        }\n      } else {\n        symbols.push(...filter(getPropertiesForCompletion(type, typeChecker), (s) => typeChecker.isValidPropertyAccessForCompletions(propertyAccess, type, s)));\n      }\n      if (insertAwait && preferences.includeCompletionsWithInsertText) {\n        const promiseType = typeChecker.getPromisedTypeOfPromise(type);\n        if (promiseType) {\n          for (const symbol of promiseType.getApparentProperties()) {\n            if (typeChecker.isValidPropertyAccessForCompletions(propertyAccess, promiseType, symbol)) {\n              addPropertySymbol(symbol, true, insertQuestionDot);\n            }\n          }\n        }\n      }\n    }\n    function addPropertySymbol(symbol, insertAwait, insertQuestionDot) {\n      var _a2;\n      const computedPropertyName = firstDefined(symbol.declarations, (decl) => tryCast(getNameOfDeclaration(decl), isComputedPropertyName));\n      if (computedPropertyName) {\n        const leftMostName = getLeftMostName(computedPropertyName.expression);\n        const nameSymbol = leftMostName && typeChecker.getSymbolAtLocation(leftMostName);\n        const firstAccessibleSymbol = nameSymbol && getFirstSymbolInChain(nameSymbol, contextToken, typeChecker);\n        if (firstAccessibleSymbol && addToSeen(seenPropertySymbols, getSymbolId(firstAccessibleSymbol))) {\n          const index = symbols.length;\n          symbols.push(firstAccessibleSymbol);\n          const moduleSymbol = firstAccessibleSymbol.parent;\n          if (!moduleSymbol || !isExternalModuleSymbol(moduleSymbol) || typeChecker.tryGetMemberInModuleExportsAndProperties(firstAccessibleSymbol.name, moduleSymbol) !== firstAccessibleSymbol) {\n            symbolToOriginInfoMap[index] = { kind: getNullableSymbolOriginInfoKind(2) };\n          } else {\n            const fileName = isExternalModuleNameRelative(stripQuotes(moduleSymbol.name)) ? (_a2 = getSourceFileOfModule(moduleSymbol)) == null ? void 0 : _a2.fileName : void 0;\n            const { moduleSpecifier } = (importSpecifierResolver || (importSpecifierResolver = ts_codefix_exports.createImportSpecifierResolver(sourceFile, program, host, preferences))).getModuleSpecifierForBestExportInfo([{\n              exportKind: 0,\n              moduleFileName: fileName,\n              isFromPackageJson: false,\n              moduleSymbol,\n              symbol: firstAccessibleSymbol,\n              targetFlags: skipAlias(firstAccessibleSymbol, typeChecker).flags\n            }], position, isValidTypeOnlyAliasUseSite(location)) || {};\n            if (moduleSpecifier) {\n              const origin = {\n                kind: getNullableSymbolOriginInfoKind(6),\n                moduleSymbol,\n                isDefaultExport: false,\n                symbolName: firstAccessibleSymbol.name,\n                exportName: firstAccessibleSymbol.name,\n                fileName,\n                moduleSpecifier\n              };\n              symbolToOriginInfoMap[index] = origin;\n            }\n          }\n        } else if (preferences.includeCompletionsWithInsertText) {\n          addSymbolOriginInfo(symbol);\n          addSymbolSortInfo(symbol);\n          symbols.push(symbol);\n        }\n      } else {\n        addSymbolOriginInfo(symbol);\n        addSymbolSortInfo(symbol);\n        symbols.push(symbol);\n      }\n      function addSymbolSortInfo(symbol2) {\n        if (isStaticProperty(symbol2)) {\n          symbolToSortTextMap[getSymbolId(symbol2)] = SortText.LocalDeclarationPriority;\n        }\n      }\n      function addSymbolOriginInfo(symbol2) {\n        if (preferences.includeCompletionsWithInsertText) {\n          if (insertAwait && addToSeen(seenPropertySymbols, getSymbolId(symbol2))) {\n            symbolToOriginInfoMap[symbols.length] = { kind: getNullableSymbolOriginInfoKind(8) };\n          } else if (insertQuestionDot) {\n            symbolToOriginInfoMap[symbols.length] = { kind: 16 };\n          }\n        }\n      }\n      function getNullableSymbolOriginInfoKind(kind) {\n        return insertQuestionDot ? kind | 16 : kind;\n      }\n    }\n    function getLeftMostName(e) {\n      return isIdentifier(e) ? e : isPropertyAccessExpression(e) ? getLeftMostName(e.expression) : void 0;\n    }\n    function tryGetGlobalSymbols() {\n      const result = tryGetObjectTypeLiteralInTypeArgumentCompletionSymbols() || tryGetObjectLikeCompletionSymbols() || tryGetImportCompletionSymbols() || tryGetImportOrExportClauseCompletionSymbols() || tryGetLocalNamedExportCompletionSymbols() || tryGetConstructorCompletion() || tryGetClassLikeCompletionSymbols() || tryGetJsxCompletionSymbols() || (getGlobalCompletions(), 1);\n      return result === 1;\n    }\n    function tryGetConstructorCompletion() {\n      if (!tryGetConstructorLikeCompletionContainer(contextToken))\n        return 0;\n      completionKind = 5;\n      isNewIdentifierLocation = true;\n      keywordFilters = 4;\n      return 1;\n    }\n    function tryGetJsxCompletionSymbols() {\n      const jsxContainer = tryGetContainingJsxElement(contextToken);\n      const attrsType = jsxContainer && typeChecker.getContextualType(jsxContainer.attributes);\n      if (!attrsType)\n        return 0;\n      const completionsType = jsxContainer && typeChecker.getContextualType(jsxContainer.attributes, 4);\n      symbols = concatenate(symbols, filterJsxAttributes(getPropertiesForObjectExpression(attrsType, completionsType, jsxContainer.attributes, typeChecker), jsxContainer.attributes.properties));\n      setSortTextToOptionalMember();\n      completionKind = 3;\n      isNewIdentifierLocation = false;\n      return 1;\n    }\n    function tryGetImportCompletionSymbols() {\n      if (!importStatementCompletion)\n        return 0;\n      isNewIdentifierLocation = true;\n      collectAutoImports();\n      return 1;\n    }\n    function getGlobalCompletions() {\n      keywordFilters = tryGetFunctionLikeBodyCompletionContainer(contextToken) ? 5 : 1;\n      completionKind = 1;\n      isNewIdentifierLocation = isNewIdentifierDefinitionLocation();\n      if (previousToken !== contextToken) {\n        Debug.assert(!!previousToken, \"Expected 'contextToken' to be defined when different from 'previousToken'.\");\n      }\n      const adjustedPosition = previousToken !== contextToken ? previousToken.getStart() : position;\n      const scopeNode = getScopeNode(contextToken, adjustedPosition, sourceFile) || sourceFile;\n      isInSnippetScope = isSnippetScope(scopeNode);\n      const symbolMeanings = (isTypeOnlyLocation ? 0 : 111551) | 788968 | 1920 | 2097152;\n      const typeOnlyAliasNeedsPromotion = previousToken && !isValidTypeOnlyAliasUseSite(previousToken);\n      symbols = concatenate(symbols, typeChecker.getSymbolsInScope(scopeNode, symbolMeanings));\n      Debug.assertEachIsDefined(symbols, \"getSymbolsInScope() should all be defined\");\n      for (let i = 0; i < symbols.length; i++) {\n        const symbol = symbols[i];\n        if (!typeChecker.isArgumentsSymbol(symbol) && !some(symbol.declarations, (d) => d.getSourceFile() === sourceFile)) {\n          symbolToSortTextMap[getSymbolId(symbol)] = SortText.GlobalsOrKeywords;\n        }\n        if (typeOnlyAliasNeedsPromotion && !(symbol.flags & 111551)) {\n          const typeOnlyAliasDeclaration = symbol.declarations && find(symbol.declarations, isTypeOnlyImportDeclaration);\n          if (typeOnlyAliasDeclaration) {\n            const origin = { kind: 64, declaration: typeOnlyAliasDeclaration };\n            symbolToOriginInfoMap[i] = origin;\n          }\n        }\n      }\n      if (preferences.includeCompletionsWithInsertText && scopeNode.kind !== 308) {\n        const thisType = typeChecker.tryGetThisTypeAt(scopeNode, false, isClassLike(scopeNode.parent) ? scopeNode : void 0);\n        if (thisType && !isProbablyGlobalType(thisType, sourceFile, typeChecker)) {\n          for (const symbol of getPropertiesForCompletion(thisType, typeChecker)) {\n            symbolToOriginInfoMap[symbols.length] = { kind: 1 };\n            symbols.push(symbol);\n            symbolToSortTextMap[getSymbolId(symbol)] = SortText.SuggestedClassMembers;\n          }\n        }\n      }\n      collectAutoImports();\n      if (isTypeOnlyLocation) {\n        keywordFilters = contextToken && isAssertionExpression(contextToken.parent) ? 6 : 7;\n      }\n    }\n    function shouldOfferImportCompletions() {\n      if (importStatementCompletion)\n        return true;\n      if (isNonContextualObjectLiteral)\n        return false;\n      if (!preferences.includeCompletionsForModuleExports)\n        return false;\n      if (sourceFile.externalModuleIndicator || sourceFile.commonJsModuleIndicator)\n        return true;\n      if (compilerOptionsIndicateEsModules(program.getCompilerOptions()))\n        return true;\n      return programContainsModules(program);\n    }\n    function isSnippetScope(scopeNode) {\n      switch (scopeNode.kind) {\n        case 308:\n        case 225:\n        case 291:\n        case 238:\n          return true;\n        default:\n          return isStatement(scopeNode);\n      }\n    }\n    function isTypeOnlyCompletion() {\n      return insideJsDocTagTypeExpression || !!importStatementCompletion && isTypeOnlyImportOrExportDeclaration(location.parent) || !isContextTokenValueLocation(contextToken) && (isPossiblyTypeArgumentPosition(contextToken, sourceFile, typeChecker) || isPartOfTypeNode(location) || isContextTokenTypeLocation(contextToken));\n    }\n    function isContextTokenValueLocation(contextToken2) {\n      return contextToken2 && (contextToken2.kind === 112 && (contextToken2.parent.kind === 183 || isTypeOfExpression(contextToken2.parent)) || contextToken2.kind === 129 && contextToken2.parent.kind === 179);\n    }\n    function isContextTokenTypeLocation(contextToken2) {\n      if (contextToken2) {\n        const parentKind = contextToken2.parent.kind;\n        switch (contextToken2.kind) {\n          case 58:\n            return parentKind === 169 || parentKind === 168 || parentKind === 166 || parentKind === 257 || isFunctionLikeKind(parentKind);\n          case 63:\n            return parentKind === 262;\n          case 128:\n            return parentKind === 231;\n          case 29:\n            return parentKind === 180 || parentKind === 213;\n          case 94:\n            return parentKind === 165;\n          case 150:\n            return parentKind === 235;\n        }\n      }\n      return false;\n    }\n    function collectAutoImports() {\n      var _a2, _b;\n      if (!shouldOfferImportCompletions())\n        return;\n      Debug.assert(!(detailsEntryId == null ? void 0 : detailsEntryId.data), \"Should not run 'collectAutoImports' when faster path is available via `data`\");\n      if (detailsEntryId && !detailsEntryId.source) {\n        return;\n      }\n      flags |= 1;\n      const isAfterTypeOnlyImportSpecifierModifier = previousToken === contextToken && importStatementCompletion;\n      const lowerCaseTokenText = isAfterTypeOnlyImportSpecifierModifier ? \"\" : previousToken && isIdentifier(previousToken) ? previousToken.text.toLowerCase() : \"\";\n      const moduleSpecifierCache = (_a2 = host.getModuleSpecifierCache) == null ? void 0 : _a2.call(host);\n      const exportInfo = getExportInfoMap(sourceFile, host, program, preferences, cancellationToken);\n      const packageJsonAutoImportProvider = (_b = host.getPackageJsonAutoImportProvider) == null ? void 0 : _b.call(host);\n      const packageJsonFilter = detailsEntryId ? void 0 : createPackageJsonImportFilter(sourceFile, preferences, host);\n      resolvingModuleSpecifiers(\"collectAutoImports\", host, importSpecifierResolver || (importSpecifierResolver = ts_codefix_exports.createImportSpecifierResolver(sourceFile, program, host, preferences)), program, position, preferences, !!importStatementCompletion, isValidTypeOnlyAliasUseSite(location), (context) => {\n        exportInfo.search(sourceFile.path, isRightOfOpenTag, (symbolName2, targetFlags) => {\n          if (!isIdentifierText(symbolName2, getEmitScriptTarget(host.getCompilationSettings())))\n            return false;\n          if (!detailsEntryId && isStringANonContextualKeyword(symbolName2))\n            return false;\n          if (!isTypeOnlyLocation && !importStatementCompletion && !(targetFlags & 111551))\n            return false;\n          if (isTypeOnlyLocation && !(targetFlags & (1536 | 788968)))\n            return false;\n          const firstChar = symbolName2.charCodeAt(0);\n          if (isRightOfOpenTag && (firstChar < 65 || firstChar > 90))\n            return false;\n          if (detailsEntryId)\n            return true;\n          return charactersFuzzyMatchInString(symbolName2, lowerCaseTokenText);\n        }, (info, symbolName2, isFromAmbientModule, exportMapKey) => {\n          if (detailsEntryId && !some(info, (i) => detailsEntryId.source === stripQuotes(i.moduleSymbol.name))) {\n            return;\n          }\n          info = filter(info, isImportableExportInfo);\n          if (!info.length) {\n            return;\n          }\n          const result = context.tryResolve(info, isFromAmbientModule) || {};\n          if (result === \"failed\")\n            return;\n          let exportInfo2 = info[0], moduleSpecifier;\n          if (result !== \"skipped\") {\n            ({ exportInfo: exportInfo2 = info[0], moduleSpecifier } = result);\n          }\n          const isDefaultExport = exportInfo2.exportKind === 1;\n          const symbol = isDefaultExport && getLocalSymbolForExportDefault(exportInfo2.symbol) || exportInfo2.symbol;\n          pushAutoImportSymbol(symbol, {\n            kind: moduleSpecifier ? 32 : 4,\n            moduleSpecifier,\n            symbolName: symbolName2,\n            exportMapKey,\n            exportName: exportInfo2.exportKind === 2 ? \"export=\" : exportInfo2.symbol.name,\n            fileName: exportInfo2.moduleFileName,\n            isDefaultExport,\n            moduleSymbol: exportInfo2.moduleSymbol,\n            isFromPackageJson: exportInfo2.isFromPackageJson\n          });\n        });\n        hasUnresolvedAutoImports = context.skippedAny();\n        flags |= context.resolvedAny() ? 8 : 0;\n        flags |= context.resolvedBeyondLimit() ? 16 : 0;\n      });\n      function isImportableExportInfo(info) {\n        const moduleFile = tryCast(info.moduleSymbol.valueDeclaration, isSourceFile);\n        if (!moduleFile) {\n          const moduleName = stripQuotes(info.moduleSymbol.name);\n          if (ts_JsTyping_exports.nodeCoreModules.has(moduleName) && startsWith(moduleName, \"node:\") !== shouldUseUriStyleNodeCoreModules(sourceFile, program)) {\n            return false;\n          }\n          return packageJsonFilter ? packageJsonFilter.allowsImportingAmbientModule(info.moduleSymbol, getModuleSpecifierResolutionHost(info.isFromPackageJson)) : true;\n        }\n        return isImportableFile(info.isFromPackageJson ? packageJsonAutoImportProvider : program, sourceFile, moduleFile, preferences, packageJsonFilter, getModuleSpecifierResolutionHost(info.isFromPackageJson), moduleSpecifierCache);\n      }\n    }\n    function pushAutoImportSymbol(symbol, origin) {\n      const symbolId = getSymbolId(symbol);\n      if (symbolToSortTextMap[symbolId] === SortText.GlobalsOrKeywords) {\n        return;\n      }\n      symbolToOriginInfoMap[symbols.length] = origin;\n      symbolToSortTextMap[symbolId] = importStatementCompletion ? SortText.LocationPriority : SortText.AutoImportSuggestions;\n      symbols.push(symbol);\n    }\n    function collectObjectLiteralMethodSymbols(members, enclosingDeclaration) {\n      if (isInJSFile(location)) {\n        return;\n      }\n      members.forEach((member) => {\n        if (!isObjectLiteralMethodSymbol(member)) {\n          return;\n        }\n        const displayName = getCompletionEntryDisplayNameForSymbol(member, getEmitScriptTarget(compilerOptions), void 0, 0, false);\n        if (!displayName) {\n          return;\n        }\n        const { name } = displayName;\n        const entryProps = getEntryForObjectLiteralMethodCompletion(member, name, enclosingDeclaration, program, host, compilerOptions, preferences, formatContext);\n        if (!entryProps) {\n          return;\n        }\n        const origin = { kind: 128, ...entryProps };\n        flags |= 32;\n        symbolToOriginInfoMap[symbols.length] = origin;\n        symbols.push(member);\n      });\n    }\n    function isObjectLiteralMethodSymbol(symbol) {\n      if (!(symbol.flags & (4 | 8192))) {\n        return false;\n      }\n      return true;\n    }\n    function getScopeNode(initialToken, position2, sourceFile2) {\n      let scope = initialToken;\n      while (scope && !positionBelongsToNode(scope, position2, sourceFile2)) {\n        scope = scope.parent;\n      }\n      return scope;\n    }\n    function isCompletionListBlocker(contextToken2) {\n      const start2 = timestamp();\n      const result = isInStringOrRegularExpressionOrTemplateLiteral(contextToken2) || isSolelyIdentifierDefinitionLocation(contextToken2) || isDotOfNumericLiteral(contextToken2) || isInJsxText(contextToken2) || isBigIntLiteral(contextToken2);\n      log(\"getCompletionsAtPosition: isCompletionListBlocker: \" + (timestamp() - start2));\n      return result;\n    }\n    function isInJsxText(contextToken2) {\n      if (contextToken2.kind === 11) {\n        return true;\n      }\n      if (contextToken2.kind === 31 && contextToken2.parent) {\n        if (location === contextToken2.parent && (location.kind === 283 || location.kind === 282)) {\n          return false;\n        }\n        if (contextToken2.parent.kind === 283) {\n          return location.parent.kind !== 283;\n        }\n        if (contextToken2.parent.kind === 284 || contextToken2.parent.kind === 282) {\n          return !!contextToken2.parent.parent && contextToken2.parent.parent.kind === 281;\n        }\n      }\n      return false;\n    }\n    function isNewIdentifierDefinitionLocation() {\n      if (contextToken) {\n        const containingNodeKind = contextToken.parent.kind;\n        const tokenKind = keywordForNode(contextToken);\n        switch (tokenKind) {\n          case 27:\n            return containingNodeKind === 210 || containingNodeKind === 173 || containingNodeKind === 211 || containingNodeKind === 206 || containingNodeKind === 223 || containingNodeKind === 181 || containingNodeKind === 207;\n          case 20:\n            return containingNodeKind === 210 || containingNodeKind === 173 || containingNodeKind === 211 || containingNodeKind === 214 || containingNodeKind === 193;\n          case 22:\n            return containingNodeKind === 206 || containingNodeKind === 178 || containingNodeKind === 164;\n          case 142:\n          case 143:\n          case 100:\n            return true;\n          case 24:\n            return containingNodeKind === 264;\n          case 18:\n            return containingNodeKind === 260 || containingNodeKind === 207;\n          case 63:\n            return containingNodeKind === 257 || containingNodeKind === 223;\n          case 15:\n            return containingNodeKind === 225;\n          case 16:\n            return containingNodeKind === 236;\n          case 132:\n            return containingNodeKind === 171 || containingNodeKind === 300;\n          case 41:\n            return containingNodeKind === 171;\n        }\n        if (isClassMemberCompletionKeyword(tokenKind)) {\n          return true;\n        }\n      }\n      return false;\n    }\n    function isInStringOrRegularExpressionOrTemplateLiteral(contextToken2) {\n      return (isRegularExpressionLiteral(contextToken2) || isStringTextContainingNode(contextToken2)) && (rangeContainsPositionExclusive(contextToken2, position) || position === contextToken2.end && (!!contextToken2.isUnterminated || isRegularExpressionLiteral(contextToken2)));\n    }\n    function tryGetObjectTypeLiteralInTypeArgumentCompletionSymbols() {\n      const typeLiteralNode = tryGetTypeLiteralNode(contextToken);\n      if (!typeLiteralNode)\n        return 0;\n      const intersectionTypeNode = isIntersectionTypeNode(typeLiteralNode.parent) ? typeLiteralNode.parent : void 0;\n      const containerTypeNode = intersectionTypeNode || typeLiteralNode;\n      const containerExpectedType = getConstraintOfTypeArgumentProperty(containerTypeNode, typeChecker);\n      if (!containerExpectedType)\n        return 0;\n      const containerActualType = typeChecker.getTypeFromTypeNode(containerTypeNode);\n      const members = getPropertiesForCompletion(containerExpectedType, typeChecker);\n      const existingMembers = getPropertiesForCompletion(containerActualType, typeChecker);\n      const existingMemberEscapedNames = /* @__PURE__ */ new Set();\n      existingMembers.forEach((s) => existingMemberEscapedNames.add(s.escapedName));\n      symbols = concatenate(symbols, filter(members, (s) => !existingMemberEscapedNames.has(s.escapedName)));\n      completionKind = 0;\n      isNewIdentifierLocation = true;\n      return 1;\n    }\n    function tryGetObjectLikeCompletionSymbols() {\n      const symbolsStartIndex = symbols.length;\n      const objectLikeContainer = tryGetObjectLikeCompletionContainer(contextToken);\n      if (!objectLikeContainer)\n        return 0;\n      completionKind = 0;\n      let typeMembers;\n      let existingMembers;\n      if (objectLikeContainer.kind === 207) {\n        const instantiatedType = tryGetObjectLiteralContextualType(objectLikeContainer, typeChecker);\n        if (instantiatedType === void 0) {\n          if (objectLikeContainer.flags & 33554432) {\n            return 2;\n          }\n          isNonContextualObjectLiteral = true;\n          return 0;\n        }\n        const completionsType = typeChecker.getContextualType(objectLikeContainer, 4);\n        const hasStringIndexType = (completionsType || instantiatedType).getStringIndexType();\n        const hasNumberIndextype = (completionsType || instantiatedType).getNumberIndexType();\n        isNewIdentifierLocation = !!hasStringIndexType || !!hasNumberIndextype;\n        typeMembers = getPropertiesForObjectExpression(instantiatedType, completionsType, objectLikeContainer, typeChecker);\n        existingMembers = objectLikeContainer.properties;\n        if (typeMembers.length === 0) {\n          if (!hasNumberIndextype) {\n            isNonContextualObjectLiteral = true;\n            return 0;\n          }\n        }\n      } else {\n        Debug.assert(objectLikeContainer.kind === 203);\n        isNewIdentifierLocation = false;\n        const rootDeclaration = getRootDeclaration(objectLikeContainer.parent);\n        if (!isVariableLike(rootDeclaration))\n          return Debug.fail(\"Root declaration is not variable-like.\");\n        let canGetType = hasInitializer(rootDeclaration) || !!getEffectiveTypeAnnotationNode(rootDeclaration) || rootDeclaration.parent.parent.kind === 247;\n        if (!canGetType && rootDeclaration.kind === 166) {\n          if (isExpression(rootDeclaration.parent)) {\n            canGetType = !!typeChecker.getContextualType(rootDeclaration.parent);\n          } else if (rootDeclaration.parent.kind === 171 || rootDeclaration.parent.kind === 175) {\n            canGetType = isExpression(rootDeclaration.parent.parent) && !!typeChecker.getContextualType(rootDeclaration.parent.parent);\n          }\n        }\n        if (canGetType) {\n          const typeForObject = typeChecker.getTypeAtLocation(objectLikeContainer);\n          if (!typeForObject)\n            return 2;\n          typeMembers = typeChecker.getPropertiesOfType(typeForObject).filter((propertySymbol) => {\n            return typeChecker.isPropertyAccessible(objectLikeContainer, false, false, typeForObject, propertySymbol);\n          });\n          existingMembers = objectLikeContainer.elements;\n        }\n      }\n      if (typeMembers && typeMembers.length > 0) {\n        const filteredMembers = filterObjectMembersList(typeMembers, Debug.checkDefined(existingMembers));\n        symbols = concatenate(symbols, filteredMembers);\n        setSortTextToOptionalMember();\n        if (objectLikeContainer.kind === 207 && preferences.includeCompletionsWithObjectLiteralMethodSnippets && preferences.includeCompletionsWithInsertText) {\n          transformObjectLiteralMembersSortText(symbolsStartIndex);\n          collectObjectLiteralMethodSymbols(filteredMembers, objectLikeContainer);\n        }\n      }\n      return 1;\n    }\n    function tryGetImportOrExportClauseCompletionSymbols() {\n      if (!contextToken)\n        return 0;\n      const namedImportsOrExports = contextToken.kind === 18 || contextToken.kind === 27 ? tryCast(contextToken.parent, isNamedImportsOrExports) : isTypeKeywordTokenOrIdentifier(contextToken) ? tryCast(contextToken.parent.parent, isNamedImportsOrExports) : void 0;\n      if (!namedImportsOrExports)\n        return 0;\n      if (!isTypeKeywordTokenOrIdentifier(contextToken)) {\n        keywordFilters = 8;\n      }\n      const { moduleSpecifier } = namedImportsOrExports.kind === 272 ? namedImportsOrExports.parent.parent : namedImportsOrExports.parent;\n      if (!moduleSpecifier) {\n        isNewIdentifierLocation = true;\n        return namedImportsOrExports.kind === 272 ? 2 : 0;\n      }\n      const moduleSpecifierSymbol = typeChecker.getSymbolAtLocation(moduleSpecifier);\n      if (!moduleSpecifierSymbol) {\n        isNewIdentifierLocation = true;\n        return 2;\n      }\n      completionKind = 3;\n      isNewIdentifierLocation = false;\n      const exports = typeChecker.getExportsAndPropertiesOfModule(moduleSpecifierSymbol);\n      const existing = new Set(namedImportsOrExports.elements.filter((n) => !isCurrentlyEditingNode(n)).map((n) => (n.propertyName || n.name).escapedText));\n      const uniques = exports.filter((e) => e.escapedName !== \"default\" && !existing.has(e.escapedName));\n      symbols = concatenate(symbols, uniques);\n      if (!uniques.length) {\n        keywordFilters = 0;\n      }\n      return 1;\n    }\n    function tryGetLocalNamedExportCompletionSymbols() {\n      var _a2;\n      const namedExports = contextToken && (contextToken.kind === 18 || contextToken.kind === 27) ? tryCast(contextToken.parent, isNamedExports) : void 0;\n      if (!namedExports) {\n        return 0;\n      }\n      const localsContainer = findAncestor(namedExports, or(isSourceFile, isModuleDeclaration));\n      completionKind = 5;\n      isNewIdentifierLocation = false;\n      (_a2 = localsContainer.locals) == null ? void 0 : _a2.forEach((symbol, name) => {\n        var _a3, _b;\n        symbols.push(symbol);\n        if ((_b = (_a3 = localsContainer.symbol) == null ? void 0 : _a3.exports) == null ? void 0 : _b.has(name)) {\n          symbolToSortTextMap[getSymbolId(symbol)] = SortText.OptionalMember;\n        }\n      });\n      return 1;\n    }\n    function tryGetClassLikeCompletionSymbols() {\n      const decl = tryGetObjectTypeDeclarationCompletionContainer(sourceFile, contextToken, location, position);\n      if (!decl)\n        return 0;\n      completionKind = 3;\n      isNewIdentifierLocation = true;\n      keywordFilters = contextToken.kind === 41 ? 0 : isClassLike(decl) ? 2 : 3;\n      if (!isClassLike(decl))\n        return 1;\n      const classElement = contextToken.kind === 26 ? contextToken.parent.parent : contextToken.parent;\n      let classElementModifierFlags = isClassElement(classElement) ? getEffectiveModifierFlags(classElement) : 0;\n      if (contextToken.kind === 79 && !isCurrentlyEditingNode(contextToken)) {\n        switch (contextToken.getText()) {\n          case \"private\":\n            classElementModifierFlags = classElementModifierFlags | 8;\n            break;\n          case \"static\":\n            classElementModifierFlags = classElementModifierFlags | 32;\n            break;\n          case \"override\":\n            classElementModifierFlags = classElementModifierFlags | 16384;\n            break;\n        }\n      }\n      if (isClassStaticBlockDeclaration(classElement)) {\n        classElementModifierFlags |= 32;\n      }\n      if (!(classElementModifierFlags & 8)) {\n        const baseTypeNodes = isClassLike(decl) && classElementModifierFlags & 16384 ? singleElementArray(getEffectiveBaseTypeNode(decl)) : getAllSuperTypeNodes(decl);\n        const baseSymbols = flatMap(baseTypeNodes, (baseTypeNode) => {\n          const type = typeChecker.getTypeAtLocation(baseTypeNode);\n          return classElementModifierFlags & 32 ? (type == null ? void 0 : type.symbol) && typeChecker.getPropertiesOfType(typeChecker.getTypeOfSymbolAtLocation(type.symbol, decl)) : type && typeChecker.getPropertiesOfType(type);\n        });\n        symbols = concatenate(symbols, filterClassMembersList(baseSymbols, decl.members, classElementModifierFlags));\n        forEach(symbols, (symbol, index) => {\n          const declaration = symbol == null ? void 0 : symbol.valueDeclaration;\n          if (declaration && isClassElement(declaration) && declaration.name && isComputedPropertyName(declaration.name)) {\n            const origin = {\n              kind: 512,\n              symbolName: typeChecker.symbolToString(symbol)\n            };\n            symbolToOriginInfoMap[index] = origin;\n          }\n        });\n      }\n      return 1;\n    }\n    function isConstructorParameterCompletion(node2) {\n      return !!node2.parent && isParameter(node2.parent) && isConstructorDeclaration(node2.parent.parent) && (isParameterPropertyModifier(node2.kind) || isDeclarationName(node2));\n    }\n    function tryGetConstructorLikeCompletionContainer(contextToken2) {\n      if (contextToken2) {\n        const parent2 = contextToken2.parent;\n        switch (contextToken2.kind) {\n          case 20:\n          case 27:\n            return isConstructorDeclaration(contextToken2.parent) ? contextToken2.parent : void 0;\n          default:\n            if (isConstructorParameterCompletion(contextToken2)) {\n              return parent2.parent;\n            }\n        }\n      }\n      return void 0;\n    }\n    function tryGetFunctionLikeBodyCompletionContainer(contextToken2) {\n      if (contextToken2) {\n        let prev;\n        const container = findAncestor(contextToken2.parent, (node2) => {\n          if (isClassLike(node2)) {\n            return \"quit\";\n          }\n          if (isFunctionLikeDeclaration(node2) && prev === node2.body) {\n            return true;\n          }\n          prev = node2;\n          return false;\n        });\n        return container && container;\n      }\n    }\n    function tryGetContainingJsxElement(contextToken2) {\n      if (contextToken2) {\n        const parent2 = contextToken2.parent;\n        switch (contextToken2.kind) {\n          case 31:\n          case 30:\n          case 43:\n          case 79:\n          case 208:\n          case 289:\n          case 288:\n          case 290:\n            if (parent2 && (parent2.kind === 282 || parent2.kind === 283)) {\n              if (contextToken2.kind === 31) {\n                const precedingToken = findPrecedingToken(contextToken2.pos, sourceFile, void 0);\n                if (!parent2.typeArguments || precedingToken && precedingToken.kind === 43)\n                  break;\n              }\n              return parent2;\n            } else if (parent2.kind === 288) {\n              return parent2.parent.parent;\n            }\n            break;\n          case 10:\n            if (parent2 && (parent2.kind === 288 || parent2.kind === 290)) {\n              return parent2.parent.parent;\n            }\n            break;\n          case 19:\n            if (parent2 && parent2.kind === 291 && parent2.parent && parent2.parent.kind === 288) {\n              return parent2.parent.parent.parent;\n            }\n            if (parent2 && parent2.kind === 290) {\n              return parent2.parent.parent;\n            }\n            break;\n        }\n      }\n      return void 0;\n    }\n    function isSolelyIdentifierDefinitionLocation(contextToken2) {\n      const parent2 = contextToken2.parent;\n      const containingNodeKind = parent2.kind;\n      switch (contextToken2.kind) {\n        case 27:\n          return containingNodeKind === 257 || isVariableDeclarationListButNotTypeArgument(contextToken2) || containingNodeKind === 240 || containingNodeKind === 263 || isFunctionLikeButNotConstructor(containingNodeKind) || containingNodeKind === 261 || containingNodeKind === 204 || containingNodeKind === 262 || isClassLike(parent2) && !!parent2.typeParameters && parent2.typeParameters.end >= contextToken2.pos;\n        case 24:\n          return containingNodeKind === 204;\n        case 58:\n          return containingNodeKind === 205;\n        case 22:\n          return containingNodeKind === 204;\n        case 20:\n          return containingNodeKind === 295 || isFunctionLikeButNotConstructor(containingNodeKind);\n        case 18:\n          return containingNodeKind === 263;\n        case 29:\n          return containingNodeKind === 260 || containingNodeKind === 228 || containingNodeKind === 261 || containingNodeKind === 262 || isFunctionLikeKind(containingNodeKind);\n        case 124:\n          return containingNodeKind === 169 && !isClassLike(parent2.parent);\n        case 25:\n          return containingNodeKind === 166 || !!parent2.parent && parent2.parent.kind === 204;\n        case 123:\n        case 121:\n        case 122:\n          return containingNodeKind === 166 && !isConstructorDeclaration(parent2.parent);\n        case 128:\n          return containingNodeKind === 273 || containingNodeKind === 278 || containingNodeKind === 271;\n        case 137:\n        case 151:\n          return !isFromObjectTypeDeclaration(contextToken2);\n        case 79:\n          if (containingNodeKind === 273 && contextToken2 === parent2.name && contextToken2.text === \"type\") {\n            return false;\n          }\n          break;\n        case 84:\n        case 92:\n        case 118:\n        case 98:\n        case 113:\n        case 100:\n        case 119:\n        case 85:\n        case 138:\n          return true;\n        case 154:\n          return containingNodeKind !== 273;\n        case 41:\n          return isFunctionLike(contextToken2.parent) && !isMethodDeclaration(contextToken2.parent);\n      }\n      if (isClassMemberCompletionKeyword(keywordForNode(contextToken2)) && isFromObjectTypeDeclaration(contextToken2)) {\n        return false;\n      }\n      if (isConstructorParameterCompletion(contextToken2)) {\n        if (!isIdentifier(contextToken2) || isParameterPropertyModifier(keywordForNode(contextToken2)) || isCurrentlyEditingNode(contextToken2)) {\n          return false;\n        }\n      }\n      switch (keywordForNode(contextToken2)) {\n        case 126:\n        case 84:\n        case 85:\n        case 136:\n        case 92:\n        case 98:\n        case 118:\n        case 119:\n        case 121:\n        case 122:\n        case 123:\n        case 124:\n        case 113:\n          return true;\n        case 132:\n          return isPropertyDeclaration(contextToken2.parent);\n      }\n      const ancestorClassLike = findAncestor(contextToken2.parent, isClassLike);\n      if (ancestorClassLike && contextToken2 === previousToken && isPreviousPropertyDeclarationTerminated(contextToken2, position)) {\n        return false;\n      }\n      const ancestorPropertyDeclaraion = getAncestor(contextToken2.parent, 169);\n      if (ancestorPropertyDeclaraion && contextToken2 !== previousToken && isClassLike(previousToken.parent.parent) && position <= previousToken.end) {\n        if (isPreviousPropertyDeclarationTerminated(contextToken2, previousToken.end)) {\n          return false;\n        } else if (contextToken2.kind !== 63 && (isInitializedProperty(ancestorPropertyDeclaraion) || hasType(ancestorPropertyDeclaraion))) {\n          return true;\n        }\n      }\n      return isDeclarationName(contextToken2) && !isShorthandPropertyAssignment(contextToken2.parent) && !isJsxAttribute(contextToken2.parent) && !(isClassLike(contextToken2.parent) && (contextToken2 !== previousToken || position > previousToken.end));\n    }\n    function isPreviousPropertyDeclarationTerminated(contextToken2, position2) {\n      return contextToken2.kind !== 63 && (contextToken2.kind === 26 || !positionsAreOnSameLine(contextToken2.end, position2, sourceFile));\n    }\n    function isFunctionLikeButNotConstructor(kind) {\n      return isFunctionLikeKind(kind) && kind !== 173;\n    }\n    function isDotOfNumericLiteral(contextToken2) {\n      if (contextToken2.kind === 8) {\n        const text = contextToken2.getFullText();\n        return text.charAt(text.length - 1) === \".\";\n      }\n      return false;\n    }\n    function isVariableDeclarationListButNotTypeArgument(node2) {\n      return node2.parent.kind === 258 && !isPossiblyTypeArgumentPosition(node2, sourceFile, typeChecker);\n    }\n    function filterObjectMembersList(contextualMemberSymbols, existingMembers) {\n      if (existingMembers.length === 0) {\n        return contextualMemberSymbols;\n      }\n      const membersDeclaredBySpreadAssignment = /* @__PURE__ */ new Set();\n      const existingMemberNames = /* @__PURE__ */ new Set();\n      for (const m of existingMembers) {\n        if (m.kind !== 299 && m.kind !== 300 && m.kind !== 205 && m.kind !== 171 && m.kind !== 174 && m.kind !== 175 && m.kind !== 301) {\n          continue;\n        }\n        if (isCurrentlyEditingNode(m)) {\n          continue;\n        }\n        let existingName;\n        if (isSpreadAssignment(m)) {\n          setMembersDeclaredBySpreadAssignment(m, membersDeclaredBySpreadAssignment);\n        } else if (isBindingElement(m) && m.propertyName) {\n          if (m.propertyName.kind === 79) {\n            existingName = m.propertyName.escapedText;\n          }\n        } else {\n          const name = getNameOfDeclaration(m);\n          existingName = name && isPropertyNameLiteral(name) ? getEscapedTextOfIdentifierOrLiteral(name) : void 0;\n        }\n        if (existingName !== void 0) {\n          existingMemberNames.add(existingName);\n        }\n      }\n      const filteredSymbols = contextualMemberSymbols.filter((m) => !existingMemberNames.has(m.escapedName));\n      setSortTextToMemberDeclaredBySpreadAssignment(membersDeclaredBySpreadAssignment, filteredSymbols);\n      return filteredSymbols;\n    }\n    function setMembersDeclaredBySpreadAssignment(declaration, membersDeclaredBySpreadAssignment) {\n      const expression = declaration.expression;\n      const symbol = typeChecker.getSymbolAtLocation(expression);\n      const type = symbol && typeChecker.getTypeOfSymbolAtLocation(symbol, expression);\n      const properties = type && type.properties;\n      if (properties) {\n        properties.forEach((property) => {\n          membersDeclaredBySpreadAssignment.add(property.name);\n        });\n      }\n    }\n    function setSortTextToOptionalMember() {\n      symbols.forEach((m) => {\n        var _a2;\n        if (m.flags & 16777216) {\n          const symbolId = getSymbolId(m);\n          symbolToSortTextMap[symbolId] = (_a2 = symbolToSortTextMap[symbolId]) != null ? _a2 : SortText.OptionalMember;\n        }\n      });\n    }\n    function setSortTextToMemberDeclaredBySpreadAssignment(membersDeclaredBySpreadAssignment, contextualMemberSymbols) {\n      if (membersDeclaredBySpreadAssignment.size === 0) {\n        return;\n      }\n      for (const contextualMemberSymbol of contextualMemberSymbols) {\n        if (membersDeclaredBySpreadAssignment.has(contextualMemberSymbol.name)) {\n          symbolToSortTextMap[getSymbolId(contextualMemberSymbol)] = SortText.MemberDeclaredBySpreadAssignment;\n        }\n      }\n    }\n    function transformObjectLiteralMembersSortText(start2) {\n      var _a2;\n      for (let i = start2; i < symbols.length; i++) {\n        const symbol = symbols[i];\n        const symbolId = getSymbolId(symbol);\n        const origin = symbolToOriginInfoMap == null ? void 0 : symbolToOriginInfoMap[i];\n        const target = getEmitScriptTarget(compilerOptions);\n        const displayName = getCompletionEntryDisplayNameForSymbol(symbol, target, origin, 0, false);\n        if (displayName) {\n          const originalSortText = (_a2 = symbolToSortTextMap[symbolId]) != null ? _a2 : SortText.LocationPriority;\n          const { name } = displayName;\n          symbolToSortTextMap[symbolId] = SortText.ObjectLiteralProperty(originalSortText, name);\n        }\n      }\n    }\n    function filterClassMembersList(baseSymbols, existingMembers, currentClassElementModifierFlags) {\n      const existingMemberNames = /* @__PURE__ */ new Set();\n      for (const m of existingMembers) {\n        if (m.kind !== 169 && m.kind !== 171 && m.kind !== 174 && m.kind !== 175) {\n          continue;\n        }\n        if (isCurrentlyEditingNode(m)) {\n          continue;\n        }\n        if (hasEffectiveModifier(m, 8)) {\n          continue;\n        }\n        if (isStatic(m) !== !!(currentClassElementModifierFlags & 32)) {\n          continue;\n        }\n        const existingName = getPropertyNameForPropertyNameNode(m.name);\n        if (existingName) {\n          existingMemberNames.add(existingName);\n        }\n      }\n      return baseSymbols.filter((propertySymbol) => !existingMemberNames.has(propertySymbol.escapedName) && !!propertySymbol.declarations && !(getDeclarationModifierFlagsFromSymbol(propertySymbol) & 8) && !(propertySymbol.valueDeclaration && isPrivateIdentifierClassElementDeclaration(propertySymbol.valueDeclaration)));\n    }\n    function filterJsxAttributes(symbols2, attributes) {\n      const seenNames = /* @__PURE__ */ new Set();\n      const membersDeclaredBySpreadAssignment = /* @__PURE__ */ new Set();\n      for (const attr of attributes) {\n        if (isCurrentlyEditingNode(attr)) {\n          continue;\n        }\n        if (attr.kind === 288) {\n          seenNames.add(attr.name.escapedText);\n        } else if (isJsxSpreadAttribute(attr)) {\n          setMembersDeclaredBySpreadAssignment(attr, membersDeclaredBySpreadAssignment);\n        }\n      }\n      const filteredSymbols = symbols2.filter((a) => !seenNames.has(a.escapedName));\n      setSortTextToMemberDeclaredBySpreadAssignment(membersDeclaredBySpreadAssignment, filteredSymbols);\n      return filteredSymbols;\n    }\n    function isCurrentlyEditingNode(node2) {\n      return node2.getStart(sourceFile) <= position && position <= node2.getEnd();\n    }\n  }\n  function tryGetObjectLikeCompletionContainer(contextToken) {\n    if (contextToken) {\n      const { parent: parent2 } = contextToken;\n      switch (contextToken.kind) {\n        case 18:\n        case 27:\n          if (isObjectLiteralExpression(parent2) || isObjectBindingPattern(parent2)) {\n            return parent2;\n          }\n          break;\n        case 41:\n          return isMethodDeclaration(parent2) ? tryCast(parent2.parent, isObjectLiteralExpression) : void 0;\n        case 79:\n          return contextToken.text === \"async\" && isShorthandPropertyAssignment(contextToken.parent) ? contextToken.parent.parent : void 0;\n      }\n    }\n    return void 0;\n  }\n  function getRelevantTokens(position, sourceFile) {\n    const previousToken = findPrecedingToken(position, sourceFile);\n    if (previousToken && position <= previousToken.end && (isMemberName(previousToken) || isKeyword(previousToken.kind))) {\n      const contextToken = findPrecedingToken(previousToken.getFullStart(), sourceFile, void 0);\n      return { contextToken, previousToken };\n    }\n    return { contextToken: previousToken, previousToken };\n  }\n  function getAutoImportSymbolFromCompletionEntryData(name, data, program, host) {\n    const containingProgram = data.isPackageJsonImport ? host.getPackageJsonAutoImportProvider() : program;\n    const checker = containingProgram.getTypeChecker();\n    const moduleSymbol = data.ambientModuleName ? checker.tryFindAmbientModule(data.ambientModuleName) : data.fileName ? checker.getMergedSymbol(Debug.checkDefined(containingProgram.getSourceFile(data.fileName)).symbol) : void 0;\n    if (!moduleSymbol)\n      return void 0;\n    let symbol = data.exportName === \"export=\" ? checker.resolveExternalModuleSymbol(moduleSymbol) : checker.tryGetMemberInModuleExportsAndProperties(data.exportName, moduleSymbol);\n    if (!symbol)\n      return void 0;\n    const isDefaultExport = data.exportName === \"default\";\n    symbol = isDefaultExport && getLocalSymbolForExportDefault(symbol) || symbol;\n    return { symbol, origin: completionEntryDataToSymbolOriginInfo(data, name, moduleSymbol) };\n  }\n  function getCompletionEntryDisplayNameForSymbol(symbol, target, origin, kind, jsxIdentifierExpected) {\n    if (originIsIgnore(origin)) {\n      return void 0;\n    }\n    const name = originIncludesSymbolName(origin) ? origin.symbolName : symbol.name;\n    if (name === void 0 || symbol.flags & 1536 && isSingleOrDoubleQuote(name.charCodeAt(0)) || isKnownSymbol(symbol)) {\n      return void 0;\n    }\n    const validNameResult = { name, needsConvertPropertyAccess: false };\n    if (isIdentifierText(name, target, jsxIdentifierExpected ? 1 : 0) || symbol.valueDeclaration && isPrivateIdentifierClassElementDeclaration(symbol.valueDeclaration)) {\n      return validNameResult;\n    }\n    switch (kind) {\n      case 3:\n        return originIsComputedPropertyName(origin) ? { name: origin.symbolName, needsConvertPropertyAccess: false } : void 0;\n      case 0:\n        return { name: JSON.stringify(name), needsConvertPropertyAccess: false };\n      case 2:\n      case 1:\n        return name.charCodeAt(0) === 32 ? void 0 : { name, needsConvertPropertyAccess: true };\n      case 5:\n      case 4:\n        return validNameResult;\n      default:\n        Debug.assertNever(kind);\n    }\n  }\n  function getKeywordCompletions(keywordFilter, filterOutTsOnlyKeywords) {\n    if (!filterOutTsOnlyKeywords)\n      return getTypescriptKeywordCompletions(keywordFilter);\n    const index = keywordFilter + 8 + 1;\n    return _keywordCompletions[index] || (_keywordCompletions[index] = getTypescriptKeywordCompletions(keywordFilter).filter((entry) => !isTypeScriptOnlyKeyword(stringToToken(entry.name))));\n  }\n  function getTypescriptKeywordCompletions(keywordFilter) {\n    return _keywordCompletions[keywordFilter] || (_keywordCompletions[keywordFilter] = allKeywordsCompletions().filter((entry) => {\n      const kind = stringToToken(entry.name);\n      switch (keywordFilter) {\n        case 0:\n          return false;\n        case 1:\n          return isFunctionLikeBodyKeyword(kind) || kind === 136 || kind === 142 || kind === 154 || kind === 143 || kind === 126 || isTypeKeyword(kind) && kind !== 155;\n        case 5:\n          return isFunctionLikeBodyKeyword(kind);\n        case 2:\n          return isClassMemberCompletionKeyword(kind);\n        case 3:\n          return isInterfaceOrTypeLiteralCompletionKeyword(kind);\n        case 4:\n          return isParameterPropertyModifier(kind);\n        case 6:\n          return isTypeKeyword(kind) || kind === 85;\n        case 7:\n          return isTypeKeyword(kind);\n        case 8:\n          return kind === 154;\n        default:\n          return Debug.assertNever(keywordFilter);\n      }\n    }));\n  }\n  function isTypeScriptOnlyKeyword(kind) {\n    switch (kind) {\n      case 126:\n      case 131:\n      case 160:\n      case 134:\n      case 136:\n      case 92:\n      case 159:\n      case 117:\n      case 138:\n      case 118:\n      case 140:\n      case 141:\n      case 142:\n      case 143:\n      case 144:\n      case 148:\n      case 149:\n      case 161:\n      case 121:\n      case 122:\n      case 123:\n      case 146:\n      case 152:\n      case 153:\n      case 154:\n      case 156:\n      case 157:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function isInterfaceOrTypeLiteralCompletionKeyword(kind) {\n    return kind === 146;\n  }\n  function isClassMemberCompletionKeyword(kind) {\n    switch (kind) {\n      case 126:\n      case 127:\n      case 135:\n      case 137:\n      case 151:\n      case 132:\n      case 136:\n      case 161:\n        return true;\n      default:\n        return isClassMemberModifier(kind);\n    }\n  }\n  function isFunctionLikeBodyKeyword(kind) {\n    return kind === 132 || kind === 133 || kind === 128 || kind === 150 || kind === 154 || !isContextualKeyword(kind) && !isClassMemberCompletionKeyword(kind);\n  }\n  function keywordForNode(node) {\n    var _a2;\n    return isIdentifier(node) ? (_a2 = identifierToKeywordKind(node)) != null ? _a2 : 0 : node.kind;\n  }\n  function getContextualKeywords(contextToken, position) {\n    const entries = [];\n    if (contextToken) {\n      const file = contextToken.getSourceFile();\n      const parent2 = contextToken.parent;\n      const tokenLine = file.getLineAndCharacterOfPosition(contextToken.end).line;\n      const currentLine = file.getLineAndCharacterOfPosition(position).line;\n      if ((isImportDeclaration(parent2) || isExportDeclaration(parent2) && parent2.moduleSpecifier) && contextToken === parent2.moduleSpecifier && tokenLine === currentLine) {\n        entries.push({\n          name: tokenToString(130),\n          kind: \"keyword\",\n          kindModifiers: \"\",\n          sortText: SortText.GlobalsOrKeywords\n        });\n      }\n    }\n    return entries;\n  }\n  function getJsDocTagAtPosition(node, position) {\n    return findAncestor(node, (n) => isJSDocTag(n) && rangeContainsPosition(n, position) ? true : isJSDoc(n) ? \"quit\" : false);\n  }\n  function getPropertiesForObjectExpression(contextualType, completionsType, obj, checker) {\n    const hasCompletionsType = completionsType && completionsType !== contextualType;\n    const type = hasCompletionsType && !(completionsType.flags & 3) ? checker.getUnionType([contextualType, completionsType]) : contextualType;\n    const properties = getApparentProperties(type, obj, checker);\n    return type.isClass() && containsNonPublicProperties(properties) ? [] : hasCompletionsType ? filter(properties, hasDeclarationOtherThanSelf) : properties;\n    function hasDeclarationOtherThanSelf(member) {\n      if (!length(member.declarations))\n        return true;\n      return some(member.declarations, (decl) => decl.parent !== obj);\n    }\n  }\n  function getApparentProperties(type, node, checker) {\n    if (!type.isUnion())\n      return type.getApparentProperties();\n    return checker.getAllPossiblePropertiesOfTypes(filter(type.types, (memberType) => !(memberType.flags & 134348796 || checker.isArrayLikeType(memberType) || checker.isTypeInvalidDueToUnionDiscriminant(memberType, node) || checker.typeHasCallOrConstructSignatures(memberType) || memberType.isClass() && containsNonPublicProperties(memberType.getApparentProperties()))));\n  }\n  function containsNonPublicProperties(props) {\n    return some(props, (p) => !!(getDeclarationModifierFlagsFromSymbol(p) & 24));\n  }\n  function getPropertiesForCompletion(type, checker) {\n    return type.isUnion() ? Debug.checkEachDefined(checker.getAllPossiblePropertiesOfTypes(type.types), \"getAllPossiblePropertiesOfTypes() should all be defined\") : Debug.checkEachDefined(type.getApparentProperties(), \"getApparentProperties() should all be defined\");\n  }\n  function tryGetObjectTypeDeclarationCompletionContainer(sourceFile, contextToken, location, position) {\n    var _a2;\n    switch (location.kind) {\n      case 354:\n        return tryCast(location.parent, isObjectTypeDeclaration);\n      case 1:\n        const cls = tryCast(lastOrUndefined(cast(location.parent, isSourceFile).statements), isObjectTypeDeclaration);\n        if (cls && !findChildOfKind(cls, 19, sourceFile)) {\n          return cls;\n        }\n        break;\n      case 79: {\n        const originalKeywordKind = identifierToKeywordKind(location);\n        if (originalKeywordKind) {\n          return void 0;\n        }\n        if (isPropertyDeclaration(location.parent) && location.parent.initializer === location) {\n          return void 0;\n        }\n        if (isFromObjectTypeDeclaration(location)) {\n          return findAncestor(location, isObjectTypeDeclaration);\n        }\n      }\n    }\n    if (!contextToken)\n      return void 0;\n    if (location.kind === 135 || isIdentifier(contextToken) && isPropertyDeclaration(contextToken.parent) && isClassLike(location)) {\n      return findAncestor(contextToken, isClassLike);\n    }\n    switch (contextToken.kind) {\n      case 63:\n        return void 0;\n      case 26:\n      case 19:\n        return isFromObjectTypeDeclaration(location) && location.parent.name === location ? location.parent.parent : tryCast(location, isObjectTypeDeclaration);\n      case 18:\n      case 27:\n        return tryCast(contextToken.parent, isObjectTypeDeclaration);\n      default:\n        if (isObjectTypeDeclaration(location)) {\n          if (getLineAndCharacterOfPosition(sourceFile, contextToken.getEnd()).line !== getLineAndCharacterOfPosition(sourceFile, position).line) {\n            return location;\n          }\n          const isValidKeyword = isClassLike(contextToken.parent.parent) ? isClassMemberCompletionKeyword : isInterfaceOrTypeLiteralCompletionKeyword;\n          return isValidKeyword(contextToken.kind) || contextToken.kind === 41 || isIdentifier(contextToken) && isValidKeyword((_a2 = identifierToKeywordKind(contextToken)) != null ? _a2 : 0) ? contextToken.parent.parent : void 0;\n        }\n        return void 0;\n    }\n  }\n  function tryGetTypeLiteralNode(node) {\n    if (!node)\n      return void 0;\n    const parent2 = node.parent;\n    switch (node.kind) {\n      case 18:\n        if (isTypeLiteralNode(parent2)) {\n          return parent2;\n        }\n        break;\n      case 26:\n      case 27:\n      case 79:\n        if (parent2.kind === 168 && isTypeLiteralNode(parent2.parent)) {\n          return parent2.parent;\n        }\n        break;\n    }\n    return void 0;\n  }\n  function getConstraintOfTypeArgumentProperty(node, checker) {\n    if (!node)\n      return void 0;\n    if (isTypeNode(node) && isTypeReferenceType(node.parent)) {\n      return checker.getTypeArgumentConstraint(node);\n    }\n    const t = getConstraintOfTypeArgumentProperty(node.parent, checker);\n    if (!t)\n      return void 0;\n    switch (node.kind) {\n      case 168:\n        return checker.getTypeOfPropertyOfContextualType(t, node.symbol.escapedName);\n      case 190:\n      case 184:\n      case 189:\n        return t;\n    }\n  }\n  function isFromObjectTypeDeclaration(node) {\n    return node.parent && isClassOrTypeElement(node.parent) && isObjectTypeDeclaration(node.parent.parent);\n  }\n  function isValidTrigger(sourceFile, triggerCharacter, contextToken, position) {\n    switch (triggerCharacter) {\n      case \".\":\n      case \"@\":\n        return true;\n      case '\"':\n      case \"'\":\n      case \"`\":\n        return !!contextToken && isStringLiteralOrTemplate(contextToken) && position === contextToken.getStart(sourceFile) + 1;\n      case \"#\":\n        return !!contextToken && isPrivateIdentifier(contextToken) && !!getContainingClass(contextToken);\n      case \"<\":\n        return !!contextToken && contextToken.kind === 29 && (!isBinaryExpression(contextToken.parent) || binaryExpressionMayBeOpenTag(contextToken.parent));\n      case \"/\":\n        return !!contextToken && (isStringLiteralLike(contextToken) ? !!tryGetImportFromModuleSpecifier(contextToken) : contextToken.kind === 43 && isJsxClosingElement(contextToken.parent));\n      case \" \":\n        return !!contextToken && isImportKeyword(contextToken) && contextToken.parent.kind === 308;\n      default:\n        return Debug.assertNever(triggerCharacter);\n    }\n  }\n  function binaryExpressionMayBeOpenTag({ left }) {\n    return nodeIsMissing(left);\n  }\n  function isProbablyGlobalType(type, sourceFile, checker) {\n    const selfSymbol = checker.resolveName(\"self\", void 0, 111551, false);\n    if (selfSymbol && checker.getTypeOfSymbolAtLocation(selfSymbol, sourceFile) === type) {\n      return true;\n    }\n    const globalSymbol = checker.resolveName(\"global\", void 0, 111551, false);\n    if (globalSymbol && checker.getTypeOfSymbolAtLocation(globalSymbol, sourceFile) === type) {\n      return true;\n    }\n    const globalThisSymbol = checker.resolveName(\"globalThis\", void 0, 111551, false);\n    if (globalThisSymbol && checker.getTypeOfSymbolAtLocation(globalThisSymbol, sourceFile) === type) {\n      return true;\n    }\n    return false;\n  }\n  function isStaticProperty(symbol) {\n    return !!(symbol.valueDeclaration && getEffectiveModifierFlags(symbol.valueDeclaration) & 32 && isClassLike(symbol.valueDeclaration.parent));\n  }\n  function tryGetObjectLiteralContextualType(node, typeChecker) {\n    const type = typeChecker.getContextualType(node);\n    if (type) {\n      return type;\n    }\n    const parent2 = walkUpParenthesizedExpressions(node.parent);\n    if (isBinaryExpression(parent2) && parent2.operatorToken.kind === 63 && node === parent2.left) {\n      return typeChecker.getTypeAtLocation(parent2);\n    }\n    if (isExpression(parent2)) {\n      return typeChecker.getContextualType(parent2);\n    }\n    return void 0;\n  }\n  function getImportStatementCompletionInfo(contextToken) {\n    var _a2, _b, _c;\n    let keywordCompletion;\n    let isKeywordOnlyCompletion = false;\n    const candidate = getCandidate();\n    return {\n      isKeywordOnlyCompletion,\n      keywordCompletion,\n      isNewIdentifierLocation: !!(candidate || keywordCompletion === 154),\n      isTopLevelTypeOnly: !!((_b = (_a2 = tryCast(candidate, isImportDeclaration)) == null ? void 0 : _a2.importClause) == null ? void 0 : _b.isTypeOnly) || !!((_c = tryCast(candidate, isImportEqualsDeclaration)) == null ? void 0 : _c.isTypeOnly),\n      couldBeTypeOnlyImportSpecifier: !!candidate && couldBeTypeOnlyImportSpecifier(candidate, contextToken),\n      replacementSpan: getSingleLineReplacementSpanForImportCompletionNode(candidate)\n    };\n    function getCandidate() {\n      const parent2 = contextToken.parent;\n      if (isImportEqualsDeclaration(parent2)) {\n        keywordCompletion = contextToken.kind === 154 ? void 0 : 154;\n        return isModuleSpecifierMissingOrEmpty(parent2.moduleReference) ? parent2 : void 0;\n      }\n      if (couldBeTypeOnlyImportSpecifier(parent2, contextToken) && canCompleteFromNamedBindings(parent2.parent)) {\n        return parent2;\n      }\n      if (isNamedImports(parent2) || isNamespaceImport(parent2)) {\n        if (!parent2.parent.isTypeOnly && (contextToken.kind === 18 || contextToken.kind === 100 || contextToken.kind === 27)) {\n          keywordCompletion = 154;\n        }\n        if (canCompleteFromNamedBindings(parent2)) {\n          if (contextToken.kind === 19 || contextToken.kind === 79) {\n            isKeywordOnlyCompletion = true;\n            keywordCompletion = 158;\n          } else {\n            return parent2.parent.parent;\n          }\n        }\n        return void 0;\n      }\n      if (isImportKeyword(contextToken) && isSourceFile(parent2)) {\n        keywordCompletion = 154;\n        return contextToken;\n      }\n      if (isImportKeyword(contextToken) && isImportDeclaration(parent2)) {\n        keywordCompletion = 154;\n        return isModuleSpecifierMissingOrEmpty(parent2.moduleSpecifier) ? parent2 : void 0;\n      }\n      return void 0;\n    }\n  }\n  function getSingleLineReplacementSpanForImportCompletionNode(node) {\n    var _a2, _b, _c;\n    if (!node)\n      return void 0;\n    const top = (_a2 = findAncestor(node, or(isImportDeclaration, isImportEqualsDeclaration))) != null ? _a2 : node;\n    const sourceFile = top.getSourceFile();\n    if (rangeIsOnSingleLine(top, sourceFile)) {\n      return createTextSpanFromNode(top, sourceFile);\n    }\n    Debug.assert(top.kind !== 100 && top.kind !== 273);\n    const potentialSplitPoint = top.kind === 269 ? (_c = getPotentiallyInvalidImportSpecifier((_b = top.importClause) == null ? void 0 : _b.namedBindings)) != null ? _c : top.moduleSpecifier : top.moduleReference;\n    const withoutModuleSpecifier = {\n      pos: top.getFirstToken().getStart(),\n      end: potentialSplitPoint.pos\n    };\n    if (rangeIsOnSingleLine(withoutModuleSpecifier, sourceFile)) {\n      return createTextSpanFromRange(withoutModuleSpecifier);\n    }\n  }\n  function getPotentiallyInvalidImportSpecifier(namedBindings) {\n    var _a2;\n    return find((_a2 = tryCast(namedBindings, isNamedImports)) == null ? void 0 : _a2.elements, (e) => {\n      var _a3;\n      return !e.propertyName && isStringANonContextualKeyword(e.name.text) && ((_a3 = findPrecedingToken(e.name.pos, namedBindings.getSourceFile(), namedBindings)) == null ? void 0 : _a3.kind) !== 27;\n    });\n  }\n  function couldBeTypeOnlyImportSpecifier(importSpecifier, contextToken) {\n    return isImportSpecifier(importSpecifier) && (importSpecifier.isTypeOnly || contextToken === importSpecifier.name && isTypeKeywordTokenOrIdentifier(contextToken));\n  }\n  function canCompleteFromNamedBindings(namedBindings) {\n    if (!isModuleSpecifierMissingOrEmpty(namedBindings.parent.parent.moduleSpecifier) || namedBindings.parent.name) {\n      return false;\n    }\n    if (isNamedImports(namedBindings)) {\n      const invalidNamedImport = getPotentiallyInvalidImportSpecifier(namedBindings);\n      const validImports = invalidNamedImport ? namedBindings.elements.indexOf(invalidNamedImport) : namedBindings.elements.length;\n      return validImports < 2;\n    }\n    return true;\n  }\n  function isModuleSpecifierMissingOrEmpty(specifier) {\n    var _a2;\n    if (nodeIsMissing(specifier))\n      return true;\n    return !((_a2 = tryCast(isExternalModuleReference(specifier) ? specifier.expression : specifier, isStringLiteralLike)) == null ? void 0 : _a2.text);\n  }\n  function getVariableDeclaration(property) {\n    const variableDeclaration = findAncestor(property, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? \"quit\" : isVariableDeclaration(node));\n    return variableDeclaration;\n  }\n  function isArrowFunctionBody(node) {\n    return node.parent && isArrowFunction(node.parent) && node.parent.body === node;\n  }\n  function symbolCanBeReferencedAtTypeLocation(symbol, checker, seenModules = /* @__PURE__ */ new Map()) {\n    return nonAliasCanBeReferencedAtTypeLocation(symbol) || nonAliasCanBeReferencedAtTypeLocation(skipAlias(symbol.exportSymbol || symbol, checker));\n    function nonAliasCanBeReferencedAtTypeLocation(symbol2) {\n      return !!(symbol2.flags & 788968) || checker.isUnknownSymbol(symbol2) || !!(symbol2.flags & 1536) && addToSeen(seenModules, getSymbolId(symbol2)) && checker.getExportsOfModule(symbol2).some((e) => symbolCanBeReferencedAtTypeLocation(e, checker, seenModules));\n    }\n  }\n  function isDeprecated(symbol, checker) {\n    const declarations = skipAlias(symbol, checker).declarations;\n    return !!length(declarations) && every(declarations, isDeprecatedDeclaration);\n  }\n  function charactersFuzzyMatchInString(identifierString, lowercaseCharacters) {\n    if (lowercaseCharacters.length === 0) {\n      return true;\n    }\n    let matchedFirstCharacter = false;\n    let prevChar;\n    let characterIndex = 0;\n    const len = identifierString.length;\n    for (let strIndex = 0; strIndex < len; strIndex++) {\n      const strChar = identifierString.charCodeAt(strIndex);\n      const testChar = lowercaseCharacters.charCodeAt(characterIndex);\n      if (strChar === testChar || strChar === toUpperCharCode(testChar)) {\n        matchedFirstCharacter || (matchedFirstCharacter = prevChar === void 0 || 97 <= prevChar && prevChar <= 122 && 65 <= strChar && strChar <= 90 || prevChar === 95 && strChar !== 95);\n        if (matchedFirstCharacter) {\n          characterIndex++;\n        }\n        if (characterIndex === lowercaseCharacters.length) {\n          return true;\n        }\n      }\n      prevChar = strChar;\n    }\n    return false;\n  }\n  function toUpperCharCode(charCode) {\n    if (97 <= charCode && charCode <= 122) {\n      return charCode - 32;\n    }\n    return charCode;\n  }\n  var moduleSpecifierResolutionLimit, moduleSpecifierResolutionCacheAttemptLimit, SortText, CompletionSource, SymbolOriginInfoKind, CompletionKind, _keywordCompletions, allKeywordsCompletions;\n  var init_completions = __esm({\n    \"src/services/completions.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_Completions();\n      moduleSpecifierResolutionLimit = 100;\n      moduleSpecifierResolutionCacheAttemptLimit = 1e3;\n      SortText = {\n        LocalDeclarationPriority: \"10\",\n        LocationPriority: \"11\",\n        OptionalMember: \"12\",\n        MemberDeclaredBySpreadAssignment: \"13\",\n        SuggestedClassMembers: \"14\",\n        GlobalsOrKeywords: \"15\",\n        AutoImportSuggestions: \"16\",\n        ClassMemberSnippets: \"17\",\n        JavascriptIdentifiers: \"18\",\n        Deprecated(sortText) {\n          return \"z\" + sortText;\n        },\n        ObjectLiteralProperty(presetSortText, symbolDisplayName) {\n          return `${presetSortText}\\0${symbolDisplayName}\\0`;\n        },\n        SortBelow(sortText) {\n          return sortText + \"1\";\n        }\n      };\n      CompletionSource = /* @__PURE__ */ ((CompletionSource2) => {\n        CompletionSource2[\"ThisProperty\"] = \"ThisProperty/\";\n        CompletionSource2[\"ClassMemberSnippet\"] = \"ClassMemberSnippet/\";\n        CompletionSource2[\"TypeOnlyAlias\"] = \"TypeOnlyAlias/\";\n        CompletionSource2[\"ObjectLiteralMethodSnippet\"] = \"ObjectLiteralMethodSnippet/\";\n        CompletionSource2[\"SwitchCases\"] = \"SwitchCases/\";\n        return CompletionSource2;\n      })(CompletionSource || {});\n      SymbolOriginInfoKind = /* @__PURE__ */ ((SymbolOriginInfoKind2) => {\n        SymbolOriginInfoKind2[SymbolOriginInfoKind2[\"ThisType\"] = 1] = \"ThisType\";\n        SymbolOriginInfoKind2[SymbolOriginInfoKind2[\"SymbolMember\"] = 2] = \"SymbolMember\";\n        SymbolOriginInfoKind2[SymbolOriginInfoKind2[\"Export\"] = 4] = \"Export\";\n        SymbolOriginInfoKind2[SymbolOriginInfoKind2[\"Promise\"] = 8] = \"Promise\";\n        SymbolOriginInfoKind2[SymbolOriginInfoKind2[\"Nullable\"] = 16] = \"Nullable\";\n        SymbolOriginInfoKind2[SymbolOriginInfoKind2[\"ResolvedExport\"] = 32] = \"ResolvedExport\";\n        SymbolOriginInfoKind2[SymbolOriginInfoKind2[\"TypeOnlyAlias\"] = 64] = \"TypeOnlyAlias\";\n        SymbolOriginInfoKind2[SymbolOriginInfoKind2[\"ObjectLiteralMethod\"] = 128] = \"ObjectLiteralMethod\";\n        SymbolOriginInfoKind2[SymbolOriginInfoKind2[\"Ignore\"] = 256] = \"Ignore\";\n        SymbolOriginInfoKind2[SymbolOriginInfoKind2[\"ComputedPropertyName\"] = 512] = \"ComputedPropertyName\";\n        SymbolOriginInfoKind2[SymbolOriginInfoKind2[\"SymbolMemberNoExport\"] = 2] = \"SymbolMemberNoExport\";\n        SymbolOriginInfoKind2[SymbolOriginInfoKind2[\"SymbolMemberExport\"] = 6] = \"SymbolMemberExport\";\n        return SymbolOriginInfoKind2;\n      })(SymbolOriginInfoKind || {});\n      CompletionKind = /* @__PURE__ */ ((CompletionKind2) => {\n        CompletionKind2[CompletionKind2[\"ObjectPropertyDeclaration\"] = 0] = \"ObjectPropertyDeclaration\";\n        CompletionKind2[CompletionKind2[\"Global\"] = 1] = \"Global\";\n        CompletionKind2[CompletionKind2[\"PropertyAccess\"] = 2] = \"PropertyAccess\";\n        CompletionKind2[CompletionKind2[\"MemberLike\"] = 3] = \"MemberLike\";\n        CompletionKind2[CompletionKind2[\"String\"] = 4] = \"String\";\n        CompletionKind2[CompletionKind2[\"None\"] = 5] = \"None\";\n        return CompletionKind2;\n      })(CompletionKind || {});\n      _keywordCompletions = [];\n      allKeywordsCompletions = memoize(() => {\n        const res = [];\n        for (let i = 81; i <= 162; i++) {\n          res.push({\n            name: tokenToString(i),\n            kind: \"keyword\",\n            kindModifiers: \"\",\n            sortText: SortText.GlobalsOrKeywords\n          });\n        }\n        return res;\n      });\n    }\n  });\n  function createNameAndKindSet() {\n    const map2 = /* @__PURE__ */ new Map();\n    function add(value) {\n      const existing = map2.get(value.name);\n      if (!existing || kindPrecedence[existing.kind] < kindPrecedence[value.kind]) {\n        map2.set(value.name, value);\n      }\n    }\n    return {\n      add,\n      has: map2.has.bind(map2),\n      values: map2.values.bind(map2)\n    };\n  }\n  function getStringLiteralCompletions(sourceFile, position, contextToken, options, host, program, log, preferences, includeSymbol) {\n    if (isInReferenceComment(sourceFile, position)) {\n      const entries = getTripleSlashReferenceCompletion(sourceFile, position, options, host);\n      return entries && convertPathCompletions(entries);\n    }\n    if (isInString(sourceFile, position, contextToken)) {\n      if (!contextToken || !isStringLiteralLike(contextToken))\n        return void 0;\n      const entries = getStringLiteralCompletionEntries(sourceFile, contextToken, position, program.getTypeChecker(), options, host, preferences);\n      return convertStringLiteralCompletions(entries, contextToken, sourceFile, host, program, log, options, preferences, position, includeSymbol);\n    }\n  }\n  function convertStringLiteralCompletions(completion, contextToken, sourceFile, host, program, log, options, preferences, position, includeSymbol) {\n    if (completion === void 0) {\n      return void 0;\n    }\n    const optionalReplacementSpan = createTextSpanFromStringLiteralLikeContent(contextToken);\n    switch (completion.kind) {\n      case 0:\n        return convertPathCompletions(completion.paths);\n      case 1: {\n        const entries = createSortedArray();\n        getCompletionEntriesFromSymbols(completion.symbols, entries, contextToken, contextToken, sourceFile, position, sourceFile, host, program, 99, log, 4, preferences, options, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, includeSymbol);\n        return { isGlobalCompletion: false, isMemberCompletion: true, isNewIdentifierLocation: completion.hasIndexSignature, optionalReplacementSpan, entries };\n      }\n      case 2: {\n        const entries = completion.types.map((type) => ({\n          name: type.value,\n          kindModifiers: \"\",\n          kind: \"string\",\n          sortText: SortText.LocationPriority,\n          replacementSpan: getReplacementSpanForContextToken(contextToken)\n        }));\n        return { isGlobalCompletion: false, isMemberCompletion: false, isNewIdentifierLocation: completion.isNewIdentifier, optionalReplacementSpan, entries };\n      }\n      default:\n        return Debug.assertNever(completion);\n    }\n  }\n  function getStringLiteralCompletionDetails(name, sourceFile, position, contextToken, checker, options, host, cancellationToken, preferences) {\n    if (!contextToken || !isStringLiteralLike(contextToken))\n      return void 0;\n    const completions = getStringLiteralCompletionEntries(sourceFile, contextToken, position, checker, options, host, preferences);\n    return completions && stringLiteralCompletionDetails(name, contextToken, completions, sourceFile, checker, cancellationToken);\n  }\n  function stringLiteralCompletionDetails(name, location, completion, sourceFile, checker, cancellationToken) {\n    switch (completion.kind) {\n      case 0: {\n        const match = find(completion.paths, (p) => p.name === name);\n        return match && createCompletionDetails(name, kindModifiersFromExtension(match.extension), match.kind, [textPart(name)]);\n      }\n      case 1: {\n        const match = find(completion.symbols, (s) => s.name === name);\n        return match && createCompletionDetailsForSymbol(match, match.name, checker, sourceFile, location, cancellationToken);\n      }\n      case 2:\n        return find(completion.types, (t) => t.value === name) ? createCompletionDetails(name, \"\", \"string\", [textPart(name)]) : void 0;\n      default:\n        return Debug.assertNever(completion);\n    }\n  }\n  function convertPathCompletions(pathCompletions) {\n    const isGlobalCompletion = false;\n    const isNewIdentifierLocation = true;\n    const entries = pathCompletions.map(({ name, kind, span, extension }) => ({ name, kind, kindModifiers: kindModifiersFromExtension(extension), sortText: SortText.LocationPriority, replacementSpan: span }));\n    return { isGlobalCompletion, isMemberCompletion: false, isNewIdentifierLocation, entries };\n  }\n  function kindModifiersFromExtension(extension) {\n    switch (extension) {\n      case \".d.ts\":\n        return \".d.ts\";\n      case \".js\":\n        return \".js\";\n      case \".json\":\n        return \".json\";\n      case \".jsx\":\n        return \".jsx\";\n      case \".ts\":\n        return \".ts\";\n      case \".tsx\":\n        return \".tsx\";\n      case \".d.mts\":\n        return \".d.mts\";\n      case \".mjs\":\n        return \".mjs\";\n      case \".mts\":\n        return \".mts\";\n      case \".d.cts\":\n        return \".d.cts\";\n      case \".cjs\":\n        return \".cjs\";\n      case \".cts\":\n        return \".cts\";\n      case \".tsbuildinfo\":\n        return Debug.fail(`Extension ${\".tsbuildinfo\"} is unsupported.`);\n      case void 0:\n        return \"\";\n      default:\n        return Debug.assertNever(extension);\n    }\n  }\n  function getStringLiteralCompletionEntries(sourceFile, node, position, typeChecker, compilerOptions, host, preferences) {\n    const parent2 = walkUpParentheses(node.parent);\n    switch (parent2.kind) {\n      case 198: {\n        const grandParent = walkUpParentheses(parent2.parent);\n        switch (grandParent.kind) {\n          case 230:\n          case 180: {\n            const typeArgument = findAncestor(parent2, (n) => n.parent === grandParent);\n            if (typeArgument) {\n              return { kind: 2, types: getStringLiteralTypes(typeChecker.getTypeArgumentConstraint(typeArgument)), isNewIdentifier: false };\n            }\n            return void 0;\n          }\n          case 196:\n            const { indexType, objectType } = grandParent;\n            if (!rangeContainsPosition(indexType, position)) {\n              return void 0;\n            }\n            return stringLiteralCompletionsFromProperties(typeChecker.getTypeFromTypeNode(objectType));\n          case 202:\n            return { kind: 0, paths: getStringLiteralCompletionsFromModuleNames(sourceFile, node, compilerOptions, host, typeChecker, preferences) };\n          case 189: {\n            if (!isTypeReferenceNode(grandParent.parent)) {\n              return void 0;\n            }\n            const alreadyUsedTypes = getAlreadyUsedTypesInStringLiteralUnion(grandParent, parent2);\n            const types = getStringLiteralTypes(typeChecker.getTypeArgumentConstraint(grandParent)).filter((t) => !contains(alreadyUsedTypes, t.value));\n            return { kind: 2, types, isNewIdentifier: false };\n          }\n          default:\n            return void 0;\n        }\n      }\n      case 299:\n        if (isObjectLiteralExpression(parent2.parent) && parent2.name === node) {\n          return stringLiteralCompletionsForObjectLiteral(typeChecker, parent2.parent);\n        }\n        return fromContextualType() || fromContextualType(0);\n      case 209: {\n        const { expression, argumentExpression } = parent2;\n        if (node === skipParentheses(argumentExpression)) {\n          return stringLiteralCompletionsFromProperties(typeChecker.getTypeAtLocation(expression));\n        }\n        return void 0;\n      }\n      case 210:\n      case 211:\n      case 288:\n        if (!isRequireCallArgument(node) && !isImportCall(parent2)) {\n          const argumentInfo = ts_SignatureHelp_exports.getArgumentInfoForCompletions(parent2.kind === 288 ? parent2.parent : node, position, sourceFile);\n          return argumentInfo && getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || fromContextualType();\n        }\n      case 269:\n      case 275:\n      case 280:\n        return { kind: 0, paths: getStringLiteralCompletionsFromModuleNames(sourceFile, node, compilerOptions, host, typeChecker, preferences) };\n      case 292:\n        const tracker = newCaseClauseTracker(typeChecker, parent2.parent.clauses);\n        const contextualTypes = fromContextualType();\n        if (!contextualTypes) {\n          return;\n        }\n        const literals = contextualTypes.types.filter((literal) => !tracker.hasValue(literal.value));\n        return { kind: 2, types: literals, isNewIdentifier: false };\n      default:\n        return fromContextualType();\n    }\n    function fromContextualType(contextFlags = 4) {\n      const types = getStringLiteralTypes(getContextualTypeFromParent(node, typeChecker, contextFlags));\n      if (!types.length) {\n        return;\n      }\n      return { kind: 2, types, isNewIdentifier: false };\n    }\n  }\n  function walkUpParentheses(node) {\n    switch (node.kind) {\n      case 193:\n        return walkUpParenthesizedTypes(node);\n      case 214:\n        return walkUpParenthesizedExpressions(node);\n      default:\n        return node;\n    }\n  }\n  function getAlreadyUsedTypesInStringLiteralUnion(union, current) {\n    return mapDefined(union.types, (type) => type !== current && isLiteralTypeNode(type) && isStringLiteral(type.literal) ? type.literal.text : void 0);\n  }\n  function getStringLiteralCompletionsFromSignature(call, arg, argumentInfo, checker) {\n    let isNewIdentifier = false;\n    const uniques = /* @__PURE__ */ new Map();\n    const candidates = [];\n    const editingArgument = isJsxOpeningLikeElement(call) ? Debug.checkDefined(findAncestor(arg.parent, isJsxAttribute)) : arg;\n    checker.getResolvedSignatureForStringLiteralCompletions(call, editingArgument, candidates);\n    const types = flatMap(candidates, (candidate) => {\n      if (!signatureHasRestParameter(candidate) && argumentInfo.argumentCount > candidate.parameters.length)\n        return;\n      let type = candidate.getTypeParameterAtPosition(argumentInfo.argumentIndex);\n      if (isJsxOpeningLikeElement(call)) {\n        const propType = checker.getTypeOfPropertyOfType(type, editingArgument.name.text);\n        if (propType) {\n          type = propType;\n        }\n      }\n      isNewIdentifier = isNewIdentifier || !!(type.flags & 4);\n      return getStringLiteralTypes(type, uniques);\n    });\n    return length(types) ? { kind: 2, types, isNewIdentifier } : void 0;\n  }\n  function stringLiteralCompletionsFromProperties(type) {\n    return type && {\n      kind: 1,\n      symbols: filter(type.getApparentProperties(), (prop) => !(prop.valueDeclaration && isPrivateIdentifierClassElementDeclaration(prop.valueDeclaration))),\n      hasIndexSignature: hasIndexSignature(type)\n    };\n  }\n  function stringLiteralCompletionsForObjectLiteral(checker, objectLiteralExpression) {\n    const contextualType = checker.getContextualType(objectLiteralExpression);\n    if (!contextualType)\n      return void 0;\n    const completionsType = checker.getContextualType(objectLiteralExpression, 4);\n    const symbols = getPropertiesForObjectExpression(contextualType, completionsType, objectLiteralExpression, checker);\n    return {\n      kind: 1,\n      symbols,\n      hasIndexSignature: hasIndexSignature(contextualType)\n    };\n  }\n  function getStringLiteralTypes(type, uniques = /* @__PURE__ */ new Map()) {\n    if (!type)\n      return emptyArray;\n    type = skipConstraint(type);\n    return type.isUnion() ? flatMap(type.types, (t) => getStringLiteralTypes(t, uniques)) : type.isStringLiteral() && !(type.flags & 1024) && addToSeen(uniques, type.value) ? [type] : emptyArray;\n  }\n  function nameAndKind(name, kind, extension) {\n    return { name, kind, extension };\n  }\n  function directoryResult(name) {\n    return nameAndKind(name, \"directory\", void 0);\n  }\n  function addReplacementSpans(text, textStart, names) {\n    const span = getDirectoryFragmentTextSpan(text, textStart);\n    const wholeSpan = text.length === 0 ? void 0 : createTextSpan(textStart, text.length);\n    return names.map(({ name, kind, extension }) => Math.max(name.indexOf(directorySeparator), name.indexOf(altDirectorySeparator)) !== -1 ? { name, kind, extension, span: wholeSpan } : { name, kind, extension, span });\n  }\n  function getStringLiteralCompletionsFromModuleNames(sourceFile, node, compilerOptions, host, typeChecker, preferences) {\n    return addReplacementSpans(node.text, node.getStart(sourceFile) + 1, getStringLiteralCompletionsFromModuleNamesWorker(sourceFile, node, compilerOptions, host, typeChecker, preferences));\n  }\n  function getStringLiteralCompletionsFromModuleNamesWorker(sourceFile, node, compilerOptions, host, typeChecker, preferences) {\n    const literalValue = normalizeSlashes(node.text);\n    const mode = isStringLiteralLike(node) ? getModeForUsageLocation(sourceFile, node) : void 0;\n    const scriptPath = sourceFile.path;\n    const scriptDirectory = getDirectoryPath(scriptPath);\n    const extensionOptions = getExtensionOptions(compilerOptions, 1, sourceFile, typeChecker, preferences, mode);\n    return isPathRelativeToScript(literalValue) || !compilerOptions.baseUrl && (isRootedDiskPath(literalValue) || isUrl(literalValue)) ? getCompletionEntriesForRelativeModules(literalValue, scriptDirectory, compilerOptions, host, scriptPath, extensionOptions) : getCompletionEntriesForNonRelativeModules(literalValue, scriptDirectory, mode, compilerOptions, host, extensionOptions, typeChecker);\n  }\n  function getExtensionOptions(compilerOptions, referenceKind, importingSourceFile, typeChecker, preferences, resolutionMode) {\n    return {\n      extensionsToSearch: flatten(getSupportedExtensionsForModuleResolution(compilerOptions, typeChecker)),\n      referenceKind,\n      importingSourceFile,\n      endingPreference: preferences == null ? void 0 : preferences.importModuleSpecifierEnding,\n      resolutionMode\n    };\n  }\n  function getCompletionEntriesForRelativeModules(literalValue, scriptDirectory, compilerOptions, host, scriptPath, extensionOptions) {\n    if (compilerOptions.rootDirs) {\n      return getCompletionEntriesForDirectoryFragmentWithRootDirs(compilerOptions.rootDirs, literalValue, scriptDirectory, extensionOptions, compilerOptions, host, scriptPath);\n    } else {\n      return arrayFrom(getCompletionEntriesForDirectoryFragment(literalValue, scriptDirectory, extensionOptions, host, false, scriptPath).values());\n    }\n  }\n  function getSupportedExtensionsForModuleResolution(compilerOptions, typeChecker) {\n    const ambientModulesExtensions = !typeChecker ? [] : mapDefined(typeChecker.getAmbientModules(), (module2) => {\n      const name = module2.name.slice(1, -1);\n      if (!name.startsWith(\"*.\") || name.includes(\"/\"))\n        return;\n      return name.slice(1);\n    });\n    const extensions = [...getSupportedExtensions(compilerOptions), ambientModulesExtensions];\n    const moduleResolution = getEmitModuleResolutionKind(compilerOptions);\n    return moduleResolutionUsesNodeModules(moduleResolution) ? getSupportedExtensionsWithJsonIfResolveJsonModule(compilerOptions, extensions) : extensions;\n  }\n  function getBaseDirectoriesFromRootDirs(rootDirs, basePath, scriptDirectory, ignoreCase) {\n    rootDirs = rootDirs.map((rootDirectory) => normalizePath(isRootedDiskPath(rootDirectory) ? rootDirectory : combinePaths(basePath, rootDirectory)));\n    const relativeDirectory = firstDefined(rootDirs, (rootDirectory) => containsPath(rootDirectory, scriptDirectory, basePath, ignoreCase) ? scriptDirectory.substr(rootDirectory.length) : void 0);\n    return deduplicate([...rootDirs.map((rootDirectory) => combinePaths(rootDirectory, relativeDirectory)), scriptDirectory], equateStringsCaseSensitive, compareStringsCaseSensitive);\n  }\n  function getCompletionEntriesForDirectoryFragmentWithRootDirs(rootDirs, fragment, scriptDirectory, extensionOptions, compilerOptions, host, exclude) {\n    const basePath = compilerOptions.project || host.getCurrentDirectory();\n    const ignoreCase = !(host.useCaseSensitiveFileNames && host.useCaseSensitiveFileNames());\n    const baseDirectories = getBaseDirectoriesFromRootDirs(rootDirs, basePath, scriptDirectory, ignoreCase);\n    return flatMap(baseDirectories, (baseDirectory) => arrayFrom(getCompletionEntriesForDirectoryFragment(fragment, baseDirectory, extensionOptions, host, true, exclude).values()));\n  }\n  function getCompletionEntriesForDirectoryFragment(fragment, scriptDirectory, extensionOptions, host, moduleSpecifierIsRelative, exclude, result = createNameAndKindSet()) {\n    var _a2;\n    if (fragment === void 0) {\n      fragment = \"\";\n    }\n    fragment = normalizeSlashes(fragment);\n    if (!hasTrailingDirectorySeparator(fragment)) {\n      fragment = getDirectoryPath(fragment);\n    }\n    if (fragment === \"\") {\n      fragment = \".\" + directorySeparator;\n    }\n    fragment = ensureTrailingDirectorySeparator(fragment);\n    const absolutePath = resolvePath(scriptDirectory, fragment);\n    const baseDirectory = hasTrailingDirectorySeparator(absolutePath) ? absolutePath : getDirectoryPath(absolutePath);\n    if (!moduleSpecifierIsRelative) {\n      const packageJsonPath = findPackageJson(baseDirectory, host);\n      if (packageJsonPath) {\n        const packageJson = readJson(packageJsonPath, host);\n        const typesVersions = packageJson.typesVersions;\n        if (typeof typesVersions === \"object\") {\n          const versionPaths = (_a2 = getPackageJsonTypesVersionsPaths(typesVersions)) == null ? void 0 : _a2.paths;\n          if (versionPaths) {\n            const packageDirectory = getDirectoryPath(packageJsonPath);\n            const pathInPackage = absolutePath.slice(ensureTrailingDirectorySeparator(packageDirectory).length);\n            if (addCompletionEntriesFromPaths(result, pathInPackage, packageDirectory, extensionOptions, host, versionPaths)) {\n              return result;\n            }\n          }\n        }\n      }\n    }\n    const ignoreCase = !(host.useCaseSensitiveFileNames && host.useCaseSensitiveFileNames());\n    if (!tryDirectoryExists(host, baseDirectory))\n      return result;\n    const files = tryReadDirectory(host, baseDirectory, extensionOptions.extensionsToSearch, void 0, [\"./*\"]);\n    if (files) {\n      for (let filePath of files) {\n        filePath = normalizePath(filePath);\n        if (exclude && comparePaths(filePath, exclude, scriptDirectory, ignoreCase) === 0) {\n          continue;\n        }\n        const { name, extension } = getFilenameWithExtensionOption(getBaseFileName(filePath), host.getCompilationSettings(), extensionOptions);\n        result.add(nameAndKind(name, \"script\", extension));\n      }\n    }\n    const directories = tryGetDirectories(host, baseDirectory);\n    if (directories) {\n      for (const directory of directories) {\n        const directoryName = getBaseFileName(normalizePath(directory));\n        if (directoryName !== \"@types\") {\n          result.add(directoryResult(directoryName));\n        }\n      }\n    }\n    return result;\n  }\n  function getFilenameWithExtensionOption(name, compilerOptions, extensionOptions) {\n    const nonJsResult = ts_moduleSpecifiers_exports.tryGetRealFileNameForNonJsDeclarationFileName(name);\n    if (nonJsResult) {\n      return { name: nonJsResult, extension: tryGetExtensionFromPath2(nonJsResult) };\n    }\n    if (extensionOptions.referenceKind === 0) {\n      return { name, extension: tryGetExtensionFromPath2(name) };\n    }\n    const endingPreference = getModuleSpecifierEndingPreference(extensionOptions.endingPreference, extensionOptions.resolutionMode, compilerOptions, extensionOptions.importingSourceFile);\n    if (endingPreference === 3) {\n      if (fileExtensionIsOneOf(name, supportedTSImplementationExtensions)) {\n        return { name, extension: tryGetExtensionFromPath2(name) };\n      }\n      const outputExtension2 = ts_moduleSpecifiers_exports.tryGetJSExtensionForFile(name, compilerOptions);\n      return outputExtension2 ? { name: changeExtension(name, outputExtension2), extension: outputExtension2 } : { name, extension: tryGetExtensionFromPath2(name) };\n    }\n    if ((endingPreference === 0 || endingPreference === 1) && fileExtensionIsOneOf(name, [\".js\", \".jsx\", \".ts\", \".tsx\", \".d.ts\"])) {\n      return { name: removeFileExtension(name), extension: tryGetExtensionFromPath2(name) };\n    }\n    const outputExtension = ts_moduleSpecifiers_exports.tryGetJSExtensionForFile(name, compilerOptions);\n    return outputExtension ? { name: changeExtension(name, outputExtension), extension: outputExtension } : { name, extension: tryGetExtensionFromPath2(name) };\n  }\n  function addCompletionEntriesFromPaths(result, fragment, baseDirectory, extensionOptions, host, paths) {\n    const getPatternsForKey = (key) => paths[key];\n    const comparePaths2 = (a, b) => {\n      const patternA = tryParsePattern(a);\n      const patternB = tryParsePattern(b);\n      const lengthA = typeof patternA === \"object\" ? patternA.prefix.length : a.length;\n      const lengthB = typeof patternB === \"object\" ? patternB.prefix.length : b.length;\n      return compareValues(lengthB, lengthA);\n    };\n    return addCompletionEntriesFromPathsOrExports(result, fragment, baseDirectory, extensionOptions, host, getOwnKeys(paths), getPatternsForKey, comparePaths2);\n  }\n  function addCompletionEntriesFromPathsOrExports(result, fragment, baseDirectory, extensionOptions, host, keys, getPatternsForKey, comparePaths2) {\n    let pathResults = [];\n    let matchedPath;\n    for (const key of keys) {\n      if (key === \".\")\n        continue;\n      const keyWithoutLeadingDotSlash = key.replace(/^\\.\\//, \"\");\n      const patterns = getPatternsForKey(key);\n      if (patterns) {\n        const pathPattern = tryParsePattern(keyWithoutLeadingDotSlash);\n        if (!pathPattern)\n          continue;\n        const isMatch = typeof pathPattern === \"object\" && isPatternMatch(pathPattern, fragment);\n        const isLongestMatch = isMatch && (matchedPath === void 0 || comparePaths2(key, matchedPath) === -1);\n        if (isLongestMatch) {\n          matchedPath = key;\n          pathResults = pathResults.filter((r) => !r.matchedPattern);\n        }\n        if (typeof pathPattern === \"string\" || matchedPath === void 0 || comparePaths2(key, matchedPath) !== 1) {\n          pathResults.push({\n            matchedPattern: isMatch,\n            results: getCompletionsForPathMapping(keyWithoutLeadingDotSlash, patterns, fragment, baseDirectory, extensionOptions, host).map(({ name, kind, extension }) => nameAndKind(name, kind, extension))\n          });\n        }\n      }\n    }\n    pathResults.forEach((pathResult) => pathResult.results.forEach((r) => result.add(r)));\n    return matchedPath !== void 0;\n  }\n  function getCompletionEntriesForNonRelativeModules(fragment, scriptPath, mode, compilerOptions, host, extensionOptions, typeChecker) {\n    const { baseUrl, paths } = compilerOptions;\n    const result = createNameAndKindSet();\n    const moduleResolution = getEmitModuleResolutionKind(compilerOptions);\n    if (baseUrl) {\n      const projectDir = compilerOptions.project || host.getCurrentDirectory();\n      const absolute = normalizePath(combinePaths(projectDir, baseUrl));\n      getCompletionEntriesForDirectoryFragment(fragment, absolute, extensionOptions, host, false, void 0, result);\n      if (paths) {\n        addCompletionEntriesFromPaths(result, fragment, absolute, extensionOptions, host, paths);\n      }\n    }\n    const fragmentDirectory = getFragmentDirectory(fragment);\n    for (const ambientName of getAmbientModuleCompletions(fragment, fragmentDirectory, typeChecker)) {\n      result.add(nameAndKind(ambientName, \"external module name\", void 0));\n    }\n    getCompletionEntriesFromTypings(host, compilerOptions, scriptPath, fragmentDirectory, extensionOptions, result);\n    if (moduleResolutionUsesNodeModules(moduleResolution)) {\n      let foundGlobal = false;\n      if (fragmentDirectory === void 0) {\n        for (const moduleName of enumerateNodeModulesVisibleToScript(host, scriptPath)) {\n          const moduleResult = nameAndKind(moduleName, \"external module name\", void 0);\n          if (!result.has(moduleResult.name)) {\n            foundGlobal = true;\n            result.add(moduleResult);\n          }\n        }\n      }\n      if (!foundGlobal) {\n        let ancestorLookup = (ancestor) => {\n          const nodeModules = combinePaths(ancestor, \"node_modules\");\n          if (tryDirectoryExists(host, nodeModules)) {\n            getCompletionEntriesForDirectoryFragment(fragment, nodeModules, extensionOptions, host, false, void 0, result);\n          }\n        };\n        if (fragmentDirectory && getResolvePackageJsonExports(compilerOptions)) {\n          const nodeModulesDirectoryLookup = ancestorLookup;\n          ancestorLookup = (ancestor) => {\n            const components = getPathComponents(fragment);\n            components.shift();\n            let packagePath = components.shift();\n            if (!packagePath) {\n              return nodeModulesDirectoryLookup(ancestor);\n            }\n            if (startsWith(packagePath, \"@\")) {\n              const subName = components.shift();\n              if (!subName) {\n                return nodeModulesDirectoryLookup(ancestor);\n              }\n              packagePath = combinePaths(packagePath, subName);\n            }\n            const packageDirectory = combinePaths(ancestor, \"node_modules\", packagePath);\n            const packageFile = combinePaths(packageDirectory, \"package.json\");\n            if (tryFileExists(host, packageFile)) {\n              const packageJson = readJson(packageFile, host);\n              const exports = packageJson.exports;\n              if (exports) {\n                if (typeof exports !== \"object\" || exports === null) {\n                  return;\n                }\n                const keys = getOwnKeys(exports);\n                const fragmentSubpath = components.join(\"/\") + (components.length && hasTrailingDirectorySeparator(fragment) ? \"/\" : \"\");\n                const conditions = mode === 99 ? [\"node\", \"import\", \"types\"] : [\"node\", \"require\", \"types\"];\n                addCompletionEntriesFromPathsOrExports(result, fragmentSubpath, packageDirectory, extensionOptions, host, keys, (key) => singleElementArray(getPatternFromFirstMatchingCondition(exports[key], conditions)), comparePatternKeys);\n                return;\n              }\n            }\n            return nodeModulesDirectoryLookup(ancestor);\n          };\n        }\n        forEachAncestorDirectory(scriptPath, ancestorLookup);\n      }\n    }\n    return arrayFrom(result.values());\n  }\n  function getPatternFromFirstMatchingCondition(target, conditions) {\n    if (typeof target === \"string\") {\n      return target;\n    }\n    if (target && typeof target === \"object\" && !isArray(target)) {\n      for (const condition in target) {\n        if (condition === \"default\" || conditions.indexOf(condition) > -1 || isApplicableVersionedTypesKey(conditions, condition)) {\n          const pattern = target[condition];\n          return getPatternFromFirstMatchingCondition(pattern, conditions);\n        }\n      }\n    }\n  }\n  function getFragmentDirectory(fragment) {\n    return containsSlash(fragment) ? hasTrailingDirectorySeparator(fragment) ? fragment : getDirectoryPath(fragment) : void 0;\n  }\n  function getCompletionsForPathMapping(path, patterns, fragment, packageDirectory, extensionOptions, host) {\n    if (!endsWith(path, \"*\")) {\n      return !stringContains(path, \"*\") ? justPathMappingName(path, \"script\") : emptyArray;\n    }\n    const pathPrefix = path.slice(0, path.length - 1);\n    const remainingFragment = tryRemovePrefix(fragment, pathPrefix);\n    if (remainingFragment === void 0) {\n      const starIsFullPathComponent = path[path.length - 2] === \"/\";\n      return starIsFullPathComponent ? justPathMappingName(pathPrefix, \"directory\") : flatMap(patterns, (pattern) => {\n        var _a2;\n        return (_a2 = getModulesForPathsPattern(\"\", packageDirectory, pattern, extensionOptions, host)) == null ? void 0 : _a2.map(({ name, ...rest }) => ({ name: pathPrefix + name, ...rest }));\n      });\n    }\n    return flatMap(patterns, (pattern) => getModulesForPathsPattern(remainingFragment, packageDirectory, pattern, extensionOptions, host));\n    function justPathMappingName(name, kind) {\n      return startsWith(name, fragment) ? [{ name: removeTrailingDirectorySeparator(name), kind, extension: void 0 }] : emptyArray;\n    }\n  }\n  function getModulesForPathsPattern(fragment, packageDirectory, pattern, extensionOptions, host) {\n    if (!host.readDirectory) {\n      return void 0;\n    }\n    const parsed = tryParsePattern(pattern);\n    if (parsed === void 0 || isString(parsed)) {\n      return void 0;\n    }\n    const normalizedPrefix = resolvePath(parsed.prefix);\n    const normalizedPrefixDirectory = hasTrailingDirectorySeparator(parsed.prefix) ? normalizedPrefix : getDirectoryPath(normalizedPrefix);\n    const normalizedPrefixBase = hasTrailingDirectorySeparator(parsed.prefix) ? \"\" : getBaseFileName(normalizedPrefix);\n    const fragmentHasPath = containsSlash(fragment);\n    const fragmentDirectory = fragmentHasPath ? hasTrailingDirectorySeparator(fragment) ? fragment : getDirectoryPath(fragment) : void 0;\n    const expandedPrefixDirectory = fragmentHasPath ? combinePaths(normalizedPrefixDirectory, normalizedPrefixBase + fragmentDirectory) : normalizedPrefixDirectory;\n    const normalizedSuffix = normalizePath(parsed.suffix);\n    const baseDirectory = normalizePath(combinePaths(packageDirectory, expandedPrefixDirectory));\n    const completePrefix = fragmentHasPath ? baseDirectory : ensureTrailingDirectorySeparator(baseDirectory) + normalizedPrefixBase;\n    const includeGlob = normalizedSuffix ? \"**/*\" + normalizedSuffix : \"./*\";\n    const matches = mapDefined(tryReadDirectory(host, baseDirectory, extensionOptions.extensionsToSearch, void 0, [includeGlob]), (match) => {\n      const trimmedWithPattern = trimPrefixAndSuffix(match);\n      if (trimmedWithPattern) {\n        if (containsSlash(trimmedWithPattern)) {\n          return directoryResult(getPathComponents(removeLeadingDirectorySeparator(trimmedWithPattern))[1]);\n        }\n        const { name, extension } = getFilenameWithExtensionOption(trimmedWithPattern, host.getCompilationSettings(), extensionOptions);\n        return nameAndKind(name, \"script\", extension);\n      }\n    });\n    const directories = normalizedSuffix ? emptyArray : mapDefined(tryGetDirectories(host, baseDirectory), (dir) => dir === \"node_modules\" ? void 0 : directoryResult(dir));\n    return [...matches, ...directories];\n    function trimPrefixAndSuffix(path) {\n      const inner = withoutStartAndEnd(normalizePath(path), completePrefix, normalizedSuffix);\n      return inner === void 0 ? void 0 : removeLeadingDirectorySeparator(inner);\n    }\n  }\n  function withoutStartAndEnd(s, start, end) {\n    return startsWith(s, start) && endsWith(s, end) ? s.slice(start.length, s.length - end.length) : void 0;\n  }\n  function removeLeadingDirectorySeparator(path) {\n    return path[0] === directorySeparator ? path.slice(1) : path;\n  }\n  function getAmbientModuleCompletions(fragment, fragmentDirectory, checker) {\n    const ambientModules = checker.getAmbientModules().map((sym) => stripQuotes(sym.name));\n    const nonRelativeModuleNames = ambientModules.filter((moduleName) => startsWith(moduleName, fragment) && moduleName.indexOf(\"*\") < 0);\n    if (fragmentDirectory !== void 0) {\n      const moduleNameWithSeparator = ensureTrailingDirectorySeparator(fragmentDirectory);\n      return nonRelativeModuleNames.map((nonRelativeModuleName) => removePrefix(nonRelativeModuleName, moduleNameWithSeparator));\n    }\n    return nonRelativeModuleNames;\n  }\n  function getTripleSlashReferenceCompletion(sourceFile, position, compilerOptions, host) {\n    const token = getTokenAtPosition(sourceFile, position);\n    const commentRanges = getLeadingCommentRanges(sourceFile.text, token.pos);\n    const range = commentRanges && find(commentRanges, (commentRange) => position >= commentRange.pos && position <= commentRange.end);\n    if (!range) {\n      return void 0;\n    }\n    const text = sourceFile.text.slice(range.pos, position);\n    const match = tripleSlashDirectiveFragmentRegex.exec(text);\n    if (!match) {\n      return void 0;\n    }\n    const [, prefix, kind, toComplete] = match;\n    const scriptPath = getDirectoryPath(sourceFile.path);\n    const names = kind === \"path\" ? getCompletionEntriesForDirectoryFragment(toComplete, scriptPath, getExtensionOptions(compilerOptions, 0, sourceFile), host, true, sourceFile.path) : kind === \"types\" ? getCompletionEntriesFromTypings(host, compilerOptions, scriptPath, getFragmentDirectory(toComplete), getExtensionOptions(compilerOptions, 1, sourceFile)) : Debug.fail();\n    return addReplacementSpans(toComplete, range.pos + prefix.length, arrayFrom(names.values()));\n  }\n  function getCompletionEntriesFromTypings(host, options, scriptPath, fragmentDirectory, extensionOptions, result = createNameAndKindSet()) {\n    const seen = /* @__PURE__ */ new Map();\n    const typeRoots = tryAndIgnoreErrors(() => getEffectiveTypeRoots(options, host)) || emptyArray;\n    for (const root of typeRoots) {\n      getCompletionEntriesFromDirectories(root);\n    }\n    for (const packageJson of findPackageJsons(scriptPath, host)) {\n      const typesDir = combinePaths(getDirectoryPath(packageJson), \"node_modules/@types\");\n      getCompletionEntriesFromDirectories(typesDir);\n    }\n    return result;\n    function getCompletionEntriesFromDirectories(directory) {\n      if (!tryDirectoryExists(host, directory))\n        return;\n      for (const typeDirectoryName of tryGetDirectories(host, directory)) {\n        const packageName = unmangleScopedPackageName(typeDirectoryName);\n        if (options.types && !contains(options.types, packageName))\n          continue;\n        if (fragmentDirectory === void 0) {\n          if (!seen.has(packageName)) {\n            result.add(nameAndKind(packageName, \"external module name\", void 0));\n            seen.set(packageName, true);\n          }\n        } else {\n          const baseDirectory = combinePaths(directory, typeDirectoryName);\n          const remainingFragment = tryRemoveDirectoryPrefix(fragmentDirectory, packageName, hostGetCanonicalFileName(host));\n          if (remainingFragment !== void 0) {\n            getCompletionEntriesForDirectoryFragment(remainingFragment, baseDirectory, extensionOptions, host, false, void 0, result);\n          }\n        }\n      }\n    }\n  }\n  function enumerateNodeModulesVisibleToScript(host, scriptPath) {\n    if (!host.readFile || !host.fileExists)\n      return emptyArray;\n    const result = [];\n    for (const packageJson of findPackageJsons(scriptPath, host)) {\n      const contents = readJson(packageJson, host);\n      for (const key of nodeModulesDependencyKeys) {\n        const dependencies = contents[key];\n        if (!dependencies)\n          continue;\n        for (const dep in dependencies) {\n          if (hasProperty(dependencies, dep) && !startsWith(dep, \"@types/\")) {\n            result.push(dep);\n          }\n        }\n      }\n    }\n    return result;\n  }\n  function getDirectoryFragmentTextSpan(text, textStart) {\n    const index = Math.max(text.lastIndexOf(directorySeparator), text.lastIndexOf(altDirectorySeparator));\n    const offset = index !== -1 ? index + 1 : 0;\n    const length2 = text.length - offset;\n    return length2 === 0 || isIdentifierText(text.substr(offset, length2), 99) ? void 0 : createTextSpan(textStart + offset, length2);\n  }\n  function isPathRelativeToScript(path) {\n    if (path && path.length >= 2 && path.charCodeAt(0) === 46) {\n      const slashIndex = path.length >= 3 && path.charCodeAt(1) === 46 ? 2 : 1;\n      const slashCharCode = path.charCodeAt(slashIndex);\n      return slashCharCode === 47 || slashCharCode === 92;\n    }\n    return false;\n  }\n  function containsSlash(fragment) {\n    return stringContains(fragment, directorySeparator);\n  }\n  function isRequireCallArgument(node) {\n    return isCallExpression(node.parent) && firstOrUndefined(node.parent.arguments) === node && isIdentifier(node.parent.expression) && node.parent.expression.escapedText === \"require\";\n  }\n  var kindPrecedence, tripleSlashDirectiveFragmentRegex, nodeModulesDependencyKeys;\n  var init_stringCompletions = __esm({\n    \"src/services/stringCompletions.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_Completions();\n      kindPrecedence = {\n        [\"directory\"]: 0,\n        [\"script\"]: 1,\n        [\"external module name\"]: 2\n      };\n      tripleSlashDirectiveFragmentRegex = /^(\\/\\/\\/\\s*<reference\\s+(path|types)\\s*=\\s*(?:'|\"))([^\\3\"]*)$/;\n      nodeModulesDependencyKeys = [\"dependencies\", \"devDependencies\", \"peerDependencies\", \"optionalDependencies\"];\n    }\n  });\n  var ts_Completions_StringCompletions_exports = {};\n  __export2(ts_Completions_StringCompletions_exports, {\n    getStringLiteralCompletionDetails: () => getStringLiteralCompletionDetails,\n    getStringLiteralCompletions: () => getStringLiteralCompletions\n  });\n  var init_ts_Completions_StringCompletions = __esm({\n    \"src/services/_namespaces/ts.Completions.StringCompletions.ts\"() {\n      \"use strict\";\n      init_stringCompletions();\n    }\n  });\n  var ts_Completions_exports = {};\n  __export2(ts_Completions_exports, {\n    CompletionKind: () => CompletionKind,\n    CompletionSource: () => CompletionSource,\n    SortText: () => SortText,\n    StringCompletions: () => ts_Completions_StringCompletions_exports,\n    SymbolOriginInfoKind: () => SymbolOriginInfoKind,\n    createCompletionDetails: () => createCompletionDetails,\n    createCompletionDetailsForSymbol: () => createCompletionDetailsForSymbol,\n    getCompletionEntriesFromSymbols: () => getCompletionEntriesFromSymbols,\n    getCompletionEntryDetails: () => getCompletionEntryDetails,\n    getCompletionEntrySymbol: () => getCompletionEntrySymbol,\n    getCompletionsAtPosition: () => getCompletionsAtPosition,\n    getPropertiesForObjectExpression: () => getPropertiesForObjectExpression,\n    moduleSpecifierResolutionCacheAttemptLimit: () => moduleSpecifierResolutionCacheAttemptLimit,\n    moduleSpecifierResolutionLimit: () => moduleSpecifierResolutionLimit\n  });\n  var init_ts_Completions = __esm({\n    \"src/services/_namespaces/ts.Completions.ts\"() {\n      \"use strict\";\n      init_completions();\n      init_ts_Completions_StringCompletions();\n    }\n  });\n  function createImportTracker(sourceFiles, sourceFilesSet, checker, cancellationToken) {\n    const allDirectImports = getDirectImportsMap(sourceFiles, checker, cancellationToken);\n    return (exportSymbol, exportInfo, isForRename) => {\n      const { directImports, indirectUsers } = getImportersForExport(sourceFiles, sourceFilesSet, allDirectImports, exportInfo, checker, cancellationToken);\n      return { indirectUsers, ...getSearchesFromDirectImports(directImports, exportSymbol, exportInfo.exportKind, checker, isForRename) };\n    };\n  }\n  function getImportersForExport(sourceFiles, sourceFilesSet, allDirectImports, { exportingModuleSymbol, exportKind }, checker, cancellationToken) {\n    const markSeenDirectImport = nodeSeenTracker();\n    const markSeenIndirectUser = nodeSeenTracker();\n    const directImports = [];\n    const isAvailableThroughGlobal = !!exportingModuleSymbol.globalExports;\n    const indirectUserDeclarations = isAvailableThroughGlobal ? void 0 : [];\n    handleDirectImports(exportingModuleSymbol);\n    return { directImports, indirectUsers: getIndirectUsers() };\n    function getIndirectUsers() {\n      if (isAvailableThroughGlobal) {\n        return sourceFiles;\n      }\n      if (exportingModuleSymbol.declarations) {\n        for (const decl of exportingModuleSymbol.declarations) {\n          if (isExternalModuleAugmentation(decl) && sourceFilesSet.has(decl.getSourceFile().fileName)) {\n            addIndirectUser(decl);\n          }\n        }\n      }\n      return indirectUserDeclarations.map(getSourceFileOfNode);\n    }\n    function handleDirectImports(exportingModuleSymbol2) {\n      const theseDirectImports = getDirectImports(exportingModuleSymbol2);\n      if (theseDirectImports) {\n        for (const direct of theseDirectImports) {\n          if (!markSeenDirectImport(direct)) {\n            continue;\n          }\n          if (cancellationToken)\n            cancellationToken.throwIfCancellationRequested();\n          switch (direct.kind) {\n            case 210:\n              if (isImportCall(direct)) {\n                handleImportCall(direct);\n                break;\n              }\n              if (!isAvailableThroughGlobal) {\n                const parent2 = direct.parent;\n                if (exportKind === 2 && parent2.kind === 257) {\n                  const { name } = parent2;\n                  if (name.kind === 79) {\n                    directImports.push(name);\n                    break;\n                  }\n                }\n              }\n              break;\n            case 79:\n              break;\n            case 268:\n              handleNamespaceImport(direct, direct.name, hasSyntacticModifier(direct, 1), false);\n              break;\n            case 269:\n              directImports.push(direct);\n              const namedBindings = direct.importClause && direct.importClause.namedBindings;\n              if (namedBindings && namedBindings.kind === 271) {\n                handleNamespaceImport(direct, namedBindings.name, false, true);\n              } else if (!isAvailableThroughGlobal && isDefaultImport(direct)) {\n                addIndirectUser(getSourceFileLikeForImportDeclaration(direct));\n              }\n              break;\n            case 275:\n              if (!direct.exportClause) {\n                handleDirectImports(getContainingModuleSymbol(direct, checker));\n              } else if (direct.exportClause.kind === 277) {\n                addIndirectUser(getSourceFileLikeForImportDeclaration(direct), true);\n              } else {\n                directImports.push(direct);\n              }\n              break;\n            case 202:\n              if (!isAvailableThroughGlobal && direct.isTypeOf && !direct.qualifier && isExported2(direct)) {\n                addIndirectUser(direct.getSourceFile(), true);\n              }\n              directImports.push(direct);\n              break;\n            default:\n              Debug.failBadSyntaxKind(direct, \"Unexpected import kind.\");\n          }\n        }\n      }\n    }\n    function handleImportCall(importCall) {\n      const top = findAncestor(importCall, isAmbientModuleDeclaration) || importCall.getSourceFile();\n      addIndirectUser(top, !!isExported2(importCall, true));\n    }\n    function isExported2(node, stopAtAmbientModule = false) {\n      return findAncestor(node, (node2) => {\n        if (stopAtAmbientModule && isAmbientModuleDeclaration(node2))\n          return \"quit\";\n        return canHaveModifiers(node2) && some(node2.modifiers, isExportModifier);\n      });\n    }\n    function handleNamespaceImport(importDeclaration, name, isReExport, alreadyAddedDirect) {\n      if (exportKind === 2) {\n        if (!alreadyAddedDirect)\n          directImports.push(importDeclaration);\n      } else if (!isAvailableThroughGlobal) {\n        const sourceFileLike = getSourceFileLikeForImportDeclaration(importDeclaration);\n        Debug.assert(sourceFileLike.kind === 308 || sourceFileLike.kind === 264);\n        if (isReExport || findNamespaceReExports(sourceFileLike, name, checker)) {\n          addIndirectUser(sourceFileLike, true);\n        } else {\n          addIndirectUser(sourceFileLike);\n        }\n      }\n    }\n    function addIndirectUser(sourceFileLike, addTransitiveDependencies = false) {\n      Debug.assert(!isAvailableThroughGlobal);\n      const isNew = markSeenIndirectUser(sourceFileLike);\n      if (!isNew)\n        return;\n      indirectUserDeclarations.push(sourceFileLike);\n      if (!addTransitiveDependencies)\n        return;\n      const moduleSymbol = checker.getMergedSymbol(sourceFileLike.symbol);\n      if (!moduleSymbol)\n        return;\n      Debug.assert(!!(moduleSymbol.flags & 1536));\n      const directImports2 = getDirectImports(moduleSymbol);\n      if (directImports2) {\n        for (const directImport of directImports2) {\n          if (!isImportTypeNode(directImport)) {\n            addIndirectUser(getSourceFileLikeForImportDeclaration(directImport), true);\n          }\n        }\n      }\n    }\n    function getDirectImports(moduleSymbol) {\n      return allDirectImports.get(getSymbolId(moduleSymbol).toString());\n    }\n  }\n  function getSearchesFromDirectImports(directImports, exportSymbol, exportKind, checker, isForRename) {\n    const importSearches = [];\n    const singleReferences = [];\n    function addSearch(location, symbol) {\n      importSearches.push([location, symbol]);\n    }\n    if (directImports) {\n      for (const decl of directImports) {\n        handleImport(decl);\n      }\n    }\n    return { importSearches, singleReferences };\n    function handleImport(decl) {\n      if (decl.kind === 268) {\n        if (isExternalModuleImportEquals(decl)) {\n          handleNamespaceImportLike(decl.name);\n        }\n        return;\n      }\n      if (decl.kind === 79) {\n        handleNamespaceImportLike(decl);\n        return;\n      }\n      if (decl.kind === 202) {\n        if (decl.qualifier) {\n          const firstIdentifier = getFirstIdentifier(decl.qualifier);\n          if (firstIdentifier.escapedText === symbolName(exportSymbol)) {\n            singleReferences.push(firstIdentifier);\n          }\n        } else if (exportKind === 2) {\n          singleReferences.push(decl.argument.literal);\n        }\n        return;\n      }\n      if (decl.moduleSpecifier.kind !== 10) {\n        return;\n      }\n      if (decl.kind === 275) {\n        if (decl.exportClause && isNamedExports(decl.exportClause)) {\n          searchForNamedImport(decl.exportClause);\n        }\n        return;\n      }\n      const { name, namedBindings } = decl.importClause || { name: void 0, namedBindings: void 0 };\n      if (namedBindings) {\n        switch (namedBindings.kind) {\n          case 271:\n            handleNamespaceImportLike(namedBindings.name);\n            break;\n          case 272:\n            if (exportKind === 0 || exportKind === 1) {\n              searchForNamedImport(namedBindings);\n            }\n            break;\n          default:\n            Debug.assertNever(namedBindings);\n        }\n      }\n      if (name && (exportKind === 1 || exportKind === 2) && (!isForRename || name.escapedText === symbolEscapedNameNoDefault(exportSymbol))) {\n        const defaultImportAlias = checker.getSymbolAtLocation(name);\n        addSearch(name, defaultImportAlias);\n      }\n    }\n    function handleNamespaceImportLike(importName) {\n      if (exportKind === 2 && (!isForRename || isNameMatch(importName.escapedText))) {\n        addSearch(importName, checker.getSymbolAtLocation(importName));\n      }\n    }\n    function searchForNamedImport(namedBindings) {\n      if (!namedBindings) {\n        return;\n      }\n      for (const element of namedBindings.elements) {\n        const { name, propertyName } = element;\n        if (!isNameMatch((propertyName || name).escapedText)) {\n          continue;\n        }\n        if (propertyName) {\n          singleReferences.push(propertyName);\n          if (!isForRename || name.escapedText === exportSymbol.escapedName) {\n            addSearch(name, checker.getSymbolAtLocation(name));\n          }\n        } else {\n          const localSymbol = element.kind === 278 && element.propertyName ? checker.getExportSpecifierLocalTargetSymbol(element) : checker.getSymbolAtLocation(name);\n          addSearch(name, localSymbol);\n        }\n      }\n    }\n    function isNameMatch(name) {\n      return name === exportSymbol.escapedName || exportKind !== 0 && name === \"default\";\n    }\n  }\n  function findNamespaceReExports(sourceFileLike, name, checker) {\n    const namespaceImportSymbol = checker.getSymbolAtLocation(name);\n    return !!forEachPossibleImportOrExportStatement(sourceFileLike, (statement) => {\n      if (!isExportDeclaration(statement))\n        return;\n      const { exportClause, moduleSpecifier } = statement;\n      return !moduleSpecifier && exportClause && isNamedExports(exportClause) && exportClause.elements.some((element) => checker.getExportSpecifierLocalTargetSymbol(element) === namespaceImportSymbol);\n    });\n  }\n  function findModuleReferences(program, sourceFiles, searchModuleSymbol) {\n    var _a2;\n    const refs = [];\n    const checker = program.getTypeChecker();\n    for (const referencingFile of sourceFiles) {\n      const searchSourceFile = searchModuleSymbol.valueDeclaration;\n      if ((searchSourceFile == null ? void 0 : searchSourceFile.kind) === 308) {\n        for (const ref of referencingFile.referencedFiles) {\n          if (program.getSourceFileFromReference(referencingFile, ref) === searchSourceFile) {\n            refs.push({ kind: \"reference\", referencingFile, ref });\n          }\n        }\n        for (const ref of referencingFile.typeReferenceDirectives) {\n          const referenced = (_a2 = program.getResolvedTypeReferenceDirectives().get(ref.fileName, ref.resolutionMode || referencingFile.impliedNodeFormat)) == null ? void 0 : _a2.resolvedTypeReferenceDirective;\n          if (referenced !== void 0 && referenced.resolvedFileName === searchSourceFile.fileName) {\n            refs.push({ kind: \"reference\", referencingFile, ref });\n          }\n        }\n      }\n      forEachImport(referencingFile, (_importDecl, moduleSpecifier) => {\n        const moduleSymbol = checker.getSymbolAtLocation(moduleSpecifier);\n        if (moduleSymbol === searchModuleSymbol) {\n          refs.push({ kind: \"import\", literal: moduleSpecifier });\n        }\n      });\n    }\n    return refs;\n  }\n  function getDirectImportsMap(sourceFiles, checker, cancellationToken) {\n    const map2 = /* @__PURE__ */ new Map();\n    for (const sourceFile of sourceFiles) {\n      if (cancellationToken)\n        cancellationToken.throwIfCancellationRequested();\n      forEachImport(sourceFile, (importDecl, moduleSpecifier) => {\n        const moduleSymbol = checker.getSymbolAtLocation(moduleSpecifier);\n        if (moduleSymbol) {\n          const id = getSymbolId(moduleSymbol).toString();\n          let imports = map2.get(id);\n          if (!imports) {\n            map2.set(id, imports = []);\n          }\n          imports.push(importDecl);\n        }\n      });\n    }\n    return map2;\n  }\n  function forEachPossibleImportOrExportStatement(sourceFileLike, action) {\n    return forEach(sourceFileLike.kind === 308 ? sourceFileLike.statements : sourceFileLike.body.statements, (statement) => action(statement) || isAmbientModuleDeclaration(statement) && forEach(statement.body && statement.body.statements, action));\n  }\n  function forEachImport(sourceFile, action) {\n    if (sourceFile.externalModuleIndicator || sourceFile.imports !== void 0) {\n      for (const i of sourceFile.imports) {\n        action(importFromModuleSpecifier(i), i);\n      }\n    } else {\n      forEachPossibleImportOrExportStatement(sourceFile, (statement) => {\n        switch (statement.kind) {\n          case 275:\n          case 269: {\n            const decl = statement;\n            if (decl.moduleSpecifier && isStringLiteral(decl.moduleSpecifier)) {\n              action(decl, decl.moduleSpecifier);\n            }\n            break;\n          }\n          case 268: {\n            const decl = statement;\n            if (isExternalModuleImportEquals(decl)) {\n              action(decl, decl.moduleReference.expression);\n            }\n            break;\n          }\n        }\n      });\n    }\n  }\n  function getImportOrExportSymbol(node, symbol, checker, comingFromExport) {\n    return comingFromExport ? getExport() : getExport() || getImport();\n    function getExport() {\n      var _a2;\n      const { parent: parent2 } = node;\n      const grandparent = parent2.parent;\n      if (symbol.exportSymbol) {\n        if (parent2.kind === 208) {\n          return ((_a2 = symbol.declarations) == null ? void 0 : _a2.some((d) => d === parent2)) && isBinaryExpression(grandparent) ? getSpecialPropertyExport(grandparent, false) : void 0;\n        } else {\n          return exportInfo(symbol.exportSymbol, getExportKindForDeclaration(parent2));\n        }\n      } else {\n        const exportNode = getExportNode(parent2, node);\n        if (exportNode && hasSyntacticModifier(exportNode, 1)) {\n          if (isImportEqualsDeclaration(exportNode) && exportNode.moduleReference === node) {\n            if (comingFromExport) {\n              return void 0;\n            }\n            const lhsSymbol = checker.getSymbolAtLocation(exportNode.name);\n            return { kind: 0, symbol: lhsSymbol };\n          } else {\n            return exportInfo(symbol, getExportKindForDeclaration(exportNode));\n          }\n        } else if (isNamespaceExport(parent2)) {\n          return exportInfo(symbol, 0);\n        } else if (isExportAssignment(parent2)) {\n          return getExportAssignmentExport(parent2);\n        } else if (isExportAssignment(grandparent)) {\n          return getExportAssignmentExport(grandparent);\n        } else if (isBinaryExpression(parent2)) {\n          return getSpecialPropertyExport(parent2, true);\n        } else if (isBinaryExpression(grandparent)) {\n          return getSpecialPropertyExport(grandparent, true);\n        } else if (isJSDocTypedefTag(parent2) || isJSDocCallbackTag(parent2)) {\n          return exportInfo(symbol, 0);\n        }\n      }\n      function getExportAssignmentExport(ex) {\n        if (!ex.symbol.parent)\n          return void 0;\n        const exportKind = ex.isExportEquals ? 2 : 1;\n        return { kind: 1, symbol, exportInfo: { exportingModuleSymbol: ex.symbol.parent, exportKind } };\n      }\n      function getSpecialPropertyExport(node2, useLhsSymbol) {\n        let kind;\n        switch (getAssignmentDeclarationKind(node2)) {\n          case 1:\n            kind = 0;\n            break;\n          case 2:\n            kind = 2;\n            break;\n          default:\n            return void 0;\n        }\n        const sym = useLhsSymbol ? checker.getSymbolAtLocation(getNameOfAccessExpression(cast(node2.left, isAccessExpression))) : symbol;\n        return sym && exportInfo(sym, kind);\n      }\n    }\n    function getImport() {\n      const isImport3 = isNodeImport(node);\n      if (!isImport3)\n        return void 0;\n      let importedSymbol = checker.getImmediateAliasedSymbol(symbol);\n      if (!importedSymbol)\n        return void 0;\n      importedSymbol = skipExportSpecifierSymbol(importedSymbol, checker);\n      if (importedSymbol.escapedName === \"export=\") {\n        importedSymbol = getExportEqualsLocalSymbol(importedSymbol, checker);\n        if (importedSymbol === void 0)\n          return void 0;\n      }\n      const importedName = symbolEscapedNameNoDefault(importedSymbol);\n      if (importedName === void 0 || importedName === \"default\" || importedName === symbol.escapedName) {\n        return { kind: 0, symbol: importedSymbol };\n      }\n    }\n    function exportInfo(symbol2, kind) {\n      const exportInfo2 = getExportInfo(symbol2, kind, checker);\n      return exportInfo2 && { kind: 1, symbol: symbol2, exportInfo: exportInfo2 };\n    }\n    function getExportKindForDeclaration(node2) {\n      return hasSyntacticModifier(node2, 1024) ? 1 : 0;\n    }\n  }\n  function getExportEqualsLocalSymbol(importedSymbol, checker) {\n    var _a2, _b;\n    if (importedSymbol.flags & 2097152) {\n      return checker.getImmediateAliasedSymbol(importedSymbol);\n    }\n    const decl = Debug.checkDefined(importedSymbol.valueDeclaration);\n    if (isExportAssignment(decl)) {\n      return (_a2 = tryCast(decl.expression, canHaveSymbol)) == null ? void 0 : _a2.symbol;\n    } else if (isBinaryExpression(decl)) {\n      return (_b = tryCast(decl.right, canHaveSymbol)) == null ? void 0 : _b.symbol;\n    } else if (isSourceFile(decl)) {\n      return decl.symbol;\n    }\n    return void 0;\n  }\n  function getExportNode(parent2, node) {\n    const declaration = isVariableDeclaration(parent2) ? parent2 : isBindingElement(parent2) ? walkUpBindingElementsAndPatterns(parent2) : void 0;\n    if (declaration) {\n      return parent2.name !== node ? void 0 : isCatchClause(declaration.parent) ? void 0 : isVariableStatement(declaration.parent.parent) ? declaration.parent.parent : void 0;\n    } else {\n      return parent2;\n    }\n  }\n  function isNodeImport(node) {\n    const { parent: parent2 } = node;\n    switch (parent2.kind) {\n      case 268:\n        return parent2.name === node && isExternalModuleImportEquals(parent2);\n      case 273:\n        return !parent2.propertyName;\n      case 270:\n      case 271:\n        Debug.assert(parent2.name === node);\n        return true;\n      case 205:\n        return isInJSFile(node) && isVariableDeclarationInitializedToBareOrAccessedRequire(parent2.parent.parent);\n      default:\n        return false;\n    }\n  }\n  function getExportInfo(exportSymbol, exportKind, checker) {\n    const moduleSymbol = exportSymbol.parent;\n    if (!moduleSymbol)\n      return void 0;\n    const exportingModuleSymbol = checker.getMergedSymbol(moduleSymbol);\n    return isExternalModuleSymbol(exportingModuleSymbol) ? { exportingModuleSymbol, exportKind } : void 0;\n  }\n  function skipExportSpecifierSymbol(symbol, checker) {\n    if (symbol.declarations) {\n      for (const declaration of symbol.declarations) {\n        if (isExportSpecifier(declaration) && !declaration.propertyName && !declaration.parent.parent.moduleSpecifier) {\n          return checker.getExportSpecifierLocalTargetSymbol(declaration) || symbol;\n        } else if (isPropertyAccessExpression(declaration) && isModuleExportsAccessExpression(declaration.expression) && !isPrivateIdentifier(declaration.name)) {\n          return checker.getSymbolAtLocation(declaration);\n        } else if (isShorthandPropertyAssignment(declaration) && isBinaryExpression(declaration.parent.parent) && getAssignmentDeclarationKind(declaration.parent.parent) === 2) {\n          return checker.getExportSpecifierLocalTargetSymbol(declaration.name);\n        }\n      }\n    }\n    return symbol;\n  }\n  function getContainingModuleSymbol(importer, checker) {\n    return checker.getMergedSymbol(getSourceFileLikeForImportDeclaration(importer).symbol);\n  }\n  function getSourceFileLikeForImportDeclaration(node) {\n    if (node.kind === 210) {\n      return node.getSourceFile();\n    }\n    const { parent: parent2 } = node;\n    if (parent2.kind === 308) {\n      return parent2;\n    }\n    Debug.assert(parent2.kind === 265);\n    return cast(parent2.parent, isAmbientModuleDeclaration);\n  }\n  function isAmbientModuleDeclaration(node) {\n    return node.kind === 264 && node.name.kind === 10;\n  }\n  function isExternalModuleImportEquals(eq) {\n    return eq.moduleReference.kind === 280 && eq.moduleReference.expression.kind === 10;\n  }\n  var ExportKind2, ImportExport;\n  var init_importTracker = __esm({\n    \"src/services/importTracker.ts\"() {\n      \"use strict\";\n      init_ts4();\n      ExportKind2 = /* @__PURE__ */ ((ExportKind3) => {\n        ExportKind3[ExportKind3[\"Named\"] = 0] = \"Named\";\n        ExportKind3[ExportKind3[\"Default\"] = 1] = \"Default\";\n        ExportKind3[ExportKind3[\"ExportEquals\"] = 2] = \"ExportEquals\";\n        return ExportKind3;\n      })(ExportKind2 || {});\n      ImportExport = /* @__PURE__ */ ((ImportExport2) => {\n        ImportExport2[ImportExport2[\"Import\"] = 0] = \"Import\";\n        ImportExport2[ImportExport2[\"Export\"] = 1] = \"Export\";\n        return ImportExport2;\n      })(ImportExport || {});\n    }\n  });\n  function nodeEntry(node, kind = 1) {\n    return {\n      kind,\n      node: node.name || node,\n      context: getContextNodeForNodeEntry(node)\n    };\n  }\n  function isContextWithStartAndEndNode(node) {\n    return node && node.kind === void 0;\n  }\n  function getContextNodeForNodeEntry(node) {\n    if (isDeclaration(node)) {\n      return getContextNode(node);\n    }\n    if (!node.parent)\n      return void 0;\n    if (!isDeclaration(node.parent) && !isExportAssignment(node.parent)) {\n      if (isInJSFile(node)) {\n        const binaryExpression = isBinaryExpression(node.parent) ? node.parent : isAccessExpression(node.parent) && isBinaryExpression(node.parent.parent) && node.parent.parent.left === node.parent ? node.parent.parent : void 0;\n        if (binaryExpression && getAssignmentDeclarationKind(binaryExpression) !== 0) {\n          return getContextNode(binaryExpression);\n        }\n      }\n      if (isJsxOpeningElement(node.parent) || isJsxClosingElement(node.parent)) {\n        return node.parent.parent;\n      } else if (isJsxSelfClosingElement(node.parent) || isLabeledStatement(node.parent) || isBreakOrContinueStatement(node.parent)) {\n        return node.parent;\n      } else if (isStringLiteralLike(node)) {\n        const validImport = tryGetImportFromModuleSpecifier(node);\n        if (validImport) {\n          const declOrStatement = findAncestor(validImport, (node2) => isDeclaration(node2) || isStatement(node2) || isJSDocTag(node2));\n          return isDeclaration(declOrStatement) ? getContextNode(declOrStatement) : declOrStatement;\n        }\n      }\n      const propertyName = findAncestor(node, isComputedPropertyName);\n      return propertyName ? getContextNode(propertyName.parent) : void 0;\n    }\n    if (node.parent.name === node || isConstructorDeclaration(node.parent) || isExportAssignment(node.parent) || (isImportOrExportSpecifier(node.parent) || isBindingElement(node.parent)) && node.parent.propertyName === node || node.kind === 88 && hasSyntacticModifier(node.parent, 1025)) {\n      return getContextNode(node.parent);\n    }\n    return void 0;\n  }\n  function getContextNode(node) {\n    if (!node)\n      return void 0;\n    switch (node.kind) {\n      case 257:\n        return !isVariableDeclarationList(node.parent) || node.parent.declarations.length !== 1 ? node : isVariableStatement(node.parent.parent) ? node.parent.parent : isForInOrOfStatement(node.parent.parent) ? getContextNode(node.parent.parent) : node.parent;\n      case 205:\n        return getContextNode(node.parent.parent);\n      case 273:\n        return node.parent.parent.parent;\n      case 278:\n      case 271:\n        return node.parent.parent;\n      case 270:\n      case 277:\n        return node.parent;\n      case 223:\n        return isExpressionStatement(node.parent) ? node.parent : node;\n      case 247:\n      case 246:\n        return {\n          start: node.initializer,\n          end: node.expression\n        };\n      case 299:\n      case 300:\n        return isArrayLiteralOrObjectLiteralDestructuringPattern(node.parent) ? getContextNode(findAncestor(node.parent, (node2) => isBinaryExpression(node2) || isForInOrOfStatement(node2))) : node;\n      default:\n        return node;\n    }\n  }\n  function toContextSpan(textSpan, sourceFile, context) {\n    if (!context)\n      return void 0;\n    const contextSpan = isContextWithStartAndEndNode(context) ? getTextSpan(context.start, sourceFile, context.end) : getTextSpan(context, sourceFile);\n    return contextSpan.start !== textSpan.start || contextSpan.length !== textSpan.length ? { contextSpan } : void 0;\n  }\n  function findReferencedSymbols(program, cancellationToken, sourceFiles, sourceFile, position) {\n    const node = getTouchingPropertyName(sourceFile, position);\n    const options = { use: 1 };\n    const referencedSymbols = Core.getReferencedSymbolsForNode(position, node, program, sourceFiles, cancellationToken, options);\n    const checker = program.getTypeChecker();\n    const adjustedNode = Core.getAdjustedNode(node, options);\n    const symbol = isDefinitionForReference(adjustedNode) ? checker.getSymbolAtLocation(adjustedNode) : void 0;\n    return !referencedSymbols || !referencedSymbols.length ? void 0 : mapDefined(referencedSymbols, ({ definition, references }) => definition && {\n      definition: checker.runWithCancellationToken(cancellationToken, (checker2) => definitionToReferencedSymbolDefinitionInfo(definition, checker2, node)),\n      references: references.map((r) => toReferencedSymbolEntry(r, symbol))\n    });\n  }\n  function isDefinitionForReference(node) {\n    return node.kind === 88 || !!getDeclarationFromName(node) || isLiteralComputedPropertyDeclarationName(node) || node.kind === 135 && isConstructorDeclaration(node.parent);\n  }\n  function getImplementationsAtPosition(program, cancellationToken, sourceFiles, sourceFile, position) {\n    const node = getTouchingPropertyName(sourceFile, position);\n    let referenceEntries;\n    const entries = getImplementationReferenceEntries(program, cancellationToken, sourceFiles, node, position);\n    if (node.parent.kind === 208 || node.parent.kind === 205 || node.parent.kind === 209 || node.kind === 106) {\n      referenceEntries = entries && [...entries];\n    } else if (entries) {\n      const queue = createQueue(entries);\n      const seenNodes = /* @__PURE__ */ new Map();\n      while (!queue.isEmpty()) {\n        const entry = queue.dequeue();\n        if (!addToSeen(seenNodes, getNodeId(entry.node))) {\n          continue;\n        }\n        referenceEntries = append(referenceEntries, entry);\n        const entries2 = getImplementationReferenceEntries(program, cancellationToken, sourceFiles, entry.node, entry.node.pos);\n        if (entries2) {\n          queue.enqueue(...entries2);\n        }\n      }\n    }\n    const checker = program.getTypeChecker();\n    return map(referenceEntries, (entry) => toImplementationLocation(entry, checker));\n  }\n  function getImplementationReferenceEntries(program, cancellationToken, sourceFiles, node, position) {\n    if (node.kind === 308) {\n      return void 0;\n    }\n    const checker = program.getTypeChecker();\n    if (node.parent.kind === 300) {\n      const result = [];\n      Core.getReferenceEntriesForShorthandPropertyAssignment(node, checker, (node2) => result.push(nodeEntry(node2)));\n      return result;\n    } else if (node.kind === 106 || isSuperProperty(node.parent)) {\n      const symbol = checker.getSymbolAtLocation(node);\n      return symbol.valueDeclaration && [nodeEntry(symbol.valueDeclaration)];\n    } else {\n      return getReferenceEntriesForNode(position, node, program, sourceFiles, cancellationToken, { implementations: true, use: 1 });\n    }\n  }\n  function findReferenceOrRenameEntries(program, cancellationToken, sourceFiles, node, position, options, convertEntry) {\n    return map(flattenEntries(Core.getReferencedSymbolsForNode(position, node, program, sourceFiles, cancellationToken, options)), (entry) => convertEntry(entry, node, program.getTypeChecker()));\n  }\n  function getReferenceEntriesForNode(position, node, program, sourceFiles, cancellationToken, options = {}, sourceFilesSet = new Set(sourceFiles.map((f) => f.fileName))) {\n    return flattenEntries(Core.getReferencedSymbolsForNode(position, node, program, sourceFiles, cancellationToken, options, sourceFilesSet));\n  }\n  function flattenEntries(referenceSymbols) {\n    return referenceSymbols && flatMap(referenceSymbols, (r) => r.references);\n  }\n  function definitionToReferencedSymbolDefinitionInfo(def, checker, originalNode) {\n    const info = (() => {\n      switch (def.type) {\n        case 0: {\n          const { symbol } = def;\n          const { displayParts: displayParts2, kind: kind2 } = getDefinitionKindAndDisplayParts(symbol, checker, originalNode);\n          const name2 = displayParts2.map((p) => p.text).join(\"\");\n          const declaration = symbol.declarations && firstOrUndefined(symbol.declarations);\n          const node = declaration ? getNameOfDeclaration(declaration) || declaration : originalNode;\n          return {\n            ...getFileAndTextSpanFromNode(node),\n            name: name2,\n            kind: kind2,\n            displayParts: displayParts2,\n            context: getContextNode(declaration)\n          };\n        }\n        case 1: {\n          const { node } = def;\n          return { ...getFileAndTextSpanFromNode(node), name: node.text, kind: \"label\", displayParts: [displayPart(node.text, 17)] };\n        }\n        case 2: {\n          const { node } = def;\n          const name2 = tokenToString(node.kind);\n          return { ...getFileAndTextSpanFromNode(node), name: name2, kind: \"keyword\", displayParts: [{ text: name2, kind: \"keyword\" }] };\n        }\n        case 3: {\n          const { node } = def;\n          const symbol = checker.getSymbolAtLocation(node);\n          const displayParts2 = symbol && ts_SymbolDisplay_exports.getSymbolDisplayPartsDocumentationAndSymbolKind(checker, symbol, node.getSourceFile(), getContainerNode(node), node).displayParts || [textPart(\"this\")];\n          return { ...getFileAndTextSpanFromNode(node), name: \"this\", kind: \"var\", displayParts: displayParts2 };\n        }\n        case 4: {\n          const { node } = def;\n          return {\n            ...getFileAndTextSpanFromNode(node),\n            name: node.text,\n            kind: \"var\",\n            displayParts: [displayPart(getTextOfNode(node), 8)]\n          };\n        }\n        case 5: {\n          return {\n            textSpan: createTextSpanFromRange(def.reference),\n            sourceFile: def.file,\n            name: def.reference.fileName,\n            kind: \"string\",\n            displayParts: [displayPart(`\"${def.reference.fileName}\"`, 8)]\n          };\n        }\n        default:\n          return Debug.assertNever(def);\n      }\n    })();\n    const { sourceFile, textSpan, name, kind, displayParts, context } = info;\n    return {\n      containerKind: \"\",\n      containerName: \"\",\n      fileName: sourceFile.fileName,\n      kind,\n      name,\n      textSpan,\n      displayParts,\n      ...toContextSpan(textSpan, sourceFile, context)\n    };\n  }\n  function getFileAndTextSpanFromNode(node) {\n    const sourceFile = node.getSourceFile();\n    return {\n      sourceFile,\n      textSpan: getTextSpan(isComputedPropertyName(node) ? node.expression : node, sourceFile)\n    };\n  }\n  function getDefinitionKindAndDisplayParts(symbol, checker, node) {\n    const meaning = Core.getIntersectingMeaningFromDeclarations(node, symbol);\n    const enclosingDeclaration = symbol.declarations && firstOrUndefined(symbol.declarations) || node;\n    const { displayParts, symbolKind } = ts_SymbolDisplay_exports.getSymbolDisplayPartsDocumentationAndSymbolKind(checker, symbol, enclosingDeclaration.getSourceFile(), enclosingDeclaration, enclosingDeclaration, meaning);\n    return { displayParts, kind: symbolKind };\n  }\n  function toRenameLocation(entry, originalNode, checker, providePrefixAndSuffixText) {\n    return { ...entryToDocumentSpan(entry), ...providePrefixAndSuffixText && getPrefixAndSuffixText(entry, originalNode, checker) };\n  }\n  function toReferencedSymbolEntry(entry, symbol) {\n    const referenceEntry = toReferenceEntry(entry);\n    if (!symbol)\n      return referenceEntry;\n    return {\n      ...referenceEntry,\n      isDefinition: entry.kind !== 0 && isDeclarationOfSymbol(entry.node, symbol)\n    };\n  }\n  function toReferenceEntry(entry) {\n    const documentSpan = entryToDocumentSpan(entry);\n    if (entry.kind === 0) {\n      return { ...documentSpan, isWriteAccess: false };\n    }\n    const { kind, node } = entry;\n    return {\n      ...documentSpan,\n      isWriteAccess: isWriteAccessForReference(node),\n      isInString: kind === 2 ? true : void 0\n    };\n  }\n  function entryToDocumentSpan(entry) {\n    if (entry.kind === 0) {\n      return { textSpan: entry.textSpan, fileName: entry.fileName };\n    } else {\n      const sourceFile = entry.node.getSourceFile();\n      const textSpan = getTextSpan(entry.node, sourceFile);\n      return {\n        textSpan,\n        fileName: sourceFile.fileName,\n        ...toContextSpan(textSpan, sourceFile, entry.context)\n      };\n    }\n  }\n  function getPrefixAndSuffixText(entry, originalNode, checker) {\n    if (entry.kind !== 0 && isIdentifier(originalNode)) {\n      const { node, kind } = entry;\n      const parent2 = node.parent;\n      const name = originalNode.text;\n      const isShorthandAssignment = isShorthandPropertyAssignment(parent2);\n      if (isShorthandAssignment || isObjectBindingElementWithoutPropertyName(parent2) && parent2.name === node && parent2.dotDotDotToken === void 0) {\n        const prefixColon = { prefixText: name + \": \" };\n        const suffixColon = { suffixText: \": \" + name };\n        if (kind === 3) {\n          return prefixColon;\n        }\n        if (kind === 4) {\n          return suffixColon;\n        }\n        if (isShorthandAssignment) {\n          const grandParent = parent2.parent;\n          if (isObjectLiteralExpression(grandParent) && isBinaryExpression(grandParent.parent) && isModuleExportsAccessExpression(grandParent.parent.left)) {\n            return prefixColon;\n          }\n          return suffixColon;\n        } else {\n          return prefixColon;\n        }\n      } else if (isImportSpecifier(parent2) && !parent2.propertyName) {\n        const originalSymbol = isExportSpecifier(originalNode.parent) ? checker.getExportSpecifierLocalTargetSymbol(originalNode.parent) : checker.getSymbolAtLocation(originalNode);\n        return contains(originalSymbol.declarations, parent2) ? { prefixText: name + \" as \" } : emptyOptions;\n      } else if (isExportSpecifier(parent2) && !parent2.propertyName) {\n        return originalNode === entry.node || checker.getSymbolAtLocation(originalNode) === checker.getSymbolAtLocation(entry.node) ? { prefixText: name + \" as \" } : { suffixText: \" as \" + name };\n      }\n    }\n    return emptyOptions;\n  }\n  function toImplementationLocation(entry, checker) {\n    const documentSpan = entryToDocumentSpan(entry);\n    if (entry.kind !== 0) {\n      const { node } = entry;\n      return {\n        ...documentSpan,\n        ...implementationKindDisplayParts(node, checker)\n      };\n    } else {\n      return { ...documentSpan, kind: \"\", displayParts: [] };\n    }\n  }\n  function implementationKindDisplayParts(node, checker) {\n    const symbol = checker.getSymbolAtLocation(isDeclaration(node) && node.name ? node.name : node);\n    if (symbol) {\n      return getDefinitionKindAndDisplayParts(symbol, checker, node);\n    } else if (node.kind === 207) {\n      return {\n        kind: \"interface\",\n        displayParts: [punctuationPart(20), textPart(\"object literal\"), punctuationPart(21)]\n      };\n    } else if (node.kind === 228) {\n      return {\n        kind: \"local class\",\n        displayParts: [punctuationPart(20), textPart(\"anonymous local class\"), punctuationPart(21)]\n      };\n    } else {\n      return { kind: getNodeKind(node), displayParts: [] };\n    }\n  }\n  function toHighlightSpan(entry) {\n    const documentSpan = entryToDocumentSpan(entry);\n    if (entry.kind === 0) {\n      return {\n        fileName: documentSpan.fileName,\n        span: {\n          textSpan: documentSpan.textSpan,\n          kind: \"reference\"\n        }\n      };\n    }\n    const writeAccess = isWriteAccessForReference(entry.node);\n    const span = {\n      textSpan: documentSpan.textSpan,\n      kind: writeAccess ? \"writtenReference\" : \"reference\",\n      isInString: entry.kind === 2 ? true : void 0,\n      ...documentSpan.contextSpan && { contextSpan: documentSpan.contextSpan }\n    };\n    return { fileName: documentSpan.fileName, span };\n  }\n  function getTextSpan(node, sourceFile, endNode2) {\n    let start = node.getStart(sourceFile);\n    let end = (endNode2 || node).getEnd();\n    if (isStringLiteralLike(node) && end - start > 2) {\n      Debug.assert(endNode2 === void 0);\n      start += 1;\n      end -= 1;\n    }\n    return createTextSpanFromBounds(start, end);\n  }\n  function getTextSpanOfEntry(entry) {\n    return entry.kind === 0 ? entry.textSpan : getTextSpan(entry.node, entry.node.getSourceFile());\n  }\n  function isWriteAccessForReference(node) {\n    const decl = getDeclarationFromName(node);\n    return !!decl && declarationIsWriteAccess(decl) || node.kind === 88 || isWriteAccess(node);\n  }\n  function isDeclarationOfSymbol(node, target) {\n    var _a2;\n    if (!target)\n      return false;\n    const source = getDeclarationFromName(node) || (node.kind === 88 ? node.parent : isLiteralComputedPropertyDeclarationName(node) ? node.parent.parent : node.kind === 135 && isConstructorDeclaration(node.parent) ? node.parent.parent : void 0);\n    const commonjsSource = source && isBinaryExpression(source) ? source.left : void 0;\n    return !!(source && ((_a2 = target.declarations) == null ? void 0 : _a2.some((d) => d === source || d === commonjsSource)));\n  }\n  function declarationIsWriteAccess(decl) {\n    if (!!(decl.flags & 16777216))\n      return true;\n    switch (decl.kind) {\n      case 223:\n      case 205:\n      case 260:\n      case 228:\n      case 88:\n      case 263:\n      case 302:\n      case 278:\n      case 270:\n      case 268:\n      case 273:\n      case 261:\n      case 341:\n      case 349:\n      case 288:\n      case 264:\n      case 267:\n      case 271:\n      case 277:\n      case 166:\n      case 300:\n      case 262:\n      case 165:\n        return true;\n      case 299:\n        return !isArrayLiteralOrObjectLiteralDestructuringPattern(decl.parent);\n      case 259:\n      case 215:\n      case 173:\n      case 171:\n      case 174:\n      case 175:\n        return !!decl.body;\n      case 257:\n      case 169:\n        return !!decl.initializer || isCatchClause(decl.parent);\n      case 170:\n      case 168:\n      case 351:\n      case 344:\n        return false;\n      default:\n        return Debug.failBadSyntaxKind(decl);\n    }\n  }\n  var DefinitionKind, EntryKind, FindReferencesUse, Core;\n  var init_findAllReferences = __esm({\n    \"src/services/findAllReferences.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_FindAllReferences();\n      DefinitionKind = /* @__PURE__ */ ((DefinitionKind2) => {\n        DefinitionKind2[DefinitionKind2[\"Symbol\"] = 0] = \"Symbol\";\n        DefinitionKind2[DefinitionKind2[\"Label\"] = 1] = \"Label\";\n        DefinitionKind2[DefinitionKind2[\"Keyword\"] = 2] = \"Keyword\";\n        DefinitionKind2[DefinitionKind2[\"This\"] = 3] = \"This\";\n        DefinitionKind2[DefinitionKind2[\"String\"] = 4] = \"String\";\n        DefinitionKind2[DefinitionKind2[\"TripleSlashReference\"] = 5] = \"TripleSlashReference\";\n        return DefinitionKind2;\n      })(DefinitionKind || {});\n      EntryKind = /* @__PURE__ */ ((EntryKind2) => {\n        EntryKind2[EntryKind2[\"Span\"] = 0] = \"Span\";\n        EntryKind2[EntryKind2[\"Node\"] = 1] = \"Node\";\n        EntryKind2[EntryKind2[\"StringLiteral\"] = 2] = \"StringLiteral\";\n        EntryKind2[EntryKind2[\"SearchedLocalFoundProperty\"] = 3] = \"SearchedLocalFoundProperty\";\n        EntryKind2[EntryKind2[\"SearchedPropertyFoundLocal\"] = 4] = \"SearchedPropertyFoundLocal\";\n        return EntryKind2;\n      })(EntryKind || {});\n      FindReferencesUse = /* @__PURE__ */ ((FindReferencesUse2) => {\n        FindReferencesUse2[FindReferencesUse2[\"Other\"] = 0] = \"Other\";\n        FindReferencesUse2[FindReferencesUse2[\"References\"] = 1] = \"References\";\n        FindReferencesUse2[FindReferencesUse2[\"Rename\"] = 2] = \"Rename\";\n        return FindReferencesUse2;\n      })(FindReferencesUse || {});\n      ((Core2) => {\n        function getReferencedSymbolsForNode(position, node, program, sourceFiles, cancellationToken, options = {}, sourceFilesSet = new Set(sourceFiles.map((f) => f.fileName))) {\n          var _a2, _b, _c;\n          node = getAdjustedNode(node, options);\n          if (isSourceFile(node)) {\n            const resolvedRef = ts_GoToDefinition_exports.getReferenceAtPosition(node, position, program);\n            if (!(resolvedRef == null ? void 0 : resolvedRef.file)) {\n              return void 0;\n            }\n            const moduleSymbol = program.getTypeChecker().getMergedSymbol(resolvedRef.file.symbol);\n            if (moduleSymbol) {\n              return getReferencedSymbolsForModule(program, moduleSymbol, false, sourceFiles, sourceFilesSet);\n            }\n            const fileIncludeReasons = program.getFileIncludeReasons();\n            if (!fileIncludeReasons) {\n              return void 0;\n            }\n            return [{\n              definition: { type: 5, reference: resolvedRef.reference, file: node },\n              references: getReferencesForNonModule(resolvedRef.file, fileIncludeReasons, program) || emptyArray\n            }];\n          }\n          if (!options.implementations) {\n            const special = getReferencedSymbolsSpecial(node, sourceFiles, cancellationToken);\n            if (special) {\n              return special;\n            }\n          }\n          const checker = program.getTypeChecker();\n          const symbol = checker.getSymbolAtLocation(isConstructorDeclaration(node) && node.parent.name || node);\n          if (!symbol) {\n            if (!options.implementations && isStringLiteralLike(node)) {\n              if (isModuleSpecifierLike(node)) {\n                const fileIncludeReasons = program.getFileIncludeReasons();\n                const referencedFileName = (_c = (_b = (_a2 = node.getSourceFile().resolvedModules) == null ? void 0 : _a2.get(node.text, getModeForUsageLocation(node.getSourceFile(), node))) == null ? void 0 : _b.resolvedModule) == null ? void 0 : _c.resolvedFileName;\n                const referencedFile = referencedFileName ? program.getSourceFile(referencedFileName) : void 0;\n                if (referencedFile) {\n                  return [{ definition: { type: 4, node }, references: getReferencesForNonModule(referencedFile, fileIncludeReasons, program) || emptyArray }];\n                }\n              }\n              return getReferencesForStringLiteral(node, sourceFiles, checker, cancellationToken);\n            }\n            return void 0;\n          }\n          if (symbol.escapedName === \"export=\") {\n            return getReferencedSymbolsForModule(program, symbol.parent, false, sourceFiles, sourceFilesSet);\n          }\n          const moduleReferences = getReferencedSymbolsForModuleIfDeclaredBySourceFile(symbol, program, sourceFiles, cancellationToken, options, sourceFilesSet);\n          if (moduleReferences && !(symbol.flags & 33554432)) {\n            return moduleReferences;\n          }\n          const aliasedSymbol = getMergedAliasedSymbolOfNamespaceExportDeclaration(node, symbol, checker);\n          const moduleReferencesOfExportTarget = aliasedSymbol && getReferencedSymbolsForModuleIfDeclaredBySourceFile(aliasedSymbol, program, sourceFiles, cancellationToken, options, sourceFilesSet);\n          const references = getReferencedSymbolsForSymbol(symbol, node, sourceFiles, sourceFilesSet, checker, cancellationToken, options);\n          return mergeReferences(program, moduleReferences, references, moduleReferencesOfExportTarget);\n        }\n        Core2.getReferencedSymbolsForNode = getReferencedSymbolsForNode;\n        function getAdjustedNode(node, options) {\n          if (options.use === 1) {\n            node = getAdjustedReferenceLocation(node);\n          } else if (options.use === 2) {\n            node = getAdjustedRenameLocation(node);\n          }\n          return node;\n        }\n        Core2.getAdjustedNode = getAdjustedNode;\n        function getReferencesForFileName(fileName, program, sourceFiles, sourceFilesSet = new Set(sourceFiles.map((f) => f.fileName))) {\n          var _a2, _b;\n          const moduleSymbol = (_a2 = program.getSourceFile(fileName)) == null ? void 0 : _a2.symbol;\n          if (moduleSymbol) {\n            return ((_b = getReferencedSymbolsForModule(program, moduleSymbol, false, sourceFiles, sourceFilesSet)[0]) == null ? void 0 : _b.references) || emptyArray;\n          }\n          const fileIncludeReasons = program.getFileIncludeReasons();\n          const referencedFile = program.getSourceFile(fileName);\n          return referencedFile && fileIncludeReasons && getReferencesForNonModule(referencedFile, fileIncludeReasons, program) || emptyArray;\n        }\n        Core2.getReferencesForFileName = getReferencesForFileName;\n        function getReferencesForNonModule(referencedFile, refFileMap, program) {\n          let entries;\n          const references = refFileMap.get(referencedFile.path) || emptyArray;\n          for (const ref of references) {\n            if (isReferencedFile(ref)) {\n              const referencingFile = program.getSourceFileByPath(ref.file);\n              const location = getReferencedFileLocation(program.getSourceFileByPath, ref);\n              if (isReferenceFileLocation(location)) {\n                entries = append(entries, {\n                  kind: 0,\n                  fileName: referencingFile.fileName,\n                  textSpan: createTextSpanFromRange(location)\n                });\n              }\n            }\n          }\n          return entries;\n        }\n        function getMergedAliasedSymbolOfNamespaceExportDeclaration(node, symbol, checker) {\n          if (node.parent && isNamespaceExportDeclaration(node.parent)) {\n            const aliasedSymbol = checker.getAliasedSymbol(symbol);\n            const targetSymbol = checker.getMergedSymbol(aliasedSymbol);\n            if (aliasedSymbol !== targetSymbol) {\n              return targetSymbol;\n            }\n          }\n          return void 0;\n        }\n        function getReferencedSymbolsForModuleIfDeclaredBySourceFile(symbol, program, sourceFiles, cancellationToken, options, sourceFilesSet) {\n          const moduleSourceFile = symbol.flags & 1536 && symbol.declarations && find(symbol.declarations, isSourceFile);\n          if (!moduleSourceFile)\n            return void 0;\n          const exportEquals = symbol.exports.get(\"export=\");\n          const moduleReferences = getReferencedSymbolsForModule(program, symbol, !!exportEquals, sourceFiles, sourceFilesSet);\n          if (!exportEquals || !sourceFilesSet.has(moduleSourceFile.fileName))\n            return moduleReferences;\n          const checker = program.getTypeChecker();\n          symbol = skipAlias(exportEquals, checker);\n          return mergeReferences(program, moduleReferences, getReferencedSymbolsForSymbol(symbol, void 0, sourceFiles, sourceFilesSet, checker, cancellationToken, options));\n        }\n        function mergeReferences(program, ...referencesToMerge) {\n          let result;\n          for (const references of referencesToMerge) {\n            if (!references || !references.length)\n              continue;\n            if (!result) {\n              result = references;\n              continue;\n            }\n            for (const entry of references) {\n              if (!entry.definition || entry.definition.type !== 0) {\n                result.push(entry);\n                continue;\n              }\n              const symbol = entry.definition.symbol;\n              const refIndex = findIndex(result, (ref) => !!ref.definition && ref.definition.type === 0 && ref.definition.symbol === symbol);\n              if (refIndex === -1) {\n                result.push(entry);\n                continue;\n              }\n              const reference = result[refIndex];\n              result[refIndex] = {\n                definition: reference.definition,\n                references: reference.references.concat(entry.references).sort((entry1, entry2) => {\n                  const entry1File = getSourceFileIndexOfEntry(program, entry1);\n                  const entry2File = getSourceFileIndexOfEntry(program, entry2);\n                  if (entry1File !== entry2File) {\n                    return compareValues(entry1File, entry2File);\n                  }\n                  const entry1Span = getTextSpanOfEntry(entry1);\n                  const entry2Span = getTextSpanOfEntry(entry2);\n                  return entry1Span.start !== entry2Span.start ? compareValues(entry1Span.start, entry2Span.start) : compareValues(entry1Span.length, entry2Span.length);\n                })\n              };\n            }\n          }\n          return result;\n        }\n        function getSourceFileIndexOfEntry(program, entry) {\n          const sourceFile = entry.kind === 0 ? program.getSourceFile(entry.fileName) : entry.node.getSourceFile();\n          return program.getSourceFiles().indexOf(sourceFile);\n        }\n        function getReferencedSymbolsForModule(program, symbol, excludeImportTypeOfExportEquals, sourceFiles, sourceFilesSet) {\n          Debug.assert(!!symbol.valueDeclaration);\n          const references = mapDefined(findModuleReferences(program, sourceFiles, symbol), (reference) => {\n            if (reference.kind === \"import\") {\n              const parent2 = reference.literal.parent;\n              if (isLiteralTypeNode(parent2)) {\n                const importType = cast(parent2.parent, isImportTypeNode);\n                if (excludeImportTypeOfExportEquals && !importType.qualifier) {\n                  return void 0;\n                }\n              }\n              return nodeEntry(reference.literal);\n            } else {\n              return {\n                kind: 0,\n                fileName: reference.referencingFile.fileName,\n                textSpan: createTextSpanFromRange(reference.ref)\n              };\n            }\n          });\n          if (symbol.declarations) {\n            for (const decl of symbol.declarations) {\n              switch (decl.kind) {\n                case 308:\n                  break;\n                case 264:\n                  if (sourceFilesSet.has(decl.getSourceFile().fileName)) {\n                    references.push(nodeEntry(decl.name));\n                  }\n                  break;\n                default:\n                  Debug.assert(!!(symbol.flags & 33554432), \"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.\");\n              }\n            }\n          }\n          const exported = symbol.exports.get(\"export=\");\n          if (exported == null ? void 0 : exported.declarations) {\n            for (const decl of exported.declarations) {\n              const sourceFile = decl.getSourceFile();\n              if (sourceFilesSet.has(sourceFile.fileName)) {\n                const node = isBinaryExpression(decl) && isPropertyAccessExpression(decl.left) ? decl.left.expression : isExportAssignment(decl) ? Debug.checkDefined(findChildOfKind(decl, 93, sourceFile)) : getNameOfDeclaration(decl) || decl;\n                references.push(nodeEntry(node));\n              }\n            }\n          }\n          return references.length ? [{ definition: { type: 0, symbol }, references }] : emptyArray;\n        }\n        function isReadonlyTypeOperator(node) {\n          return node.kind === 146 && isTypeOperatorNode(node.parent) && node.parent.operator === 146;\n        }\n        function getReferencedSymbolsSpecial(node, sourceFiles, cancellationToken) {\n          if (isTypeKeyword(node.kind)) {\n            if (node.kind === 114 && isVoidExpression(node.parent)) {\n              return void 0;\n            }\n            if (node.kind === 146 && !isReadonlyTypeOperator(node)) {\n              return void 0;\n            }\n            return getAllReferencesForKeyword(sourceFiles, node.kind, cancellationToken, node.kind === 146 ? isReadonlyTypeOperator : void 0);\n          }\n          if (isImportMeta(node.parent) && node.parent.name === node) {\n            return getAllReferencesForImportMeta(sourceFiles, cancellationToken);\n          }\n          if (isStaticModifier(node) && isClassStaticBlockDeclaration(node.parent)) {\n            return [{ definition: { type: 2, node }, references: [nodeEntry(node)] }];\n          }\n          if (isJumpStatementTarget(node)) {\n            const labelDefinition = getTargetLabel(node.parent, node.text);\n            return labelDefinition && getLabelReferencesInNode(labelDefinition.parent, labelDefinition);\n          } else if (isLabelOfLabeledStatement(node)) {\n            return getLabelReferencesInNode(node.parent, node);\n          }\n          if (isThis(node)) {\n            return getReferencesForThisKeyword(node, sourceFiles, cancellationToken);\n          }\n          if (node.kind === 106) {\n            return getReferencesForSuperKeyword(node);\n          }\n          return void 0;\n        }\n        function getReferencedSymbolsForSymbol(originalSymbol, node, sourceFiles, sourceFilesSet, checker, cancellationToken, options) {\n          const symbol = node && skipPastExportOrImportSpecifierOrUnion(originalSymbol, node, checker, !isForRenameWithPrefixAndSuffixText(options)) || originalSymbol;\n          const searchMeaning = node ? getIntersectingMeaningFromDeclarations(node, symbol) : 7;\n          const result = [];\n          const state = new State(sourceFiles, sourceFilesSet, node ? getSpecialSearchKind(node) : 0, checker, cancellationToken, searchMeaning, options, result);\n          const exportSpecifier = !isForRenameWithPrefixAndSuffixText(options) || !symbol.declarations ? void 0 : find(symbol.declarations, isExportSpecifier);\n          if (exportSpecifier) {\n            getReferencesAtExportSpecifier(exportSpecifier.name, symbol, exportSpecifier, state.createSearch(node, originalSymbol, void 0), state, true, true);\n          } else if (node && node.kind === 88 && symbol.escapedName === \"default\" && symbol.parent) {\n            addReference(node, symbol, state);\n            searchForImportsOfExport(node, symbol, { exportingModuleSymbol: symbol.parent, exportKind: 1 }, state);\n          } else {\n            const search = state.createSearch(node, symbol, void 0, { allSearchSymbols: node ? populateSearchSymbolSet(symbol, node, checker, options.use === 2, !!options.providePrefixAndSuffixTextForRename, !!options.implementations) : [symbol] });\n            getReferencesInContainerOrFiles(symbol, state, search);\n          }\n          return result;\n        }\n        function getReferencesInContainerOrFiles(symbol, state, search) {\n          const scope = getSymbolScope(symbol);\n          if (scope) {\n            getReferencesInContainer(scope, scope.getSourceFile(), search, state, !(isSourceFile(scope) && !contains(state.sourceFiles, scope)));\n          } else {\n            for (const sourceFile of state.sourceFiles) {\n              state.cancellationToken.throwIfCancellationRequested();\n              searchForName(sourceFile, search, state);\n            }\n          }\n        }\n        function getSpecialSearchKind(node) {\n          switch (node.kind) {\n            case 173:\n            case 135:\n              return 1;\n            case 79:\n              if (isClassLike(node.parent)) {\n                Debug.assert(node.parent.name === node);\n                return 2;\n              }\n            default:\n              return 0;\n          }\n        }\n        function skipPastExportOrImportSpecifierOrUnion(symbol, node, checker, useLocalSymbolForExportSpecifier) {\n          const { parent: parent2 } = node;\n          if (isExportSpecifier(parent2) && useLocalSymbolForExportSpecifier) {\n            return getLocalSymbolForExportSpecifier(node, symbol, parent2, checker);\n          }\n          return firstDefined(symbol.declarations, (decl) => {\n            if (!decl.parent) {\n              if (symbol.flags & 33554432)\n                return void 0;\n              Debug.fail(`Unexpected symbol at ${Debug.formatSyntaxKind(node.kind)}: ${Debug.formatSymbol(symbol)}`);\n            }\n            return isTypeLiteralNode(decl.parent) && isUnionTypeNode(decl.parent.parent) ? checker.getPropertyOfType(checker.getTypeFromTypeNode(decl.parent.parent), symbol.name) : void 0;\n          });\n        }\n        let SpecialSearchKind;\n        ((SpecialSearchKind2) => {\n          SpecialSearchKind2[SpecialSearchKind2[\"None\"] = 0] = \"None\";\n          SpecialSearchKind2[SpecialSearchKind2[\"Constructor\"] = 1] = \"Constructor\";\n          SpecialSearchKind2[SpecialSearchKind2[\"Class\"] = 2] = \"Class\";\n        })(SpecialSearchKind || (SpecialSearchKind = {}));\n        function getNonModuleSymbolOfMergedModuleSymbol(symbol) {\n          if (!(symbol.flags & (1536 | 33554432)))\n            return void 0;\n          const decl = symbol.declarations && find(symbol.declarations, (d) => !isSourceFile(d) && !isModuleDeclaration(d));\n          return decl && decl.symbol;\n        }\n        class State {\n          constructor(sourceFiles, sourceFilesSet, specialSearchKind, checker, cancellationToken, searchMeaning, options, result) {\n            this.sourceFiles = sourceFiles;\n            this.sourceFilesSet = sourceFilesSet;\n            this.specialSearchKind = specialSearchKind;\n            this.checker = checker;\n            this.cancellationToken = cancellationToken;\n            this.searchMeaning = searchMeaning;\n            this.options = options;\n            this.result = result;\n            this.inheritsFromCache = /* @__PURE__ */ new Map();\n            this.markSeenContainingTypeReference = nodeSeenTracker();\n            this.markSeenReExportRHS = nodeSeenTracker();\n            this.symbolIdToReferences = [];\n            this.sourceFileToSeenSymbols = [];\n          }\n          includesSourceFile(sourceFile) {\n            return this.sourceFilesSet.has(sourceFile.fileName);\n          }\n          getImportSearches(exportSymbol, exportInfo) {\n            if (!this.importTracker)\n              this.importTracker = createImportTracker(this.sourceFiles, this.sourceFilesSet, this.checker, this.cancellationToken);\n            return this.importTracker(exportSymbol, exportInfo, this.options.use === 2);\n          }\n          createSearch(location, symbol, comingFrom, searchOptions = {}) {\n            const {\n              text = stripQuotes(symbolName(getLocalSymbolForExportDefault(symbol) || getNonModuleSymbolOfMergedModuleSymbol(symbol) || symbol)),\n              allSearchSymbols = [symbol]\n            } = searchOptions;\n            const escapedText = escapeLeadingUnderscores(text);\n            const parents = this.options.implementations && location ? getParentSymbolsOfPropertyAccess(location, symbol, this.checker) : void 0;\n            return { symbol, comingFrom, text, escapedText, parents, allSearchSymbols, includes: (sym) => contains(allSearchSymbols, sym) };\n          }\n          referenceAdder(searchSymbol) {\n            const symbolId = getSymbolId(searchSymbol);\n            let references = this.symbolIdToReferences[symbolId];\n            if (!references) {\n              references = this.symbolIdToReferences[symbolId] = [];\n              this.result.push({ definition: { type: 0, symbol: searchSymbol }, references });\n            }\n            return (node, kind) => references.push(nodeEntry(node, kind));\n          }\n          addStringOrCommentReference(fileName, textSpan) {\n            this.result.push({\n              definition: void 0,\n              references: [{ kind: 0, fileName, textSpan }]\n            });\n          }\n          markSearchedSymbols(sourceFile, symbols) {\n            const sourceId = getNodeId(sourceFile);\n            const seenSymbols = this.sourceFileToSeenSymbols[sourceId] || (this.sourceFileToSeenSymbols[sourceId] = /* @__PURE__ */ new Set());\n            let anyNewSymbols = false;\n            for (const sym of symbols) {\n              anyNewSymbols = tryAddToSet(seenSymbols, getSymbolId(sym)) || anyNewSymbols;\n            }\n            return anyNewSymbols;\n          }\n        }\n        function searchForImportsOfExport(exportLocation, exportSymbol, exportInfo, state) {\n          const { importSearches, singleReferences, indirectUsers } = state.getImportSearches(exportSymbol, exportInfo);\n          if (singleReferences.length) {\n            const addRef = state.referenceAdder(exportSymbol);\n            for (const singleRef of singleReferences) {\n              if (shouldAddSingleReference(singleRef, state))\n                addRef(singleRef);\n            }\n          }\n          for (const [importLocation, importSymbol] of importSearches) {\n            getReferencesInSourceFile(importLocation.getSourceFile(), state.createSearch(importLocation, importSymbol, 1), state);\n          }\n          if (indirectUsers.length) {\n            let indirectSearch;\n            switch (exportInfo.exportKind) {\n              case 0:\n                indirectSearch = state.createSearch(exportLocation, exportSymbol, 1);\n                break;\n              case 1:\n                indirectSearch = state.options.use === 2 ? void 0 : state.createSearch(exportLocation, exportSymbol, 1, { text: \"default\" });\n                break;\n              case 2:\n                break;\n            }\n            if (indirectSearch) {\n              for (const indirectUser of indirectUsers) {\n                searchForName(indirectUser, indirectSearch, state);\n              }\n            }\n          }\n        }\n        function eachExportReference(sourceFiles, checker, cancellationToken, exportSymbol, exportingModuleSymbol, exportName, isDefaultExport, cb) {\n          const importTracker = createImportTracker(sourceFiles, new Set(sourceFiles.map((f) => f.fileName)), checker, cancellationToken);\n          const { importSearches, indirectUsers, singleReferences } = importTracker(exportSymbol, { exportKind: isDefaultExport ? 1 : 0, exportingModuleSymbol }, false);\n          for (const [importLocation] of importSearches) {\n            cb(importLocation);\n          }\n          for (const singleReference of singleReferences) {\n            if (isIdentifier(singleReference) && isImportTypeNode(singleReference.parent)) {\n              cb(singleReference);\n            }\n          }\n          for (const indirectUser of indirectUsers) {\n            for (const node of getPossibleSymbolReferenceNodes(indirectUser, isDefaultExport ? \"default\" : exportName)) {\n              const symbol = checker.getSymbolAtLocation(node);\n              const hasExportAssignmentDeclaration = some(symbol == null ? void 0 : symbol.declarations, (d) => tryCast(d, isExportAssignment) ? true : false);\n              if (isIdentifier(node) && !isImportOrExportSpecifier(node.parent) && (symbol === exportSymbol || hasExportAssignmentDeclaration)) {\n                cb(node);\n              }\n            }\n          }\n        }\n        Core2.eachExportReference = eachExportReference;\n        function shouldAddSingleReference(singleRef, state) {\n          if (!hasMatchingMeaning(singleRef, state))\n            return false;\n          if (state.options.use !== 2)\n            return true;\n          if (!isIdentifier(singleRef))\n            return false;\n          return !(isImportOrExportSpecifier(singleRef.parent) && singleRef.escapedText === \"default\");\n        }\n        function searchForImportedSymbol(symbol, state) {\n          if (!symbol.declarations)\n            return;\n          for (const declaration of symbol.declarations) {\n            const exportingFile = declaration.getSourceFile();\n            getReferencesInSourceFile(exportingFile, state.createSearch(declaration, symbol, 0), state, state.includesSourceFile(exportingFile));\n          }\n        }\n        function searchForName(sourceFile, search, state) {\n          if (getNameTable(sourceFile).get(search.escapedText) !== void 0) {\n            getReferencesInSourceFile(sourceFile, search, state);\n          }\n        }\n        function getPropertySymbolOfDestructuringAssignment(location, checker) {\n          return isArrayLiteralOrObjectLiteralDestructuringPattern(location.parent.parent) ? checker.getPropertySymbolOfDestructuringAssignment(location) : void 0;\n        }\n        function getSymbolScope(symbol) {\n          const { declarations, flags, parent: parent2, valueDeclaration } = symbol;\n          if (valueDeclaration && (valueDeclaration.kind === 215 || valueDeclaration.kind === 228)) {\n            return valueDeclaration;\n          }\n          if (!declarations) {\n            return void 0;\n          }\n          if (flags & (4 | 8192)) {\n            const privateDeclaration = find(declarations, (d) => hasEffectiveModifier(d, 8) || isPrivateIdentifierClassElementDeclaration(d));\n            if (privateDeclaration) {\n              return getAncestor(privateDeclaration, 260);\n            }\n            return void 0;\n          }\n          if (declarations.some(isObjectBindingElementWithoutPropertyName)) {\n            return void 0;\n          }\n          const exposedByParent = parent2 && !(symbol.flags & 262144);\n          if (exposedByParent && !(isExternalModuleSymbol(parent2) && !parent2.globalExports)) {\n            return void 0;\n          }\n          let scope;\n          for (const declaration of declarations) {\n            const container = getContainerNode(declaration);\n            if (scope && scope !== container) {\n              return void 0;\n            }\n            if (!container || container.kind === 308 && !isExternalOrCommonJsModule(container)) {\n              return void 0;\n            }\n            scope = container;\n            if (isFunctionExpression(scope)) {\n              let next;\n              while (next = getNextJSDocCommentLocation(scope)) {\n                scope = next;\n              }\n            }\n          }\n          return exposedByParent ? scope.getSourceFile() : scope;\n        }\n        function isSymbolReferencedInFile(definition, checker, sourceFile, searchContainer = sourceFile) {\n          return eachSymbolReferenceInFile(definition, checker, sourceFile, () => true, searchContainer) || false;\n        }\n        Core2.isSymbolReferencedInFile = isSymbolReferencedInFile;\n        function eachSymbolReferenceInFile(definition, checker, sourceFile, cb, searchContainer = sourceFile) {\n          const symbol = isParameterPropertyDeclaration(definition.parent, definition.parent.parent) ? first(checker.getSymbolsOfParameterPropertyDeclaration(definition.parent, definition.text)) : checker.getSymbolAtLocation(definition);\n          if (!symbol)\n            return void 0;\n          for (const token of getPossibleSymbolReferenceNodes(sourceFile, symbol.name, searchContainer)) {\n            if (!isIdentifier(token) || token === definition || token.escapedText !== definition.escapedText)\n              continue;\n            const referenceSymbol = checker.getSymbolAtLocation(token);\n            if (referenceSymbol === symbol || checker.getShorthandAssignmentValueSymbol(token.parent) === symbol || isExportSpecifier(token.parent) && getLocalSymbolForExportSpecifier(token, referenceSymbol, token.parent, checker) === symbol) {\n              const res = cb(token);\n              if (res)\n                return res;\n            }\n          }\n        }\n        Core2.eachSymbolReferenceInFile = eachSymbolReferenceInFile;\n        function getTopMostDeclarationNamesInFile(declarationName, sourceFile) {\n          const candidates = filter(getPossibleSymbolReferenceNodes(sourceFile, declarationName), (name) => !!getDeclarationFromName(name));\n          return candidates.reduce((topMost, decl) => {\n            const depth = getDepth(decl);\n            if (!some(topMost.declarationNames) || depth === topMost.depth) {\n              topMost.declarationNames.push(decl);\n              topMost.depth = depth;\n            } else if (depth < topMost.depth) {\n              topMost.declarationNames = [decl];\n              topMost.depth = depth;\n            }\n            return topMost;\n          }, { depth: Infinity, declarationNames: [] }).declarationNames;\n          function getDepth(declaration) {\n            let depth = 0;\n            while (declaration) {\n              declaration = getContainerNode(declaration);\n              depth++;\n            }\n            return depth;\n          }\n        }\n        Core2.getTopMostDeclarationNamesInFile = getTopMostDeclarationNamesInFile;\n        function someSignatureUsage(signature, sourceFiles, checker, cb) {\n          if (!signature.name || !isIdentifier(signature.name))\n            return false;\n          const symbol = Debug.checkDefined(checker.getSymbolAtLocation(signature.name));\n          for (const sourceFile of sourceFiles) {\n            for (const name of getPossibleSymbolReferenceNodes(sourceFile, symbol.name)) {\n              if (!isIdentifier(name) || name === signature.name || name.escapedText !== signature.name.escapedText)\n                continue;\n              const called = climbPastPropertyAccess(name);\n              const call = isCallExpression(called.parent) && called.parent.expression === called ? called.parent : void 0;\n              const referenceSymbol = checker.getSymbolAtLocation(name);\n              if (referenceSymbol && checker.getRootSymbols(referenceSymbol).some((s) => s === symbol)) {\n                if (cb(name, call)) {\n                  return true;\n                }\n              }\n            }\n          }\n          return false;\n        }\n        Core2.someSignatureUsage = someSignatureUsage;\n        function getPossibleSymbolReferenceNodes(sourceFile, symbolName2, container = sourceFile) {\n          return getPossibleSymbolReferencePositions(sourceFile, symbolName2, container).map((pos) => getTouchingPropertyName(sourceFile, pos));\n        }\n        function getPossibleSymbolReferencePositions(sourceFile, symbolName2, container = sourceFile) {\n          const positions = [];\n          if (!symbolName2 || !symbolName2.length) {\n            return positions;\n          }\n          const text = sourceFile.text;\n          const sourceLength = text.length;\n          const symbolNameLength = symbolName2.length;\n          let position = text.indexOf(symbolName2, container.pos);\n          while (position >= 0) {\n            if (position > container.end)\n              break;\n            const endPosition = position + symbolNameLength;\n            if ((position === 0 || !isIdentifierPart(text.charCodeAt(position - 1), 99)) && (endPosition === sourceLength || !isIdentifierPart(text.charCodeAt(endPosition), 99))) {\n              positions.push(position);\n            }\n            position = text.indexOf(symbolName2, position + symbolNameLength + 1);\n          }\n          return positions;\n        }\n        function getLabelReferencesInNode(container, targetLabel) {\n          const sourceFile = container.getSourceFile();\n          const labelName = targetLabel.text;\n          const references = mapDefined(getPossibleSymbolReferenceNodes(sourceFile, labelName, container), (node) => node === targetLabel || isJumpStatementTarget(node) && getTargetLabel(node, labelName) === targetLabel ? nodeEntry(node) : void 0);\n          return [{ definition: { type: 1, node: targetLabel }, references }];\n        }\n        function isValidReferencePosition(node, searchSymbolName) {\n          switch (node.kind) {\n            case 80:\n              if (isJSDocMemberName(node.parent)) {\n                return true;\n              }\n            case 79:\n              return node.text.length === searchSymbolName.length;\n            case 14:\n            case 10: {\n              const str = node;\n              return (isLiteralNameOfPropertyDeclarationOrIndexAccess(str) || isNameOfModuleDeclaration(node) || isExpressionOfExternalModuleImportEqualsDeclaration(node) || isCallExpression(node.parent) && isBindableObjectDefinePropertyCall(node.parent) && node.parent.arguments[1] === node) && str.text.length === searchSymbolName.length;\n            }\n            case 8:\n              return isLiteralNameOfPropertyDeclarationOrIndexAccess(node) && node.text.length === searchSymbolName.length;\n            case 88:\n              return \"default\".length === searchSymbolName.length;\n            default:\n              return false;\n          }\n        }\n        function getAllReferencesForImportMeta(sourceFiles, cancellationToken) {\n          const references = flatMap(sourceFiles, (sourceFile) => {\n            cancellationToken.throwIfCancellationRequested();\n            return mapDefined(getPossibleSymbolReferenceNodes(sourceFile, \"meta\", sourceFile), (node) => {\n              const parent2 = node.parent;\n              if (isImportMeta(parent2)) {\n                return nodeEntry(parent2);\n              }\n            });\n          });\n          return references.length ? [{ definition: { type: 2, node: references[0].node }, references }] : void 0;\n        }\n        function getAllReferencesForKeyword(sourceFiles, keywordKind, cancellationToken, filter2) {\n          const references = flatMap(sourceFiles, (sourceFile) => {\n            cancellationToken.throwIfCancellationRequested();\n            return mapDefined(getPossibleSymbolReferenceNodes(sourceFile, tokenToString(keywordKind), sourceFile), (referenceLocation) => {\n              if (referenceLocation.kind === keywordKind && (!filter2 || filter2(referenceLocation))) {\n                return nodeEntry(referenceLocation);\n              }\n            });\n          });\n          return references.length ? [{ definition: { type: 2, node: references[0].node }, references }] : void 0;\n        }\n        function getReferencesInSourceFile(sourceFile, search, state, addReferencesHere = true) {\n          state.cancellationToken.throwIfCancellationRequested();\n          return getReferencesInContainer(sourceFile, sourceFile, search, state, addReferencesHere);\n        }\n        function getReferencesInContainer(container, sourceFile, search, state, addReferencesHere) {\n          if (!state.markSearchedSymbols(sourceFile, search.allSearchSymbols)) {\n            return;\n          }\n          for (const position of getPossibleSymbolReferencePositions(sourceFile, search.text, container)) {\n            getReferencesAtLocation(sourceFile, position, search, state, addReferencesHere);\n          }\n        }\n        function hasMatchingMeaning(referenceLocation, state) {\n          return !!(getMeaningFromLocation(referenceLocation) & state.searchMeaning);\n        }\n        function getReferencesAtLocation(sourceFile, position, search, state, addReferencesHere) {\n          const referenceLocation = getTouchingPropertyName(sourceFile, position);\n          if (!isValidReferencePosition(referenceLocation, search.text)) {\n            if (!state.options.implementations && (state.options.findInStrings && isInString(sourceFile, position) || state.options.findInComments && isInNonReferenceComment(sourceFile, position))) {\n              state.addStringOrCommentReference(sourceFile.fileName, createTextSpan(position, search.text.length));\n            }\n            return;\n          }\n          if (!hasMatchingMeaning(referenceLocation, state))\n            return;\n          let referenceSymbol = state.checker.getSymbolAtLocation(referenceLocation);\n          if (!referenceSymbol) {\n            return;\n          }\n          const parent2 = referenceLocation.parent;\n          if (isImportSpecifier(parent2) && parent2.propertyName === referenceLocation) {\n            return;\n          }\n          if (isExportSpecifier(parent2)) {\n            Debug.assert(referenceLocation.kind === 79);\n            getReferencesAtExportSpecifier(referenceLocation, referenceSymbol, parent2, search, state, addReferencesHere);\n            return;\n          }\n          const relatedSymbol = getRelatedSymbol(search, referenceSymbol, referenceLocation, state);\n          if (!relatedSymbol) {\n            getReferenceForShorthandProperty(referenceSymbol, search, state);\n            return;\n          }\n          switch (state.specialSearchKind) {\n            case 0:\n              if (addReferencesHere)\n                addReference(referenceLocation, relatedSymbol, state);\n              break;\n            case 1:\n              addConstructorReferences(referenceLocation, sourceFile, search, state);\n              break;\n            case 2:\n              addClassStaticThisReferences(referenceLocation, search, state);\n              break;\n            default:\n              Debug.assertNever(state.specialSearchKind);\n          }\n          if (isInJSFile(referenceLocation) && isBindingElement(referenceLocation.parent) && isVariableDeclarationInitializedToBareOrAccessedRequire(referenceLocation.parent.parent.parent)) {\n            referenceSymbol = referenceLocation.parent.symbol;\n            if (!referenceSymbol)\n              return;\n          }\n          getImportOrExportReferences(referenceLocation, referenceSymbol, search, state);\n        }\n        function getReferencesAtExportSpecifier(referenceLocation, referenceSymbol, exportSpecifier, search, state, addReferencesHere, alwaysGetReferences) {\n          Debug.assert(!alwaysGetReferences || !!state.options.providePrefixAndSuffixTextForRename, \"If alwaysGetReferences is true, then prefix/suffix text must be enabled\");\n          const { parent: parent2, propertyName, name } = exportSpecifier;\n          const exportDeclaration = parent2.parent;\n          const localSymbol = getLocalSymbolForExportSpecifier(referenceLocation, referenceSymbol, exportSpecifier, state.checker);\n          if (!alwaysGetReferences && !search.includes(localSymbol)) {\n            return;\n          }\n          if (!propertyName) {\n            if (!(state.options.use === 2 && name.escapedText === \"default\")) {\n              addRef();\n            }\n          } else if (referenceLocation === propertyName) {\n            if (!exportDeclaration.moduleSpecifier) {\n              addRef();\n            }\n            if (addReferencesHere && state.options.use !== 2 && state.markSeenReExportRHS(name)) {\n              addReference(name, Debug.checkDefined(exportSpecifier.symbol), state);\n            }\n          } else {\n            if (state.markSeenReExportRHS(referenceLocation)) {\n              addRef();\n            }\n          }\n          if (!isForRenameWithPrefixAndSuffixText(state.options) || alwaysGetReferences) {\n            const isDefaultExport = referenceLocation.escapedText === \"default\" || exportSpecifier.name.escapedText === \"default\";\n            const exportKind = isDefaultExport ? 1 : 0;\n            const exportSymbol = Debug.checkDefined(exportSpecifier.symbol);\n            const exportInfo = getExportInfo(exportSymbol, exportKind, state.checker);\n            if (exportInfo) {\n              searchForImportsOfExport(referenceLocation, exportSymbol, exportInfo, state);\n            }\n          }\n          if (search.comingFrom !== 1 && exportDeclaration.moduleSpecifier && !propertyName && !isForRenameWithPrefixAndSuffixText(state.options)) {\n            const imported = state.checker.getExportSpecifierLocalTargetSymbol(exportSpecifier);\n            if (imported)\n              searchForImportedSymbol(imported, state);\n          }\n          function addRef() {\n            if (addReferencesHere)\n              addReference(referenceLocation, localSymbol, state);\n          }\n        }\n        function getLocalSymbolForExportSpecifier(referenceLocation, referenceSymbol, exportSpecifier, checker) {\n          return isExportSpecifierAlias(referenceLocation, exportSpecifier) && checker.getExportSpecifierLocalTargetSymbol(exportSpecifier) || referenceSymbol;\n        }\n        function isExportSpecifierAlias(referenceLocation, exportSpecifier) {\n          const { parent: parent2, propertyName, name } = exportSpecifier;\n          Debug.assert(propertyName === referenceLocation || name === referenceLocation);\n          if (propertyName) {\n            return propertyName === referenceLocation;\n          } else {\n            return !parent2.parent.moduleSpecifier;\n          }\n        }\n        function getImportOrExportReferences(referenceLocation, referenceSymbol, search, state) {\n          const importOrExport = getImportOrExportSymbol(referenceLocation, referenceSymbol, state.checker, search.comingFrom === 1);\n          if (!importOrExport)\n            return;\n          const { symbol } = importOrExport;\n          if (importOrExport.kind === 0) {\n            if (!isForRenameWithPrefixAndSuffixText(state.options)) {\n              searchForImportedSymbol(symbol, state);\n            }\n          } else {\n            searchForImportsOfExport(referenceLocation, symbol, importOrExport.exportInfo, state);\n          }\n        }\n        function getReferenceForShorthandProperty({ flags, valueDeclaration }, search, state) {\n          const shorthandValueSymbol = state.checker.getShorthandAssignmentValueSymbol(valueDeclaration);\n          const name = valueDeclaration && getNameOfDeclaration(valueDeclaration);\n          if (!(flags & 33554432) && name && search.includes(shorthandValueSymbol)) {\n            addReference(name, shorthandValueSymbol, state);\n          }\n        }\n        function addReference(referenceLocation, relatedSymbol, state) {\n          const { kind, symbol } = \"kind\" in relatedSymbol ? relatedSymbol : { kind: void 0, symbol: relatedSymbol };\n          if (state.options.use === 2 && referenceLocation.kind === 88) {\n            return;\n          }\n          const addRef = state.referenceAdder(symbol);\n          if (state.options.implementations) {\n            addImplementationReferences(referenceLocation, addRef, state);\n          } else {\n            addRef(referenceLocation, kind);\n          }\n        }\n        function addConstructorReferences(referenceLocation, sourceFile, search, state) {\n          if (isNewExpressionTarget(referenceLocation)) {\n            addReference(referenceLocation, search.symbol, state);\n          }\n          const pusher = () => state.referenceAdder(search.symbol);\n          if (isClassLike(referenceLocation.parent)) {\n            Debug.assert(referenceLocation.kind === 88 || referenceLocation.parent.name === referenceLocation);\n            findOwnConstructorReferences(search.symbol, sourceFile, pusher());\n          } else {\n            const classExtending = tryGetClassByExtendingIdentifier(referenceLocation);\n            if (classExtending) {\n              findSuperConstructorAccesses(classExtending, pusher());\n              findInheritedConstructorReferences(classExtending, state);\n            }\n          }\n        }\n        function addClassStaticThisReferences(referenceLocation, search, state) {\n          addReference(referenceLocation, search.symbol, state);\n          const classLike = referenceLocation.parent;\n          if (state.options.use === 2 || !isClassLike(classLike))\n            return;\n          Debug.assert(classLike.name === referenceLocation);\n          const addRef = state.referenceAdder(search.symbol);\n          for (const member of classLike.members) {\n            if (!(isMethodOrAccessor(member) && isStatic(member))) {\n              continue;\n            }\n            if (member.body) {\n              member.body.forEachChild(function cb(node) {\n                if (node.kind === 108) {\n                  addRef(node);\n                } else if (!isFunctionLike(node) && !isClassLike(node)) {\n                  node.forEachChild(cb);\n                }\n              });\n            }\n          }\n        }\n        function findOwnConstructorReferences(classSymbol, sourceFile, addNode) {\n          const constructorSymbol = getClassConstructorSymbol(classSymbol);\n          if (constructorSymbol && constructorSymbol.declarations) {\n            for (const decl of constructorSymbol.declarations) {\n              const ctrKeyword = findChildOfKind(decl, 135, sourceFile);\n              Debug.assert(decl.kind === 173 && !!ctrKeyword);\n              addNode(ctrKeyword);\n            }\n          }\n          if (classSymbol.exports) {\n            classSymbol.exports.forEach((member) => {\n              const decl = member.valueDeclaration;\n              if (decl && decl.kind === 171) {\n                const body = decl.body;\n                if (body) {\n                  forEachDescendantOfKind(body, 108, (thisKeyword) => {\n                    if (isNewExpressionTarget(thisKeyword)) {\n                      addNode(thisKeyword);\n                    }\n                  });\n                }\n              }\n            });\n          }\n        }\n        function getClassConstructorSymbol(classSymbol) {\n          return classSymbol.members && classSymbol.members.get(\"__constructor\");\n        }\n        function findSuperConstructorAccesses(classDeclaration, addNode) {\n          const constructor = getClassConstructorSymbol(classDeclaration.symbol);\n          if (!(constructor && constructor.declarations)) {\n            return;\n          }\n          for (const decl of constructor.declarations) {\n            Debug.assert(decl.kind === 173);\n            const body = decl.body;\n            if (body) {\n              forEachDescendantOfKind(body, 106, (node) => {\n                if (isCallExpressionTarget(node)) {\n                  addNode(node);\n                }\n              });\n            }\n          }\n        }\n        function hasOwnConstructor(classDeclaration) {\n          return !!getClassConstructorSymbol(classDeclaration.symbol);\n        }\n        function findInheritedConstructorReferences(classDeclaration, state) {\n          if (hasOwnConstructor(classDeclaration))\n            return;\n          const classSymbol = classDeclaration.symbol;\n          const search = state.createSearch(void 0, classSymbol, void 0);\n          getReferencesInContainerOrFiles(classSymbol, state, search);\n        }\n        function addImplementationReferences(refNode, addReference2, state) {\n          if (isDeclarationName(refNode) && isImplementation(refNode.parent)) {\n            addReference2(refNode);\n            return;\n          }\n          if (refNode.kind !== 79) {\n            return;\n          }\n          if (refNode.parent.kind === 300) {\n            getReferenceEntriesForShorthandPropertyAssignment(refNode, state.checker, addReference2);\n          }\n          const containingClass = getContainingClassIfInHeritageClause(refNode);\n          if (containingClass) {\n            addReference2(containingClass);\n            return;\n          }\n          const typeNode = findAncestor(refNode, (a) => !isQualifiedName(a.parent) && !isTypeNode(a.parent) && !isTypeElement(a.parent));\n          const typeHavingNode = typeNode.parent;\n          if (hasType(typeHavingNode) && typeHavingNode.type === typeNode && state.markSeenContainingTypeReference(typeHavingNode)) {\n            if (hasInitializer(typeHavingNode)) {\n              addIfImplementation(typeHavingNode.initializer);\n            } else if (isFunctionLike(typeHavingNode) && typeHavingNode.body) {\n              const body = typeHavingNode.body;\n              if (body.kind === 238) {\n                forEachReturnStatement(body, (returnStatement) => {\n                  if (returnStatement.expression)\n                    addIfImplementation(returnStatement.expression);\n                });\n              } else {\n                addIfImplementation(body);\n              }\n            } else if (isAssertionExpression(typeHavingNode)) {\n              addIfImplementation(typeHavingNode.expression);\n            }\n          }\n          function addIfImplementation(e) {\n            if (isImplementationExpression(e))\n              addReference2(e);\n          }\n        }\n        function getContainingClassIfInHeritageClause(node) {\n          return isIdentifier(node) || isPropertyAccessExpression(node) ? getContainingClassIfInHeritageClause(node.parent) : isExpressionWithTypeArguments(node) ? tryCast(node.parent.parent, isClassLike) : void 0;\n        }\n        function isImplementationExpression(node) {\n          switch (node.kind) {\n            case 214:\n              return isImplementationExpression(node.expression);\n            case 216:\n            case 215:\n            case 207:\n            case 228:\n            case 206:\n              return true;\n            default:\n              return false;\n          }\n        }\n        function explicitlyInheritsFrom(symbol, parent2, cachedResults, checker) {\n          if (symbol === parent2) {\n            return true;\n          }\n          const key = getSymbolId(symbol) + \",\" + getSymbolId(parent2);\n          const cached = cachedResults.get(key);\n          if (cached !== void 0) {\n            return cached;\n          }\n          cachedResults.set(key, false);\n          const inherits = !!symbol.declarations && symbol.declarations.some((declaration) => getAllSuperTypeNodes(declaration).some((typeReference) => {\n            const type = checker.getTypeAtLocation(typeReference);\n            return !!type && !!type.symbol && explicitlyInheritsFrom(type.symbol, parent2, cachedResults, checker);\n          }));\n          cachedResults.set(key, inherits);\n          return inherits;\n        }\n        function getReferencesForSuperKeyword(superKeyword) {\n          let searchSpaceNode = getSuperContainer(superKeyword, false);\n          if (!searchSpaceNode) {\n            return void 0;\n          }\n          let staticFlag = 32;\n          switch (searchSpaceNode.kind) {\n            case 169:\n            case 168:\n            case 171:\n            case 170:\n            case 173:\n            case 174:\n            case 175:\n              staticFlag &= getSyntacticModifierFlags(searchSpaceNode);\n              searchSpaceNode = searchSpaceNode.parent;\n              break;\n            default:\n              return void 0;\n          }\n          const sourceFile = searchSpaceNode.getSourceFile();\n          const references = mapDefined(getPossibleSymbolReferenceNodes(sourceFile, \"super\", searchSpaceNode), (node) => {\n            if (node.kind !== 106) {\n              return;\n            }\n            const container = getSuperContainer(node, false);\n            return container && isStatic(container) === !!staticFlag && container.parent.symbol === searchSpaceNode.symbol ? nodeEntry(node) : void 0;\n          });\n          return [{ definition: { type: 0, symbol: searchSpaceNode.symbol }, references }];\n        }\n        function isParameterName(node) {\n          return node.kind === 79 && node.parent.kind === 166 && node.parent.name === node;\n        }\n        function getReferencesForThisKeyword(thisOrSuperKeyword, sourceFiles, cancellationToken) {\n          let searchSpaceNode = getThisContainer(thisOrSuperKeyword, false, false);\n          let staticFlag = 32;\n          switch (searchSpaceNode.kind) {\n            case 171:\n            case 170:\n              if (isObjectLiteralMethod(searchSpaceNode)) {\n                staticFlag &= getSyntacticModifierFlags(searchSpaceNode);\n                searchSpaceNode = searchSpaceNode.parent;\n                break;\n              }\n            case 169:\n            case 168:\n            case 173:\n            case 174:\n            case 175:\n              staticFlag &= getSyntacticModifierFlags(searchSpaceNode);\n              searchSpaceNode = searchSpaceNode.parent;\n              break;\n            case 308:\n              if (isExternalModule(searchSpaceNode) || isParameterName(thisOrSuperKeyword)) {\n                return void 0;\n              }\n            case 259:\n            case 215:\n              break;\n            default:\n              return void 0;\n          }\n          const references = flatMap(searchSpaceNode.kind === 308 ? sourceFiles : [searchSpaceNode.getSourceFile()], (sourceFile) => {\n            cancellationToken.throwIfCancellationRequested();\n            return getPossibleSymbolReferenceNodes(sourceFile, \"this\", isSourceFile(searchSpaceNode) ? sourceFile : searchSpaceNode).filter((node) => {\n              if (!isThis(node)) {\n                return false;\n              }\n              const container = getThisContainer(node, false, false);\n              if (!canHaveSymbol(container))\n                return false;\n              switch (searchSpaceNode.kind) {\n                case 215:\n                case 259:\n                  return searchSpaceNode.symbol === container.symbol;\n                case 171:\n                case 170:\n                  return isObjectLiteralMethod(searchSpaceNode) && searchSpaceNode.symbol === container.symbol;\n                case 228:\n                case 260:\n                case 207:\n                  return container.parent && canHaveSymbol(container.parent) && searchSpaceNode.symbol === container.parent.symbol && isStatic(container) === !!staticFlag;\n                case 308:\n                  return container.kind === 308 && !isExternalModule(container) && !isParameterName(node);\n              }\n            });\n          }).map((n) => nodeEntry(n));\n          const thisParameter = firstDefined(references, (r) => isParameter(r.node.parent) ? r.node : void 0);\n          return [{\n            definition: { type: 3, node: thisParameter || thisOrSuperKeyword },\n            references\n          }];\n        }\n        function getReferencesForStringLiteral(node, sourceFiles, checker, cancellationToken) {\n          const type = getContextualTypeFromParentOrAncestorTypeNode(node, checker);\n          const references = flatMap(sourceFiles, (sourceFile) => {\n            cancellationToken.throwIfCancellationRequested();\n            return mapDefined(getPossibleSymbolReferenceNodes(sourceFile, node.text), (ref) => {\n              if (isStringLiteralLike(ref) && ref.text === node.text) {\n                if (type) {\n                  const refType = getContextualTypeFromParentOrAncestorTypeNode(ref, checker);\n                  if (type !== checker.getStringType() && type === refType) {\n                    return nodeEntry(ref, 2);\n                  }\n                } else {\n                  return isNoSubstitutionTemplateLiteral(ref) && !rangeIsOnSingleLine(ref, sourceFile) ? void 0 : nodeEntry(ref, 2);\n                }\n              }\n            });\n          });\n          return [{\n            definition: { type: 4, node },\n            references\n          }];\n        }\n        function populateSearchSymbolSet(symbol, location, checker, isForRename, providePrefixAndSuffixText, implementations) {\n          const result = [];\n          forEachRelatedSymbol(symbol, location, checker, isForRename, !(isForRename && providePrefixAndSuffixText), (sym, root, base) => {\n            if (base) {\n              if (isStaticSymbol(symbol) !== isStaticSymbol(base)) {\n                base = void 0;\n              }\n            }\n            result.push(base || root || sym);\n          }, () => !implementations);\n          return result;\n        }\n        function forEachRelatedSymbol(symbol, location, checker, isForRenamePopulateSearchSymbolSet, onlyIncludeBindingElementAtReferenceLocation, cbSymbol, allowBaseTypes) {\n          const containingObjectLiteralElement = getContainingObjectLiteralElement(location);\n          if (containingObjectLiteralElement) {\n            const shorthandValueSymbol = checker.getShorthandAssignmentValueSymbol(location.parent);\n            if (shorthandValueSymbol && isForRenamePopulateSearchSymbolSet) {\n              return cbSymbol(shorthandValueSymbol, void 0, void 0, 3);\n            }\n            const contextualType = checker.getContextualType(containingObjectLiteralElement.parent);\n            const res2 = contextualType && firstDefined(getPropertySymbolsFromContextualType(containingObjectLiteralElement, checker, contextualType, true), (sym) => fromRoot(sym, 4));\n            if (res2)\n              return res2;\n            const propertySymbol = getPropertySymbolOfDestructuringAssignment(location, checker);\n            const res1 = propertySymbol && cbSymbol(propertySymbol, void 0, void 0, 4);\n            if (res1)\n              return res1;\n            const res22 = shorthandValueSymbol && cbSymbol(shorthandValueSymbol, void 0, void 0, 3);\n            if (res22)\n              return res22;\n          }\n          const aliasedSymbol = getMergedAliasedSymbolOfNamespaceExportDeclaration(location, symbol, checker);\n          if (aliasedSymbol) {\n            const res2 = cbSymbol(aliasedSymbol, void 0, void 0, 1);\n            if (res2)\n              return res2;\n          }\n          const res = fromRoot(symbol);\n          if (res)\n            return res;\n          if (symbol.valueDeclaration && isParameterPropertyDeclaration(symbol.valueDeclaration, symbol.valueDeclaration.parent)) {\n            const paramProps = checker.getSymbolsOfParameterPropertyDeclaration(cast(symbol.valueDeclaration, isParameter), symbol.name);\n            Debug.assert(paramProps.length === 2 && !!(paramProps[0].flags & 1) && !!(paramProps[1].flags & 4));\n            return fromRoot(symbol.flags & 1 ? paramProps[1] : paramProps[0]);\n          }\n          const exportSpecifier = getDeclarationOfKind(symbol, 278);\n          if (!isForRenamePopulateSearchSymbolSet || exportSpecifier && !exportSpecifier.propertyName) {\n            const localSymbol = exportSpecifier && checker.getExportSpecifierLocalTargetSymbol(exportSpecifier);\n            if (localSymbol) {\n              const res2 = cbSymbol(localSymbol, void 0, void 0, 1);\n              if (res2)\n                return res2;\n            }\n          }\n          if (!isForRenamePopulateSearchSymbolSet) {\n            let bindingElementPropertySymbol;\n            if (onlyIncludeBindingElementAtReferenceLocation) {\n              bindingElementPropertySymbol = isObjectBindingElementWithoutPropertyName(location.parent) ? getPropertySymbolFromBindingElement(checker, location.parent) : void 0;\n            } else {\n              bindingElementPropertySymbol = getPropertySymbolOfObjectBindingPatternWithoutPropertyName(symbol, checker);\n            }\n            return bindingElementPropertySymbol && fromRoot(bindingElementPropertySymbol, 4);\n          }\n          Debug.assert(isForRenamePopulateSearchSymbolSet);\n          const includeOriginalSymbolOfBindingElement = onlyIncludeBindingElementAtReferenceLocation;\n          if (includeOriginalSymbolOfBindingElement) {\n            const bindingElementPropertySymbol = getPropertySymbolOfObjectBindingPatternWithoutPropertyName(symbol, checker);\n            return bindingElementPropertySymbol && fromRoot(bindingElementPropertySymbol, 4);\n          }\n          function fromRoot(sym, kind) {\n            return firstDefined(checker.getRootSymbols(sym), (rootSymbol) => cbSymbol(sym, rootSymbol, void 0, kind) || (rootSymbol.parent && rootSymbol.parent.flags & (32 | 64) && allowBaseTypes(rootSymbol) ? getPropertySymbolsFromBaseTypes(rootSymbol.parent, rootSymbol.name, checker, (base) => cbSymbol(sym, rootSymbol, base, kind)) : void 0));\n          }\n          function getPropertySymbolOfObjectBindingPatternWithoutPropertyName(symbol2, checker2) {\n            const bindingElement = getDeclarationOfKind(symbol2, 205);\n            if (bindingElement && isObjectBindingElementWithoutPropertyName(bindingElement)) {\n              return getPropertySymbolFromBindingElement(checker2, bindingElement);\n            }\n          }\n        }\n        function getPropertySymbolsFromBaseTypes(symbol, propertyName, checker, cb) {\n          const seen = /* @__PURE__ */ new Map();\n          return recur(symbol);\n          function recur(symbol2) {\n            if (!(symbol2.flags & (32 | 64)) || !addToSeen(seen, getSymbolId(symbol2)))\n              return;\n            return firstDefined(symbol2.declarations, (declaration) => firstDefined(getAllSuperTypeNodes(declaration), (typeReference) => {\n              const type = checker.getTypeAtLocation(typeReference);\n              const propertySymbol = type && type.symbol && checker.getPropertyOfType(type, propertyName);\n              return type && propertySymbol && (firstDefined(checker.getRootSymbols(propertySymbol), cb) || recur(type.symbol));\n            }));\n          }\n        }\n        function isStaticSymbol(symbol) {\n          if (!symbol.valueDeclaration)\n            return false;\n          const modifierFlags = getEffectiveModifierFlags(symbol.valueDeclaration);\n          return !!(modifierFlags & 32);\n        }\n        function getRelatedSymbol(search, referenceSymbol, referenceLocation, state) {\n          const { checker } = state;\n          return forEachRelatedSymbol(referenceSymbol, referenceLocation, checker, false, state.options.use !== 2 || !!state.options.providePrefixAndSuffixTextForRename, (sym, rootSymbol, baseSymbol, kind) => {\n            if (baseSymbol) {\n              if (isStaticSymbol(referenceSymbol) !== isStaticSymbol(baseSymbol)) {\n                baseSymbol = void 0;\n              }\n            }\n            return search.includes(baseSymbol || rootSymbol || sym) ? { symbol: rootSymbol && !(getCheckFlags(sym) & 6) ? rootSymbol : sym, kind } : void 0;\n          }, (rootSymbol) => !(search.parents && !search.parents.some((parent2) => explicitlyInheritsFrom(rootSymbol.parent, parent2, state.inheritsFromCache, checker))));\n        }\n        function getIntersectingMeaningFromDeclarations(node, symbol) {\n          let meaning = getMeaningFromLocation(node);\n          const { declarations } = symbol;\n          if (declarations) {\n            let lastIterationMeaning;\n            do {\n              lastIterationMeaning = meaning;\n              for (const declaration of declarations) {\n                const declarationMeaning = getMeaningFromDeclaration(declaration);\n                if (declarationMeaning & meaning) {\n                  meaning |= declarationMeaning;\n                }\n              }\n            } while (meaning !== lastIterationMeaning);\n          }\n          return meaning;\n        }\n        Core2.getIntersectingMeaningFromDeclarations = getIntersectingMeaningFromDeclarations;\n        function isImplementation(node) {\n          return !!(node.flags & 16777216) ? !(isInterfaceDeclaration(node) || isTypeAliasDeclaration(node)) : isVariableLike(node) ? hasInitializer(node) : isFunctionLikeDeclaration(node) ? !!node.body : isClassLike(node) || isModuleOrEnumDeclaration(node);\n        }\n        function getReferenceEntriesForShorthandPropertyAssignment(node, checker, addReference2) {\n          const refSymbol = checker.getSymbolAtLocation(node);\n          const shorthandSymbol = checker.getShorthandAssignmentValueSymbol(refSymbol.valueDeclaration);\n          if (shorthandSymbol) {\n            for (const declaration of shorthandSymbol.getDeclarations()) {\n              if (getMeaningFromDeclaration(declaration) & 1) {\n                addReference2(declaration);\n              }\n            }\n          }\n        }\n        Core2.getReferenceEntriesForShorthandPropertyAssignment = getReferenceEntriesForShorthandPropertyAssignment;\n        function forEachDescendantOfKind(node, kind, action) {\n          forEachChild(node, (child) => {\n            if (child.kind === kind) {\n              action(child);\n            }\n            forEachDescendantOfKind(child, kind, action);\n          });\n        }\n        function tryGetClassByExtendingIdentifier(node) {\n          return tryGetClassExtendingExpressionWithTypeArguments(climbPastPropertyAccess(node).parent);\n        }\n        function getParentSymbolsOfPropertyAccess(location, symbol, checker) {\n          const propertyAccessExpression = isRightSideOfPropertyAccess(location) ? location.parent : void 0;\n          const lhsType = propertyAccessExpression && checker.getTypeAtLocation(propertyAccessExpression.expression);\n          const res = mapDefined(lhsType && (lhsType.isUnionOrIntersection() ? lhsType.types : lhsType.symbol === symbol.parent ? void 0 : [lhsType]), (t) => t.symbol && t.symbol.flags & (32 | 64) ? t.symbol : void 0);\n          return res.length === 0 ? void 0 : res;\n        }\n        function isForRenameWithPrefixAndSuffixText(options) {\n          return options.use === 2 && options.providePrefixAndSuffixTextForRename;\n        }\n      })(Core || (Core = {}));\n    }\n  });\n  var ts_FindAllReferences_exports = {};\n  __export2(ts_FindAllReferences_exports, {\n    Core: () => Core,\n    DefinitionKind: () => DefinitionKind,\n    EntryKind: () => EntryKind,\n    ExportKind: () => ExportKind2,\n    FindReferencesUse: () => FindReferencesUse,\n    ImportExport: () => ImportExport,\n    createImportTracker: () => createImportTracker,\n    findModuleReferences: () => findModuleReferences,\n    findReferenceOrRenameEntries: () => findReferenceOrRenameEntries,\n    findReferencedSymbols: () => findReferencedSymbols,\n    getContextNode: () => getContextNode,\n    getExportInfo: () => getExportInfo,\n    getImplementationsAtPosition: () => getImplementationsAtPosition,\n    getImportOrExportSymbol: () => getImportOrExportSymbol,\n    getReferenceEntriesForNode: () => getReferenceEntriesForNode,\n    getTextSpanOfEntry: () => getTextSpanOfEntry,\n    isContextWithStartAndEndNode: () => isContextWithStartAndEndNode,\n    isDeclarationOfSymbol: () => isDeclarationOfSymbol,\n    nodeEntry: () => nodeEntry,\n    toContextSpan: () => toContextSpan,\n    toHighlightSpan: () => toHighlightSpan,\n    toReferenceEntry: () => toReferenceEntry,\n    toRenameLocation: () => toRenameLocation\n  });\n  var init_ts_FindAllReferences = __esm({\n    \"src/services/_namespaces/ts.FindAllReferences.ts\"() {\n      \"use strict\";\n      init_importTracker();\n      init_findAllReferences();\n    }\n  });\n  function getDefinitionAtPosition(program, sourceFile, position, searchOtherFilesOnly, stopAtAlias) {\n    var _a2, _b;\n    const resolvedRef = getReferenceAtPosition(sourceFile, position, program);\n    const fileReferenceDefinition = resolvedRef && [getDefinitionInfoForFileReference(resolvedRef.reference.fileName, resolvedRef.fileName, resolvedRef.unverified)] || emptyArray;\n    if (resolvedRef == null ? void 0 : resolvedRef.file) {\n      return fileReferenceDefinition;\n    }\n    const node = getTouchingPropertyName(sourceFile, position);\n    if (node === sourceFile) {\n      return void 0;\n    }\n    const { parent: parent2 } = node;\n    const typeChecker = program.getTypeChecker();\n    if (node.kind === 161 || isIdentifier(node) && isJSDocOverrideTag(parent2) && parent2.tagName === node) {\n      return getDefinitionFromOverriddenMember(typeChecker, node) || emptyArray;\n    }\n    if (isJumpStatementTarget(node)) {\n      const label = getTargetLabel(node.parent, node.text);\n      return label ? [createDefinitionInfoFromName(typeChecker, label, \"label\", node.text, void 0)] : void 0;\n    }\n    if (node.kind === 105) {\n      const functionDeclaration = findAncestor(node.parent, (n) => isClassStaticBlockDeclaration(n) ? \"quit\" : isFunctionLikeDeclaration(n));\n      return functionDeclaration ? [createDefinitionFromSignatureDeclaration(typeChecker, functionDeclaration)] : void 0;\n    }\n    if (node.kind === 133) {\n      const functionDeclaration = findAncestor(node, (n) => isFunctionLikeDeclaration(n));\n      const isAsyncFunction2 = functionDeclaration && some(functionDeclaration.modifiers, (node2) => node2.kind === 132);\n      return isAsyncFunction2 ? [createDefinitionFromSignatureDeclaration(typeChecker, functionDeclaration)] : void 0;\n    }\n    if (node.kind === 125) {\n      const functionDeclaration = findAncestor(node, (n) => isFunctionLikeDeclaration(n));\n      const isGeneratorFunction = functionDeclaration && functionDeclaration.asteriskToken;\n      return isGeneratorFunction ? [createDefinitionFromSignatureDeclaration(typeChecker, functionDeclaration)] : void 0;\n    }\n    if (isStaticModifier(node) && isClassStaticBlockDeclaration(node.parent)) {\n      const classDecl = node.parent.parent;\n      const { symbol: symbol2, failedAliasResolution: failedAliasResolution2 } = getSymbol(classDecl, typeChecker, stopAtAlias);\n      const staticBlocks = filter(classDecl.members, isClassStaticBlockDeclaration);\n      const containerName = symbol2 ? typeChecker.symbolToString(symbol2, classDecl) : \"\";\n      const sourceFile2 = node.getSourceFile();\n      return map(staticBlocks, (staticBlock) => {\n        let { pos } = moveRangePastModifiers(staticBlock);\n        pos = skipTrivia(sourceFile2.text, pos);\n        return createDefinitionInfoFromName(typeChecker, staticBlock, \"constructor\", \"static {}\", containerName, false, failedAliasResolution2, { start: pos, length: \"static\".length });\n      });\n    }\n    let { symbol, failedAliasResolution } = getSymbol(node, typeChecker, stopAtAlias);\n    let fallbackNode = node;\n    if (searchOtherFilesOnly && failedAliasResolution) {\n      const importDeclaration = forEach([node, ...(symbol == null ? void 0 : symbol.declarations) || emptyArray], (n) => findAncestor(n, isAnyImportOrBareOrAccessedRequire));\n      const moduleSpecifier = importDeclaration && tryGetModuleSpecifierFromDeclaration(importDeclaration);\n      if (moduleSpecifier) {\n        ({ symbol, failedAliasResolution } = getSymbol(moduleSpecifier, typeChecker, stopAtAlias));\n        fallbackNode = moduleSpecifier;\n      }\n    }\n    if (!symbol && isModuleSpecifierLike(fallbackNode)) {\n      const ref = (_b = (_a2 = sourceFile.resolvedModules) == null ? void 0 : _a2.get(fallbackNode.text, getModeForUsageLocation(sourceFile, fallbackNode))) == null ? void 0 : _b.resolvedModule;\n      if (ref) {\n        return [{\n          name: fallbackNode.text,\n          fileName: ref.resolvedFileName,\n          containerName: void 0,\n          containerKind: void 0,\n          kind: \"script\",\n          textSpan: createTextSpan(0, 0),\n          failedAliasResolution,\n          isAmbient: isDeclarationFileName(ref.resolvedFileName),\n          unverified: fallbackNode !== node\n        }];\n      }\n    }\n    if (!symbol) {\n      return concatenate(fileReferenceDefinition, getDefinitionInfoForIndexSignatures(node, typeChecker));\n    }\n    if (searchOtherFilesOnly && every(symbol.declarations, (d) => d.getSourceFile().fileName === sourceFile.fileName))\n      return void 0;\n    const calledDeclaration = tryGetSignatureDeclaration(typeChecker, node);\n    if (calledDeclaration && !(isJsxOpeningLikeElement(node.parent) && isConstructorLike(calledDeclaration))) {\n      const sigInfo = createDefinitionFromSignatureDeclaration(typeChecker, calledDeclaration, failedAliasResolution);\n      if (typeChecker.getRootSymbols(symbol).some((s) => symbolMatchesSignature(s, calledDeclaration))) {\n        return [sigInfo];\n      } else {\n        const defs = getDefinitionFromSymbol(typeChecker, symbol, node, failedAliasResolution, calledDeclaration) || emptyArray;\n        return node.kind === 106 ? [sigInfo, ...defs] : [...defs, sigInfo];\n      }\n    }\n    if (node.parent.kind === 300) {\n      const shorthandSymbol = typeChecker.getShorthandAssignmentValueSymbol(symbol.valueDeclaration);\n      const definitions = (shorthandSymbol == null ? void 0 : shorthandSymbol.declarations) ? shorthandSymbol.declarations.map((decl) => createDefinitionInfo(decl, typeChecker, shorthandSymbol, node, false, failedAliasResolution)) : emptyArray;\n      return concatenate(definitions, getDefinitionFromObjectLiteralElement(typeChecker, node) || emptyArray);\n    }\n    if (isPropertyName(node) && isBindingElement(parent2) && isObjectBindingPattern(parent2.parent) && node === (parent2.propertyName || parent2.name)) {\n      const name = getNameFromPropertyName(node);\n      const type = typeChecker.getTypeAtLocation(parent2.parent);\n      return name === void 0 ? emptyArray : flatMap(type.isUnion() ? type.types : [type], (t) => {\n        const prop = t.getProperty(name);\n        return prop && getDefinitionFromSymbol(typeChecker, prop, node);\n      });\n    }\n    return concatenate(fileReferenceDefinition, getDefinitionFromObjectLiteralElement(typeChecker, node) || getDefinitionFromSymbol(typeChecker, symbol, node, failedAliasResolution));\n  }\n  function symbolMatchesSignature(s, calledDeclaration) {\n    var _a2;\n    return s === calledDeclaration.symbol || s === calledDeclaration.symbol.parent || isAssignmentExpression(calledDeclaration.parent) || !isCallLikeExpression(calledDeclaration.parent) && s === ((_a2 = tryCast(calledDeclaration.parent, canHaveSymbol)) == null ? void 0 : _a2.symbol);\n  }\n  function getDefinitionFromObjectLiteralElement(typeChecker, node) {\n    const element = getContainingObjectLiteralElement(node);\n    if (element) {\n      const contextualType = element && typeChecker.getContextualType(element.parent);\n      if (contextualType) {\n        return flatMap(getPropertySymbolsFromContextualType(element, typeChecker, contextualType, false), (propertySymbol) => getDefinitionFromSymbol(typeChecker, propertySymbol, node));\n      }\n    }\n  }\n  function getDefinitionFromOverriddenMember(typeChecker, node) {\n    const classElement = findAncestor(node, isClassElement);\n    if (!(classElement && classElement.name))\n      return;\n    const baseDeclaration = findAncestor(classElement, isClassLike);\n    if (!baseDeclaration)\n      return;\n    const baseTypeNode = getEffectiveBaseTypeNode(baseDeclaration);\n    if (!baseTypeNode)\n      return;\n    const expression = skipParentheses(baseTypeNode.expression);\n    const base = isClassExpression(expression) ? expression.symbol : typeChecker.getSymbolAtLocation(expression);\n    if (!base)\n      return;\n    const name = unescapeLeadingUnderscores(getTextOfPropertyName(classElement.name));\n    const symbol = hasStaticModifier(classElement) ? typeChecker.getPropertyOfType(typeChecker.getTypeOfSymbol(base), name) : typeChecker.getPropertyOfType(typeChecker.getDeclaredTypeOfSymbol(base), name);\n    if (!symbol)\n      return;\n    return getDefinitionFromSymbol(typeChecker, symbol, node);\n  }\n  function getReferenceAtPosition(sourceFile, position, program) {\n    var _a2, _b, _c, _d;\n    const referencePath = findReferenceInPosition(sourceFile.referencedFiles, position);\n    if (referencePath) {\n      const file = program.getSourceFileFromReference(sourceFile, referencePath);\n      return file && { reference: referencePath, fileName: file.fileName, file, unverified: false };\n    }\n    const typeReferenceDirective = findReferenceInPosition(sourceFile.typeReferenceDirectives, position);\n    if (typeReferenceDirective) {\n      const reference = (_a2 = program.getResolvedTypeReferenceDirectives().get(typeReferenceDirective.fileName, typeReferenceDirective.resolutionMode || sourceFile.impliedNodeFormat)) == null ? void 0 : _a2.resolvedTypeReferenceDirective;\n      const file = reference && program.getSourceFile(reference.resolvedFileName);\n      return file && { reference: typeReferenceDirective, fileName: file.fileName, file, unverified: false };\n    }\n    const libReferenceDirective = findReferenceInPosition(sourceFile.libReferenceDirectives, position);\n    if (libReferenceDirective) {\n      const file = program.getLibFileFromReference(libReferenceDirective);\n      return file && { reference: libReferenceDirective, fileName: file.fileName, file, unverified: false };\n    }\n    if ((_b = sourceFile.resolvedModules) == null ? void 0 : _b.size()) {\n      const node = getTouchingToken(sourceFile, position);\n      if (isModuleSpecifierLike(node) && isExternalModuleNameRelative(node.text) && sourceFile.resolvedModules.has(node.text, getModeForUsageLocation(sourceFile, node))) {\n        const verifiedFileName = (_d = (_c = sourceFile.resolvedModules.get(node.text, getModeForUsageLocation(sourceFile, node))) == null ? void 0 : _c.resolvedModule) == null ? void 0 : _d.resolvedFileName;\n        const fileName = verifiedFileName || resolvePath(getDirectoryPath(sourceFile.fileName), node.text);\n        return {\n          file: program.getSourceFile(fileName),\n          fileName,\n          reference: {\n            pos: node.getStart(),\n            end: node.getEnd(),\n            fileName: node.text\n          },\n          unverified: !verifiedFileName\n        };\n      }\n    }\n    return void 0;\n  }\n  function getTypeDefinitionAtPosition(typeChecker, sourceFile, position) {\n    const node = getTouchingPropertyName(sourceFile, position);\n    if (node === sourceFile) {\n      return void 0;\n    }\n    if (isImportMeta(node.parent) && node.parent.name === node) {\n      return definitionFromType(typeChecker.getTypeAtLocation(node.parent), typeChecker, node.parent, false);\n    }\n    const { symbol, failedAliasResolution } = getSymbol(node, typeChecker, false);\n    if (!symbol)\n      return void 0;\n    const typeAtLocation = typeChecker.getTypeOfSymbolAtLocation(symbol, node);\n    const returnType = tryGetReturnTypeOfFunction(symbol, typeAtLocation, typeChecker);\n    const fromReturnType = returnType && definitionFromType(returnType, typeChecker, node, failedAliasResolution);\n    const typeDefinitions = fromReturnType && fromReturnType.length !== 0 ? fromReturnType : definitionFromType(typeAtLocation, typeChecker, node, failedAliasResolution);\n    return typeDefinitions.length ? typeDefinitions : !(symbol.flags & 111551) && symbol.flags & 788968 ? getDefinitionFromSymbol(typeChecker, skipAlias(symbol, typeChecker), node, failedAliasResolution) : void 0;\n  }\n  function definitionFromType(type, checker, node, failedAliasResolution) {\n    return flatMap(type.isUnion() && !(type.flags & 32) ? type.types : [type], (t) => t.symbol && getDefinitionFromSymbol(checker, t.symbol, node, failedAliasResolution));\n  }\n  function tryGetReturnTypeOfFunction(symbol, type, checker) {\n    if (type.symbol === symbol || symbol.valueDeclaration && type.symbol && isVariableDeclaration(symbol.valueDeclaration) && symbol.valueDeclaration.initializer === type.symbol.valueDeclaration) {\n      const sigs = type.getCallSignatures();\n      if (sigs.length === 1)\n        return checker.getReturnTypeOfSignature(first(sigs));\n    }\n    return void 0;\n  }\n  function getDefinitionAndBoundSpan(program, sourceFile, position) {\n    const definitions = getDefinitionAtPosition(program, sourceFile, position);\n    if (!definitions || definitions.length === 0) {\n      return void 0;\n    }\n    const comment = findReferenceInPosition(sourceFile.referencedFiles, position) || findReferenceInPosition(sourceFile.typeReferenceDirectives, position) || findReferenceInPosition(sourceFile.libReferenceDirectives, position);\n    if (comment) {\n      return { definitions, textSpan: createTextSpanFromRange(comment) };\n    }\n    const node = getTouchingPropertyName(sourceFile, position);\n    const textSpan = createTextSpan(node.getStart(), node.getWidth());\n    return { definitions, textSpan };\n  }\n  function getDefinitionInfoForIndexSignatures(node, checker) {\n    return mapDefined(checker.getIndexInfosAtLocation(node), (info) => info.declaration && createDefinitionFromSignatureDeclaration(checker, info.declaration));\n  }\n  function getSymbol(node, checker, stopAtAlias) {\n    const symbol = checker.getSymbolAtLocation(node);\n    let failedAliasResolution = false;\n    if ((symbol == null ? void 0 : symbol.declarations) && symbol.flags & 2097152 && !stopAtAlias && shouldSkipAlias(node, symbol.declarations[0])) {\n      const aliased = checker.getAliasedSymbol(symbol);\n      if (aliased.declarations) {\n        return { symbol: aliased };\n      } else {\n        failedAliasResolution = true;\n      }\n    }\n    return { symbol, failedAliasResolution };\n  }\n  function shouldSkipAlias(node, declaration) {\n    if (node.kind !== 79) {\n      return false;\n    }\n    if (node.parent === declaration) {\n      return true;\n    }\n    if (declaration.kind === 271) {\n      return false;\n    }\n    return true;\n  }\n  function isExpandoDeclaration(node) {\n    if (!isAssignmentDeclaration(node))\n      return false;\n    const containingAssignment = findAncestor(node, (p) => {\n      if (isAssignmentExpression(p))\n        return true;\n      if (!isAssignmentDeclaration(p))\n        return \"quit\";\n      return false;\n    });\n    return !!containingAssignment && getAssignmentDeclarationKind(containingAssignment) === 5;\n  }\n  function getDefinitionFromSymbol(typeChecker, symbol, node, failedAliasResolution, excludeDeclaration) {\n    const filteredDeclarations = filter(symbol.declarations, (d) => d !== excludeDeclaration);\n    const withoutExpandos = filter(filteredDeclarations, (d) => !isExpandoDeclaration(d));\n    const results = some(withoutExpandos) ? withoutExpandos : filteredDeclarations;\n    return getConstructSignatureDefinition() || getCallSignatureDefinition() || map(results, (declaration) => createDefinitionInfo(declaration, typeChecker, symbol, node, false, failedAliasResolution));\n    function getConstructSignatureDefinition() {\n      if (symbol.flags & 32 && !(symbol.flags & (16 | 3)) && (isNewExpressionTarget(node) || node.kind === 135)) {\n        const cls = find(filteredDeclarations, isClassLike) || Debug.fail(\"Expected declaration to have at least one class-like declaration\");\n        return getSignatureDefinition(cls.members, true);\n      }\n    }\n    function getCallSignatureDefinition() {\n      return isCallOrNewExpressionTarget(node) || isNameOfFunctionDeclaration(node) ? getSignatureDefinition(filteredDeclarations, false) : void 0;\n    }\n    function getSignatureDefinition(signatureDeclarations, selectConstructors) {\n      if (!signatureDeclarations) {\n        return void 0;\n      }\n      const declarations = signatureDeclarations.filter(selectConstructors ? isConstructorDeclaration : isFunctionLike);\n      const declarationsWithBody = declarations.filter((d) => !!d.body);\n      return declarations.length ? declarationsWithBody.length !== 0 ? declarationsWithBody.map((x) => createDefinitionInfo(x, typeChecker, symbol, node)) : [createDefinitionInfo(last(declarations), typeChecker, symbol, node, false, failedAliasResolution)] : void 0;\n    }\n  }\n  function createDefinitionInfo(declaration, checker, symbol, node, unverified, failedAliasResolution) {\n    const symbolName2 = checker.symbolToString(symbol);\n    const symbolKind = ts_SymbolDisplay_exports.getSymbolKind(checker, symbol, node);\n    const containerName = symbol.parent ? checker.symbolToString(symbol.parent, node) : \"\";\n    return createDefinitionInfoFromName(checker, declaration, symbolKind, symbolName2, containerName, unverified, failedAliasResolution);\n  }\n  function createDefinitionInfoFromName(checker, declaration, symbolKind, symbolName2, containerName, unverified, failedAliasResolution, textSpan) {\n    const sourceFile = declaration.getSourceFile();\n    if (!textSpan) {\n      const name = getNameOfDeclaration(declaration) || declaration;\n      textSpan = createTextSpanFromNode(name, sourceFile);\n    }\n    return {\n      fileName: sourceFile.fileName,\n      textSpan,\n      kind: symbolKind,\n      name: symbolName2,\n      containerKind: void 0,\n      containerName,\n      ...ts_FindAllReferences_exports.toContextSpan(textSpan, sourceFile, ts_FindAllReferences_exports.getContextNode(declaration)),\n      isLocal: !isDefinitionVisible(checker, declaration),\n      isAmbient: !!(declaration.flags & 16777216),\n      unverified,\n      failedAliasResolution\n    };\n  }\n  function isDefinitionVisible(checker, declaration) {\n    if (checker.isDeclarationVisible(declaration))\n      return true;\n    if (!declaration.parent)\n      return false;\n    if (hasInitializer(declaration.parent) && declaration.parent.initializer === declaration)\n      return isDefinitionVisible(checker, declaration.parent);\n    switch (declaration.kind) {\n      case 169:\n      case 174:\n      case 175:\n      case 171:\n        if (hasEffectiveModifier(declaration, 8))\n          return false;\n      case 173:\n      case 299:\n      case 300:\n      case 207:\n      case 228:\n      case 216:\n      case 215:\n        return isDefinitionVisible(checker, declaration.parent);\n      default:\n        return false;\n    }\n  }\n  function createDefinitionFromSignatureDeclaration(typeChecker, decl, failedAliasResolution) {\n    return createDefinitionInfo(decl, typeChecker, decl.symbol, decl, false, failedAliasResolution);\n  }\n  function findReferenceInPosition(refs, pos) {\n    return find(refs, (ref) => textRangeContainsPositionInclusive(ref, pos));\n  }\n  function getDefinitionInfoForFileReference(name, targetFileName, unverified) {\n    return {\n      fileName: targetFileName,\n      textSpan: createTextSpanFromBounds(0, 0),\n      kind: \"script\",\n      name,\n      containerName: void 0,\n      containerKind: void 0,\n      unverified\n    };\n  }\n  function getAncestorCallLikeExpression(node) {\n    const target = findAncestor(node, (n) => !isRightSideOfPropertyAccess(n));\n    const callLike = target == null ? void 0 : target.parent;\n    return callLike && isCallLikeExpression(callLike) && getInvokedExpression(callLike) === target ? callLike : void 0;\n  }\n  function tryGetSignatureDeclaration(typeChecker, node) {\n    const callLike = getAncestorCallLikeExpression(node);\n    const signature = callLike && typeChecker.getResolvedSignature(callLike);\n    return tryCast(signature && signature.declaration, (d) => isFunctionLike(d) && !isFunctionTypeNode(d));\n  }\n  function isConstructorLike(node) {\n    switch (node.kind) {\n      case 173:\n      case 182:\n      case 177:\n        return true;\n      default:\n        return false;\n    }\n  }\n  var init_goToDefinition = __esm({\n    \"src/services/goToDefinition.ts\"() {\n      \"use strict\";\n      init_ts4();\n    }\n  });\n  var ts_GoToDefinition_exports = {};\n  __export2(ts_GoToDefinition_exports, {\n    createDefinitionInfo: () => createDefinitionInfo,\n    findReferenceInPosition: () => findReferenceInPosition,\n    getDefinitionAndBoundSpan: () => getDefinitionAndBoundSpan,\n    getDefinitionAtPosition: () => getDefinitionAtPosition,\n    getReferenceAtPosition: () => getReferenceAtPosition,\n    getTypeDefinitionAtPosition: () => getTypeDefinitionAtPosition\n  });\n  var init_ts_GoToDefinition = __esm({\n    \"src/services/_namespaces/ts.GoToDefinition.ts\"() {\n      \"use strict\";\n      init_goToDefinition();\n    }\n  });\n  function shouldShowParameterNameHints(preferences) {\n    return preferences.includeInlayParameterNameHints === \"literals\" || preferences.includeInlayParameterNameHints === \"all\";\n  }\n  function shouldShowLiteralParameterNameHintsOnly(preferences) {\n    return preferences.includeInlayParameterNameHints === \"literals\";\n  }\n  function provideInlayHints(context) {\n    const { file, program, span, cancellationToken, preferences } = context;\n    const sourceFileText = file.text;\n    const compilerOptions = program.getCompilerOptions();\n    const checker = program.getTypeChecker();\n    const result = [];\n    visitor(file);\n    return result;\n    function visitor(node) {\n      if (!node || node.getFullWidth() === 0) {\n        return;\n      }\n      switch (node.kind) {\n        case 264:\n        case 260:\n        case 261:\n        case 259:\n        case 228:\n        case 215:\n        case 171:\n        case 216:\n          cancellationToken.throwIfCancellationRequested();\n      }\n      if (!textSpanIntersectsWith(span, node.pos, node.getFullWidth())) {\n        return;\n      }\n      if (isTypeNode(node) && !isExpressionWithTypeArguments(node)) {\n        return;\n      }\n      if (preferences.includeInlayVariableTypeHints && isVariableDeclaration(node)) {\n        visitVariableLikeDeclaration(node);\n      } else if (preferences.includeInlayPropertyDeclarationTypeHints && isPropertyDeclaration(node)) {\n        visitVariableLikeDeclaration(node);\n      } else if (preferences.includeInlayEnumMemberValueHints && isEnumMember(node)) {\n        visitEnumMember(node);\n      } else if (shouldShowParameterNameHints(preferences) && (isCallExpression(node) || isNewExpression(node))) {\n        visitCallOrNewExpression(node);\n      } else {\n        if (preferences.includeInlayFunctionParameterTypeHints && isFunctionLikeDeclaration(node) && hasContextSensitiveParameters(node)) {\n          visitFunctionLikeForParameterType(node);\n        }\n        if (preferences.includeInlayFunctionLikeReturnTypeHints && isSignatureSupportingReturnAnnotation(node)) {\n          visitFunctionDeclarationLikeForReturnType(node);\n        }\n      }\n      return forEachChild(node, visitor);\n    }\n    function isSignatureSupportingReturnAnnotation(node) {\n      return isArrowFunction(node) || isFunctionExpression(node) || isFunctionDeclaration(node) || isMethodDeclaration(node) || isGetAccessorDeclaration(node);\n    }\n    function addParameterHints(text, position, isFirstVariadicArgument) {\n      result.push({\n        text: `${isFirstVariadicArgument ? \"...\" : \"\"}${truncation(text, maxHintsLength)}:`,\n        position,\n        kind: \"Parameter\",\n        whitespaceAfter: true\n      });\n    }\n    function addTypeHints(text, position) {\n      result.push({\n        text: `: ${truncation(text, maxHintsLength)}`,\n        position,\n        kind: \"Type\",\n        whitespaceBefore: true\n      });\n    }\n    function addEnumMemberValueHints(text, position) {\n      result.push({\n        text: `= ${truncation(text, maxHintsLength)}`,\n        position,\n        kind: \"Enum\",\n        whitespaceBefore: true\n      });\n    }\n    function visitEnumMember(member) {\n      if (member.initializer) {\n        return;\n      }\n      const enumValue = checker.getConstantValue(member);\n      if (enumValue !== void 0) {\n        addEnumMemberValueHints(enumValue.toString(), member.end);\n      }\n    }\n    function isModuleReferenceType(type) {\n      return type.symbol && type.symbol.flags & 1536;\n    }\n    function visitVariableLikeDeclaration(decl) {\n      if (!decl.initializer || isBindingPattern(decl.name) || isVariableDeclaration(decl) && !isHintableDeclaration(decl)) {\n        return;\n      }\n      const effectiveTypeAnnotation = getEffectiveTypeAnnotationNode(decl);\n      if (effectiveTypeAnnotation) {\n        return;\n      }\n      const declarationType = checker.getTypeAtLocation(decl);\n      if (isModuleReferenceType(declarationType)) {\n        return;\n      }\n      const typeDisplayString = printTypeInSingleLine(declarationType);\n      if (typeDisplayString) {\n        const isVariableNameMatchesType = preferences.includeInlayVariableTypeHintsWhenTypeMatchesName === false && equateStringsCaseInsensitive(decl.name.getText(), typeDisplayString);\n        if (isVariableNameMatchesType) {\n          return;\n        }\n        addTypeHints(typeDisplayString, decl.name.end);\n      }\n    }\n    function visitCallOrNewExpression(expr) {\n      const args = expr.arguments;\n      if (!args || !args.length) {\n        return;\n      }\n      const candidates = [];\n      const signature = checker.getResolvedSignatureForSignatureHelp(expr, candidates);\n      if (!signature || !candidates.length) {\n        return;\n      }\n      for (let i = 0; i < args.length; ++i) {\n        const originalArg = args[i];\n        const arg = skipParentheses(originalArg);\n        if (shouldShowLiteralParameterNameHintsOnly(preferences) && !isHintableLiteral(arg)) {\n          continue;\n        }\n        const identifierNameInfo = checker.getParameterIdentifierNameAtPosition(signature, i);\n        if (identifierNameInfo) {\n          const [parameterName, isFirstVariadicArgument] = identifierNameInfo;\n          const isParameterNameNotSameAsArgument = preferences.includeInlayParameterNameHintsWhenArgumentMatchesName || !identifierOrAccessExpressionPostfixMatchesParameterName(arg, parameterName);\n          if (!isParameterNameNotSameAsArgument && !isFirstVariadicArgument) {\n            continue;\n          }\n          const name = unescapeLeadingUnderscores(parameterName);\n          if (leadingCommentsContainsParameterName(arg, name)) {\n            continue;\n          }\n          addParameterHints(name, originalArg.getStart(), isFirstVariadicArgument);\n        }\n      }\n    }\n    function identifierOrAccessExpressionPostfixMatchesParameterName(expr, parameterName) {\n      if (isIdentifier(expr)) {\n        return expr.text === parameterName;\n      }\n      if (isPropertyAccessExpression(expr)) {\n        return expr.name.text === parameterName;\n      }\n      return false;\n    }\n    function leadingCommentsContainsParameterName(node, name) {\n      if (!isIdentifierText(name, compilerOptions.target, getLanguageVariant(file.scriptKind))) {\n        return false;\n      }\n      const ranges = getLeadingCommentRanges(sourceFileText, node.pos);\n      if (!(ranges == null ? void 0 : ranges.length)) {\n        return false;\n      }\n      const regex = leadingParameterNameCommentRegexFactory(name);\n      return some(ranges, (range) => regex.test(sourceFileText.substring(range.pos, range.end)));\n    }\n    function isHintableLiteral(node) {\n      switch (node.kind) {\n        case 221: {\n          const operand = node.operand;\n          return isLiteralExpression(operand) || isIdentifier(operand) && isInfinityOrNaNString(operand.escapedText);\n        }\n        case 110:\n        case 95:\n        case 104:\n        case 14:\n        case 225:\n          return true;\n        case 79: {\n          const name = node.escapedText;\n          return isUndefined(name) || isInfinityOrNaNString(name);\n        }\n      }\n      return isLiteralExpression(node);\n    }\n    function visitFunctionDeclarationLikeForReturnType(decl) {\n      if (isArrowFunction(decl)) {\n        if (!findChildOfKind(decl, 20, file)) {\n          return;\n        }\n      }\n      const effectiveTypeAnnotation = getEffectiveReturnTypeNode(decl);\n      if (effectiveTypeAnnotation || !decl.body) {\n        return;\n      }\n      const signature = checker.getSignatureFromDeclaration(decl);\n      if (!signature) {\n        return;\n      }\n      const returnType = checker.getReturnTypeOfSignature(signature);\n      if (isModuleReferenceType(returnType)) {\n        return;\n      }\n      const typeDisplayString = printTypeInSingleLine(returnType);\n      if (!typeDisplayString) {\n        return;\n      }\n      addTypeHints(typeDisplayString, getTypeAnnotationPosition(decl));\n    }\n    function getTypeAnnotationPosition(decl) {\n      const closeParenToken = findChildOfKind(decl, 21, file);\n      if (closeParenToken) {\n        return closeParenToken.end;\n      }\n      return decl.parameters.end;\n    }\n    function visitFunctionLikeForParameterType(node) {\n      const signature = checker.getSignatureFromDeclaration(node);\n      if (!signature) {\n        return;\n      }\n      for (let i = 0; i < node.parameters.length && i < signature.parameters.length; ++i) {\n        const param = node.parameters[i];\n        if (!isHintableDeclaration(param)) {\n          continue;\n        }\n        const effectiveTypeAnnotation = getEffectiveTypeAnnotationNode(param);\n        if (effectiveTypeAnnotation) {\n          continue;\n        }\n        const typeDisplayString = getParameterDeclarationTypeDisplayString(signature.parameters[i]);\n        if (!typeDisplayString) {\n          continue;\n        }\n        addTypeHints(typeDisplayString, param.questionToken ? param.questionToken.end : param.name.end);\n      }\n    }\n    function getParameterDeclarationTypeDisplayString(symbol) {\n      const valueDeclaration = symbol.valueDeclaration;\n      if (!valueDeclaration || !isParameter(valueDeclaration)) {\n        return void 0;\n      }\n      const signatureParamType = checker.getTypeOfSymbolAtLocation(symbol, valueDeclaration);\n      if (isModuleReferenceType(signatureParamType)) {\n        return void 0;\n      }\n      return printTypeInSingleLine(signatureParamType);\n    }\n    function truncation(text, maxLength2) {\n      if (text.length > maxLength2) {\n        return text.substr(0, maxLength2 - \"...\".length) + \"...\";\n      }\n      return text;\n    }\n    function printTypeInSingleLine(type) {\n      const flags = 70221824 | 1048576 | 16384;\n      const printer = createPrinterWithRemoveComments();\n      return usingSingleLineStringWriter((writer) => {\n        const typeNode = checker.typeToTypeNode(type, void 0, flags);\n        Debug.assertIsDefined(typeNode, \"should always get typenode\");\n        printer.writeNode(4, typeNode, file, writer);\n      });\n    }\n    function isUndefined(name) {\n      return name === \"undefined\";\n    }\n    function isHintableDeclaration(node) {\n      if ((isParameterDeclaration(node) || isVariableDeclaration(node) && isVarConst(node)) && node.initializer) {\n        const initializer = skipParentheses(node.initializer);\n        return !(isHintableLiteral(initializer) || isNewExpression(initializer) || isObjectLiteralExpression(initializer) || isAssertionExpression(initializer));\n      }\n      return true;\n    }\n  }\n  var maxHintsLength, leadingParameterNameCommentRegexFactory;\n  var init_inlayHints = __esm({\n    \"src/services/inlayHints.ts\"() {\n      \"use strict\";\n      init_ts4();\n      maxHintsLength = 30;\n      leadingParameterNameCommentRegexFactory = (name) => {\n        return new RegExp(`^\\\\s?/\\\\*\\\\*?\\\\s?${name}\\\\s?\\\\*\\\\/\\\\s?$`);\n      };\n    }\n  });\n  var ts_InlayHints_exports = {};\n  __export2(ts_InlayHints_exports, {\n    provideInlayHints: () => provideInlayHints\n  });\n  var init_ts_InlayHints = __esm({\n    \"src/services/_namespaces/ts.InlayHints.ts\"() {\n      \"use strict\";\n      init_inlayHints();\n    }\n  });\n  function getJsDocCommentsFromDeclarations(declarations, checker) {\n    const parts = [];\n    forEachUnique(declarations, (declaration) => {\n      for (const jsdoc of getCommentHavingNodes(declaration)) {\n        const inheritDoc = isJSDoc(jsdoc) && jsdoc.tags && find(jsdoc.tags, (t) => t.kind === 330 && (t.tagName.escapedText === \"inheritDoc\" || t.tagName.escapedText === \"inheritdoc\"));\n        if (jsdoc.comment === void 0 && !inheritDoc || isJSDoc(jsdoc) && declaration.kind !== 349 && declaration.kind !== 341 && jsdoc.tags && jsdoc.tags.some((t) => t.kind === 349 || t.kind === 341) && !jsdoc.tags.some((t) => t.kind === 344 || t.kind === 345)) {\n          continue;\n        }\n        let newparts = jsdoc.comment ? getDisplayPartsFromComment(jsdoc.comment, checker) : [];\n        if (inheritDoc && inheritDoc.comment) {\n          newparts = newparts.concat(getDisplayPartsFromComment(inheritDoc.comment, checker));\n        }\n        if (!contains(parts, newparts, isIdenticalListOfDisplayParts)) {\n          parts.push(newparts);\n        }\n      }\n    });\n    return flatten(intersperse(parts, [lineBreakPart()]));\n  }\n  function isIdenticalListOfDisplayParts(parts1, parts2) {\n    return arraysEqual(parts1, parts2, (p1, p2) => p1.kind === p2.kind && p1.text === p2.text);\n  }\n  function getCommentHavingNodes(declaration) {\n    switch (declaration.kind) {\n      case 344:\n      case 351:\n        return [declaration];\n      case 341:\n      case 349:\n        return [declaration, declaration.parent];\n      default:\n        return getJSDocCommentsAndTags(declaration);\n    }\n  }\n  function getJsDocTagsFromDeclarations(declarations, checker) {\n    const infos = [];\n    forEachUnique(declarations, (declaration) => {\n      const tags = getJSDocTags(declaration);\n      if (tags.some((t) => t.kind === 349 || t.kind === 341) && !tags.some((t) => t.kind === 344 || t.kind === 345)) {\n        return;\n      }\n      for (const tag of tags) {\n        infos.push({ name: tag.tagName.text, text: getCommentDisplayParts(tag, checker) });\n      }\n    });\n    return infos;\n  }\n  function getDisplayPartsFromComment(comment, checker) {\n    if (typeof comment === \"string\") {\n      return [textPart(comment)];\n    }\n    return flatMap(comment, (node) => node.kind === 324 ? [textPart(node.text)] : buildLinkParts(node, checker));\n  }\n  function getCommentDisplayParts(tag, checker) {\n    const { comment, kind } = tag;\n    const namePart = getTagNameDisplayPart(kind);\n    switch (kind) {\n      case 352:\n        const typeExpression = tag.typeExpression;\n        return typeExpression ? withNode(typeExpression) : comment === void 0 ? void 0 : getDisplayPartsFromComment(comment, checker);\n      case 332:\n        return withNode(tag.class);\n      case 331:\n        return withNode(tag.class);\n      case 348:\n        const templateTag = tag;\n        const displayParts = [];\n        if (templateTag.constraint) {\n          displayParts.push(textPart(templateTag.constraint.getText()));\n        }\n        if (length(templateTag.typeParameters)) {\n          if (length(displayParts)) {\n            displayParts.push(spacePart());\n          }\n          const lastTypeParameter = templateTag.typeParameters[templateTag.typeParameters.length - 1];\n          forEach(templateTag.typeParameters, (tp) => {\n            displayParts.push(namePart(tp.getText()));\n            if (lastTypeParameter !== tp) {\n              displayParts.push(...[punctuationPart(27), spacePart()]);\n            }\n          });\n        }\n        if (comment) {\n          displayParts.push(...[spacePart(), ...getDisplayPartsFromComment(comment, checker)]);\n        }\n        return displayParts;\n      case 347:\n      case 353:\n        return withNode(tag.typeExpression);\n      case 349:\n      case 341:\n      case 351:\n      case 344:\n      case 350:\n        const { name } = tag;\n        return name ? withNode(name) : comment === void 0 ? void 0 : getDisplayPartsFromComment(comment, checker);\n      default:\n        return comment === void 0 ? void 0 : getDisplayPartsFromComment(comment, checker);\n    }\n    function withNode(node) {\n      return addComment(node.getText());\n    }\n    function addComment(s) {\n      if (comment) {\n        if (s.match(/^https?$/)) {\n          return [textPart(s), ...getDisplayPartsFromComment(comment, checker)];\n        } else {\n          return [namePart(s), spacePart(), ...getDisplayPartsFromComment(comment, checker)];\n        }\n      } else {\n        return [textPart(s)];\n      }\n    }\n  }\n  function getTagNameDisplayPart(kind) {\n    switch (kind) {\n      case 344:\n        return parameterNamePart;\n      case 351:\n        return propertyNamePart;\n      case 348:\n        return typeParameterNamePart;\n      case 349:\n      case 341:\n        return typeAliasNamePart;\n      default:\n        return textPart;\n    }\n  }\n  function getJSDocTagNameCompletions() {\n    return jsDocTagNameCompletionEntries || (jsDocTagNameCompletionEntries = map(jsDocTagNames, (tagName) => {\n      return {\n        name: tagName,\n        kind: \"keyword\",\n        kindModifiers: \"\",\n        sortText: ts_Completions_exports.SortText.LocationPriority\n      };\n    }));\n  }\n  function getJSDocTagCompletions() {\n    return jsDocTagCompletionEntries || (jsDocTagCompletionEntries = map(jsDocTagNames, (tagName) => {\n      return {\n        name: `@${tagName}`,\n        kind: \"keyword\",\n        kindModifiers: \"\",\n        sortText: ts_Completions_exports.SortText.LocationPriority\n      };\n    }));\n  }\n  function getJSDocTagCompletionDetails(name) {\n    return {\n      name,\n      kind: \"\",\n      kindModifiers: \"\",\n      displayParts: [textPart(name)],\n      documentation: emptyArray,\n      tags: void 0,\n      codeActions: void 0\n    };\n  }\n  function getJSDocParameterNameCompletions(tag) {\n    if (!isIdentifier(tag.name)) {\n      return emptyArray;\n    }\n    const nameThusFar = tag.name.text;\n    const jsdoc = tag.parent;\n    const fn = jsdoc.parent;\n    if (!isFunctionLike(fn))\n      return [];\n    return mapDefined(fn.parameters, (param) => {\n      if (!isIdentifier(param.name))\n        return void 0;\n      const name = param.name.text;\n      if (jsdoc.tags.some((t) => t !== tag && isJSDocParameterTag(t) && isIdentifier(t.name) && t.name.escapedText === name) || nameThusFar !== void 0 && !startsWith(name, nameThusFar)) {\n        return void 0;\n      }\n      return { name, kind: \"parameter\", kindModifiers: \"\", sortText: ts_Completions_exports.SortText.LocationPriority };\n    });\n  }\n  function getJSDocParameterNameCompletionDetails(name) {\n    return {\n      name,\n      kind: \"parameter\",\n      kindModifiers: \"\",\n      displayParts: [textPart(name)],\n      documentation: emptyArray,\n      tags: void 0,\n      codeActions: void 0\n    };\n  }\n  function getDocCommentTemplateAtPosition(newLine, sourceFile, position, options) {\n    const tokenAtPos = getTokenAtPosition(sourceFile, position);\n    const existingDocComment = findAncestor(tokenAtPos, isJSDoc);\n    if (existingDocComment && (existingDocComment.comment !== void 0 || length(existingDocComment.tags))) {\n      return void 0;\n    }\n    const tokenStart = tokenAtPos.getStart(sourceFile);\n    if (!existingDocComment && tokenStart < position) {\n      return void 0;\n    }\n    const commentOwnerInfo = getCommentOwnerInfo(tokenAtPos, options);\n    if (!commentOwnerInfo) {\n      return void 0;\n    }\n    const { commentOwner, parameters, hasReturn: hasReturn2 } = commentOwnerInfo;\n    const commentOwnerJsDoc = hasJSDocNodes(commentOwner) && commentOwner.jsDoc ? commentOwner.jsDoc : void 0;\n    const lastJsDoc = lastOrUndefined(commentOwnerJsDoc);\n    if (commentOwner.getStart(sourceFile) < position || lastJsDoc && existingDocComment && lastJsDoc !== existingDocComment) {\n      return void 0;\n    }\n    const indentationStr = getIndentationStringAtPosition(sourceFile, position);\n    const isJavaScriptFile = hasJSFileExtension(sourceFile.fileName);\n    const tags = (parameters ? parameterDocComments(parameters || [], isJavaScriptFile, indentationStr, newLine) : \"\") + (hasReturn2 ? returnsDocComment(indentationStr, newLine) : \"\");\n    const openComment = \"/**\";\n    const closeComment = \" */\";\n    const hasTag = (commentOwnerJsDoc || []).some((jsDoc) => !!jsDoc.tags);\n    if (tags && !hasTag) {\n      const preamble = openComment + newLine + indentationStr + \" * \";\n      const endLine = tokenStart === position ? newLine + indentationStr : \"\";\n      const result = preamble + newLine + tags + indentationStr + closeComment + endLine;\n      return { newText: result, caretOffset: preamble.length };\n    }\n    return { newText: openComment + closeComment, caretOffset: 3 };\n  }\n  function getIndentationStringAtPosition(sourceFile, position) {\n    const { text } = sourceFile;\n    const lineStart = getLineStartPositionForPosition(position, sourceFile);\n    let pos = lineStart;\n    for (; pos <= position && isWhiteSpaceSingleLine(text.charCodeAt(pos)); pos++)\n      ;\n    return text.slice(lineStart, pos);\n  }\n  function parameterDocComments(parameters, isJavaScriptFile, indentationStr, newLine) {\n    return parameters.map(({ name, dotDotDotToken }, i) => {\n      const paramName = name.kind === 79 ? name.text : \"param\" + i;\n      const type = isJavaScriptFile ? dotDotDotToken ? \"{...any} \" : \"{any} \" : \"\";\n      return `${indentationStr} * @param ${type}${paramName}${newLine}`;\n    }).join(\"\");\n  }\n  function returnsDocComment(indentationStr, newLine) {\n    return `${indentationStr} * @returns${newLine}`;\n  }\n  function getCommentOwnerInfo(tokenAtPos, options) {\n    return forEachAncestor(tokenAtPos, (n) => getCommentOwnerInfoWorker(n, options));\n  }\n  function getCommentOwnerInfoWorker(commentOwner, options) {\n    switch (commentOwner.kind) {\n      case 259:\n      case 215:\n      case 171:\n      case 173:\n      case 170:\n      case 216:\n        const host = commentOwner;\n        return { commentOwner, parameters: host.parameters, hasReturn: hasReturn(host, options) };\n      case 299:\n        return getCommentOwnerInfoWorker(commentOwner.initializer, options);\n      case 260:\n      case 261:\n      case 263:\n      case 302:\n      case 262:\n        return { commentOwner };\n      case 168: {\n        const host2 = commentOwner;\n        return host2.type && isFunctionTypeNode(host2.type) ? { commentOwner, parameters: host2.type.parameters, hasReturn: hasReturn(host2.type, options) } : { commentOwner };\n      }\n      case 240: {\n        const varStatement = commentOwner;\n        const varDeclarations = varStatement.declarationList.declarations;\n        const host2 = varDeclarations.length === 1 && varDeclarations[0].initializer ? getRightHandSideOfAssignment(varDeclarations[0].initializer) : void 0;\n        return host2 ? { commentOwner, parameters: host2.parameters, hasReturn: hasReturn(host2, options) } : { commentOwner };\n      }\n      case 308:\n        return \"quit\";\n      case 264:\n        return commentOwner.parent.kind === 264 ? void 0 : { commentOwner };\n      case 241:\n        return getCommentOwnerInfoWorker(commentOwner.expression, options);\n      case 223: {\n        const be = commentOwner;\n        if (getAssignmentDeclarationKind(be) === 0) {\n          return \"quit\";\n        }\n        return isFunctionLike(be.right) ? { commentOwner, parameters: be.right.parameters, hasReturn: hasReturn(be.right, options) } : { commentOwner };\n      }\n      case 169:\n        const init = commentOwner.initializer;\n        if (init && (isFunctionExpression(init) || isArrowFunction(init))) {\n          return { commentOwner, parameters: init.parameters, hasReturn: hasReturn(init, options) };\n        }\n    }\n  }\n  function hasReturn(node, options) {\n    return !!(options == null ? void 0 : options.generateReturnInDocTemplate) && (isFunctionTypeNode(node) || isArrowFunction(node) && isExpression(node.body) || isFunctionLikeDeclaration(node) && node.body && isBlock(node.body) && !!forEachReturnStatement(node.body, (n) => n));\n  }\n  function getRightHandSideOfAssignment(rightHandSide) {\n    while (rightHandSide.kind === 214) {\n      rightHandSide = rightHandSide.expression;\n    }\n    switch (rightHandSide.kind) {\n      case 215:\n      case 216:\n        return rightHandSide;\n      case 228:\n        return find(rightHandSide.members, isConstructorDeclaration);\n    }\n  }\n  var jsDocTagNames, jsDocTagNameCompletionEntries, jsDocTagCompletionEntries, getJSDocTagNameCompletionDetails;\n  var init_jsDoc = __esm({\n    \"src/services/jsDoc.ts\"() {\n      \"use strict\";\n      init_ts4();\n      jsDocTagNames = [\n        \"abstract\",\n        \"access\",\n        \"alias\",\n        \"argument\",\n        \"async\",\n        \"augments\",\n        \"author\",\n        \"borrows\",\n        \"callback\",\n        \"class\",\n        \"classdesc\",\n        \"constant\",\n        \"constructor\",\n        \"constructs\",\n        \"copyright\",\n        \"default\",\n        \"deprecated\",\n        \"description\",\n        \"emits\",\n        \"enum\",\n        \"event\",\n        \"example\",\n        \"exports\",\n        \"extends\",\n        \"external\",\n        \"field\",\n        \"file\",\n        \"fileoverview\",\n        \"fires\",\n        \"function\",\n        \"generator\",\n        \"global\",\n        \"hideconstructor\",\n        \"host\",\n        \"ignore\",\n        \"implements\",\n        \"inheritdoc\",\n        \"inner\",\n        \"instance\",\n        \"interface\",\n        \"kind\",\n        \"lends\",\n        \"license\",\n        \"link\",\n        \"linkcode\",\n        \"linkplain\",\n        \"listens\",\n        \"member\",\n        \"memberof\",\n        \"method\",\n        \"mixes\",\n        \"module\",\n        \"name\",\n        \"namespace\",\n        \"overload\",\n        \"override\",\n        \"package\",\n        \"param\",\n        \"private\",\n        \"prop\",\n        \"property\",\n        \"protected\",\n        \"public\",\n        \"readonly\",\n        \"requires\",\n        \"returns\",\n        \"satisfies\",\n        \"see\",\n        \"since\",\n        \"static\",\n        \"summary\",\n        \"template\",\n        \"this\",\n        \"throws\",\n        \"todo\",\n        \"tutorial\",\n        \"type\",\n        \"typedef\",\n        \"var\",\n        \"variation\",\n        \"version\",\n        \"virtual\",\n        \"yields\"\n      ];\n      getJSDocTagNameCompletionDetails = getJSDocTagCompletionDetails;\n    }\n  });\n  var ts_JsDoc_exports = {};\n  __export2(ts_JsDoc_exports, {\n    getDocCommentTemplateAtPosition: () => getDocCommentTemplateAtPosition,\n    getJSDocParameterNameCompletionDetails: () => getJSDocParameterNameCompletionDetails,\n    getJSDocParameterNameCompletions: () => getJSDocParameterNameCompletions,\n    getJSDocTagCompletionDetails: () => getJSDocTagCompletionDetails,\n    getJSDocTagCompletions: () => getJSDocTagCompletions,\n    getJSDocTagNameCompletionDetails: () => getJSDocTagNameCompletionDetails,\n    getJSDocTagNameCompletions: () => getJSDocTagNameCompletions,\n    getJsDocCommentsFromDeclarations: () => getJsDocCommentsFromDeclarations,\n    getJsDocTagsFromDeclarations: () => getJsDocTagsFromDeclarations\n  });\n  var init_ts_JsDoc = __esm({\n    \"src/services/_namespaces/ts.JsDoc.ts\"() {\n      \"use strict\";\n      init_jsDoc();\n    }\n  });\n  function organizeImports(sourceFile, formatContext, host, program, preferences, mode) {\n    const changeTracker = ts_textChanges_exports.ChangeTracker.fromContext({ host, formatContext, preferences });\n    const shouldSort = mode === \"SortAndCombine\" || mode === \"All\";\n    const shouldCombine = shouldSort;\n    const shouldRemove = mode === \"RemoveUnused\" || mode === \"All\";\n    const topLevelImportGroupDecls = groupImportsByNewlineContiguous(sourceFile, sourceFile.statements.filter(isImportDeclaration));\n    const comparer = getOrganizeImportsComparerWithDetection(preferences, shouldSort ? () => detectSortingWorker(topLevelImportGroupDecls, preferences) === 2 : void 0);\n    const processImportsOfSameModuleSpecifier = (importGroup) => {\n      if (shouldRemove)\n        importGroup = removeUnusedImports(importGroup, sourceFile, program);\n      if (shouldCombine)\n        importGroup = coalesceImportsWorker(importGroup, comparer, sourceFile);\n      if (shouldSort)\n        importGroup = stableSort(importGroup, (s1, s2) => compareImportsOrRequireStatements(s1, s2, comparer));\n      return importGroup;\n    };\n    topLevelImportGroupDecls.forEach((importGroupDecl) => organizeImportsWorker(importGroupDecl, processImportsOfSameModuleSpecifier));\n    if (mode !== \"RemoveUnused\") {\n      const topLevelExportDecls = sourceFile.statements.filter(isExportDeclaration);\n      organizeImportsWorker(topLevelExportDecls, (group2) => coalesceExportsWorker(group2, comparer));\n    }\n    for (const ambientModule of sourceFile.statements.filter(isAmbientModule)) {\n      if (!ambientModule.body)\n        continue;\n      const ambientModuleImportGroupDecls = groupImportsByNewlineContiguous(sourceFile, ambientModule.body.statements.filter(isImportDeclaration));\n      ambientModuleImportGroupDecls.forEach((importGroupDecl) => organizeImportsWorker(importGroupDecl, processImportsOfSameModuleSpecifier));\n      if (mode !== \"RemoveUnused\") {\n        const ambientModuleExportDecls = ambientModule.body.statements.filter(isExportDeclaration);\n        organizeImportsWorker(ambientModuleExportDecls, (group2) => coalesceExportsWorker(group2, comparer));\n      }\n    }\n    return changeTracker.getChanges();\n    function organizeImportsWorker(oldImportDecls, coalesce) {\n      if (length(oldImportDecls) === 0) {\n        return;\n      }\n      suppressLeadingTrivia(oldImportDecls[0]);\n      const oldImportGroups = shouldCombine ? group(oldImportDecls, (importDecl) => getExternalModuleName2(importDecl.moduleSpecifier)) : [oldImportDecls];\n      const sortedImportGroups = shouldSort ? stableSort(oldImportGroups, (group1, group2) => compareModuleSpecifiersWorker(group1[0].moduleSpecifier, group2[0].moduleSpecifier, comparer)) : oldImportGroups;\n      const newImportDecls = flatMap(sortedImportGroups, (importGroup) => getExternalModuleName2(importGroup[0].moduleSpecifier) ? coalesce(importGroup) : importGroup);\n      if (newImportDecls.length === 0) {\n        changeTracker.deleteNodes(sourceFile, oldImportDecls, {\n          leadingTriviaOption: ts_textChanges_exports.LeadingTriviaOption.Exclude,\n          trailingTriviaOption: ts_textChanges_exports.TrailingTriviaOption.Include\n        }, true);\n      } else {\n        const replaceOptions = {\n          leadingTriviaOption: ts_textChanges_exports.LeadingTriviaOption.Exclude,\n          trailingTriviaOption: ts_textChanges_exports.TrailingTriviaOption.Include,\n          suffix: getNewLineOrDefaultFromHost(host, formatContext.options)\n        };\n        changeTracker.replaceNodeWithNodes(sourceFile, oldImportDecls[0], newImportDecls, replaceOptions);\n        const hasTrailingComment = changeTracker.nodeHasTrailingComment(sourceFile, oldImportDecls[0], replaceOptions);\n        changeTracker.deleteNodes(sourceFile, oldImportDecls.slice(1), {\n          trailingTriviaOption: ts_textChanges_exports.TrailingTriviaOption.Include\n        }, hasTrailingComment);\n      }\n    }\n  }\n  function groupImportsByNewlineContiguous(sourceFile, importDecls) {\n    const scanner2 = createScanner(sourceFile.languageVersion, false, sourceFile.languageVariant);\n    const groupImports = [];\n    let groupIndex = 0;\n    for (const topLevelImportDecl of importDecls) {\n      if (groupImports[groupIndex] && isNewGroup(sourceFile, topLevelImportDecl, scanner2)) {\n        groupIndex++;\n      }\n      if (!groupImports[groupIndex]) {\n        groupImports[groupIndex] = [];\n      }\n      groupImports[groupIndex].push(topLevelImportDecl);\n    }\n    return groupImports;\n  }\n  function isNewGroup(sourceFile, topLevelImportDecl, scanner2) {\n    const startPos = topLevelImportDecl.getFullStart();\n    const endPos = topLevelImportDecl.getStart();\n    scanner2.setText(sourceFile.text, startPos, endPos - startPos);\n    let numberOfNewLines = 0;\n    while (scanner2.getTokenPos() < endPos) {\n      const tokenKind = scanner2.scan();\n      if (tokenKind === 4) {\n        numberOfNewLines++;\n        if (numberOfNewLines >= 2) {\n          return true;\n        }\n      }\n    }\n    return false;\n  }\n  function removeUnusedImports(oldImports, sourceFile, program) {\n    const typeChecker = program.getTypeChecker();\n    const compilerOptions = program.getCompilerOptions();\n    const jsxNamespace = typeChecker.getJsxNamespace(sourceFile);\n    const jsxFragmentFactory = typeChecker.getJsxFragmentFactory(sourceFile);\n    const jsxElementsPresent = !!(sourceFile.transformFlags & 2);\n    const usedImports = [];\n    for (const importDecl of oldImports) {\n      const { importClause, moduleSpecifier } = importDecl;\n      if (!importClause) {\n        usedImports.push(importDecl);\n        continue;\n      }\n      let { name, namedBindings } = importClause;\n      if (name && !isDeclarationUsed(name)) {\n        name = void 0;\n      }\n      if (namedBindings) {\n        if (isNamespaceImport(namedBindings)) {\n          if (!isDeclarationUsed(namedBindings.name)) {\n            namedBindings = void 0;\n          }\n        } else {\n          const newElements = namedBindings.elements.filter((e) => isDeclarationUsed(e.name));\n          if (newElements.length < namedBindings.elements.length) {\n            namedBindings = newElements.length ? factory.updateNamedImports(namedBindings, newElements) : void 0;\n          }\n        }\n      }\n      if (name || namedBindings) {\n        usedImports.push(updateImportDeclarationAndClause(importDecl, name, namedBindings));\n      } else if (hasModuleDeclarationMatchingSpecifier(sourceFile, moduleSpecifier)) {\n        if (sourceFile.isDeclarationFile) {\n          usedImports.push(factory.createImportDeclaration(importDecl.modifiers, void 0, moduleSpecifier, void 0));\n        } else {\n          usedImports.push(importDecl);\n        }\n      }\n    }\n    return usedImports;\n    function isDeclarationUsed(identifier) {\n      return jsxElementsPresent && (identifier.text === jsxNamespace || jsxFragmentFactory && identifier.text === jsxFragmentFactory) && jsxModeNeedsExplicitImport(compilerOptions.jsx) || ts_FindAllReferences_exports.Core.isSymbolReferencedInFile(identifier, typeChecker, sourceFile);\n    }\n  }\n  function hasModuleDeclarationMatchingSpecifier(sourceFile, moduleSpecifier) {\n    const moduleSpecifierText = isStringLiteral(moduleSpecifier) && moduleSpecifier.text;\n    return isString(moduleSpecifierText) && some(sourceFile.moduleAugmentations, (moduleName) => isStringLiteral(moduleName) && moduleName.text === moduleSpecifierText);\n  }\n  function getExternalModuleName2(specifier) {\n    return specifier !== void 0 && isStringLiteralLike(specifier) ? specifier.text : void 0;\n  }\n  function coalesceImports(importGroup, ignoreCase, sourceFile) {\n    const comparer = getOrganizeImportsOrdinalStringComparer(ignoreCase);\n    return coalesceImportsWorker(importGroup, comparer, sourceFile);\n  }\n  function coalesceImportsWorker(importGroup, comparer, sourceFile) {\n    if (importGroup.length === 0) {\n      return importGroup;\n    }\n    const { importWithoutClause, typeOnlyImports, regularImports } = getCategorizedImports(importGroup);\n    const coalescedImports = [];\n    if (importWithoutClause) {\n      coalescedImports.push(importWithoutClause);\n    }\n    for (const group2 of [regularImports, typeOnlyImports]) {\n      const isTypeOnly = group2 === typeOnlyImports;\n      const { defaultImports, namespaceImports, namedImports } = group2;\n      if (!isTypeOnly && defaultImports.length === 1 && namespaceImports.length === 1 && namedImports.length === 0) {\n        const defaultImport = defaultImports[0];\n        coalescedImports.push(updateImportDeclarationAndClause(defaultImport, defaultImport.importClause.name, namespaceImports[0].importClause.namedBindings));\n        continue;\n      }\n      const sortedNamespaceImports = stableSort(namespaceImports, (i1, i2) => comparer(i1.importClause.namedBindings.name.text, i2.importClause.namedBindings.name.text));\n      for (const namespaceImport of sortedNamespaceImports) {\n        coalescedImports.push(updateImportDeclarationAndClause(namespaceImport, void 0, namespaceImport.importClause.namedBindings));\n      }\n      const firstDefaultImport = firstOrUndefined(defaultImports);\n      const firstNamedImport = firstOrUndefined(namedImports);\n      const importDecl = firstDefaultImport != null ? firstDefaultImport : firstNamedImport;\n      if (!importDecl) {\n        continue;\n      }\n      let newDefaultImport;\n      const newImportSpecifiers = [];\n      if (defaultImports.length === 1) {\n        newDefaultImport = defaultImports[0].importClause.name;\n      } else {\n        for (const defaultImport of defaultImports) {\n          newImportSpecifiers.push(factory.createImportSpecifier(false, factory.createIdentifier(\"default\"), defaultImport.importClause.name));\n        }\n      }\n      newImportSpecifiers.push(...getNewImportSpecifiers(namedImports));\n      const sortedImportSpecifiers = factory.createNodeArray(sortSpecifiers(newImportSpecifiers, comparer), firstNamedImport == null ? void 0 : firstNamedImport.importClause.namedBindings.elements.hasTrailingComma);\n      const newNamedImports = sortedImportSpecifiers.length === 0 ? newDefaultImport ? void 0 : factory.createNamedImports(emptyArray) : firstNamedImport ? factory.updateNamedImports(firstNamedImport.importClause.namedBindings, sortedImportSpecifiers) : factory.createNamedImports(sortedImportSpecifiers);\n      if (sourceFile && newNamedImports && (firstNamedImport == null ? void 0 : firstNamedImport.importClause.namedBindings) && !rangeIsOnSingleLine(firstNamedImport.importClause.namedBindings, sourceFile)) {\n        setEmitFlags(newNamedImports, 2);\n      }\n      if (isTypeOnly && newDefaultImport && newNamedImports) {\n        coalescedImports.push(updateImportDeclarationAndClause(importDecl, newDefaultImport, void 0));\n        coalescedImports.push(updateImportDeclarationAndClause(firstNamedImport != null ? firstNamedImport : importDecl, void 0, newNamedImports));\n      } else {\n        coalescedImports.push(updateImportDeclarationAndClause(importDecl, newDefaultImport, newNamedImports));\n      }\n    }\n    return coalescedImports;\n  }\n  function getCategorizedImports(importGroup) {\n    let importWithoutClause;\n    const typeOnlyImports = { defaultImports: [], namespaceImports: [], namedImports: [] };\n    const regularImports = { defaultImports: [], namespaceImports: [], namedImports: [] };\n    for (const importDeclaration of importGroup) {\n      if (importDeclaration.importClause === void 0) {\n        importWithoutClause = importWithoutClause || importDeclaration;\n        continue;\n      }\n      const group2 = importDeclaration.importClause.isTypeOnly ? typeOnlyImports : regularImports;\n      const { name, namedBindings } = importDeclaration.importClause;\n      if (name) {\n        group2.defaultImports.push(importDeclaration);\n      }\n      if (namedBindings) {\n        if (isNamespaceImport(namedBindings)) {\n          group2.namespaceImports.push(importDeclaration);\n        } else {\n          group2.namedImports.push(importDeclaration);\n        }\n      }\n    }\n    return {\n      importWithoutClause,\n      typeOnlyImports,\n      regularImports\n    };\n  }\n  function coalesceExports(exportGroup, ignoreCase) {\n    const comparer = getOrganizeImportsOrdinalStringComparer(ignoreCase);\n    return coalesceExportsWorker(exportGroup, comparer);\n  }\n  function coalesceExportsWorker(exportGroup, comparer) {\n    if (exportGroup.length === 0) {\n      return exportGroup;\n    }\n    const { exportWithoutClause, namedExports, typeOnlyExports } = getCategorizedExports(exportGroup);\n    const coalescedExports = [];\n    if (exportWithoutClause) {\n      coalescedExports.push(exportWithoutClause);\n    }\n    for (const exportGroup2 of [namedExports, typeOnlyExports]) {\n      if (exportGroup2.length === 0) {\n        continue;\n      }\n      const newExportSpecifiers = [];\n      newExportSpecifiers.push(...flatMap(exportGroup2, (i) => i.exportClause && isNamedExports(i.exportClause) ? i.exportClause.elements : emptyArray));\n      const sortedExportSpecifiers = sortSpecifiers(newExportSpecifiers, comparer);\n      const exportDecl = exportGroup2[0];\n      coalescedExports.push(factory.updateExportDeclaration(exportDecl, exportDecl.modifiers, exportDecl.isTypeOnly, exportDecl.exportClause && (isNamedExports(exportDecl.exportClause) ? factory.updateNamedExports(exportDecl.exportClause, sortedExportSpecifiers) : factory.updateNamespaceExport(exportDecl.exportClause, exportDecl.exportClause.name)), exportDecl.moduleSpecifier, exportDecl.assertClause));\n    }\n    return coalescedExports;\n    function getCategorizedExports(exportGroup2) {\n      let exportWithoutClause2;\n      const namedExports2 = [];\n      const typeOnlyExports2 = [];\n      for (const exportDeclaration of exportGroup2) {\n        if (exportDeclaration.exportClause === void 0) {\n          exportWithoutClause2 = exportWithoutClause2 || exportDeclaration;\n        } else if (exportDeclaration.isTypeOnly) {\n          typeOnlyExports2.push(exportDeclaration);\n        } else {\n          namedExports2.push(exportDeclaration);\n        }\n      }\n      return {\n        exportWithoutClause: exportWithoutClause2,\n        namedExports: namedExports2,\n        typeOnlyExports: typeOnlyExports2\n      };\n    }\n  }\n  function updateImportDeclarationAndClause(importDeclaration, name, namedBindings) {\n    return factory.updateImportDeclaration(importDeclaration, importDeclaration.modifiers, factory.updateImportClause(importDeclaration.importClause, importDeclaration.importClause.isTypeOnly, name, namedBindings), importDeclaration.moduleSpecifier, importDeclaration.assertClause);\n  }\n  function sortSpecifiers(specifiers, comparer) {\n    return stableSort(specifiers, (s1, s2) => compareImportOrExportSpecifiers(s1, s2, comparer));\n  }\n  function compareImportOrExportSpecifiers(s1, s2, comparer) {\n    return compareBooleans(s1.isTypeOnly, s2.isTypeOnly) || comparer(s1.name.text, s2.name.text);\n  }\n  function compareModuleSpecifiers2(m1, m2, ignoreCase) {\n    const comparer = getOrganizeImportsOrdinalStringComparer(!!ignoreCase);\n    return compareModuleSpecifiersWorker(m1, m2, comparer);\n  }\n  function compareModuleSpecifiersWorker(m1, m2, comparer) {\n    const name1 = m1 === void 0 ? void 0 : getExternalModuleName2(m1);\n    const name2 = m2 === void 0 ? void 0 : getExternalModuleName2(m2);\n    return compareBooleans(name1 === void 0, name2 === void 0) || compareBooleans(isExternalModuleNameRelative(name1), isExternalModuleNameRelative(name2)) || comparer(name1, name2);\n  }\n  function getModuleSpecifierExpression(declaration) {\n    var _a2;\n    switch (declaration.kind) {\n      case 268:\n        return (_a2 = tryCast(declaration.moduleReference, isExternalModuleReference)) == null ? void 0 : _a2.expression;\n      case 269:\n        return declaration.moduleSpecifier;\n      case 240:\n        return declaration.declarationList.declarations[0].initializer.arguments[0];\n    }\n  }\n  function detectSorting(sourceFile, preferences) {\n    return detectSortingWorker(groupImportsByNewlineContiguous(sourceFile, sourceFile.statements.filter(isImportDeclaration)), preferences);\n  }\n  function detectSortingWorker(importGroups, preferences) {\n    const collateCaseSensitive = getOrganizeImportsComparer(preferences, false);\n    const collateCaseInsensitive = getOrganizeImportsComparer(preferences, true);\n    let sortState = 3;\n    let seenUnsortedGroup = false;\n    for (const importGroup of importGroups) {\n      if (importGroup.length > 1) {\n        const moduleSpecifierSort = detectSortCaseSensitivity(importGroup, (i) => {\n          var _a2, _b;\n          return (_b = (_a2 = tryCast(i.moduleSpecifier, isStringLiteral)) == null ? void 0 : _a2.text) != null ? _b : \"\";\n        }, collateCaseSensitive, collateCaseInsensitive);\n        if (moduleSpecifierSort) {\n          sortState &= moduleSpecifierSort;\n          seenUnsortedGroup = true;\n        }\n        if (!sortState) {\n          return sortState;\n        }\n      }\n      const declarationWithNamedImports = find(importGroup, (i) => {\n        var _a2, _b;\n        return ((_b = tryCast((_a2 = i.importClause) == null ? void 0 : _a2.namedBindings, isNamedImports)) == null ? void 0 : _b.elements.length) > 1;\n      });\n      if (declarationWithNamedImports) {\n        const namedImportSort = detectImportSpecifierSorting(declarationWithNamedImports.importClause.namedBindings.elements, preferences);\n        if (namedImportSort) {\n          sortState &= namedImportSort;\n          seenUnsortedGroup = true;\n        }\n        if (!sortState) {\n          return sortState;\n        }\n      }\n      if (sortState !== 3) {\n        return sortState;\n      }\n    }\n    return seenUnsortedGroup ? 0 : sortState;\n  }\n  function detectImportDeclarationSorting(imports, preferences) {\n    const collateCaseSensitive = getOrganizeImportsComparer(preferences, false);\n    const collateCaseInsensitive = getOrganizeImportsComparer(preferences, true);\n    return detectSortCaseSensitivity(imports, (s) => getExternalModuleName2(getModuleSpecifierExpression(s)) || \"\", collateCaseSensitive, collateCaseInsensitive);\n  }\n  function getImportDeclarationInsertionIndex(sortedImports, newImport, comparer) {\n    const index = binarySearch(sortedImports, newImport, identity, (a, b) => compareImportsOrRequireStatements(a, b, comparer));\n    return index < 0 ? ~index : index;\n  }\n  function getImportSpecifierInsertionIndex(sortedImports, newImport, comparer) {\n    const index = binarySearch(sortedImports, newImport, identity, (s1, s2) => compareImportOrExportSpecifiers(s1, s2, comparer));\n    return index < 0 ? ~index : index;\n  }\n  function compareImportsOrRequireStatements(s1, s2, comparer) {\n    return compareModuleSpecifiersWorker(getModuleSpecifierExpression(s1), getModuleSpecifierExpression(s2), comparer) || compareImportKind(s1, s2);\n  }\n  function compareImportKind(s1, s2) {\n    return compareValues(getImportKindOrder(s1), getImportKindOrder(s2));\n  }\n  function getImportKindOrder(s1) {\n    var _a2;\n    switch (s1.kind) {\n      case 269:\n        if (!s1.importClause)\n          return 0;\n        if (s1.importClause.isTypeOnly)\n          return 1;\n        if (((_a2 = s1.importClause.namedBindings) == null ? void 0 : _a2.kind) === 271)\n          return 2;\n        if (s1.importClause.name)\n          return 3;\n        return 4;\n      case 268:\n        return 5;\n      case 240:\n        return 6;\n    }\n  }\n  function getNewImportSpecifiers(namedImports) {\n    return flatMap(namedImports, (namedImport) => map(tryGetNamedBindingElements(namedImport), (importSpecifier) => importSpecifier.name && importSpecifier.propertyName && importSpecifier.name.escapedText === importSpecifier.propertyName.escapedText ? factory.updateImportSpecifier(importSpecifier, importSpecifier.isTypeOnly, void 0, importSpecifier.name) : importSpecifier));\n  }\n  function tryGetNamedBindingElements(namedImport) {\n    var _a2;\n    return ((_a2 = namedImport.importClause) == null ? void 0 : _a2.namedBindings) && isNamedImports(namedImport.importClause.namedBindings) ? namedImport.importClause.namedBindings.elements : void 0;\n  }\n  function getOrganizeImportsOrdinalStringComparer(ignoreCase) {\n    return ignoreCase ? compareStringsCaseInsensitiveEslintCompatible : compareStringsCaseSensitive;\n  }\n  function getOrganizeImportsUnicodeStringComparer(ignoreCase, preferences) {\n    var _a2, _b, _c;\n    const resolvedLocale = getOrganizeImportsLocale(preferences);\n    const caseFirst = (_a2 = preferences.organizeImportsCaseFirst) != null ? _a2 : false;\n    const numeric = (_b = preferences.organizeImportsNumericCollation) != null ? _b : false;\n    const accents = (_c = preferences.organizeImportsAccentCollation) != null ? _c : true;\n    const sensitivity = ignoreCase ? accents ? \"accent\" : \"base\" : accents ? \"variant\" : \"case\";\n    const collator = new Intl.Collator(resolvedLocale, {\n      usage: \"sort\",\n      caseFirst: caseFirst || \"false\",\n      sensitivity,\n      numeric\n    });\n    return collator.compare;\n  }\n  function getOrganizeImportsLocale(preferences) {\n    let locale = preferences.organizeImportsLocale;\n    if (locale === \"auto\")\n      locale = getUILocale();\n    if (locale === void 0)\n      locale = \"en\";\n    const supportedLocales = Intl.Collator.supportedLocalesOf(locale);\n    const resolvedLocale = supportedLocales.length ? supportedLocales[0] : \"en\";\n    return resolvedLocale;\n  }\n  function getOrganizeImportsComparer(preferences, ignoreCase) {\n    var _a2;\n    const collation = (_a2 = preferences.organizeImportsCollation) != null ? _a2 : \"ordinal\";\n    return collation === \"unicode\" ? getOrganizeImportsUnicodeStringComparer(ignoreCase, preferences) : getOrganizeImportsOrdinalStringComparer(ignoreCase);\n  }\n  function getOrganizeImportsComparerWithDetection(preferences, detectIgnoreCase) {\n    var _a2;\n    const ignoreCase = typeof preferences.organizeImportsIgnoreCase === \"boolean\" ? preferences.organizeImportsIgnoreCase : (_a2 = detectIgnoreCase == null ? void 0 : detectIgnoreCase()) != null ? _a2 : false;\n    return getOrganizeImportsComparer(preferences, ignoreCase);\n  }\n  var ImportSpecifierSortingCache, detectImportSpecifierSorting;\n  var init_organizeImports = __esm({\n    \"src/services/organizeImports.ts\"() {\n      \"use strict\";\n      init_ts4();\n      ImportSpecifierSortingCache = class {\n        has([specifiers, preferences]) {\n          if (this._lastPreferences !== preferences || !this._cache)\n            return false;\n          return this._cache.has(specifiers);\n        }\n        get([specifiers, preferences]) {\n          if (this._lastPreferences !== preferences || !this._cache)\n            return void 0;\n          return this._cache.get(specifiers);\n        }\n        set([specifiers, preferences], value) {\n          var _a2;\n          if (this._lastPreferences !== preferences) {\n            this._lastPreferences = preferences;\n            this._cache = void 0;\n          }\n          (_a2 = this._cache) != null ? _a2 : this._cache = /* @__PURE__ */ new WeakMap();\n          this._cache.set(specifiers, value);\n        }\n      };\n      detectImportSpecifierSorting = memoizeCached((specifiers, preferences) => {\n        if (!arrayIsSorted(specifiers, (s1, s2) => compareBooleans(s1.isTypeOnly, s2.isTypeOnly))) {\n          return 0;\n        }\n        const collateCaseSensitive = getOrganizeImportsComparer(preferences, false);\n        const collateCaseInsensitive = getOrganizeImportsComparer(preferences, true);\n        return detectSortCaseSensitivity(specifiers, (specifier) => specifier.name.text, collateCaseSensitive, collateCaseInsensitive);\n      }, new ImportSpecifierSortingCache());\n    }\n  });\n  var ts_OrganizeImports_exports = {};\n  __export2(ts_OrganizeImports_exports, {\n    coalesceExports: () => coalesceExports,\n    coalesceImports: () => coalesceImports,\n    compareImportOrExportSpecifiers: () => compareImportOrExportSpecifiers,\n    compareImportsOrRequireStatements: () => compareImportsOrRequireStatements,\n    compareModuleSpecifiers: () => compareModuleSpecifiers2,\n    detectImportDeclarationSorting: () => detectImportDeclarationSorting,\n    detectImportSpecifierSorting: () => detectImportSpecifierSorting,\n    detectSorting: () => detectSorting,\n    getImportDeclarationInsertionIndex: () => getImportDeclarationInsertionIndex,\n    getImportSpecifierInsertionIndex: () => getImportSpecifierInsertionIndex,\n    getOrganizeImportsComparer: () => getOrganizeImportsComparer,\n    organizeImports: () => organizeImports\n  });\n  var init_ts_OrganizeImports = __esm({\n    \"src/services/_namespaces/ts.OrganizeImports.ts\"() {\n      \"use strict\";\n      init_organizeImports();\n    }\n  });\n  function collectElements(sourceFile, cancellationToken) {\n    const res = [];\n    addNodeOutliningSpans(sourceFile, cancellationToken, res);\n    addRegionOutliningSpans(sourceFile, res);\n    return res.sort((span1, span2) => span1.textSpan.start - span2.textSpan.start);\n  }\n  function addNodeOutliningSpans(sourceFile, cancellationToken, out) {\n    let depthRemaining = 40;\n    let current = 0;\n    const statements = [...sourceFile.statements, sourceFile.endOfFileToken];\n    const n = statements.length;\n    while (current < n) {\n      while (current < n && !isAnyImportSyntax(statements[current])) {\n        visitNode3(statements[current]);\n        current++;\n      }\n      if (current === n)\n        break;\n      const firstImport = current;\n      while (current < n && isAnyImportSyntax(statements[current])) {\n        visitNode3(statements[current]);\n        current++;\n      }\n      const lastImport = current - 1;\n      if (lastImport !== firstImport) {\n        out.push(createOutliningSpanFromBounds(findChildOfKind(statements[firstImport], 100, sourceFile).getStart(sourceFile), statements[lastImport].getEnd(), \"imports\"));\n      }\n    }\n    function visitNode3(n2) {\n      var _a2;\n      if (depthRemaining === 0)\n        return;\n      cancellationToken.throwIfCancellationRequested();\n      if (isDeclaration(n2) || isVariableStatement(n2) || isReturnStatement(n2) || isCallOrNewExpression(n2) || n2.kind === 1) {\n        addOutliningForLeadingCommentsForNode(n2, sourceFile, cancellationToken, out);\n      }\n      if (isFunctionLike(n2) && isBinaryExpression(n2.parent) && isPropertyAccessExpression(n2.parent.left)) {\n        addOutliningForLeadingCommentsForNode(n2.parent.left, sourceFile, cancellationToken, out);\n      }\n      if (isBlock(n2) || isModuleBlock(n2)) {\n        addOutliningForLeadingCommentsForPos(n2.statements.end, sourceFile, cancellationToken, out);\n      }\n      if (isClassLike(n2) || isInterfaceDeclaration(n2)) {\n        addOutliningForLeadingCommentsForPos(n2.members.end, sourceFile, cancellationToken, out);\n      }\n      const span = getOutliningSpanForNode(n2, sourceFile);\n      if (span)\n        out.push(span);\n      depthRemaining--;\n      if (isCallExpression(n2)) {\n        depthRemaining++;\n        visitNode3(n2.expression);\n        depthRemaining--;\n        n2.arguments.forEach(visitNode3);\n        (_a2 = n2.typeArguments) == null ? void 0 : _a2.forEach(visitNode3);\n      } else if (isIfStatement(n2) && n2.elseStatement && isIfStatement(n2.elseStatement)) {\n        visitNode3(n2.expression);\n        visitNode3(n2.thenStatement);\n        depthRemaining++;\n        visitNode3(n2.elseStatement);\n        depthRemaining--;\n      } else {\n        n2.forEachChild(visitNode3);\n      }\n      depthRemaining++;\n    }\n  }\n  function addRegionOutliningSpans(sourceFile, out) {\n    const regions = [];\n    const lineStarts = sourceFile.getLineStarts();\n    for (const currentLineStart of lineStarts) {\n      const lineEnd = sourceFile.getLineEndOfPosition(currentLineStart);\n      const lineText = sourceFile.text.substring(currentLineStart, lineEnd);\n      const result = isRegionDelimiter(lineText);\n      if (!result || isInComment(sourceFile, currentLineStart)) {\n        continue;\n      }\n      if (!result[1]) {\n        const span = createTextSpanFromBounds(sourceFile.text.indexOf(\"//\", currentLineStart), lineEnd);\n        regions.push(createOutliningSpan(span, \"region\", span, false, result[2] || \"#region\"));\n      } else {\n        const region = regions.pop();\n        if (region) {\n          region.textSpan.length = lineEnd - region.textSpan.start;\n          region.hintSpan.length = lineEnd - region.textSpan.start;\n          out.push(region);\n        }\n      }\n    }\n  }\n  function isRegionDelimiter(lineText) {\n    lineText = trimStringStart(lineText);\n    if (!startsWith(lineText, \"//\")) {\n      return null;\n    }\n    lineText = trimString(lineText.slice(2));\n    return regionDelimiterRegExp.exec(lineText);\n  }\n  function addOutliningForLeadingCommentsForPos(pos, sourceFile, cancellationToken, out) {\n    const comments = getLeadingCommentRanges(sourceFile.text, pos);\n    if (!comments)\n      return;\n    let firstSingleLineCommentStart = -1;\n    let lastSingleLineCommentEnd = -1;\n    let singleLineCommentCount = 0;\n    const sourceText = sourceFile.getFullText();\n    for (const { kind, pos: pos2, end } of comments) {\n      cancellationToken.throwIfCancellationRequested();\n      switch (kind) {\n        case 2:\n          const commentText = sourceText.slice(pos2, end);\n          if (isRegionDelimiter(commentText)) {\n            combineAndAddMultipleSingleLineComments();\n            singleLineCommentCount = 0;\n            break;\n          }\n          if (singleLineCommentCount === 0) {\n            firstSingleLineCommentStart = pos2;\n          }\n          lastSingleLineCommentEnd = end;\n          singleLineCommentCount++;\n          break;\n        case 3:\n          combineAndAddMultipleSingleLineComments();\n          out.push(createOutliningSpanFromBounds(pos2, end, \"comment\"));\n          singleLineCommentCount = 0;\n          break;\n        default:\n          Debug.assertNever(kind);\n      }\n    }\n    combineAndAddMultipleSingleLineComments();\n    function combineAndAddMultipleSingleLineComments() {\n      if (singleLineCommentCount > 1) {\n        out.push(createOutliningSpanFromBounds(firstSingleLineCommentStart, lastSingleLineCommentEnd, \"comment\"));\n      }\n    }\n  }\n  function addOutliningForLeadingCommentsForNode(n, sourceFile, cancellationToken, out) {\n    if (isJsxText(n))\n      return;\n    addOutliningForLeadingCommentsForPos(n.pos, sourceFile, cancellationToken, out);\n  }\n  function createOutliningSpanFromBounds(pos, end, kind) {\n    return createOutliningSpan(createTextSpanFromBounds(pos, end), kind);\n  }\n  function getOutliningSpanForNode(n, sourceFile) {\n    switch (n.kind) {\n      case 238:\n        if (isFunctionLike(n.parent)) {\n          return functionSpan(n.parent, n, sourceFile);\n        }\n        switch (n.parent.kind) {\n          case 243:\n          case 246:\n          case 247:\n          case 245:\n          case 242:\n          case 244:\n          case 251:\n          case 295:\n            return spanForNode(n.parent);\n          case 255:\n            const tryStatement = n.parent;\n            if (tryStatement.tryBlock === n) {\n              return spanForNode(n.parent);\n            } else if (tryStatement.finallyBlock === n) {\n              const node = findChildOfKind(tryStatement, 96, sourceFile);\n              if (node)\n                return spanForNode(node);\n            }\n          default:\n            return createOutliningSpan(createTextSpanFromNode(n, sourceFile), \"code\");\n        }\n      case 265:\n        return spanForNode(n.parent);\n      case 260:\n      case 228:\n      case 261:\n      case 263:\n      case 266:\n      case 184:\n      case 203:\n        return spanForNode(n);\n      case 186:\n        return spanForNode(n, false, !isTupleTypeNode(n.parent), 22);\n      case 292:\n      case 293:\n        return spanForNodeArray(n.statements);\n      case 207:\n        return spanForObjectOrArrayLiteral(n);\n      case 206:\n        return spanForObjectOrArrayLiteral(n, 22);\n      case 281:\n        return spanForJSXElement(n);\n      case 285:\n        return spanForJSXFragment(n);\n      case 282:\n      case 283:\n        return spanForJSXAttributes(n.attributes);\n      case 225:\n      case 14:\n        return spanForTemplateLiteral(n);\n      case 204:\n        return spanForNode(n, false, !isBindingElement(n.parent), 22);\n      case 216:\n        return spanForArrowFunction(n);\n      case 210:\n        return spanForCallExpression(n);\n      case 214:\n        return spanForParenthesizedExpression(n);\n      case 272:\n      case 276:\n      case 296:\n        return spanForNamedImportsOrExportsOrAssertClause(n);\n    }\n    function spanForNamedImportsOrExportsOrAssertClause(node) {\n      if (!node.elements.length) {\n        return void 0;\n      }\n      const openToken = findChildOfKind(node, 18, sourceFile);\n      const closeToken = findChildOfKind(node, 19, sourceFile);\n      if (!openToken || !closeToken || positionsAreOnSameLine(openToken.pos, closeToken.pos, sourceFile)) {\n        return void 0;\n      }\n      return spanBetweenTokens(openToken, closeToken, node, sourceFile, false, false);\n    }\n    function spanForCallExpression(node) {\n      if (!node.arguments.length) {\n        return void 0;\n      }\n      const openToken = findChildOfKind(node, 20, sourceFile);\n      const closeToken = findChildOfKind(node, 21, sourceFile);\n      if (!openToken || !closeToken || positionsAreOnSameLine(openToken.pos, closeToken.pos, sourceFile)) {\n        return void 0;\n      }\n      return spanBetweenTokens(openToken, closeToken, node, sourceFile, false, true);\n    }\n    function spanForArrowFunction(node) {\n      if (isBlock(node.body) || isParenthesizedExpression(node.body) || positionsAreOnSameLine(node.body.getFullStart(), node.body.getEnd(), sourceFile)) {\n        return void 0;\n      }\n      const textSpan = createTextSpanFromBounds(node.body.getFullStart(), node.body.getEnd());\n      return createOutliningSpan(textSpan, \"code\", createTextSpanFromNode(node));\n    }\n    function spanForJSXElement(node) {\n      const textSpan = createTextSpanFromBounds(node.openingElement.getStart(sourceFile), node.closingElement.getEnd());\n      const tagName = node.openingElement.tagName.getText(sourceFile);\n      const bannerText = \"<\" + tagName + \">...</\" + tagName + \">\";\n      return createOutliningSpan(textSpan, \"code\", textSpan, false, bannerText);\n    }\n    function spanForJSXFragment(node) {\n      const textSpan = createTextSpanFromBounds(node.openingFragment.getStart(sourceFile), node.closingFragment.getEnd());\n      const bannerText = \"<>...</>\";\n      return createOutliningSpan(textSpan, \"code\", textSpan, false, bannerText);\n    }\n    function spanForJSXAttributes(node) {\n      if (node.properties.length === 0) {\n        return void 0;\n      }\n      return createOutliningSpanFromBounds(node.getStart(sourceFile), node.getEnd(), \"code\");\n    }\n    function spanForTemplateLiteral(node) {\n      if (node.kind === 14 && node.text.length === 0) {\n        return void 0;\n      }\n      return createOutliningSpanFromBounds(node.getStart(sourceFile), node.getEnd(), \"code\");\n    }\n    function spanForObjectOrArrayLiteral(node, open = 18) {\n      return spanForNode(node, false, !isArrayLiteralExpression(node.parent) && !isCallExpression(node.parent), open);\n    }\n    function spanForNode(hintSpanNode, autoCollapse = false, useFullStart = true, open = 18, close = open === 18 ? 19 : 23) {\n      const openToken = findChildOfKind(n, open, sourceFile);\n      const closeToken = findChildOfKind(n, close, sourceFile);\n      return openToken && closeToken && spanBetweenTokens(openToken, closeToken, hintSpanNode, sourceFile, autoCollapse, useFullStart);\n    }\n    function spanForNodeArray(nodeArray) {\n      return nodeArray.length ? createOutliningSpan(createTextSpanFromRange(nodeArray), \"code\") : void 0;\n    }\n    function spanForParenthesizedExpression(node) {\n      if (positionsAreOnSameLine(node.getStart(), node.getEnd(), sourceFile))\n        return void 0;\n      const textSpan = createTextSpanFromBounds(node.getStart(), node.getEnd());\n      return createOutliningSpan(textSpan, \"code\", createTextSpanFromNode(node));\n    }\n  }\n  function functionSpan(node, body, sourceFile) {\n    const openToken = tryGetFunctionOpenToken(node, body, sourceFile);\n    const closeToken = findChildOfKind(body, 19, sourceFile);\n    return openToken && closeToken && spanBetweenTokens(openToken, closeToken, node, sourceFile, node.kind !== 216);\n  }\n  function spanBetweenTokens(openToken, closeToken, hintSpanNode, sourceFile, autoCollapse = false, useFullStart = true) {\n    const textSpan = createTextSpanFromBounds(useFullStart ? openToken.getFullStart() : openToken.getStart(sourceFile), closeToken.getEnd());\n    return createOutliningSpan(textSpan, \"code\", createTextSpanFromNode(hintSpanNode, sourceFile), autoCollapse);\n  }\n  function createOutliningSpan(textSpan, kind, hintSpan = textSpan, autoCollapse = false, bannerText = \"...\") {\n    return { textSpan, kind, hintSpan, bannerText, autoCollapse };\n  }\n  function tryGetFunctionOpenToken(node, body, sourceFile) {\n    if (isNodeArrayMultiLine(node.parameters, sourceFile)) {\n      const openParenToken = findChildOfKind(node, 20, sourceFile);\n      if (openParenToken) {\n        return openParenToken;\n      }\n    }\n    return findChildOfKind(body, 18, sourceFile);\n  }\n  var regionDelimiterRegExp;\n  var init_outliningElementsCollector = __esm({\n    \"src/services/outliningElementsCollector.ts\"() {\n      \"use strict\";\n      init_ts4();\n      regionDelimiterRegExp = /^#(end)?region(?:\\s+(.*))?(?:\\r)?$/;\n    }\n  });\n  var ts_OutliningElementsCollector_exports = {};\n  __export2(ts_OutliningElementsCollector_exports, {\n    collectElements: () => collectElements\n  });\n  var init_ts_OutliningElementsCollector = __esm({\n    \"src/services/_namespaces/ts.OutliningElementsCollector.ts\"() {\n      \"use strict\";\n      init_outliningElementsCollector();\n    }\n  });\n  function registerRefactor(name, refactor) {\n    refactors.set(name, refactor);\n  }\n  function getApplicableRefactors(context) {\n    return arrayFrom(flatMapIterator(refactors.values(), (refactor) => {\n      var _a2;\n      return context.cancellationToken && context.cancellationToken.isCancellationRequested() || !((_a2 = refactor.kinds) == null ? void 0 : _a2.some((kind) => refactorKindBeginsWith(kind, context.kind))) ? void 0 : refactor.getAvailableActions(context);\n    }));\n  }\n  function getEditsForRefactor(context, refactorName13, actionName2) {\n    const refactor = refactors.get(refactorName13);\n    return refactor && refactor.getEditsForAction(context, actionName2);\n  }\n  var refactors;\n  var init_refactorProvider = __esm({\n    \"src/services/refactorProvider.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_refactor();\n      refactors = /* @__PURE__ */ new Map();\n    }\n  });\n  function getInfo19(context, considerPartialSpans = true) {\n    const { file, program } = context;\n    const span = getRefactorContextSpan(context);\n    const token = getTokenAtPosition(file, span.start);\n    const exportNode = !!(token.parent && getSyntacticModifierFlags(token.parent) & 1) && considerPartialSpans ? token.parent : getParentNodeInSpan(token, file, span);\n    if (!exportNode || !isSourceFile(exportNode.parent) && !(isModuleBlock(exportNode.parent) && isAmbientModule(exportNode.parent.parent))) {\n      return { error: getLocaleSpecificMessage(Diagnostics.Could_not_find_export_statement) };\n    }\n    const checker = program.getTypeChecker();\n    const exportingModuleSymbol = getExportingModuleSymbol(exportNode.parent, checker);\n    const flags = getSyntacticModifierFlags(exportNode) || (isExportAssignment(exportNode) && !exportNode.isExportEquals ? 1025 : 0);\n    const wasDefault = !!(flags & 1024);\n    if (!(flags & 1) || !wasDefault && exportingModuleSymbol.exports.has(\"default\")) {\n      return { error: getLocaleSpecificMessage(Diagnostics.This_file_already_has_a_default_export) };\n    }\n    const noSymbolError = (id) => isIdentifier(id) && checker.getSymbolAtLocation(id) ? void 0 : { error: getLocaleSpecificMessage(Diagnostics.Can_only_convert_named_export) };\n    switch (exportNode.kind) {\n      case 259:\n      case 260:\n      case 261:\n      case 263:\n      case 262:\n      case 264: {\n        const node = exportNode;\n        if (!node.name)\n          return void 0;\n        return noSymbolError(node.name) || { exportNode: node, exportName: node.name, wasDefault, exportingModuleSymbol };\n      }\n      case 240: {\n        const vs = exportNode;\n        if (!(vs.declarationList.flags & 2) || vs.declarationList.declarations.length !== 1) {\n          return void 0;\n        }\n        const decl = first(vs.declarationList.declarations);\n        if (!decl.initializer)\n          return void 0;\n        Debug.assert(!wasDefault, \"Can't have a default flag here\");\n        return noSymbolError(decl.name) || { exportNode: vs, exportName: decl.name, wasDefault, exportingModuleSymbol };\n      }\n      case 274: {\n        const node = exportNode;\n        if (node.isExportEquals)\n          return void 0;\n        return noSymbolError(node.expression) || { exportNode: node, exportName: node.expression, wasDefault, exportingModuleSymbol };\n      }\n      default:\n        return void 0;\n    }\n  }\n  function doChange33(exportingSourceFile, program, info, changes, cancellationToken) {\n    changeExport(exportingSourceFile, info, changes, program.getTypeChecker());\n    changeImports(program, info, changes, cancellationToken);\n  }\n  function changeExport(exportingSourceFile, { wasDefault, exportNode, exportName }, changes, checker) {\n    if (wasDefault) {\n      if (isExportAssignment(exportNode) && !exportNode.isExportEquals) {\n        const exp = exportNode.expression;\n        const spec = makeExportSpecifier(exp.text, exp.text);\n        changes.replaceNode(exportingSourceFile, exportNode, factory.createExportDeclaration(void 0, false, factory.createNamedExports([spec])));\n      } else {\n        changes.delete(exportingSourceFile, Debug.checkDefined(findModifier(exportNode, 88), \"Should find a default keyword in modifier list\"));\n      }\n    } else {\n      const exportKeyword = Debug.checkDefined(findModifier(exportNode, 93), \"Should find an export keyword in modifier list\");\n      switch (exportNode.kind) {\n        case 259:\n        case 260:\n        case 261:\n          changes.insertNodeAfter(exportingSourceFile, exportKeyword, factory.createToken(88));\n          break;\n        case 240:\n          const decl = first(exportNode.declarationList.declarations);\n          if (!ts_FindAllReferences_exports.Core.isSymbolReferencedInFile(exportName, checker, exportingSourceFile) && !decl.type) {\n            changes.replaceNode(exportingSourceFile, exportNode, factory.createExportDefault(Debug.checkDefined(decl.initializer, \"Initializer was previously known to be present\")));\n            break;\n          }\n        case 263:\n        case 262:\n        case 264:\n          changes.deleteModifier(exportingSourceFile, exportKeyword);\n          changes.insertNodeAfter(exportingSourceFile, exportNode, factory.createExportDefault(factory.createIdentifier(exportName.text)));\n          break;\n        default:\n          Debug.fail(`Unexpected exportNode kind ${exportNode.kind}`);\n      }\n    }\n  }\n  function changeImports(program, { wasDefault, exportName, exportingModuleSymbol }, changes, cancellationToken) {\n    const checker = program.getTypeChecker();\n    const exportSymbol = Debug.checkDefined(checker.getSymbolAtLocation(exportName), \"Export name should resolve to a symbol\");\n    ts_FindAllReferences_exports.Core.eachExportReference(program.getSourceFiles(), checker, cancellationToken, exportSymbol, exportingModuleSymbol, exportName.text, wasDefault, (ref) => {\n      if (exportName === ref)\n        return;\n      const importingSourceFile = ref.getSourceFile();\n      if (wasDefault) {\n        changeDefaultToNamedImport(importingSourceFile, ref, changes, exportName.text);\n      } else {\n        changeNamedToDefaultImport(importingSourceFile, ref, changes);\n      }\n    });\n  }\n  function changeDefaultToNamedImport(importingSourceFile, ref, changes, exportName) {\n    const { parent: parent2 } = ref;\n    switch (parent2.kind) {\n      case 208:\n        changes.replaceNode(importingSourceFile, ref, factory.createIdentifier(exportName));\n        break;\n      case 273:\n      case 278: {\n        const spec = parent2;\n        changes.replaceNode(importingSourceFile, spec, makeImportSpecifier2(exportName, spec.name.text));\n        break;\n      }\n      case 270: {\n        const clause = parent2;\n        Debug.assert(clause.name === ref, \"Import clause name should match provided ref\");\n        const spec = makeImportSpecifier2(exportName, ref.text);\n        const { namedBindings } = clause;\n        if (!namedBindings) {\n          changes.replaceNode(importingSourceFile, ref, factory.createNamedImports([spec]));\n        } else if (namedBindings.kind === 271) {\n          changes.deleteRange(importingSourceFile, { pos: ref.getStart(importingSourceFile), end: namedBindings.getStart(importingSourceFile) });\n          const quotePreference = isStringLiteral(clause.parent.moduleSpecifier) ? quotePreferenceFromString(clause.parent.moduleSpecifier, importingSourceFile) : 1;\n          const newImport = makeImport(void 0, [makeImportSpecifier2(exportName, ref.text)], clause.parent.moduleSpecifier, quotePreference);\n          changes.insertNodeAfter(importingSourceFile, clause.parent, newImport);\n        } else {\n          changes.delete(importingSourceFile, ref);\n          changes.insertNodeAtEndOfList(importingSourceFile, namedBindings.elements, spec);\n        }\n        break;\n      }\n      case 202:\n        const importTypeNode = parent2;\n        changes.replaceNode(importingSourceFile, parent2, factory.createImportTypeNode(importTypeNode.argument, importTypeNode.assertions, factory.createIdentifier(exportName), importTypeNode.typeArguments, importTypeNode.isTypeOf));\n        break;\n      default:\n        Debug.failBadSyntaxKind(parent2);\n    }\n  }\n  function changeNamedToDefaultImport(importingSourceFile, ref, changes) {\n    const parent2 = ref.parent;\n    switch (parent2.kind) {\n      case 208:\n        changes.replaceNode(importingSourceFile, ref, factory.createIdentifier(\"default\"));\n        break;\n      case 273: {\n        const defaultImport = factory.createIdentifier(parent2.name.text);\n        if (parent2.parent.elements.length === 1) {\n          changes.replaceNode(importingSourceFile, parent2.parent, defaultImport);\n        } else {\n          changes.delete(importingSourceFile, parent2);\n          changes.insertNodeBefore(importingSourceFile, parent2.parent, defaultImport);\n        }\n        break;\n      }\n      case 278: {\n        changes.replaceNode(importingSourceFile, parent2, makeExportSpecifier(\"default\", parent2.name.text));\n        break;\n      }\n      default:\n        Debug.assertNever(parent2, `Unexpected parent kind ${parent2.kind}`);\n    }\n  }\n  function makeImportSpecifier2(propertyName, name) {\n    return factory.createImportSpecifier(false, propertyName === name ? void 0 : factory.createIdentifier(propertyName), factory.createIdentifier(name));\n  }\n  function makeExportSpecifier(propertyName, name) {\n    return factory.createExportSpecifier(false, propertyName === name ? void 0 : factory.createIdentifier(propertyName), factory.createIdentifier(name));\n  }\n  function getExportingModuleSymbol(parent2, checker) {\n    if (isSourceFile(parent2)) {\n      return parent2.symbol;\n    }\n    const symbol = parent2.parent.symbol;\n    if (symbol.valueDeclaration && isExternalModuleAugmentation(symbol.valueDeclaration)) {\n      return checker.getMergedSymbol(symbol);\n    }\n    return symbol;\n  }\n  var refactorName, defaultToNamedAction, namedToDefaultAction;\n  var init_convertExport = __esm({\n    \"src/services/refactors/convertExport.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_refactor();\n      refactorName = \"Convert export\";\n      defaultToNamedAction = {\n        name: \"Convert default export to named export\",\n        description: Diagnostics.Convert_default_export_to_named_export.message,\n        kind: \"refactor.rewrite.export.named\"\n      };\n      namedToDefaultAction = {\n        name: \"Convert named export to default export\",\n        description: Diagnostics.Convert_named_export_to_default_export.message,\n        kind: \"refactor.rewrite.export.default\"\n      };\n      registerRefactor(refactorName, {\n        kinds: [\n          defaultToNamedAction.kind,\n          namedToDefaultAction.kind\n        ],\n        getAvailableActions: function getRefactorActionsToConvertBetweenNamedAndDefaultExports(context) {\n          const info = getInfo19(context, context.triggerReason === \"invoked\");\n          if (!info)\n            return emptyArray;\n          if (!isRefactorErrorInfo(info)) {\n            const action = info.wasDefault ? defaultToNamedAction : namedToDefaultAction;\n            return [{ name: refactorName, description: action.description, actions: [action] }];\n          }\n          if (context.preferences.provideRefactorNotApplicableReason) {\n            return [\n              { name: refactorName, description: Diagnostics.Convert_default_export_to_named_export.message, actions: [\n                { ...defaultToNamedAction, notApplicableReason: info.error },\n                { ...namedToDefaultAction, notApplicableReason: info.error }\n              ] }\n            ];\n          }\n          return emptyArray;\n        },\n        getEditsForAction: function getRefactorEditsToConvertBetweenNamedAndDefaultExports(context, actionName2) {\n          Debug.assert(actionName2 === defaultToNamedAction.name || actionName2 === namedToDefaultAction.name, \"Unexpected action name\");\n          const info = getInfo19(context);\n          Debug.assert(info && !isRefactorErrorInfo(info), \"Expected applicable refactor info\");\n          const edits = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange33(context.file, context.program, info, t, context.cancellationToken));\n          return { edits, renameFilename: void 0, renameLocation: void 0 };\n        }\n      });\n    }\n  });\n  function getImportConversionInfo(context, considerPartialSpans = true) {\n    const { file } = context;\n    const span = getRefactorContextSpan(context);\n    const token = getTokenAtPosition(file, span.start);\n    const importDecl = considerPartialSpans ? findAncestor(token, isImportDeclaration) : getParentNodeInSpan(token, file, span);\n    if (!importDecl || !isImportDeclaration(importDecl))\n      return { error: \"Selection is not an import declaration.\" };\n    const end = span.start + span.length;\n    const nextToken = findNextToken(importDecl, importDecl.parent, file);\n    if (nextToken && end > nextToken.getStart())\n      return void 0;\n    const { importClause } = importDecl;\n    if (!importClause) {\n      return { error: getLocaleSpecificMessage(Diagnostics.Could_not_find_import_clause) };\n    }\n    if (!importClause.namedBindings) {\n      return { error: getLocaleSpecificMessage(Diagnostics.Could_not_find_namespace_import_or_named_imports) };\n    }\n    if (importClause.namedBindings.kind === 271) {\n      return { convertTo: 0, import: importClause.namedBindings };\n    }\n    const shouldUseDefault = getShouldUseDefault(context.program, importClause);\n    return shouldUseDefault ? { convertTo: 1, import: importClause.namedBindings } : { convertTo: 2, import: importClause.namedBindings };\n  }\n  function getShouldUseDefault(program, importClause) {\n    return getAllowSyntheticDefaultImports(program.getCompilerOptions()) && isExportEqualsModule(importClause.parent.moduleSpecifier, program.getTypeChecker());\n  }\n  function doChange34(sourceFile, program, changes, info) {\n    const checker = program.getTypeChecker();\n    if (info.convertTo === 0) {\n      doChangeNamespaceToNamed(sourceFile, checker, changes, info.import, getAllowSyntheticDefaultImports(program.getCompilerOptions()));\n    } else {\n      doChangeNamedToNamespaceOrDefault(sourceFile, program, changes, info.import, info.convertTo === 1);\n    }\n  }\n  function doChangeNamespaceToNamed(sourceFile, checker, changes, toConvert, allowSyntheticDefaultImports) {\n    let usedAsNamespaceOrDefault = false;\n    const nodesToReplace = [];\n    const conflictingNames = /* @__PURE__ */ new Map();\n    ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(toConvert.name, checker, sourceFile, (id) => {\n      if (!isPropertyAccessOrQualifiedName(id.parent)) {\n        usedAsNamespaceOrDefault = true;\n      } else {\n        const exportName = getRightOfPropertyAccessOrQualifiedName(id.parent).text;\n        if (checker.resolveName(exportName, id, 67108863, true)) {\n          conflictingNames.set(exportName, true);\n        }\n        Debug.assert(getLeftOfPropertyAccessOrQualifiedName(id.parent) === id, \"Parent expression should match id\");\n        nodesToReplace.push(id.parent);\n      }\n    });\n    const exportNameToImportName = /* @__PURE__ */ new Map();\n    for (const propertyAccessOrQualifiedName of nodesToReplace) {\n      const exportName = getRightOfPropertyAccessOrQualifiedName(propertyAccessOrQualifiedName).text;\n      let importName = exportNameToImportName.get(exportName);\n      if (importName === void 0) {\n        exportNameToImportName.set(exportName, importName = conflictingNames.has(exportName) ? getUniqueName(exportName, sourceFile) : exportName);\n      }\n      changes.replaceNode(sourceFile, propertyAccessOrQualifiedName, factory.createIdentifier(importName));\n    }\n    const importSpecifiers = [];\n    exportNameToImportName.forEach((name, propertyName) => {\n      importSpecifiers.push(factory.createImportSpecifier(false, name === propertyName ? void 0 : factory.createIdentifier(propertyName), factory.createIdentifier(name)));\n    });\n    const importDecl = toConvert.parent.parent;\n    if (usedAsNamespaceOrDefault && !allowSyntheticDefaultImports) {\n      changes.insertNodeAfter(sourceFile, importDecl, updateImport(importDecl, void 0, importSpecifiers));\n    } else {\n      changes.replaceNode(sourceFile, importDecl, updateImport(importDecl, usedAsNamespaceOrDefault ? factory.createIdentifier(toConvert.name.text) : void 0, importSpecifiers));\n    }\n  }\n  function getRightOfPropertyAccessOrQualifiedName(propertyAccessOrQualifiedName) {\n    return isPropertyAccessExpression(propertyAccessOrQualifiedName) ? propertyAccessOrQualifiedName.name : propertyAccessOrQualifiedName.right;\n  }\n  function getLeftOfPropertyAccessOrQualifiedName(propertyAccessOrQualifiedName) {\n    return isPropertyAccessExpression(propertyAccessOrQualifiedName) ? propertyAccessOrQualifiedName.expression : propertyAccessOrQualifiedName.left;\n  }\n  function doChangeNamedToNamespaceOrDefault(sourceFile, program, changes, toConvert, shouldUseDefault = getShouldUseDefault(program, toConvert.parent)) {\n    const checker = program.getTypeChecker();\n    const importDecl = toConvert.parent.parent;\n    const { moduleSpecifier } = importDecl;\n    const toConvertSymbols = /* @__PURE__ */ new Set();\n    toConvert.elements.forEach((namedImport) => {\n      const symbol = checker.getSymbolAtLocation(namedImport.name);\n      if (symbol) {\n        toConvertSymbols.add(symbol);\n      }\n    });\n    const preferredName = moduleSpecifier && isStringLiteral(moduleSpecifier) ? ts_codefix_exports.moduleSpecifierToValidIdentifier(moduleSpecifier.text, 99) : \"module\";\n    function hasNamespaceNameConflict(namedImport) {\n      return !!ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(namedImport.name, checker, sourceFile, (id) => {\n        const symbol = checker.resolveName(preferredName, id, 67108863, true);\n        if (symbol) {\n          if (toConvertSymbols.has(symbol)) {\n            return isExportSpecifier(id.parent);\n          }\n          return true;\n        }\n        return false;\n      });\n    }\n    const namespaceNameConflicts = toConvert.elements.some(hasNamespaceNameConflict);\n    const namespaceImportName = namespaceNameConflicts ? getUniqueName(preferredName, sourceFile) : preferredName;\n    const neededNamedImports = /* @__PURE__ */ new Set();\n    for (const element of toConvert.elements) {\n      const propertyName = (element.propertyName || element.name).text;\n      ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(element.name, checker, sourceFile, (id) => {\n        const access = factory.createPropertyAccessExpression(factory.createIdentifier(namespaceImportName), propertyName);\n        if (isShorthandPropertyAssignment(id.parent)) {\n          changes.replaceNode(sourceFile, id.parent, factory.createPropertyAssignment(id.text, access));\n        } else if (isExportSpecifier(id.parent)) {\n          neededNamedImports.add(element);\n        } else {\n          changes.replaceNode(sourceFile, id, access);\n        }\n      });\n    }\n    changes.replaceNode(sourceFile, toConvert, shouldUseDefault ? factory.createIdentifier(namespaceImportName) : factory.createNamespaceImport(factory.createIdentifier(namespaceImportName)));\n    if (neededNamedImports.size) {\n      const newNamedImports = arrayFrom(neededNamedImports.values(), (element) => factory.createImportSpecifier(element.isTypeOnly, element.propertyName && factory.createIdentifier(element.propertyName.text), factory.createIdentifier(element.name.text)));\n      changes.insertNodeAfter(sourceFile, toConvert.parent.parent, updateImport(importDecl, void 0, newNamedImports));\n    }\n  }\n  function isExportEqualsModule(moduleSpecifier, checker) {\n    const externalModule = checker.resolveExternalModuleName(moduleSpecifier);\n    if (!externalModule)\n      return false;\n    const exportEquals = checker.resolveExternalModuleSymbol(externalModule);\n    return externalModule !== exportEquals;\n  }\n  function updateImport(old, defaultImportName, elements) {\n    return factory.createImportDeclaration(void 0, factory.createImportClause(false, defaultImportName, elements && elements.length ? factory.createNamedImports(elements) : void 0), old.moduleSpecifier, void 0);\n  }\n  var refactorName2, actions;\n  var init_convertImport = __esm({\n    \"src/services/refactors/convertImport.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_refactor();\n      refactorName2 = \"Convert import\";\n      actions = {\n        [0]: {\n          name: \"Convert namespace import to named imports\",\n          description: Diagnostics.Convert_namespace_import_to_named_imports.message,\n          kind: \"refactor.rewrite.import.named\"\n        },\n        [2]: {\n          name: \"Convert named imports to namespace import\",\n          description: Diagnostics.Convert_named_imports_to_namespace_import.message,\n          kind: \"refactor.rewrite.import.namespace\"\n        },\n        [1]: {\n          name: \"Convert named imports to default import\",\n          description: Diagnostics.Convert_named_imports_to_default_import.message,\n          kind: \"refactor.rewrite.import.default\"\n        }\n      };\n      registerRefactor(refactorName2, {\n        kinds: getOwnValues(actions).map((a) => a.kind),\n        getAvailableActions: function getRefactorActionsToConvertBetweenNamedAndNamespacedImports(context) {\n          const info = getImportConversionInfo(context, context.triggerReason === \"invoked\");\n          if (!info)\n            return emptyArray;\n          if (!isRefactorErrorInfo(info)) {\n            const action = actions[info.convertTo];\n            return [{ name: refactorName2, description: action.description, actions: [action] }];\n          }\n          if (context.preferences.provideRefactorNotApplicableReason) {\n            return getOwnValues(actions).map((action) => ({\n              name: refactorName2,\n              description: action.description,\n              actions: [{ ...action, notApplicableReason: info.error }]\n            }));\n          }\n          return emptyArray;\n        },\n        getEditsForAction: function getRefactorEditsToConvertBetweenNamedAndNamespacedImports(context, actionName2) {\n          Debug.assert(some(getOwnValues(actions), (action) => action.name === actionName2), \"Unexpected action name\");\n          const info = getImportConversionInfo(context);\n          Debug.assert(info && !isRefactorErrorInfo(info), \"Expected applicable refactor info\");\n          const edits = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange34(context.file, context.program, t, info));\n          return { edits, renameFilename: void 0, renameLocation: void 0 };\n        }\n      });\n    }\n  });\n  function getRangeToExtract(context, considerEmptySpans = true) {\n    const { file, startPosition } = context;\n    const isJS = isSourceFileJS(file);\n    const current = getTokenAtPosition(file, startPosition);\n    const range = createTextRangeFromSpan(getRefactorContextSpan(context));\n    const cursorRequest = range.pos === range.end && considerEmptySpans;\n    const selection = findAncestor(current, (node) => node.parent && isTypeNode(node) && !rangeContainsSkipTrivia(range, node.parent, file) && (cursorRequest || nodeOverlapsWithStartEnd(current, file, range.pos, range.end)));\n    if (!selection || !isTypeNode(selection))\n      return { error: getLocaleSpecificMessage(Diagnostics.Selection_is_not_a_valid_type_node) };\n    const checker = context.program.getTypeChecker();\n    const enclosingNode = getEnclosingNode(selection, isJS);\n    if (enclosingNode === void 0)\n      return { error: getLocaleSpecificMessage(Diagnostics.No_type_could_be_extracted_from_this_type_node) };\n    const typeParameters = collectTypeParameters(checker, selection, enclosingNode, file);\n    if (!typeParameters)\n      return { error: getLocaleSpecificMessage(Diagnostics.No_type_could_be_extracted_from_this_type_node) };\n    const typeElements = flattenTypeLiteralNodeReference(checker, selection);\n    return { isJS, selection, enclosingNode, typeParameters, typeElements };\n  }\n  function flattenTypeLiteralNodeReference(checker, node) {\n    if (!node)\n      return void 0;\n    if (isIntersectionTypeNode(node)) {\n      const result = [];\n      const seen = /* @__PURE__ */ new Map();\n      for (const type of node.types) {\n        const flattenedTypeMembers = flattenTypeLiteralNodeReference(checker, type);\n        if (!flattenedTypeMembers || !flattenedTypeMembers.every((type2) => type2.name && addToSeen(seen, getNameFromPropertyName(type2.name)))) {\n          return void 0;\n        }\n        addRange(result, flattenedTypeMembers);\n      }\n      return result;\n    } else if (isParenthesizedTypeNode(node)) {\n      return flattenTypeLiteralNodeReference(checker, node.type);\n    } else if (isTypeLiteralNode(node)) {\n      return node.members;\n    }\n    return void 0;\n  }\n  function rangeContainsSkipTrivia(r1, node, file) {\n    return rangeContainsStartEnd(r1, skipTrivia(file.text, node.pos), node.end);\n  }\n  function collectTypeParameters(checker, selection, enclosingNode, file) {\n    const result = [];\n    return visitor(selection) ? void 0 : result;\n    function visitor(node) {\n      if (isTypeReferenceNode(node)) {\n        if (isIdentifier(node.typeName)) {\n          const typeName = node.typeName;\n          const symbol = checker.resolveName(typeName.text, typeName, 262144, true);\n          for (const decl of (symbol == null ? void 0 : symbol.declarations) || emptyArray) {\n            if (isTypeParameterDeclaration(decl) && decl.getSourceFile() === file) {\n              if (decl.name.escapedText === typeName.escapedText && rangeContainsSkipTrivia(decl, selection, file)) {\n                return true;\n              }\n              if (rangeContainsSkipTrivia(enclosingNode, decl, file) && !rangeContainsSkipTrivia(selection, decl, file)) {\n                pushIfUnique(result, decl);\n                break;\n              }\n            }\n          }\n        }\n      } else if (isInferTypeNode(node)) {\n        const conditionalTypeNode = findAncestor(node, (n) => isConditionalTypeNode(n) && rangeContainsSkipTrivia(n.extendsType, node, file));\n        if (!conditionalTypeNode || !rangeContainsSkipTrivia(selection, conditionalTypeNode, file)) {\n          return true;\n        }\n      } else if (isTypePredicateNode(node) || isThisTypeNode(node)) {\n        const functionLikeNode = findAncestor(node.parent, isFunctionLike);\n        if (functionLikeNode && functionLikeNode.type && rangeContainsSkipTrivia(functionLikeNode.type, node, file) && !rangeContainsSkipTrivia(selection, functionLikeNode, file)) {\n          return true;\n        }\n      } else if (isTypeQueryNode(node)) {\n        if (isIdentifier(node.exprName)) {\n          const symbol = checker.resolveName(node.exprName.text, node.exprName, 111551, false);\n          if ((symbol == null ? void 0 : symbol.valueDeclaration) && rangeContainsSkipTrivia(enclosingNode, symbol.valueDeclaration, file) && !rangeContainsSkipTrivia(selection, symbol.valueDeclaration, file)) {\n            return true;\n          }\n        } else {\n          if (isThisIdentifier(node.exprName.left) && !rangeContainsSkipTrivia(selection, node.parent, file)) {\n            return true;\n          }\n        }\n      }\n      if (file && isTupleTypeNode(node) && getLineAndCharacterOfPosition(file, node.pos).line === getLineAndCharacterOfPosition(file, node.end).line) {\n        setEmitFlags(node, 1);\n      }\n      return forEachChild(node, visitor);\n    }\n  }\n  function doTypeAliasChange(changes, file, name, info) {\n    const { enclosingNode, selection, typeParameters } = info;\n    const newTypeNode = factory.createTypeAliasDeclaration(void 0, name, typeParameters.map((id) => factory.updateTypeParameterDeclaration(id, id.modifiers, id.name, id.constraint, void 0)), selection);\n    changes.insertNodeBefore(file, enclosingNode, ignoreSourceNewlines(newTypeNode), true);\n    changes.replaceNode(file, selection, factory.createTypeReferenceNode(name, typeParameters.map((id) => factory.createTypeReferenceNode(id.name, void 0))), { leadingTriviaOption: ts_textChanges_exports.LeadingTriviaOption.Exclude, trailingTriviaOption: ts_textChanges_exports.TrailingTriviaOption.ExcludeWhitespace });\n  }\n  function doInterfaceChange(changes, file, name, info) {\n    var _a2;\n    const { enclosingNode, selection, typeParameters, typeElements } = info;\n    const newTypeNode = factory.createInterfaceDeclaration(void 0, name, typeParameters, void 0, typeElements);\n    setTextRange(newTypeNode, (_a2 = typeElements[0]) == null ? void 0 : _a2.parent);\n    changes.insertNodeBefore(file, enclosingNode, ignoreSourceNewlines(newTypeNode), true);\n    changes.replaceNode(file, selection, factory.createTypeReferenceNode(name, typeParameters.map((id) => factory.createTypeReferenceNode(id.name, void 0))), { leadingTriviaOption: ts_textChanges_exports.LeadingTriviaOption.Exclude, trailingTriviaOption: ts_textChanges_exports.TrailingTriviaOption.ExcludeWhitespace });\n  }\n  function doTypedefChange(changes, context, file, name, info) {\n    var _a2;\n    const { enclosingNode, selection, typeParameters } = info;\n    setEmitFlags(selection, 3072 | 4096);\n    const node = factory.createJSDocTypedefTag(factory.createIdentifier(\"typedef\"), factory.createJSDocTypeExpression(selection), factory.createIdentifier(name));\n    const templates = [];\n    forEach(typeParameters, (typeParameter) => {\n      const constraint = getEffectiveConstraintOfTypeParameter(typeParameter);\n      const parameter = factory.createTypeParameterDeclaration(void 0, typeParameter.name);\n      const template = factory.createJSDocTemplateTag(factory.createIdentifier(\"template\"), constraint && cast(constraint, isJSDocTypeExpression), [parameter]);\n      templates.push(template);\n    });\n    const jsDoc = factory.createJSDocComment(void 0, factory.createNodeArray(concatenate(templates, [node])));\n    if (isJSDoc(enclosingNode)) {\n      const pos = enclosingNode.getStart(file);\n      const newLineCharacter = getNewLineOrDefaultFromHost(context.host, (_a2 = context.formatContext) == null ? void 0 : _a2.options);\n      changes.insertNodeAt(file, enclosingNode.getStart(file), jsDoc, {\n        suffix: newLineCharacter + newLineCharacter + file.text.slice(getPrecedingNonSpaceCharacterPosition(file.text, pos - 1), pos)\n      });\n    } else {\n      changes.insertNodeBefore(file, enclosingNode, jsDoc, true);\n    }\n    changes.replaceNode(file, selection, factory.createTypeReferenceNode(name, typeParameters.map((id) => factory.createTypeReferenceNode(id.name, void 0))));\n  }\n  function getEnclosingNode(node, isJS) {\n    return findAncestor(node, isStatement) || (isJS ? findAncestor(node, isJSDoc) : void 0);\n  }\n  var refactorName3, extractToTypeAliasAction, extractToInterfaceAction, extractToTypeDefAction;\n  var init_extractType = __esm({\n    \"src/services/refactors/extractType.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_refactor();\n      refactorName3 = \"Extract type\";\n      extractToTypeAliasAction = {\n        name: \"Extract to type alias\",\n        description: getLocaleSpecificMessage(Diagnostics.Extract_to_type_alias),\n        kind: \"refactor.extract.type\"\n      };\n      extractToInterfaceAction = {\n        name: \"Extract to interface\",\n        description: getLocaleSpecificMessage(Diagnostics.Extract_to_interface),\n        kind: \"refactor.extract.interface\"\n      };\n      extractToTypeDefAction = {\n        name: \"Extract to typedef\",\n        description: getLocaleSpecificMessage(Diagnostics.Extract_to_typedef),\n        kind: \"refactor.extract.typedef\"\n      };\n      registerRefactor(refactorName3, {\n        kinds: [\n          extractToTypeAliasAction.kind,\n          extractToInterfaceAction.kind,\n          extractToTypeDefAction.kind\n        ],\n        getAvailableActions: function getRefactorActionsToExtractType(context) {\n          const info = getRangeToExtract(context, context.triggerReason === \"invoked\");\n          if (!info)\n            return emptyArray;\n          if (!isRefactorErrorInfo(info)) {\n            return [{\n              name: refactorName3,\n              description: getLocaleSpecificMessage(Diagnostics.Extract_type),\n              actions: info.isJS ? [extractToTypeDefAction] : append([extractToTypeAliasAction], info.typeElements && extractToInterfaceAction)\n            }];\n          }\n          if (context.preferences.provideRefactorNotApplicableReason) {\n            return [{\n              name: refactorName3,\n              description: getLocaleSpecificMessage(Diagnostics.Extract_type),\n              actions: [\n                { ...extractToTypeDefAction, notApplicableReason: info.error },\n                { ...extractToTypeAliasAction, notApplicableReason: info.error },\n                { ...extractToInterfaceAction, notApplicableReason: info.error }\n              ]\n            }];\n          }\n          return emptyArray;\n        },\n        getEditsForAction: function getRefactorEditsToExtractType(context, actionName2) {\n          const { file } = context;\n          const info = getRangeToExtract(context);\n          Debug.assert(info && !isRefactorErrorInfo(info), \"Expected to find a range to extract\");\n          const name = getUniqueName(\"NewType\", file);\n          const edits = ts_textChanges_exports.ChangeTracker.with(context, (changes) => {\n            switch (actionName2) {\n              case extractToTypeAliasAction.name:\n                Debug.assert(!info.isJS, \"Invalid actionName/JS combo\");\n                return doTypeAliasChange(changes, file, name, info);\n              case extractToTypeDefAction.name:\n                Debug.assert(info.isJS, \"Invalid actionName/JS combo\");\n                return doTypedefChange(changes, context, file, name, info);\n              case extractToInterfaceAction.name:\n                Debug.assert(!info.isJS && !!info.typeElements, \"Invalid actionName/JS combo\");\n                return doInterfaceChange(changes, file, name, info);\n              default:\n                Debug.fail(\"Unexpected action name\");\n            }\n          });\n          const renameFilename = file.fileName;\n          const renameLocation = getRenameLocation(edits, renameFilename, name, false);\n          return { edits, renameFilename, renameLocation };\n        }\n      });\n    }\n  });\n  function isRefactorErrorInfo(info) {\n    return info.error !== void 0;\n  }\n  function refactorKindBeginsWith(known, requested) {\n    if (!requested)\n      return true;\n    return known.substr(0, requested.length) === requested;\n  }\n  var init_helpers2 = __esm({\n    \"src/services/refactors/helpers.ts\"() {\n      \"use strict\";\n    }\n  });\n  function getRangeToMove(context) {\n    const { file } = context;\n    const range = createTextRangeFromSpan(getRefactorContextSpan(context));\n    const { statements } = file;\n    const startNodeIndex = findIndex(statements, (s) => s.end > range.pos);\n    if (startNodeIndex === -1)\n      return void 0;\n    const startStatement = statements[startNodeIndex];\n    if (isNamedDeclaration(startStatement) && startStatement.name && rangeContainsRange(startStatement.name, range)) {\n      return { toMove: [statements[startNodeIndex]], afterLast: statements[startNodeIndex + 1] };\n    }\n    if (range.pos > startStatement.getStart(file))\n      return void 0;\n    const afterEndNodeIndex = findIndex(statements, (s) => s.end > range.end, startNodeIndex);\n    if (afterEndNodeIndex !== -1 && (afterEndNodeIndex === 0 || statements[afterEndNodeIndex].getStart(file) < range.end))\n      return void 0;\n    return {\n      toMove: statements.slice(startNodeIndex, afterEndNodeIndex === -1 ? statements.length : afterEndNodeIndex),\n      afterLast: afterEndNodeIndex === -1 ? void 0 : statements[afterEndNodeIndex]\n    };\n  }\n  function doChange35(oldFile, program, toMove, changes, host, preferences) {\n    const checker = program.getTypeChecker();\n    const usage = getUsageInfo(oldFile, toMove.all, checker);\n    const currentDirectory = getDirectoryPath(oldFile.fileName);\n    const extension = extensionFromPath(oldFile.fileName);\n    const newFilename = combinePaths(currentDirectory, makeUniqueFilename(inferNewFilename(usage.oldFileImportsFromNewFile, usage.movedSymbols), extension, currentDirectory, host)) + extension;\n    changes.createNewFile(oldFile, newFilename, getNewStatementsAndRemoveFromOldFile(oldFile, usage, changes, toMove, program, host, newFilename, preferences));\n    addNewFileToTsconfig(program, changes, oldFile.fileName, newFilename, hostGetCanonicalFileName(host));\n  }\n  function getStatementsToMove(context) {\n    const rangeToMove = getRangeToMove(context);\n    if (rangeToMove === void 0)\n      return void 0;\n    const all = [];\n    const ranges = [];\n    const { toMove, afterLast } = rangeToMove;\n    getRangesWhere(toMove, isAllowedStatementToMove, (start, afterEndIndex) => {\n      for (let i = start; i < afterEndIndex; i++)\n        all.push(toMove[i]);\n      ranges.push({ first: toMove[start], afterLast });\n    });\n    return all.length === 0 ? void 0 : { all, ranges };\n  }\n  function isAllowedStatementToMove(statement) {\n    return !isPureImport(statement) && !isPrologueDirective(statement);\n  }\n  function isPureImport(node) {\n    switch (node.kind) {\n      case 269:\n        return true;\n      case 268:\n        return !hasSyntacticModifier(node, 1);\n      case 240:\n        return node.declarationList.declarations.every((d) => !!d.initializer && isRequireCall(d.initializer, true));\n      default:\n        return false;\n    }\n  }\n  function addNewFileToTsconfig(program, changes, oldFileName, newFileNameWithExtension, getCanonicalFileName) {\n    const cfg = program.getCompilerOptions().configFile;\n    if (!cfg)\n      return;\n    const newFileAbsolutePath = normalizePath(combinePaths(oldFileName, \"..\", newFileNameWithExtension));\n    const newFilePath = getRelativePathFromFile(cfg.fileName, newFileAbsolutePath, getCanonicalFileName);\n    const cfgObject = cfg.statements[0] && tryCast(cfg.statements[0].expression, isObjectLiteralExpression);\n    const filesProp = cfgObject && find(cfgObject.properties, (prop) => isPropertyAssignment(prop) && isStringLiteral(prop.name) && prop.name.text === \"files\");\n    if (filesProp && isArrayLiteralExpression(filesProp.initializer)) {\n      changes.insertNodeInListAfter(cfg, last(filesProp.initializer.elements), factory.createStringLiteral(newFilePath), filesProp.initializer.elements);\n    }\n  }\n  function getNewStatementsAndRemoveFromOldFile(oldFile, usage, changes, toMove, program, host, newFilename, preferences) {\n    const checker = program.getTypeChecker();\n    const prologueDirectives = takeWhile(oldFile.statements, isPrologueDirective);\n    if (oldFile.externalModuleIndicator === void 0 && oldFile.commonJsModuleIndicator === void 0 && usage.oldImportsNeededByNewFile.size() === 0) {\n      deleteMovedStatements(oldFile, toMove.ranges, changes);\n      return [...prologueDirectives, ...toMove.all];\n    }\n    const useEsModuleSyntax = !!oldFile.externalModuleIndicator;\n    const quotePreference = getQuotePreference(oldFile, preferences);\n    const importsFromNewFile = createOldFileImportsFromNewFile(oldFile, usage.oldFileImportsFromNewFile, newFilename, program, host, useEsModuleSyntax, quotePreference);\n    if (importsFromNewFile) {\n      insertImports(changes, oldFile, importsFromNewFile, true, preferences);\n    }\n    deleteUnusedOldImports(oldFile, toMove.all, changes, usage.unusedImportsFromOldFile, checker);\n    deleteMovedStatements(oldFile, toMove.ranges, changes);\n    updateImportsInOtherFiles(changes, program, host, oldFile, usage.movedSymbols, newFilename);\n    const imports = getNewFileImportsAndAddExportInOldFile(oldFile, usage.oldImportsNeededByNewFile, usage.newFileImportsFromOldFile, changes, checker, program, host, useEsModuleSyntax, quotePreference);\n    const body = addExports(oldFile, toMove.all, usage.oldFileImportsFromNewFile, useEsModuleSyntax);\n    if (imports.length && body.length) {\n      return [\n        ...prologueDirectives,\n        ...imports,\n        4,\n        ...body\n      ];\n    }\n    return [\n      ...prologueDirectives,\n      ...imports,\n      ...body\n    ];\n  }\n  function deleteMovedStatements(sourceFile, moved, changes) {\n    for (const { first: first2, afterLast } of moved) {\n      changes.deleteNodeRangeExcludingEnd(sourceFile, first2, afterLast);\n    }\n  }\n  function deleteUnusedOldImports(oldFile, toMove, changes, toDelete, checker) {\n    for (const statement of oldFile.statements) {\n      if (contains(toMove, statement))\n        continue;\n      forEachImportInStatement(statement, (i) => deleteUnusedImports(oldFile, i, changes, (name) => toDelete.has(checker.getSymbolAtLocation(name))));\n    }\n  }\n  function updateImportsInOtherFiles(changes, program, host, oldFile, movedSymbols, newFilename) {\n    const checker = program.getTypeChecker();\n    for (const sourceFile of program.getSourceFiles()) {\n      if (sourceFile === oldFile)\n        continue;\n      for (const statement of sourceFile.statements) {\n        forEachImportInStatement(statement, (importNode) => {\n          if (checker.getSymbolAtLocation(moduleSpecifierFromImport(importNode)) !== oldFile.symbol)\n            return;\n          const shouldMove = (name) => {\n            const symbol = isBindingElement(name.parent) ? getPropertySymbolFromBindingElement(checker, name.parent) : skipAlias(checker.getSymbolAtLocation(name), checker);\n            return !!symbol && movedSymbols.has(symbol);\n          };\n          deleteUnusedImports(sourceFile, importNode, changes, shouldMove);\n          const pathToNewFileWithExtension = resolvePath(getDirectoryPath(oldFile.path), newFilename);\n          const newModuleSpecifier = getModuleSpecifier(program.getCompilerOptions(), sourceFile, sourceFile.path, pathToNewFileWithExtension, createModuleSpecifierResolutionHost(program, host));\n          const newImportDeclaration = filterImport(importNode, factory.createStringLiteral(newModuleSpecifier), shouldMove);\n          if (newImportDeclaration)\n            changes.insertNodeAfter(sourceFile, statement, newImportDeclaration);\n          const ns = getNamespaceLikeImport(importNode);\n          if (ns)\n            updateNamespaceLikeImport(changes, sourceFile, checker, movedSymbols, newModuleSpecifier, ns, importNode);\n        });\n      }\n    }\n  }\n  function getNamespaceLikeImport(node) {\n    switch (node.kind) {\n      case 269:\n        return node.importClause && node.importClause.namedBindings && node.importClause.namedBindings.kind === 271 ? node.importClause.namedBindings.name : void 0;\n      case 268:\n        return node.name;\n      case 257:\n        return tryCast(node.name, isIdentifier);\n      default:\n        return Debug.assertNever(node, `Unexpected node kind ${node.kind}`);\n    }\n  }\n  function updateNamespaceLikeImport(changes, sourceFile, checker, movedSymbols, newModuleSpecifier, oldImportId, oldImportNode) {\n    const preferredNewNamespaceName = ts_codefix_exports.moduleSpecifierToValidIdentifier(newModuleSpecifier, 99);\n    let needUniqueName = false;\n    const toChange = [];\n    ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(oldImportId, checker, sourceFile, (ref) => {\n      if (!isPropertyAccessExpression(ref.parent))\n        return;\n      needUniqueName = needUniqueName || !!checker.resolveName(preferredNewNamespaceName, ref, 67108863, true);\n      if (movedSymbols.has(checker.getSymbolAtLocation(ref.parent.name))) {\n        toChange.push(ref);\n      }\n    });\n    if (toChange.length) {\n      const newNamespaceName = needUniqueName ? getUniqueName(preferredNewNamespaceName, sourceFile) : preferredNewNamespaceName;\n      for (const ref of toChange) {\n        changes.replaceNode(sourceFile, ref, factory.createIdentifier(newNamespaceName));\n      }\n      changes.insertNodeAfter(sourceFile, oldImportNode, updateNamespaceLikeImportNode(oldImportNode, preferredNewNamespaceName, newModuleSpecifier));\n    }\n  }\n  function updateNamespaceLikeImportNode(node, newNamespaceName, newModuleSpecifier) {\n    const newNamespaceId = factory.createIdentifier(newNamespaceName);\n    const newModuleString = factory.createStringLiteral(newModuleSpecifier);\n    switch (node.kind) {\n      case 269:\n        return factory.createImportDeclaration(void 0, factory.createImportClause(false, void 0, factory.createNamespaceImport(newNamespaceId)), newModuleString, void 0);\n      case 268:\n        return factory.createImportEqualsDeclaration(void 0, false, newNamespaceId, factory.createExternalModuleReference(newModuleString));\n      case 257:\n        return factory.createVariableDeclaration(newNamespaceId, void 0, void 0, createRequireCall(newModuleString));\n      default:\n        return Debug.assertNever(node, `Unexpected node kind ${node.kind}`);\n    }\n  }\n  function moduleSpecifierFromImport(i) {\n    return i.kind === 269 ? i.moduleSpecifier : i.kind === 268 ? i.moduleReference.expression : i.initializer.arguments[0];\n  }\n  function forEachImportInStatement(statement, cb) {\n    if (isImportDeclaration(statement)) {\n      if (isStringLiteral(statement.moduleSpecifier))\n        cb(statement);\n    } else if (isImportEqualsDeclaration(statement)) {\n      if (isExternalModuleReference(statement.moduleReference) && isStringLiteralLike(statement.moduleReference.expression)) {\n        cb(statement);\n      }\n    } else if (isVariableStatement(statement)) {\n      for (const decl of statement.declarationList.declarations) {\n        if (decl.initializer && isRequireCall(decl.initializer, true)) {\n          cb(decl);\n        }\n      }\n    }\n  }\n  function createOldFileImportsFromNewFile(sourceFile, newFileNeedExport, newFileNameWithExtension, program, host, useEs6Imports, quotePreference) {\n    let defaultImport;\n    const imports = [];\n    newFileNeedExport.forEach((symbol) => {\n      if (symbol.escapedName === \"default\") {\n        defaultImport = factory.createIdentifier(symbolNameNoDefault(symbol));\n      } else {\n        imports.push(symbol.name);\n      }\n    });\n    return makeImportOrRequire(sourceFile, defaultImport, imports, newFileNameWithExtension, program, host, useEs6Imports, quotePreference);\n  }\n  function makeImportOrRequire(sourceFile, defaultImport, imports, newFileNameWithExtension, program, host, useEs6Imports, quotePreference) {\n    const pathToNewFile = resolvePath(getDirectoryPath(sourceFile.path), newFileNameWithExtension);\n    const pathToNewFileWithCorrectExtension = getModuleSpecifier(program.getCompilerOptions(), sourceFile, sourceFile.path, pathToNewFile, createModuleSpecifierResolutionHost(program, host));\n    if (useEs6Imports) {\n      const specifiers = imports.map((i) => factory.createImportSpecifier(false, void 0, factory.createIdentifier(i)));\n      return makeImportIfNecessary(defaultImport, specifiers, pathToNewFileWithCorrectExtension, quotePreference);\n    } else {\n      Debug.assert(!defaultImport, \"No default import should exist\");\n      const bindingElements = imports.map((i) => factory.createBindingElement(void 0, void 0, i));\n      return bindingElements.length ? makeVariableStatement(factory.createObjectBindingPattern(bindingElements), void 0, createRequireCall(factory.createStringLiteral(pathToNewFileWithCorrectExtension))) : void 0;\n    }\n  }\n  function makeVariableStatement(name, type, initializer, flags = 2) {\n    return factory.createVariableStatement(void 0, factory.createVariableDeclarationList([factory.createVariableDeclaration(name, void 0, type, initializer)], flags));\n  }\n  function createRequireCall(moduleSpecifier) {\n    return factory.createCallExpression(factory.createIdentifier(\"require\"), void 0, [moduleSpecifier]);\n  }\n  function addExports(sourceFile, toMove, needExport, useEs6Exports) {\n    return flatMap(toMove, (statement) => {\n      if (isTopLevelDeclarationStatement(statement) && !isExported(sourceFile, statement, useEs6Exports) && forEachTopLevelDeclaration(statement, (d) => {\n        var _a2;\n        return needExport.has(Debug.checkDefined((_a2 = tryCast(d, canHaveSymbol)) == null ? void 0 : _a2.symbol));\n      })) {\n        const exports = addExport(statement, useEs6Exports);\n        if (exports)\n          return exports;\n      }\n      return statement;\n    });\n  }\n  function deleteUnusedImports(sourceFile, importDecl, changes, isUnused) {\n    switch (importDecl.kind) {\n      case 269:\n        deleteUnusedImportsInDeclaration(sourceFile, importDecl, changes, isUnused);\n        break;\n      case 268:\n        if (isUnused(importDecl.name)) {\n          changes.delete(sourceFile, importDecl);\n        }\n        break;\n      case 257:\n        deleteUnusedImportsInVariableDeclaration(sourceFile, importDecl, changes, isUnused);\n        break;\n      default:\n        Debug.assertNever(importDecl, `Unexpected import decl kind ${importDecl.kind}`);\n    }\n  }\n  function deleteUnusedImportsInDeclaration(sourceFile, importDecl, changes, isUnused) {\n    if (!importDecl.importClause)\n      return;\n    const { name, namedBindings } = importDecl.importClause;\n    const defaultUnused = !name || isUnused(name);\n    const namedBindingsUnused = !namedBindings || (namedBindings.kind === 271 ? isUnused(namedBindings.name) : namedBindings.elements.length !== 0 && namedBindings.elements.every((e) => isUnused(e.name)));\n    if (defaultUnused && namedBindingsUnused) {\n      changes.delete(sourceFile, importDecl);\n    } else {\n      if (name && defaultUnused) {\n        changes.delete(sourceFile, name);\n      }\n      if (namedBindings) {\n        if (namedBindingsUnused) {\n          changes.replaceNode(sourceFile, importDecl.importClause, factory.updateImportClause(importDecl.importClause, importDecl.importClause.isTypeOnly, name, void 0));\n        } else if (namedBindings.kind === 272) {\n          for (const element of namedBindings.elements) {\n            if (isUnused(element.name))\n              changes.delete(sourceFile, element);\n          }\n        }\n      }\n    }\n  }\n  function deleteUnusedImportsInVariableDeclaration(sourceFile, varDecl, changes, isUnused) {\n    const { name } = varDecl;\n    switch (name.kind) {\n      case 79:\n        if (isUnused(name)) {\n          if (varDecl.initializer && isRequireCall(varDecl.initializer, true)) {\n            changes.delete(sourceFile, isVariableDeclarationList(varDecl.parent) && length(varDecl.parent.declarations) === 1 ? varDecl.parent.parent : varDecl);\n          } else {\n            changes.delete(sourceFile, name);\n          }\n        }\n        break;\n      case 204:\n        break;\n      case 203:\n        if (name.elements.every((e) => isIdentifier(e.name) && isUnused(e.name))) {\n          changes.delete(sourceFile, isVariableDeclarationList(varDecl.parent) && varDecl.parent.declarations.length === 1 ? varDecl.parent.parent : varDecl);\n        } else {\n          for (const element of name.elements) {\n            if (isIdentifier(element.name) && isUnused(element.name)) {\n              changes.delete(sourceFile, element.name);\n            }\n          }\n        }\n        break;\n    }\n  }\n  function getNewFileImportsAndAddExportInOldFile(oldFile, importsToCopy, newFileImportsFromOldFile, changes, checker, program, host, useEsModuleSyntax, quotePreference) {\n    const copiedOldImports = [];\n    for (const oldStatement of oldFile.statements) {\n      forEachImportInStatement(oldStatement, (i) => {\n        append(copiedOldImports, filterImport(i, moduleSpecifierFromImport(i), (name) => importsToCopy.has(checker.getSymbolAtLocation(name))));\n      });\n    }\n    let oldFileDefault;\n    const oldFileNamedImports = [];\n    const markSeenTop = nodeSeenTracker();\n    newFileImportsFromOldFile.forEach((symbol) => {\n      if (!symbol.declarations) {\n        return;\n      }\n      for (const decl of symbol.declarations) {\n        if (!isTopLevelDeclaration(decl))\n          continue;\n        const name = nameOfTopLevelDeclaration(decl);\n        if (!name)\n          continue;\n        const top = getTopLevelDeclarationStatement(decl);\n        if (markSeenTop(top)) {\n          addExportToChanges(oldFile, top, name, changes, useEsModuleSyntax);\n        }\n        if (hasSyntacticModifier(decl, 1024)) {\n          oldFileDefault = name;\n        } else {\n          oldFileNamedImports.push(name.text);\n        }\n      }\n    });\n    append(copiedOldImports, makeImportOrRequire(oldFile, oldFileDefault, oldFileNamedImports, getBaseFileName(oldFile.fileName), program, host, useEsModuleSyntax, quotePreference));\n    return copiedOldImports;\n  }\n  function makeUniqueFilename(proposedFilename, extension, inDirectory, host) {\n    let newFilename = proposedFilename;\n    for (let i = 1; ; i++) {\n      const name = combinePaths(inDirectory, newFilename + extension);\n      if (!host.fileExists(name))\n        return newFilename;\n      newFilename = `${proposedFilename}.${i}`;\n    }\n  }\n  function inferNewFilename(importsFromNewFile, movedSymbols) {\n    return importsFromNewFile.forEachEntry(symbolNameNoDefault) || movedSymbols.forEachEntry(symbolNameNoDefault) || \"newFile\";\n  }\n  function getUsageInfo(oldFile, toMove, checker) {\n    const movedSymbols = new SymbolSet();\n    const oldImportsNeededByNewFile = new SymbolSet();\n    const newFileImportsFromOldFile = new SymbolSet();\n    const containsJsx = find(toMove, (statement) => !!(statement.transformFlags & 2));\n    const jsxNamespaceSymbol = getJsxNamespaceSymbol(containsJsx);\n    if (jsxNamespaceSymbol) {\n      oldImportsNeededByNewFile.add(jsxNamespaceSymbol);\n    }\n    for (const statement of toMove) {\n      forEachTopLevelDeclaration(statement, (decl) => {\n        movedSymbols.add(Debug.checkDefined(isExpressionStatement(decl) ? checker.getSymbolAtLocation(decl.expression.left) : decl.symbol, \"Need a symbol here\"));\n      });\n    }\n    for (const statement of toMove) {\n      forEachReference(statement, checker, (symbol) => {\n        if (!symbol.declarations)\n          return;\n        for (const decl of symbol.declarations) {\n          if (isInImport(decl)) {\n            oldImportsNeededByNewFile.add(symbol);\n          } else if (isTopLevelDeclaration(decl) && sourceFileOfTopLevelDeclaration(decl) === oldFile && !movedSymbols.has(symbol)) {\n            newFileImportsFromOldFile.add(symbol);\n          }\n        }\n      });\n    }\n    const unusedImportsFromOldFile = oldImportsNeededByNewFile.clone();\n    const oldFileImportsFromNewFile = new SymbolSet();\n    for (const statement of oldFile.statements) {\n      if (contains(toMove, statement))\n        continue;\n      if (jsxNamespaceSymbol && !!(statement.transformFlags & 2)) {\n        unusedImportsFromOldFile.delete(jsxNamespaceSymbol);\n      }\n      forEachReference(statement, checker, (symbol) => {\n        if (movedSymbols.has(symbol))\n          oldFileImportsFromNewFile.add(symbol);\n        unusedImportsFromOldFile.delete(symbol);\n      });\n    }\n    return { movedSymbols, newFileImportsFromOldFile, oldFileImportsFromNewFile, oldImportsNeededByNewFile, unusedImportsFromOldFile };\n    function getJsxNamespaceSymbol(containsJsx2) {\n      if (containsJsx2 === void 0) {\n        return void 0;\n      }\n      const jsxNamespace = checker.getJsxNamespace(containsJsx2);\n      const jsxNamespaceSymbol2 = checker.resolveName(jsxNamespace, containsJsx2, 1920, true);\n      return !!jsxNamespaceSymbol2 && some(jsxNamespaceSymbol2.declarations, isInImport) ? jsxNamespaceSymbol2 : void 0;\n    }\n  }\n  function isInImport(decl) {\n    switch (decl.kind) {\n      case 268:\n      case 273:\n      case 270:\n      case 271:\n        return true;\n      case 257:\n        return isVariableDeclarationInImport(decl);\n      case 205:\n        return isVariableDeclaration(decl.parent.parent) && isVariableDeclarationInImport(decl.parent.parent);\n      default:\n        return false;\n    }\n  }\n  function isVariableDeclarationInImport(decl) {\n    return isSourceFile(decl.parent.parent.parent) && !!decl.initializer && isRequireCall(decl.initializer, true);\n  }\n  function filterImport(i, moduleSpecifier, keep) {\n    switch (i.kind) {\n      case 269: {\n        const clause = i.importClause;\n        if (!clause)\n          return void 0;\n        const defaultImport = clause.name && keep(clause.name) ? clause.name : void 0;\n        const namedBindings = clause.namedBindings && filterNamedBindings(clause.namedBindings, keep);\n        return defaultImport || namedBindings ? factory.createImportDeclaration(void 0, factory.createImportClause(clause.isTypeOnly, defaultImport, namedBindings), moduleSpecifier, void 0) : void 0;\n      }\n      case 268:\n        return keep(i.name) ? i : void 0;\n      case 257: {\n        const name = filterBindingName(i.name, keep);\n        return name ? makeVariableStatement(name, i.type, createRequireCall(moduleSpecifier), i.parent.flags) : void 0;\n      }\n      default:\n        return Debug.assertNever(i, `Unexpected import kind ${i.kind}`);\n    }\n  }\n  function filterNamedBindings(namedBindings, keep) {\n    if (namedBindings.kind === 271) {\n      return keep(namedBindings.name) ? namedBindings : void 0;\n    } else {\n      const newElements = namedBindings.elements.filter((e) => keep(e.name));\n      return newElements.length ? factory.createNamedImports(newElements) : void 0;\n    }\n  }\n  function filterBindingName(name, keep) {\n    switch (name.kind) {\n      case 79:\n        return keep(name) ? name : void 0;\n      case 204:\n        return name;\n      case 203: {\n        const newElements = name.elements.filter((prop) => prop.propertyName || !isIdentifier(prop.name) || keep(prop.name));\n        return newElements.length ? factory.createObjectBindingPattern(newElements) : void 0;\n      }\n    }\n  }\n  function forEachReference(node, checker, onReference) {\n    node.forEachChild(function cb(node2) {\n      if (isIdentifier(node2) && !isDeclarationName(node2)) {\n        const sym = checker.getSymbolAtLocation(node2);\n        if (sym)\n          onReference(sym);\n      } else {\n        node2.forEachChild(cb);\n      }\n    });\n  }\n  function isTopLevelDeclaration(node) {\n    return isNonVariableTopLevelDeclaration(node) && isSourceFile(node.parent) || isVariableDeclaration(node) && isSourceFile(node.parent.parent.parent);\n  }\n  function sourceFileOfTopLevelDeclaration(node) {\n    return isVariableDeclaration(node) ? node.parent.parent.parent : node.parent;\n  }\n  function isTopLevelDeclarationStatement(node) {\n    Debug.assert(isSourceFile(node.parent), \"Node parent should be a SourceFile\");\n    return isNonVariableTopLevelDeclaration(node) || isVariableStatement(node);\n  }\n  function isNonVariableTopLevelDeclaration(node) {\n    switch (node.kind) {\n      case 259:\n      case 260:\n      case 264:\n      case 263:\n      case 262:\n      case 261:\n      case 268:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function forEachTopLevelDeclaration(statement, cb) {\n    switch (statement.kind) {\n      case 259:\n      case 260:\n      case 264:\n      case 263:\n      case 262:\n      case 261:\n      case 268:\n        return cb(statement);\n      case 240:\n        return firstDefined(statement.declarationList.declarations, (decl) => forEachTopLevelDeclarationInBindingName(decl.name, cb));\n      case 241: {\n        const { expression } = statement;\n        return isBinaryExpression(expression) && getAssignmentDeclarationKind(expression) === 1 ? cb(statement) : void 0;\n      }\n    }\n  }\n  function forEachTopLevelDeclarationInBindingName(name, cb) {\n    switch (name.kind) {\n      case 79:\n        return cb(cast(name.parent, (x) => isVariableDeclaration(x) || isBindingElement(x)));\n      case 204:\n      case 203:\n        return firstDefined(name.elements, (em) => isOmittedExpression(em) ? void 0 : forEachTopLevelDeclarationInBindingName(em.name, cb));\n      default:\n        return Debug.assertNever(name, `Unexpected name kind ${name.kind}`);\n    }\n  }\n  function nameOfTopLevelDeclaration(d) {\n    return isExpressionStatement(d) ? tryCast(d.expression.left.name, isIdentifier) : tryCast(d.name, isIdentifier);\n  }\n  function getTopLevelDeclarationStatement(d) {\n    switch (d.kind) {\n      case 257:\n        return d.parent.parent;\n      case 205:\n        return getTopLevelDeclarationStatement(cast(d.parent.parent, (p) => isVariableDeclaration(p) || isBindingElement(p)));\n      default:\n        return d;\n    }\n  }\n  function addExportToChanges(sourceFile, decl, name, changes, useEs6Exports) {\n    if (isExported(sourceFile, decl, useEs6Exports, name))\n      return;\n    if (useEs6Exports) {\n      if (!isExpressionStatement(decl))\n        changes.insertExportModifier(sourceFile, decl);\n    } else {\n      const names = getNamesToExportInCommonJS(decl);\n      if (names.length !== 0)\n        changes.insertNodesAfter(sourceFile, decl, names.map(createExportAssignment));\n    }\n  }\n  function isExported(sourceFile, decl, useEs6Exports, name) {\n    var _a2;\n    if (useEs6Exports) {\n      return !isExpressionStatement(decl) && hasSyntacticModifier(decl, 1) || !!(name && ((_a2 = sourceFile.symbol.exports) == null ? void 0 : _a2.has(name.escapedText)));\n    }\n    return !!sourceFile.symbol && !!sourceFile.symbol.exports && getNamesToExportInCommonJS(decl).some((name2) => sourceFile.symbol.exports.has(escapeLeadingUnderscores(name2)));\n  }\n  function addExport(decl, useEs6Exports) {\n    return useEs6Exports ? [addEs6Export(decl)] : addCommonjsExport(decl);\n  }\n  function addEs6Export(d) {\n    const modifiers = canHaveModifiers(d) ? concatenate([factory.createModifier(93)], getModifiers(d)) : void 0;\n    switch (d.kind) {\n      case 259:\n        return factory.updateFunctionDeclaration(d, modifiers, d.asteriskToken, d.name, d.typeParameters, d.parameters, d.type, d.body);\n      case 260:\n        const decorators = canHaveDecorators(d) ? getDecorators(d) : void 0;\n        return factory.updateClassDeclaration(d, concatenate(decorators, modifiers), d.name, d.typeParameters, d.heritageClauses, d.members);\n      case 240:\n        return factory.updateVariableStatement(d, modifiers, d.declarationList);\n      case 264:\n        return factory.updateModuleDeclaration(d, modifiers, d.name, d.body);\n      case 263:\n        return factory.updateEnumDeclaration(d, modifiers, d.name, d.members);\n      case 262:\n        return factory.updateTypeAliasDeclaration(d, modifiers, d.name, d.typeParameters, d.type);\n      case 261:\n        return factory.updateInterfaceDeclaration(d, modifiers, d.name, d.typeParameters, d.heritageClauses, d.members);\n      case 268:\n        return factory.updateImportEqualsDeclaration(d, modifiers, d.isTypeOnly, d.name, d.moduleReference);\n      case 241:\n        return Debug.fail();\n      default:\n        return Debug.assertNever(d, `Unexpected declaration kind ${d.kind}`);\n    }\n  }\n  function addCommonjsExport(decl) {\n    return [decl, ...getNamesToExportInCommonJS(decl).map(createExportAssignment)];\n  }\n  function getNamesToExportInCommonJS(decl) {\n    switch (decl.kind) {\n      case 259:\n      case 260:\n        return [decl.name.text];\n      case 240:\n        return mapDefined(decl.declarationList.declarations, (d) => isIdentifier(d.name) ? d.name.text : void 0);\n      case 264:\n      case 263:\n      case 262:\n      case 261:\n      case 268:\n        return emptyArray;\n      case 241:\n        return Debug.fail(\"Can't export an ExpressionStatement\");\n      default:\n        return Debug.assertNever(decl, `Unexpected decl kind ${decl.kind}`);\n    }\n  }\n  function createExportAssignment(name) {\n    return factory.createExpressionStatement(factory.createBinaryExpression(factory.createPropertyAccessExpression(factory.createIdentifier(\"exports\"), factory.createIdentifier(name)), 63, factory.createIdentifier(name)));\n  }\n  var refactorName4, description, moveToNewFileAction, SymbolSet;\n  var init_moveToNewFile = __esm({\n    \"src/services/refactors/moveToNewFile.ts\"() {\n      \"use strict\";\n      init_moduleSpecifiers();\n      init_ts4();\n      init_ts_refactor();\n      refactorName4 = \"Move to a new file\";\n      description = getLocaleSpecificMessage(Diagnostics.Move_to_a_new_file);\n      moveToNewFileAction = {\n        name: refactorName4,\n        description,\n        kind: \"refactor.move.newFile\"\n      };\n      registerRefactor(refactorName4, {\n        kinds: [moveToNewFileAction.kind],\n        getAvailableActions: function getRefactorActionsToMoveToNewFile(context) {\n          const statements = getStatementsToMove(context);\n          if (context.preferences.allowTextChangesInNewFiles && statements) {\n            return [{ name: refactorName4, description, actions: [moveToNewFileAction] }];\n          }\n          if (context.preferences.provideRefactorNotApplicableReason) {\n            return [{\n              name: refactorName4,\n              description,\n              actions: [{ ...moveToNewFileAction, notApplicableReason: getLocaleSpecificMessage(Diagnostics.Selection_is_not_a_valid_statement_or_statements) }]\n            }];\n          }\n          return emptyArray;\n        },\n        getEditsForAction: function getRefactorEditsToMoveToNewFile(context, actionName2) {\n          Debug.assert(actionName2 === refactorName4, \"Wrong refactor invoked\");\n          const statements = Debug.checkDefined(getStatementsToMove(context));\n          const edits = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange35(context.file, context.program, statements, t, context.host, context.preferences));\n          return { edits, renameFilename: void 0, renameLocation: void 0 };\n        }\n      });\n      SymbolSet = class {\n        constructor() {\n          this.map = /* @__PURE__ */ new Map();\n        }\n        add(symbol) {\n          this.map.set(String(getSymbolId(symbol)), symbol);\n        }\n        has(symbol) {\n          return this.map.has(String(getSymbolId(symbol)));\n        }\n        delete(symbol) {\n          this.map.delete(String(getSymbolId(symbol)));\n        }\n        forEach(cb) {\n          this.map.forEach(cb);\n        }\n        forEachEntry(cb) {\n          return forEachEntry(this.map, cb);\n        }\n        clone() {\n          const clone2 = new SymbolSet();\n          copyEntries(this.map, clone2.map);\n          return clone2;\n        }\n        size() {\n          return this.map.size;\n        }\n      };\n    }\n  });\n  function getRefactorActionsToConvertOverloadsToOneSignature(context) {\n    const { file, startPosition, program } = context;\n    const info = getConvertableOverloadListAtPosition(file, startPosition, program);\n    if (!info)\n      return emptyArray;\n    return [{\n      name: refactorName5,\n      description: refactorDescription,\n      actions: [functionOverloadAction]\n    }];\n  }\n  function getRefactorEditsToConvertOverloadsToOneSignature(context) {\n    const { file, startPosition, program } = context;\n    const signatureDecls = getConvertableOverloadListAtPosition(file, startPosition, program);\n    if (!signatureDecls)\n      return void 0;\n    const checker = program.getTypeChecker();\n    const lastDeclaration = signatureDecls[signatureDecls.length - 1];\n    let updated = lastDeclaration;\n    switch (lastDeclaration.kind) {\n      case 170: {\n        updated = factory.updateMethodSignature(lastDeclaration, lastDeclaration.modifiers, lastDeclaration.name, lastDeclaration.questionToken, lastDeclaration.typeParameters, getNewParametersForCombinedSignature(signatureDecls), lastDeclaration.type);\n        break;\n      }\n      case 171: {\n        updated = factory.updateMethodDeclaration(lastDeclaration, lastDeclaration.modifiers, lastDeclaration.asteriskToken, lastDeclaration.name, lastDeclaration.questionToken, lastDeclaration.typeParameters, getNewParametersForCombinedSignature(signatureDecls), lastDeclaration.type, lastDeclaration.body);\n        break;\n      }\n      case 176: {\n        updated = factory.updateCallSignature(lastDeclaration, lastDeclaration.typeParameters, getNewParametersForCombinedSignature(signatureDecls), lastDeclaration.type);\n        break;\n      }\n      case 173: {\n        updated = factory.updateConstructorDeclaration(lastDeclaration, lastDeclaration.modifiers, getNewParametersForCombinedSignature(signatureDecls), lastDeclaration.body);\n        break;\n      }\n      case 177: {\n        updated = factory.updateConstructSignature(lastDeclaration, lastDeclaration.typeParameters, getNewParametersForCombinedSignature(signatureDecls), lastDeclaration.type);\n        break;\n      }\n      case 259: {\n        updated = factory.updateFunctionDeclaration(lastDeclaration, lastDeclaration.modifiers, lastDeclaration.asteriskToken, lastDeclaration.name, lastDeclaration.typeParameters, getNewParametersForCombinedSignature(signatureDecls), lastDeclaration.type, lastDeclaration.body);\n        break;\n      }\n      default:\n        return Debug.failBadSyntaxKind(lastDeclaration, \"Unhandled signature kind in overload list conversion refactoring\");\n    }\n    if (updated === lastDeclaration) {\n      return;\n    }\n    const edits = ts_textChanges_exports.ChangeTracker.with(context, (t) => {\n      t.replaceNodeRange(file, signatureDecls[0], signatureDecls[signatureDecls.length - 1], updated);\n    });\n    return { renameFilename: void 0, renameLocation: void 0, edits };\n    function getNewParametersForCombinedSignature(signatureDeclarations) {\n      const lastSig = signatureDeclarations[signatureDeclarations.length - 1];\n      if (isFunctionLikeDeclaration(lastSig) && lastSig.body) {\n        signatureDeclarations = signatureDeclarations.slice(0, signatureDeclarations.length - 1);\n      }\n      return factory.createNodeArray([\n        factory.createParameterDeclaration(void 0, factory.createToken(25), \"args\", void 0, factory.createUnionTypeNode(map(signatureDeclarations, convertSignatureParametersToTuple)))\n      ]);\n    }\n    function convertSignatureParametersToTuple(decl) {\n      const members = map(decl.parameters, convertParameterToNamedTupleMember);\n      return setEmitFlags(factory.createTupleTypeNode(members), some(members, (m) => !!length(getSyntheticLeadingComments(m))) ? 0 : 1);\n    }\n    function convertParameterToNamedTupleMember(p) {\n      Debug.assert(isIdentifier(p.name));\n      const result = setTextRange(factory.createNamedTupleMember(p.dotDotDotToken, p.name, p.questionToken, p.type || factory.createKeywordTypeNode(131)), p);\n      const parameterDocComment = p.symbol && p.symbol.getDocumentationComment(checker);\n      if (parameterDocComment) {\n        const newComment = displayPartsToString2(parameterDocComment);\n        if (newComment.length) {\n          setSyntheticLeadingComments(result, [{\n            text: `*\n${newComment.split(\"\\n\").map((c) => ` * ${c}`).join(\"\\n\")}\n `,\n            kind: 3,\n            pos: -1,\n            end: -1,\n            hasTrailingNewLine: true,\n            hasLeadingNewline: true\n          }]);\n        }\n      }\n      return result;\n    }\n  }\n  function isConvertableSignatureDeclaration(d) {\n    switch (d.kind) {\n      case 170:\n      case 171:\n      case 176:\n      case 173:\n      case 177:\n      case 259:\n        return true;\n    }\n    return false;\n  }\n  function getConvertableOverloadListAtPosition(file, startPosition, program) {\n    const node = getTokenAtPosition(file, startPosition);\n    const containingDecl = findAncestor(node, isConvertableSignatureDeclaration);\n    if (!containingDecl) {\n      return;\n    }\n    if (isFunctionLikeDeclaration(containingDecl) && containingDecl.body && rangeContainsPosition(containingDecl.body, startPosition)) {\n      return;\n    }\n    const checker = program.getTypeChecker();\n    const signatureSymbol = containingDecl.symbol;\n    if (!signatureSymbol) {\n      return;\n    }\n    const decls = signatureSymbol.declarations;\n    if (length(decls) <= 1) {\n      return;\n    }\n    if (!every(decls, (d) => getSourceFileOfNode(d) === file)) {\n      return;\n    }\n    if (!isConvertableSignatureDeclaration(decls[0])) {\n      return;\n    }\n    const kindOne = decls[0].kind;\n    if (!every(decls, (d) => d.kind === kindOne)) {\n      return;\n    }\n    const signatureDecls = decls;\n    if (some(signatureDecls, (d) => !!d.typeParameters || some(d.parameters, (p) => !!p.modifiers || !isIdentifier(p.name)))) {\n      return;\n    }\n    const signatures = mapDefined(signatureDecls, (d) => checker.getSignatureFromDeclaration(d));\n    if (length(signatures) !== length(decls)) {\n      return;\n    }\n    const returnOne = checker.getReturnTypeOfSignature(signatures[0]);\n    if (!every(signatures, (s) => checker.getReturnTypeOfSignature(s) === returnOne)) {\n      return;\n    }\n    return signatureDecls;\n  }\n  var refactorName5, refactorDescription, functionOverloadAction;\n  var init_convertOverloadListToSingleSignature = __esm({\n    \"src/services/refactors/convertOverloadListToSingleSignature.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_refactor();\n      refactorName5 = \"Convert overload list to single signature\";\n      refactorDescription = Diagnostics.Convert_overload_list_to_single_signature.message;\n      functionOverloadAction = {\n        name: refactorName5,\n        description: refactorDescription,\n        kind: \"refactor.rewrite.function.overloadList\"\n      };\n      registerRefactor(refactorName5, {\n        kinds: [functionOverloadAction.kind],\n        getEditsForAction: getRefactorEditsToConvertOverloadsToOneSignature,\n        getAvailableActions: getRefactorActionsToConvertOverloadsToOneSignature\n      });\n    }\n  });\n  function getRefactorActionsToRemoveFunctionBraces(context) {\n    const { file, startPosition, triggerReason } = context;\n    const info = getConvertibleArrowFunctionAtPosition(file, startPosition, triggerReason === \"invoked\");\n    if (!info)\n      return emptyArray;\n    if (!isRefactorErrorInfo(info)) {\n      return [{\n        name: refactorName6,\n        description: refactorDescription2,\n        actions: [\n          info.addBraces ? addBracesAction : removeBracesAction\n        ]\n      }];\n    }\n    if (context.preferences.provideRefactorNotApplicableReason) {\n      return [{\n        name: refactorName6,\n        description: refactorDescription2,\n        actions: [\n          { ...addBracesAction, notApplicableReason: info.error },\n          { ...removeBracesAction, notApplicableReason: info.error }\n        ]\n      }];\n    }\n    return emptyArray;\n  }\n  function getRefactorEditsToRemoveFunctionBraces(context, actionName2) {\n    const { file, startPosition } = context;\n    const info = getConvertibleArrowFunctionAtPosition(file, startPosition);\n    Debug.assert(info && !isRefactorErrorInfo(info), \"Expected applicable refactor info\");\n    const { expression, returnStatement, func } = info;\n    let body;\n    if (actionName2 === addBracesAction.name) {\n      const returnStatement2 = factory.createReturnStatement(expression);\n      body = factory.createBlock([returnStatement2], true);\n      copyLeadingComments(expression, returnStatement2, file, 3, true);\n    } else if (actionName2 === removeBracesAction.name && returnStatement) {\n      const actualExpression = expression || factory.createVoidZero();\n      body = needsParentheses(actualExpression) ? factory.createParenthesizedExpression(actualExpression) : actualExpression;\n      copyTrailingAsLeadingComments(returnStatement, body, file, 3, false);\n      copyLeadingComments(returnStatement, body, file, 3, false);\n      copyTrailingComments(returnStatement, body, file, 3, false);\n    } else {\n      Debug.fail(\"invalid action\");\n    }\n    const edits = ts_textChanges_exports.ChangeTracker.with(context, (t) => {\n      t.replaceNode(file, func.body, body);\n    });\n    return { renameFilename: void 0, renameLocation: void 0, edits };\n  }\n  function getConvertibleArrowFunctionAtPosition(file, startPosition, considerFunctionBodies = true, kind) {\n    const node = getTokenAtPosition(file, startPosition);\n    const func = getContainingFunction(node);\n    if (!func) {\n      return {\n        error: getLocaleSpecificMessage(Diagnostics.Could_not_find_a_containing_arrow_function)\n      };\n    }\n    if (!isArrowFunction(func)) {\n      return {\n        error: getLocaleSpecificMessage(Diagnostics.Containing_function_is_not_an_arrow_function)\n      };\n    }\n    if (!rangeContainsRange(func, node) || rangeContainsRange(func.body, node) && !considerFunctionBodies) {\n      return void 0;\n    }\n    if (refactorKindBeginsWith(addBracesAction.kind, kind) && isExpression(func.body)) {\n      return { func, addBraces: true, expression: func.body };\n    } else if (refactorKindBeginsWith(removeBracesAction.kind, kind) && isBlock(func.body) && func.body.statements.length === 1) {\n      const firstStatement = first(func.body.statements);\n      if (isReturnStatement(firstStatement)) {\n        return { func, addBraces: false, expression: firstStatement.expression, returnStatement: firstStatement };\n      }\n    }\n    return void 0;\n  }\n  var refactorName6, refactorDescription2, addBracesAction, removeBracesAction;\n  var init_addOrRemoveBracesToArrowFunction = __esm({\n    \"src/services/refactors/addOrRemoveBracesToArrowFunction.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_refactor();\n      refactorName6 = \"Add or remove braces in an arrow function\";\n      refactorDescription2 = Diagnostics.Add_or_remove_braces_in_an_arrow_function.message;\n      addBracesAction = {\n        name: \"Add braces to arrow function\",\n        description: Diagnostics.Add_braces_to_arrow_function.message,\n        kind: \"refactor.rewrite.arrow.braces.add\"\n      };\n      removeBracesAction = {\n        name: \"Remove braces from arrow function\",\n        description: Diagnostics.Remove_braces_from_arrow_function.message,\n        kind: \"refactor.rewrite.arrow.braces.remove\"\n      };\n      registerRefactor(refactorName6, {\n        kinds: [removeBracesAction.kind],\n        getEditsForAction: getRefactorEditsToRemoveFunctionBraces,\n        getAvailableActions: getRefactorActionsToRemoveFunctionBraces\n      });\n    }\n  });\n  var ts_refactor_addOrRemoveBracesToArrowFunction_exports = {};\n  var init_ts_refactor_addOrRemoveBracesToArrowFunction = __esm({\n    \"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts\"() {\n      \"use strict\";\n      init_convertOverloadListToSingleSignature();\n      init_addOrRemoveBracesToArrowFunction();\n    }\n  });\n  function getRefactorActionsToConvertFunctionExpressions(context) {\n    const { file, startPosition, program, kind } = context;\n    const info = getFunctionInfo(file, startPosition, program);\n    if (!info)\n      return emptyArray;\n    const { selectedVariableDeclaration, func } = info;\n    const possibleActions = [];\n    const errors = [];\n    if (refactorKindBeginsWith(toNamedFunctionAction.kind, kind)) {\n      const error = selectedVariableDeclaration || isArrowFunction(func) && isVariableDeclaration(func.parent) ? void 0 : getLocaleSpecificMessage(Diagnostics.Could_not_convert_to_named_function);\n      if (error) {\n        errors.push({ ...toNamedFunctionAction, notApplicableReason: error });\n      } else {\n        possibleActions.push(toNamedFunctionAction);\n      }\n    }\n    if (refactorKindBeginsWith(toAnonymousFunctionAction.kind, kind)) {\n      const error = !selectedVariableDeclaration && isArrowFunction(func) ? void 0 : getLocaleSpecificMessage(Diagnostics.Could_not_convert_to_anonymous_function);\n      if (error) {\n        errors.push({ ...toAnonymousFunctionAction, notApplicableReason: error });\n      } else {\n        possibleActions.push(toAnonymousFunctionAction);\n      }\n    }\n    if (refactorKindBeginsWith(toArrowFunctionAction.kind, kind)) {\n      const error = isFunctionExpression(func) ? void 0 : getLocaleSpecificMessage(Diagnostics.Could_not_convert_to_arrow_function);\n      if (error) {\n        errors.push({ ...toArrowFunctionAction, notApplicableReason: error });\n      } else {\n        possibleActions.push(toArrowFunctionAction);\n      }\n    }\n    return [{\n      name: refactorName7,\n      description: refactorDescription3,\n      actions: possibleActions.length === 0 && context.preferences.provideRefactorNotApplicableReason ? errors : possibleActions\n    }];\n  }\n  function getRefactorEditsToConvertFunctionExpressions(context, actionName2) {\n    const { file, startPosition, program } = context;\n    const info = getFunctionInfo(file, startPosition, program);\n    if (!info)\n      return void 0;\n    const { func } = info;\n    const edits = [];\n    switch (actionName2) {\n      case toAnonymousFunctionAction.name:\n        edits.push(...getEditInfoForConvertToAnonymousFunction(context, func));\n        break;\n      case toNamedFunctionAction.name:\n        const variableInfo = getVariableInfo(func);\n        if (!variableInfo)\n          return void 0;\n        edits.push(...getEditInfoForConvertToNamedFunction(context, func, variableInfo));\n        break;\n      case toArrowFunctionAction.name:\n        if (!isFunctionExpression(func))\n          return void 0;\n        edits.push(...getEditInfoForConvertToArrowFunction(context, func));\n        break;\n      default:\n        return Debug.fail(\"invalid action\");\n    }\n    return { renameFilename: void 0, renameLocation: void 0, edits };\n  }\n  function containingThis(node) {\n    let containsThis = false;\n    node.forEachChild(function checkThis(child) {\n      if (isThis(child)) {\n        containsThis = true;\n        return;\n      }\n      if (!isClassLike(child) && !isFunctionDeclaration(child) && !isFunctionExpression(child)) {\n        forEachChild(child, checkThis);\n      }\n    });\n    return containsThis;\n  }\n  function getFunctionInfo(file, startPosition, program) {\n    const token = getTokenAtPosition(file, startPosition);\n    const typeChecker = program.getTypeChecker();\n    const func = tryGetFunctionFromVariableDeclaration(file, typeChecker, token.parent);\n    if (func && !containingThis(func.body) && !typeChecker.containsArgumentsReference(func)) {\n      return { selectedVariableDeclaration: true, func };\n    }\n    const maybeFunc = getContainingFunction(token);\n    if (maybeFunc && (isFunctionExpression(maybeFunc) || isArrowFunction(maybeFunc)) && !rangeContainsRange(maybeFunc.body, token) && !containingThis(maybeFunc.body) && !typeChecker.containsArgumentsReference(maybeFunc)) {\n      if (isFunctionExpression(maybeFunc) && isFunctionReferencedInFile(file, typeChecker, maybeFunc))\n        return void 0;\n      return { selectedVariableDeclaration: false, func: maybeFunc };\n    }\n    return void 0;\n  }\n  function isSingleVariableDeclaration(parent2) {\n    return isVariableDeclaration(parent2) || isVariableDeclarationList(parent2) && parent2.declarations.length === 1;\n  }\n  function tryGetFunctionFromVariableDeclaration(sourceFile, typeChecker, parent2) {\n    if (!isSingleVariableDeclaration(parent2)) {\n      return void 0;\n    }\n    const variableDeclaration = isVariableDeclaration(parent2) ? parent2 : first(parent2.declarations);\n    const initializer = variableDeclaration.initializer;\n    if (initializer && (isArrowFunction(initializer) || isFunctionExpression(initializer) && !isFunctionReferencedInFile(sourceFile, typeChecker, initializer))) {\n      return initializer;\n    }\n    return void 0;\n  }\n  function convertToBlock(body) {\n    if (isExpression(body)) {\n      const returnStatement = factory.createReturnStatement(body);\n      const file = body.getSourceFile();\n      setTextRange(returnStatement, body);\n      suppressLeadingAndTrailingTrivia(returnStatement);\n      copyTrailingAsLeadingComments(body, returnStatement, file, void 0, true);\n      return factory.createBlock([returnStatement], true);\n    } else {\n      return body;\n    }\n  }\n  function getVariableInfo(func) {\n    const variableDeclaration = func.parent;\n    if (!isVariableDeclaration(variableDeclaration) || !isVariableDeclarationInVariableStatement(variableDeclaration))\n      return void 0;\n    const variableDeclarationList = variableDeclaration.parent;\n    const statement = variableDeclarationList.parent;\n    if (!isVariableDeclarationList(variableDeclarationList) || !isVariableStatement(statement) || !isIdentifier(variableDeclaration.name))\n      return void 0;\n    return { variableDeclaration, variableDeclarationList, statement, name: variableDeclaration.name };\n  }\n  function getEditInfoForConvertToAnonymousFunction(context, func) {\n    const { file } = context;\n    const body = convertToBlock(func.body);\n    const newNode = factory.createFunctionExpression(func.modifiers, func.asteriskToken, void 0, func.typeParameters, func.parameters, func.type, body);\n    return ts_textChanges_exports.ChangeTracker.with(context, (t) => t.replaceNode(file, func, newNode));\n  }\n  function getEditInfoForConvertToNamedFunction(context, func, variableInfo) {\n    const { file } = context;\n    const body = convertToBlock(func.body);\n    const { variableDeclaration, variableDeclarationList, statement, name } = variableInfo;\n    suppressLeadingTrivia(statement);\n    const modifiersFlags = getCombinedModifierFlags(variableDeclaration) & 1 | getEffectiveModifierFlags(func);\n    const modifiers = factory.createModifiersFromModifierFlags(modifiersFlags);\n    const newNode = factory.createFunctionDeclaration(length(modifiers) ? modifiers : void 0, func.asteriskToken, name, func.typeParameters, func.parameters, func.type, body);\n    if (variableDeclarationList.declarations.length === 1) {\n      return ts_textChanges_exports.ChangeTracker.with(context, (t) => t.replaceNode(file, statement, newNode));\n    } else {\n      return ts_textChanges_exports.ChangeTracker.with(context, (t) => {\n        t.delete(file, variableDeclaration);\n        t.insertNodeAfter(file, statement, newNode);\n      });\n    }\n  }\n  function getEditInfoForConvertToArrowFunction(context, func) {\n    const { file } = context;\n    const statements = func.body.statements;\n    const head = statements[0];\n    let body;\n    if (canBeConvertedToExpression(func.body, head)) {\n      body = head.expression;\n      suppressLeadingAndTrailingTrivia(body);\n      copyComments(head, body);\n    } else {\n      body = func.body;\n    }\n    const newNode = factory.createArrowFunction(func.modifiers, func.typeParameters, func.parameters, func.type, factory.createToken(38), body);\n    return ts_textChanges_exports.ChangeTracker.with(context, (t) => t.replaceNode(file, func, newNode));\n  }\n  function canBeConvertedToExpression(body, head) {\n    return body.statements.length === 1 && (isReturnStatement(head) && !!head.expression);\n  }\n  function isFunctionReferencedInFile(sourceFile, typeChecker, node) {\n    return !!node.name && ts_FindAllReferences_exports.Core.isSymbolReferencedInFile(node.name, typeChecker, sourceFile);\n  }\n  var refactorName7, refactorDescription3, toAnonymousFunctionAction, toNamedFunctionAction, toArrowFunctionAction;\n  var init_convertArrowFunctionOrFunctionExpression = __esm({\n    \"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_refactor();\n      refactorName7 = \"Convert arrow function or function expression\";\n      refactorDescription3 = getLocaleSpecificMessage(Diagnostics.Convert_arrow_function_or_function_expression);\n      toAnonymousFunctionAction = {\n        name: \"Convert to anonymous function\",\n        description: getLocaleSpecificMessage(Diagnostics.Convert_to_anonymous_function),\n        kind: \"refactor.rewrite.function.anonymous\"\n      };\n      toNamedFunctionAction = {\n        name: \"Convert to named function\",\n        description: getLocaleSpecificMessage(Diagnostics.Convert_to_named_function),\n        kind: \"refactor.rewrite.function.named\"\n      };\n      toArrowFunctionAction = {\n        name: \"Convert to arrow function\",\n        description: getLocaleSpecificMessage(Diagnostics.Convert_to_arrow_function),\n        kind: \"refactor.rewrite.function.arrow\"\n      };\n      registerRefactor(refactorName7, {\n        kinds: [\n          toAnonymousFunctionAction.kind,\n          toNamedFunctionAction.kind,\n          toArrowFunctionAction.kind\n        ],\n        getEditsForAction: getRefactorEditsToConvertFunctionExpressions,\n        getAvailableActions: getRefactorActionsToConvertFunctionExpressions\n      });\n    }\n  });\n  var ts_refactor_convertArrowFunctionOrFunctionExpression_exports = {};\n  var init_ts_refactor_convertArrowFunctionOrFunctionExpression = __esm({\n    \"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts\"() {\n      \"use strict\";\n      init_convertArrowFunctionOrFunctionExpression();\n    }\n  });\n  function getRefactorActionsToConvertParametersToDestructuredObject(context) {\n    const { file, startPosition } = context;\n    const isJSFile = isSourceFileJS(file);\n    if (isJSFile)\n      return emptyArray;\n    const functionDeclaration = getFunctionDeclarationAtPosition(file, startPosition, context.program.getTypeChecker());\n    if (!functionDeclaration)\n      return emptyArray;\n    return [{\n      name: refactorName8,\n      description: refactorDescription4,\n      actions: [toDestructuredAction]\n    }];\n  }\n  function getRefactorEditsToConvertParametersToDestructuredObject(context, actionName2) {\n    Debug.assert(actionName2 === refactorName8, \"Unexpected action name\");\n    const { file, startPosition, program, cancellationToken, host } = context;\n    const functionDeclaration = getFunctionDeclarationAtPosition(file, startPosition, program.getTypeChecker());\n    if (!functionDeclaration || !cancellationToken)\n      return void 0;\n    const groupedReferences = getGroupedReferences(functionDeclaration, program, cancellationToken);\n    if (groupedReferences.valid) {\n      const edits = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange36(file, program, host, t, functionDeclaration, groupedReferences));\n      return { renameFilename: void 0, renameLocation: void 0, edits };\n    }\n    return { edits: [] };\n  }\n  function doChange36(sourceFile, program, host, changes, functionDeclaration, groupedReferences) {\n    const signature = groupedReferences.signature;\n    const newFunctionDeclarationParams = map(createNewParameters(functionDeclaration, program, host), (param) => getSynthesizedDeepClone(param));\n    if (signature) {\n      const newSignatureParams = map(createNewParameters(signature, program, host), (param) => getSynthesizedDeepClone(param));\n      replaceParameters(signature, newSignatureParams);\n    }\n    replaceParameters(functionDeclaration, newFunctionDeclarationParams);\n    const functionCalls = sortAndDeduplicate(groupedReferences.functionCalls, (a, b) => compareValues(a.pos, b.pos));\n    for (const call of functionCalls) {\n      if (call.arguments && call.arguments.length) {\n        const newArgument = getSynthesizedDeepClone(createNewArgument(functionDeclaration, call.arguments), true);\n        changes.replaceNodeRange(getSourceFileOfNode(call), first(call.arguments), last(call.arguments), newArgument, { leadingTriviaOption: ts_textChanges_exports.LeadingTriviaOption.IncludeAll, trailingTriviaOption: ts_textChanges_exports.TrailingTriviaOption.Include });\n      }\n    }\n    function replaceParameters(declarationOrSignature, parameterDeclarations) {\n      changes.replaceNodeRangeWithNodes(sourceFile, first(declarationOrSignature.parameters), last(declarationOrSignature.parameters), parameterDeclarations, {\n        joiner: \", \",\n        indentation: 0,\n        leadingTriviaOption: ts_textChanges_exports.LeadingTriviaOption.IncludeAll,\n        trailingTriviaOption: ts_textChanges_exports.TrailingTriviaOption.Include\n      });\n    }\n  }\n  function getGroupedReferences(functionDeclaration, program, cancellationToken) {\n    const functionNames = getFunctionNames(functionDeclaration);\n    const classNames = isConstructorDeclaration(functionDeclaration) ? getClassNames(functionDeclaration) : [];\n    const names = deduplicate([...functionNames, ...classNames], equateValues);\n    const checker = program.getTypeChecker();\n    const references = flatMap(names, (name) => ts_FindAllReferences_exports.getReferenceEntriesForNode(-1, name, program, program.getSourceFiles(), cancellationToken));\n    const groupedReferences = groupReferences(references);\n    if (!every(groupedReferences.declarations, (decl) => contains(names, decl))) {\n      groupedReferences.valid = false;\n    }\n    return groupedReferences;\n    function groupReferences(referenceEntries) {\n      const classReferences = { accessExpressions: [], typeUsages: [] };\n      const groupedReferences2 = { functionCalls: [], declarations: [], classReferences, valid: true };\n      const functionSymbols = map(functionNames, getSymbolTargetAtLocation);\n      const classSymbols = map(classNames, getSymbolTargetAtLocation);\n      const isConstructor = isConstructorDeclaration(functionDeclaration);\n      const contextualSymbols = map(functionNames, (name) => getSymbolForContextualType(name, checker));\n      for (const entry of referenceEntries) {\n        if (entry.kind === ts_FindAllReferences_exports.EntryKind.Span) {\n          groupedReferences2.valid = false;\n          continue;\n        }\n        if (contains(contextualSymbols, getSymbolTargetAtLocation(entry.node))) {\n          if (isValidMethodSignature(entry.node.parent)) {\n            groupedReferences2.signature = entry.node.parent;\n            continue;\n          }\n          const call = entryToFunctionCall(entry);\n          if (call) {\n            groupedReferences2.functionCalls.push(call);\n            continue;\n          }\n        }\n        const contextualSymbol = getSymbolForContextualType(entry.node, checker);\n        if (contextualSymbol && contains(contextualSymbols, contextualSymbol)) {\n          const decl = entryToDeclaration(entry);\n          if (decl) {\n            groupedReferences2.declarations.push(decl);\n            continue;\n          }\n        }\n        if (contains(functionSymbols, getSymbolTargetAtLocation(entry.node)) || isNewExpressionTarget(entry.node)) {\n          const importOrExportReference = entryToImportOrExport(entry);\n          if (importOrExportReference) {\n            continue;\n          }\n          const decl = entryToDeclaration(entry);\n          if (decl) {\n            groupedReferences2.declarations.push(decl);\n            continue;\n          }\n          const call = entryToFunctionCall(entry);\n          if (call) {\n            groupedReferences2.functionCalls.push(call);\n            continue;\n          }\n        }\n        if (isConstructor && contains(classSymbols, getSymbolTargetAtLocation(entry.node))) {\n          const importOrExportReference = entryToImportOrExport(entry);\n          if (importOrExportReference) {\n            continue;\n          }\n          const decl = entryToDeclaration(entry);\n          if (decl) {\n            groupedReferences2.declarations.push(decl);\n            continue;\n          }\n          const accessExpression = entryToAccessExpression(entry);\n          if (accessExpression) {\n            classReferences.accessExpressions.push(accessExpression);\n            continue;\n          }\n          if (isClassDeclaration(functionDeclaration.parent)) {\n            const type = entryToType(entry);\n            if (type) {\n              classReferences.typeUsages.push(type);\n              continue;\n            }\n          }\n        }\n        groupedReferences2.valid = false;\n      }\n      return groupedReferences2;\n    }\n    function getSymbolTargetAtLocation(node) {\n      const symbol = checker.getSymbolAtLocation(node);\n      return symbol && getSymbolTarget(symbol, checker);\n    }\n  }\n  function getSymbolForContextualType(node, checker) {\n    const element = getContainingObjectLiteralElement(node);\n    if (element) {\n      const contextualType = checker.getContextualTypeForObjectLiteralElement(element);\n      const symbol = contextualType == null ? void 0 : contextualType.getSymbol();\n      if (symbol && !(getCheckFlags(symbol) & 6)) {\n        return symbol;\n      }\n    }\n  }\n  function entryToImportOrExport(entry) {\n    const node = entry.node;\n    if (isImportSpecifier(node.parent) || isImportClause(node.parent) || isImportEqualsDeclaration(node.parent) || isNamespaceImport(node.parent)) {\n      return node;\n    }\n    if (isExportSpecifier(node.parent) || isExportAssignment(node.parent)) {\n      return node;\n    }\n    return void 0;\n  }\n  function entryToDeclaration(entry) {\n    if (isDeclaration(entry.node.parent)) {\n      return entry.node;\n    }\n    return void 0;\n  }\n  function entryToFunctionCall(entry) {\n    if (entry.node.parent) {\n      const functionReference = entry.node;\n      const parent2 = functionReference.parent;\n      switch (parent2.kind) {\n        case 210:\n        case 211:\n          const callOrNewExpression = tryCast(parent2, isCallOrNewExpression);\n          if (callOrNewExpression && callOrNewExpression.expression === functionReference) {\n            return callOrNewExpression;\n          }\n          break;\n        case 208:\n          const propertyAccessExpression = tryCast(parent2, isPropertyAccessExpression);\n          if (propertyAccessExpression && propertyAccessExpression.parent && propertyAccessExpression.name === functionReference) {\n            const callOrNewExpression2 = tryCast(propertyAccessExpression.parent, isCallOrNewExpression);\n            if (callOrNewExpression2 && callOrNewExpression2.expression === propertyAccessExpression) {\n              return callOrNewExpression2;\n            }\n          }\n          break;\n        case 209:\n          const elementAccessExpression = tryCast(parent2, isElementAccessExpression);\n          if (elementAccessExpression && elementAccessExpression.parent && elementAccessExpression.argumentExpression === functionReference) {\n            const callOrNewExpression2 = tryCast(elementAccessExpression.parent, isCallOrNewExpression);\n            if (callOrNewExpression2 && callOrNewExpression2.expression === elementAccessExpression) {\n              return callOrNewExpression2;\n            }\n          }\n          break;\n      }\n    }\n    return void 0;\n  }\n  function entryToAccessExpression(entry) {\n    if (entry.node.parent) {\n      const reference = entry.node;\n      const parent2 = reference.parent;\n      switch (parent2.kind) {\n        case 208:\n          const propertyAccessExpression = tryCast(parent2, isPropertyAccessExpression);\n          if (propertyAccessExpression && propertyAccessExpression.expression === reference) {\n            return propertyAccessExpression;\n          }\n          break;\n        case 209:\n          const elementAccessExpression = tryCast(parent2, isElementAccessExpression);\n          if (elementAccessExpression && elementAccessExpression.expression === reference) {\n            return elementAccessExpression;\n          }\n          break;\n      }\n    }\n    return void 0;\n  }\n  function entryToType(entry) {\n    const reference = entry.node;\n    if (getMeaningFromLocation(reference) === 2 || isExpressionWithTypeArgumentsInClassExtendsClause(reference.parent)) {\n      return reference;\n    }\n    return void 0;\n  }\n  function getFunctionDeclarationAtPosition(file, startPosition, checker) {\n    const node = getTouchingToken(file, startPosition);\n    const functionDeclaration = getContainingFunctionDeclaration(node);\n    if (isTopLevelJSDoc(node))\n      return void 0;\n    if (functionDeclaration && isValidFunctionDeclaration(functionDeclaration, checker) && rangeContainsRange(functionDeclaration, node) && !(functionDeclaration.body && rangeContainsRange(functionDeclaration.body, node)))\n      return functionDeclaration;\n    return void 0;\n  }\n  function isTopLevelJSDoc(node) {\n    const containingJSDoc = findAncestor(node, isJSDocNode);\n    if (containingJSDoc) {\n      const containingNonJSDoc = findAncestor(containingJSDoc, (n) => !isJSDocNode(n));\n      return !!containingNonJSDoc && isFunctionLikeDeclaration(containingNonJSDoc);\n    }\n    return false;\n  }\n  function isValidMethodSignature(node) {\n    return isMethodSignature(node) && (isInterfaceDeclaration(node.parent) || isTypeLiteralNode(node.parent));\n  }\n  function isValidFunctionDeclaration(functionDeclaration, checker) {\n    var _a2;\n    if (!isValidParameterNodeArray(functionDeclaration.parameters, checker))\n      return false;\n    switch (functionDeclaration.kind) {\n      case 259:\n        return hasNameOrDefault(functionDeclaration) && isSingleImplementation(functionDeclaration, checker);\n      case 171:\n        if (isObjectLiteralExpression(functionDeclaration.parent)) {\n          const contextualSymbol = getSymbolForContextualType(functionDeclaration.name, checker);\n          return ((_a2 = contextualSymbol == null ? void 0 : contextualSymbol.declarations) == null ? void 0 : _a2.length) === 1 && isSingleImplementation(functionDeclaration, checker);\n        }\n        return isSingleImplementation(functionDeclaration, checker);\n      case 173:\n        if (isClassDeclaration(functionDeclaration.parent)) {\n          return hasNameOrDefault(functionDeclaration.parent) && isSingleImplementation(functionDeclaration, checker);\n        } else {\n          return isValidVariableDeclaration(functionDeclaration.parent.parent) && isSingleImplementation(functionDeclaration, checker);\n        }\n      case 215:\n      case 216:\n        return isValidVariableDeclaration(functionDeclaration.parent);\n    }\n    return false;\n  }\n  function isSingleImplementation(functionDeclaration, checker) {\n    return !!functionDeclaration.body && !checker.isImplementationOfOverload(functionDeclaration);\n  }\n  function hasNameOrDefault(functionOrClassDeclaration) {\n    if (!functionOrClassDeclaration.name) {\n      const defaultKeyword = findModifier(functionOrClassDeclaration, 88);\n      return !!defaultKeyword;\n    }\n    return true;\n  }\n  function isValidParameterNodeArray(parameters, checker) {\n    return getRefactorableParametersLength(parameters) >= minimumParameterLength && every(parameters, (paramDecl) => isValidParameterDeclaration(paramDecl, checker));\n  }\n  function isValidParameterDeclaration(parameterDeclaration, checker) {\n    if (isRestParameter(parameterDeclaration)) {\n      const type = checker.getTypeAtLocation(parameterDeclaration);\n      if (!checker.isArrayType(type) && !checker.isTupleType(type))\n        return false;\n    }\n    return !parameterDeclaration.modifiers && isIdentifier(parameterDeclaration.name);\n  }\n  function isValidVariableDeclaration(node) {\n    return isVariableDeclaration(node) && isVarConst(node) && isIdentifier(node.name) && !node.type;\n  }\n  function hasThisParameter(parameters) {\n    return parameters.length > 0 && isThis(parameters[0].name);\n  }\n  function getRefactorableParametersLength(parameters) {\n    if (hasThisParameter(parameters)) {\n      return parameters.length - 1;\n    }\n    return parameters.length;\n  }\n  function getRefactorableParameters(parameters) {\n    if (hasThisParameter(parameters)) {\n      parameters = factory.createNodeArray(parameters.slice(1), parameters.hasTrailingComma);\n    }\n    return parameters;\n  }\n  function createPropertyOrShorthandAssignment(name, initializer) {\n    if (isIdentifier(initializer) && getTextOfIdentifierOrLiteral(initializer) === name) {\n      return factory.createShorthandPropertyAssignment(name);\n    }\n    return factory.createPropertyAssignment(name, initializer);\n  }\n  function createNewArgument(functionDeclaration, functionArguments) {\n    const parameters = getRefactorableParameters(functionDeclaration.parameters);\n    const hasRestParameter2 = isRestParameter(last(parameters));\n    const nonRestArguments = hasRestParameter2 ? functionArguments.slice(0, parameters.length - 1) : functionArguments;\n    const properties = map(nonRestArguments, (arg, i) => {\n      const parameterName = getParameterName(parameters[i]);\n      const property = createPropertyOrShorthandAssignment(parameterName, arg);\n      suppressLeadingAndTrailingTrivia(property.name);\n      if (isPropertyAssignment(property))\n        suppressLeadingAndTrailingTrivia(property.initializer);\n      copyComments(arg, property);\n      return property;\n    });\n    if (hasRestParameter2 && functionArguments.length >= parameters.length) {\n      const restArguments = functionArguments.slice(parameters.length - 1);\n      const restProperty = factory.createPropertyAssignment(getParameterName(last(parameters)), factory.createArrayLiteralExpression(restArguments));\n      properties.push(restProperty);\n    }\n    const objectLiteral = factory.createObjectLiteralExpression(properties, false);\n    return objectLiteral;\n  }\n  function createNewParameters(functionDeclaration, program, host) {\n    const checker = program.getTypeChecker();\n    const refactorableParameters = getRefactorableParameters(functionDeclaration.parameters);\n    const bindingElements = map(refactorableParameters, createBindingElementFromParameterDeclaration);\n    const objectParameterName = factory.createObjectBindingPattern(bindingElements);\n    const objectParameterType = createParameterTypeNode(refactorableParameters);\n    let objectInitializer;\n    if (every(refactorableParameters, isOptionalParameter)) {\n      objectInitializer = factory.createObjectLiteralExpression();\n    }\n    const objectParameter = factory.createParameterDeclaration(void 0, void 0, objectParameterName, void 0, objectParameterType, objectInitializer);\n    if (hasThisParameter(functionDeclaration.parameters)) {\n      const thisParameter = functionDeclaration.parameters[0];\n      const newThisParameter = factory.createParameterDeclaration(void 0, void 0, thisParameter.name, void 0, thisParameter.type);\n      suppressLeadingAndTrailingTrivia(newThisParameter.name);\n      copyComments(thisParameter.name, newThisParameter.name);\n      if (thisParameter.type) {\n        suppressLeadingAndTrailingTrivia(newThisParameter.type);\n        copyComments(thisParameter.type, newThisParameter.type);\n      }\n      return factory.createNodeArray([newThisParameter, objectParameter]);\n    }\n    return factory.createNodeArray([objectParameter]);\n    function createBindingElementFromParameterDeclaration(parameterDeclaration) {\n      const element = factory.createBindingElement(void 0, void 0, getParameterName(parameterDeclaration), isRestParameter(parameterDeclaration) && isOptionalParameter(parameterDeclaration) ? factory.createArrayLiteralExpression() : parameterDeclaration.initializer);\n      suppressLeadingAndTrailingTrivia(element);\n      if (parameterDeclaration.initializer && element.initializer) {\n        copyComments(parameterDeclaration.initializer, element.initializer);\n      }\n      return element;\n    }\n    function createParameterTypeNode(parameters) {\n      const members = map(parameters, createPropertySignatureFromParameterDeclaration);\n      const typeNode = addEmitFlags(factory.createTypeLiteralNode(members), 1);\n      return typeNode;\n    }\n    function createPropertySignatureFromParameterDeclaration(parameterDeclaration) {\n      let parameterType = parameterDeclaration.type;\n      if (!parameterType && (parameterDeclaration.initializer || isRestParameter(parameterDeclaration))) {\n        parameterType = getTypeNode3(parameterDeclaration);\n      }\n      const propertySignature = factory.createPropertySignature(void 0, getParameterName(parameterDeclaration), isOptionalParameter(parameterDeclaration) ? factory.createToken(57) : parameterDeclaration.questionToken, parameterType);\n      suppressLeadingAndTrailingTrivia(propertySignature);\n      copyComments(parameterDeclaration.name, propertySignature.name);\n      if (parameterDeclaration.type && propertySignature.type) {\n        copyComments(parameterDeclaration.type, propertySignature.type);\n      }\n      return propertySignature;\n    }\n    function getTypeNode3(node) {\n      const type = checker.getTypeAtLocation(node);\n      return getTypeNodeIfAccessible(type, node, program, host);\n    }\n    function isOptionalParameter(parameterDeclaration) {\n      if (isRestParameter(parameterDeclaration)) {\n        const type = checker.getTypeAtLocation(parameterDeclaration);\n        return !checker.isTupleType(type);\n      }\n      return checker.isOptionalParameter(parameterDeclaration);\n    }\n  }\n  function getParameterName(paramDeclaration) {\n    return getTextOfIdentifierOrLiteral(paramDeclaration.name);\n  }\n  function getClassNames(constructorDeclaration) {\n    switch (constructorDeclaration.parent.kind) {\n      case 260:\n        const classDeclaration = constructorDeclaration.parent;\n        if (classDeclaration.name)\n          return [classDeclaration.name];\n        const defaultModifier = Debug.checkDefined(findModifier(classDeclaration, 88), \"Nameless class declaration should be a default export\");\n        return [defaultModifier];\n      case 228:\n        const classExpression = constructorDeclaration.parent;\n        const variableDeclaration = constructorDeclaration.parent.parent;\n        const className = classExpression.name;\n        if (className)\n          return [className, variableDeclaration.name];\n        return [variableDeclaration.name];\n    }\n  }\n  function getFunctionNames(functionDeclaration) {\n    switch (functionDeclaration.kind) {\n      case 259:\n        if (functionDeclaration.name)\n          return [functionDeclaration.name];\n        const defaultModifier = Debug.checkDefined(findModifier(functionDeclaration, 88), \"Nameless function declaration should be a default export\");\n        return [defaultModifier];\n      case 171:\n        return [functionDeclaration.name];\n      case 173:\n        const ctrKeyword = Debug.checkDefined(findChildOfKind(functionDeclaration, 135, functionDeclaration.getSourceFile()), \"Constructor declaration should have constructor keyword\");\n        if (functionDeclaration.parent.kind === 228) {\n          const variableDeclaration = functionDeclaration.parent.parent;\n          return [variableDeclaration.name, ctrKeyword];\n        }\n        return [ctrKeyword];\n      case 216:\n        return [functionDeclaration.parent.name];\n      case 215:\n        if (functionDeclaration.name)\n          return [functionDeclaration.name, functionDeclaration.parent.name];\n        return [functionDeclaration.parent.name];\n      default:\n        return Debug.assertNever(functionDeclaration, `Unexpected function declaration kind ${functionDeclaration.kind}`);\n    }\n  }\n  var refactorName8, minimumParameterLength, refactorDescription4, toDestructuredAction;\n  var init_convertParamsToDestructuredObject = __esm({\n    \"src/services/refactors/convertParamsToDestructuredObject.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_refactor();\n      refactorName8 = \"Convert parameters to destructured object\";\n      minimumParameterLength = 1;\n      refactorDescription4 = getLocaleSpecificMessage(Diagnostics.Convert_parameters_to_destructured_object);\n      toDestructuredAction = {\n        name: refactorName8,\n        description: refactorDescription4,\n        kind: \"refactor.rewrite.parameters.toDestructured\"\n      };\n      registerRefactor(refactorName8, {\n        kinds: [toDestructuredAction.kind],\n        getEditsForAction: getRefactorEditsToConvertParametersToDestructuredObject,\n        getAvailableActions: getRefactorActionsToConvertParametersToDestructuredObject\n      });\n    }\n  });\n  var ts_refactor_convertParamsToDestructuredObject_exports = {};\n  var init_ts_refactor_convertParamsToDestructuredObject = __esm({\n    \"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts\"() {\n      \"use strict\";\n      init_convertParamsToDestructuredObject();\n    }\n  });\n  function getRefactorActionsToConvertToTemplateString(context) {\n    const { file, startPosition } = context;\n    const node = getNodeOrParentOfParentheses(file, startPosition);\n    const maybeBinary = getParentBinaryExpression(node);\n    const refactorInfo = { name: refactorName9, description: refactorDescription5, actions: [] };\n    if (isBinaryExpression(maybeBinary) && treeToArray(maybeBinary).isValidConcatenation) {\n      refactorInfo.actions.push(convertStringAction);\n      return [refactorInfo];\n    } else if (context.preferences.provideRefactorNotApplicableReason) {\n      refactorInfo.actions.push({\n        ...convertStringAction,\n        notApplicableReason: getLocaleSpecificMessage(Diagnostics.Can_only_convert_string_concatenation)\n      });\n      return [refactorInfo];\n    }\n    return emptyArray;\n  }\n  function getNodeOrParentOfParentheses(file, startPosition) {\n    const node = getTokenAtPosition(file, startPosition);\n    const nestedBinary = getParentBinaryExpression(node);\n    const isNonStringBinary = !treeToArray(nestedBinary).isValidConcatenation;\n    if (isNonStringBinary && isParenthesizedExpression(nestedBinary.parent) && isBinaryExpression(nestedBinary.parent.parent)) {\n      return nestedBinary.parent.parent;\n    }\n    return node;\n  }\n  function getRefactorEditsToConvertToTemplateString(context, actionName2) {\n    const { file, startPosition } = context;\n    const node = getNodeOrParentOfParentheses(file, startPosition);\n    switch (actionName2) {\n      case refactorDescription5:\n        return { edits: getEditsForToTemplateLiteral(context, node) };\n      default:\n        return Debug.fail(\"invalid action\");\n    }\n  }\n  function getEditsForToTemplateLiteral(context, node) {\n    const maybeBinary = getParentBinaryExpression(node);\n    const file = context.file;\n    const templateLiteral = nodesToTemplate(treeToArray(maybeBinary), file);\n    const trailingCommentRanges = getTrailingCommentRanges(file.text, maybeBinary.end);\n    if (trailingCommentRanges) {\n      const lastComment = trailingCommentRanges[trailingCommentRanges.length - 1];\n      const trailingRange = { pos: trailingCommentRanges[0].pos, end: lastComment.end };\n      return ts_textChanges_exports.ChangeTracker.with(context, (t) => {\n        t.deleteRange(file, trailingRange);\n        t.replaceNode(file, maybeBinary, templateLiteral);\n      });\n    } else {\n      return ts_textChanges_exports.ChangeTracker.with(context, (t) => t.replaceNode(file, maybeBinary, templateLiteral));\n    }\n  }\n  function isNotEqualsOperator(node) {\n    return node.operatorToken.kind !== 63;\n  }\n  function getParentBinaryExpression(expr) {\n    const container = findAncestor(expr.parent, (n) => {\n      switch (n.kind) {\n        case 208:\n        case 209:\n          return false;\n        case 225:\n        case 223:\n          return !(isBinaryExpression(n.parent) && isNotEqualsOperator(n.parent));\n        default:\n          return \"quit\";\n      }\n    });\n    return container || expr;\n  }\n  function treeToArray(current) {\n    const loop = (current2) => {\n      if (!isBinaryExpression(current2)) {\n        return {\n          nodes: [current2],\n          operators: [],\n          validOperators: true,\n          hasString: isStringLiteral(current2) || isNoSubstitutionTemplateLiteral(current2)\n        };\n      }\n      const { nodes: nodes2, operators: operators2, hasString: leftHasString, validOperators: leftOperatorValid } = loop(current2.left);\n      if (!(leftHasString || isStringLiteral(current2.right) || isTemplateExpression(current2.right))) {\n        return { nodes: [current2], operators: [], hasString: false, validOperators: true };\n      }\n      const currentOperatorValid = current2.operatorToken.kind === 39;\n      const validOperators2 = leftOperatorValid && currentOperatorValid;\n      nodes2.push(current2.right);\n      operators2.push(current2.operatorToken);\n      return { nodes: nodes2, operators: operators2, hasString: true, validOperators: validOperators2 };\n    };\n    const { nodes, operators, validOperators, hasString } = loop(current);\n    return { nodes, operators, isValidConcatenation: validOperators && hasString };\n  }\n  function escapeRawStringForTemplate(s) {\n    return s.replace(/\\\\.|[$`]/g, (m) => m[0] === \"\\\\\" ? m : \"\\\\\" + m);\n  }\n  function getRawTextOfTemplate(node) {\n    const rightShaving = isTemplateHead(node) || isTemplateMiddle(node) ? -2 : -1;\n    return getTextOfNode(node).slice(1, rightShaving);\n  }\n  function concatConsecutiveString(index, nodes) {\n    const indexes = [];\n    let text = \"\", rawText = \"\";\n    while (index < nodes.length) {\n      const node = nodes[index];\n      if (isStringLiteralLike(node)) {\n        text += node.text;\n        rawText += escapeRawStringForTemplate(getTextOfNode(node).slice(1, -1));\n        indexes.push(index);\n        index++;\n      } else if (isTemplateExpression(node)) {\n        text += node.head.text;\n        rawText += getRawTextOfTemplate(node.head);\n        break;\n      } else {\n        break;\n      }\n    }\n    return [index, text, rawText, indexes];\n  }\n  function nodesToTemplate({ nodes, operators }, file) {\n    const copyOperatorComments = copyTrailingOperatorComments(operators, file);\n    const copyCommentFromStringLiterals = copyCommentFromMultiNode(nodes, file, copyOperatorComments);\n    const [begin, headText, rawHeadText, headIndexes] = concatConsecutiveString(0, nodes);\n    if (begin === nodes.length) {\n      const noSubstitutionTemplateLiteral = factory.createNoSubstitutionTemplateLiteral(headText, rawHeadText);\n      copyCommentFromStringLiterals(headIndexes, noSubstitutionTemplateLiteral);\n      return noSubstitutionTemplateLiteral;\n    }\n    const templateSpans = [];\n    const templateHead = factory.createTemplateHead(headText, rawHeadText);\n    copyCommentFromStringLiterals(headIndexes, templateHead);\n    for (let i = begin; i < nodes.length; i++) {\n      const currentNode = getExpressionFromParenthesesOrExpression(nodes[i]);\n      copyOperatorComments(i, currentNode);\n      const [newIndex, subsequentText, rawSubsequentText, stringIndexes] = concatConsecutiveString(i + 1, nodes);\n      i = newIndex - 1;\n      const isLast = i === nodes.length - 1;\n      if (isTemplateExpression(currentNode)) {\n        const spans = map(currentNode.templateSpans, (span, index) => {\n          copyExpressionComments(span);\n          const isLastSpan = index === currentNode.templateSpans.length - 1;\n          const text = span.literal.text + (isLastSpan ? subsequentText : \"\");\n          const rawText = getRawTextOfTemplate(span.literal) + (isLastSpan ? rawSubsequentText : \"\");\n          return factory.createTemplateSpan(span.expression, isLast && isLastSpan ? factory.createTemplateTail(text, rawText) : factory.createTemplateMiddle(text, rawText));\n        });\n        templateSpans.push(...spans);\n      } else {\n        const templatePart = isLast ? factory.createTemplateTail(subsequentText, rawSubsequentText) : factory.createTemplateMiddle(subsequentText, rawSubsequentText);\n        copyCommentFromStringLiterals(stringIndexes, templatePart);\n        templateSpans.push(factory.createTemplateSpan(currentNode, templatePart));\n      }\n    }\n    return factory.createTemplateExpression(templateHead, templateSpans);\n  }\n  function copyExpressionComments(node) {\n    const file = node.getSourceFile();\n    copyTrailingComments(node, node.expression, file, 3, false);\n    copyTrailingAsLeadingComments(node.expression, node.expression, file, 3, false);\n  }\n  function getExpressionFromParenthesesOrExpression(node) {\n    if (isParenthesizedExpression(node)) {\n      copyExpressionComments(node);\n      node = node.expression;\n    }\n    return node;\n  }\n  var refactorName9, refactorDescription5, convertStringAction, copyTrailingOperatorComments, copyCommentFromMultiNode;\n  var init_convertStringOrTemplateLiteral = __esm({\n    \"src/services/refactors/convertStringOrTemplateLiteral.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_refactor();\n      refactorName9 = \"Convert to template string\";\n      refactorDescription5 = getLocaleSpecificMessage(Diagnostics.Convert_to_template_string);\n      convertStringAction = {\n        name: refactorName9,\n        description: refactorDescription5,\n        kind: \"refactor.rewrite.string\"\n      };\n      registerRefactor(refactorName9, {\n        kinds: [convertStringAction.kind],\n        getEditsForAction: getRefactorEditsToConvertToTemplateString,\n        getAvailableActions: getRefactorActionsToConvertToTemplateString\n      });\n      copyTrailingOperatorComments = (operators, file) => (index, targetNode) => {\n        if (index < operators.length) {\n          copyTrailingComments(operators[index], targetNode, file, 3, false);\n        }\n      };\n      copyCommentFromMultiNode = (nodes, file, copyOperatorComments) => (indexes, targetNode) => {\n        while (indexes.length > 0) {\n          const index = indexes.shift();\n          copyTrailingComments(nodes[index], targetNode, file, 3, false);\n          copyOperatorComments(index, targetNode);\n        }\n      };\n    }\n  });\n  var ts_refactor_convertStringOrTemplateLiteral_exports = {};\n  var init_ts_refactor_convertStringOrTemplateLiteral = __esm({\n    \"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts\"() {\n      \"use strict\";\n      init_convertStringOrTemplateLiteral();\n    }\n  });\n  function getRefactorActionsToConvertToOptionalChain(context) {\n    const info = getInfo20(context, context.triggerReason === \"invoked\");\n    if (!info)\n      return emptyArray;\n    if (!isRefactorErrorInfo(info)) {\n      return [{\n        name: refactorName10,\n        description: convertToOptionalChainExpressionMessage,\n        actions: [toOptionalChainAction]\n      }];\n    }\n    if (context.preferences.provideRefactorNotApplicableReason) {\n      return [{\n        name: refactorName10,\n        description: convertToOptionalChainExpressionMessage,\n        actions: [{ ...toOptionalChainAction, notApplicableReason: info.error }]\n      }];\n    }\n    return emptyArray;\n  }\n  function getRefactorEditsToConvertToOptionalChain(context, actionName2) {\n    const info = getInfo20(context);\n    Debug.assert(info && !isRefactorErrorInfo(info), \"Expected applicable refactor info\");\n    const edits = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange37(context.file, context.program.getTypeChecker(), t, info, actionName2));\n    return { edits, renameFilename: void 0, renameLocation: void 0 };\n  }\n  function isValidExpression(node) {\n    return isBinaryExpression(node) || isConditionalExpression(node);\n  }\n  function isValidStatement(node) {\n    return isExpressionStatement(node) || isReturnStatement(node) || isVariableStatement(node);\n  }\n  function isValidExpressionOrStatement(node) {\n    return isValidExpression(node) || isValidStatement(node);\n  }\n  function getInfo20(context, considerEmptySpans = true) {\n    const { file, program } = context;\n    const span = getRefactorContextSpan(context);\n    const forEmptySpan = span.length === 0;\n    if (forEmptySpan && !considerEmptySpans)\n      return void 0;\n    const startToken = getTokenAtPosition(file, span.start);\n    const endToken = findTokenOnLeftOfPosition(file, span.start + span.length);\n    const adjustedSpan = createTextSpanFromBounds(startToken.pos, endToken && endToken.end >= startToken.pos ? endToken.getEnd() : startToken.getEnd());\n    const parent2 = forEmptySpan ? getValidParentNodeOfEmptySpan(startToken) : getValidParentNodeContainingSpan(startToken, adjustedSpan);\n    const expression = parent2 && isValidExpressionOrStatement(parent2) ? getExpression(parent2) : void 0;\n    if (!expression)\n      return { error: getLocaleSpecificMessage(Diagnostics.Could_not_find_convertible_access_expression) };\n    const checker = program.getTypeChecker();\n    return isConditionalExpression(expression) ? getConditionalInfo(expression, checker) : getBinaryInfo(expression);\n  }\n  function getConditionalInfo(expression, checker) {\n    const condition = expression.condition;\n    const finalExpression = getFinalExpressionInChain(expression.whenTrue);\n    if (!finalExpression || checker.isNullableType(checker.getTypeAtLocation(finalExpression))) {\n      return { error: getLocaleSpecificMessage(Diagnostics.Could_not_find_convertible_access_expression) };\n    }\n    if ((isPropertyAccessExpression(condition) || isIdentifier(condition)) && getMatchingStart(condition, finalExpression.expression)) {\n      return { finalExpression, occurrences: [condition], expression };\n    } else if (isBinaryExpression(condition)) {\n      const occurrences = getOccurrencesInExpression(finalExpression.expression, condition);\n      return occurrences ? { finalExpression, occurrences, expression } : { error: getLocaleSpecificMessage(Diagnostics.Could_not_find_matching_access_expressions) };\n    }\n  }\n  function getBinaryInfo(expression) {\n    if (expression.operatorToken.kind !== 55) {\n      return { error: getLocaleSpecificMessage(Diagnostics.Can_only_convert_logical_AND_access_chains) };\n    }\n    const finalExpression = getFinalExpressionInChain(expression.right);\n    if (!finalExpression)\n      return { error: getLocaleSpecificMessage(Diagnostics.Could_not_find_convertible_access_expression) };\n    const occurrences = getOccurrencesInExpression(finalExpression.expression, expression.left);\n    return occurrences ? { finalExpression, occurrences, expression } : { error: getLocaleSpecificMessage(Diagnostics.Could_not_find_matching_access_expressions) };\n  }\n  function getOccurrencesInExpression(matchTo, expression) {\n    const occurrences = [];\n    while (isBinaryExpression(expression) && expression.operatorToken.kind === 55) {\n      const match = getMatchingStart(skipParentheses(matchTo), skipParentheses(expression.right));\n      if (!match) {\n        break;\n      }\n      occurrences.push(match);\n      matchTo = match;\n      expression = expression.left;\n    }\n    const finalMatch = getMatchingStart(matchTo, expression);\n    if (finalMatch) {\n      occurrences.push(finalMatch);\n    }\n    return occurrences.length > 0 ? occurrences : void 0;\n  }\n  function getMatchingStart(chain, subchain) {\n    if (!isIdentifier(subchain) && !isPropertyAccessExpression(subchain) && !isElementAccessExpression(subchain)) {\n      return void 0;\n    }\n    return chainStartsWith(chain, subchain) ? subchain : void 0;\n  }\n  function chainStartsWith(chain, subchain) {\n    while (isCallExpression(chain) || isPropertyAccessExpression(chain) || isElementAccessExpression(chain)) {\n      if (getTextOfChainNode(chain) === getTextOfChainNode(subchain))\n        break;\n      chain = chain.expression;\n    }\n    while (isPropertyAccessExpression(chain) && isPropertyAccessExpression(subchain) || isElementAccessExpression(chain) && isElementAccessExpression(subchain)) {\n      if (getTextOfChainNode(chain) !== getTextOfChainNode(subchain))\n        return false;\n      chain = chain.expression;\n      subchain = subchain.expression;\n    }\n    return isIdentifier(chain) && isIdentifier(subchain) && chain.getText() === subchain.getText();\n  }\n  function getTextOfChainNode(node) {\n    if (isIdentifier(node) || isStringOrNumericLiteralLike(node)) {\n      return node.getText();\n    }\n    if (isPropertyAccessExpression(node)) {\n      return getTextOfChainNode(node.name);\n    }\n    if (isElementAccessExpression(node)) {\n      return getTextOfChainNode(node.argumentExpression);\n    }\n    return void 0;\n  }\n  function getValidParentNodeContainingSpan(node, span) {\n    while (node.parent) {\n      if (isValidExpressionOrStatement(node) && span.length !== 0 && node.end >= span.start + span.length) {\n        return node;\n      }\n      node = node.parent;\n    }\n    return void 0;\n  }\n  function getValidParentNodeOfEmptySpan(node) {\n    while (node.parent) {\n      if (isValidExpressionOrStatement(node) && !isValidExpressionOrStatement(node.parent)) {\n        return node;\n      }\n      node = node.parent;\n    }\n    return void 0;\n  }\n  function getExpression(node) {\n    if (isValidExpression(node)) {\n      return node;\n    }\n    if (isVariableStatement(node)) {\n      const variable = getSingleVariableOfVariableStatement(node);\n      const initializer = variable == null ? void 0 : variable.initializer;\n      return initializer && isValidExpression(initializer) ? initializer : void 0;\n    }\n    return node.expression && isValidExpression(node.expression) ? node.expression : void 0;\n  }\n  function getFinalExpressionInChain(node) {\n    node = skipParentheses(node);\n    if (isBinaryExpression(node)) {\n      return getFinalExpressionInChain(node.left);\n    } else if ((isPropertyAccessExpression(node) || isElementAccessExpression(node) || isCallExpression(node)) && !isOptionalChain(node)) {\n      return node;\n    }\n    return void 0;\n  }\n  function convertOccurrences(checker, toConvert, occurrences) {\n    if (isPropertyAccessExpression(toConvert) || isElementAccessExpression(toConvert) || isCallExpression(toConvert)) {\n      const chain = convertOccurrences(checker, toConvert.expression, occurrences);\n      const lastOccurrence = occurrences.length > 0 ? occurrences[occurrences.length - 1] : void 0;\n      const isOccurrence = (lastOccurrence == null ? void 0 : lastOccurrence.getText()) === toConvert.expression.getText();\n      if (isOccurrence)\n        occurrences.pop();\n      if (isCallExpression(toConvert)) {\n        return isOccurrence ? factory.createCallChain(chain, factory.createToken(28), toConvert.typeArguments, toConvert.arguments) : factory.createCallChain(chain, toConvert.questionDotToken, toConvert.typeArguments, toConvert.arguments);\n      } else if (isPropertyAccessExpression(toConvert)) {\n        return isOccurrence ? factory.createPropertyAccessChain(chain, factory.createToken(28), toConvert.name) : factory.createPropertyAccessChain(chain, toConvert.questionDotToken, toConvert.name);\n      } else if (isElementAccessExpression(toConvert)) {\n        return isOccurrence ? factory.createElementAccessChain(chain, factory.createToken(28), toConvert.argumentExpression) : factory.createElementAccessChain(chain, toConvert.questionDotToken, toConvert.argumentExpression);\n      }\n    }\n    return toConvert;\n  }\n  function doChange37(sourceFile, checker, changes, info, _actionName) {\n    const { finalExpression, occurrences, expression } = info;\n    const firstOccurrence = occurrences[occurrences.length - 1];\n    const convertedChain = convertOccurrences(checker, finalExpression, occurrences);\n    if (convertedChain && (isPropertyAccessExpression(convertedChain) || isElementAccessExpression(convertedChain) || isCallExpression(convertedChain))) {\n      if (isBinaryExpression(expression)) {\n        changes.replaceNodeRange(sourceFile, firstOccurrence, finalExpression, convertedChain);\n      } else if (isConditionalExpression(expression)) {\n        changes.replaceNode(sourceFile, expression, factory.createBinaryExpression(convertedChain, factory.createToken(60), expression.whenFalse));\n      }\n    }\n  }\n  var refactorName10, convertToOptionalChainExpressionMessage, toOptionalChainAction;\n  var init_convertToOptionalChainExpression = __esm({\n    \"src/services/refactors/convertToOptionalChainExpression.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_refactor();\n      refactorName10 = \"Convert to optional chain expression\";\n      convertToOptionalChainExpressionMessage = getLocaleSpecificMessage(Diagnostics.Convert_to_optional_chain_expression);\n      toOptionalChainAction = {\n        name: refactorName10,\n        description: convertToOptionalChainExpressionMessage,\n        kind: \"refactor.rewrite.expression.optionalChain\"\n      };\n      registerRefactor(refactorName10, {\n        kinds: [toOptionalChainAction.kind],\n        getEditsForAction: getRefactorEditsToConvertToOptionalChain,\n        getAvailableActions: getRefactorActionsToConvertToOptionalChain\n      });\n    }\n  });\n  var ts_refactor_convertToOptionalChainExpression_exports = {};\n  var init_ts_refactor_convertToOptionalChainExpression = __esm({\n    \"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts\"() {\n      \"use strict\";\n      init_convertToOptionalChainExpression();\n    }\n  });\n  function getRefactorActionsToExtractSymbol(context) {\n    const requestedRefactor = context.kind;\n    const rangeToExtract = getRangeToExtract2(context.file, getRefactorContextSpan(context), context.triggerReason === \"invoked\");\n    const targetRange = rangeToExtract.targetRange;\n    if (targetRange === void 0) {\n      if (!rangeToExtract.errors || rangeToExtract.errors.length === 0 || !context.preferences.provideRefactorNotApplicableReason) {\n        return emptyArray;\n      }\n      const errors = [];\n      if (refactorKindBeginsWith(extractFunctionAction.kind, requestedRefactor)) {\n        errors.push({\n          name: refactorName11,\n          description: extractFunctionAction.description,\n          actions: [{ ...extractFunctionAction, notApplicableReason: getStringError(rangeToExtract.errors) }]\n        });\n      }\n      if (refactorKindBeginsWith(extractConstantAction.kind, requestedRefactor)) {\n        errors.push({\n          name: refactorName11,\n          description: extractConstantAction.description,\n          actions: [{ ...extractConstantAction, notApplicableReason: getStringError(rangeToExtract.errors) }]\n        });\n      }\n      return errors;\n    }\n    const extractions = getPossibleExtractions(targetRange, context);\n    if (extractions === void 0) {\n      return emptyArray;\n    }\n    const functionActions = [];\n    const usedFunctionNames = /* @__PURE__ */ new Map();\n    let innermostErrorFunctionAction;\n    const constantActions = [];\n    const usedConstantNames = /* @__PURE__ */ new Map();\n    let innermostErrorConstantAction;\n    let i = 0;\n    for (const { functionExtraction, constantExtraction } of extractions) {\n      if (refactorKindBeginsWith(extractFunctionAction.kind, requestedRefactor)) {\n        const description2 = functionExtraction.description;\n        if (functionExtraction.errors.length === 0) {\n          if (!usedFunctionNames.has(description2)) {\n            usedFunctionNames.set(description2, true);\n            functionActions.push({\n              description: description2,\n              name: `function_scope_${i}`,\n              kind: extractFunctionAction.kind\n            });\n          }\n        } else if (!innermostErrorFunctionAction) {\n          innermostErrorFunctionAction = {\n            description: description2,\n            name: `function_scope_${i}`,\n            notApplicableReason: getStringError(functionExtraction.errors),\n            kind: extractFunctionAction.kind\n          };\n        }\n      }\n      if (refactorKindBeginsWith(extractConstantAction.kind, requestedRefactor)) {\n        const description2 = constantExtraction.description;\n        if (constantExtraction.errors.length === 0) {\n          if (!usedConstantNames.has(description2)) {\n            usedConstantNames.set(description2, true);\n            constantActions.push({\n              description: description2,\n              name: `constant_scope_${i}`,\n              kind: extractConstantAction.kind\n            });\n          }\n        } else if (!innermostErrorConstantAction) {\n          innermostErrorConstantAction = {\n            description: description2,\n            name: `constant_scope_${i}`,\n            notApplicableReason: getStringError(constantExtraction.errors),\n            kind: extractConstantAction.kind\n          };\n        }\n      }\n      i++;\n    }\n    const infos = [];\n    if (functionActions.length) {\n      infos.push({\n        name: refactorName11,\n        description: getLocaleSpecificMessage(Diagnostics.Extract_function),\n        actions: functionActions\n      });\n    } else if (context.preferences.provideRefactorNotApplicableReason && innermostErrorFunctionAction) {\n      infos.push({\n        name: refactorName11,\n        description: getLocaleSpecificMessage(Diagnostics.Extract_function),\n        actions: [innermostErrorFunctionAction]\n      });\n    }\n    if (constantActions.length) {\n      infos.push({\n        name: refactorName11,\n        description: getLocaleSpecificMessage(Diagnostics.Extract_constant),\n        actions: constantActions\n      });\n    } else if (context.preferences.provideRefactorNotApplicableReason && innermostErrorConstantAction) {\n      infos.push({\n        name: refactorName11,\n        description: getLocaleSpecificMessage(Diagnostics.Extract_constant),\n        actions: [innermostErrorConstantAction]\n      });\n    }\n    return infos.length ? infos : emptyArray;\n    function getStringError(errors) {\n      let error = errors[0].messageText;\n      if (typeof error !== \"string\") {\n        error = error.messageText;\n      }\n      return error;\n    }\n  }\n  function getRefactorEditsToExtractSymbol(context, actionName2) {\n    const rangeToExtract = getRangeToExtract2(context.file, getRefactorContextSpan(context));\n    const targetRange = rangeToExtract.targetRange;\n    const parsedFunctionIndexMatch = /^function_scope_(\\d+)$/.exec(actionName2);\n    if (parsedFunctionIndexMatch) {\n      const index = +parsedFunctionIndexMatch[1];\n      Debug.assert(isFinite(index), \"Expected to parse a finite number from the function scope index\");\n      return getFunctionExtractionAtIndex(targetRange, context, index);\n    }\n    const parsedConstantIndexMatch = /^constant_scope_(\\d+)$/.exec(actionName2);\n    if (parsedConstantIndexMatch) {\n      const index = +parsedConstantIndexMatch[1];\n      Debug.assert(isFinite(index), \"Expected to parse a finite number from the constant scope index\");\n      return getConstantExtractionAtIndex(targetRange, context, index);\n    }\n    Debug.fail(\"Unrecognized action name\");\n  }\n  function getRangeToExtract2(sourceFile, span, invoked = true) {\n    const { length: length2 } = span;\n    if (length2 === 0 && !invoked) {\n      return { errors: [createFileDiagnostic(sourceFile, span.start, length2, Messages.cannotExtractEmpty)] };\n    }\n    const cursorRequest = length2 === 0 && invoked;\n    const startToken = findFirstNonJsxWhitespaceToken(sourceFile, span.start);\n    const endToken = findTokenOnLeftOfPosition(sourceFile, textSpanEnd(span));\n    const adjustedSpan = startToken && endToken && invoked ? getAdjustedSpanFromNodes(startToken, endToken, sourceFile) : span;\n    const start = cursorRequest ? getExtractableParent(startToken) : getParentNodeInSpan(startToken, sourceFile, adjustedSpan);\n    const end = cursorRequest ? start : getParentNodeInSpan(endToken, sourceFile, adjustedSpan);\n    let rangeFacts = 0;\n    let thisNode;\n    if (!start || !end) {\n      return { errors: [createFileDiagnostic(sourceFile, span.start, length2, Messages.cannotExtractRange)] };\n    }\n    if (start.flags & 8388608) {\n      return { errors: [createFileDiagnostic(sourceFile, span.start, length2, Messages.cannotExtractJSDoc)] };\n    }\n    if (start.parent !== end.parent) {\n      return { errors: [createFileDiagnostic(sourceFile, span.start, length2, Messages.cannotExtractRange)] };\n    }\n    if (start !== end) {\n      if (!isBlockLike(start.parent)) {\n        return { errors: [createFileDiagnostic(sourceFile, span.start, length2, Messages.cannotExtractRange)] };\n      }\n      const statements = [];\n      for (const statement of start.parent.statements) {\n        if (statement === start || statements.length) {\n          const errors2 = checkNode(statement);\n          if (errors2) {\n            return { errors: errors2 };\n          }\n          statements.push(statement);\n        }\n        if (statement === end) {\n          break;\n        }\n      }\n      if (!statements.length) {\n        return { errors: [createFileDiagnostic(sourceFile, span.start, length2, Messages.cannotExtractRange)] };\n      }\n      return { targetRange: { range: statements, facts: rangeFacts, thisNode } };\n    }\n    if (isReturnStatement(start) && !start.expression) {\n      return { errors: [createFileDiagnostic(sourceFile, span.start, length2, Messages.cannotExtractRange)] };\n    }\n    const node = refineNode(start);\n    const errors = checkRootNode(node) || checkNode(node);\n    if (errors) {\n      return { errors };\n    }\n    return { targetRange: { range: getStatementOrExpressionRange(node), facts: rangeFacts, thisNode } };\n    function refineNode(node2) {\n      if (isReturnStatement(node2)) {\n        if (node2.expression) {\n          return node2.expression;\n        }\n      } else if (isVariableStatement(node2) || isVariableDeclarationList(node2)) {\n        const declarations = isVariableStatement(node2) ? node2.declarationList.declarations : node2.declarations;\n        let numInitializers = 0;\n        let lastInitializer;\n        for (const declaration of declarations) {\n          if (declaration.initializer) {\n            numInitializers++;\n            lastInitializer = declaration.initializer;\n          }\n        }\n        if (numInitializers === 1) {\n          return lastInitializer;\n        }\n      } else if (isVariableDeclaration(node2)) {\n        if (node2.initializer) {\n          return node2.initializer;\n        }\n      }\n      return node2;\n    }\n    function checkRootNode(node2) {\n      if (isIdentifier(isExpressionStatement(node2) ? node2.expression : node2)) {\n        return [createDiagnosticForNode(node2, Messages.cannotExtractIdentifier)];\n      }\n      return void 0;\n    }\n    function checkForStaticContext(nodeToCheck, containingClass) {\n      let current = nodeToCheck;\n      while (current !== containingClass) {\n        if (current.kind === 169) {\n          if (isStatic(current)) {\n            rangeFacts |= 32;\n          }\n          break;\n        } else if (current.kind === 166) {\n          const ctorOrMethod = getContainingFunction(current);\n          if (ctorOrMethod.kind === 173) {\n            rangeFacts |= 32;\n          }\n          break;\n        } else if (current.kind === 171) {\n          if (isStatic(current)) {\n            rangeFacts |= 32;\n          }\n        }\n        current = current.parent;\n      }\n    }\n    function checkNode(nodeToCheck) {\n      let PermittedJumps;\n      ((PermittedJumps2) => {\n        PermittedJumps2[PermittedJumps2[\"None\"] = 0] = \"None\";\n        PermittedJumps2[PermittedJumps2[\"Break\"] = 1] = \"Break\";\n        PermittedJumps2[PermittedJumps2[\"Continue\"] = 2] = \"Continue\";\n        PermittedJumps2[PermittedJumps2[\"Return\"] = 4] = \"Return\";\n      })(PermittedJumps || (PermittedJumps = {}));\n      Debug.assert(nodeToCheck.pos <= nodeToCheck.end, \"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)\");\n      Debug.assert(!positionIsSynthesized(nodeToCheck.pos), \"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)\");\n      if (!isStatement(nodeToCheck) && !(isExpressionNode(nodeToCheck) && isExtractableExpression(nodeToCheck)) && !isStringLiteralJsxAttribute(nodeToCheck)) {\n        return [createDiagnosticForNode(nodeToCheck, Messages.statementOrExpressionExpected)];\n      }\n      if (nodeToCheck.flags & 16777216) {\n        return [createDiagnosticForNode(nodeToCheck, Messages.cannotExtractAmbientBlock)];\n      }\n      const containingClass = getContainingClass(nodeToCheck);\n      if (containingClass) {\n        checkForStaticContext(nodeToCheck, containingClass);\n      }\n      let errors2;\n      let permittedJumps = 4;\n      let seenLabels;\n      visit(nodeToCheck);\n      if (rangeFacts & 8) {\n        const container = getThisContainer(nodeToCheck, false, false);\n        if (container.kind === 259 || container.kind === 171 && container.parent.kind === 207 || container.kind === 215) {\n          rangeFacts |= 16;\n        }\n      }\n      return errors2;\n      function visit(node2) {\n        if (errors2) {\n          return true;\n        }\n        if (isDeclaration(node2)) {\n          const declaringNode = node2.kind === 257 ? node2.parent.parent : node2;\n          if (hasSyntacticModifier(declaringNode, 1)) {\n            (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.cannotExtractExportedEntity));\n            return true;\n          }\n        }\n        switch (node2.kind) {\n          case 269:\n            (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.cannotExtractImport));\n            return true;\n          case 274:\n            (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.cannotExtractExportedEntity));\n            return true;\n          case 106:\n            if (node2.parent.kind === 210) {\n              const containingClass2 = getContainingClass(node2);\n              if (containingClass2 === void 0 || containingClass2.pos < span.start || containingClass2.end >= span.start + span.length) {\n                (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.cannotExtractSuper));\n                return true;\n              }\n            } else {\n              rangeFacts |= 8;\n              thisNode = node2;\n            }\n            break;\n          case 216:\n            forEachChild(node2, function check(n) {\n              if (isThis(n)) {\n                rangeFacts |= 8;\n                thisNode = node2;\n              } else if (isClassLike(n) || isFunctionLike(n) && !isArrowFunction(n)) {\n                return false;\n              } else {\n                forEachChild(n, check);\n              }\n            });\n          case 260:\n          case 259:\n            if (isSourceFile(node2.parent) && node2.parent.externalModuleIndicator === void 0) {\n              (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.functionWillNotBeVisibleInTheNewScope));\n            }\n          case 228:\n          case 215:\n          case 171:\n          case 173:\n          case 174:\n          case 175:\n            return false;\n        }\n        const savedPermittedJumps = permittedJumps;\n        switch (node2.kind) {\n          case 242:\n            permittedJumps &= ~4;\n            break;\n          case 255:\n            permittedJumps = 0;\n            break;\n          case 238:\n            if (node2.parent && node2.parent.kind === 255 && node2.parent.finallyBlock === node2) {\n              permittedJumps = 4;\n            }\n            break;\n          case 293:\n          case 292:\n            permittedJumps |= 1;\n            break;\n          default:\n            if (isIterationStatement(node2, false)) {\n              permittedJumps |= 1 | 2;\n            }\n            break;\n        }\n        switch (node2.kind) {\n          case 194:\n          case 108:\n            rangeFacts |= 8;\n            thisNode = node2;\n            break;\n          case 253: {\n            const label = node2.label;\n            (seenLabels || (seenLabels = [])).push(label.escapedText);\n            forEachChild(node2, visit);\n            seenLabels.pop();\n            break;\n          }\n          case 249:\n          case 248: {\n            const label = node2.label;\n            if (label) {\n              if (!contains(seenLabels, label.escapedText)) {\n                (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange));\n              }\n            } else {\n              if (!(permittedJumps & (node2.kind === 249 ? 1 : 2))) {\n                (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.cannotExtractRangeContainingConditionalBreakOrContinueStatements));\n              }\n            }\n            break;\n          }\n          case 220:\n            rangeFacts |= 4;\n            break;\n          case 226:\n            rangeFacts |= 2;\n            break;\n          case 250:\n            if (permittedJumps & 4) {\n              rangeFacts |= 1;\n            } else {\n              (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.cannotExtractRangeContainingConditionalReturnStatement));\n            }\n            break;\n          default:\n            forEachChild(node2, visit);\n            break;\n        }\n        permittedJumps = savedPermittedJumps;\n      }\n    }\n  }\n  function getAdjustedSpanFromNodes(startNode2, endNode2, sourceFile) {\n    const start = startNode2.getStart(sourceFile);\n    let end = endNode2.getEnd();\n    if (sourceFile.text.charCodeAt(end) === 59) {\n      end++;\n    }\n    return { start, length: end - start };\n  }\n  function getStatementOrExpressionRange(node) {\n    if (isStatement(node)) {\n      return [node];\n    }\n    if (isExpressionNode(node)) {\n      return isExpressionStatement(node.parent) ? [node.parent] : node;\n    }\n    if (isStringLiteralJsxAttribute(node)) {\n      return node;\n    }\n    return void 0;\n  }\n  function isScope(node) {\n    return isArrowFunction(node) ? isFunctionBody(node.body) : isFunctionLikeDeclaration(node) || isSourceFile(node) || isModuleBlock(node) || isClassLike(node);\n  }\n  function collectEnclosingScopes(range) {\n    let current = isReadonlyArray(range.range) ? first(range.range) : range.range;\n    if (range.facts & 8 && !(range.facts & 16)) {\n      const containingClass = getContainingClass(current);\n      if (containingClass) {\n        const containingFunction = findAncestor(current, isFunctionLikeDeclaration);\n        return containingFunction ? [containingFunction, containingClass] : [containingClass];\n      }\n    }\n    const scopes = [];\n    while (true) {\n      current = current.parent;\n      if (current.kind === 166) {\n        current = findAncestor(current, (parent2) => isFunctionLikeDeclaration(parent2)).parent;\n      }\n      if (isScope(current)) {\n        scopes.push(current);\n        if (current.kind === 308) {\n          return scopes;\n        }\n      }\n    }\n  }\n  function getFunctionExtractionAtIndex(targetRange, context, requestedChangesIndex) {\n    const { scopes, readsAndWrites: { target, usagesPerScope, functionErrorsPerScope, exposedVariableDeclarations } } = getPossibleExtractionsWorker(targetRange, context);\n    Debug.assert(!functionErrorsPerScope[requestedChangesIndex].length, \"The extraction went missing? How?\");\n    context.cancellationToken.throwIfCancellationRequested();\n    return extractFunctionInScope(target, scopes[requestedChangesIndex], usagesPerScope[requestedChangesIndex], exposedVariableDeclarations, targetRange, context);\n  }\n  function getConstantExtractionAtIndex(targetRange, context, requestedChangesIndex) {\n    const { scopes, readsAndWrites: { target, usagesPerScope, constantErrorsPerScope, exposedVariableDeclarations } } = getPossibleExtractionsWorker(targetRange, context);\n    Debug.assert(!constantErrorsPerScope[requestedChangesIndex].length, \"The extraction went missing? How?\");\n    Debug.assert(exposedVariableDeclarations.length === 0, \"Extract constant accepted a range containing a variable declaration?\");\n    context.cancellationToken.throwIfCancellationRequested();\n    const expression = isExpression(target) ? target : target.statements[0].expression;\n    return extractConstantInScope(expression, scopes[requestedChangesIndex], usagesPerScope[requestedChangesIndex], targetRange.facts, context);\n  }\n  function getPossibleExtractions(targetRange, context) {\n    const { scopes, readsAndWrites: { functionErrorsPerScope, constantErrorsPerScope } } = getPossibleExtractionsWorker(targetRange, context);\n    const extractions = scopes.map((scope, i) => {\n      const functionDescriptionPart = getDescriptionForFunctionInScope(scope);\n      const constantDescriptionPart = getDescriptionForConstantInScope(scope);\n      const scopeDescription = isFunctionLikeDeclaration(scope) ? getDescriptionForFunctionLikeDeclaration(scope) : isClassLike(scope) ? getDescriptionForClassLikeDeclaration(scope) : getDescriptionForModuleLikeDeclaration(scope);\n      let functionDescription;\n      let constantDescription;\n      if (scopeDescription === 1) {\n        functionDescription = formatStringFromArgs(getLocaleSpecificMessage(Diagnostics.Extract_to_0_in_1_scope), [functionDescriptionPart, \"global\"]);\n        constantDescription = formatStringFromArgs(getLocaleSpecificMessage(Diagnostics.Extract_to_0_in_1_scope), [constantDescriptionPart, \"global\"]);\n      } else if (scopeDescription === 0) {\n        functionDescription = formatStringFromArgs(getLocaleSpecificMessage(Diagnostics.Extract_to_0_in_1_scope), [functionDescriptionPart, \"module\"]);\n        constantDescription = formatStringFromArgs(getLocaleSpecificMessage(Diagnostics.Extract_to_0_in_1_scope), [constantDescriptionPart, \"module\"]);\n      } else {\n        functionDescription = formatStringFromArgs(getLocaleSpecificMessage(Diagnostics.Extract_to_0_in_1), [functionDescriptionPart, scopeDescription]);\n        constantDescription = formatStringFromArgs(getLocaleSpecificMessage(Diagnostics.Extract_to_0_in_1), [constantDescriptionPart, scopeDescription]);\n      }\n      if (i === 0 && !isClassLike(scope)) {\n        constantDescription = formatStringFromArgs(getLocaleSpecificMessage(Diagnostics.Extract_to_0_in_enclosing_scope), [constantDescriptionPart]);\n      }\n      return {\n        functionExtraction: {\n          description: functionDescription,\n          errors: functionErrorsPerScope[i]\n        },\n        constantExtraction: {\n          description: constantDescription,\n          errors: constantErrorsPerScope[i]\n        }\n      };\n    });\n    return extractions;\n  }\n  function getPossibleExtractionsWorker(targetRange, context) {\n    const { file: sourceFile } = context;\n    const scopes = collectEnclosingScopes(targetRange);\n    const enclosingTextRange = getEnclosingTextRange(targetRange, sourceFile);\n    const readsAndWrites = collectReadsAndWrites(targetRange, scopes, enclosingTextRange, sourceFile, context.program.getTypeChecker(), context.cancellationToken);\n    return { scopes, readsAndWrites };\n  }\n  function getDescriptionForFunctionInScope(scope) {\n    return isFunctionLikeDeclaration(scope) ? \"inner function\" : isClassLike(scope) ? \"method\" : \"function\";\n  }\n  function getDescriptionForConstantInScope(scope) {\n    return isClassLike(scope) ? \"readonly field\" : \"constant\";\n  }\n  function getDescriptionForFunctionLikeDeclaration(scope) {\n    switch (scope.kind) {\n      case 173:\n        return \"constructor\";\n      case 215:\n      case 259:\n        return scope.name ? `function '${scope.name.text}'` : ANONYMOUS;\n      case 216:\n        return \"arrow function\";\n      case 171:\n        return `method '${scope.name.getText()}'`;\n      case 174:\n        return `'get ${scope.name.getText()}'`;\n      case 175:\n        return `'set ${scope.name.getText()}'`;\n      default:\n        throw Debug.assertNever(scope, `Unexpected scope kind ${scope.kind}`);\n    }\n  }\n  function getDescriptionForClassLikeDeclaration(scope) {\n    return scope.kind === 260 ? scope.name ? `class '${scope.name.text}'` : \"anonymous class declaration\" : scope.name ? `class expression '${scope.name.text}'` : \"anonymous class expression\";\n  }\n  function getDescriptionForModuleLikeDeclaration(scope) {\n    return scope.kind === 265 ? `namespace '${scope.parent.name.getText()}'` : scope.externalModuleIndicator ? 0 : 1;\n  }\n  function extractFunctionInScope(node, scope, { usages: usagesInScope, typeParameterUsages, substitutions }, exposedVariableDeclarations, range, context) {\n    const checker = context.program.getTypeChecker();\n    const scriptTarget = getEmitScriptTarget(context.program.getCompilerOptions());\n    const importAdder = ts_codefix_exports.createImportAdder(context.file, context.program, context.preferences, context.host);\n    const file = scope.getSourceFile();\n    const functionNameText = getUniqueName(isClassLike(scope) ? \"newMethod\" : \"newFunction\", file);\n    const isJS = isInJSFile(scope);\n    const functionName = factory.createIdentifier(functionNameText);\n    let returnType;\n    const parameters = [];\n    const callArguments = [];\n    let writes;\n    usagesInScope.forEach((usage, name) => {\n      let typeNode;\n      if (!isJS) {\n        let type = checker.getTypeOfSymbolAtLocation(usage.symbol, usage.node);\n        type = checker.getBaseTypeOfLiteralType(type);\n        typeNode = ts_codefix_exports.typeToAutoImportableTypeNode(checker, importAdder, type, scope, scriptTarget, 1);\n      }\n      const paramDecl = factory.createParameterDeclaration(void 0, void 0, name, void 0, typeNode);\n      parameters.push(paramDecl);\n      if (usage.usage === 2) {\n        (writes || (writes = [])).push(usage);\n      }\n      callArguments.push(factory.createIdentifier(name));\n    });\n    const typeParametersAndDeclarations = arrayFrom(typeParameterUsages.values(), (type) => ({ type, declaration: getFirstDeclaration(type) }));\n    const sortedTypeParametersAndDeclarations = typeParametersAndDeclarations.sort(compareTypesByDeclarationOrder);\n    const typeParameters = sortedTypeParametersAndDeclarations.length === 0 ? void 0 : sortedTypeParametersAndDeclarations.map((t) => t.declaration);\n    const callTypeArguments = typeParameters !== void 0 ? typeParameters.map((decl) => factory.createTypeReferenceNode(decl.name, void 0)) : void 0;\n    if (isExpression(node) && !isJS) {\n      const contextualType = checker.getContextualType(node);\n      returnType = checker.typeToTypeNode(contextualType, scope, 1);\n    }\n    const { body, returnValueProperty } = transformFunctionBody(node, exposedVariableDeclarations, writes, substitutions, !!(range.facts & 1));\n    suppressLeadingAndTrailingTrivia(body);\n    let newFunction;\n    const callThis = !!(range.facts & 16);\n    if (isClassLike(scope)) {\n      const modifiers = isJS ? [] : [factory.createModifier(121)];\n      if (range.facts & 32) {\n        modifiers.push(factory.createModifier(124));\n      }\n      if (range.facts & 4) {\n        modifiers.push(factory.createModifier(132));\n      }\n      newFunction = factory.createMethodDeclaration(modifiers.length ? modifiers : void 0, range.facts & 2 ? factory.createToken(41) : void 0, functionName, void 0, typeParameters, parameters, returnType, body);\n    } else {\n      if (callThis) {\n        parameters.unshift(factory.createParameterDeclaration(void 0, void 0, \"this\", void 0, checker.typeToTypeNode(checker.getTypeAtLocation(range.thisNode), scope, 1), void 0));\n      }\n      newFunction = factory.createFunctionDeclaration(range.facts & 4 ? [factory.createToken(132)] : void 0, range.facts & 2 ? factory.createToken(41) : void 0, functionName, typeParameters, parameters, returnType, body);\n    }\n    const changeTracker = ts_textChanges_exports.ChangeTracker.fromContext(context);\n    const minInsertionPos = (isReadonlyArray(range.range) ? last(range.range) : range.range).end;\n    const nodeToInsertBefore = getNodeToInsertFunctionBefore(minInsertionPos, scope);\n    if (nodeToInsertBefore) {\n      changeTracker.insertNodeBefore(context.file, nodeToInsertBefore, newFunction, true);\n    } else {\n      changeTracker.insertNodeAtEndOfScope(context.file, scope, newFunction);\n    }\n    importAdder.writeFixes(changeTracker);\n    const newNodes = [];\n    const called = getCalledExpression(scope, range, functionNameText);\n    if (callThis) {\n      callArguments.unshift(factory.createIdentifier(\"this\"));\n    }\n    let call = factory.createCallExpression(callThis ? factory.createPropertyAccessExpression(called, \"call\") : called, callTypeArguments, callArguments);\n    if (range.facts & 2) {\n      call = factory.createYieldExpression(factory.createToken(41), call);\n    }\n    if (range.facts & 4) {\n      call = factory.createAwaitExpression(call);\n    }\n    if (isInJSXContent(node)) {\n      call = factory.createJsxExpression(void 0, call);\n    }\n    if (exposedVariableDeclarations.length && !writes) {\n      Debug.assert(!returnValueProperty, \"Expected no returnValueProperty\");\n      Debug.assert(!(range.facts & 1), \"Expected RangeFacts.HasReturn flag to be unset\");\n      if (exposedVariableDeclarations.length === 1) {\n        const variableDeclaration = exposedVariableDeclarations[0];\n        newNodes.push(factory.createVariableStatement(void 0, factory.createVariableDeclarationList([factory.createVariableDeclaration(getSynthesizedDeepClone(variableDeclaration.name), void 0, getSynthesizedDeepClone(variableDeclaration.type), call)], variableDeclaration.parent.flags)));\n      } else {\n        const bindingElements = [];\n        const typeElements = [];\n        let commonNodeFlags = exposedVariableDeclarations[0].parent.flags;\n        let sawExplicitType = false;\n        for (const variableDeclaration of exposedVariableDeclarations) {\n          bindingElements.push(factory.createBindingElement(void 0, void 0, getSynthesizedDeepClone(variableDeclaration.name)));\n          const variableType = checker.typeToTypeNode(checker.getBaseTypeOfLiteralType(checker.getTypeAtLocation(variableDeclaration)), scope, 1);\n          typeElements.push(factory.createPropertySignature(void 0, variableDeclaration.symbol.name, void 0, variableType));\n          sawExplicitType = sawExplicitType || variableDeclaration.type !== void 0;\n          commonNodeFlags = commonNodeFlags & variableDeclaration.parent.flags;\n        }\n        const typeLiteral = sawExplicitType ? factory.createTypeLiteralNode(typeElements) : void 0;\n        if (typeLiteral) {\n          setEmitFlags(typeLiteral, 1);\n        }\n        newNodes.push(factory.createVariableStatement(void 0, factory.createVariableDeclarationList([factory.createVariableDeclaration(factory.createObjectBindingPattern(bindingElements), void 0, typeLiteral, call)], commonNodeFlags)));\n      }\n    } else if (exposedVariableDeclarations.length || writes) {\n      if (exposedVariableDeclarations.length) {\n        for (const variableDeclaration of exposedVariableDeclarations) {\n          let flags = variableDeclaration.parent.flags;\n          if (flags & 2) {\n            flags = flags & ~2 | 1;\n          }\n          newNodes.push(factory.createVariableStatement(void 0, factory.createVariableDeclarationList([factory.createVariableDeclaration(variableDeclaration.symbol.name, void 0, getTypeDeepCloneUnionUndefined(variableDeclaration.type))], flags)));\n        }\n      }\n      if (returnValueProperty) {\n        newNodes.push(factory.createVariableStatement(void 0, factory.createVariableDeclarationList([factory.createVariableDeclaration(returnValueProperty, void 0, getTypeDeepCloneUnionUndefined(returnType))], 1)));\n      }\n      const assignments = getPropertyAssignmentsForWritesAndVariableDeclarations(exposedVariableDeclarations, writes);\n      if (returnValueProperty) {\n        assignments.unshift(factory.createShorthandPropertyAssignment(returnValueProperty));\n      }\n      if (assignments.length === 1) {\n        Debug.assert(!returnValueProperty, \"Shouldn't have returnValueProperty here\");\n        newNodes.push(factory.createExpressionStatement(factory.createAssignment(assignments[0].name, call)));\n        if (range.facts & 1) {\n          newNodes.push(factory.createReturnStatement());\n        }\n      } else {\n        newNodes.push(factory.createExpressionStatement(factory.createAssignment(factory.createObjectLiteralExpression(assignments), call)));\n        if (returnValueProperty) {\n          newNodes.push(factory.createReturnStatement(factory.createIdentifier(returnValueProperty)));\n        }\n      }\n    } else {\n      if (range.facts & 1) {\n        newNodes.push(factory.createReturnStatement(call));\n      } else if (isReadonlyArray(range.range)) {\n        newNodes.push(factory.createExpressionStatement(call));\n      } else {\n        newNodes.push(call);\n      }\n    }\n    if (isReadonlyArray(range.range)) {\n      changeTracker.replaceNodeRangeWithNodes(context.file, first(range.range), last(range.range), newNodes);\n    } else {\n      changeTracker.replaceNodeWithNodes(context.file, range.range, newNodes);\n    }\n    const edits = changeTracker.getChanges();\n    const renameRange = isReadonlyArray(range.range) ? first(range.range) : range.range;\n    const renameFilename = renameRange.getSourceFile().fileName;\n    const renameLocation = getRenameLocation(edits, renameFilename, functionNameText, false);\n    return { renameFilename, renameLocation, edits };\n    function getTypeDeepCloneUnionUndefined(typeNode) {\n      if (typeNode === void 0) {\n        return void 0;\n      }\n      const clone2 = getSynthesizedDeepClone(typeNode);\n      let withoutParens = clone2;\n      while (isParenthesizedTypeNode(withoutParens)) {\n        withoutParens = withoutParens.type;\n      }\n      return isUnionTypeNode(withoutParens) && find(withoutParens.types, (t) => t.kind === 155) ? clone2 : factory.createUnionTypeNode([clone2, factory.createKeywordTypeNode(155)]);\n    }\n  }\n  function extractConstantInScope(node, scope, { substitutions }, rangeFacts, context) {\n    const checker = context.program.getTypeChecker();\n    const file = scope.getSourceFile();\n    const localNameText = isPropertyAccessExpression(node) && !isClassLike(scope) && !checker.resolveName(node.name.text, node, 111551, false) && !isPrivateIdentifier(node.name) && !identifierToKeywordKind(node.name) ? node.name.text : getUniqueName(isClassLike(scope) ? \"newProperty\" : \"newLocal\", file);\n    const isJS = isInJSFile(scope);\n    let variableType = isJS || !checker.isContextSensitive(node) ? void 0 : checker.typeToTypeNode(checker.getContextualType(node), scope, 1);\n    let initializer = transformConstantInitializer(skipParentheses(node), substitutions);\n    ({ variableType, initializer } = transformFunctionInitializerAndType(variableType, initializer));\n    suppressLeadingAndTrailingTrivia(initializer);\n    const changeTracker = ts_textChanges_exports.ChangeTracker.fromContext(context);\n    if (isClassLike(scope)) {\n      Debug.assert(!isJS, \"Cannot extract to a JS class\");\n      const modifiers = [];\n      modifiers.push(factory.createModifier(121));\n      if (rangeFacts & 32) {\n        modifiers.push(factory.createModifier(124));\n      }\n      modifiers.push(factory.createModifier(146));\n      const newVariable = factory.createPropertyDeclaration(modifiers, localNameText, void 0, variableType, initializer);\n      let localReference = factory.createPropertyAccessExpression(rangeFacts & 32 ? factory.createIdentifier(scope.name.getText()) : factory.createThis(), factory.createIdentifier(localNameText));\n      if (isInJSXContent(node)) {\n        localReference = factory.createJsxExpression(void 0, localReference);\n      }\n      const maxInsertionPos = node.pos;\n      const nodeToInsertBefore = getNodeToInsertPropertyBefore(maxInsertionPos, scope);\n      changeTracker.insertNodeBefore(context.file, nodeToInsertBefore, newVariable, true);\n      changeTracker.replaceNode(context.file, node, localReference);\n    } else {\n      const newVariableDeclaration = factory.createVariableDeclaration(localNameText, void 0, variableType, initializer);\n      const oldVariableDeclaration = getContainingVariableDeclarationIfInList(node, scope);\n      if (oldVariableDeclaration) {\n        changeTracker.insertNodeBefore(context.file, oldVariableDeclaration, newVariableDeclaration);\n        const localReference = factory.createIdentifier(localNameText);\n        changeTracker.replaceNode(context.file, node, localReference);\n      } else if (node.parent.kind === 241 && scope === findAncestor(node, isScope)) {\n        const newVariableStatement = factory.createVariableStatement(void 0, factory.createVariableDeclarationList([newVariableDeclaration], 2));\n        changeTracker.replaceNode(context.file, node.parent, newVariableStatement);\n      } else {\n        const newVariableStatement = factory.createVariableStatement(void 0, factory.createVariableDeclarationList([newVariableDeclaration], 2));\n        const nodeToInsertBefore = getNodeToInsertConstantBefore(node, scope);\n        if (nodeToInsertBefore.pos === 0) {\n          changeTracker.insertNodeAtTopOfFile(context.file, newVariableStatement, false);\n        } else {\n          changeTracker.insertNodeBefore(context.file, nodeToInsertBefore, newVariableStatement, false);\n        }\n        if (node.parent.kind === 241) {\n          changeTracker.delete(context.file, node.parent);\n        } else {\n          let localReference = factory.createIdentifier(localNameText);\n          if (isInJSXContent(node)) {\n            localReference = factory.createJsxExpression(void 0, localReference);\n          }\n          changeTracker.replaceNode(context.file, node, localReference);\n        }\n      }\n    }\n    const edits = changeTracker.getChanges();\n    const renameFilename = node.getSourceFile().fileName;\n    const renameLocation = getRenameLocation(edits, renameFilename, localNameText, true);\n    return { renameFilename, renameLocation, edits };\n    function transformFunctionInitializerAndType(variableType2, initializer2) {\n      if (variableType2 === void 0)\n        return { variableType: variableType2, initializer: initializer2 };\n      if (!isFunctionExpression(initializer2) && !isArrowFunction(initializer2) || !!initializer2.typeParameters)\n        return { variableType: variableType2, initializer: initializer2 };\n      const functionType = checker.getTypeAtLocation(node);\n      const functionSignature = singleOrUndefined(checker.getSignaturesOfType(functionType, 0));\n      if (!functionSignature)\n        return { variableType: variableType2, initializer: initializer2 };\n      if (!!functionSignature.getTypeParameters())\n        return { variableType: variableType2, initializer: initializer2 };\n      const parameters = [];\n      let hasAny = false;\n      for (const p of initializer2.parameters) {\n        if (p.type) {\n          parameters.push(p);\n        } else {\n          const paramType = checker.getTypeAtLocation(p);\n          if (paramType === checker.getAnyType())\n            hasAny = true;\n          parameters.push(factory.updateParameterDeclaration(p, p.modifiers, p.dotDotDotToken, p.name, p.questionToken, p.type || checker.typeToTypeNode(paramType, scope, 1), p.initializer));\n        }\n      }\n      if (hasAny)\n        return { variableType: variableType2, initializer: initializer2 };\n      variableType2 = void 0;\n      if (isArrowFunction(initializer2)) {\n        initializer2 = factory.updateArrowFunction(initializer2, canHaveModifiers(node) ? getModifiers(node) : void 0, initializer2.typeParameters, parameters, initializer2.type || checker.typeToTypeNode(functionSignature.getReturnType(), scope, 1), initializer2.equalsGreaterThanToken, initializer2.body);\n      } else {\n        if (functionSignature && !!functionSignature.thisParameter) {\n          const firstParameter = firstOrUndefined(parameters);\n          if (!firstParameter || isIdentifier(firstParameter.name) && firstParameter.name.escapedText !== \"this\") {\n            const thisType = checker.getTypeOfSymbolAtLocation(functionSignature.thisParameter, node);\n            parameters.splice(0, 0, factory.createParameterDeclaration(void 0, void 0, \"this\", void 0, checker.typeToTypeNode(thisType, scope, 1)));\n          }\n        }\n        initializer2 = factory.updateFunctionExpression(initializer2, canHaveModifiers(node) ? getModifiers(node) : void 0, initializer2.asteriskToken, initializer2.name, initializer2.typeParameters, parameters, initializer2.type || checker.typeToTypeNode(functionSignature.getReturnType(), scope, 1), initializer2.body);\n      }\n      return { variableType: variableType2, initializer: initializer2 };\n    }\n  }\n  function getContainingVariableDeclarationIfInList(node, scope) {\n    let prevNode;\n    while (node !== void 0 && node !== scope) {\n      if (isVariableDeclaration(node) && node.initializer === prevNode && isVariableDeclarationList(node.parent) && node.parent.declarations.length > 1) {\n        return node;\n      }\n      prevNode = node;\n      node = node.parent;\n    }\n  }\n  function getFirstDeclaration(type) {\n    let firstDeclaration;\n    const symbol = type.symbol;\n    if (symbol && symbol.declarations) {\n      for (const declaration of symbol.declarations) {\n        if (firstDeclaration === void 0 || declaration.pos < firstDeclaration.pos) {\n          firstDeclaration = declaration;\n        }\n      }\n    }\n    return firstDeclaration;\n  }\n  function compareTypesByDeclarationOrder({ type: type1, declaration: declaration1 }, { type: type2, declaration: declaration2 }) {\n    return compareProperties(declaration1, declaration2, \"pos\", compareValues) || compareStringsCaseSensitive(type1.symbol ? type1.symbol.getName() : \"\", type2.symbol ? type2.symbol.getName() : \"\") || compareValues(type1.id, type2.id);\n  }\n  function getCalledExpression(scope, range, functionNameText) {\n    const functionReference = factory.createIdentifier(functionNameText);\n    if (isClassLike(scope)) {\n      const lhs = range.facts & 32 ? factory.createIdentifier(scope.name.text) : factory.createThis();\n      return factory.createPropertyAccessExpression(lhs, functionReference);\n    } else {\n      return functionReference;\n    }\n  }\n  function transformFunctionBody(body, exposedVariableDeclarations, writes, substitutions, hasReturn2) {\n    const hasWritesOrVariableDeclarations = writes !== void 0 || exposedVariableDeclarations.length > 0;\n    if (isBlock(body) && !hasWritesOrVariableDeclarations && substitutions.size === 0) {\n      return { body: factory.createBlock(body.statements, true), returnValueProperty: void 0 };\n    }\n    let returnValueProperty;\n    let ignoreReturns = false;\n    const statements = factory.createNodeArray(isBlock(body) ? body.statements.slice(0) : [isStatement(body) ? body : factory.createReturnStatement(skipParentheses(body))]);\n    if (hasWritesOrVariableDeclarations || substitutions.size) {\n      const rewrittenStatements = visitNodes2(statements, visitor, isStatement).slice();\n      if (hasWritesOrVariableDeclarations && !hasReturn2 && isStatement(body)) {\n        const assignments = getPropertyAssignmentsForWritesAndVariableDeclarations(exposedVariableDeclarations, writes);\n        if (assignments.length === 1) {\n          rewrittenStatements.push(factory.createReturnStatement(assignments[0].name));\n        } else {\n          rewrittenStatements.push(factory.createReturnStatement(factory.createObjectLiteralExpression(assignments)));\n        }\n      }\n      return { body: factory.createBlock(rewrittenStatements, true), returnValueProperty };\n    } else {\n      return { body: factory.createBlock(statements, true), returnValueProperty: void 0 };\n    }\n    function visitor(node) {\n      if (!ignoreReturns && isReturnStatement(node) && hasWritesOrVariableDeclarations) {\n        const assignments = getPropertyAssignmentsForWritesAndVariableDeclarations(exposedVariableDeclarations, writes);\n        if (node.expression) {\n          if (!returnValueProperty) {\n            returnValueProperty = \"__return\";\n          }\n          assignments.unshift(factory.createPropertyAssignment(returnValueProperty, visitNode(node.expression, visitor, isExpression)));\n        }\n        if (assignments.length === 1) {\n          return factory.createReturnStatement(assignments[0].name);\n        } else {\n          return factory.createReturnStatement(factory.createObjectLiteralExpression(assignments));\n        }\n      } else {\n        const oldIgnoreReturns = ignoreReturns;\n        ignoreReturns = ignoreReturns || isFunctionLikeDeclaration(node) || isClassLike(node);\n        const substitution = substitutions.get(getNodeId(node).toString());\n        const result = substitution ? getSynthesizedDeepClone(substitution) : visitEachChild(node, visitor, nullTransformationContext);\n        ignoreReturns = oldIgnoreReturns;\n        return result;\n      }\n    }\n  }\n  function transformConstantInitializer(initializer, substitutions) {\n    return substitutions.size ? visitor(initializer) : initializer;\n    function visitor(node) {\n      const substitution = substitutions.get(getNodeId(node).toString());\n      return substitution ? getSynthesizedDeepClone(substitution) : visitEachChild(node, visitor, nullTransformationContext);\n    }\n  }\n  function getStatementsOrClassElements(scope) {\n    if (isFunctionLikeDeclaration(scope)) {\n      const body = scope.body;\n      if (isBlock(body)) {\n        return body.statements;\n      }\n    } else if (isModuleBlock(scope) || isSourceFile(scope)) {\n      return scope.statements;\n    } else if (isClassLike(scope)) {\n      return scope.members;\n    } else {\n      assertType(scope);\n    }\n    return emptyArray;\n  }\n  function getNodeToInsertFunctionBefore(minPos, scope) {\n    return find(getStatementsOrClassElements(scope), (child) => child.pos >= minPos && isFunctionLikeDeclaration(child) && !isConstructorDeclaration(child));\n  }\n  function getNodeToInsertPropertyBefore(maxPos, scope) {\n    const members = scope.members;\n    Debug.assert(members.length > 0, \"Found no members\");\n    let prevMember;\n    let allProperties = true;\n    for (const member of members) {\n      if (member.pos > maxPos) {\n        return prevMember || members[0];\n      }\n      if (allProperties && !isPropertyDeclaration(member)) {\n        if (prevMember !== void 0) {\n          return member;\n        }\n        allProperties = false;\n      }\n      prevMember = member;\n    }\n    if (prevMember === void 0)\n      return Debug.fail();\n    return prevMember;\n  }\n  function getNodeToInsertConstantBefore(node, scope) {\n    Debug.assert(!isClassLike(scope));\n    let prevScope;\n    for (let curr = node; curr !== scope; curr = curr.parent) {\n      if (isScope(curr)) {\n        prevScope = curr;\n      }\n    }\n    for (let curr = (prevScope || node).parent; ; curr = curr.parent) {\n      if (isBlockLike(curr)) {\n        let prevStatement;\n        for (const statement of curr.statements) {\n          if (statement.pos > node.pos) {\n            break;\n          }\n          prevStatement = statement;\n        }\n        if (!prevStatement && isCaseClause(curr)) {\n          Debug.assert(isSwitchStatement(curr.parent.parent), \"Grandparent isn't a switch statement\");\n          return curr.parent.parent;\n        }\n        return Debug.checkDefined(prevStatement, \"prevStatement failed to get set\");\n      }\n      Debug.assert(curr !== scope, \"Didn't encounter a block-like before encountering scope\");\n    }\n  }\n  function getPropertyAssignmentsForWritesAndVariableDeclarations(exposedVariableDeclarations, writes) {\n    const variableAssignments = map(exposedVariableDeclarations, (v) => factory.createShorthandPropertyAssignment(v.symbol.name));\n    const writeAssignments = map(writes, (w) => factory.createShorthandPropertyAssignment(w.symbol.name));\n    return variableAssignments === void 0 ? writeAssignments : writeAssignments === void 0 ? variableAssignments : variableAssignments.concat(writeAssignments);\n  }\n  function isReadonlyArray(v) {\n    return isArray(v);\n  }\n  function getEnclosingTextRange(targetRange, sourceFile) {\n    return isReadonlyArray(targetRange.range) ? { pos: first(targetRange.range).getStart(sourceFile), end: last(targetRange.range).getEnd() } : targetRange.range;\n  }\n  function collectReadsAndWrites(targetRange, scopes, enclosingTextRange, sourceFile, checker, cancellationToken) {\n    const allTypeParameterUsages = /* @__PURE__ */ new Map();\n    const usagesPerScope = [];\n    const substitutionsPerScope = [];\n    const functionErrorsPerScope = [];\n    const constantErrorsPerScope = [];\n    const visibleDeclarationsInExtractedRange = [];\n    const exposedVariableSymbolSet = /* @__PURE__ */ new Map();\n    const exposedVariableDeclarations = [];\n    let firstExposedNonVariableDeclaration;\n    const expression = !isReadonlyArray(targetRange.range) ? targetRange.range : targetRange.range.length === 1 && isExpressionStatement(targetRange.range[0]) ? targetRange.range[0].expression : void 0;\n    let expressionDiagnostic;\n    if (expression === void 0) {\n      const statements = targetRange.range;\n      const start = first(statements).getStart();\n      const end = last(statements).end;\n      expressionDiagnostic = createFileDiagnostic(sourceFile, start, end - start, Messages.expressionExpected);\n    } else if (checker.getTypeAtLocation(expression).flags & (16384 | 131072)) {\n      expressionDiagnostic = createDiagnosticForNode(expression, Messages.uselessConstantType);\n    }\n    for (const scope of scopes) {\n      usagesPerScope.push({ usages: /* @__PURE__ */ new Map(), typeParameterUsages: /* @__PURE__ */ new Map(), substitutions: /* @__PURE__ */ new Map() });\n      substitutionsPerScope.push(/* @__PURE__ */ new Map());\n      functionErrorsPerScope.push([]);\n      const constantErrors = [];\n      if (expressionDiagnostic) {\n        constantErrors.push(expressionDiagnostic);\n      }\n      if (isClassLike(scope) && isInJSFile(scope)) {\n        constantErrors.push(createDiagnosticForNode(scope, Messages.cannotExtractToJSClass));\n      }\n      if (isArrowFunction(scope) && !isBlock(scope.body)) {\n        constantErrors.push(createDiagnosticForNode(scope, Messages.cannotExtractToExpressionArrowFunction));\n      }\n      constantErrorsPerScope.push(constantErrors);\n    }\n    const seenUsages = /* @__PURE__ */ new Map();\n    const target = isReadonlyArray(targetRange.range) ? factory.createBlock(targetRange.range) : targetRange.range;\n    const unmodifiedNode = isReadonlyArray(targetRange.range) ? first(targetRange.range) : targetRange.range;\n    const inGenericContext = isInGenericContext(unmodifiedNode);\n    collectUsages(target);\n    if (inGenericContext && !isReadonlyArray(targetRange.range) && !isJsxAttribute(targetRange.range)) {\n      const contextualType = checker.getContextualType(targetRange.range);\n      recordTypeParameterUsages(contextualType);\n    }\n    if (allTypeParameterUsages.size > 0) {\n      const seenTypeParameterUsages = /* @__PURE__ */ new Map();\n      let i = 0;\n      for (let curr = unmodifiedNode; curr !== void 0 && i < scopes.length; curr = curr.parent) {\n        if (curr === scopes[i]) {\n          seenTypeParameterUsages.forEach((typeParameter, id) => {\n            usagesPerScope[i].typeParameterUsages.set(id, typeParameter);\n          });\n          i++;\n        }\n        if (isDeclarationWithTypeParameters(curr)) {\n          for (const typeParameterDecl of getEffectiveTypeParameterDeclarations(curr)) {\n            const typeParameter = checker.getTypeAtLocation(typeParameterDecl);\n            if (allTypeParameterUsages.has(typeParameter.id.toString())) {\n              seenTypeParameterUsages.set(typeParameter.id.toString(), typeParameter);\n            }\n          }\n        }\n      }\n      Debug.assert(i === scopes.length, \"Should have iterated all scopes\");\n    }\n    if (visibleDeclarationsInExtractedRange.length) {\n      const containingLexicalScopeOfExtraction = isBlockScope(scopes[0], scopes[0].parent) ? scopes[0] : getEnclosingBlockScopeContainer(scopes[0]);\n      forEachChild(containingLexicalScopeOfExtraction, checkForUsedDeclarations);\n    }\n    for (let i = 0; i < scopes.length; i++) {\n      const scopeUsages = usagesPerScope[i];\n      if (i > 0 && (scopeUsages.usages.size > 0 || scopeUsages.typeParameterUsages.size > 0)) {\n        const errorNode = isReadonlyArray(targetRange.range) ? targetRange.range[0] : targetRange.range;\n        constantErrorsPerScope[i].push(createDiagnosticForNode(errorNode, Messages.cannotAccessVariablesFromNestedScopes));\n      }\n      if (targetRange.facts & 16 && isClassLike(scopes[i])) {\n        functionErrorsPerScope[i].push(createDiagnosticForNode(targetRange.thisNode, Messages.cannotExtractFunctionsContainingThisToMethod));\n      }\n      let hasWrite = false;\n      let readonlyClassPropertyWrite;\n      usagesPerScope[i].usages.forEach((value) => {\n        if (value.usage === 2) {\n          hasWrite = true;\n          if (value.symbol.flags & 106500 && value.symbol.valueDeclaration && hasEffectiveModifier(value.symbol.valueDeclaration, 64)) {\n            readonlyClassPropertyWrite = value.symbol.valueDeclaration;\n          }\n        }\n      });\n      Debug.assert(isReadonlyArray(targetRange.range) || exposedVariableDeclarations.length === 0, \"No variable declarations expected if something was extracted\");\n      if (hasWrite && !isReadonlyArray(targetRange.range)) {\n        const diag2 = createDiagnosticForNode(targetRange.range, Messages.cannotWriteInExpression);\n        functionErrorsPerScope[i].push(diag2);\n        constantErrorsPerScope[i].push(diag2);\n      } else if (readonlyClassPropertyWrite && i > 0) {\n        const diag2 = createDiagnosticForNode(readonlyClassPropertyWrite, Messages.cannotExtractReadonlyPropertyInitializerOutsideConstructor);\n        functionErrorsPerScope[i].push(diag2);\n        constantErrorsPerScope[i].push(diag2);\n      } else if (firstExposedNonVariableDeclaration) {\n        const diag2 = createDiagnosticForNode(firstExposedNonVariableDeclaration, Messages.cannotExtractExportedEntity);\n        functionErrorsPerScope[i].push(diag2);\n        constantErrorsPerScope[i].push(diag2);\n      }\n    }\n    return { target, usagesPerScope, functionErrorsPerScope, constantErrorsPerScope, exposedVariableDeclarations };\n    function isInGenericContext(node) {\n      return !!findAncestor(node, (n) => isDeclarationWithTypeParameters(n) && getEffectiveTypeParameterDeclarations(n).length !== 0);\n    }\n    function recordTypeParameterUsages(type) {\n      const symbolWalker = checker.getSymbolWalker(() => (cancellationToken.throwIfCancellationRequested(), true));\n      const { visitedTypes } = symbolWalker.walkType(type);\n      for (const visitedType of visitedTypes) {\n        if (visitedType.isTypeParameter()) {\n          allTypeParameterUsages.set(visitedType.id.toString(), visitedType);\n        }\n      }\n    }\n    function collectUsages(node, valueUsage = 1) {\n      if (inGenericContext) {\n        const type = checker.getTypeAtLocation(node);\n        recordTypeParameterUsages(type);\n      }\n      if (isDeclaration(node) && node.symbol) {\n        visibleDeclarationsInExtractedRange.push(node);\n      }\n      if (isAssignmentExpression(node)) {\n        collectUsages(node.left, 2);\n        collectUsages(node.right);\n      } else if (isUnaryExpressionWithWrite(node)) {\n        collectUsages(node.operand, 2);\n      } else if (isPropertyAccessExpression(node) || isElementAccessExpression(node)) {\n        forEachChild(node, collectUsages);\n      } else if (isIdentifier(node)) {\n        if (!node.parent) {\n          return;\n        }\n        if (isQualifiedName(node.parent) && node !== node.parent.left) {\n          return;\n        }\n        if (isPropertyAccessExpression(node.parent) && node !== node.parent.expression) {\n          return;\n        }\n        recordUsage(node, valueUsage, isPartOfTypeNode(node));\n      } else {\n        forEachChild(node, collectUsages);\n      }\n    }\n    function recordUsage(n, usage, isTypeNode2) {\n      const symbolId = recordUsagebySymbol(n, usage, isTypeNode2);\n      if (symbolId) {\n        for (let i = 0; i < scopes.length; i++) {\n          const substitution = substitutionsPerScope[i].get(symbolId);\n          if (substitution) {\n            usagesPerScope[i].substitutions.set(getNodeId(n).toString(), substitution);\n          }\n        }\n      }\n    }\n    function recordUsagebySymbol(identifier, usage, isTypeName) {\n      const symbol = getSymbolReferencedByIdentifier(identifier);\n      if (!symbol) {\n        return void 0;\n      }\n      const symbolId = getSymbolId(symbol).toString();\n      const lastUsage = seenUsages.get(symbolId);\n      if (lastUsage && lastUsage >= usage) {\n        return symbolId;\n      }\n      seenUsages.set(symbolId, usage);\n      if (lastUsage) {\n        for (const perScope of usagesPerScope) {\n          const prevEntry = perScope.usages.get(identifier.text);\n          if (prevEntry) {\n            perScope.usages.set(identifier.text, { usage, symbol, node: identifier });\n          }\n        }\n        return symbolId;\n      }\n      const decls = symbol.getDeclarations();\n      const declInFile = decls && find(decls, (d) => d.getSourceFile() === sourceFile);\n      if (!declInFile) {\n        return void 0;\n      }\n      if (rangeContainsStartEnd(enclosingTextRange, declInFile.getStart(), declInFile.end)) {\n        return void 0;\n      }\n      if (targetRange.facts & 2 && usage === 2) {\n        const diag2 = createDiagnosticForNode(identifier, Messages.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);\n        for (const errors of functionErrorsPerScope) {\n          errors.push(diag2);\n        }\n        for (const errors of constantErrorsPerScope) {\n          errors.push(diag2);\n        }\n      }\n      for (let i = 0; i < scopes.length; i++) {\n        const scope = scopes[i];\n        const resolvedSymbol = checker.resolveName(symbol.name, scope, symbol.flags, false);\n        if (resolvedSymbol === symbol) {\n          continue;\n        }\n        if (!substitutionsPerScope[i].has(symbolId)) {\n          const substitution = tryReplaceWithQualifiedNameOrPropertyAccess(symbol.exportSymbol || symbol, scope, isTypeName);\n          if (substitution) {\n            substitutionsPerScope[i].set(symbolId, substitution);\n          } else if (isTypeName) {\n            if (!(symbol.flags & 262144)) {\n              const diag2 = createDiagnosticForNode(identifier, Messages.typeWillNotBeVisibleInTheNewScope);\n              functionErrorsPerScope[i].push(diag2);\n              constantErrorsPerScope[i].push(diag2);\n            }\n          } else {\n            usagesPerScope[i].usages.set(identifier.text, { usage, symbol, node: identifier });\n          }\n        }\n      }\n      return symbolId;\n    }\n    function checkForUsedDeclarations(node) {\n      if (node === targetRange.range || isReadonlyArray(targetRange.range) && targetRange.range.indexOf(node) >= 0) {\n        return;\n      }\n      const sym = isIdentifier(node) ? getSymbolReferencedByIdentifier(node) : checker.getSymbolAtLocation(node);\n      if (sym) {\n        const decl = find(visibleDeclarationsInExtractedRange, (d) => d.symbol === sym);\n        if (decl) {\n          if (isVariableDeclaration(decl)) {\n            const idString = decl.symbol.id.toString();\n            if (!exposedVariableSymbolSet.has(idString)) {\n              exposedVariableDeclarations.push(decl);\n              exposedVariableSymbolSet.set(idString, true);\n            }\n          } else {\n            firstExposedNonVariableDeclaration = firstExposedNonVariableDeclaration || decl;\n          }\n        }\n      }\n      forEachChild(node, checkForUsedDeclarations);\n    }\n    function getSymbolReferencedByIdentifier(identifier) {\n      return identifier.parent && isShorthandPropertyAssignment(identifier.parent) && identifier.parent.name === identifier ? checker.getShorthandAssignmentValueSymbol(identifier.parent) : checker.getSymbolAtLocation(identifier);\n    }\n    function tryReplaceWithQualifiedNameOrPropertyAccess(symbol, scopeDecl, isTypeNode2) {\n      if (!symbol) {\n        return void 0;\n      }\n      const decls = symbol.getDeclarations();\n      if (decls && decls.some((d) => d.parent === scopeDecl)) {\n        return factory.createIdentifier(symbol.name);\n      }\n      const prefix = tryReplaceWithQualifiedNameOrPropertyAccess(symbol.parent, scopeDecl, isTypeNode2);\n      if (prefix === void 0) {\n        return void 0;\n      }\n      return isTypeNode2 ? factory.createQualifiedName(prefix, factory.createIdentifier(symbol.name)) : factory.createPropertyAccessExpression(prefix, symbol.name);\n    }\n  }\n  function getExtractableParent(node) {\n    return findAncestor(node, (node2) => node2.parent && isExtractableExpression(node2) && !isBinaryExpression(node2.parent));\n  }\n  function isExtractableExpression(node) {\n    const { parent: parent2 } = node;\n    switch (parent2.kind) {\n      case 302:\n        return false;\n    }\n    switch (node.kind) {\n      case 10:\n        return parent2.kind !== 269 && parent2.kind !== 273;\n      case 227:\n      case 203:\n      case 205:\n        return false;\n      case 79:\n        return parent2.kind !== 205 && parent2.kind !== 273 && parent2.kind !== 278;\n    }\n    return true;\n  }\n  function isBlockLike(node) {\n    switch (node.kind) {\n      case 238:\n      case 308:\n      case 265:\n      case 292:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function isInJSXContent(node) {\n    return isStringLiteralJsxAttribute(node) || (isJsxElement(node) || isJsxSelfClosingElement(node) || isJsxFragment(node)) && (isJsxElement(node.parent) || isJsxFragment(node.parent));\n  }\n  function isStringLiteralJsxAttribute(node) {\n    return isStringLiteral(node) && node.parent && isJsxAttribute(node.parent);\n  }\n  var refactorName11, extractConstantAction, extractFunctionAction, Messages, RangeFacts;\n  var init_extractSymbol = __esm({\n    \"src/services/refactors/extractSymbol.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_refactor();\n      refactorName11 = \"Extract Symbol\";\n      extractConstantAction = {\n        name: \"Extract Constant\",\n        description: getLocaleSpecificMessage(Diagnostics.Extract_constant),\n        kind: \"refactor.extract.constant\"\n      };\n      extractFunctionAction = {\n        name: \"Extract Function\",\n        description: getLocaleSpecificMessage(Diagnostics.Extract_function),\n        kind: \"refactor.extract.function\"\n      };\n      registerRefactor(refactorName11, {\n        kinds: [\n          extractConstantAction.kind,\n          extractFunctionAction.kind\n        ],\n        getEditsForAction: getRefactorEditsToExtractSymbol,\n        getAvailableActions: getRefactorActionsToExtractSymbol\n      });\n      ((Messages2) => {\n        function createMessage(message) {\n          return { message, code: 0, category: 3, key: message };\n        }\n        Messages2.cannotExtractRange = createMessage(\"Cannot extract range.\");\n        Messages2.cannotExtractImport = createMessage(\"Cannot extract import statement.\");\n        Messages2.cannotExtractSuper = createMessage(\"Cannot extract super call.\");\n        Messages2.cannotExtractJSDoc = createMessage(\"Cannot extract JSDoc.\");\n        Messages2.cannotExtractEmpty = createMessage(\"Cannot extract empty range.\");\n        Messages2.expressionExpected = createMessage(\"expression expected.\");\n        Messages2.uselessConstantType = createMessage(\"No reason to extract constant of type.\");\n        Messages2.statementOrExpressionExpected = createMessage(\"Statement or expression expected.\");\n        Messages2.cannotExtractRangeContainingConditionalBreakOrContinueStatements = createMessage(\"Cannot extract range containing conditional break or continue statements.\");\n        Messages2.cannotExtractRangeContainingConditionalReturnStatement = createMessage(\"Cannot extract range containing conditional return statement.\");\n        Messages2.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange = createMessage(\"Cannot extract range containing labeled break or continue with target outside of the range.\");\n        Messages2.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators = createMessage(\"Cannot extract range containing writes to references located outside of the target range in generators.\");\n        Messages2.typeWillNotBeVisibleInTheNewScope = createMessage(\"Type will not visible in the new scope.\");\n        Messages2.functionWillNotBeVisibleInTheNewScope = createMessage(\"Function will not visible in the new scope.\");\n        Messages2.cannotExtractIdentifier = createMessage(\"Select more than a single identifier.\");\n        Messages2.cannotExtractExportedEntity = createMessage(\"Cannot extract exported declaration\");\n        Messages2.cannotWriteInExpression = createMessage(\"Cannot write back side-effects when extracting an expression\");\n        Messages2.cannotExtractReadonlyPropertyInitializerOutsideConstructor = createMessage(\"Cannot move initialization of read-only class property outside of the constructor\");\n        Messages2.cannotExtractAmbientBlock = createMessage(\"Cannot extract code from ambient contexts\");\n        Messages2.cannotAccessVariablesFromNestedScopes = createMessage(\"Cannot access variables from nested scopes\");\n        Messages2.cannotExtractToJSClass = createMessage(\"Cannot extract constant to a class scope in JS\");\n        Messages2.cannotExtractToExpressionArrowFunction = createMessage(\"Cannot extract constant to an arrow function without a block\");\n        Messages2.cannotExtractFunctionsContainingThisToMethod = createMessage(\"Cannot extract functions containing this to method\");\n      })(Messages || (Messages = {}));\n      RangeFacts = /* @__PURE__ */ ((RangeFacts2) => {\n        RangeFacts2[RangeFacts2[\"None\"] = 0] = \"None\";\n        RangeFacts2[RangeFacts2[\"HasReturn\"] = 1] = \"HasReturn\";\n        RangeFacts2[RangeFacts2[\"IsGenerator\"] = 2] = \"IsGenerator\";\n        RangeFacts2[RangeFacts2[\"IsAsyncFunction\"] = 4] = \"IsAsyncFunction\";\n        RangeFacts2[RangeFacts2[\"UsesThis\"] = 8] = \"UsesThis\";\n        RangeFacts2[RangeFacts2[\"UsesThisInFunction\"] = 16] = \"UsesThisInFunction\";\n        RangeFacts2[RangeFacts2[\"InStaticRegion\"] = 32] = \"InStaticRegion\";\n        return RangeFacts2;\n      })(RangeFacts || {});\n    }\n  });\n  var ts_refactor_extractSymbol_exports = {};\n  __export2(ts_refactor_extractSymbol_exports, {\n    Messages: () => Messages,\n    RangeFacts: () => RangeFacts,\n    getRangeToExtract: () => getRangeToExtract2,\n    getRefactorActionsToExtractSymbol: () => getRefactorActionsToExtractSymbol,\n    getRefactorEditsToExtractSymbol: () => getRefactorEditsToExtractSymbol\n  });\n  var init_ts_refactor_extractSymbol = __esm({\n    \"src/services/_namespaces/ts.refactor.extractSymbol.ts\"() {\n      \"use strict\";\n      init_extractSymbol();\n    }\n  });\n  var actionName, actionDescription, generateGetSetAction;\n  var init_generateGetAccessorAndSetAccessor = __esm({\n    \"src/services/refactors/generateGetAccessorAndSetAccessor.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_refactor();\n      actionName = \"Generate 'get' and 'set' accessors\";\n      actionDescription = Diagnostics.Generate_get_and_set_accessors.message;\n      generateGetSetAction = {\n        name: actionName,\n        description: actionDescription,\n        kind: \"refactor.rewrite.property.generateAccessors\"\n      };\n      registerRefactor(actionName, {\n        kinds: [generateGetSetAction.kind],\n        getEditsForAction: function getRefactorActionsToGenerateGetAndSetAccessors(context, actionName2) {\n          if (!context.endPosition)\n            return void 0;\n          const info = ts_codefix_exports.getAccessorConvertiblePropertyAtPosition(context.file, context.program, context.startPosition, context.endPosition);\n          Debug.assert(info && !isRefactorErrorInfo(info), \"Expected applicable refactor info\");\n          const edits = ts_codefix_exports.generateAccessorFromProperty(context.file, context.program, context.startPosition, context.endPosition, context, actionName2);\n          if (!edits)\n            return void 0;\n          const renameFilename = context.file.fileName;\n          const nameNeedRename = info.renameAccessor ? info.accessorName : info.fieldName;\n          const renameLocationOffset = isIdentifier(nameNeedRename) ? 0 : -1;\n          const renameLocation = renameLocationOffset + getRenameLocation(edits, renameFilename, nameNeedRename.text, isParameter(info.declaration));\n          return { renameFilename, renameLocation, edits };\n        },\n        getAvailableActions(context) {\n          if (!context.endPosition)\n            return emptyArray;\n          const info = ts_codefix_exports.getAccessorConvertiblePropertyAtPosition(context.file, context.program, context.startPosition, context.endPosition, context.triggerReason === \"invoked\");\n          if (!info)\n            return emptyArray;\n          if (!isRefactorErrorInfo(info)) {\n            return [{\n              name: actionName,\n              description: actionDescription,\n              actions: [generateGetSetAction]\n            }];\n          }\n          if (context.preferences.provideRefactorNotApplicableReason) {\n            return [{\n              name: actionName,\n              description: actionDescription,\n              actions: [{ ...generateGetSetAction, notApplicableReason: info.error }]\n            }];\n          }\n          return emptyArray;\n        }\n      });\n    }\n  });\n  var ts_refactor_generateGetAccessorAndSetAccessor_exports = {};\n  var init_ts_refactor_generateGetAccessorAndSetAccessor = __esm({\n    \"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts\"() {\n      \"use strict\";\n      init_generateGetAccessorAndSetAccessor();\n    }\n  });\n  function getRefactorEditsToInferReturnType(context) {\n    const info = getInfo21(context);\n    if (info && !isRefactorErrorInfo(info)) {\n      const edits = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange38(context.file, t, info.declaration, info.returnTypeNode));\n      return { renameFilename: void 0, renameLocation: void 0, edits };\n    }\n    return void 0;\n  }\n  function getRefactorActionsToInferReturnType(context) {\n    const info = getInfo21(context);\n    if (!info)\n      return emptyArray;\n    if (!isRefactorErrorInfo(info)) {\n      return [{\n        name: refactorName12,\n        description: refactorDescription6,\n        actions: [inferReturnTypeAction]\n      }];\n    }\n    if (context.preferences.provideRefactorNotApplicableReason) {\n      return [{\n        name: refactorName12,\n        description: refactorDescription6,\n        actions: [{ ...inferReturnTypeAction, notApplicableReason: info.error }]\n      }];\n    }\n    return emptyArray;\n  }\n  function doChange38(sourceFile, changes, declaration, typeNode) {\n    const closeParen = findChildOfKind(declaration, 21, sourceFile);\n    const needParens = isArrowFunction(declaration) && closeParen === void 0;\n    const endNode2 = needParens ? first(declaration.parameters) : closeParen;\n    if (endNode2) {\n      if (needParens) {\n        changes.insertNodeBefore(sourceFile, endNode2, factory.createToken(20));\n        changes.insertNodeAfter(sourceFile, endNode2, factory.createToken(21));\n      }\n      changes.insertNodeAt(sourceFile, endNode2.end, typeNode, { prefix: \": \" });\n    }\n  }\n  function getInfo21(context) {\n    if (isInJSFile(context.file) || !refactorKindBeginsWith(inferReturnTypeAction.kind, context.kind))\n      return;\n    const token = getTokenAtPosition(context.file, context.startPosition);\n    const declaration = findAncestor(token, (n) => isBlock(n) || n.parent && isArrowFunction(n.parent) && (n.kind === 38 || n.parent.body === n) ? \"quit\" : isConvertibleDeclaration(n));\n    if (!declaration || !declaration.body || declaration.type) {\n      return { error: getLocaleSpecificMessage(Diagnostics.Return_type_must_be_inferred_from_a_function) };\n    }\n    const typeChecker = context.program.getTypeChecker();\n    const returnType = tryGetReturnType(typeChecker, declaration);\n    if (!returnType) {\n      return { error: getLocaleSpecificMessage(Diagnostics.Could_not_determine_function_return_type) };\n    }\n    const returnTypeNode = typeChecker.typeToTypeNode(returnType, declaration, 1);\n    if (returnTypeNode) {\n      return { declaration, returnTypeNode };\n    }\n  }\n  function isConvertibleDeclaration(node) {\n    switch (node.kind) {\n      case 259:\n      case 215:\n      case 216:\n      case 171:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function tryGetReturnType(typeChecker, node) {\n    if (typeChecker.isImplementationOfOverload(node)) {\n      const signatures = typeChecker.getTypeAtLocation(node).getCallSignatures();\n      if (signatures.length > 1) {\n        return typeChecker.getUnionType(mapDefined(signatures, (s) => s.getReturnType()));\n      }\n    }\n    const signature = typeChecker.getSignatureFromDeclaration(node);\n    if (signature) {\n      return typeChecker.getReturnTypeOfSignature(signature);\n    }\n  }\n  var refactorName12, refactorDescription6, inferReturnTypeAction;\n  var init_inferFunctionReturnType = __esm({\n    \"src/services/refactors/inferFunctionReturnType.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_refactor();\n      refactorName12 = \"Infer function return type\";\n      refactorDescription6 = Diagnostics.Infer_function_return_type.message;\n      inferReturnTypeAction = {\n        name: refactorName12,\n        description: refactorDescription6,\n        kind: \"refactor.rewrite.function.returnType\"\n      };\n      registerRefactor(refactorName12, {\n        kinds: [inferReturnTypeAction.kind],\n        getEditsForAction: getRefactorEditsToInferReturnType,\n        getAvailableActions: getRefactorActionsToInferReturnType\n      });\n    }\n  });\n  var ts_refactor_inferFunctionReturnType_exports = {};\n  var init_ts_refactor_inferFunctionReturnType = __esm({\n    \"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts\"() {\n      \"use strict\";\n      init_inferFunctionReturnType();\n    }\n  });\n  var ts_refactor_exports = {};\n  __export2(ts_refactor_exports, {\n    addOrRemoveBracesToArrowFunction: () => ts_refactor_addOrRemoveBracesToArrowFunction_exports,\n    convertArrowFunctionOrFunctionExpression: () => ts_refactor_convertArrowFunctionOrFunctionExpression_exports,\n    convertParamsToDestructuredObject: () => ts_refactor_convertParamsToDestructuredObject_exports,\n    convertStringOrTemplateLiteral: () => ts_refactor_convertStringOrTemplateLiteral_exports,\n    convertToOptionalChainExpression: () => ts_refactor_convertToOptionalChainExpression_exports,\n    doChangeNamedToNamespaceOrDefault: () => doChangeNamedToNamespaceOrDefault,\n    extractSymbol: () => ts_refactor_extractSymbol_exports,\n    generateGetAccessorAndSetAccessor: () => ts_refactor_generateGetAccessorAndSetAccessor_exports,\n    getApplicableRefactors: () => getApplicableRefactors,\n    getEditsForRefactor: () => getEditsForRefactor,\n    inferFunctionReturnType: () => ts_refactor_inferFunctionReturnType_exports,\n    isRefactorErrorInfo: () => isRefactorErrorInfo,\n    refactorKindBeginsWith: () => refactorKindBeginsWith,\n    registerRefactor: () => registerRefactor\n  });\n  var init_ts_refactor = __esm({\n    \"src/services/_namespaces/ts.refactor.ts\"() {\n      \"use strict\";\n      init_refactorProvider();\n      init_convertExport();\n      init_convertImport();\n      init_extractType();\n      init_helpers2();\n      init_moveToNewFile();\n      init_ts_refactor_addOrRemoveBracesToArrowFunction();\n      init_ts_refactor_convertArrowFunctionOrFunctionExpression();\n      init_ts_refactor_convertParamsToDestructuredObject();\n      init_ts_refactor_convertStringOrTemplateLiteral();\n      init_ts_refactor_convertToOptionalChainExpression();\n      init_ts_refactor_extractSymbol();\n      init_ts_refactor_generateGetAccessorAndSetAccessor();\n      init_ts_refactor_inferFunctionReturnType();\n    }\n  });\n  function getRenameInfo(program, sourceFile, position, preferences) {\n    const node = getAdjustedRenameLocation(getTouchingPropertyName(sourceFile, position));\n    if (nodeIsEligibleForRename(node)) {\n      const renameInfo = getRenameInfoForNode(node, program.getTypeChecker(), sourceFile, program, preferences);\n      if (renameInfo) {\n        return renameInfo;\n      }\n    }\n    return getRenameInfoError(Diagnostics.You_cannot_rename_this_element);\n  }\n  function getRenameInfoForNode(node, typeChecker, sourceFile, program, preferences) {\n    const symbol = typeChecker.getSymbolAtLocation(node);\n    if (!symbol) {\n      if (isStringLiteralLike(node)) {\n        const type = getContextualTypeFromParentOrAncestorTypeNode(node, typeChecker);\n        if (type && (type.flags & 128 || type.flags & 1048576 && every(type.types, (type2) => !!(type2.flags & 128)))) {\n          return getRenameInfoSuccess(node.text, node.text, \"string\", \"\", node, sourceFile);\n        }\n      } else if (isLabelName(node)) {\n        const name = getTextOfNode(node);\n        return getRenameInfoSuccess(name, name, \"label\", \"\", node, sourceFile);\n      }\n      return void 0;\n    }\n    const { declarations } = symbol;\n    if (!declarations || declarations.length === 0)\n      return;\n    if (declarations.some((declaration) => isDefinedInLibraryFile(program, declaration))) {\n      return getRenameInfoError(Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);\n    }\n    if (isIdentifier(node) && node.escapedText === \"default\" && symbol.parent && symbol.parent.flags & 1536) {\n      return void 0;\n    }\n    if (isStringLiteralLike(node) && tryGetImportFromModuleSpecifier(node)) {\n      return preferences.allowRenameOfImportPath ? getRenameInfoForModule(node, sourceFile, symbol) : void 0;\n    }\n    const wouldRenameNodeModules = wouldRenameInOtherNodeModules(sourceFile, symbol, typeChecker, preferences);\n    if (wouldRenameNodeModules) {\n      return getRenameInfoError(wouldRenameNodeModules);\n    }\n    const kind = ts_SymbolDisplay_exports.getSymbolKind(typeChecker, symbol, node);\n    const specifierName = isImportOrExportSpecifierName(node) || isStringOrNumericLiteralLike(node) && node.parent.kind === 164 ? stripQuotes(getTextOfIdentifierOrLiteral(node)) : void 0;\n    const displayName = specifierName || typeChecker.symbolToString(symbol);\n    const fullDisplayName = specifierName || typeChecker.getFullyQualifiedName(symbol);\n    return getRenameInfoSuccess(displayName, fullDisplayName, kind, ts_SymbolDisplay_exports.getSymbolModifiers(typeChecker, symbol), node, sourceFile);\n  }\n  function isDefinedInLibraryFile(program, declaration) {\n    const sourceFile = declaration.getSourceFile();\n    return program.isSourceFileDefaultLibrary(sourceFile) && fileExtensionIs(sourceFile.fileName, \".d.ts\");\n  }\n  function wouldRenameInOtherNodeModules(originalFile, symbol, checker, preferences) {\n    if (!preferences.providePrefixAndSuffixTextForRename && symbol.flags & 2097152) {\n      const importSpecifier = symbol.declarations && find(symbol.declarations, (decl) => isImportSpecifier(decl));\n      if (importSpecifier && !importSpecifier.propertyName) {\n        symbol = checker.getAliasedSymbol(symbol);\n      }\n    }\n    const { declarations } = symbol;\n    if (!declarations) {\n      return void 0;\n    }\n    const originalPackage = getPackagePathComponents(originalFile.path);\n    if (originalPackage === void 0) {\n      if (some(declarations, (declaration) => isInsideNodeModules(declaration.getSourceFile().path))) {\n        return Diagnostics.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder;\n      } else {\n        return void 0;\n      }\n    }\n    for (const declaration of declarations) {\n      const declPackage = getPackagePathComponents(declaration.getSourceFile().path);\n      if (declPackage) {\n        const length2 = Math.min(originalPackage.length, declPackage.length);\n        for (let i = 0; i <= length2; i++) {\n          if (compareStringsCaseSensitive(originalPackage[i], declPackage[i]) !== 0) {\n            return Diagnostics.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder;\n          }\n        }\n      }\n    }\n    return void 0;\n  }\n  function getPackagePathComponents(filePath) {\n    const components = getPathComponents(filePath);\n    const nodeModulesIdx = components.lastIndexOf(\"node_modules\");\n    if (nodeModulesIdx === -1) {\n      return void 0;\n    }\n    return components.slice(0, nodeModulesIdx + 2);\n  }\n  function getRenameInfoForModule(node, sourceFile, moduleSymbol) {\n    if (!isExternalModuleNameRelative(node.text)) {\n      return getRenameInfoError(Diagnostics.You_cannot_rename_a_module_via_a_global_import);\n    }\n    const moduleSourceFile = moduleSymbol.declarations && find(moduleSymbol.declarations, isSourceFile);\n    if (!moduleSourceFile)\n      return void 0;\n    const withoutIndex = endsWith(node.text, \"/index\") || endsWith(node.text, \"/index.js\") ? void 0 : tryRemoveSuffix(removeFileExtension(moduleSourceFile.fileName), \"/index\");\n    const name = withoutIndex === void 0 ? moduleSourceFile.fileName : withoutIndex;\n    const kind = withoutIndex === void 0 ? \"module\" : \"directory\";\n    const indexAfterLastSlash = node.text.lastIndexOf(\"/\") + 1;\n    const triggerSpan = createTextSpan(node.getStart(sourceFile) + 1 + indexAfterLastSlash, node.text.length - indexAfterLastSlash);\n    return {\n      canRename: true,\n      fileToRename: name,\n      kind,\n      displayName: name,\n      fullDisplayName: name,\n      kindModifiers: \"\",\n      triggerSpan\n    };\n  }\n  function getRenameInfoSuccess(displayName, fullDisplayName, kind, kindModifiers, node, sourceFile) {\n    return {\n      canRename: true,\n      fileToRename: void 0,\n      kind,\n      displayName,\n      fullDisplayName,\n      kindModifiers,\n      triggerSpan: createTriggerSpanForNode(node, sourceFile)\n    };\n  }\n  function getRenameInfoError(diagnostic) {\n    return { canRename: false, localizedErrorMessage: getLocaleSpecificMessage(diagnostic) };\n  }\n  function createTriggerSpanForNode(node, sourceFile) {\n    let start = node.getStart(sourceFile);\n    let width = node.getWidth(sourceFile);\n    if (isStringLiteralLike(node)) {\n      start += 1;\n      width -= 2;\n    }\n    return createTextSpan(start, width);\n  }\n  function nodeIsEligibleForRename(node) {\n    switch (node.kind) {\n      case 79:\n      case 80:\n      case 10:\n      case 14:\n      case 108:\n        return true;\n      case 8:\n        return isLiteralNameOfPropertyDeclarationOrIndexAccess(node);\n      default:\n        return false;\n    }\n  }\n  var init_rename = __esm({\n    \"src/services/rename.ts\"() {\n      \"use strict\";\n      init_ts4();\n    }\n  });\n  var ts_Rename_exports = {};\n  __export2(ts_Rename_exports, {\n    getRenameInfo: () => getRenameInfo,\n    nodeIsEligibleForRename: () => nodeIsEligibleForRename\n  });\n  var init_ts_Rename = __esm({\n    \"src/services/_namespaces/ts.Rename.ts\"() {\n      \"use strict\";\n      init_rename();\n    }\n  });\n  function getSignatureHelpItems(program, sourceFile, position, triggerReason, cancellationToken) {\n    const typeChecker = program.getTypeChecker();\n    const startingToken = findTokenOnLeftOfPosition(sourceFile, position);\n    if (!startingToken) {\n      return void 0;\n    }\n    const onlyUseSyntacticOwners = !!triggerReason && triggerReason.kind === \"characterTyped\";\n    if (onlyUseSyntacticOwners && (isInString(sourceFile, position, startingToken) || isInComment(sourceFile, position))) {\n      return void 0;\n    }\n    const isManuallyInvoked = !!triggerReason && triggerReason.kind === \"invoked\";\n    const argumentInfo = getContainingArgumentInfo(startingToken, position, sourceFile, typeChecker, isManuallyInvoked);\n    if (!argumentInfo)\n      return void 0;\n    cancellationToken.throwIfCancellationRequested();\n    const candidateInfo = getCandidateOrTypeInfo(argumentInfo, typeChecker, sourceFile, startingToken, onlyUseSyntacticOwners);\n    cancellationToken.throwIfCancellationRequested();\n    if (!candidateInfo) {\n      return isSourceFileJS(sourceFile) ? createJSSignatureHelpItems(argumentInfo, program, cancellationToken) : void 0;\n    }\n    return typeChecker.runWithCancellationToken(cancellationToken, (typeChecker2) => candidateInfo.kind === 0 ? createSignatureHelpItems(candidateInfo.candidates, candidateInfo.resolvedSignature, argumentInfo, sourceFile, typeChecker2) : createTypeHelpItems(candidateInfo.symbol, argumentInfo, sourceFile, typeChecker2));\n  }\n  function getCandidateOrTypeInfo({ invocation, argumentCount }, checker, sourceFile, startingToken, onlyUseSyntacticOwners) {\n    switch (invocation.kind) {\n      case 0: {\n        if (onlyUseSyntacticOwners && !isSyntacticOwner(startingToken, invocation.node, sourceFile)) {\n          return void 0;\n        }\n        const candidates = [];\n        const resolvedSignature = checker.getResolvedSignatureForSignatureHelp(invocation.node, candidates, argumentCount);\n        return candidates.length === 0 ? void 0 : { kind: 0, candidates, resolvedSignature };\n      }\n      case 1: {\n        const { called } = invocation;\n        if (onlyUseSyntacticOwners && !containsPrecedingToken(startingToken, sourceFile, isIdentifier(called) ? called.parent : called)) {\n          return void 0;\n        }\n        const candidates = getPossibleGenericSignatures(called, argumentCount, checker);\n        if (candidates.length !== 0)\n          return { kind: 0, candidates, resolvedSignature: first(candidates) };\n        const symbol = checker.getSymbolAtLocation(called);\n        return symbol && { kind: 1, symbol };\n      }\n      case 2:\n        return { kind: 0, candidates: [invocation.signature], resolvedSignature: invocation.signature };\n      default:\n        return Debug.assertNever(invocation);\n    }\n  }\n  function isSyntacticOwner(startingToken, node, sourceFile) {\n    if (!isCallOrNewExpression(node))\n      return false;\n    const invocationChildren = node.getChildren(sourceFile);\n    switch (startingToken.kind) {\n      case 20:\n        return contains(invocationChildren, startingToken);\n      case 27: {\n        const containingList = findContainingList(startingToken);\n        return !!containingList && contains(invocationChildren, containingList);\n      }\n      case 29:\n        return containsPrecedingToken(startingToken, sourceFile, node.expression);\n      default:\n        return false;\n    }\n  }\n  function createJSSignatureHelpItems(argumentInfo, program, cancellationToken) {\n    if (argumentInfo.invocation.kind === 2)\n      return void 0;\n    const expression = getExpressionFromInvocation(argumentInfo.invocation);\n    const name = isPropertyAccessExpression(expression) ? expression.name.text : void 0;\n    const typeChecker = program.getTypeChecker();\n    return name === void 0 ? void 0 : firstDefined(program.getSourceFiles(), (sourceFile) => firstDefined(sourceFile.getNamedDeclarations().get(name), (declaration) => {\n      const type = declaration.symbol && typeChecker.getTypeOfSymbolAtLocation(declaration.symbol, declaration);\n      const callSignatures = type && type.getCallSignatures();\n      if (callSignatures && callSignatures.length) {\n        return typeChecker.runWithCancellationToken(cancellationToken, (typeChecker2) => createSignatureHelpItems(callSignatures, callSignatures[0], argumentInfo, sourceFile, typeChecker2, true));\n      }\n    }));\n  }\n  function containsPrecedingToken(startingToken, sourceFile, container) {\n    const pos = startingToken.getFullStart();\n    let currentParent = startingToken.parent;\n    while (currentParent) {\n      const precedingToken = findPrecedingToken(pos, sourceFile, currentParent, true);\n      if (precedingToken) {\n        return rangeContainsRange(container, precedingToken);\n      }\n      currentParent = currentParent.parent;\n    }\n    return Debug.fail(\"Could not find preceding token\");\n  }\n  function getArgumentInfoForCompletions(node, position, sourceFile) {\n    const info = getImmediatelyContainingArgumentInfo(node, position, sourceFile);\n    return !info || info.isTypeParameterList || info.invocation.kind !== 0 ? void 0 : { invocation: info.invocation.node, argumentCount: info.argumentCount, argumentIndex: info.argumentIndex };\n  }\n  function getArgumentOrParameterListInfo(node, position, sourceFile) {\n    const info = getArgumentOrParameterListAndIndex(node, sourceFile);\n    if (!info)\n      return void 0;\n    const { list, argumentIndex } = info;\n    const argumentCount = getArgumentCount(list, isInString(sourceFile, position, node));\n    if (argumentIndex !== 0) {\n      Debug.assertLessThan(argumentIndex, argumentCount);\n    }\n    const argumentsSpan = getApplicableSpanForArguments(list, sourceFile);\n    return { list, argumentIndex, argumentCount, argumentsSpan };\n  }\n  function getArgumentOrParameterListAndIndex(node, sourceFile) {\n    if (node.kind === 29 || node.kind === 20) {\n      return { list: getChildListThatStartsWithOpenerToken(node.parent, node, sourceFile), argumentIndex: 0 };\n    } else {\n      const list = findContainingList(node);\n      return list && { list, argumentIndex: getArgumentIndex(list, node) };\n    }\n  }\n  function getImmediatelyContainingArgumentInfo(node, position, sourceFile) {\n    const { parent: parent2 } = node;\n    if (isCallOrNewExpression(parent2)) {\n      const invocation = parent2;\n      const info = getArgumentOrParameterListInfo(node, position, sourceFile);\n      if (!info)\n        return void 0;\n      const { list, argumentIndex, argumentCount, argumentsSpan } = info;\n      const isTypeParameterList = !!parent2.typeArguments && parent2.typeArguments.pos === list.pos;\n      return { isTypeParameterList, invocation: { kind: 0, node: invocation }, argumentsSpan, argumentIndex, argumentCount };\n    } else if (isNoSubstitutionTemplateLiteral(node) && isTaggedTemplateExpression(parent2)) {\n      if (isInsideTemplateLiteral(node, position, sourceFile)) {\n        return getArgumentListInfoForTemplate(parent2, 0, sourceFile);\n      }\n      return void 0;\n    } else if (isTemplateHead(node) && parent2.parent.kind === 212) {\n      const templateExpression = parent2;\n      const tagExpression = templateExpression.parent;\n      Debug.assert(templateExpression.kind === 225);\n      const argumentIndex = isInsideTemplateLiteral(node, position, sourceFile) ? 0 : 1;\n      return getArgumentListInfoForTemplate(tagExpression, argumentIndex, sourceFile);\n    } else if (isTemplateSpan(parent2) && isTaggedTemplateExpression(parent2.parent.parent)) {\n      const templateSpan = parent2;\n      const tagExpression = parent2.parent.parent;\n      if (isTemplateTail(node) && !isInsideTemplateLiteral(node, position, sourceFile)) {\n        return void 0;\n      }\n      const spanIndex = templateSpan.parent.templateSpans.indexOf(templateSpan);\n      const argumentIndex = getArgumentIndexForTemplatePiece(spanIndex, node, position, sourceFile);\n      return getArgumentListInfoForTemplate(tagExpression, argumentIndex, sourceFile);\n    } else if (isJsxOpeningLikeElement(parent2)) {\n      const attributeSpanStart = parent2.attributes.pos;\n      const attributeSpanEnd = skipTrivia(sourceFile.text, parent2.attributes.end, false);\n      return {\n        isTypeParameterList: false,\n        invocation: { kind: 0, node: parent2 },\n        argumentsSpan: createTextSpan(attributeSpanStart, attributeSpanEnd - attributeSpanStart),\n        argumentIndex: 0,\n        argumentCount: 1\n      };\n    } else {\n      const typeArgInfo = getPossibleTypeArgumentsInfo(node, sourceFile);\n      if (typeArgInfo) {\n        const { called, nTypeArguments } = typeArgInfo;\n        const invocation = { kind: 1, called };\n        const argumentsSpan = createTextSpanFromBounds(called.getStart(sourceFile), node.end);\n        return { isTypeParameterList: true, invocation, argumentsSpan, argumentIndex: nTypeArguments, argumentCount: nTypeArguments + 1 };\n      }\n      return void 0;\n    }\n  }\n  function getImmediatelyContainingArgumentOrContextualParameterInfo(node, position, sourceFile, checker) {\n    return tryGetParameterInfo(node, position, sourceFile, checker) || getImmediatelyContainingArgumentInfo(node, position, sourceFile);\n  }\n  function getHighestBinary(b) {\n    return isBinaryExpression(b.parent) ? getHighestBinary(b.parent) : b;\n  }\n  function countBinaryExpressionParameters(b) {\n    return isBinaryExpression(b.left) ? countBinaryExpressionParameters(b.left) + 1 : 2;\n  }\n  function tryGetParameterInfo(startingToken, position, sourceFile, checker) {\n    const info = getContextualSignatureLocationInfo(startingToken, sourceFile, position, checker);\n    if (!info)\n      return void 0;\n    const { contextualType, argumentIndex, argumentCount, argumentsSpan } = info;\n    const nonNullableContextualType = contextualType.getNonNullableType();\n    const symbol = nonNullableContextualType.symbol;\n    if (symbol === void 0)\n      return void 0;\n    const signature = lastOrUndefined(nonNullableContextualType.getCallSignatures());\n    if (signature === void 0)\n      return void 0;\n    const invocation = { kind: 2, signature, node: startingToken, symbol: chooseBetterSymbol(symbol) };\n    return { isTypeParameterList: false, invocation, argumentsSpan, argumentIndex, argumentCount };\n  }\n  function getContextualSignatureLocationInfo(startingToken, sourceFile, position, checker) {\n    if (startingToken.kind !== 20 && startingToken.kind !== 27)\n      return void 0;\n    const { parent: parent2 } = startingToken;\n    switch (parent2.kind) {\n      case 214:\n      case 171:\n      case 215:\n      case 216:\n        const info = getArgumentOrParameterListInfo(startingToken, position, sourceFile);\n        if (!info)\n          return void 0;\n        const { argumentIndex, argumentCount, argumentsSpan } = info;\n        const contextualType = isMethodDeclaration(parent2) ? checker.getContextualTypeForObjectLiteralElement(parent2) : checker.getContextualType(parent2);\n        return contextualType && { contextualType, argumentIndex, argumentCount, argumentsSpan };\n      case 223: {\n        const highestBinary = getHighestBinary(parent2);\n        const contextualType2 = checker.getContextualType(highestBinary);\n        const argumentIndex2 = startingToken.kind === 20 ? 0 : countBinaryExpressionParameters(parent2) - 1;\n        const argumentCount2 = countBinaryExpressionParameters(highestBinary);\n        return contextualType2 && { contextualType: contextualType2, argumentIndex: argumentIndex2, argumentCount: argumentCount2, argumentsSpan: createTextSpanFromNode(parent2) };\n      }\n      default:\n        return void 0;\n    }\n  }\n  function chooseBetterSymbol(s) {\n    return s.name === \"__type\" ? firstDefined(s.declarations, (d) => {\n      var _a2;\n      return isFunctionTypeNode(d) ? (_a2 = tryCast(d.parent, canHaveSymbol)) == null ? void 0 : _a2.symbol : void 0;\n    }) || s : s;\n  }\n  function getArgumentIndex(argumentsList, node) {\n    let argumentIndex = 0;\n    for (const child of argumentsList.getChildren()) {\n      if (child === node) {\n        break;\n      }\n      if (child.kind !== 27) {\n        argumentIndex++;\n      }\n    }\n    return argumentIndex;\n  }\n  function getArgumentCount(argumentsList, ignoreTrailingComma) {\n    const listChildren = argumentsList.getChildren();\n    let argumentCount = countWhere(listChildren, (arg) => arg.kind !== 27);\n    if (!ignoreTrailingComma && listChildren.length > 0 && last(listChildren).kind === 27) {\n      argumentCount++;\n    }\n    return argumentCount;\n  }\n  function getArgumentIndexForTemplatePiece(spanIndex, node, position, sourceFile) {\n    Debug.assert(position >= node.getStart(), \"Assumed 'position' could not occur before node.\");\n    if (isTemplateLiteralToken(node)) {\n      if (isInsideTemplateLiteral(node, position, sourceFile)) {\n        return 0;\n      }\n      return spanIndex + 2;\n    }\n    return spanIndex + 1;\n  }\n  function getArgumentListInfoForTemplate(tagExpression, argumentIndex, sourceFile) {\n    const argumentCount = isNoSubstitutionTemplateLiteral(tagExpression.template) ? 1 : tagExpression.template.templateSpans.length + 1;\n    if (argumentIndex !== 0) {\n      Debug.assertLessThan(argumentIndex, argumentCount);\n    }\n    return {\n      isTypeParameterList: false,\n      invocation: { kind: 0, node: tagExpression },\n      argumentsSpan: getApplicableSpanForTaggedTemplate(tagExpression, sourceFile),\n      argumentIndex,\n      argumentCount\n    };\n  }\n  function getApplicableSpanForArguments(argumentsList, sourceFile) {\n    const applicableSpanStart = argumentsList.getFullStart();\n    const applicableSpanEnd = skipTrivia(sourceFile.text, argumentsList.getEnd(), false);\n    return createTextSpan(applicableSpanStart, applicableSpanEnd - applicableSpanStart);\n  }\n  function getApplicableSpanForTaggedTemplate(taggedTemplate, sourceFile) {\n    const template = taggedTemplate.template;\n    const applicableSpanStart = template.getStart();\n    let applicableSpanEnd = template.getEnd();\n    if (template.kind === 225) {\n      const lastSpan = last(template.templateSpans);\n      if (lastSpan.literal.getFullWidth() === 0) {\n        applicableSpanEnd = skipTrivia(sourceFile.text, applicableSpanEnd, false);\n      }\n    }\n    return createTextSpan(applicableSpanStart, applicableSpanEnd - applicableSpanStart);\n  }\n  function getContainingArgumentInfo(node, position, sourceFile, checker, isManuallyInvoked) {\n    for (let n = node; !isSourceFile(n) && (isManuallyInvoked || !isBlock(n)); n = n.parent) {\n      Debug.assert(rangeContainsRange(n.parent, n), \"Not a subspan\", () => `Child: ${Debug.formatSyntaxKind(n.kind)}, parent: ${Debug.formatSyntaxKind(n.parent.kind)}`);\n      const argumentInfo = getImmediatelyContainingArgumentOrContextualParameterInfo(n, position, sourceFile, checker);\n      if (argumentInfo) {\n        return argumentInfo;\n      }\n    }\n    return void 0;\n  }\n  function getChildListThatStartsWithOpenerToken(parent2, openerToken, sourceFile) {\n    const children = parent2.getChildren(sourceFile);\n    const indexOfOpenerToken = children.indexOf(openerToken);\n    Debug.assert(indexOfOpenerToken >= 0 && children.length > indexOfOpenerToken + 1);\n    return children[indexOfOpenerToken + 1];\n  }\n  function getExpressionFromInvocation(invocation) {\n    return invocation.kind === 0 ? getInvokedExpression(invocation.node) : invocation.called;\n  }\n  function getEnclosingDeclarationFromInvocation(invocation) {\n    return invocation.kind === 0 ? invocation.node : invocation.kind === 1 ? invocation.called : invocation.node;\n  }\n  function createSignatureHelpItems(candidates, resolvedSignature, { isTypeParameterList, argumentCount, argumentsSpan: applicableSpan, invocation, argumentIndex }, sourceFile, typeChecker, useFullPrefix) {\n    var _a2;\n    const enclosingDeclaration = getEnclosingDeclarationFromInvocation(invocation);\n    const callTargetSymbol = invocation.kind === 2 ? invocation.symbol : typeChecker.getSymbolAtLocation(getExpressionFromInvocation(invocation)) || useFullPrefix && ((_a2 = resolvedSignature.declaration) == null ? void 0 : _a2.symbol);\n    const callTargetDisplayParts = callTargetSymbol ? symbolToDisplayParts(typeChecker, callTargetSymbol, useFullPrefix ? sourceFile : void 0, void 0) : emptyArray;\n    const items = map(candidates, (candidateSignature) => getSignatureHelpItem(candidateSignature, callTargetDisplayParts, isTypeParameterList, typeChecker, enclosingDeclaration, sourceFile));\n    if (argumentIndex !== 0) {\n      Debug.assertLessThan(argumentIndex, argumentCount);\n    }\n    let selectedItemIndex = 0;\n    let itemsSeen = 0;\n    for (let i = 0; i < items.length; i++) {\n      const item = items[i];\n      if (candidates[i] === resolvedSignature) {\n        selectedItemIndex = itemsSeen;\n        if (item.length > 1) {\n          let count = 0;\n          for (const i2 of item) {\n            if (i2.isVariadic || i2.parameters.length >= argumentCount) {\n              selectedItemIndex = itemsSeen + count;\n              break;\n            }\n            count++;\n          }\n        }\n      }\n      itemsSeen += item.length;\n    }\n    Debug.assert(selectedItemIndex !== -1);\n    const help = { items: flatMapToMutable(items, identity), applicableSpan, selectedItemIndex, argumentIndex, argumentCount };\n    const selected = help.items[selectedItemIndex];\n    if (selected.isVariadic) {\n      const firstRest = findIndex(selected.parameters, (p) => !!p.isRest);\n      if (-1 < firstRest && firstRest < selected.parameters.length - 1) {\n        help.argumentIndex = selected.parameters.length;\n      } else {\n        help.argumentIndex = Math.min(help.argumentIndex, selected.parameters.length - 1);\n      }\n    }\n    return help;\n  }\n  function createTypeHelpItems(symbol, { argumentCount, argumentsSpan: applicableSpan, invocation, argumentIndex }, sourceFile, checker) {\n    const typeParameters = checker.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol);\n    if (!typeParameters)\n      return void 0;\n    const items = [getTypeHelpItem(symbol, typeParameters, checker, getEnclosingDeclarationFromInvocation(invocation), sourceFile)];\n    return { items, applicableSpan, selectedItemIndex: 0, argumentIndex, argumentCount };\n  }\n  function getTypeHelpItem(symbol, typeParameters, checker, enclosingDeclaration, sourceFile) {\n    const typeSymbolDisplay = symbolToDisplayParts(checker, symbol);\n    const printer = createPrinterWithRemoveComments();\n    const parameters = typeParameters.map((t) => createSignatureHelpParameterForTypeParameter(t, checker, enclosingDeclaration, sourceFile, printer));\n    const documentation = symbol.getDocumentationComment(checker);\n    const tags = symbol.getJsDocTags(checker);\n    const prefixDisplayParts = [...typeSymbolDisplay, punctuationPart(29)];\n    return { isVariadic: false, prefixDisplayParts, suffixDisplayParts: [punctuationPart(31)], separatorDisplayParts, parameters, documentation, tags };\n  }\n  function getSignatureHelpItem(candidateSignature, callTargetDisplayParts, isTypeParameterList, checker, enclosingDeclaration, sourceFile) {\n    const infos = (isTypeParameterList ? itemInfoForTypeParameters : itemInfoForParameters)(candidateSignature, checker, enclosingDeclaration, sourceFile);\n    return map(infos, ({ isVariadic, parameters, prefix, suffix }) => {\n      const prefixDisplayParts = [...callTargetDisplayParts, ...prefix];\n      const suffixDisplayParts = [...suffix, ...returnTypeToDisplayParts(candidateSignature, enclosingDeclaration, checker)];\n      const documentation = candidateSignature.getDocumentationComment(checker);\n      const tags = candidateSignature.getJsDocTags();\n      return { isVariadic, prefixDisplayParts, suffixDisplayParts, separatorDisplayParts, parameters, documentation, tags };\n    });\n  }\n  function returnTypeToDisplayParts(candidateSignature, enclosingDeclaration, checker) {\n    return mapToDisplayParts((writer) => {\n      writer.writePunctuation(\":\");\n      writer.writeSpace(\" \");\n      const predicate = checker.getTypePredicateOfSignature(candidateSignature);\n      if (predicate) {\n        checker.writeTypePredicate(predicate, enclosingDeclaration, void 0, writer);\n      } else {\n        checker.writeType(checker.getReturnTypeOfSignature(candidateSignature), enclosingDeclaration, void 0, writer);\n      }\n    });\n  }\n  function itemInfoForTypeParameters(candidateSignature, checker, enclosingDeclaration, sourceFile) {\n    const typeParameters = (candidateSignature.target || candidateSignature).typeParameters;\n    const printer = createPrinterWithRemoveComments();\n    const parameters = (typeParameters || emptyArray).map((t) => createSignatureHelpParameterForTypeParameter(t, checker, enclosingDeclaration, sourceFile, printer));\n    const thisParameter = candidateSignature.thisParameter ? [checker.symbolToParameterDeclaration(candidateSignature.thisParameter, enclosingDeclaration, signatureHelpNodeBuilderFlags)] : [];\n    return checker.getExpandedParameters(candidateSignature).map((paramList) => {\n      const params = factory.createNodeArray([...thisParameter, ...map(paramList, (param) => checker.symbolToParameterDeclaration(param, enclosingDeclaration, signatureHelpNodeBuilderFlags))]);\n      const parameterParts = mapToDisplayParts((writer) => {\n        printer.writeList(2576, params, sourceFile, writer);\n      });\n      return { isVariadic: false, parameters, prefix: [punctuationPart(29)], suffix: [punctuationPart(31), ...parameterParts] };\n    });\n  }\n  function itemInfoForParameters(candidateSignature, checker, enclosingDeclaration, sourceFile) {\n    const printer = createPrinterWithRemoveComments();\n    const typeParameterParts = mapToDisplayParts((writer) => {\n      if (candidateSignature.typeParameters && candidateSignature.typeParameters.length) {\n        const args = factory.createNodeArray(candidateSignature.typeParameters.map((p) => checker.typeParameterToDeclaration(p, enclosingDeclaration, signatureHelpNodeBuilderFlags)));\n        printer.writeList(53776, args, sourceFile, writer);\n      }\n    });\n    const lists = checker.getExpandedParameters(candidateSignature);\n    const isVariadic = !checker.hasEffectiveRestParameter(candidateSignature) ? (_) => false : lists.length === 1 ? (_) => true : (pList) => {\n      var _a2;\n      return !!(pList.length && ((_a2 = tryCast(pList[pList.length - 1], isTransientSymbol)) == null ? void 0 : _a2.links.checkFlags) & 32768);\n    };\n    return lists.map((parameterList) => ({\n      isVariadic: isVariadic(parameterList),\n      parameters: parameterList.map((p) => createSignatureHelpParameterForParameter(p, checker, enclosingDeclaration, sourceFile, printer)),\n      prefix: [...typeParameterParts, punctuationPart(20)],\n      suffix: [punctuationPart(21)]\n    }));\n  }\n  function createSignatureHelpParameterForParameter(parameter, checker, enclosingDeclaration, sourceFile, printer) {\n    const displayParts = mapToDisplayParts((writer) => {\n      const param = checker.symbolToParameterDeclaration(parameter, enclosingDeclaration, signatureHelpNodeBuilderFlags);\n      printer.writeNode(4, param, sourceFile, writer);\n    });\n    const isOptional = checker.isOptionalParameter(parameter.valueDeclaration);\n    const isRest = isTransientSymbol(parameter) && !!(parameter.links.checkFlags & 32768);\n    return { name: parameter.name, documentation: parameter.getDocumentationComment(checker), displayParts, isOptional, isRest };\n  }\n  function createSignatureHelpParameterForTypeParameter(typeParameter, checker, enclosingDeclaration, sourceFile, printer) {\n    const displayParts = mapToDisplayParts((writer) => {\n      const param = checker.typeParameterToDeclaration(typeParameter, enclosingDeclaration, signatureHelpNodeBuilderFlags);\n      printer.writeNode(4, param, sourceFile, writer);\n    });\n    return { name: typeParameter.symbol.name, documentation: typeParameter.symbol.getDocumentationComment(checker), displayParts, isOptional: false, isRest: false };\n  }\n  var signatureHelpNodeBuilderFlags, separatorDisplayParts;\n  var init_signatureHelp = __esm({\n    \"src/services/signatureHelp.ts\"() {\n      \"use strict\";\n      init_ts4();\n      signatureHelpNodeBuilderFlags = 8192 | 70221824 | 16384;\n      separatorDisplayParts = [punctuationPart(27), spacePart()];\n    }\n  });\n  var ts_SignatureHelp_exports = {};\n  __export2(ts_SignatureHelp_exports, {\n    getArgumentInfoForCompletions: () => getArgumentInfoForCompletions,\n    getSignatureHelpItems: () => getSignatureHelpItems\n  });\n  var init_ts_SignatureHelp = __esm({\n    \"src/services/_namespaces/ts.SignatureHelp.ts\"() {\n      \"use strict\";\n      init_signatureHelp();\n    }\n  });\n  function getSmartSelectionRange(pos, sourceFile) {\n    var _a2, _b;\n    let selectionRange = {\n      textSpan: createTextSpanFromBounds(sourceFile.getFullStart(), sourceFile.getEnd())\n    };\n    let parentNode = sourceFile;\n    outer:\n      while (true) {\n        const children = getSelectionChildren(parentNode);\n        if (!children.length)\n          break;\n        for (let i = 0; i < children.length; i++) {\n          const prevNode = children[i - 1];\n          const node = children[i];\n          const nextNode = children[i + 1];\n          if (getTokenPosOfNode(node, sourceFile, true) > pos) {\n            break outer;\n          }\n          const comment = singleOrUndefined(getTrailingCommentRanges(sourceFile.text, node.end));\n          if (comment && comment.kind === 2) {\n            pushSelectionCommentRange(comment.pos, comment.end);\n          }\n          if (positionShouldSnapToNode(sourceFile, pos, node)) {\n            if (isFunctionBody(node) && isFunctionLikeDeclaration(parentNode) && !positionsAreOnSameLine(node.getStart(sourceFile), node.getEnd(), sourceFile)) {\n              pushSelectionRange(node.getStart(sourceFile), node.getEnd());\n            }\n            if (isBlock(node) || isTemplateSpan(node) || isTemplateHead(node) || isTemplateTail(node) || prevNode && isTemplateHead(prevNode) || isVariableDeclarationList(node) && isVariableStatement(parentNode) || isSyntaxList(node) && isVariableDeclarationList(parentNode) || isVariableDeclaration(node) && isSyntaxList(parentNode) && children.length === 1 || isJSDocTypeExpression(node) || isJSDocSignature(node) || isJSDocTypeLiteral(node)) {\n              parentNode = node;\n              break;\n            }\n            if (isTemplateSpan(parentNode) && nextNode && isTemplateMiddleOrTemplateTail(nextNode)) {\n              const start2 = node.getFullStart() - \"${\".length;\n              const end2 = nextNode.getStart() + \"}\".length;\n              pushSelectionRange(start2, end2);\n            }\n            const isBetweenMultiLineBookends = isSyntaxList(node) && isListOpener(prevNode) && isListCloser(nextNode) && !positionsAreOnSameLine(prevNode.getStart(), nextNode.getStart(), sourceFile);\n            let start = isBetweenMultiLineBookends ? prevNode.getEnd() : node.getStart();\n            const end = isBetweenMultiLineBookends ? nextNode.getStart() : getEndPos(sourceFile, node);\n            if (hasJSDocNodes(node) && ((_a2 = node.jsDoc) == null ? void 0 : _a2.length)) {\n              pushSelectionRange(first(node.jsDoc).getStart(), end);\n            }\n            if (isSyntaxList(node)) {\n              const firstChild = node.getChildren()[0];\n              if (firstChild && hasJSDocNodes(firstChild) && ((_b = firstChild.jsDoc) == null ? void 0 : _b.length) && firstChild.getStart() !== node.pos) {\n                start = Math.min(start, first(firstChild.jsDoc).getStart());\n              }\n            }\n            pushSelectionRange(start, end);\n            if (isStringLiteral(node) || isTemplateLiteral(node)) {\n              pushSelectionRange(start + 1, end - 1);\n            }\n            parentNode = node;\n            break;\n          }\n          if (i === children.length - 1) {\n            break outer;\n          }\n        }\n      }\n    return selectionRange;\n    function pushSelectionRange(start, end) {\n      if (start !== end) {\n        const textSpan = createTextSpanFromBounds(start, end);\n        if (!selectionRange || !textSpansEqual(textSpan, selectionRange.textSpan) && textSpanIntersectsWithPosition(textSpan, pos)) {\n          selectionRange = { textSpan, ...selectionRange && { parent: selectionRange } };\n        }\n      }\n    }\n    function pushSelectionCommentRange(start, end) {\n      pushSelectionRange(start, end);\n      let pos2 = start;\n      while (sourceFile.text.charCodeAt(pos2) === 47) {\n        pos2++;\n      }\n      pushSelectionRange(pos2, end);\n    }\n  }\n  function positionShouldSnapToNode(sourceFile, pos, node) {\n    Debug.assert(node.pos <= pos);\n    if (pos < node.end) {\n      return true;\n    }\n    const nodeEnd = node.getEnd();\n    if (nodeEnd === pos) {\n      return getTouchingPropertyName(sourceFile, pos).pos < node.end;\n    }\n    return false;\n  }\n  function getSelectionChildren(node) {\n    var _a2;\n    if (isSourceFile(node)) {\n      return groupChildren(node.getChildAt(0).getChildren(), isImport2);\n    }\n    if (isMappedTypeNode(node)) {\n      const [openBraceToken, ...children] = node.getChildren();\n      const closeBraceToken = Debug.checkDefined(children.pop());\n      Debug.assertEqual(openBraceToken.kind, 18);\n      Debug.assertEqual(closeBraceToken.kind, 19);\n      const groupedWithPlusMinusTokens = groupChildren(children, (child) => child === node.readonlyToken || child.kind === 146 || child === node.questionToken || child.kind === 57);\n      const groupedWithBrackets = groupChildren(groupedWithPlusMinusTokens, ({ kind }) => kind === 22 || kind === 165 || kind === 23);\n      return [\n        openBraceToken,\n        createSyntaxList2(splitChildren(groupedWithBrackets, ({ kind }) => kind === 58)),\n        closeBraceToken\n      ];\n    }\n    if (isPropertySignature(node)) {\n      const children = groupChildren(node.getChildren(), (child) => child === node.name || contains(node.modifiers, child));\n      const firstJSDocChild = ((_a2 = children[0]) == null ? void 0 : _a2.kind) === 323 ? children[0] : void 0;\n      const withJSDocSeparated = firstJSDocChild ? children.slice(1) : children;\n      const splittedChildren = splitChildren(withJSDocSeparated, ({ kind }) => kind === 58);\n      return firstJSDocChild ? [firstJSDocChild, createSyntaxList2(splittedChildren)] : splittedChildren;\n    }\n    if (isParameter(node)) {\n      const groupedDotDotDotAndName = groupChildren(node.getChildren(), (child) => child === node.dotDotDotToken || child === node.name);\n      const groupedWithQuestionToken = groupChildren(groupedDotDotDotAndName, (child) => child === groupedDotDotDotAndName[0] || child === node.questionToken);\n      return splitChildren(groupedWithQuestionToken, ({ kind }) => kind === 63);\n    }\n    if (isBindingElement(node)) {\n      return splitChildren(node.getChildren(), ({ kind }) => kind === 63);\n    }\n    return node.getChildren();\n  }\n  function groupChildren(children, groupOn) {\n    const result = [];\n    let group2;\n    for (const child of children) {\n      if (groupOn(child)) {\n        group2 = group2 || [];\n        group2.push(child);\n      } else {\n        if (group2) {\n          result.push(createSyntaxList2(group2));\n          group2 = void 0;\n        }\n        result.push(child);\n      }\n    }\n    if (group2) {\n      result.push(createSyntaxList2(group2));\n    }\n    return result;\n  }\n  function splitChildren(children, pivotOn, separateTrailingSemicolon = true) {\n    if (children.length < 2) {\n      return children;\n    }\n    const splitTokenIndex = findIndex(children, pivotOn);\n    if (splitTokenIndex === -1) {\n      return children;\n    }\n    const leftChildren = children.slice(0, splitTokenIndex);\n    const splitToken = children[splitTokenIndex];\n    const lastToken = last(children);\n    const separateLastToken = separateTrailingSemicolon && lastToken.kind === 26;\n    const rightChildren = children.slice(splitTokenIndex + 1, separateLastToken ? children.length - 1 : void 0);\n    const result = compact([\n      leftChildren.length ? createSyntaxList2(leftChildren) : void 0,\n      splitToken,\n      rightChildren.length ? createSyntaxList2(rightChildren) : void 0\n    ]);\n    return separateLastToken ? result.concat(lastToken) : result;\n  }\n  function createSyntaxList2(children) {\n    Debug.assertGreaterThanOrEqual(children.length, 1);\n    return setTextRangePosEnd(parseNodeFactory.createSyntaxList(children), children[0].pos, last(children).end);\n  }\n  function isListOpener(token) {\n    const kind = token && token.kind;\n    return kind === 18 || kind === 22 || kind === 20 || kind === 283;\n  }\n  function isListCloser(token) {\n    const kind = token && token.kind;\n    return kind === 19 || kind === 23 || kind === 21 || kind === 284;\n  }\n  function getEndPos(sourceFile, node) {\n    switch (node.kind) {\n      case 344:\n      case 341:\n      case 351:\n      case 349:\n      case 346:\n        return sourceFile.getLineEndOfPosition(node.getStart());\n      default:\n        return node.getEnd();\n    }\n  }\n  var isImport2;\n  var init_smartSelection = __esm({\n    \"src/services/smartSelection.ts\"() {\n      \"use strict\";\n      init_ts4();\n      isImport2 = or(isImportDeclaration, isImportEqualsDeclaration);\n    }\n  });\n  var ts_SmartSelectionRange_exports = {};\n  __export2(ts_SmartSelectionRange_exports, {\n    getSmartSelectionRange: () => getSmartSelectionRange\n  });\n  var init_ts_SmartSelectionRange = __esm({\n    \"src/services/_namespaces/ts.SmartSelectionRange.ts\"() {\n      \"use strict\";\n      init_smartSelection();\n    }\n  });\n  function getSymbolKind(typeChecker, symbol, location) {\n    const result = getSymbolKindOfConstructorPropertyMethodAccessorFunctionOrVar(typeChecker, symbol, location);\n    if (result !== \"\") {\n      return result;\n    }\n    const flags = getCombinedLocalAndExportSymbolFlags(symbol);\n    if (flags & 32) {\n      return getDeclarationOfKind(symbol, 228) ? \"local class\" : \"class\";\n    }\n    if (flags & 384)\n      return \"enum\";\n    if (flags & 524288)\n      return \"type\";\n    if (flags & 64)\n      return \"interface\";\n    if (flags & 262144)\n      return \"type parameter\";\n    if (flags & 8)\n      return \"enum member\";\n    if (flags & 2097152)\n      return \"alias\";\n    if (flags & 1536)\n      return \"module\";\n    return result;\n  }\n  function getSymbolKindOfConstructorPropertyMethodAccessorFunctionOrVar(typeChecker, symbol, location) {\n    const roots = typeChecker.getRootSymbols(symbol);\n    if (roots.length === 1 && first(roots).flags & 8192 && typeChecker.getTypeOfSymbolAtLocation(symbol, location).getNonNullableType().getCallSignatures().length !== 0) {\n      return \"method\";\n    }\n    if (typeChecker.isUndefinedSymbol(symbol)) {\n      return \"var\";\n    }\n    if (typeChecker.isArgumentsSymbol(symbol)) {\n      return \"local var\";\n    }\n    if (location.kind === 108 && isExpression(location) || isThisInTypeQuery(location)) {\n      return \"parameter\";\n    }\n    const flags = getCombinedLocalAndExportSymbolFlags(symbol);\n    if (flags & 3) {\n      if (isFirstDeclarationOfSymbolParameter(symbol)) {\n        return \"parameter\";\n      } else if (symbol.valueDeclaration && isVarConst(symbol.valueDeclaration)) {\n        return \"const\";\n      } else if (forEach(symbol.declarations, isLet)) {\n        return \"let\";\n      }\n      return isLocalVariableOrFunction(symbol) ? \"local var\" : \"var\";\n    }\n    if (flags & 16)\n      return isLocalVariableOrFunction(symbol) ? \"local function\" : \"function\";\n    if (flags & 32768)\n      return \"getter\";\n    if (flags & 65536)\n      return \"setter\";\n    if (flags & 8192)\n      return \"method\";\n    if (flags & 16384)\n      return \"constructor\";\n    if (flags & 131072)\n      return \"index\";\n    if (flags & 4) {\n      if (flags & 33554432 && symbol.links.checkFlags & 6) {\n        const unionPropertyKind = forEach(typeChecker.getRootSymbols(symbol), (rootSymbol) => {\n          const rootSymbolFlags = rootSymbol.getFlags();\n          if (rootSymbolFlags & (98308 | 3)) {\n            return \"property\";\n          }\n        });\n        if (!unionPropertyKind) {\n          const typeOfUnionProperty = typeChecker.getTypeOfSymbolAtLocation(symbol, location);\n          if (typeOfUnionProperty.getCallSignatures().length) {\n            return \"method\";\n          }\n          return \"property\";\n        }\n        return unionPropertyKind;\n      }\n      return \"property\";\n    }\n    return \"\";\n  }\n  function getNormalizedSymbolModifiers(symbol) {\n    if (symbol.declarations && symbol.declarations.length) {\n      const [declaration, ...declarations] = symbol.declarations;\n      const excludeFlags = length(declarations) && isDeprecatedDeclaration(declaration) && some(declarations, (d) => !isDeprecatedDeclaration(d)) ? 8192 : 0;\n      const modifiers = getNodeModifiers(declaration, excludeFlags);\n      if (modifiers) {\n        return modifiers.split(\",\");\n      }\n    }\n    return [];\n  }\n  function getSymbolModifiers(typeChecker, symbol) {\n    if (!symbol) {\n      return \"\";\n    }\n    const modifiers = new Set(getNormalizedSymbolModifiers(symbol));\n    if (symbol.flags & 2097152) {\n      const resolvedSymbol = typeChecker.getAliasedSymbol(symbol);\n      if (resolvedSymbol !== symbol) {\n        forEach(getNormalizedSymbolModifiers(resolvedSymbol), (modifier) => {\n          modifiers.add(modifier);\n        });\n      }\n    }\n    if (symbol.flags & 16777216) {\n      modifiers.add(\"optional\");\n    }\n    return modifiers.size > 0 ? arrayFrom(modifiers.values()).join(\",\") : \"\";\n  }\n  function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, sourceFile, enclosingDeclaration, location, semanticMeaning = getMeaningFromLocation(location), alias) {\n    var _a2;\n    const displayParts = [];\n    let documentation = [];\n    let tags = [];\n    const symbolFlags = getCombinedLocalAndExportSymbolFlags(symbol);\n    let symbolKind = semanticMeaning & 1 ? getSymbolKindOfConstructorPropertyMethodAccessorFunctionOrVar(typeChecker, symbol, location) : \"\";\n    let hasAddedSymbolInfo = false;\n    const isThisExpression = location.kind === 108 && isInExpressionContext(location) || isThisInTypeQuery(location);\n    let type;\n    let documentationFromAlias;\n    let tagsFromAlias;\n    let hasMultipleSignatures = false;\n    if (location.kind === 108 && !isThisExpression) {\n      return { displayParts: [keywordPart(108)], documentation: [], symbolKind: \"primitive type\", tags: void 0 };\n    }\n    if (symbolKind !== \"\" || symbolFlags & 32 || symbolFlags & 2097152) {\n      if (symbolKind === \"getter\" || symbolKind === \"setter\") {\n        const declaration = find(symbol.declarations, (declaration2) => declaration2.name === location);\n        if (declaration) {\n          switch (declaration.kind) {\n            case 174:\n              symbolKind = \"getter\";\n              break;\n            case 175:\n              symbolKind = \"setter\";\n              break;\n            case 169:\n              symbolKind = \"accessor\";\n              break;\n            default:\n              Debug.assertNever(declaration);\n          }\n        } else {\n          symbolKind = \"property\";\n        }\n      }\n      let signature;\n      type = isThisExpression ? typeChecker.getTypeAtLocation(location) : typeChecker.getTypeOfSymbolAtLocation(symbol, location);\n      if (location.parent && location.parent.kind === 208) {\n        const right = location.parent.name;\n        if (right === location || right && right.getFullWidth() === 0) {\n          location = location.parent;\n        }\n      }\n      let callExpressionLike;\n      if (isCallOrNewExpression(location)) {\n        callExpressionLike = location;\n      } else if (isCallExpressionTarget(location) || isNewExpressionTarget(location)) {\n        callExpressionLike = location.parent;\n      } else if (location.parent && (isJsxOpeningLikeElement(location.parent) || isTaggedTemplateExpression(location.parent)) && isFunctionLike(symbol.valueDeclaration)) {\n        callExpressionLike = location.parent;\n      }\n      if (callExpressionLike) {\n        signature = typeChecker.getResolvedSignature(callExpressionLike);\n        const useConstructSignatures = callExpressionLike.kind === 211 || isCallExpression(callExpressionLike) && callExpressionLike.expression.kind === 106;\n        const allSignatures = useConstructSignatures ? type.getConstructSignatures() : type.getCallSignatures();\n        if (signature && !contains(allSignatures, signature.target) && !contains(allSignatures, signature)) {\n          signature = allSignatures.length ? allSignatures[0] : void 0;\n        }\n        if (signature) {\n          if (useConstructSignatures && symbolFlags & 32) {\n            symbolKind = \"constructor\";\n            addPrefixForAnyFunctionOrVar(type.symbol, symbolKind);\n          } else if (symbolFlags & 2097152) {\n            symbolKind = \"alias\";\n            pushSymbolKind(symbolKind);\n            displayParts.push(spacePart());\n            if (useConstructSignatures) {\n              if (signature.flags & 4) {\n                displayParts.push(keywordPart(126));\n                displayParts.push(spacePart());\n              }\n              displayParts.push(keywordPart(103));\n              displayParts.push(spacePart());\n            }\n            addFullSymbolName(symbol);\n          } else {\n            addPrefixForAnyFunctionOrVar(symbol, symbolKind);\n          }\n          switch (symbolKind) {\n            case \"JSX attribute\":\n            case \"property\":\n            case \"var\":\n            case \"const\":\n            case \"let\":\n            case \"parameter\":\n            case \"local var\":\n              displayParts.push(punctuationPart(58));\n              displayParts.push(spacePart());\n              if (!(getObjectFlags(type) & 16) && type.symbol) {\n                addRange(displayParts, symbolToDisplayParts(typeChecker, type.symbol, enclosingDeclaration, void 0, 4 | 1));\n                displayParts.push(lineBreakPart());\n              }\n              if (useConstructSignatures) {\n                if (signature.flags & 4) {\n                  displayParts.push(keywordPart(126));\n                  displayParts.push(spacePart());\n                }\n                displayParts.push(keywordPart(103));\n                displayParts.push(spacePart());\n              }\n              addSignatureDisplayParts(signature, allSignatures, 262144);\n              break;\n            default:\n              addSignatureDisplayParts(signature, allSignatures);\n          }\n          hasAddedSymbolInfo = true;\n          hasMultipleSignatures = allSignatures.length > 1;\n        }\n      } else if (isNameOfFunctionDeclaration(location) && !(symbolFlags & 98304) || location.kind === 135 && location.parent.kind === 173) {\n        const functionDeclaration = location.parent;\n        const locationIsSymbolDeclaration = symbol.declarations && find(symbol.declarations, (declaration) => declaration === (location.kind === 135 ? functionDeclaration.parent : functionDeclaration));\n        if (locationIsSymbolDeclaration) {\n          const allSignatures = functionDeclaration.kind === 173 ? type.getNonNullableType().getConstructSignatures() : type.getNonNullableType().getCallSignatures();\n          if (!typeChecker.isImplementationOfOverload(functionDeclaration)) {\n            signature = typeChecker.getSignatureFromDeclaration(functionDeclaration);\n          } else {\n            signature = allSignatures[0];\n          }\n          if (functionDeclaration.kind === 173) {\n            symbolKind = \"constructor\";\n            addPrefixForAnyFunctionOrVar(type.symbol, symbolKind);\n          } else {\n            addPrefixForAnyFunctionOrVar(functionDeclaration.kind === 176 && !(type.symbol.flags & 2048 || type.symbol.flags & 4096) ? type.symbol : symbol, symbolKind);\n          }\n          if (signature) {\n            addSignatureDisplayParts(signature, allSignatures);\n          }\n          hasAddedSymbolInfo = true;\n          hasMultipleSignatures = allSignatures.length > 1;\n        }\n      }\n    }\n    if (symbolFlags & 32 && !hasAddedSymbolInfo && !isThisExpression) {\n      addAliasPrefixIfNecessary();\n      if (getDeclarationOfKind(symbol, 228)) {\n        pushSymbolKind(\"local class\");\n      } else {\n        displayParts.push(keywordPart(84));\n      }\n      displayParts.push(spacePart());\n      addFullSymbolName(symbol);\n      writeTypeParametersOfSymbol(symbol, sourceFile);\n    }\n    if (symbolFlags & 64 && semanticMeaning & 2) {\n      prefixNextMeaning();\n      displayParts.push(keywordPart(118));\n      displayParts.push(spacePart());\n      addFullSymbolName(symbol);\n      writeTypeParametersOfSymbol(symbol, sourceFile);\n    }\n    if (symbolFlags & 524288 && semanticMeaning & 2) {\n      prefixNextMeaning();\n      displayParts.push(keywordPart(154));\n      displayParts.push(spacePart());\n      addFullSymbolName(symbol);\n      writeTypeParametersOfSymbol(symbol, sourceFile);\n      displayParts.push(spacePart());\n      displayParts.push(operatorPart(63));\n      displayParts.push(spacePart());\n      addRange(displayParts, typeToDisplayParts(typeChecker, isConstTypeReference(location.parent) ? typeChecker.getTypeAtLocation(location.parent) : typeChecker.getDeclaredTypeOfSymbol(symbol), enclosingDeclaration, 8388608));\n    }\n    if (symbolFlags & 384) {\n      prefixNextMeaning();\n      if (some(symbol.declarations, (d) => isEnumDeclaration(d) && isEnumConst(d))) {\n        displayParts.push(keywordPart(85));\n        displayParts.push(spacePart());\n      }\n      displayParts.push(keywordPart(92));\n      displayParts.push(spacePart());\n      addFullSymbolName(symbol);\n    }\n    if (symbolFlags & 1536 && !isThisExpression) {\n      prefixNextMeaning();\n      const declaration = getDeclarationOfKind(symbol, 264);\n      const isNamespace = declaration && declaration.name && declaration.name.kind === 79;\n      displayParts.push(keywordPart(isNamespace ? 143 : 142));\n      displayParts.push(spacePart());\n      addFullSymbolName(symbol);\n    }\n    if (symbolFlags & 262144 && semanticMeaning & 2) {\n      prefixNextMeaning();\n      displayParts.push(punctuationPart(20));\n      displayParts.push(textPart(\"type parameter\"));\n      displayParts.push(punctuationPart(21));\n      displayParts.push(spacePart());\n      addFullSymbolName(symbol);\n      if (symbol.parent) {\n        addInPrefix();\n        addFullSymbolName(symbol.parent, enclosingDeclaration);\n        writeTypeParametersOfSymbol(symbol.parent, enclosingDeclaration);\n      } else {\n        const decl = getDeclarationOfKind(symbol, 165);\n        if (decl === void 0)\n          return Debug.fail();\n        const declaration = decl.parent;\n        if (declaration) {\n          if (isFunctionLike(declaration)) {\n            addInPrefix();\n            const signature = typeChecker.getSignatureFromDeclaration(declaration);\n            if (declaration.kind === 177) {\n              displayParts.push(keywordPart(103));\n              displayParts.push(spacePart());\n            } else if (declaration.kind !== 176 && declaration.name) {\n              addFullSymbolName(declaration.symbol);\n            }\n            addRange(displayParts, signatureToDisplayParts(typeChecker, signature, sourceFile, 32));\n          } else if (isTypeAliasDeclaration(declaration)) {\n            addInPrefix();\n            displayParts.push(keywordPart(154));\n            displayParts.push(spacePart());\n            addFullSymbolName(declaration.symbol);\n            writeTypeParametersOfSymbol(declaration.symbol, sourceFile);\n          }\n        }\n      }\n    }\n    if (symbolFlags & 8) {\n      symbolKind = \"enum member\";\n      addPrefixForAnyFunctionOrVar(symbol, \"enum member\");\n      const declaration = (_a2 = symbol.declarations) == null ? void 0 : _a2[0];\n      if ((declaration == null ? void 0 : declaration.kind) === 302) {\n        const constantValue = typeChecker.getConstantValue(declaration);\n        if (constantValue !== void 0) {\n          displayParts.push(spacePart());\n          displayParts.push(operatorPart(63));\n          displayParts.push(spacePart());\n          displayParts.push(displayPart(getTextOfConstantValue(constantValue), typeof constantValue === \"number\" ? 7 : 8));\n        }\n      }\n    }\n    if (symbol.flags & 2097152) {\n      prefixNextMeaning();\n      if (!hasAddedSymbolInfo) {\n        const resolvedSymbol = typeChecker.getAliasedSymbol(symbol);\n        if (resolvedSymbol !== symbol && resolvedSymbol.declarations && resolvedSymbol.declarations.length > 0) {\n          const resolvedNode = resolvedSymbol.declarations[0];\n          const declarationName = getNameOfDeclaration(resolvedNode);\n          if (declarationName) {\n            const isExternalModuleDeclaration = isModuleWithStringLiteralName(resolvedNode) && hasSyntacticModifier(resolvedNode, 2);\n            const shouldUseAliasName = symbol.name !== \"default\" && !isExternalModuleDeclaration;\n            const resolvedInfo = getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, resolvedSymbol, getSourceFileOfNode(resolvedNode), resolvedNode, declarationName, semanticMeaning, shouldUseAliasName ? symbol : resolvedSymbol);\n            displayParts.push(...resolvedInfo.displayParts);\n            displayParts.push(lineBreakPart());\n            documentationFromAlias = resolvedInfo.documentation;\n            tagsFromAlias = resolvedInfo.tags;\n          } else {\n            documentationFromAlias = resolvedSymbol.getContextualDocumentationComment(resolvedNode, typeChecker);\n            tagsFromAlias = resolvedSymbol.getJsDocTags(typeChecker);\n          }\n        }\n      }\n      if (symbol.declarations) {\n        switch (symbol.declarations[0].kind) {\n          case 267:\n            displayParts.push(keywordPart(93));\n            displayParts.push(spacePart());\n            displayParts.push(keywordPart(143));\n            break;\n          case 274:\n            displayParts.push(keywordPart(93));\n            displayParts.push(spacePart());\n            displayParts.push(keywordPart(symbol.declarations[0].isExportEquals ? 63 : 88));\n            break;\n          case 278:\n            displayParts.push(keywordPart(93));\n            break;\n          default:\n            displayParts.push(keywordPart(100));\n        }\n      }\n      displayParts.push(spacePart());\n      addFullSymbolName(symbol);\n      forEach(symbol.declarations, (declaration) => {\n        if (declaration.kind === 268) {\n          const importEqualsDeclaration = declaration;\n          if (isExternalModuleImportEqualsDeclaration(importEqualsDeclaration)) {\n            displayParts.push(spacePart());\n            displayParts.push(operatorPart(63));\n            displayParts.push(spacePart());\n            displayParts.push(keywordPart(147));\n            displayParts.push(punctuationPart(20));\n            displayParts.push(displayPart(getTextOfNode(getExternalModuleImportEqualsDeclarationExpression(importEqualsDeclaration)), 8));\n            displayParts.push(punctuationPart(21));\n          } else {\n            const internalAliasSymbol = typeChecker.getSymbolAtLocation(importEqualsDeclaration.moduleReference);\n            if (internalAliasSymbol) {\n              displayParts.push(spacePart());\n              displayParts.push(operatorPart(63));\n              displayParts.push(spacePart());\n              addFullSymbolName(internalAliasSymbol, enclosingDeclaration);\n            }\n          }\n          return true;\n        }\n      });\n    }\n    if (!hasAddedSymbolInfo) {\n      if (symbolKind !== \"\") {\n        if (type) {\n          if (isThisExpression) {\n            prefixNextMeaning();\n            displayParts.push(keywordPart(108));\n          } else {\n            addPrefixForAnyFunctionOrVar(symbol, symbolKind);\n          }\n          if (symbolKind === \"property\" || symbolKind === \"accessor\" || symbolKind === \"getter\" || symbolKind === \"setter\" || symbolKind === \"JSX attribute\" || symbolFlags & 3 || symbolKind === \"local var\" || symbolKind === \"index\" || isThisExpression) {\n            displayParts.push(punctuationPart(58));\n            displayParts.push(spacePart());\n            if (type.symbol && type.symbol.flags & 262144 && symbolKind !== \"index\") {\n              const typeParameterParts = mapToDisplayParts((writer) => {\n                const param = typeChecker.typeParameterToDeclaration(type, enclosingDeclaration, symbolDisplayNodeBuilderFlags);\n                getPrinter().writeNode(4, param, getSourceFileOfNode(getParseTreeNode(enclosingDeclaration)), writer);\n              });\n              addRange(displayParts, typeParameterParts);\n            } else {\n              addRange(displayParts, typeToDisplayParts(typeChecker, type, enclosingDeclaration));\n            }\n            if (isTransientSymbol(symbol) && symbol.links.target && isTransientSymbol(symbol.links.target) && symbol.links.target.links.tupleLabelDeclaration) {\n              const labelDecl = symbol.links.target.links.tupleLabelDeclaration;\n              Debug.assertNode(labelDecl.name, isIdentifier);\n              displayParts.push(spacePart());\n              displayParts.push(punctuationPart(20));\n              displayParts.push(textPart(idText(labelDecl.name)));\n              displayParts.push(punctuationPart(21));\n            }\n          } else if (symbolFlags & 16 || symbolFlags & 8192 || symbolFlags & 16384 || symbolFlags & 131072 || symbolFlags & 98304 || symbolKind === \"method\") {\n            const allSignatures = type.getNonNullableType().getCallSignatures();\n            if (allSignatures.length) {\n              addSignatureDisplayParts(allSignatures[0], allSignatures);\n              hasMultipleSignatures = allSignatures.length > 1;\n            }\n          }\n        }\n      } else {\n        symbolKind = getSymbolKind(typeChecker, symbol, location);\n      }\n    }\n    if (documentation.length === 0 && !hasMultipleSignatures) {\n      documentation = symbol.getContextualDocumentationComment(enclosingDeclaration, typeChecker);\n    }\n    if (documentation.length === 0 && symbolFlags & 4) {\n      if (symbol.parent && symbol.declarations && forEach(symbol.parent.declarations, (declaration) => declaration.kind === 308)) {\n        for (const declaration of symbol.declarations) {\n          if (!declaration.parent || declaration.parent.kind !== 223) {\n            continue;\n          }\n          const rhsSymbol = typeChecker.getSymbolAtLocation(declaration.parent.right);\n          if (!rhsSymbol) {\n            continue;\n          }\n          documentation = rhsSymbol.getDocumentationComment(typeChecker);\n          tags = rhsSymbol.getJsDocTags(typeChecker);\n          if (documentation.length > 0) {\n            break;\n          }\n        }\n      }\n    }\n    if (documentation.length === 0 && isIdentifier(location) && symbol.valueDeclaration && isBindingElement(symbol.valueDeclaration)) {\n      const declaration = symbol.valueDeclaration;\n      const parent2 = declaration.parent;\n      if (isIdentifier(declaration.name) && isObjectBindingPattern(parent2)) {\n        const name = getTextOfIdentifierOrLiteral(declaration.name);\n        const objectType = typeChecker.getTypeAtLocation(parent2);\n        documentation = firstDefined(objectType.isUnion() ? objectType.types : [objectType], (t) => {\n          const prop = t.getProperty(name);\n          return prop ? prop.getDocumentationComment(typeChecker) : void 0;\n        }) || emptyArray;\n      }\n    }\n    if (tags.length === 0 && !hasMultipleSignatures) {\n      tags = symbol.getContextualJsDocTags(enclosingDeclaration, typeChecker);\n    }\n    if (documentation.length === 0 && documentationFromAlias) {\n      documentation = documentationFromAlias;\n    }\n    if (tags.length === 0 && tagsFromAlias) {\n      tags = tagsFromAlias;\n    }\n    return { displayParts, documentation, symbolKind, tags: tags.length === 0 ? void 0 : tags };\n    function getPrinter() {\n      return createPrinterWithRemoveComments();\n    }\n    function prefixNextMeaning() {\n      if (displayParts.length) {\n        displayParts.push(lineBreakPart());\n      }\n      addAliasPrefixIfNecessary();\n    }\n    function addAliasPrefixIfNecessary() {\n      if (alias) {\n        pushSymbolKind(\"alias\");\n        displayParts.push(spacePart());\n      }\n    }\n    function addInPrefix() {\n      displayParts.push(spacePart());\n      displayParts.push(keywordPart(101));\n      displayParts.push(spacePart());\n    }\n    function addFullSymbolName(symbolToDisplay, enclosingDeclaration2) {\n      let indexInfos;\n      if (alias && symbolToDisplay === symbol) {\n        symbolToDisplay = alias;\n      }\n      if (symbolKind === \"index\") {\n        indexInfos = typeChecker.getIndexInfosOfIndexSymbol(symbolToDisplay);\n      }\n      let fullSymbolDisplayParts = [];\n      if (symbolToDisplay.flags & 131072 && indexInfos) {\n        if (symbolToDisplay.parent) {\n          fullSymbolDisplayParts = symbolToDisplayParts(typeChecker, symbolToDisplay.parent);\n        }\n        fullSymbolDisplayParts.push(punctuationPart(22));\n        indexInfos.forEach((info, i) => {\n          fullSymbolDisplayParts.push(...typeToDisplayParts(typeChecker, info.keyType));\n          if (i !== indexInfos.length - 1) {\n            fullSymbolDisplayParts.push(spacePart());\n            fullSymbolDisplayParts.push(punctuationPart(51));\n            fullSymbolDisplayParts.push(spacePart());\n          }\n        });\n        fullSymbolDisplayParts.push(punctuationPart(23));\n      } else {\n        fullSymbolDisplayParts = symbolToDisplayParts(typeChecker, symbolToDisplay, enclosingDeclaration2 || sourceFile, void 0, 1 | 2 | 4);\n      }\n      addRange(displayParts, fullSymbolDisplayParts);\n      if (symbol.flags & 16777216) {\n        displayParts.push(punctuationPart(57));\n      }\n    }\n    function addPrefixForAnyFunctionOrVar(symbol2, symbolKind2) {\n      prefixNextMeaning();\n      if (symbolKind2) {\n        pushSymbolKind(symbolKind2);\n        if (symbol2 && !some(symbol2.declarations, (d) => isArrowFunction(d) || (isFunctionExpression(d) || isClassExpression(d)) && !d.name)) {\n          displayParts.push(spacePart());\n          addFullSymbolName(symbol2);\n        }\n      }\n    }\n    function pushSymbolKind(symbolKind2) {\n      switch (symbolKind2) {\n        case \"var\":\n        case \"function\":\n        case \"let\":\n        case \"const\":\n        case \"constructor\":\n          displayParts.push(textOrKeywordPart(symbolKind2));\n          return;\n        default:\n          displayParts.push(punctuationPart(20));\n          displayParts.push(textOrKeywordPart(symbolKind2));\n          displayParts.push(punctuationPart(21));\n          return;\n      }\n    }\n    function addSignatureDisplayParts(signature, allSignatures, flags = 0) {\n      addRange(displayParts, signatureToDisplayParts(typeChecker, signature, enclosingDeclaration, flags | 32));\n      if (allSignatures.length > 1) {\n        displayParts.push(spacePart());\n        displayParts.push(punctuationPart(20));\n        displayParts.push(operatorPart(39));\n        displayParts.push(displayPart((allSignatures.length - 1).toString(), 7));\n        displayParts.push(spacePart());\n        displayParts.push(textPart(allSignatures.length === 2 ? \"overload\" : \"overloads\"));\n        displayParts.push(punctuationPart(21));\n      }\n      documentation = signature.getDocumentationComment(typeChecker);\n      tags = signature.getJsDocTags();\n      if (allSignatures.length > 1 && documentation.length === 0 && tags.length === 0) {\n        documentation = allSignatures[0].getDocumentationComment(typeChecker);\n        tags = allSignatures[0].getJsDocTags().filter((tag) => tag.name !== \"deprecated\");\n      }\n    }\n    function writeTypeParametersOfSymbol(symbol2, enclosingDeclaration2) {\n      const typeParameterParts = mapToDisplayParts((writer) => {\n        const params = typeChecker.symbolToTypeParameterDeclarations(symbol2, enclosingDeclaration2, symbolDisplayNodeBuilderFlags);\n        getPrinter().writeList(53776, params, getSourceFileOfNode(getParseTreeNode(enclosingDeclaration2)), writer);\n      });\n      addRange(displayParts, typeParameterParts);\n    }\n  }\n  function isLocalVariableOrFunction(symbol) {\n    if (symbol.parent) {\n      return false;\n    }\n    return forEach(symbol.declarations, (declaration) => {\n      if (declaration.kind === 215) {\n        return true;\n      }\n      if (declaration.kind !== 257 && declaration.kind !== 259) {\n        return false;\n      }\n      for (let parent2 = declaration.parent; !isFunctionBlock(parent2); parent2 = parent2.parent) {\n        if (parent2.kind === 308 || parent2.kind === 265) {\n          return false;\n        }\n      }\n      return true;\n    });\n  }\n  var symbolDisplayNodeBuilderFlags;\n  var init_symbolDisplay = __esm({\n    \"src/services/symbolDisplay.ts\"() {\n      \"use strict\";\n      init_ts4();\n      symbolDisplayNodeBuilderFlags = 8192 | 70221824 | 16384;\n    }\n  });\n  var ts_SymbolDisplay_exports = {};\n  __export2(ts_SymbolDisplay_exports, {\n    getSymbolDisplayPartsDocumentationAndSymbolKind: () => getSymbolDisplayPartsDocumentationAndSymbolKind,\n    getSymbolKind: () => getSymbolKind,\n    getSymbolModifiers: () => getSymbolModifiers\n  });\n  var init_ts_SymbolDisplay = __esm({\n    \"src/services/_namespaces/ts.SymbolDisplay.ts\"() {\n      \"use strict\";\n      init_symbolDisplay();\n    }\n  });\n  function getPos2(n) {\n    const result = n.__pos;\n    Debug.assert(typeof result === \"number\");\n    return result;\n  }\n  function setPos(n, pos) {\n    Debug.assert(typeof pos === \"number\");\n    n.__pos = pos;\n  }\n  function getEnd(n) {\n    const result = n.__end;\n    Debug.assert(typeof result === \"number\");\n    return result;\n  }\n  function setEnd(n, end) {\n    Debug.assert(typeof end === \"number\");\n    n.__end = end;\n  }\n  function skipWhitespacesAndLineBreaks(text, start) {\n    return skipTrivia(text, start, false, true);\n  }\n  function hasCommentsBeforeLineBreak(text, start) {\n    let i = start;\n    while (i < text.length) {\n      const ch = text.charCodeAt(i);\n      if (isWhiteSpaceSingleLine(ch)) {\n        i++;\n        continue;\n      }\n      return ch === 47;\n    }\n    return false;\n  }\n  function getAdjustedRange(sourceFile, startNode2, endNode2, options) {\n    return { pos: getAdjustedStartPosition(sourceFile, startNode2, options), end: getAdjustedEndPosition(sourceFile, endNode2, options) };\n  }\n  function getAdjustedStartPosition(sourceFile, node, options, hasTrailingComment = false) {\n    var _a2, _b;\n    const { leadingTriviaOption } = options;\n    if (leadingTriviaOption === 0) {\n      return node.getStart(sourceFile);\n    }\n    if (leadingTriviaOption === 3) {\n      const startPos = node.getStart(sourceFile);\n      const pos = getLineStartPositionForPosition(startPos, sourceFile);\n      return rangeContainsPosition(node, pos) ? pos : startPos;\n    }\n    if (leadingTriviaOption === 2) {\n      const JSDocComments = getJSDocCommentRanges(node, sourceFile.text);\n      if (JSDocComments == null ? void 0 : JSDocComments.length) {\n        return getLineStartPositionForPosition(JSDocComments[0].pos, sourceFile);\n      }\n    }\n    const fullStart = node.getFullStart();\n    const start = node.getStart(sourceFile);\n    if (fullStart === start) {\n      return start;\n    }\n    const fullStartLine = getLineStartPositionForPosition(fullStart, sourceFile);\n    const startLine = getLineStartPositionForPosition(start, sourceFile);\n    if (startLine === fullStartLine) {\n      return leadingTriviaOption === 1 ? fullStart : start;\n    }\n    if (hasTrailingComment) {\n      const comment = ((_a2 = getLeadingCommentRanges(sourceFile.text, fullStart)) == null ? void 0 : _a2[0]) || ((_b = getTrailingCommentRanges(sourceFile.text, fullStart)) == null ? void 0 : _b[0]);\n      if (comment) {\n        return skipTrivia(sourceFile.text, comment.end, true, true);\n      }\n    }\n    const nextLineStart = fullStart > 0 ? 1 : 0;\n    let adjustedStartPosition = getStartPositionOfLine(getLineOfLocalPosition(sourceFile, fullStartLine) + nextLineStart, sourceFile);\n    adjustedStartPosition = skipWhitespacesAndLineBreaks(sourceFile.text, adjustedStartPosition);\n    return getStartPositionOfLine(getLineOfLocalPosition(sourceFile, adjustedStartPosition), sourceFile);\n  }\n  function getEndPositionOfMultilineTrailingComment(sourceFile, node, options) {\n    const { end } = node;\n    const { trailingTriviaOption } = options;\n    if (trailingTriviaOption === 2) {\n      const comments = getTrailingCommentRanges(sourceFile.text, end);\n      if (comments) {\n        const nodeEndLine = getLineOfLocalPosition(sourceFile, node.end);\n        for (const comment of comments) {\n          if (comment.kind === 2 || getLineOfLocalPosition(sourceFile, comment.pos) > nodeEndLine) {\n            break;\n          }\n          const commentEndLine = getLineOfLocalPosition(sourceFile, comment.end);\n          if (commentEndLine > nodeEndLine) {\n            return skipTrivia(sourceFile.text, comment.end, true, true);\n          }\n        }\n      }\n    }\n    return void 0;\n  }\n  function getAdjustedEndPosition(sourceFile, node, options) {\n    var _a2;\n    const { end } = node;\n    const { trailingTriviaOption } = options;\n    if (trailingTriviaOption === 0) {\n      return end;\n    }\n    if (trailingTriviaOption === 1) {\n      const comments = concatenate(getTrailingCommentRanges(sourceFile.text, end), getLeadingCommentRanges(sourceFile.text, end));\n      const realEnd = (_a2 = comments == null ? void 0 : comments[comments.length - 1]) == null ? void 0 : _a2.end;\n      if (realEnd) {\n        return realEnd;\n      }\n      return end;\n    }\n    const multilineEndPosition = getEndPositionOfMultilineTrailingComment(sourceFile, node, options);\n    if (multilineEndPosition) {\n      return multilineEndPosition;\n    }\n    const newEnd = skipTrivia(sourceFile.text, end, true);\n    return newEnd !== end && (trailingTriviaOption === 2 || isLineBreak(sourceFile.text.charCodeAt(newEnd - 1))) ? newEnd : end;\n  }\n  function isSeparator(node, candidate) {\n    return !!candidate && !!node.parent && (candidate.kind === 27 || candidate.kind === 26 && node.parent.kind === 207);\n  }\n  function isThisTypeAnnotatable(containingFunction) {\n    return isFunctionExpression(containingFunction) || isFunctionDeclaration(containingFunction);\n  }\n  function updateJSDocHost(parent2) {\n    if (parent2.kind !== 216) {\n      return parent2;\n    }\n    const jsDocNode = parent2.parent.kind === 169 ? parent2.parent : parent2.parent.parent;\n    jsDocNode.jsDoc = parent2.jsDoc;\n    return jsDocNode;\n  }\n  function tryMergeJsdocTags(oldTag, newTag) {\n    if (oldTag.kind !== newTag.kind) {\n      return void 0;\n    }\n    switch (oldTag.kind) {\n      case 344: {\n        const oldParam = oldTag;\n        const newParam = newTag;\n        return isIdentifier(oldParam.name) && isIdentifier(newParam.name) && oldParam.name.escapedText === newParam.name.escapedText ? factory.createJSDocParameterTag(void 0, newParam.name, false, newParam.typeExpression, newParam.isNameFirst, oldParam.comment) : void 0;\n      }\n      case 345:\n        return factory.createJSDocReturnTag(void 0, newTag.typeExpression, oldTag.comment);\n      case 347:\n        return factory.createJSDocTypeTag(void 0, newTag.typeExpression, oldTag.comment);\n    }\n  }\n  function startPositionToDeleteNodeInList(sourceFile, node) {\n    return skipTrivia(sourceFile.text, getAdjustedStartPosition(sourceFile, node, { leadingTriviaOption: 1 }), false, true);\n  }\n  function endPositionToDeleteNodeInList(sourceFile, node, prevNode, nextNode) {\n    const end = startPositionToDeleteNodeInList(sourceFile, nextNode);\n    if (prevNode === void 0 || positionsAreOnSameLine(getAdjustedEndPosition(sourceFile, node, {}), end, sourceFile)) {\n      return end;\n    }\n    const token = findPrecedingToken(nextNode.getStart(sourceFile), sourceFile);\n    if (isSeparator(node, token)) {\n      const prevToken = findPrecedingToken(node.getStart(sourceFile), sourceFile);\n      if (isSeparator(prevNode, prevToken)) {\n        const pos = skipTrivia(sourceFile.text, token.getEnd(), true, true);\n        if (positionsAreOnSameLine(prevToken.getStart(sourceFile), token.getStart(sourceFile), sourceFile)) {\n          return isLineBreak(sourceFile.text.charCodeAt(pos - 1)) ? pos - 1 : pos;\n        }\n        if (isLineBreak(sourceFile.text.charCodeAt(pos))) {\n          return pos;\n        }\n      }\n    }\n    return end;\n  }\n  function getClassOrObjectBraceEnds(cls, sourceFile) {\n    const open = findChildOfKind(cls, 18, sourceFile);\n    const close = findChildOfKind(cls, 19, sourceFile);\n    return [open == null ? void 0 : open.end, close == null ? void 0 : close.end];\n  }\n  function getMembersOrProperties(node) {\n    return isObjectLiteralExpression(node) ? node.properties : node.members;\n  }\n  function getNewFileText(statements, scriptKind, newLineCharacter, formatContext) {\n    return changesToText.newFileChangesWorker(void 0, scriptKind, statements, newLineCharacter, formatContext);\n  }\n  function applyChanges(text, changes) {\n    for (let i = changes.length - 1; i >= 0; i--) {\n      const { span, newText } = changes[i];\n      text = `${text.substring(0, span.start)}${newText}${text.substring(textSpanEnd(span))}`;\n    }\n    return text;\n  }\n  function isTrivia2(s) {\n    return skipTrivia(s, 0) === s.length;\n  }\n  function assignPositionsToNode(node) {\n    const visited = visitEachChild(node, assignPositionsToNode, textChangesTransformationContext, assignPositionsToNodeArray, assignPositionsToNode);\n    const newNode = nodeIsSynthesized(visited) ? visited : Object.create(visited);\n    setTextRangePosEnd(newNode, getPos2(node), getEnd(node));\n    return newNode;\n  }\n  function assignPositionsToNodeArray(nodes, visitor, test, start, count) {\n    const visited = visitNodes2(nodes, visitor, test, start, count);\n    if (!visited) {\n      return visited;\n    }\n    Debug.assert(nodes);\n    const nodeArray = visited === nodes ? factory.createNodeArray(visited.slice(0)) : visited;\n    setTextRangePosEnd(nodeArray, getPos2(nodes), getEnd(nodes));\n    return nodeArray;\n  }\n  function createWriter(newLine) {\n    let lastNonTriviaPosition = 0;\n    const writer = createTextWriter(newLine);\n    const onBeforeEmitNode = (node) => {\n      if (node) {\n        setPos(node, lastNonTriviaPosition);\n      }\n    };\n    const onAfterEmitNode = (node) => {\n      if (node) {\n        setEnd(node, lastNonTriviaPosition);\n      }\n    };\n    const onBeforeEmitNodeArray = (nodes) => {\n      if (nodes) {\n        setPos(nodes, lastNonTriviaPosition);\n      }\n    };\n    const onAfterEmitNodeArray = (nodes) => {\n      if (nodes) {\n        setEnd(nodes, lastNonTriviaPosition);\n      }\n    };\n    const onBeforeEmitToken = (node) => {\n      if (node) {\n        setPos(node, lastNonTriviaPosition);\n      }\n    };\n    const onAfterEmitToken = (node) => {\n      if (node) {\n        setEnd(node, lastNonTriviaPosition);\n      }\n    };\n    function setLastNonTriviaPosition(s, force) {\n      if (force || !isTrivia2(s)) {\n        lastNonTriviaPosition = writer.getTextPos();\n        let i = 0;\n        while (isWhiteSpaceLike(s.charCodeAt(s.length - i - 1))) {\n          i++;\n        }\n        lastNonTriviaPosition -= i;\n      }\n    }\n    function write(s) {\n      writer.write(s);\n      setLastNonTriviaPosition(s, false);\n    }\n    function writeComment(s) {\n      writer.writeComment(s);\n    }\n    function writeKeyword(s) {\n      writer.writeKeyword(s);\n      setLastNonTriviaPosition(s, false);\n    }\n    function writeOperator(s) {\n      writer.writeOperator(s);\n      setLastNonTriviaPosition(s, false);\n    }\n    function writePunctuation(s) {\n      writer.writePunctuation(s);\n      setLastNonTriviaPosition(s, false);\n    }\n    function writeTrailingSemicolon(s) {\n      writer.writeTrailingSemicolon(s);\n      setLastNonTriviaPosition(s, false);\n    }\n    function writeParameter(s) {\n      writer.writeParameter(s);\n      setLastNonTriviaPosition(s, false);\n    }\n    function writeProperty(s) {\n      writer.writeProperty(s);\n      setLastNonTriviaPosition(s, false);\n    }\n    function writeSpace(s) {\n      writer.writeSpace(s);\n      setLastNonTriviaPosition(s, false);\n    }\n    function writeStringLiteral(s) {\n      writer.writeStringLiteral(s);\n      setLastNonTriviaPosition(s, false);\n    }\n    function writeSymbol(s, sym) {\n      writer.writeSymbol(s, sym);\n      setLastNonTriviaPosition(s, false);\n    }\n    function writeLine(force) {\n      writer.writeLine(force);\n    }\n    function increaseIndent() {\n      writer.increaseIndent();\n    }\n    function decreaseIndent() {\n      writer.decreaseIndent();\n    }\n    function getText() {\n      return writer.getText();\n    }\n    function rawWrite(s) {\n      writer.rawWrite(s);\n      setLastNonTriviaPosition(s, false);\n    }\n    function writeLiteral(s) {\n      writer.writeLiteral(s);\n      setLastNonTriviaPosition(s, true);\n    }\n    function getTextPos() {\n      return writer.getTextPos();\n    }\n    function getLine() {\n      return writer.getLine();\n    }\n    function getColumn() {\n      return writer.getColumn();\n    }\n    function getIndent() {\n      return writer.getIndent();\n    }\n    function isAtStartOfLine() {\n      return writer.isAtStartOfLine();\n    }\n    function clear2() {\n      writer.clear();\n      lastNonTriviaPosition = 0;\n    }\n    return {\n      onBeforeEmitNode,\n      onAfterEmitNode,\n      onBeforeEmitNodeArray,\n      onAfterEmitNodeArray,\n      onBeforeEmitToken,\n      onAfterEmitToken,\n      write,\n      writeComment,\n      writeKeyword,\n      writeOperator,\n      writePunctuation,\n      writeTrailingSemicolon,\n      writeParameter,\n      writeProperty,\n      writeSpace,\n      writeStringLiteral,\n      writeSymbol,\n      writeLine,\n      increaseIndent,\n      decreaseIndent,\n      getText,\n      rawWrite,\n      writeLiteral,\n      getTextPos,\n      getLine,\n      getColumn,\n      getIndent,\n      isAtStartOfLine,\n      hasTrailingComment: () => writer.hasTrailingComment(),\n      hasTrailingWhitespace: () => writer.hasTrailingWhitespace(),\n      clear: clear2\n    };\n  }\n  function getInsertionPositionAtSourceFileTop(sourceFile) {\n    let lastPrologue;\n    for (const node of sourceFile.statements) {\n      if (isPrologueDirective(node)) {\n        lastPrologue = node;\n      } else {\n        break;\n      }\n    }\n    let position = 0;\n    const text = sourceFile.text;\n    if (lastPrologue) {\n      position = lastPrologue.end;\n      advancePastLineBreak();\n      return position;\n    }\n    const shebang = getShebang(text);\n    if (shebang !== void 0) {\n      position = shebang.length;\n      advancePastLineBreak();\n    }\n    const ranges = getLeadingCommentRanges(text, position);\n    if (!ranges)\n      return position;\n    let lastComment;\n    let firstNodeLine;\n    for (const range of ranges) {\n      if (range.kind === 3) {\n        if (isPinnedComment(text, range.pos)) {\n          lastComment = { range, pinnedOrTripleSlash: true };\n          continue;\n        }\n      } else if (isRecognizedTripleSlashComment(text, range.pos, range.end)) {\n        lastComment = { range, pinnedOrTripleSlash: true };\n        continue;\n      }\n      if (lastComment) {\n        if (lastComment.pinnedOrTripleSlash)\n          break;\n        const commentLine = sourceFile.getLineAndCharacterOfPosition(range.pos).line;\n        const lastCommentEndLine = sourceFile.getLineAndCharacterOfPosition(lastComment.range.end).line;\n        if (commentLine >= lastCommentEndLine + 2)\n          break;\n      }\n      if (sourceFile.statements.length) {\n        if (firstNodeLine === void 0)\n          firstNodeLine = sourceFile.getLineAndCharacterOfPosition(sourceFile.statements[0].getStart()).line;\n        const commentEndLine = sourceFile.getLineAndCharacterOfPosition(range.end).line;\n        if (firstNodeLine < commentEndLine + 2)\n          break;\n      }\n      lastComment = { range, pinnedOrTripleSlash: false };\n    }\n    if (lastComment) {\n      position = lastComment.range.end;\n      advancePastLineBreak();\n    }\n    return position;\n    function advancePastLineBreak() {\n      if (position < text.length) {\n        const charCode = text.charCodeAt(position);\n        if (isLineBreak(charCode)) {\n          position++;\n          if (position < text.length && charCode === 13 && text.charCodeAt(position) === 10) {\n            position++;\n          }\n        }\n      }\n    }\n  }\n  function isValidLocationToAddComment(sourceFile, position) {\n    return !isInComment(sourceFile, position) && !isInString(sourceFile, position) && !isInTemplateString(sourceFile, position) && !isInJSXText(sourceFile, position);\n  }\n  function needSemicolonBetween(a, b) {\n    return (isPropertySignature(a) || isPropertyDeclaration(a)) && isClassOrTypeElement(b) && b.name.kind === 164 || isStatementButNotDeclaration(a) && isStatementButNotDeclaration(b);\n  }\n  function deleteNode(changes, sourceFile, node, options = { leadingTriviaOption: 1 }) {\n    const startPosition = getAdjustedStartPosition(sourceFile, node, options);\n    const endPosition = getAdjustedEndPosition(sourceFile, node, options);\n    changes.deleteRange(sourceFile, { pos: startPosition, end: endPosition });\n  }\n  function deleteNodeInList(changes, deletedNodesInLists, sourceFile, node) {\n    const containingList = Debug.checkDefined(ts_formatting_exports.SmartIndenter.getContainingList(node, sourceFile));\n    const index = indexOfNode(containingList, node);\n    Debug.assert(index !== -1);\n    if (containingList.length === 1) {\n      deleteNode(changes, sourceFile, node);\n      return;\n    }\n    Debug.assert(!deletedNodesInLists.has(node), \"Deleting a node twice\");\n    deletedNodesInLists.add(node);\n    changes.deleteRange(sourceFile, {\n      pos: startPositionToDeleteNodeInList(sourceFile, node),\n      end: index === containingList.length - 1 ? getAdjustedEndPosition(sourceFile, node, {}) : endPositionToDeleteNodeInList(sourceFile, node, containingList[index - 1], containingList[index + 1])\n    });\n  }\n  var LeadingTriviaOption, TrailingTriviaOption, useNonAdjustedPositions, ChangeTracker, changesToText, textChangesTransformationContext, deleteDeclaration;\n  var init_textChanges = __esm({\n    \"src/services/textChanges.ts\"() {\n      \"use strict\";\n      init_ts4();\n      LeadingTriviaOption = /* @__PURE__ */ ((LeadingTriviaOption2) => {\n        LeadingTriviaOption2[LeadingTriviaOption2[\"Exclude\"] = 0] = \"Exclude\";\n        LeadingTriviaOption2[LeadingTriviaOption2[\"IncludeAll\"] = 1] = \"IncludeAll\";\n        LeadingTriviaOption2[LeadingTriviaOption2[\"JSDoc\"] = 2] = \"JSDoc\";\n        LeadingTriviaOption2[LeadingTriviaOption2[\"StartLine\"] = 3] = \"StartLine\";\n        return LeadingTriviaOption2;\n      })(LeadingTriviaOption || {});\n      TrailingTriviaOption = /* @__PURE__ */ ((TrailingTriviaOption2) => {\n        TrailingTriviaOption2[TrailingTriviaOption2[\"Exclude\"] = 0] = \"Exclude\";\n        TrailingTriviaOption2[TrailingTriviaOption2[\"ExcludeWhitespace\"] = 1] = \"ExcludeWhitespace\";\n        TrailingTriviaOption2[TrailingTriviaOption2[\"Include\"] = 2] = \"Include\";\n        return TrailingTriviaOption2;\n      })(TrailingTriviaOption || {});\n      useNonAdjustedPositions = {\n        leadingTriviaOption: 0,\n        trailingTriviaOption: 0\n      };\n      ChangeTracker = class {\n        constructor(newLineCharacter, formatContext) {\n          this.newLineCharacter = newLineCharacter;\n          this.formatContext = formatContext;\n          this.changes = [];\n          this.newFiles = [];\n          this.classesWithNodesInsertedAtStart = /* @__PURE__ */ new Map();\n          this.deletedNodes = [];\n        }\n        static fromContext(context) {\n          return new ChangeTracker(getNewLineOrDefaultFromHost(context.host, context.formatContext.options), context.formatContext);\n        }\n        static with(context, cb) {\n          const tracker = ChangeTracker.fromContext(context);\n          cb(tracker);\n          return tracker.getChanges();\n        }\n        pushRaw(sourceFile, change) {\n          Debug.assertEqual(sourceFile.fileName, change.fileName);\n          for (const c of change.textChanges) {\n            this.changes.push({\n              kind: 3,\n              sourceFile,\n              text: c.newText,\n              range: createTextRangeFromSpan(c.span)\n            });\n          }\n        }\n        deleteRange(sourceFile, range) {\n          this.changes.push({ kind: 0, sourceFile, range });\n        }\n        delete(sourceFile, node) {\n          this.deletedNodes.push({ sourceFile, node });\n        }\n        deleteNode(sourceFile, node, options = { leadingTriviaOption: 1 }) {\n          this.deleteRange(sourceFile, getAdjustedRange(sourceFile, node, node, options));\n        }\n        deleteNodes(sourceFile, nodes, options = { leadingTriviaOption: 1 }, hasTrailingComment) {\n          for (const node of nodes) {\n            const pos = getAdjustedStartPosition(sourceFile, node, options, hasTrailingComment);\n            const end = getAdjustedEndPosition(sourceFile, node, options);\n            this.deleteRange(sourceFile, { pos, end });\n            hasTrailingComment = !!getEndPositionOfMultilineTrailingComment(sourceFile, node, options);\n          }\n        }\n        deleteModifier(sourceFile, modifier) {\n          this.deleteRange(sourceFile, { pos: modifier.getStart(sourceFile), end: skipTrivia(sourceFile.text, modifier.end, true) });\n        }\n        deleteNodeRange(sourceFile, startNode2, endNode2, options = { leadingTriviaOption: 1 }) {\n          const startPosition = getAdjustedStartPosition(sourceFile, startNode2, options);\n          const endPosition = getAdjustedEndPosition(sourceFile, endNode2, options);\n          this.deleteRange(sourceFile, { pos: startPosition, end: endPosition });\n        }\n        deleteNodeRangeExcludingEnd(sourceFile, startNode2, afterEndNode, options = { leadingTriviaOption: 1 }) {\n          const startPosition = getAdjustedStartPosition(sourceFile, startNode2, options);\n          const endPosition = afterEndNode === void 0 ? sourceFile.text.length : getAdjustedStartPosition(sourceFile, afterEndNode, options);\n          this.deleteRange(sourceFile, { pos: startPosition, end: endPosition });\n        }\n        replaceRange(sourceFile, range, newNode, options = {}) {\n          this.changes.push({ kind: 1, sourceFile, range, options, node: newNode });\n        }\n        replaceNode(sourceFile, oldNode, newNode, options = useNonAdjustedPositions) {\n          this.replaceRange(sourceFile, getAdjustedRange(sourceFile, oldNode, oldNode, options), newNode, options);\n        }\n        replaceNodeRange(sourceFile, startNode2, endNode2, newNode, options = useNonAdjustedPositions) {\n          this.replaceRange(sourceFile, getAdjustedRange(sourceFile, startNode2, endNode2, options), newNode, options);\n        }\n        replaceRangeWithNodes(sourceFile, range, newNodes, options = {}) {\n          this.changes.push({ kind: 2, sourceFile, range, options, nodes: newNodes });\n        }\n        replaceNodeWithNodes(sourceFile, oldNode, newNodes, options = useNonAdjustedPositions) {\n          this.replaceRangeWithNodes(sourceFile, getAdjustedRange(sourceFile, oldNode, oldNode, options), newNodes, options);\n        }\n        replaceNodeWithText(sourceFile, oldNode, text) {\n          this.replaceRangeWithText(sourceFile, getAdjustedRange(sourceFile, oldNode, oldNode, useNonAdjustedPositions), text);\n        }\n        replaceNodeRangeWithNodes(sourceFile, startNode2, endNode2, newNodes, options = useNonAdjustedPositions) {\n          this.replaceRangeWithNodes(sourceFile, getAdjustedRange(sourceFile, startNode2, endNode2, options), newNodes, options);\n        }\n        nodeHasTrailingComment(sourceFile, oldNode, configurableEnd = useNonAdjustedPositions) {\n          return !!getEndPositionOfMultilineTrailingComment(sourceFile, oldNode, configurableEnd);\n        }\n        nextCommaToken(sourceFile, node) {\n          const next = findNextToken(node, node.parent, sourceFile);\n          return next && next.kind === 27 ? next : void 0;\n        }\n        replacePropertyAssignment(sourceFile, oldNode, newNode) {\n          const suffix = this.nextCommaToken(sourceFile, oldNode) ? \"\" : \",\" + this.newLineCharacter;\n          this.replaceNode(sourceFile, oldNode, newNode, { suffix });\n        }\n        insertNodeAt(sourceFile, pos, newNode, options = {}) {\n          this.replaceRange(sourceFile, createRange(pos), newNode, options);\n        }\n        insertNodesAt(sourceFile, pos, newNodes, options = {}) {\n          this.replaceRangeWithNodes(sourceFile, createRange(pos), newNodes, options);\n        }\n        insertNodeAtTopOfFile(sourceFile, newNode, blankLineBetween) {\n          this.insertAtTopOfFile(sourceFile, newNode, blankLineBetween);\n        }\n        insertNodesAtTopOfFile(sourceFile, newNodes, blankLineBetween) {\n          this.insertAtTopOfFile(sourceFile, newNodes, blankLineBetween);\n        }\n        insertAtTopOfFile(sourceFile, insert, blankLineBetween) {\n          const pos = getInsertionPositionAtSourceFileTop(sourceFile);\n          const options = {\n            prefix: pos === 0 ? void 0 : this.newLineCharacter,\n            suffix: (isLineBreak(sourceFile.text.charCodeAt(pos)) ? \"\" : this.newLineCharacter) + (blankLineBetween ? this.newLineCharacter : \"\")\n          };\n          if (isArray(insert)) {\n            this.insertNodesAt(sourceFile, pos, insert, options);\n          } else {\n            this.insertNodeAt(sourceFile, pos, insert, options);\n          }\n        }\n        insertFirstParameter(sourceFile, parameters, newParam) {\n          const p0 = firstOrUndefined(parameters);\n          if (p0) {\n            this.insertNodeBefore(sourceFile, p0, newParam);\n          } else {\n            this.insertNodeAt(sourceFile, parameters.pos, newParam);\n          }\n        }\n        insertNodeBefore(sourceFile, before, newNode, blankLineBetween = false, options = {}) {\n          this.insertNodeAt(sourceFile, getAdjustedStartPosition(sourceFile, before, options), newNode, this.getOptionsForInsertNodeBefore(before, newNode, blankLineBetween));\n        }\n        insertModifierAt(sourceFile, pos, modifier, options = {}) {\n          this.insertNodeAt(sourceFile, pos, factory.createToken(modifier), options);\n        }\n        insertModifierBefore(sourceFile, modifier, before) {\n          return this.insertModifierAt(sourceFile, before.getStart(sourceFile), modifier, { suffix: \" \" });\n        }\n        insertCommentBeforeLine(sourceFile, lineNumber, position, commentText) {\n          const lineStartPosition = getStartPositionOfLine(lineNumber, sourceFile);\n          const startPosition = getFirstNonSpaceCharacterPosition(sourceFile.text, lineStartPosition);\n          const insertAtLineStart = isValidLocationToAddComment(sourceFile, startPosition);\n          const token = getTouchingToken(sourceFile, insertAtLineStart ? startPosition : position);\n          const indent2 = sourceFile.text.slice(lineStartPosition, startPosition);\n          const text = `${insertAtLineStart ? \"\" : this.newLineCharacter}//${commentText}${this.newLineCharacter}${indent2}`;\n          this.insertText(sourceFile, token.getStart(sourceFile), text);\n        }\n        insertJsdocCommentBefore(sourceFile, node, tag) {\n          const fnStart = node.getStart(sourceFile);\n          if (node.jsDoc) {\n            for (const jsdoc of node.jsDoc) {\n              this.deleteRange(sourceFile, {\n                pos: getLineStartPositionForPosition(jsdoc.getStart(sourceFile), sourceFile),\n                end: getAdjustedEndPosition(sourceFile, jsdoc, {})\n              });\n            }\n          }\n          const startPosition = getPrecedingNonSpaceCharacterPosition(sourceFile.text, fnStart - 1);\n          const indent2 = sourceFile.text.slice(startPosition, fnStart);\n          this.insertNodeAt(sourceFile, fnStart, tag, { suffix: this.newLineCharacter + indent2 });\n        }\n        createJSDocText(sourceFile, node) {\n          const comments = flatMap(node.jsDoc, (jsDoc2) => isString(jsDoc2.comment) ? factory.createJSDocText(jsDoc2.comment) : jsDoc2.comment);\n          const jsDoc = singleOrUndefined(node.jsDoc);\n          return jsDoc && positionsAreOnSameLine(jsDoc.pos, jsDoc.end, sourceFile) && length(comments) === 0 ? void 0 : factory.createNodeArray(intersperse(comments, factory.createJSDocText(\"\\n\")));\n        }\n        replaceJSDocComment(sourceFile, node, tags) {\n          this.insertJsdocCommentBefore(sourceFile, updateJSDocHost(node), factory.createJSDocComment(this.createJSDocText(sourceFile, node), factory.createNodeArray(tags)));\n        }\n        addJSDocTags(sourceFile, parent2, newTags) {\n          const oldTags = flatMapToMutable(parent2.jsDoc, (j) => j.tags);\n          const unmergedNewTags = newTags.filter((newTag) => !oldTags.some((tag, i) => {\n            const merged = tryMergeJsdocTags(tag, newTag);\n            if (merged)\n              oldTags[i] = merged;\n            return !!merged;\n          }));\n          this.replaceJSDocComment(sourceFile, parent2, [...oldTags, ...unmergedNewTags]);\n        }\n        filterJSDocTags(sourceFile, parent2, predicate) {\n          this.replaceJSDocComment(sourceFile, parent2, filter(flatMapToMutable(parent2.jsDoc, (j) => j.tags), predicate));\n        }\n        replaceRangeWithText(sourceFile, range, text) {\n          this.changes.push({ kind: 3, sourceFile, range, text });\n        }\n        insertText(sourceFile, pos, text) {\n          this.replaceRangeWithText(sourceFile, createRange(pos), text);\n        }\n        tryInsertTypeAnnotation(sourceFile, node, type) {\n          var _a2;\n          let endNode2;\n          if (isFunctionLike(node)) {\n            endNode2 = findChildOfKind(node, 21, sourceFile);\n            if (!endNode2) {\n              if (!isArrowFunction(node))\n                return false;\n              endNode2 = first(node.parameters);\n            }\n          } else {\n            endNode2 = (_a2 = node.kind === 257 ? node.exclamationToken : node.questionToken) != null ? _a2 : node.name;\n          }\n          this.insertNodeAt(sourceFile, endNode2.end, type, { prefix: \": \" });\n          return true;\n        }\n        tryInsertThisTypeAnnotation(sourceFile, node, type) {\n          const start = findChildOfKind(node, 20, sourceFile).getStart(sourceFile) + 1;\n          const suffix = node.parameters.length ? \", \" : \"\";\n          this.insertNodeAt(sourceFile, start, type, { prefix: \"this: \", suffix });\n        }\n        insertTypeParameters(sourceFile, node, typeParameters) {\n          const start = (findChildOfKind(node, 20, sourceFile) || first(node.parameters)).getStart(sourceFile);\n          this.insertNodesAt(sourceFile, start, typeParameters, { prefix: \"<\", suffix: \">\", joiner: \", \" });\n        }\n        getOptionsForInsertNodeBefore(before, inserted, blankLineBetween) {\n          if (isStatement(before) || isClassElement(before)) {\n            return { suffix: blankLineBetween ? this.newLineCharacter + this.newLineCharacter : this.newLineCharacter };\n          } else if (isVariableDeclaration(before)) {\n            return { suffix: \", \" };\n          } else if (isParameter(before)) {\n            return isParameter(inserted) ? { suffix: \", \" } : {};\n          } else if (isStringLiteral(before) && isImportDeclaration(before.parent) || isNamedImports(before)) {\n            return { suffix: \", \" };\n          } else if (isImportSpecifier(before)) {\n            return { suffix: \",\" + (blankLineBetween ? this.newLineCharacter : \" \") };\n          }\n          return Debug.failBadSyntaxKind(before);\n        }\n        insertNodeAtConstructorStart(sourceFile, ctr, newStatement) {\n          const firstStatement = firstOrUndefined(ctr.body.statements);\n          if (!firstStatement || !ctr.body.multiLine) {\n            this.replaceConstructorBody(sourceFile, ctr, [newStatement, ...ctr.body.statements]);\n          } else {\n            this.insertNodeBefore(sourceFile, firstStatement, newStatement);\n          }\n        }\n        insertNodeAtConstructorStartAfterSuperCall(sourceFile, ctr, newStatement) {\n          const superCallStatement = find(ctr.body.statements, (stmt) => isExpressionStatement(stmt) && isSuperCall(stmt.expression));\n          if (!superCallStatement || !ctr.body.multiLine) {\n            this.replaceConstructorBody(sourceFile, ctr, [...ctr.body.statements, newStatement]);\n          } else {\n            this.insertNodeAfter(sourceFile, superCallStatement, newStatement);\n          }\n        }\n        insertNodeAtConstructorEnd(sourceFile, ctr, newStatement) {\n          const lastStatement = lastOrUndefined(ctr.body.statements);\n          if (!lastStatement || !ctr.body.multiLine) {\n            this.replaceConstructorBody(sourceFile, ctr, [...ctr.body.statements, newStatement]);\n          } else {\n            this.insertNodeAfter(sourceFile, lastStatement, newStatement);\n          }\n        }\n        replaceConstructorBody(sourceFile, ctr, statements) {\n          this.replaceNode(sourceFile, ctr.body, factory.createBlock(statements, true));\n        }\n        insertNodeAtEndOfScope(sourceFile, scope, newNode) {\n          const pos = getAdjustedStartPosition(sourceFile, scope.getLastToken(), {});\n          this.insertNodeAt(sourceFile, pos, newNode, {\n            prefix: isLineBreak(sourceFile.text.charCodeAt(scope.getLastToken().pos)) ? this.newLineCharacter : this.newLineCharacter + this.newLineCharacter,\n            suffix: this.newLineCharacter\n          });\n        }\n        insertMemberAtStart(sourceFile, node, newElement) {\n          this.insertNodeAtStartWorker(sourceFile, node, newElement);\n        }\n        insertNodeAtObjectStart(sourceFile, obj, newElement) {\n          this.insertNodeAtStartWorker(sourceFile, obj, newElement);\n        }\n        insertNodeAtStartWorker(sourceFile, node, newElement) {\n          var _a2;\n          const indentation = (_a2 = this.guessIndentationFromExistingMembers(sourceFile, node)) != null ? _a2 : this.computeIndentationForNewMember(sourceFile, node);\n          this.insertNodeAt(sourceFile, getMembersOrProperties(node).pos, newElement, this.getInsertNodeAtStartInsertOptions(sourceFile, node, indentation));\n        }\n        guessIndentationFromExistingMembers(sourceFile, node) {\n          let indentation;\n          let lastRange = node;\n          for (const member of getMembersOrProperties(node)) {\n            if (rangeStartPositionsAreOnSameLine(lastRange, member, sourceFile)) {\n              return void 0;\n            }\n            const memberStart = member.getStart(sourceFile);\n            const memberIndentation = ts_formatting_exports.SmartIndenter.findFirstNonWhitespaceColumn(getLineStartPositionForPosition(memberStart, sourceFile), memberStart, sourceFile, this.formatContext.options);\n            if (indentation === void 0) {\n              indentation = memberIndentation;\n            } else if (memberIndentation !== indentation) {\n              return void 0;\n            }\n            lastRange = member;\n          }\n          return indentation;\n        }\n        computeIndentationForNewMember(sourceFile, node) {\n          var _a2;\n          const nodeStart = node.getStart(sourceFile);\n          return ts_formatting_exports.SmartIndenter.findFirstNonWhitespaceColumn(getLineStartPositionForPosition(nodeStart, sourceFile), nodeStart, sourceFile, this.formatContext.options) + ((_a2 = this.formatContext.options.indentSize) != null ? _a2 : 4);\n        }\n        getInsertNodeAtStartInsertOptions(sourceFile, node, indentation) {\n          const members = getMembersOrProperties(node);\n          const isEmpty = members.length === 0;\n          const isFirstInsertion = addToSeen(this.classesWithNodesInsertedAtStart, getNodeId(node), { node, sourceFile });\n          const insertTrailingComma = isObjectLiteralExpression(node) && (!isJsonSourceFile(sourceFile) || !isEmpty);\n          const insertLeadingComma = isObjectLiteralExpression(node) && isJsonSourceFile(sourceFile) && isEmpty && !isFirstInsertion;\n          return {\n            indentation,\n            prefix: (insertLeadingComma ? \",\" : \"\") + this.newLineCharacter,\n            suffix: insertTrailingComma ? \",\" : isInterfaceDeclaration(node) && isEmpty ? \";\" : \"\"\n          };\n        }\n        insertNodeAfterComma(sourceFile, after, newNode) {\n          const endPosition = this.insertNodeAfterWorker(sourceFile, this.nextCommaToken(sourceFile, after) || after, newNode);\n          this.insertNodeAt(sourceFile, endPosition, newNode, this.getInsertNodeAfterOptions(sourceFile, after));\n        }\n        insertNodeAfter(sourceFile, after, newNode) {\n          const endPosition = this.insertNodeAfterWorker(sourceFile, after, newNode);\n          this.insertNodeAt(sourceFile, endPosition, newNode, this.getInsertNodeAfterOptions(sourceFile, after));\n        }\n        insertNodeAtEndOfList(sourceFile, list, newNode) {\n          this.insertNodeAt(sourceFile, list.end, newNode, { prefix: \", \" });\n        }\n        insertNodesAfter(sourceFile, after, newNodes) {\n          const endPosition = this.insertNodeAfterWorker(sourceFile, after, first(newNodes));\n          this.insertNodesAt(sourceFile, endPosition, newNodes, this.getInsertNodeAfterOptions(sourceFile, after));\n        }\n        insertNodeAfterWorker(sourceFile, after, newNode) {\n          if (needSemicolonBetween(after, newNode)) {\n            if (sourceFile.text.charCodeAt(after.end - 1) !== 59) {\n              this.replaceRange(sourceFile, createRange(after.end), factory.createToken(26));\n            }\n          }\n          const endPosition = getAdjustedEndPosition(sourceFile, after, {});\n          return endPosition;\n        }\n        getInsertNodeAfterOptions(sourceFile, after) {\n          const options = this.getInsertNodeAfterOptionsWorker(after);\n          return {\n            ...options,\n            prefix: after.end === sourceFile.end && isStatement(after) ? options.prefix ? `\n${options.prefix}` : \"\\n\" : options.prefix\n          };\n        }\n        getInsertNodeAfterOptionsWorker(node) {\n          switch (node.kind) {\n            case 260:\n            case 264:\n              return { prefix: this.newLineCharacter, suffix: this.newLineCharacter };\n            case 257:\n            case 10:\n            case 79:\n              return { prefix: \", \" };\n            case 299:\n              return { suffix: \",\" + this.newLineCharacter };\n            case 93:\n              return { prefix: \" \" };\n            case 166:\n              return {};\n            default:\n              Debug.assert(isStatement(node) || isClassOrTypeElement(node));\n              return { suffix: this.newLineCharacter };\n          }\n        }\n        insertName(sourceFile, node, name) {\n          Debug.assert(!node.name);\n          if (node.kind === 216) {\n            const arrow = findChildOfKind(node, 38, sourceFile);\n            const lparen = findChildOfKind(node, 20, sourceFile);\n            if (lparen) {\n              this.insertNodesAt(sourceFile, lparen.getStart(sourceFile), [factory.createToken(98), factory.createIdentifier(name)], { joiner: \" \" });\n              deleteNode(this, sourceFile, arrow);\n            } else {\n              this.insertText(sourceFile, first(node.parameters).getStart(sourceFile), `function ${name}(`);\n              this.replaceRange(sourceFile, arrow, factory.createToken(21));\n            }\n            if (node.body.kind !== 238) {\n              this.insertNodesAt(sourceFile, node.body.getStart(sourceFile), [factory.createToken(18), factory.createToken(105)], { joiner: \" \", suffix: \" \" });\n              this.insertNodesAt(sourceFile, node.body.end, [factory.createToken(26), factory.createToken(19)], { joiner: \" \" });\n            }\n          } else {\n            const pos = findChildOfKind(node, node.kind === 215 ? 98 : 84, sourceFile).end;\n            this.insertNodeAt(sourceFile, pos, factory.createIdentifier(name), { prefix: \" \" });\n          }\n        }\n        insertExportModifier(sourceFile, node) {\n          this.insertText(sourceFile, node.getStart(sourceFile), \"export \");\n        }\n        insertImportSpecifierAtIndex(sourceFile, importSpecifier, namedImports, index) {\n          const prevSpecifier = namedImports.elements[index - 1];\n          if (prevSpecifier) {\n            this.insertNodeInListAfter(sourceFile, prevSpecifier, importSpecifier);\n          } else {\n            this.insertNodeBefore(sourceFile, namedImports.elements[0], importSpecifier, !positionsAreOnSameLine(namedImports.elements[0].getStart(), namedImports.parent.parent.getStart(), sourceFile));\n          }\n        }\n        insertNodeInListAfter(sourceFile, after, newNode, containingList = ts_formatting_exports.SmartIndenter.getContainingList(after, sourceFile)) {\n          if (!containingList) {\n            Debug.fail(\"node is not a list element\");\n            return;\n          }\n          const index = indexOfNode(containingList, after);\n          if (index < 0) {\n            return;\n          }\n          const end = after.getEnd();\n          if (index !== containingList.length - 1) {\n            const nextToken = getTokenAtPosition(sourceFile, after.end);\n            if (nextToken && isSeparator(after, nextToken)) {\n              const nextNode = containingList[index + 1];\n              const startPos = skipWhitespacesAndLineBreaks(sourceFile.text, nextNode.getFullStart());\n              const suffix = `${tokenToString(nextToken.kind)}${sourceFile.text.substring(nextToken.end, startPos)}`;\n              this.insertNodesAt(sourceFile, startPos, [newNode], { suffix });\n            }\n          } else {\n            const afterStart = after.getStart(sourceFile);\n            const afterStartLinePosition = getLineStartPositionForPosition(afterStart, sourceFile);\n            let separator;\n            let multilineList = false;\n            if (containingList.length === 1) {\n              separator = 27;\n            } else {\n              const tokenBeforeInsertPosition = findPrecedingToken(after.pos, sourceFile);\n              separator = isSeparator(after, tokenBeforeInsertPosition) ? tokenBeforeInsertPosition.kind : 27;\n              const afterMinusOneStartLinePosition = getLineStartPositionForPosition(containingList[index - 1].getStart(sourceFile), sourceFile);\n              multilineList = afterMinusOneStartLinePosition !== afterStartLinePosition;\n            }\n            if (hasCommentsBeforeLineBreak(sourceFile.text, after.end)) {\n              multilineList = true;\n            }\n            if (multilineList) {\n              this.replaceRange(sourceFile, createRange(end), factory.createToken(separator));\n              const indentation = ts_formatting_exports.SmartIndenter.findFirstNonWhitespaceColumn(afterStartLinePosition, afterStart, sourceFile, this.formatContext.options);\n              let insertPos = skipTrivia(sourceFile.text, end, true, false);\n              while (insertPos !== end && isLineBreak(sourceFile.text.charCodeAt(insertPos - 1))) {\n                insertPos--;\n              }\n              this.replaceRange(sourceFile, createRange(insertPos), newNode, { indentation, prefix: this.newLineCharacter });\n            } else {\n              this.replaceRange(sourceFile, createRange(end), newNode, { prefix: `${tokenToString(separator)} ` });\n            }\n          }\n        }\n        parenthesizeExpression(sourceFile, expression) {\n          this.replaceRange(sourceFile, rangeOfNode(expression), factory.createParenthesizedExpression(expression));\n        }\n        finishClassesWithNodesInsertedAtStart() {\n          this.classesWithNodesInsertedAtStart.forEach(({ node, sourceFile }) => {\n            const [openBraceEnd, closeBraceEnd] = getClassOrObjectBraceEnds(node, sourceFile);\n            if (openBraceEnd !== void 0 && closeBraceEnd !== void 0) {\n              const isEmpty = getMembersOrProperties(node).length === 0;\n              const isSingleLine = positionsAreOnSameLine(openBraceEnd, closeBraceEnd, sourceFile);\n              if (isEmpty && isSingleLine && openBraceEnd !== closeBraceEnd - 1) {\n                this.deleteRange(sourceFile, createRange(openBraceEnd, closeBraceEnd - 1));\n              }\n              if (isSingleLine) {\n                this.insertText(sourceFile, closeBraceEnd - 1, this.newLineCharacter);\n              }\n            }\n          });\n        }\n        finishDeleteDeclarations() {\n          const deletedNodesInLists = /* @__PURE__ */ new Set();\n          for (const { sourceFile, node } of this.deletedNodes) {\n            if (!this.deletedNodes.some((d) => d.sourceFile === sourceFile && rangeContainsRangeExclusive(d.node, node))) {\n              if (isArray(node)) {\n                this.deleteRange(sourceFile, rangeOfTypeParameters(sourceFile, node));\n              } else {\n                deleteDeclaration.deleteDeclaration(this, deletedNodesInLists, sourceFile, node);\n              }\n            }\n          }\n          deletedNodesInLists.forEach((node) => {\n            const sourceFile = node.getSourceFile();\n            const list = ts_formatting_exports.SmartIndenter.getContainingList(node, sourceFile);\n            if (node !== last(list))\n              return;\n            const lastNonDeletedIndex = findLastIndex(list, (n) => !deletedNodesInLists.has(n), list.length - 2);\n            if (lastNonDeletedIndex !== -1) {\n              this.deleteRange(sourceFile, { pos: list[lastNonDeletedIndex].end, end: startPositionToDeleteNodeInList(sourceFile, list[lastNonDeletedIndex + 1]) });\n            }\n          });\n        }\n        getChanges(validate) {\n          this.finishDeleteDeclarations();\n          this.finishClassesWithNodesInsertedAtStart();\n          const changes = changesToText.getTextChangesFromChanges(this.changes, this.newLineCharacter, this.formatContext, validate);\n          for (const { oldFile, fileName, statements } of this.newFiles) {\n            changes.push(changesToText.newFileChanges(oldFile, fileName, statements, this.newLineCharacter, this.formatContext));\n          }\n          return changes;\n        }\n        createNewFile(oldFile, fileName, statements) {\n          this.newFiles.push({ oldFile, fileName, statements });\n        }\n      };\n      ((changesToText2) => {\n        function getTextChangesFromChanges(changes, newLineCharacter, formatContext, validate) {\n          return mapDefined(group(changes, (c) => c.sourceFile.path), (changesInFile) => {\n            const sourceFile = changesInFile[0].sourceFile;\n            const normalized = stableSort(changesInFile, (a, b) => a.range.pos - b.range.pos || a.range.end - b.range.end);\n            for (let i = 0; i < normalized.length - 1; i++) {\n              Debug.assert(normalized[i].range.end <= normalized[i + 1].range.pos, \"Changes overlap\", () => `${JSON.stringify(normalized[i].range)} and ${JSON.stringify(normalized[i + 1].range)}`);\n            }\n            const textChanges2 = mapDefined(normalized, (c) => {\n              const span = createTextSpanFromRange(c.range);\n              const newText = computeNewText(c, sourceFile, newLineCharacter, formatContext, validate);\n              if (span.length === newText.length && stringContainsAt(sourceFile.text, newText, span.start)) {\n                return void 0;\n              }\n              return createTextChange(span, newText);\n            });\n            return textChanges2.length > 0 ? { fileName: sourceFile.fileName, textChanges: textChanges2 } : void 0;\n          });\n        }\n        changesToText2.getTextChangesFromChanges = getTextChangesFromChanges;\n        function newFileChanges(oldFile, fileName, statements, newLineCharacter, formatContext) {\n          const text = newFileChangesWorker(oldFile, getScriptKindFromFileName(fileName), statements, newLineCharacter, formatContext);\n          return { fileName, textChanges: [createTextChange(createTextSpan(0, 0), text)], isNewFile: true };\n        }\n        changesToText2.newFileChanges = newFileChanges;\n        function newFileChangesWorker(oldFile, scriptKind, statements, newLineCharacter, formatContext) {\n          const nonFormattedText = statements.map((s) => s === 4 ? \"\" : getNonformattedText(s, oldFile, newLineCharacter).text).join(newLineCharacter);\n          const sourceFile = createSourceFile(\"any file name\", nonFormattedText, 99, true, scriptKind);\n          const changes = ts_formatting_exports.formatDocument(sourceFile, formatContext);\n          return applyChanges(nonFormattedText, changes) + newLineCharacter;\n        }\n        changesToText2.newFileChangesWorker = newFileChangesWorker;\n        function computeNewText(change, sourceFile, newLineCharacter, formatContext, validate) {\n          var _a2;\n          if (change.kind === 0) {\n            return \"\";\n          }\n          if (change.kind === 3) {\n            return change.text;\n          }\n          const { options = {}, range: { pos } } = change;\n          const format = (n) => getFormattedTextOfNode(n, sourceFile, pos, options, newLineCharacter, formatContext, validate);\n          const text = change.kind === 2 ? change.nodes.map((n) => removeSuffix(format(n), newLineCharacter)).join(((_a2 = change.options) == null ? void 0 : _a2.joiner) || newLineCharacter) : format(change.node);\n          const noIndent = options.indentation !== void 0 || getLineStartPositionForPosition(pos, sourceFile) === pos ? text : text.replace(/^\\s+/, \"\");\n          return (options.prefix || \"\") + noIndent + (!options.suffix || endsWith(noIndent, options.suffix) ? \"\" : options.suffix);\n        }\n        function getFormattedTextOfNode(nodeIn, sourceFile, pos, { indentation, prefix, delta }, newLineCharacter, formatContext, validate) {\n          const { node, text } = getNonformattedText(nodeIn, sourceFile, newLineCharacter);\n          if (validate)\n            validate(node, text);\n          const formatOptions = getFormatCodeSettingsForWriting(formatContext, sourceFile);\n          const initialIndentation = indentation !== void 0 ? indentation : ts_formatting_exports.SmartIndenter.getIndentation(pos, sourceFile, formatOptions, prefix === newLineCharacter || getLineStartPositionForPosition(pos, sourceFile) === pos);\n          if (delta === void 0) {\n            delta = ts_formatting_exports.SmartIndenter.shouldIndentChildNode(formatOptions, nodeIn) ? formatOptions.indentSize || 0 : 0;\n          }\n          const file = {\n            text,\n            getLineAndCharacterOfPosition(pos2) {\n              return getLineAndCharacterOfPosition(this, pos2);\n            }\n          };\n          const changes = ts_formatting_exports.formatNodeGivenIndentation(node, file, sourceFile.languageVariant, initialIndentation, delta, { ...formatContext, options: formatOptions });\n          return applyChanges(text, changes);\n        }\n        function getNonformattedText(node, sourceFile, newLineCharacter) {\n          const writer = createWriter(newLineCharacter);\n          const newLine = getNewLineKind(newLineCharacter);\n          createPrinter({\n            newLine,\n            neverAsciiEscape: true,\n            preserveSourceNewlines: true,\n            terminateUnterminatedLiterals: true\n          }, writer).writeNode(4, node, sourceFile, writer);\n          return { text: writer.getText(), node: assignPositionsToNode(node) };\n        }\n        changesToText2.getNonformattedText = getNonformattedText;\n      })(changesToText || (changesToText = {}));\n      textChangesTransformationContext = {\n        ...nullTransformationContext,\n        factory: createNodeFactory(nullTransformationContext.factory.flags | 1, nullTransformationContext.factory.baseFactory)\n      };\n      ((_deleteDeclaration) => {\n        function deleteDeclaration2(changes, deletedNodesInLists, sourceFile, node) {\n          switch (node.kind) {\n            case 166: {\n              const oldFunction = node.parent;\n              if (isArrowFunction(oldFunction) && oldFunction.parameters.length === 1 && !findChildOfKind(oldFunction, 20, sourceFile)) {\n                changes.replaceNodeWithText(sourceFile, node, \"()\");\n              } else {\n                deleteNodeInList(changes, deletedNodesInLists, sourceFile, node);\n              }\n              break;\n            }\n            case 269:\n            case 268:\n              const isFirstImport = sourceFile.imports.length && node === first(sourceFile.imports).parent || node === find(sourceFile.statements, isAnyImportSyntax);\n              deleteNode(changes, sourceFile, node, {\n                leadingTriviaOption: isFirstImport ? 0 : hasJSDocNodes(node) ? 2 : 3\n              });\n              break;\n            case 205:\n              const pattern = node.parent;\n              const preserveComma = pattern.kind === 204 && node !== last(pattern.elements);\n              if (preserveComma) {\n                deleteNode(changes, sourceFile, node);\n              } else {\n                deleteNodeInList(changes, deletedNodesInLists, sourceFile, node);\n              }\n              break;\n            case 257:\n              deleteVariableDeclaration(changes, deletedNodesInLists, sourceFile, node);\n              break;\n            case 165:\n              deleteNodeInList(changes, deletedNodesInLists, sourceFile, node);\n              break;\n            case 273:\n              const namedImports = node.parent;\n              if (namedImports.elements.length === 1) {\n                deleteImportBinding(changes, sourceFile, namedImports);\n              } else {\n                deleteNodeInList(changes, deletedNodesInLists, sourceFile, node);\n              }\n              break;\n            case 271:\n              deleteImportBinding(changes, sourceFile, node);\n              break;\n            case 26:\n              deleteNode(changes, sourceFile, node, { trailingTriviaOption: 0 });\n              break;\n            case 98:\n              deleteNode(changes, sourceFile, node, { leadingTriviaOption: 0 });\n              break;\n            case 260:\n            case 259:\n              deleteNode(changes, sourceFile, node, { leadingTriviaOption: hasJSDocNodes(node) ? 2 : 3 });\n              break;\n            default:\n              if (!node.parent) {\n                deleteNode(changes, sourceFile, node);\n              } else if (isImportClause(node.parent) && node.parent.name === node) {\n                deleteDefaultImport(changes, sourceFile, node.parent);\n              } else if (isCallExpression(node.parent) && contains(node.parent.arguments, node)) {\n                deleteNodeInList(changes, deletedNodesInLists, sourceFile, node);\n              } else {\n                deleteNode(changes, sourceFile, node);\n              }\n          }\n        }\n        _deleteDeclaration.deleteDeclaration = deleteDeclaration2;\n        function deleteDefaultImport(changes, sourceFile, importClause) {\n          if (!importClause.namedBindings) {\n            deleteNode(changes, sourceFile, importClause.parent);\n          } else {\n            const start = importClause.name.getStart(sourceFile);\n            const nextToken = getTokenAtPosition(sourceFile, importClause.name.end);\n            if (nextToken && nextToken.kind === 27) {\n              const end = skipTrivia(sourceFile.text, nextToken.end, false, true);\n              changes.deleteRange(sourceFile, { pos: start, end });\n            } else {\n              deleteNode(changes, sourceFile, importClause.name);\n            }\n          }\n        }\n        function deleteImportBinding(changes, sourceFile, node) {\n          if (node.parent.name) {\n            const previousToken = Debug.checkDefined(getTokenAtPosition(sourceFile, node.pos - 1));\n            changes.deleteRange(sourceFile, { pos: previousToken.getStart(sourceFile), end: node.end });\n          } else {\n            const importDecl = getAncestor(node, 269);\n            deleteNode(changes, sourceFile, importDecl);\n          }\n        }\n        function deleteVariableDeclaration(changes, deletedNodesInLists, sourceFile, node) {\n          const { parent: parent2 } = node;\n          if (parent2.kind === 295) {\n            changes.deleteNodeRange(sourceFile, findChildOfKind(parent2, 20, sourceFile), findChildOfKind(parent2, 21, sourceFile));\n            return;\n          }\n          if (parent2.declarations.length !== 1) {\n            deleteNodeInList(changes, deletedNodesInLists, sourceFile, node);\n            return;\n          }\n          const gp = parent2.parent;\n          switch (gp.kind) {\n            case 247:\n            case 246:\n              changes.replaceNode(sourceFile, node, factory.createObjectLiteralExpression());\n              break;\n            case 245:\n              deleteNode(changes, sourceFile, parent2);\n              break;\n            case 240:\n              deleteNode(changes, sourceFile, gp, { leadingTriviaOption: hasJSDocNodes(gp) ? 2 : 3 });\n              break;\n            default:\n              Debug.assertNever(gp);\n          }\n        }\n      })(deleteDeclaration || (deleteDeclaration = {}));\n    }\n  });\n  var ts_textChanges_exports = {};\n  __export2(ts_textChanges_exports, {\n    ChangeTracker: () => ChangeTracker,\n    LeadingTriviaOption: () => LeadingTriviaOption,\n    TrailingTriviaOption: () => TrailingTriviaOption,\n    applyChanges: () => applyChanges,\n    assignPositionsToNode: () => assignPositionsToNode,\n    createWriter: () => createWriter,\n    deleteNode: () => deleteNode,\n    getNewFileText: () => getNewFileText,\n    isThisTypeAnnotatable: () => isThisTypeAnnotatable,\n    isValidLocationToAddComment: () => isValidLocationToAddComment\n  });\n  var init_ts_textChanges = __esm({\n    \"src/services/_namespaces/ts.textChanges.ts\"() {\n      \"use strict\";\n      init_textChanges();\n    }\n  });\n  var FormattingRequestKind, FormattingContext;\n  var init_formattingContext = __esm({\n    \"src/services/formatting/formattingContext.ts\"() {\n      \"use strict\";\n      init_ts4();\n      FormattingRequestKind = /* @__PURE__ */ ((FormattingRequestKind2) => {\n        FormattingRequestKind2[FormattingRequestKind2[\"FormatDocument\"] = 0] = \"FormatDocument\";\n        FormattingRequestKind2[FormattingRequestKind2[\"FormatSelection\"] = 1] = \"FormatSelection\";\n        FormattingRequestKind2[FormattingRequestKind2[\"FormatOnEnter\"] = 2] = \"FormatOnEnter\";\n        FormattingRequestKind2[FormattingRequestKind2[\"FormatOnSemicolon\"] = 3] = \"FormatOnSemicolon\";\n        FormattingRequestKind2[FormattingRequestKind2[\"FormatOnOpeningCurlyBrace\"] = 4] = \"FormatOnOpeningCurlyBrace\";\n        FormattingRequestKind2[FormattingRequestKind2[\"FormatOnClosingCurlyBrace\"] = 5] = \"FormatOnClosingCurlyBrace\";\n        return FormattingRequestKind2;\n      })(FormattingRequestKind || {});\n      FormattingContext = class {\n        constructor(sourceFile, formattingRequestKind, options) {\n          this.sourceFile = sourceFile;\n          this.formattingRequestKind = formattingRequestKind;\n          this.options = options;\n        }\n        updateContext(currentRange, currentTokenParent, nextRange, nextTokenParent, commonParent) {\n          this.currentTokenSpan = Debug.checkDefined(currentRange);\n          this.currentTokenParent = Debug.checkDefined(currentTokenParent);\n          this.nextTokenSpan = Debug.checkDefined(nextRange);\n          this.nextTokenParent = Debug.checkDefined(nextTokenParent);\n          this.contextNode = Debug.checkDefined(commonParent);\n          this.contextNodeAllOnSameLine = void 0;\n          this.nextNodeAllOnSameLine = void 0;\n          this.tokensAreOnSameLine = void 0;\n          this.contextNodeBlockIsOnOneLine = void 0;\n          this.nextNodeBlockIsOnOneLine = void 0;\n        }\n        ContextNodeAllOnSameLine() {\n          if (this.contextNodeAllOnSameLine === void 0) {\n            this.contextNodeAllOnSameLine = this.NodeIsOnOneLine(this.contextNode);\n          }\n          return this.contextNodeAllOnSameLine;\n        }\n        NextNodeAllOnSameLine() {\n          if (this.nextNodeAllOnSameLine === void 0) {\n            this.nextNodeAllOnSameLine = this.NodeIsOnOneLine(this.nextTokenParent);\n          }\n          return this.nextNodeAllOnSameLine;\n        }\n        TokensAreOnSameLine() {\n          if (this.tokensAreOnSameLine === void 0) {\n            const startLine = this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line;\n            const endLine = this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;\n            this.tokensAreOnSameLine = startLine === endLine;\n          }\n          return this.tokensAreOnSameLine;\n        }\n        ContextNodeBlockIsOnOneLine() {\n          if (this.contextNodeBlockIsOnOneLine === void 0) {\n            this.contextNodeBlockIsOnOneLine = this.BlockIsOnOneLine(this.contextNode);\n          }\n          return this.contextNodeBlockIsOnOneLine;\n        }\n        NextNodeBlockIsOnOneLine() {\n          if (this.nextNodeBlockIsOnOneLine === void 0) {\n            this.nextNodeBlockIsOnOneLine = this.BlockIsOnOneLine(this.nextTokenParent);\n          }\n          return this.nextNodeBlockIsOnOneLine;\n        }\n        NodeIsOnOneLine(node) {\n          const startLine = this.sourceFile.getLineAndCharacterOfPosition(node.getStart(this.sourceFile)).line;\n          const endLine = this.sourceFile.getLineAndCharacterOfPosition(node.getEnd()).line;\n          return startLine === endLine;\n        }\n        BlockIsOnOneLine(node) {\n          const openBrace = findChildOfKind(node, 18, this.sourceFile);\n          const closeBrace = findChildOfKind(node, 19, this.sourceFile);\n          if (openBrace && closeBrace) {\n            const startLine = this.sourceFile.getLineAndCharacterOfPosition(openBrace.getEnd()).line;\n            const endLine = this.sourceFile.getLineAndCharacterOfPosition(closeBrace.getStart(this.sourceFile)).line;\n            return startLine === endLine;\n          }\n          return false;\n        }\n      };\n    }\n  });\n  function getFormattingScanner(text, languageVariant, startPos, endPos, cb) {\n    const scanner2 = languageVariant === 1 ? jsxScanner : standardScanner;\n    scanner2.setText(text);\n    scanner2.setTextPos(startPos);\n    let wasNewLine = true;\n    let leadingTrivia;\n    let trailingTrivia;\n    let savedPos;\n    let lastScanAction;\n    let lastTokenInfo;\n    const res = cb({\n      advance,\n      readTokenInfo,\n      readEOFTokenRange,\n      isOnToken,\n      isOnEOF,\n      getCurrentLeadingTrivia: () => leadingTrivia,\n      lastTrailingTriviaWasNewLine: () => wasNewLine,\n      skipToEndOf,\n      skipToStartOf,\n      getStartPos: () => {\n        var _a2;\n        return (_a2 = lastTokenInfo == null ? void 0 : lastTokenInfo.token.pos) != null ? _a2 : scanner2.getTokenPos();\n      }\n    });\n    lastTokenInfo = void 0;\n    scanner2.setText(void 0);\n    return res;\n    function advance() {\n      lastTokenInfo = void 0;\n      const isStarted = scanner2.getStartPos() !== startPos;\n      if (isStarted) {\n        wasNewLine = !!trailingTrivia && last(trailingTrivia).kind === 4;\n      } else {\n        scanner2.scan();\n      }\n      leadingTrivia = void 0;\n      trailingTrivia = void 0;\n      let pos = scanner2.getStartPos();\n      while (pos < endPos) {\n        const t = scanner2.getToken();\n        if (!isTrivia(t)) {\n          break;\n        }\n        scanner2.scan();\n        const item = {\n          pos,\n          end: scanner2.getStartPos(),\n          kind: t\n        };\n        pos = scanner2.getStartPos();\n        leadingTrivia = append(leadingTrivia, item);\n      }\n      savedPos = scanner2.getStartPos();\n    }\n    function shouldRescanGreaterThanToken(node) {\n      switch (node.kind) {\n        case 33:\n        case 71:\n        case 72:\n        case 49:\n        case 48:\n          return true;\n      }\n      return false;\n    }\n    function shouldRescanJsxIdentifier(node) {\n      if (node.parent) {\n        switch (node.parent.kind) {\n          case 288:\n          case 283:\n          case 284:\n          case 282:\n            return isKeyword(node.kind) || node.kind === 79;\n        }\n      }\n      return false;\n    }\n    function shouldRescanJsxText(node) {\n      return isJsxText(node) || isJsxElement(node) && (lastTokenInfo == null ? void 0 : lastTokenInfo.token.kind) === 11;\n    }\n    function shouldRescanSlashToken(container) {\n      return container.kind === 13;\n    }\n    function shouldRescanTemplateToken(container) {\n      return container.kind === 16 || container.kind === 17;\n    }\n    function shouldRescanJsxAttributeValue(node) {\n      return node.parent && isJsxAttribute(node.parent) && node.parent.initializer === node;\n    }\n    function startsWithSlashToken(t) {\n      return t === 43 || t === 68;\n    }\n    function readTokenInfo(n) {\n      Debug.assert(isOnToken());\n      const expectedScanAction = shouldRescanGreaterThanToken(n) ? 1 : shouldRescanSlashToken(n) ? 2 : shouldRescanTemplateToken(n) ? 3 : shouldRescanJsxIdentifier(n) ? 4 : shouldRescanJsxText(n) ? 5 : shouldRescanJsxAttributeValue(n) ? 6 : 0;\n      if (lastTokenInfo && expectedScanAction === lastScanAction) {\n        return fixTokenKind(lastTokenInfo, n);\n      }\n      if (scanner2.getStartPos() !== savedPos) {\n        Debug.assert(lastTokenInfo !== void 0);\n        scanner2.setTextPos(savedPos);\n        scanner2.scan();\n      }\n      let currentToken = getNextToken(n, expectedScanAction);\n      const token = createTextRangeWithKind(scanner2.getStartPos(), scanner2.getTextPos(), currentToken);\n      if (trailingTrivia) {\n        trailingTrivia = void 0;\n      }\n      while (scanner2.getStartPos() < endPos) {\n        currentToken = scanner2.scan();\n        if (!isTrivia(currentToken)) {\n          break;\n        }\n        const trivia = createTextRangeWithKind(scanner2.getStartPos(), scanner2.getTextPos(), currentToken);\n        if (!trailingTrivia) {\n          trailingTrivia = [];\n        }\n        trailingTrivia.push(trivia);\n        if (currentToken === 4) {\n          scanner2.scan();\n          break;\n        }\n      }\n      lastTokenInfo = { leadingTrivia, trailingTrivia, token };\n      return fixTokenKind(lastTokenInfo, n);\n    }\n    function getNextToken(n, expectedScanAction) {\n      const token = scanner2.getToken();\n      lastScanAction = 0;\n      switch (expectedScanAction) {\n        case 1:\n          if (token === 31) {\n            lastScanAction = 1;\n            const newToken = scanner2.reScanGreaterToken();\n            Debug.assert(n.kind === newToken);\n            return newToken;\n          }\n          break;\n        case 2:\n          if (startsWithSlashToken(token)) {\n            lastScanAction = 2;\n            const newToken = scanner2.reScanSlashToken();\n            Debug.assert(n.kind === newToken);\n            return newToken;\n          }\n          break;\n        case 3:\n          if (token === 19) {\n            lastScanAction = 3;\n            return scanner2.reScanTemplateToken(false);\n          }\n          break;\n        case 4:\n          lastScanAction = 4;\n          return scanner2.scanJsxIdentifier();\n        case 5:\n          lastScanAction = 5;\n          return scanner2.reScanJsxToken(false);\n        case 6:\n          lastScanAction = 6;\n          return scanner2.reScanJsxAttributeValue();\n        case 0:\n          break;\n        default:\n          Debug.assertNever(expectedScanAction);\n      }\n      return token;\n    }\n    function readEOFTokenRange() {\n      Debug.assert(isOnEOF());\n      return createTextRangeWithKind(scanner2.getStartPos(), scanner2.getTextPos(), 1);\n    }\n    function isOnToken() {\n      const current = lastTokenInfo ? lastTokenInfo.token.kind : scanner2.getToken();\n      return current !== 1 && !isTrivia(current);\n    }\n    function isOnEOF() {\n      const current = lastTokenInfo ? lastTokenInfo.token.kind : scanner2.getToken();\n      return current === 1;\n    }\n    function fixTokenKind(tokenInfo, container) {\n      if (isToken(container) && tokenInfo.token.kind !== container.kind) {\n        tokenInfo.token.kind = container.kind;\n      }\n      return tokenInfo;\n    }\n    function skipToEndOf(node) {\n      scanner2.setTextPos(node.end);\n      savedPos = scanner2.getStartPos();\n      lastScanAction = void 0;\n      lastTokenInfo = void 0;\n      wasNewLine = false;\n      leadingTrivia = void 0;\n      trailingTrivia = void 0;\n    }\n    function skipToStartOf(node) {\n      scanner2.setTextPos(node.pos);\n      savedPos = scanner2.getStartPos();\n      lastScanAction = void 0;\n      lastTokenInfo = void 0;\n      wasNewLine = false;\n      leadingTrivia = void 0;\n      trailingTrivia = void 0;\n    }\n  }\n  var standardScanner, jsxScanner;\n  var init_formattingScanner = __esm({\n    \"src/services/formatting/formattingScanner.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_formatting();\n      standardScanner = createScanner(99, false, 0);\n      jsxScanner = createScanner(99, false, 1);\n    }\n  });\n  var anyContext, RuleAction, RuleFlags;\n  var init_rule = __esm({\n    \"src/services/formatting/rule.ts\"() {\n      \"use strict\";\n      init_ts4();\n      anyContext = emptyArray;\n      RuleAction = /* @__PURE__ */ ((RuleAction2) => {\n        RuleAction2[RuleAction2[\"None\"] = 0] = \"None\";\n        RuleAction2[RuleAction2[\"StopProcessingSpaceActions\"] = 1] = \"StopProcessingSpaceActions\";\n        RuleAction2[RuleAction2[\"StopProcessingTokenActions\"] = 2] = \"StopProcessingTokenActions\";\n        RuleAction2[RuleAction2[\"InsertSpace\"] = 4] = \"InsertSpace\";\n        RuleAction2[RuleAction2[\"InsertNewLine\"] = 8] = \"InsertNewLine\";\n        RuleAction2[RuleAction2[\"DeleteSpace\"] = 16] = \"DeleteSpace\";\n        RuleAction2[RuleAction2[\"DeleteToken\"] = 32] = \"DeleteToken\";\n        RuleAction2[RuleAction2[\"InsertTrailingSemicolon\"] = 64] = \"InsertTrailingSemicolon\";\n        RuleAction2[RuleAction2[\"StopAction\"] = 3] = \"StopAction\";\n        RuleAction2[RuleAction2[\"ModifySpaceAction\"] = 28] = \"ModifySpaceAction\";\n        RuleAction2[RuleAction2[\"ModifyTokenAction\"] = 96] = \"ModifyTokenAction\";\n        return RuleAction2;\n      })(RuleAction || {});\n      RuleFlags = /* @__PURE__ */ ((RuleFlags2) => {\n        RuleFlags2[RuleFlags2[\"None\"] = 0] = \"None\";\n        RuleFlags2[RuleFlags2[\"CanDeleteNewLines\"] = 1] = \"CanDeleteNewLines\";\n        return RuleFlags2;\n      })(RuleFlags || {});\n    }\n  });\n  function getAllRules() {\n    const allTokens = [];\n    for (let token = 0; token <= 162; token++) {\n      if (token !== 1) {\n        allTokens.push(token);\n      }\n    }\n    function anyTokenExcept(...tokens) {\n      return { tokens: allTokens.filter((t) => !tokens.some((t2) => t2 === t)), isSpecific: false };\n    }\n    const anyToken = { tokens: allTokens, isSpecific: false };\n    const anyTokenIncludingMultilineComments = tokenRangeFrom([...allTokens, 3]);\n    const anyTokenIncludingEOF = tokenRangeFrom([...allTokens, 1]);\n    const keywords = tokenRangeFromRange(81, 162);\n    const binaryOperators = tokenRangeFromRange(29, 78);\n    const binaryKeywordOperators = [\n      101,\n      102,\n      162,\n      128,\n      140,\n      150\n    ];\n    const unaryPrefixOperators = [45, 46, 54, 53];\n    const unaryPrefixExpressions = [\n      8,\n      9,\n      79,\n      20,\n      22,\n      18,\n      108,\n      103\n    ];\n    const unaryPreincrementExpressions = [79, 20, 108, 103];\n    const unaryPostincrementExpressions = [79, 21, 23, 103];\n    const unaryPredecrementExpressions = [79, 20, 108, 103];\n    const unaryPostdecrementExpressions = [79, 21, 23, 103];\n    const comments = [2, 3];\n    const typeNames = [79, ...typeKeywords];\n    const functionOpenBraceLeftTokenRange = anyTokenIncludingMultilineComments;\n    const typeScriptOpenBraceLeftTokenRange = tokenRangeFrom([79, 3, 84, 93, 100]);\n    const controlOpenBraceLeftTokenRange = tokenRangeFrom([21, 3, 90, 111, 96, 91]);\n    const highPriorityCommonRules = [\n      rule(\"IgnoreBeforeComment\", anyToken, comments, anyContext, 1),\n      rule(\"IgnoreAfterLineComment\", 2, anyToken, anyContext, 1),\n      rule(\"NotSpaceBeforeColon\", anyToken, 58, [isNonJsxSameLineTokenContext, isNotBinaryOpContext, isNotTypeAnnotationContext], 16),\n      rule(\"SpaceAfterColon\", 58, anyToken, [isNonJsxSameLineTokenContext, isNotBinaryOpContext], 4),\n      rule(\"NoSpaceBeforeQuestionMark\", anyToken, 57, [isNonJsxSameLineTokenContext, isNotBinaryOpContext, isNotTypeAnnotationContext], 16),\n      rule(\"SpaceAfterQuestionMarkInConditionalOperator\", 57, anyToken, [isNonJsxSameLineTokenContext, isConditionalOperatorContext], 4),\n      rule(\"NoSpaceAfterQuestionMark\", 57, anyToken, [isNonJsxSameLineTokenContext], 16),\n      rule(\"NoSpaceBeforeDot\", anyToken, [24, 28], [isNonJsxSameLineTokenContext, isNotPropertyAccessOnIntegerLiteral], 16),\n      rule(\"NoSpaceAfterDot\", [24, 28], anyToken, [isNonJsxSameLineTokenContext], 16),\n      rule(\"NoSpaceBetweenImportParenInImportType\", 100, 20, [isNonJsxSameLineTokenContext, isImportTypeContext], 16),\n      rule(\"NoSpaceAfterUnaryPrefixOperator\", unaryPrefixOperators, unaryPrefixExpressions, [isNonJsxSameLineTokenContext, isNotBinaryOpContext], 16),\n      rule(\"NoSpaceAfterUnaryPreincrementOperator\", 45, unaryPreincrementExpressions, [isNonJsxSameLineTokenContext], 16),\n      rule(\"NoSpaceAfterUnaryPredecrementOperator\", 46, unaryPredecrementExpressions, [isNonJsxSameLineTokenContext], 16),\n      rule(\"NoSpaceBeforeUnaryPostincrementOperator\", unaryPostincrementExpressions, 45, [isNonJsxSameLineTokenContext, isNotStatementConditionContext], 16),\n      rule(\"NoSpaceBeforeUnaryPostdecrementOperator\", unaryPostdecrementExpressions, 46, [isNonJsxSameLineTokenContext, isNotStatementConditionContext], 16),\n      rule(\"SpaceAfterPostincrementWhenFollowedByAdd\", 45, 39, [isNonJsxSameLineTokenContext, isBinaryOpContext], 4),\n      rule(\"SpaceAfterAddWhenFollowedByUnaryPlus\", 39, 39, [isNonJsxSameLineTokenContext, isBinaryOpContext], 4),\n      rule(\"SpaceAfterAddWhenFollowedByPreincrement\", 39, 45, [isNonJsxSameLineTokenContext, isBinaryOpContext], 4),\n      rule(\"SpaceAfterPostdecrementWhenFollowedBySubtract\", 46, 40, [isNonJsxSameLineTokenContext, isBinaryOpContext], 4),\n      rule(\"SpaceAfterSubtractWhenFollowedByUnaryMinus\", 40, 40, [isNonJsxSameLineTokenContext, isBinaryOpContext], 4),\n      rule(\"SpaceAfterSubtractWhenFollowedByPredecrement\", 40, 46, [isNonJsxSameLineTokenContext, isBinaryOpContext], 4),\n      rule(\"NoSpaceAfterCloseBrace\", 19, [27, 26], [isNonJsxSameLineTokenContext], 16),\n      rule(\"NewLineBeforeCloseBraceInBlockContext\", anyTokenIncludingMultilineComments, 19, [isMultilineBlockContext], 8),\n      rule(\"SpaceAfterCloseBrace\", 19, anyTokenExcept(21), [isNonJsxSameLineTokenContext, isAfterCodeBlockContext], 4),\n      rule(\"SpaceBetweenCloseBraceAndElse\", 19, 91, [isNonJsxSameLineTokenContext], 4),\n      rule(\"SpaceBetweenCloseBraceAndWhile\", 19, 115, [isNonJsxSameLineTokenContext], 4),\n      rule(\"NoSpaceBetweenEmptyBraceBrackets\", 18, 19, [isNonJsxSameLineTokenContext, isObjectContext], 16),\n      rule(\"SpaceAfterConditionalClosingParen\", 21, 22, [isControlDeclContext], 4),\n      rule(\"NoSpaceBetweenFunctionKeywordAndStar\", 98, 41, [isFunctionDeclarationOrFunctionExpressionContext], 16),\n      rule(\"SpaceAfterStarInGeneratorDeclaration\", 41, 79, [isFunctionDeclarationOrFunctionExpressionContext], 4),\n      rule(\"SpaceAfterFunctionInFuncDecl\", 98, anyToken, [isFunctionDeclContext], 4),\n      rule(\"NewLineAfterOpenBraceInBlockContext\", 18, anyToken, [isMultilineBlockContext], 8),\n      rule(\"SpaceAfterGetSetInMember\", [137, 151], 79, [isFunctionDeclContext], 4),\n      rule(\"NoSpaceBetweenYieldKeywordAndStar\", 125, 41, [isNonJsxSameLineTokenContext, isYieldOrYieldStarWithOperand], 16),\n      rule(\"SpaceBetweenYieldOrYieldStarAndOperand\", [125, 41], anyToken, [isNonJsxSameLineTokenContext, isYieldOrYieldStarWithOperand], 4),\n      rule(\"NoSpaceBetweenReturnAndSemicolon\", 105, 26, [isNonJsxSameLineTokenContext], 16),\n      rule(\"SpaceAfterCertainKeywords\", [113, 109, 103, 89, 105, 112, 133], anyToken, [isNonJsxSameLineTokenContext], 4),\n      rule(\"SpaceAfterLetConstInVariableDeclaration\", [119, 85], anyToken, [isNonJsxSameLineTokenContext, isStartOfVariableDeclarationList], 4),\n      rule(\"NoSpaceBeforeOpenParenInFuncCall\", anyToken, 20, [isNonJsxSameLineTokenContext, isFunctionCallOrNewContext, isPreviousTokenNotComma], 16),\n      rule(\"SpaceBeforeBinaryKeywordOperator\", anyToken, binaryKeywordOperators, [isNonJsxSameLineTokenContext, isBinaryOpContext], 4),\n      rule(\"SpaceAfterBinaryKeywordOperator\", binaryKeywordOperators, anyToken, [isNonJsxSameLineTokenContext, isBinaryOpContext], 4),\n      rule(\"SpaceAfterVoidOperator\", 114, anyToken, [isNonJsxSameLineTokenContext, isVoidOpContext], 4),\n      rule(\"SpaceBetweenAsyncAndOpenParen\", 132, 20, [isArrowFunctionContext, isNonJsxSameLineTokenContext], 4),\n      rule(\"SpaceBetweenAsyncAndFunctionKeyword\", 132, [98, 79], [isNonJsxSameLineTokenContext], 4),\n      rule(\"NoSpaceBetweenTagAndTemplateString\", [79, 21], [14, 15], [isNonJsxSameLineTokenContext], 16),\n      rule(\"SpaceBeforeJsxAttribute\", anyToken, 79, [isNextTokenParentJsxAttribute, isNonJsxSameLineTokenContext], 4),\n      rule(\"SpaceBeforeSlashInJsxOpeningElement\", anyToken, 43, [isJsxSelfClosingElementContext, isNonJsxSameLineTokenContext], 4),\n      rule(\"NoSpaceBeforeGreaterThanTokenInJsxOpeningElement\", 43, 31, [isJsxSelfClosingElementContext, isNonJsxSameLineTokenContext], 16),\n      rule(\"NoSpaceBeforeEqualInJsxAttribute\", anyToken, 63, [isJsxAttributeContext, isNonJsxSameLineTokenContext], 16),\n      rule(\"NoSpaceAfterEqualInJsxAttribute\", 63, anyToken, [isJsxAttributeContext, isNonJsxSameLineTokenContext], 16),\n      rule(\"NoSpaceAfterModuleImport\", [142, 147], 20, [isNonJsxSameLineTokenContext], 16),\n      rule(\"SpaceAfterCertainTypeScriptKeywords\", [\n        126,\n        127,\n        84,\n        136,\n        88,\n        92,\n        93,\n        94,\n        137,\n        117,\n        100,\n        118,\n        142,\n        143,\n        121,\n        123,\n        122,\n        146,\n        151,\n        124,\n        154,\n        158,\n        141,\n        138\n      ], anyToken, [isNonJsxSameLineTokenContext], 4),\n      rule(\"SpaceBeforeCertainTypeScriptKeywords\", anyToken, [94, 117, 158], [isNonJsxSameLineTokenContext], 4),\n      rule(\"SpaceAfterModuleName\", 10, 18, [isModuleDeclContext], 4),\n      rule(\"SpaceBeforeArrow\", anyToken, 38, [isNonJsxSameLineTokenContext], 4),\n      rule(\"SpaceAfterArrow\", 38, anyToken, [isNonJsxSameLineTokenContext], 4),\n      rule(\"NoSpaceAfterEllipsis\", 25, 79, [isNonJsxSameLineTokenContext], 16),\n      rule(\"NoSpaceAfterOptionalParameters\", 57, [21, 27], [isNonJsxSameLineTokenContext, isNotBinaryOpContext], 16),\n      rule(\"NoSpaceBetweenEmptyInterfaceBraceBrackets\", 18, 19, [isNonJsxSameLineTokenContext, isObjectTypeContext], 16),\n      rule(\"NoSpaceBeforeOpenAngularBracket\", typeNames, 29, [isNonJsxSameLineTokenContext, isTypeArgumentOrParameterOrAssertionContext], 16),\n      rule(\"NoSpaceBetweenCloseParenAndAngularBracket\", 21, 29, [isNonJsxSameLineTokenContext, isTypeArgumentOrParameterOrAssertionContext], 16),\n      rule(\"NoSpaceAfterOpenAngularBracket\", 29, anyToken, [isNonJsxSameLineTokenContext, isTypeArgumentOrParameterOrAssertionContext], 16),\n      rule(\"NoSpaceBeforeCloseAngularBracket\", anyToken, 31, [isNonJsxSameLineTokenContext, isTypeArgumentOrParameterOrAssertionContext], 16),\n      rule(\"NoSpaceAfterCloseAngularBracket\", 31, [20, 22, 31, 27], [\n        isNonJsxSameLineTokenContext,\n        isTypeArgumentOrParameterOrAssertionContext,\n        isNotFunctionDeclContext,\n        isNonTypeAssertionContext\n      ], 16),\n      rule(\"SpaceBeforeAt\", [21, 79], 59, [isNonJsxSameLineTokenContext], 4),\n      rule(\"NoSpaceAfterAt\", 59, anyToken, [isNonJsxSameLineTokenContext], 16),\n      rule(\"SpaceAfterDecorator\", anyToken, [\n        126,\n        79,\n        93,\n        88,\n        84,\n        124,\n        123,\n        121,\n        122,\n        137,\n        151,\n        22,\n        41\n      ], [isEndOfDecoratorContextOnSameLine], 4),\n      rule(\"NoSpaceBeforeNonNullAssertionOperator\", anyToken, 53, [isNonJsxSameLineTokenContext, isNonNullAssertionContext], 16),\n      rule(\"NoSpaceAfterNewKeywordOnConstructorSignature\", 103, 20, [isNonJsxSameLineTokenContext, isConstructorSignatureContext], 16),\n      rule(\"SpaceLessThanAndNonJSXTypeAnnotation\", 29, 29, [isNonJsxSameLineTokenContext], 4)\n    ];\n    const userConfigurableRules = [\n      rule(\"SpaceAfterConstructor\", 135, 20, [isOptionEnabled(\"insertSpaceAfterConstructor\"), isNonJsxSameLineTokenContext], 4),\n      rule(\"NoSpaceAfterConstructor\", 135, 20, [isOptionDisabledOrUndefined(\"insertSpaceAfterConstructor\"), isNonJsxSameLineTokenContext], 16),\n      rule(\"SpaceAfterComma\", 27, anyToken, [isOptionEnabled(\"insertSpaceAfterCommaDelimiter\"), isNonJsxSameLineTokenContext, isNonJsxElementOrFragmentContext, isNextTokenNotCloseBracket, isNextTokenNotCloseParen], 4),\n      rule(\"NoSpaceAfterComma\", 27, anyToken, [isOptionDisabledOrUndefined(\"insertSpaceAfterCommaDelimiter\"), isNonJsxSameLineTokenContext, isNonJsxElementOrFragmentContext], 16),\n      rule(\"SpaceAfterAnonymousFunctionKeyword\", [98, 41], 20, [isOptionEnabled(\"insertSpaceAfterFunctionKeywordForAnonymousFunctions\"), isFunctionDeclContext], 4),\n      rule(\"NoSpaceAfterAnonymousFunctionKeyword\", [98, 41], 20, [isOptionDisabledOrUndefined(\"insertSpaceAfterFunctionKeywordForAnonymousFunctions\"), isFunctionDeclContext], 16),\n      rule(\"SpaceAfterKeywordInControl\", keywords, 20, [isOptionEnabled(\"insertSpaceAfterKeywordsInControlFlowStatements\"), isControlDeclContext], 4),\n      rule(\"NoSpaceAfterKeywordInControl\", keywords, 20, [isOptionDisabledOrUndefined(\"insertSpaceAfterKeywordsInControlFlowStatements\"), isControlDeclContext], 16),\n      rule(\"SpaceAfterOpenParen\", 20, anyToken, [isOptionEnabled(\"insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis\"), isNonJsxSameLineTokenContext], 4),\n      rule(\"SpaceBeforeCloseParen\", anyToken, 21, [isOptionEnabled(\"insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis\"), isNonJsxSameLineTokenContext], 4),\n      rule(\"SpaceBetweenOpenParens\", 20, 20, [isOptionEnabled(\"insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis\"), isNonJsxSameLineTokenContext], 4),\n      rule(\"NoSpaceBetweenParens\", 20, 21, [isNonJsxSameLineTokenContext], 16),\n      rule(\"NoSpaceAfterOpenParen\", 20, anyToken, [isOptionDisabledOrUndefined(\"insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis\"), isNonJsxSameLineTokenContext], 16),\n      rule(\"NoSpaceBeforeCloseParen\", anyToken, 21, [isOptionDisabledOrUndefined(\"insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis\"), isNonJsxSameLineTokenContext], 16),\n      rule(\"SpaceAfterOpenBracket\", 22, anyToken, [isOptionEnabled(\"insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets\"), isNonJsxSameLineTokenContext], 4),\n      rule(\"SpaceBeforeCloseBracket\", anyToken, 23, [isOptionEnabled(\"insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets\"), isNonJsxSameLineTokenContext], 4),\n      rule(\"NoSpaceBetweenBrackets\", 22, 23, [isNonJsxSameLineTokenContext], 16),\n      rule(\"NoSpaceAfterOpenBracket\", 22, anyToken, [isOptionDisabledOrUndefined(\"insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets\"), isNonJsxSameLineTokenContext], 16),\n      rule(\"NoSpaceBeforeCloseBracket\", anyToken, 23, [isOptionDisabledOrUndefined(\"insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets\"), isNonJsxSameLineTokenContext], 16),\n      rule(\"SpaceAfterOpenBrace\", 18, anyToken, [isOptionEnabledOrUndefined(\"insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces\"), isBraceWrappedContext], 4),\n      rule(\"SpaceBeforeCloseBrace\", anyToken, 19, [isOptionEnabledOrUndefined(\"insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces\"), isBraceWrappedContext], 4),\n      rule(\"NoSpaceBetweenEmptyBraceBrackets\", 18, 19, [isNonJsxSameLineTokenContext, isObjectContext], 16),\n      rule(\"NoSpaceAfterOpenBrace\", 18, anyToken, [isOptionDisabled(\"insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces\"), isNonJsxSameLineTokenContext], 16),\n      rule(\"NoSpaceBeforeCloseBrace\", anyToken, 19, [isOptionDisabled(\"insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces\"), isNonJsxSameLineTokenContext], 16),\n      rule(\"SpaceBetweenEmptyBraceBrackets\", 18, 19, [isOptionEnabled(\"insertSpaceAfterOpeningAndBeforeClosingEmptyBraces\")], 4),\n      rule(\"NoSpaceBetweenEmptyBraceBrackets\", 18, 19, [isOptionDisabled(\"insertSpaceAfterOpeningAndBeforeClosingEmptyBraces\"), isNonJsxSameLineTokenContext], 16),\n      rule(\"SpaceAfterTemplateHeadAndMiddle\", [15, 16], anyToken, [isOptionEnabled(\"insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces\"), isNonJsxTextContext], 4, 1),\n      rule(\"SpaceBeforeTemplateMiddleAndTail\", anyToken, [16, 17], [isOptionEnabled(\"insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces\"), isNonJsxSameLineTokenContext], 4),\n      rule(\"NoSpaceAfterTemplateHeadAndMiddle\", [15, 16], anyToken, [isOptionDisabledOrUndefined(\"insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces\"), isNonJsxTextContext], 16, 1),\n      rule(\"NoSpaceBeforeTemplateMiddleAndTail\", anyToken, [16, 17], [isOptionDisabledOrUndefined(\"insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces\"), isNonJsxSameLineTokenContext], 16),\n      rule(\"SpaceAfterOpenBraceInJsxExpression\", 18, anyToken, [isOptionEnabled(\"insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces\"), isNonJsxSameLineTokenContext, isJsxExpressionContext], 4),\n      rule(\"SpaceBeforeCloseBraceInJsxExpression\", anyToken, 19, [isOptionEnabled(\"insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces\"), isNonJsxSameLineTokenContext, isJsxExpressionContext], 4),\n      rule(\"NoSpaceAfterOpenBraceInJsxExpression\", 18, anyToken, [isOptionDisabledOrUndefined(\"insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces\"), isNonJsxSameLineTokenContext, isJsxExpressionContext], 16),\n      rule(\"NoSpaceBeforeCloseBraceInJsxExpression\", anyToken, 19, [isOptionDisabledOrUndefined(\"insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces\"), isNonJsxSameLineTokenContext, isJsxExpressionContext], 16),\n      rule(\"SpaceAfterSemicolonInFor\", 26, anyToken, [isOptionEnabled(\"insertSpaceAfterSemicolonInForStatements\"), isNonJsxSameLineTokenContext, isForContext], 4),\n      rule(\"NoSpaceAfterSemicolonInFor\", 26, anyToken, [isOptionDisabledOrUndefined(\"insertSpaceAfterSemicolonInForStatements\"), isNonJsxSameLineTokenContext, isForContext], 16),\n      rule(\"SpaceBeforeBinaryOperator\", anyToken, binaryOperators, [isOptionEnabled(\"insertSpaceBeforeAndAfterBinaryOperators\"), isNonJsxSameLineTokenContext, isBinaryOpContext], 4),\n      rule(\"SpaceAfterBinaryOperator\", binaryOperators, anyToken, [isOptionEnabled(\"insertSpaceBeforeAndAfterBinaryOperators\"), isNonJsxSameLineTokenContext, isBinaryOpContext], 4),\n      rule(\"NoSpaceBeforeBinaryOperator\", anyToken, binaryOperators, [isOptionDisabledOrUndefined(\"insertSpaceBeforeAndAfterBinaryOperators\"), isNonJsxSameLineTokenContext, isBinaryOpContext], 16),\n      rule(\"NoSpaceAfterBinaryOperator\", binaryOperators, anyToken, [isOptionDisabledOrUndefined(\"insertSpaceBeforeAndAfterBinaryOperators\"), isNonJsxSameLineTokenContext, isBinaryOpContext], 16),\n      rule(\"SpaceBeforeOpenParenInFuncDecl\", anyToken, 20, [isOptionEnabled(\"insertSpaceBeforeFunctionParenthesis\"), isNonJsxSameLineTokenContext, isFunctionDeclContext], 4),\n      rule(\"NoSpaceBeforeOpenParenInFuncDecl\", anyToken, 20, [isOptionDisabledOrUndefined(\"insertSpaceBeforeFunctionParenthesis\"), isNonJsxSameLineTokenContext, isFunctionDeclContext], 16),\n      rule(\"NewLineBeforeOpenBraceInControl\", controlOpenBraceLeftTokenRange, 18, [isOptionEnabled(\"placeOpenBraceOnNewLineForControlBlocks\"), isControlDeclContext, isBeforeMultilineBlockContext], 8, 1),\n      rule(\"NewLineBeforeOpenBraceInFunction\", functionOpenBraceLeftTokenRange, 18, [isOptionEnabled(\"placeOpenBraceOnNewLineForFunctions\"), isFunctionDeclContext, isBeforeMultilineBlockContext], 8, 1),\n      rule(\"NewLineBeforeOpenBraceInTypeScriptDeclWithBlock\", typeScriptOpenBraceLeftTokenRange, 18, [isOptionEnabled(\"placeOpenBraceOnNewLineForFunctions\"), isTypeScriptDeclWithBlockContext, isBeforeMultilineBlockContext], 8, 1),\n      rule(\"SpaceAfterTypeAssertion\", 31, anyToken, [isOptionEnabled(\"insertSpaceAfterTypeAssertion\"), isNonJsxSameLineTokenContext, isTypeAssertionContext], 4),\n      rule(\"NoSpaceAfterTypeAssertion\", 31, anyToken, [isOptionDisabledOrUndefined(\"insertSpaceAfterTypeAssertion\"), isNonJsxSameLineTokenContext, isTypeAssertionContext], 16),\n      rule(\"SpaceBeforeTypeAnnotation\", anyToken, [57, 58], [isOptionEnabled(\"insertSpaceBeforeTypeAnnotation\"), isNonJsxSameLineTokenContext, isTypeAnnotationContext], 4),\n      rule(\"NoSpaceBeforeTypeAnnotation\", anyToken, [57, 58], [isOptionDisabledOrUndefined(\"insertSpaceBeforeTypeAnnotation\"), isNonJsxSameLineTokenContext, isTypeAnnotationContext], 16),\n      rule(\"NoOptionalSemicolon\", 26, anyTokenIncludingEOF, [optionEquals(\"semicolons\", \"remove\"), isSemicolonDeletionContext], 32),\n      rule(\"OptionalSemicolon\", anyToken, anyTokenIncludingEOF, [optionEquals(\"semicolons\", \"insert\"), isSemicolonInsertionContext], 64)\n    ];\n    const lowPriorityCommonRules = [\n      rule(\"NoSpaceBeforeSemicolon\", anyToken, 26, [isNonJsxSameLineTokenContext], 16),\n      rule(\"SpaceBeforeOpenBraceInControl\", controlOpenBraceLeftTokenRange, 18, [isOptionDisabledOrUndefinedOrTokensOnSameLine(\"placeOpenBraceOnNewLineForControlBlocks\"), isControlDeclContext, isNotFormatOnEnter, isSameLineTokenOrBeforeBlockContext], 4, 1),\n      rule(\"SpaceBeforeOpenBraceInFunction\", functionOpenBraceLeftTokenRange, 18, [isOptionDisabledOrUndefinedOrTokensOnSameLine(\"placeOpenBraceOnNewLineForFunctions\"), isFunctionDeclContext, isBeforeBlockContext, isNotFormatOnEnter, isSameLineTokenOrBeforeBlockContext], 4, 1),\n      rule(\"SpaceBeforeOpenBraceInTypeScriptDeclWithBlock\", typeScriptOpenBraceLeftTokenRange, 18, [isOptionDisabledOrUndefinedOrTokensOnSameLine(\"placeOpenBraceOnNewLineForFunctions\"), isTypeScriptDeclWithBlockContext, isNotFormatOnEnter, isSameLineTokenOrBeforeBlockContext], 4, 1),\n      rule(\"NoSpaceBeforeComma\", anyToken, 27, [isNonJsxSameLineTokenContext], 16),\n      rule(\"NoSpaceBeforeOpenBracket\", anyTokenExcept(132, 82), 22, [isNonJsxSameLineTokenContext], 16),\n      rule(\"NoSpaceAfterCloseBracket\", 23, anyToken, [isNonJsxSameLineTokenContext, isNotBeforeBlockInFunctionDeclarationContext], 16),\n      rule(\"SpaceAfterSemicolon\", 26, anyToken, [isNonJsxSameLineTokenContext], 4),\n      rule(\"SpaceBetweenForAndAwaitKeyword\", 97, 133, [isNonJsxSameLineTokenContext], 4),\n      rule(\"SpaceBetweenStatements\", [21, 90, 91, 82], anyToken, [isNonJsxSameLineTokenContext, isNonJsxElementOrFragmentContext, isNotForContext], 4),\n      rule(\"SpaceAfterTryCatchFinally\", [111, 83, 96], 18, [isNonJsxSameLineTokenContext], 4)\n    ];\n    return [\n      ...highPriorityCommonRules,\n      ...userConfigurableRules,\n      ...lowPriorityCommonRules\n    ];\n  }\n  function rule(debugName, left, right, context, action, flags = 0) {\n    return { leftTokenRange: toTokenRange(left), rightTokenRange: toTokenRange(right), rule: { debugName, context, action, flags } };\n  }\n  function tokenRangeFrom(tokens) {\n    return { tokens, isSpecific: true };\n  }\n  function toTokenRange(arg) {\n    return typeof arg === \"number\" ? tokenRangeFrom([arg]) : isArray(arg) ? tokenRangeFrom(arg) : arg;\n  }\n  function tokenRangeFromRange(from, to, except = []) {\n    const tokens = [];\n    for (let token = from; token <= to; token++) {\n      if (!contains(except, token)) {\n        tokens.push(token);\n      }\n    }\n    return tokenRangeFrom(tokens);\n  }\n  function optionEquals(optionName, optionValue) {\n    return (context) => context.options && context.options[optionName] === optionValue;\n  }\n  function isOptionEnabled(optionName) {\n    return (context) => context.options && hasProperty(context.options, optionName) && !!context.options[optionName];\n  }\n  function isOptionDisabled(optionName) {\n    return (context) => context.options && hasProperty(context.options, optionName) && !context.options[optionName];\n  }\n  function isOptionDisabledOrUndefined(optionName) {\n    return (context) => !context.options || !hasProperty(context.options, optionName) || !context.options[optionName];\n  }\n  function isOptionDisabledOrUndefinedOrTokensOnSameLine(optionName) {\n    return (context) => !context.options || !hasProperty(context.options, optionName) || !context.options[optionName] || context.TokensAreOnSameLine();\n  }\n  function isOptionEnabledOrUndefined(optionName) {\n    return (context) => !context.options || !hasProperty(context.options, optionName) || !!context.options[optionName];\n  }\n  function isForContext(context) {\n    return context.contextNode.kind === 245;\n  }\n  function isNotForContext(context) {\n    return !isForContext(context);\n  }\n  function isBinaryOpContext(context) {\n    switch (context.contextNode.kind) {\n      case 223:\n        return context.contextNode.operatorToken.kind !== 27;\n      case 224:\n      case 191:\n      case 231:\n      case 278:\n      case 273:\n      case 179:\n      case 189:\n      case 190:\n      case 235:\n        return true;\n      case 205:\n      case 262:\n      case 268:\n      case 274:\n      case 257:\n      case 166:\n      case 302:\n      case 169:\n      case 168:\n        return context.currentTokenSpan.kind === 63 || context.nextTokenSpan.kind === 63;\n      case 246:\n      case 165:\n        return context.currentTokenSpan.kind === 101 || context.nextTokenSpan.kind === 101 || context.currentTokenSpan.kind === 63 || context.nextTokenSpan.kind === 63;\n      case 247:\n        return context.currentTokenSpan.kind === 162 || context.nextTokenSpan.kind === 162;\n    }\n    return false;\n  }\n  function isNotBinaryOpContext(context) {\n    return !isBinaryOpContext(context);\n  }\n  function isNotTypeAnnotationContext(context) {\n    return !isTypeAnnotationContext(context);\n  }\n  function isTypeAnnotationContext(context) {\n    const contextKind = context.contextNode.kind;\n    return contextKind === 169 || contextKind === 168 || contextKind === 166 || contextKind === 257 || isFunctionLikeKind(contextKind);\n  }\n  function isConditionalOperatorContext(context) {\n    return context.contextNode.kind === 224 || context.contextNode.kind === 191;\n  }\n  function isSameLineTokenOrBeforeBlockContext(context) {\n    return context.TokensAreOnSameLine() || isBeforeBlockContext(context);\n  }\n  function isBraceWrappedContext(context) {\n    return context.contextNode.kind === 203 || context.contextNode.kind === 197 || isSingleLineBlockContext(context);\n  }\n  function isBeforeMultilineBlockContext(context) {\n    return isBeforeBlockContext(context) && !(context.NextNodeAllOnSameLine() || context.NextNodeBlockIsOnOneLine());\n  }\n  function isMultilineBlockContext(context) {\n    return isBlockContext(context) && !(context.ContextNodeAllOnSameLine() || context.ContextNodeBlockIsOnOneLine());\n  }\n  function isSingleLineBlockContext(context) {\n    return isBlockContext(context) && (context.ContextNodeAllOnSameLine() || context.ContextNodeBlockIsOnOneLine());\n  }\n  function isBlockContext(context) {\n    return nodeIsBlockContext(context.contextNode);\n  }\n  function isBeforeBlockContext(context) {\n    return nodeIsBlockContext(context.nextTokenParent);\n  }\n  function nodeIsBlockContext(node) {\n    if (nodeIsTypeScriptDeclWithBlockContext(node)) {\n      return true;\n    }\n    switch (node.kind) {\n      case 238:\n      case 266:\n      case 207:\n      case 265:\n        return true;\n    }\n    return false;\n  }\n  function isFunctionDeclContext(context) {\n    switch (context.contextNode.kind) {\n      case 259:\n      case 171:\n      case 170:\n      case 174:\n      case 175:\n      case 176:\n      case 215:\n      case 173:\n      case 216:\n      case 261:\n        return true;\n    }\n    return false;\n  }\n  function isNotFunctionDeclContext(context) {\n    return !isFunctionDeclContext(context);\n  }\n  function isFunctionDeclarationOrFunctionExpressionContext(context) {\n    return context.contextNode.kind === 259 || context.contextNode.kind === 215;\n  }\n  function isTypeScriptDeclWithBlockContext(context) {\n    return nodeIsTypeScriptDeclWithBlockContext(context.contextNode);\n  }\n  function nodeIsTypeScriptDeclWithBlockContext(node) {\n    switch (node.kind) {\n      case 260:\n      case 228:\n      case 261:\n      case 263:\n      case 184:\n      case 264:\n      case 275:\n      case 276:\n      case 269:\n      case 272:\n        return true;\n    }\n    return false;\n  }\n  function isAfterCodeBlockContext(context) {\n    switch (context.currentTokenParent.kind) {\n      case 260:\n      case 264:\n      case 263:\n      case 295:\n      case 265:\n      case 252:\n        return true;\n      case 238: {\n        const blockParent = context.currentTokenParent.parent;\n        if (!blockParent || blockParent.kind !== 216 && blockParent.kind !== 215) {\n          return true;\n        }\n      }\n    }\n    return false;\n  }\n  function isControlDeclContext(context) {\n    switch (context.contextNode.kind) {\n      case 242:\n      case 252:\n      case 245:\n      case 246:\n      case 247:\n      case 244:\n      case 255:\n      case 243:\n      case 251:\n      case 295:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function isObjectContext(context) {\n    return context.contextNode.kind === 207;\n  }\n  function isFunctionCallContext(context) {\n    return context.contextNode.kind === 210;\n  }\n  function isNewContext(context) {\n    return context.contextNode.kind === 211;\n  }\n  function isFunctionCallOrNewContext(context) {\n    return isFunctionCallContext(context) || isNewContext(context);\n  }\n  function isPreviousTokenNotComma(context) {\n    return context.currentTokenSpan.kind !== 27;\n  }\n  function isNextTokenNotCloseBracket(context) {\n    return context.nextTokenSpan.kind !== 23;\n  }\n  function isNextTokenNotCloseParen(context) {\n    return context.nextTokenSpan.kind !== 21;\n  }\n  function isArrowFunctionContext(context) {\n    return context.contextNode.kind === 216;\n  }\n  function isImportTypeContext(context) {\n    return context.contextNode.kind === 202;\n  }\n  function isNonJsxSameLineTokenContext(context) {\n    return context.TokensAreOnSameLine() && context.contextNode.kind !== 11;\n  }\n  function isNonJsxTextContext(context) {\n    return context.contextNode.kind !== 11;\n  }\n  function isNonJsxElementOrFragmentContext(context) {\n    return context.contextNode.kind !== 281 && context.contextNode.kind !== 285;\n  }\n  function isJsxExpressionContext(context) {\n    return context.contextNode.kind === 291 || context.contextNode.kind === 290;\n  }\n  function isNextTokenParentJsxAttribute(context) {\n    return context.nextTokenParent.kind === 288;\n  }\n  function isJsxAttributeContext(context) {\n    return context.contextNode.kind === 288;\n  }\n  function isJsxSelfClosingElementContext(context) {\n    return context.contextNode.kind === 282;\n  }\n  function isNotBeforeBlockInFunctionDeclarationContext(context) {\n    return !isFunctionDeclContext(context) && !isBeforeBlockContext(context);\n  }\n  function isEndOfDecoratorContextOnSameLine(context) {\n    return context.TokensAreOnSameLine() && hasDecorators(context.contextNode) && nodeIsInDecoratorContext(context.currentTokenParent) && !nodeIsInDecoratorContext(context.nextTokenParent);\n  }\n  function nodeIsInDecoratorContext(node) {\n    while (node && isExpression(node)) {\n      node = node.parent;\n    }\n    return node && node.kind === 167;\n  }\n  function isStartOfVariableDeclarationList(context) {\n    return context.currentTokenParent.kind === 258 && context.currentTokenParent.getStart(context.sourceFile) === context.currentTokenSpan.pos;\n  }\n  function isNotFormatOnEnter(context) {\n    return context.formattingRequestKind !== 2;\n  }\n  function isModuleDeclContext(context) {\n    return context.contextNode.kind === 264;\n  }\n  function isObjectTypeContext(context) {\n    return context.contextNode.kind === 184;\n  }\n  function isConstructorSignatureContext(context) {\n    return context.contextNode.kind === 177;\n  }\n  function isTypeArgumentOrParameterOrAssertion(token, parent2) {\n    if (token.kind !== 29 && token.kind !== 31) {\n      return false;\n    }\n    switch (parent2.kind) {\n      case 180:\n      case 213:\n      case 262:\n      case 260:\n      case 228:\n      case 261:\n      case 259:\n      case 215:\n      case 216:\n      case 171:\n      case 170:\n      case 176:\n      case 177:\n      case 210:\n      case 211:\n      case 230:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function isTypeArgumentOrParameterOrAssertionContext(context) {\n    return isTypeArgumentOrParameterOrAssertion(context.currentTokenSpan, context.currentTokenParent) || isTypeArgumentOrParameterOrAssertion(context.nextTokenSpan, context.nextTokenParent);\n  }\n  function isTypeAssertionContext(context) {\n    return context.contextNode.kind === 213;\n  }\n  function isNonTypeAssertionContext(context) {\n    return !isTypeAssertionContext(context);\n  }\n  function isVoidOpContext(context) {\n    return context.currentTokenSpan.kind === 114 && context.currentTokenParent.kind === 219;\n  }\n  function isYieldOrYieldStarWithOperand(context) {\n    return context.contextNode.kind === 226 && context.contextNode.expression !== void 0;\n  }\n  function isNonNullAssertionContext(context) {\n    return context.contextNode.kind === 232;\n  }\n  function isNotStatementConditionContext(context) {\n    return !isStatementConditionContext(context);\n  }\n  function isStatementConditionContext(context) {\n    switch (context.contextNode.kind) {\n      case 242:\n      case 245:\n      case 246:\n      case 247:\n      case 243:\n      case 244:\n        return true;\n      default:\n        return false;\n    }\n  }\n  function isSemicolonDeletionContext(context) {\n    let nextTokenKind = context.nextTokenSpan.kind;\n    let nextTokenStart = context.nextTokenSpan.pos;\n    if (isTrivia(nextTokenKind)) {\n      const nextRealToken = context.nextTokenParent === context.currentTokenParent ? findNextToken(context.currentTokenParent, findAncestor(context.currentTokenParent, (a) => !a.parent), context.sourceFile) : context.nextTokenParent.getFirstToken(context.sourceFile);\n      if (!nextRealToken) {\n        return true;\n      }\n      nextTokenKind = nextRealToken.kind;\n      nextTokenStart = nextRealToken.getStart(context.sourceFile);\n    }\n    const startLine = context.sourceFile.getLineAndCharacterOfPosition(context.currentTokenSpan.pos).line;\n    const endLine = context.sourceFile.getLineAndCharacterOfPosition(nextTokenStart).line;\n    if (startLine === endLine) {\n      return nextTokenKind === 19 || nextTokenKind === 1;\n    }\n    if (nextTokenKind === 237 || nextTokenKind === 26) {\n      return false;\n    }\n    if (context.contextNode.kind === 261 || context.contextNode.kind === 262) {\n      return !isPropertySignature(context.currentTokenParent) || !!context.currentTokenParent.type || nextTokenKind !== 20;\n    }\n    if (isPropertyDeclaration(context.currentTokenParent)) {\n      return !context.currentTokenParent.initializer;\n    }\n    return context.currentTokenParent.kind !== 245 && context.currentTokenParent.kind !== 239 && context.currentTokenParent.kind !== 237 && nextTokenKind !== 22 && nextTokenKind !== 20 && nextTokenKind !== 39 && nextTokenKind !== 40 && nextTokenKind !== 43 && nextTokenKind !== 13 && nextTokenKind !== 27 && nextTokenKind !== 225 && nextTokenKind !== 15 && nextTokenKind !== 14 && nextTokenKind !== 24;\n  }\n  function isSemicolonInsertionContext(context) {\n    return positionIsASICandidate(context.currentTokenSpan.end, context.currentTokenParent, context.sourceFile);\n  }\n  function isNotPropertyAccessOnIntegerLiteral(context) {\n    return !isPropertyAccessExpression(context.contextNode) || !isNumericLiteral(context.contextNode.expression) || context.contextNode.expression.getText().indexOf(\".\") !== -1;\n  }\n  var init_rules = __esm({\n    \"src/services/formatting/rules.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_formatting();\n    }\n  });\n  function getFormatContext(options, host) {\n    return { options, getRules: getRulesMap(), host };\n  }\n  function getRulesMap() {\n    if (rulesMapCache === void 0) {\n      rulesMapCache = createRulesMap(getAllRules());\n    }\n    return rulesMapCache;\n  }\n  function getRuleActionExclusion(ruleAction) {\n    let mask2 = 0;\n    if (ruleAction & 1) {\n      mask2 |= 28;\n    }\n    if (ruleAction & 2) {\n      mask2 |= 96;\n    }\n    if (ruleAction & 28) {\n      mask2 |= 28;\n    }\n    if (ruleAction & 96) {\n      mask2 |= 96;\n    }\n    return mask2;\n  }\n  function createRulesMap(rules) {\n    const map2 = buildMap(rules);\n    return (context) => {\n      const bucket = map2[getRuleBucketIndex(context.currentTokenSpan.kind, context.nextTokenSpan.kind)];\n      if (bucket) {\n        const rules2 = [];\n        let ruleActionMask = 0;\n        for (const rule2 of bucket) {\n          const acceptRuleActions = ~getRuleActionExclusion(ruleActionMask);\n          if (rule2.action & acceptRuleActions && every(rule2.context, (c) => c(context))) {\n            rules2.push(rule2);\n            ruleActionMask |= rule2.action;\n          }\n        }\n        if (rules2.length) {\n          return rules2;\n        }\n      }\n    };\n  }\n  function buildMap(rules) {\n    const map2 = new Array(mapRowLength * mapRowLength);\n    const rulesBucketConstructionStateList = new Array(map2.length);\n    for (const rule2 of rules) {\n      const specificRule = rule2.leftTokenRange.isSpecific && rule2.rightTokenRange.isSpecific;\n      for (const left of rule2.leftTokenRange.tokens) {\n        for (const right of rule2.rightTokenRange.tokens) {\n          const index = getRuleBucketIndex(left, right);\n          let rulesBucket = map2[index];\n          if (rulesBucket === void 0) {\n            rulesBucket = map2[index] = [];\n          }\n          addRule(rulesBucket, rule2.rule, specificRule, rulesBucketConstructionStateList, index);\n        }\n      }\n    }\n    return map2;\n  }\n  function getRuleBucketIndex(row, column) {\n    Debug.assert(row <= 162 && column <= 162, \"Must compute formatting context from tokens\");\n    return row * mapRowLength + column;\n  }\n  function addRule(rules, rule2, specificTokens, constructionState, rulesBucketIndex) {\n    const position = rule2.action & 3 ? specificTokens ? 0 : RulesPosition.StopRulesAny : rule2.context !== anyContext ? specificTokens ? RulesPosition.ContextRulesSpecific : RulesPosition.ContextRulesAny : specificTokens ? RulesPosition.NoContextRulesSpecific : RulesPosition.NoContextRulesAny;\n    const state = constructionState[rulesBucketIndex] || 0;\n    rules.splice(getInsertionIndex(state, position), 0, rule2);\n    constructionState[rulesBucketIndex] = increaseInsertionIndex(state, position);\n  }\n  function getInsertionIndex(indexBitmap, maskPosition) {\n    let index = 0;\n    for (let pos = 0; pos <= maskPosition; pos += maskBitSize) {\n      index += indexBitmap & mask;\n      indexBitmap >>= maskBitSize;\n    }\n    return index;\n  }\n  function increaseInsertionIndex(indexBitmap, maskPosition) {\n    const value = (indexBitmap >> maskPosition & mask) + 1;\n    Debug.assert((value & mask) === value, \"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules.\");\n    return indexBitmap & ~(mask << maskPosition) | value << maskPosition;\n  }\n  var rulesMapCache, maskBitSize, mask, mapRowLength, RulesPosition;\n  var init_rulesMap = __esm({\n    \"src/services/formatting/rulesMap.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_formatting();\n      maskBitSize = 5;\n      mask = 31;\n      mapRowLength = 162 + 1;\n      RulesPosition = ((RulesPosition2) => {\n        RulesPosition2[RulesPosition2[\"StopRulesSpecific\"] = 0] = \"StopRulesSpecific\";\n        RulesPosition2[RulesPosition2[\"StopRulesAny\"] = maskBitSize * 1] = \"StopRulesAny\";\n        RulesPosition2[RulesPosition2[\"ContextRulesSpecific\"] = maskBitSize * 2] = \"ContextRulesSpecific\";\n        RulesPosition2[RulesPosition2[\"ContextRulesAny\"] = maskBitSize * 3] = \"ContextRulesAny\";\n        RulesPosition2[RulesPosition2[\"NoContextRulesSpecific\"] = maskBitSize * 4] = \"NoContextRulesSpecific\";\n        RulesPosition2[RulesPosition2[\"NoContextRulesAny\"] = maskBitSize * 5] = \"NoContextRulesAny\";\n        return RulesPosition2;\n      })(RulesPosition || {});\n    }\n  });\n  function createTextRangeWithKind(pos, end, kind) {\n    const textRangeWithKind = { pos, end, kind };\n    if (Debug.isDebugging) {\n      Object.defineProperty(textRangeWithKind, \"__debugKind\", {\n        get: () => Debug.formatSyntaxKind(kind)\n      });\n    }\n    return textRangeWithKind;\n  }\n  function formatOnEnter(position, sourceFile, formatContext) {\n    const line = sourceFile.getLineAndCharacterOfPosition(position).line;\n    if (line === 0) {\n      return [];\n    }\n    let endOfFormatSpan = getEndLinePosition(line, sourceFile);\n    while (isWhiteSpaceSingleLine(sourceFile.text.charCodeAt(endOfFormatSpan))) {\n      endOfFormatSpan--;\n    }\n    if (isLineBreak(sourceFile.text.charCodeAt(endOfFormatSpan))) {\n      endOfFormatSpan--;\n    }\n    const span = {\n      pos: getStartPositionOfLine(line - 1, sourceFile),\n      end: endOfFormatSpan + 1\n    };\n    return formatSpan(span, sourceFile, formatContext, 2);\n  }\n  function formatOnSemicolon(position, sourceFile, formatContext) {\n    const semicolon = findImmediatelyPrecedingTokenOfKind(position, 26, sourceFile);\n    return formatNodeLines(findOutermostNodeWithinListLevel(semicolon), sourceFile, formatContext, 3);\n  }\n  function formatOnOpeningCurly(position, sourceFile, formatContext) {\n    const openingCurly = findImmediatelyPrecedingTokenOfKind(position, 18, sourceFile);\n    if (!openingCurly) {\n      return [];\n    }\n    const curlyBraceRange = openingCurly.parent;\n    const outermostNode = findOutermostNodeWithinListLevel(curlyBraceRange);\n    const textRange = {\n      pos: getLineStartPositionForPosition(outermostNode.getStart(sourceFile), sourceFile),\n      end: position\n    };\n    return formatSpan(textRange, sourceFile, formatContext, 4);\n  }\n  function formatOnClosingCurly(position, sourceFile, formatContext) {\n    const precedingToken = findImmediatelyPrecedingTokenOfKind(position, 19, sourceFile);\n    return formatNodeLines(findOutermostNodeWithinListLevel(precedingToken), sourceFile, formatContext, 5);\n  }\n  function formatDocument(sourceFile, formatContext) {\n    const span = {\n      pos: 0,\n      end: sourceFile.text.length\n    };\n    return formatSpan(span, sourceFile, formatContext, 0);\n  }\n  function formatSelection(start, end, sourceFile, formatContext) {\n    const span = {\n      pos: getLineStartPositionForPosition(start, sourceFile),\n      end\n    };\n    return formatSpan(span, sourceFile, formatContext, 1);\n  }\n  function findImmediatelyPrecedingTokenOfKind(end, expectedTokenKind, sourceFile) {\n    const precedingToken = findPrecedingToken(end, sourceFile);\n    return precedingToken && precedingToken.kind === expectedTokenKind && end === precedingToken.getEnd() ? precedingToken : void 0;\n  }\n  function findOutermostNodeWithinListLevel(node) {\n    let current = node;\n    while (current && current.parent && current.parent.end === node.end && !isListElement(current.parent, current)) {\n      current = current.parent;\n    }\n    return current;\n  }\n  function isListElement(parent2, node) {\n    switch (parent2.kind) {\n      case 260:\n      case 261:\n        return rangeContainsRange(parent2.members, node);\n      case 264:\n        const body = parent2.body;\n        return !!body && body.kind === 265 && rangeContainsRange(body.statements, node);\n      case 308:\n      case 238:\n      case 265:\n        return rangeContainsRange(parent2.statements, node);\n      case 295:\n        return rangeContainsRange(parent2.block.statements, node);\n    }\n    return false;\n  }\n  function findEnclosingNode(range, sourceFile) {\n    return find2(sourceFile);\n    function find2(n) {\n      const candidate = forEachChild(n, (c) => startEndContainsRange(c.getStart(sourceFile), c.end, range) && c);\n      if (candidate) {\n        const result = find2(candidate);\n        if (result) {\n          return result;\n        }\n      }\n      return n;\n    }\n  }\n  function prepareRangeContainsErrorFunction(errors, originalRange) {\n    if (!errors.length) {\n      return rangeHasNoErrors;\n    }\n    const sorted = errors.filter((d) => rangeOverlapsWithStartEnd(originalRange, d.start, d.start + d.length)).sort((e1, e2) => e1.start - e2.start);\n    if (!sorted.length) {\n      return rangeHasNoErrors;\n    }\n    let index = 0;\n    return (r) => {\n      while (true) {\n        if (index >= sorted.length) {\n          return false;\n        }\n        const error = sorted[index];\n        if (r.end <= error.start) {\n          return false;\n        }\n        if (startEndOverlapsWithStartEnd(r.pos, r.end, error.start, error.start + error.length)) {\n          return true;\n        }\n        index++;\n      }\n    };\n    function rangeHasNoErrors() {\n      return false;\n    }\n  }\n  function getScanStartPosition(enclosingNode, originalRange, sourceFile) {\n    const start = enclosingNode.getStart(sourceFile);\n    if (start === originalRange.pos && enclosingNode.end === originalRange.end) {\n      return start;\n    }\n    const precedingToken = findPrecedingToken(originalRange.pos, sourceFile);\n    if (!precedingToken) {\n      return enclosingNode.pos;\n    }\n    if (precedingToken.end >= originalRange.pos) {\n      return enclosingNode.pos;\n    }\n    return precedingToken.end;\n  }\n  function getOwnOrInheritedDelta(n, options, sourceFile) {\n    let previousLine = -1;\n    let child;\n    while (n) {\n      const line = sourceFile.getLineAndCharacterOfPosition(n.getStart(sourceFile)).line;\n      if (previousLine !== -1 && line !== previousLine) {\n        break;\n      }\n      if (SmartIndenter.shouldIndentChildNode(options, n, child, sourceFile)) {\n        return options.indentSize;\n      }\n      previousLine = line;\n      child = n;\n      n = n.parent;\n    }\n    return 0;\n  }\n  function formatNodeGivenIndentation(node, sourceFileLike, languageVariant, initialIndentation, delta, formatContext) {\n    const range = { pos: node.pos, end: node.end };\n    return getFormattingScanner(sourceFileLike.text, languageVariant, range.pos, range.end, (scanner2) => formatSpanWorker(range, node, initialIndentation, delta, scanner2, formatContext, 1, (_) => false, sourceFileLike));\n  }\n  function formatNodeLines(node, sourceFile, formatContext, requestKind) {\n    if (!node) {\n      return [];\n    }\n    const span = {\n      pos: getLineStartPositionForPosition(node.getStart(sourceFile), sourceFile),\n      end: node.end\n    };\n    return formatSpan(span, sourceFile, formatContext, requestKind);\n  }\n  function formatSpan(originalRange, sourceFile, formatContext, requestKind) {\n    const enclosingNode = findEnclosingNode(originalRange, sourceFile);\n    return getFormattingScanner(sourceFile.text, sourceFile.languageVariant, getScanStartPosition(enclosingNode, originalRange, sourceFile), originalRange.end, (scanner2) => formatSpanWorker(originalRange, enclosingNode, SmartIndenter.getIndentationForNode(enclosingNode, originalRange, sourceFile, formatContext.options), getOwnOrInheritedDelta(enclosingNode, formatContext.options, sourceFile), scanner2, formatContext, requestKind, prepareRangeContainsErrorFunction(sourceFile.parseDiagnostics, originalRange), sourceFile));\n  }\n  function formatSpanWorker(originalRange, enclosingNode, initialIndentation, delta, formattingScanner, { options, getRules, host }, requestKind, rangeContainsError, sourceFile) {\n    var _a2;\n    const formattingContext = new FormattingContext(sourceFile, requestKind, options);\n    let previousRangeTriviaEnd;\n    let previousRange;\n    let previousParent;\n    let previousRangeStartLine;\n    let lastIndentedLine;\n    let indentationOnLastIndentedLine = -1;\n    const edits = [];\n    formattingScanner.advance();\n    if (formattingScanner.isOnToken()) {\n      const startLine = sourceFile.getLineAndCharacterOfPosition(enclosingNode.getStart(sourceFile)).line;\n      let undecoratedStartLine = startLine;\n      if (hasDecorators(enclosingNode)) {\n        undecoratedStartLine = sourceFile.getLineAndCharacterOfPosition(getNonDecoratorTokenPosOfNode(enclosingNode, sourceFile)).line;\n      }\n      processNode(enclosingNode, enclosingNode, startLine, undecoratedStartLine, initialIndentation, delta);\n    }\n    if (!formattingScanner.isOnToken()) {\n      const indentation = SmartIndenter.nodeWillIndentChild(options, enclosingNode, void 0, sourceFile, false) ? initialIndentation + options.indentSize : initialIndentation;\n      const leadingTrivia = formattingScanner.getCurrentLeadingTrivia();\n      if (leadingTrivia) {\n        indentTriviaItems(leadingTrivia, indentation, false, (item) => processRange(item, sourceFile.getLineAndCharacterOfPosition(item.pos), enclosingNode, enclosingNode, void 0));\n        if (options.trimTrailingWhitespace !== false) {\n          trimTrailingWhitespacesForRemainingRange(leadingTrivia);\n        }\n      }\n    }\n    if (previousRange && formattingScanner.getStartPos() >= originalRange.end) {\n      const tokenInfo = formattingScanner.isOnEOF() ? formattingScanner.readEOFTokenRange() : formattingScanner.isOnToken() ? formattingScanner.readTokenInfo(enclosingNode).token : void 0;\n      if (tokenInfo && tokenInfo.pos === previousRangeTriviaEnd) {\n        const parent2 = ((_a2 = findPrecedingToken(tokenInfo.end, sourceFile, enclosingNode)) == null ? void 0 : _a2.parent) || previousParent;\n        processPair(tokenInfo, sourceFile.getLineAndCharacterOfPosition(tokenInfo.pos).line, parent2, previousRange, previousRangeStartLine, previousParent, parent2, void 0);\n      }\n    }\n    return edits;\n    function tryComputeIndentationForListItem(startPos, endPos, parentStartLine, range, inheritedIndentation) {\n      if (rangeOverlapsWithStartEnd(range, startPos, endPos) || rangeContainsStartEnd(range, startPos, endPos)) {\n        if (inheritedIndentation !== -1) {\n          return inheritedIndentation;\n        }\n      } else {\n        const startLine = sourceFile.getLineAndCharacterOfPosition(startPos).line;\n        const startLinePosition = getLineStartPositionForPosition(startPos, sourceFile);\n        const column = SmartIndenter.findFirstNonWhitespaceColumn(startLinePosition, startPos, sourceFile, options);\n        if (startLine !== parentStartLine || startPos === column) {\n          const baseIndentSize = SmartIndenter.getBaseIndentation(options);\n          return baseIndentSize > column ? baseIndentSize : column;\n        }\n      }\n      return -1;\n    }\n    function computeIndentation(node, startLine, inheritedIndentation, parent2, parentDynamicIndentation, effectiveParentStartLine) {\n      const delta2 = SmartIndenter.shouldIndentChildNode(options, node) ? options.indentSize : 0;\n      if (effectiveParentStartLine === startLine) {\n        return {\n          indentation: startLine === lastIndentedLine ? indentationOnLastIndentedLine : parentDynamicIndentation.getIndentation(),\n          delta: Math.min(options.indentSize, parentDynamicIndentation.getDelta(node) + delta2)\n        };\n      } else if (inheritedIndentation === -1) {\n        if (node.kind === 20 && startLine === lastIndentedLine) {\n          return { indentation: indentationOnLastIndentedLine, delta: parentDynamicIndentation.getDelta(node) };\n        } else if (SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(parent2, node, startLine, sourceFile) || SmartIndenter.childIsUnindentedBranchOfConditionalExpression(parent2, node, startLine, sourceFile) || SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(parent2, node, startLine, sourceFile)) {\n          return { indentation: parentDynamicIndentation.getIndentation(), delta: delta2 };\n        } else {\n          return { indentation: parentDynamicIndentation.getIndentation() + parentDynamicIndentation.getDelta(node), delta: delta2 };\n        }\n      } else {\n        return { indentation: inheritedIndentation, delta: delta2 };\n      }\n    }\n    function getFirstNonDecoratorTokenOfNode(node) {\n      if (canHaveModifiers(node)) {\n        const modifier = find(node.modifiers, isModifier, findIndex(node.modifiers, isDecorator));\n        if (modifier)\n          return modifier.kind;\n      }\n      switch (node.kind) {\n        case 260:\n          return 84;\n        case 261:\n          return 118;\n        case 259:\n          return 98;\n        case 263:\n          return 263;\n        case 174:\n          return 137;\n        case 175:\n          return 151;\n        case 171:\n          if (node.asteriskToken) {\n            return 41;\n          }\n        case 169:\n        case 166:\n          const name = getNameOfDeclaration(node);\n          if (name) {\n            return name.kind;\n          }\n      }\n    }\n    function getDynamicIndentation(node, nodeStartLine, indentation, delta2) {\n      return {\n        getIndentationForComment: (kind, tokenIndentation, container) => {\n          switch (kind) {\n            case 19:\n            case 23:\n            case 21:\n              return indentation + getDelta(container);\n          }\n          return tokenIndentation !== -1 ? tokenIndentation : indentation;\n        },\n        getIndentationForToken: (line, kind, container, suppressDelta) => !suppressDelta && shouldAddDelta(line, kind, container) ? indentation + getDelta(container) : indentation,\n        getIndentation: () => indentation,\n        getDelta,\n        recomputeIndentation: (lineAdded, parent2) => {\n          if (SmartIndenter.shouldIndentChildNode(options, parent2, node, sourceFile)) {\n            indentation += lineAdded ? options.indentSize : -options.indentSize;\n            delta2 = SmartIndenter.shouldIndentChildNode(options, node) ? options.indentSize : 0;\n          }\n        }\n      };\n      function shouldAddDelta(line, kind, container) {\n        switch (kind) {\n          case 18:\n          case 19:\n          case 21:\n          case 91:\n          case 115:\n          case 59:\n            return false;\n          case 43:\n          case 31:\n            switch (container.kind) {\n              case 283:\n              case 284:\n              case 282:\n                return false;\n            }\n            break;\n          case 22:\n          case 23:\n            if (container.kind !== 197) {\n              return false;\n            }\n            break;\n        }\n        return nodeStartLine !== line && !(hasDecorators(node) && kind === getFirstNonDecoratorTokenOfNode(node));\n      }\n      function getDelta(child) {\n        return SmartIndenter.nodeWillIndentChild(options, node, child, sourceFile, true) ? delta2 : 0;\n      }\n    }\n    function processNode(node, contextNode, nodeStartLine, undecoratedNodeStartLine, indentation, delta2) {\n      if (!rangeOverlapsWithStartEnd(originalRange, node.getStart(sourceFile), node.getEnd())) {\n        return;\n      }\n      const nodeDynamicIndentation = getDynamicIndentation(node, nodeStartLine, indentation, delta2);\n      let childContextNode = contextNode;\n      forEachChild(node, (child) => {\n        processChildNode(child, -1, node, nodeDynamicIndentation, nodeStartLine, undecoratedNodeStartLine, false);\n      }, (nodes) => {\n        processChildNodes(nodes, node, nodeStartLine, nodeDynamicIndentation);\n      });\n      while (formattingScanner.isOnToken() && formattingScanner.getStartPos() < originalRange.end) {\n        const tokenInfo = formattingScanner.readTokenInfo(node);\n        if (tokenInfo.token.end > Math.min(node.end, originalRange.end)) {\n          break;\n        }\n        consumeTokenAndAdvanceScanner(tokenInfo, node, nodeDynamicIndentation, node);\n      }\n      function processChildNode(child, inheritedIndentation, parent2, parentDynamicIndentation, parentStartLine, undecoratedParentStartLine, isListItem, isFirstListItem) {\n        Debug.assert(!nodeIsSynthesized(child));\n        if (nodeIsMissing(child) || isGrammarError(parent2, child)) {\n          return inheritedIndentation;\n        }\n        const childStartPos = child.getStart(sourceFile);\n        const childStartLine = sourceFile.getLineAndCharacterOfPosition(childStartPos).line;\n        let undecoratedChildStartLine = childStartLine;\n        if (hasDecorators(child)) {\n          undecoratedChildStartLine = sourceFile.getLineAndCharacterOfPosition(getNonDecoratorTokenPosOfNode(child, sourceFile)).line;\n        }\n        let childIndentationAmount = -1;\n        if (isListItem && rangeContainsRange(originalRange, parent2)) {\n          childIndentationAmount = tryComputeIndentationForListItem(childStartPos, child.end, parentStartLine, originalRange, inheritedIndentation);\n          if (childIndentationAmount !== -1) {\n            inheritedIndentation = childIndentationAmount;\n          }\n        }\n        if (!rangeOverlapsWithStartEnd(originalRange, child.pos, child.end)) {\n          if (child.end < originalRange.pos) {\n            formattingScanner.skipToEndOf(child);\n          }\n          return inheritedIndentation;\n        }\n        if (child.getFullWidth() === 0) {\n          return inheritedIndentation;\n        }\n        while (formattingScanner.isOnToken() && formattingScanner.getStartPos() < originalRange.end) {\n          const tokenInfo = formattingScanner.readTokenInfo(node);\n          if (tokenInfo.token.end > originalRange.end) {\n            return inheritedIndentation;\n          }\n          if (tokenInfo.token.end > childStartPos) {\n            if (tokenInfo.token.pos > childStartPos) {\n              formattingScanner.skipToStartOf(child);\n            }\n            break;\n          }\n          consumeTokenAndAdvanceScanner(tokenInfo, node, parentDynamicIndentation, node);\n        }\n        if (!formattingScanner.isOnToken() || formattingScanner.getStartPos() >= originalRange.end) {\n          return inheritedIndentation;\n        }\n        if (isToken(child)) {\n          const tokenInfo = formattingScanner.readTokenInfo(child);\n          if (child.kind !== 11) {\n            Debug.assert(tokenInfo.token.end === child.end, \"Token end is child end\");\n            consumeTokenAndAdvanceScanner(tokenInfo, node, parentDynamicIndentation, child);\n            return inheritedIndentation;\n          }\n        }\n        const effectiveParentStartLine = child.kind === 167 ? childStartLine : undecoratedParentStartLine;\n        const childIndentation = computeIndentation(child, childStartLine, childIndentationAmount, node, parentDynamicIndentation, effectiveParentStartLine);\n        processNode(child, childContextNode, childStartLine, undecoratedChildStartLine, childIndentation.indentation, childIndentation.delta);\n        childContextNode = node;\n        if (isFirstListItem && parent2.kind === 206 && inheritedIndentation === -1) {\n          inheritedIndentation = childIndentation.indentation;\n        }\n        return inheritedIndentation;\n      }\n      function processChildNodes(nodes, parent2, parentStartLine, parentDynamicIndentation) {\n        Debug.assert(isNodeArray(nodes));\n        Debug.assert(!nodeIsSynthesized(nodes));\n        const listStartToken = getOpenTokenForList(parent2, nodes);\n        let listDynamicIndentation = parentDynamicIndentation;\n        let startLine = parentStartLine;\n        if (!rangeOverlapsWithStartEnd(originalRange, nodes.pos, nodes.end)) {\n          if (nodes.end < originalRange.pos) {\n            formattingScanner.skipToEndOf(nodes);\n          }\n          return;\n        }\n        if (listStartToken !== 0) {\n          while (formattingScanner.isOnToken() && formattingScanner.getStartPos() < originalRange.end) {\n            const tokenInfo = formattingScanner.readTokenInfo(parent2);\n            if (tokenInfo.token.end > nodes.pos) {\n              break;\n            } else if (tokenInfo.token.kind === listStartToken) {\n              startLine = sourceFile.getLineAndCharacterOfPosition(tokenInfo.token.pos).line;\n              consumeTokenAndAdvanceScanner(tokenInfo, parent2, parentDynamicIndentation, parent2);\n              let indentationOnListStartToken;\n              if (indentationOnLastIndentedLine !== -1) {\n                indentationOnListStartToken = indentationOnLastIndentedLine;\n              } else {\n                const startLinePosition = getLineStartPositionForPosition(tokenInfo.token.pos, sourceFile);\n                indentationOnListStartToken = SmartIndenter.findFirstNonWhitespaceColumn(startLinePosition, tokenInfo.token.pos, sourceFile, options);\n              }\n              listDynamicIndentation = getDynamicIndentation(parent2, parentStartLine, indentationOnListStartToken, options.indentSize);\n            } else {\n              consumeTokenAndAdvanceScanner(tokenInfo, parent2, parentDynamicIndentation, parent2);\n            }\n          }\n        }\n        let inheritedIndentation = -1;\n        for (let i = 0; i < nodes.length; i++) {\n          const child = nodes[i];\n          inheritedIndentation = processChildNode(child, inheritedIndentation, node, listDynamicIndentation, startLine, startLine, true, i === 0);\n        }\n        const listEndToken = getCloseTokenForOpenToken(listStartToken);\n        if (listEndToken !== 0 && formattingScanner.isOnToken() && formattingScanner.getStartPos() < originalRange.end) {\n          let tokenInfo = formattingScanner.readTokenInfo(parent2);\n          if (tokenInfo.token.kind === 27) {\n            consumeTokenAndAdvanceScanner(tokenInfo, parent2, listDynamicIndentation, parent2);\n            tokenInfo = formattingScanner.isOnToken() ? formattingScanner.readTokenInfo(parent2) : void 0;\n          }\n          if (tokenInfo && tokenInfo.token.kind === listEndToken && rangeContainsRange(parent2, tokenInfo.token)) {\n            consumeTokenAndAdvanceScanner(tokenInfo, parent2, listDynamicIndentation, parent2, true);\n          }\n        }\n      }\n      function consumeTokenAndAdvanceScanner(currentTokenInfo, parent2, dynamicIndentation, container, isListEndToken) {\n        Debug.assert(rangeContainsRange(parent2, currentTokenInfo.token));\n        const lastTriviaWasNewLine = formattingScanner.lastTrailingTriviaWasNewLine();\n        let indentToken = false;\n        if (currentTokenInfo.leadingTrivia) {\n          processTrivia(currentTokenInfo.leadingTrivia, parent2, childContextNode, dynamicIndentation);\n        }\n        let lineAction = 0;\n        const isTokenInRange = rangeContainsRange(originalRange, currentTokenInfo.token);\n        const tokenStart = sourceFile.getLineAndCharacterOfPosition(currentTokenInfo.token.pos);\n        if (isTokenInRange) {\n          const rangeHasError = rangeContainsError(currentTokenInfo.token);\n          const savePreviousRange = previousRange;\n          lineAction = processRange(currentTokenInfo.token, tokenStart, parent2, childContextNode, dynamicIndentation);\n          if (!rangeHasError) {\n            if (lineAction === 0) {\n              const prevEndLine = savePreviousRange && sourceFile.getLineAndCharacterOfPosition(savePreviousRange.end).line;\n              indentToken = lastTriviaWasNewLine && tokenStart.line !== prevEndLine;\n            } else {\n              indentToken = lineAction === 1;\n            }\n          }\n        }\n        if (currentTokenInfo.trailingTrivia) {\n          previousRangeTriviaEnd = last(currentTokenInfo.trailingTrivia).end;\n          processTrivia(currentTokenInfo.trailingTrivia, parent2, childContextNode, dynamicIndentation);\n        }\n        if (indentToken) {\n          const tokenIndentation = isTokenInRange && !rangeContainsError(currentTokenInfo.token) ? dynamicIndentation.getIndentationForToken(tokenStart.line, currentTokenInfo.token.kind, container, !!isListEndToken) : -1;\n          let indentNextTokenOrTrivia = true;\n          if (currentTokenInfo.leadingTrivia) {\n            const commentIndentation = dynamicIndentation.getIndentationForComment(currentTokenInfo.token.kind, tokenIndentation, container);\n            indentNextTokenOrTrivia = indentTriviaItems(currentTokenInfo.leadingTrivia, commentIndentation, indentNextTokenOrTrivia, (item) => insertIndentation(item.pos, commentIndentation, false));\n          }\n          if (tokenIndentation !== -1 && indentNextTokenOrTrivia) {\n            insertIndentation(currentTokenInfo.token.pos, tokenIndentation, lineAction === 1);\n            lastIndentedLine = tokenStart.line;\n            indentationOnLastIndentedLine = tokenIndentation;\n          }\n        }\n        formattingScanner.advance();\n        childContextNode = parent2;\n      }\n    }\n    function indentTriviaItems(trivia, commentIndentation, indentNextTokenOrTrivia, indentSingleLine) {\n      for (const triviaItem of trivia) {\n        const triviaInRange = rangeContainsRange(originalRange, triviaItem);\n        switch (triviaItem.kind) {\n          case 3:\n            if (triviaInRange) {\n              indentMultilineComment(triviaItem, commentIndentation, !indentNextTokenOrTrivia);\n            }\n            indentNextTokenOrTrivia = false;\n            break;\n          case 2:\n            if (indentNextTokenOrTrivia && triviaInRange) {\n              indentSingleLine(triviaItem);\n            }\n            indentNextTokenOrTrivia = false;\n            break;\n          case 4:\n            indentNextTokenOrTrivia = true;\n            break;\n        }\n      }\n      return indentNextTokenOrTrivia;\n    }\n    function processTrivia(trivia, parent2, contextNode, dynamicIndentation) {\n      for (const triviaItem of trivia) {\n        if (isComment(triviaItem.kind) && rangeContainsRange(originalRange, triviaItem)) {\n          const triviaItemStart = sourceFile.getLineAndCharacterOfPosition(triviaItem.pos);\n          processRange(triviaItem, triviaItemStart, parent2, contextNode, dynamicIndentation);\n        }\n      }\n    }\n    function processRange(range, rangeStart, parent2, contextNode, dynamicIndentation) {\n      const rangeHasError = rangeContainsError(range);\n      let lineAction = 0;\n      if (!rangeHasError) {\n        if (!previousRange) {\n          const originalStart = sourceFile.getLineAndCharacterOfPosition(originalRange.pos);\n          trimTrailingWhitespacesForLines(originalStart.line, rangeStart.line);\n        } else {\n          lineAction = processPair(range, rangeStart.line, parent2, previousRange, previousRangeStartLine, previousParent, contextNode, dynamicIndentation);\n        }\n      }\n      previousRange = range;\n      previousRangeTriviaEnd = range.end;\n      previousParent = parent2;\n      previousRangeStartLine = rangeStart.line;\n      return lineAction;\n    }\n    function processPair(currentItem, currentStartLine, currentParent, previousItem, previousStartLine, previousParent2, contextNode, dynamicIndentation) {\n      formattingContext.updateContext(previousItem, previousParent2, currentItem, currentParent, contextNode);\n      const rules = getRules(formattingContext);\n      let trimTrailingWhitespaces = formattingContext.options.trimTrailingWhitespace !== false;\n      let lineAction = 0;\n      if (rules) {\n        forEachRight(rules, (rule2) => {\n          lineAction = applyRuleEdits(rule2, previousItem, previousStartLine, currentItem, currentStartLine);\n          if (dynamicIndentation) {\n            switch (lineAction) {\n              case 2:\n                if (currentParent.getStart(sourceFile) === currentItem.pos) {\n                  dynamicIndentation.recomputeIndentation(false, contextNode);\n                }\n                break;\n              case 1:\n                if (currentParent.getStart(sourceFile) === currentItem.pos) {\n                  dynamicIndentation.recomputeIndentation(true, contextNode);\n                }\n                break;\n              default:\n                Debug.assert(lineAction === 0);\n            }\n          }\n          trimTrailingWhitespaces = trimTrailingWhitespaces && !(rule2.action & 16) && rule2.flags !== 1;\n        });\n      } else {\n        trimTrailingWhitespaces = trimTrailingWhitespaces && currentItem.kind !== 1;\n      }\n      if (currentStartLine !== previousStartLine && trimTrailingWhitespaces) {\n        trimTrailingWhitespacesForLines(previousStartLine, currentStartLine, previousItem);\n      }\n      return lineAction;\n    }\n    function insertIndentation(pos, indentation, lineAdded) {\n      const indentationString = getIndentationString(indentation, options);\n      if (lineAdded) {\n        recordReplace(pos, 0, indentationString);\n      } else {\n        const tokenStart = sourceFile.getLineAndCharacterOfPosition(pos);\n        const startLinePosition = getStartPositionOfLine(tokenStart.line, sourceFile);\n        if (indentation !== characterToColumn(startLinePosition, tokenStart.character) || indentationIsDifferent(indentationString, startLinePosition)) {\n          recordReplace(startLinePosition, tokenStart.character, indentationString);\n        }\n      }\n    }\n    function characterToColumn(startLinePosition, characterInLine) {\n      let column = 0;\n      for (let i = 0; i < characterInLine; i++) {\n        if (sourceFile.text.charCodeAt(startLinePosition + i) === 9) {\n          column += options.tabSize - column % options.tabSize;\n        } else {\n          column++;\n        }\n      }\n      return column;\n    }\n    function indentationIsDifferent(indentationString, startLinePosition) {\n      return indentationString !== sourceFile.text.substr(startLinePosition, indentationString.length);\n    }\n    function indentMultilineComment(commentRange, indentation, firstLineIsIndented, indentFinalLine = true) {\n      let startLine = sourceFile.getLineAndCharacterOfPosition(commentRange.pos).line;\n      const endLine = sourceFile.getLineAndCharacterOfPosition(commentRange.end).line;\n      if (startLine === endLine) {\n        if (!firstLineIsIndented) {\n          insertIndentation(commentRange.pos, indentation, false);\n        }\n        return;\n      }\n      const parts = [];\n      let startPos = commentRange.pos;\n      for (let line = startLine; line < endLine; line++) {\n        const endOfLine = getEndLinePosition(line, sourceFile);\n        parts.push({ pos: startPos, end: endOfLine });\n        startPos = getStartPositionOfLine(line + 1, sourceFile);\n      }\n      if (indentFinalLine) {\n        parts.push({ pos: startPos, end: commentRange.end });\n      }\n      if (parts.length === 0)\n        return;\n      const startLinePos = getStartPositionOfLine(startLine, sourceFile);\n      const nonWhitespaceColumnInFirstPart = SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(startLinePos, parts[0].pos, sourceFile, options);\n      let startIndex = 0;\n      if (firstLineIsIndented) {\n        startIndex = 1;\n        startLine++;\n      }\n      const delta2 = indentation - nonWhitespaceColumnInFirstPart.column;\n      for (let i = startIndex; i < parts.length; i++, startLine++) {\n        const startLinePos2 = getStartPositionOfLine(startLine, sourceFile);\n        const nonWhitespaceCharacterAndColumn = i === 0 ? nonWhitespaceColumnInFirstPart : SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(parts[i].pos, parts[i].end, sourceFile, options);\n        const newIndentation = nonWhitespaceCharacterAndColumn.column + delta2;\n        if (newIndentation > 0) {\n          const indentationString = getIndentationString(newIndentation, options);\n          recordReplace(startLinePos2, nonWhitespaceCharacterAndColumn.character, indentationString);\n        } else {\n          recordDelete(startLinePos2, nonWhitespaceCharacterAndColumn.character);\n        }\n      }\n    }\n    function trimTrailingWhitespacesForLines(line1, line2, range) {\n      for (let line = line1; line < line2; line++) {\n        const lineStartPosition = getStartPositionOfLine(line, sourceFile);\n        const lineEndPosition = getEndLinePosition(line, sourceFile);\n        if (range && (isComment(range.kind) || isStringOrRegularExpressionOrTemplateLiteral(range.kind)) && range.pos <= lineEndPosition && range.end > lineEndPosition) {\n          continue;\n        }\n        const whitespaceStart = getTrailingWhitespaceStartPosition(lineStartPosition, lineEndPosition);\n        if (whitespaceStart !== -1) {\n          Debug.assert(whitespaceStart === lineStartPosition || !isWhiteSpaceSingleLine(sourceFile.text.charCodeAt(whitespaceStart - 1)));\n          recordDelete(whitespaceStart, lineEndPosition + 1 - whitespaceStart);\n        }\n      }\n    }\n    function getTrailingWhitespaceStartPosition(start, end) {\n      let pos = end;\n      while (pos >= start && isWhiteSpaceSingleLine(sourceFile.text.charCodeAt(pos))) {\n        pos--;\n      }\n      if (pos !== end) {\n        return pos + 1;\n      }\n      return -1;\n    }\n    function trimTrailingWhitespacesForRemainingRange(trivias) {\n      let startPos = previousRange ? previousRange.end : originalRange.pos;\n      for (const trivia of trivias) {\n        if (isComment(trivia.kind)) {\n          if (startPos < trivia.pos) {\n            trimTrailingWitespacesForPositions(startPos, trivia.pos - 1, previousRange);\n          }\n          startPos = trivia.end + 1;\n        }\n      }\n      if (startPos < originalRange.end) {\n        trimTrailingWitespacesForPositions(startPos, originalRange.end, previousRange);\n      }\n    }\n    function trimTrailingWitespacesForPositions(startPos, endPos, previousRange2) {\n      const startLine = sourceFile.getLineAndCharacterOfPosition(startPos).line;\n      const endLine = sourceFile.getLineAndCharacterOfPosition(endPos).line;\n      trimTrailingWhitespacesForLines(startLine, endLine + 1, previousRange2);\n    }\n    function recordDelete(start, len) {\n      if (len) {\n        edits.push(createTextChangeFromStartLength(start, len, \"\"));\n      }\n    }\n    function recordReplace(start, len, newText) {\n      if (len || newText) {\n        edits.push(createTextChangeFromStartLength(start, len, newText));\n      }\n    }\n    function recordInsert(start, text) {\n      if (text) {\n        edits.push(createTextChangeFromStartLength(start, 0, text));\n      }\n    }\n    function applyRuleEdits(rule2, previousRange2, previousStartLine, currentRange, currentStartLine) {\n      const onLaterLine = currentStartLine !== previousStartLine;\n      switch (rule2.action) {\n        case 1:\n          return 0;\n        case 16:\n          if (previousRange2.end !== currentRange.pos) {\n            recordDelete(previousRange2.end, currentRange.pos - previousRange2.end);\n            return onLaterLine ? 2 : 0;\n          }\n          break;\n        case 32:\n          recordDelete(previousRange2.pos, previousRange2.end - previousRange2.pos);\n          break;\n        case 8:\n          if (rule2.flags !== 1 && previousStartLine !== currentStartLine) {\n            return 0;\n          }\n          const lineDelta = currentStartLine - previousStartLine;\n          if (lineDelta !== 1) {\n            recordReplace(previousRange2.end, currentRange.pos - previousRange2.end, getNewLineOrDefaultFromHost(host, options));\n            return onLaterLine ? 0 : 1;\n          }\n          break;\n        case 4:\n          if (rule2.flags !== 1 && previousStartLine !== currentStartLine) {\n            return 0;\n          }\n          const posDelta = currentRange.pos - previousRange2.end;\n          if (posDelta !== 1 || sourceFile.text.charCodeAt(previousRange2.end) !== 32) {\n            recordReplace(previousRange2.end, currentRange.pos - previousRange2.end, \" \");\n            return onLaterLine ? 2 : 0;\n          }\n          break;\n        case 64:\n          recordInsert(previousRange2.end, \";\");\n      }\n      return 0;\n    }\n  }\n  function getRangeOfEnclosingComment(sourceFile, position, precedingToken, tokenAtPosition = getTokenAtPosition(sourceFile, position)) {\n    const jsdoc = findAncestor(tokenAtPosition, isJSDoc);\n    if (jsdoc)\n      tokenAtPosition = jsdoc.parent;\n    const tokenStart = tokenAtPosition.getStart(sourceFile);\n    if (tokenStart <= position && position < tokenAtPosition.getEnd()) {\n      return void 0;\n    }\n    precedingToken = precedingToken === null ? void 0 : precedingToken === void 0 ? findPrecedingToken(position, sourceFile) : precedingToken;\n    const trailingRangesOfPreviousToken = precedingToken && getTrailingCommentRanges(sourceFile.text, precedingToken.end);\n    const leadingCommentRangesOfNextToken = getLeadingCommentRangesOfNode(tokenAtPosition, sourceFile);\n    const commentRanges = concatenate(trailingRangesOfPreviousToken, leadingCommentRangesOfNextToken);\n    return commentRanges && find(commentRanges, (range) => rangeContainsPositionExclusive(range, position) || position === range.end && (range.kind === 2 || position === sourceFile.getFullWidth()));\n  }\n  function getOpenTokenForList(node, list) {\n    switch (node.kind) {\n      case 173:\n      case 259:\n      case 215:\n      case 171:\n      case 170:\n      case 216:\n      case 176:\n      case 177:\n      case 181:\n      case 182:\n      case 174:\n      case 175:\n        if (node.typeParameters === list) {\n          return 29;\n        } else if (node.parameters === list) {\n          return 20;\n        }\n        break;\n      case 210:\n      case 211:\n        if (node.typeArguments === list) {\n          return 29;\n        } else if (node.arguments === list) {\n          return 20;\n        }\n        break;\n      case 260:\n      case 228:\n      case 261:\n      case 262:\n        if (node.typeParameters === list) {\n          return 29;\n        }\n        break;\n      case 180:\n      case 212:\n      case 183:\n      case 230:\n      case 202:\n        if (node.typeArguments === list) {\n          return 29;\n        }\n        break;\n      case 184:\n        return 18;\n    }\n    return 0;\n  }\n  function getCloseTokenForOpenToken(kind) {\n    switch (kind) {\n      case 20:\n        return 21;\n      case 29:\n        return 31;\n      case 18:\n        return 19;\n    }\n    return 0;\n  }\n  function getIndentationString(indentation, options) {\n    const resetInternedStrings = !internedSizes || (internedSizes.tabSize !== options.tabSize || internedSizes.indentSize !== options.indentSize);\n    if (resetInternedStrings) {\n      internedSizes = { tabSize: options.tabSize, indentSize: options.indentSize };\n      internedTabsIndentation = internedSpacesIndentation = void 0;\n    }\n    if (!options.convertTabsToSpaces) {\n      const tabs = Math.floor(indentation / options.tabSize);\n      const spaces = indentation - tabs * options.tabSize;\n      let tabString;\n      if (!internedTabsIndentation) {\n        internedTabsIndentation = [];\n      }\n      if (internedTabsIndentation[tabs] === void 0) {\n        internedTabsIndentation[tabs] = tabString = repeatString(\"\t\", tabs);\n      } else {\n        tabString = internedTabsIndentation[tabs];\n      }\n      return spaces ? tabString + repeatString(\" \", spaces) : tabString;\n    } else {\n      let spacesString;\n      const quotient = Math.floor(indentation / options.indentSize);\n      const remainder = indentation % options.indentSize;\n      if (!internedSpacesIndentation) {\n        internedSpacesIndentation = [];\n      }\n      if (internedSpacesIndentation[quotient] === void 0) {\n        spacesString = repeatString(\" \", options.indentSize * quotient);\n        internedSpacesIndentation[quotient] = spacesString;\n      } else {\n        spacesString = internedSpacesIndentation[quotient];\n      }\n      return remainder ? spacesString + repeatString(\" \", remainder) : spacesString;\n    }\n  }\n  var internedSizes, internedTabsIndentation, internedSpacesIndentation;\n  var init_formatting = __esm({\n    \"src/services/formatting/formatting.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_formatting();\n    }\n  });\n  var SmartIndenter;\n  var init_smartIndenter = __esm({\n    \"src/services/formatting/smartIndenter.ts\"() {\n      \"use strict\";\n      init_ts4();\n      init_ts_formatting();\n      ((SmartIndenter2) => {\n        let Value;\n        ((Value2) => {\n          Value2[Value2[\"Unknown\"] = -1] = \"Unknown\";\n        })(Value || (Value = {}));\n        function getIndentation(position, sourceFile, options, assumeNewLineBeforeCloseBrace = false) {\n          if (position > sourceFile.text.length) {\n            return getBaseIndentation(options);\n          }\n          if (options.indentStyle === 0) {\n            return 0;\n          }\n          const precedingToken = findPrecedingToken(position, sourceFile, void 0, true);\n          const enclosingCommentRange = getRangeOfEnclosingComment(sourceFile, position, precedingToken || null);\n          if (enclosingCommentRange && enclosingCommentRange.kind === 3) {\n            return getCommentIndent(sourceFile, position, options, enclosingCommentRange);\n          }\n          if (!precedingToken) {\n            return getBaseIndentation(options);\n          }\n          const precedingTokenIsLiteral = isStringOrRegularExpressionOrTemplateLiteral(precedingToken.kind);\n          if (precedingTokenIsLiteral && precedingToken.getStart(sourceFile) <= position && position < precedingToken.end) {\n            return 0;\n          }\n          const lineAtPosition = sourceFile.getLineAndCharacterOfPosition(position).line;\n          const currentToken = getTokenAtPosition(sourceFile, position);\n          const isObjectLiteral = currentToken.kind === 18 && currentToken.parent.kind === 207;\n          if (options.indentStyle === 1 || isObjectLiteral) {\n            return getBlockIndent(sourceFile, position, options);\n          }\n          if (precedingToken.kind === 27 && precedingToken.parent.kind !== 223) {\n            const actualIndentation = getActualIndentationForListItemBeforeComma(precedingToken, sourceFile, options);\n            if (actualIndentation !== -1) {\n              return actualIndentation;\n            }\n          }\n          const containerList = getListByPosition(position, precedingToken.parent, sourceFile);\n          if (containerList && !rangeContainsRange(containerList, precedingToken)) {\n            const useTheSameBaseIndentation = [215, 216].indexOf(currentToken.parent.kind) !== -1;\n            const indentSize = useTheSameBaseIndentation ? 0 : options.indentSize;\n            return getActualIndentationForListStartLine(containerList, sourceFile, options) + indentSize;\n          }\n          return getSmartIndent(sourceFile, position, precedingToken, lineAtPosition, assumeNewLineBeforeCloseBrace, options);\n        }\n        SmartIndenter2.getIndentation = getIndentation;\n        function getCommentIndent(sourceFile, position, options, enclosingCommentRange) {\n          const previousLine = getLineAndCharacterOfPosition(sourceFile, position).line - 1;\n          const commentStartLine = getLineAndCharacterOfPosition(sourceFile, enclosingCommentRange.pos).line;\n          Debug.assert(commentStartLine >= 0);\n          if (previousLine <= commentStartLine) {\n            return findFirstNonWhitespaceColumn(getStartPositionOfLine(commentStartLine, sourceFile), position, sourceFile, options);\n          }\n          const startPositionOfLine = getStartPositionOfLine(previousLine, sourceFile);\n          const { column, character } = findFirstNonWhitespaceCharacterAndColumn(startPositionOfLine, position, sourceFile, options);\n          if (column === 0) {\n            return column;\n          }\n          const firstNonWhitespaceCharacterCode = sourceFile.text.charCodeAt(startPositionOfLine + character);\n          return firstNonWhitespaceCharacterCode === 42 ? column - 1 : column;\n        }\n        function getBlockIndent(sourceFile, position, options) {\n          let current = position;\n          while (current > 0) {\n            const char = sourceFile.text.charCodeAt(current);\n            if (!isWhiteSpaceLike(char)) {\n              break;\n            }\n            current--;\n          }\n          const lineStart = getLineStartPositionForPosition(current, sourceFile);\n          return findFirstNonWhitespaceColumn(lineStart, current, sourceFile, options);\n        }\n        function getSmartIndent(sourceFile, position, precedingToken, lineAtPosition, assumeNewLineBeforeCloseBrace, options) {\n          let previous;\n          let current = precedingToken;\n          while (current) {\n            if (positionBelongsToNode(current, position, sourceFile) && shouldIndentChildNode(options, current, previous, sourceFile, true)) {\n              const currentStart = getStartLineAndCharacterForNode(current, sourceFile);\n              const nextTokenKind = nextTokenIsCurlyBraceOnSameLineAsCursor(precedingToken, current, lineAtPosition, sourceFile);\n              const indentationDelta = nextTokenKind !== 0 ? assumeNewLineBeforeCloseBrace && nextTokenKind === 2 ? options.indentSize : 0 : lineAtPosition !== currentStart.line ? options.indentSize : 0;\n              return getIndentationForNodeWorker(current, currentStart, void 0, indentationDelta, sourceFile, true, options);\n            }\n            const actualIndentation = getActualIndentationForListItem(current, sourceFile, options, true);\n            if (actualIndentation !== -1) {\n              return actualIndentation;\n            }\n            previous = current;\n            current = current.parent;\n          }\n          return getBaseIndentation(options);\n        }\n        function getIndentationForNode(n, ignoreActualIndentationRange, sourceFile, options) {\n          const start = sourceFile.getLineAndCharacterOfPosition(n.getStart(sourceFile));\n          return getIndentationForNodeWorker(n, start, ignoreActualIndentationRange, 0, sourceFile, false, options);\n        }\n        SmartIndenter2.getIndentationForNode = getIndentationForNode;\n        function getBaseIndentation(options) {\n          return options.baseIndentSize || 0;\n        }\n        SmartIndenter2.getBaseIndentation = getBaseIndentation;\n        function getIndentationForNodeWorker(current, currentStart, ignoreActualIndentationRange, indentationDelta, sourceFile, isNextChild, options) {\n          var _a2;\n          let parent2 = current.parent;\n          while (parent2) {\n            let useActualIndentation = true;\n            if (ignoreActualIndentationRange) {\n              const start = current.getStart(sourceFile);\n              useActualIndentation = start < ignoreActualIndentationRange.pos || start > ignoreActualIndentationRange.end;\n            }\n            const containingListOrParentStart = getContainingListOrParentStart(parent2, current, sourceFile);\n            const parentAndChildShareLine = containingListOrParentStart.line === currentStart.line || childStartsOnTheSameLineWithElseInIfStatement(parent2, current, currentStart.line, sourceFile);\n            if (useActualIndentation) {\n              const firstListChild = (_a2 = getContainingList(current, sourceFile)) == null ? void 0 : _a2[0];\n              const listIndentsChild = !!firstListChild && getStartLineAndCharacterForNode(firstListChild, sourceFile).line > containingListOrParentStart.line;\n              let actualIndentation = getActualIndentationForListItem(current, sourceFile, options, listIndentsChild);\n              if (actualIndentation !== -1) {\n                return actualIndentation + indentationDelta;\n              }\n              actualIndentation = getActualIndentationForNode(current, parent2, currentStart, parentAndChildShareLine, sourceFile, options);\n              if (actualIndentation !== -1) {\n                return actualIndentation + indentationDelta;\n              }\n            }\n            if (shouldIndentChildNode(options, parent2, current, sourceFile, isNextChild) && !parentAndChildShareLine) {\n              indentationDelta += options.indentSize;\n            }\n            const useTrueStart = isArgumentAndStartLineOverlapsExpressionBeingCalled(parent2, current, currentStart.line, sourceFile);\n            current = parent2;\n            parent2 = current.parent;\n            currentStart = useTrueStart ? sourceFile.getLineAndCharacterOfPosition(current.getStart(sourceFile)) : containingListOrParentStart;\n          }\n          return indentationDelta + getBaseIndentation(options);\n        }\n        function getContainingListOrParentStart(parent2, child, sourceFile) {\n          const containingList = getContainingList(child, sourceFile);\n          const startPos = containingList ? containingList.pos : parent2.getStart(sourceFile);\n          return sourceFile.getLineAndCharacterOfPosition(startPos);\n        }\n        function getActualIndentationForListItemBeforeComma(commaToken, sourceFile, options) {\n          const commaItemInfo = findListItemInfo(commaToken);\n          if (commaItemInfo && commaItemInfo.listItemIndex > 0) {\n            return deriveActualIndentationFromList(commaItemInfo.list.getChildren(), commaItemInfo.listItemIndex - 1, sourceFile, options);\n          } else {\n            return -1;\n          }\n        }\n        function getActualIndentationForNode(current, parent2, currentLineAndChar, parentAndChildShareLine, sourceFile, options) {\n          const useActualIndentation = (isDeclaration(current) || isStatementButNotDeclaration(current)) && (parent2.kind === 308 || !parentAndChildShareLine);\n          if (!useActualIndentation) {\n            return -1;\n          }\n          return findColumnForFirstNonWhitespaceCharacterInLine(currentLineAndChar, sourceFile, options);\n        }\n        let NextTokenKind;\n        ((NextTokenKind2) => {\n          NextTokenKind2[NextTokenKind2[\"Unknown\"] = 0] = \"Unknown\";\n          NextTokenKind2[NextTokenKind2[\"OpenBrace\"] = 1] = \"OpenBrace\";\n          NextTokenKind2[NextTokenKind2[\"CloseBrace\"] = 2] = \"CloseBrace\";\n        })(NextTokenKind || (NextTokenKind = {}));\n        function nextTokenIsCurlyBraceOnSameLineAsCursor(precedingToken, current, lineAtPosition, sourceFile) {\n          const nextToken = findNextToken(precedingToken, current, sourceFile);\n          if (!nextToken) {\n            return 0;\n          }\n          if (nextToken.kind === 18) {\n            return 1;\n          } else if (nextToken.kind === 19) {\n            const nextTokenStartLine = getStartLineAndCharacterForNode(nextToken, sourceFile).line;\n            return lineAtPosition === nextTokenStartLine ? 2 : 0;\n          }\n          return 0;\n        }\n        function getStartLineAndCharacterForNode(n, sourceFile) {\n          return sourceFile.getLineAndCharacterOfPosition(n.getStart(sourceFile));\n        }\n        function isArgumentAndStartLineOverlapsExpressionBeingCalled(parent2, child, childStartLine, sourceFile) {\n          if (!(isCallExpression(parent2) && contains(parent2.arguments, child))) {\n            return false;\n          }\n          const expressionOfCallExpressionEnd = parent2.expression.getEnd();\n          const expressionOfCallExpressionEndLine = getLineAndCharacterOfPosition(sourceFile, expressionOfCallExpressionEnd).line;\n          return expressionOfCallExpressionEndLine === childStartLine;\n        }\n        SmartIndenter2.isArgumentAndStartLineOverlapsExpressionBeingCalled = isArgumentAndStartLineOverlapsExpressionBeingCalled;\n        function childStartsOnTheSameLineWithElseInIfStatement(parent2, child, childStartLine, sourceFile) {\n          if (parent2.kind === 242 && parent2.elseStatement === child) {\n            const elseKeyword = findChildOfKind(parent2, 91, sourceFile);\n            Debug.assert(elseKeyword !== void 0);\n            const elseKeywordStartLine = getStartLineAndCharacterForNode(elseKeyword, sourceFile).line;\n            return elseKeywordStartLine === childStartLine;\n          }\n          return false;\n        }\n        SmartIndenter2.childStartsOnTheSameLineWithElseInIfStatement = childStartsOnTheSameLineWithElseInIfStatement;\n        function childIsUnindentedBranchOfConditionalExpression(parent2, child, childStartLine, sourceFile) {\n          if (isConditionalExpression(parent2) && (child === parent2.whenTrue || child === parent2.whenFalse)) {\n            const conditionEndLine = getLineAndCharacterOfPosition(sourceFile, parent2.condition.end).line;\n            if (child === parent2.whenTrue) {\n              return childStartLine === conditionEndLine;\n            } else {\n              const trueStartLine = getStartLineAndCharacterForNode(parent2.whenTrue, sourceFile).line;\n              const trueEndLine = getLineAndCharacterOfPosition(sourceFile, parent2.whenTrue.end).line;\n              return conditionEndLine === trueStartLine && trueEndLine === childStartLine;\n            }\n          }\n          return false;\n        }\n        SmartIndenter2.childIsUnindentedBranchOfConditionalExpression = childIsUnindentedBranchOfConditionalExpression;\n        function argumentStartsOnSameLineAsPreviousArgument(parent2, child, childStartLine, sourceFile) {\n          if (isCallOrNewExpression(parent2)) {\n            if (!parent2.arguments)\n              return false;\n            const currentNode = find(parent2.arguments, (arg) => arg.pos === child.pos);\n            if (!currentNode)\n              return false;\n            const currentIndex = parent2.arguments.indexOf(currentNode);\n            if (currentIndex === 0)\n              return false;\n            const previousNode = parent2.arguments[currentIndex - 1];\n            const lineOfPreviousNode = getLineAndCharacterOfPosition(sourceFile, previousNode.getEnd()).line;\n            if (childStartLine === lineOfPreviousNode) {\n              return true;\n            }\n          }\n          return false;\n        }\n        SmartIndenter2.argumentStartsOnSameLineAsPreviousArgument = argumentStartsOnSameLineAsPreviousArgument;\n        function getContainingList(node, sourceFile) {\n          return node.parent && getListByRange(node.getStart(sourceFile), node.getEnd(), node.parent, sourceFile);\n        }\n        SmartIndenter2.getContainingList = getContainingList;\n        function getListByPosition(pos, node, sourceFile) {\n          return node && getListByRange(pos, pos, node, sourceFile);\n        }\n        function getListByRange(start, end, node, sourceFile) {\n          switch (node.kind) {\n            case 180:\n              return getList(node.typeArguments);\n            case 207:\n              return getList(node.properties);\n            case 206:\n              return getList(node.elements);\n            case 184:\n              return getList(node.members);\n            case 259:\n            case 215:\n            case 216:\n            case 171:\n            case 170:\n            case 176:\n            case 173:\n            case 182:\n            case 177:\n              return getList(node.typeParameters) || getList(node.parameters);\n            case 174:\n              return getList(node.parameters);\n            case 260:\n            case 228:\n            case 261:\n            case 262:\n            case 348:\n              return getList(node.typeParameters);\n            case 211:\n            case 210:\n              return getList(node.typeArguments) || getList(node.arguments);\n            case 258:\n              return getList(node.declarations);\n            case 272:\n            case 276:\n              return getList(node.elements);\n            case 203:\n            case 204:\n              return getList(node.elements);\n          }\n          function getList(list) {\n            return list && rangeContainsStartEnd(getVisualListRange(node, list, sourceFile), start, end) ? list : void 0;\n          }\n        }\n        function getVisualListRange(node, list, sourceFile) {\n          const children = node.getChildren(sourceFile);\n          for (let i = 1; i < children.length - 1; i++) {\n            if (children[i].pos === list.pos && children[i].end === list.end) {\n              return { pos: children[i - 1].end, end: children[i + 1].getStart(sourceFile) };\n            }\n          }\n          return list;\n        }\n        function getActualIndentationForListStartLine(list, sourceFile, options) {\n          if (!list) {\n            return -1;\n          }\n          return findColumnForFirstNonWhitespaceCharacterInLine(sourceFile.getLineAndCharacterOfPosition(list.pos), sourceFile, options);\n        }\n        function getActualIndentationForListItem(node, sourceFile, options, listIndentsChild) {\n          if (node.parent && node.parent.kind === 258) {\n            return -1;\n          }\n          const containingList = getContainingList(node, sourceFile);\n          if (containingList) {\n            const index = containingList.indexOf(node);\n            if (index !== -1) {\n              const result = deriveActualIndentationFromList(containingList, index, sourceFile, options);\n              if (result !== -1) {\n                return result;\n              }\n            }\n            return getActualIndentationForListStartLine(containingList, sourceFile, options) + (listIndentsChild ? options.indentSize : 0);\n          }\n          return -1;\n        }\n        function deriveActualIndentationFromList(list, index, sourceFile, options) {\n          Debug.assert(index >= 0 && index < list.length);\n          const node = list[index];\n          let lineAndCharacter = getStartLineAndCharacterForNode(node, sourceFile);\n          for (let i = index - 1; i >= 0; i--) {\n            if (list[i].kind === 27) {\n              continue;\n            }\n            const prevEndLine = sourceFile.getLineAndCharacterOfPosition(list[i].end).line;\n            if (prevEndLine !== lineAndCharacter.line) {\n              return findColumnForFirstNonWhitespaceCharacterInLine(lineAndCharacter, sourceFile, options);\n            }\n            lineAndCharacter = getStartLineAndCharacterForNode(list[i], sourceFile);\n          }\n          return -1;\n        }\n        function findColumnForFirstNonWhitespaceCharacterInLine(lineAndCharacter, sourceFile, options) {\n          const lineStart = sourceFile.getPositionOfLineAndCharacter(lineAndCharacter.line, 0);\n          return findFirstNonWhitespaceColumn(lineStart, lineStart + lineAndCharacter.character, sourceFile, options);\n        }\n        function findFirstNonWhitespaceCharacterAndColumn(startPos, endPos, sourceFile, options) {\n          let character = 0;\n          let column = 0;\n          for (let pos = startPos; pos < endPos; pos++) {\n            const ch = sourceFile.text.charCodeAt(pos);\n            if (!isWhiteSpaceSingleLine(ch)) {\n              break;\n            }\n            if (ch === 9) {\n              column += options.tabSize + column % options.tabSize;\n            } else {\n              column++;\n            }\n            character++;\n          }\n          return { column, character };\n        }\n        SmartIndenter2.findFirstNonWhitespaceCharacterAndColumn = findFirstNonWhitespaceCharacterAndColumn;\n        function findFirstNonWhitespaceColumn(startPos, endPos, sourceFile, options) {\n          return findFirstNonWhitespaceCharacterAndColumn(startPos, endPos, sourceFile, options).column;\n        }\n        SmartIndenter2.findFirstNonWhitespaceColumn = findFirstNonWhitespaceColumn;\n        function nodeWillIndentChild(settings, parent2, child, sourceFile, indentByDefault) {\n          const childKind = child ? child.kind : 0;\n          switch (parent2.kind) {\n            case 241:\n            case 260:\n            case 228:\n            case 261:\n            case 263:\n            case 262:\n            case 206:\n            case 238:\n            case 265:\n            case 207:\n            case 184:\n            case 197:\n            case 186:\n            case 266:\n            case 293:\n            case 292:\n            case 214:\n            case 208:\n            case 210:\n            case 211:\n            case 240:\n            case 274:\n            case 250:\n            case 224:\n            case 204:\n            case 203:\n            case 283:\n            case 286:\n            case 282:\n            case 291:\n            case 170:\n            case 176:\n            case 177:\n            case 166:\n            case 181:\n            case 182:\n            case 193:\n            case 212:\n            case 220:\n            case 276:\n            case 272:\n            case 278:\n            case 273:\n            case 169:\n              return true;\n            case 257:\n            case 299:\n            case 223:\n              if (!settings.indentMultiLineObjectLiteralBeginningOnBlankLine && sourceFile && childKind === 207) {\n                return rangeIsOnOneLine(sourceFile, child);\n              }\n              if (parent2.kind === 223 && sourceFile && child && childKind === 281) {\n                const parentStartLine = sourceFile.getLineAndCharacterOfPosition(skipTrivia(sourceFile.text, parent2.pos)).line;\n                const childStartLine = sourceFile.getLineAndCharacterOfPosition(skipTrivia(sourceFile.text, child.pos)).line;\n                return parentStartLine !== childStartLine;\n              }\n              if (parent2.kind !== 223) {\n                return true;\n              }\n              break;\n            case 243:\n            case 244:\n            case 246:\n            case 247:\n            case 245:\n            case 242:\n            case 259:\n            case 215:\n            case 171:\n            case 173:\n            case 174:\n            case 175:\n              return childKind !== 238;\n            case 216:\n              if (sourceFile && childKind === 214) {\n                return rangeIsOnOneLine(sourceFile, child);\n              }\n              return childKind !== 238;\n            case 275:\n              return childKind !== 276;\n            case 269:\n              return childKind !== 270 || !!child.namedBindings && child.namedBindings.kind !== 272;\n            case 281:\n              return childKind !== 284;\n            case 285:\n              return childKind !== 287;\n            case 190:\n            case 189:\n              if (childKind === 184 || childKind === 186) {\n                return false;\n              }\n              break;\n          }\n          return indentByDefault;\n        }\n        SmartIndenter2.nodeWillIndentChild = nodeWillIndentChild;\n        function isControlFlowEndingStatement(kind, parent2) {\n          switch (kind) {\n            case 250:\n            case 254:\n            case 248:\n            case 249:\n              return parent2.kind !== 238;\n            default:\n              return false;\n          }\n        }\n        function shouldIndentChildNode(settings, parent2, child, sourceFile, isNextChild = false) {\n          return nodeWillIndentChild(settings, parent2, child, sourceFile, false) && !(isNextChild && child && isControlFlowEndingStatement(child.kind, parent2));\n        }\n        SmartIndenter2.shouldIndentChildNode = shouldIndentChildNode;\n        function rangeIsOnOneLine(sourceFile, range) {\n          const rangeStart = skipTrivia(sourceFile.text, range.pos);\n          const startLine = sourceFile.getLineAndCharacterOfPosition(rangeStart).line;\n          const endLine = sourceFile.getLineAndCharacterOfPosition(range.end).line;\n          return startLine === endLine;\n        }\n      })(SmartIndenter || (SmartIndenter = {}));\n    }\n  });\n  var ts_formatting_exports = {};\n  __export2(ts_formatting_exports, {\n    FormattingContext: () => FormattingContext,\n    FormattingRequestKind: () => FormattingRequestKind,\n    RuleAction: () => RuleAction,\n    RuleFlags: () => RuleFlags,\n    SmartIndenter: () => SmartIndenter,\n    anyContext: () => anyContext,\n    createTextRangeWithKind: () => createTextRangeWithKind,\n    formatDocument: () => formatDocument,\n    formatNodeGivenIndentation: () => formatNodeGivenIndentation,\n    formatOnClosingCurly: () => formatOnClosingCurly,\n    formatOnEnter: () => formatOnEnter,\n    formatOnOpeningCurly: () => formatOnOpeningCurly,\n    formatOnSemicolon: () => formatOnSemicolon,\n    formatSelection: () => formatSelection,\n    getAllRules: () => getAllRules,\n    getFormatContext: () => getFormatContext,\n    getFormattingScanner: () => getFormattingScanner,\n    getIndentationString: () => getIndentationString,\n    getRangeOfEnclosingComment: () => getRangeOfEnclosingComment\n  });\n  var init_ts_formatting = __esm({\n    \"src/services/_namespaces/ts.formatting.ts\"() {\n      \"use strict\";\n      init_formattingContext();\n      init_formattingScanner();\n      init_rule();\n      init_rules();\n      init_rulesMap();\n      init_formatting();\n      init_smartIndenter();\n    }\n  });\n  var init_ts4 = __esm({\n    \"src/services/_namespaces/ts.ts\"() {\n      \"use strict\";\n      init_ts2();\n      init_ts3();\n      init_types3();\n      init_utilities4();\n      init_exportInfoMap();\n      init_classifier();\n      init_documentHighlights();\n      init_documentRegistry();\n      init_getEditsForFileRename();\n      init_patternMatcher();\n      init_preProcess();\n      init_sourcemaps();\n      init_suggestionDiagnostics();\n      init_transpile();\n      init_services();\n      init_transform();\n      init_shims();\n      init_ts_BreakpointResolver();\n      init_ts_CallHierarchy();\n      init_ts_classifier();\n      init_ts_codefix();\n      init_ts_Completions();\n      init_ts_FindAllReferences();\n      init_ts_GoToDefinition();\n      init_ts_InlayHints();\n      init_ts_JsDoc();\n      init_ts_NavigateTo();\n      init_ts_NavigationBar();\n      init_ts_OrganizeImports();\n      init_ts_OutliningElementsCollector();\n      init_ts_refactor();\n      init_ts_Rename();\n      init_ts_SignatureHelp();\n      init_ts_SmartSelectionRange();\n      init_ts_SymbolDisplay();\n      init_ts_textChanges();\n      init_ts_formatting();\n    }\n  });\n  function getTypeScriptVersion() {\n    return typeScriptVersion2 != null ? typeScriptVersion2 : typeScriptVersion2 = new Version(version);\n  }\n  function formatDeprecationMessage(name, error, errorAfter, since, message) {\n    let deprecationMessage = error ? \"DeprecationError: \" : \"DeprecationWarning: \";\n    deprecationMessage += `'${name}' `;\n    deprecationMessage += since ? `has been deprecated since v${since}` : \"is deprecated\";\n    deprecationMessage += error ? \" and can no longer be used.\" : errorAfter ? ` and will no longer be usable after v${errorAfter}.` : \".\";\n    deprecationMessage += message ? ` ${formatStringFromArgs(message, [name], 0)}` : \"\";\n    return deprecationMessage;\n  }\n  function createErrorDeprecation(name, errorAfter, since, message) {\n    const deprecationMessage = formatDeprecationMessage(name, true, errorAfter, since, message);\n    return () => {\n      throw new TypeError(deprecationMessage);\n    };\n  }\n  function createWarningDeprecation(name, errorAfter, since, message) {\n    let hasWrittenDeprecation = false;\n    return () => {\n      if (enableDeprecationWarnings && !hasWrittenDeprecation) {\n        Debug.log.warn(formatDeprecationMessage(name, false, errorAfter, since, message));\n        hasWrittenDeprecation = true;\n      }\n    };\n  }\n  function createDeprecation(name, options = {}) {\n    var _a2, _b;\n    const version2 = typeof options.typeScriptVersion === \"string\" ? new Version(options.typeScriptVersion) : (_a2 = options.typeScriptVersion) != null ? _a2 : getTypeScriptVersion();\n    const errorAfter = typeof options.errorAfter === \"string\" ? new Version(options.errorAfter) : options.errorAfter;\n    const warnAfter = typeof options.warnAfter === \"string\" ? new Version(options.warnAfter) : options.warnAfter;\n    const since = typeof options.since === \"string\" ? new Version(options.since) : (_b = options.since) != null ? _b : warnAfter;\n    const error = options.error || errorAfter && version2.compareTo(errorAfter) >= 0;\n    const warn = !warnAfter || version2.compareTo(warnAfter) >= 0;\n    return error ? createErrorDeprecation(name, errorAfter, since, options.message) : warn ? createWarningDeprecation(name, errorAfter, since, options.message) : noop;\n  }\n  function wrapFunction(deprecation, func) {\n    return function() {\n      deprecation();\n      return func.apply(this, arguments);\n    };\n  }\n  function deprecate(func, options) {\n    var _a2;\n    const deprecation = createDeprecation((_a2 = options == null ? void 0 : options.name) != null ? _a2 : Debug.getFunctionName(func), options);\n    return wrapFunction(deprecation, func);\n  }\n  var enableDeprecationWarnings, typeScriptVersion2;\n  var init_deprecate = __esm({\n    \"src/deprecatedCompat/deprecate.ts\"() {\n      \"use strict\";\n      init_ts5();\n      enableDeprecationWarnings = true;\n    }\n  });\n  function createOverload(name, overloads, binder2, deprecations) {\n    Object.defineProperty(call, \"name\", { ...Object.getOwnPropertyDescriptor(call, \"name\"), value: name });\n    if (deprecations) {\n      for (const key of Object.keys(deprecations)) {\n        const index = +key;\n        if (!isNaN(index) && hasProperty(overloads, `${index}`)) {\n          overloads[index] = deprecate(overloads[index], { ...deprecations[index], name });\n        }\n      }\n    }\n    const bind = createBinder2(overloads, binder2);\n    return call;\n    function call(...args) {\n      const index = bind(args);\n      const fn = index !== void 0 ? overloads[index] : void 0;\n      if (typeof fn === \"function\") {\n        return fn(...args);\n      }\n      throw new TypeError(\"Invalid arguments\");\n    }\n  }\n  function createBinder2(overloads, binder2) {\n    return (args) => {\n      for (let i = 0; hasProperty(overloads, `${i}`) && hasProperty(binder2, `${i}`); i++) {\n        const fn = binder2[i];\n        if (fn(args)) {\n          return i;\n        }\n      }\n    };\n  }\n  function buildOverload(name) {\n    return {\n      overload: (overloads) => ({\n        bind: (binder2) => ({\n          finish: () => createOverload(name, overloads, binder2),\n          deprecate: (deprecations) => ({\n            finish: () => createOverload(name, overloads, binder2, deprecations)\n          })\n        })\n      })\n    };\n  }\n  var init_deprecations = __esm({\n    \"src/deprecatedCompat/deprecations.ts\"() {\n      \"use strict\";\n      init_ts5();\n      init_deprecate();\n    }\n  });\n  var init_identifierProperties = __esm({\n    \"src/deprecatedCompat/5.0/identifierProperties.ts\"() {\n      \"use strict\";\n      init_ts5();\n      init_deprecate();\n      addObjectAllocatorPatcher((objectAllocator2) => {\n        const Identifier73 = objectAllocator2.getIdentifierConstructor();\n        if (!hasProperty(Identifier73.prototype, \"originalKeywordKind\")) {\n          Object.defineProperty(Identifier73.prototype, \"originalKeywordKind\", {\n            get: deprecate(function() {\n              return identifierToKeywordKind(this);\n            }, {\n              name: \"originalKeywordKind\",\n              since: \"5.0\",\n              warnAfter: \"5.1\",\n              errorAfter: \"5.2\",\n              message: \"Use 'identifierToKeywordKind(identifier)' instead.\"\n            })\n          });\n        }\n        if (!hasProperty(Identifier73.prototype, \"isInJSDocNamespace\")) {\n          Object.defineProperty(Identifier73.prototype, \"isInJSDocNamespace\", {\n            get: deprecate(function() {\n              return this.flags & 2048 ? true : void 0;\n            }, {\n              name: \"isInJSDocNamespace\",\n              since: \"5.0\",\n              warnAfter: \"5.1\",\n              errorAfter: \"5.2\",\n              message: \"Use '.parent' or the surrounding context to determine this instead.\"\n            })\n          });\n        }\n      });\n    }\n  });\n  var init_ts5 = __esm({\n    \"src/deprecatedCompat/_namespaces/ts.ts\"() {\n      \"use strict\";\n      init_ts2();\n      init_deprecations();\n      init_identifierProperties();\n    }\n  });\n  var ts_exports3 = {};\n  __export2(ts_exports3, {\n    ANONYMOUS: () => ANONYMOUS,\n    AccessFlags: () => AccessFlags,\n    AssertionLevel: () => AssertionLevel,\n    AssignmentDeclarationKind: () => AssignmentDeclarationKind,\n    AssignmentKind: () => AssignmentKind,\n    Associativity: () => Associativity,\n    BreakpointResolver: () => ts_BreakpointResolver_exports,\n    BuilderFileEmit: () => BuilderFileEmit,\n    BuilderProgramKind: () => BuilderProgramKind,\n    BuilderState: () => BuilderState,\n    BundleFileSectionKind: () => BundleFileSectionKind,\n    CallHierarchy: () => ts_CallHierarchy_exports,\n    CharacterCodes: () => CharacterCodes,\n    CheckFlags: () => CheckFlags,\n    CheckMode: () => CheckMode,\n    ClassificationType: () => ClassificationType,\n    ClassificationTypeNames: () => ClassificationTypeNames,\n    CommentDirectiveType: () => CommentDirectiveType,\n    Comparison: () => Comparison,\n    CompletionInfoFlags: () => CompletionInfoFlags,\n    CompletionTriggerKind: () => CompletionTriggerKind,\n    Completions: () => ts_Completions_exports,\n    ConfigFileProgramReloadLevel: () => ConfigFileProgramReloadLevel,\n    ContextFlags: () => ContextFlags,\n    CoreServicesShimHostAdapter: () => CoreServicesShimHostAdapter,\n    Debug: () => Debug,\n    DiagnosticCategory: () => DiagnosticCategory,\n    Diagnostics: () => Diagnostics,\n    DocumentHighlights: () => DocumentHighlights,\n    ElementFlags: () => ElementFlags,\n    EmitFlags: () => EmitFlags,\n    EmitHint: () => EmitHint,\n    EmitOnly: () => EmitOnly,\n    EndOfLineState: () => EndOfLineState2,\n    EnumKind: () => EnumKind,\n    ExitStatus: () => ExitStatus,\n    ExportKind: () => ExportKind,\n    Extension: () => Extension,\n    ExternalEmitHelpers: () => ExternalEmitHelpers,\n    FileIncludeKind: () => FileIncludeKind,\n    FilePreprocessingDiagnosticsKind: () => FilePreprocessingDiagnosticsKind,\n    FileSystemEntryKind: () => FileSystemEntryKind,\n    FileWatcherEventKind: () => FileWatcherEventKind,\n    FindAllReferences: () => ts_FindAllReferences_exports,\n    FlattenLevel: () => FlattenLevel,\n    FlowFlags: () => FlowFlags,\n    ForegroundColorEscapeSequences: () => ForegroundColorEscapeSequences,\n    FunctionFlags: () => FunctionFlags,\n    GeneratedIdentifierFlags: () => GeneratedIdentifierFlags,\n    GetLiteralTextFlags: () => GetLiteralTextFlags,\n    GoToDefinition: () => ts_GoToDefinition_exports,\n    HighlightSpanKind: () => HighlightSpanKind,\n    ImportKind: () => ImportKind,\n    ImportsNotUsedAsValues: () => ImportsNotUsedAsValues,\n    IndentStyle: () => IndentStyle2,\n    IndexKind: () => IndexKind,\n    InferenceFlags: () => InferenceFlags,\n    InferencePriority: () => InferencePriority,\n    InlayHintKind: () => InlayHintKind,\n    InlayHints: () => ts_InlayHints_exports,\n    InternalEmitFlags: () => InternalEmitFlags,\n    InternalSymbolName: () => InternalSymbolName,\n    InvalidatedProjectKind: () => InvalidatedProjectKind,\n    JsDoc: () => ts_JsDoc_exports,\n    JsTyping: () => ts_JsTyping_exports,\n    JsxEmit: () => JsxEmit,\n    JsxFlags: () => JsxFlags,\n    JsxReferenceKind: () => JsxReferenceKind,\n    LanguageServiceMode: () => LanguageServiceMode,\n    LanguageServiceShimHostAdapter: () => LanguageServiceShimHostAdapter,\n    LanguageVariant: () => LanguageVariant,\n    LexicalEnvironmentFlags: () => LexicalEnvironmentFlags,\n    ListFormat: () => ListFormat,\n    LogLevel: () => LogLevel,\n    MemberOverrideStatus: () => MemberOverrideStatus,\n    ModifierFlags: () => ModifierFlags,\n    ModuleDetectionKind: () => ModuleDetectionKind,\n    ModuleInstanceState: () => ModuleInstanceState,\n    ModuleKind: () => ModuleKind,\n    ModuleResolutionKind: () => ModuleResolutionKind,\n    ModuleSpecifierEnding: () => ModuleSpecifierEnding,\n    NavigateTo: () => ts_NavigateTo_exports,\n    NavigationBar: () => ts_NavigationBar_exports,\n    NewLineKind: () => NewLineKind,\n    NodeBuilderFlags: () => NodeBuilderFlags,\n    NodeCheckFlags: () => NodeCheckFlags,\n    NodeFactoryFlags: () => NodeFactoryFlags,\n    NodeFlags: () => NodeFlags,\n    NodeResolutionFeatures: () => NodeResolutionFeatures,\n    ObjectFlags: () => ObjectFlags,\n    OperationCanceledException: () => OperationCanceledException,\n    OperatorPrecedence: () => OperatorPrecedence,\n    OrganizeImports: () => ts_OrganizeImports_exports,\n    OrganizeImportsMode: () => OrganizeImportsMode,\n    OuterExpressionKinds: () => OuterExpressionKinds,\n    OutliningElementsCollector: () => ts_OutliningElementsCollector_exports,\n    OutliningSpanKind: () => OutliningSpanKind,\n    OutputFileType: () => OutputFileType,\n    PackageJsonAutoImportPreference: () => PackageJsonAutoImportPreference,\n    PackageJsonDependencyGroup: () => PackageJsonDependencyGroup,\n    PatternMatchKind: () => PatternMatchKind,\n    PollingInterval: () => PollingInterval,\n    PollingWatchKind: () => PollingWatchKind,\n    PragmaKindFlags: () => PragmaKindFlags,\n    PrivateIdentifierKind: () => PrivateIdentifierKind,\n    ProcessLevel: () => ProcessLevel,\n    QuotePreference: () => QuotePreference,\n    RelationComparisonResult: () => RelationComparisonResult,\n    Rename: () => ts_Rename_exports,\n    ScriptElementKind: () => ScriptElementKind,\n    ScriptElementKindModifier: () => ScriptElementKindModifier,\n    ScriptKind: () => ScriptKind2,\n    ScriptSnapshot: () => ScriptSnapshot,\n    ScriptTarget: () => ScriptTarget2,\n    SemanticClassificationFormat: () => SemanticClassificationFormat,\n    SemanticMeaning: () => SemanticMeaning,\n    SemicolonPreference: () => SemicolonPreference,\n    SignatureCheckMode: () => SignatureCheckMode,\n    SignatureFlags: () => SignatureFlags,\n    SignatureHelp: () => ts_SignatureHelp_exports,\n    SignatureKind: () => SignatureKind,\n    SmartSelectionRange: () => ts_SmartSelectionRange_exports,\n    SnippetKind: () => SnippetKind,\n    SortKind: () => SortKind,\n    StructureIsReused: () => StructureIsReused,\n    SymbolAccessibility: () => SymbolAccessibility,\n    SymbolDisplay: () => ts_SymbolDisplay_exports,\n    SymbolDisplayPartKind: () => SymbolDisplayPartKind,\n    SymbolFlags: () => SymbolFlags,\n    SymbolFormatFlags: () => SymbolFormatFlags,\n    SyntaxKind: () => SyntaxKind,\n    SyntheticSymbolKind: () => SyntheticSymbolKind,\n    Ternary: () => Ternary,\n    ThrottledCancellationToken: () => ThrottledCancellationToken,\n    TokenClass: () => TokenClass2,\n    TokenFlags: () => TokenFlags,\n    TransformFlags: () => TransformFlags,\n    TypeFacts: () => TypeFacts,\n    TypeFlags: () => TypeFlags,\n    TypeFormatFlags: () => TypeFormatFlags,\n    TypeMapKind: () => TypeMapKind,\n    TypePredicateKind: () => TypePredicateKind,\n    TypeReferenceSerializationKind: () => TypeReferenceSerializationKind,\n    TypeScriptServicesFactory: () => TypeScriptServicesFactory,\n    UnionReduction: () => UnionReduction,\n    UpToDateStatusType: () => UpToDateStatusType,\n    VarianceFlags: () => VarianceFlags,\n    Version: () => Version,\n    VersionRange: () => VersionRange,\n    WatchDirectoryFlags: () => WatchDirectoryFlags,\n    WatchDirectoryKind: () => WatchDirectoryKind,\n    WatchFileKind: () => WatchFileKind,\n    WatchLogLevel: () => WatchLogLevel,\n    WatchType: () => WatchType,\n    accessPrivateIdentifier: () => accessPrivateIdentifier,\n    addEmitFlags: () => addEmitFlags,\n    addEmitHelper: () => addEmitHelper,\n    addEmitHelpers: () => addEmitHelpers,\n    addInternalEmitFlags: () => addInternalEmitFlags,\n    addNodeFactoryPatcher: () => addNodeFactoryPatcher,\n    addObjectAllocatorPatcher: () => addObjectAllocatorPatcher,\n    addRange: () => addRange,\n    addRelatedInfo: () => addRelatedInfo,\n    addSyntheticLeadingComment: () => addSyntheticLeadingComment,\n    addSyntheticTrailingComment: () => addSyntheticTrailingComment,\n    addToSeen: () => addToSeen,\n    advancedAsyncSuperHelper: () => advancedAsyncSuperHelper,\n    affectsDeclarationPathOptionDeclarations: () => affectsDeclarationPathOptionDeclarations,\n    affectsEmitOptionDeclarations: () => affectsEmitOptionDeclarations,\n    allKeysStartWithDot: () => allKeysStartWithDot,\n    altDirectorySeparator: () => altDirectorySeparator,\n    and: () => and,\n    append: () => append,\n    appendIfUnique: () => appendIfUnique,\n    arrayFrom: () => arrayFrom,\n    arrayIsEqualTo: () => arrayIsEqualTo,\n    arrayIsHomogeneous: () => arrayIsHomogeneous,\n    arrayIsSorted: () => arrayIsSorted,\n    arrayOf: () => arrayOf,\n    arrayReverseIterator: () => arrayReverseIterator,\n    arrayToMap: () => arrayToMap,\n    arrayToMultiMap: () => arrayToMultiMap,\n    arrayToNumericMap: () => arrayToNumericMap,\n    arraysEqual: () => arraysEqual,\n    assertType: () => assertType,\n    assign: () => assign,\n    assignHelper: () => assignHelper,\n    asyncDelegator: () => asyncDelegator,\n    asyncGeneratorHelper: () => asyncGeneratorHelper,\n    asyncSuperHelper: () => asyncSuperHelper,\n    asyncValues: () => asyncValues,\n    attachFileToDiagnostics: () => attachFileToDiagnostics,\n    awaitHelper: () => awaitHelper,\n    awaiterHelper: () => awaiterHelper,\n    base64decode: () => base64decode,\n    base64encode: () => base64encode,\n    binarySearch: () => binarySearch,\n    binarySearchKey: () => binarySearchKey,\n    bindSourceFile: () => bindSourceFile,\n    breakIntoCharacterSpans: () => breakIntoCharacterSpans,\n    breakIntoWordSpans: () => breakIntoWordSpans,\n    buildLinkParts: () => buildLinkParts,\n    buildOpts: () => buildOpts,\n    buildOverload: () => buildOverload,\n    bundlerModuleNameResolver: () => bundlerModuleNameResolver,\n    canBeConvertedToAsync: () => canBeConvertedToAsync,\n    canHaveDecorators: () => canHaveDecorators,\n    canHaveExportModifier: () => canHaveExportModifier,\n    canHaveFlowNode: () => canHaveFlowNode,\n    canHaveIllegalDecorators: () => canHaveIllegalDecorators,\n    canHaveIllegalModifiers: () => canHaveIllegalModifiers,\n    canHaveIllegalType: () => canHaveIllegalType,\n    canHaveIllegalTypeParameters: () => canHaveIllegalTypeParameters,\n    canHaveJSDoc: () => canHaveJSDoc,\n    canHaveLocals: () => canHaveLocals,\n    canHaveModifiers: () => canHaveModifiers,\n    canHaveSymbol: () => canHaveSymbol,\n    canJsonReportNoInputFiles: () => canJsonReportNoInputFiles,\n    canProduceDiagnostics: () => canProduceDiagnostics,\n    canUsePropertyAccess: () => canUsePropertyAccess,\n    canWatchDirectoryOrFile: () => canWatchDirectoryOrFile,\n    cartesianProduct: () => cartesianProduct,\n    cast: () => cast,\n    chainBundle: () => chainBundle,\n    chainDiagnosticMessages: () => chainDiagnosticMessages,\n    changeAnyExtension: () => changeAnyExtension,\n    changeCompilerHostLikeToUseCache: () => changeCompilerHostLikeToUseCache,\n    changeExtension: () => changeExtension,\n    changesAffectModuleResolution: () => changesAffectModuleResolution,\n    changesAffectingProgramStructure: () => changesAffectingProgramStructure,\n    childIsDecorated: () => childIsDecorated,\n    classElementOrClassElementParameterIsDecorated: () => classElementOrClassElementParameterIsDecorated,\n    classOrConstructorParameterIsDecorated: () => classOrConstructorParameterIsDecorated,\n    classPrivateFieldGetHelper: () => classPrivateFieldGetHelper,\n    classPrivateFieldInHelper: () => classPrivateFieldInHelper,\n    classPrivateFieldSetHelper: () => classPrivateFieldSetHelper,\n    classicNameResolver: () => classicNameResolver,\n    classifier: () => ts_classifier_exports,\n    cleanExtendedConfigCache: () => cleanExtendedConfigCache,\n    clear: () => clear,\n    clearMap: () => clearMap,\n    clearSharedExtendedConfigFileWatcher: () => clearSharedExtendedConfigFileWatcher,\n    climbPastPropertyAccess: () => climbPastPropertyAccess,\n    climbPastPropertyOrElementAccess: () => climbPastPropertyOrElementAccess,\n    clone: () => clone,\n    cloneCompilerOptions: () => cloneCompilerOptions,\n    closeFileWatcher: () => closeFileWatcher,\n    closeFileWatcherOf: () => closeFileWatcherOf,\n    codefix: () => ts_codefix_exports,\n    collapseTextChangeRangesAcrossMultipleVersions: () => collapseTextChangeRangesAcrossMultipleVersions,\n    collectExternalModuleInfo: () => collectExternalModuleInfo,\n    combine: () => combine,\n    combinePaths: () => combinePaths,\n    commentPragmas: () => commentPragmas,\n    commonOptionsWithBuild: () => commonOptionsWithBuild,\n    commonPackageFolders: () => commonPackageFolders,\n    compact: () => compact,\n    compareBooleans: () => compareBooleans,\n    compareDataObjects: () => compareDataObjects,\n    compareDiagnostics: () => compareDiagnostics,\n    compareDiagnosticsSkipRelatedInformation: () => compareDiagnosticsSkipRelatedInformation,\n    compareEmitHelpers: () => compareEmitHelpers,\n    compareNumberOfDirectorySeparators: () => compareNumberOfDirectorySeparators,\n    comparePaths: () => comparePaths,\n    comparePathsCaseInsensitive: () => comparePathsCaseInsensitive,\n    comparePathsCaseSensitive: () => comparePathsCaseSensitive,\n    comparePatternKeys: () => comparePatternKeys,\n    compareProperties: () => compareProperties,\n    compareStringsCaseInsensitive: () => compareStringsCaseInsensitive,\n    compareStringsCaseInsensitiveEslintCompatible: () => compareStringsCaseInsensitiveEslintCompatible,\n    compareStringsCaseSensitive: () => compareStringsCaseSensitive,\n    compareStringsCaseSensitiveUI: () => compareStringsCaseSensitiveUI,\n    compareTextSpans: () => compareTextSpans,\n    compareValues: () => compareValues,\n    compileOnSaveCommandLineOption: () => compileOnSaveCommandLineOption,\n    compilerOptionsAffectDeclarationPath: () => compilerOptionsAffectDeclarationPath,\n    compilerOptionsAffectEmit: () => compilerOptionsAffectEmit,\n    compilerOptionsAffectSemanticDiagnostics: () => compilerOptionsAffectSemanticDiagnostics,\n    compilerOptionsDidYouMeanDiagnostics: () => compilerOptionsDidYouMeanDiagnostics,\n    compilerOptionsIndicateEsModules: () => compilerOptionsIndicateEsModules,\n    compose: () => compose,\n    computeCommonSourceDirectoryOfFilenames: () => computeCommonSourceDirectoryOfFilenames,\n    computeLineAndCharacterOfPosition: () => computeLineAndCharacterOfPosition,\n    computeLineOfPosition: () => computeLineOfPosition,\n    computeLineStarts: () => computeLineStarts,\n    computePositionOfLineAndCharacter: () => computePositionOfLineAndCharacter,\n    computeSignature: () => computeSignature,\n    computeSignatureWithDiagnostics: () => computeSignatureWithDiagnostics,\n    computeSuggestionDiagnostics: () => computeSuggestionDiagnostics,\n    concatenate: () => concatenate,\n    concatenateDiagnosticMessageChains: () => concatenateDiagnosticMessageChains,\n    consumesNodeCoreModules: () => consumesNodeCoreModules,\n    contains: () => contains,\n    containsIgnoredPath: () => containsIgnoredPath,\n    containsObjectRestOrSpread: () => containsObjectRestOrSpread,\n    containsParseError: () => containsParseError,\n    containsPath: () => containsPath,\n    convertCompilerOptionsForTelemetry: () => convertCompilerOptionsForTelemetry,\n    convertCompilerOptionsFromJson: () => convertCompilerOptionsFromJson,\n    convertJsonOption: () => convertJsonOption,\n    convertToBase64: () => convertToBase64,\n    convertToObject: () => convertToObject,\n    convertToObjectWorker: () => convertToObjectWorker,\n    convertToOptionsWithAbsolutePaths: () => convertToOptionsWithAbsolutePaths,\n    convertToRelativePath: () => convertToRelativePath,\n    convertToTSConfig: () => convertToTSConfig,\n    convertTypeAcquisitionFromJson: () => convertTypeAcquisitionFromJson,\n    copyComments: () => copyComments,\n    copyEntries: () => copyEntries,\n    copyLeadingComments: () => copyLeadingComments,\n    copyProperties: () => copyProperties,\n    copyTrailingAsLeadingComments: () => copyTrailingAsLeadingComments,\n    copyTrailingComments: () => copyTrailingComments,\n    couldStartTrivia: () => couldStartTrivia,\n    countWhere: () => countWhere,\n    createAbstractBuilder: () => createAbstractBuilder,\n    createAccessorPropertyBackingField: () => createAccessorPropertyBackingField,\n    createAccessorPropertyGetRedirector: () => createAccessorPropertyGetRedirector,\n    createAccessorPropertySetRedirector: () => createAccessorPropertySetRedirector,\n    createBaseNodeFactory: () => createBaseNodeFactory,\n    createBinaryExpressionTrampoline: () => createBinaryExpressionTrampoline,\n    createBindingHelper: () => createBindingHelper,\n    createBuildInfo: () => createBuildInfo,\n    createBuilderProgram: () => createBuilderProgram,\n    createBuilderProgramUsingProgramBuildInfo: () => createBuilderProgramUsingProgramBuildInfo,\n    createBuilderStatusReporter: () => createBuilderStatusReporter,\n    createCacheWithRedirects: () => createCacheWithRedirects,\n    createCacheableExportInfoMap: () => createCacheableExportInfoMap,\n    createCachedDirectoryStructureHost: () => createCachedDirectoryStructureHost,\n    createClassifier: () => createClassifier2,\n    createCommentDirectivesMap: () => createCommentDirectivesMap,\n    createCompilerDiagnostic: () => createCompilerDiagnostic,\n    createCompilerDiagnosticForInvalidCustomType: () => createCompilerDiagnosticForInvalidCustomType,\n    createCompilerDiagnosticFromMessageChain: () => createCompilerDiagnosticFromMessageChain,\n    createCompilerHost: () => createCompilerHost,\n    createCompilerHostFromProgramHost: () => createCompilerHostFromProgramHost,\n    createCompilerHostWorker: () => createCompilerHostWorker,\n    createDetachedDiagnostic: () => createDetachedDiagnostic,\n    createDiagnosticCollection: () => createDiagnosticCollection,\n    createDiagnosticForFileFromMessageChain: () => createDiagnosticForFileFromMessageChain,\n    createDiagnosticForNode: () => createDiagnosticForNode,\n    createDiagnosticForNodeArray: () => createDiagnosticForNodeArray,\n    createDiagnosticForNodeArrayFromMessageChain: () => createDiagnosticForNodeArrayFromMessageChain,\n    createDiagnosticForNodeFromMessageChain: () => createDiagnosticForNodeFromMessageChain,\n    createDiagnosticForNodeInSourceFile: () => createDiagnosticForNodeInSourceFile,\n    createDiagnosticForRange: () => createDiagnosticForRange,\n    createDiagnosticMessageChainFromDiagnostic: () => createDiagnosticMessageChainFromDiagnostic,\n    createDiagnosticReporter: () => createDiagnosticReporter,\n    createDocumentPositionMapper: () => createDocumentPositionMapper,\n    createDocumentRegistry: () => createDocumentRegistry,\n    createDocumentRegistryInternal: () => createDocumentRegistryInternal,\n    createEmitAndSemanticDiagnosticsBuilderProgram: () => createEmitAndSemanticDiagnosticsBuilderProgram,\n    createEmitHelperFactory: () => createEmitHelperFactory,\n    createEmptyExports: () => createEmptyExports,\n    createExpressionForJsxElement: () => createExpressionForJsxElement,\n    createExpressionForJsxFragment: () => createExpressionForJsxFragment,\n    createExpressionForObjectLiteralElementLike: () => createExpressionForObjectLiteralElementLike,\n    createExpressionForPropertyName: () => createExpressionForPropertyName,\n    createExpressionFromEntityName: () => createExpressionFromEntityName,\n    createExternalHelpersImportDeclarationIfNeeded: () => createExternalHelpersImportDeclarationIfNeeded,\n    createFileDiagnostic: () => createFileDiagnostic,\n    createFileDiagnosticFromMessageChain: () => createFileDiagnosticFromMessageChain,\n    createForOfBindingStatement: () => createForOfBindingStatement,\n    createGetCanonicalFileName: () => createGetCanonicalFileName,\n    createGetSourceFile: () => createGetSourceFile,\n    createGetSymbolAccessibilityDiagnosticForNode: () => createGetSymbolAccessibilityDiagnosticForNode,\n    createGetSymbolAccessibilityDiagnosticForNodeName: () => createGetSymbolAccessibilityDiagnosticForNodeName,\n    createGetSymbolWalker: () => createGetSymbolWalker,\n    createIncrementalCompilerHost: () => createIncrementalCompilerHost,\n    createIncrementalProgram: () => createIncrementalProgram,\n    createInputFiles: () => createInputFiles,\n    createInputFilesWithFilePaths: () => createInputFilesWithFilePaths,\n    createInputFilesWithFileTexts: () => createInputFilesWithFileTexts,\n    createJsxFactoryExpression: () => createJsxFactoryExpression,\n    createLanguageService: () => createLanguageService2,\n    createLanguageServiceSourceFile: () => createLanguageServiceSourceFile,\n    createMemberAccessForPropertyName: () => createMemberAccessForPropertyName,\n    createModeAwareCache: () => createModeAwareCache,\n    createModeAwareCacheKey: () => createModeAwareCacheKey,\n    createModuleResolutionCache: () => createModuleResolutionCache,\n    createModuleResolutionLoader: () => createModuleResolutionLoader,\n    createModuleSpecifierResolutionHost: () => createModuleSpecifierResolutionHost,\n    createMultiMap: () => createMultiMap,\n    createNodeConverters: () => createNodeConverters,\n    createNodeFactory: () => createNodeFactory,\n    createOptionNameMap: () => createOptionNameMap,\n    createOverload: () => createOverload,\n    createPackageJsonImportFilter: () => createPackageJsonImportFilter,\n    createPackageJsonInfo: () => createPackageJsonInfo,\n    createParenthesizerRules: () => createParenthesizerRules,\n    createPatternMatcher: () => createPatternMatcher,\n    createPrependNodes: () => createPrependNodes,\n    createPrinter: () => createPrinter,\n    createPrinterWithDefaults: () => createPrinterWithDefaults,\n    createPrinterWithRemoveComments: () => createPrinterWithRemoveComments,\n    createPrinterWithRemoveCommentsNeverAsciiEscape: () => createPrinterWithRemoveCommentsNeverAsciiEscape,\n    createPrinterWithRemoveCommentsOmitTrailingSemicolon: () => createPrinterWithRemoveCommentsOmitTrailingSemicolon,\n    createProgram: () => createProgram,\n    createProgramHost: () => createProgramHost,\n    createPropertyNameNodeForIdentifierOrLiteral: () => createPropertyNameNodeForIdentifierOrLiteral,\n    createQueue: () => createQueue,\n    createRange: () => createRange,\n    createRedirectedBuilderProgram: () => createRedirectedBuilderProgram,\n    createResolutionCache: () => createResolutionCache,\n    createRuntimeTypeSerializer: () => createRuntimeTypeSerializer,\n    createScanner: () => createScanner,\n    createSemanticDiagnosticsBuilderProgram: () => createSemanticDiagnosticsBuilderProgram,\n    createSet: () => createSet,\n    createSolutionBuilder: () => createSolutionBuilder,\n    createSolutionBuilderHost: () => createSolutionBuilderHost,\n    createSolutionBuilderWithWatch: () => createSolutionBuilderWithWatch,\n    createSolutionBuilderWithWatchHost: () => createSolutionBuilderWithWatchHost,\n    createSortedArray: () => createSortedArray,\n    createSourceFile: () => createSourceFile,\n    createSourceMapGenerator: () => createSourceMapGenerator,\n    createSourceMapSource: () => createSourceMapSource,\n    createSuperAccessVariableStatement: () => createSuperAccessVariableStatement,\n    createSymbolTable: () => createSymbolTable,\n    createSymlinkCache: () => createSymlinkCache,\n    createSystemWatchFunctions: () => createSystemWatchFunctions,\n    createTextChange: () => createTextChange,\n    createTextChangeFromStartLength: () => createTextChangeFromStartLength,\n    createTextChangeRange: () => createTextChangeRange,\n    createTextRangeFromNode: () => createTextRangeFromNode,\n    createTextRangeFromSpan: () => createTextRangeFromSpan,\n    createTextSpan: () => createTextSpan,\n    createTextSpanFromBounds: () => createTextSpanFromBounds,\n    createTextSpanFromNode: () => createTextSpanFromNode,\n    createTextSpanFromRange: () => createTextSpanFromRange,\n    createTextSpanFromStringLiteralLikeContent: () => createTextSpanFromStringLiteralLikeContent,\n    createTextWriter: () => createTextWriter,\n    createTokenRange: () => createTokenRange,\n    createTypeChecker: () => createTypeChecker,\n    createTypeReferenceDirectiveResolutionCache: () => createTypeReferenceDirectiveResolutionCache,\n    createTypeReferenceResolutionLoader: () => createTypeReferenceResolutionLoader,\n    createUnderscoreEscapedMultiMap: () => createUnderscoreEscapedMultiMap,\n    createUnparsedSourceFile: () => createUnparsedSourceFile,\n    createWatchCompilerHost: () => createWatchCompilerHost2,\n    createWatchCompilerHostOfConfigFile: () => createWatchCompilerHostOfConfigFile,\n    createWatchCompilerHostOfFilesAndCompilerOptions: () => createWatchCompilerHostOfFilesAndCompilerOptions,\n    createWatchFactory: () => createWatchFactory,\n    createWatchHost: () => createWatchHost,\n    createWatchProgram: () => createWatchProgram,\n    createWatchStatusReporter: () => createWatchStatusReporter,\n    createWriteFileMeasuringIO: () => createWriteFileMeasuringIO,\n    declarationNameToString: () => declarationNameToString,\n    decodeMappings: () => decodeMappings,\n    decodedTextSpanIntersectsWith: () => decodedTextSpanIntersectsWith,\n    decorateHelper: () => decorateHelper,\n    deduplicate: () => deduplicate,\n    defaultIncludeSpec: () => defaultIncludeSpec,\n    defaultInitCompilerOptions: () => defaultInitCompilerOptions,\n    defaultMaximumTruncationLength: () => defaultMaximumTruncationLength,\n    detectSortCaseSensitivity: () => detectSortCaseSensitivity,\n    diagnosticCategoryName: () => diagnosticCategoryName,\n    diagnosticToString: () => diagnosticToString,\n    directoryProbablyExists: () => directoryProbablyExists,\n    directorySeparator: () => directorySeparator,\n    displayPart: () => displayPart,\n    displayPartsToString: () => displayPartsToString2,\n    disposeEmitNodes: () => disposeEmitNodes,\n    documentSpansEqual: () => documentSpansEqual,\n    dumpTracingLegend: () => dumpTracingLegend,\n    elementAt: () => elementAt,\n    elideNodes: () => elideNodes,\n    emitComments: () => emitComments,\n    emitDetachedComments: () => emitDetachedComments,\n    emitFiles: () => emitFiles,\n    emitFilesAndReportErrors: () => emitFilesAndReportErrors,\n    emitFilesAndReportErrorsAndGetExitStatus: () => emitFilesAndReportErrorsAndGetExitStatus,\n    emitModuleKindIsNonNodeESM: () => emitModuleKindIsNonNodeESM,\n    emitNewLineBeforeLeadingCommentOfPosition: () => emitNewLineBeforeLeadingCommentOfPosition,\n    emitNewLineBeforeLeadingComments: () => emitNewLineBeforeLeadingComments,\n    emitNewLineBeforeLeadingCommentsOfPosition: () => emitNewLineBeforeLeadingCommentsOfPosition,\n    emitSkippedWithNoDiagnostics: () => emitSkippedWithNoDiagnostics,\n    emitUsingBuildInfo: () => emitUsingBuildInfo,\n    emptyArray: () => emptyArray,\n    emptyFileSystemEntries: () => emptyFileSystemEntries,\n    emptyMap: () => emptyMap,\n    emptyOptions: () => emptyOptions,\n    emptySet: () => emptySet,\n    endsWith: () => endsWith,\n    ensurePathIsNonModuleName: () => ensurePathIsNonModuleName,\n    ensureScriptKind: () => ensureScriptKind,\n    ensureTrailingDirectorySeparator: () => ensureTrailingDirectorySeparator,\n    entityNameToString: () => entityNameToString,\n    enumerateInsertsAndDeletes: () => enumerateInsertsAndDeletes,\n    equalOwnProperties: () => equalOwnProperties,\n    equateStringsCaseInsensitive: () => equateStringsCaseInsensitive,\n    equateStringsCaseSensitive: () => equateStringsCaseSensitive,\n    equateValues: () => equateValues,\n    esDecorateHelper: () => esDecorateHelper,\n    escapeJsxAttributeString: () => escapeJsxAttributeString,\n    escapeLeadingUnderscores: () => escapeLeadingUnderscores,\n    escapeNonAsciiString: () => escapeNonAsciiString,\n    escapeSnippetText: () => escapeSnippetText,\n    escapeString: () => escapeString,\n    every: () => every,\n    expandPreOrPostfixIncrementOrDecrementExpression: () => expandPreOrPostfixIncrementOrDecrementExpression,\n    explainFiles: () => explainFiles,\n    explainIfFileIsRedirectAndImpliedFormat: () => explainIfFileIsRedirectAndImpliedFormat,\n    exportAssignmentIsAlias: () => exportAssignmentIsAlias,\n    exportStarHelper: () => exportStarHelper,\n    expressionResultIsUnused: () => expressionResultIsUnused,\n    extend: () => extend,\n    extendsHelper: () => extendsHelper,\n    extensionFromPath: () => extensionFromPath,\n    extensionIsTS: () => extensionIsTS,\n    externalHelpersModuleNameText: () => externalHelpersModuleNameText,\n    factory: () => factory,\n    fileExtensionIs: () => fileExtensionIs,\n    fileExtensionIsOneOf: () => fileExtensionIsOneOf,\n    fileIncludeReasonToDiagnostics: () => fileIncludeReasonToDiagnostics,\n    filter: () => filter,\n    filterMutate: () => filterMutate,\n    filterSemanticDiagnostics: () => filterSemanticDiagnostics,\n    find: () => find,\n    findAncestor: () => findAncestor,\n    findBestPatternMatch: () => findBestPatternMatch,\n    findChildOfKind: () => findChildOfKind,\n    findComputedPropertyNameCacheAssignment: () => findComputedPropertyNameCacheAssignment,\n    findConfigFile: () => findConfigFile,\n    findContainingList: () => findContainingList,\n    findDiagnosticForNode: () => findDiagnosticForNode,\n    findFirstNonJsxWhitespaceToken: () => findFirstNonJsxWhitespaceToken,\n    findIndex: () => findIndex,\n    findLast: () => findLast,\n    findLastIndex: () => findLastIndex,\n    findListItemInfo: () => findListItemInfo,\n    findMap: () => findMap,\n    findModifier: () => findModifier,\n    findNextToken: () => findNextToken,\n    findPackageJson: () => findPackageJson,\n    findPackageJsons: () => findPackageJsons,\n    findPrecedingMatchingToken: () => findPrecedingMatchingToken,\n    findPrecedingToken: () => findPrecedingToken,\n    findSuperStatementIndex: () => findSuperStatementIndex,\n    findTokenOnLeftOfPosition: () => findTokenOnLeftOfPosition,\n    findUseStrictPrologue: () => findUseStrictPrologue,\n    first: () => first,\n    firstDefined: () => firstDefined,\n    firstDefinedIterator: () => firstDefinedIterator,\n    firstIterator: () => firstIterator,\n    firstOrOnly: () => firstOrOnly,\n    firstOrUndefined: () => firstOrUndefined,\n    firstOrUndefinedIterator: () => firstOrUndefinedIterator,\n    fixupCompilerOptions: () => fixupCompilerOptions,\n    flatMap: () => flatMap,\n    flatMapIterator: () => flatMapIterator,\n    flatMapToMutable: () => flatMapToMutable,\n    flatten: () => flatten,\n    flattenCommaList: () => flattenCommaList,\n    flattenDestructuringAssignment: () => flattenDestructuringAssignment,\n    flattenDestructuringBinding: () => flattenDestructuringBinding,\n    flattenDiagnosticMessageText: () => flattenDiagnosticMessageText2,\n    forEach: () => forEach,\n    forEachAncestor: () => forEachAncestor,\n    forEachAncestorDirectory: () => forEachAncestorDirectory,\n    forEachChild: () => forEachChild,\n    forEachChildRecursively: () => forEachChildRecursively,\n    forEachEmittedFile: () => forEachEmittedFile,\n    forEachEnclosingBlockScopeContainer: () => forEachEnclosingBlockScopeContainer,\n    forEachEntry: () => forEachEntry,\n    forEachExternalModuleToImportFrom: () => forEachExternalModuleToImportFrom,\n    forEachImportClauseDeclaration: () => forEachImportClauseDeclaration,\n    forEachKey: () => forEachKey,\n    forEachLeadingCommentRange: () => forEachLeadingCommentRange,\n    forEachNameInAccessChainWalkingLeft: () => forEachNameInAccessChainWalkingLeft,\n    forEachResolvedProjectReference: () => forEachResolvedProjectReference,\n    forEachReturnStatement: () => forEachReturnStatement,\n    forEachRight: () => forEachRight,\n    forEachTrailingCommentRange: () => forEachTrailingCommentRange,\n    forEachUnique: () => forEachUnique,\n    forEachYieldExpression: () => forEachYieldExpression,\n    forSomeAncestorDirectory: () => forSomeAncestorDirectory,\n    formatColorAndReset: () => formatColorAndReset,\n    formatDiagnostic: () => formatDiagnostic,\n    formatDiagnostics: () => formatDiagnostics,\n    formatDiagnosticsWithColorAndContext: () => formatDiagnosticsWithColorAndContext,\n    formatGeneratedName: () => formatGeneratedName,\n    formatGeneratedNamePart: () => formatGeneratedNamePart,\n    formatLocation: () => formatLocation,\n    formatMessage: () => formatMessage,\n    formatStringFromArgs: () => formatStringFromArgs,\n    formatting: () => ts_formatting_exports,\n    fullTripleSlashAMDReferencePathRegEx: () => fullTripleSlashAMDReferencePathRegEx,\n    fullTripleSlashReferencePathRegEx: () => fullTripleSlashReferencePathRegEx,\n    generateDjb2Hash: () => generateDjb2Hash,\n    generateTSConfig: () => generateTSConfig,\n    generatorHelper: () => generatorHelper,\n    getAdjustedReferenceLocation: () => getAdjustedReferenceLocation,\n    getAdjustedRenameLocation: () => getAdjustedRenameLocation,\n    getAliasDeclarationFromName: () => getAliasDeclarationFromName,\n    getAllAccessorDeclarations: () => getAllAccessorDeclarations,\n    getAllDecoratorsOfClass: () => getAllDecoratorsOfClass,\n    getAllDecoratorsOfClassElement: () => getAllDecoratorsOfClassElement,\n    getAllJSDocTags: () => getAllJSDocTags,\n    getAllJSDocTagsOfKind: () => getAllJSDocTagsOfKind,\n    getAllKeys: () => getAllKeys,\n    getAllProjectOutputs: () => getAllProjectOutputs,\n    getAllSuperTypeNodes: () => getAllSuperTypeNodes,\n    getAllUnscopedEmitHelpers: () => getAllUnscopedEmitHelpers,\n    getAllowJSCompilerOption: () => getAllowJSCompilerOption,\n    getAllowSyntheticDefaultImports: () => getAllowSyntheticDefaultImports,\n    getAncestor: () => getAncestor,\n    getAnyExtensionFromPath: () => getAnyExtensionFromPath,\n    getAreDeclarationMapsEnabled: () => getAreDeclarationMapsEnabled,\n    getAssignedExpandoInitializer: () => getAssignedExpandoInitializer,\n    getAssignedName: () => getAssignedName,\n    getAssignmentDeclarationKind: () => getAssignmentDeclarationKind,\n    getAssignmentDeclarationPropertyAccessKind: () => getAssignmentDeclarationPropertyAccessKind,\n    getAssignmentTargetKind: () => getAssignmentTargetKind,\n    getAutomaticTypeDirectiveNames: () => getAutomaticTypeDirectiveNames,\n    getBaseFileName: () => getBaseFileName,\n    getBinaryOperatorPrecedence: () => getBinaryOperatorPrecedence,\n    getBuildInfo: () => getBuildInfo,\n    getBuildInfoFileVersionMap: () => getBuildInfoFileVersionMap,\n    getBuildInfoText: () => getBuildInfoText,\n    getBuildOrderFromAnyBuildOrder: () => getBuildOrderFromAnyBuildOrder,\n    getBuilderCreationParameters: () => getBuilderCreationParameters,\n    getBuilderFileEmit: () => getBuilderFileEmit,\n    getCheckFlags: () => getCheckFlags,\n    getClassExtendsHeritageElement: () => getClassExtendsHeritageElement,\n    getClassLikeDeclarationOfSymbol: () => getClassLikeDeclarationOfSymbol,\n    getCombinedLocalAndExportSymbolFlags: () => getCombinedLocalAndExportSymbolFlags,\n    getCombinedModifierFlags: () => getCombinedModifierFlags,\n    getCombinedNodeFlags: () => getCombinedNodeFlags,\n    getCombinedNodeFlagsAlwaysIncludeJSDoc: () => getCombinedNodeFlagsAlwaysIncludeJSDoc,\n    getCommentRange: () => getCommentRange,\n    getCommonSourceDirectory: () => getCommonSourceDirectory,\n    getCommonSourceDirectoryOfConfig: () => getCommonSourceDirectoryOfConfig,\n    getCompilerOptionValue: () => getCompilerOptionValue,\n    getCompilerOptionsDiffValue: () => getCompilerOptionsDiffValue,\n    getConditions: () => getConditions,\n    getConfigFileParsingDiagnostics: () => getConfigFileParsingDiagnostics,\n    getConstantValue: () => getConstantValue,\n    getContainerNode: () => getContainerNode,\n    getContainingClass: () => getContainingClass,\n    getContainingClassStaticBlock: () => getContainingClassStaticBlock,\n    getContainingFunction: () => getContainingFunction,\n    getContainingFunctionDeclaration: () => getContainingFunctionDeclaration,\n    getContainingFunctionOrClassStaticBlock: () => getContainingFunctionOrClassStaticBlock,\n    getContainingNodeArray: () => getContainingNodeArray,\n    getContainingObjectLiteralElement: () => getContainingObjectLiteralElement,\n    getContextualTypeFromParent: () => getContextualTypeFromParent,\n    getContextualTypeFromParentOrAncestorTypeNode: () => getContextualTypeFromParentOrAncestorTypeNode,\n    getCurrentTime: () => getCurrentTime,\n    getDeclarationDiagnostics: () => getDeclarationDiagnostics,\n    getDeclarationEmitExtensionForPath: () => getDeclarationEmitExtensionForPath,\n    getDeclarationEmitOutputFilePath: () => getDeclarationEmitOutputFilePath,\n    getDeclarationEmitOutputFilePathWorker: () => getDeclarationEmitOutputFilePathWorker,\n    getDeclarationFromName: () => getDeclarationFromName,\n    getDeclarationModifierFlagsFromSymbol: () => getDeclarationModifierFlagsFromSymbol,\n    getDeclarationOfKind: () => getDeclarationOfKind,\n    getDeclarationsOfKind: () => getDeclarationsOfKind,\n    getDeclaredExpandoInitializer: () => getDeclaredExpandoInitializer,\n    getDecorators: () => getDecorators,\n    getDefaultCompilerOptions: () => getDefaultCompilerOptions2,\n    getDefaultExportInfoWorker: () => getDefaultExportInfoWorker,\n    getDefaultFormatCodeSettings: () => getDefaultFormatCodeSettings,\n    getDefaultLibFileName: () => getDefaultLibFileName,\n    getDefaultLibFilePath: () => getDefaultLibFilePath,\n    getDefaultLikeExportInfo: () => getDefaultLikeExportInfo,\n    getDiagnosticText: () => getDiagnosticText,\n    getDiagnosticsWithinSpan: () => getDiagnosticsWithinSpan,\n    getDirectoryPath: () => getDirectoryPath,\n    getDocumentPositionMapper: () => getDocumentPositionMapper,\n    getESModuleInterop: () => getESModuleInterop,\n    getEditsForFileRename: () => getEditsForFileRename,\n    getEffectiveBaseTypeNode: () => getEffectiveBaseTypeNode,\n    getEffectiveConstraintOfTypeParameter: () => getEffectiveConstraintOfTypeParameter,\n    getEffectiveContainerForJSDocTemplateTag: () => getEffectiveContainerForJSDocTemplateTag,\n    getEffectiveImplementsTypeNodes: () => getEffectiveImplementsTypeNodes,\n    getEffectiveInitializer: () => getEffectiveInitializer,\n    getEffectiveJSDocHost: () => getEffectiveJSDocHost,\n    getEffectiveModifierFlags: () => getEffectiveModifierFlags,\n    getEffectiveModifierFlagsAlwaysIncludeJSDoc: () => getEffectiveModifierFlagsAlwaysIncludeJSDoc,\n    getEffectiveModifierFlagsNoCache: () => getEffectiveModifierFlagsNoCache,\n    getEffectiveReturnTypeNode: () => getEffectiveReturnTypeNode,\n    getEffectiveSetAccessorTypeAnnotationNode: () => getEffectiveSetAccessorTypeAnnotationNode,\n    getEffectiveTypeAnnotationNode: () => getEffectiveTypeAnnotationNode,\n    getEffectiveTypeParameterDeclarations: () => getEffectiveTypeParameterDeclarations,\n    getEffectiveTypeRoots: () => getEffectiveTypeRoots,\n    getElementOrPropertyAccessArgumentExpressionOrName: () => getElementOrPropertyAccessArgumentExpressionOrName,\n    getElementOrPropertyAccessName: () => getElementOrPropertyAccessName,\n    getElementsOfBindingOrAssignmentPattern: () => getElementsOfBindingOrAssignmentPattern,\n    getEmitDeclarations: () => getEmitDeclarations,\n    getEmitFlags: () => getEmitFlags,\n    getEmitHelpers: () => getEmitHelpers,\n    getEmitModuleDetectionKind: () => getEmitModuleDetectionKind,\n    getEmitModuleKind: () => getEmitModuleKind,\n    getEmitModuleResolutionKind: () => getEmitModuleResolutionKind,\n    getEmitScriptTarget: () => getEmitScriptTarget,\n    getEnclosingBlockScopeContainer: () => getEnclosingBlockScopeContainer,\n    getEncodedSemanticClassifications: () => getEncodedSemanticClassifications,\n    getEncodedSyntacticClassifications: () => getEncodedSyntacticClassifications,\n    getEndLinePosition: () => getEndLinePosition,\n    getEntityNameFromTypeNode: () => getEntityNameFromTypeNode,\n    getEntrypointsFromPackageJsonInfo: () => getEntrypointsFromPackageJsonInfo,\n    getErrorCountForSummary: () => getErrorCountForSummary,\n    getErrorSpanForNode: () => getErrorSpanForNode,\n    getErrorSummaryText: () => getErrorSummaryText,\n    getEscapedTextOfIdentifierOrLiteral: () => getEscapedTextOfIdentifierOrLiteral,\n    getExpandoInitializer: () => getExpandoInitializer,\n    getExportAssignmentExpression: () => getExportAssignmentExpression,\n    getExportInfoMap: () => getExportInfoMap,\n    getExportNeedsImportStarHelper: () => getExportNeedsImportStarHelper,\n    getExpressionAssociativity: () => getExpressionAssociativity,\n    getExpressionPrecedence: () => getExpressionPrecedence,\n    getExternalHelpersModuleName: () => getExternalHelpersModuleName,\n    getExternalModuleImportEqualsDeclarationExpression: () => getExternalModuleImportEqualsDeclarationExpression,\n    getExternalModuleName: () => getExternalModuleName,\n    getExternalModuleNameFromDeclaration: () => getExternalModuleNameFromDeclaration,\n    getExternalModuleNameFromPath: () => getExternalModuleNameFromPath,\n    getExternalModuleNameLiteral: () => getExternalModuleNameLiteral,\n    getExternalModuleRequireArgument: () => getExternalModuleRequireArgument,\n    getFallbackOptions: () => getFallbackOptions,\n    getFileEmitOutput: () => getFileEmitOutput,\n    getFileMatcherPatterns: () => getFileMatcherPatterns,\n    getFileNamesFromConfigSpecs: () => getFileNamesFromConfigSpecs,\n    getFileWatcherEventKind: () => getFileWatcherEventKind,\n    getFilesInErrorForSummary: () => getFilesInErrorForSummary,\n    getFirstConstructorWithBody: () => getFirstConstructorWithBody,\n    getFirstIdentifier: () => getFirstIdentifier,\n    getFirstNonSpaceCharacterPosition: () => getFirstNonSpaceCharacterPosition,\n    getFirstProjectOutput: () => getFirstProjectOutput,\n    getFixableErrorSpanExpression: () => getFixableErrorSpanExpression,\n    getFormatCodeSettingsForWriting: () => getFormatCodeSettingsForWriting,\n    getFullWidth: () => getFullWidth,\n    getFunctionFlags: () => getFunctionFlags,\n    getHeritageClause: () => getHeritageClause,\n    getHostSignatureFromJSDoc: () => getHostSignatureFromJSDoc,\n    getIdentifierAutoGenerate: () => getIdentifierAutoGenerate,\n    getIdentifierGeneratedImportReference: () => getIdentifierGeneratedImportReference,\n    getIdentifierTypeArguments: () => getIdentifierTypeArguments,\n    getImmediatelyInvokedFunctionExpression: () => getImmediatelyInvokedFunctionExpression,\n    getImpliedNodeFormatForFile: () => getImpliedNodeFormatForFile,\n    getImpliedNodeFormatForFileWorker: () => getImpliedNodeFormatForFileWorker,\n    getImportNeedsImportDefaultHelper: () => getImportNeedsImportDefaultHelper,\n    getImportNeedsImportStarHelper: () => getImportNeedsImportStarHelper,\n    getIndentSize: () => getIndentSize,\n    getIndentString: () => getIndentString,\n    getInitializedVariables: () => getInitializedVariables,\n    getInitializerOfBinaryExpression: () => getInitializerOfBinaryExpression,\n    getInitializerOfBindingOrAssignmentElement: () => getInitializerOfBindingOrAssignmentElement,\n    getInterfaceBaseTypeNodes: () => getInterfaceBaseTypeNodes,\n    getInternalEmitFlags: () => getInternalEmitFlags,\n    getInvokedExpression: () => getInvokedExpression,\n    getIsolatedModules: () => getIsolatedModules,\n    getJSDocAugmentsTag: () => getJSDocAugmentsTag,\n    getJSDocClassTag: () => getJSDocClassTag,\n    getJSDocCommentRanges: () => getJSDocCommentRanges,\n    getJSDocCommentsAndTags: () => getJSDocCommentsAndTags,\n    getJSDocDeprecatedTag: () => getJSDocDeprecatedTag,\n    getJSDocDeprecatedTagNoCache: () => getJSDocDeprecatedTagNoCache,\n    getJSDocEnumTag: () => getJSDocEnumTag,\n    getJSDocHost: () => getJSDocHost,\n    getJSDocImplementsTags: () => getJSDocImplementsTags,\n    getJSDocOverrideTagNoCache: () => getJSDocOverrideTagNoCache,\n    getJSDocParameterTags: () => getJSDocParameterTags,\n    getJSDocParameterTagsNoCache: () => getJSDocParameterTagsNoCache,\n    getJSDocPrivateTag: () => getJSDocPrivateTag,\n    getJSDocPrivateTagNoCache: () => getJSDocPrivateTagNoCache,\n    getJSDocProtectedTag: () => getJSDocProtectedTag,\n    getJSDocProtectedTagNoCache: () => getJSDocProtectedTagNoCache,\n    getJSDocPublicTag: () => getJSDocPublicTag,\n    getJSDocPublicTagNoCache: () => getJSDocPublicTagNoCache,\n    getJSDocReadonlyTag: () => getJSDocReadonlyTag,\n    getJSDocReadonlyTagNoCache: () => getJSDocReadonlyTagNoCache,\n    getJSDocReturnTag: () => getJSDocReturnTag,\n    getJSDocReturnType: () => getJSDocReturnType,\n    getJSDocRoot: () => getJSDocRoot,\n    getJSDocSatisfiesExpressionType: () => getJSDocSatisfiesExpressionType,\n    getJSDocSatisfiesTag: () => getJSDocSatisfiesTag,\n    getJSDocTags: () => getJSDocTags,\n    getJSDocTagsNoCache: () => getJSDocTagsNoCache,\n    getJSDocTemplateTag: () => getJSDocTemplateTag,\n    getJSDocThisTag: () => getJSDocThisTag,\n    getJSDocType: () => getJSDocType,\n    getJSDocTypeAliasName: () => getJSDocTypeAliasName,\n    getJSDocTypeAssertionType: () => getJSDocTypeAssertionType,\n    getJSDocTypeParameterDeclarations: () => getJSDocTypeParameterDeclarations,\n    getJSDocTypeParameterTags: () => getJSDocTypeParameterTags,\n    getJSDocTypeParameterTagsNoCache: () => getJSDocTypeParameterTagsNoCache,\n    getJSDocTypeTag: () => getJSDocTypeTag,\n    getJSXImplicitImportBase: () => getJSXImplicitImportBase,\n    getJSXRuntimeImport: () => getJSXRuntimeImport,\n    getJSXTransformEnabled: () => getJSXTransformEnabled,\n    getKeyForCompilerOptions: () => getKeyForCompilerOptions,\n    getLanguageVariant: () => getLanguageVariant,\n    getLastChild: () => getLastChild,\n    getLeadingCommentRanges: () => getLeadingCommentRanges,\n    getLeadingCommentRangesOfNode: () => getLeadingCommentRangesOfNode,\n    getLeftmostAccessExpression: () => getLeftmostAccessExpression,\n    getLeftmostExpression: () => getLeftmostExpression,\n    getLineAndCharacterOfPosition: () => getLineAndCharacterOfPosition,\n    getLineInfo: () => getLineInfo,\n    getLineOfLocalPosition: () => getLineOfLocalPosition,\n    getLineOfLocalPositionFromLineMap: () => getLineOfLocalPositionFromLineMap,\n    getLineStartPositionForPosition: () => getLineStartPositionForPosition,\n    getLineStarts: () => getLineStarts,\n    getLinesBetweenPositionAndNextNonWhitespaceCharacter: () => getLinesBetweenPositionAndNextNonWhitespaceCharacter,\n    getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter: () => getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter,\n    getLinesBetweenPositions: () => getLinesBetweenPositions,\n    getLinesBetweenRangeEndAndRangeStart: () => getLinesBetweenRangeEndAndRangeStart,\n    getLinesBetweenRangeEndPositions: () => getLinesBetweenRangeEndPositions,\n    getLiteralText: () => getLiteralText,\n    getLocalNameForExternalImport: () => getLocalNameForExternalImport,\n    getLocalSymbolForExportDefault: () => getLocalSymbolForExportDefault,\n    getLocaleSpecificMessage: () => getLocaleSpecificMessage,\n    getLocaleTimeString: () => getLocaleTimeString,\n    getMappedContextSpan: () => getMappedContextSpan,\n    getMappedDocumentSpan: () => getMappedDocumentSpan,\n    getMappedLocation: () => getMappedLocation,\n    getMatchedFileSpec: () => getMatchedFileSpec,\n    getMatchedIncludeSpec: () => getMatchedIncludeSpec,\n    getMeaningFromDeclaration: () => getMeaningFromDeclaration,\n    getMeaningFromLocation: () => getMeaningFromLocation,\n    getMembersOfDeclaration: () => getMembersOfDeclaration,\n    getModeForFileReference: () => getModeForFileReference,\n    getModeForResolutionAtIndex: () => getModeForResolutionAtIndex,\n    getModeForUsageLocation: () => getModeForUsageLocation,\n    getModifiedTime: () => getModifiedTime,\n    getModifiers: () => getModifiers,\n    getModuleInstanceState: () => getModuleInstanceState,\n    getModuleNameStringLiteralAt: () => getModuleNameStringLiteralAt,\n    getModuleSpecifierEndingPreference: () => getModuleSpecifierEndingPreference,\n    getModuleSpecifierResolverHost: () => getModuleSpecifierResolverHost,\n    getNameForExportedSymbol: () => getNameForExportedSymbol,\n    getNameFromIndexInfo: () => getNameFromIndexInfo,\n    getNameFromPropertyName: () => getNameFromPropertyName,\n    getNameOfAccessExpression: () => getNameOfAccessExpression,\n    getNameOfCompilerOptionValue: () => getNameOfCompilerOptionValue,\n    getNameOfDeclaration: () => getNameOfDeclaration,\n    getNameOfExpando: () => getNameOfExpando,\n    getNameOfJSDocTypedef: () => getNameOfJSDocTypedef,\n    getNameOrArgument: () => getNameOrArgument,\n    getNameTable: () => getNameTable,\n    getNamesForExportedSymbol: () => getNamesForExportedSymbol,\n    getNamespaceDeclarationNode: () => getNamespaceDeclarationNode,\n    getNewLineCharacter: () => getNewLineCharacter,\n    getNewLineKind: () => getNewLineKind,\n    getNewLineOrDefaultFromHost: () => getNewLineOrDefaultFromHost,\n    getNewTargetContainer: () => getNewTargetContainer,\n    getNextJSDocCommentLocation: () => getNextJSDocCommentLocation,\n    getNodeForGeneratedName: () => getNodeForGeneratedName,\n    getNodeId: () => getNodeId,\n    getNodeKind: () => getNodeKind,\n    getNodeModifiers: () => getNodeModifiers,\n    getNodeModulePathParts: () => getNodeModulePathParts,\n    getNonAssignedNameOfDeclaration: () => getNonAssignedNameOfDeclaration,\n    getNonAssignmentOperatorForCompoundAssignment: () => getNonAssignmentOperatorForCompoundAssignment,\n    getNonAugmentationDeclaration: () => getNonAugmentationDeclaration,\n    getNonDecoratorTokenPosOfNode: () => getNonDecoratorTokenPosOfNode,\n    getNormalizedAbsolutePath: () => getNormalizedAbsolutePath,\n    getNormalizedAbsolutePathWithoutRoot: () => getNormalizedAbsolutePathWithoutRoot,\n    getNormalizedPathComponents: () => getNormalizedPathComponents,\n    getObjectFlags: () => getObjectFlags,\n    getOperator: () => getOperator,\n    getOperatorAssociativity: () => getOperatorAssociativity,\n    getOperatorPrecedence: () => getOperatorPrecedence,\n    getOptionFromName: () => getOptionFromName,\n    getOptionsNameMap: () => getOptionsNameMap,\n    getOrCreateEmitNode: () => getOrCreateEmitNode,\n    getOrCreateExternalHelpersModuleNameIfNeeded: () => getOrCreateExternalHelpersModuleNameIfNeeded,\n    getOrUpdate: () => getOrUpdate,\n    getOriginalNode: () => getOriginalNode,\n    getOriginalNodeId: () => getOriginalNodeId,\n    getOriginalSourceFile: () => getOriginalSourceFile,\n    getOutputDeclarationFileName: () => getOutputDeclarationFileName,\n    getOutputExtension: () => getOutputExtension,\n    getOutputFileNames: () => getOutputFileNames,\n    getOutputPathsFor: () => getOutputPathsFor,\n    getOutputPathsForBundle: () => getOutputPathsForBundle,\n    getOwnEmitOutputFilePath: () => getOwnEmitOutputFilePath,\n    getOwnKeys: () => getOwnKeys,\n    getOwnValues: () => getOwnValues,\n    getPackageJsonInfo: () => getPackageJsonInfo,\n    getPackageJsonTypesVersionsPaths: () => getPackageJsonTypesVersionsPaths,\n    getPackageJsonsVisibleToFile: () => getPackageJsonsVisibleToFile,\n    getPackageNameFromTypesPackageName: () => getPackageNameFromTypesPackageName,\n    getPackageScopeForPath: () => getPackageScopeForPath,\n    getParameterSymbolFromJSDoc: () => getParameterSymbolFromJSDoc,\n    getParameterTypeNode: () => getParameterTypeNode,\n    getParentNodeInSpan: () => getParentNodeInSpan,\n    getParseTreeNode: () => getParseTreeNode,\n    getParsedCommandLineOfConfigFile: () => getParsedCommandLineOfConfigFile,\n    getPathComponents: () => getPathComponents,\n    getPathComponentsRelativeTo: () => getPathComponentsRelativeTo,\n    getPathFromPathComponents: () => getPathFromPathComponents,\n    getPathUpdater: () => getPathUpdater,\n    getPathsBasePath: () => getPathsBasePath,\n    getPatternFromSpec: () => getPatternFromSpec,\n    getPendingEmitKind: () => getPendingEmitKind,\n    getPositionOfLineAndCharacter: () => getPositionOfLineAndCharacter,\n    getPossibleGenericSignatures: () => getPossibleGenericSignatures,\n    getPossibleOriginalInputExtensionForExtension: () => getPossibleOriginalInputExtensionForExtension,\n    getPossibleTypeArgumentsInfo: () => getPossibleTypeArgumentsInfo,\n    getPreEmitDiagnostics: () => getPreEmitDiagnostics,\n    getPrecedingNonSpaceCharacterPosition: () => getPrecedingNonSpaceCharacterPosition,\n    getPrivateIdentifier: () => getPrivateIdentifier,\n    getProperties: () => getProperties,\n    getProperty: () => getProperty,\n    getPropertyArrayElementValue: () => getPropertyArrayElementValue,\n    getPropertyAssignment: () => getPropertyAssignment,\n    getPropertyAssignmentAliasLikeExpression: () => getPropertyAssignmentAliasLikeExpression,\n    getPropertyNameForPropertyNameNode: () => getPropertyNameForPropertyNameNode,\n    getPropertyNameForUniqueESSymbol: () => getPropertyNameForUniqueESSymbol,\n    getPropertyNameOfBindingOrAssignmentElement: () => getPropertyNameOfBindingOrAssignmentElement,\n    getPropertySymbolFromBindingElement: () => getPropertySymbolFromBindingElement,\n    getPropertySymbolsFromContextualType: () => getPropertySymbolsFromContextualType,\n    getQuoteFromPreference: () => getQuoteFromPreference,\n    getQuotePreference: () => getQuotePreference,\n    getRangesWhere: () => getRangesWhere,\n    getRefactorContextSpan: () => getRefactorContextSpan,\n    getReferencedFileLocation: () => getReferencedFileLocation,\n    getRegexFromPattern: () => getRegexFromPattern,\n    getRegularExpressionForWildcard: () => getRegularExpressionForWildcard,\n    getRegularExpressionsForWildcards: () => getRegularExpressionsForWildcards,\n    getRelativePathFromDirectory: () => getRelativePathFromDirectory,\n    getRelativePathFromFile: () => getRelativePathFromFile,\n    getRelativePathToDirectoryOrUrl: () => getRelativePathToDirectoryOrUrl,\n    getRenameLocation: () => getRenameLocation,\n    getReplacementSpanForContextToken: () => getReplacementSpanForContextToken,\n    getResolutionDiagnostic: () => getResolutionDiagnostic,\n    getResolutionModeOverrideForClause: () => getResolutionModeOverrideForClause,\n    getResolveJsonModule: () => getResolveJsonModule,\n    getResolvePackageJsonExports: () => getResolvePackageJsonExports,\n    getResolvePackageJsonImports: () => getResolvePackageJsonImports,\n    getResolvedExternalModuleName: () => getResolvedExternalModuleName,\n    getResolvedModule: () => getResolvedModule,\n    getResolvedTypeReferenceDirective: () => getResolvedTypeReferenceDirective,\n    getRestIndicatorOfBindingOrAssignmentElement: () => getRestIndicatorOfBindingOrAssignmentElement,\n    getRestParameterElementType: () => getRestParameterElementType,\n    getRightMostAssignedExpression: () => getRightMostAssignedExpression,\n    getRootDeclaration: () => getRootDeclaration,\n    getRootLength: () => getRootLength,\n    getScriptKind: () => getScriptKind,\n    getScriptKindFromFileName: () => getScriptKindFromFileName,\n    getScriptTargetFeatures: () => getScriptTargetFeatures,\n    getSelectedEffectiveModifierFlags: () => getSelectedEffectiveModifierFlags,\n    getSelectedSyntacticModifierFlags: () => getSelectedSyntacticModifierFlags,\n    getSemanticClassifications: () => getSemanticClassifications,\n    getSemanticJsxChildren: () => getSemanticJsxChildren,\n    getSetAccessorTypeAnnotationNode: () => getSetAccessorTypeAnnotationNode,\n    getSetAccessorValueParameter: () => getSetAccessorValueParameter,\n    getSetExternalModuleIndicator: () => getSetExternalModuleIndicator,\n    getShebang: () => getShebang,\n    getSingleInitializerOfVariableStatementOrPropertyDeclaration: () => getSingleInitializerOfVariableStatementOrPropertyDeclaration,\n    getSingleVariableOfVariableStatement: () => getSingleVariableOfVariableStatement,\n    getSnapshotText: () => getSnapshotText,\n    getSnippetElement: () => getSnippetElement,\n    getSourceFileOfModule: () => getSourceFileOfModule,\n    getSourceFileOfNode: () => getSourceFileOfNode,\n    getSourceFilePathInNewDir: () => getSourceFilePathInNewDir,\n    getSourceFilePathInNewDirWorker: () => getSourceFilePathInNewDirWorker,\n    getSourceFileVersionAsHashFromText: () => getSourceFileVersionAsHashFromText,\n    getSourceFilesToEmit: () => getSourceFilesToEmit,\n    getSourceMapRange: () => getSourceMapRange,\n    getSourceMapper: () => getSourceMapper,\n    getSourceTextOfNodeFromSourceFile: () => getSourceTextOfNodeFromSourceFile,\n    getSpanOfTokenAtPosition: () => getSpanOfTokenAtPosition,\n    getSpellingSuggestion: () => getSpellingSuggestion,\n    getStartPositionOfLine: () => getStartPositionOfLine,\n    getStartPositionOfRange: () => getStartPositionOfRange,\n    getStartsOnNewLine: () => getStartsOnNewLine,\n    getStaticPropertiesAndClassStaticBlock: () => getStaticPropertiesAndClassStaticBlock,\n    getStrictOptionValue: () => getStrictOptionValue,\n    getStringComparer: () => getStringComparer,\n    getSuperCallFromStatement: () => getSuperCallFromStatement,\n    getSuperContainer: () => getSuperContainer,\n    getSupportedCodeFixes: () => getSupportedCodeFixes,\n    getSupportedExtensions: () => getSupportedExtensions,\n    getSupportedExtensionsWithJsonIfResolveJsonModule: () => getSupportedExtensionsWithJsonIfResolveJsonModule,\n    getSwitchedType: () => getSwitchedType,\n    getSymbolId: () => getSymbolId,\n    getSymbolNameForPrivateIdentifier: () => getSymbolNameForPrivateIdentifier,\n    getSymbolTarget: () => getSymbolTarget,\n    getSyntacticClassifications: () => getSyntacticClassifications,\n    getSyntacticModifierFlags: () => getSyntacticModifierFlags,\n    getSyntacticModifierFlagsNoCache: () => getSyntacticModifierFlagsNoCache,\n    getSynthesizedDeepClone: () => getSynthesizedDeepClone,\n    getSynthesizedDeepCloneWithReplacements: () => getSynthesizedDeepCloneWithReplacements,\n    getSynthesizedDeepClones: () => getSynthesizedDeepClones,\n    getSynthesizedDeepClonesWithReplacements: () => getSynthesizedDeepClonesWithReplacements,\n    getSyntheticLeadingComments: () => getSyntheticLeadingComments,\n    getSyntheticTrailingComments: () => getSyntheticTrailingComments,\n    getTargetLabel: () => getTargetLabel,\n    getTargetOfBindingOrAssignmentElement: () => getTargetOfBindingOrAssignmentElement,\n    getTemporaryModuleResolutionState: () => getTemporaryModuleResolutionState,\n    getTextOfConstantValue: () => getTextOfConstantValue,\n    getTextOfIdentifierOrLiteral: () => getTextOfIdentifierOrLiteral,\n    getTextOfJSDocComment: () => getTextOfJSDocComment,\n    getTextOfNode: () => getTextOfNode,\n    getTextOfNodeFromSourceText: () => getTextOfNodeFromSourceText,\n    getTextOfPropertyName: () => getTextOfPropertyName,\n    getThisContainer: () => getThisContainer,\n    getThisParameter: () => getThisParameter,\n    getTokenAtPosition: () => getTokenAtPosition,\n    getTokenPosOfNode: () => getTokenPosOfNode,\n    getTokenSourceMapRange: () => getTokenSourceMapRange,\n    getTouchingPropertyName: () => getTouchingPropertyName,\n    getTouchingToken: () => getTouchingToken,\n    getTrailingCommentRanges: () => getTrailingCommentRanges,\n    getTrailingSemicolonDeferringWriter: () => getTrailingSemicolonDeferringWriter,\n    getTransformFlagsSubtreeExclusions: () => getTransformFlagsSubtreeExclusions,\n    getTransformers: () => getTransformers,\n    getTsBuildInfoEmitOutputFilePath: () => getTsBuildInfoEmitOutputFilePath,\n    getTsConfigObjectLiteralExpression: () => getTsConfigObjectLiteralExpression,\n    getTsConfigPropArray: () => getTsConfigPropArray,\n    getTsConfigPropArrayElementValue: () => getTsConfigPropArrayElementValue,\n    getTypeAnnotationNode: () => getTypeAnnotationNode,\n    getTypeArgumentOrTypeParameterList: () => getTypeArgumentOrTypeParameterList,\n    getTypeKeywordOfTypeOnlyImport: () => getTypeKeywordOfTypeOnlyImport,\n    getTypeNode: () => getTypeNode,\n    getTypeNodeIfAccessible: () => getTypeNodeIfAccessible,\n    getTypeParameterFromJsDoc: () => getTypeParameterFromJsDoc,\n    getTypeParameterOwner: () => getTypeParameterOwner,\n    getTypesPackageName: () => getTypesPackageName,\n    getUILocale: () => getUILocale,\n    getUniqueName: () => getUniqueName,\n    getUniqueSymbolId: () => getUniqueSymbolId,\n    getUseDefineForClassFields: () => getUseDefineForClassFields,\n    getWatchErrorSummaryDiagnosticMessage: () => getWatchErrorSummaryDiagnosticMessage,\n    getWatchFactory: () => getWatchFactory,\n    group: () => group,\n    groupBy: () => groupBy,\n    guessIndentation: () => guessIndentation,\n    handleNoEmitOptions: () => handleNoEmitOptions,\n    hasAbstractModifier: () => hasAbstractModifier,\n    hasAccessorModifier: () => hasAccessorModifier,\n    hasAmbientModifier: () => hasAmbientModifier,\n    hasChangesInResolutions: () => hasChangesInResolutions,\n    hasChildOfKind: () => hasChildOfKind,\n    hasContextSensitiveParameters: () => hasContextSensitiveParameters,\n    hasDecorators: () => hasDecorators,\n    hasDocComment: () => hasDocComment,\n    hasDynamicName: () => hasDynamicName,\n    hasEffectiveModifier: () => hasEffectiveModifier,\n    hasEffectiveModifiers: () => hasEffectiveModifiers,\n    hasEffectiveReadonlyModifier: () => hasEffectiveReadonlyModifier,\n    hasExtension: () => hasExtension,\n    hasIndexSignature: () => hasIndexSignature,\n    hasInitializer: () => hasInitializer,\n    hasInvalidEscape: () => hasInvalidEscape,\n    hasJSDocNodes: () => hasJSDocNodes,\n    hasJSDocParameterTags: () => hasJSDocParameterTags,\n    hasJSFileExtension: () => hasJSFileExtension,\n    hasJsonModuleEmitEnabled: () => hasJsonModuleEmitEnabled,\n    hasOnlyExpressionInitializer: () => hasOnlyExpressionInitializer,\n    hasOverrideModifier: () => hasOverrideModifier,\n    hasPossibleExternalModuleReference: () => hasPossibleExternalModuleReference,\n    hasProperty: () => hasProperty,\n    hasPropertyAccessExpressionWithName: () => hasPropertyAccessExpressionWithName,\n    hasQuestionToken: () => hasQuestionToken,\n    hasRecordedExternalHelpers: () => hasRecordedExternalHelpers,\n    hasRestParameter: () => hasRestParameter,\n    hasScopeMarker: () => hasScopeMarker,\n    hasStaticModifier: () => hasStaticModifier,\n    hasSyntacticModifier: () => hasSyntacticModifier,\n    hasSyntacticModifiers: () => hasSyntacticModifiers,\n    hasTSFileExtension: () => hasTSFileExtension,\n    hasTabstop: () => hasTabstop,\n    hasTrailingDirectorySeparator: () => hasTrailingDirectorySeparator,\n    hasType: () => hasType,\n    hasTypeArguments: () => hasTypeArguments,\n    hasZeroOrOneAsteriskCharacter: () => hasZeroOrOneAsteriskCharacter,\n    helperString: () => helperString,\n    hostGetCanonicalFileName: () => hostGetCanonicalFileName,\n    hostUsesCaseSensitiveFileNames: () => hostUsesCaseSensitiveFileNames,\n    idText: () => idText,\n    identifierIsThisKeyword: () => identifierIsThisKeyword,\n    identifierToKeywordKind: () => identifierToKeywordKind,\n    identity: () => identity,\n    identitySourceMapConsumer: () => identitySourceMapConsumer,\n    ignoreSourceNewlines: () => ignoreSourceNewlines,\n    ignoredPaths: () => ignoredPaths,\n    importDefaultHelper: () => importDefaultHelper,\n    importFromModuleSpecifier: () => importFromModuleSpecifier,\n    importNameElisionDisabled: () => importNameElisionDisabled,\n    importStarHelper: () => importStarHelper,\n    indexOfAnyCharCode: () => indexOfAnyCharCode,\n    indexOfNode: () => indexOfNode,\n    indicesOf: () => indicesOf,\n    inferredTypesContainingFile: () => inferredTypesContainingFile,\n    insertImports: () => insertImports,\n    insertLeadingStatement: () => insertLeadingStatement,\n    insertSorted: () => insertSorted,\n    insertStatementAfterCustomPrologue: () => insertStatementAfterCustomPrologue,\n    insertStatementAfterStandardPrologue: () => insertStatementAfterStandardPrologue,\n    insertStatementsAfterCustomPrologue: () => insertStatementsAfterCustomPrologue,\n    insertStatementsAfterStandardPrologue: () => insertStatementsAfterStandardPrologue,\n    intersperse: () => intersperse,\n    introducesArgumentsExoticObject: () => introducesArgumentsExoticObject,\n    inverseJsxOptionMap: () => inverseJsxOptionMap,\n    isAbstractConstructorSymbol: () => isAbstractConstructorSymbol,\n    isAbstractModifier: () => isAbstractModifier,\n    isAccessExpression: () => isAccessExpression,\n    isAccessibilityModifier: () => isAccessibilityModifier,\n    isAccessor: () => isAccessor,\n    isAccessorModifier: () => isAccessorModifier,\n    isAliasSymbolDeclaration: () => isAliasSymbolDeclaration,\n    isAliasableExpression: () => isAliasableExpression,\n    isAmbientModule: () => isAmbientModule,\n    isAmbientPropertyDeclaration: () => isAmbientPropertyDeclaration,\n    isAnonymousFunctionDefinition: () => isAnonymousFunctionDefinition,\n    isAnyDirectorySeparator: () => isAnyDirectorySeparator,\n    isAnyImportOrBareOrAccessedRequire: () => isAnyImportOrBareOrAccessedRequire,\n    isAnyImportOrReExport: () => isAnyImportOrReExport,\n    isAnyImportSyntax: () => isAnyImportSyntax,\n    isAnySupportedFileExtension: () => isAnySupportedFileExtension,\n    isApplicableVersionedTypesKey: () => isApplicableVersionedTypesKey,\n    isArgumentExpressionOfElementAccess: () => isArgumentExpressionOfElementAccess,\n    isArray: () => isArray,\n    isArrayBindingElement: () => isArrayBindingElement,\n    isArrayBindingOrAssignmentElement: () => isArrayBindingOrAssignmentElement,\n    isArrayBindingOrAssignmentPattern: () => isArrayBindingOrAssignmentPattern,\n    isArrayBindingPattern: () => isArrayBindingPattern,\n    isArrayLiteralExpression: () => isArrayLiteralExpression,\n    isArrayLiteralOrObjectLiteralDestructuringPattern: () => isArrayLiteralOrObjectLiteralDestructuringPattern,\n    isArrayTypeNode: () => isArrayTypeNode,\n    isArrowFunction: () => isArrowFunction,\n    isAsExpression: () => isAsExpression,\n    isAssertClause: () => isAssertClause,\n    isAssertEntry: () => isAssertEntry,\n    isAssertionExpression: () => isAssertionExpression,\n    isAssertionKey: () => isAssertionKey,\n    isAssertsKeyword: () => isAssertsKeyword,\n    isAssignmentDeclaration: () => isAssignmentDeclaration,\n    isAssignmentExpression: () => isAssignmentExpression,\n    isAssignmentOperator: () => isAssignmentOperator,\n    isAssignmentPattern: () => isAssignmentPattern,\n    isAssignmentTarget: () => isAssignmentTarget,\n    isAsteriskToken: () => isAsteriskToken,\n    isAsyncFunction: () => isAsyncFunction,\n    isAsyncModifier: () => isAsyncModifier,\n    isAutoAccessorPropertyDeclaration: () => isAutoAccessorPropertyDeclaration,\n    isAwaitExpression: () => isAwaitExpression,\n    isAwaitKeyword: () => isAwaitKeyword,\n    isBigIntLiteral: () => isBigIntLiteral,\n    isBinaryExpression: () => isBinaryExpression,\n    isBinaryOperatorToken: () => isBinaryOperatorToken,\n    isBindableObjectDefinePropertyCall: () => isBindableObjectDefinePropertyCall,\n    isBindableStaticAccessExpression: () => isBindableStaticAccessExpression,\n    isBindableStaticElementAccessExpression: () => isBindableStaticElementAccessExpression,\n    isBindableStaticNameExpression: () => isBindableStaticNameExpression,\n    isBindingElement: () => isBindingElement,\n    isBindingElementOfBareOrAccessedRequire: () => isBindingElementOfBareOrAccessedRequire,\n    isBindingName: () => isBindingName,\n    isBindingOrAssignmentElement: () => isBindingOrAssignmentElement,\n    isBindingOrAssignmentPattern: () => isBindingOrAssignmentPattern,\n    isBindingPattern: () => isBindingPattern,\n    isBlock: () => isBlock,\n    isBlockOrCatchScoped: () => isBlockOrCatchScoped,\n    isBlockScope: () => isBlockScope,\n    isBlockScopedContainerTopLevel: () => isBlockScopedContainerTopLevel,\n    isBooleanLiteral: () => isBooleanLiteral,\n    isBreakOrContinueStatement: () => isBreakOrContinueStatement,\n    isBreakStatement: () => isBreakStatement,\n    isBuildInfoFile: () => isBuildInfoFile,\n    isBuilderProgram: () => isBuilderProgram2,\n    isBundle: () => isBundle,\n    isBundleFileTextLike: () => isBundleFileTextLike,\n    isCallChain: () => isCallChain,\n    isCallExpression: () => isCallExpression,\n    isCallExpressionTarget: () => isCallExpressionTarget,\n    isCallLikeExpression: () => isCallLikeExpression,\n    isCallOrNewExpression: () => isCallOrNewExpression,\n    isCallOrNewExpressionTarget: () => isCallOrNewExpressionTarget,\n    isCallSignatureDeclaration: () => isCallSignatureDeclaration,\n    isCallToHelper: () => isCallToHelper,\n    isCaseBlock: () => isCaseBlock,\n    isCaseClause: () => isCaseClause,\n    isCaseKeyword: () => isCaseKeyword,\n    isCaseOrDefaultClause: () => isCaseOrDefaultClause,\n    isCatchClause: () => isCatchClause,\n    isCatchClauseVariableDeclaration: () => isCatchClauseVariableDeclaration,\n    isCatchClauseVariableDeclarationOrBindingElement: () => isCatchClauseVariableDeclarationOrBindingElement,\n    isCheckJsEnabledForFile: () => isCheckJsEnabledForFile,\n    isChildOfNodeWithKind: () => isChildOfNodeWithKind,\n    isCircularBuildOrder: () => isCircularBuildOrder,\n    isClassDeclaration: () => isClassDeclaration,\n    isClassElement: () => isClassElement,\n    isClassExpression: () => isClassExpression,\n    isClassLike: () => isClassLike,\n    isClassMemberModifier: () => isClassMemberModifier,\n    isClassOrTypeElement: () => isClassOrTypeElement,\n    isClassStaticBlockDeclaration: () => isClassStaticBlockDeclaration,\n    isCollapsedRange: () => isCollapsedRange,\n    isColonToken: () => isColonToken,\n    isCommaExpression: () => isCommaExpression,\n    isCommaListExpression: () => isCommaListExpression,\n    isCommaSequence: () => isCommaSequence,\n    isCommaToken: () => isCommaToken,\n    isComment: () => isComment,\n    isCommonJsExportPropertyAssignment: () => isCommonJsExportPropertyAssignment,\n    isCommonJsExportedExpression: () => isCommonJsExportedExpression,\n    isCompoundAssignment: () => isCompoundAssignment,\n    isComputedNonLiteralName: () => isComputedNonLiteralName,\n    isComputedPropertyName: () => isComputedPropertyName,\n    isConciseBody: () => isConciseBody,\n    isConditionalExpression: () => isConditionalExpression,\n    isConditionalTypeNode: () => isConditionalTypeNode,\n    isConstTypeReference: () => isConstTypeReference,\n    isConstructSignatureDeclaration: () => isConstructSignatureDeclaration,\n    isConstructorDeclaration: () => isConstructorDeclaration,\n    isConstructorTypeNode: () => isConstructorTypeNode,\n    isContextualKeyword: () => isContextualKeyword,\n    isContinueStatement: () => isContinueStatement,\n    isCustomPrologue: () => isCustomPrologue,\n    isDebuggerStatement: () => isDebuggerStatement,\n    isDeclaration: () => isDeclaration,\n    isDeclarationBindingElement: () => isDeclarationBindingElement,\n    isDeclarationFileName: () => isDeclarationFileName,\n    isDeclarationName: () => isDeclarationName,\n    isDeclarationNameOfEnumOrNamespace: () => isDeclarationNameOfEnumOrNamespace,\n    isDeclarationReadonly: () => isDeclarationReadonly,\n    isDeclarationStatement: () => isDeclarationStatement,\n    isDeclarationWithTypeParameterChildren: () => isDeclarationWithTypeParameterChildren,\n    isDeclarationWithTypeParameters: () => isDeclarationWithTypeParameters,\n    isDecorator: () => isDecorator,\n    isDecoratorTarget: () => isDecoratorTarget,\n    isDefaultClause: () => isDefaultClause,\n    isDefaultImport: () => isDefaultImport,\n    isDefaultModifier: () => isDefaultModifier,\n    isDefaultedExpandoInitializer: () => isDefaultedExpandoInitializer,\n    isDeleteExpression: () => isDeleteExpression,\n    isDeleteTarget: () => isDeleteTarget,\n    isDeprecatedDeclaration: () => isDeprecatedDeclaration,\n    isDestructuringAssignment: () => isDestructuringAssignment,\n    isDiagnosticWithLocation: () => isDiagnosticWithLocation,\n    isDiskPathRoot: () => isDiskPathRoot,\n    isDoStatement: () => isDoStatement,\n    isDotDotDotToken: () => isDotDotDotToken,\n    isDottedName: () => isDottedName,\n    isDynamicName: () => isDynamicName,\n    isESSymbolIdentifier: () => isESSymbolIdentifier,\n    isEffectiveExternalModule: () => isEffectiveExternalModule,\n    isEffectiveModuleDeclaration: () => isEffectiveModuleDeclaration,\n    isEffectiveStrictModeSourceFile: () => isEffectiveStrictModeSourceFile,\n    isElementAccessChain: () => isElementAccessChain,\n    isElementAccessExpression: () => isElementAccessExpression,\n    isEmittedFileOfProgram: () => isEmittedFileOfProgram,\n    isEmptyArrayLiteral: () => isEmptyArrayLiteral,\n    isEmptyBindingElement: () => isEmptyBindingElement,\n    isEmptyBindingPattern: () => isEmptyBindingPattern,\n    isEmptyObjectLiteral: () => isEmptyObjectLiteral,\n    isEmptyStatement: () => isEmptyStatement,\n    isEmptyStringLiteral: () => isEmptyStringLiteral,\n    isEndOfDeclarationMarker: () => isEndOfDeclarationMarker,\n    isEntityName: () => isEntityName,\n    isEntityNameExpression: () => isEntityNameExpression,\n    isEnumConst: () => isEnumConst,\n    isEnumDeclaration: () => isEnumDeclaration,\n    isEnumMember: () => isEnumMember,\n    isEqualityOperatorKind: () => isEqualityOperatorKind,\n    isEqualsGreaterThanToken: () => isEqualsGreaterThanToken,\n    isExclamationToken: () => isExclamationToken,\n    isExcludedFile: () => isExcludedFile,\n    isExclusivelyTypeOnlyImportOrExport: () => isExclusivelyTypeOnlyImportOrExport,\n    isExportAssignment: () => isExportAssignment,\n    isExportDeclaration: () => isExportDeclaration,\n    isExportModifier: () => isExportModifier,\n    isExportName: () => isExportName,\n    isExportNamespaceAsDefaultDeclaration: () => isExportNamespaceAsDefaultDeclaration,\n    isExportOrDefaultModifier: () => isExportOrDefaultModifier,\n    isExportSpecifier: () => isExportSpecifier,\n    isExportsIdentifier: () => isExportsIdentifier,\n    isExportsOrModuleExportsOrAlias: () => isExportsOrModuleExportsOrAlias,\n    isExpression: () => isExpression,\n    isExpressionNode: () => isExpressionNode,\n    isExpressionOfExternalModuleImportEqualsDeclaration: () => isExpressionOfExternalModuleImportEqualsDeclaration,\n    isExpressionOfOptionalChainRoot: () => isExpressionOfOptionalChainRoot,\n    isExpressionStatement: () => isExpressionStatement,\n    isExpressionWithTypeArguments: () => isExpressionWithTypeArguments,\n    isExpressionWithTypeArgumentsInClassExtendsClause: () => isExpressionWithTypeArgumentsInClassExtendsClause,\n    isExternalModule: () => isExternalModule,\n    isExternalModuleAugmentation: () => isExternalModuleAugmentation,\n    isExternalModuleImportEqualsDeclaration: () => isExternalModuleImportEqualsDeclaration,\n    isExternalModuleIndicator: () => isExternalModuleIndicator,\n    isExternalModuleNameRelative: () => isExternalModuleNameRelative,\n    isExternalModuleReference: () => isExternalModuleReference,\n    isExternalModuleSymbol: () => isExternalModuleSymbol,\n    isExternalOrCommonJsModule: () => isExternalOrCommonJsModule,\n    isFileLevelUniqueName: () => isFileLevelUniqueName,\n    isFileProbablyExternalModule: () => isFileProbablyExternalModule,\n    isFirstDeclarationOfSymbolParameter: () => isFirstDeclarationOfSymbolParameter,\n    isFixablePromiseHandler: () => isFixablePromiseHandler,\n    isForInOrOfStatement: () => isForInOrOfStatement,\n    isForInStatement: () => isForInStatement,\n    isForInitializer: () => isForInitializer,\n    isForOfStatement: () => isForOfStatement,\n    isForStatement: () => isForStatement,\n    isFunctionBlock: () => isFunctionBlock,\n    isFunctionBody: () => isFunctionBody,\n    isFunctionDeclaration: () => isFunctionDeclaration,\n    isFunctionExpression: () => isFunctionExpression,\n    isFunctionExpressionOrArrowFunction: () => isFunctionExpressionOrArrowFunction,\n    isFunctionLike: () => isFunctionLike,\n    isFunctionLikeDeclaration: () => isFunctionLikeDeclaration,\n    isFunctionLikeKind: () => isFunctionLikeKind,\n    isFunctionLikeOrClassStaticBlockDeclaration: () => isFunctionLikeOrClassStaticBlockDeclaration,\n    isFunctionOrConstructorTypeNode: () => isFunctionOrConstructorTypeNode,\n    isFunctionOrModuleBlock: () => isFunctionOrModuleBlock,\n    isFunctionSymbol: () => isFunctionSymbol,\n    isFunctionTypeNode: () => isFunctionTypeNode,\n    isFutureReservedKeyword: () => isFutureReservedKeyword,\n    isGeneratedIdentifier: () => isGeneratedIdentifier,\n    isGeneratedPrivateIdentifier: () => isGeneratedPrivateIdentifier,\n    isGetAccessor: () => isGetAccessor,\n    isGetAccessorDeclaration: () => isGetAccessorDeclaration,\n    isGetOrSetAccessorDeclaration: () => isGetOrSetAccessorDeclaration,\n    isGlobalDeclaration: () => isGlobalDeclaration,\n    isGlobalScopeAugmentation: () => isGlobalScopeAugmentation,\n    isGrammarError: () => isGrammarError,\n    isHeritageClause: () => isHeritageClause,\n    isHoistedFunction: () => isHoistedFunction,\n    isHoistedVariableStatement: () => isHoistedVariableStatement,\n    isIdentifier: () => isIdentifier,\n    isIdentifierANonContextualKeyword: () => isIdentifierANonContextualKeyword,\n    isIdentifierName: () => isIdentifierName,\n    isIdentifierOrThisTypeNode: () => isIdentifierOrThisTypeNode,\n    isIdentifierPart: () => isIdentifierPart,\n    isIdentifierStart: () => isIdentifierStart,\n    isIdentifierText: () => isIdentifierText,\n    isIdentifierTypePredicate: () => isIdentifierTypePredicate,\n    isIdentifierTypeReference: () => isIdentifierTypeReference,\n    isIfStatement: () => isIfStatement,\n    isIgnoredFileFromWildCardWatching: () => isIgnoredFileFromWildCardWatching,\n    isImplicitGlob: () => isImplicitGlob,\n    isImportCall: () => isImportCall,\n    isImportClause: () => isImportClause,\n    isImportDeclaration: () => isImportDeclaration,\n    isImportEqualsDeclaration: () => isImportEqualsDeclaration,\n    isImportKeyword: () => isImportKeyword,\n    isImportMeta: () => isImportMeta,\n    isImportOrExportSpecifier: () => isImportOrExportSpecifier,\n    isImportOrExportSpecifierName: () => isImportOrExportSpecifierName,\n    isImportSpecifier: () => isImportSpecifier,\n    isImportTypeAssertionContainer: () => isImportTypeAssertionContainer,\n    isImportTypeNode: () => isImportTypeNode,\n    isImportableFile: () => isImportableFile,\n    isInComment: () => isInComment,\n    isInExpressionContext: () => isInExpressionContext,\n    isInJSDoc: () => isInJSDoc,\n    isInJSFile: () => isInJSFile,\n    isInJSXText: () => isInJSXText,\n    isInJsonFile: () => isInJsonFile,\n    isInNonReferenceComment: () => isInNonReferenceComment,\n    isInReferenceComment: () => isInReferenceComment,\n    isInRightSideOfInternalImportEqualsDeclaration: () => isInRightSideOfInternalImportEqualsDeclaration,\n    isInString: () => isInString,\n    isInTemplateString: () => isInTemplateString,\n    isInTopLevelContext: () => isInTopLevelContext,\n    isIncrementalCompilation: () => isIncrementalCompilation,\n    isIndexSignatureDeclaration: () => isIndexSignatureDeclaration,\n    isIndexedAccessTypeNode: () => isIndexedAccessTypeNode,\n    isInferTypeNode: () => isInferTypeNode,\n    isInfinityOrNaNString: () => isInfinityOrNaNString,\n    isInitializedProperty: () => isInitializedProperty,\n    isInitializedVariable: () => isInitializedVariable,\n    isInsideJsxElement: () => isInsideJsxElement,\n    isInsideJsxElementOrAttribute: () => isInsideJsxElementOrAttribute,\n    isInsideNodeModules: () => isInsideNodeModules,\n    isInsideTemplateLiteral: () => isInsideTemplateLiteral,\n    isInstantiatedModule: () => isInstantiatedModule,\n    isInterfaceDeclaration: () => isInterfaceDeclaration,\n    isInternalDeclaration: () => isInternalDeclaration,\n    isInternalModuleImportEqualsDeclaration: () => isInternalModuleImportEqualsDeclaration,\n    isInternalName: () => isInternalName,\n    isIntersectionTypeNode: () => isIntersectionTypeNode,\n    isIntrinsicJsxName: () => isIntrinsicJsxName,\n    isIterationStatement: () => isIterationStatement,\n    isJSDoc: () => isJSDoc,\n    isJSDocAllType: () => isJSDocAllType,\n    isJSDocAugmentsTag: () => isJSDocAugmentsTag,\n    isJSDocAuthorTag: () => isJSDocAuthorTag,\n    isJSDocCallbackTag: () => isJSDocCallbackTag,\n    isJSDocClassTag: () => isJSDocClassTag,\n    isJSDocCommentContainingNode: () => isJSDocCommentContainingNode,\n    isJSDocConstructSignature: () => isJSDocConstructSignature,\n    isJSDocDeprecatedTag: () => isJSDocDeprecatedTag,\n    isJSDocEnumTag: () => isJSDocEnumTag,\n    isJSDocFunctionType: () => isJSDocFunctionType,\n    isJSDocImplementsTag: () => isJSDocImplementsTag,\n    isJSDocIndexSignature: () => isJSDocIndexSignature,\n    isJSDocLikeText: () => isJSDocLikeText,\n    isJSDocLink: () => isJSDocLink,\n    isJSDocLinkCode: () => isJSDocLinkCode,\n    isJSDocLinkLike: () => isJSDocLinkLike,\n    isJSDocLinkPlain: () => isJSDocLinkPlain,\n    isJSDocMemberName: () => isJSDocMemberName,\n    isJSDocNameReference: () => isJSDocNameReference,\n    isJSDocNamepathType: () => isJSDocNamepathType,\n    isJSDocNamespaceBody: () => isJSDocNamespaceBody,\n    isJSDocNode: () => isJSDocNode,\n    isJSDocNonNullableType: () => isJSDocNonNullableType,\n    isJSDocNullableType: () => isJSDocNullableType,\n    isJSDocOptionalParameter: () => isJSDocOptionalParameter,\n    isJSDocOptionalType: () => isJSDocOptionalType,\n    isJSDocOverloadTag: () => isJSDocOverloadTag,\n    isJSDocOverrideTag: () => isJSDocOverrideTag,\n    isJSDocParameterTag: () => isJSDocParameterTag,\n    isJSDocPrivateTag: () => isJSDocPrivateTag,\n    isJSDocPropertyLikeTag: () => isJSDocPropertyLikeTag,\n    isJSDocPropertyTag: () => isJSDocPropertyTag,\n    isJSDocProtectedTag: () => isJSDocProtectedTag,\n    isJSDocPublicTag: () => isJSDocPublicTag,\n    isJSDocReadonlyTag: () => isJSDocReadonlyTag,\n    isJSDocReturnTag: () => isJSDocReturnTag,\n    isJSDocSatisfiesExpression: () => isJSDocSatisfiesExpression,\n    isJSDocSatisfiesTag: () => isJSDocSatisfiesTag,\n    isJSDocSeeTag: () => isJSDocSeeTag,\n    isJSDocSignature: () => isJSDocSignature,\n    isJSDocTag: () => isJSDocTag,\n    isJSDocTemplateTag: () => isJSDocTemplateTag,\n    isJSDocThisTag: () => isJSDocThisTag,\n    isJSDocThrowsTag: () => isJSDocThrowsTag,\n    isJSDocTypeAlias: () => isJSDocTypeAlias,\n    isJSDocTypeAssertion: () => isJSDocTypeAssertion,\n    isJSDocTypeExpression: () => isJSDocTypeExpression,\n    isJSDocTypeLiteral: () => isJSDocTypeLiteral,\n    isJSDocTypeTag: () => isJSDocTypeTag,\n    isJSDocTypedefTag: () => isJSDocTypedefTag,\n    isJSDocUnknownTag: () => isJSDocUnknownTag,\n    isJSDocUnknownType: () => isJSDocUnknownType,\n    isJSDocVariadicType: () => isJSDocVariadicType,\n    isJSXTagName: () => isJSXTagName,\n    isJsonEqual: () => isJsonEqual,\n    isJsonSourceFile: () => isJsonSourceFile,\n    isJsxAttribute: () => isJsxAttribute,\n    isJsxAttributeLike: () => isJsxAttributeLike,\n    isJsxAttributes: () => isJsxAttributes,\n    isJsxChild: () => isJsxChild,\n    isJsxClosingElement: () => isJsxClosingElement,\n    isJsxClosingFragment: () => isJsxClosingFragment,\n    isJsxElement: () => isJsxElement,\n    isJsxExpression: () => isJsxExpression,\n    isJsxFragment: () => isJsxFragment,\n    isJsxOpeningElement: () => isJsxOpeningElement,\n    isJsxOpeningFragment: () => isJsxOpeningFragment,\n    isJsxOpeningLikeElement: () => isJsxOpeningLikeElement,\n    isJsxOpeningLikeElementTagName: () => isJsxOpeningLikeElementTagName,\n    isJsxSelfClosingElement: () => isJsxSelfClosingElement,\n    isJsxSpreadAttribute: () => isJsxSpreadAttribute,\n    isJsxTagNameExpression: () => isJsxTagNameExpression,\n    isJsxText: () => isJsxText,\n    isJumpStatementTarget: () => isJumpStatementTarget,\n    isKeyword: () => isKeyword,\n    isKnownSymbol: () => isKnownSymbol,\n    isLabelName: () => isLabelName,\n    isLabelOfLabeledStatement: () => isLabelOfLabeledStatement,\n    isLabeledStatement: () => isLabeledStatement,\n    isLateVisibilityPaintedStatement: () => isLateVisibilityPaintedStatement,\n    isLeftHandSideExpression: () => isLeftHandSideExpression,\n    isLeftHandSideOfAssignment: () => isLeftHandSideOfAssignment,\n    isLet: () => isLet,\n    isLineBreak: () => isLineBreak,\n    isLiteralComputedPropertyDeclarationName: () => isLiteralComputedPropertyDeclarationName,\n    isLiteralExpression: () => isLiteralExpression,\n    isLiteralExpressionOfObject: () => isLiteralExpressionOfObject,\n    isLiteralImportTypeNode: () => isLiteralImportTypeNode,\n    isLiteralKind: () => isLiteralKind,\n    isLiteralLikeAccess: () => isLiteralLikeAccess,\n    isLiteralLikeElementAccess: () => isLiteralLikeElementAccess,\n    isLiteralNameOfPropertyDeclarationOrIndexAccess: () => isLiteralNameOfPropertyDeclarationOrIndexAccess,\n    isLiteralTypeLikeExpression: () => isLiteralTypeLikeExpression,\n    isLiteralTypeLiteral: () => isLiteralTypeLiteral,\n    isLiteralTypeNode: () => isLiteralTypeNode,\n    isLocalName: () => isLocalName,\n    isLogicalOperator: () => isLogicalOperator,\n    isLogicalOrCoalescingAssignmentExpression: () => isLogicalOrCoalescingAssignmentExpression,\n    isLogicalOrCoalescingAssignmentOperator: () => isLogicalOrCoalescingAssignmentOperator,\n    isLogicalOrCoalescingBinaryExpression: () => isLogicalOrCoalescingBinaryExpression,\n    isLogicalOrCoalescingBinaryOperator: () => isLogicalOrCoalescingBinaryOperator,\n    isMappedTypeNode: () => isMappedTypeNode,\n    isMemberName: () => isMemberName,\n    isMergeDeclarationMarker: () => isMergeDeclarationMarker,\n    isMetaProperty: () => isMetaProperty,\n    isMethodDeclaration: () => isMethodDeclaration,\n    isMethodOrAccessor: () => isMethodOrAccessor,\n    isMethodSignature: () => isMethodSignature,\n    isMinusToken: () => isMinusToken,\n    isMissingDeclaration: () => isMissingDeclaration,\n    isModifier: () => isModifier,\n    isModifierKind: () => isModifierKind,\n    isModifierLike: () => isModifierLike,\n    isModuleAugmentationExternal: () => isModuleAugmentationExternal,\n    isModuleBlock: () => isModuleBlock,\n    isModuleBody: () => isModuleBody,\n    isModuleDeclaration: () => isModuleDeclaration,\n    isModuleExportsAccessExpression: () => isModuleExportsAccessExpression,\n    isModuleIdentifier: () => isModuleIdentifier,\n    isModuleName: () => isModuleName,\n    isModuleOrEnumDeclaration: () => isModuleOrEnumDeclaration,\n    isModuleReference: () => isModuleReference,\n    isModuleSpecifierLike: () => isModuleSpecifierLike,\n    isModuleWithStringLiteralName: () => isModuleWithStringLiteralName,\n    isNameOfFunctionDeclaration: () => isNameOfFunctionDeclaration,\n    isNameOfModuleDeclaration: () => isNameOfModuleDeclaration,\n    isNamedClassElement: () => isNamedClassElement,\n    isNamedDeclaration: () => isNamedDeclaration,\n    isNamedEvaluation: () => isNamedEvaluation,\n    isNamedEvaluationSource: () => isNamedEvaluationSource,\n    isNamedExportBindings: () => isNamedExportBindings,\n    isNamedExports: () => isNamedExports,\n    isNamedImportBindings: () => isNamedImportBindings,\n    isNamedImports: () => isNamedImports,\n    isNamedImportsOrExports: () => isNamedImportsOrExports,\n    isNamedTupleMember: () => isNamedTupleMember,\n    isNamespaceBody: () => isNamespaceBody,\n    isNamespaceExport: () => isNamespaceExport,\n    isNamespaceExportDeclaration: () => isNamespaceExportDeclaration,\n    isNamespaceImport: () => isNamespaceImport,\n    isNamespaceReexportDeclaration: () => isNamespaceReexportDeclaration,\n    isNewExpression: () => isNewExpression,\n    isNewExpressionTarget: () => isNewExpressionTarget,\n    isNightly: () => isNightly,\n    isNoSubstitutionTemplateLiteral: () => isNoSubstitutionTemplateLiteral,\n    isNode: () => isNode,\n    isNodeArray: () => isNodeArray,\n    isNodeArrayMultiLine: () => isNodeArrayMultiLine,\n    isNodeDescendantOf: () => isNodeDescendantOf,\n    isNodeKind: () => isNodeKind,\n    isNodeLikeSystem: () => isNodeLikeSystem,\n    isNodeModulesDirectory: () => isNodeModulesDirectory,\n    isNodeWithPossibleHoistedDeclaration: () => isNodeWithPossibleHoistedDeclaration,\n    isNonContextualKeyword: () => isNonContextualKeyword,\n    isNonExportDefaultModifier: () => isNonExportDefaultModifier,\n    isNonGlobalAmbientModule: () => isNonGlobalAmbientModule,\n    isNonGlobalDeclaration: () => isNonGlobalDeclaration,\n    isNonNullAccess: () => isNonNullAccess,\n    isNonNullChain: () => isNonNullChain,\n    isNonNullExpression: () => isNonNullExpression,\n    isNonStaticMethodOrAccessorWithPrivateName: () => isNonStaticMethodOrAccessorWithPrivateName,\n    isNotEmittedOrPartiallyEmittedNode: () => isNotEmittedOrPartiallyEmittedNode,\n    isNotEmittedStatement: () => isNotEmittedStatement,\n    isNullishCoalesce: () => isNullishCoalesce,\n    isNumber: () => isNumber,\n    isNumericLiteral: () => isNumericLiteral,\n    isNumericLiteralName: () => isNumericLiteralName,\n    isObjectBindingElementWithoutPropertyName: () => isObjectBindingElementWithoutPropertyName,\n    isObjectBindingOrAssignmentElement: () => isObjectBindingOrAssignmentElement,\n    isObjectBindingOrAssignmentPattern: () => isObjectBindingOrAssignmentPattern,\n    isObjectBindingPattern: () => isObjectBindingPattern,\n    isObjectLiteralElement: () => isObjectLiteralElement,\n    isObjectLiteralElementLike: () => isObjectLiteralElementLike,\n    isObjectLiteralExpression: () => isObjectLiteralExpression,\n    isObjectLiteralMethod: () => isObjectLiteralMethod,\n    isObjectLiteralOrClassExpressionMethodOrAccessor: () => isObjectLiteralOrClassExpressionMethodOrAccessor,\n    isObjectTypeDeclaration: () => isObjectTypeDeclaration,\n    isOctalDigit: () => isOctalDigit,\n    isOmittedExpression: () => isOmittedExpression,\n    isOptionalChain: () => isOptionalChain,\n    isOptionalChainRoot: () => isOptionalChainRoot,\n    isOptionalDeclaration: () => isOptionalDeclaration,\n    isOptionalJSDocPropertyLikeTag: () => isOptionalJSDocPropertyLikeTag,\n    isOptionalTypeNode: () => isOptionalTypeNode,\n    isOuterExpression: () => isOuterExpression,\n    isOutermostOptionalChain: () => isOutermostOptionalChain,\n    isOverrideModifier: () => isOverrideModifier,\n    isPackedArrayLiteral: () => isPackedArrayLiteral,\n    isParameter: () => isParameter,\n    isParameterDeclaration: () => isParameterDeclaration,\n    isParameterOrCatchClauseVariable: () => isParameterOrCatchClauseVariable,\n    isParameterPropertyDeclaration: () => isParameterPropertyDeclaration,\n    isParameterPropertyModifier: () => isParameterPropertyModifier,\n    isParenthesizedExpression: () => isParenthesizedExpression,\n    isParenthesizedTypeNode: () => isParenthesizedTypeNode,\n    isParseTreeNode: () => isParseTreeNode,\n    isPartOfTypeNode: () => isPartOfTypeNode,\n    isPartOfTypeQuery: () => isPartOfTypeQuery,\n    isPartiallyEmittedExpression: () => isPartiallyEmittedExpression,\n    isPatternMatch: () => isPatternMatch,\n    isPinnedComment: () => isPinnedComment,\n    isPlainJsFile: () => isPlainJsFile,\n    isPlusToken: () => isPlusToken,\n    isPossiblyTypeArgumentPosition: () => isPossiblyTypeArgumentPosition,\n    isPostfixUnaryExpression: () => isPostfixUnaryExpression,\n    isPrefixUnaryExpression: () => isPrefixUnaryExpression,\n    isPrivateIdentifier: () => isPrivateIdentifier,\n    isPrivateIdentifierClassElementDeclaration: () => isPrivateIdentifierClassElementDeclaration,\n    isPrivateIdentifierPropertyAccessExpression: () => isPrivateIdentifierPropertyAccessExpression,\n    isPrivateIdentifierSymbol: () => isPrivateIdentifierSymbol,\n    isProgramBundleEmitBuildInfo: () => isProgramBundleEmitBuildInfo,\n    isProgramUptoDate: () => isProgramUptoDate,\n    isPrologueDirective: () => isPrologueDirective,\n    isPropertyAccessChain: () => isPropertyAccessChain,\n    isPropertyAccessEntityNameExpression: () => isPropertyAccessEntityNameExpression,\n    isPropertyAccessExpression: () => isPropertyAccessExpression,\n    isPropertyAccessOrQualifiedName: () => isPropertyAccessOrQualifiedName,\n    isPropertyAccessOrQualifiedNameOrImportTypeNode: () => isPropertyAccessOrQualifiedNameOrImportTypeNode,\n    isPropertyAssignment: () => isPropertyAssignment,\n    isPropertyDeclaration: () => isPropertyDeclaration,\n    isPropertyName: () => isPropertyName,\n    isPropertyNameLiteral: () => isPropertyNameLiteral,\n    isPropertySignature: () => isPropertySignature,\n    isProtoSetter: () => isProtoSetter,\n    isPrototypeAccess: () => isPrototypeAccess,\n    isPrototypePropertyAssignment: () => isPrototypePropertyAssignment,\n    isPunctuation: () => isPunctuation,\n    isPushOrUnshiftIdentifier: () => isPushOrUnshiftIdentifier,\n    isQualifiedName: () => isQualifiedName,\n    isQuestionDotToken: () => isQuestionDotToken,\n    isQuestionOrExclamationToken: () => isQuestionOrExclamationToken,\n    isQuestionOrPlusOrMinusToken: () => isQuestionOrPlusOrMinusToken,\n    isQuestionToken: () => isQuestionToken,\n    isRawSourceMap: () => isRawSourceMap,\n    isReadonlyKeyword: () => isReadonlyKeyword,\n    isReadonlyKeywordOrPlusOrMinusToken: () => isReadonlyKeywordOrPlusOrMinusToken,\n    isRecognizedTripleSlashComment: () => isRecognizedTripleSlashComment,\n    isReferenceFileLocation: () => isReferenceFileLocation,\n    isReferencedFile: () => isReferencedFile,\n    isRegularExpressionLiteral: () => isRegularExpressionLiteral,\n    isRequireCall: () => isRequireCall,\n    isRequireVariableStatement: () => isRequireVariableStatement,\n    isRestParameter: () => isRestParameter,\n    isRestTypeNode: () => isRestTypeNode,\n    isReturnStatement: () => isReturnStatement,\n    isReturnStatementWithFixablePromiseHandler: () => isReturnStatementWithFixablePromiseHandler,\n    isRightSideOfAccessExpression: () => isRightSideOfAccessExpression,\n    isRightSideOfPropertyAccess: () => isRightSideOfPropertyAccess,\n    isRightSideOfQualifiedName: () => isRightSideOfQualifiedName,\n    isRightSideOfQualifiedNameOrPropertyAccess: () => isRightSideOfQualifiedNameOrPropertyAccess,\n    isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName: () => isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName,\n    isRootedDiskPath: () => isRootedDiskPath,\n    isSameEntityName: () => isSameEntityName,\n    isSatisfiesExpression: () => isSatisfiesExpression,\n    isScopeMarker: () => isScopeMarker,\n    isSemicolonClassElement: () => isSemicolonClassElement,\n    isSetAccessor: () => isSetAccessor,\n    isSetAccessorDeclaration: () => isSetAccessorDeclaration,\n    isShebangTrivia: () => isShebangTrivia,\n    isShorthandAmbientModuleSymbol: () => isShorthandAmbientModuleSymbol,\n    isShorthandPropertyAssignment: () => isShorthandPropertyAssignment,\n    isSignedNumericLiteral: () => isSignedNumericLiteral,\n    isSimpleCopiableExpression: () => isSimpleCopiableExpression,\n    isSimpleInlineableExpression: () => isSimpleInlineableExpression,\n    isSingleOrDoubleQuote: () => isSingleOrDoubleQuote,\n    isSourceFile: () => isSourceFile,\n    isSourceFileFromLibrary: () => isSourceFileFromLibrary,\n    isSourceFileJS: () => isSourceFileJS,\n    isSourceFileNotJS: () => isSourceFileNotJS,\n    isSourceFileNotJson: () => isSourceFileNotJson,\n    isSourceMapping: () => isSourceMapping,\n    isSpecialPropertyDeclaration: () => isSpecialPropertyDeclaration,\n    isSpreadAssignment: () => isSpreadAssignment,\n    isSpreadElement: () => isSpreadElement,\n    isStatement: () => isStatement,\n    isStatementButNotDeclaration: () => isStatementButNotDeclaration,\n    isStatementOrBlock: () => isStatementOrBlock,\n    isStatementWithLocals: () => isStatementWithLocals,\n    isStatic: () => isStatic,\n    isStaticModifier: () => isStaticModifier,\n    isString: () => isString,\n    isStringAKeyword: () => isStringAKeyword,\n    isStringANonContextualKeyword: () => isStringANonContextualKeyword,\n    isStringAndEmptyAnonymousObjectIntersection: () => isStringAndEmptyAnonymousObjectIntersection,\n    isStringDoubleQuoted: () => isStringDoubleQuoted,\n    isStringLiteral: () => isStringLiteral,\n    isStringLiteralLike: () => isStringLiteralLike,\n    isStringLiteralOrJsxExpression: () => isStringLiteralOrJsxExpression,\n    isStringLiteralOrTemplate: () => isStringLiteralOrTemplate,\n    isStringOrNumericLiteralLike: () => isStringOrNumericLiteralLike,\n    isStringOrRegularExpressionOrTemplateLiteral: () => isStringOrRegularExpressionOrTemplateLiteral,\n    isStringTextContainingNode: () => isStringTextContainingNode,\n    isSuperCall: () => isSuperCall,\n    isSuperKeyword: () => isSuperKeyword,\n    isSuperOrSuperProperty: () => isSuperOrSuperProperty,\n    isSuperProperty: () => isSuperProperty,\n    isSupportedSourceFileName: () => isSupportedSourceFileName,\n    isSwitchStatement: () => isSwitchStatement,\n    isSyntaxList: () => isSyntaxList,\n    isSyntheticExpression: () => isSyntheticExpression,\n    isSyntheticReference: () => isSyntheticReference,\n    isTagName: () => isTagName,\n    isTaggedTemplateExpression: () => isTaggedTemplateExpression,\n    isTaggedTemplateTag: () => isTaggedTemplateTag,\n    isTemplateExpression: () => isTemplateExpression,\n    isTemplateHead: () => isTemplateHead,\n    isTemplateLiteral: () => isTemplateLiteral,\n    isTemplateLiteralKind: () => isTemplateLiteralKind,\n    isTemplateLiteralToken: () => isTemplateLiteralToken,\n    isTemplateLiteralTypeNode: () => isTemplateLiteralTypeNode,\n    isTemplateLiteralTypeSpan: () => isTemplateLiteralTypeSpan,\n    isTemplateMiddle: () => isTemplateMiddle,\n    isTemplateMiddleOrTemplateTail: () => isTemplateMiddleOrTemplateTail,\n    isTemplateSpan: () => isTemplateSpan,\n    isTemplateTail: () => isTemplateTail,\n    isTextWhiteSpaceLike: () => isTextWhiteSpaceLike,\n    isThis: () => isThis,\n    isThisContainerOrFunctionBlock: () => isThisContainerOrFunctionBlock,\n    isThisIdentifier: () => isThisIdentifier,\n    isThisInTypeQuery: () => isThisInTypeQuery,\n    isThisInitializedDeclaration: () => isThisInitializedDeclaration,\n    isThisInitializedObjectBindingExpression: () => isThisInitializedObjectBindingExpression,\n    isThisProperty: () => isThisProperty,\n    isThisTypeNode: () => isThisTypeNode,\n    isThisTypeParameter: () => isThisTypeParameter,\n    isThisTypePredicate: () => isThisTypePredicate,\n    isThrowStatement: () => isThrowStatement,\n    isToken: () => isToken,\n    isTokenKind: () => isTokenKind,\n    isTraceEnabled: () => isTraceEnabled,\n    isTransientSymbol: () => isTransientSymbol,\n    isTrivia: () => isTrivia,\n    isTryStatement: () => isTryStatement,\n    isTupleTypeNode: () => isTupleTypeNode,\n    isTypeAlias: () => isTypeAlias,\n    isTypeAliasDeclaration: () => isTypeAliasDeclaration,\n    isTypeAssertionExpression: () => isTypeAssertionExpression,\n    isTypeDeclaration: () => isTypeDeclaration,\n    isTypeElement: () => isTypeElement,\n    isTypeKeyword: () => isTypeKeyword,\n    isTypeKeywordToken: () => isTypeKeywordToken,\n    isTypeKeywordTokenOrIdentifier: () => isTypeKeywordTokenOrIdentifier,\n    isTypeLiteralNode: () => isTypeLiteralNode,\n    isTypeNode: () => isTypeNode,\n    isTypeNodeKind: () => isTypeNodeKind,\n    isTypeOfExpression: () => isTypeOfExpression,\n    isTypeOnlyExportDeclaration: () => isTypeOnlyExportDeclaration,\n    isTypeOnlyImportDeclaration: () => isTypeOnlyImportDeclaration,\n    isTypeOnlyImportOrExportDeclaration: () => isTypeOnlyImportOrExportDeclaration,\n    isTypeOperatorNode: () => isTypeOperatorNode,\n    isTypeParameterDeclaration: () => isTypeParameterDeclaration,\n    isTypePredicateNode: () => isTypePredicateNode,\n    isTypeQueryNode: () => isTypeQueryNode,\n    isTypeReferenceNode: () => isTypeReferenceNode,\n    isTypeReferenceType: () => isTypeReferenceType,\n    isUMDExportSymbol: () => isUMDExportSymbol,\n    isUnaryExpression: () => isUnaryExpression,\n    isUnaryExpressionWithWrite: () => isUnaryExpressionWithWrite,\n    isUnicodeIdentifierStart: () => isUnicodeIdentifierStart,\n    isUnionTypeNode: () => isUnionTypeNode,\n    isUnparsedNode: () => isUnparsedNode,\n    isUnparsedPrepend: () => isUnparsedPrepend,\n    isUnparsedSource: () => isUnparsedSource,\n    isUnparsedTextLike: () => isUnparsedTextLike,\n    isUrl: () => isUrl,\n    isValidBigIntString: () => isValidBigIntString,\n    isValidESSymbolDeclaration: () => isValidESSymbolDeclaration,\n    isValidTypeOnlyAliasUseSite: () => isValidTypeOnlyAliasUseSite,\n    isValueSignatureDeclaration: () => isValueSignatureDeclaration,\n    isVarConst: () => isVarConst,\n    isVariableDeclaration: () => isVariableDeclaration,\n    isVariableDeclarationInVariableStatement: () => isVariableDeclarationInVariableStatement,\n    isVariableDeclarationInitializedToBareOrAccessedRequire: () => isVariableDeclarationInitializedToBareOrAccessedRequire,\n    isVariableDeclarationInitializedToRequire: () => isVariableDeclarationInitializedToRequire,\n    isVariableDeclarationList: () => isVariableDeclarationList,\n    isVariableLike: () => isVariableLike,\n    isVariableLikeOrAccessor: () => isVariableLikeOrAccessor,\n    isVariableStatement: () => isVariableStatement,\n    isVoidExpression: () => isVoidExpression,\n    isWatchSet: () => isWatchSet,\n    isWhileStatement: () => isWhileStatement,\n    isWhiteSpaceLike: () => isWhiteSpaceLike,\n    isWhiteSpaceSingleLine: () => isWhiteSpaceSingleLine,\n    isWithStatement: () => isWithStatement,\n    isWriteAccess: () => isWriteAccess,\n    isWriteOnlyAccess: () => isWriteOnlyAccess,\n    isYieldExpression: () => isYieldExpression,\n    jsxModeNeedsExplicitImport: () => jsxModeNeedsExplicitImport,\n    keywordPart: () => keywordPart,\n    last: () => last,\n    lastOrUndefined: () => lastOrUndefined,\n    length: () => length,\n    libMap: () => libMap,\n    libs: () => libs,\n    lineBreakPart: () => lineBreakPart,\n    linkNamePart: () => linkNamePart,\n    linkPart: () => linkPart,\n    linkTextPart: () => linkTextPart,\n    listFiles: () => listFiles,\n    loadModuleFromGlobalCache: () => loadModuleFromGlobalCache,\n    loadWithModeAwareCache: () => loadWithModeAwareCache,\n    makeIdentifierFromModuleName: () => makeIdentifierFromModuleName,\n    makeImport: () => makeImport,\n    makeImportIfNecessary: () => makeImportIfNecessary,\n    makeStringLiteral: () => makeStringLiteral,\n    mangleScopedPackageName: () => mangleScopedPackageName,\n    map: () => map,\n    mapAllOrFail: () => mapAllOrFail,\n    mapDefined: () => mapDefined,\n    mapDefinedEntries: () => mapDefinedEntries,\n    mapDefinedIterator: () => mapDefinedIterator,\n    mapEntries: () => mapEntries,\n    mapIterator: () => mapIterator,\n    mapOneOrMany: () => mapOneOrMany,\n    mapToDisplayParts: () => mapToDisplayParts,\n    matchFiles: () => matchFiles,\n    matchPatternOrExact: () => matchPatternOrExact,\n    matchedText: () => matchedText,\n    matchesExclude: () => matchesExclude,\n    maybeBind: () => maybeBind,\n    maybeSetLocalizedDiagnosticMessages: () => maybeSetLocalizedDiagnosticMessages,\n    memoize: () => memoize,\n    memoizeCached: () => memoizeCached,\n    memoizeOne: () => memoizeOne,\n    memoizeWeak: () => memoizeWeak,\n    metadataHelper: () => metadataHelper,\n    min: () => min,\n    minAndMax: () => minAndMax,\n    missingFileModifiedTime: () => missingFileModifiedTime,\n    modifierToFlag: () => modifierToFlag,\n    modifiersToFlags: () => modifiersToFlags,\n    moduleOptionDeclaration: () => moduleOptionDeclaration,\n    moduleResolutionIsEqualTo: () => moduleResolutionIsEqualTo,\n    moduleResolutionNameAndModeGetter: () => moduleResolutionNameAndModeGetter,\n    moduleResolutionOptionDeclarations: () => moduleResolutionOptionDeclarations,\n    moduleResolutionSupportsPackageJsonExportsAndImports: () => moduleResolutionSupportsPackageJsonExportsAndImports,\n    moduleResolutionUsesNodeModules: () => moduleResolutionUsesNodeModules,\n    moduleSpecifiers: () => ts_moduleSpecifiers_exports,\n    moveEmitHelpers: () => moveEmitHelpers,\n    moveRangeEnd: () => moveRangeEnd,\n    moveRangePastDecorators: () => moveRangePastDecorators,\n    moveRangePastModifiers: () => moveRangePastModifiers,\n    moveRangePos: () => moveRangePos,\n    moveSyntheticComments: () => moveSyntheticComments,\n    mutateMap: () => mutateMap,\n    mutateMapSkippingNewValues: () => mutateMapSkippingNewValues,\n    needsParentheses: () => needsParentheses,\n    needsScopeMarker: () => needsScopeMarker,\n    newCaseClauseTracker: () => newCaseClauseTracker,\n    newPrivateEnvironment: () => newPrivateEnvironment,\n    noEmitNotification: () => noEmitNotification,\n    noEmitSubstitution: () => noEmitSubstitution,\n    noTransformers: () => noTransformers,\n    noTruncationMaximumTruncationLength: () => noTruncationMaximumTruncationLength,\n    nodeCanBeDecorated: () => nodeCanBeDecorated,\n    nodeHasName: () => nodeHasName,\n    nodeIsDecorated: () => nodeIsDecorated,\n    nodeIsMissing: () => nodeIsMissing,\n    nodeIsPresent: () => nodeIsPresent,\n    nodeIsSynthesized: () => nodeIsSynthesized,\n    nodeModuleNameResolver: () => nodeModuleNameResolver,\n    nodeModulesPathPart: () => nodeModulesPathPart,\n    nodeNextJsonConfigResolver: () => nodeNextJsonConfigResolver,\n    nodeOrChildIsDecorated: () => nodeOrChildIsDecorated,\n    nodeOverlapsWithStartEnd: () => nodeOverlapsWithStartEnd,\n    nodePosToString: () => nodePosToString,\n    nodeSeenTracker: () => nodeSeenTracker,\n    nodeStartsNewLexicalEnvironment: () => nodeStartsNewLexicalEnvironment,\n    nodeToDisplayParts: () => nodeToDisplayParts,\n    noop: () => noop,\n    noopFileWatcher: () => noopFileWatcher,\n    noopPush: () => noopPush,\n    normalizePath: () => normalizePath,\n    normalizeSlashes: () => normalizeSlashes,\n    not: () => not,\n    notImplemented: () => notImplemented,\n    notImplementedResolver: () => notImplementedResolver,\n    nullNodeConverters: () => nullNodeConverters,\n    nullParenthesizerRules: () => nullParenthesizerRules,\n    nullTransformationContext: () => nullTransformationContext,\n    objectAllocator: () => objectAllocator,\n    operatorPart: () => operatorPart,\n    optionDeclarations: () => optionDeclarations,\n    optionMapToObject: () => optionMapToObject,\n    optionsAffectingProgramStructure: () => optionsAffectingProgramStructure,\n    optionsForBuild: () => optionsForBuild,\n    optionsForWatch: () => optionsForWatch,\n    optionsHaveChanges: () => optionsHaveChanges,\n    optionsHaveModuleResolutionChanges: () => optionsHaveModuleResolutionChanges,\n    or: () => or,\n    orderedRemoveItem: () => orderedRemoveItem,\n    orderedRemoveItemAt: () => orderedRemoveItemAt,\n    outFile: () => outFile,\n    packageIdToPackageName: () => packageIdToPackageName,\n    packageIdToString: () => packageIdToString,\n    padLeft: () => padLeft,\n    padRight: () => padRight,\n    paramHelper: () => paramHelper,\n    parameterIsThisKeyword: () => parameterIsThisKeyword,\n    parameterNamePart: () => parameterNamePart,\n    parseBaseNodeFactory: () => parseBaseNodeFactory,\n    parseBigInt: () => parseBigInt,\n    parseBuildCommand: () => parseBuildCommand,\n    parseCommandLine: () => parseCommandLine,\n    parseCommandLineWorker: () => parseCommandLineWorker,\n    parseConfigFileTextToJson: () => parseConfigFileTextToJson,\n    parseConfigFileWithSystem: () => parseConfigFileWithSystem,\n    parseConfigHostFromCompilerHostLike: () => parseConfigHostFromCompilerHostLike,\n    parseCustomTypeOption: () => parseCustomTypeOption,\n    parseIsolatedEntityName: () => parseIsolatedEntityName,\n    parseIsolatedJSDocComment: () => parseIsolatedJSDocComment,\n    parseJSDocTypeExpressionForTests: () => parseJSDocTypeExpressionForTests,\n    parseJsonConfigFileContent: () => parseJsonConfigFileContent,\n    parseJsonSourceFileConfigFileContent: () => parseJsonSourceFileConfigFileContent,\n    parseJsonText: () => parseJsonText,\n    parseListTypeOption: () => parseListTypeOption,\n    parseNodeFactory: () => parseNodeFactory,\n    parseNodeModuleFromPath: () => parseNodeModuleFromPath,\n    parsePackageName: () => parsePackageName,\n    parsePseudoBigInt: () => parsePseudoBigInt,\n    parseValidBigInt: () => parseValidBigInt,\n    patchWriteFileEnsuringDirectory: () => patchWriteFileEnsuringDirectory,\n    pathContainsNodeModules: () => pathContainsNodeModules,\n    pathIsAbsolute: () => pathIsAbsolute,\n    pathIsBareSpecifier: () => pathIsBareSpecifier,\n    pathIsRelative: () => pathIsRelative,\n    patternText: () => patternText,\n    perfLogger: () => perfLogger,\n    performIncrementalCompilation: () => performIncrementalCompilation,\n    performance: () => ts_performance_exports,\n    plainJSErrors: () => plainJSErrors,\n    positionBelongsToNode: () => positionBelongsToNode,\n    positionIsASICandidate: () => positionIsASICandidate,\n    positionIsSynthesized: () => positionIsSynthesized,\n    positionsAreOnSameLine: () => positionsAreOnSameLine,\n    preProcessFile: () => preProcessFile,\n    probablyUsesSemicolons: () => probablyUsesSemicolons,\n    processCommentPragmas: () => processCommentPragmas,\n    processPragmasIntoFields: () => processPragmasIntoFields,\n    processTaggedTemplateExpression: () => processTaggedTemplateExpression,\n    programContainsEsModules: () => programContainsEsModules,\n    programContainsModules: () => programContainsModules,\n    projectReferenceIsEqualTo: () => projectReferenceIsEqualTo,\n    propKeyHelper: () => propKeyHelper,\n    propertyNamePart: () => propertyNamePart,\n    pseudoBigIntToString: () => pseudoBigIntToString,\n    punctuationPart: () => punctuationPart,\n    pushIfUnique: () => pushIfUnique,\n    quote: () => quote,\n    quotePreferenceFromString: () => quotePreferenceFromString,\n    rangeContainsPosition: () => rangeContainsPosition,\n    rangeContainsPositionExclusive: () => rangeContainsPositionExclusive,\n    rangeContainsRange: () => rangeContainsRange,\n    rangeContainsRangeExclusive: () => rangeContainsRangeExclusive,\n    rangeContainsStartEnd: () => rangeContainsStartEnd,\n    rangeEndIsOnSameLineAsRangeStart: () => rangeEndIsOnSameLineAsRangeStart,\n    rangeEndPositionsAreOnSameLine: () => rangeEndPositionsAreOnSameLine,\n    rangeEquals: () => rangeEquals,\n    rangeIsOnSingleLine: () => rangeIsOnSingleLine,\n    rangeOfNode: () => rangeOfNode,\n    rangeOfTypeParameters: () => rangeOfTypeParameters,\n    rangeOverlapsWithStartEnd: () => rangeOverlapsWithStartEnd,\n    rangeStartIsOnSameLineAsRangeEnd: () => rangeStartIsOnSameLineAsRangeEnd,\n    rangeStartPositionsAreOnSameLine: () => rangeStartPositionsAreOnSameLine,\n    readBuilderProgram: () => readBuilderProgram,\n    readConfigFile: () => readConfigFile,\n    readHelper: () => readHelper,\n    readJson: () => readJson,\n    readJsonConfigFile: () => readJsonConfigFile,\n    readJsonOrUndefined: () => readJsonOrUndefined,\n    realizeDiagnostics: () => realizeDiagnostics,\n    reduceEachLeadingCommentRange: () => reduceEachLeadingCommentRange,\n    reduceEachTrailingCommentRange: () => reduceEachTrailingCommentRange,\n    reduceLeft: () => reduceLeft,\n    reduceLeftIterator: () => reduceLeftIterator,\n    reducePathComponents: () => reducePathComponents,\n    refactor: () => ts_refactor_exports,\n    regExpEscape: () => regExpEscape,\n    relativeComplement: () => relativeComplement,\n    removeAllComments: () => removeAllComments,\n    removeEmitHelper: () => removeEmitHelper,\n    removeExtension: () => removeExtension,\n    removeFileExtension: () => removeFileExtension,\n    removeIgnoredPath: () => removeIgnoredPath,\n    removeMinAndVersionNumbers: () => removeMinAndVersionNumbers,\n    removeOptionality: () => removeOptionality,\n    removePrefix: () => removePrefix,\n    removeSuffix: () => removeSuffix,\n    removeTrailingDirectorySeparator: () => removeTrailingDirectorySeparator,\n    repeatString: () => repeatString,\n    replaceElement: () => replaceElement,\n    resolutionExtensionIsTSOrJson: () => resolutionExtensionIsTSOrJson,\n    resolveConfigFileProjectName: () => resolveConfigFileProjectName,\n    resolveJSModule: () => resolveJSModule,\n    resolveModuleName: () => resolveModuleName,\n    resolveModuleNameFromCache: () => resolveModuleNameFromCache,\n    resolvePackageNameToPackageJson: () => resolvePackageNameToPackageJson,\n    resolvePath: () => resolvePath,\n    resolveProjectReferencePath: () => resolveProjectReferencePath,\n    resolveTripleslashReference: () => resolveTripleslashReference,\n    resolveTypeReferenceDirective: () => resolveTypeReferenceDirective,\n    resolvingEmptyArray: () => resolvingEmptyArray,\n    restHelper: () => restHelper,\n    returnFalse: () => returnFalse,\n    returnNoopFileWatcher: () => returnNoopFileWatcher,\n    returnTrue: () => returnTrue,\n    returnUndefined: () => returnUndefined,\n    returnsPromise: () => returnsPromise,\n    runInitializersHelper: () => runInitializersHelper,\n    sameFlatMap: () => sameFlatMap,\n    sameMap: () => sameMap,\n    sameMapping: () => sameMapping,\n    scanShebangTrivia: () => scanShebangTrivia,\n    scanTokenAtPosition: () => scanTokenAtPosition,\n    scanner: () => scanner,\n    screenStartingMessageCodes: () => screenStartingMessageCodes,\n    semanticDiagnosticsOptionDeclarations: () => semanticDiagnosticsOptionDeclarations,\n    serializeCompilerOptions: () => serializeCompilerOptions,\n    server: () => ts_server_exports,\n    servicesVersion: () => servicesVersion,\n    setCommentRange: () => setCommentRange,\n    setConfigFileInOptions: () => setConfigFileInOptions,\n    setConstantValue: () => setConstantValue,\n    setEachParent: () => setEachParent,\n    setEmitFlags: () => setEmitFlags,\n    setFunctionNameHelper: () => setFunctionNameHelper,\n    setGetSourceFileAsHashVersioned: () => setGetSourceFileAsHashVersioned,\n    setIdentifierAutoGenerate: () => setIdentifierAutoGenerate,\n    setIdentifierGeneratedImportReference: () => setIdentifierGeneratedImportReference,\n    setIdentifierTypeArguments: () => setIdentifierTypeArguments,\n    setInternalEmitFlags: () => setInternalEmitFlags,\n    setLocalizedDiagnosticMessages: () => setLocalizedDiagnosticMessages,\n    setModuleDefaultHelper: () => setModuleDefaultHelper,\n    setNodeFlags: () => setNodeFlags,\n    setObjectAllocator: () => setObjectAllocator,\n    setOriginalNode: () => setOriginalNode,\n    setParent: () => setParent,\n    setParentRecursive: () => setParentRecursive,\n    setPrivateIdentifier: () => setPrivateIdentifier,\n    setResolvedModule: () => setResolvedModule,\n    setResolvedTypeReferenceDirective: () => setResolvedTypeReferenceDirective,\n    setSnippetElement: () => setSnippetElement,\n    setSourceMapRange: () => setSourceMapRange,\n    setStackTraceLimit: () => setStackTraceLimit,\n    setStartsOnNewLine: () => setStartsOnNewLine,\n    setSyntheticLeadingComments: () => setSyntheticLeadingComments,\n    setSyntheticTrailingComments: () => setSyntheticTrailingComments,\n    setSys: () => setSys,\n    setSysLog: () => setSysLog,\n    setTextRange: () => setTextRange,\n    setTextRangeEnd: () => setTextRangeEnd,\n    setTextRangePos: () => setTextRangePos,\n    setTextRangePosEnd: () => setTextRangePosEnd,\n    setTextRangePosWidth: () => setTextRangePosWidth,\n    setTokenSourceMapRange: () => setTokenSourceMapRange,\n    setTypeNode: () => setTypeNode,\n    setUILocale: () => setUILocale,\n    setValueDeclaration: () => setValueDeclaration,\n    shouldAllowImportingTsExtension: () => shouldAllowImportingTsExtension,\n    shouldPreserveConstEnums: () => shouldPreserveConstEnums,\n    shouldUseUriStyleNodeCoreModules: () => shouldUseUriStyleNodeCoreModules,\n    showModuleSpecifier: () => showModuleSpecifier,\n    signatureHasLiteralTypes: () => signatureHasLiteralTypes,\n    signatureHasRestParameter: () => signatureHasRestParameter,\n    signatureToDisplayParts: () => signatureToDisplayParts,\n    single: () => single,\n    singleElementArray: () => singleElementArray,\n    singleIterator: () => singleIterator,\n    singleOrMany: () => singleOrMany,\n    singleOrUndefined: () => singleOrUndefined,\n    skipAlias: () => skipAlias,\n    skipAssertions: () => skipAssertions,\n    skipConstraint: () => skipConstraint,\n    skipOuterExpressions: () => skipOuterExpressions,\n    skipParentheses: () => skipParentheses,\n    skipPartiallyEmittedExpressions: () => skipPartiallyEmittedExpressions,\n    skipTrivia: () => skipTrivia,\n    skipTypeChecking: () => skipTypeChecking,\n    skipTypeParentheses: () => skipTypeParentheses,\n    skipWhile: () => skipWhile,\n    sliceAfter: () => sliceAfter,\n    some: () => some,\n    sort: () => sort,\n    sortAndDeduplicate: () => sortAndDeduplicate,\n    sortAndDeduplicateDiagnostics: () => sortAndDeduplicateDiagnostics,\n    sourceFileAffectingCompilerOptions: () => sourceFileAffectingCompilerOptions,\n    sourceFileMayBeEmitted: () => sourceFileMayBeEmitted,\n    sourceMapCommentRegExp: () => sourceMapCommentRegExp,\n    sourceMapCommentRegExpDontCareLineStart: () => sourceMapCommentRegExpDontCareLineStart,\n    spacePart: () => spacePart,\n    spanMap: () => spanMap,\n    spreadArrayHelper: () => spreadArrayHelper,\n    stableSort: () => stableSort,\n    startEndContainsRange: () => startEndContainsRange,\n    startEndOverlapsWithStartEnd: () => startEndOverlapsWithStartEnd,\n    startOnNewLine: () => startOnNewLine,\n    startTracing: () => startTracing,\n    startsWith: () => startsWith,\n    startsWithDirectory: () => startsWithDirectory,\n    startsWithUnderscore: () => startsWithUnderscore,\n    startsWithUseStrict: () => startsWithUseStrict,\n    stringContains: () => stringContains,\n    stringContainsAt: () => stringContainsAt,\n    stringToToken: () => stringToToken,\n    stripQuotes: () => stripQuotes,\n    supportedDeclarationExtensions: () => supportedDeclarationExtensions,\n    supportedJSExtensions: () => supportedJSExtensions,\n    supportedJSExtensionsFlat: () => supportedJSExtensionsFlat,\n    supportedLocaleDirectories: () => supportedLocaleDirectories,\n    supportedTSExtensions: () => supportedTSExtensions,\n    supportedTSExtensionsFlat: () => supportedTSExtensionsFlat,\n    supportedTSImplementationExtensions: () => supportedTSImplementationExtensions,\n    suppressLeadingAndTrailingTrivia: () => suppressLeadingAndTrailingTrivia,\n    suppressLeadingTrivia: () => suppressLeadingTrivia,\n    suppressTrailingTrivia: () => suppressTrailingTrivia,\n    symbolEscapedNameNoDefault: () => symbolEscapedNameNoDefault,\n    symbolName: () => symbolName,\n    symbolNameNoDefault: () => symbolNameNoDefault,\n    symbolPart: () => symbolPart,\n    symbolToDisplayParts: () => symbolToDisplayParts,\n    syntaxMayBeASICandidate: () => syntaxMayBeASICandidate,\n    syntaxRequiresTrailingSemicolonOrASI: () => syntaxRequiresTrailingSemicolonOrASI,\n    sys: () => sys,\n    sysLog: () => sysLog,\n    tagNamesAreEquivalent: () => tagNamesAreEquivalent,\n    takeWhile: () => takeWhile,\n    targetOptionDeclaration: () => targetOptionDeclaration,\n    templateObjectHelper: () => templateObjectHelper,\n    testFormatSettings: () => testFormatSettings,\n    textChangeRangeIsUnchanged: () => textChangeRangeIsUnchanged,\n    textChangeRangeNewSpan: () => textChangeRangeNewSpan,\n    textChanges: () => ts_textChanges_exports,\n    textOrKeywordPart: () => textOrKeywordPart,\n    textPart: () => textPart,\n    textRangeContainsPositionInclusive: () => textRangeContainsPositionInclusive,\n    textSpanContainsPosition: () => textSpanContainsPosition,\n    textSpanContainsTextSpan: () => textSpanContainsTextSpan,\n    textSpanEnd: () => textSpanEnd,\n    textSpanIntersection: () => textSpanIntersection,\n    textSpanIntersectsWith: () => textSpanIntersectsWith,\n    textSpanIntersectsWithPosition: () => textSpanIntersectsWithPosition,\n    textSpanIntersectsWithTextSpan: () => textSpanIntersectsWithTextSpan,\n    textSpanIsEmpty: () => textSpanIsEmpty,\n    textSpanOverlap: () => textSpanOverlap,\n    textSpanOverlapsWith: () => textSpanOverlapsWith,\n    textSpansEqual: () => textSpansEqual,\n    textToKeywordObj: () => textToKeywordObj,\n    timestamp: () => timestamp,\n    toArray: () => toArray,\n    toBuilderFileEmit: () => toBuilderFileEmit,\n    toBuilderStateFileInfoForMultiEmit: () => toBuilderStateFileInfoForMultiEmit,\n    toEditorSettings: () => toEditorSettings,\n    toFileNameLowerCase: () => toFileNameLowerCase,\n    toLowerCase: () => toLowerCase,\n    toPath: () => toPath,\n    toProgramEmitPending: () => toProgramEmitPending,\n    tokenIsIdentifierOrKeyword: () => tokenIsIdentifierOrKeyword,\n    tokenIsIdentifierOrKeywordOrGreaterThan: () => tokenIsIdentifierOrKeywordOrGreaterThan,\n    tokenToString: () => tokenToString,\n    trace: () => trace,\n    tracing: () => tracing,\n    tracingEnabled: () => tracingEnabled,\n    transform: () => transform,\n    transformClassFields: () => transformClassFields,\n    transformDeclarations: () => transformDeclarations,\n    transformECMAScriptModule: () => transformECMAScriptModule,\n    transformES2015: () => transformES2015,\n    transformES2016: () => transformES2016,\n    transformES2017: () => transformES2017,\n    transformES2018: () => transformES2018,\n    transformES2019: () => transformES2019,\n    transformES2020: () => transformES2020,\n    transformES2021: () => transformES2021,\n    transformES5: () => transformES5,\n    transformESDecorators: () => transformESDecorators,\n    transformESNext: () => transformESNext,\n    transformGenerators: () => transformGenerators,\n    transformJsx: () => transformJsx,\n    transformLegacyDecorators: () => transformLegacyDecorators,\n    transformModule: () => transformModule,\n    transformNodeModule: () => transformNodeModule,\n    transformNodes: () => transformNodes,\n    transformSystemModule: () => transformSystemModule,\n    transformTypeScript: () => transformTypeScript,\n    transpile: () => transpile,\n    transpileModule: () => transpileModule,\n    transpileOptionValueCompilerOptions: () => transpileOptionValueCompilerOptions,\n    trimString: () => trimString,\n    trimStringEnd: () => trimStringEnd,\n    trimStringStart: () => trimStringStart,\n    tryAddToSet: () => tryAddToSet,\n    tryAndIgnoreErrors: () => tryAndIgnoreErrors,\n    tryCast: () => tryCast,\n    tryDirectoryExists: () => tryDirectoryExists,\n    tryExtractTSExtension: () => tryExtractTSExtension,\n    tryFileExists: () => tryFileExists,\n    tryGetClassExtendingExpressionWithTypeArguments: () => tryGetClassExtendingExpressionWithTypeArguments,\n    tryGetClassImplementingOrExtendingExpressionWithTypeArguments: () => tryGetClassImplementingOrExtendingExpressionWithTypeArguments,\n    tryGetDirectories: () => tryGetDirectories,\n    tryGetExtensionFromPath: () => tryGetExtensionFromPath2,\n    tryGetImportFromModuleSpecifier: () => tryGetImportFromModuleSpecifier,\n    tryGetJSDocSatisfiesTypeNode: () => tryGetJSDocSatisfiesTypeNode,\n    tryGetModuleNameFromFile: () => tryGetModuleNameFromFile,\n    tryGetModuleSpecifierFromDeclaration: () => tryGetModuleSpecifierFromDeclaration,\n    tryGetNativePerformanceHooks: () => tryGetNativePerformanceHooks,\n    tryGetPropertyAccessOrIdentifierToString: () => tryGetPropertyAccessOrIdentifierToString,\n    tryGetPropertyNameOfBindingOrAssignmentElement: () => tryGetPropertyNameOfBindingOrAssignmentElement,\n    tryGetSourceMappingURL: () => tryGetSourceMappingURL,\n    tryGetTextOfPropertyName: () => tryGetTextOfPropertyName,\n    tryIOAndConsumeErrors: () => tryIOAndConsumeErrors,\n    tryParsePattern: () => tryParsePattern,\n    tryParsePatterns: () => tryParsePatterns,\n    tryParseRawSourceMap: () => tryParseRawSourceMap,\n    tryReadDirectory: () => tryReadDirectory,\n    tryReadFile: () => tryReadFile,\n    tryRemoveDirectoryPrefix: () => tryRemoveDirectoryPrefix,\n    tryRemoveExtension: () => tryRemoveExtension,\n    tryRemovePrefix: () => tryRemovePrefix,\n    tryRemoveSuffix: () => tryRemoveSuffix,\n    typeAcquisitionDeclarations: () => typeAcquisitionDeclarations,\n    typeAliasNamePart: () => typeAliasNamePart,\n    typeDirectiveIsEqualTo: () => typeDirectiveIsEqualTo,\n    typeKeywords: () => typeKeywords,\n    typeParameterNamePart: () => typeParameterNamePart,\n    typeReferenceResolutionNameAndModeGetter: () => typeReferenceResolutionNameAndModeGetter,\n    typeToDisplayParts: () => typeToDisplayParts,\n    unchangedPollThresholds: () => unchangedPollThresholds,\n    unchangedTextChangeRange: () => unchangedTextChangeRange,\n    unescapeLeadingUnderscores: () => unescapeLeadingUnderscores,\n    unmangleScopedPackageName: () => unmangleScopedPackageName,\n    unorderedRemoveItem: () => unorderedRemoveItem,\n    unorderedRemoveItemAt: () => unorderedRemoveItemAt,\n    unreachableCodeIsError: () => unreachableCodeIsError,\n    unusedLabelIsError: () => unusedLabelIsError,\n    unwrapInnermostStatementOfLabel: () => unwrapInnermostStatementOfLabel,\n    updateErrorForNoInputFiles: () => updateErrorForNoInputFiles,\n    updateLanguageServiceSourceFile: () => updateLanguageServiceSourceFile,\n    updateMissingFilePathsWatch: () => updateMissingFilePathsWatch,\n    updatePackageJsonWatch: () => updatePackageJsonWatch,\n    updateResolutionField: () => updateResolutionField,\n    updateSharedExtendedConfigFileWatcher: () => updateSharedExtendedConfigFileWatcher,\n    updateSourceFile: () => updateSourceFile,\n    updateWatchingWildcardDirectories: () => updateWatchingWildcardDirectories,\n    usesExtensionsOnImports: () => usesExtensionsOnImports,\n    usingSingleLineStringWriter: () => usingSingleLineStringWriter,\n    utf16EncodeAsString: () => utf16EncodeAsString,\n    validateLocaleAndSetLanguage: () => validateLocaleAndSetLanguage,\n    valuesHelper: () => valuesHelper,\n    version: () => version,\n    versionMajorMinor: () => versionMajorMinor,\n    visitArray: () => visitArray,\n    visitCommaListElements: () => visitCommaListElements,\n    visitEachChild: () => visitEachChild,\n    visitFunctionBody: () => visitFunctionBody,\n    visitIterationBody: () => visitIterationBody,\n    visitLexicalEnvironment: () => visitLexicalEnvironment,\n    visitNode: () => visitNode,\n    visitNodes: () => visitNodes2,\n    visitParameterList: () => visitParameterList,\n    walkUpBindingElementsAndPatterns: () => walkUpBindingElementsAndPatterns,\n    walkUpLexicalEnvironments: () => walkUpLexicalEnvironments,\n    walkUpOuterExpressions: () => walkUpOuterExpressions,\n    walkUpParenthesizedExpressions: () => walkUpParenthesizedExpressions,\n    walkUpParenthesizedTypes: () => walkUpParenthesizedTypes,\n    walkUpParenthesizedTypesAndGetParentAndChild: () => walkUpParenthesizedTypesAndGetParentAndChild,\n    whitespaceOrMapCommentRegExp: () => whitespaceOrMapCommentRegExp,\n    writeCommentRange: () => writeCommentRange,\n    writeFile: () => writeFile,\n    writeFileEnsuringDirectories: () => writeFileEnsuringDirectories,\n    zipToModeAwareCache: () => zipToModeAwareCache,\n    zipWith: () => zipWith\n  });\n  var init_ts6 = __esm({\n    \"src/typescript/_namespaces/ts.ts\"() {\n      \"use strict\";\n      init_ts2();\n      init_ts3();\n      init_ts4();\n      init_ts5();\n    }\n  });\n  var require_typescript = __commonJS({\n    \"src/typescript/typescript.ts\"(exports, module2) {\n      init_ts6();\n      init_ts6();\n      if (typeof console !== \"undefined\") {\n        Debug.loggingHost = {\n          log(level, s) {\n            switch (level) {\n              case 1:\n                return console.error(s);\n              case 2:\n                return console.warn(s);\n              case 3:\n                return console.log(s);\n              case 4:\n                return console.log(s);\n            }\n          }\n        };\n      }\n      module2.exports = ts_exports3;\n    }\n  });\n  return require_typescript();\n})();\nif (typeof module !== \"undefined\" && module.exports) {\n  module.exports = ts;\n}\nvar createClassifier = ts.createClassifier;\nvar createLanguageService = ts.createLanguageService;\nvar displayPartsToString = ts.displayPartsToString;\nvar EndOfLineState = ts.EndOfLineState;\nvar flattenDiagnosticMessageText = ts.flattenDiagnosticMessageText;\nvar IndentStyle = ts.IndentStyle;\nvar ScriptKind = ts.ScriptKind;\nvar ScriptTarget = ts.ScriptTarget;\nvar TokenClass = ts.TokenClass;\nvar typescript = ts;\n\n// src/language/typescript/lib/lib.ts\nvar libFileMap = {};\nlibFileMap[\"lib.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es5\" />\\n/// <reference lib=\"dom\" />\\n/// <reference lib=\"webworker.importscripts\" />\\n/// <reference lib=\"scripthost\" />\\n';\nlibFileMap[\"lib.decorators.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/**\\n * The decorator context types provided to class element decorators.\\n */\\ntype ClassMemberDecoratorContext =\\n    | ClassMethodDecoratorContext\\n    | ClassGetterDecoratorContext\\n    | ClassSetterDecoratorContext\\n    | ClassFieldDecoratorContext\\n    | ClassAccessorDecoratorContext\\n    ;\\n\\n/**\\n * The decorator context types provided to any decorator.\\n */\\ntype DecoratorContext =\\n    | ClassDecoratorContext\\n    | ClassMemberDecoratorContext\\n    ;\\n\\n/**\\n * Context provided to a class decorator.\\n * @template Class The type of the decorated class associated with this context.\\n */\\ninterface ClassDecoratorContext<\\n    Class extends abstract new (...args: any) => any = abstract new (...args: any) => any,\\n> {\\n    /** The kind of element that was decorated. */\\n    readonly kind: \"class\";\\n\\n    /** The name of the decorated class. */\\n    readonly name: string | undefined;\\n\\n    /**\\n     * Adds a callback to be invoked after the class definition has been finalized.\\n     *\\n     * @example\\n     * ```ts\\n     * function customElement(name: string): ClassDecoratorFunction {\\n     *   return (target, context) => {\\n     *     context.addInitializer(function () {\\n     *       customElements.define(name, this);\\n     *     });\\n     *   }\\n     * }\\n     *\\n     * @customElement(\"my-element\")\\n     * class MyElement {}\\n     * ```\\n     */\\n    addInitializer(initializer: (this: Class) => void): void;\\n}\\n\\n/**\\n * Context provided to a class method decorator.\\n * @template This The type on which the class element will be defined. For a static class element, this will be\\n * the type of the constructor. For a non-static class element, this will be the type of the instance.\\n * @template Value The type of the decorated class method.\\n */\\ninterface ClassMethodDecoratorContext<\\n    This = unknown,\\n    Value extends (this: This, ...args: any) => any = (this: This, ...args: any) => any,\\n> {\\n    /** The kind of class element that was decorated. */\\n    readonly kind: \"method\";\\n\\n    /** The name of the decorated class element. */\\n    readonly name: string | symbol;\\n\\n    /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */\\n    readonly static: boolean;\\n\\n    /** A value indicating whether the class element has a private name. */\\n    readonly private: boolean;\\n\\n    /** An object that can be used to access the current value of the class element at runtime. */\\n    readonly access: {\\n        /**\\n         * Determines whether an object has a property with the same name as the decorated element.\\n         */\\n        has(object: This): boolean;\\n        /**\\n         * Gets the current value of the method from the provided object.\\n         *\\n         * @example\\n         * let fn = context.access.get(instance);\\n         */\\n        get(object: This): Value;\\n    };\\n\\n    /**\\n     * Adds a callback to be invoked either before static initializers are run (when\\n     * decorating a `static` element), or before instance initializers are run (when\\n     * decorating a non-`static` element).\\n     *\\n     * @example\\n     * ```ts\\n     * const bound: ClassMethodDecoratorFunction = (value, context) {\\n     *   if (context.private) throw new TypeError(\"Not supported on private methods.\");\\n     *   context.addInitializer(function () {\\n     *     this[context.name] = this[context.name].bind(this);\\n     *   });\\n     * }\\n     *\\n     * class C {\\n     *   message = \"Hello\";\\n     *\\n     *   @bound\\n     *   m() {\\n     *     console.log(this.message);\\n     *   }\\n     * }\\n     * ```\\n     */\\n    addInitializer(initializer: (this: This) => void): void;\\n}\\n\\n/**\\n * Context provided to a class getter decorator.\\n * @template This The type on which the class element will be defined. For a static class element, this will be\\n * the type of the constructor. For a non-static class element, this will be the type of the instance.\\n * @template Value The property type of the decorated class getter.\\n */\\ninterface ClassGetterDecoratorContext<\\n    This = unknown,\\n    Value = unknown,\\n> {\\n    /** The kind of class element that was decorated. */\\n    readonly kind: \"getter\";\\n\\n    /** The name of the decorated class element. */\\n    readonly name: string | symbol;\\n\\n    /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */\\n    readonly static: boolean;\\n\\n    /** A value indicating whether the class element has a private name. */\\n    readonly private: boolean;\\n\\n    /** An object that can be used to access the current value of the class element at runtime. */\\n    readonly access: {\\n        /**\\n         * Determines whether an object has a property with the same name as the decorated element.\\n         */\\n        has(object: This): boolean;\\n        /**\\n         * Invokes the getter on the provided object.\\n         *\\n         * @example\\n         * let value = context.access.get(instance);\\n         */\\n        get(object: This): Value;\\n    };\\n\\n    /**\\n     * Adds a callback to be invoked either before static initializers are run (when\\n     * decorating a `static` element), or before instance initializers are run (when\\n     * decorating a non-`static` element).\\n     */\\n    addInitializer(initializer: (this: This) => void): void;\\n}\\n\\n/**\\n * Context provided to a class setter decorator.\\n * @template This The type on which the class element will be defined. For a static class element, this will be\\n * the type of the constructor. For a non-static class element, this will be the type of the instance.\\n * @template Value The type of the decorated class setter.\\n */\\ninterface ClassSetterDecoratorContext<\\n    This = unknown,\\n    Value = unknown,\\n> {\\n    /** The kind of class element that was decorated. */\\n    readonly kind: \"setter\";\\n\\n    /** The name of the decorated class element. */\\n    readonly name: string | symbol;\\n\\n    /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */\\n    readonly static: boolean;\\n\\n    /** A value indicating whether the class element has a private name. */\\n    readonly private: boolean;\\n\\n    /** An object that can be used to access the current value of the class element at runtime. */\\n    readonly access: {\\n        /**\\n         * Determines whether an object has a property with the same name as the decorated element.\\n         */\\n        has(object: This): boolean;\\n        /**\\n         * Invokes the setter on the provided object.\\n         *\\n         * @example\\n         * context.access.set(instance, value);\\n         */\\n        set(object: This, value: Value): void;\\n    };\\n\\n    /**\\n     * Adds a callback to be invoked either before static initializers are run (when\\n     * decorating a `static` element), or before instance initializers are run (when\\n     * decorating a non-`static` element).\\n     */\\n    addInitializer(initializer: (this: This) => void): void;\\n}\\n\\n/**\\n * Context provided to a class `accessor` field decorator.\\n * @template This The type on which the class element will be defined. For a static class element, this will be\\n * the type of the constructor. For a non-static class element, this will be the type of the instance.\\n * @template Value The type of decorated class field.\\n */\\ninterface ClassAccessorDecoratorContext<\\n    This = unknown,\\n    Value = unknown,\\n> {\\n    /** The kind of class element that was decorated. */\\n    readonly kind: \"accessor\";\\n\\n    /** The name of the decorated class element. */\\n    readonly name: string | symbol;\\n\\n    /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */\\n    readonly static: boolean;\\n\\n    /** A value indicating whether the class element has a private name. */\\n    readonly private: boolean;\\n\\n    /** An object that can be used to access the current value of the class element at runtime. */\\n    readonly access: {\\n        /**\\n         * Determines whether an object has a property with the same name as the decorated element.\\n         */\\n        has(object: This): boolean;\\n\\n        /**\\n         * Invokes the getter on the provided object.\\n         *\\n         * @example\\n         * let value = context.access.get(instance);\\n         */\\n        get(object: This): Value;\\n\\n        /**\\n         * Invokes the setter on the provided object.\\n         *\\n         * @example\\n         * context.access.set(instance, value);\\n         */\\n        set(object: This, value: Value): void;\\n    };\\n\\n    /**\\n     * Adds a callback to be invoked either before static initializers are run (when\\n     * decorating a `static` element), or before instance initializers are run (when\\n     * decorating a non-`static` element).\\n     */\\n    addInitializer(initializer: (this: This) => void): void;\\n}\\n\\n/**\\n * Describes the target provided to class `accessor` field decorators.\\n * @template This The `this` type to which the target applies.\\n * @template Value The property type for the class `accessor` field.\\n */\\ninterface ClassAccessorDecoratorTarget<This, Value> {\\n    /**\\n     * Invokes the getter that was defined prior to decorator application.\\n     *\\n     * @example\\n     * let value = target.get.call(instance);\\n     */\\n    get(this: This): Value;\\n\\n    /**\\n     * Invokes the setter that was defined prior to decorator application.\\n     *\\n     * @example\\n     * target.set.call(instance, value);\\n     */\\n    set(this: This, value: Value): void;\\n}\\n\\n/**\\n * Describes the allowed return value from a class `accessor` field decorator.\\n * @template This The `this` type to which the target applies.\\n * @template Value The property type for the class `accessor` field.\\n */\\ninterface ClassAccessorDecoratorResult<This, Value> {\\n    /**\\n     * An optional replacement getter function. If not provided, the existing getter function is used instead.\\n     */\\n    get?(this: This): Value;\\n\\n    /**\\n     * An optional replacement setter function. If not provided, the existing setter function is used instead.\\n     */\\n    set?(this: This, value: Value): void;\\n\\n    /**\\n     * An optional initializer mutator that is invoked when the underlying field initializer is evaluated.\\n     * @param value The incoming initializer value.\\n     * @returns The replacement initializer value.\\n     */\\n    init?(this: This, value: Value): Value;\\n}\\n\\n/**\\n * Context provided to a class field decorator.\\n * @template This The type on which the class element will be defined. For a static class element, this will be\\n * the type of the constructor. For a non-static class element, this will be the type of the instance.\\n * @template Value The type of the decorated class field.\\n */\\ninterface ClassFieldDecoratorContext<\\n    This = unknown,\\n    Value = unknown,\\n> {\\n    /** The kind of class element that was decorated. */\\n    readonly kind: \"field\";\\n\\n    /** The name of the decorated class element. */\\n    readonly name: string | symbol;\\n\\n    /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */\\n    readonly static: boolean;\\n\\n    /** A value indicating whether the class element has a private name. */\\n    readonly private: boolean;\\n\\n    /** An object that can be used to access the current value of the class element at runtime. */\\n    readonly access: {\\n        /**\\n         * Determines whether an object has a property with the same name as the decorated element.\\n         */\\n        has(object: This): boolean;\\n\\n        /**\\n         * Gets the value of the field on the provided object.\\n         */\\n        get(object: This): Value;\\n\\n        /**\\n         * Sets the value of the field on the provided object.\\n         */\\n        set(object: This, value: Value): void;\\n    };\\n\\n    /**\\n     * Adds a callback to be invoked either before static initializers are run (when\\n     * decorating a `static` element), or before instance initializers are run (when\\n     * decorating a non-`static` element).\\n     */\\n    addInitializer(initializer: (this: This) => void): void;\\n}\\n';\nlibFileMap[\"lib.decorators.legacy.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ndeclare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;\\ndeclare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;\\ndeclare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;\\ndeclare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;\\n';\nlibFileMap[\"lib.dom.d.ts\"] = `/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib=\"true\"/>\n\n/////////////////////////////\n/// Window APIs\n/////////////////////////////\n\ninterface AddEventListenerOptions extends EventListenerOptions {\n    once?: boolean;\n    passive?: boolean;\n    signal?: AbortSignal;\n}\n\ninterface AesCbcParams extends Algorithm {\n    iv: BufferSource;\n}\n\ninterface AesCtrParams extends Algorithm {\n    counter: BufferSource;\n    length: number;\n}\n\ninterface AesDerivedKeyParams extends Algorithm {\n    length: number;\n}\n\ninterface AesGcmParams extends Algorithm {\n    additionalData?: BufferSource;\n    iv: BufferSource;\n    tagLength?: number;\n}\n\ninterface AesKeyAlgorithm extends KeyAlgorithm {\n    length: number;\n}\n\ninterface AesKeyGenParams extends Algorithm {\n    length: number;\n}\n\ninterface Algorithm {\n    name: string;\n}\n\ninterface AnalyserOptions extends AudioNodeOptions {\n    fftSize?: number;\n    maxDecibels?: number;\n    minDecibels?: number;\n    smoothingTimeConstant?: number;\n}\n\ninterface AnimationEventInit extends EventInit {\n    animationName?: string;\n    elapsedTime?: number;\n    pseudoElement?: string;\n}\n\ninterface AnimationPlaybackEventInit extends EventInit {\n    currentTime?: CSSNumberish | null;\n    timelineTime?: CSSNumberish | null;\n}\n\ninterface AssignedNodesOptions {\n    flatten?: boolean;\n}\n\ninterface AudioBufferOptions {\n    length: number;\n    numberOfChannels?: number;\n    sampleRate: number;\n}\n\ninterface AudioBufferSourceOptions {\n    buffer?: AudioBuffer | null;\n    detune?: number;\n    loop?: boolean;\n    loopEnd?: number;\n    loopStart?: number;\n    playbackRate?: number;\n}\n\ninterface AudioConfiguration {\n    bitrate?: number;\n    channels?: string;\n    contentType: string;\n    samplerate?: number;\n    spatialRendering?: boolean;\n}\n\ninterface AudioContextOptions {\n    latencyHint?: AudioContextLatencyCategory | number;\n    sampleRate?: number;\n}\n\ninterface AudioNodeOptions {\n    channelCount?: number;\n    channelCountMode?: ChannelCountMode;\n    channelInterpretation?: ChannelInterpretation;\n}\n\ninterface AudioProcessingEventInit extends EventInit {\n    inputBuffer: AudioBuffer;\n    outputBuffer: AudioBuffer;\n    playbackTime: number;\n}\n\ninterface AudioTimestamp {\n    contextTime?: number;\n    performanceTime?: DOMHighResTimeStamp;\n}\n\ninterface AudioWorkletNodeOptions extends AudioNodeOptions {\n    numberOfInputs?: number;\n    numberOfOutputs?: number;\n    outputChannelCount?: number[];\n    parameterData?: Record<string, number>;\n    processorOptions?: any;\n}\n\ninterface AuthenticationExtensionsClientInputs {\n    appid?: string;\n    credProps?: boolean;\n    hmacCreateSecret?: boolean;\n}\n\ninterface AuthenticationExtensionsClientOutputs {\n    appid?: boolean;\n    credProps?: CredentialPropertiesOutput;\n    hmacCreateSecret?: boolean;\n}\n\ninterface AuthenticatorSelectionCriteria {\n    authenticatorAttachment?: AuthenticatorAttachment;\n    requireResidentKey?: boolean;\n    residentKey?: ResidentKeyRequirement;\n    userVerification?: UserVerificationRequirement;\n}\n\ninterface BiquadFilterOptions extends AudioNodeOptions {\n    Q?: number;\n    detune?: number;\n    frequency?: number;\n    gain?: number;\n    type?: BiquadFilterType;\n}\n\ninterface BlobEventInit {\n    data: Blob;\n    timecode?: DOMHighResTimeStamp;\n}\n\ninterface BlobPropertyBag {\n    endings?: EndingType;\n    type?: string;\n}\n\ninterface CSSStyleSheetInit {\n    baseURL?: string;\n    disabled?: boolean;\n    media?: MediaList | string;\n}\n\ninterface CacheQueryOptions {\n    ignoreMethod?: boolean;\n    ignoreSearch?: boolean;\n    ignoreVary?: boolean;\n}\n\ninterface CanvasRenderingContext2DSettings {\n    alpha?: boolean;\n    colorSpace?: PredefinedColorSpace;\n    desynchronized?: boolean;\n    willReadFrequently?: boolean;\n}\n\ninterface ChannelMergerOptions extends AudioNodeOptions {\n    numberOfInputs?: number;\n}\n\ninterface ChannelSplitterOptions extends AudioNodeOptions {\n    numberOfOutputs?: number;\n}\n\ninterface CheckVisibilityOptions {\n    checkOpacity?: boolean;\n    checkVisibilityCSS?: boolean;\n}\n\ninterface ClientQueryOptions {\n    includeUncontrolled?: boolean;\n    type?: ClientTypes;\n}\n\ninterface ClipboardEventInit extends EventInit {\n    clipboardData?: DataTransfer | null;\n}\n\ninterface ClipboardItemOptions {\n    presentationStyle?: PresentationStyle;\n}\n\ninterface CloseEventInit extends EventInit {\n    code?: number;\n    reason?: string;\n    wasClean?: boolean;\n}\n\ninterface CompositionEventInit extends UIEventInit {\n    data?: string;\n}\n\ninterface ComputedEffectTiming extends EffectTiming {\n    activeDuration?: CSSNumberish;\n    currentIteration?: number | null;\n    endTime?: CSSNumberish;\n    localTime?: CSSNumberish | null;\n    progress?: number | null;\n    startTime?: CSSNumberish;\n}\n\ninterface ComputedKeyframe {\n    composite: CompositeOperationOrAuto;\n    computedOffset: number;\n    easing: string;\n    offset: number | null;\n    [property: string]: string | number | null | undefined;\n}\n\ninterface ConstantSourceOptions {\n    offset?: number;\n}\n\ninterface ConstrainBooleanParameters {\n    exact?: boolean;\n    ideal?: boolean;\n}\n\ninterface ConstrainDOMStringParameters {\n    exact?: string | string[];\n    ideal?: string | string[];\n}\n\ninterface ConstrainDoubleRange extends DoubleRange {\n    exact?: number;\n    ideal?: number;\n}\n\ninterface ConstrainULongRange extends ULongRange {\n    exact?: number;\n    ideal?: number;\n}\n\ninterface ConvolverOptions extends AudioNodeOptions {\n    buffer?: AudioBuffer | null;\n    disableNormalization?: boolean;\n}\n\ninterface CredentialCreationOptions {\n    publicKey?: PublicKeyCredentialCreationOptions;\n    signal?: AbortSignal;\n}\n\ninterface CredentialPropertiesOutput {\n    rk?: boolean;\n}\n\ninterface CredentialRequestOptions {\n    mediation?: CredentialMediationRequirement;\n    publicKey?: PublicKeyCredentialRequestOptions;\n    signal?: AbortSignal;\n}\n\ninterface CryptoKeyPair {\n    privateKey: CryptoKey;\n    publicKey: CryptoKey;\n}\n\ninterface CustomEventInit<T = any> extends EventInit {\n    detail?: T;\n}\n\ninterface DOMMatrix2DInit {\n    a?: number;\n    b?: number;\n    c?: number;\n    d?: number;\n    e?: number;\n    f?: number;\n    m11?: number;\n    m12?: number;\n    m21?: number;\n    m22?: number;\n    m41?: number;\n    m42?: number;\n}\n\ninterface DOMMatrixInit extends DOMMatrix2DInit {\n    is2D?: boolean;\n    m13?: number;\n    m14?: number;\n    m23?: number;\n    m24?: number;\n    m31?: number;\n    m32?: number;\n    m33?: number;\n    m34?: number;\n    m43?: number;\n    m44?: number;\n}\n\ninterface DOMPointInit {\n    w?: number;\n    x?: number;\n    y?: number;\n    z?: number;\n}\n\ninterface DOMQuadInit {\n    p1?: DOMPointInit;\n    p2?: DOMPointInit;\n    p3?: DOMPointInit;\n    p4?: DOMPointInit;\n}\n\ninterface DOMRectInit {\n    height?: number;\n    width?: number;\n    x?: number;\n    y?: number;\n}\n\ninterface DelayOptions extends AudioNodeOptions {\n    delayTime?: number;\n    maxDelayTime?: number;\n}\n\ninterface DeviceMotionEventAccelerationInit {\n    x?: number | null;\n    y?: number | null;\n    z?: number | null;\n}\n\ninterface DeviceMotionEventInit extends EventInit {\n    acceleration?: DeviceMotionEventAccelerationInit;\n    accelerationIncludingGravity?: DeviceMotionEventAccelerationInit;\n    interval?: number;\n    rotationRate?: DeviceMotionEventRotationRateInit;\n}\n\ninterface DeviceMotionEventRotationRateInit {\n    alpha?: number | null;\n    beta?: number | null;\n    gamma?: number | null;\n}\n\ninterface DeviceOrientationEventInit extends EventInit {\n    absolute?: boolean;\n    alpha?: number | null;\n    beta?: number | null;\n    gamma?: number | null;\n}\n\ninterface DisplayMediaStreamOptions {\n    audio?: boolean | MediaTrackConstraints;\n    video?: boolean | MediaTrackConstraints;\n}\n\ninterface DocumentTimelineOptions {\n    originTime?: DOMHighResTimeStamp;\n}\n\ninterface DoubleRange {\n    max?: number;\n    min?: number;\n}\n\ninterface DragEventInit extends MouseEventInit {\n    dataTransfer?: DataTransfer | null;\n}\n\ninterface DynamicsCompressorOptions extends AudioNodeOptions {\n    attack?: number;\n    knee?: number;\n    ratio?: number;\n    release?: number;\n    threshold?: number;\n}\n\ninterface EcKeyAlgorithm extends KeyAlgorithm {\n    namedCurve: NamedCurve;\n}\n\ninterface EcKeyGenParams extends Algorithm {\n    namedCurve: NamedCurve;\n}\n\ninterface EcKeyImportParams extends Algorithm {\n    namedCurve: NamedCurve;\n}\n\ninterface EcdhKeyDeriveParams extends Algorithm {\n    public: CryptoKey;\n}\n\ninterface EcdsaParams extends Algorithm {\n    hash: HashAlgorithmIdentifier;\n}\n\ninterface EffectTiming {\n    delay?: number;\n    direction?: PlaybackDirection;\n    duration?: number | string;\n    easing?: string;\n    endDelay?: number;\n    fill?: FillMode;\n    iterationStart?: number;\n    iterations?: number;\n    playbackRate?: number;\n}\n\ninterface ElementCreationOptions {\n    is?: string;\n}\n\ninterface ElementDefinitionOptions {\n    extends?: string;\n}\n\ninterface ErrorEventInit extends EventInit {\n    colno?: number;\n    error?: any;\n    filename?: string;\n    lineno?: number;\n    message?: string;\n}\n\ninterface EventInit {\n    bubbles?: boolean;\n    cancelable?: boolean;\n    composed?: boolean;\n}\n\ninterface EventListenerOptions {\n    capture?: boolean;\n}\n\ninterface EventModifierInit extends UIEventInit {\n    altKey?: boolean;\n    ctrlKey?: boolean;\n    metaKey?: boolean;\n    modifierAltGraph?: boolean;\n    modifierCapsLock?: boolean;\n    modifierFn?: boolean;\n    modifierFnLock?: boolean;\n    modifierHyper?: boolean;\n    modifierNumLock?: boolean;\n    modifierScrollLock?: boolean;\n    modifierSuper?: boolean;\n    modifierSymbol?: boolean;\n    modifierSymbolLock?: boolean;\n    shiftKey?: boolean;\n}\n\ninterface EventSourceInit {\n    withCredentials?: boolean;\n}\n\ninterface FilePropertyBag extends BlobPropertyBag {\n    lastModified?: number;\n}\n\ninterface FileSystemFlags {\n    create?: boolean;\n    exclusive?: boolean;\n}\n\ninterface FileSystemGetDirectoryOptions {\n    create?: boolean;\n}\n\ninterface FileSystemGetFileOptions {\n    create?: boolean;\n}\n\ninterface FileSystemRemoveOptions {\n    recursive?: boolean;\n}\n\ninterface FocusEventInit extends UIEventInit {\n    relatedTarget?: EventTarget | null;\n}\n\ninterface FocusOptions {\n    preventScroll?: boolean;\n}\n\ninterface FontFaceDescriptors {\n    ascentOverride?: string;\n    descentOverride?: string;\n    display?: FontDisplay;\n    featureSettings?: string;\n    lineGapOverride?: string;\n    stretch?: string;\n    style?: string;\n    unicodeRange?: string;\n    variant?: string;\n    weight?: string;\n}\n\ninterface FontFaceSetLoadEventInit extends EventInit {\n    fontfaces?: FontFace[];\n}\n\ninterface FormDataEventInit extends EventInit {\n    formData: FormData;\n}\n\ninterface FullscreenOptions {\n    navigationUI?: FullscreenNavigationUI;\n}\n\ninterface GainOptions extends AudioNodeOptions {\n    gain?: number;\n}\n\ninterface GamepadEventInit extends EventInit {\n    gamepad: Gamepad;\n}\n\ninterface GetAnimationsOptions {\n    subtree?: boolean;\n}\n\ninterface GetNotificationOptions {\n    tag?: string;\n}\n\ninterface GetRootNodeOptions {\n    composed?: boolean;\n}\n\ninterface HashChangeEventInit extends EventInit {\n    newURL?: string;\n    oldURL?: string;\n}\n\ninterface HkdfParams extends Algorithm {\n    hash: HashAlgorithmIdentifier;\n    info: BufferSource;\n    salt: BufferSource;\n}\n\ninterface HmacImportParams extends Algorithm {\n    hash: HashAlgorithmIdentifier;\n    length?: number;\n}\n\ninterface HmacKeyAlgorithm extends KeyAlgorithm {\n    hash: KeyAlgorithm;\n    length: number;\n}\n\ninterface HmacKeyGenParams extends Algorithm {\n    hash: HashAlgorithmIdentifier;\n    length?: number;\n}\n\ninterface IDBDatabaseInfo {\n    name?: string;\n    version?: number;\n}\n\ninterface IDBIndexParameters {\n    multiEntry?: boolean;\n    unique?: boolean;\n}\n\ninterface IDBObjectStoreParameters {\n    autoIncrement?: boolean;\n    keyPath?: string | string[] | null;\n}\n\ninterface IDBTransactionOptions {\n    durability?: IDBTransactionDurability;\n}\n\ninterface IDBVersionChangeEventInit extends EventInit {\n    newVersion?: number | null;\n    oldVersion?: number;\n}\n\ninterface IIRFilterOptions extends AudioNodeOptions {\n    feedback: number[];\n    feedforward: number[];\n}\n\ninterface IdleRequestOptions {\n    timeout?: number;\n}\n\ninterface ImageBitmapOptions {\n    colorSpaceConversion?: ColorSpaceConversion;\n    imageOrientation?: ImageOrientation;\n    premultiplyAlpha?: PremultiplyAlpha;\n    resizeHeight?: number;\n    resizeQuality?: ResizeQuality;\n    resizeWidth?: number;\n}\n\ninterface ImageBitmapRenderingContextSettings {\n    alpha?: boolean;\n}\n\ninterface ImageDataSettings {\n    colorSpace?: PredefinedColorSpace;\n}\n\ninterface ImageEncodeOptions {\n    quality?: number;\n    type?: string;\n}\n\ninterface ImportMeta {\n    url: string;\n}\n\ninterface InputEventInit extends UIEventInit {\n    data?: string | null;\n    dataTransfer?: DataTransfer | null;\n    inputType?: string;\n    isComposing?: boolean;\n    targetRanges?: StaticRange[];\n}\n\ninterface IntersectionObserverEntryInit {\n    boundingClientRect: DOMRectInit;\n    intersectionRatio: number;\n    intersectionRect: DOMRectInit;\n    isIntersecting: boolean;\n    rootBounds: DOMRectInit | null;\n    target: Element;\n    time: DOMHighResTimeStamp;\n}\n\ninterface IntersectionObserverInit {\n    root?: Element | Document | null;\n    rootMargin?: string;\n    threshold?: number | number[];\n}\n\ninterface JsonWebKey {\n    alg?: string;\n    crv?: string;\n    d?: string;\n    dp?: string;\n    dq?: string;\n    e?: string;\n    ext?: boolean;\n    k?: string;\n    key_ops?: string[];\n    kty?: string;\n    n?: string;\n    oth?: RsaOtherPrimesInfo[];\n    p?: string;\n    q?: string;\n    qi?: string;\n    use?: string;\n    x?: string;\n    y?: string;\n}\n\ninterface KeyAlgorithm {\n    name: string;\n}\n\ninterface KeyboardEventInit extends EventModifierInit {\n    /** @deprecated */\n    charCode?: number;\n    code?: string;\n    isComposing?: boolean;\n    key?: string;\n    /** @deprecated */\n    keyCode?: number;\n    location?: number;\n    repeat?: boolean;\n}\n\ninterface Keyframe {\n    composite?: CompositeOperationOrAuto;\n    easing?: string;\n    offset?: number | null;\n    [property: string]: string | number | null | undefined;\n}\n\ninterface KeyframeAnimationOptions extends KeyframeEffectOptions {\n    id?: string;\n}\n\ninterface KeyframeEffectOptions extends EffectTiming {\n    composite?: CompositeOperation;\n    iterationComposite?: IterationCompositeOperation;\n    pseudoElement?: string | null;\n}\n\ninterface LockInfo {\n    clientId?: string;\n    mode?: LockMode;\n    name?: string;\n}\n\ninterface LockManagerSnapshot {\n    held?: LockInfo[];\n    pending?: LockInfo[];\n}\n\ninterface LockOptions {\n    ifAvailable?: boolean;\n    mode?: LockMode;\n    signal?: AbortSignal;\n    steal?: boolean;\n}\n\ninterface MIDIConnectionEventInit extends EventInit {\n    port?: MIDIPort;\n}\n\ninterface MIDIMessageEventInit extends EventInit {\n    data?: Uint8Array;\n}\n\ninterface MIDIOptions {\n    software?: boolean;\n    sysex?: boolean;\n}\n\ninterface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {\n    configuration?: MediaDecodingConfiguration;\n}\n\ninterface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {\n    configuration?: MediaEncodingConfiguration;\n}\n\ninterface MediaCapabilitiesInfo {\n    powerEfficient: boolean;\n    smooth: boolean;\n    supported: boolean;\n}\n\ninterface MediaConfiguration {\n    audio?: AudioConfiguration;\n    video?: VideoConfiguration;\n}\n\ninterface MediaDecodingConfiguration extends MediaConfiguration {\n    type: MediaDecodingType;\n}\n\ninterface MediaElementAudioSourceOptions {\n    mediaElement: HTMLMediaElement;\n}\n\ninterface MediaEncodingConfiguration extends MediaConfiguration {\n    type: MediaEncodingType;\n}\n\ninterface MediaEncryptedEventInit extends EventInit {\n    initData?: ArrayBuffer | null;\n    initDataType?: string;\n}\n\ninterface MediaImage {\n    sizes?: string;\n    src: string;\n    type?: string;\n}\n\ninterface MediaKeyMessageEventInit extends EventInit {\n    message: ArrayBuffer;\n    messageType: MediaKeyMessageType;\n}\n\ninterface MediaKeySystemConfiguration {\n    audioCapabilities?: MediaKeySystemMediaCapability[];\n    distinctiveIdentifier?: MediaKeysRequirement;\n    initDataTypes?: string[];\n    label?: string;\n    persistentState?: MediaKeysRequirement;\n    sessionTypes?: string[];\n    videoCapabilities?: MediaKeySystemMediaCapability[];\n}\n\ninterface MediaKeySystemMediaCapability {\n    contentType?: string;\n    encryptionScheme?: string | null;\n    robustness?: string;\n}\n\ninterface MediaMetadataInit {\n    album?: string;\n    artist?: string;\n    artwork?: MediaImage[];\n    title?: string;\n}\n\ninterface MediaPositionState {\n    duration?: number;\n    playbackRate?: number;\n    position?: number;\n}\n\ninterface MediaQueryListEventInit extends EventInit {\n    matches?: boolean;\n    media?: string;\n}\n\ninterface MediaRecorderOptions {\n    audioBitsPerSecond?: number;\n    bitsPerSecond?: number;\n    mimeType?: string;\n    videoBitsPerSecond?: number;\n}\n\ninterface MediaSessionActionDetails {\n    action: MediaSessionAction;\n    fastSeek?: boolean;\n    seekOffset?: number;\n    seekTime?: number;\n}\n\ninterface MediaStreamAudioSourceOptions {\n    mediaStream: MediaStream;\n}\n\ninterface MediaStreamConstraints {\n    audio?: boolean | MediaTrackConstraints;\n    peerIdentity?: string;\n    preferCurrentTab?: boolean;\n    video?: boolean | MediaTrackConstraints;\n}\n\ninterface MediaStreamTrackEventInit extends EventInit {\n    track: MediaStreamTrack;\n}\n\ninterface MediaTrackCapabilities {\n    aspectRatio?: DoubleRange;\n    autoGainControl?: boolean[];\n    channelCount?: ULongRange;\n    deviceId?: string;\n    displaySurface?: string;\n    echoCancellation?: boolean[];\n    facingMode?: string[];\n    frameRate?: DoubleRange;\n    groupId?: string;\n    height?: ULongRange;\n    noiseSuppression?: boolean[];\n    sampleRate?: ULongRange;\n    sampleSize?: ULongRange;\n    width?: ULongRange;\n}\n\ninterface MediaTrackConstraintSet {\n    aspectRatio?: ConstrainDouble;\n    autoGainControl?: ConstrainBoolean;\n    channelCount?: ConstrainULong;\n    deviceId?: ConstrainDOMString;\n    displaySurface?: ConstrainDOMString;\n    echoCancellation?: ConstrainBoolean;\n    facingMode?: ConstrainDOMString;\n    frameRate?: ConstrainDouble;\n    groupId?: ConstrainDOMString;\n    height?: ConstrainULong;\n    noiseSuppression?: ConstrainBoolean;\n    sampleRate?: ConstrainULong;\n    sampleSize?: ConstrainULong;\n    width?: ConstrainULong;\n}\n\ninterface MediaTrackConstraints extends MediaTrackConstraintSet {\n    advanced?: MediaTrackConstraintSet[];\n}\n\ninterface MediaTrackSettings {\n    aspectRatio?: number;\n    autoGainControl?: boolean;\n    channelCount?: number;\n    deviceId?: string;\n    displaySurface?: string;\n    echoCancellation?: boolean;\n    facingMode?: string;\n    frameRate?: number;\n    groupId?: string;\n    height?: number;\n    noiseSuppression?: boolean;\n    sampleRate?: number;\n    sampleSize?: number;\n    width?: number;\n}\n\ninterface MediaTrackSupportedConstraints {\n    aspectRatio?: boolean;\n    autoGainControl?: boolean;\n    channelCount?: boolean;\n    deviceId?: boolean;\n    displaySurface?: boolean;\n    echoCancellation?: boolean;\n    facingMode?: boolean;\n    frameRate?: boolean;\n    groupId?: boolean;\n    height?: boolean;\n    noiseSuppression?: boolean;\n    sampleRate?: boolean;\n    sampleSize?: boolean;\n    width?: boolean;\n}\n\ninterface MessageEventInit<T = any> extends EventInit {\n    data?: T;\n    lastEventId?: string;\n    origin?: string;\n    ports?: MessagePort[];\n    source?: MessageEventSource | null;\n}\n\ninterface MouseEventInit extends EventModifierInit {\n    button?: number;\n    buttons?: number;\n    clientX?: number;\n    clientY?: number;\n    movementX?: number;\n    movementY?: number;\n    relatedTarget?: EventTarget | null;\n    screenX?: number;\n    screenY?: number;\n}\n\ninterface MultiCacheQueryOptions extends CacheQueryOptions {\n    cacheName?: string;\n}\n\ninterface MutationObserverInit {\n    /** Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted. */\n    attributeFilter?: string[];\n    /** Set to true if attributes is true or omitted and target's attribute value before the mutation needs to be recorded. */\n    attributeOldValue?: boolean;\n    /** Set to true if mutations to target's attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified. */\n    attributes?: boolean;\n    /** Set to true if mutations to target's data are to be observed. Can be omitted if characterDataOldValue is specified. */\n    characterData?: boolean;\n    /** Set to true if characterData is set to true or omitted and target's data before the mutation needs to be recorded. */\n    characterDataOldValue?: boolean;\n    /** Set to true if mutations to target's children are to be observed. */\n    childList?: boolean;\n    /** Set to true if mutations to not just target, but also target's descendants are to be observed. */\n    subtree?: boolean;\n}\n\ninterface NavigationPreloadState {\n    enabled?: boolean;\n    headerValue?: string;\n}\n\ninterface NotificationAction {\n    action: string;\n    icon?: string;\n    title: string;\n}\n\ninterface NotificationOptions {\n    actions?: NotificationAction[];\n    badge?: string;\n    body?: string;\n    data?: any;\n    dir?: NotificationDirection;\n    icon?: string;\n    image?: string;\n    lang?: string;\n    renotify?: boolean;\n    requireInteraction?: boolean;\n    silent?: boolean;\n    tag?: string;\n    timestamp?: EpochTimeStamp;\n    vibrate?: VibratePattern;\n}\n\ninterface OfflineAudioCompletionEventInit extends EventInit {\n    renderedBuffer: AudioBuffer;\n}\n\ninterface OfflineAudioContextOptions {\n    length: number;\n    numberOfChannels?: number;\n    sampleRate: number;\n}\n\ninterface OptionalEffectTiming {\n    delay?: number;\n    direction?: PlaybackDirection;\n    duration?: number | string;\n    easing?: string;\n    endDelay?: number;\n    fill?: FillMode;\n    iterationStart?: number;\n    iterations?: number;\n    playbackRate?: number;\n}\n\ninterface OscillatorOptions extends AudioNodeOptions {\n    detune?: number;\n    frequency?: number;\n    periodicWave?: PeriodicWave;\n    type?: OscillatorType;\n}\n\ninterface PageTransitionEventInit extends EventInit {\n    persisted?: boolean;\n}\n\ninterface PannerOptions extends AudioNodeOptions {\n    coneInnerAngle?: number;\n    coneOuterAngle?: number;\n    coneOuterGain?: number;\n    distanceModel?: DistanceModelType;\n    maxDistance?: number;\n    orientationX?: number;\n    orientationY?: number;\n    orientationZ?: number;\n    panningModel?: PanningModelType;\n    positionX?: number;\n    positionY?: number;\n    positionZ?: number;\n    refDistance?: number;\n    rolloffFactor?: number;\n}\n\ninterface PaymentCurrencyAmount {\n    currency: string;\n    value: string;\n}\n\ninterface PaymentDetailsBase {\n    displayItems?: PaymentItem[];\n    modifiers?: PaymentDetailsModifier[];\n}\n\ninterface PaymentDetailsInit extends PaymentDetailsBase {\n    id?: string;\n    total: PaymentItem;\n}\n\ninterface PaymentDetailsModifier {\n    additionalDisplayItems?: PaymentItem[];\n    data?: any;\n    supportedMethods: string;\n    total?: PaymentItem;\n}\n\ninterface PaymentDetailsUpdate extends PaymentDetailsBase {\n    paymentMethodErrors?: any;\n    total?: PaymentItem;\n}\n\ninterface PaymentItem {\n    amount: PaymentCurrencyAmount;\n    label: string;\n    pending?: boolean;\n}\n\ninterface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit {\n    methodDetails?: any;\n    methodName?: string;\n}\n\ninterface PaymentMethodData {\n    data?: any;\n    supportedMethods: string;\n}\n\ninterface PaymentRequestUpdateEventInit extends EventInit {\n}\n\ninterface PaymentValidationErrors {\n    error?: string;\n    paymentMethod?: any;\n}\n\ninterface Pbkdf2Params extends Algorithm {\n    hash: HashAlgorithmIdentifier;\n    iterations: number;\n    salt: BufferSource;\n}\n\ninterface PerformanceMarkOptions {\n    detail?: any;\n    startTime?: DOMHighResTimeStamp;\n}\n\ninterface PerformanceMeasureOptions {\n    detail?: any;\n    duration?: DOMHighResTimeStamp;\n    end?: string | DOMHighResTimeStamp;\n    start?: string | DOMHighResTimeStamp;\n}\n\ninterface PerformanceObserverInit {\n    buffered?: boolean;\n    entryTypes?: string[];\n    type?: string;\n}\n\ninterface PeriodicWaveConstraints {\n    disableNormalization?: boolean;\n}\n\ninterface PeriodicWaveOptions extends PeriodicWaveConstraints {\n    imag?: number[] | Float32Array;\n    real?: number[] | Float32Array;\n}\n\ninterface PermissionDescriptor {\n    name: PermissionName;\n}\n\ninterface PictureInPictureEventInit extends EventInit {\n    pictureInPictureWindow: PictureInPictureWindow;\n}\n\ninterface PointerEventInit extends MouseEventInit {\n    coalescedEvents?: PointerEvent[];\n    height?: number;\n    isPrimary?: boolean;\n    pointerId?: number;\n    pointerType?: string;\n    predictedEvents?: PointerEvent[];\n    pressure?: number;\n    tangentialPressure?: number;\n    tiltX?: number;\n    tiltY?: number;\n    twist?: number;\n    width?: number;\n}\n\ninterface PopStateEventInit extends EventInit {\n    state?: any;\n}\n\ninterface PositionOptions {\n    enableHighAccuracy?: boolean;\n    maximumAge?: number;\n    timeout?: number;\n}\n\ninterface ProgressEventInit extends EventInit {\n    lengthComputable?: boolean;\n    loaded?: number;\n    total?: number;\n}\n\ninterface PromiseRejectionEventInit extends EventInit {\n    promise: Promise<any>;\n    reason?: any;\n}\n\ninterface PropertyIndexedKeyframes {\n    composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];\n    easing?: string | string[];\n    offset?: number | (number | null)[];\n    [property: string]: string | string[] | number | null | (number | null)[] | undefined;\n}\n\ninterface PublicKeyCredentialCreationOptions {\n    attestation?: AttestationConveyancePreference;\n    authenticatorSelection?: AuthenticatorSelectionCriteria;\n    challenge: BufferSource;\n    excludeCredentials?: PublicKeyCredentialDescriptor[];\n    extensions?: AuthenticationExtensionsClientInputs;\n    pubKeyCredParams: PublicKeyCredentialParameters[];\n    rp: PublicKeyCredentialRpEntity;\n    timeout?: number;\n    user: PublicKeyCredentialUserEntity;\n}\n\ninterface PublicKeyCredentialDescriptor {\n    id: BufferSource;\n    transports?: AuthenticatorTransport[];\n    type: PublicKeyCredentialType;\n}\n\ninterface PublicKeyCredentialEntity {\n    name: string;\n}\n\ninterface PublicKeyCredentialParameters {\n    alg: COSEAlgorithmIdentifier;\n    type: PublicKeyCredentialType;\n}\n\ninterface PublicKeyCredentialRequestOptions {\n    allowCredentials?: PublicKeyCredentialDescriptor[];\n    challenge: BufferSource;\n    extensions?: AuthenticationExtensionsClientInputs;\n    rpId?: string;\n    timeout?: number;\n    userVerification?: UserVerificationRequirement;\n}\n\ninterface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {\n    id?: string;\n}\n\ninterface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {\n    displayName: string;\n    id: BufferSource;\n}\n\ninterface PushSubscriptionJSON {\n    endpoint?: string;\n    expirationTime?: EpochTimeStamp | null;\n    keys?: Record<string, string>;\n}\n\ninterface PushSubscriptionOptionsInit {\n    applicationServerKey?: BufferSource | string | null;\n    userVisibleOnly?: boolean;\n}\n\ninterface QueuingStrategy<T = any> {\n    highWaterMark?: number;\n    size?: QueuingStrategySize<T>;\n}\n\ninterface QueuingStrategyInit {\n    /**\n     * Creates a new ByteLengthQueuingStrategy with the provided high water mark.\n     *\n     * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.\n     */\n    highWaterMark: number;\n}\n\ninterface RTCAnswerOptions extends RTCOfferAnswerOptions {\n}\n\ninterface RTCCertificateExpiration {\n    expires?: number;\n}\n\ninterface RTCConfiguration {\n    bundlePolicy?: RTCBundlePolicy;\n    certificates?: RTCCertificate[];\n    iceCandidatePoolSize?: number;\n    iceServers?: RTCIceServer[];\n    iceTransportPolicy?: RTCIceTransportPolicy;\n    rtcpMuxPolicy?: RTCRtcpMuxPolicy;\n}\n\ninterface RTCDTMFToneChangeEventInit extends EventInit {\n    tone?: string;\n}\n\ninterface RTCDataChannelEventInit extends EventInit {\n    channel: RTCDataChannel;\n}\n\ninterface RTCDataChannelInit {\n    id?: number;\n    maxPacketLifeTime?: number;\n    maxRetransmits?: number;\n    negotiated?: boolean;\n    ordered?: boolean;\n    protocol?: string;\n}\n\ninterface RTCDtlsFingerprint {\n    algorithm?: string;\n    value?: string;\n}\n\ninterface RTCEncodedAudioFrameMetadata {\n    contributingSources?: number[];\n    synchronizationSource?: number;\n}\n\ninterface RTCEncodedVideoFrameMetadata {\n    contributingSources?: number[];\n    dependencies?: number[];\n    frameId?: number;\n    height?: number;\n    spatialIndex?: number;\n    synchronizationSource?: number;\n    temporalIndex?: number;\n    width?: number;\n}\n\ninterface RTCErrorEventInit extends EventInit {\n    error: RTCError;\n}\n\ninterface RTCErrorInit {\n    errorDetail: RTCErrorDetailType;\n    httpRequestStatusCode?: number;\n    receivedAlert?: number;\n    sctpCauseCode?: number;\n    sdpLineNumber?: number;\n    sentAlert?: number;\n}\n\ninterface RTCIceCandidateInit {\n    candidate?: string;\n    sdpMLineIndex?: number | null;\n    sdpMid?: string | null;\n    usernameFragment?: string | null;\n}\n\ninterface RTCIceCandidatePairStats extends RTCStats {\n    availableIncomingBitrate?: number;\n    availableOutgoingBitrate?: number;\n    bytesReceived?: number;\n    bytesSent?: number;\n    currentRoundTripTime?: number;\n    lastPacketReceivedTimestamp?: DOMHighResTimeStamp;\n    lastPacketSentTimestamp?: DOMHighResTimeStamp;\n    localCandidateId: string;\n    nominated?: boolean;\n    remoteCandidateId: string;\n    requestsReceived?: number;\n    requestsSent?: number;\n    responsesReceived?: number;\n    responsesSent?: number;\n    state: RTCStatsIceCandidatePairState;\n    totalRoundTripTime?: number;\n    transportId: string;\n}\n\ninterface RTCIceServer {\n    credential?: string;\n    urls: string | string[];\n    username?: string;\n}\n\ninterface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {\n    audioLevel?: number;\n    bytesReceived?: number;\n    concealedSamples?: number;\n    concealmentEvents?: number;\n    decoderImplementation?: string;\n    estimatedPlayoutTimestamp?: DOMHighResTimeStamp;\n    fecPacketsDiscarded?: number;\n    fecPacketsReceived?: number;\n    firCount?: number;\n    frameHeight?: number;\n    frameWidth?: number;\n    framesDecoded?: number;\n    framesDropped?: number;\n    framesPerSecond?: number;\n    framesReceived?: number;\n    headerBytesReceived?: number;\n    insertedSamplesForDeceleration?: number;\n    jitterBufferDelay?: number;\n    jitterBufferEmittedCount?: number;\n    keyFramesDecoded?: number;\n    kind: string;\n    lastPacketReceivedTimestamp?: DOMHighResTimeStamp;\n    nackCount?: number;\n    packetsDiscarded?: number;\n    pliCount?: number;\n    qpSum?: number;\n    remoteId?: string;\n    removedSamplesForAcceleration?: number;\n    silentConcealedSamples?: number;\n    totalAudioEnergy?: number;\n    totalDecodeTime?: number;\n    totalInterFrameDelay?: number;\n    totalProcessingDelay?: number;\n    totalSamplesDuration?: number;\n    totalSamplesReceived?: number;\n    totalSquaredInterFrameDelay?: number;\n}\n\ninterface RTCLocalSessionDescriptionInit {\n    sdp?: string;\n    type?: RTCSdpType;\n}\n\ninterface RTCOfferAnswerOptions {\n}\n\ninterface RTCOfferOptions extends RTCOfferAnswerOptions {\n    iceRestart?: boolean;\n    offerToReceiveAudio?: boolean;\n    offerToReceiveVideo?: boolean;\n}\n\ninterface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats {\n    firCount?: number;\n    frameHeight?: number;\n    frameWidth?: number;\n    framesEncoded?: number;\n    framesPerSecond?: number;\n    framesSent?: number;\n    headerBytesSent?: number;\n    hugeFramesSent?: number;\n    keyFramesEncoded?: number;\n    mediaSourceId?: string;\n    nackCount?: number;\n    pliCount?: number;\n    qpSum?: number;\n    qualityLimitationResolutionChanges?: number;\n    remoteId?: string;\n    retransmittedBytesSent?: number;\n    retransmittedPacketsSent?: number;\n    rid?: string;\n    targetBitrate?: number;\n    totalEncodeTime?: number;\n    totalEncodedBytesTarget?: number;\n    totalPacketSendDelay?: number;\n}\n\ninterface RTCPeerConnectionIceErrorEventInit extends EventInit {\n    address?: string | null;\n    errorCode: number;\n    errorText?: string;\n    port?: number | null;\n    url?: string;\n}\n\ninterface RTCPeerConnectionIceEventInit extends EventInit {\n    candidate?: RTCIceCandidate | null;\n    url?: string | null;\n}\n\ninterface RTCReceivedRtpStreamStats extends RTCRtpStreamStats {\n    jitter?: number;\n    packetsLost?: number;\n    packetsReceived?: number;\n}\n\ninterface RTCRtcpParameters {\n    cname?: string;\n    reducedSize?: boolean;\n}\n\ninterface RTCRtpCapabilities {\n    codecs: RTCRtpCodecCapability[];\n    headerExtensions: RTCRtpHeaderExtensionCapability[];\n}\n\ninterface RTCRtpCodecCapability {\n    channels?: number;\n    clockRate: number;\n    mimeType: string;\n    sdpFmtpLine?: string;\n}\n\ninterface RTCRtpCodecParameters {\n    channels?: number;\n    clockRate: number;\n    mimeType: string;\n    payloadType: number;\n    sdpFmtpLine?: string;\n}\n\ninterface RTCRtpCodingParameters {\n    rid?: string;\n}\n\ninterface RTCRtpContributingSource {\n    audioLevel?: number;\n    rtpTimestamp: number;\n    source: number;\n    timestamp: DOMHighResTimeStamp;\n}\n\ninterface RTCRtpEncodingParameters extends RTCRtpCodingParameters {\n    active?: boolean;\n    maxBitrate?: number;\n    maxFramerate?: number;\n    networkPriority?: RTCPriorityType;\n    priority?: RTCPriorityType;\n    scaleResolutionDownBy?: number;\n}\n\ninterface RTCRtpHeaderExtensionCapability {\n    uri?: string;\n}\n\ninterface RTCRtpHeaderExtensionParameters {\n    encrypted?: boolean;\n    id: number;\n    uri: string;\n}\n\ninterface RTCRtpParameters {\n    codecs: RTCRtpCodecParameters[];\n    headerExtensions: RTCRtpHeaderExtensionParameters[];\n    rtcp: RTCRtcpParameters;\n}\n\ninterface RTCRtpReceiveParameters extends RTCRtpParameters {\n}\n\ninterface RTCRtpSendParameters extends RTCRtpParameters {\n    degradationPreference?: RTCDegradationPreference;\n    encodings: RTCRtpEncodingParameters[];\n    transactionId: string;\n}\n\ninterface RTCRtpStreamStats extends RTCStats {\n    codecId?: string;\n    kind: string;\n    ssrc: number;\n    transportId?: string;\n}\n\ninterface RTCRtpSynchronizationSource extends RTCRtpContributingSource {\n}\n\ninterface RTCRtpTransceiverInit {\n    direction?: RTCRtpTransceiverDirection;\n    sendEncodings?: RTCRtpEncodingParameters[];\n    streams?: MediaStream[];\n}\n\ninterface RTCSentRtpStreamStats extends RTCRtpStreamStats {\n    bytesSent?: number;\n    packetsSent?: number;\n}\n\ninterface RTCSessionDescriptionInit {\n    sdp?: string;\n    type: RTCSdpType;\n}\n\ninterface RTCStats {\n    id: string;\n    timestamp: DOMHighResTimeStamp;\n    type: RTCStatsType;\n}\n\ninterface RTCTrackEventInit extends EventInit {\n    receiver: RTCRtpReceiver;\n    streams?: MediaStream[];\n    track: MediaStreamTrack;\n    transceiver: RTCRtpTransceiver;\n}\n\ninterface RTCTransportStats extends RTCStats {\n    bytesReceived?: number;\n    bytesSent?: number;\n    dtlsCipher?: string;\n    dtlsState: RTCDtlsTransportState;\n    localCertificateId?: string;\n    remoteCertificateId?: string;\n    selectedCandidatePairId?: string;\n    srtpCipher?: string;\n    tlsVersion?: string;\n}\n\ninterface ReadableStreamGetReaderOptions {\n    /**\n     * Creates a ReadableStreamBYOBReader and locks the stream to the new reader.\n     *\n     * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle \"bring your own buffer\" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.\n     */\n    mode?: ReadableStreamReaderMode;\n}\n\ninterface ReadableStreamReadDoneResult<T> {\n    done: true;\n    value?: T;\n}\n\ninterface ReadableStreamReadValueResult<T> {\n    done: false;\n    value: T;\n}\n\ninterface ReadableWritablePair<R = any, W = any> {\n    readable: ReadableStream<R>;\n    /**\n     * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.\n     *\n     * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\n     */\n    writable: WritableStream<W>;\n}\n\ninterface RegistrationOptions {\n    scope?: string;\n    type?: WorkerType;\n    updateViaCache?: ServiceWorkerUpdateViaCache;\n}\n\ninterface RequestInit {\n    /** A BodyInit object or null to set request's body. */\n    body?: BodyInit | null;\n    /** A string indicating how the request will interact with the browser's cache to set request's cache. */\n    cache?: RequestCache;\n    /** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */\n    credentials?: RequestCredentials;\n    /** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */\n    headers?: HeadersInit;\n    /** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */\n    integrity?: string;\n    /** A boolean to set request's keepalive. */\n    keepalive?: boolean;\n    /** A string to set request's method. */\n    method?: string;\n    /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */\n    mode?: RequestMode;\n    /** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */\n    redirect?: RequestRedirect;\n    /** A string whose value is a same-origin URL, \"about:client\", or the empty string, to set request's referrer. */\n    referrer?: string;\n    /** A referrer policy to set request's referrerPolicy. */\n    referrerPolicy?: ReferrerPolicy;\n    /** An AbortSignal to set request's signal. */\n    signal?: AbortSignal | null;\n    /** Can only be null. Used to disassociate request from any Window. */\n    window?: null;\n}\n\ninterface ResizeObserverOptions {\n    box?: ResizeObserverBoxOptions;\n}\n\ninterface ResponseInit {\n    headers?: HeadersInit;\n    status?: number;\n    statusText?: string;\n}\n\ninterface RsaHashedImportParams extends Algorithm {\n    hash: HashAlgorithmIdentifier;\n}\n\ninterface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {\n    hash: KeyAlgorithm;\n}\n\ninterface RsaHashedKeyGenParams extends RsaKeyGenParams {\n    hash: HashAlgorithmIdentifier;\n}\n\ninterface RsaKeyAlgorithm extends KeyAlgorithm {\n    modulusLength: number;\n    publicExponent: BigInteger;\n}\n\ninterface RsaKeyGenParams extends Algorithm {\n    modulusLength: number;\n    publicExponent: BigInteger;\n}\n\ninterface RsaOaepParams extends Algorithm {\n    label?: BufferSource;\n}\n\ninterface RsaOtherPrimesInfo {\n    d?: string;\n    r?: string;\n    t?: string;\n}\n\ninterface RsaPssParams extends Algorithm {\n    saltLength: number;\n}\n\ninterface SVGBoundingBoxOptions {\n    clipped?: boolean;\n    fill?: boolean;\n    markers?: boolean;\n    stroke?: boolean;\n}\n\ninterface ScrollIntoViewOptions extends ScrollOptions {\n    block?: ScrollLogicalPosition;\n    inline?: ScrollLogicalPosition;\n}\n\ninterface ScrollOptions {\n    behavior?: ScrollBehavior;\n}\n\ninterface ScrollToOptions extends ScrollOptions {\n    left?: number;\n    top?: number;\n}\n\ninterface SecurityPolicyViolationEventInit extends EventInit {\n    blockedURI?: string;\n    columnNumber?: number;\n    disposition: SecurityPolicyViolationEventDisposition;\n    documentURI: string;\n    effectiveDirective: string;\n    lineNumber?: number;\n    originalPolicy: string;\n    referrer?: string;\n    sample?: string;\n    sourceFile?: string;\n    statusCode: number;\n    violatedDirective: string;\n}\n\ninterface ShadowRootInit {\n    delegatesFocus?: boolean;\n    mode: ShadowRootMode;\n    slotAssignment?: SlotAssignmentMode;\n}\n\ninterface ShareData {\n    files?: File[];\n    text?: string;\n    title?: string;\n    url?: string;\n}\n\ninterface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit {\n    error: SpeechSynthesisErrorCode;\n}\n\ninterface SpeechSynthesisEventInit extends EventInit {\n    charIndex?: number;\n    charLength?: number;\n    elapsedTime?: number;\n    name?: string;\n    utterance: SpeechSynthesisUtterance;\n}\n\ninterface StaticRangeInit {\n    endContainer: Node;\n    endOffset: number;\n    startContainer: Node;\n    startOffset: number;\n}\n\ninterface StereoPannerOptions extends AudioNodeOptions {\n    pan?: number;\n}\n\ninterface StorageEstimate {\n    quota?: number;\n    usage?: number;\n}\n\ninterface StorageEventInit extends EventInit {\n    key?: string | null;\n    newValue?: string | null;\n    oldValue?: string | null;\n    storageArea?: Storage | null;\n    url?: string;\n}\n\ninterface StreamPipeOptions {\n    preventAbort?: boolean;\n    preventCancel?: boolean;\n    /**\n     * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.\n     *\n     * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\n     *\n     * Errors and closures of the source and destination streams propagate as follows:\n     *\n     * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination.\n     *\n     * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source.\n     *\n     * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.\n     *\n     * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.\n     *\n     * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.\n     */\n    preventClose?: boolean;\n    signal?: AbortSignal;\n}\n\ninterface StructuredSerializeOptions {\n    transfer?: Transferable[];\n}\n\ninterface SubmitEventInit extends EventInit {\n    submitter?: HTMLElement | null;\n}\n\ninterface TextDecodeOptions {\n    stream?: boolean;\n}\n\ninterface TextDecoderOptions {\n    fatal?: boolean;\n    ignoreBOM?: boolean;\n}\n\ninterface TextEncoderEncodeIntoResult {\n    read?: number;\n    written?: number;\n}\n\ninterface TouchEventInit extends EventModifierInit {\n    changedTouches?: Touch[];\n    targetTouches?: Touch[];\n    touches?: Touch[];\n}\n\ninterface TouchInit {\n    altitudeAngle?: number;\n    azimuthAngle?: number;\n    clientX?: number;\n    clientY?: number;\n    force?: number;\n    identifier: number;\n    pageX?: number;\n    pageY?: number;\n    radiusX?: number;\n    radiusY?: number;\n    rotationAngle?: number;\n    screenX?: number;\n    screenY?: number;\n    target: EventTarget;\n    touchType?: TouchType;\n}\n\ninterface TrackEventInit extends EventInit {\n    track?: TextTrack | null;\n}\n\ninterface Transformer<I = any, O = any> {\n    flush?: TransformerFlushCallback<O>;\n    readableType?: undefined;\n    start?: TransformerStartCallback<O>;\n    transform?: TransformerTransformCallback<I, O>;\n    writableType?: undefined;\n}\n\ninterface TransitionEventInit extends EventInit {\n    elapsedTime?: number;\n    propertyName?: string;\n    pseudoElement?: string;\n}\n\ninterface UIEventInit extends EventInit {\n    detail?: number;\n    view?: Window | null;\n    /** @deprecated */\n    which?: number;\n}\n\ninterface ULongRange {\n    max?: number;\n    min?: number;\n}\n\ninterface UnderlyingByteSource {\n    autoAllocateChunkSize?: number;\n    cancel?: UnderlyingSourceCancelCallback;\n    pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;\n    start?: (controller: ReadableByteStreamController) => any;\n    type: \"bytes\";\n}\n\ninterface UnderlyingDefaultSource<R = any> {\n    cancel?: UnderlyingSourceCancelCallback;\n    pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;\n    start?: (controller: ReadableStreamDefaultController<R>) => any;\n    type?: undefined;\n}\n\ninterface UnderlyingSink<W = any> {\n    abort?: UnderlyingSinkAbortCallback;\n    close?: UnderlyingSinkCloseCallback;\n    start?: UnderlyingSinkStartCallback;\n    type?: undefined;\n    write?: UnderlyingSinkWriteCallback<W>;\n}\n\ninterface UnderlyingSource<R = any> {\n    autoAllocateChunkSize?: number;\n    cancel?: UnderlyingSourceCancelCallback;\n    pull?: UnderlyingSourcePullCallback<R>;\n    start?: UnderlyingSourceStartCallback<R>;\n    type?: ReadableStreamType;\n}\n\ninterface ValidityStateFlags {\n    badInput?: boolean;\n    customError?: boolean;\n    patternMismatch?: boolean;\n    rangeOverflow?: boolean;\n    rangeUnderflow?: boolean;\n    stepMismatch?: boolean;\n    tooLong?: boolean;\n    tooShort?: boolean;\n    typeMismatch?: boolean;\n    valueMissing?: boolean;\n}\n\ninterface VideoColorSpaceInit {\n    fullRange?: boolean | null;\n    matrix?: VideoMatrixCoefficients | null;\n    primaries?: VideoColorPrimaries | null;\n    transfer?: VideoTransferCharacteristics | null;\n}\n\ninterface VideoConfiguration {\n    bitrate: number;\n    colorGamut?: ColorGamut;\n    contentType: string;\n    framerate: number;\n    hdrMetadataType?: HdrMetadataType;\n    height: number;\n    scalabilityMode?: string;\n    transferFunction?: TransferFunction;\n    width: number;\n}\n\ninterface VideoFrameCallbackMetadata {\n    captureTime?: DOMHighResTimeStamp;\n    expectedDisplayTime: DOMHighResTimeStamp;\n    height: number;\n    mediaTime: number;\n    presentationTime: DOMHighResTimeStamp;\n    presentedFrames: number;\n    processingDuration?: number;\n    receiveTime?: DOMHighResTimeStamp;\n    rtpTimestamp?: number;\n    width: number;\n}\n\ninterface WaveShaperOptions extends AudioNodeOptions {\n    curve?: number[] | Float32Array;\n    oversample?: OverSampleType;\n}\n\ninterface WebGLContextAttributes {\n    alpha?: boolean;\n    antialias?: boolean;\n    depth?: boolean;\n    desynchronized?: boolean;\n    failIfMajorPerformanceCaveat?: boolean;\n    powerPreference?: WebGLPowerPreference;\n    premultipliedAlpha?: boolean;\n    preserveDrawingBuffer?: boolean;\n    stencil?: boolean;\n}\n\ninterface WebGLContextEventInit extends EventInit {\n    statusMessage?: string;\n}\n\ninterface WheelEventInit extends MouseEventInit {\n    deltaMode?: number;\n    deltaX?: number;\n    deltaY?: number;\n    deltaZ?: number;\n}\n\ninterface WindowPostMessageOptions extends StructuredSerializeOptions {\n    targetOrigin?: string;\n}\n\ninterface WorkerOptions {\n    credentials?: RequestCredentials;\n    name?: string;\n    type?: WorkerType;\n}\n\ninterface WorkletOptions {\n    credentials?: RequestCredentials;\n}\n\ntype NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; };\n\ndeclare var NodeFilter: {\n    readonly FILTER_ACCEPT: 1;\n    readonly FILTER_REJECT: 2;\n    readonly FILTER_SKIP: 3;\n    readonly SHOW_ALL: 0xFFFFFFFF;\n    readonly SHOW_ELEMENT: 0x1;\n    readonly SHOW_ATTRIBUTE: 0x2;\n    readonly SHOW_TEXT: 0x4;\n    readonly SHOW_CDATA_SECTION: 0x8;\n    readonly SHOW_ENTITY_REFERENCE: 0x10;\n    readonly SHOW_ENTITY: 0x20;\n    readonly SHOW_PROCESSING_INSTRUCTION: 0x40;\n    readonly SHOW_COMMENT: 0x80;\n    readonly SHOW_DOCUMENT: 0x100;\n    readonly SHOW_DOCUMENT_TYPE: 0x200;\n    readonly SHOW_DOCUMENT_FRAGMENT: 0x400;\n    readonly SHOW_NOTATION: 0x800;\n};\n\ntype XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; };\n\n/** The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. */\ninterface ANGLE_instanced_arrays {\n    drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;\n    drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;\n    vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;\n    readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE;\n}\n\ninterface ARIAMixin {\n    ariaAtomic: string | null;\n    ariaAutoComplete: string | null;\n    ariaBusy: string | null;\n    ariaChecked: string | null;\n    ariaColCount: string | null;\n    ariaColIndex: string | null;\n    ariaColSpan: string | null;\n    ariaCurrent: string | null;\n    ariaDisabled: string | null;\n    ariaExpanded: string | null;\n    ariaHasPopup: string | null;\n    ariaHidden: string | null;\n    ariaInvalid: string | null;\n    ariaKeyShortcuts: string | null;\n    ariaLabel: string | null;\n    ariaLevel: string | null;\n    ariaLive: string | null;\n    ariaModal: string | null;\n    ariaMultiLine: string | null;\n    ariaMultiSelectable: string | null;\n    ariaOrientation: string | null;\n    ariaPlaceholder: string | null;\n    ariaPosInSet: string | null;\n    ariaPressed: string | null;\n    ariaReadOnly: string | null;\n    ariaRequired: string | null;\n    ariaRoleDescription: string | null;\n    ariaRowCount: string | null;\n    ariaRowIndex: string | null;\n    ariaRowSpan: string | null;\n    ariaSelected: string | null;\n    ariaSetSize: string | null;\n    ariaSort: string | null;\n    ariaValueMax: string | null;\n    ariaValueMin: string | null;\n    ariaValueNow: string | null;\n    ariaValueText: string | null;\n    role: string | null;\n}\n\n/** A controller object that allows you to abort one or more DOM requests as and when desired. */\ninterface AbortController {\n    /** Returns the AbortSignal object associated with this object. */\n    readonly signal: AbortSignal;\n    /** Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. */\n    abort(reason?: any): void;\n}\n\ndeclare var AbortController: {\n    prototype: AbortController;\n    new(): AbortController;\n};\n\ninterface AbortSignalEventMap {\n    \"abort\": Event;\n}\n\n/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */\ninterface AbortSignal extends EventTarget {\n    /** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */\n    readonly aborted: boolean;\n    onabort: ((this: AbortSignal, ev: Event) => any) | null;\n    readonly reason: any;\n    throwIfAborted(): void;\n    addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AbortSignal: {\n    prototype: AbortSignal;\n    new(): AbortSignal;\n    abort(reason?: any): AbortSignal;\n    timeout(milliseconds: number): AbortSignal;\n};\n\ninterface AbstractRange {\n    /** Returns true if range is collapsed, and false otherwise. */\n    readonly collapsed: boolean;\n    /** Returns range's end node. */\n    readonly endContainer: Node;\n    /** Returns range's end offset. */\n    readonly endOffset: number;\n    /** Returns range's start node. */\n    readonly startContainer: Node;\n    /** Returns range's start offset. */\n    readonly startOffset: number;\n}\n\ndeclare var AbstractRange: {\n    prototype: AbstractRange;\n    new(): AbstractRange;\n};\n\ninterface AbstractWorkerEventMap {\n    \"error\": ErrorEvent;\n}\n\ninterface AbstractWorker {\n    onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;\n    addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations. */\ninterface AnalyserNode extends AudioNode {\n    fftSize: number;\n    readonly frequencyBinCount: number;\n    maxDecibels: number;\n    minDecibels: number;\n    smoothingTimeConstant: number;\n    getByteFrequencyData(array: Uint8Array): void;\n    getByteTimeDomainData(array: Uint8Array): void;\n    getFloatFrequencyData(array: Float32Array): void;\n    getFloatTimeDomainData(array: Float32Array): void;\n}\n\ndeclare var AnalyserNode: {\n    prototype: AnalyserNode;\n    new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode;\n};\n\ninterface Animatable {\n    animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;\n    getAnimations(options?: GetAnimationsOptions): Animation[];\n}\n\ninterface AnimationEventMap {\n    \"cancel\": AnimationPlaybackEvent;\n    \"finish\": AnimationPlaybackEvent;\n    \"remove\": Event;\n}\n\ninterface Animation extends EventTarget {\n    currentTime: CSSNumberish | null;\n    effect: AnimationEffect | null;\n    readonly finished: Promise<Animation>;\n    id: string;\n    oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;\n    onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;\n    onremove: ((this: Animation, ev: Event) => any) | null;\n    readonly pending: boolean;\n    readonly playState: AnimationPlayState;\n    playbackRate: number;\n    readonly ready: Promise<Animation>;\n    readonly replaceState: AnimationReplaceState;\n    startTime: CSSNumberish | null;\n    timeline: AnimationTimeline | null;\n    cancel(): void;\n    commitStyles(): void;\n    finish(): void;\n    pause(): void;\n    persist(): void;\n    play(): void;\n    reverse(): void;\n    updatePlaybackRate(playbackRate: number): void;\n    addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Animation: {\n    prototype: Animation;\n    new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation;\n};\n\ninterface AnimationEffect {\n    getComputedTiming(): ComputedEffectTiming;\n    getTiming(): EffectTiming;\n    updateTiming(timing?: OptionalEffectTiming): void;\n}\n\ndeclare var AnimationEffect: {\n    prototype: AnimationEffect;\n    new(): AnimationEffect;\n};\n\n/** Events providing information related to animations. */\ninterface AnimationEvent extends Event {\n    readonly animationName: string;\n    readonly elapsedTime: number;\n    readonly pseudoElement: string;\n}\n\ndeclare var AnimationEvent: {\n    prototype: AnimationEvent;\n    new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent;\n};\n\ninterface AnimationFrameProvider {\n    cancelAnimationFrame(handle: number): void;\n    requestAnimationFrame(callback: FrameRequestCallback): number;\n}\n\ninterface AnimationPlaybackEvent extends Event {\n    readonly currentTime: CSSNumberish | null;\n    readonly timelineTime: CSSNumberish | null;\n}\n\ndeclare var AnimationPlaybackEvent: {\n    prototype: AnimationPlaybackEvent;\n    new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;\n};\n\ninterface AnimationTimeline {\n    readonly currentTime: number | null;\n}\n\ndeclare var AnimationTimeline: {\n    prototype: AnimationTimeline;\n    new(): AnimationTimeline;\n};\n\n/** A DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types. */\ninterface Attr extends Node {\n    readonly localName: string;\n    readonly name: string;\n    readonly namespaceURI: string | null;\n    readonly ownerDocument: Document;\n    readonly ownerElement: Element | null;\n    readonly prefix: string | null;\n    /** @deprecated */\n    readonly specified: boolean;\n    value: string;\n}\n\ndeclare var Attr: {\n    prototype: Attr;\n    new(): Attr;\n};\n\n/** A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode. */\ninterface AudioBuffer {\n    readonly duration: number;\n    readonly length: number;\n    readonly numberOfChannels: number;\n    readonly sampleRate: number;\n    copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void;\n    copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void;\n    getChannelData(channel: number): Float32Array;\n}\n\ndeclare var AudioBuffer: {\n    prototype: AudioBuffer;\n    new(options: AudioBufferOptions): AudioBuffer;\n};\n\n/** An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network. */\ninterface AudioBufferSourceNode extends AudioScheduledSourceNode {\n    buffer: AudioBuffer | null;\n    readonly detune: AudioParam;\n    loop: boolean;\n    loopEnd: number;\n    loopStart: number;\n    readonly playbackRate: AudioParam;\n    start(when?: number, offset?: number, duration?: number): void;\n    addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioBufferSourceNode: {\n    prototype: AudioBufferSourceNode;\n    new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode;\n};\n\n/** An audio-processing graph built from audio modules linked together, each represented by an AudioNode. */\ninterface AudioContext extends BaseAudioContext {\n    readonly baseLatency: number;\n    readonly outputLatency: number;\n    close(): Promise<void>;\n    createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;\n    createMediaStreamDestination(): MediaStreamAudioDestinationNode;\n    createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;\n    getOutputTimestamp(): AudioTimestamp;\n    resume(): Promise<void>;\n    suspend(): Promise<void>;\n    addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioContext: {\n    prototype: AudioContext;\n    new(contextOptions?: AudioContextOptions): AudioContext;\n};\n\n/** AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised. */\ninterface AudioDestinationNode extends AudioNode {\n    readonly maxChannelCount: number;\n}\n\ndeclare var AudioDestinationNode: {\n    prototype: AudioDestinationNode;\n    new(): AudioDestinationNode;\n};\n\n/** The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute. */\ninterface AudioListener {\n    readonly forwardX: AudioParam;\n    readonly forwardY: AudioParam;\n    readonly forwardZ: AudioParam;\n    readonly positionX: AudioParam;\n    readonly positionY: AudioParam;\n    readonly positionZ: AudioParam;\n    readonly upX: AudioParam;\n    readonly upY: AudioParam;\n    readonly upZ: AudioParam;\n    /** @deprecated */\n    setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;\n    /** @deprecated */\n    setPosition(x: number, y: number, z: number): void;\n}\n\ndeclare var AudioListener: {\n    prototype: AudioListener;\n    new(): AudioListener;\n};\n\n/** A generic interface for representing an audio processing module. Examples include: */\ninterface AudioNode extends EventTarget {\n    channelCount: number;\n    channelCountMode: ChannelCountMode;\n    channelInterpretation: ChannelInterpretation;\n    readonly context: BaseAudioContext;\n    readonly numberOfInputs: number;\n    readonly numberOfOutputs: number;\n    connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode;\n    connect(destinationParam: AudioParam, output?: number): void;\n    disconnect(): void;\n    disconnect(output: number): void;\n    disconnect(destinationNode: AudioNode): void;\n    disconnect(destinationNode: AudioNode, output: number): void;\n    disconnect(destinationNode: AudioNode, output: number, input: number): void;\n    disconnect(destinationParam: AudioParam): void;\n    disconnect(destinationParam: AudioParam, output: number): void;\n}\n\ndeclare var AudioNode: {\n    prototype: AudioNode;\n    new(): AudioNode;\n};\n\n/** The Web Audio API's AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). */\ninterface AudioParam {\n    automationRate: AutomationRate;\n    readonly defaultValue: number;\n    readonly maxValue: number;\n    readonly minValue: number;\n    value: number;\n    cancelAndHoldAtTime(cancelTime: number): AudioParam;\n    cancelScheduledValues(cancelTime: number): AudioParam;\n    exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;\n    linearRampToValueAtTime(value: number, endTime: number): AudioParam;\n    setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;\n    setValueAtTime(value: number, startTime: number): AudioParam;\n    setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam;\n}\n\ndeclare var AudioParam: {\n    prototype: AudioParam;\n    new(): AudioParam;\n};\n\ninterface AudioParamMap {\n    forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void;\n}\n\ndeclare var AudioParamMap: {\n    prototype: AudioParamMap;\n    new(): AudioParamMap;\n};\n\n/**\n * The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed.\n * @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet.\n */\ninterface AudioProcessingEvent extends Event {\n    /** @deprecated */\n    readonly inputBuffer: AudioBuffer;\n    /** @deprecated */\n    readonly outputBuffer: AudioBuffer;\n    /** @deprecated */\n    readonly playbackTime: number;\n}\n\n/** @deprecated */\ndeclare var AudioProcessingEvent: {\n    prototype: AudioProcessingEvent;\n    new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent;\n};\n\ninterface AudioScheduledSourceNodeEventMap {\n    \"ended\": Event;\n}\n\ninterface AudioScheduledSourceNode extends AudioNode {\n    onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null;\n    start(when?: number): void;\n    stop(when?: number): void;\n    addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioScheduledSourceNode: {\n    prototype: AudioScheduledSourceNode;\n    new(): AudioScheduledSourceNode;\n};\n\n/** Available only in secure contexts. */\ninterface AudioWorklet extends Worklet {\n}\n\ndeclare var AudioWorklet: {\n    prototype: AudioWorklet;\n    new(): AudioWorklet;\n};\n\ninterface AudioWorkletNodeEventMap {\n    \"processorerror\": Event;\n}\n\n/** Available only in secure contexts. */\ninterface AudioWorkletNode extends AudioNode {\n    onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null;\n    readonly parameters: AudioParamMap;\n    readonly port: MessagePort;\n    addEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioWorkletNode: {\n    prototype: AudioWorkletNode;\n    new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode;\n};\n\n/** Available only in secure contexts. */\ninterface AuthenticatorAssertionResponse extends AuthenticatorResponse {\n    readonly authenticatorData: ArrayBuffer;\n    readonly signature: ArrayBuffer;\n    readonly userHandle: ArrayBuffer | null;\n}\n\ndeclare var AuthenticatorAssertionResponse: {\n    prototype: AuthenticatorAssertionResponse;\n    new(): AuthenticatorAssertionResponse;\n};\n\n/** Available only in secure contexts. */\ninterface AuthenticatorAttestationResponse extends AuthenticatorResponse {\n    readonly attestationObject: ArrayBuffer;\n    getAuthenticatorData(): ArrayBuffer;\n    getPublicKey(): ArrayBuffer | null;\n    getPublicKeyAlgorithm(): COSEAlgorithmIdentifier;\n    getTransports(): string[];\n}\n\ndeclare var AuthenticatorAttestationResponse: {\n    prototype: AuthenticatorAttestationResponse;\n    new(): AuthenticatorAttestationResponse;\n};\n\n/** Available only in secure contexts. */\ninterface AuthenticatorResponse {\n    readonly clientDataJSON: ArrayBuffer;\n}\n\ndeclare var AuthenticatorResponse: {\n    prototype: AuthenticatorResponse;\n    new(): AuthenticatorResponse;\n};\n\ninterface BarProp {\n    readonly visible: boolean;\n}\n\ndeclare var BarProp: {\n    prototype: BarProp;\n    new(): BarProp;\n};\n\ninterface BaseAudioContextEventMap {\n    \"statechange\": Event;\n}\n\ninterface BaseAudioContext extends EventTarget {\n    /** Available only in secure contexts. */\n    readonly audioWorklet: AudioWorklet;\n    readonly currentTime: number;\n    readonly destination: AudioDestinationNode;\n    readonly listener: AudioListener;\n    onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null;\n    readonly sampleRate: number;\n    readonly state: AudioContextState;\n    createAnalyser(): AnalyserNode;\n    createBiquadFilter(): BiquadFilterNode;\n    createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;\n    createBufferSource(): AudioBufferSourceNode;\n    createChannelMerger(numberOfInputs?: number): ChannelMergerNode;\n    createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;\n    createConstantSource(): ConstantSourceNode;\n    createConvolver(): ConvolverNode;\n    createDelay(maxDelayTime?: number): DelayNode;\n    createDynamicsCompressor(): DynamicsCompressorNode;\n    createGain(): GainNode;\n    createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;\n    createOscillator(): OscillatorNode;\n    createPanner(): PannerNode;\n    createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;\n    /** @deprecated */\n    createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;\n    createStereoPanner(): StereoPannerNode;\n    createWaveShaper(): WaveShaperNode;\n    decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise<AudioBuffer>;\n    addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var BaseAudioContext: {\n    prototype: BaseAudioContext;\n    new(): BaseAudioContext;\n};\n\n/** The beforeunload event is fired when the window, the document and its resources are about to be unloaded. */\ninterface BeforeUnloadEvent extends Event {\n    returnValue: any;\n}\n\ndeclare var BeforeUnloadEvent: {\n    prototype: BeforeUnloadEvent;\n    new(): BeforeUnloadEvent;\n};\n\n/** A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers. */\ninterface BiquadFilterNode extends AudioNode {\n    readonly Q: AudioParam;\n    readonly detune: AudioParam;\n    readonly frequency: AudioParam;\n    readonly gain: AudioParam;\n    type: BiquadFilterType;\n    getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;\n}\n\ndeclare var BiquadFilterNode: {\n    prototype: BiquadFilterNode;\n    new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode;\n};\n\n/** A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. */\ninterface Blob {\n    readonly size: number;\n    readonly type: string;\n    arrayBuffer(): Promise<ArrayBuffer>;\n    slice(start?: number, end?: number, contentType?: string): Blob;\n    stream(): ReadableStream<Uint8Array>;\n    text(): Promise<string>;\n}\n\ndeclare var Blob: {\n    prototype: Blob;\n    new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;\n};\n\ninterface BlobEvent extends Event {\n    readonly data: Blob;\n    readonly timecode: DOMHighResTimeStamp;\n}\n\ndeclare var BlobEvent: {\n    prototype: BlobEvent;\n    new(type: string, eventInitDict: BlobEventInit): BlobEvent;\n};\n\ninterface Body {\n    readonly body: ReadableStream<Uint8Array> | null;\n    readonly bodyUsed: boolean;\n    arrayBuffer(): Promise<ArrayBuffer>;\n    blob(): Promise<Blob>;\n    formData(): Promise<FormData>;\n    json(): Promise<any>;\n    text(): Promise<string>;\n}\n\ninterface BroadcastChannelEventMap {\n    \"message\": MessageEvent;\n    \"messageerror\": MessageEvent;\n}\n\ninterface BroadcastChannel extends EventTarget {\n    /** Returns the channel name (as passed to the constructor). */\n    readonly name: string;\n    onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n    onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n    /** Closes the BroadcastChannel object, opening it up to garbage collection. */\n    close(): void;\n    /** Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. */\n    postMessage(message: any): void;\n    addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var BroadcastChannel: {\n    prototype: BroadcastChannel;\n    new(name: string): BroadcastChannel;\n};\n\n/** This Streams API interface provides\\xA0a built-in byte length queuing strategy that can be used when constructing streams. */\ninterface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {\n    readonly highWaterMark: number;\n    readonly size: QueuingStrategySize<ArrayBufferView>;\n}\n\ndeclare var ByteLengthQueuingStrategy: {\n    prototype: ByteLengthQueuingStrategy;\n    new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;\n};\n\n/** A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don\\u2019t need escaping as they normally do when inside a CDATA section. */\ninterface CDATASection extends Text {\n}\n\ndeclare var CDATASection: {\n    prototype: CDATASection;\n    new(): CDATASection;\n};\n\ninterface CSSAnimation extends Animation {\n    readonly animationName: string;\n    addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var CSSAnimation: {\n    prototype: CSSAnimation;\n    new(): CSSAnimation;\n};\n\n/** A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. */\ninterface CSSConditionRule extends CSSGroupingRule {\n    readonly conditionText: string;\n}\n\ndeclare var CSSConditionRule: {\n    prototype: CSSConditionRule;\n    new(): CSSConditionRule;\n};\n\ninterface CSSContainerRule extends CSSConditionRule {\n}\n\ndeclare var CSSContainerRule: {\n    prototype: CSSContainerRule;\n    new(): CSSContainerRule;\n};\n\ninterface CSSCounterStyleRule extends CSSRule {\n    additiveSymbols: string;\n    fallback: string;\n    name: string;\n    negative: string;\n    pad: string;\n    prefix: string;\n    range: string;\n    speakAs: string;\n    suffix: string;\n    symbols: string;\n    system: string;\n}\n\ndeclare var CSSCounterStyleRule: {\n    prototype: CSSCounterStyleRule;\n    new(): CSSCounterStyleRule;\n};\n\ninterface CSSFontFaceRule extends CSSRule {\n    readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSFontFaceRule: {\n    prototype: CSSFontFaceRule;\n    new(): CSSFontFaceRule;\n};\n\ninterface CSSFontFeatureValuesRule extends CSSRule {\n    fontFamily: string;\n}\n\ndeclare var CSSFontFeatureValuesRule: {\n    prototype: CSSFontFeatureValuesRule;\n    new(): CSSFontFeatureValuesRule;\n};\n\ninterface CSSFontPaletteValuesRule extends CSSRule {\n    readonly basePalette: string;\n    readonly fontFamily: string;\n    readonly name: string;\n    readonly overrideColors: string;\n}\n\ndeclare var CSSFontPaletteValuesRule: {\n    prototype: CSSFontPaletteValuesRule;\n    new(): CSSFontPaletteValuesRule;\n};\n\n/** Any CSS at-rule that contains other rules nested within it. */\ninterface CSSGroupingRule extends CSSRule {\n    readonly cssRules: CSSRuleList;\n    deleteRule(index: number): void;\n    insertRule(rule: string, index?: number): number;\n}\n\ndeclare var CSSGroupingRule: {\n    prototype: CSSGroupingRule;\n    new(): CSSGroupingRule;\n};\n\ninterface CSSImportRule extends CSSRule {\n    readonly href: string;\n    readonly layerName: string | null;\n    readonly media: MediaList;\n    readonly styleSheet: CSSStyleSheet;\n}\n\ndeclare var CSSImportRule: {\n    prototype: CSSImportRule;\n    new(): CSSImportRule;\n};\n\n/** An object representing a set of style for a given keyframe. It corresponds to the contains of a single keyframe of a @keyframes at-rule. It implements the CSSRule interface with a type value of 8 (CSSRule.KEYFRAME_RULE). */\ninterface CSSKeyframeRule extends CSSRule {\n    keyText: string;\n    readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSKeyframeRule: {\n    prototype: CSSKeyframeRule;\n    new(): CSSKeyframeRule;\n};\n\n/** An object representing a complete set of keyframes for a CSS animation. It corresponds to the contains of a whole @keyframes at-rule. It implements the CSSRule interface with a type value of 7 (CSSRule.KEYFRAMES_RULE). */\ninterface CSSKeyframesRule extends CSSRule {\n    readonly cssRules: CSSRuleList;\n    name: string;\n    appendRule(rule: string): void;\n    deleteRule(select: string): void;\n    findRule(select: string): CSSKeyframeRule | null;\n    [index: number]: CSSKeyframeRule;\n}\n\ndeclare var CSSKeyframesRule: {\n    prototype: CSSKeyframesRule;\n    new(): CSSKeyframesRule;\n};\n\ninterface CSSLayerBlockRule extends CSSGroupingRule {\n    readonly name: string;\n}\n\ndeclare var CSSLayerBlockRule: {\n    prototype: CSSLayerBlockRule;\n    new(): CSSLayerBlockRule;\n};\n\ninterface CSSLayerStatementRule extends CSSRule {\n    readonly nameList: ReadonlyArray<string>;\n}\n\ndeclare var CSSLayerStatementRule: {\n    prototype: CSSLayerStatementRule;\n    new(): CSSLayerStatementRule;\n};\n\n/** A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE). */\ninterface CSSMediaRule extends CSSConditionRule {\n    readonly media: MediaList;\n}\n\ndeclare var CSSMediaRule: {\n    prototype: CSSMediaRule;\n    new(): CSSMediaRule;\n};\n\n/** An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE). */\ninterface CSSNamespaceRule extends CSSRule {\n    readonly namespaceURI: string;\n    readonly prefix: string;\n}\n\ndeclare var CSSNamespaceRule: {\n    prototype: CSSNamespaceRule;\n    new(): CSSNamespaceRule;\n};\n\n/** CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE). */\ninterface CSSPageRule extends CSSGroupingRule {\n    selectorText: string;\n    readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSPageRule: {\n    prototype: CSSPageRule;\n    new(): CSSPageRule;\n};\n\n/** A single CSS rule. There are several types of rules, listed in the Type constants section below. */\ninterface CSSRule {\n    cssText: string;\n    readonly parentRule: CSSRule | null;\n    readonly parentStyleSheet: CSSStyleSheet | null;\n    /** @deprecated */\n    readonly type: number;\n    readonly STYLE_RULE: 1;\n    readonly CHARSET_RULE: 2;\n    readonly IMPORT_RULE: 3;\n    readonly MEDIA_RULE: 4;\n    readonly FONT_FACE_RULE: 5;\n    readonly PAGE_RULE: 6;\n    readonly NAMESPACE_RULE: 10;\n    readonly KEYFRAMES_RULE: 7;\n    readonly KEYFRAME_RULE: 8;\n    readonly SUPPORTS_RULE: 12;\n}\n\ndeclare var CSSRule: {\n    prototype: CSSRule;\n    new(): CSSRule;\n    readonly STYLE_RULE: 1;\n    readonly CHARSET_RULE: 2;\n    readonly IMPORT_RULE: 3;\n    readonly MEDIA_RULE: 4;\n    readonly FONT_FACE_RULE: 5;\n    readonly PAGE_RULE: 6;\n    readonly NAMESPACE_RULE: 10;\n    readonly KEYFRAMES_RULE: 7;\n    readonly KEYFRAME_RULE: 8;\n    readonly SUPPORTS_RULE: 12;\n};\n\n/** A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. */\ninterface CSSRuleList {\n    readonly length: number;\n    item(index: number): CSSRule | null;\n    [index: number]: CSSRule;\n}\n\ndeclare var CSSRuleList: {\n    prototype: CSSRuleList;\n    new(): CSSRuleList;\n};\n\n/** An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. */\ninterface CSSStyleDeclaration {\n    accentColor: string;\n    alignContent: string;\n    alignItems: string;\n    alignSelf: string;\n    alignmentBaseline: string;\n    all: string;\n    animation: string;\n    animationDelay: string;\n    animationDirection: string;\n    animationDuration: string;\n    animationFillMode: string;\n    animationIterationCount: string;\n    animationName: string;\n    animationPlayState: string;\n    animationTimingFunction: string;\n    appearance: string;\n    aspectRatio: string;\n    backdropFilter: string;\n    backfaceVisibility: string;\n    background: string;\n    backgroundAttachment: string;\n    backgroundBlendMode: string;\n    backgroundClip: string;\n    backgroundColor: string;\n    backgroundImage: string;\n    backgroundOrigin: string;\n    backgroundPosition: string;\n    backgroundPositionX: string;\n    backgroundPositionY: string;\n    backgroundRepeat: string;\n    backgroundSize: string;\n    baselineShift: string;\n    blockSize: string;\n    border: string;\n    borderBlock: string;\n    borderBlockColor: string;\n    borderBlockEnd: string;\n    borderBlockEndColor: string;\n    borderBlockEndStyle: string;\n    borderBlockEndWidth: string;\n    borderBlockStart: string;\n    borderBlockStartColor: string;\n    borderBlockStartStyle: string;\n    borderBlockStartWidth: string;\n    borderBlockStyle: string;\n    borderBlockWidth: string;\n    borderBottom: string;\n    borderBottomColor: string;\n    borderBottomLeftRadius: string;\n    borderBottomRightRadius: string;\n    borderBottomStyle: string;\n    borderBottomWidth: string;\n    borderCollapse: string;\n    borderColor: string;\n    borderEndEndRadius: string;\n    borderEndStartRadius: string;\n    borderImage: string;\n    borderImageOutset: string;\n    borderImageRepeat: string;\n    borderImageSlice: string;\n    borderImageSource: string;\n    borderImageWidth: string;\n    borderInline: string;\n    borderInlineColor: string;\n    borderInlineEnd: string;\n    borderInlineEndColor: string;\n    borderInlineEndStyle: string;\n    borderInlineEndWidth: string;\n    borderInlineStart: string;\n    borderInlineStartColor: string;\n    borderInlineStartStyle: string;\n    borderInlineStartWidth: string;\n    borderInlineStyle: string;\n    borderInlineWidth: string;\n    borderLeft: string;\n    borderLeftColor: string;\n    borderLeftStyle: string;\n    borderLeftWidth: string;\n    borderRadius: string;\n    borderRight: string;\n    borderRightColor: string;\n    borderRightStyle: string;\n    borderRightWidth: string;\n    borderSpacing: string;\n    borderStartEndRadius: string;\n    borderStartStartRadius: string;\n    borderStyle: string;\n    borderTop: string;\n    borderTopColor: string;\n    borderTopLeftRadius: string;\n    borderTopRightRadius: string;\n    borderTopStyle: string;\n    borderTopWidth: string;\n    borderWidth: string;\n    bottom: string;\n    boxShadow: string;\n    boxSizing: string;\n    breakAfter: string;\n    breakBefore: string;\n    breakInside: string;\n    captionSide: string;\n    caretColor: string;\n    clear: string;\n    /** @deprecated */\n    clip: string;\n    clipPath: string;\n    clipRule: string;\n    color: string;\n    colorInterpolation: string;\n    colorInterpolationFilters: string;\n    colorScheme: string;\n    columnCount: string;\n    columnFill: string;\n    columnGap: string;\n    columnRule: string;\n    columnRuleColor: string;\n    columnRuleStyle: string;\n    columnRuleWidth: string;\n    columnSpan: string;\n    columnWidth: string;\n    columns: string;\n    contain: string;\n    containIntrinsicBlockSize: string;\n    containIntrinsicHeight: string;\n    containIntrinsicInlineSize: string;\n    containIntrinsicSize: string;\n    containIntrinsicWidth: string;\n    container: string;\n    containerName: string;\n    containerType: string;\n    content: string;\n    contentVisibility: string;\n    counterIncrement: string;\n    counterReset: string;\n    counterSet: string;\n    cssFloat: string;\n    cssText: string;\n    cursor: string;\n    direction: string;\n    display: string;\n    dominantBaseline: string;\n    emptyCells: string;\n    fill: string;\n    fillOpacity: string;\n    fillRule: string;\n    filter: string;\n    flex: string;\n    flexBasis: string;\n    flexDirection: string;\n    flexFlow: string;\n    flexGrow: string;\n    flexShrink: string;\n    flexWrap: string;\n    float: string;\n    floodColor: string;\n    floodOpacity: string;\n    font: string;\n    fontFamily: string;\n    fontFeatureSettings: string;\n    fontKerning: string;\n    fontOpticalSizing: string;\n    fontPalette: string;\n    fontSize: string;\n    fontSizeAdjust: string;\n    fontStretch: string;\n    fontStyle: string;\n    fontSynthesis: string;\n    fontVariant: string;\n    fontVariantAlternates: string;\n    fontVariantCaps: string;\n    fontVariantEastAsian: string;\n    fontVariantLigatures: string;\n    fontVariantNumeric: string;\n    fontVariantPosition: string;\n    fontVariationSettings: string;\n    fontWeight: string;\n    gap: string;\n    grid: string;\n    gridArea: string;\n    gridAutoColumns: string;\n    gridAutoFlow: string;\n    gridAutoRows: string;\n    gridColumn: string;\n    gridColumnEnd: string;\n    /** @deprecated This is a legacy alias of \\`columnGap\\`. */\n    gridColumnGap: string;\n    gridColumnStart: string;\n    /** @deprecated This is a legacy alias of \\`gap\\`. */\n    gridGap: string;\n    gridRow: string;\n    gridRowEnd: string;\n    /** @deprecated This is a legacy alias of \\`rowGap\\`. */\n    gridRowGap: string;\n    gridRowStart: string;\n    gridTemplate: string;\n    gridTemplateAreas: string;\n    gridTemplateColumns: string;\n    gridTemplateRows: string;\n    height: string;\n    hyphenateCharacter: string;\n    hyphens: string;\n    /** @deprecated */\n    imageOrientation: string;\n    imageRendering: string;\n    inlineSize: string;\n    inset: string;\n    insetBlock: string;\n    insetBlockEnd: string;\n    insetBlockStart: string;\n    insetInline: string;\n    insetInlineEnd: string;\n    insetInlineStart: string;\n    isolation: string;\n    justifyContent: string;\n    justifyItems: string;\n    justifySelf: string;\n    left: string;\n    readonly length: number;\n    letterSpacing: string;\n    lightingColor: string;\n    lineBreak: string;\n    lineHeight: string;\n    listStyle: string;\n    listStyleImage: string;\n    listStylePosition: string;\n    listStyleType: string;\n    margin: string;\n    marginBlock: string;\n    marginBlockEnd: string;\n    marginBlockStart: string;\n    marginBottom: string;\n    marginInline: string;\n    marginInlineEnd: string;\n    marginInlineStart: string;\n    marginLeft: string;\n    marginRight: string;\n    marginTop: string;\n    marker: string;\n    markerEnd: string;\n    markerMid: string;\n    markerStart: string;\n    mask: string;\n    maskClip: string;\n    maskComposite: string;\n    maskImage: string;\n    maskMode: string;\n    maskOrigin: string;\n    maskPosition: string;\n    maskRepeat: string;\n    maskSize: string;\n    maskType: string;\n    mathStyle: string;\n    maxBlockSize: string;\n    maxHeight: string;\n    maxInlineSize: string;\n    maxWidth: string;\n    minBlockSize: string;\n    minHeight: string;\n    minInlineSize: string;\n    minWidth: string;\n    mixBlendMode: string;\n    objectFit: string;\n    objectPosition: string;\n    offset: string;\n    offsetDistance: string;\n    offsetPath: string;\n    offsetRotate: string;\n    opacity: string;\n    order: string;\n    orphans: string;\n    outline: string;\n    outlineColor: string;\n    outlineOffset: string;\n    outlineStyle: string;\n    outlineWidth: string;\n    overflow: string;\n    overflowAnchor: string;\n    overflowClipMargin: string;\n    overflowWrap: string;\n    overflowX: string;\n    overflowY: string;\n    overscrollBehavior: string;\n    overscrollBehaviorBlock: string;\n    overscrollBehaviorInline: string;\n    overscrollBehaviorX: string;\n    overscrollBehaviorY: string;\n    padding: string;\n    paddingBlock: string;\n    paddingBlockEnd: string;\n    paddingBlockStart: string;\n    paddingBottom: string;\n    paddingInline: string;\n    paddingInlineEnd: string;\n    paddingInlineStart: string;\n    paddingLeft: string;\n    paddingRight: string;\n    paddingTop: string;\n    pageBreakAfter: string;\n    pageBreakBefore: string;\n    pageBreakInside: string;\n    paintOrder: string;\n    readonly parentRule: CSSRule | null;\n    perspective: string;\n    perspectiveOrigin: string;\n    placeContent: string;\n    placeItems: string;\n    placeSelf: string;\n    pointerEvents: string;\n    position: string;\n    printColorAdjust: string;\n    quotes: string;\n    resize: string;\n    right: string;\n    rotate: string;\n    rowGap: string;\n    rubyPosition: string;\n    scale: string;\n    scrollBehavior: string;\n    scrollMargin: string;\n    scrollMarginBlock: string;\n    scrollMarginBlockEnd: string;\n    scrollMarginBlockStart: string;\n    scrollMarginBottom: string;\n    scrollMarginInline: string;\n    scrollMarginInlineEnd: string;\n    scrollMarginInlineStart: string;\n    scrollMarginLeft: string;\n    scrollMarginRight: string;\n    scrollMarginTop: string;\n    scrollPadding: string;\n    scrollPaddingBlock: string;\n    scrollPaddingBlockEnd: string;\n    scrollPaddingBlockStart: string;\n    scrollPaddingBottom: string;\n    scrollPaddingInline: string;\n    scrollPaddingInlineEnd: string;\n    scrollPaddingInlineStart: string;\n    scrollPaddingLeft: string;\n    scrollPaddingRight: string;\n    scrollPaddingTop: string;\n    scrollSnapAlign: string;\n    scrollSnapStop: string;\n    scrollSnapType: string;\n    scrollbarGutter: string;\n    shapeImageThreshold: string;\n    shapeMargin: string;\n    shapeOutside: string;\n    shapeRendering: string;\n    stopColor: string;\n    stopOpacity: string;\n    stroke: string;\n    strokeDasharray: string;\n    strokeDashoffset: string;\n    strokeLinecap: string;\n    strokeLinejoin: string;\n    strokeMiterlimit: string;\n    strokeOpacity: string;\n    strokeWidth: string;\n    tabSize: string;\n    tableLayout: string;\n    textAlign: string;\n    textAlignLast: string;\n    textAnchor: string;\n    textCombineUpright: string;\n    textDecoration: string;\n    textDecorationColor: string;\n    textDecorationLine: string;\n    textDecorationSkipInk: string;\n    textDecorationStyle: string;\n    textDecorationThickness: string;\n    textEmphasis: string;\n    textEmphasisColor: string;\n    textEmphasisPosition: string;\n    textEmphasisStyle: string;\n    textIndent: string;\n    textOrientation: string;\n    textOverflow: string;\n    textRendering: string;\n    textShadow: string;\n    textTransform: string;\n    textUnderlineOffset: string;\n    textUnderlinePosition: string;\n    top: string;\n    touchAction: string;\n    transform: string;\n    transformBox: string;\n    transformOrigin: string;\n    transformStyle: string;\n    transition: string;\n    transitionDelay: string;\n    transitionDuration: string;\n    transitionProperty: string;\n    transitionTimingFunction: string;\n    translate: string;\n    unicodeBidi: string;\n    userSelect: string;\n    verticalAlign: string;\n    visibility: string;\n    /** @deprecated This is a legacy alias of \\`alignContent\\`. */\n    webkitAlignContent: string;\n    /** @deprecated This is a legacy alias of \\`alignItems\\`. */\n    webkitAlignItems: string;\n    /** @deprecated This is a legacy alias of \\`alignSelf\\`. */\n    webkitAlignSelf: string;\n    /** @deprecated This is a legacy alias of \\`animation\\`. */\n    webkitAnimation: string;\n    /** @deprecated This is a legacy alias of \\`animationDelay\\`. */\n    webkitAnimationDelay: string;\n    /** @deprecated This is a legacy alias of \\`animationDirection\\`. */\n    webkitAnimationDirection: string;\n    /** @deprecated This is a legacy alias of \\`animationDuration\\`. */\n    webkitAnimationDuration: string;\n    /** @deprecated This is a legacy alias of \\`animationFillMode\\`. */\n    webkitAnimationFillMode: string;\n    /** @deprecated This is a legacy alias of \\`animationIterationCount\\`. */\n    webkitAnimationIterationCount: string;\n    /** @deprecated This is a legacy alias of \\`animationName\\`. */\n    webkitAnimationName: string;\n    /** @deprecated This is a legacy alias of \\`animationPlayState\\`. */\n    webkitAnimationPlayState: string;\n    /** @deprecated This is a legacy alias of \\`animationTimingFunction\\`. */\n    webkitAnimationTimingFunction: string;\n    /** @deprecated This is a legacy alias of \\`appearance\\`. */\n    webkitAppearance: string;\n    /** @deprecated This is a legacy alias of \\`backfaceVisibility\\`. */\n    webkitBackfaceVisibility: string;\n    /** @deprecated This is a legacy alias of \\`backgroundClip\\`. */\n    webkitBackgroundClip: string;\n    /** @deprecated This is a legacy alias of \\`backgroundOrigin\\`. */\n    webkitBackgroundOrigin: string;\n    /** @deprecated This is a legacy alias of \\`backgroundSize\\`. */\n    webkitBackgroundSize: string;\n    /** @deprecated This is a legacy alias of \\`borderBottomLeftRadius\\`. */\n    webkitBorderBottomLeftRadius: string;\n    /** @deprecated This is a legacy alias of \\`borderBottomRightRadius\\`. */\n    webkitBorderBottomRightRadius: string;\n    /** @deprecated This is a legacy alias of \\`borderRadius\\`. */\n    webkitBorderRadius: string;\n    /** @deprecated This is a legacy alias of \\`borderTopLeftRadius\\`. */\n    webkitBorderTopLeftRadius: string;\n    /** @deprecated This is a legacy alias of \\`borderTopRightRadius\\`. */\n    webkitBorderTopRightRadius: string;\n    /** @deprecated This is a legacy alias of \\`boxAlign\\`. */\n    webkitBoxAlign: string;\n    /** @deprecated This is a legacy alias of \\`boxFlex\\`. */\n    webkitBoxFlex: string;\n    /** @deprecated This is a legacy alias of \\`boxOrdinalGroup\\`. */\n    webkitBoxOrdinalGroup: string;\n    /** @deprecated This is a legacy alias of \\`boxOrient\\`. */\n    webkitBoxOrient: string;\n    /** @deprecated This is a legacy alias of \\`boxPack\\`. */\n    webkitBoxPack: string;\n    /** @deprecated This is a legacy alias of \\`boxShadow\\`. */\n    webkitBoxShadow: string;\n    /** @deprecated This is a legacy alias of \\`boxSizing\\`. */\n    webkitBoxSizing: string;\n    /** @deprecated This is a legacy alias of \\`filter\\`. */\n    webkitFilter: string;\n    /** @deprecated This is a legacy alias of \\`flex\\`. */\n    webkitFlex: string;\n    /** @deprecated This is a legacy alias of \\`flexBasis\\`. */\n    webkitFlexBasis: string;\n    /** @deprecated This is a legacy alias of \\`flexDirection\\`. */\n    webkitFlexDirection: string;\n    /** @deprecated This is a legacy alias of \\`flexFlow\\`. */\n    webkitFlexFlow: string;\n    /** @deprecated This is a legacy alias of \\`flexGrow\\`. */\n    webkitFlexGrow: string;\n    /** @deprecated This is a legacy alias of \\`flexShrink\\`. */\n    webkitFlexShrink: string;\n    /** @deprecated This is a legacy alias of \\`flexWrap\\`. */\n    webkitFlexWrap: string;\n    /** @deprecated This is a legacy alias of \\`justifyContent\\`. */\n    webkitJustifyContent: string;\n    webkitLineClamp: string;\n    /** @deprecated This is a legacy alias of \\`mask\\`. */\n    webkitMask: string;\n    /** @deprecated This is a legacy alias of \\`maskBorder\\`. */\n    webkitMaskBoxImage: string;\n    /** @deprecated This is a legacy alias of \\`maskBorderOutset\\`. */\n    webkitMaskBoxImageOutset: string;\n    /** @deprecated This is a legacy alias of \\`maskBorderRepeat\\`. */\n    webkitMaskBoxImageRepeat: string;\n    /** @deprecated This is a legacy alias of \\`maskBorderSlice\\`. */\n    webkitMaskBoxImageSlice: string;\n    /** @deprecated This is a legacy alias of \\`maskBorderSource\\`. */\n    webkitMaskBoxImageSource: string;\n    /** @deprecated This is a legacy alias of \\`maskBorderWidth\\`. */\n    webkitMaskBoxImageWidth: string;\n    /** @deprecated This is a legacy alias of \\`maskClip\\`. */\n    webkitMaskClip: string;\n    webkitMaskComposite: string;\n    /** @deprecated This is a legacy alias of \\`maskImage\\`. */\n    webkitMaskImage: string;\n    /** @deprecated This is a legacy alias of \\`maskOrigin\\`. */\n    webkitMaskOrigin: string;\n    /** @deprecated This is a legacy alias of \\`maskPosition\\`. */\n    webkitMaskPosition: string;\n    /** @deprecated This is a legacy alias of \\`maskRepeat\\`. */\n    webkitMaskRepeat: string;\n    /** @deprecated This is a legacy alias of \\`maskSize\\`. */\n    webkitMaskSize: string;\n    /** @deprecated This is a legacy alias of \\`order\\`. */\n    webkitOrder: string;\n    /** @deprecated This is a legacy alias of \\`perspective\\`. */\n    webkitPerspective: string;\n    /** @deprecated This is a legacy alias of \\`perspectiveOrigin\\`. */\n    webkitPerspectiveOrigin: string;\n    webkitTextFillColor: string;\n    /** @deprecated This is a legacy alias of \\`textSizeAdjust\\`. */\n    webkitTextSizeAdjust: string;\n    webkitTextStroke: string;\n    webkitTextStrokeColor: string;\n    webkitTextStrokeWidth: string;\n    /** @deprecated This is a legacy alias of \\`transform\\`. */\n    webkitTransform: string;\n    /** @deprecated This is a legacy alias of \\`transformOrigin\\`. */\n    webkitTransformOrigin: string;\n    /** @deprecated This is a legacy alias of \\`transformStyle\\`. */\n    webkitTransformStyle: string;\n    /** @deprecated This is a legacy alias of \\`transition\\`. */\n    webkitTransition: string;\n    /** @deprecated This is a legacy alias of \\`transitionDelay\\`. */\n    webkitTransitionDelay: string;\n    /** @deprecated This is a legacy alias of \\`transitionDuration\\`. */\n    webkitTransitionDuration: string;\n    /** @deprecated This is a legacy alias of \\`transitionProperty\\`. */\n    webkitTransitionProperty: string;\n    /** @deprecated This is a legacy alias of \\`transitionTimingFunction\\`. */\n    webkitTransitionTimingFunction: string;\n    /** @deprecated This is a legacy alias of \\`userSelect\\`. */\n    webkitUserSelect: string;\n    whiteSpace: string;\n    widows: string;\n    width: string;\n    willChange: string;\n    wordBreak: string;\n    wordSpacing: string;\n    /** @deprecated */\n    wordWrap: string;\n    writingMode: string;\n    zIndex: string;\n    getPropertyPriority(property: string): string;\n    getPropertyValue(property: string): string;\n    item(index: number): string;\n    removeProperty(property: string): string;\n    setProperty(property: string, value: string | null, priority?: string): void;\n    [index: number]: string;\n}\n\ndeclare var CSSStyleDeclaration: {\n    prototype: CSSStyleDeclaration;\n    new(): CSSStyleDeclaration;\n};\n\n/** CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE). */\ninterface CSSStyleRule extends CSSRule {\n    selectorText: string;\n    readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSStyleRule: {\n    prototype: CSSStyleRule;\n    new(): CSSStyleRule;\n};\n\n/** A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. */\ninterface CSSStyleSheet extends StyleSheet {\n    readonly cssRules: CSSRuleList;\n    readonly ownerRule: CSSRule | null;\n    /** @deprecated */\n    readonly rules: CSSRuleList;\n    /** @deprecated */\n    addRule(selector?: string, style?: string, index?: number): number;\n    deleteRule(index: number): void;\n    insertRule(rule: string, index?: number): number;\n    /** @deprecated */\n    removeRule(index?: number): void;\n    replace(text: string): Promise<CSSStyleSheet>;\n    replaceSync(text: string): void;\n}\n\ndeclare var CSSStyleSheet: {\n    prototype: CSSStyleSheet;\n    new(options?: CSSStyleSheetInit): CSSStyleSheet;\n};\n\n/** An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE). */\ninterface CSSSupportsRule extends CSSConditionRule {\n}\n\ndeclare var CSSSupportsRule: {\n    prototype: CSSSupportsRule;\n    new(): CSSSupportsRule;\n};\n\ninterface CSSTransition extends Animation {\n    readonly transitionProperty: string;\n    addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var CSSTransition: {\n    prototype: CSSTransition;\n    new(): CSSTransition;\n};\n\n/**\n * Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec.\n * Available only in secure contexts.\n */\ninterface Cache {\n    add(request: RequestInfo | URL): Promise<void>;\n    addAll(requests: RequestInfo[]): Promise<void>;\n    delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;\n    keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;\n    match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;\n    matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;\n    put(request: RequestInfo | URL, response: Response): Promise<void>;\n}\n\ndeclare var Cache: {\n    prototype: Cache;\n    new(): Cache;\n};\n\n/**\n * The storage for Cache objects.\n * Available only in secure contexts.\n */\ninterface CacheStorage {\n    delete(cacheName: string): Promise<boolean>;\n    has(cacheName: string): Promise<boolean>;\n    keys(): Promise<string[]>;\n    match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;\n    open(cacheName: string): Promise<Cache>;\n}\n\ndeclare var CacheStorage: {\n    prototype: CacheStorage;\n    new(): CacheStorage;\n};\n\ninterface CanvasCaptureMediaStreamTrack extends MediaStreamTrack {\n    readonly canvas: HTMLCanvasElement;\n    requestFrame(): void;\n    addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var CanvasCaptureMediaStreamTrack: {\n    prototype: CanvasCaptureMediaStreamTrack;\n    new(): CanvasCaptureMediaStreamTrack;\n};\n\ninterface CanvasCompositing {\n    globalAlpha: number;\n    globalCompositeOperation: GlobalCompositeOperation;\n}\n\ninterface CanvasDrawImage {\n    drawImage(image: CanvasImageSource, dx: number, dy: number): void;\n    drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;\n    drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;\n}\n\ninterface CanvasDrawPath {\n    beginPath(): void;\n    clip(fillRule?: CanvasFillRule): void;\n    clip(path: Path2D, fillRule?: CanvasFillRule): void;\n    fill(fillRule?: CanvasFillRule): void;\n    fill(path: Path2D, fillRule?: CanvasFillRule): void;\n    isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;\n    isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;\n    isPointInStroke(x: number, y: number): boolean;\n    isPointInStroke(path: Path2D, x: number, y: number): boolean;\n    stroke(): void;\n    stroke(path: Path2D): void;\n}\n\ninterface CanvasFillStrokeStyles {\n    fillStyle: string | CanvasGradient | CanvasPattern;\n    strokeStyle: string | CanvasGradient | CanvasPattern;\n    createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;\n    createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;\n    createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;\n    createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;\n}\n\ninterface CanvasFilters {\n    filter: string;\n}\n\n/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */\ninterface CanvasGradient {\n    /**\n     * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.\n     *\n     * Throws an \"IndexSizeError\" DOMException if the offset is out of range. Throws a \"SyntaxError\" DOMException if the color cannot be parsed.\n     */\n    addColorStop(offset: number, color: string): void;\n}\n\ndeclare var CanvasGradient: {\n    prototype: CanvasGradient;\n    new(): CanvasGradient;\n};\n\ninterface CanvasImageData {\n    createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n    createImageData(imagedata: ImageData): ImageData;\n    getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n    putImageData(imagedata: ImageData, dx: number, dy: number): void;\n    putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;\n}\n\ninterface CanvasImageSmoothing {\n    imageSmoothingEnabled: boolean;\n    imageSmoothingQuality: ImageSmoothingQuality;\n}\n\ninterface CanvasPath {\n    arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n    arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;\n    bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;\n    closePath(): void;\n    ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n    lineTo(x: number, y: number): void;\n    moveTo(x: number, y: number): void;\n    quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;\n    rect(x: number, y: number, w: number, h: number): void;\n    roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;\n}\n\ninterface CanvasPathDrawingStyles {\n    lineCap: CanvasLineCap;\n    lineDashOffset: number;\n    lineJoin: CanvasLineJoin;\n    lineWidth: number;\n    miterLimit: number;\n    getLineDash(): number[];\n    setLineDash(segments: number[]): void;\n}\n\n/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */\ninterface CanvasPattern {\n    /** Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. */\n    setTransform(transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var CanvasPattern: {\n    prototype: CanvasPattern;\n    new(): CanvasPattern;\n};\n\ninterface CanvasRect {\n    clearRect(x: number, y: number, w: number, h: number): void;\n    fillRect(x: number, y: number, w: number, h: number): void;\n    strokeRect(x: number, y: number, w: number, h: number): void;\n}\n\n/** The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a <canvas> element. It is used for drawing shapes, text, images, and other objects. */\ninterface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface {\n    readonly canvas: HTMLCanvasElement;\n    getContextAttributes(): CanvasRenderingContext2DSettings;\n}\n\ndeclare var CanvasRenderingContext2D: {\n    prototype: CanvasRenderingContext2D;\n    new(): CanvasRenderingContext2D;\n};\n\ninterface CanvasShadowStyles {\n    shadowBlur: number;\n    shadowColor: string;\n    shadowOffsetX: number;\n    shadowOffsetY: number;\n}\n\ninterface CanvasState {\n    restore(): void;\n    save(): void;\n}\n\ninterface CanvasText {\n    fillText(text: string, x: number, y: number, maxWidth?: number): void;\n    measureText(text: string): TextMetrics;\n    strokeText(text: string, x: number, y: number, maxWidth?: number): void;\n}\n\ninterface CanvasTextDrawingStyles {\n    direction: CanvasDirection;\n    font: string;\n    fontKerning: CanvasFontKerning;\n    textAlign: CanvasTextAlign;\n    textBaseline: CanvasTextBaseline;\n}\n\ninterface CanvasTransform {\n    getTransform(): DOMMatrix;\n    resetTransform(): void;\n    rotate(angle: number): void;\n    scale(x: number, y: number): void;\n    setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;\n    setTransform(transform?: DOMMatrix2DInit): void;\n    transform(a: number, b: number, c: number, d: number, e: number, f: number): void;\n    translate(x: number, y: number): void;\n}\n\ninterface CanvasUserInterface {\n    drawFocusIfNeeded(element: Element): void;\n    drawFocusIfNeeded(path: Path2D, element: Element): void;\n}\n\n/** The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */\ninterface ChannelMergerNode extends AudioNode {\n}\n\ndeclare var ChannelMergerNode: {\n    prototype: ChannelMergerNode;\n    new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode;\n};\n\n/** The ChannelSplitterNode interface, often used in conjunction with its opposite, ChannelMergerNode, separates the different channels of an audio source into a set of mono outputs. This is useful for accessing each channel separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */\ninterface ChannelSplitterNode extends AudioNode {\n}\n\ndeclare var ChannelSplitterNode: {\n    prototype: ChannelSplitterNode;\n    new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode;\n};\n\n/** The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren't any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren't abstract. */\ninterface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {\n    data: string;\n    readonly length: number;\n    readonly ownerDocument: Document;\n    appendData(data: string): void;\n    deleteData(offset: number, count: number): void;\n    insertData(offset: number, data: string): void;\n    replaceData(offset: number, count: number, data: string): void;\n    substringData(offset: number, count: number): string;\n}\n\ndeclare var CharacterData: {\n    prototype: CharacterData;\n    new(): CharacterData;\n};\n\ninterface ChildNode extends Node {\n    /**\n     * Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.\n     *\n     * Throws a \"HierarchyRequestError\" DOMException if the constraints of the node tree are violated.\n     */\n    after(...nodes: (Node | string)[]): void;\n    /**\n     * Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.\n     *\n     * Throws a \"HierarchyRequestError\" DOMException if the constraints of the node tree are violated.\n     */\n    before(...nodes: (Node | string)[]): void;\n    /** Removes node. */\n    remove(): void;\n    /**\n     * Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.\n     *\n     * Throws a \"HierarchyRequestError\" DOMException if the constraints of the node tree are violated.\n     */\n    replaceWith(...nodes: (Node | string)[]): void;\n}\n\n/** @deprecated */\ninterface ClientRect extends DOMRect {\n}\n\n/** Available only in secure contexts. */\ninterface Clipboard extends EventTarget {\n    read(): Promise<ClipboardItems>;\n    readText(): Promise<string>;\n    write(data: ClipboardItems): Promise<void>;\n    writeText(data: string): Promise<void>;\n}\n\ndeclare var Clipboard: {\n    prototype: Clipboard;\n    new(): Clipboard;\n};\n\n/** Events providing information related to modification of the clipboard, that is cut, copy, and paste events. */\ninterface ClipboardEvent extends Event {\n    readonly clipboardData: DataTransfer | null;\n}\n\ndeclare var ClipboardEvent: {\n    prototype: ClipboardEvent;\n    new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;\n};\n\n/** Available only in secure contexts. */\ninterface ClipboardItem {\n    readonly presentationStyle: PresentationStyle;\n    readonly types: ReadonlyArray<string>;\n    getType(type: string): Promise<Blob>;\n}\n\ndeclare var ClipboardItem: {\n    prototype: ClipboardItem;\n    new(items: Record<string, string | Blob | PromiseLike<string | Blob>>, options?: ClipboardItemOptions): ClipboardItem;\n};\n\n/** A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. */\ninterface CloseEvent extends Event {\n    /** Returns the WebSocket connection close code provided by the server. */\n    readonly code: number;\n    /** Returns the WebSocket connection close reason provided by the server. */\n    readonly reason: string;\n    /** Returns true if the connection closed cleanly; false otherwise. */\n    readonly wasClean: boolean;\n}\n\ndeclare var CloseEvent: {\n    prototype: CloseEvent;\n    new(type: string, eventInitDict?: CloseEventInit): CloseEvent;\n};\n\n/** Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. */\ninterface Comment extends CharacterData {\n}\n\ndeclare var Comment: {\n    prototype: Comment;\n    new(data?: string): Comment;\n};\n\n/** The DOM CompositionEvent represents events that occur due to the user indirectly entering text. */\ninterface CompositionEvent extends UIEvent {\n    readonly data: string;\n    /** @deprecated */\n    initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void;\n}\n\ndeclare var CompositionEvent: {\n    prototype: CompositionEvent;\n    new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent;\n};\n\ninterface ConstantSourceNode extends AudioScheduledSourceNode {\n    readonly offset: AudioParam;\n    addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ConstantSourceNode: {\n    prototype: ConstantSourceNode;\n    new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode;\n};\n\n/** An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output. */\ninterface ConvolverNode extends AudioNode {\n    buffer: AudioBuffer | null;\n    normalize: boolean;\n}\n\ndeclare var ConvolverNode: {\n    prototype: ConvolverNode;\n    new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode;\n};\n\n/** This Streams API interface provides\\xA0a built-in byte length queuing strategy that can be used when constructing streams. */\ninterface CountQueuingStrategy extends QueuingStrategy {\n    readonly highWaterMark: number;\n    readonly size: QueuingStrategySize;\n}\n\ndeclare var CountQueuingStrategy: {\n    prototype: CountQueuingStrategy;\n    new(init: QueuingStrategyInit): CountQueuingStrategy;\n};\n\n/** Available only in secure contexts. */\ninterface Credential {\n    readonly id: string;\n    readonly type: string;\n}\n\ndeclare var Credential: {\n    prototype: Credential;\n    new(): Credential;\n};\n\n/** Available only in secure contexts. */\ninterface CredentialsContainer {\n    create(options?: CredentialCreationOptions): Promise<Credential | null>;\n    get(options?: CredentialRequestOptions): Promise<Credential | null>;\n    preventSilentAccess(): Promise<void>;\n    store(credential: Credential): Promise<Credential>;\n}\n\ndeclare var CredentialsContainer: {\n    prototype: CredentialsContainer;\n    new(): CredentialsContainer;\n};\n\n/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */\ninterface Crypto {\n    /** Available only in secure contexts. */\n    readonly subtle: SubtleCrypto;\n    getRandomValues<T extends ArrayBufferView | null>(array: T): T;\n    /** Available only in secure contexts. */\n    randomUUID(): \\`\\${string}-\\${string}-\\${string}-\\${string}-\\${string}\\`;\n}\n\ndeclare var Crypto: {\n    prototype: Crypto;\n    new(): Crypto;\n};\n\n/**\n * The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.\n * Available only in secure contexts.\n */\ninterface CryptoKey {\n    readonly algorithm: KeyAlgorithm;\n    readonly extractable: boolean;\n    readonly type: KeyType;\n    readonly usages: KeyUsage[];\n}\n\ndeclare var CryptoKey: {\n    prototype: CryptoKey;\n    new(): CryptoKey;\n};\n\ninterface CustomElementRegistry {\n    define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;\n    get(name: string): CustomElementConstructor | undefined;\n    upgrade(root: Node): void;\n    whenDefined(name: string): Promise<CustomElementConstructor>;\n}\n\ndeclare var CustomElementRegistry: {\n    prototype: CustomElementRegistry;\n    new(): CustomElementRegistry;\n};\n\ninterface CustomEvent<T = any> extends Event {\n    /** Returns any custom data event was created with. Typically used for synthetic events. */\n    readonly detail: T;\n    /** @deprecated */\n    initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;\n}\n\ndeclare var CustomEvent: {\n    prototype: CustomEvent;\n    new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;\n};\n\n/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */\ninterface DOMException extends Error {\n    /** @deprecated */\n    readonly code: number;\n    readonly message: string;\n    readonly name: string;\n    readonly INDEX_SIZE_ERR: 1;\n    readonly DOMSTRING_SIZE_ERR: 2;\n    readonly HIERARCHY_REQUEST_ERR: 3;\n    readonly WRONG_DOCUMENT_ERR: 4;\n    readonly INVALID_CHARACTER_ERR: 5;\n    readonly NO_DATA_ALLOWED_ERR: 6;\n    readonly NO_MODIFICATION_ALLOWED_ERR: 7;\n    readonly NOT_FOUND_ERR: 8;\n    readonly NOT_SUPPORTED_ERR: 9;\n    readonly INUSE_ATTRIBUTE_ERR: 10;\n    readonly INVALID_STATE_ERR: 11;\n    readonly SYNTAX_ERR: 12;\n    readonly INVALID_MODIFICATION_ERR: 13;\n    readonly NAMESPACE_ERR: 14;\n    readonly INVALID_ACCESS_ERR: 15;\n    readonly VALIDATION_ERR: 16;\n    readonly TYPE_MISMATCH_ERR: 17;\n    readonly SECURITY_ERR: 18;\n    readonly NETWORK_ERR: 19;\n    readonly ABORT_ERR: 20;\n    readonly URL_MISMATCH_ERR: 21;\n    readonly QUOTA_EXCEEDED_ERR: 22;\n    readonly TIMEOUT_ERR: 23;\n    readonly INVALID_NODE_TYPE_ERR: 24;\n    readonly DATA_CLONE_ERR: 25;\n}\n\ndeclare var DOMException: {\n    prototype: DOMException;\n    new(message?: string, name?: string): DOMException;\n    readonly INDEX_SIZE_ERR: 1;\n    readonly DOMSTRING_SIZE_ERR: 2;\n    readonly HIERARCHY_REQUEST_ERR: 3;\n    readonly WRONG_DOCUMENT_ERR: 4;\n    readonly INVALID_CHARACTER_ERR: 5;\n    readonly NO_DATA_ALLOWED_ERR: 6;\n    readonly NO_MODIFICATION_ALLOWED_ERR: 7;\n    readonly NOT_FOUND_ERR: 8;\n    readonly NOT_SUPPORTED_ERR: 9;\n    readonly INUSE_ATTRIBUTE_ERR: 10;\n    readonly INVALID_STATE_ERR: 11;\n    readonly SYNTAX_ERR: 12;\n    readonly INVALID_MODIFICATION_ERR: 13;\n    readonly NAMESPACE_ERR: 14;\n    readonly INVALID_ACCESS_ERR: 15;\n    readonly VALIDATION_ERR: 16;\n    readonly TYPE_MISMATCH_ERR: 17;\n    readonly SECURITY_ERR: 18;\n    readonly NETWORK_ERR: 19;\n    readonly ABORT_ERR: 20;\n    readonly URL_MISMATCH_ERR: 21;\n    readonly QUOTA_EXCEEDED_ERR: 22;\n    readonly TIMEOUT_ERR: 23;\n    readonly INVALID_NODE_TYPE_ERR: 24;\n    readonly DATA_CLONE_ERR: 25;\n};\n\n/** An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property. */\ninterface DOMImplementation {\n    createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument;\n    createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;\n    createHTMLDocument(title?: string): Document;\n    /** @deprecated */\n    hasFeature(...args: any[]): true;\n}\n\ndeclare var DOMImplementation: {\n    prototype: DOMImplementation;\n    new(): DOMImplementation;\n};\n\ninterface DOMMatrix extends DOMMatrixReadOnly {\n    a: number;\n    b: number;\n    c: number;\n    d: number;\n    e: number;\n    f: number;\n    m11: number;\n    m12: number;\n    m13: number;\n    m14: number;\n    m21: number;\n    m22: number;\n    m23: number;\n    m24: number;\n    m31: number;\n    m32: number;\n    m33: number;\n    m34: number;\n    m41: number;\n    m42: number;\n    m43: number;\n    m44: number;\n    invertSelf(): DOMMatrix;\n    multiplySelf(other?: DOMMatrixInit): DOMMatrix;\n    preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;\n    rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n    rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;\n    rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n    scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n    scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n    setMatrixValue(transformList: string): DOMMatrix;\n    skewXSelf(sx?: number): DOMMatrix;\n    skewYSelf(sy?: number): DOMMatrix;\n    translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;\n}\n\ndeclare var DOMMatrix: {\n    prototype: DOMMatrix;\n    new(init?: string | number[]): DOMMatrix;\n    fromFloat32Array(array32: Float32Array): DOMMatrix;\n    fromFloat64Array(array64: Float64Array): DOMMatrix;\n    fromMatrix(other?: DOMMatrixInit): DOMMatrix;\n};\n\ntype SVGMatrix = DOMMatrix;\ndeclare var SVGMatrix: typeof DOMMatrix;\n\ntype WebKitCSSMatrix = DOMMatrix;\ndeclare var WebKitCSSMatrix: typeof DOMMatrix;\n\ninterface DOMMatrixReadOnly {\n    readonly a: number;\n    readonly b: number;\n    readonly c: number;\n    readonly d: number;\n    readonly e: number;\n    readonly f: number;\n    readonly is2D: boolean;\n    readonly isIdentity: boolean;\n    readonly m11: number;\n    readonly m12: number;\n    readonly m13: number;\n    readonly m14: number;\n    readonly m21: number;\n    readonly m22: number;\n    readonly m23: number;\n    readonly m24: number;\n    readonly m31: number;\n    readonly m32: number;\n    readonly m33: number;\n    readonly m34: number;\n    readonly m41: number;\n    readonly m42: number;\n    readonly m43: number;\n    readonly m44: number;\n    flipX(): DOMMatrix;\n    flipY(): DOMMatrix;\n    inverse(): DOMMatrix;\n    multiply(other?: DOMMatrixInit): DOMMatrix;\n    rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n    rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n    rotateFromVector(x?: number, y?: number): DOMMatrix;\n    scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n    scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n    /** @deprecated */\n    scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;\n    skewX(sx?: number): DOMMatrix;\n    skewY(sy?: number): DOMMatrix;\n    toFloat32Array(): Float32Array;\n    toFloat64Array(): Float64Array;\n    toJSON(): any;\n    transformPoint(point?: DOMPointInit): DOMPoint;\n    translate(tx?: number, ty?: number, tz?: number): DOMMatrix;\n    toString(): string;\n}\n\ndeclare var DOMMatrixReadOnly: {\n    prototype: DOMMatrixReadOnly;\n    new(init?: string | number[]): DOMMatrixReadOnly;\n    fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;\n    fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;\n    fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;\n    toString(): string;\n};\n\n/** Provides the ability to parse XML or HTML source code from a string into a DOM Document. */\ninterface DOMParser {\n    /**\n     * Parses string using either the HTML or XML parser, according to type, and returns the resulting Document. type can be \"text/html\" (which will invoke the HTML parser), or any of \"text/xml\", \"application/xml\", \"application/xhtml+xml\", or \"image/svg+xml\" (which will invoke the XML parser).\n     *\n     * For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error.\n     *\n     * Note that script elements are not evaluated during parsing, and the resulting document's encoding will always be UTF-8.\n     *\n     * Values other than the above for type will cause a TypeError exception to be thrown.\n     */\n    parseFromString(string: string, type: DOMParserSupportedType): Document;\n}\n\ndeclare var DOMParser: {\n    prototype: DOMParser;\n    new(): DOMParser;\n};\n\ninterface DOMPoint extends DOMPointReadOnly {\n    w: number;\n    x: number;\n    y: number;\n    z: number;\n}\n\ndeclare var DOMPoint: {\n    prototype: DOMPoint;\n    new(x?: number, y?: number, z?: number, w?: number): DOMPoint;\n    fromPoint(other?: DOMPointInit): DOMPoint;\n};\n\ntype SVGPoint = DOMPoint;\ndeclare var SVGPoint: typeof DOMPoint;\n\ninterface DOMPointReadOnly {\n    readonly w: number;\n    readonly x: number;\n    readonly y: number;\n    readonly z: number;\n    matrixTransform(matrix?: DOMMatrixInit): DOMPoint;\n    toJSON(): any;\n}\n\ndeclare var DOMPointReadOnly: {\n    prototype: DOMPointReadOnly;\n    new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;\n    fromPoint(other?: DOMPointInit): DOMPointReadOnly;\n};\n\ninterface DOMQuad {\n    readonly p1: DOMPoint;\n    readonly p2: DOMPoint;\n    readonly p3: DOMPoint;\n    readonly p4: DOMPoint;\n    getBounds(): DOMRect;\n    toJSON(): any;\n}\n\ndeclare var DOMQuad: {\n    prototype: DOMQuad;\n    new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;\n    fromQuad(other?: DOMQuadInit): DOMQuad;\n    fromRect(other?: DOMRectInit): DOMQuad;\n};\n\ninterface DOMRect extends DOMRectReadOnly {\n    height: number;\n    width: number;\n    x: number;\n    y: number;\n}\n\ndeclare var DOMRect: {\n    prototype: DOMRect;\n    new(x?: number, y?: number, width?: number, height?: number): DOMRect;\n    fromRect(other?: DOMRectInit): DOMRect;\n};\n\ntype SVGRect = DOMRect;\ndeclare var SVGRect: typeof DOMRect;\n\ninterface DOMRectList {\n    readonly length: number;\n    item(index: number): DOMRect | null;\n    [index: number]: DOMRect;\n}\n\ndeclare var DOMRectList: {\n    prototype: DOMRectList;\n    new(): DOMRectList;\n};\n\ninterface DOMRectReadOnly {\n    readonly bottom: number;\n    readonly height: number;\n    readonly left: number;\n    readonly right: number;\n    readonly top: number;\n    readonly width: number;\n    readonly x: number;\n    readonly y: number;\n    toJSON(): any;\n}\n\ndeclare var DOMRectReadOnly: {\n    prototype: DOMRectReadOnly;\n    new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;\n    fromRect(other?: DOMRectInit): DOMRectReadOnly;\n};\n\n/** A type returned by some APIs which contains a list of DOMString (strings). */\ninterface DOMStringList {\n    /** Returns the number of strings in strings. */\n    readonly length: number;\n    /** Returns true if strings contains string, and false otherwise. */\n    contains(string: string): boolean;\n    /** Returns the string with index index from strings. */\n    item(index: number): string | null;\n    [index: number]: string;\n}\n\ndeclare var DOMStringList: {\n    prototype: DOMStringList;\n    new(): DOMStringList;\n};\n\n/** Used by the dataset\\xA0HTML\\xA0attribute to represent data for custom attributes added to elements. */\ninterface DOMStringMap {\n    [name: string]: string | undefined;\n}\n\ndeclare var DOMStringMap: {\n    prototype: DOMStringMap;\n    new(): DOMStringMap;\n};\n\n/** A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive. */\ninterface DOMTokenList {\n    /** Returns the number of tokens. */\n    readonly length: number;\n    /**\n     * Returns the associated set as string.\n     *\n     * Can be set, to change the associated attribute.\n     */\n    value: string;\n    toString(): string;\n    /**\n     * Adds all arguments passed, except those already present.\n     *\n     * Throws a \"SyntaxError\" DOMException if one of the arguments is the empty string.\n     *\n     * Throws an \"InvalidCharacterError\" DOMException if one of the arguments contains any ASCII whitespace.\n     */\n    add(...tokens: string[]): void;\n    /** Returns true if token is present, and false otherwise. */\n    contains(token: string): boolean;\n    /** Returns the token with index index. */\n    item(index: number): string | null;\n    /**\n     * Removes arguments passed, if they are present.\n     *\n     * Throws a \"SyntaxError\" DOMException if one of the arguments is the empty string.\n     *\n     * Throws an \"InvalidCharacterError\" DOMException if one of the arguments contains any ASCII whitespace.\n     */\n    remove(...tokens: string[]): void;\n    /**\n     * Replaces token with newToken.\n     *\n     * Returns true if token was replaced with newToken, and false otherwise.\n     *\n     * Throws a \"SyntaxError\" DOMException if one of the arguments is the empty string.\n     *\n     * Throws an \"InvalidCharacterError\" DOMException if one of the arguments contains any ASCII whitespace.\n     */\n    replace(token: string, newToken: string): boolean;\n    /**\n     * Returns true if token is in the associated attribute's supported tokens. Returns false otherwise.\n     *\n     * Throws a TypeError if the associated attribute has no supported tokens defined.\n     */\n    supports(token: string): boolean;\n    /**\n     * If force is not given, \"toggles\" token, removing it if it's present and adding it if it's not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()).\n     *\n     * Returns true if token is now present, and false otherwise.\n     *\n     * Throws a \"SyntaxError\" DOMException if token is empty.\n     *\n     * Throws an \"InvalidCharacterError\" DOMException if token contains any spaces.\n     */\n    toggle(token: string, force?: boolean): boolean;\n    forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void;\n    [index: number]: string;\n}\n\ndeclare var DOMTokenList: {\n    prototype: DOMTokenList;\n    new(): DOMTokenList;\n};\n\n/** Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API. */\ninterface DataTransfer {\n    /**\n     * Returns the kind of operation that is currently selected. If the kind of operation isn't one of those that is allowed by the effectAllowed attribute, then the operation will fail.\n     *\n     * Can be set, to change the selected operation.\n     *\n     * The possible values are \"none\", \"copy\", \"link\", and \"move\".\n     */\n    dropEffect: \"none\" | \"copy\" | \"link\" | \"move\";\n    /**\n     * Returns the kinds of operations that are to be allowed.\n     *\n     * Can be set (during the dragstart event), to change the allowed operations.\n     *\n     * The possible values are \"none\", \"copy\", \"copyLink\", \"copyMove\", \"link\", \"linkMove\", \"move\", \"all\", and \"uninitialized\",\n     */\n    effectAllowed: \"none\" | \"copy\" | \"copyLink\" | \"copyMove\" | \"link\" | \"linkMove\" | \"move\" | \"all\" | \"uninitialized\";\n    /** Returns a FileList of the files being dragged, if any. */\n    readonly files: FileList;\n    /** Returns a DataTransferItemList object, with the drag data. */\n    readonly items: DataTransferItemList;\n    /** Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string \"Files\". */\n    readonly types: ReadonlyArray<string>;\n    /** Removes the data of the specified formats. Removes all data if the argument is omitted. */\n    clearData(format?: string): void;\n    /** Returns the specified data. If there is no such data, returns the empty string. */\n    getData(format: string): string;\n    /** Adds the specified data. */\n    setData(format: string, data: string): void;\n    /** Uses the given element to update the drag feedback, replacing any previously specified feedback. */\n    setDragImage(image: Element, x: number, y: number): void;\n}\n\ndeclare var DataTransfer: {\n    prototype: DataTransfer;\n    new(): DataTransfer;\n};\n\n/** One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object. */\ninterface DataTransferItem {\n    /** Returns the drag data item kind, one of: \"string\", \"file\". */\n    readonly kind: string;\n    /** Returns the drag data item type string. */\n    readonly type: string;\n    /** Returns a File object, if the drag data item kind is File. */\n    getAsFile(): File | null;\n    /** Invokes the callback with the string data as the argument, if the drag data item kind is text. */\n    getAsString(callback: FunctionStringCallback | null): void;\n    webkitGetAsEntry(): FileSystemEntry | null;\n}\n\ndeclare var DataTransferItem: {\n    prototype: DataTransferItem;\n    new(): DataTransferItem;\n};\n\n/** A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList. */\ninterface DataTransferItemList {\n    /** Returns the number of items in the drag data store. */\n    readonly length: number;\n    /** Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also. */\n    add(data: string, type: string): DataTransferItem | null;\n    add(data: File): DataTransferItem | null;\n    /** Removes all the entries in the drag data store. */\n    clear(): void;\n    /** Removes the indexth entry in the drag data store. */\n    remove(index: number): void;\n    [index: number]: DataTransferItem;\n}\n\ndeclare var DataTransferItemList: {\n    prototype: DataTransferItemList;\n    new(): DataTransferItemList;\n};\n\n/** A delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output. */\ninterface DelayNode extends AudioNode {\n    readonly delayTime: AudioParam;\n}\n\ndeclare var DelayNode: {\n    prototype: DelayNode;\n    new(context: BaseAudioContext, options?: DelayOptions): DelayNode;\n};\n\n/**\n * The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation.\n * Available only in secure contexts.\n */\ninterface DeviceMotionEvent extends Event {\n    readonly acceleration: DeviceMotionEventAcceleration | null;\n    readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;\n    readonly interval: number;\n    readonly rotationRate: DeviceMotionEventRotationRate | null;\n}\n\ndeclare var DeviceMotionEvent: {\n    prototype: DeviceMotionEvent;\n    new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;\n};\n\n/** Available only in secure contexts. */\ninterface DeviceMotionEventAcceleration {\n    readonly x: number | null;\n    readonly y: number | null;\n    readonly z: number | null;\n}\n\n/** Available only in secure contexts. */\ninterface DeviceMotionEventRotationRate {\n    readonly alpha: number | null;\n    readonly beta: number | null;\n    readonly gamma: number | null;\n}\n\n/**\n * The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page.\n * Available only in secure contexts.\n */\ninterface DeviceOrientationEvent extends Event {\n    readonly absolute: boolean;\n    readonly alpha: number | null;\n    readonly beta: number | null;\n    readonly gamma: number | null;\n}\n\ndeclare var DeviceOrientationEvent: {\n    prototype: DeviceOrientationEvent;\n    new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;\n};\n\ninterface DocumentEventMap extends GlobalEventHandlersEventMap {\n    \"DOMContentLoaded\": Event;\n    \"fullscreenchange\": Event;\n    \"fullscreenerror\": Event;\n    \"pointerlockchange\": Event;\n    \"pointerlockerror\": Event;\n    \"readystatechange\": Event;\n    \"visibilitychange\": Event;\n}\n\n/** Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree. */\ninterface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {\n    /** Sets or gets the URL for the current document. */\n    readonly URL: string;\n    /**\n     * Sets or gets the color of all active links in the document.\n     * @deprecated\n     */\n    alinkColor: string;\n    /**\n     * Returns a reference to the collection of elements contained by the object.\n     * @deprecated\n     */\n    readonly all: HTMLAllCollection;\n    /**\n     * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.\n     * @deprecated\n     */\n    readonly anchors: HTMLCollectionOf<HTMLAnchorElement>;\n    /**\n     * Retrieves a collection of all applet objects in the document.\n     * @deprecated\n     */\n    readonly applets: HTMLCollection;\n    /**\n     * Deprecated. Sets or retrieves a value that indicates the background color behind the object.\n     * @deprecated\n     */\n    bgColor: string;\n    /** Specifies the beginning and end of the document body. */\n    body: HTMLElement;\n    /** Returns document's encoding. */\n    readonly characterSet: string;\n    /**\n     * Gets or sets the character set used to encode the object.\n     * @deprecated This is a legacy alias of \\`characterSet\\`.\n     */\n    readonly charset: string;\n    /** Gets a value that indicates whether standards-compliant mode is switched on for the object. */\n    readonly compatMode: string;\n    /** Returns document's content type. */\n    readonly contentType: string;\n    /**\n     * Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned.\n     *\n     * Can be set, to add a new cookie to the element's set of HTTP cookies.\n     *\n     * If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a \"SecurityError\" DOMException will be thrown on getting and setting.\n     */\n    cookie: string;\n    /**\n     * Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing.\n     *\n     * Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script.\n     */\n    readonly currentScript: HTMLOrSVGScriptElement | null;\n    /** Returns the Window object of the active document. */\n    readonly defaultView: (WindowProxy & typeof globalThis) | null;\n    /** Sets or gets a value that indicates whether the document can be edited. */\n    designMode: string;\n    /** Sets or retrieves a value that indicates the reading order of the object. */\n    dir: string;\n    /** Gets an object representing the document type declaration associated with the current document. */\n    readonly doctype: DocumentType | null;\n    /** Gets a reference to the root node of the document. */\n    readonly documentElement: HTMLElement;\n    /** Returns document's URL. */\n    readonly documentURI: string;\n    /**\n     * Sets or gets the security domain of the document.\n     * @deprecated\n     */\n    domain: string;\n    /** Retrieves a collection of all embed objects in the document. */\n    readonly embeds: HTMLCollectionOf<HTMLEmbedElement>;\n    /**\n     * Sets or gets the foreground (text) color of the document.\n     * @deprecated\n     */\n    fgColor: string;\n    /** Retrieves a collection, in source order, of all form objects in the document. */\n    readonly forms: HTMLCollectionOf<HTMLFormElement>;\n    /** @deprecated */\n    readonly fullscreen: boolean;\n    /** Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. */\n    readonly fullscreenEnabled: boolean;\n    /** Returns the head element. */\n    readonly head: HTMLHeadElement;\n    readonly hidden: boolean;\n    /** Retrieves a collection, in source order, of img objects in the document. */\n    readonly images: HTMLCollectionOf<HTMLImageElement>;\n    /** Gets the implementation object of the current document. */\n    readonly implementation: DOMImplementation;\n    /**\n     * Returns the character encoding used to create the webpage that is loaded into the document object.\n     * @deprecated This is a legacy alias of \\`characterSet\\`.\n     */\n    readonly inputEncoding: string;\n    /** Gets the date that the page was last modified, if the page supplies one. */\n    readonly lastModified: string;\n    /**\n     * Sets or gets the color of the document links.\n     * @deprecated\n     */\n    linkColor: string;\n    /** Retrieves a collection of all a objects that specify the href property and all area objects in the document. */\n    readonly links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;\n    /** Contains information about the current URL. */\n    get location(): Location;\n    set location(href: string | Location);\n    onfullscreenchange: ((this: Document, ev: Event) => any) | null;\n    onfullscreenerror: ((this: Document, ev: Event) => any) | null;\n    onpointerlockchange: ((this: Document, ev: Event) => any) | null;\n    onpointerlockerror: ((this: Document, ev: Event) => any) | null;\n    /**\n     * Fires when the state of the object has changed.\n     * @param ev The event\n     */\n    onreadystatechange: ((this: Document, ev: Event) => any) | null;\n    onvisibilitychange: ((this: Document, ev: Event) => any) | null;\n    readonly ownerDocument: null;\n    readonly pictureInPictureEnabled: boolean;\n    /** Return an HTMLCollection of the embed elements in the Document. */\n    readonly plugins: HTMLCollectionOf<HTMLEmbedElement>;\n    /** Retrieves a value that indicates the current state of the object. */\n    readonly readyState: DocumentReadyState;\n    /** Gets the URL of the location that referred the user to the current page. */\n    readonly referrer: string;\n    /** @deprecated */\n    readonly rootElement: SVGSVGElement | null;\n    /** Retrieves a collection of all script objects in the document. */\n    readonly scripts: HTMLCollectionOf<HTMLScriptElement>;\n    readonly scrollingElement: Element | null;\n    readonly timeline: DocumentTimeline;\n    /** Contains the title of the document. */\n    title: string;\n    readonly visibilityState: DocumentVisibilityState;\n    /**\n     * Sets or gets the color of the links that the user has visited.\n     * @deprecated\n     */\n    vlinkColor: string;\n    /**\n     * Moves node from another document and returns it.\n     *\n     * If node is a document, throws a \"NotSupportedError\" DOMException or, if node is a shadow root, throws a \"HierarchyRequestError\" DOMException.\n     */\n    adoptNode<T extends Node>(node: T): T;\n    /** @deprecated */\n    captureEvents(): void;\n    /** @deprecated */\n    caretRangeFromPoint(x: number, y: number): Range | null;\n    /** @deprecated */\n    clear(): void;\n    /** Closes an output stream and forces the sent data to display. */\n    close(): void;\n    /**\n     * Creates an attribute object with a specified name.\n     * @param name String that sets the attribute object's name.\n     */\n    createAttribute(localName: string): Attr;\n    createAttributeNS(namespace: string | null, qualifiedName: string): Attr;\n    /** Returns a CDATASection node whose data is data. */\n    createCDATASection(data: string): CDATASection;\n    /**\n     * Creates a comment object with the specified data.\n     * @param data Sets the comment object's data.\n     */\n    createComment(data: string): Comment;\n    /** Creates a new document. */\n    createDocumentFragment(): DocumentFragment;\n    /**\n     * Creates an instance of the element for the specified tag.\n     * @param tagName The name of an element.\n     */\n    createElement<K extends keyof HTMLElementTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K];\n    /** @deprecated */\n    createElement<K extends keyof HTMLElementDeprecatedTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K];\n    createElement(tagName: string, options?: ElementCreationOptions): HTMLElement;\n    /**\n     * Returns an element with namespace namespace. Its namespace prefix will be everything before \":\" (U+003E) in qualifiedName or null. Its local name will be everything after \":\" (U+003E) in qualifiedName or qualifiedName.\n     *\n     * If localName does not match the Name production an \"InvalidCharacterError\" DOMException will be thrown.\n     *\n     * If one of the following conditions is true a \"NamespaceError\" DOMException will be thrown:\n     *\n     * localName does not match the QName production.\n     * Namespace prefix is not null and namespace is the empty string.\n     * Namespace prefix is \"xml\" and namespace is not the XML namespace.\n     * qualifiedName or namespace prefix is \"xmlns\" and namespace is not the XMLNS namespace.\n     * namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is \"xmlns\".\n     *\n     * When supplied, options's is can be used to create a customized built-in element.\n     */\n    createElementNS(namespaceURI: \"http://www.w3.org/1999/xhtml\", qualifiedName: string): HTMLElement;\n    createElementNS<K extends keyof SVGElementTagNameMap>(namespaceURI: \"http://www.w3.org/2000/svg\", qualifiedName: K): SVGElementTagNameMap[K];\n    createElementNS(namespaceURI: \"http://www.w3.org/2000/svg\", qualifiedName: string): SVGElement;\n    createElementNS<K extends keyof MathMLElementTagNameMap>(namespaceURI: \"http://www.w3.org/1998/Math/MathML\", qualifiedName: K): MathMLElementTagNameMap[K];\n    createElementNS(namespaceURI: \"http://www.w3.org/1998/Math/MathML\", qualifiedName: string): MathMLElement;\n    createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element;\n    createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element;\n    createEvent(eventInterface: \"AnimationEvent\"): AnimationEvent;\n    createEvent(eventInterface: \"AnimationPlaybackEvent\"): AnimationPlaybackEvent;\n    createEvent(eventInterface: \"AudioProcessingEvent\"): AudioProcessingEvent;\n    createEvent(eventInterface: \"BeforeUnloadEvent\"): BeforeUnloadEvent;\n    createEvent(eventInterface: \"BlobEvent\"): BlobEvent;\n    createEvent(eventInterface: \"ClipboardEvent\"): ClipboardEvent;\n    createEvent(eventInterface: \"CloseEvent\"): CloseEvent;\n    createEvent(eventInterface: \"CompositionEvent\"): CompositionEvent;\n    createEvent(eventInterface: \"CustomEvent\"): CustomEvent;\n    createEvent(eventInterface: \"DeviceMotionEvent\"): DeviceMotionEvent;\n    createEvent(eventInterface: \"DeviceOrientationEvent\"): DeviceOrientationEvent;\n    createEvent(eventInterface: \"DragEvent\"): DragEvent;\n    createEvent(eventInterface: \"ErrorEvent\"): ErrorEvent;\n    createEvent(eventInterface: \"Event\"): Event;\n    createEvent(eventInterface: \"Events\"): Event;\n    createEvent(eventInterface: \"FocusEvent\"): FocusEvent;\n    createEvent(eventInterface: \"FontFaceSetLoadEvent\"): FontFaceSetLoadEvent;\n    createEvent(eventInterface: \"FormDataEvent\"): FormDataEvent;\n    createEvent(eventInterface: \"GamepadEvent\"): GamepadEvent;\n    createEvent(eventInterface: \"HashChangeEvent\"): HashChangeEvent;\n    createEvent(eventInterface: \"IDBVersionChangeEvent\"): IDBVersionChangeEvent;\n    createEvent(eventInterface: \"InputEvent\"): InputEvent;\n    createEvent(eventInterface: \"KeyboardEvent\"): KeyboardEvent;\n    createEvent(eventInterface: \"MIDIConnectionEvent\"): MIDIConnectionEvent;\n    createEvent(eventInterface: \"MIDIMessageEvent\"): MIDIMessageEvent;\n    createEvent(eventInterface: \"MediaEncryptedEvent\"): MediaEncryptedEvent;\n    createEvent(eventInterface: \"MediaKeyMessageEvent\"): MediaKeyMessageEvent;\n    createEvent(eventInterface: \"MediaQueryListEvent\"): MediaQueryListEvent;\n    createEvent(eventInterface: \"MediaStreamTrackEvent\"): MediaStreamTrackEvent;\n    createEvent(eventInterface: \"MessageEvent\"): MessageEvent;\n    createEvent(eventInterface: \"MouseEvent\"): MouseEvent;\n    createEvent(eventInterface: \"MouseEvents\"): MouseEvent;\n    createEvent(eventInterface: \"MutationEvent\"): MutationEvent;\n    createEvent(eventInterface: \"MutationEvents\"): MutationEvent;\n    createEvent(eventInterface: \"OfflineAudioCompletionEvent\"): OfflineAudioCompletionEvent;\n    createEvent(eventInterface: \"PageTransitionEvent\"): PageTransitionEvent;\n    createEvent(eventInterface: \"PaymentMethodChangeEvent\"): PaymentMethodChangeEvent;\n    createEvent(eventInterface: \"PaymentRequestUpdateEvent\"): PaymentRequestUpdateEvent;\n    createEvent(eventInterface: \"PictureInPictureEvent\"): PictureInPictureEvent;\n    createEvent(eventInterface: \"PointerEvent\"): PointerEvent;\n    createEvent(eventInterface: \"PopStateEvent\"): PopStateEvent;\n    createEvent(eventInterface: \"ProgressEvent\"): ProgressEvent;\n    createEvent(eventInterface: \"PromiseRejectionEvent\"): PromiseRejectionEvent;\n    createEvent(eventInterface: \"RTCDTMFToneChangeEvent\"): RTCDTMFToneChangeEvent;\n    createEvent(eventInterface: \"RTCDataChannelEvent\"): RTCDataChannelEvent;\n    createEvent(eventInterface: \"RTCErrorEvent\"): RTCErrorEvent;\n    createEvent(eventInterface: \"RTCPeerConnectionIceErrorEvent\"): RTCPeerConnectionIceErrorEvent;\n    createEvent(eventInterface: \"RTCPeerConnectionIceEvent\"): RTCPeerConnectionIceEvent;\n    createEvent(eventInterface: \"RTCTrackEvent\"): RTCTrackEvent;\n    createEvent(eventInterface: \"SecurityPolicyViolationEvent\"): SecurityPolicyViolationEvent;\n    createEvent(eventInterface: \"SpeechSynthesisErrorEvent\"): SpeechSynthesisErrorEvent;\n    createEvent(eventInterface: \"SpeechSynthesisEvent\"): SpeechSynthesisEvent;\n    createEvent(eventInterface: \"StorageEvent\"): StorageEvent;\n    createEvent(eventInterface: \"SubmitEvent\"): SubmitEvent;\n    createEvent(eventInterface: \"TouchEvent\"): TouchEvent;\n    createEvent(eventInterface: \"TrackEvent\"): TrackEvent;\n    createEvent(eventInterface: \"TransitionEvent\"): TransitionEvent;\n    createEvent(eventInterface: \"UIEvent\"): UIEvent;\n    createEvent(eventInterface: \"UIEvents\"): UIEvent;\n    createEvent(eventInterface: \"WebGLContextEvent\"): WebGLContextEvent;\n    createEvent(eventInterface: \"WheelEvent\"): WheelEvent;\n    createEvent(eventInterface: string): Event;\n    /**\n     * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.\n     * @param root The root element or node to start traversing on.\n     * @param whatToShow The type of nodes or elements to appear in the node list\n     * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.\n     */\n    createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator;\n    /** Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an \"InvalidCharacterError\" DOMException will be thrown. If data contains \"?>\" an \"InvalidCharacterError\" DOMException will be thrown. */\n    createProcessingInstruction(target: string, data: string): ProcessingInstruction;\n    /**  Returns an empty range object that has both of its boundary points positioned at the beginning of the document. */\n    createRange(): Range;\n    /**\n     * Creates a text string from the specified value.\n     * @param data String that specifies the nodeValue property of the text node.\n     */\n    createTextNode(data: string): Text;\n    /**\n     * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.\n     * @param root The root element or node to start traversing on.\n     * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.\n     * @param filter A custom NodeFilter function to use.\n     */\n    createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;\n    /**\n     * Executes a command on the current document, current selection, or the given range.\n     * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.\n     * @param showUI Display the user interface, defaults to false.\n     * @param value Value to assign.\n     * @deprecated\n     */\n    execCommand(commandId: string, showUI?: boolean, value?: string): boolean;\n    /** Stops document's fullscreen element from being displayed fullscreen and resolves promise when done. */\n    exitFullscreen(): Promise<void>;\n    exitPictureInPicture(): Promise<void>;\n    exitPointerLock(): void;\n    /**\n     * Returns a reference to the first object with the specified value of the ID attribute.\n     * @param elementId String that specifies the ID value.\n     */\n    getElementById(elementId: string): HTMLElement | null;\n    /** Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. */\n    getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;\n    /**\n     * Gets a collection of objects based on the value of the NAME or ID attribute.\n     * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.\n     */\n    getElementsByName(elementName: string): NodeListOf<HTMLElement>;\n    /**\n     * Retrieves a collection of objects based on the specified element name.\n     * @param name Specifies the name of an element.\n     */\n    getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;\n    getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;\n    getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;\n    /** @deprecated */\n    getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;\n    getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;\n    /**\n     * If namespace and localName are \"*\" returns a HTMLCollection of all descendant elements.\n     *\n     * If only namespace is \"*\" returns a HTMLCollection of all descendant elements whose local name is localName.\n     *\n     * If only localName is \"*\" returns a HTMLCollection of all descendant elements whose namespace is namespace.\n     *\n     * Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName.\n     */\n    getElementsByTagNameNS(namespaceURI: \"http://www.w3.org/1999/xhtml\", localName: string): HTMLCollectionOf<HTMLElement>;\n    getElementsByTagNameNS(namespaceURI: \"http://www.w3.org/2000/svg\", localName: string): HTMLCollectionOf<SVGElement>;\n    getElementsByTagNameNS(namespaceURI: \"http://www.w3.org/1998/Math/MathML\", localName: string): HTMLCollectionOf<MathMLElement>;\n    getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;\n    /** Returns an object representing the current selection of the document that is loaded into the object displaying a webpage. */\n    getSelection(): Selection | null;\n    /** Gets a value indicating whether the object currently has focus. */\n    hasFocus(): boolean;\n    hasStorageAccess(): Promise<boolean>;\n    /**\n     * Returns a copy of node. If deep is true, the copy also includes the node's descendants.\n     *\n     * If node is a document or a shadow root, throws a \"NotSupportedError\" DOMException.\n     */\n    importNode<T extends Node>(node: T, deep?: boolean): T;\n    /**\n     * 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.\n     * @param url Specifies a MIME type for the document.\n     * @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.\n     * @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.\n     * @param replace Specifies whether the existing entry for the document is replaced in the history list.\n     */\n    open(unused1?: string, unused2?: string): Document;\n    open(url: string | URL, name: string, features: string): WindowProxy | null;\n    /**\n     * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.\n     * @param commandId Specifies a command identifier.\n     * @deprecated\n     */\n    queryCommandEnabled(commandId: string): boolean;\n    /**\n     * Returns a Boolean value that indicates whether the specified command is in the indeterminate state.\n     * @param commandId String that specifies a command identifier.\n     * @deprecated\n     */\n    queryCommandIndeterm(commandId: string): boolean;\n    /**\n     * Returns a Boolean value that indicates the current state of the command.\n     * @param commandId String that specifies a command identifier.\n     * @deprecated\n     */\n    queryCommandState(commandId: string): boolean;\n    /**\n     * Returns a Boolean value that indicates whether the current command is supported on the current range.\n     * @param commandId Specifies a command identifier.\n     * @deprecated\n     */\n    queryCommandSupported(commandId: string): boolean;\n    /**\n     * Returns the current value of the document, range, or current selection for the given command.\n     * @param commandId String that specifies a command identifier.\n     * @deprecated\n     */\n    queryCommandValue(commandId: string): string;\n    /** @deprecated */\n    releaseEvents(): void;\n    requestStorageAccess(): Promise<void>;\n    /**\n     * Writes one or more HTML expressions to a document in the specified window.\n     * @param content Specifies the text and HTML tags to write.\n     */\n    write(...text: string[]): void;\n    /**\n     * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.\n     * @param content The text and HTML tags to write.\n     */\n    writeln(...text: string[]): void;\n    addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Document: {\n    prototype: Document;\n    new(): Document;\n};\n\n/** A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made. */\ninterface DocumentFragment extends Node, NonElementParentNode, ParentNode {\n    readonly ownerDocument: Document;\n    getElementById(elementId: string): HTMLElement | null;\n}\n\ndeclare var DocumentFragment: {\n    prototype: DocumentFragment;\n    new(): DocumentFragment;\n};\n\ninterface DocumentOrShadowRoot {\n    /**\n     * Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document.\n     *\n     * For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document.\n     *\n     * Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not.\n     */\n    readonly activeElement: Element | null;\n    adoptedStyleSheets: CSSStyleSheet[];\n    /** Returns document's fullscreen element. */\n    readonly fullscreenElement: Element | null;\n    readonly pictureInPictureElement: Element | null;\n    readonly pointerLockElement: Element | null;\n    /** Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. */\n    readonly styleSheets: StyleSheetList;\n    /**\n     * Returns the element for the specified x coordinate and the specified y coordinate.\n     * @param x The x-offset\n     * @param y The y-offset\n     */\n    elementFromPoint(x: number, y: number): Element | null;\n    elementsFromPoint(x: number, y: number): Element[];\n    getAnimations(): Animation[];\n}\n\ninterface DocumentTimeline extends AnimationTimeline {\n}\n\ndeclare var DocumentTimeline: {\n    prototype: DocumentTimeline;\n    new(options?: DocumentTimelineOptions): DocumentTimeline;\n};\n\n/** A Node containing a doctype. */\ninterface DocumentType extends Node, ChildNode {\n    readonly name: string;\n    readonly ownerDocument: Document;\n    readonly publicId: string;\n    readonly systemId: string;\n}\n\ndeclare var DocumentType: {\n    prototype: DocumentType;\n    new(): DocumentType;\n};\n\n/** A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way. */\ninterface DragEvent extends MouseEvent {\n    /** Returns the DataTransfer object for the event. */\n    readonly dataTransfer: DataTransfer | null;\n}\n\ndeclare var DragEvent: {\n    prototype: DragEvent;\n    new(type: string, eventInitDict?: DragEventInit): DragEvent;\n};\n\n/** Inherits properties from its parent, AudioNode. */\ninterface DynamicsCompressorNode extends AudioNode {\n    readonly attack: AudioParam;\n    readonly knee: AudioParam;\n    readonly ratio: AudioParam;\n    readonly reduction: number;\n    readonly release: AudioParam;\n    readonly threshold: AudioParam;\n}\n\ndeclare var DynamicsCompressorNode: {\n    prototype: DynamicsCompressorNode;\n    new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode;\n};\n\ninterface EXT_blend_minmax {\n    readonly MIN_EXT: 0x8007;\n    readonly MAX_EXT: 0x8008;\n}\n\ninterface EXT_color_buffer_float {\n}\n\ninterface EXT_color_buffer_half_float {\n    readonly RGBA16F_EXT: 0x881A;\n    readonly RGB16F_EXT: 0x881B;\n    readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;\n    readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;\n}\n\ninterface EXT_float_blend {\n}\n\n/** The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. */\ninterface EXT_frag_depth {\n}\n\ninterface EXT_sRGB {\n    readonly SRGB_EXT: 0x8C40;\n    readonly SRGB_ALPHA_EXT: 0x8C42;\n    readonly SRGB8_ALPHA8_EXT: 0x8C43;\n    readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210;\n}\n\ninterface EXT_shader_texture_lod {\n}\n\ninterface EXT_texture_compression_bptc {\n    readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C;\n    readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D;\n    readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E;\n    readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F;\n}\n\ninterface EXT_texture_compression_rgtc {\n    readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB;\n    readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC;\n    readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD;\n    readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE;\n}\n\n/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */\ninterface EXT_texture_filter_anisotropic {\n    readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE;\n    readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF;\n}\n\ninterface EXT_texture_norm16 {\n    readonly R16_EXT: 0x822A;\n    readonly RG16_EXT: 0x822C;\n    readonly RGB16_EXT: 0x8054;\n    readonly RGBA16_EXT: 0x805B;\n    readonly R16_SNORM_EXT: 0x8F98;\n    readonly RG16_SNORM_EXT: 0x8F99;\n    readonly RGB16_SNORM_EXT: 0x8F9A;\n    readonly RGBA16_SNORM_EXT: 0x8F9B;\n}\n\ninterface ElementEventMap {\n    \"fullscreenchange\": Event;\n    \"fullscreenerror\": Event;\n}\n\n/** Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element. */\ninterface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable {\n    readonly attributes: NamedNodeMap;\n    /** Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. */\n    readonly classList: DOMTokenList;\n    /** Returns the value of element's class content attribute. Can be set to change it. */\n    className: string;\n    readonly clientHeight: number;\n    readonly clientLeft: number;\n    readonly clientTop: number;\n    readonly clientWidth: number;\n    /** Returns the value of element's id content attribute. Can be set to change it. */\n    id: string;\n    /** Returns the local name. */\n    readonly localName: string;\n    /** Returns the namespace. */\n    readonly namespaceURI: string | null;\n    onfullscreenchange: ((this: Element, ev: Event) => any) | null;\n    onfullscreenerror: ((this: Element, ev: Event) => any) | null;\n    outerHTML: string;\n    readonly ownerDocument: Document;\n    readonly part: DOMTokenList;\n    /** Returns the namespace prefix. */\n    readonly prefix: string | null;\n    readonly scrollHeight: number;\n    scrollLeft: number;\n    scrollTop: number;\n    readonly scrollWidth: number;\n    /** Returns element's shadow root, if any, and if shadow root's mode is \"open\", and null otherwise. */\n    readonly shadowRoot: ShadowRoot | null;\n    /** Returns the value of element's slot content attribute. Can be set to change it. */\n    slot: string;\n    /** Returns the HTML-uppercased qualified name. */\n    readonly tagName: string;\n    /** Creates a shadow root for element and returns it. */\n    attachShadow(init: ShadowRootInit): ShadowRoot;\n    checkVisibility(options?: CheckVisibilityOptions): boolean;\n    /** Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. */\n    closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;\n    closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;\n    closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;\n    closest<E extends Element = Element>(selectors: string): E | null;\n    /** Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. */\n    getAttribute(qualifiedName: string): string | null;\n    /** Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. */\n    getAttributeNS(namespace: string | null, localName: string): string | null;\n    /** Returns the qualified names of all element's attributes. Can contain duplicates. */\n    getAttributeNames(): string[];\n    getAttributeNode(qualifiedName: string): Attr | null;\n    getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;\n    getBoundingClientRect(): DOMRect;\n    getClientRects(): DOMRectList;\n    /** Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. */\n    getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;\n    getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;\n    getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;\n    getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;\n    /** @deprecated */\n    getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;\n    getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;\n    getElementsByTagNameNS(namespaceURI: \"http://www.w3.org/1999/xhtml\", localName: string): HTMLCollectionOf<HTMLElement>;\n    getElementsByTagNameNS(namespaceURI: \"http://www.w3.org/2000/svg\", localName: string): HTMLCollectionOf<SVGElement>;\n    getElementsByTagNameNS(namespaceURI: \"http://www.w3.org/1998/Math/MathML\", localName: string): HTMLCollectionOf<MathMLElement>;\n    getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;\n    /** Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. */\n    hasAttribute(qualifiedName: string): boolean;\n    /** Returns true if element has an attribute whose namespace is namespace and local name is localName. */\n    hasAttributeNS(namespace: string | null, localName: string): boolean;\n    /** Returns true if element has attributes, and false otherwise. */\n    hasAttributes(): boolean;\n    hasPointerCapture(pointerId: number): boolean;\n    insertAdjacentElement(where: InsertPosition, element: Element): Element | null;\n    insertAdjacentHTML(position: InsertPosition, text: string): void;\n    insertAdjacentText(where: InsertPosition, data: string): void;\n    /** Returns true if matching selectors against element's root yields element, and false otherwise. */\n    matches(selectors: string): boolean;\n    releasePointerCapture(pointerId: number): void;\n    /** Removes element's first attribute whose qualified name is qualifiedName. */\n    removeAttribute(qualifiedName: string): void;\n    /** Removes element's attribute whose namespace is namespace and local name is localName. */\n    removeAttributeNS(namespace: string | null, localName: string): void;\n    removeAttributeNode(attr: Attr): Attr;\n    /**\n     * Displays element fullscreen and resolves promise when done.\n     *\n     * When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to \"show\", navigation simplicity is preferred over screen space, and if set to \"hide\", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value \"auto\" indicates no application preference.\n     */\n    requestFullscreen(options?: FullscreenOptions): Promise<void>;\n    requestPointerLock(): void;\n    scroll(options?: ScrollToOptions): void;\n    scroll(x: number, y: number): void;\n    scrollBy(options?: ScrollToOptions): void;\n    scrollBy(x: number, y: number): void;\n    scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;\n    scrollTo(options?: ScrollToOptions): void;\n    scrollTo(x: number, y: number): void;\n    /** Sets the value of element's first attribute whose qualified name is qualifiedName to value. */\n    setAttribute(qualifiedName: string, value: string): void;\n    /** Sets the value of element's attribute whose namespace is namespace and local name is localName to value. */\n    setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;\n    setAttributeNode(attr: Attr): Attr | null;\n    setAttributeNodeNS(attr: Attr): Attr | null;\n    setPointerCapture(pointerId: number): void;\n    /**\n     * If force is not given, \"toggles\" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.\n     *\n     * Returns true if qualifiedName is now present, and false otherwise.\n     */\n    toggleAttribute(qualifiedName: string, force?: boolean): boolean;\n    /** @deprecated This is a legacy alias of \\`matches\\`. */\n    webkitMatchesSelector(selectors: string): boolean;\n    addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Element: {\n    prototype: Element;\n    new(): Element;\n};\n\ninterface ElementCSSInlineStyle {\n    readonly style: CSSStyleDeclaration;\n}\n\ninterface ElementContentEditable {\n    contentEditable: string;\n    enterKeyHint: string;\n    inputMode: string;\n    readonly isContentEditable: boolean;\n}\n\ninterface ElementInternals extends ARIAMixin {\n    /** Returns the form owner of internals's target element. */\n    readonly form: HTMLFormElement | null;\n    /** Returns a NodeList of all the label elements that internals's target element is associated with. */\n    readonly labels: NodeList;\n    /** Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. */\n    readonly shadowRoot: ShadowRoot | null;\n    /** Returns the error message that would be shown to the user if internals's target element was to be checked for validity. */\n    readonly validationMessage: string;\n    /** Returns the ValidityState object for internals's target element. */\n    readonly validity: ValidityState;\n    /** Returns true if internals's target element will be validated when the form is submitted; false otherwise. */\n    readonly willValidate: boolean;\n    /** Returns true if internals's target element has no validity problems; false otherwise. Fires an invalid event at the element in the latter case. */\n    checkValidity(): boolean;\n    /** Returns true if internals's target element has no validity problems; otherwise, returns false, fires an invalid event at the element, and (if the event isn't canceled) reports the problem to the user. */\n    reportValidity(): boolean;\n    /**\n     * Sets both the state and submission value of internals's target element to value.\n     *\n     * If value is null, the element won't participate in form submission.\n     */\n    setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void;\n    /** Marks internals's target element as suffering from the constraints indicated by the flags argument, and sets the element's validation message to message. If anchor is specified, the user agent might use it to indicate problems with the constraints of internals's target element when the form owner is validated interactively or reportValidity() is called. */\n    setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void;\n}\n\ndeclare var ElementInternals: {\n    prototype: ElementInternals;\n    new(): ElementInternals;\n};\n\n/** Events providing information related to errors in scripts or in files. */\ninterface ErrorEvent extends Event {\n    readonly colno: number;\n    readonly error: any;\n    readonly filename: string;\n    readonly lineno: number;\n    readonly message: string;\n}\n\ndeclare var ErrorEvent: {\n    prototype: ErrorEvent;\n    new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;\n};\n\n/** An event which takes place in the DOM. */\ninterface Event {\n    /** Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. */\n    readonly bubbles: boolean;\n    /** @deprecated */\n    cancelBubble: boolean;\n    /** Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. */\n    readonly cancelable: boolean;\n    /** Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. */\n    readonly composed: boolean;\n    /** Returns the object whose event listener's callback is currently being invoked. */\n    readonly currentTarget: EventTarget | null;\n    /** Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */\n    readonly defaultPrevented: boolean;\n    /** Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. */\n    readonly eventPhase: number;\n    /** Returns true if event was dispatched by the user agent, and false otherwise. */\n    readonly isTrusted: boolean;\n    /** @deprecated */\n    returnValue: boolean;\n    /** @deprecated */\n    readonly srcElement: EventTarget | null;\n    /** Returns the object to which event is dispatched (its target). */\n    readonly target: EventTarget | null;\n    /** Returns the event's timestamp as the number of milliseconds measured relative to the time origin. */\n    readonly timeStamp: DOMHighResTimeStamp;\n    /** Returns the type of event, e.g. \"click\", \"hashchange\", or \"submit\". */\n    readonly type: string;\n    /** Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is \"closed\" that are not reachable from event's currentTarget. */\n    composedPath(): EventTarget[];\n    /** @deprecated */\n    initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;\n    /** If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. */\n    preventDefault(): void;\n    /** Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. */\n    stopImmediatePropagation(): void;\n    /** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */\n    stopPropagation(): void;\n    readonly NONE: 0;\n    readonly CAPTURING_PHASE: 1;\n    readonly AT_TARGET: 2;\n    readonly BUBBLING_PHASE: 3;\n}\n\ndeclare var Event: {\n    prototype: Event;\n    new(type: string, eventInitDict?: EventInit): Event;\n    readonly NONE: 0;\n    readonly CAPTURING_PHASE: 1;\n    readonly AT_TARGET: 2;\n    readonly BUBBLING_PHASE: 3;\n};\n\ninterface EventCounts {\n    forEach(callbackfn: (value: number, key: string, parent: EventCounts) => void, thisArg?: any): void;\n}\n\ndeclare var EventCounts: {\n    prototype: EventCounts;\n    new(): EventCounts;\n};\n\ninterface EventListener {\n    (evt: Event): void;\n}\n\ninterface EventListenerObject {\n    handleEvent(object: Event): void;\n}\n\ninterface EventSourceEventMap {\n    \"error\": Event;\n    \"message\": MessageEvent;\n    \"open\": Event;\n}\n\ninterface EventSource extends EventTarget {\n    onerror: ((this: EventSource, ev: Event) => any) | null;\n    onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;\n    onopen: ((this: EventSource, ev: Event) => any) | null;\n    /** Returns the state of this EventSource object's connection. It can have the values described below. */\n    readonly readyState: number;\n    /** Returns the URL providing the event stream. */\n    readonly url: string;\n    /** Returns true if the credentials mode for connection requests to the URL providing the event stream is set to \"include\", and false otherwise. */\n    readonly withCredentials: boolean;\n    /** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */\n    close(): void;\n    readonly CONNECTING: 0;\n    readonly OPEN: 1;\n    readonly CLOSED: 2;\n    addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var EventSource: {\n    prototype: EventSource;\n    new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;\n    readonly CONNECTING: 0;\n    readonly OPEN: 1;\n    readonly CLOSED: 2;\n};\n\n/** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */\ninterface EventTarget {\n    /**\n     * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.\n     *\n     * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.\n     *\n     * When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.\n     *\n     * When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in \\xA7 2.8 Observing event listeners.\n     *\n     * When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.\n     *\n     * If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.\n     *\n     * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.\n     */\n    addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;\n    /** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */\n    dispatchEvent(event: Event): boolean;\n    /** Removes the event listener in target's event listener list with the same type, callback, and options. */\n    removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;\n}\n\ndeclare var EventTarget: {\n    prototype: EventTarget;\n    new(): EventTarget;\n};\n\n/** @deprecated */\ninterface External {\n    /** @deprecated */\n    AddSearchProvider(): void;\n    /** @deprecated */\n    IsSearchProviderInstalled(): void;\n}\n\n/** @deprecated */\ndeclare var External: {\n    prototype: External;\n    new(): External;\n};\n\n/** Provides information about files and allows JavaScript in a web page to access their content. */\ninterface File extends Blob {\n    readonly lastModified: number;\n    readonly name: string;\n    readonly webkitRelativePath: string;\n}\n\ndeclare var File: {\n    prototype: File;\n    new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;\n};\n\n/** An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type=\"file\"> element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. */\ninterface FileList {\n    readonly length: number;\n    item(index: number): File | null;\n    [index: number]: File;\n}\n\ndeclare var FileList: {\n    prototype: FileList;\n    new(): FileList;\n};\n\ninterface FileReaderEventMap {\n    \"abort\": ProgressEvent<FileReader>;\n    \"error\": ProgressEvent<FileReader>;\n    \"load\": ProgressEvent<FileReader>;\n    \"loadend\": ProgressEvent<FileReader>;\n    \"loadstart\": ProgressEvent<FileReader>;\n    \"progress\": ProgressEvent<FileReader>;\n}\n\n/** Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. */\ninterface FileReader extends EventTarget {\n    readonly error: DOMException | null;\n    onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n    onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n    onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n    onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n    onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n    onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n    readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;\n    readonly result: string | ArrayBuffer | null;\n    abort(): void;\n    readAsArrayBuffer(blob: Blob): void;\n    readAsBinaryString(blob: Blob): void;\n    readAsDataURL(blob: Blob): void;\n    readAsText(blob: Blob, encoding?: string): void;\n    readonly EMPTY: 0;\n    readonly LOADING: 1;\n    readonly DONE: 2;\n    addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var FileReader: {\n    prototype: FileReader;\n    new(): FileReader;\n    readonly EMPTY: 0;\n    readonly LOADING: 1;\n    readonly DONE: 2;\n};\n\ninterface FileSystem {\n    readonly name: string;\n    readonly root: FileSystemDirectoryEntry;\n}\n\ndeclare var FileSystem: {\n    prototype: FileSystem;\n    new(): FileSystem;\n};\n\ninterface FileSystemDirectoryEntry extends FileSystemEntry {\n    createReader(): FileSystemDirectoryReader;\n    getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;\n    getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemDirectoryEntry: {\n    prototype: FileSystemDirectoryEntry;\n    new(): FileSystemDirectoryEntry;\n};\n\n/** Available only in secure contexts. */\ninterface FileSystemDirectoryHandle extends FileSystemHandle {\n    readonly kind: \"directory\";\n    getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;\n    getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;\n    removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;\n    resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;\n}\n\ndeclare var FileSystemDirectoryHandle: {\n    prototype: FileSystemDirectoryHandle;\n    new(): FileSystemDirectoryHandle;\n};\n\ninterface FileSystemDirectoryReader {\n    readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemDirectoryReader: {\n    prototype: FileSystemDirectoryReader;\n    new(): FileSystemDirectoryReader;\n};\n\ninterface FileSystemEntry {\n    readonly filesystem: FileSystem;\n    readonly fullPath: string;\n    readonly isDirectory: boolean;\n    readonly isFile: boolean;\n    readonly name: string;\n    getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemEntry: {\n    prototype: FileSystemEntry;\n    new(): FileSystemEntry;\n};\n\ninterface FileSystemFileEntry extends FileSystemEntry {\n    file(successCallback: FileCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemFileEntry: {\n    prototype: FileSystemFileEntry;\n    new(): FileSystemFileEntry;\n};\n\n/** Available only in secure contexts. */\ninterface FileSystemFileHandle extends FileSystemHandle {\n    readonly kind: \"file\";\n    getFile(): Promise<File>;\n}\n\ndeclare var FileSystemFileHandle: {\n    prototype: FileSystemFileHandle;\n    new(): FileSystemFileHandle;\n};\n\n/** Available only in secure contexts. */\ninterface FileSystemHandle {\n    readonly kind: FileSystemHandleKind;\n    readonly name: string;\n    isSameEntry(other: FileSystemHandle): Promise<boolean>;\n}\n\ndeclare var FileSystemHandle: {\n    prototype: FileSystemHandle;\n    new(): FileSystemHandle;\n};\n\n/** Focus-related events like focus, blur, focusin, or focusout. */\ninterface FocusEvent extends UIEvent {\n    readonly relatedTarget: EventTarget | null;\n}\n\ndeclare var FocusEvent: {\n    prototype: FocusEvent;\n    new(type: string, eventInitDict?: FocusEventInit): FocusEvent;\n};\n\ninterface FontFace {\n    ascentOverride: string;\n    descentOverride: string;\n    display: FontDisplay;\n    family: string;\n    featureSettings: string;\n    lineGapOverride: string;\n    readonly loaded: Promise<FontFace>;\n    readonly status: FontFaceLoadStatus;\n    stretch: string;\n    style: string;\n    unicodeRange: string;\n    variant: string;\n    weight: string;\n    load(): Promise<FontFace>;\n}\n\ndeclare var FontFace: {\n    prototype: FontFace;\n    new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;\n};\n\ninterface FontFaceSetEventMap {\n    \"loading\": Event;\n    \"loadingdone\": Event;\n    \"loadingerror\": Event;\n}\n\ninterface FontFaceSet extends EventTarget {\n    onloading: ((this: FontFaceSet, ev: Event) => any) | null;\n    onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;\n    onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;\n    readonly ready: Promise<FontFaceSet>;\n    readonly status: FontFaceSetLoadStatus;\n    check(font: string, text?: string): boolean;\n    load(font: string, text?: string): Promise<FontFace[]>;\n    forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;\n    addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var FontFaceSet: {\n    prototype: FontFaceSet;\n    new(initialFaces: FontFace[]): FontFaceSet;\n};\n\ninterface FontFaceSetLoadEvent extends Event {\n    readonly fontfaces: ReadonlyArray<FontFace>;\n}\n\ndeclare var FontFaceSetLoadEvent: {\n    prototype: FontFaceSetLoadEvent;\n    new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;\n};\n\ninterface FontFaceSource {\n    readonly fonts: FontFaceSet;\n}\n\n/** Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to \"multipart/form-data\". */\ninterface FormData {\n    append(name: string, value: string | Blob, fileName?: string): void;\n    delete(name: string): void;\n    get(name: string): FormDataEntryValue | null;\n    getAll(name: string): FormDataEntryValue[];\n    has(name: string): boolean;\n    set(name: string, value: string | Blob, fileName?: string): void;\n    forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;\n}\n\ndeclare var FormData: {\n    prototype: FormData;\n    new(form?: HTMLFormElement): FormData;\n};\n\ninterface FormDataEvent extends Event {\n    /** Returns a FormData object representing names and values of elements associated to the target form. Operations on the FormData object will affect form data to be submitted. */\n    readonly formData: FormData;\n}\n\ndeclare var FormDataEvent: {\n    prototype: FormDataEvent;\n    new(type: string, eventInitDict: FormDataEventInit): FormDataEvent;\n};\n\n/** A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. */\ninterface GainNode extends AudioNode {\n    readonly gain: AudioParam;\n}\n\ndeclare var GainNode: {\n    prototype: GainNode;\n    new(context: BaseAudioContext, options?: GainOptions): GainNode;\n};\n\n/**\n * This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.\n * Available only in secure contexts.\n */\ninterface Gamepad {\n    readonly axes: ReadonlyArray<number>;\n    readonly buttons: ReadonlyArray<GamepadButton>;\n    readonly connected: boolean;\n    readonly hapticActuators: ReadonlyArray<GamepadHapticActuator>;\n    readonly id: string;\n    readonly index: number;\n    readonly mapping: GamepadMappingType;\n    readonly timestamp: DOMHighResTimeStamp;\n}\n\ndeclare var Gamepad: {\n    prototype: Gamepad;\n    new(): Gamepad;\n};\n\n/**\n * An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device.\n * Available only in secure contexts.\n */\ninterface GamepadButton {\n    readonly pressed: boolean;\n    readonly touched: boolean;\n    readonly value: number;\n}\n\ndeclare var GamepadButton: {\n    prototype: GamepadButton;\n    new(): GamepadButton;\n};\n\n/**\n * This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to.\n * Available only in secure contexts.\n */\ninterface GamepadEvent extends Event {\n    readonly gamepad: Gamepad;\n}\n\ndeclare var GamepadEvent: {\n    prototype: GamepadEvent;\n    new(type: string, eventInitDict: GamepadEventInit): GamepadEvent;\n};\n\n/** This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. */\ninterface GamepadHapticActuator {\n    readonly type: GamepadHapticActuatorType;\n}\n\ndeclare var GamepadHapticActuator: {\n    prototype: GamepadHapticActuator;\n    new(): GamepadHapticActuator;\n};\n\ninterface GenericTransformStream {\n    readonly readable: ReadableStream;\n    readonly writable: WritableStream;\n}\n\n/** An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location. */\ninterface Geolocation {\n    clearWatch(watchId: number): void;\n    getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void;\n    watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number;\n}\n\ndeclare var Geolocation: {\n    prototype: Geolocation;\n    new(): Geolocation;\n};\n\n/** Available only in secure contexts. */\ninterface GeolocationCoordinates {\n    readonly accuracy: number;\n    readonly altitude: number | null;\n    readonly altitudeAccuracy: number | null;\n    readonly heading: number | null;\n    readonly latitude: number;\n    readonly longitude: number;\n    readonly speed: number | null;\n}\n\ndeclare var GeolocationCoordinates: {\n    prototype: GeolocationCoordinates;\n    new(): GeolocationCoordinates;\n};\n\n/** Available only in secure contexts. */\ninterface GeolocationPosition {\n    readonly coords: GeolocationCoordinates;\n    readonly timestamp: EpochTimeStamp;\n}\n\ndeclare var GeolocationPosition: {\n    prototype: GeolocationPosition;\n    new(): GeolocationPosition;\n};\n\ninterface GeolocationPositionError {\n    readonly code: number;\n    readonly message: string;\n    readonly PERMISSION_DENIED: 1;\n    readonly POSITION_UNAVAILABLE: 2;\n    readonly TIMEOUT: 3;\n}\n\ndeclare var GeolocationPositionError: {\n    prototype: GeolocationPositionError;\n    new(): GeolocationPositionError;\n    readonly PERMISSION_DENIED: 1;\n    readonly POSITION_UNAVAILABLE: 2;\n    readonly TIMEOUT: 3;\n};\n\ninterface GlobalEventHandlersEventMap {\n    \"abort\": UIEvent;\n    \"animationcancel\": AnimationEvent;\n    \"animationend\": AnimationEvent;\n    \"animationiteration\": AnimationEvent;\n    \"animationstart\": AnimationEvent;\n    \"auxclick\": MouseEvent;\n    \"beforeinput\": InputEvent;\n    \"blur\": FocusEvent;\n    \"cancel\": Event;\n    \"canplay\": Event;\n    \"canplaythrough\": Event;\n    \"change\": Event;\n    \"click\": MouseEvent;\n    \"close\": Event;\n    \"compositionend\": CompositionEvent;\n    \"compositionstart\": CompositionEvent;\n    \"compositionupdate\": CompositionEvent;\n    \"contextmenu\": MouseEvent;\n    \"copy\": ClipboardEvent;\n    \"cuechange\": Event;\n    \"cut\": ClipboardEvent;\n    \"dblclick\": MouseEvent;\n    \"drag\": DragEvent;\n    \"dragend\": DragEvent;\n    \"dragenter\": DragEvent;\n    \"dragleave\": DragEvent;\n    \"dragover\": DragEvent;\n    \"dragstart\": DragEvent;\n    \"drop\": DragEvent;\n    \"durationchange\": Event;\n    \"emptied\": Event;\n    \"ended\": Event;\n    \"error\": ErrorEvent;\n    \"focus\": FocusEvent;\n    \"focusin\": FocusEvent;\n    \"focusout\": FocusEvent;\n    \"formdata\": FormDataEvent;\n    \"gotpointercapture\": PointerEvent;\n    \"input\": Event;\n    \"invalid\": Event;\n    \"keydown\": KeyboardEvent;\n    \"keypress\": KeyboardEvent;\n    \"keyup\": KeyboardEvent;\n    \"load\": Event;\n    \"loadeddata\": Event;\n    \"loadedmetadata\": Event;\n    \"loadstart\": Event;\n    \"lostpointercapture\": PointerEvent;\n    \"mousedown\": MouseEvent;\n    \"mouseenter\": MouseEvent;\n    \"mouseleave\": MouseEvent;\n    \"mousemove\": MouseEvent;\n    \"mouseout\": MouseEvent;\n    \"mouseover\": MouseEvent;\n    \"mouseup\": MouseEvent;\n    \"paste\": ClipboardEvent;\n    \"pause\": Event;\n    \"play\": Event;\n    \"playing\": Event;\n    \"pointercancel\": PointerEvent;\n    \"pointerdown\": PointerEvent;\n    \"pointerenter\": PointerEvent;\n    \"pointerleave\": PointerEvent;\n    \"pointermove\": PointerEvent;\n    \"pointerout\": PointerEvent;\n    \"pointerover\": PointerEvent;\n    \"pointerup\": PointerEvent;\n    \"progress\": ProgressEvent;\n    \"ratechange\": Event;\n    \"reset\": Event;\n    \"resize\": UIEvent;\n    \"scroll\": Event;\n    \"securitypolicyviolation\": SecurityPolicyViolationEvent;\n    \"seeked\": Event;\n    \"seeking\": Event;\n    \"select\": Event;\n    \"selectionchange\": Event;\n    \"selectstart\": Event;\n    \"slotchange\": Event;\n    \"stalled\": Event;\n    \"submit\": SubmitEvent;\n    \"suspend\": Event;\n    \"timeupdate\": Event;\n    \"toggle\": Event;\n    \"touchcancel\": TouchEvent;\n    \"touchend\": TouchEvent;\n    \"touchmove\": TouchEvent;\n    \"touchstart\": TouchEvent;\n    \"transitioncancel\": TransitionEvent;\n    \"transitionend\": TransitionEvent;\n    \"transitionrun\": TransitionEvent;\n    \"transitionstart\": TransitionEvent;\n    \"volumechange\": Event;\n    \"waiting\": Event;\n    \"webkitanimationend\": Event;\n    \"webkitanimationiteration\": Event;\n    \"webkitanimationstart\": Event;\n    \"webkittransitionend\": Event;\n    \"wheel\": WheelEvent;\n}\n\ninterface GlobalEventHandlers {\n    /**\n     * Fires when the user aborts the download.\n     * @param ev The event.\n     */\n    onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;\n    onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n    onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n    onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n    onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n    onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n    onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;\n    /**\n     * Fires when the object loses the input focus.\n     * @param ev The focus event.\n     */\n    onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;\n    oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Occurs when playback is possible, but would require further buffering.\n     * @param ev The event.\n     */\n    oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Fires when the contents of the object or selection have changed.\n     * @param ev The event.\n     */\n    onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Fires when the user clicks the left mouse button on the object\n     * @param ev The mouse event.\n     */\n    onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n    onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Fires when the user clicks the right mouse button in the client area, opening the context menu.\n     * @param ev The mouse event.\n     */\n    oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n    oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;\n    oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;\n    /**\n     * Fires when the user double-clicks the object.\n     * @param ev The mouse event.\n     */\n    ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n    /**\n     * Fires on the source object continuously during a drag operation.\n     * @param ev The event.\n     */\n    ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n    /**\n     * Fires on the source object when the user releases the mouse at the close of a drag operation.\n     * @param ev The event.\n     */\n    ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n    /**\n     * Fires on the target element when the user drags the object to a valid drop target.\n     * @param ev The drag event.\n     */\n    ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n    /**\n     * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.\n     * @param ev The drag event.\n     */\n    ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n    /**\n     * Fires on the target element continuously while the user drags the object over a valid drop target.\n     * @param ev The event.\n     */\n    ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n    /**\n     * Fires on the source object when the user starts to drag a text selection or selected object.\n     * @param ev The event.\n     */\n    ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n    ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n    /**\n     * Occurs when the duration attribute is updated.\n     * @param ev The event.\n     */\n    ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Occurs when the media element is reset to its initial state.\n     * @param ev The event.\n     */\n    onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Occurs when the end of playback is reached.\n     * @param ev The event\n     */\n    onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Fires when an error occurs during object loading.\n     * @param ev The event.\n     */\n    onerror: OnErrorEventHandler;\n    /**\n     * Fires when the object receives focus.\n     * @param ev The event.\n     */\n    onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;\n    onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;\n    ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n    oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Fires when the user presses a key.\n     * @param ev The keyboard event\n     */\n    onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\n    /**\n     * Fires when the user presses an alphanumeric key.\n     * @param ev The event.\n     * @deprecated\n     */\n    onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\n    /**\n     * Fires when the user releases a key.\n     * @param ev The keyboard event\n     */\n    onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\n    /**\n     * Fires immediately after the browser loads the object.\n     * @param ev The event.\n     */\n    onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Occurs when media data is loaded at the current playback position.\n     * @param ev The event.\n     */\n    onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Occurs when the duration and dimensions of the media have been determined.\n     * @param ev The event.\n     */\n    onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Occurs when Internet Explorer begins looking for media data.\n     * @param ev The event.\n     */\n    onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n    /**\n     * Fires when the user clicks the object with either mouse button.\n     * @param ev The mouse event.\n     */\n    onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n    onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n    onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n    /**\n     * Fires when the user moves the mouse over the object.\n     * @param ev The mouse event.\n     */\n    onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n    /**\n     * Fires when the user moves the mouse pointer outside the boundaries of the object.\n     * @param ev The mouse event.\n     */\n    onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n    /**\n     * Fires when the user moves the mouse pointer into the object.\n     * @param ev The mouse event.\n     */\n    onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n    /**\n     * Fires when the user releases a mouse button while the mouse is over the object.\n     * @param ev The mouse event.\n     */\n    onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n    onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;\n    /**\n     * Occurs when playback is paused.\n     * @param ev The event.\n     */\n    onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Occurs when the play method is requested.\n     * @param ev The event.\n     */\n    onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Occurs when the audio or video has started playing.\n     * @param ev The event.\n     */\n    onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n    onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n    onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n    onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n    onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n    onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n    onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n    onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n    /**\n     * Occurs to indicate progress while downloading media data.\n     * @param ev The event.\n     */\n    onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;\n    /**\n     * Occurs when the playback rate is increased or decreased.\n     * @param ev The event.\n     */\n    onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Fires when the user resets a form.\n     * @param ev The event.\n     */\n    onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;\n    /**\n     * Fires when the user repositions the scroll box in the scroll bar on the object.\n     * @param ev The event.\n     */\n    onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;\n    /**\n     * Occurs when the seek operation ends.\n     * @param ev The event.\n     */\n    onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Occurs when the current playback position is moved.\n     * @param ev The event.\n     */\n    onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Fires when the current selection changes.\n     * @param ev The event.\n     */\n    onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Occurs when the download has stopped.\n     * @param ev The event.\n     */\n    onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;\n    /**\n     * Occurs if the load operation has been intentionally halted.\n     * @param ev The event.\n     */\n    onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Occurs to indicate the current playback position.\n     * @param ev The event.\n     */\n    ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n    ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n    ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n    ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n    ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n    ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n    ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n    ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n    /**\n     * Occurs when the volume is changed, or playback is muted or unmuted.\n     * @param ev The event.\n     */\n    onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Occurs when playback stops because the next frame of a video resource is not available.\n     * @param ev The event.\n     */\n    onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /** @deprecated This is a legacy alias of \\`onanimationend\\`. */\n    onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /** @deprecated This is a legacy alias of \\`onanimationiteration\\`. */\n    onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /** @deprecated This is a legacy alias of \\`onanimationstart\\`. */\n    onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /** @deprecated This is a legacy alias of \\`ontransitionend\\`. */\n    onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;\n    addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ninterface HTMLAllCollection {\n    /** Returns the number of elements in the collection. */\n    readonly length: number;\n    /** Returns the item with index index from the collection (determined by tree order). */\n    item(nameOrIndex?: string): HTMLCollection | Element | null;\n    /**\n     * Returns the item with ID or name name from the collection.\n     *\n     * If there are multiple matching items, then an HTMLCollection object containing all those elements is returned.\n     *\n     * Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute.\n     */\n    namedItem(name: string): HTMLCollection | Element | null;\n    [index: number]: Element;\n}\n\ndeclare var HTMLAllCollection: {\n    prototype: HTMLAllCollection;\n    new(): HTMLAllCollection;\n};\n\n/** Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. */\ninterface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {\n    /**\n     * Sets or retrieves the character set used to encode the object.\n     * @deprecated\n     */\n    charset: string;\n    /**\n     * Sets or retrieves the coordinates of the object.\n     * @deprecated\n     */\n    coords: string;\n    download: string;\n    /** Sets or retrieves the language code of the object. */\n    hreflang: string;\n    /**\n     * Sets or retrieves the shape of the object.\n     * @deprecated\n     */\n    name: string;\n    ping: string;\n    referrerPolicy: string;\n    /** Sets or retrieves the relationship between the object and the destination of the link. */\n    rel: string;\n    readonly relList: DOMTokenList;\n    /**\n     * Sets or retrieves the relationship between the object and the destination of the link.\n     * @deprecated\n     */\n    rev: string;\n    /**\n     * Sets or retrieves the shape of the object.\n     * @deprecated\n     */\n    shape: string;\n    /** Sets or retrieves the window or frame at which to target content. */\n    target: string;\n    /** Retrieves or sets the text of the object as a string. */\n    text: string;\n    type: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLAnchorElement: {\n    prototype: HTMLAnchorElement;\n    new(): HTMLAnchorElement;\n};\n\n/** Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <area> elements. */\ninterface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {\n    /** Sets or retrieves a text alternative to the graphic. */\n    alt: string;\n    /** Sets or retrieves the coordinates of the object. */\n    coords: string;\n    download: string;\n    /**\n     * Sets or gets whether clicks in this region cause action.\n     * @deprecated\n     */\n    noHref: boolean;\n    ping: string;\n    referrerPolicy: string;\n    rel: string;\n    readonly relList: DOMTokenList;\n    /** Sets or retrieves the shape of the object. */\n    shape: string;\n    /** Sets or retrieves the window or frame at which to target content. */\n    target: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLAreaElement: {\n    prototype: HTMLAreaElement;\n    new(): HTMLAreaElement;\n};\n\n/** Provides access to the properties of <audio> elements, as well as methods to manipulate them. It derives from the HTMLMediaElement interface. */\ninterface HTMLAudioElement extends HTMLMediaElement {\n    addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLAudioElement: {\n    prototype: HTMLAudioElement;\n    new(): HTMLAudioElement;\n};\n\n/** A HTML line break element (<br>). It inherits from HTMLElement. */\ninterface HTMLBRElement extends HTMLElement {\n    /**\n     * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.\n     * @deprecated\n     */\n    clear: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLBRElement: {\n    prototype: HTMLBRElement;\n    new(): HTMLBRElement;\n};\n\n/** Contains the base URI\\xA0for a document. This object inherits all of the properties and methods as described in the HTMLElement interface. */\ninterface HTMLBaseElement extends HTMLElement {\n    /** Gets or sets the baseline URL on which relative links are based. */\n    href: string;\n    /** Sets or retrieves the window or frame at which to target content. */\n    target: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLBaseElement: {\n    prototype: HTMLBaseElement;\n    new(): HTMLBaseElement;\n};\n\ninterface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {\n}\n\n/** Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating <body> elements. */\ninterface HTMLBodyElement extends HTMLElement, WindowEventHandlers {\n    /** @deprecated */\n    aLink: string;\n    /** @deprecated */\n    background: string;\n    /** @deprecated */\n    bgColor: string;\n    /** @deprecated */\n    link: string;\n    /** @deprecated */\n    text: string;\n    /** @deprecated */\n    vLink: string;\n    addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLBodyElement: {\n    prototype: HTMLBodyElement;\n    new(): HTMLBodyElement;\n};\n\n/** Provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <button> elements. */\ninterface HTMLButtonElement extends HTMLElement {\n    disabled: boolean;\n    /** Retrieves a reference to the form that the object is embedded in. */\n    readonly form: HTMLFormElement | null;\n    /** Overrides the action attribute (where the data on a form is sent) on the parent form element. */\n    formAction: string;\n    /** Used to override the encoding (formEnctype attribute) specified on the form element. */\n    formEnctype: string;\n    /** Overrides the submit method attribute previously specified on a form element. */\n    formMethod: string;\n    /** 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. */\n    formNoValidate: boolean;\n    /** Overrides the target attribute on a form element. */\n    formTarget: string;\n    readonly labels: NodeListOf<HTMLLabelElement>;\n    /** Sets or retrieves the name of the object. */\n    name: string;\n    /** Gets the classification and default behavior of the button. */\n    type: string;\n    /** 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. */\n    readonly validationMessage: string;\n    /** Returns a  ValidityState object that represents the validity states of an element. */\n    readonly validity: ValidityState;\n    /** Sets or retrieves the default or selected value of the control. */\n    value: string;\n    /** Returns whether an element will successfully validate based on forms validation rules and constraints. */\n    readonly willValidate: boolean;\n    /** Returns whether a form will validate when it is submitted, without having to submit it. */\n    checkValidity(): boolean;\n    reportValidity(): boolean;\n    /**\n     * Sets a custom error message that is displayed when a form is submitted.\n     * @param error Sets a custom error message that is displayed when a form is submitted.\n     */\n    setCustomValidity(error: string): void;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLButtonElement: {\n    prototype: HTMLButtonElement;\n    new(): HTMLButtonElement;\n};\n\n/** Provides properties and methods for manipulating the layout and presentation of <canvas> elements. The HTMLCanvasElement interface also inherits the properties and methods of the HTMLElement interface. */\ninterface HTMLCanvasElement extends HTMLElement {\n    /** Gets or sets the height of a canvas element on a document. */\n    height: number;\n    /** Gets or sets the width of a canvas element on a document. */\n    width: number;\n    captureStream(frameRequestRate?: number): MediaStream;\n    /**\n     * 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.\n     * @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\");\n     */\n    getContext(contextId: \"2d\", options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;\n    getContext(contextId: \"bitmaprenderer\", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null;\n    getContext(contextId: \"webgl\", options?: WebGLContextAttributes): WebGLRenderingContext | null;\n    getContext(contextId: \"webgl2\", options?: WebGLContextAttributes): WebGL2RenderingContext | null;\n    getContext(contextId: string, options?: any): RenderingContext | null;\n    toBlob(callback: BlobCallback, type?: string, quality?: any): void;\n    /**\n     * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.\n     * @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.\n     */\n    toDataURL(type?: string, quality?: any): string;\n    transferControlToOffscreen(): OffscreenCanvas;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLCanvasElement: {\n    prototype: HTMLCanvasElement;\n    new(): HTMLCanvasElement;\n};\n\n/** A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list. */\ninterface HTMLCollectionBase {\n    /** Sets or retrieves the number of objects in a collection. */\n    readonly length: number;\n    /** Retrieves an object from various collections. */\n    item(index: number): Element | null;\n    [index: number]: Element;\n}\n\ninterface HTMLCollection extends HTMLCollectionBase {\n    /** Retrieves a select object or an object from an options collection. */\n    namedItem(name: string): Element | null;\n}\n\ndeclare var HTMLCollection: {\n    prototype: HTMLCollection;\n    new(): HTMLCollection;\n};\n\ninterface HTMLCollectionOf<T extends Element> extends HTMLCollectionBase {\n    item(index: number): T | null;\n    namedItem(name: string): T | null;\n    [index: number]: T;\n}\n\n/** Provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list (<dl>) elements. */\ninterface HTMLDListElement extends HTMLElement {\n    /** @deprecated */\n    compact: boolean;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDListElement: {\n    prototype: HTMLDListElement;\n    new(): HTMLDListElement;\n};\n\n/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <data> elements. */\ninterface HTMLDataElement extends HTMLElement {\n    value: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDataElement: {\n    prototype: HTMLDataElement;\n    new(): HTMLDataElement;\n};\n\n/** Provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate <datalist> elements and their content. */\ninterface HTMLDataListElement extends HTMLElement {\n    /** Returns an HTMLCollection of the option elements of the datalist element. */\n    readonly options: HTMLCollectionOf<HTMLOptionElement>;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDataListElement: {\n    prototype: HTMLDataListElement;\n    new(): HTMLDataListElement;\n};\n\ninterface HTMLDetailsElement extends HTMLElement {\n    open: boolean;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDetailsElement: {\n    prototype: HTMLDetailsElement;\n    new(): HTMLDetailsElement;\n};\n\ninterface HTMLDialogElement extends HTMLElement {\n    open: boolean;\n    returnValue: string;\n    /**\n     * Closes the dialog element.\n     *\n     * The argument, if provided, provides a return value.\n     */\n    close(returnValue?: string): void;\n    /** Displays the dialog element. */\n    show(): void;\n    showModal(): void;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDialogElement: {\n    prototype: HTMLDialogElement;\n    new(): HTMLDialogElement;\n};\n\n/** @deprecated */\ninterface HTMLDirectoryElement extends HTMLElement {\n    /** @deprecated */\n    compact: boolean;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLDirectoryElement: {\n    prototype: HTMLDirectoryElement;\n    new(): HTMLDirectoryElement;\n};\n\n/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <div> elements. */\ninterface HTMLDivElement extends HTMLElement {\n    /**\n     * Sets or retrieves how the object is aligned with adjacent text.\n     * @deprecated\n     */\n    align: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDivElement: {\n    prototype: HTMLDivElement;\n    new(): HTMLDivElement;\n};\n\n/** @deprecated use Document */\ninterface HTMLDocument extends Document {\n    addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLDocument: {\n    prototype: HTMLDocument;\n    new(): HTMLDocument;\n};\n\ninterface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {\n}\n\n/** Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it. */\ninterface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {\n    accessKey: string;\n    readonly accessKeyLabel: string;\n    autocapitalize: string;\n    dir: string;\n    draggable: boolean;\n    hidden: boolean;\n    inert: boolean;\n    innerText: string;\n    lang: string;\n    readonly offsetHeight: number;\n    readonly offsetLeft: number;\n    readonly offsetParent: Element | null;\n    readonly offsetTop: number;\n    readonly offsetWidth: number;\n    outerText: string;\n    spellcheck: boolean;\n    title: string;\n    translate: boolean;\n    attachInternals(): ElementInternals;\n    click(): void;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLElement: {\n    prototype: HTMLElement;\n    new(): HTMLElement;\n};\n\n/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <embed> elements. */\ninterface HTMLEmbedElement extends HTMLElement {\n    /** @deprecated */\n    align: string;\n    /** Sets or retrieves the height of the object. */\n    height: string;\n    /**\n     * Sets or retrieves the name of the object.\n     * @deprecated\n     */\n    name: string;\n    /** Sets or retrieves a URL to be loaded by the object. */\n    src: string;\n    type: string;\n    /** Sets or retrieves the width of the object. */\n    width: string;\n    getSVGDocument(): Document | null;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLEmbedElement: {\n    prototype: HTMLEmbedElement;\n    new(): HTMLEmbedElement;\n};\n\n/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <fieldset> elements. */\ninterface HTMLFieldSetElement extends HTMLElement {\n    disabled: boolean;\n    /** Returns an HTMLCollection of the form controls in the element. */\n    readonly elements: HTMLCollection;\n    /** Retrieves a reference to the form that the object is embedded in. */\n    readonly form: HTMLFormElement | null;\n    name: string;\n    /** Returns the string \"fieldset\". */\n    readonly type: string;\n    /** 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. */\n    readonly validationMessage: string;\n    /** Returns a  ValidityState object that represents the validity states of an element. */\n    readonly validity: ValidityState;\n    /** Returns whether an element will successfully validate based on forms validation rules and constraints. */\n    readonly willValidate: boolean;\n    /** Returns whether a form will validate when it is submitted, without having to submit it. */\n    checkValidity(): boolean;\n    reportValidity(): boolean;\n    /**\n     * Sets a custom error message that is displayed when a form is submitted.\n     * @param error Sets a custom error message that is displayed when a form is submitted.\n     */\n    setCustomValidity(error: string): void;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLFieldSetElement: {\n    prototype: HTMLFieldSetElement;\n    new(): HTMLFieldSetElement;\n};\n\n/**\n * Implements the document object model (DOM) representation of the font element. The HTML Font Element <font> defines the font size, font face and color of text.\n * @deprecated\n */\ninterface HTMLFontElement extends HTMLElement {\n    /** @deprecated */\n    color: string;\n    /**\n     * Sets or retrieves the current typeface family.\n     * @deprecated\n     */\n    face: string;\n    /** @deprecated */\n    size: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLFontElement: {\n    prototype: HTMLFontElement;\n    new(): HTMLFontElement;\n};\n\n/** A collection of HTML form control elements.  */\ninterface HTMLFormControlsCollection extends HTMLCollectionBase {\n    /**\n     * Returns the item with ID or name name from the collection.\n     *\n     * If there are multiple matching items, then a RadioNodeList object containing all those elements is returned.\n     */\n    namedItem(name: string): RadioNodeList | Element | null;\n}\n\ndeclare var HTMLFormControlsCollection: {\n    prototype: HTMLFormControlsCollection;\n    new(): HTMLFormControlsCollection;\n};\n\n/** A <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements. */\ninterface HTMLFormElement extends HTMLElement {\n    /** Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form. */\n    acceptCharset: string;\n    /** Sets or retrieves the URL to which the form content is sent for processing. */\n    action: string;\n    /** Specifies whether autocomplete is applied to an editable text field. */\n    autocomplete: string;\n    /** Retrieves a collection, in source order, of all controls in a given form. */\n    readonly elements: HTMLFormControlsCollection;\n    /** Sets or retrieves the MIME encoding for the form. */\n    encoding: string;\n    /** Sets or retrieves the encoding type for the form. */\n    enctype: string;\n    /** Sets or retrieves the number of objects in a collection. */\n    readonly length: number;\n    /** Sets or retrieves how to send the form data to the server. */\n    method: string;\n    /** Sets or retrieves the name of the object. */\n    name: string;\n    /** Designates a form that is not validated when submitted. */\n    noValidate: boolean;\n    rel: string;\n    readonly relList: DOMTokenList;\n    /** Sets or retrieves the window or frame at which to target content. */\n    target: string;\n    /** Returns whether a form will validate when it is submitted, without having to submit it. */\n    checkValidity(): boolean;\n    reportValidity(): boolean;\n    requestSubmit(submitter?: HTMLElement | null): void;\n    /** Fires when the user resets a form. */\n    reset(): void;\n    /** Fires when a FORM is about to be submitted. */\n    submit(): void;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n    [index: number]: Element;\n    [name: string]: any;\n}\n\ndeclare var HTMLFormElement: {\n    prototype: HTMLFormElement;\n    new(): HTMLFormElement;\n};\n\n/** @deprecated */\ninterface HTMLFrameElement extends HTMLElement {\n    /**\n     * Retrieves the document object of the page or frame.\n     * @deprecated\n     */\n    readonly contentDocument: Document | null;\n    /**\n     * Retrieves the object of the specified.\n     * @deprecated\n     */\n    readonly contentWindow: WindowProxy | null;\n    /**\n     * Sets or retrieves whether to display a border for the frame.\n     * @deprecated\n     */\n    frameBorder: string;\n    /**\n     * Sets or retrieves a URI to a long description of the object.\n     * @deprecated\n     */\n    longDesc: string;\n    /**\n     * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.\n     * @deprecated\n     */\n    marginHeight: string;\n    /**\n     * Sets or retrieves the left and right margin widths before displaying the text in a frame.\n     * @deprecated\n     */\n    marginWidth: string;\n    /**\n     * Sets or retrieves the frame name.\n     * @deprecated\n     */\n    name: string;\n    /**\n     * Sets or retrieves whether the user can resize the frame.\n     * @deprecated\n     */\n    noResize: boolean;\n    /**\n     * Sets or retrieves whether the frame can be scrolled.\n     * @deprecated\n     */\n    scrolling: string;\n    /**\n     * Sets or retrieves a URL to be loaded by the object.\n     * @deprecated\n     */\n    src: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLFrameElement: {\n    prototype: HTMLFrameElement;\n    new(): HTMLFrameElement;\n};\n\ninterface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {\n}\n\n/**\n * Provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating <frameset> elements.\n * @deprecated\n */\ninterface HTMLFrameSetElement extends HTMLElement, WindowEventHandlers {\n    /**\n     * Sets or retrieves the frame widths of the object.\n     * @deprecated\n     */\n    cols: string;\n    /**\n     * Sets or retrieves the frame heights of the object.\n     * @deprecated\n     */\n    rows: string;\n    addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLFrameSetElement: {\n    prototype: HTMLFrameSetElement;\n    new(): HTMLFrameSetElement;\n};\n\n/** Provides special properties (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating <hr> elements. */\ninterface HTMLHRElement extends HTMLElement {\n    /**\n     * Sets or retrieves how the object is aligned with adjacent text.\n     * @deprecated\n     */\n    align: string;\n    /** @deprecated */\n    color: string;\n    /**\n     * Sets or retrieves whether the horizontal rule is drawn with 3-D shading.\n     * @deprecated\n     */\n    noShade: boolean;\n    /** @deprecated */\n    size: string;\n    /**\n     * Sets or retrieves the width of the object.\n     * @deprecated\n     */\n    width: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLHRElement: {\n    prototype: HTMLHRElement;\n    new(): HTMLHRElement;\n};\n\n/** Contains the descriptive information, or metadata, for a document. This object inherits all of the properties and methods described in the HTMLElement interface. */\ninterface HTMLHeadElement extends HTMLElement {\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLHeadElement: {\n    prototype: HTMLHeadElement;\n    new(): HTMLHeadElement;\n};\n\n/** The different heading elements. It inherits methods and properties from the HTMLElement interface. */\ninterface HTMLHeadingElement extends HTMLElement {\n    /**\n     * Sets or retrieves a value that indicates the table alignment.\n     * @deprecated\n     */\n    align: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLHeadingElement: {\n    prototype: HTMLHeadingElement;\n    new(): HTMLHeadingElement;\n};\n\n/** Serves as the root node for a given HTML document. This object inherits the properties and methods described in the HTMLElement interface. */\ninterface HTMLHtmlElement extends HTMLElement {\n    /**\n     * Sets or retrieves the DTD version that governs the current document.\n     * @deprecated\n     */\n    version: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLHtmlElement: {\n    prototype: HTMLHtmlElement;\n    new(): HTMLHtmlElement;\n};\n\ninterface HTMLHyperlinkElementUtils {\n    /**\n     * Returns the hyperlink's URL's fragment (includes leading \"#\" if non-empty).\n     *\n     * Can be set, to change the URL's fragment (ignores leading \"#\").\n     */\n    hash: string;\n    /**\n     * Returns the hyperlink's URL's host and port (if different from the default port for the scheme).\n     *\n     * Can be set, to change the URL's host and port.\n     */\n    host: string;\n    /**\n     * Returns the hyperlink's URL's host.\n     *\n     * Can be set, to change the URL's host.\n     */\n    hostname: string;\n    /**\n     * Returns the hyperlink's URL.\n     *\n     * Can be set, to change the URL.\n     */\n    href: string;\n    toString(): string;\n    /** Returns the hyperlink's URL's origin. */\n    readonly origin: string;\n    /**\n     * Returns the hyperlink's URL's password.\n     *\n     * Can be set, to change the URL's password.\n     */\n    password: string;\n    /**\n     * Returns the hyperlink's URL's path.\n     *\n     * Can be set, to change the URL's path.\n     */\n    pathname: string;\n    /**\n     * Returns the hyperlink's URL's port.\n     *\n     * Can be set, to change the URL's port.\n     */\n    port: string;\n    /**\n     * Returns the hyperlink's URL's scheme.\n     *\n     * Can be set, to change the URL's scheme.\n     */\n    protocol: string;\n    /**\n     * Returns the hyperlink's URL's query (includes leading \"?\" if non-empty).\n     *\n     * Can be set, to change the URL's query (ignores leading \"?\").\n     */\n    search: string;\n    /**\n     * Returns the hyperlink's URL's username.\n     *\n     * Can be set, to change the URL's username.\n     */\n    username: string;\n}\n\n/** Provides special properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements. */\ninterface HTMLIFrameElement extends HTMLElement {\n    /**\n     * Sets or retrieves how the object is aligned with adjacent text.\n     * @deprecated\n     */\n    align: string;\n    allow: string;\n    allowFullscreen: boolean;\n    /** Retrieves the document object of the page or frame. */\n    readonly contentDocument: Document | null;\n    /** Retrieves the object of the specified. */\n    readonly contentWindow: WindowProxy | null;\n    /**\n     * Sets or retrieves whether to display a border for the frame.\n     * @deprecated\n     */\n    frameBorder: string;\n    /** Sets or retrieves the height of the object. */\n    height: string;\n    /**\n     * Sets or retrieves a URI to a long description of the object.\n     * @deprecated\n     */\n    longDesc: string;\n    /**\n     * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.\n     * @deprecated\n     */\n    marginHeight: string;\n    /**\n     * Sets or retrieves the left and right margin widths before displaying the text in a frame.\n     * @deprecated\n     */\n    marginWidth: string;\n    /** Sets or retrieves the frame name. */\n    name: string;\n    referrerPolicy: ReferrerPolicy;\n    readonly sandbox: DOMTokenList;\n    /**\n     * Sets or retrieves whether the frame can be scrolled.\n     * @deprecated\n     */\n    scrolling: string;\n    /** Sets or retrieves a URL to be loaded by the object. */\n    src: string;\n    /** Sets or retrives the content of the page that is to contain. */\n    srcdoc: string;\n    /** Sets or retrieves the width of the object. */\n    width: string;\n    getSVGDocument(): Document | null;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLIFrameElement: {\n    prototype: HTMLIFrameElement;\n    new(): HTMLIFrameElement;\n};\n\n/** Provides special properties and methods for manipulating <img> elements. */\ninterface HTMLImageElement extends HTMLElement {\n    /**\n     * Sets or retrieves how the object is aligned with adjacent text.\n     * @deprecated\n     */\n    align: string;\n    /** Sets or retrieves a text alternative to the graphic. */\n    alt: string;\n    /**\n     * Specifies the properties of a border drawn around an object.\n     * @deprecated\n     */\n    border: string;\n    /** Retrieves whether the object is fully loaded. */\n    readonly complete: boolean;\n    crossOrigin: string | null;\n    readonly currentSrc: string;\n    decoding: \"async\" | \"sync\" | \"auto\";\n    /** Sets or retrieves the height of the object. */\n    height: number;\n    /**\n     * Sets or retrieves the width of the border to draw around the object.\n     * @deprecated\n     */\n    hspace: number;\n    /** Sets or retrieves whether the image is a server-side image map. */\n    isMap: boolean;\n    /** Sets or retrieves the policy for loading image elements that are outside the viewport. */\n    loading: \"eager\" | \"lazy\";\n    /**\n     * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.\n     * @deprecated\n     */\n    longDesc: string;\n    /** @deprecated */\n    lowsrc: string;\n    /**\n     * Sets or retrieves the name of the object.\n     * @deprecated\n     */\n    name: string;\n    /** The original height of the image resource before sizing. */\n    readonly naturalHeight: number;\n    /** The original width of the image resource before sizing. */\n    readonly naturalWidth: number;\n    referrerPolicy: string;\n    sizes: string;\n    /** The address or URL of the a media resource that is to be considered. */\n    src: string;\n    srcset: string;\n    /** Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. */\n    useMap: string;\n    /**\n     * Sets or retrieves the vertical margin for the object.\n     * @deprecated\n     */\n    vspace: number;\n    /** Sets or retrieves the width of the object. */\n    width: number;\n    readonly x: number;\n    readonly y: number;\n    decode(): Promise<void>;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLImageElement: {\n    prototype: HTMLImageElement;\n    new(): HTMLImageElement;\n};\n\n/** Provides special properties and methods for manipulating the options, layout, and presentation of <input> elements. */\ninterface HTMLInputElement extends HTMLElement {\n    /** Sets or retrieves a comma-separated list of content types. */\n    accept: string;\n    /**\n     * Sets or retrieves how the object is aligned with adjacent text.\n     * @deprecated\n     */\n    align: string;\n    /** Sets or retrieves a text alternative to the graphic. */\n    alt: string;\n    /** Specifies whether autocomplete is applied to an editable text field. */\n    autocomplete: string;\n    capture: string;\n    /** Sets or retrieves the state of the check box or radio button. */\n    checked: boolean;\n    /** Sets or retrieves the state of the check box or radio button. */\n    defaultChecked: boolean;\n    /** Sets or retrieves the initial contents of the object. */\n    defaultValue: string;\n    dirName: string;\n    disabled: boolean;\n    /** Returns a FileList object on a file type input object. */\n    files: FileList | null;\n    /** Retrieves a reference to the form that the object is embedded in. */\n    readonly form: HTMLFormElement | null;\n    /** Overrides the action attribute (where the data on a form is sent) on the parent form element. */\n    formAction: string;\n    /** Used to override the encoding (formEnctype attribute) specified on the form element. */\n    formEnctype: string;\n    /** Overrides the submit method attribute previously specified on a form element. */\n    formMethod: string;\n    /** 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. */\n    formNoValidate: boolean;\n    /** Overrides the target attribute on a form element. */\n    formTarget: string;\n    /** Sets or retrieves the height of the object. */\n    height: number;\n    /** When set, overrides the rendering of checkbox controls so that the current value is not visible. */\n    indeterminate: boolean;\n    readonly labels: NodeListOf<HTMLLabelElement> | null;\n    /** Specifies the ID of a pre-defined datalist of options for an input element. */\n    readonly list: HTMLDataListElement | null;\n    /** 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. */\n    max: string;\n    /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */\n    maxLength: number;\n    /** 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. */\n    min: string;\n    minLength: number;\n    /** Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. */\n    multiple: boolean;\n    /** Sets or retrieves the name of the object. */\n    name: string;\n    /** Gets or sets a string containing a regular expression that the user's input must match. */\n    pattern: string;\n    /** 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. */\n    placeholder: string;\n    readOnly: boolean;\n    /** When present, marks an element that can't be submitted without a value. */\n    required: boolean;\n    selectionDirection: \"forward\" | \"backward\" | \"none\" | null;\n    /** Gets or sets the end position or offset of a text selection. */\n    selectionEnd: number | null;\n    /** Gets or sets the starting position or offset of a text selection. */\n    selectionStart: number | null;\n    size: number;\n    /** The address or URL of the a media resource that is to be considered. */\n    src: string;\n    /** 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. */\n    step: string;\n    /** Returns the content type of the object. */\n    type: string;\n    /**\n     * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.\n     * @deprecated\n     */\n    useMap: string;\n    /** 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. */\n    readonly validationMessage: string;\n    /** Returns a  ValidityState object that represents the validity states of an element. */\n    readonly validity: ValidityState;\n    /** Returns the value of the data at the cursor's current position. */\n    value: string;\n    /** Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an \"InvalidStateError\" DOMException if the control isn't date- or time-based. */\n    valueAsDate: Date | null;\n    /** Returns the input field value as a number. */\n    valueAsNumber: number;\n    readonly webkitEntries: ReadonlyArray<FileSystemEntry>;\n    webkitdirectory: boolean;\n    /** Sets or retrieves the width of the object. */\n    width: number;\n    /** Returns whether an element will successfully validate based on forms validation rules and constraints. */\n    readonly willValidate: boolean;\n    /** Returns whether a form will validate when it is submitted, without having to submit it. */\n    checkValidity(): boolean;\n    reportValidity(): boolean;\n    /** Makes the selection equal to the current object. */\n    select(): void;\n    /**\n     * Sets a custom error message that is displayed when a form is submitted.\n     * @param error Sets a custom error message that is displayed when a form is submitted.\n     */\n    setCustomValidity(error: string): void;\n    setRangeText(replacement: string): void;\n    setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;\n    /**\n     * Sets the start and end positions of a selection in a text field.\n     * @param start The offset into the text field for the start of the selection.\n     * @param end The offset into the text field for the end of the selection.\n     * @param direction The direction in which the selection is performed.\n     */\n    setSelectionRange(start: number | null, end: number | null, direction?: \"forward\" | \"backward\" | \"none\"): void;\n    showPicker(): void;\n    /**\n     * 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.\n     * @param n Value to decrement the value by.\n     */\n    stepDown(n?: number): void;\n    /**\n     * 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.\n     * @param n Value to increment the value by.\n     */\n    stepUp(n?: number): void;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLInputElement: {\n    prototype: HTMLInputElement;\n    new(): HTMLInputElement;\n};\n\n/** Exposes specific properties and methods (beyond those defined by regular HTMLElement interface it also has available to it by inheritance) for manipulating list elements. */\ninterface HTMLLIElement extends HTMLElement {\n    /** @deprecated */\n    type: string;\n    /** Sets or retrieves the value of a list item. */\n    value: number;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLLIElement: {\n    prototype: HTMLLIElement;\n    new(): HTMLLIElement;\n};\n\n/** Gives access to properties specific to <label> elements. It inherits methods and properties from the base HTMLElement interface. */\ninterface HTMLLabelElement extends HTMLElement {\n    /** Returns the form control that is associated with this element. */\n    readonly control: HTMLElement | null;\n    /** Retrieves a reference to the form that the object is embedded in. */\n    readonly form: HTMLFormElement | null;\n    /** Sets or retrieves the object to which the given label object is assigned. */\n    htmlFor: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLLabelElement: {\n    prototype: HTMLLabelElement;\n    new(): HTMLLabelElement;\n};\n\n/** The HTMLLegendElement is an interface allowing to access properties of the <legend> elements. It inherits properties and methods from the HTMLElement interface. */\ninterface HTMLLegendElement extends HTMLElement {\n    /** @deprecated */\n    align: string;\n    /** Retrieves a reference to the form that the object is embedded in. */\n    readonly form: HTMLFormElement | null;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLLegendElement: {\n    prototype: HTMLLegendElement;\n    new(): HTMLLegendElement;\n};\n\n/** Reference information for external resources and the relationship of those resources to a document and vice-versa. This object inherits all of the properties and methods of the HTMLElement interface. */\ninterface HTMLLinkElement extends HTMLElement, LinkStyle {\n    as: string;\n    /**\n     * Sets or retrieves the character set used to encode the object.\n     * @deprecated\n     */\n    charset: string;\n    crossOrigin: string | null;\n    disabled: boolean;\n    /** Sets or retrieves a destination URL or an anchor point. */\n    href: string;\n    /** Sets or retrieves the language code of the object. */\n    hreflang: string;\n    imageSizes: string;\n    imageSrcset: string;\n    integrity: string;\n    /** Sets or retrieves the media type. */\n    media: string;\n    referrerPolicy: string;\n    /** Sets or retrieves the relationship between the object and the destination of the link. */\n    rel: string;\n    readonly relList: DOMTokenList;\n    /**\n     * Sets or retrieves the relationship between the object and the destination of the link.\n     * @deprecated\n     */\n    rev: string;\n    readonly sizes: DOMTokenList;\n    /**\n     * Sets or retrieves the window or frame at which to target content.\n     * @deprecated\n     */\n    target: string;\n    /** Sets or retrieves the MIME type of the object. */\n    type: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLLinkElement: {\n    prototype: HTMLLinkElement;\n    new(): HTMLLinkElement;\n};\n\n/** Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of map elements. */\ninterface HTMLMapElement extends HTMLElement {\n    /** Retrieves a collection of the area objects defined for the given map object. */\n    readonly areas: HTMLCollection;\n    /** Sets or retrieves the name of the object. */\n    name: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMapElement: {\n    prototype: HTMLMapElement;\n    new(): HTMLMapElement;\n};\n\n/**\n * Provides methods to manipulate <marquee> elements.\n * @deprecated\n */\ninterface HTMLMarqueeElement extends HTMLElement {\n    /** @deprecated */\n    behavior: string;\n    /** @deprecated */\n    bgColor: string;\n    /** @deprecated */\n    direction: string;\n    /** @deprecated */\n    height: string;\n    /** @deprecated */\n    hspace: number;\n    /** @deprecated */\n    loop: number;\n    /** @deprecated */\n    scrollAmount: number;\n    /** @deprecated */\n    scrollDelay: number;\n    /** @deprecated */\n    trueSpeed: boolean;\n    /** @deprecated */\n    vspace: number;\n    /** @deprecated */\n    width: string;\n    /** @deprecated */\n    start(): void;\n    /** @deprecated */\n    stop(): void;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLMarqueeElement: {\n    prototype: HTMLMarqueeElement;\n    new(): HTMLMarqueeElement;\n};\n\ninterface HTMLMediaElementEventMap extends HTMLElementEventMap {\n    \"encrypted\": MediaEncryptedEvent;\n    \"waitingforkey\": Event;\n}\n\n/** Adds to HTMLElement the properties and methods needed to support basic media-related capabilities\\xA0that are\\xA0common to audio and video. */\ninterface HTMLMediaElement extends HTMLElement {\n    /** Gets or sets a value that indicates whether to start playing the media automatically. */\n    autoplay: boolean;\n    /** Gets a collection of buffered time ranges. */\n    readonly buffered: TimeRanges;\n    /** 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). */\n    controls: boolean;\n    crossOrigin: string | null;\n    /** Gets the address or URL of the current media resource that is selected by IHTMLMediaElement. */\n    readonly currentSrc: string;\n    /** Gets or sets the current playback position, in seconds. */\n    currentTime: number;\n    defaultMuted: boolean;\n    /** Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource. */\n    defaultPlaybackRate: number;\n    disableRemotePlayback: boolean;\n    /** 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. */\n    readonly duration: number;\n    /** Gets information about whether the playback has ended or not. */\n    readonly ended: boolean;\n    /** Returns an object representing the current error state of the audio or video element. */\n    readonly error: MediaError | null;\n    /** Gets or sets a flag to specify whether playback should restart after it completes. */\n    loop: boolean;\n    /** Available only in secure contexts. */\n    readonly mediaKeys: MediaKeys | null;\n    /** Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. */\n    muted: boolean;\n    /** Gets the current network activity for the element. */\n    readonly networkState: number;\n    onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null;\n    onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null;\n    /** Gets a flag that specifies whether playback is paused. */\n    readonly paused: boolean;\n    /** 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. */\n    playbackRate: number;\n    /** Gets TimeRanges for the current media resource that has been played. */\n    readonly played: TimeRanges;\n    /** Gets or sets a value indicating what data should be preloaded, if any. */\n    preload: \"none\" | \"metadata\" | \"auto\" | \"\";\n    preservesPitch: boolean;\n    readonly readyState: number;\n    readonly remote: RemotePlayback;\n    /** Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. */\n    readonly seekable: TimeRanges;\n    /** Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource. */\n    readonly seeking: boolean;\n    /** The address or URL of the a media resource that is to be considered. */\n    src: string;\n    srcObject: MediaProvider | null;\n    readonly textTracks: TextTrackList;\n    /** Gets or sets the volume level for audio portions of the media element. */\n    volume: number;\n    addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack;\n    /** Returns a string that specifies whether the client can play a given media resource type. */\n    canPlayType(type: string): CanPlayTypeResult;\n    fastSeek(time: number): void;\n    /** Resets the audio or video object and loads a new media resource. */\n    load(): void;\n    /** 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. */\n    pause(): void;\n    /** Loads and starts playback of a media resource. */\n    play(): Promise<void>;\n    /** Available only in secure contexts. */\n    setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>;\n    readonly NETWORK_EMPTY: 0;\n    readonly NETWORK_IDLE: 1;\n    readonly NETWORK_LOADING: 2;\n    readonly NETWORK_NO_SOURCE: 3;\n    readonly HAVE_NOTHING: 0;\n    readonly HAVE_METADATA: 1;\n    readonly HAVE_CURRENT_DATA: 2;\n    readonly HAVE_FUTURE_DATA: 3;\n    readonly HAVE_ENOUGH_DATA: 4;\n    addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMediaElement: {\n    prototype: HTMLMediaElement;\n    new(): HTMLMediaElement;\n    readonly NETWORK_EMPTY: 0;\n    readonly NETWORK_IDLE: 1;\n    readonly NETWORK_LOADING: 2;\n    readonly NETWORK_NO_SOURCE: 3;\n    readonly HAVE_NOTHING: 0;\n    readonly HAVE_METADATA: 1;\n    readonly HAVE_CURRENT_DATA: 2;\n    readonly HAVE_FUTURE_DATA: 3;\n    readonly HAVE_ENOUGH_DATA: 4;\n};\n\ninterface HTMLMenuElement extends HTMLElement {\n    /** @deprecated */\n    compact: boolean;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMenuElement: {\n    prototype: HTMLMenuElement;\n    new(): HTMLMenuElement;\n};\n\n/** Contains descriptive metadata about a document. It\\xA0inherits all of the properties and methods described in the HTMLElement interface. */\ninterface HTMLMetaElement extends HTMLElement {\n    /** Gets or sets meta-information to associate with httpEquiv or name. */\n    content: string;\n    /** Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. */\n    httpEquiv: string;\n    media: string;\n    /** Sets or retrieves the value specified in the content attribute of the meta object. */\n    name: string;\n    /**\n     * Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.\n     * @deprecated\n     */\n    scheme: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMetaElement: {\n    prototype: HTMLMetaElement;\n    new(): HTMLMetaElement;\n};\n\n/** The HTML <meter> elements expose the HTMLMeterElement interface, which provides special properties and methods (beyond the HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <meter> elements. */\ninterface HTMLMeterElement extends HTMLElement {\n    high: number;\n    readonly labels: NodeListOf<HTMLLabelElement>;\n    low: number;\n    max: number;\n    min: number;\n    optimum: number;\n    value: number;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMeterElement: {\n    prototype: HTMLMeterElement;\n    new(): HTMLMeterElement;\n};\n\n/** Provides special properties (beyond the regular methods and properties available through the HTMLElement interface they also have available to them by inheritance) for manipulating modification elements, that is <del> and <ins>. */\ninterface HTMLModElement extends HTMLElement {\n    /** Sets or retrieves reference information about the object. */\n    cite: string;\n    /** Sets or retrieves the date and time of a modification to the object. */\n    dateTime: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLModElement: {\n    prototype: HTMLModElement;\n    new(): HTMLModElement;\n};\n\n/** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements. */\ninterface HTMLOListElement extends HTMLElement {\n    /** @deprecated */\n    compact: boolean;\n    reversed: boolean;\n    /** The starting number. */\n    start: number;\n    type: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLOListElement: {\n    prototype: HTMLOListElement;\n    new(): HTMLOListElement;\n};\n\n/** Provides special properties and methods (beyond those on the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <object> element, representing external resources. */\ninterface HTMLObjectElement extends HTMLElement {\n    /** @deprecated */\n    align: string;\n    /**\n     * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.\n     * @deprecated\n     */\n    archive: string;\n    /** @deprecated */\n    border: string;\n    /**\n     * Sets or retrieves the URL of the file containing the compiled Java class.\n     * @deprecated\n     */\n    code: string;\n    /**\n     * Sets or retrieves the URL of the component.\n     * @deprecated\n     */\n    codeBase: string;\n    /**\n     * Sets or retrieves the Internet media type for the code associated with the object.\n     * @deprecated\n     */\n    codeType: string;\n    /** Retrieves the document object of the page or frame. */\n    readonly contentDocument: Document | null;\n    readonly contentWindow: WindowProxy | null;\n    /** Sets or retrieves the URL that references the data of the object. */\n    data: string;\n    /** @deprecated */\n    declare: boolean;\n    /** Retrieves a reference to the form that the object is embedded in. */\n    readonly form: HTMLFormElement | null;\n    /** Sets or retrieves the height of the object. */\n    height: string;\n    /** @deprecated */\n    hspace: number;\n    /** Sets or retrieves the name of the object. */\n    name: string;\n    /**\n     * Sets or retrieves a message to be displayed while an object is loading.\n     * @deprecated\n     */\n    standby: string;\n    /** Sets or retrieves the MIME type of the object. */\n    type: string;\n    /** Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. */\n    useMap: string;\n    /** 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. */\n    readonly validationMessage: string;\n    /** Returns a  ValidityState object that represents the validity states of an element. */\n    readonly validity: ValidityState;\n    /** @deprecated */\n    vspace: number;\n    /** Sets or retrieves the width of the object. */\n    width: string;\n    /** Returns whether an element will successfully validate based on forms validation rules and constraints. */\n    readonly willValidate: boolean;\n    /** Returns whether a form will validate when it is submitted, without having to submit it. */\n    checkValidity(): boolean;\n    getSVGDocument(): Document | null;\n    reportValidity(): boolean;\n    /**\n     * Sets a custom error message that is displayed when a form is submitted.\n     * @param error Sets a custom error message that is displayed when a form is submitted.\n     */\n    setCustomValidity(error: string): void;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLObjectElement: {\n    prototype: HTMLObjectElement;\n    new(): HTMLObjectElement;\n};\n\n/** Provides special properties and methods (beyond the regular HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <optgroup> elements. */\ninterface HTMLOptGroupElement extends HTMLElement {\n    disabled: boolean;\n    /** Sets or retrieves a value that you can use to implement your own label functionality for the object. */\n    label: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLOptGroupElement: {\n    prototype: HTMLOptGroupElement;\n    new(): HTMLOptGroupElement;\n};\n\n/** <option> elements and inherits all classes and methods of the HTMLElement interface. */\ninterface HTMLOptionElement extends HTMLElement {\n    /** Sets or retrieves the status of an option. */\n    defaultSelected: boolean;\n    disabled: boolean;\n    /** Retrieves a reference to the form that the object is embedded in. */\n    readonly form: HTMLFormElement | null;\n    /** Sets or retrieves the ordinal position of an option in a list box. */\n    readonly index: number;\n    /** Sets or retrieves a value that you can use to implement your own label functionality for the object. */\n    label: string;\n    /** Sets or retrieves whether the option in the list box is the default item. */\n    selected: boolean;\n    /** Sets or retrieves the text string specified by the option tag. */\n    text: string;\n    /** Sets or retrieves the value which is returned to the server when the form control is submitted. */\n    value: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLOptionElement: {\n    prototype: HTMLOptionElement;\n    new(): HTMLOptionElement;\n};\n\n/** HTMLOptionsCollection is an interface representing a collection of HTML option elements (in document order) and offers methods and properties for traversing the list as well as optionally altering its items. This type is returned solely by the \"options\" property of select. */\ninterface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {\n    /**\n     * Returns the number of elements in the collection.\n     *\n     * When set to a smaller number, truncates the number of option elements in the corresponding container.\n     *\n     * When set to a greater number, adds new blank option elements to that container.\n     */\n    length: number;\n    /**\n     * Returns the index of the first selected item, if any, or \\u22121 if there is no selected item.\n     *\n     * Can be set, to change the selection.\n     */\n    selectedIndex: number;\n    /**\n     * Inserts element before the node given by before.\n     *\n     * The before argument can be a number, in which case element is inserted before the item with that number, or an element from the collection, in which case element is inserted before that element.\n     *\n     * If before is omitted, null, or a number out of range, then element will be added at the end of the list.\n     *\n     * This method will throw a \"HierarchyRequestError\" DOMException if element is an ancestor of the element into which it is to be inserted.\n     */\n    add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;\n    /** Removes the item with index index from the collection. */\n    remove(index: number): void;\n}\n\ndeclare var HTMLOptionsCollection: {\n    prototype: HTMLOptionsCollection;\n    new(): HTMLOptionsCollection;\n};\n\ninterface HTMLOrSVGElement {\n    autofocus: boolean;\n    readonly dataset: DOMStringMap;\n    nonce?: string;\n    tabIndex: number;\n    blur(): void;\n    focus(options?: FocusOptions): void;\n}\n\n/** Provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of <output> elements. */\ninterface HTMLOutputElement extends HTMLElement {\n    defaultValue: string;\n    readonly form: HTMLFormElement | null;\n    readonly htmlFor: DOMTokenList;\n    readonly labels: NodeListOf<HTMLLabelElement>;\n    name: string;\n    /** Returns the string \"output\". */\n    readonly type: string;\n    readonly validationMessage: string;\n    readonly validity: ValidityState;\n    /**\n     * Returns the element's current value.\n     *\n     * Can be set, to change the value.\n     */\n    value: string;\n    readonly willValidate: boolean;\n    checkValidity(): boolean;\n    reportValidity(): boolean;\n    setCustomValidity(error: string): void;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLOutputElement: {\n    prototype: HTMLOutputElement;\n    new(): HTMLOutputElement;\n};\n\n/** Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <p> elements. */\ninterface HTMLParagraphElement extends HTMLElement {\n    /**\n     * Sets or retrieves how the object is aligned with adjacent text.\n     * @deprecated\n     */\n    align: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLParagraphElement: {\n    prototype: HTMLParagraphElement;\n    new(): HTMLParagraphElement;\n};\n\n/**\n * Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <param> elements, representing a pair of a key and a value that acts as a parameter for an <object> element.\n * @deprecated\n */\ninterface HTMLParamElement extends HTMLElement {\n    /**\n     * Sets or retrieves the name of an input parameter for an element.\n     * @deprecated\n     */\n    name: string;\n    /**\n     * Sets or retrieves the content type of the resource designated by the value attribute.\n     * @deprecated\n     */\n    type: string;\n    /**\n     * Sets or retrieves the value of an input parameter for an element.\n     * @deprecated\n     */\n    value: string;\n    /**\n     * Sets or retrieves the data type of the value attribute.\n     * @deprecated\n     */\n    valueType: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLParamElement: {\n    prototype: HTMLParamElement;\n    new(): HTMLParamElement;\n};\n\n/** A <picture> HTML element. It doesn't implement specific properties or methods. */\ninterface HTMLPictureElement extends HTMLElement {\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLPictureElement: {\n    prototype: HTMLPictureElement;\n    new(): HTMLPictureElement;\n};\n\n/** Exposes specific properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating a block of preformatted text (<pre>). */\ninterface HTMLPreElement extends HTMLElement {\n    /**\n     * Sets or gets a value that you can use to implement your own width functionality for the object.\n     * @deprecated\n     */\n    width: number;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLPreElement: {\n    prototype: HTMLPreElement;\n    new(): HTMLPreElement;\n};\n\n/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <progress> elements. */\ninterface HTMLProgressElement extends HTMLElement {\n    readonly labels: NodeListOf<HTMLLabelElement>;\n    /** Defines the maximum, or \"done\" value for a progress element. */\n    max: number;\n    /** 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). */\n    readonly position: number;\n    /** Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value. */\n    value: number;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLProgressElement: {\n    prototype: HTMLProgressElement;\n    new(): HTMLProgressElement;\n};\n\n/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating quoting elements, like <blockquote> and <q>, but not the <cite> element. */\ninterface HTMLQuoteElement extends HTMLElement {\n    /** Sets or retrieves reference information about the object. */\n    cite: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLQuoteElement: {\n    prototype: HTMLQuoteElement;\n    new(): HTMLQuoteElement;\n};\n\n/** HTML <script> elements expose the HTMLScriptElement interface, which provides special properties and methods for manipulating the behavior and execution of <script> elements (beyond the inherited HTMLElement interface). */\ninterface HTMLScriptElement extends HTMLElement {\n    async: boolean;\n    /**\n     * Sets or retrieves the character set used to encode the object.\n     * @deprecated\n     */\n    charset: string;\n    crossOrigin: string | null;\n    /** Sets or retrieves the status of the script. */\n    defer: boolean;\n    /**\n     * Sets or retrieves the event for which the script is written.\n     * @deprecated\n     */\n    event: string;\n    /**\n     * Sets or retrieves the object that is bound to the event script.\n     * @deprecated\n     */\n    htmlFor: string;\n    integrity: string;\n    noModule: boolean;\n    referrerPolicy: string;\n    /** Retrieves the URL to an external file that contains the source code or data. */\n    src: string;\n    /** Retrieves or sets the text of the object as a string. */\n    text: string;\n    /** Sets or retrieves the MIME type for the associated scripting engine. */\n    type: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLScriptElement: {\n    prototype: HTMLScriptElement;\n    new(): HTMLScriptElement;\n    supports(type: string): boolean;\n};\n\n/** A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface. */\ninterface HTMLSelectElement extends HTMLElement {\n    autocomplete: string;\n    disabled: boolean;\n    /** Retrieves a reference to the form that the object is embedded in. */\n    readonly form: HTMLFormElement | null;\n    readonly labels: NodeListOf<HTMLLabelElement>;\n    /** Sets or retrieves the number of objects in a collection. */\n    length: number;\n    /** Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. */\n    multiple: boolean;\n    /** Sets or retrieves the name of the object. */\n    name: string;\n    /** Returns an HTMLOptionsCollection of the list of options. */\n    readonly options: HTMLOptionsCollection;\n    /** When present, marks an element that can't be submitted without a value. */\n    required: boolean;\n    /** Sets or retrieves the index of the selected option in a select object. */\n    selectedIndex: number;\n    readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;\n    /** Sets or retrieves the number of rows in the list box. */\n    size: number;\n    /** Retrieves the type of select control based on the value of the MULTIPLE attribute. */\n    readonly type: string;\n    /** 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. */\n    readonly validationMessage: string;\n    /** Returns a  ValidityState object that represents the validity states of an element. */\n    readonly validity: ValidityState;\n    /** Sets or retrieves the value which is returned to the server when the form control is submitted. */\n    value: string;\n    /** Returns whether an element will successfully validate based on forms validation rules and constraints. */\n    readonly willValidate: boolean;\n    /**\n     * Adds an element to the areas, controlRange, or options collection.\n     * @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.\n     * @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection.\n     */\n    add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;\n    /** Returns whether a form will validate when it is submitted, without having to submit it. */\n    checkValidity(): boolean;\n    /**\n     * Retrieves a select object or an object from an options collection.\n     * @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.\n     * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.\n     */\n    item(index: number): HTMLOptionElement | null;\n    /**\n     * Retrieves a select object or an object from an options collection.\n     * @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.\n     */\n    namedItem(name: string): HTMLOptionElement | null;\n    /**\n     * Removes an element from the collection.\n     * @param index Number that specifies the zero-based index of the element to remove from the collection.\n     */\n    remove(): void;\n    remove(index: number): void;\n    reportValidity(): boolean;\n    /**\n     * Sets a custom error message that is displayed when a form is submitted.\n     * @param error Sets a custom error message that is displayed when a form is submitted.\n     */\n    setCustomValidity(error: string): void;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n    [name: number]: HTMLOptionElement | HTMLOptGroupElement;\n}\n\ndeclare var HTMLSelectElement: {\n    prototype: HTMLSelectElement;\n    new(): HTMLSelectElement;\n};\n\ninterface HTMLSlotElement extends HTMLElement {\n    name: string;\n    assign(...nodes: (Element | Text)[]): void;\n    assignedElements(options?: AssignedNodesOptions): Element[];\n    assignedNodes(options?: AssignedNodesOptions): Node[];\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLSlotElement: {\n    prototype: HTMLSlotElement;\n    new(): HTMLSlotElement;\n};\n\n/** Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements. */\ninterface HTMLSourceElement extends HTMLElement {\n    height: number;\n    /** Gets or sets the intended media type of the media source. */\n    media: string;\n    sizes: string;\n    /** The address or URL of the a media resource that is to be considered. */\n    src: string;\n    srcset: string;\n    /** Gets or sets the MIME type of a media resource. */\n    type: string;\n    width: number;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLSourceElement: {\n    prototype: HTMLSourceElement;\n    new(): HTMLSourceElement;\n};\n\n/** A <span> element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */\ninterface HTMLSpanElement extends HTMLElement {\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLSpanElement: {\n    prototype: HTMLSpanElement;\n    new(): HTMLSpanElement;\n};\n\n/** A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle. */\ninterface HTMLStyleElement extends HTMLElement, LinkStyle {\n    /** Enables or disables the style sheet. */\n    disabled: boolean;\n    /** Sets or retrieves the media type. */\n    media: string;\n    /**\n     * Retrieves the CSS language in which the style sheet is written.\n     * @deprecated\n     */\n    type: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLStyleElement: {\n    prototype: HTMLStyleElement;\n    new(): HTMLStyleElement;\n};\n\n/** Special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating table caption elements. */\ninterface HTMLTableCaptionElement extends HTMLElement {\n    /**\n     * Sets or retrieves the alignment of the caption or legend.\n     * @deprecated\n     */\n    align: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableCaptionElement: {\n    prototype: HTMLTableCaptionElement;\n    new(): HTMLTableCaptionElement;\n};\n\n/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either header or data cells, in an HTML document. */\ninterface HTMLTableCellElement extends HTMLElement {\n    /** Sets or retrieves abbreviated text for the object. */\n    abbr: string;\n    /**\n     * Sets or retrieves how the object is aligned with adjacent text.\n     * @deprecated\n     */\n    align: string;\n    /**\n     * Sets or retrieves a comma-delimited list of conceptual categories associated with the object.\n     * @deprecated\n     */\n    axis: string;\n    /** @deprecated */\n    bgColor: string;\n    /** Retrieves the position of the object in the cells collection of a row. */\n    readonly cellIndex: number;\n    /** @deprecated */\n    ch: string;\n    /** @deprecated */\n    chOff: string;\n    /** Sets or retrieves the number columns in the table that the object should span. */\n    colSpan: number;\n    /** Sets or retrieves a list of header cells that provide information for the object. */\n    headers: string;\n    /**\n     * Sets or retrieves the height of the object.\n     * @deprecated\n     */\n    height: string;\n    /**\n     * Sets or retrieves whether the browser automatically performs wordwrap.\n     * @deprecated\n     */\n    noWrap: boolean;\n    /** Sets or retrieves how many rows in a table the cell should span. */\n    rowSpan: number;\n    /** Sets or retrieves the group of cells in a table to which the object's information applies. */\n    scope: string;\n    /** @deprecated */\n    vAlign: string;\n    /**\n     * Sets or retrieves the width of the object.\n     * @deprecated\n     */\n    width: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableCellElement: {\n    prototype: HTMLTableCellElement;\n    new(): HTMLTableCellElement;\n};\n\n/** Provides special properties (beyond the HTMLElement interface it also has available to it inheritance) for manipulating single or grouped table column elements. */\ninterface HTMLTableColElement extends HTMLElement {\n    /**\n     * Sets or retrieves the alignment of the object relative to the display or table.\n     * @deprecated\n     */\n    align: string;\n    /** @deprecated */\n    ch: string;\n    /** @deprecated */\n    chOff: string;\n    /** Sets or retrieves the number of columns in the group. */\n    span: number;\n    /** @deprecated */\n    vAlign: string;\n    /**\n     * Sets or retrieves the width of the object.\n     * @deprecated\n     */\n    width: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableColElement: {\n    prototype: HTMLTableColElement;\n    new(): HTMLTableColElement;\n};\n\n/** @deprecated prefer HTMLTableCellElement */\ninterface HTMLTableDataCellElement extends HTMLTableCellElement {\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** Provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document. */\ninterface HTMLTableElement extends HTMLElement {\n    /**\n     * Sets or retrieves a value that indicates the table alignment.\n     * @deprecated\n     */\n    align: string;\n    /** @deprecated */\n    bgColor: string;\n    /**\n     * Sets or retrieves the width of the border to draw around the object.\n     * @deprecated\n     */\n    border: string;\n    /** Retrieves the caption object of a table. */\n    caption: HTMLTableCaptionElement | null;\n    /**\n     * Sets or retrieves the amount of space between the border of the cell and the content of the cell.\n     * @deprecated\n     */\n    cellPadding: string;\n    /**\n     * Sets or retrieves the amount of space between cells in a table.\n     * @deprecated\n     */\n    cellSpacing: string;\n    /**\n     * Sets or retrieves the way the border frame around the table is displayed.\n     * @deprecated\n     */\n    frame: string;\n    /** Sets or retrieves the number of horizontal rows contained in the object. */\n    readonly rows: HTMLCollectionOf<HTMLTableRowElement>;\n    /**\n     * Sets or retrieves which dividing lines (inner borders) are displayed.\n     * @deprecated\n     */\n    rules: string;\n    /**\n     * Sets or retrieves a description and/or structure of the object.\n     * @deprecated\n     */\n    summary: string;\n    /** Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order. */\n    readonly tBodies: HTMLCollectionOf<HTMLTableSectionElement>;\n    /** Retrieves the tFoot object of the table. */\n    tFoot: HTMLTableSectionElement | null;\n    /** Retrieves the tHead object of the table. */\n    tHead: HTMLTableSectionElement | null;\n    /**\n     * Sets or retrieves the width of the object.\n     * @deprecated\n     */\n    width: string;\n    /** Creates an empty caption element in the table. */\n    createCaption(): HTMLTableCaptionElement;\n    /** Creates an empty tBody element in the table. */\n    createTBody(): HTMLTableSectionElement;\n    /** Creates an empty tFoot element in the table. */\n    createTFoot(): HTMLTableSectionElement;\n    /** Returns the tHead element object if successful, or null otherwise. */\n    createTHead(): HTMLTableSectionElement;\n    /** Deletes the caption element and its contents from the table. */\n    deleteCaption(): void;\n    /**\n     * Removes the specified row (tr) from the element and from the rows collection.\n     * @param index Number that specifies the zero-based position in the rows collection of the row to remove.\n     */\n    deleteRow(index: number): void;\n    /** Deletes the tFoot element and its contents from the table. */\n    deleteTFoot(): void;\n    /** Deletes the tHead element and its contents from the table. */\n    deleteTHead(): void;\n    /**\n     * Creates a new row (tr) in the table, and adds the row to the rows collection.\n     * @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.\n     */\n    insertRow(index?: number): HTMLTableRowElement;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableElement: {\n    prototype: HTMLTableElement;\n    new(): HTMLTableElement;\n};\n\n/** @deprecated prefer HTMLTableCellElement */\ninterface HTMLTableHeaderCellElement extends HTMLTableCellElement {\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of rows in an HTML table. */\ninterface HTMLTableRowElement extends HTMLElement {\n    /**\n     * Sets or retrieves how the object is aligned with adjacent text.\n     * @deprecated\n     */\n    align: string;\n    /** @deprecated */\n    bgColor: string;\n    /** Retrieves a collection of all cells in the table row. */\n    readonly cells: HTMLCollectionOf<HTMLTableCellElement>;\n    /** @deprecated */\n    ch: string;\n    /** @deprecated */\n    chOff: string;\n    /** Retrieves the position of the object in the rows collection for the table. */\n    readonly rowIndex: number;\n    /** Retrieves the position of the object in the collection. */\n    readonly sectionRowIndex: number;\n    /** @deprecated */\n    vAlign: string;\n    /**\n     * Removes the specified cell from the table row, as well as from the cells collection.\n     * @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.\n     */\n    deleteCell(index: number): void;\n    /**\n     * Creates a new cell in the table row, and adds the cell to the cells collection.\n     * @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.\n     */\n    insertCell(index?: number): HTMLTableCellElement;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableRowElement: {\n    prototype: HTMLTableRowElement;\n    new(): HTMLTableRowElement;\n};\n\n/** Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of sections, that is headers, footers and bodies, in an HTML table. */\ninterface HTMLTableSectionElement extends HTMLElement {\n    /**\n     * Sets or retrieves a value that indicates the table alignment.\n     * @deprecated\n     */\n    align: string;\n    /** @deprecated */\n    ch: string;\n    /** @deprecated */\n    chOff: string;\n    /** Sets or retrieves the number of horizontal rows contained in the object. */\n    readonly rows: HTMLCollectionOf<HTMLTableRowElement>;\n    /** @deprecated */\n    vAlign: string;\n    /**\n     * Removes the specified row (tr) from the element and from the rows collection.\n     * @param index Number that specifies the zero-based position in the rows collection of the row to remove.\n     */\n    deleteRow(index: number): void;\n    /**\n     * Creates a new row (tr) in the table, and adds the row to the rows collection.\n     * @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.\n     */\n    insertRow(index?: number): HTMLTableRowElement;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableSectionElement: {\n    prototype: HTMLTableSectionElement;\n    new(): HTMLTableSectionElement;\n};\n\n/** Enables access to the contents of an HTML <template> element. */\ninterface HTMLTemplateElement extends HTMLElement {\n    /** Returns the template contents (a DocumentFragment). */\n    readonly content: DocumentFragment;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTemplateElement: {\n    prototype: HTMLTemplateElement;\n    new(): HTMLTemplateElement;\n};\n\n/** Provides special properties and methods for manipulating the layout and presentation of <textarea> elements. */\ninterface HTMLTextAreaElement extends HTMLElement {\n    autocomplete: string;\n    /** Sets or retrieves the width of the object. */\n    cols: number;\n    /** Sets or retrieves the initial contents of the object. */\n    defaultValue: string;\n    dirName: string;\n    disabled: boolean;\n    /** Retrieves a reference to the form that the object is embedded in. */\n    readonly form: HTMLFormElement | null;\n    readonly labels: NodeListOf<HTMLLabelElement>;\n    /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */\n    maxLength: number;\n    minLength: number;\n    /** Sets or retrieves the name of the object. */\n    name: string;\n    /** 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. */\n    placeholder: string;\n    /** Sets or retrieves the value indicated whether the content of the object is read-only. */\n    readOnly: boolean;\n    /** When present, marks an element that can't be submitted without a value. */\n    required: boolean;\n    /** Sets or retrieves the number of horizontal rows contained in the object. */\n    rows: number;\n    selectionDirection: \"forward\" | \"backward\" | \"none\";\n    /** Gets or sets the end position or offset of a text selection. */\n    selectionEnd: number;\n    /** Gets or sets the starting position or offset of a text selection. */\n    selectionStart: number;\n    readonly textLength: number;\n    /** Retrieves the type of control. */\n    readonly type: string;\n    /** 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. */\n    readonly validationMessage: string;\n    /** Returns a  ValidityState object that represents the validity states of an element. */\n    readonly validity: ValidityState;\n    /** Retrieves or sets the text in the entry field of the textArea element. */\n    value: string;\n    /** Returns whether an element will successfully validate based on forms validation rules and constraints. */\n    readonly willValidate: boolean;\n    /** Sets or retrieves how to handle wordwrapping in the object. */\n    wrap: string;\n    /** Returns whether a form will validate when it is submitted, without having to submit it. */\n    checkValidity(): boolean;\n    reportValidity(): boolean;\n    /** Highlights the input area of a form element. */\n    select(): void;\n    /**\n     * Sets a custom error message that is displayed when a form is submitted.\n     * @param error Sets a custom error message that is displayed when a form is submitted.\n     */\n    setCustomValidity(error: string): void;\n    setRangeText(replacement: string): void;\n    setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;\n    /**\n     * Sets the start and end positions of a selection in a text field.\n     * @param start The offset into the text field for the start of the selection.\n     * @param end The offset into the text field for the end of the selection.\n     * @param direction The direction in which the selection is performed.\n     */\n    setSelectionRange(start: number | null, end: number | null, direction?: \"forward\" | \"backward\" | \"none\"): void;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTextAreaElement: {\n    prototype: HTMLTextAreaElement;\n    new(): HTMLTextAreaElement;\n};\n\n/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <time> elements. */\ninterface HTMLTimeElement extends HTMLElement {\n    dateTime: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTimeElement: {\n    prototype: HTMLTimeElement;\n    new(): HTMLTimeElement;\n};\n\n/** Contains the title for a document. This element inherits all of the properties and methods of the HTMLElement interface. */\ninterface HTMLTitleElement extends HTMLElement {\n    /** Retrieves or sets the text of the object as a string. */\n    text: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTitleElement: {\n    prototype: HTMLTitleElement;\n    new(): HTMLTitleElement;\n};\n\n/** The HTMLTrackElement */\ninterface HTMLTrackElement extends HTMLElement {\n    default: boolean;\n    kind: string;\n    label: string;\n    readonly readyState: number;\n    src: string;\n    srclang: string;\n    /** Returns the TextTrack object corresponding to the text track of the track element. */\n    readonly track: TextTrack;\n    readonly NONE: 0;\n    readonly LOADING: 1;\n    readonly LOADED: 2;\n    readonly ERROR: 3;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTrackElement: {\n    prototype: HTMLTrackElement;\n    new(): HTMLTrackElement;\n    readonly NONE: 0;\n    readonly LOADING: 1;\n    readonly LOADED: 2;\n    readonly ERROR: 3;\n};\n\n/** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list elements. */\ninterface HTMLUListElement extends HTMLElement {\n    /** @deprecated */\n    compact: boolean;\n    /** @deprecated */\n    type: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLUListElement: {\n    prototype: HTMLUListElement;\n    new(): HTMLUListElement;\n};\n\n/** An invalid HTML element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */\ninterface HTMLUnknownElement extends HTMLElement {\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLUnknownElement: {\n    prototype: HTMLUnknownElement;\n    new(): HTMLUnknownElement;\n};\n\ninterface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {\n    \"enterpictureinpicture\": Event;\n    \"leavepictureinpicture\": Event;\n}\n\n/** Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement. */\ninterface HTMLVideoElement extends HTMLMediaElement {\n    disablePictureInPicture: boolean;\n    /** Gets or sets the height of the video element. */\n    height: number;\n    onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;\n    onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;\n    /** Gets or sets the playsinline of the video element. for example, On iPhone, video elements will now be allowed to play inline, and will not automatically enter fullscreen mode when playback begins. */\n    playsInline: boolean;\n    /** 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. */\n    poster: string;\n    /** Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known. */\n    readonly videoHeight: number;\n    /** Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known. */\n    readonly videoWidth: number;\n    /** Gets or sets the width of the video element. */\n    width: number;\n    cancelVideoFrameCallback(handle: number): void;\n    getVideoPlaybackQuality(): VideoPlaybackQuality;\n    requestPictureInPicture(): Promise<PictureInPictureWindow>;\n    requestVideoFrameCallback(callback: VideoFrameRequestCallback): number;\n    addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLVideoElement: {\n    prototype: HTMLVideoElement;\n    new(): HTMLVideoElement;\n};\n\n/** Events that fire when the fragment identifier of the URL has changed. */\ninterface HashChangeEvent extends Event {\n    /** Returns the URL of the session history entry that is now current. */\n    readonly newURL: string;\n    /** Returns the URL of the session history entry that was previously current. */\n    readonly oldURL: string;\n}\n\ndeclare var HashChangeEvent: {\n    prototype: HashChangeEvent;\n    new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;\n};\n\n/** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists\\xA0of zero or more name and value pairs. \\xA0You can add to this using methods like append() (see Examples.)\\xA0In all methods of this interface, header names are matched by case-insensitive byte sequence. */\ninterface Headers {\n    append(name: string, value: string): void;\n    delete(name: string): void;\n    get(name: string): string | null;\n    has(name: string): boolean;\n    set(name: string, value: string): void;\n    forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;\n}\n\ndeclare var Headers: {\n    prototype: Headers;\n    new(init?: HeadersInit): Headers;\n};\n\n/** Allows\\xA0manipulation of\\xA0the browser session history, that is the pages visited in the tab or frame that the current page is loaded in. */\ninterface History {\n    readonly length: number;\n    scrollRestoration: ScrollRestoration;\n    readonly state: any;\n    back(): void;\n    forward(): void;\n    go(delta?: number): void;\n    pushState(data: any, unused: string, url?: string | URL | null): void;\n    replaceState(data: any, unused: string, url?: string | URL | null): void;\n}\n\ndeclare var History: {\n    prototype: History;\n    new(): History;\n};\n\n/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */\ninterface IDBCursor {\n    /** Returns the direction (\"next\", \"nextunique\", \"prev\" or \"prevunique\") of the cursor. */\n    readonly direction: IDBCursorDirection;\n    /** Returns the key of the cursor. Throws a \"InvalidStateError\" DOMException if the cursor is advancing or is finished. */\n    readonly key: IDBValidKey;\n    /** Returns the effective key of the cursor. Throws a \"InvalidStateError\" DOMException if the cursor is advancing or is finished. */\n    readonly primaryKey: IDBValidKey;\n    readonly request: IDBRequest;\n    /** Returns the IDBObjectStore or IDBIndex the cursor was opened from. */\n    readonly source: IDBObjectStore | IDBIndex;\n    /** Advances the cursor through the next count records in range. */\n    advance(count: number): void;\n    /** Advances the cursor to the next record in range. */\n    continue(key?: IDBValidKey): void;\n    /** Advances the cursor to the next record in range matching or after key and primaryKey. Throws an \"InvalidAccessError\" DOMException if the source is not an index. */\n    continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;\n    /**\n     * Delete the record pointed at by the cursor with a new value.\n     *\n     * If successful, request's result will be undefined.\n     */\n    delete(): IDBRequest<undefined>;\n    /**\n     * Updated the record pointed at by the cursor with a new value.\n     *\n     * Throws a \"DataError\" DOMException if the effective object store uses in-line keys and the key would have changed.\n     *\n     * If successful, request's result will be the record's key.\n     */\n    update(value: any): IDBRequest<IDBValidKey>;\n}\n\ndeclare var IDBCursor: {\n    prototype: IDBCursor;\n    new(): IDBCursor;\n};\n\n/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property. */\ninterface IDBCursorWithValue extends IDBCursor {\n    /** Returns the cursor's current value. */\n    readonly value: any;\n}\n\ndeclare var IDBCursorWithValue: {\n    prototype: IDBCursorWithValue;\n    new(): IDBCursorWithValue;\n};\n\ninterface IDBDatabaseEventMap {\n    \"abort\": Event;\n    \"close\": Event;\n    \"error\": Event;\n    \"versionchange\": IDBVersionChangeEvent;\n}\n\n/** This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database. */\ninterface IDBDatabase extends EventTarget {\n    /** Returns the name of the database. */\n    readonly name: string;\n    /** Returns a list of the names of object stores in the database. */\n    readonly objectStoreNames: DOMStringList;\n    onabort: ((this: IDBDatabase, ev: Event) => any) | null;\n    onclose: ((this: IDBDatabase, ev: Event) => any) | null;\n    onerror: ((this: IDBDatabase, ev: Event) => any) | null;\n    onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;\n    /** Returns the version of the database. */\n    readonly version: number;\n    /** Closes the connection once all running transactions have finished. */\n    close(): void;\n    /**\n     * Creates a new object store with the given name and options and returns a new IDBObjectStore.\n     *\n     * Throws a \"InvalidStateError\" DOMException if not called within an upgrade transaction.\n     */\n    createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;\n    /**\n     * Deletes the object store with the given name.\n     *\n     * Throws a \"InvalidStateError\" DOMException if not called within an upgrade transaction.\n     */\n    deleteObjectStore(name: string): void;\n    /** Returns a new transaction with the given mode (\"readonly\" or \"readwrite\") and scope which can be a single object store name or an array of names. */\n    transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;\n    addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBDatabase: {\n    prototype: IDBDatabase;\n    new(): IDBDatabase;\n};\n\n/** In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.) */\ninterface IDBFactory {\n    /**\n     * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.\n     *\n     * Throws a \"DataError\" DOMException if either input is not a valid key.\n     */\n    cmp(first: any, second: any): number;\n    databases(): Promise<IDBDatabaseInfo[]>;\n    /** Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null. */\n    deleteDatabase(name: string): IDBOpenDBRequest;\n    /** Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection. */\n    open(name: string, version?: number): IDBOpenDBRequest;\n}\n\ndeclare var IDBFactory: {\n    prototype: IDBFactory;\n    new(): IDBFactory;\n};\n\n/** IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data. */\ninterface IDBIndex {\n    readonly keyPath: string | string[];\n    readonly multiEntry: boolean;\n    /** Returns the name of the index. */\n    name: string;\n    /** Returns the IDBObjectStore the index belongs to. */\n    readonly objectStore: IDBObjectStore;\n    readonly unique: boolean;\n    /**\n     * Retrieves the number of records matching the given key or key range in query.\n     *\n     * If successful, request's result will be the count.\n     */\n    count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n    /**\n     * Retrieves the value of the first record matching the given key or key range in query.\n     *\n     * If successful, request's result will be the value, or undefined if there was no matching record.\n     */\n    get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n    /**\n     * Retrieves the values of the records matching the given key or key range in query (up to count if given).\n     *\n     * If successful, request's result will be an Array of the values.\n     */\n    getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n    /**\n     * Retrieves the keys of records matching the given key or key range in query (up to count if given).\n     *\n     * If successful, request's result will be an Array of the keys.\n     */\n    getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n    /**\n     * Retrieves the key of the first record matching the given key or key range in query.\n     *\n     * If successful, request's result will be the key, or undefined if there was no matching record.\n     */\n    getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n    /**\n     * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.\n     *\n     * If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records.\n     */\n    openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;\n    /**\n     * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.\n     *\n     * If successful, request's result will be an IDBCursor, or null if there were no matching records.\n     */\n    openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n}\n\ndeclare var IDBIndex: {\n    prototype: IDBIndex;\n    new(): IDBIndex;\n};\n\n/** A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs: */\ninterface IDBKeyRange {\n    /** Returns lower bound, or undefined if none. */\n    readonly lower: any;\n    /** Returns true if the lower open flag is set, and false otherwise. */\n    readonly lowerOpen: boolean;\n    /** Returns upper bound, or undefined if none. */\n    readonly upper: any;\n    /** Returns true if the upper open flag is set, and false otherwise. */\n    readonly upperOpen: boolean;\n    /** Returns true if key is included in the range, and false otherwise. */\n    includes(key: any): boolean;\n}\n\ndeclare var IDBKeyRange: {\n    prototype: IDBKeyRange;\n    new(): IDBKeyRange;\n    /** Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range. */\n    bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;\n    /** Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. */\n    lowerBound(lower: any, open?: boolean): IDBKeyRange;\n    /** Returns a new IDBKeyRange spanning only key. */\n    only(value: any): IDBKeyRange;\n    /** Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. */\n    upperBound(upper: any, open?: boolean): IDBKeyRange;\n};\n\n/** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex\\xA0inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our\\xA0To-do Notifications\\xA0app (view example live.) */\ninterface IDBObjectStore {\n    /** Returns true if the store has a key generator, and false otherwise. */\n    readonly autoIncrement: boolean;\n    /** Returns a list of the names of indexes in the store. */\n    readonly indexNames: DOMStringList;\n    /** Returns the key path of the store, or null if none. */\n    readonly keyPath: string | string[];\n    /** Returns the name of the store. */\n    name: string;\n    /** Returns the associated transaction. */\n    readonly transaction: IDBTransaction;\n    /**\n     * Adds or updates a record in store with the given value and key.\n     *\n     * If the store uses in-line keys and key is specified a \"DataError\" DOMException will be thrown.\n     *\n     * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a \"ConstraintError\" DOMException.\n     *\n     * If successful, request's result will be the record's key.\n     */\n    add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;\n    /**\n     * Deletes all records in store.\n     *\n     * If successful, request's result will be undefined.\n     */\n    clear(): IDBRequest<undefined>;\n    /**\n     * Retrieves the number of records matching the given key or key range in query.\n     *\n     * If successful, request's result will be the count.\n     */\n    count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n    /**\n     * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a \"ConstraintError\" DOMException.\n     *\n     * Throws an \"InvalidStateError\" DOMException if not called within an upgrade transaction.\n     */\n    createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;\n    /**\n     * Deletes records in store with the given key or in the given key range in query.\n     *\n     * If successful, request's result will be undefined.\n     */\n    delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;\n    /**\n     * Deletes the index in store with the given name.\n     *\n     * Throws an \"InvalidStateError\" DOMException if not called within an upgrade transaction.\n     */\n    deleteIndex(name: string): void;\n    /**\n     * Retrieves the value of the first record matching the given key or key range in query.\n     *\n     * If successful, request's result will be the value, or undefined if there was no matching record.\n     */\n    get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n    /**\n     * Retrieves the values of the records matching the given key or key range in query (up to count if given).\n     *\n     * If successful, request's result will be an Array of the values.\n     */\n    getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n    /**\n     * Retrieves the keys of records matching the given key or key range in query (up to count if given).\n     *\n     * If successful, request's result will be an Array of the keys.\n     */\n    getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n    /**\n     * Retrieves the key of the first record matching the given key or key range in query.\n     *\n     * If successful, request's result will be the key, or undefined if there was no matching record.\n     */\n    getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n    index(name: string): IDBIndex;\n    /**\n     * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.\n     *\n     * If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.\n     */\n    openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;\n    /**\n     * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.\n     *\n     * If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.\n     */\n    openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n    /**\n     * Adds or updates a record in store with the given value and key.\n     *\n     * If the store uses in-line keys and key is specified a \"DataError\" DOMException will be thrown.\n     *\n     * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a \"ConstraintError\" DOMException.\n     *\n     * If successful, request's result will be the record's key.\n     */\n    put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;\n}\n\ndeclare var IDBObjectStore: {\n    prototype: IDBObjectStore;\n    new(): IDBObjectStore;\n};\n\ninterface IDBOpenDBRequestEventMap extends IDBRequestEventMap {\n    \"blocked\": IDBVersionChangeEvent;\n    \"upgradeneeded\": IDBVersionChangeEvent;\n}\n\n/** Also inherits methods from its parents IDBRequest and EventTarget. */\ninterface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {\n    onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;\n    onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;\n    addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBOpenDBRequest: {\n    prototype: IDBOpenDBRequest;\n    new(): IDBOpenDBRequest;\n};\n\ninterface IDBRequestEventMap {\n    \"error\": Event;\n    \"success\": Event;\n}\n\n/** The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance. */\ninterface IDBRequest<T = any> extends EventTarget {\n    /** When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a \"InvalidStateError\" DOMException if the request is still pending. */\n    readonly error: DOMException | null;\n    onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;\n    onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;\n    /** Returns \"pending\" until a request is complete, then returns \"done\". */\n    readonly readyState: IDBRequestReadyState;\n    /** When a request is completed, returns the result, or undefined if the request failed. Throws a \"InvalidStateError\" DOMException if the request is still pending. */\n    readonly result: T;\n    /** Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. */\n    readonly source: IDBObjectStore | IDBIndex | IDBCursor;\n    /** Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise. */\n    readonly transaction: IDBTransaction | null;\n    addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBRequest: {\n    prototype: IDBRequest;\n    new(): IDBRequest;\n};\n\ninterface IDBTransactionEventMap {\n    \"abort\": Event;\n    \"complete\": Event;\n    \"error\": Event;\n}\n\ninterface IDBTransaction extends EventTarget {\n    /** Returns the transaction's connection. */\n    readonly db: IDBDatabase;\n    readonly durability: IDBTransactionDurability;\n    /** If the transaction was aborted, returns the error (a DOMException) providing the reason. */\n    readonly error: DOMException | null;\n    /** Returns the mode the transaction was created with (\"readonly\" or \"readwrite\"), or \"versionchange\" for an upgrade transaction. */\n    readonly mode: IDBTransactionMode;\n    /** Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database. */\n    readonly objectStoreNames: DOMStringList;\n    onabort: ((this: IDBTransaction, ev: Event) => any) | null;\n    oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;\n    onerror: ((this: IDBTransaction, ev: Event) => any) | null;\n    /** Aborts the transaction. All pending requests will fail with a \"AbortError\" DOMException and all changes made to the database will be reverted. */\n    abort(): void;\n    commit(): void;\n    /** Returns an IDBObjectStore in the transaction's scope. */\n    objectStore(name: string): IDBObjectStore;\n    addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBTransaction: {\n    prototype: IDBTransaction;\n    new(): IDBTransaction;\n};\n\n/** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */\ninterface IDBVersionChangeEvent extends Event {\n    readonly newVersion: number | null;\n    readonly oldVersion: number;\n}\n\ndeclare var IDBVersionChangeEvent: {\n    prototype: IDBVersionChangeEvent;\n    new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;\n};\n\n/** The\\xA0IIRFilterNode\\xA0interface of the\\xA0Web Audio API\\xA0is a AudioNode processor which implements a general infinite impulse response (IIR)\\xA0 filter; this type of filter can be used to implement tone control devices and graphic equalizers as well. It lets the parameters of the filter response be specified, so that it can be tuned as needed. */\ninterface IIRFilterNode extends AudioNode {\n    getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;\n}\n\ndeclare var IIRFilterNode: {\n    prototype: IIRFilterNode;\n    new(context: BaseAudioContext, options: IIRFilterOptions): IIRFilterNode;\n};\n\ninterface IdleDeadline {\n    readonly didTimeout: boolean;\n    timeRemaining(): DOMHighResTimeStamp;\n}\n\ndeclare var IdleDeadline: {\n    prototype: IdleDeadline;\n    new(): IdleDeadline;\n};\n\ninterface ImageBitmap {\n    /** Returns the intrinsic height of the image, in CSS pixels. */\n    readonly height: number;\n    /** Returns the intrinsic width of the image, in CSS pixels. */\n    readonly width: number;\n    /** Releases imageBitmap's underlying bitmap data. */\n    close(): void;\n}\n\ndeclare var ImageBitmap: {\n    prototype: ImageBitmap;\n    new(): ImageBitmap;\n};\n\ninterface ImageBitmapRenderingContext {\n    /** Returns the canvas element that the context is bound to. */\n    readonly canvas: HTMLCanvasElement | OffscreenCanvas;\n    /** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. */\n    transferFromImageBitmap(bitmap: ImageBitmap | null): void;\n}\n\ndeclare var ImageBitmapRenderingContext: {\n    prototype: ImageBitmapRenderingContext;\n    new(): ImageBitmapRenderingContext;\n};\n\n/** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */\ninterface ImageData {\n    readonly colorSpace: PredefinedColorSpace;\n    /** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */\n    readonly data: Uint8ClampedArray;\n    /** Returns the actual dimensions of the data in the ImageData object, in pixels. */\n    readonly height: number;\n    /** Returns the actual dimensions of the data in the ImageData object, in pixels. */\n    readonly width: number;\n}\n\ndeclare var ImageData: {\n    prototype: ImageData;\n    new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n    new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;\n};\n\ninterface InnerHTML {\n    innerHTML: string;\n}\n\n/** Available only in secure contexts. */\ninterface InputDeviceInfo extends MediaDeviceInfo {\n}\n\ndeclare var InputDeviceInfo: {\n    prototype: InputDeviceInfo;\n    new(): InputDeviceInfo;\n};\n\ninterface InputEvent extends UIEvent {\n    readonly data: string | null;\n    readonly dataTransfer: DataTransfer | null;\n    readonly inputType: string;\n    readonly isComposing: boolean;\n    getTargetRanges(): StaticRange[];\n}\n\ndeclare var InputEvent: {\n    prototype: InputEvent;\n    new(type: string, eventInitDict?: InputEventInit): InputEvent;\n};\n\n/** provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document's viewport. */\ninterface IntersectionObserver {\n    readonly root: Element | Document | null;\n    readonly rootMargin: string;\n    readonly thresholds: ReadonlyArray<number>;\n    disconnect(): void;\n    observe(target: Element): void;\n    takeRecords(): IntersectionObserverEntry[];\n    unobserve(target: Element): void;\n}\n\ndeclare var IntersectionObserver: {\n    prototype: IntersectionObserver;\n    new(callback: IntersectionObserverCallback, options?: IntersectionObserverInit): IntersectionObserver;\n};\n\n/** This Intersection Observer API interface describes the intersection between the target element and its root container at a specific moment of transition. */\ninterface IntersectionObserverEntry {\n    readonly boundingClientRect: DOMRectReadOnly;\n    readonly intersectionRatio: number;\n    readonly intersectionRect: DOMRectReadOnly;\n    readonly isIntersecting: boolean;\n    readonly rootBounds: DOMRectReadOnly | null;\n    readonly target: Element;\n    readonly time: DOMHighResTimeStamp;\n}\n\ndeclare var IntersectionObserverEntry: {\n    prototype: IntersectionObserverEntry;\n    new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry;\n};\n\ninterface KHR_parallel_shader_compile {\n    readonly COMPLETION_STATUS_KHR: 0x91B1;\n}\n\n/** KeyboardEvent objects describe a user interaction with the keyboard; each event describes a single interaction between the user and a key (or combination of a key with modifier keys) on the keyboard. */\ninterface KeyboardEvent extends UIEvent {\n    readonly altKey: boolean;\n    /** @deprecated */\n    readonly charCode: number;\n    readonly code: string;\n    readonly ctrlKey: boolean;\n    readonly isComposing: boolean;\n    readonly key: string;\n    /** @deprecated */\n    readonly keyCode: number;\n    readonly location: number;\n    readonly metaKey: boolean;\n    readonly repeat: boolean;\n    readonly shiftKey: boolean;\n    getModifierState(keyArg: string): boolean;\n    /** @deprecated */\n    initKeyboardEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, keyArg?: string, locationArg?: number, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): void;\n    readonly DOM_KEY_LOCATION_STANDARD: 0x00;\n    readonly DOM_KEY_LOCATION_LEFT: 0x01;\n    readonly DOM_KEY_LOCATION_RIGHT: 0x02;\n    readonly DOM_KEY_LOCATION_NUMPAD: 0x03;\n}\n\ndeclare var KeyboardEvent: {\n    prototype: KeyboardEvent;\n    new(type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;\n    readonly DOM_KEY_LOCATION_STANDARD: 0x00;\n    readonly DOM_KEY_LOCATION_LEFT: 0x01;\n    readonly DOM_KEY_LOCATION_RIGHT: 0x02;\n    readonly DOM_KEY_LOCATION_NUMPAD: 0x03;\n};\n\ninterface KeyframeEffect extends AnimationEffect {\n    composite: CompositeOperation;\n    iterationComposite: IterationCompositeOperation;\n    pseudoElement: string | null;\n    target: Element | null;\n    getKeyframes(): ComputedKeyframe[];\n    setKeyframes(keyframes: Keyframe[] | PropertyIndexedKeyframes | null): void;\n}\n\ndeclare var KeyframeEffect: {\n    prototype: KeyframeEffect;\n    new(target: Element | null, keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeEffectOptions): KeyframeEffect;\n    new(source: KeyframeEffect): KeyframeEffect;\n};\n\ninterface LinkStyle {\n    readonly sheet: CSSStyleSheet | null;\n}\n\n/** The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have such a linked Location, accessible via Document.location and Window.location respectively. */\ninterface Location {\n    /** Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing context to the top-level browsing context. */\n    readonly ancestorOrigins: DOMStringList;\n    /**\n     * Returns the Location object's URL's fragment (includes leading \"#\" if non-empty).\n     *\n     * Can be set, to navigate to the same URL with a changed fragment (ignores leading \"#\").\n     */\n    hash: string;\n    /**\n     * Returns the Location object's URL's host and port (if different from the default port for the scheme).\n     *\n     * Can be set, to navigate to the same URL with a changed host and port.\n     */\n    host: string;\n    /**\n     * Returns the Location object's URL's host.\n     *\n     * Can be set, to navigate to the same URL with a changed host.\n     */\n    hostname: string;\n    /**\n     * Returns the Location object's URL.\n     *\n     * Can be set, to navigate to the given URL.\n     */\n    href: string;\n    toString(): string;\n    /** Returns the Location object's URL's origin. */\n    readonly origin: string;\n    /**\n     * Returns the Location object's URL's path.\n     *\n     * Can be set, to navigate to the same URL with a changed path.\n     */\n    pathname: string;\n    /**\n     * Returns the Location object's URL's port.\n     *\n     * Can be set, to navigate to the same URL with a changed port.\n     */\n    port: string;\n    /**\n     * Returns the Location object's URL's scheme.\n     *\n     * Can be set, to navigate to the same URL with a changed scheme.\n     */\n    protocol: string;\n    /**\n     * Returns the Location object's URL's query (includes leading \"?\" if non-empty).\n     *\n     * Can be set, to navigate to the same URL with a changed query (ignores leading \"?\").\n     */\n    search: string;\n    /** Navigates to the given URL. */\n    assign(url: string | URL): void;\n    /** Reloads the current page. */\n    reload(): void;\n    /** Removes the current page from the session history and navigates to the given URL. */\n    replace(url: string | URL): void;\n}\n\ndeclare var Location: {\n    prototype: Location;\n    new(): Location;\n};\n\n/** Available only in secure contexts. */\ninterface Lock {\n    readonly mode: LockMode;\n    readonly name: string;\n}\n\ndeclare var Lock: {\n    prototype: Lock;\n    new(): Lock;\n};\n\n/** Available only in secure contexts. */\ninterface LockManager {\n    query(): Promise<LockManagerSnapshot>;\n    request(name: string, callback: LockGrantedCallback): Promise<any>;\n    request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;\n}\n\ndeclare var LockManager: {\n    prototype: LockManager;\n    new(): LockManager;\n};\n\ninterface MIDIAccessEventMap {\n    \"statechange\": Event;\n}\n\n/** Available only in secure contexts. */\ninterface MIDIAccess extends EventTarget {\n    readonly inputs: MIDIInputMap;\n    onstatechange: ((this: MIDIAccess, ev: Event) => any) | null;\n    readonly outputs: MIDIOutputMap;\n    readonly sysexEnabled: boolean;\n    addEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MIDIAccess: {\n    prototype: MIDIAccess;\n    new(): MIDIAccess;\n};\n\n/** Available only in secure contexts. */\ninterface MIDIConnectionEvent extends Event {\n    readonly port: MIDIPort;\n}\n\ndeclare var MIDIConnectionEvent: {\n    prototype: MIDIConnectionEvent;\n    new(type: string, eventInitDict?: MIDIConnectionEventInit): MIDIConnectionEvent;\n};\n\ninterface MIDIInputEventMap extends MIDIPortEventMap {\n    \"midimessage\": Event;\n}\n\n/** Available only in secure contexts. */\ninterface MIDIInput extends MIDIPort {\n    onmidimessage: ((this: MIDIInput, ev: Event) => any) | null;\n    addEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MIDIInput: {\n    prototype: MIDIInput;\n    new(): MIDIInput;\n};\n\n/** Available only in secure contexts. */\ninterface MIDIInputMap {\n    forEach(callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void, thisArg?: any): void;\n}\n\ndeclare var MIDIInputMap: {\n    prototype: MIDIInputMap;\n    new(): MIDIInputMap;\n};\n\n/** Available only in secure contexts. */\ninterface MIDIMessageEvent extends Event {\n    readonly data: Uint8Array;\n}\n\ndeclare var MIDIMessageEvent: {\n    prototype: MIDIMessageEvent;\n    new(type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent;\n};\n\n/** Available only in secure contexts. */\ninterface MIDIOutput extends MIDIPort {\n    send(data: number[], timestamp?: DOMHighResTimeStamp): void;\n    addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MIDIOutput: {\n    prototype: MIDIOutput;\n    new(): MIDIOutput;\n};\n\n/** Available only in secure contexts. */\ninterface MIDIOutputMap {\n    forEach(callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void, thisArg?: any): void;\n}\n\ndeclare var MIDIOutputMap: {\n    prototype: MIDIOutputMap;\n    new(): MIDIOutputMap;\n};\n\ninterface MIDIPortEventMap {\n    \"statechange\": Event;\n}\n\n/** Available only in secure contexts. */\ninterface MIDIPort extends EventTarget {\n    readonly connection: MIDIPortConnectionState;\n    readonly id: string;\n    readonly manufacturer: string | null;\n    readonly name: string | null;\n    onstatechange: ((this: MIDIPort, ev: Event) => any) | null;\n    readonly state: MIDIPortDeviceState;\n    readonly type: MIDIPortType;\n    readonly version: string | null;\n    close(): Promise<MIDIPort>;\n    open(): Promise<MIDIPort>;\n    addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MIDIPort: {\n    prototype: MIDIPort;\n    new(): MIDIPort;\n};\n\ninterface MathMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {\n}\n\ninterface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {\n    addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MathMLElement: {\n    prototype: MathMLElement;\n    new(): MathMLElement;\n};\n\ninterface MediaCapabilities {\n    decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;\n    encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;\n}\n\ndeclare var MediaCapabilities: {\n    prototype: MediaCapabilities;\n    new(): MediaCapabilities;\n};\n\n/**\n * The MediaDevicesInfo interface contains information that describes a single media input or output device.\n * Available only in secure contexts.\n */\ninterface MediaDeviceInfo {\n    readonly deviceId: string;\n    readonly groupId: string;\n    readonly kind: MediaDeviceKind;\n    readonly label: string;\n    toJSON(): any;\n}\n\ndeclare var MediaDeviceInfo: {\n    prototype: MediaDeviceInfo;\n    new(): MediaDeviceInfo;\n};\n\ninterface MediaDevicesEventMap {\n    \"devicechange\": Event;\n}\n\n/**\n * Provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media data.\n * Available only in secure contexts.\n */\ninterface MediaDevices extends EventTarget {\n    ondevicechange: ((this: MediaDevices, ev: Event) => any) | null;\n    enumerateDevices(): Promise<MediaDeviceInfo[]>;\n    getDisplayMedia(options?: DisplayMediaStreamOptions): Promise<MediaStream>;\n    getSupportedConstraints(): MediaTrackSupportedConstraints;\n    getUserMedia(constraints?: MediaStreamConstraints): Promise<MediaStream>;\n    addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaDevices: {\n    prototype: MediaDevices;\n    new(): MediaDevices;\n};\n\n/** A MediaElementSourceNode has no inputs and exactly one output, and is created using the AudioContext.createMediaElementSource method. The amount of channels in the output equals the number of channels of the audio referenced by the HTMLMediaElement used in the creation of the node, or is 1 if the HTMLMediaElement has no audio. */\ninterface MediaElementAudioSourceNode extends AudioNode {\n    readonly mediaElement: HTMLMediaElement;\n}\n\ndeclare var MediaElementAudioSourceNode: {\n    prototype: MediaElementAudioSourceNode;\n    new(context: AudioContext, options: MediaElementAudioSourceOptions): MediaElementAudioSourceNode;\n};\n\ninterface MediaEncryptedEvent extends Event {\n    readonly initData: ArrayBuffer | null;\n    readonly initDataType: string;\n}\n\ndeclare var MediaEncryptedEvent: {\n    prototype: MediaEncryptedEvent;\n    new(type: string, eventInitDict?: MediaEncryptedEventInit): MediaEncryptedEvent;\n};\n\n/** An error which occurred while handling media in an HTML media element based on HTMLMediaElement, such as <audio> or <video>. */\ninterface MediaError {\n    readonly code: number;\n    readonly message: string;\n    readonly MEDIA_ERR_ABORTED: 1;\n    readonly MEDIA_ERR_NETWORK: 2;\n    readonly MEDIA_ERR_DECODE: 3;\n    readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4;\n}\n\ndeclare var MediaError: {\n    prototype: MediaError;\n    new(): MediaError;\n    readonly MEDIA_ERR_ABORTED: 1;\n    readonly MEDIA_ERR_NETWORK: 2;\n    readonly MEDIA_ERR_DECODE: 3;\n    readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4;\n};\n\n/**\n * This EncryptedMediaExtensions API interface contains the content and related data when the content decryption module generates a message for the session.\n * Available only in secure contexts.\n */\ninterface MediaKeyMessageEvent extends Event {\n    readonly message: ArrayBuffer;\n    readonly messageType: MediaKeyMessageType;\n}\n\ndeclare var MediaKeyMessageEvent: {\n    prototype: MediaKeyMessageEvent;\n    new(type: string, eventInitDict: MediaKeyMessageEventInit): MediaKeyMessageEvent;\n};\n\ninterface MediaKeySessionEventMap {\n    \"keystatuseschange\": Event;\n    \"message\": MediaKeyMessageEvent;\n}\n\n/**\n * This EncryptedMediaExtensions API interface represents a\\xA0context for message exchange with a content decryption module (CDM).\n * Available only in secure contexts.\n */\ninterface MediaKeySession extends EventTarget {\n    readonly closed: Promise<MediaKeySessionClosedReason>;\n    readonly expiration: number;\n    readonly keyStatuses: MediaKeyStatusMap;\n    onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null;\n    onmessage: ((this: MediaKeySession, ev: MediaKeyMessageEvent) => any) | null;\n    readonly sessionId: string;\n    close(): Promise<void>;\n    generateRequest(initDataType: string, initData: BufferSource): Promise<void>;\n    load(sessionId: string): Promise<boolean>;\n    remove(): Promise<void>;\n    update(response: BufferSource): Promise<void>;\n    addEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaKeySession: {\n    prototype: MediaKeySession;\n    new(): MediaKeySession;\n};\n\n/**\n * This EncryptedMediaExtensions API interface is a read-only map of media key statuses by key IDs.\n * Available only in secure contexts.\n */\ninterface MediaKeyStatusMap {\n    readonly size: number;\n    get(keyId: BufferSource): MediaKeyStatus | undefined;\n    has(keyId: BufferSource): boolean;\n    forEach(callbackfn: (value: MediaKeyStatus, key: BufferSource, parent: MediaKeyStatusMap) => void, thisArg?: any): void;\n}\n\ndeclare var MediaKeyStatusMap: {\n    prototype: MediaKeyStatusMap;\n    new(): MediaKeyStatusMap;\n};\n\n/**\n * This EncryptedMediaExtensions API interface provides access to a Key System for decryption and/or a content protection provider. You can request an instance of this object using the Navigator.requestMediaKeySystemAccess method.\n * Available only in secure contexts.\n */\ninterface MediaKeySystemAccess {\n    readonly keySystem: string;\n    createMediaKeys(): Promise<MediaKeys>;\n    getConfiguration(): MediaKeySystemConfiguration;\n}\n\ndeclare var MediaKeySystemAccess: {\n    prototype: MediaKeySystemAccess;\n    new(): MediaKeySystemAccess;\n};\n\n/**\n * This EncryptedMediaExtensions API interface the represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback.\n * Available only in secure contexts.\n */\ninterface MediaKeys {\n    createSession(sessionType?: MediaKeySessionType): MediaKeySession;\n    setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;\n}\n\ndeclare var MediaKeys: {\n    prototype: MediaKeys;\n    new(): MediaKeys;\n};\n\ninterface MediaList {\n    readonly length: number;\n    mediaText: string;\n    toString(): string;\n    appendMedium(medium: string): void;\n    deleteMedium(medium: string): void;\n    item(index: number): string | null;\n    [index: number]: string;\n}\n\ndeclare var MediaList: {\n    prototype: MediaList;\n    new(): MediaList;\n};\n\ninterface MediaMetadata {\n    album: string;\n    artist: string;\n    artwork: ReadonlyArray<MediaImage>;\n    title: string;\n}\n\ndeclare var MediaMetadata: {\n    prototype: MediaMetadata;\n    new(init?: MediaMetadataInit): MediaMetadata;\n};\n\ninterface MediaQueryListEventMap {\n    \"change\": MediaQueryListEvent;\n}\n\n/** Stores information on a media query applied to a document, and handles sending notifications to listeners when the media query state change (i.e. when the media query test starts or stops evaluating to true). */\ninterface MediaQueryList extends EventTarget {\n    readonly matches: boolean;\n    readonly media: string;\n    onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;\n    /** @deprecated */\n    addListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;\n    /** @deprecated */\n    removeListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;\n    addEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaQueryList: {\n    prototype: MediaQueryList;\n    new(): MediaQueryList;\n};\n\ninterface MediaQueryListEvent extends Event {\n    readonly matches: boolean;\n    readonly media: string;\n}\n\ndeclare var MediaQueryListEvent: {\n    prototype: MediaQueryListEvent;\n    new(type: string, eventInitDict?: MediaQueryListEventInit): MediaQueryListEvent;\n};\n\ninterface MediaRecorderEventMap {\n    \"dataavailable\": BlobEvent;\n    \"error\": Event;\n    \"pause\": Event;\n    \"resume\": Event;\n    \"start\": Event;\n    \"stop\": Event;\n}\n\ninterface MediaRecorder extends EventTarget {\n    readonly audioBitsPerSecond: number;\n    readonly mimeType: string;\n    ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;\n    onerror: ((this: MediaRecorder, ev: Event) => any) | null;\n    onpause: ((this: MediaRecorder, ev: Event) => any) | null;\n    onresume: ((this: MediaRecorder, ev: Event) => any) | null;\n    onstart: ((this: MediaRecorder, ev: Event) => any) | null;\n    onstop: ((this: MediaRecorder, ev: Event) => any) | null;\n    readonly state: RecordingState;\n    readonly stream: MediaStream;\n    readonly videoBitsPerSecond: number;\n    pause(): void;\n    requestData(): void;\n    resume(): void;\n    start(timeslice?: number): void;\n    stop(): void;\n    addEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaRecorder: {\n    prototype: MediaRecorder;\n    new(stream: MediaStream, options?: MediaRecorderOptions): MediaRecorder;\n    isTypeSupported(type: string): boolean;\n};\n\ninterface MediaSession {\n    metadata: MediaMetadata | null;\n    playbackState: MediaSessionPlaybackState;\n    setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void;\n    setPositionState(state?: MediaPositionState): void;\n}\n\ndeclare var MediaSession: {\n    prototype: MediaSession;\n    new(): MediaSession;\n};\n\ninterface MediaSourceEventMap {\n    \"sourceclose\": Event;\n    \"sourceended\": Event;\n    \"sourceopen\": Event;\n}\n\n/** This Media Source Extensions API interface represents a source of media data for an HTMLMediaElement object. A MediaSource object can be attached to a HTMLMediaElement to be played in the user agent. */\ninterface MediaSource extends EventTarget {\n    readonly activeSourceBuffers: SourceBufferList;\n    duration: number;\n    onsourceclose: ((this: MediaSource, ev: Event) => any) | null;\n    onsourceended: ((this: MediaSource, ev: Event) => any) | null;\n    onsourceopen: ((this: MediaSource, ev: Event) => any) | null;\n    readonly readyState: ReadyState;\n    readonly sourceBuffers: SourceBufferList;\n    addSourceBuffer(type: string): SourceBuffer;\n    clearLiveSeekableRange(): void;\n    endOfStream(error?: EndOfStreamError): void;\n    removeSourceBuffer(sourceBuffer: SourceBuffer): void;\n    setLiveSeekableRange(start: number, end: number): void;\n    addEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaSource: {\n    prototype: MediaSource;\n    new(): MediaSource;\n    isTypeSupported(type: string): boolean;\n};\n\ninterface MediaStreamEventMap {\n    \"addtrack\": MediaStreamTrackEvent;\n    \"removetrack\": MediaStreamTrackEvent;\n}\n\n/** A stream of media content. A stream consists of several tracks such as\\xA0video or audio tracks. Each track is specified as an instance of MediaStreamTrack. */\ninterface MediaStream extends EventTarget {\n    readonly active: boolean;\n    readonly id: string;\n    onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;\n    onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;\n    addTrack(track: MediaStreamTrack): void;\n    clone(): MediaStream;\n    getAudioTracks(): MediaStreamTrack[];\n    getTrackById(trackId: string): MediaStreamTrack | null;\n    getTracks(): MediaStreamTrack[];\n    getVideoTracks(): MediaStreamTrack[];\n    removeTrack(track: MediaStreamTrack): void;\n    addEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaStream: {\n    prototype: MediaStream;\n    new(): MediaStream;\n    new(stream: MediaStream): MediaStream;\n    new(tracks: MediaStreamTrack[]): MediaStream;\n};\n\ninterface MediaStreamAudioDestinationNode extends AudioNode {\n    readonly stream: MediaStream;\n}\n\ndeclare var MediaStreamAudioDestinationNode: {\n    prototype: MediaStreamAudioDestinationNode;\n    new(context: AudioContext, options?: AudioNodeOptions): MediaStreamAudioDestinationNode;\n};\n\n/** A type of AudioNode which operates as an audio source whose media is received from a MediaStream obtained using the WebRTC or Media Capture and Streams APIs. */\ninterface MediaStreamAudioSourceNode extends AudioNode {\n    readonly mediaStream: MediaStream;\n}\n\ndeclare var MediaStreamAudioSourceNode: {\n    prototype: MediaStreamAudioSourceNode;\n    new(context: AudioContext, options: MediaStreamAudioSourceOptions): MediaStreamAudioSourceNode;\n};\n\ninterface MediaStreamTrackEventMap {\n    \"ended\": Event;\n    \"mute\": Event;\n    \"unmute\": Event;\n}\n\n/** A single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well. */\ninterface MediaStreamTrack extends EventTarget {\n    contentHint: string;\n    enabled: boolean;\n    readonly id: string;\n    readonly kind: string;\n    readonly label: string;\n    readonly muted: boolean;\n    onended: ((this: MediaStreamTrack, ev: Event) => any) | null;\n    onmute: ((this: MediaStreamTrack, ev: Event) => any) | null;\n    onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null;\n    readonly readyState: MediaStreamTrackState;\n    applyConstraints(constraints?: MediaTrackConstraints): Promise<void>;\n    clone(): MediaStreamTrack;\n    getCapabilities(): MediaTrackCapabilities;\n    getConstraints(): MediaTrackConstraints;\n    getSettings(): MediaTrackSettings;\n    stop(): void;\n    addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaStreamTrack: {\n    prototype: MediaStreamTrack;\n    new(): MediaStreamTrack;\n};\n\n/** Events which indicate that a MediaStream has had tracks added to or removed from the stream through calls to Media Stream API methods. These events are sent to the stream when these changes occur. */\ninterface MediaStreamTrackEvent extends Event {\n    readonly track: MediaStreamTrack;\n}\n\ndeclare var MediaStreamTrackEvent: {\n    prototype: MediaStreamTrackEvent;\n    new(type: string, eventInitDict: MediaStreamTrackEventInit): MediaStreamTrackEvent;\n};\n\n/** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */\ninterface MessageChannel {\n    /** Returns the first MessagePort object. */\n    readonly port1: MessagePort;\n    /** Returns the second MessagePort object. */\n    readonly port2: MessagePort;\n}\n\ndeclare var MessageChannel: {\n    prototype: MessageChannel;\n    new(): MessageChannel;\n};\n\n/** A message received by a target object. */\ninterface MessageEvent<T = any> extends Event {\n    /** Returns the data of the message. */\n    readonly data: T;\n    /** Returns the last event ID string, for server-sent events. */\n    readonly lastEventId: string;\n    /** Returns the origin of the message, for server-sent events and cross-document messaging. */\n    readonly origin: string;\n    /** Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. */\n    readonly ports: ReadonlyArray<MessagePort>;\n    /** Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects. */\n    readonly source: MessageEventSource | null;\n    /** @deprecated */\n    initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;\n}\n\ndeclare var MessageEvent: {\n    prototype: MessageEvent;\n    new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;\n};\n\ninterface MessagePortEventMap {\n    \"message\": MessageEvent;\n    \"messageerror\": MessageEvent;\n}\n\n/** This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. */\ninterface MessagePort extends EventTarget {\n    onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;\n    onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;\n    /** Disconnects the port, so that it is no longer active. */\n    close(): void;\n    /**\n     * Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.\n     *\n     * Throws a \"DataCloneError\" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.\n     */\n    postMessage(message: any, transfer: Transferable[]): void;\n    postMessage(message: any, options?: StructuredSerializeOptions): void;\n    /** Begins dispatching messages received on the port. */\n    start(): void;\n    addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MessagePort: {\n    prototype: MessagePort;\n    new(): MessagePort;\n};\n\n/**\n * Provides contains information about a MIME type associated with a particular plugin. NavigatorPlugins.mimeTypes returns an array of this object.\n * @deprecated\n */\ninterface MimeType {\n    /**\n     * Returns the MIME type's description.\n     * @deprecated\n     */\n    readonly description: string;\n    /**\n     * Returns the Plugin object that implements this MIME type.\n     * @deprecated\n     */\n    readonly enabledPlugin: Plugin;\n    /**\n     * Returns the MIME type's typical file extensions, in a comma-separated list.\n     * @deprecated\n     */\n    readonly suffixes: string;\n    /**\n     * Returns the MIME type.\n     * @deprecated\n     */\n    readonly type: string;\n}\n\n/** @deprecated */\ndeclare var MimeType: {\n    prototype: MimeType;\n    new(): MimeType;\n};\n\n/**\n * Returns an array of MimeType instances, each of which contains information\\xA0about a supported browser plugins. This object is returned by NavigatorPlugins.mimeTypes.\n * @deprecated\n */\ninterface MimeTypeArray {\n    /** @deprecated */\n    readonly length: number;\n    /** @deprecated */\n    item(index: number): MimeType | null;\n    /** @deprecated */\n    namedItem(name: string): MimeType | null;\n    [index: number]: MimeType;\n}\n\n/** @deprecated */\ndeclare var MimeTypeArray: {\n    prototype: MimeTypeArray;\n    new(): MimeTypeArray;\n};\n\n/** Events that occur due to the user interacting with a pointing device (such as a mouse). Common events using this interface include click, dblclick, mouseup, mousedown. */\ninterface MouseEvent extends UIEvent {\n    readonly altKey: boolean;\n    readonly button: number;\n    readonly buttons: number;\n    readonly clientX: number;\n    readonly clientY: number;\n    readonly ctrlKey: boolean;\n    readonly metaKey: boolean;\n    readonly movementX: number;\n    readonly movementY: number;\n    readonly offsetX: number;\n    readonly offsetY: number;\n    readonly pageX: number;\n    readonly pageY: number;\n    readonly relatedTarget: EventTarget | null;\n    readonly screenX: number;\n    readonly screenY: number;\n    readonly shiftKey: boolean;\n    readonly x: number;\n    readonly y: number;\n    getModifierState(keyArg: string): boolean;\n    /** @deprecated */\n    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;\n}\n\ndeclare var MouseEvent: {\n    prototype: MouseEvent;\n    new(type: string, eventInitDict?: MouseEventInit): MouseEvent;\n};\n\n/**\n * Provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes.\n * @deprecated DOM4 [DOM] provides a new mechanism using a MutationObserver interface which addresses the use cases that mutation events solve, but in a more performant manner. Thus, this specification describes mutation events for reference and completeness of legacy behavior, but deprecates the use of the MutationEvent interface.\n */\ninterface MutationEvent extends Event {\n    /** @deprecated */\n    readonly attrChange: number;\n    /** @deprecated */\n    readonly attrName: string;\n    /** @deprecated */\n    readonly newValue: string;\n    /** @deprecated */\n    readonly prevValue: string;\n    /** @deprecated */\n    readonly relatedNode: Node | null;\n    /** @deprecated */\n    initMutationEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, relatedNodeArg?: Node | null, prevValueArg?: string, newValueArg?: string, attrNameArg?: string, attrChangeArg?: number): void;\n    readonly MODIFICATION: 1;\n    readonly ADDITION: 2;\n    readonly REMOVAL: 3;\n}\n\n/** @deprecated */\ndeclare var MutationEvent: {\n    prototype: MutationEvent;\n    new(): MutationEvent;\n    readonly MODIFICATION: 1;\n    readonly ADDITION: 2;\n    readonly REMOVAL: 3;\n};\n\n/** Provides the ability to watch for changes being made to the DOM tree. It is designed as a replacement for the older Mutation Events feature which was part of the DOM3 Events specification. */\ninterface MutationObserver {\n    /** Stops observer from observing any mutations. Until the observe() method is used again, observer's callback will not be invoked. */\n    disconnect(): void;\n    /**\n     * Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object).\n     *\n     * The options argument allows for setting mutation observation options via object members.\n     */\n    observe(target: Node, options?: MutationObserverInit): void;\n    /** Empties the record queue and returns what was in there. */\n    takeRecords(): MutationRecord[];\n}\n\ndeclare var MutationObserver: {\n    prototype: MutationObserver;\n    new(callback: MutationCallback): MutationObserver;\n};\n\n/** A MutationRecord represents an individual DOM mutation. It is the object that is passed to MutationObserver's callback. */\ninterface MutationRecord {\n    /** Return the nodes added and removed respectively. */\n    readonly addedNodes: NodeList;\n    /** Returns the local name of the changed attribute, and null otherwise. */\n    readonly attributeName: string | null;\n    /** Returns the namespace of the changed attribute, and null otherwise. */\n    readonly attributeNamespace: string | null;\n    /** Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. */\n    readonly nextSibling: Node | null;\n    /** The return value depends on type. For \"attributes\", it is the value of the changed attribute before the change. For \"characterData\", it is the data of the changed node before the change. For \"childList\", it is null. */\n    readonly oldValue: string | null;\n    /** Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. */\n    readonly previousSibling: Node | null;\n    /** Return the nodes added and removed respectively. */\n    readonly removedNodes: NodeList;\n    /** Returns the node the mutation affected, depending on the type. For \"attributes\", it is the element whose attribute changed. For \"characterData\", it is the CharacterData node. For \"childList\", it is the node whose children changed. */\n    readonly target: Node;\n    /** Returns \"attributes\" if it was an attribute mutation. \"characterData\" if it was a mutation to a CharacterData node. And \"childList\" if it was a mutation to the tree of nodes. */\n    readonly type: MutationRecordType;\n}\n\ndeclare var MutationRecord: {\n    prototype: MutationRecord;\n    new(): MutationRecord;\n};\n\n/** A collection of Attr objects. Objects inside a NamedNodeMap are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array. */\ninterface NamedNodeMap {\n    readonly length: number;\n    getNamedItem(qualifiedName: string): Attr | null;\n    getNamedItemNS(namespace: string | null, localName: string): Attr | null;\n    item(index: number): Attr | null;\n    removeNamedItem(qualifiedName: string): Attr;\n    removeNamedItemNS(namespace: string | null, localName: string): Attr;\n    setNamedItem(attr: Attr): Attr | null;\n    setNamedItemNS(attr: Attr): Attr | null;\n    [index: number]: Attr;\n}\n\ndeclare var NamedNodeMap: {\n    prototype: NamedNodeMap;\n    new(): NamedNodeMap;\n};\n\n/** Available only in secure contexts. */\ninterface NavigationPreloadManager {\n    disable(): Promise<void>;\n    enable(): Promise<void>;\n    getState(): Promise<NavigationPreloadState>;\n    setHeaderValue(value: string): Promise<void>;\n}\n\ndeclare var NavigationPreloadManager: {\n    prototype: NavigationPreloadManager;\n    new(): NavigationPreloadManager;\n};\n\n/** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */\ninterface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {\n    /** Available only in secure contexts. */\n    readonly clipboard: Clipboard;\n    /** Available only in secure contexts. */\n    readonly credentials: CredentialsContainer;\n    readonly doNotTrack: string | null;\n    readonly geolocation: Geolocation;\n    readonly maxTouchPoints: number;\n    readonly mediaCapabilities: MediaCapabilities;\n    /** Available only in secure contexts. */\n    readonly mediaDevices: MediaDevices;\n    readonly mediaSession: MediaSession;\n    readonly permissions: Permissions;\n    /** Available only in secure contexts. */\n    readonly serviceWorker: ServiceWorkerContainer;\n    /** Available only in secure contexts. */\n    canShare(data?: ShareData): boolean;\n    getGamepads(): (Gamepad | null)[];\n    /** Available only in secure contexts. */\n    requestMIDIAccess(options?: MIDIOptions): Promise<MIDIAccess>;\n    /** Available only in secure contexts. */\n    requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;\n    sendBeacon(url: string | URL, data?: BodyInit | null): boolean;\n    /** Available only in secure contexts. */\n    share(data?: ShareData): Promise<void>;\n    vibrate(pattern: VibratePattern): boolean;\n}\n\ndeclare var Navigator: {\n    prototype: Navigator;\n    new(): Navigator;\n};\n\ninterface NavigatorAutomationInformation {\n    readonly webdriver: boolean;\n}\n\ninterface NavigatorConcurrentHardware {\n    readonly hardwareConcurrency: number;\n}\n\ninterface NavigatorContentUtils {\n    /** Available only in secure contexts. */\n    registerProtocolHandler(scheme: string, url: string | URL): void;\n}\n\ninterface NavigatorCookies {\n    readonly cookieEnabled: boolean;\n}\n\ninterface NavigatorID {\n    /** @deprecated */\n    readonly appCodeName: string;\n    /** @deprecated */\n    readonly appName: string;\n    /** @deprecated */\n    readonly appVersion: string;\n    /** @deprecated */\n    readonly platform: string;\n    /** @deprecated */\n    readonly product: string;\n    /** @deprecated */\n    readonly productSub: string;\n    readonly userAgent: string;\n    /** @deprecated */\n    readonly vendor: string;\n    /** @deprecated */\n    readonly vendorSub: string;\n}\n\ninterface NavigatorLanguage {\n    readonly language: string;\n    readonly languages: ReadonlyArray<string>;\n}\n\n/** Available only in secure contexts. */\ninterface NavigatorLocks {\n    readonly locks: LockManager;\n}\n\ninterface NavigatorOnLine {\n    readonly onLine: boolean;\n}\n\ninterface NavigatorPlugins {\n    /** @deprecated */\n    readonly mimeTypes: MimeTypeArray;\n    readonly pdfViewerEnabled: boolean;\n    /** @deprecated */\n    readonly plugins: PluginArray;\n    /** @deprecated */\n    javaEnabled(): boolean;\n}\n\n/** Available only in secure contexts. */\ninterface NavigatorStorage {\n    readonly storage: StorageManager;\n}\n\n/** Node is an interface from which a number of DOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way. */\ninterface Node extends EventTarget {\n    /** Returns node's node document's document base URL. */\n    readonly baseURI: string;\n    /** Returns the children. */\n    readonly childNodes: NodeListOf<ChildNode>;\n    /** Returns the first child. */\n    readonly firstChild: ChildNode | null;\n    /** Returns true if node is connected and false otherwise. */\n    readonly isConnected: boolean;\n    /** Returns the last child. */\n    readonly lastChild: ChildNode | null;\n    /** Returns the next sibling. */\n    readonly nextSibling: ChildNode | null;\n    /** Returns a string appropriate for the type of node. */\n    readonly nodeName: string;\n    /** Returns the type of node. */\n    readonly nodeType: number;\n    nodeValue: string | null;\n    /** Returns the node document. Returns null for documents. */\n    readonly ownerDocument: Document | null;\n    /** Returns the parent element. */\n    readonly parentElement: HTMLElement | null;\n    /** Returns the parent. */\n    readonly parentNode: ParentNode | null;\n    /** Returns the previous sibling. */\n    readonly previousSibling: ChildNode | null;\n    textContent: string | null;\n    appendChild<T extends Node>(node: T): T;\n    /** Returns a copy of node. If deep is true, the copy also includes the node's descendants. */\n    cloneNode(deep?: boolean): Node;\n    /** Returns a bitmask indicating the position of other relative to node. */\n    compareDocumentPosition(other: Node): number;\n    /** Returns true if other is an inclusive descendant of node, and false otherwise. */\n    contains(other: Node | null): boolean;\n    /** Returns node's root. */\n    getRootNode(options?: GetRootNodeOptions): Node;\n    /** Returns whether node has children. */\n    hasChildNodes(): boolean;\n    insertBefore<T extends Node>(node: T, child: Node | null): T;\n    isDefaultNamespace(namespace: string | null): boolean;\n    /** Returns whether node and otherNode have the same properties. */\n    isEqualNode(otherNode: Node | null): boolean;\n    isSameNode(otherNode: Node | null): boolean;\n    lookupNamespaceURI(prefix: string | null): string | null;\n    lookupPrefix(namespace: string | null): string | null;\n    /** Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. */\n    normalize(): void;\n    removeChild<T extends Node>(child: T): T;\n    replaceChild<T extends Node>(node: Node, child: T): T;\n    /** node is an element. */\n    readonly ELEMENT_NODE: 1;\n    readonly ATTRIBUTE_NODE: 2;\n    /** node is a Text node. */\n    readonly TEXT_NODE: 3;\n    /** node is a CDATASection node. */\n    readonly CDATA_SECTION_NODE: 4;\n    readonly ENTITY_REFERENCE_NODE: 5;\n    readonly ENTITY_NODE: 6;\n    /** node is a ProcessingInstruction node. */\n    readonly PROCESSING_INSTRUCTION_NODE: 7;\n    /** node is a Comment node. */\n    readonly COMMENT_NODE: 8;\n    /** node is a document. */\n    readonly DOCUMENT_NODE: 9;\n    /** node is a doctype. */\n    readonly DOCUMENT_TYPE_NODE: 10;\n    /** node is a DocumentFragment node. */\n    readonly DOCUMENT_FRAGMENT_NODE: 11;\n    readonly NOTATION_NODE: 12;\n    /** Set when node and other are not in the same tree. */\n    readonly DOCUMENT_POSITION_DISCONNECTED: 0x01;\n    /** Set when other is preceding node. */\n    readonly DOCUMENT_POSITION_PRECEDING: 0x02;\n    /** Set when other is following node. */\n    readonly DOCUMENT_POSITION_FOLLOWING: 0x04;\n    /** Set when other is an ancestor of node. */\n    readonly DOCUMENT_POSITION_CONTAINS: 0x08;\n    /** Set when other is a descendant of node. */\n    readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10;\n    readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20;\n}\n\ndeclare var Node: {\n    prototype: Node;\n    new(): Node;\n    /** node is an element. */\n    readonly ELEMENT_NODE: 1;\n    readonly ATTRIBUTE_NODE: 2;\n    /** node is a Text node. */\n    readonly TEXT_NODE: 3;\n    /** node is a CDATASection node. */\n    readonly CDATA_SECTION_NODE: 4;\n    readonly ENTITY_REFERENCE_NODE: 5;\n    readonly ENTITY_NODE: 6;\n    /** node is a ProcessingInstruction node. */\n    readonly PROCESSING_INSTRUCTION_NODE: 7;\n    /** node is a Comment node. */\n    readonly COMMENT_NODE: 8;\n    /** node is a document. */\n    readonly DOCUMENT_NODE: 9;\n    /** node is a doctype. */\n    readonly DOCUMENT_TYPE_NODE: 10;\n    /** node is a DocumentFragment node. */\n    readonly DOCUMENT_FRAGMENT_NODE: 11;\n    readonly NOTATION_NODE: 12;\n    /** Set when node and other are not in the same tree. */\n    readonly DOCUMENT_POSITION_DISCONNECTED: 0x01;\n    /** Set when other is preceding node. */\n    readonly DOCUMENT_POSITION_PRECEDING: 0x02;\n    /** Set when other is following node. */\n    readonly DOCUMENT_POSITION_FOLLOWING: 0x04;\n    /** Set when other is an ancestor of node. */\n    readonly DOCUMENT_POSITION_CONTAINS: 0x08;\n    /** Set when other is a descendant of node. */\n    readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10;\n    readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20;\n};\n\n/** An iterator over the members of a list of the nodes in a subtree of the DOM. The nodes will be returned in document order. */\ninterface NodeIterator {\n    readonly filter: NodeFilter | null;\n    readonly pointerBeforeReferenceNode: boolean;\n    readonly referenceNode: Node;\n    readonly root: Node;\n    readonly whatToShow: number;\n    /** @deprecated */\n    detach(): void;\n    nextNode(): Node | null;\n    previousNode(): Node | null;\n}\n\ndeclare var NodeIterator: {\n    prototype: NodeIterator;\n    new(): NodeIterator;\n};\n\n/** NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll(). */\ninterface NodeList {\n    /** Returns the number of nodes in the collection. */\n    readonly length: number;\n    /** Returns the node with index index from the collection. The nodes are sorted in tree order. */\n    item(index: number): Node | null;\n    /**\n     * Performs the specified action for each node in an list.\n     * @param callbackfn  A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.\n     * @param thisArg  An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n     */\n    forEach(callbackfn: (value: Node, key: number, parent: NodeList) => void, thisArg?: any): void;\n    [index: number]: Node;\n}\n\ndeclare var NodeList: {\n    prototype: NodeList;\n    new(): NodeList;\n};\n\ninterface NodeListOf<TNode extends Node> extends NodeList {\n    item(index: number): TNode;\n    /**\n     * Performs the specified action for each node in an list.\n     * @param callbackfn  A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.\n     * @param thisArg  An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n     */\n    forEach(callbackfn: (value: TNode, key: number, parent: NodeListOf<TNode>) => void, thisArg?: any): void;\n    [index: number]: TNode;\n}\n\ninterface NonDocumentTypeChildNode {\n    /** Returns the first following sibling that is an element, and null otherwise. */\n    readonly nextElementSibling: Element | null;\n    /** Returns the first preceding sibling that is an element, and null otherwise. */\n    readonly previousElementSibling: Element | null;\n}\n\ninterface NonElementParentNode {\n    /** Returns the first element within node's descendants whose ID is elementId. */\n    getElementById(elementId: string): Element | null;\n}\n\ninterface NotificationEventMap {\n    \"click\": Event;\n    \"close\": Event;\n    \"error\": Event;\n    \"show\": Event;\n}\n\n/** This Notifications API interface is used to configure and display desktop notifications to the user. */\ninterface Notification extends EventTarget {\n    readonly body: string;\n    readonly data: any;\n    readonly dir: NotificationDirection;\n    readonly icon: string;\n    readonly lang: string;\n    onclick: ((this: Notification, ev: Event) => any) | null;\n    onclose: ((this: Notification, ev: Event) => any) | null;\n    onerror: ((this: Notification, ev: Event) => any) | null;\n    onshow: ((this: Notification, ev: Event) => any) | null;\n    readonly tag: string;\n    readonly title: string;\n    close(): void;\n    addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Notification: {\n    prototype: Notification;\n    new(title: string, options?: NotificationOptions): Notification;\n    readonly permission: NotificationPermission;\n    requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;\n};\n\ninterface OES_draw_buffers_indexed {\n    blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;\n    blendEquationiOES(buf: GLuint, mode: GLenum): void;\n    blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;\n    blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;\n    colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;\n    disableiOES(target: GLenum, index: GLuint): void;\n    enableiOES(target: GLenum, index: GLuint): void;\n}\n\n/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */\ninterface OES_element_index_uint {\n}\n\ninterface OES_fbo_render_mipmap {\n}\n\n/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */\ninterface OES_standard_derivatives {\n    readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B;\n}\n\n/** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */\ninterface OES_texture_float {\n}\n\n/** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */\ninterface OES_texture_float_linear {\n}\n\n/** The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components. */\ninterface OES_texture_half_float {\n    readonly HALF_FLOAT_OES: 0x8D61;\n}\n\n/** The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures. */\ninterface OES_texture_half_float_linear {\n}\n\ninterface OES_vertex_array_object {\n    bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n    createVertexArrayOES(): WebGLVertexArrayObjectOES | null;\n    deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n    isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;\n    readonly VERTEX_ARRAY_BINDING_OES: 0x85B5;\n}\n\ninterface OVR_multiview2 {\n    framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632;\n    readonly MAX_VIEWS_OVR: 0x9631;\n    readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633;\n}\n\n/** The Web Audio API OfflineAudioCompletionEvent interface represents events that occur when the processing of an OfflineAudioContext is terminated. The complete event implements this interface. */\ninterface OfflineAudioCompletionEvent extends Event {\n    readonly renderedBuffer: AudioBuffer;\n}\n\ndeclare var OfflineAudioCompletionEvent: {\n    prototype: OfflineAudioCompletionEvent;\n    new(type: string, eventInitDict: OfflineAudioCompletionEventInit): OfflineAudioCompletionEvent;\n};\n\ninterface OfflineAudioContextEventMap extends BaseAudioContextEventMap {\n    \"complete\": OfflineAudioCompletionEvent;\n}\n\n/** An AudioContext interface representing an audio-processing graph built from linked together AudioNodes. In contrast with a standard AudioContext, an OfflineAudioContext doesn't render the audio to the device hardware; instead, it generates it, as fast as it can, and outputs the result to an AudioBuffer. */\ninterface OfflineAudioContext extends BaseAudioContext {\n    readonly length: number;\n    oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null;\n    resume(): Promise<void>;\n    startRendering(): Promise<AudioBuffer>;\n    suspend(suspendTime: number): Promise<void>;\n    addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var OfflineAudioContext: {\n    prototype: OfflineAudioContext;\n    new(contextOptions: OfflineAudioContextOptions): OfflineAudioContext;\n    new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;\n};\n\ninterface OffscreenCanvasEventMap {\n    \"contextlost\": Event;\n    \"contextrestored\": Event;\n}\n\ninterface OffscreenCanvas extends EventTarget {\n    /**\n     * These attributes return the dimensions of the OffscreenCanvas object's bitmap.\n     *\n     * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).\n     */\n    height: number;\n    oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;\n    oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;\n    /**\n     * These attributes return the dimensions of the OffscreenCanvas object's bitmap.\n     *\n     * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).\n     */\n    width: number;\n    /**\n     * Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.\n     *\n     * The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of \"image/png\"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as \"image/jpeg\"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.\n     */\n    convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;\n    /**\n     * Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: \"2d\", \"bitmaprenderer\", \"webgl\", or \"webgl2\". options is handled by that API.\n     *\n     * This specification defines the \"2d\" context below, which is similar but distinct from the \"2d\" context that is created from a canvas element. The WebGL specifications define the \"webgl\" and \"webgl2\" contexts. [WEBGL]\n     *\n     * Returns null if the canvas has already been initialized with another context type (e.g., trying to get a \"2d\" context after getting a \"webgl\" context).\n     */\n    getContext(contextId: \"2d\", options?: any): OffscreenCanvasRenderingContext2D | null;\n    getContext(contextId: \"bitmaprenderer\", options?: any): ImageBitmapRenderingContext | null;\n    getContext(contextId: \"webgl\", options?: any): WebGLRenderingContext | null;\n    getContext(contextId: \"webgl2\", options?: any): WebGL2RenderingContext | null;\n    getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;\n    /** Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image. */\n    transferToImageBitmap(): ImageBitmap;\n    addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var OffscreenCanvas: {\n    prototype: OffscreenCanvas;\n    new(width: number, height: number): OffscreenCanvas;\n};\n\ninterface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {\n    readonly canvas: OffscreenCanvas;\n    commit(): void;\n}\n\ndeclare var OffscreenCanvasRenderingContext2D: {\n    prototype: OffscreenCanvasRenderingContext2D;\n    new(): OffscreenCanvasRenderingContext2D;\n};\n\n/** The OscillatorNode\\xA0interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency\\xA0of a given wave to be created\\u2014in effect, a constant tone. */\ninterface OscillatorNode extends AudioScheduledSourceNode {\n    readonly detune: AudioParam;\n    readonly frequency: AudioParam;\n    type: OscillatorType;\n    setPeriodicWave(periodicWave: PeriodicWave): void;\n    addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var OscillatorNode: {\n    prototype: OscillatorNode;\n    new(context: BaseAudioContext, options?: OscillatorOptions): OscillatorNode;\n};\n\ninterface OverconstrainedError extends Error {\n    readonly constraint: string;\n}\n\ndeclare var OverconstrainedError: {\n    prototype: OverconstrainedError;\n    new(constraint: string, message?: string): OverconstrainedError;\n};\n\n/** The PageTransitionEvent is fired when a document is being loaded or unloaded. */\ninterface PageTransitionEvent extends Event {\n    /**\n     * For the pageshow event, returns false if the page is newly being loaded (and the load event will fire). Otherwise, returns true.\n     *\n     * For the pagehide event, returns false if the page is going away for the last time. Otherwise, returns true, meaning that (if nothing conspires to make the page unsalvageable) the page might be reused if the user navigates back to this page.\n     *\n     * Things that can cause the page to be unsalvageable include:\n     *\n     * The user agent decided to not keep the Document alive in a session history entry after unload\n     * Having iframes that are not salvageable\n     * Active WebSocket objects\n     * Aborting a Document\n     */\n    readonly persisted: boolean;\n}\n\ndeclare var PageTransitionEvent: {\n    prototype: PageTransitionEvent;\n    new(type: string, eventInitDict?: PageTransitionEventInit): PageTransitionEvent;\n};\n\n/** A PannerNode always has exactly one input and one output: the input can be mono or stereo but the output is always stereo (2 channels); you can't have panning effects without at least two audio channels! */\ninterface PannerNode extends AudioNode {\n    coneInnerAngle: number;\n    coneOuterAngle: number;\n    coneOuterGain: number;\n    distanceModel: DistanceModelType;\n    maxDistance: number;\n    readonly orientationX: AudioParam;\n    readonly orientationY: AudioParam;\n    readonly orientationZ: AudioParam;\n    panningModel: PanningModelType;\n    readonly positionX: AudioParam;\n    readonly positionY: AudioParam;\n    readonly positionZ: AudioParam;\n    refDistance: number;\n    rolloffFactor: number;\n    /** @deprecated */\n    setOrientation(x: number, y: number, z: number): void;\n    /** @deprecated */\n    setPosition(x: number, y: number, z: number): void;\n}\n\ndeclare var PannerNode: {\n    prototype: PannerNode;\n    new(context: BaseAudioContext, options?: PannerOptions): PannerNode;\n};\n\ninterface ParentNode extends Node {\n    readonly childElementCount: number;\n    /** Returns the child elements. */\n    readonly children: HTMLCollection;\n    /** Returns the first child that is an element, and null otherwise. */\n    readonly firstElementChild: Element | null;\n    /** Returns the last child that is an element, and null otherwise. */\n    readonly lastElementChild: Element | null;\n    /**\n     * Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.\n     *\n     * Throws a \"HierarchyRequestError\" DOMException if the constraints of the node tree are violated.\n     */\n    append(...nodes: (Node | string)[]): void;\n    /**\n     * Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.\n     *\n     * Throws a \"HierarchyRequestError\" DOMException if the constraints of the node tree are violated.\n     */\n    prepend(...nodes: (Node | string)[]): void;\n    /** Returns the first element that is a descendant of node that matches selectors. */\n    querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;\n    querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;\n    querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;\n    /** @deprecated */\n    querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;\n    querySelector<E extends Element = Element>(selectors: string): E | null;\n    /** Returns all element descendants of node that match selectors. */\n    querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;\n    querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;\n    querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;\n    /** @deprecated */\n    querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;\n    querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;\n    /**\n     * Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.\n     *\n     * Throws a \"HierarchyRequestError\" DOMException if the constraints of the node tree are violated.\n     */\n    replaceChildren(...nodes: (Node | string)[]): void;\n}\n\n/** This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. */\ninterface Path2D extends CanvasPath {\n    /** Adds to the path the path given by the argument. */\n    addPath(path: Path2D, transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var Path2D: {\n    prototype: Path2D;\n    new(path?: Path2D | string): Path2D;\n};\n\n/** Available only in secure contexts. */\ninterface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent {\n    readonly methodDetails: any;\n    readonly methodName: string;\n}\n\ndeclare var PaymentMethodChangeEvent: {\n    prototype: PaymentMethodChangeEvent;\n    new(type: string, eventInitDict?: PaymentMethodChangeEventInit): PaymentMethodChangeEvent;\n};\n\ninterface PaymentRequestEventMap {\n    \"paymentmethodchange\": Event;\n}\n\n/**\n * This Payment Request API interface is the primary access point into the API, and lets web content and apps accept payments from the end user.\n * Available only in secure contexts.\n */\ninterface PaymentRequest extends EventTarget {\n    readonly id: string;\n    onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;\n    abort(): Promise<void>;\n    canMakePayment(): Promise<boolean>;\n    show(detailsPromise?: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): Promise<PaymentResponse>;\n    addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var PaymentRequest: {\n    prototype: PaymentRequest;\n    new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest;\n};\n\n/**\n * This Payment Request API interface enables a web page to update the details of a PaymentRequest in response to a user action.\n * Available only in secure contexts.\n */\ninterface PaymentRequestUpdateEvent extends Event {\n    updateWith(detailsPromise: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): void;\n}\n\ndeclare var PaymentRequestUpdateEvent: {\n    prototype: PaymentRequestUpdateEvent;\n    new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;\n};\n\n/**\n * This Payment Request API interface is returned after a user selects a payment method and approves a payment request.\n * Available only in secure contexts.\n */\ninterface PaymentResponse extends EventTarget {\n    readonly details: any;\n    readonly methodName: string;\n    readonly requestId: string;\n    complete(result?: PaymentComplete): Promise<void>;\n    retry(errorFields?: PaymentValidationErrors): Promise<void>;\n    toJSON(): any;\n}\n\ndeclare var PaymentResponse: {\n    prototype: PaymentResponse;\n    new(): PaymentResponse;\n};\n\ninterface PerformanceEventMap {\n    \"resourcetimingbufferfull\": Event;\n}\n\n/** Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */\ninterface Performance extends EventTarget {\n    readonly eventCounts: EventCounts;\n    /** @deprecated */\n    readonly navigation: PerformanceNavigation;\n    onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;\n    readonly timeOrigin: DOMHighResTimeStamp;\n    /** @deprecated */\n    readonly timing: PerformanceTiming;\n    clearMarks(markName?: string): void;\n    clearMeasures(measureName?: string): void;\n    clearResourceTimings(): void;\n    getEntries(): PerformanceEntryList;\n    getEntriesByName(name: string, type?: string): PerformanceEntryList;\n    getEntriesByType(type: string): PerformanceEntryList;\n    mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;\n    measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;\n    now(): DOMHighResTimeStamp;\n    setResourceTimingBufferSize(maxSize: number): void;\n    toJSON(): any;\n    addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Performance: {\n    prototype: Performance;\n    new(): Performance;\n};\n\n/** Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image). */\ninterface PerformanceEntry {\n    readonly duration: DOMHighResTimeStamp;\n    readonly entryType: string;\n    readonly name: string;\n    readonly startTime: DOMHighResTimeStamp;\n    toJSON(): any;\n}\n\ndeclare var PerformanceEntry: {\n    prototype: PerformanceEntry;\n    new(): PerformanceEntry;\n};\n\ninterface PerformanceEventTiming extends PerformanceEntry {\n    readonly cancelable: boolean;\n    readonly processingEnd: DOMHighResTimeStamp;\n    readonly processingStart: DOMHighResTimeStamp;\n    readonly target: Node | null;\n    toJSON(): any;\n}\n\ndeclare var PerformanceEventTiming: {\n    prototype: PerformanceEventTiming;\n    new(): PerformanceEventTiming;\n};\n\n/** PerformanceMark\\xA0is an abstract interface for PerformanceEntry objects with an entryType of \"mark\". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. */\ninterface PerformanceMark extends PerformanceEntry {\n    readonly detail: any;\n}\n\ndeclare var PerformanceMark: {\n    prototype: PerformanceMark;\n    new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;\n};\n\n/** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of \"measure\". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline. */\ninterface PerformanceMeasure extends PerformanceEntry {\n    readonly detail: any;\n}\n\ndeclare var PerformanceMeasure: {\n    prototype: PerformanceMeasure;\n    new(): PerformanceMeasure;\n};\n\n/**\n * The legacy PerformanceNavigation interface represents information about how the navigation to the current document was done.\n * @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.\n */\ninterface PerformanceNavigation {\n    /** @deprecated */\n    readonly redirectCount: number;\n    /** @deprecated */\n    readonly type: number;\n    /** @deprecated */\n    toJSON(): any;\n    readonly TYPE_NAVIGATE: 0;\n    readonly TYPE_RELOAD: 1;\n    readonly TYPE_BACK_FORWARD: 2;\n    readonly TYPE_RESERVED: 255;\n}\n\n/** @deprecated */\ndeclare var PerformanceNavigation: {\n    prototype: PerformanceNavigation;\n    new(): PerformanceNavigation;\n    readonly TYPE_NAVIGATE: 0;\n    readonly TYPE_RELOAD: 1;\n    readonly TYPE_BACK_FORWARD: 2;\n    readonly TYPE_RESERVED: 255;\n};\n\n/** Provides methods and properties to store and retrieve metrics regarding the browser's document navigation events. For example, this interface can be used to determine how much time it takes to load or unload a document. */\ninterface PerformanceNavigationTiming extends PerformanceResourceTiming {\n    readonly domComplete: DOMHighResTimeStamp;\n    readonly domContentLoadedEventEnd: DOMHighResTimeStamp;\n    readonly domContentLoadedEventStart: DOMHighResTimeStamp;\n    readonly domInteractive: DOMHighResTimeStamp;\n    readonly loadEventEnd: DOMHighResTimeStamp;\n    readonly loadEventStart: DOMHighResTimeStamp;\n    readonly redirectCount: number;\n    readonly type: NavigationTimingType;\n    readonly unloadEventEnd: DOMHighResTimeStamp;\n    readonly unloadEventStart: DOMHighResTimeStamp;\n    toJSON(): any;\n}\n\ndeclare var PerformanceNavigationTiming: {\n    prototype: PerformanceNavigationTiming;\n    new(): PerformanceNavigationTiming;\n};\n\ninterface PerformanceObserver {\n    disconnect(): void;\n    observe(options?: PerformanceObserverInit): void;\n    takeRecords(): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserver: {\n    prototype: PerformanceObserver;\n    new(callback: PerformanceObserverCallback): PerformanceObserver;\n    readonly supportedEntryTypes: ReadonlyArray<string>;\n};\n\ninterface PerformanceObserverEntryList {\n    getEntries(): PerformanceEntryList;\n    getEntriesByName(name: string, type?: string): PerformanceEntryList;\n    getEntriesByType(type: string): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserverEntryList: {\n    prototype: PerformanceObserverEntryList;\n    new(): PerformanceObserverEntryList;\n};\n\ninterface PerformancePaintTiming extends PerformanceEntry {\n}\n\ndeclare var PerformancePaintTiming: {\n    prototype: PerformancePaintTiming;\n    new(): PerformancePaintTiming;\n};\n\n/** Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. */\ninterface PerformanceResourceTiming extends PerformanceEntry {\n    readonly connectEnd: DOMHighResTimeStamp;\n    readonly connectStart: DOMHighResTimeStamp;\n    readonly decodedBodySize: number;\n    readonly domainLookupEnd: DOMHighResTimeStamp;\n    readonly domainLookupStart: DOMHighResTimeStamp;\n    readonly encodedBodySize: number;\n    readonly fetchStart: DOMHighResTimeStamp;\n    readonly initiatorType: string;\n    readonly nextHopProtocol: string;\n    readonly redirectEnd: DOMHighResTimeStamp;\n    readonly redirectStart: DOMHighResTimeStamp;\n    readonly requestStart: DOMHighResTimeStamp;\n    readonly responseEnd: DOMHighResTimeStamp;\n    readonly responseStart: DOMHighResTimeStamp;\n    readonly secureConnectionStart: DOMHighResTimeStamp;\n    readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;\n    readonly transferSize: number;\n    readonly workerStart: DOMHighResTimeStamp;\n    toJSON(): any;\n}\n\ndeclare var PerformanceResourceTiming: {\n    prototype: PerformanceResourceTiming;\n    new(): PerformanceResourceTiming;\n};\n\ninterface PerformanceServerTiming {\n    readonly description: string;\n    readonly duration: DOMHighResTimeStamp;\n    readonly name: string;\n    toJSON(): any;\n}\n\ndeclare var PerformanceServerTiming: {\n    prototype: PerformanceServerTiming;\n    new(): PerformanceServerTiming;\n};\n\n/**\n * A legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming object describing your page using the window.performance.timing property.\n * @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.\n */\ninterface PerformanceTiming {\n    /** @deprecated */\n    readonly connectEnd: number;\n    /** @deprecated */\n    readonly connectStart: number;\n    /** @deprecated */\n    readonly domComplete: number;\n    /** @deprecated */\n    readonly domContentLoadedEventEnd: number;\n    /** @deprecated */\n    readonly domContentLoadedEventStart: number;\n    /** @deprecated */\n    readonly domInteractive: number;\n    /** @deprecated */\n    readonly domLoading: number;\n    /** @deprecated */\n    readonly domainLookupEnd: number;\n    /** @deprecated */\n    readonly domainLookupStart: number;\n    /** @deprecated */\n    readonly fetchStart: number;\n    /** @deprecated */\n    readonly loadEventEnd: number;\n    /** @deprecated */\n    readonly loadEventStart: number;\n    /** @deprecated */\n    readonly navigationStart: number;\n    /** @deprecated */\n    readonly redirectEnd: number;\n    /** @deprecated */\n    readonly redirectStart: number;\n    /** @deprecated */\n    readonly requestStart: number;\n    /** @deprecated */\n    readonly responseEnd: number;\n    /** @deprecated */\n    readonly responseStart: number;\n    /** @deprecated */\n    readonly secureConnectionStart: number;\n    /** @deprecated */\n    readonly unloadEventEnd: number;\n    /** @deprecated */\n    readonly unloadEventStart: number;\n    /** @deprecated */\n    toJSON(): any;\n}\n\n/** @deprecated */\ndeclare var PerformanceTiming: {\n    prototype: PerformanceTiming;\n    new(): PerformanceTiming;\n};\n\n/** PeriodicWave has no inputs or outputs; it is used to define custom oscillators when calling OscillatorNode.setPeriodicWave(). The PeriodicWave itself is created/returned by AudioContext.createPeriodicWave(). */\ninterface PeriodicWave {\n}\n\ndeclare var PeriodicWave: {\n    prototype: PeriodicWave;\n    new(context: BaseAudioContext, options?: PeriodicWaveOptions): PeriodicWave;\n};\n\ninterface PermissionStatusEventMap {\n    \"change\": Event;\n}\n\ninterface PermissionStatus extends EventTarget {\n    readonly name: string;\n    onchange: ((this: PermissionStatus, ev: Event) => any) | null;\n    readonly state: PermissionState;\n    addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var PermissionStatus: {\n    prototype: PermissionStatus;\n    new(): PermissionStatus;\n};\n\ninterface Permissions {\n    query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;\n}\n\ndeclare var Permissions: {\n    prototype: Permissions;\n    new(): Permissions;\n};\n\ninterface PictureInPictureEvent extends Event {\n    readonly pictureInPictureWindow: PictureInPictureWindow;\n}\n\ndeclare var PictureInPictureEvent: {\n    prototype: PictureInPictureEvent;\n    new(type: string, eventInitDict: PictureInPictureEventInit): PictureInPictureEvent;\n};\n\ninterface PictureInPictureWindowEventMap {\n    \"resize\": Event;\n}\n\ninterface PictureInPictureWindow extends EventTarget {\n    readonly height: number;\n    onresize: ((this: PictureInPictureWindow, ev: Event) => any) | null;\n    readonly width: number;\n    addEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var PictureInPictureWindow: {\n    prototype: PictureInPictureWindow;\n    new(): PictureInPictureWindow;\n};\n\n/**\n * Provides information about a browser plugin.\n * @deprecated\n */\ninterface Plugin {\n    /**\n     * Returns the plugin's description.\n     * @deprecated\n     */\n    readonly description: string;\n    /**\n     * Returns the plugin library's filename, if applicable on the current platform.\n     * @deprecated\n     */\n    readonly filename: string;\n    /**\n     * Returns the number of MIME types, represented by MimeType objects, supported by the plugin.\n     * @deprecated\n     */\n    readonly length: number;\n    /**\n     * Returns the plugin's name.\n     * @deprecated\n     */\n    readonly name: string;\n    /**\n     * Returns the specified MimeType object.\n     * @deprecated\n     */\n    item(index: number): MimeType | null;\n    /** @deprecated */\n    namedItem(name: string): MimeType | null;\n    [index: number]: MimeType;\n}\n\n/** @deprecated */\ndeclare var Plugin: {\n    prototype: Plugin;\n    new(): Plugin;\n};\n\n/**\n * Used to store a list of Plugin objects describing the available plugins; it's returned by the window.navigator.plugins\\xA0property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem(\"name\") methods.\n * @deprecated\n */\ninterface PluginArray {\n    /** @deprecated */\n    readonly length: number;\n    /** @deprecated */\n    item(index: number): Plugin | null;\n    /** @deprecated */\n    namedItem(name: string): Plugin | null;\n    /** @deprecated */\n    refresh(): void;\n    [index: number]: Plugin;\n}\n\n/** @deprecated */\ndeclare var PluginArray: {\n    prototype: PluginArray;\n    new(): PluginArray;\n};\n\n/** The state of a DOM event produced by a pointer such as the geometry of the contact point, the device type that generated the event, the amount of pressure that was applied on the contact surface, etc. */\ninterface PointerEvent extends MouseEvent {\n    readonly height: number;\n    readonly isPrimary: boolean;\n    readonly pointerId: number;\n    readonly pointerType: string;\n    readonly pressure: number;\n    readonly tangentialPressure: number;\n    readonly tiltX: number;\n    readonly tiltY: number;\n    readonly twist: number;\n    readonly width: number;\n    /** Available only in secure contexts. */\n    getCoalescedEvents(): PointerEvent[];\n    getPredictedEvents(): PointerEvent[];\n}\n\ndeclare var PointerEvent: {\n    prototype: PointerEvent;\n    new(type: string, eventInitDict?: PointerEventInit): PointerEvent;\n};\n\n/** PopStateEvent is an event handler for the popstate event on the window. */\ninterface PopStateEvent extends Event {\n    /** Returns a copy of the information that was provided to pushState() or replaceState(). */\n    readonly state: any;\n}\n\ndeclare var PopStateEvent: {\n    prototype: PopStateEvent;\n    new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;\n};\n\n/** A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don't recognize them. */\ninterface ProcessingInstruction extends CharacterData, LinkStyle {\n    readonly ownerDocument: Document;\n    readonly target: string;\n}\n\ndeclare var ProcessingInstruction: {\n    prototype: ProcessingInstruction;\n    new(): ProcessingInstruction;\n};\n\n/** Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>). */\ninterface ProgressEvent<T extends EventTarget = EventTarget> extends Event {\n    readonly lengthComputable: boolean;\n    readonly loaded: number;\n    readonly target: T | null;\n    readonly total: number;\n}\n\ndeclare var ProgressEvent: {\n    prototype: ProgressEvent;\n    new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;\n};\n\ninterface PromiseRejectionEvent extends Event {\n    readonly promise: Promise<any>;\n    readonly reason: any;\n}\n\ndeclare var PromiseRejectionEvent: {\n    prototype: PromiseRejectionEvent;\n    new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;\n};\n\n/** Available only in secure contexts. */\ninterface PublicKeyCredential extends Credential {\n    readonly authenticatorAttachment: string | null;\n    readonly rawId: ArrayBuffer;\n    readonly response: AuthenticatorResponse;\n    getClientExtensionResults(): AuthenticationExtensionsClientOutputs;\n}\n\ndeclare var PublicKeyCredential: {\n    prototype: PublicKeyCredential;\n    new(): PublicKeyCredential;\n    isConditionalMediationAvailable(): Promise<boolean>;\n    isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;\n};\n\n/**\n * This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.\n * Available only in secure contexts.\n */\ninterface PushManager {\n    getSubscription(): Promise<PushSubscription | null>;\n    permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;\n    subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;\n}\n\ndeclare var PushManager: {\n    prototype: PushManager;\n    new(): PushManager;\n    readonly supportedContentEncodings: ReadonlyArray<string>;\n};\n\n/**\n * This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service.\n * Available only in secure contexts.\n */\ninterface PushSubscription {\n    readonly endpoint: string;\n    readonly expirationTime: EpochTimeStamp | null;\n    readonly options: PushSubscriptionOptions;\n    getKey(name: PushEncryptionKeyName): ArrayBuffer | null;\n    toJSON(): PushSubscriptionJSON;\n    unsubscribe(): Promise<boolean>;\n}\n\ndeclare var PushSubscription: {\n    prototype: PushSubscription;\n    new(): PushSubscription;\n};\n\n/** Available only in secure contexts. */\ninterface PushSubscriptionOptions {\n    readonly applicationServerKey: ArrayBuffer | null;\n    readonly userVisibleOnly: boolean;\n}\n\ndeclare var PushSubscriptionOptions: {\n    prototype: PushSubscriptionOptions;\n    new(): PushSubscriptionOptions;\n};\n\ninterface RTCCertificate {\n    readonly expires: EpochTimeStamp;\n    getFingerprints(): RTCDtlsFingerprint[];\n}\n\ndeclare var RTCCertificate: {\n    prototype: RTCCertificate;\n    new(): RTCCertificate;\n};\n\ninterface RTCDTMFSenderEventMap {\n    \"tonechange\": RTCDTMFToneChangeEvent;\n}\n\ninterface RTCDTMFSender extends EventTarget {\n    readonly canInsertDTMF: boolean;\n    ontonechange: ((this: RTCDTMFSender, ev: RTCDTMFToneChangeEvent) => any) | null;\n    readonly toneBuffer: string;\n    insertDTMF(tones: string, duration?: number, interToneGap?: number): void;\n    addEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCDTMFSender: {\n    prototype: RTCDTMFSender;\n    new(): RTCDTMFSender;\n};\n\n/** Events sent to indicate that DTMF tones have started or finished playing. This interface is used by the tonechange event. */\ninterface RTCDTMFToneChangeEvent extends Event {\n    readonly tone: string;\n}\n\ndeclare var RTCDTMFToneChangeEvent: {\n    prototype: RTCDTMFToneChangeEvent;\n    new(type: string, eventInitDict?: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent;\n};\n\ninterface RTCDataChannelEventMap {\n    \"bufferedamountlow\": Event;\n    \"close\": Event;\n    \"closing\": Event;\n    \"error\": Event;\n    \"message\": MessageEvent;\n    \"open\": Event;\n}\n\ninterface RTCDataChannel extends EventTarget {\n    binaryType: BinaryType;\n    readonly bufferedAmount: number;\n    bufferedAmountLowThreshold: number;\n    readonly id: number | null;\n    readonly label: string;\n    readonly maxPacketLifeTime: number | null;\n    readonly maxRetransmits: number | null;\n    readonly negotiated: boolean;\n    onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;\n    onclose: ((this: RTCDataChannel, ev: Event) => any) | null;\n    onclosing: ((this: RTCDataChannel, ev: Event) => any) | null;\n    onerror: ((this: RTCDataChannel, ev: Event) => any) | null;\n    onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;\n    onopen: ((this: RTCDataChannel, ev: Event) => any) | null;\n    readonly ordered: boolean;\n    readonly protocol: string;\n    readonly readyState: RTCDataChannelState;\n    close(): void;\n    send(data: string): void;\n    send(data: Blob): void;\n    send(data: ArrayBuffer): void;\n    send(data: ArrayBufferView): void;\n    addEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCDataChannel: {\n    prototype: RTCDataChannel;\n    new(): RTCDataChannel;\n};\n\ninterface RTCDataChannelEvent extends Event {\n    readonly channel: RTCDataChannel;\n}\n\ndeclare var RTCDataChannelEvent: {\n    prototype: RTCDataChannelEvent;\n    new(type: string, eventInitDict: RTCDataChannelEventInit): RTCDataChannelEvent;\n};\n\ninterface RTCDtlsTransportEventMap {\n    \"error\": Event;\n    \"statechange\": Event;\n}\n\ninterface RTCDtlsTransport extends EventTarget {\n    readonly iceTransport: RTCIceTransport;\n    onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null;\n    onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;\n    readonly state: RTCDtlsTransportState;\n    getRemoteCertificates(): ArrayBuffer[];\n    addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCDtlsTransport: {\n    prototype: RTCDtlsTransport;\n    new(): RTCDtlsTransport;\n};\n\ninterface RTCEncodedAudioFrame {\n    data: ArrayBuffer;\n    readonly timestamp: number;\n    getMetadata(): RTCEncodedAudioFrameMetadata;\n}\n\ndeclare var RTCEncodedAudioFrame: {\n    prototype: RTCEncodedAudioFrame;\n    new(): RTCEncodedAudioFrame;\n};\n\ninterface RTCEncodedVideoFrame {\n    data: ArrayBuffer;\n    readonly timestamp: number;\n    readonly type: RTCEncodedVideoFrameType;\n    getMetadata(): RTCEncodedVideoFrameMetadata;\n}\n\ndeclare var RTCEncodedVideoFrame: {\n    prototype: RTCEncodedVideoFrame;\n    new(): RTCEncodedVideoFrame;\n};\n\ninterface RTCError extends DOMException {\n    readonly errorDetail: RTCErrorDetailType;\n    readonly receivedAlert: number | null;\n    readonly sctpCauseCode: number | null;\n    readonly sdpLineNumber: number | null;\n    readonly sentAlert: number | null;\n}\n\ndeclare var RTCError: {\n    prototype: RTCError;\n    new(init: RTCErrorInit, message?: string): RTCError;\n};\n\ninterface RTCErrorEvent extends Event {\n    readonly error: RTCError;\n}\n\ndeclare var RTCErrorEvent: {\n    prototype: RTCErrorEvent;\n    new(type: string, eventInitDict: RTCErrorEventInit): RTCErrorEvent;\n};\n\n/** The RTCIceCandidate interface\\u2014part of the WebRTC API\\u2014represents a candidate Internet Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection. */\ninterface RTCIceCandidate {\n    readonly address: string | null;\n    readonly candidate: string;\n    readonly component: RTCIceComponent | null;\n    readonly foundation: string | null;\n    readonly port: number | null;\n    readonly priority: number | null;\n    readonly protocol: RTCIceProtocol | null;\n    readonly relatedAddress: string | null;\n    readonly relatedPort: number | null;\n    readonly sdpMLineIndex: number | null;\n    readonly sdpMid: string | null;\n    readonly tcpType: RTCIceTcpCandidateType | null;\n    readonly type: RTCIceCandidateType | null;\n    readonly usernameFragment: string | null;\n    toJSON(): RTCIceCandidateInit;\n}\n\ndeclare var RTCIceCandidate: {\n    prototype: RTCIceCandidate;\n    new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;\n};\n\ninterface RTCIceTransportEventMap {\n    \"gatheringstatechange\": Event;\n    \"statechange\": Event;\n}\n\n/** Provides access to information about the ICE transport layer over which the data is being sent and received. */\ninterface RTCIceTransport extends EventTarget {\n    readonly gatheringState: RTCIceGathererState;\n    ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;\n    onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;\n    readonly state: RTCIceTransportState;\n    addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCIceTransport: {\n    prototype: RTCIceTransport;\n    new(): RTCIceTransport;\n};\n\ninterface RTCPeerConnectionEventMap {\n    \"connectionstatechange\": Event;\n    \"datachannel\": RTCDataChannelEvent;\n    \"icecandidate\": RTCPeerConnectionIceEvent;\n    \"icecandidateerror\": Event;\n    \"iceconnectionstatechange\": Event;\n    \"icegatheringstatechange\": Event;\n    \"negotiationneeded\": Event;\n    \"signalingstatechange\": Event;\n    \"track\": RTCTrackEvent;\n}\n\n/** A WebRTC connection between the local computer and a remote peer. It provides methods to connect to a remote peer, maintain and monitor the connection, and close the connection once it's no longer needed. */\ninterface RTCPeerConnection extends EventTarget {\n    readonly canTrickleIceCandidates: boolean | null;\n    readonly connectionState: RTCPeerConnectionState;\n    readonly currentLocalDescription: RTCSessionDescription | null;\n    readonly currentRemoteDescription: RTCSessionDescription | null;\n    readonly iceConnectionState: RTCIceConnectionState;\n    readonly iceGatheringState: RTCIceGatheringState;\n    readonly localDescription: RTCSessionDescription | null;\n    onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n    ondatachannel: ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) | null;\n    onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null;\n    onicecandidateerror: ((this: RTCPeerConnection, ev: Event) => any) | null;\n    oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n    onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n    onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null;\n    onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n    ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null;\n    readonly pendingLocalDescription: RTCSessionDescription | null;\n    readonly pendingRemoteDescription: RTCSessionDescription | null;\n    readonly remoteDescription: RTCSessionDescription | null;\n    readonly sctp: RTCSctpTransport | null;\n    readonly signalingState: RTCSignalingState;\n    addIceCandidate(candidate?: RTCIceCandidateInit): Promise<void>;\n    /** @deprecated */\n    addIceCandidate(candidate: RTCIceCandidateInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;\n    addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender;\n    addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver;\n    close(): void;\n    createAnswer(options?: RTCAnswerOptions): Promise<RTCSessionDescriptionInit>;\n    /** @deprecated */\n    createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;\n    createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel;\n    createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;\n    /** @deprecated */\n    createOffer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise<void>;\n    getConfiguration(): RTCConfiguration;\n    getReceivers(): RTCRtpReceiver[];\n    getSenders(): RTCRtpSender[];\n    getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>;\n    getTransceivers(): RTCRtpTransceiver[];\n    removeTrack(sender: RTCRtpSender): void;\n    restartIce(): void;\n    setConfiguration(configuration?: RTCConfiguration): void;\n    setLocalDescription(description?: RTCLocalSessionDescriptionInit): Promise<void>;\n    /** @deprecated */\n    setLocalDescription(description: RTCLocalSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;\n    setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>;\n    /** @deprecated */\n    setRemoteDescription(description: RTCSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;\n    addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCPeerConnection: {\n    prototype: RTCPeerConnection;\n    new(configuration?: RTCConfiguration): RTCPeerConnection;\n    generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;\n};\n\ninterface RTCPeerConnectionIceErrorEvent extends Event {\n    readonly address: string | null;\n    readonly errorCode: number;\n    readonly errorText: string;\n    readonly port: number | null;\n    readonly url: string;\n}\n\ndeclare var RTCPeerConnectionIceErrorEvent: {\n    prototype: RTCPeerConnectionIceErrorEvent;\n    new(type: string, eventInitDict: RTCPeerConnectionIceErrorEventInit): RTCPeerConnectionIceErrorEvent;\n};\n\n/** Events that occurs in relation to ICE candidates with the target, usually an RTCPeerConnection. Only one event is of this type: icecandidate. */\ninterface RTCPeerConnectionIceEvent extends Event {\n    readonly candidate: RTCIceCandidate | null;\n}\n\ndeclare var RTCPeerConnectionIceEvent: {\n    prototype: RTCPeerConnectionIceEvent;\n    new(type: string, eventInitDict?: RTCPeerConnectionIceEventInit): RTCPeerConnectionIceEvent;\n};\n\n/** This WebRTC API interface manages the reception and decoding of data for a\\xA0MediaStreamTrack on an\\xA0RTCPeerConnection. */\ninterface RTCRtpReceiver {\n    readonly track: MediaStreamTrack;\n    readonly transport: RTCDtlsTransport | null;\n    getContributingSources(): RTCRtpContributingSource[];\n    getParameters(): RTCRtpReceiveParameters;\n    getStats(): Promise<RTCStatsReport>;\n    getSynchronizationSources(): RTCRtpSynchronizationSource[];\n}\n\ndeclare var RTCRtpReceiver: {\n    prototype: RTCRtpReceiver;\n    new(): RTCRtpReceiver;\n    getCapabilities(kind: string): RTCRtpCapabilities | null;\n};\n\n/** Provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer. */\ninterface RTCRtpSender {\n    readonly dtmf: RTCDTMFSender | null;\n    readonly track: MediaStreamTrack | null;\n    readonly transport: RTCDtlsTransport | null;\n    getParameters(): RTCRtpSendParameters;\n    getStats(): Promise<RTCStatsReport>;\n    replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>;\n    setParameters(parameters: RTCRtpSendParameters): Promise<void>;\n    setStreams(...streams: MediaStream[]): void;\n}\n\ndeclare var RTCRtpSender: {\n    prototype: RTCRtpSender;\n    new(): RTCRtpSender;\n    getCapabilities(kind: string): RTCRtpCapabilities | null;\n};\n\ninterface RTCRtpTransceiver {\n    readonly currentDirection: RTCRtpTransceiverDirection | null;\n    direction: RTCRtpTransceiverDirection;\n    readonly mid: string | null;\n    readonly receiver: RTCRtpReceiver;\n    readonly sender: RTCRtpSender;\n    setCodecPreferences(codecs: RTCRtpCodecCapability[]): void;\n    stop(): void;\n}\n\ndeclare var RTCRtpTransceiver: {\n    prototype: RTCRtpTransceiver;\n    new(): RTCRtpTransceiver;\n};\n\ninterface RTCSctpTransportEventMap {\n    \"statechange\": Event;\n}\n\ninterface RTCSctpTransport extends EventTarget {\n    readonly maxChannels: number | null;\n    readonly maxMessageSize: number;\n    onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null;\n    readonly state: RTCSctpTransportState;\n    readonly transport: RTCDtlsTransport;\n    addEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCSctpTransport: {\n    prototype: RTCSctpTransport;\n    new(): RTCSctpTransport;\n};\n\n/** One end of a connection\\u2014or potential connection\\u2014and how it's configured. Each RTCSessionDescription consists of a description type indicating which part of the offer/answer negotiation process it describes and of the SDP descriptor of the session. */\ninterface RTCSessionDescription {\n    readonly sdp: string;\n    readonly type: RTCSdpType;\n    toJSON(): any;\n}\n\ndeclare var RTCSessionDescription: {\n    prototype: RTCSessionDescription;\n    new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription;\n};\n\ninterface RTCStatsReport {\n    forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void;\n}\n\ndeclare var RTCStatsReport: {\n    prototype: RTCStatsReport;\n    new(): RTCStatsReport;\n};\n\ninterface RTCTrackEvent extends Event {\n    readonly receiver: RTCRtpReceiver;\n    readonly streams: ReadonlyArray<MediaStream>;\n    readonly track: MediaStreamTrack;\n    readonly transceiver: RTCRtpTransceiver;\n}\n\ndeclare var RTCTrackEvent: {\n    prototype: RTCTrackEvent;\n    new(type: string, eventInitDict: RTCTrackEventInit): RTCTrackEvent;\n};\n\ninterface RadioNodeList extends NodeList {\n    value: string;\n}\n\ndeclare var RadioNodeList: {\n    prototype: RadioNodeList;\n    new(): RadioNodeList;\n};\n\n/** A fragment of a document that can contain nodes and parts of text nodes. */\ninterface Range extends AbstractRange {\n    /** Returns the node, furthest away from the document, that is an ancestor of both range's start node and end node. */\n    readonly commonAncestorContainer: Node;\n    cloneContents(): DocumentFragment;\n    cloneRange(): Range;\n    collapse(toStart?: boolean): void;\n    compareBoundaryPoints(how: number, sourceRange: Range): number;\n    /** Returns \\u22121 if the point is before the range, 0 if the point is in the range, and 1 if the point is after the range. */\n    comparePoint(node: Node, offset: number): number;\n    createContextualFragment(fragment: string): DocumentFragment;\n    deleteContents(): void;\n    detach(): void;\n    extractContents(): DocumentFragment;\n    getBoundingClientRect(): DOMRect;\n    getClientRects(): DOMRectList;\n    insertNode(node: Node): void;\n    /** Returns whether range intersects node. */\n    intersectsNode(node: Node): boolean;\n    isPointInRange(node: Node, offset: number): boolean;\n    selectNode(node: Node): void;\n    selectNodeContents(node: Node): void;\n    setEnd(node: Node, offset: number): void;\n    setEndAfter(node: Node): void;\n    setEndBefore(node: Node): void;\n    setStart(node: Node, offset: number): void;\n    setStartAfter(node: Node): void;\n    setStartBefore(node: Node): void;\n    surroundContents(newParent: Node): void;\n    toString(): string;\n    readonly START_TO_START: 0;\n    readonly START_TO_END: 1;\n    readonly END_TO_END: 2;\n    readonly END_TO_START: 3;\n}\n\ndeclare var Range: {\n    prototype: Range;\n    new(): Range;\n    readonly START_TO_START: 0;\n    readonly START_TO_END: 1;\n    readonly END_TO_END: 2;\n    readonly END_TO_START: 3;\n    toString(): string;\n};\n\ninterface ReadableByteStreamController {\n    readonly byobRequest: ReadableStreamBYOBRequest | null;\n    readonly desiredSize: number | null;\n    close(): void;\n    enqueue(chunk: ArrayBufferView): void;\n    error(e?: any): void;\n}\n\ndeclare var ReadableByteStreamController: {\n    prototype: ReadableByteStreamController;\n    new(): ReadableByteStreamController;\n};\n\n/** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */\ninterface ReadableStream<R = any> {\n    readonly locked: boolean;\n    cancel(reason?: any): Promise<void>;\n    getReader(options: { mode: \"byob\" }): ReadableStreamBYOBReader;\n    getReader(): ReadableStreamDefaultReader<R>;\n    getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;\n    pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;\n    pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;\n    tee(): [ReadableStream<R>, ReadableStream<R>];\n}\n\ndeclare var ReadableStream: {\n    prototype: ReadableStream;\n    new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;\n    new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;\n    new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;\n};\n\ninterface ReadableStreamBYOBReader extends ReadableStreamGenericReader {\n    read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;\n    releaseLock(): void;\n}\n\ndeclare var ReadableStreamBYOBReader: {\n    prototype: ReadableStreamBYOBReader;\n    new(stream: ReadableStream): ReadableStreamBYOBReader;\n};\n\ninterface ReadableStreamBYOBRequest {\n    readonly view: ArrayBufferView | null;\n    respond(bytesWritten: number): void;\n    respondWithNewView(view: ArrayBufferView): void;\n}\n\ndeclare var ReadableStreamBYOBRequest: {\n    prototype: ReadableStreamBYOBRequest;\n    new(): ReadableStreamBYOBRequest;\n};\n\ninterface ReadableStreamDefaultController<R = any> {\n    readonly desiredSize: number | null;\n    close(): void;\n    enqueue(chunk?: R): void;\n    error(e?: any): void;\n}\n\ndeclare var ReadableStreamDefaultController: {\n    prototype: ReadableStreamDefaultController;\n    new(): ReadableStreamDefaultController;\n};\n\ninterface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {\n    read(): Promise<ReadableStreamReadResult<R>>;\n    releaseLock(): void;\n}\n\ndeclare var ReadableStreamDefaultReader: {\n    prototype: ReadableStreamDefaultReader;\n    new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;\n};\n\ninterface ReadableStreamGenericReader {\n    readonly closed: Promise<undefined>;\n    cancel(reason?: any): Promise<void>;\n}\n\ninterface RemotePlaybackEventMap {\n    \"connect\": Event;\n    \"connecting\": Event;\n    \"disconnect\": Event;\n}\n\ninterface RemotePlayback extends EventTarget {\n    onconnect: ((this: RemotePlayback, ev: Event) => any) | null;\n    onconnecting: ((this: RemotePlayback, ev: Event) => any) | null;\n    ondisconnect: ((this: RemotePlayback, ev: Event) => any) | null;\n    readonly state: RemotePlaybackState;\n    cancelWatchAvailability(id?: number): Promise<void>;\n    prompt(): Promise<void>;\n    watchAvailability(callback: RemotePlaybackAvailabilityCallback): Promise<number>;\n    addEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RemotePlayback: {\n    prototype: RemotePlayback;\n    new(): RemotePlayback;\n};\n\n/** This Fetch API interface represents a resource request. */\ninterface Request extends Body {\n    /** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. */\n    readonly cache: RequestCache;\n    /** Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. */\n    readonly credentials: RequestCredentials;\n    /** Returns the kind of resource requested by request, e.g., \"document\" or \"script\". */\n    readonly destination: RequestDestination;\n    /** Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the \"Host\" header. */\n    readonly headers: Headers;\n    /** Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI] */\n    readonly integrity: string;\n    /** Returns a boolean indicating whether or not request can outlive the global in which it was created. */\n    readonly keepalive: boolean;\n    /** Returns request's HTTP method, which is \"GET\" by default. */\n    readonly method: string;\n    /** Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs. */\n    readonly mode: RequestMode;\n    /** Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default. */\n    readonly redirect: RequestRedirect;\n    /** Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and \"about:client\" when defaulting to the global's default. This is used during fetching to determine the value of the \\`Referer\\` header of the request being made. */\n    readonly referrer: string;\n    /** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer. */\n    readonly referrerPolicy: ReferrerPolicy;\n    /** Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. */\n    readonly signal: AbortSignal;\n    /** Returns the URL of request as a string. */\n    readonly url: string;\n    clone(): Request;\n}\n\ndeclare var Request: {\n    prototype: Request;\n    new(input: RequestInfo | URL, init?: RequestInit): Request;\n};\n\ninterface ResizeObserver {\n    disconnect(): void;\n    observe(target: Element, options?: ResizeObserverOptions): void;\n    unobserve(target: Element): void;\n}\n\ndeclare var ResizeObserver: {\n    prototype: ResizeObserver;\n    new(callback: ResizeObserverCallback): ResizeObserver;\n};\n\ninterface ResizeObserverEntry {\n    readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;\n    readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;\n    readonly contentRect: DOMRectReadOnly;\n    readonly devicePixelContentBoxSize: ReadonlyArray<ResizeObserverSize>;\n    readonly target: Element;\n}\n\ndeclare var ResizeObserverEntry: {\n    prototype: ResizeObserverEntry;\n    new(): ResizeObserverEntry;\n};\n\ninterface ResizeObserverSize {\n    readonly blockSize: number;\n    readonly inlineSize: number;\n}\n\ndeclare var ResizeObserverSize: {\n    prototype: ResizeObserverSize;\n    new(): ResizeObserverSize;\n};\n\n/** This Fetch API interface represents the response to a request. */\ninterface Response extends Body {\n    readonly headers: Headers;\n    readonly ok: boolean;\n    readonly redirected: boolean;\n    readonly status: number;\n    readonly statusText: string;\n    readonly type: ResponseType;\n    readonly url: string;\n    clone(): Response;\n}\n\ndeclare var Response: {\n    prototype: Response;\n    new(body?: BodyInit | null, init?: ResponseInit): Response;\n    error(): Response;\n    redirect(url: string | URL, status?: number): Response;\n};\n\n/** Provides access to the properties of <a> element, as well as methods to manipulate them. */\ninterface SVGAElement extends SVGGraphicsElement, SVGURIReference {\n    rel: string;\n    readonly relList: DOMTokenList;\n    readonly target: SVGAnimatedString;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAElement: {\n    prototype: SVGAElement;\n    new(): SVGAElement;\n};\n\n/** Used to represent a value that can be an <angle> or <number> value. An SVGAngle reflected through the animVal attribute is always read only. */\ninterface SVGAngle {\n    readonly unitType: number;\n    value: number;\n    valueAsString: string;\n    valueInSpecifiedUnits: number;\n    convertToSpecifiedUnits(unitType: number): void;\n    newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;\n    readonly SVG_ANGLETYPE_UNKNOWN: 0;\n    readonly SVG_ANGLETYPE_UNSPECIFIED: 1;\n    readonly SVG_ANGLETYPE_DEG: 2;\n    readonly SVG_ANGLETYPE_RAD: 3;\n    readonly SVG_ANGLETYPE_GRAD: 4;\n}\n\ndeclare var SVGAngle: {\n    prototype: SVGAngle;\n    new(): SVGAngle;\n    readonly SVG_ANGLETYPE_UNKNOWN: 0;\n    readonly SVG_ANGLETYPE_UNSPECIFIED: 1;\n    readonly SVG_ANGLETYPE_DEG: 2;\n    readonly SVG_ANGLETYPE_RAD: 3;\n    readonly SVG_ANGLETYPE_GRAD: 4;\n};\n\ninterface SVGAnimateElement extends SVGAnimationElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimateElement: {\n    prototype: SVGAnimateElement;\n    new(): SVGAnimateElement;\n};\n\ninterface SVGAnimateMotionElement extends SVGAnimationElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimateMotionElement: {\n    prototype: SVGAnimateMotionElement;\n    new(): SVGAnimateMotionElement;\n};\n\ninterface SVGAnimateTransformElement extends SVGAnimationElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimateTransformElement: {\n    prototype: SVGAnimateTransformElement;\n    new(): SVGAnimateTransformElement;\n};\n\n/** Used for attributes of basic type <angle> which can be animated. */\ninterface SVGAnimatedAngle {\n    readonly animVal: SVGAngle;\n    readonly baseVal: SVGAngle;\n}\n\ndeclare var SVGAnimatedAngle: {\n    prototype: SVGAnimatedAngle;\n    new(): SVGAnimatedAngle;\n};\n\n/** Used for attributes of type boolean which can be animated. */\ninterface SVGAnimatedBoolean {\n    readonly animVal: boolean;\n    baseVal: boolean;\n}\n\ndeclare var SVGAnimatedBoolean: {\n    prototype: SVGAnimatedBoolean;\n    new(): SVGAnimatedBoolean;\n};\n\n/** Used for attributes whose value must be a constant from a particular enumeration and which can be animated. */\ninterface SVGAnimatedEnumeration {\n    readonly animVal: number;\n    baseVal: number;\n}\n\ndeclare var SVGAnimatedEnumeration: {\n    prototype: SVGAnimatedEnumeration;\n    new(): SVGAnimatedEnumeration;\n};\n\n/** Used for attributes of basic type <integer> which can be animated. */\ninterface SVGAnimatedInteger {\n    readonly animVal: number;\n    baseVal: number;\n}\n\ndeclare var SVGAnimatedInteger: {\n    prototype: SVGAnimatedInteger;\n    new(): SVGAnimatedInteger;\n};\n\n/** Used for attributes of basic type <length> which can be animated. */\ninterface SVGAnimatedLength {\n    readonly animVal: SVGLength;\n    readonly baseVal: SVGLength;\n}\n\ndeclare var SVGAnimatedLength: {\n    prototype: SVGAnimatedLength;\n    new(): SVGAnimatedLength;\n};\n\n/** Used for attributes of type SVGLengthList which can be animated. */\ninterface SVGAnimatedLengthList {\n    readonly animVal: SVGLengthList;\n    readonly baseVal: SVGLengthList;\n}\n\ndeclare var SVGAnimatedLengthList: {\n    prototype: SVGAnimatedLengthList;\n    new(): SVGAnimatedLengthList;\n};\n\n/** Used for attributes of basic type <Number> which can be animated. */\ninterface SVGAnimatedNumber {\n    readonly animVal: number;\n    baseVal: number;\n}\n\ndeclare var SVGAnimatedNumber: {\n    prototype: SVGAnimatedNumber;\n    new(): SVGAnimatedNumber;\n};\n\n/** The SVGAnimatedNumber interface is used for attributes which take a list of numbers and which can be animated. */\ninterface SVGAnimatedNumberList {\n    readonly animVal: SVGNumberList;\n    readonly baseVal: SVGNumberList;\n}\n\ndeclare var SVGAnimatedNumberList: {\n    prototype: SVGAnimatedNumberList;\n    new(): SVGAnimatedNumberList;\n};\n\ninterface SVGAnimatedPoints {\n    readonly animatedPoints: SVGPointList;\n    readonly points: SVGPointList;\n}\n\n/** Used for attributes of type SVGPreserveAspectRatio which can be animated. */\ninterface SVGAnimatedPreserveAspectRatio {\n    readonly animVal: SVGPreserveAspectRatio;\n    readonly baseVal: SVGPreserveAspectRatio;\n}\n\ndeclare var SVGAnimatedPreserveAspectRatio: {\n    prototype: SVGAnimatedPreserveAspectRatio;\n    new(): SVGAnimatedPreserveAspectRatio;\n};\n\n/** Used for attributes of basic SVGRect which can be animated. */\ninterface SVGAnimatedRect {\n    readonly animVal: DOMRectReadOnly;\n    readonly baseVal: DOMRect;\n}\n\ndeclare var SVGAnimatedRect: {\n    prototype: SVGAnimatedRect;\n    new(): SVGAnimatedRect;\n};\n\n/** The SVGAnimatedString\\xA0interface represents string attributes which can be animated from each SVG declaration. You need to create SVG attribute before doing anything else, everything should be declared\\xA0inside this. */\ninterface SVGAnimatedString {\n    readonly animVal: string;\n    baseVal: string;\n}\n\ndeclare var SVGAnimatedString: {\n    prototype: SVGAnimatedString;\n    new(): SVGAnimatedString;\n};\n\n/** Used for attributes which take a list of numbers and which can be animated. */\ninterface SVGAnimatedTransformList {\n    readonly animVal: SVGTransformList;\n    readonly baseVal: SVGTransformList;\n}\n\ndeclare var SVGAnimatedTransformList: {\n    prototype: SVGAnimatedTransformList;\n    new(): SVGAnimatedTransformList;\n};\n\ninterface SVGAnimationElement extends SVGElement, SVGTests {\n    readonly targetElement: SVGElement | null;\n    beginElement(): void;\n    beginElementAt(offset: number): void;\n    endElement(): void;\n    endElementAt(offset: number): void;\n    getCurrentTime(): number;\n    getSimpleDuration(): number;\n    getStartTime(): number;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimationElement: {\n    prototype: SVGAnimationElement;\n    new(): SVGAnimationElement;\n};\n\n/** An interface for the <circle> element. The circle element is defined by the cx and cy attributes that denote the coordinates of the centre of the circle. */\ninterface SVGCircleElement extends SVGGeometryElement {\n    readonly cx: SVGAnimatedLength;\n    readonly cy: SVGAnimatedLength;\n    readonly r: SVGAnimatedLength;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGCircleElement: {\n    prototype: SVGCircleElement;\n    new(): SVGCircleElement;\n};\n\n/** Provides access to the properties of <clipPath> elements, as well as methods to manipulate them. */\ninterface SVGClipPathElement extends SVGElement {\n    readonly clipPathUnits: SVGAnimatedEnumeration;\n    readonly transform: SVGAnimatedTransformList;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGClipPathElement: {\n    prototype: SVGClipPathElement;\n    new(): SVGClipPathElement;\n};\n\n/** A base interface used by the component transfer function interfaces. */\ninterface SVGComponentTransferFunctionElement extends SVGElement {\n    readonly amplitude: SVGAnimatedNumber;\n    readonly exponent: SVGAnimatedNumber;\n    readonly intercept: SVGAnimatedNumber;\n    readonly offset: SVGAnimatedNumber;\n    readonly slope: SVGAnimatedNumber;\n    readonly tableValues: SVGAnimatedNumberList;\n    readonly type: SVGAnimatedEnumeration;\n    readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0;\n    readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1;\n    readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2;\n    readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3;\n    readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4;\n    readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGComponentTransferFunctionElement: {\n    prototype: SVGComponentTransferFunctionElement;\n    new(): SVGComponentTransferFunctionElement;\n    readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0;\n    readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1;\n    readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2;\n    readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3;\n    readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4;\n    readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5;\n};\n\n/** Corresponds to the <defs> element. */\ninterface SVGDefsElement extends SVGGraphicsElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGDefsElement: {\n    prototype: SVGDefsElement;\n    new(): SVGDefsElement;\n};\n\n/** Corresponds to the <desc> element. */\ninterface SVGDescElement extends SVGElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGDescElement: {\n    prototype: SVGDescElement;\n    new(): SVGDescElement;\n};\n\ninterface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {\n}\n\n/** All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface. */\ninterface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {\n    /** @deprecated */\n    readonly className: any;\n    readonly ownerSVGElement: SVGSVGElement | null;\n    readonly viewportElement: SVGElement | null;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGElement: {\n    prototype: SVGElement;\n    new(): SVGElement;\n};\n\n/** Provides access to the properties of <ellipse> elements. */\ninterface SVGEllipseElement extends SVGGeometryElement {\n    readonly cx: SVGAnimatedLength;\n    readonly cy: SVGAnimatedLength;\n    readonly rx: SVGAnimatedLength;\n    readonly ry: SVGAnimatedLength;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGEllipseElement: {\n    prototype: SVGEllipseElement;\n    new(): SVGEllipseElement;\n};\n\n/** Corresponds to the <feBlend> element. */\ninterface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly in1: SVGAnimatedString;\n    readonly in2: SVGAnimatedString;\n    readonly mode: SVGAnimatedEnumeration;\n    readonly SVG_FEBLEND_MODE_UNKNOWN: 0;\n    readonly SVG_FEBLEND_MODE_NORMAL: 1;\n    readonly SVG_FEBLEND_MODE_MULTIPLY: 2;\n    readonly SVG_FEBLEND_MODE_SCREEN: 3;\n    readonly SVG_FEBLEND_MODE_DARKEN: 4;\n    readonly SVG_FEBLEND_MODE_LIGHTEN: 5;\n    readonly SVG_FEBLEND_MODE_OVERLAY: 6;\n    readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7;\n    readonly SVG_FEBLEND_MODE_COLOR_BURN: 8;\n    readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9;\n    readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10;\n    readonly SVG_FEBLEND_MODE_DIFFERENCE: 11;\n    readonly SVG_FEBLEND_MODE_EXCLUSION: 12;\n    readonly SVG_FEBLEND_MODE_HUE: 13;\n    readonly SVG_FEBLEND_MODE_SATURATION: 14;\n    readonly SVG_FEBLEND_MODE_COLOR: 15;\n    readonly SVG_FEBLEND_MODE_LUMINOSITY: 16;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEBlendElement: {\n    prototype: SVGFEBlendElement;\n    new(): SVGFEBlendElement;\n    readonly SVG_FEBLEND_MODE_UNKNOWN: 0;\n    readonly SVG_FEBLEND_MODE_NORMAL: 1;\n    readonly SVG_FEBLEND_MODE_MULTIPLY: 2;\n    readonly SVG_FEBLEND_MODE_SCREEN: 3;\n    readonly SVG_FEBLEND_MODE_DARKEN: 4;\n    readonly SVG_FEBLEND_MODE_LIGHTEN: 5;\n    readonly SVG_FEBLEND_MODE_OVERLAY: 6;\n    readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7;\n    readonly SVG_FEBLEND_MODE_COLOR_BURN: 8;\n    readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9;\n    readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10;\n    readonly SVG_FEBLEND_MODE_DIFFERENCE: 11;\n    readonly SVG_FEBLEND_MODE_EXCLUSION: 12;\n    readonly SVG_FEBLEND_MODE_HUE: 13;\n    readonly SVG_FEBLEND_MODE_SATURATION: 14;\n    readonly SVG_FEBLEND_MODE_COLOR: 15;\n    readonly SVG_FEBLEND_MODE_LUMINOSITY: 16;\n};\n\n/** Corresponds to the <feColorMatrix> element. */\ninterface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly in1: SVGAnimatedString;\n    readonly type: SVGAnimatedEnumeration;\n    readonly values: SVGAnimatedNumberList;\n    readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0;\n    readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1;\n    readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2;\n    readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3;\n    readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEColorMatrixElement: {\n    prototype: SVGFEColorMatrixElement;\n    new(): SVGFEColorMatrixElement;\n    readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0;\n    readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1;\n    readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2;\n    readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3;\n    readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4;\n};\n\n/** Corresponds to the <feComponentTransfer> element. */\ninterface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly in1: SVGAnimatedString;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEComponentTransferElement: {\n    prototype: SVGFEComponentTransferElement;\n    new(): SVGFEComponentTransferElement;\n};\n\n/** Corresponds to the <feComposite> element. */\ninterface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly in1: SVGAnimatedString;\n    readonly in2: SVGAnimatedString;\n    readonly k1: SVGAnimatedNumber;\n    readonly k2: SVGAnimatedNumber;\n    readonly k3: SVGAnimatedNumber;\n    readonly k4: SVGAnimatedNumber;\n    readonly operator: SVGAnimatedEnumeration;\n    readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0;\n    readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1;\n    readonly SVG_FECOMPOSITE_OPERATOR_IN: 2;\n    readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3;\n    readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4;\n    readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5;\n    readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFECompositeElement: {\n    prototype: SVGFECompositeElement;\n    new(): SVGFECompositeElement;\n    readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0;\n    readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1;\n    readonly SVG_FECOMPOSITE_OPERATOR_IN: 2;\n    readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3;\n    readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4;\n    readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5;\n    readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6;\n};\n\n/** Corresponds to the <feConvolveMatrix> element. */\ninterface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly bias: SVGAnimatedNumber;\n    readonly divisor: SVGAnimatedNumber;\n    readonly edgeMode: SVGAnimatedEnumeration;\n    readonly in1: SVGAnimatedString;\n    readonly kernelMatrix: SVGAnimatedNumberList;\n    readonly kernelUnitLengthX: SVGAnimatedNumber;\n    readonly kernelUnitLengthY: SVGAnimatedNumber;\n    readonly orderX: SVGAnimatedInteger;\n    readonly orderY: SVGAnimatedInteger;\n    readonly preserveAlpha: SVGAnimatedBoolean;\n    readonly targetX: SVGAnimatedInteger;\n    readonly targetY: SVGAnimatedInteger;\n    readonly SVG_EDGEMODE_UNKNOWN: 0;\n    readonly SVG_EDGEMODE_DUPLICATE: 1;\n    readonly SVG_EDGEMODE_WRAP: 2;\n    readonly SVG_EDGEMODE_NONE: 3;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEConvolveMatrixElement: {\n    prototype: SVGFEConvolveMatrixElement;\n    new(): SVGFEConvolveMatrixElement;\n    readonly SVG_EDGEMODE_UNKNOWN: 0;\n    readonly SVG_EDGEMODE_DUPLICATE: 1;\n    readonly SVG_EDGEMODE_WRAP: 2;\n    readonly SVG_EDGEMODE_NONE: 3;\n};\n\n/** Corresponds to the <feDiffuseLighting> element. */\ninterface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly diffuseConstant: SVGAnimatedNumber;\n    readonly in1: SVGAnimatedString;\n    readonly kernelUnitLengthX: SVGAnimatedNumber;\n    readonly kernelUnitLengthY: SVGAnimatedNumber;\n    readonly surfaceScale: SVGAnimatedNumber;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDiffuseLightingElement: {\n    prototype: SVGFEDiffuseLightingElement;\n    new(): SVGFEDiffuseLightingElement;\n};\n\n/** Corresponds to the <feDisplacementMap> element. */\ninterface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly in1: SVGAnimatedString;\n    readonly in2: SVGAnimatedString;\n    readonly scale: SVGAnimatedNumber;\n    readonly xChannelSelector: SVGAnimatedEnumeration;\n    readonly yChannelSelector: SVGAnimatedEnumeration;\n    readonly SVG_CHANNEL_UNKNOWN: 0;\n    readonly SVG_CHANNEL_R: 1;\n    readonly SVG_CHANNEL_G: 2;\n    readonly SVG_CHANNEL_B: 3;\n    readonly SVG_CHANNEL_A: 4;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDisplacementMapElement: {\n    prototype: SVGFEDisplacementMapElement;\n    new(): SVGFEDisplacementMapElement;\n    readonly SVG_CHANNEL_UNKNOWN: 0;\n    readonly SVG_CHANNEL_R: 1;\n    readonly SVG_CHANNEL_G: 2;\n    readonly SVG_CHANNEL_B: 3;\n    readonly SVG_CHANNEL_A: 4;\n};\n\n/** Corresponds to the <feDistantLight> element. */\ninterface SVGFEDistantLightElement extends SVGElement {\n    readonly azimuth: SVGAnimatedNumber;\n    readonly elevation: SVGAnimatedNumber;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDistantLightElement: {\n    prototype: SVGFEDistantLightElement;\n    new(): SVGFEDistantLightElement;\n};\n\ninterface SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly dx: SVGAnimatedNumber;\n    readonly dy: SVGAnimatedNumber;\n    readonly in1: SVGAnimatedString;\n    readonly stdDeviationX: SVGAnimatedNumber;\n    readonly stdDeviationY: SVGAnimatedNumber;\n    setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDropShadowElement: {\n    prototype: SVGFEDropShadowElement;\n    new(): SVGFEDropShadowElement;\n};\n\n/** Corresponds to the <feFlood> element. */\ninterface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFloodElement: {\n    prototype: SVGFEFloodElement;\n    new(): SVGFEFloodElement;\n};\n\n/** Corresponds to the <feFuncA> element. */\ninterface SVGFEFuncAElement extends SVGComponentTransferFunctionElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncAElement: {\n    prototype: SVGFEFuncAElement;\n    new(): SVGFEFuncAElement;\n};\n\n/** Corresponds to the <feFuncB> element. */\ninterface SVGFEFuncBElement extends SVGComponentTransferFunctionElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncBElement: {\n    prototype: SVGFEFuncBElement;\n    new(): SVGFEFuncBElement;\n};\n\n/** Corresponds to the <feFuncG> element. */\ninterface SVGFEFuncGElement extends SVGComponentTransferFunctionElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncGElement: {\n    prototype: SVGFEFuncGElement;\n    new(): SVGFEFuncGElement;\n};\n\n/** Corresponds to the <feFuncR> element. */\ninterface SVGFEFuncRElement extends SVGComponentTransferFunctionElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncRElement: {\n    prototype: SVGFEFuncRElement;\n    new(): SVGFEFuncRElement;\n};\n\n/** Corresponds to the <feGaussianBlur> element. */\ninterface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly in1: SVGAnimatedString;\n    readonly stdDeviationX: SVGAnimatedNumber;\n    readonly stdDeviationY: SVGAnimatedNumber;\n    setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEGaussianBlurElement: {\n    prototype: SVGFEGaussianBlurElement;\n    new(): SVGFEGaussianBlurElement;\n};\n\n/** Corresponds to the <feImage> element. */\ninterface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference {\n    readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEImageElement: {\n    prototype: SVGFEImageElement;\n    new(): SVGFEImageElement;\n};\n\n/** Corresponds to the <feMerge> element. */\ninterface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEMergeElement: {\n    prototype: SVGFEMergeElement;\n    new(): SVGFEMergeElement;\n};\n\n/** Corresponds to the <feMergeNode> element. */\ninterface SVGFEMergeNodeElement extends SVGElement {\n    readonly in1: SVGAnimatedString;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEMergeNodeElement: {\n    prototype: SVGFEMergeNodeElement;\n    new(): SVGFEMergeNodeElement;\n};\n\n/** Corresponds to the <feMorphology> element. */\ninterface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly in1: SVGAnimatedString;\n    readonly operator: SVGAnimatedEnumeration;\n    readonly radiusX: SVGAnimatedNumber;\n    readonly radiusY: SVGAnimatedNumber;\n    readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0;\n    readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1;\n    readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEMorphologyElement: {\n    prototype: SVGFEMorphologyElement;\n    new(): SVGFEMorphologyElement;\n    readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0;\n    readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1;\n    readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2;\n};\n\n/** Corresponds to the <feOffset> element. */\ninterface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly dx: SVGAnimatedNumber;\n    readonly dy: SVGAnimatedNumber;\n    readonly in1: SVGAnimatedString;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEOffsetElement: {\n    prototype: SVGFEOffsetElement;\n    new(): SVGFEOffsetElement;\n};\n\n/** Corresponds to the <fePointLight> element. */\ninterface SVGFEPointLightElement extends SVGElement {\n    readonly x: SVGAnimatedNumber;\n    readonly y: SVGAnimatedNumber;\n    readonly z: SVGAnimatedNumber;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEPointLightElement: {\n    prototype: SVGFEPointLightElement;\n    new(): SVGFEPointLightElement;\n};\n\n/** Corresponds to the <feSpecularLighting> element. */\ninterface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly in1: SVGAnimatedString;\n    readonly kernelUnitLengthX: SVGAnimatedNumber;\n    readonly kernelUnitLengthY: SVGAnimatedNumber;\n    readonly specularConstant: SVGAnimatedNumber;\n    readonly specularExponent: SVGAnimatedNumber;\n    readonly surfaceScale: SVGAnimatedNumber;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFESpecularLightingElement: {\n    prototype: SVGFESpecularLightingElement;\n    new(): SVGFESpecularLightingElement;\n};\n\n/** Corresponds to the <feSpotLight> element. */\ninterface SVGFESpotLightElement extends SVGElement {\n    readonly limitingConeAngle: SVGAnimatedNumber;\n    readonly pointsAtX: SVGAnimatedNumber;\n    readonly pointsAtY: SVGAnimatedNumber;\n    readonly pointsAtZ: SVGAnimatedNumber;\n    readonly specularExponent: SVGAnimatedNumber;\n    readonly x: SVGAnimatedNumber;\n    readonly y: SVGAnimatedNumber;\n    readonly z: SVGAnimatedNumber;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFESpotLightElement: {\n    prototype: SVGFESpotLightElement;\n    new(): SVGFESpotLightElement;\n};\n\n/** Corresponds to the <feTile> element. */\ninterface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly in1: SVGAnimatedString;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFETileElement: {\n    prototype: SVGFETileElement;\n    new(): SVGFETileElement;\n};\n\n/** Corresponds to the <feTurbulence> element. */\ninterface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly baseFrequencyX: SVGAnimatedNumber;\n    readonly baseFrequencyY: SVGAnimatedNumber;\n    readonly numOctaves: SVGAnimatedInteger;\n    readonly seed: SVGAnimatedNumber;\n    readonly stitchTiles: SVGAnimatedEnumeration;\n    readonly type: SVGAnimatedEnumeration;\n    readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0;\n    readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1;\n    readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2;\n    readonly SVG_STITCHTYPE_UNKNOWN: 0;\n    readonly SVG_STITCHTYPE_STITCH: 1;\n    readonly SVG_STITCHTYPE_NOSTITCH: 2;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFETurbulenceElement: {\n    prototype: SVGFETurbulenceElement;\n    new(): SVGFETurbulenceElement;\n    readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0;\n    readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1;\n    readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2;\n    readonly SVG_STITCHTYPE_UNKNOWN: 0;\n    readonly SVG_STITCHTYPE_STITCH: 1;\n    readonly SVG_STITCHTYPE_NOSTITCH: 2;\n};\n\n/** Provides access to the properties of <filter> elements, as well as methods to manipulate them. */\ninterface SVGFilterElement extends SVGElement, SVGURIReference {\n    readonly filterUnits: SVGAnimatedEnumeration;\n    readonly height: SVGAnimatedLength;\n    readonly primitiveUnits: SVGAnimatedEnumeration;\n    readonly width: SVGAnimatedLength;\n    readonly x: SVGAnimatedLength;\n    readonly y: SVGAnimatedLength;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFilterElement: {\n    prototype: SVGFilterElement;\n    new(): SVGFilterElement;\n};\n\ninterface SVGFilterPrimitiveStandardAttributes {\n    readonly height: SVGAnimatedLength;\n    readonly result: SVGAnimatedString;\n    readonly width: SVGAnimatedLength;\n    readonly x: SVGAnimatedLength;\n    readonly y: SVGAnimatedLength;\n}\n\ninterface SVGFitToViewBox {\n    readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;\n    readonly viewBox: SVGAnimatedRect;\n}\n\n/** Provides access to the properties of <foreignObject> elements, as well as methods to manipulate them. */\ninterface SVGForeignObjectElement extends SVGGraphicsElement {\n    readonly height: SVGAnimatedLength;\n    readonly width: SVGAnimatedLength;\n    readonly x: SVGAnimatedLength;\n    readonly y: SVGAnimatedLength;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGForeignObjectElement: {\n    prototype: SVGForeignObjectElement;\n    new(): SVGForeignObjectElement;\n};\n\n/** Corresponds to the <g> element. */\ninterface SVGGElement extends SVGGraphicsElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGGElement: {\n    prototype: SVGGElement;\n    new(): SVGGElement;\n};\n\ninterface SVGGeometryElement extends SVGGraphicsElement {\n    readonly pathLength: SVGAnimatedNumber;\n    getPointAtLength(distance: number): DOMPoint;\n    getTotalLength(): number;\n    isPointInFill(point?: DOMPointInit): boolean;\n    isPointInStroke(point?: DOMPointInit): boolean;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGGeometryElement: {\n    prototype: SVGGeometryElement;\n    new(): SVGGeometryElement;\n};\n\n/** The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement. */\ninterface SVGGradientElement extends SVGElement, SVGURIReference {\n    readonly gradientTransform: SVGAnimatedTransformList;\n    readonly gradientUnits: SVGAnimatedEnumeration;\n    readonly spreadMethod: SVGAnimatedEnumeration;\n    readonly SVG_SPREADMETHOD_UNKNOWN: 0;\n    readonly SVG_SPREADMETHOD_PAD: 1;\n    readonly SVG_SPREADMETHOD_REFLECT: 2;\n    readonly SVG_SPREADMETHOD_REPEAT: 3;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGGradientElement: {\n    prototype: SVGGradientElement;\n    new(): SVGGradientElement;\n    readonly SVG_SPREADMETHOD_UNKNOWN: 0;\n    readonly SVG_SPREADMETHOD_PAD: 1;\n    readonly SVG_SPREADMETHOD_REFLECT: 2;\n    readonly SVG_SPREADMETHOD_REPEAT: 3;\n};\n\n/** SVG elements whose primary purpose is to directly render graphics into a group. */\ninterface SVGGraphicsElement extends SVGElement, SVGTests {\n    readonly transform: SVGAnimatedTransformList;\n    getBBox(options?: SVGBoundingBoxOptions): DOMRect;\n    getCTM(): DOMMatrix | null;\n    getScreenCTM(): DOMMatrix | null;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGGraphicsElement: {\n    prototype: SVGGraphicsElement;\n    new(): SVGGraphicsElement;\n};\n\n/** Corresponds to the <image> element. */\ninterface SVGImageElement extends SVGGraphicsElement, SVGURIReference {\n    readonly height: SVGAnimatedLength;\n    readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;\n    readonly width: SVGAnimatedLength;\n    readonly x: SVGAnimatedLength;\n    readonly y: SVGAnimatedLength;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGImageElement: {\n    prototype: SVGImageElement;\n    new(): SVGImageElement;\n};\n\n/** Correspond to the <length> basic data type. */\ninterface SVGLength {\n    readonly unitType: number;\n    value: number;\n    valueAsString: string;\n    valueInSpecifiedUnits: number;\n    convertToSpecifiedUnits(unitType: number): void;\n    newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;\n    readonly SVG_LENGTHTYPE_UNKNOWN: 0;\n    readonly SVG_LENGTHTYPE_NUMBER: 1;\n    readonly SVG_LENGTHTYPE_PERCENTAGE: 2;\n    readonly SVG_LENGTHTYPE_EMS: 3;\n    readonly SVG_LENGTHTYPE_EXS: 4;\n    readonly SVG_LENGTHTYPE_PX: 5;\n    readonly SVG_LENGTHTYPE_CM: 6;\n    readonly SVG_LENGTHTYPE_MM: 7;\n    readonly SVG_LENGTHTYPE_IN: 8;\n    readonly SVG_LENGTHTYPE_PT: 9;\n    readonly SVG_LENGTHTYPE_PC: 10;\n}\n\ndeclare var SVGLength: {\n    prototype: SVGLength;\n    new(): SVGLength;\n    readonly SVG_LENGTHTYPE_UNKNOWN: 0;\n    readonly SVG_LENGTHTYPE_NUMBER: 1;\n    readonly SVG_LENGTHTYPE_PERCENTAGE: 2;\n    readonly SVG_LENGTHTYPE_EMS: 3;\n    readonly SVG_LENGTHTYPE_EXS: 4;\n    readonly SVG_LENGTHTYPE_PX: 5;\n    readonly SVG_LENGTHTYPE_CM: 6;\n    readonly SVG_LENGTHTYPE_MM: 7;\n    readonly SVG_LENGTHTYPE_IN: 8;\n    readonly SVG_LENGTHTYPE_PT: 9;\n    readonly SVG_LENGTHTYPE_PC: 10;\n};\n\n/** The SVGLengthList defines a list of SVGLength objects. */\ninterface SVGLengthList {\n    readonly length: number;\n    readonly numberOfItems: number;\n    appendItem(newItem: SVGLength): SVGLength;\n    clear(): void;\n    getItem(index: number): SVGLength;\n    initialize(newItem: SVGLength): SVGLength;\n    insertItemBefore(newItem: SVGLength, index: number): SVGLength;\n    removeItem(index: number): SVGLength;\n    replaceItem(newItem: SVGLength, index: number): SVGLength;\n    [index: number]: SVGLength;\n}\n\ndeclare var SVGLengthList: {\n    prototype: SVGLengthList;\n    new(): SVGLengthList;\n};\n\n/** Provides access to the properties of <line> elements, as well as methods to manipulate them. */\ninterface SVGLineElement extends SVGGeometryElement {\n    readonly x1: SVGAnimatedLength;\n    readonly x2: SVGAnimatedLength;\n    readonly y1: SVGAnimatedLength;\n    readonly y2: SVGAnimatedLength;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGLineElement: {\n    prototype: SVGLineElement;\n    new(): SVGLineElement;\n};\n\n/** Corresponds to the <linearGradient> element. */\ninterface SVGLinearGradientElement extends SVGGradientElement {\n    readonly x1: SVGAnimatedLength;\n    readonly x2: SVGAnimatedLength;\n    readonly y1: SVGAnimatedLength;\n    readonly y2: SVGAnimatedLength;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGLinearGradientElement: {\n    prototype: SVGLinearGradientElement;\n    new(): SVGLinearGradientElement;\n};\n\ninterface SVGMPathElement extends SVGElement, SVGURIReference {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGMPathElement: {\n    prototype: SVGMPathElement;\n    new(): SVGMPathElement;\n};\n\ninterface SVGMarkerElement extends SVGElement, SVGFitToViewBox {\n    readonly markerHeight: SVGAnimatedLength;\n    readonly markerUnits: SVGAnimatedEnumeration;\n    readonly markerWidth: SVGAnimatedLength;\n    readonly orientAngle: SVGAnimatedAngle;\n    readonly orientType: SVGAnimatedEnumeration;\n    readonly refX: SVGAnimatedLength;\n    readonly refY: SVGAnimatedLength;\n    setOrientToAngle(angle: SVGAngle): void;\n    setOrientToAuto(): void;\n    readonly SVG_MARKERUNITS_UNKNOWN: 0;\n    readonly SVG_MARKERUNITS_USERSPACEONUSE: 1;\n    readonly SVG_MARKERUNITS_STROKEWIDTH: 2;\n    readonly SVG_MARKER_ORIENT_UNKNOWN: 0;\n    readonly SVG_MARKER_ORIENT_AUTO: 1;\n    readonly SVG_MARKER_ORIENT_ANGLE: 2;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGMarkerElement: {\n    prototype: SVGMarkerElement;\n    new(): SVGMarkerElement;\n    readonly SVG_MARKERUNITS_UNKNOWN: 0;\n    readonly SVG_MARKERUNITS_USERSPACEONUSE: 1;\n    readonly SVG_MARKERUNITS_STROKEWIDTH: 2;\n    readonly SVG_MARKER_ORIENT_UNKNOWN: 0;\n    readonly SVG_MARKER_ORIENT_AUTO: 1;\n    readonly SVG_MARKER_ORIENT_ANGLE: 2;\n};\n\n/** Provides access to the properties of <mask> elements, as well as methods to manipulate them. */\ninterface SVGMaskElement extends SVGElement {\n    readonly height: SVGAnimatedLength;\n    readonly maskContentUnits: SVGAnimatedEnumeration;\n    readonly maskUnits: SVGAnimatedEnumeration;\n    readonly width: SVGAnimatedLength;\n    readonly x: SVGAnimatedLength;\n    readonly y: SVGAnimatedLength;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGMaskElement: {\n    prototype: SVGMaskElement;\n    new(): SVGMaskElement;\n};\n\n/** Corresponds to the <metadata> element. */\ninterface SVGMetadataElement extends SVGElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGMetadataElement: {\n    prototype: SVGMetadataElement;\n    new(): SVGMetadataElement;\n};\n\n/** Corresponds to the <number> basic data type. */\ninterface SVGNumber {\n    value: number;\n}\n\ndeclare var SVGNumber: {\n    prototype: SVGNumber;\n    new(): SVGNumber;\n};\n\n/** The SVGNumberList defines a list of SVGNumber objects. */\ninterface SVGNumberList {\n    readonly length: number;\n    readonly numberOfItems: number;\n    appendItem(newItem: SVGNumber): SVGNumber;\n    clear(): void;\n    getItem(index: number): SVGNumber;\n    initialize(newItem: SVGNumber): SVGNumber;\n    insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;\n    removeItem(index: number): SVGNumber;\n    replaceItem(newItem: SVGNumber, index: number): SVGNumber;\n    [index: number]: SVGNumber;\n}\n\ndeclare var SVGNumberList: {\n    prototype: SVGNumberList;\n    new(): SVGNumberList;\n};\n\n/** Corresponds to the <path> element. */\ninterface SVGPathElement extends SVGGeometryElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGPathElement: {\n    prototype: SVGPathElement;\n    new(): SVGPathElement;\n};\n\n/** Corresponds to the <pattern> element. */\ninterface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference {\n    readonly height: SVGAnimatedLength;\n    readonly patternContentUnits: SVGAnimatedEnumeration;\n    readonly patternTransform: SVGAnimatedTransformList;\n    readonly patternUnits: SVGAnimatedEnumeration;\n    readonly width: SVGAnimatedLength;\n    readonly x: SVGAnimatedLength;\n    readonly y: SVGAnimatedLength;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGPatternElement: {\n    prototype: SVGPatternElement;\n    new(): SVGPatternElement;\n};\n\ninterface SVGPointList {\n    readonly length: number;\n    readonly numberOfItems: number;\n    appendItem(newItem: DOMPoint): DOMPoint;\n    clear(): void;\n    getItem(index: number): DOMPoint;\n    initialize(newItem: DOMPoint): DOMPoint;\n    insertItemBefore(newItem: DOMPoint, index: number): DOMPoint;\n    removeItem(index: number): DOMPoint;\n    replaceItem(newItem: DOMPoint, index: number): DOMPoint;\n    [index: number]: DOMPoint;\n}\n\ndeclare var SVGPointList: {\n    prototype: SVGPointList;\n    new(): SVGPointList;\n};\n\n/** Provides access to the properties of <polygon> elements, as well as methods to manipulate them. */\ninterface SVGPolygonElement extends SVGGeometryElement, SVGAnimatedPoints {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGPolygonElement: {\n    prototype: SVGPolygonElement;\n    new(): SVGPolygonElement;\n};\n\n/** Provides access to the properties of <polyline> elements, as well as methods to manipulate them. */\ninterface SVGPolylineElement extends SVGGeometryElement, SVGAnimatedPoints {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGPolylineElement: {\n    prototype: SVGPolylineElement;\n    new(): SVGPolylineElement;\n};\n\n/** Corresponds to the preserveAspectRatio attribute, which is available for some of SVG's elements. */\ninterface SVGPreserveAspectRatio {\n    align: number;\n    meetOrSlice: number;\n    readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0;\n    readonly SVG_PRESERVEASPECTRATIO_NONE: 1;\n    readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2;\n    readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3;\n    readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4;\n    readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5;\n    readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6;\n    readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7;\n    readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8;\n    readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9;\n    readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10;\n    readonly SVG_MEETORSLICE_UNKNOWN: 0;\n    readonly SVG_MEETORSLICE_MEET: 1;\n    readonly SVG_MEETORSLICE_SLICE: 2;\n}\n\ndeclare var SVGPreserveAspectRatio: {\n    prototype: SVGPreserveAspectRatio;\n    new(): SVGPreserveAspectRatio;\n    readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0;\n    readonly SVG_PRESERVEASPECTRATIO_NONE: 1;\n    readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2;\n    readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3;\n    readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4;\n    readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5;\n    readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6;\n    readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7;\n    readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8;\n    readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9;\n    readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10;\n    readonly SVG_MEETORSLICE_UNKNOWN: 0;\n    readonly SVG_MEETORSLICE_MEET: 1;\n    readonly SVG_MEETORSLICE_SLICE: 2;\n};\n\n/** Corresponds to the <RadialGradient> element. */\ninterface SVGRadialGradientElement extends SVGGradientElement {\n    readonly cx: SVGAnimatedLength;\n    readonly cy: SVGAnimatedLength;\n    readonly fr: SVGAnimatedLength;\n    readonly fx: SVGAnimatedLength;\n    readonly fy: SVGAnimatedLength;\n    readonly r: SVGAnimatedLength;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGRadialGradientElement: {\n    prototype: SVGRadialGradientElement;\n    new(): SVGRadialGradientElement;\n};\n\n/** Provides access to the properties of <rect> elements, as well as methods to manipulate them. */\ninterface SVGRectElement extends SVGGeometryElement {\n    readonly height: SVGAnimatedLength;\n    readonly rx: SVGAnimatedLength;\n    readonly ry: SVGAnimatedLength;\n    readonly width: SVGAnimatedLength;\n    readonly x: SVGAnimatedLength;\n    readonly y: SVGAnimatedLength;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGRectElement: {\n    prototype: SVGRectElement;\n    new(): SVGRectElement;\n};\n\ninterface SVGSVGElementEventMap extends SVGElementEventMap, WindowEventHandlersEventMap {\n}\n\n/** Provides access to the properties of <svg> elements, as well as methods to manipulate them. This interface contains also various miscellaneous commonly-used utility methods, such as matrix operations and the ability to control the time of redraw on visual rendering devices. */\ninterface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEventHandlers {\n    currentScale: number;\n    readonly currentTranslate: DOMPointReadOnly;\n    readonly height: SVGAnimatedLength;\n    readonly width: SVGAnimatedLength;\n    readonly x: SVGAnimatedLength;\n    readonly y: SVGAnimatedLength;\n    animationsPaused(): boolean;\n    checkEnclosure(element: SVGElement, rect: DOMRectReadOnly): boolean;\n    checkIntersection(element: SVGElement, rect: DOMRectReadOnly): boolean;\n    createSVGAngle(): SVGAngle;\n    createSVGLength(): SVGLength;\n    createSVGMatrix(): DOMMatrix;\n    createSVGNumber(): SVGNumber;\n    createSVGPoint(): DOMPoint;\n    createSVGRect(): DOMRect;\n    createSVGTransform(): SVGTransform;\n    createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;\n    deselectAll(): void;\n    /** @deprecated */\n    forceRedraw(): void;\n    getCurrentTime(): number;\n    getElementById(elementId: string): Element;\n    getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;\n    getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;\n    pauseAnimations(): void;\n    setCurrentTime(seconds: number): void;\n    /** @deprecated */\n    suspendRedraw(maxWaitMilliseconds: number): number;\n    unpauseAnimations(): void;\n    /** @deprecated */\n    unsuspendRedraw(suspendHandleID: number): void;\n    /** @deprecated */\n    unsuspendRedrawAll(): void;\n    addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGSVGElement: {\n    prototype: SVGSVGElement;\n    new(): SVGSVGElement;\n};\n\n/** Corresponds to the SVG <script> element. */\ninterface SVGScriptElement extends SVGElement, SVGURIReference {\n    type: string;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGScriptElement: {\n    prototype: SVGScriptElement;\n    new(): SVGScriptElement;\n};\n\ninterface SVGSetElement extends SVGAnimationElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGSetElement: {\n    prototype: SVGSetElement;\n    new(): SVGSetElement;\n};\n\n/** Corresponds to the <stop> element. */\ninterface SVGStopElement extends SVGElement {\n    readonly offset: SVGAnimatedNumber;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGStopElement: {\n    prototype: SVGStopElement;\n    new(): SVGStopElement;\n};\n\n/** The SVGStringList defines a list of DOMString objects. */\ninterface SVGStringList {\n    readonly length: number;\n    readonly numberOfItems: number;\n    appendItem(newItem: string): string;\n    clear(): void;\n    getItem(index: number): string;\n    initialize(newItem: string): string;\n    insertItemBefore(newItem: string, index: number): string;\n    removeItem(index: number): string;\n    replaceItem(newItem: string, index: number): string;\n    [index: number]: string;\n}\n\ndeclare var SVGStringList: {\n    prototype: SVGStringList;\n    new(): SVGStringList;\n};\n\n/** Corresponds to the SVG <style> element. */\ninterface SVGStyleElement extends SVGElement, LinkStyle {\n    disabled: boolean;\n    media: string;\n    title: string;\n    /** @deprecated */\n    type: string;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGStyleElement: {\n    prototype: SVGStyleElement;\n    new(): SVGStyleElement;\n};\n\n/** Corresponds to the <switch> element. */\ninterface SVGSwitchElement extends SVGGraphicsElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGSwitchElement: {\n    prototype: SVGSwitchElement;\n    new(): SVGSwitchElement;\n};\n\n/** Corresponds to the <symbol> element. */\ninterface SVGSymbolElement extends SVGElement, SVGFitToViewBox {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGSymbolElement: {\n    prototype: SVGSymbolElement;\n    new(): SVGSymbolElement;\n};\n\n/** A <tspan> element. */\ninterface SVGTSpanElement extends SVGTextPositioningElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTSpanElement: {\n    prototype: SVGTSpanElement;\n    new(): SVGTSpanElement;\n};\n\ninterface SVGTests {\n    readonly requiredExtensions: SVGStringList;\n    readonly systemLanguage: SVGStringList;\n}\n\n/** Implemented by elements that support rendering child text content. It is inherited by various text-related interfaces, such as SVGTextElement, SVGTSpanElement, SVGTRefElement, SVGAltGlyphElement and SVGTextPathElement. */\ninterface SVGTextContentElement extends SVGGraphicsElement {\n    readonly lengthAdjust: SVGAnimatedEnumeration;\n    readonly textLength: SVGAnimatedLength;\n    getCharNumAtPosition(point?: DOMPointInit): number;\n    getComputedTextLength(): number;\n    getEndPositionOfChar(charnum: number): DOMPoint;\n    getExtentOfChar(charnum: number): DOMRect;\n    getNumberOfChars(): number;\n    getRotationOfChar(charnum: number): number;\n    getStartPositionOfChar(charnum: number): DOMPoint;\n    getSubStringLength(charnum: number, nchars: number): number;\n    /** @deprecated */\n    selectSubString(charnum: number, nchars: number): void;\n    readonly LENGTHADJUST_UNKNOWN: 0;\n    readonly LENGTHADJUST_SPACING: 1;\n    readonly LENGTHADJUST_SPACINGANDGLYPHS: 2;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTextContentElement: {\n    prototype: SVGTextContentElement;\n    new(): SVGTextContentElement;\n    readonly LENGTHADJUST_UNKNOWN: 0;\n    readonly LENGTHADJUST_SPACING: 1;\n    readonly LENGTHADJUST_SPACINGANDGLYPHS: 2;\n};\n\n/** Corresponds to the <text> elements. */\ninterface SVGTextElement extends SVGTextPositioningElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTextElement: {\n    prototype: SVGTextElement;\n    new(): SVGTextElement;\n};\n\n/** Corresponds to the <textPath> element. */\ninterface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {\n    readonly method: SVGAnimatedEnumeration;\n    readonly spacing: SVGAnimatedEnumeration;\n    readonly startOffset: SVGAnimatedLength;\n    readonly TEXTPATH_METHODTYPE_UNKNOWN: 0;\n    readonly TEXTPATH_METHODTYPE_ALIGN: 1;\n    readonly TEXTPATH_METHODTYPE_STRETCH: 2;\n    readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0;\n    readonly TEXTPATH_SPACINGTYPE_AUTO: 1;\n    readonly TEXTPATH_SPACINGTYPE_EXACT: 2;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTextPathElement: {\n    prototype: SVGTextPathElement;\n    new(): SVGTextPathElement;\n    readonly TEXTPATH_METHODTYPE_UNKNOWN: 0;\n    readonly TEXTPATH_METHODTYPE_ALIGN: 1;\n    readonly TEXTPATH_METHODTYPE_STRETCH: 2;\n    readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0;\n    readonly TEXTPATH_SPACINGTYPE_AUTO: 1;\n    readonly TEXTPATH_SPACINGTYPE_EXACT: 2;\n};\n\n/** Implemented by elements that support attributes that position individual text glyphs. It is inherited by SVGTextElement, SVGTSpanElement, SVGTRefElement and SVGAltGlyphElement. */\ninterface SVGTextPositioningElement extends SVGTextContentElement {\n    readonly dx: SVGAnimatedLengthList;\n    readonly dy: SVGAnimatedLengthList;\n    readonly rotate: SVGAnimatedNumberList;\n    readonly x: SVGAnimatedLengthList;\n    readonly y: SVGAnimatedLengthList;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTextPositioningElement: {\n    prototype: SVGTextPositioningElement;\n    new(): SVGTextPositioningElement;\n};\n\n/** Corresponds to the <title> element. */\ninterface SVGTitleElement extends SVGElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTitleElement: {\n    prototype: SVGTitleElement;\n    new(): SVGTitleElement;\n};\n\n/** SVGTransform is the interface for one of the component transformations within an SVGTransformList; thus, an SVGTransform object corresponds to a single component (e.g., scale(\\u2026) or matrix(\\u2026)) within a transform attribute. */\ninterface SVGTransform {\n    readonly angle: number;\n    readonly matrix: DOMMatrix;\n    readonly type: number;\n    setMatrix(matrix?: DOMMatrix2DInit): void;\n    setRotate(angle: number, cx: number, cy: number): void;\n    setScale(sx: number, sy: number): void;\n    setSkewX(angle: number): void;\n    setSkewY(angle: number): void;\n    setTranslate(tx: number, ty: number): void;\n    readonly SVG_TRANSFORM_UNKNOWN: 0;\n    readonly SVG_TRANSFORM_MATRIX: 1;\n    readonly SVG_TRANSFORM_TRANSLATE: 2;\n    readonly SVG_TRANSFORM_SCALE: 3;\n    readonly SVG_TRANSFORM_ROTATE: 4;\n    readonly SVG_TRANSFORM_SKEWX: 5;\n    readonly SVG_TRANSFORM_SKEWY: 6;\n}\n\ndeclare var SVGTransform: {\n    prototype: SVGTransform;\n    new(): SVGTransform;\n    readonly SVG_TRANSFORM_UNKNOWN: 0;\n    readonly SVG_TRANSFORM_MATRIX: 1;\n    readonly SVG_TRANSFORM_TRANSLATE: 2;\n    readonly SVG_TRANSFORM_SCALE: 3;\n    readonly SVG_TRANSFORM_ROTATE: 4;\n    readonly SVG_TRANSFORM_SKEWX: 5;\n    readonly SVG_TRANSFORM_SKEWY: 6;\n};\n\n/** The SVGTransformList defines a list of SVGTransform objects. */\ninterface SVGTransformList {\n    readonly length: number;\n    readonly numberOfItems: number;\n    appendItem(newItem: SVGTransform): SVGTransform;\n    clear(): void;\n    consolidate(): SVGTransform | null;\n    createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;\n    getItem(index: number): SVGTransform;\n    initialize(newItem: SVGTransform): SVGTransform;\n    insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;\n    removeItem(index: number): SVGTransform;\n    replaceItem(newItem: SVGTransform, index: number): SVGTransform;\n    [index: number]: SVGTransform;\n}\n\ndeclare var SVGTransformList: {\n    prototype: SVGTransformList;\n    new(): SVGTransformList;\n};\n\ninterface SVGURIReference {\n    readonly href: SVGAnimatedString;\n}\n\n/** A commonly used set of constants used for reflecting gradientUnits, patternContentUnits and other similar attributes. */\ninterface SVGUnitTypes {\n    readonly SVG_UNIT_TYPE_UNKNOWN: 0;\n    readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1;\n    readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2;\n}\n\ndeclare var SVGUnitTypes: {\n    prototype: SVGUnitTypes;\n    new(): SVGUnitTypes;\n    readonly SVG_UNIT_TYPE_UNKNOWN: 0;\n    readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1;\n    readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2;\n};\n\n/** Corresponds to the <use> element. */\ninterface SVGUseElement extends SVGGraphicsElement, SVGURIReference {\n    readonly height: SVGAnimatedLength;\n    readonly width: SVGAnimatedLength;\n    readonly x: SVGAnimatedLength;\n    readonly y: SVGAnimatedLength;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGUseElement: {\n    prototype: SVGUseElement;\n    new(): SVGUseElement;\n};\n\n/** Provides access to the properties of <view> elements, as well as methods to manipulate them. */\ninterface SVGViewElement extends SVGElement, SVGFitToViewBox {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGViewElement: {\n    prototype: SVGViewElement;\n    new(): SVGViewElement;\n};\n\n/** A screen, usually the one on which the current window is being rendered, and is obtained using window.screen. */\ninterface Screen {\n    readonly availHeight: number;\n    readonly availWidth: number;\n    readonly colorDepth: number;\n    readonly height: number;\n    readonly orientation: ScreenOrientation;\n    readonly pixelDepth: number;\n    readonly width: number;\n}\n\ndeclare var Screen: {\n    prototype: Screen;\n    new(): Screen;\n};\n\ninterface ScreenOrientationEventMap {\n    \"change\": Event;\n}\n\ninterface ScreenOrientation extends EventTarget {\n    readonly angle: number;\n    onchange: ((this: ScreenOrientation, ev: Event) => any) | null;\n    readonly type: OrientationType;\n    lock(orientation: OrientationLockType): Promise<void>;\n    unlock(): void;\n    addEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ScreenOrientation: {\n    prototype: ScreenOrientation;\n    new(): ScreenOrientation;\n};\n\ninterface ScriptProcessorNodeEventMap {\n    \"audioprocess\": AudioProcessingEvent;\n}\n\n/**\n * Allows the generation, processing, or analyzing of audio using JavaScript.\n * @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and was replaced by AudioWorklet (see AudioWorkletNode).\n */\ninterface ScriptProcessorNode extends AudioNode {\n    /** @deprecated */\n    readonly bufferSize: number;\n    /** @deprecated */\n    onaudioprocess: ((this: ScriptProcessorNode, ev: AudioProcessingEvent) => any) | null;\n    addEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var ScriptProcessorNode: {\n    prototype: ScriptProcessorNode;\n    new(): ScriptProcessorNode;\n};\n\n/** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */\ninterface SecurityPolicyViolationEvent extends Event {\n    readonly blockedURI: string;\n    readonly columnNumber: number;\n    readonly disposition: SecurityPolicyViolationEventDisposition;\n    readonly documentURI: string;\n    readonly effectiveDirective: string;\n    readonly lineNumber: number;\n    readonly originalPolicy: string;\n    readonly referrer: string;\n    readonly sample: string;\n    readonly sourceFile: string;\n    readonly statusCode: number;\n    readonly violatedDirective: string;\n}\n\ndeclare var SecurityPolicyViolationEvent: {\n    prototype: SecurityPolicyViolationEvent;\n    new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;\n};\n\n/** A Selection object\\xA0represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or\\xA0modification, call Window.getSelection(). */\ninterface Selection {\n    readonly anchorNode: Node | null;\n    readonly anchorOffset: number;\n    readonly focusNode: Node | null;\n    readonly focusOffset: number;\n    readonly isCollapsed: boolean;\n    readonly rangeCount: number;\n    readonly type: string;\n    addRange(range: Range): void;\n    collapse(node: Node | null, offset?: number): void;\n    collapseToEnd(): void;\n    collapseToStart(): void;\n    containsNode(node: Node, allowPartialContainment?: boolean): boolean;\n    deleteFromDocument(): void;\n    empty(): void;\n    extend(node: Node, offset?: number): void;\n    getRangeAt(index: number): Range;\n    modify(alter?: string, direction?: string, granularity?: string): void;\n    removeAllRanges(): void;\n    removeRange(range: Range): void;\n    selectAllChildren(node: Node): void;\n    setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void;\n    setPosition(node: Node | null, offset?: number): void;\n    toString(): string;\n}\n\ndeclare var Selection: {\n    prototype: Selection;\n    new(): Selection;\n    toString(): string;\n};\n\ninterface ServiceWorkerEventMap extends AbstractWorkerEventMap {\n    \"statechange\": Event;\n}\n\n/**\n * This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object.\n * Available only in secure contexts.\n */\ninterface ServiceWorker extends EventTarget, AbstractWorker {\n    onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;\n    readonly scriptURL: string;\n    readonly state: ServiceWorkerState;\n    postMessage(message: any, transfer: Transferable[]): void;\n    postMessage(message: any, options?: StructuredSerializeOptions): void;\n    addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorker: {\n    prototype: ServiceWorker;\n    new(): ServiceWorker;\n};\n\ninterface ServiceWorkerContainerEventMap {\n    \"controllerchange\": Event;\n    \"message\": MessageEvent;\n    \"messageerror\": MessageEvent;\n}\n\n/**\n * The\\xA0ServiceWorkerContainer\\xA0interface of the\\xA0ServiceWorker API\\xA0provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.\n * Available only in secure contexts.\n */\ninterface ServiceWorkerContainer extends EventTarget {\n    readonly controller: ServiceWorker | null;\n    oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;\n    onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n    onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n    readonly ready: Promise<ServiceWorkerRegistration>;\n    getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;\n    getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;\n    register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;\n    startMessages(): void;\n    addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerContainer: {\n    prototype: ServiceWorkerContainer;\n    new(): ServiceWorkerContainer;\n};\n\ninterface ServiceWorkerRegistrationEventMap {\n    \"updatefound\": Event;\n}\n\n/**\n * This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin.\n * Available only in secure contexts.\n */\ninterface ServiceWorkerRegistration extends EventTarget {\n    readonly active: ServiceWorker | null;\n    readonly installing: ServiceWorker | null;\n    readonly navigationPreload: NavigationPreloadManager;\n    onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;\n    readonly pushManager: PushManager;\n    readonly scope: string;\n    readonly updateViaCache: ServiceWorkerUpdateViaCache;\n    readonly waiting: ServiceWorker | null;\n    getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;\n    showNotification(title: string, options?: NotificationOptions): Promise<void>;\n    unregister(): Promise<boolean>;\n    update(): Promise<void>;\n    addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerRegistration: {\n    prototype: ServiceWorkerRegistration;\n    new(): ServiceWorkerRegistration;\n};\n\ninterface ShadowRootEventMap {\n    \"slotchange\": Event;\n}\n\ninterface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {\n    readonly delegatesFocus: boolean;\n    readonly host: Element;\n    readonly mode: ShadowRootMode;\n    onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;\n    readonly slotAssignment: SlotAssignmentMode;\n    /** Throws a \"NotSupportedError\" DOMException if context object is a shadow root. */\n    addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ShadowRoot: {\n    prototype: ShadowRoot;\n    new(): ShadowRoot;\n};\n\ninterface SharedWorker extends EventTarget, AbstractWorker {\n    /** Returns sharedWorker's MessagePort object which can be used to communicate with the global environment. */\n    readonly port: MessagePort;\n    addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SharedWorker: {\n    prototype: SharedWorker;\n    new(scriptURL: string | URL, options?: string | WorkerOptions): SharedWorker;\n};\n\ninterface Slottable {\n    readonly assignedSlot: HTMLSlotElement | null;\n}\n\ninterface SourceBufferEventMap {\n    \"abort\": Event;\n    \"error\": Event;\n    \"update\": Event;\n    \"updateend\": Event;\n    \"updatestart\": Event;\n}\n\n/** A chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource\\xA0object. This can be made up of one or several media segments. */\ninterface SourceBuffer extends EventTarget {\n    appendWindowEnd: number;\n    appendWindowStart: number;\n    readonly buffered: TimeRanges;\n    mode: AppendMode;\n    onabort: ((this: SourceBuffer, ev: Event) => any) | null;\n    onerror: ((this: SourceBuffer, ev: Event) => any) | null;\n    onupdate: ((this: SourceBuffer, ev: Event) => any) | null;\n    onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;\n    onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;\n    timestampOffset: number;\n    readonly updating: boolean;\n    abort(): void;\n    appendBuffer(data: BufferSource): void;\n    changeType(type: string): void;\n    remove(start: number, end: number): void;\n    addEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SourceBuffer: {\n    prototype: SourceBuffer;\n    new(): SourceBuffer;\n};\n\ninterface SourceBufferListEventMap {\n    \"addsourcebuffer\": Event;\n    \"removesourcebuffer\": Event;\n}\n\n/** A simple container list for multiple SourceBuffer objects. */\ninterface SourceBufferList extends EventTarget {\n    readonly length: number;\n    onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;\n    onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;\n    addEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n    [index: number]: SourceBuffer;\n}\n\ndeclare var SourceBufferList: {\n    prototype: SourceBufferList;\n    new(): SourceBufferList;\n};\n\ninterface SpeechRecognitionAlternative {\n    readonly confidence: number;\n    readonly transcript: string;\n}\n\ndeclare var SpeechRecognitionAlternative: {\n    prototype: SpeechRecognitionAlternative;\n    new(): SpeechRecognitionAlternative;\n};\n\ninterface SpeechRecognitionResult {\n    readonly isFinal: boolean;\n    readonly length: number;\n    item(index: number): SpeechRecognitionAlternative;\n    [index: number]: SpeechRecognitionAlternative;\n}\n\ndeclare var SpeechRecognitionResult: {\n    prototype: SpeechRecognitionResult;\n    new(): SpeechRecognitionResult;\n};\n\ninterface SpeechRecognitionResultList {\n    readonly length: number;\n    item(index: number): SpeechRecognitionResult;\n    [index: number]: SpeechRecognitionResult;\n}\n\ndeclare var SpeechRecognitionResultList: {\n    prototype: SpeechRecognitionResultList;\n    new(): SpeechRecognitionResultList;\n};\n\ninterface SpeechSynthesisEventMap {\n    \"voiceschanged\": Event;\n}\n\n/** This Web Speech API interface is the controller interface for the speech service; this can be used to retrieve information about the synthesis voices available on the device, start and pause speech, and other commands besides. */\ninterface SpeechSynthesis extends EventTarget {\n    onvoiceschanged: ((this: SpeechSynthesis, ev: Event) => any) | null;\n    readonly paused: boolean;\n    readonly pending: boolean;\n    readonly speaking: boolean;\n    cancel(): void;\n    getVoices(): SpeechSynthesisVoice[];\n    pause(): void;\n    resume(): void;\n    speak(utterance: SpeechSynthesisUtterance): void;\n    addEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SpeechSynthesis: {\n    prototype: SpeechSynthesis;\n    new(): SpeechSynthesis;\n};\n\ninterface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent {\n    readonly error: SpeechSynthesisErrorCode;\n}\n\ndeclare var SpeechSynthesisErrorEvent: {\n    prototype: SpeechSynthesisErrorEvent;\n    new(type: string, eventInitDict: SpeechSynthesisErrorEventInit): SpeechSynthesisErrorEvent;\n};\n\n/** This Web Speech API interface contains information about the current state of SpeechSynthesisUtterance objects that have been processed in the speech service. */\ninterface SpeechSynthesisEvent extends Event {\n    readonly charIndex: number;\n    readonly charLength: number;\n    readonly elapsedTime: number;\n    readonly name: string;\n    readonly utterance: SpeechSynthesisUtterance;\n}\n\ndeclare var SpeechSynthesisEvent: {\n    prototype: SpeechSynthesisEvent;\n    new(type: string, eventInitDict: SpeechSynthesisEventInit): SpeechSynthesisEvent;\n};\n\ninterface SpeechSynthesisUtteranceEventMap {\n    \"boundary\": SpeechSynthesisEvent;\n    \"end\": SpeechSynthesisEvent;\n    \"error\": SpeechSynthesisErrorEvent;\n    \"mark\": SpeechSynthesisEvent;\n    \"pause\": SpeechSynthesisEvent;\n    \"resume\": SpeechSynthesisEvent;\n    \"start\": SpeechSynthesisEvent;\n}\n\n/** This Web Speech API interface represents a speech request. It contains the content the speech service should read and information about how to read it (e.g. language, pitch and volume.) */\ninterface SpeechSynthesisUtterance extends EventTarget {\n    lang: string;\n    onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n    onend: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n    onerror: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) | null;\n    onmark: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n    onpause: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n    onresume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n    onstart: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n    pitch: number;\n    rate: number;\n    text: string;\n    voice: SpeechSynthesisVoice | null;\n    volume: number;\n    addEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SpeechSynthesisUtterance: {\n    prototype: SpeechSynthesisUtterance;\n    new(text?: string): SpeechSynthesisUtterance;\n};\n\n/** This Web Speech API interface represents a voice that the system supports. Every SpeechSynthesisVoice has its own relative speech service including information about language, name and URI. */\ninterface SpeechSynthesisVoice {\n    readonly default: boolean;\n    readonly lang: string;\n    readonly localService: boolean;\n    readonly name: string;\n    readonly voiceURI: string;\n}\n\ndeclare var SpeechSynthesisVoice: {\n    prototype: SpeechSynthesisVoice;\n    new(): SpeechSynthesisVoice;\n};\n\ninterface StaticRange extends AbstractRange {\n}\n\ndeclare var StaticRange: {\n    prototype: StaticRange;\n    new(init: StaticRangeInit): StaticRange;\n};\n\n/** The pan property takes a unitless value between -1 (full left pan) and 1 (full right pan). This interface was introduced as a much simpler way to apply a simple panning effect than having to use a full PannerNode. */\ninterface StereoPannerNode extends AudioNode {\n    readonly pan: AudioParam;\n}\n\ndeclare var StereoPannerNode: {\n    prototype: StereoPannerNode;\n    new(context: BaseAudioContext, options?: StereoPannerOptions): StereoPannerNode;\n};\n\n/** This Web Storage API interface provides access to a particular domain's session or local storage. It allows, for example, the addition, modification, or deletion of stored data items. */\ninterface Storage {\n    /** Returns the number of key/value pairs. */\n    readonly length: number;\n    /**\n     * Removes all key/value pairs, if there are any.\n     *\n     * Dispatches a storage event on Window objects holding an equivalent Storage object.\n     */\n    clear(): void;\n    /** Returns the current value associated with the given key, or null if the given key does not exist. */\n    getItem(key: string): string | null;\n    /** Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs. */\n    key(index: number): string | null;\n    /**\n     * Removes the key/value pair with the given key, if a key/value pair with the given key exists.\n     *\n     * Dispatches a storage event on Window objects holding an equivalent Storage object.\n     */\n    removeItem(key: string): void;\n    /**\n     * Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.\n     *\n     * Throws a \"QuotaExceededError\" DOMException exception if the new value couldn't be set. (Setting could fail if, e.g., the user has disabled storage for the site, or if the quota has been exceeded.)\n     *\n     * Dispatches a storage event on Window objects holding an equivalent Storage object.\n     */\n    setItem(key: string, value: string): void;\n    [name: string]: any;\n}\n\ndeclare var Storage: {\n    prototype: Storage;\n    new(): Storage;\n};\n\n/** A StorageEvent is sent to a window when a storage area it has access to is changed within the context of another document. */\ninterface StorageEvent extends Event {\n    /** Returns the key of the storage item being changed. */\n    readonly key: string | null;\n    /** Returns the new value of the key of the storage item whose value is being changed. */\n    readonly newValue: string | null;\n    /** Returns the old value of the key of the storage item whose value is being changed. */\n    readonly oldValue: string | null;\n    /** Returns the Storage object that was affected. */\n    readonly storageArea: Storage | null;\n    /** Returns the URL of the document whose storage item changed. */\n    readonly url: string;\n    /** @deprecated */\n    initStorageEvent(type: string, bubbles?: boolean, cancelable?: boolean, key?: string | null, oldValue?: string | null, newValue?: string | null, url?: string | URL, storageArea?: Storage | null): void;\n}\n\ndeclare var StorageEvent: {\n    prototype: StorageEvent;\n    new(type: string, eventInitDict?: StorageEventInit): StorageEvent;\n};\n\n/** Available only in secure contexts. */\ninterface StorageManager {\n    estimate(): Promise<StorageEstimate>;\n    getDirectory(): Promise<FileSystemDirectoryHandle>;\n    persist(): Promise<boolean>;\n    persisted(): Promise<boolean>;\n}\n\ndeclare var StorageManager: {\n    prototype: StorageManager;\n    new(): StorageManager;\n};\n\n/** @deprecated */\ninterface StyleMedia {\n    type: string;\n    matchMedium(mediaquery: string): boolean;\n}\n\n/** A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface. */\ninterface StyleSheet {\n    disabled: boolean;\n    readonly href: string | null;\n    readonly media: MediaList;\n    readonly ownerNode: Element | ProcessingInstruction | null;\n    readonly parentStyleSheet: CSSStyleSheet | null;\n    readonly title: string | null;\n    readonly type: string;\n}\n\ndeclare var StyleSheet: {\n    prototype: StyleSheet;\n    new(): StyleSheet;\n};\n\n/** A list of StyleSheet. */\ninterface StyleSheetList {\n    readonly length: number;\n    item(index: number): CSSStyleSheet | null;\n    [index: number]: CSSStyleSheet;\n}\n\ndeclare var StyleSheetList: {\n    prototype: StyleSheetList;\n    new(): StyleSheetList;\n};\n\ninterface SubmitEvent extends Event {\n    /** Returns the element representing the submit button that triggered the form submission, or null if the submission was not triggered by a button. */\n    readonly submitter: HTMLElement | null;\n}\n\ndeclare var SubmitEvent: {\n    prototype: SubmitEvent;\n    new(type: string, eventInitDict?: SubmitEventInit): SubmitEvent;\n};\n\n/**\n * This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).\n * Available only in secure contexts.\n */\ninterface SubtleCrypto {\n    decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n    deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;\n    deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n    digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;\n    encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n    exportKey(format: \"jwk\", key: CryptoKey): Promise<JsonWebKey>;\n    exportKey(format: Exclude<KeyFormat, \"jwk\">, key: CryptoKey): Promise<ArrayBuffer>;\n    generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;\n    generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n    generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;\n    importKey(format: \"jwk\", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n    importKey(format: Exclude<KeyFormat, \"jwk\">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n    sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n    unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n    verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;\n    wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;\n}\n\ndeclare var SubtleCrypto: {\n    prototype: SubtleCrypto;\n    new(): SubtleCrypto;\n};\n\n/** The textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children. */\ninterface Text extends CharacterData, Slottable {\n    /** Returns the combined data of all direct Text node siblings. */\n    readonly wholeText: string;\n    /** Splits data at the given offset and returns the remainder as Text node. */\n    splitText(offset: number): Text;\n}\n\ndeclare var Text: {\n    prototype: Text;\n    new(data?: string): Text;\n};\n\n/** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc.\\xA0A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView \\u2013 a C-like representation of strings based on typed arrays. */\ninterface TextDecoder extends TextDecoderCommon {\n    /**\n     * Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments.\n     *\n     * \\`\\`\\`\n     * var string = \"\", decoder = new TextDecoder(encoding), buffer;\n     * while(buffer = next_chunk()) {\n     *   string += decoder.decode(buffer, {stream:true});\n     * }\n     * string += decoder.decode(); // end-of-queue\n     * \\`\\`\\`\n     *\n     * If the error mode is \"fatal\" and encoding's decoder returns error, throws a TypeError.\n     */\n    decode(input?: BufferSource, options?: TextDecodeOptions): string;\n}\n\ndeclare var TextDecoder: {\n    prototype: TextDecoder;\n    new(label?: string, options?: TextDecoderOptions): TextDecoder;\n};\n\ninterface TextDecoderCommon {\n    /** Returns encoding's name, lowercased. */\n    readonly encoding: string;\n    /** Returns true if error mode is \"fatal\", otherwise false. */\n    readonly fatal: boolean;\n    /** Returns the value of ignore BOM. */\n    readonly ignoreBOM: boolean;\n}\n\ninterface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {\n    readonly readable: ReadableStream<string>;\n    readonly writable: WritableStream<BufferSource>;\n}\n\ndeclare var TextDecoderStream: {\n    prototype: TextDecoderStream;\n    new(label?: string, options?: TextDecoderOptions): TextDecoderStream;\n};\n\n/** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView \\u2013 a C-like representation of strings based on typed arrays. */\ninterface TextEncoder extends TextEncoderCommon {\n    /** Returns the result of running UTF-8's encoder. */\n    encode(input?: string): Uint8Array;\n    /** Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination. */\n    encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;\n}\n\ndeclare var TextEncoder: {\n    prototype: TextEncoder;\n    new(): TextEncoder;\n};\n\ninterface TextEncoderCommon {\n    /** Returns \"utf-8\". */\n    readonly encoding: string;\n}\n\ninterface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {\n    readonly readable: ReadableStream<Uint8Array>;\n    readonly writable: WritableStream<string>;\n}\n\ndeclare var TextEncoderStream: {\n    prototype: TextEncoderStream;\n    new(): TextEncoderStream;\n};\n\n/** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */\ninterface TextMetrics {\n    /** Returns the measurement described below. */\n    readonly actualBoundingBoxAscent: number;\n    /** Returns the measurement described below. */\n    readonly actualBoundingBoxDescent: number;\n    /** Returns the measurement described below. */\n    readonly actualBoundingBoxLeft: number;\n    /** Returns the measurement described below. */\n    readonly actualBoundingBoxRight: number;\n    /** Returns the measurement described below. */\n    readonly fontBoundingBoxAscent: number;\n    /** Returns the measurement described below. */\n    readonly fontBoundingBoxDescent: number;\n    /** Returns the measurement described below. */\n    readonly width: number;\n}\n\ndeclare var TextMetrics: {\n    prototype: TextMetrics;\n    new(): TextMetrics;\n};\n\ninterface TextTrackEventMap {\n    \"cuechange\": Event;\n}\n\n/** This interface also inherits properties from EventTarget. */\ninterface TextTrack extends EventTarget {\n    /** Returns the text track cues from the text track list of cues that are currently active (i.e. that start before the current playback position and end after it), as a TextTrackCueList object. */\n    readonly activeCues: TextTrackCueList | null;\n    /** Returns the text track list of cues, as a TextTrackCueList object. */\n    readonly cues: TextTrackCueList | null;\n    /**\n     * Returns the ID of the given track.\n     *\n     * For in-band tracks, this is the ID that can be used with a fragment if the format supports media fragment syntax, and that can be used with the getTrackById() method.\n     *\n     * For TextTrack objects corresponding to track elements, this is the ID of the track element.\n     */\n    readonly id: string;\n    /** Returns the text track in-band metadata track dispatch type string. */\n    readonly inBandMetadataTrackDispatchType: string;\n    /** Returns the text track kind string. */\n    readonly kind: TextTrackKind;\n    /** Returns the text track label, if there is one, or the empty string otherwise (indicating that a custom label probably needs to be generated from the other attributes of the object if the object is exposed to the user). */\n    readonly label: string;\n    /** Returns the text track language string. */\n    readonly language: string;\n    /**\n     * Returns the text track mode, represented by a string from the following list:\n     *\n     * Can be set, to change the mode.\n     */\n    mode: TextTrackMode;\n    oncuechange: ((this: TextTrack, ev: Event) => any) | null;\n    /** Adds the given cue to textTrack's text track list of cues. */\n    addCue(cue: TextTrackCue): void;\n    /** Removes the given cue from textTrack's text track list of cues. */\n    removeCue(cue: TextTrackCue): void;\n    addEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var TextTrack: {\n    prototype: TextTrack;\n    new(): TextTrack;\n};\n\ninterface TextTrackCueEventMap {\n    \"enter\": Event;\n    \"exit\": Event;\n}\n\n/** TextTrackCues represent a string of text that will be displayed for some duration of time on a TextTrack. This includes the start and end times that the cue will be displayed. A TextTrackCue cannot be used directly, instead one of the derived types (e.g. VTTCue) must be used. */\ninterface TextTrackCue extends EventTarget {\n    /**\n     * Returns the text track cue end time, in seconds.\n     *\n     * Can be set.\n     */\n    endTime: number;\n    /**\n     * Returns the text track cue identifier.\n     *\n     * Can be set.\n     */\n    id: string;\n    onenter: ((this: TextTrackCue, ev: Event) => any) | null;\n    onexit: ((this: TextTrackCue, ev: Event) => any) | null;\n    /**\n     * Returns true if the text track cue pause-on-exit flag is set, false otherwise.\n     *\n     * Can be set.\n     */\n    pauseOnExit: boolean;\n    /**\n     * Returns the text track cue start time, in seconds.\n     *\n     * Can be set.\n     */\n    startTime: number;\n    /** Returns the TextTrack object to which this text track cue belongs, if any, or null otherwise. */\n    readonly track: TextTrack | null;\n    addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var TextTrackCue: {\n    prototype: TextTrackCue;\n    new(): TextTrackCue;\n};\n\ninterface TextTrackCueList {\n    /** Returns the number of cues in the list. */\n    readonly length: number;\n    /**\n     * Returns the first text track cue (in text track cue order) with text track cue identifier id.\n     *\n     * Returns null if none of the cues have the given identifier or if the argument is the empty string.\n     */\n    getCueById(id: string): TextTrackCue | null;\n    [index: number]: TextTrackCue;\n}\n\ndeclare var TextTrackCueList: {\n    prototype: TextTrackCueList;\n    new(): TextTrackCueList;\n};\n\ninterface TextTrackListEventMap {\n    \"addtrack\": TrackEvent;\n    \"change\": Event;\n    \"removetrack\": TrackEvent;\n}\n\ninterface TextTrackList extends EventTarget {\n    readonly length: number;\n    onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;\n    onchange: ((this: TextTrackList, ev: Event) => any) | null;\n    onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;\n    getTrackById(id: string): TextTrack | null;\n    addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n    [index: number]: TextTrack;\n}\n\ndeclare var TextTrackList: {\n    prototype: TextTrackList;\n    new(): TextTrackList;\n};\n\n/** Used to represent a set of time ranges, primarily for the purpose of tracking which portions of media have been buffered when loading it for use by the <audio> and <video>\\xA0elements. */\ninterface TimeRanges {\n    /** Returns the number of ranges in the object. */\n    readonly length: number;\n    /**\n     * Returns the time for the end of the range with the given index.\n     *\n     * Throws an \"IndexSizeError\" DOMException if the index is out of range.\n     */\n    end(index: number): number;\n    /**\n     * Returns the time for the start of the range with the given index.\n     *\n     * Throws an \"IndexSizeError\" DOMException if the index is out of range.\n     */\n    start(index: number): number;\n}\n\ndeclare var TimeRanges: {\n    prototype: TimeRanges;\n    new(): TimeRanges;\n};\n\n/** A single contact point on a touch-sensitive device. The contact point is commonly a finger or stylus and the device may be a touchscreen or trackpad. */\ninterface Touch {\n    readonly clientX: number;\n    readonly clientY: number;\n    readonly force: number;\n    readonly identifier: number;\n    readonly pageX: number;\n    readonly pageY: number;\n    readonly radiusX: number;\n    readonly radiusY: number;\n    readonly rotationAngle: number;\n    readonly screenX: number;\n    readonly screenY: number;\n    readonly target: EventTarget;\n}\n\ndeclare var Touch: {\n    prototype: Touch;\n    new(touchInitDict: TouchInit): Touch;\n};\n\n/** An event sent when the state of contacts with a touch-sensitive surface changes. This surface can be a touch screen or trackpad, for example. The event can describe one or more points of contact with the screen and includes support for detecting movement, addition and removal of contact points, and so forth. */\ninterface TouchEvent extends UIEvent {\n    readonly altKey: boolean;\n    readonly changedTouches: TouchList;\n    readonly ctrlKey: boolean;\n    readonly metaKey: boolean;\n    readonly shiftKey: boolean;\n    readonly targetTouches: TouchList;\n    readonly touches: TouchList;\n}\n\ndeclare var TouchEvent: {\n    prototype: TouchEvent;\n    new(type: string, eventInitDict?: TouchEventInit): TouchEvent;\n};\n\n/** A list of contact points on a touch surface. For example, if the user has three fingers on the touch surface (such as a screen or trackpad), the corresponding TouchList object would have one Touch object for each finger, for a total of three entries. */\ninterface TouchList {\n    readonly length: number;\n    item(index: number): Touch | null;\n    [index: number]: Touch;\n}\n\ndeclare var TouchList: {\n    prototype: TouchList;\n    new(): TouchList;\n};\n\n/** The TrackEvent interface, part of the HTML DOM specification, is used for events which represent changes to the set of available tracks on an HTML media element; these events are addtrack and removetrack. */\ninterface TrackEvent extends Event {\n    /** Returns the track object (TextTrack, AudioTrack, or VideoTrack) to which the event relates. */\n    readonly track: TextTrack | null;\n}\n\ndeclare var TrackEvent: {\n    prototype: TrackEvent;\n    new(type: string, eventInitDict?: TrackEventInit): TrackEvent;\n};\n\ninterface TransformStream<I = any, O = any> {\n    readonly readable: ReadableStream<O>;\n    readonly writable: WritableStream<I>;\n}\n\ndeclare var TransformStream: {\n    prototype: TransformStream;\n    new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;\n};\n\ninterface TransformStreamDefaultController<O = any> {\n    readonly desiredSize: number | null;\n    enqueue(chunk?: O): void;\n    error(reason?: any): void;\n    terminate(): void;\n}\n\ndeclare var TransformStreamDefaultController: {\n    prototype: TransformStreamDefaultController;\n    new(): TransformStreamDefaultController;\n};\n\n/** Events providing information related to transitions. */\ninterface TransitionEvent extends Event {\n    readonly elapsedTime: number;\n    readonly propertyName: string;\n    readonly pseudoElement: string;\n}\n\ndeclare var TransitionEvent: {\n    prototype: TransitionEvent;\n    new(type: string, transitionEventInitDict?: TransitionEventInit): TransitionEvent;\n};\n\n/** The nodes of a document subtree and a position within them. */\ninterface TreeWalker {\n    currentNode: Node;\n    readonly filter: NodeFilter | null;\n    readonly root: Node;\n    readonly whatToShow: number;\n    firstChild(): Node | null;\n    lastChild(): Node | null;\n    nextNode(): Node | null;\n    nextSibling(): Node | null;\n    parentNode(): Node | null;\n    previousNode(): Node | null;\n    previousSibling(): Node | null;\n}\n\ndeclare var TreeWalker: {\n    prototype: TreeWalker;\n    new(): TreeWalker;\n};\n\n/** Simple user interface events. */\ninterface UIEvent extends Event {\n    readonly detail: number;\n    readonly view: Window | null;\n    /** @deprecated */\n    readonly which: number;\n    /** @deprecated */\n    initUIEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, detailArg?: number): void;\n}\n\ndeclare var UIEvent: {\n    prototype: UIEvent;\n    new(type: string, eventInitDict?: UIEventInit): UIEvent;\n};\n\n/** The URL\\xA0interface represents an object providing static methods used for creating object URLs. */\ninterface URL {\n    hash: string;\n    host: string;\n    hostname: string;\n    href: string;\n    toString(): string;\n    readonly origin: string;\n    password: string;\n    pathname: string;\n    port: string;\n    protocol: string;\n    search: string;\n    readonly searchParams: URLSearchParams;\n    username: string;\n    toJSON(): string;\n}\n\ndeclare var URL: {\n    prototype: URL;\n    new(url: string | URL, base?: string | URL): URL;\n    createObjectURL(obj: Blob | MediaSource): string;\n    revokeObjectURL(url: string): void;\n};\n\ntype webkitURL = URL;\ndeclare var webkitURL: typeof URL;\n\ninterface URLSearchParams {\n    /** Appends a specified key/value pair as a new search parameter. */\n    append(name: string, value: string): void;\n    /** Deletes the given search parameter, and its associated value, from the list of all search parameters. */\n    delete(name: string): void;\n    /** Returns the first value associated to the given search parameter. */\n    get(name: string): string | null;\n    /** Returns all the values association with a given search parameter. */\n    getAll(name: string): string[];\n    /** Returns a Boolean indicating if such a search parameter exists. */\n    has(name: string): boolean;\n    /** Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. */\n    set(name: string, value: string): void;\n    sort(): void;\n    /** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */\n    toString(): string;\n    forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;\n}\n\ndeclare var URLSearchParams: {\n    prototype: URLSearchParams;\n    new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;\n    toString(): string;\n};\n\ninterface VTTCue extends TextTrackCue {\n    align: AlignSetting;\n    line: LineAndPositionSetting;\n    lineAlign: LineAlignSetting;\n    position: LineAndPositionSetting;\n    positionAlign: PositionAlignSetting;\n    region: VTTRegion | null;\n    size: number;\n    snapToLines: boolean;\n    text: string;\n    vertical: DirectionSetting;\n    getCueAsHTML(): DocumentFragment;\n    addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var VTTCue: {\n    prototype: VTTCue;\n    new(startTime: number, endTime: number, text: string): VTTCue;\n};\n\ninterface VTTRegion {\n    id: string;\n    lines: number;\n    regionAnchorX: number;\n    regionAnchorY: number;\n    scroll: ScrollSetting;\n    viewportAnchorX: number;\n    viewportAnchorY: number;\n    width: number;\n}\n\ndeclare var VTTRegion: {\n    prototype: VTTRegion;\n    new(): VTTRegion;\n};\n\n/** The validity states that an element can be in, with respect to constraint validation. Together, they help explain why an element's value fails to validate, if it's not valid. */\ninterface ValidityState {\n    readonly badInput: boolean;\n    readonly customError: boolean;\n    readonly patternMismatch: boolean;\n    readonly rangeOverflow: boolean;\n    readonly rangeUnderflow: boolean;\n    readonly stepMismatch: boolean;\n    readonly tooLong: boolean;\n    readonly tooShort: boolean;\n    readonly typeMismatch: boolean;\n    readonly valid: boolean;\n    readonly valueMissing: boolean;\n}\n\ndeclare var ValidityState: {\n    prototype: ValidityState;\n    new(): ValidityState;\n};\n\ninterface VideoColorSpace {\n    readonly fullRange: boolean | null;\n    readonly matrix: VideoMatrixCoefficients | null;\n    readonly primaries: VideoColorPrimaries | null;\n    readonly transfer: VideoTransferCharacteristics | null;\n    toJSON(): VideoColorSpaceInit;\n}\n\ndeclare var VideoColorSpace: {\n    prototype: VideoColorSpace;\n    new(init?: VideoColorSpaceInit): VideoColorSpace;\n};\n\n/** Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video. */\ninterface VideoPlaybackQuality {\n    /** @deprecated */\n    readonly corruptedVideoFrames: number;\n    readonly creationTime: DOMHighResTimeStamp;\n    readonly droppedVideoFrames: number;\n    readonly totalVideoFrames: number;\n}\n\ndeclare var VideoPlaybackQuality: {\n    prototype: VideoPlaybackQuality;\n    new(): VideoPlaybackQuality;\n};\n\ninterface VisualViewportEventMap {\n    \"resize\": Event;\n    \"scroll\": Event;\n}\n\ninterface VisualViewport extends EventTarget {\n    readonly height: number;\n    readonly offsetLeft: number;\n    readonly offsetTop: number;\n    onresize: ((this: VisualViewport, ev: Event) => any) | null;\n    onscroll: ((this: VisualViewport, ev: Event) => any) | null;\n    readonly pageLeft: number;\n    readonly pageTop: number;\n    readonly scale: number;\n    readonly width: number;\n    addEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var VisualViewport: {\n    prototype: VisualViewport;\n    new(): VisualViewport;\n};\n\ninterface WEBGL_color_buffer_float {\n    readonly RGBA32F_EXT: 0x8814;\n    readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;\n    readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;\n}\n\ninterface WEBGL_compressed_texture_astc {\n    getSupportedProfiles(): string[];\n    readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93B0;\n    readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93B1;\n    readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93B2;\n    readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93B3;\n    readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93B4;\n    readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93B5;\n    readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93B6;\n    readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93B7;\n    readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93B8;\n    readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93B9;\n    readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93BA;\n    readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93BB;\n    readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93BC;\n    readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93BD;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93D0;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93D1;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93D2;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93D3;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93D4;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93D5;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93D6;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93D7;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93D8;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93D9;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93DA;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93DB;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93DC;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93DD;\n}\n\ninterface WEBGL_compressed_texture_etc {\n    readonly COMPRESSED_R11_EAC: 0x9270;\n    readonly COMPRESSED_SIGNED_R11_EAC: 0x9271;\n    readonly COMPRESSED_RG11_EAC: 0x9272;\n    readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273;\n    readonly COMPRESSED_RGB8_ETC2: 0x9274;\n    readonly COMPRESSED_SRGB8_ETC2: 0x9275;\n    readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276;\n    readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277;\n    readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278;\n    readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279;\n}\n\ninterface WEBGL_compressed_texture_etc1 {\n    readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;\n}\n\n/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */\ninterface WEBGL_compressed_texture_s3tc {\n    readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0;\n    readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83F1;\n    readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83F2;\n    readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83F3;\n}\n\ninterface WEBGL_compressed_texture_s3tc_srgb {\n    readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8C4C;\n    readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8C4D;\n    readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8C4E;\n    readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8C4F;\n}\n\n/** The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes. */\ninterface WEBGL_debug_renderer_info {\n    readonly UNMASKED_VENDOR_WEBGL: 0x9245;\n    readonly UNMASKED_RENDERER_WEBGL: 0x9246;\n}\n\ninterface WEBGL_debug_shaders {\n    getTranslatedShaderSource(shader: WebGLShader): string;\n}\n\n/** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */\ninterface WEBGL_depth_texture {\n    readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA;\n}\n\ninterface WEBGL_draw_buffers {\n    drawBuffersWEBGL(buffers: GLenum[]): void;\n    readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0;\n    readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1;\n    readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2;\n    readonly COLOR_ATTACHMENT3_WEBGL: 0x8CE3;\n    readonly COLOR_ATTACHMENT4_WEBGL: 0x8CE4;\n    readonly COLOR_ATTACHMENT5_WEBGL: 0x8CE5;\n    readonly COLOR_ATTACHMENT6_WEBGL: 0x8CE6;\n    readonly COLOR_ATTACHMENT7_WEBGL: 0x8CE7;\n    readonly COLOR_ATTACHMENT8_WEBGL: 0x8CE8;\n    readonly COLOR_ATTACHMENT9_WEBGL: 0x8CE9;\n    readonly COLOR_ATTACHMENT10_WEBGL: 0x8CEA;\n    readonly COLOR_ATTACHMENT11_WEBGL: 0x8CEB;\n    readonly COLOR_ATTACHMENT12_WEBGL: 0x8CEC;\n    readonly COLOR_ATTACHMENT13_WEBGL: 0x8CED;\n    readonly COLOR_ATTACHMENT14_WEBGL: 0x8CEE;\n    readonly COLOR_ATTACHMENT15_WEBGL: 0x8CEF;\n    readonly DRAW_BUFFER0_WEBGL: 0x8825;\n    readonly DRAW_BUFFER1_WEBGL: 0x8826;\n    readonly DRAW_BUFFER2_WEBGL: 0x8827;\n    readonly DRAW_BUFFER3_WEBGL: 0x8828;\n    readonly DRAW_BUFFER4_WEBGL: 0x8829;\n    readonly DRAW_BUFFER5_WEBGL: 0x882A;\n    readonly DRAW_BUFFER6_WEBGL: 0x882B;\n    readonly DRAW_BUFFER7_WEBGL: 0x882C;\n    readonly DRAW_BUFFER8_WEBGL: 0x882D;\n    readonly DRAW_BUFFER9_WEBGL: 0x882E;\n    readonly DRAW_BUFFER10_WEBGL: 0x882F;\n    readonly DRAW_BUFFER11_WEBGL: 0x8830;\n    readonly DRAW_BUFFER12_WEBGL: 0x8831;\n    readonly DRAW_BUFFER13_WEBGL: 0x8832;\n    readonly DRAW_BUFFER14_WEBGL: 0x8833;\n    readonly DRAW_BUFFER15_WEBGL: 0x8834;\n    readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8CDF;\n    readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824;\n}\n\ninterface WEBGL_lose_context {\n    loseContext(): void;\n    restoreContext(): void;\n}\n\ninterface WEBGL_multi_draw {\n    multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;\n    multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;\n    multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;\n    multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;\n}\n\n/** A WaveShaperNode always has exactly one input and one output. */\ninterface WaveShaperNode extends AudioNode {\n    curve: Float32Array | null;\n    oversample: OverSampleType;\n}\n\ndeclare var WaveShaperNode: {\n    prototype: WaveShaperNode;\n    new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode;\n};\n\ninterface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {\n}\n\ndeclare var WebGL2RenderingContext: {\n    prototype: WebGL2RenderingContext;\n    new(): WebGL2RenderingContext;\n    readonly READ_BUFFER: 0x0C02;\n    readonly UNPACK_ROW_LENGTH: 0x0CF2;\n    readonly UNPACK_SKIP_ROWS: 0x0CF3;\n    readonly UNPACK_SKIP_PIXELS: 0x0CF4;\n    readonly PACK_ROW_LENGTH: 0x0D02;\n    readonly PACK_SKIP_ROWS: 0x0D03;\n    readonly PACK_SKIP_PIXELS: 0x0D04;\n    readonly COLOR: 0x1800;\n    readonly DEPTH: 0x1801;\n    readonly STENCIL: 0x1802;\n    readonly RED: 0x1903;\n    readonly RGB8: 0x8051;\n    readonly RGBA8: 0x8058;\n    readonly RGB10_A2: 0x8059;\n    readonly TEXTURE_BINDING_3D: 0x806A;\n    readonly UNPACK_SKIP_IMAGES: 0x806D;\n    readonly UNPACK_IMAGE_HEIGHT: 0x806E;\n    readonly TEXTURE_3D: 0x806F;\n    readonly TEXTURE_WRAP_R: 0x8072;\n    readonly MAX_3D_TEXTURE_SIZE: 0x8073;\n    readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;\n    readonly MAX_ELEMENTS_VERTICES: 0x80E8;\n    readonly MAX_ELEMENTS_INDICES: 0x80E9;\n    readonly TEXTURE_MIN_LOD: 0x813A;\n    readonly TEXTURE_MAX_LOD: 0x813B;\n    readonly TEXTURE_BASE_LEVEL: 0x813C;\n    readonly TEXTURE_MAX_LEVEL: 0x813D;\n    readonly MIN: 0x8007;\n    readonly MAX: 0x8008;\n    readonly DEPTH_COMPONENT24: 0x81A6;\n    readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;\n    readonly TEXTURE_COMPARE_MODE: 0x884C;\n    readonly TEXTURE_COMPARE_FUNC: 0x884D;\n    readonly CURRENT_QUERY: 0x8865;\n    readonly QUERY_RESULT: 0x8866;\n    readonly QUERY_RESULT_AVAILABLE: 0x8867;\n    readonly STREAM_READ: 0x88E1;\n    readonly STREAM_COPY: 0x88E2;\n    readonly STATIC_READ: 0x88E5;\n    readonly STATIC_COPY: 0x88E6;\n    readonly DYNAMIC_READ: 0x88E9;\n    readonly DYNAMIC_COPY: 0x88EA;\n    readonly MAX_DRAW_BUFFERS: 0x8824;\n    readonly DRAW_BUFFER0: 0x8825;\n    readonly DRAW_BUFFER1: 0x8826;\n    readonly DRAW_BUFFER2: 0x8827;\n    readonly DRAW_BUFFER3: 0x8828;\n    readonly DRAW_BUFFER4: 0x8829;\n    readonly DRAW_BUFFER5: 0x882A;\n    readonly DRAW_BUFFER6: 0x882B;\n    readonly DRAW_BUFFER7: 0x882C;\n    readonly DRAW_BUFFER8: 0x882D;\n    readonly DRAW_BUFFER9: 0x882E;\n    readonly DRAW_BUFFER10: 0x882F;\n    readonly DRAW_BUFFER11: 0x8830;\n    readonly DRAW_BUFFER12: 0x8831;\n    readonly DRAW_BUFFER13: 0x8832;\n    readonly DRAW_BUFFER14: 0x8833;\n    readonly DRAW_BUFFER15: 0x8834;\n    readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;\n    readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;\n    readonly SAMPLER_3D: 0x8B5F;\n    readonly SAMPLER_2D_SHADOW: 0x8B62;\n    readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;\n    readonly PIXEL_PACK_BUFFER: 0x88EB;\n    readonly PIXEL_UNPACK_BUFFER: 0x88EC;\n    readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;\n    readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;\n    readonly FLOAT_MAT2x3: 0x8B65;\n    readonly FLOAT_MAT2x4: 0x8B66;\n    readonly FLOAT_MAT3x2: 0x8B67;\n    readonly FLOAT_MAT3x4: 0x8B68;\n    readonly FLOAT_MAT4x2: 0x8B69;\n    readonly FLOAT_MAT4x3: 0x8B6A;\n    readonly SRGB: 0x8C40;\n    readonly SRGB8: 0x8C41;\n    readonly SRGB8_ALPHA8: 0x8C43;\n    readonly COMPARE_REF_TO_TEXTURE: 0x884E;\n    readonly RGBA32F: 0x8814;\n    readonly RGB32F: 0x8815;\n    readonly RGBA16F: 0x881A;\n    readonly RGB16F: 0x881B;\n    readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;\n    readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;\n    readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;\n    readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;\n    readonly MAX_VARYING_COMPONENTS: 0x8B4B;\n    readonly TEXTURE_2D_ARRAY: 0x8C1A;\n    readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;\n    readonly R11F_G11F_B10F: 0x8C3A;\n    readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;\n    readonly RGB9_E5: 0x8C3D;\n    readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;\n    readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;\n    readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;\n    readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;\n    readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;\n    readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;\n    readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;\n    readonly RASTERIZER_DISCARD: 0x8C89;\n    readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;\n    readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;\n    readonly INTERLEAVED_ATTRIBS: 0x8C8C;\n    readonly SEPARATE_ATTRIBS: 0x8C8D;\n    readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;\n    readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;\n    readonly RGBA32UI: 0x8D70;\n    readonly RGB32UI: 0x8D71;\n    readonly RGBA16UI: 0x8D76;\n    readonly RGB16UI: 0x8D77;\n    readonly RGBA8UI: 0x8D7C;\n    readonly RGB8UI: 0x8D7D;\n    readonly RGBA32I: 0x8D82;\n    readonly RGB32I: 0x8D83;\n    readonly RGBA16I: 0x8D88;\n    readonly RGB16I: 0x8D89;\n    readonly RGBA8I: 0x8D8E;\n    readonly RGB8I: 0x8D8F;\n    readonly RED_INTEGER: 0x8D94;\n    readonly RGB_INTEGER: 0x8D98;\n    readonly RGBA_INTEGER: 0x8D99;\n    readonly SAMPLER_2D_ARRAY: 0x8DC1;\n    readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;\n    readonly SAMPLER_CUBE_SHADOW: 0x8DC5;\n    readonly UNSIGNED_INT_VEC2: 0x8DC6;\n    readonly UNSIGNED_INT_VEC3: 0x8DC7;\n    readonly UNSIGNED_INT_VEC4: 0x8DC8;\n    readonly INT_SAMPLER_2D: 0x8DCA;\n    readonly INT_SAMPLER_3D: 0x8DCB;\n    readonly INT_SAMPLER_CUBE: 0x8DCC;\n    readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;\n    readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;\n    readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;\n    readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;\n    readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;\n    readonly DEPTH_COMPONENT32F: 0x8CAC;\n    readonly DEPTH32F_STENCIL8: 0x8CAD;\n    readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;\n    readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;\n    readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;\n    readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;\n    readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;\n    readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;\n    readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;\n    readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;\n    readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;\n    readonly FRAMEBUFFER_DEFAULT: 0x8218;\n    readonly UNSIGNED_INT_24_8: 0x84FA;\n    readonly DEPTH24_STENCIL8: 0x88F0;\n    readonly UNSIGNED_NORMALIZED: 0x8C17;\n    readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;\n    readonly READ_FRAMEBUFFER: 0x8CA8;\n    readonly DRAW_FRAMEBUFFER: 0x8CA9;\n    readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;\n    readonly RENDERBUFFER_SAMPLES: 0x8CAB;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;\n    readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;\n    readonly COLOR_ATTACHMENT1: 0x8CE1;\n    readonly COLOR_ATTACHMENT2: 0x8CE2;\n    readonly COLOR_ATTACHMENT3: 0x8CE3;\n    readonly COLOR_ATTACHMENT4: 0x8CE4;\n    readonly COLOR_ATTACHMENT5: 0x8CE5;\n    readonly COLOR_ATTACHMENT6: 0x8CE6;\n    readonly COLOR_ATTACHMENT7: 0x8CE7;\n    readonly COLOR_ATTACHMENT8: 0x8CE8;\n    readonly COLOR_ATTACHMENT9: 0x8CE9;\n    readonly COLOR_ATTACHMENT10: 0x8CEA;\n    readonly COLOR_ATTACHMENT11: 0x8CEB;\n    readonly COLOR_ATTACHMENT12: 0x8CEC;\n    readonly COLOR_ATTACHMENT13: 0x8CED;\n    readonly COLOR_ATTACHMENT14: 0x8CEE;\n    readonly COLOR_ATTACHMENT15: 0x8CEF;\n    readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;\n    readonly MAX_SAMPLES: 0x8D57;\n    readonly HALF_FLOAT: 0x140B;\n    readonly RG: 0x8227;\n    readonly RG_INTEGER: 0x8228;\n    readonly R8: 0x8229;\n    readonly RG8: 0x822B;\n    readonly R16F: 0x822D;\n    readonly R32F: 0x822E;\n    readonly RG16F: 0x822F;\n    readonly RG32F: 0x8230;\n    readonly R8I: 0x8231;\n    readonly R8UI: 0x8232;\n    readonly R16I: 0x8233;\n    readonly R16UI: 0x8234;\n    readonly R32I: 0x8235;\n    readonly R32UI: 0x8236;\n    readonly RG8I: 0x8237;\n    readonly RG8UI: 0x8238;\n    readonly RG16I: 0x8239;\n    readonly RG16UI: 0x823A;\n    readonly RG32I: 0x823B;\n    readonly RG32UI: 0x823C;\n    readonly VERTEX_ARRAY_BINDING: 0x85B5;\n    readonly R8_SNORM: 0x8F94;\n    readonly RG8_SNORM: 0x8F95;\n    readonly RGB8_SNORM: 0x8F96;\n    readonly RGBA8_SNORM: 0x8F97;\n    readonly SIGNED_NORMALIZED: 0x8F9C;\n    readonly COPY_READ_BUFFER: 0x8F36;\n    readonly COPY_WRITE_BUFFER: 0x8F37;\n    readonly COPY_READ_BUFFER_BINDING: 0x8F36;\n    readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;\n    readonly UNIFORM_BUFFER: 0x8A11;\n    readonly UNIFORM_BUFFER_BINDING: 0x8A28;\n    readonly UNIFORM_BUFFER_START: 0x8A29;\n    readonly UNIFORM_BUFFER_SIZE: 0x8A2A;\n    readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;\n    readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;\n    readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;\n    readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;\n    readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;\n    readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;\n    readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;\n    readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;\n    readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;\n    readonly UNIFORM_TYPE: 0x8A37;\n    readonly UNIFORM_SIZE: 0x8A38;\n    readonly UNIFORM_BLOCK_INDEX: 0x8A3A;\n    readonly UNIFORM_OFFSET: 0x8A3B;\n    readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;\n    readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;\n    readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;\n    readonly UNIFORM_BLOCK_BINDING: 0x8A3F;\n    readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;\n    readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;\n    readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;\n    readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;\n    readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;\n    readonly INVALID_INDEX: 0xFFFFFFFF;\n    readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;\n    readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;\n    readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;\n    readonly OBJECT_TYPE: 0x9112;\n    readonly SYNC_CONDITION: 0x9113;\n    readonly SYNC_STATUS: 0x9114;\n    readonly SYNC_FLAGS: 0x9115;\n    readonly SYNC_FENCE: 0x9116;\n    readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;\n    readonly UNSIGNALED: 0x9118;\n    readonly SIGNALED: 0x9119;\n    readonly ALREADY_SIGNALED: 0x911A;\n    readonly TIMEOUT_EXPIRED: 0x911B;\n    readonly CONDITION_SATISFIED: 0x911C;\n    readonly WAIT_FAILED: 0x911D;\n    readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;\n    readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;\n    readonly ANY_SAMPLES_PASSED: 0x8C2F;\n    readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;\n    readonly SAMPLER_BINDING: 0x8919;\n    readonly RGB10_A2UI: 0x906F;\n    readonly INT_2_10_10_10_REV: 0x8D9F;\n    readonly TRANSFORM_FEEDBACK: 0x8E22;\n    readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;\n    readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;\n    readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;\n    readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;\n    readonly MAX_ELEMENT_INDEX: 0x8D6B;\n    readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;\n    readonly TIMEOUT_IGNORED: -1;\n    readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;\n    readonly DEPTH_BUFFER_BIT: 0x00000100;\n    readonly STENCIL_BUFFER_BIT: 0x00000400;\n    readonly COLOR_BUFFER_BIT: 0x00004000;\n    readonly POINTS: 0x0000;\n    readonly LINES: 0x0001;\n    readonly LINE_LOOP: 0x0002;\n    readonly LINE_STRIP: 0x0003;\n    readonly TRIANGLES: 0x0004;\n    readonly TRIANGLE_STRIP: 0x0005;\n    readonly TRIANGLE_FAN: 0x0006;\n    readonly ZERO: 0;\n    readonly ONE: 1;\n    readonly SRC_COLOR: 0x0300;\n    readonly ONE_MINUS_SRC_COLOR: 0x0301;\n    readonly SRC_ALPHA: 0x0302;\n    readonly ONE_MINUS_SRC_ALPHA: 0x0303;\n    readonly DST_ALPHA: 0x0304;\n    readonly ONE_MINUS_DST_ALPHA: 0x0305;\n    readonly DST_COLOR: 0x0306;\n    readonly ONE_MINUS_DST_COLOR: 0x0307;\n    readonly SRC_ALPHA_SATURATE: 0x0308;\n    readonly FUNC_ADD: 0x8006;\n    readonly BLEND_EQUATION: 0x8009;\n    readonly BLEND_EQUATION_RGB: 0x8009;\n    readonly BLEND_EQUATION_ALPHA: 0x883D;\n    readonly FUNC_SUBTRACT: 0x800A;\n    readonly FUNC_REVERSE_SUBTRACT: 0x800B;\n    readonly BLEND_DST_RGB: 0x80C8;\n    readonly BLEND_SRC_RGB: 0x80C9;\n    readonly BLEND_DST_ALPHA: 0x80CA;\n    readonly BLEND_SRC_ALPHA: 0x80CB;\n    readonly CONSTANT_COLOR: 0x8001;\n    readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;\n    readonly CONSTANT_ALPHA: 0x8003;\n    readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;\n    readonly BLEND_COLOR: 0x8005;\n    readonly ARRAY_BUFFER: 0x8892;\n    readonly ELEMENT_ARRAY_BUFFER: 0x8893;\n    readonly ARRAY_BUFFER_BINDING: 0x8894;\n    readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;\n    readonly STREAM_DRAW: 0x88E0;\n    readonly STATIC_DRAW: 0x88E4;\n    readonly DYNAMIC_DRAW: 0x88E8;\n    readonly BUFFER_SIZE: 0x8764;\n    readonly BUFFER_USAGE: 0x8765;\n    readonly CURRENT_VERTEX_ATTRIB: 0x8626;\n    readonly FRONT: 0x0404;\n    readonly BACK: 0x0405;\n    readonly FRONT_AND_BACK: 0x0408;\n    readonly CULL_FACE: 0x0B44;\n    readonly BLEND: 0x0BE2;\n    readonly DITHER: 0x0BD0;\n    readonly STENCIL_TEST: 0x0B90;\n    readonly DEPTH_TEST: 0x0B71;\n    readonly SCISSOR_TEST: 0x0C11;\n    readonly POLYGON_OFFSET_FILL: 0x8037;\n    readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;\n    readonly SAMPLE_COVERAGE: 0x80A0;\n    readonly NO_ERROR: 0;\n    readonly INVALID_ENUM: 0x0500;\n    readonly INVALID_VALUE: 0x0501;\n    readonly INVALID_OPERATION: 0x0502;\n    readonly OUT_OF_MEMORY: 0x0505;\n    readonly CW: 0x0900;\n    readonly CCW: 0x0901;\n    readonly LINE_WIDTH: 0x0B21;\n    readonly ALIASED_POINT_SIZE_RANGE: 0x846D;\n    readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;\n    readonly CULL_FACE_MODE: 0x0B45;\n    readonly FRONT_FACE: 0x0B46;\n    readonly DEPTH_RANGE: 0x0B70;\n    readonly DEPTH_WRITEMASK: 0x0B72;\n    readonly DEPTH_CLEAR_VALUE: 0x0B73;\n    readonly DEPTH_FUNC: 0x0B74;\n    readonly STENCIL_CLEAR_VALUE: 0x0B91;\n    readonly STENCIL_FUNC: 0x0B92;\n    readonly STENCIL_FAIL: 0x0B94;\n    readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;\n    readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;\n    readonly STENCIL_REF: 0x0B97;\n    readonly STENCIL_VALUE_MASK: 0x0B93;\n    readonly STENCIL_WRITEMASK: 0x0B98;\n    readonly STENCIL_BACK_FUNC: 0x8800;\n    readonly STENCIL_BACK_FAIL: 0x8801;\n    readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;\n    readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;\n    readonly STENCIL_BACK_REF: 0x8CA3;\n    readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;\n    readonly STENCIL_BACK_WRITEMASK: 0x8CA5;\n    readonly VIEWPORT: 0x0BA2;\n    readonly SCISSOR_BOX: 0x0C10;\n    readonly COLOR_CLEAR_VALUE: 0x0C22;\n    readonly COLOR_WRITEMASK: 0x0C23;\n    readonly UNPACK_ALIGNMENT: 0x0CF5;\n    readonly PACK_ALIGNMENT: 0x0D05;\n    readonly MAX_TEXTURE_SIZE: 0x0D33;\n    readonly MAX_VIEWPORT_DIMS: 0x0D3A;\n    readonly SUBPIXEL_BITS: 0x0D50;\n    readonly RED_BITS: 0x0D52;\n    readonly GREEN_BITS: 0x0D53;\n    readonly BLUE_BITS: 0x0D54;\n    readonly ALPHA_BITS: 0x0D55;\n    readonly DEPTH_BITS: 0x0D56;\n    readonly STENCIL_BITS: 0x0D57;\n    readonly POLYGON_OFFSET_UNITS: 0x2A00;\n    readonly POLYGON_OFFSET_FACTOR: 0x8038;\n    readonly TEXTURE_BINDING_2D: 0x8069;\n    readonly SAMPLE_BUFFERS: 0x80A8;\n    readonly SAMPLES: 0x80A9;\n    readonly SAMPLE_COVERAGE_VALUE: 0x80AA;\n    readonly SAMPLE_COVERAGE_INVERT: 0x80AB;\n    readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;\n    readonly DONT_CARE: 0x1100;\n    readonly FASTEST: 0x1101;\n    readonly NICEST: 0x1102;\n    readonly GENERATE_MIPMAP_HINT: 0x8192;\n    readonly BYTE: 0x1400;\n    readonly UNSIGNED_BYTE: 0x1401;\n    readonly SHORT: 0x1402;\n    readonly UNSIGNED_SHORT: 0x1403;\n    readonly INT: 0x1404;\n    readonly UNSIGNED_INT: 0x1405;\n    readonly FLOAT: 0x1406;\n    readonly DEPTH_COMPONENT: 0x1902;\n    readonly ALPHA: 0x1906;\n    readonly RGB: 0x1907;\n    readonly RGBA: 0x1908;\n    readonly LUMINANCE: 0x1909;\n    readonly LUMINANCE_ALPHA: 0x190A;\n    readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;\n    readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;\n    readonly UNSIGNED_SHORT_5_6_5: 0x8363;\n    readonly FRAGMENT_SHADER: 0x8B30;\n    readonly VERTEX_SHADER: 0x8B31;\n    readonly MAX_VERTEX_ATTRIBS: 0x8869;\n    readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;\n    readonly MAX_VARYING_VECTORS: 0x8DFC;\n    readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;\n    readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;\n    readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;\n    readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;\n    readonly SHADER_TYPE: 0x8B4F;\n    readonly DELETE_STATUS: 0x8B80;\n    readonly LINK_STATUS: 0x8B82;\n    readonly VALIDATE_STATUS: 0x8B83;\n    readonly ATTACHED_SHADERS: 0x8B85;\n    readonly ACTIVE_UNIFORMS: 0x8B86;\n    readonly ACTIVE_ATTRIBUTES: 0x8B89;\n    readonly SHADING_LANGUAGE_VERSION: 0x8B8C;\n    readonly CURRENT_PROGRAM: 0x8B8D;\n    readonly NEVER: 0x0200;\n    readonly LESS: 0x0201;\n    readonly EQUAL: 0x0202;\n    readonly LEQUAL: 0x0203;\n    readonly GREATER: 0x0204;\n    readonly NOTEQUAL: 0x0205;\n    readonly GEQUAL: 0x0206;\n    readonly ALWAYS: 0x0207;\n    readonly KEEP: 0x1E00;\n    readonly REPLACE: 0x1E01;\n    readonly INCR: 0x1E02;\n    readonly DECR: 0x1E03;\n    readonly INVERT: 0x150A;\n    readonly INCR_WRAP: 0x8507;\n    readonly DECR_WRAP: 0x8508;\n    readonly VENDOR: 0x1F00;\n    readonly RENDERER: 0x1F01;\n    readonly VERSION: 0x1F02;\n    readonly NEAREST: 0x2600;\n    readonly LINEAR: 0x2601;\n    readonly NEAREST_MIPMAP_NEAREST: 0x2700;\n    readonly LINEAR_MIPMAP_NEAREST: 0x2701;\n    readonly NEAREST_MIPMAP_LINEAR: 0x2702;\n    readonly LINEAR_MIPMAP_LINEAR: 0x2703;\n    readonly TEXTURE_MAG_FILTER: 0x2800;\n    readonly TEXTURE_MIN_FILTER: 0x2801;\n    readonly TEXTURE_WRAP_S: 0x2802;\n    readonly TEXTURE_WRAP_T: 0x2803;\n    readonly TEXTURE_2D: 0x0DE1;\n    readonly TEXTURE: 0x1702;\n    readonly TEXTURE_CUBE_MAP: 0x8513;\n    readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;\n    readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;\n    readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;\n    readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;\n    readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;\n    readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;\n    readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;\n    readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;\n    readonly TEXTURE0: 0x84C0;\n    readonly TEXTURE1: 0x84C1;\n    readonly TEXTURE2: 0x84C2;\n    readonly TEXTURE3: 0x84C3;\n    readonly TEXTURE4: 0x84C4;\n    readonly TEXTURE5: 0x84C5;\n    readonly TEXTURE6: 0x84C6;\n    readonly TEXTURE7: 0x84C7;\n    readonly TEXTURE8: 0x84C8;\n    readonly TEXTURE9: 0x84C9;\n    readonly TEXTURE10: 0x84CA;\n    readonly TEXTURE11: 0x84CB;\n    readonly TEXTURE12: 0x84CC;\n    readonly TEXTURE13: 0x84CD;\n    readonly TEXTURE14: 0x84CE;\n    readonly TEXTURE15: 0x84CF;\n    readonly TEXTURE16: 0x84D0;\n    readonly TEXTURE17: 0x84D1;\n    readonly TEXTURE18: 0x84D2;\n    readonly TEXTURE19: 0x84D3;\n    readonly TEXTURE20: 0x84D4;\n    readonly TEXTURE21: 0x84D5;\n    readonly TEXTURE22: 0x84D6;\n    readonly TEXTURE23: 0x84D7;\n    readonly TEXTURE24: 0x84D8;\n    readonly TEXTURE25: 0x84D9;\n    readonly TEXTURE26: 0x84DA;\n    readonly TEXTURE27: 0x84DB;\n    readonly TEXTURE28: 0x84DC;\n    readonly TEXTURE29: 0x84DD;\n    readonly TEXTURE30: 0x84DE;\n    readonly TEXTURE31: 0x84DF;\n    readonly ACTIVE_TEXTURE: 0x84E0;\n    readonly REPEAT: 0x2901;\n    readonly CLAMP_TO_EDGE: 0x812F;\n    readonly MIRRORED_REPEAT: 0x8370;\n    readonly FLOAT_VEC2: 0x8B50;\n    readonly FLOAT_VEC3: 0x8B51;\n    readonly FLOAT_VEC4: 0x8B52;\n    readonly INT_VEC2: 0x8B53;\n    readonly INT_VEC3: 0x8B54;\n    readonly INT_VEC4: 0x8B55;\n    readonly BOOL: 0x8B56;\n    readonly BOOL_VEC2: 0x8B57;\n    readonly BOOL_VEC3: 0x8B58;\n    readonly BOOL_VEC4: 0x8B59;\n    readonly FLOAT_MAT2: 0x8B5A;\n    readonly FLOAT_MAT3: 0x8B5B;\n    readonly FLOAT_MAT4: 0x8B5C;\n    readonly SAMPLER_2D: 0x8B5E;\n    readonly SAMPLER_CUBE: 0x8B60;\n    readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;\n    readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;\n    readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;\n    readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;\n    readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;\n    readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;\n    readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;\n    readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;\n    readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;\n    readonly COMPILE_STATUS: 0x8B81;\n    readonly LOW_FLOAT: 0x8DF0;\n    readonly MEDIUM_FLOAT: 0x8DF1;\n    readonly HIGH_FLOAT: 0x8DF2;\n    readonly LOW_INT: 0x8DF3;\n    readonly MEDIUM_INT: 0x8DF4;\n    readonly HIGH_INT: 0x8DF5;\n    readonly FRAMEBUFFER: 0x8D40;\n    readonly RENDERBUFFER: 0x8D41;\n    readonly RGBA4: 0x8056;\n    readonly RGB5_A1: 0x8057;\n    readonly RGB565: 0x8D62;\n    readonly DEPTH_COMPONENT16: 0x81A5;\n    readonly STENCIL_INDEX8: 0x8D48;\n    readonly DEPTH_STENCIL: 0x84F9;\n    readonly RENDERBUFFER_WIDTH: 0x8D42;\n    readonly RENDERBUFFER_HEIGHT: 0x8D43;\n    readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;\n    readonly RENDERBUFFER_RED_SIZE: 0x8D50;\n    readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;\n    readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;\n    readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;\n    readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;\n    readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;\n    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;\n    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;\n    readonly COLOR_ATTACHMENT0: 0x8CE0;\n    readonly DEPTH_ATTACHMENT: 0x8D00;\n    readonly STENCIL_ATTACHMENT: 0x8D20;\n    readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;\n    readonly NONE: 0;\n    readonly FRAMEBUFFER_COMPLETE: 0x8CD5;\n    readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;\n    readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;\n    readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;\n    readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;\n    readonly FRAMEBUFFER_BINDING: 0x8CA6;\n    readonly RENDERBUFFER_BINDING: 0x8CA7;\n    readonly MAX_RENDERBUFFER_SIZE: 0x84E8;\n    readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;\n    readonly UNPACK_FLIP_Y_WEBGL: 0x9240;\n    readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;\n    readonly CONTEXT_LOST_WEBGL: 0x9242;\n    readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;\n    readonly BROWSER_DEFAULT_WEBGL: 0x9244;\n};\n\ninterface WebGL2RenderingContextBase {\n    beginQuery(target: GLenum, query: WebGLQuery): void;\n    beginTransformFeedback(primitiveMode: GLenum): void;\n    bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;\n    bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;\n    bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;\n    bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;\n    bindVertexArray(array: WebGLVertexArrayObject | null): void;\n    blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;\n    clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;\n    clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;\n    clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;\n    clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;\n    clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;\n    compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;\n    compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n    compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;\n    compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n    copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;\n    copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n    createQuery(): WebGLQuery | null;\n    createSampler(): WebGLSampler | null;\n    createTransformFeedback(): WebGLTransformFeedback | null;\n    createVertexArray(): WebGLVertexArrayObject | null;\n    deleteQuery(query: WebGLQuery | null): void;\n    deleteSampler(sampler: WebGLSampler | null): void;\n    deleteSync(sync: WebGLSync | null): void;\n    deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;\n    deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;\n    drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;\n    drawBuffers(buffers: GLenum[]): void;\n    drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;\n    drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;\n    endQuery(target: GLenum): void;\n    endTransformFeedback(): void;\n    fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;\n    framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;\n    getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;\n    getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;\n    getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;\n    getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;\n    getFragDataLocation(program: WebGLProgram, name: string): GLint;\n    getIndexedParameter(target: GLenum, index: GLuint): any;\n    getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;\n    getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;\n    getQueryParameter(query: WebGLQuery, pname: GLenum): any;\n    getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;\n    getSyncParameter(sync: WebGLSync, pname: GLenum): any;\n    getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n    getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;\n    getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;\n    invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;\n    invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n    isQuery(query: WebGLQuery | null): GLboolean;\n    isSampler(sampler: WebGLSampler | null): GLboolean;\n    isSync(sync: WebGLSync | null): GLboolean;\n    isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;\n    isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;\n    pauseTransformFeedback(): void;\n    readBuffer(src: GLenum): void;\n    renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n    resumeTransformFeedback(): void;\n    samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;\n    samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;\n    texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n    texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n    texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;\n    texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n    texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n    texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;\n    texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n    texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;\n    texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: GLuint): void;\n    transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;\n    uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;\n    uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;\n    uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;\n    uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;\n    uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;\n    uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    vertexAttribDivisor(index: GLuint, divisor: GLuint): void;\n    vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;\n    vertexAttribI4iv(index: GLuint, values: Int32List): void;\n    vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;\n    vertexAttribI4uiv(index: GLuint, values: Uint32List): void;\n    vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;\n    waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;\n    readonly READ_BUFFER: 0x0C02;\n    readonly UNPACK_ROW_LENGTH: 0x0CF2;\n    readonly UNPACK_SKIP_ROWS: 0x0CF3;\n    readonly UNPACK_SKIP_PIXELS: 0x0CF4;\n    readonly PACK_ROW_LENGTH: 0x0D02;\n    readonly PACK_SKIP_ROWS: 0x0D03;\n    readonly PACK_SKIP_PIXELS: 0x0D04;\n    readonly COLOR: 0x1800;\n    readonly DEPTH: 0x1801;\n    readonly STENCIL: 0x1802;\n    readonly RED: 0x1903;\n    readonly RGB8: 0x8051;\n    readonly RGBA8: 0x8058;\n    readonly RGB10_A2: 0x8059;\n    readonly TEXTURE_BINDING_3D: 0x806A;\n    readonly UNPACK_SKIP_IMAGES: 0x806D;\n    readonly UNPACK_IMAGE_HEIGHT: 0x806E;\n    readonly TEXTURE_3D: 0x806F;\n    readonly TEXTURE_WRAP_R: 0x8072;\n    readonly MAX_3D_TEXTURE_SIZE: 0x8073;\n    readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;\n    readonly MAX_ELEMENTS_VERTICES: 0x80E8;\n    readonly MAX_ELEMENTS_INDICES: 0x80E9;\n    readonly TEXTURE_MIN_LOD: 0x813A;\n    readonly TEXTURE_MAX_LOD: 0x813B;\n    readonly TEXTURE_BASE_LEVEL: 0x813C;\n    readonly TEXTURE_MAX_LEVEL: 0x813D;\n    readonly MIN: 0x8007;\n    readonly MAX: 0x8008;\n    readonly DEPTH_COMPONENT24: 0x81A6;\n    readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;\n    readonly TEXTURE_COMPARE_MODE: 0x884C;\n    readonly TEXTURE_COMPARE_FUNC: 0x884D;\n    readonly CURRENT_QUERY: 0x8865;\n    readonly QUERY_RESULT: 0x8866;\n    readonly QUERY_RESULT_AVAILABLE: 0x8867;\n    readonly STREAM_READ: 0x88E1;\n    readonly STREAM_COPY: 0x88E2;\n    readonly STATIC_READ: 0x88E5;\n    readonly STATIC_COPY: 0x88E6;\n    readonly DYNAMIC_READ: 0x88E9;\n    readonly DYNAMIC_COPY: 0x88EA;\n    readonly MAX_DRAW_BUFFERS: 0x8824;\n    readonly DRAW_BUFFER0: 0x8825;\n    readonly DRAW_BUFFER1: 0x8826;\n    readonly DRAW_BUFFER2: 0x8827;\n    readonly DRAW_BUFFER3: 0x8828;\n    readonly DRAW_BUFFER4: 0x8829;\n    readonly DRAW_BUFFER5: 0x882A;\n    readonly DRAW_BUFFER6: 0x882B;\n    readonly DRAW_BUFFER7: 0x882C;\n    readonly DRAW_BUFFER8: 0x882D;\n    readonly DRAW_BUFFER9: 0x882E;\n    readonly DRAW_BUFFER10: 0x882F;\n    readonly DRAW_BUFFER11: 0x8830;\n    readonly DRAW_BUFFER12: 0x8831;\n    readonly DRAW_BUFFER13: 0x8832;\n    readonly DRAW_BUFFER14: 0x8833;\n    readonly DRAW_BUFFER15: 0x8834;\n    readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;\n    readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;\n    readonly SAMPLER_3D: 0x8B5F;\n    readonly SAMPLER_2D_SHADOW: 0x8B62;\n    readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;\n    readonly PIXEL_PACK_BUFFER: 0x88EB;\n    readonly PIXEL_UNPACK_BUFFER: 0x88EC;\n    readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;\n    readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;\n    readonly FLOAT_MAT2x3: 0x8B65;\n    readonly FLOAT_MAT2x4: 0x8B66;\n    readonly FLOAT_MAT3x2: 0x8B67;\n    readonly FLOAT_MAT3x4: 0x8B68;\n    readonly FLOAT_MAT4x2: 0x8B69;\n    readonly FLOAT_MAT4x3: 0x8B6A;\n    readonly SRGB: 0x8C40;\n    readonly SRGB8: 0x8C41;\n    readonly SRGB8_ALPHA8: 0x8C43;\n    readonly COMPARE_REF_TO_TEXTURE: 0x884E;\n    readonly RGBA32F: 0x8814;\n    readonly RGB32F: 0x8815;\n    readonly RGBA16F: 0x881A;\n    readonly RGB16F: 0x881B;\n    readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;\n    readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;\n    readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;\n    readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;\n    readonly MAX_VARYING_COMPONENTS: 0x8B4B;\n    readonly TEXTURE_2D_ARRAY: 0x8C1A;\n    readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;\n    readonly R11F_G11F_B10F: 0x8C3A;\n    readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;\n    readonly RGB9_E5: 0x8C3D;\n    readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;\n    readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;\n    readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;\n    readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;\n    readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;\n    readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;\n    readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;\n    readonly RASTERIZER_DISCARD: 0x8C89;\n    readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;\n    readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;\n    readonly INTERLEAVED_ATTRIBS: 0x8C8C;\n    readonly SEPARATE_ATTRIBS: 0x8C8D;\n    readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;\n    readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;\n    readonly RGBA32UI: 0x8D70;\n    readonly RGB32UI: 0x8D71;\n    readonly RGBA16UI: 0x8D76;\n    readonly RGB16UI: 0x8D77;\n    readonly RGBA8UI: 0x8D7C;\n    readonly RGB8UI: 0x8D7D;\n    readonly RGBA32I: 0x8D82;\n    readonly RGB32I: 0x8D83;\n    readonly RGBA16I: 0x8D88;\n    readonly RGB16I: 0x8D89;\n    readonly RGBA8I: 0x8D8E;\n    readonly RGB8I: 0x8D8F;\n    readonly RED_INTEGER: 0x8D94;\n    readonly RGB_INTEGER: 0x8D98;\n    readonly RGBA_INTEGER: 0x8D99;\n    readonly SAMPLER_2D_ARRAY: 0x8DC1;\n    readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;\n    readonly SAMPLER_CUBE_SHADOW: 0x8DC5;\n    readonly UNSIGNED_INT_VEC2: 0x8DC6;\n    readonly UNSIGNED_INT_VEC3: 0x8DC7;\n    readonly UNSIGNED_INT_VEC4: 0x8DC8;\n    readonly INT_SAMPLER_2D: 0x8DCA;\n    readonly INT_SAMPLER_3D: 0x8DCB;\n    readonly INT_SAMPLER_CUBE: 0x8DCC;\n    readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;\n    readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;\n    readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;\n    readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;\n    readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;\n    readonly DEPTH_COMPONENT32F: 0x8CAC;\n    readonly DEPTH32F_STENCIL8: 0x8CAD;\n    readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;\n    readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;\n    readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;\n    readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;\n    readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;\n    readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;\n    readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;\n    readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;\n    readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;\n    readonly FRAMEBUFFER_DEFAULT: 0x8218;\n    readonly UNSIGNED_INT_24_8: 0x84FA;\n    readonly DEPTH24_STENCIL8: 0x88F0;\n    readonly UNSIGNED_NORMALIZED: 0x8C17;\n    readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;\n    readonly READ_FRAMEBUFFER: 0x8CA8;\n    readonly DRAW_FRAMEBUFFER: 0x8CA9;\n    readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;\n    readonly RENDERBUFFER_SAMPLES: 0x8CAB;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;\n    readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;\n    readonly COLOR_ATTACHMENT1: 0x8CE1;\n    readonly COLOR_ATTACHMENT2: 0x8CE2;\n    readonly COLOR_ATTACHMENT3: 0x8CE3;\n    readonly COLOR_ATTACHMENT4: 0x8CE4;\n    readonly COLOR_ATTACHMENT5: 0x8CE5;\n    readonly COLOR_ATTACHMENT6: 0x8CE6;\n    readonly COLOR_ATTACHMENT7: 0x8CE7;\n    readonly COLOR_ATTACHMENT8: 0x8CE8;\n    readonly COLOR_ATTACHMENT9: 0x8CE9;\n    readonly COLOR_ATTACHMENT10: 0x8CEA;\n    readonly COLOR_ATTACHMENT11: 0x8CEB;\n    readonly COLOR_ATTACHMENT12: 0x8CEC;\n    readonly COLOR_ATTACHMENT13: 0x8CED;\n    readonly COLOR_ATTACHMENT14: 0x8CEE;\n    readonly COLOR_ATTACHMENT15: 0x8CEF;\n    readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;\n    readonly MAX_SAMPLES: 0x8D57;\n    readonly HALF_FLOAT: 0x140B;\n    readonly RG: 0x8227;\n    readonly RG_INTEGER: 0x8228;\n    readonly R8: 0x8229;\n    readonly RG8: 0x822B;\n    readonly R16F: 0x822D;\n    readonly R32F: 0x822E;\n    readonly RG16F: 0x822F;\n    readonly RG32F: 0x8230;\n    readonly R8I: 0x8231;\n    readonly R8UI: 0x8232;\n    readonly R16I: 0x8233;\n    readonly R16UI: 0x8234;\n    readonly R32I: 0x8235;\n    readonly R32UI: 0x8236;\n    readonly RG8I: 0x8237;\n    readonly RG8UI: 0x8238;\n    readonly RG16I: 0x8239;\n    readonly RG16UI: 0x823A;\n    readonly RG32I: 0x823B;\n    readonly RG32UI: 0x823C;\n    readonly VERTEX_ARRAY_BINDING: 0x85B5;\n    readonly R8_SNORM: 0x8F94;\n    readonly RG8_SNORM: 0x8F95;\n    readonly RGB8_SNORM: 0x8F96;\n    readonly RGBA8_SNORM: 0x8F97;\n    readonly SIGNED_NORMALIZED: 0x8F9C;\n    readonly COPY_READ_BUFFER: 0x8F36;\n    readonly COPY_WRITE_BUFFER: 0x8F37;\n    readonly COPY_READ_BUFFER_BINDING: 0x8F36;\n    readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;\n    readonly UNIFORM_BUFFER: 0x8A11;\n    readonly UNIFORM_BUFFER_BINDING: 0x8A28;\n    readonly UNIFORM_BUFFER_START: 0x8A29;\n    readonly UNIFORM_BUFFER_SIZE: 0x8A2A;\n    readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;\n    readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;\n    readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;\n    readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;\n    readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;\n    readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;\n    readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;\n    readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;\n    readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;\n    readonly UNIFORM_TYPE: 0x8A37;\n    readonly UNIFORM_SIZE: 0x8A38;\n    readonly UNIFORM_BLOCK_INDEX: 0x8A3A;\n    readonly UNIFORM_OFFSET: 0x8A3B;\n    readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;\n    readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;\n    readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;\n    readonly UNIFORM_BLOCK_BINDING: 0x8A3F;\n    readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;\n    readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;\n    readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;\n    readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;\n    readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;\n    readonly INVALID_INDEX: 0xFFFFFFFF;\n    readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;\n    readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;\n    readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;\n    readonly OBJECT_TYPE: 0x9112;\n    readonly SYNC_CONDITION: 0x9113;\n    readonly SYNC_STATUS: 0x9114;\n    readonly SYNC_FLAGS: 0x9115;\n    readonly SYNC_FENCE: 0x9116;\n    readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;\n    readonly UNSIGNALED: 0x9118;\n    readonly SIGNALED: 0x9119;\n    readonly ALREADY_SIGNALED: 0x911A;\n    readonly TIMEOUT_EXPIRED: 0x911B;\n    readonly CONDITION_SATISFIED: 0x911C;\n    readonly WAIT_FAILED: 0x911D;\n    readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;\n    readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;\n    readonly ANY_SAMPLES_PASSED: 0x8C2F;\n    readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;\n    readonly SAMPLER_BINDING: 0x8919;\n    readonly RGB10_A2UI: 0x906F;\n    readonly INT_2_10_10_10_REV: 0x8D9F;\n    readonly TRANSFORM_FEEDBACK: 0x8E22;\n    readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;\n    readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;\n    readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;\n    readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;\n    readonly MAX_ELEMENT_INDEX: 0x8D6B;\n    readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;\n    readonly TIMEOUT_IGNORED: -1;\n    readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;\n}\n\ninterface WebGL2RenderingContextOverloads {\n    bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;\n    bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;\n    bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;\n    bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;\n    bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;\n    compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;\n    compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n    compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;\n    compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n    readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;\n    readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;\n    readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void;\n    texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n    texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n    texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n    texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n    texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;\n    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n    uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n}\n\n/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */\ninterface WebGLActiveInfo {\n    readonly name: string;\n    readonly size: GLint;\n    readonly type: GLenum;\n}\n\ndeclare var WebGLActiveInfo: {\n    prototype: WebGLActiveInfo;\n    new(): WebGLActiveInfo;\n};\n\n/** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */\ninterface WebGLBuffer {\n}\n\ndeclare var WebGLBuffer: {\n    prototype: WebGLBuffer;\n    new(): WebGLBuffer;\n};\n\n/** The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context. */\ninterface WebGLContextEvent extends Event {\n    readonly statusMessage: string;\n}\n\ndeclare var WebGLContextEvent: {\n    prototype: WebGLContextEvent;\n    new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;\n};\n\n/** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */\ninterface WebGLFramebuffer {\n}\n\ndeclare var WebGLFramebuffer: {\n    prototype: WebGLFramebuffer;\n    new(): WebGLFramebuffer;\n};\n\n/** The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). */\ninterface WebGLProgram {\n}\n\ndeclare var WebGLProgram: {\n    prototype: WebGLProgram;\n    new(): WebGLProgram;\n};\n\ninterface WebGLQuery {\n}\n\ndeclare var WebGLQuery: {\n    prototype: WebGLQuery;\n    new(): WebGLQuery;\n};\n\n/** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */\ninterface WebGLRenderbuffer {\n}\n\ndeclare var WebGLRenderbuffer: {\n    prototype: WebGLRenderbuffer;\n    new(): WebGLRenderbuffer;\n};\n\n/** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */\ninterface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {\n}\n\ndeclare var WebGLRenderingContext: {\n    prototype: WebGLRenderingContext;\n    new(): WebGLRenderingContext;\n    readonly DEPTH_BUFFER_BIT: 0x00000100;\n    readonly STENCIL_BUFFER_BIT: 0x00000400;\n    readonly COLOR_BUFFER_BIT: 0x00004000;\n    readonly POINTS: 0x0000;\n    readonly LINES: 0x0001;\n    readonly LINE_LOOP: 0x0002;\n    readonly LINE_STRIP: 0x0003;\n    readonly TRIANGLES: 0x0004;\n    readonly TRIANGLE_STRIP: 0x0005;\n    readonly TRIANGLE_FAN: 0x0006;\n    readonly ZERO: 0;\n    readonly ONE: 1;\n    readonly SRC_COLOR: 0x0300;\n    readonly ONE_MINUS_SRC_COLOR: 0x0301;\n    readonly SRC_ALPHA: 0x0302;\n    readonly ONE_MINUS_SRC_ALPHA: 0x0303;\n    readonly DST_ALPHA: 0x0304;\n    readonly ONE_MINUS_DST_ALPHA: 0x0305;\n    readonly DST_COLOR: 0x0306;\n    readonly ONE_MINUS_DST_COLOR: 0x0307;\n    readonly SRC_ALPHA_SATURATE: 0x0308;\n    readonly FUNC_ADD: 0x8006;\n    readonly BLEND_EQUATION: 0x8009;\n    readonly BLEND_EQUATION_RGB: 0x8009;\n    readonly BLEND_EQUATION_ALPHA: 0x883D;\n    readonly FUNC_SUBTRACT: 0x800A;\n    readonly FUNC_REVERSE_SUBTRACT: 0x800B;\n    readonly BLEND_DST_RGB: 0x80C8;\n    readonly BLEND_SRC_RGB: 0x80C9;\n    readonly BLEND_DST_ALPHA: 0x80CA;\n    readonly BLEND_SRC_ALPHA: 0x80CB;\n    readonly CONSTANT_COLOR: 0x8001;\n    readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;\n    readonly CONSTANT_ALPHA: 0x8003;\n    readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;\n    readonly BLEND_COLOR: 0x8005;\n    readonly ARRAY_BUFFER: 0x8892;\n    readonly ELEMENT_ARRAY_BUFFER: 0x8893;\n    readonly ARRAY_BUFFER_BINDING: 0x8894;\n    readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;\n    readonly STREAM_DRAW: 0x88E0;\n    readonly STATIC_DRAW: 0x88E4;\n    readonly DYNAMIC_DRAW: 0x88E8;\n    readonly BUFFER_SIZE: 0x8764;\n    readonly BUFFER_USAGE: 0x8765;\n    readonly CURRENT_VERTEX_ATTRIB: 0x8626;\n    readonly FRONT: 0x0404;\n    readonly BACK: 0x0405;\n    readonly FRONT_AND_BACK: 0x0408;\n    readonly CULL_FACE: 0x0B44;\n    readonly BLEND: 0x0BE2;\n    readonly DITHER: 0x0BD0;\n    readonly STENCIL_TEST: 0x0B90;\n    readonly DEPTH_TEST: 0x0B71;\n    readonly SCISSOR_TEST: 0x0C11;\n    readonly POLYGON_OFFSET_FILL: 0x8037;\n    readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;\n    readonly SAMPLE_COVERAGE: 0x80A0;\n    readonly NO_ERROR: 0;\n    readonly INVALID_ENUM: 0x0500;\n    readonly INVALID_VALUE: 0x0501;\n    readonly INVALID_OPERATION: 0x0502;\n    readonly OUT_OF_MEMORY: 0x0505;\n    readonly CW: 0x0900;\n    readonly CCW: 0x0901;\n    readonly LINE_WIDTH: 0x0B21;\n    readonly ALIASED_POINT_SIZE_RANGE: 0x846D;\n    readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;\n    readonly CULL_FACE_MODE: 0x0B45;\n    readonly FRONT_FACE: 0x0B46;\n    readonly DEPTH_RANGE: 0x0B70;\n    readonly DEPTH_WRITEMASK: 0x0B72;\n    readonly DEPTH_CLEAR_VALUE: 0x0B73;\n    readonly DEPTH_FUNC: 0x0B74;\n    readonly STENCIL_CLEAR_VALUE: 0x0B91;\n    readonly STENCIL_FUNC: 0x0B92;\n    readonly STENCIL_FAIL: 0x0B94;\n    readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;\n    readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;\n    readonly STENCIL_REF: 0x0B97;\n    readonly STENCIL_VALUE_MASK: 0x0B93;\n    readonly STENCIL_WRITEMASK: 0x0B98;\n    readonly STENCIL_BACK_FUNC: 0x8800;\n    readonly STENCIL_BACK_FAIL: 0x8801;\n    readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;\n    readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;\n    readonly STENCIL_BACK_REF: 0x8CA3;\n    readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;\n    readonly STENCIL_BACK_WRITEMASK: 0x8CA5;\n    readonly VIEWPORT: 0x0BA2;\n    readonly SCISSOR_BOX: 0x0C10;\n    readonly COLOR_CLEAR_VALUE: 0x0C22;\n    readonly COLOR_WRITEMASK: 0x0C23;\n    readonly UNPACK_ALIGNMENT: 0x0CF5;\n    readonly PACK_ALIGNMENT: 0x0D05;\n    readonly MAX_TEXTURE_SIZE: 0x0D33;\n    readonly MAX_VIEWPORT_DIMS: 0x0D3A;\n    readonly SUBPIXEL_BITS: 0x0D50;\n    readonly RED_BITS: 0x0D52;\n    readonly GREEN_BITS: 0x0D53;\n    readonly BLUE_BITS: 0x0D54;\n    readonly ALPHA_BITS: 0x0D55;\n    readonly DEPTH_BITS: 0x0D56;\n    readonly STENCIL_BITS: 0x0D57;\n    readonly POLYGON_OFFSET_UNITS: 0x2A00;\n    readonly POLYGON_OFFSET_FACTOR: 0x8038;\n    readonly TEXTURE_BINDING_2D: 0x8069;\n    readonly SAMPLE_BUFFERS: 0x80A8;\n    readonly SAMPLES: 0x80A9;\n    readonly SAMPLE_COVERAGE_VALUE: 0x80AA;\n    readonly SAMPLE_COVERAGE_INVERT: 0x80AB;\n    readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;\n    readonly DONT_CARE: 0x1100;\n    readonly FASTEST: 0x1101;\n    readonly NICEST: 0x1102;\n    readonly GENERATE_MIPMAP_HINT: 0x8192;\n    readonly BYTE: 0x1400;\n    readonly UNSIGNED_BYTE: 0x1401;\n    readonly SHORT: 0x1402;\n    readonly UNSIGNED_SHORT: 0x1403;\n    readonly INT: 0x1404;\n    readonly UNSIGNED_INT: 0x1405;\n    readonly FLOAT: 0x1406;\n    readonly DEPTH_COMPONENT: 0x1902;\n    readonly ALPHA: 0x1906;\n    readonly RGB: 0x1907;\n    readonly RGBA: 0x1908;\n    readonly LUMINANCE: 0x1909;\n    readonly LUMINANCE_ALPHA: 0x190A;\n    readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;\n    readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;\n    readonly UNSIGNED_SHORT_5_6_5: 0x8363;\n    readonly FRAGMENT_SHADER: 0x8B30;\n    readonly VERTEX_SHADER: 0x8B31;\n    readonly MAX_VERTEX_ATTRIBS: 0x8869;\n    readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;\n    readonly MAX_VARYING_VECTORS: 0x8DFC;\n    readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;\n    readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;\n    readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;\n    readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;\n    readonly SHADER_TYPE: 0x8B4F;\n    readonly DELETE_STATUS: 0x8B80;\n    readonly LINK_STATUS: 0x8B82;\n    readonly VALIDATE_STATUS: 0x8B83;\n    readonly ATTACHED_SHADERS: 0x8B85;\n    readonly ACTIVE_UNIFORMS: 0x8B86;\n    readonly ACTIVE_ATTRIBUTES: 0x8B89;\n    readonly SHADING_LANGUAGE_VERSION: 0x8B8C;\n    readonly CURRENT_PROGRAM: 0x8B8D;\n    readonly NEVER: 0x0200;\n    readonly LESS: 0x0201;\n    readonly EQUAL: 0x0202;\n    readonly LEQUAL: 0x0203;\n    readonly GREATER: 0x0204;\n    readonly NOTEQUAL: 0x0205;\n    readonly GEQUAL: 0x0206;\n    readonly ALWAYS: 0x0207;\n    readonly KEEP: 0x1E00;\n    readonly REPLACE: 0x1E01;\n    readonly INCR: 0x1E02;\n    readonly DECR: 0x1E03;\n    readonly INVERT: 0x150A;\n    readonly INCR_WRAP: 0x8507;\n    readonly DECR_WRAP: 0x8508;\n    readonly VENDOR: 0x1F00;\n    readonly RENDERER: 0x1F01;\n    readonly VERSION: 0x1F02;\n    readonly NEAREST: 0x2600;\n    readonly LINEAR: 0x2601;\n    readonly NEAREST_MIPMAP_NEAREST: 0x2700;\n    readonly LINEAR_MIPMAP_NEAREST: 0x2701;\n    readonly NEAREST_MIPMAP_LINEAR: 0x2702;\n    readonly LINEAR_MIPMAP_LINEAR: 0x2703;\n    readonly TEXTURE_MAG_FILTER: 0x2800;\n    readonly TEXTURE_MIN_FILTER: 0x2801;\n    readonly TEXTURE_WRAP_S: 0x2802;\n    readonly TEXTURE_WRAP_T: 0x2803;\n    readonly TEXTURE_2D: 0x0DE1;\n    readonly TEXTURE: 0x1702;\n    readonly TEXTURE_CUBE_MAP: 0x8513;\n    readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;\n    readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;\n    readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;\n    readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;\n    readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;\n    readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;\n    readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;\n    readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;\n    readonly TEXTURE0: 0x84C0;\n    readonly TEXTURE1: 0x84C1;\n    readonly TEXTURE2: 0x84C2;\n    readonly TEXTURE3: 0x84C3;\n    readonly TEXTURE4: 0x84C4;\n    readonly TEXTURE5: 0x84C5;\n    readonly TEXTURE6: 0x84C6;\n    readonly TEXTURE7: 0x84C7;\n    readonly TEXTURE8: 0x84C8;\n    readonly TEXTURE9: 0x84C9;\n    readonly TEXTURE10: 0x84CA;\n    readonly TEXTURE11: 0x84CB;\n    readonly TEXTURE12: 0x84CC;\n    readonly TEXTURE13: 0x84CD;\n    readonly TEXTURE14: 0x84CE;\n    readonly TEXTURE15: 0x84CF;\n    readonly TEXTURE16: 0x84D0;\n    readonly TEXTURE17: 0x84D1;\n    readonly TEXTURE18: 0x84D2;\n    readonly TEXTURE19: 0x84D3;\n    readonly TEXTURE20: 0x84D4;\n    readonly TEXTURE21: 0x84D5;\n    readonly TEXTURE22: 0x84D6;\n    readonly TEXTURE23: 0x84D7;\n    readonly TEXTURE24: 0x84D8;\n    readonly TEXTURE25: 0x84D9;\n    readonly TEXTURE26: 0x84DA;\n    readonly TEXTURE27: 0x84DB;\n    readonly TEXTURE28: 0x84DC;\n    readonly TEXTURE29: 0x84DD;\n    readonly TEXTURE30: 0x84DE;\n    readonly TEXTURE31: 0x84DF;\n    readonly ACTIVE_TEXTURE: 0x84E0;\n    readonly REPEAT: 0x2901;\n    readonly CLAMP_TO_EDGE: 0x812F;\n    readonly MIRRORED_REPEAT: 0x8370;\n    readonly FLOAT_VEC2: 0x8B50;\n    readonly FLOAT_VEC3: 0x8B51;\n    readonly FLOAT_VEC4: 0x8B52;\n    readonly INT_VEC2: 0x8B53;\n    readonly INT_VEC3: 0x8B54;\n    readonly INT_VEC4: 0x8B55;\n    readonly BOOL: 0x8B56;\n    readonly BOOL_VEC2: 0x8B57;\n    readonly BOOL_VEC3: 0x8B58;\n    readonly BOOL_VEC4: 0x8B59;\n    readonly FLOAT_MAT2: 0x8B5A;\n    readonly FLOAT_MAT3: 0x8B5B;\n    readonly FLOAT_MAT4: 0x8B5C;\n    readonly SAMPLER_2D: 0x8B5E;\n    readonly SAMPLER_CUBE: 0x8B60;\n    readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;\n    readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;\n    readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;\n    readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;\n    readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;\n    readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;\n    readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;\n    readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;\n    readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;\n    readonly COMPILE_STATUS: 0x8B81;\n    readonly LOW_FLOAT: 0x8DF0;\n    readonly MEDIUM_FLOAT: 0x8DF1;\n    readonly HIGH_FLOAT: 0x8DF2;\n    readonly LOW_INT: 0x8DF3;\n    readonly MEDIUM_INT: 0x8DF4;\n    readonly HIGH_INT: 0x8DF5;\n    readonly FRAMEBUFFER: 0x8D40;\n    readonly RENDERBUFFER: 0x8D41;\n    readonly RGBA4: 0x8056;\n    readonly RGB5_A1: 0x8057;\n    readonly RGB565: 0x8D62;\n    readonly DEPTH_COMPONENT16: 0x81A5;\n    readonly STENCIL_INDEX8: 0x8D48;\n    readonly DEPTH_STENCIL: 0x84F9;\n    readonly RENDERBUFFER_WIDTH: 0x8D42;\n    readonly RENDERBUFFER_HEIGHT: 0x8D43;\n    readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;\n    readonly RENDERBUFFER_RED_SIZE: 0x8D50;\n    readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;\n    readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;\n    readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;\n    readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;\n    readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;\n    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;\n    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;\n    readonly COLOR_ATTACHMENT0: 0x8CE0;\n    readonly DEPTH_ATTACHMENT: 0x8D00;\n    readonly STENCIL_ATTACHMENT: 0x8D20;\n    readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;\n    readonly NONE: 0;\n    readonly FRAMEBUFFER_COMPLETE: 0x8CD5;\n    readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;\n    readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;\n    readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;\n    readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;\n    readonly FRAMEBUFFER_BINDING: 0x8CA6;\n    readonly RENDERBUFFER_BINDING: 0x8CA7;\n    readonly MAX_RENDERBUFFER_SIZE: 0x84E8;\n    readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;\n    readonly UNPACK_FLIP_Y_WEBGL: 0x9240;\n    readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;\n    readonly CONTEXT_LOST_WEBGL: 0x9242;\n    readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;\n    readonly BROWSER_DEFAULT_WEBGL: 0x9244;\n};\n\ninterface WebGLRenderingContextBase {\n    readonly canvas: HTMLCanvasElement | OffscreenCanvas;\n    readonly drawingBufferHeight: GLsizei;\n    readonly drawingBufferWidth: GLsizei;\n    activeTexture(texture: GLenum): void;\n    attachShader(program: WebGLProgram, shader: WebGLShader): void;\n    bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;\n    bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;\n    bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;\n    bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;\n    bindTexture(target: GLenum, texture: WebGLTexture | null): void;\n    blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;\n    blendEquation(mode: GLenum): void;\n    blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;\n    blendFunc(sfactor: GLenum, dfactor: GLenum): void;\n    blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;\n    checkFramebufferStatus(target: GLenum): GLenum;\n    clear(mask: GLbitfield): void;\n    clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;\n    clearDepth(depth: GLclampf): void;\n    clearStencil(s: GLint): void;\n    colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;\n    compileShader(shader: WebGLShader): void;\n    copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;\n    copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n    createBuffer(): WebGLBuffer | null;\n    createFramebuffer(): WebGLFramebuffer | null;\n    createProgram(): WebGLProgram | null;\n    createRenderbuffer(): WebGLRenderbuffer | null;\n    createShader(type: GLenum): WebGLShader | null;\n    createTexture(): WebGLTexture | null;\n    cullFace(mode: GLenum): void;\n    deleteBuffer(buffer: WebGLBuffer | null): void;\n    deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;\n    deleteProgram(program: WebGLProgram | null): void;\n    deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;\n    deleteShader(shader: WebGLShader | null): void;\n    deleteTexture(texture: WebGLTexture | null): void;\n    depthFunc(func: GLenum): void;\n    depthMask(flag: GLboolean): void;\n    depthRange(zNear: GLclampf, zFar: GLclampf): void;\n    detachShader(program: WebGLProgram, shader: WebGLShader): void;\n    disable(cap: GLenum): void;\n    disableVertexAttribArray(index: GLuint): void;\n    drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;\n    drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;\n    enable(cap: GLenum): void;\n    enableVertexAttribArray(index: GLuint): void;\n    finish(): void;\n    flush(): void;\n    framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;\n    framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;\n    frontFace(mode: GLenum): void;\n    generateMipmap(target: GLenum): void;\n    getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n    getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n    getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;\n    getAttribLocation(program: WebGLProgram, name: string): GLint;\n    getBufferParameter(target: GLenum, pname: GLenum): any;\n    getContextAttributes(): WebGLContextAttributes | null;\n    getError(): GLenum;\n    getExtension(extensionName: \"ANGLE_instanced_arrays\"): ANGLE_instanced_arrays | null;\n    getExtension(extensionName: \"EXT_blend_minmax\"): EXT_blend_minmax | null;\n    getExtension(extensionName: \"EXT_color_buffer_float\"): EXT_color_buffer_float | null;\n    getExtension(extensionName: \"EXT_color_buffer_half_float\"): EXT_color_buffer_half_float | null;\n    getExtension(extensionName: \"EXT_float_blend\"): EXT_float_blend | null;\n    getExtension(extensionName: \"EXT_frag_depth\"): EXT_frag_depth | null;\n    getExtension(extensionName: \"EXT_sRGB\"): EXT_sRGB | null;\n    getExtension(extensionName: \"EXT_shader_texture_lod\"): EXT_shader_texture_lod | null;\n    getExtension(extensionName: \"EXT_texture_compression_bptc\"): EXT_texture_compression_bptc | null;\n    getExtension(extensionName: \"EXT_texture_compression_rgtc\"): EXT_texture_compression_rgtc | null;\n    getExtension(extensionName: \"EXT_texture_filter_anisotropic\"): EXT_texture_filter_anisotropic | null;\n    getExtension(extensionName: \"KHR_parallel_shader_compile\"): KHR_parallel_shader_compile | null;\n    getExtension(extensionName: \"OES_element_index_uint\"): OES_element_index_uint | null;\n    getExtension(extensionName: \"OES_fbo_render_mipmap\"): OES_fbo_render_mipmap | null;\n    getExtension(extensionName: \"OES_standard_derivatives\"): OES_standard_derivatives | null;\n    getExtension(extensionName: \"OES_texture_float\"): OES_texture_float | null;\n    getExtension(extensionName: \"OES_texture_float_linear\"): OES_texture_float_linear | null;\n    getExtension(extensionName: \"OES_texture_half_float\"): OES_texture_half_float | null;\n    getExtension(extensionName: \"OES_texture_half_float_linear\"): OES_texture_half_float_linear | null;\n    getExtension(extensionName: \"OES_vertex_array_object\"): OES_vertex_array_object | null;\n    getExtension(extensionName: \"OVR_multiview2\"): OVR_multiview2 | null;\n    getExtension(extensionName: \"WEBGL_color_buffer_float\"): WEBGL_color_buffer_float | null;\n    getExtension(extensionName: \"WEBGL_compressed_texture_astc\"): WEBGL_compressed_texture_astc | null;\n    getExtension(extensionName: \"WEBGL_compressed_texture_etc\"): WEBGL_compressed_texture_etc | null;\n    getExtension(extensionName: \"WEBGL_compressed_texture_etc1\"): WEBGL_compressed_texture_etc1 | null;\n    getExtension(extensionName: \"WEBGL_compressed_texture_s3tc\"): WEBGL_compressed_texture_s3tc | null;\n    getExtension(extensionName: \"WEBGL_compressed_texture_s3tc_srgb\"): WEBGL_compressed_texture_s3tc_srgb | null;\n    getExtension(extensionName: \"WEBGL_debug_renderer_info\"): WEBGL_debug_renderer_info | null;\n    getExtension(extensionName: \"WEBGL_debug_shaders\"): WEBGL_debug_shaders | null;\n    getExtension(extensionName: \"WEBGL_depth_texture\"): WEBGL_depth_texture | null;\n    getExtension(extensionName: \"WEBGL_draw_buffers\"): WEBGL_draw_buffers | null;\n    getExtension(extensionName: \"WEBGL_lose_context\"): WEBGL_lose_context | null;\n    getExtension(extensionName: \"WEBGL_multi_draw\"): WEBGL_multi_draw | null;\n    getExtension(name: string): any;\n    getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;\n    getParameter(pname: GLenum): any;\n    getProgramInfoLog(program: WebGLProgram): string | null;\n    getProgramParameter(program: WebGLProgram, pname: GLenum): any;\n    getRenderbufferParameter(target: GLenum, pname: GLenum): any;\n    getShaderInfoLog(shader: WebGLShader): string | null;\n    getShaderParameter(shader: WebGLShader, pname: GLenum): any;\n    getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;\n    getShaderSource(shader: WebGLShader): string | null;\n    getSupportedExtensions(): string[] | null;\n    getTexParameter(target: GLenum, pname: GLenum): any;\n    getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;\n    getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;\n    getVertexAttrib(index: GLuint, pname: GLenum): any;\n    getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;\n    hint(target: GLenum, mode: GLenum): void;\n    isBuffer(buffer: WebGLBuffer | null): GLboolean;\n    isContextLost(): boolean;\n    isEnabled(cap: GLenum): GLboolean;\n    isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;\n    isProgram(program: WebGLProgram | null): GLboolean;\n    isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;\n    isShader(shader: WebGLShader | null): GLboolean;\n    isTexture(texture: WebGLTexture | null): GLboolean;\n    lineWidth(width: GLfloat): void;\n    linkProgram(program: WebGLProgram): void;\n    pixelStorei(pname: GLenum, param: GLint | GLboolean): void;\n    polygonOffset(factor: GLfloat, units: GLfloat): void;\n    renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n    sampleCoverage(value: GLclampf, invert: GLboolean): void;\n    scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n    shaderSource(shader: WebGLShader, source: string): void;\n    stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;\n    stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;\n    stencilMask(mask: GLuint): void;\n    stencilMaskSeparate(face: GLenum, mask: GLuint): void;\n    stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;\n    stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;\n    texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;\n    texParameteri(target: GLenum, pname: GLenum, param: GLint): void;\n    uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;\n    uniform1i(location: WebGLUniformLocation | null, x: GLint): void;\n    uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;\n    uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;\n    uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;\n    uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;\n    uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n    uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;\n    useProgram(program: WebGLProgram | null): void;\n    validateProgram(program: WebGLProgram): void;\n    vertexAttrib1f(index: GLuint, x: GLfloat): void;\n    vertexAttrib1fv(index: GLuint, values: Float32List): void;\n    vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;\n    vertexAttrib2fv(index: GLuint, values: Float32List): void;\n    vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;\n    vertexAttrib3fv(index: GLuint, values: Float32List): void;\n    vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n    vertexAttrib4fv(index: GLuint, values: Float32List): void;\n    vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;\n    viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n    readonly DEPTH_BUFFER_BIT: 0x00000100;\n    readonly STENCIL_BUFFER_BIT: 0x00000400;\n    readonly COLOR_BUFFER_BIT: 0x00004000;\n    readonly POINTS: 0x0000;\n    readonly LINES: 0x0001;\n    readonly LINE_LOOP: 0x0002;\n    readonly LINE_STRIP: 0x0003;\n    readonly TRIANGLES: 0x0004;\n    readonly TRIANGLE_STRIP: 0x0005;\n    readonly TRIANGLE_FAN: 0x0006;\n    readonly ZERO: 0;\n    readonly ONE: 1;\n    readonly SRC_COLOR: 0x0300;\n    readonly ONE_MINUS_SRC_COLOR: 0x0301;\n    readonly SRC_ALPHA: 0x0302;\n    readonly ONE_MINUS_SRC_ALPHA: 0x0303;\n    readonly DST_ALPHA: 0x0304;\n    readonly ONE_MINUS_DST_ALPHA: 0x0305;\n    readonly DST_COLOR: 0x0306;\n    readonly ONE_MINUS_DST_COLOR: 0x0307;\n    readonly SRC_ALPHA_SATURATE: 0x0308;\n    readonly FUNC_ADD: 0x8006;\n    readonly BLEND_EQUATION: 0x8009;\n    readonly BLEND_EQUATION_RGB: 0x8009;\n    readonly BLEND_EQUATION_ALPHA: 0x883D;\n    readonly FUNC_SUBTRACT: 0x800A;\n    readonly FUNC_REVERSE_SUBTRACT: 0x800B;\n    readonly BLEND_DST_RGB: 0x80C8;\n    readonly BLEND_SRC_RGB: 0x80C9;\n    readonly BLEND_DST_ALPHA: 0x80CA;\n    readonly BLEND_SRC_ALPHA: 0x80CB;\n    readonly CONSTANT_COLOR: 0x8001;\n    readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;\n    readonly CONSTANT_ALPHA: 0x8003;\n    readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;\n    readonly BLEND_COLOR: 0x8005;\n    readonly ARRAY_BUFFER: 0x8892;\n    readonly ELEMENT_ARRAY_BUFFER: 0x8893;\n    readonly ARRAY_BUFFER_BINDING: 0x8894;\n    readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;\n    readonly STREAM_DRAW: 0x88E0;\n    readonly STATIC_DRAW: 0x88E4;\n    readonly DYNAMIC_DRAW: 0x88E8;\n    readonly BUFFER_SIZE: 0x8764;\n    readonly BUFFER_USAGE: 0x8765;\n    readonly CURRENT_VERTEX_ATTRIB: 0x8626;\n    readonly FRONT: 0x0404;\n    readonly BACK: 0x0405;\n    readonly FRONT_AND_BACK: 0x0408;\n    readonly CULL_FACE: 0x0B44;\n    readonly BLEND: 0x0BE2;\n    readonly DITHER: 0x0BD0;\n    readonly STENCIL_TEST: 0x0B90;\n    readonly DEPTH_TEST: 0x0B71;\n    readonly SCISSOR_TEST: 0x0C11;\n    readonly POLYGON_OFFSET_FILL: 0x8037;\n    readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;\n    readonly SAMPLE_COVERAGE: 0x80A0;\n    readonly NO_ERROR: 0;\n    readonly INVALID_ENUM: 0x0500;\n    readonly INVALID_VALUE: 0x0501;\n    readonly INVALID_OPERATION: 0x0502;\n    readonly OUT_OF_MEMORY: 0x0505;\n    readonly CW: 0x0900;\n    readonly CCW: 0x0901;\n    readonly LINE_WIDTH: 0x0B21;\n    readonly ALIASED_POINT_SIZE_RANGE: 0x846D;\n    readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;\n    readonly CULL_FACE_MODE: 0x0B45;\n    readonly FRONT_FACE: 0x0B46;\n    readonly DEPTH_RANGE: 0x0B70;\n    readonly DEPTH_WRITEMASK: 0x0B72;\n    readonly DEPTH_CLEAR_VALUE: 0x0B73;\n    readonly DEPTH_FUNC: 0x0B74;\n    readonly STENCIL_CLEAR_VALUE: 0x0B91;\n    readonly STENCIL_FUNC: 0x0B92;\n    readonly STENCIL_FAIL: 0x0B94;\n    readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;\n    readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;\n    readonly STENCIL_REF: 0x0B97;\n    readonly STENCIL_VALUE_MASK: 0x0B93;\n    readonly STENCIL_WRITEMASK: 0x0B98;\n    readonly STENCIL_BACK_FUNC: 0x8800;\n    readonly STENCIL_BACK_FAIL: 0x8801;\n    readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;\n    readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;\n    readonly STENCIL_BACK_REF: 0x8CA3;\n    readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;\n    readonly STENCIL_BACK_WRITEMASK: 0x8CA5;\n    readonly VIEWPORT: 0x0BA2;\n    readonly SCISSOR_BOX: 0x0C10;\n    readonly COLOR_CLEAR_VALUE: 0x0C22;\n    readonly COLOR_WRITEMASK: 0x0C23;\n    readonly UNPACK_ALIGNMENT: 0x0CF5;\n    readonly PACK_ALIGNMENT: 0x0D05;\n    readonly MAX_TEXTURE_SIZE: 0x0D33;\n    readonly MAX_VIEWPORT_DIMS: 0x0D3A;\n    readonly SUBPIXEL_BITS: 0x0D50;\n    readonly RED_BITS: 0x0D52;\n    readonly GREEN_BITS: 0x0D53;\n    readonly BLUE_BITS: 0x0D54;\n    readonly ALPHA_BITS: 0x0D55;\n    readonly DEPTH_BITS: 0x0D56;\n    readonly STENCIL_BITS: 0x0D57;\n    readonly POLYGON_OFFSET_UNITS: 0x2A00;\n    readonly POLYGON_OFFSET_FACTOR: 0x8038;\n    readonly TEXTURE_BINDING_2D: 0x8069;\n    readonly SAMPLE_BUFFERS: 0x80A8;\n    readonly SAMPLES: 0x80A9;\n    readonly SAMPLE_COVERAGE_VALUE: 0x80AA;\n    readonly SAMPLE_COVERAGE_INVERT: 0x80AB;\n    readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;\n    readonly DONT_CARE: 0x1100;\n    readonly FASTEST: 0x1101;\n    readonly NICEST: 0x1102;\n    readonly GENERATE_MIPMAP_HINT: 0x8192;\n    readonly BYTE: 0x1400;\n    readonly UNSIGNED_BYTE: 0x1401;\n    readonly SHORT: 0x1402;\n    readonly UNSIGNED_SHORT: 0x1403;\n    readonly INT: 0x1404;\n    readonly UNSIGNED_INT: 0x1405;\n    readonly FLOAT: 0x1406;\n    readonly DEPTH_COMPONENT: 0x1902;\n    readonly ALPHA: 0x1906;\n    readonly RGB: 0x1907;\n    readonly RGBA: 0x1908;\n    readonly LUMINANCE: 0x1909;\n    readonly LUMINANCE_ALPHA: 0x190A;\n    readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;\n    readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;\n    readonly UNSIGNED_SHORT_5_6_5: 0x8363;\n    readonly FRAGMENT_SHADER: 0x8B30;\n    readonly VERTEX_SHADER: 0x8B31;\n    readonly MAX_VERTEX_ATTRIBS: 0x8869;\n    readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;\n    readonly MAX_VARYING_VECTORS: 0x8DFC;\n    readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;\n    readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;\n    readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;\n    readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;\n    readonly SHADER_TYPE: 0x8B4F;\n    readonly DELETE_STATUS: 0x8B80;\n    readonly LINK_STATUS: 0x8B82;\n    readonly VALIDATE_STATUS: 0x8B83;\n    readonly ATTACHED_SHADERS: 0x8B85;\n    readonly ACTIVE_UNIFORMS: 0x8B86;\n    readonly ACTIVE_ATTRIBUTES: 0x8B89;\n    readonly SHADING_LANGUAGE_VERSION: 0x8B8C;\n    readonly CURRENT_PROGRAM: 0x8B8D;\n    readonly NEVER: 0x0200;\n    readonly LESS: 0x0201;\n    readonly EQUAL: 0x0202;\n    readonly LEQUAL: 0x0203;\n    readonly GREATER: 0x0204;\n    readonly NOTEQUAL: 0x0205;\n    readonly GEQUAL: 0x0206;\n    readonly ALWAYS: 0x0207;\n    readonly KEEP: 0x1E00;\n    readonly REPLACE: 0x1E01;\n    readonly INCR: 0x1E02;\n    readonly DECR: 0x1E03;\n    readonly INVERT: 0x150A;\n    readonly INCR_WRAP: 0x8507;\n    readonly DECR_WRAP: 0x8508;\n    readonly VENDOR: 0x1F00;\n    readonly RENDERER: 0x1F01;\n    readonly VERSION: 0x1F02;\n    readonly NEAREST: 0x2600;\n    readonly LINEAR: 0x2601;\n    readonly NEAREST_MIPMAP_NEAREST: 0x2700;\n    readonly LINEAR_MIPMAP_NEAREST: 0x2701;\n    readonly NEAREST_MIPMAP_LINEAR: 0x2702;\n    readonly LINEAR_MIPMAP_LINEAR: 0x2703;\n    readonly TEXTURE_MAG_FILTER: 0x2800;\n    readonly TEXTURE_MIN_FILTER: 0x2801;\n    readonly TEXTURE_WRAP_S: 0x2802;\n    readonly TEXTURE_WRAP_T: 0x2803;\n    readonly TEXTURE_2D: 0x0DE1;\n    readonly TEXTURE: 0x1702;\n    readonly TEXTURE_CUBE_MAP: 0x8513;\n    readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;\n    readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;\n    readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;\n    readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;\n    readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;\n    readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;\n    readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;\n    readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;\n    readonly TEXTURE0: 0x84C0;\n    readonly TEXTURE1: 0x84C1;\n    readonly TEXTURE2: 0x84C2;\n    readonly TEXTURE3: 0x84C3;\n    readonly TEXTURE4: 0x84C4;\n    readonly TEXTURE5: 0x84C5;\n    readonly TEXTURE6: 0x84C6;\n    readonly TEXTURE7: 0x84C7;\n    readonly TEXTURE8: 0x84C8;\n    readonly TEXTURE9: 0x84C9;\n    readonly TEXTURE10: 0x84CA;\n    readonly TEXTURE11: 0x84CB;\n    readonly TEXTURE12: 0x84CC;\n    readonly TEXTURE13: 0x84CD;\n    readonly TEXTURE14: 0x84CE;\n    readonly TEXTURE15: 0x84CF;\n    readonly TEXTURE16: 0x84D0;\n    readonly TEXTURE17: 0x84D1;\n    readonly TEXTURE18: 0x84D2;\n    readonly TEXTURE19: 0x84D3;\n    readonly TEXTURE20: 0x84D4;\n    readonly TEXTURE21: 0x84D5;\n    readonly TEXTURE22: 0x84D6;\n    readonly TEXTURE23: 0x84D7;\n    readonly TEXTURE24: 0x84D8;\n    readonly TEXTURE25: 0x84D9;\n    readonly TEXTURE26: 0x84DA;\n    readonly TEXTURE27: 0x84DB;\n    readonly TEXTURE28: 0x84DC;\n    readonly TEXTURE29: 0x84DD;\n    readonly TEXTURE30: 0x84DE;\n    readonly TEXTURE31: 0x84DF;\n    readonly ACTIVE_TEXTURE: 0x84E0;\n    readonly REPEAT: 0x2901;\n    readonly CLAMP_TO_EDGE: 0x812F;\n    readonly MIRRORED_REPEAT: 0x8370;\n    readonly FLOAT_VEC2: 0x8B50;\n    readonly FLOAT_VEC3: 0x8B51;\n    readonly FLOAT_VEC4: 0x8B52;\n    readonly INT_VEC2: 0x8B53;\n    readonly INT_VEC3: 0x8B54;\n    readonly INT_VEC4: 0x8B55;\n    readonly BOOL: 0x8B56;\n    readonly BOOL_VEC2: 0x8B57;\n    readonly BOOL_VEC3: 0x8B58;\n    readonly BOOL_VEC4: 0x8B59;\n    readonly FLOAT_MAT2: 0x8B5A;\n    readonly FLOAT_MAT3: 0x8B5B;\n    readonly FLOAT_MAT4: 0x8B5C;\n    readonly SAMPLER_2D: 0x8B5E;\n    readonly SAMPLER_CUBE: 0x8B60;\n    readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;\n    readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;\n    readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;\n    readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;\n    readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;\n    readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;\n    readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;\n    readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;\n    readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;\n    readonly COMPILE_STATUS: 0x8B81;\n    readonly LOW_FLOAT: 0x8DF0;\n    readonly MEDIUM_FLOAT: 0x8DF1;\n    readonly HIGH_FLOAT: 0x8DF2;\n    readonly LOW_INT: 0x8DF3;\n    readonly MEDIUM_INT: 0x8DF4;\n    readonly HIGH_INT: 0x8DF5;\n    readonly FRAMEBUFFER: 0x8D40;\n    readonly RENDERBUFFER: 0x8D41;\n    readonly RGBA4: 0x8056;\n    readonly RGB5_A1: 0x8057;\n    readonly RGB565: 0x8D62;\n    readonly DEPTH_COMPONENT16: 0x81A5;\n    readonly STENCIL_INDEX8: 0x8D48;\n    readonly DEPTH_STENCIL: 0x84F9;\n    readonly RENDERBUFFER_WIDTH: 0x8D42;\n    readonly RENDERBUFFER_HEIGHT: 0x8D43;\n    readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;\n    readonly RENDERBUFFER_RED_SIZE: 0x8D50;\n    readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;\n    readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;\n    readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;\n    readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;\n    readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;\n    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;\n    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;\n    readonly COLOR_ATTACHMENT0: 0x8CE0;\n    readonly DEPTH_ATTACHMENT: 0x8D00;\n    readonly STENCIL_ATTACHMENT: 0x8D20;\n    readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;\n    readonly NONE: 0;\n    readonly FRAMEBUFFER_COMPLETE: 0x8CD5;\n    readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;\n    readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;\n    readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;\n    readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;\n    readonly FRAMEBUFFER_BINDING: 0x8CA6;\n    readonly RENDERBUFFER_BINDING: 0x8CA7;\n    readonly MAX_RENDERBUFFER_SIZE: 0x84E8;\n    readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;\n    readonly UNPACK_FLIP_Y_WEBGL: 0x9240;\n    readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;\n    readonly CONTEXT_LOST_WEBGL: 0x9242;\n    readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;\n    readonly BROWSER_DEFAULT_WEBGL: 0x9244;\n}\n\ninterface WebGLRenderingContextOverloads {\n    bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;\n    bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;\n    bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;\n    compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;\n    compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;\n    readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n    texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n    texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n    uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;\n    uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;\n    uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;\n    uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;\n    uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;\n    uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;\n    uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;\n    uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;\n    uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n    uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n    uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n}\n\ninterface WebGLSampler {\n}\n\ndeclare var WebGLSampler: {\n    prototype: WebGLSampler;\n    new(): WebGLSampler;\n};\n\n/** The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders. */\ninterface WebGLShader {\n}\n\ndeclare var WebGLShader: {\n    prototype: WebGLShader;\n    new(): WebGLShader;\n};\n\n/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */\ninterface WebGLShaderPrecisionFormat {\n    readonly precision: GLint;\n    readonly rangeMax: GLint;\n    readonly rangeMin: GLint;\n}\n\ndeclare var WebGLShaderPrecisionFormat: {\n    prototype: WebGLShaderPrecisionFormat;\n    new(): WebGLShaderPrecisionFormat;\n};\n\ninterface WebGLSync {\n}\n\ndeclare var WebGLSync: {\n    prototype: WebGLSync;\n    new(): WebGLSync;\n};\n\n/** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */\ninterface WebGLTexture {\n}\n\ndeclare var WebGLTexture: {\n    prototype: WebGLTexture;\n    new(): WebGLTexture;\n};\n\ninterface WebGLTransformFeedback {\n}\n\ndeclare var WebGLTransformFeedback: {\n    prototype: WebGLTransformFeedback;\n    new(): WebGLTransformFeedback;\n};\n\n/** Part of the WebGL API and represents the location of a uniform variable in a shader program. */\ninterface WebGLUniformLocation {\n}\n\ndeclare var WebGLUniformLocation: {\n    prototype: WebGLUniformLocation;\n    new(): WebGLUniformLocation;\n};\n\ninterface WebGLVertexArrayObject {\n}\n\ndeclare var WebGLVertexArrayObject: {\n    prototype: WebGLVertexArrayObject;\n    new(): WebGLVertexArrayObject;\n};\n\ninterface WebGLVertexArrayObjectOES {\n}\n\ninterface WebSocketEventMap {\n    \"close\": CloseEvent;\n    \"error\": Event;\n    \"message\": MessageEvent;\n    \"open\": Event;\n}\n\n/** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */\ninterface WebSocket extends EventTarget {\n    /**\n     * Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:\n     *\n     * Can be set, to change how binary data is returned. The default is \"blob\".\n     */\n    binaryType: BinaryType;\n    /**\n     * Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.\n     *\n     * If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)\n     */\n    readonly bufferedAmount: number;\n    /** Returns the extensions selected by the server, if any. */\n    readonly extensions: string;\n    onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;\n    onerror: ((this: WebSocket, ev: Event) => any) | null;\n    onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;\n    onopen: ((this: WebSocket, ev: Event) => any) | null;\n    /** Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation. */\n    readonly protocol: string;\n    /** Returns the state of the WebSocket object's connection. It can have the values described below. */\n    readonly readyState: number;\n    /** Returns the URL that was used to establish the WebSocket connection. */\n    readonly url: string;\n    /** Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. */\n    close(code?: number, reason?: string): void;\n    /** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */\n    send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;\n    readonly CONNECTING: 0;\n    readonly OPEN: 1;\n    readonly CLOSING: 2;\n    readonly CLOSED: 3;\n    addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var WebSocket: {\n    prototype: WebSocket;\n    new(url: string | URL, protocols?: string | string[]): WebSocket;\n    readonly CONNECTING: 0;\n    readonly OPEN: 1;\n    readonly CLOSING: 2;\n    readonly CLOSED: 3;\n};\n\n/** Events that occur due to the user moving a mouse wheel or similar input device. */\ninterface WheelEvent extends MouseEvent {\n    readonly deltaMode: number;\n    readonly deltaX: number;\n    readonly deltaY: number;\n    readonly deltaZ: number;\n    readonly DOM_DELTA_PIXEL: 0x00;\n    readonly DOM_DELTA_LINE: 0x01;\n    readonly DOM_DELTA_PAGE: 0x02;\n}\n\ndeclare var WheelEvent: {\n    prototype: WheelEvent;\n    new(type: string, eventInitDict?: WheelEventInit): WheelEvent;\n    readonly DOM_DELTA_PIXEL: 0x00;\n    readonly DOM_DELTA_LINE: 0x01;\n    readonly DOM_DELTA_PAGE: 0x02;\n};\n\ninterface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap {\n    \"DOMContentLoaded\": Event;\n    \"devicemotion\": DeviceMotionEvent;\n    \"deviceorientation\": DeviceOrientationEvent;\n    \"gamepadconnected\": GamepadEvent;\n    \"gamepaddisconnected\": GamepadEvent;\n    \"orientationchange\": Event;\n}\n\n/** A window containing a DOM document; the document property points to the DOM document loaded in that window. */\ninterface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage {\n    /** @deprecated This is a legacy alias of \\`navigator\\`. */\n    readonly clientInformation: Navigator;\n    /** Returns true if the window has been closed, false otherwise. */\n    readonly closed: boolean;\n    /** Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element. */\n    readonly customElements: CustomElementRegistry;\n    readonly devicePixelRatio: number;\n    readonly document: Document;\n    /** @deprecated */\n    readonly event: Event | undefined;\n    /** @deprecated */\n    readonly external: External;\n    readonly frameElement: Element | null;\n    readonly frames: WindowProxy;\n    readonly history: History;\n    readonly innerHeight: number;\n    readonly innerWidth: number;\n    readonly length: number;\n    get location(): Location;\n    set location(href: string | Location);\n    /** Returns true if the location bar is visible; otherwise, returns false. */\n    readonly locationbar: BarProp;\n    /** Returns true if the menu bar is visible; otherwise, returns false. */\n    readonly menubar: BarProp;\n    name: string;\n    readonly navigator: Navigator;\n    /** Available only in secure contexts. */\n    ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;\n    /** Available only in secure contexts. */\n    ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;\n    /** @deprecated */\n    onorientationchange: ((this: Window, ev: Event) => any) | null;\n    opener: any;\n    /** @deprecated */\n    readonly orientation: number;\n    readonly outerHeight: number;\n    readonly outerWidth: number;\n    /** @deprecated This is a legacy alias of \\`scrollX\\`. */\n    readonly pageXOffset: number;\n    /** @deprecated This is a legacy alias of \\`scrollY\\`. */\n    readonly pageYOffset: number;\n    /**\n     * Refers to either the parent WindowProxy, or itself.\n     *\n     * It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.\n     */\n    readonly parent: WindowProxy;\n    /** Returns true if the personal bar is visible; otherwise, returns false. */\n    readonly personalbar: BarProp;\n    readonly screen: Screen;\n    readonly screenLeft: number;\n    readonly screenTop: number;\n    readonly screenX: number;\n    readonly screenY: number;\n    readonly scrollX: number;\n    readonly scrollY: number;\n    /** Returns true if the scrollbars are visible; otherwise, returns false. */\n    readonly scrollbars: BarProp;\n    readonly self: Window & typeof globalThis;\n    readonly speechSynthesis: SpeechSynthesis;\n    /** @deprecated */\n    status: string;\n    /** Returns true if the status bar is visible; otherwise, returns false. */\n    readonly statusbar: BarProp;\n    /** Returns true if the toolbar is visible; otherwise, returns false. */\n    readonly toolbar: BarProp;\n    readonly top: WindowProxy | null;\n    readonly visualViewport: VisualViewport | null;\n    readonly window: Window & typeof globalThis;\n    alert(message?: any): void;\n    blur(): void;\n    cancelIdleCallback(handle: number): void;\n    /** @deprecated */\n    captureEvents(): void;\n    /** Closes the window. */\n    close(): void;\n    confirm(message?: string): boolean;\n    /** Moves the focus to the window's browsing context, if any. */\n    focus(): void;\n    getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;\n    getSelection(): Selection | null;\n    matchMedia(query: string): MediaQueryList;\n    moveBy(x: number, y: number): void;\n    moveTo(x: number, y: number): void;\n    open(url?: string | URL, target?: string, features?: string): WindowProxy | null;\n    /**\n     * Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.\n     *\n     * Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.\n     *\n     * A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to \"/\". This default restricts the message to same-origin targets only.\n     *\n     * If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to \"*\".\n     *\n     * Throws a \"DataCloneError\" DOMException if transfer array contains duplicate objects or if message could not be cloned.\n     */\n    postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;\n    postMessage(message: any, options?: WindowPostMessageOptions): void;\n    print(): void;\n    prompt(message?: string, _default?: string): string | null;\n    /** @deprecated */\n    releaseEvents(): void;\n    requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;\n    resizeBy(x: number, y: number): void;\n    resizeTo(width: number, height: number): void;\n    scroll(options?: ScrollToOptions): void;\n    scroll(x: number, y: number): void;\n    scrollBy(options?: ScrollToOptions): void;\n    scrollBy(x: number, y: number): void;\n    scrollTo(options?: ScrollToOptions): void;\n    scrollTo(x: number, y: number): void;\n    /** Cancels the document load. */\n    stop(): void;\n    addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n    [index: number]: Window;\n}\n\ndeclare var Window: {\n    prototype: Window;\n    new(): Window;\n};\n\ninterface WindowEventHandlersEventMap {\n    \"afterprint\": Event;\n    \"beforeprint\": Event;\n    \"beforeunload\": BeforeUnloadEvent;\n    \"gamepadconnected\": GamepadEvent;\n    \"gamepaddisconnected\": GamepadEvent;\n    \"hashchange\": HashChangeEvent;\n    \"languagechange\": Event;\n    \"message\": MessageEvent;\n    \"messageerror\": MessageEvent;\n    \"offline\": Event;\n    \"online\": Event;\n    \"pagehide\": PageTransitionEvent;\n    \"pageshow\": PageTransitionEvent;\n    \"popstate\": PopStateEvent;\n    \"rejectionhandled\": PromiseRejectionEvent;\n    \"storage\": StorageEvent;\n    \"unhandledrejection\": PromiseRejectionEvent;\n    \"unload\": Event;\n}\n\ninterface WindowEventHandlers {\n    onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null;\n    onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null;\n    onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null;\n    ongamepadconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;\n    ongamepaddisconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;\n    onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any) | null;\n    onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null;\n    onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;\n    onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;\n    onoffline: ((this: WindowEventHandlers, ev: Event) => any) | null;\n    ononline: ((this: WindowEventHandlers, ev: Event) => any) | null;\n    onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;\n    onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;\n    onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null;\n    onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;\n    onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null;\n    onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;\n    onunload: ((this: WindowEventHandlers, ev: Event) => any) | null;\n    addEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ninterface WindowLocalStorage {\n    readonly localStorage: Storage;\n}\n\ninterface WindowOrWorkerGlobalScope {\n    /** Available only in secure contexts. */\n    readonly caches: CacheStorage;\n    readonly crossOriginIsolated: boolean;\n    readonly crypto: Crypto;\n    readonly indexedDB: IDBFactory;\n    readonly isSecureContext: boolean;\n    readonly origin: string;\n    readonly performance: Performance;\n    atob(data: string): string;\n    btoa(data: string): string;\n    clearInterval(id: number | undefined): void;\n    clearTimeout(id: number | undefined): void;\n    createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n    createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n    fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;\n    queueMicrotask(callback: VoidFunction): void;\n    reportError(e: any): void;\n    setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n    setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n    structuredClone(value: any, options?: StructuredSerializeOptions): any;\n}\n\ninterface WindowSessionStorage {\n    readonly sessionStorage: Storage;\n}\n\ninterface WorkerEventMap extends AbstractWorkerEventMap {\n    \"message\": MessageEvent;\n    \"messageerror\": MessageEvent;\n}\n\n/** This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread. */\ninterface Worker extends EventTarget, AbstractWorker {\n    onmessage: ((this: Worker, ev: MessageEvent) => any) | null;\n    onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;\n    /** Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned. */\n    postMessage(message: any, transfer: Transferable[]): void;\n    postMessage(message: any, options?: StructuredSerializeOptions): void;\n    /** Aborts worker's associated global environment. */\n    terminate(): void;\n    addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Worker: {\n    prototype: Worker;\n    new(scriptURL: string | URL, options?: WorkerOptions): Worker;\n};\n\n/** Available only in secure contexts. */\ninterface Worklet {\n    /**\n     * Loads and executes the module script given by moduleURL into all of worklet's global scopes. It can also create additional global scopes as part of this process, depending on the worklet type. The returned promise will fulfill once the script has been successfully loaded and run in all global scopes.\n     *\n     * The credentials option can be set to a credentials mode to modify the script-fetching process. It defaults to \"same-origin\".\n     *\n     * Any failures in fetching the script or its dependencies will cause the returned promise to be rejected with an \"AbortError\" DOMException. Any errors in parsing the script or its dependencies will cause the returned promise to be rejected with the exception generated during parsing.\n     */\n    addModule(moduleURL: string | URL, options?: WorkletOptions): Promise<void>;\n}\n\ndeclare var Worklet: {\n    prototype: Worklet;\n    new(): Worklet;\n};\n\n/** This Streams API interface provides\\xA0a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. */\ninterface WritableStream<W = any> {\n    readonly locked: boolean;\n    abort(reason?: any): Promise<void>;\n    close(): Promise<void>;\n    getWriter(): WritableStreamDefaultWriter<W>;\n}\n\ndeclare var WritableStream: {\n    prototype: WritableStream;\n    new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;\n};\n\n/** This Streams API interface represents a controller allowing control of a\\xA0WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */\ninterface WritableStreamDefaultController {\n    readonly signal: AbortSignal;\n    error(e?: any): void;\n}\n\ndeclare var WritableStreamDefaultController: {\n    prototype: WritableStreamDefaultController;\n    new(): WritableStreamDefaultController;\n};\n\n/** This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink. */\ninterface WritableStreamDefaultWriter<W = any> {\n    readonly closed: Promise<undefined>;\n    readonly desiredSize: number | null;\n    readonly ready: Promise<undefined>;\n    abort(reason?: any): Promise<void>;\n    close(): Promise<void>;\n    releaseLock(): void;\n    write(chunk?: W): Promise<void>;\n}\n\ndeclare var WritableStreamDefaultWriter: {\n    prototype: WritableStreamDefaultWriter;\n    new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;\n};\n\n/** An XML document. It inherits from the generic Document and does not add any specific methods or properties to it: nevertheless, several algorithms behave differently with the two types of documents. */\ninterface XMLDocument extends Document {\n    addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLDocument: {\n    prototype: XMLDocument;\n    new(): XMLDocument;\n};\n\ninterface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {\n    \"readystatechange\": Event;\n}\n\n/** Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. */\ninterface XMLHttpRequest extends XMLHttpRequestEventTarget {\n    onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;\n    /** Returns client's state. */\n    readonly readyState: number;\n    /** Returns the response body. */\n    readonly response: any;\n    /**\n     * Returns response as text.\n     *\n     * Throws an \"InvalidStateError\" DOMException if responseType is not the empty string or \"text\".\n     */\n    readonly responseText: string;\n    /**\n     * Returns the response type.\n     *\n     * Can be set to change the response type. Values are: the empty string (default), \"arraybuffer\", \"blob\", \"document\", \"json\", and \"text\".\n     *\n     * When set: setting to \"document\" is ignored if current global object is not a Window object.\n     *\n     * When set: throws an \"InvalidStateError\" DOMException if state is loading or done.\n     *\n     * When set: throws an \"InvalidAccessError\" DOMException if the synchronous flag is set and current global object is a Window object.\n     */\n    responseType: XMLHttpRequestResponseType;\n    readonly responseURL: string;\n    /**\n     * Returns the response as document.\n     *\n     * Throws an \"InvalidStateError\" DOMException if responseType is not the empty string or \"document\".\n     */\n    readonly responseXML: Document | null;\n    readonly status: number;\n    readonly statusText: string;\n    /**\n     * Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a \"TimeoutError\" DOMException will be thrown otherwise (for the send() method).\n     *\n     * When set: throws an \"InvalidAccessError\" DOMException if the synchronous flag is set and current global object is a Window object.\n     */\n    timeout: number;\n    /** Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server. */\n    readonly upload: XMLHttpRequestUpload;\n    /**\n     * True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.\n     *\n     * When set: throws an \"InvalidStateError\" DOMException if state is not unsent or opened, or if the send() flag is set.\n     */\n    withCredentials: boolean;\n    /** Cancels any network activity. */\n    abort(): void;\n    getAllResponseHeaders(): string;\n    getResponseHeader(name: string): string | null;\n    /**\n     * Sets the request method, request URL, and synchronous flag.\n     *\n     * Throws a \"SyntaxError\" DOMException if either method is not a valid method or url cannot be parsed.\n     *\n     * Throws a \"SecurityError\" DOMException if method is a case-insensitive match for \\`CONNECT\\`, \\`TRACE\\`, or \\`TRACK\\`.\n     *\n     * Throws an \"InvalidAccessError\" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.\n     */\n    open(method: string, url: string | URL): void;\n    open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;\n    /**\n     * Acts as if the \\`Content-Type\\` header value for a response is mime. (It does not change the header.)\n     *\n     * Throws an \"InvalidStateError\" DOMException if state is loading or done.\n     */\n    overrideMimeType(mime: string): void;\n    /**\n     * Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.\n     *\n     * Throws an \"InvalidStateError\" DOMException if either state is not opened or the send() flag is set.\n     */\n    send(body?: Document | XMLHttpRequestBodyInit | null): void;\n    /**\n     * Combines a header in author request headers.\n     *\n     * Throws an \"InvalidStateError\" DOMException if either state is not opened or the send() flag is set.\n     *\n     * Throws a \"SyntaxError\" DOMException if name is not a header name or if value is not a header value.\n     */\n    setRequestHeader(name: string, value: string): void;\n    readonly UNSENT: 0;\n    readonly OPENED: 1;\n    readonly HEADERS_RECEIVED: 2;\n    readonly LOADING: 3;\n    readonly DONE: 4;\n    addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequest: {\n    prototype: XMLHttpRequest;\n    new(): XMLHttpRequest;\n    readonly UNSENT: 0;\n    readonly OPENED: 1;\n    readonly HEADERS_RECEIVED: 2;\n    readonly LOADING: 3;\n    readonly DONE: 4;\n};\n\ninterface XMLHttpRequestEventTargetEventMap {\n    \"abort\": ProgressEvent<XMLHttpRequestEventTarget>;\n    \"error\": ProgressEvent<XMLHttpRequestEventTarget>;\n    \"load\": ProgressEvent<XMLHttpRequestEventTarget>;\n    \"loadend\": ProgressEvent<XMLHttpRequestEventTarget>;\n    \"loadstart\": ProgressEvent<XMLHttpRequestEventTarget>;\n    \"progress\": ProgressEvent<XMLHttpRequestEventTarget>;\n    \"timeout\": ProgressEvent<XMLHttpRequestEventTarget>;\n}\n\ninterface XMLHttpRequestEventTarget extends EventTarget {\n    onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n    onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n    onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n    onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n    onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n    onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n    ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n    addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequestEventTarget: {\n    prototype: XMLHttpRequestEventTarget;\n    new(): XMLHttpRequestEventTarget;\n};\n\ninterface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {\n    addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequestUpload: {\n    prototype: XMLHttpRequestUpload;\n    new(): XMLHttpRequestUpload;\n};\n\n/** Provides the serializeToString() method to construct an XML string representing a DOM tree. */\ninterface XMLSerializer {\n    serializeToString(root: Node): string;\n}\n\ndeclare var XMLSerializer: {\n    prototype: XMLSerializer;\n    new(): XMLSerializer;\n};\n\n/** The\\xA0XPathEvaluator interface allows to compile and evaluate XPath expressions. */\ninterface XPathEvaluator extends XPathEvaluatorBase {\n}\n\ndeclare var XPathEvaluator: {\n    prototype: XPathEvaluator;\n    new(): XPathEvaluator;\n};\n\ninterface XPathEvaluatorBase {\n    createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression;\n    createNSResolver(nodeResolver: Node): XPathNSResolver;\n    evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult;\n}\n\n/** This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information its DOM tree. */\ninterface XPathExpression {\n    evaluate(contextNode: Node, type?: number, result?: XPathResult | null): XPathResult;\n}\n\ndeclare var XPathExpression: {\n    prototype: XPathExpression;\n    new(): XPathExpression;\n};\n\n/** The results generated by evaluating an XPath expression within the context of a given node. */\ninterface XPathResult {\n    readonly booleanValue: boolean;\n    readonly invalidIteratorState: boolean;\n    readonly numberValue: number;\n    readonly resultType: number;\n    readonly singleNodeValue: Node | null;\n    readonly snapshotLength: number;\n    readonly stringValue: string;\n    iterateNext(): Node | null;\n    snapshotItem(index: number): Node | null;\n    readonly ANY_TYPE: 0;\n    readonly NUMBER_TYPE: 1;\n    readonly STRING_TYPE: 2;\n    readonly BOOLEAN_TYPE: 3;\n    readonly UNORDERED_NODE_ITERATOR_TYPE: 4;\n    readonly ORDERED_NODE_ITERATOR_TYPE: 5;\n    readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6;\n    readonly ORDERED_NODE_SNAPSHOT_TYPE: 7;\n    readonly ANY_UNORDERED_NODE_TYPE: 8;\n    readonly FIRST_ORDERED_NODE_TYPE: 9;\n}\n\ndeclare var XPathResult: {\n    prototype: XPathResult;\n    new(): XPathResult;\n    readonly ANY_TYPE: 0;\n    readonly NUMBER_TYPE: 1;\n    readonly STRING_TYPE: 2;\n    readonly BOOLEAN_TYPE: 3;\n    readonly UNORDERED_NODE_ITERATOR_TYPE: 4;\n    readonly ORDERED_NODE_ITERATOR_TYPE: 5;\n    readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6;\n    readonly ORDERED_NODE_SNAPSHOT_TYPE: 7;\n    readonly ANY_UNORDERED_NODE_TYPE: 8;\n    readonly FIRST_ORDERED_NODE_TYPE: 9;\n};\n\n/** An XSLTProcessor applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output. It has methods to load the XSLT stylesheet, to manipulate <xsl:param> parameter values, and to apply the transformation to documents. */\ninterface XSLTProcessor {\n    clearParameters(): void;\n    getParameter(namespaceURI: string | null, localName: string): any;\n    importStylesheet(style: Node): void;\n    removeParameter(namespaceURI: string | null, localName: string): void;\n    reset(): void;\n    setParameter(namespaceURI: string | null, localName: string, value: any): void;\n    transformToDocument(source: Node): Document;\n    transformToFragment(source: Node, output: Document): DocumentFragment;\n}\n\ndeclare var XSLTProcessor: {\n    prototype: XSLTProcessor;\n    new(): XSLTProcessor;\n};\n\ninterface Console {\n    assert(condition?: boolean, ...data: any[]): void;\n    clear(): void;\n    count(label?: string): void;\n    countReset(label?: string): void;\n    debug(...data: any[]): void;\n    dir(item?: any, options?: any): void;\n    dirxml(...data: any[]): void;\n    error(...data: any[]): void;\n    group(...data: any[]): void;\n    groupCollapsed(...data: any[]): void;\n    groupEnd(): void;\n    info(...data: any[]): void;\n    log(...data: any[]): void;\n    table(tabularData?: any, properties?: string[]): void;\n    time(label?: string): void;\n    timeEnd(label?: string): void;\n    timeLog(label?: string, ...data: any[]): void;\n    timeStamp(label?: string): void;\n    trace(...data: any[]): void;\n    warn(...data: any[]): void;\n}\n\ndeclare var console: Console;\n\n/** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */\ndeclare namespace CSS {\n    function escape(ident: string): string;\n    function supports(property: string, value: string): boolean;\n    function supports(conditionText: string): boolean;\n}\n\ndeclare namespace WebAssembly {\n    interface CompileError extends Error {\n    }\n\n    var CompileError: {\n        prototype: CompileError;\n        new(message?: string): CompileError;\n        (message?: string): CompileError;\n    };\n\n    interface Global {\n        value: any;\n        valueOf(): any;\n    }\n\n    var Global: {\n        prototype: Global;\n        new(descriptor: GlobalDescriptor, v?: any): Global;\n    };\n\n    interface Instance {\n        readonly exports: Exports;\n    }\n\n    var Instance: {\n        prototype: Instance;\n        new(module: Module, importObject?: Imports): Instance;\n    };\n\n    interface LinkError extends Error {\n    }\n\n    var LinkError: {\n        prototype: LinkError;\n        new(message?: string): LinkError;\n        (message?: string): LinkError;\n    };\n\n    interface Memory {\n        readonly buffer: ArrayBuffer;\n        grow(delta: number): number;\n    }\n\n    var Memory: {\n        prototype: Memory;\n        new(descriptor: MemoryDescriptor): Memory;\n    };\n\n    interface Module {\n    }\n\n    var Module: {\n        prototype: Module;\n        new(bytes: BufferSource): Module;\n        customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];\n        exports(moduleObject: Module): ModuleExportDescriptor[];\n        imports(moduleObject: Module): ModuleImportDescriptor[];\n    };\n\n    interface RuntimeError extends Error {\n    }\n\n    var RuntimeError: {\n        prototype: RuntimeError;\n        new(message?: string): RuntimeError;\n        (message?: string): RuntimeError;\n    };\n\n    interface Table {\n        readonly length: number;\n        get(index: number): any;\n        grow(delta: number, value?: any): number;\n        set(index: number, value?: any): void;\n    }\n\n    var Table: {\n        prototype: Table;\n        new(descriptor: TableDescriptor, value?: any): Table;\n    };\n\n    interface GlobalDescriptor {\n        mutable?: boolean;\n        value: ValueType;\n    }\n\n    interface MemoryDescriptor {\n        initial: number;\n        maximum?: number;\n        shared?: boolean;\n    }\n\n    interface ModuleExportDescriptor {\n        kind: ImportExportKind;\n        name: string;\n    }\n\n    interface ModuleImportDescriptor {\n        kind: ImportExportKind;\n        module: string;\n        name: string;\n    }\n\n    interface TableDescriptor {\n        element: TableKind;\n        initial: number;\n        maximum?: number;\n    }\n\n    interface WebAssemblyInstantiatedSource {\n        instance: Instance;\n        module: Module;\n    }\n\n    type ImportExportKind = \"function\" | \"global\" | \"memory\" | \"table\";\n    type TableKind = \"anyfunc\" | \"externref\";\n    type ValueType = \"anyfunc\" | \"externref\" | \"f32\" | \"f64\" | \"i32\" | \"i64\" | \"v128\";\n    type ExportValue = Function | Global | Memory | Table;\n    type Exports = Record<string, ExportValue>;\n    type ImportValue = ExportValue | number;\n    type Imports = Record<string, ModuleImports>;\n    type ModuleImports = Record<string, ImportValue>;\n    function compile(bytes: BufferSource): Promise<Module>;\n    function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;\n    function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;\n    function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;\n    function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;\n    function validate(bytes: BufferSource): boolean;\n}\n\ninterface BlobCallback {\n    (blob: Blob | null): void;\n}\n\ninterface CustomElementConstructor {\n    new (...params: any[]): HTMLElement;\n}\n\ninterface DecodeErrorCallback {\n    (error: DOMException): void;\n}\n\ninterface DecodeSuccessCallback {\n    (decodedData: AudioBuffer): void;\n}\n\ninterface ErrorCallback {\n    (err: DOMException): void;\n}\n\ninterface FileCallback {\n    (file: File): void;\n}\n\ninterface FileSystemEntriesCallback {\n    (entries: FileSystemEntry[]): void;\n}\n\ninterface FileSystemEntryCallback {\n    (entry: FileSystemEntry): void;\n}\n\ninterface FrameRequestCallback {\n    (time: DOMHighResTimeStamp): void;\n}\n\ninterface FunctionStringCallback {\n    (data: string): void;\n}\n\ninterface IdleRequestCallback {\n    (deadline: IdleDeadline): void;\n}\n\ninterface IntersectionObserverCallback {\n    (entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;\n}\n\ninterface LockGrantedCallback {\n    (lock: Lock | null): any;\n}\n\ninterface MediaSessionActionHandler {\n    (details: MediaSessionActionDetails): void;\n}\n\ninterface MutationCallback {\n    (mutations: MutationRecord[], observer: MutationObserver): void;\n}\n\ninterface NotificationPermissionCallback {\n    (permission: NotificationPermission): void;\n}\n\ninterface OnBeforeUnloadEventHandlerNonNull {\n    (event: Event): string | null;\n}\n\ninterface OnErrorEventHandlerNonNull {\n    (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;\n}\n\ninterface PerformanceObserverCallback {\n    (entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;\n}\n\ninterface PositionCallback {\n    (position: GeolocationPosition): void;\n}\n\ninterface PositionErrorCallback {\n    (positionError: GeolocationPositionError): void;\n}\n\ninterface QueuingStrategySize<T = any> {\n    (chunk: T): number;\n}\n\ninterface RTCPeerConnectionErrorCallback {\n    (error: DOMException): void;\n}\n\ninterface RTCSessionDescriptionCallback {\n    (description: RTCSessionDescriptionInit): void;\n}\n\ninterface RemotePlaybackAvailabilityCallback {\n    (available: boolean): void;\n}\n\ninterface ResizeObserverCallback {\n    (entries: ResizeObserverEntry[], observer: ResizeObserver): void;\n}\n\ninterface TransformerFlushCallback<O> {\n    (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface TransformerStartCallback<O> {\n    (controller: TransformStreamDefaultController<O>): any;\n}\n\ninterface TransformerTransformCallback<I, O> {\n    (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkAbortCallback {\n    (reason?: any): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkCloseCallback {\n    (): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkStartCallback {\n    (controller: WritableStreamDefaultController): any;\n}\n\ninterface UnderlyingSinkWriteCallback<W> {\n    (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourceCancelCallback {\n    (reason?: any): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourcePullCallback<R> {\n    (controller: ReadableStreamController<R>): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourceStartCallback<R> {\n    (controller: ReadableStreamController<R>): any;\n}\n\ninterface VideoFrameRequestCallback {\n    (now: DOMHighResTimeStamp, metadata: VideoFrameCallbackMetadata): void;\n}\n\ninterface VoidFunction {\n    (): void;\n}\n\ninterface HTMLElementTagNameMap {\n    \"a\": HTMLAnchorElement;\n    \"abbr\": HTMLElement;\n    \"address\": HTMLElement;\n    \"area\": HTMLAreaElement;\n    \"article\": HTMLElement;\n    \"aside\": HTMLElement;\n    \"audio\": HTMLAudioElement;\n    \"b\": HTMLElement;\n    \"base\": HTMLBaseElement;\n    \"bdi\": HTMLElement;\n    \"bdo\": HTMLElement;\n    \"blockquote\": HTMLQuoteElement;\n    \"body\": HTMLBodyElement;\n    \"br\": HTMLBRElement;\n    \"button\": HTMLButtonElement;\n    \"canvas\": HTMLCanvasElement;\n    \"caption\": HTMLTableCaptionElement;\n    \"cite\": HTMLElement;\n    \"code\": HTMLElement;\n    \"col\": HTMLTableColElement;\n    \"colgroup\": HTMLTableColElement;\n    \"data\": HTMLDataElement;\n    \"datalist\": HTMLDataListElement;\n    \"dd\": HTMLElement;\n    \"del\": HTMLModElement;\n    \"details\": HTMLDetailsElement;\n    \"dfn\": HTMLElement;\n    \"dialog\": HTMLDialogElement;\n    \"div\": HTMLDivElement;\n    \"dl\": HTMLDListElement;\n    \"dt\": HTMLElement;\n    \"em\": HTMLElement;\n    \"embed\": HTMLEmbedElement;\n    \"fieldset\": HTMLFieldSetElement;\n    \"figcaption\": HTMLElement;\n    \"figure\": HTMLElement;\n    \"footer\": HTMLElement;\n    \"form\": HTMLFormElement;\n    \"h1\": HTMLHeadingElement;\n    \"h2\": HTMLHeadingElement;\n    \"h3\": HTMLHeadingElement;\n    \"h4\": HTMLHeadingElement;\n    \"h5\": HTMLHeadingElement;\n    \"h6\": HTMLHeadingElement;\n    \"head\": HTMLHeadElement;\n    \"header\": HTMLElement;\n    \"hgroup\": HTMLElement;\n    \"hr\": HTMLHRElement;\n    \"html\": HTMLHtmlElement;\n    \"i\": HTMLElement;\n    \"iframe\": HTMLIFrameElement;\n    \"img\": HTMLImageElement;\n    \"input\": HTMLInputElement;\n    \"ins\": HTMLModElement;\n    \"kbd\": HTMLElement;\n    \"label\": HTMLLabelElement;\n    \"legend\": HTMLLegendElement;\n    \"li\": HTMLLIElement;\n    \"link\": HTMLLinkElement;\n    \"main\": HTMLElement;\n    \"map\": HTMLMapElement;\n    \"mark\": HTMLElement;\n    \"menu\": HTMLMenuElement;\n    \"meta\": HTMLMetaElement;\n    \"meter\": HTMLMeterElement;\n    \"nav\": HTMLElement;\n    \"noscript\": HTMLElement;\n    \"object\": HTMLObjectElement;\n    \"ol\": HTMLOListElement;\n    \"optgroup\": HTMLOptGroupElement;\n    \"option\": HTMLOptionElement;\n    \"output\": HTMLOutputElement;\n    \"p\": HTMLParagraphElement;\n    \"picture\": HTMLPictureElement;\n    \"pre\": HTMLPreElement;\n    \"progress\": HTMLProgressElement;\n    \"q\": HTMLQuoteElement;\n    \"rp\": HTMLElement;\n    \"rt\": HTMLElement;\n    \"ruby\": HTMLElement;\n    \"s\": HTMLElement;\n    \"samp\": HTMLElement;\n    \"script\": HTMLScriptElement;\n    \"section\": HTMLElement;\n    \"select\": HTMLSelectElement;\n    \"slot\": HTMLSlotElement;\n    \"small\": HTMLElement;\n    \"source\": HTMLSourceElement;\n    \"span\": HTMLSpanElement;\n    \"strong\": HTMLElement;\n    \"style\": HTMLStyleElement;\n    \"sub\": HTMLElement;\n    \"summary\": HTMLElement;\n    \"sup\": HTMLElement;\n    \"table\": HTMLTableElement;\n    \"tbody\": HTMLTableSectionElement;\n    \"td\": HTMLTableCellElement;\n    \"template\": HTMLTemplateElement;\n    \"textarea\": HTMLTextAreaElement;\n    \"tfoot\": HTMLTableSectionElement;\n    \"th\": HTMLTableCellElement;\n    \"thead\": HTMLTableSectionElement;\n    \"time\": HTMLTimeElement;\n    \"title\": HTMLTitleElement;\n    \"tr\": HTMLTableRowElement;\n    \"track\": HTMLTrackElement;\n    \"u\": HTMLElement;\n    \"ul\": HTMLUListElement;\n    \"var\": HTMLElement;\n    \"video\": HTMLVideoElement;\n    \"wbr\": HTMLElement;\n}\n\ninterface HTMLElementDeprecatedTagNameMap {\n    \"acronym\": HTMLElement;\n    \"applet\": HTMLUnknownElement;\n    \"basefont\": HTMLElement;\n    \"bgsound\": HTMLUnknownElement;\n    \"big\": HTMLElement;\n    \"blink\": HTMLUnknownElement;\n    \"center\": HTMLElement;\n    \"dir\": HTMLDirectoryElement;\n    \"font\": HTMLFontElement;\n    \"frame\": HTMLFrameElement;\n    \"frameset\": HTMLFrameSetElement;\n    \"isindex\": HTMLUnknownElement;\n    \"keygen\": HTMLUnknownElement;\n    \"listing\": HTMLPreElement;\n    \"marquee\": HTMLMarqueeElement;\n    \"menuitem\": HTMLElement;\n    \"multicol\": HTMLUnknownElement;\n    \"nextid\": HTMLUnknownElement;\n    \"nobr\": HTMLElement;\n    \"noembed\": HTMLElement;\n    \"noframes\": HTMLElement;\n    \"param\": HTMLParamElement;\n    \"plaintext\": HTMLElement;\n    \"rb\": HTMLElement;\n    \"rtc\": HTMLElement;\n    \"spacer\": HTMLUnknownElement;\n    \"strike\": HTMLElement;\n    \"tt\": HTMLElement;\n    \"xmp\": HTMLPreElement;\n}\n\ninterface SVGElementTagNameMap {\n    \"a\": SVGAElement;\n    \"animate\": SVGAnimateElement;\n    \"animateMotion\": SVGAnimateMotionElement;\n    \"animateTransform\": SVGAnimateTransformElement;\n    \"circle\": SVGCircleElement;\n    \"clipPath\": SVGClipPathElement;\n    \"defs\": SVGDefsElement;\n    \"desc\": SVGDescElement;\n    \"ellipse\": SVGEllipseElement;\n    \"feBlend\": SVGFEBlendElement;\n    \"feColorMatrix\": SVGFEColorMatrixElement;\n    \"feComponentTransfer\": SVGFEComponentTransferElement;\n    \"feComposite\": SVGFECompositeElement;\n    \"feConvolveMatrix\": SVGFEConvolveMatrixElement;\n    \"feDiffuseLighting\": SVGFEDiffuseLightingElement;\n    \"feDisplacementMap\": SVGFEDisplacementMapElement;\n    \"feDistantLight\": SVGFEDistantLightElement;\n    \"feDropShadow\": SVGFEDropShadowElement;\n    \"feFlood\": SVGFEFloodElement;\n    \"feFuncA\": SVGFEFuncAElement;\n    \"feFuncB\": SVGFEFuncBElement;\n    \"feFuncG\": SVGFEFuncGElement;\n    \"feFuncR\": SVGFEFuncRElement;\n    \"feGaussianBlur\": SVGFEGaussianBlurElement;\n    \"feImage\": SVGFEImageElement;\n    \"feMerge\": SVGFEMergeElement;\n    \"feMergeNode\": SVGFEMergeNodeElement;\n    \"feMorphology\": SVGFEMorphologyElement;\n    \"feOffset\": SVGFEOffsetElement;\n    \"fePointLight\": SVGFEPointLightElement;\n    \"feSpecularLighting\": SVGFESpecularLightingElement;\n    \"feSpotLight\": SVGFESpotLightElement;\n    \"feTile\": SVGFETileElement;\n    \"feTurbulence\": SVGFETurbulenceElement;\n    \"filter\": SVGFilterElement;\n    \"foreignObject\": SVGForeignObjectElement;\n    \"g\": SVGGElement;\n    \"image\": SVGImageElement;\n    \"line\": SVGLineElement;\n    \"linearGradient\": SVGLinearGradientElement;\n    \"marker\": SVGMarkerElement;\n    \"mask\": SVGMaskElement;\n    \"metadata\": SVGMetadataElement;\n    \"mpath\": SVGMPathElement;\n    \"path\": SVGPathElement;\n    \"pattern\": SVGPatternElement;\n    \"polygon\": SVGPolygonElement;\n    \"polyline\": SVGPolylineElement;\n    \"radialGradient\": SVGRadialGradientElement;\n    \"rect\": SVGRectElement;\n    \"script\": SVGScriptElement;\n    \"set\": SVGSetElement;\n    \"stop\": SVGStopElement;\n    \"style\": SVGStyleElement;\n    \"svg\": SVGSVGElement;\n    \"switch\": SVGSwitchElement;\n    \"symbol\": SVGSymbolElement;\n    \"text\": SVGTextElement;\n    \"textPath\": SVGTextPathElement;\n    \"title\": SVGTitleElement;\n    \"tspan\": SVGTSpanElement;\n    \"use\": SVGUseElement;\n    \"view\": SVGViewElement;\n}\n\ninterface MathMLElementTagNameMap {\n    \"annotation\": MathMLElement;\n    \"annotation-xml\": MathMLElement;\n    \"maction\": MathMLElement;\n    \"math\": MathMLElement;\n    \"merror\": MathMLElement;\n    \"mfrac\": MathMLElement;\n    \"mi\": MathMLElement;\n    \"mmultiscripts\": MathMLElement;\n    \"mn\": MathMLElement;\n    \"mo\": MathMLElement;\n    \"mover\": MathMLElement;\n    \"mpadded\": MathMLElement;\n    \"mphantom\": MathMLElement;\n    \"mprescripts\": MathMLElement;\n    \"mroot\": MathMLElement;\n    \"mrow\": MathMLElement;\n    \"ms\": MathMLElement;\n    \"mspace\": MathMLElement;\n    \"msqrt\": MathMLElement;\n    \"mstyle\": MathMLElement;\n    \"msub\": MathMLElement;\n    \"msubsup\": MathMLElement;\n    \"msup\": MathMLElement;\n    \"mtable\": MathMLElement;\n    \"mtd\": MathMLElement;\n    \"mtext\": MathMLElement;\n    \"mtr\": MathMLElement;\n    \"munder\": MathMLElement;\n    \"munderover\": MathMLElement;\n    \"semantics\": MathMLElement;\n}\n\n/** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */\ntype ElementTagNameMap = HTMLElementTagNameMap & Pick<SVGElementTagNameMap, Exclude<keyof SVGElementTagNameMap, keyof HTMLElementTagNameMap>>;\n\ndeclare var Audio: {\n    new(src?: string): HTMLAudioElement;\n};\ndeclare var Image: {\n    new(width?: number, height?: number): HTMLImageElement;\n};\ndeclare var Option: {\n    new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement;\n};\n/** @deprecated This is a legacy alias of \\`navigator\\`. */\ndeclare var clientInformation: Navigator;\n/** Returns true if the window has been closed, false otherwise. */\ndeclare var closed: boolean;\n/** Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element. */\ndeclare var customElements: CustomElementRegistry;\ndeclare var devicePixelRatio: number;\ndeclare var document: Document;\n/** @deprecated */\ndeclare var event: Event | undefined;\n/** @deprecated */\ndeclare var external: External;\ndeclare var frameElement: Element | null;\ndeclare var frames: WindowProxy;\ndeclare var history: History;\ndeclare var innerHeight: number;\ndeclare var innerWidth: number;\ndeclare var length: number;\ndeclare var location: Location;\n/** Returns true if the location bar is visible; otherwise, returns false. */\ndeclare var locationbar: BarProp;\n/** Returns true if the menu bar is visible; otherwise, returns false. */\ndeclare var menubar: BarProp;\n/** @deprecated */\ndeclare const name: void;\ndeclare var navigator: Navigator;\n/** Available only in secure contexts. */\ndeclare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;\n/** Available only in secure contexts. */\ndeclare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;\n/** @deprecated */\ndeclare var onorientationchange: ((this: Window, ev: Event) => any) | null;\ndeclare var opener: any;\n/** @deprecated */\ndeclare var orientation: number;\ndeclare var outerHeight: number;\ndeclare var outerWidth: number;\n/** @deprecated This is a legacy alias of \\`scrollX\\`. */\ndeclare var pageXOffset: number;\n/** @deprecated This is a legacy alias of \\`scrollY\\`. */\ndeclare var pageYOffset: number;\n/**\n * Refers to either the parent WindowProxy, or itself.\n *\n * It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.\n */\ndeclare var parent: WindowProxy;\n/** Returns true if the personal bar is visible; otherwise, returns false. */\ndeclare var personalbar: BarProp;\ndeclare var screen: Screen;\ndeclare var screenLeft: number;\ndeclare var screenTop: number;\ndeclare var screenX: number;\ndeclare var screenY: number;\ndeclare var scrollX: number;\ndeclare var scrollY: number;\n/** Returns true if the scrollbars are visible; otherwise, returns false. */\ndeclare var scrollbars: BarProp;\ndeclare var self: Window & typeof globalThis;\ndeclare var speechSynthesis: SpeechSynthesis;\n/** @deprecated */\ndeclare var status: string;\n/** Returns true if the status bar is visible; otherwise, returns false. */\ndeclare var statusbar: BarProp;\n/** Returns true if the toolbar is visible; otherwise, returns false. */\ndeclare var toolbar: BarProp;\ndeclare var top: WindowProxy | null;\ndeclare var visualViewport: VisualViewport | null;\ndeclare var window: Window & typeof globalThis;\ndeclare function alert(message?: any): void;\ndeclare function blur(): void;\ndeclare function cancelIdleCallback(handle: number): void;\n/** @deprecated */\ndeclare function captureEvents(): void;\n/** Closes the window. */\ndeclare function close(): void;\ndeclare function confirm(message?: string): boolean;\n/** Moves the focus to the window's browsing context, if any. */\ndeclare function focus(): void;\ndeclare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;\ndeclare function getSelection(): Selection | null;\ndeclare function matchMedia(query: string): MediaQueryList;\ndeclare function moveBy(x: number, y: number): void;\ndeclare function moveTo(x: number, y: number): void;\ndeclare function open(url?: string | URL, target?: string, features?: string): WindowProxy | null;\n/**\n * Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.\n *\n * Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.\n *\n * A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to \"/\". This default restricts the message to same-origin targets only.\n *\n * If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to \"*\".\n *\n * Throws a \"DataCloneError\" DOMException if transfer array contains duplicate objects or if message could not be cloned.\n */\ndeclare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;\ndeclare function postMessage(message: any, options?: WindowPostMessageOptions): void;\ndeclare function print(): void;\ndeclare function prompt(message?: string, _default?: string): string | null;\n/** @deprecated */\ndeclare function releaseEvents(): void;\ndeclare function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;\ndeclare function resizeBy(x: number, y: number): void;\ndeclare function resizeTo(width: number, height: number): void;\ndeclare function scroll(options?: ScrollToOptions): void;\ndeclare function scroll(x: number, y: number): void;\ndeclare function scrollBy(options?: ScrollToOptions): void;\ndeclare function scrollBy(x: number, y: number): void;\ndeclare function scrollTo(options?: ScrollToOptions): void;\ndeclare function scrollTo(x: number, y: number): void;\n/** Cancels the document load. */\ndeclare function stop(): void;\ndeclare function toString(): string;\n/** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */\ndeclare function dispatchEvent(event: Event): boolean;\ndeclare function cancelAnimationFrame(handle: number): void;\ndeclare function requestAnimationFrame(callback: FrameRequestCallback): number;\n/**\n * Fires when the user aborts the download.\n * @param ev The event.\n */\ndeclare var onabort: ((this: Window, ev: UIEvent) => any) | null;\ndeclare var onanimationcancel: ((this: Window, ev: AnimationEvent) => any) | null;\ndeclare var onanimationend: ((this: Window, ev: AnimationEvent) => any) | null;\ndeclare var onanimationiteration: ((this: Window, ev: AnimationEvent) => any) | null;\ndeclare var onanimationstart: ((this: Window, ev: AnimationEvent) => any) | null;\ndeclare var onauxclick: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var onbeforeinput: ((this: Window, ev: InputEvent) => any) | null;\n/**\n * Fires when the object loses the input focus.\n * @param ev The focus event.\n */\ndeclare var onblur: ((this: Window, ev: FocusEvent) => any) | null;\ndeclare var oncancel: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when playback is possible, but would require further buffering.\n * @param ev The event.\n */\ndeclare var oncanplay: ((this: Window, ev: Event) => any) | null;\ndeclare var oncanplaythrough: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the contents of the object or selection have changed.\n * @param ev The event.\n */\ndeclare var onchange: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user clicks the left mouse button on the object\n * @param ev The mouse event.\n */\ndeclare var onclick: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var onclose: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user clicks the right mouse button in the client area, opening the context menu.\n * @param ev The mouse event.\n */\ndeclare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var oncopy: ((this: Window, ev: ClipboardEvent) => any) | null;\ndeclare var oncuechange: ((this: Window, ev: Event) => any) | null;\ndeclare var oncut: ((this: Window, ev: ClipboardEvent) => any) | null;\n/**\n * Fires when the user double-clicks the object.\n * @param ev The mouse event.\n */\ndeclare var ondblclick: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires on the source object continuously during a drag operation.\n * @param ev The event.\n */\ndeclare var ondrag: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the source object when the user releases the mouse at the close of a drag operation.\n * @param ev The event.\n */\ndeclare var ondragend: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the target element when the user drags the object to a valid drop target.\n * @param ev The drag event.\n */\ndeclare var ondragenter: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.\n * @param ev The drag event.\n */\ndeclare var ondragleave: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the target element continuously while the user drags the object over a valid drop target.\n * @param ev The event.\n */\ndeclare var ondragover: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the source object when the user starts to drag a text selection or selected object.\n * @param ev The event.\n */\ndeclare var ondragstart: ((this: Window, ev: DragEvent) => any) | null;\ndeclare var ondrop: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Occurs when the duration attribute is updated.\n * @param ev The event.\n */\ndeclare var ondurationchange: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the media element is reset to its initial state.\n * @param ev The event.\n */\ndeclare var onemptied: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the end of playback is reached.\n * @param ev The event\n */\ndeclare var onended: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when an error occurs during object loading.\n * @param ev The event.\n */\ndeclare var onerror: OnErrorEventHandler;\n/**\n * Fires when the object receives focus.\n * @param ev The event.\n */\ndeclare var onfocus: ((this: Window, ev: FocusEvent) => any) | null;\ndeclare var onformdata: ((this: Window, ev: FormDataEvent) => any) | null;\ndeclare var ongotpointercapture: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var oninput: ((this: Window, ev: Event) => any) | null;\ndeclare var oninvalid: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user presses a key.\n * @param ev The keyboard event\n */\ndeclare var onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null;\n/**\n * Fires when the user presses an alphanumeric key.\n * @param ev The event.\n * @deprecated\n */\ndeclare var onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null;\n/**\n * Fires when the user releases a key.\n * @param ev The keyboard event\n */\ndeclare var onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null;\n/**\n * Fires immediately after the browser loads the object.\n * @param ev The event.\n */\ndeclare var onload: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when media data is loaded at the current playback position.\n * @param ev The event.\n */\ndeclare var onloadeddata: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the duration and dimensions of the media have been determined.\n * @param ev The event.\n */\ndeclare var onloadedmetadata: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when Internet Explorer begins looking for media data.\n * @param ev The event.\n */\ndeclare var onloadstart: ((this: Window, ev: Event) => any) | null;\ndeclare var onlostpointercapture: ((this: Window, ev: PointerEvent) => any) | null;\n/**\n * Fires when the user clicks the object with either mouse button.\n * @param ev The mouse event.\n */\ndeclare var onmousedown: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var onmouseenter: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var onmouseleave: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the user moves the mouse over the object.\n * @param ev The mouse event.\n */\ndeclare var onmousemove: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the user moves the mouse pointer outside the boundaries of the object.\n * @param ev The mouse event.\n */\ndeclare var onmouseout: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the user moves the mouse pointer into the object.\n * @param ev The mouse event.\n */\ndeclare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the user releases a mouse button while the mouse is over the object.\n * @param ev The mouse event.\n */\ndeclare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var onpaste: ((this: Window, ev: ClipboardEvent) => any) | null;\n/**\n * Occurs when playback is paused.\n * @param ev The event.\n */\ndeclare var onpause: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the play method is requested.\n * @param ev The event.\n */\ndeclare var onplay: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the audio or video has started playing.\n * @param ev The event.\n */\ndeclare var onplaying: ((this: Window, ev: Event) => any) | null;\ndeclare var onpointercancel: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerdown: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerenter: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerleave: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null;\n/**\n * Occurs to indicate progress while downloading media data.\n * @param ev The event.\n */\ndeclare var onprogress: ((this: Window, ev: ProgressEvent) => any) | null;\n/**\n * Occurs when the playback rate is increased or decreased.\n * @param ev The event.\n */\ndeclare var onratechange: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user resets a form.\n * @param ev The event.\n */\ndeclare var onreset: ((this: Window, ev: Event) => any) | null;\ndeclare var onresize: ((this: Window, ev: UIEvent) => any) | null;\n/**\n * Fires when the user repositions the scroll box in the scroll bar on the object.\n * @param ev The event.\n */\ndeclare var onscroll: ((this: Window, ev: Event) => any) | null;\ndeclare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;\n/**\n * Occurs when the seek operation ends.\n * @param ev The event.\n */\ndeclare var onseeked: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the current playback position is moved.\n * @param ev The event.\n */\ndeclare var onseeking: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the current selection changes.\n * @param ev The event.\n */\ndeclare var onselect: ((this: Window, ev: Event) => any) | null;\ndeclare var onselectionchange: ((this: Window, ev: Event) => any) | null;\ndeclare var onselectstart: ((this: Window, ev: Event) => any) | null;\ndeclare var onslotchange: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the download has stopped.\n * @param ev The event.\n */\ndeclare var onstalled: ((this: Window, ev: Event) => any) | null;\ndeclare var onsubmit: ((this: Window, ev: SubmitEvent) => any) | null;\n/**\n * Occurs if the load operation has been intentionally halted.\n * @param ev The event.\n */\ndeclare var onsuspend: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs to indicate the current playback position.\n * @param ev The event.\n */\ndeclare var ontimeupdate: ((this: Window, ev: Event) => any) | null;\ndeclare var ontoggle: ((this: Window, ev: Event) => any) | null;\ndeclare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined;\ndeclare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null | undefined;\ndeclare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null | undefined;\ndeclare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null | undefined;\ndeclare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null;\ndeclare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null;\ndeclare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null;\ndeclare var ontransitionstart: ((this: Window, ev: TransitionEvent) => any) | null;\n/**\n * Occurs when the volume is changed, or playback is muted or unmuted.\n * @param ev The event.\n */\ndeclare var onvolumechange: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when playback stops because the next frame of a video resource is not available.\n * @param ev The event.\n */\ndeclare var onwaiting: ((this: Window, ev: Event) => any) | null;\n/** @deprecated This is a legacy alias of \\`onanimationend\\`. */\ndeclare var onwebkitanimationend: ((this: Window, ev: Event) => any) | null;\n/** @deprecated This is a legacy alias of \\`onanimationiteration\\`. */\ndeclare var onwebkitanimationiteration: ((this: Window, ev: Event) => any) | null;\n/** @deprecated This is a legacy alias of \\`onanimationstart\\`. */\ndeclare var onwebkitanimationstart: ((this: Window, ev: Event) => any) | null;\n/** @deprecated This is a legacy alias of \\`ontransitionend\\`. */\ndeclare var onwebkittransitionend: ((this: Window, ev: Event) => any) | null;\ndeclare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;\ndeclare var onafterprint: ((this: Window, ev: Event) => any) | null;\ndeclare var onbeforeprint: ((this: Window, ev: Event) => any) | null;\ndeclare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;\ndeclare var ongamepadconnected: ((this: Window, ev: GamepadEvent) => any) | null;\ndeclare var ongamepaddisconnected: ((this: Window, ev: GamepadEvent) => any) | null;\ndeclare var onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null;\ndeclare var onlanguagechange: ((this: Window, ev: Event) => any) | null;\ndeclare var onmessage: ((this: Window, ev: MessageEvent) => any) | null;\ndeclare var onmessageerror: ((this: Window, ev: MessageEvent) => any) | null;\ndeclare var onoffline: ((this: Window, ev: Event) => any) | null;\ndeclare var ononline: ((this: Window, ev: Event) => any) | null;\ndeclare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;\ndeclare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;\ndeclare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;\ndeclare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => any) | null;\ndeclare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;\ndeclare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;\ndeclare var onunload: ((this: Window, ev: Event) => any) | null;\ndeclare var localStorage: Storage;\n/** Available only in secure contexts. */\ndeclare var caches: CacheStorage;\ndeclare var crossOriginIsolated: boolean;\ndeclare var crypto: Crypto;\ndeclare var indexedDB: IDBFactory;\ndeclare var isSecureContext: boolean;\ndeclare var origin: string;\ndeclare var performance: Performance;\ndeclare function atob(data: string): string;\ndeclare function btoa(data: string): string;\ndeclare function clearInterval(id: number | undefined): void;\ndeclare function clearTimeout(id: number | undefined): void;\ndeclare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;\ndeclare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\ndeclare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;\ndeclare function queueMicrotask(callback: VoidFunction): void;\ndeclare function reportError(e: any): void;\ndeclare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\ndeclare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\ndeclare function structuredClone(value: any, options?: StructuredSerializeOptions): any;\ndeclare var sessionStorage: Storage;\ndeclare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\ndeclare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\ndeclare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\ndeclare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\ntype AlgorithmIdentifier = Algorithm | string;\ntype BigInteger = Uint8Array;\ntype BinaryData = ArrayBuffer | ArrayBufferView;\ntype BlobPart = BufferSource | Blob | string;\ntype BodyInit = ReadableStream | XMLHttpRequestBodyInit;\ntype BufferSource = ArrayBufferView | ArrayBuffer;\ntype COSEAlgorithmIdentifier = number;\ntype CSSNumberish = number;\ntype CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas;\ntype ClipboardItemData = Promise<string | Blob>;\ntype ClipboardItems = ClipboardItem[];\ntype ConstrainBoolean = boolean | ConstrainBooleanParameters;\ntype ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;\ntype ConstrainDouble = number | ConstrainDoubleRange;\ntype ConstrainULong = number | ConstrainULongRange;\ntype DOMHighResTimeStamp = number;\ntype EpochTimeStamp = number;\ntype EventListenerOrEventListenerObject = EventListener | EventListenerObject;\ntype Float32List = Float32Array | GLfloat[];\ntype FormDataEntryValue = File | string;\ntype GLbitfield = number;\ntype GLboolean = boolean;\ntype GLclampf = number;\ntype GLenum = number;\ntype GLfloat = number;\ntype GLint = number;\ntype GLint64 = number;\ntype GLintptr = number;\ntype GLsizei = number;\ntype GLsizeiptr = number;\ntype GLuint = number;\ntype GLuint64 = number;\ntype HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;\ntype HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;\ntype HashAlgorithmIdentifier = AlgorithmIdentifier;\ntype HeadersInit = [string, string][] | Record<string, string> | Headers;\ntype IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];\ntype ImageBitmapSource = CanvasImageSource | Blob | ImageData;\ntype Int32List = Int32Array | GLint[];\ntype LineAndPositionSetting = number | AutoKeyword;\ntype MediaProvider = MediaStream | MediaSource | Blob;\ntype MessageEventSource = WindowProxy | MessagePort | ServiceWorker;\ntype MutationRecordType = \"attributes\" | \"characterData\" | \"childList\";\ntype NamedCurve = string;\ntype OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;\ntype OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;\ntype OnErrorEventHandler = OnErrorEventHandlerNonNull | null;\ntype PerformanceEntryList = PerformanceEntry[];\ntype ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;\ntype ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;\ntype ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;\ntype RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;\ntype RequestInfo = Request | string;\ntype TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas;\ntype TimerHandler = string | Function;\ntype Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;\ntype Uint32List = Uint32Array | GLuint[];\ntype VibratePattern = number | number[];\ntype WindowProxy = Window;\ntype XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;\ntype AlignSetting = \"center\" | \"end\" | \"left\" | \"right\" | \"start\";\ntype AnimationPlayState = \"finished\" | \"idle\" | \"paused\" | \"running\";\ntype AnimationReplaceState = \"active\" | \"persisted\" | \"removed\";\ntype AppendMode = \"segments\" | \"sequence\";\ntype AttestationConveyancePreference = \"direct\" | \"enterprise\" | \"indirect\" | \"none\";\ntype AudioContextLatencyCategory = \"balanced\" | \"interactive\" | \"playback\";\ntype AudioContextState = \"closed\" | \"running\" | \"suspended\";\ntype AuthenticatorAttachment = \"cross-platform\" | \"platform\";\ntype AuthenticatorTransport = \"ble\" | \"hybrid\" | \"internal\" | \"nfc\" | \"usb\";\ntype AutoKeyword = \"auto\";\ntype AutomationRate = \"a-rate\" | \"k-rate\";\ntype BinaryType = \"arraybuffer\" | \"blob\";\ntype BiquadFilterType = \"allpass\" | \"bandpass\" | \"highpass\" | \"highshelf\" | \"lowpass\" | \"lowshelf\" | \"notch\" | \"peaking\";\ntype CanPlayTypeResult = \"\" | \"maybe\" | \"probably\";\ntype CanvasDirection = \"inherit\" | \"ltr\" | \"rtl\";\ntype CanvasFillRule = \"evenodd\" | \"nonzero\";\ntype CanvasFontKerning = \"auto\" | \"none\" | \"normal\";\ntype CanvasFontStretch = \"condensed\" | \"expanded\" | \"extra-condensed\" | \"extra-expanded\" | \"normal\" | \"semi-condensed\" | \"semi-expanded\" | \"ultra-condensed\" | \"ultra-expanded\";\ntype CanvasFontVariantCaps = \"all-petite-caps\" | \"all-small-caps\" | \"normal\" | \"petite-caps\" | \"small-caps\" | \"titling-caps\" | \"unicase\";\ntype CanvasLineCap = \"butt\" | \"round\" | \"square\";\ntype CanvasLineJoin = \"bevel\" | \"miter\" | \"round\";\ntype CanvasTextAlign = \"center\" | \"end\" | \"left\" | \"right\" | \"start\";\ntype CanvasTextBaseline = \"alphabetic\" | \"bottom\" | \"hanging\" | \"ideographic\" | \"middle\" | \"top\";\ntype CanvasTextRendering = \"auto\" | \"geometricPrecision\" | \"optimizeLegibility\" | \"optimizeSpeed\";\ntype ChannelCountMode = \"clamped-max\" | \"explicit\" | \"max\";\ntype ChannelInterpretation = \"discrete\" | \"speakers\";\ntype ClientTypes = \"all\" | \"sharedworker\" | \"window\" | \"worker\";\ntype ColorGamut = \"p3\" | \"rec2020\" | \"srgb\";\ntype ColorSpaceConversion = \"default\" | \"none\";\ntype CompositeOperation = \"accumulate\" | \"add\" | \"replace\";\ntype CompositeOperationOrAuto = \"accumulate\" | \"add\" | \"auto\" | \"replace\";\ntype CredentialMediationRequirement = \"optional\" | \"required\" | \"silent\";\ntype DOMParserSupportedType = \"application/xhtml+xml\" | \"application/xml\" | \"image/svg+xml\" | \"text/html\" | \"text/xml\";\ntype DirectionSetting = \"\" | \"lr\" | \"rl\";\ntype DisplayCaptureSurfaceType = \"browser\" | \"monitor\" | \"window\";\ntype DistanceModelType = \"exponential\" | \"inverse\" | \"linear\";\ntype DocumentReadyState = \"complete\" | \"interactive\" | \"loading\";\ntype DocumentVisibilityState = \"hidden\" | \"visible\";\ntype EndOfStreamError = \"decode\" | \"network\";\ntype EndingType = \"native\" | \"transparent\";\ntype FileSystemHandleKind = \"directory\" | \"file\";\ntype FillMode = \"auto\" | \"backwards\" | \"both\" | \"forwards\" | \"none\";\ntype FontDisplay = \"auto\" | \"block\" | \"fallback\" | \"optional\" | \"swap\";\ntype FontFaceLoadStatus = \"error\" | \"loaded\" | \"loading\" | \"unloaded\";\ntype FontFaceSetLoadStatus = \"loaded\" | \"loading\";\ntype FullscreenNavigationUI = \"auto\" | \"hide\" | \"show\";\ntype GamepadHapticActuatorType = \"vibration\";\ntype GamepadMappingType = \"\" | \"standard\" | \"xr-standard\";\ntype GlobalCompositeOperation = \"color\" | \"color-burn\" | \"color-dodge\" | \"copy\" | \"darken\" | \"destination-atop\" | \"destination-in\" | \"destination-out\" | \"destination-over\" | \"difference\" | \"exclusion\" | \"hard-light\" | \"hue\" | \"lighten\" | \"lighter\" | \"luminosity\" | \"multiply\" | \"overlay\" | \"saturation\" | \"screen\" | \"soft-light\" | \"source-atop\" | \"source-in\" | \"source-out\" | \"source-over\" | \"xor\";\ntype HdrMetadataType = \"smpteSt2086\" | \"smpteSt2094-10\" | \"smpteSt2094-40\";\ntype IDBCursorDirection = \"next\" | \"nextunique\" | \"prev\" | \"prevunique\";\ntype IDBRequestReadyState = \"done\" | \"pending\";\ntype IDBTransactionDurability = \"default\" | \"relaxed\" | \"strict\";\ntype IDBTransactionMode = \"readonly\" | \"readwrite\" | \"versionchange\";\ntype ImageOrientation = \"flipY\" | \"from-image\";\ntype ImageSmoothingQuality = \"high\" | \"low\" | \"medium\";\ntype InsertPosition = \"afterbegin\" | \"afterend\" | \"beforebegin\" | \"beforeend\";\ntype IterationCompositeOperation = \"accumulate\" | \"replace\";\ntype KeyFormat = \"jwk\" | \"pkcs8\" | \"raw\" | \"spki\";\ntype KeyType = \"private\" | \"public\" | \"secret\";\ntype KeyUsage = \"decrypt\" | \"deriveBits\" | \"deriveKey\" | \"encrypt\" | \"sign\" | \"unwrapKey\" | \"verify\" | \"wrapKey\";\ntype LineAlignSetting = \"center\" | \"end\" | \"start\";\ntype LockMode = \"exclusive\" | \"shared\";\ntype MIDIPortConnectionState = \"closed\" | \"open\" | \"pending\";\ntype MIDIPortDeviceState = \"connected\" | \"disconnected\";\ntype MIDIPortType = \"input\" | \"output\";\ntype MediaDecodingType = \"file\" | \"media-source\" | \"webrtc\";\ntype MediaDeviceKind = \"audioinput\" | \"audiooutput\" | \"videoinput\";\ntype MediaEncodingType = \"record\" | \"webrtc\";\ntype MediaKeyMessageType = \"individualization-request\" | \"license-release\" | \"license-renewal\" | \"license-request\";\ntype MediaKeySessionClosedReason = \"closed-by-application\" | \"hardware-context-reset\" | \"internal-error\" | \"release-acknowledged\" | \"resource-evicted\";\ntype MediaKeySessionType = \"persistent-license\" | \"temporary\";\ntype MediaKeyStatus = \"expired\" | \"internal-error\" | \"output-downscaled\" | \"output-restricted\" | \"released\" | \"status-pending\" | \"usable\" | \"usable-in-future\";\ntype MediaKeysRequirement = \"not-allowed\" | \"optional\" | \"required\";\ntype MediaSessionAction = \"nexttrack\" | \"pause\" | \"play\" | \"previoustrack\" | \"seekbackward\" | \"seekforward\" | \"seekto\" | \"skipad\" | \"stop\";\ntype MediaSessionPlaybackState = \"none\" | \"paused\" | \"playing\";\ntype MediaStreamTrackState = \"ended\" | \"live\";\ntype NavigationTimingType = \"back_forward\" | \"navigate\" | \"prerender\" | \"reload\";\ntype NotificationDirection = \"auto\" | \"ltr\" | \"rtl\";\ntype NotificationPermission = \"default\" | \"denied\" | \"granted\";\ntype OffscreenRenderingContextId = \"2d\" | \"bitmaprenderer\" | \"webgl\" | \"webgl2\" | \"webgpu\";\ntype OrientationLockType = \"any\" | \"landscape\" | \"landscape-primary\" | \"landscape-secondary\" | \"natural\" | \"portrait\" | \"portrait-primary\" | \"portrait-secondary\";\ntype OrientationType = \"landscape-primary\" | \"landscape-secondary\" | \"portrait-primary\" | \"portrait-secondary\";\ntype OscillatorType = \"custom\" | \"sawtooth\" | \"sine\" | \"square\" | \"triangle\";\ntype OverSampleType = \"2x\" | \"4x\" | \"none\";\ntype PanningModelType = \"HRTF\" | \"equalpower\";\ntype PaymentComplete = \"fail\" | \"success\" | \"unknown\";\ntype PermissionName = \"geolocation\" | \"notifications\" | \"persistent-storage\" | \"push\" | \"screen-wake-lock\" | \"xr-spatial-tracking\";\ntype PermissionState = \"denied\" | \"granted\" | \"prompt\";\ntype PlaybackDirection = \"alternate\" | \"alternate-reverse\" | \"normal\" | \"reverse\";\ntype PositionAlignSetting = \"auto\" | \"center\" | \"line-left\" | \"line-right\";\ntype PredefinedColorSpace = \"display-p3\" | \"srgb\";\ntype PremultiplyAlpha = \"default\" | \"none\" | \"premultiply\";\ntype PresentationStyle = \"attachment\" | \"inline\" | \"unspecified\";\ntype PublicKeyCredentialType = \"public-key\";\ntype PushEncryptionKeyName = \"auth\" | \"p256dh\";\ntype RTCBundlePolicy = \"balanced\" | \"max-bundle\" | \"max-compat\";\ntype RTCDataChannelState = \"closed\" | \"closing\" | \"connecting\" | \"open\";\ntype RTCDegradationPreference = \"balanced\" | \"maintain-framerate\" | \"maintain-resolution\";\ntype RTCDtlsTransportState = \"closed\" | \"connected\" | \"connecting\" | \"failed\" | \"new\";\ntype RTCEncodedVideoFrameType = \"delta\" | \"empty\" | \"key\";\ntype RTCErrorDetailType = \"data-channel-failure\" | \"dtls-failure\" | \"fingerprint-failure\" | \"hardware-encoder-error\" | \"hardware-encoder-not-available\" | \"sctp-failure\" | \"sdp-syntax-error\";\ntype RTCIceCandidateType = \"host\" | \"prflx\" | \"relay\" | \"srflx\";\ntype RTCIceComponent = \"rtcp\" | \"rtp\";\ntype RTCIceConnectionState = \"checking\" | \"closed\" | \"completed\" | \"connected\" | \"disconnected\" | \"failed\" | \"new\";\ntype RTCIceGathererState = \"complete\" | \"gathering\" | \"new\";\ntype RTCIceGatheringState = \"complete\" | \"gathering\" | \"new\";\ntype RTCIceProtocol = \"tcp\" | \"udp\";\ntype RTCIceTcpCandidateType = \"active\" | \"passive\" | \"so\";\ntype RTCIceTransportPolicy = \"all\" | \"relay\";\ntype RTCIceTransportState = \"checking\" | \"closed\" | \"completed\" | \"connected\" | \"disconnected\" | \"failed\" | \"new\";\ntype RTCPeerConnectionState = \"closed\" | \"connected\" | \"connecting\" | \"disconnected\" | \"failed\" | \"new\";\ntype RTCPriorityType = \"high\" | \"low\" | \"medium\" | \"very-low\";\ntype RTCRtcpMuxPolicy = \"require\";\ntype RTCRtpTransceiverDirection = \"inactive\" | \"recvonly\" | \"sendonly\" | \"sendrecv\" | \"stopped\";\ntype RTCSctpTransportState = \"closed\" | \"connected\" | \"connecting\";\ntype RTCSdpType = \"answer\" | \"offer\" | \"pranswer\" | \"rollback\";\ntype RTCSignalingState = \"closed\" | \"have-local-offer\" | \"have-local-pranswer\" | \"have-remote-offer\" | \"have-remote-pranswer\" | \"stable\";\ntype RTCStatsIceCandidatePairState = \"failed\" | \"frozen\" | \"in-progress\" | \"inprogress\" | \"succeeded\" | \"waiting\";\ntype RTCStatsType = \"candidate-pair\" | \"certificate\" | \"codec\" | \"data-channel\" | \"inbound-rtp\" | \"local-candidate\" | \"media-source\" | \"outbound-rtp\" | \"peer-connection\" | \"remote-candidate\" | \"remote-inbound-rtp\" | \"remote-outbound-rtp\" | \"track\" | \"transport\";\ntype ReadableStreamReaderMode = \"byob\";\ntype ReadableStreamType = \"bytes\";\ntype ReadyState = \"closed\" | \"ended\" | \"open\";\ntype RecordingState = \"inactive\" | \"paused\" | \"recording\";\ntype ReferrerPolicy = \"\" | \"no-referrer\" | \"no-referrer-when-downgrade\" | \"origin\" | \"origin-when-cross-origin\" | \"same-origin\" | \"strict-origin\" | \"strict-origin-when-cross-origin\" | \"unsafe-url\";\ntype RemotePlaybackState = \"connected\" | \"connecting\" | \"disconnected\";\ntype RequestCache = \"default\" | \"force-cache\" | \"no-cache\" | \"no-store\" | \"only-if-cached\" | \"reload\";\ntype RequestCredentials = \"include\" | \"omit\" | \"same-origin\";\ntype RequestDestination = \"\" | \"audio\" | \"audioworklet\" | \"document\" | \"embed\" | \"font\" | \"frame\" | \"iframe\" | \"image\" | \"manifest\" | \"object\" | \"paintworklet\" | \"report\" | \"script\" | \"sharedworker\" | \"style\" | \"track\" | \"video\" | \"worker\" | \"xslt\";\ntype RequestMode = \"cors\" | \"navigate\" | \"no-cors\" | \"same-origin\";\ntype RequestRedirect = \"error\" | \"follow\" | \"manual\";\ntype ResidentKeyRequirement = \"discouraged\" | \"preferred\" | \"required\";\ntype ResizeObserverBoxOptions = \"border-box\" | \"content-box\" | \"device-pixel-content-box\";\ntype ResizeQuality = \"high\" | \"low\" | \"medium\" | \"pixelated\";\ntype ResponseType = \"basic\" | \"cors\" | \"default\" | \"error\" | \"opaque\" | \"opaqueredirect\";\ntype ScrollBehavior = \"auto\" | \"smooth\";\ntype ScrollLogicalPosition = \"center\" | \"end\" | \"nearest\" | \"start\";\ntype ScrollRestoration = \"auto\" | \"manual\";\ntype ScrollSetting = \"\" | \"up\";\ntype SecurityPolicyViolationEventDisposition = \"enforce\" | \"report\";\ntype SelectionMode = \"end\" | \"preserve\" | \"select\" | \"start\";\ntype ServiceWorkerState = \"activated\" | \"activating\" | \"installed\" | \"installing\" | \"parsed\" | \"redundant\";\ntype ServiceWorkerUpdateViaCache = \"all\" | \"imports\" | \"none\";\ntype ShadowRootMode = \"closed\" | \"open\";\ntype SlotAssignmentMode = \"manual\" | \"named\";\ntype SpeechSynthesisErrorCode = \"audio-busy\" | \"audio-hardware\" | \"canceled\" | \"interrupted\" | \"invalid-argument\" | \"language-unavailable\" | \"network\" | \"not-allowed\" | \"synthesis-failed\" | \"synthesis-unavailable\" | \"text-too-long\" | \"voice-unavailable\";\ntype TextTrackKind = \"captions\" | \"chapters\" | \"descriptions\" | \"metadata\" | \"subtitles\";\ntype TextTrackMode = \"disabled\" | \"hidden\" | \"showing\";\ntype TouchType = \"direct\" | \"stylus\";\ntype TransferFunction = \"hlg\" | \"pq\" | \"srgb\";\ntype UserVerificationRequirement = \"discouraged\" | \"preferred\" | \"required\";\ntype VideoColorPrimaries = \"bt470bg\" | \"bt709\" | \"smpte170m\";\ntype VideoFacingModeEnum = \"environment\" | \"left\" | \"right\" | \"user\";\ntype VideoMatrixCoefficients = \"bt470bg\" | \"bt709\" | \"rgb\" | \"smpte170m\";\ntype VideoTransferCharacteristics = \"bt709\" | \"iec61966-2-1\" | \"smpte170m\";\ntype WebGLPowerPreference = \"default\" | \"high-performance\" | \"low-power\";\ntype WorkerType = \"classic\" | \"module\";\ntype XMLHttpRequestResponseType = \"\" | \"arraybuffer\" | \"blob\" | \"document\" | \"json\" | \"text\";\n`;\nlibFileMap[\"lib.dom.iterable.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/////////////////////////////\\n/// Window Iterable APIs\\n/////////////////////////////\\n\\ninterface AudioParam {\\n    setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;\\n}\\n\\ninterface AudioParamMap extends ReadonlyMap<string, AudioParam> {\\n}\\n\\ninterface BaseAudioContext {\\n    createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;\\n    createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;\\n}\\n\\ninterface CSSKeyframesRule {\\n    [Symbol.iterator](): IterableIterator<CSSKeyframeRule>;\\n}\\n\\ninterface CSSRuleList {\\n    [Symbol.iterator](): IterableIterator<CSSRule>;\\n}\\n\\ninterface CSSStyleDeclaration {\\n    [Symbol.iterator](): IterableIterator<string>;\\n}\\n\\ninterface Cache {\\n    addAll(requests: Iterable<RequestInfo>): Promise<void>;\\n}\\n\\ninterface CanvasPath {\\n    roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;\\n}\\n\\ninterface CanvasPathDrawingStyles {\\n    setLineDash(segments: Iterable<number>): void;\\n}\\n\\ninterface DOMRectList {\\n    [Symbol.iterator](): IterableIterator<DOMRect>;\\n}\\n\\ninterface DOMStringList {\\n    [Symbol.iterator](): IterableIterator<string>;\\n}\\n\\ninterface DOMTokenList {\\n    [Symbol.iterator](): IterableIterator<string>;\\n    entries(): IterableIterator<[number, string]>;\\n    keys(): IterableIterator<number>;\\n    values(): IterableIterator<string>;\\n}\\n\\ninterface DataTransferItemList {\\n    [Symbol.iterator](): IterableIterator<DataTransferItem>;\\n}\\n\\ninterface EventCounts extends ReadonlyMap<string, number> {\\n}\\n\\ninterface FileList {\\n    [Symbol.iterator](): IterableIterator<File>;\\n}\\n\\ninterface FontFaceSet extends Set<FontFace> {\\n}\\n\\ninterface FormData {\\n    [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;\\n    /** Returns an array of key, value pairs for every entry in the list. */\\n    entries(): IterableIterator<[string, FormDataEntryValue]>;\\n    /** Returns a list of keys in the list. */\\n    keys(): IterableIterator<string>;\\n    /** Returns a list of values in the list. */\\n    values(): IterableIterator<FormDataEntryValue>;\\n}\\n\\ninterface HTMLAllCollection {\\n    [Symbol.iterator](): IterableIterator<Element>;\\n}\\n\\ninterface HTMLCollectionBase {\\n    [Symbol.iterator](): IterableIterator<Element>;\\n}\\n\\ninterface HTMLCollectionOf<T extends Element> {\\n    [Symbol.iterator](): IterableIterator<T>;\\n}\\n\\ninterface HTMLFormElement {\\n    [Symbol.iterator](): IterableIterator<Element>;\\n}\\n\\ninterface HTMLSelectElement {\\n    [Symbol.iterator](): IterableIterator<HTMLOptionElement>;\\n}\\n\\ninterface Headers {\\n    [Symbol.iterator](): IterableIterator<[string, string]>;\\n    /** Returns an iterator allowing to go through all key/value pairs contained in this object. */\\n    entries(): IterableIterator<[string, string]>;\\n    /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */\\n    keys(): IterableIterator<string>;\\n    /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */\\n    values(): IterableIterator<string>;\\n}\\n\\ninterface IDBDatabase {\\n    /** Returns a new transaction with the given mode (\"readonly\" or \"readwrite\") and scope which can be a single object store name or an array of names. */\\n    transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;\\n}\\n\\ninterface IDBObjectStore {\\n    /**\\n     * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a \"ConstraintError\" DOMException.\\n     *\\n     * Throws an \"InvalidStateError\" DOMException if not called within an upgrade transaction.\\n     */\\n    createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;\\n}\\n\\ninterface MIDIInputMap extends ReadonlyMap<string, MIDIInput> {\\n}\\n\\ninterface MIDIOutput {\\n    send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void;\\n}\\n\\ninterface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> {\\n}\\n\\ninterface MediaKeyStatusMap {\\n    [Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;\\n    entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;\\n    keys(): IterableIterator<BufferSource>;\\n    values(): IterableIterator<MediaKeyStatus>;\\n}\\n\\ninterface MediaList {\\n    [Symbol.iterator](): IterableIterator<string>;\\n}\\n\\ninterface MessageEvent<T = any> {\\n    /** @deprecated */\\n    initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;\\n}\\n\\ninterface MimeTypeArray {\\n    [Symbol.iterator](): IterableIterator<MimeType>;\\n}\\n\\ninterface NamedNodeMap {\\n    [Symbol.iterator](): IterableIterator<Attr>;\\n}\\n\\ninterface Navigator {\\n    /** Available only in secure contexts. */\\n    requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;\\n    vibrate(pattern: Iterable<number>): boolean;\\n}\\n\\ninterface NodeList {\\n    [Symbol.iterator](): IterableIterator<Node>;\\n    /** Returns an array of key, value pairs for every entry in the list. */\\n    entries(): IterableIterator<[number, Node]>;\\n    /** Returns an list of keys in the list. */\\n    keys(): IterableIterator<number>;\\n    /** Returns an list of values in the list. */\\n    values(): IterableIterator<Node>;\\n}\\n\\ninterface NodeListOf<TNode extends Node> {\\n    [Symbol.iterator](): IterableIterator<TNode>;\\n    /** Returns an array of key, value pairs for every entry in the list. */\\n    entries(): IterableIterator<[number, TNode]>;\\n    /** Returns an list of keys in the list. */\\n    keys(): IterableIterator<number>;\\n    /** Returns an list of values in the list. */\\n    values(): IterableIterator<TNode>;\\n}\\n\\ninterface Plugin {\\n    [Symbol.iterator](): IterableIterator<MimeType>;\\n}\\n\\ninterface PluginArray {\\n    [Symbol.iterator](): IterableIterator<Plugin>;\\n}\\n\\ninterface RTCRtpTransceiver {\\n    setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void;\\n}\\n\\ninterface RTCStatsReport extends ReadonlyMap<string, any> {\\n}\\n\\ninterface SVGLengthList {\\n    [Symbol.iterator](): IterableIterator<SVGLength>;\\n}\\n\\ninterface SVGNumberList {\\n    [Symbol.iterator](): IterableIterator<SVGNumber>;\\n}\\n\\ninterface SVGPointList {\\n    [Symbol.iterator](): IterableIterator<DOMPoint>;\\n}\\n\\ninterface SVGStringList {\\n    [Symbol.iterator](): IterableIterator<string>;\\n}\\n\\ninterface SVGTransformList {\\n    [Symbol.iterator](): IterableIterator<SVGTransform>;\\n}\\n\\ninterface SourceBufferList {\\n    [Symbol.iterator](): IterableIterator<SourceBuffer>;\\n}\\n\\ninterface SpeechRecognitionResult {\\n    [Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>;\\n}\\n\\ninterface SpeechRecognitionResultList {\\n    [Symbol.iterator](): IterableIterator<SpeechRecognitionResult>;\\n}\\n\\ninterface StyleSheetList {\\n    [Symbol.iterator](): IterableIterator<CSSStyleSheet>;\\n}\\n\\ninterface SubtleCrypto {\\n    deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\\n    generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;\\n    generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\\n    generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;\\n    importKey(format: \"jwk\", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\\n    importKey(format: Exclude<KeyFormat, \"jwk\">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\\n    unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\\n}\\n\\ninterface TextTrackCueList {\\n    [Symbol.iterator](): IterableIterator<TextTrackCue>;\\n}\\n\\ninterface TextTrackList {\\n    [Symbol.iterator](): IterableIterator<TextTrack>;\\n}\\n\\ninterface TouchList {\\n    [Symbol.iterator](): IterableIterator<Touch>;\\n}\\n\\ninterface URLSearchParams {\\n    [Symbol.iterator](): IterableIterator<[string, string]>;\\n    /** Returns an array of key, value pairs for every entry in the search params. */\\n    entries(): IterableIterator<[string, string]>;\\n    /** Returns a list of keys in the search params. */\\n    keys(): IterableIterator<string>;\\n    /** Returns a list of values in the search params. */\\n    values(): IterableIterator<string>;\\n}\\n\\ninterface WEBGL_draw_buffers {\\n    drawBuffersWEBGL(buffers: Iterable<GLenum>): void;\\n}\\n\\ninterface WEBGL_multi_draw {\\n    multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;\\n    multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;\\n    multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;\\n    multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;\\n}\\n\\ninterface WebGL2RenderingContextBase {\\n    clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;\\n    clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;\\n    clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;\\n    drawBuffers(buffers: Iterable<GLenum>): void;\\n    getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;\\n    getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;\\n    invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;\\n    invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\\n    transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;\\n    uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;\\n    vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;\\n}\\n\\ninterface WebGL2RenderingContextOverloads {\\n    uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n}\\n\\ninterface WebGLRenderingContextBase {\\n    vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;\\n    vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;\\n    vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;\\n    vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;\\n}\\n\\ninterface WebGLRenderingContextOverloads {\\n    uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\\n    uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\\n    uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\\n    uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\\n    uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\\n    uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\\n    uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\\n    uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\\n    uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\\n    uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\\n    uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\\n}\\n';\nlibFileMap[\"lib.es2015.collection.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ninterface Map<K, V> {\\n\\n    clear(): void;\\n    /**\\n     * @returns true if an element in the Map existed and has been removed, or false if the element does not exist.\\n     */\\n    delete(key: K): boolean;\\n    /**\\n     * Executes a provided function once per each key/value pair in the Map, in insertion order.\\n     */\\n    forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;\\n    /**\\n     * Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.\\n     * @returns Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.\\n     */\\n    get(key: K): V | undefined;\\n    /**\\n     * @returns boolean indicating whether an element with the specified key exists or not.\\n     */\\n    has(key: K): boolean;\\n    /**\\n     * Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated.\\n     */\\n    set(key: K, value: V): this;\\n    /**\\n     * @returns the number of elements in the Map.\\n     */\\n    readonly size: number;\\n}\\n\\ninterface MapConstructor {\\n    new(): Map<any, any>;\\n    new <K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;\\n    readonly prototype: Map<any, any>;\\n}\\ndeclare var Map: MapConstructor;\\n\\ninterface ReadonlyMap<K, V> {\\n    forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;\\n    get(key: K): V | undefined;\\n    has(key: K): boolean;\\n    readonly size: number;\\n}\\n\\ninterface WeakMap<K extends object, V> {\\n    /**\\n     * Removes the specified element from the WeakMap.\\n     * @returns true if the element was successfully removed, or false if it was not present.\\n     */\\n    delete(key: K): boolean;\\n    /**\\n     * @returns a specified element.\\n     */\\n    get(key: K): V | undefined;\\n    /**\\n     * @returns a boolean indicating whether an element with the specified key exists or not.\\n     */\\n    has(key: K): boolean;\\n    /**\\n     * Adds a new element with a specified key and value.\\n     * @param key Must be an object.\\n     */\\n    set(key: K, value: V): this;\\n}\\n\\ninterface WeakMapConstructor {\\n    new <K extends object = object, V = any>(entries?: readonly [K, V][] | null): WeakMap<K, V>;\\n    readonly prototype: WeakMap<object, any>;\\n}\\ndeclare var WeakMap: WeakMapConstructor;\\n\\ninterface Set<T> {\\n    /**\\n     * Appends a new element with a specified value to the end of the Set.\\n     */\\n    add(value: T): this;\\n\\n    clear(): void;\\n    /**\\n     * Removes a specified value from the Set.\\n     * @returns Returns true if an element in the Set existed and has been removed, or false if the element does not exist.\\n     */\\n    delete(value: T): boolean;\\n    /**\\n     * Executes a provided function once per each value in the Set object, in insertion order.\\n     */\\n    forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;\\n    /**\\n     * @returns a boolean indicating whether an element with the specified value exists in the Set or not.\\n     */\\n    has(value: T): boolean;\\n    /**\\n     * @returns the number of (unique) elements in Set.\\n     */\\n    readonly size: number;\\n}\\n\\ninterface SetConstructor {\\n    new <T = any>(values?: readonly T[] | null): Set<T>;\\n    readonly prototype: Set<any>;\\n}\\ndeclare var Set: SetConstructor;\\n\\ninterface ReadonlySet<T> {\\n    forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;\\n    has(value: T): boolean;\\n    readonly size: number;\\n}\\n\\ninterface WeakSet<T extends object> {\\n    /**\\n     * Appends a new object to the end of the WeakSet.\\n     */\\n    add(value: T): this;\\n    /**\\n     * Removes the specified element from the WeakSet.\\n     * @returns Returns true if the element existed and has been removed, or false if the element does not exist.\\n     */\\n    delete(value: T): boolean;\\n    /**\\n     * @returns a boolean indicating whether an object exists in the WeakSet or not.\\n     */\\n    has(value: T): boolean;\\n}\\n\\ninterface WeakSetConstructor {\\n    new <T extends object = object>(values?: readonly T[] | null): WeakSet<T>;\\n    readonly prototype: WeakSet<object>;\\n}\\ndeclare var WeakSet: WeakSetConstructor;\\n';\nlibFileMap[\"lib.es2015.core.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ninterface Array<T> {\\n    /**\\n     * Returns the value of the first element in the array where predicate is true, and undefined\\n     * otherwise.\\n     * @param predicate find calls predicate once for each element of the array, in ascending\\n     * order, until it finds one where predicate returns true. If such an element is found, find\\n     * immediately returns that element value. Otherwise, find returns undefined.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    find<S extends T>(predicate: (value: T, index: number, obj: T[]) => value is S, thisArg?: any): S | undefined;\\n    find(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): T | undefined;\\n\\n    /**\\n     * Returns the index of the first element in the array where predicate is true, and -1\\n     * otherwise.\\n     * @param predicate find calls predicate once for each element of the array, in ascending\\n     * order, until it finds one where predicate returns true. If such an element is found,\\n     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findIndex(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): number;\\n\\n    /**\\n     * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\\n     * @param value value to fill array section with\\n     * @param start index to start filling the array at. If start is negative, it is treated as\\n     * length+start where length is the length of the array.\\n     * @param end index to stop filling the array at. If end is negative, it is treated as\\n     * length+end.\\n     */\\n    fill(value: T, start?: number, end?: number): this;\\n\\n    /**\\n     * Returns the this object after copying a section of the array identified by start and end\\n     * to the same array starting at position target\\n     * @param target If target is negative, it is treated as length+target where length is the\\n     * length of the array.\\n     * @param start If start is negative, it is treated as length+start. If end is negative, it\\n     * is treated as length+end.\\n     * @param end If not specified, length of the this object is used as its default value.\\n     */\\n    copyWithin(target: number, start: number, end?: number): this;\\n}\\n\\ninterface ArrayConstructor {\\n    /**\\n     * Creates an array from an array-like object.\\n     * @param arrayLike An array-like object to convert to an array.\\n     */\\n    from<T>(arrayLike: ArrayLike<T>): T[];\\n\\n    /**\\n     * Creates an array from an iterable object.\\n     * @param arrayLike An array-like object to convert to an array.\\n     * @param mapfn A mapping function to call on every element of the array.\\n     * @param thisArg Value of \\'this\\' used to invoke the mapfn.\\n     */\\n    from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];\\n\\n    /**\\n     * Returns a new array from a set of elements.\\n     * @param items A set of elements to include in the new array object.\\n     */\\n    of<T>(...items: T[]): T[];\\n}\\n\\ninterface DateConstructor {\\n    new (value: number | string | Date): Date;\\n}\\n\\ninterface Function {\\n    /**\\n     * Returns the name of the function. Function names are read-only and can not be changed.\\n     */\\n    readonly name: string;\\n}\\n\\ninterface Math {\\n    /**\\n     * Returns the number of leading zero bits in the 32-bit binary representation of a number.\\n     * @param x A numeric expression.\\n     */\\n    clz32(x: number): number;\\n\\n    /**\\n     * Returns the result of 32-bit multiplication of two numbers.\\n     * @param x First number\\n     * @param y Second number\\n     */\\n    imul(x: number, y: number): number;\\n\\n    /**\\n     * Returns the sign of the x, indicating whether x is positive, negative or zero.\\n     * @param x The numeric expression to test\\n     */\\n    sign(x: number): number;\\n\\n    /**\\n     * Returns the base 10 logarithm of a number.\\n     * @param x A numeric expression.\\n     */\\n    log10(x: number): number;\\n\\n    /**\\n     * Returns the base 2 logarithm of a number.\\n     * @param x A numeric expression.\\n     */\\n    log2(x: number): number;\\n\\n    /**\\n     * Returns the natural logarithm of 1 + x.\\n     * @param x A numeric expression.\\n     */\\n    log1p(x: number): number;\\n\\n    /**\\n     * Returns the result of (e^x - 1), which is an implementation-dependent approximation to\\n     * subtracting 1 from the exponential function of x (e raised to the power of x, where e\\n     * is the base of the natural logarithms).\\n     * @param x A numeric expression.\\n     */\\n    expm1(x: number): number;\\n\\n    /**\\n     * Returns the hyperbolic cosine of a number.\\n     * @param x A numeric expression that contains an angle measured in radians.\\n     */\\n    cosh(x: number): number;\\n\\n    /**\\n     * Returns the hyperbolic sine of a number.\\n     * @param x A numeric expression that contains an angle measured in radians.\\n     */\\n    sinh(x: number): number;\\n\\n    /**\\n     * Returns the hyperbolic tangent of a number.\\n     * @param x A numeric expression that contains an angle measured in radians.\\n     */\\n    tanh(x: number): number;\\n\\n    /**\\n     * Returns the inverse hyperbolic cosine of a number.\\n     * @param x A numeric expression that contains an angle measured in radians.\\n     */\\n    acosh(x: number): number;\\n\\n    /**\\n     * Returns the inverse hyperbolic sine of a number.\\n     * @param x A numeric expression that contains an angle measured in radians.\\n     */\\n    asinh(x: number): number;\\n\\n    /**\\n     * Returns the inverse hyperbolic tangent of a number.\\n     * @param x A numeric expression that contains an angle measured in radians.\\n     */\\n    atanh(x: number): number;\\n\\n    /**\\n     * Returns the square root of the sum of squares of its arguments.\\n     * @param values Values to compute the square root for.\\n     *     If no arguments are passed, the result is +0.\\n     *     If there is only one argument, the result is the absolute value.\\n     *     If any argument is +Infinity or -Infinity, the result is +Infinity.\\n     *     If any argument is NaN, the result is NaN.\\n     *     If all arguments are either +0 or \\u22120, the result is +0.\\n     */\\n    hypot(...values: number[]): number;\\n\\n    /**\\n     * Returns the integral part of the a numeric expression, x, removing any fractional digits.\\n     * If x is already an integer, the result is x.\\n     * @param x A numeric expression.\\n     */\\n    trunc(x: number): number;\\n\\n    /**\\n     * Returns the nearest single precision float representation of a number.\\n     * @param x A numeric expression.\\n     */\\n    fround(x: number): number;\\n\\n    /**\\n     * Returns an implementation-dependent approximation to the cube root of number.\\n     * @param x A numeric expression.\\n     */\\n    cbrt(x: number): number;\\n}\\n\\ninterface NumberConstructor {\\n    /**\\n     * The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1\\n     * that is representable as a Number value, which is approximately:\\n     * 2.2204460492503130808472633361816 x 10\\u200D\\u2212\\u200D16.\\n     */\\n    readonly EPSILON: number;\\n\\n    /**\\n     * Returns true if passed value is finite.\\n     * Unlike the global isFinite, Number.isFinite doesn\\'t forcibly convert the parameter to a\\n     * number. Only finite values of the type number, result in true.\\n     * @param number A numeric value.\\n     */\\n    isFinite(number: unknown): boolean;\\n\\n    /**\\n     * Returns true if the value passed is an integer, false otherwise.\\n     * @param number A numeric value.\\n     */\\n    isInteger(number: unknown): boolean;\\n\\n    /**\\n     * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a\\n     * number). Unlike the global isNaN(), Number.isNaN() doesn\\'t forcefully convert the parameter\\n     * to a number. Only values of the type number, that are also NaN, result in true.\\n     * @param number A numeric value.\\n     */\\n    isNaN(number: unknown): boolean;\\n\\n    /**\\n     * Returns true if the value passed is a safe integer.\\n     * @param number A numeric value.\\n     */\\n    isSafeInteger(number: unknown): boolean;\\n\\n    /**\\n     * The value of the largest integer n such that n and n + 1 are both exactly representable as\\n     * a Number value.\\n     * The value of Number.MAX_SAFE_INTEGER is 9007199254740991 2^53 \\u2212 1.\\n     */\\n    readonly MAX_SAFE_INTEGER: number;\\n\\n    /**\\n     * The value of the smallest integer n such that n and n \\u2212 1 are both exactly representable as\\n     * a Number value.\\n     * The value of Number.MIN_SAFE_INTEGER is \\u22129007199254740991 (\\u2212(2^53 \\u2212 1)).\\n     */\\n    readonly MIN_SAFE_INTEGER: number;\\n\\n    /**\\n     * Converts a string to a floating-point number.\\n     * @param string A string that contains a floating-point number.\\n     */\\n    parseFloat(string: string): number;\\n\\n    /**\\n     * Converts A string to an integer.\\n     * @param string A string to convert into a number.\\n     * @param radix A value between 2 and 36 that specifies the base of the number in `string`.\\n     * If this argument is not supplied, strings with a prefix of \\'0x\\' are considered hexadecimal.\\n     * All other strings are considered decimal.\\n     */\\n    parseInt(string: string, radix?: number): number;\\n}\\n\\ninterface ObjectConstructor {\\n    /**\\n     * Copy the values of all of the enumerable own properties from one or more source objects to a\\n     * target object. Returns the target object.\\n     * @param target The target object to copy to.\\n     * @param source The source object from which to copy properties.\\n     */\\n    assign<T extends {}, U>(target: T, source: U): T & U;\\n\\n    /**\\n     * Copy the values of all of the enumerable own properties from one or more source objects to a\\n     * target object. Returns the target object.\\n     * @param target The target object to copy to.\\n     * @param source1 The first source object from which to copy properties.\\n     * @param source2 The second source object from which to copy properties.\\n     */\\n    assign<T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;\\n\\n    /**\\n     * Copy the values of all of the enumerable own properties from one or more source objects to a\\n     * target object. Returns the target object.\\n     * @param target The target object to copy to.\\n     * @param source1 The first source object from which to copy properties.\\n     * @param source2 The second source object from which to copy properties.\\n     * @param source3 The third source object from which to copy properties.\\n     */\\n    assign<T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;\\n\\n    /**\\n     * Copy the values of all of the enumerable own properties from one or more source objects to a\\n     * target object. Returns the target object.\\n     * @param target The target object to copy to.\\n     * @param sources One or more source objects from which to copy properties\\n     */\\n    assign(target: object, ...sources: any[]): any;\\n\\n    /**\\n     * Returns an array of all symbol properties found directly on object o.\\n     * @param o Object to retrieve the symbols from.\\n     */\\n    getOwnPropertySymbols(o: any): symbol[];\\n\\n    /**\\n     * Returns the names of the enumerable string properties and methods of an object.\\n     * @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.\\n     */\\n    keys(o: {}): string[];\\n\\n    /**\\n     * Returns true if the values are the same value, false otherwise.\\n     * @param value1 The first value.\\n     * @param value2 The second value.\\n     */\\n    is(value1: any, value2: any): boolean;\\n\\n    /**\\n     * Sets the prototype of a specified object o to object proto or null. Returns the object o.\\n     * @param o The object to change its prototype.\\n     * @param proto The value of the new prototype or null.\\n     */\\n    setPrototypeOf(o: any, proto: object | null): any;\\n}\\n\\ninterface ReadonlyArray<T> {\\n    /**\\n     * Returns the value of the first element in the array where predicate is true, and undefined\\n     * otherwise.\\n     * @param predicate find calls predicate once for each element of the array, in ascending\\n     * order, until it finds one where predicate returns true. If such an element is found, find\\n     * immediately returns that element value. Otherwise, find returns undefined.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    find<S extends T>(predicate: (value: T, index: number, obj: readonly T[]) => value is S, thisArg?: any): S | undefined;\\n    find(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): T | undefined;\\n\\n    /**\\n     * Returns the index of the first element in the array where predicate is true, and -1\\n     * otherwise.\\n     * @param predicate find calls predicate once for each element of the array, in ascending\\n     * order, until it finds one where predicate returns true. If such an element is found,\\n     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findIndex(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): number;\\n}\\n\\ninterface RegExp {\\n    /**\\n     * Returns a string indicating the flags of the regular expression in question. This field is read-only.\\n     * The characters in this string are sequenced and concatenated in the following order:\\n     *\\n     *    - \"g\" for global\\n     *    - \"i\" for ignoreCase\\n     *    - \"m\" for multiline\\n     *    - \"u\" for unicode\\n     *    - \"y\" for sticky\\n     *\\n     * If no flags are set, the value is the empty string.\\n     */\\n    readonly flags: string;\\n\\n    /**\\n     * Returns a Boolean value indicating the state of the sticky flag (y) used with a regular\\n     * expression. Default is false. Read-only.\\n     */\\n    readonly sticky: boolean;\\n\\n    /**\\n     * Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular\\n     * expression. Default is false. Read-only.\\n     */\\n    readonly unicode: boolean;\\n}\\n\\ninterface RegExpConstructor {\\n    new (pattern: RegExp | string, flags?: string): RegExp;\\n    (pattern: RegExp | string, flags?: string): RegExp;\\n}\\n\\ninterface String {\\n    /**\\n     * Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point\\n     * value of the UTF-16 encoded code point starting at the string element at position pos in\\n     * the String resulting from converting this object to a String.\\n     * If there is no element at that position, the result is undefined.\\n     * If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.\\n     */\\n    codePointAt(pos: number): number | undefined;\\n\\n    /**\\n     * Returns true if searchString appears as a substring of the result of converting this\\n     * object to a String, at one or more positions that are\\n     * greater than or equal to position; otherwise, returns false.\\n     * @param searchString search string\\n     * @param position If position is undefined, 0 is assumed, so as to search all of the String.\\n     */\\n    includes(searchString: string, position?: number): boolean;\\n\\n    /**\\n     * Returns true if the sequence of elements of searchString converted to a String is the\\n     * same as the corresponding elements of this object (converted to a String) starting at\\n     * endPosition \\u2013 length(this). Otherwise returns false.\\n     */\\n    endsWith(searchString: string, endPosition?: number): boolean;\\n\\n    /**\\n     * Returns the String value result of normalizing the string into the normalization form\\n     * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.\\n     * @param form Applicable values: \"NFC\", \"NFD\", \"NFKC\", or \"NFKD\", If not specified default\\n     * is \"NFC\"\\n     */\\n    normalize(form: \"NFC\" | \"NFD\" | \"NFKC\" | \"NFKD\"): string;\\n\\n    /**\\n     * Returns the String value result of normalizing the string into the normalization form\\n     * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.\\n     * @param form Applicable values: \"NFC\", \"NFD\", \"NFKC\", or \"NFKD\", If not specified default\\n     * is \"NFC\"\\n     */\\n    normalize(form?: string): string;\\n\\n    /**\\n     * Returns a String value that is made from count copies appended together. If count is 0,\\n     * the empty string is returned.\\n     * @param count number of copies to append\\n     */\\n    repeat(count: number): string;\\n\\n    /**\\n     * Returns true if the sequence of elements of searchString converted to a String is the\\n     * same as the corresponding elements of this object (converted to a String) starting at\\n     * position. Otherwise returns false.\\n     */\\n    startsWith(searchString: string, position?: number): boolean;\\n\\n    /**\\n     * Returns an `<a>` HTML anchor element and sets the name attribute to the text value\\n     * @deprecated A legacy feature for browser compatibility\\n     * @param name\\n     */\\n    anchor(name: string): string;\\n\\n    /**\\n     * Returns a `<big>` HTML element\\n     * @deprecated A legacy feature for browser compatibility\\n     */\\n    big(): string;\\n\\n    /**\\n     * Returns a `<blink>` HTML element\\n     * @deprecated A legacy feature for browser compatibility\\n     */\\n    blink(): string;\\n\\n    /**\\n     * Returns a `<b>` HTML element\\n     * @deprecated A legacy feature for browser compatibility\\n     */\\n    bold(): string;\\n\\n    /**\\n     * Returns a `<tt>` HTML element\\n     * @deprecated A legacy feature for browser compatibility\\n     */\\n    fixed(): string;\\n\\n    /**\\n     * Returns a `<font>` HTML element and sets the color attribute value\\n     * @deprecated A legacy feature for browser compatibility\\n     */\\n    fontcolor(color: string): string;\\n\\n    /**\\n     * Returns a `<font>` HTML element and sets the size attribute value\\n     * @deprecated A legacy feature for browser compatibility\\n     */\\n    fontsize(size: number): string;\\n\\n    /**\\n     * Returns a `<font>` HTML element and sets the size attribute value\\n     * @deprecated A legacy feature for browser compatibility\\n     */\\n    fontsize(size: string): string;\\n\\n    /**\\n     * Returns an `<i>` HTML element\\n     * @deprecated A legacy feature for browser compatibility\\n     */\\n    italics(): string;\\n\\n    /**\\n     * Returns an `<a>` HTML element and sets the href attribute value\\n     * @deprecated A legacy feature for browser compatibility\\n     */\\n    link(url: string): string;\\n\\n    /**\\n     * Returns a `<small>` HTML element\\n     * @deprecated A legacy feature for browser compatibility\\n     */\\n    small(): string;\\n\\n    /**\\n     * Returns a `<strike>` HTML element\\n     * @deprecated A legacy feature for browser compatibility\\n     */\\n    strike(): string;\\n\\n    /**\\n     * Returns a `<sub>` HTML element\\n     * @deprecated A legacy feature for browser compatibility\\n     */\\n    sub(): string;\\n\\n    /**\\n     * Returns a `<sup>` HTML element\\n     * @deprecated A legacy feature for browser compatibility\\n     */\\n    sup(): string;\\n}\\n\\ninterface StringConstructor {\\n    /**\\n     * Return the String value whose elements are, in order, the elements in the List elements.\\n     * If length is 0, the empty string is returned.\\n     */\\n    fromCodePoint(...codePoints: number[]): string;\\n\\n    /**\\n     * String.raw is usually used as a tag function of a Tagged Template String. When called as\\n     * such, the first argument will be a well formed template call site object and the rest\\n     * parameter will contain the substitution values. It can also be called directly, for example,\\n     * to interleave strings and values from your own tag function, and in this case the only thing\\n     * it needs from the first argument is the raw property.\\n     * @param template A well-formed template string call site representation.\\n     * @param substitutions A set of substitution values.\\n     */\\n    raw(template: { raw: readonly string[] | ArrayLike<string>}, ...substitutions: any[]): string;\\n}\\n';\nlibFileMap[\"lib.es2015.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es5\" />\\n/// <reference lib=\"es2015.core\" />\\n/// <reference lib=\"es2015.collection\" />\\n/// <reference lib=\"es2015.iterable\" />\\n/// <reference lib=\"es2015.generator\" />\\n/// <reference lib=\"es2015.promise\" />\\n/// <reference lib=\"es2015.proxy\" />\\n/// <reference lib=\"es2015.reflect\" />\\n/// <reference lib=\"es2015.symbol\" />\\n/// <reference lib=\"es2015.symbol.wellknown\" />\\n';\nlibFileMap[\"lib.es2015.generator.d.ts\"] = `/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib=\"true\"/>\n\n/// <reference lib=\"es2015.iterable\" />\n\ninterface Generator<T = unknown, TReturn = any, TNext = unknown> extends Iterator<T, TReturn, TNext> {\n    // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.\n    next(...args: [] | [TNext]): IteratorResult<T, TReturn>;\n    return(value: TReturn): IteratorResult<T, TReturn>;\n    throw(e: any): IteratorResult<T, TReturn>;\n    [Symbol.iterator](): Generator<T, TReturn, TNext>;\n}\n\ninterface GeneratorFunction {\n    /**\n     * Creates a new Generator object.\n     * @param args A list of arguments the function accepts.\n     */\n    new (...args: any[]): Generator;\n    /**\n     * Creates a new Generator object.\n     * @param args A list of arguments the function accepts.\n     */\n    (...args: any[]): Generator;\n    /**\n     * The length of the arguments.\n     */\n    readonly length: number;\n    /**\n     * Returns the name of the function.\n     */\n    readonly name: string;\n    /**\n     * A reference to the prototype.\n     */\n    readonly prototype: Generator;\n}\n\ninterface GeneratorFunctionConstructor {\n    /**\n     * Creates a new Generator function.\n     * @param args A list of arguments the function accepts.\n     */\n    new (...args: string[]): GeneratorFunction;\n    /**\n     * Creates a new Generator function.\n     * @param args A list of arguments the function accepts.\n     */\n    (...args: string[]): GeneratorFunction;\n    /**\n     * The length of the arguments.\n     */\n    readonly length: number;\n    /**\n     * Returns the name of the function.\n     */\n    readonly name: string;\n    /**\n     * A reference to the prototype.\n     */\n    readonly prototype: GeneratorFunction;\n}\n`;\nlibFileMap[\"lib.es2015.iterable.d.ts\"] = `/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib=\"true\"/>\n\n/// <reference lib=\"es2015.symbol\" />\n\ninterface SymbolConstructor {\n    /**\n     * A method that returns the default iterator for an object. Called by the semantics of the\n     * for-of statement.\n     */\n    readonly iterator: unique symbol;\n}\n\ninterface IteratorYieldResult<TYield> {\n    done?: false;\n    value: TYield;\n}\n\ninterface IteratorReturnResult<TReturn> {\n    done: true;\n    value: TReturn;\n}\n\ntype IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;\n\ninterface Iterator<T, TReturn = any, TNext = undefined> {\n    // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.\n    next(...args: [] | [TNext]): IteratorResult<T, TReturn>;\n    return?(value?: TReturn): IteratorResult<T, TReturn>;\n    throw?(e?: any): IteratorResult<T, TReturn>;\n}\n\ninterface Iterable<T> {\n    [Symbol.iterator](): Iterator<T>;\n}\n\ninterface IterableIterator<T> extends Iterator<T> {\n    [Symbol.iterator](): IterableIterator<T>;\n}\n\ninterface Array<T> {\n    /** Iterator */\n    [Symbol.iterator](): IterableIterator<T>;\n\n    /**\n     * Returns an iterable of key, value pairs for every entry in the array\n     */\n    entries(): IterableIterator<[number, T]>;\n\n    /**\n     * Returns an iterable of keys in the array\n     */\n    keys(): IterableIterator<number>;\n\n    /**\n     * Returns an iterable of values in the array\n     */\n    values(): IterableIterator<T>;\n}\n\ninterface ArrayConstructor {\n    /**\n     * Creates an array from an iterable object.\n     * @param iterable An iterable object to convert to an array.\n     */\n    from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];\n\n    /**\n     * Creates an array from an iterable object.\n     * @param iterable An iterable object to convert to an array.\n     * @param mapfn A mapping function to call on every element of the array.\n     * @param thisArg Value of 'this' used to invoke the mapfn.\n     */\n    from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];\n}\n\ninterface ReadonlyArray<T> {\n    /** Iterator of values in the array. */\n    [Symbol.iterator](): IterableIterator<T>;\n\n    /**\n     * Returns an iterable of key, value pairs for every entry in the array\n     */\n    entries(): IterableIterator<[number, T]>;\n\n    /**\n     * Returns an iterable of keys in the array\n     */\n    keys(): IterableIterator<number>;\n\n    /**\n     * Returns an iterable of values in the array\n     */\n    values(): IterableIterator<T>;\n}\n\ninterface IArguments {\n    /** Iterator */\n    [Symbol.iterator](): IterableIterator<any>;\n}\n\ninterface Map<K, V> {\n    /** Returns an iterable of entries in the map. */\n    [Symbol.iterator](): IterableIterator<[K, V]>;\n\n    /**\n     * Returns an iterable of key, value pairs for every entry in the map.\n     */\n    entries(): IterableIterator<[K, V]>;\n\n    /**\n     * Returns an iterable of keys in the map\n     */\n    keys(): IterableIterator<K>;\n\n    /**\n     * Returns an iterable of values in the map\n     */\n    values(): IterableIterator<V>;\n}\n\ninterface ReadonlyMap<K, V> {\n    /** Returns an iterable of entries in the map. */\n    [Symbol.iterator](): IterableIterator<[K, V]>;\n\n    /**\n     * Returns an iterable of key, value pairs for every entry in the map.\n     */\n    entries(): IterableIterator<[K, V]>;\n\n    /**\n     * Returns an iterable of keys in the map\n     */\n    keys(): IterableIterator<K>;\n\n    /**\n     * Returns an iterable of values in the map\n     */\n    values(): IterableIterator<V>;\n}\n\ninterface MapConstructor {\n    new(): Map<any, any>;\n    new <K, V>(iterable?: Iterable<readonly [K, V]> | null): Map<K, V>;\n}\n\ninterface WeakMap<K extends object, V> { }\n\ninterface WeakMapConstructor {\n    new <K extends object, V>(iterable: Iterable<readonly [K, V]>): WeakMap<K, V>;\n}\n\ninterface Set<T> {\n    /** Iterates over values in the set. */\n    [Symbol.iterator](): IterableIterator<T>;\n    /**\n     * Returns an iterable of [v,v] pairs for every value \\`v\\` in the set.\n     */\n    entries(): IterableIterator<[T, T]>;\n    /**\n     * Despite its name, returns an iterable of the values in the set.\n     */\n    keys(): IterableIterator<T>;\n\n    /**\n     * Returns an iterable of values in the set.\n     */\n    values(): IterableIterator<T>;\n}\n\ninterface ReadonlySet<T> {\n    /** Iterates over values in the set. */\n    [Symbol.iterator](): IterableIterator<T>;\n\n    /**\n     * Returns an iterable of [v,v] pairs for every value \\`v\\` in the set.\n     */\n    entries(): IterableIterator<[T, T]>;\n\n    /**\n     * Despite its name, returns an iterable of the values in the set.\n     */\n    keys(): IterableIterator<T>;\n\n    /**\n     * Returns an iterable of values in the set.\n     */\n    values(): IterableIterator<T>;\n}\n\ninterface SetConstructor {\n    new <T>(iterable?: Iterable<T> | null): Set<T>;\n}\n\ninterface WeakSet<T extends object> { }\n\ninterface WeakSetConstructor {\n    new <T extends object = object>(iterable: Iterable<T>): WeakSet<T>;\n}\n\ninterface Promise<T> { }\n\ninterface PromiseConstructor {\n    /**\n     * Creates a Promise that is resolved with an array of results when all of the provided Promises\n     * resolve, or rejected when any Promise is rejected.\n     * @param values An iterable of Promises.\n     * @returns A new Promise.\n     */\n    all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;\n\n    /**\n     * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved\n     * or rejected.\n     * @param values An iterable of Promises.\n     * @returns A new Promise.\n     */\n    race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;\n}\n\ninterface String {\n    /** Iterator */\n    [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface Int8Array {\n    [Symbol.iterator](): IterableIterator<number>;\n    /**\n     * Returns an array of key, value pairs for every entry in the array\n     */\n    entries(): IterableIterator<[number, number]>;\n    /**\n     * Returns an list of keys in the array\n     */\n    keys(): IterableIterator<number>;\n    /**\n     * Returns an list of values in the array\n     */\n    values(): IterableIterator<number>;\n}\n\ninterface Int8ArrayConstructor {\n    new (elements: Iterable<number>): Int8Array;\n\n    /**\n     * Creates an array from an array-like or iterable object.\n     * @param arrayLike An array-like or iterable object to convert to an array.\n     * @param mapfn A mapping function to call on every element of the array.\n     * @param thisArg Value of 'this' used to invoke the mapfn.\n     */\n    from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;\n}\n\ninterface Uint8Array {\n    [Symbol.iterator](): IterableIterator<number>;\n    /**\n     * Returns an array of key, value pairs for every entry in the array\n     */\n    entries(): IterableIterator<[number, number]>;\n    /**\n     * Returns an list of keys in the array\n     */\n    keys(): IterableIterator<number>;\n    /**\n     * Returns an list of values in the array\n     */\n    values(): IterableIterator<number>;\n}\n\ninterface Uint8ArrayConstructor {\n    new (elements: Iterable<number>): Uint8Array;\n\n    /**\n     * Creates an array from an array-like or iterable object.\n     * @param arrayLike An array-like or iterable object to convert to an array.\n     * @param mapfn A mapping function to call on every element of the array.\n     * @param thisArg Value of 'this' used to invoke the mapfn.\n     */\n    from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;\n}\n\ninterface Uint8ClampedArray {\n    [Symbol.iterator](): IterableIterator<number>;\n    /**\n     * Returns an array of key, value pairs for every entry in the array\n     */\n    entries(): IterableIterator<[number, number]>;\n\n    /**\n     * Returns an list of keys in the array\n     */\n    keys(): IterableIterator<number>;\n\n    /**\n     * Returns an list of values in the array\n     */\n    values(): IterableIterator<number>;\n}\n\ninterface Uint8ClampedArrayConstructor {\n    new (elements: Iterable<number>): Uint8ClampedArray;\n\n\n    /**\n     * Creates an array from an array-like or iterable object.\n     * @param arrayLike An array-like or iterable object to convert to an array.\n     * @param mapfn A mapping function to call on every element of the array.\n     * @param thisArg Value of 'this' used to invoke the mapfn.\n     */\n    from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;\n}\n\ninterface Int16Array {\n    [Symbol.iterator](): IterableIterator<number>;\n    /**\n     * Returns an array of key, value pairs for every entry in the array\n     */\n    entries(): IterableIterator<[number, number]>;\n\n    /**\n     * Returns an list of keys in the array\n     */\n    keys(): IterableIterator<number>;\n\n    /**\n     * Returns an list of values in the array\n     */\n    values(): IterableIterator<number>;\n}\n\ninterface Int16ArrayConstructor {\n    new (elements: Iterable<number>): Int16Array;\n\n    /**\n     * Creates an array from an array-like or iterable object.\n     * @param arrayLike An array-like or iterable object to convert to an array.\n     * @param mapfn A mapping function to call on every element of the array.\n     * @param thisArg Value of 'this' used to invoke the mapfn.\n     */\n    from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;\n}\n\ninterface Uint16Array {\n    [Symbol.iterator](): IterableIterator<number>;\n    /**\n     * Returns an array of key, value pairs for every entry in the array\n     */\n    entries(): IterableIterator<[number, number]>;\n    /**\n     * Returns an list of keys in the array\n     */\n    keys(): IterableIterator<number>;\n    /**\n     * Returns an list of values in the array\n     */\n    values(): IterableIterator<number>;\n}\n\ninterface Uint16ArrayConstructor {\n    new (elements: Iterable<number>): Uint16Array;\n\n    /**\n     * Creates an array from an array-like or iterable object.\n     * @param arrayLike An array-like or iterable object to convert to an array.\n     * @param mapfn A mapping function to call on every element of the array.\n     * @param thisArg Value of 'this' used to invoke the mapfn.\n     */\n    from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;\n}\n\ninterface Int32Array {\n    [Symbol.iterator](): IterableIterator<number>;\n    /**\n     * Returns an array of key, value pairs for every entry in the array\n     */\n    entries(): IterableIterator<[number, number]>;\n    /**\n     * Returns an list of keys in the array\n     */\n    keys(): IterableIterator<number>;\n    /**\n     * Returns an list of values in the array\n     */\n    values(): IterableIterator<number>;\n}\n\ninterface Int32ArrayConstructor {\n    new (elements: Iterable<number>): Int32Array;\n\n    /**\n     * Creates an array from an array-like or iterable object.\n     * @param arrayLike An array-like or iterable object to convert to an array.\n     * @param mapfn A mapping function to call on every element of the array.\n     * @param thisArg Value of 'this' used to invoke the mapfn.\n     */\n    from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;\n}\n\ninterface Uint32Array {\n    [Symbol.iterator](): IterableIterator<number>;\n    /**\n     * Returns an array of key, value pairs for every entry in the array\n     */\n    entries(): IterableIterator<[number, number]>;\n    /**\n     * Returns an list of keys in the array\n     */\n    keys(): IterableIterator<number>;\n    /**\n     * Returns an list of values in the array\n     */\n    values(): IterableIterator<number>;\n}\n\ninterface Uint32ArrayConstructor {\n    new (elements: Iterable<number>): Uint32Array;\n\n    /**\n     * Creates an array from an array-like or iterable object.\n     * @param arrayLike An array-like or iterable object to convert to an array.\n     * @param mapfn A mapping function to call on every element of the array.\n     * @param thisArg Value of 'this' used to invoke the mapfn.\n     */\n    from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;\n}\n\ninterface Float32Array {\n    [Symbol.iterator](): IterableIterator<number>;\n    /**\n     * Returns an array of key, value pairs for every entry in the array\n     */\n    entries(): IterableIterator<[number, number]>;\n    /**\n     * Returns an list of keys in the array\n     */\n    keys(): IterableIterator<number>;\n    /**\n     * Returns an list of values in the array\n     */\n    values(): IterableIterator<number>;\n}\n\ninterface Float32ArrayConstructor {\n    new (elements: Iterable<number>): Float32Array;\n\n    /**\n     * Creates an array from an array-like or iterable object.\n     * @param arrayLike An array-like or iterable object to convert to an array.\n     * @param mapfn A mapping function to call on every element of the array.\n     * @param thisArg Value of 'this' used to invoke the mapfn.\n     */\n    from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;\n}\n\ninterface Float64Array {\n    [Symbol.iterator](): IterableIterator<number>;\n    /**\n     * Returns an array of key, value pairs for every entry in the array\n     */\n    entries(): IterableIterator<[number, number]>;\n    /**\n     * Returns an list of keys in the array\n     */\n    keys(): IterableIterator<number>;\n    /**\n     * Returns an list of values in the array\n     */\n    values(): IterableIterator<number>;\n}\n\ninterface Float64ArrayConstructor {\n    new (elements: Iterable<number>): Float64Array;\n\n    /**\n     * Creates an array from an array-like or iterable object.\n     * @param arrayLike An array-like or iterable object to convert to an array.\n     * @param mapfn A mapping function to call on every element of the array.\n     * @param thisArg Value of 'this' used to invoke the mapfn.\n     */\n    from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;\n}\n`;\nlibFileMap[\"lib.es2015.promise.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ninterface PromiseConstructor {\\n    /**\\n     * A reference to the prototype.\\n     */\\n    readonly prototype: Promise<any>;\\n\\n    /**\\n     * Creates a new Promise.\\n     * @param executor A callback used to initialize the promise. This callback is passed two arguments:\\n     * a resolve callback used to resolve the promise with a value or the result of another promise,\\n     * and a reject callback used to reject the promise with a provided reason or error.\\n     */\\n    new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;\\n\\n    /**\\n     * Creates a Promise that is resolved with an array of results when all of the provided Promises\\n     * resolve, or rejected when any Promise is rejected.\\n     * @param values An array of Promises.\\n     * @returns A new Promise.\\n     */\\n    all<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]> }>;\\n\\n    // see: lib.es2015.iterable.d.ts\\n    // all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;\\n\\n    /**\\n     * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved\\n     * or rejected.\\n     * @param values An array of Promises.\\n     * @returns A new Promise.\\n     */\\n    race<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;\\n\\n    // see: lib.es2015.iterable.d.ts\\n    // race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;\\n\\n    /**\\n     * Creates a new rejected promise for the provided reason.\\n     * @param reason The reason the promise was rejected.\\n     * @returns A new rejected Promise.\\n     */\\n    reject<T = never>(reason?: any): Promise<T>;\\n\\n    /**\\n     * Creates a new resolved promise.\\n     * @returns A resolved promise.\\n     */\\n    resolve(): Promise<void>;\\n    /**\\n     * Creates a new resolved promise for the provided value.\\n     * @param value A promise.\\n     * @returns A promise whose internal state matches the provided promise.\\n     */\\n    resolve<T>(value: T): Promise<Awaited<T>>;\\n    /**\\n     * Creates a new resolved promise for the provided value.\\n     * @param value A promise.\\n     * @returns A promise whose internal state matches the provided promise.\\n     */\\n    resolve<T>(value: T | PromiseLike<T>): Promise<Awaited<T>>;\\n}\\n\\ndeclare var Promise: PromiseConstructor;\\n';\nlibFileMap[\"lib.es2015.proxy.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ninterface ProxyHandler<T extends object> {\\n    /**\\n     * A trap method for a function call.\\n     * @param target The original callable object which is being proxied.\\n     */\\n    apply?(target: T, thisArg: any, argArray: any[]): any;\\n\\n    /**\\n     * A trap for the `new` operator.\\n     * @param target The original object which is being proxied.\\n     * @param newTarget The constructor that was originally called.\\n     */\\n    construct?(target: T, argArray: any[], newTarget: Function): object;\\n\\n    /**\\n     * A trap for `Object.defineProperty()`.\\n     * @param target The original object which is being proxied.\\n     * @returns A `Boolean` indicating whether or not the property has been defined.\\n     */\\n    defineProperty?(target: T, property: string | symbol, attributes: PropertyDescriptor): boolean;\\n\\n    /**\\n     * A trap for the `delete` operator.\\n     * @param target The original object which is being proxied.\\n     * @param p The name or `Symbol` of the property to delete.\\n     * @returns A `Boolean` indicating whether or not the property was deleted.\\n     */\\n    deleteProperty?(target: T, p: string | symbol): boolean;\\n\\n    /**\\n     * A trap for getting a property value.\\n     * @param target The original object which is being proxied.\\n     * @param p The name or `Symbol` of the property to get.\\n     * @param receiver The proxy or an object that inherits from the proxy.\\n     */\\n    get?(target: T, p: string | symbol, receiver: any): any;\\n\\n    /**\\n     * A trap for `Object.getOwnPropertyDescriptor()`.\\n     * @param target The original object which is being proxied.\\n     * @param p The name of the property whose description should be retrieved.\\n     */\\n    getOwnPropertyDescriptor?(target: T, p: string | symbol): PropertyDescriptor | undefined;\\n\\n    /**\\n     * A trap for the `[[GetPrototypeOf]]` internal method.\\n     * @param target The original object which is being proxied.\\n     */\\n    getPrototypeOf?(target: T): object | null;\\n\\n    /**\\n     * A trap for the `in` operator.\\n     * @param target The original object which is being proxied.\\n     * @param p The name or `Symbol` of the property to check for existence.\\n     */\\n    has?(target: T, p: string | symbol): boolean;\\n\\n    /**\\n     * A trap for `Object.isExtensible()`.\\n     * @param target The original object which is being proxied.\\n     */\\n    isExtensible?(target: T): boolean;\\n\\n    /**\\n     * A trap for `Reflect.ownKeys()`.\\n     * @param target The original object which is being proxied.\\n     */\\n    ownKeys?(target: T): ArrayLike<string | symbol>;\\n\\n    /**\\n     * A trap for `Object.preventExtensions()`.\\n     * @param target The original object which is being proxied.\\n     */\\n    preventExtensions?(target: T): boolean;\\n\\n    /**\\n     * A trap for setting a property value.\\n     * @param target The original object which is being proxied.\\n     * @param p The name or `Symbol` of the property to set.\\n     * @param receiver The object to which the assignment was originally directed.\\n     * @returns A `Boolean` indicating whether or not the property was set.\\n     */\\n    set?(target: T, p: string | symbol, newValue: any, receiver: any): boolean;\\n\\n    /**\\n     * A trap for `Object.setPrototypeOf()`.\\n     * @param target The original object which is being proxied.\\n     * @param newPrototype The object\\'s new prototype or `null`.\\n     */\\n    setPrototypeOf?(target: T, v: object | null): boolean;\\n}\\n\\ninterface ProxyConstructor {\\n    /**\\n     * Creates a revocable Proxy object.\\n     * @param target A target object to wrap with Proxy.\\n     * @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it.\\n     */\\n    revocable<T extends object>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () => void; };\\n\\n    /**\\n     * Creates a Proxy object. The Proxy object allows you to create an object that can be used in place of the\\n     * original object, but which may redefine fundamental Object operations like getting, setting, and defining\\n     * properties. Proxy objects are commonly used to log property accesses, validate, format, or sanitize inputs.\\n     * @param target A target object to wrap with Proxy.\\n     * @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it.\\n     */\\n    new <T extends object>(target: T, handler: ProxyHandler<T>): T;\\n}\\ndeclare var Proxy: ProxyConstructor;\\n';\nlibFileMap[\"lib.es2015.reflect.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ndeclare namespace Reflect {\\n    /**\\n     * Calls the function with the specified object as the this value\\n     * and the elements of specified array as the arguments.\\n     * @param target The function to call.\\n     * @param thisArgument The object to be used as the this object.\\n     * @param argumentsList An array of argument values to be passed to the function.\\n     */\\n    function apply<T, A extends readonly any[], R>(\\n        target: (this: T, ...args: A) => R,\\n        thisArgument: T,\\n        argumentsList: Readonly<A>,\\n    ): R;\\n    function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;\\n\\n    /**\\n     * Constructs the target with the elements of specified array as the arguments\\n     * and the specified constructor as the `new.target` value.\\n     * @param target The constructor to invoke.\\n     * @param argumentsList An array of argument values to be passed to the constructor.\\n     * @param newTarget The constructor to be used as the `new.target` object.\\n     */\\n    function construct<A extends readonly any[], R>(\\n        target: new (...args: A) => R,\\n        argumentsList: Readonly<A>,\\n        newTarget?: new (...args: any) => any,\\n    ): R;\\n    function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: Function): any;\\n\\n    /**\\n     * Adds a property to an object, or modifies attributes of an existing property.\\n     * @param target Object on which to add or modify the property. This can be a native JavaScript object\\n     *        (that is, a user-defined object or a built in object) or a DOM object.\\n     * @param propertyKey The property name.\\n     * @param attributes Descriptor for the property. It can be for a data property or an accessor property.\\n     */\\n    function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): boolean;\\n\\n    /**\\n     * Removes a property from an object, equivalent to `delete target[propertyKey]`,\\n     * except it won\\'t throw if `target[propertyKey]` is non-configurable.\\n     * @param target Object from which to remove the own property.\\n     * @param propertyKey The property name.\\n     */\\n    function deleteProperty(target: object, propertyKey: PropertyKey): boolean;\\n\\n    /**\\n     * Gets the property of target, equivalent to `target[propertyKey]` when `receiver === target`.\\n     * @param target Object that contains the property on itself or in its prototype chain.\\n     * @param propertyKey The property name.\\n     * @param receiver The reference to use as the `this` value in the getter function,\\n     *        if `target[propertyKey]` is an accessor property.\\n     */\\n    function get<T extends object, P extends PropertyKey>(\\n        target: T,\\n        propertyKey: P,\\n        receiver?: unknown,\\n    ): P extends keyof T ? T[P] : any;\\n\\n    /**\\n     * Gets the own property descriptor of the specified object.\\n     * An own property descriptor is one that is defined directly on the object and is not inherited from the object\\'s prototype.\\n     * @param target Object that contains the property.\\n     * @param propertyKey The property name.\\n     */\\n    function getOwnPropertyDescriptor<T extends object, P extends PropertyKey>(\\n        target: T,\\n        propertyKey: P,\\n    ): TypedPropertyDescriptor<P extends keyof T ? T[P] : any> | undefined;\\n\\n    /**\\n     * Returns the prototype of an object.\\n     * @param target The object that references the prototype.\\n     */\\n    function getPrototypeOf(target: object): object | null;\\n\\n    /**\\n     * Equivalent to `propertyKey in target`.\\n     * @param target Object that contains the property on itself or in its prototype chain.\\n     * @param propertyKey Name of the property.\\n     */\\n    function has(target: object, propertyKey: PropertyKey): boolean;\\n\\n    /**\\n     * Returns a value that indicates whether new properties can be added to an object.\\n     * @param target Object to test.\\n     */\\n    function isExtensible(target: object): boolean;\\n\\n    /**\\n     * Returns the string and symbol keys of the own properties of an object. The own properties of an object\\n     * are those that are defined directly on that object, and are not inherited from the object\\'s prototype.\\n     * @param target Object that contains the own properties.\\n     */\\n    function ownKeys(target: object): (string | symbol)[];\\n\\n    /**\\n     * Prevents the addition of new properties to an object.\\n     * @param target Object to make non-extensible.\\n     * @return Whether the object has been made non-extensible.\\n     */\\n    function preventExtensions(target: object): boolean;\\n\\n    /**\\n     * Sets the property of target, equivalent to `target[propertyKey] = value` when `receiver === target`.\\n     * @param target Object that contains the property on itself or in its prototype chain.\\n     * @param propertyKey Name of the property.\\n     * @param receiver The reference to use as the `this` value in the setter function,\\n     *        if `target[propertyKey]` is an accessor property.\\n     */\\n    function set<T extends object, P extends PropertyKey>(\\n        target: T,\\n        propertyKey: P,\\n        value: P extends keyof T ? T[P] : any,\\n        receiver?: any,\\n    ): boolean;\\n    function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean;\\n\\n    /**\\n     * Sets the prototype of a specified object o to object proto or null.\\n     * @param target The object to change its prototype.\\n     * @param proto The value of the new prototype or null.\\n     * @return Whether setting the prototype was successful.\\n     */\\n    function setPrototypeOf(target: object, proto: object | null): boolean;\\n}\\n';\nlibFileMap[\"lib.es2015.symbol.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ninterface SymbolConstructor {\\n    /**\\n     * A reference to the prototype.\\n     */\\n    readonly prototype: Symbol;\\n\\n    /**\\n     * Returns a new unique Symbol value.\\n     * @param  description Description of the new Symbol object.\\n     */\\n    (description?: string | number): symbol;\\n\\n    /**\\n     * Returns a Symbol object from the global symbol registry matching the given key if found.\\n     * Otherwise, returns a new symbol with this key.\\n     * @param key key to search for.\\n     */\\n    for(key: string): symbol;\\n\\n    /**\\n     * Returns a key from the global symbol registry matching the given Symbol if found.\\n     * Otherwise, returns a undefined.\\n     * @param sym Symbol to find the key for.\\n     */\\n    keyFor(sym: symbol): string | undefined;\\n}\\n\\ndeclare var Symbol: SymbolConstructor;';\nlibFileMap[\"lib.es2015.symbol.wellknown.d.ts\"] = `/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib=\"true\"/>\n\n/// <reference lib=\"es2015.symbol\" />\n\ninterface SymbolConstructor {\n    /**\n     * A method that determines if a constructor object recognizes an object as one of the\n     * constructor\\u2019s instances. Called by the semantics of the instanceof operator.\n     */\n    readonly hasInstance: unique symbol;\n\n    /**\n     * A Boolean value that if true indicates that an object should flatten to its array elements\n     * by Array.prototype.concat.\n     */\n    readonly isConcatSpreadable: unique symbol;\n\n    /**\n     * A regular expression method that matches the regular expression against a string. Called\n     * by the String.prototype.match method.\n     */\n    readonly match: unique symbol;\n\n    /**\n     * A regular expression method that replaces matched substrings of a string. Called by the\n     * String.prototype.replace method.\n     */\n    readonly replace: unique symbol;\n\n    /**\n     * A regular expression method that returns the index within a string that matches the\n     * regular expression. Called by the String.prototype.search method.\n     */\n    readonly search: unique symbol;\n\n    /**\n     * A function valued property that is the constructor function that is used to create\n     * derived objects.\n     */\n    readonly species: unique symbol;\n\n    /**\n     * A regular expression method that splits a string at the indices that match the regular\n     * expression. Called by the String.prototype.split method.\n     */\n    readonly split: unique symbol;\n\n    /**\n     * A method that converts an object to a corresponding primitive value.\n     * Called by the ToPrimitive abstract operation.\n     */\n    readonly toPrimitive: unique symbol;\n\n    /**\n     * A String value that is used in the creation of the default string description of an object.\n     * Called by the built-in method Object.prototype.toString.\n     */\n    readonly toStringTag: unique symbol;\n\n    /**\n     * An Object whose truthy properties are properties that are excluded from the 'with'\n     * environment bindings of the associated objects.\n     */\n    readonly unscopables: unique symbol;\n}\n\ninterface Symbol {\n    /**\n     * Converts a Symbol object to a symbol.\n     */\n    [Symbol.toPrimitive](hint: string): symbol;\n\n    readonly [Symbol.toStringTag]: string;\n}\n\ninterface Array<T> {\n    /**\n     * Is an object whose properties have the value 'true'\n     * when they will be absent when used in a 'with' statement.\n     */\n    readonly [Symbol.unscopables]: {\n        [K in keyof any[]]?: boolean;\n    };\n}\n\ninterface ReadonlyArray<T> {\n    /**\n     * Is an object whose properties have the value 'true'\n     * when they will be absent when used in a 'with' statement.\n     */\n    readonly [Symbol.unscopables]: {\n        [K in keyof readonly any[]]?: boolean;\n    };\n}\n\ninterface Date {\n    /**\n     * Converts a Date object to a string.\n     */\n    [Symbol.toPrimitive](hint: \"default\"): string;\n    /**\n     * Converts a Date object to a string.\n     */\n    [Symbol.toPrimitive](hint: \"string\"): string;\n    /**\n     * Converts a Date object to a number.\n     */\n    [Symbol.toPrimitive](hint: \"number\"): number;\n    /**\n     * Converts a Date object to a string or number.\n     *\n     * @param hint The strings \"number\", \"string\", or \"default\" to specify what primitive to return.\n     *\n     * @throws {TypeError} If 'hint' was given something other than \"number\", \"string\", or \"default\".\n     * @returns A number if 'hint' was \"number\", a string if 'hint' was \"string\" or \"default\".\n     */\n    [Symbol.toPrimitive](hint: string): string | number;\n}\n\ninterface Map<K, V> {\n    readonly [Symbol.toStringTag]: string;\n}\n\ninterface WeakMap<K extends object, V> {\n    readonly [Symbol.toStringTag]: string;\n}\n\ninterface Set<T> {\n    readonly [Symbol.toStringTag]: string;\n}\n\ninterface WeakSet<T extends object> {\n    readonly [Symbol.toStringTag]: string;\n}\n\ninterface JSON {\n    readonly [Symbol.toStringTag]: string;\n}\n\ninterface Function {\n    /**\n     * Determines whether the given value inherits from this function if this function was used\n     * as a constructor function.\n     *\n     * A constructor function can control which objects are recognized as its instances by\n     * 'instanceof' by overriding this method.\n     */\n    [Symbol.hasInstance](value: any): boolean;\n}\n\ninterface GeneratorFunction {\n    readonly [Symbol.toStringTag]: string;\n}\n\ninterface Math {\n    readonly [Symbol.toStringTag]: string;\n}\n\ninterface Promise<T> {\n    readonly [Symbol.toStringTag]: string;\n}\n\ninterface PromiseConstructor {\n    readonly [Symbol.species]: PromiseConstructor;\n}\n\ninterface RegExp {\n    /**\n     * Matches a string with this regular expression, and returns an array containing the results of\n     * that search.\n     * @param string A string to search within.\n     */\n    [Symbol.match](string: string): RegExpMatchArray | null;\n\n    /**\n     * Replaces text in a string, using this regular expression.\n     * @param string A String object or string literal whose contents matching against\n     *               this regular expression will be replaced\n     * @param replaceValue A String object or string literal containing the text to replace for every\n     *                     successful match of this regular expression.\n     */\n    [Symbol.replace](string: string, replaceValue: string): string;\n\n    /**\n     * Replaces text in a string, using this regular expression.\n     * @param string A String object or string literal whose contents matching against\n     *               this regular expression will be replaced\n     * @param replacer A function that returns the replacement text.\n     */\n    [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;\n\n    /**\n     * Finds the position beginning first substring match in a regular expression search\n     * using this regular expression.\n     *\n     * @param string The string to search within.\n     */\n    [Symbol.search](string: string): number;\n\n    /**\n     * Returns an array of substrings that were delimited by strings in the original input that\n     * match against this regular expression.\n     *\n     * If the regular expression contains capturing parentheses, then each time this\n     * regular expression matches, the results (including any undefined results) of the\n     * capturing parentheses are spliced.\n     *\n     * @param string string value to split\n     * @param limit if not undefined, the output array is truncated so that it contains no more\n     * than 'limit' elements.\n     */\n    [Symbol.split](string: string, limit?: number): string[];\n}\n\ninterface RegExpConstructor {\n    readonly [Symbol.species]: RegExpConstructor;\n}\n\ninterface String {\n    /**\n     * Matches a string or an object that supports being matched against, and returns an array\n     * containing the results of that search, or null if no matches are found.\n     * @param matcher An object that supports being matched against.\n     */\n    match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;\n\n    /**\n     * Passes a string and {@linkcode replaceValue} to the \\`[Symbol.replace]\\` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm.\n     * @param searchValue An object that supports searching for and replacing matches within a string.\n     * @param replaceValue The replacement text.\n     */\n    replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;\n\n    /**\n     * Replaces text in a string, using an object that supports replacement within a string.\n     * @param searchValue A object can search for and replace matches within a string.\n     * @param replacer A function that returns the replacement text.\n     */\n    replace(searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string;\n\n    /**\n     * Finds the first substring match in a regular expression search.\n     * @param searcher An object which supports searching within a string.\n     */\n    search(searcher: { [Symbol.search](string: string): number; }): number;\n\n    /**\n     * Split a string into substrings using the specified separator and return them as an array.\n     * @param splitter An object that can split a string.\n     * @param limit A value used to limit the number of elements returned in the array.\n     */\n    split(splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[];\n}\n\ninterface ArrayBuffer {\n    readonly [Symbol.toStringTag]: string;\n}\n\ninterface DataView {\n    readonly [Symbol.toStringTag]: string;\n}\n\ninterface Int8Array {\n    readonly [Symbol.toStringTag]: \"Int8Array\";\n}\n\ninterface Uint8Array {\n    readonly [Symbol.toStringTag]: \"Uint8Array\";\n}\n\ninterface Uint8ClampedArray {\n    readonly [Symbol.toStringTag]: \"Uint8ClampedArray\";\n}\n\ninterface Int16Array {\n    readonly [Symbol.toStringTag]: \"Int16Array\";\n}\n\ninterface Uint16Array {\n    readonly [Symbol.toStringTag]: \"Uint16Array\";\n}\n\ninterface Int32Array {\n    readonly [Symbol.toStringTag]: \"Int32Array\";\n}\n\ninterface Uint32Array {\n    readonly [Symbol.toStringTag]: \"Uint32Array\";\n}\n\ninterface Float32Array {\n    readonly [Symbol.toStringTag]: \"Float32Array\";\n}\n\ninterface Float64Array {\n    readonly [Symbol.toStringTag]: \"Float64Array\";\n}\n\ninterface ArrayConstructor {\n    readonly [Symbol.species]: ArrayConstructor;\n}\ninterface MapConstructor {\n    readonly [Symbol.species]: MapConstructor;\n}\ninterface SetConstructor {\n    readonly [Symbol.species]: SetConstructor;\n}\ninterface ArrayBufferConstructor {\n    readonly [Symbol.species]: ArrayBufferConstructor;\n}\n`;\nlibFileMap[\"lib.es2016.array.include.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ninterface Array<T> {\\n    /**\\n     * Determines whether an array includes a certain element, returning true or false as appropriate.\\n     * @param searchElement The element to search for.\\n     * @param fromIndex The position in this array at which to begin searching for searchElement.\\n     */\\n    includes(searchElement: T, fromIndex?: number): boolean;\\n}\\n\\ninterface ReadonlyArray<T> {\\n    /**\\n     * Determines whether an array includes a certain element, returning true or false as appropriate.\\n     * @param searchElement The element to search for.\\n     * @param fromIndex The position in this array at which to begin searching for searchElement.\\n     */\\n    includes(searchElement: T, fromIndex?: number): boolean;\\n}\\n\\ninterface Int8Array {\\n    /**\\n     * Determines whether an array includes a certain element, returning true or false as appropriate.\\n     * @param searchElement The element to search for.\\n     * @param fromIndex The position in this array at which to begin searching for searchElement.\\n     */\\n    includes(searchElement: number, fromIndex?: number): boolean;\\n}\\n\\ninterface Uint8Array {\\n    /**\\n     * Determines whether an array includes a certain element, returning true or false as appropriate.\\n     * @param searchElement The element to search for.\\n     * @param fromIndex The position in this array at which to begin searching for searchElement.\\n     */\\n    includes(searchElement: number, fromIndex?: number): boolean;\\n}\\n\\ninterface Uint8ClampedArray {\\n    /**\\n     * Determines whether an array includes a certain element, returning true or false as appropriate.\\n     * @param searchElement The element to search for.\\n     * @param fromIndex The position in this array at which to begin searching for searchElement.\\n     */\\n    includes(searchElement: number, fromIndex?: number): boolean;\\n}\\n\\ninterface Int16Array {\\n    /**\\n     * Determines whether an array includes a certain element, returning true or false as appropriate.\\n     * @param searchElement The element to search for.\\n     * @param fromIndex The position in this array at which to begin searching for searchElement.\\n     */\\n    includes(searchElement: number, fromIndex?: number): boolean;\\n}\\n\\ninterface Uint16Array {\\n    /**\\n     * Determines whether an array includes a certain element, returning true or false as appropriate.\\n     * @param searchElement The element to search for.\\n     * @param fromIndex The position in this array at which to begin searching for searchElement.\\n     */\\n    includes(searchElement: number, fromIndex?: number): boolean;\\n}\\n\\ninterface Int32Array {\\n    /**\\n     * Determines whether an array includes a certain element, returning true or false as appropriate.\\n     * @param searchElement The element to search for.\\n     * @param fromIndex The position in this array at which to begin searching for searchElement.\\n     */\\n    includes(searchElement: number, fromIndex?: number): boolean;\\n}\\n\\ninterface Uint32Array {\\n    /**\\n     * Determines whether an array includes a certain element, returning true or false as appropriate.\\n     * @param searchElement The element to search for.\\n     * @param fromIndex The position in this array at which to begin searching for searchElement.\\n     */\\n    includes(searchElement: number, fromIndex?: number): boolean;\\n}\\n\\ninterface Float32Array {\\n    /**\\n     * Determines whether an array includes a certain element, returning true or false as appropriate.\\n     * @param searchElement The element to search for.\\n     * @param fromIndex The position in this array at which to begin searching for searchElement.\\n     */\\n    includes(searchElement: number, fromIndex?: number): boolean;\\n}\\n\\ninterface Float64Array {\\n    /**\\n     * Determines whether an array includes a certain element, returning true or false as appropriate.\\n     * @param searchElement The element to search for.\\n     * @param fromIndex The position in this array at which to begin searching for searchElement.\\n     */\\n    includes(searchElement: number, fromIndex?: number): boolean;\\n}';\nlibFileMap[\"lib.es2016.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es2015\" />\\n/// <reference lib=\"es2016.array.include\" />';\nlibFileMap[\"lib.es2016.full.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es2016\" />\\n/// <reference lib=\"dom\" />\\n/// <reference lib=\"webworker.importscripts\" />\\n/// <reference lib=\"scripthost\" />\\n/// <reference lib=\"dom.iterable\" />';\nlibFileMap[\"lib.es2017.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es2016\" />\\n/// <reference lib=\"es2017.object\" />\\n/// <reference lib=\"es2017.sharedmemory\" />\\n/// <reference lib=\"es2017.string\" />\\n/// <reference lib=\"es2017.intl\" />\\n/// <reference lib=\"es2017.typedarrays\" />\\n';\nlibFileMap[\"lib.es2017.full.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es2017\" />\\n/// <reference lib=\"dom\" />\\n/// <reference lib=\"webworker.importscripts\" />\\n/// <reference lib=\"scripthost\" />\\n/// <reference lib=\"dom.iterable\" />';\nlibFileMap[\"lib.es2017.intl.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ndeclare namespace Intl {\\n\\n    interface DateTimeFormatPartTypesRegistry {\\n        day: any\\n        dayPeriod: any\\n        era: any\\n        hour: any\\n        literal: any\\n        minute: any\\n        month: any\\n        second: any\\n        timeZoneName: any\\n        weekday: any\\n        year: any\\n    }\\n\\n    type DateTimeFormatPartTypes = keyof DateTimeFormatPartTypesRegistry;\\n\\n    interface DateTimeFormatPart {\\n        type: DateTimeFormatPartTypes;\\n        value: string;\\n    }\\n\\n    interface DateTimeFormat {\\n        formatToParts(date?: Date | number): DateTimeFormatPart[];\\n    }\\n}\\n';\nlibFileMap[\"lib.es2017.object.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ninterface ObjectConstructor {\\n    /**\\n     * Returns an array of values of the enumerable properties of an object\\n     * @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.\\n     */\\n    values<T>(o: { [s: string]: T } | ArrayLike<T>): T[];\\n\\n    /**\\n     * Returns an array of values of the enumerable properties of an object\\n     * @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.\\n     */\\n    values(o: {}): any[];\\n\\n    /**\\n     * Returns an array of key/values of the enumerable properties of an object\\n     * @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.\\n     */\\n    entries<T>(o: { [s: string]: T } | ArrayLike<T>): [string, T][];\\n\\n    /**\\n     * Returns an array of key/values of the enumerable properties of an object\\n     * @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.\\n     */\\n    entries(o: {}): [string, any][];\\n\\n    /**\\n     * Returns an object containing all own property descriptors of an object\\n     * @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.\\n     */\\n    getOwnPropertyDescriptors<T>(o: T): {[P in keyof T]: TypedPropertyDescriptor<T[P]>} & { [x: string]: PropertyDescriptor };\\n}\\n';\nlibFileMap[\"lib.es2017.sharedmemory.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es2015.symbol\" />\\n/// <reference lib=\"es2015.symbol.wellknown\" />\\n\\ninterface SharedArrayBuffer {\\n    /**\\n     * Read-only. The length of the ArrayBuffer (in bytes).\\n     */\\n    readonly byteLength: number;\\n\\n    /**\\n     * Returns a section of an SharedArrayBuffer.\\n     */\\n    slice(begin: number, end?: number): SharedArrayBuffer;\\n    readonly [Symbol.species]: SharedArrayBuffer;\\n    readonly [Symbol.toStringTag]: \"SharedArrayBuffer\";\\n}\\n\\ninterface SharedArrayBufferConstructor {\\n    readonly prototype: SharedArrayBuffer;\\n    new (byteLength: number): SharedArrayBuffer;\\n}\\ndeclare var SharedArrayBuffer: SharedArrayBufferConstructor;\\n\\ninterface ArrayBufferTypes {\\n    SharedArrayBuffer: SharedArrayBuffer;\\n}\\n\\ninterface Atomics {\\n    /**\\n     * Adds a value to the value at the given position in the array, returning the original value.\\n     * Until this atomic operation completes, any other read or write operation against the array\\n     * will block.\\n     */\\n    add(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\\n\\n    /**\\n     * Stores the bitwise AND of a value with the value at the given position in the array,\\n     * returning the original value. Until this atomic operation completes, any other read or\\n     * write operation against the array will block.\\n     */\\n    and(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\\n\\n    /**\\n     * Replaces the value at the given position in the array if the original value equals the given\\n     * expected value, returning the original value. Until this atomic operation completes, any\\n     * other read or write operation against the array will block.\\n     */\\n    compareExchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, expectedValue: number, replacementValue: number): number;\\n\\n    /**\\n     * Replaces the value at the given position in the array, returning the original value. Until\\n     * this atomic operation completes, any other read or write operation against the array will\\n     * block.\\n     */\\n    exchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\\n\\n    /**\\n     * Returns a value indicating whether high-performance algorithms can use atomic operations\\n     * (`true`) or must use locks (`false`) for the given number of bytes-per-element of a typed\\n     * array.\\n     */\\n    isLockFree(size: number): boolean;\\n\\n    /**\\n     * Returns the value at the given position in the array. Until this atomic operation completes,\\n     * any other read or write operation against the array will block.\\n     */\\n    load(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number): number;\\n\\n    /**\\n     * Stores the bitwise OR of a value with the value at the given position in the array,\\n     * returning the original value. Until this atomic operation completes, any other read or write\\n     * operation against the array will block.\\n     */\\n    or(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\\n\\n    /**\\n     * Stores a value at the given position in the array, returning the new value. Until this\\n     * atomic operation completes, any other read or write operation against the array will block.\\n     */\\n    store(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\\n\\n    /**\\n     * Subtracts a value from the value at the given position in the array, returning the original\\n     * value. Until this atomic operation completes, any other read or write operation against the\\n     * array will block.\\n     */\\n    sub(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\\n\\n    /**\\n     * If the value at the given position in the array is equal to the provided value, the current\\n     * agent is put to sleep causing execution to suspend until the timeout expires (returning\\n     * `\"timed-out\"`) or until the agent is awoken (returning `\"ok\"`); otherwise, returns\\n     * `\"not-equal\"`.\\n     */\\n    wait(typedArray: Int32Array, index: number, value: number, timeout?: number): \"ok\" | \"not-equal\" | \"timed-out\";\\n\\n    /**\\n     * Wakes up sleeping agents that are waiting on the given index of the array, returning the\\n     * number of agents that were awoken.\\n     * @param typedArray A shared Int32Array.\\n     * @param index The position in the typedArray to wake up on.\\n     * @param count The number of sleeping agents to notify. Defaults to +Infinity.\\n     */\\n    notify(typedArray: Int32Array, index: number, count?: number): number;\\n\\n    /**\\n     * Stores the bitwise XOR of a value with the value at the given position in the array,\\n     * returning the original value. Until this atomic operation completes, any other read or write\\n     * operation against the array will block.\\n     */\\n    xor(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\\n\\n    readonly [Symbol.toStringTag]: \"Atomics\";\\n}\\n\\ndeclare var Atomics: Atomics;\\n';\nlibFileMap[\"lib.es2017.string.d.ts\"] = `/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib=\"true\"/>\n\ninterface String {\n    /**\n     * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\n     * The padding is applied from the start (left) of the current string.\n     *\n     * @param maxLength The length of the resulting string once the current string has been padded.\n     *        If this parameter is smaller than the current string's length, the current string will be returned as it is.\n     *\n     * @param fillString The string to pad the current string with.\n     *        If this string is too long, it will be truncated and the left-most part will be applied.\n     *        The default value for this parameter is \" \" (U+0020).\n     */\n    padStart(maxLength: number, fillString?: string): string;\n\n    /**\n     * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\n     * The padding is applied from the end (right) of the current string.\n     *\n     * @param maxLength The length of the resulting string once the current string has been padded.\n     *        If this parameter is smaller than the current string's length, the current string will be returned as it is.\n     *\n     * @param fillString The string to pad the current string with.\n     *        If this string is too long, it will be truncated and the left-most part will be applied.\n     *        The default value for this parameter is \" \" (U+0020).\n     */\n    padEnd(maxLength: number, fillString?: string): string;\n}\n`;\nlibFileMap[\"lib.es2017.typedarrays.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ninterface Int8ArrayConstructor {\\n    new (): Int8Array;\\n}\\n\\ninterface Uint8ArrayConstructor {\\n    new (): Uint8Array;\\n}\\n\\ninterface Uint8ClampedArrayConstructor {\\n    new (): Uint8ClampedArray;\\n}\\n\\ninterface Int16ArrayConstructor {\\n    new (): Int16Array;\\n}\\n\\ninterface Uint16ArrayConstructor {\\n    new (): Uint16Array;\\n}\\n\\ninterface Int32ArrayConstructor {\\n    new (): Int32Array;\\n}\\n\\ninterface Uint32ArrayConstructor {\\n    new (): Uint32Array;\\n}\\n\\ninterface Float32ArrayConstructor {\\n    new (): Float32Array;\\n}\\n\\ninterface Float64ArrayConstructor {\\n    new (): Float64Array;\\n}\\n';\nlibFileMap[\"lib.es2018.asyncgenerator.d.ts\"] = `/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib=\"true\"/>\n\n/// <reference lib=\"es2018.asynciterable\" />\n\ninterface AsyncGenerator<T = unknown, TReturn = any, TNext = unknown> extends AsyncIterator<T, TReturn, TNext> {\n    // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.\n    next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;\n    return(value: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;\n    throw(e: any): Promise<IteratorResult<T, TReturn>>;\n    [Symbol.asyncIterator](): AsyncGenerator<T, TReturn, TNext>;\n}\n\ninterface AsyncGeneratorFunction {\n    /**\n     * Creates a new AsyncGenerator object.\n     * @param args A list of arguments the function accepts.\n     */\n    new (...args: any[]): AsyncGenerator;\n    /**\n     * Creates a new AsyncGenerator object.\n     * @param args A list of arguments the function accepts.\n     */\n    (...args: any[]): AsyncGenerator;\n    /**\n     * The length of the arguments.\n     */\n    readonly length: number;\n    /**\n     * Returns the name of the function.\n     */\n    readonly name: string;\n    /**\n     * A reference to the prototype.\n     */\n    readonly prototype: AsyncGenerator;\n}\n\ninterface AsyncGeneratorFunctionConstructor {\n    /**\n     * Creates a new AsyncGenerator function.\n     * @param args A list of arguments the function accepts.\n     */\n    new (...args: string[]): AsyncGeneratorFunction;\n    /**\n     * Creates a new AsyncGenerator function.\n     * @param args A list of arguments the function accepts.\n     */\n    (...args: string[]): AsyncGeneratorFunction;\n    /**\n     * The length of the arguments.\n     */\n    readonly length: number;\n    /**\n     * Returns the name of the function.\n     */\n    readonly name: string;\n    /**\n     * A reference to the prototype.\n     */\n    readonly prototype: AsyncGeneratorFunction;\n}\n`;\nlibFileMap[\"lib.es2018.asynciterable.d.ts\"] = `/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib=\"true\"/>\n\n/// <reference lib=\"es2015.symbol\" />\n/// <reference lib=\"es2015.iterable\" />\n\ninterface SymbolConstructor {\n    /**\n     * A method that returns the default async iterator for an object. Called by the semantics of\n     * the for-await-of statement.\n     */\n    readonly asyncIterator: unique symbol;\n}\n\ninterface AsyncIterator<T, TReturn = any, TNext = undefined> {\n    // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.\n    next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;\n    return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;\n    throw?(e?: any): Promise<IteratorResult<T, TReturn>>;\n}\n\ninterface AsyncIterable<T> {\n    [Symbol.asyncIterator](): AsyncIterator<T>;\n}\n\ninterface AsyncIterableIterator<T> extends AsyncIterator<T> {\n    [Symbol.asyncIterator](): AsyncIterableIterator<T>;\n}`;\nlibFileMap[\"lib.es2018.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es2017\" />\\n/// <reference lib=\"es2018.asynciterable\" />\\n/// <reference lib=\"es2018.asyncgenerator\" />\\n/// <reference lib=\"es2018.promise\" />\\n/// <reference lib=\"es2018.regexp\" />\\n/// <reference lib=\"es2018.intl\" />\\n';\nlibFileMap[\"lib.es2018.full.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es2018\" />\\n/// <reference lib=\"dom\" />\\n/// <reference lib=\"webworker.importscripts\" />\\n/// <reference lib=\"scripthost\" />\\n/// <reference lib=\"dom.iterable\" />';\nlibFileMap[\"lib.es2018.intl.d.ts\"] = `/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib=\"true\"/>\n\ndeclare namespace Intl {\n\n    // http://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories\n    type LDMLPluralRule = \"zero\" | \"one\" | \"two\" | \"few\" | \"many\" | \"other\";\n    type PluralRuleType = \"cardinal\" | \"ordinal\";\n\n    interface PluralRulesOptions {\n        localeMatcher?: \"lookup\" | \"best fit\" | undefined;\n        type?: PluralRuleType | undefined;\n        minimumIntegerDigits?: number | undefined;\n        minimumFractionDigits?: number | undefined;\n        maximumFractionDigits?: number | undefined;\n        minimumSignificantDigits?: number | undefined;\n        maximumSignificantDigits?: number | undefined;\n    }\n\n    interface ResolvedPluralRulesOptions {\n        locale: string;\n        pluralCategories: LDMLPluralRule[];\n        type: PluralRuleType;\n        minimumIntegerDigits: number;\n        minimumFractionDigits: number;\n        maximumFractionDigits: number;\n        minimumSignificantDigits?: number;\n        maximumSignificantDigits?: number;\n    }\n\n    interface PluralRules {\n        resolvedOptions(): ResolvedPluralRulesOptions;\n        select(n: number): LDMLPluralRule;\n    }\n\n    const PluralRules: {\n        new (locales?: string | string[], options?: PluralRulesOptions): PluralRules;\n        (locales?: string | string[], options?: PluralRulesOptions): PluralRules;\n\n        supportedLocalesOf(locales: string | string[], options?: { localeMatcher?: \"lookup\" | \"best fit\" }): string[];\n    };\n\n    // We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here:\n    type ES2018NumberFormatPartType = \"literal\" | \"nan\" | \"infinity\" | \"percent\" | \"integer\" | \"group\" | \"decimal\" | \"fraction\" | \"plusSign\" | \"minusSign\" | \"percentSign\" | \"currency\" | \"code\" | \"symbol\" | \"name\";\n    type ES2020NumberFormatPartType = \"compact\" | \"exponentInteger\" | \"exponentMinusSign\" | \"exponentSeparator\" | \"unit\" | \"unknown\";\n    type NumberFormatPartTypes = ES2018NumberFormatPartType | ES2020NumberFormatPartType;\n\n    interface NumberFormatPart {\n        type: NumberFormatPartTypes;\n        value: string;\n    }\n\n    interface NumberFormat {\n        formatToParts(number?: number | bigint): NumberFormatPart[];\n    }\n}\n`;\nlibFileMap[\"lib.es2018.promise.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/**\\n * Represents the completion of an asynchronous operation\\n */\\ninterface Promise<T> {\\n    /**\\n     * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The\\n     * resolved value cannot be modified from the callback.\\n     * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).\\n     * @returns A Promise for the completion of the callback.\\n     */\\n    finally(onfinally?: (() => void) | undefined | null): Promise<T>\\n}\\n';\nlibFileMap[\"lib.es2018.regexp.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ninterface RegExpMatchArray {\\n    groups?: {\\n        [key: string]: string\\n    }\\n}\\n\\ninterface RegExpExecArray {\\n    groups?: {\\n        [key: string]: string\\n    }\\n}\\n\\ninterface RegExp {\\n    /**\\n     * Returns a Boolean value indicating the state of the dotAll flag (s) used with a regular expression.\\n     * Default is false. Read-only.\\n     */\\n    readonly dotAll: boolean;\\n}';\nlibFileMap[\"lib.es2019.array.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ntype FlatArray<Arr, Depth extends number> = {\\n    \"done\": Arr,\\n    \"recur\": Arr extends ReadonlyArray<infer InnerArr>\\n        ? FlatArray<InnerArr, [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20][Depth]>\\n        : Arr\\n}[Depth extends -1 ? \"done\" : \"recur\"];\\n\\ninterface ReadonlyArray<T> {\\n\\n    /**\\n     * Calls a defined callback function on each element of an array. Then, flattens the result into\\n     * a new array.\\n     * This is identical to a map followed by flat with depth 1.\\n     *\\n     * @param callback A function that accepts up to three arguments. The flatMap method calls the\\n     * callback function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the callback function. If\\n     * thisArg is omitted, undefined is used as the this value.\\n     */\\n    flatMap<U, This = undefined> (\\n        callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,\\n        thisArg?: This\\n    ): U[]\\n\\n\\n    /**\\n     * Returns a new array with all sub-array elements concatenated into it recursively up to the\\n     * specified depth.\\n     *\\n     * @param depth The maximum recursion depth\\n     */\\n    flat<A, D extends number = 1>(\\n        this: A,\\n        depth?: D\\n    ): FlatArray<A, D>[]\\n  }\\n\\ninterface Array<T> {\\n\\n    /**\\n     * Calls a defined callback function on each element of an array. Then, flattens the result into\\n     * a new array.\\n     * This is identical to a map followed by flat with depth 1.\\n     *\\n     * @param callback A function that accepts up to three arguments. The flatMap method calls the\\n     * callback function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the callback function. If\\n     * thisArg is omitted, undefined is used as the this value.\\n     */\\n    flatMap<U, This = undefined> (\\n        callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,\\n        thisArg?: This\\n    ): U[]\\n\\n    /**\\n     * Returns a new array with all sub-array elements concatenated into it recursively up to the\\n     * specified depth.\\n     *\\n     * @param depth The maximum recursion depth\\n     */\\n    flat<A, D extends number = 1>(\\n        this: A,\\n        depth?: D\\n    ): FlatArray<A, D>[]\\n}\\n';\nlibFileMap[\"lib.es2019.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es2018\" />\\n/// <reference lib=\"es2019.array\" />\\n/// <reference lib=\"es2019.object\" />\\n/// <reference lib=\"es2019.string\" />\\n/// <reference lib=\"es2019.symbol\" />\\n/// <reference lib=\"es2019.intl\" />\\n';\nlibFileMap[\"lib.es2019.full.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es2019\" />\\n/// <reference lib=\"dom\" />\\n/// <reference lib=\"webworker.importscripts\" />\\n/// <reference lib=\"scripthost\" />\\n/// <reference lib=\"dom.iterable\" />\\n';\nlibFileMap[\"lib.es2019.intl.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ndeclare namespace Intl {\\n    interface DateTimeFormatPartTypesRegistry {\\n        unknown: any\\n    }\\n}\\n';\nlibFileMap[\"lib.es2019.object.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es2015.iterable\" />\\n\\ninterface ObjectConstructor {\\n    /**\\n     * Returns an object created by key-value entries for properties and methods\\n     * @param entries An iterable object that contains key-value entries for properties and methods.\\n     */\\n    fromEntries<T = any>(entries: Iterable<readonly [PropertyKey, T]>): { [k: string]: T };\\n\\n    /**\\n     * Returns an object created by key-value entries for properties and methods\\n     * @param entries An iterable object that contains key-value entries for properties and methods.\\n     */\\n    fromEntries(entries: Iterable<readonly any[]>): any;\\n}\\n';\nlibFileMap[\"lib.es2019.string.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ninterface String {\\n    /** Removes the trailing white space and line terminator characters from a string. */\\n    trimEnd(): string;\\n\\n    /** Removes the leading white space and line terminator characters from a string. */\\n    trimStart(): string;\\n\\n    /**\\n     * Removes the leading white space and line terminator characters from a string.\\n     * @deprecated A legacy feature for browser compatibility. Use `trimStart` instead\\n     */\\n    trimLeft(): string;\\n\\n    /**\\n     * Removes the trailing white space and line terminator characters from a string.\\n     * @deprecated A legacy feature for browser compatibility. Use `trimEnd` instead\\n     */\\n    trimRight(): string;\\n}\\n';\nlibFileMap[\"lib.es2019.symbol.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ninterface Symbol {\\n    /**\\n     * Expose the [[Description]] internal slot of a symbol directly.\\n     */\\n    readonly description: string | undefined;\\n}\\n';\nlibFileMap[\"lib.es2020.bigint.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es2020.intl\" />\\n\\ninterface BigIntToLocaleStringOptions {\\n    /**\\n     * The locale matching algorithm to use.The default is \"best fit\". For information about this option, see the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}.\\n     */\\n    localeMatcher?: string;\\n    /**\\n     * The formatting style to use , the default is \"decimal\".\\n     */\\n    style?: string;\\n\\n    numberingSystem?: string;\\n    /**\\n     * The unit to use in unit formatting, Possible values are core unit identifiers, defined in UTS #35, Part 2, Section 6. A subset of units from the full list was selected for use in ECMAScript. Pairs of simple units can be concatenated with \"-per-\" to make a compound unit. There is no default value; if the style is \"unit\", the unit property must be provided.\\n     */\\n    unit?: string;\\n\\n    /**\\n     * The unit formatting style to use in unit formatting, the defaults is \"short\".\\n     */\\n    unitDisplay?: string;\\n\\n    /**\\n     * The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as \"USD\" for the US dollar, \"EUR\" for the euro, or \"CNY\" for the Chinese RMB \\u2014 see the Current currency & funds code list. There is no default value; if the style is \"currency\", the currency property must be provided. It is only used when [[Style]] has the value \"currency\".\\n     */\\n    currency?: string;\\n\\n    /**\\n     * How to display the currency in currency formatting. It is only used when [[Style]] has the value \"currency\". The default is \"symbol\".\\n     *\\n     * \"symbol\" to use a localized currency symbol such as \\u20AC,\\n     *\\n     * \"code\" to use the ISO currency code,\\n     *\\n     * \"name\" to use a localized currency name such as \"dollar\"\\n     */\\n    currencyDisplay?: string;\\n\\n    /**\\n     * Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. The default is true.\\n     */\\n    useGrouping?: boolean;\\n\\n    /**\\n     * The minimum number of integer digits to use. Possible values are from 1 to 21; the default is 1.\\n     */\\n    minimumIntegerDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;\\n\\n    /**\\n     * The minimum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn\\'t provide that information).\\n     */\\n    minimumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;\\n\\n    /**\\n     * The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3; the default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn\\'t provide that information); the default for percent formatting is the larger of minimumFractionDigits and 0.\\n     */\\n    maximumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;\\n\\n    /**\\n     * The minimum number of significant digits to use. Possible values are from 1 to 21; the default is 1.\\n     */\\n    minimumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;\\n\\n    /**\\n     * The maximum number of significant digits to use. Possible values are from 1 to 21; the default is 21.\\n     */\\n    maximumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;\\n\\n    /**\\n     * The formatting that should be displayed for the number, the defaults is \"standard\"\\n     *\\n     *     \"standard\" plain number formatting\\n     *\\n     *     \"scientific\" return the order-of-magnitude for formatted number.\\n     *\\n     *     \"engineering\" return the exponent of ten when divisible by three\\n     *\\n     *     \"compact\" string representing exponent, defaults is using the \"short\" form\\n     */\\n    notation?: string;\\n\\n    /**\\n     * used only when notation is \"compact\"\\n     */\\n    compactDisplay?: string;\\n}\\n\\ninterface BigInt {\\n    /**\\n     * Returns a string representation of an object.\\n     * @param radix Specifies a radix for converting numeric values to strings.\\n     */\\n    toString(radix?: number): string;\\n\\n    /** Returns a string representation appropriate to the host environment\\'s current locale. */\\n    toLocaleString(locales?: Intl.LocalesArgument, options?: BigIntToLocaleStringOptions): string;\\n\\n    /** Returns the primitive value of the specified object. */\\n    valueOf(): bigint;\\n\\n    readonly [Symbol.toStringTag]: \"BigInt\";\\n}\\n\\ninterface BigIntConstructor {\\n    (value: bigint | boolean | number | string): bigint;\\n    readonly prototype: BigInt;\\n\\n    /**\\n     * Interprets the low bits of a BigInt as a 2\\'s-complement signed integer.\\n     * All higher bits are discarded.\\n     * @param bits The number of low bits to use\\n     * @param int The BigInt whose bits to extract\\n     */\\n    asIntN(bits: number, int: bigint): bigint;\\n    /**\\n     * Interprets the low bits of a BigInt as an unsigned integer.\\n     * All higher bits are discarded.\\n     * @param bits The number of low bits to use\\n     * @param int The BigInt whose bits to extract\\n     */\\n    asUintN(bits: number, int: bigint): bigint;\\n}\\n\\ndeclare var BigInt: BigIntConstructor;\\n\\n/**\\n * A typed array of 64-bit signed integer values. The contents are initialized to 0. If the\\n * requested number of bytes could not be allocated, an exception is raised.\\n */\\ninterface BigInt64Array {\\n    /** The size in bytes of each element in the array. */\\n    readonly BYTES_PER_ELEMENT: number;\\n\\n    /** The ArrayBuffer instance referenced by the array. */\\n    readonly buffer: ArrayBufferLike;\\n\\n    /** The length in bytes of the array. */\\n    readonly byteLength: number;\\n\\n    /** The offset in bytes of the array. */\\n    readonly byteOffset: number;\\n\\n    /**\\n     * Returns the this object after copying a section of the array identified by start and end\\n     * to the same array starting at position target\\n     * @param target If target is negative, it is treated as length+target where length is the\\n     * length of the array.\\n     * @param start If start is negative, it is treated as length+start. If end is negative, it\\n     * is treated as length+end.\\n     * @param end If not specified, length of the this object is used as its default value.\\n     */\\n    copyWithin(target: number, start: number, end?: number): this;\\n\\n    /** Yields index, value pairs for every entry in the array. */\\n    entries(): IterableIterator<[number, bigint]>;\\n\\n    /**\\n     * Determines whether all the members of an array satisfy the specified test.\\n     * @param predicate A function that accepts up to three arguments. The every method calls\\n     * the predicate function for each element in the array until the predicate returns false,\\n     * or until the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    every(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;\\n\\n    /**\\n     * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\\n     * @param value value to fill array section with\\n     * @param start index to start filling the array at. If start is negative, it is treated as\\n     * length+start where length is the length of the array.\\n     * @param end index to stop filling the array at. If end is negative, it is treated as\\n     * length+end.\\n     */\\n    fill(value: bigint, start?: number, end?: number): this;\\n\\n    /**\\n     * Returns the elements of an array that meet the condition specified in a callback function.\\n     * @param predicate A function that accepts up to three arguments. The filter method calls\\n     * the predicate function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    filter(predicate: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array;\\n\\n    /**\\n     * Returns the value of the first element in the array where predicate is true, and undefined\\n     * otherwise.\\n     * @param predicate find calls predicate once for each element of the array, in ascending\\n     * order, until it finds one where predicate returns true. If such an element is found, find\\n     * immediately returns that element value. Otherwise, find returns undefined.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    find(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): bigint | undefined;\\n\\n    /**\\n     * Returns the index of the first element in the array where predicate is true, and -1\\n     * otherwise.\\n     * @param predicate find calls predicate once for each element of the array, in ascending\\n     * order, until it finds one where predicate returns true. If such an element is found,\\n     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): number;\\n\\n    /**\\n     * Performs the specified action for each element in an array.\\n     * @param callbackfn A function that accepts up to three arguments. forEach calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array) => void, thisArg?: any): void;\\n\\n    /**\\n     * Determines whether an array includes a certain element, returning true or false as appropriate.\\n     * @param searchElement The element to search for.\\n     * @param fromIndex The position in this array at which to begin searching for searchElement.\\n     */\\n    includes(searchElement: bigint, fromIndex?: number): boolean;\\n\\n    /**\\n     * Returns the index of the first occurrence of a value in an array.\\n     * @param searchElement The value to locate in the array.\\n     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\\n     * search starts at index 0.\\n     */\\n    indexOf(searchElement: bigint, fromIndex?: number): number;\\n\\n    /**\\n     * Adds all the elements of an array separated by the specified separator string.\\n     * @param separator A string used to separate one element of an array from the next in the\\n     * resulting String. If omitted, the array elements are separated with a comma.\\n     */\\n    join(separator?: string): string;\\n\\n    /** Yields each index in the array. */\\n    keys(): IterableIterator<number>;\\n\\n    /**\\n     * Returns the index of the last occurrence of a value in an array.\\n     * @param searchElement The value to locate in the array.\\n     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\\n     * search starts at index 0.\\n     */\\n    lastIndexOf(searchElement: bigint, fromIndex?: number): number;\\n\\n    /** The length of the array. */\\n    readonly length: number;\\n\\n    /**\\n     * Calls a defined callback function on each element of an array, and returns an array that\\n     * contains the results.\\n     * @param callbackfn A function that accepts up to three arguments. The map method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    map(callbackfn: (value: bigint, index: number, array: BigInt64Array) => bigint, thisArg?: any): BigInt64Array;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array. The return value of\\n     * the callback function is the accumulated result, and is provided as an argument in the next\\n     * call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array. The return value of\\n     * the callback function is the accumulated result, and is provided as an argument in the next\\n     * call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array, in descending order.\\n     * The return value of the callback function is the accumulated result, and is provided as an\\n     * argument in the next call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\\n     * the callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an\\n     * argument instead of an array value.\\n     */\\n    reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array, in descending order.\\n     * The return value of the callback function is the accumulated result, and is provided as an\\n     * argument in the next call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\\n     * the callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;\\n\\n    /** Reverses the elements in the array. */\\n    reverse(): this;\\n\\n    /**\\n     * Sets a value or an array of values.\\n     * @param array A typed or untyped array of values to set.\\n     * @param offset The index in the current array at which the values are to be written.\\n     */\\n    set(array: ArrayLike<bigint>, offset?: number): void;\\n\\n    /**\\n     * Returns a section of an array.\\n     * @param start The beginning of the specified portion of the array.\\n     * @param end The end of the specified portion of the array.\\n     */\\n    slice(start?: number, end?: number): BigInt64Array;\\n\\n    /**\\n     * Determines whether the specified callback function returns true for any element of an array.\\n     * @param predicate A function that accepts up to three arguments. The some method calls the\\n     * predicate function for each element in the array until the predicate returns true, or until\\n     * the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    some(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;\\n\\n    /**\\n     * Sorts the array.\\n     * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.\\n     */\\n    sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;\\n\\n    /**\\n     * Gets a new BigInt64Array view of the ArrayBuffer store for this array, referencing the elements\\n     * at begin, inclusive, up to end, exclusive.\\n     * @param begin The index of the beginning of the array.\\n     * @param end The index of the end of the array.\\n     */\\n    subarray(begin?: number, end?: number): BigInt64Array;\\n\\n    /** Converts the array to a string by using the current locale. */\\n    toLocaleString(): string;\\n\\n    /** Returns a string representation of the array. */\\n    toString(): string;\\n\\n    /** Returns the primitive value of the specified object. */\\n    valueOf(): BigInt64Array;\\n\\n    /** Yields each value in the array. */\\n    values(): IterableIterator<bigint>;\\n\\n    [Symbol.iterator](): IterableIterator<bigint>;\\n\\n    readonly [Symbol.toStringTag]: \"BigInt64Array\";\\n\\n    [index: number]: bigint;\\n}\\n\\ninterface BigInt64ArrayConstructor {\\n    readonly prototype: BigInt64Array;\\n    new(length?: number): BigInt64Array;\\n    new(array: Iterable<bigint>): BigInt64Array;\\n    new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array;\\n\\n    /** The size in bytes of each element in the array. */\\n    readonly BYTES_PER_ELEMENT: number;\\n\\n    /**\\n     * Returns a new array from a set of elements.\\n     * @param items A set of elements to include in the new array object.\\n     */\\n    of(...items: bigint[]): BigInt64Array;\\n\\n    /**\\n     * Creates an array from an array-like or iterable object.\\n     * @param arrayLike An array-like or iterable object to convert to an array.\\n     * @param mapfn A mapping function to call on every element of the array.\\n     * @param thisArg Value of \\'this\\' used to invoke the mapfn.\\n     */\\n    from(arrayLike: ArrayLike<bigint>): BigInt64Array;\\n    from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array;\\n}\\n\\ndeclare var BigInt64Array: BigInt64ArrayConstructor;\\n\\n/**\\n * A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the\\n * requested number of bytes could not be allocated, an exception is raised.\\n */\\ninterface BigUint64Array {\\n    /** The size in bytes of each element in the array. */\\n    readonly BYTES_PER_ELEMENT: number;\\n\\n    /** The ArrayBuffer instance referenced by the array. */\\n    readonly buffer: ArrayBufferLike;\\n\\n    /** The length in bytes of the array. */\\n    readonly byteLength: number;\\n\\n    /** The offset in bytes of the array. */\\n    readonly byteOffset: number;\\n\\n    /**\\n     * Returns the this object after copying a section of the array identified by start and end\\n     * to the same array starting at position target\\n     * @param target If target is negative, it is treated as length+target where length is the\\n     * length of the array.\\n     * @param start If start is negative, it is treated as length+start. If end is negative, it\\n     * is treated as length+end.\\n     * @param end If not specified, length of the this object is used as its default value.\\n     */\\n    copyWithin(target: number, start: number, end?: number): this;\\n\\n    /** Yields index, value pairs for every entry in the array. */\\n    entries(): IterableIterator<[number, bigint]>;\\n\\n    /**\\n     * Determines whether all the members of an array satisfy the specified test.\\n     * @param predicate A function that accepts up to three arguments. The every method calls\\n     * the predicate function for each element in the array until the predicate returns false,\\n     * or until the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;\\n\\n    /**\\n     * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\\n     * @param value value to fill array section with\\n     * @param start index to start filling the array at. If start is negative, it is treated as\\n     * length+start where length is the length of the array.\\n     * @param end index to stop filling the array at. If end is negative, it is treated as\\n     * length+end.\\n     */\\n    fill(value: bigint, start?: number, end?: number): this;\\n\\n    /**\\n     * Returns the elements of an array that meet the condition specified in a callback function.\\n     * @param predicate A function that accepts up to three arguments. The filter method calls\\n     * the predicate function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    filter(predicate: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array;\\n\\n    /**\\n     * Returns the value of the first element in the array where predicate is true, and undefined\\n     * otherwise.\\n     * @param predicate find calls predicate once for each element of the array, in ascending\\n     * order, until it finds one where predicate returns true. If such an element is found, find\\n     * immediately returns that element value. Otherwise, find returns undefined.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    find(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): bigint | undefined;\\n\\n    /**\\n     * Returns the index of the first element in the array where predicate is true, and -1\\n     * otherwise.\\n     * @param predicate find calls predicate once for each element of the array, in ascending\\n     * order, until it finds one where predicate returns true. If such an element is found,\\n     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): number;\\n\\n    /**\\n     * Performs the specified action for each element in an array.\\n     * @param callbackfn A function that accepts up to three arguments. forEach calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array) => void, thisArg?: any): void;\\n\\n    /**\\n     * Determines whether an array includes a certain element, returning true or false as appropriate.\\n     * @param searchElement The element to search for.\\n     * @param fromIndex The position in this array at which to begin searching for searchElement.\\n     */\\n    includes(searchElement: bigint, fromIndex?: number): boolean;\\n\\n    /**\\n     * Returns the index of the first occurrence of a value in an array.\\n     * @param searchElement The value to locate in the array.\\n     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\\n     * search starts at index 0.\\n     */\\n    indexOf(searchElement: bigint, fromIndex?: number): number;\\n\\n    /**\\n     * Adds all the elements of an array separated by the specified separator string.\\n     * @param separator A string used to separate one element of an array from the next in the\\n     * resulting String. If omitted, the array elements are separated with a comma.\\n     */\\n    join(separator?: string): string;\\n\\n    /** Yields each index in the array. */\\n    keys(): IterableIterator<number>;\\n\\n    /**\\n     * Returns the index of the last occurrence of a value in an array.\\n     * @param searchElement The value to locate in the array.\\n     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\\n     * search starts at index 0.\\n     */\\n    lastIndexOf(searchElement: bigint, fromIndex?: number): number;\\n\\n    /** The length of the array. */\\n    readonly length: number;\\n\\n    /**\\n     * Calls a defined callback function on each element of an array, and returns an array that\\n     * contains the results.\\n     * @param callbackfn A function that accepts up to three arguments. The map method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    map(callbackfn: (value: bigint, index: number, array: BigUint64Array) => bigint, thisArg?: any): BigUint64Array;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array. The return value of\\n     * the callback function is the accumulated result, and is provided as an argument in the next\\n     * call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array. The return value of\\n     * the callback function is the accumulated result, and is provided as an argument in the next\\n     * call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array, in descending order.\\n     * The return value of the callback function is the accumulated result, and is provided as an\\n     * argument in the next call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\\n     * the callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an\\n     * argument instead of an array value.\\n     */\\n    reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array, in descending order.\\n     * The return value of the callback function is the accumulated result, and is provided as an\\n     * argument in the next call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\\n     * the callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;\\n\\n    /** Reverses the elements in the array. */\\n    reverse(): this;\\n\\n    /**\\n     * Sets a value or an array of values.\\n     * @param array A typed or untyped array of values to set.\\n     * @param offset The index in the current array at which the values are to be written.\\n     */\\n    set(array: ArrayLike<bigint>, offset?: number): void;\\n\\n    /**\\n     * Returns a section of an array.\\n     * @param start The beginning of the specified portion of the array.\\n     * @param end The end of the specified portion of the array.\\n     */\\n    slice(start?: number, end?: number): BigUint64Array;\\n\\n    /**\\n     * Determines whether the specified callback function returns true for any element of an array.\\n     * @param predicate A function that accepts up to three arguments. The some method calls the\\n     * predicate function for each element in the array until the predicate returns true, or until\\n     * the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    some(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;\\n\\n    /**\\n     * Sorts the array.\\n     * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.\\n     */\\n    sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;\\n\\n    /**\\n     * Gets a new BigUint64Array view of the ArrayBuffer store for this array, referencing the elements\\n     * at begin, inclusive, up to end, exclusive.\\n     * @param begin The index of the beginning of the array.\\n     * @param end The index of the end of the array.\\n     */\\n    subarray(begin?: number, end?: number): BigUint64Array;\\n\\n    /** Converts the array to a string by using the current locale. */\\n    toLocaleString(): string;\\n\\n    /** Returns a string representation of the array. */\\n    toString(): string;\\n\\n    /** Returns the primitive value of the specified object. */\\n    valueOf(): BigUint64Array;\\n\\n    /** Yields each value in the array. */\\n    values(): IterableIterator<bigint>;\\n\\n    [Symbol.iterator](): IterableIterator<bigint>;\\n\\n    readonly [Symbol.toStringTag]: \"BigUint64Array\";\\n\\n    [index: number]: bigint;\\n}\\n\\ninterface BigUint64ArrayConstructor {\\n    readonly prototype: BigUint64Array;\\n    new(length?: number): BigUint64Array;\\n    new(array: Iterable<bigint>): BigUint64Array;\\n    new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array;\\n\\n    /** The size in bytes of each element in the array. */\\n    readonly BYTES_PER_ELEMENT: number;\\n\\n    /**\\n     * Returns a new array from a set of elements.\\n     * @param items A set of elements to include in the new array object.\\n     */\\n    of(...items: bigint[]): BigUint64Array;\\n\\n    /**\\n     * Creates an array from an array-like or iterable object.\\n     * @param arrayLike An array-like or iterable object to convert to an array.\\n     * @param mapfn A mapping function to call on every element of the array.\\n     * @param thisArg Value of \\'this\\' used to invoke the mapfn.\\n     */\\n    from(arrayLike: ArrayLike<bigint>): BigUint64Array;\\n    from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array;\\n}\\n\\ndeclare var BigUint64Array: BigUint64ArrayConstructor;\\n\\ninterface DataView {\\n    /**\\n     * Gets the BigInt64 value at the specified byte offset from the start of the view. There is\\n     * no alignment constraint; multi-byte values may be fetched from any offset.\\n     * @param byteOffset The place in the buffer at which the value should be retrieved.\\n     * @param littleEndian If false or undefined, a big-endian value should be read.\\n     */\\n    getBigInt64(byteOffset: number, littleEndian?: boolean): bigint;\\n\\n    /**\\n     * Gets the BigUint64 value at the specified byte offset from the start of the view. There is\\n     * no alignment constraint; multi-byte values may be fetched from any offset.\\n     * @param byteOffset The place in the buffer at which the value should be retrieved.\\n     * @param littleEndian If false or undefined, a big-endian value should be read.\\n     */\\n    getBigUint64(byteOffset: number, littleEndian?: boolean): bigint;\\n\\n    /**\\n     * Stores a BigInt64 value at the specified byte offset from the start of the view.\\n     * @param byteOffset The place in the buffer at which the value should be set.\\n     * @param value The value to set.\\n     * @param littleEndian If false or undefined, a big-endian value should be written.\\n     */\\n    setBigInt64(byteOffset: number, value: bigint, littleEndian?: boolean): void;\\n\\n    /**\\n     * Stores a BigUint64 value at the specified byte offset from the start of the view.\\n     * @param byteOffset The place in the buffer at which the value should be set.\\n     * @param value The value to set.\\n     * @param littleEndian If false or undefined, a big-endian value should be written.\\n     */\\n    setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void;\\n}\\n\\ndeclare namespace Intl{\\n    interface NumberFormat {\\n        format(value: number | bigint): string;\\n        resolvedOptions(): ResolvedNumberFormatOptions;\\n    }\\n}\\n';\nlibFileMap[\"lib.es2020.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es2019\" />\\n/// <reference lib=\"es2020.bigint\" />\\n/// <reference lib=\"es2020.date\" />\\n/// <reference lib=\"es2020.number\" />\\n/// <reference lib=\"es2020.promise\" />\\n/// <reference lib=\"es2020.sharedmemory\" />\\n/// <reference lib=\"es2020.string\" />\\n/// <reference lib=\"es2020.symbol.wellknown\" />\\n/// <reference lib=\"es2020.intl\" />\\n';\nlibFileMap[\"lib.es2020.date.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es2020.intl\" />\\n\\ninterface Date {\\n    /**\\n     * Converts a date and time to a string by using the current or specified locale.\\n     * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.\\n     * @param options An object that contains one or more properties that specify comparison options.\\n     */\\n    toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;\\n\\n    /**\\n     * Converts a date to a string by using the current or specified locale.\\n     * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.\\n     * @param options An object that contains one or more properties that specify comparison options.\\n     */\\n    toLocaleDateString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;\\n\\n    /**\\n     * Converts a time to a string by using the current or specified locale.\\n     * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.\\n     * @param options An object that contains one or more properties that specify comparison options.\\n     */\\n    toLocaleTimeString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;\\n}';\nlibFileMap[\"lib.es2020.full.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es2020\" />\\n/// <reference lib=\"dom\" />\\n/// <reference lib=\"webworker.importscripts\" />\\n/// <reference lib=\"scripthost\" />\\n/// <reference lib=\"dom.iterable\" />\\n';\nlibFileMap[\"lib.es2020.intl.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es2018.intl\" />\\ndeclare namespace Intl {\\n\\n    /**\\n     * [Unicode BCP 47 Locale Identifiers](https://unicode.org/reports/tr35/#Unicode_Language_and_Locale_Identifiers) definition.\\n     *\\n     * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).\\n     */\\n    type UnicodeBCP47LocaleIdentifier = string;\\n\\n    /**\\n     * Unit to use in the relative time internationalized message.\\n     *\\n     * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format#Parameters).\\n     */\\n    type RelativeTimeFormatUnit =\\n        | \"year\"\\n        | \"years\"\\n        | \"quarter\"\\n        | \"quarters\"\\n        | \"month\"\\n        | \"months\"\\n        | \"week\"\\n        | \"weeks\"\\n        | \"day\"\\n        | \"days\"\\n        | \"hour\"\\n        | \"hours\"\\n        | \"minute\"\\n        | \"minutes\"\\n        | \"second\"\\n        | \"seconds\";\\n\\n    /**\\n     * Value of the `unit` property in objects returned by\\n     * `Intl.RelativeTimeFormat.prototype.formatToParts()`. `formatToParts` and\\n     * `format` methods accept either singular or plural unit names as input,\\n     * but `formatToParts` only outputs singular (e.g. \"day\") not plural (e.g.\\n     * \"days\").\\n     *\\n     * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).\\n     */\\n     type RelativeTimeFormatUnitSingular =\\n        | \"year\"\\n        | \"quarter\"\\n        | \"month\"\\n        | \"week\"\\n        | \"day\"\\n        | \"hour\"\\n        | \"minute\"\\n        | \"second\";\\n\\n    /**\\n     * The locale matching algorithm to use.\\n     *\\n     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation).\\n     */\\n    type RelativeTimeFormatLocaleMatcher = \"lookup\" | \"best fit\";\\n\\n    /**\\n     * The format of output message.\\n     *\\n     * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).\\n     */\\n    type RelativeTimeFormatNumeric = \"always\" | \"auto\";\\n\\n    /**\\n     * The length of the internationalized message.\\n     *\\n     * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).\\n     */\\n    type RelativeTimeFormatStyle = \"long\" | \"short\" | \"narrow\";\\n\\n    /**\\n     * [BCP 47 language tag](http://tools.ietf.org/html/rfc5646) definition.\\n     *\\n     * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).\\n     */\\n    type BCP47LanguageTag = string;\\n\\n    /**\\n     * The locale(s) to use\\n     *\\n     * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).\\n     */\\n    type LocalesArgument = UnicodeBCP47LocaleIdentifier | Locale | readonly (UnicodeBCP47LocaleIdentifier | Locale)[] | undefined;\\n\\n    /**\\n     * An object with some or all of properties of `options` parameter\\n     * of `Intl.RelativeTimeFormat` constructor.\\n     *\\n     * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).\\n     */\\n    interface RelativeTimeFormatOptions {\\n        /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */\\n        localeMatcher?: RelativeTimeFormatLocaleMatcher;\\n        /** The format of output message. */\\n        numeric?: RelativeTimeFormatNumeric;\\n        /** The length of the internationalized message. */\\n        style?: RelativeTimeFormatStyle;\\n    }\\n\\n    /**\\n     * An object with properties reflecting the locale\\n     * and formatting options computed during initialization\\n     * of the `Intl.RelativeTimeFormat` object\\n     *\\n     * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#Description).\\n     */\\n    interface ResolvedRelativeTimeFormatOptions {\\n        locale: UnicodeBCP47LocaleIdentifier;\\n        style: RelativeTimeFormatStyle;\\n        numeric: RelativeTimeFormatNumeric;\\n        numberingSystem: string;\\n    }\\n\\n    /**\\n     * An object representing the relative time format in parts\\n     * that can be used for custom locale-aware formatting.\\n     *\\n     * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).\\n     */\\n    type RelativeTimeFormatPart =\\n        | {\\n              type: \"literal\";\\n              value: string;\\n          }\\n        | {\\n              type: Exclude<NumberFormatPartTypes, \"literal\">;\\n              value: string;\\n              unit: RelativeTimeFormatUnitSingular;\\n          };\\n\\n    interface RelativeTimeFormat {\\n        /**\\n         * Formats a value and a unit according to the locale\\n         * and formatting options of the given\\n         * [`Intl.RelativeTimeFormat`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)\\n         * object.\\n         *\\n         * While this method automatically provides the correct plural forms,\\n         * the grammatical form is otherwise as neutral as possible.\\n         *\\n         * It is the caller\\'s responsibility to handle cut-off logic\\n         * such as deciding between displaying \"in 7 days\" or \"in 1 week\".\\n         * This API does not support relative dates involving compound units.\\n         * e.g \"in 5 days and 4 hours\".\\n         *\\n         * @param value -  Numeric value to use in the internationalized relative time message\\n         *\\n         * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.\\n         *\\n         * @throws `RangeError` if `unit` was given something other than `unit` possible values\\n         *\\n         * @returns {string} Internationalized relative time message as string\\n         *\\n         * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format).\\n         */\\n        format(value: number, unit: RelativeTimeFormatUnit): string;\\n\\n        /**\\n         *  Returns an array of objects representing the relative time format in parts that can be used for custom locale-aware formatting.\\n         *\\n         *  @param value - Numeric value to use in the internationalized relative time message\\n         *\\n         *  @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.\\n         *\\n         *  @throws `RangeError` if `unit` was given something other than `unit` possible values\\n         *\\n         *  [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts).\\n         */\\n        formatToParts(value: number, unit: RelativeTimeFormatUnit): RelativeTimeFormatPart[];\\n\\n        /**\\n         * Provides access to the locale and options computed during initialization of this `Intl.RelativeTimeFormat` object.\\n         *\\n         * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions).\\n         */\\n        resolvedOptions(): ResolvedRelativeTimeFormatOptions;\\n    }\\n\\n    /**\\n     * The [`Intl.RelativeTimeFormat`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)\\n     * object is a constructor for objects that enable language-sensitive relative time formatting.\\n     *\\n     * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility).\\n     */\\n    const RelativeTimeFormat: {\\n        /**\\n         * Creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) objects\\n         *\\n         * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\\n         *  For the general form and interpretation of the locales argument,\\n         *  see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\\n         *\\n         * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)\\n         *  with some or all of options of `RelativeTimeFormatOptions`.\\n         *\\n         * @returns [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object.\\n         *\\n         * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat).\\n         */\\n        new(\\n            locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],\\n            options?: RelativeTimeFormatOptions,\\n        ): RelativeTimeFormat;\\n\\n        /**\\n         * Returns an array containing those of the provided locales\\n         * that are supported in date and time formatting\\n         * without having to fall back to the runtime\\'s default locale.\\n         *\\n         * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\\n         *  For the general form and interpretation of the locales argument,\\n         *  see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\\n         *\\n         * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)\\n         *  with some or all of options of the formatting.\\n         *\\n         * @returns An array containing those of the provided locales\\n         *  that are supported in date and time formatting\\n         *  without having to fall back to the runtime\\'s default locale.\\n         *\\n         * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf).\\n         */\\n        supportedLocalesOf(\\n            locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],\\n            options?: RelativeTimeFormatOptions,\\n        ): UnicodeBCP47LocaleIdentifier[];\\n    };\\n\\n    interface NumberFormatOptions {\\n        compactDisplay?: \"short\" | \"long\" | undefined;\\n        notation?: \"standard\" | \"scientific\" | \"engineering\" | \"compact\" | undefined;\\n        signDisplay?: \"auto\" | \"never\" | \"always\" | \"exceptZero\" | undefined;\\n        unit?: string | undefined;\\n        unitDisplay?: \"short\" | \"long\" | \"narrow\" | undefined;\\n        currencyDisplay?: string | undefined;\\n        currencySign?: string | undefined;\\n    }\\n\\n    interface ResolvedNumberFormatOptions {\\n        compactDisplay?: \"short\" | \"long\";\\n        notation?: \"standard\" | \"scientific\" | \"engineering\" | \"compact\";\\n        signDisplay?: \"auto\" | \"never\" | \"always\" | \"exceptZero\";\\n        unit?: string;\\n        unitDisplay?: \"short\" | \"long\" | \"narrow\";\\n        currencyDisplay?: string;\\n        currencySign?: string;\\n    }\\n\\n    interface DateTimeFormatOptions {\\n        calendar?: string | undefined;\\n        dayPeriod?: \"narrow\" | \"short\" | \"long\" | undefined;\\n        numberingSystem?: string | undefined;\\n\\n        dateStyle?: \"full\" | \"long\" | \"medium\" | \"short\" | undefined;\\n        timeStyle?: \"full\" | \"long\" | \"medium\" | \"short\" | undefined;\\n        hourCycle?: \"h11\" | \"h12\" | \"h23\" | \"h24\" | undefined;\\n    }\\n\\n    type LocaleHourCycleKey = \"h12\" | \"h23\" | \"h11\" | \"h24\";\\n    type LocaleCollationCaseFirst = \"upper\" | \"lower\" | \"false\";\\n\\n    interface LocaleOptions {\\n        /** A string containing the language, and the script and region if available. */\\n        baseName?: string;\\n        /** The part of the Locale that indicates the locale\\'s calendar era. */\\n        calendar?: string;\\n        /** Flag that defines whether case is taken into account for the locale\\'s collation rules. */\\n        caseFirst?: LocaleCollationCaseFirst;\\n        /** The collation type used for sorting */\\n        collation?: string;\\n        /** The time keeping format convention used by the locale. */\\n        hourCycle?: LocaleHourCycleKey;\\n        /** The primary language subtag associated with the locale. */\\n        language?: string;\\n        /** The numeral system used by the locale. */\\n        numberingSystem?: string;\\n        /** Flag that defines whether the locale has special collation handling for numeric characters. */\\n        numeric?: boolean;\\n        /** The region of the world (usually a country) associated with the locale. Possible values are region codes as defined by ISO 3166-1. */\\n        region?: string;\\n        /** The script used for writing the particular language used in the locale. Possible values are script codes as defined by ISO 15924. */\\n        script?: string;\\n    }\\n\\n    interface Locale extends LocaleOptions {\\n        /** A string containing the language, and the script and region if available. */\\n        baseName: string;\\n        /** The primary language subtag associated with the locale. */\\n        language: string;\\n        /** Gets the most likely values for the language, script, and region of the locale based on existing values. */\\n        maximize(): Locale;\\n        /** Attempts to remove information about the locale that would be added by calling `Locale.maximize()`. */\\n        minimize(): Locale;\\n        /** Returns the locale\\'s full locale identifier string. */\\n        toString(): BCP47LanguageTag;\\n    }\\n\\n    /**\\n     * Constructor creates [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale)\\n     * objects\\n     *\\n     * @param tag - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646).\\n     *  For the general form and interpretation of the locales argument,\\n     *  see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\\n     *\\n     * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/Locale#Parameters) with some or all of options of the locale.\\n     *\\n     * @returns [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object.\\n     *\\n     * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale).\\n     */\\n    const Locale: {\\n        new (tag: BCP47LanguageTag | Locale, options?: LocaleOptions): Locale;\\n    };\\n\\n    type DisplayNamesFallback =\\n        | \"code\"\\n        | \"none\";\\n\\n    type DisplayNamesType =\\n        | \"language\"\\n        | \"region\"\\n        | \"script\"\\n        | \"calendar\"\\n        | \"dateTimeField\"\\n        | \"currency\";\\n\\n    type DisplayNamesLanguageDisplay =\\n        | \"dialect\"\\n        | \"standard\";\\n\\n    interface DisplayNamesOptions {\\n        localeMatcher?: RelativeTimeFormatLocaleMatcher;\\n        style?: RelativeTimeFormatStyle;\\n        type: DisplayNamesType;\\n        languageDisplay?: DisplayNamesLanguageDisplay;\\n        fallback?: DisplayNamesFallback;\\n    }\\n\\n    interface ResolvedDisplayNamesOptions {\\n        locale: UnicodeBCP47LocaleIdentifier;\\n        style: RelativeTimeFormatStyle;\\n        type: DisplayNamesType;\\n        fallback: DisplayNamesFallback;\\n        languageDisplay?: DisplayNamesLanguageDisplay;\\n    }\\n\\n    interface DisplayNames {\\n        /**\\n         * Receives a code and returns a string based on the locale and options provided when instantiating\\n         * [`Intl.DisplayNames()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)\\n         *\\n         * @param code The `code` to provide depends on the `type` passed to display name during creation:\\n         *  - If the type is `\"region\"`, code should be either an [ISO-3166 two letters region code](https://www.iso.org/iso-3166-country-codes.html),\\n         *    or a [three digits UN M49 Geographic Regions](https://unstats.un.org/unsd/methodology/m49/).\\n         *  - If the type is `\"script\"`, code should be an [ISO-15924 four letters script code](https://unicode.org/iso15924/iso15924-codes.html).\\n         *  - If the type is `\"language\"`, code should be a `languageCode` [\"-\" `scriptCode`] [\"-\" `regionCode` ] *(\"-\" `variant` )\\n         *    subsequence of the unicode_language_id grammar in [UTS 35\\'s Unicode Language and Locale Identifiers grammar](https://unicode.org/reports/tr35/#Unicode_language_identifier).\\n         *    `languageCode` is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code.\\n         *  - If the type is `\"currency\"`, code should be a [3-letter ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html).\\n         *\\n         * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of).\\n         */\\n        of(code: string): string | undefined;\\n        /**\\n         * Returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current\\n         * [`Intl/DisplayNames`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.\\n         *\\n         * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions).\\n         */\\n        resolvedOptions(): ResolvedDisplayNamesOptions;\\n    }\\n\\n    /**\\n     * The [`Intl.DisplayNames()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)\\n     * object enables the consistent translation of language, region and script display names.\\n     *\\n     * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames#browser_compatibility).\\n     */\\n    const DisplayNames: {\\n        prototype: DisplayNames;\\n\\n        /**\\n         * @param locales A string with a BCP 47 language tag, or an array of such strings.\\n         *   For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)\\n         *   page.\\n         *\\n         * @param options An object for setting up a display name.\\n         *\\n         * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames).\\n         */\\n        new(locales: LocalesArgument, options: DisplayNamesOptions): DisplayNames;\\n\\n        /**\\n         * Returns an array containing those of the provided locales that are supported in display names without having to fall back to the runtime\\'s default locale.\\n         *\\n         * @param locales A string with a BCP 47 language tag, or an array of such strings.\\n         *   For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)\\n         *   page.\\n         *\\n         * @param options An object with a locale matcher.\\n         *\\n         * @returns An array of strings representing a subset of the given locale tags that are supported in display names without having to fall back to the runtime\\'s default locale.\\n         *\\n         * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).\\n         */\\n        supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher }): BCP47LanguageTag[];\\n    };\\n\\n}\\n';\nlibFileMap[\"lib.es2020.number.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es2020.intl\" />\\n\\ninterface Number {\\n    /**\\n     * Converts a number to a string by using the current or specified locale.\\n     * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.\\n     * @param options An object that contains one or more properties that specify comparison options.\\n     */\\n    toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;\\n}\\n';\nlibFileMap[\"lib.es2020.promise.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ninterface PromiseFulfilledResult<T> {\\n    status: \"fulfilled\";\\n    value: T;\\n}\\n\\ninterface PromiseRejectedResult {\\n    status: \"rejected\";\\n    reason: any;\\n}\\n\\ntype PromiseSettledResult<T> = PromiseFulfilledResult<T> | PromiseRejectedResult;\\n\\ninterface PromiseConstructor {\\n    /**\\n     * Creates a Promise that is resolved with an array of results when all\\n     * of the provided Promises resolve or reject.\\n     * @param values An array of Promises.\\n     * @returns A new Promise.\\n     */\\n    allSettled<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>> }>;\\n\\n    /**\\n     * Creates a Promise that is resolved with an array of results when all\\n     * of the provided Promises resolve or reject.\\n     * @param values An array of Promises.\\n     * @returns A new Promise.\\n     */\\n    allSettled<T>(values: Iterable<T | PromiseLike<T>>): Promise<PromiseSettledResult<Awaited<T>>[]>;\\n}\\n';\nlibFileMap[\"lib.es2020.sharedmemory.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ninterface Atomics {\\n    /**\\n     * Adds a value to the value at the given position in the array, returning the original value.\\n     * Until this atomic operation completes, any other read or write operation against the array\\n     * will block.\\n     */\\n    add(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\\n\\n    /**\\n     * Stores the bitwise AND of a value with the value at the given position in the array,\\n     * returning the original value. Until this atomic operation completes, any other read or\\n     * write operation against the array will block.\\n     */\\n    and(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\\n\\n    /**\\n     * Replaces the value at the given position in the array if the original value equals the given\\n     * expected value, returning the original value. Until this atomic operation completes, any\\n     * other read or write operation against the array will block.\\n     */\\n    compareExchange(typedArray: BigInt64Array | BigUint64Array, index: number, expectedValue: bigint, replacementValue: bigint): bigint;\\n\\n    /**\\n     * Replaces the value at the given position in the array, returning the original value. Until\\n     * this atomic operation completes, any other read or write operation against the array will\\n     * block.\\n     */\\n    exchange(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\\n\\n    /**\\n     * Returns the value at the given position in the array. Until this atomic operation completes,\\n     * any other read or write operation against the array will block.\\n     */\\n    load(typedArray: BigInt64Array | BigUint64Array, index: number): bigint;\\n\\n    /**\\n     * Stores the bitwise OR of a value with the value at the given position in the array,\\n     * returning the original value. Until this atomic operation completes, any other read or write\\n     * operation against the array will block.\\n     */\\n    or(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\\n\\n    /**\\n     * Stores a value at the given position in the array, returning the new value. Until this\\n     * atomic operation completes, any other read or write operation against the array will block.\\n     */\\n    store(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\\n\\n    /**\\n     * Subtracts a value from the value at the given position in the array, returning the original\\n     * value. Until this atomic operation completes, any other read or write operation against the\\n     * array will block.\\n     */\\n    sub(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\\n\\n    /**\\n     * If the value at the given position in the array is equal to the provided value, the current\\n     * agent is put to sleep causing execution to suspend until the timeout expires (returning\\n     * `\"timed-out\"`) or until the agent is awoken (returning `\"ok\"`); otherwise, returns\\n     * `\"not-equal\"`.\\n     */\\n    wait(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): \"ok\" | \"not-equal\" | \"timed-out\";\\n\\n    /**\\n     * Wakes up sleeping agents that are waiting on the given index of the array, returning the\\n     * number of agents that were awoken.\\n     * @param typedArray A shared BigInt64Array.\\n     * @param index The position in the typedArray to wake up on.\\n     * @param count The number of sleeping agents to notify. Defaults to +Infinity.\\n     */\\n    notify(typedArray: BigInt64Array, index: number, count?: number): number;\\n\\n    /**\\n     * Stores the bitwise XOR of a value with the value at the given position in the array,\\n     * returning the original value. Until this atomic operation completes, any other read or write\\n     * operation against the array will block.\\n     */\\n    xor(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\\n}\\n';\nlibFileMap[\"lib.es2020.string.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es2015.iterable\" />\\n\\ninterface String {\\n    /**\\n     * Matches a string with a regular expression, and returns an iterable of matches\\n     * containing the results of that search.\\n     * @param regexp A variable name or string literal containing the regular expression pattern and flags.\\n     */\\n    matchAll(regexp: RegExp): IterableIterator<RegExpMatchArray>;\\n}\\n';\nlibFileMap[\"lib.es2020.symbol.wellknown.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es2015.iterable\" />\\n/// <reference lib=\"es2015.symbol\" />\\n\\ninterface SymbolConstructor {\\n    /**\\n     * A regular expression method that matches the regular expression against a string. Called\\n     * by the String.prototype.matchAll method.\\n     */\\n    readonly matchAll: unique symbol;\\n}\\n\\ninterface RegExp {\\n    /**\\n     * Matches a string with this regular expression, and returns an iterable of matches\\n     * containing the results of that search.\\n     * @param string A string to search within.\\n     */\\n    [Symbol.matchAll](str: string): IterableIterator<RegExpMatchArray>;\\n}\\n';\nlibFileMap[\"lib.es2021.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es2020\" />\\n/// <reference lib=\"es2021.promise\" />\\n/// <reference lib=\"es2021.string\" />\\n/// <reference lib=\"es2021.weakref\" />\\n/// <reference lib=\"es2021.intl\" />\\n';\nlibFileMap[\"lib.es2021.full.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es2021\" />\\n/// <reference lib=\"dom\" />\\n/// <reference lib=\"webworker.importscripts\" />\\n/// <reference lib=\"scripthost\" />\\n/// <reference lib=\"dom.iterable\" />\\n';\nlibFileMap[\"lib.es2021.intl.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ndeclare namespace Intl {\\n\\n    interface DateTimeFormatPartTypesRegistry {\\n        fractionalSecond: any\\n     }\\n\\n    interface DateTimeFormatOptions {\\n        formatMatcher?: \"basic\" | \"best fit\" | \"best fit\" | undefined;\\n        dateStyle?: \"full\" | \"long\" | \"medium\" | \"short\" | undefined;\\n        timeStyle?: \"full\" | \"long\" | \"medium\" | \"short\" | undefined;\\n        dayPeriod?: \"narrow\" | \"short\" | \"long\" | undefined;\\n        fractionalSecondDigits?: 1 | 2 | 3 | undefined;\\n    }\\n\\n    interface DateTimeRangeFormatPart extends DateTimeFormatPart {\\n        source: \"startRange\" | \"endRange\" | \"shared\"\\n    }\\n\\n    interface DateTimeFormat {\\n        formatRange(startDate: Date | number | bigint, endDate: Date | number | bigint): string;\\n        formatRangeToParts(startDate: Date | number | bigint, endDate: Date | number | bigint): DateTimeRangeFormatPart[];\\n    }\\n\\n    interface ResolvedDateTimeFormatOptions {\\n        formatMatcher?: \"basic\" | \"best fit\" | \"best fit\";\\n        dateStyle?: \"full\" | \"long\" | \"medium\" | \"short\";\\n        timeStyle?: \"full\" | \"long\" | \"medium\" | \"short\";\\n        hourCycle?: \"h11\" | \"h12\" | \"h23\" | \"h24\";\\n        dayPeriod?: \"narrow\" | \"short\" | \"long\";\\n        fractionalSecondDigits?: 1 | 2 | 3;\\n    }\\n\\n    /**\\n     * The locale matching algorithm to use.\\n     *\\n     * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).\\n     */\\n    type ListFormatLocaleMatcher = \"lookup\" | \"best fit\";\\n\\n    /**\\n     * The format of output message.\\n     *\\n     * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).\\n     */\\n    type ListFormatType = \"conjunction\" | \"disjunction\" | \"unit\";\\n\\n    /**\\n     * The length of the formatted message.\\n     *\\n     * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).\\n     */\\n    type ListFormatStyle = \"long\" | \"short\" | \"narrow\";\\n\\n    /**\\n     * An object with some or all properties of the `Intl.ListFormat` constructor `options` parameter.\\n     *\\n     * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).\\n     */\\n    interface ListFormatOptions {\\n        /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */\\n        localeMatcher?: ListFormatLocaleMatcher | undefined;\\n        /** The format of output message. */\\n        type?: ListFormatType | undefined;\\n        /** The length of the internationalized message. */\\n        style?: ListFormatStyle | undefined;\\n    }\\n\\n    interface ResolvedListFormatOptions {\\n        locale: string;\\n        style: ListFormatStyle;\\n        type: ListFormatType;\\n    }\\n\\n    interface ListFormat {\\n        /**\\n         * Returns a string with a language-specific representation of the list.\\n         *\\n         * @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array).\\n         *\\n         * @throws `TypeError` if `list` includes something other than the possible values.\\n         *\\n         * @returns {string} A language-specific formatted string representing the elements of the list.\\n         *\\n         * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/format).\\n         */\\n        format(list: Iterable<string>): string;\\n\\n        /**\\n         * Returns an Array of objects representing the different components that can be used to format a list of values in a locale-aware fashion.\\n         *\\n         * @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array), to be formatted according to a locale.\\n         *\\n         * @throws `TypeError` if `list` includes something other than the possible values.\\n         *\\n         * @returns {{ type: \"element\" | \"literal\", value: string; }[]} An Array of components which contains the formatted parts from the list.\\n         *\\n         * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/formatToParts).\\n         */\\n        formatToParts(list: Iterable<string>): { type: \"element\" | \"literal\", value: string; }[];\\n\\n        /**\\n         * Returns a new object with properties reflecting the locale and style\\n         * formatting options computed during the construction of the current\\n         * `Intl.ListFormat` object.\\n         *\\n         * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/resolvedOptions).\\n         */\\n        resolvedOptions(): ResolvedListFormatOptions;\\n    }\\n\\n    const ListFormat: {\\n        prototype: ListFormat;\\n\\n        /**\\n         * Creates [Intl.ListFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) objects that\\n         * enable language-sensitive list formatting.\\n         *\\n         * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\\n         *  For the general form and interpretation of the `locales` argument,\\n         *  see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\\n         *\\n         * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters)\\n         *  with some or all options of `ListFormatOptions`.\\n         *\\n         * @returns [Intl.ListFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) object.\\n         *\\n         * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat).\\n         */\\n        new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: ListFormatOptions): ListFormat;\\n\\n        /**\\n         * Returns an array containing those of the provided locales that are\\n         * supported in list formatting without having to fall back to the runtime\\'s default locale.\\n         *\\n         * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\\n         *  For the general form and interpretation of the `locales` argument,\\n         *  see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\\n         *\\n         * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf#parameters).\\n         *  with some or all possible options.\\n         *\\n         * @returns An array of strings representing a subset of the given locale tags that are supported in list\\n         *  formatting without having to fall back to the runtime\\'s default locale.\\n         *\\n         * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf).\\n         */\\n        supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: Pick<ListFormatOptions, \"localeMatcher\">): BCP47LanguageTag[];\\n    };\\n}\\n';\nlibFileMap[\"lib.es2021.promise.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ninterface AggregateError extends Error {\\n    errors: any[]\\n}\\n\\ninterface AggregateErrorConstructor {\\n    new(errors: Iterable<any>, message?: string): AggregateError;\\n    (errors: Iterable<any>, message?: string): AggregateError;\\n    readonly prototype: AggregateError;\\n}\\n\\ndeclare var AggregateError: AggregateErrorConstructor;\\n\\n/**\\n * Represents the completion of an asynchronous operation\\n */\\ninterface PromiseConstructor {\\n    /**\\n     * The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.\\n     * @param values An array or iterable of Promises.\\n     * @returns A new Promise.\\n     */\\n    any<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;\\n\\n    /**\\n     * The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.\\n     * @param values An array or iterable of Promises.\\n     * @returns A new Promise.\\n     */\\n    any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>\\n}\\n';\nlibFileMap[\"lib.es2021.string.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ninterface String {\\n    /**\\n     * Replace all instances of a substring in a string, using a regular expression or search string.\\n     * @param searchValue A string to search for.\\n     * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.\\n     */\\n    replaceAll(searchValue: string | RegExp, replaceValue: string): string;\\n\\n    /**\\n     * Replace all instances of a substring in a string, using a regular expression or search string.\\n     * @param searchValue A string to search for.\\n     * @param replacer A function that returns the replacement text.\\n     */\\n    replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;\\n}\\n';\nlibFileMap[\"lib.es2021.weakref.d.ts\"] = `/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib=\"true\"/>\n\ninterface WeakRef<T extends object> {\n    readonly [Symbol.toStringTag]: \"WeakRef\";\n\n    /**\n     * Returns the WeakRef instance's target object, or undefined if the target object has been\n     * reclaimed.\n     */\n    deref(): T | undefined;\n}\n\ninterface WeakRefConstructor {\n    readonly prototype: WeakRef<any>;\n\n    /**\n     * Creates a WeakRef instance for the given target object.\n     * @param target The target object for the WeakRef instance.\n     */\n    new<T extends object>(target: T): WeakRef<T>;\n}\n\ndeclare var WeakRef: WeakRefConstructor;\n\ninterface FinalizationRegistry<T> {\n    readonly [Symbol.toStringTag]: \"FinalizationRegistry\";\n\n    /**\n     * Registers an object with the registry.\n     * @param target The target object to register.\n     * @param heldValue The value to pass to the finalizer for this object. This cannot be the\n     * target object.\n     * @param unregisterToken The token to pass to the unregister method to unregister the target\n     * object. If provided (and not undefined), this must be an object. If not provided, the target\n     * cannot be unregistered.\n     */\n    register(target: object, heldValue: T, unregisterToken?: object): void;\n\n    /**\n     * Unregisters an object from the registry.\n     * @param unregisterToken The token that was used as the unregisterToken argument when calling\n     * register to register the target object.\n     */\n    unregister(unregisterToken: object): void;\n}\n\ninterface FinalizationRegistryConstructor {\n    readonly prototype: FinalizationRegistry<any>;\n\n    /**\n     * Creates a finalization registry with an associated cleanup callback\n     * @param cleanupCallback The callback to call after an object in the registry has been reclaimed.\n     */\n    new<T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>;\n}\n\ndeclare var FinalizationRegistry: FinalizationRegistryConstructor;\n`;\nlibFileMap[\"lib.es2022.array.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ninterface Array<T> {\\n    /**\\n     * Returns the item located at the specified index.\\n     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\\n     */\\n    at(index: number): T | undefined;\\n}\\n\\ninterface ReadonlyArray<T> {\\n    /**\\n     * Returns the item located at the specified index.\\n     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\\n     */\\n    at(index: number): T | undefined;\\n}\\n\\ninterface Int8Array {\\n    /**\\n     * Returns the item located at the specified index.\\n     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\\n     */\\n    at(index: number): number | undefined;\\n}\\n\\ninterface Uint8Array {\\n    /**\\n     * Returns the item located at the specified index.\\n     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\\n     */\\n    at(index: number): number | undefined;\\n}\\n\\ninterface Uint8ClampedArray {\\n    /**\\n     * Returns the item located at the specified index.\\n     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\\n     */\\n    at(index: number): number | undefined;\\n}\\n\\ninterface Int16Array {\\n    /**\\n     * Returns the item located at the specified index.\\n     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\\n     */\\n    at(index: number): number | undefined;\\n}\\n\\ninterface Uint16Array {\\n    /**\\n     * Returns the item located at the specified index.\\n     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\\n     */\\n    at(index: number): number | undefined;\\n}\\n\\ninterface Int32Array {\\n    /**\\n     * Returns the item located at the specified index.\\n     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\\n     */\\n    at(index: number): number | undefined;\\n}\\n\\ninterface Uint32Array {\\n    /**\\n     * Returns the item located at the specified index.\\n     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\\n     */\\n    at(index: number): number | undefined;\\n}\\n\\ninterface Float32Array {\\n    /**\\n     * Returns the item located at the specified index.\\n     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\\n     */\\n    at(index: number): number | undefined;\\n}\\n\\ninterface Float64Array {\\n    /**\\n     * Returns the item located at the specified index.\\n     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\\n     */\\n    at(index: number): number | undefined;\\n}\\n\\ninterface BigInt64Array {\\n    /**\\n     * Returns the item located at the specified index.\\n     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\\n     */\\n    at(index: number): bigint | undefined;\\n}\\n\\ninterface BigUint64Array {\\n    /**\\n     * Returns the item located at the specified index.\\n     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\\n     */\\n    at(index: number): bigint | undefined;\\n}\\n';\nlibFileMap[\"lib.es2022.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es2021\" />\\n/// <reference lib=\"es2022.array\" />\\n/// <reference lib=\"es2022.error\" />\\n/// <reference lib=\"es2022.intl\" />\\n/// <reference lib=\"es2022.object\" />\\n/// <reference lib=\"es2022.sharedmemory\" />\\n/// <reference lib=\"es2022.string\" />\\n/// <reference lib=\"es2022.regexp\" />\\n';\nlibFileMap[\"lib.es2022.error.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ninterface ErrorOptions {\\n    cause?: unknown;\\n}\\n\\ninterface Error {\\n    cause?: unknown;\\n}\\n\\ninterface ErrorConstructor {\\n    new (message?: string, options?: ErrorOptions): Error;\\n    (message?: string, options?: ErrorOptions): Error;\\n}\\n\\ninterface EvalErrorConstructor {\\n    new (message?: string, options?: ErrorOptions): EvalError;\\n    (message?: string, options?: ErrorOptions): EvalError;\\n}\\n\\ninterface RangeErrorConstructor {\\n    new (message?: string, options?: ErrorOptions): RangeError;\\n    (message?: string, options?: ErrorOptions): RangeError;\\n}\\n\\ninterface ReferenceErrorConstructor {\\n    new (message?: string, options?: ErrorOptions): ReferenceError;\\n    (message?: string, options?: ErrorOptions): ReferenceError;\\n}\\n\\ninterface SyntaxErrorConstructor {\\n    new (message?: string, options?: ErrorOptions): SyntaxError;\\n    (message?: string, options?: ErrorOptions): SyntaxError;\\n}\\n\\ninterface TypeErrorConstructor {\\n    new (message?: string, options?: ErrorOptions): TypeError;\\n    (message?: string, options?: ErrorOptions): TypeError;\\n}\\n\\ninterface URIErrorConstructor {\\n    new (message?: string, options?: ErrorOptions): URIError;\\n    (message?: string, options?: ErrorOptions): URIError;\\n}\\n\\ninterface AggregateErrorConstructor {\\n    new (\\n        errors: Iterable<any>,\\n        message?: string,\\n        options?: ErrorOptions\\n    ): AggregateError;\\n    (\\n        errors: Iterable<any>,\\n        message?: string,\\n        options?: ErrorOptions\\n    ): AggregateError;\\n}\\n';\nlibFileMap[\"lib.es2022.full.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es2022\" />\\n/// <reference lib=\"dom\" />\\n/// <reference lib=\"webworker.importscripts\" />\\n/// <reference lib=\"scripthost\" />\\n/// <reference lib=\"dom.iterable\" />\\n';\nlibFileMap[\"lib.es2022.intl.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ndeclare namespace Intl {\\n\\n    /**\\n     * An object with some or all properties of the `Intl.Segmenter` constructor `options` parameter.\\n     *\\n     * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)\\n     */\\n    interface SegmenterOptions {\\n        /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */\\n        localeMatcher?: \"best fit\" | \"lookup\" | undefined;\\n        /** The type of input to be split */\\n        granularity?: \"grapheme\" | \"word\" | \"sentence\" | undefined;\\n    }\\n\\n    interface Segmenter {\\n        /**\\n         * Returns `Segments` object containing the segments of the input string, using the segmenter\\'s locale and granularity.\\n         *\\n         * @param input - The text to be segmented as a `string`.\\n         *\\n         * @returns A new iterable Segments object containing the segments of the input string, using the segmenter\\'s locale and granularity.\\n         */\\n        segment(input: string): Segments;\\n        resolvedOptions(): ResolvedSegmenterOptions;\\n    }\\n\\n    interface ResolvedSegmenterOptions {\\n        locale: string;\\n        granularity: \"grapheme\" | \"word\" | \"sentence\";\\n    }\\n\\n    interface Segments {\\n        /**\\n         * Returns an object describing the segment in the original string that includes the code unit at a specified index.\\n         *\\n         * @param codeUnitIndex - A number specifying the index of the code unit in the original input string. If the value is omitted, it defaults to `0`.\\n         */\\n        containing(codeUnitIndex?: number): SegmentData;\\n\\n        /** Returns an iterator to iterate over the segments. */\\n        [Symbol.iterator](): IterableIterator<SegmentData>;\\n    }\\n\\n    interface SegmentData {\\n        /** A string containing the segment extracted from the original input string. */\\n        segment: string;\\n        /** The code unit index in the original input string at which the segment begins. */\\n        index: number;\\n        /** The complete input string that was segmented. */\\n        input: string;\\n        /**\\n         * A boolean value only if granularity is \"word\"; otherwise, undefined.\\n         * If granularity is \"word\", then isWordLike is true when the segment is word-like (i.e., consists of letters/numbers/ideographs/etc.); otherwise, false.\\n         */\\n        isWordLike?: boolean;\\n    }\\n\\n    const Segmenter: {\\n        prototype: Segmenter;\\n\\n        /**\\n         * Creates a new `Intl.Segmenter` object.\\n         *\\n         * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\\n         *  For the general form and interpretation of the `locales` argument,\\n         *  see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\\n         *\\n         * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)\\n         *  with some or all options of `SegmenterOptions`.\\n         *\\n         * @returns [Intl.Segmenter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segments) object.\\n         *\\n         * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter).\\n         */\\n        new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: SegmenterOptions): Segmenter;\\n\\n        /**\\n         * Returns an array containing those of the provided locales that are supported without having to fall back to the runtime\\'s default locale.\\n         *\\n         * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\\n         *  For the general form and interpretation of the `locales` argument,\\n         *  see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\\n         *\\n         * @param options An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf#parameters).\\n         *  with some or all possible options.\\n         *\\n         * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf)\\n         */\\n        supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: Pick<SegmenterOptions, \"localeMatcher\">): BCP47LanguageTag[];\\n    };\\n}\\n';\nlibFileMap[\"lib.es2022.object.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ninterface ObjectConstructor {\\n    /**\\n     * Determines whether an object has a property with the specified name.\\n     * @param o An object.\\n     * @param v A property name.\\n     */\\n    hasOwn(o: object, v: PropertyKey): boolean;\\n}\\n';\nlibFileMap[\"lib.es2022.regexp.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ninterface RegExpMatchArray {\\n    indices?: RegExpIndicesArray;\\n}\\n\\ninterface RegExpExecArray {\\n    indices?: RegExpIndicesArray;\\n}\\n\\ninterface RegExpIndicesArray extends Array<[number, number]> {\\n    groups?: {\\n        [key: string]: [number, number];\\n    };\\n}\\n\\ninterface RegExp {\\n    /**\\n     * Returns a Boolean value indicating the state of the hasIndices flag (d) used with with a regular expression.\\n     * Default is false. Read-only.\\n     */\\n    readonly hasIndices: boolean;\\n}\\n';\nlibFileMap[\"lib.es2022.sharedmemory.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ninterface Atomics {\\n    /**\\n     * A non-blocking, asynchronous version of wait which is usable on the main thread.\\n     * Waits asynchronously on a shared memory location and returns a Promise\\n     * @param typedArray A shared Int32Array or BigInt64Array.\\n     * @param index The position in the typedArray to wait on.\\n     * @param value The expected value to test.\\n     * @param [timeout] The expected value to test.\\n     */\\n    waitAsync(typedArray: Int32Array, index: number, value: number, timeout?: number): { async: false, value: \"not-equal\" | \"timed-out\" } | { async: true, value: Promise<\"ok\" | \"timed-out\"> };\\n\\n    /**\\n     * A non-blocking, asynchronous version of wait which is usable on the main thread.\\n     * Waits asynchronously on a shared memory location and returns a Promise\\n     * @param typedArray A shared Int32Array or BigInt64Array.\\n     * @param index The position in the typedArray to wait on.\\n     * @param value The expected value to test.\\n     * @param [timeout] The expected value to test.\\n     */\\n    waitAsync(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): { async: false, value: \"not-equal\" | \"timed-out\" } | { async: true, value: Promise<\"ok\" | \"timed-out\"> };\\n}\\n';\nlibFileMap[\"lib.es2022.string.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ninterface String {\\n    /**\\n     * Returns a new String consisting of the single UTF-16 code unit located at the specified index.\\n     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\\n     */\\n    at(index: number): string | undefined;\\n}\\n';\nlibFileMap[\"lib.es2023.array.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ninterface Array<T> {\\n    /**\\n     * Returns the value of the last element in the array where predicate is true, and undefined\\n     * otherwise.\\n     * @param predicate findLast calls predicate once for each element of the array, in descending\\n     * order, until it finds one where predicate returns true. If such an element is found, findLast\\n     * immediately returns that element value. Otherwise, findLast returns undefined.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findLast<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S | undefined;\\n    findLast(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T | undefined;\\n\\n    /**\\n     * Returns the index of the last element in the array where predicate is true, and -1\\n     * otherwise.\\n     * @param predicate findLastIndex calls predicate once for each element of the array, in descending\\n     * order, until it finds one where predicate returns true. If such an element is found,\\n     * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findLastIndex(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): number;\\n}\\n\\ninterface ReadonlyArray<T> {\\n    /**\\n     * Returns the value of the last element in the array where predicate is true, and undefined\\n     * otherwise.\\n     * @param predicate findLast calls predicate once for each element of the array, in descending\\n     * order, until it finds one where predicate returns true. If such an element is found, findLast\\n     * immediately returns that element value. Otherwise, findLast returns undefined.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findLast<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S | undefined;\\n    findLast(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T | undefined;\\n\\n    /**\\n     * Returns the index of the last element in the array where predicate is true, and -1\\n     * otherwise.\\n     * @param predicate findLastIndex calls predicate once for each element of the array, in descending\\n     * order, until it finds one where predicate returns true. If such an element is found,\\n     * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findLastIndex(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): number;\\n}\\n\\ninterface Int8Array {\\n    /**\\n     * Returns the value of the last element in the array where predicate is true, and undefined\\n     * otherwise.\\n     * @param predicate findLast calls predicate once for each element of the array, in descending\\n     * order, until it finds one where predicate returns true. If such an element is found, findLast\\n     * immediately returns that element value. Otherwise, findLast returns undefined.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findLast<S extends number>(predicate: (value: number, index: number, array: Int8Array) => value is S, thisArg?: any): S | undefined;\\n    findLast(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): number | undefined;\\n\\n    /**\\n     * Returns the index of the last element in the array where predicate is true, and -1\\n     * otherwise.\\n     * @param predicate findLastIndex calls predicate once for each element of the array, in descending\\n     * order, until it finds one where predicate returns true. If such an element is found,\\n     * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findLastIndex(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): number;\\n}\\n\\ninterface Uint8Array {\\n    /**\\n     * Returns the value of the last element in the array where predicate is true, and undefined\\n     * otherwise.\\n     * @param predicate findLast calls predicate once for each element of the array, in descending\\n     * order, until it finds one where predicate returns true. If such an element is found, findLast\\n     * immediately returns that element value. Otherwise, findLast returns undefined.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findLast<S extends number>(predicate: (value: number, index: number, array: Uint8Array) => value is S, thisArg?: any): S | undefined;\\n    findLast(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): number | undefined;\\n\\n    /**\\n     * Returns the index of the last element in the array where predicate is true, and -1\\n     * otherwise.\\n     * @param predicate findLastIndex calls predicate once for each element of the array, in descending\\n     * order, until it finds one where predicate returns true. If such an element is found,\\n     * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findLastIndex(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): number;\\n}\\n\\ninterface Uint8ClampedArray {\\n    /**\\n     * Returns the value of the last element in the array where predicate is true, and undefined\\n     * otherwise.\\n     * @param predicate findLast calls predicate once for each element of the array, in descending\\n     * order, until it finds one where predicate returns true. If such an element is found, findLast\\n     * immediately returns that element value. Otherwise, findLast returns undefined.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findLast<S extends number>(predicate: (value: number, index: number, array: Uint8ClampedArray) => value is S, thisArg?: any): S | undefined;\\n    findLast(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): number | undefined;\\n\\n    /**\\n     * Returns the index of the last element in the array where predicate is true, and -1\\n     * otherwise.\\n     * @param predicate findLastIndex calls predicate once for each element of the array, in descending\\n     * order, until it finds one where predicate returns true. If such an element is found,\\n     * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findLastIndex(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): number;\\n}\\n\\ninterface Int16Array {\\n    /**\\n     * Returns the value of the last element in the array where predicate is true, and undefined\\n     * otherwise.\\n     * @param predicate findLast calls predicate once for each element of the array, in descending\\n     * order, until it finds one where predicate returns true. If such an element is found, findLast\\n     * immediately returns that element value. Otherwise, findLast returns undefined.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findLast<S extends number>(predicate: (value: number, index: number, array: Int16Array) => value is S, thisArg?: any): S | undefined;\\n    findLast(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): number | undefined;\\n\\n    /**\\n     * Returns the index of the last element in the array where predicate is true, and -1\\n     * otherwise.\\n     * @param predicate findLastIndex calls predicate once for each element of the array, in descending\\n     * order, until it finds one where predicate returns true. If such an element is found,\\n     * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findLastIndex(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): number;\\n}\\n\\ninterface Uint16Array {\\n    /**\\n     * Returns the value of the last element in the array where predicate is true, and undefined\\n     * otherwise.\\n     * @param predicate findLast calls predicate once for each element of the array, in descending\\n     * order, until it finds one where predicate returns true. If such an element is found, findLast\\n     * immediately returns that element value. Otherwise, findLast returns undefined.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findLast<S extends number>(predicate: (value: number, index: number, array: Uint16Array) => value is S, thisArg?: any): S | undefined;\\n    findLast(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): number | undefined;\\n\\n    /**\\n     * Returns the index of the last element in the array where predicate is true, and -1\\n     * otherwise.\\n     * @param predicate findLastIndex calls predicate once for each element of the array, in descending\\n     * order, until it finds one where predicate returns true. If such an element is found,\\n     * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findLastIndex(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): number;\\n}\\n\\ninterface Int32Array {\\n    /**\\n     * Returns the value of the last element in the array where predicate is true, and undefined\\n     * otherwise.\\n     * @param predicate findLast calls predicate once for each element of the array, in descending\\n     * order, until it finds one where predicate returns true. If such an element is found, findLast\\n     * immediately returns that element value. Otherwise, findLast returns undefined.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findLast<S extends number>(predicate: (value: number, index: number, array: Int32Array) => value is S, thisArg?: any): S | undefined;\\n    findLast(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): number | undefined;\\n\\n    /**\\n     * Returns the index of the last element in the array where predicate is true, and -1\\n     * otherwise.\\n     * @param predicate findLastIndex calls predicate once for each element of the array, in descending\\n     * order, until it finds one where predicate returns true. If such an element is found,\\n     * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findLastIndex(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): number;\\n}\\n\\ninterface Uint32Array {\\n    /**\\n     * Returns the value of the last element in the array where predicate is true, and undefined\\n     * otherwise.\\n     * @param predicate findLast calls predicate once for each element of the array, in descending\\n     * order, until it finds one where predicate returns true. If such an element is found, findLast\\n     * immediately returns that element value. Otherwise, findLast returns undefined.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findLast<S extends number>(predicate: (value: number, index: number, array: Uint32Array) => value is S, thisArg?: any): S | undefined;\\n    findLast(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): number | undefined;\\n\\n    /**\\n     * Returns the index of the last element in the array where predicate is true, and -1\\n     * otherwise.\\n     * @param predicate findLastIndex calls predicate once for each element of the array, in descending\\n     * order, until it finds one where predicate returns true. If such an element is found,\\n     * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findLastIndex(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): number;\\n}\\n\\ninterface Float32Array {\\n    /**\\n     * Returns the value of the last element in the array where predicate is true, and undefined\\n     * otherwise.\\n     * @param predicate findLast calls predicate once for each element of the array, in descending\\n     * order, until it finds one where predicate returns true. If such an element is found, findLast\\n     * immediately returns that element value. Otherwise, findLast returns undefined.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findLast<S extends number>(predicate: (value: number, index: number, array: Float32Array) => value is S, thisArg?: any): S | undefined;\\n    findLast(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): number | undefined;\\n\\n    /**\\n     * Returns the index of the last element in the array where predicate is true, and -1\\n     * otherwise.\\n     * @param predicate findLastIndex calls predicate once for each element of the array, in descending\\n     * order, until it finds one where predicate returns true. If such an element is found,\\n     * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findLastIndex(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): number;\\n}\\n\\ninterface Float64Array {\\n    /**\\n     * Returns the value of the last element in the array where predicate is true, and undefined\\n     * otherwise.\\n     * @param predicate findLast calls predicate once for each element of the array, in descending\\n     * order, until it finds one where predicate returns true. If such an element is found, findLast\\n     * immediately returns that element value. Otherwise, findLast returns undefined.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findLast<S extends number>(predicate: (value: number, index: number, array: Float64Array) => value is S, thisArg?: any): S | undefined;\\n    findLast(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): number | undefined;\\n\\n    /**\\n     * Returns the index of the last element in the array where predicate is true, and -1\\n     * otherwise.\\n     * @param predicate findLastIndex calls predicate once for each element of the array, in descending\\n     * order, until it finds one where predicate returns true. If such an element is found,\\n     * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findLastIndex(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): number;\\n}\\n\\ninterface BigInt64Array {\\n    /**\\n     * Returns the value of the last element in the array where predicate is true, and undefined\\n     * otherwise.\\n     * @param predicate findLast calls predicate once for each element of the array, in descending\\n     * order, until it finds one where predicate returns true. If such an element is found, findLast\\n     * immediately returns that element value. Otherwise, findLast returns undefined.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findLast<S extends bigint>(predicate: (value: bigint, index: number, array: BigInt64Array) => value is S, thisArg?: any): S | undefined;\\n    findLast(predicate: (value: bigint, index: number, array: BigInt64Array) => unknown, thisArg?: any): bigint | undefined;\\n\\n    /**\\n     * Returns the index of the last element in the array where predicate is true, and -1\\n     * otherwise.\\n     * @param predicate findLastIndex calls predicate once for each element of the array, in descending\\n     * order, until it finds one where predicate returns true. If such an element is found,\\n     * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findLastIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => unknown, thisArg?: any): number;\\n}\\n\\ninterface BigUint64Array {\\n    /**\\n     * Returns the value of the last element in the array where predicate is true, and undefined\\n     * otherwise.\\n     * @param predicate findLast calls predicate once for each element of the array, in descending\\n     * order, until it finds one where predicate returns true. If such an element is found, findLast\\n     * immediately returns that element value. Otherwise, findLast returns undefined.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findLast<S extends bigint>(predicate: (value: bigint, index: number, array: BigUint64Array) => value is S, thisArg?: any): S | undefined;\\n    findLast(predicate: (value: bigint, index: number, array: BigUint64Array) => unknown, thisArg?: any): bigint | undefined;\\n\\n    /**\\n     * Returns the index of the last element in the array where predicate is true, and -1\\n     * otherwise.\\n     * @param predicate findLastIndex calls predicate once for each element of the array, in descending\\n     * order, until it finds one where predicate returns true. If such an element is found,\\n     * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findLastIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => unknown, thisArg?: any): number;\\n}\\n';\nlibFileMap[\"lib.es2023.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es2022\" />\\n/// <reference lib=\"es2023.array\" />\\n';\nlibFileMap[\"lib.es2023.full.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es2023\" />\\n/// <reference lib=\"dom\" />\\n/// <reference lib=\"webworker.importscripts\" />\\n/// <reference lib=\"scripthost\" />\\n/// <reference lib=\"dom.iterable\" />\\n';\nlibFileMap[\"lib.es5.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"decorators\" />\\n/// <reference lib=\"decorators.legacy\" />\\n\\n/////////////////////////////\\n/// ECMAScript APIs\\n/////////////////////////////\\n\\ndeclare var NaN: number;\\ndeclare var Infinity: number;\\n\\n/**\\n * Evaluates JavaScript code and executes it.\\n * @param x A String value that contains valid JavaScript code.\\n */\\ndeclare function eval(x: string): any;\\n\\n/**\\n * Converts a string to an integer.\\n * @param string A string to convert into a number.\\n * @param radix A value between 2 and 36 that specifies the base of the number in `string`.\\n * If this argument is not supplied, strings with a prefix of \\'0x\\' are considered hexadecimal.\\n * All other strings are considered decimal.\\n */\\ndeclare function parseInt(string: string, radix?: number): number;\\n\\n/**\\n * Converts a string to a floating-point number.\\n * @param string A string that contains a floating-point number.\\n */\\ndeclare function parseFloat(string: string): number;\\n\\n/**\\n * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).\\n * @param number A numeric value.\\n */\\ndeclare function isNaN(number: number): boolean;\\n\\n/**\\n * Determines whether a supplied number is finite.\\n * @param number Any numeric value.\\n */\\ndeclare function isFinite(number: number): boolean;\\n\\n/**\\n * Gets the unencoded version of an encoded Uniform Resource Identifier (URI).\\n * @param encodedURI A value representing an encoded URI.\\n */\\ndeclare function decodeURI(encodedURI: string): string;\\n\\n/**\\n * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).\\n * @param encodedURIComponent A value representing an encoded URI component.\\n */\\ndeclare function decodeURIComponent(encodedURIComponent: string): string;\\n\\n/**\\n * Encodes a text string as a valid Uniform Resource Identifier (URI)\\n * @param uri A value representing an unencoded URI.\\n */\\ndeclare function encodeURI(uri: string): string;\\n\\n/**\\n * Encodes a text string as a valid component of a Uniform Resource Identifier (URI).\\n * @param uriComponent A value representing an unencoded URI component.\\n */\\ndeclare function encodeURIComponent(uriComponent: string | number | boolean): string;\\n\\n/**\\n * Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.\\n * @deprecated A legacy feature for browser compatibility\\n * @param string A string value\\n */\\ndeclare function escape(string: string): string;\\n\\n/**\\n * Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents.\\n * @deprecated A legacy feature for browser compatibility\\n * @param string A string value\\n */\\ndeclare function unescape(string: string): string;\\n\\ninterface Symbol {\\n    /** Returns a string representation of an object. */\\n    toString(): string;\\n\\n    /** Returns the primitive value of the specified object. */\\n    valueOf(): symbol;\\n}\\n\\ndeclare type PropertyKey = string | number | symbol;\\n\\ninterface PropertyDescriptor {\\n    configurable?: boolean;\\n    enumerable?: boolean;\\n    value?: any;\\n    writable?: boolean;\\n    get?(): any;\\n    set?(v: any): void;\\n}\\n\\ninterface PropertyDescriptorMap {\\n    [key: PropertyKey]: PropertyDescriptor;\\n}\\n\\ninterface Object {\\n    /** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */\\n    constructor: Function;\\n\\n    /** Returns a string representation of an object. */\\n    toString(): string;\\n\\n    /** Returns a date converted to a string using the current locale. */\\n    toLocaleString(): string;\\n\\n    /** Returns the primitive value of the specified object. */\\n    valueOf(): Object;\\n\\n    /**\\n     * Determines whether an object has a property with the specified name.\\n     * @param v A property name.\\n     */\\n    hasOwnProperty(v: PropertyKey): boolean;\\n\\n    /**\\n     * Determines whether an object exists in another object\\'s prototype chain.\\n     * @param v Another object whose prototype chain is to be checked.\\n     */\\n    isPrototypeOf(v: Object): boolean;\\n\\n    /**\\n     * Determines whether a specified property is enumerable.\\n     * @param v A property name.\\n     */\\n    propertyIsEnumerable(v: PropertyKey): boolean;\\n}\\n\\ninterface ObjectConstructor {\\n    new(value?: any): Object;\\n    (): any;\\n    (value: any): any;\\n\\n    /** A reference to the prototype for a class of objects. */\\n    readonly prototype: Object;\\n\\n    /**\\n     * Returns the prototype of an object.\\n     * @param o The object that references the prototype.\\n     */\\n    getPrototypeOf(o: any): any;\\n\\n    /**\\n     * Gets the own property descriptor of the specified object.\\n     * An own property descriptor is one that is defined directly on the object and is not inherited from the object\\'s prototype.\\n     * @param o Object that contains the property.\\n     * @param p Name of the property.\\n     */\\n    getOwnPropertyDescriptor(o: any, p: PropertyKey): PropertyDescriptor | undefined;\\n\\n    /**\\n     * Returns the names of the own properties of an object. The own properties of an object are those that are defined directly\\n     * on that object, and are not inherited from the object\\'s prototype. The properties of an object include both fields (objects) and functions.\\n     * @param o Object that contains the own properties.\\n     */\\n    getOwnPropertyNames(o: any): string[];\\n\\n    /**\\n     * Creates an object that has the specified prototype or that has null prototype.\\n     * @param o Object to use as a prototype. May be null.\\n     */\\n    create(o: object | null): any;\\n\\n    /**\\n     * Creates an object that has the specified prototype, and that optionally contains specified properties.\\n     * @param o Object to use as a prototype. May be null\\n     * @param properties JavaScript object that contains one or more property descriptors.\\n     */\\n    create(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;\\n\\n    /**\\n     * Adds a property to an object, or modifies attributes of an existing property.\\n     * @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.\\n     * @param p The property name.\\n     * @param attributes Descriptor for the property. It can be for a data property or an accessor property.\\n     */\\n    defineProperty<T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): T;\\n\\n    /**\\n     * Adds one or more properties to an object, and/or modifies attributes of existing properties.\\n     * @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.\\n     * @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.\\n     */\\n    defineProperties<T>(o: T, properties: PropertyDescriptorMap & ThisType<any>): T;\\n\\n    /**\\n     * Prevents the modification of attributes of existing properties, and prevents the addition of new properties.\\n     * @param o Object on which to lock the attributes.\\n     */\\n    seal<T>(o: T): T;\\n\\n    /**\\n     * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.\\n     * @param f Object on which to lock the attributes.\\n     */\\n    freeze<T extends Function>(f: T): T;\\n\\n    /**\\n     * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.\\n     * @param o Object on which to lock the attributes.\\n     */\\n    freeze<T extends {[idx: string]: U | null | undefined | object}, U extends string | bigint | number | boolean | symbol>(o: T): Readonly<T>;\\n\\n    /**\\n     * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.\\n     * @param o Object on which to lock the attributes.\\n     */\\n    freeze<T>(o: T): Readonly<T>;\\n\\n    /**\\n     * Prevents the addition of new properties to an object.\\n     * @param o Object to make non-extensible.\\n     */\\n    preventExtensions<T>(o: T): T;\\n\\n    /**\\n     * Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.\\n     * @param o Object to test.\\n     */\\n    isSealed(o: any): boolean;\\n\\n    /**\\n     * Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.\\n     * @param o Object to test.\\n     */\\n    isFrozen(o: any): boolean;\\n\\n    /**\\n     * Returns a value that indicates whether new properties can be added to an object.\\n     * @param o Object to test.\\n     */\\n    isExtensible(o: any): boolean;\\n\\n    /**\\n     * Returns the names of the enumerable string properties and methods of an object.\\n     * @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.\\n     */\\n    keys(o: object): string[];\\n}\\n\\n/**\\n * Provides functionality common to all JavaScript objects.\\n */\\ndeclare var Object: ObjectConstructor;\\n\\n/**\\n * Creates a new function.\\n */\\ninterface Function {\\n    /**\\n     * Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.\\n     * @param thisArg The object to be used as the this object.\\n     * @param argArray A set of arguments to be passed to the function.\\n     */\\n    apply(this: Function, thisArg: any, argArray?: any): any;\\n\\n    /**\\n     * Calls a method of an object, substituting another object for the current object.\\n     * @param thisArg The object to be used as the current object.\\n     * @param argArray A list of arguments to be passed to the method.\\n     */\\n    call(this: Function, thisArg: any, ...argArray: any[]): any;\\n\\n    /**\\n     * For a given function, creates a bound function that has the same body as the original function.\\n     * The this object of the bound function is associated with the specified object, and has the specified initial parameters.\\n     * @param thisArg An object to which the this keyword can refer inside the new function.\\n     * @param argArray A list of arguments to be passed to the new function.\\n     */\\n    bind(this: Function, thisArg: any, ...argArray: any[]): any;\\n\\n    /** Returns a string representation of a function. */\\n    toString(): string;\\n\\n    prototype: any;\\n    readonly length: number;\\n\\n    // Non-standard extensions\\n    arguments: any;\\n    caller: Function;\\n}\\n\\ninterface FunctionConstructor {\\n    /**\\n     * Creates a new function.\\n     * @param args A list of arguments the function accepts.\\n     */\\n    new(...args: string[]): Function;\\n    (...args: string[]): Function;\\n    readonly prototype: Function;\\n}\\n\\ndeclare var Function: FunctionConstructor;\\n\\n/**\\n * Extracts the type of the \\'this\\' parameter of a function type, or \\'unknown\\' if the function type has no \\'this\\' parameter.\\n */\\ntype ThisParameterType<T> = T extends (this: infer U, ...args: never) => any ? U : unknown;\\n\\n/**\\n * Removes the \\'this\\' parameter from a function type.\\n */\\ntype OmitThisParameter<T> = unknown extends ThisParameterType<T> ? T : T extends (...args: infer A) => infer R ? (...args: A) => R : T;\\n\\ninterface CallableFunction extends Function {\\n    /**\\n     * Calls the function with the specified object as the this value and the elements of specified array as the arguments.\\n     * @param thisArg The object to be used as the this object.\\n     * @param args An array of argument values to be passed to the function.\\n     */\\n    apply<T, R>(this: (this: T) => R, thisArg: T): R;\\n    apply<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, args: A): R;\\n\\n    /**\\n     * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.\\n     * @param thisArg The object to be used as the this object.\\n     * @param args Argument values to be passed to the function.\\n     */\\n    call<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, ...args: A): R;\\n\\n    /**\\n     * For a given function, creates a bound function that has the same body as the original function.\\n     * The this object of the bound function is associated with the specified object, and has the specified initial parameters.\\n     * @param thisArg The object to be used as the this object.\\n     * @param args Arguments to bind to the parameters of the function.\\n     */\\n    bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>;\\n    bind<T, A0, A extends any[], R>(this: (this: T, arg0: A0, ...args: A) => R, thisArg: T, arg0: A0): (...args: A) => R;\\n    bind<T, A0, A1, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1): (...args: A) => R;\\n    bind<T, A0, A1, A2, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2): (...args: A) => R;\\n    bind<T, A0, A1, A2, A3, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3): (...args: A) => R;\\n    bind<T, AX, R>(this: (this: T, ...args: AX[]) => R, thisArg: T, ...args: AX[]): (...args: AX[]) => R;\\n}\\n\\ninterface NewableFunction extends Function {\\n    /**\\n     * Calls the function with the specified object as the this value and the elements of specified array as the arguments.\\n     * @param thisArg The object to be used as the this object.\\n     * @param args An array of argument values to be passed to the function.\\n     */\\n    apply<T>(this: new () => T, thisArg: T): void;\\n    apply<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, args: A): void;\\n\\n    /**\\n     * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.\\n     * @param thisArg The object to be used as the this object.\\n     * @param args Argument values to be passed to the function.\\n     */\\n    call<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, ...args: A): void;\\n\\n    /**\\n     * For a given function, creates a bound function that has the same body as the original function.\\n     * The this object of the bound function is associated with the specified object, and has the specified initial parameters.\\n     * @param thisArg The object to be used as the this object.\\n     * @param args Arguments to bind to the parameters of the function.\\n     */\\n    bind<T>(this: T, thisArg: any): T;\\n    bind<A0, A extends any[], R>(this: new (arg0: A0, ...args: A) => R, thisArg: any, arg0: A0): new (...args: A) => R;\\n    bind<A0, A1, A extends any[], R>(this: new (arg0: A0, arg1: A1, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1): new (...args: A) => R;\\n    bind<A0, A1, A2, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2): new (...args: A) => R;\\n    bind<A0, A1, A2, A3, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2, arg3: A3): new (...args: A) => R;\\n    bind<AX, R>(this: new (...args: AX[]) => R, thisArg: any, ...args: AX[]): new (...args: AX[]) => R;\\n}\\n\\ninterface IArguments {\\n    [index: number]: any;\\n    length: number;\\n    callee: Function;\\n}\\n\\ninterface String {\\n    /** Returns a string representation of a string. */\\n    toString(): string;\\n\\n    /**\\n     * Returns the character at the specified index.\\n     * @param pos The zero-based index of the desired character.\\n     */\\n    charAt(pos: number): string;\\n\\n    /**\\n     * Returns the Unicode value of the character at the specified location.\\n     * @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.\\n     */\\n    charCodeAt(index: number): number;\\n\\n    /**\\n     * Returns a string that contains the concatenation of two or more strings.\\n     * @param strings The strings to append to the end of the string.\\n     */\\n    concat(...strings: string[]): string;\\n\\n    /**\\n     * Returns the position of the first occurrence of a substring.\\n     * @param searchString The substring to search for in the string\\n     * @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.\\n     */\\n    indexOf(searchString: string, position?: number): number;\\n\\n    /**\\n     * Returns the last occurrence of a substring in the string.\\n     * @param searchString The substring to search for.\\n     * @param position The index at which to begin searching. If omitted, the search begins at the end of the string.\\n     */\\n    lastIndexOf(searchString: string, position?: number): number;\\n\\n    /**\\n     * Determines whether two strings are equivalent in the current locale.\\n     * @param that String to compare to target string\\n     */\\n    localeCompare(that: string): number;\\n\\n    /**\\n     * Matches a string with a regular expression, and returns an array containing the results of that search.\\n     * @param regexp A variable name or string literal containing the regular expression pattern and flags.\\n     */\\n    match(regexp: string | RegExp): RegExpMatchArray | null;\\n\\n    /**\\n     * Replaces text in a string, using a regular expression or search string.\\n     * @param searchValue A string or regular expression to search for.\\n     * @param replaceValue A string containing the text to replace. When the {@linkcode searchValue} is a `RegExp`, all matches are replaced if the `g` flag is set (or only those matches at the beginning, if the `y` flag is also present). Otherwise, only the first match of {@linkcode searchValue} is replaced.\\n     */\\n    replace(searchValue: string | RegExp, replaceValue: string): string;\\n\\n    /**\\n     * Replaces text in a string, using a regular expression or search string.\\n     * @param searchValue A string to search for.\\n     * @param replacer A function that returns the replacement text.\\n     */\\n    replace(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;\\n\\n    /**\\n     * Finds the first substring match in a regular expression search.\\n     * @param regexp The regular expression pattern and applicable flags.\\n     */\\n    search(regexp: string | RegExp): number;\\n\\n    /**\\n     * Returns a section of a string.\\n     * @param start The index to the beginning of the specified portion of stringObj.\\n     * @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.\\n     * If this value is not specified, the substring continues to the end of stringObj.\\n     */\\n    slice(start?: number, end?: number): string;\\n\\n    /**\\n     * Split a string into substrings using the specified separator and return them as an array.\\n     * @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.\\n     * @param limit A value used to limit the number of elements returned in the array.\\n     */\\n    split(separator: string | RegExp, limit?: number): string[];\\n\\n    /**\\n     * Returns the substring at the specified location within a String object.\\n     * @param start The zero-based index number indicating the beginning of the substring.\\n     * @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.\\n     * If end is omitted, the characters from start through the end of the original string are returned.\\n     */\\n    substring(start: number, end?: number): string;\\n\\n    /** Converts all the alphabetic characters in a string to lowercase. */\\n    toLowerCase(): string;\\n\\n    /** Converts all alphabetic characters to lowercase, taking into account the host environment\\'s current locale. */\\n    toLocaleLowerCase(locales?: string | string[]): string;\\n\\n    /** Converts all the alphabetic characters in a string to uppercase. */\\n    toUpperCase(): string;\\n\\n    /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment\\'s current locale. */\\n    toLocaleUpperCase(locales?: string | string[]): string;\\n\\n    /** Removes the leading and trailing white space and line terminator characters from a string. */\\n    trim(): string;\\n\\n    /** Returns the length of a String object. */\\n    readonly length: number;\\n\\n    // IE extensions\\n    /**\\n     * Gets a substring beginning at the specified location and having the specified length.\\n     * @deprecated A legacy feature for browser compatibility\\n     * @param from The starting position of the desired substring. The index of the first character in the string is zero.\\n     * @param length The number of characters to include in the returned substring.\\n     */\\n    substr(from: number, length?: number): string;\\n\\n    /** Returns the primitive value of the specified object. */\\n    valueOf(): string;\\n\\n    readonly [index: number]: string;\\n}\\n\\ninterface StringConstructor {\\n    new(value?: any): String;\\n    (value?: any): string;\\n    readonly prototype: String;\\n    fromCharCode(...codes: number[]): string;\\n}\\n\\n/**\\n * Allows manipulation and formatting of text strings and determination and location of substrings within strings.\\n */\\ndeclare var String: StringConstructor;\\n\\ninterface Boolean {\\n    /** Returns the primitive value of the specified object. */\\n    valueOf(): boolean;\\n}\\n\\ninterface BooleanConstructor {\\n    new(value?: any): Boolean;\\n    <T>(value?: T): boolean;\\n    readonly prototype: Boolean;\\n}\\n\\ndeclare var Boolean: BooleanConstructor;\\n\\ninterface Number {\\n    /**\\n     * Returns a string representation of an object.\\n     * @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.\\n     */\\n    toString(radix?: number): string;\\n\\n    /**\\n     * Returns a string representing a number in fixed-point notation.\\n     * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.\\n     */\\n    toFixed(fractionDigits?: number): string;\\n\\n    /**\\n     * Returns a string containing a number represented in exponential notation.\\n     * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.\\n     */\\n    toExponential(fractionDigits?: number): string;\\n\\n    /**\\n     * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.\\n     * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.\\n     */\\n    toPrecision(precision?: number): string;\\n\\n    /** Returns the primitive value of the specified object. */\\n    valueOf(): number;\\n}\\n\\ninterface NumberConstructor {\\n    new(value?: any): Number;\\n    (value?: any): number;\\n    readonly prototype: Number;\\n\\n    /** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */\\n    readonly MAX_VALUE: number;\\n\\n    /** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */\\n    readonly MIN_VALUE: number;\\n\\n    /**\\n     * A value that is not a number.\\n     * In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.\\n     */\\n    readonly NaN: number;\\n\\n    /**\\n     * A value that is less than the largest negative number that can be represented in JavaScript.\\n     * JavaScript displays NEGATIVE_INFINITY values as -infinity.\\n     */\\n    readonly NEGATIVE_INFINITY: number;\\n\\n    /**\\n     * A value greater than the largest number that can be represented in JavaScript.\\n     * JavaScript displays POSITIVE_INFINITY values as infinity.\\n     */\\n    readonly POSITIVE_INFINITY: number;\\n}\\n\\n/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */\\ndeclare var Number: NumberConstructor;\\n\\ninterface TemplateStringsArray extends ReadonlyArray<string> {\\n    readonly raw: readonly string[];\\n}\\n\\n/**\\n * The type of `import.meta`.\\n *\\n * If you need to declare that a given property exists on `import.meta`,\\n * this type may be augmented via interface merging.\\n */\\ninterface ImportMeta {\\n}\\n\\n/**\\n * The type for the optional second argument to `import()`.\\n *\\n * If your host environment supports additional options, this type may be\\n * augmented via interface merging.\\n */\\ninterface ImportCallOptions {\\n    assert?: ImportAssertions;\\n}\\n\\n/**\\n * The type for the `assert` property of the optional second argument to `import()`.\\n */\\ninterface ImportAssertions {\\n    [key: string]: string;\\n}\\n\\ninterface Math {\\n    /** The mathematical constant e. This is Euler\\'s number, the base of natural logarithms. */\\n    readonly E: number;\\n    /** The natural logarithm of 10. */\\n    readonly LN10: number;\\n    /** The natural logarithm of 2. */\\n    readonly LN2: number;\\n    /** The base-2 logarithm of e. */\\n    readonly LOG2E: number;\\n    /** The base-10 logarithm of e. */\\n    readonly LOG10E: number;\\n    /** Pi. This is the ratio of the circumference of a circle to its diameter. */\\n    readonly PI: number;\\n    /** The square root of 0.5, or, equivalently, one divided by the square root of 2. */\\n    readonly SQRT1_2: number;\\n    /** The square root of 2. */\\n    readonly SQRT2: number;\\n    /**\\n     * Returns the absolute value of a number (the value without regard to whether it is positive or negative).\\n     * For example, the absolute value of -5 is the same as the absolute value of 5.\\n     * @param x A numeric expression for which the absolute value is needed.\\n     */\\n    abs(x: number): number;\\n    /**\\n     * Returns the arc cosine (or inverse cosine) of a number.\\n     * @param x A numeric expression.\\n     */\\n    acos(x: number): number;\\n    /**\\n     * Returns the arcsine of a number.\\n     * @param x A numeric expression.\\n     */\\n    asin(x: number): number;\\n    /**\\n     * Returns the arctangent of a number.\\n     * @param x A numeric expression for which the arctangent is needed.\\n     */\\n    atan(x: number): number;\\n    /**\\n     * Returns the angle (in radians) from the X axis to a point.\\n     * @param y A numeric expression representing the cartesian y-coordinate.\\n     * @param x A numeric expression representing the cartesian x-coordinate.\\n     */\\n    atan2(y: number, x: number): number;\\n    /**\\n     * Returns the smallest integer greater than or equal to its numeric argument.\\n     * @param x A numeric expression.\\n     */\\n    ceil(x: number): number;\\n    /**\\n     * Returns the cosine of a number.\\n     * @param x A numeric expression that contains an angle measured in radians.\\n     */\\n    cos(x: number): number;\\n    /**\\n     * Returns e (the base of natural logarithms) raised to a power.\\n     * @param x A numeric expression representing the power of e.\\n     */\\n    exp(x: number): number;\\n    /**\\n     * Returns the greatest integer less than or equal to its numeric argument.\\n     * @param x A numeric expression.\\n     */\\n    floor(x: number): number;\\n    /**\\n     * Returns the natural logarithm (base e) of a number.\\n     * @param x A numeric expression.\\n     */\\n    log(x: number): number;\\n    /**\\n     * Returns the larger of a set of supplied numeric expressions.\\n     * @param values Numeric expressions to be evaluated.\\n     */\\n    max(...values: number[]): number;\\n    /**\\n     * Returns the smaller of a set of supplied numeric expressions.\\n     * @param values Numeric expressions to be evaluated.\\n     */\\n    min(...values: number[]): number;\\n    /**\\n     * Returns the value of a base expression taken to a specified power.\\n     * @param x The base value of the expression.\\n     * @param y The exponent value of the expression.\\n     */\\n    pow(x: number, y: number): number;\\n    /** Returns a pseudorandom number between 0 and 1. */\\n    random(): number;\\n    /**\\n     * Returns a supplied numeric expression rounded to the nearest integer.\\n     * @param x The value to be rounded to the nearest integer.\\n     */\\n    round(x: number): number;\\n    /**\\n     * Returns the sine of a number.\\n     * @param x A numeric expression that contains an angle measured in radians.\\n     */\\n    sin(x: number): number;\\n    /**\\n     * Returns the square root of a number.\\n     * @param x A numeric expression.\\n     */\\n    sqrt(x: number): number;\\n    /**\\n     * Returns the tangent of a number.\\n     * @param x A numeric expression that contains an angle measured in radians.\\n     */\\n    tan(x: number): number;\\n}\\n/** An intrinsic object that provides basic mathematics functionality and constants. */\\ndeclare var Math: Math;\\n\\n/** Enables basic storage and retrieval of dates and times. */\\ninterface Date {\\n    /** Returns a string representation of a date. The format of the string depends on the locale. */\\n    toString(): string;\\n    /** Returns a date as a string value. */\\n    toDateString(): string;\\n    /** Returns a time as a string value. */\\n    toTimeString(): string;\\n    /** Returns a value as a string value appropriate to the host environment\\'s current locale. */\\n    toLocaleString(): string;\\n    /** Returns a date as a string value appropriate to the host environment\\'s current locale. */\\n    toLocaleDateString(): string;\\n    /** Returns a time as a string value appropriate to the host environment\\'s current locale. */\\n    toLocaleTimeString(): string;\\n    /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */\\n    valueOf(): number;\\n    /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */\\n    getTime(): number;\\n    /** Gets the year, using local time. */\\n    getFullYear(): number;\\n    /** Gets the year using Universal Coordinated Time (UTC). */\\n    getUTCFullYear(): number;\\n    /** Gets the month, using local time. */\\n    getMonth(): number;\\n    /** Gets the month of a Date object using Universal Coordinated Time (UTC). */\\n    getUTCMonth(): number;\\n    /** Gets the day-of-the-month, using local time. */\\n    getDate(): number;\\n    /** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */\\n    getUTCDate(): number;\\n    /** Gets the day of the week, using local time. */\\n    getDay(): number;\\n    /** Gets the day of the week using Universal Coordinated Time (UTC). */\\n    getUTCDay(): number;\\n    /** Gets the hours in a date, using local time. */\\n    getHours(): number;\\n    /** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */\\n    getUTCHours(): number;\\n    /** Gets the minutes of a Date object, using local time. */\\n    getMinutes(): number;\\n    /** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */\\n    getUTCMinutes(): number;\\n    /** Gets the seconds of a Date object, using local time. */\\n    getSeconds(): number;\\n    /** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */\\n    getUTCSeconds(): number;\\n    /** Gets the milliseconds of a Date, using local time. */\\n    getMilliseconds(): number;\\n    /** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */\\n    getUTCMilliseconds(): number;\\n    /** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */\\n    getTimezoneOffset(): number;\\n    /**\\n     * Sets the date and time value in the Date object.\\n     * @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.\\n     */\\n    setTime(time: number): number;\\n    /**\\n     * Sets the milliseconds value in the Date object using local time.\\n     * @param ms A numeric value equal to the millisecond value.\\n     */\\n    setMilliseconds(ms: number): number;\\n    /**\\n     * Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).\\n     * @param ms A numeric value equal to the millisecond value.\\n     */\\n    setUTCMilliseconds(ms: number): number;\\n\\n    /**\\n     * Sets the seconds value in the Date object using local time.\\n     * @param sec A numeric value equal to the seconds value.\\n     * @param ms A numeric value equal to the milliseconds value.\\n     */\\n    setSeconds(sec: number, ms?: number): number;\\n    /**\\n     * Sets the seconds value in the Date object using Universal Coordinated Time (UTC).\\n     * @param sec A numeric value equal to the seconds value.\\n     * @param ms A numeric value equal to the milliseconds value.\\n     */\\n    setUTCSeconds(sec: number, ms?: number): number;\\n    /**\\n     * Sets the minutes value in the Date object using local time.\\n     * @param min A numeric value equal to the minutes value.\\n     * @param sec A numeric value equal to the seconds value.\\n     * @param ms A numeric value equal to the milliseconds value.\\n     */\\n    setMinutes(min: number, sec?: number, ms?: number): number;\\n    /**\\n     * Sets the minutes value in the Date object using Universal Coordinated Time (UTC).\\n     * @param min A numeric value equal to the minutes value.\\n     * @param sec A numeric value equal to the seconds value.\\n     * @param ms A numeric value equal to the milliseconds value.\\n     */\\n    setUTCMinutes(min: number, sec?: number, ms?: number): number;\\n    /**\\n     * Sets the hour value in the Date object using local time.\\n     * @param hours A numeric value equal to the hours value.\\n     * @param min A numeric value equal to the minutes value.\\n     * @param sec A numeric value equal to the seconds value.\\n     * @param ms A numeric value equal to the milliseconds value.\\n     */\\n    setHours(hours: number, min?: number, sec?: number, ms?: number): number;\\n    /**\\n     * Sets the hours value in the Date object using Universal Coordinated Time (UTC).\\n     * @param hours A numeric value equal to the hours value.\\n     * @param min A numeric value equal to the minutes value.\\n     * @param sec A numeric value equal to the seconds value.\\n     * @param ms A numeric value equal to the milliseconds value.\\n     */\\n    setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;\\n    /**\\n     * Sets the numeric day-of-the-month value of the Date object using local time.\\n     * @param date A numeric value equal to the day of the month.\\n     */\\n    setDate(date: number): number;\\n    /**\\n     * Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).\\n     * @param date A numeric value equal to the day of the month.\\n     */\\n    setUTCDate(date: number): number;\\n    /**\\n     * Sets the month value in the Date object using local time.\\n     * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.\\n     * @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.\\n     */\\n    setMonth(month: number, date?: number): number;\\n    /**\\n     * Sets the month value in the Date object using Universal Coordinated Time (UTC).\\n     * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.\\n     * @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.\\n     */\\n    setUTCMonth(month: number, date?: number): number;\\n    /**\\n     * Sets the year of the Date object using local time.\\n     * @param year A numeric value for the year.\\n     * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.\\n     * @param date A numeric value equal for the day of the month.\\n     */\\n    setFullYear(year: number, month?: number, date?: number): number;\\n    /**\\n     * Sets the year value in the Date object using Universal Coordinated Time (UTC).\\n     * @param year A numeric value equal to the year.\\n     * @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.\\n     * @param date A numeric value equal to the day of the month.\\n     */\\n    setUTCFullYear(year: number, month?: number, date?: number): number;\\n    /** Returns a date converted to a string using Universal Coordinated Time (UTC). */\\n    toUTCString(): string;\\n    /** Returns a date as a string value in ISO format. */\\n    toISOString(): string;\\n    /** Used by the JSON.stringify method to enable the transformation of an object\\'s data for JavaScript Object Notation (JSON) serialization. */\\n    toJSON(key?: any): string;\\n}\\n\\ninterface DateConstructor {\\n    new(): Date;\\n    new(value: number | string): Date;\\n    /**\\n     * Creates a new Date.\\n     * @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.\\n     * @param monthIndex The month as a number between 0 and 11 (January to December).\\n     * @param date The date as a number between 1 and 31.\\n     * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.\\n     * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.\\n     * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.\\n     * @param ms A number from 0 to 999 that specifies the milliseconds.\\n     */\\n    new(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;\\n    (): string;\\n    readonly prototype: Date;\\n    /**\\n     * Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.\\n     * @param s A date string\\n     */\\n    parse(s: string): number;\\n    /**\\n     * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.\\n     * @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.\\n     * @param monthIndex The month as a number between 0 and 11 (January to December).\\n     * @param date The date as a number between 1 and 31.\\n     * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.\\n     * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.\\n     * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.\\n     * @param ms A number from 0 to 999 that specifies the milliseconds.\\n     */\\n    UTC(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;\\n    /** Returns the number of milliseconds elapsed since midnight, January 1, 1970 Universal Coordinated Time (UTC). */\\n    now(): number;\\n}\\n\\ndeclare var Date: DateConstructor;\\n\\ninterface RegExpMatchArray extends Array<string> {\\n    /**\\n     * The index of the search at which the result was found.\\n     */\\n    index?: number;\\n    /**\\n     * A copy of the search string.\\n     */\\n    input?: string;\\n    /**\\n     * The first match. This will always be present because `null` will be returned if there are no matches.\\n     */\\n    0: string;\\n}\\n\\ninterface RegExpExecArray extends Array<string> {\\n    /**\\n     * The index of the search at which the result was found.\\n     */\\n    index: number;\\n    /**\\n     * A copy of the search string.\\n     */\\n    input: string;\\n    /**\\n     * The first match. This will always be present because `null` will be returned if there are no matches.\\n     */\\n    0: string;\\n}\\n\\ninterface RegExp {\\n    /**\\n     * Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.\\n     * @param string The String object or string literal on which to perform the search.\\n     */\\n    exec(string: string): RegExpExecArray | null;\\n\\n    /**\\n     * Returns a Boolean value that indicates whether or not a pattern exists in a searched string.\\n     * @param string String on which to perform the search.\\n     */\\n    test(string: string): boolean;\\n\\n    /** 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. */\\n    readonly source: string;\\n\\n    /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */\\n    readonly global: boolean;\\n\\n    /** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */\\n    readonly ignoreCase: boolean;\\n\\n    /** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */\\n    readonly multiline: boolean;\\n\\n    lastIndex: number;\\n\\n    // Non-standard extensions\\n    /** @deprecated A legacy feature for browser compatibility */\\n    compile(pattern: string, flags?: string): this;\\n}\\n\\ninterface RegExpConstructor {\\n    new(pattern: RegExp | string): RegExp;\\n    new(pattern: string, flags?: string): RegExp;\\n    (pattern: RegExp | string): RegExp;\\n    (pattern: string, flags?: string): RegExp;\\n    readonly prototype: RegExp;\\n\\n    // Non-standard extensions\\n    /** @deprecated A legacy feature for browser compatibility */\\n    $1: string;\\n    /** @deprecated A legacy feature for browser compatibility */\\n    $2: string;\\n    /** @deprecated A legacy feature for browser compatibility */\\n    $3: string;\\n    /** @deprecated A legacy feature for browser compatibility */\\n    $4: string;\\n    /** @deprecated A legacy feature for browser compatibility */\\n    $5: string;\\n    /** @deprecated A legacy feature for browser compatibility */\\n    $6: string;\\n    /** @deprecated A legacy feature for browser compatibility */\\n    $7: string;\\n    /** @deprecated A legacy feature for browser compatibility */\\n    $8: string;\\n    /** @deprecated A legacy feature for browser compatibility */\\n    $9: string;\\n    /** @deprecated A legacy feature for browser compatibility */\\n    input: string;\\n    /** @deprecated A legacy feature for browser compatibility */\\n    $_: string;\\n    /** @deprecated A legacy feature for browser compatibility */\\n    lastMatch: string;\\n    /** @deprecated A legacy feature for browser compatibility */\\n    \"$&\": string;\\n    /** @deprecated A legacy feature for browser compatibility */\\n    lastParen: string;\\n    /** @deprecated A legacy feature for browser compatibility */\\n    \"$+\": string;\\n    /** @deprecated A legacy feature for browser compatibility */\\n    leftContext: string;\\n    /** @deprecated A legacy feature for browser compatibility */\\n    \"$`\": string;\\n    /** @deprecated A legacy feature for browser compatibility */\\n    rightContext: string;\\n    /** @deprecated A legacy feature for browser compatibility */\\n    \"$\\'\": string;\\n}\\n\\ndeclare var RegExp: RegExpConstructor;\\n\\ninterface Error {\\n    name: string;\\n    message: string;\\n    stack?: string;\\n}\\n\\ninterface ErrorConstructor {\\n    new(message?: string): Error;\\n    (message?: string): Error;\\n    readonly prototype: Error;\\n}\\n\\ndeclare var Error: ErrorConstructor;\\n\\ninterface EvalError extends Error {\\n}\\n\\ninterface EvalErrorConstructor extends ErrorConstructor {\\n    new(message?: string): EvalError;\\n    (message?: string): EvalError;\\n    readonly prototype: EvalError;\\n}\\n\\ndeclare var EvalError: EvalErrorConstructor;\\n\\ninterface RangeError extends Error {\\n}\\n\\ninterface RangeErrorConstructor extends ErrorConstructor {\\n    new(message?: string): RangeError;\\n    (message?: string): RangeError;\\n    readonly prototype: RangeError;\\n}\\n\\ndeclare var RangeError: RangeErrorConstructor;\\n\\ninterface ReferenceError extends Error {\\n}\\n\\ninterface ReferenceErrorConstructor extends ErrorConstructor {\\n    new(message?: string): ReferenceError;\\n    (message?: string): ReferenceError;\\n    readonly prototype: ReferenceError;\\n}\\n\\ndeclare var ReferenceError: ReferenceErrorConstructor;\\n\\ninterface SyntaxError extends Error {\\n}\\n\\ninterface SyntaxErrorConstructor extends ErrorConstructor {\\n    new(message?: string): SyntaxError;\\n    (message?: string): SyntaxError;\\n    readonly prototype: SyntaxError;\\n}\\n\\ndeclare var SyntaxError: SyntaxErrorConstructor;\\n\\ninterface TypeError extends Error {\\n}\\n\\ninterface TypeErrorConstructor extends ErrorConstructor {\\n    new(message?: string): TypeError;\\n    (message?: string): TypeError;\\n    readonly prototype: TypeError;\\n}\\n\\ndeclare var TypeError: TypeErrorConstructor;\\n\\ninterface URIError extends Error {\\n}\\n\\ninterface URIErrorConstructor extends ErrorConstructor {\\n    new(message?: string): URIError;\\n    (message?: string): URIError;\\n    readonly prototype: URIError;\\n}\\n\\ndeclare var URIError: URIErrorConstructor;\\n\\ninterface JSON {\\n    /**\\n     * Converts a JavaScript Object Notation (JSON) string into an object.\\n     * @param text A valid JSON string.\\n     * @param reviver A function that transforms the results. This function is called for each member of the object.\\n     * If a member contains nested objects, the nested objects are transformed before the parent object is.\\n     */\\n    parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;\\n    /**\\n     * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.\\n     * @param value A JavaScript value, usually an object or array, to be converted.\\n     * @param replacer A function that transforms the results.\\n     * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.\\n     */\\n    stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;\\n    /**\\n     * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.\\n     * @param value A JavaScript value, usually an object or array, to be converted.\\n     * @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.\\n     * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.\\n     */\\n    stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;\\n}\\n\\n/**\\n * An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.\\n */\\ndeclare var JSON: JSON;\\n\\n\\n/////////////////////////////\\n/// ECMAScript Array API (specially handled by compiler)\\n/////////////////////////////\\n\\ninterface ReadonlyArray<T> {\\n    /**\\n     * Gets the length of the array. This is a number one higher than the highest element defined in an array.\\n     */\\n    readonly length: number;\\n    /**\\n     * Returns a string representation of an array.\\n     */\\n    toString(): string;\\n    /**\\n     * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.\\n     */\\n    toLocaleString(): string;\\n    /**\\n     * Combines two or more arrays.\\n     * @param items Additional items to add to the end of array1.\\n     */\\n    concat(...items: ConcatArray<T>[]): T[];\\n    /**\\n     * Combines two or more arrays.\\n     * @param items Additional items to add to the end of array1.\\n     */\\n    concat(...items: (T | ConcatArray<T>)[]): T[];\\n    /**\\n     * Adds all the elements of an array separated by the specified separator string.\\n     * @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.\\n     */\\n    join(separator?: string): string;\\n    /**\\n     * Returns a section of an array.\\n     * @param start The beginning of the specified portion of the array.\\n     * @param end The end of the specified portion of the array. This is exclusive of the element at the index \\'end\\'.\\n     */\\n    slice(start?: number, end?: number): T[];\\n    /**\\n     * Returns the index of the first occurrence of a value in an array.\\n     * @param searchElement The value to locate in the array.\\n     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.\\n     */\\n    indexOf(searchElement: T, fromIndex?: number): number;\\n    /**\\n     * Returns the index of the last occurrence of a specified value in an array.\\n     * @param searchElement The value to locate in the array.\\n     * @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.\\n     */\\n    lastIndexOf(searchElement: T, fromIndex?: number): number;\\n    /**\\n     * Determines whether all the members of an array satisfy the specified test.\\n     * @param predicate A function that accepts up to three arguments. The every method calls\\n     * the predicate function for each element in the array until the predicate returns a value\\n     * which is coercible to the Boolean value false, or until the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    every<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): this is readonly S[];\\n    /**\\n     * Determines whether all the members of an array satisfy the specified test.\\n     * @param predicate A function that accepts up to three arguments. The every method calls\\n     * the predicate function for each element in the array until the predicate returns a value\\n     * which is coercible to the Boolean value false, or until the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    every(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;\\n    /**\\n     * Determines whether the specified callback function returns true for any element of an array.\\n     * @param predicate A function that accepts up to three arguments. The some method calls\\n     * the predicate function for each element in the array until the predicate returns a value\\n     * which is coercible to the Boolean value true, or until the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    some(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;\\n    /**\\n     * Performs the specified action for each element in an array.\\n     * @param callbackfn  A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.\\n     * @param thisArg  An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\\n     */\\n    forEach(callbackfn: (value: T, index: number, array: readonly T[]) => void, thisArg?: any): void;\\n    /**\\n     * Calls a defined callback function on each element of an array, and returns an array that contains the results.\\n     * @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.\\n     * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\\n     */\\n    map<U>(callbackfn: (value: T, index: number, array: readonly T[]) => U, thisArg?: any): U[];\\n    /**\\n     * Returns the elements of an array that meet the condition specified in a callback function.\\n     * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\\n     */\\n    filter<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S[];\\n    /**\\n     * Returns the elements of an array that meet the condition specified in a callback function.\\n     * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\\n     */\\n    filter(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T[];\\n    /**\\n     * 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.\\n     * @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.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\\n     */\\n    reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;\\n    reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;\\n    /**\\n     * 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.\\n     * @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.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\\n     */\\n    reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;\\n    /**\\n     * 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.\\n     * @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.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\\n     */\\n    reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;\\n    reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;\\n    /**\\n     * 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.\\n     * @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.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\\n     */\\n    reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;\\n\\n    readonly [n: number]: T;\\n}\\n\\ninterface ConcatArray<T> {\\n    readonly length: number;\\n    readonly [n: number]: T;\\n    join(separator?: string): string;\\n    slice(start?: number, end?: number): T[];\\n}\\n\\ninterface Array<T> {\\n    /**\\n     * Gets or sets the length of the array. This is a number one higher than the highest index in the array.\\n     */\\n    length: number;\\n    /**\\n     * Returns a string representation of an array.\\n     */\\n    toString(): string;\\n    /**\\n     * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.\\n     */\\n    toLocaleString(): string;\\n    /**\\n     * Removes the last element from an array and returns it.\\n     * If the array is empty, undefined is returned and the array is not modified.\\n     */\\n    pop(): T | undefined;\\n    /**\\n     * Appends new elements to the end of an array, and returns the new length of the array.\\n     * @param items New elements to add to the array.\\n     */\\n    push(...items: T[]): number;\\n    /**\\n     * Combines two or more arrays.\\n     * This method returns a new array without modifying any existing arrays.\\n     * @param items Additional arrays and/or items to add to the end of the array.\\n     */\\n    concat(...items: ConcatArray<T>[]): T[];\\n    /**\\n     * Combines two or more arrays.\\n     * This method returns a new array without modifying any existing arrays.\\n     * @param items Additional arrays and/or items to add to the end of the array.\\n     */\\n    concat(...items: (T | ConcatArray<T>)[]): T[];\\n    /**\\n     * Adds all the elements of an array into a string, separated by the specified separator string.\\n     * @param separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.\\n     */\\n    join(separator?: string): string;\\n    /**\\n     * Reverses the elements in an array in place.\\n     * This method mutates the array and returns a reference to the same array.\\n     */\\n    reverse(): T[];\\n    /**\\n     * Removes the first element from an array and returns it.\\n     * If the array is empty, undefined is returned and the array is not modified.\\n     */\\n    shift(): T | undefined;\\n    /**\\n     * Returns a copy of a section of an array.\\n     * For both start and end, a negative index can be used to indicate an offset from the end of the array.\\n     * For example, -2 refers to the second to last element of the array.\\n     * @param start The beginning index of the specified portion of the array.\\n     * If start is undefined, then the slice begins at index 0.\\n     * @param end The end index of the specified portion of the array. This is exclusive of the element at the index \\'end\\'.\\n     * If end is undefined, then the slice extends to the end of the array.\\n     */\\n    slice(start?: number, end?: number): T[];\\n    /**\\n     * Sorts an array in place.\\n     * This method mutates the array and returns a reference to the same array.\\n     * @param compareFn Function used to determine the order of the elements. It is expected to return\\n     * a negative value if the first argument is less than the second argument, zero if they\\'re equal, and a positive\\n     * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\\n     * ```ts\\n     * [11,2,22,1].sort((a, b) => a - b)\\n     * ```\\n     */\\n    sort(compareFn?: (a: T, b: T) => number): this;\\n    /**\\n     * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\\n     * @param start The zero-based location in the array from which to start removing elements.\\n     * @param deleteCount The number of elements to remove.\\n     * @returns An array containing the elements that were deleted.\\n     */\\n    splice(start: number, deleteCount?: number): T[];\\n    /**\\n     * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\\n     * @param start The zero-based location in the array from which to start removing elements.\\n     * @param deleteCount The number of elements to remove.\\n     * @param items Elements to insert into the array in place of the deleted elements.\\n     * @returns An array containing the elements that were deleted.\\n     */\\n    splice(start: number, deleteCount: number, ...items: T[]): T[];\\n    /**\\n     * Inserts new elements at the start of an array, and returns the new length of the array.\\n     * @param items Elements to insert at the start of the array.\\n     */\\n    unshift(...items: T[]): number;\\n    /**\\n     * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.\\n     * @param searchElement The value to locate in the array.\\n     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.\\n     */\\n    indexOf(searchElement: T, fromIndex?: number): number;\\n    /**\\n     * Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.\\n     * @param searchElement The value to locate in the array.\\n     * @param fromIndex The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.\\n     */\\n    lastIndexOf(searchElement: T, fromIndex?: number): number;\\n    /**\\n     * Determines whether all the members of an array satisfy the specified test.\\n     * @param predicate A function that accepts up to three arguments. The every method calls\\n     * the predicate function for each element in the array until the predicate returns a value\\n     * which is coercible to the Boolean value false, or until the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    every<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): this is S[];\\n    /**\\n     * Determines whether all the members of an array satisfy the specified test.\\n     * @param predicate A function that accepts up to three arguments. The every method calls\\n     * the predicate function for each element in the array until the predicate returns a value\\n     * which is coercible to the Boolean value false, or until the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    every(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;\\n    /**\\n     * Determines whether the specified callback function returns true for any element of an array.\\n     * @param predicate A function that accepts up to three arguments. The some method calls\\n     * the predicate function for each element in the array until the predicate returns a value\\n     * which is coercible to the Boolean value true, or until the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    some(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;\\n    /**\\n     * Performs the specified action for each element in an array.\\n     * @param callbackfn  A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.\\n     * @param thisArg  An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\\n     */\\n    forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;\\n    /**\\n     * Calls a defined callback function on each element of an array, and returns an array that contains the results.\\n     * @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.\\n     * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\\n     */\\n    map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];\\n    /**\\n     * Returns the elements of an array that meet the condition specified in a callback function.\\n     * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\\n     */\\n    filter<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[];\\n    /**\\n     * Returns the elements of an array that meet the condition specified in a callback function.\\n     * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\\n     */\\n    filter(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T[];\\n    /**\\n     * 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.\\n     * @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.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\\n     */\\n    reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;\\n    reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;\\n    /**\\n     * 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.\\n     * @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.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\\n     */\\n    reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;\\n    /**\\n     * 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.\\n     * @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.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\\n     */\\n    reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;\\n    reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;\\n    /**\\n     * 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.\\n     * @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.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\\n     */\\n    reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;\\n\\n    [n: number]: T;\\n}\\n\\ninterface ArrayConstructor {\\n    new(arrayLength?: number): any[];\\n    new <T>(arrayLength: number): T[];\\n    new <T>(...items: T[]): T[];\\n    (arrayLength?: number): any[];\\n    <T>(arrayLength: number): T[];\\n    <T>(...items: T[]): T[];\\n    isArray(arg: any): arg is any[];\\n    readonly prototype: any[];\\n}\\n\\ndeclare var Array: ArrayConstructor;\\n\\ninterface TypedPropertyDescriptor<T> {\\n    enumerable?: boolean;\\n    configurable?: boolean;\\n    writable?: boolean;\\n    value?: T;\\n    get?: () => T;\\n    set?: (value: T) => void;\\n}\\n\\ndeclare type PromiseConstructorLike = new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;\\n\\ninterface PromiseLike<T> {\\n    /**\\n     * Attaches callbacks for the resolution and/or rejection of the Promise.\\n     * @param onfulfilled The callback to execute when the Promise is resolved.\\n     * @param onrejected The callback to execute when the Promise is rejected.\\n     * @returns A Promise for the completion of which ever callback is executed.\\n     */\\n    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>;\\n}\\n\\n/**\\n * Represents the completion of an asynchronous operation\\n */\\ninterface Promise<T> {\\n    /**\\n     * Attaches callbacks for the resolution and/or rejection of the Promise.\\n     * @param onfulfilled The callback to execute when the Promise is resolved.\\n     * @param onrejected The callback to execute when the Promise is rejected.\\n     * @returns A Promise for the completion of which ever callback is executed.\\n     */\\n    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;\\n\\n    /**\\n     * Attaches a callback for only the rejection of the Promise.\\n     * @param onrejected The callback to execute when the Promise is rejected.\\n     * @returns A Promise for the completion of the callback.\\n     */\\n    catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;\\n}\\n\\n/**\\n * Recursively unwraps the \"awaited type\" of a type. Non-promise \"thenables\" should resolve to `never`. This emulates the behavior of `await`.\\n */\\ntype Awaited<T> =\\n    T extends null | undefined ? T : // special case for `null | undefined` when not in `--strictNullChecks` mode\\n        T extends object & { then(onfulfilled: infer F, ...args: infer _): any } ? // `await` only unwraps object types with a callable `then`. Non-object types are not unwrapped\\n            F extends ((value: infer V, ...args: infer _) => any) ? // if the argument to `then` is callable, extracts the first argument\\n                Awaited<V> : // recursively unwrap the value\\n                never : // the argument to `then` was not callable\\n        T; // non-object or non-thenable\\n\\ninterface ArrayLike<T> {\\n    readonly length: number;\\n    readonly [n: number]: T;\\n}\\n\\n/**\\n * Make all properties in T optional\\n */\\ntype Partial<T> = {\\n    [P in keyof T]?: T[P];\\n};\\n\\n/**\\n * Make all properties in T required\\n */\\ntype Required<T> = {\\n    [P in keyof T]-?: T[P];\\n};\\n\\n/**\\n * Make all properties in T readonly\\n */\\ntype Readonly<T> = {\\n    readonly [P in keyof T]: T[P];\\n};\\n\\n/**\\n * From T, pick a set of properties whose keys are in the union K\\n */\\ntype Pick<T, K extends keyof T> = {\\n    [P in K]: T[P];\\n};\\n\\n/**\\n * Construct a type with a set of properties K of type T\\n */\\ntype Record<K extends keyof any, T> = {\\n    [P in K]: T;\\n};\\n\\n/**\\n * Exclude from T those types that are assignable to U\\n */\\ntype Exclude<T, U> = T extends U ? never : T;\\n\\n/**\\n * Extract from T those types that are assignable to U\\n */\\ntype Extract<T, U> = T extends U ? T : never;\\n\\n/**\\n * Construct a type with the properties of T except for those in type K.\\n */\\ntype Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;\\n\\n/**\\n * Exclude null and undefined from T\\n */\\ntype NonNullable<T> = T & {};\\n\\n/**\\n * Obtain the parameters of a function type in a tuple\\n */\\ntype Parameters<T extends (...args: any) => any> = T extends (...args: infer P) => any ? P : never;\\n\\n/**\\n * Obtain the parameters of a constructor function type in a tuple\\n */\\ntype ConstructorParameters<T extends abstract new (...args: any) => any> = T extends abstract new (...args: infer P) => any ? P : never;\\n\\n/**\\n * Obtain the return type of a function type\\n */\\ntype ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any;\\n\\n/**\\n * Obtain the return type of a constructor function type\\n */\\ntype InstanceType<T extends abstract new (...args: any) => any> = T extends abstract new (...args: any) => infer R ? R : any;\\n\\n/**\\n * Convert string literal type to uppercase\\n */\\ntype Uppercase<S extends string> = intrinsic;\\n\\n/**\\n * Convert string literal type to lowercase\\n */\\ntype Lowercase<S extends string> = intrinsic;\\n\\n/**\\n * Convert first character of string literal type to uppercase\\n */\\ntype Capitalize<S extends string> = intrinsic;\\n\\n/**\\n * Convert first character of string literal type to lowercase\\n */\\ntype Uncapitalize<S extends string> = intrinsic;\\n\\n/**\\n * Marker for contextual \\'this\\' type\\n */\\ninterface ThisType<T> { }\\n\\n/**\\n * Represents a raw buffer of binary data, which is used to store data for the\\n * different typed arrays. ArrayBuffers cannot be read from or written to directly,\\n * but can be passed to a typed array or DataView Object to interpret the raw\\n * buffer as needed.\\n */\\ninterface ArrayBuffer {\\n    /**\\n     * Read-only. The length of the ArrayBuffer (in bytes).\\n     */\\n    readonly byteLength: number;\\n\\n    /**\\n     * Returns a section of an ArrayBuffer.\\n     */\\n    slice(begin: number, end?: number): ArrayBuffer;\\n}\\n\\n/**\\n * Allowed ArrayBuffer types for the buffer of an ArrayBufferView and related Typed Arrays.\\n */\\ninterface ArrayBufferTypes {\\n    ArrayBuffer: ArrayBuffer;\\n}\\ntype ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes];\\n\\ninterface ArrayBufferConstructor {\\n    readonly prototype: ArrayBuffer;\\n    new(byteLength: number): ArrayBuffer;\\n    isView(arg: any): arg is ArrayBufferView;\\n}\\ndeclare var ArrayBuffer: ArrayBufferConstructor;\\n\\ninterface ArrayBufferView {\\n    /**\\n     * The ArrayBuffer instance referenced by the array.\\n     */\\n    buffer: ArrayBufferLike;\\n\\n    /**\\n     * The length in bytes of the array.\\n     */\\n    byteLength: number;\\n\\n    /**\\n     * The offset in bytes of the array.\\n     */\\n    byteOffset: number;\\n}\\n\\ninterface DataView {\\n    readonly buffer: ArrayBuffer;\\n    readonly byteLength: number;\\n    readonly byteOffset: number;\\n    /**\\n     * Gets the Float32 value at the specified byte offset from the start of the view. There is\\n     * no alignment constraint; multi-byte values may be fetched from any offset.\\n     * @param byteOffset The place in the buffer at which the value should be retrieved.\\n     * @param littleEndian If false or undefined, a big-endian value should be read.\\n     */\\n    getFloat32(byteOffset: number, littleEndian?: boolean): number;\\n\\n    /**\\n     * Gets the Float64 value at the specified byte offset from the start of the view. There is\\n     * no alignment constraint; multi-byte values may be fetched from any offset.\\n     * @param byteOffset The place in the buffer at which the value should be retrieved.\\n     * @param littleEndian If false or undefined, a big-endian value should be read.\\n     */\\n    getFloat64(byteOffset: number, littleEndian?: boolean): number;\\n\\n    /**\\n     * Gets the Int8 value at the specified byte offset from the start of the view. There is\\n     * no alignment constraint; multi-byte values may be fetched from any offset.\\n     * @param byteOffset The place in the buffer at which the value should be retrieved.\\n     */\\n    getInt8(byteOffset: number): number;\\n\\n    /**\\n     * Gets the Int16 value at the specified byte offset from the start of the view. There is\\n     * no alignment constraint; multi-byte values may be fetched from any offset.\\n     * @param byteOffset The place in the buffer at which the value should be retrieved.\\n     * @param littleEndian If false or undefined, a big-endian value should be read.\\n     */\\n    getInt16(byteOffset: number, littleEndian?: boolean): number;\\n    /**\\n     * Gets the Int32 value at the specified byte offset from the start of the view. There is\\n     * no alignment constraint; multi-byte values may be fetched from any offset.\\n     * @param byteOffset The place in the buffer at which the value should be retrieved.\\n     * @param littleEndian If false or undefined, a big-endian value should be read.\\n     */\\n    getInt32(byteOffset: number, littleEndian?: boolean): number;\\n\\n    /**\\n     * Gets the Uint8 value at the specified byte offset from the start of the view. There is\\n     * no alignment constraint; multi-byte values may be fetched from any offset.\\n     * @param byteOffset The place in the buffer at which the value should be retrieved.\\n     */\\n    getUint8(byteOffset: number): number;\\n\\n    /**\\n     * Gets the Uint16 value at the specified byte offset from the start of the view. There is\\n     * no alignment constraint; multi-byte values may be fetched from any offset.\\n     * @param byteOffset The place in the buffer at which the value should be retrieved.\\n     * @param littleEndian If false or undefined, a big-endian value should be read.\\n     */\\n    getUint16(byteOffset: number, littleEndian?: boolean): number;\\n\\n    /**\\n     * Gets the Uint32 value at the specified byte offset from the start of the view. There is\\n     * no alignment constraint; multi-byte values may be fetched from any offset.\\n     * @param byteOffset The place in the buffer at which the value should be retrieved.\\n     * @param littleEndian If false or undefined, a big-endian value should be read.\\n     */\\n    getUint32(byteOffset: number, littleEndian?: boolean): number;\\n\\n    /**\\n     * Stores an Float32 value at the specified byte offset from the start of the view.\\n     * @param byteOffset The place in the buffer at which the value should be set.\\n     * @param value The value to set.\\n     * @param littleEndian If false or undefined, a big-endian value should be written.\\n     */\\n    setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;\\n\\n    /**\\n     * Stores an Float64 value at the specified byte offset from the start of the view.\\n     * @param byteOffset The place in the buffer at which the value should be set.\\n     * @param value The value to set.\\n     * @param littleEndian If false or undefined, a big-endian value should be written.\\n     */\\n    setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;\\n\\n    /**\\n     * Stores an Int8 value at the specified byte offset from the start of the view.\\n     * @param byteOffset The place in the buffer at which the value should be set.\\n     * @param value The value to set.\\n     */\\n    setInt8(byteOffset: number, value: number): void;\\n\\n    /**\\n     * Stores an Int16 value at the specified byte offset from the start of the view.\\n     * @param byteOffset The place in the buffer at which the value should be set.\\n     * @param value The value to set.\\n     * @param littleEndian If false or undefined, a big-endian value should be written.\\n     */\\n    setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;\\n\\n    /**\\n     * Stores an Int32 value at the specified byte offset from the start of the view.\\n     * @param byteOffset The place in the buffer at which the value should be set.\\n     * @param value The value to set.\\n     * @param littleEndian If false or undefined, a big-endian value should be written.\\n     */\\n    setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;\\n\\n    /**\\n     * Stores an Uint8 value at the specified byte offset from the start of the view.\\n     * @param byteOffset The place in the buffer at which the value should be set.\\n     * @param value The value to set.\\n     */\\n    setUint8(byteOffset: number, value: number): void;\\n\\n    /**\\n     * Stores an Uint16 value at the specified byte offset from the start of the view.\\n     * @param byteOffset The place in the buffer at which the value should be set.\\n     * @param value The value to set.\\n     * @param littleEndian If false or undefined, a big-endian value should be written.\\n     */\\n    setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;\\n\\n    /**\\n     * Stores an Uint32 value at the specified byte offset from the start of the view.\\n     * @param byteOffset The place in the buffer at which the value should be set.\\n     * @param value The value to set.\\n     * @param littleEndian If false or undefined, a big-endian value should be written.\\n     */\\n    setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;\\n}\\n\\ninterface DataViewConstructor {\\n    readonly prototype: DataView;\\n    new(buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView;\\n}\\ndeclare var DataView: DataViewConstructor;\\n\\n/**\\n * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested\\n * number of bytes could not be allocated an exception is raised.\\n */\\ninterface Int8Array {\\n    /**\\n     * The size in bytes of each element in the array.\\n     */\\n    readonly BYTES_PER_ELEMENT: number;\\n\\n    /**\\n     * The ArrayBuffer instance referenced by the array.\\n     */\\n    readonly buffer: ArrayBufferLike;\\n\\n    /**\\n     * The length in bytes of the array.\\n     */\\n    readonly byteLength: number;\\n\\n    /**\\n     * The offset in bytes of the array.\\n     */\\n    readonly byteOffset: number;\\n\\n    /**\\n     * Returns the this object after copying a section of the array identified by start and end\\n     * to the same array starting at position target\\n     * @param target If target is negative, it is treated as length+target where length is the\\n     * length of the array.\\n     * @param start If start is negative, it is treated as length+start. If end is negative, it\\n     * is treated as length+end.\\n     * @param end If not specified, length of the this object is used as its default value.\\n     */\\n    copyWithin(target: number, start: number, end?: number): this;\\n\\n    /**\\n     * Determines whether all the members of an array satisfy the specified test.\\n     * @param predicate A function that accepts up to three arguments. The every method calls\\n     * the predicate function for each element in the array until the predicate returns a value\\n     * which is coercible to the Boolean value false, or until the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    every(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;\\n\\n    /**\\n     * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\\n     * @param value value to fill array section with\\n     * @param start index to start filling the array at. If start is negative, it is treated as\\n     * length+start where length is the length of the array.\\n     * @param end index to stop filling the array at. If end is negative, it is treated as\\n     * length+end.\\n     */\\n    fill(value: number, start?: number, end?: number): this;\\n\\n    /**\\n     * Returns the elements of an array that meet the condition specified in a callback function.\\n     * @param predicate A function that accepts up to three arguments. The filter method calls\\n     * the predicate function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    filter(predicate: (value: number, index: number, array: Int8Array) => any, thisArg?: any): Int8Array;\\n\\n    /**\\n     * Returns the value of the first element in the array where predicate is true, and undefined\\n     * otherwise.\\n     * @param predicate find calls predicate once for each element of the array, in ascending\\n     * order, until it finds one where predicate returns true. If such an element is found, find\\n     * immediately returns that element value. Otherwise, find returns undefined.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    find(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number | undefined;\\n\\n    /**\\n     * Returns the index of the first element in the array where predicate is true, and -1\\n     * otherwise.\\n     * @param predicate find calls predicate once for each element of the array, in ascending\\n     * order, until it finds one where predicate returns true. If such an element is found,\\n     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findIndex(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number;\\n\\n    /**\\n     * Performs the specified action for each element in an array.\\n     * @param callbackfn  A function that accepts up to three arguments. forEach calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param thisArg  An object to which the this keyword can refer in the callbackfn function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void;\\n\\n    /**\\n     * Returns the index of the first occurrence of a value in an array.\\n     * @param searchElement The value to locate in the array.\\n     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\\n     *  search starts at index 0.\\n     */\\n    indexOf(searchElement: number, fromIndex?: number): number;\\n\\n    /**\\n     * Adds all the elements of an array separated by the specified separator string.\\n     * @param separator A string used to separate one element of an array from the next in the\\n     * resulting String. If omitted, the array elements are separated with a comma.\\n     */\\n    join(separator?: string): string;\\n\\n    /**\\n     * Returns the index of the last occurrence of a value in an array.\\n     * @param searchElement The value to locate in the array.\\n     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\\n     * search starts at index 0.\\n     */\\n    lastIndexOf(searchElement: number, fromIndex?: number): number;\\n\\n    /**\\n     * The length of the array.\\n     */\\n    readonly length: number;\\n\\n    /**\\n     * Calls a defined callback function on each element of an array, and returns an array that\\n     * contains the results.\\n     * @param callbackfn A function that accepts up to three arguments. The map method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array. The return value of\\n     * the callback function is the accumulated result, and is provided as an argument in the next\\n     * call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;\\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array. The return value of\\n     * the callback function is the accumulated result, and is provided as an argument in the next\\n     * call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array, in descending order.\\n     * The return value of the callback function is the accumulated result, and is provided as an\\n     * argument in the next call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\\n     * the callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an\\n     * argument instead of an array value.\\n     */\\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;\\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array, in descending order.\\n     * The return value of the callback function is the accumulated result, and is provided as an\\n     * argument in the next call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\\n     * the callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;\\n\\n    /**\\n     * Reverses the elements in an Array.\\n     */\\n    reverse(): Int8Array;\\n\\n    /**\\n     * Sets a value or an array of values.\\n     * @param array A typed or untyped array of values to set.\\n     * @param offset The index in the current array at which the values are to be written.\\n     */\\n    set(array: ArrayLike<number>, offset?: number): void;\\n\\n    /**\\n     * Returns a section of an array.\\n     * @param start The beginning of the specified portion of the array.\\n     * @param end The end of the specified portion of the array. This is exclusive of the element at the index \\'end\\'.\\n     */\\n    slice(start?: number, end?: number): Int8Array;\\n\\n    /**\\n     * Determines whether the specified callback function returns true for any element of an array.\\n     * @param predicate A function that accepts up to three arguments. The some method calls\\n     * the predicate function for each element in the array until the predicate returns a value\\n     * which is coercible to the Boolean value true, or until the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    some(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;\\n\\n    /**\\n     * Sorts an array.\\n     * @param compareFn Function used to determine the order of the elements. It is expected to return\\n     * a negative value if first argument is less than second argument, zero if they\\'re equal and a positive\\n     * value otherwise. If omitted, the elements are sorted in ascending order.\\n     * ```ts\\n     * [11,2,22,1].sort((a, b) => a - b)\\n     * ```\\n     */\\n    sort(compareFn?: (a: number, b: number) => number): this;\\n\\n    /**\\n     * Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements\\n     * at begin, inclusive, up to end, exclusive.\\n     * @param begin The index of the beginning of the array.\\n     * @param end The index of the end of the array.\\n     */\\n    subarray(begin?: number, end?: number): Int8Array;\\n\\n    /**\\n     * Converts a number to a string by using the current locale.\\n     */\\n    toLocaleString(): string;\\n\\n    /**\\n     * Returns a string representation of an array.\\n     */\\n    toString(): string;\\n\\n    /** Returns the primitive value of the specified object. */\\n    valueOf(): Int8Array;\\n\\n    [index: number]: number;\\n}\\ninterface Int8ArrayConstructor {\\n    readonly prototype: Int8Array;\\n    new(length: number): Int8Array;\\n    new(array: ArrayLike<number> | ArrayBufferLike): Int8Array;\\n    new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array;\\n\\n    /**\\n     * The size in bytes of each element in the array.\\n     */\\n    readonly BYTES_PER_ELEMENT: number;\\n\\n    /**\\n     * Returns a new array from a set of elements.\\n     * @param items A set of elements to include in the new array object.\\n     */\\n    of(...items: number[]): Int8Array;\\n\\n    /**\\n     * Creates an array from an array-like or iterable object.\\n     * @param arrayLike An array-like or iterable object to convert to an array.\\n     */\\n    from(arrayLike: ArrayLike<number>): Int8Array;\\n\\n    /**\\n     * Creates an array from an array-like or iterable object.\\n     * @param arrayLike An array-like or iterable object to convert to an array.\\n     * @param mapfn A mapping function to call on every element of the array.\\n     * @param thisArg Value of \\'this\\' used to invoke the mapfn.\\n     */\\n    from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array;\\n\\n\\n}\\ndeclare var Int8Array: Int8ArrayConstructor;\\n\\n/**\\n * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the\\n * requested number of bytes could not be allocated an exception is raised.\\n */\\ninterface Uint8Array {\\n    /**\\n     * The size in bytes of each element in the array.\\n     */\\n    readonly BYTES_PER_ELEMENT: number;\\n\\n    /**\\n     * The ArrayBuffer instance referenced by the array.\\n     */\\n    readonly buffer: ArrayBufferLike;\\n\\n    /**\\n     * The length in bytes of the array.\\n     */\\n    readonly byteLength: number;\\n\\n    /**\\n     * The offset in bytes of the array.\\n     */\\n    readonly byteOffset: number;\\n\\n    /**\\n     * Returns the this object after copying a section of the array identified by start and end\\n     * to the same array starting at position target\\n     * @param target If target is negative, it is treated as length+target where length is the\\n     * length of the array.\\n     * @param start If start is negative, it is treated as length+start. If end is negative, it\\n     * is treated as length+end.\\n     * @param end If not specified, length of the this object is used as its default value.\\n     */\\n    copyWithin(target: number, start: number, end?: number): this;\\n\\n    /**\\n     * Determines whether all the members of an array satisfy the specified test.\\n     * @param predicate A function that accepts up to three arguments. The every method calls\\n     * the predicate function for each element in the array until the predicate returns a value\\n     * which is coercible to the Boolean value false, or until the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    every(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;\\n\\n    /**\\n     * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\\n     * @param value value to fill array section with\\n     * @param start index to start filling the array at. If start is negative, it is treated as\\n     * length+start where length is the length of the array.\\n     * @param end index to stop filling the array at. If end is negative, it is treated as\\n     * length+end.\\n     */\\n    fill(value: number, start?: number, end?: number): this;\\n\\n    /**\\n     * Returns the elements of an array that meet the condition specified in a callback function.\\n     * @param predicate A function that accepts up to three arguments. The filter method calls\\n     * the predicate function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    filter(predicate: (value: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array;\\n\\n    /**\\n     * Returns the value of the first element in the array where predicate is true, and undefined\\n     * otherwise.\\n     * @param predicate find calls predicate once for each element of the array, in ascending\\n     * order, until it finds one where predicate returns true. If such an element is found, find\\n     * immediately returns that element value. Otherwise, find returns undefined.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    find(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number | undefined;\\n\\n    /**\\n     * Returns the index of the first element in the array where predicate is true, and -1\\n     * otherwise.\\n     * @param predicate find calls predicate once for each element of the array, in ascending\\n     * order, until it finds one where predicate returns true. If such an element is found,\\n     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findIndex(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number;\\n\\n    /**\\n     * Performs the specified action for each element in an array.\\n     * @param callbackfn  A function that accepts up to three arguments. forEach calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param thisArg  An object to which the this keyword can refer in the callbackfn function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void;\\n\\n    /**\\n     * Returns the index of the first occurrence of a value in an array.\\n     * @param searchElement The value to locate in the array.\\n     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\\n     *  search starts at index 0.\\n     */\\n    indexOf(searchElement: number, fromIndex?: number): number;\\n\\n    /**\\n     * Adds all the elements of an array separated by the specified separator string.\\n     * @param separator A string used to separate one element of an array from the next in the\\n     * resulting String. If omitted, the array elements are separated with a comma.\\n     */\\n    join(separator?: string): string;\\n\\n    /**\\n     * Returns the index of the last occurrence of a value in an array.\\n     * @param searchElement The value to locate in the array.\\n     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\\n     * search starts at index 0.\\n     */\\n    lastIndexOf(searchElement: number, fromIndex?: number): number;\\n\\n    /**\\n     * The length of the array.\\n     */\\n    readonly length: number;\\n\\n    /**\\n     * Calls a defined callback function on each element of an array, and returns an array that\\n     * contains the results.\\n     * @param callbackfn A function that accepts up to three arguments. The map method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array. The return value of\\n     * the callback function is the accumulated result, and is provided as an argument in the next\\n     * call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;\\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array. The return value of\\n     * the callback function is the accumulated result, and is provided as an argument in the next\\n     * call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array, in descending order.\\n     * The return value of the callback function is the accumulated result, and is provided as an\\n     * argument in the next call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\\n     * the callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an\\n     * argument instead of an array value.\\n     */\\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;\\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array, in descending order.\\n     * The return value of the callback function is the accumulated result, and is provided as an\\n     * argument in the next call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\\n     * the callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;\\n\\n    /**\\n     * Reverses the elements in an Array.\\n     */\\n    reverse(): Uint8Array;\\n\\n    /**\\n     * Sets a value or an array of values.\\n     * @param array A typed or untyped array of values to set.\\n     * @param offset The index in the current array at which the values are to be written.\\n     */\\n    set(array: ArrayLike<number>, offset?: number): void;\\n\\n    /**\\n     * Returns a section of an array.\\n     * @param start The beginning of the specified portion of the array.\\n     * @param end The end of the specified portion of the array. This is exclusive of the element at the index \\'end\\'.\\n     */\\n    slice(start?: number, end?: number): Uint8Array;\\n\\n    /**\\n     * Determines whether the specified callback function returns true for any element of an array.\\n     * @param predicate A function that accepts up to three arguments. The some method calls\\n     * the predicate function for each element in the array until the predicate returns a value\\n     * which is coercible to the Boolean value true, or until the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    some(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;\\n\\n    /**\\n     * Sorts an array.\\n     * @param compareFn Function used to determine the order of the elements. It is expected to return\\n     * a negative value if first argument is less than second argument, zero if they\\'re equal and a positive\\n     * value otherwise. If omitted, the elements are sorted in ascending order.\\n     * ```ts\\n     * [11,2,22,1].sort((a, b) => a - b)\\n     * ```\\n     */\\n    sort(compareFn?: (a: number, b: number) => number): this;\\n\\n    /**\\n     * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements\\n     * at begin, inclusive, up to end, exclusive.\\n     * @param begin The index of the beginning of the array.\\n     * @param end The index of the end of the array.\\n     */\\n    subarray(begin?: number, end?: number): Uint8Array;\\n\\n    /**\\n     * Converts a number to a string by using the current locale.\\n     */\\n    toLocaleString(): string;\\n\\n    /**\\n     * Returns a string representation of an array.\\n     */\\n    toString(): string;\\n\\n    /** Returns the primitive value of the specified object. */\\n    valueOf(): Uint8Array;\\n\\n    [index: number]: number;\\n}\\n\\ninterface Uint8ArrayConstructor {\\n    readonly prototype: Uint8Array;\\n    new(length: number): Uint8Array;\\n    new(array: ArrayLike<number> | ArrayBufferLike): Uint8Array;\\n    new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array;\\n\\n    /**\\n     * The size in bytes of each element in the array.\\n     */\\n    readonly BYTES_PER_ELEMENT: number;\\n\\n    /**\\n     * Returns a new array from a set of elements.\\n     * @param items A set of elements to include in the new array object.\\n     */\\n    of(...items: number[]): Uint8Array;\\n\\n    /**\\n     * Creates an array from an array-like or iterable object.\\n     * @param arrayLike An array-like or iterable object to convert to an array.\\n     */\\n    from(arrayLike: ArrayLike<number>): Uint8Array;\\n\\n    /**\\n     * Creates an array from an array-like or iterable object.\\n     * @param arrayLike An array-like or iterable object to convert to an array.\\n     * @param mapfn A mapping function to call on every element of the array.\\n     * @param thisArg Value of \\'this\\' used to invoke the mapfn.\\n     */\\n    from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array;\\n\\n}\\ndeclare var Uint8Array: Uint8ArrayConstructor;\\n\\n/**\\n * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.\\n * If the requested number of bytes could not be allocated an exception is raised.\\n */\\ninterface Uint8ClampedArray {\\n    /**\\n     * The size in bytes of each element in the array.\\n     */\\n    readonly BYTES_PER_ELEMENT: number;\\n\\n    /**\\n     * The ArrayBuffer instance referenced by the array.\\n     */\\n    readonly buffer: ArrayBufferLike;\\n\\n    /**\\n     * The length in bytes of the array.\\n     */\\n    readonly byteLength: number;\\n\\n    /**\\n     * The offset in bytes of the array.\\n     */\\n    readonly byteOffset: number;\\n\\n    /**\\n     * Returns the this object after copying a section of the array identified by start and end\\n     * to the same array starting at position target\\n     * @param target If target is negative, it is treated as length+target where length is the\\n     * length of the array.\\n     * @param start If start is negative, it is treated as length+start. If end is negative, it\\n     * is treated as length+end.\\n     * @param end If not specified, length of the this object is used as its default value.\\n     */\\n    copyWithin(target: number, start: number, end?: number): this;\\n\\n    /**\\n     * Determines whether all the members of an array satisfy the specified test.\\n     * @param predicate A function that accepts up to three arguments. The every method calls\\n     * the predicate function for each element in the array until the predicate returns a value\\n     * which is coercible to the Boolean value false, or until the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    every(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;\\n\\n    /**\\n     * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\\n     * @param value value to fill array section with\\n     * @param start index to start filling the array at. If start is negative, it is treated as\\n     * length+start where length is the length of the array.\\n     * @param end index to stop filling the array at. If end is negative, it is treated as\\n     * length+end.\\n     */\\n    fill(value: number, start?: number, end?: number): this;\\n\\n    /**\\n     * Returns the elements of an array that meet the condition specified in a callback function.\\n     * @param predicate A function that accepts up to three arguments. The filter method calls\\n     * the predicate function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    filter(predicate: (value: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;\\n\\n    /**\\n     * Returns the value of the first element in the array where predicate is true, and undefined\\n     * otherwise.\\n     * @param predicate find calls predicate once for each element of the array, in ascending\\n     * order, until it finds one where predicate returns true. If such an element is found, find\\n     * immediately returns that element value. Otherwise, find returns undefined.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    find(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number | undefined;\\n\\n    /**\\n     * Returns the index of the first element in the array where predicate is true, and -1\\n     * otherwise.\\n     * @param predicate find calls predicate once for each element of the array, in ascending\\n     * order, until it finds one where predicate returns true. If such an element is found,\\n     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findIndex(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number;\\n\\n    /**\\n     * Performs the specified action for each element in an array.\\n     * @param callbackfn  A function that accepts up to three arguments. forEach calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param thisArg  An object to which the this keyword can refer in the callbackfn function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void;\\n\\n    /**\\n     * Returns the index of the first occurrence of a value in an array.\\n     * @param searchElement The value to locate in the array.\\n     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\\n     *  search starts at index 0.\\n     */\\n    indexOf(searchElement: number, fromIndex?: number): number;\\n\\n    /**\\n     * Adds all the elements of an array separated by the specified separator string.\\n     * @param separator A string used to separate one element of an array from the next in the\\n     * resulting String. If omitted, the array elements are separated with a comma.\\n     */\\n    join(separator?: string): string;\\n\\n    /**\\n     * Returns the index of the last occurrence of a value in an array.\\n     * @param searchElement The value to locate in the array.\\n     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\\n     * search starts at index 0.\\n     */\\n    lastIndexOf(searchElement: number, fromIndex?: number): number;\\n\\n    /**\\n     * The length of the array.\\n     */\\n    readonly length: number;\\n\\n    /**\\n     * Calls a defined callback function on each element of an array, and returns an array that\\n     * contains the results.\\n     * @param callbackfn A function that accepts up to three arguments. The map method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array. The return value of\\n     * the callback function is the accumulated result, and is provided as an argument in the next\\n     * call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;\\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array. The return value of\\n     * the callback function is the accumulated result, and is provided as an argument in the next\\n     * call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array, in descending order.\\n     * The return value of the callback function is the accumulated result, and is provided as an\\n     * argument in the next call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\\n     * the callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an\\n     * argument instead of an array value.\\n     */\\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;\\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array, in descending order.\\n     * The return value of the callback function is the accumulated result, and is provided as an\\n     * argument in the next call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\\n     * the callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;\\n\\n    /**\\n     * Reverses the elements in an Array.\\n     */\\n    reverse(): Uint8ClampedArray;\\n\\n    /**\\n     * Sets a value or an array of values.\\n     * @param array A typed or untyped array of values to set.\\n     * @param offset The index in the current array at which the values are to be written.\\n     */\\n    set(array: ArrayLike<number>, offset?: number): void;\\n\\n    /**\\n     * Returns a section of an array.\\n     * @param start The beginning of the specified portion of the array.\\n     * @param end The end of the specified portion of the array. This is exclusive of the element at the index \\'end\\'.\\n     */\\n    slice(start?: number, end?: number): Uint8ClampedArray;\\n\\n    /**\\n     * Determines whether the specified callback function returns true for any element of an array.\\n     * @param predicate A function that accepts up to three arguments. The some method calls\\n     * the predicate function for each element in the array until the predicate returns a value\\n     * which is coercible to the Boolean value true, or until the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    some(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;\\n\\n    /**\\n     * Sorts an array.\\n     * @param compareFn Function used to determine the order of the elements. It is expected to return\\n     * a negative value if first argument is less than second argument, zero if they\\'re equal and a positive\\n     * value otherwise. If omitted, the elements are sorted in ascending order.\\n     * ```ts\\n     * [11,2,22,1].sort((a, b) => a - b)\\n     * ```\\n     */\\n    sort(compareFn?: (a: number, b: number) => number): this;\\n\\n    /**\\n     * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements\\n     * at begin, inclusive, up to end, exclusive.\\n     * @param begin The index of the beginning of the array.\\n     * @param end The index of the end of the array.\\n     */\\n    subarray(begin?: number, end?: number): Uint8ClampedArray;\\n\\n    /**\\n     * Converts a number to a string by using the current locale.\\n     */\\n    toLocaleString(): string;\\n\\n    /**\\n     * Returns a string representation of an array.\\n     */\\n    toString(): string;\\n\\n    /** Returns the primitive value of the specified object. */\\n    valueOf(): Uint8ClampedArray;\\n\\n    [index: number]: number;\\n}\\n\\ninterface Uint8ClampedArrayConstructor {\\n    readonly prototype: Uint8ClampedArray;\\n    new(length: number): Uint8ClampedArray;\\n    new(array: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray;\\n    new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8ClampedArray;\\n\\n    /**\\n     * The size in bytes of each element in the array.\\n     */\\n    readonly BYTES_PER_ELEMENT: number;\\n\\n    /**\\n     * Returns a new array from a set of elements.\\n     * @param items A set of elements to include in the new array object.\\n     */\\n    of(...items: number[]): Uint8ClampedArray;\\n\\n    /**\\n     * Creates an array from an array-like or iterable object.\\n     * @param arrayLike An array-like or iterable object to convert to an array.\\n     */\\n    from(arrayLike: ArrayLike<number>): Uint8ClampedArray;\\n\\n    /**\\n     * Creates an array from an array-like or iterable object.\\n     * @param arrayLike An array-like or iterable object to convert to an array.\\n     * @param mapfn A mapping function to call on every element of the array.\\n     * @param thisArg Value of \\'this\\' used to invoke the mapfn.\\n     */\\n    from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray;\\n}\\ndeclare var Uint8ClampedArray: Uint8ClampedArrayConstructor;\\n\\n/**\\n * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the\\n * requested number of bytes could not be allocated an exception is raised.\\n */\\ninterface Int16Array {\\n    /**\\n     * The size in bytes of each element in the array.\\n     */\\n    readonly BYTES_PER_ELEMENT: number;\\n\\n    /**\\n     * The ArrayBuffer instance referenced by the array.\\n     */\\n    readonly buffer: ArrayBufferLike;\\n\\n    /**\\n     * The length in bytes of the array.\\n     */\\n    readonly byteLength: number;\\n\\n    /**\\n     * The offset in bytes of the array.\\n     */\\n    readonly byteOffset: number;\\n\\n    /**\\n     * Returns the this object after copying a section of the array identified by start and end\\n     * to the same array starting at position target\\n     * @param target If target is negative, it is treated as length+target where length is the\\n     * length of the array.\\n     * @param start If start is negative, it is treated as length+start. If end is negative, it\\n     * is treated as length+end.\\n     * @param end If not specified, length of the this object is used as its default value.\\n     */\\n    copyWithin(target: number, start: number, end?: number): this;\\n\\n    /**\\n     * Determines whether all the members of an array satisfy the specified test.\\n     * @param predicate A function that accepts up to three arguments. The every method calls\\n     * the predicate function for each element in the array until the predicate returns a value\\n     * which is coercible to the Boolean value false, or until the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    every(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;\\n\\n    /**\\n     * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\\n     * @param value value to fill array section with\\n     * @param start index to start filling the array at. If start is negative, it is treated as\\n     * length+start where length is the length of the array.\\n     * @param end index to stop filling the array at. If end is negative, it is treated as\\n     * length+end.\\n     */\\n    fill(value: number, start?: number, end?: number): this;\\n\\n    /**\\n     * Returns the elements of an array that meet the condition specified in a callback function.\\n     * @param predicate A function that accepts up to three arguments. The filter method calls\\n     * the predicate function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    filter(predicate: (value: number, index: number, array: Int16Array) => any, thisArg?: any): Int16Array;\\n\\n    /**\\n     * Returns the value of the first element in the array where predicate is true, and undefined\\n     * otherwise.\\n     * @param predicate find calls predicate once for each element of the array, in ascending\\n     * order, until it finds one where predicate returns true. If such an element is found, find\\n     * immediately returns that element value. Otherwise, find returns undefined.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    find(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number | undefined;\\n\\n    /**\\n     * Returns the index of the first element in the array where predicate is true, and -1\\n     * otherwise.\\n     * @param predicate find calls predicate once for each element of the array, in ascending\\n     * order, until it finds one where predicate returns true. If such an element is found,\\n     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findIndex(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number;\\n\\n    /**\\n     * Performs the specified action for each element in an array.\\n     * @param callbackfn  A function that accepts up to three arguments. forEach calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param thisArg  An object to which the this keyword can refer in the callbackfn function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void;\\n    /**\\n     * Returns the index of the first occurrence of a value in an array.\\n     * @param searchElement The value to locate in the array.\\n     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\\n     *  search starts at index 0.\\n     */\\n    indexOf(searchElement: number, fromIndex?: number): number;\\n\\n    /**\\n     * Adds all the elements of an array separated by the specified separator string.\\n     * @param separator A string used to separate one element of an array from the next in the\\n     * resulting String. If omitted, the array elements are separated with a comma.\\n     */\\n    join(separator?: string): string;\\n\\n    /**\\n     * Returns the index of the last occurrence of a value in an array.\\n     * @param searchElement The value to locate in the array.\\n     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\\n     * search starts at index 0.\\n     */\\n    lastIndexOf(searchElement: number, fromIndex?: number): number;\\n\\n    /**\\n     * The length of the array.\\n     */\\n    readonly length: number;\\n\\n    /**\\n     * Calls a defined callback function on each element of an array, and returns an array that\\n     * contains the results.\\n     * @param callbackfn A function that accepts up to three arguments. The map method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array. The return value of\\n     * the callback function is the accumulated result, and is provided as an argument in the next\\n     * call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;\\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array. The return value of\\n     * the callback function is the accumulated result, and is provided as an argument in the next\\n     * call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array, in descending order.\\n     * The return value of the callback function is the accumulated result, and is provided as an\\n     * argument in the next call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\\n     * the callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an\\n     * argument instead of an array value.\\n     */\\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;\\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array, in descending order.\\n     * The return value of the callback function is the accumulated result, and is provided as an\\n     * argument in the next call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\\n     * the callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;\\n\\n    /**\\n     * Reverses the elements in an Array.\\n     */\\n    reverse(): Int16Array;\\n\\n    /**\\n     * Sets a value or an array of values.\\n     * @param array A typed or untyped array of values to set.\\n     * @param offset The index in the current array at which the values are to be written.\\n     */\\n    set(array: ArrayLike<number>, offset?: number): void;\\n\\n    /**\\n     * Returns a section of an array.\\n     * @param start The beginning of the specified portion of the array.\\n     * @param end The end of the specified portion of the array. This is exclusive of the element at the index \\'end\\'.\\n     */\\n    slice(start?: number, end?: number): Int16Array;\\n\\n    /**\\n     * Determines whether the specified callback function returns true for any element of an array.\\n     * @param predicate A function that accepts up to three arguments. The some method calls\\n     * the predicate function for each element in the array until the predicate returns a value\\n     * which is coercible to the Boolean value true, or until the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    some(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;\\n\\n    /**\\n     * Sorts an array.\\n     * @param compareFn Function used to determine the order of the elements. It is expected to return\\n     * a negative value if first argument is less than second argument, zero if they\\'re equal and a positive\\n     * value otherwise. If omitted, the elements are sorted in ascending order.\\n     * ```ts\\n     * [11,2,22,1].sort((a, b) => a - b)\\n     * ```\\n     */\\n    sort(compareFn?: (a: number, b: number) => number): this;\\n\\n    /**\\n     * Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements\\n     * at begin, inclusive, up to end, exclusive.\\n     * @param begin The index of the beginning of the array.\\n     * @param end The index of the end of the array.\\n     */\\n    subarray(begin?: number, end?: number): Int16Array;\\n\\n    /**\\n     * Converts a number to a string by using the current locale.\\n     */\\n    toLocaleString(): string;\\n\\n    /**\\n     * Returns a string representation of an array.\\n     */\\n    toString(): string;\\n\\n    /** Returns the primitive value of the specified object. */\\n    valueOf(): Int16Array;\\n\\n    [index: number]: number;\\n}\\n\\ninterface Int16ArrayConstructor {\\n    readonly prototype: Int16Array;\\n    new(length: number): Int16Array;\\n    new(array: ArrayLike<number> | ArrayBufferLike): Int16Array;\\n    new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array;\\n\\n    /**\\n     * The size in bytes of each element in the array.\\n     */\\n    readonly BYTES_PER_ELEMENT: number;\\n\\n    /**\\n     * Returns a new array from a set of elements.\\n     * @param items A set of elements to include in the new array object.\\n     */\\n    of(...items: number[]): Int16Array;\\n\\n    /**\\n     * Creates an array from an array-like or iterable object.\\n     * @param arrayLike An array-like or iterable object to convert to an array.\\n     */\\n    from(arrayLike: ArrayLike<number>): Int16Array;\\n\\n    /**\\n     * Creates an array from an array-like or iterable object.\\n     * @param arrayLike An array-like or iterable object to convert to an array.\\n     * @param mapfn A mapping function to call on every element of the array.\\n     * @param thisArg Value of \\'this\\' used to invoke the mapfn.\\n     */\\n    from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array;\\n\\n\\n}\\ndeclare var Int16Array: Int16ArrayConstructor;\\n\\n/**\\n * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the\\n * requested number of bytes could not be allocated an exception is raised.\\n */\\ninterface Uint16Array {\\n    /**\\n     * The size in bytes of each element in the array.\\n     */\\n    readonly BYTES_PER_ELEMENT: number;\\n\\n    /**\\n     * The ArrayBuffer instance referenced by the array.\\n     */\\n    readonly buffer: ArrayBufferLike;\\n\\n    /**\\n     * The length in bytes of the array.\\n     */\\n    readonly byteLength: number;\\n\\n    /**\\n     * The offset in bytes of the array.\\n     */\\n    readonly byteOffset: number;\\n\\n    /**\\n     * Returns the this object after copying a section of the array identified by start and end\\n     * to the same array starting at position target\\n     * @param target If target is negative, it is treated as length+target where length is the\\n     * length of the array.\\n     * @param start If start is negative, it is treated as length+start. If end is negative, it\\n     * is treated as length+end.\\n     * @param end If not specified, length of the this object is used as its default value.\\n     */\\n    copyWithin(target: number, start: number, end?: number): this;\\n\\n    /**\\n     * Determines whether all the members of an array satisfy the specified test.\\n     * @param predicate A function that accepts up to three arguments. The every method calls\\n     * the predicate function for each element in the array until the predicate returns a value\\n     * which is coercible to the Boolean value false, or until the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    every(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;\\n\\n    /**\\n     * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\\n     * @param value value to fill array section with\\n     * @param start index to start filling the array at. If start is negative, it is treated as\\n     * length+start where length is the length of the array.\\n     * @param end index to stop filling the array at. If end is negative, it is treated as\\n     * length+end.\\n     */\\n    fill(value: number, start?: number, end?: number): this;\\n\\n    /**\\n     * Returns the elements of an array that meet the condition specified in a callback function.\\n     * @param predicate A function that accepts up to three arguments. The filter method calls\\n     * the predicate function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    filter(predicate: (value: number, index: number, array: Uint16Array) => any, thisArg?: any): Uint16Array;\\n\\n    /**\\n     * Returns the value of the first element in the array where predicate is true, and undefined\\n     * otherwise.\\n     * @param predicate find calls predicate once for each element of the array, in ascending\\n     * order, until it finds one where predicate returns true. If such an element is found, find\\n     * immediately returns that element value. Otherwise, find returns undefined.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    find(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number | undefined;\\n\\n    /**\\n     * Returns the index of the first element in the array where predicate is true, and -1\\n     * otherwise.\\n     * @param predicate find calls predicate once for each element of the array, in ascending\\n     * order, until it finds one where predicate returns true. If such an element is found,\\n     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findIndex(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number;\\n\\n    /**\\n     * Performs the specified action for each element in an array.\\n     * @param callbackfn  A function that accepts up to three arguments. forEach calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param thisArg  An object to which the this keyword can refer in the callbackfn function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void;\\n\\n    /**\\n     * Returns the index of the first occurrence of a value in an array.\\n     * @param searchElement The value to locate in the array.\\n     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\\n     *  search starts at index 0.\\n     */\\n    indexOf(searchElement: number, fromIndex?: number): number;\\n\\n    /**\\n     * Adds all the elements of an array separated by the specified separator string.\\n     * @param separator A string used to separate one element of an array from the next in the\\n     * resulting String. If omitted, the array elements are separated with a comma.\\n     */\\n    join(separator?: string): string;\\n\\n    /**\\n     * Returns the index of the last occurrence of a value in an array.\\n     * @param searchElement The value to locate in the array.\\n     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\\n     * search starts at index 0.\\n     */\\n    lastIndexOf(searchElement: number, fromIndex?: number): number;\\n\\n    /**\\n     * The length of the array.\\n     */\\n    readonly length: number;\\n\\n    /**\\n     * Calls a defined callback function on each element of an array, and returns an array that\\n     * contains the results.\\n     * @param callbackfn A function that accepts up to three arguments. The map method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array. The return value of\\n     * the callback function is the accumulated result, and is provided as an argument in the next\\n     * call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;\\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array. The return value of\\n     * the callback function is the accumulated result, and is provided as an argument in the next\\n     * call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array, in descending order.\\n     * The return value of the callback function is the accumulated result, and is provided as an\\n     * argument in the next call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\\n     * the callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an\\n     * argument instead of an array value.\\n     */\\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;\\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array, in descending order.\\n     * The return value of the callback function is the accumulated result, and is provided as an\\n     * argument in the next call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\\n     * the callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;\\n\\n    /**\\n     * Reverses the elements in an Array.\\n     */\\n    reverse(): Uint16Array;\\n\\n    /**\\n     * Sets a value or an array of values.\\n     * @param array A typed or untyped array of values to set.\\n     * @param offset The index in the current array at which the values are to be written.\\n     */\\n    set(array: ArrayLike<number>, offset?: number): void;\\n\\n    /**\\n     * Returns a section of an array.\\n     * @param start The beginning of the specified portion of the array.\\n     * @param end The end of the specified portion of the array. This is exclusive of the element at the index \\'end\\'.\\n     */\\n    slice(start?: number, end?: number): Uint16Array;\\n\\n    /**\\n     * Determines whether the specified callback function returns true for any element of an array.\\n     * @param predicate A function that accepts up to three arguments. The some method calls\\n     * the predicate function for each element in the array until the predicate returns a value\\n     * which is coercible to the Boolean value true, or until the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    some(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;\\n\\n    /**\\n     * Sorts an array.\\n     * @param compareFn Function used to determine the order of the elements. It is expected to return\\n     * a negative value if first argument is less than second argument, zero if they\\'re equal and a positive\\n     * value otherwise. If omitted, the elements are sorted in ascending order.\\n     * ```ts\\n     * [11,2,22,1].sort((a, b) => a - b)\\n     * ```\\n     */\\n    sort(compareFn?: (a: number, b: number) => number): this;\\n\\n    /**\\n     * Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements\\n     * at begin, inclusive, up to end, exclusive.\\n     * @param begin The index of the beginning of the array.\\n     * @param end The index of the end of the array.\\n     */\\n    subarray(begin?: number, end?: number): Uint16Array;\\n\\n    /**\\n     * Converts a number to a string by using the current locale.\\n     */\\n    toLocaleString(): string;\\n\\n    /**\\n     * Returns a string representation of an array.\\n     */\\n    toString(): string;\\n\\n    /** Returns the primitive value of the specified object. */\\n    valueOf(): Uint16Array;\\n\\n    [index: number]: number;\\n}\\n\\ninterface Uint16ArrayConstructor {\\n    readonly prototype: Uint16Array;\\n    new(length: number): Uint16Array;\\n    new(array: ArrayLike<number> | ArrayBufferLike): Uint16Array;\\n    new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint16Array;\\n\\n    /**\\n     * The size in bytes of each element in the array.\\n     */\\n    readonly BYTES_PER_ELEMENT: number;\\n\\n    /**\\n     * Returns a new array from a set of elements.\\n     * @param items A set of elements to include in the new array object.\\n     */\\n    of(...items: number[]): Uint16Array;\\n\\n    /**\\n     * Creates an array from an array-like or iterable object.\\n     * @param arrayLike An array-like or iterable object to convert to an array.\\n     */\\n    from(arrayLike: ArrayLike<number>): Uint16Array;\\n\\n    /**\\n     * Creates an array from an array-like or iterable object.\\n     * @param arrayLike An array-like or iterable object to convert to an array.\\n     * @param mapfn A mapping function to call on every element of the array.\\n     * @param thisArg Value of \\'this\\' used to invoke the mapfn.\\n     */\\n    from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array;\\n\\n\\n}\\ndeclare var Uint16Array: Uint16ArrayConstructor;\\n/**\\n * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the\\n * requested number of bytes could not be allocated an exception is raised.\\n */\\ninterface Int32Array {\\n    /**\\n     * The size in bytes of each element in the array.\\n     */\\n    readonly BYTES_PER_ELEMENT: number;\\n\\n    /**\\n     * The ArrayBuffer instance referenced by the array.\\n     */\\n    readonly buffer: ArrayBufferLike;\\n\\n    /**\\n     * The length in bytes of the array.\\n     */\\n    readonly byteLength: number;\\n\\n    /**\\n     * The offset in bytes of the array.\\n     */\\n    readonly byteOffset: number;\\n\\n    /**\\n     * Returns the this object after copying a section of the array identified by start and end\\n     * to the same array starting at position target\\n     * @param target If target is negative, it is treated as length+target where length is the\\n     * length of the array.\\n     * @param start If start is negative, it is treated as length+start. If end is negative, it\\n     * is treated as length+end.\\n     * @param end If not specified, length of the this object is used as its default value.\\n     */\\n    copyWithin(target: number, start: number, end?: number): this;\\n\\n    /**\\n     * Determines whether all the members of an array satisfy the specified test.\\n     * @param predicate A function that accepts up to three arguments. The every method calls\\n     * the predicate function for each element in the array until the predicate returns a value\\n     * which is coercible to the Boolean value false, or until the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    every(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;\\n\\n    /**\\n     * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\\n     * @param value value to fill array section with\\n     * @param start index to start filling the array at. If start is negative, it is treated as\\n     * length+start where length is the length of the array.\\n     * @param end index to stop filling the array at. If end is negative, it is treated as\\n     * length+end.\\n     */\\n    fill(value: number, start?: number, end?: number): this;\\n\\n    /**\\n     * Returns the elements of an array that meet the condition specified in a callback function.\\n     * @param predicate A function that accepts up to three arguments. The filter method calls\\n     * the predicate function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    filter(predicate: (value: number, index: number, array: Int32Array) => any, thisArg?: any): Int32Array;\\n\\n    /**\\n     * Returns the value of the first element in the array where predicate is true, and undefined\\n     * otherwise.\\n     * @param predicate find calls predicate once for each element of the array, in ascending\\n     * order, until it finds one where predicate returns true. If such an element is found, find\\n     * immediately returns that element value. Otherwise, find returns undefined.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    find(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number | undefined;\\n\\n    /**\\n     * Returns the index of the first element in the array where predicate is true, and -1\\n     * otherwise.\\n     * @param predicate find calls predicate once for each element of the array, in ascending\\n     * order, until it finds one where predicate returns true. If such an element is found,\\n     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findIndex(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number;\\n\\n    /**\\n     * Performs the specified action for each element in an array.\\n     * @param callbackfn  A function that accepts up to three arguments. forEach calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param thisArg  An object to which the this keyword can refer in the callbackfn function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void;\\n\\n    /**\\n     * Returns the index of the first occurrence of a value in an array.\\n     * @param searchElement The value to locate in the array.\\n     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\\n     *  search starts at index 0.\\n     */\\n    indexOf(searchElement: number, fromIndex?: number): number;\\n\\n    /**\\n     * Adds all the elements of an array separated by the specified separator string.\\n     * @param separator A string used to separate one element of an array from the next in the\\n     * resulting String. If omitted, the array elements are separated with a comma.\\n     */\\n    join(separator?: string): string;\\n\\n    /**\\n     * Returns the index of the last occurrence of a value in an array.\\n     * @param searchElement The value to locate in the array.\\n     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\\n     * search starts at index 0.\\n     */\\n    lastIndexOf(searchElement: number, fromIndex?: number): number;\\n\\n    /**\\n     * The length of the array.\\n     */\\n    readonly length: number;\\n\\n    /**\\n     * Calls a defined callback function on each element of an array, and returns an array that\\n     * contains the results.\\n     * @param callbackfn A function that accepts up to three arguments. The map method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array. The return value of\\n     * the callback function is the accumulated result, and is provided as an argument in the next\\n     * call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;\\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array. The return value of\\n     * the callback function is the accumulated result, and is provided as an argument in the next\\n     * call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array, in descending order.\\n     * The return value of the callback function is the accumulated result, and is provided as an\\n     * argument in the next call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\\n     * the callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an\\n     * argument instead of an array value.\\n     */\\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;\\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array, in descending order.\\n     * The return value of the callback function is the accumulated result, and is provided as an\\n     * argument in the next call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\\n     * the callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;\\n\\n    /**\\n     * Reverses the elements in an Array.\\n     */\\n    reverse(): Int32Array;\\n\\n    /**\\n     * Sets a value or an array of values.\\n     * @param array A typed or untyped array of values to set.\\n     * @param offset The index in the current array at which the values are to be written.\\n     */\\n    set(array: ArrayLike<number>, offset?: number): void;\\n\\n    /**\\n     * Returns a section of an array.\\n     * @param start The beginning of the specified portion of the array.\\n     * @param end The end of the specified portion of the array. This is exclusive of the element at the index \\'end\\'.\\n     */\\n    slice(start?: number, end?: number): Int32Array;\\n\\n    /**\\n     * Determines whether the specified callback function returns true for any element of an array.\\n     * @param predicate A function that accepts up to three arguments. The some method calls\\n     * the predicate function for each element in the array until the predicate returns a value\\n     * which is coercible to the Boolean value true, or until the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    some(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;\\n\\n    /**\\n     * Sorts an array.\\n     * @param compareFn Function used to determine the order of the elements. It is expected to return\\n     * a negative value if first argument is less than second argument, zero if they\\'re equal and a positive\\n     * value otherwise. If omitted, the elements are sorted in ascending order.\\n     * ```ts\\n     * [11,2,22,1].sort((a, b) => a - b)\\n     * ```\\n     */\\n    sort(compareFn?: (a: number, b: number) => number): this;\\n\\n    /**\\n     * Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements\\n     * at begin, inclusive, up to end, exclusive.\\n     * @param begin The index of the beginning of the array.\\n     * @param end The index of the end of the array.\\n     */\\n    subarray(begin?: number, end?: number): Int32Array;\\n\\n    /**\\n     * Converts a number to a string by using the current locale.\\n     */\\n    toLocaleString(): string;\\n\\n    /**\\n     * Returns a string representation of an array.\\n     */\\n    toString(): string;\\n\\n    /** Returns the primitive value of the specified object. */\\n    valueOf(): Int32Array;\\n\\n    [index: number]: number;\\n}\\n\\ninterface Int32ArrayConstructor {\\n    readonly prototype: Int32Array;\\n    new(length: number): Int32Array;\\n    new(array: ArrayLike<number> | ArrayBufferLike): Int32Array;\\n    new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int32Array;\\n\\n    /**\\n     * The size in bytes of each element in the array.\\n     */\\n    readonly BYTES_PER_ELEMENT: number;\\n\\n    /**\\n     * Returns a new array from a set of elements.\\n     * @param items A set of elements to include in the new array object.\\n     */\\n    of(...items: number[]): Int32Array;\\n\\n    /**\\n     * Creates an array from an array-like or iterable object.\\n     * @param arrayLike An array-like or iterable object to convert to an array.\\n     */\\n    from(arrayLike: ArrayLike<number>): Int32Array;\\n\\n    /**\\n     * Creates an array from an array-like or iterable object.\\n     * @param arrayLike An array-like or iterable object to convert to an array.\\n     * @param mapfn A mapping function to call on every element of the array.\\n     * @param thisArg Value of \\'this\\' used to invoke the mapfn.\\n     */\\n    from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array;\\n\\n}\\ndeclare var Int32Array: Int32ArrayConstructor;\\n\\n/**\\n * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the\\n * requested number of bytes could not be allocated an exception is raised.\\n */\\ninterface Uint32Array {\\n    /**\\n     * The size in bytes of each element in the array.\\n     */\\n    readonly BYTES_PER_ELEMENT: number;\\n\\n    /**\\n     * The ArrayBuffer instance referenced by the array.\\n     */\\n    readonly buffer: ArrayBufferLike;\\n\\n    /**\\n     * The length in bytes of the array.\\n     */\\n    readonly byteLength: number;\\n\\n    /**\\n     * The offset in bytes of the array.\\n     */\\n    readonly byteOffset: number;\\n\\n    /**\\n     * Returns the this object after copying a section of the array identified by start and end\\n     * to the same array starting at position target\\n     * @param target If target is negative, it is treated as length+target where length is the\\n     * length of the array.\\n     * @param start If start is negative, it is treated as length+start. If end is negative, it\\n     * is treated as length+end.\\n     * @param end If not specified, length of the this object is used as its default value.\\n     */\\n    copyWithin(target: number, start: number, end?: number): this;\\n\\n    /**\\n     * Determines whether all the members of an array satisfy the specified test.\\n     * @param predicate A function that accepts up to three arguments. The every method calls\\n     * the predicate function for each element in the array until the predicate returns a value\\n     * which is coercible to the Boolean value false, or until the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    every(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;\\n\\n    /**\\n     * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\\n     * @param value value to fill array section with\\n     * @param start index to start filling the array at. If start is negative, it is treated as\\n     * length+start where length is the length of the array.\\n     * @param end index to stop filling the array at. If end is negative, it is treated as\\n     * length+end.\\n     */\\n    fill(value: number, start?: number, end?: number): this;\\n\\n    /**\\n     * Returns the elements of an array that meet the condition specified in a callback function.\\n     * @param predicate A function that accepts up to three arguments. The filter method calls\\n     * the predicate function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    filter(predicate: (value: number, index: number, array: Uint32Array) => any, thisArg?: any): Uint32Array;\\n\\n    /**\\n     * Returns the value of the first element in the array where predicate is true, and undefined\\n     * otherwise.\\n     * @param predicate find calls predicate once for each element of the array, in ascending\\n     * order, until it finds one where predicate returns true. If such an element is found, find\\n     * immediately returns that element value. Otherwise, find returns undefined.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    find(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number | undefined;\\n\\n    /**\\n     * Returns the index of the first element in the array where predicate is true, and -1\\n     * otherwise.\\n     * @param predicate find calls predicate once for each element of the array, in ascending\\n     * order, until it finds one where predicate returns true. If such an element is found,\\n     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findIndex(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number;\\n\\n    /**\\n     * Performs the specified action for each element in an array.\\n     * @param callbackfn  A function that accepts up to three arguments. forEach calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param thisArg  An object to which the this keyword can refer in the callbackfn function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void;\\n    /**\\n     * Returns the index of the first occurrence of a value in an array.\\n     * @param searchElement The value to locate in the array.\\n     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\\n     *  search starts at index 0.\\n     */\\n    indexOf(searchElement: number, fromIndex?: number): number;\\n\\n    /**\\n     * Adds all the elements of an array separated by the specified separator string.\\n     * @param separator A string used to separate one element of an array from the next in the\\n     * resulting String. If omitted, the array elements are separated with a comma.\\n     */\\n    join(separator?: string): string;\\n\\n    /**\\n     * Returns the index of the last occurrence of a value in an array.\\n     * @param searchElement The value to locate in the array.\\n     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\\n     * search starts at index 0.\\n     */\\n    lastIndexOf(searchElement: number, fromIndex?: number): number;\\n\\n    /**\\n     * The length of the array.\\n     */\\n    readonly length: number;\\n\\n    /**\\n     * Calls a defined callback function on each element of an array, and returns an array that\\n     * contains the results.\\n     * @param callbackfn A function that accepts up to three arguments. The map method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array. The return value of\\n     * the callback function is the accumulated result, and is provided as an argument in the next\\n     * call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;\\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array. The return value of\\n     * the callback function is the accumulated result, and is provided as an argument in the next\\n     * call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array, in descending order.\\n     * The return value of the callback function is the accumulated result, and is provided as an\\n     * argument in the next call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\\n     * the callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an\\n     * argument instead of an array value.\\n     */\\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;\\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array, in descending order.\\n     * The return value of the callback function is the accumulated result, and is provided as an\\n     * argument in the next call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\\n     * the callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;\\n\\n    /**\\n     * Reverses the elements in an Array.\\n     */\\n    reverse(): Uint32Array;\\n\\n    /**\\n     * Sets a value or an array of values.\\n     * @param array A typed or untyped array of values to set.\\n     * @param offset The index in the current array at which the values are to be written.\\n     */\\n    set(array: ArrayLike<number>, offset?: number): void;\\n\\n    /**\\n     * Returns a section of an array.\\n     * @param start The beginning of the specified portion of the array.\\n     * @param end The end of the specified portion of the array. This is exclusive of the element at the index \\'end\\'.\\n     */\\n    slice(start?: number, end?: number): Uint32Array;\\n\\n    /**\\n     * Determines whether the specified callback function returns true for any element of an array.\\n     * @param predicate A function that accepts up to three arguments. The some method calls\\n     * the predicate function for each element in the array until the predicate returns a value\\n     * which is coercible to the Boolean value true, or until the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    some(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;\\n\\n    /**\\n     * Sorts an array.\\n     * @param compareFn Function used to determine the order of the elements. It is expected to return\\n     * a negative value if first argument is less than second argument, zero if they\\'re equal and a positive\\n     * value otherwise. If omitted, the elements are sorted in ascending order.\\n     * ```ts\\n     * [11,2,22,1].sort((a, b) => a - b)\\n     * ```\\n     */\\n    sort(compareFn?: (a: number, b: number) => number): this;\\n\\n    /**\\n     * Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements\\n     * at begin, inclusive, up to end, exclusive.\\n     * @param begin The index of the beginning of the array.\\n     * @param end The index of the end of the array.\\n     */\\n    subarray(begin?: number, end?: number): Uint32Array;\\n\\n    /**\\n     * Converts a number to a string by using the current locale.\\n     */\\n    toLocaleString(): string;\\n\\n    /**\\n     * Returns a string representation of an array.\\n     */\\n    toString(): string;\\n\\n    /** Returns the primitive value of the specified object. */\\n    valueOf(): Uint32Array;\\n\\n    [index: number]: number;\\n}\\n\\ninterface Uint32ArrayConstructor {\\n    readonly prototype: Uint32Array;\\n    new(length: number): Uint32Array;\\n    new(array: ArrayLike<number> | ArrayBufferLike): Uint32Array;\\n    new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint32Array;\\n\\n    /**\\n     * The size in bytes of each element in the array.\\n     */\\n    readonly BYTES_PER_ELEMENT: number;\\n\\n    /**\\n     * Returns a new array from a set of elements.\\n     * @param items A set of elements to include in the new array object.\\n     */\\n    of(...items: number[]): Uint32Array;\\n\\n    /**\\n     * Creates an array from an array-like or iterable object.\\n     * @param arrayLike An array-like or iterable object to convert to an array.\\n     */\\n    from(arrayLike: ArrayLike<number>): Uint32Array;\\n\\n    /**\\n     * Creates an array from an array-like or iterable object.\\n     * @param arrayLike An array-like or iterable object to convert to an array.\\n     * @param mapfn A mapping function to call on every element of the array.\\n     * @param thisArg Value of \\'this\\' used to invoke the mapfn.\\n     */\\n    from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array;\\n\\n}\\ndeclare var Uint32Array: Uint32ArrayConstructor;\\n\\n/**\\n * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number\\n * of bytes could not be allocated an exception is raised.\\n */\\ninterface Float32Array {\\n    /**\\n     * The size in bytes of each element in the array.\\n     */\\n    readonly BYTES_PER_ELEMENT: number;\\n\\n    /**\\n     * The ArrayBuffer instance referenced by the array.\\n     */\\n    readonly buffer: ArrayBufferLike;\\n\\n    /**\\n     * The length in bytes of the array.\\n     */\\n    readonly byteLength: number;\\n\\n    /**\\n     * The offset in bytes of the array.\\n     */\\n    readonly byteOffset: number;\\n\\n    /**\\n     * Returns the this object after copying a section of the array identified by start and end\\n     * to the same array starting at position target\\n     * @param target If target is negative, it is treated as length+target where length is the\\n     * length of the array.\\n     * @param start If start is negative, it is treated as length+start. If end is negative, it\\n     * is treated as length+end.\\n     * @param end If not specified, length of the this object is used as its default value.\\n     */\\n    copyWithin(target: number, start: number, end?: number): this;\\n\\n    /**\\n     * Determines whether all the members of an array satisfy the specified test.\\n     * @param predicate A function that accepts up to three arguments. The every method calls\\n     * the predicate function for each element in the array until the predicate returns a value\\n     * which is coercible to the Boolean value false, or until the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    every(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;\\n\\n    /**\\n     * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\\n     * @param value value to fill array section with\\n     * @param start index to start filling the array at. If start is negative, it is treated as\\n     * length+start where length is the length of the array.\\n     * @param end index to stop filling the array at. If end is negative, it is treated as\\n     * length+end.\\n     */\\n    fill(value: number, start?: number, end?: number): this;\\n\\n    /**\\n     * Returns the elements of an array that meet the condition specified in a callback function.\\n     * @param predicate A function that accepts up to three arguments. The filter method calls\\n     * the predicate function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    filter(predicate: (value: number, index: number, array: Float32Array) => any, thisArg?: any): Float32Array;\\n\\n    /**\\n     * Returns the value of the first element in the array where predicate is true, and undefined\\n     * otherwise.\\n     * @param predicate find calls predicate once for each element of the array, in ascending\\n     * order, until it finds one where predicate returns true. If such an element is found, find\\n     * immediately returns that element value. Otherwise, find returns undefined.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    find(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number | undefined;\\n\\n    /**\\n     * Returns the index of the first element in the array where predicate is true, and -1\\n     * otherwise.\\n     * @param predicate find calls predicate once for each element of the array, in ascending\\n     * order, until it finds one where predicate returns true. If such an element is found,\\n     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findIndex(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number;\\n\\n    /**\\n     * Performs the specified action for each element in an array.\\n     * @param callbackfn  A function that accepts up to three arguments. forEach calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param thisArg  An object to which the this keyword can refer in the callbackfn function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void;\\n\\n    /**\\n     * Returns the index of the first occurrence of a value in an array.\\n     * @param searchElement The value to locate in the array.\\n     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\\n     *  search starts at index 0.\\n     */\\n    indexOf(searchElement: number, fromIndex?: number): number;\\n\\n    /**\\n     * Adds all the elements of an array separated by the specified separator string.\\n     * @param separator A string used to separate one element of an array from the next in the\\n     * resulting String. If omitted, the array elements are separated with a comma.\\n     */\\n    join(separator?: string): string;\\n\\n    /**\\n     * Returns the index of the last occurrence of a value in an array.\\n     * @param searchElement The value to locate in the array.\\n     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\\n     * search starts at index 0.\\n     */\\n    lastIndexOf(searchElement: number, fromIndex?: number): number;\\n\\n    /**\\n     * The length of the array.\\n     */\\n    readonly length: number;\\n\\n    /**\\n     * Calls a defined callback function on each element of an array, and returns an array that\\n     * contains the results.\\n     * @param callbackfn A function that accepts up to three arguments. The map method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array. The return value of\\n     * the callback function is the accumulated result, and is provided as an argument in the next\\n     * call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;\\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array. The return value of\\n     * the callback function is the accumulated result, and is provided as an argument in the next\\n     * call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array, in descending order.\\n     * The return value of the callback function is the accumulated result, and is provided as an\\n     * argument in the next call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\\n     * the callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an\\n     * argument instead of an array value.\\n     */\\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;\\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array, in descending order.\\n     * The return value of the callback function is the accumulated result, and is provided as an\\n     * argument in the next call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\\n     * the callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;\\n\\n    /**\\n     * Reverses the elements in an Array.\\n     */\\n    reverse(): Float32Array;\\n\\n    /**\\n     * Sets a value or an array of values.\\n     * @param array A typed or untyped array of values to set.\\n     * @param offset The index in the current array at which the values are to be written.\\n     */\\n    set(array: ArrayLike<number>, offset?: number): void;\\n\\n    /**\\n     * Returns a section of an array.\\n     * @param start The beginning of the specified portion of the array.\\n     * @param end The end of the specified portion of the array. This is exclusive of the element at the index \\'end\\'.\\n     */\\n    slice(start?: number, end?: number): Float32Array;\\n\\n    /**\\n     * Determines whether the specified callback function returns true for any element of an array.\\n     * @param predicate A function that accepts up to three arguments. The some method calls\\n     * the predicate function for each element in the array until the predicate returns a value\\n     * which is coercible to the Boolean value true, or until the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    some(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;\\n\\n    /**\\n     * Sorts an array.\\n     * @param compareFn Function used to determine the order of the elements. It is expected to return\\n     * a negative value if first argument is less than second argument, zero if they\\'re equal and a positive\\n     * value otherwise. If omitted, the elements are sorted in ascending order.\\n     * ```ts\\n     * [11,2,22,1].sort((a, b) => a - b)\\n     * ```\\n     */\\n    sort(compareFn?: (a: number, b: number) => number): this;\\n\\n    /**\\n     * Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements\\n     * at begin, inclusive, up to end, exclusive.\\n     * @param begin The index of the beginning of the array.\\n     * @param end The index of the end of the array.\\n     */\\n    subarray(begin?: number, end?: number): Float32Array;\\n\\n    /**\\n     * Converts a number to a string by using the current locale.\\n     */\\n    toLocaleString(): string;\\n\\n    /**\\n     * Returns a string representation of an array.\\n     */\\n    toString(): string;\\n\\n    /** Returns the primitive value of the specified object. */\\n    valueOf(): Float32Array;\\n\\n    [index: number]: number;\\n}\\n\\ninterface Float32ArrayConstructor {\\n    readonly prototype: Float32Array;\\n    new(length: number): Float32Array;\\n    new(array: ArrayLike<number> | ArrayBufferLike): Float32Array;\\n    new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array;\\n\\n    /**\\n     * The size in bytes of each element in the array.\\n     */\\n    readonly BYTES_PER_ELEMENT: number;\\n\\n    /**\\n     * Returns a new array from a set of elements.\\n     * @param items A set of elements to include in the new array object.\\n     */\\n    of(...items: number[]): Float32Array;\\n\\n    /**\\n     * Creates an array from an array-like or iterable object.\\n     * @param arrayLike An array-like or iterable object to convert to an array.\\n     */\\n    from(arrayLike: ArrayLike<number>): Float32Array;\\n\\n    /**\\n     * Creates an array from an array-like or iterable object.\\n     * @param arrayLike An array-like or iterable object to convert to an array.\\n     * @param mapfn A mapping function to call on every element of the array.\\n     * @param thisArg Value of \\'this\\' used to invoke the mapfn.\\n     */\\n    from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array;\\n\\n\\n}\\ndeclare var Float32Array: Float32ArrayConstructor;\\n\\n/**\\n * A typed array of 64-bit float values. The contents are initialized to 0. If the requested\\n * number of bytes could not be allocated an exception is raised.\\n */\\ninterface Float64Array {\\n    /**\\n     * The size in bytes of each element in the array.\\n     */\\n    readonly BYTES_PER_ELEMENT: number;\\n\\n    /**\\n     * The ArrayBuffer instance referenced by the array.\\n     */\\n    readonly buffer: ArrayBufferLike;\\n\\n    /**\\n     * The length in bytes of the array.\\n     */\\n    readonly byteLength: number;\\n\\n    /**\\n     * The offset in bytes of the array.\\n     */\\n    readonly byteOffset: number;\\n\\n    /**\\n     * Returns the this object after copying a section of the array identified by start and end\\n     * to the same array starting at position target\\n     * @param target If target is negative, it is treated as length+target where length is the\\n     * length of the array.\\n     * @param start If start is negative, it is treated as length+start. If end is negative, it\\n     * is treated as length+end.\\n     * @param end If not specified, length of the this object is used as its default value.\\n     */\\n    copyWithin(target: number, start: number, end?: number): this;\\n\\n    /**\\n     * Determines whether all the members of an array satisfy the specified test.\\n     * @param predicate A function that accepts up to three arguments. The every method calls\\n     * the predicate function for each element in the array until the predicate returns a value\\n     * which is coercible to the Boolean value false, or until the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    every(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;\\n\\n    /**\\n     * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\\n     * @param value value to fill array section with\\n     * @param start index to start filling the array at. If start is negative, it is treated as\\n     * length+start where length is the length of the array.\\n     * @param end index to stop filling the array at. If end is negative, it is treated as\\n     * length+end.\\n     */\\n    fill(value: number, start?: number, end?: number): this;\\n\\n    /**\\n     * Returns the elements of an array that meet the condition specified in a callback function.\\n     * @param predicate A function that accepts up to three arguments. The filter method calls\\n     * the predicate function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    filter(predicate: (value: number, index: number, array: Float64Array) => any, thisArg?: any): Float64Array;\\n\\n    /**\\n     * Returns the value of the first element in the array where predicate is true, and undefined\\n     * otherwise.\\n     * @param predicate find calls predicate once for each element of the array, in ascending\\n     * order, until it finds one where predicate returns true. If such an element is found, find\\n     * immediately returns that element value. Otherwise, find returns undefined.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    find(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number | undefined;\\n\\n    /**\\n     * Returns the index of the first element in the array where predicate is true, and -1\\n     * otherwise.\\n     * @param predicate find calls predicate once for each element of the array, in ascending\\n     * order, until it finds one where predicate returns true. If such an element is found,\\n     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\\n     * @param thisArg If provided, it will be used as the this value for each invocation of\\n     * predicate. If it is not provided, undefined is used instead.\\n     */\\n    findIndex(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number;\\n\\n    /**\\n     * Performs the specified action for each element in an array.\\n     * @param callbackfn  A function that accepts up to three arguments. forEach calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param thisArg  An object to which the this keyword can refer in the callbackfn function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void;\\n\\n    /**\\n     * Returns the index of the first occurrence of a value in an array.\\n     * @param searchElement The value to locate in the array.\\n     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\\n     *  search starts at index 0.\\n     */\\n    indexOf(searchElement: number, fromIndex?: number): number;\\n\\n    /**\\n     * Adds all the elements of an array separated by the specified separator string.\\n     * @param separator A string used to separate one element of an array from the next in the\\n     * resulting String. If omitted, the array elements are separated with a comma.\\n     */\\n    join(separator?: string): string;\\n\\n    /**\\n     * Returns the index of the last occurrence of a value in an array.\\n     * @param searchElement The value to locate in the array.\\n     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\\n     * search starts at index 0.\\n     */\\n    lastIndexOf(searchElement: number, fromIndex?: number): number;\\n\\n    /**\\n     * The length of the array.\\n     */\\n    readonly length: number;\\n\\n    /**\\n     * Calls a defined callback function on each element of an array, and returns an array that\\n     * contains the results.\\n     * @param callbackfn A function that accepts up to three arguments. The map method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param thisArg An object to which the this keyword can refer in the callbackfn function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array. The return value of\\n     * the callback function is the accumulated result, and is provided as an argument in the next\\n     * call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;\\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array. The return value of\\n     * the callback function is the accumulated result, and is provided as an argument in the next\\n     * call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\\n     * callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array, in descending order.\\n     * The return value of the callback function is the accumulated result, and is provided as an\\n     * argument in the next call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\\n     * the callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an\\n     * argument instead of an array value.\\n     */\\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;\\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;\\n\\n    /**\\n     * Calls the specified callback function for all the elements in an array, in descending order.\\n     * The return value of the callback function is the accumulated result, and is provided as an\\n     * argument in the next call to the callback function.\\n     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\\n     * the callbackfn function one time for each element in the array.\\n     * @param initialValue If initialValue is specified, it is used as the initial value to start\\n     * the accumulation. The first call to the callbackfn function provides this value as an argument\\n     * instead of an array value.\\n     */\\n    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;\\n\\n    /**\\n     * Reverses the elements in an Array.\\n     */\\n    reverse(): Float64Array;\\n\\n    /**\\n     * Sets a value or an array of values.\\n     * @param array A typed or untyped array of values to set.\\n     * @param offset The index in the current array at which the values are to be written.\\n     */\\n    set(array: ArrayLike<number>, offset?: number): void;\\n\\n    /**\\n     * Returns a section of an array.\\n     * @param start The beginning of the specified portion of the array.\\n     * @param end The end of the specified portion of the array. This is exclusive of the element at the index \\'end\\'.\\n     */\\n    slice(start?: number, end?: number): Float64Array;\\n\\n    /**\\n     * Determines whether the specified callback function returns true for any element of an array.\\n     * @param predicate A function that accepts up to three arguments. The some method calls\\n     * the predicate function for each element in the array until the predicate returns a value\\n     * which is coercible to the Boolean value true, or until the end of the array.\\n     * @param thisArg An object to which the this keyword can refer in the predicate function.\\n     * If thisArg is omitted, undefined is used as the this value.\\n     */\\n    some(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;\\n\\n    /**\\n     * Sorts an array.\\n     * @param compareFn Function used to determine the order of the elements. It is expected to return\\n     * a negative value if first argument is less than second argument, zero if they\\'re equal and a positive\\n     * value otherwise. If omitted, the elements are sorted in ascending order.\\n     * ```ts\\n     * [11,2,22,1].sort((a, b) => a - b)\\n     * ```\\n     */\\n    sort(compareFn?: (a: number, b: number) => number): this;\\n\\n    /**\\n     * at begin, inclusive, up to end, exclusive.\\n     * @param begin The index of the beginning of the array.\\n     * @param end The index of the end of the array.\\n     */\\n    subarray(begin?: number, end?: number): Float64Array;\\n\\n    toString(): string;\\n\\n    /** Returns the primitive value of the specified object. */\\n    valueOf(): Float64Array;\\n\\n    [index: number]: number;\\n}\\n\\ninterface Float64ArrayConstructor {\\n    readonly prototype: Float64Array;\\n    new(length: number): Float64Array;\\n    new(array: ArrayLike<number> | ArrayBufferLike): Float64Array;\\n    new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array;\\n\\n    /**\\n     * The size in bytes of each element in the array.\\n     */\\n    readonly BYTES_PER_ELEMENT: number;\\n\\n    /**\\n     * Returns a new array from a set of elements.\\n     * @param items A set of elements to include in the new array object.\\n     */\\n    of(...items: number[]): Float64Array;\\n\\n    /**\\n     * Creates an array from an array-like or iterable object.\\n     * @param arrayLike An array-like or iterable object to convert to an array.\\n     */\\n    from(arrayLike: ArrayLike<number>): Float64Array;\\n\\n    /**\\n     * Creates an array from an array-like or iterable object.\\n     * @param arrayLike An array-like or iterable object to convert to an array.\\n     * @param mapfn A mapping function to call on every element of the array.\\n     * @param thisArg Value of \\'this\\' used to invoke the mapfn.\\n     */\\n    from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array;\\n\\n}\\ndeclare var Float64Array: Float64ArrayConstructor;\\n\\n/////////////////////////////\\n/// ECMAScript Internationalization API\\n/////////////////////////////\\n\\ndeclare namespace Intl {\\n    interface CollatorOptions {\\n        usage?: string | undefined;\\n        localeMatcher?: string | undefined;\\n        numeric?: boolean | undefined;\\n        caseFirst?: string | undefined;\\n        sensitivity?: string | undefined;\\n        ignorePunctuation?: boolean | undefined;\\n    }\\n\\n    interface ResolvedCollatorOptions {\\n        locale: string;\\n        usage: string;\\n        sensitivity: string;\\n        ignorePunctuation: boolean;\\n        collation: string;\\n        caseFirst: string;\\n        numeric: boolean;\\n    }\\n\\n    interface Collator {\\n        compare(x: string, y: string): number;\\n        resolvedOptions(): ResolvedCollatorOptions;\\n    }\\n    var Collator: {\\n        new(locales?: string | string[], options?: CollatorOptions): Collator;\\n        (locales?: string | string[], options?: CollatorOptions): Collator;\\n        supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];\\n    };\\n\\n    interface NumberFormatOptions {\\n        localeMatcher?: string | undefined;\\n        style?: string | undefined;\\n        currency?: string | undefined;\\n        currencySign?: string | undefined;\\n        useGrouping?: boolean | undefined;\\n        minimumIntegerDigits?: number | undefined;\\n        minimumFractionDigits?: number | undefined;\\n        maximumFractionDigits?: number | undefined;\\n        minimumSignificantDigits?: number | undefined;\\n        maximumSignificantDigits?: number | undefined;\\n    }\\n\\n    interface ResolvedNumberFormatOptions {\\n        locale: string;\\n        numberingSystem: string;\\n        style: string;\\n        currency?: string;\\n        minimumIntegerDigits: number;\\n        minimumFractionDigits: number;\\n        maximumFractionDigits: number;\\n        minimumSignificantDigits?: number;\\n        maximumSignificantDigits?: number;\\n        useGrouping: boolean;\\n    }\\n\\n    interface NumberFormat {\\n        format(value: number): string;\\n        resolvedOptions(): ResolvedNumberFormatOptions;\\n    }\\n    var NumberFormat: {\\n        new(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;\\n        (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;\\n        supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];\\n        readonly prototype: NumberFormat;\\n    };\\n\\n    interface DateTimeFormatOptions {\\n        localeMatcher?: \"best fit\" | \"lookup\" | undefined;\\n        weekday?: \"long\" | \"short\" | \"narrow\" | undefined;\\n        era?: \"long\" | \"short\" | \"narrow\" | undefined;\\n        year?: \"numeric\" | \"2-digit\" | undefined;\\n        month?: \"numeric\" | \"2-digit\" | \"long\" | \"short\" | \"narrow\" | undefined;\\n        day?: \"numeric\" | \"2-digit\" | undefined;\\n        hour?: \"numeric\" | \"2-digit\" | undefined;\\n        minute?: \"numeric\" | \"2-digit\" | undefined;\\n        second?: \"numeric\" | \"2-digit\" | undefined;\\n        timeZoneName?: \"short\" | \"long\" | \"shortOffset\" | \"longOffset\" | \"shortGeneric\" | \"longGeneric\" | undefined;\\n        formatMatcher?: \"best fit\" | \"basic\" | undefined;\\n        hour12?: boolean | undefined;\\n        timeZone?: string | undefined;\\n    }\\n\\n    interface ResolvedDateTimeFormatOptions {\\n        locale: string;\\n        calendar: string;\\n        numberingSystem: string;\\n        timeZone: string;\\n        hour12?: boolean;\\n        weekday?: string;\\n        era?: string;\\n        year?: string;\\n        month?: string;\\n        day?: string;\\n        hour?: string;\\n        minute?: string;\\n        second?: string;\\n        timeZoneName?: string;\\n    }\\n\\n    interface DateTimeFormat {\\n        format(date?: Date | number): string;\\n        resolvedOptions(): ResolvedDateTimeFormatOptions;\\n    }\\n    var DateTimeFormat: {\\n        new(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;\\n        (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;\\n        supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];\\n        readonly prototype: DateTimeFormat;\\n    };\\n}\\n\\ninterface String {\\n    /**\\n     * Determines whether two strings are equivalent in the current or specified locale.\\n     * @param that String to compare to target string\\n     * @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.\\n     * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.\\n     */\\n    localeCompare(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;\\n}\\n\\ninterface Number {\\n    /**\\n     * Converts a number to a string by using the current or specified locale.\\n     * @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.\\n     * @param options An object that contains one or more properties that specify comparison options.\\n     */\\n    toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;\\n}\\n\\ninterface Date {\\n    /**\\n     * Converts a date and time to a string by using the current or specified locale.\\n     * @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.\\n     * @param options An object that contains one or more properties that specify comparison options.\\n     */\\n    toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;\\n    /**\\n     * Converts a date to a string by using the current or specified locale.\\n     * @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.\\n     * @param options An object that contains one or more properties that specify comparison options.\\n     */\\n    toLocaleDateString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;\\n\\n    /**\\n     * Converts a time to a string by using the current or specified locale.\\n     * @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.\\n     * @param options An object that contains one or more properties that specify comparison options.\\n     */\\n    toLocaleTimeString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;\\n}\\n';\nlibFileMap[\"lib.es6.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es2015\" />\\n/// <reference lib=\"dom\" />\\n/// <reference lib=\"dom.iterable\" />\\n/// <reference lib=\"webworker.importscripts\" />\\n/// <reference lib=\"scripthost\" />\\n';\nlibFileMap[\"lib.esnext.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"es2023\" />\\n/// <reference lib=\"esnext.intl\" />\\n';\nlibFileMap[\"lib.esnext.full.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/// <reference lib=\"esnext\" />\\n/// <reference lib=\"dom\" />\\n/// <reference lib=\"webworker.importscripts\" />\\n/// <reference lib=\"scripthost\" />\\n/// <reference lib=\"dom.iterable\" />';\nlibFileMap[\"lib.esnext.intl.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\ndeclare namespace Intl {\\n  interface NumberRangeFormatPart extends NumberFormatPart {\\n    source: \"startRange\" | \"endRange\" | \"shared\"\\n  }\\n\\n  interface NumberFormat {\\n    formatRange(start: number | bigint, end: number | bigint): string;\\n    formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[];\\n  }\\n}\\n';\nlibFileMap[\"lib.scripthost.d.ts\"] = `/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib=\"true\"/>\n\n\n\n/////////////////////////////\n/// Windows Script Host APIS\n/////////////////////////////\n\n\ninterface ActiveXObject {\n    new (s: string): any;\n}\ndeclare var ActiveXObject: ActiveXObject;\n\ninterface ITextWriter {\n    Write(s: string): void;\n    WriteLine(s: string): void;\n    Close(): void;\n}\n\ninterface TextStreamBase {\n    /**\n     * The column number of the current character position in an input stream.\n     */\n    Column: number;\n\n    /**\n     * The current line number in an input stream.\n     */\n    Line: number;\n\n    /**\n     * Closes a text stream.\n     * It is not necessary to close standard streams; they close automatically when the process ends. If\n     * you close a standard stream, be aware that any other pointers to that standard stream become invalid.\n     */\n    Close(): void;\n}\n\ninterface TextStreamWriter extends TextStreamBase {\n    /**\n     * Sends a string to an output stream.\n     */\n    Write(s: string): void;\n\n    /**\n     * Sends a specified number of blank lines (newline characters) to an output stream.\n     */\n    WriteBlankLines(intLines: number): void;\n\n    /**\n     * Sends a string followed by a newline character to an output stream.\n     */\n    WriteLine(s: string): void;\n}\n\ninterface TextStreamReader extends TextStreamBase {\n    /**\n     * Returns a specified number of characters from an input stream, starting at the current pointer position.\n     * Does not return until the ENTER key is pressed.\n     * Can only be used on a stream in reading mode; causes an error in writing or appending mode.\n     */\n    Read(characters: number): string;\n\n    /**\n     * Returns all characters from an input stream.\n     * Can only be used on a stream in reading mode; causes an error in writing or appending mode.\n     */\n    ReadAll(): string;\n\n    /**\n     * Returns an entire line from an input stream.\n     * Although this method extracts the newline character, it does not add it to the returned string.\n     * Can only be used on a stream in reading mode; causes an error in writing or appending mode.\n     */\n    ReadLine(): string;\n\n    /**\n     * Skips a specified number of characters when reading from an input text stream.\n     * Can only be used on a stream in reading mode; causes an error in writing or appending mode.\n     * @param characters Positive number of characters to skip forward. (Backward skipping is not supported.)\n     */\n    Skip(characters: number): void;\n\n    /**\n     * Skips the next line when reading from an input text stream.\n     * Can only be used on a stream in reading mode, not writing or appending mode.\n     */\n    SkipLine(): void;\n\n    /**\n     * Indicates whether the stream pointer position is at the end of a line.\n     */\n    AtEndOfLine: boolean;\n\n    /**\n     * Indicates whether the stream pointer position is at the end of a stream.\n     */\n    AtEndOfStream: boolean;\n}\n\ndeclare var WScript: {\n    /**\n     * Outputs text to either a message box (under WScript.exe) or the command console window followed by\n     * a newline (under CScript.exe).\n     */\n    Echo(s: any): void;\n\n    /**\n     * Exposes the write-only error output stream for the current script.\n     * Can be accessed only while using CScript.exe.\n     */\n    StdErr: TextStreamWriter;\n\n    /**\n     * Exposes the write-only output stream for the current script.\n     * Can be accessed only while using CScript.exe.\n     */\n    StdOut: TextStreamWriter;\n    Arguments: { length: number; Item(n: number): string; };\n\n    /**\n     *  The full path of the currently running script.\n     */\n    ScriptFullName: string;\n\n    /**\n     * Forces the script to stop immediately, with an optional exit code.\n     */\n    Quit(exitCode?: number): number;\n\n    /**\n     * The Windows Script Host build version number.\n     */\n    BuildVersion: number;\n\n    /**\n     * Fully qualified path of the host executable.\n     */\n    FullName: string;\n\n    /**\n     * Gets/sets the script mode - interactive(true) or batch(false).\n     */\n    Interactive: boolean;\n\n    /**\n     * The name of the host executable (WScript.exe or CScript.exe).\n     */\n    Name: string;\n\n    /**\n     * Path of the directory containing the host executable.\n     */\n    Path: string;\n\n    /**\n     * The filename of the currently running script.\n     */\n    ScriptName: string;\n\n    /**\n     * Exposes the read-only input stream for the current script.\n     * Can be accessed only while using CScript.exe.\n     */\n    StdIn: TextStreamReader;\n\n    /**\n     * Windows Script Host version\n     */\n    Version: string;\n\n    /**\n     * Connects a COM object's event sources to functions named with a given prefix, in the form prefix_event.\n     */\n    ConnectObject(objEventSource: any, strPrefix: string): void;\n\n    /**\n     * Creates a COM object.\n     * @param strProgiID\n     * @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.\n     */\n    CreateObject(strProgID: string, strPrefix?: string): any;\n\n    /**\n     * Disconnects a COM object from its event sources.\n     */\n    DisconnectObject(obj: any): void;\n\n    /**\n     * Retrieves an existing object with the specified ProgID from memory, or creates a new one from a file.\n     * @param strPathname Fully qualified path to the file containing the object persisted to disk.\n     *                       For objects in memory, pass a zero-length string.\n     * @param strProgID\n     * @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.\n     */\n    GetObject(strPathname: string, strProgID?: string, strPrefix?: string): any;\n\n    /**\n     * Suspends script execution for a specified length of time, then continues execution.\n     * @param intTime Interval (in milliseconds) to suspend script execution.\n     */\n    Sleep(intTime: number): void;\n};\n\n/**\n * WSH is an alias for WScript under Windows Script Host\n */\ndeclare var WSH: typeof WScript;\n\n/**\n * Represents an Automation SAFEARRAY\n */\ndeclare class SafeArray<T = any> {\n    private constructor();\n    private SafeArray_typekey: SafeArray<T>;\n}\n\n/**\n * Allows enumerating over a COM collection, which may not have indexed item access.\n */\ninterface Enumerator<T = any> {\n    /**\n     * Returns true if the current item is the last one in the collection, or the collection is empty,\n     * or the current item is undefined.\n     */\n    atEnd(): boolean;\n\n    /**\n     * Returns the current item in the collection\n     */\n    item(): T;\n\n    /**\n     * Resets the current item in the collection to the first item. If there are no items in the collection,\n     * the current item is set to undefined.\n     */\n    moveFirst(): void;\n\n    /**\n     * Moves the current item to the next item in the collection. If the enumerator is at the end of\n     * the collection or the collection is empty, the current item is set to undefined.\n     */\n    moveNext(): void;\n}\n\ninterface EnumeratorConstructor {\n    new <T = any>(safearray: SafeArray<T>): Enumerator<T>;\n    new <T = any>(collection: { Item(index: any): T }): Enumerator<T>;\n    new <T = any>(collection: any): Enumerator<T>;\n}\n\ndeclare var Enumerator: EnumeratorConstructor;\n\n/**\n * Enables reading from a COM safe array, which might have an alternate lower bound, or multiple dimensions.\n */\ninterface VBArray<T = any> {\n    /**\n     * Returns the number of dimensions (1-based).\n     */\n    dimensions(): number;\n\n    /**\n     * Takes an index for each dimension in the array, and returns the item at the corresponding location.\n     */\n    getItem(dimension1Index: number, ...dimensionNIndexes: number[]): T;\n\n    /**\n     * Returns the smallest available index for a given dimension.\n     * @param dimension 1-based dimension (defaults to 1)\n     */\n    lbound(dimension?: number): number;\n\n    /**\n     * Returns the largest available index for a given dimension.\n     * @param dimension 1-based dimension (defaults to 1)\n     */\n    ubound(dimension?: number): number;\n\n    /**\n     * Returns a Javascript array with all the elements in the VBArray. If there are multiple dimensions,\n     * each successive dimension is appended to the end of the array.\n     * Example: [[1,2,3],[4,5,6]] becomes [1,2,3,4,5,6]\n     */\n    toArray(): T[];\n}\n\ninterface VBArrayConstructor {\n    new <T = any>(safeArray: SafeArray<T>): VBArray<T>;\n}\n\ndeclare var VBArray: VBArrayConstructor;\n\n/**\n * Automation date (VT_DATE)\n */\ndeclare class VarDate {\n    private constructor();\n    private VarDate_typekey: VarDate;\n}\n\ninterface DateConstructor {\n    new (vd: VarDate): Date;\n}\n\ninterface Date {\n    getVarDate: () => VarDate;\n}\n`;\nlibFileMap[\"lib.webworker.d.ts\"] = `/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib=\"true\"/>\n\n/////////////////////////////\n/// Worker APIs\n/////////////////////////////\n\ninterface AddEventListenerOptions extends EventListenerOptions {\n    once?: boolean;\n    passive?: boolean;\n    signal?: AbortSignal;\n}\n\ninterface AesCbcParams extends Algorithm {\n    iv: BufferSource;\n}\n\ninterface AesCtrParams extends Algorithm {\n    counter: BufferSource;\n    length: number;\n}\n\ninterface AesDerivedKeyParams extends Algorithm {\n    length: number;\n}\n\ninterface AesGcmParams extends Algorithm {\n    additionalData?: BufferSource;\n    iv: BufferSource;\n    tagLength?: number;\n}\n\ninterface AesKeyAlgorithm extends KeyAlgorithm {\n    length: number;\n}\n\ninterface AesKeyGenParams extends Algorithm {\n    length: number;\n}\n\ninterface Algorithm {\n    name: string;\n}\n\ninterface AudioConfiguration {\n    bitrate?: number;\n    channels?: string;\n    contentType: string;\n    samplerate?: number;\n    spatialRendering?: boolean;\n}\n\ninterface BlobPropertyBag {\n    endings?: EndingType;\n    type?: string;\n}\n\ninterface CacheQueryOptions {\n    ignoreMethod?: boolean;\n    ignoreSearch?: boolean;\n    ignoreVary?: boolean;\n}\n\ninterface ClientQueryOptions {\n    includeUncontrolled?: boolean;\n    type?: ClientTypes;\n}\n\ninterface CloseEventInit extends EventInit {\n    code?: number;\n    reason?: string;\n    wasClean?: boolean;\n}\n\ninterface CryptoKeyPair {\n    privateKey: CryptoKey;\n    publicKey: CryptoKey;\n}\n\ninterface CustomEventInit<T = any> extends EventInit {\n    detail?: T;\n}\n\ninterface DOMMatrix2DInit {\n    a?: number;\n    b?: number;\n    c?: number;\n    d?: number;\n    e?: number;\n    f?: number;\n    m11?: number;\n    m12?: number;\n    m21?: number;\n    m22?: number;\n    m41?: number;\n    m42?: number;\n}\n\ninterface DOMMatrixInit extends DOMMatrix2DInit {\n    is2D?: boolean;\n    m13?: number;\n    m14?: number;\n    m23?: number;\n    m24?: number;\n    m31?: number;\n    m32?: number;\n    m33?: number;\n    m34?: number;\n    m43?: number;\n    m44?: number;\n}\n\ninterface DOMPointInit {\n    w?: number;\n    x?: number;\n    y?: number;\n    z?: number;\n}\n\ninterface DOMQuadInit {\n    p1?: DOMPointInit;\n    p2?: DOMPointInit;\n    p3?: DOMPointInit;\n    p4?: DOMPointInit;\n}\n\ninterface DOMRectInit {\n    height?: number;\n    width?: number;\n    x?: number;\n    y?: number;\n}\n\ninterface EcKeyGenParams extends Algorithm {\n    namedCurve: NamedCurve;\n}\n\ninterface EcKeyImportParams extends Algorithm {\n    namedCurve: NamedCurve;\n}\n\ninterface EcdhKeyDeriveParams extends Algorithm {\n    public: CryptoKey;\n}\n\ninterface EcdsaParams extends Algorithm {\n    hash: HashAlgorithmIdentifier;\n}\n\ninterface ErrorEventInit extends EventInit {\n    colno?: number;\n    error?: any;\n    filename?: string;\n    lineno?: number;\n    message?: string;\n}\n\ninterface EventInit {\n    bubbles?: boolean;\n    cancelable?: boolean;\n    composed?: boolean;\n}\n\ninterface EventListenerOptions {\n    capture?: boolean;\n}\n\ninterface EventSourceInit {\n    withCredentials?: boolean;\n}\n\ninterface ExtendableEventInit extends EventInit {\n}\n\ninterface ExtendableMessageEventInit extends ExtendableEventInit {\n    data?: any;\n    lastEventId?: string;\n    origin?: string;\n    ports?: MessagePort[];\n    source?: Client | ServiceWorker | MessagePort | null;\n}\n\ninterface FetchEventInit extends ExtendableEventInit {\n    clientId?: string;\n    handled?: Promise<undefined>;\n    preloadResponse?: Promise<any>;\n    replacesClientId?: string;\n    request: Request;\n    resultingClientId?: string;\n}\n\ninterface FilePropertyBag extends BlobPropertyBag {\n    lastModified?: number;\n}\n\ninterface FileSystemGetDirectoryOptions {\n    create?: boolean;\n}\n\ninterface FileSystemGetFileOptions {\n    create?: boolean;\n}\n\ninterface FileSystemReadWriteOptions {\n    at?: number;\n}\n\ninterface FileSystemRemoveOptions {\n    recursive?: boolean;\n}\n\ninterface FontFaceDescriptors {\n    ascentOverride?: string;\n    descentOverride?: string;\n    display?: FontDisplay;\n    featureSettings?: string;\n    lineGapOverride?: string;\n    stretch?: string;\n    style?: string;\n    unicodeRange?: string;\n    variant?: string;\n    weight?: string;\n}\n\ninterface FontFaceSetLoadEventInit extends EventInit {\n    fontfaces?: FontFace[];\n}\n\ninterface GetNotificationOptions {\n    tag?: string;\n}\n\ninterface HkdfParams extends Algorithm {\n    hash: HashAlgorithmIdentifier;\n    info: BufferSource;\n    salt: BufferSource;\n}\n\ninterface HmacImportParams extends Algorithm {\n    hash: HashAlgorithmIdentifier;\n    length?: number;\n}\n\ninterface HmacKeyGenParams extends Algorithm {\n    hash: HashAlgorithmIdentifier;\n    length?: number;\n}\n\ninterface IDBDatabaseInfo {\n    name?: string;\n    version?: number;\n}\n\ninterface IDBIndexParameters {\n    multiEntry?: boolean;\n    unique?: boolean;\n}\n\ninterface IDBObjectStoreParameters {\n    autoIncrement?: boolean;\n    keyPath?: string | string[] | null;\n}\n\ninterface IDBTransactionOptions {\n    durability?: IDBTransactionDurability;\n}\n\ninterface IDBVersionChangeEventInit extends EventInit {\n    newVersion?: number | null;\n    oldVersion?: number;\n}\n\ninterface ImageBitmapOptions {\n    colorSpaceConversion?: ColorSpaceConversion;\n    imageOrientation?: ImageOrientation;\n    premultiplyAlpha?: PremultiplyAlpha;\n    resizeHeight?: number;\n    resizeQuality?: ResizeQuality;\n    resizeWidth?: number;\n}\n\ninterface ImageBitmapRenderingContextSettings {\n    alpha?: boolean;\n}\n\ninterface ImageDataSettings {\n    colorSpace?: PredefinedColorSpace;\n}\n\ninterface ImageEncodeOptions {\n    quality?: number;\n    type?: string;\n}\n\ninterface ImportMeta {\n    url: string;\n}\n\ninterface JsonWebKey {\n    alg?: string;\n    crv?: string;\n    d?: string;\n    dp?: string;\n    dq?: string;\n    e?: string;\n    ext?: boolean;\n    k?: string;\n    key_ops?: string[];\n    kty?: string;\n    n?: string;\n    oth?: RsaOtherPrimesInfo[];\n    p?: string;\n    q?: string;\n    qi?: string;\n    use?: string;\n    x?: string;\n    y?: string;\n}\n\ninterface KeyAlgorithm {\n    name: string;\n}\n\ninterface LockInfo {\n    clientId?: string;\n    mode?: LockMode;\n    name?: string;\n}\n\ninterface LockManagerSnapshot {\n    held?: LockInfo[];\n    pending?: LockInfo[];\n}\n\ninterface LockOptions {\n    ifAvailable?: boolean;\n    mode?: LockMode;\n    signal?: AbortSignal;\n    steal?: boolean;\n}\n\ninterface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {\n    configuration?: MediaDecodingConfiguration;\n}\n\ninterface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {\n    configuration?: MediaEncodingConfiguration;\n}\n\ninterface MediaCapabilitiesInfo {\n    powerEfficient: boolean;\n    smooth: boolean;\n    supported: boolean;\n}\n\ninterface MediaConfiguration {\n    audio?: AudioConfiguration;\n    video?: VideoConfiguration;\n}\n\ninterface MediaDecodingConfiguration extends MediaConfiguration {\n    type: MediaDecodingType;\n}\n\ninterface MediaEncodingConfiguration extends MediaConfiguration {\n    type: MediaEncodingType;\n}\n\ninterface MessageEventInit<T = any> extends EventInit {\n    data?: T;\n    lastEventId?: string;\n    origin?: string;\n    ports?: MessagePort[];\n    source?: MessageEventSource | null;\n}\n\ninterface MultiCacheQueryOptions extends CacheQueryOptions {\n    cacheName?: string;\n}\n\ninterface NavigationPreloadState {\n    enabled?: boolean;\n    headerValue?: string;\n}\n\ninterface NotificationAction {\n    action: string;\n    icon?: string;\n    title: string;\n}\n\ninterface NotificationEventInit extends ExtendableEventInit {\n    action?: string;\n    notification: Notification;\n}\n\ninterface NotificationOptions {\n    actions?: NotificationAction[];\n    badge?: string;\n    body?: string;\n    data?: any;\n    dir?: NotificationDirection;\n    icon?: string;\n    image?: string;\n    lang?: string;\n    renotify?: boolean;\n    requireInteraction?: boolean;\n    silent?: boolean;\n    tag?: string;\n    timestamp?: EpochTimeStamp;\n    vibrate?: VibratePattern;\n}\n\ninterface Pbkdf2Params extends Algorithm {\n    hash: HashAlgorithmIdentifier;\n    iterations: number;\n    salt: BufferSource;\n}\n\ninterface PerformanceMarkOptions {\n    detail?: any;\n    startTime?: DOMHighResTimeStamp;\n}\n\ninterface PerformanceMeasureOptions {\n    detail?: any;\n    duration?: DOMHighResTimeStamp;\n    end?: string | DOMHighResTimeStamp;\n    start?: string | DOMHighResTimeStamp;\n}\n\ninterface PerformanceObserverInit {\n    buffered?: boolean;\n    entryTypes?: string[];\n    type?: string;\n}\n\ninterface PermissionDescriptor {\n    name: PermissionName;\n}\n\ninterface ProgressEventInit extends EventInit {\n    lengthComputable?: boolean;\n    loaded?: number;\n    total?: number;\n}\n\ninterface PromiseRejectionEventInit extends EventInit {\n    promise: Promise<any>;\n    reason?: any;\n}\n\ninterface PushEventInit extends ExtendableEventInit {\n    data?: PushMessageDataInit;\n}\n\ninterface PushSubscriptionJSON {\n    endpoint?: string;\n    expirationTime?: EpochTimeStamp | null;\n    keys?: Record<string, string>;\n}\n\ninterface PushSubscriptionOptionsInit {\n    applicationServerKey?: BufferSource | string | null;\n    userVisibleOnly?: boolean;\n}\n\ninterface QueuingStrategy<T = any> {\n    highWaterMark?: number;\n    size?: QueuingStrategySize<T>;\n}\n\ninterface QueuingStrategyInit {\n    /**\n     * Creates a new ByteLengthQueuingStrategy with the provided high water mark.\n     *\n     * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.\n     */\n    highWaterMark: number;\n}\n\ninterface RTCEncodedAudioFrameMetadata {\n    contributingSources?: number[];\n    synchronizationSource?: number;\n}\n\ninterface RTCEncodedVideoFrameMetadata {\n    contributingSources?: number[];\n    dependencies?: number[];\n    frameId?: number;\n    height?: number;\n    spatialIndex?: number;\n    synchronizationSource?: number;\n    temporalIndex?: number;\n    width?: number;\n}\n\ninterface ReadableStreamGetReaderOptions {\n    /**\n     * Creates a ReadableStreamBYOBReader and locks the stream to the new reader.\n     *\n     * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle \"bring your own buffer\" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.\n     */\n    mode?: ReadableStreamReaderMode;\n}\n\ninterface ReadableStreamReadDoneResult<T> {\n    done: true;\n    value?: T;\n}\n\ninterface ReadableStreamReadValueResult<T> {\n    done: false;\n    value: T;\n}\n\ninterface ReadableWritablePair<R = any, W = any> {\n    readable: ReadableStream<R>;\n    /**\n     * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.\n     *\n     * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\n     */\n    writable: WritableStream<W>;\n}\n\ninterface RegistrationOptions {\n    scope?: string;\n    type?: WorkerType;\n    updateViaCache?: ServiceWorkerUpdateViaCache;\n}\n\ninterface RequestInit {\n    /** A BodyInit object or null to set request's body. */\n    body?: BodyInit | null;\n    /** A string indicating how the request will interact with the browser's cache to set request's cache. */\n    cache?: RequestCache;\n    /** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */\n    credentials?: RequestCredentials;\n    /** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */\n    headers?: HeadersInit;\n    /** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */\n    integrity?: string;\n    /** A boolean to set request's keepalive. */\n    keepalive?: boolean;\n    /** A string to set request's method. */\n    method?: string;\n    /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */\n    mode?: RequestMode;\n    /** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */\n    redirect?: RequestRedirect;\n    /** A string whose value is a same-origin URL, \"about:client\", or the empty string, to set request's referrer. */\n    referrer?: string;\n    /** A referrer policy to set request's referrerPolicy. */\n    referrerPolicy?: ReferrerPolicy;\n    /** An AbortSignal to set request's signal. */\n    signal?: AbortSignal | null;\n    /** Can only be null. Used to disassociate request from any Window. */\n    window?: null;\n}\n\ninterface ResponseInit {\n    headers?: HeadersInit;\n    status?: number;\n    statusText?: string;\n}\n\ninterface RsaHashedImportParams extends Algorithm {\n    hash: HashAlgorithmIdentifier;\n}\n\ninterface RsaHashedKeyGenParams extends RsaKeyGenParams {\n    hash: HashAlgorithmIdentifier;\n}\n\ninterface RsaKeyGenParams extends Algorithm {\n    modulusLength: number;\n    publicExponent: BigInteger;\n}\n\ninterface RsaOaepParams extends Algorithm {\n    label?: BufferSource;\n}\n\ninterface RsaOtherPrimesInfo {\n    d?: string;\n    r?: string;\n    t?: string;\n}\n\ninterface RsaPssParams extends Algorithm {\n    saltLength: number;\n}\n\ninterface SecurityPolicyViolationEventInit extends EventInit {\n    blockedURI?: string;\n    columnNumber?: number;\n    disposition: SecurityPolicyViolationEventDisposition;\n    documentURI: string;\n    effectiveDirective: string;\n    lineNumber?: number;\n    originalPolicy: string;\n    referrer?: string;\n    sample?: string;\n    sourceFile?: string;\n    statusCode: number;\n    violatedDirective: string;\n}\n\ninterface StorageEstimate {\n    quota?: number;\n    usage?: number;\n}\n\ninterface StreamPipeOptions {\n    preventAbort?: boolean;\n    preventCancel?: boolean;\n    /**\n     * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.\n     *\n     * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\n     *\n     * Errors and closures of the source and destination streams propagate as follows:\n     *\n     * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination.\n     *\n     * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source.\n     *\n     * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.\n     *\n     * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.\n     *\n     * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.\n     */\n    preventClose?: boolean;\n    signal?: AbortSignal;\n}\n\ninterface StructuredSerializeOptions {\n    transfer?: Transferable[];\n}\n\ninterface TextDecodeOptions {\n    stream?: boolean;\n}\n\ninterface TextDecoderOptions {\n    fatal?: boolean;\n    ignoreBOM?: boolean;\n}\n\ninterface TextEncoderEncodeIntoResult {\n    read?: number;\n    written?: number;\n}\n\ninterface Transformer<I = any, O = any> {\n    flush?: TransformerFlushCallback<O>;\n    readableType?: undefined;\n    start?: TransformerStartCallback<O>;\n    transform?: TransformerTransformCallback<I, O>;\n    writableType?: undefined;\n}\n\ninterface UnderlyingByteSource {\n    autoAllocateChunkSize?: number;\n    cancel?: UnderlyingSourceCancelCallback;\n    pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;\n    start?: (controller: ReadableByteStreamController) => any;\n    type: \"bytes\";\n}\n\ninterface UnderlyingDefaultSource<R = any> {\n    cancel?: UnderlyingSourceCancelCallback;\n    pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;\n    start?: (controller: ReadableStreamDefaultController<R>) => any;\n    type?: undefined;\n}\n\ninterface UnderlyingSink<W = any> {\n    abort?: UnderlyingSinkAbortCallback;\n    close?: UnderlyingSinkCloseCallback;\n    start?: UnderlyingSinkStartCallback;\n    type?: undefined;\n    write?: UnderlyingSinkWriteCallback<W>;\n}\n\ninterface UnderlyingSource<R = any> {\n    autoAllocateChunkSize?: number;\n    cancel?: UnderlyingSourceCancelCallback;\n    pull?: UnderlyingSourcePullCallback<R>;\n    start?: UnderlyingSourceStartCallback<R>;\n    type?: ReadableStreamType;\n}\n\ninterface VideoColorSpaceInit {\n    fullRange?: boolean | null;\n    matrix?: VideoMatrixCoefficients | null;\n    primaries?: VideoColorPrimaries | null;\n    transfer?: VideoTransferCharacteristics | null;\n}\n\ninterface VideoConfiguration {\n    bitrate: number;\n    colorGamut?: ColorGamut;\n    contentType: string;\n    framerate: number;\n    hdrMetadataType?: HdrMetadataType;\n    height: number;\n    scalabilityMode?: string;\n    transferFunction?: TransferFunction;\n    width: number;\n}\n\ninterface WebGLContextAttributes {\n    alpha?: boolean;\n    antialias?: boolean;\n    depth?: boolean;\n    desynchronized?: boolean;\n    failIfMajorPerformanceCaveat?: boolean;\n    powerPreference?: WebGLPowerPreference;\n    premultipliedAlpha?: boolean;\n    preserveDrawingBuffer?: boolean;\n    stencil?: boolean;\n}\n\ninterface WebGLContextEventInit extends EventInit {\n    statusMessage?: string;\n}\n\ninterface WorkerOptions {\n    credentials?: RequestCredentials;\n    name?: string;\n    type?: WorkerType;\n}\n\n/** The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. */\ninterface ANGLE_instanced_arrays {\n    drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;\n    drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;\n    vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;\n    readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE;\n}\n\n/** A controller object that allows you to abort one or more DOM requests as and when desired. */\ninterface AbortController {\n    /** Returns the AbortSignal object associated with this object. */\n    readonly signal: AbortSignal;\n    /** Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. */\n    abort(reason?: any): void;\n}\n\ndeclare var AbortController: {\n    prototype: AbortController;\n    new(): AbortController;\n};\n\ninterface AbortSignalEventMap {\n    \"abort\": Event;\n}\n\n/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */\ninterface AbortSignal extends EventTarget {\n    /** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */\n    readonly aborted: boolean;\n    onabort: ((this: AbortSignal, ev: Event) => any) | null;\n    readonly reason: any;\n    throwIfAborted(): void;\n    addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AbortSignal: {\n    prototype: AbortSignal;\n    new(): AbortSignal;\n    abort(reason?: any): AbortSignal;\n    timeout(milliseconds: number): AbortSignal;\n};\n\ninterface AbstractWorkerEventMap {\n    \"error\": ErrorEvent;\n}\n\ninterface AbstractWorker {\n    onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;\n    addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ninterface AnimationFrameProvider {\n    cancelAnimationFrame(handle: number): void;\n    requestAnimationFrame(callback: FrameRequestCallback): number;\n}\n\n/** A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. */\ninterface Blob {\n    readonly size: number;\n    readonly type: string;\n    arrayBuffer(): Promise<ArrayBuffer>;\n    slice(start?: number, end?: number, contentType?: string): Blob;\n    stream(): ReadableStream<Uint8Array>;\n    text(): Promise<string>;\n}\n\ndeclare var Blob: {\n    prototype: Blob;\n    new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;\n};\n\ninterface Body {\n    readonly body: ReadableStream<Uint8Array> | null;\n    readonly bodyUsed: boolean;\n    arrayBuffer(): Promise<ArrayBuffer>;\n    blob(): Promise<Blob>;\n    formData(): Promise<FormData>;\n    json(): Promise<any>;\n    text(): Promise<string>;\n}\n\ninterface BroadcastChannelEventMap {\n    \"message\": MessageEvent;\n    \"messageerror\": MessageEvent;\n}\n\ninterface BroadcastChannel extends EventTarget {\n    /** Returns the channel name (as passed to the constructor). */\n    readonly name: string;\n    onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n    onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n    /** Closes the BroadcastChannel object, opening it up to garbage collection. */\n    close(): void;\n    /** Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. */\n    postMessage(message: any): void;\n    addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var BroadcastChannel: {\n    prototype: BroadcastChannel;\n    new(name: string): BroadcastChannel;\n};\n\n/** This Streams API interface provides\\xA0a built-in byte length queuing strategy that can be used when constructing streams. */\ninterface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {\n    readonly highWaterMark: number;\n    readonly size: QueuingStrategySize<ArrayBufferView>;\n}\n\ndeclare var ByteLengthQueuingStrategy: {\n    prototype: ByteLengthQueuingStrategy;\n    new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;\n};\n\n/**\n * Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec.\n * Available only in secure contexts.\n */\ninterface Cache {\n    add(request: RequestInfo | URL): Promise<void>;\n    addAll(requests: RequestInfo[]): Promise<void>;\n    delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;\n    keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;\n    match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;\n    matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;\n    put(request: RequestInfo | URL, response: Response): Promise<void>;\n}\n\ndeclare var Cache: {\n    prototype: Cache;\n    new(): Cache;\n};\n\n/**\n * The storage for Cache objects.\n * Available only in secure contexts.\n */\ninterface CacheStorage {\n    delete(cacheName: string): Promise<boolean>;\n    has(cacheName: string): Promise<boolean>;\n    keys(): Promise<string[]>;\n    match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;\n    open(cacheName: string): Promise<Cache>;\n}\n\ndeclare var CacheStorage: {\n    prototype: CacheStorage;\n    new(): CacheStorage;\n};\n\ninterface CanvasCompositing {\n    globalAlpha: number;\n    globalCompositeOperation: GlobalCompositeOperation;\n}\n\ninterface CanvasDrawImage {\n    drawImage(image: CanvasImageSource, dx: number, dy: number): void;\n    drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;\n    drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;\n}\n\ninterface CanvasDrawPath {\n    beginPath(): void;\n    clip(fillRule?: CanvasFillRule): void;\n    clip(path: Path2D, fillRule?: CanvasFillRule): void;\n    fill(fillRule?: CanvasFillRule): void;\n    fill(path: Path2D, fillRule?: CanvasFillRule): void;\n    isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;\n    isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;\n    isPointInStroke(x: number, y: number): boolean;\n    isPointInStroke(path: Path2D, x: number, y: number): boolean;\n    stroke(): void;\n    stroke(path: Path2D): void;\n}\n\ninterface CanvasFillStrokeStyles {\n    fillStyle: string | CanvasGradient | CanvasPattern;\n    strokeStyle: string | CanvasGradient | CanvasPattern;\n    createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;\n    createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;\n    createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;\n    createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;\n}\n\ninterface CanvasFilters {\n    filter: string;\n}\n\n/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */\ninterface CanvasGradient {\n    /**\n     * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.\n     *\n     * Throws an \"IndexSizeError\" DOMException if the offset is out of range. Throws a \"SyntaxError\" DOMException if the color cannot be parsed.\n     */\n    addColorStop(offset: number, color: string): void;\n}\n\ndeclare var CanvasGradient: {\n    prototype: CanvasGradient;\n    new(): CanvasGradient;\n};\n\ninterface CanvasImageData {\n    createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n    createImageData(imagedata: ImageData): ImageData;\n    getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n    putImageData(imagedata: ImageData, dx: number, dy: number): void;\n    putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;\n}\n\ninterface CanvasImageSmoothing {\n    imageSmoothingEnabled: boolean;\n    imageSmoothingQuality: ImageSmoothingQuality;\n}\n\ninterface CanvasPath {\n    arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n    arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;\n    bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;\n    closePath(): void;\n    ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n    lineTo(x: number, y: number): void;\n    moveTo(x: number, y: number): void;\n    quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;\n    rect(x: number, y: number, w: number, h: number): void;\n    roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;\n}\n\ninterface CanvasPathDrawingStyles {\n    lineCap: CanvasLineCap;\n    lineDashOffset: number;\n    lineJoin: CanvasLineJoin;\n    lineWidth: number;\n    miterLimit: number;\n    getLineDash(): number[];\n    setLineDash(segments: number[]): void;\n}\n\n/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */\ninterface CanvasPattern {\n    /** Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. */\n    setTransform(transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var CanvasPattern: {\n    prototype: CanvasPattern;\n    new(): CanvasPattern;\n};\n\ninterface CanvasRect {\n    clearRect(x: number, y: number, w: number, h: number): void;\n    fillRect(x: number, y: number, w: number, h: number): void;\n    strokeRect(x: number, y: number, w: number, h: number): void;\n}\n\ninterface CanvasShadowStyles {\n    shadowBlur: number;\n    shadowColor: string;\n    shadowOffsetX: number;\n    shadowOffsetY: number;\n}\n\ninterface CanvasState {\n    restore(): void;\n    save(): void;\n}\n\ninterface CanvasText {\n    fillText(text: string, x: number, y: number, maxWidth?: number): void;\n    measureText(text: string): TextMetrics;\n    strokeText(text: string, x: number, y: number, maxWidth?: number): void;\n}\n\ninterface CanvasTextDrawingStyles {\n    direction: CanvasDirection;\n    font: string;\n    fontKerning: CanvasFontKerning;\n    textAlign: CanvasTextAlign;\n    textBaseline: CanvasTextBaseline;\n}\n\ninterface CanvasTransform {\n    getTransform(): DOMMatrix;\n    resetTransform(): void;\n    rotate(angle: number): void;\n    scale(x: number, y: number): void;\n    setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;\n    setTransform(transform?: DOMMatrix2DInit): void;\n    transform(a: number, b: number, c: number, d: number, e: number, f: number): void;\n    translate(x: number, y: number): void;\n}\n\n/** The Client\\xA0interface represents an executable context such as a Worker, or a SharedWorker. Window clients are represented by the more-specific\\xA0WindowClient. You can get\\xA0Client/WindowClient\\xA0objects from methods such as Clients.matchAll() and\\xA0Clients.get(). */\ninterface Client {\n    readonly frameType: FrameType;\n    readonly id: string;\n    readonly type: ClientTypes;\n    readonly url: string;\n    postMessage(message: any, transfer: Transferable[]): void;\n    postMessage(message: any, options?: StructuredSerializeOptions): void;\n}\n\ndeclare var Client: {\n    prototype: Client;\n    new(): Client;\n};\n\n/** Provides access to\\xA0Client\\xA0objects. Access it\\xA0via self.clients\\xA0within a\\xA0service worker. */\ninterface Clients {\n    claim(): Promise<void>;\n    get(id: string): Promise<Client | undefined>;\n    matchAll<T extends ClientQueryOptions>(options?: T): Promise<ReadonlyArray<T[\"type\"] extends \"window\" ? WindowClient : Client>>;\n    openWindow(url: string | URL): Promise<WindowClient | null>;\n}\n\ndeclare var Clients: {\n    prototype: Clients;\n    new(): Clients;\n};\n\n/** A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. */\ninterface CloseEvent extends Event {\n    /** Returns the WebSocket connection close code provided by the server. */\n    readonly code: number;\n    /** Returns the WebSocket connection close reason provided by the server. */\n    readonly reason: string;\n    /** Returns true if the connection closed cleanly; false otherwise. */\n    readonly wasClean: boolean;\n}\n\ndeclare var CloseEvent: {\n    prototype: CloseEvent;\n    new(type: string, eventInitDict?: CloseEventInit): CloseEvent;\n};\n\n/** This Streams API interface provides\\xA0a built-in byte length queuing strategy that can be used when constructing streams. */\ninterface CountQueuingStrategy extends QueuingStrategy {\n    readonly highWaterMark: number;\n    readonly size: QueuingStrategySize;\n}\n\ndeclare var CountQueuingStrategy: {\n    prototype: CountQueuingStrategy;\n    new(init: QueuingStrategyInit): CountQueuingStrategy;\n};\n\n/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */\ninterface Crypto {\n    /** Available only in secure contexts. */\n    readonly subtle: SubtleCrypto;\n    getRandomValues<T extends ArrayBufferView | null>(array: T): T;\n    /** Available only in secure contexts. */\n    randomUUID(): \\`\\${string}-\\${string}-\\${string}-\\${string}-\\${string}\\`;\n}\n\ndeclare var Crypto: {\n    prototype: Crypto;\n    new(): Crypto;\n};\n\n/**\n * The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.\n * Available only in secure contexts.\n */\ninterface CryptoKey {\n    readonly algorithm: KeyAlgorithm;\n    readonly extractable: boolean;\n    readonly type: KeyType;\n    readonly usages: KeyUsage[];\n}\n\ndeclare var CryptoKey: {\n    prototype: CryptoKey;\n    new(): CryptoKey;\n};\n\ninterface CustomEvent<T = any> extends Event {\n    /** Returns any custom data event was created with. Typically used for synthetic events. */\n    readonly detail: T;\n    /** @deprecated */\n    initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;\n}\n\ndeclare var CustomEvent: {\n    prototype: CustomEvent;\n    new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;\n};\n\n/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */\ninterface DOMException extends Error {\n    /** @deprecated */\n    readonly code: number;\n    readonly message: string;\n    readonly name: string;\n    readonly INDEX_SIZE_ERR: 1;\n    readonly DOMSTRING_SIZE_ERR: 2;\n    readonly HIERARCHY_REQUEST_ERR: 3;\n    readonly WRONG_DOCUMENT_ERR: 4;\n    readonly INVALID_CHARACTER_ERR: 5;\n    readonly NO_DATA_ALLOWED_ERR: 6;\n    readonly NO_MODIFICATION_ALLOWED_ERR: 7;\n    readonly NOT_FOUND_ERR: 8;\n    readonly NOT_SUPPORTED_ERR: 9;\n    readonly INUSE_ATTRIBUTE_ERR: 10;\n    readonly INVALID_STATE_ERR: 11;\n    readonly SYNTAX_ERR: 12;\n    readonly INVALID_MODIFICATION_ERR: 13;\n    readonly NAMESPACE_ERR: 14;\n    readonly INVALID_ACCESS_ERR: 15;\n    readonly VALIDATION_ERR: 16;\n    readonly TYPE_MISMATCH_ERR: 17;\n    readonly SECURITY_ERR: 18;\n    readonly NETWORK_ERR: 19;\n    readonly ABORT_ERR: 20;\n    readonly URL_MISMATCH_ERR: 21;\n    readonly QUOTA_EXCEEDED_ERR: 22;\n    readonly TIMEOUT_ERR: 23;\n    readonly INVALID_NODE_TYPE_ERR: 24;\n    readonly DATA_CLONE_ERR: 25;\n}\n\ndeclare var DOMException: {\n    prototype: DOMException;\n    new(message?: string, name?: string): DOMException;\n    readonly INDEX_SIZE_ERR: 1;\n    readonly DOMSTRING_SIZE_ERR: 2;\n    readonly HIERARCHY_REQUEST_ERR: 3;\n    readonly WRONG_DOCUMENT_ERR: 4;\n    readonly INVALID_CHARACTER_ERR: 5;\n    readonly NO_DATA_ALLOWED_ERR: 6;\n    readonly NO_MODIFICATION_ALLOWED_ERR: 7;\n    readonly NOT_FOUND_ERR: 8;\n    readonly NOT_SUPPORTED_ERR: 9;\n    readonly INUSE_ATTRIBUTE_ERR: 10;\n    readonly INVALID_STATE_ERR: 11;\n    readonly SYNTAX_ERR: 12;\n    readonly INVALID_MODIFICATION_ERR: 13;\n    readonly NAMESPACE_ERR: 14;\n    readonly INVALID_ACCESS_ERR: 15;\n    readonly VALIDATION_ERR: 16;\n    readonly TYPE_MISMATCH_ERR: 17;\n    readonly SECURITY_ERR: 18;\n    readonly NETWORK_ERR: 19;\n    readonly ABORT_ERR: 20;\n    readonly URL_MISMATCH_ERR: 21;\n    readonly QUOTA_EXCEEDED_ERR: 22;\n    readonly TIMEOUT_ERR: 23;\n    readonly INVALID_NODE_TYPE_ERR: 24;\n    readonly DATA_CLONE_ERR: 25;\n};\n\ninterface DOMMatrix extends DOMMatrixReadOnly {\n    a: number;\n    b: number;\n    c: number;\n    d: number;\n    e: number;\n    f: number;\n    m11: number;\n    m12: number;\n    m13: number;\n    m14: number;\n    m21: number;\n    m22: number;\n    m23: number;\n    m24: number;\n    m31: number;\n    m32: number;\n    m33: number;\n    m34: number;\n    m41: number;\n    m42: number;\n    m43: number;\n    m44: number;\n    invertSelf(): DOMMatrix;\n    multiplySelf(other?: DOMMatrixInit): DOMMatrix;\n    preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;\n    rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n    rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;\n    rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n    scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n    scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n    skewXSelf(sx?: number): DOMMatrix;\n    skewYSelf(sy?: number): DOMMatrix;\n    translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;\n}\n\ndeclare var DOMMatrix: {\n    prototype: DOMMatrix;\n    new(init?: string | number[]): DOMMatrix;\n    fromFloat32Array(array32: Float32Array): DOMMatrix;\n    fromFloat64Array(array64: Float64Array): DOMMatrix;\n    fromMatrix(other?: DOMMatrixInit): DOMMatrix;\n};\n\ninterface DOMMatrixReadOnly {\n    readonly a: number;\n    readonly b: number;\n    readonly c: number;\n    readonly d: number;\n    readonly e: number;\n    readonly f: number;\n    readonly is2D: boolean;\n    readonly isIdentity: boolean;\n    readonly m11: number;\n    readonly m12: number;\n    readonly m13: number;\n    readonly m14: number;\n    readonly m21: number;\n    readonly m22: number;\n    readonly m23: number;\n    readonly m24: number;\n    readonly m31: number;\n    readonly m32: number;\n    readonly m33: number;\n    readonly m34: number;\n    readonly m41: number;\n    readonly m42: number;\n    readonly m43: number;\n    readonly m44: number;\n    flipX(): DOMMatrix;\n    flipY(): DOMMatrix;\n    inverse(): DOMMatrix;\n    multiply(other?: DOMMatrixInit): DOMMatrix;\n    rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n    rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n    rotateFromVector(x?: number, y?: number): DOMMatrix;\n    scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n    scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n    /** @deprecated */\n    scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;\n    skewX(sx?: number): DOMMatrix;\n    skewY(sy?: number): DOMMatrix;\n    toFloat32Array(): Float32Array;\n    toFloat64Array(): Float64Array;\n    toJSON(): any;\n    transformPoint(point?: DOMPointInit): DOMPoint;\n    translate(tx?: number, ty?: number, tz?: number): DOMMatrix;\n}\n\ndeclare var DOMMatrixReadOnly: {\n    prototype: DOMMatrixReadOnly;\n    new(init?: string | number[]): DOMMatrixReadOnly;\n    fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;\n    fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;\n    fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;\n};\n\ninterface DOMPoint extends DOMPointReadOnly {\n    w: number;\n    x: number;\n    y: number;\n    z: number;\n}\n\ndeclare var DOMPoint: {\n    prototype: DOMPoint;\n    new(x?: number, y?: number, z?: number, w?: number): DOMPoint;\n    fromPoint(other?: DOMPointInit): DOMPoint;\n};\n\ninterface DOMPointReadOnly {\n    readonly w: number;\n    readonly x: number;\n    readonly y: number;\n    readonly z: number;\n    matrixTransform(matrix?: DOMMatrixInit): DOMPoint;\n    toJSON(): any;\n}\n\ndeclare var DOMPointReadOnly: {\n    prototype: DOMPointReadOnly;\n    new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;\n    fromPoint(other?: DOMPointInit): DOMPointReadOnly;\n};\n\ninterface DOMQuad {\n    readonly p1: DOMPoint;\n    readonly p2: DOMPoint;\n    readonly p3: DOMPoint;\n    readonly p4: DOMPoint;\n    getBounds(): DOMRect;\n    toJSON(): any;\n}\n\ndeclare var DOMQuad: {\n    prototype: DOMQuad;\n    new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;\n    fromQuad(other?: DOMQuadInit): DOMQuad;\n    fromRect(other?: DOMRectInit): DOMQuad;\n};\n\ninterface DOMRect extends DOMRectReadOnly {\n    height: number;\n    width: number;\n    x: number;\n    y: number;\n}\n\ndeclare var DOMRect: {\n    prototype: DOMRect;\n    new(x?: number, y?: number, width?: number, height?: number): DOMRect;\n    fromRect(other?: DOMRectInit): DOMRect;\n};\n\ninterface DOMRectReadOnly {\n    readonly bottom: number;\n    readonly height: number;\n    readonly left: number;\n    readonly right: number;\n    readonly top: number;\n    readonly width: number;\n    readonly x: number;\n    readonly y: number;\n    toJSON(): any;\n}\n\ndeclare var DOMRectReadOnly: {\n    prototype: DOMRectReadOnly;\n    new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;\n    fromRect(other?: DOMRectInit): DOMRectReadOnly;\n};\n\n/** A type returned by some APIs which contains a list of DOMString (strings). */\ninterface DOMStringList {\n    /** Returns the number of strings in strings. */\n    readonly length: number;\n    /** Returns true if strings contains string, and false otherwise. */\n    contains(string: string): boolean;\n    /** Returns the string with index index from strings. */\n    item(index: number): string | null;\n    [index: number]: string;\n}\n\ndeclare var DOMStringList: {\n    prototype: DOMStringList;\n    new(): DOMStringList;\n};\n\ninterface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {\n    \"message\": MessageEvent;\n    \"messageerror\": MessageEvent;\n}\n\n/** (the Worker global scope) is accessible through the self keyword. Some additional global functions, namespaces objects, and constructors, not typically associated with the worker global scope, but available on it, are listed in the JavaScript Reference. See also: Functions available to workers. */\ninterface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider {\n    /** Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging. */\n    readonly name: string;\n    onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;\n    onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;\n    /** Aborts dedicatedWorkerGlobal. */\n    close(): void;\n    /** Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned. */\n    postMessage(message: any, transfer: Transferable[]): void;\n    postMessage(message: any, options?: StructuredSerializeOptions): void;\n    addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var DedicatedWorkerGlobalScope: {\n    prototype: DedicatedWorkerGlobalScope;\n    new(): DedicatedWorkerGlobalScope;\n};\n\ninterface EXT_blend_minmax {\n    readonly MIN_EXT: 0x8007;\n    readonly MAX_EXT: 0x8008;\n}\n\ninterface EXT_color_buffer_float {\n}\n\ninterface EXT_color_buffer_half_float {\n    readonly RGBA16F_EXT: 0x881A;\n    readonly RGB16F_EXT: 0x881B;\n    readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;\n    readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;\n}\n\ninterface EXT_float_blend {\n}\n\n/** The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. */\ninterface EXT_frag_depth {\n}\n\ninterface EXT_sRGB {\n    readonly SRGB_EXT: 0x8C40;\n    readonly SRGB_ALPHA_EXT: 0x8C42;\n    readonly SRGB8_ALPHA8_EXT: 0x8C43;\n    readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210;\n}\n\ninterface EXT_shader_texture_lod {\n}\n\ninterface EXT_texture_compression_bptc {\n    readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C;\n    readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D;\n    readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E;\n    readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F;\n}\n\ninterface EXT_texture_compression_rgtc {\n    readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB;\n    readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC;\n    readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD;\n    readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE;\n}\n\n/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */\ninterface EXT_texture_filter_anisotropic {\n    readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE;\n    readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF;\n}\n\ninterface EXT_texture_norm16 {\n    readonly R16_EXT: 0x822A;\n    readonly RG16_EXT: 0x822C;\n    readonly RGB16_EXT: 0x8054;\n    readonly RGBA16_EXT: 0x805B;\n    readonly R16_SNORM_EXT: 0x8F98;\n    readonly RG16_SNORM_EXT: 0x8F99;\n    readonly RGB16_SNORM_EXT: 0x8F9A;\n    readonly RGBA16_SNORM_EXT: 0x8F9B;\n}\n\n/** Events providing information related to errors in scripts or in files. */\ninterface ErrorEvent extends Event {\n    readonly colno: number;\n    readonly error: any;\n    readonly filename: string;\n    readonly lineno: number;\n    readonly message: string;\n}\n\ndeclare var ErrorEvent: {\n    prototype: ErrorEvent;\n    new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;\n};\n\n/** An event which takes place in the DOM. */\ninterface Event {\n    /** Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. */\n    readonly bubbles: boolean;\n    /** @deprecated */\n    cancelBubble: boolean;\n    /** Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. */\n    readonly cancelable: boolean;\n    /** Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. */\n    readonly composed: boolean;\n    /** Returns the object whose event listener's callback is currently being invoked. */\n    readonly currentTarget: EventTarget | null;\n    /** Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */\n    readonly defaultPrevented: boolean;\n    /** Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. */\n    readonly eventPhase: number;\n    /** Returns true if event was dispatched by the user agent, and false otherwise. */\n    readonly isTrusted: boolean;\n    /** @deprecated */\n    returnValue: boolean;\n    /** @deprecated */\n    readonly srcElement: EventTarget | null;\n    /** Returns the object to which event is dispatched (its target). */\n    readonly target: EventTarget | null;\n    /** Returns the event's timestamp as the number of milliseconds measured relative to the time origin. */\n    readonly timeStamp: DOMHighResTimeStamp;\n    /** Returns the type of event, e.g. \"click\", \"hashchange\", or \"submit\". */\n    readonly type: string;\n    /** Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is \"closed\" that are not reachable from event's currentTarget. */\n    composedPath(): EventTarget[];\n    /** @deprecated */\n    initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;\n    /** If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. */\n    preventDefault(): void;\n    /** Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. */\n    stopImmediatePropagation(): void;\n    /** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */\n    stopPropagation(): void;\n    readonly NONE: 0;\n    readonly CAPTURING_PHASE: 1;\n    readonly AT_TARGET: 2;\n    readonly BUBBLING_PHASE: 3;\n}\n\ndeclare var Event: {\n    prototype: Event;\n    new(type: string, eventInitDict?: EventInit): Event;\n    readonly NONE: 0;\n    readonly CAPTURING_PHASE: 1;\n    readonly AT_TARGET: 2;\n    readonly BUBBLING_PHASE: 3;\n};\n\ninterface EventListener {\n    (evt: Event): void;\n}\n\ninterface EventListenerObject {\n    handleEvent(object: Event): void;\n}\n\ninterface EventSourceEventMap {\n    \"error\": Event;\n    \"message\": MessageEvent;\n    \"open\": Event;\n}\n\ninterface EventSource extends EventTarget {\n    onerror: ((this: EventSource, ev: Event) => any) | null;\n    onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;\n    onopen: ((this: EventSource, ev: Event) => any) | null;\n    /** Returns the state of this EventSource object's connection. It can have the values described below. */\n    readonly readyState: number;\n    /** Returns the URL providing the event stream. */\n    readonly url: string;\n    /** Returns true if the credentials mode for connection requests to the URL providing the event stream is set to \"include\", and false otherwise. */\n    readonly withCredentials: boolean;\n    /** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */\n    close(): void;\n    readonly CONNECTING: 0;\n    readonly OPEN: 1;\n    readonly CLOSED: 2;\n    addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var EventSource: {\n    prototype: EventSource;\n    new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;\n    readonly CONNECTING: 0;\n    readonly OPEN: 1;\n    readonly CLOSED: 2;\n};\n\n/** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */\ninterface EventTarget {\n    /**\n     * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.\n     *\n     * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.\n     *\n     * When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.\n     *\n     * When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in \\xA7 2.8 Observing event listeners.\n     *\n     * When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.\n     *\n     * If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.\n     *\n     * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.\n     */\n    addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;\n    /** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */\n    dispatchEvent(event: Event): boolean;\n    /** Removes the event listener in target's event listener list with the same type, callback, and options. */\n    removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;\n}\n\ndeclare var EventTarget: {\n    prototype: EventTarget;\n    new(): EventTarget;\n};\n\n/** Extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries. */\ninterface ExtendableEvent extends Event {\n    waitUntil(f: Promise<any>): void;\n}\n\ndeclare var ExtendableEvent: {\n    prototype: ExtendableEvent;\n    new(type: string, eventInitDict?: ExtendableEventInit): ExtendableEvent;\n};\n\n/** This ServiceWorker API interface represents the event object of a message event fired on a service worker (when a channel message is received on the ServiceWorkerGlobalScope from another context) \\u2014 extends the lifetime of such events. */\ninterface ExtendableMessageEvent extends ExtendableEvent {\n    readonly data: any;\n    readonly lastEventId: string;\n    readonly origin: string;\n    readonly ports: ReadonlyArray<MessagePort>;\n    readonly source: Client | ServiceWorker | MessagePort | null;\n}\n\ndeclare var ExtendableMessageEvent: {\n    prototype: ExtendableMessageEvent;\n    new(type: string, eventInitDict?: ExtendableMessageEventInit): ExtendableMessageEvent;\n};\n\n/** This is the event type for fetch\\xA0events dispatched on the\\xA0service worker global scope. It contains information about the fetch, including the\\xA0request and how the receiver will treat the response. It provides the event.respondWith() method, which allows us to provide a response to this fetch. */\ninterface FetchEvent extends ExtendableEvent {\n    readonly clientId: string;\n    readonly handled: Promise<undefined>;\n    readonly preloadResponse: Promise<any>;\n    readonly request: Request;\n    readonly resultingClientId: string;\n    respondWith(r: Response | PromiseLike<Response>): void;\n}\n\ndeclare var FetchEvent: {\n    prototype: FetchEvent;\n    new(type: string, eventInitDict: FetchEventInit): FetchEvent;\n};\n\n/** Provides information about files and allows JavaScript in a web page to access their content. */\ninterface File extends Blob {\n    readonly lastModified: number;\n    readonly name: string;\n    readonly webkitRelativePath: string;\n}\n\ndeclare var File: {\n    prototype: File;\n    new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;\n};\n\n/** An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type=\"file\"> element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. */\ninterface FileList {\n    readonly length: number;\n    item(index: number): File | null;\n    [index: number]: File;\n}\n\ndeclare var FileList: {\n    prototype: FileList;\n    new(): FileList;\n};\n\ninterface FileReaderEventMap {\n    \"abort\": ProgressEvent<FileReader>;\n    \"error\": ProgressEvent<FileReader>;\n    \"load\": ProgressEvent<FileReader>;\n    \"loadend\": ProgressEvent<FileReader>;\n    \"loadstart\": ProgressEvent<FileReader>;\n    \"progress\": ProgressEvent<FileReader>;\n}\n\n/** Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. */\ninterface FileReader extends EventTarget {\n    readonly error: DOMException | null;\n    onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n    onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n    onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n    onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n    onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n    onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n    readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;\n    readonly result: string | ArrayBuffer | null;\n    abort(): void;\n    readAsArrayBuffer(blob: Blob): void;\n    readAsBinaryString(blob: Blob): void;\n    readAsDataURL(blob: Blob): void;\n    readAsText(blob: Blob, encoding?: string): void;\n    readonly EMPTY: 0;\n    readonly LOADING: 1;\n    readonly DONE: 2;\n    addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var FileReader: {\n    prototype: FileReader;\n    new(): FileReader;\n    readonly EMPTY: 0;\n    readonly LOADING: 1;\n    readonly DONE: 2;\n};\n\n/** Allows to read File or Blob objects in a synchronous way. */\ninterface FileReaderSync {\n    readAsArrayBuffer(blob: Blob): ArrayBuffer;\n    /** @deprecated */\n    readAsBinaryString(blob: Blob): string;\n    readAsDataURL(blob: Blob): string;\n    readAsText(blob: Blob, encoding?: string): string;\n}\n\ndeclare var FileReaderSync: {\n    prototype: FileReaderSync;\n    new(): FileReaderSync;\n};\n\n/** Available only in secure contexts. */\ninterface FileSystemDirectoryHandle extends FileSystemHandle {\n    readonly kind: \"directory\";\n    getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;\n    getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;\n    removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;\n    resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;\n}\n\ndeclare var FileSystemDirectoryHandle: {\n    prototype: FileSystemDirectoryHandle;\n    new(): FileSystemDirectoryHandle;\n};\n\n/** Available only in secure contexts. */\ninterface FileSystemFileHandle extends FileSystemHandle {\n    readonly kind: \"file\";\n    createSyncAccessHandle(): Promise<FileSystemSyncAccessHandle>;\n    getFile(): Promise<File>;\n}\n\ndeclare var FileSystemFileHandle: {\n    prototype: FileSystemFileHandle;\n    new(): FileSystemFileHandle;\n};\n\n/** Available only in secure contexts. */\ninterface FileSystemHandle {\n    readonly kind: FileSystemHandleKind;\n    readonly name: string;\n    isSameEntry(other: FileSystemHandle): Promise<boolean>;\n}\n\ndeclare var FileSystemHandle: {\n    prototype: FileSystemHandle;\n    new(): FileSystemHandle;\n};\n\n/** Available only in secure contexts. */\ninterface FileSystemSyncAccessHandle {\n    close(): void;\n    flush(): void;\n    getSize(): number;\n    read(buffer: BufferSource, options?: FileSystemReadWriteOptions): number;\n    truncate(newSize: number): void;\n    write(buffer: BufferSource, options?: FileSystemReadWriteOptions): number;\n}\n\ndeclare var FileSystemSyncAccessHandle: {\n    prototype: FileSystemSyncAccessHandle;\n    new(): FileSystemSyncAccessHandle;\n};\n\ninterface FontFace {\n    ascentOverride: string;\n    descentOverride: string;\n    display: FontDisplay;\n    family: string;\n    featureSettings: string;\n    lineGapOverride: string;\n    readonly loaded: Promise<FontFace>;\n    readonly status: FontFaceLoadStatus;\n    stretch: string;\n    style: string;\n    unicodeRange: string;\n    variant: string;\n    weight: string;\n    load(): Promise<FontFace>;\n}\n\ndeclare var FontFace: {\n    prototype: FontFace;\n    new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;\n};\n\ninterface FontFaceSetEventMap {\n    \"loading\": Event;\n    \"loadingdone\": Event;\n    \"loadingerror\": Event;\n}\n\ninterface FontFaceSet extends EventTarget {\n    onloading: ((this: FontFaceSet, ev: Event) => any) | null;\n    onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;\n    onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;\n    readonly ready: Promise<FontFaceSet>;\n    readonly status: FontFaceSetLoadStatus;\n    check(font: string, text?: string): boolean;\n    load(font: string, text?: string): Promise<FontFace[]>;\n    forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;\n    addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var FontFaceSet: {\n    prototype: FontFaceSet;\n    new(initialFaces: FontFace[]): FontFaceSet;\n};\n\ninterface FontFaceSetLoadEvent extends Event {\n    readonly fontfaces: ReadonlyArray<FontFace>;\n}\n\ndeclare var FontFaceSetLoadEvent: {\n    prototype: FontFaceSetLoadEvent;\n    new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;\n};\n\ninterface FontFaceSource {\n    readonly fonts: FontFaceSet;\n}\n\n/** Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to \"multipart/form-data\". */\ninterface FormData {\n    append(name: string, value: string | Blob, fileName?: string): void;\n    delete(name: string): void;\n    get(name: string): FormDataEntryValue | null;\n    getAll(name: string): FormDataEntryValue[];\n    has(name: string): boolean;\n    set(name: string, value: string | Blob, fileName?: string): void;\n    forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;\n}\n\ndeclare var FormData: {\n    prototype: FormData;\n    new(): FormData;\n};\n\ninterface GenericTransformStream {\n    readonly readable: ReadableStream;\n    readonly writable: WritableStream;\n}\n\n/** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists\\xA0of zero or more name and value pairs. \\xA0You can add to this using methods like append() (see Examples.)\\xA0In all methods of this interface, header names are matched by case-insensitive byte sequence. */\ninterface Headers {\n    append(name: string, value: string): void;\n    delete(name: string): void;\n    get(name: string): string | null;\n    has(name: string): boolean;\n    set(name: string, value: string): void;\n    forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;\n}\n\ndeclare var Headers: {\n    prototype: Headers;\n    new(init?: HeadersInit): Headers;\n};\n\n/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */\ninterface IDBCursor {\n    /** Returns the direction (\"next\", \"nextunique\", \"prev\" or \"prevunique\") of the cursor. */\n    readonly direction: IDBCursorDirection;\n    /** Returns the key of the cursor. Throws a \"InvalidStateError\" DOMException if the cursor is advancing or is finished. */\n    readonly key: IDBValidKey;\n    /** Returns the effective key of the cursor. Throws a \"InvalidStateError\" DOMException if the cursor is advancing or is finished. */\n    readonly primaryKey: IDBValidKey;\n    readonly request: IDBRequest;\n    /** Returns the IDBObjectStore or IDBIndex the cursor was opened from. */\n    readonly source: IDBObjectStore | IDBIndex;\n    /** Advances the cursor through the next count records in range. */\n    advance(count: number): void;\n    /** Advances the cursor to the next record in range. */\n    continue(key?: IDBValidKey): void;\n    /** Advances the cursor to the next record in range matching or after key and primaryKey. Throws an \"InvalidAccessError\" DOMException if the source is not an index. */\n    continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;\n    /**\n     * Delete the record pointed at by the cursor with a new value.\n     *\n     * If successful, request's result will be undefined.\n     */\n    delete(): IDBRequest<undefined>;\n    /**\n     * Updated the record pointed at by the cursor with a new value.\n     *\n     * Throws a \"DataError\" DOMException if the effective object store uses in-line keys and the key would have changed.\n     *\n     * If successful, request's result will be the record's key.\n     */\n    update(value: any): IDBRequest<IDBValidKey>;\n}\n\ndeclare var IDBCursor: {\n    prototype: IDBCursor;\n    new(): IDBCursor;\n};\n\n/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property. */\ninterface IDBCursorWithValue extends IDBCursor {\n    /** Returns the cursor's current value. */\n    readonly value: any;\n}\n\ndeclare var IDBCursorWithValue: {\n    prototype: IDBCursorWithValue;\n    new(): IDBCursorWithValue;\n};\n\ninterface IDBDatabaseEventMap {\n    \"abort\": Event;\n    \"close\": Event;\n    \"error\": Event;\n    \"versionchange\": IDBVersionChangeEvent;\n}\n\n/** This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database. */\ninterface IDBDatabase extends EventTarget {\n    /** Returns the name of the database. */\n    readonly name: string;\n    /** Returns a list of the names of object stores in the database. */\n    readonly objectStoreNames: DOMStringList;\n    onabort: ((this: IDBDatabase, ev: Event) => any) | null;\n    onclose: ((this: IDBDatabase, ev: Event) => any) | null;\n    onerror: ((this: IDBDatabase, ev: Event) => any) | null;\n    onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;\n    /** Returns the version of the database. */\n    readonly version: number;\n    /** Closes the connection once all running transactions have finished. */\n    close(): void;\n    /**\n     * Creates a new object store with the given name and options and returns a new IDBObjectStore.\n     *\n     * Throws a \"InvalidStateError\" DOMException if not called within an upgrade transaction.\n     */\n    createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;\n    /**\n     * Deletes the object store with the given name.\n     *\n     * Throws a \"InvalidStateError\" DOMException if not called within an upgrade transaction.\n     */\n    deleteObjectStore(name: string): void;\n    /** Returns a new transaction with the given mode (\"readonly\" or \"readwrite\") and scope which can be a single object store name or an array of names. */\n    transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;\n    addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBDatabase: {\n    prototype: IDBDatabase;\n    new(): IDBDatabase;\n};\n\n/** In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.) */\ninterface IDBFactory {\n    /**\n     * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.\n     *\n     * Throws a \"DataError\" DOMException if either input is not a valid key.\n     */\n    cmp(first: any, second: any): number;\n    databases(): Promise<IDBDatabaseInfo[]>;\n    /** Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null. */\n    deleteDatabase(name: string): IDBOpenDBRequest;\n    /** Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection. */\n    open(name: string, version?: number): IDBOpenDBRequest;\n}\n\ndeclare var IDBFactory: {\n    prototype: IDBFactory;\n    new(): IDBFactory;\n};\n\n/** IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data. */\ninterface IDBIndex {\n    readonly keyPath: string | string[];\n    readonly multiEntry: boolean;\n    /** Returns the name of the index. */\n    name: string;\n    /** Returns the IDBObjectStore the index belongs to. */\n    readonly objectStore: IDBObjectStore;\n    readonly unique: boolean;\n    /**\n     * Retrieves the number of records matching the given key or key range in query.\n     *\n     * If successful, request's result will be the count.\n     */\n    count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n    /**\n     * Retrieves the value of the first record matching the given key or key range in query.\n     *\n     * If successful, request's result will be the value, or undefined if there was no matching record.\n     */\n    get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n    /**\n     * Retrieves the values of the records matching the given key or key range in query (up to count if given).\n     *\n     * If successful, request's result will be an Array of the values.\n     */\n    getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n    /**\n     * Retrieves the keys of records matching the given key or key range in query (up to count if given).\n     *\n     * If successful, request's result will be an Array of the keys.\n     */\n    getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n    /**\n     * Retrieves the key of the first record matching the given key or key range in query.\n     *\n     * If successful, request's result will be the key, or undefined if there was no matching record.\n     */\n    getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n    /**\n     * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.\n     *\n     * If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records.\n     */\n    openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;\n    /**\n     * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.\n     *\n     * If successful, request's result will be an IDBCursor, or null if there were no matching records.\n     */\n    openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n}\n\ndeclare var IDBIndex: {\n    prototype: IDBIndex;\n    new(): IDBIndex;\n};\n\n/** A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs: */\ninterface IDBKeyRange {\n    /** Returns lower bound, or undefined if none. */\n    readonly lower: any;\n    /** Returns true if the lower open flag is set, and false otherwise. */\n    readonly lowerOpen: boolean;\n    /** Returns upper bound, or undefined if none. */\n    readonly upper: any;\n    /** Returns true if the upper open flag is set, and false otherwise. */\n    readonly upperOpen: boolean;\n    /** Returns true if key is included in the range, and false otherwise. */\n    includes(key: any): boolean;\n}\n\ndeclare var IDBKeyRange: {\n    prototype: IDBKeyRange;\n    new(): IDBKeyRange;\n    /** Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range. */\n    bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;\n    /** Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. */\n    lowerBound(lower: any, open?: boolean): IDBKeyRange;\n    /** Returns a new IDBKeyRange spanning only key. */\n    only(value: any): IDBKeyRange;\n    /** Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. */\n    upperBound(upper: any, open?: boolean): IDBKeyRange;\n};\n\n/** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex\\xA0inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our\\xA0To-do Notifications\\xA0app (view example live.) */\ninterface IDBObjectStore {\n    /** Returns true if the store has a key generator, and false otherwise. */\n    readonly autoIncrement: boolean;\n    /** Returns a list of the names of indexes in the store. */\n    readonly indexNames: DOMStringList;\n    /** Returns the key path of the store, or null if none. */\n    readonly keyPath: string | string[];\n    /** Returns the name of the store. */\n    name: string;\n    /** Returns the associated transaction. */\n    readonly transaction: IDBTransaction;\n    /**\n     * Adds or updates a record in store with the given value and key.\n     *\n     * If the store uses in-line keys and key is specified a \"DataError\" DOMException will be thrown.\n     *\n     * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a \"ConstraintError\" DOMException.\n     *\n     * If successful, request's result will be the record's key.\n     */\n    add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;\n    /**\n     * Deletes all records in store.\n     *\n     * If successful, request's result will be undefined.\n     */\n    clear(): IDBRequest<undefined>;\n    /**\n     * Retrieves the number of records matching the given key or key range in query.\n     *\n     * If successful, request's result will be the count.\n     */\n    count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n    /**\n     * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a \"ConstraintError\" DOMException.\n     *\n     * Throws an \"InvalidStateError\" DOMException if not called within an upgrade transaction.\n     */\n    createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;\n    /**\n     * Deletes records in store with the given key or in the given key range in query.\n     *\n     * If successful, request's result will be undefined.\n     */\n    delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;\n    /**\n     * Deletes the index in store with the given name.\n     *\n     * Throws an \"InvalidStateError\" DOMException if not called within an upgrade transaction.\n     */\n    deleteIndex(name: string): void;\n    /**\n     * Retrieves the value of the first record matching the given key or key range in query.\n     *\n     * If successful, request's result will be the value, or undefined if there was no matching record.\n     */\n    get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n    /**\n     * Retrieves the values of the records matching the given key or key range in query (up to count if given).\n     *\n     * If successful, request's result will be an Array of the values.\n     */\n    getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n    /**\n     * Retrieves the keys of records matching the given key or key range in query (up to count if given).\n     *\n     * If successful, request's result will be an Array of the keys.\n     */\n    getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n    /**\n     * Retrieves the key of the first record matching the given key or key range in query.\n     *\n     * If successful, request's result will be the key, or undefined if there was no matching record.\n     */\n    getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n    index(name: string): IDBIndex;\n    /**\n     * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.\n     *\n     * If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.\n     */\n    openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;\n    /**\n     * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.\n     *\n     * If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.\n     */\n    openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n    /**\n     * Adds or updates a record in store with the given value and key.\n     *\n     * If the store uses in-line keys and key is specified a \"DataError\" DOMException will be thrown.\n     *\n     * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a \"ConstraintError\" DOMException.\n     *\n     * If successful, request's result will be the record's key.\n     */\n    put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;\n}\n\ndeclare var IDBObjectStore: {\n    prototype: IDBObjectStore;\n    new(): IDBObjectStore;\n};\n\ninterface IDBOpenDBRequestEventMap extends IDBRequestEventMap {\n    \"blocked\": IDBVersionChangeEvent;\n    \"upgradeneeded\": IDBVersionChangeEvent;\n}\n\n/** Also inherits methods from its parents IDBRequest and EventTarget. */\ninterface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {\n    onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;\n    onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;\n    addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBOpenDBRequest: {\n    prototype: IDBOpenDBRequest;\n    new(): IDBOpenDBRequest;\n};\n\ninterface IDBRequestEventMap {\n    \"error\": Event;\n    \"success\": Event;\n}\n\n/** The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance. */\ninterface IDBRequest<T = any> extends EventTarget {\n    /** When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a \"InvalidStateError\" DOMException if the request is still pending. */\n    readonly error: DOMException | null;\n    onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;\n    onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;\n    /** Returns \"pending\" until a request is complete, then returns \"done\". */\n    readonly readyState: IDBRequestReadyState;\n    /** When a request is completed, returns the result, or undefined if the request failed. Throws a \"InvalidStateError\" DOMException if the request is still pending. */\n    readonly result: T;\n    /** Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. */\n    readonly source: IDBObjectStore | IDBIndex | IDBCursor;\n    /** Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise. */\n    readonly transaction: IDBTransaction | null;\n    addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBRequest: {\n    prototype: IDBRequest;\n    new(): IDBRequest;\n};\n\ninterface IDBTransactionEventMap {\n    \"abort\": Event;\n    \"complete\": Event;\n    \"error\": Event;\n}\n\ninterface IDBTransaction extends EventTarget {\n    /** Returns the transaction's connection. */\n    readonly db: IDBDatabase;\n    readonly durability: IDBTransactionDurability;\n    /** If the transaction was aborted, returns the error (a DOMException) providing the reason. */\n    readonly error: DOMException | null;\n    /** Returns the mode the transaction was created with (\"readonly\" or \"readwrite\"), or \"versionchange\" for an upgrade transaction. */\n    readonly mode: IDBTransactionMode;\n    /** Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database. */\n    readonly objectStoreNames: DOMStringList;\n    onabort: ((this: IDBTransaction, ev: Event) => any) | null;\n    oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;\n    onerror: ((this: IDBTransaction, ev: Event) => any) | null;\n    /** Aborts the transaction. All pending requests will fail with a \"AbortError\" DOMException and all changes made to the database will be reverted. */\n    abort(): void;\n    commit(): void;\n    /** Returns an IDBObjectStore in the transaction's scope. */\n    objectStore(name: string): IDBObjectStore;\n    addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBTransaction: {\n    prototype: IDBTransaction;\n    new(): IDBTransaction;\n};\n\n/** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */\ninterface IDBVersionChangeEvent extends Event {\n    readonly newVersion: number | null;\n    readonly oldVersion: number;\n}\n\ndeclare var IDBVersionChangeEvent: {\n    prototype: IDBVersionChangeEvent;\n    new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;\n};\n\ninterface ImageBitmap {\n    /** Returns the intrinsic height of the image, in CSS pixels. */\n    readonly height: number;\n    /** Returns the intrinsic width of the image, in CSS pixels. */\n    readonly width: number;\n    /** Releases imageBitmap's underlying bitmap data. */\n    close(): void;\n}\n\ndeclare var ImageBitmap: {\n    prototype: ImageBitmap;\n    new(): ImageBitmap;\n};\n\ninterface ImageBitmapRenderingContext {\n    /** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. */\n    transferFromImageBitmap(bitmap: ImageBitmap | null): void;\n}\n\ndeclare var ImageBitmapRenderingContext: {\n    prototype: ImageBitmapRenderingContext;\n    new(): ImageBitmapRenderingContext;\n};\n\n/** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */\ninterface ImageData {\n    readonly colorSpace: PredefinedColorSpace;\n    /** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */\n    readonly data: Uint8ClampedArray;\n    /** Returns the actual dimensions of the data in the ImageData object, in pixels. */\n    readonly height: number;\n    /** Returns the actual dimensions of the data in the ImageData object, in pixels. */\n    readonly width: number;\n}\n\ndeclare var ImageData: {\n    prototype: ImageData;\n    new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n    new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;\n};\n\ninterface KHR_parallel_shader_compile {\n    readonly COMPLETION_STATUS_KHR: 0x91B1;\n}\n\n/** Available only in secure contexts. */\ninterface Lock {\n    readonly mode: LockMode;\n    readonly name: string;\n}\n\ndeclare var Lock: {\n    prototype: Lock;\n    new(): Lock;\n};\n\n/** Available only in secure contexts. */\ninterface LockManager {\n    query(): Promise<LockManagerSnapshot>;\n    request(name: string, callback: LockGrantedCallback): Promise<any>;\n    request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;\n}\n\ndeclare var LockManager: {\n    prototype: LockManager;\n    new(): LockManager;\n};\n\ninterface MediaCapabilities {\n    decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;\n    encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;\n}\n\ndeclare var MediaCapabilities: {\n    prototype: MediaCapabilities;\n    new(): MediaCapabilities;\n};\n\n/** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */\ninterface MessageChannel {\n    /** Returns the first MessagePort object. */\n    readonly port1: MessagePort;\n    /** Returns the second MessagePort object. */\n    readonly port2: MessagePort;\n}\n\ndeclare var MessageChannel: {\n    prototype: MessageChannel;\n    new(): MessageChannel;\n};\n\n/** A message received by a target object. */\ninterface MessageEvent<T = any> extends Event {\n    /** Returns the data of the message. */\n    readonly data: T;\n    /** Returns the last event ID string, for server-sent events. */\n    readonly lastEventId: string;\n    /** Returns the origin of the message, for server-sent events and cross-document messaging. */\n    readonly origin: string;\n    /** Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. */\n    readonly ports: ReadonlyArray<MessagePort>;\n    /** Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects. */\n    readonly source: MessageEventSource | null;\n    /** @deprecated */\n    initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;\n}\n\ndeclare var MessageEvent: {\n    prototype: MessageEvent;\n    new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;\n};\n\ninterface MessagePortEventMap {\n    \"message\": MessageEvent;\n    \"messageerror\": MessageEvent;\n}\n\n/** This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. */\ninterface MessagePort extends EventTarget {\n    onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;\n    onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;\n    /** Disconnects the port, so that it is no longer active. */\n    close(): void;\n    /**\n     * Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.\n     *\n     * Throws a \"DataCloneError\" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.\n     */\n    postMessage(message: any, transfer: Transferable[]): void;\n    postMessage(message: any, options?: StructuredSerializeOptions): void;\n    /** Begins dispatching messages received on the port. */\n    start(): void;\n    addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MessagePort: {\n    prototype: MessagePort;\n    new(): MessagePort;\n};\n\n/** Available only in secure contexts. */\ninterface NavigationPreloadManager {\n    disable(): Promise<void>;\n    enable(): Promise<void>;\n    getState(): Promise<NavigationPreloadState>;\n    setHeaderValue(value: string): Promise<void>;\n}\n\ndeclare var NavigationPreloadManager: {\n    prototype: NavigationPreloadManager;\n    new(): NavigationPreloadManager;\n};\n\ninterface NavigatorConcurrentHardware {\n    readonly hardwareConcurrency: number;\n}\n\ninterface NavigatorID {\n    /** @deprecated */\n    readonly appCodeName: string;\n    /** @deprecated */\n    readonly appName: string;\n    /** @deprecated */\n    readonly appVersion: string;\n    /** @deprecated */\n    readonly platform: string;\n    /** @deprecated */\n    readonly product: string;\n    readonly userAgent: string;\n}\n\ninterface NavigatorLanguage {\n    readonly language: string;\n    readonly languages: ReadonlyArray<string>;\n}\n\n/** Available only in secure contexts. */\ninterface NavigatorLocks {\n    readonly locks: LockManager;\n}\n\ninterface NavigatorOnLine {\n    readonly onLine: boolean;\n}\n\n/** Available only in secure contexts. */\ninterface NavigatorStorage {\n    readonly storage: StorageManager;\n}\n\ninterface NotificationEventMap {\n    \"click\": Event;\n    \"close\": Event;\n    \"error\": Event;\n    \"show\": Event;\n}\n\n/** This Notifications API interface is used to configure and display desktop notifications to the user. */\ninterface Notification extends EventTarget {\n    readonly body: string;\n    readonly data: any;\n    readonly dir: NotificationDirection;\n    readonly icon: string;\n    readonly lang: string;\n    onclick: ((this: Notification, ev: Event) => any) | null;\n    onclose: ((this: Notification, ev: Event) => any) | null;\n    onerror: ((this: Notification, ev: Event) => any) | null;\n    onshow: ((this: Notification, ev: Event) => any) | null;\n    readonly tag: string;\n    readonly title: string;\n    close(): void;\n    addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Notification: {\n    prototype: Notification;\n    new(title: string, options?: NotificationOptions): Notification;\n    readonly permission: NotificationPermission;\n};\n\n/** The parameter passed into the onnotificationclick handler, the NotificationEvent interface represents a notification click event that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. */\ninterface NotificationEvent extends ExtendableEvent {\n    readonly action: string;\n    readonly notification: Notification;\n}\n\ndeclare var NotificationEvent: {\n    prototype: NotificationEvent;\n    new(type: string, eventInitDict: NotificationEventInit): NotificationEvent;\n};\n\ninterface OES_draw_buffers_indexed {\n    blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;\n    blendEquationiOES(buf: GLuint, mode: GLenum): void;\n    blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;\n    blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;\n    colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;\n    disableiOES(target: GLenum, index: GLuint): void;\n    enableiOES(target: GLenum, index: GLuint): void;\n}\n\n/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */\ninterface OES_element_index_uint {\n}\n\ninterface OES_fbo_render_mipmap {\n}\n\n/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */\ninterface OES_standard_derivatives {\n    readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B;\n}\n\n/** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */\ninterface OES_texture_float {\n}\n\n/** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */\ninterface OES_texture_float_linear {\n}\n\n/** The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components. */\ninterface OES_texture_half_float {\n    readonly HALF_FLOAT_OES: 0x8D61;\n}\n\n/** The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures. */\ninterface OES_texture_half_float_linear {\n}\n\ninterface OES_vertex_array_object {\n    bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n    createVertexArrayOES(): WebGLVertexArrayObjectOES | null;\n    deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n    isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;\n    readonly VERTEX_ARRAY_BINDING_OES: 0x85B5;\n}\n\ninterface OVR_multiview2 {\n    framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632;\n    readonly MAX_VIEWS_OVR: 0x9631;\n    readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633;\n}\n\ninterface OffscreenCanvasEventMap {\n    \"contextlost\": Event;\n    \"contextrestored\": Event;\n}\n\ninterface OffscreenCanvas extends EventTarget {\n    /**\n     * These attributes return the dimensions of the OffscreenCanvas object's bitmap.\n     *\n     * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).\n     */\n    height: number;\n    oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;\n    oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;\n    /**\n     * These attributes return the dimensions of the OffscreenCanvas object's bitmap.\n     *\n     * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).\n     */\n    width: number;\n    /**\n     * Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.\n     *\n     * The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of \"image/png\"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as \"image/jpeg\"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.\n     */\n    convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;\n    /**\n     * Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: \"2d\", \"bitmaprenderer\", \"webgl\", or \"webgl2\". options is handled by that API.\n     *\n     * This specification defines the \"2d\" context below, which is similar but distinct from the \"2d\" context that is created from a canvas element. The WebGL specifications define the \"webgl\" and \"webgl2\" contexts. [WEBGL]\n     *\n     * Returns null if the canvas has already been initialized with another context type (e.g., trying to get a \"2d\" context after getting a \"webgl\" context).\n     */\n    getContext(contextId: \"2d\", options?: any): OffscreenCanvasRenderingContext2D | null;\n    getContext(contextId: \"bitmaprenderer\", options?: any): ImageBitmapRenderingContext | null;\n    getContext(contextId: \"webgl\", options?: any): WebGLRenderingContext | null;\n    getContext(contextId: \"webgl2\", options?: any): WebGL2RenderingContext | null;\n    getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;\n    /** Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image. */\n    transferToImageBitmap(): ImageBitmap;\n    addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var OffscreenCanvas: {\n    prototype: OffscreenCanvas;\n    new(width: number, height: number): OffscreenCanvas;\n};\n\ninterface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {\n    readonly canvas: OffscreenCanvas;\n    commit(): void;\n}\n\ndeclare var OffscreenCanvasRenderingContext2D: {\n    prototype: OffscreenCanvasRenderingContext2D;\n    new(): OffscreenCanvasRenderingContext2D;\n};\n\n/** This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. */\ninterface Path2D extends CanvasPath {\n    /** Adds to the path the path given by the argument. */\n    addPath(path: Path2D, transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var Path2D: {\n    prototype: Path2D;\n    new(path?: Path2D | string): Path2D;\n};\n\ninterface PerformanceEventMap {\n    \"resourcetimingbufferfull\": Event;\n}\n\n/** Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */\ninterface Performance extends EventTarget {\n    onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;\n    readonly timeOrigin: DOMHighResTimeStamp;\n    clearMarks(markName?: string): void;\n    clearMeasures(measureName?: string): void;\n    clearResourceTimings(): void;\n    getEntries(): PerformanceEntryList;\n    getEntriesByName(name: string, type?: string): PerformanceEntryList;\n    getEntriesByType(type: string): PerformanceEntryList;\n    mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;\n    measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;\n    now(): DOMHighResTimeStamp;\n    setResourceTimingBufferSize(maxSize: number): void;\n    toJSON(): any;\n    addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Performance: {\n    prototype: Performance;\n    new(): Performance;\n};\n\n/** Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image). */\ninterface PerformanceEntry {\n    readonly duration: DOMHighResTimeStamp;\n    readonly entryType: string;\n    readonly name: string;\n    readonly startTime: DOMHighResTimeStamp;\n    toJSON(): any;\n}\n\ndeclare var PerformanceEntry: {\n    prototype: PerformanceEntry;\n    new(): PerformanceEntry;\n};\n\n/** PerformanceMark\\xA0is an abstract interface for PerformanceEntry objects with an entryType of \"mark\". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. */\ninterface PerformanceMark extends PerformanceEntry {\n    readonly detail: any;\n}\n\ndeclare var PerformanceMark: {\n    prototype: PerformanceMark;\n    new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;\n};\n\n/** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of \"measure\". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline. */\ninterface PerformanceMeasure extends PerformanceEntry {\n    readonly detail: any;\n}\n\ndeclare var PerformanceMeasure: {\n    prototype: PerformanceMeasure;\n    new(): PerformanceMeasure;\n};\n\ninterface PerformanceObserver {\n    disconnect(): void;\n    observe(options?: PerformanceObserverInit): void;\n    takeRecords(): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserver: {\n    prototype: PerformanceObserver;\n    new(callback: PerformanceObserverCallback): PerformanceObserver;\n    readonly supportedEntryTypes: ReadonlyArray<string>;\n};\n\ninterface PerformanceObserverEntryList {\n    getEntries(): PerformanceEntryList;\n    getEntriesByName(name: string, type?: string): PerformanceEntryList;\n    getEntriesByType(type: string): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserverEntryList: {\n    prototype: PerformanceObserverEntryList;\n    new(): PerformanceObserverEntryList;\n};\n\n/** Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. */\ninterface PerformanceResourceTiming extends PerformanceEntry {\n    readonly connectEnd: DOMHighResTimeStamp;\n    readonly connectStart: DOMHighResTimeStamp;\n    readonly decodedBodySize: number;\n    readonly domainLookupEnd: DOMHighResTimeStamp;\n    readonly domainLookupStart: DOMHighResTimeStamp;\n    readonly encodedBodySize: number;\n    readonly fetchStart: DOMHighResTimeStamp;\n    readonly initiatorType: string;\n    readonly nextHopProtocol: string;\n    readonly redirectEnd: DOMHighResTimeStamp;\n    readonly redirectStart: DOMHighResTimeStamp;\n    readonly requestStart: DOMHighResTimeStamp;\n    readonly responseEnd: DOMHighResTimeStamp;\n    readonly responseStart: DOMHighResTimeStamp;\n    readonly secureConnectionStart: DOMHighResTimeStamp;\n    readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;\n    readonly transferSize: number;\n    readonly workerStart: DOMHighResTimeStamp;\n    toJSON(): any;\n}\n\ndeclare var PerformanceResourceTiming: {\n    prototype: PerformanceResourceTiming;\n    new(): PerformanceResourceTiming;\n};\n\ninterface PerformanceServerTiming {\n    readonly description: string;\n    readonly duration: DOMHighResTimeStamp;\n    readonly name: string;\n    toJSON(): any;\n}\n\ndeclare var PerformanceServerTiming: {\n    prototype: PerformanceServerTiming;\n    new(): PerformanceServerTiming;\n};\n\ninterface PermissionStatusEventMap {\n    \"change\": Event;\n}\n\ninterface PermissionStatus extends EventTarget {\n    readonly name: string;\n    onchange: ((this: PermissionStatus, ev: Event) => any) | null;\n    readonly state: PermissionState;\n    addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var PermissionStatus: {\n    prototype: PermissionStatus;\n    new(): PermissionStatus;\n};\n\ninterface Permissions {\n    query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;\n}\n\ndeclare var Permissions: {\n    prototype: Permissions;\n    new(): Permissions;\n};\n\n/** Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>). */\ninterface ProgressEvent<T extends EventTarget = EventTarget> extends Event {\n    readonly lengthComputable: boolean;\n    readonly loaded: number;\n    readonly target: T | null;\n    readonly total: number;\n}\n\ndeclare var ProgressEvent: {\n    prototype: ProgressEvent;\n    new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;\n};\n\ninterface PromiseRejectionEvent extends Event {\n    readonly promise: Promise<any>;\n    readonly reason: any;\n}\n\ndeclare var PromiseRejectionEvent: {\n    prototype: PromiseRejectionEvent;\n    new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;\n};\n\n/**\n * This Push API interface represents a push message that has been received. This event is sent to the global scope of a ServiceWorker. It contains the information sent from an application server to a PushSubscription.\n * Available only in secure contexts.\n */\ninterface PushEvent extends ExtendableEvent {\n    readonly data: PushMessageData | null;\n}\n\ndeclare var PushEvent: {\n    prototype: PushEvent;\n    new(type: string, eventInitDict?: PushEventInit): PushEvent;\n};\n\n/**\n * This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.\n * Available only in secure contexts.\n */\ninterface PushManager {\n    getSubscription(): Promise<PushSubscription | null>;\n    permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;\n    subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;\n}\n\ndeclare var PushManager: {\n    prototype: PushManager;\n    new(): PushManager;\n    readonly supportedContentEncodings: ReadonlyArray<string>;\n};\n\n/**\n * This Push API interface provides methods which let you retrieve the push data sent by a server in various formats.\n * Available only in secure contexts.\n */\ninterface PushMessageData {\n    arrayBuffer(): ArrayBuffer;\n    blob(): Blob;\n    json(): any;\n    text(): string;\n}\n\ndeclare var PushMessageData: {\n    prototype: PushMessageData;\n    new(): PushMessageData;\n};\n\n/**\n * This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service.\n * Available only in secure contexts.\n */\ninterface PushSubscription {\n    readonly endpoint: string;\n    readonly expirationTime: EpochTimeStamp | null;\n    readonly options: PushSubscriptionOptions;\n    getKey(name: PushEncryptionKeyName): ArrayBuffer | null;\n    toJSON(): PushSubscriptionJSON;\n    unsubscribe(): Promise<boolean>;\n}\n\ndeclare var PushSubscription: {\n    prototype: PushSubscription;\n    new(): PushSubscription;\n};\n\n/** Available only in secure contexts. */\ninterface PushSubscriptionOptions {\n    readonly applicationServerKey: ArrayBuffer | null;\n    readonly userVisibleOnly: boolean;\n}\n\ndeclare var PushSubscriptionOptions: {\n    prototype: PushSubscriptionOptions;\n    new(): PushSubscriptionOptions;\n};\n\ninterface RTCEncodedAudioFrame {\n    data: ArrayBuffer;\n    readonly timestamp: number;\n    getMetadata(): RTCEncodedAudioFrameMetadata;\n}\n\ndeclare var RTCEncodedAudioFrame: {\n    prototype: RTCEncodedAudioFrame;\n    new(): RTCEncodedAudioFrame;\n};\n\ninterface RTCEncodedVideoFrame {\n    data: ArrayBuffer;\n    readonly timestamp: number;\n    readonly type: RTCEncodedVideoFrameType;\n    getMetadata(): RTCEncodedVideoFrameMetadata;\n}\n\ndeclare var RTCEncodedVideoFrame: {\n    prototype: RTCEncodedVideoFrame;\n    new(): RTCEncodedVideoFrame;\n};\n\ninterface ReadableByteStreamController {\n    readonly byobRequest: ReadableStreamBYOBRequest | null;\n    readonly desiredSize: number | null;\n    close(): void;\n    enqueue(chunk: ArrayBufferView): void;\n    error(e?: any): void;\n}\n\ndeclare var ReadableByteStreamController: {\n    prototype: ReadableByteStreamController;\n    new(): ReadableByteStreamController;\n};\n\n/** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */\ninterface ReadableStream<R = any> {\n    readonly locked: boolean;\n    cancel(reason?: any): Promise<void>;\n    getReader(options: { mode: \"byob\" }): ReadableStreamBYOBReader;\n    getReader(): ReadableStreamDefaultReader<R>;\n    getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;\n    pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;\n    pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;\n    tee(): [ReadableStream<R>, ReadableStream<R>];\n}\n\ndeclare var ReadableStream: {\n    prototype: ReadableStream;\n    new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;\n    new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;\n    new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;\n};\n\ninterface ReadableStreamBYOBReader extends ReadableStreamGenericReader {\n    read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;\n    releaseLock(): void;\n}\n\ndeclare var ReadableStreamBYOBReader: {\n    prototype: ReadableStreamBYOBReader;\n    new(stream: ReadableStream): ReadableStreamBYOBReader;\n};\n\ninterface ReadableStreamBYOBRequest {\n    readonly view: ArrayBufferView | null;\n    respond(bytesWritten: number): void;\n    respondWithNewView(view: ArrayBufferView): void;\n}\n\ndeclare var ReadableStreamBYOBRequest: {\n    prototype: ReadableStreamBYOBRequest;\n    new(): ReadableStreamBYOBRequest;\n};\n\ninterface ReadableStreamDefaultController<R = any> {\n    readonly desiredSize: number | null;\n    close(): void;\n    enqueue(chunk?: R): void;\n    error(e?: any): void;\n}\n\ndeclare var ReadableStreamDefaultController: {\n    prototype: ReadableStreamDefaultController;\n    new(): ReadableStreamDefaultController;\n};\n\ninterface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {\n    read(): Promise<ReadableStreamReadResult<R>>;\n    releaseLock(): void;\n}\n\ndeclare var ReadableStreamDefaultReader: {\n    prototype: ReadableStreamDefaultReader;\n    new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;\n};\n\ninterface ReadableStreamGenericReader {\n    readonly closed: Promise<undefined>;\n    cancel(reason?: any): Promise<void>;\n}\n\n/** This Fetch API interface represents a resource request. */\ninterface Request extends Body {\n    /** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. */\n    readonly cache: RequestCache;\n    /** Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. */\n    readonly credentials: RequestCredentials;\n    /** Returns the kind of resource requested by request, e.g., \"document\" or \"script\". */\n    readonly destination: RequestDestination;\n    /** Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the \"Host\" header. */\n    readonly headers: Headers;\n    /** Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI] */\n    readonly integrity: string;\n    /** Returns a boolean indicating whether or not request can outlive the global in which it was created. */\n    readonly keepalive: boolean;\n    /** Returns request's HTTP method, which is \"GET\" by default. */\n    readonly method: string;\n    /** Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs. */\n    readonly mode: RequestMode;\n    /** Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default. */\n    readonly redirect: RequestRedirect;\n    /** Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and \"about:client\" when defaulting to the global's default. This is used during fetching to determine the value of the \\`Referer\\` header of the request being made. */\n    readonly referrer: string;\n    /** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer. */\n    readonly referrerPolicy: ReferrerPolicy;\n    /** Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. */\n    readonly signal: AbortSignal;\n    /** Returns the URL of request as a string. */\n    readonly url: string;\n    clone(): Request;\n}\n\ndeclare var Request: {\n    prototype: Request;\n    new(input: RequestInfo | URL, init?: RequestInit): Request;\n};\n\n/** This Fetch API interface represents the response to a request. */\ninterface Response extends Body {\n    readonly headers: Headers;\n    readonly ok: boolean;\n    readonly redirected: boolean;\n    readonly status: number;\n    readonly statusText: string;\n    readonly type: ResponseType;\n    readonly url: string;\n    clone(): Response;\n}\n\ndeclare var Response: {\n    prototype: Response;\n    new(body?: BodyInit | null, init?: ResponseInit): Response;\n    error(): Response;\n    redirect(url: string | URL, status?: number): Response;\n};\n\n/** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */\ninterface SecurityPolicyViolationEvent extends Event {\n    readonly blockedURI: string;\n    readonly columnNumber: number;\n    readonly disposition: SecurityPolicyViolationEventDisposition;\n    readonly documentURI: string;\n    readonly effectiveDirective: string;\n    readonly lineNumber: number;\n    readonly originalPolicy: string;\n    readonly referrer: string;\n    readonly sample: string;\n    readonly sourceFile: string;\n    readonly statusCode: number;\n    readonly violatedDirective: string;\n}\n\ndeclare var SecurityPolicyViolationEvent: {\n    prototype: SecurityPolicyViolationEvent;\n    new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;\n};\n\ninterface ServiceWorkerEventMap extends AbstractWorkerEventMap {\n    \"statechange\": Event;\n}\n\n/**\n * This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object.\n * Available only in secure contexts.\n */\ninterface ServiceWorker extends EventTarget, AbstractWorker {\n    onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;\n    readonly scriptURL: string;\n    readonly state: ServiceWorkerState;\n    postMessage(message: any, transfer: Transferable[]): void;\n    postMessage(message: any, options?: StructuredSerializeOptions): void;\n    addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorker: {\n    prototype: ServiceWorker;\n    new(): ServiceWorker;\n};\n\ninterface ServiceWorkerContainerEventMap {\n    \"controllerchange\": Event;\n    \"message\": MessageEvent;\n    \"messageerror\": MessageEvent;\n}\n\n/**\n * The\\xA0ServiceWorkerContainer\\xA0interface of the\\xA0ServiceWorker API\\xA0provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.\n * Available only in secure contexts.\n */\ninterface ServiceWorkerContainer extends EventTarget {\n    readonly controller: ServiceWorker | null;\n    oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;\n    onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n    onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n    readonly ready: Promise<ServiceWorkerRegistration>;\n    getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;\n    getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;\n    register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;\n    startMessages(): void;\n    addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerContainer: {\n    prototype: ServiceWorkerContainer;\n    new(): ServiceWorkerContainer;\n};\n\ninterface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {\n    \"activate\": ExtendableEvent;\n    \"fetch\": FetchEvent;\n    \"install\": ExtendableEvent;\n    \"message\": ExtendableMessageEvent;\n    \"messageerror\": MessageEvent;\n    \"notificationclick\": NotificationEvent;\n    \"notificationclose\": NotificationEvent;\n    \"push\": PushEvent;\n    \"pushsubscriptionchange\": Event;\n}\n\n/** This ServiceWorker API interface represents the global execution context of a service worker. */\ninterface ServiceWorkerGlobalScope extends WorkerGlobalScope {\n    readonly clients: Clients;\n    onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;\n    onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;\n    oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;\n    onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;\n    onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;\n    onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;\n    onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;\n    onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;\n    onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: Event) => any) | null;\n    readonly registration: ServiceWorkerRegistration;\n    readonly serviceWorker: ServiceWorker;\n    skipWaiting(): Promise<void>;\n    addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerGlobalScope: {\n    prototype: ServiceWorkerGlobalScope;\n    new(): ServiceWorkerGlobalScope;\n};\n\ninterface ServiceWorkerRegistrationEventMap {\n    \"updatefound\": Event;\n}\n\n/**\n * This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin.\n * Available only in secure contexts.\n */\ninterface ServiceWorkerRegistration extends EventTarget {\n    readonly active: ServiceWorker | null;\n    readonly installing: ServiceWorker | null;\n    readonly navigationPreload: NavigationPreloadManager;\n    onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;\n    readonly pushManager: PushManager;\n    readonly scope: string;\n    readonly updateViaCache: ServiceWorkerUpdateViaCache;\n    readonly waiting: ServiceWorker | null;\n    getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;\n    showNotification(title: string, options?: NotificationOptions): Promise<void>;\n    unregister(): Promise<boolean>;\n    update(): Promise<void>;\n    addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerRegistration: {\n    prototype: ServiceWorkerRegistration;\n    new(): ServiceWorkerRegistration;\n};\n\ninterface SharedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {\n    \"connect\": MessageEvent;\n}\n\ninterface SharedWorkerGlobalScope extends WorkerGlobalScope {\n    /** Returns sharedWorkerGlobal's name, i.e. the value given to the SharedWorker constructor. Multiple SharedWorker objects can correspond to the same shared worker (and SharedWorkerGlobalScope), by reusing the same name. */\n    readonly name: string;\n    onconnect: ((this: SharedWorkerGlobalScope, ev: MessageEvent) => any) | null;\n    /** Aborts sharedWorkerGlobal. */\n    close(): void;\n    addEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SharedWorkerGlobalScope: {\n    prototype: SharedWorkerGlobalScope;\n    new(): SharedWorkerGlobalScope;\n};\n\n/** Available only in secure contexts. */\ninterface StorageManager {\n    estimate(): Promise<StorageEstimate>;\n    getDirectory(): Promise<FileSystemDirectoryHandle>;\n    persisted(): Promise<boolean>;\n}\n\ndeclare var StorageManager: {\n    prototype: StorageManager;\n    new(): StorageManager;\n};\n\n/**\n * This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).\n * Available only in secure contexts.\n */\ninterface SubtleCrypto {\n    decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n    deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;\n    deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n    digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;\n    encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n    exportKey(format: \"jwk\", key: CryptoKey): Promise<JsonWebKey>;\n    exportKey(format: Exclude<KeyFormat, \"jwk\">, key: CryptoKey): Promise<ArrayBuffer>;\n    generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;\n    generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n    generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;\n    importKey(format: \"jwk\", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n    importKey(format: Exclude<KeyFormat, \"jwk\">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n    sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n    unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n    verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;\n    wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;\n}\n\ndeclare var SubtleCrypto: {\n    prototype: SubtleCrypto;\n    new(): SubtleCrypto;\n};\n\n/** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc.\\xA0A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView \\u2013 a C-like representation of strings based on typed arrays. */\ninterface TextDecoder extends TextDecoderCommon {\n    /**\n     * Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments.\n     *\n     * \\`\\`\\`\n     * var string = \"\", decoder = new TextDecoder(encoding), buffer;\n     * while(buffer = next_chunk()) {\n     *   string += decoder.decode(buffer, {stream:true});\n     * }\n     * string += decoder.decode(); // end-of-queue\n     * \\`\\`\\`\n     *\n     * If the error mode is \"fatal\" and encoding's decoder returns error, throws a TypeError.\n     */\n    decode(input?: BufferSource, options?: TextDecodeOptions): string;\n}\n\ndeclare var TextDecoder: {\n    prototype: TextDecoder;\n    new(label?: string, options?: TextDecoderOptions): TextDecoder;\n};\n\ninterface TextDecoderCommon {\n    /** Returns encoding's name, lowercased. */\n    readonly encoding: string;\n    /** Returns true if error mode is \"fatal\", otherwise false. */\n    readonly fatal: boolean;\n    /** Returns the value of ignore BOM. */\n    readonly ignoreBOM: boolean;\n}\n\ninterface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {\n    readonly readable: ReadableStream<string>;\n    readonly writable: WritableStream<BufferSource>;\n}\n\ndeclare var TextDecoderStream: {\n    prototype: TextDecoderStream;\n    new(label?: string, options?: TextDecoderOptions): TextDecoderStream;\n};\n\n/** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView \\u2013 a C-like representation of strings based on typed arrays. */\ninterface TextEncoder extends TextEncoderCommon {\n    /** Returns the result of running UTF-8's encoder. */\n    encode(input?: string): Uint8Array;\n    /** Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination. */\n    encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;\n}\n\ndeclare var TextEncoder: {\n    prototype: TextEncoder;\n    new(): TextEncoder;\n};\n\ninterface TextEncoderCommon {\n    /** Returns \"utf-8\". */\n    readonly encoding: string;\n}\n\ninterface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {\n    readonly readable: ReadableStream<Uint8Array>;\n    readonly writable: WritableStream<string>;\n}\n\ndeclare var TextEncoderStream: {\n    prototype: TextEncoderStream;\n    new(): TextEncoderStream;\n};\n\n/** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */\ninterface TextMetrics {\n    /** Returns the measurement described below. */\n    readonly actualBoundingBoxAscent: number;\n    /** Returns the measurement described below. */\n    readonly actualBoundingBoxDescent: number;\n    /** Returns the measurement described below. */\n    readonly actualBoundingBoxLeft: number;\n    /** Returns the measurement described below. */\n    readonly actualBoundingBoxRight: number;\n    /** Returns the measurement described below. */\n    readonly fontBoundingBoxAscent: number;\n    /** Returns the measurement described below. */\n    readonly fontBoundingBoxDescent: number;\n    /** Returns the measurement described below. */\n    readonly width: number;\n}\n\ndeclare var TextMetrics: {\n    prototype: TextMetrics;\n    new(): TextMetrics;\n};\n\ninterface TransformStream<I = any, O = any> {\n    readonly readable: ReadableStream<O>;\n    readonly writable: WritableStream<I>;\n}\n\ndeclare var TransformStream: {\n    prototype: TransformStream;\n    new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;\n};\n\ninterface TransformStreamDefaultController<O = any> {\n    readonly desiredSize: number | null;\n    enqueue(chunk?: O): void;\n    error(reason?: any): void;\n    terminate(): void;\n}\n\ndeclare var TransformStreamDefaultController: {\n    prototype: TransformStreamDefaultController;\n    new(): TransformStreamDefaultController;\n};\n\n/** The URL\\xA0interface represents an object providing static methods used for creating object URLs. */\ninterface URL {\n    hash: string;\n    host: string;\n    hostname: string;\n    href: string;\n    toString(): string;\n    readonly origin: string;\n    password: string;\n    pathname: string;\n    port: string;\n    protocol: string;\n    search: string;\n    readonly searchParams: URLSearchParams;\n    username: string;\n    toJSON(): string;\n}\n\ndeclare var URL: {\n    prototype: URL;\n    new(url: string | URL, base?: string | URL): URL;\n    createObjectURL(obj: Blob): string;\n    revokeObjectURL(url: string): void;\n};\n\ninterface URLSearchParams {\n    /** Appends a specified key/value pair as a new search parameter. */\n    append(name: string, value: string): void;\n    /** Deletes the given search parameter, and its associated value, from the list of all search parameters. */\n    delete(name: string): void;\n    /** Returns the first value associated to the given search parameter. */\n    get(name: string): string | null;\n    /** Returns all the values association with a given search parameter. */\n    getAll(name: string): string[];\n    /** Returns a Boolean indicating if such a search parameter exists. */\n    has(name: string): boolean;\n    /** Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. */\n    set(name: string, value: string): void;\n    sort(): void;\n    /** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */\n    toString(): string;\n    forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;\n}\n\ndeclare var URLSearchParams: {\n    prototype: URLSearchParams;\n    new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;\n    toString(): string;\n};\n\ninterface VideoColorSpace {\n    readonly fullRange: boolean | null;\n    readonly matrix: VideoMatrixCoefficients | null;\n    readonly primaries: VideoColorPrimaries | null;\n    readonly transfer: VideoTransferCharacteristics | null;\n    toJSON(): VideoColorSpaceInit;\n}\n\ndeclare var VideoColorSpace: {\n    prototype: VideoColorSpace;\n    new(init?: VideoColorSpaceInit): VideoColorSpace;\n};\n\ninterface WEBGL_color_buffer_float {\n    readonly RGBA32F_EXT: 0x8814;\n    readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;\n    readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;\n}\n\ninterface WEBGL_compressed_texture_astc {\n    getSupportedProfiles(): string[];\n    readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93B0;\n    readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93B1;\n    readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93B2;\n    readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93B3;\n    readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93B4;\n    readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93B5;\n    readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93B6;\n    readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93B7;\n    readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93B8;\n    readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93B9;\n    readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93BA;\n    readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93BB;\n    readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93BC;\n    readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93BD;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93D0;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93D1;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93D2;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93D3;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93D4;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93D5;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93D6;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93D7;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93D8;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93D9;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93DA;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93DB;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93DC;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93DD;\n}\n\ninterface WEBGL_compressed_texture_etc {\n    readonly COMPRESSED_R11_EAC: 0x9270;\n    readonly COMPRESSED_SIGNED_R11_EAC: 0x9271;\n    readonly COMPRESSED_RG11_EAC: 0x9272;\n    readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273;\n    readonly COMPRESSED_RGB8_ETC2: 0x9274;\n    readonly COMPRESSED_SRGB8_ETC2: 0x9275;\n    readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276;\n    readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277;\n    readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278;\n    readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279;\n}\n\ninterface WEBGL_compressed_texture_etc1 {\n    readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;\n}\n\n/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */\ninterface WEBGL_compressed_texture_s3tc {\n    readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0;\n    readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83F1;\n    readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83F2;\n    readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83F3;\n}\n\ninterface WEBGL_compressed_texture_s3tc_srgb {\n    readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8C4C;\n    readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8C4D;\n    readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8C4E;\n    readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8C4F;\n}\n\n/** The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes. */\ninterface WEBGL_debug_renderer_info {\n    readonly UNMASKED_VENDOR_WEBGL: 0x9245;\n    readonly UNMASKED_RENDERER_WEBGL: 0x9246;\n}\n\ninterface WEBGL_debug_shaders {\n    getTranslatedShaderSource(shader: WebGLShader): string;\n}\n\n/** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */\ninterface WEBGL_depth_texture {\n    readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA;\n}\n\ninterface WEBGL_draw_buffers {\n    drawBuffersWEBGL(buffers: GLenum[]): void;\n    readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0;\n    readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1;\n    readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2;\n    readonly COLOR_ATTACHMENT3_WEBGL: 0x8CE3;\n    readonly COLOR_ATTACHMENT4_WEBGL: 0x8CE4;\n    readonly COLOR_ATTACHMENT5_WEBGL: 0x8CE5;\n    readonly COLOR_ATTACHMENT6_WEBGL: 0x8CE6;\n    readonly COLOR_ATTACHMENT7_WEBGL: 0x8CE7;\n    readonly COLOR_ATTACHMENT8_WEBGL: 0x8CE8;\n    readonly COLOR_ATTACHMENT9_WEBGL: 0x8CE9;\n    readonly COLOR_ATTACHMENT10_WEBGL: 0x8CEA;\n    readonly COLOR_ATTACHMENT11_WEBGL: 0x8CEB;\n    readonly COLOR_ATTACHMENT12_WEBGL: 0x8CEC;\n    readonly COLOR_ATTACHMENT13_WEBGL: 0x8CED;\n    readonly COLOR_ATTACHMENT14_WEBGL: 0x8CEE;\n    readonly COLOR_ATTACHMENT15_WEBGL: 0x8CEF;\n    readonly DRAW_BUFFER0_WEBGL: 0x8825;\n    readonly DRAW_BUFFER1_WEBGL: 0x8826;\n    readonly DRAW_BUFFER2_WEBGL: 0x8827;\n    readonly DRAW_BUFFER3_WEBGL: 0x8828;\n    readonly DRAW_BUFFER4_WEBGL: 0x8829;\n    readonly DRAW_BUFFER5_WEBGL: 0x882A;\n    readonly DRAW_BUFFER6_WEBGL: 0x882B;\n    readonly DRAW_BUFFER7_WEBGL: 0x882C;\n    readonly DRAW_BUFFER8_WEBGL: 0x882D;\n    readonly DRAW_BUFFER9_WEBGL: 0x882E;\n    readonly DRAW_BUFFER10_WEBGL: 0x882F;\n    readonly DRAW_BUFFER11_WEBGL: 0x8830;\n    readonly DRAW_BUFFER12_WEBGL: 0x8831;\n    readonly DRAW_BUFFER13_WEBGL: 0x8832;\n    readonly DRAW_BUFFER14_WEBGL: 0x8833;\n    readonly DRAW_BUFFER15_WEBGL: 0x8834;\n    readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8CDF;\n    readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824;\n}\n\ninterface WEBGL_lose_context {\n    loseContext(): void;\n    restoreContext(): void;\n}\n\ninterface WEBGL_multi_draw {\n    multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;\n    multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;\n    multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;\n    multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;\n}\n\ninterface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {\n}\n\ndeclare var WebGL2RenderingContext: {\n    prototype: WebGL2RenderingContext;\n    new(): WebGL2RenderingContext;\n    readonly READ_BUFFER: 0x0C02;\n    readonly UNPACK_ROW_LENGTH: 0x0CF2;\n    readonly UNPACK_SKIP_ROWS: 0x0CF3;\n    readonly UNPACK_SKIP_PIXELS: 0x0CF4;\n    readonly PACK_ROW_LENGTH: 0x0D02;\n    readonly PACK_SKIP_ROWS: 0x0D03;\n    readonly PACK_SKIP_PIXELS: 0x0D04;\n    readonly COLOR: 0x1800;\n    readonly DEPTH: 0x1801;\n    readonly STENCIL: 0x1802;\n    readonly RED: 0x1903;\n    readonly RGB8: 0x8051;\n    readonly RGBA8: 0x8058;\n    readonly RGB10_A2: 0x8059;\n    readonly TEXTURE_BINDING_3D: 0x806A;\n    readonly UNPACK_SKIP_IMAGES: 0x806D;\n    readonly UNPACK_IMAGE_HEIGHT: 0x806E;\n    readonly TEXTURE_3D: 0x806F;\n    readonly TEXTURE_WRAP_R: 0x8072;\n    readonly MAX_3D_TEXTURE_SIZE: 0x8073;\n    readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;\n    readonly MAX_ELEMENTS_VERTICES: 0x80E8;\n    readonly MAX_ELEMENTS_INDICES: 0x80E9;\n    readonly TEXTURE_MIN_LOD: 0x813A;\n    readonly TEXTURE_MAX_LOD: 0x813B;\n    readonly TEXTURE_BASE_LEVEL: 0x813C;\n    readonly TEXTURE_MAX_LEVEL: 0x813D;\n    readonly MIN: 0x8007;\n    readonly MAX: 0x8008;\n    readonly DEPTH_COMPONENT24: 0x81A6;\n    readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;\n    readonly TEXTURE_COMPARE_MODE: 0x884C;\n    readonly TEXTURE_COMPARE_FUNC: 0x884D;\n    readonly CURRENT_QUERY: 0x8865;\n    readonly QUERY_RESULT: 0x8866;\n    readonly QUERY_RESULT_AVAILABLE: 0x8867;\n    readonly STREAM_READ: 0x88E1;\n    readonly STREAM_COPY: 0x88E2;\n    readonly STATIC_READ: 0x88E5;\n    readonly STATIC_COPY: 0x88E6;\n    readonly DYNAMIC_READ: 0x88E9;\n    readonly DYNAMIC_COPY: 0x88EA;\n    readonly MAX_DRAW_BUFFERS: 0x8824;\n    readonly DRAW_BUFFER0: 0x8825;\n    readonly DRAW_BUFFER1: 0x8826;\n    readonly DRAW_BUFFER2: 0x8827;\n    readonly DRAW_BUFFER3: 0x8828;\n    readonly DRAW_BUFFER4: 0x8829;\n    readonly DRAW_BUFFER5: 0x882A;\n    readonly DRAW_BUFFER6: 0x882B;\n    readonly DRAW_BUFFER7: 0x882C;\n    readonly DRAW_BUFFER8: 0x882D;\n    readonly DRAW_BUFFER9: 0x882E;\n    readonly DRAW_BUFFER10: 0x882F;\n    readonly DRAW_BUFFER11: 0x8830;\n    readonly DRAW_BUFFER12: 0x8831;\n    readonly DRAW_BUFFER13: 0x8832;\n    readonly DRAW_BUFFER14: 0x8833;\n    readonly DRAW_BUFFER15: 0x8834;\n    readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;\n    readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;\n    readonly SAMPLER_3D: 0x8B5F;\n    readonly SAMPLER_2D_SHADOW: 0x8B62;\n    readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;\n    readonly PIXEL_PACK_BUFFER: 0x88EB;\n    readonly PIXEL_UNPACK_BUFFER: 0x88EC;\n    readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;\n    readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;\n    readonly FLOAT_MAT2x3: 0x8B65;\n    readonly FLOAT_MAT2x4: 0x8B66;\n    readonly FLOAT_MAT3x2: 0x8B67;\n    readonly FLOAT_MAT3x4: 0x8B68;\n    readonly FLOAT_MAT4x2: 0x8B69;\n    readonly FLOAT_MAT4x3: 0x8B6A;\n    readonly SRGB: 0x8C40;\n    readonly SRGB8: 0x8C41;\n    readonly SRGB8_ALPHA8: 0x8C43;\n    readonly COMPARE_REF_TO_TEXTURE: 0x884E;\n    readonly RGBA32F: 0x8814;\n    readonly RGB32F: 0x8815;\n    readonly RGBA16F: 0x881A;\n    readonly RGB16F: 0x881B;\n    readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;\n    readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;\n    readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;\n    readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;\n    readonly MAX_VARYING_COMPONENTS: 0x8B4B;\n    readonly TEXTURE_2D_ARRAY: 0x8C1A;\n    readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;\n    readonly R11F_G11F_B10F: 0x8C3A;\n    readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;\n    readonly RGB9_E5: 0x8C3D;\n    readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;\n    readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;\n    readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;\n    readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;\n    readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;\n    readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;\n    readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;\n    readonly RASTERIZER_DISCARD: 0x8C89;\n    readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;\n    readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;\n    readonly INTERLEAVED_ATTRIBS: 0x8C8C;\n    readonly SEPARATE_ATTRIBS: 0x8C8D;\n    readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;\n    readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;\n    readonly RGBA32UI: 0x8D70;\n    readonly RGB32UI: 0x8D71;\n    readonly RGBA16UI: 0x8D76;\n    readonly RGB16UI: 0x8D77;\n    readonly RGBA8UI: 0x8D7C;\n    readonly RGB8UI: 0x8D7D;\n    readonly RGBA32I: 0x8D82;\n    readonly RGB32I: 0x8D83;\n    readonly RGBA16I: 0x8D88;\n    readonly RGB16I: 0x8D89;\n    readonly RGBA8I: 0x8D8E;\n    readonly RGB8I: 0x8D8F;\n    readonly RED_INTEGER: 0x8D94;\n    readonly RGB_INTEGER: 0x8D98;\n    readonly RGBA_INTEGER: 0x8D99;\n    readonly SAMPLER_2D_ARRAY: 0x8DC1;\n    readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;\n    readonly SAMPLER_CUBE_SHADOW: 0x8DC5;\n    readonly UNSIGNED_INT_VEC2: 0x8DC6;\n    readonly UNSIGNED_INT_VEC3: 0x8DC7;\n    readonly UNSIGNED_INT_VEC4: 0x8DC8;\n    readonly INT_SAMPLER_2D: 0x8DCA;\n    readonly INT_SAMPLER_3D: 0x8DCB;\n    readonly INT_SAMPLER_CUBE: 0x8DCC;\n    readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;\n    readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;\n    readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;\n    readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;\n    readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;\n    readonly DEPTH_COMPONENT32F: 0x8CAC;\n    readonly DEPTH32F_STENCIL8: 0x8CAD;\n    readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;\n    readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;\n    readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;\n    readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;\n    readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;\n    readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;\n    readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;\n    readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;\n    readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;\n    readonly FRAMEBUFFER_DEFAULT: 0x8218;\n    readonly UNSIGNED_INT_24_8: 0x84FA;\n    readonly DEPTH24_STENCIL8: 0x88F0;\n    readonly UNSIGNED_NORMALIZED: 0x8C17;\n    readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;\n    readonly READ_FRAMEBUFFER: 0x8CA8;\n    readonly DRAW_FRAMEBUFFER: 0x8CA9;\n    readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;\n    readonly RENDERBUFFER_SAMPLES: 0x8CAB;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;\n    readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;\n    readonly COLOR_ATTACHMENT1: 0x8CE1;\n    readonly COLOR_ATTACHMENT2: 0x8CE2;\n    readonly COLOR_ATTACHMENT3: 0x8CE3;\n    readonly COLOR_ATTACHMENT4: 0x8CE4;\n    readonly COLOR_ATTACHMENT5: 0x8CE5;\n    readonly COLOR_ATTACHMENT6: 0x8CE6;\n    readonly COLOR_ATTACHMENT7: 0x8CE7;\n    readonly COLOR_ATTACHMENT8: 0x8CE8;\n    readonly COLOR_ATTACHMENT9: 0x8CE9;\n    readonly COLOR_ATTACHMENT10: 0x8CEA;\n    readonly COLOR_ATTACHMENT11: 0x8CEB;\n    readonly COLOR_ATTACHMENT12: 0x8CEC;\n    readonly COLOR_ATTACHMENT13: 0x8CED;\n    readonly COLOR_ATTACHMENT14: 0x8CEE;\n    readonly COLOR_ATTACHMENT15: 0x8CEF;\n    readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;\n    readonly MAX_SAMPLES: 0x8D57;\n    readonly HALF_FLOAT: 0x140B;\n    readonly RG: 0x8227;\n    readonly RG_INTEGER: 0x8228;\n    readonly R8: 0x8229;\n    readonly RG8: 0x822B;\n    readonly R16F: 0x822D;\n    readonly R32F: 0x822E;\n    readonly RG16F: 0x822F;\n    readonly RG32F: 0x8230;\n    readonly R8I: 0x8231;\n    readonly R8UI: 0x8232;\n    readonly R16I: 0x8233;\n    readonly R16UI: 0x8234;\n    readonly R32I: 0x8235;\n    readonly R32UI: 0x8236;\n    readonly RG8I: 0x8237;\n    readonly RG8UI: 0x8238;\n    readonly RG16I: 0x8239;\n    readonly RG16UI: 0x823A;\n    readonly RG32I: 0x823B;\n    readonly RG32UI: 0x823C;\n    readonly VERTEX_ARRAY_BINDING: 0x85B5;\n    readonly R8_SNORM: 0x8F94;\n    readonly RG8_SNORM: 0x8F95;\n    readonly RGB8_SNORM: 0x8F96;\n    readonly RGBA8_SNORM: 0x8F97;\n    readonly SIGNED_NORMALIZED: 0x8F9C;\n    readonly COPY_READ_BUFFER: 0x8F36;\n    readonly COPY_WRITE_BUFFER: 0x8F37;\n    readonly COPY_READ_BUFFER_BINDING: 0x8F36;\n    readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;\n    readonly UNIFORM_BUFFER: 0x8A11;\n    readonly UNIFORM_BUFFER_BINDING: 0x8A28;\n    readonly UNIFORM_BUFFER_START: 0x8A29;\n    readonly UNIFORM_BUFFER_SIZE: 0x8A2A;\n    readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;\n    readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;\n    readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;\n    readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;\n    readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;\n    readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;\n    readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;\n    readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;\n    readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;\n    readonly UNIFORM_TYPE: 0x8A37;\n    readonly UNIFORM_SIZE: 0x8A38;\n    readonly UNIFORM_BLOCK_INDEX: 0x8A3A;\n    readonly UNIFORM_OFFSET: 0x8A3B;\n    readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;\n    readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;\n    readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;\n    readonly UNIFORM_BLOCK_BINDING: 0x8A3F;\n    readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;\n    readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;\n    readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;\n    readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;\n    readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;\n    readonly INVALID_INDEX: 0xFFFFFFFF;\n    readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;\n    readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;\n    readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;\n    readonly OBJECT_TYPE: 0x9112;\n    readonly SYNC_CONDITION: 0x9113;\n    readonly SYNC_STATUS: 0x9114;\n    readonly SYNC_FLAGS: 0x9115;\n    readonly SYNC_FENCE: 0x9116;\n    readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;\n    readonly UNSIGNALED: 0x9118;\n    readonly SIGNALED: 0x9119;\n    readonly ALREADY_SIGNALED: 0x911A;\n    readonly TIMEOUT_EXPIRED: 0x911B;\n    readonly CONDITION_SATISFIED: 0x911C;\n    readonly WAIT_FAILED: 0x911D;\n    readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;\n    readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;\n    readonly ANY_SAMPLES_PASSED: 0x8C2F;\n    readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;\n    readonly SAMPLER_BINDING: 0x8919;\n    readonly RGB10_A2UI: 0x906F;\n    readonly INT_2_10_10_10_REV: 0x8D9F;\n    readonly TRANSFORM_FEEDBACK: 0x8E22;\n    readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;\n    readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;\n    readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;\n    readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;\n    readonly MAX_ELEMENT_INDEX: 0x8D6B;\n    readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;\n    readonly TIMEOUT_IGNORED: -1;\n    readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;\n    readonly DEPTH_BUFFER_BIT: 0x00000100;\n    readonly STENCIL_BUFFER_BIT: 0x00000400;\n    readonly COLOR_BUFFER_BIT: 0x00004000;\n    readonly POINTS: 0x0000;\n    readonly LINES: 0x0001;\n    readonly LINE_LOOP: 0x0002;\n    readonly LINE_STRIP: 0x0003;\n    readonly TRIANGLES: 0x0004;\n    readonly TRIANGLE_STRIP: 0x0005;\n    readonly TRIANGLE_FAN: 0x0006;\n    readonly ZERO: 0;\n    readonly ONE: 1;\n    readonly SRC_COLOR: 0x0300;\n    readonly ONE_MINUS_SRC_COLOR: 0x0301;\n    readonly SRC_ALPHA: 0x0302;\n    readonly ONE_MINUS_SRC_ALPHA: 0x0303;\n    readonly DST_ALPHA: 0x0304;\n    readonly ONE_MINUS_DST_ALPHA: 0x0305;\n    readonly DST_COLOR: 0x0306;\n    readonly ONE_MINUS_DST_COLOR: 0x0307;\n    readonly SRC_ALPHA_SATURATE: 0x0308;\n    readonly FUNC_ADD: 0x8006;\n    readonly BLEND_EQUATION: 0x8009;\n    readonly BLEND_EQUATION_RGB: 0x8009;\n    readonly BLEND_EQUATION_ALPHA: 0x883D;\n    readonly FUNC_SUBTRACT: 0x800A;\n    readonly FUNC_REVERSE_SUBTRACT: 0x800B;\n    readonly BLEND_DST_RGB: 0x80C8;\n    readonly BLEND_SRC_RGB: 0x80C9;\n    readonly BLEND_DST_ALPHA: 0x80CA;\n    readonly BLEND_SRC_ALPHA: 0x80CB;\n    readonly CONSTANT_COLOR: 0x8001;\n    readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;\n    readonly CONSTANT_ALPHA: 0x8003;\n    readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;\n    readonly BLEND_COLOR: 0x8005;\n    readonly ARRAY_BUFFER: 0x8892;\n    readonly ELEMENT_ARRAY_BUFFER: 0x8893;\n    readonly ARRAY_BUFFER_BINDING: 0x8894;\n    readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;\n    readonly STREAM_DRAW: 0x88E0;\n    readonly STATIC_DRAW: 0x88E4;\n    readonly DYNAMIC_DRAW: 0x88E8;\n    readonly BUFFER_SIZE: 0x8764;\n    readonly BUFFER_USAGE: 0x8765;\n    readonly CURRENT_VERTEX_ATTRIB: 0x8626;\n    readonly FRONT: 0x0404;\n    readonly BACK: 0x0405;\n    readonly FRONT_AND_BACK: 0x0408;\n    readonly CULL_FACE: 0x0B44;\n    readonly BLEND: 0x0BE2;\n    readonly DITHER: 0x0BD0;\n    readonly STENCIL_TEST: 0x0B90;\n    readonly DEPTH_TEST: 0x0B71;\n    readonly SCISSOR_TEST: 0x0C11;\n    readonly POLYGON_OFFSET_FILL: 0x8037;\n    readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;\n    readonly SAMPLE_COVERAGE: 0x80A0;\n    readonly NO_ERROR: 0;\n    readonly INVALID_ENUM: 0x0500;\n    readonly INVALID_VALUE: 0x0501;\n    readonly INVALID_OPERATION: 0x0502;\n    readonly OUT_OF_MEMORY: 0x0505;\n    readonly CW: 0x0900;\n    readonly CCW: 0x0901;\n    readonly LINE_WIDTH: 0x0B21;\n    readonly ALIASED_POINT_SIZE_RANGE: 0x846D;\n    readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;\n    readonly CULL_FACE_MODE: 0x0B45;\n    readonly FRONT_FACE: 0x0B46;\n    readonly DEPTH_RANGE: 0x0B70;\n    readonly DEPTH_WRITEMASK: 0x0B72;\n    readonly DEPTH_CLEAR_VALUE: 0x0B73;\n    readonly DEPTH_FUNC: 0x0B74;\n    readonly STENCIL_CLEAR_VALUE: 0x0B91;\n    readonly STENCIL_FUNC: 0x0B92;\n    readonly STENCIL_FAIL: 0x0B94;\n    readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;\n    readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;\n    readonly STENCIL_REF: 0x0B97;\n    readonly STENCIL_VALUE_MASK: 0x0B93;\n    readonly STENCIL_WRITEMASK: 0x0B98;\n    readonly STENCIL_BACK_FUNC: 0x8800;\n    readonly STENCIL_BACK_FAIL: 0x8801;\n    readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;\n    readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;\n    readonly STENCIL_BACK_REF: 0x8CA3;\n    readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;\n    readonly STENCIL_BACK_WRITEMASK: 0x8CA5;\n    readonly VIEWPORT: 0x0BA2;\n    readonly SCISSOR_BOX: 0x0C10;\n    readonly COLOR_CLEAR_VALUE: 0x0C22;\n    readonly COLOR_WRITEMASK: 0x0C23;\n    readonly UNPACK_ALIGNMENT: 0x0CF5;\n    readonly PACK_ALIGNMENT: 0x0D05;\n    readonly MAX_TEXTURE_SIZE: 0x0D33;\n    readonly MAX_VIEWPORT_DIMS: 0x0D3A;\n    readonly SUBPIXEL_BITS: 0x0D50;\n    readonly RED_BITS: 0x0D52;\n    readonly GREEN_BITS: 0x0D53;\n    readonly BLUE_BITS: 0x0D54;\n    readonly ALPHA_BITS: 0x0D55;\n    readonly DEPTH_BITS: 0x0D56;\n    readonly STENCIL_BITS: 0x0D57;\n    readonly POLYGON_OFFSET_UNITS: 0x2A00;\n    readonly POLYGON_OFFSET_FACTOR: 0x8038;\n    readonly TEXTURE_BINDING_2D: 0x8069;\n    readonly SAMPLE_BUFFERS: 0x80A8;\n    readonly SAMPLES: 0x80A9;\n    readonly SAMPLE_COVERAGE_VALUE: 0x80AA;\n    readonly SAMPLE_COVERAGE_INVERT: 0x80AB;\n    readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;\n    readonly DONT_CARE: 0x1100;\n    readonly FASTEST: 0x1101;\n    readonly NICEST: 0x1102;\n    readonly GENERATE_MIPMAP_HINT: 0x8192;\n    readonly BYTE: 0x1400;\n    readonly UNSIGNED_BYTE: 0x1401;\n    readonly SHORT: 0x1402;\n    readonly UNSIGNED_SHORT: 0x1403;\n    readonly INT: 0x1404;\n    readonly UNSIGNED_INT: 0x1405;\n    readonly FLOAT: 0x1406;\n    readonly DEPTH_COMPONENT: 0x1902;\n    readonly ALPHA: 0x1906;\n    readonly RGB: 0x1907;\n    readonly RGBA: 0x1908;\n    readonly LUMINANCE: 0x1909;\n    readonly LUMINANCE_ALPHA: 0x190A;\n    readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;\n    readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;\n    readonly UNSIGNED_SHORT_5_6_5: 0x8363;\n    readonly FRAGMENT_SHADER: 0x8B30;\n    readonly VERTEX_SHADER: 0x8B31;\n    readonly MAX_VERTEX_ATTRIBS: 0x8869;\n    readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;\n    readonly MAX_VARYING_VECTORS: 0x8DFC;\n    readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;\n    readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;\n    readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;\n    readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;\n    readonly SHADER_TYPE: 0x8B4F;\n    readonly DELETE_STATUS: 0x8B80;\n    readonly LINK_STATUS: 0x8B82;\n    readonly VALIDATE_STATUS: 0x8B83;\n    readonly ATTACHED_SHADERS: 0x8B85;\n    readonly ACTIVE_UNIFORMS: 0x8B86;\n    readonly ACTIVE_ATTRIBUTES: 0x8B89;\n    readonly SHADING_LANGUAGE_VERSION: 0x8B8C;\n    readonly CURRENT_PROGRAM: 0x8B8D;\n    readonly NEVER: 0x0200;\n    readonly LESS: 0x0201;\n    readonly EQUAL: 0x0202;\n    readonly LEQUAL: 0x0203;\n    readonly GREATER: 0x0204;\n    readonly NOTEQUAL: 0x0205;\n    readonly GEQUAL: 0x0206;\n    readonly ALWAYS: 0x0207;\n    readonly KEEP: 0x1E00;\n    readonly REPLACE: 0x1E01;\n    readonly INCR: 0x1E02;\n    readonly DECR: 0x1E03;\n    readonly INVERT: 0x150A;\n    readonly INCR_WRAP: 0x8507;\n    readonly DECR_WRAP: 0x8508;\n    readonly VENDOR: 0x1F00;\n    readonly RENDERER: 0x1F01;\n    readonly VERSION: 0x1F02;\n    readonly NEAREST: 0x2600;\n    readonly LINEAR: 0x2601;\n    readonly NEAREST_MIPMAP_NEAREST: 0x2700;\n    readonly LINEAR_MIPMAP_NEAREST: 0x2701;\n    readonly NEAREST_MIPMAP_LINEAR: 0x2702;\n    readonly LINEAR_MIPMAP_LINEAR: 0x2703;\n    readonly TEXTURE_MAG_FILTER: 0x2800;\n    readonly TEXTURE_MIN_FILTER: 0x2801;\n    readonly TEXTURE_WRAP_S: 0x2802;\n    readonly TEXTURE_WRAP_T: 0x2803;\n    readonly TEXTURE_2D: 0x0DE1;\n    readonly TEXTURE: 0x1702;\n    readonly TEXTURE_CUBE_MAP: 0x8513;\n    readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;\n    readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;\n    readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;\n    readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;\n    readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;\n    readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;\n    readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;\n    readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;\n    readonly TEXTURE0: 0x84C0;\n    readonly TEXTURE1: 0x84C1;\n    readonly TEXTURE2: 0x84C2;\n    readonly TEXTURE3: 0x84C3;\n    readonly TEXTURE4: 0x84C4;\n    readonly TEXTURE5: 0x84C5;\n    readonly TEXTURE6: 0x84C6;\n    readonly TEXTURE7: 0x84C7;\n    readonly TEXTURE8: 0x84C8;\n    readonly TEXTURE9: 0x84C9;\n    readonly TEXTURE10: 0x84CA;\n    readonly TEXTURE11: 0x84CB;\n    readonly TEXTURE12: 0x84CC;\n    readonly TEXTURE13: 0x84CD;\n    readonly TEXTURE14: 0x84CE;\n    readonly TEXTURE15: 0x84CF;\n    readonly TEXTURE16: 0x84D0;\n    readonly TEXTURE17: 0x84D1;\n    readonly TEXTURE18: 0x84D2;\n    readonly TEXTURE19: 0x84D3;\n    readonly TEXTURE20: 0x84D4;\n    readonly TEXTURE21: 0x84D5;\n    readonly TEXTURE22: 0x84D6;\n    readonly TEXTURE23: 0x84D7;\n    readonly TEXTURE24: 0x84D8;\n    readonly TEXTURE25: 0x84D9;\n    readonly TEXTURE26: 0x84DA;\n    readonly TEXTURE27: 0x84DB;\n    readonly TEXTURE28: 0x84DC;\n    readonly TEXTURE29: 0x84DD;\n    readonly TEXTURE30: 0x84DE;\n    readonly TEXTURE31: 0x84DF;\n    readonly ACTIVE_TEXTURE: 0x84E0;\n    readonly REPEAT: 0x2901;\n    readonly CLAMP_TO_EDGE: 0x812F;\n    readonly MIRRORED_REPEAT: 0x8370;\n    readonly FLOAT_VEC2: 0x8B50;\n    readonly FLOAT_VEC3: 0x8B51;\n    readonly FLOAT_VEC4: 0x8B52;\n    readonly INT_VEC2: 0x8B53;\n    readonly INT_VEC3: 0x8B54;\n    readonly INT_VEC4: 0x8B55;\n    readonly BOOL: 0x8B56;\n    readonly BOOL_VEC2: 0x8B57;\n    readonly BOOL_VEC3: 0x8B58;\n    readonly BOOL_VEC4: 0x8B59;\n    readonly FLOAT_MAT2: 0x8B5A;\n    readonly FLOAT_MAT3: 0x8B5B;\n    readonly FLOAT_MAT4: 0x8B5C;\n    readonly SAMPLER_2D: 0x8B5E;\n    readonly SAMPLER_CUBE: 0x8B60;\n    readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;\n    readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;\n    readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;\n    readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;\n    readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;\n    readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;\n    readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;\n    readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;\n    readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;\n    readonly COMPILE_STATUS: 0x8B81;\n    readonly LOW_FLOAT: 0x8DF0;\n    readonly MEDIUM_FLOAT: 0x8DF1;\n    readonly HIGH_FLOAT: 0x8DF2;\n    readonly LOW_INT: 0x8DF3;\n    readonly MEDIUM_INT: 0x8DF4;\n    readonly HIGH_INT: 0x8DF5;\n    readonly FRAMEBUFFER: 0x8D40;\n    readonly RENDERBUFFER: 0x8D41;\n    readonly RGBA4: 0x8056;\n    readonly RGB5_A1: 0x8057;\n    readonly RGB565: 0x8D62;\n    readonly DEPTH_COMPONENT16: 0x81A5;\n    readonly STENCIL_INDEX8: 0x8D48;\n    readonly DEPTH_STENCIL: 0x84F9;\n    readonly RENDERBUFFER_WIDTH: 0x8D42;\n    readonly RENDERBUFFER_HEIGHT: 0x8D43;\n    readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;\n    readonly RENDERBUFFER_RED_SIZE: 0x8D50;\n    readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;\n    readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;\n    readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;\n    readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;\n    readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;\n    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;\n    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;\n    readonly COLOR_ATTACHMENT0: 0x8CE0;\n    readonly DEPTH_ATTACHMENT: 0x8D00;\n    readonly STENCIL_ATTACHMENT: 0x8D20;\n    readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;\n    readonly NONE: 0;\n    readonly FRAMEBUFFER_COMPLETE: 0x8CD5;\n    readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;\n    readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;\n    readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;\n    readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;\n    readonly FRAMEBUFFER_BINDING: 0x8CA6;\n    readonly RENDERBUFFER_BINDING: 0x8CA7;\n    readonly MAX_RENDERBUFFER_SIZE: 0x84E8;\n    readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;\n    readonly UNPACK_FLIP_Y_WEBGL: 0x9240;\n    readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;\n    readonly CONTEXT_LOST_WEBGL: 0x9242;\n    readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;\n    readonly BROWSER_DEFAULT_WEBGL: 0x9244;\n};\n\ninterface WebGL2RenderingContextBase {\n    beginQuery(target: GLenum, query: WebGLQuery): void;\n    beginTransformFeedback(primitiveMode: GLenum): void;\n    bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;\n    bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;\n    bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;\n    bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;\n    bindVertexArray(array: WebGLVertexArrayObject | null): void;\n    blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;\n    clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;\n    clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;\n    clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;\n    clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;\n    clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;\n    compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;\n    compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n    compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;\n    compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n    copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;\n    copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n    createQuery(): WebGLQuery | null;\n    createSampler(): WebGLSampler | null;\n    createTransformFeedback(): WebGLTransformFeedback | null;\n    createVertexArray(): WebGLVertexArrayObject | null;\n    deleteQuery(query: WebGLQuery | null): void;\n    deleteSampler(sampler: WebGLSampler | null): void;\n    deleteSync(sync: WebGLSync | null): void;\n    deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;\n    deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;\n    drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;\n    drawBuffers(buffers: GLenum[]): void;\n    drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;\n    drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;\n    endQuery(target: GLenum): void;\n    endTransformFeedback(): void;\n    fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;\n    framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;\n    getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;\n    getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;\n    getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;\n    getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;\n    getFragDataLocation(program: WebGLProgram, name: string): GLint;\n    getIndexedParameter(target: GLenum, index: GLuint): any;\n    getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;\n    getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;\n    getQueryParameter(query: WebGLQuery, pname: GLenum): any;\n    getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;\n    getSyncParameter(sync: WebGLSync, pname: GLenum): any;\n    getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n    getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;\n    getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;\n    invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;\n    invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n    isQuery(query: WebGLQuery | null): GLboolean;\n    isSampler(sampler: WebGLSampler | null): GLboolean;\n    isSync(sync: WebGLSync | null): GLboolean;\n    isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;\n    isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;\n    pauseTransformFeedback(): void;\n    readBuffer(src: GLenum): void;\n    renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n    resumeTransformFeedback(): void;\n    samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;\n    samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;\n    texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n    texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n    texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;\n    texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n    texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n    texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;\n    texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n    texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;\n    texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: GLuint): void;\n    transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;\n    uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;\n    uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;\n    uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;\n    uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;\n    uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;\n    uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    vertexAttribDivisor(index: GLuint, divisor: GLuint): void;\n    vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;\n    vertexAttribI4iv(index: GLuint, values: Int32List): void;\n    vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;\n    vertexAttribI4uiv(index: GLuint, values: Uint32List): void;\n    vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;\n    waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;\n    readonly READ_BUFFER: 0x0C02;\n    readonly UNPACK_ROW_LENGTH: 0x0CF2;\n    readonly UNPACK_SKIP_ROWS: 0x0CF3;\n    readonly UNPACK_SKIP_PIXELS: 0x0CF4;\n    readonly PACK_ROW_LENGTH: 0x0D02;\n    readonly PACK_SKIP_ROWS: 0x0D03;\n    readonly PACK_SKIP_PIXELS: 0x0D04;\n    readonly COLOR: 0x1800;\n    readonly DEPTH: 0x1801;\n    readonly STENCIL: 0x1802;\n    readonly RED: 0x1903;\n    readonly RGB8: 0x8051;\n    readonly RGBA8: 0x8058;\n    readonly RGB10_A2: 0x8059;\n    readonly TEXTURE_BINDING_3D: 0x806A;\n    readonly UNPACK_SKIP_IMAGES: 0x806D;\n    readonly UNPACK_IMAGE_HEIGHT: 0x806E;\n    readonly TEXTURE_3D: 0x806F;\n    readonly TEXTURE_WRAP_R: 0x8072;\n    readonly MAX_3D_TEXTURE_SIZE: 0x8073;\n    readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;\n    readonly MAX_ELEMENTS_VERTICES: 0x80E8;\n    readonly MAX_ELEMENTS_INDICES: 0x80E9;\n    readonly TEXTURE_MIN_LOD: 0x813A;\n    readonly TEXTURE_MAX_LOD: 0x813B;\n    readonly TEXTURE_BASE_LEVEL: 0x813C;\n    readonly TEXTURE_MAX_LEVEL: 0x813D;\n    readonly MIN: 0x8007;\n    readonly MAX: 0x8008;\n    readonly DEPTH_COMPONENT24: 0x81A6;\n    readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;\n    readonly TEXTURE_COMPARE_MODE: 0x884C;\n    readonly TEXTURE_COMPARE_FUNC: 0x884D;\n    readonly CURRENT_QUERY: 0x8865;\n    readonly QUERY_RESULT: 0x8866;\n    readonly QUERY_RESULT_AVAILABLE: 0x8867;\n    readonly STREAM_READ: 0x88E1;\n    readonly STREAM_COPY: 0x88E2;\n    readonly STATIC_READ: 0x88E5;\n    readonly STATIC_COPY: 0x88E6;\n    readonly DYNAMIC_READ: 0x88E9;\n    readonly DYNAMIC_COPY: 0x88EA;\n    readonly MAX_DRAW_BUFFERS: 0x8824;\n    readonly DRAW_BUFFER0: 0x8825;\n    readonly DRAW_BUFFER1: 0x8826;\n    readonly DRAW_BUFFER2: 0x8827;\n    readonly DRAW_BUFFER3: 0x8828;\n    readonly DRAW_BUFFER4: 0x8829;\n    readonly DRAW_BUFFER5: 0x882A;\n    readonly DRAW_BUFFER6: 0x882B;\n    readonly DRAW_BUFFER7: 0x882C;\n    readonly DRAW_BUFFER8: 0x882D;\n    readonly DRAW_BUFFER9: 0x882E;\n    readonly DRAW_BUFFER10: 0x882F;\n    readonly DRAW_BUFFER11: 0x8830;\n    readonly DRAW_BUFFER12: 0x8831;\n    readonly DRAW_BUFFER13: 0x8832;\n    readonly DRAW_BUFFER14: 0x8833;\n    readonly DRAW_BUFFER15: 0x8834;\n    readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;\n    readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;\n    readonly SAMPLER_3D: 0x8B5F;\n    readonly SAMPLER_2D_SHADOW: 0x8B62;\n    readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;\n    readonly PIXEL_PACK_BUFFER: 0x88EB;\n    readonly PIXEL_UNPACK_BUFFER: 0x88EC;\n    readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;\n    readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;\n    readonly FLOAT_MAT2x3: 0x8B65;\n    readonly FLOAT_MAT2x4: 0x8B66;\n    readonly FLOAT_MAT3x2: 0x8B67;\n    readonly FLOAT_MAT3x4: 0x8B68;\n    readonly FLOAT_MAT4x2: 0x8B69;\n    readonly FLOAT_MAT4x3: 0x8B6A;\n    readonly SRGB: 0x8C40;\n    readonly SRGB8: 0x8C41;\n    readonly SRGB8_ALPHA8: 0x8C43;\n    readonly COMPARE_REF_TO_TEXTURE: 0x884E;\n    readonly RGBA32F: 0x8814;\n    readonly RGB32F: 0x8815;\n    readonly RGBA16F: 0x881A;\n    readonly RGB16F: 0x881B;\n    readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;\n    readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;\n    readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;\n    readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;\n    readonly MAX_VARYING_COMPONENTS: 0x8B4B;\n    readonly TEXTURE_2D_ARRAY: 0x8C1A;\n    readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;\n    readonly R11F_G11F_B10F: 0x8C3A;\n    readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;\n    readonly RGB9_E5: 0x8C3D;\n    readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;\n    readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;\n    readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;\n    readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;\n    readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;\n    readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;\n    readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;\n    readonly RASTERIZER_DISCARD: 0x8C89;\n    readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;\n    readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;\n    readonly INTERLEAVED_ATTRIBS: 0x8C8C;\n    readonly SEPARATE_ATTRIBS: 0x8C8D;\n    readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;\n    readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;\n    readonly RGBA32UI: 0x8D70;\n    readonly RGB32UI: 0x8D71;\n    readonly RGBA16UI: 0x8D76;\n    readonly RGB16UI: 0x8D77;\n    readonly RGBA8UI: 0x8D7C;\n    readonly RGB8UI: 0x8D7D;\n    readonly RGBA32I: 0x8D82;\n    readonly RGB32I: 0x8D83;\n    readonly RGBA16I: 0x8D88;\n    readonly RGB16I: 0x8D89;\n    readonly RGBA8I: 0x8D8E;\n    readonly RGB8I: 0x8D8F;\n    readonly RED_INTEGER: 0x8D94;\n    readonly RGB_INTEGER: 0x8D98;\n    readonly RGBA_INTEGER: 0x8D99;\n    readonly SAMPLER_2D_ARRAY: 0x8DC1;\n    readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;\n    readonly SAMPLER_CUBE_SHADOW: 0x8DC5;\n    readonly UNSIGNED_INT_VEC2: 0x8DC6;\n    readonly UNSIGNED_INT_VEC3: 0x8DC7;\n    readonly UNSIGNED_INT_VEC4: 0x8DC8;\n    readonly INT_SAMPLER_2D: 0x8DCA;\n    readonly INT_SAMPLER_3D: 0x8DCB;\n    readonly INT_SAMPLER_CUBE: 0x8DCC;\n    readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;\n    readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;\n    readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;\n    readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;\n    readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;\n    readonly DEPTH_COMPONENT32F: 0x8CAC;\n    readonly DEPTH32F_STENCIL8: 0x8CAD;\n    readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;\n    readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;\n    readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;\n    readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;\n    readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;\n    readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;\n    readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;\n    readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;\n    readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;\n    readonly FRAMEBUFFER_DEFAULT: 0x8218;\n    readonly UNSIGNED_INT_24_8: 0x84FA;\n    readonly DEPTH24_STENCIL8: 0x88F0;\n    readonly UNSIGNED_NORMALIZED: 0x8C17;\n    readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;\n    readonly READ_FRAMEBUFFER: 0x8CA8;\n    readonly DRAW_FRAMEBUFFER: 0x8CA9;\n    readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;\n    readonly RENDERBUFFER_SAMPLES: 0x8CAB;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;\n    readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;\n    readonly COLOR_ATTACHMENT1: 0x8CE1;\n    readonly COLOR_ATTACHMENT2: 0x8CE2;\n    readonly COLOR_ATTACHMENT3: 0x8CE3;\n    readonly COLOR_ATTACHMENT4: 0x8CE4;\n    readonly COLOR_ATTACHMENT5: 0x8CE5;\n    readonly COLOR_ATTACHMENT6: 0x8CE6;\n    readonly COLOR_ATTACHMENT7: 0x8CE7;\n    readonly COLOR_ATTACHMENT8: 0x8CE8;\n    readonly COLOR_ATTACHMENT9: 0x8CE9;\n    readonly COLOR_ATTACHMENT10: 0x8CEA;\n    readonly COLOR_ATTACHMENT11: 0x8CEB;\n    readonly COLOR_ATTACHMENT12: 0x8CEC;\n    readonly COLOR_ATTACHMENT13: 0x8CED;\n    readonly COLOR_ATTACHMENT14: 0x8CEE;\n    readonly COLOR_ATTACHMENT15: 0x8CEF;\n    readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;\n    readonly MAX_SAMPLES: 0x8D57;\n    readonly HALF_FLOAT: 0x140B;\n    readonly RG: 0x8227;\n    readonly RG_INTEGER: 0x8228;\n    readonly R8: 0x8229;\n    readonly RG8: 0x822B;\n    readonly R16F: 0x822D;\n    readonly R32F: 0x822E;\n    readonly RG16F: 0x822F;\n    readonly RG32F: 0x8230;\n    readonly R8I: 0x8231;\n    readonly R8UI: 0x8232;\n    readonly R16I: 0x8233;\n    readonly R16UI: 0x8234;\n    readonly R32I: 0x8235;\n    readonly R32UI: 0x8236;\n    readonly RG8I: 0x8237;\n    readonly RG8UI: 0x8238;\n    readonly RG16I: 0x8239;\n    readonly RG16UI: 0x823A;\n    readonly RG32I: 0x823B;\n    readonly RG32UI: 0x823C;\n    readonly VERTEX_ARRAY_BINDING: 0x85B5;\n    readonly R8_SNORM: 0x8F94;\n    readonly RG8_SNORM: 0x8F95;\n    readonly RGB8_SNORM: 0x8F96;\n    readonly RGBA8_SNORM: 0x8F97;\n    readonly SIGNED_NORMALIZED: 0x8F9C;\n    readonly COPY_READ_BUFFER: 0x8F36;\n    readonly COPY_WRITE_BUFFER: 0x8F37;\n    readonly COPY_READ_BUFFER_BINDING: 0x8F36;\n    readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;\n    readonly UNIFORM_BUFFER: 0x8A11;\n    readonly UNIFORM_BUFFER_BINDING: 0x8A28;\n    readonly UNIFORM_BUFFER_START: 0x8A29;\n    readonly UNIFORM_BUFFER_SIZE: 0x8A2A;\n    readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;\n    readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;\n    readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;\n    readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;\n    readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;\n    readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;\n    readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;\n    readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;\n    readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;\n    readonly UNIFORM_TYPE: 0x8A37;\n    readonly UNIFORM_SIZE: 0x8A38;\n    readonly UNIFORM_BLOCK_INDEX: 0x8A3A;\n    readonly UNIFORM_OFFSET: 0x8A3B;\n    readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;\n    readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;\n    readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;\n    readonly UNIFORM_BLOCK_BINDING: 0x8A3F;\n    readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;\n    readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;\n    readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;\n    readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;\n    readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;\n    readonly INVALID_INDEX: 0xFFFFFFFF;\n    readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;\n    readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;\n    readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;\n    readonly OBJECT_TYPE: 0x9112;\n    readonly SYNC_CONDITION: 0x9113;\n    readonly SYNC_STATUS: 0x9114;\n    readonly SYNC_FLAGS: 0x9115;\n    readonly SYNC_FENCE: 0x9116;\n    readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;\n    readonly UNSIGNALED: 0x9118;\n    readonly SIGNALED: 0x9119;\n    readonly ALREADY_SIGNALED: 0x911A;\n    readonly TIMEOUT_EXPIRED: 0x911B;\n    readonly CONDITION_SATISFIED: 0x911C;\n    readonly WAIT_FAILED: 0x911D;\n    readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;\n    readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;\n    readonly ANY_SAMPLES_PASSED: 0x8C2F;\n    readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;\n    readonly SAMPLER_BINDING: 0x8919;\n    readonly RGB10_A2UI: 0x906F;\n    readonly INT_2_10_10_10_REV: 0x8D9F;\n    readonly TRANSFORM_FEEDBACK: 0x8E22;\n    readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;\n    readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;\n    readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;\n    readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;\n    readonly MAX_ELEMENT_INDEX: 0x8D6B;\n    readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;\n    readonly TIMEOUT_IGNORED: -1;\n    readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;\n}\n\ninterface WebGL2RenderingContextOverloads {\n    bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;\n    bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;\n    bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;\n    bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;\n    bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;\n    compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;\n    compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n    compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;\n    compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n    readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;\n    readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;\n    readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void;\n    texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n    texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n    texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n    texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n    texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;\n    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n    uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n    uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n}\n\n/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */\ninterface WebGLActiveInfo {\n    readonly name: string;\n    readonly size: GLint;\n    readonly type: GLenum;\n}\n\ndeclare var WebGLActiveInfo: {\n    prototype: WebGLActiveInfo;\n    new(): WebGLActiveInfo;\n};\n\n/** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */\ninterface WebGLBuffer {\n}\n\ndeclare var WebGLBuffer: {\n    prototype: WebGLBuffer;\n    new(): WebGLBuffer;\n};\n\n/** The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context. */\ninterface WebGLContextEvent extends Event {\n    readonly statusMessage: string;\n}\n\ndeclare var WebGLContextEvent: {\n    prototype: WebGLContextEvent;\n    new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;\n};\n\n/** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */\ninterface WebGLFramebuffer {\n}\n\ndeclare var WebGLFramebuffer: {\n    prototype: WebGLFramebuffer;\n    new(): WebGLFramebuffer;\n};\n\n/** The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). */\ninterface WebGLProgram {\n}\n\ndeclare var WebGLProgram: {\n    prototype: WebGLProgram;\n    new(): WebGLProgram;\n};\n\ninterface WebGLQuery {\n}\n\ndeclare var WebGLQuery: {\n    prototype: WebGLQuery;\n    new(): WebGLQuery;\n};\n\n/** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */\ninterface WebGLRenderbuffer {\n}\n\ndeclare var WebGLRenderbuffer: {\n    prototype: WebGLRenderbuffer;\n    new(): WebGLRenderbuffer;\n};\n\n/** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */\ninterface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {\n}\n\ndeclare var WebGLRenderingContext: {\n    prototype: WebGLRenderingContext;\n    new(): WebGLRenderingContext;\n    readonly DEPTH_BUFFER_BIT: 0x00000100;\n    readonly STENCIL_BUFFER_BIT: 0x00000400;\n    readonly COLOR_BUFFER_BIT: 0x00004000;\n    readonly POINTS: 0x0000;\n    readonly LINES: 0x0001;\n    readonly LINE_LOOP: 0x0002;\n    readonly LINE_STRIP: 0x0003;\n    readonly TRIANGLES: 0x0004;\n    readonly TRIANGLE_STRIP: 0x0005;\n    readonly TRIANGLE_FAN: 0x0006;\n    readonly ZERO: 0;\n    readonly ONE: 1;\n    readonly SRC_COLOR: 0x0300;\n    readonly ONE_MINUS_SRC_COLOR: 0x0301;\n    readonly SRC_ALPHA: 0x0302;\n    readonly ONE_MINUS_SRC_ALPHA: 0x0303;\n    readonly DST_ALPHA: 0x0304;\n    readonly ONE_MINUS_DST_ALPHA: 0x0305;\n    readonly DST_COLOR: 0x0306;\n    readonly ONE_MINUS_DST_COLOR: 0x0307;\n    readonly SRC_ALPHA_SATURATE: 0x0308;\n    readonly FUNC_ADD: 0x8006;\n    readonly BLEND_EQUATION: 0x8009;\n    readonly BLEND_EQUATION_RGB: 0x8009;\n    readonly BLEND_EQUATION_ALPHA: 0x883D;\n    readonly FUNC_SUBTRACT: 0x800A;\n    readonly FUNC_REVERSE_SUBTRACT: 0x800B;\n    readonly BLEND_DST_RGB: 0x80C8;\n    readonly BLEND_SRC_RGB: 0x80C9;\n    readonly BLEND_DST_ALPHA: 0x80CA;\n    readonly BLEND_SRC_ALPHA: 0x80CB;\n    readonly CONSTANT_COLOR: 0x8001;\n    readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;\n    readonly CONSTANT_ALPHA: 0x8003;\n    readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;\n    readonly BLEND_COLOR: 0x8005;\n    readonly ARRAY_BUFFER: 0x8892;\n    readonly ELEMENT_ARRAY_BUFFER: 0x8893;\n    readonly ARRAY_BUFFER_BINDING: 0x8894;\n    readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;\n    readonly STREAM_DRAW: 0x88E0;\n    readonly STATIC_DRAW: 0x88E4;\n    readonly DYNAMIC_DRAW: 0x88E8;\n    readonly BUFFER_SIZE: 0x8764;\n    readonly BUFFER_USAGE: 0x8765;\n    readonly CURRENT_VERTEX_ATTRIB: 0x8626;\n    readonly FRONT: 0x0404;\n    readonly BACK: 0x0405;\n    readonly FRONT_AND_BACK: 0x0408;\n    readonly CULL_FACE: 0x0B44;\n    readonly BLEND: 0x0BE2;\n    readonly DITHER: 0x0BD0;\n    readonly STENCIL_TEST: 0x0B90;\n    readonly DEPTH_TEST: 0x0B71;\n    readonly SCISSOR_TEST: 0x0C11;\n    readonly POLYGON_OFFSET_FILL: 0x8037;\n    readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;\n    readonly SAMPLE_COVERAGE: 0x80A0;\n    readonly NO_ERROR: 0;\n    readonly INVALID_ENUM: 0x0500;\n    readonly INVALID_VALUE: 0x0501;\n    readonly INVALID_OPERATION: 0x0502;\n    readonly OUT_OF_MEMORY: 0x0505;\n    readonly CW: 0x0900;\n    readonly CCW: 0x0901;\n    readonly LINE_WIDTH: 0x0B21;\n    readonly ALIASED_POINT_SIZE_RANGE: 0x846D;\n    readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;\n    readonly CULL_FACE_MODE: 0x0B45;\n    readonly FRONT_FACE: 0x0B46;\n    readonly DEPTH_RANGE: 0x0B70;\n    readonly DEPTH_WRITEMASK: 0x0B72;\n    readonly DEPTH_CLEAR_VALUE: 0x0B73;\n    readonly DEPTH_FUNC: 0x0B74;\n    readonly STENCIL_CLEAR_VALUE: 0x0B91;\n    readonly STENCIL_FUNC: 0x0B92;\n    readonly STENCIL_FAIL: 0x0B94;\n    readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;\n    readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;\n    readonly STENCIL_REF: 0x0B97;\n    readonly STENCIL_VALUE_MASK: 0x0B93;\n    readonly STENCIL_WRITEMASK: 0x0B98;\n    readonly STENCIL_BACK_FUNC: 0x8800;\n    readonly STENCIL_BACK_FAIL: 0x8801;\n    readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;\n    readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;\n    readonly STENCIL_BACK_REF: 0x8CA3;\n    readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;\n    readonly STENCIL_BACK_WRITEMASK: 0x8CA5;\n    readonly VIEWPORT: 0x0BA2;\n    readonly SCISSOR_BOX: 0x0C10;\n    readonly COLOR_CLEAR_VALUE: 0x0C22;\n    readonly COLOR_WRITEMASK: 0x0C23;\n    readonly UNPACK_ALIGNMENT: 0x0CF5;\n    readonly PACK_ALIGNMENT: 0x0D05;\n    readonly MAX_TEXTURE_SIZE: 0x0D33;\n    readonly MAX_VIEWPORT_DIMS: 0x0D3A;\n    readonly SUBPIXEL_BITS: 0x0D50;\n    readonly RED_BITS: 0x0D52;\n    readonly GREEN_BITS: 0x0D53;\n    readonly BLUE_BITS: 0x0D54;\n    readonly ALPHA_BITS: 0x0D55;\n    readonly DEPTH_BITS: 0x0D56;\n    readonly STENCIL_BITS: 0x0D57;\n    readonly POLYGON_OFFSET_UNITS: 0x2A00;\n    readonly POLYGON_OFFSET_FACTOR: 0x8038;\n    readonly TEXTURE_BINDING_2D: 0x8069;\n    readonly SAMPLE_BUFFERS: 0x80A8;\n    readonly SAMPLES: 0x80A9;\n    readonly SAMPLE_COVERAGE_VALUE: 0x80AA;\n    readonly SAMPLE_COVERAGE_INVERT: 0x80AB;\n    readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;\n    readonly DONT_CARE: 0x1100;\n    readonly FASTEST: 0x1101;\n    readonly NICEST: 0x1102;\n    readonly GENERATE_MIPMAP_HINT: 0x8192;\n    readonly BYTE: 0x1400;\n    readonly UNSIGNED_BYTE: 0x1401;\n    readonly SHORT: 0x1402;\n    readonly UNSIGNED_SHORT: 0x1403;\n    readonly INT: 0x1404;\n    readonly UNSIGNED_INT: 0x1405;\n    readonly FLOAT: 0x1406;\n    readonly DEPTH_COMPONENT: 0x1902;\n    readonly ALPHA: 0x1906;\n    readonly RGB: 0x1907;\n    readonly RGBA: 0x1908;\n    readonly LUMINANCE: 0x1909;\n    readonly LUMINANCE_ALPHA: 0x190A;\n    readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;\n    readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;\n    readonly UNSIGNED_SHORT_5_6_5: 0x8363;\n    readonly FRAGMENT_SHADER: 0x8B30;\n    readonly VERTEX_SHADER: 0x8B31;\n    readonly MAX_VERTEX_ATTRIBS: 0x8869;\n    readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;\n    readonly MAX_VARYING_VECTORS: 0x8DFC;\n    readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;\n    readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;\n    readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;\n    readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;\n    readonly SHADER_TYPE: 0x8B4F;\n    readonly DELETE_STATUS: 0x8B80;\n    readonly LINK_STATUS: 0x8B82;\n    readonly VALIDATE_STATUS: 0x8B83;\n    readonly ATTACHED_SHADERS: 0x8B85;\n    readonly ACTIVE_UNIFORMS: 0x8B86;\n    readonly ACTIVE_ATTRIBUTES: 0x8B89;\n    readonly SHADING_LANGUAGE_VERSION: 0x8B8C;\n    readonly CURRENT_PROGRAM: 0x8B8D;\n    readonly NEVER: 0x0200;\n    readonly LESS: 0x0201;\n    readonly EQUAL: 0x0202;\n    readonly LEQUAL: 0x0203;\n    readonly GREATER: 0x0204;\n    readonly NOTEQUAL: 0x0205;\n    readonly GEQUAL: 0x0206;\n    readonly ALWAYS: 0x0207;\n    readonly KEEP: 0x1E00;\n    readonly REPLACE: 0x1E01;\n    readonly INCR: 0x1E02;\n    readonly DECR: 0x1E03;\n    readonly INVERT: 0x150A;\n    readonly INCR_WRAP: 0x8507;\n    readonly DECR_WRAP: 0x8508;\n    readonly VENDOR: 0x1F00;\n    readonly RENDERER: 0x1F01;\n    readonly VERSION: 0x1F02;\n    readonly NEAREST: 0x2600;\n    readonly LINEAR: 0x2601;\n    readonly NEAREST_MIPMAP_NEAREST: 0x2700;\n    readonly LINEAR_MIPMAP_NEAREST: 0x2701;\n    readonly NEAREST_MIPMAP_LINEAR: 0x2702;\n    readonly LINEAR_MIPMAP_LINEAR: 0x2703;\n    readonly TEXTURE_MAG_FILTER: 0x2800;\n    readonly TEXTURE_MIN_FILTER: 0x2801;\n    readonly TEXTURE_WRAP_S: 0x2802;\n    readonly TEXTURE_WRAP_T: 0x2803;\n    readonly TEXTURE_2D: 0x0DE1;\n    readonly TEXTURE: 0x1702;\n    readonly TEXTURE_CUBE_MAP: 0x8513;\n    readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;\n    readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;\n    readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;\n    readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;\n    readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;\n    readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;\n    readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;\n    readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;\n    readonly TEXTURE0: 0x84C0;\n    readonly TEXTURE1: 0x84C1;\n    readonly TEXTURE2: 0x84C2;\n    readonly TEXTURE3: 0x84C3;\n    readonly TEXTURE4: 0x84C4;\n    readonly TEXTURE5: 0x84C5;\n    readonly TEXTURE6: 0x84C6;\n    readonly TEXTURE7: 0x84C7;\n    readonly TEXTURE8: 0x84C8;\n    readonly TEXTURE9: 0x84C9;\n    readonly TEXTURE10: 0x84CA;\n    readonly TEXTURE11: 0x84CB;\n    readonly TEXTURE12: 0x84CC;\n    readonly TEXTURE13: 0x84CD;\n    readonly TEXTURE14: 0x84CE;\n    readonly TEXTURE15: 0x84CF;\n    readonly TEXTURE16: 0x84D0;\n    readonly TEXTURE17: 0x84D1;\n    readonly TEXTURE18: 0x84D2;\n    readonly TEXTURE19: 0x84D3;\n    readonly TEXTURE20: 0x84D4;\n    readonly TEXTURE21: 0x84D5;\n    readonly TEXTURE22: 0x84D6;\n    readonly TEXTURE23: 0x84D7;\n    readonly TEXTURE24: 0x84D8;\n    readonly TEXTURE25: 0x84D9;\n    readonly TEXTURE26: 0x84DA;\n    readonly TEXTURE27: 0x84DB;\n    readonly TEXTURE28: 0x84DC;\n    readonly TEXTURE29: 0x84DD;\n    readonly TEXTURE30: 0x84DE;\n    readonly TEXTURE31: 0x84DF;\n    readonly ACTIVE_TEXTURE: 0x84E0;\n    readonly REPEAT: 0x2901;\n    readonly CLAMP_TO_EDGE: 0x812F;\n    readonly MIRRORED_REPEAT: 0x8370;\n    readonly FLOAT_VEC2: 0x8B50;\n    readonly FLOAT_VEC3: 0x8B51;\n    readonly FLOAT_VEC4: 0x8B52;\n    readonly INT_VEC2: 0x8B53;\n    readonly INT_VEC3: 0x8B54;\n    readonly INT_VEC4: 0x8B55;\n    readonly BOOL: 0x8B56;\n    readonly BOOL_VEC2: 0x8B57;\n    readonly BOOL_VEC3: 0x8B58;\n    readonly BOOL_VEC4: 0x8B59;\n    readonly FLOAT_MAT2: 0x8B5A;\n    readonly FLOAT_MAT3: 0x8B5B;\n    readonly FLOAT_MAT4: 0x8B5C;\n    readonly SAMPLER_2D: 0x8B5E;\n    readonly SAMPLER_CUBE: 0x8B60;\n    readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;\n    readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;\n    readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;\n    readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;\n    readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;\n    readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;\n    readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;\n    readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;\n    readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;\n    readonly COMPILE_STATUS: 0x8B81;\n    readonly LOW_FLOAT: 0x8DF0;\n    readonly MEDIUM_FLOAT: 0x8DF1;\n    readonly HIGH_FLOAT: 0x8DF2;\n    readonly LOW_INT: 0x8DF3;\n    readonly MEDIUM_INT: 0x8DF4;\n    readonly HIGH_INT: 0x8DF5;\n    readonly FRAMEBUFFER: 0x8D40;\n    readonly RENDERBUFFER: 0x8D41;\n    readonly RGBA4: 0x8056;\n    readonly RGB5_A1: 0x8057;\n    readonly RGB565: 0x8D62;\n    readonly DEPTH_COMPONENT16: 0x81A5;\n    readonly STENCIL_INDEX8: 0x8D48;\n    readonly DEPTH_STENCIL: 0x84F9;\n    readonly RENDERBUFFER_WIDTH: 0x8D42;\n    readonly RENDERBUFFER_HEIGHT: 0x8D43;\n    readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;\n    readonly RENDERBUFFER_RED_SIZE: 0x8D50;\n    readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;\n    readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;\n    readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;\n    readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;\n    readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;\n    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;\n    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;\n    readonly COLOR_ATTACHMENT0: 0x8CE0;\n    readonly DEPTH_ATTACHMENT: 0x8D00;\n    readonly STENCIL_ATTACHMENT: 0x8D20;\n    readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;\n    readonly NONE: 0;\n    readonly FRAMEBUFFER_COMPLETE: 0x8CD5;\n    readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;\n    readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;\n    readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;\n    readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;\n    readonly FRAMEBUFFER_BINDING: 0x8CA6;\n    readonly RENDERBUFFER_BINDING: 0x8CA7;\n    readonly MAX_RENDERBUFFER_SIZE: 0x84E8;\n    readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;\n    readonly UNPACK_FLIP_Y_WEBGL: 0x9240;\n    readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;\n    readonly CONTEXT_LOST_WEBGL: 0x9242;\n    readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;\n    readonly BROWSER_DEFAULT_WEBGL: 0x9244;\n};\n\ninterface WebGLRenderingContextBase {\n    readonly drawingBufferHeight: GLsizei;\n    readonly drawingBufferWidth: GLsizei;\n    activeTexture(texture: GLenum): void;\n    attachShader(program: WebGLProgram, shader: WebGLShader): void;\n    bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;\n    bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;\n    bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;\n    bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;\n    bindTexture(target: GLenum, texture: WebGLTexture | null): void;\n    blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;\n    blendEquation(mode: GLenum): void;\n    blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;\n    blendFunc(sfactor: GLenum, dfactor: GLenum): void;\n    blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;\n    checkFramebufferStatus(target: GLenum): GLenum;\n    clear(mask: GLbitfield): void;\n    clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;\n    clearDepth(depth: GLclampf): void;\n    clearStencil(s: GLint): void;\n    colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;\n    compileShader(shader: WebGLShader): void;\n    copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;\n    copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n    createBuffer(): WebGLBuffer | null;\n    createFramebuffer(): WebGLFramebuffer | null;\n    createProgram(): WebGLProgram | null;\n    createRenderbuffer(): WebGLRenderbuffer | null;\n    createShader(type: GLenum): WebGLShader | null;\n    createTexture(): WebGLTexture | null;\n    cullFace(mode: GLenum): void;\n    deleteBuffer(buffer: WebGLBuffer | null): void;\n    deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;\n    deleteProgram(program: WebGLProgram | null): void;\n    deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;\n    deleteShader(shader: WebGLShader | null): void;\n    deleteTexture(texture: WebGLTexture | null): void;\n    depthFunc(func: GLenum): void;\n    depthMask(flag: GLboolean): void;\n    depthRange(zNear: GLclampf, zFar: GLclampf): void;\n    detachShader(program: WebGLProgram, shader: WebGLShader): void;\n    disable(cap: GLenum): void;\n    disableVertexAttribArray(index: GLuint): void;\n    drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;\n    drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;\n    enable(cap: GLenum): void;\n    enableVertexAttribArray(index: GLuint): void;\n    finish(): void;\n    flush(): void;\n    framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;\n    framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;\n    frontFace(mode: GLenum): void;\n    generateMipmap(target: GLenum): void;\n    getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n    getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n    getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;\n    getAttribLocation(program: WebGLProgram, name: string): GLint;\n    getBufferParameter(target: GLenum, pname: GLenum): any;\n    getContextAttributes(): WebGLContextAttributes | null;\n    getError(): GLenum;\n    getExtension(extensionName: \"ANGLE_instanced_arrays\"): ANGLE_instanced_arrays | null;\n    getExtension(extensionName: \"EXT_blend_minmax\"): EXT_blend_minmax | null;\n    getExtension(extensionName: \"EXT_color_buffer_float\"): EXT_color_buffer_float | null;\n    getExtension(extensionName: \"EXT_color_buffer_half_float\"): EXT_color_buffer_half_float | null;\n    getExtension(extensionName: \"EXT_float_blend\"): EXT_float_blend | null;\n    getExtension(extensionName: \"EXT_frag_depth\"): EXT_frag_depth | null;\n    getExtension(extensionName: \"EXT_sRGB\"): EXT_sRGB | null;\n    getExtension(extensionName: \"EXT_shader_texture_lod\"): EXT_shader_texture_lod | null;\n    getExtension(extensionName: \"EXT_texture_compression_bptc\"): EXT_texture_compression_bptc | null;\n    getExtension(extensionName: \"EXT_texture_compression_rgtc\"): EXT_texture_compression_rgtc | null;\n    getExtension(extensionName: \"EXT_texture_filter_anisotropic\"): EXT_texture_filter_anisotropic | null;\n    getExtension(extensionName: \"KHR_parallel_shader_compile\"): KHR_parallel_shader_compile | null;\n    getExtension(extensionName: \"OES_element_index_uint\"): OES_element_index_uint | null;\n    getExtension(extensionName: \"OES_fbo_render_mipmap\"): OES_fbo_render_mipmap | null;\n    getExtension(extensionName: \"OES_standard_derivatives\"): OES_standard_derivatives | null;\n    getExtension(extensionName: \"OES_texture_float\"): OES_texture_float | null;\n    getExtension(extensionName: \"OES_texture_float_linear\"): OES_texture_float_linear | null;\n    getExtension(extensionName: \"OES_texture_half_float\"): OES_texture_half_float | null;\n    getExtension(extensionName: \"OES_texture_half_float_linear\"): OES_texture_half_float_linear | null;\n    getExtension(extensionName: \"OES_vertex_array_object\"): OES_vertex_array_object | null;\n    getExtension(extensionName: \"OVR_multiview2\"): OVR_multiview2 | null;\n    getExtension(extensionName: \"WEBGL_color_buffer_float\"): WEBGL_color_buffer_float | null;\n    getExtension(extensionName: \"WEBGL_compressed_texture_astc\"): WEBGL_compressed_texture_astc | null;\n    getExtension(extensionName: \"WEBGL_compressed_texture_etc\"): WEBGL_compressed_texture_etc | null;\n    getExtension(extensionName: \"WEBGL_compressed_texture_etc1\"): WEBGL_compressed_texture_etc1 | null;\n    getExtension(extensionName: \"WEBGL_compressed_texture_s3tc\"): WEBGL_compressed_texture_s3tc | null;\n    getExtension(extensionName: \"WEBGL_compressed_texture_s3tc_srgb\"): WEBGL_compressed_texture_s3tc_srgb | null;\n    getExtension(extensionName: \"WEBGL_debug_renderer_info\"): WEBGL_debug_renderer_info | null;\n    getExtension(extensionName: \"WEBGL_debug_shaders\"): WEBGL_debug_shaders | null;\n    getExtension(extensionName: \"WEBGL_depth_texture\"): WEBGL_depth_texture | null;\n    getExtension(extensionName: \"WEBGL_draw_buffers\"): WEBGL_draw_buffers | null;\n    getExtension(extensionName: \"WEBGL_lose_context\"): WEBGL_lose_context | null;\n    getExtension(extensionName: \"WEBGL_multi_draw\"): WEBGL_multi_draw | null;\n    getExtension(name: string): any;\n    getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;\n    getParameter(pname: GLenum): any;\n    getProgramInfoLog(program: WebGLProgram): string | null;\n    getProgramParameter(program: WebGLProgram, pname: GLenum): any;\n    getRenderbufferParameter(target: GLenum, pname: GLenum): any;\n    getShaderInfoLog(shader: WebGLShader): string | null;\n    getShaderParameter(shader: WebGLShader, pname: GLenum): any;\n    getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;\n    getShaderSource(shader: WebGLShader): string | null;\n    getSupportedExtensions(): string[] | null;\n    getTexParameter(target: GLenum, pname: GLenum): any;\n    getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;\n    getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;\n    getVertexAttrib(index: GLuint, pname: GLenum): any;\n    getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;\n    hint(target: GLenum, mode: GLenum): void;\n    isBuffer(buffer: WebGLBuffer | null): GLboolean;\n    isContextLost(): boolean;\n    isEnabled(cap: GLenum): GLboolean;\n    isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;\n    isProgram(program: WebGLProgram | null): GLboolean;\n    isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;\n    isShader(shader: WebGLShader | null): GLboolean;\n    isTexture(texture: WebGLTexture | null): GLboolean;\n    lineWidth(width: GLfloat): void;\n    linkProgram(program: WebGLProgram): void;\n    pixelStorei(pname: GLenum, param: GLint | GLboolean): void;\n    polygonOffset(factor: GLfloat, units: GLfloat): void;\n    renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n    sampleCoverage(value: GLclampf, invert: GLboolean): void;\n    scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n    shaderSource(shader: WebGLShader, source: string): void;\n    stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;\n    stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;\n    stencilMask(mask: GLuint): void;\n    stencilMaskSeparate(face: GLenum, mask: GLuint): void;\n    stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;\n    stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;\n    texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;\n    texParameteri(target: GLenum, pname: GLenum, param: GLint): void;\n    uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;\n    uniform1i(location: WebGLUniformLocation | null, x: GLint): void;\n    uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;\n    uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;\n    uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;\n    uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;\n    uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n    uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;\n    useProgram(program: WebGLProgram | null): void;\n    validateProgram(program: WebGLProgram): void;\n    vertexAttrib1f(index: GLuint, x: GLfloat): void;\n    vertexAttrib1fv(index: GLuint, values: Float32List): void;\n    vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;\n    vertexAttrib2fv(index: GLuint, values: Float32List): void;\n    vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;\n    vertexAttrib3fv(index: GLuint, values: Float32List): void;\n    vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n    vertexAttrib4fv(index: GLuint, values: Float32List): void;\n    vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;\n    viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n    readonly DEPTH_BUFFER_BIT: 0x00000100;\n    readonly STENCIL_BUFFER_BIT: 0x00000400;\n    readonly COLOR_BUFFER_BIT: 0x00004000;\n    readonly POINTS: 0x0000;\n    readonly LINES: 0x0001;\n    readonly LINE_LOOP: 0x0002;\n    readonly LINE_STRIP: 0x0003;\n    readonly TRIANGLES: 0x0004;\n    readonly TRIANGLE_STRIP: 0x0005;\n    readonly TRIANGLE_FAN: 0x0006;\n    readonly ZERO: 0;\n    readonly ONE: 1;\n    readonly SRC_COLOR: 0x0300;\n    readonly ONE_MINUS_SRC_COLOR: 0x0301;\n    readonly SRC_ALPHA: 0x0302;\n    readonly ONE_MINUS_SRC_ALPHA: 0x0303;\n    readonly DST_ALPHA: 0x0304;\n    readonly ONE_MINUS_DST_ALPHA: 0x0305;\n    readonly DST_COLOR: 0x0306;\n    readonly ONE_MINUS_DST_COLOR: 0x0307;\n    readonly SRC_ALPHA_SATURATE: 0x0308;\n    readonly FUNC_ADD: 0x8006;\n    readonly BLEND_EQUATION: 0x8009;\n    readonly BLEND_EQUATION_RGB: 0x8009;\n    readonly BLEND_EQUATION_ALPHA: 0x883D;\n    readonly FUNC_SUBTRACT: 0x800A;\n    readonly FUNC_REVERSE_SUBTRACT: 0x800B;\n    readonly BLEND_DST_RGB: 0x80C8;\n    readonly BLEND_SRC_RGB: 0x80C9;\n    readonly BLEND_DST_ALPHA: 0x80CA;\n    readonly BLEND_SRC_ALPHA: 0x80CB;\n    readonly CONSTANT_COLOR: 0x8001;\n    readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;\n    readonly CONSTANT_ALPHA: 0x8003;\n    readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;\n    readonly BLEND_COLOR: 0x8005;\n    readonly ARRAY_BUFFER: 0x8892;\n    readonly ELEMENT_ARRAY_BUFFER: 0x8893;\n    readonly ARRAY_BUFFER_BINDING: 0x8894;\n    readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;\n    readonly STREAM_DRAW: 0x88E0;\n    readonly STATIC_DRAW: 0x88E4;\n    readonly DYNAMIC_DRAW: 0x88E8;\n    readonly BUFFER_SIZE: 0x8764;\n    readonly BUFFER_USAGE: 0x8765;\n    readonly CURRENT_VERTEX_ATTRIB: 0x8626;\n    readonly FRONT: 0x0404;\n    readonly BACK: 0x0405;\n    readonly FRONT_AND_BACK: 0x0408;\n    readonly CULL_FACE: 0x0B44;\n    readonly BLEND: 0x0BE2;\n    readonly DITHER: 0x0BD0;\n    readonly STENCIL_TEST: 0x0B90;\n    readonly DEPTH_TEST: 0x0B71;\n    readonly SCISSOR_TEST: 0x0C11;\n    readonly POLYGON_OFFSET_FILL: 0x8037;\n    readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;\n    readonly SAMPLE_COVERAGE: 0x80A0;\n    readonly NO_ERROR: 0;\n    readonly INVALID_ENUM: 0x0500;\n    readonly INVALID_VALUE: 0x0501;\n    readonly INVALID_OPERATION: 0x0502;\n    readonly OUT_OF_MEMORY: 0x0505;\n    readonly CW: 0x0900;\n    readonly CCW: 0x0901;\n    readonly LINE_WIDTH: 0x0B21;\n    readonly ALIASED_POINT_SIZE_RANGE: 0x846D;\n    readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;\n    readonly CULL_FACE_MODE: 0x0B45;\n    readonly FRONT_FACE: 0x0B46;\n    readonly DEPTH_RANGE: 0x0B70;\n    readonly DEPTH_WRITEMASK: 0x0B72;\n    readonly DEPTH_CLEAR_VALUE: 0x0B73;\n    readonly DEPTH_FUNC: 0x0B74;\n    readonly STENCIL_CLEAR_VALUE: 0x0B91;\n    readonly STENCIL_FUNC: 0x0B92;\n    readonly STENCIL_FAIL: 0x0B94;\n    readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;\n    readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;\n    readonly STENCIL_REF: 0x0B97;\n    readonly STENCIL_VALUE_MASK: 0x0B93;\n    readonly STENCIL_WRITEMASK: 0x0B98;\n    readonly STENCIL_BACK_FUNC: 0x8800;\n    readonly STENCIL_BACK_FAIL: 0x8801;\n    readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;\n    readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;\n    readonly STENCIL_BACK_REF: 0x8CA3;\n    readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;\n    readonly STENCIL_BACK_WRITEMASK: 0x8CA5;\n    readonly VIEWPORT: 0x0BA2;\n    readonly SCISSOR_BOX: 0x0C10;\n    readonly COLOR_CLEAR_VALUE: 0x0C22;\n    readonly COLOR_WRITEMASK: 0x0C23;\n    readonly UNPACK_ALIGNMENT: 0x0CF5;\n    readonly PACK_ALIGNMENT: 0x0D05;\n    readonly MAX_TEXTURE_SIZE: 0x0D33;\n    readonly MAX_VIEWPORT_DIMS: 0x0D3A;\n    readonly SUBPIXEL_BITS: 0x0D50;\n    readonly RED_BITS: 0x0D52;\n    readonly GREEN_BITS: 0x0D53;\n    readonly BLUE_BITS: 0x0D54;\n    readonly ALPHA_BITS: 0x0D55;\n    readonly DEPTH_BITS: 0x0D56;\n    readonly STENCIL_BITS: 0x0D57;\n    readonly POLYGON_OFFSET_UNITS: 0x2A00;\n    readonly POLYGON_OFFSET_FACTOR: 0x8038;\n    readonly TEXTURE_BINDING_2D: 0x8069;\n    readonly SAMPLE_BUFFERS: 0x80A8;\n    readonly SAMPLES: 0x80A9;\n    readonly SAMPLE_COVERAGE_VALUE: 0x80AA;\n    readonly SAMPLE_COVERAGE_INVERT: 0x80AB;\n    readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;\n    readonly DONT_CARE: 0x1100;\n    readonly FASTEST: 0x1101;\n    readonly NICEST: 0x1102;\n    readonly GENERATE_MIPMAP_HINT: 0x8192;\n    readonly BYTE: 0x1400;\n    readonly UNSIGNED_BYTE: 0x1401;\n    readonly SHORT: 0x1402;\n    readonly UNSIGNED_SHORT: 0x1403;\n    readonly INT: 0x1404;\n    readonly UNSIGNED_INT: 0x1405;\n    readonly FLOAT: 0x1406;\n    readonly DEPTH_COMPONENT: 0x1902;\n    readonly ALPHA: 0x1906;\n    readonly RGB: 0x1907;\n    readonly RGBA: 0x1908;\n    readonly LUMINANCE: 0x1909;\n    readonly LUMINANCE_ALPHA: 0x190A;\n    readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;\n    readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;\n    readonly UNSIGNED_SHORT_5_6_5: 0x8363;\n    readonly FRAGMENT_SHADER: 0x8B30;\n    readonly VERTEX_SHADER: 0x8B31;\n    readonly MAX_VERTEX_ATTRIBS: 0x8869;\n    readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;\n    readonly MAX_VARYING_VECTORS: 0x8DFC;\n    readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;\n    readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;\n    readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;\n    readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;\n    readonly SHADER_TYPE: 0x8B4F;\n    readonly DELETE_STATUS: 0x8B80;\n    readonly LINK_STATUS: 0x8B82;\n    readonly VALIDATE_STATUS: 0x8B83;\n    readonly ATTACHED_SHADERS: 0x8B85;\n    readonly ACTIVE_UNIFORMS: 0x8B86;\n    readonly ACTIVE_ATTRIBUTES: 0x8B89;\n    readonly SHADING_LANGUAGE_VERSION: 0x8B8C;\n    readonly CURRENT_PROGRAM: 0x8B8D;\n    readonly NEVER: 0x0200;\n    readonly LESS: 0x0201;\n    readonly EQUAL: 0x0202;\n    readonly LEQUAL: 0x0203;\n    readonly GREATER: 0x0204;\n    readonly NOTEQUAL: 0x0205;\n    readonly GEQUAL: 0x0206;\n    readonly ALWAYS: 0x0207;\n    readonly KEEP: 0x1E00;\n    readonly REPLACE: 0x1E01;\n    readonly INCR: 0x1E02;\n    readonly DECR: 0x1E03;\n    readonly INVERT: 0x150A;\n    readonly INCR_WRAP: 0x8507;\n    readonly DECR_WRAP: 0x8508;\n    readonly VENDOR: 0x1F00;\n    readonly RENDERER: 0x1F01;\n    readonly VERSION: 0x1F02;\n    readonly NEAREST: 0x2600;\n    readonly LINEAR: 0x2601;\n    readonly NEAREST_MIPMAP_NEAREST: 0x2700;\n    readonly LINEAR_MIPMAP_NEAREST: 0x2701;\n    readonly NEAREST_MIPMAP_LINEAR: 0x2702;\n    readonly LINEAR_MIPMAP_LINEAR: 0x2703;\n    readonly TEXTURE_MAG_FILTER: 0x2800;\n    readonly TEXTURE_MIN_FILTER: 0x2801;\n    readonly TEXTURE_WRAP_S: 0x2802;\n    readonly TEXTURE_WRAP_T: 0x2803;\n    readonly TEXTURE_2D: 0x0DE1;\n    readonly TEXTURE: 0x1702;\n    readonly TEXTURE_CUBE_MAP: 0x8513;\n    readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;\n    readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;\n    readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;\n    readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;\n    readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;\n    readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;\n    readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;\n    readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;\n    readonly TEXTURE0: 0x84C0;\n    readonly TEXTURE1: 0x84C1;\n    readonly TEXTURE2: 0x84C2;\n    readonly TEXTURE3: 0x84C3;\n    readonly TEXTURE4: 0x84C4;\n    readonly TEXTURE5: 0x84C5;\n    readonly TEXTURE6: 0x84C6;\n    readonly TEXTURE7: 0x84C7;\n    readonly TEXTURE8: 0x84C8;\n    readonly TEXTURE9: 0x84C9;\n    readonly TEXTURE10: 0x84CA;\n    readonly TEXTURE11: 0x84CB;\n    readonly TEXTURE12: 0x84CC;\n    readonly TEXTURE13: 0x84CD;\n    readonly TEXTURE14: 0x84CE;\n    readonly TEXTURE15: 0x84CF;\n    readonly TEXTURE16: 0x84D0;\n    readonly TEXTURE17: 0x84D1;\n    readonly TEXTURE18: 0x84D2;\n    readonly TEXTURE19: 0x84D3;\n    readonly TEXTURE20: 0x84D4;\n    readonly TEXTURE21: 0x84D5;\n    readonly TEXTURE22: 0x84D6;\n    readonly TEXTURE23: 0x84D7;\n    readonly TEXTURE24: 0x84D8;\n    readonly TEXTURE25: 0x84D9;\n    readonly TEXTURE26: 0x84DA;\n    readonly TEXTURE27: 0x84DB;\n    readonly TEXTURE28: 0x84DC;\n    readonly TEXTURE29: 0x84DD;\n    readonly TEXTURE30: 0x84DE;\n    readonly TEXTURE31: 0x84DF;\n    readonly ACTIVE_TEXTURE: 0x84E0;\n    readonly REPEAT: 0x2901;\n    readonly CLAMP_TO_EDGE: 0x812F;\n    readonly MIRRORED_REPEAT: 0x8370;\n    readonly FLOAT_VEC2: 0x8B50;\n    readonly FLOAT_VEC3: 0x8B51;\n    readonly FLOAT_VEC4: 0x8B52;\n    readonly INT_VEC2: 0x8B53;\n    readonly INT_VEC3: 0x8B54;\n    readonly INT_VEC4: 0x8B55;\n    readonly BOOL: 0x8B56;\n    readonly BOOL_VEC2: 0x8B57;\n    readonly BOOL_VEC3: 0x8B58;\n    readonly BOOL_VEC4: 0x8B59;\n    readonly FLOAT_MAT2: 0x8B5A;\n    readonly FLOAT_MAT3: 0x8B5B;\n    readonly FLOAT_MAT4: 0x8B5C;\n    readonly SAMPLER_2D: 0x8B5E;\n    readonly SAMPLER_CUBE: 0x8B60;\n    readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;\n    readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;\n    readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;\n    readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;\n    readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;\n    readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;\n    readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;\n    readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;\n    readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;\n    readonly COMPILE_STATUS: 0x8B81;\n    readonly LOW_FLOAT: 0x8DF0;\n    readonly MEDIUM_FLOAT: 0x8DF1;\n    readonly HIGH_FLOAT: 0x8DF2;\n    readonly LOW_INT: 0x8DF3;\n    readonly MEDIUM_INT: 0x8DF4;\n    readonly HIGH_INT: 0x8DF5;\n    readonly FRAMEBUFFER: 0x8D40;\n    readonly RENDERBUFFER: 0x8D41;\n    readonly RGBA4: 0x8056;\n    readonly RGB5_A1: 0x8057;\n    readonly RGB565: 0x8D62;\n    readonly DEPTH_COMPONENT16: 0x81A5;\n    readonly STENCIL_INDEX8: 0x8D48;\n    readonly DEPTH_STENCIL: 0x84F9;\n    readonly RENDERBUFFER_WIDTH: 0x8D42;\n    readonly RENDERBUFFER_HEIGHT: 0x8D43;\n    readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;\n    readonly RENDERBUFFER_RED_SIZE: 0x8D50;\n    readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;\n    readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;\n    readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;\n    readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;\n    readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;\n    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;\n    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;\n    readonly COLOR_ATTACHMENT0: 0x8CE0;\n    readonly DEPTH_ATTACHMENT: 0x8D00;\n    readonly STENCIL_ATTACHMENT: 0x8D20;\n    readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;\n    readonly NONE: 0;\n    readonly FRAMEBUFFER_COMPLETE: 0x8CD5;\n    readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;\n    readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;\n    readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;\n    readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;\n    readonly FRAMEBUFFER_BINDING: 0x8CA6;\n    readonly RENDERBUFFER_BINDING: 0x8CA7;\n    readonly MAX_RENDERBUFFER_SIZE: 0x84E8;\n    readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;\n    readonly UNPACK_FLIP_Y_WEBGL: 0x9240;\n    readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;\n    readonly CONTEXT_LOST_WEBGL: 0x9242;\n    readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;\n    readonly BROWSER_DEFAULT_WEBGL: 0x9244;\n}\n\ninterface WebGLRenderingContextOverloads {\n    bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;\n    bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;\n    bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;\n    compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;\n    compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;\n    readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n    texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n    texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n    uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;\n    uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;\n    uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;\n    uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;\n    uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;\n    uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;\n    uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;\n    uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;\n    uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n    uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n    uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n}\n\ninterface WebGLSampler {\n}\n\ndeclare var WebGLSampler: {\n    prototype: WebGLSampler;\n    new(): WebGLSampler;\n};\n\n/** The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders. */\ninterface WebGLShader {\n}\n\ndeclare var WebGLShader: {\n    prototype: WebGLShader;\n    new(): WebGLShader;\n};\n\n/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */\ninterface WebGLShaderPrecisionFormat {\n    readonly precision: GLint;\n    readonly rangeMax: GLint;\n    readonly rangeMin: GLint;\n}\n\ndeclare var WebGLShaderPrecisionFormat: {\n    prototype: WebGLShaderPrecisionFormat;\n    new(): WebGLShaderPrecisionFormat;\n};\n\ninterface WebGLSync {\n}\n\ndeclare var WebGLSync: {\n    prototype: WebGLSync;\n    new(): WebGLSync;\n};\n\n/** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */\ninterface WebGLTexture {\n}\n\ndeclare var WebGLTexture: {\n    prototype: WebGLTexture;\n    new(): WebGLTexture;\n};\n\ninterface WebGLTransformFeedback {\n}\n\ndeclare var WebGLTransformFeedback: {\n    prototype: WebGLTransformFeedback;\n    new(): WebGLTransformFeedback;\n};\n\n/** Part of the WebGL API and represents the location of a uniform variable in a shader program. */\ninterface WebGLUniformLocation {\n}\n\ndeclare var WebGLUniformLocation: {\n    prototype: WebGLUniformLocation;\n    new(): WebGLUniformLocation;\n};\n\ninterface WebGLVertexArrayObject {\n}\n\ndeclare var WebGLVertexArrayObject: {\n    prototype: WebGLVertexArrayObject;\n    new(): WebGLVertexArrayObject;\n};\n\ninterface WebGLVertexArrayObjectOES {\n}\n\ninterface WebSocketEventMap {\n    \"close\": CloseEvent;\n    \"error\": Event;\n    \"message\": MessageEvent;\n    \"open\": Event;\n}\n\n/** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */\ninterface WebSocket extends EventTarget {\n    /**\n     * Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:\n     *\n     * Can be set, to change how binary data is returned. The default is \"blob\".\n     */\n    binaryType: BinaryType;\n    /**\n     * Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.\n     *\n     * If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)\n     */\n    readonly bufferedAmount: number;\n    /** Returns the extensions selected by the server, if any. */\n    readonly extensions: string;\n    onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;\n    onerror: ((this: WebSocket, ev: Event) => any) | null;\n    onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;\n    onopen: ((this: WebSocket, ev: Event) => any) | null;\n    /** Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation. */\n    readonly protocol: string;\n    /** Returns the state of the WebSocket object's connection. It can have the values described below. */\n    readonly readyState: number;\n    /** Returns the URL that was used to establish the WebSocket connection. */\n    readonly url: string;\n    /** Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. */\n    close(code?: number, reason?: string): void;\n    /** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */\n    send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;\n    readonly CONNECTING: 0;\n    readonly OPEN: 1;\n    readonly CLOSING: 2;\n    readonly CLOSED: 3;\n    addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var WebSocket: {\n    prototype: WebSocket;\n    new(url: string | URL, protocols?: string | string[]): WebSocket;\n    readonly CONNECTING: 0;\n    readonly OPEN: 1;\n    readonly CLOSING: 2;\n    readonly CLOSED: 3;\n};\n\n/** This ServiceWorker API interface represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources. */\ninterface WindowClient extends Client {\n    readonly focused: boolean;\n    readonly visibilityState: DocumentVisibilityState;\n    focus(): Promise<WindowClient>;\n    navigate(url: string | URL): Promise<WindowClient | null>;\n}\n\ndeclare var WindowClient: {\n    prototype: WindowClient;\n    new(): WindowClient;\n};\n\ninterface WindowOrWorkerGlobalScope {\n    /** Available only in secure contexts. */\n    readonly caches: CacheStorage;\n    readonly crossOriginIsolated: boolean;\n    readonly crypto: Crypto;\n    readonly indexedDB: IDBFactory;\n    readonly isSecureContext: boolean;\n    readonly origin: string;\n    readonly performance: Performance;\n    atob(data: string): string;\n    btoa(data: string): string;\n    clearInterval(id: number | undefined): void;\n    clearTimeout(id: number | undefined): void;\n    createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n    createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n    fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;\n    queueMicrotask(callback: VoidFunction): void;\n    reportError(e: any): void;\n    setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n    setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n    structuredClone(value: any, options?: StructuredSerializeOptions): any;\n}\n\ninterface WorkerEventMap extends AbstractWorkerEventMap {\n    \"message\": MessageEvent;\n    \"messageerror\": MessageEvent;\n}\n\n/** This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread. */\ninterface Worker extends EventTarget, AbstractWorker {\n    onmessage: ((this: Worker, ev: MessageEvent) => any) | null;\n    onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;\n    /** Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned. */\n    postMessage(message: any, transfer: Transferable[]): void;\n    postMessage(message: any, options?: StructuredSerializeOptions): void;\n    /** Aborts worker's associated global environment. */\n    terminate(): void;\n    addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Worker: {\n    prototype: Worker;\n    new(scriptURL: string | URL, options?: WorkerOptions): Worker;\n};\n\ninterface WorkerGlobalScopeEventMap {\n    \"error\": ErrorEvent;\n    \"languagechange\": Event;\n    \"offline\": Event;\n    \"online\": Event;\n    \"rejectionhandled\": PromiseRejectionEvent;\n    \"unhandledrejection\": PromiseRejectionEvent;\n}\n\n/** This Web Workers API interface is an interface representing the scope of any worker. Workers have no browsing context; this scope contains the information usually conveyed by Window objects \\u2014 in this case event handlers, the console or the associated WorkerNavigator object. Each WorkerGlobalScope has its own event loop. */\ninterface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {\n    /** Returns workerGlobal's WorkerLocation object. */\n    readonly location: WorkerLocation;\n    /** Returns workerGlobal's WorkerNavigator object. */\n    readonly navigator: WorkerNavigator;\n    onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null;\n    onlanguagechange: ((this: WorkerGlobalScope, ev: Event) => any) | null;\n    onoffline: ((this: WorkerGlobalScope, ev: Event) => any) | null;\n    ononline: ((this: WorkerGlobalScope, ev: Event) => any) | null;\n    onrejectionhandled: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\n    onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\n    /** Returns workerGlobal. */\n    readonly self: WorkerGlobalScope & typeof globalThis;\n    /** Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss). */\n    importScripts(...urls: (string | URL)[]): void;\n    addEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var WorkerGlobalScope: {\n    prototype: WorkerGlobalScope;\n    new(): WorkerGlobalScope;\n};\n\n/** The absolute location of the script executed by the Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.location property obtained by calling self.location. */\ninterface WorkerLocation {\n    readonly hash: string;\n    readonly host: string;\n    readonly hostname: string;\n    readonly href: string;\n    toString(): string;\n    readonly origin: string;\n    readonly pathname: string;\n    readonly port: string;\n    readonly protocol: string;\n    readonly search: string;\n}\n\ndeclare var WorkerLocation: {\n    prototype: WorkerLocation;\n    new(): WorkerLocation;\n};\n\n/** A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator. */\ninterface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {\n    readonly mediaCapabilities: MediaCapabilities;\n}\n\ndeclare var WorkerNavigator: {\n    prototype: WorkerNavigator;\n    new(): WorkerNavigator;\n};\n\n/** This Streams API interface provides\\xA0a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. */\ninterface WritableStream<W = any> {\n    readonly locked: boolean;\n    abort(reason?: any): Promise<void>;\n    close(): Promise<void>;\n    getWriter(): WritableStreamDefaultWriter<W>;\n}\n\ndeclare var WritableStream: {\n    prototype: WritableStream;\n    new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;\n};\n\n/** This Streams API interface represents a controller allowing control of a\\xA0WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */\ninterface WritableStreamDefaultController {\n    readonly signal: AbortSignal;\n    error(e?: any): void;\n}\n\ndeclare var WritableStreamDefaultController: {\n    prototype: WritableStreamDefaultController;\n    new(): WritableStreamDefaultController;\n};\n\n/** This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink. */\ninterface WritableStreamDefaultWriter<W = any> {\n    readonly closed: Promise<undefined>;\n    readonly desiredSize: number | null;\n    readonly ready: Promise<undefined>;\n    abort(reason?: any): Promise<void>;\n    close(): Promise<void>;\n    releaseLock(): void;\n    write(chunk?: W): Promise<void>;\n}\n\ndeclare var WritableStreamDefaultWriter: {\n    prototype: WritableStreamDefaultWriter;\n    new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;\n};\n\ninterface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {\n    \"readystatechange\": Event;\n}\n\n/** Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. */\ninterface XMLHttpRequest extends XMLHttpRequestEventTarget {\n    onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;\n    /** Returns client's state. */\n    readonly readyState: number;\n    /** Returns the response body. */\n    readonly response: any;\n    /**\n     * Returns response as text.\n     *\n     * Throws an \"InvalidStateError\" DOMException if responseType is not the empty string or \"text\".\n     */\n    readonly responseText: string;\n    /**\n     * Returns the response type.\n     *\n     * Can be set to change the response type. Values are: the empty string (default), \"arraybuffer\", \"blob\", \"document\", \"json\", and \"text\".\n     *\n     * When set: setting to \"document\" is ignored if current global object is not a Window object.\n     *\n     * When set: throws an \"InvalidStateError\" DOMException if state is loading or done.\n     *\n     * When set: throws an \"InvalidAccessError\" DOMException if the synchronous flag is set and current global object is a Window object.\n     */\n    responseType: XMLHttpRequestResponseType;\n    readonly responseURL: string;\n    readonly status: number;\n    readonly statusText: string;\n    /**\n     * Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a \"TimeoutError\" DOMException will be thrown otherwise (for the send() method).\n     *\n     * When set: throws an \"InvalidAccessError\" DOMException if the synchronous flag is set and current global object is a Window object.\n     */\n    timeout: number;\n    /** Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server. */\n    readonly upload: XMLHttpRequestUpload;\n    /**\n     * True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.\n     *\n     * When set: throws an \"InvalidStateError\" DOMException if state is not unsent or opened, or if the send() flag is set.\n     */\n    withCredentials: boolean;\n    /** Cancels any network activity. */\n    abort(): void;\n    getAllResponseHeaders(): string;\n    getResponseHeader(name: string): string | null;\n    /**\n     * Sets the request method, request URL, and synchronous flag.\n     *\n     * Throws a \"SyntaxError\" DOMException if either method is not a valid method or url cannot be parsed.\n     *\n     * Throws a \"SecurityError\" DOMException if method is a case-insensitive match for \\`CONNECT\\`, \\`TRACE\\`, or \\`TRACK\\`.\n     *\n     * Throws an \"InvalidAccessError\" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.\n     */\n    open(method: string, url: string | URL): void;\n    open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;\n    /**\n     * Acts as if the \\`Content-Type\\` header value for a response is mime. (It does not change the header.)\n     *\n     * Throws an \"InvalidStateError\" DOMException if state is loading or done.\n     */\n    overrideMimeType(mime: string): void;\n    /**\n     * Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.\n     *\n     * Throws an \"InvalidStateError\" DOMException if either state is not opened or the send() flag is set.\n     */\n    send(body?: XMLHttpRequestBodyInit | null): void;\n    /**\n     * Combines a header in author request headers.\n     *\n     * Throws an \"InvalidStateError\" DOMException if either state is not opened or the send() flag is set.\n     *\n     * Throws a \"SyntaxError\" DOMException if name is not a header name or if value is not a header value.\n     */\n    setRequestHeader(name: string, value: string): void;\n    readonly UNSENT: 0;\n    readonly OPENED: 1;\n    readonly HEADERS_RECEIVED: 2;\n    readonly LOADING: 3;\n    readonly DONE: 4;\n    addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequest: {\n    prototype: XMLHttpRequest;\n    new(): XMLHttpRequest;\n    readonly UNSENT: 0;\n    readonly OPENED: 1;\n    readonly HEADERS_RECEIVED: 2;\n    readonly LOADING: 3;\n    readonly DONE: 4;\n};\n\ninterface XMLHttpRequestEventTargetEventMap {\n    \"abort\": ProgressEvent<XMLHttpRequestEventTarget>;\n    \"error\": ProgressEvent<XMLHttpRequestEventTarget>;\n    \"load\": ProgressEvent<XMLHttpRequestEventTarget>;\n    \"loadend\": ProgressEvent<XMLHttpRequestEventTarget>;\n    \"loadstart\": ProgressEvent<XMLHttpRequestEventTarget>;\n    \"progress\": ProgressEvent<XMLHttpRequestEventTarget>;\n    \"timeout\": ProgressEvent<XMLHttpRequestEventTarget>;\n}\n\ninterface XMLHttpRequestEventTarget extends EventTarget {\n    onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n    onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n    onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n    onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n    onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n    onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n    ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n    addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequestEventTarget: {\n    prototype: XMLHttpRequestEventTarget;\n    new(): XMLHttpRequestEventTarget;\n};\n\ninterface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {\n    addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequestUpload: {\n    prototype: XMLHttpRequestUpload;\n    new(): XMLHttpRequestUpload;\n};\n\ninterface Console {\n    assert(condition?: boolean, ...data: any[]): void;\n    clear(): void;\n    count(label?: string): void;\n    countReset(label?: string): void;\n    debug(...data: any[]): void;\n    dir(item?: any, options?: any): void;\n    dirxml(...data: any[]): void;\n    error(...data: any[]): void;\n    group(...data: any[]): void;\n    groupCollapsed(...data: any[]): void;\n    groupEnd(): void;\n    info(...data: any[]): void;\n    log(...data: any[]): void;\n    table(tabularData?: any, properties?: string[]): void;\n    time(label?: string): void;\n    timeEnd(label?: string): void;\n    timeLog(label?: string, ...data: any[]): void;\n    timeStamp(label?: string): void;\n    trace(...data: any[]): void;\n    warn(...data: any[]): void;\n}\n\ndeclare var console: Console;\n\ndeclare namespace WebAssembly {\n    interface CompileError extends Error {\n    }\n\n    var CompileError: {\n        prototype: CompileError;\n        new(message?: string): CompileError;\n        (message?: string): CompileError;\n    };\n\n    interface Global {\n        value: any;\n        valueOf(): any;\n    }\n\n    var Global: {\n        prototype: Global;\n        new(descriptor: GlobalDescriptor, v?: any): Global;\n    };\n\n    interface Instance {\n        readonly exports: Exports;\n    }\n\n    var Instance: {\n        prototype: Instance;\n        new(module: Module, importObject?: Imports): Instance;\n    };\n\n    interface LinkError extends Error {\n    }\n\n    var LinkError: {\n        prototype: LinkError;\n        new(message?: string): LinkError;\n        (message?: string): LinkError;\n    };\n\n    interface Memory {\n        readonly buffer: ArrayBuffer;\n        grow(delta: number): number;\n    }\n\n    var Memory: {\n        prototype: Memory;\n        new(descriptor: MemoryDescriptor): Memory;\n    };\n\n    interface Module {\n    }\n\n    var Module: {\n        prototype: Module;\n        new(bytes: BufferSource): Module;\n        customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];\n        exports(moduleObject: Module): ModuleExportDescriptor[];\n        imports(moduleObject: Module): ModuleImportDescriptor[];\n    };\n\n    interface RuntimeError extends Error {\n    }\n\n    var RuntimeError: {\n        prototype: RuntimeError;\n        new(message?: string): RuntimeError;\n        (message?: string): RuntimeError;\n    };\n\n    interface Table {\n        readonly length: number;\n        get(index: number): any;\n        grow(delta: number, value?: any): number;\n        set(index: number, value?: any): void;\n    }\n\n    var Table: {\n        prototype: Table;\n        new(descriptor: TableDescriptor, value?: any): Table;\n    };\n\n    interface GlobalDescriptor {\n        mutable?: boolean;\n        value: ValueType;\n    }\n\n    interface MemoryDescriptor {\n        initial: number;\n        maximum?: number;\n        shared?: boolean;\n    }\n\n    interface ModuleExportDescriptor {\n        kind: ImportExportKind;\n        name: string;\n    }\n\n    interface ModuleImportDescriptor {\n        kind: ImportExportKind;\n        module: string;\n        name: string;\n    }\n\n    interface TableDescriptor {\n        element: TableKind;\n        initial: number;\n        maximum?: number;\n    }\n\n    interface WebAssemblyInstantiatedSource {\n        instance: Instance;\n        module: Module;\n    }\n\n    type ImportExportKind = \"function\" | \"global\" | \"memory\" | \"table\";\n    type TableKind = \"anyfunc\" | \"externref\";\n    type ValueType = \"anyfunc\" | \"externref\" | \"f32\" | \"f64\" | \"i32\" | \"i64\" | \"v128\";\n    type ExportValue = Function | Global | Memory | Table;\n    type Exports = Record<string, ExportValue>;\n    type ImportValue = ExportValue | number;\n    type Imports = Record<string, ModuleImports>;\n    type ModuleImports = Record<string, ImportValue>;\n    function compile(bytes: BufferSource): Promise<Module>;\n    function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;\n    function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;\n    function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;\n    function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;\n    function validate(bytes: BufferSource): boolean;\n}\n\ninterface FrameRequestCallback {\n    (time: DOMHighResTimeStamp): void;\n}\n\ninterface LockGrantedCallback {\n    (lock: Lock | null): any;\n}\n\ninterface OnErrorEventHandlerNonNull {\n    (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;\n}\n\ninterface PerformanceObserverCallback {\n    (entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;\n}\n\ninterface QueuingStrategySize<T = any> {\n    (chunk: T): number;\n}\n\ninterface TransformerFlushCallback<O> {\n    (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface TransformerStartCallback<O> {\n    (controller: TransformStreamDefaultController<O>): any;\n}\n\ninterface TransformerTransformCallback<I, O> {\n    (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkAbortCallback {\n    (reason?: any): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkCloseCallback {\n    (): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkStartCallback {\n    (controller: WritableStreamDefaultController): any;\n}\n\ninterface UnderlyingSinkWriteCallback<W> {\n    (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourceCancelCallback {\n    (reason?: any): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourcePullCallback<R> {\n    (controller: ReadableStreamController<R>): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourceStartCallback<R> {\n    (controller: ReadableStreamController<R>): any;\n}\n\ninterface VoidFunction {\n    (): void;\n}\n\n/** Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging. */\ndeclare var name: string;\ndeclare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;\ndeclare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;\n/** Aborts dedicatedWorkerGlobal. */\ndeclare function close(): void;\n/** Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned. */\ndeclare function postMessage(message: any, transfer: Transferable[]): void;\ndeclare function postMessage(message: any, options?: StructuredSerializeOptions): void;\n/** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */\ndeclare function dispatchEvent(event: Event): boolean;\n/** Returns workerGlobal's WorkerLocation object. */\ndeclare var location: WorkerLocation;\n/** Returns workerGlobal's WorkerNavigator object. */\ndeclare var navigator: WorkerNavigator;\ndeclare var onerror: ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any) | null;\ndeclare var onlanguagechange: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;\ndeclare var onoffline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;\ndeclare var ononline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;\ndeclare var onrejectionhandled: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\ndeclare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\n/** Returns workerGlobal. */\ndeclare var self: WorkerGlobalScope & typeof globalThis;\n/** Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss). */\ndeclare function importScripts(...urls: (string | URL)[]): void;\n/** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */\ndeclare function dispatchEvent(event: Event): boolean;\ndeclare var fonts: FontFaceSet;\n/** Available only in secure contexts. */\ndeclare var caches: CacheStorage;\ndeclare var crossOriginIsolated: boolean;\ndeclare var crypto: Crypto;\ndeclare var indexedDB: IDBFactory;\ndeclare var isSecureContext: boolean;\ndeclare var origin: string;\ndeclare var performance: Performance;\ndeclare function atob(data: string): string;\ndeclare function btoa(data: string): string;\ndeclare function clearInterval(id: number | undefined): void;\ndeclare function clearTimeout(id: number | undefined): void;\ndeclare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;\ndeclare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\ndeclare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;\ndeclare function queueMicrotask(callback: VoidFunction): void;\ndeclare function reportError(e: any): void;\ndeclare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\ndeclare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\ndeclare function structuredClone(value: any, options?: StructuredSerializeOptions): any;\ndeclare function cancelAnimationFrame(handle: number): void;\ndeclare function requestAnimationFrame(callback: FrameRequestCallback): number;\ndeclare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\ndeclare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\ndeclare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\ndeclare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\ntype AlgorithmIdentifier = Algorithm | string;\ntype BigInteger = Uint8Array;\ntype BinaryData = ArrayBuffer | ArrayBufferView;\ntype BlobPart = BufferSource | Blob | string;\ntype BodyInit = ReadableStream | XMLHttpRequestBodyInit;\ntype BufferSource = ArrayBufferView | ArrayBuffer;\ntype CanvasImageSource = ImageBitmap | OffscreenCanvas;\ntype DOMHighResTimeStamp = number;\ntype EpochTimeStamp = number;\ntype EventListenerOrEventListenerObject = EventListener | EventListenerObject;\ntype Float32List = Float32Array | GLfloat[];\ntype FormDataEntryValue = File | string;\ntype GLbitfield = number;\ntype GLboolean = boolean;\ntype GLclampf = number;\ntype GLenum = number;\ntype GLfloat = number;\ntype GLint = number;\ntype GLint64 = number;\ntype GLintptr = number;\ntype GLsizei = number;\ntype GLsizeiptr = number;\ntype GLuint = number;\ntype GLuint64 = number;\ntype HashAlgorithmIdentifier = AlgorithmIdentifier;\ntype HeadersInit = [string, string][] | Record<string, string> | Headers;\ntype IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];\ntype ImageBitmapSource = CanvasImageSource | Blob | ImageData;\ntype Int32List = Int32Array | GLint[];\ntype MessageEventSource = MessagePort | ServiceWorker;\ntype NamedCurve = string;\ntype OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;\ntype OnErrorEventHandler = OnErrorEventHandlerNonNull | null;\ntype PerformanceEntryList = PerformanceEntry[];\ntype PushMessageDataInit = BufferSource | string;\ntype ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;\ntype ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;\ntype ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;\ntype RequestInfo = Request | string;\ntype TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;\ntype TimerHandler = string | Function;\ntype Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;\ntype Uint32List = Uint32Array | GLuint[];\ntype VibratePattern = number | number[];\ntype XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;\ntype BinaryType = \"arraybuffer\" | \"blob\";\ntype CanvasDirection = \"inherit\" | \"ltr\" | \"rtl\";\ntype CanvasFillRule = \"evenodd\" | \"nonzero\";\ntype CanvasFontKerning = \"auto\" | \"none\" | \"normal\";\ntype CanvasFontStretch = \"condensed\" | \"expanded\" | \"extra-condensed\" | \"extra-expanded\" | \"normal\" | \"semi-condensed\" | \"semi-expanded\" | \"ultra-condensed\" | \"ultra-expanded\";\ntype CanvasFontVariantCaps = \"all-petite-caps\" | \"all-small-caps\" | \"normal\" | \"petite-caps\" | \"small-caps\" | \"titling-caps\" | \"unicase\";\ntype CanvasLineCap = \"butt\" | \"round\" | \"square\";\ntype CanvasLineJoin = \"bevel\" | \"miter\" | \"round\";\ntype CanvasTextAlign = \"center\" | \"end\" | \"left\" | \"right\" | \"start\";\ntype CanvasTextBaseline = \"alphabetic\" | \"bottom\" | \"hanging\" | \"ideographic\" | \"middle\" | \"top\";\ntype CanvasTextRendering = \"auto\" | \"geometricPrecision\" | \"optimizeLegibility\" | \"optimizeSpeed\";\ntype ClientTypes = \"all\" | \"sharedworker\" | \"window\" | \"worker\";\ntype ColorGamut = \"p3\" | \"rec2020\" | \"srgb\";\ntype ColorSpaceConversion = \"default\" | \"none\";\ntype DocumentVisibilityState = \"hidden\" | \"visible\";\ntype EndingType = \"native\" | \"transparent\";\ntype FileSystemHandleKind = \"directory\" | \"file\";\ntype FontDisplay = \"auto\" | \"block\" | \"fallback\" | \"optional\" | \"swap\";\ntype FontFaceLoadStatus = \"error\" | \"loaded\" | \"loading\" | \"unloaded\";\ntype FontFaceSetLoadStatus = \"loaded\" | \"loading\";\ntype FrameType = \"auxiliary\" | \"nested\" | \"none\" | \"top-level\";\ntype GlobalCompositeOperation = \"color\" | \"color-burn\" | \"color-dodge\" | \"copy\" | \"darken\" | \"destination-atop\" | \"destination-in\" | \"destination-out\" | \"destination-over\" | \"difference\" | \"exclusion\" | \"hard-light\" | \"hue\" | \"lighten\" | \"lighter\" | \"luminosity\" | \"multiply\" | \"overlay\" | \"saturation\" | \"screen\" | \"soft-light\" | \"source-atop\" | \"source-in\" | \"source-out\" | \"source-over\" | \"xor\";\ntype HdrMetadataType = \"smpteSt2086\" | \"smpteSt2094-10\" | \"smpteSt2094-40\";\ntype IDBCursorDirection = \"next\" | \"nextunique\" | \"prev\" | \"prevunique\";\ntype IDBRequestReadyState = \"done\" | \"pending\";\ntype IDBTransactionDurability = \"default\" | \"relaxed\" | \"strict\";\ntype IDBTransactionMode = \"readonly\" | \"readwrite\" | \"versionchange\";\ntype ImageOrientation = \"flipY\" | \"from-image\";\ntype ImageSmoothingQuality = \"high\" | \"low\" | \"medium\";\ntype KeyFormat = \"jwk\" | \"pkcs8\" | \"raw\" | \"spki\";\ntype KeyType = \"private\" | \"public\" | \"secret\";\ntype KeyUsage = \"decrypt\" | \"deriveBits\" | \"deriveKey\" | \"encrypt\" | \"sign\" | \"unwrapKey\" | \"verify\" | \"wrapKey\";\ntype LockMode = \"exclusive\" | \"shared\";\ntype MediaDecodingType = \"file\" | \"media-source\" | \"webrtc\";\ntype MediaEncodingType = \"record\" | \"webrtc\";\ntype NotificationDirection = \"auto\" | \"ltr\" | \"rtl\";\ntype NotificationPermission = \"default\" | \"denied\" | \"granted\";\ntype OffscreenRenderingContextId = \"2d\" | \"bitmaprenderer\" | \"webgl\" | \"webgl2\" | \"webgpu\";\ntype PermissionName = \"geolocation\" | \"notifications\" | \"persistent-storage\" | \"push\" | \"screen-wake-lock\" | \"xr-spatial-tracking\";\ntype PermissionState = \"denied\" | \"granted\" | \"prompt\";\ntype PredefinedColorSpace = \"display-p3\" | \"srgb\";\ntype PremultiplyAlpha = \"default\" | \"none\" | \"premultiply\";\ntype PushEncryptionKeyName = \"auth\" | \"p256dh\";\ntype RTCEncodedVideoFrameType = \"delta\" | \"empty\" | \"key\";\ntype ReadableStreamReaderMode = \"byob\";\ntype ReadableStreamType = \"bytes\";\ntype ReferrerPolicy = \"\" | \"no-referrer\" | \"no-referrer-when-downgrade\" | \"origin\" | \"origin-when-cross-origin\" | \"same-origin\" | \"strict-origin\" | \"strict-origin-when-cross-origin\" | \"unsafe-url\";\ntype RequestCache = \"default\" | \"force-cache\" | \"no-cache\" | \"no-store\" | \"only-if-cached\" | \"reload\";\ntype RequestCredentials = \"include\" | \"omit\" | \"same-origin\";\ntype RequestDestination = \"\" | \"audio\" | \"audioworklet\" | \"document\" | \"embed\" | \"font\" | \"frame\" | \"iframe\" | \"image\" | \"manifest\" | \"object\" | \"paintworklet\" | \"report\" | \"script\" | \"sharedworker\" | \"style\" | \"track\" | \"video\" | \"worker\" | \"xslt\";\ntype RequestMode = \"cors\" | \"navigate\" | \"no-cors\" | \"same-origin\";\ntype RequestRedirect = \"error\" | \"follow\" | \"manual\";\ntype ResizeQuality = \"high\" | \"low\" | \"medium\" | \"pixelated\";\ntype ResponseType = \"basic\" | \"cors\" | \"default\" | \"error\" | \"opaque\" | \"opaqueredirect\";\ntype SecurityPolicyViolationEventDisposition = \"enforce\" | \"report\";\ntype ServiceWorkerState = \"activated\" | \"activating\" | \"installed\" | \"installing\" | \"parsed\" | \"redundant\";\ntype ServiceWorkerUpdateViaCache = \"all\" | \"imports\" | \"none\";\ntype TransferFunction = \"hlg\" | \"pq\" | \"srgb\";\ntype VideoColorPrimaries = \"bt470bg\" | \"bt709\" | \"smpte170m\";\ntype VideoMatrixCoefficients = \"bt470bg\" | \"bt709\" | \"rgb\" | \"smpte170m\";\ntype VideoTransferCharacteristics = \"bt709\" | \"iec61966-2-1\" | \"smpte170m\";\ntype WebGLPowerPreference = \"default\" | \"high-performance\" | \"low-power\";\ntype WorkerType = \"classic\" | \"module\";\ntype XMLHttpRequestResponseType = \"\" | \"arraybuffer\" | \"blob\" | \"document\" | \"json\" | \"text\";\n`;\nlibFileMap[\"lib.webworker.importscripts.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n\\n/////////////////////////////\\n/// WorkerGlobalScope APIs\\n/////////////////////////////\\n// These are only available in a Web Worker\\ndeclare function importScripts(...urls: string[]): void;\\n';\nlibFileMap[\"lib.webworker.iterable.d.ts\"] = '/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n/// <reference no-default-lib=\"true\"/>\\n\\n/////////////////////////////\\n/// Worker Iterable APIs\\n/////////////////////////////\\n\\ninterface Cache {\\n    addAll(requests: Iterable<RequestInfo>): Promise<void>;\\n}\\n\\ninterface CanvasPath {\\n    roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;\\n}\\n\\ninterface CanvasPathDrawingStyles {\\n    setLineDash(segments: Iterable<number>): void;\\n}\\n\\ninterface DOMStringList {\\n    [Symbol.iterator](): IterableIterator<string>;\\n}\\n\\ninterface FileList {\\n    [Symbol.iterator](): IterableIterator<File>;\\n}\\n\\ninterface FontFaceSet extends Set<FontFace> {\\n}\\n\\ninterface FormData {\\n    [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;\\n    /** Returns an array of key, value pairs for every entry in the list. */\\n    entries(): IterableIterator<[string, FormDataEntryValue]>;\\n    /** Returns a list of keys in the list. */\\n    keys(): IterableIterator<string>;\\n    /** Returns a list of values in the list. */\\n    values(): IterableIterator<FormDataEntryValue>;\\n}\\n\\ninterface Headers {\\n    [Symbol.iterator](): IterableIterator<[string, string]>;\\n    /** Returns an iterator allowing to go through all key/value pairs contained in this object. */\\n    entries(): IterableIterator<[string, string]>;\\n    /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */\\n    keys(): IterableIterator<string>;\\n    /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */\\n    values(): IterableIterator<string>;\\n}\\n\\ninterface IDBDatabase {\\n    /** Returns a new transaction with the given mode (\"readonly\" or \"readwrite\") and scope which can be a single object store name or an array of names. */\\n    transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;\\n}\\n\\ninterface IDBObjectStore {\\n    /**\\n     * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a \"ConstraintError\" DOMException.\\n     *\\n     * Throws an \"InvalidStateError\" DOMException if not called within an upgrade transaction.\\n     */\\n    createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;\\n}\\n\\ninterface MessageEvent<T = any> {\\n    /** @deprecated */\\n    initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;\\n}\\n\\ninterface SubtleCrypto {\\n    deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\\n    generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;\\n    generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\\n    generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;\\n    importKey(format: \"jwk\", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\\n    importKey(format: Exclude<KeyFormat, \"jwk\">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\\n    unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\\n}\\n\\ninterface URLSearchParams {\\n    [Symbol.iterator](): IterableIterator<[string, string]>;\\n    /** Returns an array of key, value pairs for every entry in the search params. */\\n    entries(): IterableIterator<[string, string]>;\\n    /** Returns a list of keys in the search params. */\\n    keys(): IterableIterator<string>;\\n    /** Returns a list of values in the search params. */\\n    values(): IterableIterator<string>;\\n}\\n\\ninterface WEBGL_draw_buffers {\\n    drawBuffersWEBGL(buffers: Iterable<GLenum>): void;\\n}\\n\\ninterface WEBGL_multi_draw {\\n    multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;\\n    multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;\\n    multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;\\n    multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;\\n}\\n\\ninterface WebGL2RenderingContextBase {\\n    clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;\\n    clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;\\n    clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;\\n    drawBuffers(buffers: Iterable<GLenum>): void;\\n    getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;\\n    getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;\\n    invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;\\n    invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\\n    transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;\\n    uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;\\n    vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;\\n}\\n\\ninterface WebGL2RenderingContextOverloads {\\n    uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n    uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\\n}\\n\\ninterface WebGLRenderingContextBase {\\n    vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;\\n    vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;\\n    vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;\\n    vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;\\n}\\n\\ninterface WebGLRenderingContextOverloads {\\n    uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\\n    uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\\n    uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\\n    uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\\n    uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\\n    uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\\n    uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\\n    uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\\n    uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\\n    uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\\n    uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\\n}\\n';\n\n// src/language/typescript/tsWorker.ts\nfunction fileNameIsLib(resource) {\n  if (typeof resource === \"string\") {\n    if (/^file:\\/\\/\\//.test(resource)) {\n      return !!libFileMap[resource.substr(8)];\n    }\n    return false;\n  }\n  if (resource.path.indexOf(\"/lib.\") === 0) {\n    return !!libFileMap[resource.path.slice(1)];\n  }\n  return false;\n}\nvar TypeScriptWorker = class {\n  _ctx;\n  _extraLibs = /* @__PURE__ */ Object.create(null);\n  _languageService = createLanguageService(this);\n  _compilerOptions;\n  _inlayHintsOptions;\n  constructor(ctx, createData) {\n    this._ctx = ctx;\n    this._compilerOptions = createData.compilerOptions;\n    this._extraLibs = createData.extraLibs;\n    this._inlayHintsOptions = createData.inlayHintsOptions;\n  }\n  getCompilationSettings() {\n    return this._compilerOptions;\n  }\n  getLanguageService() {\n    return this._languageService;\n  }\n  getExtraLibs() {\n    return this._extraLibs;\n  }\n  getScriptFileNames() {\n    const allModels = this._ctx.getMirrorModels().map((model) => model.uri);\n    const models = allModels.filter((uri) => !fileNameIsLib(uri)).map((uri) => uri.toString());\n    return models.concat(Object.keys(this._extraLibs));\n  }\n  _getModel(fileName) {\n    let models = this._ctx.getMirrorModels();\n    for (let i = 0; i < models.length; i++) {\n      const uri = models[i].uri;\n      if (uri.toString() === fileName || uri.toString(true) === fileName) {\n        return models[i];\n      }\n    }\n    return null;\n  }\n  getScriptVersion(fileName) {\n    let model = this._getModel(fileName);\n    if (model) {\n      return model.version.toString();\n    } else if (this.isDefaultLibFileName(fileName)) {\n      return \"1\";\n    } else if (fileName in this._extraLibs) {\n      return String(this._extraLibs[fileName].version);\n    }\n    return \"\";\n  }\n  async getScriptText(fileName) {\n    return this._getScriptText(fileName);\n  }\n  _getScriptText(fileName) {\n    let text;\n    let model = this._getModel(fileName);\n    const libizedFileName = \"lib.\" + fileName + \".d.ts\";\n    if (model) {\n      text = model.getValue();\n    } else if (fileName in libFileMap) {\n      text = libFileMap[fileName];\n    } else if (libizedFileName in libFileMap) {\n      text = libFileMap[libizedFileName];\n    } else if (fileName in this._extraLibs) {\n      text = this._extraLibs[fileName].content;\n    } else {\n      return;\n    }\n    return text;\n  }\n  getScriptSnapshot(fileName) {\n    const text = this._getScriptText(fileName);\n    if (text === void 0) {\n      return;\n    }\n    return {\n      getText: (start, end) => text.substring(start, end),\n      getLength: () => text.length,\n      getChangeRange: () => void 0\n    };\n  }\n  getScriptKind(fileName) {\n    const suffix = fileName.substr(fileName.lastIndexOf(\".\") + 1);\n    switch (suffix) {\n      case \"ts\":\n        return ScriptKind.TS;\n      case \"tsx\":\n        return ScriptKind.TSX;\n      case \"js\":\n        return ScriptKind.JS;\n      case \"jsx\":\n        return ScriptKind.JSX;\n      default:\n        return this.getCompilationSettings().allowJs ? ScriptKind.JS : ScriptKind.TS;\n    }\n  }\n  getCurrentDirectory() {\n    return \"\";\n  }\n  getDefaultLibFileName(options) {\n    switch (options.target) {\n      case 99:\n        const esnext = \"lib.esnext.full.d.ts\";\n        if (esnext in libFileMap || esnext in this._extraLibs)\n          return esnext;\n      case 7:\n      case 6:\n      case 5:\n      case 4:\n      case 3:\n      case 2:\n      default:\n        const eslib = `lib.es${2013 + (options.target || 99)}.full.d.ts`;\n        if (eslib in libFileMap || eslib in this._extraLibs) {\n          return eslib;\n        }\n        return \"lib.es6.d.ts\";\n      case 1:\n      case 0:\n        return \"lib.d.ts\";\n    }\n  }\n  isDefaultLibFileName(fileName) {\n    return fileName === this.getDefaultLibFileName(this._compilerOptions);\n  }\n  readFile(path) {\n    return this._getScriptText(path);\n  }\n  fileExists(path) {\n    return this._getScriptText(path) !== void 0;\n  }\n  async getLibFiles() {\n    return libFileMap;\n  }\n  static clearFiles(tsDiagnostics) {\n    const diagnostics = [];\n    for (const tsDiagnostic of tsDiagnostics) {\n      const diagnostic = { ...tsDiagnostic };\n      diagnostic.file = diagnostic.file ? { fileName: diagnostic.file.fileName } : void 0;\n      if (tsDiagnostic.relatedInformation) {\n        diagnostic.relatedInformation = [];\n        for (const tsRelatedDiagnostic of tsDiagnostic.relatedInformation) {\n          const relatedDiagnostic = { ...tsRelatedDiagnostic };\n          relatedDiagnostic.file = relatedDiagnostic.file ? { fileName: relatedDiagnostic.file.fileName } : void 0;\n          diagnostic.relatedInformation.push(relatedDiagnostic);\n        }\n      }\n      diagnostics.push(diagnostic);\n    }\n    return diagnostics;\n  }\n  async getSyntacticDiagnostics(fileName) {\n    if (fileNameIsLib(fileName)) {\n      return [];\n    }\n    const diagnostics = this._languageService.getSyntacticDiagnostics(fileName);\n    return TypeScriptWorker.clearFiles(diagnostics);\n  }\n  async getSemanticDiagnostics(fileName) {\n    if (fileNameIsLib(fileName)) {\n      return [];\n    }\n    const diagnostics = this._languageService.getSemanticDiagnostics(fileName);\n    return TypeScriptWorker.clearFiles(diagnostics);\n  }\n  async getSuggestionDiagnostics(fileName) {\n    if (fileNameIsLib(fileName)) {\n      return [];\n    }\n    const diagnostics = this._languageService.getSuggestionDiagnostics(fileName);\n    return TypeScriptWorker.clearFiles(diagnostics);\n  }\n  async getCompilerOptionsDiagnostics(fileName) {\n    if (fileNameIsLib(fileName)) {\n      return [];\n    }\n    const diagnostics = this._languageService.getCompilerOptionsDiagnostics();\n    return TypeScriptWorker.clearFiles(diagnostics);\n  }\n  async getCompletionsAtPosition(fileName, position) {\n    if (fileNameIsLib(fileName)) {\n      return void 0;\n    }\n    return this._languageService.getCompletionsAtPosition(fileName, position, void 0);\n  }\n  async getCompletionEntryDetails(fileName, position, entry) {\n    return this._languageService.getCompletionEntryDetails(fileName, position, entry, void 0, void 0, void 0, void 0);\n  }\n  async getSignatureHelpItems(fileName, position, options) {\n    if (fileNameIsLib(fileName)) {\n      return void 0;\n    }\n    return this._languageService.getSignatureHelpItems(fileName, position, options);\n  }\n  async getQuickInfoAtPosition(fileName, position) {\n    if (fileNameIsLib(fileName)) {\n      return void 0;\n    }\n    return this._languageService.getQuickInfoAtPosition(fileName, position);\n  }\n  async getDocumentHighlights(fileName, position, filesToSearch) {\n    if (fileNameIsLib(fileName)) {\n      return void 0;\n    }\n    return this._languageService.getDocumentHighlights(fileName, position, filesToSearch);\n  }\n  async getDefinitionAtPosition(fileName, position) {\n    if (fileNameIsLib(fileName)) {\n      return void 0;\n    }\n    return this._languageService.getDefinitionAtPosition(fileName, position);\n  }\n  async getReferencesAtPosition(fileName, position) {\n    if (fileNameIsLib(fileName)) {\n      return void 0;\n    }\n    return this._languageService.getReferencesAtPosition(fileName, position);\n  }\n  async getNavigationTree(fileName) {\n    if (fileNameIsLib(fileName)) {\n      return void 0;\n    }\n    return this._languageService.getNavigationTree(fileName);\n  }\n  async getFormattingEditsForDocument(fileName, options) {\n    if (fileNameIsLib(fileName)) {\n      return [];\n    }\n    return this._languageService.getFormattingEditsForDocument(fileName, options);\n  }\n  async getFormattingEditsForRange(fileName, start, end, options) {\n    if (fileNameIsLib(fileName)) {\n      return [];\n    }\n    return this._languageService.getFormattingEditsForRange(fileName, start, end, options);\n  }\n  async getFormattingEditsAfterKeystroke(fileName, postion, ch, options) {\n    if (fileNameIsLib(fileName)) {\n      return [];\n    }\n    return this._languageService.getFormattingEditsAfterKeystroke(fileName, postion, ch, options);\n  }\n  async findRenameLocations(fileName, position, findInStrings, findInComments, providePrefixAndSuffixTextForRename) {\n    if (fileNameIsLib(fileName)) {\n      return void 0;\n    }\n    return this._languageService.findRenameLocations(fileName, position, findInStrings, findInComments, providePrefixAndSuffixTextForRename);\n  }\n  async getRenameInfo(fileName, position, options) {\n    if (fileNameIsLib(fileName)) {\n      return { canRename: false, localizedErrorMessage: \"Cannot rename in lib file\" };\n    }\n    return this._languageService.getRenameInfo(fileName, position, options);\n  }\n  async getEmitOutput(fileName) {\n    if (fileNameIsLib(fileName)) {\n      return { outputFiles: [], emitSkipped: true };\n    }\n    return this._languageService.getEmitOutput(fileName);\n  }\n  async getCodeFixesAtPosition(fileName, start, end, errorCodes, formatOptions) {\n    if (fileNameIsLib(fileName)) {\n      return [];\n    }\n    const preferences = {};\n    try {\n      return this._languageService.getCodeFixesAtPosition(fileName, start, end, errorCodes, formatOptions, preferences);\n    } catch {\n      return [];\n    }\n  }\n  async updateExtraLibs(extraLibs) {\n    this._extraLibs = extraLibs;\n  }\n  async provideInlayHints(fileName, start, end) {\n    if (fileNameIsLib(fileName)) {\n      return [];\n    }\n    const preferences = this._inlayHintsOptions ?? {};\n    const span = {\n      start,\n      length: end - start\n    };\n    try {\n      return this._languageService.provideInlayHints(fileName, span, preferences);\n    } catch {\n      return [];\n    }\n  }\n};\nfunction create(ctx, createData) {\n  let TSWorkerClass = TypeScriptWorker;\n  if (createData.customWorkerPath) {\n    if (typeof importScripts === \"undefined\") {\n      console.warn(\"Monaco is not using webworkers for background tasks, and that is needed to support the customWorkerPath flag\");\n    } else {\n      self.importScripts(createData.customWorkerPath);\n      const workerFactoryFunc = self.customTSWorkerFactory;\n      if (!workerFactoryFunc) {\n        throw new Error(`The script at ${createData.customWorkerPath} does not add customTSWorkerFactory to self`);\n      }\n      TSWorkerClass = workerFactoryFunc(TypeScriptWorker, typescriptServices_exports, libFileMap);\n    }\n  }\n  return new TSWorkerClass(ctx, createData);\n}\nglobalThis.ts = typescript;\n\n// src/language/typescript/ts.worker.ts\nself.onmessage = () => {\n  (0,_editor_editor_worker_js__WEBPACK_IMPORTED_MODULE_0__.initialize)((ctx, createData) => {\n    return create(ctx, createData);\n  });\n};\n\n/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/language/typescript/ts.worker.js?");

/***/ }),

/***/ "./node_modules/monaco-editor/esm/vs/nls.js":
/*!**************************************************!*\
  !*** ./node_modules/monaco-editor/esm/vs/nls.js ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   create: () => (/* binding */ create),\n/* harmony export */   getConfiguredDefaultLocale: () => (/* binding */ getConfiguredDefaultLocale),\n/* harmony export */   load: () => (/* binding */ load),\n/* harmony export */   localize: () => (/* binding */ localize),\n/* harmony export */   localize2: () => (/* binding */ localize2),\n/* harmony export */   setPseudoTranslation: () => (/* binding */ setPseudoTranslation)\n/* harmony export */ });\n/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nlet isPseudo = (typeof document !== 'undefined' && document.location && document.location.hash.indexOf('pseudo=true') >= 0);\nconst DEFAULT_TAG = 'i-default';\nfunction _format(message, args) {\n    let result;\n    if (args.length === 0) {\n        result = message;\n    }\n    else {\n        result = message.replace(/\\{(\\d+)\\}/g, (match, rest) => {\n            const index = rest[0];\n            const arg = args[index];\n            let result = match;\n            if (typeof arg === 'string') {\n                result = arg;\n            }\n            else if (typeof arg === 'number' || typeof arg === 'boolean' || arg === void 0 || arg === null) {\n                result = String(arg);\n            }\n            return result;\n        });\n    }\n    if (isPseudo) {\n        // FF3B and FF3D is the Unicode zenkaku representation for [ and ]\n        result = '\\uFF3B' + result.replace(/[aouei]/g, '$&$&') + '\\uFF3D';\n    }\n    return result;\n}\nfunction findLanguageForModule(config, name) {\n    let result = config[name];\n    if (result) {\n        return result;\n    }\n    result = config['*'];\n    if (result) {\n        return result;\n    }\n    return null;\n}\nfunction endWithSlash(path) {\n    if (path.charAt(path.length - 1) === '/') {\n        return path;\n    }\n    return path + '/';\n}\nasync function getMessagesFromTranslationsService(translationServiceUrl, language, name) {\n    const url = endWithSlash(translationServiceUrl) + endWithSlash(language) + 'vscode/' + endWithSlash(name);\n    const res = await fetch(url);\n    if (res.ok) {\n        const messages = await res.json();\n        return messages;\n    }\n    throw new Error(`${res.status} - ${res.statusText}`);\n}\nfunction createScopedLocalize(scope) {\n    return function (idx, defaultValue) {\n        const restArgs = Array.prototype.slice.call(arguments, 2);\n        return _format(scope[idx], restArgs);\n    };\n}\nfunction createScopedLocalize2(scope) {\n    return (idx, defaultValue, ...args) => ({\n        value: _format(scope[idx], args),\n        original: _format(defaultValue, args)\n    });\n}\n/**\n * @skipMangle\n */\nfunction localize(data, message, ...args) {\n    return _format(message, args);\n}\n/**\n * @skipMangle\n */\nfunction localize2(data, message, ...args) {\n    const original = _format(message, args);\n    return {\n        value: original,\n        original\n    };\n}\n/**\n * @skipMangle\n */\nfunction getConfiguredDefaultLocale(_) {\n    // This returns undefined because this implementation isn't used and is overwritten by the loader\n    // when loaded.\n    return undefined;\n}\n/**\n * @skipMangle\n */\nfunction setPseudoTranslation(value) {\n    isPseudo = value;\n}\n/**\n * Invoked in a built product at run-time\n * @skipMangle\n */\nfunction create(key, data) {\n    var _a;\n    return {\n        localize: createScopedLocalize(data[key]),\n        localize2: createScopedLocalize2(data[key]),\n        getConfiguredDefaultLocale: (_a = data.getConfiguredDefaultLocale) !== null && _a !== void 0 ? _a : ((_) => undefined)\n    };\n}\n/**\n * Invoked by the loader at run-time\n * @skipMangle\n */\nfunction load(name, req, load, config) {\n    var _a;\n    const pluginConfig = (_a = config['vs/nls']) !== null && _a !== void 0 ? _a : {};\n    if (!name || name.length === 0) {\n        // TODO: We need to give back the mangled names here\n        return load({\n            localize: localize,\n            localize2: localize2,\n            getConfiguredDefaultLocale: () => { var _a; return (_a = pluginConfig.availableLanguages) === null || _a === void 0 ? void 0 : _a['*']; }\n        });\n    }\n    const language = pluginConfig.availableLanguages ? findLanguageForModule(pluginConfig.availableLanguages, name) : null;\n    const useDefaultLanguage = language === null || language === DEFAULT_TAG;\n    let suffix = '.nls';\n    if (!useDefaultLanguage) {\n        suffix = suffix + '.' + language;\n    }\n    const messagesLoaded = (messages) => {\n        if (Array.isArray(messages)) {\n            messages.localize = createScopedLocalize(messages);\n            messages.localize2 = createScopedLocalize2(messages);\n        }\n        else {\n            messages.localize = createScopedLocalize(messages[name]);\n            messages.localize2 = createScopedLocalize2(messages[name]);\n        }\n        messages.getConfiguredDefaultLocale = () => { var _a; return (_a = pluginConfig.availableLanguages) === null || _a === void 0 ? void 0 : _a['*']; };\n        load(messages);\n    };\n    if (typeof pluginConfig.loadBundle === 'function') {\n        pluginConfig.loadBundle(name, language, (err, messages) => {\n            // We have an error. Load the English default strings to not fail\n            if (err) {\n                req([name + '.nls'], messagesLoaded);\n            }\n            else {\n                messagesLoaded(messages);\n            }\n        });\n    }\n    else if (pluginConfig.translationServiceUrl && !useDefaultLanguage) {\n        (async () => {\n            var _a;\n            try {\n                const messages = await getMessagesFromTranslationsService(pluginConfig.translationServiceUrl, language, name);\n                return messagesLoaded(messages);\n            }\n            catch (err) {\n                // Language is already as generic as it gets, so require default messages\n                if (!language.includes('-')) {\n                    console.error(err);\n                    return req([name + '.nls'], messagesLoaded);\n                }\n                try {\n                    // Since there is a dash, the language configured is a specific sub-language of the same generic language.\n                    // Since we were unable to load the specific language, try to load the generic language. Ex. we failed to find a\n                    // Swiss German (de-CH), so try to load the generic German (de) messages instead.\n                    const genericLanguage = language.split('-')[0];\n                    const messages = await getMessagesFromTranslationsService(pluginConfig.translationServiceUrl, genericLanguage, name);\n                    // We got some messages, so we configure the configuration to use the generic language for this session.\n                    (_a = pluginConfig.availableLanguages) !== null && _a !== void 0 ? _a : (pluginConfig.availableLanguages = {});\n                    pluginConfig.availableLanguages['*'] = genericLanguage;\n                    return messagesLoaded(messages);\n                }\n                catch (err) {\n                    console.error(err);\n                    return req([name + '.nls'], messagesLoaded);\n                }\n            }\n        })();\n    }\n    else {\n        req([name + suffix], messagesLoaded, (err) => {\n            if (suffix === '.nls') {\n                console.error('Failed trying to load default language strings', err);\n                return;\n            }\n            console.error(`Failed to load message bundle for language ${language}. Falling back to the default language:`, err);\n            req([name + '.nls'], messagesLoaded);\n        });\n    }\n}\n\n\n//# sourceURL=webpack://APITestManager/./node_modules/monaco-editor/esm/vs/nls.js?");

/***/ })

/******/ 	});
/************************************************************************/
/******/ 	// The module cache
/******/ 	var __webpack_module_cache__ = {};
/******/ 	
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/ 		// Check if module is in cache
/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
/******/ 		if (cachedModule !== undefined) {
/******/ 			return cachedModule.exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = __webpack_module_cache__[moduleId] = {
/******/ 			// no module.id needed
/******/ 			// no module.loaded needed
/******/ 			exports: {}
/******/ 		};
/******/ 	
/******/ 		// Execute the module function
/******/ 		__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/ 	
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/ 	
/************************************************************************/
/******/ 	/* webpack/runtime/define property getters */
/******/ 	(() => {
/******/ 		// define getter functions for harmony exports
/******/ 		__webpack_require__.d = (exports, definition) => {
/******/ 			for(var key in definition) {
/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ 				}
/******/ 			}
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/global */
/******/ 	(() => {
/******/ 		__webpack_require__.g = (function() {
/******/ 			if (typeof globalThis === 'object') return globalThis;
/******/ 			try {
/******/ 				return this || new Function('return this')();
/******/ 			} catch (e) {
/******/ 				if (typeof window === 'object') return window;
/******/ 			}
/******/ 		})();
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
/******/ 	(() => {
/******/ 		__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/make namespace object */
/******/ 	(() => {
/******/ 		// define __esModule on exports
/******/ 		__webpack_require__.r = (exports) => {
/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 			}
/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
/******/ 		};
/******/ 	})();
/******/ 	
/************************************************************************/
/******/ 	
/******/ 	// startup
/******/ 	// Load entry module and return exports
/******/ 	// This entry module can't be inlined because the eval devtool is used.
/******/ 	var __webpack_exports__ = __webpack_require__("./node_modules/monaco-editor/esm/vs/language/typescript/ts.worker.js");
/******/ 	
/******/ })()
;